@unicom-cloud/ui 0.8.93 → 0.8.95
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/Checkbox.js +5 -4
- package/Layout.js +8 -7
- package/Message.js +1 -1
- package/Notification.js +1 -1
- package/Switch.js +1 -1
- package/Tooltip.js +1 -1
- package/Trigger.js +1 -1
- package/back-top/index.js +8 -8
- package/badge/index.js +11 -11
- package/cascader/panel/List.js +1 -1
- package/cascader/panel/Option.js +7 -6
- package/cascader/panel/Search.js +17 -16
- package/checkbox/index.js +7 -6
- package/collapse/Item.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Mode.js +7 -6
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +1 -1
- package/color-picker/colors.js +1 -1
- package/color-picker/hooks/useColorPicker.js +1 -1
- package/color-picker/utils.js +1 -1
- package/components/common/empty/index.js +33 -13
- package/components/common/space/index.js +4 -3
- package/components/common/utils/PqbCSSTransition.js +1 -1
- package/components/common/utils/setPrimaryColor.js +21 -21
- package/components/common/utils/setTheme.js +23 -23
- package/dist/react-transition-group/src/CSSTransition.js +1 -1
- package/dist/react-transition-group/src/SwitchTransition.js +1 -1
- package/dist/tinycolor/chunk/{DGZSWe7E.js → BOzCVdr0.js} +43 -43
- package/dist/tinycolor/customize/index.js +1 -1
- package/dist/tween/src/tween.js +25 -24
- package/index.js +173 -173
- package/input-tag/InputTag.js +1 -1
- package/layout/index.js +11 -9
- package/message/index.js +1 -1
- package/notification/index.js +1 -1
- package/package.json +1 -1
- package/pagination/PageItem.js +52 -53
- package/pagination/Pagination.js +2 -1
- package/pagination/interface.js +4 -1
- package/select/Option.js +12 -11
- package/select/Select.js +1 -0
- package/statistic/index.js +16 -16
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +153 -153
- package/table/tbody/Tr.js +3 -2
- package/table/thead/Column.js +3 -2
- package/table/thead/index.js +3 -2
- package/tag/index.js +24 -24
- package/time-picker/util.js +4 -4
- package/tooltip/index.js +1 -1
- package/transfer/Item.js +17 -16
- package/transfer/List.js +12 -11
- package/tree/Node.js +43 -41
- package/tree/Tree.js +215 -211
- package/trigger/index.js +1 -1
- package/types/pc/affix/index.d.ts +1 -1
- package/types/pc/alert/index.d.ts +1 -1
- package/types/pc/anchor/Anchor.d.ts +1 -1
- package/types/pc/anchor/Link.d.ts +1 -1
- package/types/pc/anchor/context.d.ts +1 -1
- package/types/pc/auto-complete/index.d.ts +1 -1
- package/types/pc/avatar/Avatar.d.ts +1 -1
- package/types/pc/avatar/Group.d.ts +1 -1
- package/types/pc/avatar/context.d.ts +1 -1
- package/types/pc/back-top/index.d.ts +1 -1
- package/types/pc/badge/index.d.ts +2 -2
- package/types/pc/badge/interface.d.ts +1 -1
- package/types/pc/breadcrumb/Item.d.ts +1 -1
- package/types/pc/breadcrumb/index.d.ts +1 -1
- package/types/pc/button/Group.d.ts +1 -1
- package/types/pc/button/index.d.ts +1 -1
- package/types/pc/calendar/Month.d.ts +1 -1
- package/types/pc/calendar/Year.d.ts +1 -1
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/card/Grid.d.ts +1 -1
- package/types/pc/card/Meta.d.ts +1 -1
- package/types/pc/card/index.d.ts +1 -1
- package/types/pc/carousel/Arrow.d.ts +1 -1
- package/types/pc/carousel/Indicator.d.ts +1 -1
- package/types/pc/carousel/index.d.ts +2 -2
- package/types/pc/cascader/Cascader.d.ts +1 -1
- package/types/pc/cascader/util.d.ts +1 -1
- package/types/pc/checkbox/Checkbox.d.ts +1 -1
- package/types/pc/checkbox/Group.d.ts +1 -1
- package/types/pc/checkbox/GroupBlock.d.ts +1 -1
- package/types/pc/checkbox/index.d.ts +1 -1
- package/types/pc/collapse/Collapse.d.ts +1 -1
- package/types/pc/collapse/Item.d.ts +1 -1
- package/types/pc/color-picker/InputHex.d.ts +1 -1
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Mode.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/color-picker/index.d.ts +1 -1
- package/types/pc/color-picker/utils.d.ts +1 -1
- package/types/pc/comment/index.d.ts +1 -1
- package/types/pc/config-provider/ConfigProvider.d.ts +3 -2
- package/types/pc/config-provider/context.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +1 -1
- package/types/pc/copy/index.d.ts +1 -1
- package/types/pc/date-picker/Picker.d.ts +1 -2
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/date-picker/index.d.ts +1 -1
- package/types/pc/descriptions/index.d.ts +1 -1
- package/types/pc/details/index.d.ts +1 -1
- package/types/pc/divider/index.d.ts +1 -1
- package/types/pc/draggable/Item.d.ts +1 -1
- package/types/pc/draggable/index.d.ts +1 -1
- package/types/pc/drawer/Drawer.d.ts +2 -2
- package/types/pc/dropdown/Button.d.ts +1 -1
- package/types/pc/dropdown/index.d.ts +1 -1
- package/types/pc/empty/index.d.ts +1 -1
- package/types/pc/form/Control.d.ts +1 -1
- package/types/pc/form/Form.d.ts +1 -1
- package/types/pc/form/FormLabel.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +1 -1
- package/types/pc/form/FormProvider.d.ts +1 -1
- package/types/pc/form/context.d.ts +1 -1
- package/types/pc/form/hook/useForm.d.ts +1 -1
- package/types/pc/form/index.d.ts +1 -1
- package/types/pc/form/interface.d.ts +2 -2
- package/types/pc/form/store.d.ts +3 -4
- package/types/pc/form/util.d.ts +3 -3
- package/types/pc/grid/Col.d.ts +1 -1
- package/types/pc/grid/Grid.d.ts +1 -1
- package/types/pc/grid/GridItem.d.ts +1 -1
- package/types/pc/grid/Row.d.ts +1 -1
- package/types/pc/grid/context.d.ts +1 -1
- package/types/pc/grid/util.d.ts +1 -1
- package/types/pc/hooks/use-watermark/index.d.ts +1 -1
- package/types/pc/icons/file/index.d.ts +1 -1
- package/types/pc/image/Image.d.ts +1 -1
- package/types/pc/image/ImageFooter.d.ts +1 -1
- package/types/pc/image/ImagePreview.d.ts +1 -1
- package/types/pc/image/ImagePreviewGroup.d.ts +1 -1
- package/types/pc/image/ImagePreviewToolbar.d.ts +1 -1
- package/types/pc/image/index.d.ts +1 -1
- package/types/pc/image/previewGroupContext.d.ts +1 -1
- package/types/pc/input/Button.d.ts +1 -1
- package/types/pc/input/Group.d.ts +1 -1
- package/types/pc/input/Input.d.ts +1 -1
- package/types/pc/input/InputElement.d.ts +1 -1
- package/types/pc/input/Password.d.ts +1 -1
- package/types/pc/input/Search.d.ts +1 -1
- package/types/pc/input/Textarea.d.ts +1 -1
- package/types/pc/input/index.d.ts +1 -1
- package/types/pc/input/useComposition.d.ts +1 -1
- package/types/pc/input-number/index.d.ts +1 -1
- package/types/pc/input-tag/InputTag.d.ts +2 -2
- package/types/pc/input-tag/interface.d.ts +2 -2
- package/types/pc/layout/Content.d.ts +1 -1
- package/types/pc/layout/Footer.d.ts +1 -1
- package/types/pc/layout/Header.d.ts +1 -1
- package/types/pc/layout/Sider.d.ts +1 -1
- package/types/pc/layout/index.d.ts +2 -2
- package/types/pc/link/index.d.ts +1 -1
- package/types/pc/list/Item.d.ts +1 -1
- package/types/pc/list/Meta.d.ts +1 -1
- package/types/pc/list/index.d.ts +2 -2
- package/types/pc/mentions/index.d.ts +1 -1
- package/types/pc/mentions/util.d.ts +1 -1
- package/types/pc/menu/Item.d.ts +1 -1
- package/types/pc/menu/ItemGroup.d.ts +1 -1
- package/types/pc/menu/Menu.d.ts +1 -1
- package/types/pc/menu/OverflowWrap.d.ts +1 -1
- package/types/pc/menu/context.d.ts +2 -2
- package/types/pc/menu/index.d.ts +1 -1
- package/types/pc/menu/interface.d.ts +1 -1
- package/types/pc/message/index.d.ts +2 -2
- package/types/pc/message/useMessage.d.ts +1 -1
- package/types/pc/modal/Modal.d.ts +2 -2
- package/types/pc/modal/config.d.ts +1 -1
- package/types/pc/notification/index.d.ts +2 -2
- package/types/pc/notification/useNotification.d.ts +1 -1
- package/types/pc/page-header/index.d.ts +2 -2
- package/types/pc/pagination/PageItem.d.ts +2 -47
- package/types/pc/pagination/Pagination.d.ts +1 -1
- package/types/pc/pagination/interface.d.ts +47 -0
- package/types/pc/popconfirm/index.d.ts +1 -1
- package/types/pc/popover/index.d.ts +1 -1
- package/types/pc/popover/interface.d.ts +1 -1
- package/types/pc/progress/CircleProgress.d.ts +1 -1
- package/types/pc/progress/index.d.ts +1 -1
- package/types/pc/radio/Group.d.ts +1 -1
- package/types/pc/radio/GroupBlock.d.ts +1 -1
- package/types/pc/radio/Radio.d.ts +1 -1
- package/types/pc/radio/index.d.ts +1 -1
- package/types/pc/rate/index.d.ts +1 -1
- package/types/pc/resize-box/Split.d.ts +1 -1
- package/types/pc/resize-box/SplitGroup.d.ts +1 -1
- package/types/pc/resize-box/index.d.ts +1 -1
- package/types/pc/result/index.d.ts +1 -1
- package/types/pc/select/OptGroup.d.ts +1 -1
- package/types/pc/select/Option.d.ts +1 -1
- package/types/pc/select/Select.d.ts +3 -2
- package/types/pc/select/index.d.ts +1 -1
- package/types/pc/select/util.d.ts +1 -1
- package/types/pc/select-view/Core.d.ts +1 -1
- package/types/pc/select-view/index.d.ts +1 -1
- package/types/pc/skeleton/Image.d.ts +1 -1
- package/types/pc/skeleton/Text.d.ts +1 -1
- package/types/pc/skeleton/index.d.ts +1 -1
- package/types/pc/slider/Button.d.ts +1 -1
- package/types/pc/slider/hook/useInterval.d.ts +1 -1
- package/types/pc/slider/index.d.ts +1 -1
- package/types/pc/space/index.d.ts +1 -1
- package/types/pc/space-/index.d.ts +1 -1
- package/types/pc/spin/index.d.ts +1 -1
- package/types/pc/statistic/Countdown.d.ts +1 -1
- package/types/pc/statistic/index.d.ts +2 -2
- package/types/pc/steps/Step.d.ts +1 -1
- package/types/pc/steps/index.d.ts +1 -1
- package/types/pc/switch/index.d.ts +2 -2
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/Table.d.ts +1 -1
- package/types/pc/table/constant.d.ts +1 -1
- package/types/pc/table/interface.d.ts +1 -1
- package/types/pc/table/util.d.ts +1 -1
- package/types/pc/tabs/Tab.d.ts +1 -1
- package/types/pc/tabs/TabPane.d.ts +1 -1
- package/types/pc/tabs/index.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
- package/types/pc/tabs/tab-header/index.d.ts +1 -1
- package/types/pc/tag/index.d.ts +1 -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/TimePicker.d.ts +1 -1
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/timeline/Item.d.ts +1 -1
- package/types/pc/timeline/Timeline.d.ts +1 -1
- package/types/pc/timeline/index.d.ts +1 -1
- package/types/pc/tooltip/index.d.ts +2 -2
- package/types/pc/transfer/Item.d.ts +1 -1
- package/types/pc/transfer/List.d.ts +1 -1
- package/types/pc/transfer/index.d.ts +1 -1
- package/types/pc/tree/Animation.d.ts +1 -1
- package/types/pc/tree/Context.d.ts +1 -1
- package/types/pc/tree/Node.d.ts +1 -1
- package/types/pc/tree/Tree.d.ts +1 -1
- package/types/pc/tree/index.d.ts +2 -2
- package/types/pc/tree/interface.d.ts +19 -3
- package/types/pc/tree/util.d.ts +1 -1
- package/types/pc/tree-select/List.d.ts +1 -1
- package/types/pc/trigger/getPopupStyle.d.ts +1 -1
- package/types/pc/trigger/index.d.ts +2 -2
- package/types/pc/typography/EditContent.d.ts +1 -1
- package/types/pc/typography/Ellipsis.d.ts +1 -1
- package/types/pc/typography/Operations.d.ts +1 -1
- package/types/pc/typography/Paragraph.d.ts +1 -1
- package/types/pc/typography/Title.d.ts +1 -1
- package/types/pc/typography/Typography.d.ts +1 -1
- package/types/pc/typography/useCssEllipsis.d.ts +1 -1
- package/types/pc/typography/useEllipsis.d.ts +1 -1
- package/types/pc/upload/TriggerNode.d.ts +1 -1
- package/types/pc/upload/Upload.d.ts +2 -2
- package/types/pc/upload/Uploader.d.ts +1 -1
- package/types/pc/upload/request.d.ts +1 -1
- package/types/pc/upload/util.d.ts +1 -1
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/verification-code/index.d.ts +1 -1
- package/types/pc/watermark/Watermark.d.ts +1 -1
- package/types/pc/watermark/index.d.ts +2 -2
- package/typography/Ellipsis.js +7 -5
- package/upload/list/index.js +1 -1
- package/utils/color.js +1 -1
- package/utils/index.js +2 -2
- package/utils/reactTransitionGroup.js +1 -1
- package/utils/tinycolor.js +1 -1
- package/version/index.js +1 -1
- /package/dist/react-transition-group/chunk/{CPfP7aNL.js → C6QwjD4L.js} +0 -0
package/Checkbox.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { default as r } from "./checkbox/Checkbox.js";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as x, ClearCheckboxGroupContext as a } from "./checkbox/Group.js";
|
|
3
3
|
import { default as u } from "./checkbox/GroupBlock.js";
|
|
4
|
-
import { default as
|
|
4
|
+
import { default as l } from "./checkbox/useCheckbox.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
x as CheckboxGroup,
|
|
7
7
|
u as CheckboxGroupBlock,
|
|
8
|
+
a as ClearCheckboxGroupContext,
|
|
8
9
|
r as default,
|
|
9
|
-
|
|
10
|
+
l as useCheckbox
|
|
10
11
|
};
|
package/Layout.js
CHANGED
|
@@ -4,16 +4,17 @@ import "react";
|
|
|
4
4
|
import "./config-provider/ConfigProvider.js";
|
|
5
5
|
import "./components/common/hooks/useMergeProps.js";
|
|
6
6
|
import "@unicom-cloud/utils/class-name";
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
7
|
+
import { default as u } from "./layout/Content.js";
|
|
8
|
+
import { default as x } from "./layout/Footer.js";
|
|
9
9
|
import { default as s } from "./layout/Header.js";
|
|
10
|
-
import { default as L } from "./layout/Sider.js";
|
|
10
|
+
import { default as L, SiderContext as n } from "./layout/Sider.js";
|
|
11
11
|
import "./config-provider/context.js";
|
|
12
|
-
import { default as
|
|
12
|
+
import { default as S } from "./layout/index.js";
|
|
13
13
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
u as LayoutContent,
|
|
15
|
+
x as LayoutFooter,
|
|
16
16
|
s as LayoutHeader,
|
|
17
17
|
L as LayoutSider,
|
|
18
|
-
|
|
18
|
+
n as SiderContext,
|
|
19
|
+
S as default
|
|
19
20
|
};
|
package/Message.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "./dist/react-transition-group/src/CSSTransition.js";
|
|
3
3
|
import "./dist/react-transition-group/src/ReplaceTransition.js";
|
|
4
4
|
import "./dist/react-transition-group/src/SwitchTransition.js";
|
|
5
|
-
import "./dist/react-transition-group/chunk/
|
|
5
|
+
import "./dist/react-transition-group/chunk/C6QwjD4L.js";
|
|
6
6
|
import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
7
7
|
import "lodash/isNumber";
|
|
8
8
|
import "lodash/isUndefined";
|
package/Notification.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "./dist/react-transition-group/src/CSSTransition.js";
|
|
3
3
|
import "./dist/react-transition-group/src/ReplaceTransition.js";
|
|
4
4
|
import "./dist/react-transition-group/src/SwitchTransition.js";
|
|
5
|
-
import "./dist/react-transition-group/chunk/
|
|
5
|
+
import "./dist/react-transition-group/chunk/C6QwjD4L.js";
|
|
6
6
|
import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
7
7
|
import "lodash/isNumber";
|
|
8
8
|
import "lodash/isUndefined";
|
package/Switch.js
CHANGED
|
@@ -3,7 +3,7 @@ import "@unicom-cloud/icons/IconUiLoading";
|
|
|
3
3
|
import "./dist/react-transition-group/src/CSSTransition.js";
|
|
4
4
|
import "./dist/react-transition-group/src/ReplaceTransition.js";
|
|
5
5
|
import "./dist/react-transition-group/src/SwitchTransition.js";
|
|
6
|
-
import "./dist/react-transition-group/chunk/
|
|
6
|
+
import "./dist/react-transition-group/chunk/C6QwjD4L.js";
|
|
7
7
|
import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
8
8
|
import "lodash/isArray";
|
|
9
9
|
import "react";
|
package/Tooltip.js
CHANGED
package/Trigger.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "./dist/react-transition-group/src/CSSTransition.js";
|
|
3
3
|
import "./dist/react-transition-group/src/ReplaceTransition.js";
|
|
4
4
|
import "./dist/react-transition-group/src/SwitchTransition.js";
|
|
5
|
-
import "./dist/react-transition-group/chunk/
|
|
5
|
+
import "./dist/react-transition-group/chunk/C6QwjD4L.js";
|
|
6
6
|
import "./dist/react-transition-group/src/TransitionGroup.js";
|
|
7
7
|
import "lodash/isArray";
|
|
8
8
|
import "lodash/isFunction";
|
package/back-top/index.js
CHANGED
|
@@ -5,10 +5,10 @@ import { quartOut as B } from "../dist/tween/src/easing.js";
|
|
|
5
5
|
import C, { forwardRef as E, useRef as N, useContext as R, useState as S, useEffect as q } from "react";
|
|
6
6
|
import "../config-provider/ConfigProvider.js";
|
|
7
7
|
import H from "../components/common/hooks/useKeyboardEvent.js";
|
|
8
|
-
import
|
|
9
|
-
import { PqbCSSTransition as
|
|
10
|
-
import
|
|
11
|
-
import { on as
|
|
8
|
+
import I from "../components/common/hooks/useMergeProps.js";
|
|
9
|
+
import { PqbCSSTransition as P } from "../components/common/utils/PqbCSSTransition.js";
|
|
10
|
+
import $ from "@unicom-cloud/utils/class-name";
|
|
11
|
+
import { on as D, off as K } from "../components/common/utils/dom.js";
|
|
12
12
|
import { pickDataAttributes as O } from "../components/common/utils/pick.js";
|
|
13
13
|
import { throttleByRaf as U } from "../components/common/utils/throttleByRaf.js";
|
|
14
14
|
import j from "../config-provider/context.js";
|
|
@@ -20,7 +20,7 @@ function A(T, m) {
|
|
|
20
20
|
easing: B,
|
|
21
21
|
duration: 400,
|
|
22
22
|
target: () => window
|
|
23
|
-
}, { getPrefixCls: c, componentConfig: l, rtl: b } = R(j), w = H(), t =
|
|
23
|
+
}, { getPrefixCls: c, componentConfig: l, rtl: b } = R(j), w = H(), t = I(
|
|
24
24
|
T,
|
|
25
25
|
g,
|
|
26
26
|
l == null ? void 0 : l.BackTop
|
|
@@ -31,7 +31,7 @@ function A(T, m) {
|
|
|
31
31
|
const r = t.visibleHeight, n = f(e).scrollTop;
|
|
32
32
|
v(n >= r);
|
|
33
33
|
});
|
|
34
|
-
return
|
|
34
|
+
return D(e, "scroll", o), o(), () => {
|
|
35
35
|
var r;
|
|
36
36
|
(r = o.cancel) == null || r.call(o), K(e, "scroll", o);
|
|
37
37
|
};
|
|
@@ -54,7 +54,7 @@ function A(T, m) {
|
|
|
54
54
|
{
|
|
55
55
|
...O(t),
|
|
56
56
|
ref: m,
|
|
57
|
-
className:
|
|
57
|
+
className: $(
|
|
58
58
|
`${a}`,
|
|
59
59
|
{ [`${a}-rtl`]: b },
|
|
60
60
|
t.className
|
|
@@ -65,7 +65,7 @@ function A(T, m) {
|
|
|
65
65
|
onPressEnter: u
|
|
66
66
|
}),
|
|
67
67
|
children: /* @__PURE__ */ i(
|
|
68
|
-
|
|
68
|
+
P,
|
|
69
69
|
{
|
|
70
70
|
in: h,
|
|
71
71
|
timeout: 100,
|
package/badge/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as x, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import R from "lodash/isPlainObject";
|
|
3
|
-
import { forwardRef as
|
|
3
|
+
import { forwardRef as G, useContext as _ } from "react";
|
|
4
4
|
import "../config-provider/ConfigProvider.js";
|
|
5
|
-
import
|
|
6
|
-
import { PqbCSSTransition as
|
|
5
|
+
import k from "../components/common/hooks/useMergeProps.js";
|
|
6
|
+
import { PqbCSSTransition as q } from "../components/common/utils/PqbCSSTransition.js";
|
|
7
7
|
import a from "@unicom-cloud/utils/class-name";
|
|
8
8
|
import y from "./Count.js";
|
|
9
9
|
import z from "../config-provider/context.js";
|
|
@@ -15,7 +15,7 @@ const N = [
|
|
|
15
15
|
"lime",
|
|
16
16
|
"green",
|
|
17
17
|
"cyan",
|
|
18
|
-
"
|
|
18
|
+
"primary",
|
|
19
19
|
"purple",
|
|
20
20
|
"magenta",
|
|
21
21
|
"gray"
|
|
@@ -23,9 +23,9 @@ const N = [
|
|
|
23
23
|
count: 0,
|
|
24
24
|
maxCount: 99
|
|
25
25
|
};
|
|
26
|
-
function L(
|
|
27
|
-
const { getPrefixCls: c, componentConfig: i, rtl:
|
|
28
|
-
|
|
26
|
+
function L(h, S) {
|
|
27
|
+
const { getPrefixCls: c, componentConfig: i, rtl: b } = _(z), O = k(
|
|
28
|
+
h,
|
|
29
29
|
I,
|
|
30
30
|
i == null ? void 0 : i.Badge
|
|
31
31
|
), {
|
|
@@ -83,7 +83,7 @@ function L(b, h) {
|
|
|
83
83
|
),
|
|
84
84
|
!!m && /* @__PURE__ */ s("span", { className: `${t}-status-text`, children: m })
|
|
85
85
|
] }) : (d || e) && typeof o == "number" && o > 0 ? /* @__PURE__ */ s(
|
|
86
|
-
|
|
86
|
+
q,
|
|
87
87
|
{
|
|
88
88
|
classNames: "badge-zoom",
|
|
89
89
|
in: d || !!e,
|
|
@@ -124,11 +124,11 @@ function L(b, h) {
|
|
|
124
124
|
{
|
|
125
125
|
[`${t}-status`]: l,
|
|
126
126
|
[`${t}-no-children`]: !f,
|
|
127
|
-
[`${t}-rtl`]:
|
|
127
|
+
[`${t}-rtl`]: b
|
|
128
128
|
},
|
|
129
129
|
B
|
|
130
130
|
),
|
|
131
|
-
ref:
|
|
131
|
+
ref: S,
|
|
132
132
|
style: P,
|
|
133
133
|
...j,
|
|
134
134
|
children: [
|
|
@@ -138,7 +138,7 @@ function L(b, h) {
|
|
|
138
138
|
}
|
|
139
139
|
);
|
|
140
140
|
}
|
|
141
|
-
const C =
|
|
141
|
+
const C = G(L);
|
|
142
142
|
C.displayName = "Badge";
|
|
143
143
|
C.Count = y;
|
|
144
144
|
const W = N, X = ["default", "processing", "success", "warning", "error"];
|
package/cascader/panel/List.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as d, Fragment as I, jsxs as K } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../dist/react-transition-group/src/CSSTransition.js";
|
|
3
3
|
import "../../dist/react-transition-group/src/ReplaceTransition.js";
|
|
4
4
|
import "../../dist/react-transition-group/src/SwitchTransition.js";
|
|
5
|
-
import "../../dist/react-transition-group/chunk/
|
|
5
|
+
import "../../dist/react-transition-group/chunk/C6QwjD4L.js";
|
|
6
6
|
import z from "../../dist/react-transition-group/src/TransitionGroup.js";
|
|
7
7
|
import H from "lodash/isEqualWith";
|
|
8
8
|
import S from "lodash/isFunction";
|
package/cascader/panel/Option.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsxs as c, Fragment as s, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as c, Fragment as s, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import b from "../../checkbox/Checkbox.js";
|
|
3
|
+
import "../../checkbox/Group.js";
|
|
3
4
|
const C = (i) => {
|
|
4
|
-
const { prefixCls: d, multiple:
|
|
5
|
+
const { prefixCls: d, multiple: n, option: e, renderOption: l, selected: a, icons: o } = i, t = e.disabled || n && e.disableCheckbox;
|
|
5
6
|
return /* @__PURE__ */ c(s, { children: [
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
n ? /* @__PURE__ */ r(
|
|
8
|
+
b,
|
|
8
9
|
{
|
|
9
10
|
disabled: t,
|
|
10
11
|
checked: e._checked,
|
|
@@ -22,7 +23,7 @@ const C = (i) => {
|
|
|
22
23
|
onDoubleClick: t ? void 0 : i.onDoubleClickOption,
|
|
23
24
|
children: [
|
|
24
25
|
l ? l() : e.label,
|
|
25
|
-
e.isLeaf ? a &&
|
|
26
|
+
e.isLeaf ? a && o.checked : e.loading ? o.loading : o.next
|
|
26
27
|
]
|
|
27
28
|
}
|
|
28
29
|
)
|
package/cascader/panel/Search.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as m, jsxs as N, Fragment as w } from "react/jsx-runtime";
|
|
2
2
|
import B from "../../dist/scroll-into-view-if-needed/src/index.js";
|
|
3
3
|
import D from "lodash/isEqualWith";
|
|
4
4
|
import O from "lodash/isFunction";
|
|
@@ -6,6 +6,7 @@ import L from "lodash/isString";
|
|
|
6
6
|
import { useState as P, useRef as E, useEffect as F } from "react";
|
|
7
7
|
import { getMultipleCheckValue as K } from "../util.js";
|
|
8
8
|
import q from "../../checkbox/Checkbox.js";
|
|
9
|
+
import "../../checkbox/Group.js";
|
|
9
10
|
import T from "../../components/common/hooks/useIsFirstRender.js";
|
|
10
11
|
import M from "../../components/common/hooks/useUpdateEffect.js";
|
|
11
12
|
import S from "@unicom-cloud/utils/class-name";
|
|
@@ -19,29 +20,29 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
|
|
|
19
20
|
if (L(r)) {
|
|
20
21
|
const o = r.toUpperCase().indexOf(t.toUpperCase());
|
|
21
22
|
if (o > -1) {
|
|
22
|
-
const
|
|
23
|
+
const h = r.substring(0, o + 1), g = r.substring(o + t.length);
|
|
23
24
|
b = /* @__PURE__ */ N(w, { children: [
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */
|
|
25
|
+
h,
|
|
26
|
+
/* @__PURE__ */ m("span", { className: `${s}-highlight`, children: r.substring(o, t.length + 1) }),
|
|
26
27
|
g
|
|
27
28
|
] });
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
return b;
|
|
31
|
-
},
|
|
32
|
+
}, ke = (t) => {
|
|
32
33
|
const {
|
|
33
34
|
store: r,
|
|
34
35
|
prefixCls: s,
|
|
35
36
|
multiple: b,
|
|
36
37
|
onChange: o,
|
|
37
|
-
inputValue:
|
|
38
|
+
inputValue: h,
|
|
38
39
|
renderEmpty: g,
|
|
39
40
|
style: U,
|
|
40
41
|
defaultActiveFirstOption: $,
|
|
41
42
|
rtl: V,
|
|
42
43
|
icons: _
|
|
43
44
|
} = t, x = t.value || [], [c, j] = P(
|
|
44
|
-
r.searchNodeByLabel(
|
|
45
|
+
r.searchNodeByLabel(h) || []
|
|
45
46
|
), k = E(), v = E(), I = T(), [p, y] = P(
|
|
46
47
|
$ ? 0 : -1
|
|
47
48
|
), C = (e, n, d) => {
|
|
@@ -58,8 +59,8 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
|
|
|
58
59
|
o == null || o([e.pathValue]);
|
|
59
60
|
};
|
|
60
61
|
return M(() => {
|
|
61
|
-
j(r.searchNodeByLabel(
|
|
62
|
-
}, [
|
|
62
|
+
j(r.searchNodeByLabel(h));
|
|
63
|
+
}, [h, r]), M(() => {
|
|
63
64
|
y((e) => e > c.length - 1 ? $ ? 0 : -1 : e);
|
|
64
65
|
}, [c]), F(() => {
|
|
65
66
|
const e = t.getTriggerElement();
|
|
@@ -106,7 +107,7 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
|
|
|
106
107
|
scrollMode: "if-needed",
|
|
107
108
|
boundary: (n = e.parentNode) == null ? void 0 : n.parentNode
|
|
108
109
|
});
|
|
109
|
-
}, [p, c]), k.current = null, c.length ? /* @__PURE__ */
|
|
110
|
+
}, [p, c]), k.current = null, c.length ? /* @__PURE__ */ m("div", { className: `${s}-list-wrapper`, children: /* @__PURE__ */ m(
|
|
110
111
|
X,
|
|
111
112
|
{
|
|
112
113
|
needFiller: !1,
|
|
@@ -128,8 +129,8 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
|
|
|
128
129
|
const d = e.getPathNodes(), u = d.map((l, R, ee) => /* @__PURE__ */ N("span", { children: [
|
|
129
130
|
l.label,
|
|
130
131
|
d.length === R + 1 ? "" : " / "
|
|
131
|
-
] }, `${l.label}_${l._level}`)), a = e._checked, f = { checked: a }, i = O(t.renderOption) ? t.renderOption(
|
|
132
|
-
return /* @__PURE__ */
|
|
132
|
+
] }, `${l.label}_${l._level}`)), a = e._checked, f = { checked: a }, i = O(t.renderOption) ? t.renderOption(h, e._data, f) : Z(h, u, s);
|
|
133
|
+
return /* @__PURE__ */ m(
|
|
133
134
|
"li",
|
|
134
135
|
{
|
|
135
136
|
title: L(i) ? i : L(u) ? u : void 0,
|
|
@@ -152,18 +153,18 @@ const H = (t, r) => t < 0 ? r : t > r ? 0 : t, Z = (t, r, s) => {
|
|
|
152
153
|
onMouseLeave: () => {
|
|
153
154
|
!v.current && !e.disabled && y($ ? 0 : -1);
|
|
154
155
|
},
|
|
155
|
-
children: /* @__PURE__ */
|
|
156
|
+
children: /* @__PURE__ */ m("div", { className: `${s}-list-item-label`, children: O(t.renderOption) ? i : b ? /* @__PURE__ */ m(q, { checked: a, disabled: e.disabled, children: i }) : /* @__PURE__ */ N(w, { children: [
|
|
156
157
|
i,
|
|
157
|
-
a && /* @__PURE__ */
|
|
158
|
+
a && /* @__PURE__ */ m("span", { className: `${s}-check-icon`, children: _.checked })
|
|
158
159
|
] }) })
|
|
159
160
|
},
|
|
160
161
|
n
|
|
161
162
|
);
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
|
-
) }) : /* @__PURE__ */
|
|
165
|
+
) }) : /* @__PURE__ */ m(w, { children: g == null ? void 0 : g() });
|
|
165
166
|
};
|
|
166
167
|
export {
|
|
167
|
-
|
|
168
|
+
ke as default,
|
|
168
169
|
H as getLegalIndex
|
|
169
170
|
};
|
package/checkbox/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import e from "./Checkbox.js";
|
|
2
|
-
import { default as a } from "./Group.js";
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
2
|
+
import { default as x, ClearCheckboxGroupContext as a } from "./Group.js";
|
|
3
|
+
import { default as f } from "./GroupBlock.js";
|
|
4
|
+
import { default as C } from "./useCheckbox.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
x as CheckboxGroup,
|
|
7
|
+
f as CheckboxGroupBlock,
|
|
8
|
+
a as ClearCheckboxGroupContext,
|
|
8
9
|
e as default,
|
|
9
|
-
|
|
10
|
+
C as useCheckbox
|
|
10
11
|
};
|
package/collapse/Item.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as v, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import "../dist/react-transition-group/src/CSSTransition.js";
|
|
3
3
|
import "../dist/react-transition-group/src/ReplaceTransition.js";
|
|
4
4
|
import "../dist/react-transition-group/src/SwitchTransition.js";
|
|
5
|
-
import { T } from "../dist/react-transition-group/chunk/
|
|
5
|
+
import { T } from "../dist/react-transition-group/chunk/C6QwjD4L.js";
|
|
6
6
|
import "../dist/react-transition-group/src/TransitionGroup.js";
|
|
7
7
|
import j, { useContext as E, useRef as H } from "react";
|
|
8
8
|
import "../config-provider/ConfigProvider.js";
|
package/color-picker/InputHex.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as v, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import "../dist/tinycolor/chunk/
|
|
2
|
+
import "../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
3
3
|
import { TinyColor as u } from "../dist/tinycolor/src/index.js";
|
|
4
4
|
import { useContext as I, useState as j, useEffect as D } from "react";
|
|
5
5
|
import "../config-provider/ConfigProvider.js";
|
package/color-picker/InputRgb.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import "../dist/tinycolor/chunk/
|
|
2
|
+
import "../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
3
3
|
import { TinyColor as f } from "../dist/tinycolor/src/index.js";
|
|
4
4
|
import { useContext as x } from "react";
|
|
5
5
|
import "../config-provider/ConfigProvider.js";
|
package/color-picker/Mode.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { ColorPickerMode as t } from "./interface.js";
|
|
2
|
+
const i = (r) => Array.isArray(r) && r.length === 1 ? r[0] : r, g = (r) => i(r) === t.Single, A = (r) => i(r) === t.Gradient, o = (r) => Array.isArray(i(r)), s = (r) => o(r) ? t.Gradient : r, c = (r, n, e) => r && Array.isArray(r) ? t.Gradient : r && typeof r == "string" ? t.Single : n && Array.isArray(n) ? t.Gradient : n && typeof n == "string" ? t.Single : s(e);
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
s as getInitialActiveMode,
|
|
4
5
|
i as getMode,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
c as getModeByValue,
|
|
7
|
+
A as isGradientMode,
|
|
8
|
+
o as isMultiMode,
|
|
9
|
+
g as isSingleMode
|
|
9
10
|
};
|
package/color-picker/Palette.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import "../dist/tinycolor/chunk/
|
|
2
|
+
import "../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
3
3
|
import { TinyColor as d } from "../dist/tinycolor/src/index.js";
|
|
4
4
|
import { useContext as h, useMemo as C } from "react";
|
|
5
5
|
import "../config-provider/ConfigProvider.js";
|
package/color-picker/Panel.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import "../dist/tinycolor/chunk/
|
|
2
|
+
import "../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
3
3
|
import { TinyColor as m } from "../dist/tinycolor/src/index.js";
|
|
4
4
|
import { useContext as ar, useState as lr, useMemo as sr } from "react";
|
|
5
5
|
import "../config-provider/ConfigProvider.js";
|
package/color-picker/colors.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../dist/tinycolor/chunk/
|
|
1
|
+
import "../../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
2
2
|
import { TinyColor as F } from "../../dist/tinycolor/src/index.js";
|
|
3
3
|
import { useState as v, useRef as q, useMemo as M, useCallback as E, useEffect as y } from "react";
|
|
4
4
|
import w from "../../components/common/hooks/useIsFirstRender.js";
|
package/color-picker/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../dist/tinycolor/chunk/
|
|
1
|
+
import "../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
2
2
|
import { TinyColor as s } from "../dist/tinycolor/src/index.js";
|
|
3
3
|
const G = (t) => t.sort((r, n) => r.percent - n.percent), H = (t, r, n) => Object.keys(t).reduce(
|
|
4
4
|
(e, o) => ({
|
|
@@ -1,17 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as N, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import $ from "@unicom-cloud/icons/IconUiEmpty";
|
|
3
3
|
import { UI_COMMON_PREFIX as y } from "@unicom-cloud/utils/constant/ui";
|
|
4
|
-
import { memo as
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
import { memo as g, forwardRef as x } from "react";
|
|
5
|
+
import { SpaceVertical as u } from "../space/index.js";
|
|
6
|
+
import s from "@unicom-cloud/utils/class-name";
|
|
7
|
+
function C(c, n) {
|
|
8
|
+
const { style: a, className: p, description: m, icon: o, imgSrc: r, prefixCls: l, ...f } = c, e = `${y}-empty`, i = l ?? e, d = typeof m == "string" ? m : "empty";
|
|
9
|
+
return /* @__PURE__ */ N(
|
|
10
|
+
u,
|
|
11
|
+
{
|
|
12
|
+
ref: n,
|
|
13
|
+
className: s(e, i, p),
|
|
14
|
+
style: a,
|
|
15
|
+
justifyContent: "center",
|
|
16
|
+
alignItems: "center",
|
|
17
|
+
gap: 5,
|
|
18
|
+
...f,
|
|
19
|
+
children: [
|
|
20
|
+
r ? /* @__PURE__ */ t(
|
|
21
|
+
"img",
|
|
22
|
+
{
|
|
23
|
+
className: s(`${e}-img`, `${i}-img`),
|
|
24
|
+
alt: d,
|
|
25
|
+
src: r
|
|
26
|
+
}
|
|
27
|
+
) : o ? /* @__PURE__ */ t("div", { className: s(`${e}-icon`, `${i}-icon`), children: o }) : /* @__PURE__ */ t($, { className: s(`${e}-icon`, `${i}-icon`) }),
|
|
28
|
+
/* @__PURE__ */ t("div", { className: s(`${e}-description`, `${i}-description`), children: m || "无数据" })
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
);
|
|
12
32
|
}
|
|
13
|
-
const
|
|
14
|
-
|
|
33
|
+
const E = g(x(C));
|
|
34
|
+
E.displayName = "Empty";
|
|
15
35
|
export {
|
|
16
|
-
|
|
36
|
+
E as default
|
|
17
37
|
};
|
|
@@ -3,7 +3,7 @@ import { UI_COMMON_PREFIX as C } from "@unicom-cloud/utils/constant/ui";
|
|
|
3
3
|
import { forwardRef as c } from "react";
|
|
4
4
|
import "@unicom-cloud/utils/case-name";
|
|
5
5
|
import _ from "@unicom-cloud/utils/class-name";
|
|
6
|
-
import "../../../dist/tinycolor/chunk/
|
|
6
|
+
import "../../../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
7
7
|
import "@unicom-cloud/utils/clipboard-copy";
|
|
8
8
|
import "../utils/dayjs.js";
|
|
9
9
|
import "../utils/dom.js";
|
|
@@ -34,16 +34,17 @@ import "lodash/isPlainObject";
|
|
|
34
34
|
import "../../../dist/react-transition-group/src/CSSTransition.js";
|
|
35
35
|
import "../../../dist/react-transition-group/src/ReplaceTransition.js";
|
|
36
36
|
import "../../../dist/react-transition-group/src/SwitchTransition.js";
|
|
37
|
-
import "../../../dist/react-transition-group/chunk/
|
|
37
|
+
import "../../../dist/react-transition-group/chunk/C6QwjD4L.js";
|
|
38
38
|
import "../../../dist/react-transition-group/src/TransitionGroup.js";
|
|
39
39
|
import "../utils/reactDOM.js";
|
|
40
40
|
import "@unicom-cloud/utils/file/saveAs";
|
|
41
41
|
import "@unicom-cloud/utils/screenfull";
|
|
42
42
|
import "@unicom-cloud/utils/tree";
|
|
43
|
-
import
|
|
43
|
+
import "lodash/isFunction";
|
|
44
44
|
import "uuid";
|
|
45
45
|
import "../../../dist/validate/src/index.js";
|
|
46
46
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
47
|
+
import { isArray as l, isNumber as I } from "@unicom-cloud/utils/is";
|
|
47
48
|
function f(t = 8) {
|
|
48
49
|
if (I(t))
|
|
49
50
|
return t;
|
|
@@ -2,7 +2,7 @@ import { jsx as d } from "react/jsx-runtime";
|
|
|
2
2
|
import u from "../../../dist/react-transition-group/src/CSSTransition.js";
|
|
3
3
|
import "../../../dist/react-transition-group/src/ReplaceTransition.js";
|
|
4
4
|
import "../../../dist/react-transition-group/src/SwitchTransition.js";
|
|
5
|
-
import "../../../dist/react-transition-group/chunk/
|
|
5
|
+
import "../../../dist/react-transition-group/chunk/C6QwjD4L.js";
|
|
6
6
|
import "../../../dist/react-transition-group/src/TransitionGroup.js";
|
|
7
7
|
import { useRef as f, useMemo as l, isValidElement as a, cloneElement as s } from "react";
|
|
8
8
|
import { supportRef as E } from "./is.js";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { TinyColor as
|
|
3
|
-
import { UI_PC_PREFIX as
|
|
4
|
-
import { CSS_VARIABLE_ELEMENT as
|
|
5
|
-
function
|
|
1
|
+
import { a as o } from "../../../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
2
|
+
import { TinyColor as y } from "../../../dist/tinycolor/src/index.js";
|
|
3
|
+
import { UI_PC_PREFIX as c } from "@unicom-cloud/utils/constant/ui";
|
|
4
|
+
import { CSS_VARIABLE_ELEMENT as E } from "./constant.js";
|
|
5
|
+
function v(l) {
|
|
6
6
|
const {
|
|
7
|
-
color:
|
|
8
|
-
element:
|
|
7
|
+
color: e,
|
|
8
|
+
element: a = E,
|
|
9
9
|
isDark: f = !1,
|
|
10
|
-
prefix:
|
|
11
|
-
} =
|
|
12
|
-
color:
|
|
13
|
-
},
|
|
14
|
-
new
|
|
15
|
-
|
|
16
|
-
`--${
|
|
17
|
-
|
|
10
|
+
prefix: t = c
|
|
11
|
+
} = l ?? {}, i = {
|
|
12
|
+
color: e
|
|
13
|
+
}, m = f ? o.generateDark(i) : o.generate(i);
|
|
14
|
+
new y(e).equals(o.primary.value) ? n() : m.forEach((s, r, p) => {
|
|
15
|
+
a.style.setProperty(
|
|
16
|
+
`--${t}-primary-${r + 1}`,
|
|
17
|
+
s.toRgbArrayString()
|
|
18
18
|
);
|
|
19
19
|
});
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
function n() {
|
|
21
|
+
m.forEach((s, r, p) => {
|
|
22
|
+
a.style.removeProperty(`--${t}-primary-${r + 1}`);
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return n;
|
|
26
26
|
}
|
|
27
27
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
v as default,
|
|
29
|
+
v as setPrimaryColor
|
|
30
30
|
};
|