@arco-design/mobile-react 2.31.6 → 2.33.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 +29 -0
- package/LICENSE +21 -0
- package/README.en-US.md +2 -2
- package/README.md +2 -2
- package/cjs/_helpers/index.d.ts +1 -0
- package/cjs/_helpers/index.js +9 -0
- package/cjs/_helpers/react-dom.js +18 -10
- package/cjs/avatar/index.js +3 -1
- package/cjs/avatar/type.d.ts +6 -0
- package/cjs/carousel/index.js +18 -1
- package/cjs/steps/index.d.ts +1 -1
- package/cjs/steps/index.js +6 -1
- package/cjs/steps/style/css/index.css +42 -4
- package/cjs/steps/style/index.less +58 -6
- package/cjs/steps/type.d.ts +5 -0
- package/dist/index.js +146 -97
- package/dist/index.min.js +4 -4
- package/dist/style.css +27 -4
- package/dist/style.min.css +1 -1
- package/esm/_helpers/index.d.ts +1 -0
- package/esm/_helpers/index.js +1 -0
- package/esm/_helpers/react-dom.js +15 -11
- package/esm/avatar/index.js +3 -1
- package/esm/avatar/type.d.ts +6 -0
- package/esm/carousel/index.js +18 -1
- package/esm/steps/index.d.ts +1 -1
- package/esm/steps/index.js +7 -2
- package/esm/steps/style/css/index.css +42 -4
- package/esm/steps/style/index.less +58 -6
- package/esm/steps/type.d.ts +5 -0
- package/esnext/_helpers/hooks.d.ts +290 -0
- package/esnext/_helpers/hooks.js +660 -0
- package/esnext/_helpers/index.d.ts +93 -0
- package/esnext/_helpers/index.js +110 -0
- package/esnext/_helpers/react-dom.d.ts +13 -0
- package/esnext/_helpers/react-dom.js +51 -0
- package/esnext/_helpers/render.d.ts +17 -0
- package/esnext/_helpers/render.js +38 -0
- package/esnext/_helpers/type.d.ts +30 -0
- package/esnext/_helpers/type.js +1 -0
- package/esnext/action-sheet/index.d.ts +106 -0
- package/esnext/action-sheet/index.js +53 -0
- package/esnext/action-sheet/methods.d.ts +10 -0
- package/esnext/action-sheet/methods.js +4 -0
- package/esnext/action-sheet/style/css/index.css +741 -0
- package/esnext/action-sheet/style/css/index.d.ts +3 -0
- package/esnext/action-sheet/style/css/index.js +3 -0
- package/esnext/action-sheet/style/index.d.ts +3 -0
- package/esnext/action-sheet/style/index.js +3 -0
- package/esnext/action-sheet/style/index.less +119 -0
- package/esnext/avatar/group.d.ts +9 -0
- package/esnext/avatar/group.js +35 -0
- package/esnext/avatar/index.d.ts +17 -0
- package/esnext/avatar/index.js +87 -0
- package/esnext/avatar/style/css/index.css +792 -0
- package/esnext/avatar/style/css/index.d.ts +3 -0
- package/esnext/avatar/style/css/index.js +3 -0
- package/esnext/avatar/style/index.d.ts +3 -0
- package/esnext/avatar/style/index.js +3 -0
- package/esnext/avatar/style/index.less +201 -0
- package/esnext/avatar/type.d.ts +132 -0
- package/esnext/avatar/type.js +1 -0
- package/esnext/badge/index.d.ts +80 -0
- package/esnext/badge/index.js +29 -0
- package/esnext/badge/style/css/index.css +640 -0
- package/esnext/badge/style/css/index.d.ts +2 -0
- package/esnext/badge/style/css/index.js +2 -0
- package/esnext/badge/style/index.d.ts +2 -0
- package/esnext/badge/style/index.js +2 -0
- package/esnext/badge/style/index.less +109 -0
- package/esnext/button/hooks.d.ts +8 -0
- package/esnext/button/hooks.js +45 -0
- package/esnext/button/index.d.ts +141 -0
- package/esnext/button/index.js +61 -0
- package/esnext/button/style/css/index.css +816 -0
- package/esnext/button/style/css/index.d.ts +3 -0
- package/esnext/button/style/css/index.js +3 -0
- package/esnext/button/style/index.d.ts +3 -0
- package/esnext/button/style/index.js +3 -0
- package/esnext/button/style/index.less +242 -0
- package/esnext/carousel/index.d.ts +383 -0
- package/esnext/carousel/index.js +849 -0
- package/esnext/carousel/style/css/index.css +748 -0
- package/esnext/carousel/style/css/index.d.ts +2 -0
- package/esnext/carousel/style/css/index.js +2 -0
- package/esnext/carousel/style/index.d.ts +2 -0
- package/esnext/carousel/style/index.js +2 -0
- package/esnext/carousel/style/index.less +263 -0
- package/esnext/cell/arrow.d.ts +2 -0
- package/esnext/cell/arrow.js +5 -0
- package/esnext/cell/cell.d.ts +3 -0
- package/esnext/cell/cell.js +24 -0
- package/esnext/cell/group.d.ts +7 -0
- package/esnext/cell/group.js +26 -0
- package/esnext/cell/index.d.ts +14 -0
- package/esnext/cell/index.js +16 -0
- package/esnext/cell/style/css/index.css +1008 -0
- package/esnext/cell/style/css/index.d.ts +2 -0
- package/esnext/cell/style/css/index.js +2 -0
- package/esnext/cell/style/index.d.ts +2 -0
- package/esnext/cell/style/index.js +2 -0
- package/esnext/cell/style/index.less +214 -0
- package/esnext/cell/type.d.ts +125 -0
- package/esnext/cell/type.js +1 -0
- package/esnext/checkbox/checkbox.d.ts +3 -0
- package/esnext/checkbox/checkbox.js +106 -0
- package/esnext/checkbox/group.d.ts +4 -0
- package/esnext/checkbox/group.js +54 -0
- package/esnext/checkbox/hooks/index.d.ts +1 -0
- package/esnext/checkbox/hooks/index.js +1 -0
- package/esnext/checkbox/hooks/useMergeProps.d.ts +3 -0
- package/esnext/checkbox/hooks/useMergeProps.js +20 -0
- package/esnext/checkbox/index.d.ts +19 -0
- package/esnext/checkbox/index.js +22 -0
- package/esnext/checkbox/style/css/index.css +613 -0
- package/esnext/checkbox/style/css/index.d.ts +2 -0
- package/esnext/checkbox/style/css/index.js +2 -0
- package/esnext/checkbox/style/index.d.ts +2 -0
- package/esnext/checkbox/style/index.js +2 -0
- package/esnext/checkbox/style/index.less +119 -0
- package/esnext/checkbox/type.d.ts +162 -0
- package/esnext/checkbox/type.js +27 -0
- package/esnext/circle-progress/index.d.ts +141 -0
- package/esnext/circle-progress/index.js +75 -0
- package/esnext/circle-progress/style/css/index.css +582 -0
- package/esnext/circle-progress/style/css/index.d.ts +2 -0
- package/esnext/circle-progress/style/css/index.js +2 -0
- package/esnext/circle-progress/style/index.d.ts +2 -0
- package/esnext/circle-progress/style/index.js +2 -0
- package/esnext/circle-progress/style/index.less +101 -0
- package/esnext/collapse/collapse.d.ts +3 -0
- package/esnext/collapse/collapse.js +111 -0
- package/esnext/collapse/group.d.ts +21 -0
- package/esnext/collapse/group.js +80 -0
- package/esnext/collapse/index.d.ts +23 -0
- package/esnext/collapse/index.js +14 -0
- package/esnext/collapse/style/css/index.css +662 -0
- package/esnext/collapse/style/css/index.d.ts +2 -0
- package/esnext/collapse/style/css/index.js +2 -0
- package/esnext/collapse/style/index.d.ts +2 -0
- package/esnext/collapse/style/index.js +2 -0
- package/esnext/collapse/style/index.less +106 -0
- package/esnext/collapse/type.d.ts +139 -0
- package/esnext/collapse/type.js +1 -0
- package/esnext/collapse/utils.d.ts +8 -0
- package/esnext/collapse/utils.js +16 -0
- package/esnext/context-provider/index.d.ts +74 -0
- package/esnext/context-provider/index.js +99 -0
- package/esnext/context-provider/style/css/index.css +0 -0
- package/esnext/context-provider/style/css/index.d.ts +2 -0
- package/esnext/context-provider/style/css/index.js +2 -0
- package/esnext/context-provider/style/index.d.ts +2 -0
- package/esnext/context-provider/style/index.js +2 -0
- package/esnext/context-provider/style/index.less +1 -0
- package/esnext/count-down/hooks.d.ts +10 -0
- package/esnext/count-down/hooks.js +107 -0
- package/esnext/count-down/index.d.ts +13 -0
- package/esnext/count-down/index.js +37 -0
- package/esnext/count-down/singleton.d.ts +15 -0
- package/esnext/count-down/singleton.js +52 -0
- package/esnext/count-down/style/css/index.css +534 -0
- package/esnext/count-down/style/css/index.d.ts +2 -0
- package/esnext/count-down/style/css/index.js +2 -0
- package/esnext/count-down/style/index.d.ts +2 -0
- package/esnext/count-down/style/index.js +2 -0
- package/esnext/count-down/style/index.less +37 -0
- package/esnext/count-down/type.d.ts +112 -0
- package/esnext/count-down/type.js +1 -0
- package/esnext/count-down/util.d.ts +8 -0
- package/esnext/count-down/util.js +106 -0
- package/esnext/date-picker/helper.d.ts +5 -0
- package/esnext/date-picker/helper.js +38 -0
- package/esnext/date-picker/index.d.ts +24 -0
- package/esnext/date-picker/index.js +217 -0
- package/esnext/date-picker/style/css/index.css +526 -0
- package/esnext/date-picker/style/css/index.d.ts +3 -0
- package/esnext/date-picker/style/css/index.js +3 -0
- package/esnext/date-picker/style/index.d.ts +3 -0
- package/esnext/date-picker/style/index.js +3 -0
- package/esnext/date-picker/style/index.less +30 -0
- package/esnext/date-picker/type.d.ts +114 -0
- package/esnext/date-picker/type.js +1 -0
- package/esnext/dialog/index.d.ts +213 -0
- package/esnext/dialog/index.js +87 -0
- package/esnext/dialog/methods.d.ts +20 -0
- package/esnext/dialog/methods.js +42 -0
- package/esnext/dialog/style/css/index.css +1111 -0
- package/esnext/dialog/style/css/index.d.ts +3 -0
- package/esnext/dialog/style/css/index.js +3 -0
- package/esnext/dialog/style/index.d.ts +3 -0
- package/esnext/dialog/style/index.js +3 -0
- package/esnext/dialog/style/index.less +376 -0
- package/esnext/divider/index.d.ts +49 -0
- package/esnext/divider/index.js +32 -0
- package/esnext/divider/style/css/index.css +609 -0
- package/esnext/divider/style/css/index.d.ts +2 -0
- package/esnext/divider/style/css/index.js +2 -0
- package/esnext/divider/style/index.d.ts +2 -0
- package/esnext/divider/style/index.js +2 -0
- package/esnext/divider/style/index.less +101 -0
- package/esnext/dropdown/dropdown.d.ts +3 -0
- package/esnext/dropdown/dropdown.js +196 -0
- package/esnext/dropdown/index.d.ts +14 -0
- package/esnext/dropdown/index.js +16 -0
- package/esnext/dropdown/options.d.ts +4 -0
- package/esnext/dropdown/options.js +61 -0
- package/esnext/dropdown/style/css/index.css +653 -0
- package/esnext/dropdown/style/css/index.d.ts +2 -0
- package/esnext/dropdown/style/css/index.js +2 -0
- package/esnext/dropdown/style/index.d.ts +2 -0
- package/esnext/dropdown/style/index.js +2 -0
- package/esnext/dropdown/style/index.less +177 -0
- package/esnext/dropdown/type.d.ts +269 -0
- package/esnext/dropdown/type.js +1 -0
- package/esnext/dropdown-menu/dropdown-menu.d.ts +4 -0
- package/esnext/dropdown-menu/dropdown-menu.js +161 -0
- package/esnext/dropdown-menu/helper.d.ts +34 -0
- package/esnext/dropdown-menu/helper.js +88 -0
- package/esnext/dropdown-menu/index.d.ts +12 -0
- package/esnext/dropdown-menu/index.js +13 -0
- package/esnext/dropdown-menu/style/css/index.css +705 -0
- package/esnext/dropdown-menu/style/css/index.d.ts +3 -0
- package/esnext/dropdown-menu/style/css/index.js +3 -0
- package/esnext/dropdown-menu/style/index.d.ts +3 -0
- package/esnext/dropdown-menu/style/index.js +3 -0
- package/esnext/dropdown-menu/style/index.less +122 -0
- package/esnext/dropdown-menu/type.d.ts +168 -0
- package/esnext/dropdown-menu/type.js +1 -0
- package/esnext/ellipsis/components/js-ellipsis.d.ts +6 -0
- package/esnext/ellipsis/components/js-ellipsis.js +178 -0
- package/esnext/ellipsis/components/native-ellipsis.d.ts +5 -0
- package/esnext/ellipsis/components/native-ellipsis.js +15 -0
- package/esnext/ellipsis/index.d.ts +13 -0
- package/esnext/ellipsis/index.js +31 -0
- package/esnext/ellipsis/style/css/index.css +556 -0
- package/esnext/ellipsis/style/css/index.d.ts +2 -0
- package/esnext/ellipsis/style/css/index.js +2 -0
- package/esnext/ellipsis/style/index.d.ts +2 -0
- package/esnext/ellipsis/style/index.js +2 -0
- package/esnext/ellipsis/style/index.less +63 -0
- package/esnext/ellipsis/type.d.ts +107 -0
- package/esnext/ellipsis/type.js +1 -0
- package/esnext/ellipsis/utils/dom.d.ts +2 -0
- package/esnext/ellipsis/utils/dom.js +35 -0
- package/esnext/ellipsis/utils/is.d.ts +3 -0
- package/esnext/ellipsis/utils/is.js +3 -0
- package/esnext/form/form-item-context.d.ts +3 -0
- package/esnext/form/form-item-context.js +6 -0
- package/esnext/form/form-item.d.ts +4 -0
- package/esnext/form/form-item.js +218 -0
- package/esnext/form/index.d.ts +16 -0
- package/esnext/form/index.js +50 -0
- package/esnext/form/linked-container.d.ts +8 -0
- package/esnext/form/linked-container.js +29 -0
- package/esnext/form/style/css/index.css +670 -0
- package/esnext/form/style/css/index.d.ts +2 -0
- package/esnext/form/style/css/index.js +2 -0
- package/esnext/form/style/index.d.ts +2 -0
- package/esnext/form/style/index.js +2 -0
- package/esnext/form/style/index.less +172 -0
- package/esnext/form/type.d.ts +373 -0
- package/esnext/form/type.js +26 -0
- package/esnext/form/useForm.d.ts +18 -0
- package/esnext/form/useForm.js +203 -0
- package/esnext/form/utils.d.ts +7 -0
- package/esnext/form/utils.js +21 -0
- package/esnext/grid/index.d.ts +112 -0
- package/esnext/grid/index.js +79 -0
- package/esnext/grid/style/css/index.css +661 -0
- package/esnext/grid/style/css/index.d.ts +2 -0
- package/esnext/grid/style/css/index.js +2 -0
- package/esnext/grid/style/index.d.ts +2 -0
- package/esnext/grid/style/index.js +2 -0
- package/esnext/grid/style/index.less +157 -0
- package/esnext/icon/IconAdd/index.d.ts +7 -0
- package/esnext/icon/IconAdd/index.js +7 -0
- package/esnext/icon/IconArrowBack/index.d.ts +7 -0
- package/esnext/icon/IconArrowBack/index.js +7 -0
- package/esnext/icon/IconArrowDown/index.d.ts +7 -0
- package/esnext/icon/IconArrowDown/index.js +7 -0
- package/esnext/icon/IconArrowIn/index.d.ts +7 -0
- package/esnext/icon/IconArrowIn/index.js +7 -0
- package/esnext/icon/IconArrowUp/index.d.ts +7 -0
- package/esnext/icon/IconArrowUp/index.js +7 -0
- package/esnext/icon/IconCheck/index.d.ts +7 -0
- package/esnext/icon/IconCheck/index.js +7 -0
- package/esnext/icon/IconCheckBold/index.d.ts +7 -0
- package/esnext/icon/IconCheckBold/index.js +8 -0
- package/esnext/icon/IconCircleChecked/index.d.ts +7 -0
- package/esnext/icon/IconCircleChecked/index.js +7 -0
- package/esnext/icon/IconCircleDisabled/index.d.ts +7 -0
- package/esnext/icon/IconCircleDisabled/index.js +7 -0
- package/esnext/icon/IconCircleUnchecked/index.d.ts +7 -0
- package/esnext/icon/IconCircleUnchecked/index.js +7 -0
- package/esnext/icon/IconClear/index.d.ts +7 -0
- package/esnext/icon/IconClear/index.js +7 -0
- package/esnext/icon/IconClose/index.d.ts +7 -0
- package/esnext/icon/IconClose/index.js +7 -0
- package/esnext/icon/IconCloseBold/index.d.ts +7 -0
- package/esnext/icon/IconCloseBold/index.js +8 -0
- package/esnext/icon/IconDelete/index.d.ts +7 -0
- package/esnext/icon/IconDelete/index.js +7 -0
- package/esnext/icon/IconDownload/index.d.ts +7 -0
- package/esnext/icon/IconDownload/index.js +7 -0
- package/esnext/icon/IconEdit/index.d.ts +7 -0
- package/esnext/icon/IconEdit/index.js +7 -0
- package/esnext/icon/IconErrorCircle/index.d.ts +7 -0
- package/esnext/icon/IconErrorCircle/index.js +8 -0
- package/esnext/icon/IconEyeInvisible/index.d.ts +7 -0
- package/esnext/icon/IconEyeInvisible/index.js +7 -0
- package/esnext/icon/IconEyeVisible/index.d.ts +7 -0
- package/esnext/icon/IconEyeVisible/index.js +7 -0
- package/esnext/icon/IconEyelashInvisible/index.d.ts +7 -0
- package/esnext/icon/IconEyelashInvisible/index.js +7 -0
- package/esnext/icon/IconFile/index.d.ts +7 -0
- package/esnext/icon/IconFile/index.js +7 -0
- package/esnext/icon/IconGift/index.d.ts +7 -0
- package/esnext/icon/IconGift/index.js +8 -0
- package/esnext/icon/IconHeart/index.d.ts +7 -0
- package/esnext/icon/IconHeart/index.js +8 -0
- package/esnext/icon/IconHome/index.d.ts +7 -0
- package/esnext/icon/IconHome/index.js +7 -0
- package/esnext/icon/IconKeyboard/index.d.ts +7 -0
- package/esnext/icon/IconKeyboard/index.js +8 -0
- package/esnext/icon/IconKeyboardDelete/index.d.ts +7 -0
- package/esnext/icon/IconKeyboardDelete/index.js +8 -0
- package/esnext/icon/IconLikeCircle/index.d.ts +7 -0
- package/esnext/icon/IconLikeCircle/index.js +7 -0
- package/esnext/icon/IconMinus/index.d.ts +7 -0
- package/esnext/icon/IconMinus/index.js +8 -0
- package/esnext/icon/IconMore/index.d.ts +7 -0
- package/esnext/icon/IconMore/index.js +7 -0
- package/esnext/icon/IconNotice/index.d.ts +7 -0
- package/esnext/icon/IconNotice/index.js +8 -0
- package/esnext/icon/IconNoticeOff/index.d.ts +7 -0
- package/esnext/icon/IconNoticeOff/index.js +8 -0
- package/esnext/icon/IconPicture/index.d.ts +7 -0
- package/esnext/icon/IconPicture/index.js +7 -0
- package/esnext/icon/IconPlay/index.d.ts +7 -0
- package/esnext/icon/IconPlay/index.js +8 -0
- package/esnext/icon/IconQuestionCircle/index.d.ts +7 -0
- package/esnext/icon/IconQuestionCircle/index.js +7 -0
- package/esnext/icon/IconRefresh/index.d.ts +7 -0
- package/esnext/icon/IconRefresh/index.js +7 -0
- package/esnext/icon/IconSad/index.d.ts +7 -0
- package/esnext/icon/IconSad/index.js +7 -0
- package/esnext/icon/IconScan/index.d.ts +7 -0
- package/esnext/icon/IconScan/index.js +7 -0
- package/esnext/icon/IconSearch/index.d.ts +7 -0
- package/esnext/icon/IconSearch/index.js +7 -0
- package/esnext/icon/IconSetting/index.d.ts +7 -0
- package/esnext/icon/IconSetting/index.js +8 -0
- package/esnext/icon/IconShop/index.d.ts +7 -0
- package/esnext/icon/IconShop/index.js +8 -0
- package/esnext/icon/IconShopping/index.d.ts +7 -0
- package/esnext/icon/IconShopping/index.js +8 -0
- package/esnext/icon/IconSmileFill/index.d.ts +7 -0
- package/esnext/icon/IconSmileFill/index.js +7 -0
- package/esnext/icon/IconSound/index.d.ts +7 -0
- package/esnext/icon/IconSound/index.js +8 -0
- package/esnext/icon/IconSquareChecked/index.d.ts +7 -0
- package/esnext/icon/IconSquareChecked/index.js +7 -0
- package/esnext/icon/IconSquareDisabled/index.d.ts +7 -0
- package/esnext/icon/IconSquareDisabled/index.js +7 -0
- package/esnext/icon/IconSquareUnchecked/index.d.ts +7 -0
- package/esnext/icon/IconSquareUnchecked/index.js +7 -0
- package/esnext/icon/IconStar/index.d.ts +7 -0
- package/esnext/icon/IconStar/index.js +7 -0
- package/esnext/icon/IconStarFill/index.d.ts +7 -0
- package/esnext/icon/IconStarFill/index.js +8 -0
- package/esnext/icon/IconStarHalf/index.d.ts +7 -0
- package/esnext/icon/IconStarHalf/index.js +7 -0
- package/esnext/icon/IconSubway/index.d.ts +7 -0
- package/esnext/icon/IconSubway/index.js +8 -0
- package/esnext/icon/IconSuccessCircle/index.d.ts +7 -0
- package/esnext/icon/IconSuccessCircle/index.js +8 -0
- package/esnext/icon/IconTriDown/index.d.ts +7 -0
- package/esnext/icon/IconTriDown/index.js +8 -0
- package/esnext/icon/IconTriUp/index.d.ts +7 -0
- package/esnext/icon/IconTriUp/index.js +8 -0
- package/esnext/icon/IconUpload/index.d.ts +7 -0
- package/esnext/icon/IconUpload/index.js +7 -0
- package/esnext/icon/IconUser/index.d.ts +7 -0
- package/esnext/icon/IconUser/index.js +7 -0
- package/esnext/icon/IconUserFill/index.d.ts +7 -0
- package/esnext/icon/IconUserFill/index.js +7 -0
- package/esnext/icon/IconWarnCircle/index.d.ts +7 -0
- package/esnext/icon/IconWarnCircle/index.js +8 -0
- package/esnext/icon/IconWarnCircleFill/index.d.ts +7 -0
- package/esnext/icon/IconWarnCircleFill/index.js +8 -0
- package/esnext/icon/index.d.ts +59 -0
- package/esnext/icon/index.js +59 -0
- package/esnext/icon/type.d.ts +10 -0
- package/esnext/icon/type.js +1 -0
- package/esnext/image/index.d.ts +186 -0
- package/esnext/image/index.js +223 -0
- package/esnext/image/style/css/index.css +734 -0
- package/esnext/image/style/css/index.d.ts +3 -0
- package/esnext/image/style/css/index.js +3 -0
- package/esnext/image/style/index.d.ts +3 -0
- package/esnext/image/style/index.js +3 -0
- package/esnext/image/style/index.less +198 -0
- package/esnext/image-picker/add-icon.d.ts +2 -0
- package/esnext/image-picker/add-icon.js +5 -0
- package/esnext/image-picker/index.d.ts +16 -0
- package/esnext/image-picker/index.js +77 -0
- package/esnext/image-picker/style/css/index.css +688 -0
- package/esnext/image-picker/style/css/index.d.ts +4 -0
- package/esnext/image-picker/style/css/index.js +4 -0
- package/esnext/image-picker/style/index.d.ts +4 -0
- package/esnext/image-picker/style/index.js +4 -0
- package/esnext/image-picker/style/index.less +170 -0
- package/esnext/image-picker/type.d.ts +115 -0
- package/esnext/image-picker/type.js +1 -0
- package/esnext/image-preview/index.d.ts +296 -0
- package/esnext/image-preview/index.js +794 -0
- package/esnext/image-preview/methods.d.ts +13 -0
- package/esnext/image-preview/methods.js +46 -0
- package/esnext/image-preview/style/css/index.css +664 -0
- package/esnext/image-preview/style/css/index.d.ts +5 -0
- package/esnext/image-preview/style/css/index.js +5 -0
- package/esnext/image-preview/style/index.d.ts +5 -0
- package/esnext/image-preview/style/index.js +5 -0
- package/esnext/image-preview/style/index.less +140 -0
- package/esnext/index-bar/context.d.ts +3 -0
- package/esnext/index-bar/context.js +6 -0
- package/esnext/index-bar/group.d.ts +3 -0
- package/esnext/index-bar/group.js +33 -0
- package/esnext/index-bar/index.d.ts +15 -0
- package/esnext/index-bar/index.js +151 -0
- package/esnext/index-bar/side-bar.d.ts +3 -0
- package/esnext/index-bar/side-bar.js +44 -0
- package/esnext/index-bar/style/css/index.css +767 -0
- package/esnext/index-bar/style/css/index.d.ts +3 -0
- package/esnext/index-bar/style/css/index.js +3 -0
- package/esnext/index-bar/style/index.d.ts +3 -0
- package/esnext/index-bar/style/index.js +3 -0
- package/esnext/index-bar/style/index.less +189 -0
- package/esnext/index-bar/type.d.ts +195 -0
- package/esnext/index-bar/type.js +1 -0
- package/esnext/index-bar/utils.d.ts +6 -0
- package/esnext/index-bar/utils.js +44 -0
- package/esnext/index.d.ts +59 -0
- package/esnext/index.js +59 -0
- package/esnext/input/hooks.d.ts +14 -0
- package/esnext/input/hooks.js +174 -0
- package/esnext/input/index.d.ts +60 -0
- package/esnext/input/index.js +28 -0
- package/esnext/input/props.d.ts +182 -0
- package/esnext/input/props.js +1 -0
- package/esnext/input/style/css/index.css +759 -0
- package/esnext/input/style/css/index.d.ts +2 -0
- package/esnext/input/style/css/index.js +2 -0
- package/esnext/input/style/index.d.ts +2 -0
- package/esnext/input/style/index.js +2 -0
- package/esnext/input/style/index.less +195 -0
- package/esnext/keyboard/index.d.ts +13 -0
- package/esnext/keyboard/index.js +159 -0
- package/esnext/keyboard/style/css/index.css +633 -0
- package/esnext/keyboard/style/css/index.d.ts +3 -0
- package/esnext/keyboard/style/css/index.js +3 -0
- package/esnext/keyboard/style/index.d.ts +3 -0
- package/esnext/keyboard/style/index.js +3 -0
- package/esnext/keyboard/style/index.less +131 -0
- package/esnext/keyboard/type.d.ts +102 -0
- package/esnext/keyboard/type.js +1 -0
- package/esnext/load-more/index.d.ts +158 -0
- package/esnext/load-more/index.js +150 -0
- package/esnext/load-more/style/css/index.css +534 -0
- package/esnext/load-more/style/css/index.d.ts +2 -0
- package/esnext/load-more/style/css/index.js +2 -0
- package/esnext/load-more/style/index.d.ts +2 -0
- package/esnext/load-more/style/index.js +2 -0
- package/esnext/load-more/style/index.less +37 -0
- package/esnext/loading/index.d.ts +76 -0
- package/esnext/loading/index.js +123 -0
- package/esnext/loading/style/css/index.css +648 -0
- package/esnext/loading/style/css/index.d.ts +2 -0
- package/esnext/loading/style/css/index.js +2 -0
- package/esnext/loading/style/index.d.ts +2 -0
- package/esnext/loading/style/index.js +2 -0
- package/esnext/loading/style/index.less +147 -0
- package/esnext/masking/index.d.ts +225 -0
- package/esnext/masking/index.js +114 -0
- package/esnext/masking/methods.d.ts +23 -0
- package/esnext/masking/methods.js +56 -0
- package/esnext/masking/style/css/index.css +552 -0
- package/esnext/masking/style/css/index.d.ts +3 -0
- package/esnext/masking/style/css/index.js +3 -0
- package/esnext/masking/style/index.d.ts +3 -0
- package/esnext/masking/style/index.js +3 -0
- package/esnext/masking/style/index.less +55 -0
- package/esnext/nav-bar/back-icon.d.ts +5 -0
- package/esnext/nav-bar/back-icon.js +9 -0
- package/esnext/nav-bar/index.d.ts +135 -0
- package/esnext/nav-bar/index.js +96 -0
- package/esnext/nav-bar/style/css/index.css +706 -0
- package/esnext/nav-bar/style/css/index.d.ts +2 -0
- package/esnext/nav-bar/style/css/index.js +2 -0
- package/esnext/nav-bar/style/index.d.ts +2 -0
- package/esnext/nav-bar/style/index.js +2 -0
- package/esnext/nav-bar/style/index.less +150 -0
- package/esnext/notice-bar/index.d.ts +107 -0
- package/esnext/notice-bar/index.js +126 -0
- package/esnext/notice-bar/style/css/index.css +685 -0
- package/esnext/notice-bar/style/css/index.d.ts +2 -0
- package/esnext/notice-bar/style/css/index.js +2 -0
- package/esnext/notice-bar/style/index.d.ts +2 -0
- package/esnext/notice-bar/style/index.js +2 -0
- package/esnext/notice-bar/style/index.less +160 -0
- package/esnext/notify/index.d.ts +97 -0
- package/esnext/notify/index.js +123 -0
- package/esnext/notify/methods.d.ts +14 -0
- package/esnext/notify/methods.js +63 -0
- package/esnext/notify/style/css/index.css +591 -0
- package/esnext/notify/style/css/index.d.ts +2 -0
- package/esnext/notify/style/css/index.js +2 -0
- package/esnext/notify/style/index.d.ts +2 -0
- package/esnext/notify/style/index.js +2 -0
- package/esnext/notify/style/index.less +90 -0
- package/esnext/notify/type.d.ts +70 -0
- package/esnext/notify/type.js +1 -0
- package/esnext/pagination/arrow.d.ts +2 -0
- package/esnext/pagination/arrow.js +5 -0
- package/esnext/pagination/index.d.ts +124 -0
- package/esnext/pagination/index.js +104 -0
- package/esnext/pagination/style/css/index.css +708 -0
- package/esnext/pagination/style/css/index.d.ts +2 -0
- package/esnext/pagination/style/css/index.js +2 -0
- package/esnext/pagination/style/index.d.ts +2 -0
- package/esnext/pagination/style/index.js +2 -0
- package/esnext/pagination/style/index.less +176 -0
- package/esnext/picker/index.d.ts +50 -0
- package/esnext/picker/index.js +93 -0
- package/esnext/picker/style/css/index.css +592 -0
- package/esnext/picker/style/css/index.d.ts +4 -0
- package/esnext/picker/style/css/index.js +4 -0
- package/esnext/picker/style/index.d.ts +4 -0
- package/esnext/picker/style/index.js +4 -0
- package/esnext/picker/style/index.less +95 -0
- package/esnext/picker/type.d.ts +131 -0
- package/esnext/picker/type.js +1 -0
- package/esnext/picker-view/components/cascader.d.ts +25 -0
- package/esnext/picker-view/components/cascader.js +54 -0
- package/esnext/picker-view/components/multi-picker.d.ts +11 -0
- package/esnext/picker-view/components/multi-picker.js +32 -0
- package/esnext/picker-view/components/picker-cell.d.ts +28 -0
- package/esnext/picker-view/components/picker-cell.js +284 -0
- package/esnext/picker-view/index.d.ts +62 -0
- package/esnext/picker-view/index.js +135 -0
- package/esnext/picker-view/style/css/index.css +750 -0
- package/esnext/picker-view/style/css/index.d.ts +2 -0
- package/esnext/picker-view/style/css/index.js +2 -0
- package/esnext/picker-view/style/index.d.ts +2 -0
- package/esnext/picker-view/style/index.js +2 -0
- package/esnext/picker-view/style/index.less +125 -0
- package/esnext/picker-view/type.d.ts +89 -0
- package/esnext/picker-view/type.js +1 -0
- package/esnext/popover/hooks/index.d.ts +2 -0
- package/esnext/popover/hooks/index.js +2 -0
- package/esnext/popover/hooks/useEvent.d.ts +8 -0
- package/esnext/popover/hooks/useEvent.js +148 -0
- package/esnext/popover/hooks/usePosition.d.ts +18 -0
- package/esnext/popover/hooks/usePosition.js +419 -0
- package/esnext/popover/index.d.ts +14 -0
- package/esnext/popover/index.js +20 -0
- package/esnext/popover/menu.d.ts +3 -0
- package/esnext/popover/menu.js +80 -0
- package/esnext/popover/popover-inner.d.ts +3 -0
- package/esnext/popover/popover-inner.js +79 -0
- package/esnext/popover/popover.d.ts +3 -0
- package/esnext/popover/popover.js +132 -0
- package/esnext/popover/style/css/index.css +993 -0
- package/esnext/popover/style/css/index.d.ts +3 -0
- package/esnext/popover/style/css/index.js +3 -0
- package/esnext/popover/style/css/menu.css +673 -0
- package/esnext/popover/style/index.d.ts +3 -0
- package/esnext/popover/style/index.js +3 -0
- package/esnext/popover/style/index.less +353 -0
- package/esnext/popover/style/menu.less +163 -0
- package/esnext/popover/type.d.ts +447 -0
- package/esnext/popover/type.js +1 -0
- package/esnext/popup/index.d.ts +86 -0
- package/esnext/popup/index.js +39 -0
- package/esnext/popup/methods.d.ts +10 -0
- package/esnext/popup/methods.js +4 -0
- package/esnext/popup/style/css/index.css +638 -0
- package/esnext/popup/style/css/index.d.ts +3 -0
- package/esnext/popup/style/css/index.js +3 -0
- package/esnext/popup/style/index.d.ts +3 -0
- package/esnext/popup/style/index.js +3 -0
- package/esnext/popup/style/index.less +114 -0
- package/esnext/popup-swiper/index.d.ts +93 -0
- package/esnext/popup-swiper/index.js +192 -0
- package/esnext/popup-swiper/methods.d.ts +10 -0
- package/esnext/popup-swiper/methods.js +4 -0
- package/esnext/popup-swiper/style/css/index.css +531 -0
- package/esnext/popup-swiper/style/css/index.d.ts +3 -0
- package/esnext/popup-swiper/style/css/index.js +3 -0
- package/esnext/popup-swiper/style/index.d.ts +3 -0
- package/esnext/popup-swiper/style/index.js +3 -0
- package/esnext/popup-swiper/style/index.less +35 -0
- package/esnext/portal/index.d.ts +23 -0
- package/esnext/portal/index.js +18 -0
- package/esnext/portal/style/css/index.css +0 -0
- package/esnext/portal/style/css/index.d.ts +2 -0
- package/esnext/portal/style/css/index.js +2 -0
- package/esnext/portal/style/index.d.ts +2 -0
- package/esnext/portal/style/index.js +2 -0
- package/esnext/portal/style/index.less +1 -0
- package/esnext/progress/index.d.ts +126 -0
- package/esnext/progress/index.js +66 -0
- package/esnext/progress/style/css/index.css +692 -0
- package/esnext/progress/style/css/index.d.ts +2 -0
- package/esnext/progress/style/css/index.js +2 -0
- package/esnext/progress/style/index.d.ts +2 -0
- package/esnext/progress/style/index.js +2 -0
- package/esnext/progress/style/index.less +205 -0
- package/esnext/pull-refresh/android-pull-refresh.d.ts +3 -0
- package/esnext/pull-refresh/android-pull-refresh.js +168 -0
- package/esnext/pull-refresh/hooks.d.ts +30 -0
- package/esnext/pull-refresh/hooks.js +73 -0
- package/esnext/pull-refresh/index.d.ts +28 -0
- package/esnext/pull-refresh/index.js +21 -0
- package/esnext/pull-refresh/ios-pull-refresh.d.ts +3 -0
- package/esnext/pull-refresh/ios-pull-refresh.js +137 -0
- package/esnext/pull-refresh/model.d.ts +111 -0
- package/esnext/pull-refresh/model.js +8 -0
- package/esnext/pull-refresh/style/css/index.css +650 -0
- package/esnext/pull-refresh/style/css/index.d.ts +3 -0
- package/esnext/pull-refresh/style/css/index.js +3 -0
- package/esnext/pull-refresh/style/index.d.ts +3 -0
- package/esnext/pull-refresh/style/index.js +3 -0
- package/esnext/pull-refresh/style/index.less +131 -0
- package/esnext/radio/group.d.ts +5 -0
- package/esnext/radio/group.js +50 -0
- package/esnext/radio/index.d.ts +19 -0
- package/esnext/radio/index.js +22 -0
- package/esnext/radio/radio.d.ts +5 -0
- package/esnext/radio/radio.js +13 -0
- package/esnext/radio/style/css/index.css +604 -0
- package/esnext/radio/style/css/index.d.ts +2 -0
- package/esnext/radio/style/css/index.js +2 -0
- package/esnext/radio/style/index.d.ts +2 -0
- package/esnext/radio/style/index.js +2 -0
- package/esnext/radio/style/index.less +114 -0
- package/esnext/radio/type.d.ts +31 -0
- package/esnext/radio/type.js +1 -0
- package/esnext/rate/index.d.ts +109 -0
- package/esnext/rate/index.js +87 -0
- package/esnext/rate/style/css/index.css +595 -0
- package/esnext/rate/style/css/index.d.ts +2 -0
- package/esnext/rate/style/css/index.js +2 -0
- package/esnext/rate/style/index.d.ts +2 -0
- package/esnext/rate/style/index.js +2 -0
- package/esnext/rate/style/index.less +106 -0
- package/esnext/search-bar/association.d.ts +3 -0
- package/esnext/search-bar/association.js +51 -0
- package/esnext/search-bar/cancel-button.d.ts +10 -0
- package/esnext/search-bar/cancel-button.js +18 -0
- package/esnext/search-bar/highlight.d.ts +12 -0
- package/esnext/search-bar/highlight.js +46 -0
- package/esnext/search-bar/index.d.ts +13 -0
- package/esnext/search-bar/index.js +109 -0
- package/esnext/search-bar/style/css/index.css +765 -0
- package/esnext/search-bar/style/css/index.d.ts +2 -0
- package/esnext/search-bar/style/css/index.js +2 -0
- package/esnext/search-bar/style/index.d.ts +2 -0
- package/esnext/search-bar/style/index.js +2 -0
- package/esnext/search-bar/style/index.less +198 -0
- package/esnext/search-bar/type.d.ts +163 -0
- package/esnext/search-bar/type.js +1 -0
- package/esnext/show-monitor/index.d.ts +115 -0
- package/esnext/show-monitor/index.js +416 -0
- package/esnext/show-monitor/style/css/index.css +0 -0
- package/esnext/show-monitor/style/css/index.d.ts +2 -0
- package/esnext/show-monitor/style/css/index.js +2 -0
- package/esnext/show-monitor/style/index.d.ts +2 -0
- package/esnext/show-monitor/style/index.js +2 -0
- package/esnext/show-monitor/style/index.less +1 -0
- package/esnext/skeleton/elements.d.ts +7 -0
- package/esnext/skeleton/elements.js +117 -0
- package/esnext/skeleton/index.d.ts +19 -0
- package/esnext/skeleton/index.js +50 -0
- package/esnext/skeleton/skeleton-context.d.ts +3 -0
- package/esnext/skeleton/skeleton-context.js +5 -0
- package/esnext/skeleton/style/css/index.css +712 -0
- package/esnext/skeleton/style/css/index.d.ts +3 -0
- package/esnext/skeleton/style/css/index.js +3 -0
- package/esnext/skeleton/style/index.d.ts +3 -0
- package/esnext/skeleton/style/index.js +3 -0
- package/esnext/skeleton/style/index.less +182 -0
- package/esnext/skeleton/type.d.ts +105 -0
- package/esnext/skeleton/type.js +1 -0
- package/esnext/slider/hooks/index.d.ts +12 -0
- package/esnext/slider/hooks/index.js +33 -0
- package/esnext/slider/hooks/useSliderEvents.d.ts +17 -0
- package/esnext/slider/hooks/useSliderEvents.js +128 -0
- package/esnext/slider/hooks/useSliderIcon.d.ts +7 -0
- package/esnext/slider/hooks/useSliderIcon.js +41 -0
- package/esnext/slider/hooks/useSliderInit.d.ts +14 -0
- package/esnext/slider/hooks/useSliderInit.js +146 -0
- package/esnext/slider/hooks/useSliderStyle.d.ts +13 -0
- package/esnext/slider/hooks/useSliderStyle.js +39 -0
- package/esnext/slider/index.d.ts +163 -0
- package/esnext/slider/index.js +120 -0
- package/esnext/slider/marks.d.ts +11 -0
- package/esnext/slider/marks.js +17 -0
- package/esnext/slider/popover.d.ts +6 -0
- package/esnext/slider/popover.js +13 -0
- package/esnext/slider/style/css/index.css +863 -0
- package/esnext/slider/style/css/index.d.ts +3 -0
- package/esnext/slider/style/css/index.js +3 -0
- package/esnext/slider/style/index.d.ts +3 -0
- package/esnext/slider/style/index.js +3 -0
- package/esnext/slider/style/index.less +366 -0
- package/esnext/slider/thumb.d.ts +9 -0
- package/esnext/slider/thumb.js +21 -0
- package/esnext/stepper/hooks/useButtonClick.d.ts +11 -0
- package/esnext/stepper/hooks/useButtonClick.js +46 -0
- package/esnext/stepper/hooks/useInputEvent.d.ts +10 -0
- package/esnext/stepper/hooks/useInputEvent.js +41 -0
- package/esnext/stepper/hooks/useValue.d.ts +7 -0
- package/esnext/stepper/hooks/useValue.js +33 -0
- package/esnext/stepper/index.d.ts +16 -0
- package/esnext/stepper/index.js +81 -0
- package/esnext/stepper/style/css/index.css +636 -0
- package/esnext/stepper/style/css/index.d.ts +2 -0
- package/esnext/stepper/style/css/index.js +2 -0
- package/esnext/stepper/style/index.d.ts +2 -0
- package/esnext/stepper/style/index.js +2 -0
- package/esnext/stepper/style/index.less +161 -0
- package/esnext/stepper/type.d.ts +159 -0
- package/esnext/stepper/type.js +1 -0
- package/esnext/steps/index.d.ts +19 -0
- package/esnext/steps/index.js +53 -0
- package/esnext/steps/step.d.ts +4 -0
- package/esnext/steps/step.js +43 -0
- package/esnext/steps/style/css/index.css +915 -0
- package/esnext/steps/style/css/index.d.ts +2 -0
- package/esnext/steps/style/css/index.js +2 -0
- package/esnext/steps/style/index.d.ts +2 -0
- package/esnext/steps/style/index.js +2 -0
- package/esnext/steps/style/index.less +459 -0
- package/esnext/steps/type.d.ts +115 -0
- package/esnext/steps/type.js +1 -0
- package/esnext/sticky/index.d.ts +141 -0
- package/esnext/sticky/index.js +165 -0
- package/esnext/sticky/style/css/index.css +526 -0
- package/esnext/sticky/style/css/index.d.ts +2 -0
- package/esnext/sticky/style/css/index.js +2 -0
- package/esnext/sticky/style/index.d.ts +2 -0
- package/esnext/sticky/style/index.js +2 -0
- package/esnext/sticky/style/index.less +30 -0
- package/esnext/style.d.ts +60 -0
- package/esnext/style.js +60 -0
- package/esnext/swipe-action/index.d.ts +13 -0
- package/esnext/swipe-action/index.js +220 -0
- package/esnext/swipe-action/item.d.ts +11 -0
- package/esnext/swipe-action/item.js +20 -0
- package/esnext/swipe-action/style/css/index.css +620 -0
- package/esnext/swipe-action/style/css/index.d.ts +2 -0
- package/esnext/swipe-action/style/css/index.js +2 -0
- package/esnext/swipe-action/style/index.d.ts +2 -0
- package/esnext/swipe-action/style/index.js +2 -0
- package/esnext/swipe-action/style/index.less +132 -0
- package/esnext/swipe-action/type.d.ts +123 -0
- package/esnext/swipe-action/type.js +1 -0
- package/esnext/swipe-load/index.d.ts +13 -0
- package/esnext/swipe-load/index.js +255 -0
- package/esnext/swipe-load/style/css/index.css +561 -0
- package/esnext/swipe-load/style/css/index.d.ts +2 -0
- package/esnext/swipe-load/style/css/index.js +2 -0
- package/esnext/swipe-load/style/index.d.ts +2 -0
- package/esnext/swipe-load/style/index.js +2 -0
- package/esnext/swipe-load/style/index.less +66 -0
- package/esnext/swipe-load/type.d.ts +152 -0
- package/esnext/swipe-load/type.js +1 -0
- package/esnext/switch/index.d.ts +105 -0
- package/esnext/switch/index.js +83 -0
- package/esnext/switch/style/css/index.css +765 -0
- package/esnext/switch/style/css/index.d.ts +2 -0
- package/esnext/switch/style/css/index.js +2 -0
- package/esnext/switch/style/index.d.ts +2 -0
- package/esnext/switch/style/index.js +2 -0
- package/esnext/switch/style/index.less +217 -0
- package/esnext/tab-bar/index.d.ts +14 -0
- package/esnext/tab-bar/index.js +16 -0
- package/esnext/tab-bar/item.d.ts +3 -0
- package/esnext/tab-bar/item.js +31 -0
- package/esnext/tab-bar/style/css/index.css +617 -0
- package/esnext/tab-bar/style/css/index.d.ts +2 -0
- package/esnext/tab-bar/style/css/index.js +2 -0
- package/esnext/tab-bar/style/index.d.ts +2 -0
- package/esnext/tab-bar/style/index.js +2 -0
- package/esnext/tab-bar/style/index.less +96 -0
- package/esnext/tab-bar/tab-bar.d.ts +11 -0
- package/esnext/tab-bar/tab-bar.js +40 -0
- package/esnext/tab-bar/type.d.ts +95 -0
- package/esnext/tab-bar/type.js +1 -0
- package/esnext/tabs/index.d.ts +13 -0
- package/esnext/tabs/index.js +340 -0
- package/esnext/tabs/style/css/index.css +1162 -0
- package/esnext/tabs/style/css/index.d.ts +2 -0
- package/esnext/tabs/style/css/index.js +2 -0
- package/esnext/tabs/style/index.d.ts +2 -0
- package/esnext/tabs/style/index.js +2 -0
- package/esnext/tabs/style/index.less +559 -0
- package/esnext/tabs/tab-cell-underline.d.ts +4 -0
- package/esnext/tabs/tab-cell-underline.js +237 -0
- package/esnext/tabs/tab-cell.d.ts +4 -0
- package/esnext/tabs/tab-cell.js +258 -0
- package/esnext/tabs/tab-pane.d.ts +4 -0
- package/esnext/tabs/tab-pane.js +241 -0
- package/esnext/tabs/type.d.ts +629 -0
- package/esnext/tabs/type.js +1 -0
- package/esnext/tag/index.d.ts +14 -0
- package/esnext/tag/index.js +20 -0
- package/esnext/tag/list.d.ts +3 -0
- package/esnext/tag/list.js +47 -0
- package/esnext/tag/style/css/index.css +738 -0
- package/esnext/tag/style/css/index.d.ts +2 -0
- package/esnext/tag/style/css/index.js +2 -0
- package/esnext/tag/style/index.d.ts +2 -0
- package/esnext/tag/style/index.js +2 -0
- package/esnext/tag/style/index.less +188 -0
- package/esnext/tag/tag.d.ts +3 -0
- package/esnext/tag/tag.js +32 -0
- package/esnext/tag/type.d.ts +159 -0
- package/esnext/tag/type.js +1 -0
- package/esnext/textarea/index.d.ts +96 -0
- package/esnext/textarea/index.js +88 -0
- package/esnext/textarea/style/css/index.css +572 -0
- package/esnext/textarea/style/css/index.d.ts +3 -0
- package/esnext/textarea/style/css/index.js +3 -0
- package/esnext/textarea/style/index.d.ts +3 -0
- package/esnext/textarea/style/index.js +3 -0
- package/esnext/textarea/style/index.less +84 -0
- package/esnext/toast/index.d.ts +257 -0
- package/esnext/toast/index.js +142 -0
- package/esnext/toast/methods.d.ts +16 -0
- package/esnext/toast/methods.js +61 -0
- package/esnext/toast/style/css/index.css +658 -0
- package/esnext/toast/style/css/index.d.ts +4 -0
- package/esnext/toast/style/css/index.js +4 -0
- package/esnext/toast/style/index.d.ts +4 -0
- package/esnext/toast/style/index.js +4 -0
- package/esnext/toast/style/index.less +130 -0
- package/esnext/transition/index.d.ts +49 -0
- package/esnext/transition/index.js +15 -0
- package/esnext/transition/style/css/index.css +549 -0
- package/esnext/transition/style/css/index.d.ts +2 -0
- package/esnext/transition/style/css/index.js +2 -0
- package/esnext/transition/style/index.d.ts +2 -0
- package/esnext/transition/style/index.js +2 -0
- package/esnext/transition/style/index.less +53 -0
- package/esnext/uploader/index.d.ts +16 -0
- package/esnext/uploader/index.js +75 -0
- package/esnext/uploader/style/css/index.css +666 -0
- package/esnext/uploader/style/css/index.d.ts +4 -0
- package/esnext/uploader/style/css/index.js +4 -0
- package/esnext/uploader/style/index.d.ts +4 -0
- package/esnext/uploader/style/index.js +4 -0
- package/esnext/uploader/style/index.less +161 -0
- package/esnext/uploader/type.d.ts +108 -0
- package/esnext/uploader/type.js +1 -0
- package/esnext/uploader/upload/index.d.ts +2 -0
- package/esnext/uploader/upload/index.js +2 -0
- package/esnext/uploader/upload/type.d.ts +107 -0
- package/esnext/uploader/upload/type.js +1 -0
- package/esnext/uploader/upload/upload.d.ts +20 -0
- package/esnext/uploader/upload/upload.js +123 -0
- package/esnext-tsconfig.json +23 -0
- package/package.json +3 -3
- package/umd/_helpers/index.d.ts +1 -0
- package/umd/_helpers/index.js +10 -4
- package/umd/_helpers/react-dom.js +21 -14
- package/umd/avatar/index.js +3 -1
- package/umd/avatar/type.d.ts +6 -0
- package/umd/carousel/index.js +18 -1
- package/umd/steps/index.d.ts +1 -1
- package/umd/steps/index.js +6 -1
- package/umd/steps/style/css/index.css +42 -4
- package/umd/steps/style/index.less +58 -6
- package/umd/steps/type.d.ts +5 -0
@@ -0,0 +1,447 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { TransitionProps } from '../transition';
|
3
|
+
import { BaseRef, SimpleBaseProps } from '../_helpers';
|
4
|
+
export interface PopoverRef extends BaseRef {
|
5
|
+
/**
|
6
|
+
* 气泡包裹子元素dom
|
7
|
+
* @en Popover child element DOM
|
8
|
+
*/
|
9
|
+
child: HTMLDivElement | null;
|
10
|
+
/**
|
11
|
+
* 气泡组件 ref
|
12
|
+
* @en Ref of Popover
|
13
|
+
*/
|
14
|
+
innerPopover: PopoverInnerRef | null;
|
15
|
+
/**
|
16
|
+
* 气泡元素dom
|
17
|
+
* @en Popover element DOM
|
18
|
+
*/
|
19
|
+
innerPopoverDom: HTMLDivElement | null;
|
20
|
+
/**
|
21
|
+
* 手动更新气泡的位置
|
22
|
+
* @en Manually update the position of the bubble
|
23
|
+
*/
|
24
|
+
updatePosition: () => void;
|
25
|
+
}
|
26
|
+
export interface EdgeOffset {
|
27
|
+
/**
|
28
|
+
* 上
|
29
|
+
* @en Top
|
30
|
+
*/
|
31
|
+
top?: number;
|
32
|
+
/**
|
33
|
+
* 右
|
34
|
+
* @en Right
|
35
|
+
*/
|
36
|
+
right?: number;
|
37
|
+
/**
|
38
|
+
* 下
|
39
|
+
* @en Bottom
|
40
|
+
*/
|
41
|
+
bottom?: number;
|
42
|
+
/**
|
43
|
+
* 左
|
44
|
+
* @en Left
|
45
|
+
*/
|
46
|
+
left?: number;
|
47
|
+
}
|
48
|
+
export declare type Direction = 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
49
|
+
export declare type PopoverProps = Partial<DefaultPopoverProps>;
|
50
|
+
export interface DefaultPopoverProps extends SimpleBaseProps {
|
51
|
+
/**
|
52
|
+
* 气泡载体,组件会监听其变化以重新计算布局,建议用 useMemo 包裹
|
53
|
+
* @en Bubble carrier, the component will listen to its changes to recalculate the layout, it is recommended to wrap it with useMemo
|
54
|
+
*/
|
55
|
+
children?: ReactNode;
|
56
|
+
/**
|
57
|
+
* 自定义气泡类名
|
58
|
+
* @en Custom popover classname
|
59
|
+
* @default ''
|
60
|
+
*/
|
61
|
+
innerPopoverClassName?: string;
|
62
|
+
/**
|
63
|
+
* 是否显示气泡,受控模式
|
64
|
+
* @en Whether to show bubbles, controlled mode
|
65
|
+
*/
|
66
|
+
visible?: boolean;
|
67
|
+
/**
|
68
|
+
* 气泡内容,组件会监听其变化以重新计算布局,建议用 useMemo 包裹
|
69
|
+
* @en Popover content, the component will listen to its changes to recalculate the layout, it is recommended to wrap it with useMemo
|
70
|
+
* @default null
|
71
|
+
*/
|
72
|
+
content: ReactNode;
|
73
|
+
/**
|
74
|
+
* 气泡展示的位置
|
75
|
+
* @en Where the popover is displayed
|
76
|
+
* @default 'topRight'
|
77
|
+
*/
|
78
|
+
direction: Direction;
|
79
|
+
/**
|
80
|
+
* 自动关闭场景下的停留时长,单位毫秒,为0则表示不自动关闭
|
81
|
+
* @en The length of stay in the auto-off scenario, in milliseconds, 0 means no auto-off
|
82
|
+
* @default 0
|
83
|
+
*/
|
84
|
+
duration: number;
|
85
|
+
/**
|
86
|
+
* 动画时长,单位毫秒
|
87
|
+
* @en Animation duration, in milliseconds
|
88
|
+
* @default 300
|
89
|
+
*/
|
90
|
+
transitionTimeout: number | {
|
91
|
+
appear?: number;
|
92
|
+
enter?: number;
|
93
|
+
exit?: number;
|
94
|
+
};
|
95
|
+
/**
|
96
|
+
* 气泡最小宽度
|
97
|
+
* @en Minimum bubble width
|
98
|
+
* @default '10px'
|
99
|
+
*/
|
100
|
+
minWidth: string;
|
101
|
+
/**
|
102
|
+
* 气泡最大宽度
|
103
|
+
* @en The maximum width of the popover
|
104
|
+
* @default '90vw'
|
105
|
+
*/
|
106
|
+
maxWidth: string;
|
107
|
+
/**
|
108
|
+
* 气泡过渡动画类名,修改类名需自行实现动画
|
109
|
+
* @en Popover transition animation classname, modify the class name to realize the animation by yourself
|
110
|
+
* @default 'fade'
|
111
|
+
*/
|
112
|
+
transitionName: string;
|
113
|
+
/**
|
114
|
+
* 气泡垂直方向上相对于子元素的偏移量,单位为px
|
115
|
+
* @en The vertical offset of the popover relative to the child element, in px
|
116
|
+
* @default 10
|
117
|
+
*/
|
118
|
+
verticalOffset: number;
|
119
|
+
/**
|
120
|
+
* 气泡水平方向上相对于子元素的偏移量,单位为px
|
121
|
+
* @en The offset of the popover in the horizontal direction relative to the child element, in px
|
122
|
+
* @default 8
|
123
|
+
*/
|
124
|
+
horizontalOffset: number;
|
125
|
+
/**
|
126
|
+
* 气泡边界自适应,开启时会在气泡左右边界留出安全距离,气泡与视窗上下边界小于安全距离时改变气泡的垂直方向,使其在视窗中漏出
|
127
|
+
* @en The bubble boundary is self-adaptive. When turned on, it will leave a safe distance between the left and right boundaries of the bubble. When the upper and lower boundaries of the bubble and the window are smaller than the safe distance, the vertical direction of the bubble will be changed to make it leak out of the window.
|
128
|
+
* @default true
|
129
|
+
*/
|
130
|
+
useAutoDirection: boolean | {
|
131
|
+
horizontal: boolean;
|
132
|
+
vertical: boolean;
|
133
|
+
};
|
134
|
+
/**
|
135
|
+
* 气泡距离边界的安全距离,单位为px
|
136
|
+
* @en The safe distance of the bubble from the border, in px
|
137
|
+
* @default 14
|
138
|
+
*/
|
139
|
+
edgeOffset: number | EdgeOffset;
|
140
|
+
/**
|
141
|
+
* 滚动容器的滚动事件节流粒度,单位ms
|
142
|
+
* @en The scroll event throttle granularity of the scroll container, in ms
|
143
|
+
* @default 100
|
144
|
+
*/
|
145
|
+
verticalScrollThrottle: number;
|
146
|
+
/**
|
147
|
+
* 气泡尖角大小,单位为px
|
148
|
+
* @en The size of the popover tip, in px
|
149
|
+
* @default 9
|
150
|
+
*/
|
151
|
+
arrowWidth: number;
|
152
|
+
/**
|
153
|
+
* 气泡出现后,是否屏蔽非内部元素的点击事件,点击非内部元素后只做隐藏气泡操作
|
154
|
+
* @en After the popover appears, whether to block the click event of the non-internal element, and only do the hidden popover operation after clicking the non-internal element
|
155
|
+
* @default false
|
156
|
+
*/
|
157
|
+
preventBodyClick: boolean;
|
158
|
+
/**
|
159
|
+
* 点击非子元素和气泡元素是否关闭气泡
|
160
|
+
* @en Whether to close the popover on click of non-child elements and popover elements
|
161
|
+
* @default true
|
162
|
+
*/
|
163
|
+
clickOtherToClose: boolean;
|
164
|
+
/**
|
165
|
+
* 点击气泡和子元素是否关闭气泡
|
166
|
+
* @en Whether to close the popover on click on the popover and child elements
|
167
|
+
* @default true
|
168
|
+
*/
|
169
|
+
clickSelfToClose: boolean;
|
170
|
+
/**
|
171
|
+
* 触碰非子元素和气泡元素是否关闭气泡
|
172
|
+
* @en Whether to close the popover by touching non-child elements and popover elements
|
173
|
+
* @default false
|
174
|
+
*/
|
175
|
+
touchOtherToClose: boolean;
|
176
|
+
/**
|
177
|
+
* 触碰气泡和子元素是否关闭气泡
|
178
|
+
* @en Whether to close the popover by touching non-child elements and popover elements
|
179
|
+
* @default false
|
180
|
+
*/
|
181
|
+
touchSelfToClose: boolean;
|
182
|
+
/**
|
183
|
+
* 触碰页面是否关闭气泡,是touchOtherToClose和touchSelfToClose的默认值
|
184
|
+
* @en Whether to close the bubble by touching the page, it is the default value of touchOtherToClose and touchSelfToClose
|
185
|
+
* @default false
|
186
|
+
*/
|
187
|
+
touchToClose: boolean;
|
188
|
+
/**
|
189
|
+
* 气泡的主题,black主题是黑底白字,white主题是白底黑字
|
190
|
+
* @en Popover theme, black theme is white text on black background, white theme is black text on white background
|
191
|
+
* @default 'black'
|
192
|
+
*/
|
193
|
+
theme: 'black' | 'white';
|
194
|
+
/**
|
195
|
+
* 气泡内容是否需要阴影
|
196
|
+
* @en Whether the popover content need a shadow
|
197
|
+
* @default false
|
198
|
+
*/
|
199
|
+
needShadow: boolean;
|
200
|
+
/**
|
201
|
+
* 气泡是否有border
|
202
|
+
* @en Whether the bubble has a border
|
203
|
+
* @default 白色主题默认有边框,黑色主题没有
|
204
|
+
* @default_en White theme have borders by default, the black theme do not
|
205
|
+
*/
|
206
|
+
bordered: boolean;
|
207
|
+
/**
|
208
|
+
* 气泡是否可见的默认值,非受控模式
|
209
|
+
* @en The default value of whether the popover is visible, uncontrolled mode
|
210
|
+
* @default false
|
211
|
+
*/
|
212
|
+
defaultVisible: boolean;
|
213
|
+
/**
|
214
|
+
* 是否展示关闭按钮
|
215
|
+
* @en Whether to show the close button
|
216
|
+
* @default false
|
217
|
+
*/
|
218
|
+
showCloseIcon: boolean;
|
219
|
+
/**
|
220
|
+
* 文字气泡后置元素,如操作按钮等
|
221
|
+
* @en Post elements of text bubbles, such as action buttons, etc.
|
222
|
+
* @default null
|
223
|
+
*/
|
224
|
+
textSuffix: ReactNode;
|
225
|
+
/**
|
226
|
+
* 气泡挂载位置,follow模式挂载在当前子元素下,global模式挂载在body上
|
227
|
+
* @en Popover mount location, follow mode is mounted under the current child element, global mode is mounted on the body
|
228
|
+
* @default 'follow'
|
229
|
+
*/
|
230
|
+
mode: 'follow' | 'global';
|
231
|
+
/**
|
232
|
+
* 是否展示蒙层
|
233
|
+
* @en Whether to show the mask
|
234
|
+
* @default false
|
235
|
+
*/
|
236
|
+
showMask: boolean;
|
237
|
+
/**
|
238
|
+
* 蒙层动画时长
|
239
|
+
* @en Mask animation duration
|
240
|
+
* @default { enter: 450, exit: 240 }
|
241
|
+
*/
|
242
|
+
maskTransitionTimeout: TransitionProps['timeout'];
|
243
|
+
/**
|
244
|
+
* 自定义箭头渲染
|
245
|
+
* @en Customize arrow rendering
|
246
|
+
*/
|
247
|
+
renderArrow: (options: {
|
248
|
+
arrowWidth?: number;
|
249
|
+
arrowLeft: number;
|
250
|
+
direction: Direction;
|
251
|
+
}) => ReactNode;
|
252
|
+
/**
|
253
|
+
* 状态发生改变的回调事件
|
254
|
+
* @en Callback event for state change
|
255
|
+
* @default () => void
|
256
|
+
*/
|
257
|
+
onChange: (visible: boolean) => void;
|
258
|
+
/**
|
259
|
+
* 点击关闭icon的回调
|
260
|
+
* @en Callback when clicking to close the icon
|
261
|
+
* @default () => void
|
262
|
+
*/
|
263
|
+
onClickCloseIcon?: () => void;
|
264
|
+
/**
|
265
|
+
* 点击文字气泡后置元素回调
|
266
|
+
* @en Callback after clicking the suffix element of text popover
|
267
|
+
* @default () => void
|
268
|
+
*/
|
269
|
+
onClickTextSuffix?: () => void;
|
270
|
+
/**
|
271
|
+
* 点击蒙层回调
|
272
|
+
* @en Callback when clicking the mask
|
273
|
+
* @default () => void
|
274
|
+
*/
|
275
|
+
onClickMask?: () => void;
|
276
|
+
/**
|
277
|
+
* 获取页面垂直方向的滚动容器
|
278
|
+
* @en Get the scroll container in the vertical direction of the page
|
279
|
+
* @default () => document
|
280
|
+
*/
|
281
|
+
getVerticalScrollContainer?: () => HTMLElement;
|
282
|
+
}
|
283
|
+
export interface PopoverPosition {
|
284
|
+
left: number | null;
|
285
|
+
top: number | null;
|
286
|
+
bottom: number | null;
|
287
|
+
width: number | null;
|
288
|
+
height: number | null;
|
289
|
+
arrowLeft: number;
|
290
|
+
}
|
291
|
+
export interface PopoverTransformOrigin {
|
292
|
+
x: string;
|
293
|
+
y: string;
|
294
|
+
}
|
295
|
+
export interface PopoverInnerRef {
|
296
|
+
/**
|
297
|
+
* 组件容器dom
|
298
|
+
* @en Component container dom
|
299
|
+
*/
|
300
|
+
dom: HTMLDivElement | null;
|
301
|
+
content: HTMLDivElement | null;
|
302
|
+
}
|
303
|
+
export interface PopoverInnerProps {
|
304
|
+
/**
|
305
|
+
* 自定义类名
|
306
|
+
* @en Custom classname
|
307
|
+
*/
|
308
|
+
className?: string;
|
309
|
+
/**
|
310
|
+
* 气泡展示的位置
|
311
|
+
* @en The displayed direction of the popover
|
312
|
+
*/
|
313
|
+
direction: Direction;
|
314
|
+
/**
|
315
|
+
* 位置
|
316
|
+
* @en Position
|
317
|
+
*/
|
318
|
+
position: PopoverPosition;
|
319
|
+
/**
|
320
|
+
* 缩放动画中心,尖角顶部
|
321
|
+
* @en Scale animation origin, sharp corner top
|
322
|
+
*/
|
323
|
+
transformOrigin: PopoverTransformOrigin;
|
324
|
+
/**
|
325
|
+
* 浮窗内容
|
326
|
+
* @en Popover content
|
327
|
+
*/
|
328
|
+
content: ReactNode;
|
329
|
+
/**
|
330
|
+
* 箭头大小
|
331
|
+
* @en Arrow size
|
332
|
+
*/
|
333
|
+
arrowWidth?: number;
|
334
|
+
/**
|
335
|
+
* 气泡挂载位置,follow模式挂载在当前子元素下,global模式挂载在全局
|
336
|
+
* @en
|
337
|
+
*/
|
338
|
+
mode?: 'follow' | 'global';
|
339
|
+
/**
|
340
|
+
* 是否展示关闭按钮
|
341
|
+
* @en Whether to show the close button
|
342
|
+
*/
|
343
|
+
showCloseIcon?: boolean;
|
344
|
+
/**
|
345
|
+
* 文字气泡后置元素,如操作按钮等
|
346
|
+
* @en Post element of text popover, such as action buttons, etc.
|
347
|
+
*/
|
348
|
+
textSuffix?: ReactNode;
|
349
|
+
/**
|
350
|
+
* 最小宽度
|
351
|
+
* @en Minimum width
|
352
|
+
*/
|
353
|
+
minWidth: string;
|
354
|
+
/**
|
355
|
+
* 最大宽度
|
356
|
+
* @en Maximum width
|
357
|
+
*/
|
358
|
+
maxWidth: string;
|
359
|
+
/**
|
360
|
+
* 是否需要阴影
|
361
|
+
* @en Whether to need shadows
|
362
|
+
*/
|
363
|
+
needShadow?: boolean;
|
364
|
+
renderArrow?: PopoverProps['renderArrow'];
|
365
|
+
/**
|
366
|
+
* 点击关闭icon的回调
|
367
|
+
* @en Callback when clicking close icon
|
368
|
+
*/
|
369
|
+
onClickCloseIcon?: () => void;
|
370
|
+
/**
|
371
|
+
* 点击文字气泡后置元素回调
|
372
|
+
* @en Callback when clicking the post element of text popover
|
373
|
+
*/
|
374
|
+
onClickTextSuffix?: () => void;
|
375
|
+
}
|
376
|
+
export interface PopoverMenuItem {
|
377
|
+
/**
|
378
|
+
* 菜单项文本
|
379
|
+
* @en Menu item text
|
380
|
+
*/
|
381
|
+
text: ReactNode;
|
382
|
+
/**
|
383
|
+
* 菜单项值
|
384
|
+
* @en Menu item value
|
385
|
+
* @default text
|
386
|
+
*/
|
387
|
+
value?: string;
|
388
|
+
/**
|
389
|
+
* 菜单项的icon组件
|
390
|
+
* @en The icon component of the menu item
|
391
|
+
* @default null
|
392
|
+
*/
|
393
|
+
icon?: ReactNode;
|
394
|
+
/**
|
395
|
+
* 是否禁用菜单项
|
396
|
+
* @en Whether to disable the menu item
|
397
|
+
* @default false
|
398
|
+
*/
|
399
|
+
disabled?: boolean;
|
400
|
+
[key: string]: any;
|
401
|
+
}
|
402
|
+
export interface PopoverMenuProps extends PopoverProps {
|
403
|
+
/**
|
404
|
+
* 菜单项列表
|
405
|
+
* @en List of menu items
|
406
|
+
*/
|
407
|
+
menu: Array<PopoverMenuItem | string>;
|
408
|
+
/**
|
409
|
+
* 菜单排列顺序,默认为竖向菜单,支持横向菜单和竖向菜单,横向菜单一行最多可放4个菜单
|
410
|
+
* @en Menu arrangement order, the default is vertical menu, supports horizontal menu and vertical menu, horizontal menu can put up to 4 menus in a row
|
411
|
+
* @default 'vertical'
|
412
|
+
*/
|
413
|
+
menuLayout?: 'vertical' | 'horizontal';
|
414
|
+
/**
|
415
|
+
* 菜单项是否有点击态
|
416
|
+
* @en Whether the menu item is clickable
|
417
|
+
* @default false
|
418
|
+
*/
|
419
|
+
useClickStatus?: boolean;
|
420
|
+
/**
|
421
|
+
* 菜单项点击态持续时长,单位毫秒
|
422
|
+
* @en The duration of the menu item click state, in milliseconds
|
423
|
+
* @default 300
|
424
|
+
*/
|
425
|
+
clickStatusDuration?: number;
|
426
|
+
/**
|
427
|
+
* 选择可用菜单项的回调
|
428
|
+
* @en Callback for selecting available menu items
|
429
|
+
* @default () => {}
|
430
|
+
*/
|
431
|
+
onSelect?: (value: string, item: PopoverMenuItem | string) => void;
|
432
|
+
/**
|
433
|
+
* 点击所有菜单项回调
|
434
|
+
* @en Callback when clicking all menu items
|
435
|
+
* @default () => {}
|
436
|
+
*/
|
437
|
+
onClickMenuItem: (value: string, item: PopoverMenuItem | string) => void;
|
438
|
+
}
|
439
|
+
/**
|
440
|
+
* 用于计算气泡位置的参数信息
|
441
|
+
* @en Parameter information for calculating popover position
|
442
|
+
*/
|
443
|
+
export interface ComputedConfig {
|
444
|
+
popoverWidth: number;
|
445
|
+
popoverHeight: number;
|
446
|
+
childRect: DOMRect;
|
447
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { MaskingCommonProps, MaskingRef, OpenBaseProps } from '../masking';
|
3
|
+
export * from './methods';
|
4
|
+
export declare type DirectionType = 'left' | 'right' | 'top' | 'bottom';
|
5
|
+
export interface PopupProps extends MaskingCommonProps {
|
6
|
+
/**
|
7
|
+
* 菜单滑出方向
|
8
|
+
* @en The direction the menu slides out
|
9
|
+
* @default "bottom"
|
10
|
+
*/
|
11
|
+
direction?: DirectionType;
|
12
|
+
/**
|
13
|
+
* 从底部滑出的菜单内容是否适配ipx底部
|
14
|
+
* @en Whether the content of the menu that slides out from the bottom fits the bottom of ipx
|
15
|
+
* @default false
|
16
|
+
*/
|
17
|
+
needBottomOffset?: boolean;
|
18
|
+
/**
|
19
|
+
* [即将废弃] 开启translateZ强制提升
|
20
|
+
* @en [To be deprecated] Enable translateZ forced promotion
|
21
|
+
* @default false
|
22
|
+
* @deprecated
|
23
|
+
*/
|
24
|
+
translateZ?: boolean;
|
25
|
+
/**
|
26
|
+
* 菜单蒙层动画时长
|
27
|
+
* @en Menu mask animation duration
|
28
|
+
* @default { enter: 450, exit: 240 }
|
29
|
+
*/
|
30
|
+
maskTransitionTimeout?: MaskingCommonProps['maskTransitionTimeout'];
|
31
|
+
/**
|
32
|
+
* 菜单内容动画时长
|
33
|
+
* @en Menu content animation duration
|
34
|
+
* @default { enter: 450, exit: 240 }
|
35
|
+
*/
|
36
|
+
contentTransitionTimeout?: MaskingCommonProps['contentTransitionTimeout'];
|
37
|
+
/**
|
38
|
+
* 内容过渡动画类名
|
39
|
+
* @en Content transition animation classname
|
40
|
+
* @default \`slide-from-${props.direction}\`
|
41
|
+
*/
|
42
|
+
contentTransitionType?: MaskingCommonProps['contentTransitionType'];
|
43
|
+
}
|
44
|
+
export interface PopupRef extends MaskingRef {
|
45
|
+
}
|
46
|
+
export declare function methodsGenerator<P extends OpenBaseProps>(Comp: React.FunctionComponent<P>): {
|
47
|
+
/**
|
48
|
+
* 打开弹出层
|
49
|
+
* @desc {en} Open the popup
|
50
|
+
* @param {PopupProps} config Configuration
|
51
|
+
* @returns {{ close: () => void; update: (newConfig: PopupProps) => void; }}
|
52
|
+
*/
|
53
|
+
open: (config: Pick<P, Exclude<keyof P, "visible" | "close">> & {
|
54
|
+
key?: string | undefined;
|
55
|
+
}, context?: import("../context-provider").GlobalContextParams | undefined) => {
|
56
|
+
close: () => void;
|
57
|
+
update: (newConfig: Pick<P, Exclude<keyof P, "visible" | "close">> & {
|
58
|
+
key?: string | undefined;
|
59
|
+
}) => void;
|
60
|
+
};
|
61
|
+
};
|
62
|
+
declare const _default: React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<PopupRef>> & {
|
63
|
+
/**
|
64
|
+
* 打开弹出层
|
65
|
+
* @desc {en} Open the popup
|
66
|
+
* @param {PopupProps} config Configuration
|
67
|
+
* @returns {{ close: () => void; update: (newConfig: PopupProps) => void; }}
|
68
|
+
*/
|
69
|
+
open: (config: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset"> & {
|
70
|
+
key?: string | undefined;
|
71
|
+
}, context?: import("../context-provider").GlobalContextParams | undefined) => {
|
72
|
+
close: () => void;
|
73
|
+
update: (newConfig: Pick<import("../context-provider").WithGlobalContext<PopupProps & React.RefAttributes<PopupRef>>, "direction" | "children" | "ref" | "key" | "context" | "translateZ" | "className" | "getScrollContainer" | "onTouchMove" | "getContainer" | "mountOnEnter" | "unmountOnExit" | "onClose" | "maskClass" | "maskStyle" | "contentClass" | "contentStyle" | "maskTransitionType" | "contentTransitionType" | "maskTransitionTimeout" | "contentTransitionTimeout" | "maskClosable" | "animatingClosable" | "orientationDirection" | "preventBodyScroll" | "initialBodyOverflow" | "gestureOutOfControl" | "onOpen" | "onMaskClick" | "onPreventTouchMove" | "needBottomOffset"> & {
|
74
|
+
key?: string | undefined;
|
75
|
+
}) => void;
|
76
|
+
};
|
77
|
+
};
|
78
|
+
/**
|
79
|
+
* 基于模态弹窗的的全屏菜单,支持各个方向。默认做了防滚动穿透处理,如果弹层内容中需要滚动,则需将滚动容器传入`getScrollContainer`属性以在未滚动到顶部或底部时释放滚动。
|
80
|
+
* @en A full-screen menu based on a modal popup, supporting all directions. By default, anti-scroll penetration processing is performed. If scrolling is required in the content of the popup layer, you need to pass the scroll container to the `getScrollContainer` property to release scrolling when it is not scrolled to the top or bottom.
|
81
|
+
* @type 反馈
|
82
|
+
* @type_en Feedback
|
83
|
+
* @name 弹出层
|
84
|
+
* @name_en Popup
|
85
|
+
*/
|
86
|
+
export default _default;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import React, { useRef, forwardRef, useImperativeHandle } from 'react';
|
2
|
+
import { cls, componentWrapper } from '@arco-design/mobile-utils';
|
3
|
+
import { ContextLayout, CompWithGlobalContext } from '../context-provider';
|
4
|
+
import Masking from '../masking';
|
5
|
+
import { open } from './methods';
|
6
|
+
export * from './methods';
|
7
|
+
const Popup = forwardRef((props, ref) => {
|
8
|
+
const { children, maskClass, contentClass, contentTransitionType, className, direction = 'bottom', needBottomOffset = false, translateZ = false, maskTransitionTimeout = { enter: 450, exit: 240 }, contentTransitionTimeout = { enter: 450, exit: 240 }, ...restProps } = props;
|
9
|
+
const maskingRef = useRef(null);
|
10
|
+
useImperativeHandle(ref, () => maskingRef.current);
|
11
|
+
function renderPopup({ prefixCls }) {
|
12
|
+
const prefix = `${prefixCls}-popup`;
|
13
|
+
return (React.createElement(Masking, Object.assign({ className: cls(prefix, className), ref: maskingRef, maskClass: cls(`${prefix}-mask`, { translateZ }, maskClass), contentTransitionType: contentTransitionType || `slide-from-${direction}`, contentClass: cls(`${prefix}-content`, direction, {
|
14
|
+
'need-bottom-offset': needBottomOffset,
|
15
|
+
}, { translateZ }, contentClass), maskTransitionTimeout: maskTransitionTimeout, contentTransitionTimeout: contentTransitionTimeout }, restProps), children));
|
16
|
+
}
|
17
|
+
return React.createElement(ContextLayout, null, renderPopup);
|
18
|
+
});
|
19
|
+
export function methodsGenerator(Comp) {
|
20
|
+
return {
|
21
|
+
/**
|
22
|
+
* 打开弹出层
|
23
|
+
* @desc {en} Open the popup
|
24
|
+
* @param {PopupProps} config Configuration
|
25
|
+
* @returns {{ close: () => void; update: (newConfig: PopupProps) => void; }}
|
26
|
+
*/
|
27
|
+
open: open(Comp),
|
28
|
+
};
|
29
|
+
}
|
30
|
+
const PopupWithGlobalContext = CompWithGlobalContext(Popup);
|
31
|
+
/**
|
32
|
+
* 基于模态弹窗的的全屏菜单,支持各个方向。默认做了防滚动穿透处理,如果弹层内容中需要滚动,则需将滚动容器传入`getScrollContainer`属性以在未滚动到顶部或底部时释放滚动。
|
33
|
+
* @en A full-screen menu based on a modal popup, supporting all directions. By default, anti-scroll penetration processing is performed. If scrolling is required in the content of the popup layer, you need to pass the scroll container to the `getScrollContainer` property to release scrolling when it is not scrolled to the top or bottom.
|
34
|
+
* @type 反馈
|
35
|
+
* @type_en Feedback
|
36
|
+
* @name 弹出层
|
37
|
+
* @name_en Popup
|
38
|
+
*/
|
39
|
+
export default componentWrapper(Popup, methodsGenerator(PopupWithGlobalContext));
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { OpenBaseProps } from '../masking/methods';
|
3
|
+
export declare function open<P extends OpenBaseProps>(Component: React.FunctionComponent<P>): (config: Pick<P, Exclude<keyof P, "visible" | "close">> & {
|
4
|
+
key?: string | undefined;
|
5
|
+
}, context?: import("../context-provider").GlobalContextParams | undefined) => {
|
6
|
+
close: () => void;
|
7
|
+
update: (newConfig: Pick<P, Exclude<keyof P, "visible" | "close">> & {
|
8
|
+
key?: string | undefined;
|
9
|
+
}) => void;
|
10
|
+
};
|