react-vant-nova 1.0.0-test
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/README.md +99 -0
- package/bundle/index.css +6711 -0
- package/bundle/index.min.css +1 -0
- package/bundle/react-vant-nova.es.js +14636 -0
- package/bundle/react-vant-nova.js +25073 -0
- package/bundle/react-vant-nova.min.js +3 -0
- package/es/action-bar/ActionBar.d.ts +4 -0
- package/es/action-bar/ActionBar.js +32 -0
- package/es/action-bar/ActionBarButton.d.ts +6 -0
- package/es/action-bar/ActionBarButton.js +55 -0
- package/es/action-bar/ActionBarContext.d.ts +6 -0
- package/es/action-bar/ActionBarContext.js +3 -0
- package/es/action-bar/ActionBarIcon.d.ts +4 -0
- package/es/action-bar/ActionBarIcon.js +31 -0
- package/es/action-bar/PropsType.d.ts +34 -0
- package/es/action-bar/PropsType.js +1 -0
- package/es/action-bar/index.d.ts +11 -0
- package/es/action-bar/index.js +10 -0
- package/es/action-bar/style/index.css +76 -0
- package/es/action-bar/style/var.css +0 -0
- package/es/action-sheet/ActionSheet.d.ts +4 -0
- package/es/action-sheet/ActionSheet.js +136 -0
- package/es/action-sheet/PropsType.d.ts +38 -0
- package/es/action-sheet/PropsType.js +1 -0
- package/es/action-sheet/index.d.ts +5 -0
- package/es/action-sheet/index.js +4 -0
- package/es/action-sheet/style/index.css +126 -0
- package/es/action-sheet/style/var.css +0 -0
- package/es/area/Area.d.ts +4 -0
- package/es/area/Area.js +73 -0
- package/es/area/PropsType.d.ts +30 -0
- package/es/area/PropsType.js +1 -0
- package/es/area/index.d.ts +4 -0
- package/es/area/index.js +3 -0
- package/es/badge/Badge.d.ts +4 -0
- package/es/badge/Badge.js +84 -0
- package/es/badge/PropsType.d.ts +28 -0
- package/es/badge/PropsType.js +1 -0
- package/es/badge/index.d.ts +5 -0
- package/es/badge/index.js +4 -0
- package/es/badge/style/index.css +45 -0
- package/es/badge/style/var.css +0 -0
- package/es/button/Button.d.ts +4 -0
- package/es/button/Button.js +134 -0
- package/es/button/ButtonContext.d.ts +7 -0
- package/es/button/ButtonContext.js +3 -0
- package/es/button/ButtonGroup.d.ts +4 -0
- package/es/button/ButtonGroup.js +38 -0
- package/es/button/PropsType.d.ts +67 -0
- package/es/button/PropsType.js +1 -0
- package/es/button/index.d.ts +8 -0
- package/es/button/index.js +8 -0
- package/es/button/style/index.css +242 -0
- package/es/button/style/var.css +0 -0
- package/es/calendar/Calendar.d.ts +4 -0
- package/es/calendar/Calendar.js +488 -0
- package/es/calendar/CalendarDay.d.ts +4 -0
- package/es/calendar/CalendarDay.js +126 -0
- package/es/calendar/CalendarHeader.d.ts +4 -0
- package/es/calendar/CalendarHeader.js +63 -0
- package/es/calendar/CalendarMonth.d.ts +4 -0
- package/es/calendar/CalendarMonth.js +202 -0
- package/es/calendar/PropsType.d.ts +118 -0
- package/es/calendar/PropsType.js +1 -0
- package/es/calendar/index.d.ts +5 -0
- package/es/calendar/index.js +4 -0
- package/es/calendar/style/index.css +186 -0
- package/es/calendar/style/var.css +0 -0
- package/es/calendar/utils.d.ts +10 -0
- package/es/calendar/utils.js +42 -0
- package/es/card/Card.d.ts +8 -0
- package/es/card/Card.js +79 -0
- package/es/card/PropsType.d.ts +34 -0
- package/es/card/PropsType.js +1 -0
- package/es/card/index.d.ts +10 -0
- package/es/card/index.js +10 -0
- package/es/card/style/index.css +68 -0
- package/es/card/style/var.css +0 -0
- package/es/cascader/Cascader.d.ts +5 -0
- package/es/cascader/Cascader.js +282 -0
- package/es/cascader/PropsType.d.ts +68 -0
- package/es/cascader/PropsType.js +1 -0
- package/es/cascader/index.d.ts +5 -0
- package/es/cascader/index.js +4 -0
- package/es/cascader/style/index.css +90 -0
- package/es/cascader/style/var.css +0 -0
- package/es/cascader/useCascaderExtend.d.ts +12 -0
- package/es/cascader/useCascaderExtend.js +45 -0
- package/es/cell/Cell.d.ts +4 -0
- package/es/cell/Cell.js +107 -0
- package/es/cell/CellGroup.d.ts +4 -0
- package/es/cell/CellGroup.js +42 -0
- package/es/cell/PropsType.d.ts +53 -0
- package/es/cell/PropsType.js +1 -0
- package/es/cell/index.d.ts +9 -0
- package/es/cell/index.js +8 -0
- package/es/cell/style/index.css +140 -0
- package/es/cell/style/var.css +0 -0
- package/es/checkbox/Checkbox.d.ts +4 -0
- package/es/checkbox/Checkbox.js +80 -0
- package/es/checkbox/CheckboxContext.d.ts +11 -0
- package/es/checkbox/CheckboxContext.js +3 -0
- package/es/checkbox/CheckboxGroup.d.ts +4 -0
- package/es/checkbox/CheckboxGroup.js +68 -0
- package/es/checkbox/Checker.d.ts +4 -0
- package/es/checkbox/Checker.js +97 -0
- package/es/checkbox/PropsType.d.ts +96 -0
- package/es/checkbox/PropsType.js +1 -0
- package/es/checkbox/index.d.ts +9 -0
- package/es/checkbox/index.js +8 -0
- package/es/checkbox/style/index.css +84 -0
- package/es/checkbox/style/var.css +0 -0
- package/es/circle/Circle.d.ts +4 -0
- package/es/circle/Circle.js +156 -0
- package/es/circle/PropsType.d.ts +30 -0
- package/es/circle/PropsType.js +1 -0
- package/es/circle/index.d.ts +5 -0
- package/es/circle/index.js +4 -0
- package/es/circle/style/index.css +44 -0
- package/es/circle/style/var.css +0 -0
- package/es/collapse/Collapse.d.ts +4 -0
- package/es/collapse/Collapse.js +88 -0
- package/es/collapse/CollapseContext.d.ts +7 -0
- package/es/collapse/CollapseContext.js +3 -0
- package/es/collapse/CollapseItem.d.ts +4 -0
- package/es/collapse/CollapseItem.js +125 -0
- package/es/collapse/PropsType.d.ts +31 -0
- package/es/collapse/PropsType.js +1 -0
- package/es/collapse/index.d.ts +9 -0
- package/es/collapse/index.js +8 -0
- package/es/collapse/style/index.css +59 -0
- package/es/collapse/style/var.css +0 -0
- package/es/config-provider/ConfigProvider.d.ts +4 -0
- package/es/config-provider/ConfigProvider.js +47 -0
- package/es/config-provider/ConfigProviderContext.d.ts +8 -0
- package/es/config-provider/ConfigProviderContext.js +9 -0
- package/es/config-provider/PropsType.d.ts +14 -0
- package/es/config-provider/PropsType.js +1 -0
- package/es/config-provider/index.d.ts +3 -0
- package/es/config-provider/index.js +2 -0
- package/es/count-down/CountDown.d.ts +4 -0
- package/es/count-down/CountDown.js +53 -0
- package/es/count-down/PropsType.d.ts +38 -0
- package/es/count-down/PropsType.js +1 -0
- package/es/count-down/index.d.ts +5 -0
- package/es/count-down/index.js +4 -0
- package/es/count-down/style/index.css +10 -0
- package/es/count-down/style/var.css +0 -0
- package/es/count-down/utils.d.ts +2 -0
- package/es/count-down/utils.js +43 -0
- package/es/coupon-cell/CouponCell.d.ts +4 -0
- package/es/coupon-cell/CouponCell.js +51 -0
- package/es/coupon-cell/index.d.ts +4 -0
- package/es/coupon-cell/index.js +4 -0
- package/es/coupon-cell/style/index.css +6 -0
- package/es/coupon-cell/style/var.css +0 -0
- package/es/coupon-list/Coupon.d.ts +4 -0
- package/es/coupon-list/Coupon.js +114 -0
- package/es/coupon-list/CouponList.d.ts +4 -0
- package/es/coupon-list/CouponList.js +172 -0
- package/es/coupon-list/PropsType.d.ts +59 -0
- package/es/coupon-list/PropsType.js +1 -0
- package/es/coupon-list/index.d.ts +3 -0
- package/es/coupon-list/index.js +3 -0
- package/es/coupon-list/style/index.css +194 -0
- package/es/coupon-list/style/var.css +0 -0
- package/es/datetime-picker/DatePicker.d.ts +4 -0
- package/es/datetime-picker/DatePicker.js +236 -0
- package/es/datetime-picker/DatetimePicker.d.ts +6 -0
- package/es/datetime-picker/DatetimePicker.js +20 -0
- package/es/datetime-picker/PropsType.d.ts +49 -0
- package/es/datetime-picker/PropsType.js +1 -0
- package/es/datetime-picker/TimePicker.d.ts +4 -0
- package/es/datetime-picker/TimePicker.js +103 -0
- package/es/datetime-picker/index.d.ts +3 -0
- package/es/datetime-picker/index.js +2 -0
- package/es/datetime-picker/utils.d.ts +5 -0
- package/es/datetime-picker/utils.js +35 -0
- package/es/dialog/Dialog.d.ts +4 -0
- package/es/dialog/Dialog.js +146 -0
- package/es/dialog/PropsType.d.ts +70 -0
- package/es/dialog/PropsType.js +1 -0
- package/es/dialog/index.d.ts +4 -0
- package/es/dialog/index.js +4 -0
- package/es/dialog/method.d.ts +3 -0
- package/es/dialog/method.js +145 -0
- package/es/dialog/style/index.css +121 -0
- package/es/dialog/style/var.css +0 -0
- package/es/divider/Divider.d.ts +4 -0
- package/es/divider/Divider.js +28 -0
- package/es/divider/PropsType.d.ts +22 -0
- package/es/divider/PropsType.js +1 -0
- package/es/divider/index.d.ts +4 -0
- package/es/divider/index.js +3 -0
- package/es/divider/style/index.css +72 -0
- package/es/divider/style/var.css +0 -0
- package/es/dropdown-menu/DropdownMenu.d.ts +4 -0
- package/es/dropdown-menu/DropdownMenu.js +209 -0
- package/es/dropdown-menu/DropdownMenuContext.d.ts +11 -0
- package/es/dropdown-menu/DropdownMenuContext.js +3 -0
- package/es/dropdown-menu/DropdownMenuItem.d.ts +4 -0
- package/es/dropdown-menu/DropdownMenuItem.js +151 -0
- package/es/dropdown-menu/PropsType.d.ts +95 -0
- package/es/dropdown-menu/PropsType.js +1 -0
- package/es/dropdown-menu/index.d.ts +8 -0
- package/es/dropdown-menu/index.js +8 -0
- package/es/dropdown-menu/style/index.css +104 -0
- package/es/dropdown-menu/style/var.css +0 -0
- package/es/empty/Empty.d.ts +4 -0
- package/es/empty/Empty.js +63 -0
- package/es/empty/Network.d.ts +1 -0
- package/es/empty/Network.js +143 -0
- package/es/empty/PropsType.d.ts +9 -0
- package/es/empty/PropsType.js +1 -0
- package/es/empty/index.d.ts +4 -0
- package/es/empty/index.js +3 -0
- package/es/empty/style/index.css +36 -0
- package/es/empty/style/var.css +0 -0
- package/es/field/Field.d.ts +7 -0
- package/es/field/Field.js +287 -0
- package/es/field/PropsType.d.ts +82 -0
- package/es/field/PropsType.js +1 -0
- package/es/field/index.d.ts +5 -0
- package/es/field/index.js +4 -0
- package/es/field/style/index.css +132 -0
- package/es/field/style/var.css +0 -0
- package/es/flex/Flex.d.ts +4 -0
- package/es/flex/Flex.js +43 -0
- package/es/flex/FlexContext.d.ts +6 -0
- package/es/flex/FlexContext.js +3 -0
- package/es/flex/FlexItem.d.ts +4 -0
- package/es/flex/FlexItem.js +52 -0
- package/es/flex/PropsType.d.ts +35 -0
- package/es/flex/PropsType.js +1 -0
- package/es/flex/index.d.ts +8 -0
- package/es/flex/index.js +8 -0
- package/es/flex/style/index.css +187 -0
- package/es/flex/style/mixins.css +0 -0
- package/es/floating-ball/FloatingBall.d.ts +4 -0
- package/es/floating-ball/FloatingBall.js +272 -0
- package/es/floating-ball/FloatingBallContext.d.ts +6 -0
- package/es/floating-ball/FloatingBallContext.js +3 -0
- package/es/floating-ball/FloatingBallItem.d.ts +3 -0
- package/es/floating-ball/FloatingBallItem.js +16 -0
- package/es/floating-ball/PropsType.d.ts +77 -0
- package/es/floating-ball/PropsType.js +1 -0
- package/es/floating-ball/index.d.ts +4 -0
- package/es/floating-ball/index.js +3 -0
- package/es/floating-ball/style/index.css +197 -0
- package/es/floating-ball/style/var.css +4 -0
- package/es/floating-ball/useFloatingTouch.d.ts +66 -0
- package/es/floating-ball/useFloatingTouch.js +106 -0
- package/es/floating-panel/FloatingPanel.d.ts +4 -0
- package/es/floating-panel/FloatingPanel.js +125 -0
- package/es/floating-panel/PropsType.d.ts +8 -0
- package/es/floating-panel/PropsType.js +1 -0
- package/es/floating-panel/index.d.ts +6 -0
- package/es/floating-panel/index.js +4 -0
- package/es/floating-panel/style/index.css +38 -0
- package/es/floating-panel/style/var.css +0 -0
- package/es/form/Form.d.ts +10 -0
- package/es/form/Form.js +48 -0
- package/es/form/FormContext.d.ts +11 -0
- package/es/form/FormContext.js +9 -0
- package/es/form/FormItem.d.ts +4 -0
- package/es/form/FormItem.js +197 -0
- package/es/form/FormSubscribe.d.ts +16 -0
- package/es/form/FormSubscribe.js +24 -0
- package/es/form/PropsType.d.ts +41 -0
- package/es/form/PropsType.js +1 -0
- package/es/form/index.d.ts +19 -0
- package/es/form/index.js +13 -0
- package/es/form/style/index.css +8 -0
- package/es/form/style/var.css +0 -0
- package/es/form/utils.d.ts +1 -0
- package/es/form/utils.js +16 -0
- package/es/grid/Grid.d.ts +4 -0
- package/es/grid/Grid.js +35 -0
- package/es/grid/GridItem.d.ts +8 -0
- package/es/grid/GridItem.js +128 -0
- package/es/grid/PropsType.d.ts +40 -0
- package/es/grid/PropsType.js +1 -0
- package/es/grid/index.d.ts +11 -0
- package/es/grid/index.js +7 -0
- package/es/grid/style/index.css +80 -0
- package/es/grid/style/var.css +0 -0
- package/es/hooks/create-update-effect.d.ts +4 -0
- package/es/hooks/create-update-effect.js +17 -0
- package/es/hooks/index.d.ts +38 -0
- package/es/hooks/index.js +37 -0
- package/es/hooks/use-click-away.d.ts +5 -0
- package/es/hooks/use-click-away.js +24 -0
- package/es/hooks/use-count-down.d.ts +32 -0
- package/es/hooks/use-count-down.js +111 -0
- package/es/hooks/use-debunce-effect.d.ts +4 -0
- package/es/hooks/use-debunce-effect.js +16 -0
- package/es/hooks/use-debunce-fn.d.ts +18 -0
- package/es/hooks/use-debunce-fn.js +28 -0
- package/es/hooks/use-drag-and-pinch.d.ts +1 -0
- package/es/hooks/use-drag-and-pinch.js +2 -0
- package/es/hooks/use-effect-with-target.d.ts +4 -0
- package/es/hooks/use-effect-with-target.js +53 -0
- package/es/hooks/use-event-listener.d.ts +11 -0
- package/es/hooks/use-event-listener.js +54 -0
- package/es/hooks/use-form-smart.d.ts +20 -0
- package/es/hooks/use-form-smart.js +54 -0
- package/es/hooks/use-height.d.ts +4 -0
- package/es/hooks/use-height.js +12 -0
- package/es/hooks/use-in-viewport.d.ts +8 -0
- package/es/hooks/use-in-viewport.js +27 -0
- package/es/hooks/use-isomorphic-layout-effect.d.ts +4 -0
- package/es/hooks/use-isomorphic-layout-effect.js +6 -0
- package/es/hooks/use-latest.d.ts +3 -0
- package/es/hooks/use-latest.js +7 -0
- package/es/hooks/use-lazy-effect.d.ts +3 -0
- package/es/hooks/use-lazy-effect.js +11 -0
- package/es/hooks/use-lazy-render.d.ts +3 -0
- package/es/hooks/use-lazy-render.js +11 -0
- package/es/hooks/use-lock-fn.d.ts +2 -0
- package/es/hooks/use-lock-fn.js +18 -0
- package/es/hooks/use-lock-scroll.d.ts +2 -0
- package/es/hooks/use-lock-scroll.js +61 -0
- package/es/hooks/use-memoized-fn.d.ts +3 -0
- package/es/hooks/use-memoized-fn.js +22 -0
- package/es/hooks/use-merged-state.d.ts +5 -0
- package/es/hooks/use-merged-state.js +22 -0
- package/es/hooks/use-mount.d.ts +2 -0
- package/es/hooks/use-mount.js +8 -0
- package/es/hooks/use-next-tick.d.ts +2 -0
- package/es/hooks/use-next-tick.js +17 -0
- package/es/hooks/use-page-visibility.d.ts +3 -0
- package/es/hooks/use-page-visibility.js +20 -0
- package/es/hooks/use-props-value.d.ts +8 -0
- package/es/hooks/use-props-value.js +24 -0
- package/es/hooks/use-rect.d.ts +11 -0
- package/es/hooks/use-rect.js +31 -0
- package/es/hooks/use-ref-state.d.ts +4 -0
- package/es/hooks/use-ref-state.js +13 -0
- package/es/hooks/use-refs.d.ts +1 -0
- package/es/hooks/use-refs.js +12 -0
- package/es/hooks/use-resize-effect.d.ts +2 -0
- package/es/hooks/use-resize-effect.js +20 -0
- package/es/hooks/use-scroll-parent.d.ts +5 -0
- package/es/hooks/use-scroll-parent.js +43 -0
- package/es/hooks/use-set-state.d.ts +3 -0
- package/es/hooks/use-set-state.js +14 -0
- package/es/hooks/use-throttle-fn.d.ts +17 -0
- package/es/hooks/use-throttle-fn.js +27 -0
- package/es/hooks/use-touch.d.ts +17 -0
- package/es/hooks/use-touch.js +67 -0
- package/es/hooks/use-unmount.d.ts +2 -0
- package/es/hooks/use-unmount.js +16 -0
- package/es/hooks/use-unmounted-ref.d.ts +2 -0
- package/es/hooks/use-unmounted-ref.js +13 -0
- package/es/hooks/use-update-effect.d.ts +3 -0
- package/es/hooks/use-update-effect.js +13 -0
- package/es/hooks/use-update.d.ts +2 -0
- package/es/hooks/use-update.js +6 -0
- package/es/hooks/use-visibility-change.d.ts +2 -0
- package/es/hooks/use-visibility-change.js +33 -0
- package/es/hooks/use-window-size.d.ts +5 -0
- package/es/hooks/use-window-size.js +18 -0
- package/es/image/Image.d.ts +4 -0
- package/es/image/Image.js +128 -0
- package/es/image/LazyImage.d.ts +9 -0
- package/es/image/LazyImage.js +63 -0
- package/es/image/PropsType.d.ts +55 -0
- package/es/image/PropsType.js +1 -0
- package/es/image/index.d.ts +5 -0
- package/es/image/index.js +4 -0
- package/es/image/style/index.css +70 -0
- package/es/image/style/var.css +0 -0
- package/es/image-preview/ImagePreview.d.ts +6 -0
- package/es/image-preview/ImagePreview.js +105 -0
- package/es/image-preview/PropsType.d.ts +47 -0
- package/es/image-preview/PropsType.js +1 -0
- package/es/image-preview/index.d.ts +4 -0
- package/es/image-preview/index.js +4 -0
- package/es/image-preview/method.d.ts +3 -0
- package/es/image-preview/method.js +66 -0
- package/es/image-preview/slide.d.ts +12 -0
- package/es/image-preview/slide.js +172 -0
- package/es/image-preview/slides.d.ts +14 -0
- package/es/image-preview/slides.js +94 -0
- package/es/image-preview/style/index.css +118 -0
- package/es/image-preview/style/var.css +0 -0
- package/es/index-bar/IndexAnchor.d.ts +5 -0
- package/es/index-bar/IndexAnchor.js +98 -0
- package/es/index-bar/IndexBar.d.ts +4 -0
- package/es/index-bar/IndexBar.js +253 -0
- package/es/index-bar/IndexBarContext.d.ts +8 -0
- package/es/index-bar/IndexBarContext.js +3 -0
- package/es/index-bar/PropsType.d.ts +37 -0
- package/es/index-bar/PropsType.js +1 -0
- package/es/index-bar/index.d.ts +8 -0
- package/es/index-bar/index.js +7 -0
- package/es/index-bar/style/index.css +54 -0
- package/es/index-bar/style/var.css +0 -0
- package/es/index.d.ts +73 -0
- package/es/index.js +73 -0
- package/es/input/Input.d.ts +4 -0
- package/es/input/Input.js +172 -0
- package/es/input/PropsType.d.ts +55 -0
- package/es/input/PropsType.js +1 -0
- package/es/input/index.d.ts +9 -0
- package/es/input/index.js +8 -0
- package/es/input/style/index.css +82 -0
- package/es/input/style/var.css +0 -0
- package/es/lazyload/Lazyload.d.ts +4 -0
- package/es/lazyload/Lazyload.js +36 -0
- package/es/lazyload/PropsType.d.ts +9 -0
- package/es/lazyload/PropsType.js +1 -0
- package/es/lazyload/index.d.ts +4 -0
- package/es/lazyload/index.js +4 -0
- package/es/lazyload/style/index.css +5 -0
- package/es/lazyload/style/var.css +0 -0
- package/es/list/List.d.ts +4 -0
- package/es/list/List.js +24 -0
- package/es/list/LoadMore.d.ts +4 -0
- package/es/list/LoadMore.js +134 -0
- package/es/list/PropsType.d.ts +31 -0
- package/es/list/PropsType.js +1 -0
- package/es/list/index.d.ts +5 -0
- package/es/list/index.js +4 -0
- package/es/list/style/index.css +18 -0
- package/es/list/style/var.css +0 -0
- package/es/loading/Loading.d.ts +4 -0
- package/es/loading/Loading.js +88 -0
- package/es/loading/PropsType.d.ts +25 -0
- package/es/loading/PropsType.js +1 -0
- package/es/loading/index.d.ts +5 -0
- package/es/loading/index.js +4 -0
- package/es/loading/style/index.css +199 -0
- package/es/loading/style/var.css +0 -0
- package/es/locale/index.d.ts +7 -0
- package/es/locale/index.js +6 -0
- package/es/locale/lang/base.d.ts +75 -0
- package/es/locale/lang/base.js +74 -0
- package/es/locale/lang/en-US.d.ts +75 -0
- package/es/locale/lang/en-US.js +74 -0
- package/es/locale/lang/fr-FR.d.ts +74 -0
- package/es/locale/lang/fr-FR.js +73 -0
- package/es/locale/lang/ja-JP.d.ts +75 -0
- package/es/locale/lang/ja-JP.js +74 -0
- package/es/locale/lang/types.d.ts +75 -0
- package/es/locale/lang/types.js +1 -0
- package/es/locale/lang/zh-CN.d.ts +11 -0
- package/es/locale/lang/zh-CN.js +8 -0
- package/es/locale/lang/zh-HK.d.ts +75 -0
- package/es/locale/lang/zh-HK.js +74 -0
- package/es/locale/lang/zh-TW.d.ts +75 -0
- package/es/locale/lang/zh-TW.js +74 -0
- package/es/nav-bar/Navbar.d.ts +4 -0
- package/es/nav-bar/Navbar.js +104 -0
- package/es/nav-bar/PropsType.d.ts +25 -0
- package/es/nav-bar/PropsType.js +1 -0
- package/es/nav-bar/index.d.ts +4 -0
- package/es/nav-bar/index.js +3 -0
- package/es/nav-bar/style/index.css +72 -0
- package/es/nav-bar/style/var.css +0 -0
- package/es/notice-bar/NoticeBar.d.ts +4 -0
- package/es/notice-bar/NoticeBar.js +176 -0
- package/es/notice-bar/PropsType.d.ts +36 -0
- package/es/notice-bar/PropsType.js +1 -0
- package/es/notice-bar/index.d.ts +4 -0
- package/es/notice-bar/index.js +3 -0
- package/es/notice-bar/style/index.css +62 -0
- package/es/notice-bar/style/var.css +0 -0
- package/es/notify/Notify.d.ts +4 -0
- package/es/notify/Notify.js +41 -0
- package/es/notify/PropsType.d.ts +59 -0
- package/es/notify/PropsType.js +1 -0
- package/es/notify/index.d.ts +5 -0
- package/es/notify/index.js +4 -0
- package/es/notify/method.d.ts +11 -0
- package/es/notify/method.js +112 -0
- package/es/notify/style/index.css +35 -0
- package/es/notify/style/var.css +0 -0
- package/es/number-keyboard/NumberKeyboard.d.ts +4 -0
- package/es/number-keyboard/NumberKeyboard.js +226 -0
- package/es/number-keyboard/NumberKeyboardKey.d.ts +4 -0
- package/es/number-keyboard/NumberKeyboardKey.js +105 -0
- package/es/number-keyboard/PropsType.d.ts +75 -0
- package/es/number-keyboard/PropsType.js +1 -0
- package/es/number-keyboard/index.d.ts +5 -0
- package/es/number-keyboard/index.js +4 -0
- package/es/number-keyboard/style/index.css +134 -0
- package/es/number-keyboard/style/var.css +0 -0
- package/es/overlay/Overlay.d.ts +4 -0
- package/es/overlay/Overlay.js +60 -0
- package/es/overlay/PropsType.d.ts +17 -0
- package/es/overlay/PropsType.js +1 -0
- package/es/overlay/index.d.ts +5 -0
- package/es/overlay/index.js +4 -0
- package/es/overlay/style/index.css +13 -0
- package/es/overlay/style/var.css +0 -0
- package/es/pagination/Pagination.d.ts +4 -0
- package/es/pagination/Pagination.js +138 -0
- package/es/pagination/PropsType.d.ts +33 -0
- package/es/pagination/PropsType.js +1 -0
- package/es/pagination/index.d.ts +4 -0
- package/es/pagination/index.js +3 -0
- package/es/pagination/style/index.css +69 -0
- package/es/pagination/style/var.css +0 -0
- package/es/password-input/PasswordInput.d.ts +4 -0
- package/es/password-input/PasswordInput.js +193 -0
- package/es/password-input/PropsType.d.ts +36 -0
- package/es/password-input/PropsType.js +1 -0
- package/es/password-input/index.d.ts +4 -0
- package/es/password-input/index.js +3 -0
- package/es/password-input/style/index.css +112 -0
- package/es/password-input/style/var.css +0 -0
- package/es/picker/Picker.d.ts +7 -0
- package/es/picker/Picker.js +309 -0
- package/es/picker/PickerColumn.d.ts +8 -0
- package/es/picker/PickerColumn.js +270 -0
- package/es/picker/PropsType.d.ts +106 -0
- package/es/picker/PropsType.js +1 -0
- package/es/picker/columnsExtend.d.ts +9 -0
- package/es/picker/columnsExtend.js +124 -0
- package/es/picker/index.d.ts +5 -0
- package/es/picker/index.js +4 -0
- package/es/picker/style/index.css +113 -0
- package/es/picker/style/var.css +0 -0
- package/es/popover/Popover.d.ts +4 -0
- package/es/popover/Popover.js +188 -0
- package/es/popover/PropsType.d.ts +71 -0
- package/es/popover/PropsType.js +1 -0
- package/es/popover/index.d.ts +5 -0
- package/es/popover/index.js +4 -0
- package/es/popover/style/index.css +213 -0
- package/es/popover/style/var.css +0 -0
- package/es/popup/Popup.d.ts +5 -0
- package/es/popup/Popup.js +215 -0
- package/es/popup/PopupContext.d.ts +6 -0
- package/es/popup/PopupContext.js +3 -0
- package/es/popup/PropsType.d.ts +72 -0
- package/es/popup/PropsType.js +1 -0
- package/es/popup/index.d.ts +5 -0
- package/es/popup/index.js +4 -0
- package/es/popup/style/index.css +132 -0
- package/es/popup/style/var.css +0 -0
- package/es/product-card/ProductCard.d.ts +4 -0
- package/es/product-card/ProductCard.js +151 -0
- package/es/product-card/PropsType.d.ts +40 -0
- package/es/product-card/PropsType.js +1 -0
- package/es/product-card/index.d.ts +3 -0
- package/es/product-card/index.js +3 -0
- package/es/product-card/style/index.css +108 -0
- package/es/product-card/style/var.css +0 -0
- package/es/progress/Progress.d.ts +4 -0
- package/es/progress/Progress.js +60 -0
- package/es/progress/PropsType.d.ts +13 -0
- package/es/progress/PropsType.js +1 -0
- package/es/progress/index.d.ts +4 -0
- package/es/progress/index.js +3 -0
- package/es/progress/style/index.css +41 -0
- package/es/progress/style/var.css +0 -0
- package/es/pull-refresh/PropsType.d.ts +39 -0
- package/es/pull-refresh/PropsType.js +1 -0
- package/es/pull-refresh/PullRefresh.d.ts +4 -0
- package/es/pull-refresh/PullRefresh.js +229 -0
- package/es/pull-refresh/index.d.ts +4 -0
- package/es/pull-refresh/index.js +3 -0
- package/es/pull-refresh/style/index.css +31 -0
- package/es/pull-refresh/style/var.css +0 -0
- package/es/radio/PropsType.d.ts +24 -0
- package/es/radio/PropsType.js +1 -0
- package/es/radio/Radio.d.ts +3 -0
- package/es/radio/Radio.js +29 -0
- package/es/radio/RadioContext.d.ts +11 -0
- package/es/radio/RadioContext.js +3 -0
- package/es/radio/RadioGroup.d.ts +3 -0
- package/es/radio/RadioGroup.js +35 -0
- package/es/radio/index.d.ts +8 -0
- package/es/radio/index.js +7 -0
- package/es/radio/style/index.css +90 -0
- package/es/radio/style/var.css +0 -0
- package/es/rate/PropsType.d.ts +55 -0
- package/es/rate/PropsType.js +1 -0
- package/es/rate/Rate.d.ts +4 -0
- package/es/rate/Rate.js +199 -0
- package/es/rate/index.d.ts +4 -0
- package/es/rate/index.js +3 -0
- package/es/rate/style/index.css +43 -0
- package/es/rate/style/var.css +0 -0
- package/es/search/PropsType.d.ts +29 -0
- package/es/search/PropsType.js +1 -0
- package/es/search/Search.d.ts +4 -0
- package/es/search/Search.js +158 -0
- package/es/search/index.d.ts +4 -0
- package/es/search/index.js +3 -0
- package/es/search/style/index.css +64 -0
- package/es/search/style/var.css +0 -0
- package/es/selector/CheckMark.d.ts +2 -0
- package/es/selector/CheckMark.js +42 -0
- package/es/selector/PropsType.d.ts +25 -0
- package/es/selector/PropsType.js +1 -0
- package/es/selector/Selector.d.ts +2 -0
- package/es/selector/Selector.js +68 -0
- package/es/selector/index.d.ts +4 -0
- package/es/selector/index.js +3 -0
- package/es/selector/style/index.css +69 -0
- package/es/selector/style/var.css +0 -0
- package/es/share-sheet/PropsType.d.ts +29 -0
- package/es/share-sheet/PropsType.js +1 -0
- package/es/share-sheet/ShareSheet.d.ts +4 -0
- package/es/share-sheet/ShareSheet.js +125 -0
- package/es/share-sheet/index.d.ts +5 -0
- package/es/share-sheet/index.js +4 -0
- package/es/share-sheet/style/index.css +103 -0
- package/es/share-sheet/style/var.css +0 -0
- package/es/sidebar/PropsType.d.ts +41 -0
- package/es/sidebar/PropsType.js +1 -0
- package/es/sidebar/Sidebar.d.ts +4 -0
- package/es/sidebar/Sidebar.js +66 -0
- package/es/sidebar/SidebarItem.d.ts +4 -0
- package/es/sidebar/SidebarItem.js +44 -0
- package/es/sidebar/index.d.ts +8 -0
- package/es/sidebar/index.js +7 -0
- package/es/sidebar/style/index.css +77 -0
- package/es/sidebar/style/var.css +0 -0
- package/es/skeleton/PropsType.d.ts +31 -0
- package/es/skeleton/PropsType.js +1 -0
- package/es/skeleton/Skeleton.d.ts +4 -0
- package/es/skeleton/Skeleton.js +97 -0
- package/es/skeleton/index.d.ts +5 -0
- package/es/skeleton/index.js +4 -0
- package/es/skeleton/style/index.css +56 -0
- package/es/skeleton/style/var.css +0 -0
- package/es/sku/PropsType.d.ts +189 -0
- package/es/sku/PropsType.js +1 -0
- package/es/sku/Sku.d.ts +4 -0
- package/es/sku/Sku.js +504 -0
- package/es/sku/components/SkuRow.d.ts +7 -0
- package/es/sku/components/SkuRow.js +41 -0
- package/es/sku/components/SkuRowItem.d.ts +15 -0
- package/es/sku/components/SkuRowItem.js +76 -0
- package/es/sku/components/SkuRowPropItem.d.ts +10 -0
- package/es/sku/components/SkuRowPropItem.js +38 -0
- package/es/sku/components/SkuStepper.d.ts +17 -0
- package/es/sku/components/SkuStepper.js +122 -0
- package/es/sku/constants.d.ts +13 -0
- package/es/sku/constants.js +9 -0
- package/es/sku/index.d.ts +5 -0
- package/es/sku/index.js +4 -0
- package/es/sku/style/index.css +283 -0
- package/es/sku/style/var.css +0 -0
- package/es/sku/utils.d.ts +25 -0
- package/es/sku/utils.js +153 -0
- package/es/slider/PropsType.d.ts +59 -0
- package/es/slider/PropsType.js +1 -0
- package/es/slider/Slider.d.ts +4 -0
- package/es/slider/Slider.js +271 -0
- package/es/slider/index.d.ts +4 -0
- package/es/slider/index.js +3 -0
- package/es/slider/style/index.css +85 -0
- package/es/slider/style/var.css +0 -0
- package/es/space/PropsType.d.ts +25 -0
- package/es/space/PropsType.js +1 -0
- package/es/space/Space.d.ts +4 -0
- package/es/space/Space.js +56 -0
- package/es/space/index.d.ts +4 -0
- package/es/space/index.js +3 -0
- package/es/space/style/index.css +56 -0
- package/es/space/style/var.css +0 -0
- package/es/stepper/PropsType.d.ts +66 -0
- package/es/stepper/PropsType.js +1 -0
- package/es/stepper/Stepper.d.ts +4 -0
- package/es/stepper/Stepper.js +231 -0
- package/es/stepper/index.d.ts +5 -0
- package/es/stepper/index.js +4 -0
- package/es/stepper/style/index.css +130 -0
- package/es/stepper/style/var.css +0 -0
- package/es/steps/PropsType.d.ts +33 -0
- package/es/steps/PropsType.js +1 -0
- package/es/steps/Steps.d.ts +4 -0
- package/es/steps/Steps.js +35 -0
- package/es/steps/StepsItem.d.ts +4 -0
- package/es/steps/StepsItem.js +118 -0
- package/es/steps/index.d.ts +8 -0
- package/es/steps/index.js +7 -0
- package/es/steps/style/index.css +143 -0
- package/es/steps/style/var.css +0 -0
- package/es/sticky/PropsType.d.ts +25 -0
- package/es/sticky/PropsType.js +1 -0
- package/es/sticky/Sticky.d.ts +4 -0
- package/es/sticky/Sticky.js +124 -0
- package/es/sticky/index.d.ts +5 -0
- package/es/sticky/index.js +4 -0
- package/es/sticky/style/index.css +7 -0
- package/es/sticky/style/var.css +0 -0
- package/es/styles/animation.css +130 -0
- package/es/styles/base.css +310 -0
- package/es/styles/css-variables.css +66 -0
- package/es/styles/index.d.ts +1 -0
- package/es/styles/index.js +1 -0
- package/es/styles/mixins/ellipsis.css +0 -0
- package/es/styles/mixins/hairline.css +0 -0
- package/es/styles/normalize.css +29 -0
- package/es/styles/var.css +0 -0
- package/es/submit-bar/PropsType.d.ts +40 -0
- package/es/submit-bar/PropsType.js +1 -0
- package/es/submit-bar/SubmitBar.d.ts +4 -0
- package/es/submit-bar/SubmitBar.js +105 -0
- package/es/submit-bar/index.d.ts +4 -0
- package/es/submit-bar/index.js +4 -0
- package/es/submit-bar/style/index.css +84 -0
- package/es/submit-bar/style/var.css +0 -0
- package/es/swipe-cell/PropsType.d.ts +39 -0
- package/es/swipe-cell/PropsType.js +1 -0
- package/es/swipe-cell/SwipeCell.d.ts +4 -0
- package/es/swipe-cell/SwipeCell.js +179 -0
- package/es/swipe-cell/index.d.ts +4 -0
- package/es/swipe-cell/index.js +3 -0
- package/es/swipe-cell/style/index.css +23 -0
- package/es/swiper/PropsType.d.ts +70 -0
- package/es/swiper/PropsType.js +1 -0
- package/es/swiper/Swiper.d.ts +4 -0
- package/es/swiper/Swiper.js +315 -0
- package/es/swiper/SwiperItem.d.ts +4 -0
- package/es/swiper/SwiperItem.js +31 -0
- package/es/swiper/SwiperPagIndicator.d.ts +4 -0
- package/es/swiper/SwiperPagIndicator.js +29 -0
- package/es/swiper/index.d.ts +8 -0
- package/es/swiper/index.js +8 -0
- package/es/swiper/style/index.css +107 -0
- package/es/swiper/style/var.css +0 -0
- package/es/switch/PropsType.d.ts +25 -0
- package/es/switch/PropsType.js +1 -0
- package/es/switch/Switch.d.ts +4 -0
- package/es/switch/Switch.js +70 -0
- package/es/switch/index.d.ts +5 -0
- package/es/switch/index.js +4 -0
- package/es/switch/style/index.css +60 -0
- package/es/switch/style/var.css +0 -0
- package/es/tabbar/PropsType.d.ts +36 -0
- package/es/tabbar/PropsType.js +1 -0
- package/es/tabbar/Tabbar.d.ts +4 -0
- package/es/tabbar/Tabbar.js +80 -0
- package/es/tabbar/TabbarContext.d.ts +7 -0
- package/es/tabbar/TabbarContext.js +3 -0
- package/es/tabbar/TabbarItem.d.ts +4 -0
- package/es/tabbar/TabbarItem.js +64 -0
- package/es/tabbar/index.d.ts +8 -0
- package/es/tabbar/index.js +7 -0
- package/es/tabbar/style/index.css +54 -0
- package/es/tabbar/style/var.css +0 -0
- package/es/tabs/PropsType.d.ts +149 -0
- package/es/tabs/PropsType.js +1 -0
- package/es/tabs/TabPane.d.ts +4 -0
- package/es/tabs/TabPane.js +57 -0
- package/es/tabs/Tabs.d.ts +4 -0
- package/es/tabs/Tabs.js +341 -0
- package/es/tabs/TabsContent.d.ts +4 -0
- package/es/tabs/TabsContent.js +68 -0
- package/es/tabs/TabsContext.d.ts +9 -0
- package/es/tabs/TabsContext.js +3 -0
- package/es/tabs/TabsTitle.d.ts +4 -0
- package/es/tabs/TabsTitle.js +99 -0
- package/es/tabs/index.d.ts +8 -0
- package/es/tabs/index.js +8 -0
- package/es/tabs/style/index.css +201 -0
- package/es/tabs/style/var.css +0 -0
- package/es/tabs/utils.d.ts +1 -0
- package/es/tabs/utils.js +40 -0
- package/es/tag/PropsType.d.ts +26 -0
- package/es/tag/PropsType.js +1 -0
- package/es/tag/Tag.d.ts +4 -0
- package/es/tag/Tag.js +73 -0
- package/es/tag/index.d.ts +5 -0
- package/es/tag/index.js +4 -0
- package/es/tag/style/index.css +110 -0
- package/es/tag/style/var.css +0 -0
- package/es/text-area/PropsType.d.ts +32 -0
- package/es/text-area/PropsType.js +1 -0
- package/es/text-area/TextArea.d.ts +4 -0
- package/es/text-area/TextArea.js +183 -0
- package/es/text-area/index.d.ts +5 -0
- package/es/text-area/index.js +4 -0
- package/es/text-area/style/index.css +144 -0
- package/es/text-area/style/var.css +0 -0
- package/es/toast/PropsType.d.ts +74 -0
- package/es/toast/PropsType.js +1 -0
- package/es/toast/Toast.d.ts +6 -0
- package/es/toast/Toast.js +93 -0
- package/es/toast/index.d.ts +5 -0
- package/es/toast/index.js +4 -0
- package/es/toast/lock-click.d.ts +1 -0
- package/es/toast/lock-click.js +14 -0
- package/es/toast/method.d.ts +3 -0
- package/es/toast/method.js +139 -0
- package/es/toast/style/index.css +72 -0
- package/es/toast/style/var.css +0 -0
- package/es/typography/Ellipsis.d.ts +4 -0
- package/es/typography/Ellipsis.js +127 -0
- package/es/typography/PropsType.d.ts +34 -0
- package/es/typography/PropsType.js +1 -0
- package/es/typography/Typography.d.ts +6 -0
- package/es/typography/Typography.js +117 -0
- package/es/typography/index.d.ts +12 -0
- package/es/typography/index.js +21 -0
- package/es/typography/style/index.css +132 -0
- package/es/typography/style/var.css +0 -0
- package/es/uploader/PropsType.d.ts +132 -0
- package/es/uploader/PropsType.js +1 -0
- package/es/uploader/Uploader.d.ts +4 -0
- package/es/uploader/Uploader.js +272 -0
- package/es/uploader/UploaderPreviewItem.d.ts +3 -0
- package/es/uploader/UploaderPreviewItem.js +98 -0
- package/es/uploader/index.d.ts +4 -0
- package/es/uploader/index.js +3 -0
- package/es/uploader/style/index.css +166 -0
- package/es/uploader/style/var.css +0 -0
- package/es/uploader/utils.d.ts +10 -0
- package/es/uploader/utils.js +75 -0
- package/es/utils/base.d.ts +18 -0
- package/es/utils/base.js +41 -0
- package/es/utils/bound.d.ts +1 -0
- package/es/utils/bound.js +10 -0
- package/es/utils/constant.d.ts +16 -0
- package/es/utils/constant.js +20 -0
- package/es/utils/create/bem.d.ts +14 -0
- package/es/utils/create/bem.js +32 -0
- package/es/utils/create/index.d.ts +3 -0
- package/es/utils/create/index.js +6 -0
- package/es/utils/debounce.d.ts +6 -0
- package/es/utils/debounce.js +122 -0
- package/es/utils/deep-assign.d.ts +3 -0
- package/es/utils/deep-assign.js +19 -0
- package/es/utils/deep-clone.d.ts +4 -0
- package/es/utils/deep-clone.js +28 -0
- package/es/utils/dev-log.d.ts +1 -0
- package/es/utils/dev-log.js +7 -0
- package/es/utils/dom/canUseDom.d.ts +1 -0
- package/es/utils/dom/canUseDom.js +3 -0
- package/es/utils/dom/event.d.ts +5 -0
- package/es/utils/dom/event.js +29 -0
- package/es/utils/dom/getContainer.d.ts +1 -0
- package/es/utils/dom/getContainer.js +4 -0
- package/es/utils/dom/getTargetElement.d.ts +4 -0
- package/es/utils/dom/getTargetElement.js +14 -0
- package/es/utils/dom/render copy.d.ts +9 -0
- package/es/utils/dom/render copy.js +66 -0
- package/es/utils/dom/render.d.ts +9 -0
- package/es/utils/dom/render.js +82 -0
- package/es/utils/dom/renderToContainer.d.ts +3 -0
- package/es/utils/dom/renderToContainer.js +11 -0
- package/es/utils/dom/scroll.d.ts +12 -0
- package/es/utils/dom/scroll.js +86 -0
- package/es/utils/dom/style.d.ts +1 -0
- package/es/utils/dom/style.js +13 -0
- package/es/utils/dom/version.d.ts +2 -0
- package/es/utils/dom/version.js +4 -0
- package/es/utils/format/number.d.ts +3 -0
- package/es/utils/format/number.js +34 -0
- package/es/utils/format/react.d.ts +2 -0
- package/es/utils/format/react.js +14 -0
- package/es/utils/format/string.d.ts +2 -0
- package/es/utils/format/string.js +11 -0
- package/es/utils/format/unit.d.ts +12 -0
- package/es/utils/format/unit.js +69 -0
- package/es/utils/get-default-props.d.ts +2 -0
- package/es/utils/get-default-props.js +12 -0
- package/es/utils/index.d.ts +10 -0
- package/es/utils/index.js +10 -0
- package/es/utils/interceptor.d.ts +7 -0
- package/es/utils/interceptor.js +30 -0
- package/es/utils/interface.d.ts +13 -0
- package/es/utils/interface.js +1 -0
- package/es/utils/is-dev.d.ts +1 -0
- package/es/utils/is-dev.js +1 -0
- package/es/utils/raf.d.ts +4 -0
- package/es/utils/raf.js +26 -0
- package/es/utils/rubberband.d.ts +2 -0
- package/es/utils/rubberband.js +10 -0
- package/es/utils/supports-passive.d.ts +1 -0
- package/es/utils/supports-passive.js +14 -0
- package/es/utils/throttle.d.ts +7 -0
- package/es/utils/throttle.js +20 -0
- package/es/utils/validate/date.d.ts +1 -0
- package/es/utils/validate/date.js +4 -0
- package/es/utils/validate/number.d.ts +2 -0
- package/es/utils/validate/number.js +10 -0
- package/es/utils/validate/system.d.ts +2 -0
- package/es/utils/validate/system.js +7 -0
- package/es/water-mark/PropsType.d.ts +39 -0
- package/es/water-mark/PropsType.js +1 -0
- package/es/water-mark/WaterMark.d.ts +4 -0
- package/es/water-mark/WaterMark.js +102 -0
- package/es/water-mark/index.d.ts +4 -0
- package/es/water-mark/index.js +3 -0
- package/es/water-mark/style/index.css +16 -0
- package/lib/action-bar/ActionBar.d.ts +4 -0
- package/lib/action-bar/ActionBar.js +58 -0
- package/lib/action-bar/ActionBarButton.d.ts +6 -0
- package/lib/action-bar/ActionBarButton.js +81 -0
- package/lib/action-bar/ActionBarContext.d.ts +6 -0
- package/lib/action-bar/ActionBarContext.js +16 -0
- package/lib/action-bar/ActionBarIcon.d.ts +4 -0
- package/lib/action-bar/ActionBarIcon.js +50 -0
- package/lib/action-bar/PropsType.d.ts +34 -0
- package/lib/action-bar/PropsType.js +6 -0
- package/lib/action-bar/index.d.ts +11 -0
- package/lib/action-bar/index.js +16 -0
- package/lib/action-bar/style/index.css +76 -0
- package/lib/action-bar/style/var.css +0 -0
- package/lib/action-sheet/ActionSheet.d.ts +4 -0
- package/lib/action-sheet/ActionSheet.js +167 -0
- package/lib/action-sheet/PropsType.d.ts +38 -0
- package/lib/action-sheet/PropsType.js +6 -0
- package/lib/action-sheet/index.d.ts +5 -0
- package/lib/action-sheet/index.js +16 -0
- package/lib/action-sheet/style/index.css +126 -0
- package/lib/action-sheet/style/var.css +0 -0
- package/lib/area/Area.d.ts +4 -0
- package/lib/area/Area.js +99 -0
- package/lib/area/PropsType.d.ts +30 -0
- package/lib/area/PropsType.js +6 -0
- package/lib/area/index.d.ts +4 -0
- package/lib/area/index.js +15 -0
- package/lib/badge/Badge.d.ts +4 -0
- package/lib/badge/Badge.js +103 -0
- package/lib/badge/PropsType.d.ts +28 -0
- package/lib/badge/PropsType.js +6 -0
- package/lib/badge/index.d.ts +5 -0
- package/lib/badge/index.js +16 -0
- package/lib/badge/style/index.css +45 -0
- package/lib/badge/style/var.css +0 -0
- package/lib/button/Button.d.ts +4 -0
- package/lib/button/Button.js +166 -0
- package/lib/button/ButtonContext.d.ts +7 -0
- package/lib/button/ButtonContext.js +16 -0
- package/lib/button/ButtonGroup.d.ts +4 -0
- package/lib/button/ButtonGroup.js +64 -0
- package/lib/button/PropsType.d.ts +67 -0
- package/lib/button/PropsType.js +6 -0
- package/lib/button/index.d.ts +8 -0
- package/lib/button/index.js +14 -0
- package/lib/button/style/index.css +242 -0
- package/lib/button/style/var.css +0 -0
- package/lib/calendar/Calendar.d.ts +4 -0
- package/lib/calendar/Calendar.js +520 -0
- package/lib/calendar/CalendarDay.d.ts +4 -0
- package/lib/calendar/CalendarDay.js +152 -0
- package/lib/calendar/CalendarHeader.d.ts +4 -0
- package/lib/calendar/CalendarHeader.js +89 -0
- package/lib/calendar/CalendarMonth.d.ts +4 -0
- package/lib/calendar/CalendarMonth.js +228 -0
- package/lib/calendar/PropsType.d.ts +118 -0
- package/lib/calendar/PropsType.js +6 -0
- package/lib/calendar/index.d.ts +5 -0
- package/lib/calendar/index.js +16 -0
- package/lib/calendar/style/index.css +186 -0
- package/lib/calendar/style/var.css +0 -0
- package/lib/calendar/utils.d.ts +10 -0
- package/lib/calendar/utils.js +60 -0
- package/lib/card/Card.d.ts +8 -0
- package/lib/card/Card.js +102 -0
- package/lib/card/PropsType.d.ts +34 -0
- package/lib/card/PropsType.js +6 -0
- package/lib/card/index.d.ts +10 -0
- package/lib/card/index.js +17 -0
- package/lib/card/style/index.css +68 -0
- package/lib/card/style/var.css +0 -0
- package/lib/cascader/Cascader.d.ts +5 -0
- package/lib/cascader/Cascader.js +321 -0
- package/lib/cascader/PropsType.d.ts +68 -0
- package/lib/cascader/PropsType.js +6 -0
- package/lib/cascader/index.d.ts +5 -0
- package/lib/cascader/index.js +16 -0
- package/lib/cascader/style/index.css +90 -0
- package/lib/cascader/style/var.css +0 -0
- package/lib/cascader/useCascaderExtend.d.ts +12 -0
- package/lib/cascader/useCascaderExtend.js +58 -0
- package/lib/cell/Cell.d.ts +4 -0
- package/lib/cell/Cell.js +138 -0
- package/lib/cell/CellGroup.d.ts +4 -0
- package/lib/cell/CellGroup.js +61 -0
- package/lib/cell/PropsType.d.ts +53 -0
- package/lib/cell/PropsType.js +6 -0
- package/lib/cell/index.d.ts +9 -0
- package/lib/cell/index.js +21 -0
- package/lib/cell/style/index.css +140 -0
- package/lib/cell/style/var.css +0 -0
- package/lib/checkbox/Checkbox.d.ts +4 -0
- package/lib/checkbox/Checkbox.js +106 -0
- package/lib/checkbox/CheckboxContext.d.ts +11 -0
- package/lib/checkbox/CheckboxContext.js +16 -0
- package/lib/checkbox/CheckboxGroup.d.ts +4 -0
- package/lib/checkbox/CheckboxGroup.js +94 -0
- package/lib/checkbox/Checker.d.ts +4 -0
- package/lib/checkbox/Checker.js +129 -0
- package/lib/checkbox/PropsType.d.ts +96 -0
- package/lib/checkbox/PropsType.js +6 -0
- package/lib/checkbox/index.d.ts +9 -0
- package/lib/checkbox/index.js +21 -0
- package/lib/checkbox/style/index.css +84 -0
- package/lib/checkbox/style/var.css +0 -0
- package/lib/circle/Circle.d.ts +4 -0
- package/lib/circle/Circle.js +182 -0
- package/lib/circle/PropsType.d.ts +30 -0
- package/lib/circle/PropsType.js +6 -0
- package/lib/circle/index.d.ts +5 -0
- package/lib/circle/index.js +16 -0
- package/lib/circle/style/index.css +44 -0
- package/lib/circle/style/var.css +0 -0
- package/lib/collapse/Collapse.d.ts +4 -0
- package/lib/collapse/Collapse.js +114 -0
- package/lib/collapse/CollapseContext.d.ts +7 -0
- package/lib/collapse/CollapseContext.js +16 -0
- package/lib/collapse/CollapseItem.d.ts +4 -0
- package/lib/collapse/CollapseItem.js +157 -0
- package/lib/collapse/PropsType.d.ts +31 -0
- package/lib/collapse/PropsType.js +6 -0
- package/lib/collapse/index.d.ts +9 -0
- package/lib/collapse/index.js +21 -0
- package/lib/collapse/style/index.css +59 -0
- package/lib/collapse/style/var.css +0 -0
- package/lib/config-provider/ConfigProvider.d.ts +4 -0
- package/lib/config-provider/ConfigProvider.js +72 -0
- package/lib/config-provider/ConfigProviderContext.d.ts +8 -0
- package/lib/config-provider/ConfigProviderContext.js +22 -0
- package/lib/config-provider/PropsType.d.ts +14 -0
- package/lib/config-provider/PropsType.js +6 -0
- package/lib/config-provider/index.d.ts +3 -0
- package/lib/config-provider/index.js +13 -0
- package/lib/count-down/CountDown.d.ts +4 -0
- package/lib/count-down/CountDown.js +79 -0
- package/lib/count-down/PropsType.d.ts +38 -0
- package/lib/count-down/PropsType.js +6 -0
- package/lib/count-down/index.d.ts +5 -0
- package/lib/count-down/index.js +16 -0
- package/lib/count-down/style/index.css +10 -0
- package/lib/count-down/style/var.css +0 -0
- package/lib/count-down/utils.d.ts +2 -0
- package/lib/count-down/utils.js +50 -0
- package/lib/coupon-cell/CouponCell.d.ts +4 -0
- package/lib/coupon-cell/CouponCell.js +77 -0
- package/lib/coupon-cell/index.d.ts +4 -0
- package/lib/coupon-cell/index.js +16 -0
- package/lib/coupon-cell/style/index.css +6 -0
- package/lib/coupon-cell/style/var.css +0 -0
- package/lib/coupon-list/Coupon.d.ts +4 -0
- package/lib/coupon-list/Coupon.js +140 -0
- package/lib/coupon-list/CouponList.d.ts +4 -0
- package/lib/coupon-list/CouponList.js +198 -0
- package/lib/coupon-list/PropsType.d.ts +59 -0
- package/lib/coupon-list/PropsType.js +6 -0
- package/lib/coupon-list/index.d.ts +3 -0
- package/lib/coupon-list/index.js +14 -0
- package/lib/coupon-list/style/index.css +194 -0
- package/lib/coupon-list/style/var.css +0 -0
- package/lib/datetime-picker/DatePicker.d.ts +4 -0
- package/lib/datetime-picker/DatePicker.js +262 -0
- package/lib/datetime-picker/DatetimePicker.d.ts +6 -0
- package/lib/datetime-picker/DatetimePicker.js +45 -0
- package/lib/datetime-picker/PropsType.d.ts +49 -0
- package/lib/datetime-picker/PropsType.js +6 -0
- package/lib/datetime-picker/TimePicker.d.ts +4 -0
- package/lib/datetime-picker/TimePicker.js +129 -0
- package/lib/datetime-picker/index.d.ts +3 -0
- package/lib/datetime-picker/index.js +13 -0
- package/lib/datetime-picker/utils.d.ts +5 -0
- package/lib/datetime-picker/utils.js +47 -0
- package/lib/dialog/Dialog.d.ts +4 -0
- package/lib/dialog/Dialog.js +178 -0
- package/lib/dialog/PropsType.d.ts +70 -0
- package/lib/dialog/PropsType.js +6 -0
- package/lib/dialog/index.d.ts +4 -0
- package/lib/dialog/index.js +16 -0
- package/lib/dialog/method.d.ts +3 -0
- package/lib/dialog/method.js +177 -0
- package/lib/dialog/style/index.css +121 -0
- package/lib/dialog/style/var.css +0 -0
- package/lib/divider/Divider.d.ts +4 -0
- package/lib/divider/Divider.js +53 -0
- package/lib/divider/PropsType.d.ts +22 -0
- package/lib/divider/PropsType.js +6 -0
- package/lib/divider/index.d.ts +4 -0
- package/lib/divider/index.js +14 -0
- package/lib/divider/style/index.css +72 -0
- package/lib/divider/style/var.css +0 -0
- package/lib/dropdown-menu/DropdownMenu.d.ts +4 -0
- package/lib/dropdown-menu/DropdownMenu.js +235 -0
- package/lib/dropdown-menu/DropdownMenuContext.d.ts +11 -0
- package/lib/dropdown-menu/DropdownMenuContext.js +16 -0
- package/lib/dropdown-menu/DropdownMenuItem.d.ts +4 -0
- package/lib/dropdown-menu/DropdownMenuItem.js +189 -0
- package/lib/dropdown-menu/PropsType.d.ts +95 -0
- package/lib/dropdown-menu/PropsType.js +6 -0
- package/lib/dropdown-menu/index.d.ts +8 -0
- package/lib/dropdown-menu/index.js +14 -0
- package/lib/dropdown-menu/style/index.css +104 -0
- package/lib/dropdown-menu/style/var.css +0 -0
- package/lib/empty/Empty.d.ts +4 -0
- package/lib/empty/Empty.js +89 -0
- package/lib/empty/Network.d.ts +1 -0
- package/lib/empty/Network.js +156 -0
- package/lib/empty/PropsType.d.ts +9 -0
- package/lib/empty/PropsType.js +6 -0
- package/lib/empty/index.d.ts +4 -0
- package/lib/empty/index.js +14 -0
- package/lib/empty/style/index.css +36 -0
- package/lib/empty/style/var.css +0 -0
- package/lib/field/Field.d.ts +7 -0
- package/lib/field/Field.js +325 -0
- package/lib/field/PropsType.d.ts +82 -0
- package/lib/field/PropsType.js +6 -0
- package/lib/field/index.d.ts +5 -0
- package/lib/field/index.js +16 -0
- package/lib/field/style/index.css +132 -0
- package/lib/field/style/var.css +0 -0
- package/lib/flex/Flex.d.ts +4 -0
- package/lib/flex/Flex.js +76 -0
- package/lib/flex/FlexContext.d.ts +6 -0
- package/lib/flex/FlexContext.js +16 -0
- package/lib/flex/FlexItem.d.ts +4 -0
- package/lib/flex/FlexItem.js +77 -0
- package/lib/flex/PropsType.d.ts +35 -0
- package/lib/flex/PropsType.js +6 -0
- package/lib/flex/index.d.ts +8 -0
- package/lib/flex/index.js +14 -0
- package/lib/flex/style/index.css +187 -0
- package/lib/flex/style/mixins.css +0 -0
- package/lib/floating-ball/FloatingBall.d.ts +4 -0
- package/lib/floating-ball/FloatingBall.js +298 -0
- package/lib/floating-ball/FloatingBallContext.d.ts +6 -0
- package/lib/floating-ball/FloatingBallContext.js +16 -0
- package/lib/floating-ball/FloatingBallItem.d.ts +3 -0
- package/lib/floating-ball/FloatingBallItem.js +42 -0
- package/lib/floating-ball/PropsType.d.ts +77 -0
- package/lib/floating-ball/PropsType.js +6 -0
- package/lib/floating-ball/index.d.ts +4 -0
- package/lib/floating-ball/index.js +14 -0
- package/lib/floating-ball/style/index.css +197 -0
- package/lib/floating-ball/style/var.css +4 -0
- package/lib/floating-ball/useFloatingTouch.d.ts +66 -0
- package/lib/floating-ball/useFloatingTouch.js +119 -0
- package/lib/floating-panel/FloatingPanel.d.ts +4 -0
- package/lib/floating-panel/FloatingPanel.js +157 -0
- package/lib/floating-panel/PropsType.d.ts +8 -0
- package/lib/floating-panel/PropsType.js +6 -0
- package/lib/floating-panel/index.d.ts +6 -0
- package/lib/floating-panel/index.js +16 -0
- package/lib/floating-panel/style/index.css +38 -0
- package/lib/floating-panel/style/var.css +0 -0
- package/lib/form/Form.d.ts +10 -0
- package/lib/form/Form.js +86 -0
- package/lib/form/FormContext.d.ts +11 -0
- package/lib/form/FormContext.js +22 -0
- package/lib/form/FormItem.d.ts +4 -0
- package/lib/form/FormItem.js +233 -0
- package/lib/form/FormSubscribe.d.ts +16 -0
- package/lib/form/FormSubscribe.js +50 -0
- package/lib/form/PropsType.d.ts +41 -0
- package/lib/form/PropsType.js +6 -0
- package/lib/form/index.d.ts +19 -0
- package/lib/form/index.js +25 -0
- package/lib/form/style/index.css +8 -0
- package/lib/form/style/var.css +0 -0
- package/lib/form/utils.d.ts +1 -0
- package/lib/form/utils.js +29 -0
- package/lib/grid/Grid.d.ts +4 -0
- package/lib/grid/Grid.js +66 -0
- package/lib/grid/GridItem.d.ts +8 -0
- package/lib/grid/GridItem.js +160 -0
- package/lib/grid/PropsType.d.ts +40 -0
- package/lib/grid/PropsType.js +6 -0
- package/lib/grid/index.d.ts +11 -0
- package/lib/grid/index.js +19 -0
- package/lib/grid/style/index.css +80 -0
- package/lib/grid/style/var.css +0 -0
- package/lib/hooks/create-update-effect.d.ts +4 -0
- package/lib/hooks/create-update-effect.js +31 -0
- package/lib/hooks/index.d.ts +38 -0
- package/lib/hooks/index.js +145 -0
- package/lib/hooks/use-click-away.d.ts +5 -0
- package/lib/hooks/use-click-away.js +37 -0
- package/lib/hooks/use-count-down.d.ts +32 -0
- package/lib/hooks/use-count-down.js +124 -0
- package/lib/hooks/use-debunce-effect.d.ts +4 -0
- package/lib/hooks/use-debunce-effect.js +30 -0
- package/lib/hooks/use-debunce-fn.d.ts +18 -0
- package/lib/hooks/use-debunce-fn.js +42 -0
- package/lib/hooks/use-drag-and-pinch.d.ts +1 -0
- package/lib/hooks/use-drag-and-pinch.js +15 -0
- package/lib/hooks/use-effect-with-target.d.ts +4 -0
- package/lib/hooks/use-effect-with-target.js +66 -0
- package/lib/hooks/use-event-listener.d.ts +11 -0
- package/lib/hooks/use-event-listener.js +68 -0
- package/lib/hooks/use-form-smart.d.ts +20 -0
- package/lib/hooks/use-form-smart.js +67 -0
- package/lib/hooks/use-height.d.ts +4 -0
- package/lib/hooks/use-height.js +26 -0
- package/lib/hooks/use-in-viewport.d.ts +8 -0
- package/lib/hooks/use-in-viewport.js +41 -0
- package/lib/hooks/use-isomorphic-layout-effect.d.ts +4 -0
- package/lib/hooks/use-isomorphic-layout-effect.js +19 -0
- package/lib/hooks/use-latest.d.ts +3 -0
- package/lib/hooks/use-latest.js +20 -0
- package/lib/hooks/use-lazy-effect.d.ts +3 -0
- package/lib/hooks/use-lazy-effect.js +24 -0
- package/lib/hooks/use-lazy-render.d.ts +3 -0
- package/lib/hooks/use-lazy-render.js +24 -0
- package/lib/hooks/use-lock-fn.d.ts +2 -0
- package/lib/hooks/use-lock-fn.js +37 -0
- package/lib/hooks/use-lock-scroll.d.ts +2 -0
- package/lib/hooks/use-lock-scroll.js +75 -0
- package/lib/hooks/use-memoized-fn.d.ts +3 -0
- package/lib/hooks/use-memoized-fn.js +35 -0
- package/lib/hooks/use-merged-state.d.ts +5 -0
- package/lib/hooks/use-merged-state.js +35 -0
- package/lib/hooks/use-mount.d.ts +2 -0
- package/lib/hooks/use-mount.js +21 -0
- package/lib/hooks/use-next-tick.d.ts +2 -0
- package/lib/hooks/use-next-tick.js +30 -0
- package/lib/hooks/use-page-visibility.d.ts +3 -0
- package/lib/hooks/use-page-visibility.js +35 -0
- package/lib/hooks/use-props-value.d.ts +8 -0
- package/lib/hooks/use-props-value.js +38 -0
- package/lib/hooks/use-rect.d.ts +11 -0
- package/lib/hooks/use-rect.js +38 -0
- package/lib/hooks/use-ref-state.d.ts +4 -0
- package/lib/hooks/use-ref-state.js +26 -0
- package/lib/hooks/use-refs.d.ts +1 -0
- package/lib/hooks/use-refs.js +26 -0
- package/lib/hooks/use-resize-effect.d.ts +2 -0
- package/lib/hooks/use-resize-effect.js +27 -0
- package/lib/hooks/use-scroll-parent.d.ts +5 -0
- package/lib/hooks/use-scroll-parent.js +58 -0
- package/lib/hooks/use-set-state.d.ts +3 -0
- package/lib/hooks/use-set-state.js +28 -0
- package/lib/hooks/use-throttle-fn.d.ts +17 -0
- package/lib/hooks/use-throttle-fn.js +41 -0
- package/lib/hooks/use-touch.d.ts +17 -0
- package/lib/hooks/use-touch.js +80 -0
- package/lib/hooks/use-unmount.d.ts +2 -0
- package/lib/hooks/use-unmount.js +30 -0
- package/lib/hooks/use-unmounted-ref.d.ts +2 -0
- package/lib/hooks/use-unmounted-ref.js +26 -0
- package/lib/hooks/use-update-effect.d.ts +3 -0
- package/lib/hooks/use-update-effect.js +26 -0
- package/lib/hooks/use-update.d.ts +2 -0
- package/lib/hooks/use-update.js +19 -0
- package/lib/hooks/use-visibility-change.d.ts +2 -0
- package/lib/hooks/use-visibility-change.js +46 -0
- package/lib/hooks/use-window-size.d.ts +5 -0
- package/lib/hooks/use-window-size.js +32 -0
- package/lib/image/Image.d.ts +4 -0
- package/lib/image/Image.js +154 -0
- package/lib/image/LazyImage.d.ts +9 -0
- package/lib/image/LazyImage.js +95 -0
- package/lib/image/PropsType.d.ts +55 -0
- package/lib/image/PropsType.js +6 -0
- package/lib/image/index.d.ts +5 -0
- package/lib/image/index.js +16 -0
- package/lib/image/style/index.css +70 -0
- package/lib/image/style/var.css +0 -0
- package/lib/image-preview/ImagePreview.d.ts +6 -0
- package/lib/image-preview/ImagePreview.js +131 -0
- package/lib/image-preview/PropsType.d.ts +47 -0
- package/lib/image-preview/PropsType.js +6 -0
- package/lib/image-preview/index.d.ts +4 -0
- package/lib/image-preview/index.js +16 -0
- package/lib/image-preview/method.d.ts +3 -0
- package/lib/image-preview/method.js +98 -0
- package/lib/image-preview/slide.d.ts +12 -0
- package/lib/image-preview/slide.js +205 -0
- package/lib/image-preview/slides.d.ts +14 -0
- package/lib/image-preview/slides.js +132 -0
- package/lib/image-preview/style/index.css +118 -0
- package/lib/image-preview/style/var.css +0 -0
- package/lib/index-bar/IndexAnchor.d.ts +5 -0
- package/lib/index-bar/IndexAnchor.js +124 -0
- package/lib/index-bar/IndexBar.d.ts +4 -0
- package/lib/index-bar/IndexBar.js +280 -0
- package/lib/index-bar/IndexBarContext.d.ts +8 -0
- package/lib/index-bar/IndexBarContext.js +16 -0
- package/lib/index-bar/PropsType.d.ts +37 -0
- package/lib/index-bar/PropsType.js +6 -0
- package/lib/index-bar/index.d.ts +8 -0
- package/lib/index-bar/index.js +19 -0
- package/lib/index-bar/style/index.css +54 -0
- package/lib/index-bar/style/var.css +0 -0
- package/lib/index.css +6711 -0
- package/lib/index.d.ts +73 -0
- package/lib/index.js +869 -0
- package/lib/index.min.css +1 -0
- package/lib/input/Input.d.ts +4 -0
- package/lib/input/Input.js +204 -0
- package/lib/input/PropsType.d.ts +55 -0
- package/lib/input/PropsType.js +6 -0
- package/lib/input/index.d.ts +9 -0
- package/lib/input/index.js +14 -0
- package/lib/input/style/index.css +82 -0
- package/lib/input/style/var.css +0 -0
- package/lib/lazyload/Lazyload.d.ts +4 -0
- package/lib/lazyload/Lazyload.js +62 -0
- package/lib/lazyload/PropsType.d.ts +9 -0
- package/lib/lazyload/PropsType.js +6 -0
- package/lib/lazyload/index.d.ts +4 -0
- package/lib/lazyload/index.js +16 -0
- package/lib/lazyload/style/index.css +5 -0
- package/lib/lazyload/style/var.css +0 -0
- package/lib/list/List.d.ts +4 -0
- package/lib/list/List.js +50 -0
- package/lib/list/LoadMore.d.ts +4 -0
- package/lib/list/LoadMore.js +165 -0
- package/lib/list/PropsType.d.ts +31 -0
- package/lib/list/PropsType.js +6 -0
- package/lib/list/index.d.ts +5 -0
- package/lib/list/index.js +16 -0
- package/lib/list/style/index.css +18 -0
- package/lib/list/style/var.css +0 -0
- package/lib/loading/Loading.d.ts +4 -0
- package/lib/loading/Loading.js +114 -0
- package/lib/loading/PropsType.d.ts +25 -0
- package/lib/loading/PropsType.js +6 -0
- package/lib/loading/index.d.ts +5 -0
- package/lib/loading/index.js +16 -0
- package/lib/loading/style/index.css +199 -0
- package/lib/loading/style/var.css +0 -0
- package/lib/locale/index.d.ts +7 -0
- package/lib/locale/index.js +55 -0
- package/lib/locale/lang/base.d.ts +75 -0
- package/lib/locale/lang/base.js +81 -0
- package/lib/locale/lang/en-US.d.ts +75 -0
- package/lib/locale/lang/en-US.js +81 -0
- package/lib/locale/lang/fr-FR.d.ts +74 -0
- package/lib/locale/lang/fr-FR.js +80 -0
- package/lib/locale/lang/ja-JP.d.ts +75 -0
- package/lib/locale/lang/ja-JP.js +81 -0
- package/lib/locale/lang/types.d.ts +75 -0
- package/lib/locale/lang/types.js +6 -0
- package/lib/locale/lang/zh-CN.d.ts +11 -0
- package/lib/locale/lang/zh-CN.js +15 -0
- package/lib/locale/lang/zh-HK.d.ts +75 -0
- package/lib/locale/lang/zh-HK.js +81 -0
- package/lib/locale/lang/zh-TW.d.ts +75 -0
- package/lib/locale/lang/zh-TW.js +81 -0
- package/lib/nav-bar/Navbar.d.ts +4 -0
- package/lib/nav-bar/Navbar.js +136 -0
- package/lib/nav-bar/PropsType.d.ts +25 -0
- package/lib/nav-bar/PropsType.js +6 -0
- package/lib/nav-bar/index.d.ts +4 -0
- package/lib/nav-bar/index.js +14 -0
- package/lib/nav-bar/style/index.css +72 -0
- package/lib/nav-bar/style/var.css +0 -0
- package/lib/notice-bar/NoticeBar.d.ts +4 -0
- package/lib/notice-bar/NoticeBar.js +208 -0
- package/lib/notice-bar/PropsType.d.ts +36 -0
- package/lib/notice-bar/PropsType.js +6 -0
- package/lib/notice-bar/index.d.ts +4 -0
- package/lib/notice-bar/index.js +14 -0
- package/lib/notice-bar/style/index.css +62 -0
- package/lib/notice-bar/style/var.css +0 -0
- package/lib/notify/Notify.d.ts +4 -0
- package/lib/notify/Notify.js +66 -0
- package/lib/notify/PropsType.d.ts +59 -0
- package/lib/notify/PropsType.js +6 -0
- package/lib/notify/index.d.ts +5 -0
- package/lib/notify/index.js +16 -0
- package/lib/notify/method.d.ts +11 -0
- package/lib/notify/method.js +138 -0
- package/lib/notify/style/index.css +35 -0
- package/lib/notify/style/var.css +0 -0
- package/lib/number-keyboard/NumberKeyboard.d.ts +4 -0
- package/lib/number-keyboard/NumberKeyboard.js +264 -0
- package/lib/number-keyboard/NumberKeyboardKey.d.ts +4 -0
- package/lib/number-keyboard/NumberKeyboardKey.js +137 -0
- package/lib/number-keyboard/PropsType.d.ts +75 -0
- package/lib/number-keyboard/PropsType.js +6 -0
- package/lib/number-keyboard/index.d.ts +5 -0
- package/lib/number-keyboard/index.js +16 -0
- package/lib/number-keyboard/style/index.css +134 -0
- package/lib/number-keyboard/style/var.css +0 -0
- package/lib/overlay/Overlay.d.ts +4 -0
- package/lib/overlay/Overlay.js +92 -0
- package/lib/overlay/PropsType.d.ts +17 -0
- package/lib/overlay/PropsType.js +6 -0
- package/lib/overlay/index.d.ts +5 -0
- package/lib/overlay/index.js +16 -0
- package/lib/overlay/style/index.css +13 -0
- package/lib/overlay/style/var.css +0 -0
- package/lib/pagination/Pagination.d.ts +4 -0
- package/lib/pagination/Pagination.js +164 -0
- package/lib/pagination/PropsType.d.ts +33 -0
- package/lib/pagination/PropsType.js +6 -0
- package/lib/pagination/index.d.ts +4 -0
- package/lib/pagination/index.js +14 -0
- package/lib/pagination/style/index.css +69 -0
- package/lib/pagination/style/var.css +0 -0
- package/lib/password-input/PasswordInput.d.ts +4 -0
- package/lib/password-input/PasswordInput.js +219 -0
- package/lib/password-input/PropsType.d.ts +36 -0
- package/lib/password-input/PropsType.js +6 -0
- package/lib/password-input/index.d.ts +4 -0
- package/lib/password-input/index.js +14 -0
- package/lib/password-input/style/index.css +112 -0
- package/lib/password-input/style/var.css +0 -0
- package/lib/picker/Picker.d.ts +7 -0
- package/lib/picker/Picker.js +341 -0
- package/lib/picker/PickerColumn.d.ts +8 -0
- package/lib/picker/PickerColumn.js +295 -0
- package/lib/picker/PropsType.d.ts +106 -0
- package/lib/picker/PropsType.js +6 -0
- package/lib/picker/columnsExtend.d.ts +9 -0
- package/lib/picker/columnsExtend.js +138 -0
- package/lib/picker/index.d.ts +5 -0
- package/lib/picker/index.js +16 -0
- package/lib/picker/style/index.css +113 -0
- package/lib/picker/style/var.css +0 -0
- package/lib/popover/Popover.d.ts +4 -0
- package/lib/popover/Popover.js +226 -0
- package/lib/popover/PropsType.d.ts +71 -0
- package/lib/popover/PropsType.js +6 -0
- package/lib/popover/index.d.ts +5 -0
- package/lib/popover/index.js +16 -0
- package/lib/popover/style/index.css +213 -0
- package/lib/popover/style/var.css +0 -0
- package/lib/popup/Popup.d.ts +5 -0
- package/lib/popup/Popup.js +254 -0
- package/lib/popup/PopupContext.d.ts +6 -0
- package/lib/popup/PopupContext.js +16 -0
- package/lib/popup/PropsType.d.ts +72 -0
- package/lib/popup/PropsType.js +6 -0
- package/lib/popup/index.d.ts +5 -0
- package/lib/popup/index.js +16 -0
- package/lib/popup/style/index.css +132 -0
- package/lib/popup/style/var.css +0 -0
- package/lib/product-card/ProductCard.d.ts +4 -0
- package/lib/product-card/ProductCard.js +170 -0
- package/lib/product-card/PropsType.d.ts +40 -0
- package/lib/product-card/PropsType.js +6 -0
- package/lib/product-card/index.d.ts +3 -0
- package/lib/product-card/index.js +14 -0
- package/lib/product-card/style/index.css +108 -0
- package/lib/product-card/style/var.css +0 -0
- package/lib/progress/Progress.d.ts +4 -0
- package/lib/progress/Progress.js +86 -0
- package/lib/progress/PropsType.d.ts +13 -0
- package/lib/progress/PropsType.js +6 -0
- package/lib/progress/index.d.ts +4 -0
- package/lib/progress/index.js +14 -0
- package/lib/progress/style/index.css +41 -0
- package/lib/progress/style/var.css +0 -0
- package/lib/pull-refresh/PropsType.d.ts +39 -0
- package/lib/pull-refresh/PropsType.js +6 -0
- package/lib/pull-refresh/PullRefresh.d.ts +4 -0
- package/lib/pull-refresh/PullRefresh.js +261 -0
- package/lib/pull-refresh/index.d.ts +4 -0
- package/lib/pull-refresh/index.js +14 -0
- package/lib/pull-refresh/style/index.css +31 -0
- package/lib/pull-refresh/style/var.css +0 -0
- package/lib/radio/PropsType.d.ts +24 -0
- package/lib/radio/PropsType.js +6 -0
- package/lib/radio/Radio.d.ts +3 -0
- package/lib/radio/Radio.js +55 -0
- package/lib/radio/RadioContext.d.ts +11 -0
- package/lib/radio/RadioContext.js +16 -0
- package/lib/radio/RadioGroup.d.ts +3 -0
- package/lib/radio/RadioGroup.js +54 -0
- package/lib/radio/index.d.ts +8 -0
- package/lib/radio/index.js +19 -0
- package/lib/radio/style/index.css +90 -0
- package/lib/radio/style/var.css +0 -0
- package/lib/rate/PropsType.d.ts +55 -0
- package/lib/rate/PropsType.js +6 -0
- package/lib/rate/Rate.d.ts +4 -0
- package/lib/rate/Rate.js +238 -0
- package/lib/rate/index.d.ts +4 -0
- package/lib/rate/index.js +14 -0
- package/lib/rate/style/index.css +43 -0
- package/lib/rate/style/var.css +0 -0
- package/lib/search/PropsType.d.ts +29 -0
- package/lib/search/PropsType.js +6 -0
- package/lib/search/Search.d.ts +4 -0
- package/lib/search/Search.js +191 -0
- package/lib/search/index.d.ts +4 -0
- package/lib/search/index.js +14 -0
- package/lib/search/style/index.css +64 -0
- package/lib/search/style/var.css +0 -0
- package/lib/selector/CheckMark.d.ts +2 -0
- package/lib/selector/CheckMark.js +61 -0
- package/lib/selector/PropsType.d.ts +25 -0
- package/lib/selector/PropsType.js +6 -0
- package/lib/selector/Selector.d.ts +2 -0
- package/lib/selector/Selector.js +88 -0
- package/lib/selector/index.d.ts +4 -0
- package/lib/selector/index.js +14 -0
- package/lib/selector/style/index.css +69 -0
- package/lib/selector/style/var.css +0 -0
- package/lib/share-sheet/PropsType.d.ts +29 -0
- package/lib/share-sheet/PropsType.js +6 -0
- package/lib/share-sheet/ShareSheet.d.ts +4 -0
- package/lib/share-sheet/ShareSheet.js +151 -0
- package/lib/share-sheet/index.d.ts +5 -0
- package/lib/share-sheet/index.js +16 -0
- package/lib/share-sheet/style/index.css +103 -0
- package/lib/share-sheet/style/var.css +0 -0
- package/lib/sidebar/PropsType.d.ts +41 -0
- package/lib/sidebar/PropsType.js +6 -0
- package/lib/sidebar/Sidebar.d.ts +4 -0
- package/lib/sidebar/Sidebar.js +98 -0
- package/lib/sidebar/SidebarItem.d.ts +4 -0
- package/lib/sidebar/SidebarItem.js +63 -0
- package/lib/sidebar/index.d.ts +8 -0
- package/lib/sidebar/index.js +19 -0
- package/lib/sidebar/style/index.css +77 -0
- package/lib/sidebar/style/var.css +0 -0
- package/lib/skeleton/PropsType.d.ts +31 -0
- package/lib/skeleton/PropsType.js +6 -0
- package/lib/skeleton/Skeleton.d.ts +4 -0
- package/lib/skeleton/Skeleton.js +122 -0
- package/lib/skeleton/index.d.ts +5 -0
- package/lib/skeleton/index.js +16 -0
- package/lib/skeleton/style/index.css +56 -0
- package/lib/skeleton/style/var.css +0 -0
- package/lib/sku/PropsType.d.ts +189 -0
- package/lib/sku/PropsType.js +6 -0
- package/lib/sku/Sku.d.ts +4 -0
- package/lib/sku/Sku.js +537 -0
- package/lib/sku/components/SkuRow.d.ts +7 -0
- package/lib/sku/components/SkuRow.js +60 -0
- package/lib/sku/components/SkuRowItem.d.ts +15 -0
- package/lib/sku/components/SkuRowItem.js +108 -0
- package/lib/sku/components/SkuRowPropItem.d.ts +10 -0
- package/lib/sku/components/SkuRowPropItem.js +64 -0
- package/lib/sku/components/SkuStepper.d.ts +17 -0
- package/lib/sku/components/SkuStepper.js +148 -0
- package/lib/sku/constants.d.ts +13 -0
- package/lib/sku/constants.js +16 -0
- package/lib/sku/index.d.ts +5 -0
- package/lib/sku/index.js +16 -0
- package/lib/sku/style/index.css +283 -0
- package/lib/sku/style/var.css +0 -0
- package/lib/sku/utils.d.ts +25 -0
- package/lib/sku/utils.js +170 -0
- package/lib/slider/PropsType.d.ts +59 -0
- package/lib/slider/PropsType.js +6 -0
- package/lib/slider/Slider.d.ts +4 -0
- package/lib/slider/Slider.js +297 -0
- package/lib/slider/index.d.ts +4 -0
- package/lib/slider/index.js +14 -0
- package/lib/slider/style/index.css +85 -0
- package/lib/slider/style/var.css +0 -0
- package/lib/space/PropsType.d.ts +25 -0
- package/lib/space/PropsType.js +6 -0
- package/lib/space/Space.d.ts +4 -0
- package/lib/space/Space.js +82 -0
- package/lib/space/index.d.ts +4 -0
- package/lib/space/index.js +14 -0
- package/lib/space/style/index.css +56 -0
- package/lib/space/style/var.css +0 -0
- package/lib/stepper/PropsType.d.ts +66 -0
- package/lib/stepper/PropsType.js +6 -0
- package/lib/stepper/Stepper.d.ts +4 -0
- package/lib/stepper/Stepper.js +257 -0
- package/lib/stepper/index.d.ts +5 -0
- package/lib/stepper/index.js +16 -0
- package/lib/stepper/style/index.css +130 -0
- package/lib/stepper/style/var.css +0 -0
- package/lib/steps/PropsType.d.ts +33 -0
- package/lib/steps/PropsType.js +6 -0
- package/lib/steps/Steps.d.ts +4 -0
- package/lib/steps/Steps.js +72 -0
- package/lib/steps/StepsItem.d.ts +4 -0
- package/lib/steps/StepsItem.js +150 -0
- package/lib/steps/index.d.ts +8 -0
- package/lib/steps/index.js +19 -0
- package/lib/steps/style/index.css +143 -0
- package/lib/steps/style/var.css +0 -0
- package/lib/sticky/PropsType.d.ts +25 -0
- package/lib/sticky/PropsType.js +6 -0
- package/lib/sticky/Sticky.d.ts +4 -0
- package/lib/sticky/Sticky.js +150 -0
- package/lib/sticky/index.d.ts +5 -0
- package/lib/sticky/index.js +16 -0
- package/lib/sticky/style/index.css +7 -0
- package/lib/sticky/style/var.css +0 -0
- package/lib/styles/animation.css +130 -0
- package/lib/styles/base.css +310 -0
- package/lib/styles/css-variables.css +66 -0
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/index.js +4 -0
- package/lib/styles/mixins/ellipsis.css +0 -0
- package/lib/styles/mixins/hairline.css +0 -0
- package/lib/styles/normalize.css +29 -0
- package/lib/styles/var.css +0 -0
- package/lib/submit-bar/PropsType.d.ts +40 -0
- package/lib/submit-bar/PropsType.js +6 -0
- package/lib/submit-bar/SubmitBar.d.ts +4 -0
- package/lib/submit-bar/SubmitBar.js +131 -0
- package/lib/submit-bar/index.d.ts +4 -0
- package/lib/submit-bar/index.js +16 -0
- package/lib/submit-bar/style/index.css +84 -0
- package/lib/submit-bar/style/var.css +0 -0
- package/lib/swipe-cell/PropsType.d.ts +39 -0
- package/lib/swipe-cell/PropsType.js +6 -0
- package/lib/swipe-cell/SwipeCell.d.ts +4 -0
- package/lib/swipe-cell/SwipeCell.js +205 -0
- package/lib/swipe-cell/index.d.ts +4 -0
- package/lib/swipe-cell/index.js +14 -0
- package/lib/swipe-cell/style/index.css +23 -0
- package/lib/swiper/PropsType.d.ts +70 -0
- package/lib/swiper/PropsType.js +6 -0
- package/lib/swiper/Swiper.d.ts +4 -0
- package/lib/swiper/Swiper.js +353 -0
- package/lib/swiper/SwiperItem.d.ts +4 -0
- package/lib/swiper/SwiperItem.js +56 -0
- package/lib/swiper/SwiperPagIndicator.d.ts +4 -0
- package/lib/swiper/SwiperPagIndicator.js +60 -0
- package/lib/swiper/index.d.ts +8 -0
- package/lib/swiper/index.js +14 -0
- package/lib/swiper/style/index.css +107 -0
- package/lib/swiper/style/var.css +0 -0
- package/lib/switch/PropsType.d.ts +25 -0
- package/lib/switch/PropsType.js +6 -0
- package/lib/switch/Switch.d.ts +4 -0
- package/lib/switch/Switch.js +96 -0
- package/lib/switch/index.d.ts +5 -0
- package/lib/switch/index.js +16 -0
- package/lib/switch/style/index.css +60 -0
- package/lib/switch/style/var.css +0 -0
- package/lib/tabbar/PropsType.d.ts +36 -0
- package/lib/tabbar/PropsType.js +6 -0
- package/lib/tabbar/Tabbar.d.ts +4 -0
- package/lib/tabbar/Tabbar.js +106 -0
- package/lib/tabbar/TabbarContext.d.ts +7 -0
- package/lib/tabbar/TabbarContext.js +16 -0
- package/lib/tabbar/TabbarItem.d.ts +4 -0
- package/lib/tabbar/TabbarItem.js +90 -0
- package/lib/tabbar/index.d.ts +8 -0
- package/lib/tabbar/index.js +19 -0
- package/lib/tabbar/style/index.css +54 -0
- package/lib/tabbar/style/var.css +0 -0
- package/lib/tabs/PropsType.d.ts +149 -0
- package/lib/tabs/PropsType.js +6 -0
- package/lib/tabs/TabPane.d.ts +4 -0
- package/lib/tabs/TabPane.js +83 -0
- package/lib/tabs/Tabs.d.ts +4 -0
- package/lib/tabs/Tabs.js +367 -0
- package/lib/tabs/TabsContent.d.ts +4 -0
- package/lib/tabs/TabsContent.js +94 -0
- package/lib/tabs/TabsContext.d.ts +9 -0
- package/lib/tabs/TabsContext.js +16 -0
- package/lib/tabs/TabsTitle.d.ts +4 -0
- package/lib/tabs/TabsTitle.js +125 -0
- package/lib/tabs/index.d.ts +8 -0
- package/lib/tabs/index.js +14 -0
- package/lib/tabs/style/index.css +201 -0
- package/lib/tabs/style/var.css +0 -0
- package/lib/tabs/utils.d.ts +1 -0
- package/lib/tabs/utils.js +47 -0
- package/lib/tag/PropsType.d.ts +26 -0
- package/lib/tag/PropsType.js +6 -0
- package/lib/tag/Tag.d.ts +4 -0
- package/lib/tag/Tag.js +111 -0
- package/lib/tag/index.d.ts +5 -0
- package/lib/tag/index.js +16 -0
- package/lib/tag/style/index.css +110 -0
- package/lib/tag/style/var.css +0 -0
- package/lib/text-area/PropsType.d.ts +32 -0
- package/lib/text-area/PropsType.js +6 -0
- package/lib/text-area/TextArea.d.ts +4 -0
- package/lib/text-area/TextArea.js +215 -0
- package/lib/text-area/index.d.ts +5 -0
- package/lib/text-area/index.js +16 -0
- package/lib/text-area/style/index.css +144 -0
- package/lib/text-area/style/var.css +0 -0
- package/lib/toast/PropsType.d.ts +74 -0
- package/lib/toast/PropsType.js +6 -0
- package/lib/toast/Toast.d.ts +6 -0
- package/lib/toast/Toast.js +125 -0
- package/lib/toast/index.d.ts +5 -0
- package/lib/toast/index.js +16 -0
- package/lib/toast/lock-click.d.ts +1 -0
- package/lib/toast/lock-click.js +21 -0
- package/lib/toast/method.d.ts +3 -0
- package/lib/toast/method.js +159 -0
- package/lib/toast/style/index.css +72 -0
- package/lib/toast/style/var.css +0 -0
- package/lib/typography/Ellipsis.d.ts +4 -0
- package/lib/typography/Ellipsis.js +153 -0
- package/lib/typography/PropsType.d.ts +34 -0
- package/lib/typography/PropsType.js +6 -0
- package/lib/typography/Typography.d.ts +6 -0
- package/lib/typography/Typography.js +149 -0
- package/lib/typography/index.d.ts +12 -0
- package/lib/typography/index.js +33 -0
- package/lib/typography/style/index.css +132 -0
- package/lib/typography/style/var.css +0 -0
- package/lib/uploader/PropsType.d.ts +132 -0
- package/lib/uploader/PropsType.js +6 -0
- package/lib/uploader/Uploader.d.ts +4 -0
- package/lib/uploader/Uploader.js +312 -0
- package/lib/uploader/UploaderPreviewItem.d.ts +3 -0
- package/lib/uploader/UploaderPreviewItem.js +133 -0
- package/lib/uploader/index.d.ts +4 -0
- package/lib/uploader/index.js +14 -0
- package/lib/uploader/style/index.css +166 -0
- package/lib/uploader/style/var.css +0 -0
- package/lib/uploader/utils.d.ts +10 -0
- package/lib/uploader/utils.js +87 -0
- package/lib/utils/base.d.ts +18 -0
- package/lib/utils/base.js +57 -0
- package/lib/utils/bound.d.ts +1 -0
- package/lib/utils/bound.js +17 -0
- package/lib/utils/constant.d.ts +16 -0
- package/lib/utils/constant.js +27 -0
- package/lib/utils/create/bem.d.ts +14 -0
- package/lib/utils/create/bem.js +39 -0
- package/lib/utils/create/index.d.ts +3 -0
- package/lib/utils/create/index.js +14 -0
- package/lib/utils/debounce.d.ts +6 -0
- package/lib/utils/debounce.js +129 -0
- package/lib/utils/deep-assign.d.ts +3 -0
- package/lib/utils/deep-assign.js +26 -0
- package/lib/utils/deep-clone.d.ts +4 -0
- package/lib/utils/deep-clone.js +36 -0
- package/lib/utils/dev-log.d.ts +1 -0
- package/lib/utils/dev-log.js +15 -0
- package/lib/utils/dom/canUseDom.d.ts +1 -0
- package/lib/utils/dom/canUseDom.js +10 -0
- package/lib/utils/dom/event.d.ts +5 -0
- package/lib/utils/dom/event.js +44 -0
- package/lib/utils/dom/getContainer.d.ts +1 -0
- package/lib/utils/dom/getContainer.js +11 -0
- package/lib/utils/dom/getTargetElement.d.ts +4 -0
- package/lib/utils/dom/getTargetElement.js +21 -0
- package/lib/utils/dom/render copy.d.ts +9 -0
- package/lib/utils/dom/render copy.js +87 -0
- package/lib/utils/dom/render.d.ts +9 -0
- package/lib/utils/dom/render.js +103 -0
- package/lib/utils/dom/renderToContainer.d.ts +3 -0
- package/lib/utils/dom/renderToContainer.js +24 -0
- package/lib/utils/dom/scroll.d.ts +12 -0
- package/lib/utils/dom/scroll.js +103 -0
- package/lib/utils/dom/style.d.ts +1 -0
- package/lib/utils/dom/style.js +20 -0
- package/lib/utils/dom/version.d.ts +2 -0
- package/lib/utils/dom/version.js +23 -0
- package/lib/utils/format/number.d.ts +3 -0
- package/lib/utils/format/number.js +43 -0
- package/lib/utils/format/react.d.ts +2 -0
- package/lib/utils/format/react.js +27 -0
- package/lib/utils/format/string.d.ts +2 -0
- package/lib/utils/format/string.js +19 -0
- package/lib/utils/format/unit.d.ts +12 -0
- package/lib/utils/format/unit.js +80 -0
- package/lib/utils/get-default-props.d.ts +2 -0
- package/lib/utils/get-default-props.js +19 -0
- package/lib/utils/index.d.ts +10 -0
- package/lib/utils/index.js +116 -0
- package/lib/utils/interceptor.d.ts +7 -0
- package/lib/utils/interceptor.js +38 -0
- package/lib/utils/interface.d.ts +13 -0
- package/lib/utils/interface.js +6 -0
- package/lib/utils/is-dev.d.ts +1 -0
- package/lib/utils/is-dev.js +8 -0
- package/lib/utils/raf.d.ts +4 -0
- package/lib/utils/raf.js +37 -0
- package/lib/utils/rubberband.d.ts +2 -0
- package/lib/utils/rubberband.js +18 -0
- package/lib/utils/supports-passive.d.ts +1 -0
- package/lib/utils/supports-passive.js +21 -0
- package/lib/utils/throttle.d.ts +7 -0
- package/lib/utils/throttle.js +27 -0
- package/lib/utils/validate/date.d.ts +1 -0
- package/lib/utils/validate/date.js +11 -0
- package/lib/utils/validate/number.d.ts +2 -0
- package/lib/utils/validate/number.js +18 -0
- package/lib/utils/validate/system.d.ts +2 -0
- package/lib/utils/validate/system.js +15 -0
- package/lib/water-mark/PropsType.d.ts +39 -0
- package/lib/water-mark/PropsType.js +6 -0
- package/lib/water-mark/WaterMark.d.ts +4 -0
- package/lib/water-mark/WaterMark.js +127 -0
- package/lib/water-mark/index.d.ts +4 -0
- package/lib/water-mark/index.js +14 -0
- package/lib/water-mark/style/index.css +16 -0
- package/package.json +96 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, forwardRef } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { createNamespace, isObject } from '../utils';
|
|
5
|
+
import Badge from '../badge';
|
|
6
|
+
const [bem] = createNamespace('tab');
|
|
7
|
+
const TabsTitle = forwardRef((props, ref) => {
|
|
8
|
+
const {
|
|
9
|
+
type,
|
|
10
|
+
color,
|
|
11
|
+
isActive,
|
|
12
|
+
activeColor,
|
|
13
|
+
inactiveColor,
|
|
14
|
+
disabled,
|
|
15
|
+
className
|
|
16
|
+
} = props;
|
|
17
|
+
const customStyle = useMemo(() => {
|
|
18
|
+
const style = Object.assign({}, props.style);
|
|
19
|
+
const isCard = type === 'card';
|
|
20
|
+
// card theme color
|
|
21
|
+
if (color) {
|
|
22
|
+
if (isCard) {
|
|
23
|
+
style.borderColor = color;
|
|
24
|
+
}
|
|
25
|
+
if (!disabled) {
|
|
26
|
+
if (isCard) {
|
|
27
|
+
if (isActive) {
|
|
28
|
+
style.backgroundColor = color;
|
|
29
|
+
} else {
|
|
30
|
+
style.color = color;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if ((props.type === 'line' || props.type === 'jumbo') && isActive) {
|
|
34
|
+
style.color = color;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
const titleColor = isActive ? activeColor : inactiveColor;
|
|
39
|
+
if (titleColor) {
|
|
40
|
+
style.color = titleColor;
|
|
41
|
+
}
|
|
42
|
+
return style;
|
|
43
|
+
}, [type, color, disabled, isActive, activeColor, inactiveColor]);
|
|
44
|
+
const renderText = () => {
|
|
45
|
+
const Title = _jsx("span", Object.assign({
|
|
46
|
+
className: clsx(bem('text', {
|
|
47
|
+
ellipsis: !props.scrollable && props.type !== 'jumbo'
|
|
48
|
+
})),
|
|
49
|
+
style: {
|
|
50
|
+
backgroundColor: props.type === 'capsule' && isActive && color
|
|
51
|
+
}
|
|
52
|
+
}, {
|
|
53
|
+
children: (() => {
|
|
54
|
+
if (typeof props.title === 'function') {
|
|
55
|
+
return props.title(isActive);
|
|
56
|
+
}
|
|
57
|
+
return props.title;
|
|
58
|
+
})()
|
|
59
|
+
}));
|
|
60
|
+
const Description = props.type === 'jumbo' && !!props.description ? _jsx("div", Object.assign({
|
|
61
|
+
className: clsx(bem('description')),
|
|
62
|
+
style: {
|
|
63
|
+
backgroundColor: isActive && color
|
|
64
|
+
}
|
|
65
|
+
}, {
|
|
66
|
+
children: (() => {
|
|
67
|
+
if (typeof props.description === 'function') {
|
|
68
|
+
return props.description(isActive);
|
|
69
|
+
}
|
|
70
|
+
return props.description;
|
|
71
|
+
})()
|
|
72
|
+
})) : null;
|
|
73
|
+
const measureContent = _jsxs(_Fragment, {
|
|
74
|
+
children: [Title, Description]
|
|
75
|
+
});
|
|
76
|
+
if (props.badge) {
|
|
77
|
+
const badgeProps = isObject(props.badge) ? props.badge : {
|
|
78
|
+
content: props.badge
|
|
79
|
+
};
|
|
80
|
+
return _jsx(Badge, Object.assign({}, badgeProps, {
|
|
81
|
+
children: measureContent
|
|
82
|
+
}));
|
|
83
|
+
}
|
|
84
|
+
return measureContent;
|
|
85
|
+
};
|
|
86
|
+
return _jsx("div", Object.assign({
|
|
87
|
+
ref: ref,
|
|
88
|
+
className: clsx([bem({
|
|
89
|
+
active: props.isActive,
|
|
90
|
+
disabled: props.disabled
|
|
91
|
+
}), className]),
|
|
92
|
+
style: customStyle,
|
|
93
|
+
"aria-selected": props.isActive,
|
|
94
|
+
onClick: props.onClick
|
|
95
|
+
}, {
|
|
96
|
+
children: renderText()
|
|
97
|
+
}));
|
|
98
|
+
});
|
|
99
|
+
export default TabsTitle;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './style/index.less';
|
|
3
|
+
declare const Tabs: import("react").ForwardRefExoticComponent<import("./PropsType").TabsProps & import("react").RefAttributes<import("./PropsType").TabsInstance>> & {
|
|
4
|
+
TabPane: import("react").ForwardRefExoticComponent<import("./PropsType").TabPaneProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
+
};
|
|
6
|
+
export default Tabs;
|
|
7
|
+
export { Tabs };
|
|
8
|
+
export type { TabsInstance } from './PropsType';
|
package/es/tabs/index.js
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--rv-tab-text-color: var(--rv-gray-7);
|
|
3
|
+
--rv-tab-active-text-color: var(--rv-primary-color);
|
|
4
|
+
--rv-tab-disabled-text-color: var(--rv-gray-5);
|
|
5
|
+
--rv-tab-font-size: var(--rv-font-size-md);
|
|
6
|
+
--rv-tab-line-height: var(--rv-line-height-md);
|
|
7
|
+
--rv-tabs-default-color: var(--rv-primary-color);
|
|
8
|
+
--rv-tabs-line-height: 44px;
|
|
9
|
+
--rv-tabs-card-height: 30px;
|
|
10
|
+
--rv-tabs-nav-background-color: var(--rv-white);
|
|
11
|
+
--rv-tabs-bottom-bar-width: 40px;
|
|
12
|
+
--rv-tabs-bottom-bar-height: 3px;
|
|
13
|
+
--rv-tabs-bottom-bar-color: var(--rv-primary-color);
|
|
14
|
+
--rv-tab-capsule-padding: var(--rv-padding-xs) var(--rv-padding-sm);
|
|
15
|
+
--rv-tabs-jumbo-height: 64px;
|
|
16
|
+
--rv-tab-jumbo-title-size: var(--rv-font-size-lg);
|
|
17
|
+
--rv-tab-description-font-size: var(--rv-font-size-sm);
|
|
18
|
+
--rv-tab-description-color: #969799;
|
|
19
|
+
--rv-tab-description-background-color: #ebedf0;
|
|
20
|
+
}
|
|
21
|
+
.rv-tab {
|
|
22
|
+
position: relative;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex: 1;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
padding: 0 var(--rv-padding-base);
|
|
29
|
+
color: var(--rv-tab-text-color);
|
|
30
|
+
font-size: var(--rv-tab-font-size);
|
|
31
|
+
line-height: var(--rv-tab-line-height);
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
.rv-tab__pane {
|
|
35
|
+
height: 100%;
|
|
36
|
+
}
|
|
37
|
+
.rv-tab__pane,
|
|
38
|
+
.rv-tab__pane-wrapper {
|
|
39
|
+
flex-shrink: 0;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
width: 100%;
|
|
42
|
+
}
|
|
43
|
+
.rv-tab__pane-wrapper--inactive {
|
|
44
|
+
height: 0;
|
|
45
|
+
overflow: visible;
|
|
46
|
+
}
|
|
47
|
+
.rv-tab--active {
|
|
48
|
+
color: var(--rv-tab-active-text-color);
|
|
49
|
+
font-weight: var(--rv-font-weight-bold);
|
|
50
|
+
}
|
|
51
|
+
.rv-tab--disabled {
|
|
52
|
+
color: var(--rv-tab-disabled-text-color);
|
|
53
|
+
cursor: not-allowed;
|
|
54
|
+
}
|
|
55
|
+
.rv-tab__text--ellipsis {
|
|
56
|
+
display: -webkit-box;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
-webkit-line-clamp: 1;
|
|
59
|
+
-webkit-box-orient: vertical;
|
|
60
|
+
}
|
|
61
|
+
.rv-tab__description {
|
|
62
|
+
padding: 2px var(--rv-padding-xs);
|
|
63
|
+
border-radius: 10px;
|
|
64
|
+
color: var(--rv-tab-description-color);
|
|
65
|
+
font-size: var(--rv-tab-description-font-size);
|
|
66
|
+
line-height: var(--rv-tab-description-font-size);
|
|
67
|
+
background-color: var(--rv-tab-description-background-color);
|
|
68
|
+
font-weight: normal;
|
|
69
|
+
}
|
|
70
|
+
.rv-tabs {
|
|
71
|
+
position: relative;
|
|
72
|
+
}
|
|
73
|
+
.rv-tabs__wrap {
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
}
|
|
76
|
+
.rv-tabs__wrap--page-top {
|
|
77
|
+
position: fixed;
|
|
78
|
+
}
|
|
79
|
+
.rv-tabs__wrap--content-bottom {
|
|
80
|
+
top: auto;
|
|
81
|
+
bottom: 0;
|
|
82
|
+
}
|
|
83
|
+
.rv-tabs__wrap--scrollable .rv-tab {
|
|
84
|
+
flex: 1 0 auto;
|
|
85
|
+
padding: 0 var(--rv-padding-sm);
|
|
86
|
+
}
|
|
87
|
+
.rv-tabs__wrap--scrollable .rv-tabs__nav {
|
|
88
|
+
overflow-x: auto;
|
|
89
|
+
overflow-y: hidden;
|
|
90
|
+
-webkit-overflow-scrolling: touch;
|
|
91
|
+
}
|
|
92
|
+
.rv-tabs__wrap--scrollable .rv-tabs__nav::-webkit-scrollbar {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
.rv-tabs__nav {
|
|
96
|
+
position: relative;
|
|
97
|
+
display: flex;
|
|
98
|
+
background-color: var(--rv-tabs-nav-background-color);
|
|
99
|
+
user-select: none;
|
|
100
|
+
}
|
|
101
|
+
.rv-tabs__nav--line,
|
|
102
|
+
.rv-tabs__nav--capsule,
|
|
103
|
+
.rv-tabs__nav--jumbo {
|
|
104
|
+
box-sizing: content-box;
|
|
105
|
+
height: 100%;
|
|
106
|
+
padding-bottom: 15px;
|
|
107
|
+
/* 15px padding to hide scrollbar in mobile safari */
|
|
108
|
+
}
|
|
109
|
+
.rv-tabs__nav--line.rv-tabs__nav--complete {
|
|
110
|
+
padding-right: var(--rv-padding-xs);
|
|
111
|
+
padding-left: var(--rv-padding-xs);
|
|
112
|
+
}
|
|
113
|
+
.rv-tabs__nav--start .rv-tab {
|
|
114
|
+
flex: none;
|
|
115
|
+
padding: 0 var(--rv-padding-sm);
|
|
116
|
+
}
|
|
117
|
+
.rv-tabs__nav--card {
|
|
118
|
+
box-sizing: border-box;
|
|
119
|
+
height: var(--rv-tabs-card-height);
|
|
120
|
+
margin: 0 var(--rv-padding-md);
|
|
121
|
+
border: var(--rv-border-width-base) solid var(--rv-tabs-default-color);
|
|
122
|
+
border-radius: var(--rv-border-radius-sm);
|
|
123
|
+
}
|
|
124
|
+
.rv-tabs__nav--card .rv-tab {
|
|
125
|
+
color: var(--rv-tabs-default-color);
|
|
126
|
+
border-right: var(--rv-border-width-base) solid var(--rv-tabs-default-color);
|
|
127
|
+
}
|
|
128
|
+
.rv-tabs__nav--card .rv-tab:last-child {
|
|
129
|
+
border-right: none;
|
|
130
|
+
}
|
|
131
|
+
.rv-tabs__nav--card .rv-tab.rv-tab--active {
|
|
132
|
+
color: var(--rv-white);
|
|
133
|
+
background-color: var(--rv-tabs-default-color);
|
|
134
|
+
}
|
|
135
|
+
.rv-tabs__nav--card .rv-tab--disabled {
|
|
136
|
+
color: var(--rv-tab-disabled-text-color);
|
|
137
|
+
}
|
|
138
|
+
.rv-tabs__nav--capsule .rv-tab {
|
|
139
|
+
padding: var(--rv-tab-capsule-padding);
|
|
140
|
+
}
|
|
141
|
+
.rv-tabs__nav--capsule .rv-tab__text {
|
|
142
|
+
width: 100%;
|
|
143
|
+
height: 100%;
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
}
|
|
148
|
+
.rv-tabs__nav--capsule .rv-tab.rv-tab--active {
|
|
149
|
+
color: var(--rv-white);
|
|
150
|
+
}
|
|
151
|
+
.rv-tabs__nav--capsule .rv-tab.rv-tab--active .rv-tab__text {
|
|
152
|
+
border-radius: 22px;
|
|
153
|
+
background-color: var(--rv-tabs-bottom-bar-color);
|
|
154
|
+
}
|
|
155
|
+
.rv-tabs__nav--jumbo .rv-tab {
|
|
156
|
+
flex-direction: column;
|
|
157
|
+
align-items: center;
|
|
158
|
+
}
|
|
159
|
+
.rv-tabs__nav--jumbo .rv-tab__text {
|
|
160
|
+
font-size: var(--rv-tab-jumbo-title-size);
|
|
161
|
+
line-height: 1.6em;
|
|
162
|
+
}
|
|
163
|
+
.rv-tabs__nav--jumbo .rv-tab--active .rv-tab__description {
|
|
164
|
+
color: var(--rv-white);
|
|
165
|
+
background-color: var(--rv-tab-active-text-color);
|
|
166
|
+
}
|
|
167
|
+
.rv-tabs__line {
|
|
168
|
+
position: absolute;
|
|
169
|
+
bottom: 15px;
|
|
170
|
+
left: 0;
|
|
171
|
+
z-index: 1;
|
|
172
|
+
width: var(--rv-tabs-bottom-bar-width);
|
|
173
|
+
height: var(--rv-tabs-bottom-bar-height);
|
|
174
|
+
background-color: var(--rv-tabs-bottom-bar-color);
|
|
175
|
+
border-radius: var(--rv-tabs-bottom-bar-height);
|
|
176
|
+
}
|
|
177
|
+
.rv-tabs__track {
|
|
178
|
+
position: relative;
|
|
179
|
+
display: flex;
|
|
180
|
+
width: 100%;
|
|
181
|
+
height: 100%;
|
|
182
|
+
will-change: left;
|
|
183
|
+
}
|
|
184
|
+
.rv-tabs__content--animated {
|
|
185
|
+
overflow: hidden;
|
|
186
|
+
}
|
|
187
|
+
.rv-tabs--line .rv-tabs__wrap,
|
|
188
|
+
.rv-tabs--capsule .rv-tabs__wrap {
|
|
189
|
+
height: var(--rv-tabs-line-height);
|
|
190
|
+
}
|
|
191
|
+
.rv-tabs--card > .rv-tabs__wrap {
|
|
192
|
+
height: var(--rv-tabs-card-height);
|
|
193
|
+
}
|
|
194
|
+
.rv-tabs--jumbo .rv-tabs__wrap {
|
|
195
|
+
height: var(--rv-tabs-jumbo-height);
|
|
196
|
+
}
|
|
197
|
+
.rv-tabs--jumbo .rv-badge__wrapper {
|
|
198
|
+
display: flex;
|
|
199
|
+
align-items: center;
|
|
200
|
+
flex-direction: column;
|
|
201
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isReachBottom(offset?: number): boolean;
|
package/es/tabs/utils.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
function getScrollTop() {
|
|
2
|
+
let scrollTop = 0;
|
|
3
|
+
let bodyScrollTop = 0;
|
|
4
|
+
let documentScrollTop = 0;
|
|
5
|
+
if (document.body) {
|
|
6
|
+
bodyScrollTop = document.body.scrollTop;
|
|
7
|
+
}
|
|
8
|
+
if (document.documentElement) {
|
|
9
|
+
documentScrollTop = document.documentElement.scrollTop;
|
|
10
|
+
}
|
|
11
|
+
scrollTop = bodyScrollTop - documentScrollTop > 0 ? bodyScrollTop : documentScrollTop;
|
|
12
|
+
return scrollTop;
|
|
13
|
+
}
|
|
14
|
+
// 文档的总高度
|
|
15
|
+
function getScrollHeight() {
|
|
16
|
+
let scrollHeight = 0;
|
|
17
|
+
let bodyScrollHeight = 0;
|
|
18
|
+
let documentScrollHeight = 0;
|
|
19
|
+
if (document.body) {
|
|
20
|
+
bodyScrollHeight = document.body.scrollHeight;
|
|
21
|
+
}
|
|
22
|
+
if (document.documentElement) {
|
|
23
|
+
documentScrollHeight = document.documentElement.scrollHeight;
|
|
24
|
+
}
|
|
25
|
+
scrollHeight = bodyScrollHeight - documentScrollHeight > 0 ? bodyScrollHeight : documentScrollHeight;
|
|
26
|
+
return scrollHeight;
|
|
27
|
+
}
|
|
28
|
+
// 浏览器视口的高度
|
|
29
|
+
function getWindowHeight() {
|
|
30
|
+
let windowHeight = 0;
|
|
31
|
+
if (document.compatMode === 'CSS1Compat') {
|
|
32
|
+
windowHeight = document.documentElement.clientHeight;
|
|
33
|
+
} else {
|
|
34
|
+
windowHeight = document.body.clientHeight;
|
|
35
|
+
}
|
|
36
|
+
return windowHeight;
|
|
37
|
+
}
|
|
38
|
+
export function isReachBottom(offset = 0) {
|
|
39
|
+
return getScrollTop() + getWindowHeight() + offset >= getScrollHeight();
|
|
40
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseTypeProps } from '../utils';
|
|
3
|
+
export declare type TagSize = '' | 'mini' | 'medium' | 'large';
|
|
4
|
+
export declare type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
5
|
+
export interface TagProps extends BaseTypeProps {
|
|
6
|
+
/** 大小, 可选值为 large medium */
|
|
7
|
+
size?: TagSize;
|
|
8
|
+
/** 是否为标记样式 */
|
|
9
|
+
mark?: boolean;
|
|
10
|
+
/** 标签颜色 */
|
|
11
|
+
color?: string;
|
|
12
|
+
/** 是否为空心样式 */
|
|
13
|
+
plain?: boolean;
|
|
14
|
+
/** 是否为圆角样式 */
|
|
15
|
+
round?: boolean;
|
|
16
|
+
/** 文本颜色,优先级高于 color 属性 */
|
|
17
|
+
textColor?: string;
|
|
18
|
+
/** 是否为可关闭标签 */
|
|
19
|
+
closeable?: boolean;
|
|
20
|
+
/** 类型 */
|
|
21
|
+
type?: TagType;
|
|
22
|
+
/** 是否展示标签 */
|
|
23
|
+
show?: boolean;
|
|
24
|
+
onClose?: (e: React.MouseEvent) => void;
|
|
25
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/es/tag/Tag.d.ts
ADDED
package/es/tag/Tag.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useRef } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { CSSTransition } from 'react-transition-group';
|
|
5
|
+
import { Cross } from '@react-vant/icons';
|
|
6
|
+
import { createNamespace } from '../utils';
|
|
7
|
+
import { mergeProps } from '../utils/get-default-props';
|
|
8
|
+
const [bem] = createNamespace('tag');
|
|
9
|
+
const Tag = p => {
|
|
10
|
+
const props = mergeProps(p, {
|
|
11
|
+
show: true,
|
|
12
|
+
type: 'default'
|
|
13
|
+
});
|
|
14
|
+
const nodeRef = useRef(null);
|
|
15
|
+
const onClose = event => {
|
|
16
|
+
event.stopPropagation();
|
|
17
|
+
if (props.onClose) {
|
|
18
|
+
props.onClose(event);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const getStyle = useMemo(() => {
|
|
22
|
+
if (props.plain) {
|
|
23
|
+
return {
|
|
24
|
+
color: props.textColor || props.color,
|
|
25
|
+
borderColor: props.color
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
color: props.textColor,
|
|
30
|
+
background: props.color
|
|
31
|
+
};
|
|
32
|
+
}, [props.textColor, props.color, props.plain]);
|
|
33
|
+
const renderTag = () => {
|
|
34
|
+
const {
|
|
35
|
+
type,
|
|
36
|
+
mark,
|
|
37
|
+
plain,
|
|
38
|
+
round,
|
|
39
|
+
size,
|
|
40
|
+
closeable
|
|
41
|
+
} = props;
|
|
42
|
+
const classes = {
|
|
43
|
+
mark,
|
|
44
|
+
plain,
|
|
45
|
+
round
|
|
46
|
+
};
|
|
47
|
+
if (size) {
|
|
48
|
+
classes[size] = size;
|
|
49
|
+
}
|
|
50
|
+
const CloseIcon = closeable && _jsx(Cross, {
|
|
51
|
+
className: clsx(bem('close')),
|
|
52
|
+
onClick: onClose
|
|
53
|
+
});
|
|
54
|
+
return _jsxs("span", Object.assign({
|
|
55
|
+
ref: nodeRef,
|
|
56
|
+
style: Object.assign(Object.assign({}, getStyle), props.style),
|
|
57
|
+
className: clsx(props.className, bem([classes, type])),
|
|
58
|
+
onClick: props.onClick
|
|
59
|
+
}, {
|
|
60
|
+
children: [props.children, CloseIcon]
|
|
61
|
+
}));
|
|
62
|
+
};
|
|
63
|
+
return _jsx(CSSTransition, Object.assign({
|
|
64
|
+
nodeRef: nodeRef,
|
|
65
|
+
classNames: 'rv-fade',
|
|
66
|
+
in: props.show,
|
|
67
|
+
timeout: 300,
|
|
68
|
+
unmountOnExit: true
|
|
69
|
+
}, {
|
|
70
|
+
children: renderTag()
|
|
71
|
+
}));
|
|
72
|
+
};
|
|
73
|
+
export default Tag;
|
package/es/tag/index.js
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--rv-tag-padding: 0 var(--rv-padding-base);
|
|
3
|
+
--rv-tag-text-color: var(--rv-white);
|
|
4
|
+
--rv-tag-font-size: var(--rv-font-size-sm);
|
|
5
|
+
--rv-tag-border-radius: 2px;
|
|
6
|
+
--rv-tag-line-height: 16px;
|
|
7
|
+
--rv-tag-medium-padding: 2px 6px;
|
|
8
|
+
--rv-tag-large-padding: var(--rv-padding-base) var(--rv-padding-xs);
|
|
9
|
+
--rv-tag-large-border-radius: var(--rv-border-radius-md);
|
|
10
|
+
--rv-tag-large-font-size: var(--rv-font-size-md);
|
|
11
|
+
--rv-tag-round-border-radius: var(--rv-border-radius-max);
|
|
12
|
+
--rv-tag-danger-color: var(--rv-danger-color);
|
|
13
|
+
--rv-tag-primary-color: var(--rv-primary-color);
|
|
14
|
+
--rv-tag-success-color: var(--rv-success-color);
|
|
15
|
+
--rv-tag-warning-color: var(--rv-warning-color);
|
|
16
|
+
--rv-tag-default-color: var(--rv-gray-6);
|
|
17
|
+
--rv-tag-plain-background-color: var(--rv-white);
|
|
18
|
+
}
|
|
19
|
+
.rv-tag {
|
|
20
|
+
position: relative;
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
padding: var(--rv-tag-padding);
|
|
24
|
+
color: var(--rv-tag-text-color);
|
|
25
|
+
font-size: var(--rv-tag-font-size);
|
|
26
|
+
line-height: var(--rv-tag-line-height);
|
|
27
|
+
border-radius: var(--rv-tag-border-radius);
|
|
28
|
+
}
|
|
29
|
+
.rv-tag--default {
|
|
30
|
+
background-color: var(--rv-tag-default-color);
|
|
31
|
+
}
|
|
32
|
+
.rv-tag--default.rv-tag--plain {
|
|
33
|
+
color: var(--rv-tag-default-color);
|
|
34
|
+
}
|
|
35
|
+
.rv-tag--danger {
|
|
36
|
+
background-color: var(--rv-tag-danger-color);
|
|
37
|
+
}
|
|
38
|
+
.rv-tag--danger.rv-tag--plain {
|
|
39
|
+
color: var(--rv-tag-danger-color);
|
|
40
|
+
}
|
|
41
|
+
.rv-tag--primary {
|
|
42
|
+
background-color: var(--rv-tag-primary-color);
|
|
43
|
+
}
|
|
44
|
+
.rv-tag--primary.rv-tag--plain {
|
|
45
|
+
color: var(--rv-tag-primary-color);
|
|
46
|
+
}
|
|
47
|
+
.rv-tag--success {
|
|
48
|
+
background-color: var(--rv-tag-success-color);
|
|
49
|
+
}
|
|
50
|
+
.rv-tag--success.rv-tag--plain {
|
|
51
|
+
color: var(--rv-tag-success-color);
|
|
52
|
+
}
|
|
53
|
+
.rv-tag--warning {
|
|
54
|
+
background-color: var(--rv-tag-warning-color);
|
|
55
|
+
}
|
|
56
|
+
.rv-tag--warning.rv-tag--plain {
|
|
57
|
+
color: var(--rv-tag-warning-color);
|
|
58
|
+
}
|
|
59
|
+
.rv-tag--plain {
|
|
60
|
+
background-color: var(--rv-tag-plain-background-color);
|
|
61
|
+
border-color: currentColor;
|
|
62
|
+
}
|
|
63
|
+
.rv-tag--plain::before {
|
|
64
|
+
position: absolute;
|
|
65
|
+
top: 0;
|
|
66
|
+
right: 0;
|
|
67
|
+
bottom: 0;
|
|
68
|
+
left: 0;
|
|
69
|
+
border: 1px solid;
|
|
70
|
+
border-color: inherit;
|
|
71
|
+
border-radius: inherit;
|
|
72
|
+
content: '';
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
}
|
|
75
|
+
.rv-tag--medium {
|
|
76
|
+
padding: var(--rv-tag-medium-padding);
|
|
77
|
+
}
|
|
78
|
+
.rv-tag--large {
|
|
79
|
+
padding: var(--rv-tag-large-padding);
|
|
80
|
+
font-size: var(--rv-tag-large-font-size);
|
|
81
|
+
border-radius: var(--rv-tag-large-border-radius);
|
|
82
|
+
}
|
|
83
|
+
.rv-tag--mark {
|
|
84
|
+
border-radius: 0 var(--rv-tag-round-border-radius) var(--rv-tag-round-border-radius) 0;
|
|
85
|
+
}
|
|
86
|
+
.rv-tag--mark::after {
|
|
87
|
+
display: block;
|
|
88
|
+
width: 2px;
|
|
89
|
+
content: '';
|
|
90
|
+
}
|
|
91
|
+
.rv-tag--round {
|
|
92
|
+
border-radius: var(--rv-tag-round-border-radius);
|
|
93
|
+
}
|
|
94
|
+
.rv-tag__close {
|
|
95
|
+
margin-left: 2px;
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
}
|
|
98
|
+
.rv-tag--hairline {
|
|
99
|
+
border-width: 0;
|
|
100
|
+
}
|
|
101
|
+
.rv-tag--hairline::after {
|
|
102
|
+
border-color: inherit;
|
|
103
|
+
border-radius: var(--rv-tag-round-border-radius);
|
|
104
|
+
}
|
|
105
|
+
.rv-tag--hairline.rv-tag--plain::before {
|
|
106
|
+
border-width: 0;
|
|
107
|
+
}
|
|
108
|
+
.rv-tag--hairline.rv-tag--round::after {
|
|
109
|
+
border-radius: var(--rv-tag-round-border-radius);
|
|
110
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputSharedProps } from '../input/PropsType';
|
|
3
|
+
export declare type AutosizeConfig = {
|
|
4
|
+
maxHeight?: number;
|
|
5
|
+
minHeight?: number;
|
|
6
|
+
};
|
|
7
|
+
declare type NativeTextAreaProps = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>;
|
|
8
|
+
export declare type TextAreaSelfProps = {
|
|
9
|
+
/** 输入的最大字符数 */
|
|
10
|
+
maxLength?: number;
|
|
11
|
+
/** 输入框行数 */
|
|
12
|
+
rows?: number;
|
|
13
|
+
/** 是否显示字数统计,需要设置maxlength属性 */
|
|
14
|
+
showWordLimit?: boolean | (({ currentCount, maxLength, }: {
|
|
15
|
+
currentCount: number;
|
|
16
|
+
maxLength: number;
|
|
17
|
+
}) => React.ReactNode);
|
|
18
|
+
/**
|
|
19
|
+
* 是否自适应内容高度,只对 textarea 有效
|
|
20
|
+
* 可传入对象,如 { maxHeight: 100, minHeight: 50 },单位为px
|
|
21
|
+
*/
|
|
22
|
+
autoSize?: boolean | AutosizeConfig;
|
|
23
|
+
};
|
|
24
|
+
export interface TextAreaProps extends Pick<NativeTextAreaProps, 'autoComplete' | 'autoFocus' | 'disabled' | 'readOnly' | 'name' | 'onFocus' | 'onBlur' | 'onCompositionStart' | 'onCompositionEnd' | 'onKeyUp' | 'onKeyDown' | 'onKeyPress' | 'onClick'>, InputSharedProps, TextAreaSelfProps {
|
|
25
|
+
}
|
|
26
|
+
export declare type TextAreaInstance = {
|
|
27
|
+
focus: () => void;
|
|
28
|
+
blur: () => void;
|
|
29
|
+
clear: () => void;
|
|
30
|
+
nativeElement: HTMLTextAreaElement | null;
|
|
31
|
+
};
|
|
32
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|