diff --git a/components/calendar/__tests__/__snapshots__/demo.test.js.snap b/components/calendar/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..46891212f --- /dev/null +++ b/components/calendar/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,1658 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/calendar/demo/basic.md correctly 1`] = ` +
+
+
+ +
+
+ +
+
+ + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SuMoTuWeThFrSa
+
+
30
+
+
+
+
+
31
+
+
+
+
+
01
+
+
+
+
+
02
+
+
+
+
+
03
+
+
+
+
+
04
+
+
+
+
+
05
+
+
+
+
+
06
+
+
+
+
+
07
+
+
+
+
+
08
+
+
+
+
+
09
+
+
+
+
+
10
+
+
+
+
+
11
+
+
+
+
+
12
+
+
+
+
+
13
+
+
+
+
+
14
+
+
+
+
+
15
+
+
+
+
+
16
+
+
+
+
+
17
+
+
+
+
+
18
+
+
+
+
+
19
+
+
+
+
+
20
+
+
+
+
+
21
+
+
+
+
+
22
+
+
+
+
+
23
+
+
+
+
+
24
+
+
+
+
+
25
+
+
+
+
+
26
+
+
+
+
+
27
+
+
+
+
+
28
+
+
+
+
+
29
+
+
+
+
+
30
+
+
+
+
+
01
+
+
+
+
+
02
+
+
+
+
+
03
+
+
+
+
+
04
+
+
+
+
+
05
+
+
+
+
+
06
+
+
+
+
+
07
+
+
+
+
+
08
+
+
+
+
+
09
+
+
+
+
+
10
+
+
+
+
+
+
+`; + +exports[`renders ./components/calendar/demo/card.md correctly 1`] = ` +
+
+
+
+ +
+
+ +
+
+ + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SuMoTuWeThFrSa
+
+
30
+
+
+
+
+
31
+
+
+
+
+
01
+
+
+
+
+
02
+
+
+
+
+
03
+
+
+
+
+
04
+
+
+
+
+
05
+
+
+
+
+
06
+
+
+
+
+
07
+
+
+
+
+
08
+
+
+
+
+
09
+
+
+
+
+
10
+
+
+
+
+
11
+
+
+
+
+
12
+
+
+
+
+
13
+
+
+
+
+
14
+
+
+
+
+
15
+
+
+
+
+
16
+
+
+
+
+
17
+
+
+
+
+
18
+
+
+
+
+
19
+
+
+
+
+
20
+
+
+
+
+
21
+
+
+
+
+
22
+
+
+
+
+
23
+
+
+
+
+
24
+
+
+
+
+
25
+
+
+
+
+
26
+
+
+
+
+
27
+
+
+
+
+
28
+
+
+
+
+
29
+
+
+
+
+
30
+
+
+
+
+
01
+
+
+
+
+
02
+
+
+
+
+
03
+
+
+
+
+
04
+
+
+
+
+
05
+
+
+
+
+
06
+
+
+
+
+
07
+
+
+
+
+
08
+
+
+
+
+
09
+
+
+
+
+
10
+
+
+
+
+
+
+
+`; + +exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = ` +
+
+
+ +
+
+ +
+
+ + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SuMoTuWeThFrSa
+
+
30
+
+
    +
    +
    +
    +
    +
    31
    +
    +
      +
      +
      +
      +
      +
      01
      +
      +
        +
        +
        +
        +
        +
        02
        +
        +
          +
          +
          +
          +
          +
          03
          +
          +
            +
            +
            +
            +
            +
            04
            +
            +
              +
              +
              +
              +
              +
              05
              +
              +
                +
                +
                +
                +
                +
                06
                +
                +
                  +
                  +
                  +
                  +
                  +
                  07
                  +
                  +
                    +
                    +
                    +
                    +
                    +
                    08
                    +
                    +
                      +
                    • This is warning event. +
                    • +
                    • This is usual event. +
                    • +
                    +
                    +
                    +
                    +
                    +
                    09
                    +
                    +
                      +
                      +
                      +
                      +
                      +
                      10
                      +
                      +
                        +
                      • This is warning event. +
                      • +
                      • This is usual event. +
                      • +
                      • This is error event. +
                      • +
                      +
                      +
                      +
                      +
                      +
                      11
                      +
                      +
                        +
                        +
                        +
                        +
                        +
                        12
                        +
                        +
                          +
                          +
                          +
                          +
                          +
                          13
                          +
                          +
                            +
                            +
                            +
                            +
                            +
                            14
                            +
                            +
                              +
                              +
                              +
                              +
                              +
                              15
                              +
                              +
                                +
                              • This is warning event +
                              • +
                              • This is very long usual event。。.... +
                              • +
                              • This is error event 1. +
                              • +
                              • This is error event 2. +
                              • +
                              • This is error event 3. +
                              • +
                              • This is error event 4. +
                              • +
                              +
                              +
                              +
                              +
                              +
                              16
                              +
                              +
                                +
                                +
                                +
                                +
                                +
                                17
                                +
                                +
                                  +
                                  +
                                  +
                                  +
                                  +
                                  18
                                  +
                                  +
                                    +
                                    +
                                    +
                                    +
                                    +
                                    19
                                    +
                                    +
                                      +
                                      +
                                      +
                                      +
                                      +
                                      20
                                      +
                                      +
                                        +
                                        +
                                        +
                                        +
                                        +
                                        21
                                        +
                                        +
                                          +
                                          +
                                          +
                                          +
                                          +
                                          22
                                          +
                                          +
                                            +
                                            +
                                            +
                                            +
                                            +
                                            23
                                            +
                                            +
                                              +
                                              +
                                              +
                                              +
                                              +
                                              24
                                              +
                                              +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                25
                                                +
                                                +
                                                  +
                                                  +
                                                  +
                                                  +
                                                  +
                                                  26
                                                  +
                                                  +
                                                    +
                                                    +
                                                    +
                                                    +
                                                    +
                                                    27
                                                    +
                                                    +
                                                      +
                                                      +
                                                      +
                                                      +
                                                      +
                                                      28
                                                      +
                                                      +
                                                        +
                                                        +
                                                        +
                                                        +
                                                        +
                                                        29
                                                        +
                                                        +
                                                          +
                                                          +
                                                          +
                                                          +
                                                          +
                                                          30
                                                          +
                                                          +
                                                            +
                                                            +
                                                            +
                                                            +
                                                            +
                                                            01
                                                            +
                                                            +
                                                              +
                                                              +
                                                              +
                                                              +
                                                              +
                                                              02
                                                              +
                                                              +
                                                                +
                                                                +
                                                                +
                                                                +
                                                                +
                                                                03
                                                                +
                                                                +
                                                                  +
                                                                  +
                                                                  +
                                                                  +
                                                                  +
                                                                  04
                                                                  +
                                                                  +
                                                                    +
                                                                    +
                                                                    +
                                                                    +
                                                                    +
                                                                    05
                                                                    +
                                                                    +
                                                                      +
                                                                      +
                                                                      +
                                                                      +
                                                                      +
                                                                      06
                                                                      +
                                                                      +
                                                                        +
                                                                        +
                                                                        +
                                                                        +
                                                                        +
                                                                        07
                                                                        +
                                                                        +
                                                                          +
                                                                          +
                                                                          +
                                                                          +
                                                                          +
                                                                          08
                                                                          +
                                                                          +
                                                                            +
                                                                          • This is warning event. +
                                                                          • +
                                                                          • This is usual event. +
                                                                          • +
                                                                          +
                                                                          +
                                                                          +
                                                                          +
                                                                          +
                                                                          09
                                                                          +
                                                                          +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            10
                                                                            +
                                                                            +
                                                                              +
                                                                            • This is warning event. +
                                                                            • +
                                                                            • This is usual event. +
                                                                            • +
                                                                            • This is error event. +
                                                                            • +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/calendar/demo/select.md correctly 1`] = ` +
                                                                            +
                                                                            You selected date: 2017-01-25
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            + +
                                                                            +
                                                                            + + +
                                                                            +
                                                                            +
                                                                            +
                                                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                            SuMoTuWeThFrSa
                                                                            +
                                                                            +
                                                                            01
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            02
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            03
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            04
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            05
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            06
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            07
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            08
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            09
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            10
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            11
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            12
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            13
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            14
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            15
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            16
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            17
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            18
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            19
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            20
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            21
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            22
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            23
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            24
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            25
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            26
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            27
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            28
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            29
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            30
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            31
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            01
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            02
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            03
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            04
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            05
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            06
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            07
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            08
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            09
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            10
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            11
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            + +
                                                                            +
                                                                            + + +
                                                                            +
                                                                            +
                                                                            +
                                                                            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                            SuMoTuWeThFrSa
                                                                            +
                                                                            +
                                                                            01
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            02
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            03
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            04
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            05
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            06
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            07
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            08
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            09
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            10
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            11
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            12
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            13
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            14
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            15
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            16
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            17
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            18
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            19
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            20
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            21
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            22
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            23
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            24
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            25
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            26
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            27
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            28
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            29
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            30
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            31
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            01
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            02
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            03
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            04
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            05
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            06
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            07
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            08
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            09
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            10
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            11
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +`; diff --git a/components/calendar/__tests__/demo.test.js b/components/calendar/__tests__/demo.test.js new file mode 100644 index 000000000..c65973e49 --- /dev/null +++ b/components/calendar/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest' + +demoTest('calendar') diff --git a/components/card/__tests__/__snapshots__/demo.test.js.snap b/components/card/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..a91f98b19 --- /dev/null +++ b/components/card/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,266 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/card/demo/basic.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card Title
                                                                            +
                                                                            + more +
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            card content

                                                                            +

                                                                            card content

                                                                            +

                                                                            card content

                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/card/demo/colRowCard.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            card content

                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            card content

                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            card content

                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/card/demo/concise.md correctly 1`] = ` +
                                                                            +
                                                                            +

                                                                            Card content

                                                                            +

                                                                            Card content

                                                                            +

                                                                            Card content

                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/card/demo/grid.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card Title
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Content
                                                                            +
                                                                            Content
                                                                            +
                                                                            Content
                                                                            +
                                                                            Content
                                                                            +
                                                                            Content
                                                                            +
                                                                            Content
                                                                            +
                                                                            Content
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/card/demo/inline.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            Group title

                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Inner card title
                                                                            +
                                                                            + More +
                                                                            +
                                                                            +
                                                                            +
                                                                            + Inner Card content +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Inner card title
                                                                            +
                                                                            + More +
                                                                            +
                                                                            +
                                                                            +
                                                                            + Inner Card content +
                                                                            +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/card/demo/loading.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            +

                                                                            +

                                                                            +

                                                                            +

                                                                            +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/card/demo/moreConfigs.md correctly 1`] = ` +
                                                                            +
                                                                            + example +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            This is the description
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +`; + +exports[`renders ./components/card/demo/noBorder.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            Card content

                                                                            +

                                                                            Card content

                                                                            +

                                                                            Card content

                                                                            +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/card/demo/tabsCard.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Card title
                                                                            +
                                                                            + More +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +
                                                                            + content1 +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + + + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +

                                                                            app content

                                                                            +
                                                                            +
                                                                            +
                                                                            +`; diff --git a/components/card/__tests__/demo.test.js b/components/card/__tests__/demo.test.js new file mode 100644 index 000000000..d15b047bc --- /dev/null +++ b/components/card/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest' + +demoTest('card') diff --git a/components/card/demo/tabsCard.md b/components/card/demo/tabsCard.md index 6192d5c3b..33b2beb29 100644 --- a/components/card/demo/tabsCard.md +++ b/components/card/demo/tabsCard.md @@ -10,7 +10,6 @@ ```html ``` diff --git a/components/divider/__tests__/__snapshots__/demo.test.js.snap b/components/divider/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..8329c432d --- /dev/null +++ b/components/divider/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,32 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/divider/demo/horizontal.md correctly 1`] = ` +
                                                                            +

                                                                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.

                                                                            +
                                                                            +

                                                                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.

                                                                            +
                                                                            With Text
                                                                            +

                                                                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.

                                                                            +
                                                                            +

                                                                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.

                                                                            +
                                                                            +`; + +exports[`renders ./components/divider/demo/orientation.md correctly 1`] = ` +
                                                                            +
                                                                            Left Text
                                                                            +

                                                                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.

                                                                            +
                                                                            Right Text
                                                                            +

                                                                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.

                                                                            +
                                                                            +`; + +exports[`renders ./components/divider/demo/vertical.md correctly 1`] = ` +
                                                                            + Text +
                                                                            + Link +
                                                                            + Link +
                                                                            +`; diff --git a/components/divider/__tests__/demo.test.js b/components/divider/__tests__/demo.test.js new file mode 100644 index 000000000..528e30bfd --- /dev/null +++ b/components/divider/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest' + +demoTest('divider') diff --git a/components/dropdown/__tests__/__snapshots__/demo.test.js.snap b/components/dropdown/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..30976bda4 --- /dev/null +++ b/components/dropdown/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,83 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/dropdown/demo/basic.md correctly 1`] = ` + + Hover me + + +`; + +exports[`renders ./components/dropdown/demo/context-menu.md correctly 1`] = `Right Click on Me`; + +exports[`renders ./components/dropdown/demo/dropdown-button.md correctly 1`] = ` +
                                                                            +
                                                                            + + +
                                                                            +
                                                                            + + +
                                                                            + +
                                                                            +`; + +exports[`renders ./components/dropdown/demo/event.md correctly 1`] = ` + + Hover me, Click menu item + + +`; + +exports[`renders ./components/dropdown/demo/item.md correctly 1`] = ` + + Hover me + + +`; + +exports[`renders ./components/dropdown/demo/overlay-visible.md correctly 1`] = ` + + Hover me + + +`; + +exports[`renders ./components/dropdown/demo/placement.md correctly 1`] = ` +
                                                                            + + + + + +
                                                                            + + + + + + +
                                                                            +`; + +exports[`renders ./components/dropdown/demo/sub-menu.md correctly 1`] = ` + + Cascading menu + + +`; + +exports[`renders ./components/dropdown/demo/trigger.md correctly 1`] = ` + + Click me + + +`; diff --git a/components/dropdown/__tests__/demo.test.js b/components/dropdown/__tests__/demo.test.js new file mode 100644 index 000000000..b830f8fd4 --- /dev/null +++ b/components/dropdown/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest' + +demoTest('dropdown') diff --git a/components/grid/__tests__/__snapshots__/demo.test.js.snap b/components/grid/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..f66760867 --- /dev/null +++ b/components/grid/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,233 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/grid/demo/basic.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            col-12
                                                                            +
                                                                            col-12
                                                                            +
                                                                            +
                                                                            +
                                                                            col-8
                                                                            +
                                                                            col-8
                                                                            +
                                                                            col-8
                                                                            +
                                                                            +
                                                                            +
                                                                            col-6
                                                                            +
                                                                            col-6
                                                                            +
                                                                            col-6
                                                                            +
                                                                            col-6
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/flex.md correctly 1`] = ` +
                                                                            +

                                                                            sub-element align left

                                                                            +
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            +

                                                                            sub-element align center

                                                                            +
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            +

                                                                            sub-element align right

                                                                            +
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            +

                                                                            sub-element monospaced arrangement

                                                                            +
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            +

                                                                            sub-element align full

                                                                            +
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            col-4
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/flex-align.md correctly 1`] = ` +
                                                                            +

                                                                            Align Top

                                                                            +
                                                                            +
                                                                            +

                                                                            col-4

                                                                            +
                                                                            +
                                                                            +

                                                                            col-4

                                                                            +
                                                                            +
                                                                            +

                                                                            col-4

                                                                            +
                                                                            +
                                                                            +

                                                                            col-4

                                                                            +
                                                                            +
                                                                            +

                                                                            Align Center

                                                                            +
                                                                            +
                                                                            +

                                                                            col-4

                                                                            +
                                                                            +
                                                                            +

                                                                            col-4

                                                                            +
                                                                            +
                                                                            +

                                                                            col-4

                                                                            +
                                                                            +
                                                                            +

                                                                            col-4

                                                                            +
                                                                            +
                                                                            +

                                                                            Align Bottom

                                                                            +
                                                                            +
                                                                            +

                                                                            col-4

                                                                            +
                                                                            +
                                                                            +

                                                                            col-4

                                                                            +
                                                                            +
                                                                            +

                                                                            col-4

                                                                            +
                                                                            +
                                                                            +

                                                                            col-4

                                                                            +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/flex-order.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            1 col-order-4
                                                                            +
                                                                            2 col-order-3
                                                                            +
                                                                            3 col-order-2
                                                                            +
                                                                            4 col-order-1
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/gutter.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            col-6
                                                                            +
                                                                            +
                                                                            +
                                                                            col-6
                                                                            +
                                                                            +
                                                                            +
                                                                            col-6
                                                                            +
                                                                            +
                                                                            +
                                                                            col-6
                                                                            +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/offset.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            col-8
                                                                            +
                                                                            col-8
                                                                            +
                                                                            +
                                                                            +
                                                                            col-6 col-offset-6
                                                                            +
                                                                            col-6 col-offset-6
                                                                            +
                                                                            +
                                                                            +
                                                                            col-12 col-offset-6
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/playfround.md correctly 1`] = ` +
                                                                            +
                                                                            Gutter (px): +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            81624324048
                                                                            +
                                                                            +
                                                                            Column Count: +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            2346812
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            Column
                                                                            +
                                                                            +
                                                                            +
                                                                            Column
                                                                            +
                                                                            +
                                                                            +
                                                                            Column
                                                                            +
                                                                            +
                                                                            +
                                                                            Column
                                                                            +
                                                                            +
                                                                            <Row :gutter="16">
                                                                            +  <Col :span="6"/>
                                                                            +  <Col :span="6"/>
                                                                            +  <Col :span="6"/>
                                                                            +  <Col :span="6"/>
                                                                            +</Row>
                                                                            +`; + +exports[`renders ./components/grid/demo/responsive.md correctly 1`] = ` +
                                                                            +
                                                                            Col
                                                                            +
                                                                            Col
                                                                            +
                                                                            Col
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/responsive-more.md correctly 1`] = ` +
                                                                            +
                                                                            Col
                                                                            +
                                                                            Col
                                                                            +
                                                                            Col
                                                                            +
                                                                            +`; + +exports[`renders ./components/grid/demo/sort.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            col-18 col-push-6
                                                                            +
                                                                            col-6 col-pull-18
                                                                            +
                                                                            +
                                                                            +`; diff --git a/components/grid/__tests__/demo.test.js b/components/grid/__tests__/demo.test.js new file mode 100644 index 000000000..8e6005e4a --- /dev/null +++ b/components/grid/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest' + +demoTest('grid') diff --git a/components/input-number/__tests__/__snapshots__/demo.test.js.snap b/components/input-number/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..3e829f54f --- /dev/null +++ b/components/input-number/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,94 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/input-number/demo/basic.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            + 当前值:3 +
                                                                            +`; + +exports[`renders ./components/input-number/demo/digit.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +`; + +exports[`renders ./components/input-number/demo/disabled.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +`; + +exports[`renders ./components/input-number/demo/formatter.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +`; + +exports[`renders ./components/input-number/demo/size.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +`; diff --git a/components/input-number/__tests__/demo.test.js b/components/input-number/__tests__/demo.test.js new file mode 100644 index 000000000..8bdef4983 --- /dev/null +++ b/components/input-number/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest' + +demoTest('input-number') diff --git a/components/input/__tests__/__snapshots__/demo.test.js.snap b/components/input/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..71af5aba3 --- /dev/null +++ b/components/input/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,118 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/input/demo/addon.md correctly 1`] = ` +
                                                                            +
                                                                            Http:// + .com + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +`; + +exports[`renders ./components/input/demo/autosize-textarea.md correctly 1`] = ` +
                                                                            + +
                                                                            + +
                                                                            +`; + +exports[`renders ./components/input/demo/basic.md correctly 1`] = ``; + +exports[`renders ./components/input/demo/group.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            +
                                                                            + + + +
                                                                            +
                                                                            +
                                                                            + +
                                                                            +
                                                                            +
                                                                            + + +
                                                                            +
                                                                            +`; + +exports[`renders ./components/input/demo/presuffix.md correctly 1`] = ` +
                                                                            + + +
                                                                            +`; + +exports[`renders ./components/input/demo/search-input.md correctly 1`] = ` +
                                                                            +
                                                                            +
                                                                            +
                                                                            +
                                                                            + + +
                                                                            +
                                                                            + + +
                                                                            +`; + +exports[`renders ./components/input/demo/size.md correctly 1`] = ` +
                                                                            + + + +
                                                                            +`; + +exports[`renders ./components/input/demo/textarea.md correctly 1`] = ``; + +exports[`renders ./components/input/demo/tooltip.md correctly 1`] = ``; diff --git a/components/input/__tests__/demo.test.js b/components/input/__tests__/demo.test.js new file mode 100644 index 000000000..108a7fd62 --- /dev/null +++ b/components/input/__tests__/demo.test.js @@ -0,0 +1,3 @@ +import demoTest from '../../../tests/shared/demoTest' + +demoTest('input') diff --git a/components/input/demo/presuffix.md b/components/input/demo/presuffix.md index ee5c1ea14..10ecf4422 100644 --- a/components/input/demo/presuffix.md +++ b/components/input/demo/presuffix.md @@ -11,10 +11,11 @@ Add prefix or suffix icons inside input. ```html