@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
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { UI_PC_PREFIX as f } from "@unicom-cloud/utils/constant/ui.js";
|
|
2
2
|
import p from "lodash/isPlainObject";
|
|
3
3
|
import { CSS_VARIABLE_ELEMENT as $ } from "./constant.js";
|
|
4
|
-
import "../../../dist/tinycolor/chunk/
|
|
5
|
-
import { TinyColor as
|
|
6
|
-
function
|
|
7
|
-
if (!p(
|
|
8
|
-
const { prefix: e = f, ...
|
|
4
|
+
import "../../../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
5
|
+
import { TinyColor as n } from "../../../dist/tinycolor/src/index.js";
|
|
6
|
+
function b(s) {
|
|
7
|
+
if (!p(s)) return;
|
|
8
|
+
const { prefix: e = f, ...i } = s, c = {
|
|
9
9
|
primary: {
|
|
10
|
-
default: `--${e}-
|
|
11
|
-
hover: `--${e}-
|
|
12
|
-
active: `--${e}-
|
|
10
|
+
default: `--${e}-primary-6`,
|
|
11
|
+
hover: `--${e}-primary-5`,
|
|
12
|
+
active: `--${e}-primary-7`
|
|
13
13
|
},
|
|
14
14
|
success: {
|
|
15
15
|
default: `--${e}-green-6`,
|
|
@@ -17,9 +17,9 @@ function P(l) {
|
|
|
17
17
|
active: `--${e}-green-7`
|
|
18
18
|
},
|
|
19
19
|
info: {
|
|
20
|
-
default: `--${e}-
|
|
21
|
-
hover: `--${e}-
|
|
22
|
-
active: `--${e}-
|
|
20
|
+
default: `--${e}-primary-6`,
|
|
21
|
+
hover: `--${e}-primary-5`,
|
|
22
|
+
active: `--${e}-primary-7`
|
|
23
23
|
},
|
|
24
24
|
// warning: {
|
|
25
25
|
// default: `--${prefix}-orangered-6`,
|
|
@@ -37,19 +37,19 @@ function P(l) {
|
|
|
37
37
|
active: `--${e}-red-7`
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
Object.entries(
|
|
41
|
-
|
|
42
|
-
const
|
|
43
|
-
if (!
|
|
44
|
-
const
|
|
45
|
-
t.style.setProperty(r.default,
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
const
|
|
49
|
-
|
|
40
|
+
Object.entries(c).forEach(([o, r], m, h) => {
|
|
41
|
+
c[`${o}Color`] = r;
|
|
42
|
+
const l = i[o];
|
|
43
|
+
if (!l) return;
|
|
44
|
+
const a = new n(l), t = $;
|
|
45
|
+
t.style.setProperty(r.default, a.toRgbArrayString());
|
|
46
|
+
const y = i[`${o}Hover`];
|
|
47
|
+
y ? t.style.setProperty(r.hover, new n(y).toRgbArrayString()) : t.style.setProperty(r.hover, a.lighten(10).toRgbArrayString());
|
|
48
|
+
const g = i[`${o}Active`];
|
|
49
|
+
g ? t.style.setProperty(r.active, new n(g).toRgbArrayString()) : t.style.setProperty(r.active, a.lighten(-10).toRgbArrayString());
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
export {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
b as default,
|
|
54
|
+
b as setTheme
|
|
55
55
|
};
|
|
@@ -3,7 +3,7 @@ import E from "../../dom-helpers/addClass.js";
|
|
|
3
3
|
import { P as a } from "../chunk/F6QOOr2H.js";
|
|
4
4
|
import u from "../../dom-helpers/removeClass.js";
|
|
5
5
|
import x from "react";
|
|
6
|
-
import { f as C, T as h, c as g } from "../chunk/
|
|
6
|
+
import { f as C, T as h, c as g } from "../chunk/C6QwjD4L.js";
|
|
7
7
|
var f = Object.defineProperty, v = (i, s, e) => s in i ? f(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, r = (i, s, e) => v(i, typeof s != "symbol" ? s + "" : s, e);
|
|
8
8
|
const N = (i, s) => i && s && s.split(" ").forEach((e) => E(i, e)), p = (i, s) => i && s && s.split(" ").forEach((e) => u(i, e));
|
|
9
9
|
class l extends x.Component {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import { P as c } from "../chunk/F6QOOr2H.js";
|
|
3
3
|
import r from "react";
|
|
4
|
-
import { a as o, b as h, E as u } from "../chunk/
|
|
4
|
+
import { a as o, b as h, E as u } from "../chunk/C6QwjD4L.js";
|
|
5
5
|
import g from "./TransitionGroupContext.js";
|
|
6
6
|
var S = Object.defineProperty, b = (t, e, n) => e in t ? S(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, d = (t, e, n) => b(t, typeof e != "symbol" ? e + "" : e, n);
|
|
7
7
|
function x(t, e) {
|
|
@@ -2,13 +2,13 @@ import { TinyColor as e } from "../src/index.js";
|
|
|
2
2
|
const o = 10, k = {
|
|
3
3
|
name: { zh: "浪漫红", en: "red" },
|
|
4
4
|
value: "#F53F3F"
|
|
5
|
-
},
|
|
5
|
+
}, f = {
|
|
6
6
|
name: { zh: "晚秋红", en: "orangered" },
|
|
7
7
|
value: "#FF702E"
|
|
8
|
-
},
|
|
8
|
+
}, C = {
|
|
9
9
|
name: { zh: "活力橙", en: "orange" },
|
|
10
10
|
value: "#FFA500"
|
|
11
|
-
},
|
|
11
|
+
}, b = {
|
|
12
12
|
name: { zh: "黄昏", en: "gold" },
|
|
13
13
|
value: "#FFBD14"
|
|
14
14
|
}, _ = {
|
|
@@ -17,25 +17,25 @@ const o = 10, k = {
|
|
|
17
17
|
}, j = {
|
|
18
18
|
name: { zh: "新生绿", en: "lime" },
|
|
19
19
|
value: "#A1E619"
|
|
20
|
-
},
|
|
20
|
+
}, P = {
|
|
21
21
|
name: { zh: "仙野绿", en: "green" },
|
|
22
22
|
value: "#00B82B"
|
|
23
|
-
},
|
|
23
|
+
}, T = {
|
|
24
24
|
name: { zh: "碧涛青", en: "cyan" },
|
|
25
25
|
value: "#0BD0D0"
|
|
26
|
-
},
|
|
26
|
+
}, H = {
|
|
27
27
|
name: { zh: "海蔚蓝", en: "blue" },
|
|
28
28
|
value: "#2E8FFF"
|
|
29
|
-
}, H = {
|
|
30
|
-
name: { zh: "极致蓝", en: "pqbblue" },
|
|
31
|
-
value: "#1A5EFF"
|
|
32
29
|
}, L = {
|
|
30
|
+
name: { zh: "主题色(极致蓝)", en: "primary" },
|
|
31
|
+
value: "#1A5EFF"
|
|
32
|
+
}, M = {
|
|
33
33
|
name: { zh: "暗夜紫", en: "purple" },
|
|
34
34
|
value: "#7126D9"
|
|
35
|
-
},
|
|
35
|
+
}, O = {
|
|
36
36
|
name: { zh: "青春紫", en: "pinkpurple" },
|
|
37
37
|
value: "#D91AD9"
|
|
38
|
-
},
|
|
38
|
+
}, S = {
|
|
39
39
|
name: { zh: "品红", en: "magenta" },
|
|
40
40
|
value: "#FF299F"
|
|
41
41
|
}, t = {
|
|
@@ -43,21 +43,21 @@ const o = 10, k = {
|
|
|
43
43
|
value: "#6B6C6D"
|
|
44
44
|
}, i = [
|
|
45
45
|
k,
|
|
46
|
-
b,
|
|
47
46
|
f,
|
|
48
47
|
C,
|
|
48
|
+
b,
|
|
49
49
|
_,
|
|
50
50
|
j,
|
|
51
|
-
q,
|
|
52
51
|
P,
|
|
53
52
|
T,
|
|
54
53
|
H,
|
|
55
54
|
L,
|
|
56
55
|
M,
|
|
57
|
-
O
|
|
56
|
+
O,
|
|
57
|
+
S
|
|
58
58
|
];
|
|
59
59
|
var A, B;
|
|
60
|
-
const
|
|
60
|
+
const q = {
|
|
61
61
|
key: ((A = t.name) == null ? void 0 : A.en) ?? ((B = t.name) == null ? void 0 : B.zh) ?? t.name,
|
|
62
62
|
name: t.name,
|
|
63
63
|
primary: t.value,
|
|
@@ -94,17 +94,17 @@ const S = {
|
|
|
94
94
|
light: G({ color: u, length: o }),
|
|
95
95
|
dark: N({ color: u, length: o })
|
|
96
96
|
};
|
|
97
|
-
}).concat([
|
|
97
|
+
}).concat([q]);
|
|
98
98
|
function p(n = {}) {
|
|
99
99
|
const { length: s, color: F, level: r } = n, a = (s ?? o) / 2 + 1, u = r ?? a;
|
|
100
100
|
let m = new e(F);
|
|
101
|
-
const g = m.toHsv(),
|
|
101
|
+
const g = m.toHsv(), y = g.h, l = g.s, c = g.v, E = y === 0 && l === 0, d = u < a, h = Math.abs(a - u), I = 1, z = 0.1;
|
|
102
102
|
let v = l;
|
|
103
|
-
v > z && (
|
|
104
|
-
const J =
|
|
103
|
+
v > z && (d ? v = l - (l - z) / (a - 1) * h : v = l + (I - l) / (a - 1) * h), E && (v = l);
|
|
104
|
+
const J = E ? 0.97 : 1, D = 0.1;
|
|
105
105
|
let w = c;
|
|
106
|
-
return w > D && (
|
|
107
|
-
h:
|
|
106
|
+
return w > D && (d ? w = c + (J - c) / (a - 1) * h : w = c - (c - D) / (a - 1) * h), m = new e({
|
|
107
|
+
h: y,
|
|
108
108
|
s: v,
|
|
109
109
|
v: w
|
|
110
110
|
}), n.dark && (m = m.darken(n.amount ?? 10)), m;
|
|
@@ -132,51 +132,51 @@ function N(n = {}) {
|
|
|
132
132
|
const Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
133
133
|
__proto__: null,
|
|
134
134
|
LENGTH: o,
|
|
135
|
-
blue:
|
|
135
|
+
blue: H,
|
|
136
136
|
colorPresets: K,
|
|
137
137
|
colors: i,
|
|
138
|
-
cyan:
|
|
138
|
+
cyan: T,
|
|
139
139
|
default: i,
|
|
140
140
|
generate: G,
|
|
141
141
|
generateDark: N,
|
|
142
|
-
gold:
|
|
142
|
+
gold: b,
|
|
143
143
|
gray: t,
|
|
144
|
-
grayPresets:
|
|
145
|
-
green:
|
|
144
|
+
grayPresets: q,
|
|
145
|
+
green: P,
|
|
146
146
|
lime: j,
|
|
147
|
-
magenta:
|
|
148
|
-
orange:
|
|
149
|
-
orangered:
|
|
147
|
+
magenta: S,
|
|
148
|
+
orange: C,
|
|
149
|
+
orangered: f,
|
|
150
150
|
palette: p,
|
|
151
151
|
paletteDark: x,
|
|
152
|
-
pinkpurple:
|
|
153
|
-
|
|
154
|
-
purple:
|
|
152
|
+
pinkpurple: O,
|
|
153
|
+
primary: L,
|
|
154
|
+
purple: M,
|
|
155
155
|
red: k,
|
|
156
156
|
yellow: _
|
|
157
157
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
158
158
|
export {
|
|
159
159
|
o as L,
|
|
160
160
|
Q as a,
|
|
161
|
-
|
|
161
|
+
H as b,
|
|
162
162
|
i as c,
|
|
163
163
|
K as d,
|
|
164
|
-
|
|
164
|
+
T as e,
|
|
165
165
|
N as f,
|
|
166
166
|
G as g,
|
|
167
|
-
|
|
167
|
+
b as h,
|
|
168
168
|
t as i,
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
q as j,
|
|
170
|
+
P as k,
|
|
171
171
|
j as l,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
S as m,
|
|
173
|
+
f as n,
|
|
174
|
+
C as o,
|
|
175
175
|
p,
|
|
176
176
|
x as q,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
O as r,
|
|
178
|
+
L as s,
|
|
179
|
+
M as t,
|
|
180
180
|
k as u,
|
|
181
181
|
_ as y
|
|
182
182
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as f, a as h } from "../chunk/
|
|
1
|
+
import { c as f, a as h } from "../chunk/BOzCVdr0.js";
|
|
2
2
|
function p(c = [34797, 15747172]) {
|
|
3
3
|
return (a = 1) => {
|
|
4
4
|
const o = c, r = Math.log(256) / Math.log(2), l = o[0] >>> r * 2 & 255, s = o[0] >>> r * 1 & 255, g = o[0] >>> r * 0 & 255, t = o[1] >>> r * 2 & 255, e = o[1] >>> r * 1 & 255, n = o[1] >>> r * 0 & 255, u = t - (t - l) * a, i = e - (e - s) * a, m = n - (n - g) * a;
|
package/dist/tween/src/tween.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import l from "lodash/isFunction";
|
|
2
|
+
import m from "lodash/isString";
|
|
2
3
|
import a from "./easing.js";
|
|
3
|
-
import { bounceIn as
|
|
4
|
-
class
|
|
4
|
+
import { bounceIn as g, bounceInOut as F, bounceOut as b, cubicIn as k, cubicInOut as T, cubicOut as w, linear as S, quadIn as v, quadInOut as x, quadOut as A, quartIn as D, quartInOut as U, quartOut as j, quintIn as z, quintInOut as B, quintOut as C, sineIn as E, sineInOut as G, sineOut as H } from "./easing.js";
|
|
5
|
+
class O {
|
|
5
6
|
constructor(s) {
|
|
6
7
|
const {
|
|
7
8
|
from: i,
|
|
@@ -45,26 +46,26 @@ class I {
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
O as Tween,
|
|
50
|
+
g as bounceIn,
|
|
51
|
+
F as bounceInOut,
|
|
52
|
+
b as bounceOut,
|
|
53
|
+
k as cubicIn,
|
|
54
|
+
T as cubicInOut,
|
|
55
|
+
w as cubicOut,
|
|
56
|
+
O as default,
|
|
56
57
|
a as easing,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
58
|
+
S as linear,
|
|
59
|
+
v as quadIn,
|
|
60
|
+
x as quadInOut,
|
|
61
|
+
A as quadOut,
|
|
62
|
+
D as quartIn,
|
|
63
|
+
U as quartInOut,
|
|
64
|
+
j as quartOut,
|
|
65
|
+
z as quintIn,
|
|
66
|
+
B as quintInOut,
|
|
67
|
+
C as quintOut,
|
|
68
|
+
E as sineIn,
|
|
69
|
+
G as sineInOut,
|
|
70
|
+
H as sineOut
|
|
70
71
|
};
|