tdesign-react 1.1.1 → 1.1.2-alpha.0
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/cjs/_chunks/dep-01effe0e.js +22 -0
- package/cjs/_chunks/dep-01effe0e.js.map +1 -0
- package/cjs/_chunks/dep-02473b17.js +75 -0
- package/cjs/_chunks/dep-02473b17.js.map +1 -0
- package/cjs/_chunks/dep-04d69640.js +292 -0
- package/cjs/_chunks/dep-04d69640.js.map +1 -0
- package/cjs/_chunks/{dep-933f8205.js → dep-05a4973a.js} +5 -5
- package/cjs/_chunks/{dep-933f8205.js.map → dep-05a4973a.js.map} +1 -1
- package/cjs/_chunks/dep-0ab068de.js +463 -0
- package/cjs/_chunks/dep-0ab068de.js.map +1 -0
- package/cjs/_chunks/dep-0d5a923a.js +47 -0
- package/cjs/_chunks/dep-0d5a923a.js.map +1 -0
- package/cjs/_chunks/dep-0e1d1572.js +42 -0
- package/cjs/_chunks/dep-0e1d1572.js.map +1 -0
- package/cjs/_chunks/dep-11874d9c.js +323 -0
- package/cjs/_chunks/dep-11874d9c.js.map +1 -0
- package/cjs/_chunks/dep-119ba56f.js +173 -0
- package/cjs/_chunks/dep-119ba56f.js.map +1 -0
- package/cjs/_chunks/dep-1663b0df.js +110 -0
- package/cjs/_chunks/dep-1663b0df.js.map +1 -0
- package/cjs/_chunks/dep-1ab9da86.js +41 -0
- package/cjs/_chunks/dep-1ab9da86.js.map +1 -0
- package/cjs/_chunks/dep-1b1e14c2.js +24 -0
- package/cjs/_chunks/dep-1b1e14c2.js.map +1 -0
- package/cjs/_chunks/dep-20299d41.js +512 -0
- package/cjs/_chunks/dep-20299d41.js.map +1 -0
- package/cjs/_chunks/dep-21e5dde2.js +32 -0
- package/cjs/_chunks/dep-21e5dde2.js.map +1 -0
- package/cjs/_chunks/dep-226175a4.js +18 -0
- package/cjs/_chunks/dep-226175a4.js.map +1 -0
- package/cjs/_chunks/dep-298f9b41.js +233 -0
- package/cjs/_chunks/dep-298f9b41.js.map +1 -0
- package/cjs/_chunks/dep-2b2c6e2c.js +58 -0
- package/cjs/_chunks/dep-2b2c6e2c.js.map +1 -0
- package/cjs/_chunks/dep-2e54fd55.js +51 -0
- package/cjs/_chunks/dep-2e54fd55.js.map +1 -0
- package/cjs/_chunks/dep-30eedc91.js +262 -0
- package/cjs/_chunks/dep-30eedc91.js.map +1 -0
- package/cjs/_chunks/dep-3240b8df.js +193 -0
- package/cjs/_chunks/dep-3240b8df.js.map +1 -0
- package/cjs/_chunks/dep-381e57e3.js +152 -0
- package/cjs/_chunks/dep-381e57e3.js.map +1 -0
- package/cjs/_chunks/{dep-00e97810.js → dep-39de3d87.js} +2 -2
- package/cjs/_chunks/{dep-00e97810.js.map → dep-39de3d87.js.map} +1 -1
- package/cjs/_chunks/dep-3d9b6af3.js +211 -0
- package/cjs/_chunks/dep-3d9b6af3.js.map +1 -0
- package/cjs/_chunks/dep-3fd6430b.js +179 -0
- package/cjs/_chunks/dep-3fd6430b.js.map +1 -0
- package/cjs/_chunks/dep-4134c046.js +147 -0
- package/cjs/_chunks/dep-4134c046.js.map +1 -0
- package/cjs/_chunks/{dep-8e249fc5.js → dep-42a00a8b.js} +4 -4
- package/cjs/_chunks/{dep-8e249fc5.js.map → dep-42a00a8b.js.map} +1 -1
- package/cjs/_chunks/{dep-e047008f.js → dep-4367f11d.js} +1 -1
- package/cjs/_chunks/{dep-e047008f.js.map → dep-4367f11d.js.map} +1 -1
- package/cjs/_chunks/{dep-98b8402b.js → dep-437e4fc2.js} +1 -1
- package/cjs/_chunks/{dep-98b8402b.js.map → dep-437e4fc2.js.map} +1 -1
- package/cjs/_chunks/dep-4e0e0ffa.js +126 -0
- package/cjs/_chunks/dep-4e0e0ffa.js.map +1 -0
- package/cjs/_chunks/dep-4e3fa454.js +43 -0
- package/cjs/_chunks/dep-4e3fa454.js.map +1 -0
- package/cjs/_chunks/dep-53bfd962.js +66 -0
- package/cjs/_chunks/dep-53bfd962.js.map +1 -0
- package/cjs/_chunks/dep-5411854f.js +35 -0
- package/cjs/_chunks/dep-5411854f.js.map +1 -0
- package/cjs/_chunks/{dep-c0563a38.js → dep-58012930.js} +1 -1
- package/cjs/_chunks/{dep-c0563a38.js.map → dep-58012930.js.map} +1 -1
- package/cjs/_chunks/dep-598e128b.js +17 -0
- package/cjs/_chunks/dep-598e128b.js.map +1 -0
- package/cjs/_chunks/dep-5b288817.js +20 -0
- package/cjs/_chunks/dep-5b288817.js.map +1 -0
- package/cjs/_chunks/dep-63223331.js +274 -0
- package/cjs/_chunks/dep-63223331.js.map +1 -0
- package/cjs/_chunks/dep-63691e12.js +45 -0
- package/cjs/_chunks/dep-63691e12.js.map +1 -0
- package/cjs/_chunks/{dep-332614d5.js → dep-64632129.js} +1 -1
- package/cjs/_chunks/{dep-332614d5.js.map → dep-64632129.js.map} +1 -1
- package/cjs/_chunks/dep-6511812c.js +136 -0
- package/cjs/_chunks/dep-6511812c.js.map +1 -0
- package/cjs/_chunks/{dep-ffd9a825.js → dep-66656c95.js} +2 -2
- package/cjs/_chunks/{dep-ffd9a825.js.map → dep-66656c95.js.map} +1 -1
- package/cjs/_chunks/dep-68bf9f96.js +512 -0
- package/cjs/_chunks/dep-68bf9f96.js.map +1 -0
- package/cjs/_chunks/{dep-9a1fd461.js → dep-6bb503fb.js} +2 -2
- package/cjs/_chunks/{dep-9a1fd461.js.map → dep-6bb503fb.js.map} +1 -1
- package/cjs/_chunks/{dep-5cbb721d.js → dep-6c4c8532.js} +2 -2
- package/cjs/_chunks/{dep-5cbb721d.js.map → dep-6c4c8532.js.map} +1 -1
- package/cjs/_chunks/dep-6dc9822b.js +110 -0
- package/cjs/_chunks/dep-6dc9822b.js.map +1 -0
- package/cjs/_chunks/dep-6df1c156.js +81 -0
- package/cjs/_chunks/dep-6df1c156.js.map +1 -0
- package/cjs/_chunks/dep-6eb660e1.js +39 -0
- package/cjs/_chunks/dep-6eb660e1.js.map +1 -0
- package/cjs/_chunks/{dep-f8d535e2.js → dep-707be8b6.js} +1 -1
- package/cjs/_chunks/{dep-f8d535e2.js.map → dep-707be8b6.js.map} +1 -1
- package/cjs/_chunks/{dep-dfc2f06c.js → dep-74c6168d.js} +1 -1
- package/cjs/_chunks/{dep-dfc2f06c.js.map → dep-74c6168d.js.map} +1 -1
- package/cjs/_chunks/dep-75d89cda.js +50 -0
- package/cjs/_chunks/dep-75d89cda.js.map +1 -0
- package/cjs/_chunks/dep-7afaeb70.js +200 -0
- package/cjs/_chunks/dep-7afaeb70.js.map +1 -0
- package/cjs/_chunks/dep-7b899d7e.js +512 -0
- package/cjs/_chunks/dep-7b899d7e.js.map +1 -0
- package/cjs/_chunks/dep-7e9bc6a0.js +118 -0
- package/cjs/_chunks/dep-7e9bc6a0.js.map +1 -0
- package/cjs/_chunks/dep-80023679.js +80 -0
- package/cjs/_chunks/dep-80023679.js.map +1 -0
- package/cjs/_chunks/dep-8937598f.js +192 -0
- package/cjs/_chunks/dep-8937598f.js.map +1 -0
- package/cjs/_chunks/dep-893c2208.js +453 -0
- package/cjs/_chunks/dep-893c2208.js.map +1 -0
- package/cjs/_chunks/dep-8e9bfab3.js +712 -0
- package/cjs/_chunks/dep-8e9bfab3.js.map +1 -0
- package/cjs/_chunks/dep-90e8b1b0.js +39 -0
- package/cjs/_chunks/dep-90e8b1b0.js.map +1 -0
- package/cjs/_chunks/dep-9eb798ac.js +688 -0
- package/cjs/_chunks/dep-9eb798ac.js.map +1 -0
- package/cjs/_chunks/{dep-9e83059c.js → dep-a6f5782d.js} +4 -4
- package/cjs/_chunks/{dep-9e83059c.js.map → dep-a6f5782d.js.map} +1 -1
- package/cjs/_chunks/dep-ac7540f2.js +512 -0
- package/cjs/_chunks/dep-ac7540f2.js.map +1 -0
- package/cjs/_chunks/dep-b088a01c.js +65 -0
- package/cjs/_chunks/dep-b088a01c.js.map +1 -0
- package/cjs/_chunks/dep-b3654aee.js +32 -0
- package/cjs/_chunks/dep-b3654aee.js.map +1 -0
- package/cjs/_chunks/dep-b3bd96b5.js +24 -0
- package/cjs/_chunks/dep-b3bd96b5.js.map +1 -0
- package/cjs/_chunks/dep-b4215cf8.js +35 -0
- package/cjs/_chunks/dep-b4215cf8.js.map +1 -0
- package/cjs/_chunks/dep-b58740b7.js +32 -0
- package/cjs/_chunks/dep-b58740b7.js.map +1 -0
- package/cjs/_chunks/dep-b5b609e4.js +29 -0
- package/cjs/_chunks/dep-b5b609e4.js.map +1 -0
- package/cjs/_chunks/dep-b789b3d2.js +101 -0
- package/cjs/_chunks/dep-b789b3d2.js.map +1 -0
- package/cjs/_chunks/dep-bbf3c565.js +41 -0
- package/cjs/_chunks/dep-bbf3c565.js.map +1 -0
- package/cjs/_chunks/dep-bc1ba484.js +50 -0
- package/cjs/_chunks/dep-bc1ba484.js.map +1 -0
- package/cjs/_chunks/{dep-2dbe6e18.js → dep-bfb6b5ad.js} +2 -2
- package/cjs/_chunks/{dep-2dbe6e18.js.map → dep-bfb6b5ad.js.map} +1 -1
- package/cjs/_chunks/dep-c1f362c5.js +36 -0
- package/cjs/_chunks/dep-c1f362c5.js.map +1 -0
- package/cjs/_chunks/dep-c99ef448.js +536 -0
- package/cjs/_chunks/dep-c99ef448.js.map +1 -0
- package/cjs/_chunks/dep-c9e783dd.js +17 -0
- package/cjs/_chunks/dep-c9e783dd.js.map +1 -0
- package/cjs/_chunks/{dep-1f778b9f.js → dep-cf38af2d.js} +2 -2
- package/cjs/_chunks/{dep-1f778b9f.js.map → dep-cf38af2d.js.map} +1 -1
- package/cjs/_chunks/dep-d7156736.js +109 -0
- package/cjs/_chunks/dep-d7156736.js.map +1 -0
- package/cjs/_chunks/dep-d7fd6da5.js +28 -0
- package/cjs/_chunks/dep-d7fd6da5.js.map +1 -0
- package/cjs/_chunks/dep-e06189c7.js +512 -0
- package/cjs/_chunks/dep-e06189c7.js.map +1 -0
- package/cjs/_chunks/{dep-559ea1eb.js → dep-e0adf787.js} +3 -3
- package/cjs/_chunks/{dep-559ea1eb.js.map → dep-e0adf787.js.map} +1 -1
- package/cjs/_chunks/dep-e174ddc3.js +90 -0
- package/cjs/_chunks/dep-e174ddc3.js.map +1 -0
- package/cjs/_chunks/dep-e1c17b2e.js +152 -0
- package/cjs/_chunks/dep-e1c17b2e.js.map +1 -0
- package/cjs/_chunks/dep-efc3c5e0.js +60 -0
- package/cjs/_chunks/dep-efc3c5e0.js.map +1 -0
- package/cjs/_chunks/dep-f1303963.js +43 -0
- package/cjs/_chunks/dep-f1303963.js.map +1 -0
- package/cjs/_chunks/{dep-d00167a6.js → dep-f3ef763a.js} +4 -4
- package/cjs/_chunks/{dep-d00167a6.js.map → dep-f3ef763a.js.map} +1 -1
- package/cjs/_chunks/dep-f88b0482.js +512 -0
- package/cjs/_chunks/dep-f88b0482.js.map +1 -0
- package/cjs/_chunks/{dep-49cc16ea.js → dep-f91597d2.js} +2 -2
- package/cjs/_chunks/{dep-49cc16ea.js.map → dep-f91597d2.js.map} +1 -1
- package/cjs/_chunks/dep-f97248ee.js +126 -0
- package/cjs/_chunks/dep-f97248ee.js.map +1 -0
- package/cjs/_chunks/dep-fb75dd85.js +29 -0
- package/cjs/_chunks/dep-fb75dd85.js.map +1 -0
- package/cjs/_chunks/dep-fead44f1.js +149 -0
- package/cjs/_chunks/dep-fead44f1.js.map +1 -0
- package/cjs/_common/js/table/recalculate-column-width.js +143 -0
- package/cjs/_common/js/table/recalculate-column-width.js.map +1 -0
- package/cjs/_common/js/table/set-column-width-by-drag.js +88 -0
- package/cjs/_common/js/table/set-column-width-by-drag.js.map +1 -0
- package/cjs/_common/js/tree/tree-node-model.js +9 -9
- package/cjs/_common/js/tree/tree-node.js +9 -9
- package/cjs/_common/js/tree/tree-store.js +10 -10
- package/cjs/_util/useAnimation.js +4 -4
- package/cjs/_util/useClickOutside.js +4 -4
- package/cjs/_util/useCommonClassName.js +4 -4
- package/cjs/_util/useRipple.js +4 -4
- package/cjs/affix/Affix.js +4 -4
- package/cjs/affix/index.js +4 -4
- package/cjs/alert/Alert.js +4 -4
- package/cjs/alert/index.js +4 -4
- package/cjs/anchor/Anchor.js +6 -6
- package/cjs/anchor/AnchorItem.js +4 -4
- package/cjs/anchor/AnchorTarget.js +4 -4
- package/cjs/anchor/index.js +6 -6
- package/cjs/auto-complete/AutoComplete.js +4 -4
- package/cjs/auto-complete/HighlightOption.js +4 -4
- package/cjs/auto-complete/OptionList.js +4 -4
- package/cjs/auto-complete/index.js +4 -4
- package/cjs/avatar/Avatar.js +5 -5
- package/cjs/avatar/AvatarGroup.js +5 -5
- package/cjs/avatar/index.js +5 -5
- package/cjs/back-top/BackTop.js +4 -4
- package/cjs/back-top/index.js +4 -4
- package/cjs/badge/Badge.js +4 -4
- package/cjs/badge/index.js +4 -4
- package/cjs/breadcrumb/Breadcrumb.js +4 -4
- package/cjs/breadcrumb/BreadcrumbItem.js +4 -4
- package/cjs/breadcrumb/index.js +4 -4
- package/cjs/button/Button.js +4 -4
- package/cjs/button/index.js +4 -4
- package/cjs/calendar/Calendar.js +8 -8
- package/cjs/calendar/CalendarCellComp.js +4 -4
- package/cjs/calendar/hooks/usePrefixClass.js +4 -4
- package/cjs/calendar/index.js +8 -8
- package/cjs/card/Card.js +4 -4
- package/cjs/card/index.js +4 -4
- package/cjs/cascader/Cascader.js +14 -14
- package/cjs/cascader/CascaderPanel.js +14 -14
- package/cjs/cascader/components/Item.js +7 -7
- package/cjs/cascader/components/Panel.js +9 -9
- package/cjs/cascader/core/effect.js +6 -6
- package/cjs/cascader/core/helper.js +3 -3
- package/cjs/cascader/hooks.js +12 -12
- package/cjs/cascader/index.js +14 -14
- package/cjs/cascader/interface.js +9 -9
- package/cjs/checkbox/Checkbox.js +5 -5
- package/cjs/checkbox/CheckboxGroup.js +5 -5
- package/cjs/checkbox/index.js +5 -5
- package/cjs/collapse/Collapse.js +4 -4
- package/cjs/collapse/CollapsePanel.js +4 -4
- package/cjs/collapse/index.js +4 -4
- package/cjs/color-picker/ColorPicker.js +11 -11
- package/cjs/color-picker/ColorPickerPanel.js +11 -11
- package/cjs/color-picker/components/panel/format/index.js +7 -7
- package/cjs/color-picker/components/panel/format/inputs.js +4 -4
- package/cjs/color-picker/components/panel/header.js +5 -5
- package/cjs/color-picker/components/panel/index.js +11 -11
- package/cjs/color-picker/components/panel/linear-gradient.js +7 -7
- package/cjs/color-picker/components/panel/swatches.js +4 -4
- package/cjs/color-picker/components/trigger.js +4 -4
- package/cjs/color-picker/hooks/useClassNames.js +4 -4
- package/cjs/color-picker/index.js +11 -11
- package/cjs/comment/Comment.js +4 -4
- package/cjs/comment/index.js +4 -4
- package/cjs/common/Check.js +4 -4
- package/cjs/common/FakeArrow.js +4 -4
- package/cjs/common/Portal.js +4 -4
- package/cjs/config-provider/ConfigContext.js +4 -4
- package/cjs/config-provider/ConfigProvider.js +4 -4
- package/cjs/config-provider/index.js +4 -4
- package/cjs/date-picker/DatePicker.js +10 -10
- package/cjs/date-picker/DatePickerPanel.js +10 -10
- package/cjs/date-picker/DateRangePicker.js +10 -10
- package/cjs/date-picker/DateRangePickerPanel.js +10 -10
- package/cjs/date-picker/base/Cell.js +4 -4
- package/cjs/date-picker/base/Footer.js +4 -4
- package/cjs/date-picker/base/Header.js +10 -10
- package/cjs/date-picker/base/Table.js +4 -4
- package/cjs/date-picker/hooks/useRange.js +4 -4
- package/cjs/date-picker/hooks/useSingle.js +4 -4
- package/cjs/date-picker/hooks/useTableData.js +4 -4
- package/cjs/date-picker/index.js +10 -10
- package/cjs/date-picker/panel/ExtraContent.js +4 -4
- package/cjs/date-picker/panel/PanelContent.js +10 -10
- package/cjs/date-picker/panel/RangePanel.js +10 -10
- package/cjs/date-picker/panel/SinglePanel.js +10 -10
- package/cjs/dialog/Dialog.js +5 -5
- package/cjs/dialog/Dialog.js.map +1 -1
- package/cjs/dialog/DialogCard.js +5 -5
- package/cjs/dialog/DialogCard.js.map +1 -1
- package/cjs/dialog/index.js +4 -4
- package/cjs/dialog/plugin.js +4 -4
- package/cjs/divider/Divider.js +4 -4
- package/cjs/divider/index.js +4 -4
- package/cjs/drawer/Drawer.js +4 -4
- package/cjs/drawer/index.js +4 -4
- package/cjs/dropdown/Dropdown.js +8 -8
- package/cjs/dropdown/DropdownItem.js +4 -4
- package/cjs/dropdown/DropdownMenu.js +4 -4
- package/cjs/dropdown/hooks/useDropdownOptions.js +4 -4
- package/cjs/dropdown/index.js +8 -8
- package/cjs/form/Form.js +15 -15
- package/cjs/form/FormItem.js +15 -15
- package/cjs/form/FormList.js +4 -4
- package/cjs/form/formModel.js +3 -3
- package/cjs/form/hooks/useFormItemStyle.js +4 -4
- package/cjs/form/hooks/useInstance.js +6 -6
- package/cjs/form/index.js +15 -15
- package/cjs/form/useInitialData.js +15 -15
- package/cjs/grid/Col.js +4 -4
- package/cjs/grid/Row.js +4 -4
- package/cjs/grid/index.js +4 -4
- package/cjs/guide/Guide.js +4 -4
- package/cjs/guide/index.js +4 -4
- package/cjs/hooks/useCommonClassName.js +4 -4
- package/cjs/hooks/useConfig.js +4 -4
- package/cjs/hooks/useGlobalIcon.js +4 -4
- package/cjs/image/Image.js +4 -4
- package/cjs/image/index.js +4 -4
- package/cjs/image-viewer/ImageViewer.js +5 -5
- package/cjs/image-viewer/ImageViewerMini.js +5 -5
- package/cjs/image-viewer/ImageViewerModel.js +5 -5
- package/cjs/image-viewer/hooks/useIconMap.js +4 -4
- package/cjs/image-viewer/index.js +5 -5
- package/cjs/index-lib.js +18 -18
- package/cjs/index.js +18 -18
- package/cjs/input/Input.js +4 -4
- package/cjs/input/InputGroup.js +4 -4
- package/cjs/input/index.js +4 -4
- package/cjs/input-adornment/InputAdornment.js +4 -4
- package/cjs/input-adornment/index.js +4 -4
- package/cjs/input-number/InputNumber.js +4 -4
- package/cjs/input-number/index.js +4 -4
- package/cjs/input-number/useInputNumber.js +4 -4
- package/cjs/layout/Aside.js +4 -4
- package/cjs/layout/Layout.js +4 -4
- package/cjs/layout/index.js +4 -4
- package/cjs/link/Link.js +4 -4
- package/cjs/link/index.js +4 -4
- package/cjs/list/List.js +4 -4
- package/cjs/list/ListItem.js +4 -4
- package/cjs/list/ListItemMeta.js +4 -4
- package/cjs/list/index.js +4 -4
- package/cjs/loading/Loading.js +4 -4
- package/cjs/loading/gradient.js +4 -4
- package/cjs/loading/index.js +4 -4
- package/cjs/loading/plugin.js +4 -4
- package/cjs/locale/LocalReceiver.js +4 -4
- package/cjs/menu/HeadMenu.js +4 -4
- package/cjs/menu/Menu.js +4 -4
- package/cjs/menu/MenuGroup.js +4 -4
- package/cjs/menu/MenuItem.js +4 -4
- package/cjs/menu/SubMenu.js +4 -4
- package/cjs/menu/index.js +4 -4
- package/cjs/message/Message.js +4 -4
- package/cjs/message/MessageClose.js +4 -4
- package/cjs/message/MessageComponent.js +4 -4
- package/cjs/message/MessageIcon.js +4 -4
- package/cjs/message/index.js +4 -4
- package/cjs/message/useMessageClass.js +4 -4
- package/cjs/notification/Notification.js +5 -5
- package/cjs/notification/NotificationList.js +5 -5
- package/cjs/notification/NotificationPlugin.js +5 -5
- package/cjs/notification/index.js +5 -5
- package/cjs/pagination/Pagination.js +10 -10
- package/cjs/pagination/PaginationMini.js +4 -4
- package/cjs/pagination/hooks/useBoundaryJumper.js +4 -4
- package/cjs/pagination/hooks/usePageNumber.js +4 -4
- package/cjs/pagination/hooks/usePrevNextJumper.js +4 -4
- package/cjs/pagination/hooks/useTotal.js +4 -4
- package/cjs/pagination/index.js +10 -10
- package/cjs/popconfirm/Popconfirm.js +4 -4
- package/cjs/popconfirm/Popcontent.js +4 -4
- package/cjs/popconfirm/index.js +4 -4
- package/cjs/popup/Popup.js +4 -4
- package/cjs/popup/index.js +4 -4
- package/cjs/progress/Progress.js +4 -4
- package/cjs/progress/index.js +4 -4
- package/cjs/radio/Radio.js +5 -5
- package/cjs/radio/RadioGroup.js +5 -5
- package/cjs/radio/index.js +5 -5
- package/cjs/range-input/RangeInput.js +4 -4
- package/cjs/range-input/RangeInputPopup.js +4 -4
- package/cjs/range-input/index.js +4 -4
- package/cjs/rate/Rate.js +4 -4
- package/cjs/rate/index.js +4 -4
- package/cjs/select/base/Option.js +4 -4
- package/cjs/select/base/OptionGroup.js +4 -4
- package/cjs/select/base/PopupContent.js +4 -4
- package/cjs/select/base/Select.js +7 -7
- package/cjs/select/hooks/useOptions.js +4 -4
- package/cjs/select/index.js +7 -7
- package/cjs/select/util/helper.js +4 -4
- package/cjs/select-input/SelectInput.js +7 -7
- package/cjs/select-input/index.js +7 -7
- package/cjs/select-input/useMultiple.js +4 -4
- package/cjs/select-input/useSingle.js +7 -7
- package/cjs/skeleton/Skeleton.js +4 -4
- package/cjs/skeleton/index.js +4 -4
- package/cjs/slider/Slider.js +4 -4
- package/cjs/slider/SliderHandleButton.js +4 -4
- package/cjs/slider/index.js +4 -4
- package/cjs/space/Space.js +4 -4
- package/cjs/space/index.js +4 -4
- package/cjs/steps/StepItem.js +4 -4
- package/cjs/steps/Steps.js +4 -4
- package/cjs/steps/index.js +4 -4
- package/cjs/sticky-tool/StickyItem.js +4 -4
- package/cjs/sticky-tool/StickyTool.js +4 -4
- package/cjs/sticky-tool/index.js +4 -4
- package/cjs/swiper/Swiper.js +4 -4
- package/cjs/swiper/SwiperItem.js +4 -4
- package/cjs/swiper/index.js +4 -4
- package/cjs/switch/Switch.js +4 -4
- package/cjs/switch/index.js +4 -4
- package/cjs/table/BaseTable.js +10 -10
- package/cjs/table/Cell.js +4 -4
- package/cjs/table/EditableCell.js +7 -7
- package/cjs/table/Ellipsis.js +4 -4
- package/cjs/table/EnhancedTable.js +14 -14
- package/cjs/table/FilterController.js +8 -8
- package/cjs/table/PrimaryTable.js +13 -13
- package/cjs/table/SorterButton.js +4 -4
- package/cjs/table/TBody.js +7 -7
- package/cjs/table/TFoot.js +4 -4
- package/cjs/table/THead.js +4 -4
- package/cjs/table/TR.js +4 -4
- package/cjs/table/hooks/useAsyncLoading.js +4 -4
- package/cjs/table/hooks/useClassName.js +4 -4
- package/cjs/table/hooks/useColumnController.js +5 -5
- package/cjs/table/hooks/useDragSort.js +4 -4
- package/cjs/table/hooks/useEditableRow.js +3 -3
- package/cjs/table/hooks/useFilter.js +8 -8
- package/cjs/table/hooks/usePagination.js +10 -10
- package/cjs/table/hooks/useRowExpand.js +4 -4
- package/cjs/table/hooks/useRowSelect.js +6 -6
- package/cjs/table/hooks/useSorter.js +4 -4
- package/cjs/table/hooks/useStyle.js +4 -4
- package/cjs/table/hooks/useTableHeader.js +4 -4
- package/cjs/table/hooks/useTreeData.js +7 -7
- package/cjs/table/index.js +14 -14
- package/cjs/tabs/TabBar.js +4 -4
- package/cjs/tabs/TabNav.js +4 -4
- package/cjs/tabs/TabNavItem.js +4 -4
- package/cjs/tabs/TabPanel.js +4 -4
- package/cjs/tabs/Tabs.js +4 -4
- package/cjs/tabs/index.js +4 -4
- package/cjs/tabs/useTabClass.js +4 -4
- package/cjs/tag/CheckTag.js +4 -4
- package/cjs/tag/Tag.js +4 -4
- package/cjs/tag/index.js +4 -4
- package/cjs/tag-input/TagInput.js +4 -4
- package/cjs/tag-input/index.js +4 -4
- package/cjs/tag-input/useTagList.js +4 -4
- package/cjs/textarea/Textarea.js +4 -4
- package/cjs/textarea/index.js +4 -4
- package/cjs/time-picker/TimePicker.js +7 -7
- package/cjs/time-picker/TimeRangePicker.js +4 -4
- package/cjs/time-picker/hooks/useTimePickerTextConfig.js +4 -4
- package/cjs/time-picker/index.js +7 -7
- package/cjs/time-picker/panel/SinglePanel.js +4 -4
- package/cjs/time-picker/panel/TimePickerPanel.js +4 -4
- package/cjs/timeline/Timeline.js +4 -4
- package/cjs/timeline/TimelineItem.js +4 -4
- package/cjs/timeline/index.js +4 -4
- package/cjs/tooltip/Tooltip.js +4 -4
- package/cjs/tooltip/TooltipLite.js +4 -4
- package/cjs/tooltip/index.js +4 -4
- package/cjs/transfer/Transfer.js +13 -13
- package/cjs/transfer/TransferList.js +12 -12
- package/cjs/transfer/index.js +13 -13
- package/cjs/transfer/utils.js +3 -3
- package/cjs/tree/Tree.js +13 -13
- package/cjs/tree/TreeItem.js +5 -5
- package/cjs/tree/index.js +13 -13
- package/cjs/tree/useStore.js +11 -11
- package/cjs/tree/useTreeConfig.js +4 -4
- package/cjs/tree-select/SelectArrow.js +4 -4
- package/cjs/tree-select/TreeSelect.js +13 -13
- package/cjs/tree-select/index.js +13 -13
- package/cjs/tree-select/useTreeSelectLocale.js +4 -4
- package/cjs/tree-select/useTreeSelectPassthoughProps.js +7 -7
- package/cjs/tree-select/useTreeSelectUtils.js +10 -10
- package/cjs/upload/hooks/useUpload.js +4 -4
- package/cjs/upload/index.js +5 -5
- package/cjs/upload/themes/DraggerFile.js +5 -5
- package/cjs/upload/themes/ImageCard.js +5 -5
- package/cjs/upload/themes/MultipleFlowList.js +5 -5
- package/cjs/upload/themes/NormalFile.js +4 -4
- package/cjs/upload/upload.js +5 -5
- package/cjs/watermark/Watermark.js +4 -4
- package/cjs/watermark/index.js +4 -4
- package/dist/tdesign.css.map +1 -1
- package/dist/tdesign.js +2 -2
- package/dist/tdesign.js.map +1 -1
- package/dist/tdesign.min.css.map +1 -1
- package/dist/tdesign.min.js +1 -1
- package/dist/tdesign.min.js.map +1 -1
- package/es/_chunks/{dep-99afe6db.js → dep-01d13e64.js} +1 -1
- package/es/_chunks/{dep-99afe6db.js.map → dep-01d13e64.js.map} +1 -1
- package/{esm/_chunks/dep-1d5f47c2.js → es/_chunks/dep-28876888.js} +4 -4
- package/es/_chunks/{dep-1d5f47c2.js.map → dep-28876888.js.map} +1 -1
- package/es/_chunks/{dep-d3a1c83c.js → dep-38989f4c.js} +1 -1
- package/es/_chunks/{dep-d3a1c83c.js.map → dep-38989f4c.js.map} +1 -1
- package/es/_chunks/{dep-49aeaa98.js → dep-3b75059e.js} +5 -5
- package/{esm/_chunks/dep-49aeaa98.js.map → es/_chunks/dep-3b75059e.js.map} +1 -1
- package/es/_chunks/{dep-52424326.js → dep-488497e2.js} +2 -2
- package/{esm/_chunks/dep-52424326.js.map → es/_chunks/dep-488497e2.js.map} +1 -1
- package/{esm/_chunks/dep-70d76171.js → es/_chunks/dep-6788902a.js} +2 -2
- package/es/_chunks/{dep-70d76171.js.map → dep-6788902a.js.map} +1 -1
- package/{esm/_chunks/dep-0b20126b.js → es/_chunks/dep-857af787.js} +2 -2
- package/es/_chunks/{dep-0b20126b.js.map → dep-857af787.js.map} +1 -1
- package/{esm/_chunks/dep-6bdf9e3c.js → es/_chunks/dep-8a3f0529.js} +2 -2
- package/es/_chunks/{dep-6bdf9e3c.js.map → dep-8a3f0529.js.map} +1 -1
- package/{esm/_chunks/dep-2328dd82.js → es/_chunks/dep-a76ab496.js} +1 -1
- package/es/_chunks/{dep-2328dd82.js.map → dep-a76ab496.js.map} +1 -1
- package/{esm/_chunks/dep-01b91170.js → es/_chunks/dep-b194196b.js} +1 -1
- package/es/_chunks/{dep-07180f46.js.map → dep-b194196b.js.map} +1 -1
- package/{esm/_chunks/dep-76af2521.js → es/_chunks/dep-c2794a9f.js} +3 -3
- package/es/_chunks/{dep-76af2521.js.map → dep-c2794a9f.js.map} +1 -1
- package/es/_chunks/{dep-b02b2976.js → dep-c88d0a15.js} +4 -4
- package/es/_chunks/{dep-b02b2976.js.map → dep-c88d0a15.js.map} +1 -1
- package/{esm/_chunks/dep-c87aa853.js → es/_chunks/dep-d0081053.js} +2 -2
- package/{esm/_chunks/dep-c87aa853.js.map → es/_chunks/dep-d0081053.js.map} +1 -1
- package/{esm/_chunks/dep-fff35577.js → es/_chunks/dep-d0c18995.js} +2 -2
- package/{esm/_chunks/dep-fff35577.js.map → es/_chunks/dep-d0c18995.js.map} +1 -1
- package/es/_chunks/{dep-df9f8f04.js → dep-db73a5f9.js} +2 -2
- package/{esm/_chunks/dep-df9f8f04.js.map → es/_chunks/dep-db73a5f9.js.map} +1 -1
- package/es/_chunks/{dep-6b33e1e9.js → dep-dbe7a00b.js} +1 -1
- package/{esm/_chunks/dep-6b33e1e9.js.map → es/_chunks/dep-dbe7a00b.js.map} +1 -1
- package/{esm/_chunks/dep-132378f3.js → es/_chunks/dep-fd8af8b2.js} +4 -4
- package/es/_chunks/{dep-132378f3.js.map → dep-fd8af8b2.js.map} +1 -1
- package/{esm/_chunks/dep-45b53bd0.js → es/_chunks/dep-fda04a0b.js} +1 -1
- package/{esm/_chunks/dep-45b53bd0.js.map → es/_chunks/dep-fda04a0b.js.map} +1 -1
- package/es/_common/js/tree/tree-node-model.js +9 -9
- package/es/_common/js/tree/tree-node.js +9 -9
- package/es/_common/js/tree/tree-store.js +10 -10
- package/es/_util/useAnimation.js +4 -4
- package/es/_util/useClickOutside.js +4 -4
- package/es/_util/useCommonClassName.js +4 -4
- package/es/_util/useRipple.js +4 -4
- package/es/affix/Affix.js +4 -4
- package/es/affix/index.js +4 -4
- package/es/alert/Alert.js +4 -4
- package/es/alert/index.js +4 -4
- package/es/anchor/Anchor.js +6 -6
- package/es/anchor/AnchorItem.js +4 -4
- package/es/anchor/AnchorTarget.js +4 -4
- package/es/anchor/index.js +6 -6
- package/es/auto-complete/AutoComplete.js +4 -4
- package/es/auto-complete/HighlightOption.js +4 -4
- package/es/auto-complete/OptionList.js +4 -4
- package/es/auto-complete/index.js +4 -4
- package/es/avatar/Avatar.js +5 -5
- package/es/avatar/AvatarGroup.js +5 -5
- package/es/avatar/index.js +5 -5
- package/es/back-top/BackTop.js +4 -4
- package/es/back-top/index.js +4 -4
- package/es/badge/Badge.js +4 -4
- package/es/badge/index.js +4 -4
- package/es/breadcrumb/Breadcrumb.js +4 -4
- package/es/breadcrumb/BreadcrumbItem.js +4 -4
- package/es/breadcrumb/index.js +4 -4
- package/es/button/Button.js +4 -4
- package/es/button/index.js +4 -4
- package/es/calendar/Calendar.js +8 -8
- package/es/calendar/CalendarCellComp.js +4 -4
- package/es/calendar/hooks/usePrefixClass.js +4 -4
- package/es/calendar/index.js +8 -8
- package/es/card/Card.js +4 -4
- package/es/card/index.js +4 -4
- package/es/cascader/Cascader.js +14 -14
- package/es/cascader/CascaderPanel.js +14 -14
- package/es/cascader/components/Item.js +7 -7
- package/es/cascader/components/Panel.js +9 -9
- package/es/cascader/core/effect.js +6 -6
- package/es/cascader/core/helper.js +3 -3
- package/es/cascader/hooks.js +12 -12
- package/es/cascader/index.js +14 -14
- package/es/cascader/interface.js +9 -9
- package/es/checkbox/Checkbox.js +5 -5
- package/es/checkbox/CheckboxGroup.js +5 -5
- package/es/checkbox/index.js +5 -5
- package/es/collapse/Collapse.js +4 -4
- package/es/collapse/CollapsePanel.js +4 -4
- package/es/collapse/index.js +4 -4
- package/es/color-picker/ColorPicker.js +11 -11
- package/es/color-picker/ColorPickerPanel.js +11 -11
- package/es/color-picker/components/panel/format/index.js +7 -7
- package/es/color-picker/components/panel/format/inputs.js +4 -4
- package/es/color-picker/components/panel/header.js +5 -5
- package/es/color-picker/components/panel/index.js +11 -11
- package/es/color-picker/components/panel/linear-gradient.js +7 -7
- package/es/color-picker/components/panel/swatches.js +4 -4
- package/es/color-picker/components/trigger.js +4 -4
- package/es/color-picker/hooks/useClassNames.js +4 -4
- package/es/color-picker/index.js +11 -11
- package/es/comment/Comment.js +4 -4
- package/es/comment/index.js +4 -4
- package/es/common/Check.js +4 -4
- package/es/common/FakeArrow.js +4 -4
- package/es/common/Portal.js +4 -4
- package/es/config-provider/ConfigContext.js +4 -4
- package/es/config-provider/ConfigProvider.js +4 -4
- package/es/config-provider/index.js +4 -4
- package/es/date-picker/DatePicker.js +10 -10
- package/es/date-picker/DatePickerPanel.js +10 -10
- package/es/date-picker/DateRangePicker.js +10 -10
- package/es/date-picker/DateRangePickerPanel.js +10 -10
- package/es/date-picker/base/Cell.js +4 -4
- package/es/date-picker/base/Footer.js +4 -4
- package/es/date-picker/base/Header.js +10 -10
- package/es/date-picker/base/Table.js +4 -4
- package/es/date-picker/hooks/useRange.js +4 -4
- package/es/date-picker/hooks/useSingle.js +4 -4
- package/es/date-picker/hooks/useTableData.js +4 -4
- package/es/date-picker/index.js +10 -10
- package/es/date-picker/panel/ExtraContent.js +4 -4
- package/es/date-picker/panel/PanelContent.js +10 -10
- package/es/date-picker/panel/RangePanel.js +10 -10
- package/es/date-picker/panel/SinglePanel.js +10 -10
- package/es/dialog/Dialog.js +5 -5
- package/es/dialog/Dialog.js.map +1 -1
- package/es/dialog/DialogCard.js +5 -5
- package/es/dialog/DialogCard.js.map +1 -1
- package/es/dialog/index.js +4 -4
- package/es/dialog/plugin.js +4 -4
- package/es/divider/Divider.js +4 -4
- package/es/divider/index.js +4 -4
- package/es/drawer/Drawer.js +4 -4
- package/es/drawer/index.js +4 -4
- package/es/dropdown/Dropdown.js +8 -8
- package/es/dropdown/DropdownItem.js +4 -4
- package/es/dropdown/DropdownMenu.js +4 -4
- package/es/dropdown/hooks/useDropdownOptions.js +4 -4
- package/es/dropdown/index.js +8 -8
- package/es/form/Form.js +15 -15
- package/es/form/FormItem.js +15 -15
- package/es/form/FormList.js +4 -4
- package/es/form/formModel.js +3 -3
- package/es/form/hooks/useFormItemStyle.js +4 -4
- package/es/form/hooks/useInstance.js +6 -6
- package/es/form/index.js +15 -15
- package/es/form/useInitialData.js +15 -15
- package/es/grid/Col.js +4 -4
- package/es/grid/Row.js +4 -4
- package/es/grid/index.js +4 -4
- package/es/guide/Guide.js +4 -4
- package/es/guide/index.js +4 -4
- package/es/hooks/useCommonClassName.js +4 -4
- package/es/hooks/useConfig.js +4 -4
- package/es/hooks/useGlobalIcon.js +4 -4
- package/es/image/Image.js +4 -4
- package/es/image/index.js +4 -4
- package/es/image-viewer/ImageViewer.js +5 -5
- package/es/image-viewer/ImageViewerMini.js +5 -5
- package/es/image-viewer/ImageViewerModel.js +5 -5
- package/es/image-viewer/hooks/useIconMap.js +4 -4
- package/es/image-viewer/index.js +5 -5
- package/es/index.js +18 -18
- package/es/input/Input.js +4 -4
- package/es/input/InputGroup.js +4 -4
- package/es/input/index.js +4 -4
- package/es/input-adornment/InputAdornment.js +4 -4
- package/es/input-adornment/index.js +4 -4
- package/es/input-number/InputNumber.js +4 -4
- package/es/input-number/index.js +4 -4
- package/es/input-number/useInputNumber.js +4 -4
- package/es/layout/Aside.js +4 -4
- package/es/layout/Layout.js +4 -4
- package/es/layout/index.js +4 -4
- package/es/link/Link.js +4 -4
- package/es/link/index.js +4 -4
- package/es/list/List.js +4 -4
- package/es/list/ListItem.js +4 -4
- package/es/list/ListItemMeta.js +4 -4
- package/es/list/index.js +4 -4
- package/es/loading/Loading.js +4 -4
- package/es/loading/gradient.js +4 -4
- package/es/loading/index.js +4 -4
- package/es/loading/plugin.js +4 -4
- package/es/locale/LocalReceiver.js +4 -4
- package/es/menu/HeadMenu.js +4 -4
- package/es/menu/Menu.js +4 -4
- package/es/menu/MenuGroup.js +4 -4
- package/es/menu/MenuItem.js +4 -4
- package/es/menu/SubMenu.js +4 -4
- package/es/menu/index.js +4 -4
- package/es/message/Message.js +4 -4
- package/es/message/MessageClose.js +4 -4
- package/es/message/MessageComponent.js +4 -4
- package/es/message/MessageIcon.js +4 -4
- package/es/message/index.js +4 -4
- package/es/message/useMessageClass.js +4 -4
- package/es/notification/Notification.js +5 -5
- package/es/notification/NotificationList.js +5 -5
- package/es/notification/NotificationPlugin.js +5 -5
- package/es/notification/index.js +5 -5
- package/es/pagination/Pagination.js +10 -10
- package/es/pagination/PaginationMini.js +4 -4
- package/es/pagination/hooks/useBoundaryJumper.js +4 -4
- package/es/pagination/hooks/usePageNumber.js +4 -4
- package/es/pagination/hooks/usePrevNextJumper.js +4 -4
- package/es/pagination/hooks/useTotal.js +4 -4
- package/es/pagination/index.js +10 -10
- package/es/popconfirm/Popconfirm.js +4 -4
- package/es/popconfirm/Popcontent.js +4 -4
- package/es/popconfirm/index.js +4 -4
- package/es/popup/Popup.js +4 -4
- package/es/popup/index.js +4 -4
- package/es/progress/Progress.js +4 -4
- package/es/progress/index.js +4 -4
- package/es/radio/Radio.js +5 -5
- package/es/radio/RadioGroup.js +5 -5
- package/es/radio/index.js +5 -5
- package/es/range-input/RangeInput.js +4 -4
- package/es/range-input/RangeInputPopup.js +4 -4
- package/es/range-input/index.js +4 -4
- package/es/rate/Rate.js +4 -4
- package/es/rate/index.js +4 -4
- package/es/select/base/Option.js +4 -4
- package/es/select/base/OptionGroup.js +4 -4
- package/es/select/base/PopupContent.js +4 -4
- package/es/select/base/Select.js +7 -7
- package/es/select/hooks/useOptions.js +4 -4
- package/es/select/index.js +7 -7
- package/es/select/util/helper.js +4 -4
- package/es/select-input/SelectInput.js +7 -7
- package/es/select-input/index.js +7 -7
- package/es/select-input/useMultiple.js +4 -4
- package/es/select-input/useSingle.js +7 -7
- package/es/skeleton/Skeleton.js +4 -4
- package/es/skeleton/index.js +4 -4
- package/es/slider/Slider.js +4 -4
- package/es/slider/SliderHandleButton.js +4 -4
- package/es/slider/index.js +4 -4
- package/es/space/Space.js +4 -4
- package/es/space/index.js +4 -4
- package/es/steps/StepItem.js +4 -4
- package/es/steps/Steps.js +4 -4
- package/es/steps/index.js +4 -4
- package/es/sticky-tool/StickyItem.js +4 -4
- package/es/sticky-tool/StickyTool.js +4 -4
- package/es/sticky-tool/index.js +4 -4
- package/es/swiper/Swiper.js +4 -4
- package/es/swiper/SwiperItem.js +4 -4
- package/es/swiper/index.js +4 -4
- package/es/switch/Switch.js +4 -4
- package/es/switch/index.js +4 -4
- package/es/table/BaseTable.js +10 -10
- package/es/table/Cell.js +4 -4
- package/es/table/EditableCell.js +7 -7
- package/es/table/Ellipsis.js +4 -4
- package/es/table/EnhancedTable.js +14 -14
- package/es/table/FilterController.js +8 -8
- package/es/table/PrimaryTable.js +13 -13
- package/es/table/SorterButton.js +4 -4
- package/es/table/TBody.js +7 -7
- package/es/table/TFoot.js +4 -4
- package/es/table/THead.js +4 -4
- package/es/table/TR.js +4 -4
- package/es/table/hooks/useAsyncLoading.js +4 -4
- package/es/table/hooks/useClassName.js +4 -4
- package/es/table/hooks/useColumnController.js +5 -5
- package/es/table/hooks/useDragSort.js +4 -4
- package/es/table/hooks/useEditableRow.js +3 -3
- package/es/table/hooks/useFilter.js +8 -8
- package/es/table/hooks/usePagination.js +10 -10
- package/es/table/hooks/useRowExpand.js +4 -4
- package/es/table/hooks/useRowSelect.js +6 -6
- package/es/table/hooks/useSorter.js +4 -4
- package/es/table/hooks/useStyle.js +4 -4
- package/es/table/hooks/useTableHeader.js +4 -4
- package/es/table/hooks/useTreeData.js +7 -7
- package/es/table/index.js +14 -14
- package/es/tabs/TabBar.js +4 -4
- package/es/tabs/TabNav.js +4 -4
- package/es/tabs/TabNavItem.js +4 -4
- package/es/tabs/TabPanel.js +4 -4
- package/es/tabs/Tabs.js +4 -4
- package/es/tabs/index.js +4 -4
- package/es/tabs/useTabClass.js +4 -4
- package/es/tag/CheckTag.js +4 -4
- package/es/tag/Tag.js +4 -4
- package/es/tag/index.js +4 -4
- package/es/tag-input/TagInput.js +4 -4
- package/es/tag-input/index.js +4 -4
- package/es/tag-input/useTagList.js +4 -4
- package/es/textarea/Textarea.js +4 -4
- package/es/textarea/index.js +4 -4
- package/es/time-picker/TimePicker.js +7 -7
- package/es/time-picker/TimeRangePicker.js +4 -4
- package/es/time-picker/hooks/useTimePickerTextConfig.js +4 -4
- package/es/time-picker/index.js +7 -7
- package/es/time-picker/panel/SinglePanel.js +4 -4
- package/es/time-picker/panel/TimePickerPanel.js +4 -4
- package/es/timeline/Timeline.js +4 -4
- package/es/timeline/TimelineItem.js +4 -4
- package/es/timeline/index.js +4 -4
- package/es/tooltip/Tooltip.js +4 -4
- package/es/tooltip/TooltipLite.js +4 -4
- package/es/tooltip/index.js +4 -4
- package/es/transfer/Transfer.js +13 -13
- package/es/transfer/TransferList.js +12 -12
- package/es/transfer/index.js +13 -13
- package/es/transfer/utils.js +3 -3
- package/es/tree/Tree.js +13 -13
- package/es/tree/TreeItem.js +5 -5
- package/es/tree/index.js +13 -13
- package/es/tree/useStore.js +11 -11
- package/es/tree/useTreeConfig.js +4 -4
- package/es/tree-select/SelectArrow.js +4 -4
- package/es/tree-select/TreeSelect.js +13 -13
- package/es/tree-select/index.js +13 -13
- package/es/tree-select/useTreeSelectLocale.js +4 -4
- package/es/tree-select/useTreeSelectPassthoughProps.js +7 -7
- package/es/tree-select/useTreeSelectUtils.js +10 -10
- package/es/upload/hooks/useUpload.js +4 -4
- package/es/upload/index.js +5 -5
- package/es/upload/themes/DraggerFile.js +5 -5
- package/es/upload/themes/ImageCard.js +5 -5
- package/es/upload/themes/MultipleFlowList.js +5 -5
- package/es/upload/themes/NormalFile.js +4 -4
- package/es/upload/upload.js +5 -5
- package/es/watermark/Watermark.js +4 -4
- package/es/watermark/index.js +4 -4
- package/esm/_chunks/{dep-99afe6db.js → dep-01d13e64.js} +1 -1
- package/esm/_chunks/{dep-99afe6db.js.map → dep-01d13e64.js.map} +1 -1
- package/{es/_chunks/dep-1d5f47c2.js → esm/_chunks/dep-28876888.js} +4 -4
- package/esm/_chunks/{dep-1d5f47c2.js.map → dep-28876888.js.map} +1 -1
- package/esm/_chunks/{dep-d3a1c83c.js → dep-38989f4c.js} +1 -1
- package/esm/_chunks/{dep-d3a1c83c.js.map → dep-38989f4c.js.map} +1 -1
- package/esm/_chunks/{dep-49aeaa98.js → dep-3b75059e.js} +5 -5
- package/{es/_chunks/dep-49aeaa98.js.map → esm/_chunks/dep-3b75059e.js.map} +1 -1
- package/esm/_chunks/{dep-52424326.js → dep-488497e2.js} +2 -2
- package/{es/_chunks/dep-52424326.js.map → esm/_chunks/dep-488497e2.js.map} +1 -1
- package/{es/_chunks/dep-07180f46.js → esm/_chunks/dep-5a721e21.js} +1 -1
- package/esm/_chunks/{dep-01b91170.js.map → dep-5a721e21.js.map} +1 -1
- package/{es/_chunks/dep-70d76171.js → esm/_chunks/dep-6788902a.js} +2 -2
- package/esm/_chunks/{dep-70d76171.js.map → dep-6788902a.js.map} +1 -1
- package/{es/_chunks/dep-0b20126b.js → esm/_chunks/dep-857af787.js} +2 -2
- package/esm/_chunks/{dep-0b20126b.js.map → dep-857af787.js.map} +1 -1
- package/{es/_chunks/dep-6bdf9e3c.js → esm/_chunks/dep-8a3f0529.js} +2 -2
- package/esm/_chunks/{dep-6bdf9e3c.js.map → dep-8a3f0529.js.map} +1 -1
- package/{es/_chunks/dep-2328dd82.js → esm/_chunks/dep-a76ab496.js} +1 -1
- package/esm/_chunks/{dep-2328dd82.js.map → dep-a76ab496.js.map} +1 -1
- package/{es/_chunks/dep-76af2521.js → esm/_chunks/dep-c2794a9f.js} +3 -3
- package/esm/_chunks/{dep-76af2521.js.map → dep-c2794a9f.js.map} +1 -1
- package/esm/_chunks/{dep-b02b2976.js → dep-c88d0a15.js} +4 -4
- package/esm/_chunks/{dep-b02b2976.js.map → dep-c88d0a15.js.map} +1 -1
- package/{es/_chunks/dep-e609e9e8.js → esm/_chunks/dep-cb45c25d.js} +1 -1
- package/{es/_chunks/dep-e609e9e8.js.map → esm/_chunks/dep-cb45c25d.js.map} +1 -1
- package/{es/_chunks/dep-c87aa853.js → esm/_chunks/dep-d0081053.js} +2 -2
- package/{es/_chunks/dep-c87aa853.js.map → esm/_chunks/dep-d0081053.js.map} +1 -1
- package/{es/_chunks/dep-fff35577.js → esm/_chunks/dep-d0c18995.js} +2 -2
- package/{es/_chunks/dep-fff35577.js.map → esm/_chunks/dep-d0c18995.js.map} +1 -1
- package/esm/_chunks/{dep-df9f8f04.js → dep-db73a5f9.js} +2 -2
- package/{es/_chunks/dep-df9f8f04.js.map → esm/_chunks/dep-db73a5f9.js.map} +1 -1
- package/esm/_chunks/{dep-6b33e1e9.js → dep-dbe7a00b.js} +1 -1
- package/{es/_chunks/dep-6b33e1e9.js.map → esm/_chunks/dep-dbe7a00b.js.map} +1 -1
- package/{es/_chunks/dep-132378f3.js → esm/_chunks/dep-fd8af8b2.js} +4 -4
- package/esm/_chunks/{dep-132378f3.js.map → dep-fd8af8b2.js.map} +1 -1
- package/esm/_common/js/tree/tree-node-model.js +9 -9
- package/esm/_common/js/tree/tree-node.js +9 -9
- package/esm/_common/js/tree/tree-store.js +10 -10
- package/esm/_util/useAnimation.js +4 -4
- package/esm/_util/useClickOutside.js +4 -4
- package/esm/_util/useCommonClassName.js +4 -4
- package/esm/_util/useRipple.js +4 -4
- package/esm/affix/Affix.js +4 -4
- package/esm/affix/index.js +4 -4
- package/esm/alert/Alert.js +4 -4
- package/esm/alert/index.js +4 -4
- package/esm/anchor/Anchor.js +6 -6
- package/esm/anchor/AnchorItem.js +4 -4
- package/esm/anchor/AnchorTarget.js +4 -4
- package/esm/anchor/index.js +6 -6
- package/esm/auto-complete/AutoComplete.js +4 -4
- package/esm/auto-complete/HighlightOption.js +4 -4
- package/esm/auto-complete/OptionList.js +4 -4
- package/esm/auto-complete/index.js +4 -4
- package/esm/avatar/Avatar.js +5 -5
- package/esm/avatar/AvatarGroup.js +5 -5
- package/esm/avatar/index.js +5 -5
- package/esm/back-top/BackTop.js +4 -4
- package/esm/back-top/index.js +4 -4
- package/esm/badge/Badge.js +4 -4
- package/esm/badge/index.js +4 -4
- package/esm/breadcrumb/Breadcrumb.js +4 -4
- package/esm/breadcrumb/BreadcrumbItem.js +4 -4
- package/esm/breadcrumb/index.js +4 -4
- package/esm/button/Button.js +4 -4
- package/esm/button/index.js +4 -4
- package/esm/calendar/Calendar.js +8 -8
- package/esm/calendar/CalendarCellComp.js +4 -4
- package/esm/calendar/hooks/usePrefixClass.js +4 -4
- package/esm/calendar/index.js +8 -8
- package/esm/card/Card.js +4 -4
- package/esm/card/index.js +4 -4
- package/esm/cascader/Cascader.js +14 -14
- package/esm/cascader/CascaderPanel.js +14 -14
- package/esm/cascader/components/Item.js +7 -7
- package/esm/cascader/components/Panel.js +9 -9
- package/esm/cascader/core/effect.js +6 -6
- package/esm/cascader/core/helper.js +3 -3
- package/esm/cascader/hooks.js +12 -12
- package/esm/cascader/index.js +14 -14
- package/esm/cascader/interface.js +9 -9
- package/esm/checkbox/Checkbox.js +5 -5
- package/esm/checkbox/CheckboxGroup.js +5 -5
- package/esm/checkbox/index.js +5 -5
- package/esm/collapse/Collapse.js +4 -4
- package/esm/collapse/CollapsePanel.js +4 -4
- package/esm/collapse/index.js +4 -4
- package/esm/color-picker/ColorPicker.js +11 -11
- package/esm/color-picker/ColorPickerPanel.js +11 -11
- package/esm/color-picker/components/panel/format/index.js +7 -7
- package/esm/color-picker/components/panel/format/inputs.js +4 -4
- package/esm/color-picker/components/panel/header.js +5 -5
- package/esm/color-picker/components/panel/index.js +11 -11
- package/esm/color-picker/components/panel/linear-gradient.js +7 -7
- package/esm/color-picker/components/panel/swatches.js +4 -4
- package/esm/color-picker/components/trigger.js +4 -4
- package/esm/color-picker/hooks/useClassNames.js +4 -4
- package/esm/color-picker/index.js +11 -11
- package/esm/comment/Comment.js +4 -4
- package/esm/comment/index.js +4 -4
- package/esm/common/Check.js +4 -4
- package/esm/common/FakeArrow.js +4 -4
- package/esm/common/Portal.js +4 -4
- package/esm/config-provider/ConfigContext.js +4 -4
- package/esm/config-provider/ConfigProvider.js +4 -4
- package/esm/config-provider/index.js +4 -4
- package/esm/date-picker/DatePicker.js +10 -10
- package/esm/date-picker/DatePickerPanel.js +10 -10
- package/esm/date-picker/DateRangePicker.js +10 -10
- package/esm/date-picker/DateRangePickerPanel.js +10 -10
- package/esm/date-picker/base/Cell.js +4 -4
- package/esm/date-picker/base/Footer.js +4 -4
- package/esm/date-picker/base/Header.js +10 -10
- package/esm/date-picker/base/Table.js +4 -4
- package/esm/date-picker/hooks/useRange.js +4 -4
- package/esm/date-picker/hooks/useSingle.js +4 -4
- package/esm/date-picker/hooks/useTableData.js +4 -4
- package/esm/date-picker/index.js +10 -10
- package/esm/date-picker/panel/ExtraContent.js +4 -4
- package/esm/date-picker/panel/PanelContent.js +10 -10
- package/esm/date-picker/panel/RangePanel.js +10 -10
- package/esm/date-picker/panel/SinglePanel.js +10 -10
- package/esm/dialog/Dialog.js +5 -5
- package/esm/dialog/Dialog.js.map +1 -1
- package/esm/dialog/DialogCard.js +5 -5
- package/esm/dialog/DialogCard.js.map +1 -1
- package/esm/dialog/index.js +4 -4
- package/esm/dialog/plugin.js +4 -4
- package/esm/divider/Divider.js +4 -4
- package/esm/divider/index.js +4 -4
- package/esm/drawer/Drawer.js +4 -4
- package/esm/drawer/index.js +4 -4
- package/esm/dropdown/Dropdown.js +8 -8
- package/esm/dropdown/DropdownItem.js +4 -4
- package/esm/dropdown/DropdownMenu.js +4 -4
- package/esm/dropdown/hooks/useDropdownOptions.js +4 -4
- package/esm/dropdown/index.js +8 -8
- package/esm/form/Form.js +15 -15
- package/esm/form/FormItem.js +15 -15
- package/esm/form/FormList.js +4 -4
- package/esm/form/formModel.js +3 -3
- package/esm/form/hooks/useFormItemStyle.js +4 -4
- package/esm/form/hooks/useInstance.js +6 -6
- package/esm/form/index.js +15 -15
- package/esm/form/useInitialData.js +15 -15
- package/esm/grid/Col.js +4 -4
- package/esm/grid/Row.js +4 -4
- package/esm/grid/index.js +4 -4
- package/esm/guide/Guide.js +4 -4
- package/esm/guide/index.js +4 -4
- package/esm/hooks/useCommonClassName.js +4 -4
- package/esm/hooks/useConfig.js +4 -4
- package/esm/hooks/useGlobalIcon.js +4 -4
- package/esm/image/Image.js +4 -4
- package/esm/image/index.js +4 -4
- package/esm/image-viewer/ImageViewer.js +5 -5
- package/esm/image-viewer/ImageViewerMini.js +5 -5
- package/esm/image-viewer/ImageViewerModel.js +5 -5
- package/esm/image-viewer/hooks/useIconMap.js +4 -4
- package/esm/image-viewer/index.js +5 -5
- package/esm/index.js +18 -18
- package/esm/input/Input.js +4 -4
- package/esm/input/InputGroup.js +4 -4
- package/esm/input/index.js +4 -4
- package/esm/input-adornment/InputAdornment.js +4 -4
- package/esm/input-adornment/index.js +4 -4
- package/esm/input-number/InputNumber.js +4 -4
- package/esm/input-number/index.js +4 -4
- package/esm/input-number/useInputNumber.js +4 -4
- package/esm/layout/Aside.js +4 -4
- package/esm/layout/Layout.js +4 -4
- package/esm/layout/index.js +4 -4
- package/esm/link/Link.js +4 -4
- package/esm/link/index.js +4 -4
- package/esm/list/List.js +4 -4
- package/esm/list/ListItem.js +4 -4
- package/esm/list/ListItemMeta.js +4 -4
- package/esm/list/index.js +4 -4
- package/esm/loading/Loading.js +4 -4
- package/esm/loading/gradient.js +4 -4
- package/esm/loading/index.js +4 -4
- package/esm/loading/plugin.js +4 -4
- package/esm/locale/LocalReceiver.js +4 -4
- package/esm/menu/HeadMenu.js +4 -4
- package/esm/menu/Menu.js +4 -4
- package/esm/menu/MenuGroup.js +4 -4
- package/esm/menu/MenuItem.js +4 -4
- package/esm/menu/SubMenu.js +4 -4
- package/esm/menu/index.js +4 -4
- package/esm/message/Message.js +4 -4
- package/esm/message/MessageClose.js +4 -4
- package/esm/message/MessageComponent.js +4 -4
- package/esm/message/MessageIcon.js +4 -4
- package/esm/message/index.js +4 -4
- package/esm/message/useMessageClass.js +4 -4
- package/esm/notification/Notification.js +5 -5
- package/esm/notification/NotificationList.js +5 -5
- package/esm/notification/NotificationPlugin.js +5 -5
- package/esm/notification/index.js +5 -5
- package/esm/pagination/Pagination.js +10 -10
- package/esm/pagination/PaginationMini.js +4 -4
- package/esm/pagination/hooks/useBoundaryJumper.js +4 -4
- package/esm/pagination/hooks/usePageNumber.js +4 -4
- package/esm/pagination/hooks/usePrevNextJumper.js +4 -4
- package/esm/pagination/hooks/useTotal.js +4 -4
- package/esm/pagination/index.js +10 -10
- package/esm/popconfirm/Popconfirm.js +4 -4
- package/esm/popconfirm/Popcontent.js +4 -4
- package/esm/popconfirm/index.js +4 -4
- package/esm/popup/Popup.js +4 -4
- package/esm/popup/index.js +4 -4
- package/esm/progress/Progress.js +4 -4
- package/esm/progress/index.js +4 -4
- package/esm/radio/Radio.js +5 -5
- package/esm/radio/RadioGroup.js +5 -5
- package/esm/radio/index.js +5 -5
- package/esm/range-input/RangeInput.js +4 -4
- package/esm/range-input/RangeInputPopup.js +4 -4
- package/esm/range-input/index.js +4 -4
- package/esm/rate/Rate.js +4 -4
- package/esm/rate/index.js +4 -4
- package/esm/select/base/Option.js +4 -4
- package/esm/select/base/OptionGroup.js +4 -4
- package/esm/select/base/PopupContent.js +4 -4
- package/esm/select/base/Select.js +7 -7
- package/esm/select/hooks/useOptions.js +4 -4
- package/esm/select/index.js +7 -7
- package/esm/select/util/helper.js +4 -4
- package/esm/select-input/SelectInput.js +7 -7
- package/esm/select-input/index.js +7 -7
- package/esm/select-input/useMultiple.js +4 -4
- package/esm/select-input/useSingle.js +7 -7
- package/esm/skeleton/Skeleton.js +4 -4
- package/esm/skeleton/index.js +4 -4
- package/esm/slider/Slider.js +4 -4
- package/esm/slider/SliderHandleButton.js +4 -4
- package/esm/slider/index.js +4 -4
- package/esm/space/Space.js +4 -4
- package/esm/space/index.js +4 -4
- package/esm/steps/StepItem.js +4 -4
- package/esm/steps/Steps.js +4 -4
- package/esm/steps/index.js +4 -4
- package/esm/sticky-tool/StickyItem.js +4 -4
- package/esm/sticky-tool/StickyTool.js +4 -4
- package/esm/sticky-tool/index.js +4 -4
- package/esm/swiper/Swiper.js +4 -4
- package/esm/swiper/SwiperItem.js +4 -4
- package/esm/swiper/index.js +4 -4
- package/esm/switch/Switch.js +4 -4
- package/esm/switch/index.js +4 -4
- package/esm/table/BaseTable.js +10 -10
- package/esm/table/Cell.js +4 -4
- package/esm/table/EditableCell.js +7 -7
- package/esm/table/Ellipsis.js +4 -4
- package/esm/table/EnhancedTable.js +14 -14
- package/esm/table/FilterController.js +8 -8
- package/esm/table/PrimaryTable.js +13 -13
- package/esm/table/SorterButton.js +4 -4
- package/esm/table/TBody.js +7 -7
- package/esm/table/TFoot.js +4 -4
- package/esm/table/THead.js +4 -4
- package/esm/table/TR.js +4 -4
- package/esm/table/hooks/useAsyncLoading.js +4 -4
- package/esm/table/hooks/useClassName.js +4 -4
- package/esm/table/hooks/useColumnController.js +5 -5
- package/esm/table/hooks/useDragSort.js +4 -4
- package/esm/table/hooks/useEditableRow.js +3 -3
- package/esm/table/hooks/useFilter.js +8 -8
- package/esm/table/hooks/usePagination.js +10 -10
- package/esm/table/hooks/useRowExpand.js +4 -4
- package/esm/table/hooks/useRowSelect.js +6 -6
- package/esm/table/hooks/useSorter.js +4 -4
- package/esm/table/hooks/useStyle.js +4 -4
- package/esm/table/hooks/useTableHeader.js +4 -4
- package/esm/table/hooks/useTreeData.js +7 -7
- package/esm/table/index.js +14 -14
- package/esm/tabs/TabBar.js +4 -4
- package/esm/tabs/TabNav.js +4 -4
- package/esm/tabs/TabNavItem.js +4 -4
- package/esm/tabs/TabPanel.js +4 -4
- package/esm/tabs/Tabs.js +4 -4
- package/esm/tabs/index.js +4 -4
- package/esm/tabs/useTabClass.js +4 -4
- package/esm/tag/CheckTag.js +4 -4
- package/esm/tag/Tag.js +4 -4
- package/esm/tag/index.js +4 -4
- package/esm/tag-input/TagInput.js +4 -4
- package/esm/tag-input/index.js +4 -4
- package/esm/tag-input/useTagList.js +4 -4
- package/esm/textarea/Textarea.js +4 -4
- package/esm/textarea/index.js +4 -4
- package/esm/time-picker/TimePicker.js +7 -7
- package/esm/time-picker/TimeRangePicker.js +4 -4
- package/esm/time-picker/hooks/useTimePickerTextConfig.js +4 -4
- package/esm/time-picker/index.js +7 -7
- package/esm/time-picker/panel/SinglePanel.js +4 -4
- package/esm/time-picker/panel/TimePickerPanel.js +4 -4
- package/esm/timeline/Timeline.js +4 -4
- package/esm/timeline/TimelineItem.js +4 -4
- package/esm/timeline/index.js +4 -4
- package/esm/tooltip/Tooltip.js +4 -4
- package/esm/tooltip/TooltipLite.js +4 -4
- package/esm/tooltip/index.js +4 -4
- package/esm/transfer/Transfer.js +13 -13
- package/esm/transfer/TransferList.js +12 -12
- package/esm/transfer/index.js +13 -13
- package/esm/transfer/utils.js +3 -3
- package/esm/tree/Tree.js +13 -13
- package/esm/tree/TreeItem.js +5 -5
- package/esm/tree/index.js +13 -13
- package/esm/tree/useStore.js +11 -11
- package/esm/tree/useTreeConfig.js +4 -4
- package/esm/tree-select/SelectArrow.js +4 -4
- package/esm/tree-select/TreeSelect.js +13 -13
- package/esm/tree-select/index.js +13 -13
- package/esm/tree-select/useTreeSelectLocale.js +4 -4
- package/esm/tree-select/useTreeSelectPassthoughProps.js +7 -7
- package/esm/tree-select/useTreeSelectUtils.js +10 -10
- package/esm/upload/hooks/useUpload.js +4 -4
- package/esm/upload/index.js +5 -5
- package/esm/upload/themes/DraggerFile.js +5 -5
- package/esm/upload/themes/ImageCard.js +5 -5
- package/esm/upload/themes/MultipleFlowList.js +5 -5
- package/esm/upload/themes/NormalFile.js +4 -4
- package/esm/upload/upload.js +5 -5
- package/esm/watermark/Watermark.js +4 -4
- package/esm/watermark/index.js +4 -4
- package/lib/_chunks/{dep-fd009f6e.js → dep-0583dcd8.js} +1 -1
- package/lib/_chunks/{dep-fd009f6e.js.map → dep-0583dcd8.js.map} +1 -1
- package/lib/_chunks/{dep-a5d960e8.js → dep-0e5b3deb.js} +1 -1
- package/lib/_chunks/{dep-a5d960e8.js.map → dep-0e5b3deb.js.map} +1 -1
- package/lib/_chunks/{dep-498e1533.js → dep-169a90c2.js} +2 -2
- package/lib/_chunks/{dep-498e1533.js.map → dep-169a90c2.js.map} +1 -1
- package/lib/_chunks/{dep-afcb101d.js → dep-1b16c8c4.js} +2 -2
- package/lib/_chunks/{dep-afcb101d.js.map → dep-1b16c8c4.js.map} +1 -1
- package/lib/_chunks/{dep-15d98681.js → dep-1c333fd5.js} +4 -4
- package/lib/_chunks/{dep-15d98681.js.map → dep-1c333fd5.js.map} +1 -1
- package/lib/_chunks/{dep-999cd4bf.js → dep-4c561b83.js} +2 -2
- package/lib/_chunks/{dep-999cd4bf.js.map → dep-4c561b83.js.map} +1 -1
- package/lib/_chunks/{dep-39076cd7.js → dep-5e3b8c41.js} +4 -4
- package/lib/_chunks/{dep-39076cd7.js.map → dep-5e3b8c41.js.map} +1 -1
- package/lib/_chunks/{dep-969347ec.js → dep-677b08bc.js} +1 -1
- package/lib/_chunks/{dep-969347ec.js.map → dep-677b08bc.js.map} +1 -1
- package/lib/_chunks/{dep-fa769771.js → dep-78c04035.js} +1 -1
- package/lib/_chunks/{dep-fa769771.js.map → dep-78c04035.js.map} +1 -1
- package/lib/_chunks/{dep-a573e2ba.js → dep-7aa7b645.js} +1 -1
- package/lib/_chunks/{dep-a573e2ba.js.map → dep-7aa7b645.js.map} +1 -1
- package/lib/_chunks/{dep-23ecb1ac.js → dep-857545c7.js} +4 -4
- package/lib/_chunks/{dep-23ecb1ac.js.map → dep-857545c7.js.map} +1 -1
- package/lib/_chunks/{dep-43a71b20.js → dep-92601077.js} +2 -2
- package/lib/_chunks/{dep-43a71b20.js.map → dep-92601077.js.map} +1 -1
- package/lib/_chunks/{dep-a8d3f527.js → dep-b8fc284e.js} +2 -2
- package/lib/_chunks/{dep-a8d3f527.js.map → dep-b8fc284e.js.map} +1 -1
- package/lib/_chunks/{dep-fbf5a6e0.js → dep-bb2e9c8d.js} +3 -3
- package/lib/_chunks/{dep-fbf5a6e0.js.map → dep-bb2e9c8d.js.map} +1 -1
- package/lib/_chunks/{dep-c34d2f58.js → dep-c580832d.js} +2 -2
- package/lib/_chunks/{dep-c34d2f58.js.map → dep-c580832d.js.map} +1 -1
- package/lib/_chunks/{dep-a60c4279.js → dep-d09f05cf.js} +2 -2
- package/lib/_chunks/{dep-a60c4279.js.map → dep-d09f05cf.js.map} +1 -1
- package/lib/_chunks/{dep-41af5862.js → dep-dccc3f81.js} +1 -1
- package/lib/_chunks/{dep-41af5862.js.map → dep-dccc3f81.js.map} +1 -1
- package/lib/_chunks/{dep-9a90394c.js → dep-f2434436.js} +5 -5
- package/lib/_chunks/{dep-9a90394c.js.map → dep-f2434436.js.map} +1 -1
- package/lib/_common/js/tree/tree-node-model.js +9 -9
- package/lib/_common/js/tree/tree-node.js +9 -9
- package/lib/_common/js/tree/tree-store.js +10 -10
- package/lib/_util/useAnimation.js +4 -4
- package/lib/_util/useClickOutside.js +4 -4
- package/lib/_util/useCommonClassName.js +4 -4
- package/lib/_util/useRipple.js +4 -4
- package/lib/affix/Affix.js +4 -4
- package/lib/affix/index.js +4 -4
- package/lib/alert/Alert.js +4 -4
- package/lib/alert/index.js +4 -4
- package/lib/anchor/Anchor.js +6 -6
- package/lib/anchor/AnchorItem.js +4 -4
- package/lib/anchor/AnchorTarget.js +4 -4
- package/lib/anchor/index.js +6 -6
- package/lib/auto-complete/AutoComplete.js +4 -4
- package/lib/auto-complete/HighlightOption.js +4 -4
- package/lib/auto-complete/OptionList.js +4 -4
- package/lib/auto-complete/index.js +4 -4
- package/lib/avatar/Avatar.js +5 -5
- package/lib/avatar/AvatarGroup.js +5 -5
- package/lib/avatar/index.js +5 -5
- package/lib/back-top/BackTop.js +4 -4
- package/lib/back-top/index.js +4 -4
- package/lib/badge/Badge.js +4 -4
- package/lib/badge/index.js +4 -4
- package/lib/breadcrumb/Breadcrumb.js +4 -4
- package/lib/breadcrumb/BreadcrumbItem.js +4 -4
- package/lib/breadcrumb/index.js +4 -4
- package/lib/button/Button.js +4 -4
- package/lib/button/index.js +4 -4
- package/lib/calendar/Calendar.js +8 -8
- package/lib/calendar/CalendarCellComp.js +4 -4
- package/lib/calendar/hooks/usePrefixClass.js +4 -4
- package/lib/calendar/index.js +8 -8
- package/lib/card/Card.js +4 -4
- package/lib/card/index.js +4 -4
- package/lib/cascader/Cascader.js +14 -14
- package/lib/cascader/CascaderPanel.js +14 -14
- package/lib/cascader/components/Item.js +7 -7
- package/lib/cascader/components/Panel.js +9 -9
- package/lib/cascader/core/effect.js +6 -6
- package/lib/cascader/core/helper.js +3 -3
- package/lib/cascader/hooks.js +12 -12
- package/lib/cascader/index.js +14 -14
- package/lib/cascader/interface.js +9 -9
- package/lib/checkbox/Checkbox.js +5 -5
- package/lib/checkbox/CheckboxGroup.js +5 -5
- package/lib/checkbox/index.js +5 -5
- package/lib/collapse/Collapse.js +4 -4
- package/lib/collapse/CollapsePanel.js +4 -4
- package/lib/collapse/index.js +4 -4
- package/lib/color-picker/ColorPicker.js +11 -11
- package/lib/color-picker/ColorPickerPanel.js +11 -11
- package/lib/color-picker/components/panel/format/index.js +7 -7
- package/lib/color-picker/components/panel/format/inputs.js +4 -4
- package/lib/color-picker/components/panel/header.js +5 -5
- package/lib/color-picker/components/panel/index.js +11 -11
- package/lib/color-picker/components/panel/linear-gradient.js +7 -7
- package/lib/color-picker/components/panel/swatches.js +4 -4
- package/lib/color-picker/components/trigger.js +4 -4
- package/lib/color-picker/hooks/useClassNames.js +4 -4
- package/lib/color-picker/index.js +11 -11
- package/lib/comment/Comment.js +4 -4
- package/lib/comment/index.js +4 -4
- package/lib/common/Check.js +4 -4
- package/lib/common/FakeArrow.js +4 -4
- package/lib/common/Portal.js +4 -4
- package/lib/config-provider/ConfigContext.js +4 -4
- package/lib/config-provider/ConfigProvider.js +4 -4
- package/lib/config-provider/index.js +4 -4
- package/lib/date-picker/DatePicker.js +10 -10
- package/lib/date-picker/DatePickerPanel.js +10 -10
- package/lib/date-picker/DateRangePicker.js +10 -10
- package/lib/date-picker/DateRangePickerPanel.js +10 -10
- package/lib/date-picker/base/Cell.js +4 -4
- package/lib/date-picker/base/Footer.js +4 -4
- package/lib/date-picker/base/Header.js +10 -10
- package/lib/date-picker/base/Table.js +4 -4
- package/lib/date-picker/hooks/useRange.js +4 -4
- package/lib/date-picker/hooks/useSingle.js +4 -4
- package/lib/date-picker/hooks/useTableData.js +4 -4
- package/lib/date-picker/index.js +10 -10
- package/lib/date-picker/panel/ExtraContent.js +4 -4
- package/lib/date-picker/panel/PanelContent.js +10 -10
- package/lib/date-picker/panel/RangePanel.js +10 -10
- package/lib/date-picker/panel/SinglePanel.js +10 -10
- package/lib/dialog/Dialog.js +5 -5
- package/lib/dialog/Dialog.js.map +1 -1
- package/lib/dialog/DialogCard.js +5 -5
- package/lib/dialog/DialogCard.js.map +1 -1
- package/lib/dialog/index.js +4 -4
- package/lib/dialog/plugin.js +4 -4
- package/lib/divider/Divider.js +4 -4
- package/lib/divider/index.js +4 -4
- package/lib/drawer/Drawer.js +4 -4
- package/lib/drawer/index.js +4 -4
- package/lib/dropdown/Dropdown.js +8 -8
- package/lib/dropdown/DropdownItem.js +4 -4
- package/lib/dropdown/DropdownMenu.js +4 -4
- package/lib/dropdown/hooks/useDropdownOptions.js +4 -4
- package/lib/dropdown/index.js +8 -8
- package/lib/form/Form.js +15 -15
- package/lib/form/FormItem.js +15 -15
- package/lib/form/FormList.js +4 -4
- package/lib/form/formModel.js +3 -3
- package/lib/form/hooks/useFormItemStyle.js +4 -4
- package/lib/form/hooks/useInstance.js +6 -6
- package/lib/form/index.js +15 -15
- package/lib/form/useInitialData.js +15 -15
- package/lib/grid/Col.js +4 -4
- package/lib/grid/Row.js +4 -4
- package/lib/grid/index.js +4 -4
- package/lib/guide/Guide.js +4 -4
- package/lib/guide/index.js +4 -4
- package/lib/hooks/useCommonClassName.js +4 -4
- package/lib/hooks/useConfig.js +4 -4
- package/lib/hooks/useGlobalIcon.js +4 -4
- package/lib/image/Image.js +4 -4
- package/lib/image/index.js +4 -4
- package/lib/image-viewer/ImageViewer.js +5 -5
- package/lib/image-viewer/ImageViewerMini.js +5 -5
- package/lib/image-viewer/ImageViewerModel.js +5 -5
- package/lib/image-viewer/hooks/useIconMap.js +4 -4
- package/lib/image-viewer/index.js +5 -5
- package/lib/index.js +18 -18
- package/lib/input/Input.js +4 -4
- package/lib/input/InputGroup.js +4 -4
- package/lib/input/index.js +4 -4
- package/lib/input-adornment/InputAdornment.js +4 -4
- package/lib/input-adornment/index.js +4 -4
- package/lib/input-number/InputNumber.js +4 -4
- package/lib/input-number/index.js +4 -4
- package/lib/input-number/useInputNumber.js +4 -4
- package/lib/layout/Aside.js +4 -4
- package/lib/layout/Layout.js +4 -4
- package/lib/layout/index.js +4 -4
- package/lib/link/Link.js +4 -4
- package/lib/link/index.js +4 -4
- package/lib/list/List.js +4 -4
- package/lib/list/ListItem.js +4 -4
- package/lib/list/ListItemMeta.js +4 -4
- package/lib/list/index.js +4 -4
- package/lib/loading/Loading.js +4 -4
- package/lib/loading/gradient.js +4 -4
- package/lib/loading/index.js +4 -4
- package/lib/loading/plugin.js +4 -4
- package/lib/locale/LocalReceiver.js +4 -4
- package/lib/menu/HeadMenu.js +4 -4
- package/lib/menu/Menu.js +4 -4
- package/lib/menu/MenuGroup.js +4 -4
- package/lib/menu/MenuItem.js +4 -4
- package/lib/menu/SubMenu.js +4 -4
- package/lib/menu/index.js +4 -4
- package/lib/message/Message.js +4 -4
- package/lib/message/MessageClose.js +4 -4
- package/lib/message/MessageComponent.js +4 -4
- package/lib/message/MessageIcon.js +4 -4
- package/lib/message/index.js +4 -4
- package/lib/message/useMessageClass.js +4 -4
- package/lib/notification/Notification.js +5 -5
- package/lib/notification/NotificationList.js +5 -5
- package/lib/notification/NotificationPlugin.js +5 -5
- package/lib/notification/index.js +5 -5
- package/lib/pagination/Pagination.js +10 -10
- package/lib/pagination/PaginationMini.js +4 -4
- package/lib/pagination/hooks/useBoundaryJumper.js +4 -4
- package/lib/pagination/hooks/usePageNumber.js +4 -4
- package/lib/pagination/hooks/usePrevNextJumper.js +4 -4
- package/lib/pagination/hooks/useTotal.js +4 -4
- package/lib/pagination/index.js +10 -10
- package/lib/popconfirm/Popconfirm.js +4 -4
- package/lib/popconfirm/Popcontent.js +4 -4
- package/lib/popconfirm/index.js +4 -4
- package/lib/popup/Popup.js +4 -4
- package/lib/popup/index.js +4 -4
- package/lib/progress/Progress.js +4 -4
- package/lib/progress/index.js +4 -4
- package/lib/radio/Radio.js +5 -5
- package/lib/radio/RadioGroup.js +5 -5
- package/lib/radio/index.js +5 -5
- package/lib/range-input/RangeInput.js +4 -4
- package/lib/range-input/RangeInputPopup.js +4 -4
- package/lib/range-input/index.js +4 -4
- package/lib/rate/Rate.js +4 -4
- package/lib/rate/index.js +4 -4
- package/lib/select/base/Option.js +4 -4
- package/lib/select/base/OptionGroup.js +4 -4
- package/lib/select/base/PopupContent.js +4 -4
- package/lib/select/base/Select.js +7 -7
- package/lib/select/hooks/useOptions.js +4 -4
- package/lib/select/index.js +7 -7
- package/lib/select/util/helper.js +4 -4
- package/lib/select-input/SelectInput.js +7 -7
- package/lib/select-input/index.js +7 -7
- package/lib/select-input/useMultiple.js +4 -4
- package/lib/select-input/useSingle.js +7 -7
- package/lib/skeleton/Skeleton.js +4 -4
- package/lib/skeleton/index.js +4 -4
- package/lib/slider/Slider.js +4 -4
- package/lib/slider/SliderHandleButton.js +4 -4
- package/lib/slider/index.js +4 -4
- package/lib/space/Space.js +4 -4
- package/lib/space/index.js +4 -4
- package/lib/steps/StepItem.js +4 -4
- package/lib/steps/Steps.js +4 -4
- package/lib/steps/index.js +4 -4
- package/lib/sticky-tool/StickyItem.js +4 -4
- package/lib/sticky-tool/StickyTool.js +4 -4
- package/lib/sticky-tool/index.js +4 -4
- package/lib/swiper/Swiper.js +4 -4
- package/lib/swiper/SwiperItem.js +4 -4
- package/lib/swiper/index.js +4 -4
- package/lib/switch/Switch.js +4 -4
- package/lib/switch/index.js +4 -4
- package/lib/table/BaseTable.js +10 -10
- package/lib/table/Cell.js +4 -4
- package/lib/table/EditableCell.js +7 -7
- package/lib/table/Ellipsis.js +4 -4
- package/lib/table/EnhancedTable.js +14 -14
- package/lib/table/FilterController.js +8 -8
- package/lib/table/PrimaryTable.js +13 -13
- package/lib/table/SorterButton.js +4 -4
- package/lib/table/TBody.js +7 -7
- package/lib/table/TFoot.js +4 -4
- package/lib/table/THead.js +4 -4
- package/lib/table/TR.js +4 -4
- package/lib/table/hooks/useAsyncLoading.js +4 -4
- package/lib/table/hooks/useClassName.js +4 -4
- package/lib/table/hooks/useColumnController.js +5 -5
- package/lib/table/hooks/useDragSort.js +4 -4
- package/lib/table/hooks/useEditableRow.js +3 -3
- package/lib/table/hooks/useFilter.js +8 -8
- package/lib/table/hooks/usePagination.js +10 -10
- package/lib/table/hooks/useRowExpand.js +4 -4
- package/lib/table/hooks/useRowSelect.js +6 -6
- package/lib/table/hooks/useSorter.js +4 -4
- package/lib/table/hooks/useStyle.js +4 -4
- package/lib/table/hooks/useTableHeader.js +4 -4
- package/lib/table/hooks/useTreeData.js +7 -7
- package/lib/table/index.js +14 -14
- package/lib/tabs/TabBar.js +4 -4
- package/lib/tabs/TabNav.js +4 -4
- package/lib/tabs/TabNavItem.js +4 -4
- package/lib/tabs/TabPanel.js +4 -4
- package/lib/tabs/Tabs.js +4 -4
- package/lib/tabs/index.js +4 -4
- package/lib/tabs/useTabClass.js +4 -4
- package/lib/tag/CheckTag.js +4 -4
- package/lib/tag/Tag.js +4 -4
- package/lib/tag/index.js +4 -4
- package/lib/tag-input/TagInput.js +4 -4
- package/lib/tag-input/index.js +4 -4
- package/lib/tag-input/useTagList.js +4 -4
- package/lib/textarea/Textarea.js +4 -4
- package/lib/textarea/index.js +4 -4
- package/lib/time-picker/TimePicker.js +7 -7
- package/lib/time-picker/TimeRangePicker.js +4 -4
- package/lib/time-picker/hooks/useTimePickerTextConfig.js +4 -4
- package/lib/time-picker/index.js +7 -7
- package/lib/time-picker/panel/SinglePanel.js +4 -4
- package/lib/time-picker/panel/TimePickerPanel.js +4 -4
- package/lib/timeline/Timeline.js +4 -4
- package/lib/timeline/TimelineItem.js +4 -4
- package/lib/timeline/index.js +4 -4
- package/lib/tooltip/Tooltip.js +4 -4
- package/lib/tooltip/TooltipLite.js +4 -4
- package/lib/tooltip/index.js +4 -4
- package/lib/transfer/Transfer.js +13 -13
- package/lib/transfer/TransferList.js +12 -12
- package/lib/transfer/index.js +13 -13
- package/lib/transfer/utils.js +3 -3
- package/lib/tree/Tree.js +13 -13
- package/lib/tree/TreeItem.js +5 -5
- package/lib/tree/index.js +13 -13
- package/lib/tree/useStore.js +11 -11
- package/lib/tree/useTreeConfig.js +4 -4
- package/lib/tree-select/SelectArrow.js +4 -4
- package/lib/tree-select/TreeSelect.js +13 -13
- package/lib/tree-select/index.js +13 -13
- package/lib/tree-select/useTreeSelectLocale.js +4 -4
- package/lib/tree-select/useTreeSelectPassthoughProps.js +7 -7
- package/lib/tree-select/useTreeSelectUtils.js +10 -10
- package/lib/upload/hooks/useUpload.js +4 -4
- package/lib/upload/index.js +5 -5
- package/lib/upload/themes/DraggerFile.js +5 -5
- package/lib/upload/themes/ImageCard.js +5 -5
- package/lib/upload/themes/MultipleFlowList.js +5 -5
- package/lib/upload/themes/NormalFile.js +4 -4
- package/lib/upload/upload.js +5 -5
- package/lib/watermark/Watermark.js +4 -4
- package/lib/watermark/index.js +4 -4
- package/package.json +1 -1
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tdesign v1.0.4
|
|
3
|
+
* (c) 2023 tdesign
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
'use strict';
|
|
8
|
+
|
|
9
|
+
var defineProperty = require('./dep-b3bd96b5.js');
|
|
10
|
+
var React = require('react');
|
|
11
|
+
var _util_forwardRefWithStatics = require('../_util/forwardRefWithStatics.js');
|
|
12
|
+
var common_Check = require('../common/Check.js');
|
|
13
|
+
var slicedToArray = require('./dep-2e54fd55.js');
|
|
14
|
+
var classNames = require('classnames');
|
|
15
|
+
var hooks_useConfig = require('../hooks/useConfig.js');
|
|
16
|
+
var hooks_useControlled = require('../hooks/useControlled.js');
|
|
17
|
+
var _util_useCommonClassName = require('../_util/useCommonClassName.js');
|
|
18
|
+
var radio_defaultProps = require('../radio/defaultProps.js');
|
|
19
|
+
var _util_useMutationObserver = require('../_util/useMutationObserver.js');
|
|
20
|
+
var radio_useKeyboard = require('../radio/useKeyboard.js');
|
|
21
|
+
|
|
22
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
23
|
+
|
|
24
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
25
|
+
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
26
|
+
|
|
27
|
+
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
28
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { defineProperty._defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
|
+
var RadioGroup = function RadioGroup(props) {
|
|
30
|
+
var _classNames;
|
|
31
|
+
var _useConfig = hooks_useConfig["default"](),
|
|
32
|
+
classPrefix = _useConfig.classPrefix;
|
|
33
|
+
var disabled = props.disabled,
|
|
34
|
+
children = props.children,
|
|
35
|
+
onChange = props.onChange,
|
|
36
|
+
size = props.size,
|
|
37
|
+
variant = props.variant,
|
|
38
|
+
_props$options = props.options,
|
|
39
|
+
options = _props$options === void 0 ? [] : _props$options,
|
|
40
|
+
className = props.className,
|
|
41
|
+
style = props.style;
|
|
42
|
+
var _useControlled = hooks_useControlled["default"](props, "value", onChange),
|
|
43
|
+
_useControlled2 = slicedToArray._slicedToArray(_useControlled, 2),
|
|
44
|
+
internalValue = _useControlled2[0],
|
|
45
|
+
setInternalValue = _useControlled2[1];
|
|
46
|
+
var _useState = React.useState({}),
|
|
47
|
+
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
48
|
+
barStyle = _useState2[0],
|
|
49
|
+
setBarStyle = _useState2[1];
|
|
50
|
+
var radioGroupRef = React.useRef(null);
|
|
51
|
+
radio_useKeyboard["default"](radioGroupRef, setInternalValue);
|
|
52
|
+
var checkedRadioCls = ".".concat(classPrefix, "-radio-button.").concat(classPrefix, "-is-checked");
|
|
53
|
+
var _useCommonClassName = _util_useCommonClassName["default"](),
|
|
54
|
+
sizeMap = _useCommonClassName.SIZE;
|
|
55
|
+
var context = {
|
|
56
|
+
inject: function inject(checkProps) {
|
|
57
|
+
if (typeof checkProps.checked !== "undefined") {
|
|
58
|
+
return checkProps;
|
|
59
|
+
}
|
|
60
|
+
var checkValue = checkProps.value;
|
|
61
|
+
return _objectSpread$1(_objectSpread$1({}, checkProps), {}, {
|
|
62
|
+
name: props.name,
|
|
63
|
+
allowUncheck: checkProps.allowUncheck || props.allowUncheck,
|
|
64
|
+
checked: internalValue === checkProps.value,
|
|
65
|
+
disabled: checkProps.disabled || disabled,
|
|
66
|
+
onChange: function onChange(checked, _ref) {
|
|
67
|
+
var e = _ref.e;
|
|
68
|
+
if (typeof checkProps.onChange === "function") {
|
|
69
|
+
checkProps.onChange(checked, {
|
|
70
|
+
e: e
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
setInternalValue(checked ? checkValue : void 0, {
|
|
74
|
+
e: e
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
var calcBarStyle = function calcBarStyle() {
|
|
81
|
+
var _radioGroupRef$curren, _radioGroupRef$curren2;
|
|
82
|
+
if (!variant.includes("filled")) return;
|
|
83
|
+
var checkedRadio = (_radioGroupRef$curren = (_radioGroupRef$curren2 = radioGroupRef.current).querySelector) === null || _radioGroupRef$curren === void 0 ? void 0 : _radioGroupRef$curren.call(_radioGroupRef$curren2, checkedRadioCls);
|
|
84
|
+
if (!checkedRadio) return setBarStyle({
|
|
85
|
+
width: 0
|
|
86
|
+
});
|
|
87
|
+
var offsetWidth = checkedRadio.offsetWidth,
|
|
88
|
+
offsetLeft = checkedRadio.offsetLeft;
|
|
89
|
+
setBarStyle({
|
|
90
|
+
width: "".concat(offsetWidth, "px"),
|
|
91
|
+
left: "".concat(offsetLeft, "px")
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
React.useEffect(function () {
|
|
95
|
+
calcBarStyle();
|
|
96
|
+
}, [radioGroupRef.current, internalValue]);
|
|
97
|
+
_util_useMutationObserver["default"](radioGroupRef.current, calcBarStyle);
|
|
98
|
+
var renderBlock = function renderBlock() {
|
|
99
|
+
if (!variant.includes("filled")) return null;
|
|
100
|
+
return /* @__PURE__ */React__default["default"].createElement("div", {
|
|
101
|
+
style: barStyle,
|
|
102
|
+
className: "".concat(classPrefix, "-radio-group__bg-block")
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
var renderOptions = function renderOptions() {
|
|
106
|
+
return options.map(function (item) {
|
|
107
|
+
if (typeof item === "string" || typeof item === "number") {
|
|
108
|
+
return /* @__PURE__ */React__default["default"].createElement(Radio, {
|
|
109
|
+
value: item,
|
|
110
|
+
key: item
|
|
111
|
+
}, item);
|
|
112
|
+
}
|
|
113
|
+
return /* @__PURE__ */React__default["default"].createElement(Radio, {
|
|
114
|
+
value: item.value,
|
|
115
|
+
key: item.value,
|
|
116
|
+
disabled: item.disabled
|
|
117
|
+
}, item.label);
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
return /* @__PURE__ */React__default["default"].createElement(common_Check.CheckContext.Provider, {
|
|
121
|
+
value: context
|
|
122
|
+
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
123
|
+
ref: radioGroupRef,
|
|
124
|
+
style: style,
|
|
125
|
+
className: classNames__default["default"]("".concat(classPrefix, "-radio-group"), sizeMap[size], className, (_classNames = {}, defineProperty._defineProperty(_classNames, "".concat(classPrefix, "-radio-group__outline"), variant === "outline"), defineProperty._defineProperty(_classNames, "".concat(classPrefix, "-radio-group--filled"), variant.includes("filled")), defineProperty._defineProperty(_classNames, "".concat(classPrefix, "-radio-group--primary-filled"), variant === "primary-filled"), _classNames))
|
|
126
|
+
}, children || renderOptions(), renderBlock()));
|
|
127
|
+
};
|
|
128
|
+
RadioGroup.displayName = "RadioGroup";
|
|
129
|
+
RadioGroup.defaultProps = radio_defaultProps.radioGroupDefaultProps;
|
|
130
|
+
|
|
131
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
132
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { defineProperty._defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
133
|
+
var Radio = _util_forwardRefWithStatics["default"](function (props, ref) {
|
|
134
|
+
return /* @__PURE__ */React__default["default"].createElement(common_Check["default"], _objectSpread({
|
|
135
|
+
ref: ref,
|
|
136
|
+
type: "radio"
|
|
137
|
+
}, props));
|
|
138
|
+
}, {
|
|
139
|
+
Group: RadioGroup,
|
|
140
|
+
Button: /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
141
|
+
return /* @__PURE__ */React__default["default"].createElement(common_Check["default"], _objectSpread({
|
|
142
|
+
ref: ref,
|
|
143
|
+
type: "radio-button"
|
|
144
|
+
}, props));
|
|
145
|
+
})
|
|
146
|
+
});
|
|
147
|
+
Radio.displayName = "Radio";
|
|
148
|
+
Radio.defaultProps = radio_defaultProps.radioDefaultProps;
|
|
149
|
+
|
|
150
|
+
exports.Radio = Radio;
|
|
151
|
+
exports.RadioGroup = RadioGroup;
|
|
152
|
+
//# sourceMappingURL=dep-381e57e3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dep-381e57e3.js","sources":["../../src/radio/RadioGroup.tsx","../../src/radio/Radio.tsx"],"sourcesContent":["import React, { ReactNode, useState, useEffect, useRef } from 'react';\nimport classNames from 'classnames';\nimport useConfig from '../hooks/useConfig';\nimport { TdRadioGroupProps } from './type';\nimport useControlled from '../hooks/useControlled';\nimport useCommonClassName from '../_util/useCommonClassName';\nimport { StyledProps } from '../common';\nimport { CheckContext, CheckContextValue } from '../common/Check';\nimport Radio from './Radio';\nimport useMutationObservable from '../_util/useMutationObserver';\nimport { radioGroupDefaultProps } from './defaultProps';\nimport useKeyboard from './useKeyboard';\n\n/**\n * RadioGroup 组件所接收的属性\n */\nexport interface RadioGroupProps extends TdRadioGroupProps, StyledProps {\n children?: ReactNode;\n}\n\n/**\n * 单选选项组,里面可以嵌套 <Radio />\n */\nconst RadioGroup = (props: RadioGroupProps) => {\n const { classPrefix } = useConfig();\n const { disabled, children, onChange, size, variant, options = [], className, style } = props;\n\n const [internalValue, setInternalValue] = useControlled(props, 'value', onChange);\n const [barStyle, setBarStyle] = useState({});\n const radioGroupRef = useRef<HTMLDivElement>(null);\n\n useKeyboard(radioGroupRef, setInternalValue);\n\n const checkedRadioCls = `.${classPrefix}-radio-button.${classPrefix}-is-checked`;\n const { SIZE: sizeMap } = useCommonClassName();\n\n const context: CheckContextValue = {\n inject: (checkProps) => {\n // 如果已经受控,则不注入\n if (typeof checkProps.checked !== 'undefined') {\n return checkProps;\n }\n\n const { value: checkValue } = checkProps;\n\n return {\n ...checkProps,\n name: props.name,\n // 有一个允许取消,就可以取消选中\n allowUncheck: checkProps.allowUncheck || props.allowUncheck,\n checked: internalValue === checkProps.value,\n disabled: checkProps.disabled || disabled,\n onChange(checked, { e }) {\n if (typeof checkProps.onChange === 'function') {\n checkProps.onChange(checked, { e });\n }\n setInternalValue(checked ? checkValue : undefined, { e });\n },\n };\n },\n };\n\n const calcBarStyle = () => {\n if (!variant.includes('filled')) return;\n const checkedRadio = radioGroupRef.current.querySelector?.(checkedRadioCls) as HTMLElement;\n if (!checkedRadio) return setBarStyle({ width: 0 });\n\n const { offsetWidth, offsetLeft } = checkedRadio;\n setBarStyle({ width: `${offsetWidth}px`, left: `${offsetLeft}px` });\n };\n\n useEffect(() => {\n calcBarStyle();\n }, [radioGroupRef.current, internalValue]); // eslint-disable-line react-hooks/exhaustive-deps\n\n useMutationObservable(radioGroupRef.current, calcBarStyle);\n\n const renderBlock = () => {\n if (!variant.includes('filled')) return null;\n return <div style={barStyle} className={`${classPrefix}-radio-group__bg-block`}></div>;\n };\n\n const renderOptions = () =>\n options.map((item) => {\n if (typeof item === 'string' || typeof item === 'number') {\n return (\n <Radio value={item} key={item}>\n {item}\n </Radio>\n );\n }\n return (\n <Radio value={item.value} key={item.value} disabled={item.disabled}>\n {item.label}\n </Radio>\n );\n });\n\n return (\n <CheckContext.Provider value={context}>\n <div\n ref={radioGroupRef}\n style={style}\n className={classNames(`${classPrefix}-radio-group`, sizeMap[size], className, {\n [`${classPrefix}-radio-group__outline`]: variant === 'outline',\n [`${classPrefix}-radio-group--filled`]: variant.includes('filled'),\n [`${classPrefix}-radio-group--primary-filled`]: variant === 'primary-filled',\n })}\n >\n {children || renderOptions()}\n {renderBlock()}\n </div>\n </CheckContext.Provider>\n );\n};\n\nRadioGroup.displayName = 'RadioGroup';\nRadioGroup.defaultProps = radioGroupDefaultProps;\n\nexport default RadioGroup;\n","import React, { Ref, forwardRef } from 'react';\nimport forwardRefWithStatics from '../_util/forwardRefWithStatics';\nimport Check, { CheckProps } from '../common/Check';\nimport RadioGroup from './RadioGroup';\nimport { radioDefaultProps } from './defaultProps';\n\nexport type RadioProps = Omit<CheckProps, 'type'>;\n\nconst Radio = forwardRefWithStatics(\n (props: RadioProps, ref: Ref<HTMLLabelElement>) => <Check ref={ref} type=\"radio\" {...props} />,\n {\n Group: RadioGroup,\n Button: forwardRef((props: RadioProps, ref: Ref<HTMLLabelElement>) => (\n <Check ref={ref} type=\"radio-button\" {...props} />\n )),\n },\n);\n\nRadio.displayName = 'Radio';\nRadio.defaultProps = radioDefaultProps;\n\nexport default Radio;\n"],"names":["RadioGroup","props","useConfig","classPrefix","disabled","children","onChange","size","variant","options","className","style","useControlled","_slicedToArray","internalValue","setInternalValue","useState","barStyle","setBarStyle","radioGroupRef","useRef","useKeyboard","checkedRadioCls","useCommonClassName","sizeMap","SIZE","context","inject","checkProps","checked","checkValue","value","_objectSpread","name","allowUncheck","e","calcBarStyle","includes","checkedRadio","current","querySelector","width","offsetWidth","offsetLeft","left","useEffect","useMutationObservable","renderBlock","React","createElement","renderOptions","map","item","Radio","key","label","CheckContext","Provider","ref","classNames","_defineProperty","displayName","defaultProps","radioGroupDefaultProps","forwardRefWithStatics","Check","type","Group","Button","forwardRef","radioDefaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuBA,IAAMA,UAAA,GAAa,SAAbA,UAAA,CAAcC,KAA2B,EAAA;AAAA,EAAA,IAAA,WAAA,CAAA;AACvC,EAAA,IAAA,UAAA,GAAkBC,0BAAU,EAAA;AAA1BC,IAAAA,WAAY,cAAZA,WAAY,CAAA;AACd,EAAA,IAAEC,QAAU,GAAsEH,KAAA,CAAhFG,QAAU;IAAAC,QAAA,GAAsEJ,KAAA,CAAtEI,QAAA;IAAUC,QAAU,GAAkDL,KAAA,CAA5DK,QAAU;IAAAC,IAAA,GAAkDN,KAAA,CAAlDM,IAAA;IAAMC,OAAS,GAAmCP,KAAA,CAA5CO,OAAS;IAAA,cAAmCP,GAAAA,KAAA,CAAnCQ,OAAA;AAAAA,IAAAA,OAAA,+BAAU,EAAC,GAAA,cAAA;IAAGC,SAAW,GAAUT,KAAA,CAArBS,SAAW;IAAAC,KAAA,GAAUV,KAAA,CAAVU,KAAA,CAAA;AAE9E,EAAA,IAAA,cAAA,GAA0CC,8BAAc,CAAAX,KAAA,EAAO,SAASK,QAAQ,CAAA;AAAA,IAAA,eAAA,GAAAO,4BAAA,CAAA,cAAA,EAAA,CAAA,CAAA;IAAzEC,aAAe,GAAA,eAAA,CAAA,CAAA,CAAA;IAAAC,gBAAgB,GAAA,eAAA,CAAA,CAAA,CAAA,CAAA;AACtC,EAAA,IAAA,SAAA,GAAgCC,cAAA,CAAS,EAAE,CAAA;AAAA,IAAA,UAAA,GAAAH,4BAAA,CAAA,SAAA,EAAA,CAAA,CAAA;IAApCI,QAAU,GAAA,UAAA,CAAA,CAAA,CAAA;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,CAAA;AACpBR,KAAA,CAAMS,YAAe,GAAAQ,oCAAA;;;;;"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
9
|
var _baseGetTag = require('./dep-9e7c0aa6.js');
|
|
10
|
-
var keysIn = require('./dep-
|
|
10
|
+
var keysIn = require('./dep-cf38af2d.js');
|
|
11
11
|
var isObjectLike$1 = require('./dep-f313a74c.js');
|
|
12
12
|
|
|
13
13
|
var baseGetTag = _baseGetTag._baseGetTag,
|
|
@@ -72,4 +72,4 @@ function isPlainObject(value) {
|
|
|
72
72
|
var isPlainObject_1 = isPlainObject;
|
|
73
73
|
|
|
74
74
|
exports.isPlainObject_1 = isPlainObject_1;
|
|
75
|
-
//# sourceMappingURL=dep-
|
|
75
|
+
//# sourceMappingURL=dep-39de3d87.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dep-
|
|
1
|
+
{"version":3,"file":"dep-39de3d87.js","sources":["../../node_modules/lodash/isPlainObject.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n"],"names":["baseGetTag","require$$0","getPrototype","require$$1","isObjectLike","require$$2","objectTag","funcProto","Function","prototype","objectProto","Object","funcToString","toString","hasOwnProperty","objectCtorString","call","isPlainObject","value","proto","Ctor","constructor","isPlainObject_1"],"mappings":";;;;;;;;;;;;AAAA,IAAIA,UAAU,GAAGC,uBAAwB;AACrCC,EAAAA,YAAY,GAAGC,oBAA0B;AACzCC,EAAAA,YAAY,GAAGC,6BAAyB,CAAA;;AAE5C;AACA,IAAIC,SAAS,GAAG,iBAAiB,CAAA;;AAEjC;AACA,IAAIC,SAAS,GAAGC,QAAQ,CAACC,SAAS;EAC9BC,WAAW,GAAGC,MAAM,CAACF,SAAS,CAAA;;AAElC;AACA,IAAIG,YAAY,GAAGL,SAAS,CAACM,QAAQ,CAAA;;AAErC;AACA,IAAIC,cAAc,GAAGJ,WAAW,CAACI,cAAc,CAAA;;AAE/C;AACA,IAAIC,gBAAgB,GAAGH,YAAY,CAACI,IAAI,CAACL,MAAM,CAAC,CAAA;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASM,aAAaA,CAACC,KAAK,EAAE;AAC5B,EAAA,IAAI,CAACd,YAAY,CAACc,KAAK,CAAC,IAAIlB,UAAU,CAACkB,KAAK,CAAC,IAAIZ,SAAS,EAAE;AAC1D,IAAA,OAAO,KAAK,CAAA;AACb,GAAA;AACD,EAAA,IAAIa,KAAK,GAAGjB,YAAY,CAACgB,KAAK,CAAC,CAAA;EAC/B,IAAIC,KAAK,KAAK,IAAI,EAAE;AAClB,IAAA,OAAO,IAAI,CAAA;AACZ,GAAA;AACD,EAAA,IAAIC,IAAI,GAAGN,cAAc,CAACE,IAAI,CAACG,KAAK,EAAE,aAAa,CAAC,IAAIA,KAAK,CAACE,WAAW,CAAA;AACzE,EAAA,OAAO,OAAOD,IAAI,IAAI,UAAU,IAAIA,IAAI,YAAYA,IAAI,IACtDR,YAAY,CAACI,IAAI,CAACI,IAAI,CAAC,IAAIL,gBAAgB,CAAA;AAC/C,CAAA;AAEAO,IAAAA,eAAc,GAAGL;;;;"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tdesign v1.0.4
|
|
3
|
+
* (c) 2023 tdesign
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
'use strict';
|
|
8
|
+
|
|
9
|
+
var isObject$1 = require('./dep-226175a4.js');
|
|
10
|
+
var _baseGetTag = require('./dep-4e0e0ffa.js');
|
|
11
|
+
var toNumber$1 = require('./dep-1663b0df.js');
|
|
12
|
+
|
|
13
|
+
var root = _baseGetTag._root;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
17
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
18
|
+
*
|
|
19
|
+
* @static
|
|
20
|
+
* @memberOf _
|
|
21
|
+
* @since 2.4.0
|
|
22
|
+
* @category Date
|
|
23
|
+
* @returns {number} Returns the timestamp.
|
|
24
|
+
* @example
|
|
25
|
+
*
|
|
26
|
+
* _.defer(function(stamp) {
|
|
27
|
+
* console.log(_.now() - stamp);
|
|
28
|
+
* }, _.now());
|
|
29
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
30
|
+
*/
|
|
31
|
+
var now$1 = function now() {
|
|
32
|
+
return root.Date.now();
|
|
33
|
+
};
|
|
34
|
+
var now_1 = now$1;
|
|
35
|
+
|
|
36
|
+
var isObject = isObject$1.isObject_1,
|
|
37
|
+
now = now_1,
|
|
38
|
+
toNumber = toNumber$1.toNumber_1;
|
|
39
|
+
|
|
40
|
+
/** Error message constants. */
|
|
41
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
42
|
+
|
|
43
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
44
|
+
var nativeMax = Math.max,
|
|
45
|
+
nativeMin = Math.min;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
49
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
50
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
51
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
52
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
53
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
54
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
55
|
+
* calls to the debounced function return the result of the last `func`
|
|
56
|
+
* invocation.
|
|
57
|
+
*
|
|
58
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
59
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
60
|
+
* is invoked more than once during the `wait` timeout.
|
|
61
|
+
*
|
|
62
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
63
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
64
|
+
*
|
|
65
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
66
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
67
|
+
*
|
|
68
|
+
* @static
|
|
69
|
+
* @memberOf _
|
|
70
|
+
* @since 0.1.0
|
|
71
|
+
* @category Function
|
|
72
|
+
* @param {Function} func The function to debounce.
|
|
73
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
74
|
+
* @param {Object} [options={}] The options object.
|
|
75
|
+
* @param {boolean} [options.leading=false]
|
|
76
|
+
* Specify invoking on the leading edge of the timeout.
|
|
77
|
+
* @param {number} [options.maxWait]
|
|
78
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
79
|
+
* @param {boolean} [options.trailing=true]
|
|
80
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
81
|
+
* @returns {Function} Returns the new debounced function.
|
|
82
|
+
* @example
|
|
83
|
+
*
|
|
84
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
85
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
86
|
+
*
|
|
87
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
88
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
89
|
+
* 'leading': true,
|
|
90
|
+
* 'trailing': false
|
|
91
|
+
* }));
|
|
92
|
+
*
|
|
93
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
94
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
95
|
+
* var source = new EventSource('/stream');
|
|
96
|
+
* jQuery(source).on('message', debounced);
|
|
97
|
+
*
|
|
98
|
+
* // Cancel the trailing debounced invocation.
|
|
99
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
100
|
+
*/
|
|
101
|
+
function debounce(func, wait, options) {
|
|
102
|
+
var lastArgs,
|
|
103
|
+
lastThis,
|
|
104
|
+
maxWait,
|
|
105
|
+
result,
|
|
106
|
+
timerId,
|
|
107
|
+
lastCallTime,
|
|
108
|
+
lastInvokeTime = 0,
|
|
109
|
+
leading = false,
|
|
110
|
+
maxing = false,
|
|
111
|
+
trailing = true;
|
|
112
|
+
if (typeof func != 'function') {
|
|
113
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
114
|
+
}
|
|
115
|
+
wait = toNumber(wait) || 0;
|
|
116
|
+
if (isObject(options)) {
|
|
117
|
+
leading = !!options.leading;
|
|
118
|
+
maxing = 'maxWait' in options;
|
|
119
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
120
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
121
|
+
}
|
|
122
|
+
function invokeFunc(time) {
|
|
123
|
+
var args = lastArgs,
|
|
124
|
+
thisArg = lastThis;
|
|
125
|
+
lastArgs = lastThis = undefined;
|
|
126
|
+
lastInvokeTime = time;
|
|
127
|
+
result = func.apply(thisArg, args);
|
|
128
|
+
return result;
|
|
129
|
+
}
|
|
130
|
+
function leadingEdge(time) {
|
|
131
|
+
// Reset any `maxWait` timer.
|
|
132
|
+
lastInvokeTime = time;
|
|
133
|
+
// Start the timer for the trailing edge.
|
|
134
|
+
timerId = setTimeout(timerExpired, wait);
|
|
135
|
+
// Invoke the leading edge.
|
|
136
|
+
return leading ? invokeFunc(time) : result;
|
|
137
|
+
}
|
|
138
|
+
function remainingWait(time) {
|
|
139
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
140
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
|
141
|
+
timeWaiting = wait - timeSinceLastCall;
|
|
142
|
+
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
|
143
|
+
}
|
|
144
|
+
function shouldInvoke(time) {
|
|
145
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
146
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
|
147
|
+
|
|
148
|
+
// Either this is the first call, activity has stopped and we're at the
|
|
149
|
+
// trailing edge, the system time has gone backwards and we're treating
|
|
150
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
151
|
+
return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
152
|
+
}
|
|
153
|
+
function timerExpired() {
|
|
154
|
+
var time = now();
|
|
155
|
+
if (shouldInvoke(time)) {
|
|
156
|
+
return trailingEdge(time);
|
|
157
|
+
}
|
|
158
|
+
// Restart the timer.
|
|
159
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
160
|
+
}
|
|
161
|
+
function trailingEdge(time) {
|
|
162
|
+
timerId = undefined;
|
|
163
|
+
|
|
164
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
|
165
|
+
// debounced at least once.
|
|
166
|
+
if (trailing && lastArgs) {
|
|
167
|
+
return invokeFunc(time);
|
|
168
|
+
}
|
|
169
|
+
lastArgs = lastThis = undefined;
|
|
170
|
+
return result;
|
|
171
|
+
}
|
|
172
|
+
function cancel() {
|
|
173
|
+
if (timerId !== undefined) {
|
|
174
|
+
clearTimeout(timerId);
|
|
175
|
+
}
|
|
176
|
+
lastInvokeTime = 0;
|
|
177
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
178
|
+
}
|
|
179
|
+
function flush() {
|
|
180
|
+
return timerId === undefined ? result : trailingEdge(now());
|
|
181
|
+
}
|
|
182
|
+
function debounced() {
|
|
183
|
+
var time = now(),
|
|
184
|
+
isInvoking = shouldInvoke(time);
|
|
185
|
+
lastArgs = arguments;
|
|
186
|
+
lastThis = this;
|
|
187
|
+
lastCallTime = time;
|
|
188
|
+
if (isInvoking) {
|
|
189
|
+
if (timerId === undefined) {
|
|
190
|
+
return leadingEdge(lastCallTime);
|
|
191
|
+
}
|
|
192
|
+
if (maxing) {
|
|
193
|
+
// Handle invocations in a tight loop.
|
|
194
|
+
clearTimeout(timerId);
|
|
195
|
+
timerId = setTimeout(timerExpired, wait);
|
|
196
|
+
return invokeFunc(lastCallTime);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
if (timerId === undefined) {
|
|
200
|
+
timerId = setTimeout(timerExpired, wait);
|
|
201
|
+
}
|
|
202
|
+
return result;
|
|
203
|
+
}
|
|
204
|
+
debounced.cancel = cancel;
|
|
205
|
+
debounced.flush = flush;
|
|
206
|
+
return debounced;
|
|
207
|
+
}
|
|
208
|
+
var debounce_1 = debounce;
|
|
209
|
+
|
|
210
|
+
exports.debounce_1 = debounce_1;
|
|
211
|
+
//# sourceMappingURL=dep-3d9b6af3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dep-3d9b6af3.js","sources":["../../node_modules/lodash/now.js","../../node_modules/lodash/debounce.js"],"sourcesContent":["var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n"],"names":["root","require$$0","now","Date","now_1","isObject","require$$1","toNumber","require$$2","FUNC_ERROR_TEXT","nativeMax","Math","max","nativeMin","min","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","undefined","apply","leadingEdge","setTimeout","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","clearTimeout","flush","debounced","isInvoking","arguments","debounce_1"],"mappings":";;;;;;;;;;;;AAAA,IAAIA,IAAI,GAAGC,iBAAkB,CAAA;;AAE7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIC,KAAG,GAAG,SAANA,GAAG,GAAc;AACnB,EAAA,OAAOF,IAAI,CAACG,IAAI,CAACD,GAAG,EAAE,CAAA;AACxB,CAAC,CAAA;AAED,IAAAE,KAAc,GAAGF,KAAG;;ACtBpB,IAAIG,QAAQ,GAAGJ,qBAAqB;AAChCC,EAAAA,GAAG,GAAGI,KAAgB;AACtBC,EAAAA,QAAQ,GAAGC,qBAAqB,CAAA;;AAEpC;AACA,IAAIC,eAAe,GAAG,qBAAqB,CAAA;;AAE3C;AACA,IAAIC,SAAS,GAAGC,IAAI,CAACC,GAAG;EACpBC,SAAS,GAAGF,IAAI,CAACG,GAAG,CAAA;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,QAAQ,CAACC,IAAI,EAAEC,IAAI,EAAEC,OAAO,EAAE;AACrC,EAAA,IAAIC,QAAQ;IACRC,QAAQ;IACRC,OAAO;IACPC,MAAM;IACNC,OAAO;IACPC,YAAY;AACZC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AAK,GAAGA,KAAK,CAAA;AACvB,EAAA,OAAOC,SAAS,CAAA;AAClB,CAAA;AAEAG,IAAAA,UAAc,GAAGpC;;;;"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tdesign v1.0.4
|
|
3
|
+
* (c) 2023 tdesign
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
'use strict';
|
|
8
|
+
|
|
9
|
+
var defineProperty = require('./dep-b3bd96b5.js');
|
|
10
|
+
var slicedToArray = require('./dep-2e54fd55.js');
|
|
11
|
+
var objectWithoutProperties = require('./dep-6eb660e1.js');
|
|
12
|
+
var React = require('react');
|
|
13
|
+
var classNames = require('classnames');
|
|
14
|
+
var hooks_useConfig = require('../hooks/useConfig.js');
|
|
15
|
+
var _util_forwardRefWithStatics = require('../_util/forwardRefWithStatics.js');
|
|
16
|
+
var _util_useCommonClassName = require('../_util/useCommonClassName.js');
|
|
17
|
+
var _util_composeRefs = require('../_util/composeRefs.js');
|
|
18
|
+
var avatar_AvatarContext = require('../avatar/AvatarContext.js');
|
|
19
|
+
var avatar_defaultProps = require('../avatar/defaultProps.js');
|
|
20
|
+
var hooks_useResizeObserver = require('../hooks/useResizeObserver.js');
|
|
21
|
+
var image_index = require('../image/index.js');
|
|
22
|
+
var _util_parseTNode = require('../_util/parseTNode.js');
|
|
23
|
+
|
|
24
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
25
|
+
|
|
26
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
27
|
+
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
28
|
+
|
|
29
|
+
var _excluded$1 = ["className", "cascading", "collapseAvatar", "max", "size", "children"];
|
|
30
|
+
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
31
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { defineProperty._defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
32
|
+
var AvatarGroup = function AvatarGroup(props) {
|
|
33
|
+
var _classNames;
|
|
34
|
+
var _useConfig = hooks_useConfig["default"](),
|
|
35
|
+
classPrefix = _useConfig.classPrefix;
|
|
36
|
+
var preClass = "".concat(classPrefix, "-avatar");
|
|
37
|
+
var className = props.className,
|
|
38
|
+
cascading = props.cascading,
|
|
39
|
+
collapseAvatar = props.collapseAvatar,
|
|
40
|
+
max = props.max,
|
|
41
|
+
size = props.size,
|
|
42
|
+
children = props.children,
|
|
43
|
+
avatarGroupProps = objectWithoutProperties._objectWithoutProperties(props, _excluded$1);
|
|
44
|
+
var childrenList = React__default["default"].Children.toArray(children);
|
|
45
|
+
var allChildrenList;
|
|
46
|
+
if (childrenList.length > 0) {
|
|
47
|
+
allChildrenList = childrenList.map(function (child, index) {
|
|
48
|
+
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread$1({
|
|
49
|
+
key: "avatar-group-item-".concat(index)
|
|
50
|
+
}, child.props));
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
var groupClass = classNames__default["default"]("".concat(preClass, "-group"), className, (_classNames = {}, defineProperty._defineProperty(_classNames, "".concat(preClass, "--offset-right"), cascading === "right-up"), defineProperty._defineProperty(_classNames, "".concat(preClass, "--offset-left"), cascading === "left-up"), _classNames));
|
|
54
|
+
var childrenCount = childrenList.length;
|
|
55
|
+
if (max && childrenCount > max) {
|
|
56
|
+
var showList = allChildrenList.slice(0, max);
|
|
57
|
+
var ellipsisAvatar = /* @__PURE__ */React__default["default"].createElement(Avatar, {
|
|
58
|
+
className: "".concat(preClass, "__collapse")
|
|
59
|
+
}, _util_parseTNode["default"](collapseAvatar) || "+".concat(childrenCount - max));
|
|
60
|
+
showList.push( /* @__PURE__ */React__default["default"].createElement(React.Fragment, {
|
|
61
|
+
key: "t-avatar__collapse"
|
|
62
|
+
}, ellipsisAvatar));
|
|
63
|
+
return /* @__PURE__ */React__default["default"].createElement(avatar_AvatarContext.AvatarContextProvider, {
|
|
64
|
+
size: size
|
|
65
|
+
}, /* @__PURE__ */React__default["default"].createElement("div", {
|
|
66
|
+
className: groupClass
|
|
67
|
+
}, showList));
|
|
68
|
+
}
|
|
69
|
+
return /* @__PURE__ */React__default["default"].createElement(avatar_AvatarContext.AvatarContextProvider, {
|
|
70
|
+
size: size
|
|
71
|
+
}, /* @__PURE__ */React__default["default"].createElement("div", _objectSpread$1({
|
|
72
|
+
className: groupClass
|
|
73
|
+
}, avatarGroupProps), allChildrenList));
|
|
74
|
+
};
|
|
75
|
+
AvatarGroup.displayName = "AvatarGroup";
|
|
76
|
+
AvatarGroup.defaultProps = avatar_defaultProps.avatarGroupDefaultProps;
|
|
77
|
+
|
|
78
|
+
var _excluded = ["alt", "hideOnLoadFailed", "icon", "image", "shape", "size", "onError", "children", "content", "style", "className"];
|
|
79
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
80
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { defineProperty._defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
81
|
+
var Avatar = _util_forwardRefWithStatics["default"](function (props, ref) {
|
|
82
|
+
var _classNames;
|
|
83
|
+
var alt = props.alt,
|
|
84
|
+
hideOnLoadFailed = props.hideOnLoadFailed,
|
|
85
|
+
icon = props.icon,
|
|
86
|
+
image = props.image,
|
|
87
|
+
shape = props.shape,
|
|
88
|
+
avatarSize = props.size,
|
|
89
|
+
onError = props.onError,
|
|
90
|
+
children = props.children,
|
|
91
|
+
content = props.content,
|
|
92
|
+
style = props.style,
|
|
93
|
+
className = props.className,
|
|
94
|
+
avatarProps = objectWithoutProperties._objectWithoutProperties(props, _excluded);
|
|
95
|
+
var groupSize = React.useContext(avatar_AvatarContext["default"]);
|
|
96
|
+
var _useConfig = hooks_useConfig["default"](),
|
|
97
|
+
classPrefix = _useConfig.classPrefix;
|
|
98
|
+
var _useState = React.useState(1),
|
|
99
|
+
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
100
|
+
scale = _useState2[0],
|
|
101
|
+
setScale = _useState2[1];
|
|
102
|
+
var _useState3 = React.useState(true),
|
|
103
|
+
_useState4 = slicedToArray._slicedToArray(_useState3, 2),
|
|
104
|
+
isImgExist = _useState4[0],
|
|
105
|
+
setIsImgExist = _useState4[1];
|
|
106
|
+
var avatarRef = React.useRef(null);
|
|
107
|
+
var avatarChildrenRef = React.useRef(null);
|
|
108
|
+
var size = avatarSize === void 0 ? groupSize : avatarSize;
|
|
109
|
+
var gap = 4;
|
|
110
|
+
var handleScale = function handleScale() {
|
|
111
|
+
if (!avatarChildrenRef.current || !avatarRef.current) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
var childrenWidth = avatarChildrenRef.current.offsetWidth;
|
|
115
|
+
var avatarWidth = avatarRef.current.offsetWidth;
|
|
116
|
+
if (childrenWidth !== 0 && avatarWidth !== 0) {
|
|
117
|
+
if (gap * 2 < avatarWidth) {
|
|
118
|
+
setScale(avatarWidth - gap * 2 < childrenWidth ? (avatarWidth - gap * 2) / childrenWidth : 1);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
hooks_useResizeObserver["default"](avatarChildrenRef.current, handleScale);
|
|
123
|
+
var handleImgLoadError = function handleImgLoadError(ctx) {
|
|
124
|
+
onError === null || onError === void 0 ? void 0 : onError(ctx);
|
|
125
|
+
!hideOnLoadFailed && setIsImgExist(false);
|
|
126
|
+
};
|
|
127
|
+
React.useEffect(function () {
|
|
128
|
+
setIsImgExist(true);
|
|
129
|
+
setScale(1);
|
|
130
|
+
}, [props.image]);
|
|
131
|
+
React.useEffect(function () {
|
|
132
|
+
handleScale();
|
|
133
|
+
}, []);
|
|
134
|
+
var _useCommonClassName = _util_useCommonClassName["default"](),
|
|
135
|
+
SIZE = _useCommonClassName.SIZE;
|
|
136
|
+
var numSizeStyle = size && !SIZE[size] ? {
|
|
137
|
+
width: size,
|
|
138
|
+
height: size,
|
|
139
|
+
fontSize: "".concat(Number.parseInt(size, 10) / 2, "px")
|
|
140
|
+
} : {};
|
|
141
|
+
var imageStyle = size && !SIZE[size] ? {
|
|
142
|
+
width: size,
|
|
143
|
+
height: size
|
|
144
|
+
} : {};
|
|
145
|
+
var preClass = "".concat(classPrefix, "-avatar");
|
|
146
|
+
var avatarClass = classNames__default["default"](preClass, className, (_classNames = {}, defineProperty._defineProperty(_classNames, SIZE[size], !!SIZE[size]), defineProperty._defineProperty(_classNames, "".concat(preClass, "--").concat(shape), !!shape), defineProperty._defineProperty(_classNames, "".concat(preClass, "__icon"), !!icon), _classNames));
|
|
147
|
+
var renderChildren;
|
|
148
|
+
if (image && isImgExist) {
|
|
149
|
+
renderChildren = /* @__PURE__ */React__default["default"].createElement(image_index.Image, _objectSpread({
|
|
150
|
+
src: image,
|
|
151
|
+
alt: alt,
|
|
152
|
+
style: imageStyle,
|
|
153
|
+
onError: handleImgLoadError
|
|
154
|
+
}, props.imageProps));
|
|
155
|
+
} else if (icon) {
|
|
156
|
+
renderChildren = icon;
|
|
157
|
+
} else {
|
|
158
|
+
var childrenStyle = {
|
|
159
|
+
transform: "scale(".concat(scale, ")")
|
|
160
|
+
};
|
|
161
|
+
renderChildren = /* @__PURE__ */React__default["default"].createElement("span", {
|
|
162
|
+
ref: _util_composeRefs["default"](ref, avatarChildrenRef),
|
|
163
|
+
style: childrenStyle
|
|
164
|
+
}, children || content);
|
|
165
|
+
}
|
|
166
|
+
return /* @__PURE__ */React__default["default"].createElement("div", _objectSpread({
|
|
167
|
+
ref: _util_composeRefs["default"](ref, avatarRef),
|
|
168
|
+
className: avatarClass,
|
|
169
|
+
style: _objectSpread(_objectSpread({}, numSizeStyle), style)
|
|
170
|
+
}, avatarProps), renderChildren);
|
|
171
|
+
}, {
|
|
172
|
+
Group: AvatarGroup
|
|
173
|
+
});
|
|
174
|
+
Avatar.displayName = "Avatar";
|
|
175
|
+
Avatar.defaultProps = avatar_defaultProps.avatarDefaultProps;
|
|
176
|
+
|
|
177
|
+
exports.Avatar = Avatar;
|
|
178
|
+
exports.AvatarGroup = AvatarGroup;
|
|
179
|
+
//# sourceMappingURL=dep-3fd6430b.js.map
|