@gobolt/genesis 0.3.11 → 0.3.13
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/dist/bundle.css +41 -41
- package/dist/components/Table/index.d.ts +3 -0
- package/dist/components/Tabs/styles.d.ts +1 -3
- package/dist/components/index.d.ts +7 -7
- package/dist/index.cjs +3 -6
- package/dist/index.js +4 -7
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.cjs +2 -3
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.js +2 -3
- package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/extractStyle.cjs +2 -1
- package/dist/node_modules/@ant-design/cssinjs/es/extractStyle.js +5 -4
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.cjs +1 -2
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.js +1 -2
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.cjs +5 -4
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +5 -4
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.cjs +3 -3
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +3 -3
- package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.cjs +2 -1
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.js +3 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/CSSCalculator.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/CSSCalculator.js +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/NumCalculator.cjs +2 -2
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/calc/NumCalculator.js +2 -2
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.cjs +275 -62
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +275 -62
- package/dist/node_modules/@fontsource/inter/300.css.cjs +1 -0
- package/dist/node_modules/@fontsource/inter/300.css.js +1 -0
- package/dist/node_modules/@fontsource/inter/400.css.cjs +1 -0
- package/dist/node_modules/@fontsource/inter/400.css.js +1 -0
- package/dist/node_modules/@fontsource/inter/500.css.cjs +1 -0
- package/dist/node_modules/@fontsource/inter/500.css.js +1 -0
- package/dist/node_modules/@fontsource/inter/600.css.cjs +1 -0
- package/dist/node_modules/@fontsource/inter/600.css.js +1 -0
- package/dist/node_modules/@fontsource/inter/700.css.cjs +1 -0
- package/dist/node_modules/@fontsource/inter/700.css.js +1 -0
- package/dist/node_modules/@fontsource/roboto-mono/400.css.cjs +1 -0
- package/dist/node_modules/@fontsource/roboto-mono/400.css.js +1 -0
- package/dist/node_modules/@rc-component/async-validator/es/index.cjs +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/index.js +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/rule/url.cjs +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/rule/url.js +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/util.cjs +2 -2
- package/dist/node_modules/@rc-component/async-validator/es/util.js +2 -2
- package/dist/node_modules/@rc-component/color-picker/es/color.cjs +2 -2
- package/dist/node_modules/@rc-component/color-picker/es/color.js +2 -2
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.cjs +1 -2
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +1 -2
- package/dist/node_modules/@rc-component/trigger/es/index.cjs +1 -3
- package/dist/node_modules/@rc-component/trigger/es/index.js +1 -3
- package/dist/node_modules/antd/es/_util/ActionButton.cjs +4 -4
- package/dist/node_modules/antd/es/_util/ActionButton.js +4 -4
- package/dist/node_modules/antd/es/_util/colors.cjs +2 -1
- package/dist/node_modules/antd/es/_util/colors.js +2 -1
- package/dist/node_modules/antd/es/_util/extendsObject.cjs +13 -11
- package/dist/node_modules/antd/es/_util/extendsObject.js +13 -11
- package/dist/node_modules/antd/es/_util/motion.cjs +16 -13
- package/dist/node_modules/antd/es/_util/motion.js +16 -13
- package/dist/node_modules/antd/es/_util/placements.cjs +4 -4
- package/dist/node_modules/antd/es/_util/placements.js +4 -4
- package/dist/node_modules/antd/es/_util/responsiveObserver.cjs +20 -18
- package/dist/node_modules/antd/es/_util/responsiveObserver.js +20 -18
- package/dist/node_modules/antd/es/_util/scrollTo.cjs +2 -1
- package/dist/node_modules/antd/es/_util/scrollTo.js +2 -1
- package/dist/node_modules/antd/es/_util/toList.cjs +4 -5
- package/dist/node_modules/antd/es/_util/toList.js +4 -5
- package/dist/node_modules/antd/es/_util/warning.cjs +6 -8
- package/dist/node_modules/antd/es/_util/warning.js +2 -3
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.cjs +13 -10
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +14 -11
- package/dist/node_modules/antd/es/_util/wave/style.cjs +1 -1
- package/dist/node_modules/antd/es/_util/wave/style.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/util.cjs +1 -1
- package/dist/node_modules/antd/es/_util/wave/util.js +1 -1
- package/dist/node_modules/antd/es/avatar/Avatar.cjs +28 -22
- package/dist/node_modules/antd/es/avatar/Avatar.js +28 -22
- package/dist/node_modules/antd/es/avatar/AvatarGroup.cjs +3 -2
- package/dist/node_modules/antd/es/avatar/AvatarGroup.js +3 -2
- package/dist/node_modules/antd/es/avatar/style/index.cjs +7 -14
- package/dist/node_modules/antd/es/avatar/style/index.js +7 -14
- package/dist/node_modules/antd/es/breadcrumb/BreadcrumbSeparator.cjs +4 -3
- package/dist/node_modules/antd/es/breadcrumb/BreadcrumbSeparator.js +4 -3
- package/dist/node_modules/antd/es/button/DefaultLoadingIcon.cjs +5 -4
- package/dist/node_modules/antd/es/button/DefaultLoadingIcon.js +5 -4
- package/dist/node_modules/antd/es/button/button.cjs +9 -20
- package/dist/node_modules/antd/es/button/button.js +10 -21
- package/dist/node_modules/antd/es/button/style/index.cjs +8 -15
- package/dist/node_modules/antd/es/button/style/index.js +8 -15
- package/dist/node_modules/antd/es/button/style/token.cjs +0 -1
- package/dist/node_modules/antd/es/button/style/token.js +0 -1
- package/dist/node_modules/antd/es/card/Card.cjs +2 -1
- package/dist/node_modules/antd/es/card/Card.js +2 -1
- package/dist/node_modules/antd/es/card/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/card/style/index.js +1 -1
- package/dist/node_modules/antd/es/checkbox/Checkbox.cjs +3 -3
- package/dist/node_modules/antd/es/checkbox/Checkbox.js +3 -3
- package/dist/node_modules/antd/es/checkbox/Group.cjs +4 -4
- package/dist/node_modules/antd/es/checkbox/Group.js +4 -4
- package/dist/node_modules/antd/es/checkbox/style/index.cjs +27 -26
- package/dist/node_modules/antd/es/checkbox/style/index.js +27 -26
- package/dist/node_modules/antd/es/color-picker/color.cjs +12 -9
- package/dist/node_modules/antd/es/color-picker/color.js +12 -9
- package/dist/node_modules/antd/es/config-provider/DisabledContext.cjs +5 -4
- package/dist/node_modules/antd/es/config-provider/DisabledContext.js +5 -4
- package/dist/node_modules/antd/es/config-provider/MotionWrapper.cjs +3 -10
- package/dist/node_modules/antd/es/config-provider/MotionWrapper.js +3 -10
- package/dist/node_modules/antd/es/config-provider/PropWarning.cjs +4 -3
- package/dist/node_modules/antd/es/config-provider/PropWarning.js +4 -3
- package/dist/node_modules/antd/es/config-provider/SizeContext.cjs +5 -4
- package/dist/node_modules/antd/es/config-provider/SizeContext.js +5 -4
- package/dist/node_modules/antd/es/config-provider/UnstableContext.cjs +2 -2
- package/dist/node_modules/antd/es/config-provider/UnstableContext.js +2 -2
- package/dist/node_modules/antd/es/config-provider/hooks/useSize.cjs +1 -1
- package/dist/node_modules/antd/es/config-provider/hooks/useSize.js +1 -1
- package/dist/node_modules/antd/es/config-provider/index.cjs +2 -3
- package/dist/node_modules/antd/es/config-provider/index.js +2 -3
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.cjs +9 -23
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js +9 -23
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.cjs +10 -22
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js +10 -22
- package/dist/node_modules/antd/es/date-picker/style/index.cjs +16 -18
- package/dist/node_modules/antd/es/date-picker/style/index.js +16 -18
- package/dist/node_modules/antd/es/date-picker/style/panel.cjs +40 -30
- package/dist/node_modules/antd/es/date-picker/style/panel.js +40 -30
- package/dist/node_modules/antd/es/dropdown/dropdown-button.cjs +4 -10
- package/dist/node_modules/antd/es/dropdown/dropdown-button.js +4 -10
- package/dist/node_modules/antd/es/dropdown/dropdown.cjs +23 -25
- package/dist/node_modules/antd/es/dropdown/dropdown.js +23 -25
- package/dist/node_modules/antd/es/dropdown/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/dropdown/style/index.js +1 -1
- package/dist/node_modules/antd/es/empty/index.cjs +9 -11
- package/dist/node_modules/antd/es/empty/index.js +9 -11
- package/dist/node_modules/antd/es/empty/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/empty/style/index.js +1 -1
- package/dist/node_modules/antd/es/form/ErrorList.cjs +16 -13
- package/dist/node_modules/antd/es/form/ErrorList.js +16 -13
- package/dist/node_modules/antd/es/form/Form.cjs +3 -4
- package/dist/node_modules/antd/es/form/Form.js +1 -2
- package/dist/node_modules/antd/es/form/FormItem/ItemHolder.cjs +7 -9
- package/dist/node_modules/antd/es/form/FormItem/ItemHolder.js +7 -9
- package/dist/node_modules/antd/es/form/FormItem/StatusProvider.cjs +13 -16
- package/dist/node_modules/antd/es/form/FormItem/StatusProvider.js +13 -16
- package/dist/node_modules/antd/es/form/FormItem/index.cjs +12 -8
- package/dist/node_modules/antd/es/form/FormItem/index.js +12 -8
- package/dist/node_modules/antd/es/form/FormItemLabel.cjs +26 -22
- package/dist/node_modules/antd/es/form/FormItemLabel.js +26 -22
- package/dist/node_modules/antd/es/form/context.cjs +7 -6
- package/dist/node_modules/antd/es/form/context.js +7 -6
- package/dist/node_modules/antd/es/form/hooks/useForm.cjs +3 -4
- package/dist/node_modules/antd/es/form/hooks/useForm.js +3 -3
- package/dist/node_modules/antd/es/form/hooks/useFormWarning.cjs +4 -3
- package/dist/node_modules/antd/es/form/hooks/useFormWarning.js +4 -3
- package/dist/node_modules/antd/es/form/hooks/useVariants.cjs +2 -1
- package/dist/node_modules/antd/es/form/hooks/useVariants.js +2 -1
- package/dist/node_modules/antd/es/form/index.cjs +1 -1
- package/dist/node_modules/antd/es/form/style/fallbackCmp.cjs +5 -4
- package/dist/node_modules/antd/es/form/style/fallbackCmp.js +5 -4
- package/dist/node_modules/antd/es/form/style/index.cjs +92 -62
- package/dist/node_modules/antd/es/form/style/index.js +92 -62
- package/dist/node_modules/antd/es/grid/hooks/useBreakpoint.cjs +3 -1
- package/dist/node_modules/antd/es/grid/hooks/useBreakpoint.js +3 -1
- package/dist/node_modules/antd/es/input/Input.cjs +3 -3
- package/dist/node_modules/antd/es/input/Input.js +3 -3
- package/dist/node_modules/antd/es/input/OTP/OTPInput.cjs +13 -31
- package/dist/node_modules/antd/es/input/OTP/OTPInput.js +8 -26
- package/dist/node_modules/antd/es/input/OTP/index.cjs +1 -2
- package/dist/node_modules/antd/es/input/OTP/index.js +1 -2
- package/dist/node_modules/antd/es/input/Password.cjs +2 -3
- package/dist/node_modules/antd/es/input/Password.js +2 -3
- package/dist/node_modules/antd/es/input/Search.cjs +14 -18
- package/dist/node_modules/antd/es/input/Search.js +14 -18
- package/dist/node_modules/antd/es/input/TextArea.cjs +6 -42
- package/dist/node_modules/antd/es/input/TextArea.js +6 -42
- package/dist/node_modules/antd/es/input/style/index.cjs +20 -7
- package/dist/node_modules/antd/es/input/style/index.js +20 -7
- package/dist/node_modules/antd/es/input/style/otp.cjs +1 -23
- package/dist/node_modules/antd/es/input/style/otp.js +1 -23
- package/dist/node_modules/antd/es/input/style/textarea.cjs +5 -27
- package/dist/node_modules/antd/es/input/style/textarea.js +5 -27
- package/dist/node_modules/antd/es/input/style/variants.cjs +29 -25
- package/dist/node_modules/antd/es/input/style/variants.js +29 -25
- package/dist/node_modules/antd/es/layout/Sider.cjs +21 -9
- package/dist/node_modules/antd/es/layout/Sider.js +21 -9
- package/dist/node_modules/antd/es/layout/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/layout/style/index.js +1 -1
- package/dist/node_modules/antd/es/layout/style/sider.cjs +1 -1
- package/dist/node_modules/antd/es/layout/style/sider.js +1 -1
- package/dist/node_modules/antd/es/locale/en_US.cjs +1 -2
- package/dist/node_modules/antd/es/locale/en_US.js +1 -2
- package/dist/node_modules/antd/es/menu/MenuItem.cjs +1 -1
- package/dist/node_modules/antd/es/menu/MenuItem.js +1 -1
- package/dist/node_modules/antd/es/menu/SubMenu.cjs +1 -1
- package/dist/node_modules/antd/es/menu/SubMenu.js +1 -1
- package/dist/node_modules/antd/es/menu/menu.cjs +2 -2
- package/dist/node_modules/antd/es/menu/menu.js +2 -2
- package/dist/node_modules/antd/es/menu/style/index.cjs +3 -1
- package/dist/node_modules/antd/es/menu/style/index.js +3 -1
- package/dist/node_modules/antd/es/menu/style/rtl.cjs +24 -21
- package/dist/node_modules/antd/es/menu/style/rtl.js +24 -21
- package/dist/node_modules/antd/es/menu/style/theme.cjs +1 -1
- package/dist/node_modules/antd/es/menu/style/theme.js +1 -1
- package/dist/node_modules/antd/es/pagination/style/bordered.cjs +1 -1
- package/dist/node_modules/antd/es/pagination/style/bordered.js +1 -1
- package/dist/node_modules/antd/es/pagination/style/index.cjs +11 -2
- package/dist/node_modules/antd/es/pagination/style/index.js +11 -2
- package/dist/node_modules/antd/es/popover/PurePanel.cjs +6 -5
- package/dist/node_modules/antd/es/popover/PurePanel.js +6 -5
- package/dist/node_modules/antd/es/popover/index.cjs +2 -2
- package/dist/node_modules/antd/es/popover/index.js +2 -3
- package/dist/node_modules/antd/es/progress/Line.cjs +7 -4
- package/dist/node_modules/antd/es/progress/Line.js +7 -4
- package/dist/node_modules/antd/es/progress/utils.cjs +16 -13
- package/dist/node_modules/antd/es/progress/utils.js +16 -13
- package/dist/node_modules/antd/es/radio/group.cjs +4 -10
- package/dist/node_modules/antd/es/radio/group.js +2 -8
- package/dist/node_modules/antd/es/radio/style/index.cjs +2 -2
- package/dist/node_modules/antd/es/radio/style/index.js +2 -2
- package/dist/node_modules/antd/es/result/index.cjs +24 -21
- package/dist/node_modules/antd/es/result/index.js +24 -21
- package/dist/node_modules/antd/es/result/noFound.cjs +139 -117
- package/dist/node_modules/antd/es/result/noFound.js +139 -117
- package/dist/node_modules/antd/es/result/serverError.cjs +154 -131
- package/dist/node_modules/antd/es/result/serverError.js +154 -131
- package/dist/node_modules/antd/es/result/unauthorized.cjs +125 -113
- package/dist/node_modules/antd/es/result/unauthorized.js +125 -113
- package/dist/node_modules/antd/es/segmented/style/index.cjs +2 -2
- package/dist/node_modules/antd/es/segmented/style/index.js +2 -2
- package/dist/node_modules/antd/es/select/index.cjs +15 -42
- package/dist/node_modules/antd/es/select/index.js +15 -42
- package/dist/node_modules/antd/es/select/style/index.cjs +11 -17
- package/dist/node_modules/antd/es/select/style/index.js +11 -17
- package/dist/node_modules/antd/es/select/style/multiple.cjs +1 -2
- package/dist/node_modules/antd/es/select/style/multiple.js +1 -2
- package/dist/node_modules/antd/es/select/useIcons.cjs +20 -18
- package/dist/node_modules/antd/es/select/useIcons.js +20 -18
- package/dist/node_modules/antd/es/skeleton/Title.cjs +17 -14
- package/dist/node_modules/antd/es/skeleton/Title.js +17 -14
- package/dist/node_modules/antd/es/skeleton/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/skeleton/style/index.js +1 -1
- package/dist/node_modules/antd/es/space/Item.cjs +8 -7
- package/dist/node_modules/antd/es/space/Item.js +8 -7
- package/dist/node_modules/antd/es/spin/Indicator/Progress.cjs +6 -4
- package/dist/node_modules/antd/es/spin/Indicator/Progress.js +6 -4
- package/dist/node_modules/antd/es/spin/Indicator/index.cjs +1 -2
- package/dist/node_modules/antd/es/spin/Indicator/index.js +1 -2
- package/dist/node_modules/antd/es/spin/style/index.cjs +1 -1
- package/dist/node_modules/antd/es/spin/style/index.js +1 -1
- package/dist/node_modules/antd/es/style/compact-item-vertical.cjs +3 -6
- package/dist/node_modules/antd/es/style/compact-item-vertical.js +3 -6
- package/dist/node_modules/antd/es/style/compact-item.cjs +8 -10
- package/dist/node_modules/antd/es/style/compact-item.js +8 -10
- package/dist/node_modules/antd/es/style/index.cjs +16 -13
- package/dist/node_modules/antd/es/style/index.js +16 -13
- package/dist/node_modules/antd/es/style/motion/motion.cjs +2 -1
- package/dist/node_modules/antd/es/style/motion/motion.js +2 -1
- package/dist/node_modules/antd/es/switch/index.cjs +3 -3
- package/dist/node_modules/antd/es/switch/index.js +3 -3
- package/dist/node_modules/antd/es/table/InternalTable.cjs +2 -1
- package/dist/node_modules/antd/es/table/InternalTable.js +2 -1
- package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.cjs +64 -51
- package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +66 -53
- package/dist/node_modules/antd/es/table/hooks/useFilter/index.cjs +30 -20
- package/dist/node_modules/antd/es/table/hooks/useFilter/index.js +30 -20
- package/dist/node_modules/antd/es/table/hooks/usePagination.js +2 -2
- package/dist/node_modules/antd/es/table/hooks/useSelection.cjs +34 -29
- package/dist/node_modules/antd/es/table/hooks/useSelection.js +34 -29
- package/dist/node_modules/antd/es/table/hooks/useSorter.cjs +44 -26
- package/dist/node_modules/antd/es/table/hooks/useSorter.js +44 -26
- package/dist/node_modules/antd/es/table/style/filter.cjs +2 -2
- package/dist/node_modules/antd/es/table/style/filter.js +2 -2
- package/dist/node_modules/antd/es/table/style/index.cjs +1 -3
- package/dist/node_modules/antd/es/table/style/index.js +1 -3
- package/dist/node_modules/antd/es/table/style/sticky.cjs +1 -1
- package/dist/node_modules/antd/es/table/style/sticky.js +1 -1
- package/dist/node_modules/antd/es/tabs/hooks/useAnimateConfig.cjs +5 -4
- package/dist/node_modules/antd/es/tabs/hooks/useAnimateConfig.js +5 -4
- package/dist/node_modules/antd/es/tabs/hooks/useLegacyItems.cjs +1 -8
- package/dist/node_modules/antd/es/tabs/hooks/useLegacyItems.js +1 -8
- package/dist/node_modules/antd/es/tabs/index.cjs +10 -20
- package/dist/node_modules/antd/es/tabs/index.js +10 -20
- package/dist/node_modules/antd/es/tabs/style/index.cjs +14 -42
- package/dist/node_modules/antd/es/tabs/style/index.js +14 -42
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.cjs +5 -4
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.js +5 -4
- package/dist/node_modules/antd/es/theme/useToken.cjs +13 -1
- package/dist/node_modules/antd/es/theme/useToken.js +13 -1
- package/dist/node_modules/antd/es/theme/util/useResetIconStyle.cjs +1 -1
- package/dist/node_modules/antd/es/theme/util/useResetIconStyle.js +1 -1
- package/dist/node_modules/antd/es/tooltip/index.cjs +5 -6
- package/dist/node_modules/antd/es/tooltip/index.js +5 -6
- package/dist/node_modules/antd/es/tooltip/style/index.cjs +17 -13
- package/dist/node_modules/antd/es/tooltip/style/index.js +17 -13
- package/dist/node_modules/antd/es/tooltip/util.cjs +0 -5
- package/dist/node_modules/antd/es/tooltip/util.js +0 -5
- package/dist/node_modules/antd/es/tree/DirectoryTree.cjs +5 -4
- package/dist/node_modules/antd/es/tree/DirectoryTree.js +5 -4
- package/dist/node_modules/antd/es/tree/style/directory.cjs +48 -50
- package/dist/node_modules/antd/es/tree/style/directory.js +48 -50
- package/dist/node_modules/antd/es/tree/style/index.cjs +13 -12
- package/dist/node_modules/antd/es/tree/style/index.js +13 -12
- package/dist/node_modules/antd/es/tree/utils/dictUtil.cjs +8 -7
- package/dist/node_modules/antd/es/tree/utils/dictUtil.js +8 -7
- package/dist/node_modules/antd/es/tree/utils/iconUtil.cjs +2 -3
- package/dist/node_modules/antd/es/tree/utils/iconUtil.js +2 -3
- package/dist/node_modules/antd/es/typography/Base/CopyBtn.cjs +13 -13
- package/dist/node_modules/antd/es/typography/Base/CopyBtn.js +13 -13
- package/dist/node_modules/antd/es/typography/Base/Ellipsis.cjs +5 -4
- package/dist/node_modules/antd/es/typography/Base/Ellipsis.js +5 -4
- package/dist/node_modules/antd/es/typography/Base/EllipsisTooltip.cjs +7 -6
- package/dist/node_modules/antd/es/typography/Base/EllipsisTooltip.js +7 -6
- package/dist/node_modules/antd/es/typography/Base/index.cjs +16 -16
- package/dist/node_modules/antd/es/typography/Base/index.js +16 -16
- package/dist/node_modules/antd/es/typography/Editable.cjs +16 -13
- package/dist/node_modules/antd/es/typography/Editable.js +16 -13
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.cjs +5 -4
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.js +5 -4
- package/dist/node_modules/antd/es/typography/style/index.cjs +6 -6
- package/dist/node_modules/antd/es/typography/style/index.js +6 -6
- package/dist/node_modules/antd/es/typography/style/mixins.cjs +2 -2
- package/dist/node_modules/antd/es/typography/style/mixins.js +2 -2
- package/dist/node_modules/antd/es/version/version.cjs +1 -1
- package/dist/node_modules/antd/es/version/version.js +1 -1
- package/dist/node_modules/d3-ease/src/elastic.cjs +2 -2
- package/dist/node_modules/d3-ease/src/elastic.js +2 -2
- package/dist/node_modules/d3-interpolate/src/rgb.cjs +2 -2
- package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
- package/dist/node_modules/d3-shape/src/curve/cardinal.cjs +2 -2
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +2 -2
- package/dist/node_modules/dayjs/dayjs.min.cjs +13 -13
- package/dist/node_modules/dayjs/dayjs.min.js +13 -13
- package/dist/node_modules/dayjs/plugin/advancedFormat.cjs +5 -5
- package/dist/node_modules/dayjs/plugin/advancedFormat.js +5 -5
- package/dist/node_modules/dayjs/plugin/customParseFormat.cjs +15 -15
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +15 -15
- package/dist/node_modules/dayjs/plugin/localeData.cjs +11 -11
- package/dist/node_modules/dayjs/plugin/localeData.js +11 -11
- package/dist/node_modules/dayjs/plugin/weekOfYear.cjs +3 -3
- package/dist/node_modules/dayjs/plugin/weekOfYear.js +3 -3
- package/dist/node_modules/dayjs/plugin/weekYear.cjs +3 -3
- package/dist/node_modules/dayjs/plugin/weekYear.js +3 -3
- package/dist/node_modules/dayjs/plugin/weekday.cjs +3 -3
- package/dist/node_modules/dayjs/plugin/weekday.js +3 -3
- package/dist/node_modules/engine.io-client/build/esm/transports/polling-xhr.cjs +2 -2
- package/dist/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +2 -2
- package/dist/node_modules/rc-field-form/es/Field.cjs +2 -2
- package/dist/node_modules/rc-field-form/es/Field.js +2 -2
- package/dist/node_modules/rc-field-form/es/utils/NameMap.cjs +2 -2
- package/dist/node_modules/rc-field-form/es/utils/NameMap.js +2 -2
- package/dist/node_modules/rc-field-form/es/utils/validateUtil.cjs +2 -2
- package/dist/node_modules/rc-field-form/es/utils/validateUtil.js +2 -2
- package/dist/node_modules/rc-input/es/Input.cjs +1 -2
- package/dist/node_modules/rc-input/es/Input.js +1 -2
- package/dist/node_modules/rc-menu/es/MenuItem.cjs +2 -2
- package/dist/node_modules/rc-menu/es/MenuItem.js +2 -2
- package/dist/node_modules/rc-motion/es/CSSMotionList.cjs +2 -2
- package/dist/node_modules/rc-motion/es/CSSMotionList.js +2 -2
- package/dist/node_modules/rc-motion/es/DomWrapper.cjs +2 -2
- package/dist/node_modules/rc-motion/es/DomWrapper.js +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.cjs +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.js +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useNextFrame.cjs +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useNextFrame.js +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useStepQueue.cjs +2 -2
- package/dist/node_modules/rc-motion/es/hooks/useStepQueue.js +2 -2
- package/dist/node_modules/rc-picker/es/PickerInput/Selector/MaskFormat.cjs +2 -2
- package/dist/node_modules/rc-picker/es/PickerInput/Selector/MaskFormat.js +2 -2
- package/dist/node_modules/rc-progress/es/hooks/useId.cjs +2 -2
- package/dist/node_modules/rc-progress/es/hooks/useId.js +2 -2
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.cjs +2 -2
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +2 -2
- package/dist/node_modules/rc-select/es/OptionList.cjs +1 -1
- package/dist/node_modules/rc-select/es/OptionList.js +1 -1
- package/dist/node_modules/rc-select/es/Selector/Input.cjs +47 -8
- package/dist/node_modules/rc-select/es/Selector/Input.js +47 -8
- package/dist/node_modules/rc-select/es/hooks/useCache.cjs +2 -2
- package/dist/node_modules/rc-select/es/hooks/useCache.js +2 -2
- package/dist/node_modules/rc-select/es/hooks/useFilterOptions.cjs +2 -2
- package/dist/node_modules/rc-select/es/hooks/useFilterOptions.js +2 -2
- package/dist/node_modules/rc-table/es/Body/BodyRow.cjs +8 -22
- package/dist/node_modules/rc-table/es/Body/BodyRow.js +8 -22
- package/dist/node_modules/rc-table/es/Body/ExpandedRow.cjs +3 -3
- package/dist/node_modules/rc-table/es/Body/ExpandedRow.js +3 -3
- package/dist/node_modules/rc-table/es/Body/MeasureCell.cjs +1 -2
- package/dist/node_modules/rc-table/es/Body/MeasureCell.js +1 -2
- package/dist/node_modules/rc-table/es/Body/MeasureRow.cjs +5 -10
- package/dist/node_modules/rc-table/es/Body/MeasureRow.js +5 -10
- package/dist/node_modules/rc-table/es/Body/index.cjs +6 -24
- package/dist/node_modules/rc-table/es/Body/index.js +6 -24
- package/dist/node_modules/rc-table/es/FixedHolder/index.cjs +4 -3
- package/dist/node_modules/rc-table/es/FixedHolder/index.js +4 -3
- package/dist/node_modules/rc-table/es/Table.cjs +15 -17
- package/dist/node_modules/rc-table/es/Table.js +16 -18
- package/dist/node_modules/rc-table/es/hooks/useColumns/index.cjs +4 -10
- package/dist/node_modules/rc-table/es/hooks/useColumns/index.js +4 -10
- package/dist/node_modules/rc-table/es/hooks/useFlattenRecords.cjs +3 -5
- package/dist/node_modules/rc-table/es/hooks/useFlattenRecords.js +3 -5
- package/dist/node_modules/rc-table/es/hooks/useFrame.js +1 -1
- package/dist/node_modules/rc-tabs/es/TabNavList/index.cjs +21 -30
- package/dist/node_modules/rc-tabs/es/TabNavList/index.js +22 -31
- package/dist/node_modules/rc-tabs/es/hooks/useIndicator.cjs +2 -9
- package/dist/node_modules/rc-tabs/es/hooks/useIndicator.js +2 -9
- package/dist/node_modules/rc-tabs/es/hooks/useVisibleRange.cjs +1 -1
- package/dist/node_modules/rc-tabs/es/hooks/useVisibleRange.js +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +13 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.js +13 -1
- package/dist/node_modules/rc-tree/es/Tree.cjs +2 -2
- package/dist/node_modules/rc-tree/es/Tree.js +2 -2
- package/dist/node_modules/rc-util/es/Dom/isVisible.cjs +2 -2
- package/dist/node_modules/rc-util/es/Dom/isVisible.js +2 -2
- package/dist/node_modules/rc-util/es/isMobile.cjs +2 -2
- package/dist/node_modules/rc-util/es/isMobile.js +2 -2
- package/dist/node_modules/rc-virtual-list/es/List.cjs +2 -3
- package/dist/node_modules/rc-virtual-list/es/List.js +2 -3
- package/dist/node_modules/rc-virtual-list/es/ScrollBar.cjs +23 -21
- package/dist/node_modules/rc-virtual-list/es/ScrollBar.js +23 -21
- package/dist/node_modules/rc-virtual-list/es/hooks/useOriginScroll.cjs +2 -2
- package/dist/node_modules/rc-virtual-list/es/hooks/useOriginScroll.js +2 -2
- package/dist/node_modules/rc-virtual-list/es/hooks/useScrollDrag.cjs +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useScrollDrag.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/CacheMap.cjs +6 -6
- package/dist/node_modules/rc-virtual-list/es/utils/CacheMap.js +6 -6
- package/dist/node_modules/react-icons/hi/index.cjs +0 -16
- package/dist/node_modules/react-icons/hi/index.js +0 -16
- package/dist/node_modules/react-toastify/dist/ReactToastify.css.cjs +1 -0
- package/dist/node_modules/react-toastify/dist/ReactToastify.css.js +1 -0
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.cjs +26 -26
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +26 -26
- package/dist/node_modules/unified/lib/callable-instance.cjs +2 -2
- package/dist/node_modules/unified/lib/callable-instance.js +2 -2
- package/dist/node_modules/unist-util-is/lib/index.cjs +2 -2
- package/dist/node_modules/unist-util-is/lib/index.js +2 -2
- package/dist/node_modules/vfile-message/lib/index.cjs +5 -5
- package/dist/node_modules/vfile-message/lib/index.js +5 -5
- package/dist/providers/ToastProvider.cjs +1 -1
- package/dist/providers/ToastProvider.js +1 -1
- package/dist/styles/global-styles.cjs +6 -6
- package/dist/styles/global-styles.js +6 -6
- package/dist/utils/icon-util.cjs +0 -19
- package/dist/utils/icon-util.js +1 -20
- package/package.json +1 -2
- package/dist/components/Button/IconButton.cjs +0 -29
- package/dist/components/Button/IconButton.js +0 -30
- package/dist/components/Button/icon-button-styles.cjs +0 -76
- package/dist/components/Button/icon-button-styles.js +0 -77
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.cjs +0 -162
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.js +0 -163
- package/dist/components/Table/TableControls/SecondaryTableControlsRow.cjs +0 -80
- package/dist/components/Table/TableControls/SecondaryTableControlsRow.js +0 -81
- package/dist/components/Table/TableControls/TableControls.cjs +0 -38
- package/dist/components/Table/TableControls/TableControls.js +0 -39
- package/dist/components/Table/TableWithControls/TableWithControls.cjs +0 -41
- package/dist/components/Table/TableWithControls/TableWithControls.js +0 -42
- package/dist/node_modules/@babel/runtime/helpers/esm/OverloadYield.cjs +0 -5
- package/dist/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/esm/regenerator.cjs +0 -78
- package/dist/node_modules/@babel/runtime/helpers/esm/regenerator.js +0 -79
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.cjs +0 -9
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.cjs +0 -7
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.cjs +0 -33
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +0 -34
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.cjs +0 -23
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +0 -24
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.cjs +0 -10
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +0 -11
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorValues.cjs +0 -19
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +0 -20
- package/dist/node_modules/antd/es/_util/convertToTooltipProps.cjs +0 -14
- package/dist/node_modules/antd/es/_util/convertToTooltipProps.js +0 -15
- package/dist/node_modules/antd/es/_util/hooks/useMergeSemantic/index.cjs +0 -80
- package/dist/node_modules/antd/es/_util/hooks/useMergeSemantic/index.js +0 -61
- package/dist/node_modules/antd/es/_util/mediaQueryUtil.cjs +0 -17
- package/dist/node_modules/antd/es/_util/mediaQueryUtil.js +0 -18
- package/dist/node_modules/antd/es/color-picker/util.cjs +0 -12
- package/dist/node_modules/antd/es/color-picker/util.js +0 -13
- package/dist/node_modules/antd/es/date-picker/hooks/useMergedPickerSemantic.cjs +0 -50
- package/dist/node_modules/antd/es/date-picker/hooks/useMergedPickerSemantic.js +0 -32
- package/dist/node_modules/antd/es/select/usePopupRender.cjs +0 -14
- package/dist/node_modules/antd/es/select/usePopupRender.js +0 -15
- package/dist/node_modules/rc-util/es/composeProps.cjs +0 -20
- package/dist/node_modules/rc-util/es/composeProps.js +0 -21
- package/dist/node_modules/react-icons/fi/index.cjs +0 -7
- package/dist/node_modules/react-icons/fi/index.js +0 -8
- package/dist/node_modules/react-icons/hi2/index.cjs +0 -7
- package/dist/node_modules/react-icons/hi2/index.js +0 -8
- package/dist/node_modules/react-icons/lu/index.cjs +0 -7
- package/dist/node_modules/react-icons/lu/index.js +0 -8
- package/dist/node_modules/react-icons/tb/index.cjs +0 -7
- package/dist/node_modules/react-icons/tb/index.js +0 -8
|
@@ -42,7 +42,7 @@ const Input = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
42
42
|
styles,
|
|
43
43
|
rootClassName,
|
|
44
44
|
onChange,
|
|
45
|
-
classNames:
|
|
45
|
+
classNames: classes,
|
|
46
46
|
variant: customVariant
|
|
47
47
|
} = props, rest = __rest(props, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
|
|
48
48
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -132,12 +132,12 @@ const Input = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
132
132
|
form: true,
|
|
133
133
|
space: true
|
|
134
134
|
}, addonAfter),
|
|
135
|
-
classNames: Object.assign(Object.assign(Object.assign({},
|
|
135
|
+
classNames: Object.assign(Object.assign(Object.assign({}, classes), contextClassNames), {
|
|
136
136
|
input: classNames({
|
|
137
137
|
[`${prefixCls}-sm`]: mergedSize === "small",
|
|
138
138
|
[`${prefixCls}-lg`]: mergedSize === "large",
|
|
139
139
|
[`${prefixCls}-rtl`]: direction === "rtl"
|
|
140
|
-
},
|
|
140
|
+
}, classes === null || classes === void 0 ? void 0 : classes.input, contextClassNames.input, hashId),
|
|
141
141
|
variant: classNames({
|
|
142
142
|
[`${prefixCls}-${variant}`]: enableVariantCls
|
|
143
143
|
}, getStatusClassNames(prefixCls, mergedStatus)),
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var React = require("react");
|
|
3
|
-
var index = require("../../../../../_virtual/index.cjs");
|
|
4
3
|
var raf = require("../../../../rc-util/es/raf.cjs");
|
|
5
|
-
require("../../config-provider/index.cjs");
|
|
6
4
|
var Input = require("../Input.cjs");
|
|
7
|
-
var context = require("../../config-provider/context.cjs");
|
|
8
5
|
function _interopNamespaceDefault(e) {
|
|
9
6
|
var n = /* @__PURE__ */ Object.create(null);
|
|
10
7
|
if (e) {
|
|
@@ -34,23 +31,18 @@ var __rest = function(s, e) {
|
|
|
34
31
|
};
|
|
35
32
|
const OTPInput = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
36
33
|
const {
|
|
37
|
-
className,
|
|
38
34
|
value,
|
|
39
35
|
onChange,
|
|
40
36
|
onActiveChange,
|
|
41
|
-
index
|
|
37
|
+
index,
|
|
42
38
|
mask
|
|
43
|
-
} = props, restProps = __rest(props, ["
|
|
44
|
-
const
|
|
45
|
-
getPrefixCls
|
|
46
|
-
} = React__namespace.useContext(context.ConfigContext);
|
|
47
|
-
const prefixCls = getPrefixCls("otp");
|
|
48
|
-
const maskValue = typeof mask === "string" ? mask : value;
|
|
49
|
-
const inputRef = React__namespace.useRef(null);
|
|
50
|
-
React__namespace.useImperativeHandle(ref, () => inputRef.current);
|
|
39
|
+
} = props, restProps = __rest(props, ["value", "onChange", "onActiveChange", "index", "mask"]);
|
|
40
|
+
const internalValue = value && typeof mask === "string" ? mask : value;
|
|
51
41
|
const onInternalChange = (e) => {
|
|
52
|
-
onChange(index
|
|
42
|
+
onChange(index, e.target.value);
|
|
53
43
|
};
|
|
44
|
+
const inputRef = React__namespace.useRef(null);
|
|
45
|
+
React__namespace.useImperativeHandle(ref, () => inputRef.current);
|
|
54
46
|
const syncSelection = () => {
|
|
55
47
|
raf(() => {
|
|
56
48
|
var _a;
|
|
@@ -67,9 +59,9 @@ const OTPInput = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
67
59
|
metaKey
|
|
68
60
|
} = event;
|
|
69
61
|
if (key === "ArrowLeft") {
|
|
70
|
-
onActiveChange(index
|
|
62
|
+
onActiveChange(index - 1);
|
|
71
63
|
} else if (key === "ArrowRight") {
|
|
72
|
-
onActiveChange(index
|
|
64
|
+
onActiveChange(index + 1);
|
|
73
65
|
} else if (key === "z" && (ctrlKey || metaKey)) {
|
|
74
66
|
event.preventDefault();
|
|
75
67
|
}
|
|
@@ -77,31 +69,21 @@ const OTPInput = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
77
69
|
};
|
|
78
70
|
const onInternalKeyUp = (e) => {
|
|
79
71
|
if (e.key === "Backspace" && !value) {
|
|
80
|
-
onActiveChange(index
|
|
72
|
+
onActiveChange(index - 1);
|
|
81
73
|
}
|
|
82
74
|
syncSelection();
|
|
83
75
|
};
|
|
84
|
-
return /* @__PURE__ */ React__namespace.createElement(
|
|
85
|
-
className: `${prefixCls}-input-wrapper`,
|
|
86
|
-
role: "presentation"
|
|
87
|
-
}, mask && value !== "" && value !== void 0 && /* @__PURE__ */ React__namespace.createElement("span", {
|
|
88
|
-
className: `${prefixCls}-mask-icon`,
|
|
89
|
-
"aria-hidden": "true"
|
|
90
|
-
}, maskValue), /* @__PURE__ */ React__namespace.createElement(Input.default, Object.assign({
|
|
91
|
-
"aria-label": `OTP Input ${index$1 + 1}`,
|
|
76
|
+
return /* @__PURE__ */ React__namespace.createElement(Input.default, Object.assign({
|
|
92
77
|
type: mask === true ? "password" : "text"
|
|
93
78
|
}, restProps, {
|
|
94
79
|
ref: inputRef,
|
|
95
|
-
value,
|
|
80
|
+
value: internalValue,
|
|
96
81
|
onInput: onInternalChange,
|
|
97
82
|
onFocus: syncSelection,
|
|
98
83
|
onKeyDown: onInternalKeyDown,
|
|
99
84
|
onKeyUp: onInternalKeyUp,
|
|
100
85
|
onMouseDown: syncSelection,
|
|
101
|
-
onMouseUp: syncSelection
|
|
102
|
-
|
|
103
|
-
[`${prefixCls}-mask-input`]: mask
|
|
104
|
-
})
|
|
105
|
-
})));
|
|
86
|
+
onMouseUp: syncSelection
|
|
87
|
+
}));
|
|
106
88
|
});
|
|
107
89
|
module.exports = OTPInput;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import classNames from "../../../../../_virtual/index.js";
|
|
3
2
|
import wrapperRaf from "../../../../rc-util/es/raf.js";
|
|
4
|
-
import "../../config-provider/index.js";
|
|
5
3
|
import Input from "../Input.js";
|
|
6
|
-
import { ConfigContext } from "../../config-provider/context.js";
|
|
7
4
|
var __rest = function(s, e) {
|
|
8
5
|
var t = {};
|
|
9
6
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -14,23 +11,18 @@ var __rest = function(s, e) {
|
|
|
14
11
|
};
|
|
15
12
|
const OTPInput = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
16
13
|
const {
|
|
17
|
-
className,
|
|
18
14
|
value,
|
|
19
15
|
onChange,
|
|
20
16
|
onActiveChange,
|
|
21
17
|
index,
|
|
22
18
|
mask
|
|
23
|
-
} = props, restProps = __rest(props, ["
|
|
24
|
-
const
|
|
25
|
-
getPrefixCls
|
|
26
|
-
} = React.useContext(ConfigContext);
|
|
27
|
-
const prefixCls = getPrefixCls("otp");
|
|
28
|
-
const maskValue = typeof mask === "string" ? mask : value;
|
|
29
|
-
const inputRef = React.useRef(null);
|
|
30
|
-
React.useImperativeHandle(ref, () => inputRef.current);
|
|
19
|
+
} = props, restProps = __rest(props, ["value", "onChange", "onActiveChange", "index", "mask"]);
|
|
20
|
+
const internalValue = value && typeof mask === "string" ? mask : value;
|
|
31
21
|
const onInternalChange = (e) => {
|
|
32
22
|
onChange(index, e.target.value);
|
|
33
23
|
};
|
|
24
|
+
const inputRef = React.useRef(null);
|
|
25
|
+
React.useImperativeHandle(ref, () => inputRef.current);
|
|
34
26
|
const syncSelection = () => {
|
|
35
27
|
wrapperRaf(() => {
|
|
36
28
|
var _a;
|
|
@@ -61,28 +53,18 @@ const OTPInput = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
61
53
|
}
|
|
62
54
|
syncSelection();
|
|
63
55
|
};
|
|
64
|
-
return /* @__PURE__ */ React.createElement(
|
|
65
|
-
className: `${prefixCls}-input-wrapper`,
|
|
66
|
-
role: "presentation"
|
|
67
|
-
}, mask && value !== "" && value !== void 0 && /* @__PURE__ */ React.createElement("span", {
|
|
68
|
-
className: `${prefixCls}-mask-icon`,
|
|
69
|
-
"aria-hidden": "true"
|
|
70
|
-
}, maskValue), /* @__PURE__ */ React.createElement(Input, Object.assign({
|
|
71
|
-
"aria-label": `OTP Input ${index + 1}`,
|
|
56
|
+
return /* @__PURE__ */ React.createElement(Input, Object.assign({
|
|
72
57
|
type: mask === true ? "password" : "text"
|
|
73
58
|
}, restProps, {
|
|
74
59
|
ref: inputRef,
|
|
75
|
-
value,
|
|
60
|
+
value: internalValue,
|
|
76
61
|
onInput: onInternalChange,
|
|
77
62
|
onFocus: syncSelection,
|
|
78
63
|
onKeyDown: onInternalKeyDown,
|
|
79
64
|
onKeyUp: onInternalKeyUp,
|
|
80
65
|
onMouseDown: syncSelection,
|
|
81
|
-
onMouseUp: syncSelection
|
|
82
|
-
|
|
83
|
-
[`${prefixCls}-mask-input`]: mask
|
|
84
|
-
})
|
|
85
|
-
})));
|
|
66
|
+
onMouseUp: syncSelection
|
|
67
|
+
}));
|
|
86
68
|
});
|
|
87
69
|
export {
|
|
88
70
|
OTPInput as default
|
|
@@ -184,8 +184,7 @@ const OTP = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
184
184
|
[`${prefixCls}-sm`]: mergedSize === "small",
|
|
185
185
|
[`${prefixCls}-lg`]: mergedSize === "large",
|
|
186
186
|
[`${prefixCls}-rtl`]: direction === "rtl"
|
|
187
|
-
}, cssVarCls, hashId)
|
|
188
|
-
role: "group"
|
|
187
|
+
}, cssVarCls, hashId)
|
|
189
188
|
}), /* @__PURE__ */ React__namespace.createElement(context$1.FormItemInputContext.Provider, {
|
|
190
189
|
value: proxyFormContext
|
|
191
190
|
}, Array.from({
|
|
@@ -164,8 +164,7 @@ const OTP = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
164
164
|
[`${prefixCls}-sm`]: mergedSize === "small",
|
|
165
165
|
[`${prefixCls}-lg`]: mergedSize === "large",
|
|
166
166
|
[`${prefixCls}-rtl`]: direction === "rtl"
|
|
167
|
-
}, cssVarCls, hashId)
|
|
168
|
-
role: "group"
|
|
167
|
+
}, cssVarCls, hashId)
|
|
169
168
|
}), /* @__PURE__ */ React.createElement(FormItemInputContext.Provider, {
|
|
170
169
|
value: proxyFormContext
|
|
171
170
|
}, Array.from({
|
|
@@ -47,8 +47,7 @@ const Password = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
47
47
|
disabled: customDisabled,
|
|
48
48
|
action = "click",
|
|
49
49
|
visibilityToggle = true,
|
|
50
|
-
iconRender = defaultIconRender
|
|
51
|
-
suffix
|
|
50
|
+
iconRender = defaultIconRender
|
|
52
51
|
} = props;
|
|
53
52
|
const disabled = React__namespace.useContext(DisabledContext.default);
|
|
54
53
|
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
|
|
@@ -110,7 +109,7 @@ const Password = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
110
109
|
type: visible ? "text" : "password",
|
|
111
110
|
className: inputClassName,
|
|
112
111
|
prefixCls: inputPrefixCls,
|
|
113
|
-
suffix:
|
|
112
|
+
suffix: suffixIcon
|
|
114
113
|
});
|
|
115
114
|
if (size) {
|
|
116
115
|
omittedProps.size = size;
|
|
@@ -28,8 +28,7 @@ const Password = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
28
28
|
disabled: customDisabled,
|
|
29
29
|
action = "click",
|
|
30
30
|
visibilityToggle = true,
|
|
31
|
-
iconRender = defaultIconRender
|
|
32
|
-
suffix
|
|
31
|
+
iconRender = defaultIconRender
|
|
33
32
|
} = props;
|
|
34
33
|
const disabled = React.useContext(DisabledContext);
|
|
35
34
|
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
|
|
@@ -91,7 +90,7 @@ const Password = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
91
90
|
type: visible ? "text" : "password",
|
|
92
91
|
className: inputClassName,
|
|
93
92
|
prefixCls: inputPrefixCls,
|
|
94
|
-
suffix:
|
|
93
|
+
suffix: suffixIcon
|
|
95
94
|
});
|
|
96
95
|
if (size) {
|
|
97
96
|
omittedProps.size = size;
|
|
@@ -51,10 +51,8 @@ const Search = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
51
51
|
onSearch: customOnSearch,
|
|
52
52
|
onChange: customOnChange,
|
|
53
53
|
onCompositionStart,
|
|
54
|
-
onCompositionEnd
|
|
55
|
-
|
|
56
|
-
onPressEnter: customOnPressEnter
|
|
57
|
-
} = props, restProps = __rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd", "variant", "onPressEnter"]);
|
|
54
|
+
onCompositionEnd
|
|
55
|
+
} = props, restProps = __rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
|
|
58
56
|
const {
|
|
59
57
|
getPrefixCls,
|
|
60
58
|
direction
|
|
@@ -96,7 +94,6 @@ const Search = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
96
94
|
if (composedRef.current || loading) {
|
|
97
95
|
return;
|
|
98
96
|
}
|
|
99
|
-
customOnPressEnter === null || customOnPressEnter === void 0 ? void 0 : customOnPressEnter(e);
|
|
100
97
|
onSearch(e);
|
|
101
98
|
};
|
|
102
99
|
const searchIcon = typeof enterButton === "boolean" ? /* @__PURE__ */ React__namespace.createElement(SearchOutlined, null) : null;
|
|
@@ -120,15 +117,14 @@ const Search = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
120
117
|
} else {
|
|
121
118
|
button$1 = /* @__PURE__ */ React__namespace.createElement(button, {
|
|
122
119
|
className: btnClassName,
|
|
123
|
-
|
|
120
|
+
type: enterButton ? "primary" : void 0,
|
|
124
121
|
size,
|
|
125
122
|
disabled,
|
|
126
123
|
key: "enterButton",
|
|
127
124
|
onMouseDown,
|
|
128
125
|
onClick: onSearch,
|
|
129
126
|
loading,
|
|
130
|
-
icon: searchIcon
|
|
131
|
-
variant: variant === "borderless" || variant === "filled" || variant === "underlined" ? "text" : enterButton ? "solid" : void 0
|
|
127
|
+
icon: searchIcon
|
|
132
128
|
}, enterButton);
|
|
133
129
|
}
|
|
134
130
|
if (addonAfter) {
|
|
@@ -141,6 +137,11 @@ const Search = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
141
137
|
[`${prefixCls}-${size}`]: !!size,
|
|
142
138
|
[`${prefixCls}-with-button`]: !!enterButton
|
|
143
139
|
}, className);
|
|
140
|
+
const newProps = Object.assign(Object.assign({}, restProps), {
|
|
141
|
+
className: cls,
|
|
142
|
+
prefixCls: inputPrefixCls,
|
|
143
|
+
type: "search"
|
|
144
|
+
});
|
|
144
145
|
const handleOnCompositionStart = (e) => {
|
|
145
146
|
composedRef.current = true;
|
|
146
147
|
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
|
|
@@ -149,23 +150,18 @@ const Search = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
149
150
|
composedRef.current = false;
|
|
150
151
|
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
|
|
151
152
|
};
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
return /* @__PURE__ */ React__namespace.createElement(Input.default, Object.assign({
|
|
154
|
+
ref: ref.composeRef(inputRef, ref$1),
|
|
155
|
+
onPressEnter
|
|
156
|
+
}, newProps, {
|
|
156
157
|
size,
|
|
157
|
-
variant,
|
|
158
|
-
onPressEnter,
|
|
159
158
|
onCompositionStart: handleOnCompositionStart,
|
|
160
159
|
onCompositionEnd: handleOnCompositionEnd,
|
|
161
160
|
addonAfter: button$1,
|
|
162
161
|
suffix,
|
|
163
162
|
onChange,
|
|
164
163
|
disabled
|
|
165
|
-
});
|
|
166
|
-
return /* @__PURE__ */ React__namespace.createElement(Input.default, Object.assign({
|
|
167
|
-
ref: ref.composeRef(inputRef, ref$1)
|
|
168
|
-
}, inputProps));
|
|
164
|
+
}));
|
|
169
165
|
});
|
|
170
166
|
if (process.env.NODE_ENV !== "production") {
|
|
171
167
|
Search.displayName = "Search";
|
|
@@ -31,10 +31,8 @@ const Search = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
31
31
|
onSearch: customOnSearch,
|
|
32
32
|
onChange: customOnChange,
|
|
33
33
|
onCompositionStart,
|
|
34
|
-
onCompositionEnd
|
|
35
|
-
|
|
36
|
-
onPressEnter: customOnPressEnter
|
|
37
|
-
} = props, restProps = __rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd", "variant", "onPressEnter"]);
|
|
34
|
+
onCompositionEnd
|
|
35
|
+
} = props, restProps = __rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
|
|
38
36
|
const {
|
|
39
37
|
getPrefixCls,
|
|
40
38
|
direction
|
|
@@ -76,7 +74,6 @@ const Search = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
76
74
|
if (composedRef.current || loading) {
|
|
77
75
|
return;
|
|
78
76
|
}
|
|
79
|
-
customOnPressEnter === null || customOnPressEnter === void 0 ? void 0 : customOnPressEnter(e);
|
|
80
77
|
onSearch(e);
|
|
81
78
|
};
|
|
82
79
|
const searchIcon = typeof enterButton === "boolean" ? /* @__PURE__ */ React.createElement(RefIcon, null) : null;
|
|
@@ -100,15 +97,14 @@ const Search = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
100
97
|
} else {
|
|
101
98
|
button = /* @__PURE__ */ React.createElement(Button, {
|
|
102
99
|
className: btnClassName,
|
|
103
|
-
|
|
100
|
+
type: enterButton ? "primary" : void 0,
|
|
104
101
|
size,
|
|
105
102
|
disabled,
|
|
106
103
|
key: "enterButton",
|
|
107
104
|
onMouseDown,
|
|
108
105
|
onClick: onSearch,
|
|
109
106
|
loading,
|
|
110
|
-
icon: searchIcon
|
|
111
|
-
variant: variant === "borderless" || variant === "filled" || variant === "underlined" ? "text" : enterButton ? "solid" : void 0
|
|
107
|
+
icon: searchIcon
|
|
112
108
|
}, enterButton);
|
|
113
109
|
}
|
|
114
110
|
if (addonAfter) {
|
|
@@ -121,6 +117,11 @@ const Search = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
121
117
|
[`${prefixCls}-${size}`]: !!size,
|
|
122
118
|
[`${prefixCls}-with-button`]: !!enterButton
|
|
123
119
|
}, className);
|
|
120
|
+
const newProps = Object.assign(Object.assign({}, restProps), {
|
|
121
|
+
className: cls,
|
|
122
|
+
prefixCls: inputPrefixCls,
|
|
123
|
+
type: "search"
|
|
124
|
+
});
|
|
124
125
|
const handleOnCompositionStart = (e) => {
|
|
125
126
|
composedRef.current = true;
|
|
126
127
|
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
|
|
@@ -129,23 +130,18 @@ const Search = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
129
130
|
composedRef.current = false;
|
|
130
131
|
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
|
|
131
132
|
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
return /* @__PURE__ */ React.createElement(Input, Object.assign({
|
|
134
|
+
ref: composeRef(inputRef, ref),
|
|
135
|
+
onPressEnter
|
|
136
|
+
}, newProps, {
|
|
136
137
|
size,
|
|
137
|
-
variant,
|
|
138
|
-
onPressEnter,
|
|
139
138
|
onCompositionStart: handleOnCompositionStart,
|
|
140
139
|
onCompositionEnd: handleOnCompositionEnd,
|
|
141
140
|
addonAfter: button,
|
|
142
141
|
suffix,
|
|
143
142
|
onChange,
|
|
144
143
|
disabled
|
|
145
|
-
});
|
|
146
|
-
return /* @__PURE__ */ React.createElement(Input, Object.assign({
|
|
147
|
-
ref: composeRef(inputRef, ref)
|
|
148
|
-
}, inputProps));
|
|
144
|
+
}));
|
|
149
145
|
});
|
|
150
146
|
if (process.env.NODE_ENV !== "production") {
|
|
151
147
|
Search.displayName = "Search";
|
|
@@ -60,11 +60,8 @@ const TextArea = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
60
60
|
className,
|
|
61
61
|
style,
|
|
62
62
|
styles,
|
|
63
|
-
variant: customVariant
|
|
64
|
-
|
|
65
|
-
onMouseDown,
|
|
66
|
-
onResize
|
|
67
|
-
} = props, rest = __rest(props, ["prefixCls", "bordered", "size", "disabled", "status", "allowClear", "classNames", "rootClassName", "className", "style", "styles", "variant", "showCount", "onMouseDown", "onResize"]);
|
|
63
|
+
variant: customVariant
|
|
64
|
+
} = props, rest = __rest(props, ["prefixCls", "bordered", "size", "disabled", "status", "allowClear", "classNames", "rootClassName", "className", "style", "styles", "variant"]);
|
|
68
65
|
if (process.env.NODE_ENV !== "production") {
|
|
69
66
|
const {
|
|
70
67
|
deprecated
|
|
@@ -118,27 +115,6 @@ const TextArea = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
118
115
|
});
|
|
119
116
|
const [variant, enableVariantCls] = useVariants("textArea", customVariant, bordered);
|
|
120
117
|
const mergedAllowClear = getAllowClear(allowClear !== null && allowClear !== void 0 ? allowClear : contextAllowClear);
|
|
121
|
-
const [isMouseDown, setIsMouseDown] = React__namespace.useState(false);
|
|
122
|
-
const [resizeDirty, setResizeDirty] = React__namespace.useState(false);
|
|
123
|
-
const onInternalMouseDown = (e) => {
|
|
124
|
-
setIsMouseDown(true);
|
|
125
|
-
onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(e);
|
|
126
|
-
const onMouseUp = () => {
|
|
127
|
-
setIsMouseDown(false);
|
|
128
|
-
document.removeEventListener("mouseup", onMouseUp);
|
|
129
|
-
};
|
|
130
|
-
document.addEventListener("mouseup", onMouseUp);
|
|
131
|
-
};
|
|
132
|
-
const onInternalResize = (size) => {
|
|
133
|
-
var _a2, _b;
|
|
134
|
-
onResize === null || onResize === void 0 ? void 0 : onResize(size);
|
|
135
|
-
if (isMouseDown && typeof getComputedStyle === "function") {
|
|
136
|
-
const ele = (_b = (_a2 = innerRef.current) === null || _a2 === void 0 ? void 0 : _a2.nativeElement) === null || _b === void 0 ? void 0 : _b.querySelector("textarea");
|
|
137
|
-
if (ele && getComputedStyle(ele).resize === "both") {
|
|
138
|
-
setResizeDirty(true);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
118
|
return wrapSharedCSSVar(wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(TextArea$1, Object.assign({
|
|
143
119
|
autoComplete: contextAutoComplete
|
|
144
120
|
}, rest, {
|
|
@@ -146,21 +122,12 @@ const TextArea = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
146
122
|
styles: Object.assign(Object.assign({}, contextStyles), styles),
|
|
147
123
|
disabled: mergedDisabled,
|
|
148
124
|
allowClear: mergedAllowClear,
|
|
149
|
-
className: index$1(
|
|
150
|
-
cssVarCls,
|
|
151
|
-
rootCls,
|
|
152
|
-
className,
|
|
153
|
-
rootClassName,
|
|
154
|
-
compactItemClassnames,
|
|
155
|
-
contextClassName,
|
|
156
|
-
// Only for wrapper
|
|
157
|
-
resizeDirty && `${prefixCls}-textarea-affix-wrapper-resize-dirty`
|
|
158
|
-
),
|
|
125
|
+
className: index$1(cssVarCls, rootCls, className, rootClassName, compactItemClassnames, contextClassName),
|
|
159
126
|
classNames: Object.assign(Object.assign(Object.assign({}, classes), contextClassNames), {
|
|
160
127
|
textarea: index$1({
|
|
161
128
|
[`${prefixCls}-sm`]: mergedSize === "small",
|
|
162
129
|
[`${prefixCls}-lg`]: mergedSize === "large"
|
|
163
|
-
}, hashId, classes === null || classes === void 0 ? void 0 : classes.textarea, contextClassNames.textarea
|
|
130
|
+
}, hashId, classes === null || classes === void 0 ? void 0 : classes.textarea, contextClassNames.textarea),
|
|
164
131
|
variant: index$1({
|
|
165
132
|
[`${prefixCls}-${variant}`]: enableVariantCls
|
|
166
133
|
}, statusUtils.getStatusClassNames(prefixCls, mergedStatus)),
|
|
@@ -168,17 +135,14 @@ const TextArea = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
168
135
|
[`${prefixCls}-affix-wrapper-rtl`]: direction === "rtl",
|
|
169
136
|
[`${prefixCls}-affix-wrapper-sm`]: mergedSize === "small",
|
|
170
137
|
[`${prefixCls}-affix-wrapper-lg`]: mergedSize === "large",
|
|
171
|
-
[`${prefixCls}-textarea-show-count`]: showCount || ((_a = props.count) === null || _a === void 0 ? void 0 : _a.show)
|
|
138
|
+
[`${prefixCls}-textarea-show-count`]: props.showCount || ((_a = props.count) === null || _a === void 0 ? void 0 : _a.show)
|
|
172
139
|
}, hashId)
|
|
173
140
|
}),
|
|
174
141
|
prefixCls,
|
|
175
142
|
suffix: hasFeedback && /* @__PURE__ */ React__namespace.createElement("span", {
|
|
176
143
|
className: `${prefixCls}-textarea-suffix`
|
|
177
144
|
}, feedbackIcon),
|
|
178
|
-
|
|
179
|
-
ref: innerRef,
|
|
180
|
-
onResize: onInternalResize,
|
|
181
|
-
onMouseDown: onInternalMouseDown
|
|
145
|
+
ref: innerRef
|
|
182
146
|
}))));
|
|
183
147
|
});
|
|
184
148
|
module.exports = TextArea;
|
|
@@ -41,11 +41,8 @@ const TextArea = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
41
41
|
className,
|
|
42
42
|
style,
|
|
43
43
|
styles,
|
|
44
|
-
variant: customVariant
|
|
45
|
-
|
|
46
|
-
onMouseDown,
|
|
47
|
-
onResize
|
|
48
|
-
} = props, rest = __rest(props, ["prefixCls", "bordered", "size", "disabled", "status", "allowClear", "classNames", "rootClassName", "className", "style", "styles", "variant", "showCount", "onMouseDown", "onResize"]);
|
|
44
|
+
variant: customVariant
|
|
45
|
+
} = props, rest = __rest(props, ["prefixCls", "bordered", "size", "disabled", "status", "allowClear", "classNames", "rootClassName", "className", "style", "styles", "variant"]);
|
|
49
46
|
if (process.env.NODE_ENV !== "production") {
|
|
50
47
|
const {
|
|
51
48
|
deprecated
|
|
@@ -99,27 +96,6 @@ const TextArea = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
99
96
|
});
|
|
100
97
|
const [variant, enableVariantCls] = useVariant("textArea", customVariant, bordered);
|
|
101
98
|
const mergedAllowClear = getAllowClear(allowClear !== null && allowClear !== void 0 ? allowClear : contextAllowClear);
|
|
102
|
-
const [isMouseDown, setIsMouseDown] = React.useState(false);
|
|
103
|
-
const [resizeDirty, setResizeDirty] = React.useState(false);
|
|
104
|
-
const onInternalMouseDown = (e) => {
|
|
105
|
-
setIsMouseDown(true);
|
|
106
|
-
onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(e);
|
|
107
|
-
const onMouseUp = () => {
|
|
108
|
-
setIsMouseDown(false);
|
|
109
|
-
document.removeEventListener("mouseup", onMouseUp);
|
|
110
|
-
};
|
|
111
|
-
document.addEventListener("mouseup", onMouseUp);
|
|
112
|
-
};
|
|
113
|
-
const onInternalResize = (size) => {
|
|
114
|
-
var _a2, _b;
|
|
115
|
-
onResize === null || onResize === void 0 ? void 0 : onResize(size);
|
|
116
|
-
if (isMouseDown && typeof getComputedStyle === "function") {
|
|
117
|
-
const ele = (_b = (_a2 = innerRef.current) === null || _a2 === void 0 ? void 0 : _a2.nativeElement) === null || _b === void 0 ? void 0 : _b.querySelector("textarea");
|
|
118
|
-
if (ele && getComputedStyle(ele).resize === "both") {
|
|
119
|
-
setResizeDirty(true);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
99
|
return wrapSharedCSSVar(wrapCSSVar(/* @__PURE__ */ React.createElement(TextArea$1, Object.assign({
|
|
124
100
|
autoComplete: contextAutoComplete
|
|
125
101
|
}, rest, {
|
|
@@ -127,21 +103,12 @@ const TextArea = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
127
103
|
styles: Object.assign(Object.assign({}, contextStyles), styles),
|
|
128
104
|
disabled: mergedDisabled,
|
|
129
105
|
allowClear: mergedAllowClear,
|
|
130
|
-
className: classNames(
|
|
131
|
-
cssVarCls,
|
|
132
|
-
rootCls,
|
|
133
|
-
className,
|
|
134
|
-
rootClassName,
|
|
135
|
-
compactItemClassnames,
|
|
136
|
-
contextClassName,
|
|
137
|
-
// Only for wrapper
|
|
138
|
-
resizeDirty && `${prefixCls}-textarea-affix-wrapper-resize-dirty`
|
|
139
|
-
),
|
|
106
|
+
className: classNames(cssVarCls, rootCls, className, rootClassName, compactItemClassnames, contextClassName),
|
|
140
107
|
classNames: Object.assign(Object.assign(Object.assign({}, classes), contextClassNames), {
|
|
141
108
|
textarea: classNames({
|
|
142
109
|
[`${prefixCls}-sm`]: mergedSize === "small",
|
|
143
110
|
[`${prefixCls}-lg`]: mergedSize === "large"
|
|
144
|
-
}, hashId, classes === null || classes === void 0 ? void 0 : classes.textarea, contextClassNames.textarea
|
|
111
|
+
}, hashId, classes === null || classes === void 0 ? void 0 : classes.textarea, contextClassNames.textarea),
|
|
145
112
|
variant: classNames({
|
|
146
113
|
[`${prefixCls}-${variant}`]: enableVariantCls
|
|
147
114
|
}, getStatusClassNames(prefixCls, mergedStatus)),
|
|
@@ -149,17 +116,14 @@ const TextArea = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
149
116
|
[`${prefixCls}-affix-wrapper-rtl`]: direction === "rtl",
|
|
150
117
|
[`${prefixCls}-affix-wrapper-sm`]: mergedSize === "small",
|
|
151
118
|
[`${prefixCls}-affix-wrapper-lg`]: mergedSize === "large",
|
|
152
|
-
[`${prefixCls}-textarea-show-count`]: showCount || ((_a = props.count) === null || _a === void 0 ? void 0 : _a.show)
|
|
119
|
+
[`${prefixCls}-textarea-show-count`]: props.showCount || ((_a = props.count) === null || _a === void 0 ? void 0 : _a.show)
|
|
153
120
|
}, hashId)
|
|
154
121
|
}),
|
|
155
122
|
prefixCls,
|
|
156
123
|
suffix: hasFeedback && /* @__PURE__ */ React.createElement("span", {
|
|
157
124
|
className: `${prefixCls}-textarea-suffix`
|
|
158
125
|
}, feedbackIcon),
|
|
159
|
-
|
|
160
|
-
ref: innerRef,
|
|
161
|
-
onResize: onInternalResize,
|
|
162
|
-
onMouseDown: onInternalMouseDown
|
|
126
|
+
ref: innerRef
|
|
163
127
|
}))));
|
|
164
128
|
});
|
|
165
129
|
export {
|
|
@@ -66,6 +66,17 @@ const genBasicInputStyle = (token2) => Object.assign(Object.assign({
|
|
|
66
66
|
borderRadius: token2.borderRadius,
|
|
67
67
|
transition: `all ${token2.motionDurationMid}`
|
|
68
68
|
}, genPlaceholderStyle(token2.colorTextPlaceholder)), {
|
|
69
|
+
// Reset height for `textarea`s
|
|
70
|
+
"textarea&": {
|
|
71
|
+
maxWidth: "100%",
|
|
72
|
+
// prevent textarea resize from coming out of its container
|
|
73
|
+
height: "auto",
|
|
74
|
+
minHeight: token2.controlHeight,
|
|
75
|
+
lineHeight: token2.lineHeight,
|
|
76
|
+
verticalAlign: "bottom",
|
|
77
|
+
transition: `all ${token2.motionDurationSlow}, height 0s`,
|
|
78
|
+
resize: "vertical"
|
|
79
|
+
},
|
|
69
80
|
// Size
|
|
70
81
|
"&-lg": Object.assign({}, genInputLargeStyle(token2)),
|
|
71
82
|
"&-sm": Object.assign({}, genInputSmallStyle(token2)),
|
|
@@ -330,7 +341,7 @@ const genInputStyle = (token2) => {
|
|
|
330
341
|
}
|
|
331
342
|
},
|
|
332
343
|
'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration': {
|
|
333
|
-
appearance: "none"
|
|
344
|
+
"-webkit-appearance": "none"
|
|
334
345
|
}
|
|
335
346
|
})
|
|
336
347
|
};
|
|
@@ -356,7 +367,7 @@ const genAllowClearStyle = (token2) => {
|
|
|
356
367
|
outline: "none",
|
|
357
368
|
backgroundColor: "transparent",
|
|
358
369
|
"&:hover": {
|
|
359
|
-
color: token2.
|
|
370
|
+
color: token2.colorTextTertiary
|
|
360
371
|
},
|
|
361
372
|
"&:active": {
|
|
362
373
|
color: token2.colorText
|
|
@@ -427,8 +438,7 @@ const genAffixStyle = (token2) => {
|
|
|
427
438
|
}
|
|
428
439
|
},
|
|
429
440
|
"&-show-count-suffix": {
|
|
430
|
-
color: colorTextDescription
|
|
431
|
-
direction: "ltr"
|
|
441
|
+
color: colorTextDescription
|
|
432
442
|
},
|
|
433
443
|
"&-show-count-has-suffix": {
|
|
434
444
|
marginInlineEnd: token2.paddingXXS
|
|
@@ -553,7 +563,7 @@ const genSearchInputStyle = (token2) => {
|
|
|
553
563
|
[searchPrefixCls]: {
|
|
554
564
|
[componentCls]: {
|
|
555
565
|
"&:hover, &:focus": {
|
|
556
|
-
[`+ ${componentCls}-group-addon ${searchPrefixCls}-button:not(${antCls}-btn-
|
|
566
|
+
[`+ ${componentCls}-group-addon ${searchPrefixCls}-button:not(${antCls}-btn-primary)`]: {
|
|
557
567
|
borderInlineStartColor: token2.colorPrimaryHover
|
|
558
568
|
}
|
|
559
569
|
}
|
|
@@ -579,7 +589,7 @@ const genSearchInputStyle = (token2) => {
|
|
|
579
589
|
borderEndStartRadius: 0,
|
|
580
590
|
boxShadow: "none"
|
|
581
591
|
},
|
|
582
|
-
[`${searchPrefixCls}-button:not(${antCls}-btn-
|
|
592
|
+
[`${searchPrefixCls}-button:not(${antCls}-btn-primary)`]: {
|
|
583
593
|
color: token2.colorTextDescription,
|
|
584
594
|
"&:hover": {
|
|
585
595
|
color: token2.colorPrimaryHover
|
|
@@ -588,7 +598,10 @@ const genSearchInputStyle = (token2) => {
|
|
|
588
598
|
color: token2.colorPrimaryActive
|
|
589
599
|
},
|
|
590
600
|
[`&${antCls}-btn-loading::before`]: {
|
|
591
|
-
|
|
601
|
+
insetInlineStart: 0,
|
|
602
|
+
insetInlineEnd: 0,
|
|
603
|
+
insetBlockStart: 0,
|
|
604
|
+
insetBlockEnd: 0
|
|
592
605
|
}
|
|
593
606
|
}
|
|
594
607
|
}
|