@gobolt/genesis 0.3.9 → 0.3.11
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/Breadcrumb/Breadcrumb.types.d.ts +2 -0
- package/dist/components/Select/SelectTrigger.cjs +1 -2
- package/dist/components/Select/SelectTrigger.js +1 -2
- package/dist/components/Table/TableControls/PaginationNumber.cjs +1 -3
- package/dist/components/Table/TableControls/PaginationNumber.js +1 -3
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.cjs +2 -2
- package/dist/components/Table/TableControls/PrimaryTableControlsRow.js +2 -2
- package/dist/components/Table/TableWithControls/TableWithControls.cjs +2 -2
- package/dist/components/Table/TableWithControls/TableWithControls.d.ts +1 -1
- package/dist/components/Table/TableWithControls/TableWithControls.js +2 -2
- package/dist/components/Tabs/styles.d.ts +3 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.cjs +3 -2
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.js +3 -2
- 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 +1 -2
- package/dist/node_modules/@ant-design/cssinjs/es/extractStyle.js +4 -5
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.cjs +2 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCSSVarRegister.js +2 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.cjs +4 -5
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +4 -5
- 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 +1 -2
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.js +2 -3
- 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/OverloadYield.cjs +5 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regenerator.cjs +78 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regenerator.js +79 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.cjs +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.cjs +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.cjs +33 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +34 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.cjs +23 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +24 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.cjs +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.cjs +62 -275
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +62 -275
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorValues.cjs +19 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +20 -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 +2 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +2 -1
- package/dist/node_modules/@rc-component/trigger/es/index.cjs +3 -1
- package/dist/node_modules/@rc-component/trigger/es/index.js +3 -1
- 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 +1 -2
- package/dist/node_modules/antd/es/_util/colors.js +1 -2
- package/dist/node_modules/antd/es/_util/convertToTooltipProps.cjs +14 -0
- package/dist/node_modules/antd/es/_util/convertToTooltipProps.js +15 -0
- package/dist/node_modules/antd/es/_util/extendsObject.cjs +11 -13
- package/dist/node_modules/antd/es/_util/extendsObject.js +11 -13
- package/dist/node_modules/antd/es/_util/hooks/useMergeSemantic/index.cjs +80 -0
- package/dist/node_modules/antd/es/_util/hooks/useMergeSemantic/index.js +61 -0
- package/dist/node_modules/antd/es/_util/mediaQueryUtil.cjs +17 -0
- package/dist/node_modules/antd/es/_util/mediaQueryUtil.js +18 -0
- package/dist/node_modules/antd/es/_util/motion.cjs +13 -16
- package/dist/node_modules/antd/es/_util/motion.js +13 -16
- 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 +18 -20
- package/dist/node_modules/antd/es/_util/responsiveObserver.js +18 -20
- package/dist/node_modules/antd/es/_util/scrollTo.cjs +1 -2
- package/dist/node_modules/antd/es/_util/scrollTo.js +1 -2
- package/dist/node_modules/antd/es/_util/toList.cjs +5 -4
- package/dist/node_modules/antd/es/_util/toList.js +5 -4
- package/dist/node_modules/antd/es/_util/warning.cjs +8 -6
- package/dist/node_modules/antd/es/_util/warning.js +3 -2
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.cjs +10 -13
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +11 -14
- 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 +22 -28
- package/dist/node_modules/antd/es/avatar/Avatar.js +22 -28
- package/dist/node_modules/antd/es/avatar/AvatarGroup.cjs +2 -3
- package/dist/node_modules/antd/es/avatar/AvatarGroup.js +2 -3
- package/dist/node_modules/antd/es/avatar/style/index.cjs +14 -7
- package/dist/node_modules/antd/es/avatar/style/index.js +14 -7
- package/dist/node_modules/antd/es/breadcrumb/BreadcrumbSeparator.cjs +3 -4
- package/dist/node_modules/antd/es/breadcrumb/BreadcrumbSeparator.js +3 -4
- package/dist/node_modules/antd/es/button/DefaultLoadingIcon.cjs +4 -5
- package/dist/node_modules/antd/es/button/DefaultLoadingIcon.js +4 -5
- package/dist/node_modules/antd/es/button/button.cjs +20 -9
- package/dist/node_modules/antd/es/button/button.js +21 -10
- package/dist/node_modules/antd/es/button/style/index.cjs +15 -8
- package/dist/node_modules/antd/es/button/style/index.js +15 -8
- package/dist/node_modules/antd/es/button/style/token.cjs +1 -0
- package/dist/node_modules/antd/es/button/style/token.js +1 -0
- package/dist/node_modules/antd/es/card/Card.cjs +1 -2
- package/dist/node_modules/antd/es/card/Card.js +1 -2
- 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 +26 -27
- package/dist/node_modules/antd/es/checkbox/style/index.js +26 -27
- package/dist/node_modules/antd/es/color-picker/color.cjs +9 -12
- package/dist/node_modules/antd/es/color-picker/color.js +9 -12
- package/dist/node_modules/antd/es/color-picker/util.cjs +12 -0
- package/dist/node_modules/antd/es/color-picker/util.js +13 -0
- package/dist/node_modules/antd/es/config-provider/DisabledContext.cjs +4 -5
- package/dist/node_modules/antd/es/config-provider/DisabledContext.js +4 -5
- package/dist/node_modules/antd/es/config-provider/MotionWrapper.cjs +10 -3
- package/dist/node_modules/antd/es/config-provider/MotionWrapper.js +10 -3
- package/dist/node_modules/antd/es/config-provider/PropWarning.cjs +3 -4
- package/dist/node_modules/antd/es/config-provider/PropWarning.js +3 -4
- package/dist/node_modules/antd/es/config-provider/SizeContext.cjs +4 -5
- package/dist/node_modules/antd/es/config-provider/SizeContext.js +4 -5
- 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 +3 -2
- package/dist/node_modules/antd/es/config-provider/index.js +3 -2
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.cjs +23 -9
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js +23 -9
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.cjs +22 -10
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js +22 -10
- package/dist/node_modules/antd/es/date-picker/hooks/useMergedPickerSemantic.cjs +50 -0
- package/dist/node_modules/antd/es/date-picker/hooks/useMergedPickerSemantic.js +32 -0
- package/dist/node_modules/antd/es/date-picker/style/index.cjs +18 -16
- package/dist/node_modules/antd/es/date-picker/style/index.js +18 -16
- package/dist/node_modules/antd/es/date-picker/style/panel.cjs +30 -40
- package/dist/node_modules/antd/es/date-picker/style/panel.js +30 -40
- package/dist/node_modules/antd/es/dropdown/dropdown-button.cjs +10 -4
- package/dist/node_modules/antd/es/dropdown/dropdown-button.js +10 -4
- package/dist/node_modules/antd/es/dropdown/dropdown.cjs +25 -23
- package/dist/node_modules/antd/es/dropdown/dropdown.js +25 -23
- 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 +11 -9
- package/dist/node_modules/antd/es/empty/index.js +11 -9
- 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 +13 -16
- package/dist/node_modules/antd/es/form/ErrorList.js +13 -16
- package/dist/node_modules/antd/es/form/Form.cjs +4 -3
- package/dist/node_modules/antd/es/form/Form.js +2 -1
- package/dist/node_modules/antd/es/form/FormItem/ItemHolder.cjs +9 -7
- package/dist/node_modules/antd/es/form/FormItem/ItemHolder.js +9 -7
- package/dist/node_modules/antd/es/form/FormItem/StatusProvider.cjs +16 -13
- package/dist/node_modules/antd/es/form/FormItem/StatusProvider.js +16 -13
- package/dist/node_modules/antd/es/form/FormItem/index.cjs +8 -12
- package/dist/node_modules/antd/es/form/FormItem/index.js +8 -12
- package/dist/node_modules/antd/es/form/FormItemLabel.cjs +22 -26
- package/dist/node_modules/antd/es/form/FormItemLabel.js +22 -26
- package/dist/node_modules/antd/es/form/context.cjs +6 -7
- package/dist/node_modules/antd/es/form/context.js +6 -7
- package/dist/node_modules/antd/es/form/hooks/useForm.cjs +4 -3
- package/dist/node_modules/antd/es/form/hooks/useForm.js +3 -3
- package/dist/node_modules/antd/es/form/hooks/useFormWarning.cjs +3 -4
- package/dist/node_modules/antd/es/form/hooks/useFormWarning.js +3 -4
- package/dist/node_modules/antd/es/form/hooks/useVariants.cjs +1 -2
- package/dist/node_modules/antd/es/form/hooks/useVariants.js +1 -2
- package/dist/node_modules/antd/es/form/index.cjs +1 -1
- package/dist/node_modules/antd/es/form/style/fallbackCmp.cjs +4 -5
- package/dist/node_modules/antd/es/form/style/fallbackCmp.js +4 -5
- package/dist/node_modules/antd/es/form/style/index.cjs +62 -92
- package/dist/node_modules/antd/es/form/style/index.js +62 -92
- package/dist/node_modules/antd/es/grid/hooks/useBreakpoint.cjs +1 -3
- package/dist/node_modules/antd/es/grid/hooks/useBreakpoint.js +1 -3
- 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 +31 -13
- package/dist/node_modules/antd/es/input/OTP/OTPInput.js +26 -8
- package/dist/node_modules/antd/es/input/OTP/index.cjs +2 -1
- package/dist/node_modules/antd/es/input/OTP/index.js +2 -1
- package/dist/node_modules/antd/es/input/Password.cjs +3 -2
- package/dist/node_modules/antd/es/input/Password.js +3 -2
- package/dist/node_modules/antd/es/input/Search.cjs +18 -14
- package/dist/node_modules/antd/es/input/Search.js +18 -14
- package/dist/node_modules/antd/es/input/TextArea.cjs +42 -6
- package/dist/node_modules/antd/es/input/TextArea.js +42 -6
- package/dist/node_modules/antd/es/input/style/index.cjs +7 -20
- package/dist/node_modules/antd/es/input/style/index.js +7 -20
- package/dist/node_modules/antd/es/input/style/otp.cjs +23 -1
- package/dist/node_modules/antd/es/input/style/otp.js +23 -1
- package/dist/node_modules/antd/es/input/style/textarea.cjs +27 -5
- package/dist/node_modules/antd/es/input/style/textarea.js +27 -5
- package/dist/node_modules/antd/es/input/style/variants.cjs +25 -29
- package/dist/node_modules/antd/es/input/style/variants.js +25 -29
- package/dist/node_modules/antd/es/layout/Sider.cjs +9 -21
- package/dist/node_modules/antd/es/layout/Sider.js +9 -21
- 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 +2 -1
- package/dist/node_modules/antd/es/locale/en_US.js +2 -1
- 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 +1 -3
- package/dist/node_modules/antd/es/menu/style/index.js +1 -3
- package/dist/node_modules/antd/es/menu/style/rtl.cjs +21 -24
- package/dist/node_modules/antd/es/menu/style/rtl.js +21 -24
- 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 +2 -11
- package/dist/node_modules/antd/es/pagination/style/index.js +2 -11
- package/dist/node_modules/antd/es/popover/PurePanel.cjs +5 -6
- package/dist/node_modules/antd/es/popover/PurePanel.js +5 -6
- package/dist/node_modules/antd/es/popover/index.cjs +2 -2
- package/dist/node_modules/antd/es/popover/index.js +3 -2
- package/dist/node_modules/antd/es/progress/Line.cjs +4 -7
- package/dist/node_modules/antd/es/progress/Line.js +4 -7
- package/dist/node_modules/antd/es/progress/utils.cjs +13 -16
- package/dist/node_modules/antd/es/progress/utils.js +13 -16
- package/dist/node_modules/antd/es/radio/group.cjs +10 -4
- package/dist/node_modules/antd/es/radio/group.js +8 -2
- 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 +21 -24
- package/dist/node_modules/antd/es/result/index.js +21 -24
- package/dist/node_modules/antd/es/result/noFound.cjs +117 -139
- package/dist/node_modules/antd/es/result/noFound.js +117 -139
- package/dist/node_modules/antd/es/result/serverError.cjs +131 -154
- package/dist/node_modules/antd/es/result/serverError.js +131 -154
- package/dist/node_modules/antd/es/result/unauthorized.cjs +113 -125
- package/dist/node_modules/antd/es/result/unauthorized.js +113 -125
- 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 +42 -15
- package/dist/node_modules/antd/es/select/index.js +42 -15
- package/dist/node_modules/antd/es/select/style/index.cjs +17 -11
- package/dist/node_modules/antd/es/select/style/index.js +17 -11
- package/dist/node_modules/antd/es/select/style/multiple.cjs +2 -1
- package/dist/node_modules/antd/es/select/style/multiple.js +2 -1
- package/dist/node_modules/antd/es/select/useIcons.cjs +18 -20
- package/dist/node_modules/antd/es/select/useIcons.js +18 -20
- package/dist/node_modules/antd/es/select/usePopupRender.cjs +14 -0
- package/dist/node_modules/antd/es/select/usePopupRender.js +15 -0
- package/dist/node_modules/antd/es/skeleton/Title.cjs +14 -17
- package/dist/node_modules/antd/es/skeleton/Title.js +14 -17
- 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 +7 -8
- package/dist/node_modules/antd/es/space/Item.js +7 -8
- package/dist/node_modules/antd/es/spin/Indicator/Progress.cjs +4 -6
- package/dist/node_modules/antd/es/spin/Indicator/Progress.js +4 -6
- package/dist/node_modules/antd/es/spin/Indicator/index.cjs +2 -1
- package/dist/node_modules/antd/es/spin/Indicator/index.js +2 -1
- 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 +6 -3
- package/dist/node_modules/antd/es/style/compact-item-vertical.js +6 -3
- package/dist/node_modules/antd/es/style/compact-item.cjs +10 -8
- package/dist/node_modules/antd/es/style/compact-item.js +10 -8
- package/dist/node_modules/antd/es/style/index.cjs +13 -16
- package/dist/node_modules/antd/es/style/index.js +13 -16
- package/dist/node_modules/antd/es/style/motion/motion.cjs +1 -2
- package/dist/node_modules/antd/es/style/motion/motion.js +1 -2
- 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 +1 -2
- package/dist/node_modules/antd/es/table/InternalTable.js +1 -2
- package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.cjs +51 -64
- package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +53 -66
- package/dist/node_modules/antd/es/table/hooks/useFilter/index.cjs +20 -30
- package/dist/node_modules/antd/es/table/hooks/useFilter/index.js +20 -30
- package/dist/node_modules/antd/es/table/hooks/usePagination.js +2 -2
- package/dist/node_modules/antd/es/table/hooks/useSelection.cjs +29 -34
- package/dist/node_modules/antd/es/table/hooks/useSelection.js +29 -34
- package/dist/node_modules/antd/es/table/hooks/useSorter.cjs +26 -44
- package/dist/node_modules/antd/es/table/hooks/useSorter.js +26 -44
- 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 +3 -1
- package/dist/node_modules/antd/es/table/style/index.js +3 -1
- 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 +4 -5
- package/dist/node_modules/antd/es/tabs/hooks/useAnimateConfig.js +4 -5
- package/dist/node_modules/antd/es/tabs/hooks/useLegacyItems.cjs +8 -1
- package/dist/node_modules/antd/es/tabs/hooks/useLegacyItems.js +8 -1
- package/dist/node_modules/antd/es/tabs/index.cjs +20 -10
- package/dist/node_modules/antd/es/tabs/index.js +20 -10
- package/dist/node_modules/antd/es/tabs/style/index.cjs +42 -14
- package/dist/node_modules/antd/es/tabs/style/index.js +42 -14
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.cjs +4 -5
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.js +4 -5
- package/dist/node_modules/antd/es/theme/useToken.cjs +1 -13
- package/dist/node_modules/antd/es/theme/useToken.js +1 -13
- 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 +6 -5
- package/dist/node_modules/antd/es/tooltip/index.js +6 -5
- package/dist/node_modules/antd/es/tooltip/style/index.cjs +13 -17
- package/dist/node_modules/antd/es/tooltip/style/index.js +13 -17
- package/dist/node_modules/antd/es/tooltip/util.cjs +5 -0
- package/dist/node_modules/antd/es/tooltip/util.js +5 -0
- package/dist/node_modules/antd/es/tree/DirectoryTree.cjs +4 -5
- package/dist/node_modules/antd/es/tree/DirectoryTree.js +4 -5
- package/dist/node_modules/antd/es/tree/style/directory.cjs +50 -48
- package/dist/node_modules/antd/es/tree/style/directory.js +50 -48
- package/dist/node_modules/antd/es/tree/style/index.cjs +12 -13
- package/dist/node_modules/antd/es/tree/style/index.js +12 -13
- package/dist/node_modules/antd/es/tree/utils/dictUtil.cjs +7 -8
- package/dist/node_modules/antd/es/tree/utils/dictUtil.js +7 -8
- package/dist/node_modules/antd/es/tree/utils/iconUtil.cjs +3 -2
- package/dist/node_modules/antd/es/tree/utils/iconUtil.js +3 -2
- 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 +4 -5
- package/dist/node_modules/antd/es/typography/Base/Ellipsis.js +4 -5
- package/dist/node_modules/antd/es/typography/Base/EllipsisTooltip.cjs +6 -7
- package/dist/node_modules/antd/es/typography/Base/EllipsisTooltip.js +6 -7
- 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 +13 -16
- package/dist/node_modules/antd/es/typography/Editable.js +13 -16
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.cjs +4 -5
- package/dist/node_modules/antd/es/typography/hooks/useCopyClick.js +4 -5
- 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 +2 -1
- package/dist/node_modules/rc-input/es/Input.js +2 -1
- 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 +8 -47
- package/dist/node_modules/rc-select/es/Selector/Input.js +8 -47
- 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 +22 -8
- package/dist/node_modules/rc-table/es/Body/BodyRow.js +22 -8
- 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 +2 -1
- package/dist/node_modules/rc-table/es/Body/MeasureCell.js +2 -1
- package/dist/node_modules/rc-table/es/Body/MeasureRow.cjs +10 -5
- package/dist/node_modules/rc-table/es/Body/MeasureRow.js +10 -5
- package/dist/node_modules/rc-table/es/Body/index.cjs +24 -6
- package/dist/node_modules/rc-table/es/Body/index.js +24 -6
- package/dist/node_modules/rc-table/es/FixedHolder/index.cjs +3 -4
- package/dist/node_modules/rc-table/es/FixedHolder/index.js +3 -4
- package/dist/node_modules/rc-table/es/Table.cjs +17 -15
- package/dist/node_modules/rc-table/es/Table.js +18 -16
- package/dist/node_modules/rc-table/es/hooks/useColumns/index.cjs +10 -4
- package/dist/node_modules/rc-table/es/hooks/useColumns/index.js +10 -4
- package/dist/node_modules/rc-table/es/hooks/useFlattenRecords.cjs +5 -3
- package/dist/node_modules/rc-table/es/hooks/useFlattenRecords.js +5 -3
- package/dist/node_modules/rc-table/es/hooks/useFrame.js +1 -1
- package/dist/node_modules/rc-tabs/es/TabNavList/index.cjs +30 -21
- package/dist/node_modules/rc-tabs/es/TabNavList/index.js +31 -22
- package/dist/node_modules/rc-tabs/es/hooks/useIndicator.cjs +9 -2
- package/dist/node_modules/rc-tabs/es/hooks/useIndicator.js +9 -2
- 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 +1 -13
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.js +1 -13
- 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/composeProps.cjs +20 -0
- package/dist/node_modules/rc-util/es/composeProps.js +21 -0
- 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 +3 -2
- package/dist/node_modules/rc-virtual-list/es/List.js +3 -2
- package/dist/node_modules/rc-virtual-list/es/ScrollBar.cjs +21 -23
- package/dist/node_modules/rc-virtual-list/es/ScrollBar.js +21 -23
- 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/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/package.json +1 -1
- package/dist/node_modules/@fontsource/inter/300.css.cjs +0 -1
- package/dist/node_modules/@fontsource/inter/300.css.js +0 -1
- package/dist/node_modules/@fontsource/inter/400.css.cjs +0 -1
- package/dist/node_modules/@fontsource/inter/400.css.js +0 -1
- package/dist/node_modules/@fontsource/inter/500.css.cjs +0 -1
- package/dist/node_modules/@fontsource/inter/500.css.js +0 -1
- package/dist/node_modules/@fontsource/inter/600.css.cjs +0 -1
- package/dist/node_modules/@fontsource/inter/600.css.js +0 -1
- package/dist/node_modules/@fontsource/inter/700.css.cjs +0 -1
- package/dist/node_modules/@fontsource/inter/700.css.js +0 -1
- package/dist/node_modules/@fontsource/roboto-mono/400.css.cjs +0 -1
- package/dist/node_modules/@fontsource/roboto-mono/400.css.js +0 -1
- package/dist/node_modules/react-toastify/dist/ReactToastify.css.cjs +0 -1
- package/dist/node_modules/react-toastify/dist/ReactToastify.css.js +0 -1
|
@@ -105,7 +105,6 @@ const genFormItemStyle = (token) => {
|
|
|
105
105
|
const {
|
|
106
106
|
formItemCls,
|
|
107
107
|
iconCls,
|
|
108
|
-
componentCls,
|
|
109
108
|
rootPrefixCls,
|
|
110
109
|
antCls,
|
|
111
110
|
labelRequiredMarkColor,
|
|
@@ -153,7 +152,11 @@ const genFormItemStyle = (token) => {
|
|
|
153
152
|
"&-wrap": {
|
|
154
153
|
overflow: "unset",
|
|
155
154
|
lineHeight: token.lineHeight,
|
|
156
|
-
whiteSpace: "unset"
|
|
155
|
+
whiteSpace: "unset",
|
|
156
|
+
"> label": {
|
|
157
|
+
verticalAlign: "middle",
|
|
158
|
+
textWrap: "balance"
|
|
159
|
+
}
|
|
157
160
|
},
|
|
158
161
|
"> label": {
|
|
159
162
|
position: "relative",
|
|
@@ -167,17 +170,20 @@ const genFormItemStyle = (token) => {
|
|
|
167
170
|
fontSize: token.fontSize,
|
|
168
171
|
verticalAlign: "top"
|
|
169
172
|
},
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
173
|
+
[`&${formItemCls}-required`]: {
|
|
174
|
+
"&::before": {
|
|
175
|
+
display: "inline-block",
|
|
176
|
+
marginInlineEnd: token.marginXXS,
|
|
177
|
+
color: labelRequiredMarkColor,
|
|
178
|
+
fontSize: token.fontSize,
|
|
179
|
+
fontFamily: "SimSun, sans-serif",
|
|
180
|
+
lineHeight: 1,
|
|
181
|
+
content: '"*"'
|
|
182
|
+
},
|
|
183
|
+
[`&${formItemCls}-required-mark-hidden, &${formItemCls}-required-mark-optional`]: {
|
|
184
|
+
"&::before": {
|
|
185
|
+
display: "none"
|
|
186
|
+
}
|
|
181
187
|
}
|
|
182
188
|
},
|
|
183
189
|
// Optional mark
|
|
@@ -185,7 +191,7 @@ const genFormItemStyle = (token) => {
|
|
|
185
191
|
display: "inline-block",
|
|
186
192
|
marginInlineStart: token.marginXXS,
|
|
187
193
|
color: token.colorTextDescription,
|
|
188
|
-
[
|
|
194
|
+
[`&${formItemCls}-required-mark-hidden`]: {
|
|
189
195
|
display: "none"
|
|
190
196
|
}
|
|
191
197
|
},
|
|
@@ -225,7 +231,13 @@ const genFormItemStyle = (token) => {
|
|
|
225
231
|
minHeight: token.controlHeight,
|
|
226
232
|
"&-content": {
|
|
227
233
|
flex: "auto",
|
|
228
|
-
maxWidth: "100%"
|
|
234
|
+
maxWidth: "100%",
|
|
235
|
+
// Fix https://github.com/ant-design/ant-design/issues/54042
|
|
236
|
+
// Remove impact of whitespaces
|
|
237
|
+
[`&:has(> ${antCls}-switch:only-child, > ${antCls}-rate:only-child)`]: {
|
|
238
|
+
display: "flex",
|
|
239
|
+
alignItems: "center"
|
|
240
|
+
}
|
|
229
241
|
}
|
|
230
242
|
}
|
|
231
243
|
},
|
|
@@ -291,12 +303,26 @@ const genFormItemStyle = (token) => {
|
|
|
291
303
|
})
|
|
292
304
|
};
|
|
293
305
|
};
|
|
294
|
-
const
|
|
306
|
+
const makeVerticalLayoutLabel = (token) => ({
|
|
307
|
+
padding: token.verticalLabelPadding,
|
|
308
|
+
margin: token.verticalLabelMargin,
|
|
309
|
+
whiteSpace: "initial",
|
|
310
|
+
textAlign: "start",
|
|
311
|
+
"> label": {
|
|
312
|
+
margin: 0,
|
|
313
|
+
"&::after": {
|
|
314
|
+
// https://github.com/ant-design/ant-design/issues/43538
|
|
315
|
+
visibility: "hidden"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
const genHorizontalStyle = (token) => {
|
|
295
320
|
const {
|
|
321
|
+
antCls,
|
|
296
322
|
formItemCls
|
|
297
323
|
} = token;
|
|
298
324
|
return {
|
|
299
|
-
[`${
|
|
325
|
+
[`${formItemCls}-horizontal`]: {
|
|
300
326
|
[`${formItemCls}-label`]: {
|
|
301
327
|
flexGrow: 0
|
|
302
328
|
},
|
|
@@ -314,7 +340,9 @@ const genHorizontalStyle = (token, className) => {
|
|
|
314
340
|
[`& + ${formItemCls}-control`]: {
|
|
315
341
|
minWidth: "unset"
|
|
316
342
|
}
|
|
317
|
-
}
|
|
343
|
+
},
|
|
344
|
+
[`${antCls}-col-24${formItemCls}-label,
|
|
345
|
+
${antCls}-col-xl-24${formItemCls}-label`]: makeVerticalLayoutLabel(token)
|
|
318
346
|
}
|
|
319
347
|
};
|
|
320
348
|
};
|
|
@@ -328,7 +356,7 @@ const genInlineStyle = (token) => {
|
|
|
328
356
|
[`${componentCls}-inline`]: {
|
|
329
357
|
display: "flex",
|
|
330
358
|
flexWrap: "wrap",
|
|
331
|
-
[formItemCls]: {
|
|
359
|
+
[`${formItemCls}-inline`]: {
|
|
332
360
|
flex: "none",
|
|
333
361
|
marginInlineEnd: token.margin,
|
|
334
362
|
marginBottom: inlineItemMarginBottom,
|
|
@@ -353,19 +381,6 @@ const genInlineStyle = (token) => {
|
|
|
353
381
|
}
|
|
354
382
|
};
|
|
355
383
|
};
|
|
356
|
-
const makeVerticalLayoutLabel = (token) => ({
|
|
357
|
-
padding: token.verticalLabelPadding,
|
|
358
|
-
margin: token.verticalLabelMargin,
|
|
359
|
-
whiteSpace: "initial",
|
|
360
|
-
textAlign: "start",
|
|
361
|
-
"> label": {
|
|
362
|
-
margin: 0,
|
|
363
|
-
"&::after": {
|
|
364
|
-
// https://github.com/ant-design/ant-design/issues/43538
|
|
365
|
-
visibility: "hidden"
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
384
|
const makeVerticalLayout = (token) => {
|
|
370
385
|
const {
|
|
371
386
|
componentCls,
|
|
@@ -398,21 +413,19 @@ const genVerticalStyle = (token) => {
|
|
|
398
413
|
antCls
|
|
399
414
|
} = token;
|
|
400
415
|
return {
|
|
401
|
-
[`${
|
|
402
|
-
[`${formItemCls}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
[`${formItemCls}-label,
|
|
416
|
+
[`${formItemCls}-vertical`]: {
|
|
417
|
+
[`${formItemCls}-row`]: {
|
|
418
|
+
flexDirection: "column"
|
|
419
|
+
},
|
|
420
|
+
[`${formItemCls}-label > label`]: {
|
|
421
|
+
height: "auto"
|
|
422
|
+
},
|
|
423
|
+
[`${formItemCls}-control`]: {
|
|
424
|
+
width: "100%"
|
|
425
|
+
},
|
|
426
|
+
[`${formItemCls}-label,
|
|
413
427
|
${antCls}-col-24${formItemCls}-label,
|
|
414
428
|
${antCls}-col-xl-24${formItemCls}-label`]: makeVerticalLayoutLabel(token)
|
|
415
|
-
}
|
|
416
429
|
},
|
|
417
430
|
[`@media (max-width: ${index$1.unit(token.screenXSMax)})`]: [makeVerticalLayout(token), {
|
|
418
431
|
[componentCls]: {
|
|
@@ -444,48 +457,6 @@ const genVerticalStyle = (token) => {
|
|
|
444
457
|
}
|
|
445
458
|
};
|
|
446
459
|
};
|
|
447
|
-
const genItemVerticalStyle = (token) => {
|
|
448
|
-
const {
|
|
449
|
-
formItemCls,
|
|
450
|
-
antCls
|
|
451
|
-
} = token;
|
|
452
|
-
return {
|
|
453
|
-
[`${formItemCls}-vertical`]: {
|
|
454
|
-
[`${formItemCls}-row`]: {
|
|
455
|
-
flexDirection: "column"
|
|
456
|
-
},
|
|
457
|
-
[`${formItemCls}-label > label`]: {
|
|
458
|
-
height: "auto"
|
|
459
|
-
},
|
|
460
|
-
[`${formItemCls}-control`]: {
|
|
461
|
-
width: "100%"
|
|
462
|
-
}
|
|
463
|
-
},
|
|
464
|
-
[`${formItemCls}-vertical ${formItemCls}-label,
|
|
465
|
-
${antCls}-col-24${formItemCls}-label,
|
|
466
|
-
${antCls}-col-xl-24${formItemCls}-label`]: makeVerticalLayoutLabel(token),
|
|
467
|
-
[`@media (max-width: ${index$1.unit(token.screenXSMax)})`]: [makeVerticalLayout(token), {
|
|
468
|
-
[formItemCls]: {
|
|
469
|
-
[`${antCls}-col-xs-24${formItemCls}-label`]: makeVerticalLayoutLabel(token)
|
|
470
|
-
}
|
|
471
|
-
}],
|
|
472
|
-
[`@media (max-width: ${index$1.unit(token.screenSMMax)})`]: {
|
|
473
|
-
[formItemCls]: {
|
|
474
|
-
[`${antCls}-col-sm-24${formItemCls}-label`]: makeVerticalLayoutLabel(token)
|
|
475
|
-
}
|
|
476
|
-
},
|
|
477
|
-
[`@media (max-width: ${index$1.unit(token.screenMDMax)})`]: {
|
|
478
|
-
[formItemCls]: {
|
|
479
|
-
[`${antCls}-col-md-24${formItemCls}-label`]: makeVerticalLayoutLabel(token)
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
[`@media (max-width: ${index$1.unit(token.screenLGMax)})`]: {
|
|
483
|
-
[formItemCls]: {
|
|
484
|
-
[`${antCls}-col-lg-24${formItemCls}-label`]: makeVerticalLayoutLabel(token)
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
};
|
|
488
|
-
};
|
|
489
460
|
const prepareComponentToken = (token) => ({
|
|
490
461
|
labelRequiredMarkColor: token.colorError,
|
|
491
462
|
labelColor: token.colorTextHeading,
|
|
@@ -505,12 +476,11 @@ const prepareToken = (token, rootPrefixCls) => {
|
|
|
505
476
|
});
|
|
506
477
|
return formToken;
|
|
507
478
|
};
|
|
508
|
-
var useStyle = genStyleUtils.genStyleHooks("Form", (token,
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
} = _ref;
|
|
479
|
+
var useStyle = genStyleUtils.genStyleHooks("Form", (token, {
|
|
480
|
+
rootPrefixCls
|
|
481
|
+
}) => {
|
|
512
482
|
const formToken = prepareToken(token, rootPrefixCls);
|
|
513
|
-
return [genFormStyle(formToken), genFormItemStyle(formToken), explain(formToken), genHorizontalStyle(formToken
|
|
483
|
+
return [genFormStyle(formToken), genFormItemStyle(formToken), explain(formToken), genHorizontalStyle(formToken), genInlineStyle(formToken), genVerticalStyle(formToken), collapse(formToken), zoom.zoomIn];
|
|
514
484
|
}, prepareComponentToken, {
|
|
515
485
|
// Let From style before the Grid
|
|
516
486
|
// ref https://github.com/ant-design/ant-design/issues/44386
|
|
@@ -103,7 +103,6 @@ const genFormItemStyle = (token) => {
|
|
|
103
103
|
const {
|
|
104
104
|
formItemCls,
|
|
105
105
|
iconCls,
|
|
106
|
-
componentCls,
|
|
107
106
|
rootPrefixCls,
|
|
108
107
|
antCls,
|
|
109
108
|
labelRequiredMarkColor,
|
|
@@ -151,7 +150,11 @@ const genFormItemStyle = (token) => {
|
|
|
151
150
|
"&-wrap": {
|
|
152
151
|
overflow: "unset",
|
|
153
152
|
lineHeight: token.lineHeight,
|
|
154
|
-
whiteSpace: "unset"
|
|
153
|
+
whiteSpace: "unset",
|
|
154
|
+
"> label": {
|
|
155
|
+
verticalAlign: "middle",
|
|
156
|
+
textWrap: "balance"
|
|
157
|
+
}
|
|
155
158
|
},
|
|
156
159
|
"> label": {
|
|
157
160
|
position: "relative",
|
|
@@ -165,17 +168,20 @@ const genFormItemStyle = (token) => {
|
|
|
165
168
|
fontSize: token.fontSize,
|
|
166
169
|
verticalAlign: "top"
|
|
167
170
|
},
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
171
|
+
[`&${formItemCls}-required`]: {
|
|
172
|
+
"&::before": {
|
|
173
|
+
display: "inline-block",
|
|
174
|
+
marginInlineEnd: token.marginXXS,
|
|
175
|
+
color: labelRequiredMarkColor,
|
|
176
|
+
fontSize: token.fontSize,
|
|
177
|
+
fontFamily: "SimSun, sans-serif",
|
|
178
|
+
lineHeight: 1,
|
|
179
|
+
content: '"*"'
|
|
180
|
+
},
|
|
181
|
+
[`&${formItemCls}-required-mark-hidden, &${formItemCls}-required-mark-optional`]: {
|
|
182
|
+
"&::before": {
|
|
183
|
+
display: "none"
|
|
184
|
+
}
|
|
179
185
|
}
|
|
180
186
|
},
|
|
181
187
|
// Optional mark
|
|
@@ -183,7 +189,7 @@ const genFormItemStyle = (token) => {
|
|
|
183
189
|
display: "inline-block",
|
|
184
190
|
marginInlineStart: token.marginXXS,
|
|
185
191
|
color: token.colorTextDescription,
|
|
186
|
-
[
|
|
192
|
+
[`&${formItemCls}-required-mark-hidden`]: {
|
|
187
193
|
display: "none"
|
|
188
194
|
}
|
|
189
195
|
},
|
|
@@ -223,7 +229,13 @@ const genFormItemStyle = (token) => {
|
|
|
223
229
|
minHeight: token.controlHeight,
|
|
224
230
|
"&-content": {
|
|
225
231
|
flex: "auto",
|
|
226
|
-
maxWidth: "100%"
|
|
232
|
+
maxWidth: "100%",
|
|
233
|
+
// Fix https://github.com/ant-design/ant-design/issues/54042
|
|
234
|
+
// Remove impact of whitespaces
|
|
235
|
+
[`&:has(> ${antCls}-switch:only-child, > ${antCls}-rate:only-child)`]: {
|
|
236
|
+
display: "flex",
|
|
237
|
+
alignItems: "center"
|
|
238
|
+
}
|
|
227
239
|
}
|
|
228
240
|
}
|
|
229
241
|
},
|
|
@@ -289,12 +301,26 @@ const genFormItemStyle = (token) => {
|
|
|
289
301
|
})
|
|
290
302
|
};
|
|
291
303
|
};
|
|
292
|
-
const
|
|
304
|
+
const makeVerticalLayoutLabel = (token) => ({
|
|
305
|
+
padding: token.verticalLabelPadding,
|
|
306
|
+
margin: token.verticalLabelMargin,
|
|
307
|
+
whiteSpace: "initial",
|
|
308
|
+
textAlign: "start",
|
|
309
|
+
"> label": {
|
|
310
|
+
margin: 0,
|
|
311
|
+
"&::after": {
|
|
312
|
+
// https://github.com/ant-design/ant-design/issues/43538
|
|
313
|
+
visibility: "hidden"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
const genHorizontalStyle = (token) => {
|
|
293
318
|
const {
|
|
319
|
+
antCls,
|
|
294
320
|
formItemCls
|
|
295
321
|
} = token;
|
|
296
322
|
return {
|
|
297
|
-
[`${
|
|
323
|
+
[`${formItemCls}-horizontal`]: {
|
|
298
324
|
[`${formItemCls}-label`]: {
|
|
299
325
|
flexGrow: 0
|
|
300
326
|
},
|
|
@@ -312,7 +338,9 @@ const genHorizontalStyle = (token, className) => {
|
|
|
312
338
|
[`& + ${formItemCls}-control`]: {
|
|
313
339
|
minWidth: "unset"
|
|
314
340
|
}
|
|
315
|
-
}
|
|
341
|
+
},
|
|
342
|
+
[`${antCls}-col-24${formItemCls}-label,
|
|
343
|
+
${antCls}-col-xl-24${formItemCls}-label`]: makeVerticalLayoutLabel(token)
|
|
316
344
|
}
|
|
317
345
|
};
|
|
318
346
|
};
|
|
@@ -326,7 +354,7 @@ const genInlineStyle = (token) => {
|
|
|
326
354
|
[`${componentCls}-inline`]: {
|
|
327
355
|
display: "flex",
|
|
328
356
|
flexWrap: "wrap",
|
|
329
|
-
[formItemCls]: {
|
|
357
|
+
[`${formItemCls}-inline`]: {
|
|
330
358
|
flex: "none",
|
|
331
359
|
marginInlineEnd: token.margin,
|
|
332
360
|
marginBottom: inlineItemMarginBottom,
|
|
@@ -351,19 +379,6 @@ const genInlineStyle = (token) => {
|
|
|
351
379
|
}
|
|
352
380
|
};
|
|
353
381
|
};
|
|
354
|
-
const makeVerticalLayoutLabel = (token) => ({
|
|
355
|
-
padding: token.verticalLabelPadding,
|
|
356
|
-
margin: token.verticalLabelMargin,
|
|
357
|
-
whiteSpace: "initial",
|
|
358
|
-
textAlign: "start",
|
|
359
|
-
"> label": {
|
|
360
|
-
margin: 0,
|
|
361
|
-
"&::after": {
|
|
362
|
-
// https://github.com/ant-design/ant-design/issues/43538
|
|
363
|
-
visibility: "hidden"
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
});
|
|
367
382
|
const makeVerticalLayout = (token) => {
|
|
368
383
|
const {
|
|
369
384
|
componentCls,
|
|
@@ -396,21 +411,19 @@ const genVerticalStyle = (token) => {
|
|
|
396
411
|
antCls
|
|
397
412
|
} = token;
|
|
398
413
|
return {
|
|
399
|
-
[`${
|
|
400
|
-
[`${formItemCls}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
[`${formItemCls}-label,
|
|
414
|
+
[`${formItemCls}-vertical`]: {
|
|
415
|
+
[`${formItemCls}-row`]: {
|
|
416
|
+
flexDirection: "column"
|
|
417
|
+
},
|
|
418
|
+
[`${formItemCls}-label > label`]: {
|
|
419
|
+
height: "auto"
|
|
420
|
+
},
|
|
421
|
+
[`${formItemCls}-control`]: {
|
|
422
|
+
width: "100%"
|
|
423
|
+
},
|
|
424
|
+
[`${formItemCls}-label,
|
|
411
425
|
${antCls}-col-24${formItemCls}-label,
|
|
412
426
|
${antCls}-col-xl-24${formItemCls}-label`]: makeVerticalLayoutLabel(token)
|
|
413
|
-
}
|
|
414
427
|
},
|
|
415
428
|
[`@media (max-width: ${unit(token.screenXSMax)})`]: [makeVerticalLayout(token), {
|
|
416
429
|
[componentCls]: {
|
|
@@ -442,48 +455,6 @@ const genVerticalStyle = (token) => {
|
|
|
442
455
|
}
|
|
443
456
|
};
|
|
444
457
|
};
|
|
445
|
-
const genItemVerticalStyle = (token) => {
|
|
446
|
-
const {
|
|
447
|
-
formItemCls,
|
|
448
|
-
antCls
|
|
449
|
-
} = token;
|
|
450
|
-
return {
|
|
451
|
-
[`${formItemCls}-vertical`]: {
|
|
452
|
-
[`${formItemCls}-row`]: {
|
|
453
|
-
flexDirection: "column"
|
|
454
|
-
},
|
|
455
|
-
[`${formItemCls}-label > label`]: {
|
|
456
|
-
height: "auto"
|
|
457
|
-
},
|
|
458
|
-
[`${formItemCls}-control`]: {
|
|
459
|
-
width: "100%"
|
|
460
|
-
}
|
|
461
|
-
},
|
|
462
|
-
[`${formItemCls}-vertical ${formItemCls}-label,
|
|
463
|
-
${antCls}-col-24${formItemCls}-label,
|
|
464
|
-
${antCls}-col-xl-24${formItemCls}-label`]: makeVerticalLayoutLabel(token),
|
|
465
|
-
[`@media (max-width: ${unit(token.screenXSMax)})`]: [makeVerticalLayout(token), {
|
|
466
|
-
[formItemCls]: {
|
|
467
|
-
[`${antCls}-col-xs-24${formItemCls}-label`]: makeVerticalLayoutLabel(token)
|
|
468
|
-
}
|
|
469
|
-
}],
|
|
470
|
-
[`@media (max-width: ${unit(token.screenSMMax)})`]: {
|
|
471
|
-
[formItemCls]: {
|
|
472
|
-
[`${antCls}-col-sm-24${formItemCls}-label`]: makeVerticalLayoutLabel(token)
|
|
473
|
-
}
|
|
474
|
-
},
|
|
475
|
-
[`@media (max-width: ${unit(token.screenMDMax)})`]: {
|
|
476
|
-
[formItemCls]: {
|
|
477
|
-
[`${antCls}-col-md-24${formItemCls}-label`]: makeVerticalLayoutLabel(token)
|
|
478
|
-
}
|
|
479
|
-
},
|
|
480
|
-
[`@media (max-width: ${unit(token.screenLGMax)})`]: {
|
|
481
|
-
[formItemCls]: {
|
|
482
|
-
[`${antCls}-col-lg-24${formItemCls}-label`]: makeVerticalLayoutLabel(token)
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
};
|
|
487
458
|
const prepareComponentToken = (token) => ({
|
|
488
459
|
labelRequiredMarkColor: token.colorError,
|
|
489
460
|
labelColor: token.colorTextHeading,
|
|
@@ -503,12 +474,11 @@ const prepareToken = (token, rootPrefixCls) => {
|
|
|
503
474
|
});
|
|
504
475
|
return formToken;
|
|
505
476
|
};
|
|
506
|
-
var useStyle = genStyleHooks("Form", (token,
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
} = _ref;
|
|
477
|
+
var useStyle = genStyleHooks("Form", (token, {
|
|
478
|
+
rootPrefixCls
|
|
479
|
+
}) => {
|
|
510
480
|
const formToken = prepareToken(token, rootPrefixCls);
|
|
511
|
-
return [genFormStyle(formToken), genFormItemStyle(formToken), genFormValidateMotionStyle(formToken), genHorizontalStyle(formToken
|
|
481
|
+
return [genFormStyle(formToken), genFormItemStyle(formToken), genFormValidateMotionStyle(formToken), genHorizontalStyle(formToken), genInlineStyle(formToken), genVerticalStyle(formToken), genCollapseMotion(formToken), zoomIn];
|
|
512
482
|
}, prepareComponentToken, {
|
|
513
483
|
// Let From style before the Grid
|
|
514
484
|
// ref https://github.com/ant-design/ant-design/issues/44386
|
|
@@ -3,9 +3,7 @@ var React = require("react");
|
|
|
3
3
|
var useLayoutEffect = require("../../../../rc-util/es/hooks/useLayoutEffect.cjs");
|
|
4
4
|
var useForceUpdate = require("../../_util/hooks/useForceUpdate.cjs");
|
|
5
5
|
var responsiveObserver = require("../../_util/responsiveObserver.cjs");
|
|
6
|
-
function useBreakpoint() {
|
|
7
|
-
let refreshOnChange = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
|
|
8
|
-
let defaultScreens = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6
|
+
function useBreakpoint(refreshOnChange = true, defaultScreens = {}) {
|
|
9
7
|
const screensRef = React.useRef(defaultScreens);
|
|
10
8
|
const forceUpdate = useForceUpdate();
|
|
11
9
|
const responsiveObserver$1 = responsiveObserver.default();
|
|
@@ -2,9 +2,7 @@ import { useRef } from "react";
|
|
|
2
2
|
import useLayoutEffect from "../../../../rc-util/es/hooks/useLayoutEffect.js";
|
|
3
3
|
import useForceUpdate from "../../_util/hooks/useForceUpdate.js";
|
|
4
4
|
import useResponsiveObserver from "../../_util/responsiveObserver.js";
|
|
5
|
-
function useBreakpoint() {
|
|
6
|
-
let refreshOnChange = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
|
|
7
|
-
let defaultScreens = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5
|
+
function useBreakpoint(refreshOnChange = true, defaultScreens = {}) {
|
|
8
6
|
const screensRef = useRef(defaultScreens);
|
|
9
7
|
const forceUpdate = useForceUpdate();
|
|
10
8
|
const responsiveObserver = useResponsiveObserver();
|
|
@@ -44,7 +44,7 @@ const Input = /* @__PURE__ */ React.forwardRef((props, ref$1) => {
|
|
|
44
44
|
styles,
|
|
45
45
|
rootClassName,
|
|
46
46
|
onChange,
|
|
47
|
-
classNames
|
|
47
|
+
classNames,
|
|
48
48
|
variant: customVariant
|
|
49
49
|
} = props, rest = __rest(props, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "style", "styles", "rootClassName", "onChange", "classNames", "variant"]);
|
|
50
50
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -134,12 +134,12 @@ const Input = /* @__PURE__ */ React.forwardRef((props, ref$1) => {
|
|
|
134
134
|
form: true,
|
|
135
135
|
space: true
|
|
136
136
|
}, addonAfter),
|
|
137
|
-
classNames: Object.assign(Object.assign(Object.assign({},
|
|
137
|
+
classNames: Object.assign(Object.assign(Object.assign({}, classNames), contextClassNames), {
|
|
138
138
|
input: index$1({
|
|
139
139
|
[`${prefixCls}-sm`]: mergedSize === "small",
|
|
140
140
|
[`${prefixCls}-lg`]: mergedSize === "large",
|
|
141
141
|
[`${prefixCls}-rtl`]: direction === "rtl"
|
|
142
|
-
},
|
|
142
|
+
}, classNames === null || classNames === void 0 ? void 0 : classNames.input, contextClassNames.input, hashId),
|
|
143
143
|
variant: index$1({
|
|
144
144
|
[`${prefixCls}-${variant}`]: enableVariantCls
|
|
145
145
|
}, statusUtils.getStatusClassNames(prefixCls, mergedStatus)),
|
|
@@ -42,7 +42,7 @@ const Input = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
42
42
|
styles,
|
|
43
43
|
rootClassName,
|
|
44
44
|
onChange,
|
|
45
|
-
classNames:
|
|
45
|
+
classNames: classNames$1,
|
|
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({}, classNames$1), 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
|
+
}, classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.input, contextClassNames.input, hashId),
|
|
141
141
|
variant: classNames({
|
|
142
142
|
[`${prefixCls}-${variant}`]: enableVariantCls
|
|
143
143
|
}, getStatusClassNames(prefixCls, mergedStatus)),
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var React = require("react");
|
|
3
|
+
var index = require("../../../../../_virtual/index.cjs");
|
|
3
4
|
var raf = require("../../../../rc-util/es/raf.cjs");
|
|
5
|
+
require("../../config-provider/index.cjs");
|
|
4
6
|
var Input = require("../Input.cjs");
|
|
7
|
+
var context = require("../../config-provider/context.cjs");
|
|
5
8
|
function _interopNamespaceDefault(e) {
|
|
6
9
|
var n = /* @__PURE__ */ Object.create(null);
|
|
7
10
|
if (e) {
|
|
@@ -31,18 +34,23 @@ var __rest = function(s, e) {
|
|
|
31
34
|
};
|
|
32
35
|
const OTPInput = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
33
36
|
const {
|
|
37
|
+
className,
|
|
34
38
|
value,
|
|
35
39
|
onChange,
|
|
36
40
|
onActiveChange,
|
|
37
|
-
index,
|
|
41
|
+
index: index$1,
|
|
38
42
|
mask
|
|
39
|
-
} = props, restProps = __rest(props, ["value", "onChange", "onActiveChange", "index", "mask"]);
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
} = props, restProps = __rest(props, ["className", "value", "onChange", "onActiveChange", "index", "mask"]);
|
|
44
|
+
const {
|
|
45
|
+
getPrefixCls
|
|
46
|
+
} = React__namespace.useContext(context.ConfigContext);
|
|
47
|
+
const prefixCls = getPrefixCls("otp");
|
|
48
|
+
const maskValue = typeof mask === "string" ? mask : value;
|
|
44
49
|
const inputRef = React__namespace.useRef(null);
|
|
45
50
|
React__namespace.useImperativeHandle(ref, () => inputRef.current);
|
|
51
|
+
const onInternalChange = (e) => {
|
|
52
|
+
onChange(index$1, e.target.value);
|
|
53
|
+
};
|
|
46
54
|
const syncSelection = () => {
|
|
47
55
|
raf(() => {
|
|
48
56
|
var _a;
|
|
@@ -59,9 +67,9 @@ const OTPInput = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
59
67
|
metaKey
|
|
60
68
|
} = event;
|
|
61
69
|
if (key === "ArrowLeft") {
|
|
62
|
-
onActiveChange(index - 1);
|
|
70
|
+
onActiveChange(index$1 - 1);
|
|
63
71
|
} else if (key === "ArrowRight") {
|
|
64
|
-
onActiveChange(index + 1);
|
|
72
|
+
onActiveChange(index$1 + 1);
|
|
65
73
|
} else if (key === "z" && (ctrlKey || metaKey)) {
|
|
66
74
|
event.preventDefault();
|
|
67
75
|
}
|
|
@@ -69,21 +77,31 @@ const OTPInput = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
69
77
|
};
|
|
70
78
|
const onInternalKeyUp = (e) => {
|
|
71
79
|
if (e.key === "Backspace" && !value) {
|
|
72
|
-
onActiveChange(index - 1);
|
|
80
|
+
onActiveChange(index$1 - 1);
|
|
73
81
|
}
|
|
74
82
|
syncSelection();
|
|
75
83
|
};
|
|
76
|
-
return /* @__PURE__ */ React__namespace.createElement(
|
|
84
|
+
return /* @__PURE__ */ React__namespace.createElement("span", {
|
|
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}`,
|
|
77
92
|
type: mask === true ? "password" : "text"
|
|
78
93
|
}, restProps, {
|
|
79
94
|
ref: inputRef,
|
|
80
|
-
value
|
|
95
|
+
value,
|
|
81
96
|
onInput: onInternalChange,
|
|
82
97
|
onFocus: syncSelection,
|
|
83
98
|
onKeyDown: onInternalKeyDown,
|
|
84
99
|
onKeyUp: onInternalKeyUp,
|
|
85
100
|
onMouseDown: syncSelection,
|
|
86
|
-
onMouseUp: syncSelection
|
|
87
|
-
|
|
101
|
+
onMouseUp: syncSelection,
|
|
102
|
+
className: index(className, {
|
|
103
|
+
[`${prefixCls}-mask-input`]: mask
|
|
104
|
+
})
|
|
105
|
+
})));
|
|
88
106
|
});
|
|
89
107
|
module.exports = OTPInput;
|