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,108 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--rv-product-card-padding: var(--rv-padding-xs) var(--rv-padding-md);
|
|
3
|
+
--rv-product-card-font-size: var(--rv-font-size-sm);
|
|
4
|
+
--rv-product-card-text-color: var(--rv-text-color);
|
|
5
|
+
--rv-product-card-background-color: var(--rv-background-color-light);
|
|
6
|
+
--rv-product-card-thumb-size: 88px;
|
|
7
|
+
--rv-product-card-thumb-border-radius: var(--rv-border-radius-lg);
|
|
8
|
+
--rv-product-card-title-line-height: 16px;
|
|
9
|
+
--rv-product-card-desc-color: var(--rv-gray-7);
|
|
10
|
+
--rv-product-card-desc-line-height: var(--rv-line-height-md);
|
|
11
|
+
--rv-product-card-price-color: var(--rv-gray-8);
|
|
12
|
+
--rv-product-card-origin-price-color: var(--rv-gray-6);
|
|
13
|
+
--rv-product-card-num-color: var(--rv-gray-6);
|
|
14
|
+
--rv-product-card-origin-price-font-size: var(--rv-font-size-xs);
|
|
15
|
+
--rv-product-card-price-font-size: var(--rv-font-size-sm);
|
|
16
|
+
--rv-product-card-price-integer-font-size: var(--rv-font-size-lg);
|
|
17
|
+
--rv-product-card-price-font-family: var(--rv-price-integer-font-family);
|
|
18
|
+
}
|
|
19
|
+
.rv-product-card {
|
|
20
|
+
position: relative;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
padding: var(--rv-product-card-padding);
|
|
23
|
+
color: var(--rv-product-card-text-color);
|
|
24
|
+
font-size: var(--rv-product-card-font-size);
|
|
25
|
+
background-color: var(--rv-product-card-background-color);
|
|
26
|
+
}
|
|
27
|
+
.rv-product-card:not(:first-child) {
|
|
28
|
+
margin-top: var(--rv-padding-xs);
|
|
29
|
+
}
|
|
30
|
+
.rv-product-card__header {
|
|
31
|
+
display: flex;
|
|
32
|
+
}
|
|
33
|
+
.rv-product-card__thumb {
|
|
34
|
+
position: relative;
|
|
35
|
+
flex: none;
|
|
36
|
+
width: var(--rv-product-card-thumb-size);
|
|
37
|
+
height: var(--rv-product-card-thumb-size);
|
|
38
|
+
margin-right: var(--rv-padding-xs);
|
|
39
|
+
}
|
|
40
|
+
.rv-product-card__thumb img {
|
|
41
|
+
border-radius: var(--rv-product-card-thumb-border-radius);
|
|
42
|
+
}
|
|
43
|
+
.rv-product-card__content {
|
|
44
|
+
position: relative;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex: 1;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
justify-content: space-between;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
/* hack for flex box ellipsis */
|
|
51
|
+
min-height: var(--rv-product-card-thumb-size);
|
|
52
|
+
}
|
|
53
|
+
.rv-product-card__content--centered {
|
|
54
|
+
justify-content: center;
|
|
55
|
+
}
|
|
56
|
+
.rv-product-card__title,
|
|
57
|
+
.rv-product-card__desc {
|
|
58
|
+
word-wrap: break-word;
|
|
59
|
+
}
|
|
60
|
+
.rv-product-card__title {
|
|
61
|
+
max-height: 32px;
|
|
62
|
+
font-weight: var(--rv-font-weight-bold);
|
|
63
|
+
line-height: var(--rv-product-card-title-line-height);
|
|
64
|
+
}
|
|
65
|
+
.rv-product-card__desc {
|
|
66
|
+
max-height: var(--rv-product-card-desc-line-height);
|
|
67
|
+
color: var(--rv-product-card-desc-color);
|
|
68
|
+
line-height: var(--rv-product-card-desc-line-height);
|
|
69
|
+
}
|
|
70
|
+
.rv-product-card__bottom {
|
|
71
|
+
line-height: var(--rv-line-height-md);
|
|
72
|
+
}
|
|
73
|
+
.rv-product-card__price {
|
|
74
|
+
display: inline-block;
|
|
75
|
+
color: var(--rv-product-card-price-color);
|
|
76
|
+
font-weight: var(--rv-font-weight-bold);
|
|
77
|
+
font-size: var(--rv-product-card-price-font-size);
|
|
78
|
+
}
|
|
79
|
+
.rv-product-card__price-integer {
|
|
80
|
+
font-size: var(--rv-product-card-price-integer-font-size);
|
|
81
|
+
font-family: var(--rv-product-card-price-font-family);
|
|
82
|
+
}
|
|
83
|
+
.rv-product-card__price-decimal {
|
|
84
|
+
font-family: var(--rv-product-card-price-font-family);
|
|
85
|
+
}
|
|
86
|
+
.rv-product-card__origin-price {
|
|
87
|
+
display: inline-block;
|
|
88
|
+
margin-left: 5px;
|
|
89
|
+
color: var(--rv-product-card-origin-price-color);
|
|
90
|
+
font-size: var(--rv-product-card-origin-price-font-size);
|
|
91
|
+
text-decoration: line-through;
|
|
92
|
+
}
|
|
93
|
+
.rv-product-card__num {
|
|
94
|
+
float: right;
|
|
95
|
+
color: var(--rv-product-card-num-color);
|
|
96
|
+
}
|
|
97
|
+
.rv-product-card__tag {
|
|
98
|
+
position: absolute;
|
|
99
|
+
top: 2px;
|
|
100
|
+
left: 0;
|
|
101
|
+
}
|
|
102
|
+
.rv-product-card__footer {
|
|
103
|
+
flex: none;
|
|
104
|
+
text-align: right;
|
|
105
|
+
}
|
|
106
|
+
.rv-product-card__footer .rv-button {
|
|
107
|
+
margin-left: 5px;
|
|
108
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import clsx from 'clsx';
|
|
4
|
+
import { addUnit, createNamespace } from '../utils';
|
|
5
|
+
import { mergeProps } from '../utils/get-default-props';
|
|
6
|
+
const [bem] = createNamespace('progress');
|
|
7
|
+
const Progress = p => {
|
|
8
|
+
const props = mergeProps(p, {
|
|
9
|
+
showPivot: true,
|
|
10
|
+
percentage: 0
|
|
11
|
+
});
|
|
12
|
+
const background = useMemo(() => props.inactive ? '#cacaca' : props.color, [props.inactive, props.color]);
|
|
13
|
+
const renderPivot = () => {
|
|
14
|
+
const {
|
|
15
|
+
textColor,
|
|
16
|
+
pivotText,
|
|
17
|
+
pivotColor,
|
|
18
|
+
percentage
|
|
19
|
+
} = props;
|
|
20
|
+
const text = pivotText !== null && pivotText !== void 0 ? pivotText : `${percentage}%`;
|
|
21
|
+
if (props.showPivot && text) {
|
|
22
|
+
const style = {
|
|
23
|
+
color: textColor,
|
|
24
|
+
left: `${+percentage}%`,
|
|
25
|
+
transform: `translate(-${+percentage}%,-50%)`,
|
|
26
|
+
background: pivotColor || background
|
|
27
|
+
};
|
|
28
|
+
return _jsx("span", Object.assign({
|
|
29
|
+
style: style,
|
|
30
|
+
className: clsx(bem('pivot'))
|
|
31
|
+
}, {
|
|
32
|
+
children: text
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
return null;
|
|
36
|
+
};
|
|
37
|
+
const {
|
|
38
|
+
trackColor,
|
|
39
|
+
percentage,
|
|
40
|
+
strokeWidth
|
|
41
|
+
} = props;
|
|
42
|
+
const rootStyle = Object.assign(Object.assign({}, props.style), {
|
|
43
|
+
background: trackColor,
|
|
44
|
+
height: addUnit(strokeWidth)
|
|
45
|
+
});
|
|
46
|
+
const portionStyle = {
|
|
47
|
+
background,
|
|
48
|
+
transform: `scaleX(${+percentage / 100})`
|
|
49
|
+
};
|
|
50
|
+
return _jsxs("div", Object.assign({
|
|
51
|
+
className: clsx(bem(), props.className),
|
|
52
|
+
style: rootStyle
|
|
53
|
+
}, {
|
|
54
|
+
children: [_jsx("span", {
|
|
55
|
+
className: clsx(bem('portion')),
|
|
56
|
+
style: portionStyle
|
|
57
|
+
}), renderPivot()]
|
|
58
|
+
}));
|
|
59
|
+
};
|
|
60
|
+
export default Progress;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseTypeProps } from '../utils';
|
|
3
|
+
export interface ProgressProps extends BaseTypeProps {
|
|
4
|
+
color?: string;
|
|
5
|
+
inactive?: boolean;
|
|
6
|
+
pivotText?: React.ReactNode;
|
|
7
|
+
textColor?: string;
|
|
8
|
+
showPivot?: boolean;
|
|
9
|
+
pivotColor?: string;
|
|
10
|
+
trackColor?: string;
|
|
11
|
+
strokeWidth?: number | string;
|
|
12
|
+
percentage?: string | number;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--rv-progress-height: 4px;
|
|
3
|
+
--rv-progress-color: var(--rv-primary-color);
|
|
4
|
+
--rv-progress-background-color: var(--rv-gray-3);
|
|
5
|
+
--rv-progress-pivot-padding: 0 5px;
|
|
6
|
+
--rv-progress-pivot-text-color: var(--rv-white);
|
|
7
|
+
--rv-progress-pivot-font-size: var(--rv-font-size-xs);
|
|
8
|
+
--rv-progress-pivot-line-height: 1.6;
|
|
9
|
+
--rv-progress-pivot-background-color: var(--rv-primary-color);
|
|
10
|
+
}
|
|
11
|
+
.rv-progress {
|
|
12
|
+
position: relative;
|
|
13
|
+
height: var(--rv-progress-height);
|
|
14
|
+
background: var(--rv-progress-background-color);
|
|
15
|
+
border-radius: var(--rv-progress-height);
|
|
16
|
+
}
|
|
17
|
+
.rv-progress__portion {
|
|
18
|
+
position: absolute;
|
|
19
|
+
left: 0;
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 100%;
|
|
22
|
+
background: var(--rv-progress-color);
|
|
23
|
+
border-radius: inherit;
|
|
24
|
+
transform-origin: 0;
|
|
25
|
+
transition: all var(--rv-animation-duration-base) var(--rv-animation-timing-function-enter);
|
|
26
|
+
}
|
|
27
|
+
.rv-progress__pivot {
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 50%;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
min-width: 3.6em;
|
|
32
|
+
padding: var(--rv-progress-pivot-padding);
|
|
33
|
+
color: var(--rv-progress-pivot-text-color);
|
|
34
|
+
font-size: var(--rv-progress-pivot-font-size);
|
|
35
|
+
line-height: var(--rv-progress-pivot-line-height);
|
|
36
|
+
text-align: center;
|
|
37
|
+
word-break: keep-all;
|
|
38
|
+
background-color: var(--rv-progress-pivot-background-color);
|
|
39
|
+
border-radius: 1em;
|
|
40
|
+
transition: all var(--rv-animation-duration-base) var(--rv-animation-timing-function-enter);
|
|
41
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseTypeProps } from '../utils';
|
|
3
|
+
export declare type LoadingType = 'circular' | 'spinner';
|
|
4
|
+
export declare type PullRefreshStatus = 'normal' | 'loading' | 'loosing' | 'pulling' | 'success';
|
|
5
|
+
declare type StatusTextType = React.ReactNode | (({ distance }: {
|
|
6
|
+
distance: number;
|
|
7
|
+
}) => React.ReactNode);
|
|
8
|
+
export interface PullRefreshProps extends BaseTypeProps {
|
|
9
|
+
/** 是否禁用下拉刷新 */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** 刷新成功提示文案 */
|
|
12
|
+
successText?: StatusTextType;
|
|
13
|
+
/** 下拉过程提示文案 */
|
|
14
|
+
pullingText?: StatusTextType;
|
|
15
|
+
/** 释放过程提示文案 */
|
|
16
|
+
loosingText?: StatusTextType;
|
|
17
|
+
/** 加载过程提示文案 */
|
|
18
|
+
loadingText?: StatusTextType;
|
|
19
|
+
/** 刷新成功提示展示时长(ms) */
|
|
20
|
+
successDuration?: number | string;
|
|
21
|
+
/** 动画时长 */
|
|
22
|
+
animationDuration?: number | string;
|
|
23
|
+
/**
|
|
24
|
+
* 顶部内容高度
|
|
25
|
+
* @default 50
|
|
26
|
+
*/
|
|
27
|
+
headHeight?: number | string;
|
|
28
|
+
/**
|
|
29
|
+
* 触发下拉刷新的距离
|
|
30
|
+
* @default '与 headHeight 一致'
|
|
31
|
+
*/
|
|
32
|
+
pullDistance?: number | string;
|
|
33
|
+
/** 下拉刷新时触发 */
|
|
34
|
+
onRefresh: () => Promise<unknown> | void;
|
|
35
|
+
/** 刷新完成后触发 */
|
|
36
|
+
onRefreshEnd?: () => void;
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback, useContext, useMemo, useRef } from 'react';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { createNamespace, getScrollTop, preventDefault } from '../utils';
|
|
6
|
+
import { getScrollParent } from '../hooks/use-scroll-parent';
|
|
7
|
+
import useEventListener from '../hooks/use-event-listener';
|
|
8
|
+
import Loading from '../loading';
|
|
9
|
+
import { useSetState, useTouch, useUpdateEffect } from '../hooks';
|
|
10
|
+
import ConfigProviderContext from '../config-provider/ConfigProviderContext';
|
|
11
|
+
import { mergeProps } from '../utils/get-default-props';
|
|
12
|
+
const DEFAULT_HEAD_HEIGHT = 50;
|
|
13
|
+
const TEXT_STATUS = ['pulling', 'loosing', 'success'];
|
|
14
|
+
const [bem] = createNamespace('pull-refresh');
|
|
15
|
+
const PullRefresh = p => {
|
|
16
|
+
const props = mergeProps(p, {
|
|
17
|
+
headHeight: 50,
|
|
18
|
+
animationDuration: 300,
|
|
19
|
+
successDuration: 500
|
|
20
|
+
});
|
|
21
|
+
const {
|
|
22
|
+
locale
|
|
23
|
+
} = useContext(ConfigProviderContext);
|
|
24
|
+
const {
|
|
25
|
+
disabled,
|
|
26
|
+
animationDuration
|
|
27
|
+
} = props;
|
|
28
|
+
const root = useRef();
|
|
29
|
+
const [state, updateState] = useSetState({
|
|
30
|
+
refreshing: false,
|
|
31
|
+
status: 'normal',
|
|
32
|
+
distance: 0,
|
|
33
|
+
duration: 0
|
|
34
|
+
});
|
|
35
|
+
const track = useRef();
|
|
36
|
+
const reachTop = useRef(null);
|
|
37
|
+
const touch = useTouch();
|
|
38
|
+
const getHeadStyle = () => {
|
|
39
|
+
if (props.headHeight !== DEFAULT_HEAD_HEIGHT) {
|
|
40
|
+
return {
|
|
41
|
+
height: `${props.headHeight}px`
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return null;
|
|
45
|
+
};
|
|
46
|
+
const isTouchable = useCallback(() => {
|
|
47
|
+
return state.status !== 'loading' && state.status !== 'success' && !disabled;
|
|
48
|
+
}, [state.status, disabled]);
|
|
49
|
+
const ease = distance => {
|
|
50
|
+
const pullDistance = +(props.pullDistance || props.headHeight);
|
|
51
|
+
if (distance > pullDistance) {
|
|
52
|
+
if (distance < pullDistance * 2) {
|
|
53
|
+
distance = pullDistance + (distance - pullDistance) / 2;
|
|
54
|
+
} else {
|
|
55
|
+
distance = pullDistance * 1.5 + (distance - pullDistance * 2) / 4;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return Math.round(distance);
|
|
59
|
+
};
|
|
60
|
+
const setStatus = (distance, isLoading) => {
|
|
61
|
+
const pullDistance = +(props.pullDistance || props.headHeight);
|
|
62
|
+
const newState = {
|
|
63
|
+
distance
|
|
64
|
+
};
|
|
65
|
+
if (isLoading) {
|
|
66
|
+
newState.status = 'loading';
|
|
67
|
+
} else if (distance === 0) {
|
|
68
|
+
newState.status = 'normal';
|
|
69
|
+
} else if (distance < pullDistance) {
|
|
70
|
+
newState.status = 'pulling';
|
|
71
|
+
} else {
|
|
72
|
+
newState.status = 'loosing';
|
|
73
|
+
}
|
|
74
|
+
updateState(newState);
|
|
75
|
+
};
|
|
76
|
+
const getStatusText = () => {
|
|
77
|
+
if (state.status === 'normal') {
|
|
78
|
+
return '';
|
|
79
|
+
}
|
|
80
|
+
return props[`${state.status}Text`] || locale.vanPullRefresh[state.status];
|
|
81
|
+
};
|
|
82
|
+
const renderStatus = () => {
|
|
83
|
+
var _a;
|
|
84
|
+
const {
|
|
85
|
+
status,
|
|
86
|
+
distance
|
|
87
|
+
} = state;
|
|
88
|
+
if (typeof props[`${state.status}Text`] === 'function') {
|
|
89
|
+
return (_a = props[`${state.status}Text`]) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
90
|
+
distance
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
const nodes = [];
|
|
94
|
+
if (TEXT_STATUS.includes(status)) {
|
|
95
|
+
nodes.push(_jsx("div", Object.assign({
|
|
96
|
+
className: clsx(bem('text'))
|
|
97
|
+
}, {
|
|
98
|
+
children: getStatusText()
|
|
99
|
+
}), 'text'));
|
|
100
|
+
}
|
|
101
|
+
if (status === 'loading') {
|
|
102
|
+
nodes.push(_jsx(Loading, Object.assign({
|
|
103
|
+
className: clsx(bem('loading'))
|
|
104
|
+
}, {
|
|
105
|
+
children: getStatusText()
|
|
106
|
+
}), 'loading'));
|
|
107
|
+
}
|
|
108
|
+
return nodes;
|
|
109
|
+
};
|
|
110
|
+
const showSuccessTip = () => {
|
|
111
|
+
updateState({
|
|
112
|
+
status: 'success'
|
|
113
|
+
});
|
|
114
|
+
setTimeout(() => {
|
|
115
|
+
setStatus(0);
|
|
116
|
+
}, +props.successDuration);
|
|
117
|
+
};
|
|
118
|
+
const onRefresh = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
119
|
+
try {
|
|
120
|
+
updateState({
|
|
121
|
+
refreshing: true
|
|
122
|
+
});
|
|
123
|
+
yield props.onRefresh();
|
|
124
|
+
updateState({
|
|
125
|
+
refreshing: false
|
|
126
|
+
});
|
|
127
|
+
} catch (error) {
|
|
128
|
+
updateState({
|
|
129
|
+
refreshing: false
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
const checkPosition = event => {
|
|
134
|
+
const scrollTarget = getScrollParent(event.target);
|
|
135
|
+
reachTop.current = getScrollTop(scrollTarget) === 0;
|
|
136
|
+
if (reachTop.current) {
|
|
137
|
+
updateState({
|
|
138
|
+
duration: 0
|
|
139
|
+
});
|
|
140
|
+
touch.start(event);
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
const onTouchStart = event => {
|
|
144
|
+
if (isTouchable()) {
|
|
145
|
+
checkPosition(event.nativeEvent);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
const onTouchMove = useCallback(event => {
|
|
149
|
+
if (isTouchable()) {
|
|
150
|
+
if (!reachTop.current) {
|
|
151
|
+
checkPosition(event);
|
|
152
|
+
}
|
|
153
|
+
touch.move(event);
|
|
154
|
+
if (reachTop.current && touch.deltaY.current >= 0 && touch.isVertical()) {
|
|
155
|
+
setStatus(ease(touch.deltaY.current));
|
|
156
|
+
preventDefault(event);
|
|
157
|
+
} else {
|
|
158
|
+
/**
|
|
159
|
+
* IN THIS CASE:
|
|
160
|
+
* if component don't rerender after event.preventDefault
|
|
161
|
+
* ios will hold `preventDefault` behavior when touchmoving
|
|
162
|
+
* it will cause window unscrollable
|
|
163
|
+
*/
|
|
164
|
+
setStatus(0);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
169
|
+
[reachTop.current, touch.deltaY.current, isTouchable]);
|
|
170
|
+
const onTouchEnd = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
171
|
+
if (reachTop.current && touch.deltaY && isTouchable()) {
|
|
172
|
+
updateState({
|
|
173
|
+
duration: +animationDuration
|
|
174
|
+
});
|
|
175
|
+
if (state.status === 'loosing') {
|
|
176
|
+
setStatus(+props.headHeight, true);
|
|
177
|
+
yield onRefresh();
|
|
178
|
+
setTimeout(() => {
|
|
179
|
+
var _a;
|
|
180
|
+
return (_a = props.onRefreshEnd) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
181
|
+
});
|
|
182
|
+
} else {
|
|
183
|
+
setStatus(0);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
useEventListener('touchmove', onTouchMove, {
|
|
188
|
+
target: track.current,
|
|
189
|
+
depends: [reachTop.current, isTouchable(), touch.deltaY]
|
|
190
|
+
});
|
|
191
|
+
useUpdateEffect(() => {
|
|
192
|
+
updateState({
|
|
193
|
+
duration: +animationDuration
|
|
194
|
+
});
|
|
195
|
+
if (state.refreshing) {
|
|
196
|
+
setStatus(+props.headHeight, true);
|
|
197
|
+
} else if (props.successText) {
|
|
198
|
+
showSuccessTip();
|
|
199
|
+
} else {
|
|
200
|
+
setStatus(0, false);
|
|
201
|
+
}
|
|
202
|
+
}, [state.refreshing]);
|
|
203
|
+
const trackStyle = useMemo(() => ({
|
|
204
|
+
transitionDuration: `${state.duration}ms`,
|
|
205
|
+
transform: state.distance ? `translate3d(0,${state.distance}px, 0)` : ''
|
|
206
|
+
}), [state.duration, state.distance]);
|
|
207
|
+
return _jsx("div", Object.assign({
|
|
208
|
+
ref: root,
|
|
209
|
+
className: clsx(props.className, bem()),
|
|
210
|
+
style: props.style
|
|
211
|
+
}, {
|
|
212
|
+
children: _jsxs("div", Object.assign({
|
|
213
|
+
ref: track,
|
|
214
|
+
className: clsx(bem('track')),
|
|
215
|
+
style: trackStyle,
|
|
216
|
+
onTouchStart: onTouchStart,
|
|
217
|
+
onTouchEnd: onTouchEnd,
|
|
218
|
+
onTouchCancel: onTouchEnd
|
|
219
|
+
}, {
|
|
220
|
+
children: [_jsx("div", Object.assign({
|
|
221
|
+
className: clsx(bem('head')),
|
|
222
|
+
style: getHeadStyle()
|
|
223
|
+
}, {
|
|
224
|
+
children: renderStatus()
|
|
225
|
+
})), props.children]
|
|
226
|
+
}))
|
|
227
|
+
}));
|
|
228
|
+
};
|
|
229
|
+
export default PullRefresh;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--rv-pull-refresh-head-height: 50px;
|
|
3
|
+
--rv-pull-refresh-head-font-size: var(--rv-font-size-md);
|
|
4
|
+
--rv-pull-refresh-head-text-color: var(--rv-gray-6);
|
|
5
|
+
--rv-pull-refresh-loading-icon-size: 16px;
|
|
6
|
+
}
|
|
7
|
+
.rv-pull-refresh {
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
user-select: none;
|
|
10
|
+
}
|
|
11
|
+
.rv-pull-refresh__track {
|
|
12
|
+
position: relative;
|
|
13
|
+
height: 100%;
|
|
14
|
+
transition-property: transform;
|
|
15
|
+
}
|
|
16
|
+
.rv-pull-refresh__head {
|
|
17
|
+
position: absolute;
|
|
18
|
+
left: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: var(--rv-pull-refresh-head-height);
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
color: var(--rv-pull-refresh-head-text-color);
|
|
23
|
+
font-size: var(--rv-pull-refresh-head-font-size);
|
|
24
|
+
line-height: var(--rv-pull-refresh-head-height);
|
|
25
|
+
text-align: center;
|
|
26
|
+
transform: translateY(-100%);
|
|
27
|
+
}
|
|
28
|
+
.rv-pull-refresh__loading .rv-loading__spinner {
|
|
29
|
+
width: var(--rv-pull-refresh-loading-icon-size);
|
|
30
|
+
height: var(--rv-pull-refresh-loading-icon-size);
|
|
31
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseTypeProps } from '../utils';
|
|
2
|
+
import { CheckerProps } from '../checkbox/PropsType';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export declare type RadioValueType = number | string;
|
|
5
|
+
export interface RadioGroupProps<T = RadioValueType> extends BaseTypeProps {
|
|
6
|
+
/** 是否为禁用状态 */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** 图标大小,默认单位为px */
|
|
9
|
+
iconSize?: number | string;
|
|
10
|
+
/** 排列方向,可选值为horizontal */
|
|
11
|
+
direction?: string;
|
|
12
|
+
/** 选中状态颜色 */
|
|
13
|
+
checkedColor?: string;
|
|
14
|
+
/** 当前值 */
|
|
15
|
+
value?: T;
|
|
16
|
+
/** 默认值 */
|
|
17
|
+
defaultValue?: T;
|
|
18
|
+
/** 当绑定值变化时触发的事件 */
|
|
19
|
+
onChange?: (name: T) => void;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export interface RadioProps<T = RadioValueType> extends CheckerProps<RadioGroupProps<T>> {
|
|
23
|
+
value?: T;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useContext, useMemo } from 'react';
|
|
4
|
+
import RadioContext from './RadioContext';
|
|
5
|
+
import Checker from '../checkbox/Checker';
|
|
6
|
+
import { createNamespace } from '../utils';
|
|
7
|
+
const [bem] = createNamespace('radio');
|
|
8
|
+
function Radio(props) {
|
|
9
|
+
const _a = useContext(RadioContext),
|
|
10
|
+
{
|
|
11
|
+
parent
|
|
12
|
+
} = _a,
|
|
13
|
+
context = __rest(_a, ["parent"]);
|
|
14
|
+
const checked = useMemo(() => {
|
|
15
|
+
return parent ? context.checked === props.name : props.checked;
|
|
16
|
+
}, [context.checked]);
|
|
17
|
+
const toggle = () => {
|
|
18
|
+
const emitter = parent ? context.toggle : () => {};
|
|
19
|
+
emitter(props.name);
|
|
20
|
+
};
|
|
21
|
+
return _jsx(Checker, Object.assign({}, props, {
|
|
22
|
+
bem: bem,
|
|
23
|
+
role: 'radio',
|
|
24
|
+
parent: parent,
|
|
25
|
+
checked: checked,
|
|
26
|
+
onToggle: toggle
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
export default Radio;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Context } from 'react';
|
|
2
|
+
import { RadioGroupProps, RadioValueType } from './PropsType';
|
|
3
|
+
export interface RadioContextState<T = RadioValueType> {
|
|
4
|
+
parent?: {
|
|
5
|
+
props: RadioGroupProps<T>;
|
|
6
|
+
};
|
|
7
|
+
toggle?: (name: T) => void;
|
|
8
|
+
checked?: T;
|
|
9
|
+
}
|
|
10
|
+
declare const RadioContext: Context<RadioContextState>;
|
|
11
|
+
export default RadioContext;
|