taro-ui 3.3.1 → 3.3.3
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/dist/common/component.d.ts +10 -0
- package/dist/common/component.js +32 -0
- package/dist/common/component.js.map +1 -0
- package/dist/common/utils.d.ts +41 -0
- package/dist/common/utils.js +203 -0
- package/dist/common/utils.js.map +1 -0
- package/dist/components/accordion/index.d.ts +14 -0
- package/dist/components/accordion/index.js +121 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/action-sheet/body/index.d.ts +5 -0
- package/dist/components/action-sheet/body/index.js +13 -0
- package/dist/components/action-sheet/body/index.js.map +1 -0
- package/dist/components/action-sheet/body/item/index.d.ts +9 -0
- package/dist/components/action-sheet/body/item/index.js +25 -0
- package/dist/components/action-sheet/body/item/index.js.map +1 -0
- package/dist/components/action-sheet/footer/index.d.ts +9 -0
- package/dist/components/action-sheet/footer/index.js +28 -0
- package/dist/components/action-sheet/footer/index.js.map +1 -0
- package/dist/components/action-sheet/header/index.d.ts +5 -0
- package/dist/components/action-sheet/header/index.js +16 -0
- package/dist/components/action-sheet/header/index.js.map +1 -0
- package/dist/components/action-sheet/index.d.ts +14 -0
- package/dist/components/action-sheet/index.js +76 -0
- package/dist/components/action-sheet/index.js.map +1 -0
- package/dist/components/activity-indicator/index.d.ts +8 -0
- package/dist/components/activity-indicator/index.js +39 -0
- package/dist/components/activity-indicator/index.js.map +1 -0
- package/dist/components/avatar/index.d.ts +9 -0
- package/dist/components/avatar/index.js +68 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/index.d.ts +10 -0
- package/dist/components/badge/index.js +51 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/button/index.d.ts +15 -0
- package/dist/components/button/index.js +177 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/calendar/body/index.d.ts +26 -0
- package/dist/components/calendar/body/index.js +289 -0
- package/dist/components/calendar/body/index.js.map +1 -0
- package/dist/components/calendar/common/constant.d.ts +3 -0
- package/dist/components/calendar/common/constant.js +9 -0
- package/dist/components/calendar/common/constant.js.map +1 -0
- package/dist/components/calendar/common/helper.d.ts +4 -0
- package/dist/components/calendar/common/helper.js +84 -0
- package/dist/components/calendar/common/helper.js.map +1 -0
- package/dist/components/calendar/common/plugins.d.ts +11 -0
- package/dist/components/calendar/common/plugins.js +55 -0
- package/dist/components/calendar/common/plugins.js.map +1 -0
- package/dist/components/calendar/controller/index.d.ts +5 -0
- package/dist/components/calendar/controller/index.js +51 -0
- package/dist/components/calendar/controller/index.js.map +1 -0
- package/dist/components/calendar/index.d.ts +20 -0
- package/dist/components/calendar/index.js +244 -0
- package/dist/components/calendar/index.js.map +1 -0
- package/dist/components/calendar/ui/date-list/index.d.ts +12 -0
- package/dist/components/calendar/ui/date-list/index.js +54 -0
- package/dist/components/calendar/ui/date-list/index.js.map +1 -0
- package/dist/components/calendar/ui/day-list/index.d.ts +4 -0
- package/dist/components/calendar/ui/day-list/index.js +11 -0
- package/dist/components/calendar/ui/day-list/index.js.map +1 -0
- package/dist/components/card/index.d.ts +9 -0
- package/dist/components/card/index.js +80 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/checkbox/index.d.ts +9 -0
- package/dist/components/checkbox/index.js +59 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/countdown/index.d.ts +20 -0
- package/dist/components/countdown/index.js +152 -0
- package/dist/components/countdown/index.js.map +1 -0
- package/dist/components/countdown/item/index.d.ts +9 -0
- package/dist/components/countdown/item/index.js +24 -0
- package/dist/components/countdown/item/index.js.map +1 -0
- package/dist/components/curtain/index.d.ts +10 -0
- package/dist/components/curtain/index.js +62 -0
- package/dist/components/curtain/index.js.map +1 -0
- package/dist/components/divider/index.d.ts +8 -0
- package/dist/components/divider/index.js +57 -0
- package/dist/components/divider/index.js.map +1 -0
- package/dist/components/drawer/index.d.ts +16 -0
- package/dist/components/drawer/index.js +114 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/fab/index.d.ts +9 -0
- package/dist/components/fab/index.js +29 -0
- package/dist/components/fab/index.js.map +1 -0
- package/dist/components/flex/index.d.ts +7 -0
- package/dist/components/flex/index.js +41 -0
- package/dist/components/flex/index.js.map +1 -0
- package/dist/components/flex/item/index.d.ts +7 -0
- package/dist/components/flex/item/index.js +34 -0
- package/dist/components/flex/item/index.js.map +1 -0
- package/dist/components/float-layout/index.d.ts +13 -0
- package/dist/components/float-layout/index.js +104 -0
- package/dist/components/float-layout/index.js.map +1 -0
- package/dist/components/form/index.d.ts +10 -0
- package/dist/components/form/index.js +43 -0
- package/dist/components/form/index.js.map +1 -0
- package/dist/components/grid/index.d.ts +9 -0
- package/dist/components/grid/index.js +101 -0
- package/dist/components/grid/index.js.map +1 -0
- package/dist/components/icon/index.d.ts +9 -0
- package/dist/components/icon/index.js +54 -0
- package/dist/components/icon/index.js.map +1 -0
- package/dist/components/image-picker/index.d.ts +11 -0
- package/dist/components/image-picker/index.js +164 -0
- package/dist/components/image-picker/index.js.map +1 -0
- package/dist/components/indexes/index.d.ts +29 -0
- package/dist/components/indexes/index.js +272 -0
- package/dist/components/indexes/index.js.map +1 -0
- package/dist/components/input/index.d.ts +17 -0
- package/dist/components/input/index.js +232 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input-number/index.d.ts +13 -0
- package/dist/components/input-number/index.js +193 -0
- package/dist/components/input-number/index.js.map +1 -0
- package/dist/components/list/index.d.ts +8 -0
- package/dist/components/list/index.js +26 -0
- package/dist/components/list/index.js.map +1 -0
- package/dist/components/list/item/index.d.ts +11 -0
- package/dist/components/list/item/index.js +152 -0
- package/dist/components/list/item/index.js.map +1 -0
- package/dist/components/load-more/index.d.ts +9 -0
- package/dist/components/load-more/index.js +72 -0
- package/dist/components/load-more/index.js.map +1 -0
- package/dist/components/loading/index.d.ts +12 -0
- package/dist/components/loading/index.js +32 -0
- package/dist/components/loading/index.js.map +1 -0
- package/dist/components/message/index.d.ts +15 -0
- package/dist/components/message/index.js +78 -0
- package/dist/components/message/index.js.map +1 -0
- package/dist/components/modal/action/index.d.ts +8 -0
- package/dist/components/modal/action/index.js +26 -0
- package/dist/components/modal/action/index.js.map +1 -0
- package/dist/components/modal/content/index.d.ts +5 -0
- package/dist/components/modal/content/index.js +13 -0
- package/dist/components/modal/content/index.js.map +1 -0
- package/dist/components/modal/header/index.d.ts +5 -0
- package/dist/components/modal/header/index.js +13 -0
- package/dist/components/modal/header/index.js.map +1 -0
- package/dist/components/modal/index.d.ts +15 -0
- package/dist/components/modal/index.js +106 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/nav-bar/index.d.ts +12 -0
- package/dist/components/nav-bar/index.js +217 -0
- package/dist/components/nav-bar/index.js.map +1 -0
- package/dist/components/noticebar/index.d.ts +16 -0
- package/dist/components/noticebar/index.js +186 -0
- package/dist/components/noticebar/index.js.map +1 -0
- package/dist/components/pagination/index.d.ts +12 -0
- package/dist/components/pagination/index.js +146 -0
- package/dist/components/pagination/index.js.map +1 -0
- package/dist/components/progress/index.d.ts +7 -0
- package/dist/components/progress/index.js +53 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/radio/index.d.ts +9 -0
- package/dist/components/radio/index.js +54 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/range/index.d.ts +22 -0
- package/dist/components/range/index.js +207 -0
- package/dist/components/range/index.js.map +1 -0
- package/dist/components/rate/index.d.ts +9 -0
- package/dist/components/rate/index.js +82 -0
- package/dist/components/rate/index.js.map +1 -0
- package/dist/components/search-bar/index.d.ts +16 -0
- package/dist/components/search-bar/index.js +176 -0
- package/dist/components/search-bar/index.js.map +1 -0
- package/dist/components/segmented-control/index.d.ts +9 -0
- package/dist/components/segmented-control/index.js +84 -0
- package/dist/components/segmented-control/index.js.map +1 -0
- package/dist/components/slider/index.d.ts +13 -0
- package/dist/components/slider/index.js +115 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/steps/index.d.ts +9 -0
- package/dist/components/steps/index.js +67 -0
- package/dist/components/steps/index.js.map +1 -0
- package/dist/components/swipe-action/index.d.ts +27 -0
- package/dist/components/swipe-action/index.js +220 -0
- package/dist/components/swipe-action/index.js.map +1 -0
- package/dist/components/swipe-action/options/index.d.ts +5 -0
- package/dist/components/swipe-action/options/index.js +24 -0
- package/dist/components/swipe-action/options/index.js.map +1 -0
- package/dist/components/switch/index.d.ts +9 -0
- package/dist/components/switch/index.js +59 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/tab-bar/index.d.ts +9 -0
- package/dist/components/tab-bar/index.js +170 -0
- package/dist/components/tab-bar/index.js.map +1 -0
- package/dist/components/tabs/index.d.ts +24 -0
- package/dist/components/tabs/index.js +219 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tabs-pane/index.d.ts +8 -0
- package/dist/components/tabs-pane/index.js +43 -0
- package/dist/components/tabs-pane/index.js.map +1 -0
- package/dist/components/tag/index.d.ts +9 -0
- package/dist/components/tag/index.js +75 -0
- package/dist/components/tag/index.js.map +1 -0
- package/dist/components/textarea/index.d.ts +13 -0
- package/dist/components/textarea/index.js +141 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/timeline/index.d.ts +8 -0
- package/dist/components/timeline/index.js +76 -0
- package/dist/components/timeline/index.js.map +1 -0
- package/dist/components/toast/img.json +8 -0
- package/dist/components/toast/index.d.ts +16 -0
- package/dist/components/toast/index.js +124 -0
- package/dist/components/toast/index.js.map +1 -0
- package/{lib/index.js → dist/index.d.ts} +0 -2
- package/dist/index.esm.js +6020 -8272
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6104 -8332
- package/dist/index.js.map +1 -1
- package/dist/style/components/grid.scss +2 -2
- package/dist/style/components/index.scss +48 -48
- package/dist/style/components/list.scss +2 -2
- package/dist/style/index.css +11754 -0
- package/dist/style/index.css.map +1 -0
- package/dist/style/mixins/index.scss +13 -13
- package/dist/style/mixins/libs/shade.scss +4 -2
- package/dist/style/mixins/libs/tint.scss +4 -2
- package/dist/style/variables/default.scss +1 -1
- package/package.json +56 -33
- package/rn/components/action-sheet/index.tsx +8 -14
- package/rn/components/calendar/ui/date-list/index.tsx +1 -1
- package/rn/components/drawer/index.tsx +15 -15
- package/rn/components/float-layout/index.tsx +3 -2
- package/rn/components/input/index.tsx +14 -7
- package/rn/components/input-number/index.tsx +19 -19
- package/rn/components/message/index.tsx +1 -1
- package/rn/components/swipe-action/index.rn.tsx +4 -2
- package/rn/components/swipe-action/index.tsx +6 -5
- package/rn/components/tab-bar/index.tsx +1 -1
- package/rn/components/tabs/index.tsx +14 -14
- package/rn/components/textarea/index.tsx +2 -2
- package/dist/style/components/accordion.rn.scss +0 -79
- package/dist/style/components/action-sheet.rn.scss +0 -80
- package/dist/style/components/activity-indicator.rn.scss +0 -30
- package/dist/style/components/article.rn.scss +0 -59
- package/dist/style/components/avatar.rn.scss +0 -46
- package/dist/style/components/badge.rn.scss +0 -52
- package/dist/style/components/button.rn.scss +0 -80
- package/dist/style/components/calendar.rn.scss +0 -182
- package/dist/style/components/card.rn.scss +0 -88
- package/dist/style/components/checkbox.rn.scss +0 -108
- package/dist/style/components/countdown.rn.scss +0 -82
- package/dist/style/components/curtain.rn.scss +0 -129
- package/dist/style/components/divider.rn.scss +0 -33
- package/dist/style/components/drawer.rn.scss +0 -72
- package/dist/style/components/fab.rn.scss +0 -38
- package/dist/style/components/flex.rn.scss +0 -159
- package/dist/style/components/float-layout.rn.scss +0 -119
- package/dist/style/components/form.rn.scss +0 -12
- package/dist/style/components/grid.rn.scss +0 -104
- package/dist/style/components/icon.rn.scss +0 -221
- package/dist/style/components/image-picker.rn.scss +0 -108
- package/dist/style/components/index.rn.scss +0 -51
- package/dist/style/components/indexes.rn.scss +0 -53
- package/dist/style/components/input-number.rn.scss +0 -82
- package/dist/style/components/input.rn.scss +0 -149
- package/dist/style/components/list.rn.scss +0 -107
- package/dist/style/components/load-more.rn.scss +0 -28
- package/dist/style/components/loading.rn.scss +0 -45
- package/dist/style/components/message.rn.scss +0 -57
- package/dist/style/components/modal.rn.scss +0 -136
- package/dist/style/components/nav-bar.rn.scss +0 -123
- package/dist/style/components/noticebar.rn.scss +0 -111
- package/dist/style/components/pagination.rn.scss +0 -43
- package/dist/style/components/progress.rn.scss +0 -105
- package/dist/style/components/radio.rn.scss +0 -94
- package/dist/style/components/range.rn.scss +0 -52
- package/dist/style/components/rate.rn.scss +0 -48
- package/dist/style/components/search-bar.rn.scss +0 -134
- package/dist/style/components/segmented-control.rn.scss +0 -44
- package/dist/style/components/slider.rn.scss +0 -33
- package/dist/style/components/steps.rn.scss +0 -131
- package/dist/style/components/swipe-action.rn.scss +0 -53
- package/dist/style/components/switch.rn.scss +0 -61
- package/dist/style/components/tab-bar.rn.scss +0 -74
- package/dist/style/components/tabs.rn.scss +0 -205
- package/dist/style/components/tag.rn.scss +0 -74
- package/dist/style/components/textarea.rn.scss +0 -57
- package/dist/style/components/timeline.rn.scss +0 -89
- package/dist/style/components/toast.rn.scss +0 -112
- package/dist/style/index.rn.scss +0 -14
- package/dist/style/mixins/index.rn.scss +0 -18
- package/dist/style/mixins/libs/absolute-center.rn.scss +0 -9
- package/dist/style/mixins/libs/active.rn.scss +0 -10
- package/dist/style/mixins/libs/alignhack.rn.scss +0 -11
- package/dist/style/mixins/libs/border.rn.scss +0 -48
- package/dist/style/mixins/libs/clearfix.rn.scss +0 -21
- package/dist/style/mixins/libs/disabled.rn.scss +0 -6
- package/dist/style/mixins/libs/flex.rn.scss +0 -49
- package/dist/style/mixins/libs/hairline.rn.scss +0 -209
- package/dist/style/mixins/libs/line.rn.scss +0 -14
- package/dist/style/mixins/libs/overlay.rn.scss +0 -11
- package/dist/style/mixins/libs/placeholder.rn.scss +0 -12
- package/dist/style/mixins/libs/shade.rn.scss +0 -23
- package/dist/style/mixins/libs/tint.rn.scss +0 -23
- package/dist/style/themes/purple.rn.scss +0 -44
- package/dist/style/themes/red.rn.scss +0 -45
- package/dist/style/variables/default.rn.scss +0 -461
- package/lib/common/component.js +0 -33
- package/lib/common/component.js.map +0 -1
- package/lib/common/utils.js +0 -226
- package/lib/common/utils.js.map +0 -1
- package/lib/components/accordion/index.js +0 -116
- package/lib/components/accordion/index.js.map +0 -1
- package/lib/components/action-sheet/body/index.js +0 -10
- package/lib/components/action-sheet/body/index.js.map +0 -1
- package/lib/components/action-sheet/body/item/index.js +0 -22
- package/lib/components/action-sheet/body/item/index.js.map +0 -1
- package/lib/components/action-sheet/footer/index.js +0 -22
- package/lib/components/action-sheet/footer/index.js.map +0 -1
- package/lib/components/action-sheet/header/index.js +0 -10
- package/lib/components/action-sheet/header/index.js.map +0 -1
- package/lib/components/action-sheet/index.js +0 -71
- package/lib/components/action-sheet/index.js.map +0 -1
- package/lib/components/activity-indicator/index.js +0 -35
- package/lib/components/activity-indicator/index.js.map +0 -1
- package/lib/components/avatar/index.js +0 -64
- package/lib/components/avatar/index.js.map +0 -1
- package/lib/components/badge/index.js +0 -42
- package/lib/components/badge/index.js.map +0 -1
- package/lib/components/button/index.js +0 -125
- package/lib/components/button/index.js.map +0 -1
- package/lib/components/calendar/body/index.js +0 -193
- package/lib/components/calendar/body/index.js.map +0 -1
- package/lib/components/calendar/common/constant.js +0 -4
- package/lib/components/calendar/common/constant.js.map +0 -1
- package/lib/components/calendar/common/helper.js +0 -83
- package/lib/components/calendar/common/helper.js.map +0 -1
- package/lib/components/calendar/common/plugins.js +0 -71
- package/lib/components/calendar/common/plugins.js.map +0 -1
- package/lib/components/calendar/controller/index.js +0 -30
- package/lib/components/calendar/controller/index.js.map +0 -1
- package/lib/components/calendar/index.js +0 -207
- package/lib/components/calendar/index.js.map +0 -1
- package/lib/components/calendar/ui/date-list/index.js +0 -43
- package/lib/components/calendar/ui/date-list/index.js.map +0 -1
- package/lib/components/calendar/ui/day-list/index.js +0 -16
- package/lib/components/calendar/ui/day-list/index.js.map +0 -1
- package/lib/components/card/index.js +0 -59
- package/lib/components/card/index.js.map +0 -1
- package/lib/components/checkbox/index.js +0 -55
- package/lib/components/checkbox/index.js.map +0 -1
- package/lib/components/countdown/index.js +0 -137
- package/lib/components/countdown/index.js.map +0 -1
- package/lib/components/countdown/item/index.js +0 -24
- package/lib/components/countdown/item/index.js.map +0 -1
- package/lib/components/curtain/index.js +0 -45
- package/lib/components/curtain/index.js.map +0 -1
- package/lib/components/divider/index.js +0 -40
- package/lib/components/divider/index.js.map +0 -1
- package/lib/components/drawer/index.js +0 -93
- package/lib/components/drawer/index.js.map +0 -1
- package/lib/components/fab/index.js +0 -26
- package/lib/components/fab/index.js.map +0 -1
- package/lib/components/flex/index.js +0 -38
- package/lib/components/flex/index.js.map +0 -1
- package/lib/components/flex/item/index.js +0 -31
- package/lib/components/flex/item/index.js.map +0 -1
- package/lib/components/float-layout/index.js +0 -76
- package/lib/components/float-layout/index.js.map +0 -1
- package/lib/components/form/index.js +0 -30
- package/lib/components/form/index.js.map +0 -1
- package/lib/components/grid/index.js +0 -71
- package/lib/components/grid/index.js.map +0 -1
- package/lib/components/icon/index.js +0 -37
- package/lib/components/icon/index.js.map +0 -1
- package/lib/components/image-picker/index.js +0 -138
- package/lib/components/image-picker/index.js.map +0 -1
- package/lib/components/indexes/index.js +0 -215
- package/lib/components/indexes/index.js.map +0 -1
- package/lib/components/input/index.js +0 -168
- package/lib/components/input/index.js.map +0 -1
- package/lib/components/input-number/index.js +0 -165
- package/lib/components/input-number/index.js.map +0 -1
- package/lib/components/list/index.js +0 -19
- package/lib/components/list/index.js.map +0 -1
- package/lib/components/list/item/index.js +0 -105
- package/lib/components/list/item/index.js.map +0 -1
- package/lib/components/load-more/index.js +0 -48
- package/lib/components/load-more/index.js.map +0 -1
- package/lib/components/loading/index.js +0 -32
- package/lib/components/loading/index.js.map +0 -1
- package/lib/components/message/index.js +0 -69
- package/lib/components/message/index.js.map +0 -1
- package/lib/components/modal/action/index.js +0 -20
- package/lib/components/modal/action/index.js.map +0 -1
- package/lib/components/modal/content/index.js +0 -10
- package/lib/components/modal/content/index.js.map +0 -1
- package/lib/components/modal/header/index.js +0 -10
- package/lib/components/modal/header/index.js.map +0 -1
- package/lib/components/modal/index.js +0 -97
- package/lib/components/modal/index.js.map +0 -1
- package/lib/components/nav-bar/index.js +0 -105
- package/lib/components/nav-bar/index.js.map +0 -1
- package/lib/components/noticebar/index.js +0 -163
- package/lib/components/noticebar/index.js.map +0 -1
- package/lib/components/pagination/index.js +0 -115
- package/lib/components/pagination/index.js.map +0 -1
- package/lib/components/progress/index.js +0 -45
- package/lib/components/progress/index.js.map +0 -1
- package/lib/components/radio/index.js +0 -43
- package/lib/components/radio/index.js.map +0 -1
- package/lib/components/range/index.js +0 -152
- package/lib/components/range/index.js.map +0 -1
- package/lib/components/rate/index.js +0 -56
- package/lib/components/rate/index.js.map +0 -1
- package/lib/components/search-bar/index.js +0 -121
- package/lib/components/search-bar/index.js.map +0 -1
- package/lib/components/segmented-control/index.js +0 -59
- package/lib/components/segmented-control/index.js.map +0 -1
- package/lib/components/slider/index.js +0 -77
- package/lib/components/slider/index.js.map +0 -1
- package/lib/components/steps/index.js +0 -50
- package/lib/components/steps/index.js.map +0 -1
- package/lib/components/swipe-action/index.js +0 -171
- package/lib/components/swipe-action/index.js.map +0 -1
- package/lib/components/swipe-action/options/index.js +0 -10
- package/lib/components/swipe-action/options/index.js.map +0 -1
- package/lib/components/switch/index.js +0 -48
- package/lib/components/switch/index.js.map +0 -1
- package/lib/components/tab-bar/index.js +0 -96
- package/lib/components/tab-bar/index.js.map +0 -1
- package/lib/components/tabs/index.js +0 -190
- package/lib/components/tabs/index.js.map +0 -1
- package/lib/components/tabs-pane/index.js +0 -30
- package/lib/components/tabs-pane/index.js.map +0 -1
- package/lib/components/tag/index.js +0 -55
- package/lib/components/tag/index.js.map +0 -1
- package/lib/components/textarea/index.js +0 -95
- package/lib/components/textarea/index.js.map +0 -1
- package/lib/components/timeline/index.js +0 -53
- package/lib/components/timeline/index.js.map +0 -1
- package/lib/components/toast/img.json +0 -5
- package/lib/components/toast/index.js +0 -117
- package/lib/components/toast/index.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/types/accordion.d.ts +0 -49
- package/types/action-sheet.d.ts +0 -55
- package/types/activity-indicator.d.ts +0 -33
- package/types/avatar.d.ts +0 -39
- package/types/badge.d.ts +0 -24
- package/types/base.d.ts +0 -26
- package/types/button.d.ts +0 -70
- package/types/calendar.d.ts +0 -225
- package/types/card.d.ts +0 -48
- package/types/checkbox.d.ts +0 -24
- package/types/countdown.d.ts +0 -95
- package/types/curtain.d.ts +0 -26
- package/types/divider.d.ts +0 -33
- package/types/drawer.d.ts +0 -48
- package/types/fab.d.ts +0 -21
- package/types/flex.d.ts +0 -27
- package/types/float-button.d.ts +0 -26
- package/types/float-layout.d.ts +0 -73
- package/types/form.d.ts +0 -26
- package/types/grid.d.ts +0 -51
- package/types/icon.d.ts +0 -12
- package/types/image-picker.d.ts +0 -73
- package/types/index.d.ts +0 -55
- package/types/indexes.d.ts +0 -76
- package/types/input-number.d.ts +0 -89
- package/types/input.d.ts +0 -162
- package/types/list.d.ts +0 -84
- package/types/load-more.d.ts +0 -43
- package/types/message.d.ts +0 -43
- package/types/modal.d.ts +0 -62
- package/types/nav-bar.d.ts +0 -65
- package/types/noticebar.d.ts +0 -65
- package/types/pagination.d.ts +0 -51
- package/types/progress.d.ts +0 -30
- package/types/radio.d.ts +0 -47
- package/types/range.d.ts +0 -63
- package/types/rate.d.ts +0 -34
- package/types/search-bar.d.ts +0 -105
- package/types/segmented-control.d.ts +0 -44
- package/types/slider.d.ts +0 -73
- package/types/steps.d.ts +0 -69
- package/types/swipe-action.d.ts +0 -86
- package/types/switch.d.ts +0 -38
- package/types/tab-bar.d.ts +0 -98
- package/types/tabs-pane.d.ts +0 -25
- package/types/tabs.d.ts +0 -62
- package/types/tag.d.ts +0 -48
- package/types/textarea.d.ts +0 -113
- package/types/timeline.d.ts +0 -46
- package/types/toast.d.ts +0 -53
|
@@ -1,461 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Default variables
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
@import '../mixins/libs/tint';
|
|
6
|
-
|
|
7
|
-
$hd: 2 !default; // 基本单位
|
|
8
|
-
|
|
9
|
-
/* The Color of O2Team Brand */
|
|
10
|
-
$color-brand: #6190E8 !default;
|
|
11
|
-
$color-brand-light: #78A4F4 !default;
|
|
12
|
-
$color-brand-dark: #346FC2 !default;
|
|
13
|
-
|
|
14
|
-
/* Color */
|
|
15
|
-
$color-success: #13CE66 !default;
|
|
16
|
-
$color-error: #FF4949 !default;
|
|
17
|
-
$color-warning: #FFC82C !default;
|
|
18
|
-
$color-info: #78A4FA !default;
|
|
19
|
-
|
|
20
|
-
/* Color Palette */
|
|
21
|
-
$color-black-0: #000 !default;
|
|
22
|
-
$color-black-1: #333 !default;
|
|
23
|
-
$color-black-2: #7F7F7F !default;
|
|
24
|
-
$color-black-3: #B2B2B2 !default;
|
|
25
|
-
|
|
26
|
-
$color-grey-0: #333 !default;
|
|
27
|
-
$color-grey-1: #666 !default;
|
|
28
|
-
$color-grey-2: #999 !default;
|
|
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
|
-
|
|
34
|
-
$color-white: #FFF !default;
|
|
35
|
-
|
|
36
|
-
/* Text Color */
|
|
37
|
-
$color-text-base: #333 !default; // 文字的基本色
|
|
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
|
-
|
|
45
|
-
/* Link */
|
|
46
|
-
$color-link: #6190E8 !default;
|
|
47
|
-
$color-link-hover: #79A1EB !default;
|
|
48
|
-
$color-link-active: #4F7DE2 !default;
|
|
49
|
-
$color-link-disabled: #BFBFBF !default;
|
|
50
|
-
|
|
51
|
-
/* 背景色 */
|
|
52
|
-
$color-bg: #FFF !default;
|
|
53
|
-
$color-bg-base: #FAFBFC !default;
|
|
54
|
-
$color-bg-light: #ECF5FD !default;
|
|
55
|
-
$color-bg-lighter: tint($color-bg-light, 50%) !default;
|
|
56
|
-
$color-bg-grey: #F7F7F7 !default;
|
|
57
|
-
|
|
58
|
-
/* 边框颜色 */
|
|
59
|
-
$color-border-base: #C5D9E8 !default;
|
|
60
|
-
$color-border-split: tint($color-border-base, 20%) !default; // 分割线
|
|
61
|
-
$color-border-light: tint($color-border-base, 30%) !default;
|
|
62
|
-
$color-border-lighter: tint($color-border-base, 50%) !default;
|
|
63
|
-
$color-border-lightest: tint($color-border-base, 80%) !default;
|
|
64
|
-
$color-border-grey: #CCC !default;
|
|
65
|
-
|
|
66
|
-
/* 图标颜色 */
|
|
67
|
-
$color-icon-base: #CCC !default;
|
|
68
|
-
|
|
69
|
-
/* Border Radius */
|
|
70
|
-
$border-radius-sm: 2px * $hd !default;
|
|
71
|
-
$border-radius-md: 4px * $hd !default;
|
|
72
|
-
$border-radius-lg: 6px * $hd !default;
|
|
73
|
-
$border-radius-circle: 50% !default;
|
|
74
|
-
|
|
75
|
-
/* 透明度 */
|
|
76
|
-
$opacity-active: 0.6 !default; // Button 等组件点击态额透明度
|
|
77
|
-
$opacity-disabled: 0.3 !default; // Button 等组件禁用态的透明度
|
|
78
|
-
|
|
79
|
-
/* Font */
|
|
80
|
-
$font-size-xs: 10px * $hd !default; // 非常用字号,用于标签
|
|
81
|
-
$font-size-sm: 12px * $hd !default; // 用于辅助信息
|
|
82
|
-
$font-size-base: 14px * $hd !default; // 常用字号
|
|
83
|
-
$font-size-lg: 16px * $hd !default; // 常规标题
|
|
84
|
-
$font-size-xl: 18px * $hd !default; // 大标题
|
|
85
|
-
$font-size-xxl: 20px * $hd !default; // 用于大号的数字
|
|
86
|
-
|
|
87
|
-
/* Line Height */
|
|
88
|
-
$line-height-base: 1 !default; // 单行
|
|
89
|
-
$line-height-en: 1.3 !default; // 英文多行
|
|
90
|
-
$line-height-zh: 1.5 !default; // 中文多行
|
|
91
|
-
/* #ifndef rn */
|
|
92
|
-
$line-height-base: 1 !default; // 单行
|
|
93
|
-
$line-height-en: 1.3 !default; // 英文多行
|
|
94
|
-
$line-height-zh: 1.5 !default; // 中文多行
|
|
95
|
-
/* #endif */
|
|
96
|
-
/* 水平间距 */
|
|
97
|
-
$spacing-h-sm: 5px * $hd !default;
|
|
98
|
-
$spacing-h-md: 8px * $hd !default;
|
|
99
|
-
$spacing-h-lg: 12px * $hd !default;
|
|
100
|
-
$spacing-h-xl: 16px * $hd !default;
|
|
101
|
-
|
|
102
|
-
/* 垂直间距 */
|
|
103
|
-
$spacing-v-xs: 3px * $hd !default;
|
|
104
|
-
$spacing-v-sm: 6px * $hd !default;
|
|
105
|
-
$spacing-v-md: 9px * $hd !default;
|
|
106
|
-
$spacing-v-lg: 12px * $hd !default;
|
|
107
|
-
$spacing-v-xl: 15px * $hd !default;
|
|
108
|
-
|
|
109
|
-
/* 图标尺寸 */
|
|
110
|
-
$icon-size-sm: 18px * $hd !default;
|
|
111
|
-
$icon-size-md: 22px * $hd !default;
|
|
112
|
-
$icon-size-lg: 36px * $hd !default;
|
|
113
|
-
|
|
114
|
-
/* z-index */
|
|
115
|
-
$zindex-divider: 100 !default;
|
|
116
|
-
$zindex-steps: 500 !default;
|
|
117
|
-
$zindex-tab: 600 !default;
|
|
118
|
-
$zindex-form: 700 !default;
|
|
119
|
-
$zindex-nav: 800 !default;
|
|
120
|
-
$zindex-search-bar: 800 !default;
|
|
121
|
-
$zindex-indexes: 805 !default;
|
|
122
|
-
$zindex-flot-layout: 810 !default;
|
|
123
|
-
$zindex-drawer: 900 !default;
|
|
124
|
-
$zindex-modal: 1000 !default;
|
|
125
|
-
$zindex-action-sheet: 1010 !default;
|
|
126
|
-
$zindex-picker: 1010 !default;
|
|
127
|
-
$zindex-curtain: 1080 !default;
|
|
128
|
-
$zindex-message: 1090 !default;
|
|
129
|
-
$zindex-toast: 1090 !default;
|
|
130
|
-
|
|
131
|
-
/* timing function */
|
|
132
|
-
$timing-func: cubic-bezier(0.36, 0.66, 0.04, 1) !default;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* CSS cubic-bezier timing functions
|
|
136
|
-
* http://bourbon.io/docs/#timing-functions
|
|
137
|
-
*/
|
|
138
|
-
$ease-in-quad: cubic-bezier(0.550, 0.085, 0.680, 0.530) !default;
|
|
139
|
-
$ease-in-cubic: cubic-bezier(0.550, 0.055, 0.675, 0.190) !default;
|
|
140
|
-
$ease-in-quart: cubic-bezier(0.895, 0.030, 0.685, 0.220) !default;
|
|
141
|
-
$ease-in-quint: cubic-bezier(0.755, 0.050, 0.855, 0.060) !default;
|
|
142
|
-
$ease-in-sine: cubic-bezier(0.470, 0.000, 0.745, 0.715) !default;
|
|
143
|
-
$ease-in-expo: cubic-bezier(0.950, 0.050, 0.795, 0.035) !default;
|
|
144
|
-
$ease-in-circ: cubic-bezier(0.600, 0.040, 0.980, 0.335) !default;
|
|
145
|
-
$ease-in-back: cubic-bezier(0.600, -0.280, 0.735, 0.045) !default;
|
|
146
|
-
|
|
147
|
-
$ease-out-quad: cubic-bezier(0.250, 0.460, 0.450, 0.940) !default;
|
|
148
|
-
$ease-out-cubic: cubic-bezier(0.215, 0.610, 0.355, 1.000) !default;
|
|
149
|
-
$ease-out-quart: cubic-bezier(0.165, 0.840, 0.440, 1.000) !default;
|
|
150
|
-
$ease-out-quint: cubic-bezier(0.230, 1.000, 0.320, 1.000) !default;
|
|
151
|
-
$ease-out-sine: cubic-bezier(0.390, 0.575, 0.565, 1.000) !default;
|
|
152
|
-
$ease-out-expo: cubic-bezier(0.190, 1.000, 0.220, 1.000) !default;
|
|
153
|
-
$ease-out-circ: cubic-bezier(0.075, 0.820, 0.165, 1.000) !default;
|
|
154
|
-
$ease-out-back: cubic-bezier(0.175, 0.885, 0.320, 1.275) !default;
|
|
155
|
-
|
|
156
|
-
$ease-in-out-quad: cubic-bezier(0.455, 0.030, 0.515, 0.955) !default;
|
|
157
|
-
$ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1.000) !default;
|
|
158
|
-
$ease-in-out-quart: cubic-bezier(0.770, 0.000, 0.175, 1.000) !default;
|
|
159
|
-
$ease-in-out-quint: cubic-bezier(0.860, 0.000, 0.070, 1.000) !default;
|
|
160
|
-
$ease-in-out-sine: cubic-bezier(0.445, 0.050, 0.550, 0.950) !default;
|
|
161
|
-
$ease-in-out-expo: cubic-bezier(1.000, 0.000, 0.000, 1.000) !default;
|
|
162
|
-
$ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860) !default;
|
|
163
|
-
$ease-in-out-back: cubic-bezier(0.680, -0.550, 0.265, 1.550) !default;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* 组件变量
|
|
167
|
-
*/
|
|
168
|
-
|
|
169
|
-
/* Accordion */
|
|
170
|
-
$at-accordion-color-arrow: $color-grey-3 !default;
|
|
171
|
-
|
|
172
|
-
/* Activity Indicator */
|
|
173
|
-
$at-activity-indicator-font-size: 28px !default;
|
|
174
|
-
$at-activity-indicator-font-color: $color-grey-2 !default;
|
|
175
|
-
|
|
176
|
-
/* Avatar */
|
|
177
|
-
$at-avatar-color: $color-white !default;
|
|
178
|
-
$at-avatar-bg-color: $color-grey-4 !default;
|
|
179
|
-
$at-avatar-size-sm: 80px !default;
|
|
180
|
-
$at-avatar-size-md: 100px !default;
|
|
181
|
-
$at-avatar-size-lg: 120px !default;
|
|
182
|
-
|
|
183
|
-
/* Badge */
|
|
184
|
-
$at-badge-color: $color-white !default;
|
|
185
|
-
$at-badge-bg-color: $color-error !default;
|
|
186
|
-
$at-badge-bg: $at-badge-bg-color !default;
|
|
187
|
-
$at-badge-font-size: $font-size-xs !default;
|
|
188
|
-
$at-badge-dot-size: 20px !default;
|
|
189
|
-
|
|
190
|
-
/* Button */
|
|
191
|
-
$at-button-height: 92px !default;
|
|
192
|
-
$at-button-height-sm: 60px !default;
|
|
193
|
-
$at-button-color: $color-brand !default;
|
|
194
|
-
$at-button-border-color-primary: $color-brand !default;
|
|
195
|
-
$at-button-border-color-secondary: $color-brand !default;
|
|
196
|
-
$at-button-bg: $at-button-color !default;
|
|
197
|
-
|
|
198
|
-
/* Float Button */
|
|
199
|
-
$at-fab-size: 56px * $hd !default;
|
|
200
|
-
$at-fab-size-sm: 40px * $hd !default;
|
|
201
|
-
$at-fab-icon-size: 24px * $hd !default;
|
|
202
|
-
$at-fab-bg-color: $color-brand;
|
|
203
|
-
$at-fab-bg-color-active: $color-brand-dark;
|
|
204
|
-
$at-fab-box-shadow:
|
|
205
|
-
0 6px 10px -2px rgba(0, 0, 0, 0.2),
|
|
206
|
-
0 12px 20px 0 rgba(0, 0, 0, 0.14),
|
|
207
|
-
0 2px 36px 0 rgba(0, 0, 0, 0.12) !default;
|
|
208
|
-
$at-fab-box-shadow-active:
|
|
209
|
-
0 14px 16px -8px rgba(0, 0, 0, 0.2),
|
|
210
|
-
0 24px 34px 4px rgba(0, 0, 0, 0.14),
|
|
211
|
-
0 10px 44px 8px rgba(0, 0, 0, 0.12) !default;
|
|
212
|
-
|
|
213
|
-
/* Calendar */
|
|
214
|
-
$at-calendar-day-size: 72px !default;
|
|
215
|
-
$at-calendar-mark-size: 8px !default;
|
|
216
|
-
$at-calendar-header-color: #B8BFC6 !default;
|
|
217
|
-
$at-calendar-main-color: $color-brand !default;
|
|
218
|
-
$at-calendar-day-color: #7C86A2 !default;
|
|
219
|
-
|
|
220
|
-
/* Card */
|
|
221
|
-
$at-card-thumb-size: 32px !default;
|
|
222
|
-
$at-card-icon-size: 32px !default;
|
|
223
|
-
$at-card-title-color: $color-text-title !default;
|
|
224
|
-
$at-card-extra-color: $color-text-title !default;
|
|
225
|
-
$at-card-info-color: $color-text-base !default;
|
|
226
|
-
$at-card-note-color: $color-grey-2 !default;
|
|
227
|
-
|
|
228
|
-
/* Checkbox */
|
|
229
|
-
$at-checkbox-circle-size: 40px !default;
|
|
230
|
-
$at-checkbox-icon-size: $font-size-sm !default;
|
|
231
|
-
$at-checkbox-icon-color: $color-brand !default;
|
|
232
|
-
$at-checkbox-icon-color-checked: $color-white !default;
|
|
233
|
-
$at-checkbox-title-color: $color-text-base !default;
|
|
234
|
-
$at-checkbox-title-font-size: $font-size-lg !default;
|
|
235
|
-
$at-checkbox-desc-font-size: $font-size-sm !default;
|
|
236
|
-
$at-checkbox-desc-color: $color-grey-2 !default;
|
|
237
|
-
|
|
238
|
-
/* Countdown */
|
|
239
|
-
$at-countdown-font-size: $font-size-lg !default;
|
|
240
|
-
$at-countdown-num-color: $color-text-base !default;
|
|
241
|
-
$at-countdown-card-num-color: #FF4949 !default;
|
|
242
|
-
$at-countdown-card-num-bg-color: $color-white !default;
|
|
243
|
-
|
|
244
|
-
/* Curtain */
|
|
245
|
-
$at-curtain-btn-color: $color-white !default;
|
|
246
|
-
|
|
247
|
-
/* Divider */
|
|
248
|
-
$at-divider-height: 112px;
|
|
249
|
-
$at-divider-content-color: $color-brand !default;
|
|
250
|
-
$at-divider-font-size: $font-size-lg !default;
|
|
251
|
-
$at-divider-line-color: $color-grey-3 !default;
|
|
252
|
-
|
|
253
|
-
/* Drawer */
|
|
254
|
-
$at-drawer-content-width: 460px !default;
|
|
255
|
-
|
|
256
|
-
/* FloatLayout */
|
|
257
|
-
$float-layout-height-min: 600px !default;
|
|
258
|
-
$float-layout-height-max: 950px !default;
|
|
259
|
-
$float-layout-header-bg-color: $color-bg-grey !default;
|
|
260
|
-
$float-layout-title-color: $color-text-base !default;
|
|
261
|
-
$float-layout-title-font-size: $font-size-lg !default;
|
|
262
|
-
$float-layout-btn-color: $color-grey-3 !default;
|
|
263
|
-
|
|
264
|
-
/* Grid */
|
|
265
|
-
$at-grid-text-color: $color-text-base !default;
|
|
266
|
-
$at-grid-font-size: $font-size-lg !default;
|
|
267
|
-
$at-grid-img-size: 80px !default;
|
|
268
|
-
$at-gird-img-size-sm: 50px !default;
|
|
269
|
-
|
|
270
|
-
/* ImagePicker */
|
|
271
|
-
$at-image-picker-btn-add-color: $color-grey-3 !default;
|
|
272
|
-
$at-image-picker-btn-remove-color: $color-white !default;
|
|
273
|
-
$at-image-picker-btn-remove-bg-color: $color-grey-2 !default;
|
|
274
|
-
|
|
275
|
-
/* Indexes */
|
|
276
|
-
$at-indexes-nav-color: $color-link !default;
|
|
277
|
-
$at-indexes-nav-font-size: $font-size-sm !default;
|
|
278
|
-
$at-indexes-title-color: $color-black-2 !default;
|
|
279
|
-
$at-indexes-title-font-size: $font-size-sm !default;
|
|
280
|
-
$at-indexes-title-bg-color: $color-grey-6 !default;
|
|
281
|
-
|
|
282
|
-
/* InputNumber */
|
|
283
|
-
$at-input-number-text-color: $color-text-base !default;
|
|
284
|
-
$at-input-number-font-size: $font-size-base !default;
|
|
285
|
-
$at-input-number-font-size-lg: $font-size-xl !default;
|
|
286
|
-
$at-input-number-btn-color: $color-brand !default;
|
|
287
|
-
$at-input-number-btn-size: 30px !default;
|
|
288
|
-
$at-input-number-btn-size-lg: 36px !default;
|
|
289
|
-
$at-input-number-width-min: 80px !default;
|
|
290
|
-
$at-input-number-width-min-lg: 120px !default;
|
|
291
|
-
|
|
292
|
-
/* Input */
|
|
293
|
-
$at-input-label-color: $color-text-base !default;
|
|
294
|
-
$at-input-text-color: $color-text-base !default;
|
|
295
|
-
$at-input-font-size: $font-size-lg !default;
|
|
296
|
-
$at-input-placeholder-color: $color-grey-3 !default;
|
|
297
|
-
|
|
298
|
-
/* List */
|
|
299
|
-
$at-list-thumb-size: 56px !default;
|
|
300
|
-
$at-list-arrow-color: $color-grey-3 !default;
|
|
301
|
-
$at-list-text-color: $color-text-base !default;
|
|
302
|
-
$at-list-content-color: $color-grey-2 !default;
|
|
303
|
-
$at-list-extra-color: $color-grey-2 !default;
|
|
304
|
-
$at-list-extra-width: 235px !default;
|
|
305
|
-
|
|
306
|
-
/* LoadMore */
|
|
307
|
-
$at-load-more-height: 80PX !default;
|
|
308
|
-
$at-load-more-tips-color: $color-grey-1 !default;
|
|
309
|
-
$at-load-more-tips-size: $font-size-lg !default;
|
|
310
|
-
|
|
311
|
-
/* Loading */
|
|
312
|
-
$at-loading-size: 36px !default;
|
|
313
|
-
$at-loading-color: $color-brand !default;
|
|
314
|
-
|
|
315
|
-
/* Message */
|
|
316
|
-
$at-message-color: $color-white !default;
|
|
317
|
-
$at-message-font-size: $font-size-base !default;
|
|
318
|
-
$at-message-bg-color: $color-info !default;
|
|
319
|
-
|
|
320
|
-
/* Modal */
|
|
321
|
-
$at-modal-width: 540px !default;
|
|
322
|
-
$at-modal-header-text-color: $color-text-base !default;
|
|
323
|
-
$at-modal-content-text-color: $color-text-base !default;
|
|
324
|
-
$at-modal-btn-default-color: $color-text-base !default;
|
|
325
|
-
$at-modal-btn-confirm-color: $color-brand !default;
|
|
326
|
-
$at-modal-bg-color: $color-white !default;
|
|
327
|
-
|
|
328
|
-
/* NavBar */
|
|
329
|
-
$at-nav-bar-title-color: $color-text-base !default;
|
|
330
|
-
$at-nav-bar-link-color: $color-brand !default;
|
|
331
|
-
|
|
332
|
-
/* NoticeBar */
|
|
333
|
-
$at-noticebar-text-color: #DE8C17 !default;
|
|
334
|
-
$at-noticebar-bg-color: #FCF6ED !default;
|
|
335
|
-
$at-noticebar-font-size: $font-size-sm !default;
|
|
336
|
-
$at-noticebar-icon-size: 30px !default;
|
|
337
|
-
$at-noticebar-btn-close-size: 32px !default;
|
|
338
|
-
$at-noticebar-btn-close-color: $color-grey-3 !default;
|
|
339
|
-
|
|
340
|
-
/* Pagination */
|
|
341
|
-
$at-pagination-margin: 40px !default;
|
|
342
|
-
$at-pagination-num-color: $color-text-base !default;
|
|
343
|
-
$at-pagination-num-font-size: $font-size-base !default;
|
|
344
|
-
$at-pagination-current-num-color: $color-brand !default;
|
|
345
|
-
$at-pagination-icon-color: $color-text-base !default;
|
|
346
|
-
$at-pagination-icon-font-size: 32px !default;
|
|
347
|
-
|
|
348
|
-
/* Progress */
|
|
349
|
-
$at-progress-height: 16px !default;
|
|
350
|
-
$at-progress-text-size: $font-size-sm !default;
|
|
351
|
-
$at-progress-icon-size: $font-size-xl !default;
|
|
352
|
-
$at-progress-inner-bg-color: $color-grey-6 !default;
|
|
353
|
-
$at-progress-bar-bg-color: $color-brand-light !default;
|
|
354
|
-
$at-progress-bar-bg-color-active: $color-white !default;
|
|
355
|
-
|
|
356
|
-
/* Radio */
|
|
357
|
-
$at-radio-title-color: $color-text-base !default;
|
|
358
|
-
$at-radio-title-size: $font-size-lg !default;
|
|
359
|
-
$at-radio-desc-color: $color-grey-2 !default;
|
|
360
|
-
$at-radio-desc-size: $font-size-sm !default;
|
|
361
|
-
$at-radio-check-color: $color-brand !default;
|
|
362
|
-
|
|
363
|
-
/* Range */
|
|
364
|
-
$at-range-slider-size: 28PX !default;
|
|
365
|
-
$at-range-rail-height: 2PX !default;
|
|
366
|
-
$at-range-rail-bg-color: #E9E9E9 !default;
|
|
367
|
-
$at-range-track-bg-color: $color-brand !default;
|
|
368
|
-
$at-range-slider-color: $color-white !default;
|
|
369
|
-
$at-range-slider-shadow: 0 0 4PX 0 rgba(0, 0, 0, 0.2) !default;
|
|
370
|
-
|
|
371
|
-
/* Rate */
|
|
372
|
-
$at-rate-icon-size: 20PX !default;
|
|
373
|
-
$at-rate-star-color: #ECECEC !default;
|
|
374
|
-
$at-rate-star-color-on: #FFCA3E !default;
|
|
375
|
-
|
|
376
|
-
/* SearchBar */
|
|
377
|
-
$at-search-bar-btn-color: $color-white !default;
|
|
378
|
-
$at-search-bar-btn-bg-color: $color-brand !default;
|
|
379
|
-
|
|
380
|
-
/* SegmentedControl */
|
|
381
|
-
$at-segmented-control-color: $color-brand !default;
|
|
382
|
-
$at-segmented-control-color-active: $color-white !default;
|
|
383
|
-
$at-segmented-control-bg-color: transparent !default;
|
|
384
|
-
$at-segmented-control-font-size: $font-size-base !default;
|
|
385
|
-
|
|
386
|
-
/* Slider */
|
|
387
|
-
$at-slider-text-color: $color-grey-2 !default;
|
|
388
|
-
$at-slider-text-size: $font-size-base !default;
|
|
389
|
-
|
|
390
|
-
/* Steps */
|
|
391
|
-
$at-steps-circle-size: 56px !default;
|
|
392
|
-
$at-steps-icon-size: $font-size-sm !default;
|
|
393
|
-
$at-steps-color: $color-white !default;
|
|
394
|
-
$at-steps-color-active: $color-grey-2 !default;
|
|
395
|
-
$at-steps-bg-color: $color-grey-4 !default;
|
|
396
|
-
$at-steps-bg-color-active: $color-brand !default;
|
|
397
|
-
$at-steps-line-color: $color-grey-3 !default;
|
|
398
|
-
$at-steps-title-color: $color-black-0 !default;
|
|
399
|
-
$at-steps-title-size: $font-size-lg !default;
|
|
400
|
-
$at-steps-desc-color: $color-grey-3 !default;
|
|
401
|
-
$at-steps-desc-size: $font-size-sm !default;
|
|
402
|
-
|
|
403
|
-
/* SwipeAction */
|
|
404
|
-
$at-swipe-action-color: $color-white !default;
|
|
405
|
-
$at-swipe-action-font-size: $font-size-base !default;
|
|
406
|
-
$at-swipe-action-bg-color: $color-white !default;
|
|
407
|
-
$at-swipe-action-option-bg-color: $color-grey-2 !default;
|
|
408
|
-
|
|
409
|
-
/* Switch */
|
|
410
|
-
$at-switch-title-color: $color-text-base !default;
|
|
411
|
-
$at-switch-title-size: $font-size-base !default;
|
|
412
|
-
|
|
413
|
-
/* TabBar */
|
|
414
|
-
$at-tab-bar-bg-color: $color-white !default;
|
|
415
|
-
$at-tab-bar-color: $color-text-base !default;
|
|
416
|
-
$at-tab-bar-color-active: $color-brand !default;
|
|
417
|
-
$at-tab-bar-font-size: $font-size-base !default;
|
|
418
|
-
$at-tab-bar-icon-color: $color-grey-0 !default;
|
|
419
|
-
$at-tab-bar-icon-font-size: 48px !default;
|
|
420
|
-
$at-tab-bar-icon-image-size: 50px !default;
|
|
421
|
-
|
|
422
|
-
/* Tabs */
|
|
423
|
-
$at-tabs-color: $color-text-base !default;
|
|
424
|
-
$at-tabs-color-active: $color-brand !default;
|
|
425
|
-
$at-tabs-font-size: $font-size-base !default;
|
|
426
|
-
$at-tabs-line-height: 1PX !default;
|
|
427
|
-
$at-tabs-underline-color: $color-grey-5 !default;
|
|
428
|
-
$at-tabs-bg-color: $color-bg !default;
|
|
429
|
-
|
|
430
|
-
/* Tag */
|
|
431
|
-
$at-tag-height: 60px !default;
|
|
432
|
-
$at-tag-height-sm: 40px !default;
|
|
433
|
-
$at-tag-color: $color-grey-1 !default;
|
|
434
|
-
$at-tag-color-primary: $color-grey-1 !default;
|
|
435
|
-
$at-tag-color-active: $color-brand-light !default;
|
|
436
|
-
$at-tag-color-primary-active: $color-text-base-inverse !default;
|
|
437
|
-
$at-tag-font-size: $font-size-base !default;
|
|
438
|
-
$at-tag-font-size-sm: $font-size-xs !default;
|
|
439
|
-
$at-tag-bg-color: $color-bg-grey !default;
|
|
440
|
-
$at-tag-bg-color-primary: $color-bg-grey !default;
|
|
441
|
-
$at-tag-bg-color-active: $color-white !default;
|
|
442
|
-
$at-tag-bg-color-primary-active: $at-tag-color-active !default;
|
|
443
|
-
$at-tag-border-color: $at-tag-bg-color !default;
|
|
444
|
-
$at-tag-border-color-primary: $at-tag-bg-color !default;
|
|
445
|
-
$at-tag-border-color-active: $at-tag-color-active !default;
|
|
446
|
-
|
|
447
|
-
/* Textarea */
|
|
448
|
-
$at-textarea-font-size: $font-size-lg !default;
|
|
449
|
-
$at-textarea-tips-color: $color-text-placeholder !default;
|
|
450
|
-
$at-textarea-tips-size: $font-size-base !default;
|
|
451
|
-
|
|
452
|
-
/* Timeline */
|
|
453
|
-
$at-timeline-offset-left: 40px !default;
|
|
454
|
-
$at-timeline-title-color: $color-grey-0 !default;
|
|
455
|
-
$at-timeline-title-font-size: $font-size-base !default;
|
|
456
|
-
$at-timeline-desc-color: $color-grey-1 !default;
|
|
457
|
-
$at-timeline-desc-font-size: $font-size-sm !default;
|
|
458
|
-
$at-timeline-dot-size: 24px !default;
|
|
459
|
-
$at-timeline-dot-color: $color-bg !default;
|
|
460
|
-
$at-timeline-dot-border-color: $color-brand-light !default;
|
|
461
|
-
$at-timeline-line-color: $color-border-lighter !default;
|
package/lib/common/component.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
const objectToString = (style) => {
|
|
3
|
-
if (style && typeof style === 'object') {
|
|
4
|
-
let styleStr = '';
|
|
5
|
-
Object.keys(style).forEach(key => {
|
|
6
|
-
const lowerCaseKey = key.replace(/([A-Z])/g, '-$1').toLowerCase();
|
|
7
|
-
styleStr += `${lowerCaseKey}:${style[key]};`;
|
|
8
|
-
});
|
|
9
|
-
return styleStr;
|
|
10
|
-
}
|
|
11
|
-
else if (style && typeof style === 'string') {
|
|
12
|
-
return style;
|
|
13
|
-
}
|
|
14
|
-
return '';
|
|
15
|
-
};
|
|
16
|
-
export default class AtComponent extends Component {
|
|
17
|
-
/**
|
|
18
|
-
* 合并 style
|
|
19
|
-
* @param {Object|String} style1
|
|
20
|
-
* @param {Object|String} style2
|
|
21
|
-
* @returns {String}
|
|
22
|
-
*/
|
|
23
|
-
mergeStyle(style1, style2) {
|
|
24
|
-
if (style1 &&
|
|
25
|
-
typeof style1 === 'object' &&
|
|
26
|
-
style2 &&
|
|
27
|
-
typeof style2 === 'object') {
|
|
28
|
-
return Object.assign({}, style1, style2);
|
|
29
|
-
}
|
|
30
|
-
return objectToString(style1) + objectToString(style2);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../src/common/component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,MAAM,cAAc,GAAG,CAAC,KAAsB,EAAU,EAAE;IACxD,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QACtC,IAAI,QAAQ,GAAG,EAAE,CAAA;QACjB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YAC/B,MAAM,YAAY,GAAG,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,WAAW,EAAE,CAAA;YACjE,QAAQ,IAAI,GAAG,YAAY,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,CAAA;QAC9C,CAAC,CAAC,CAAA;QACF,OAAO,QAAQ,CAAA;KAChB;SAAM,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC7C,OAAO,KAAK,CAAA;KACb;IACD,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AAED,MAAM,CAAC,OAAO,OAAO,WAAkB,SAAQ,SAAe;IAC5D;;;;;OAKG;IACH,UAAU,CACR,MAAuB,EACvB,MAAuB;QAEvB,IACE,MAAM;YACN,OAAO,MAAM,KAAK,QAAQ;YAC1B,MAAM;YACN,OAAO,MAAM,KAAK,QAAQ,EAC1B;YACA,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;SACzC;QACD,OAAO,cAAc,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;IACxD,CAAC;CACF"}
|