@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
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import classNames from "../../../../../_virtual/index.js";
|
|
2
3
|
import wrapperRaf from "../../../../rc-util/es/raf.js";
|
|
4
|
+
import "../../config-provider/index.js";
|
|
3
5
|
import Input from "../Input.js";
|
|
6
|
+
import { ConfigContext } from "../../config-provider/context.js";
|
|
4
7
|
var __rest = function(s, e) {
|
|
5
8
|
var t = {};
|
|
6
9
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -11,18 +14,23 @@ var __rest = function(s, e) {
|
|
|
11
14
|
};
|
|
12
15
|
const OTPInput = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
13
16
|
const {
|
|
17
|
+
className,
|
|
14
18
|
value,
|
|
15
19
|
onChange,
|
|
16
20
|
onActiveChange,
|
|
17
21
|
index,
|
|
18
22
|
mask
|
|
19
|
-
} = props, restProps = __rest(props, ["value", "onChange", "onActiveChange", "index", "mask"]);
|
|
20
|
-
const
|
|
23
|
+
} = props, restProps = __rest(props, ["className", "value", "onChange", "onActiveChange", "index", "mask"]);
|
|
24
|
+
const {
|
|
25
|
+
getPrefixCls
|
|
26
|
+
} = React.useContext(ConfigContext);
|
|
27
|
+
const prefixCls = getPrefixCls("otp");
|
|
28
|
+
const maskValue = typeof mask === "string" ? mask : value;
|
|
29
|
+
const inputRef = React.useRef(null);
|
|
30
|
+
React.useImperativeHandle(ref, () => inputRef.current);
|
|
21
31
|
const onInternalChange = (e) => {
|
|
22
32
|
onChange(index, e.target.value);
|
|
23
33
|
};
|
|
24
|
-
const inputRef = React.useRef(null);
|
|
25
|
-
React.useImperativeHandle(ref, () => inputRef.current);
|
|
26
34
|
const syncSelection = () => {
|
|
27
35
|
wrapperRaf(() => {
|
|
28
36
|
var _a;
|
|
@@ -53,18 +61,28 @@ const OTPInput = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
53
61
|
}
|
|
54
62
|
syncSelection();
|
|
55
63
|
};
|
|
56
|
-
return /* @__PURE__ */ React.createElement(
|
|
64
|
+
return /* @__PURE__ */ React.createElement("span", {
|
|
65
|
+
className: `${prefixCls}-input-wrapper`,
|
|
66
|
+
role: "presentation"
|
|
67
|
+
}, mask && value !== "" && value !== void 0 && /* @__PURE__ */ React.createElement("span", {
|
|
68
|
+
className: `${prefixCls}-mask-icon`,
|
|
69
|
+
"aria-hidden": "true"
|
|
70
|
+
}, maskValue), /* @__PURE__ */ React.createElement(Input, Object.assign({
|
|
71
|
+
"aria-label": `OTP Input ${index + 1}`,
|
|
57
72
|
type: mask === true ? "password" : "text"
|
|
58
73
|
}, restProps, {
|
|
59
74
|
ref: inputRef,
|
|
60
|
-
value
|
|
75
|
+
value,
|
|
61
76
|
onInput: onInternalChange,
|
|
62
77
|
onFocus: syncSelection,
|
|
63
78
|
onKeyDown: onInternalKeyDown,
|
|
64
79
|
onKeyUp: onInternalKeyUp,
|
|
65
80
|
onMouseDown: syncSelection,
|
|
66
|
-
onMouseUp: syncSelection
|
|
67
|
-
|
|
81
|
+
onMouseUp: syncSelection,
|
|
82
|
+
className: classNames(className, {
|
|
83
|
+
[`${prefixCls}-mask-input`]: mask
|
|
84
|
+
})
|
|
85
|
+
})));
|
|
68
86
|
});
|
|
69
87
|
export {
|
|
70
88
|
OTPInput as default
|
|
@@ -184,7 +184,8 @@ const OTP = /* @__PURE__ */ React__namespace.forwardRef((props, ref) => {
|
|
|
184
184
|
[`${prefixCls}-sm`]: mergedSize === "small",
|
|
185
185
|
[`${prefixCls}-lg`]: mergedSize === "large",
|
|
186
186
|
[`${prefixCls}-rtl`]: direction === "rtl"
|
|
187
|
-
}, cssVarCls, hashId)
|
|
187
|
+
}, cssVarCls, hashId),
|
|
188
|
+
role: "group"
|
|
188
189
|
}), /* @__PURE__ */ React__namespace.createElement(context$1.FormItemInputContext.Provider, {
|
|
189
190
|
value: proxyFormContext
|
|
190
191
|
}, Array.from({
|
|
@@ -164,7 +164,8 @@ const OTP = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
164
164
|
[`${prefixCls}-sm`]: mergedSize === "small",
|
|
165
165
|
[`${prefixCls}-lg`]: mergedSize === "large",
|
|
166
166
|
[`${prefixCls}-rtl`]: direction === "rtl"
|
|
167
|
-
}, cssVarCls, hashId)
|
|
167
|
+
}, cssVarCls, hashId),
|
|
168
|
+
role: "group"
|
|
168
169
|
}), /* @__PURE__ */ React.createElement(FormItemInputContext.Provider, {
|
|
169
170
|
value: proxyFormContext
|
|
170
171
|
}, Array.from({
|
|
@@ -47,7 +47,8 @@ const Password = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
47
47
|
disabled: customDisabled,
|
|
48
48
|
action = "click",
|
|
49
49
|
visibilityToggle = true,
|
|
50
|
-
iconRender = defaultIconRender
|
|
50
|
+
iconRender = defaultIconRender,
|
|
51
|
+
suffix
|
|
51
52
|
} = props;
|
|
52
53
|
const disabled = React__namespace.useContext(DisabledContext.default);
|
|
53
54
|
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
|
|
@@ -109,7 +110,7 @@ const Password = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
109
110
|
type: visible ? "text" : "password",
|
|
110
111
|
className: inputClassName,
|
|
111
112
|
prefixCls: inputPrefixCls,
|
|
112
|
-
suffix: suffixIcon
|
|
113
|
+
suffix: /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, suffixIcon, suffix)
|
|
113
114
|
});
|
|
114
115
|
if (size) {
|
|
115
116
|
omittedProps.size = size;
|
|
@@ -28,7 +28,8 @@ const Password = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
28
28
|
disabled: customDisabled,
|
|
29
29
|
action = "click",
|
|
30
30
|
visibilityToggle = true,
|
|
31
|
-
iconRender = defaultIconRender
|
|
31
|
+
iconRender = defaultIconRender,
|
|
32
|
+
suffix
|
|
32
33
|
} = props;
|
|
33
34
|
const disabled = React.useContext(DisabledContext);
|
|
34
35
|
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
|
|
@@ -90,7 +91,7 @@ const Password = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
90
91
|
type: visible ? "text" : "password",
|
|
91
92
|
className: inputClassName,
|
|
92
93
|
prefixCls: inputPrefixCls,
|
|
93
|
-
suffix: suffixIcon
|
|
94
|
+
suffix: /* @__PURE__ */ React.createElement(React.Fragment, null, suffixIcon, suffix)
|
|
94
95
|
});
|
|
95
96
|
if (size) {
|
|
96
97
|
omittedProps.size = size;
|
|
@@ -51,8 +51,10 @@ const Search = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
51
51
|
onSearch: customOnSearch,
|
|
52
52
|
onChange: customOnChange,
|
|
53
53
|
onCompositionStart,
|
|
54
|
-
onCompositionEnd
|
|
55
|
-
|
|
54
|
+
onCompositionEnd,
|
|
55
|
+
variant,
|
|
56
|
+
onPressEnter: customOnPressEnter
|
|
57
|
+
} = props, restProps = __rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd", "variant", "onPressEnter"]);
|
|
56
58
|
const {
|
|
57
59
|
getPrefixCls,
|
|
58
60
|
direction
|
|
@@ -94,6 +96,7 @@ const Search = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
94
96
|
if (composedRef.current || loading) {
|
|
95
97
|
return;
|
|
96
98
|
}
|
|
99
|
+
customOnPressEnter === null || customOnPressEnter === void 0 ? void 0 : customOnPressEnter(e);
|
|
97
100
|
onSearch(e);
|
|
98
101
|
};
|
|
99
102
|
const searchIcon = typeof enterButton === "boolean" ? /* @__PURE__ */ React__namespace.createElement(SearchOutlined, null) : null;
|
|
@@ -117,14 +120,15 @@ const Search = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
117
120
|
} else {
|
|
118
121
|
button$1 = /* @__PURE__ */ React__namespace.createElement(button, {
|
|
119
122
|
className: btnClassName,
|
|
120
|
-
|
|
123
|
+
color: enterButton ? "primary" : "default",
|
|
121
124
|
size,
|
|
122
125
|
disabled,
|
|
123
126
|
key: "enterButton",
|
|
124
127
|
onMouseDown,
|
|
125
128
|
onClick: onSearch,
|
|
126
129
|
loading,
|
|
127
|
-
icon: searchIcon
|
|
130
|
+
icon: searchIcon,
|
|
131
|
+
variant: variant === "borderless" || variant === "filled" || variant === "underlined" ? "text" : enterButton ? "solid" : void 0
|
|
128
132
|
}, enterButton);
|
|
129
133
|
}
|
|
130
134
|
if (addonAfter) {
|
|
@@ -137,11 +141,6 @@ const Search = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
137
141
|
[`${prefixCls}-${size}`]: !!size,
|
|
138
142
|
[`${prefixCls}-with-button`]: !!enterButton
|
|
139
143
|
}, className);
|
|
140
|
-
const newProps = Object.assign(Object.assign({}, restProps), {
|
|
141
|
-
className: cls,
|
|
142
|
-
prefixCls: inputPrefixCls,
|
|
143
|
-
type: "search"
|
|
144
|
-
});
|
|
145
144
|
const handleOnCompositionStart = (e) => {
|
|
146
145
|
composedRef.current = true;
|
|
147
146
|
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
|
|
@@ -150,18 +149,23 @@ const Search = /* @__PURE__ */ React__namespace.forwardRef((props, ref$1) => {
|
|
|
150
149
|
composedRef.current = false;
|
|
151
150
|
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
|
|
152
151
|
};
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
152
|
+
const inputProps = Object.assign(Object.assign({}, restProps), {
|
|
153
|
+
className: cls,
|
|
154
|
+
prefixCls: inputPrefixCls,
|
|
155
|
+
type: "search",
|
|
157
156
|
size,
|
|
157
|
+
variant,
|
|
158
|
+
onPressEnter,
|
|
158
159
|
onCompositionStart: handleOnCompositionStart,
|
|
159
160
|
onCompositionEnd: handleOnCompositionEnd,
|
|
160
161
|
addonAfter: button$1,
|
|
161
162
|
suffix,
|
|
162
163
|
onChange,
|
|
163
164
|
disabled
|
|
164
|
-
})
|
|
165
|
+
});
|
|
166
|
+
return /* @__PURE__ */ React__namespace.createElement(Input.default, Object.assign({
|
|
167
|
+
ref: ref.composeRef(inputRef, ref$1)
|
|
168
|
+
}, inputProps));
|
|
165
169
|
});
|
|
166
170
|
if (process.env.NODE_ENV !== "production") {
|
|
167
171
|
Search.displayName = "Search";
|
|
@@ -31,8 +31,10 @@ const Search = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
31
31
|
onSearch: customOnSearch,
|
|
32
32
|
onChange: customOnChange,
|
|
33
33
|
onCompositionStart,
|
|
34
|
-
onCompositionEnd
|
|
35
|
-
|
|
34
|
+
onCompositionEnd,
|
|
35
|
+
variant,
|
|
36
|
+
onPressEnter: customOnPressEnter
|
|
37
|
+
} = props, restProps = __rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd", "variant", "onPressEnter"]);
|
|
36
38
|
const {
|
|
37
39
|
getPrefixCls,
|
|
38
40
|
direction
|
|
@@ -74,6 +76,7 @@ const Search = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
74
76
|
if (composedRef.current || loading) {
|
|
75
77
|
return;
|
|
76
78
|
}
|
|
79
|
+
customOnPressEnter === null || customOnPressEnter === void 0 ? void 0 : customOnPressEnter(e);
|
|
77
80
|
onSearch(e);
|
|
78
81
|
};
|
|
79
82
|
const searchIcon = typeof enterButton === "boolean" ? /* @__PURE__ */ React.createElement(RefIcon, null) : null;
|
|
@@ -97,14 +100,15 @@ const Search = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
97
100
|
} else {
|
|
98
101
|
button = /* @__PURE__ */ React.createElement(Button, {
|
|
99
102
|
className: btnClassName,
|
|
100
|
-
|
|
103
|
+
color: enterButton ? "primary" : "default",
|
|
101
104
|
size,
|
|
102
105
|
disabled,
|
|
103
106
|
key: "enterButton",
|
|
104
107
|
onMouseDown,
|
|
105
108
|
onClick: onSearch,
|
|
106
109
|
loading,
|
|
107
|
-
icon: searchIcon
|
|
110
|
+
icon: searchIcon,
|
|
111
|
+
variant: variant === "borderless" || variant === "filled" || variant === "underlined" ? "text" : enterButton ? "solid" : void 0
|
|
108
112
|
}, enterButton);
|
|
109
113
|
}
|
|
110
114
|
if (addonAfter) {
|
|
@@ -117,11 +121,6 @@ const Search = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
117
121
|
[`${prefixCls}-${size}`]: !!size,
|
|
118
122
|
[`${prefixCls}-with-button`]: !!enterButton
|
|
119
123
|
}, className);
|
|
120
|
-
const newProps = Object.assign(Object.assign({}, restProps), {
|
|
121
|
-
className: cls,
|
|
122
|
-
prefixCls: inputPrefixCls,
|
|
123
|
-
type: "search"
|
|
124
|
-
});
|
|
125
124
|
const handleOnCompositionStart = (e) => {
|
|
126
125
|
composedRef.current = true;
|
|
127
126
|
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
|
|
@@ -130,18 +129,23 @@ const Search = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
130
129
|
composedRef.current = false;
|
|
131
130
|
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
|
|
132
131
|
};
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
const inputProps = Object.assign(Object.assign({}, restProps), {
|
|
133
|
+
className: cls,
|
|
134
|
+
prefixCls: inputPrefixCls,
|
|
135
|
+
type: "search",
|
|
137
136
|
size,
|
|
137
|
+
variant,
|
|
138
|
+
onPressEnter,
|
|
138
139
|
onCompositionStart: handleOnCompositionStart,
|
|
139
140
|
onCompositionEnd: handleOnCompositionEnd,
|
|
140
141
|
addonAfter: button,
|
|
141
142
|
suffix,
|
|
142
143
|
onChange,
|
|
143
144
|
disabled
|
|
144
|
-
})
|
|
145
|
+
});
|
|
146
|
+
return /* @__PURE__ */ React.createElement(Input, Object.assign({
|
|
147
|
+
ref: composeRef(inputRef, ref)
|
|
148
|
+
}, inputProps));
|
|
145
149
|
});
|
|
146
150
|
if (process.env.NODE_ENV !== "production") {
|
|
147
151
|
Search.displayName = "Search";
|
|
@@ -60,8 +60,11 @@ const TextArea = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
60
60
|
className,
|
|
61
61
|
style,
|
|
62
62
|
styles,
|
|
63
|
-
variant: customVariant
|
|
64
|
-
|
|
63
|
+
variant: customVariant,
|
|
64
|
+
showCount,
|
|
65
|
+
onMouseDown,
|
|
66
|
+
onResize
|
|
67
|
+
} = props, rest = __rest(props, ["prefixCls", "bordered", "size", "disabled", "status", "allowClear", "classNames", "rootClassName", "className", "style", "styles", "variant", "showCount", "onMouseDown", "onResize"]);
|
|
65
68
|
if (process.env.NODE_ENV !== "production") {
|
|
66
69
|
const {
|
|
67
70
|
deprecated
|
|
@@ -115,6 +118,27 @@ const TextArea = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
115
118
|
});
|
|
116
119
|
const [variant, enableVariantCls] = useVariants("textArea", customVariant, bordered);
|
|
117
120
|
const mergedAllowClear = getAllowClear(allowClear !== null && allowClear !== void 0 ? allowClear : contextAllowClear);
|
|
121
|
+
const [isMouseDown, setIsMouseDown] = React__namespace.useState(false);
|
|
122
|
+
const [resizeDirty, setResizeDirty] = React__namespace.useState(false);
|
|
123
|
+
const onInternalMouseDown = (e) => {
|
|
124
|
+
setIsMouseDown(true);
|
|
125
|
+
onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(e);
|
|
126
|
+
const onMouseUp = () => {
|
|
127
|
+
setIsMouseDown(false);
|
|
128
|
+
document.removeEventListener("mouseup", onMouseUp);
|
|
129
|
+
};
|
|
130
|
+
document.addEventListener("mouseup", onMouseUp);
|
|
131
|
+
};
|
|
132
|
+
const onInternalResize = (size) => {
|
|
133
|
+
var _a2, _b;
|
|
134
|
+
onResize === null || onResize === void 0 ? void 0 : onResize(size);
|
|
135
|
+
if (isMouseDown && typeof getComputedStyle === "function") {
|
|
136
|
+
const ele = (_b = (_a2 = innerRef.current) === null || _a2 === void 0 ? void 0 : _a2.nativeElement) === null || _b === void 0 ? void 0 : _b.querySelector("textarea");
|
|
137
|
+
if (ele && getComputedStyle(ele).resize === "both") {
|
|
138
|
+
setResizeDirty(true);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
118
142
|
return wrapSharedCSSVar(wrapCSSVar(/* @__PURE__ */ React__namespace.createElement(TextArea$1, Object.assign({
|
|
119
143
|
autoComplete: contextAutoComplete
|
|
120
144
|
}, rest, {
|
|
@@ -122,12 +146,21 @@ const TextArea = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
122
146
|
styles: Object.assign(Object.assign({}, contextStyles), styles),
|
|
123
147
|
disabled: mergedDisabled,
|
|
124
148
|
allowClear: mergedAllowClear,
|
|
125
|
-
className: index$1(
|
|
149
|
+
className: index$1(
|
|
150
|
+
cssVarCls,
|
|
151
|
+
rootCls,
|
|
152
|
+
className,
|
|
153
|
+
rootClassName,
|
|
154
|
+
compactItemClassnames,
|
|
155
|
+
contextClassName,
|
|
156
|
+
// Only for wrapper
|
|
157
|
+
resizeDirty && `${prefixCls}-textarea-affix-wrapper-resize-dirty`
|
|
158
|
+
),
|
|
126
159
|
classNames: Object.assign(Object.assign(Object.assign({}, classes), contextClassNames), {
|
|
127
160
|
textarea: index$1({
|
|
128
161
|
[`${prefixCls}-sm`]: mergedSize === "small",
|
|
129
162
|
[`${prefixCls}-lg`]: mergedSize === "large"
|
|
130
|
-
}, hashId, classes === null || classes === void 0 ? void 0 : classes.textarea, contextClassNames.textarea),
|
|
163
|
+
}, hashId, classes === null || classes === void 0 ? void 0 : classes.textarea, contextClassNames.textarea, isMouseDown && `${prefixCls}-mouse-active`),
|
|
131
164
|
variant: index$1({
|
|
132
165
|
[`${prefixCls}-${variant}`]: enableVariantCls
|
|
133
166
|
}, statusUtils.getStatusClassNames(prefixCls, mergedStatus)),
|
|
@@ -135,14 +168,17 @@ const TextArea = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
|
135
168
|
[`${prefixCls}-affix-wrapper-rtl`]: direction === "rtl",
|
|
136
169
|
[`${prefixCls}-affix-wrapper-sm`]: mergedSize === "small",
|
|
137
170
|
[`${prefixCls}-affix-wrapper-lg`]: mergedSize === "large",
|
|
138
|
-
[`${prefixCls}-textarea-show-count`]:
|
|
171
|
+
[`${prefixCls}-textarea-show-count`]: showCount || ((_a = props.count) === null || _a === void 0 ? void 0 : _a.show)
|
|
139
172
|
}, hashId)
|
|
140
173
|
}),
|
|
141
174
|
prefixCls,
|
|
142
175
|
suffix: hasFeedback && /* @__PURE__ */ React__namespace.createElement("span", {
|
|
143
176
|
className: `${prefixCls}-textarea-suffix`
|
|
144
177
|
}, feedbackIcon),
|
|
145
|
-
|
|
178
|
+
showCount,
|
|
179
|
+
ref: innerRef,
|
|
180
|
+
onResize: onInternalResize,
|
|
181
|
+
onMouseDown: onInternalMouseDown
|
|
146
182
|
}))));
|
|
147
183
|
});
|
|
148
184
|
module.exports = TextArea;
|
|
@@ -41,8 +41,11 @@ const TextArea = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
41
41
|
className,
|
|
42
42
|
style,
|
|
43
43
|
styles,
|
|
44
|
-
variant: customVariant
|
|
45
|
-
|
|
44
|
+
variant: customVariant,
|
|
45
|
+
showCount,
|
|
46
|
+
onMouseDown,
|
|
47
|
+
onResize
|
|
48
|
+
} = props, rest = __rest(props, ["prefixCls", "bordered", "size", "disabled", "status", "allowClear", "classNames", "rootClassName", "className", "style", "styles", "variant", "showCount", "onMouseDown", "onResize"]);
|
|
46
49
|
if (process.env.NODE_ENV !== "production") {
|
|
47
50
|
const {
|
|
48
51
|
deprecated
|
|
@@ -96,6 +99,27 @@ const TextArea = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
96
99
|
});
|
|
97
100
|
const [variant, enableVariantCls] = useVariant("textArea", customVariant, bordered);
|
|
98
101
|
const mergedAllowClear = getAllowClear(allowClear !== null && allowClear !== void 0 ? allowClear : contextAllowClear);
|
|
102
|
+
const [isMouseDown, setIsMouseDown] = React.useState(false);
|
|
103
|
+
const [resizeDirty, setResizeDirty] = React.useState(false);
|
|
104
|
+
const onInternalMouseDown = (e) => {
|
|
105
|
+
setIsMouseDown(true);
|
|
106
|
+
onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(e);
|
|
107
|
+
const onMouseUp = () => {
|
|
108
|
+
setIsMouseDown(false);
|
|
109
|
+
document.removeEventListener("mouseup", onMouseUp);
|
|
110
|
+
};
|
|
111
|
+
document.addEventListener("mouseup", onMouseUp);
|
|
112
|
+
};
|
|
113
|
+
const onInternalResize = (size) => {
|
|
114
|
+
var _a2, _b;
|
|
115
|
+
onResize === null || onResize === void 0 ? void 0 : onResize(size);
|
|
116
|
+
if (isMouseDown && typeof getComputedStyle === "function") {
|
|
117
|
+
const ele = (_b = (_a2 = innerRef.current) === null || _a2 === void 0 ? void 0 : _a2.nativeElement) === null || _b === void 0 ? void 0 : _b.querySelector("textarea");
|
|
118
|
+
if (ele && getComputedStyle(ele).resize === "both") {
|
|
119
|
+
setResizeDirty(true);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
};
|
|
99
123
|
return wrapSharedCSSVar(wrapCSSVar(/* @__PURE__ */ React.createElement(TextArea$1, Object.assign({
|
|
100
124
|
autoComplete: contextAutoComplete
|
|
101
125
|
}, rest, {
|
|
@@ -103,12 +127,21 @@ const TextArea = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
103
127
|
styles: Object.assign(Object.assign({}, contextStyles), styles),
|
|
104
128
|
disabled: mergedDisabled,
|
|
105
129
|
allowClear: mergedAllowClear,
|
|
106
|
-
className: classNames(
|
|
130
|
+
className: classNames(
|
|
131
|
+
cssVarCls,
|
|
132
|
+
rootCls,
|
|
133
|
+
className,
|
|
134
|
+
rootClassName,
|
|
135
|
+
compactItemClassnames,
|
|
136
|
+
contextClassName,
|
|
137
|
+
// Only for wrapper
|
|
138
|
+
resizeDirty && `${prefixCls}-textarea-affix-wrapper-resize-dirty`
|
|
139
|
+
),
|
|
107
140
|
classNames: Object.assign(Object.assign(Object.assign({}, classes), contextClassNames), {
|
|
108
141
|
textarea: classNames({
|
|
109
142
|
[`${prefixCls}-sm`]: mergedSize === "small",
|
|
110
143
|
[`${prefixCls}-lg`]: mergedSize === "large"
|
|
111
|
-
}, hashId, classes === null || classes === void 0 ? void 0 : classes.textarea, contextClassNames.textarea),
|
|
144
|
+
}, hashId, classes === null || classes === void 0 ? void 0 : classes.textarea, contextClassNames.textarea, isMouseDown && `${prefixCls}-mouse-active`),
|
|
112
145
|
variant: classNames({
|
|
113
146
|
[`${prefixCls}-${variant}`]: enableVariantCls
|
|
114
147
|
}, getStatusClassNames(prefixCls, mergedStatus)),
|
|
@@ -116,14 +149,17 @@ const TextArea = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
116
149
|
[`${prefixCls}-affix-wrapper-rtl`]: direction === "rtl",
|
|
117
150
|
[`${prefixCls}-affix-wrapper-sm`]: mergedSize === "small",
|
|
118
151
|
[`${prefixCls}-affix-wrapper-lg`]: mergedSize === "large",
|
|
119
|
-
[`${prefixCls}-textarea-show-count`]:
|
|
152
|
+
[`${prefixCls}-textarea-show-count`]: showCount || ((_a = props.count) === null || _a === void 0 ? void 0 : _a.show)
|
|
120
153
|
}, hashId)
|
|
121
154
|
}),
|
|
122
155
|
prefixCls,
|
|
123
156
|
suffix: hasFeedback && /* @__PURE__ */ React.createElement("span", {
|
|
124
157
|
className: `${prefixCls}-textarea-suffix`
|
|
125
158
|
}, feedbackIcon),
|
|
126
|
-
|
|
159
|
+
showCount,
|
|
160
|
+
ref: innerRef,
|
|
161
|
+
onResize: onInternalResize,
|
|
162
|
+
onMouseDown: onInternalMouseDown
|
|
127
163
|
}))));
|
|
128
164
|
});
|
|
129
165
|
export {
|
|
@@ -66,17 +66,6 @@ const genBasicInputStyle = (token2) => Object.assign(Object.assign({
|
|
|
66
66
|
borderRadius: token2.borderRadius,
|
|
67
67
|
transition: `all ${token2.motionDurationMid}`
|
|
68
68
|
}, genPlaceholderStyle(token2.colorTextPlaceholder)), {
|
|
69
|
-
// Reset height for `textarea`s
|
|
70
|
-
"textarea&": {
|
|
71
|
-
maxWidth: "100%",
|
|
72
|
-
// prevent textarea resize from coming out of its container
|
|
73
|
-
height: "auto",
|
|
74
|
-
minHeight: token2.controlHeight,
|
|
75
|
-
lineHeight: token2.lineHeight,
|
|
76
|
-
verticalAlign: "bottom",
|
|
77
|
-
transition: `all ${token2.motionDurationSlow}, height 0s`,
|
|
78
|
-
resize: "vertical"
|
|
79
|
-
},
|
|
80
69
|
// Size
|
|
81
70
|
"&-lg": Object.assign({}, genInputLargeStyle(token2)),
|
|
82
71
|
"&-sm": Object.assign({}, genInputSmallStyle(token2)),
|
|
@@ -341,7 +330,7 @@ const genInputStyle = (token2) => {
|
|
|
341
330
|
}
|
|
342
331
|
},
|
|
343
332
|
'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration': {
|
|
344
|
-
|
|
333
|
+
appearance: "none"
|
|
345
334
|
}
|
|
346
335
|
})
|
|
347
336
|
};
|
|
@@ -367,7 +356,7 @@ const genAllowClearStyle = (token2) => {
|
|
|
367
356
|
outline: "none",
|
|
368
357
|
backgroundColor: "transparent",
|
|
369
358
|
"&:hover": {
|
|
370
|
-
color: token2.
|
|
359
|
+
color: token2.colorIcon
|
|
371
360
|
},
|
|
372
361
|
"&:active": {
|
|
373
362
|
color: token2.colorText
|
|
@@ -438,7 +427,8 @@ const genAffixStyle = (token2) => {
|
|
|
438
427
|
}
|
|
439
428
|
},
|
|
440
429
|
"&-show-count-suffix": {
|
|
441
|
-
color: colorTextDescription
|
|
430
|
+
color: colorTextDescription,
|
|
431
|
+
direction: "ltr"
|
|
442
432
|
},
|
|
443
433
|
"&-show-count-has-suffix": {
|
|
444
434
|
marginInlineEnd: token2.paddingXXS
|
|
@@ -563,7 +553,7 @@ const genSearchInputStyle = (token2) => {
|
|
|
563
553
|
[searchPrefixCls]: {
|
|
564
554
|
[componentCls]: {
|
|
565
555
|
"&:hover, &:focus": {
|
|
566
|
-
[`+ ${componentCls}-group-addon ${searchPrefixCls}-button:not(${antCls}-btn-primary)`]: {
|
|
556
|
+
[`+ ${componentCls}-group-addon ${searchPrefixCls}-button:not(${antCls}-btn-color-primary):not(${antCls}-btn-variant-text)`]: {
|
|
567
557
|
borderInlineStartColor: token2.colorPrimaryHover
|
|
568
558
|
}
|
|
569
559
|
}
|
|
@@ -589,7 +579,7 @@ const genSearchInputStyle = (token2) => {
|
|
|
589
579
|
borderEndStartRadius: 0,
|
|
590
580
|
boxShadow: "none"
|
|
591
581
|
},
|
|
592
|
-
[`${searchPrefixCls}-button:not(${antCls}-btn-primary)`]: {
|
|
582
|
+
[`${searchPrefixCls}-button:not(${antCls}-btn-color-primary)`]: {
|
|
593
583
|
color: token2.colorTextDescription,
|
|
594
584
|
"&:hover": {
|
|
595
585
|
color: token2.colorPrimaryHover
|
|
@@ -598,10 +588,7 @@ const genSearchInputStyle = (token2) => {
|
|
|
598
588
|
color: token2.colorPrimaryActive
|
|
599
589
|
},
|
|
600
590
|
[`&${antCls}-btn-loading::before`]: {
|
|
601
|
-
|
|
602
|
-
insetInlineEnd: 0,
|
|
603
|
-
insetBlockStart: 0,
|
|
604
|
-
insetBlockEnd: 0
|
|
591
|
+
inset: 0
|
|
605
592
|
}
|
|
606
593
|
}
|
|
607
594
|
}
|
|
@@ -64,17 +64,6 @@ const genBasicInputStyle = (token) => Object.assign(Object.assign({
|
|
|
64
64
|
borderRadius: token.borderRadius,
|
|
65
65
|
transition: `all ${token.motionDurationMid}`
|
|
66
66
|
}, genPlaceholderStyle(token.colorTextPlaceholder)), {
|
|
67
|
-
// Reset height for `textarea`s
|
|
68
|
-
"textarea&": {
|
|
69
|
-
maxWidth: "100%",
|
|
70
|
-
// prevent textarea resize from coming out of its container
|
|
71
|
-
height: "auto",
|
|
72
|
-
minHeight: token.controlHeight,
|
|
73
|
-
lineHeight: token.lineHeight,
|
|
74
|
-
verticalAlign: "bottom",
|
|
75
|
-
transition: `all ${token.motionDurationSlow}, height 0s`,
|
|
76
|
-
resize: "vertical"
|
|
77
|
-
},
|
|
78
67
|
// Size
|
|
79
68
|
"&-lg": Object.assign({}, genInputLargeStyle(token)),
|
|
80
69
|
"&-sm": Object.assign({}, genInputSmallStyle(token)),
|
|
@@ -339,7 +328,7 @@ const genInputStyle = (token) => {
|
|
|
339
328
|
}
|
|
340
329
|
},
|
|
341
330
|
'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration': {
|
|
342
|
-
|
|
331
|
+
appearance: "none"
|
|
343
332
|
}
|
|
344
333
|
})
|
|
345
334
|
};
|
|
@@ -365,7 +354,7 @@ const genAllowClearStyle = (token) => {
|
|
|
365
354
|
outline: "none",
|
|
366
355
|
backgroundColor: "transparent",
|
|
367
356
|
"&:hover": {
|
|
368
|
-
color: token.
|
|
357
|
+
color: token.colorIcon
|
|
369
358
|
},
|
|
370
359
|
"&:active": {
|
|
371
360
|
color: token.colorText
|
|
@@ -436,7 +425,8 @@ const genAffixStyle = (token) => {
|
|
|
436
425
|
}
|
|
437
426
|
},
|
|
438
427
|
"&-show-count-suffix": {
|
|
439
|
-
color: colorTextDescription
|
|
428
|
+
color: colorTextDescription,
|
|
429
|
+
direction: "ltr"
|
|
440
430
|
},
|
|
441
431
|
"&-show-count-has-suffix": {
|
|
442
432
|
marginInlineEnd: token.paddingXXS
|
|
@@ -561,7 +551,7 @@ const genSearchInputStyle = (token) => {
|
|
|
561
551
|
[searchPrefixCls]: {
|
|
562
552
|
[componentCls]: {
|
|
563
553
|
"&:hover, &:focus": {
|
|
564
|
-
[`+ ${componentCls}-group-addon ${searchPrefixCls}-button:not(${antCls}-btn-primary)`]: {
|
|
554
|
+
[`+ ${componentCls}-group-addon ${searchPrefixCls}-button:not(${antCls}-btn-color-primary):not(${antCls}-btn-variant-text)`]: {
|
|
565
555
|
borderInlineStartColor: token.colorPrimaryHover
|
|
566
556
|
}
|
|
567
557
|
}
|
|
@@ -587,7 +577,7 @@ const genSearchInputStyle = (token) => {
|
|
|
587
577
|
borderEndStartRadius: 0,
|
|
588
578
|
boxShadow: "none"
|
|
589
579
|
},
|
|
590
|
-
[`${searchPrefixCls}-button:not(${antCls}-btn-primary)`]: {
|
|
580
|
+
[`${searchPrefixCls}-button:not(${antCls}-btn-color-primary)`]: {
|
|
591
581
|
color: token.colorTextDescription,
|
|
592
582
|
"&:hover": {
|
|
593
583
|
color: token.colorPrimaryHover
|
|
@@ -596,10 +586,7 @@ const genSearchInputStyle = (token) => {
|
|
|
596
586
|
color: token.colorPrimaryActive
|
|
597
587
|
},
|
|
598
588
|
[`&${antCls}-btn-loading::before`]: {
|
|
599
|
-
|
|
600
|
-
insetInlineEnd: 0,
|
|
601
|
-
insetBlockStart: 0,
|
|
602
|
-
insetBlockEnd: 0
|
|
589
|
+
inset: 0
|
|
603
590
|
}
|
|
604
591
|
}
|
|
605
592
|
}
|
|
@@ -27,6 +27,28 @@ const genOTPStyle = (token2) => {
|
|
|
27
27
|
alignItems: "center",
|
|
28
28
|
flexWrap: "nowrap",
|
|
29
29
|
columnGap: paddingXS,
|
|
30
|
+
[`${componentCls}-input-wrapper`]: {
|
|
31
|
+
position: "relative",
|
|
32
|
+
[`${componentCls}-mask-icon`]: {
|
|
33
|
+
position: "absolute",
|
|
34
|
+
zIndex: "1",
|
|
35
|
+
top: "50%",
|
|
36
|
+
right: "50%",
|
|
37
|
+
transform: "translate(50%, -50%)",
|
|
38
|
+
pointerEvents: "none"
|
|
39
|
+
},
|
|
40
|
+
[`${componentCls}-mask-input`]: {
|
|
41
|
+
color: "transparent",
|
|
42
|
+
caretColor: token2.colorText
|
|
43
|
+
},
|
|
44
|
+
[`${componentCls}-mask-input[type=number]::-webkit-inner-spin-button`]: {
|
|
45
|
+
"-webkit-appearance": "none",
|
|
46
|
+
margin: 0
|
|
47
|
+
},
|
|
48
|
+
[`${componentCls}-mask-input[type=number]`]: {
|
|
49
|
+
"-moz-appearance": "textfield"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
30
52
|
"&-rtl": {
|
|
31
53
|
direction: "rtl"
|
|
32
54
|
},
|
|
@@ -46,6 +68,6 @@ const genOTPStyle = (token2) => {
|
|
|
46
68
|
};
|
|
47
69
|
var useStyle = genStyleUtils.genStyleHooks(["Input", "OTP"], (token$1) => {
|
|
48
70
|
const inputToken = statistic.merge(token$1, token.initInputToken(token$1));
|
|
49
|
-
return
|
|
71
|
+
return genOTPStyle(inputToken);
|
|
50
72
|
}, token.initComponentToken);
|
|
51
73
|
module.exports = useStyle;
|