taro-ui 3.3.3 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +85 -0
- package/dist/common/utils.d.ts +2 -1
- package/dist/common/utils.js +3 -0
- package/dist/common/utils.js.map +1 -1
- package/dist/components/accordion/index.d.ts +16 -13
- package/dist/components/accordion/index.js +77 -97
- package/dist/components/accordion/index.js.map +1 -1
- package/dist/components/action-sheet/body/index.d.ts +2 -4
- package/dist/components/action-sheet/body/index.js +8 -6
- package/dist/components/action-sheet/body/index.js.map +1 -1
- package/dist/components/action-sheet/body/item/index.d.ts +7 -7
- package/dist/components/action-sheet/body/item/index.js +14 -14
- package/dist/components/action-sheet/body/item/index.js.map +1 -1
- package/dist/components/action-sheet/footer/index.d.ts +7 -7
- package/dist/components/action-sheet/footer/index.js +14 -17
- package/dist/components/action-sheet/footer/index.js.map +1 -1
- package/dist/components/action-sheet/header/index.d.ts +2 -4
- package/dist/components/action-sheet/header/index.js +8 -9
- package/dist/components/action-sheet/header/index.js.map +1 -1
- package/dist/components/action-sheet/index.d.ts +12 -13
- package/dist/components/action-sheet/index.js +53 -57
- package/dist/components/action-sheet/index.js.map +1 -1
- package/dist/components/activity-indicator/index.d.ts +12 -6
- package/dist/components/activity-indicator/index.js +19 -22
- package/dist/components/activity-indicator/index.js.map +1 -1
- package/dist/components/avatar/index.d.ts +14 -8
- package/dist/components/avatar/index.js +36 -43
- package/dist/components/avatar/index.js.map +1 -1
- package/dist/components/badge/index.d.ts +11 -8
- package/dist/components/badge/index.js +18 -34
- package/dist/components/badge/index.js.map +1 -1
- package/dist/components/button/index.d.ts +29 -14
- package/dist/components/button/index.js +97 -112
- package/dist/components/button/index.js.map +1 -1
- package/dist/components/calendar/body/index.d.ts +3 -26
- package/dist/components/calendar/body/index.js +215 -235
- package/dist/components/calendar/body/index.js.map +1 -1
- package/dist/components/calendar/controller/index.d.ts +3 -5
- package/dist/components/calendar/controller/index.js +47 -43
- package/dist/components/calendar/controller/index.js.map +1 -1
- package/dist/components/calendar/index.d.ts +3 -20
- package/dist/components/calendar/index.js +219 -201
- package/dist/components/calendar/index.js.map +1 -1
- package/dist/components/calendar/ui/date-list/index.d.ts +2 -6
- package/dist/components/calendar/ui/date-list/index.js +36 -41
- package/dist/components/calendar/ui/date-list/index.js.map +1 -1
- package/dist/components/calendar/ui/day-list/index.d.ts +2 -4
- package/dist/components/calendar/ui/day-list/index.js +6 -5
- package/dist/components/calendar/ui/day-list/index.js.map +1 -1
- package/dist/components/card/index.d.ts +15 -7
- package/dist/components/card/index.js +42 -43
- package/dist/components/card/index.js.map +1 -1
- package/dist/components/checkbox/index.d.ts +11 -7
- package/dist/components/checkbox/index.js +30 -35
- package/dist/components/checkbox/index.js.map +1 -1
- package/dist/components/config-provider/context.d.ts +6 -0
- package/dist/components/config-provider/context.js +13 -0
- package/dist/components/config-provider/context.js.map +1 -0
- package/dist/components/config-provider/index.d.ts +7 -0
- package/dist/components/config-provider/index.js +15 -0
- package/dist/components/config-provider/index.js.map +1 -0
- package/dist/components/countdown/index.d.ts +19 -19
- package/dist/components/countdown/index.js +183 -118
- package/dist/components/countdown/index.js.map +1 -1
- package/dist/components/countdown/item/index.d.ts +8 -7
- package/dist/components/countdown/item/index.js +10 -13
- package/dist/components/countdown/item/index.js.map +1 -1
- package/dist/components/curtain/index.d.ts +11 -8
- package/dist/components/curtain/index.js +36 -45
- package/dist/components/curtain/index.js.map +1 -1
- package/dist/components/divider/index.d.ts +13 -6
- package/dist/components/divider/index.js +29 -38
- package/dist/components/divider/index.js.map +1 -1
- package/dist/components/drawer/index.d.ts +13 -15
- package/dist/components/drawer/index.js +100 -93
- package/dist/components/drawer/index.js.map +1 -1
- package/dist/components/fab/index.d.ts +8 -7
- package/dist/components/fab/index.js +16 -16
- package/dist/components/fab/index.js.map +1 -1
- package/dist/components/flex/index.d.ts +11 -5
- package/dist/components/flex/index.js +17 -18
- package/dist/components/flex/index.js.map +1 -1
- package/dist/components/flex/item/index.d.ts +11 -5
- package/dist/components/flex/item/index.js +17 -18
- package/dist/components/flex/item/index.js.map +1 -1
- package/dist/components/float-layout/index.d.ts +20 -12
- package/dist/components/float-layout/index.js +56 -72
- package/dist/components/float-layout/index.js.map +1 -1
- package/dist/components/form/index.d.ts +11 -8
- package/dist/components/form/index.js +28 -28
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/grid/index.d.ts +22 -7
- package/dist/components/grid/index.js +61 -66
- package/dist/components/grid/index.js.map +1 -1
- package/dist/components/icon/index.d.ts +13 -7
- package/dist/components/icon/index.js +24 -34
- package/dist/components/icon/index.js.map +1 -1
- package/dist/components/image-picker/index.d.ts +19 -9
- package/dist/components/image-picker/index.js +83 -102
- package/dist/components/image-picker/index.js.map +1 -1
- package/dist/components/indexes/index.d.ts +16 -28
- package/dist/components/indexes/index.js +198 -209
- package/dist/components/indexes/index.js.map +1 -1
- package/dist/components/input/index.d.ts +37 -15
- package/dist/components/input/index.js +152 -161
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input-number/index.d.ts +20 -11
- package/dist/components/input-number/index.js +107 -126
- package/dist/components/input-number/index.js.map +1 -1
- package/dist/components/list/index.d.ts +7 -6
- package/dist/components/list/index.js +15 -15
- package/dist/components/list/index.js.map +1 -1
- package/dist/components/list/item/index.d.ts +27 -9
- package/dist/components/list/item/index.js +89 -117
- package/dist/components/list/item/index.js.map +1 -1
- package/dist/components/load-more/index.d.ts +15 -7
- package/dist/components/load-more/index.js +29 -50
- package/dist/components/load-more/index.js.map +1 -1
- package/dist/components/loading/index.d.ts +8 -7
- package/dist/components/loading/index.js +14 -20
- package/dist/components/loading/index.js.map +1 -1
- package/dist/components/message/index.d.ts +9 -14
- package/dist/components/message/index.js +45 -59
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/modal/action/index.d.ts +7 -6
- package/dist/components/modal/action/index.js +15 -15
- package/dist/components/modal/action/index.js.map +1 -1
- package/dist/components/modal/content/index.d.ts +2 -4
- package/dist/components/modal/content/index.js +8 -6
- package/dist/components/modal/content/index.js.map +1 -1
- package/dist/components/modal/header/index.d.ts +2 -4
- package/dist/components/modal/header/index.js +8 -6
- package/dist/components/modal/header/index.js.map +1 -1
- package/dist/components/modal/index.d.ts +16 -14
- package/dist/components/modal/index.js +63 -77
- package/dist/components/modal/index.js.map +1 -1
- package/dist/components/nav-bar/index.d.ts +20 -10
- package/dist/components/nav-bar/index.js +146 -162
- package/dist/components/nav-bar/index.js.map +1 -1
- package/dist/components/noticebar/index.d.ts +17 -15
- package/dist/components/noticebar/index.js +115 -128
- package/dist/components/noticebar/index.js.map +1 -1
- package/dist/components/pagination/index.d.ts +13 -11
- package/dist/components/pagination/index.js +64 -120
- package/dist/components/pagination/index.js.map +1 -1
- package/dist/components/progress/index.d.ts +11 -5
- package/dist/components/progress/index.js +39 -36
- package/dist/components/progress/index.js.map +1 -1
- package/dist/components/radio/index.d.ts +11 -7
- package/dist/components/radio/index.js +29 -33
- package/dist/components/radio/index.js.map +1 -1
- package/dist/components/range/index.d.ts +19 -21
- package/dist/components/range/index.js +146 -153
- package/dist/components/range/index.js.map +1 -1
- package/dist/components/rate/index.d.ts +13 -7
- package/dist/components/rate/index.js +47 -62
- package/dist/components/rate/index.js.map +1 -1
- package/dist/components/search-bar/index.d.ts +23 -15
- package/dist/components/search-bar/index.js +120 -146
- package/dist/components/search-bar/index.js.map +1 -1
- package/dist/components/segmented-control/index.d.ts +14 -7
- package/dist/components/segmented-control/index.js +52 -66
- package/dist/components/segmented-control/index.js.map +1 -1
- package/dist/components/slider/index.d.ts +21 -12
- package/dist/components/slider/index.js +66 -90
- package/dist/components/slider/index.js.map +1 -1
- package/dist/components/steps/index.d.ts +11 -7
- package/dist/components/steps/index.js +43 -48
- package/dist/components/steps/index.js.map +1 -1
- package/dist/components/swipe-action/index.d.ts +12 -25
- package/dist/components/swipe-action/index.js +118 -115
- package/dist/components/swipe-action/index.js.map +1 -1
- package/dist/components/swipe-action/options/index.d.ts +2 -4
- package/dist/components/swipe-action/options/index.js +18 -17
- package/dist/components/swipe-action/options/index.js.map +1 -1
- package/dist/components/switch/index.d.ts +14 -7
- package/dist/components/switch/index.js +36 -41
- package/dist/components/switch/index.js.map +1 -1
- package/dist/components/tab-bar/index.d.ts +17 -7
- package/dist/components/tab-bar/index.js +108 -135
- package/dist/components/tab-bar/index.js.map +1 -1
- package/dist/components/tabs/index.d.ts +17 -23
- package/dist/components/tabs/index.js +185 -174
- package/dist/components/tabs/index.js.map +1 -1
- package/dist/components/tabs-pane/index.d.ts +11 -6
- package/dist/components/tabs-pane/index.js +26 -28
- package/dist/components/tabs-pane/index.js.map +1 -1
- package/dist/components/tag/index.d.ts +14 -7
- package/dist/components/tag/index.js +31 -40
- package/dist/components/tag/index.js.map +1 -1
- package/dist/components/textarea/index.d.ts +29 -11
- package/dist/components/textarea/index.js +72 -92
- package/dist/components/textarea/index.js.map +1 -1
- package/dist/components/timeline/index.d.ts +9 -6
- package/dist/components/timeline/index.js +50 -56
- package/dist/components/timeline/index.js.map +1 -1
- package/dist/components/toast/img.json +3 -6
- package/dist/components/toast/index.d.ts +16 -15
- package/dist/components/toast/index.js +85 -94
- package/dist/components/toast/index.js.map +1 -1
- package/dist/hooks/useComponentLocale.d.ts +2 -0
- package/dist/hooks/useComponentLocale.js +12 -0
- package/dist/hooks/useComponentLocale.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +4006 -4404
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4032 -4434
- package/dist/index.js.map +1 -1
- package/dist/locale/en_US.d.ts +3 -0
- package/dist/locale/en_US.js +34 -0
- package/dist/locale/en_US.js.map +1 -0
- package/dist/locale/index.d.ts +4 -0
- package/dist/locale/index.js +10 -0
- package/dist/locale/index.js.map +1 -0
- package/dist/locale/types.d.ts +34 -0
- package/dist/locale/types.js +1 -0
- package/dist/locale/types.js.map +1 -0
- package/dist/locale/zh_CN.d.ts +3 -0
- package/dist/locale/zh_CN.js +34 -0
- package/dist/locale/zh_CN.js.map +1 -0
- package/dist/style/components/avatar.scss +1 -1
- package/dist/style/components/badge.scss +7 -2
- package/dist/style/components/calendar.scss +1 -1
- package/dist/style/components/countdown.scss +2 -1
- package/dist/style/components/flex.scss +1 -1
- package/dist/style/components/grid.scss +2 -2
- package/dist/style/components/icon.scss +302 -101
- package/dist/style/components/input.scss +2 -2
- package/dist/style/components/progress.scss +1 -1
- package/dist/style/components/search-bar.scss +1 -1
- package/dist/style/components/steps.scss +2 -2
- package/dist/style/components/tabs.scss +1 -1
- package/dist/style/components/tag.scss +1 -1
- package/dist/style/components/timeline.scss +1 -1
- package/dist/style/components/toast.scss +7 -3
- package/dist/style/index.css +176 -176
- package/dist/style/index.css.map +1 -1
- package/dist/style/mixins/libs/hairline.scss +4 -19
- package/dist/style/mixins/libs/shade.scss +3 -6
- package/dist/style/mixins/libs/tint.scss +4 -7
- package/dist/style/themes/purple.scss +15 -15
- package/dist/style/themes/red.scss +16 -13
- package/dist/style/variables/default.scss +69 -73
- package/package.json +5 -3
- package/rn/components/accordion/index.tsx +2 -9
- package/rn/components/action-sheet/body/index.tsx +1 -3
- package/rn/components/action-sheet/body/item/index.tsx +1 -3
- package/rn/components/action-sheet/footer/index.tsx +1 -3
- package/rn/components/action-sheet/header/index.tsx +1 -3
- package/rn/components/activity-indicator/index.tsx +1 -3
- package/rn/components/avatar/index.tsx +5 -5
- package/rn/components/calendar/controller/index.tsx +2 -7
- package/rn/components/card/index.tsx +4 -4
- package/rn/components/countdown/index.scss +5 -4
- package/rn/components/countdown/item/index.tsx +1 -3
- package/rn/components/curtain/index.tsx +5 -5
- package/rn/components/flex/index.scss +2 -2
- package/rn/components/flex/item/index.scss +2 -2
- package/rn/components/grid/index.tsx +15 -15
- package/rn/components/icon/index.tsx +4 -4
- package/rn/components/image-picker/index.tsx +7 -7
- package/rn/components/pagination/index.tsx +7 -7
- package/rn/components/progress/index.tsx +5 -5
- package/rn/components/radio/index.tsx +7 -7
- package/rn/components/rate/index.tsx +4 -4
- package/rn/components/segmented-control/index.tsx +8 -8
- package/rn/components/slider/index.tsx +9 -9
- package/rn/components/steps/index.tsx +8 -8
- package/rn/components/swipe-action/options/index.tsx +1 -3
- package/rn/components/switch/index.tsx +2 -9
- package/rn/components/toast/img.json +3 -6
- package/rn/components/toast/index.tsx +8 -8
- package/rn/style/components/accordion.scss +1 -1
- package/rn/style/components/action-sheet.scss +1 -1
- package/rn/style/components/avatar.scss +1 -1
- package/rn/style/components/badge.scss +8 -3
- package/rn/style/components/button.scss +1 -1
- package/rn/style/components/calendar.scss +1 -1
- package/rn/style/components/checkbox.scss +1 -1
- package/rn/style/components/curtain.scss +1 -1
- package/rn/style/components/fab.scss +1 -4
- package/rn/style/components/flex.scss +1 -1
- package/rn/style/components/grid.scss +2 -6
- package/rn/style/components/icon.scss +302 -101
- package/rn/style/components/index.scss +41 -41
- package/rn/style/components/input.scss +1 -1
- package/rn/style/components/list.scss +2 -4
- package/rn/style/components/loading.scss +4 -4
- package/rn/style/components/message.scss +1 -1
- package/rn/style/components/modal.scss +0 -2
- package/rn/style/components/nav-bar.scss +3 -3
- package/rn/style/components/noticebar.scss +0 -4
- package/rn/style/components/progress.scss +1 -1
- package/rn/style/components/radio.scss +2 -2
- package/rn/style/components/range.scss +1 -1
- package/rn/style/components/search-bar.scss +1 -1
- package/rn/style/components/segmented-control.scss +4 -1
- package/rn/style/components/slider.scss +0 -1
- package/rn/style/components/steps.scss +3 -3
- package/rn/style/components/switch.scss +0 -1
- package/rn/style/components/tabs.scss +2 -2
- package/rn/style/components/tag.scss +1 -1
- package/rn/style/components/timeline.scss +0 -2
- package/rn/style/components/toast.scss +5 -2
- package/rn/style/index.scss +1 -1
- package/rn/style/mixins/libs/hairline.scss +4 -22
- package/rn/style/mixins/libs/shade.scss +1 -4
- package/rn/style/mixins/libs/tint.scss +2 -5
- package/rn/style/themes/purple.scss +15 -15
- package/rn/style/themes/red.scss +16 -13
- package/rn/style/variables/default.scss +69 -73
|
@@ -7,64 +7,64 @@
|
|
|
7
7
|
$hd: 2 !default; // 基本单位
|
|
8
8
|
|
|
9
9
|
/* The Color of O2Team Brand */
|
|
10
|
-
$color-brand: #
|
|
11
|
-
$color-brand-light: #
|
|
12
|
-
$color-brand-dark: #
|
|
10
|
+
$color-brand: #6190e8 !default;
|
|
11
|
+
$color-brand-light: #78a4f4 !default;
|
|
12
|
+
$color-brand-dark: #346fc2 !default;
|
|
13
13
|
|
|
14
14
|
/* Color */
|
|
15
|
-
$color-success: #
|
|
16
|
-
$color-error: #
|
|
17
|
-
$color-warning: #
|
|
18
|
-
$color-info: #
|
|
15
|
+
$color-success: #13ce66 !default;
|
|
16
|
+
$color-error: #ff4949 !default;
|
|
17
|
+
$color-warning: #ffc82c !default;
|
|
18
|
+
$color-info: #78a4fa !default;
|
|
19
19
|
|
|
20
20
|
/* Color Palette */
|
|
21
21
|
$color-black-0: #000 !default;
|
|
22
22
|
$color-black-1: #333 !default;
|
|
23
|
-
$color-black-2: #
|
|
24
|
-
$color-black-3: #
|
|
23
|
+
$color-black-2: #7f7f7f !default;
|
|
24
|
+
$color-black-3: #b2b2b2 !default;
|
|
25
25
|
|
|
26
26
|
$color-grey-0: #333 !default;
|
|
27
27
|
$color-grey-1: #666 !default;
|
|
28
28
|
$color-grey-2: #999 !default;
|
|
29
|
-
$color-grey-3: #
|
|
30
|
-
$color-grey-4: #
|
|
31
|
-
$color-grey-5: #
|
|
32
|
-
$color-grey-6: #
|
|
29
|
+
$color-grey-3: #ccc !default;
|
|
30
|
+
$color-grey-4: #e5e5e5 !default;
|
|
31
|
+
$color-grey-5: #f0f0f0 !default;
|
|
32
|
+
$color-grey-6: #f7f7f7 !default;
|
|
33
33
|
|
|
34
|
-
$color-white: #
|
|
34
|
+
$color-white: #fff !default;
|
|
35
35
|
|
|
36
36
|
/* Text Color */
|
|
37
37
|
$color-text-base: #333 !default; // 文字的基本色
|
|
38
|
-
$color-text-base-inverse: #
|
|
39
|
-
$color-text-secondary: #
|
|
40
|
-
$color-text-placeholder: #
|
|
41
|
-
$color-text-disabled: #
|
|
42
|
-
$color-text-title: #
|
|
43
|
-
$color-text-paragraph: #
|
|
38
|
+
$color-text-base-inverse: #fff !default; // 反色
|
|
39
|
+
$color-text-secondary: #36d57d !default; // 辅助色
|
|
40
|
+
$color-text-placeholder: #c9c9c9 !default;
|
|
41
|
+
$color-text-disabled: #ccc !default;
|
|
42
|
+
$color-text-title: #2c405a !default; // 文章标题
|
|
43
|
+
$color-text-paragraph: #3f536e !default; // 文章段落
|
|
44
44
|
|
|
45
45
|
/* Link */
|
|
46
|
-
$color-link: #
|
|
47
|
-
$color-link-hover: #
|
|
48
|
-
$color-link-active: #
|
|
49
|
-
$color-link-disabled: #
|
|
46
|
+
$color-link: #6190e8 !default;
|
|
47
|
+
$color-link-hover: #79a1eb !default;
|
|
48
|
+
$color-link-active: #4f7de2 !default;
|
|
49
|
+
$color-link-disabled: #bfbfbf !default;
|
|
50
50
|
|
|
51
51
|
/* 背景色 */
|
|
52
|
-
$color-bg: #
|
|
53
|
-
$color-bg-base: #
|
|
54
|
-
$color-bg-light: #
|
|
52
|
+
$color-bg: #fff !default;
|
|
53
|
+
$color-bg-base: #fafbfc !default;
|
|
54
|
+
$color-bg-light: #ecf5fd !default;
|
|
55
55
|
$color-bg-lighter: tint($color-bg-light, 50%) !default;
|
|
56
|
-
$color-bg-grey: #
|
|
56
|
+
$color-bg-grey: #f7f7f7 !default;
|
|
57
57
|
|
|
58
58
|
/* 边框颜色 */
|
|
59
|
-
$color-border-base: #
|
|
59
|
+
$color-border-base: #c5d9e8 !default;
|
|
60
60
|
$color-border-split: tint($color-border-base, 20%) !default; // 分割线
|
|
61
61
|
$color-border-light: tint($color-border-base, 30%) !default;
|
|
62
62
|
$color-border-lighter: tint($color-border-base, 50%) !default;
|
|
63
63
|
$color-border-lightest: tint($color-border-base, 80%) !default;
|
|
64
|
-
$color-border-grey: #
|
|
64
|
+
$color-border-grey: #ccc !default;
|
|
65
65
|
|
|
66
66
|
/* 图标颜色 */
|
|
67
|
-
$color-icon-base: #
|
|
67
|
+
$color-icon-base: #ccc !default;
|
|
68
68
|
|
|
69
69
|
/* Border Radius */
|
|
70
70
|
$border-radius-sm: 2px * $hd !default;
|
|
@@ -131,32 +131,32 @@ $timing-func: cubic-bezier(0.36, 0.66, 0.04, 1) !default;
|
|
|
131
131
|
* CSS cubic-bezier timing functions
|
|
132
132
|
* http://bourbon.io/docs/#timing-functions
|
|
133
133
|
*/
|
|
134
|
-
$ease-in-quad: cubic-bezier(0.
|
|
135
|
-
$ease-in-cubic: cubic-bezier(0.
|
|
136
|
-
$ease-in-quart: cubic-bezier(0.895, 0.
|
|
137
|
-
$ease-in-quint: cubic-bezier(0.755, 0.
|
|
138
|
-
$ease-in-sine: cubic-bezier(0.
|
|
139
|
-
$ease-in-expo: cubic-bezier(0.
|
|
140
|
-
$ease-in-circ: cubic-bezier(0.
|
|
141
|
-
$ease-in-back: cubic-bezier(0.
|
|
142
|
-
|
|
143
|
-
$ease-out-quad: cubic-bezier(0.
|
|
144
|
-
$ease-out-cubic: cubic-bezier(0.215, 0.
|
|
145
|
-
$ease-out-quart: cubic-bezier(0.165, 0.
|
|
146
|
-
$ease-out-quint: cubic-bezier(0.
|
|
147
|
-
$ease-out-sine: cubic-bezier(0.
|
|
148
|
-
$ease-out-expo: cubic-bezier(0.
|
|
149
|
-
$ease-out-circ: cubic-bezier(0.075, 0.
|
|
150
|
-
$ease-out-back: cubic-bezier(0.175, 0.885, 0.
|
|
151
|
-
|
|
152
|
-
$ease-in-out-quad: cubic-bezier(0.455, 0.
|
|
153
|
-
$ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1
|
|
154
|
-
$ease-in-out-quart: cubic-bezier(0.
|
|
155
|
-
$ease-in-out-quint: cubic-bezier(0.
|
|
156
|
-
$ease-in-out-sine: cubic-bezier(0.445, 0.
|
|
157
|
-
$ease-in-out-expo: cubic-bezier(1
|
|
158
|
-
$ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.
|
|
159
|
-
$ease-in-out-back: cubic-bezier(0.
|
|
134
|
+
$ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53) !default;
|
|
135
|
+
$ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19) !default;
|
|
136
|
+
$ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22) !default;
|
|
137
|
+
$ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06) !default;
|
|
138
|
+
$ease-in-sine: cubic-bezier(0.47, 0, 0.745, 0.715) !default;
|
|
139
|
+
$ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035) !default;
|
|
140
|
+
$ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335) !default;
|
|
141
|
+
$ease-in-back: cubic-bezier(0.6, -0.28, 0.735, 0.045) !default;
|
|
142
|
+
|
|
143
|
+
$ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94) !default;
|
|
144
|
+
$ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1) !default;
|
|
145
|
+
$ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1) !default;
|
|
146
|
+
$ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1) !default;
|
|
147
|
+
$ease-out-sine: cubic-bezier(0.39, 0.575, 0.565, 1) !default;
|
|
148
|
+
$ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1) !default;
|
|
149
|
+
$ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1) !default;
|
|
150
|
+
$ease-out-back: cubic-bezier(0.175, 0.885, 0.32, 1.275) !default;
|
|
151
|
+
|
|
152
|
+
$ease-in-out-quad: cubic-bezier(0.455, 0.03, 0.515, 0.955) !default;
|
|
153
|
+
$ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1) !default;
|
|
154
|
+
$ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1) !default;
|
|
155
|
+
$ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1) !default;
|
|
156
|
+
$ease-in-out-sine: cubic-bezier(0.445, 0.05, 0.55, 0.95) !default;
|
|
157
|
+
$ease-in-out-expo: cubic-bezier(1, 0, 0, 1) !default;
|
|
158
|
+
$ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86) !default;
|
|
159
|
+
$ease-in-out-back: cubic-bezier(0.68, -0.55, 0.265, 1.55) !default;
|
|
160
160
|
|
|
161
161
|
/**
|
|
162
162
|
* 组件变量
|
|
@@ -197,21 +197,17 @@ $at-fab-size-sm: 40px * $hd !default;
|
|
|
197
197
|
$at-fab-icon-size: 24px * $hd !default;
|
|
198
198
|
$at-fab-bg-color: $color-brand;
|
|
199
199
|
$at-fab-bg-color-active: $color-brand-dark;
|
|
200
|
-
$at-fab-box-shadow:
|
|
201
|
-
0
|
|
202
|
-
|
|
203
|
-
0
|
|
204
|
-
$at-fab-box-shadow-active:
|
|
205
|
-
0 14px 16px -8px rgba(0, 0, 0, 0.2),
|
|
206
|
-
0 24px 34px 4px rgba(0, 0, 0, 0.14),
|
|
207
|
-
0 10px 44px 8px rgba(0, 0, 0, 0.12) !default;
|
|
200
|
+
$at-fab-box-shadow: 0 6px 10px -2px rgba(0, 0, 0, 0.2),
|
|
201
|
+
0 12px 20px 0 rgba(0, 0, 0, 0.14), 0 2px 36px 0 rgba(0, 0, 0, 0.12) !default;
|
|
202
|
+
$at-fab-box-shadow-active: 0 14px 16px -8px rgba(0, 0, 0, 0.2),
|
|
203
|
+
0 24px 34px 4px rgba(0, 0, 0, 0.14), 0 10px 44px 8px rgba(0, 0, 0, 0.12) !default;
|
|
208
204
|
|
|
209
205
|
/* Calendar */
|
|
210
206
|
$at-calendar-day-size: 72px !default;
|
|
211
207
|
$at-calendar-mark-size: 8px !default;
|
|
212
|
-
$at-calendar-header-color: #
|
|
208
|
+
$at-calendar-header-color: #b8bfc6 !default;
|
|
213
209
|
$at-calendar-main-color: $color-brand !default;
|
|
214
|
-
$at-calendar-day-color: #
|
|
210
|
+
$at-calendar-day-color: #7c86a2 !default;
|
|
215
211
|
|
|
216
212
|
/* Card */
|
|
217
213
|
$at-card-thumb-size: 32px !default;
|
|
@@ -234,7 +230,7 @@ $at-checkbox-desc-color: $color-grey-2 !default;
|
|
|
234
230
|
/* Countdown */
|
|
235
231
|
$at-countdown-font-size: $font-size-lg !default;
|
|
236
232
|
$at-countdown-num-color: $color-text-base !default;
|
|
237
|
-
$at-countdown-card-num-color: #
|
|
233
|
+
$at-countdown-card-num-color: #ff4949 !default;
|
|
238
234
|
$at-countdown-card-num-bg-color: $color-white !default;
|
|
239
235
|
|
|
240
236
|
/* Curtain */
|
|
@@ -326,8 +322,8 @@ $at-nav-bar-title-color: $color-text-base !default;
|
|
|
326
322
|
$at-nav-bar-link-color: $color-brand !default;
|
|
327
323
|
|
|
328
324
|
/* NoticeBar */
|
|
329
|
-
$at-noticebar-text-color: #
|
|
330
|
-
$at-noticebar-bg-color: #
|
|
325
|
+
$at-noticebar-text-color: #de8c17 !default;
|
|
326
|
+
$at-noticebar-bg-color: #fcf6ed !default;
|
|
331
327
|
$at-noticebar-font-size: $font-size-sm !default;
|
|
332
328
|
$at-noticebar-icon-size: 30px !default;
|
|
333
329
|
$at-noticebar-btn-close-size: 32px !default;
|
|
@@ -359,15 +355,15 @@ $at-radio-check-color: $color-brand !default;
|
|
|
359
355
|
/* Range */
|
|
360
356
|
$at-range-slider-size: 28PX !default;
|
|
361
357
|
$at-range-rail-height: 2PX !default;
|
|
362
|
-
$at-range-rail-bg-color: #
|
|
358
|
+
$at-range-rail-bg-color: #e9e9e9 !default;
|
|
363
359
|
$at-range-track-bg-color: $color-brand !default;
|
|
364
360
|
$at-range-slider-color: $color-white !default;
|
|
365
361
|
$at-range-slider-shadow: 0 0 4PX 0 rgba(0, 0, 0, 0.2) !default;
|
|
366
362
|
|
|
367
363
|
/* Rate */
|
|
368
364
|
$at-rate-icon-size: 20PX !default;
|
|
369
|
-
$at-rate-star-color: #
|
|
370
|
-
$at-rate-star-color-on: #
|
|
365
|
+
$at-rate-star-color: #ececec !default;
|
|
366
|
+
$at-rate-star-color-on: #ffca3e !default;
|
|
371
367
|
|
|
372
368
|
/* SearchBar */
|
|
373
369
|
$at-search-bar-btn-color: $color-white !default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taro-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "UI KIT for Taro",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
"require": "./dist/components/*/index.js",
|
|
24
24
|
"import": "./dist/components/*/index.js"
|
|
25
25
|
},
|
|
26
|
+
"./lib/style/*": "./dist/style/*",
|
|
27
|
+
"./lib/*": "./dist/*",
|
|
26
28
|
"./dist/style/index.css": "./dist/style/index.css",
|
|
27
29
|
"./dist/*": "./dist/*"
|
|
28
30
|
},
|
|
@@ -108,8 +110,8 @@
|
|
|
108
110
|
"build:dts": "tsc --project tsconfig.build.json --emitDeclarationOnly",
|
|
109
111
|
"build:css": "node -e \"require('fs').cpSync('src/style', 'dist/style', {recursive:true, force:true})\" && sass --silence-deprecation=import --silence-deprecation=slash-div src/style/index.scss dist/style/index.css",
|
|
110
112
|
"lint": "eslint ./src --fix",
|
|
111
|
-
"lint:style": "stylelint \"src/**/*.scss\"
|
|
112
|
-
"lint:style-fix": "stylelint \"src/**/*.scss\" --
|
|
113
|
+
"lint:style": "stylelint \"src/**/*.scss\"",
|
|
114
|
+
"lint:style-fix": "stylelint \"src/**/*.scss\" --fix",
|
|
113
115
|
"pretest": "pnpm run build",
|
|
114
116
|
"test": "cross-env NODE_ENV=test pnpm exec jest --coverage",
|
|
115
117
|
"test:ci": "pnpm run test",
|
|
@@ -73,15 +73,8 @@ export default class AtAccordion extends React.Component<
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
public render(): JSX.Element {
|
|
76
|
-
const {
|
|
77
|
-
|
|
78
|
-
className,
|
|
79
|
-
title,
|
|
80
|
-
icon,
|
|
81
|
-
hasBorder,
|
|
82
|
-
open,
|
|
83
|
-
note
|
|
84
|
-
} = this.props
|
|
76
|
+
const { customStyle, className, title, icon, hasBorder, open, note } =
|
|
77
|
+
this.props
|
|
85
78
|
const { wrapperHeight } = this.state
|
|
86
79
|
|
|
87
80
|
const rootCls = classNames('at-accordion', className)
|
|
@@ -3,9 +3,7 @@ import React from 'react'
|
|
|
3
3
|
import { View } from '@tarojs/components'
|
|
4
4
|
import { AtActionSheetBodyProps } from '../../../../types/action-sheet'
|
|
5
5
|
|
|
6
|
-
export default class AtActionSheetBody extends React.Component<
|
|
7
|
-
AtActionSheetBodyProps
|
|
8
|
-
> {
|
|
6
|
+
export default class AtActionSheetBody extends React.Component<AtActionSheetBodyProps> {
|
|
9
7
|
public render(): JSX.Element {
|
|
10
8
|
const rootClass = classNames('at-action-sheet__body', this.props.className)
|
|
11
9
|
return <View className={rootClass}>{this.props.children}</View>
|
|
@@ -4,9 +4,7 @@ import React from 'react'
|
|
|
4
4
|
import { View } from '@tarojs/components'
|
|
5
5
|
import { AtActionSheetItemProps } from '../../../../../types/action-sheet'
|
|
6
6
|
|
|
7
|
-
export default class AtActionSheetItem extends React.Component<
|
|
8
|
-
AtActionSheetItemProps
|
|
9
|
-
> {
|
|
7
|
+
export default class AtActionSheetItem extends React.Component<AtActionSheetItemProps> {
|
|
10
8
|
public static defaultProps: AtActionSheetItemProps
|
|
11
9
|
public static propTypes: InferProps<AtActionSheetItemProps>
|
|
12
10
|
|
|
@@ -4,9 +4,7 @@ import React from 'react'
|
|
|
4
4
|
import { View } from '@tarojs/components'
|
|
5
5
|
import { AtActionSheetFooterProps } from '../../../../types/action-sheet'
|
|
6
6
|
|
|
7
|
-
export default class AtActionSheetFooter extends React.Component<
|
|
8
|
-
AtActionSheetFooterProps
|
|
9
|
-
> {
|
|
7
|
+
export default class AtActionSheetFooter extends React.Component<AtActionSheetFooterProps> {
|
|
10
8
|
public static defaultProps: AtActionSheetFooterProps
|
|
11
9
|
public static propTypes: InferProps<AtActionSheetFooterProps>
|
|
12
10
|
|
|
@@ -3,9 +3,7 @@ import React from 'react'
|
|
|
3
3
|
import { View } from '@tarojs/components'
|
|
4
4
|
import { AtActionSheetHeaderProps } from '../../../../types/action-sheet'
|
|
5
5
|
|
|
6
|
-
export default class AtActionSheetHeader extends React.Component<
|
|
7
|
-
AtActionSheetHeaderProps
|
|
8
|
-
> {
|
|
6
|
+
export default class AtActionSheetHeader extends React.Component<AtActionSheetHeaderProps> {
|
|
9
7
|
public render(): JSX.Element {
|
|
10
8
|
const rootClass = classNames(
|
|
11
9
|
'at-action-sheet__header',
|
|
@@ -5,9 +5,7 @@ import { Text, View } from '@tarojs/components'
|
|
|
5
5
|
import { AtActivityIndicatorProps } from '../../../types/activity-indicator'
|
|
6
6
|
import AtLoading from '../loading/index'
|
|
7
7
|
|
|
8
|
-
export default class AtActivityIndicator extends React.Component<
|
|
9
|
-
AtActivityIndicatorProps
|
|
10
|
-
> {
|
|
8
|
+
export default class AtActivityIndicator extends React.Component<AtActivityIndicatorProps> {
|
|
11
9
|
public static defaultProps: AtActivityIndicatorProps
|
|
12
10
|
public static propTypes: InferProps<AtActivityIndicatorProps>
|
|
13
11
|
|
|
@@ -15,7 +15,7 @@ if (process.env.TARO_ENV === 'rn') {
|
|
|
15
15
|
const SIZE_CLASS = {
|
|
16
16
|
large: 'large',
|
|
17
17
|
normal: 'normal',
|
|
18
|
-
small: 'small'
|
|
18
|
+
small: 'small'
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export default class AtAvatar extends React.Component<
|
|
@@ -29,7 +29,7 @@ export default class AtAvatar extends React.Component<
|
|
|
29
29
|
super(props)
|
|
30
30
|
this.state = {
|
|
31
31
|
isWEAPP: Taro.getEnv() === Taro.ENV_TYPE.WEAPP,
|
|
32
|
-
_width: 0
|
|
32
|
+
_width: 0
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -45,7 +45,7 @@ export default class AtAvatar extends React.Component<
|
|
|
45
45
|
const iconSize = SIZE_CLASS[size || 'normal']
|
|
46
46
|
const classObject = {
|
|
47
47
|
[`at-avatar--${iconSize}`]: iconSize,
|
|
48
|
-
'at-avatar--circle': circle
|
|
48
|
+
'at-avatar--circle': circle
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
let letter = ''
|
|
@@ -85,7 +85,7 @@ AtAvatar.defaultProps = {
|
|
|
85
85
|
text: '',
|
|
86
86
|
image: '',
|
|
87
87
|
customStyle: {},
|
|
88
|
-
className: ''
|
|
88
|
+
className: ''
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
AtAvatar.propTypes = {
|
|
@@ -95,5 +95,5 @@ AtAvatar.propTypes = {
|
|
|
95
95
|
image: PropTypes.string,
|
|
96
96
|
openData: PropTypes.object,
|
|
97
97
|
customStyle: PropTypes.oneOfType([PropTypes.object]),
|
|
98
|
-
className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
|
|
98
|
+
className: PropTypes.oneOfType([PropTypes.array, PropTypes.string])
|
|
99
99
|
}
|
|
@@ -12,13 +12,8 @@ export default class AtCalendarController extends React.Component<
|
|
|
12
12
|
AtCalendarControllerState
|
|
13
13
|
> {
|
|
14
14
|
public render(): JSX.Element {
|
|
15
|
-
const {
|
|
16
|
-
|
|
17
|
-
minDate,
|
|
18
|
-
maxDate,
|
|
19
|
-
monthFormat,
|
|
20
|
-
hideArrow
|
|
21
|
-
} = this.props
|
|
15
|
+
const { generateDate, minDate, maxDate, monthFormat, hideArrow } =
|
|
16
|
+
this.props
|
|
22
17
|
|
|
23
18
|
const dayjsDate: Dayjs = dayjs(generateDate)
|
|
24
19
|
const dayjsMinDate: Dayjs | boolean = !!minDate && dayjs(minDate)
|
|
@@ -22,9 +22,9 @@ export default class AtCard extends React.Component<AtCardProps> {
|
|
|
22
22
|
const rootClass = classNames(
|
|
23
23
|
'at-card',
|
|
24
24
|
{
|
|
25
|
-
'at-card--full': isFull
|
|
25
|
+
'at-card--full': isFull
|
|
26
26
|
},
|
|
27
|
-
this.props.className
|
|
27
|
+
this.props.className
|
|
28
28
|
)
|
|
29
29
|
// const iconClass = classNames({
|
|
30
30
|
// 'at-icon': true,
|
|
@@ -81,7 +81,7 @@ AtCard.defaultProps = {
|
|
|
81
81
|
thumb: '',
|
|
82
82
|
title: '',
|
|
83
83
|
extra: '',
|
|
84
|
-
extraStyle: {}
|
|
84
|
+
extraStyle: {}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
AtCard.propTypes = {
|
|
@@ -93,5 +93,5 @@ AtCard.propTypes = {
|
|
|
93
93
|
icon: PropTypes.object,
|
|
94
94
|
onClick: PropTypes.func,
|
|
95
95
|
renderIcon: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
96
|
-
extraStyle: PropTypes.object
|
|
96
|
+
extraStyle: PropTypes.object // 自定义extra样式
|
|
97
97
|
}
|