@unicom-cloud/ui 0.8.99 → 0.8.101
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/Anchor.js +3 -1
- package/Badge.js +7 -6
- package/Copy.js +49 -2
- package/Details.js +13 -2
- package/Divider.js +3 -2
- package/Flex.js +22 -0
- package/Grid.js +1 -1
- package/LiquidFill.js +3 -2
- package/Loading.js +16 -3
- package/Marquee.js +3 -2
- package/QrCode.js +3 -2
- package/Space.js +3 -3
- package/Splitter.js +5 -5
- package/SuspenseFallbackTest.js +2 -4
- package/Tag.js +3 -2
- package/Tour.js +3 -2
- package/alert/index.js +61 -64
- package/anchor/index.js +5 -3
- package/back-top/index.js +32 -33
- package/badge/index.js +19 -18
- package/calendar/index.js +85 -84
- package/components/common/development/index.js +44 -29
- package/components/common/empty/index.js +35 -23
- package/components/common/flex/index.js +64 -0
- package/components/common/flex/interface.js +9 -0
- package/components/common/higher-order/with-speech-synthesis/index.js +79 -55
- package/components/common/space/index.js +71 -91
- package/components/common/suspense-fallback-test/index.js +16 -0
- package/components/common/utils/toArray.js +12 -0
- package/copy/index.js +83 -35
- package/details/index.js +102 -62
- package/divider/index.js +27 -21
- package/empty/index.js +13 -13
- package/flex/index.js +47 -0
- package/flex/interface.js +1 -0
- package/grid/{GridItem.js → Item.js} +15 -15
- package/grid/index.js +1 -1
- package/icon/interface.js +1 -0
- package/icon-hover/interface.js +1 -0
- package/index.js +610 -599
- package/input/Button.js +39 -34
- package/input/Textarea.js +108 -104
- package/liquid-fill/index.js +3 -2
- package/loading/index.js +72 -53
- package/loading/interface.js +1 -0
- package/marquee/index.js +3 -2
- package/modal/Modal.js +73 -74
- package/package.json +1 -1
- package/portal/interface.js +1 -0
- package/qr-code/index.js +3 -2
- package/segmented/index.js +113 -105
- package/space/index.js +41 -35
- package/speech-synthesis/interface.js +1 -0
- package/spin/index.js +75 -62
- package/splitter/Panel.js +39 -0
- package/splitter/SplitBar.js +157 -0
- package/splitter/Splitter.js +135 -0
- package/splitter/hooks/useEvent.js +12 -0
- package/splitter/hooks/useItems.js +26 -0
- package/splitter/hooks/useResizable.js +26 -0
- package/splitter/hooks/useResize.js +68 -0
- package/splitter/hooks/useSizes.js +60 -0
- package/splitter/index.js +6 -115
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +2 -11
- package/suspense-fallback-test/interface.js +1 -0
- package/table/Table.js +38 -38
- package/table/hook/useThResizable.js +72 -26
- package/table/tbody/Td.js +80 -77
- package/table/th-resizable/index.js +92 -35
- package/tag/index.js +42 -41
- package/tooltip/index.js +89 -82
- package/tour/index.js +5 -6
- package/trigger/index.js +67 -70
- package/types/common/development/index.d.ts +7 -1
- package/types/common/development/interface.d.ts +22 -0
- package/types/common/empty/index.d.ts +2 -1
- package/types/common/flex/index.d.ts +14 -0
- package/types/common/flex/interface.d.ts +62 -0
- package/types/common/higher-order/with-speech-synthesis/index.d.ts +6 -1
- package/types/common/higher-order/with-speech-synthesis/interface.d.ts +13 -0
- package/types/common/space/index.d.ts +4 -3
- package/types/common/space/interface.d.ts +10 -18
- package/types/common/suspense-fallback-test/index.d.ts +7 -0
- package/types/common/suspense-fallback-test/interface.d.ts +1 -0
- package/types/common/utils/PqbCSSTransition.d.ts +1 -1
- package/types/common/utils/toArray.d.ts +13 -0
- package/types/pc/affix/interface.d.ts +0 -2
- package/types/pc/alert/index.d.ts +3 -2
- package/types/pc/alert/interface.d.ts +7 -1
- package/types/pc/anchor/index.d.ts +2 -1
- package/types/pc/anchor/interface.d.ts +0 -2
- package/types/pc/auto-complete/interface.d.ts +0 -6
- package/types/pc/avatar/interface.d.ts +0 -4
- package/types/pc/badge/Count.d.ts +1 -1
- package/types/pc/breadcrumb/Item.d.ts +1 -1
- package/types/pc/breadcrumb/interface.d.ts +0 -3
- package/types/pc/calendar/Month.d.ts +1 -1
- package/types/pc/calendar/WeekList.d.ts +1 -1
- package/types/pc/calendar/Year.d.ts +1 -1
- package/types/pc/calendar/header/Panel.d.ts +1 -1
- package/types/pc/calendar/header/index.d.ts +1 -1
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/calendar/interface.d.ts +2 -1
- package/types/pc/carousel/interface.d.ts +2 -6
- package/types/pc/cascader/interface.d.ts +7 -19
- package/types/pc/cascader/panel/List.d.ts +1 -1
- package/types/pc/cascader/panel/Option.d.ts +1 -1
- package/types/pc/cascader/panel/Search.d.ts +1 -1
- package/types/pc/checkbox/Group.d.ts +2 -2
- package/types/pc/checkbox/GroupBlock.d.ts +1 -1
- package/types/pc/checkbox/IconCheck.d.ts +1 -1
- package/types/pc/checkbox/interface.d.ts +0 -1
- package/types/pc/collapse/interface.d.ts +0 -2
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/color-picker/interface.d.ts +0 -2
- package/types/pc/config-provider/ConfigProvider.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +17 -17
- package/types/pc/copy/index.d.ts +1 -1
- package/types/pc/copy/interface.d.ts +2 -1
- package/types/pc/date-picker/interface.d.ts +0 -17
- package/types/pc/date-picker/panel/Body.d.ts +1 -1
- package/types/pc/date-picker/panel/Footer.d.ts +1 -1
- package/types/pc/date-picker/panel/Header.d.ts +1 -1
- package/types/pc/date-picker/panel/WeekList.d.ts +1 -1
- package/types/pc/date-picker/panel/date/index.d.ts +1 -1
- package/types/pc/date-picker/panel/month/index.d.ts +1 -1
- package/types/pc/date-picker/panel/quarter/index.d.ts +1 -1
- package/types/pc/date-picker/panel/range/index.d.ts +1 -1
- package/types/pc/date-picker/panel/week/index.d.ts +1 -1
- package/types/pc/date-picker/panel/year/index.d.ts +1 -1
- package/types/pc/descriptions/index.d.ts +1 -1
- package/types/pc/descriptions/interface.d.ts +0 -1
- package/types/pc/details/index.d.ts +3 -2
- package/types/pc/details/interface.d.ts +16 -0
- package/types/pc/development/index.d.ts +2 -1
- package/types/pc/development/interface.d.ts +15 -0
- package/types/pc/divider/index.d.ts +7 -2
- package/types/pc/draggable/Item.d.ts +1 -1
- package/types/pc/draggable/index.d.ts +1 -1
- package/types/pc/drawer/interface.d.ts +0 -7
- package/types/pc/dropdown/interface.d.ts +0 -1
- package/types/pc/flex/index.d.ts +9 -0
- package/types/pc/flex/interface.d.ts +16 -0
- package/types/pc/form/Control.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +1 -1
- package/types/pc/form/IconSymbol.d.ts +1 -1
- package/types/pc/form/interface.d.ts +9 -22
- package/types/pc/form/util.d.ts +1 -1
- package/types/pc/grid/index.d.ts +3 -3
- package/types/pc/grid/interface.d.ts +1 -6
- package/types/pc/icon/addFromIconFontCn.d.ts +1 -7
- package/types/pc/icon/index.d.ts +2 -7
- package/types/pc/icon/interface.d.ts +13 -0
- package/types/pc/icon-hover/index.d.ts +2 -8
- package/types/pc/icon-hover/interface.d.ts +8 -0
- package/types/pc/image/ImageFooter.d.ts +1 -1
- package/types/pc/image/ImagePreviewArrow.d.ts +1 -1
- package/types/pc/image/TriggerForToolbar.d.ts +1 -1
- package/types/pc/image/interface.d.ts +0 -13
- package/types/pc/index.d.ts +63 -50
- package/types/pc/input/Textarea.d.ts +2 -6
- package/types/pc/input/interface.d.ts +5 -13
- package/types/pc/input-number/interface.d.ts +0 -4
- package/types/pc/input-tag/interface.d.ts +0 -13
- package/types/pc/layout/interface.d.ts +0 -1
- package/types/pc/link/interface.d.ts +0 -1
- package/types/pc/list/interface.d.ts +0 -4
- package/types/pc/loading/index.d.ts +4 -3
- package/types/pc/loading/interface.d.ts +6 -0
- package/types/pc/menu/Indent.d.ts +1 -1
- package/types/pc/menu/OverflowWrap.d.ts +1 -1
- package/types/pc/menu/interface.d.ts +0 -8
- package/types/pc/menu/sub-menu/Inline.d.ts +1 -1
- package/types/pc/menu/sub-menu/Pop.d.ts +1 -1
- package/types/pc/message/interface.d.ts +0 -2
- package/types/pc/modal/interface.d.ts +0 -5
- package/types/pc/notification/interface.d.ts +0 -1
- package/types/pc/overflow-ellipsis/OverflowItem.d.ts +1 -1
- package/types/pc/overflow-ellipsis/index.d.ts +1 -1
- package/types/pc/pagination/PageItem.d.ts +3 -3
- package/types/pc/pagination/PageJumper.d.ts +1 -1
- package/types/pc/pagination/PageOption.d.ts +1 -1
- package/types/pc/pagination/interface.d.ts +0 -2
- package/types/pc/popconfirm/interface.d.ts +8 -10
- package/types/pc/popover/interface.d.ts +0 -1
- package/types/pc/portal/Portal.d.ts +2 -6
- package/types/pc/portal/index.d.ts +2 -9
- package/types/pc/portal/interface.d.ts +14 -0
- package/types/pc/progress/CircleProgress.d.ts +1 -1
- package/types/pc/progress/LineProgess.d.ts +1 -1
- package/types/pc/progress/StepProgress.d.ts +1 -1
- package/types/pc/progress/interface.d.ts +0 -3
- package/types/pc/radio/Group.d.ts +2 -2
- package/types/pc/radio/GroupBlock.d.ts +1 -1
- package/types/pc/radio/Radio.d.ts +1 -1
- package/types/pc/resize-box/ResizeTrigger.d.ts +1 -1
- package/types/pc/resize-box/interface.d.ts +1 -7
- package/types/pc/result/403.d.ts +1 -1
- package/types/pc/result/404.d.ts +1 -1
- package/types/pc/result/500.d.ts +1 -1
- package/types/pc/segmented/interface.d.ts +6 -6
- package/types/pc/select/interface.d.ts +0 -12
- package/types/pc/select-view/interface.d.ts +0 -7
- package/types/pc/skeleton/Image.d.ts +1 -1
- package/types/pc/skeleton/Text.d.ts +2 -1
- package/types/pc/slider/Button.d.ts +1 -1
- package/types/pc/slider/Input.d.ts +1 -1
- package/types/pc/slider/Tick.d.ts +1 -1
- package/types/pc/slider/interface.d.ts +0 -4
- package/types/pc/space/index.d.ts +7 -5
- package/types/pc/speech-synthesis/index.d.ts +3 -1
- package/types/pc/speech-synthesis/interface.d.ts +7 -0
- package/types/pc/spin/DotLoading.d.ts +1 -1
- package/types/pc/spin/interface.d.ts +4 -1
- package/types/pc/splitter/Panel.d.ts +8 -0
- package/types/pc/splitter/SplitBar.d.ts +21 -0
- package/types/pc/splitter/Splitter.d.ts +4 -0
- package/types/pc/splitter/hooks/useEvent.d.ts +3 -0
- package/types/pc/splitter/hooks/useItems.d.ts +10 -0
- package/types/pc/splitter/hooks/useResizable.d.ts +8 -0
- package/types/pc/splitter/hooks/useResize.d.ts +4 -0
- package/types/pc/splitter/hooks/useSizes.d.ts +5 -0
- package/types/pc/splitter/index.d.ts +8 -3
- package/types/pc/splitter/interface.d.ts +181 -38
- package/types/pc/statistic/interface.d.ts +0 -4
- package/types/pc/steps/interface.d.ts +0 -3
- package/types/pc/suspense-fallback-test/index.d.ts +2 -3
- package/types/pc/suspense-fallback-test/interface.d.ts +2 -0
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/hook/useThResizable.d.ts +2 -2
- package/types/pc/table/interface.d.ts +4 -15
- package/types/pc/table/summary/Cell.d.ts +1 -1
- package/types/pc/table/summary/Row.d.ts +1 -1
- package/types/pc/table/tbody/Td.d.ts +1 -1
- package/types/pc/table/tbody/index.d.ts +1 -1
- package/types/pc/table/tfoot/index.d.ts +1 -1
- package/types/pc/table/th-resizable/index.d.ts +1 -1
- package/types/pc/table/thead/Column.d.ts +1 -1
- package/types/pc/table/thead/index.d.ts +1 -1
- package/types/pc/tabs/TabContent.d.ts +1 -1
- package/types/pc/tabs/interface.d.ts +0 -7
- package/types/pc/tabs/tab-header/DropdownIcon.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabInk.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
- package/types/pc/tag/index.d.ts +2 -0
- package/types/pc/tag/interface.d.ts +0 -1
- package/types/pc/time-picker/Picker.d.ts +1 -1
- package/types/pc/time-picker/RangePicker.d.ts +1 -1
- package/types/pc/time-picker/TimeColumn.d.ts +1 -1
- package/types/pc/time-picker/TimePicker.d.ts +1 -1
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/time-picker/interface.d.ts +0 -7
- package/types/pc/tooltip/interface.d.ts +4 -1
- package/types/pc/transfer/Item.d.ts +1 -1
- package/types/pc/transfer/List.d.ts +1 -1
- package/types/pc/transfer/interface.d.ts +2 -9
- package/types/pc/tree/Animation.d.ts +1 -1
- package/types/pc/tree/interface.d.ts +2 -8
- package/types/pc/tree-select/interface.d.ts +0 -8
- package/types/pc/trigger/interface.d.ts +0 -5
- package/types/pc/typography/EditContent.d.ts +2 -1
- package/types/pc/typography/Operations.d.ts +1 -1
- package/types/pc/typography/interface.d.ts +45 -30
- package/types/pc/upload/interface.d.ts +6 -11
- package/types/pc/upload/list/index.d.ts +1 -1
- package/types/pc/utils/index.d.ts +1 -0
- package/types/pc/utils/names.d.ts +6 -0
- package/types/pc/utils/toArray.d.ts +3 -0
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/verification-code/interface.d.ts +0 -2
- package/types/pc/virtual-list/VirtualList.d.ts +2 -38
- package/types/pc/virtual-list/index.d.ts +2 -1
- package/types/pc/virtual-list/interface.d.ts +56 -0
- package/types/pc/watermark/Watermark.d.ts +1 -1
- package/types/pc/watermark/interface.d.ts +0 -2
- package/typography/Base.js +73 -73
- package/typography/EditContent.js +43 -33
- package/typography/Ellipsis.js +117 -184
- package/typography/Operations.js +97 -49
- package/typography/useCssEllipsis.js +7 -6
- package/utils/index.js +117 -115
- package/utils/names.js +4 -0
- package/utils/toArray.js +5 -0
- package/version/index.js +1 -1
- package/virtual-list/interface.js +1 -0
- package/components/common/space/toArray.js +0 -11
- package/loading/style/index.module.less.js +0 -4
- package/types/common/space/toArray.d.ts +0 -3
- package/types/pc/suspense-fallback-test/style/index.d.ts +0 -1
- /package/{suspense-fallback-test/style/index.less.js → development/interface.js} +0 -0
- /package/types/pc/grid/{GridItem.d.ts → Item.d.ts} +0 -0
package/Anchor.js
CHANGED
package/Badge.js
CHANGED
|
@@ -46,17 +46,18 @@ import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
|
46
46
|
import "@unicom-cloud/utils/file/saveAs";
|
|
47
47
|
import "@unicom-cloud/utils/screenfull";
|
|
48
48
|
import "@unicom-cloud/utils/constant/ui.js";
|
|
49
|
+
import "react-is";
|
|
49
50
|
import "@unicom-cloud/utils/tree";
|
|
50
51
|
import "@unicom-cloud/utils/is";
|
|
51
52
|
import "uuid";
|
|
52
53
|
import "./dist/validate/src/index.js";
|
|
53
54
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
54
|
-
import { default as
|
|
55
|
+
import { default as mo } from "./badge/Count.js";
|
|
55
56
|
import "./config-provider/context.js";
|
|
56
|
-
import { BADGE_COLORS as
|
|
57
|
+
import { BADGE_COLORS as io, BADGE_STATUS as eo, default as ao } from "./badge/index.js";
|
|
57
58
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
io as BADGE_COLORS,
|
|
60
|
+
eo as BADGE_STATUS,
|
|
61
|
+
mo as BadgeCount,
|
|
62
|
+
ao as default
|
|
62
63
|
};
|
package/Copy.js
CHANGED
|
@@ -5,11 +5,58 @@ import "react";
|
|
|
5
5
|
import "./config-provider/ConfigProvider.js";
|
|
6
6
|
import "./components/common/hooks/useKeyboardEvent.js";
|
|
7
7
|
import "./tooltip/index.js";
|
|
8
|
+
import "@unicom-cloud/utils/case-name";
|
|
8
9
|
import "@unicom-cloud/utils/class-name";
|
|
10
|
+
import "./dist/tinycolor/chunk/BOzCVdr0.js";
|
|
11
|
+
import "@unicom-cloud/utils/constant/ui";
|
|
12
|
+
import "./utils/contextHolder.js";
|
|
13
|
+
import "@unicom-cloud/utils/dayjs";
|
|
9
14
|
import "@unicom-cloud/utils/clipboard-copy";
|
|
15
|
+
import "./components/common/utils/dayjs.js";
|
|
16
|
+
import "./components/common/utils/dom.js";
|
|
17
|
+
import "@unicom-cloud/utils/file/fileToURL";
|
|
18
|
+
import "lodash/escapeRegExp";
|
|
19
|
+
import "lodash/isArray";
|
|
20
|
+
import "lodash/isNumber";
|
|
21
|
+
import "lodash/isString";
|
|
22
|
+
import "lodash/isFunction";
|
|
23
|
+
import "lodash/throttle";
|
|
24
|
+
import "./components/common/utils/is.js";
|
|
25
|
+
import "lodash/camelCase";
|
|
26
|
+
import "lodash/capitalize";
|
|
27
|
+
import "lodash/cloneDeep";
|
|
28
|
+
import "lodash/debounce";
|
|
29
|
+
import "lodash/get";
|
|
30
|
+
import "lodash/has";
|
|
31
|
+
import "lodash/kebabCase";
|
|
32
|
+
import "lodash/merge";
|
|
33
|
+
import "lodash/mergeWith";
|
|
34
|
+
import "lodash/set";
|
|
35
|
+
import "lodash/setWith";
|
|
36
|
+
import "lodash/snakeCase";
|
|
37
|
+
import "lodash/startCase";
|
|
38
|
+
import "lodash/uniq";
|
|
39
|
+
import "lodash/upperFirst";
|
|
40
|
+
import "@unicom-cloud/utils/math";
|
|
10
41
|
import "./components/common/utils/mergedToString.js";
|
|
42
|
+
import "./dist/react-transition-group/src/CSSTransition.js";
|
|
43
|
+
import "./dist/react-transition-group/src/ReplaceTransition.js";
|
|
44
|
+
import "./dist/react-transition-group/src/SwitchTransition.js";
|
|
45
|
+
import "./dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
46
|
+
import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
47
|
+
import "./components/common/utils/reactDOM.js";
|
|
48
|
+
import "@unicom-cloud/utils/file/saveAs";
|
|
49
|
+
import "@unicom-cloud/utils/screenfull";
|
|
50
|
+
import "@unicom-cloud/utils/constant/ui.js";
|
|
51
|
+
import "lodash/isPlainObject";
|
|
52
|
+
import "react-is";
|
|
53
|
+
import "@unicom-cloud/utils/tree";
|
|
54
|
+
import "@unicom-cloud/utils/is";
|
|
55
|
+
import "uuid";
|
|
56
|
+
import "./dist/validate/src/index.js";
|
|
57
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
11
58
|
import "./config-provider/context.js";
|
|
12
|
-
import { default as
|
|
59
|
+
import { default as eo } from "./copy/index.js";
|
|
13
60
|
export {
|
|
14
|
-
|
|
61
|
+
eo as default
|
|
15
62
|
};
|
package/Details.js
CHANGED
|
@@ -6,10 +6,21 @@ import "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
|
6
6
|
import "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
7
7
|
import "react";
|
|
8
8
|
import "./config-provider/ConfigProvider.js";
|
|
9
|
+
import "lodash/isEqualWith";
|
|
10
|
+
import "./components/common/utils/is.js";
|
|
11
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
12
|
+
import "lodash/isNumber";
|
|
13
|
+
import "lodash/merge";
|
|
14
|
+
import "./components/common/utils/dom.js";
|
|
15
|
+
import "./components/common/hooks/useIntersectionObserver.js";
|
|
9
16
|
import "./components/common/hooks/useMergeProps.js";
|
|
17
|
+
import "./components/common/utils/reactDOM.js";
|
|
18
|
+
import "@unicom-cloud/utils/constant";
|
|
19
|
+
import "./components/common/hooks/useUpdateEffect.js";
|
|
20
|
+
import "lodash/debounce";
|
|
10
21
|
import "@unicom-cloud/utils/class-name";
|
|
11
22
|
import "./config-provider/context.js";
|
|
12
|
-
import { default as
|
|
23
|
+
import { default as y } from "./details/index.js";
|
|
13
24
|
export {
|
|
14
|
-
|
|
25
|
+
y as default
|
|
15
26
|
};
|
package/Divider.js
CHANGED
|
@@ -4,7 +4,8 @@ import "./config-provider/ConfigProvider.js";
|
|
|
4
4
|
import "./components/common/hooks/useMergeProps.js";
|
|
5
5
|
import "@unicom-cloud/utils/class-name";
|
|
6
6
|
import "./config-provider/context.js";
|
|
7
|
-
import { default as
|
|
7
|
+
import { DividerVertical as d, default as f } from "./divider/index.js";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
d as DividerVertical,
|
|
10
|
+
f as default
|
|
10
11
|
};
|
package/Flex.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "./components/common/flex/index.js";
|
|
4
|
+
import "./config-provider/ConfigProvider.js";
|
|
5
|
+
import "lodash/isEqualWith";
|
|
6
|
+
import "./components/common/utils/is.js";
|
|
7
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
8
|
+
import "lodash/isNumber";
|
|
9
|
+
import "lodash/merge";
|
|
10
|
+
import "./components/common/utils/dom.js";
|
|
11
|
+
import "./components/common/hooks/useIntersectionObserver.js";
|
|
12
|
+
import "./components/common/hooks/useMergeProps.js";
|
|
13
|
+
import "./components/common/utils/reactDOM.js";
|
|
14
|
+
import "@unicom-cloud/utils/constant";
|
|
15
|
+
import "lodash/debounce";
|
|
16
|
+
import "@unicom-cloud/utils/class-name";
|
|
17
|
+
import "./config-provider/context.js";
|
|
18
|
+
import { FlexVertical as j, default as k } from "./flex/index.js";
|
|
19
|
+
export {
|
|
20
|
+
j as FlexVertical,
|
|
21
|
+
k as default
|
|
22
|
+
};
|
package/Grid.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as a, default as e } from "./grid/Col.js";
|
|
2
2
|
import "./grid/Grid.js";
|
|
3
|
-
import { default as d } from "./grid/
|
|
3
|
+
import { default as d } from "./grid/Item.js";
|
|
4
4
|
import { default as m, default as u } from "./grid/Row.js";
|
|
5
5
|
import { default as s } from "./grid/index.js";
|
|
6
6
|
export {
|
package/LiquidFill.js
CHANGED
|
@@ -50,12 +50,13 @@ import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
|
50
50
|
import "@unicom-cloud/utils/file/saveAs";
|
|
51
51
|
import "@unicom-cloud/utils/screenfull";
|
|
52
52
|
import "@unicom-cloud/utils/constant/ui.js";
|
|
53
|
+
import "react-is";
|
|
53
54
|
import "@unicom-cloud/utils/tree";
|
|
54
55
|
import "@unicom-cloud/utils/is";
|
|
55
56
|
import "uuid";
|
|
56
57
|
import "./dist/validate/src/index.js";
|
|
57
58
|
import "./config-provider/context.js";
|
|
58
|
-
import { default as
|
|
59
|
+
import { default as eo } from "./liquid-fill/index.js";
|
|
59
60
|
export {
|
|
60
|
-
|
|
61
|
+
eo as default
|
|
61
62
|
};
|
package/Loading.js
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "./loading/style/index.module.less.js";
|
|
3
2
|
import "react";
|
|
4
|
-
import
|
|
3
|
+
import "./config-provider/ConfigProvider.js";
|
|
4
|
+
import "lodash/isEqualWith";
|
|
5
|
+
import "./components/common/utils/is.js";
|
|
6
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
7
|
+
import "lodash/isNumber";
|
|
8
|
+
import "lodash/merge";
|
|
9
|
+
import "./components/common/utils/dom.js";
|
|
10
|
+
import "./components/common/hooks/useIntersectionObserver.js";
|
|
11
|
+
import "./components/common/hooks/useMergeProps.js";
|
|
12
|
+
import "./components/common/utils/reactDOM.js";
|
|
13
|
+
import "@unicom-cloud/utils/constant";
|
|
14
|
+
import "lodash/debounce";
|
|
15
|
+
import "@unicom-cloud/utils/class-name";
|
|
16
|
+
import "./config-provider/context.js";
|
|
17
|
+
import { default as k } from "./loading/index.js";
|
|
5
18
|
export {
|
|
6
|
-
|
|
19
|
+
k as default
|
|
7
20
|
};
|
package/Marquee.js
CHANGED
|
@@ -50,12 +50,13 @@ import "./components/common/utils/resizeObserver.js";
|
|
|
50
50
|
import "@unicom-cloud/utils/file/saveAs";
|
|
51
51
|
import "@unicom-cloud/utils/screenfull";
|
|
52
52
|
import "@unicom-cloud/utils/constant/ui.js";
|
|
53
|
+
import "react-is";
|
|
53
54
|
import "@unicom-cloud/utils/tree";
|
|
54
55
|
import "@unicom-cloud/utils/is";
|
|
55
56
|
import "uuid";
|
|
56
57
|
import "./dist/validate/src/index.js";
|
|
57
58
|
import "./config-provider/context.js";
|
|
58
|
-
import { default as
|
|
59
|
+
import { default as eo } from "./marquee/index.js";
|
|
59
60
|
export {
|
|
60
|
-
|
|
61
|
+
eo as default
|
|
61
62
|
};
|
package/QrCode.js
CHANGED
|
@@ -50,12 +50,13 @@ import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
|
50
50
|
import "@unicom-cloud/utils/file/saveAs";
|
|
51
51
|
import "@unicom-cloud/utils/screenfull";
|
|
52
52
|
import "@unicom-cloud/utils/constant/ui.js";
|
|
53
|
+
import "react-is";
|
|
53
54
|
import "@unicom-cloud/utils/tree";
|
|
54
55
|
import "@unicom-cloud/utils/is";
|
|
55
56
|
import "uuid";
|
|
56
57
|
import "./dist/validate/src/index.js";
|
|
57
58
|
import "./config-provider/context.js";
|
|
58
|
-
import { default as
|
|
59
|
+
import { default as eo } from "./qr-code/index.js";
|
|
59
60
|
export {
|
|
60
|
-
|
|
61
|
+
eo as default
|
|
61
62
|
};
|
package/Space.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import
|
|
3
|
+
import "./components/common/space/index.js";
|
|
4
4
|
import "./config-provider/ConfigProvider.js";
|
|
5
5
|
import "lodash/isEqualWith";
|
|
6
6
|
import "./components/common/utils/is.js";
|
|
@@ -15,8 +15,8 @@ import "@unicom-cloud/utils/constant";
|
|
|
15
15
|
import "lodash/debounce";
|
|
16
16
|
import "@unicom-cloud/utils/class-name";
|
|
17
17
|
import "./config-provider/context.js";
|
|
18
|
-
import { default as k } from "./space/index.js";
|
|
18
|
+
import { SpaceVertical as j, default as k } from "./space/index.js";
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
j as SpaceVertical,
|
|
21
21
|
k as default
|
|
22
22
|
};
|
package/Splitter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
1
|
+
import { default as o } from "./splitter/Panel.js";
|
|
2
|
+
import "./splitter/Splitter.js";
|
|
3
|
+
import { default as f } from "./splitter/index.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
o as SplitterPanel,
|
|
6
|
+
f as default
|
|
7
7
|
};
|
package/SuspenseFallbackTest.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import "./suspense-fallback-test/
|
|
2
|
-
import "react";
|
|
3
|
-
import { default as p } from "./suspense-fallback-test/index.js";
|
|
1
|
+
import { default as o } from "./components/common/suspense-fallback-test/index.js";
|
|
4
2
|
export {
|
|
5
|
-
|
|
3
|
+
o as default
|
|
6
4
|
};
|
package/Tag.js
CHANGED
|
@@ -11,7 +11,8 @@ import "./popconfirm/index.js";
|
|
|
11
11
|
import "@unicom-cloud/utils/class-name";
|
|
12
12
|
import "./components/common/utils/omit.js";
|
|
13
13
|
import "./config-provider/context.js";
|
|
14
|
-
import { default as
|
|
14
|
+
import { TAG_COLORS as C, default as G } from "./tag/index.js";
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
C as TAG_COLORS,
|
|
17
|
+
G as default
|
|
17
18
|
};
|
package/Tour.js
CHANGED
|
@@ -56,12 +56,13 @@ import "./components/common/utils/resizeObserver.js";
|
|
|
56
56
|
import "@unicom-cloud/utils/file/saveAs";
|
|
57
57
|
import "@unicom-cloud/utils/screenfull";
|
|
58
58
|
import "@unicom-cloud/utils/constant/ui.js";
|
|
59
|
+
import "react-is";
|
|
59
60
|
import "@unicom-cloud/utils/tree";
|
|
60
61
|
import "@unicom-cloud/utils/is";
|
|
61
62
|
import "uuid";
|
|
62
63
|
import "./dist/validate/src/index.js";
|
|
63
64
|
import "./config-provider/context.js";
|
|
64
|
-
import { default as
|
|
65
|
+
import { default as bo } from "./tour/index.js";
|
|
65
66
|
export {
|
|
66
|
-
|
|
67
|
+
bo as default
|
|
67
68
|
};
|
package/alert/index.js
CHANGED
|
@@ -1,93 +1,91 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import k from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
3
|
+
import M from "@unicom-cloud/icons/IconUiClose";
|
|
4
|
+
import q from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
5
|
+
import z from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
6
|
+
import i from "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
7
|
+
import { forwardRef as B, useContext as O, useState as R } from "react";
|
|
8
8
|
import "../config-provider/ConfigProvider.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { PqbCSSTransition as
|
|
12
|
-
import
|
|
13
|
-
const
|
|
9
|
+
import V from "../components/common/hooks/useMergeProps.js";
|
|
10
|
+
import D from "@unicom-cloud/utils/class-name";
|
|
11
|
+
import { PqbCSSTransition as G } from "../components/common/utils/PqbCSSTransition.js";
|
|
12
|
+
import H from "../config-provider/context.js";
|
|
13
|
+
const J = {
|
|
14
14
|
showIcon: !0,
|
|
15
15
|
type: "default"
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
}, K = {
|
|
17
|
+
default: /* @__PURE__ */ o(i, {}),
|
|
18
|
+
info: /* @__PURE__ */ o(i, {}),
|
|
19
|
+
success: /* @__PURE__ */ o(k, {}),
|
|
20
|
+
warning: /* @__PURE__ */ o(z, {}),
|
|
21
|
+
error: /* @__PURE__ */ o(q, {})
|
|
22
|
+
}, L = (a, m) => {
|
|
23
|
+
const { getPrefixCls: p, componentConfig: f, rtl: d } = O(H), n = V(
|
|
24
|
+
a,
|
|
25
|
+
J,
|
|
22
26
|
f?.Alert
|
|
23
27
|
), {
|
|
24
28
|
style: u,
|
|
25
29
|
className: C,
|
|
26
|
-
action:
|
|
27
|
-
type:
|
|
30
|
+
action: l,
|
|
31
|
+
type: s = "default",
|
|
28
32
|
title: t,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
children: h,
|
|
34
|
+
content: N,
|
|
35
|
+
icon: b,
|
|
36
|
+
showIcon: $,
|
|
37
|
+
closable: I,
|
|
38
|
+
closeable: x,
|
|
39
|
+
afterClose: w,
|
|
40
|
+
onClose: v,
|
|
41
|
+
closeElement: y = /* @__PURE__ */ o(M, {}),
|
|
42
|
+
banner: P,
|
|
38
43
|
...g
|
|
39
|
-
} =
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
error: /* @__PURE__ */ e(R, {})
|
|
45
|
-
}[i];
|
|
46
|
-
function E(S) {
|
|
47
|
-
U(!1), I?.(S);
|
|
48
|
-
}
|
|
49
|
-
const F = O(
|
|
50
|
-
o,
|
|
51
|
-
`${o}-${i}`,
|
|
44
|
+
} = n, r = h ?? N, e = p?.("alert") || "alert", [U, A] = R(!0), E = (j) => {
|
|
45
|
+
A(!1), v?.(j);
|
|
46
|
+
}, F = "closeable" in n ? x : I, S = D(
|
|
47
|
+
e,
|
|
48
|
+
`${e}-${s}`,
|
|
52
49
|
{
|
|
53
|
-
[`${
|
|
54
|
-
[`${
|
|
55
|
-
[`${
|
|
50
|
+
[`${e}-with-title`]: !!t,
|
|
51
|
+
[`${e}-banner`]: P,
|
|
52
|
+
[`${e}-rtl`]: d
|
|
56
53
|
},
|
|
57
54
|
C
|
|
58
|
-
),
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
|
|
55
|
+
), T = b ?? K[s];
|
|
56
|
+
return /* @__PURE__ */ o(
|
|
57
|
+
G,
|
|
61
58
|
{
|
|
62
|
-
in:
|
|
59
|
+
in: U,
|
|
63
60
|
timeout: 300,
|
|
64
61
|
classNames: "zoomInTop",
|
|
65
62
|
unmountOnExit: !0,
|
|
66
63
|
onExited: () => {
|
|
67
|
-
|
|
64
|
+
w?.();
|
|
68
65
|
},
|
|
69
66
|
children: /* @__PURE__ */ c(
|
|
70
67
|
"div",
|
|
71
68
|
{
|
|
72
|
-
ref:
|
|
69
|
+
ref: m,
|
|
73
70
|
style: u,
|
|
74
|
-
className:
|
|
71
|
+
className: S,
|
|
75
72
|
role: "alert",
|
|
76
73
|
...g,
|
|
77
74
|
children: [
|
|
78
|
-
|
|
79
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
80
|
-
t && /* @__PURE__ */
|
|
81
|
-
r && /* @__PURE__ */
|
|
75
|
+
$ && /* @__PURE__ */ o("div", { className: `${e}-icon-wrapper`, children: T }),
|
|
76
|
+
/* @__PURE__ */ c("div", { className: `${e}-content-wrapper`, children: [
|
|
77
|
+
t && /* @__PURE__ */ o("div", { className: `${e}-title`, children: t }),
|
|
78
|
+
r && /* @__PURE__ */ o("div", { className: `${e}-content`, children: r })
|
|
82
79
|
] }),
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
l && /* @__PURE__ */ o("div", { className: `${e}-action`, children: l }),
|
|
81
|
+
F && /* @__PURE__ */ o(
|
|
85
82
|
"button",
|
|
86
83
|
{
|
|
87
84
|
type: "button",
|
|
88
85
|
onClick: E,
|
|
89
|
-
className: `${
|
|
90
|
-
|
|
86
|
+
className: `${e}-close-btn`,
|
|
87
|
+
"aria-label": "Close alert",
|
|
88
|
+
children: y
|
|
91
89
|
}
|
|
92
90
|
)
|
|
93
91
|
]
|
|
@@ -95,9 +93,8 @@ function G(m, n) {
|
|
|
95
93
|
)
|
|
96
94
|
}
|
|
97
95
|
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
J.displayName = "Alert";
|
|
96
|
+
}, Q = B(L);
|
|
97
|
+
Q.displayName = "Alert";
|
|
101
98
|
export {
|
|
102
|
-
|
|
99
|
+
Q as default
|
|
103
100
|
};
|
package/anchor/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import r from "./Anchor.js";
|
|
2
|
-
import {
|
|
2
|
+
import { findNode as f } from "./util.js";
|
|
3
|
+
import { default as d } from "./Link.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
r as default
|
|
5
|
+
d as AnchorLink,
|
|
6
|
+
r as default,
|
|
7
|
+
f as findAnchorLinkNode
|
|
6
8
|
};
|
package/back-top/index.js
CHANGED
|
@@ -2,40 +2,39 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import C from "@unicom-cloud/icons/IconUiToTop";
|
|
3
3
|
import { Tween as v } from "../dist/tween/src/tween.js";
|
|
4
4
|
import { quartOut as k } from "../dist/tween/src/easing.js";
|
|
5
|
-
import x, { forwardRef as y,
|
|
5
|
+
import x, { forwardRef as y, useContext as B, useState as E, useEffect as N } from "react";
|
|
6
6
|
import "../config-provider/ConfigProvider.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { PqbCSSTransition as
|
|
10
|
-
import
|
|
11
|
-
import { on as
|
|
12
|
-
import { pickDataAttributes as
|
|
13
|
-
import { throttleByRaf as
|
|
14
|
-
import
|
|
15
|
-
function
|
|
16
|
-
i ||= B();
|
|
7
|
+
import H from "../components/common/hooks/useKeyboardEvent.js";
|
|
8
|
+
import P from "../components/common/hooks/useMergeProps.js";
|
|
9
|
+
import { PqbCSSTransition as R } from "../components/common/utils/PqbCSSTransition.js";
|
|
10
|
+
import S from "@unicom-cloud/utils/class-name";
|
|
11
|
+
import { on as q, off as $ } from "../components/common/utils/dom.js";
|
|
12
|
+
import { pickDataAttributes as D } from "../components/common/utils/pick.js";
|
|
13
|
+
import { throttleByRaf as I } from "../components/common/utils/throttleByRaf.js";
|
|
14
|
+
import K from "../config-provider/context.js";
|
|
15
|
+
function O(m, p) {
|
|
17
16
|
const f = {
|
|
18
17
|
visibleHeight: 400,
|
|
19
18
|
tween: !0,
|
|
20
19
|
easing: k,
|
|
21
20
|
duration: 400,
|
|
22
21
|
target: () => window
|
|
23
|
-
}, { getPrefixCls: u, componentConfig: d, rtl: g } =
|
|
24
|
-
|
|
22
|
+
}, { getPrefixCls: u, componentConfig: d, rtl: g } = B(K), T = H(), o = P(
|
|
23
|
+
m,
|
|
25
24
|
f,
|
|
26
25
|
d?.BackTop
|
|
27
|
-
), s = u?.("backtop"), [b, w] =
|
|
28
|
-
|
|
29
|
-
const e = o.target?.(), t =
|
|
30
|
-
const n = o.visibleHeight,
|
|
31
|
-
w(
|
|
26
|
+
), s = u?.("backtop"), [b, w] = E(!1), i = (e) => e === window ? document.documentElement : e;
|
|
27
|
+
N(() => {
|
|
28
|
+
const e = o.target?.(), t = I(() => {
|
|
29
|
+
const n = o.visibleHeight, c = i(e).scrollTop;
|
|
30
|
+
w(c >= n);
|
|
32
31
|
});
|
|
33
|
-
return
|
|
34
|
-
t.cancel?.(),
|
|
32
|
+
return q(e, "scroll", t), t(), () => {
|
|
33
|
+
t.cancel?.(), $(e, "scroll", t);
|
|
35
34
|
};
|
|
36
35
|
}, [o.target, o.visibleHeight]);
|
|
37
|
-
const
|
|
38
|
-
const e = o.target?.(), t =
|
|
36
|
+
const l = () => {
|
|
37
|
+
const e = o.target?.(), t = i(e), n = t.scrollTop;
|
|
39
38
|
window.getComputedStyle(t)?.scrollBehavior === "smooth" || o.tween === !1 ? t.scrollTo(0, 0) : new v({
|
|
40
39
|
from: { scrollTop: n },
|
|
41
40
|
to: { scrollTop: 0 },
|
|
@@ -49,20 +48,20 @@ function U(p, i) {
|
|
|
49
48
|
return /* @__PURE__ */ r(
|
|
50
49
|
"div",
|
|
51
50
|
{
|
|
52
|
-
...
|
|
53
|
-
ref:
|
|
54
|
-
className:
|
|
51
|
+
...D(o),
|
|
52
|
+
ref: p,
|
|
53
|
+
className: S(
|
|
55
54
|
`${s}`,
|
|
56
55
|
{ [`${s}-rtl`]: g },
|
|
57
56
|
o.className
|
|
58
57
|
),
|
|
59
58
|
style: o.style,
|
|
60
|
-
onClick:
|
|
59
|
+
onClick: l,
|
|
61
60
|
...T({
|
|
62
|
-
onPressEnter:
|
|
61
|
+
onPressEnter: l
|
|
63
62
|
}),
|
|
64
63
|
children: /* @__PURE__ */ r(
|
|
65
|
-
|
|
64
|
+
R,
|
|
66
65
|
{
|
|
67
66
|
in: b,
|
|
68
67
|
timeout: 100,
|
|
@@ -74,11 +73,11 @@ function U(p, i) {
|
|
|
74
73
|
}
|
|
75
74
|
);
|
|
76
75
|
}
|
|
77
|
-
const
|
|
78
|
-
|
|
76
|
+
const a = y(
|
|
77
|
+
O
|
|
79
78
|
);
|
|
80
|
-
|
|
81
|
-
const
|
|
79
|
+
a.displayName = "BackTop";
|
|
80
|
+
const Z = x.memo(a);
|
|
82
81
|
export {
|
|
83
|
-
|
|
82
|
+
Z as default
|
|
84
83
|
};
|