xtreme-ui 0.0.95 → 0.0.96
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/dist/components/base/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/base/ColorPicker/ColorPicker.js +18 -16
- package/dist/components/base/ColorPicker/colorPicker.module.scss.js +8 -8
- package/dist/components/base/ColorPopper/ColorPopper.d.ts.map +1 -1
- package/dist/components/base/ColorPopper/ColorPopper.js +165 -85
- package/dist/components/base/ColorPopper/types.d.ts +11 -0
- package/dist/components/base/ColorPopper/types.d.ts.map +1 -1
- package/dist/components/base/Icon/Icon.js +12 -12
- package/dist/components/base/Icon/types.d.ts +2 -0
- package/dist/components/base/Icon/types.d.ts.map +1 -1
- package/dist/components/base/Textfield/Textfield.d.ts.map +1 -1
- package/dist/components/base/Textfield/Textfield.js +23 -21
- package/dist/components/base/Textfield/textfield.module.scss.js +19 -17
- package/dist/components/base/Textfield/types.d.ts +1 -0
- package/dist/components/base/Textfield/types.d.ts.map +1 -1
- package/dist/components/layout/ThemePicker/ThemePicker.d.ts.map +1 -1
- package/dist/components/layout/ThemePicker/ThemePicker.js +50 -46
- package/dist/components/layout/ThemeSelect/ThemeSelect.d.ts +2 -2
- package/dist/components/layout/ThemeSelect/ThemeSelect.d.ts.map +1 -1
- package/dist/components/layout/ThemeSelect/ThemeSelect.js +37 -0
- package/dist/components/layout/ThemeSelect/types.d.ts +2 -4
- package/dist/components/layout/ThemeSelect/types.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -15
- package/dist/utils/constants/theme.d.ts +1 -1
- package/dist/utils/constants/theme.d.ts.map +1 -1
- package/dist/utils/constants/theme.js +17 -19
- package/dist/xtreme-ui.css +1 -1
- package/package.json +1 -1
- package/dist/components/layout/ThemePicker/themePicker.module.scss.js +0 -39
|
@@ -1,67 +1,71 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import
|
|
5
|
-
import { ActionCard as
|
|
6
|
-
import { Button as
|
|
7
|
-
import { Icon as
|
|
8
|
-
import { useXTheme as
|
|
2
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as N } from "react";
|
|
4
|
+
import i from "clsx";
|
|
5
|
+
import { ActionCard as v } from "../../base/ActionCard/ActionCard.js";
|
|
6
|
+
import { Button as C } from "../../base/Button/Button.js";
|
|
7
|
+
import { Icon as $ } from "../../base/Icon/Icon.js";
|
|
8
|
+
import { useXTheme as u } from "../../context/useContext.js";
|
|
9
9
|
import { isEqual as S } from "../../../utils/function/common.js";
|
|
10
|
-
import { THEME_SCHEME as
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
import { THEME_SCHEME as E, ThemeColorsPreset as g } from "../../../utils/constants/theme.js";
|
|
11
|
+
import { ThemeSelect as k } from "../ThemeSelect/ThemeSelect.js";
|
|
12
|
+
/* empty css */
|
|
13
|
+
import { EThemePickerGap as x, EThemePickerSize as P } from "./types.js";
|
|
14
|
+
const y = Object.values(g), I = N((l, c) => {
|
|
15
|
+
const { className: a, size: m = "default" } = l, { themeScheme: t, setThemeScheme: h, themeColor: n, setThemeColor: d } = u(), p = i(
|
|
16
|
+
"xtrThemePicker",
|
|
17
|
+
a
|
|
17
18
|
);
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ r(
|
|
19
20
|
"div",
|
|
20
21
|
{
|
|
21
|
-
ref:
|
|
22
|
-
className:
|
|
22
|
+
ref: c,
|
|
23
|
+
className: p,
|
|
23
24
|
role: "region",
|
|
24
25
|
style: {
|
|
25
|
-
"--schemeSize": `${
|
|
26
|
-
"--schemeGap": `${x[
|
|
26
|
+
"--schemeSize": `${P[m]}px`,
|
|
27
|
+
"--schemeGap": `${x[m]}px`
|
|
27
28
|
},
|
|
28
29
|
children: [
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
|
|
30
|
+
/* @__PURE__ */ o("div", { className: "themeSchemes", role: "radiogroup", children: E.map(({ name: e, icon: s }, f) => /* @__PURE__ */ r(
|
|
31
|
+
v,
|
|
31
32
|
{
|
|
32
|
-
className:
|
|
33
|
-
onClick: () =>
|
|
33
|
+
className: i("themeSchemeItem", e, t === e && "active"),
|
|
34
|
+
onClick: () => h(e),
|
|
34
35
|
children: [
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ r("div", { className: "design", children: [
|
|
37
|
+
/* @__PURE__ */ o("div", { className: "navigation", children: Array.from({ length: 6 }, (j, T) => /* @__PURE__ */ o("div", { className: "navigationItem" }, `ThemeScheme-${e}-navigation-${T}`)) }),
|
|
38
|
+
/* @__PURE__ */ r("div", { className: "content", children: [
|
|
39
|
+
/* @__PURE__ */ o("div", { className: "header" }),
|
|
40
|
+
/* @__PURE__ */ o("div", { className: "profile" })
|
|
40
41
|
] })
|
|
41
42
|
] }),
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ r("div", { className: "footer", children: [
|
|
44
|
+
/* @__PURE__ */ o($, { className: "footerIcon", code: t === e ? "f058" : s, type: "solid" }),
|
|
45
|
+
/* @__PURE__ */ o("span", { className: "footerLabel", children: e })
|
|
45
46
|
] })
|
|
46
47
|
]
|
|
47
48
|
},
|
|
48
|
-
`ThemeScheme-${e}-${
|
|
49
|
+
`ThemeScheme-${e}-${f}`
|
|
49
50
|
)) }),
|
|
50
|
-
/* @__PURE__ */ r("div", { className:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
/* @__PURE__ */ r("div", { className: i("themeColors", m), role: "radiogroup", children: [
|
|
52
|
+
y.map((e, s) => /* @__PURE__ */ o(
|
|
53
|
+
C,
|
|
54
|
+
{
|
|
55
|
+
className: "themeColorsItem",
|
|
56
|
+
size: m,
|
|
57
|
+
icon: "f00c",
|
|
58
|
+
iconType: "solid",
|
|
59
|
+
style: {
|
|
60
|
+
"--themeColor": `${e.h} ${e.s}% ${e.l}%`,
|
|
61
|
+
color: S(e, n) ? "white" : "transparent"
|
|
62
|
+
},
|
|
63
|
+
onClick: () => d(e)
|
|
60
64
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
`ThemeColor-${e.h}${e.s}${e.l}-${s}`
|
|
66
|
+
)),
|
|
67
|
+
/* @__PURE__ */ o(k, {})
|
|
68
|
+
] })
|
|
65
69
|
]
|
|
66
70
|
}
|
|
67
71
|
);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ThemeSelect: import('react').ForwardRefExoticComponent<
|
|
1
|
+
import { TThemeSelectProps } from './types';
|
|
2
|
+
export declare const ThemeSelect: import('react').ForwardRefExoticComponent<TThemeSelectProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
3
|
//# sourceMappingURL=ThemeSelect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/ThemeSelect/ThemeSelect.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemeSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/ThemeSelect/ThemeSelect.tsx"],"names":[],"mappings":"AAUA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,WAAW,8GA4BtB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as p } from "react";
|
|
4
|
+
import n from "clsx";
|
|
5
|
+
import { ColorPopper as f } from "../../base/ColorPopper/ColorPopper.js";
|
|
6
|
+
import { useXTheme as T } from "../../context/useContext.js";
|
|
7
|
+
import { useScreenType as d } from "../../hooks/useScreen.js";
|
|
8
|
+
import { isValidThemeColor as u } from "../../../utils/helper/colorHelper.js";
|
|
9
|
+
import { ThemeColorsPreset as C } from "../../../utils/constants/theme.js";
|
|
10
|
+
/* empty css */
|
|
11
|
+
const S = p((o, m) => {
|
|
12
|
+
const { className: r, withSwatch: t } = o, { themeScheme: s, setThemeScheme: l, themeColor: e, setThemeColor: i } = T(), { isMobile: c } = d(), h = n(
|
|
13
|
+
"xtrThemeSelect",
|
|
14
|
+
r
|
|
15
|
+
);
|
|
16
|
+
return !e || !u(e) ? null : /* @__PURE__ */ a(
|
|
17
|
+
f,
|
|
18
|
+
{
|
|
19
|
+
ref: m,
|
|
20
|
+
className: h,
|
|
21
|
+
placeholder: "Theme",
|
|
22
|
+
alpha: !1,
|
|
23
|
+
swatch: t ? Object.values(C) : void 0,
|
|
24
|
+
colorHeading: "Theme Color",
|
|
25
|
+
schemeHeading: "Theme scheme",
|
|
26
|
+
themeScheme: s,
|
|
27
|
+
size: c ? "mini" : "default",
|
|
28
|
+
setThemeScheme: l,
|
|
29
|
+
color: e,
|
|
30
|
+
setColor: i
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
});
|
|
34
|
+
S.displayName = "ThemeSelect";
|
|
35
|
+
export {
|
|
36
|
+
S as ThemeSelect
|
|
37
|
+
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { EIconType } from '../../base/Icon/types';
|
|
2
|
-
|
|
3
|
-
export type TThemeSwitchProps = {
|
|
2
|
+
export type TThemeSelectProps = {
|
|
4
3
|
className?: string;
|
|
5
4
|
withLabel?: boolean;
|
|
6
|
-
|
|
7
|
-
size?: keyof typeof EButtonSize;
|
|
5
|
+
withSwatch?: boolean;
|
|
8
6
|
iconType?: keyof typeof EIconType;
|
|
9
7
|
};
|
|
10
8
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/ThemeSelect/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/ThemeSelect/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,MAAM,MAAM,iBAAiB,GAAG;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;CAClC,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export { Navigation } from './components/layout/Navigation/Navigation';
|
|
|
34
34
|
export { type TNavigationProps, type TNavigationRoute } from './components/layout/Navigation/types';
|
|
35
35
|
export { ThemePicker } from './components/layout/ThemePicker/ThemePicker';
|
|
36
36
|
export { type TThemePickerProps } from './components/layout/ThemePicker/types';
|
|
37
|
+
export { ThemeSelect } from './components/layout/ThemeSelect/ThemeSelect';
|
|
38
|
+
export { type TThemeSelectProps } from './components/layout/ThemeSelect/types';
|
|
37
39
|
export { ThemeSwitch } from './components/layout/ThemeSwitch/ThemeSwitch';
|
|
38
40
|
export { type TThemeSwitchProps } from './components/layout/ThemeSwitch/types';
|
|
39
41
|
export { ImageEditor } from './components/layout/ImageEditor/ImageEditor';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1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,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAG/E,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAG/E,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAG/E,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { FACE_ICONS as x } from "./utils/constants/iconCollection.js";
|
|
|
4
4
|
import { getLocalState as s, setLocalState as n } from "./utils/function/localStorage.js";
|
|
5
5
|
import { assignRef as S, mergeRefs as g } from "./utils/function/mergeRefs.js";
|
|
6
6
|
import { capitalizeFirstLetter as P, safeStringFromCodePoint as d, unicodeToString as C } from "./utils/function/string.js";
|
|
7
|
-
import { doc as T, elementObserver as u, getCssProperty as I, getCssPropertyPx as
|
|
7
|
+
import { doc as T, elementObserver as u, getCssProperty as I, getCssPropertyPx as h, getCssPropertyVh as y, getCssPropertyVw as z, isClient as A, localStore as F, setCssProperty as k, waitForElement as v, win as L } from "./utils/helper/domHelper.js";
|
|
8
8
|
import { createImage as D, getCroppedImg as R, getImageSize as B, getRadianAngle as M, readImageFile as O, readImageSrc as X } from "./utils/helper/imageHelper.js";
|
|
9
9
|
import { themeController as H } from "./utils/helper/themeController.js";
|
|
10
10
|
import { XProvider as V } from "./components/context/index.js";
|
|
@@ -25,7 +25,7 @@ import { ESpinnerSize as Pe } from "./components/base/Spinner/types.js";
|
|
|
25
25
|
import { Textfield as Ce } from "./components/base/Textfield/Textfield.js";
|
|
26
26
|
import { DatePicker as Te } from "./components/base/DatePicker/DatePicker.js";
|
|
27
27
|
import { EDatePickerTypes as Ie } from "./components/base/DatePicker/types.js";
|
|
28
|
-
import { FilePicker as
|
|
28
|
+
import { FilePicker as ye } from "./components/base/FilePicker/FilePicker.js";
|
|
29
29
|
import { FilePickerIcon as Ae } from "./components/base/FilePicker/types.js";
|
|
30
30
|
import { Select as ke } from "./components/base/Select/Select.js";
|
|
31
31
|
import { ColorPopper as Le } from "./components/base/ColorPopper/ColorPopper.js";
|
|
@@ -33,11 +33,12 @@ import { Sider as De } from "./components/layout/Sider/Sider.js";
|
|
|
33
33
|
import { SiderModal as Be } from "./components/layout/SiderModal/SiderModal.js";
|
|
34
34
|
import { Navigation as Oe } from "./components/layout/Navigation/Navigation.js";
|
|
35
35
|
import { ThemePicker as be } from "./components/layout/ThemePicker/ThemePicker.js";
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
36
|
+
import { ThemeSelect as Ne } from "./components/layout/ThemeSelect/ThemeSelect.js";
|
|
37
|
+
import { ThemeSwitch as _e } from "./components/layout/ThemeSwitch/ThemeSwitch.js";
|
|
38
|
+
import { ImageEditor as je } from "./components/layout/ImageEditor/ImageEditor.js";
|
|
39
|
+
import { useScreenType as Je } from "./components/hooks/useScreen.js";
|
|
40
|
+
import { usePersistingState as Qe } from "./components/hooks/usePersistingState.js";
|
|
41
|
+
import { useDebouncedEffect as We } from "./components/hooks/useDebouncedEffect.js";
|
|
41
42
|
export {
|
|
42
43
|
J as ActionCard,
|
|
43
44
|
W as Avatar,
|
|
@@ -52,10 +53,10 @@ export {
|
|
|
52
53
|
se as ELottieSize,
|
|
53
54
|
Pe as ESpinnerSize,
|
|
54
55
|
x as FACE_ICONS,
|
|
55
|
-
|
|
56
|
+
ye as FilePicker,
|
|
56
57
|
Ae as FilePickerIcon,
|
|
57
58
|
me as Icon,
|
|
58
|
-
|
|
59
|
+
je as ImageEditor,
|
|
59
60
|
xe as Lottie,
|
|
60
61
|
Oe as Navigation,
|
|
61
62
|
ce as ProgressBar,
|
|
@@ -68,7 +69,8 @@ export {
|
|
|
68
69
|
Ce as Textfield,
|
|
69
70
|
p as ThemeColorsPreset,
|
|
70
71
|
be as ThemePicker,
|
|
71
|
-
Ne as
|
|
72
|
+
Ne as ThemeSelect,
|
|
73
|
+
_e as ThemeSwitch,
|
|
72
74
|
V as XProvider,
|
|
73
75
|
S as assignRef,
|
|
74
76
|
P as capitalizeFirstLetter,
|
|
@@ -78,8 +80,8 @@ export {
|
|
|
78
80
|
u as elementObserver,
|
|
79
81
|
R as getCroppedImg,
|
|
80
82
|
I as getCssProperty,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
h as getCssPropertyPx,
|
|
84
|
+
y as getCssPropertyVh,
|
|
83
85
|
z as getCssPropertyVw,
|
|
84
86
|
B as getImageSize,
|
|
85
87
|
s as getLocalState,
|
|
@@ -94,9 +96,9 @@ export {
|
|
|
94
96
|
n as setLocalState,
|
|
95
97
|
H as themeController,
|
|
96
98
|
C as unicodeToString,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
We as useDebouncedEffect,
|
|
100
|
+
Qe as usePersistingState,
|
|
101
|
+
Je as useScreenType,
|
|
100
102
|
G as useXData,
|
|
101
103
|
j as useXTheme,
|
|
102
104
|
v as waitForElement,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/utils/constants/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE5E,eAAO,MAAM,OAAO;;;;CAInB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;EAIf,CAAC;AAEX,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/utils/constants/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE5E,eAAO,MAAM,OAAO;;;;CAInB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;EAIf,CAAC;AAEX,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAWzD,CAAC;AAEF,eAAO,MAAM,kBAAkB,aAA2B,CAAC"}
|
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
import { EThemeScheme as e } from "../../components/context/Theme/types.js";
|
|
2
|
-
const
|
|
2
|
+
const s = {
|
|
3
3
|
themeSchemeAttr: "data-theme-scheme",
|
|
4
4
|
themeScheme: "xThemeScheme",
|
|
5
5
|
themeColor: "xThemeColor"
|
|
6
6
|
}, m = [
|
|
7
|
-
{ name: e.auto, icon: "
|
|
7
|
+
{ name: e.auto, icon: "e163" },
|
|
8
8
|
{ name: e.light, icon: "f763" },
|
|
9
9
|
{ name: e.dark, icon: "f754" }
|
|
10
|
-
],
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
// hsl(256 100 66)
|
|
23
|
-
}, r = o.orange;
|
|
10
|
+
], h = {
|
|
11
|
+
cherry: { h: 350, s: 70, l: 50 },
|
|
12
|
+
blush: { h: 335, s: 75, l: 55 },
|
|
13
|
+
saffron: { h: 19, s: 100, l: 56 },
|
|
14
|
+
sunset: { h: 28, s: 80, l: 55 },
|
|
15
|
+
mango: { h: 45, s: 80, l: 50 },
|
|
16
|
+
clay: { h: 20, s: 25, l: 50 },
|
|
17
|
+
mint: { h: 135, s: 45, l: 50 },
|
|
18
|
+
ocean: { h: 170, s: 60, l: 55 },
|
|
19
|
+
sky: { h: 205, s: 75, l: 50 },
|
|
20
|
+
plum: { h: 280, s: 40, l: 55 }
|
|
21
|
+
}, t = h.orange;
|
|
24
22
|
export {
|
|
25
|
-
|
|
23
|
+
s as STORAGE,
|
|
26
24
|
m as THEME_SCHEME,
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
h as ThemeColorsPreset,
|
|
26
|
+
t as defaultColorPreset
|
|
29
27
|
};
|