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,262 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
function _react() {
|
|
8
|
+
const data = _interopRequireWildcard(require("react"));
|
|
9
|
+
_react = function () {
|
|
10
|
+
return data;
|
|
11
|
+
};
|
|
12
|
+
return data;
|
|
13
|
+
}
|
|
14
|
+
function _tslib() {
|
|
15
|
+
const data = require("tslib");
|
|
16
|
+
_tslib = function () {
|
|
17
|
+
return data;
|
|
18
|
+
};
|
|
19
|
+
return data;
|
|
20
|
+
}
|
|
21
|
+
function _jsxRuntime() {
|
|
22
|
+
const data = require("react/jsx-runtime");
|
|
23
|
+
_jsxRuntime = function () {
|
|
24
|
+
return data;
|
|
25
|
+
};
|
|
26
|
+
return data;
|
|
27
|
+
}
|
|
28
|
+
var _picker = _interopRequireDefault(require("../picker"));
|
|
29
|
+
var _utils = require("./utils");
|
|
30
|
+
var _date = require("../utils/validate/date");
|
|
31
|
+
var _utils2 = require("../utils");
|
|
32
|
+
var _hooks = require("../hooks");
|
|
33
|
+
var _useRefState = _interopRequireDefault(require("../hooks/use-ref-state"));
|
|
34
|
+
var _getDefaultProps = require("../utils/get-default-props");
|
|
35
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
36
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
37
|
+
const DatePicker = (0, _react().forwardRef)((p, ref) => {
|
|
38
|
+
const props = (0, _getDefaultProps.mergeProps)(p, {
|
|
39
|
+
type: 'datetime',
|
|
40
|
+
placeholder: false,
|
|
41
|
+
minDate: DefaultMinDate,
|
|
42
|
+
maxDate: DefaultMaxDate,
|
|
43
|
+
formatter: (type, value) => value
|
|
44
|
+
});
|
|
45
|
+
const {
|
|
46
|
+
value,
|
|
47
|
+
defaultValue,
|
|
48
|
+
formatter,
|
|
49
|
+
columnsOrder,
|
|
50
|
+
type: datePickerType,
|
|
51
|
+
filter,
|
|
52
|
+
minDate,
|
|
53
|
+
maxDate
|
|
54
|
+
} = props,
|
|
55
|
+
pickerProps = (0, _tslib().__rest)(props, ["value", "defaultValue", "formatter", "columnsOrder", "type", "filter", "minDate", "maxDate"]);
|
|
56
|
+
const formatValue = date => {
|
|
57
|
+
if (!(0, _date.isDate)(date)) {
|
|
58
|
+
date = new Date();
|
|
59
|
+
}
|
|
60
|
+
date = Math.max(date, minDate.getTime());
|
|
61
|
+
date = Math.min(date, maxDate.getTime());
|
|
62
|
+
return new Date(date);
|
|
63
|
+
};
|
|
64
|
+
const [currentDate, setCurrentDate, currentDateRef] = (0, _useRefState.default)(() => formatValue(value || defaultValue));
|
|
65
|
+
const getBoundary = (type, value) => {
|
|
66
|
+
const boundary = props[`${type}Date`];
|
|
67
|
+
const year = boundary.getFullYear();
|
|
68
|
+
let month = 1;
|
|
69
|
+
let date = 1;
|
|
70
|
+
let hour = 0;
|
|
71
|
+
let minute = 0;
|
|
72
|
+
if (type === 'max') {
|
|
73
|
+
month = 12;
|
|
74
|
+
date = (0, _utils.getMonthEndDay)(value.getFullYear(), value.getMonth() + 1);
|
|
75
|
+
hour = 23;
|
|
76
|
+
minute = 59;
|
|
77
|
+
}
|
|
78
|
+
if (value.getFullYear() === year) {
|
|
79
|
+
month = boundary.getMonth() + 1;
|
|
80
|
+
if (value.getMonth() + 1 === month) {
|
|
81
|
+
date = boundary.getDate();
|
|
82
|
+
if (value.getDate() === date) {
|
|
83
|
+
hour = boundary.getHours();
|
|
84
|
+
if (value.getHours() === hour) {
|
|
85
|
+
minute = boundary.getMinutes();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
[`${type}Year`]: year,
|
|
92
|
+
[`${type}Month`]: month,
|
|
93
|
+
[`${type}Date`]: date,
|
|
94
|
+
[`${type}Hour`]: hour,
|
|
95
|
+
[`${type}Minute`]: minute
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
const originColumns = (0, _react().useMemo)(() => {
|
|
99
|
+
const {
|
|
100
|
+
maxYear,
|
|
101
|
+
maxDate,
|
|
102
|
+
maxMonth,
|
|
103
|
+
maxHour,
|
|
104
|
+
maxMinute
|
|
105
|
+
} = getBoundary('max', currentDateRef.current);
|
|
106
|
+
const {
|
|
107
|
+
minYear,
|
|
108
|
+
minDate,
|
|
109
|
+
minMonth,
|
|
110
|
+
minHour,
|
|
111
|
+
minMinute
|
|
112
|
+
} = getBoundary('min', currentDateRef.current);
|
|
113
|
+
let result = [{
|
|
114
|
+
type: 'year',
|
|
115
|
+
range: [minYear, maxYear]
|
|
116
|
+
}, {
|
|
117
|
+
type: 'month',
|
|
118
|
+
range: [minMonth, maxMonth]
|
|
119
|
+
}, {
|
|
120
|
+
type: 'day',
|
|
121
|
+
range: [minDate, maxDate]
|
|
122
|
+
}, {
|
|
123
|
+
type: 'hour',
|
|
124
|
+
range: [minHour, maxHour]
|
|
125
|
+
}, {
|
|
126
|
+
type: 'minute',
|
|
127
|
+
range: [minMinute, maxMinute]
|
|
128
|
+
}];
|
|
129
|
+
switch (datePickerType) {
|
|
130
|
+
case 'date':
|
|
131
|
+
result = result.slice(0, 3);
|
|
132
|
+
break;
|
|
133
|
+
case 'year-month':
|
|
134
|
+
result = result.slice(0, 2);
|
|
135
|
+
break;
|
|
136
|
+
case 'month-day':
|
|
137
|
+
result = result.slice(1, 3);
|
|
138
|
+
break;
|
|
139
|
+
case 'datehour':
|
|
140
|
+
result = result.slice(0, 4);
|
|
141
|
+
break;
|
|
142
|
+
default:
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
if (columnsOrder) {
|
|
146
|
+
const columnsOrderArr = columnsOrder.concat(result.map(column => column.type));
|
|
147
|
+
result.sort((a, b) => columnsOrderArr.indexOf(a.type) - columnsOrderArr.indexOf(b.type));
|
|
148
|
+
}
|
|
149
|
+
return result.map(({
|
|
150
|
+
type,
|
|
151
|
+
range: rangeArr
|
|
152
|
+
}) => {
|
|
153
|
+
// 根据范围获取每列的值
|
|
154
|
+
let values = (0, _utils.times)(rangeArr[1] - rangeArr[0] + 1, index => {
|
|
155
|
+
return (0, _utils2.padZero)(rangeArr[0] + index);
|
|
156
|
+
});
|
|
157
|
+
if (filter) {
|
|
158
|
+
values = filter(type, values);
|
|
159
|
+
}
|
|
160
|
+
return {
|
|
161
|
+
type,
|
|
162
|
+
values
|
|
163
|
+
};
|
|
164
|
+
});
|
|
165
|
+
}, [columnsOrder, currentDateRef.current, minDate, maxDate]);
|
|
166
|
+
const columns = (0, _react().useMemo)(() => originColumns.map(column => column.values.map(value => formatter(column.type, value))), [originColumns, formatter]);
|
|
167
|
+
const pickerValue = (0, _react().useMemo)(() => {
|
|
168
|
+
const value = props.popup ? formatValue(currentDateRef.current) : currentDateRef.current;
|
|
169
|
+
const values = originColumns.map(column => {
|
|
170
|
+
switch (column.type) {
|
|
171
|
+
case 'year':
|
|
172
|
+
return formatter('year', `${value.getFullYear()}`);
|
|
173
|
+
case 'month':
|
|
174
|
+
return formatter('month', (0, _utils2.padZero)(value.getMonth() + 1));
|
|
175
|
+
case 'day':
|
|
176
|
+
return formatter('day', (0, _utils2.padZero)(value.getDate()));
|
|
177
|
+
case 'hour':
|
|
178
|
+
return formatter('hour', (0, _utils2.padZero)(value.getHours()));
|
|
179
|
+
case 'minute':
|
|
180
|
+
return formatter('minute', (0, _utils2.padZero)(value.getMinutes()));
|
|
181
|
+
default:
|
|
182
|
+
// no default
|
|
183
|
+
return '';
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
return values;
|
|
187
|
+
}, [props.value, currentDateRef.current, formatValue]);
|
|
188
|
+
const updateInnerValue = indexes => {
|
|
189
|
+
const {
|
|
190
|
+
type
|
|
191
|
+
} = props;
|
|
192
|
+
const getValue = datetimePickerColumnType => {
|
|
193
|
+
let index = 0;
|
|
194
|
+
originColumns.forEach((column, columnIndex) => {
|
|
195
|
+
if (datetimePickerColumnType === column.type) {
|
|
196
|
+
index = columnIndex;
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
const {
|
|
200
|
+
values
|
|
201
|
+
} = originColumns[index];
|
|
202
|
+
return (0, _utils.getTrueValue)(values[indexes[index]]);
|
|
203
|
+
};
|
|
204
|
+
let year = null;
|
|
205
|
+
let month = null;
|
|
206
|
+
let day = null;
|
|
207
|
+
if (type === 'month-day') {
|
|
208
|
+
year = (currentDate || minDate).getFullYear();
|
|
209
|
+
month = getValue('month');
|
|
210
|
+
day = getValue('day');
|
|
211
|
+
} else {
|
|
212
|
+
year = getValue('year');
|
|
213
|
+
month = getValue('month');
|
|
214
|
+
day = type === 'year-month' ? 1 : getValue('day');
|
|
215
|
+
}
|
|
216
|
+
const maxDay = (0, _utils.getMonthEndDay)(year, month);
|
|
217
|
+
day = day > maxDay ? maxDay : day;
|
|
218
|
+
let hour = 0;
|
|
219
|
+
let minute = 0;
|
|
220
|
+
if (type === 'datehour') {
|
|
221
|
+
hour = +getValue('hour');
|
|
222
|
+
}
|
|
223
|
+
if (type === 'datetime') {
|
|
224
|
+
hour = +getValue('hour');
|
|
225
|
+
minute = +getValue('minute');
|
|
226
|
+
}
|
|
227
|
+
return formatValue(new Date(year, month - 1, day, hour, minute));
|
|
228
|
+
};
|
|
229
|
+
const onChange = (val, values, indexes) => {
|
|
230
|
+
var _a;
|
|
231
|
+
const nextValue = updateInnerValue(indexes);
|
|
232
|
+
setCurrentDate(nextValue);
|
|
233
|
+
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, nextValue);
|
|
234
|
+
};
|
|
235
|
+
const onConfirm = () => {
|
|
236
|
+
var _a;
|
|
237
|
+
(_a = props.onConfirm) === null || _a === void 0 ? void 0 : _a.call(props, currentDate);
|
|
238
|
+
};
|
|
239
|
+
(0, _hooks.useUpdateEffect)(() => {
|
|
240
|
+
const nextValue = formatValue(value);
|
|
241
|
+
if (nextValue && nextValue.valueOf() !== (currentDate === null || currentDate === void 0 ? void 0 : currentDate.valueOf())) {
|
|
242
|
+
setCurrentDate(nextValue);
|
|
243
|
+
}
|
|
244
|
+
}, [value, filter, minDate, maxDate]);
|
|
245
|
+
return (0, _jsxRuntime().jsx)(_picker.default, Object.assign({}, pickerProps, {
|
|
246
|
+
value: pickerValue,
|
|
247
|
+
ref: ref,
|
|
248
|
+
columns: columns,
|
|
249
|
+
onChange: onChange,
|
|
250
|
+
onConfirm: onConfirm,
|
|
251
|
+
onCancel: props.onCancel
|
|
252
|
+
}, {
|
|
253
|
+
children: (_, selectRows, actions) => {
|
|
254
|
+
var _a;
|
|
255
|
+
return (_a = props.children) === null || _a === void 0 ? void 0 : _a.call(props, value || defaultValue, selectRows, actions);
|
|
256
|
+
}
|
|
257
|
+
}));
|
|
258
|
+
});
|
|
259
|
+
const currentYear = new Date().getFullYear();
|
|
260
|
+
const DefaultMinDate = new Date(currentYear - 10, 0, 1);
|
|
261
|
+
const DefaultMaxDate = new Date(currentYear + 10, 11, 31);
|
|
262
|
+
var _default = exports.default = DatePicker;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DateTimePickerProps } from './PropsType';
|
|
3
|
+
declare const DateTimePicker: React.ForwardRefExoticComponent<DateTimePickerProps & React.RefAttributes<import("..").PickerPopupActions>>;
|
|
4
|
+
export default DateTimePicker;
|
|
5
|
+
export { DateTimePicker };
|
|
6
|
+
export type { DateTimePickerProps } from './PropsType';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.DateTimePicker = void 0;
|
|
7
|
+
function _react() {
|
|
8
|
+
const data = _interopRequireWildcard(require("react"));
|
|
9
|
+
_react = function () {
|
|
10
|
+
return data;
|
|
11
|
+
};
|
|
12
|
+
return data;
|
|
13
|
+
}
|
|
14
|
+
function _jsxRuntime() {
|
|
15
|
+
const data = require("react/jsx-runtime");
|
|
16
|
+
_jsxRuntime = function () {
|
|
17
|
+
return data;
|
|
18
|
+
};
|
|
19
|
+
return data;
|
|
20
|
+
}
|
|
21
|
+
function _clsx() {
|
|
22
|
+
const data = _interopRequireDefault(require("clsx"));
|
|
23
|
+
_clsx = function () {
|
|
24
|
+
return data;
|
|
25
|
+
};
|
|
26
|
+
return data;
|
|
27
|
+
}
|
|
28
|
+
var _DatePicker = _interopRequireDefault(require("./DatePicker"));
|
|
29
|
+
var _TimePicker = _interopRequireDefault(require("./TimePicker"));
|
|
30
|
+
var _utils = require("../utils");
|
|
31
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
32
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
33
|
+
const [bem] = (0, _utils.createNamespace)('datetime-picker');
|
|
34
|
+
const DateTimePicker = exports.DateTimePicker = (0, _react().forwardRef)((props, ref) => {
|
|
35
|
+
const isTimePicker = props.type === 'time';
|
|
36
|
+
if (isTimePicker) return (0, _jsxRuntime().jsx)(_TimePicker.default, Object.assign({
|
|
37
|
+
ref: ref,
|
|
38
|
+
className: (0, _clsx().default)(bem())
|
|
39
|
+
}, props));
|
|
40
|
+
return (0, _jsxRuntime().jsx)(_DatePicker.default, Object.assign({
|
|
41
|
+
ref: ref,
|
|
42
|
+
className: (0, _clsx().default)(bem())
|
|
43
|
+
}, props));
|
|
44
|
+
});
|
|
45
|
+
var _default = exports.default = DateTimePicker;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PickerColumnOption, PickerPopupActions, PickerProps } from '../picker/PropsType';
|
|
3
|
+
export declare type DatetimePickerColumnType = 'year' | 'month' | 'day' | 'hour' | 'minute';
|
|
4
|
+
export declare type DatetimePickerType = 'date' | 'time' | 'datetime' | 'datehour' | 'month-day' | 'year-month';
|
|
5
|
+
export interface SharedProps extends Omit<PickerProps, 'value' | 'defaultValue' | 'onConfirm' | 'onChange' | 'columns' | 'children'> {
|
|
6
|
+
/** 时间类型 */
|
|
7
|
+
type?: DatetimePickerType;
|
|
8
|
+
/** 选项过滤函数 */
|
|
9
|
+
filter?: (type: string, values: string[]) => string[];
|
|
10
|
+
/**
|
|
11
|
+
* 自定义列排序数组,
|
|
12
|
+
* 子项可选值为: year、month、day、hour、minute
|
|
13
|
+
*/
|
|
14
|
+
columnsOrder?: string[];
|
|
15
|
+
/** 选项格式化函数 */
|
|
16
|
+
formatter?: (type: string, value: string) => string;
|
|
17
|
+
onCancel?: () => void;
|
|
18
|
+
}
|
|
19
|
+
export interface DatePickerProps extends SharedProps {
|
|
20
|
+
value?: Date;
|
|
21
|
+
defaultValue?: Date;
|
|
22
|
+
/** 可选的最小时间,精确到分钟 */
|
|
23
|
+
minDate?: Date;
|
|
24
|
+
/** 可选的最大时间,精确到分钟 */
|
|
25
|
+
maxDate?: Date;
|
|
26
|
+
/** 当值变化时触发的事件 */
|
|
27
|
+
onChange?: (value: Date) => void;
|
|
28
|
+
/** 点击完成按钮时触发的事件 */
|
|
29
|
+
onConfirm?: (value: Date) => void;
|
|
30
|
+
children?: (val: Date, selectRows: PickerColumnOption[], actions: PickerPopupActions) => React.ReactNode;
|
|
31
|
+
}
|
|
32
|
+
export interface TimePickerProps extends SharedProps {
|
|
33
|
+
value?: string;
|
|
34
|
+
defaultValue?: string;
|
|
35
|
+
/** 可选的最小小时 */
|
|
36
|
+
minHour?: number | string;
|
|
37
|
+
/** 可选的最大小时 */
|
|
38
|
+
maxHour?: number | string;
|
|
39
|
+
/** 可选的最小分钟 */
|
|
40
|
+
minMinute?: number | string;
|
|
41
|
+
/** 可选的最大分钟 */
|
|
42
|
+
maxMinute?: number | string;
|
|
43
|
+
onChange?: (value: string) => void;
|
|
44
|
+
/** 点击完成按钮时触发的事件 */
|
|
45
|
+
onConfirm?: (value: string) => void;
|
|
46
|
+
children?: (val: string, selectRows: PickerColumnOption[], actions: PickerPopupActions) => React.ReactNode;
|
|
47
|
+
}
|
|
48
|
+
export declare type DateTimePickerProps = DatePickerProps | TimePickerProps;
|
|
49
|
+
export declare type DateTimePickerInstance = PickerPopupActions;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
function _react() {
|
|
8
|
+
const data = _interopRequireWildcard(require("react"));
|
|
9
|
+
_react = function () {
|
|
10
|
+
return data;
|
|
11
|
+
};
|
|
12
|
+
return data;
|
|
13
|
+
}
|
|
14
|
+
function _tslib() {
|
|
15
|
+
const data = require("tslib");
|
|
16
|
+
_tslib = function () {
|
|
17
|
+
return data;
|
|
18
|
+
};
|
|
19
|
+
return data;
|
|
20
|
+
}
|
|
21
|
+
function _jsxRuntime() {
|
|
22
|
+
const data = require("react/jsx-runtime");
|
|
23
|
+
_jsxRuntime = function () {
|
|
24
|
+
return data;
|
|
25
|
+
};
|
|
26
|
+
return data;
|
|
27
|
+
}
|
|
28
|
+
var _picker = _interopRequireDefault(require("../picker"));
|
|
29
|
+
var _utils = require("./utils");
|
|
30
|
+
var _utils2 = require("../utils");
|
|
31
|
+
var _hooks = require("../hooks");
|
|
32
|
+
var _getDefaultProps = require("../utils/get-default-props");
|
|
33
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
34
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
35
|
+
const TimePicker = (0, _react().forwardRef)((p, ref) => {
|
|
36
|
+
const props = (0, _getDefaultProps.mergeProps)(p, {
|
|
37
|
+
minHour: 0,
|
|
38
|
+
maxHour: 23,
|
|
39
|
+
minMinute: 0,
|
|
40
|
+
maxMinute: 59,
|
|
41
|
+
placeholder: false,
|
|
42
|
+
defaultValue: '',
|
|
43
|
+
formatter: (type, value) => value
|
|
44
|
+
});
|
|
45
|
+
const {
|
|
46
|
+
value,
|
|
47
|
+
defaultValue,
|
|
48
|
+
formatter,
|
|
49
|
+
filter,
|
|
50
|
+
minHour,
|
|
51
|
+
maxHour,
|
|
52
|
+
minMinute,
|
|
53
|
+
maxMinute
|
|
54
|
+
} = props,
|
|
55
|
+
pickerProps = (0, _tslib().__rest)(props, ["value", "defaultValue", "formatter", "filter", "minHour", "maxHour", "minMinute", "maxMinute"]);
|
|
56
|
+
const formatValue = str => {
|
|
57
|
+
if (!str) {
|
|
58
|
+
str = `${(0, _utils2.padZero)(minHour)}:${(0, _utils2.padZero)(minMinute)}`;
|
|
59
|
+
}
|
|
60
|
+
let [hour, minute] = str.split(':');
|
|
61
|
+
hour = (0, _utils2.padZero)((0, _utils2.range)(hour, +minHour, +maxHour));
|
|
62
|
+
minute = (0, _utils2.padZero)((0, _utils2.range)(minute, +minMinute, +maxMinute));
|
|
63
|
+
return `${hour}:${minute}`;
|
|
64
|
+
};
|
|
65
|
+
const [currentDate, setCurrentDate] = (0, _react().useState)(() => formatValue(value === undefined ? defaultValue : value));
|
|
66
|
+
const ranges = (0, _react().useMemo)(() => [{
|
|
67
|
+
type: 'hour',
|
|
68
|
+
range: [+minHour, +maxHour]
|
|
69
|
+
}, {
|
|
70
|
+
type: 'minute',
|
|
71
|
+
range: [+minMinute, +maxMinute]
|
|
72
|
+
}], [minHour, maxHour, minMinute, maxMinute]);
|
|
73
|
+
const originColumns = (0, _react().useMemo)(() => ranges.map(({
|
|
74
|
+
type,
|
|
75
|
+
range: rangeArr
|
|
76
|
+
}) => {
|
|
77
|
+
let values = (0, _utils.times)(rangeArr[1] - rangeArr[0] + 1, index => (0, _utils2.padZero)(rangeArr[0] + index));
|
|
78
|
+
if (filter) {
|
|
79
|
+
values = filter(type, values);
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
type,
|
|
83
|
+
values
|
|
84
|
+
};
|
|
85
|
+
}), [ranges]);
|
|
86
|
+
const columns = (0, _react().useMemo)(() => originColumns.map(column => column.values.map(value => formatter(column.type, value))), [originColumns]);
|
|
87
|
+
const pickerValue = (0, _react().useMemo)(() => {
|
|
88
|
+
const pair = (props.popup ? formatValue(props.value) : currentDate).split(':');
|
|
89
|
+
return [formatter('hour', pair[0]), formatter('minute', pair[1])];
|
|
90
|
+
}, [props.value, currentDate, formatValue]);
|
|
91
|
+
const onConfirm = () => {
|
|
92
|
+
var _a;
|
|
93
|
+
(_a = props.onConfirm) === null || _a === void 0 ? void 0 : _a.call(props, currentDate);
|
|
94
|
+
};
|
|
95
|
+
const onCancel = () => {
|
|
96
|
+
var _a;
|
|
97
|
+
(_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
98
|
+
};
|
|
99
|
+
const onChange = val => {
|
|
100
|
+
var _a;
|
|
101
|
+
const nextValue = formatValue(val.join(':'));
|
|
102
|
+
setCurrentDate(nextValue);
|
|
103
|
+
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, nextValue);
|
|
104
|
+
};
|
|
105
|
+
(0, _hooks.useUpdateEffect)(() => {
|
|
106
|
+
const nextValue = formatValue(currentDate);
|
|
107
|
+
setCurrentDate(nextValue);
|
|
108
|
+
}, [filter, minHour, maxHour, minMinute, maxMinute]);
|
|
109
|
+
(0, _hooks.useUpdateEffect)(() => {
|
|
110
|
+
const nextValue = formatValue(value);
|
|
111
|
+
if (nextValue !== currentDate) {
|
|
112
|
+
setCurrentDate(nextValue);
|
|
113
|
+
}
|
|
114
|
+
}, [value]);
|
|
115
|
+
return (0, _jsxRuntime().jsx)(_picker.default, Object.assign({}, pickerProps, {
|
|
116
|
+
ref: ref,
|
|
117
|
+
columns: columns,
|
|
118
|
+
value: pickerValue,
|
|
119
|
+
onChange: onChange,
|
|
120
|
+
onConfirm: onConfirm,
|
|
121
|
+
onCancel: onCancel
|
|
122
|
+
}, {
|
|
123
|
+
children: (_, selectRows, actions) => {
|
|
124
|
+
var _a;
|
|
125
|
+
return (_a = props.children) === null || _a === void 0 ? void 0 : _a.call(props, value, selectRows, actions);
|
|
126
|
+
}
|
|
127
|
+
}));
|
|
128
|
+
});
|
|
129
|
+
var _default = exports.default = TimePicker;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "DatetimePicker", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _DatetimePicker.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _DatetimePicker = _interopRequireDefault(require("./DatetimePicker"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function times(n: number, iteratee: (index: number) => string): unknown[];
|
|
2
|
+
export declare function getTrueValue(value: string | undefined): string | number;
|
|
3
|
+
export declare function getMonthEndDay(year: number, month: number): number;
|
|
4
|
+
export declare function addDays(date: Date, days: number): Date;
|
|
5
|
+
export declare function getDayNumber(date: Date): number;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.addDays = addDays;
|
|
7
|
+
exports.getDayNumber = getDayNumber;
|
|
8
|
+
exports.getMonthEndDay = getMonthEndDay;
|
|
9
|
+
exports.getTrueValue = getTrueValue;
|
|
10
|
+
exports.times = times;
|
|
11
|
+
var _number = require("../utils/validate/number");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
/* eslint-disable no-plusplus */
|
|
14
|
+
|
|
15
|
+
function times(n, iteratee) {
|
|
16
|
+
let index = -1;
|
|
17
|
+
const result = Array(n);
|
|
18
|
+
while (++index < n) {
|
|
19
|
+
result[index] = iteratee(index);
|
|
20
|
+
}
|
|
21
|
+
return result;
|
|
22
|
+
}
|
|
23
|
+
function getTrueValue(value) {
|
|
24
|
+
if (!value) {
|
|
25
|
+
return 0;
|
|
26
|
+
}
|
|
27
|
+
while ((0, _number.isNaN)(parseInt(value, 10))) {
|
|
28
|
+
if (value.length > 1) {
|
|
29
|
+
value = value.slice(1);
|
|
30
|
+
} else {
|
|
31
|
+
return 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return parseInt(value, 10);
|
|
35
|
+
}
|
|
36
|
+
function getMonthEndDay(year, month) {
|
|
37
|
+
return 32 - new Date(year, month - 1, 32).getDate();
|
|
38
|
+
}
|
|
39
|
+
function addDays(date, days) {
|
|
40
|
+
date = new Date(date.valueOf());
|
|
41
|
+
date.setDate(date.getDate() + days);
|
|
42
|
+
return date;
|
|
43
|
+
}
|
|
44
|
+
function getDayNumber(date) {
|
|
45
|
+
const newDate = new Date(date.getTime() + 8 * 60 * 60 * 1000);
|
|
46
|
+
return newDate.getTime() - newDate.getTime() % (24 * 60 * 60 * 1000);
|
|
47
|
+
}
|