@gobolt/genesis 0.3.10 → 0.3.12
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
|
@@ -29,22 +29,24 @@ function _interopNamespaceDefault(e) {
|
|
|
29
29
|
}
|
|
30
30
|
var React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
31
31
|
const EMPTY_LIST = [];
|
|
32
|
-
function toErrorEntity(error, prefix, errorStatus
|
|
32
|
+
function toErrorEntity(error, prefix, errorStatus) {
|
|
33
|
+
let index2 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
|
|
33
34
|
return {
|
|
34
35
|
key: typeof error === "string" ? error : `${prefix}-${index2}`,
|
|
35
36
|
error,
|
|
36
37
|
errorStatus
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
|
-
const ErrorList = ({
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
const ErrorList = (_ref) => {
|
|
41
|
+
let {
|
|
42
|
+
help,
|
|
43
|
+
helpStatus,
|
|
44
|
+
errors = EMPTY_LIST,
|
|
45
|
+
warnings = EMPTY_LIST,
|
|
46
|
+
className: rootClassName,
|
|
47
|
+
fieldId,
|
|
48
|
+
onVisibleChanged
|
|
49
|
+
} = _ref;
|
|
48
50
|
const {
|
|
49
51
|
prefixCls
|
|
50
52
|
} = React__namespace.useContext(context.FormItemPrefixContext);
|
|
@@ -62,9 +64,10 @@ const ErrorList = ({
|
|
|
62
64
|
}, [help, helpStatus, debounceErrors, debounceWarnings]);
|
|
63
65
|
const filledKeyFullKeyList = React__namespace.useMemo(() => {
|
|
64
66
|
const keysCount = {};
|
|
65
|
-
fullKeyList.forEach(({
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
fullKeyList.forEach((_ref2) => {
|
|
68
|
+
let {
|
|
69
|
+
key
|
|
70
|
+
} = _ref2;
|
|
68
71
|
keysCount[key] = (keysCount[key] || 0) + 1;
|
|
69
72
|
});
|
|
70
73
|
return fullKeyList.map((entity, index2) => Object.assign(Object.assign({}, entity), {
|
|
@@ -9,22 +9,24 @@ import { FormItemPrefixContext } from "./context.js";
|
|
|
9
9
|
import useDebounce from "./hooks/useDebounce.js";
|
|
10
10
|
import useStyle from "./style/index.js";
|
|
11
11
|
const EMPTY_LIST = [];
|
|
12
|
-
function toErrorEntity(error, prefix, errorStatus
|
|
12
|
+
function toErrorEntity(error, prefix, errorStatus) {
|
|
13
|
+
let index = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
|
|
13
14
|
return {
|
|
14
15
|
key: typeof error === "string" ? error : `${prefix}-${index}`,
|
|
15
16
|
error,
|
|
16
17
|
errorStatus
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
|
-
const ErrorList = ({
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
const ErrorList = (_ref) => {
|
|
21
|
+
let {
|
|
22
|
+
help,
|
|
23
|
+
helpStatus,
|
|
24
|
+
errors = EMPTY_LIST,
|
|
25
|
+
warnings = EMPTY_LIST,
|
|
26
|
+
className: rootClassName,
|
|
27
|
+
fieldId,
|
|
28
|
+
onVisibleChanged
|
|
29
|
+
} = _ref;
|
|
28
30
|
const {
|
|
29
31
|
prefixCls
|
|
30
32
|
} = React.useContext(FormItemPrefixContext);
|
|
@@ -42,9 +44,10 @@ const ErrorList = ({
|
|
|
42
44
|
}, [help, helpStatus, debounceErrors, debounceWarnings]);
|
|
43
45
|
const filledKeyFullKeyList = React.useMemo(() => {
|
|
44
46
|
const keysCount = {};
|
|
45
|
-
fullKeyList.forEach(({
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
fullKeyList.forEach((_ref2) => {
|
|
48
|
+
let {
|
|
49
|
+
key
|
|
50
|
+
} = _ref2;
|
|
48
51
|
keysCount[key] = (keysCount[key] || 0) + 1;
|
|
49
52
|
});
|
|
50
53
|
return fullKeyList.map((entity, index) => Object.assign(Object.assign({}, entity), {
|
|
@@ -96,11 +96,10 @@ const InternalForm = (props, ref) => {
|
|
|
96
96
|
const [wrapCSSVar, hashId, cssVarCls] = index.default(prefixCls, rootCls);
|
|
97
97
|
const formClassName = index$1(prefixCls, `${prefixCls}-${layout}`, {
|
|
98
98
|
[`${prefixCls}-hide-required-mark`]: mergedRequiredMark === false,
|
|
99
|
-
// todo: remove in next major version
|
|
100
99
|
[`${prefixCls}-rtl`]: direction === "rtl",
|
|
101
100
|
[`${prefixCls}-${mergedSize}`]: mergedSize
|
|
102
101
|
}, cssVarCls, rootCls, hashId, contextClassName, className, rootClassName);
|
|
103
|
-
const [wrapForm] = useForm
|
|
102
|
+
const [wrapForm] = useForm(form);
|
|
104
103
|
const {
|
|
105
104
|
__INTERNAL__
|
|
106
105
|
} = wrapForm;
|
|
@@ -111,7 +110,7 @@ const InternalForm = (props, ref) => {
|
|
|
111
110
|
labelCol,
|
|
112
111
|
labelWrap,
|
|
113
112
|
wrapperCol,
|
|
114
|
-
layout,
|
|
113
|
+
vertical: layout === "vertical",
|
|
115
114
|
colon: mergedColon,
|
|
116
115
|
requiredMark: mergedRequiredMark,
|
|
117
116
|
itemRef: __INTERNAL__.itemRef,
|
|
@@ -175,5 +174,5 @@ const Form = /* @__PURE__ */ React__namespace.forwardRef(InternalForm);
|
|
|
175
174
|
if (process.env.NODE_ENV !== "production") {
|
|
176
175
|
Form.displayName = "Form";
|
|
177
176
|
}
|
|
178
|
-
exports.useForm = useForm
|
|
177
|
+
exports.useForm = useForm;
|
|
179
178
|
exports.default = Form;
|
|
@@ -75,7 +75,6 @@ const InternalForm = (props, ref) => {
|
|
|
75
75
|
const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls, rootCls);
|
|
76
76
|
const formClassName = classNames(prefixCls, `${prefixCls}-${layout}`, {
|
|
77
77
|
[`${prefixCls}-hide-required-mark`]: mergedRequiredMark === false,
|
|
78
|
-
// todo: remove in next major version
|
|
79
78
|
[`${prefixCls}-rtl`]: direction === "rtl",
|
|
80
79
|
[`${prefixCls}-${mergedSize}`]: mergedSize
|
|
81
80
|
}, cssVarCls, rootCls, hashId, contextClassName, className, rootClassName);
|
|
@@ -90,7 +89,7 @@ const InternalForm = (props, ref) => {
|
|
|
90
89
|
labelCol,
|
|
91
90
|
labelWrap,
|
|
92
91
|
wrapperCol,
|
|
93
|
-
layout,
|
|
92
|
+
vertical: layout === "vertical",
|
|
94
93
|
colon: mergedColon,
|
|
95
94
|
requiredMark: mergedRequiredMark,
|
|
96
95
|
itemRef: __INTERNAL__.itemRef,
|
|
@@ -56,16 +56,14 @@ function ItemHolder(props) {
|
|
|
56
56
|
required,
|
|
57
57
|
isRequired,
|
|
58
58
|
onSubItemMetaChange,
|
|
59
|
-
layout
|
|
60
|
-
|
|
61
|
-
} = props, restProps = __rest(props, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout", "name"]);
|
|
59
|
+
layout
|
|
60
|
+
} = props, restProps = __rest(props, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout"]);
|
|
62
61
|
const itemPrefixCls = `${prefixCls}-item`;
|
|
63
62
|
const {
|
|
64
63
|
requiredMark,
|
|
65
|
-
|
|
64
|
+
vertical: formVertical
|
|
66
65
|
} = React__namespace.useContext(context.FormContext);
|
|
67
|
-
const
|
|
68
|
-
const vertical = layout === "vertical";
|
|
66
|
+
const vertical = formVertical || layout === "vertical";
|
|
69
67
|
const itemRef = React__namespace.useRef(null);
|
|
70
68
|
const debounceErrors = useDebounce(errors);
|
|
71
69
|
const debounceWarnings = useDebounce(warnings);
|
|
@@ -84,7 +82,8 @@ function ItemHolder(props) {
|
|
|
84
82
|
setMarginBottom(null);
|
|
85
83
|
}
|
|
86
84
|
};
|
|
87
|
-
const getValidateState = (
|
|
85
|
+
const getValidateState = function() {
|
|
86
|
+
let isDebounce = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
88
87
|
const _errors = isDebounce ? debounceErrors : meta.errors;
|
|
89
88
|
const _warnings = isDebounce ? debounceWarnings : meta.warnings;
|
|
90
89
|
return util.getStatus(_errors, _warnings, meta, "", !!hasFeedback, validateStatus);
|
|
@@ -164,8 +163,7 @@ function ItemHolder(props) {
|
|
|
164
163
|
warnings: meta.warnings,
|
|
165
164
|
hasFeedback,
|
|
166
165
|
// Already calculated
|
|
167
|
-
validateStatus: mergedValidateStatus
|
|
168
|
-
name
|
|
166
|
+
validateStatus: mergedValidateStatus
|
|
169
167
|
}, children)))), !!marginBottom && /* @__PURE__ */ React__namespace.createElement("div", {
|
|
170
168
|
className: `${itemPrefixCls}-margin-offset`,
|
|
171
169
|
style: {
|
|
@@ -36,16 +36,14 @@ function ItemHolder(props) {
|
|
|
36
36
|
required,
|
|
37
37
|
isRequired,
|
|
38
38
|
onSubItemMetaChange,
|
|
39
|
-
layout
|
|
40
|
-
|
|
41
|
-
} = props, restProps = __rest(props, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout", "name"]);
|
|
39
|
+
layout
|
|
40
|
+
} = props, restProps = __rest(props, ["prefixCls", "className", "rootClassName", "style", "help", "errors", "warnings", "validateStatus", "meta", "hasFeedback", "hidden", "children", "fieldId", "required", "isRequired", "onSubItemMetaChange", "layout"]);
|
|
42
41
|
const itemPrefixCls = `${prefixCls}-item`;
|
|
43
42
|
const {
|
|
44
43
|
requiredMark,
|
|
45
|
-
|
|
44
|
+
vertical: formVertical
|
|
46
45
|
} = React.useContext(FormContext);
|
|
47
|
-
const
|
|
48
|
-
const vertical = layout === "vertical";
|
|
46
|
+
const vertical = formVertical || layout === "vertical";
|
|
49
47
|
const itemRef = React.useRef(null);
|
|
50
48
|
const debounceErrors = useDebounce(errors);
|
|
51
49
|
const debounceWarnings = useDebounce(warnings);
|
|
@@ -64,7 +62,8 @@ function ItemHolder(props) {
|
|
|
64
62
|
setMarginBottom(null);
|
|
65
63
|
}
|
|
66
64
|
};
|
|
67
|
-
const getValidateState = (
|
|
65
|
+
const getValidateState = function() {
|
|
66
|
+
let isDebounce = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
68
67
|
const _errors = isDebounce ? debounceErrors : meta.errors;
|
|
69
68
|
const _warnings = isDebounce ? debounceWarnings : meta.warnings;
|
|
70
69
|
return getStatus(_errors, _warnings, meta, "", !!hasFeedback, validateStatus);
|
|
@@ -144,8 +143,7 @@ function ItemHolder(props) {
|
|
|
144
143
|
warnings: meta.warnings,
|
|
145
144
|
hasFeedback,
|
|
146
145
|
// Already calculated
|
|
147
|
-
validateStatus: mergedValidateStatus
|
|
148
|
-
name
|
|
146
|
+
validateStatus: mergedValidateStatus
|
|
149
147
|
}, children)))), !!marginBottom && /* @__PURE__ */ React.createElement("div", {
|
|
150
148
|
className: `${itemPrefixCls}-margin-offset`,
|
|
151
149
|
style: {
|
|
@@ -32,17 +32,17 @@ const iconMap = {
|
|
|
32
32
|
error: CloseCircleFilled,
|
|
33
33
|
validating: LoadingOutlined
|
|
34
34
|
};
|
|
35
|
-
function StatusProvider({
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
35
|
+
function StatusProvider(_ref) {
|
|
36
|
+
let {
|
|
37
|
+
children,
|
|
38
|
+
errors,
|
|
39
|
+
warnings,
|
|
40
|
+
hasFeedback,
|
|
41
|
+
validateStatus,
|
|
42
|
+
prefixCls,
|
|
43
|
+
meta,
|
|
44
|
+
noStyle
|
|
45
|
+
} = _ref;
|
|
46
46
|
const itemPrefixCls = `${prefixCls}-item`;
|
|
47
47
|
const {
|
|
48
48
|
feedbackIcons
|
|
@@ -52,8 +52,7 @@ function StatusProvider({
|
|
|
52
52
|
isFormItemInput: parentIsFormItemInput,
|
|
53
53
|
status: parentStatus,
|
|
54
54
|
hasFeedback: parentHasFeedback,
|
|
55
|
-
feedbackIcon: parentFeedbackIcon
|
|
56
|
-
name: parentName
|
|
55
|
+
feedbackIcon: parentFeedbackIcon
|
|
57
56
|
} = React__namespace.useContext(context.FormItemInputContext);
|
|
58
57
|
const formItemStatusContext = React__namespace.useMemo(() => {
|
|
59
58
|
var _a;
|
|
@@ -76,15 +75,13 @@ function StatusProvider({
|
|
|
76
75
|
warnings,
|
|
77
76
|
hasFeedback: !!hasFeedback,
|
|
78
77
|
feedbackIcon,
|
|
79
|
-
isFormItemInput: true
|
|
80
|
-
name
|
|
78
|
+
isFormItemInput: true
|
|
81
79
|
};
|
|
82
80
|
if (noStyle) {
|
|
83
81
|
context2.status = (mergedValidateStatus !== null && mergedValidateStatus !== void 0 ? mergedValidateStatus : parentStatus) || "";
|
|
84
82
|
context2.isFormItemInput = parentIsFormItemInput;
|
|
85
83
|
context2.hasFeedback = !!(hasFeedback !== null && hasFeedback !== void 0 ? hasFeedback : parentHasFeedback);
|
|
86
84
|
context2.feedbackIcon = hasFeedback !== void 0 ? context2.feedbackIcon : parentFeedbackIcon;
|
|
87
|
-
context2.name = name !== null && name !== void 0 ? name : parentName;
|
|
88
85
|
}
|
|
89
86
|
return context2;
|
|
90
87
|
}, [mergedValidateStatus, hasFeedback, noStyle, parentIsFormItemInput, parentStatus]);
|
|
@@ -12,17 +12,17 @@ const iconMap = {
|
|
|
12
12
|
error: RefIcon$1,
|
|
13
13
|
validating: RefIcon
|
|
14
14
|
};
|
|
15
|
-
function StatusProvider({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
15
|
+
function StatusProvider(_ref) {
|
|
16
|
+
let {
|
|
17
|
+
children,
|
|
18
|
+
errors,
|
|
19
|
+
warnings,
|
|
20
|
+
hasFeedback,
|
|
21
|
+
validateStatus,
|
|
22
|
+
prefixCls,
|
|
23
|
+
meta,
|
|
24
|
+
noStyle
|
|
25
|
+
} = _ref;
|
|
26
26
|
const itemPrefixCls = `${prefixCls}-item`;
|
|
27
27
|
const {
|
|
28
28
|
feedbackIcons
|
|
@@ -32,8 +32,7 @@ function StatusProvider({
|
|
|
32
32
|
isFormItemInput: parentIsFormItemInput,
|
|
33
33
|
status: parentStatus,
|
|
34
34
|
hasFeedback: parentHasFeedback,
|
|
35
|
-
feedbackIcon: parentFeedbackIcon
|
|
36
|
-
name: parentName
|
|
35
|
+
feedbackIcon: parentFeedbackIcon
|
|
37
36
|
} = React.useContext(FormItemInputContext);
|
|
38
37
|
const formItemStatusContext = React.useMemo(() => {
|
|
39
38
|
var _a;
|
|
@@ -56,15 +55,13 @@ function StatusProvider({
|
|
|
56
55
|
warnings,
|
|
57
56
|
hasFeedback: !!hasFeedback,
|
|
58
57
|
feedbackIcon,
|
|
59
|
-
isFormItemInput: true
|
|
60
|
-
name
|
|
58
|
+
isFormItemInput: true
|
|
61
59
|
};
|
|
62
60
|
if (noStyle) {
|
|
63
61
|
context.status = (mergedValidateStatus !== null && mergedValidateStatus !== void 0 ? mergedValidateStatus : parentStatus) || "";
|
|
64
62
|
context.isFormItemInput = parentIsFormItemInput;
|
|
65
63
|
context.hasFeedback = !!(hasFeedback !== null && hasFeedback !== void 0 ? hasFeedback : parentHasFeedback);
|
|
66
64
|
context.feedbackIcon = hasFeedback !== void 0 ? context.feedbackIcon : parentFeedbackIcon;
|
|
67
|
-
context.name = name !== null && name !== void 0 ? name : parentName;
|
|
68
65
|
}
|
|
69
66
|
return context;
|
|
70
67
|
}, [mergedValidateStatus, hasFeedback, noStyle, parentIsFormItemInput, parentStatus]);
|
|
@@ -51,9 +51,12 @@ function isSimilarControl(a, b) {
|
|
|
51
51
|
return propValueA === propValueB || typeof propValueA === "function" || typeof propValueB === "function";
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
const MemoInput = /* @__PURE__ */ React__namespace.memo(({
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
const MemoInput = /* @__PURE__ */ React__namespace.memo((_ref) => {
|
|
55
|
+
let {
|
|
56
|
+
children
|
|
57
|
+
} = _ref;
|
|
58
|
+
return children;
|
|
59
|
+
}, (prev, next) => isSimilarControl(prev.control, next.control) && prev.update === next.update && prev.childProps.length === next.childProps.length && prev.childProps.every((value, index2) => value === next.childProps[index2]));
|
|
57
60
|
function genEmptyMeta() {
|
|
58
61
|
return {
|
|
59
62
|
errors: [],
|
|
@@ -157,8 +160,7 @@ function InternalFormItem(props) {
|
|
|
157
160
|
meta,
|
|
158
161
|
errors: mergedErrors,
|
|
159
162
|
warnings: mergedWarnings,
|
|
160
|
-
noStyle: true
|
|
161
|
-
name
|
|
163
|
+
noStyle: true
|
|
162
164
|
}, baseChildren);
|
|
163
165
|
}
|
|
164
166
|
return /* @__PURE__ */ React__namespace.createElement(ItemHolder, Object.assign({
|
|
@@ -172,8 +174,7 @@ function InternalFormItem(props) {
|
|
|
172
174
|
warnings: mergedWarnings,
|
|
173
175
|
meta,
|
|
174
176
|
onSubItemMetaChange,
|
|
175
|
-
layout
|
|
176
|
-
name
|
|
177
|
+
layout
|
|
177
178
|
}), baseChildren);
|
|
178
179
|
}
|
|
179
180
|
if (!hasName && !isRenderProps && !dependencies) {
|
|
@@ -244,9 +245,12 @@ function InternalFormItem(props) {
|
|
|
244
245
|
}
|
|
245
246
|
const triggers = new Set([].concat(toConsumableArray(util.toArray(trigger)), toConsumableArray(util.toArray(mergedValidateTrigger))));
|
|
246
247
|
triggers.forEach((eventName) => {
|
|
247
|
-
childProps[eventName] = (
|
|
248
|
+
childProps[eventName] = function() {
|
|
248
249
|
var _a2, _c2;
|
|
249
250
|
var _a, _b, _c;
|
|
251
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
252
|
+
args[_key] = arguments[_key];
|
|
253
|
+
}
|
|
250
254
|
(_a = mergedControl[eventName]) === null || _a === void 0 ? void 0 : (_a2 = _a).call.apply(_a2, [mergedControl].concat(args));
|
|
251
255
|
(_c = (_b = mergedChildren.props)[eventName]) === null || _c === void 0 ? void 0 : (_c2 = _c).call.apply(_c2, [_b].concat(args));
|
|
252
256
|
};
|
|
@@ -31,9 +31,12 @@ function isSimilarControl(a, b) {
|
|
|
31
31
|
return propValueA === propValueB || typeof propValueA === "function" || typeof propValueB === "function";
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
const MemoInput = /* @__PURE__ */ React.memo(({
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
const MemoInput = /* @__PURE__ */ React.memo((_ref) => {
|
|
35
|
+
let {
|
|
36
|
+
children
|
|
37
|
+
} = _ref;
|
|
38
|
+
return children;
|
|
39
|
+
}, (prev, next) => isSimilarControl(prev.control, next.control) && prev.update === next.update && prev.childProps.length === next.childProps.length && prev.childProps.every((value, index) => value === next.childProps[index]));
|
|
37
40
|
function genEmptyMeta() {
|
|
38
41
|
return {
|
|
39
42
|
errors: [],
|
|
@@ -137,8 +140,7 @@ function InternalFormItem(props) {
|
|
|
137
140
|
meta,
|
|
138
141
|
errors: mergedErrors,
|
|
139
142
|
warnings: mergedWarnings,
|
|
140
|
-
noStyle: true
|
|
141
|
-
name
|
|
143
|
+
noStyle: true
|
|
142
144
|
}, baseChildren);
|
|
143
145
|
}
|
|
144
146
|
return /* @__PURE__ */ React.createElement(ItemHolder, Object.assign({
|
|
@@ -152,8 +154,7 @@ function InternalFormItem(props) {
|
|
|
152
154
|
warnings: mergedWarnings,
|
|
153
155
|
meta,
|
|
154
156
|
onSubItemMetaChange,
|
|
155
|
-
layout
|
|
156
|
-
name
|
|
157
|
+
layout
|
|
157
158
|
}), baseChildren);
|
|
158
159
|
}
|
|
159
160
|
if (!hasName && !isRenderProps && !dependencies) {
|
|
@@ -224,9 +225,12 @@ function InternalFormItem(props) {
|
|
|
224
225
|
}
|
|
225
226
|
const triggers = new Set([].concat(_toConsumableArray(toArray(trigger)), _toConsumableArray(toArray(mergedValidateTrigger))));
|
|
226
227
|
triggers.forEach((eventName) => {
|
|
227
|
-
childProps[eventName] = (
|
|
228
|
+
childProps[eventName] = function() {
|
|
228
229
|
var _a2, _c2;
|
|
229
230
|
var _a, _b, _c;
|
|
231
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
232
|
+
args[_key] = arguments[_key];
|
|
233
|
+
}
|
|
230
234
|
(_a = mergedControl[eventName]) === null || _a === void 0 ? void 0 : (_a2 = _a).call.apply(_a2, [mergedControl].concat(args));
|
|
231
235
|
(_c = (_b = mergedChildren.props)[eventName]) === null || _c === void 0 ? void 0 : (_c2 = _c).call.apply(_c2, [_b].concat(args));
|
|
232
236
|
};
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
var React = require("react");
|
|
3
3
|
var QuestionCircleOutlined = require("../../../@ant-design/icons/es/icons/QuestionCircleOutlined.cjs");
|
|
4
4
|
var index = require("../../../../_virtual/index.cjs");
|
|
5
|
-
var convertToTooltipProps = require("../_util/convertToTooltipProps.cjs");
|
|
6
5
|
var col = require("../grid/col.cjs");
|
|
7
6
|
var en_US = require("../locale/en_US.cjs");
|
|
8
7
|
var index$1 = require("../tooltip/index.cjs");
|
|
@@ -35,18 +34,30 @@ var __rest = function(s, e) {
|
|
|
35
34
|
}
|
|
36
35
|
return t;
|
|
37
36
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
37
|
+
function toTooltipProps(tooltip) {
|
|
38
|
+
if (!tooltip) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
if (typeof tooltip === "object" && !/* @__PURE__ */ React__namespace.isValidElement(tooltip)) {
|
|
42
|
+
return tooltip;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
title: tooltip
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
const FormItemLabel = (_ref) => {
|
|
49
|
+
let {
|
|
50
|
+
prefixCls,
|
|
51
|
+
label,
|
|
52
|
+
htmlFor,
|
|
53
|
+
labelCol,
|
|
54
|
+
labelAlign,
|
|
55
|
+
colon,
|
|
56
|
+
required,
|
|
57
|
+
requiredMark,
|
|
58
|
+
tooltip,
|
|
59
|
+
vertical
|
|
60
|
+
} = _ref;
|
|
50
61
|
var _a;
|
|
51
62
|
const [formLocale] = useLocale("Form");
|
|
52
63
|
const {
|
|
@@ -70,7 +81,7 @@ const FormItemLabel = ({
|
|
|
70
81
|
if (haveColon && typeof label === "string" && label.trim()) {
|
|
71
82
|
labelChildren = label.replace(/[:|:]\s*$/, "");
|
|
72
83
|
}
|
|
73
|
-
const tooltipProps =
|
|
84
|
+
const tooltipProps = toTooltipProps(tooltip);
|
|
74
85
|
if (tooltipProps) {
|
|
75
86
|
const {
|
|
76
87
|
icon = /* @__PURE__ */ React__namespace.createElement(QuestionCircleOutlined, null)
|
|
@@ -87,7 +98,6 @@ const FormItemLabel = ({
|
|
|
87
98
|
}
|
|
88
99
|
const isOptionalMark = requiredMark === "optional";
|
|
89
100
|
const isRenderMark = typeof requiredMark === "function";
|
|
90
|
-
const hideRequiredMark = requiredMark === false;
|
|
91
101
|
if (isRenderMark) {
|
|
92
102
|
labelChildren = requiredMark(labelChildren, {
|
|
93
103
|
required: !!required
|
|
@@ -98,15 +108,9 @@ const FormItemLabel = ({
|
|
|
98
108
|
title: ""
|
|
99
109
|
}, (formLocale === null || formLocale === void 0 ? void 0 : formLocale.optional) || ((_a = en_US.Form) === null || _a === void 0 ? void 0 : _a.optional)));
|
|
100
110
|
}
|
|
101
|
-
let markType;
|
|
102
|
-
if (hideRequiredMark) {
|
|
103
|
-
markType = "hidden";
|
|
104
|
-
} else if (isOptionalMark || isRenderMark) {
|
|
105
|
-
markType = "optional";
|
|
106
|
-
}
|
|
107
111
|
const labelClassName = index({
|
|
108
112
|
[`${prefixCls}-item-required`]: required,
|
|
109
|
-
[`${prefixCls}-item-required-mark
|
|
113
|
+
[`${prefixCls}-item-required-mark-optional`]: isOptionalMark || isRenderMark,
|
|
110
114
|
[`${prefixCls}-item-no-colon`]: !computedColon
|
|
111
115
|
});
|
|
112
116
|
return /* @__PURE__ */ React__namespace.createElement(col, Object.assign({}, mergedLabelCol, {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import RefIcon from "../../../@ant-design/icons/es/icons/QuestionCircleOutlined.js";
|
|
3
3
|
import classNames from "../../../../_virtual/index.js";
|
|
4
|
-
import convertToTooltipProps from "../_util/convertToTooltipProps.js";
|
|
5
4
|
import Col from "../grid/col.js";
|
|
6
5
|
import localeValues from "../locale/en_US.js";
|
|
7
6
|
import Tooltip from "../tooltip/index.js";
|
|
@@ -15,18 +14,30 @@ var __rest = function(s, e) {
|
|
|
15
14
|
}
|
|
16
15
|
return t;
|
|
17
16
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
17
|
+
function toTooltipProps(tooltip) {
|
|
18
|
+
if (!tooltip) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
if (typeof tooltip === "object" && !/* @__PURE__ */ React.isValidElement(tooltip)) {
|
|
22
|
+
return tooltip;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
title: tooltip
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
const FormItemLabel = (_ref) => {
|
|
29
|
+
let {
|
|
30
|
+
prefixCls,
|
|
31
|
+
label,
|
|
32
|
+
htmlFor,
|
|
33
|
+
labelCol,
|
|
34
|
+
labelAlign,
|
|
35
|
+
colon,
|
|
36
|
+
required,
|
|
37
|
+
requiredMark,
|
|
38
|
+
tooltip,
|
|
39
|
+
vertical
|
|
40
|
+
} = _ref;
|
|
30
41
|
var _a;
|
|
31
42
|
const [formLocale] = useLocale("Form");
|
|
32
43
|
const {
|
|
@@ -50,7 +61,7 @@ const FormItemLabel = ({
|
|
|
50
61
|
if (haveColon && typeof label === "string" && label.trim()) {
|
|
51
62
|
labelChildren = label.replace(/[:|:]\s*$/, "");
|
|
52
63
|
}
|
|
53
|
-
const tooltipProps =
|
|
64
|
+
const tooltipProps = toTooltipProps(tooltip);
|
|
54
65
|
if (tooltipProps) {
|
|
55
66
|
const {
|
|
56
67
|
icon = /* @__PURE__ */ React.createElement(RefIcon, null)
|
|
@@ -67,7 +78,6 @@ const FormItemLabel = ({
|
|
|
67
78
|
}
|
|
68
79
|
const isOptionalMark = requiredMark === "optional";
|
|
69
80
|
const isRenderMark = typeof requiredMark === "function";
|
|
70
|
-
const hideRequiredMark = requiredMark === false;
|
|
71
81
|
if (isRenderMark) {
|
|
72
82
|
labelChildren = requiredMark(labelChildren, {
|
|
73
83
|
required: !!required
|
|
@@ -78,15 +88,9 @@ const FormItemLabel = ({
|
|
|
78
88
|
title: ""
|
|
79
89
|
}, (formLocale === null || formLocale === void 0 ? void 0 : formLocale.optional) || ((_a = localeValues.Form) === null || _a === void 0 ? void 0 : _a.optional)));
|
|
80
90
|
}
|
|
81
|
-
let markType;
|
|
82
|
-
if (hideRequiredMark) {
|
|
83
|
-
markType = "hidden";
|
|
84
|
-
} else if (isOptionalMark || isRenderMark) {
|
|
85
|
-
markType = "optional";
|
|
86
|
-
}
|
|
87
91
|
const labelClassName = classNames({
|
|
88
92
|
[`${prefixCls}-item-required`]: required,
|
|
89
|
-
[`${prefixCls}-item-required-mark
|
|
93
|
+
[`${prefixCls}-item-required-mark-optional`]: isOptionalMark || isRenderMark,
|
|
90
94
|
[`${prefixCls}-item-no-colon`]: !computedColon
|
|
91
95
|
});
|
|
92
96
|
return /* @__PURE__ */ React.createElement(Col, Object.assign({}, mergedLabelCol, {
|
|
@@ -24,7 +24,7 @@ function _interopNamespaceDefault(e) {
|
|
|
24
24
|
var React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
25
25
|
const FormContext = /* @__PURE__ */ React__namespace.createContext({
|
|
26
26
|
labelAlign: "right",
|
|
27
|
-
|
|
27
|
+
vertical: false,
|
|
28
28
|
itemRef: () => {
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -40,11 +40,12 @@ const FormItemInputContext = /* @__PURE__ */ React__namespace.createContext({});
|
|
|
40
40
|
if (process.env.NODE_ENV !== "production") {
|
|
41
41
|
FormItemInputContext.displayName = "FormItemInputContext";
|
|
42
42
|
}
|
|
43
|
-
const NoFormStyle = ({
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
const NoFormStyle = (_ref) => {
|
|
44
|
+
let {
|
|
45
|
+
children,
|
|
46
|
+
status,
|
|
47
|
+
override
|
|
48
|
+
} = _ref;
|
|
48
49
|
const formItemInputContext = React__namespace.useContext(FormItemInputContext);
|
|
49
50
|
const newFormItemInputContext = React__namespace.useMemo(() => {
|
|
50
51
|
const newContext = Object.assign({}, formItemInputContext);
|
|
@@ -4,7 +4,7 @@ import omit from "../../../rc-util/es/omit.js";
|
|
|
4
4
|
import { FormProvider as FormProvider$1 } from "../../../rc-field-form/es/FormContext.js";
|
|
5
5
|
const FormContext = /* @__PURE__ */ React.createContext({
|
|
6
6
|
labelAlign: "right",
|
|
7
|
-
|
|
7
|
+
vertical: false,
|
|
8
8
|
itemRef: () => {
|
|
9
9
|
}
|
|
10
10
|
});
|
|
@@ -20,11 +20,12 @@ const FormItemInputContext = /* @__PURE__ */ React.createContext({});
|
|
|
20
20
|
if (process.env.NODE_ENV !== "production") {
|
|
21
21
|
FormItemInputContext.displayName = "FormItemInputContext";
|
|
22
22
|
}
|
|
23
|
-
const NoFormStyle = ({
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
const NoFormStyle = (_ref) => {
|
|
24
|
+
let {
|
|
25
|
+
children,
|
|
26
|
+
status,
|
|
27
|
+
override
|
|
28
|
+
} = _ref;
|
|
28
29
|
const formItemInputContext = React.useContext(FormItemInputContext);
|
|
29
30
|
const newFormItemInputContext = React.useMemo(() => {
|
|
30
31
|
const newContext = Object.assign({}, formItemInputContext);
|