@arco-design/mobile-react 2.36.2 → 2.38.0
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/CHANGELOG.md +28 -0
- package/README.en-US.md +2 -2
- package/README.md +2 -2
- package/cjs/_helpers/hooks.d.ts +1 -1
- package/cjs/_helpers/hooks.js +1 -1
- package/cjs/_helpers/react-dom.d.ts +5 -5
- package/cjs/_helpers/react-dom.js +49 -32
- package/cjs/_helpers/render.js +6 -3
- package/cjs/action-sheet/index.d.ts +3 -2
- package/cjs/action-sheet/index.js +2 -2
- package/cjs/action-sheet/style/css/index.css +18 -0
- package/cjs/avatar/style/css/index.css +18 -0
- package/cjs/badge/index.d.ts +2 -1
- package/cjs/badge/index.js +1 -1
- package/cjs/badge/style/css/index.css +26 -4
- package/cjs/badge/style/index.less +4 -2
- package/cjs/button/style/css/index.css +18 -0
- package/cjs/carousel/style/css/index.css +18 -0
- package/cjs/cell/style/css/index.css +18 -0
- package/cjs/checkbox/checkbox.d.ts +1 -1
- package/cjs/checkbox/group.d.ts +1 -1
- package/cjs/checkbox/hooks/useMergeProps.d.ts +1 -1
- package/cjs/checkbox/index.d.ts +2 -2
- package/cjs/checkbox/style/css/index.css +18 -0
- package/cjs/circle-progress/style/css/index.css +18 -0
- package/cjs/collapse/style/css/index.css +18 -0
- package/cjs/context-provider/index.d.ts +8 -2
- package/cjs/count-down/hooks.js +2 -2
- package/cjs/count-down/style/css/index.css +18 -0
- package/cjs/date-picker/style/css/index.css +18 -0
- package/cjs/dialog/index.d.ts +12 -6
- package/cjs/dialog/index.js +4 -1
- package/cjs/dialog/methods.d.ts +6 -2
- package/cjs/dialog/style/css/index.css +26 -4
- package/cjs/dialog/style/index.less +4 -2
- package/cjs/divider/style/css/index.css +18 -0
- package/cjs/dropdown/style/css/index.css +18 -0
- package/cjs/dropdown-menu/helper.d.ts +2 -2
- package/cjs/dropdown-menu/style/css/index.css +18 -0
- package/cjs/ellipsis/components/native-ellipsis.d.ts +2 -3
- package/cjs/ellipsis/components/native-ellipsis.js +1 -2
- package/cjs/ellipsis/style/css/index.css +18 -0
- package/cjs/form/style/css/index.css +18 -0
- package/cjs/form/type.d.ts +5 -5
- package/cjs/grid/style/css/index.css +18 -0
- package/cjs/image/style/css/index.css +18 -0
- package/cjs/image-picker/style/css/index.css +18 -0
- package/cjs/image-preview/index.d.ts +2 -2
- package/cjs/image-preview/style/css/index.css +18 -0
- package/cjs/index-bar/group.js +3 -1
- package/cjs/index-bar/index.d.ts +2 -2
- package/cjs/index-bar/style/css/index.css +18 -0
- package/cjs/index-bar/utils.d.ts +1 -1
- package/cjs/input/style/css/index.css +18 -0
- package/cjs/keyboard/style/css/index.css +18 -0
- package/cjs/load-more/style/css/index.css +18 -0
- package/cjs/loading/style/css/index.css +18 -0
- package/cjs/masking/index.d.ts +11 -5
- package/cjs/masking/index.js +2 -0
- package/cjs/masking/style/css/index.css +18 -0
- package/cjs/nav-bar/style/css/index.css +18 -0
- package/cjs/notice-bar/style/css/index.css +18 -0
- package/cjs/notify/index.d.ts +8 -8
- package/cjs/notify/index.js +2 -2
- package/cjs/notify/style/css/index.css +18 -0
- package/cjs/pagination/style/css/index.css +18 -0
- package/cjs/picker/style/css/index.css +18 -0
- package/cjs/picker-view/components/cascader.js +3 -1
- package/cjs/picker-view/components/picker-cell.js +1 -1
- package/cjs/picker-view/index.js +3 -1
- package/cjs/picker-view/style/css/index.css +18 -0
- package/cjs/popover/style/css/index.css +18 -0
- package/cjs/popover/style/css/menu.css +18 -0
- package/cjs/popup/index.d.ts +3 -3
- package/cjs/popup/index.js +1 -0
- package/cjs/popup/style/css/index.css +35 -0
- package/cjs/popup/style/index.less +36 -3
- package/cjs/popup-swiper/index.d.ts +2 -2
- package/cjs/popup-swiper/index.js +20 -3
- package/cjs/popup-swiper/style/css/index.css +18 -0
- package/cjs/progress/style/css/index.css +18 -0
- package/cjs/pull-refresh/hooks.d.ts +2 -2
- package/cjs/pull-refresh/style/css/index.css +18 -0
- package/cjs/radio/group.d.ts +1 -1
- package/cjs/radio/index.d.ts +2 -2
- package/cjs/radio/radio.d.ts +1 -1
- package/cjs/radio/style/css/index.css +18 -0
- package/cjs/rate/style/css/index.css +18 -0
- package/cjs/search-bar/style/css/index.css +18 -0
- package/cjs/skeleton/elements.js +9 -3
- package/cjs/skeleton/style/css/index.css +18 -0
- package/cjs/slider/hooks/index.d.ts +1 -1
- package/cjs/slider/hooks/useSliderEvents.d.ts +1 -1
- package/cjs/slider/style/css/index.css +18 -0
- package/cjs/stepper/hooks/useValue.d.ts +2 -1
- package/cjs/stepper/style/css/index.css +18 -0
- package/cjs/steps/index.d.ts +1 -1
- package/cjs/steps/style/css/index.css +18 -0
- package/cjs/sticky/style/css/index.css +18 -0
- package/cjs/swipe-action/style/css/index.css +18 -0
- package/cjs/swipe-load/style/css/index.css +18 -0
- package/cjs/switch/style/css/index.css +18 -0
- package/cjs/tab-bar/style/css/index.css +18 -0
- package/cjs/tabs/index.js +7 -3
- package/cjs/tabs/style/css/index.css +18 -0
- package/cjs/tabs/tab-cell.js +9 -1
- package/cjs/tabs/type.d.ts +7 -2
- package/cjs/tag/style/css/index.css +18 -0
- package/cjs/textarea/style/css/index.css +18 -0
- package/cjs/toast/index.d.ts +12 -12
- package/cjs/toast/index.js +1 -1
- package/cjs/toast/style/css/index.css +18 -0
- package/cjs/transition/index.d.ts +9 -3
- package/cjs/transition/index.js +36 -6
- package/cjs/transition/style/css/index.css +22 -4
- package/cjs/transition/style/index.less +2 -2
- package/cjs/uploader/style/css/index.css +18 -0
- package/dist/index.js +185 -97
- package/dist/index.min.js +4 -4
- package/dist/style.css +1049 -6
- package/dist/style.min.css +1 -1
- package/esm/_helpers/hooks.d.ts +1 -1
- package/esm/_helpers/hooks.js +1 -1
- package/esm/_helpers/react-dom.d.ts +5 -5
- package/esm/_helpers/react-dom.js +49 -30
- package/esm/_helpers/render.js +6 -3
- package/esm/action-sheet/index.d.ts +3 -2
- package/esm/action-sheet/index.js +2 -2
- package/esm/action-sheet/style/css/index.css +18 -0
- package/esm/avatar/style/css/index.css +18 -0
- package/esm/badge/index.d.ts +2 -1
- package/esm/badge/index.js +1 -1
- package/esm/badge/style/css/index.css +26 -4
- package/esm/badge/style/index.less +4 -2
- package/esm/button/style/css/index.css +18 -0
- package/esm/carousel/style/css/index.css +18 -0
- package/esm/cell/style/css/index.css +18 -0
- package/esm/checkbox/checkbox.d.ts +1 -1
- package/esm/checkbox/group.d.ts +1 -1
- package/esm/checkbox/hooks/useMergeProps.d.ts +1 -1
- package/esm/checkbox/index.d.ts +2 -2
- package/esm/checkbox/style/css/index.css +18 -0
- package/esm/circle-progress/style/css/index.css +18 -0
- package/esm/collapse/style/css/index.css +18 -0
- package/esm/context-provider/index.d.ts +8 -2
- package/esm/count-down/hooks.js +2 -2
- package/esm/count-down/style/css/index.css +18 -0
- package/esm/date-picker/style/css/index.css +18 -0
- package/esm/dialog/index.d.ts +12 -6
- package/esm/dialog/index.js +4 -1
- package/esm/dialog/methods.d.ts +6 -2
- package/esm/dialog/style/css/index.css +26 -4
- package/esm/dialog/style/index.less +4 -2
- package/esm/divider/style/css/index.css +18 -0
- package/esm/dropdown/style/css/index.css +18 -0
- package/esm/dropdown-menu/helper.d.ts +2 -2
- package/esm/dropdown-menu/style/css/index.css +18 -0
- package/esm/ellipsis/components/native-ellipsis.d.ts +2 -3
- package/esm/ellipsis/components/native-ellipsis.js +1 -1
- package/esm/ellipsis/style/css/index.css +18 -0
- package/esm/form/style/css/index.css +18 -0
- package/esm/form/type.d.ts +5 -5
- package/esm/grid/style/css/index.css +18 -0
- package/esm/image/style/css/index.css +18 -0
- package/esm/image-picker/style/css/index.css +18 -0
- package/esm/image-preview/index.d.ts +2 -2
- package/esm/image-preview/style/css/index.css +18 -0
- package/esm/index-bar/group.js +3 -1
- package/esm/index-bar/index.d.ts +2 -2
- package/esm/index-bar/style/css/index.css +18 -0
- package/esm/index-bar/utils.d.ts +1 -1
- package/esm/input/style/css/index.css +18 -0
- package/esm/keyboard/style/css/index.css +18 -0
- package/esm/load-more/style/css/index.css +18 -0
- package/esm/loading/style/css/index.css +18 -0
- package/esm/masking/index.d.ts +11 -5
- package/esm/masking/index.js +2 -0
- package/esm/masking/style/css/index.css +18 -0
- package/esm/nav-bar/style/css/index.css +18 -0
- package/esm/notice-bar/style/css/index.css +18 -0
- package/esm/notify/index.d.ts +8 -8
- package/esm/notify/index.js +2 -2
- package/esm/notify/style/css/index.css +18 -0
- package/esm/pagination/style/css/index.css +18 -0
- package/esm/picker/style/css/index.css +18 -0
- package/esm/picker-view/components/cascader.js +3 -1
- package/esm/picker-view/components/picker-cell.js +1 -1
- package/esm/picker-view/index.js +3 -1
- package/esm/picker-view/style/css/index.css +18 -0
- package/esm/popover/style/css/index.css +18 -0
- package/esm/popover/style/css/menu.css +18 -0
- package/esm/popup/index.d.ts +3 -3
- package/esm/popup/index.js +1 -0
- package/esm/popup/style/css/index.css +35 -0
- package/esm/popup/style/index.less +36 -3
- package/esm/popup-swiper/index.d.ts +2 -2
- package/esm/popup-swiper/index.js +20 -3
- package/esm/popup-swiper/style/css/index.css +18 -0
- package/esm/progress/style/css/index.css +18 -0
- package/esm/pull-refresh/hooks.d.ts +2 -2
- package/esm/pull-refresh/style/css/index.css +18 -0
- package/esm/radio/group.d.ts +1 -1
- package/esm/radio/index.d.ts +2 -2
- package/esm/radio/radio.d.ts +1 -1
- package/esm/radio/style/css/index.css +18 -0
- package/esm/rate/style/css/index.css +18 -0
- package/esm/search-bar/style/css/index.css +18 -0
- package/esm/skeleton/elements.js +9 -3
- package/esm/skeleton/style/css/index.css +18 -0
- package/esm/slider/hooks/index.d.ts +1 -1
- package/esm/slider/hooks/useSliderEvents.d.ts +1 -1
- package/esm/slider/style/css/index.css +18 -0
- package/esm/stepper/hooks/useValue.d.ts +2 -1
- package/esm/stepper/style/css/index.css +18 -0
- package/esm/steps/index.d.ts +1 -1
- package/esm/steps/style/css/index.css +18 -0
- package/esm/sticky/style/css/index.css +18 -0
- package/esm/swipe-action/style/css/index.css +18 -0
- package/esm/swipe-load/style/css/index.css +18 -0
- package/esm/switch/style/css/index.css +18 -0
- package/esm/tab-bar/style/css/index.css +18 -0
- package/esm/tabs/index.js +7 -3
- package/esm/tabs/style/css/index.css +18 -0
- package/esm/tabs/tab-cell.js +9 -1
- package/esm/tabs/type.d.ts +7 -2
- package/esm/tag/style/css/index.css +18 -0
- package/esm/textarea/style/css/index.css +18 -0
- package/esm/toast/index.d.ts +12 -12
- package/esm/toast/index.js +1 -1
- package/esm/toast/style/css/index.css +18 -0
- package/esm/transition/index.d.ts +9 -3
- package/esm/transition/index.js +32 -7
- package/esm/transition/style/css/index.css +22 -4
- package/esm/transition/style/index.less +2 -2
- package/esm/uploader/style/css/index.css +18 -0
- package/esnext/_helpers/hooks.js +1 -1
- package/esnext/_helpers/react-dom.d.ts +5 -5
- package/esnext/_helpers/react-dom.js +47 -28
- package/esnext/_helpers/render.js +3 -2
- package/esnext/action-sheet/index.d.ts +3 -2
- package/esnext/action-sheet/index.js +1 -1
- package/esnext/action-sheet/style/css/index.css +18 -0
- package/esnext/avatar/style/css/index.css +18 -0
- package/esnext/badge/index.d.ts +2 -1
- package/esnext/badge/index.js +1 -1
- package/esnext/badge/style/css/index.css +26 -4
- package/esnext/badge/style/index.less +4 -2
- package/esnext/button/style/css/index.css +18 -0
- package/esnext/carousel/style/css/index.css +18 -0
- package/esnext/cell/style/css/index.css +18 -0
- package/esnext/checkbox/style/css/index.css +18 -0
- package/esnext/circle-progress/style/css/index.css +18 -0
- package/esnext/collapse/style/css/index.css +18 -0
- package/esnext/context-provider/index.d.ts +8 -2
- package/esnext/context-provider/index.js +1 -1
- package/esnext/count-down/hooks.js +2 -2
- package/esnext/count-down/style/css/index.css +18 -0
- package/esnext/date-picker/style/css/index.css +18 -0
- package/esnext/dialog/index.d.ts +12 -6
- package/esnext/dialog/index.js +1 -1
- package/esnext/dialog/methods.d.ts +6 -2
- package/esnext/dialog/style/css/index.css +26 -4
- package/esnext/dialog/style/index.less +4 -2
- package/esnext/divider/style/css/index.css +18 -0
- package/esnext/dropdown/style/css/index.css +18 -0
- package/esnext/dropdown-menu/helper.d.ts +1 -1
- package/esnext/dropdown-menu/style/css/index.css +18 -0
- package/esnext/ellipsis/components/native-ellipsis.d.ts +2 -3
- package/esnext/ellipsis/components/native-ellipsis.js +1 -1
- package/esnext/ellipsis/style/css/index.css +18 -0
- package/esnext/form/style/css/index.css +18 -0
- package/esnext/form/type.d.ts +5 -5
- package/esnext/grid/style/css/index.css +18 -0
- package/esnext/image/style/css/index.css +18 -0
- package/esnext/image-picker/style/css/index.css +18 -0
- package/esnext/image-preview/index.d.ts +2 -2
- package/esnext/image-preview/style/css/index.css +18 -0
- package/esnext/index-bar/group.js +5 -1
- package/esnext/index-bar/index.d.ts +2 -2
- package/esnext/index-bar/style/css/index.css +18 -0
- package/esnext/input/style/css/index.css +18 -0
- package/esnext/keyboard/style/css/index.css +18 -0
- package/esnext/load-more/style/css/index.css +18 -0
- package/esnext/loading/style/css/index.css +18 -0
- package/esnext/masking/index.d.ts +11 -5
- package/esnext/masking/index.js +3 -3
- package/esnext/masking/style/css/index.css +18 -0
- package/esnext/nav-bar/style/css/index.css +18 -0
- package/esnext/notice-bar/style/css/index.css +18 -0
- package/esnext/notify/index.d.ts +8 -8
- package/esnext/notify/index.js +2 -2
- package/esnext/notify/style/css/index.css +18 -0
- package/esnext/pagination/style/css/index.css +18 -0
- package/esnext/picker/style/css/index.css +18 -0
- package/esnext/picker-view/components/cascader.js +5 -1
- package/esnext/picker-view/components/picker-cell.js +1 -1
- package/esnext/picker-view/index.js +5 -1
- package/esnext/picker-view/style/css/index.css +18 -0
- package/esnext/popover/style/css/index.css +18 -0
- package/esnext/popover/style/css/menu.css +18 -0
- package/esnext/popup/index.d.ts +3 -3
- package/esnext/popup/index.js +1 -1
- package/esnext/popup/style/css/index.css +35 -0
- package/esnext/popup/style/index.less +36 -3
- package/esnext/popup-swiper/index.d.ts +2 -2
- package/esnext/popup-swiper/index.js +7 -2
- package/esnext/popup-swiper/style/css/index.css +18 -0
- package/esnext/progress/style/css/index.css +18 -0
- package/esnext/pull-refresh/hooks.d.ts +2 -2
- package/esnext/pull-refresh/style/css/index.css +18 -0
- package/esnext/radio/style/css/index.css +18 -0
- package/esnext/rate/style/css/index.css +18 -0
- package/esnext/search-bar/style/css/index.css +18 -0
- package/esnext/skeleton/elements.js +15 -3
- package/esnext/skeleton/style/css/index.css +18 -0
- package/esnext/slider/hooks/useSliderEvents.d.ts +1 -1
- package/esnext/slider/style/css/index.css +18 -0
- package/esnext/stepper/style/css/index.css +18 -0
- package/esnext/steps/style/css/index.css +18 -0
- package/esnext/sticky/style/css/index.css +18 -0
- package/esnext/swipe-action/style/css/index.css +18 -0
- package/esnext/swipe-load/style/css/index.css +18 -0
- package/esnext/switch/style/css/index.css +18 -0
- package/esnext/tab-bar/style/css/index.css +18 -0
- package/esnext/tabs/index.js +3 -2
- package/esnext/tabs/style/css/index.css +18 -0
- package/esnext/tabs/tab-cell.js +8 -1
- package/esnext/tabs/type.d.ts +7 -2
- package/esnext/tag/style/css/index.css +18 -0
- package/esnext/textarea/style/css/index.css +18 -0
- package/esnext/toast/index.d.ts +12 -12
- package/esnext/toast/index.js +1 -1
- package/esnext/toast/style/css/index.css +18 -0
- package/esnext/transition/index.d.ts +9 -3
- package/esnext/transition/index.js +28 -3
- package/esnext/transition/style/css/index.css +22 -4
- package/esnext/transition/style/index.less +2 -2
- package/esnext/uploader/style/css/index.css +18 -0
- package/package.json +3 -3
- package/style/css/public.css +18 -0
- package/tokens/mixin/index.less +31 -2
- package/umd/_helpers/hooks.d.ts +1 -1
- package/umd/_helpers/hooks.js +1 -1
- package/umd/_helpers/react-dom.d.ts +5 -5
- package/umd/_helpers/react-dom.js +53 -35
- package/umd/_helpers/render.js +6 -3
- package/umd/action-sheet/index.d.ts +3 -2
- package/umd/action-sheet/index.js +2 -2
- package/umd/action-sheet/style/css/index.css +18 -0
- package/umd/avatar/style/css/index.css +18 -0
- package/umd/badge/index.d.ts +2 -1
- package/umd/badge/index.js +1 -1
- package/umd/badge/style/css/index.css +26 -4
- package/umd/badge/style/index.less +4 -2
- package/umd/button/style/css/index.css +18 -0
- package/umd/carousel/style/css/index.css +18 -0
- package/umd/cell/style/css/index.css +18 -0
- package/umd/checkbox/checkbox.d.ts +1 -1
- package/umd/checkbox/group.d.ts +1 -1
- package/umd/checkbox/hooks/useMergeProps.d.ts +1 -1
- package/umd/checkbox/index.d.ts +2 -2
- package/umd/checkbox/style/css/index.css +18 -0
- package/umd/circle-progress/style/css/index.css +18 -0
- package/umd/collapse/style/css/index.css +18 -0
- package/umd/context-provider/index.d.ts +8 -2
- package/umd/count-down/hooks.js +2 -2
- package/umd/count-down/style/css/index.css +18 -0
- package/umd/date-picker/style/css/index.css +18 -0
- package/umd/dialog/index.d.ts +12 -6
- package/umd/dialog/index.js +4 -1
- package/umd/dialog/methods.d.ts +6 -2
- package/umd/dialog/style/css/index.css +26 -4
- package/umd/dialog/style/index.less +4 -2
- package/umd/divider/style/css/index.css +18 -0
- package/umd/dropdown/style/css/index.css +18 -0
- package/umd/dropdown-menu/helper.d.ts +2 -2
- package/umd/dropdown-menu/style/css/index.css +18 -0
- package/umd/ellipsis/components/native-ellipsis.d.ts +2 -3
- package/umd/ellipsis/components/native-ellipsis.js +1 -2
- package/umd/ellipsis/style/css/index.css +18 -0
- package/umd/form/style/css/index.css +18 -0
- package/umd/form/type.d.ts +5 -5
- package/umd/grid/style/css/index.css +18 -0
- package/umd/image/style/css/index.css +18 -0
- package/umd/image-picker/style/css/index.css +18 -0
- package/umd/image-preview/index.d.ts +2 -2
- package/umd/image-preview/style/css/index.css +18 -0
- package/umd/index-bar/group.js +3 -1
- package/umd/index-bar/index.d.ts +2 -2
- package/umd/index-bar/style/css/index.css +18 -0
- package/umd/index-bar/utils.d.ts +1 -1
- package/umd/input/style/css/index.css +18 -0
- package/umd/keyboard/style/css/index.css +18 -0
- package/umd/load-more/style/css/index.css +18 -0
- package/umd/loading/style/css/index.css +18 -0
- package/umd/masking/index.d.ts +11 -5
- package/umd/masking/index.js +2 -0
- package/umd/masking/style/css/index.css +18 -0
- package/umd/nav-bar/style/css/index.css +18 -0
- package/umd/notice-bar/style/css/index.css +18 -0
- package/umd/notify/index.d.ts +8 -8
- package/umd/notify/index.js +2 -2
- package/umd/notify/style/css/index.css +18 -0
- package/umd/pagination/style/css/index.css +18 -0
- package/umd/picker/style/css/index.css +18 -0
- package/umd/picker-view/components/cascader.js +3 -1
- package/umd/picker-view/components/picker-cell.js +1 -1
- package/umd/picker-view/index.js +3 -1
- package/umd/picker-view/style/css/index.css +18 -0
- package/umd/popover/style/css/index.css +18 -0
- package/umd/popover/style/css/menu.css +18 -0
- package/umd/popup/index.d.ts +3 -3
- package/umd/popup/index.js +1 -0
- package/umd/popup/style/css/index.css +35 -0
- package/umd/popup/style/index.less +36 -3
- package/umd/popup-swiper/index.d.ts +2 -2
- package/umd/popup-swiper/index.js +20 -3
- package/umd/popup-swiper/style/css/index.css +18 -0
- package/umd/progress/style/css/index.css +18 -0
- package/umd/pull-refresh/hooks.d.ts +2 -2
- package/umd/pull-refresh/style/css/index.css +18 -0
- package/umd/radio/group.d.ts +1 -1
- package/umd/radio/index.d.ts +2 -2
- package/umd/radio/radio.d.ts +1 -1
- package/umd/radio/style/css/index.css +18 -0
- package/umd/rate/style/css/index.css +18 -0
- package/umd/search-bar/style/css/index.css +18 -0
- package/umd/skeleton/elements.js +9 -3
- package/umd/skeleton/style/css/index.css +18 -0
- package/umd/slider/hooks/index.d.ts +1 -1
- package/umd/slider/hooks/useSliderEvents.d.ts +1 -1
- package/umd/slider/style/css/index.css +18 -0
- package/umd/stepper/hooks/useValue.d.ts +2 -1
- package/umd/stepper/style/css/index.css +18 -0
- package/umd/steps/index.d.ts +1 -1
- package/umd/steps/style/css/index.css +18 -0
- package/umd/sticky/style/css/index.css +18 -0
- package/umd/swipe-action/style/css/index.css +18 -0
- package/umd/swipe-load/style/css/index.css +18 -0
- package/umd/switch/style/css/index.css +18 -0
- package/umd/tab-bar/style/css/index.css +18 -0
- package/umd/tabs/index.js +7 -3
- package/umd/tabs/style/css/index.css +18 -0
- package/umd/tabs/tab-cell.js +9 -1
- package/umd/tabs/type.d.ts +7 -2
- package/umd/tag/style/css/index.css +18 -0
- package/umd/textarea/style/css/index.css +18 -0
- package/umd/toast/index.d.ts +12 -12
- package/umd/toast/index.js +1 -1
- package/umd/toast/style/css/index.css +18 -0
- package/umd/transition/index.d.ts +9 -3
- package/umd/transition/index.js +36 -6
- package/umd/transition/style/css/index.css +22 -4
- package/umd/transition/style/index.less +2 -2
- package/umd/uploader/style/css/index.css +18 -0
package/dist/index.js
CHANGED
|
@@ -1656,7 +1656,6 @@
|
|
|
1656
1656
|
LoadMore: {
|
|
1657
1657
|
loadMoreText: '加载更多',
|
|
1658
1658
|
loadingText: '正在努力加载中...',
|
|
1659
|
-
prepareText: '上拉/点击加载更多',
|
|
1660
1659
|
noDataText: '没有更多数据了',
|
|
1661
1660
|
failLoadText: '加载失败,点击重试',
|
|
1662
1661
|
prepareScrollText: '上拉',
|
|
@@ -1719,36 +1718,36 @@
|
|
|
1719
1718
|
boolean: defaultMessageTemplate$1
|
|
1720
1719
|
},
|
|
1721
1720
|
number: {
|
|
1722
|
-
min: '`%s`
|
|
1723
|
-
max: '`%s`
|
|
1724
|
-
equal: '`%s`
|
|
1725
|
-
range: '`%s`
|
|
1726
|
-
positive: '`%s`
|
|
1727
|
-
negative: '`%s
|
|
1721
|
+
min: '`%s` 不可小于 `%s`',
|
|
1722
|
+
max: '`%s` 不可大于 `%s`',
|
|
1723
|
+
equal: '`%s` 应该等于 `%s`',
|
|
1724
|
+
range: '`%s` 应该在 `%s ~ %s` 范围中',
|
|
1725
|
+
positive: '`%s` 不可小于 0',
|
|
1726
|
+
negative: '`%s` 不可大于 0'
|
|
1728
1727
|
},
|
|
1729
1728
|
string: {
|
|
1730
|
-
max: '%s
|
|
1731
|
-
min: '%s
|
|
1732
|
-
len: '%s
|
|
1733
|
-
equal: '%s
|
|
1734
|
-
match: '`%s`
|
|
1729
|
+
max: '%s 不可超过 %s 个字符',
|
|
1730
|
+
min: '%s 不可少于 %s 个字符',
|
|
1731
|
+
len: '%s 字符个数应等于 %s',
|
|
1732
|
+
equal: '%s 应该等于 `%s`',
|
|
1733
|
+
match: '`%s` 应匹配 %s 模式',
|
|
1735
1734
|
uppercase: '%s 需全为大写字符',
|
|
1736
1735
|
lowercase: '%s 需全为小写字符',
|
|
1737
|
-
whitespace: '%s
|
|
1736
|
+
whitespace: '%s 不可全为空格'
|
|
1738
1737
|
},
|
|
1739
1738
|
array: {
|
|
1740
|
-
max: '%s
|
|
1741
|
-
min: '%s
|
|
1742
|
-
len: '%s
|
|
1743
|
-
includes: '%s
|
|
1744
|
-
deepEqual: '%s
|
|
1739
|
+
max: '%s 数组长度不可大于 %s',
|
|
1740
|
+
min: '%s 数组长度不可小于 %s',
|
|
1741
|
+
len: '%s 数组长度需等于 %s',
|
|
1742
|
+
includes: '%s 应该包含 %s',
|
|
1743
|
+
deepEqual: '%s 应该完全等于 %s'
|
|
1745
1744
|
},
|
|
1746
1745
|
object: {
|
|
1747
|
-
deepEqual: '%s
|
|
1748
|
-
hasKeys: '%s
|
|
1746
|
+
deepEqual: '%s 应该完全等于 %s',
|
|
1747
|
+
hasKeys: '%s 需包含必要字段 %s'
|
|
1749
1748
|
},
|
|
1750
1749
|
boolean: {
|
|
1751
|
-
equal: '%s
|
|
1750
|
+
equal: '%s 应该等于 `%s`'
|
|
1752
1751
|
},
|
|
1753
1752
|
pickerDefaultHint: '请选择'
|
|
1754
1753
|
},
|
|
@@ -1756,8 +1755,8 @@
|
|
|
1756
1755
|
backBtnAriaLabel: '返回'
|
|
1757
1756
|
},
|
|
1758
1757
|
Uploader: {
|
|
1759
|
-
uploadBtn: '
|
|
1760
|
-
retryUpload: '
|
|
1758
|
+
uploadBtn: '上传',
|
|
1759
|
+
retryUpload: '重试'
|
|
1761
1760
|
}
|
|
1762
1761
|
};
|
|
1763
1762
|
var zhCN = localeConfig;
|
|
@@ -4650,7 +4649,7 @@
|
|
|
4650
4649
|
clickTimes = _a[0],
|
|
4651
4650
|
setClickTimes = _a[1];
|
|
4652
4651
|
|
|
4653
|
-
var eventRef = React.useRef();
|
|
4652
|
+
var eventRef = React.useRef(undefined);
|
|
4654
4653
|
React.useEffect(function () {
|
|
4655
4654
|
var timer = setTimeout(function () {
|
|
4656
4655
|
if (clickTimes === 1) onClick(eventRef.current);
|
|
@@ -4704,61 +4703,79 @@
|
|
|
4704
4703
|
|
|
4705
4704
|
function isObject$2(obj) {
|
|
4706
4705
|
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
4707
|
-
}
|
|
4706
|
+
} // Cast ReactDOM to a version that might have createRoot and other properties
|
|
4708
4707
|
|
|
4709
|
-
var CopyReactDOM = __assign$3({}, ReactDOM__namespace);
|
|
4710
4708
|
|
|
4709
|
+
var typedReactDOM = ReactDOM__namespace;
|
|
4711
4710
|
var copyRender;
|
|
4712
|
-
var version = CopyReactDOM.version,
|
|
4713
|
-
reactRender = CopyReactDOM.render,
|
|
4714
|
-
unmountComponentAtNode = CopyReactDOM.unmountComponentAtNode;
|
|
4715
|
-
var isReact18 = Number((version || '').split('.')[0]) > 17;
|
|
4716
4711
|
|
|
4717
4712
|
var updateUsingClientEntryPoint = function updateUsingClientEntryPoint(skipWarning) {
|
|
4718
4713
|
// https://github.com/facebook/react/blob/17806594cc28284fe195f918e8d77de3516848ec/packages/react-dom/npm/client.js#L10
|
|
4719
4714
|
// Avoid console warning
|
|
4720
|
-
var
|
|
4715
|
+
var secretInternals = typedReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
4721
4716
|
|
|
4722
|
-
if (isObject$2(
|
|
4723
|
-
|
|
4717
|
+
if (isObject$2(secretInternals)) {
|
|
4718
|
+
secretInternals.usingClientEntryPoint = skipWarning;
|
|
4724
4719
|
}
|
|
4725
4720
|
};
|
|
4726
4721
|
|
|
4727
|
-
var createRoot;
|
|
4728
|
-
|
|
4729
|
-
try {
|
|
4730
|
-
createRoot = CopyReactDOM.createRoot;
|
|
4731
|
-
} catch (_) {}
|
|
4722
|
+
var createRootFn = typedReactDOM.createRoot;
|
|
4732
4723
|
|
|
4733
|
-
|
|
4734
|
-
|
|
4724
|
+
var getRender = function getRender(createRootFunction) {
|
|
4725
|
+
return function (app, container) {
|
|
4735
4726
|
updateUsingClientEntryPoint(true);
|
|
4736
|
-
var root =
|
|
4727
|
+
var root = createRootFunction(container);
|
|
4737
4728
|
updateUsingClientEntryPoint(false);
|
|
4738
4729
|
root.render(app);
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
(
|
|
4745
|
-
|
|
4730
|
+
return {
|
|
4731
|
+
render: function render(elementToRender) {
|
|
4732
|
+
root.render(elementToRender);
|
|
4733
|
+
},
|
|
4734
|
+
_unmount: function _unmount() {
|
|
4735
|
+
setTimeout(function () {
|
|
4736
|
+
if (root && typeof root.unmount === 'function') {
|
|
4737
|
+
root.unmount();
|
|
4738
|
+
}
|
|
4739
|
+
});
|
|
4740
|
+
}
|
|
4746
4741
|
};
|
|
4747
|
-
|
|
4748
|
-
return root;
|
|
4749
4742
|
};
|
|
4750
|
-
}
|
|
4743
|
+
};
|
|
4744
|
+
|
|
4745
|
+
if (createRootFn) {
|
|
4746
|
+
// React 18
|
|
4747
|
+
copyRender = getRender(createRootFn);
|
|
4748
|
+
} else if (typeof typedReactDOM.render === 'function' && typeof typedReactDOM.unmountComponentAtNode === 'function') {
|
|
4749
|
+
// React 16/17
|
|
4751
4750
|
copyRender = function copyRender(app, container) {
|
|
4752
|
-
|
|
4751
|
+
typedReactDOM.render(app, container); // Use non-null assertion
|
|
4752
|
+
|
|
4753
4753
|
return {
|
|
4754
|
-
render: function render(
|
|
4755
|
-
|
|
4754
|
+
render: function render(elementToRender) {
|
|
4755
|
+
typedReactDOM.render(elementToRender, container); // Use non-null assertion
|
|
4756
4756
|
},
|
|
4757
4757
|
_unmount: function _unmount() {
|
|
4758
|
-
unmountComponentAtNode(container);
|
|
4758
|
+
typedReactDOM.unmountComponentAtNode(container); // Use non-null assertion
|
|
4759
4759
|
}
|
|
4760
4760
|
};
|
|
4761
4761
|
};
|
|
4762
|
+
} else {
|
|
4763
|
+
copyRender = function copyRender(app, container, createRootFunction) {
|
|
4764
|
+
var defaultCb = function defaultCb() {
|
|
4765
|
+
// Fallback if no rendering method is found
|
|
4766
|
+
console.error('ArcoDesign: ReactDOM.createRoot() or ReactDOM.render() not found. ' + 'This usually means you are using an unsupported version of React, ' + 'or ReactDOM is not properly initialized. ' + 'ArcoDesign Mobile React requires React 16, 17, 18, or 19.');
|
|
4767
|
+
return {
|
|
4768
|
+
render: function render(_element) {},
|
|
4769
|
+
_unmount: function _unmount() {}
|
|
4770
|
+
};
|
|
4771
|
+
};
|
|
4772
|
+
|
|
4773
|
+
if (createRootFunction) {
|
|
4774
|
+
return getRender(createRootFunction)(app, container);
|
|
4775
|
+
}
|
|
4776
|
+
|
|
4777
|
+
return defaultCb();
|
|
4778
|
+
};
|
|
4762
4779
|
}
|
|
4763
4780
|
|
|
4764
4781
|
var render = copyRender;
|
|
@@ -4775,14 +4792,15 @@
|
|
|
4775
4792
|
this.render = function (props) {
|
|
4776
4793
|
var CustomApp = _this.app;
|
|
4777
4794
|
|
|
4778
|
-
var propsWithContext = __assign$3(
|
|
4795
|
+
var propsWithContext = __assign$3({
|
|
4779
4796
|
context: _this.context
|
|
4780
|
-
});
|
|
4797
|
+
}, props);
|
|
4781
4798
|
|
|
4782
4799
|
if (_this.root) {
|
|
4783
4800
|
_this.root.render( /*#__PURE__*/React__default["default"].createElement(CustomApp, __assign$3({}, propsWithContext)));
|
|
4784
4801
|
} else {
|
|
4785
|
-
|
|
4802
|
+
var createRoot = (_this.context || {}).createRoot;
|
|
4803
|
+
_this.root = render( /*#__PURE__*/React__default["default"].createElement(CustomApp, __assign$3({}, propsWithContext)), _this.container, createRoot);
|
|
4786
4804
|
}
|
|
4787
4805
|
};
|
|
4788
4806
|
|
|
@@ -5222,7 +5240,8 @@
|
|
|
5222
5240
|
tabBarStyle = props.tabBarStyle,
|
|
5223
5241
|
tabBarClass = props.tabBarClass,
|
|
5224
5242
|
translateZ = props.translateZ,
|
|
5225
|
-
tabBarStopPropagation = props.tabBarStopPropagation
|
|
5243
|
+
tabBarStopPropagation = props.tabBarStopPropagation,
|
|
5244
|
+
onUnderlineFirstShow = props.onUnderlineFirstShow;
|
|
5226
5245
|
var prefix = prefixCls + "-tab-cell";
|
|
5227
5246
|
var useRtl = React.useContext(GlobalContext).useRtl;
|
|
5228
5247
|
var domRef = React.useRef(null);
|
|
@@ -5298,6 +5317,13 @@
|
|
|
5298
5317
|
React.useEffect(function () {
|
|
5299
5318
|
updateScrollPosition();
|
|
5300
5319
|
}, [activeIndex, wrapSize]);
|
|
5320
|
+
React.useEffect(function () {
|
|
5321
|
+
// underline 首次展示时,通知父组件启用 cellTrans
|
|
5322
|
+
// @en When underline is first shown, notify parent component to enable cellTrans
|
|
5323
|
+
if (showLine && onUnderlineFirstShow) {
|
|
5324
|
+
onUnderlineFirstShow();
|
|
5325
|
+
}
|
|
5326
|
+
}, [showLine]);
|
|
5301
5327
|
useUpdateEffect(function () {
|
|
5302
5328
|
var _a;
|
|
5303
5329
|
|
|
@@ -6685,13 +6711,14 @@
|
|
|
6685
6711
|
cellRef.current && cellRef.current.scrollToCenter();
|
|
6686
6712
|
}
|
|
6687
6713
|
|
|
6714
|
+
setCellTrans(true);
|
|
6715
|
+
setPaneTrans(true);
|
|
6716
|
+
|
|
6688
6717
|
if (!touchStartedRef.current || posAdjustingRef.current || scrollingRef.current || !touchMovedRef.current) {
|
|
6689
6718
|
return;
|
|
6690
6719
|
}
|
|
6691
6720
|
|
|
6692
6721
|
touchStartedRef.current = false;
|
|
6693
|
-
setCellTrans(true);
|
|
6694
|
-
setPaneTrans(true);
|
|
6695
6722
|
var touchEndTime = new Date().getTime();
|
|
6696
6723
|
var dis = distanceRef.current;
|
|
6697
6724
|
var speed = dis / (touchEndTime - touchStartTimeRef.current) * 1000;
|
|
@@ -6825,7 +6852,10 @@
|
|
|
6825
6852
|
renderTabBarInner: renderTabBarInner,
|
|
6826
6853
|
tabBarStyle: tabBarStyle,
|
|
6827
6854
|
tabBarClass: tabBarClass,
|
|
6828
|
-
tabBarStopPropagation: tabBarStopPropagation
|
|
6855
|
+
tabBarStopPropagation: tabBarStopPropagation,
|
|
6856
|
+
onUnderlineFirstShow: function onUnderlineFirstShow() {
|
|
6857
|
+
return setCellTrans(true);
|
|
6858
|
+
}
|
|
6829
6859
|
}, commonProps);
|
|
6830
6860
|
|
|
6831
6861
|
var CellComp = /*#__PURE__*/React__default["default"].createElement(TabCell, __assign$3({}, cellProps));
|
|
@@ -8760,6 +8790,7 @@
|
|
|
8760
8790
|
};
|
|
8761
8791
|
CSSTransition.propTypes = {};
|
|
8762
8792
|
|
|
8793
|
+
var DEFAULT_TIMEOUT = 300;
|
|
8763
8794
|
/**
|
|
8764
8795
|
* react-transition-group/CSSTransition 的简单封装。
|
|
8765
8796
|
* @en Simple wrapper for react-transition-group/CSSTransition.
|
|
@@ -8775,14 +8806,36 @@
|
|
|
8775
8806
|
type = props.type,
|
|
8776
8807
|
transIn = props.in,
|
|
8777
8808
|
_b = props.timeout,
|
|
8778
|
-
timeout = _b === void 0 ?
|
|
8809
|
+
timeout = _b === void 0 ? DEFAULT_TIMEOUT : _b,
|
|
8779
8810
|
_c = props.mountOnEnter,
|
|
8780
8811
|
mountOnEnter = _c === void 0 ? true : _c,
|
|
8781
8812
|
_d = props.unmountOnExit,
|
|
8782
8813
|
unmountOnExit = _d === void 0 ? true : _d,
|
|
8783
|
-
|
|
8814
|
+
transitionVarType = props.transitionVarType,
|
|
8815
|
+
restProps = __rest$1(props, ["children", "type", "in", "timeout", "mountOnEnter", "unmountOnExit", "transitionVarType"]);
|
|
8784
8816
|
|
|
8817
|
+
var varPrefix = "builtin-transition-" + (transitionVarType || type); // 计算动画时长,支持对象形式的 timeout
|
|
8818
|
+
|
|
8819
|
+
var getDuration = function getDuration(phase) {
|
|
8820
|
+
if (typeof timeout === 'number') {
|
|
8821
|
+
return timeout;
|
|
8822
|
+
}
|
|
8823
|
+
|
|
8824
|
+
return timeout[phase] || DEFAULT_TIMEOUT;
|
|
8825
|
+
}; // 生成 CSS 变量样式
|
|
8826
|
+
|
|
8827
|
+
|
|
8828
|
+
var cssVariables = React.useMemo(function () {
|
|
8829
|
+
var _a;
|
|
8830
|
+
|
|
8831
|
+
var enterDuration = getDuration('enter');
|
|
8832
|
+
var exitDuration = getDuration('exit');
|
|
8833
|
+
var appearDuration = getDuration('appear');
|
|
8834
|
+
return _a = {}, _a["--" + varPrefix + "-enter-duration"] = enterDuration + "ms", _a["--" + varPrefix + "-exit-duration"] = exitDuration + "ms", _a["--" + varPrefix + "-appear-duration"] = appearDuration + "ms", _a;
|
|
8835
|
+
}, [timeout, varPrefix]);
|
|
8785
8836
|
return /*#__PURE__*/React__default["default"].createElement(ContextLayout, null, function (_a) {
|
|
8837
|
+
var _b, _c;
|
|
8838
|
+
|
|
8786
8839
|
var prefixCls = _a.prefixCls;
|
|
8787
8840
|
return /*#__PURE__*/React__default["default"].createElement(CSSTransition, __assign$3({
|
|
8788
8841
|
in: transIn,
|
|
@@ -8790,7 +8843,9 @@
|
|
|
8790
8843
|
classNames: prefixCls + "-" + type,
|
|
8791
8844
|
mountOnEnter: mountOnEnter,
|
|
8792
8845
|
unmountOnExit: unmountOnExit
|
|
8793
|
-
}, restProps), children
|
|
8846
|
+
}, restProps), /*#__PURE__*/React.cloneElement(children, {
|
|
8847
|
+
style: __assign$3(__assign$3({}, cssVariables), (_c = (_b = children) === null || _b === void 0 ? void 0 : _b.props) === null || _c === void 0 ? void 0 : _c.style)
|
|
8848
|
+
}));
|
|
8794
8849
|
});
|
|
8795
8850
|
}
|
|
8796
8851
|
|
|
@@ -8886,6 +8941,7 @@
|
|
|
8886
8941
|
maskTransitionType = _b === void 0 ? 'fade' : _b,
|
|
8887
8942
|
_c = props.contentTransitionType,
|
|
8888
8943
|
contentTransitionType = _c === void 0 ? 'fade' : _c,
|
|
8944
|
+
contentTransitionVarType = props.contentTransitionVarType,
|
|
8889
8945
|
_d = props.maskTransitionTimeout,
|
|
8890
8946
|
maskTransitionTimeout = _d === void 0 ? 300 : _d,
|
|
8891
8947
|
_e = props.contentTransitionTimeout,
|
|
@@ -9030,6 +9086,7 @@
|
|
|
9030
9086
|
in: innerVisible,
|
|
9031
9087
|
timeout: contentTransitionTimeout,
|
|
9032
9088
|
type: contentTransitionType,
|
|
9089
|
+
transitionVarType: contentTransitionVarType,
|
|
9033
9090
|
mountOnEnter: mountOnEnter,
|
|
9034
9091
|
unmountOnExit: unmountOnExit,
|
|
9035
9092
|
nodeRef: contentRef
|
|
@@ -9110,6 +9167,7 @@
|
|
|
9110
9167
|
translateZ: translateZ
|
|
9111
9168
|
}, maskClass),
|
|
9112
9169
|
contentTransitionType: contentTransitionType || "slide-from-" + direction,
|
|
9170
|
+
contentTransitionVarType: "popup-slide",
|
|
9113
9171
|
contentClass: cls(prefix + "-content", direction, {
|
|
9114
9172
|
'need-bottom-offset': needBottomOffset
|
|
9115
9173
|
}, {
|
|
@@ -9202,14 +9260,14 @@
|
|
|
9202
9260
|
}, subTitle) : null) : null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9203
9261
|
className: prefixCls + "-action-sheet-list"
|
|
9204
9262
|
}, (items || []).map(function (item, index) {
|
|
9205
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9263
|
+
return item.content ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9206
9264
|
className: cls(prefixCls + "-action-sheet-item", item.className, item.status || 'normal'),
|
|
9207
9265
|
key: index,
|
|
9208
9266
|
style: item.style,
|
|
9209
9267
|
onClick: function onClick(e) {
|
|
9210
9268
|
return handleItemClick(e, item);
|
|
9211
9269
|
}
|
|
9212
|
-
}, item.content);
|
|
9270
|
+
}, item.content) : null;
|
|
9213
9271
|
})), cancelText ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9214
9272
|
className: prefixCls + "-action-sheet-item cancel-item",
|
|
9215
9273
|
onClick: function onClick(e) {
|
|
@@ -10059,7 +10117,7 @@
|
|
|
10059
10117
|
_h = props.bordered,
|
|
10060
10118
|
bordered = _h === void 0 ? false : _h,
|
|
10061
10119
|
_j = props.timeout,
|
|
10062
|
-
timeout = _j === void 0 ?
|
|
10120
|
+
timeout = _j === void 0 ? 400 : _j;
|
|
10063
10121
|
var domRef = React.useRef(null);
|
|
10064
10122
|
React.useImperativeHandle(ref, function () {
|
|
10065
10123
|
return {
|
|
@@ -12460,8 +12518,8 @@
|
|
|
12460
12518
|
|
|
12461
12519
|
var useCountDown = function useCountDown(options) {
|
|
12462
12520
|
var taskIdRef = React.useRef(0);
|
|
12463
|
-
var endTimeRef = React.useRef();
|
|
12464
|
-
var countingRef = React.useRef();
|
|
12521
|
+
var endTimeRef = React.useRef(undefined);
|
|
12522
|
+
var countingRef = React.useRef(undefined);
|
|
12465
12523
|
|
|
12466
12524
|
var _a = useRefState(options.time),
|
|
12467
12525
|
remain = _a[0],
|
|
@@ -12769,7 +12827,7 @@
|
|
|
12769
12827
|
var rowCount = Math.max(rows % 2 === 0 ? rows + 1 : rows, 3);
|
|
12770
12828
|
var isTouchMoveRef = React.useRef(false);
|
|
12771
12829
|
var isTouchStopped = React.useRef(false);
|
|
12772
|
-
var unmountCallbackRef = React.useRef();
|
|
12830
|
+
var unmountCallbackRef = React.useRef(undefined);
|
|
12773
12831
|
var timeRef = React.useRef(null);
|
|
12774
12832
|
var colStyle = React.useMemo(function () {
|
|
12775
12833
|
return getStyleWithVendor(__assign$3(__assign$3({
|
|
@@ -13218,7 +13276,9 @@
|
|
|
13218
13276
|
rows: rows,
|
|
13219
13277
|
hideEmptyCols: hideEmptyCols,
|
|
13220
13278
|
ref: function ref(cellRef) {
|
|
13221
|
-
|
|
13279
|
+
if (cellRef) {
|
|
13280
|
+
pickerCellsRef.current[index] = cellRef;
|
|
13281
|
+
}
|
|
13222
13282
|
},
|
|
13223
13283
|
touchToStop: touchToStop
|
|
13224
13284
|
});
|
|
@@ -13450,7 +13510,9 @@
|
|
|
13450
13510
|
rows: rows,
|
|
13451
13511
|
hideEmptyCols: hideEmptyCols,
|
|
13452
13512
|
ref: function ref(cellRef) {
|
|
13453
|
-
|
|
13513
|
+
if (cellRef) {
|
|
13514
|
+
pickerCellsRef.current[index] = cellRef;
|
|
13515
|
+
}
|
|
13454
13516
|
},
|
|
13455
13517
|
touchToStop: touchToStop
|
|
13456
13518
|
});
|
|
@@ -14343,7 +14405,10 @@
|
|
|
14343
14405
|
_h = props.maskTransitionTimeout,
|
|
14344
14406
|
maskTransitionTimeout = _h === void 0 ? 300 : _h,
|
|
14345
14407
|
_j = props.contentTransitionTimeout,
|
|
14346
|
-
contentTransitionTimeout = _j === void 0 ?
|
|
14408
|
+
contentTransitionTimeout = _j === void 0 ? nowSystem === 'android' ? 300 : {
|
|
14409
|
+
enter: 450,
|
|
14410
|
+
exit: 150
|
|
14411
|
+
} : _j,
|
|
14347
14412
|
extra = props.extra,
|
|
14348
14413
|
restProps = __rest$1(props, ["close", "children", "title", "footer", "footerType", "renderFooter", "footerCollapseCount", "titleAlign", "contentAlign", "className", "maskClass", "contentClass", "contentStyle", "contentTransitionType", "maskTransitionTimeout", "contentTransitionTimeout", "extra"]);
|
|
14349
14414
|
|
|
@@ -16543,8 +16608,6 @@
|
|
|
16543
16608
|
}, ellipsisNode) : null);
|
|
16544
16609
|
}
|
|
16545
16610
|
|
|
16546
|
-
var NativeEllipsis$1 = /*#__PURE__*/React__default["default"].memo(NativeEllipsis);
|
|
16547
|
-
|
|
16548
16611
|
/**
|
|
16549
16612
|
* 文本缩略组件,支持多行缩略、富文本、自定义缩略符、尾字符过滤等。如果传入的文本内容中包含换行符号`\n`,建议将`\n`替换为`<br/>`,并设置`dangerouslyUseInnerHTML=true`。
|
|
16550
16613
|
* @en Text ellipsis component supports multi-line abbreviations, rich text, custom abbreviations, tail character filtering, etc. If the incoming text contains newline characters `\n`, it is recommended to replace `\n` with `<br/>`, and set `dangerouslyUseInnerHTML=true`.
|
|
@@ -16591,7 +16654,7 @@
|
|
|
16591
16654
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16592
16655
|
className: cls(prefixCls + "-ellipsis", className),
|
|
16593
16656
|
ref: domRef
|
|
16594
|
-
}, useNativeEllipsis ? /*#__PURE__*/React__default["default"].createElement(NativeEllipsis
|
|
16657
|
+
}, useNativeEllipsis ? /*#__PURE__*/React__default["default"].createElement(NativeEllipsis, {
|
|
16595
16658
|
prefixCls: prefixCls + "-ellipsis",
|
|
16596
16659
|
ellipsis: ellipsis,
|
|
16597
16660
|
dangerouslyUseInnerHTML: dangerouslyUseInnerHTML,
|
|
@@ -25050,7 +25113,9 @@
|
|
|
25050
25113
|
stickyStyle: "absolute",
|
|
25051
25114
|
getScrollContainer: getScrollContainer,
|
|
25052
25115
|
ref: function ref(stickyRef) {
|
|
25053
|
-
|
|
25116
|
+
if (stickyRef) {
|
|
25117
|
+
updateRef(groupIndex, stickyRef);
|
|
25118
|
+
}
|
|
25054
25119
|
}
|
|
25055
25120
|
}, titleDom) : titleDom;
|
|
25056
25121
|
};
|
|
@@ -26672,8 +26737,8 @@
|
|
|
26672
26737
|
getContainer = props.getContainer;
|
|
26673
26738
|
var domRef = React.useRef(null);
|
|
26674
26739
|
var innerRef = React.useRef(null);
|
|
26675
|
-
var closeTimerRef = React.useRef();
|
|
26676
|
-
var onCloseTimeRef = React.useRef();
|
|
26740
|
+
var closeTimerRef = React.useRef(undefined);
|
|
26741
|
+
var onCloseTimeRef = React.useRef(undefined);
|
|
26677
26742
|
|
|
26678
26743
|
var _f = React.useState(!visible),
|
|
26679
26744
|
hasTrans = _f[0],
|
|
@@ -28272,23 +28337,33 @@
|
|
|
28272
28337
|
_onOpen = props.onOpen,
|
|
28273
28338
|
_onClose = props.onClose,
|
|
28274
28339
|
close = props.close,
|
|
28275
|
-
|
|
28340
|
+
_f = props.maskTransitionTimeout,
|
|
28341
|
+
maskTransitionTimeout = _f === void 0 ? {
|
|
28342
|
+
enter: 450,
|
|
28343
|
+
exit: 240
|
|
28344
|
+
} : _f,
|
|
28345
|
+
_g = props.contentTransitionTimeout,
|
|
28346
|
+
contentTransitionTimeout = _g === void 0 ? {
|
|
28347
|
+
enter: 450,
|
|
28348
|
+
exit: 240
|
|
28349
|
+
} : _g,
|
|
28350
|
+
otherProps = __rest$1(props, ["className", "visible", "children", "maskStyle", "contentStyle", "direction", "percentToClose", "distanceToClose", "speedToClose", "allowSwipeDirections", "exitDirection", "onTouchMove", "onTouchStart", "onTouchEnd", "onOpen", "onClose", "close", "maskTransitionTimeout", "contentTransitionTimeout"]);
|
|
28276
28351
|
|
|
28277
|
-
var
|
|
28278
|
-
opened =
|
|
28279
|
-
setOpened =
|
|
28352
|
+
var _h = React.useState(visible),
|
|
28353
|
+
opened = _h[0],
|
|
28354
|
+
setOpened = _h[1];
|
|
28280
28355
|
|
|
28281
|
-
var
|
|
28356
|
+
var _j = useRefState({
|
|
28282
28357
|
direction: 'X',
|
|
28283
28358
|
value: 0
|
|
28284
28359
|
}),
|
|
28285
|
-
distance =
|
|
28286
|
-
distanceRef =
|
|
28287
|
-
setDistance =
|
|
28360
|
+
distance = _j[0],
|
|
28361
|
+
distanceRef = _j[1],
|
|
28362
|
+
setDistance = _j[2];
|
|
28288
28363
|
|
|
28289
|
-
var
|
|
28290
|
-
hasTrans =
|
|
28291
|
-
setHasTrans =
|
|
28364
|
+
var _k = React.useState(false),
|
|
28365
|
+
hasTrans = _k[0],
|
|
28366
|
+
setHasTrans = _k[1];
|
|
28292
28367
|
|
|
28293
28368
|
var popupRef = React.useRef(null);
|
|
28294
28369
|
var touchStartXRef = React.useRef(0);
|
|
@@ -28417,7 +28492,12 @@
|
|
|
28417
28492
|
setDistance({
|
|
28418
28493
|
direction: 'X',
|
|
28419
28494
|
value: 0
|
|
28420
|
-
});
|
|
28495
|
+
}); // 动画完成后需重置
|
|
28496
|
+
// @en Reset after animation is complete
|
|
28497
|
+
|
|
28498
|
+
setTimeout(function () {
|
|
28499
|
+
setHasTrans(false);
|
|
28500
|
+
}, Math.max(typeof maskTransitionTimeout === 'number' ? maskTransitionTimeout : (maskTransitionTimeout === null || maskTransitionTimeout === void 0 ? void 0 : maskTransitionTimeout.exit) || 0, typeof contentTransitionTimeout === 'number' ? contentTransitionTimeout : (contentTransitionTimeout === null || contentTransitionTimeout === void 0 ? void 0 : contentTransitionTimeout.exit) || 0, 240));
|
|
28421
28501
|
}
|
|
28422
28502
|
|
|
28423
28503
|
touchStartTimeRef.current = 0;
|
|
@@ -28482,7 +28562,9 @@
|
|
|
28482
28562
|
maskStyle: __assign$3(__assign$3({}, maskStyle || {}), {
|
|
28483
28563
|
opacity: percent ? 1 - percent : void 0
|
|
28484
28564
|
}),
|
|
28485
|
-
contentStyle: getContentStyle()
|
|
28565
|
+
contentStyle: getContentStyle(),
|
|
28566
|
+
maskTransitionTimeout: maskTransitionTimeout,
|
|
28567
|
+
contentTransitionTimeout: contentTransitionTimeout
|
|
28486
28568
|
}, otherProps), children);
|
|
28487
28569
|
});
|
|
28488
28570
|
});
|
|
@@ -30582,7 +30664,9 @@
|
|
|
30582
30664
|
backgroundColor: backgroundColor
|
|
30583
30665
|
},
|
|
30584
30666
|
ref: function ref(el) {
|
|
30585
|
-
|
|
30667
|
+
if (el) {
|
|
30668
|
+
lineDomRefs.current[idx] = el;
|
|
30669
|
+
}
|
|
30586
30670
|
}
|
|
30587
30671
|
}, isGradientAnimation && offsets !== undefined && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
30588
30672
|
className: prefixCls + "-skeleton-animation-item",
|
|
@@ -30668,7 +30752,9 @@
|
|
|
30668
30752
|
backgroundColor: backgroundColor
|
|
30669
30753
|
},
|
|
30670
30754
|
ref: function ref(el) {
|
|
30671
|
-
|
|
30755
|
+
if (el) {
|
|
30756
|
+
iconDomRefs.current[idx] = el;
|
|
30757
|
+
}
|
|
30672
30758
|
}
|
|
30673
30759
|
}, isGradientAnimation && iconOffsets !== undefined && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
30674
30760
|
className: prefixCls + "-skeleton-animation-item",
|
|
@@ -30681,7 +30767,9 @@
|
|
|
30681
30767
|
backgroundColor: backgroundColor
|
|
30682
30768
|
},
|
|
30683
30769
|
ref: function ref(el) {
|
|
30684
|
-
|
|
30770
|
+
if (el) {
|
|
30771
|
+
textDomRefs.current[idx] = el;
|
|
30772
|
+
}
|
|
30685
30773
|
}
|
|
30686
30774
|
}, isGradientAnimation && textOffsets !== undefined && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
30687
30775
|
className: prefixCls + "-skeleton-animation-item",
|
|
@@ -33231,7 +33319,7 @@
|
|
|
33231
33319
|
direction = _h === void 0 ? 'center' : _h,
|
|
33232
33320
|
typeIconMap = props.typeIconMap,
|
|
33233
33321
|
initialBodyOverflow = props.initialBodyOverflow;
|
|
33234
|
-
var closeTimerRef = React.useRef();
|
|
33322
|
+
var closeTimerRef = React.useRef(undefined);
|
|
33235
33323
|
var domRef = React.useRef(null);
|
|
33236
33324
|
var wrapDomRef = React.useRef(null);
|
|
33237
33325
|
var isInitialMount = React.useRef(false);
|