@unicom-cloud/ui 0.8.83 → 0.8.84
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/Affix.js +1 -1
- package/Alert.js +1 -1
- package/AutoComplete.js +2 -2
- package/BackTop.js +2 -2
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +4 -4
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +2 -2
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +1 -1
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Development.js +8 -0
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +2 -4
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +8 -9
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/List.js +2 -2
- package/Mentions.js +2 -2
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/Select.js +1 -1
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +2 -44
- package/Spin.js +1 -1
- package/Statistic.js +2 -2
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +2 -2
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +1 -1
- package/Typography.js +1 -1
- package/affix/index.js +1 -1
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/anchor/util.js +1 -1
- package/auto-complete/index.js +2 -2
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +9 -9
- package/badge/index.js +1 -1
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/Month.js +2 -2
- package/calendar/Year.js +11 -11
- package/calendar/index.js +4 -4
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +2 -2
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/{R-uQJib2.js → B1kymbJZ.js} +2 -2
- package/chunk/B44Hj5ad.js +697 -0
- package/chunk/{BZ9g7J4R.js → BC2OXILt.js} +1 -1
- package/chunk/{ev6oHWqY.js → BJjotfW6.js} +1 -1
- package/chunk/{uKZyjtff.js → BNevupAU.js} +4 -5
- package/chunk/BRPQJFSI.js +649 -0
- package/chunk/{CVSWh4ZZ.js → BZJwzdhZ.js} +1 -1
- package/chunk/C7bohPVD.js +185 -0
- package/chunk/{BmulTYLW.js → DO3k0z6J.js} +2802 -2791
- package/chunk/Doi4-DdV.js +1472 -0
- package/chunk/{DdJVL_4g.js → DuWBv5j3.js} +1 -1
- package/chunk/{DSRHFFrc.js → DzekwbB4.js} +1 -1
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +4 -4
- package/color-picker/InputRgb.js +3 -3
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +2 -2
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +2 -2
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +1 -1
- package/date-picker/Picker.js +2 -2
- package/date-picker/RangePicker.js +3 -3
- package/date-picker/index.js +1 -1
- package/date-picker/util.js +1 -1
- package/descriptions/index.js +1 -1
- package/development/index.js +42 -0
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +153 -152
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +2 -4
- package/form/Form.js +1 -1
- package/form/FormItem.js +1 -1
- package/form/context.js +1 -1
- package/grid/Col.js +1 -1
- package/grid/Row.js +1 -1
- package/grid/grid-item.js +1 -1
- package/grid/grid.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/image/Image.js +2 -2
- package/image/ImagePreview.js +2 -2
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +310 -308
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +332 -330
- package/input/InputElement.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input/index.js +7 -8
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +2 -2
- package/mentions/index.js +2 -2
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +1 -1
- package/notice/index.js +1 -1
- package/notification/index.js +1 -1
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +1 -1
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +4 -4
- package/pagination/PageOption.js +2 -2
- package/pagination/Pagination.js +2 -2
- package/pagination/index.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/index.js +1 -1
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/select/Option.js +1 -1
- package/select/Select.js +2 -2
- package/select/index.js +2 -2
- package/select/util.js +1 -1
- package/select-view/Core.js +77 -77
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/index.js +59 -59
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +41 -83
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/statistic/Countdown.js +2 -2
- package/statistic/index.js +18 -18
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +3 -3
- package/table/index.js +1 -1
- package/tabs/Tab.js +2 -2
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +92 -90
- package/time-picker/RangePicker.js +1 -1
- package/time-picker/TimePicker.js +2 -2
- package/time-picker/util.js +6 -6
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +1 -1
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +2 -2
- package/tree/Animation.js +2 -2
- package/tree/Node.js +2 -2
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree/util.js +34 -34
- package/tree-select/List.js +1 -1
- package/tree-select/Select.js +2 -2
- package/tree-select/index.js +2 -2
- package/trigger/index.js +1 -1
- package/types/common/assets/hourglass.d.ts +2 -0
- package/types/common/development/index.d.ts +2 -0
- package/types/common/empty/index.d.ts +4 -0
- package/types/common/empty/interface.d.ts +24 -0
- package/types/common/higher-order/with-speech-synthesis/index.d.ts +2 -0
- package/types/common/hooks/useComputedState.d.ts +4 -0
- package/types/common/hooks/useCreate.d.ts +2 -0
- package/types/common/hooks/useForceUpdate.d.ts +16 -0
- package/types/common/hooks/useId.d.ts +6 -0
- package/types/common/hooks/useInView.d.ts +11 -0
- package/types/common/hooks/useIntersectionObserver.d.ts +7 -0
- package/types/common/hooks/useInterval.d.ts +2 -0
- package/types/common/hooks/useIsFirstRender.d.ts +2 -0
- package/types/common/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/types/common/hooks/useKeyboardEvent.d.ts +8 -0
- package/types/common/hooks/useListenResize.d.ts +18 -0
- package/types/common/hooks/useMedia.d.ts +2 -0
- package/types/common/hooks/useMergeProps.d.ts +5 -0
- package/types/common/hooks/useMergeValue.d.ts +6 -0
- package/types/common/hooks/useOnlineStatus.d.ts +2 -0
- package/types/common/hooks/useOverflowHidden.d.ts +5 -0
- package/types/common/hooks/useOverrideRef.d.ts +6 -0
- package/types/common/hooks/usePersistCallback.d.ts +2 -0
- package/types/common/hooks/usePrefersColorSchemeDark.d.ts +2 -0
- package/types/common/hooks/usePrevious.d.ts +3 -0
- package/types/common/hooks/useRefs.d.ts +2 -0
- package/types/common/hooks/useResizeObserver.d.ts +6 -0
- package/types/common/hooks/useStateCallback.d.ts +5 -0
- package/types/common/hooks/useStateWithPromise.d.ts +2 -0
- package/types/common/hooks/useUpdateEffect.d.ts +19 -0
- package/types/common/hooks/useWatch.d.ts +3 -0
- package/types/common/hooks/useWindowSize.d.ts +18 -0
- package/types/common/utils/PqbCSSTransition.d.ts +4 -0
- package/types/common/utils/caseName.d.ts +1 -0
- package/types/common/utils/className.d.ts +1 -0
- package/types/common/utils/constant.d.ts +2 -0
- package/types/{utils → common/utils}/copy.d.ts +1 -1
- package/types/common/utils/dayjs.d.ts +22 -0
- package/types/common/utils/dom.d.ts +12 -0
- package/types/common/utils/fileToURL.d.ts +1 -0
- package/types/common/utils/fillNBSP.d.ts +3 -0
- package/types/common/utils/getHighlightText.d.ts +7 -0
- package/types/common/utils/getHotkeyHandler.d.ts +18 -0
- package/types/common/utils/getStringLength.d.ts +3 -0
- package/types/common/utils/include.d.ts +3 -0
- package/types/common/utils/is.d.ts +17 -0
- package/types/common/utils/lodash.d.ts +17 -0
- package/types/common/utils/mergeProps.d.ts +3 -0
- package/types/common/utils/mergedToString.d.ts +4 -0
- package/types/common/utils/omit.d.ts +3 -0
- package/types/common/utils/pad.d.ts +2 -0
- package/types/common/utils/pick.d.ts +6 -0
- package/types/common/utils/react19Adapter.d.ts +1 -0
- package/types/common/utils/reactDOM.d.ts +14 -0
- package/types/common/utils/resizeObserverEffect.d.ts +2 -0
- package/types/common/utils/saveAs.d.ts +1 -0
- package/types/common/utils/screenfull.d.ts +1 -0
- package/types/common/utils/scrollIntoView.d.ts +4 -0
- package/types/common/utils/style.d.ts +3 -0
- package/types/common/utils/throttleByRaf.d.ts +6 -0
- package/types/common/utils/warning.d.ts +3 -0
- package/types/pc/affix/interface.d.ts +52 -0
- package/types/pc/alert/interface.d.ts +66 -0
- package/types/pc/anchor/interface.d.ts +105 -0
- package/types/{anchor → pc/anchor}/util.d.ts +1 -1
- package/types/pc/auto-complete/interface.d.ts +127 -0
- package/types/pc/avatar/interface.d.ts +95 -0
- package/types/pc/back-top/interface.d.ts +42 -0
- package/types/pc/badge/interface.d.ts +66 -0
- package/types/pc/breadcrumb/interface.d.ts +78 -0
- package/types/{button → pc/button}/index.d.ts +2 -2
- package/types/pc/button/interface.d.ts +115 -0
- package/types/pc/calendar/hook/useCellClassName.d.ts +2 -0
- package/types/pc/calendar/interface.d.ts +122 -0
- package/types/pc/card/interface.d.ts +99 -0
- package/types/pc/carousel/interface.d.ts +144 -0
- package/types/{cascader → pc/cascader}/base/node.d.ts +30 -0
- package/types/{cascader → pc/cascader}/base/store.d.ts +17 -0
- package/types/pc/cascader/interface.d.ts +308 -0
- package/types/pc/checkbox/interface.d.ts +102 -0
- package/types/{checkbox → pc/checkbox}/useCheckbox.d.ts +9 -0
- package/types/pc/collapse/interface.d.ts +111 -0
- package/types/{color-picker → pc/color-picker}/hooks/useColorPicker.d.ts +2 -2
- package/types/pc/color-picker/interface.d.ts +149 -0
- package/types/pc/comment/interface.d.ts +41 -0
- package/types/{config-provider → pc/config-provider}/interface.d.ts +71 -0
- package/types/pc/date-picker/RangePicker.d.ts +3 -0
- package/types/pc/date-picker/hook/useCellClassName.d.ts +2 -0
- package/types/pc/date-picker/interface.d.ts +518 -0
- package/types/pc/descriptions/interface.d.ts +79 -0
- package/types/pc/development/index.d.ts +2 -0
- package/types/pc/divider/interface.d.ts +21 -0
- package/types/{draggable → pc/draggable}/interface.d.ts +2 -0
- package/types/pc/drawer/interface.d.ts +181 -0
- package/types/pc/dropdown/interface.d.ts +110 -0
- package/types/pc/empty/index.d.ts +4 -0
- package/types/pc/empty/interface.d.ts +8 -0
- package/types/{form → pc/form}/Control.d.ts +8 -0
- package/types/{form → pc/form}/hook/useContext.d.ts +3 -0
- package/types/pc/form/interface.d.ts +544 -0
- package/types/{form → pc/form}/store.d.ts +10 -0
- package/types/pc/grid/interface.d.ts +239 -0
- package/types/{hooks → pc/hooks}/use-verification-code/interface.d.ts +41 -0
- package/types/pc/hooks/use-watermark/interface.d.ts +81 -0
- package/types/pc/hooks/useComputedState.d.ts +1 -0
- package/types/pc/hooks/useCreate.d.ts +1 -0
- package/types/pc/hooks/useForceUpdate.d.ts +1 -0
- package/types/pc/hooks/useId.d.ts +1 -0
- package/types/pc/hooks/useInView.d.ts +1 -0
- package/types/pc/hooks/useIntersectionObserver.d.ts +1 -0
- package/types/pc/hooks/useInterval.d.ts +1 -0
- package/types/pc/hooks/useIsFirstRender.d.ts +1 -0
- package/types/pc/hooks/useIsomorphicLayoutEffect.d.ts +1 -0
- package/types/pc/hooks/useKeyboardEvent.d.ts +1 -0
- package/types/pc/hooks/useListenResize.d.ts +1 -0
- package/types/pc/hooks/useMedia.d.ts +1 -0
- package/types/pc/hooks/useMergeProps.d.ts +2 -0
- package/types/pc/hooks/useMergeValue.d.ts +1 -0
- package/types/pc/hooks/useOnlineStatus.d.ts +1 -0
- package/types/pc/hooks/useOverflowHidden.d.ts +1 -0
- package/types/pc/hooks/useOverrideRef.d.ts +1 -0
- package/types/pc/hooks/usePersistCallback.d.ts +1 -0
- package/types/pc/hooks/usePrefersColorSchemeDark.d.ts +1 -0
- package/types/pc/hooks/usePrevious.d.ts +1 -0
- package/types/pc/hooks/useRefs.d.ts +1 -0
- package/types/pc/hooks/useResizeObserver.d.ts +1 -0
- package/types/pc/hooks/useStateCallback.d.ts +1 -0
- package/types/pc/hooks/useStateWithPromise.d.ts +1 -0
- package/types/pc/hooks/useUpdateEffect.d.ts +1 -0
- package/types/pc/hooks/useWatch.d.ts +1 -0
- package/types/pc/hooks/useWindowSize.d.ts +1 -0
- package/types/pc/image/interface.d.ts +275 -0
- package/types/{index.d.ts → pc/index.d.ts} +1 -0
- package/types/{input → pc/input}/Input.d.ts +7 -8
- package/types/{input → pc/input}/Textarea.d.ts +3 -0
- package/types/{input → pc/input}/index.d.ts +2 -2
- package/types/pc/input/interface.d.ts +344 -0
- package/types/{input-number → pc/input-number}/decimal.d.ts +5 -0
- package/types/pc/input-number/interface.d.ts +141 -0
- package/types/{input-number → pc/input-number}/util.d.ts +15 -0
- package/types/pc/input-tag/interface.d.ts +215 -0
- package/types/pc/layout/interface.d.ts +121 -0
- package/types/pc/link/interface.d.ts +30 -0
- package/types/pc/list/interface.d.ts +192 -0
- package/types/pc/mentions/interface.d.ts +92 -0
- package/types/{menu → pc/menu}/context.d.ts +1 -1
- package/types/pc/menu/interface.d.ts +233 -0
- package/types/pc/message/interface.d.ts +84 -0
- package/types/pc/modal/interface.d.ts +186 -0
- package/types/pc/notification/interface.d.ts +78 -0
- package/types/pc/page-header/interface.d.ts +49 -0
- package/types/{pagination → pc/pagination}/PageItem.d.ts +11 -0
- package/types/pc/pagination/interface.d.ts +134 -0
- package/types/pc/popconfirm/interface.d.ts +114 -0
- package/types/{popover → pc/popover}/interface.d.ts +12 -0
- package/types/{portal → pc/portal}/Portal.d.ts +1 -0
- package/types/{portal → pc/portal}/index.d.ts +1 -0
- package/types/pc/progress/interface.d.ts +92 -0
- package/types/pc/radio/interface.d.ts +103 -0
- package/types/pc/rate/interface.d.ts +70 -0
- package/types/{resize-box → pc/resize-box}/ResizeTrigger.d.ts +6 -0
- package/types/pc/resize-box/interface.d.ts +264 -0
- package/types/pc/result/interface.d.ts +35 -0
- package/types/pc/select/interface.d.ts +321 -0
- package/types/{select → pc/select}/util.d.ts +2 -1
- package/types/pc/select-view/interface.d.ts +151 -0
- package/types/{skeleton → pc/skeleton}/interface.d.ts +26 -0
- package/types/pc/slider/interface.d.ts +122 -0
- package/types/pc/space/interface.d.ts +38 -0
- package/types/pc/spin/interface.d.ts +50 -0
- package/types/pc/statistic/interface.d.ts +139 -0
- package/types/pc/steps/interface.d.ts +124 -0
- package/types/pc/switch/interface.d.ts +65 -0
- package/types/{table → pc/table}/hook/useThResizable.d.ts +1 -1
- package/types/pc/table/interface.d.ts +713 -0
- package/types/pc/tabs/interface.d.ts +217 -0
- package/types/pc/tag/interface.d.ts +76 -0
- package/types/pc/time-picker/interface.d.ts +244 -0
- package/types/pc/timeline/interface.d.ts +95 -0
- package/types/pc/tooltip/interface.d.ts +92 -0
- package/types/pc/transfer/interface.d.ts +225 -0
- package/types/pc/tree/interface.d.ts +354 -0
- package/types/pc/tree-select/interface.d.ts +211 -0
- package/types/pc/trigger/interface.d.ts +247 -0
- package/types/pc/typography/interface.d.ts +262 -0
- package/types/pc/upload/interface.d.ts +337 -0
- package/types/pc/utils/PqbCSSTransition.d.ts +3 -0
- package/types/pc/utils/caseName.d.ts +3 -0
- package/types/pc/utils/className.d.ts +3 -0
- package/types/pc/utils/constant.d.ts +4 -0
- package/types/pc/utils/copy.d.ts +3 -0
- package/types/{utils → pc/utils}/dayjs.d.ts +1 -1
- package/types/{utils → pc/utils}/dom.d.ts +1 -1
- package/types/pc/utils/fileToURL.d.ts +3 -0
- package/types/pc/utils/fillNBSP.d.ts +3 -0
- package/types/pc/utils/getHighlightText.d.ts +3 -0
- package/types/pc/utils/getHotkeyHandler.d.ts +4 -0
- package/types/pc/utils/getStringLength.d.ts +3 -0
- package/types/pc/utils/include.d.ts +3 -0
- package/types/{utils → pc/utils}/is.d.ts +1 -1
- package/types/pc/utils/keyboardCode.d.ts +4 -0
- package/types/{utils → pc/utils}/lodash.d.ts +1 -1
- package/types/pc/utils/mergeProps.d.ts +3 -0
- package/types/pc/utils/mergedToString.d.ts +3 -0
- package/types/{utils → pc/utils}/names.d.ts +6 -0
- package/types/pc/utils/omit.d.ts +3 -0
- package/types/pc/utils/pad.d.ts +1 -0
- package/types/pc/utils/pick.d.ts +3 -0
- package/types/pc/utils/react19Adapter.d.ts +1 -0
- package/types/pc/utils/reactDOM.d.ts +1 -0
- package/types/pc/utils/resizeObserverEffect.d.ts +2 -0
- package/types/pc/utils/saveAs.d.ts +3 -0
- package/types/pc/utils/screenfull.d.ts +3 -0
- package/types/{utils → pc/utils}/scrollIntoView.d.ts +1 -1
- package/types/pc/utils/setDarkTheme.d.ts +3 -0
- package/types/pc/utils/setPrimaryColor.d.ts +2 -0
- package/types/pc/utils/setTheme.d.ts +2 -0
- package/types/pc/utils/style.d.ts +1 -0
- package/types/pc/utils/throttleByRaf.d.ts +1 -0
- package/types/pc/utils/throttleByRaf2.d.ts +1 -0
- package/types/pc/utils/tinycolor.d.ts +1 -0
- package/types/pc/utils/type.d.ts +1 -0
- package/types/pc/utils/warning.d.ts +1 -0
- package/types/pc/verification-code/interface.d.ts +80 -0
- package/types/{virtual-list → pc/virtual-list}/Filler.d.ts +5 -0
- package/types/{virtual-list → pc/virtual-list}/VirtualList.d.ts +1 -0
- package/types/pc/virtual-list/util/algorithm.d.ts +23 -0
- package/types/{virtual-list → pc/virtual-list}/util/item.d.ts +31 -0
- package/types/pc/watermark/interface.d.ts +70 -0
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +9 -9
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/upload/request.js +1 -1
- package/upload/request_.js +1 -1
- package/utils/constant.js +5 -5
- package/utils/contextHolder.js +1 -1
- package/utils/dayjs.js +1 -1
- package/utils/index.js +20 -20
- package/utils/names.js +4 -0
- package/utils/setPrimaryColor.js +14 -14
- package/utils/setTheme.js +3 -3
- package/utils/tween.js +1 -1
- package/utils/type.js +1 -4
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/C9oo3EJI.js +0 -692
- package/chunk/DILUZgXW.js +0 -1464
- package/chunk/DlHiTTJO.js +0 -648
- package/chunk/tamGhTJp.js +0 -186
- package/types/affix/interface.d.ts +0 -12
- package/types/affix/style/index.d.ts +0 -2
- package/types/alert/interface.d.ts +0 -17
- package/types/alert/style/index.d.ts +0 -2
- package/types/anchor/interface.d.ts +0 -24
- package/types/anchor/style/index.d.ts +0 -3
- package/types/auto-complete/interface.d.ts +0 -36
- package/types/auto-complete/style/index.d.ts +0 -4
- package/types/avatar/interface.d.ts +0 -24
- package/types/avatar/style/index.d.ts +0 -3
- package/types/back-top/interface.d.ts +0 -11
- package/types/back-top/style/index.d.ts +0 -2
- package/types/badge/interface.d.ts +0 -18
- package/types/badge/style/index.d.ts +0 -2
- package/types/breadcrumb/interface.d.ts +0 -31
- package/types/breadcrumb/style/index.d.ts +0 -3
- package/types/button/interface.d.ts +0 -37
- package/types/button/style/index.d.ts +0 -2
- package/types/calendar/hook/useCellClassName.d.ts +0 -2
- package/types/calendar/interface.d.ts +0 -41
- package/types/calendar/style/index.d.ts +0 -4
- package/types/card/interface.d.ts +0 -32
- package/types/card/style/index.d.ts +0 -3
- package/types/carousel/interface.d.ts +0 -52
- package/types/carousel/style/index.d.ts +0 -2
- package/types/cascader/interface.d.ts +0 -105
- package/types/cascader/style/index.d.ts +0 -6
- package/types/checkbox/interface.d.ts +0 -36
- package/types/checkbox/style/index.d.ts +0 -2
- package/types/collapse/interface.d.ts +0 -27
- package/types/collapse/style/index.d.ts +0 -2
- package/types/color-picker/interface.d.ts +0 -61
- package/types/color-picker/style/index.d.ts +0 -4
- package/types/comment/interface.d.ts +0 -14
- package/types/comment/style/index.d.ts +0 -2
- package/types/config-provider/style/index.d.ts +0 -2
- package/types/copy/style/index.d.ts +0 -3
- package/types/date-picker/RangePicker.d.ts +0 -3
- package/types/date-picker/hook/useCellClassName.d.ts +0 -2
- package/types/date-picker/interface.d.ts +0 -167
- package/types/date-picker/style/index.d.ts +0 -7
- package/types/descriptions/interface.d.ts +0 -29
- package/types/descriptions/style/index.d.ts +0 -2
- package/types/divider/interface.d.ts +0 -8
- package/types/divider/style/index.d.ts +0 -2
- package/types/draggable/style/index.d.ts +0 -2
- package/types/drawer/interface.d.ts +0 -46
- package/types/drawer/style/index.d.ts +0 -3
- package/types/dropdown/interface.d.ts +0 -29
- package/types/dropdown/style/index.d.ts +0 -4
- package/types/empty/index.d.ts +0 -5
- package/types/empty/interface.d.ts +0 -8
- package/types/empty/style/index.d.ts +0 -2
- package/types/form/interface.d.ts +0 -228
- package/types/form/style/index.d.ts +0 -3
- package/types/grid/interface.d.ts +0 -76
- package/types/grid/style/index.d.ts +0 -2
- package/types/hooks/use-watermark/interface.d.ts +0 -22
- package/types/hooks/useComputedState.d.ts +0 -1
- package/types/hooks/useCreate.d.ts +0 -1
- package/types/hooks/useForceUpdate.d.ts +0 -1
- package/types/hooks/useId.d.ts +0 -1
- package/types/hooks/useInView.d.ts +0 -1
- package/types/hooks/useIntersectionObserver.d.ts +0 -1
- package/types/hooks/useInterval.d.ts +0 -1
- package/types/hooks/useIsFirstRender.d.ts +0 -1
- package/types/hooks/useIsomorphicLayoutEffect.d.ts +0 -1
- package/types/hooks/useKeyboardEvent.d.ts +0 -1
- package/types/hooks/useListenResize.d.ts +0 -1
- package/types/hooks/useMedia.d.ts +0 -1
- package/types/hooks/useMergeProps.d.ts +0 -1
- package/types/hooks/useMergeValue.d.ts +0 -1
- package/types/hooks/useOnlineStatus.d.ts +0 -1
- package/types/hooks/useOverflowHidden.d.ts +0 -1
- package/types/hooks/useOverrideRef.d.ts +0 -1
- package/types/hooks/usePersistCallback.d.ts +0 -1
- package/types/hooks/usePrefersColorSchemeDark.d.ts +0 -1
- package/types/hooks/usePrevious.d.ts +0 -1
- package/types/hooks/useRefs.d.ts +0 -1
- package/types/hooks/useResizeObserver.d.ts +0 -1
- package/types/hooks/useStateCallback.d.ts +0 -1
- package/types/hooks/useStateWithPromise.d.ts +0 -1
- package/types/hooks/useUpdateEffect.d.ts +0 -1
- package/types/hooks/useWatch.d.ts +0 -1
- package/types/hooks/useWindowSize.d.ts +0 -1
- package/types/icon/style/index.d.ts +0 -2
- package/types/icon-hover/style/index.d.ts +0 -2
- package/types/image/interface.d.ts +0 -59
- package/types/image/style/index.d.ts +0 -2
- package/types/input/interface.d.ts +0 -100
- package/types/input/style/index.d.ts +0 -3
- package/types/input-number/interface.d.ts +0 -37
- package/types/input-number/style/index.d.ts +0 -3
- package/types/input-tag/interface.d.ts +0 -60
- package/types/input-tag/style/index.d.ts +0 -3
- package/types/layout/interface.d.ts +0 -39
- package/types/layout/style/index.d.ts +0 -4
- package/types/link/interface.d.ts +0 -9
- package/types/link/style/index.d.ts +0 -2
- package/types/list/interface.d.ts +0 -57
- package/types/list/style/index.d.ts +0 -6
- package/types/loading/style/index.d.ts +0 -2
- package/types/mentions/interface.d.ts +0 -26
- package/types/mentions/style/index.d.ts +0 -2
- package/types/menu/interface.d.ts +0 -77
- package/types/menu/style/index.d.ts +0 -4
- package/types/message/interface.d.ts +0 -31
- package/types/message/style/index.d.ts +0 -2
- package/types/modal/interface.d.ts +0 -57
- package/types/modal/style/index.d.ts +0 -3
- package/types/notice/style/index.d.ts +0 -2
- package/types/notification/interface.d.ts +0 -27
- package/types/notification/style/index.d.ts +0 -2
- package/types/page-header/interface.d.ts +0 -14
- package/types/page-header/style/index.d.ts +0 -3
- package/types/pagination/interface.d.ts +0 -35
- package/types/pagination/style/index.d.ts +0 -4
- package/types/picker/style/index.d.ts +0 -2
- package/types/popconfirm/interface.d.ts +0 -28
- package/types/popconfirm/style/index.d.ts +0 -5
- package/types/popover/style/index.d.ts +0 -3
- package/types/portal/style/index.d.ts +0 -2
- package/types/progress/interface.d.ts +0 -22
- package/types/progress/style/index.d.ts +0 -3
- package/types/radio/interface.d.ts +0 -39
- package/types/radio/style/index.d.ts +0 -2
- package/types/rate/interface.d.ts +0 -17
- package/types/rate/style/index.d.ts +0 -3
- package/types/resize-box/interface.d.ts +0 -73
- package/types/resize-box/style/index.d.ts +0 -2
- package/types/result/interface.d.ts +0 -11
- package/types/result/style/index.d.ts +0 -2
- package/types/select/interface.d.ts +0 -103
- package/types/select/style/index.d.ts +0 -6
- package/types/select-view/interface.d.ts +0 -62
- package/types/select-view/style/index.d.ts +0 -2
- package/types/skeleton/style/index.d.ts +0 -2
- package/types/slider/interface.d.ts +0 -32
- package/types/slider/style/index.d.ts +0 -5
- package/types/space/interface.d.ts +0 -12
- package/types/space/style/index.d.ts +0 -2
- package/types/spin/interface.d.ts +0 -14
- package/types/spin/style/index.d.ts +0 -2
- package/types/statistic/interface.d.ts +0 -33
- package/types/statistic/style/index.d.ts +0 -3
- package/types/steps/interface.d.ts +0 -42
- package/types/steps/style/index.d.ts +0 -2
- package/types/switch/interface.d.ts +0 -17
- package/types/switch/style/index.d.ts +0 -2
- package/types/table/interface.d.ts +0 -301
- package/types/table/style/index.d.ts +0 -12
- package/types/tabs/interface.d.ts +0 -66
- package/types/tabs/style/index.d.ts +0 -3
- package/types/tag/interface.d.ts +0 -23
- package/types/tag/style/index.d.ts +0 -2
- package/types/time-picker/interface.d.ts +0 -62
- package/types/time-picker/style/index.d.ts +0 -5
- package/types/timeline/interface.d.ts +0 -26
- package/types/timeline/style/index.d.ts +0 -2
- package/types/tooltip/interface.d.ts +0 -23
- package/types/tooltip/style/index.d.ts +0 -3
- package/types/transfer/interface.d.ts +0 -91
- package/types/transfer/style/index.d.ts +0 -6
- package/types/tree/interface.d.ts +0 -153
- package/types/tree/style/index.d.ts +0 -3
- package/types/tree-select/interface.d.ts +0 -79
- package/types/tree-select/style/index.d.ts +0 -5
- package/types/trigger/interface.d.ts +0 -73
- package/types/trigger/style/index.d.ts +0 -2
- package/types/typography/interface.d.ts +0 -97
- package/types/typography/style/index.d.ts +0 -5
- package/types/upload/interface.d.ts +0 -126
- package/types/upload/style/index.d.ts +0 -6
- package/types/utils/PqbCSSTransition.d.ts +0 -3
- package/types/utils/caseName.d.ts +0 -3
- package/types/utils/className.d.ts +0 -3
- package/types/utils/constant.d.ts +0 -4
- package/types/utils/fileToURL.d.ts +0 -3
- package/types/utils/fillNBSP.d.ts +0 -3
- package/types/utils/getHighlightText.d.ts +0 -3
- package/types/utils/getHotkeyHandler.d.ts +0 -3
- package/types/utils/getStringLength.d.ts +0 -3
- package/types/utils/include.d.ts +0 -3
- package/types/utils/mergeProps.d.ts +0 -3
- package/types/utils/mergedToString.d.ts +0 -3
- package/types/utils/omit.d.ts +0 -3
- package/types/utils/pad.d.ts +0 -1
- package/types/utils/pick.d.ts +0 -3
- package/types/utils/react19Adapter.d.ts +0 -1
- package/types/utils/reactDOM.d.ts +0 -1
- package/types/utils/resizeObserverEffect.d.ts +0 -2
- package/types/utils/saveAs.d.ts +0 -3
- package/types/utils/screenfull.d.ts +0 -3
- package/types/utils/style.d.ts +0 -1
- package/types/utils/throttleByRaf.d.ts +0 -1
- package/types/utils/throttleByRaf2.d.ts +0 -1
- package/types/utils/warning.d.ts +0 -1
- package/types/verification-code/interface.d.ts +0 -25
- package/types/verification-code/style/index.d.ts +0 -3
- package/types/virtual-list/style/index.d.ts +0 -2
- package/types/virtual-list/util/algorithm.d.ts +0 -6
- package/types/watermark/interface.d.ts +0 -21
- package/types/watermark/style/index.d.ts +0 -1
- /package/types/{utils → common/utils}/keyboardCode.d.ts +0 -0
- /package/types/{utils → common/utils}/setDarkTheme.d.ts +0 -0
- /package/types/{utils → common/utils}/setPrimaryColor.d.ts +0 -0
- /package/types/{utils → common/utils}/setTheme.d.ts +0 -0
- /package/types/{utils → common/utils}/tinycolor.d.ts +0 -0
- /package/types/{utils → common/utils}/type.d.ts +0 -0
- /package/types/{affix → pc/affix}/index.d.ts +0 -0
- /package/types/{alert → pc/alert}/index.d.ts +0 -0
- /package/types/{anchor → pc/anchor}/Anchor.d.ts +0 -0
- /package/types/{anchor → pc/anchor}/Link.d.ts +0 -0
- /package/types/{anchor → pc/anchor}/context.d.ts +0 -0
- /package/types/{anchor → pc/anchor}/index.d.ts +0 -0
- /package/types/{auto-complete → pc/auto-complete}/index.d.ts +0 -0
- /package/types/{avatar → pc/avatar}/Avatar.d.ts +0 -0
- /package/types/{avatar → pc/avatar}/Group.d.ts +0 -0
- /package/types/{avatar → pc/avatar}/context.d.ts +0 -0
- /package/types/{avatar → pc/avatar}/index.d.ts +0 -0
- /package/types/{back-top → pc/back-top}/index.d.ts +0 -0
- /package/types/{badge → pc/badge}/Count.d.ts +0 -0
- /package/types/{badge → pc/badge}/index.d.ts +0 -0
- /package/types/{breadcrumb → pc/breadcrumb}/Item.d.ts +0 -0
- /package/types/{breadcrumb → pc/breadcrumb}/index.d.ts +0 -0
- /package/types/{button → pc/button}/Group.d.ts +0 -0
- /package/types/{calendar → pc/calendar}/Month.d.ts +0 -0
- /package/types/{calendar → pc/calendar}/WeekList.d.ts +0 -0
- /package/types/{calendar → pc/calendar}/Year.d.ts +0 -0
- /package/types/{calendar → pc/calendar}/header/Panel.d.ts +0 -0
- /package/types/{calendar → pc/calendar}/header/index.d.ts +0 -0
- /package/types/{calendar → pc/calendar}/index.d.ts +0 -0
- /package/types/{card → pc/card}/Grid.d.ts +0 -0
- /package/types/{card → pc/card}/Meta.d.ts +0 -0
- /package/types/{card → pc/card}/index.d.ts +0 -0
- /package/types/{carousel → pc/carousel}/Arrow.d.ts +0 -0
- /package/types/{carousel → pc/carousel}/Indicator.d.ts +0 -0
- /package/types/{carousel → pc/carousel}/index.d.ts +0 -0
- /package/types/{cascader → pc/cascader}/Cascader.d.ts +0 -0
- /package/types/{cascader → pc/cascader}/hook/useRefCurrent.d.ts +0 -0
- /package/types/{cascader → pc/cascader}/index.d.ts +0 -0
- /package/types/{cascader → pc/cascader}/panel/List.d.ts +0 -0
- /package/types/{cascader → pc/cascader}/panel/Option.d.ts +0 -0
- /package/types/{cascader → pc/cascader}/panel/Search.d.ts +0 -0
- /package/types/{cascader → pc/cascader}/util.d.ts +0 -0
- /package/types/{checkbox → pc/checkbox}/Checkbox.d.ts +0 -0
- /package/types/{checkbox → pc/checkbox}/Group.d.ts +0 -0
- /package/types/{checkbox → pc/checkbox}/GroupBlock.d.ts +0 -0
- /package/types/{checkbox → pc/checkbox}/IconCheck.d.ts +0 -0
- /package/types/{checkbox → pc/checkbox}/index.d.ts +0 -0
- /package/types/{collapse → pc/collapse}/Collapse.d.ts +0 -0
- /package/types/{collapse → pc/collapse}/Item.d.ts +0 -0
- /package/types/{collapse → pc/collapse}/index.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/ControlBar.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/InputAlpha.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/InputHex.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/InputRgb.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/Mode.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/Palette.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/Panel.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/colors.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/hooks/useControlBlock.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/index.d.ts +0 -0
- /package/types/{color-picker → pc/color-picker}/utils.d.ts +0 -0
- /package/types/{comment → pc/comment}/index.d.ts +0 -0
- /package/types/{config-provider → pc/config-provider}/ConfigProvider.d.ts +0 -0
- /package/types/{config-provider → pc/config-provider}/context.d.ts +0 -0
- /package/types/{config-provider → pc/config-provider}/index.d.ts +0 -0
- /package/types/{copy → pc/copy}/index.d.ts +0 -0
- /package/types/{copy → pc/copy}/interface.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/Picker.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/context.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/index.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/Body.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/Footer.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/Header.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/Shortcut.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/WeekList.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/date/index.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/month/index.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/quarter/index.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/range/index.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/week/index.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/panel/year/index.d.ts +0 -0
- /package/types/{date-picker → pc/date-picker}/util.d.ts +0 -0
- /package/types/{descriptions → pc/descriptions}/index.d.ts +0 -0
- /package/types/{divider → pc/divider}/index.d.ts +0 -0
- /package/types/{draggable → pc/draggable}/Item.d.ts +0 -0
- /package/types/{draggable → pc/draggable}/index.d.ts +0 -0
- /package/types/{drawer → pc/drawer}/Drawer.d.ts +0 -0
- /package/types/{drawer → pc/drawer}/index.d.ts +0 -0
- /package/types/{dropdown → pc/dropdown}/Button.d.ts +0 -0
- /package/types/{dropdown → pc/dropdown}/index.d.ts +0 -0
- /package/types/{form → pc/form}/Form.d.ts +0 -0
- /package/types/{form → pc/form}/FormItem.d.ts +0 -0
- /package/types/{form → pc/form}/FormLabel.d.ts +0 -0
- /package/types/{form → pc/form}/FormList.d.ts +0 -0
- /package/types/{form → pc/form}/FormProvider.d.ts +0 -0
- /package/types/{form → pc/form}/IconSymbol.d.ts +0 -0
- /package/types/{form → pc/form}/context.d.ts +0 -0
- /package/types/{form → pc/form}/hook/useState.d.ts +0 -0
- /package/types/{form → pc/form}/hook/useWatch.d.ts +0 -0
- /package/types/{form → pc/form}/index.d.ts +0 -0
- /package/types/{form → pc/form}/promisify.d.ts +0 -0
- /package/types/{form → pc/form}/useForm.d.ts +0 -0
- /package/types/{form → pc/form}/util.d.ts +0 -0
- /package/types/{grid → pc/grid}/Col.d.ts +0 -0
- /package/types/{grid → pc/grid}/Row.d.ts +0 -0
- /package/types/{grid → pc/grid}/context.d.ts +0 -0
- /package/types/{grid → pc/grid}/grid-item.d.ts +0 -0
- /package/types/{grid → pc/grid}/grid.d.ts +0 -0
- /package/types/{grid → pc/grid}/hook/useResponsiveState.d.ts +0 -0
- /package/types/{grid → pc/grid}/index.d.ts +0 -0
- /package/types/{grid → pc/grid}/util.d.ts +0 -0
- /package/types/{hooks → pc/hooks}/index.d.ts +0 -0
- /package/types/{hooks → pc/hooks}/use-verification-code/index.d.ts +0 -0
- /package/types/{hooks → pc/hooks}/use-watermark/index.d.ts +0 -0
- /package/types/{hooks → pc/hooks}/use-watermark/utils.d.ts +0 -0
- /package/types/{icon → pc/icon}/addFromIconFontCn.d.ts +0 -0
- /package/types/{icon → pc/icon}/index.d.ts +0 -0
- /package/types/{icon-hover → pc/icon-hover}/index.d.ts +0 -0
- /package/types/{icons.d.ts → pc/icons.d.ts} +0 -0
- /package/types/{image → pc/image}/Image.d.ts +0 -0
- /package/types/{image → pc/image}/ImageFooter.d.ts +0 -0
- /package/types/{image → pc/image}/ImagePreview.d.ts +0 -0
- /package/types/{image → pc/image}/ImagePreviewArrow.d.ts +0 -0
- /package/types/{image → pc/image}/ImagePreviewGroup.d.ts +0 -0
- /package/types/{image → pc/image}/ImagePreviewToolbar.d.ts +0 -0
- /package/types/{image → pc/image}/TriggerForToolbar.d.ts +0 -0
- /package/types/{image → pc/image}/index.d.ts +0 -0
- /package/types/{image → pc/image}/previewGroupContext.d.ts +0 -0
- /package/types/{image → pc/image}/util/getFixTranslate.d.ts +0 -0
- /package/types/{image → pc/image}/util/getScale.d.ts +0 -0
- /package/types/{image → pc/image}/util/hook/useImageStatus.d.ts +0 -0
- /package/types/{image → pc/image}/util/hook/useShowFooter.d.ts +0 -0
- /package/types/{input → pc/input}/Button.d.ts +0 -0
- /package/types/{input → pc/input}/Group.d.ts +0 -0
- /package/types/{input → pc/input}/InputElement.d.ts +0 -0
- /package/types/{input → pc/input}/Number.d.ts +0 -0
- /package/types/{input → pc/input}/Password.d.ts +0 -0
- /package/types/{input → pc/input}/Search.d.ts +0 -0
- /package/types/{input → pc/input}/Tag.d.ts +0 -0
- /package/types/{input → pc/input}/autoSizeTextAreaHeight.d.ts +0 -0
- /package/types/{input → pc/input}/useComposition.d.ts +0 -0
- /package/types/{input-number → pc/input-number}/index.d.ts +0 -0
- /package/types/{input-number → pc/input-number}/useSelectionRange.d.ts +0 -0
- /package/types/{input-tag → pc/input-tag}/InputTag.d.ts +0 -0
- /package/types/{input-tag → pc/input-tag}/index.d.ts +0 -0
- /package/types/{layout → pc/layout}/Content.d.ts +0 -0
- /package/types/{layout → pc/layout}/Footer.d.ts +0 -0
- /package/types/{layout → pc/layout}/Header.d.ts +0 -0
- /package/types/{layout → pc/layout}/Sider.d.ts +0 -0
- /package/types/{layout → pc/layout}/index.d.ts +0 -0
- /package/types/{link → pc/link}/index.d.ts +0 -0
- /package/types/{list → pc/list}/Item.d.ts +0 -0
- /package/types/{list → pc/list}/Meta.d.ts +0 -0
- /package/types/{list → pc/list}/index.d.ts +0 -0
- /package/types/{loading → pc/loading}/index.d.ts +0 -0
- /package/types/{locale → pc/locale}/ar-EG.d.ts +0 -0
- /package/types/{locale → pc/locale}/de-DE.d.ts +0 -0
- /package/types/{locale → pc/locale}/default.d.ts +0 -0
- /package/types/{locale → pc/locale}/en-US.d.ts +0 -0
- /package/types/{locale → pc/locale}/es-ES.d.ts +0 -0
- /package/types/{locale → pc/locale}/fr-FR.d.ts +0 -0
- /package/types/{locale → pc/locale}/id-ID.d.ts +0 -0
- /package/types/{locale → pc/locale}/interface.d.ts +0 -0
- /package/types/{locale → pc/locale}/it-IT.d.ts +0 -0
- /package/types/{locale → pc/locale}/ja-JP.d.ts +0 -0
- /package/types/{locale → pc/locale}/ko-KR.d.ts +0 -0
- /package/types/{locale → pc/locale}/ms-MY.d.ts +0 -0
- /package/types/{locale → pc/locale}/pt-BR.d.ts +0 -0
- /package/types/{locale → pc/locale}/pt-PT.d.ts +0 -0
- /package/types/{locale → pc/locale}/ru-RU.d.ts +0 -0
- /package/types/{locale → pc/locale}/th-TH.d.ts +0 -0
- /package/types/{locale → pc/locale}/tr-TR.d.ts +0 -0
- /package/types/{locale → pc/locale}/vi-VN.d.ts +0 -0
- /package/types/{locale → pc/locale}/zh-CN.d.ts +0 -0
- /package/types/{locale → pc/locale}/zh-HK.d.ts +0 -0
- /package/types/{locale → pc/locale}/zh-TW.d.ts +0 -0
- /package/types/{mentions → pc/mentions}/index.d.ts +0 -0
- /package/types/{mentions → pc/mentions}/util.d.ts +0 -0
- /package/types/{menu → pc/menu}/Indent.d.ts +0 -0
- /package/types/{menu → pc/menu}/Item.d.ts +0 -0
- /package/types/{menu → pc/menu}/ItemGroup.d.ts +0 -0
- /package/types/{menu → pc/menu}/Menu.d.ts +0 -0
- /package/types/{menu → pc/menu}/OverflowWrap.d.ts +0 -0
- /package/types/{menu → pc/menu}/index.d.ts +0 -0
- /package/types/{menu → pc/menu}/sub-menu/Inline.d.ts +0 -0
- /package/types/{menu → pc/menu}/sub-menu/Pop.d.ts +0 -0
- /package/types/{menu → pc/menu}/sub-menu/index.d.ts +0 -0
- /package/types/{menu → pc/menu}/util.d.ts +0 -0
- /package/types/{message → pc/message}/index.d.ts +0 -0
- /package/types/{message → pc/message}/useMessage.d.ts +0 -0
- /package/types/{modal → pc/modal}/Confirm.d.ts +0 -0
- /package/types/{modal → pc/modal}/Modal.d.ts +0 -0
- /package/types/{modal → pc/modal}/config.d.ts +0 -0
- /package/types/{modal → pc/modal}/index.d.ts +0 -0
- /package/types/{modal → pc/modal}/use-modal/Hook.d.ts +0 -0
- /package/types/{modal → pc/modal}/use-modal/index.d.ts +0 -0
- /package/types/{notice → pc/notice}/index.d.ts +0 -0
- /package/types/{notification → pc/notification}/index.d.ts +0 -0
- /package/types/{notification → pc/notification}/useNotification.d.ts +0 -0
- /package/types/{notification → pc/notification}/withNotification.d.ts +0 -0
- /package/types/{overflow-ellipsis → pc/overflow-ellipsis}/OverflowItem.d.ts +0 -0
- /package/types/{overflow-ellipsis → pc/overflow-ellipsis}/index.d.ts +0 -0
- /package/types/{page-header → pc/page-header}/index.d.ts +0 -0
- /package/types/{pagination → pc/pagination}/PageJumper.d.ts +0 -0
- /package/types/{pagination → pc/pagination}/PageOption.d.ts +0 -0
- /package/types/{pagination → pc/pagination}/Pagination.d.ts +0 -0
- /package/types/{pagination → pc/pagination}/index.d.ts +0 -0
- /package/types/{picker → pc/picker}/Input.d.ts +0 -0
- /package/types/{picker → pc/picker}/InputRange.d.ts +0 -0
- /package/types/{picker → pc/picker}/index.d.ts +0 -0
- /package/types/{popconfirm → pc/popconfirm}/index.d.ts +0 -0
- /package/types/{popover → pc/popover}/index.d.ts +0 -0
- /package/types/{progress → pc/progress}/CircleProgress.d.ts +0 -0
- /package/types/{progress → pc/progress}/LineProgess.d.ts +0 -0
- /package/types/{progress → pc/progress}/StepProgress.d.ts +0 -0
- /package/types/{progress → pc/progress}/index.d.ts +0 -0
- /package/types/{radio → pc/radio}/Group.d.ts +0 -0
- /package/types/{radio → pc/radio}/GroupBlock.d.ts +0 -0
- /package/types/{radio → pc/radio}/Radio.d.ts +0 -0
- /package/types/{radio → pc/radio}/index.d.ts +0 -0
- /package/types/{rate → pc/rate}/index.d.ts +0 -0
- /package/types/{resize-box → pc/resize-box}/Split.d.ts +0 -0
- /package/types/{resize-box → pc/resize-box}/SplitGroup.d.ts +0 -0
- /package/types/{resize-box → pc/resize-box}/index.d.ts +0 -0
- /package/types/{result → pc/result}/403.d.ts +0 -0
- /package/types/{result → pc/result}/404.d.ts +0 -0
- /package/types/{result → pc/result}/500.d.ts +0 -0
- /package/types/{result → pc/result}/index.d.ts +0 -0
- /package/types/{select → pc/select}/OptGroup.d.ts +0 -0
- /package/types/{select → pc/select}/Option.d.ts +0 -0
- /package/types/{select → pc/select}/Select.d.ts +0 -0
- /package/types/{select → pc/select}/index.d.ts +0 -0
- /package/types/{select-view → pc/select-view}/Core.d.ts +0 -0
- /package/types/{select-view → pc/select-view}/index.d.ts +0 -0
- /package/types/{skeleton → pc/skeleton}/Image.d.ts +0 -0
- /package/types/{skeleton → pc/skeleton}/Text.d.ts +0 -0
- /package/types/{skeleton → pc/skeleton}/index.d.ts +0 -0
- /package/types/{slider → pc/slider}/Button.d.ts +0 -0
- /package/types/{slider → pc/slider}/Dot.d.ts +0 -0
- /package/types/{slider → pc/slider}/Input.d.ts +0 -0
- /package/types/{slider → pc/slider}/Mark.d.ts +0 -0
- /package/types/{slider → pc/slider}/Tick.d.ts +0 -0
- /package/types/{slider → pc/slider}/hook/useInterval.d.ts +0 -0
- /package/types/{slider → pc/slider}/hook/useLegalValue.d.ts +0 -0
- /package/types/{slider → pc/slider}/index.d.ts +0 -0
- /package/types/{slider → pc/slider}/util.d.ts +0 -0
- /package/types/{space → pc/space}/index.d.ts +0 -0
- /package/types/{space → pc/space}/toArray.d.ts +0 -0
- /package/types/{speech-synthesis → pc/speech-synthesis}/index.d.ts +0 -0
- /package/types/{speech-synthesis → pc/speech-synthesis}/style/index.d.ts +0 -0
- /package/types/{spin → pc/spin}/DotLoading.d.ts +0 -0
- /package/types/{spin → pc/spin}/index.d.ts +0 -0
- /package/types/{statistic → pc/statistic}/Countdown.d.ts +0 -0
- /package/types/{statistic → pc/statistic}/index.d.ts +0 -0
- /package/types/{statistic → pc/statistic}/util.d.ts +0 -0
- /package/types/{steps → pc/steps}/Step.d.ts +0 -0
- /package/types/{steps → pc/steps}/index.d.ts +0 -0
- /package/types/{suspense-fallback-test → pc/suspense-fallback-test}/index.d.ts +0 -0
- /package/types/{suspense-fallback-test → pc/suspense-fallback-test}/style/index.d.ts +0 -0
- /package/types/{switch → pc/switch}/index.d.ts +0 -0
- /package/types/{table → pc/table}/ColGroup.d.ts +0 -0
- /package/types/{table → pc/table}/Table.d.ts +0 -0
- /package/types/{table → pc/table}/constant.d.ts +0 -0
- /package/types/{table → pc/table}/hook/useColumns.d.ts +0 -0
- /package/types/{table → pc/table}/hook/useComponent.d.ts +0 -0
- /package/types/{table → pc/table}/hook/useExpand.d.ts +0 -0
- /package/types/{table → pc/table}/hook/useRowSelection.d.ts +0 -0
- /package/types/{table → pc/table}/hook/useSorter.d.ts +0 -0
- /package/types/{table → pc/table}/hook/useStickyClassNames.d.ts +0 -0
- /package/types/{table → pc/table}/hook/useStickyOffsets.d.ts +0 -0
- /package/types/{table → pc/table}/index.d.ts +0 -0
- /package/types/{table → pc/table}/summary/Cell.d.ts +0 -0
- /package/types/{table → pc/table}/summary/Row.d.ts +0 -0
- /package/types/{table → pc/table}/summary/context.d.ts +0 -0
- /package/types/{table → pc/table}/summary/index.d.ts +0 -0
- /package/types/{table → pc/table}/tbody/Td.d.ts +0 -0
- /package/types/{table → pc/table}/tbody/Tr.d.ts +0 -0
- /package/types/{table → pc/table}/tbody/index.d.ts +0 -0
- /package/types/{table → pc/table}/tfoot/index.d.ts +0 -0
- /package/types/{table → pc/table}/th-resizable/index.d.ts +0 -0
- /package/types/{table → pc/table}/thead/Column.d.ts +0 -0
- /package/types/{table → pc/table}/thead/index.d.ts +0 -0
- /package/types/{table → pc/table}/util.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/Tab.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/TabContent.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/TabPane.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/hook/useDomSize.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/hook/useHeaderScroll.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/index.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/tab-header/DropdownIcon.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/tab-header/TabInk.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/tab-header/TabNavIcon.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/tab-header/TabTitle.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/tab-header/index.d.ts +0 -0
- /package/types/{tabs → pc/tabs}/util.d.ts +0 -0
- /package/types/{tag → pc/tag}/index.d.ts +0 -0
- /package/types/{time-picker → pc/time-picker}/Picker.d.ts +0 -0
- /package/types/{time-picker → pc/time-picker}/RangePicker.d.ts +0 -0
- /package/types/{time-picker → pc/time-picker}/TimeColumn.d.ts +0 -0
- /package/types/{time-picker → pc/time-picker}/TimePicker.d.ts +0 -0
- /package/types/{time-picker → pc/time-picker}/context.d.ts +0 -0
- /package/types/{time-picker → pc/time-picker}/index.d.ts +0 -0
- /package/types/{time-picker → pc/time-picker}/util.d.ts +0 -0
- /package/types/{timeline → pc/timeline}/Item.d.ts +0 -0
- /package/types/{timeline → pc/timeline}/Timeline.d.ts +0 -0
- /package/types/{timeline → pc/timeline}/index.d.ts +0 -0
- /package/types/{tooltip → pc/tooltip}/index.d.ts +0 -0
- /package/types/{transfer → pc/transfer}/Item.d.ts +0 -0
- /package/types/{transfer → pc/transfer}/List.d.ts +0 -0
- /package/types/{transfer → pc/transfer}/index.d.ts +0 -0
- /package/types/{tree → pc/tree}/Animation.d.ts +0 -0
- /package/types/{tree → pc/tree}/Context.d.ts +0 -0
- /package/types/{tree → pc/tree}/Node.d.ts +0 -0
- /package/types/{tree → pc/tree}/NodeList.d.ts +0 -0
- /package/types/{tree → pc/tree}/Tree.d.ts +0 -0
- /package/types/{tree → pc/tree}/index.d.ts +0 -0
- /package/types/{tree → pc/tree}/util.d.ts +0 -0
- /package/types/{tree-select → pc/tree-select}/List.d.ts +0 -0
- /package/types/{tree-select → pc/tree-select}/Select.d.ts +0 -0
- /package/types/{tree-select → pc/tree-select}/hook/useKeyCache.d.ts +0 -0
- /package/types/{tree-select → pc/tree-select}/hook/useStateValue.d.ts +0 -0
- /package/types/{tree-select → pc/tree-select}/hook/useTreeData.d.ts +0 -0
- /package/types/{tree-select → pc/tree-select}/index.d.ts +0 -0
- /package/types/{tree-select → pc/tree-select}/util.d.ts +0 -0
- /package/types/{trigger → pc/trigger}/getPopupStyle.d.ts +0 -0
- /package/types/{trigger → pc/trigger}/index.d.ts +0 -0
- /package/types/{typography → pc/typography}/Base.d.ts +0 -0
- /package/types/{typography → pc/typography}/EditContent.d.ts +0 -0
- /package/types/{typography → pc/typography}/Ellipsis.d.ts +0 -0
- /package/types/{typography → pc/typography}/Operations.d.ts +0 -0
- /package/types/{typography → pc/typography}/Paragraph.d.ts +0 -0
- /package/types/{typography → pc/typography}/Text.d.ts +0 -0
- /package/types/{typography → pc/typography}/Title.d.ts +0 -0
- /package/types/{typography → pc/typography}/Typography.d.ts +0 -0
- /package/types/{typography → pc/typography}/index.d.ts +0 -0
- /package/types/{typography → pc/typography}/useCssEllipsis.d.ts +0 -0
- /package/types/{typography → pc/typography}/useEllipsis.d.ts +0 -0
- /package/types/{upload → pc/upload}/TriggerNode.d.ts +0 -0
- /package/types/{upload → pc/upload}/Upload.d.ts +0 -0
- /package/types/{upload → pc/upload}/Uploader.d.ts +0 -0
- /package/types/{upload → pc/upload}/index.d.ts +0 -0
- /package/types/{upload → pc/upload}/list/PictureItem.d.ts +0 -0
- /package/types/{upload → pc/upload}/list/TextItem.d.ts +0 -0
- /package/types/{upload → pc/upload}/list/UploadProgress.d.ts +0 -0
- /package/types/{upload → pc/upload}/list/index.d.ts +0 -0
- /package/types/{upload → pc/upload}/request.d.ts +0 -0
- /package/types/{upload → pc/upload}/request_.d.ts +0 -0
- /package/types/{upload → pc/upload}/util.d.ts +0 -0
- /package/types/{utils → pc/utils}/color.d.ts +0 -0
- /package/types/{utils → pc/utils}/computeScrollIntoView.d.ts +0 -0
- /package/types/{utils → pc/utils}/contextHolder.d.ts +0 -0
- /package/types/{utils → pc/utils}/index.d.ts +0 -0
- /package/types/{utils → pc/utils}/math.d.ts +0 -0
- /package/types/{utils → pc/utils}/reactTransitionGroup.d.ts +0 -0
- /package/types/{utils → pc/utils}/responsiveObserve.d.ts +0 -0
- /package/types/{utils → pc/utils}/tree.d.ts +0 -0
- /package/types/{utils → pc/utils}/tween.d.ts +0 -0
- /package/types/{utils → pc/utils}/uuid.d.ts +0 -0
- /package/types/{utils → pc/utils}/validate.d.ts +0 -0
- /package/types/{verification-code → pc/verification-code}/VerificationCode.d.ts +0 -0
- /package/types/{verification-code → pc/verification-code}/index.d.ts +0 -0
- /package/types/{version → pc/version}/index.d.ts +0 -0
- /package/types/{virtual-list → pc/virtual-list}/index.d.ts +0 -0
- /package/types/{watermark → pc/watermark}/Watermark.d.ts +0 -0
- /package/types/{watermark → pc/watermark}/index.d.ts +0 -0
package/input/Input.js
CHANGED
|
@@ -2,158 +2,160 @@ import { jsx as c, jsxs as te, Fragment as He } from "react/jsx-runtime";
|
|
|
2
2
|
import ne from "lodash/isPlainObject";
|
|
3
3
|
import Fe from "lodash/isString";
|
|
4
4
|
import _e from "lodash/isUndefined";
|
|
5
|
-
import
|
|
6
|
-
import { a as
|
|
7
|
-
import { u as
|
|
5
|
+
import de, { useContext as ie, useState as se, useRef as re, useMemo as ce, useImperativeHandle as $e, useCallback as Ge, useEffect as xe, forwardRef as je } from "react";
|
|
6
|
+
import { a as le, I as Ke } from "../chunk/B44Hj5ad.js";
|
|
7
|
+
import { u as Ae } from "../chunk/BFTV6myl.js";
|
|
8
8
|
import { u as me } from "../chunk/CXPOj2uy.js";
|
|
9
|
-
import
|
|
9
|
+
import U from "@unicom-cloud/utils/class-name";
|
|
10
10
|
import { contains as Se } from "../utils/dom.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
11
|
+
import Ee from "../button/index.js";
|
|
12
|
+
import qe from "./Group.js";
|
|
13
|
+
import Ye from "./InputElement.js";
|
|
14
|
+
import Je from "@unicom-cloud/icons/IconUiDown";
|
|
15
|
+
import Qe from "@unicom-cloud/icons/IconUiMinus";
|
|
16
|
+
import Xe from "@unicom-cloud/icons/IconUiPlus";
|
|
17
|
+
import Ze from "@unicom-cloud/icons/IconUiUp";
|
|
18
18
|
import Ne from "lodash/isNumber";
|
|
19
|
-
import { ArrowDown as
|
|
19
|
+
import { ArrowDown as et, ArrowUp as tt } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
20
20
|
import { o as ve } from "../chunk/BKKEev13.js";
|
|
21
21
|
import { getDecimal as oe } from "../input-number/decimal.js";
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import { u as
|
|
26
|
-
import
|
|
22
|
+
import nt from "../input-number/useSelectionRange.js";
|
|
23
|
+
import rt from "@unicom-cloud/icons/IconUiEye";
|
|
24
|
+
import at from "@unicom-cloud/icons/IconUiEyeInvisible";
|
|
25
|
+
import { u as ot } from "../chunk/BYdIoY50.js";
|
|
26
|
+
import st from "@unicom-cloud/icons/IconUiLoading";
|
|
27
27
|
import Le from "@unicom-cloud/icons/IconUiSearch";
|
|
28
28
|
import De from "../input-tag/InputTag.js";
|
|
29
|
-
import
|
|
30
|
-
import { u as
|
|
29
|
+
import it from "@unicom-cloud/icons/IconUiClose";
|
|
30
|
+
import { u as lt } from "../chunk/B2yFlXke.js";
|
|
31
31
|
import "../chunk/ClM74To2.js";
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import { isPlainObject as
|
|
35
|
-
const
|
|
36
|
-
(e,
|
|
37
|
-
const { getPrefixCls: l } = le
|
|
32
|
+
import ut from "./autoSizeTextAreaHeight.js";
|
|
33
|
+
import ct from "./useComposition.js";
|
|
34
|
+
import { isPlainObject as Re } from "@unicom-cloud/utils/is";
|
|
35
|
+
const be = de.forwardRef(
|
|
36
|
+
(e, $) => {
|
|
37
|
+
const { getPrefixCls: l } = ie(le), {
|
|
38
38
|
className: M,
|
|
39
|
-
style:
|
|
39
|
+
style: b,
|
|
40
40
|
placeholder: T,
|
|
41
41
|
disabled: n,
|
|
42
|
-
loading:
|
|
43
|
-
defaultValue:
|
|
42
|
+
loading: y,
|
|
43
|
+
defaultValue: g,
|
|
44
44
|
addAfter: A,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
buttonProps: v,
|
|
46
|
+
onCallback: E,
|
|
47
|
+
...p
|
|
48
|
+
} = e, S = l == null ? void 0 : l("input-button"), P = U(S, `${S}-button`, M), I = ne(e.maxLength) ? e.maxLength.length : e.maxLength, x = ne(e.maxLength) && e.maxLength.errorOnly ? void 0 : I, [C, u] = me("", {
|
|
49
|
+
defaultValue: "defaultValue" in e ? Q(e.defaultValue, x) : void 0,
|
|
50
|
+
value: "value" in e ? Q(e.value, x) : void 0
|
|
49
51
|
});
|
|
50
52
|
return /* @__PURE__ */ c(
|
|
51
|
-
|
|
53
|
+
R,
|
|
52
54
|
{
|
|
53
|
-
...
|
|
55
|
+
...p,
|
|
54
56
|
disabled: n,
|
|
55
|
-
className:
|
|
56
|
-
style:
|
|
57
|
-
ref:
|
|
57
|
+
className: P,
|
|
58
|
+
style: b,
|
|
59
|
+
ref: $,
|
|
58
60
|
placeholder: T,
|
|
59
61
|
addAfter: A !== void 0 ? A : /* @__PURE__ */ c(
|
|
60
|
-
|
|
62
|
+
Ee,
|
|
61
63
|
{
|
|
62
64
|
disabled: n,
|
|
63
|
-
size:
|
|
64
|
-
className: `${
|
|
65
|
+
size: p.size,
|
|
66
|
+
className: `${S}-btn`,
|
|
65
67
|
type: "primary",
|
|
66
|
-
onClick: (
|
|
67
|
-
var a
|
|
68
|
-
|
|
68
|
+
onClick: (d) => {
|
|
69
|
+
var a;
|
|
70
|
+
E == null || E(C), (a = e.onClick) == null || a.call(e, d);
|
|
69
71
|
},
|
|
70
|
-
loading:
|
|
72
|
+
loading: y,
|
|
71
73
|
loadingFixedWidth: !0,
|
|
72
|
-
...
|
|
74
|
+
...v,
|
|
73
75
|
children: e.label ?? "确定"
|
|
74
76
|
}
|
|
75
77
|
),
|
|
76
|
-
defaultValue:
|
|
77
|
-
onChange: (
|
|
78
|
-
var
|
|
79
|
-
|
|
78
|
+
defaultValue: g,
|
|
79
|
+
onChange: (d, a) => {
|
|
80
|
+
var m;
|
|
81
|
+
u(d), (m = e.onChange) == null || m.call(e, d, a);
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
84
|
);
|
|
83
85
|
}
|
|
84
86
|
);
|
|
85
|
-
|
|
86
|
-
const
|
|
87
|
+
be.displayName = "Input.Button";
|
|
88
|
+
const dt = 200, mt = 1e3, ft = {
|
|
87
89
|
max: 1 / 0,
|
|
88
90
|
min: -1 / 0,
|
|
89
91
|
step: 1,
|
|
90
92
|
mode: "embed",
|
|
91
93
|
parser: (e) => (e == null ? void 0 : e.replace(/[^\w.-]+/g, "")) || ""
|
|
92
94
|
};
|
|
93
|
-
function
|
|
95
|
+
function gt(e, $) {
|
|
94
96
|
var Ve;
|
|
95
97
|
const {
|
|
96
98
|
getPrefixCls: l,
|
|
97
99
|
size: M,
|
|
98
|
-
componentConfig:
|
|
100
|
+
componentConfig: b,
|
|
99
101
|
rtl: T
|
|
100
|
-
} = le
|
|
102
|
+
} = ie(le), n = Ae(
|
|
101
103
|
e,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
+
ft,
|
|
105
|
+
b == null ? void 0 : b.InputNumber
|
|
104
106
|
), {
|
|
105
|
-
className:
|
|
106
|
-
style:
|
|
107
|
+
className: y,
|
|
108
|
+
style: g,
|
|
107
109
|
defaultValue: A,
|
|
108
|
-
disabled:
|
|
110
|
+
disabled: v,
|
|
109
111
|
error: E,
|
|
110
112
|
readOnly: p,
|
|
111
|
-
strictMode:
|
|
112
|
-
placeholder:
|
|
113
|
+
strictMode: S,
|
|
114
|
+
placeholder: P,
|
|
113
115
|
hideControl: I,
|
|
114
|
-
suffix:
|
|
115
|
-
prefix:
|
|
116
|
-
icons:
|
|
117
|
-
mode:
|
|
118
|
-
size:
|
|
119
|
-
step:
|
|
120
|
-
precision:
|
|
121
|
-
min:
|
|
116
|
+
suffix: x,
|
|
117
|
+
prefix: C,
|
|
118
|
+
icons: u,
|
|
119
|
+
mode: d,
|
|
120
|
+
size: a,
|
|
121
|
+
step: m,
|
|
122
|
+
precision: k,
|
|
123
|
+
min: h,
|
|
122
124
|
max: z,
|
|
123
125
|
parser: G,
|
|
124
126
|
formatter: W,
|
|
125
|
-
onBlur:
|
|
127
|
+
onBlur: L,
|
|
126
128
|
onFocus: j,
|
|
127
129
|
onChange: B,
|
|
128
130
|
onKeyDown: H,
|
|
129
131
|
...X
|
|
130
|
-
} = n,
|
|
131
|
-
if (Ne(
|
|
132
|
-
const t = `${
|
|
133
|
-
return Math.max(
|
|
132
|
+
} = n, w = l == null ? void 0 : l("input-number"), r = a || M, O = (() => {
|
|
133
|
+
if (Ne(k)) {
|
|
134
|
+
const t = `${m}`.split(".")[1], f = t && t.length || 0;
|
|
135
|
+
return Math.max(f, k);
|
|
134
136
|
}
|
|
135
137
|
return null;
|
|
136
138
|
})(), [q, K] = se(() => oe(
|
|
137
139
|
"value" in n ? n.value : "defaultValue" in n ? A : void 0
|
|
138
|
-
)), [D, Z] = se(""), [ae, Y] = se(!1), [J, F] = se(!1), i = re(null), o = re(null), N = re(!1), s =
|
|
139
|
-
|
|
140
|
-
const fe = (t,
|
|
140
|
+
)), [D, Z] = se(""), [ae, Y] = se(!1), [J, F] = se(!1), i = re(null), o = re(null), N = re(!1), s = ce(() => "value" in n ? oe(n.value) : q, [n.value, q]), [_, ee] = ce(() => [oe(z), oe(h)], [z, h]);
|
|
141
|
+
$e($, () => o.current, []);
|
|
142
|
+
const fe = (t, f) => {
|
|
141
143
|
if (K(t), !t.equals(s) && B) {
|
|
142
144
|
const V = t.toString({
|
|
143
145
|
safe: !0,
|
|
144
|
-
precision:
|
|
146
|
+
precision: O
|
|
145
147
|
});
|
|
146
148
|
B(
|
|
147
|
-
t.isEmpty ? void 0 :
|
|
148
|
-
|
|
149
|
+
t.isEmpty ? void 0 : S ? V : t.isNaN ? NaN : Number(V),
|
|
150
|
+
f
|
|
149
151
|
);
|
|
150
152
|
}
|
|
151
153
|
}, ge = () => {
|
|
152
154
|
i.current && clearTimeout(i.current), i.current = null;
|
|
153
|
-
},
|
|
155
|
+
}, ue = Ge(
|
|
154
156
|
(t) => {
|
|
155
|
-
let
|
|
156
|
-
return
|
|
157
|
+
let f = t;
|
|
158
|
+
return f.less(ee) ? f = ee : _.less(f) && (f = _), f;
|
|
157
159
|
},
|
|
158
160
|
[ee, _]
|
|
159
161
|
);
|
|
@@ -161,335 +163,335 @@ function ft(e, b) {
|
|
|
161
163
|
N.current = !1;
|
|
162
164
|
}, [n.value]), xe(() => {
|
|
163
165
|
const t = s.less(ee) || _.less(s);
|
|
164
|
-
t && N.current && fe(
|
|
165
|
-
}, [ee, _, s,
|
|
166
|
-
const ye = (t,
|
|
167
|
-
if (t.persist(), t.preventDefault(), F(!1),
|
|
166
|
+
t && N.current && fe(ue(s), "outOfRange"), Y(t);
|
|
167
|
+
}, [ee, _, s, ue]);
|
|
168
|
+
const ye = (t, f, V = !1) => {
|
|
169
|
+
if (t.persist(), t.preventDefault(), F(!1), v || p)
|
|
168
170
|
return;
|
|
169
|
-
const We = s.isInvalid ? oe(
|
|
171
|
+
const We = s.isInvalid ? oe(h === -1 / 0 || h <= 0 && z >= 0 ? 0 : h) : s.add(f === "plus" ? m : -m);
|
|
170
172
|
if (fe(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
+
ue(We),
|
|
174
|
+
f === "plus" ? "increase" : "decrease"
|
|
173
175
|
), o.current && o.current.focus(), V) {
|
|
174
176
|
const Be = i.current === null;
|
|
175
177
|
i.current = setTimeout(
|
|
176
178
|
() => t.target.dispatchEvent(t.nativeEvent),
|
|
177
|
-
Be ?
|
|
179
|
+
Be ? mt : dt
|
|
178
180
|
);
|
|
179
181
|
}
|
|
180
|
-
}, we =
|
|
182
|
+
}, we = ce(() => {
|
|
181
183
|
let t;
|
|
182
|
-
return J ? t = G ? `${G(D)}` : D : Ne(
|
|
183
|
-
}, [s, D, J,
|
|
184
|
+
return J ? t = G ? `${G(D)}` : D : Ne(O) ? t = s.toString({ safe: !0, precision: O }) : s.isInvalid ? t = "" : t = s.toString(), W ? W(t, { userTyping: J, input: D }) : t;
|
|
185
|
+
}, [s, D, J, O, G, W]), Oe = nt({
|
|
184
186
|
inputElement: (Ve = o.current) == null ? void 0 : Ve.dom,
|
|
185
187
|
inputValue: we
|
|
186
|
-
}),
|
|
187
|
-
onChange: (t,
|
|
188
|
+
}), Ue = {
|
|
189
|
+
onChange: (t, f) => {
|
|
188
190
|
F(!0), t = t.trim().replace(/。/g, ".");
|
|
189
191
|
const V = G ? G(t) : t;
|
|
190
|
-
(Ne(+V) || V === "-" || !V || V === ".") && (Z(t), fe(
|
|
192
|
+
(Ne(+V) || V === "-" || !V || V === ".") && (Z(t), fe(ue(oe(V)), "manual"), Oe(f));
|
|
191
193
|
},
|
|
192
194
|
onKeyDown: (t) => {
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
+
const f = t.key;
|
|
196
|
+
f === et.key ? (t.stopPropagation(), ye(t, "minus")) : f === tt.key && (t.stopPropagation(), ye(t, "plus")), ge(), H == null || H(t);
|
|
195
197
|
},
|
|
196
198
|
onFocus: (t) => {
|
|
197
|
-
var
|
|
198
|
-
N.current = !0, Z((V = (
|
|
199
|
+
var f, V;
|
|
200
|
+
N.current = !0, Z((V = (f = o.current) == null ? void 0 : f.dom) == null ? void 0 : V.value), j == null || j(t);
|
|
199
201
|
},
|
|
200
202
|
onBlur: (t) => {
|
|
201
|
-
fe(
|
|
203
|
+
fe(ue(s), "outOfRange"), F(!1), L == null || L(t);
|
|
202
204
|
}
|
|
203
|
-
},
|
|
204
|
-
onMouseDown: (
|
|
205
|
-
}, Ce = !I &&
|
|
206
|
-
const V = !
|
|
205
|
+
}, ke = (t) => p ? {} : {
|
|
206
|
+
onMouseDown: (f) => ye(f, t, !0)
|
|
207
|
+
}, Ce = !I && d === "button", ze = !I && !p && d === "embed", pe = (t, f) => {
|
|
208
|
+
const V = !v && (s.isInvalid || (t === "plus" ? _.isInvalid || s.less(_) : ee.isInvalid || ee.less(s)));
|
|
207
209
|
return /* @__PURE__ */ c(
|
|
208
210
|
"div",
|
|
209
211
|
{
|
|
210
|
-
className:
|
|
211
|
-
[`${
|
|
212
|
+
className: U(`${w}-step-button`, {
|
|
213
|
+
[`${w}-step-button-disabled`]: !V
|
|
212
214
|
}),
|
|
213
215
|
onMouseLeave: ge,
|
|
214
216
|
onMouseUp: ge,
|
|
215
|
-
...V ?
|
|
216
|
-
children:
|
|
217
|
+
...V ? ke(t) : {},
|
|
218
|
+
children: f
|
|
217
219
|
}
|
|
218
220
|
);
|
|
219
221
|
};
|
|
220
222
|
return /* @__PURE__ */ c(
|
|
221
|
-
|
|
223
|
+
R,
|
|
222
224
|
{
|
|
223
225
|
_ignorePropsFromGlobal: !0,
|
|
224
226
|
role: "spinbutton",
|
|
225
227
|
"aria-valuemax": z,
|
|
226
|
-
"aria-valuemin":
|
|
228
|
+
"aria-valuemin": h,
|
|
227
229
|
"aria-valuenow": s.isEmpty ? void 0 : s.toNumber(),
|
|
228
230
|
...ve(X, ["allowClear"]),
|
|
229
|
-
...
|
|
230
|
-
style:
|
|
231
|
-
className:
|
|
232
|
-
|
|
233
|
-
`${
|
|
234
|
-
`${
|
|
231
|
+
...Ue,
|
|
232
|
+
style: g,
|
|
233
|
+
className: U(
|
|
234
|
+
w,
|
|
235
|
+
`${w}-mode-${d}`,
|
|
236
|
+
`${w}-size-${r}`,
|
|
235
237
|
{
|
|
236
|
-
[`${
|
|
237
|
-
[`${
|
|
238
|
-
[`${
|
|
238
|
+
[`${w}-rtl`]: T,
|
|
239
|
+
[`${w}-readonly`]: p,
|
|
240
|
+
[`${w}-illegal-value`]: !s.isEmpty && ae
|
|
239
241
|
},
|
|
240
|
-
|
|
242
|
+
y
|
|
241
243
|
),
|
|
242
244
|
ref: o,
|
|
243
245
|
size: r,
|
|
244
246
|
error: E,
|
|
245
|
-
disabled:
|
|
247
|
+
disabled: v,
|
|
246
248
|
readOnly: p,
|
|
247
249
|
value: we,
|
|
248
|
-
placeholder:
|
|
249
|
-
prefix:
|
|
250
|
+
placeholder: P,
|
|
251
|
+
prefix: C && /* @__PURE__ */ c("div", { className: `${w}-prefix`, children: C }),
|
|
250
252
|
suffix: /* @__PURE__ */ te(He, { children: [
|
|
251
|
-
ze && /* @__PURE__ */ te("div", { className: `${
|
|
252
|
-
|
|
253
|
+
ze && /* @__PURE__ */ te("div", { className: `${w}-step-layer`, children: [
|
|
254
|
+
pe(
|
|
253
255
|
"plus",
|
|
254
|
-
|
|
256
|
+
u && u.up ? u.up : /* @__PURE__ */ c(Ze, {})
|
|
255
257
|
),
|
|
256
|
-
|
|
258
|
+
pe(
|
|
257
259
|
"minus",
|
|
258
|
-
|
|
260
|
+
u && u.down ? u.down : /* @__PURE__ */ c(Je, {})
|
|
259
261
|
)
|
|
260
262
|
] }),
|
|
261
|
-
|
|
263
|
+
x && /* @__PURE__ */ c("div", { className: `${w}-suffix`, children: x })
|
|
262
264
|
] }),
|
|
263
|
-
addBefore: Ce &&
|
|
265
|
+
addBefore: Ce && pe(
|
|
264
266
|
"minus",
|
|
265
|
-
|
|
267
|
+
u && u.minus ? u.minus : /* @__PURE__ */ c(Qe, {})
|
|
266
268
|
),
|
|
267
|
-
addAfter: Ce &&
|
|
269
|
+
addAfter: Ce && pe(
|
|
268
270
|
"plus",
|
|
269
|
-
|
|
271
|
+
u && u.plus ? u.plus : /* @__PURE__ */ c(Xe, {})
|
|
270
272
|
)
|
|
271
273
|
}
|
|
272
274
|
);
|
|
273
275
|
}
|
|
274
|
-
const Ie =
|
|
275
|
-
|
|
276
|
+
const Ie = de.forwardRef(
|
|
277
|
+
gt
|
|
276
278
|
);
|
|
277
279
|
Ie.displayName = "InputNumber";
|
|
278
|
-
const Me =
|
|
279
|
-
(e,
|
|
280
|
+
const Me = de.forwardRef(
|
|
281
|
+
(e, $) => {
|
|
280
282
|
const [l, M] = me(!1, {
|
|
281
283
|
defaultValue: e.defaultVisibility,
|
|
282
284
|
value: e.visibility
|
|
283
|
-
}), { getPrefixCls:
|
|
285
|
+
}), { getPrefixCls: b } = ie(le), T = ot(), {
|
|
284
286
|
className: n,
|
|
285
|
-
visibilityToggle:
|
|
286
|
-
onVisibilityChange:
|
|
287
|
+
visibilityToggle: y = !0,
|
|
288
|
+
onVisibilityChange: g,
|
|
287
289
|
...A
|
|
288
|
-
} = e,
|
|
289
|
-
|
|
290
|
+
} = e, v = b == null ? void 0 : b("input-password"), E = U(
|
|
291
|
+
v,
|
|
290
292
|
{
|
|
291
|
-
[`${
|
|
293
|
+
[`${v}-visibility`]: y
|
|
292
294
|
},
|
|
293
295
|
n
|
|
294
296
|
), p = (I) => {
|
|
295
|
-
"visibility" in e || M(I),
|
|
297
|
+
"visibility" in e || M(I), g == null || g(I);
|
|
296
298
|
};
|
|
297
|
-
let
|
|
298
|
-
const
|
|
299
|
+
let S = e.suffix;
|
|
300
|
+
const P = () => {
|
|
299
301
|
p(!l);
|
|
300
302
|
};
|
|
301
|
-
if (
|
|
303
|
+
if (y) {
|
|
302
304
|
const I = {
|
|
303
|
-
onClick:
|
|
305
|
+
onClick: P,
|
|
304
306
|
// 预防focus丢失
|
|
305
|
-
onMouseDown: (
|
|
306
|
-
onMouseUp: (
|
|
307
|
+
onMouseDown: (x) => x.preventDefault(),
|
|
308
|
+
onMouseUp: (x) => x.preventDefault(),
|
|
307
309
|
...T({
|
|
308
|
-
onPressEnter:
|
|
310
|
+
onPressEnter: P
|
|
309
311
|
})
|
|
310
312
|
};
|
|
311
|
-
e.suffix ?
|
|
312
|
-
l ?
|
|
313
|
+
e.suffix ? S = /* @__PURE__ */ c("span", { ...I, children: e.suffix }) : S = /* @__PURE__ */ c(
|
|
314
|
+
l ? rt : at,
|
|
313
315
|
{
|
|
314
316
|
...I,
|
|
315
317
|
focusable: void 0,
|
|
316
318
|
"aria-hidden": void 0,
|
|
317
319
|
// tabIndex: 0,
|
|
318
|
-
className: `${
|
|
320
|
+
className: `${v}-visibility-icon`
|
|
319
321
|
}
|
|
320
322
|
);
|
|
321
323
|
}
|
|
322
324
|
return /* @__PURE__ */ c(
|
|
323
|
-
|
|
325
|
+
R,
|
|
324
326
|
{
|
|
325
327
|
...ve(A, ["visibility", "defaultVisibility"]),
|
|
326
328
|
type: l ? "text" : "password",
|
|
327
329
|
className: E,
|
|
328
|
-
ref:
|
|
329
|
-
suffix:
|
|
330
|
+
ref: $,
|
|
331
|
+
suffix: S
|
|
330
332
|
}
|
|
331
333
|
);
|
|
332
334
|
}
|
|
333
335
|
);
|
|
334
336
|
Me.displayName = "Password";
|
|
335
|
-
const Te =
|
|
336
|
-
(e,
|
|
337
|
-
const { getPrefixCls: l } = le
|
|
337
|
+
const Te = de.forwardRef(
|
|
338
|
+
(e, $) => {
|
|
339
|
+
const { getPrefixCls: l } = ie(le), {
|
|
338
340
|
className: M,
|
|
339
|
-
style:
|
|
341
|
+
style: b,
|
|
340
342
|
placeholder: T,
|
|
341
343
|
disabled: n,
|
|
342
|
-
searchButton:
|
|
343
|
-
loading:
|
|
344
|
+
searchButton: y,
|
|
345
|
+
loading: g,
|
|
344
346
|
defaultValue: A,
|
|
345
|
-
addAfter:
|
|
347
|
+
addAfter: v,
|
|
346
348
|
suffix: E,
|
|
347
349
|
...p
|
|
348
|
-
} = e,
|
|
349
|
-
defaultValue: "defaultValue" in e ? Q(e.defaultValue,
|
|
350
|
-
value: "value" in e ? Q(e.value,
|
|
351
|
-
}),
|
|
352
|
-
|
|
350
|
+
} = e, S = ne(e.maxLength) ? e.maxLength.length : e.maxLength, P = ne(e.maxLength) && e.maxLength.errorOnly ? void 0 : S, [I, x] = me("", {
|
|
351
|
+
defaultValue: "defaultValue" in e ? Q(e.defaultValue, P) : void 0,
|
|
352
|
+
value: "value" in e ? Q(e.value, P) : void 0
|
|
353
|
+
}), C = l == null ? void 0 : l("input-search"), u = U(
|
|
354
|
+
C,
|
|
353
355
|
{
|
|
354
|
-
[`${
|
|
356
|
+
[`${C}-button`]: y
|
|
355
357
|
},
|
|
356
358
|
M
|
|
357
|
-
),
|
|
358
|
-
var
|
|
359
|
-
!n && ((
|
|
359
|
+
), d = () => {
|
|
360
|
+
var a;
|
|
361
|
+
!n && ((a = e.onSearch) == null || a.call(e, I));
|
|
360
362
|
};
|
|
361
363
|
return /* @__PURE__ */ c(
|
|
362
|
-
|
|
364
|
+
R,
|
|
363
365
|
{
|
|
364
366
|
...ve(p, ["onSearch"]),
|
|
365
367
|
disabled: n,
|
|
366
|
-
className:
|
|
367
|
-
style:
|
|
368
|
-
ref:
|
|
368
|
+
className: u,
|
|
369
|
+
style: b,
|
|
370
|
+
ref: $,
|
|
369
371
|
placeholder: T,
|
|
370
|
-
addAfter:
|
|
371
|
-
|
|
372
|
+
addAfter: v !== void 0 ? v : y ? /* @__PURE__ */ c(
|
|
373
|
+
Ee,
|
|
372
374
|
{
|
|
373
375
|
disabled: n,
|
|
374
376
|
size: p.size,
|
|
375
|
-
className: `${
|
|
377
|
+
className: `${C}-btn`,
|
|
376
378
|
type: "primary",
|
|
377
|
-
onClick:
|
|
378
|
-
loading:
|
|
379
|
+
onClick: d,
|
|
380
|
+
loading: g,
|
|
379
381
|
loadingFixedWidth: !0,
|
|
380
|
-
icon:
|
|
382
|
+
icon: y === !0 && !g && /* @__PURE__ */ c(Le, {}),
|
|
381
383
|
...e == null ? void 0 : e.searchButtonProps,
|
|
382
|
-
children:
|
|
384
|
+
children: y !== !0 && y
|
|
383
385
|
}
|
|
384
386
|
) : null,
|
|
385
|
-
suffix: E !== void 0 ? E : !
|
|
386
|
-
onChange: (
|
|
387
|
-
var
|
|
388
|
-
|
|
387
|
+
suffix: E !== void 0 ? E : !y && (g ? /* @__PURE__ */ c(st, {}) : /* @__PURE__ */ c(Le, { onClick: d })),
|
|
388
|
+
onChange: (a, m) => {
|
|
389
|
+
var k;
|
|
390
|
+
x(a), (k = e.onChange) == null || k.call(e, a, m);
|
|
389
391
|
},
|
|
390
392
|
defaultValue: A,
|
|
391
|
-
onPressEnter: (
|
|
392
|
-
var
|
|
393
|
-
|
|
393
|
+
onPressEnter: (a) => {
|
|
394
|
+
var m;
|
|
395
|
+
d(), (m = e.onPressEnter) == null || m.call(e, a);
|
|
394
396
|
}
|
|
395
397
|
}
|
|
396
398
|
);
|
|
397
399
|
}
|
|
398
400
|
);
|
|
399
401
|
Te.displayName = "Search";
|
|
400
|
-
const
|
|
402
|
+
const pt = (e, $) => {
|
|
401
403
|
const {
|
|
402
404
|
className: l,
|
|
403
405
|
style: M,
|
|
404
|
-
wrapperStyle:
|
|
406
|
+
wrapperStyle: b,
|
|
405
407
|
placeholder: T,
|
|
406
408
|
disabled: n,
|
|
407
|
-
error:
|
|
408
|
-
maxLength:
|
|
409
|
+
error: y,
|
|
410
|
+
maxLength: g,
|
|
409
411
|
showWordLimit: A,
|
|
410
|
-
allowClear:
|
|
412
|
+
allowClear: v,
|
|
411
413
|
onChange: E,
|
|
412
414
|
onClear: p,
|
|
413
|
-
onKeyDown:
|
|
414
|
-
onPressEnter:
|
|
415
|
+
onKeyDown: S,
|
|
416
|
+
onPressEnter: P,
|
|
415
417
|
status: I,
|
|
416
|
-
clearIcon:
|
|
417
|
-
...
|
|
418
|
-
} = e,
|
|
419
|
-
defaultValue: "defaultValue" in e ? Q(e.defaultValue,
|
|
420
|
-
value: "value" in e ? Q(e.value,
|
|
418
|
+
clearIcon: x,
|
|
419
|
+
...C
|
|
420
|
+
} = e, u = Re(g) ? g.length : g, d = Re(g) ? g.errorOnly ? void 0 : g.length : g, a = re(), [m, k] = se({}), [h, z] = me("", {
|
|
421
|
+
defaultValue: "defaultValue" in e ? Q(e.defaultValue, d) : void 0,
|
|
422
|
+
value: "value" in e ? Q(e.value, d) : void 0
|
|
421
423
|
}), {
|
|
422
424
|
compositionValue: G,
|
|
423
425
|
compositionHandler: W,
|
|
424
|
-
valueChangeHandler:
|
|
426
|
+
valueChangeHandler: L,
|
|
425
427
|
keyDownHandler: j,
|
|
426
428
|
triggerValueChangeCallback: B
|
|
427
|
-
} =
|
|
428
|
-
value:
|
|
429
|
-
maxLength:
|
|
429
|
+
} = ct({
|
|
430
|
+
value: h,
|
|
431
|
+
maxLength: d,
|
|
430
432
|
onChange: E,
|
|
431
|
-
onKeyDown:
|
|
432
|
-
onPressEnter:
|
|
433
|
+
onKeyDown: S,
|
|
434
|
+
onPressEnter: P,
|
|
433
435
|
beforeTriggerValueChangeCallback: (i) => {
|
|
434
|
-
!("value" in e) && (
|
|
436
|
+
!("value" in e) && (d === void 0 || i.length <= d) && z(i);
|
|
435
437
|
}
|
|
436
|
-
}), H = G ||
|
|
437
|
-
n && (
|
|
438
|
-
const
|
|
439
|
-
if (
|
|
440
|
-
if (
|
|
441
|
-
const i =
|
|
442
|
-
|
|
438
|
+
}), H = G || h || "", { getPrefixCls: X, rtl: w } = ie(le), r = X == null ? void 0 : X("textarea");
|
|
439
|
+
n && (m.resize = "none");
|
|
440
|
+
const O = () => {
|
|
441
|
+
if (a.current && a.current.focus) {
|
|
442
|
+
if (a.current.setSelectionRange) {
|
|
443
|
+
const i = a.current.textContent.length;
|
|
444
|
+
a.current.setSelectionRange(i, i);
|
|
443
445
|
}
|
|
444
|
-
|
|
446
|
+
a.current.focus();
|
|
445
447
|
}
|
|
446
448
|
}, q = () => {
|
|
447
|
-
const i =
|
|
449
|
+
const i = ut(
|
|
448
450
|
e.autoSize,
|
|
449
|
-
|
|
451
|
+
a.current
|
|
450
452
|
);
|
|
451
|
-
i &&
|
|
453
|
+
i && k(i);
|
|
452
454
|
}, K = (i) => {
|
|
453
|
-
i.stopPropagation(),
|
|
455
|
+
i.stopPropagation(), O(), B("", i), p == null || p();
|
|
454
456
|
};
|
|
455
|
-
|
|
457
|
+
lt(() => {
|
|
456
458
|
q();
|
|
457
|
-
}, [H]),
|
|
458
|
-
|
|
459
|
+
}, [H]), $e(
|
|
460
|
+
$,
|
|
459
461
|
() => ({
|
|
460
|
-
dom:
|
|
462
|
+
dom: a.current,
|
|
461
463
|
focus: () => {
|
|
462
|
-
|
|
464
|
+
O();
|
|
463
465
|
},
|
|
464
466
|
blur: () => {
|
|
465
467
|
var i, o;
|
|
466
|
-
(o = (i =
|
|
468
|
+
(o = (i = a.current) == null ? void 0 : i.blur) == null || o.call(i);
|
|
467
469
|
},
|
|
468
|
-
getRootDOMNode: () =>
|
|
470
|
+
getRootDOMNode: () => a.current
|
|
469
471
|
}),
|
|
470
472
|
[]
|
|
471
473
|
);
|
|
472
|
-
const D =
|
|
474
|
+
const D = h ? h.length : 0, Z = u && A || v, ae = ce(() => !d && u ? D > u : !1, [D, u, d]), Y = I || (y || ae ? "error" : void 0), J = U(
|
|
473
475
|
r,
|
|
474
476
|
{
|
|
475
477
|
[`${r}-${Y}`]: Y,
|
|
476
478
|
// [`${prefixCls}-error`]: error || lengthError || status === 'error',
|
|
477
479
|
[`${r}-disabled`]: n,
|
|
478
|
-
[`${r}-rtl`]:
|
|
480
|
+
[`${r}-rtl`]: w
|
|
479
481
|
},
|
|
480
482
|
l
|
|
481
483
|
), F = /* @__PURE__ */ c(
|
|
482
484
|
"textarea",
|
|
483
485
|
{
|
|
484
|
-
...ve(
|
|
485
|
-
maxLength:
|
|
486
|
-
ref:
|
|
487
|
-
style: { ...M, ...
|
|
486
|
+
...ve(C, ["autoSize", "defaultValue"]),
|
|
487
|
+
maxLength: d,
|
|
488
|
+
ref: a,
|
|
489
|
+
style: { ...M, ...m },
|
|
488
490
|
className: J,
|
|
489
491
|
placeholder: T,
|
|
490
492
|
disabled: n,
|
|
491
493
|
value: H,
|
|
492
|
-
onChange:
|
|
494
|
+
onChange: L,
|
|
493
495
|
onKeyDown: j,
|
|
494
496
|
onCompositionStart: W,
|
|
495
497
|
onCompositionUpdate: W,
|
|
@@ -497,18 +499,18 @@ const gt = (e, b) => {
|
|
|
497
499
|
}
|
|
498
500
|
);
|
|
499
501
|
if (Z) {
|
|
500
|
-
const i = !n &&
|
|
502
|
+
const i = !n && v && h, [o, N] = w ? [u, D] : [D, u];
|
|
501
503
|
return /* @__PURE__ */ te(
|
|
502
504
|
"div",
|
|
503
505
|
{
|
|
504
|
-
className:
|
|
505
|
-
[`${r}-clear-wrapper`]:
|
|
506
|
-
[`${r}-wrapper-rtl`]:
|
|
506
|
+
className: U(`${r}-wrapper`, {
|
|
507
|
+
[`${r}-clear-wrapper`]: v,
|
|
508
|
+
[`${r}-wrapper-rtl`]: w
|
|
507
509
|
}),
|
|
508
|
-
style:
|
|
510
|
+
style: b,
|
|
509
511
|
children: [
|
|
510
512
|
F,
|
|
511
|
-
i ?
|
|
513
|
+
i ? x !== void 0 ? /* @__PURE__ */ c(
|
|
512
514
|
"span",
|
|
513
515
|
{
|
|
514
516
|
className: `${r}-clear-icon`,
|
|
@@ -516,10 +518,10 @@ const gt = (e, b) => {
|
|
|
516
518
|
onMouseDown: (s) => {
|
|
517
519
|
s.preventDefault();
|
|
518
520
|
},
|
|
519
|
-
children:
|
|
521
|
+
children: x
|
|
520
522
|
}
|
|
521
|
-
) : /* @__PURE__ */ c(
|
|
522
|
-
|
|
523
|
+
) : /* @__PURE__ */ c(Ke, { className: `${r}-clear-icon`, children: /* @__PURE__ */ c(
|
|
524
|
+
it,
|
|
523
525
|
{
|
|
524
526
|
onClick: K,
|
|
525
527
|
onMouseDown: (s) => {
|
|
@@ -527,10 +529,10 @@ const gt = (e, b) => {
|
|
|
527
529
|
}
|
|
528
530
|
}
|
|
529
531
|
) }) : null,
|
|
530
|
-
|
|
532
|
+
u && A && /* @__PURE__ */ te(
|
|
531
533
|
"span",
|
|
532
534
|
{
|
|
533
|
-
className:
|
|
535
|
+
className: U(`${r}-word-limit`, {
|
|
534
536
|
[`${r}-word-limit-error`]: ae
|
|
535
537
|
}),
|
|
536
538
|
children: [
|
|
@@ -545,82 +547,82 @@ const gt = (e, b) => {
|
|
|
545
547
|
);
|
|
546
548
|
}
|
|
547
549
|
return F;
|
|
548
|
-
}, Pe =
|
|
550
|
+
}, Pe = de.forwardRef(pt);
|
|
549
551
|
Pe.displayName = "TextArea";
|
|
550
552
|
const ht = (e) => {
|
|
551
|
-
e.target.tagName
|
|
552
|
-
},
|
|
553
|
-
function Q(e,
|
|
553
|
+
e.target.tagName === "INPUT" || e.preventDefault();
|
|
554
|
+
}, he = (e, $, l = {}, M) => $ ? /* @__PURE__ */ c("span", { style: l, className: e, onClick: M, children: $ }) : null;
|
|
555
|
+
function Q(e, $) {
|
|
554
556
|
const l = e !== null && !_e(e) && !Fe(e) ? String(e) : e || "";
|
|
555
|
-
return
|
|
557
|
+
return $ ? l.slice(0, $) : l;
|
|
556
558
|
}
|
|
557
|
-
function
|
|
559
|
+
function vt(e, $) {
|
|
558
560
|
const {
|
|
559
561
|
getPrefixCls: l,
|
|
560
562
|
size: M,
|
|
561
|
-
componentConfig:
|
|
563
|
+
componentConfig: b,
|
|
562
564
|
rtl: T
|
|
563
|
-
} = le
|
|
565
|
+
} = ie(le), n = Ae(
|
|
564
566
|
e,
|
|
565
567
|
{},
|
|
566
|
-
|
|
568
|
+
b == null ? void 0 : b.Input
|
|
567
569
|
), {
|
|
568
|
-
className:
|
|
569
|
-
style:
|
|
570
|
+
className: y,
|
|
571
|
+
style: g,
|
|
570
572
|
addBefore: A,
|
|
571
|
-
addAfter:
|
|
573
|
+
addAfter: v,
|
|
572
574
|
suffix: E,
|
|
573
575
|
prefix: p,
|
|
574
|
-
beforeStyle:
|
|
575
|
-
afterStyle:
|
|
576
|
+
beforeStyle: S,
|
|
577
|
+
afterStyle: P,
|
|
576
578
|
height: I,
|
|
577
|
-
disabled:
|
|
578
|
-
maxLength:
|
|
579
|
-
showWordLimit:
|
|
580
|
-
allowClear:
|
|
581
|
-
autoWidth:
|
|
582
|
-
} = n,
|
|
579
|
+
disabled: x,
|
|
580
|
+
maxLength: C,
|
|
581
|
+
showWordLimit: u,
|
|
582
|
+
allowClear: d,
|
|
583
|
+
autoWidth: a
|
|
584
|
+
} = n, m = a ? {
|
|
583
585
|
minWidth: 0,
|
|
584
586
|
maxWidth: "100%",
|
|
585
|
-
...ne(
|
|
586
|
-
} : null,
|
|
587
|
-
minWidth:
|
|
588
|
-
maxWidth:
|
|
589
|
-
width:
|
|
590
|
-
...
|
|
591
|
-
},
|
|
587
|
+
...ne(a) ? a : {}
|
|
588
|
+
} : null, k = {
|
|
589
|
+
minWidth: m == null ? void 0 : m.minWidth,
|
|
590
|
+
maxWidth: m == null ? void 0 : m.maxWidth,
|
|
591
|
+
width: m && "auto",
|
|
592
|
+
...g
|
|
593
|
+
}, h = ne(C) ? C.length : C, z = ne(C) && C.errorOnly ? void 0 : h, [G, W] = se(!1), L = re(), j = re(), B = re(), [H, X] = me("", {
|
|
592
594
|
defaultValue: "defaultValue" in n ? Q(n.defaultValue, z) : void 0,
|
|
593
595
|
value: "value" in n ? Q(n.value, z) : void 0
|
|
594
596
|
});
|
|
595
|
-
|
|
596
|
-
|
|
597
|
+
$e(
|
|
598
|
+
$,
|
|
597
599
|
() => {
|
|
598
600
|
var o, N, s;
|
|
599
601
|
return {
|
|
600
|
-
focus: (o =
|
|
601
|
-
blur: (N =
|
|
602
|
-
dom: (s =
|
|
602
|
+
focus: (o = L.current) == null ? void 0 : o.focus,
|
|
603
|
+
blur: (N = L.current) == null ? void 0 : N.blur,
|
|
604
|
+
dom: (s = L.current) == null ? void 0 : s.dom,
|
|
603
605
|
// 保持之前逻辑
|
|
604
606
|
getRootDOMNode: () => {
|
|
605
607
|
var _;
|
|
606
|
-
return j.current || ((_ =
|
|
608
|
+
return j.current || ((_ = L.current) == null ? void 0 : _.dom);
|
|
607
609
|
}
|
|
608
610
|
};
|
|
609
611
|
},
|
|
610
612
|
[]
|
|
611
613
|
);
|
|
612
|
-
const
|
|
614
|
+
const w = (o, N) => {
|
|
613
615
|
var s;
|
|
614
616
|
"value" in n || X(o), (s = n.onChange) == null || s.call(n, o, N);
|
|
615
|
-
}, r = l == null ? void 0 : l("input"),
|
|
617
|
+
}, r = l == null ? void 0 : l("input"), O = n.size || M, q = "height" in n;
|
|
616
618
|
let K = E;
|
|
617
|
-
const D = H ? H.length : 0, Z =
|
|
618
|
-
if (
|
|
619
|
-
const [o, N] = T ? [
|
|
619
|
+
const D = H ? H.length : 0, Z = ce(() => !z && h ? D > h : !1, [D, h, z]);
|
|
620
|
+
if (h && u) {
|
|
621
|
+
const [o, N] = T ? [h, D] : [D, h];
|
|
620
622
|
K = /* @__PURE__ */ te(
|
|
621
623
|
"span",
|
|
622
624
|
{
|
|
623
|
-
className:
|
|
625
|
+
className: U(`${r}-word-limit`, {
|
|
624
626
|
[`${r}-word-limit-error`]: Z
|
|
625
627
|
}),
|
|
626
628
|
children: [
|
|
@@ -631,24 +633,24 @@ function pt(e, b) {
|
|
|
631
633
|
}
|
|
632
634
|
);
|
|
633
635
|
}
|
|
634
|
-
const ae =
|
|
636
|
+
const ae = U(
|
|
635
637
|
`${r}-group-wrapper`,
|
|
636
|
-
`${r}-group-wrapper-${
|
|
638
|
+
`${r}-group-wrapper-${O}`,
|
|
637
639
|
{
|
|
638
640
|
[`${r}-custom-height`]: q,
|
|
639
641
|
[`${r}-has-suffix`]: K,
|
|
640
|
-
[`${r}-group-wrapper-disabled`]:
|
|
642
|
+
[`${r}-group-wrapper-disabled`]: x,
|
|
641
643
|
[`${r}-group-wrapper-rtl`]: T,
|
|
642
|
-
[`${r}-group-wrapper-autowidth`]:
|
|
644
|
+
[`${r}-group-wrapper-autowidth`]: m
|
|
643
645
|
},
|
|
644
|
-
|
|
645
|
-
), Y = n.status || (n.error || Z ? "error" : void 0), J = A ||
|
|
646
|
-
|
|
646
|
+
y
|
|
647
|
+
), Y = n.status || (n.error || Z ? "error" : void 0), J = A || v || K || p, F = /* @__PURE__ */ c(
|
|
648
|
+
Ye,
|
|
647
649
|
{
|
|
648
|
-
ref:
|
|
650
|
+
ref: L,
|
|
649
651
|
...n,
|
|
650
|
-
autoFitWidth: !!
|
|
651
|
-
style:
|
|
652
|
+
autoFitWidth: !!m,
|
|
653
|
+
style: k,
|
|
652
654
|
status: Y,
|
|
653
655
|
onFocus: (o) => {
|
|
654
656
|
var N;
|
|
@@ -658,19 +660,19 @@ function pt(e, b) {
|
|
|
658
660
|
var N;
|
|
659
661
|
W(!1), (N = n.onBlur) == null || N.call(n, o);
|
|
660
662
|
},
|
|
661
|
-
onChange:
|
|
663
|
+
onChange: w,
|
|
662
664
|
prefixCls: r,
|
|
663
665
|
value: H,
|
|
664
|
-
hasParent: !!J ||
|
|
665
|
-
size:
|
|
666
|
+
hasParent: !!J || d,
|
|
667
|
+
size: O
|
|
666
668
|
}
|
|
667
|
-
), i =
|
|
669
|
+
), i = U(`${r}-inner-wrapper`, {
|
|
668
670
|
[`${r}-inner-wrapper-${Y}`]: Y,
|
|
669
|
-
[`${r}-inner-wrapper-disabled`]:
|
|
671
|
+
[`${r}-inner-wrapper-disabled`]: x,
|
|
670
672
|
[`${r}-inner-wrapper-focus`]: G,
|
|
671
673
|
[`${r}-inner-wrapper-has-prefix`]: p,
|
|
672
|
-
[`${r}-inner-wrapper-${
|
|
673
|
-
[`${r}-clear-wrapper`]:
|
|
674
|
+
[`${r}-inner-wrapper-${O}`]: O,
|
|
675
|
+
[`${r}-clear-wrapper`]: d,
|
|
674
676
|
[`${r}-inner-wrapper-rtl`]: T
|
|
675
677
|
});
|
|
676
678
|
return J ? /* @__PURE__ */ c(
|
|
@@ -678,9 +680,9 @@ function pt(e, b) {
|
|
|
678
680
|
{
|
|
679
681
|
ref: j,
|
|
680
682
|
className: ae,
|
|
681
|
-
style: { ...
|
|
683
|
+
style: { ...k, ...q ? { height: I } : {} },
|
|
682
684
|
children: /* @__PURE__ */ te("span", { className: `${r}-group`, children: [
|
|
683
|
-
|
|
685
|
+
he(`${r}-group-addbefore`, A, S),
|
|
684
686
|
/* @__PURE__ */ te(
|
|
685
687
|
"span",
|
|
686
688
|
{
|
|
@@ -690,53 +692,53 @@ function pt(e, b) {
|
|
|
690
692
|
o.target.tagName !== "INPUT" && B.current && Se(B.current, o.target) && o.preventDefault();
|
|
691
693
|
},
|
|
692
694
|
onClick: (o) => {
|
|
693
|
-
B.current && Se(B.current, o.target) &&
|
|
695
|
+
B.current && Se(B.current, o.target) && L.current && L.current.focus();
|
|
694
696
|
},
|
|
695
697
|
children: [
|
|
696
|
-
|
|
698
|
+
he(`${r}-group-prefix`, p),
|
|
697
699
|
F,
|
|
698
|
-
|
|
700
|
+
he(`${r}-group-suffix`, K)
|
|
699
701
|
]
|
|
700
702
|
}
|
|
701
703
|
),
|
|
702
|
-
|
|
704
|
+
he(`${r}-group-addafter`, v, P)
|
|
703
705
|
] })
|
|
704
706
|
}
|
|
705
|
-
) :
|
|
707
|
+
) : d ? /* @__PURE__ */ c(
|
|
706
708
|
"span",
|
|
707
709
|
{
|
|
708
710
|
ref: j,
|
|
709
|
-
className:
|
|
710
|
-
style: { ...
|
|
711
|
+
className: U(y, i),
|
|
712
|
+
style: { ...k, ...q ? { height: I } : {} },
|
|
711
713
|
onMouseDown: ht,
|
|
712
714
|
onClick: () => {
|
|
713
|
-
|
|
715
|
+
L.current && L.current.focus();
|
|
714
716
|
},
|
|
715
717
|
children: F
|
|
716
718
|
}
|
|
717
719
|
) : F;
|
|
718
720
|
}
|
|
719
|
-
const
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
721
|
+
const yt = je(vt), R = yt;
|
|
722
|
+
R.displayName = "Input";
|
|
723
|
+
R.Search = Te;
|
|
724
|
+
R.Button = be;
|
|
725
|
+
R.InputButton = be;
|
|
726
|
+
R.TextArea = Pe;
|
|
727
|
+
R.Password = Me;
|
|
728
|
+
R.Number = Ie;
|
|
729
|
+
R.InputNumber = Ie;
|
|
730
|
+
R.Tag = De;
|
|
731
|
+
R.InputTag = De;
|
|
732
|
+
R.Group = qe;
|
|
731
733
|
export {
|
|
732
|
-
|
|
733
|
-
|
|
734
|
+
be as InputButton,
|
|
735
|
+
qe as InputGroup,
|
|
734
736
|
Ie as InputNumber,
|
|
735
737
|
Me as InputPassword,
|
|
736
738
|
Te as InputSearch,
|
|
737
739
|
De as InputTag,
|
|
738
740
|
Pe as InputTextArea,
|
|
739
741
|
Pe as TextArea,
|
|
740
|
-
|
|
742
|
+
R as default,
|
|
741
743
|
Q as formatValue
|
|
742
744
|
};
|