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,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Divider", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Divider.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
require("./style/index.css");
|
|
13
|
+
var _Divider = _interopRequireDefault(require("./Divider"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--rv-divider-margin: var(--rv-padding-md) 0;
|
|
3
|
+
--rv-divider-text-color: var(--rv-gray-6);
|
|
4
|
+
--rv-divider-font-size: var(--rv-font-size-md);
|
|
5
|
+
--rv-divider-line-height: 24px;
|
|
6
|
+
--rv-divider-border-color: var(--rv-border-color);
|
|
7
|
+
--rv-divider-content-padding: var(--rv-padding-md);
|
|
8
|
+
--rv-divider-content-left-width: 10%;
|
|
9
|
+
--rv-divider-content-right-width: 10%;
|
|
10
|
+
}
|
|
11
|
+
.rv-divider {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
margin: var(--rv-divider-margin);
|
|
15
|
+
color: var(--rv-divider-text-color);
|
|
16
|
+
font-size: var(--rv-divider-font-size);
|
|
17
|
+
line-height: var(--rv-divider-line-height);
|
|
18
|
+
border-color: var(--rv-divider-border-color);
|
|
19
|
+
border-style: solid;
|
|
20
|
+
border-width: 0;
|
|
21
|
+
}
|
|
22
|
+
.rv-divider::before,
|
|
23
|
+
.rv-divider::after {
|
|
24
|
+
display: block;
|
|
25
|
+
flex: 1;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
height: 1px;
|
|
28
|
+
border-color: inherit;
|
|
29
|
+
border-style: inherit;
|
|
30
|
+
border-width: var(--rv-border-width-base) 0 0;
|
|
31
|
+
}
|
|
32
|
+
.rv-divider::before {
|
|
33
|
+
content: '';
|
|
34
|
+
}
|
|
35
|
+
.rv-divider--vertical {
|
|
36
|
+
position: relative;
|
|
37
|
+
top: -0.06em;
|
|
38
|
+
display: inline-block;
|
|
39
|
+
height: 0.9em;
|
|
40
|
+
vertical-align: middle;
|
|
41
|
+
border-top: 0;
|
|
42
|
+
margin: 0;
|
|
43
|
+
border-left-width: var(--rv-border-width-base);
|
|
44
|
+
}
|
|
45
|
+
.rv-divider--vertical::before,
|
|
46
|
+
.rv-divider--vertical::after {
|
|
47
|
+
content: none;
|
|
48
|
+
}
|
|
49
|
+
.rv-divider--hairline::before,
|
|
50
|
+
.rv-divider--hairline::after {
|
|
51
|
+
transform: scaleY(0.5);
|
|
52
|
+
}
|
|
53
|
+
.rv-divider--dashed {
|
|
54
|
+
border-style: dashed;
|
|
55
|
+
}
|
|
56
|
+
.rv-divider--content-center::before,
|
|
57
|
+
.rv-divider--content-left::before,
|
|
58
|
+
.rv-divider--content-right::before {
|
|
59
|
+
margin-right: var(--rv-divider-content-padding);
|
|
60
|
+
}
|
|
61
|
+
.rv-divider--content-center::after,
|
|
62
|
+
.rv-divider--content-left::after,
|
|
63
|
+
.rv-divider--content-right::after {
|
|
64
|
+
margin-left: var(--rv-divider-content-padding);
|
|
65
|
+
content: '';
|
|
66
|
+
}
|
|
67
|
+
.rv-divider--content-left::before {
|
|
68
|
+
max-width: var(--rv-divider-content-left-width);
|
|
69
|
+
}
|
|
70
|
+
.rv-divider--content-right::after {
|
|
71
|
+
max-width: var(--rv-divider-content-right-width);
|
|
72
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,235 @@
|
|
|
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 _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 _utils = require("../utils");
|
|
29
|
+
var _useEventListener = _interopRequireDefault(require("../hooks/use-event-listener"));
|
|
30
|
+
var _useScrollParent = _interopRequireDefault(require("../hooks/use-scroll-parent"));
|
|
31
|
+
var _useRect = require("../hooks/use-rect");
|
|
32
|
+
var _useRefs = _interopRequireDefault(require("../hooks/use-refs"));
|
|
33
|
+
var _DropdownMenuContext = _interopRequireDefault(require("./DropdownMenuContext"));
|
|
34
|
+
var _hooks = require("../hooks");
|
|
35
|
+
var _useClickAway = _interopRequireDefault(require("../hooks/use-click-away"));
|
|
36
|
+
var _useMergedState = _interopRequireDefault(require("../hooks/use-merged-state"));
|
|
37
|
+
var _getDefaultProps = require("../utils/get-default-props");
|
|
38
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
39
|
+
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); }
|
|
40
|
+
const [bem] = (0, _utils.createNamespace)('dropdown-menu');
|
|
41
|
+
const DropdownMenu = (0, _react().forwardRef)((p, ref) => {
|
|
42
|
+
const props = (0, _getDefaultProps.mergeProps)(p, {
|
|
43
|
+
duration: 200,
|
|
44
|
+
overlay: true,
|
|
45
|
+
closeOnClickOutside: true,
|
|
46
|
+
closeOnClickOverlay: true,
|
|
47
|
+
direction: 'down',
|
|
48
|
+
defaultValue: {},
|
|
49
|
+
teleport: () => document.body
|
|
50
|
+
});
|
|
51
|
+
const [innerValue = {}, setInnerValue] = (0, _useMergedState.default)({
|
|
52
|
+
value: props.value,
|
|
53
|
+
defaultValue: props.defaultValue
|
|
54
|
+
});
|
|
55
|
+
const [childrenRefs, setChildrenRefs] = (0, _useRefs.default)();
|
|
56
|
+
const [showPopupIndex, setShowPopupIndex] = (0, _react().useState)(null);
|
|
57
|
+
const showPopupIndexRef = (0, _react().useRef)();
|
|
58
|
+
const root = (0, _react().useRef)();
|
|
59
|
+
const barRef = (0, _react().useRef)();
|
|
60
|
+
const offset = (0, _react().useRef)(0);
|
|
61
|
+
const isToggleEvent = (0, _react().useRef)(false);
|
|
62
|
+
const rect = (0, _react().useRef)({
|
|
63
|
+
bottom: 0,
|
|
64
|
+
top: 0
|
|
65
|
+
});
|
|
66
|
+
const innerEffect = (0, _react().useRef)(false);
|
|
67
|
+
const opened = (0, _react().useMemo)(() => showPopupIndex !== null, [showPopupIndex]);
|
|
68
|
+
const barStyle = () => {
|
|
69
|
+
if (opened && (0, _utils.isDef)(props.zIndex)) {
|
|
70
|
+
return {
|
|
71
|
+
zIndex: +props.zIndex + 1
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
return {};
|
|
75
|
+
};
|
|
76
|
+
const updateShowPopupIndex = current => {
|
|
77
|
+
showPopupIndexRef.current = current;
|
|
78
|
+
setShowPopupIndex(current);
|
|
79
|
+
};
|
|
80
|
+
const closeAll = () => {
|
|
81
|
+
childrenRefs.forEach(item => {
|
|
82
|
+
item.toggle(false);
|
|
83
|
+
});
|
|
84
|
+
updateShowPopupIndex(null);
|
|
85
|
+
};
|
|
86
|
+
const onClickAway = () => {
|
|
87
|
+
if (props.closeOnClickOutside && !isToggleEvent.current) {
|
|
88
|
+
closeAll();
|
|
89
|
+
} else {
|
|
90
|
+
isToggleEvent.current = false;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
const updateOffset = () => {
|
|
94
|
+
if (barRef.current) {
|
|
95
|
+
rect.current = (0, _useRect.getRect)(barRef.current);
|
|
96
|
+
if (props.direction === 'down') {
|
|
97
|
+
offset.current = rect.current.bottom;
|
|
98
|
+
} else {
|
|
99
|
+
offset.current = window.innerHeight - rect.current.top;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
const onScroll = () => {
|
|
104
|
+
if (opened) {
|
|
105
|
+
updateOffset();
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
const showItem = index => {
|
|
109
|
+
const item = childrenRefs[index];
|
|
110
|
+
isToggleEvent.current = true;
|
|
111
|
+
updateOffset();
|
|
112
|
+
updateShowPopupIndex(index);
|
|
113
|
+
item.toggle(true);
|
|
114
|
+
};
|
|
115
|
+
const toggleItem = active => {
|
|
116
|
+
childrenRefs.forEach((item, index) => {
|
|
117
|
+
if (index === active) {
|
|
118
|
+
if (active === showPopupIndexRef.current) {
|
|
119
|
+
updateShowPopupIndex(null);
|
|
120
|
+
item.toggle();
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
showItem(active);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
const close = () => {
|
|
128
|
+
updateShowPopupIndex(null);
|
|
129
|
+
};
|
|
130
|
+
const renderTitle = (item, index) => {
|
|
131
|
+
const showPopup = showPopupIndex === index;
|
|
132
|
+
const {
|
|
133
|
+
titleClass
|
|
134
|
+
} = item;
|
|
135
|
+
const disabled = props.disabled || item.disabled;
|
|
136
|
+
const childRenderTitle = (itemValue, itemProps) => {
|
|
137
|
+
if (itemProps.title) {
|
|
138
|
+
return itemProps.title;
|
|
139
|
+
}
|
|
140
|
+
const match = itemProps.options.find(option => option.value === itemValue);
|
|
141
|
+
return match ? match.text : itemProps.placeholder || '请选择';
|
|
142
|
+
};
|
|
143
|
+
return (0, _jsxRuntime().jsx)("div", Object.assign({
|
|
144
|
+
role: 'button',
|
|
145
|
+
tabIndex: disabled ? -1 : 0,
|
|
146
|
+
className: (0, _clsx().default)(bem('item', {
|
|
147
|
+
disabled
|
|
148
|
+
})),
|
|
149
|
+
onClick: () => {
|
|
150
|
+
if (!disabled) {
|
|
151
|
+
toggleItem(index);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}, {
|
|
155
|
+
children: (0, _jsxRuntime().jsx)("span", Object.assign({
|
|
156
|
+
className: (0, _clsx().default)(bem('title', {
|
|
157
|
+
down: showPopup === (props.direction === 'down'),
|
|
158
|
+
active: showPopup
|
|
159
|
+
}), titleClass),
|
|
160
|
+
style: {
|
|
161
|
+
color: showPopup ? props.activeColor : ''
|
|
162
|
+
}
|
|
163
|
+
}, {
|
|
164
|
+
children: (0, _jsxRuntime().jsx)("div", Object.assign({
|
|
165
|
+
className: 'rv-ellipsis'
|
|
166
|
+
}, {
|
|
167
|
+
children: childRenderTitle(innerValue[item.name], item)
|
|
168
|
+
}))
|
|
169
|
+
}))
|
|
170
|
+
}), index);
|
|
171
|
+
};
|
|
172
|
+
(0, _hooks.useUpdateEffect)(() => {
|
|
173
|
+
if (innerEffect.current) {
|
|
174
|
+
innerEffect.current = false;
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
if (!props.value) {
|
|
178
|
+
setInnerValue(undefined);
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
setInnerValue(props.value);
|
|
182
|
+
}, [props.value]);
|
|
183
|
+
(0, _react().useEffect)(() => {
|
|
184
|
+
if (barRef.current) {
|
|
185
|
+
updateOffset();
|
|
186
|
+
}
|
|
187
|
+
}, [barRef.current]);
|
|
188
|
+
const onInnerChange = v => {
|
|
189
|
+
innerEffect.current = true;
|
|
190
|
+
const newValue = Object.assign(Object.assign({}, innerValue), v);
|
|
191
|
+
setInnerValue(newValue);
|
|
192
|
+
if (props.onChange) props.onChange(newValue);
|
|
193
|
+
};
|
|
194
|
+
const scrollParent = (0, _useScrollParent.default)(root);
|
|
195
|
+
(0, _useEventListener.default)('scroll', onScroll, {
|
|
196
|
+
target: scrollParent
|
|
197
|
+
});
|
|
198
|
+
(0, _useClickAway.default)(root, onClickAway);
|
|
199
|
+
(0, _react().useImperativeHandle)(ref, () => ({
|
|
200
|
+
toggleItem,
|
|
201
|
+
showItem,
|
|
202
|
+
close: closeAll
|
|
203
|
+
}));
|
|
204
|
+
return (0, _jsxRuntime().jsx)(_DropdownMenuContext.default.Provider, Object.assign({
|
|
205
|
+
value: {
|
|
206
|
+
props,
|
|
207
|
+
value: innerValue,
|
|
208
|
+
onChange: onInnerChange,
|
|
209
|
+
close
|
|
210
|
+
}
|
|
211
|
+
}, {
|
|
212
|
+
children: (0, _jsxRuntime().jsxs)("div", Object.assign({
|
|
213
|
+
ref: root,
|
|
214
|
+
className: (0, _clsx().default)(bem(), props.className),
|
|
215
|
+
style: Object.assign({}, props.style)
|
|
216
|
+
}, {
|
|
217
|
+
children: [(0, _jsxRuntime().jsx)("div", Object.assign({
|
|
218
|
+
ref: barRef,
|
|
219
|
+
style: barStyle(),
|
|
220
|
+
className: (0, _clsx().default)(bem('bar', {
|
|
221
|
+
opened
|
|
222
|
+
}))
|
|
223
|
+
}, {
|
|
224
|
+
children: _react().Children.toArray(props.children).filter(Boolean).map((child, index) => {
|
|
225
|
+
return renderTitle(child.props, index);
|
|
226
|
+
})
|
|
227
|
+
})), _react().Children.toArray(props.children).filter(Boolean).map((child, index) => (0, _react().cloneElement)(child, {
|
|
228
|
+
ref: setChildrenRefs(index),
|
|
229
|
+
offset: offset.current,
|
|
230
|
+
showPopup: showPopupIndex === index
|
|
231
|
+
}))]
|
|
232
|
+
}))
|
|
233
|
+
}));
|
|
234
|
+
});
|
|
235
|
+
var _default = exports.default = DropdownMenu;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { Context } from 'react';
|
|
2
|
+
import { DropdownMenuProps } from './PropsType';
|
|
3
|
+
export interface DropdownMenuState {
|
|
4
|
+
props?: React.PropsWithChildren<DropdownMenuProps>;
|
|
5
|
+
value?: Record<string, number | string>;
|
|
6
|
+
openedMap?: Record<string, boolean>;
|
|
7
|
+
onChange?: (v: any) => void;
|
|
8
|
+
close?: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const DropdownMenu: Context<DropdownMenuState>;
|
|
11
|
+
export default DropdownMenu;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 _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); }
|
|
15
|
+
const DropdownMenu = (0, _react().createContext)({});
|
|
16
|
+
var _default = exports.default = DropdownMenu;
|
|
@@ -0,0 +1,189 @@
|
|
|
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
|
+
function _icons() {
|
|
29
|
+
const data = require("@react-vant/icons");
|
|
30
|
+
_icons = function () {
|
|
31
|
+
return data;
|
|
32
|
+
};
|
|
33
|
+
return data;
|
|
34
|
+
}
|
|
35
|
+
function _clsx() {
|
|
36
|
+
const data = _interopRequireDefault(require("clsx"));
|
|
37
|
+
_clsx = function () {
|
|
38
|
+
return data;
|
|
39
|
+
};
|
|
40
|
+
return data;
|
|
41
|
+
}
|
|
42
|
+
var _cell = _interopRequireDefault(require("../cell"));
|
|
43
|
+
var _hooks = require("../hooks");
|
|
44
|
+
var _popup = _interopRequireDefault(require("../popup"));
|
|
45
|
+
var _utils = require("../utils");
|
|
46
|
+
var _renderToContainer = require("../utils/dom/renderToContainer");
|
|
47
|
+
var _DropdownMenuContext = _interopRequireDefault(require("./DropdownMenuContext"));
|
|
48
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
49
|
+
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); }
|
|
50
|
+
const inheritPropsKey = ['overlay', 'overlayClass', 'overlayStyle', 'disabled', 'placeholder', 'onOpen', 'onClosed', 'onOpened', 'teleport', 'closeOnClickOverlay'];
|
|
51
|
+
function inheritProps(parentProps, props) {
|
|
52
|
+
return Object.assign(Object.assign({}, parentProps), props);
|
|
53
|
+
}
|
|
54
|
+
const [bem] = (0, _utils.createNamespace)('dropdown-item');
|
|
55
|
+
const DropdownMenuItem = (0, _react().forwardRef)((_a, ref) => {
|
|
56
|
+
var _b;
|
|
57
|
+
var {
|
|
58
|
+
options = [],
|
|
59
|
+
placeholder = '请选择'
|
|
60
|
+
} = _a,
|
|
61
|
+
props = (0, _tslib().__rest)(_a, ["options", "placeholder"]);
|
|
62
|
+
const [state, setState] = (0, _hooks.useSetState)({
|
|
63
|
+
transition: true,
|
|
64
|
+
showWrapper: false
|
|
65
|
+
});
|
|
66
|
+
const parent = (0, _react().useContext)(_DropdownMenuContext.default);
|
|
67
|
+
const currentValue = (_b = parent.value) === null || _b === void 0 ? void 0 : _b[props.name];
|
|
68
|
+
const onClosed = () => {
|
|
69
|
+
var _a, _b;
|
|
70
|
+
setState({
|
|
71
|
+
showWrapper: false
|
|
72
|
+
});
|
|
73
|
+
(_b = (_a = props.onClosed) !== null && _a !== void 0 ? _a : parent.props.onClosed) === null || _b === void 0 ? void 0 : _b();
|
|
74
|
+
};
|
|
75
|
+
const onClickWrapper = event => {
|
|
76
|
+
// prevent being identified as clicking outside and closed when using teleport
|
|
77
|
+
if (props.teleport) {
|
|
78
|
+
event.stopPropagation();
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
const onClose = () => {
|
|
82
|
+
var _a, _b;
|
|
83
|
+
parent.close();
|
|
84
|
+
(_b = (_a = props.onClose) !== null && _a !== void 0 ? _a : parent.props.onClose) === null || _b === void 0 ? void 0 : _b();
|
|
85
|
+
};
|
|
86
|
+
const toggle = (show = !props.showPopup, options = {}) => {
|
|
87
|
+
if (show === props.showPopup) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
const newState = {};
|
|
91
|
+
newState.transition = !options.immediate;
|
|
92
|
+
if (show) {
|
|
93
|
+
newState.showWrapper = true;
|
|
94
|
+
} else {
|
|
95
|
+
onClose();
|
|
96
|
+
}
|
|
97
|
+
setState(newState);
|
|
98
|
+
};
|
|
99
|
+
const renderTitle = itemValue => {
|
|
100
|
+
if (props.title) {
|
|
101
|
+
return props.title;
|
|
102
|
+
}
|
|
103
|
+
const match = options.find(option => option.value === itemValue);
|
|
104
|
+
return match ? match.text : placeholder;
|
|
105
|
+
};
|
|
106
|
+
const renderOption = option => {
|
|
107
|
+
const {
|
|
108
|
+
activeColor,
|
|
109
|
+
activeIcon
|
|
110
|
+
} = parent.props;
|
|
111
|
+
const active = option.value === currentValue;
|
|
112
|
+
const onClick = () => {
|
|
113
|
+
if (option.value !== currentValue) {
|
|
114
|
+
parent.onChange({
|
|
115
|
+
[props.name]: option.value
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
onClose();
|
|
119
|
+
};
|
|
120
|
+
return (0, _jsxRuntime().jsx)(_cell.default, Object.assign({
|
|
121
|
+
clickable: true,
|
|
122
|
+
icon: option.icon,
|
|
123
|
+
title: option.text,
|
|
124
|
+
className: (0, _clsx().default)(bem('option', {
|
|
125
|
+
active
|
|
126
|
+
})),
|
|
127
|
+
style: {
|
|
128
|
+
color: active ? activeColor : ''
|
|
129
|
+
},
|
|
130
|
+
onClick: onClick
|
|
131
|
+
}, {
|
|
132
|
+
children: active && (activeIcon || (0, _jsxRuntime().jsx)(_icons().Success, {
|
|
133
|
+
className: (0, _clsx().default)(bem('icon')),
|
|
134
|
+
color: activeColor
|
|
135
|
+
}))
|
|
136
|
+
}), option.value);
|
|
137
|
+
};
|
|
138
|
+
const renderContent = () => {
|
|
139
|
+
const {
|
|
140
|
+
offset
|
|
141
|
+
} = props;
|
|
142
|
+
const {
|
|
143
|
+
zIndex,
|
|
144
|
+
overlayStyle,
|
|
145
|
+
duration,
|
|
146
|
+
direction
|
|
147
|
+
} = parent.props;
|
|
148
|
+
const style = (0, _utils.getZIndexStyle)(zIndex);
|
|
149
|
+
if (direction === 'down') {
|
|
150
|
+
style.top = `${offset}px`;
|
|
151
|
+
} else {
|
|
152
|
+
style.bottom = `${offset}px`;
|
|
153
|
+
}
|
|
154
|
+
const attrs = (0, _utils.pick)(inheritProps(parent.props, props), inheritPropsKey);
|
|
155
|
+
return (0, _jsxRuntime().jsx)("div", Object.assign({
|
|
156
|
+
style: Object.assign(Object.assign({}, style), {
|
|
157
|
+
display: state.showWrapper ? 'block' : 'none'
|
|
158
|
+
}),
|
|
159
|
+
className: (0, _clsx().default)(bem([direction])),
|
|
160
|
+
onClick: onClickWrapper
|
|
161
|
+
}, {
|
|
162
|
+
children: (0, _jsxRuntime().jsxs)(_popup.default, Object.assign({}, attrs, {
|
|
163
|
+
visible: props.showPopup,
|
|
164
|
+
className: (0, _clsx().default)(bem('content')),
|
|
165
|
+
position: direction === 'down' ? 'top' : 'bottom',
|
|
166
|
+
duration: state.transition ? +duration : 0,
|
|
167
|
+
overlayStyle: Object.assign({
|
|
168
|
+
position: 'absolute'
|
|
169
|
+
}, overlayStyle),
|
|
170
|
+
onClose: onClose,
|
|
171
|
+
onClosed: onClosed
|
|
172
|
+
}, {
|
|
173
|
+
children: [options === null || options === void 0 ? void 0 : options.map(renderOption), props.children]
|
|
174
|
+
}))
|
|
175
|
+
}));
|
|
176
|
+
};
|
|
177
|
+
(0, _react().useImperativeHandle)(ref, () => ({
|
|
178
|
+
toggle,
|
|
179
|
+
renderTitle,
|
|
180
|
+
state,
|
|
181
|
+
titleClass: props.titleClass,
|
|
182
|
+
disabled: props.disabled,
|
|
183
|
+
name: props.name,
|
|
184
|
+
options
|
|
185
|
+
}));
|
|
186
|
+
if (props.teleport) return (0, _renderToContainer.renderToContainer)(props.teleport, renderContent());
|
|
187
|
+
return renderContent();
|
|
188
|
+
});
|
|
189
|
+
var _default = exports.default = DropdownMenuItem;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseTypeProps, TeleportType } from '../utils';
|
|
3
|
+
export declare type DropdownMenuDirection = 'up' | 'down';
|
|
4
|
+
export declare type DropdownMenuItemOption = {
|
|
5
|
+
/** 文本 */
|
|
6
|
+
text: React.ReactNode;
|
|
7
|
+
/** icon */
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
/** 选项值 */
|
|
10
|
+
value: number | string;
|
|
11
|
+
};
|
|
12
|
+
export declare type DropdownItemOption = DropdownMenuItemOption;
|
|
13
|
+
interface DropdownMenuCommonProps extends BaseTypeProps {
|
|
14
|
+
/** 是否显示遮罩层 */
|
|
15
|
+
overlay?: boolean;
|
|
16
|
+
overlayClass?: string;
|
|
17
|
+
overlayStyle?: React.CSSProperties;
|
|
18
|
+
/** 是否禁用 */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** 动画时长,单位毫秒,设置为 0 可以禁用动画 */
|
|
21
|
+
duration?: number | string;
|
|
22
|
+
/** 关闭菜单栏时触发 */
|
|
23
|
+
onClose?: () => void;
|
|
24
|
+
/** 打开菜单栏时触发 */
|
|
25
|
+
onOpen?: () => void;
|
|
26
|
+
/** 打开菜单栏且动画结束后触发 */
|
|
27
|
+
onOpened?: () => void;
|
|
28
|
+
/** 关闭菜单栏且动画结束后触发 */
|
|
29
|
+
onClosed?: () => void;
|
|
30
|
+
/** 指定挂载的节点 */
|
|
31
|
+
teleport?: TeleportType;
|
|
32
|
+
}
|
|
33
|
+
export interface DropdownMenuProps extends DropdownMenuCommonProps {
|
|
34
|
+
/** 当前选中项对应的 value */
|
|
35
|
+
value?: Record<string, string | number>;
|
|
36
|
+
/** 默认值 */
|
|
37
|
+
defaultValue?: Record<string, string | number>;
|
|
38
|
+
/** 点击选项导致 value 变化时触发 */
|
|
39
|
+
onChange?: (v: Record<string, string | number>) => void;
|
|
40
|
+
/** 是否在点击外部元素后关闭菜单 */
|
|
41
|
+
closeOnClickOutside?: boolean;
|
|
42
|
+
/** 是否在点击遮罩层后关闭菜单 */
|
|
43
|
+
closeOnClickOverlay?: boolean;
|
|
44
|
+
/** 菜单标题和选项的选中态颜色 */
|
|
45
|
+
activeColor?: string;
|
|
46
|
+
/** 自定义选项的选中态勾选icon */
|
|
47
|
+
activeIcon?: React.ReactNode;
|
|
48
|
+
/** 菜单栏 z-index 层级 */
|
|
49
|
+
zIndex?: number | string;
|
|
50
|
+
/** 菜单展开方向 */
|
|
51
|
+
direction?: DropdownMenuDirection;
|
|
52
|
+
children?: React.ReactNode;
|
|
53
|
+
}
|
|
54
|
+
export interface DropdownMenuItemProps extends DropdownMenuCommonProps, ItemPrivateProps {
|
|
55
|
+
/** 菜单项标题 */
|
|
56
|
+
title?: React.ReactNode;
|
|
57
|
+
/** 标题额外类名 */
|
|
58
|
+
titleClass?: string;
|
|
59
|
+
/** 选项数组 */
|
|
60
|
+
options?: DropdownMenuItemOption[];
|
|
61
|
+
/** 菜单标识符 */
|
|
62
|
+
name: string;
|
|
63
|
+
/** 未选中时展示的文本 */
|
|
64
|
+
placeholder?: string;
|
|
65
|
+
children?: React.ReactNode;
|
|
66
|
+
}
|
|
67
|
+
export declare type DropdownItemInstance = {
|
|
68
|
+
/** 切换菜单展示状态,传 true 为显示,false 为隐藏,不传参为取反 */
|
|
69
|
+
toggle: (show?: boolean, options?: {
|
|
70
|
+
immediate?: boolean;
|
|
71
|
+
}) => void;
|
|
72
|
+
/** @private */
|
|
73
|
+
renderTitle?: (itemValue: string | number) => void;
|
|
74
|
+
/** @private */
|
|
75
|
+
state: {
|
|
76
|
+
transition: boolean;
|
|
77
|
+
showWrapper: boolean;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare type DropdownMenuInstance = {
|
|
81
|
+
/** 切换菜单展示状态 */
|
|
82
|
+
toggleItem: (index: number) => void;
|
|
83
|
+
/** 切换菜单展示状态,传 true 为显示,false 为隐藏,不传参为取反 */
|
|
84
|
+
showItem: (index: number) => void;
|
|
85
|
+
/** 关闭菜单 */
|
|
86
|
+
close: () => void;
|
|
87
|
+
};
|
|
88
|
+
interface ItemPrivateProps {
|
|
89
|
+
/** @private */
|
|
90
|
+
value?: string | number;
|
|
91
|
+
/** @private */
|
|
92
|
+
showPopup?: boolean;
|
|
93
|
+
offset?: number;
|
|
94
|
+
}
|
|
95
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './style/index.less';
|
|
3
|
+
declare const DropdownMenu: import("react").ForwardRefExoticComponent<import("./PropsType").DropdownMenuProps & import("react").RefAttributes<import("./PropsType").DropdownMenuInstance>> & {
|
|
4
|
+
Item: import("react").ForwardRefExoticComponent<import("./PropsType").DropdownMenuItemProps & import("react").RefAttributes<import("./PropsType").DropdownItemInstance>>;
|
|
5
|
+
};
|
|
6
|
+
export { DropdownMenu };
|
|
7
|
+
export default DropdownMenu;
|
|
8
|
+
export type { DropdownMenuInstance, DropdownItemOption, DropdownMenuDirection, } from './PropsType';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.DropdownMenu = void 0;
|
|
7
|
+
require("./style/index.css");
|
|
8
|
+
var _DropdownMenu2 = _interopRequireDefault(require("./DropdownMenu"));
|
|
9
|
+
var _DropdownMenuItem = _interopRequireDefault(require("./DropdownMenuItem"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const DropdownMenu = exports.DropdownMenu = Object.assign(_DropdownMenu2.default, {
|
|
12
|
+
Item: _DropdownMenuItem.default
|
|
13
|
+
});
|
|
14
|
+
var _default = exports.default = DropdownMenu;
|