xtreme-ui 0.0.94 → 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/ActionCard/actionCard.module.scss.js +6 -6
- package/dist/components/base/Button/button.module.scss.js +23 -23
- 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 +10 -1
- package/dist/components/base/ColorPopper/ColorPopper.d.ts.map +1 -1
- package/dist/components/base/ColorPopper/ColorPopper.js +168 -67
- package/dist/components/base/ColorPopper/types.d.ts +16 -4
- package/dist/components/base/ColorPopper/types.d.ts.map +1 -1
- package/dist/components/base/Icon/Icon.js +13 -13
- 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/ProgressBar/progressbar.module.scss.js +1 -1
- package/dist/components/base/Select/Select.d.ts.map +1 -1
- package/dist/components/base/Select/Select.js +56 -47
- package/dist/components/base/Select/types.d.ts +9 -4
- package/dist/components/base/Select/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 +22 -20
- package/dist/components/base/Textfield/types.d.ts +1 -0
- package/dist/components/base/Textfield/types.d.ts.map +1 -1
- package/dist/components/context/Theme/ThemeContext.d.ts.map +1 -1
- package/dist/components/context/Theme/ThemeContext.js +19 -14
- package/dist/components/context/Theme/types.d.ts +12 -17
- package/dist/components/context/Theme/types.d.ts.map +1 -1
- package/dist/components/context/Theme/types.js +4 -8
- package/dist/components/layout/Navigation/navigation.module.scss.js +9 -9
- package/dist/components/layout/Sider/sider.module.scss.js +6 -6
- package/dist/components/layout/ThemePicker/ThemePicker.d.ts.map +1 -1
- package/dist/components/layout/ThemePicker/ThemePicker.js +53 -50
- package/dist/components/layout/ThemeSelect/ThemeSelect.d.ts +3 -0
- package/dist/components/layout/ThemeSelect/ThemeSelect.d.ts.map +1 -0
- package/dist/components/layout/ThemeSelect/ThemeSelect.js +37 -0
- package/dist/components/layout/ThemeSelect/types.d.ts +8 -0
- package/dist/components/layout/ThemeSelect/types.d.ts.map +1 -0
- package/dist/components/layout/ThemeSwitch/ThemeSwitch.d.ts.map +1 -1
- package/dist/components/layout/ThemeSwitch/ThemeSwitch.js +40 -40
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +99 -95
- package/dist/utils/constants/theme.d.ts +19 -0
- package/dist/utils/constants/theme.d.ts.map +1 -0
- package/dist/utils/constants/theme.js +27 -0
- package/dist/utils/function/common.d.ts +2 -0
- package/dist/utils/function/common.d.ts.map +1 -0
- package/dist/utils/function/common.js +4 -0
- package/dist/utils/helper/colorHelper.d.ts +5 -0
- package/dist/utils/helper/colorHelper.d.ts.map +1 -0
- package/dist/utils/helper/colorHelper.js +24 -0
- package/dist/utils/helper/themeController.d.ts +2 -1
- package/dist/utils/helper/themeController.d.ts.map +1 -1
- package/dist/utils/helper/themeController.js +32 -13
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/xtreme-ui.css +1 -1
- package/package.json +4 -1
- package/dist/components/base/ColorPopper/colorPopper.module.scss.js +0 -11
- package/dist/components/layout/ThemePicker/themePicker.module.scss.js +0 -39
- package/dist/utils/constants/commons.d.ts +0 -18
- package/dist/utils/constants/commons.d.ts.map +0 -1
- package/dist/utils/constants/commons.js +0 -15
|
@@ -1,65 +1,74 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useState as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
2
|
+
import { jsxs as I, jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import { useState as O, useMemo as j } from "react";
|
|
4
|
+
import y from "clsx";
|
|
5
|
+
import z from "react-select";
|
|
6
|
+
import { isEqual as d } from "../../../utils/function/common.js";
|
|
7
|
+
import { Icon as H } from "../Icon/Icon.js";
|
|
7
8
|
/* empty css */
|
|
8
|
-
function $(
|
|
9
|
+
function $(h) {
|
|
9
10
|
const {
|
|
10
|
-
className:
|
|
11
|
-
multi:
|
|
12
|
-
placeholder:
|
|
13
|
-
noOptionsMessage:
|
|
14
|
-
icon:
|
|
15
|
-
size:
|
|
16
|
-
iconType:
|
|
17
|
-
clearable:
|
|
18
|
-
searchable:
|
|
19
|
-
disabled:
|
|
20
|
-
loading:
|
|
21
|
-
options:
|
|
11
|
+
className: S,
|
|
12
|
+
multi: l = !1,
|
|
13
|
+
placeholder: a = "Select an option",
|
|
14
|
+
noOptionsMessage: v,
|
|
15
|
+
icon: n,
|
|
16
|
+
size: i = "default",
|
|
17
|
+
iconType: x = "regular",
|
|
18
|
+
clearable: g = !0,
|
|
19
|
+
searchable: m = !0,
|
|
20
|
+
disabled: C = !1,
|
|
21
|
+
loading: b = !1,
|
|
22
|
+
options: o,
|
|
22
23
|
value: t,
|
|
23
|
-
onChange:
|
|
24
|
-
} =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
onChange: p
|
|
25
|
+
} = h, [u, f] = O(!1), N = j(() => {
|
|
26
|
+
if (l) {
|
|
27
|
+
const e = t ?? [];
|
|
28
|
+
return o.filter((s) => e.some((r) => d(s.value, r)));
|
|
29
|
+
} else
|
|
30
|
+
return o.find((e) => d(e.value, t)) || null;
|
|
31
|
+
}, [l, o, t]), M = y(
|
|
28
32
|
"xtrSelectWrapper",
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
i && `${i}Size`,
|
|
34
|
+
l ? "multi" : "single",
|
|
35
|
+
n && "withIcon",
|
|
32
36
|
!!t && "withValue",
|
|
33
|
-
|
|
34
|
-
!
|
|
35
|
-
|
|
37
|
+
u && "open",
|
|
38
|
+
!m && "noSearch",
|
|
39
|
+
S
|
|
36
40
|
);
|
|
37
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ I("div", { className: M, children: [
|
|
38
42
|
/* @__PURE__ */ c(
|
|
39
|
-
|
|
43
|
+
z,
|
|
40
44
|
{
|
|
41
45
|
className: "xtrSelect",
|
|
42
46
|
classNamePrefix: "xtrSelect",
|
|
43
|
-
isMulti:
|
|
44
|
-
menuIsOpen:
|
|
45
|
-
onMenuOpen: () =>
|
|
46
|
-
onMenuClose: () =>
|
|
47
|
-
noOptionsMessage:
|
|
48
|
-
placeholder:
|
|
49
|
-
isClearable:
|
|
50
|
-
isSearchable:
|
|
51
|
-
isDisabled:
|
|
52
|
-
isLoading:
|
|
53
|
-
options:
|
|
54
|
-
value:
|
|
47
|
+
isMulti: l,
|
|
48
|
+
menuIsOpen: u,
|
|
49
|
+
onMenuOpen: () => f(!0),
|
|
50
|
+
onMenuClose: () => f(!1),
|
|
51
|
+
noOptionsMessage: v,
|
|
52
|
+
placeholder: a,
|
|
53
|
+
isClearable: g,
|
|
54
|
+
isSearchable: m,
|
|
55
|
+
isDisabled: C,
|
|
56
|
+
isLoading: b,
|
|
57
|
+
options: o,
|
|
58
|
+
value: N,
|
|
55
59
|
onChange: (e) => {
|
|
56
|
-
|
|
57
|
-
|
|
60
|
+
if (l) {
|
|
61
|
+
const s = (e == null ? void 0 : e.map((r) => r.value)) ?? [];
|
|
62
|
+
p(s);
|
|
63
|
+
} else {
|
|
64
|
+
const s = (e == null ? void 0 : e.value) ?? null;
|
|
65
|
+
p(s);
|
|
66
|
+
}
|
|
58
67
|
}
|
|
59
68
|
}
|
|
60
69
|
),
|
|
61
|
-
|
|
62
|
-
|
|
70
|
+
a && !l && /* @__PURE__ */ c("p", { className: "placeholder", children: a }),
|
|
71
|
+
n && /* @__PURE__ */ c(H, { className: "xtrSelectIcon", code: n, type: x })
|
|
63
72
|
] });
|
|
64
73
|
}
|
|
65
74
|
export {
|
|
@@ -24,11 +24,16 @@ type TCommonProps<T> = {
|
|
|
24
24
|
loading?: boolean;
|
|
25
25
|
options: Option<T>[];
|
|
26
26
|
};
|
|
27
|
-
type SingleProps<T> = TCommonProps<T> & {
|
|
27
|
+
export type SingleProps<T> = TCommonProps<T> & {
|
|
28
28
|
multi?: false;
|
|
29
|
-
value?: T;
|
|
30
|
-
onChange: (value: T) => void;
|
|
29
|
+
value?: T | undefined;
|
|
30
|
+
onChange: (value: T | undefined) => void;
|
|
31
31
|
};
|
|
32
|
-
export type
|
|
32
|
+
export type MultiProps<T> = TCommonProps<T> & {
|
|
33
|
+
multi: true;
|
|
34
|
+
value?: T[];
|
|
35
|
+
onChange: (value: T[]) => void;
|
|
36
|
+
};
|
|
37
|
+
export type TSelectProps<T> = SingleProps<T> | MultiProps<T>;
|
|
33
38
|
export {};
|
|
34
39
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,oBAAY,WAAW;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC;AAEpD,KAAK,YAAY,CAAC,CAAC,IAAI;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAA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
|
|
1
|
+
{"version":3,"file":"Textfield.d.ts","sourceRoot":"","sources":["../../../../src/components/base/Textfield/Textfield.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,SAAS,8GAwGpB,CAAC"}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as w, jsx as o } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import
|
|
5
|
-
import { Icon as
|
|
3
|
+
import { forwardRef as D, useMemo as f } from "react";
|
|
4
|
+
import F from "clsx";
|
|
5
|
+
import { Icon as L } from "../Icon/Icon.js";
|
|
6
6
|
import r from "./textfield.module.scss.js";
|
|
7
|
-
const
|
|
7
|
+
const U = D((g, T) => {
|
|
8
8
|
const {
|
|
9
|
-
className:
|
|
10
|
-
style:
|
|
9
|
+
className: v,
|
|
10
|
+
style: C,
|
|
11
11
|
type: e = "text",
|
|
12
|
-
textarea:
|
|
12
|
+
textarea: t,
|
|
13
13
|
placeholder: a,
|
|
14
14
|
autoComplete: m = "off",
|
|
15
|
+
active: I,
|
|
15
16
|
autoFocus: d,
|
|
16
17
|
icon: l,
|
|
17
18
|
iconType: E = "regular",
|
|
@@ -23,28 +24,29 @@ const L = v((g, T) => {
|
|
|
23
24
|
onKeyDown: i,
|
|
24
25
|
onEnterKey: u
|
|
25
26
|
} = g, p = f(() => {
|
|
26
|
-
if (
|
|
27
|
+
if (t === !0) return null;
|
|
27
28
|
if (l) return l;
|
|
28
29
|
if (e === "number") return "23";
|
|
29
30
|
if (e === "search") return "f002";
|
|
30
31
|
if (e === "password") return "f30d";
|
|
31
|
-
}, [
|
|
32
|
+
}, [t, l, e]), K = f(() => {
|
|
32
33
|
if (a) return a;
|
|
33
34
|
if (e === "number") return "Enter a number";
|
|
34
35
|
if (e === "search") return "Search";
|
|
35
36
|
if (e === "password") return "Enter password";
|
|
36
37
|
if (e === "phone") return "Enter phone number";
|
|
37
|
-
}, [a, e]), j = f(() => e === "phone" ? "number" : e, [e]), N = (
|
|
38
|
-
c == null || c(
|
|
39
|
-
}, b = (
|
|
40
|
-
|
|
41
|
-
}, k =
|
|
38
|
+
}, [a, e]), j = f(() => e === "phone" ? "number" : e, [e]), N = (n) => {
|
|
39
|
+
c == null || c(n);
|
|
40
|
+
}, b = (n) => {
|
|
41
|
+
n.key === "Enter" && (u == null || u(n)), i == null || i(n);
|
|
42
|
+
}, k = F(
|
|
42
43
|
r.textfield,
|
|
43
44
|
p && r.withIcon,
|
|
44
|
-
|
|
45
|
+
t && r.textarea,
|
|
45
46
|
s && r.hasValue,
|
|
46
47
|
e === "phone" && r.phone,
|
|
47
|
-
|
|
48
|
+
I && r.active,
|
|
49
|
+
v
|
|
48
50
|
);
|
|
49
51
|
return /* @__PURE__ */ w(
|
|
50
52
|
"div",
|
|
@@ -52,14 +54,14 @@ const L = v((g, T) => {
|
|
|
52
54
|
ref: T,
|
|
53
55
|
className: k,
|
|
54
56
|
role: "textbox",
|
|
55
|
-
style:
|
|
57
|
+
style: C,
|
|
56
58
|
children: [
|
|
57
|
-
p && !
|
|
59
|
+
p && !t && /* @__PURE__ */ o(L, { className: r.icon, code: p, type: E }),
|
|
58
60
|
e === "phone" && /* @__PURE__ */ w("div", { className: r.dialCode, children: [
|
|
59
61
|
/* @__PURE__ */ o("span", { style: { backgroundImage: "url(https://flagcdn.com/in.svg)" } }),
|
|
60
62
|
/* @__PURE__ */ o("p", { children: "+91" })
|
|
61
63
|
] }),
|
|
62
|
-
|
|
64
|
+
t ? /* @__PURE__ */ o(
|
|
63
65
|
"textarea",
|
|
64
66
|
{
|
|
65
67
|
className: r.input,
|
|
@@ -92,7 +94,7 @@ const L = v((g, T) => {
|
|
|
92
94
|
}
|
|
93
95
|
);
|
|
94
96
|
});
|
|
95
|
-
|
|
97
|
+
U.displayName = "Textfield";
|
|
96
98
|
export {
|
|
97
|
-
|
|
99
|
+
U as Textfield
|
|
98
100
|
};
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
const
|
|
2
|
-
textfield:
|
|
3
|
-
icon:
|
|
4
|
-
dialCode:
|
|
5
|
-
input:
|
|
6
|
-
placeholder:
|
|
7
|
-
withIcon:
|
|
8
|
-
textarea:
|
|
9
|
-
phone:
|
|
10
|
-
hasValue:
|
|
1
|
+
const t = "_textfield_1dif2_1", e = "_icon_1dif2_29", _ = "_dialCode_1dif2_39", i = "_input_1dif2_60", o = "_placeholder_1dif2_79", a = "_withIcon_1dif2_94", c = "_textarea_1dif2_104", d = "_phone_1dif2_114", n = "_hasValue_1dif2_120", l = "_active_1dif2_141", s = {
|
|
2
|
+
textfield: t,
|
|
3
|
+
icon: e,
|
|
4
|
+
dialCode: _,
|
|
5
|
+
input: i,
|
|
6
|
+
placeholder: o,
|
|
7
|
+
withIcon: a,
|
|
8
|
+
textarea: c,
|
|
9
|
+
phone: d,
|
|
10
|
+
hasValue: n,
|
|
11
|
+
active: l
|
|
11
12
|
};
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
l as active,
|
|
15
|
+
s as default,
|
|
16
|
+
_ as dialCode,
|
|
17
|
+
n as hasValue,
|
|
18
|
+
e as icon,
|
|
19
|
+
i as input,
|
|
20
|
+
d as phone,
|
|
21
|
+
o as placeholder,
|
|
22
|
+
c as textarea,
|
|
23
|
+
t as textfield,
|
|
24
|
+
a as withIcon
|
|
23
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/Textfield/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE9E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,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B,kBAAkB,qBAAqB;IACvC,UAAU,aAAa;IACvB,OAAO,UAAU;IACjB,UAAU,aAAa;IACvB,cAAc,iBAAiB;IAC/B,kBAAkB,qBAAqB;IACvC,eAAe,kBAAkB;IACjC,oBAAoB,uBAAuB;IAC3C,cAAc,iBAAiB;IAC/B,gBAAgB,mBAAmB;IACnC,eAAe,kBAAkB;IACjC,eAAe,kBAAkB;IACjC,eAAe,kBAAkB;IACjC,gBAAgB,mBAAmB;IACnC,gBAAgB,mBAAmB;IACnC,gBAAgB,mBAAmB;IACnC,gBAAgB,mBAAmB;IACnC,SAAS,YAAY;IACrB,cAAc,iBAAiB;IAC/B,aAAa,gBAAgB;IAC7B,SAAS,YAAY;IACrB,eAAe,kBAAkB;IACjC,oBAAoB,uBAAuB;IAC3C,gBAAgB,mBAAmB;IACnC,WAAW,cAAc;IACzB,QAAQ,WAAW;IACnB,cAAc,iBAAiB;IAC/B,aAAa,gBAAgB;IAC7B,QAAQ,WAAW;IACnB,SAAS,YAAY;IACrB,sBAAsB,yBAAyB;IAC/C,oBAAoB,uBAAuB;IAC3C,UAAU,aAAa;IACvB,MAAM,SAAS;IACf,UAAU,aAAa;IACvB,YAAY,eAAe;IAC3B,WAAW,cAAc;IACzB,KAAK,QAAQ;IACb,kBAAkB,qBAAqB;IACvC,cAAc,iBAAiB;IAC/B,eAAe,kBAAkB;IACjC,WAAW,cAAc;IACzB,eAAe,kBAAkB;CACjC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/Textfield/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE9E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,MAAM,eAAe,GAAG;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,IAAI,CA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AiB;IAC/B,kBAAkB,qBAAqB;IACvC,eAAe,kBAAkB;IACjC,oBAAoB,uBAAuB;IAC3C,cAAc,iBAAiB;IAC/B,gBAAgB,mBAAmB;IACnC,eAAe,kBAAkB;IACjC,eAAe,kBAAkB;IACjC,eAAe,kBAAkB;IACjC,gBAAgB,mBAAmB;IACnC,gBAAgB,mBAAmB;IACnC,gBAAgB,mBAAmB;IACnC,gBAAgB,mBAAmB;IACnC,SAAS,YAAY;IACrB,cAAc,iBAAiB;IAC/B,aAAa,gBAAgB;IAC7B,SAAS,YAAY;IACrB,eAAe,kBAAkB;IACjC,oBAAoB,uBAAuB;IAC3C,gBAAgB,mBAAmB;IACnC,WAAW,cAAc;IACzB,QAAQ,WAAW;IACnB,cAAc,iBAAiB;IAC/B,aAAa,gBAAgB;IAC7B,QAAQ,WAAW;IACnB,SAAS,YAAY;IACrB,sBAAsB,yBAAyB;IAC/C,oBAAoB,uBAAuB;IAC3C,UAAU,aAAa;IACvB,MAAM,SAAS;IACf,UAAU,aAAa;IACvB,YAAY,eAAe;IAC3B,WAAW,cAAc;IACzB,KAAK,QAAQ;IACb,kBAAkB,qBAAqB;IACvC,cAAc,iBAAiB;IAC/B,eAAe,kBAAkB;IACjC,WAAW,cAAc;IACzB,eAAe,kBAAkB;CACjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../../src/components/context/Theme/ThemeContext.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAe,iBAAiB,EAAE,mBAAmB,EAAgB,MAAM,SAAS,CAAC;AAS5F,QAAA,MAAM,YAAY,4CAA8B,CAAC;AACjD,QAAA,MAAM,aAAa,GAAI,cAAc,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../../src/components/context/Theme/ThemeContext.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAe,iBAAiB,EAAE,mBAAmB,EAAgB,MAAM,SAAS,CAAC;AAS5F,QAAA,MAAM,YAAY,4CAA8B,CAAC;AACjD,QAAA,MAAM,aAAa,GAAI,cAAc,mBAAmB,4CAoCvD,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { STORAGE as
|
|
5
|
-
const
|
|
2
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as i, useState as n, useEffect as h } from "react";
|
|
4
|
+
import { STORAGE as t, defaultColorPreset as u } from "../../../utils/constants/theme.js";
|
|
5
|
+
const c = {
|
|
6
6
|
themeScheme: void 0,
|
|
7
7
|
setThemeScheme: () => null,
|
|
8
8
|
themeColor: void 0,
|
|
9
9
|
setThemeColor: () => null
|
|
10
|
-
},
|
|
11
|
-
const [
|
|
12
|
-
return
|
|
13
|
-
let m = localStorage.getItem(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
}, a = i(c), y = ({ children: S }) => {
|
|
11
|
+
const [o, l] = n(c.themeScheme), [e, s] = n(c.themeColor);
|
|
12
|
+
return h(() => {
|
|
13
|
+
let m = localStorage.getItem(t.themeScheme), r;
|
|
14
|
+
try {
|
|
15
|
+
r = JSON.parse(localStorage.getItem(t.themeColor) || "null") || u;
|
|
16
|
+
} catch {
|
|
17
|
+
r = u;
|
|
18
|
+
}
|
|
19
|
+
m || (m = (document == null ? void 0 : document.documentElement.getAttribute(t.themeSchemeAttr)) ?? void 0), m && l(m), r && s(r);
|
|
20
|
+
}, []), h(() => {
|
|
21
|
+
!o || !e || (document.documentElement.setAttribute(t.themeSchemeAttr, o), document.documentElement.style.setProperty("--H", `${e == null ? void 0 : e.h}`), document.documentElement.style.setProperty("--S", `${e == null ? void 0 : e.s}%`), document.documentElement.style.setProperty("--L", `${e == null ? void 0 : e.l}%`), localStorage.setItem(t.themeScheme, o), localStorage.setItem(t.themeColor, JSON.stringify(e)));
|
|
22
|
+
}, [o, e]), /* @__PURE__ */ d(a.Provider, { value: { themeScheme: o, setThemeScheme: l, themeColor: e, setThemeColor: s }, children: S });
|
|
18
23
|
};
|
|
19
24
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
a as ThemeContext,
|
|
26
|
+
y as ThemeProvider
|
|
22
27
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
export type TThemeInitialType = {
|
|
3
|
-
themeScheme: TThemeScheme;
|
|
4
|
-
setThemeScheme: (scheme: TThemeScheme) => void;
|
|
5
|
-
themeColor: TThemeColor;
|
|
6
|
-
setThemeColor: (color: TThemeColor) => void;
|
|
3
|
+
themeScheme: TThemeScheme | undefined;
|
|
4
|
+
setThemeScheme: (scheme: TThemeScheme | undefined) => void;
|
|
5
|
+
themeColor: TThemeColor | undefined;
|
|
6
|
+
setThemeColor: (color: TThemeColor | undefined) => void;
|
|
7
7
|
};
|
|
8
8
|
export type TThemeProviderProps = {
|
|
9
9
|
children?: ReactNode;
|
|
@@ -11,18 +11,13 @@ export type TThemeProviderProps = {
|
|
|
11
11
|
export declare enum EThemeScheme {
|
|
12
12
|
light = "light",
|
|
13
13
|
dark = "dark",
|
|
14
|
-
|
|
14
|
+
auto = "auto"
|
|
15
15
|
}
|
|
16
|
-
export type TThemeScheme = keyof typeof EThemeScheme
|
|
17
|
-
export declare const defaultScheme = EThemeScheme.
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
blue = "blue",
|
|
24
|
-
violet = "violet"
|
|
25
|
-
}
|
|
26
|
-
export type TThemeColor = keyof typeof EThemeColor | undefined;
|
|
27
|
-
export declare const defaultColor = EThemeColor.violet;
|
|
16
|
+
export type TThemeScheme = keyof typeof EThemeScheme;
|
|
17
|
+
export declare const defaultScheme = EThemeScheme.auto;
|
|
18
|
+
export type TThemeColor = {
|
|
19
|
+
h: number;
|
|
20
|
+
s: number;
|
|
21
|
+
l: number;
|
|
22
|
+
};
|
|
28
23
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/context/Theme/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,iBAAiB,GAAG;IAC/B,WAAW,EAAE,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/context/Theme/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,iBAAiB,GAAG;IAC/B,WAAW,EAAE,YAAY,GAAG,SAAS,CAAC;IACtC,cAAc,EAAE,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,KAAK,IAAI,CAAC;IAC3D,UAAU,EAAE,WAAW,GAAG,SAAS,CAAC;IACpC,aAAa,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,KAAK,IAAI,CAAC;CACxD,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,oBAAY,YAAY;IACvB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;CACb;AACD,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,YAAY,CAAC;AACrD,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG;IACzB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACV,CAAC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
const
|
|
3
|
-
var n = /* @__PURE__ */ ((t) => (t.red = "red", t.pink = "pink", t.orange = "orange", t.green = "green", t.blue = "blue", t.violet = "violet", t))(n || {});
|
|
4
|
-
const s = "violet";
|
|
1
|
+
var a = /* @__PURE__ */ ((t) => (t.light = "light", t.dark = "dark", t.auto = "auto", t))(a || {});
|
|
2
|
+
const r = "auto";
|
|
5
3
|
export {
|
|
6
|
-
|
|
7
|
-
r as
|
|
8
|
-
s as defaultColor,
|
|
9
|
-
a as defaultScheme
|
|
4
|
+
a as EThemeScheme,
|
|
5
|
+
r as defaultScheme
|
|
10
6
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_navigation_10g7s_1", o = "_brand_10g7s_10", n = "_routeList_10g7s_19", _ = "_route_10g7s_19", s = "_icon_10g7s_52", a = "_label_10g7s_59", i = "_loading_10g7s_79", c = "_active_10g7s_98", e = {
|
|
2
2
|
navigation: t,
|
|
3
|
-
brand:
|
|
4
|
-
routeList:
|
|
5
|
-
route:
|
|
6
|
-
icon:
|
|
3
|
+
brand: o,
|
|
4
|
+
routeList: n,
|
|
5
|
+
route: _,
|
|
6
|
+
icon: s,
|
|
7
7
|
label: a,
|
|
8
8
|
loading: i,
|
|
9
9
|
active: c
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
12
|
c as active,
|
|
13
|
-
|
|
13
|
+
o as brand,
|
|
14
14
|
e as default,
|
|
15
|
-
|
|
15
|
+
s as icon,
|
|
16
16
|
a as label,
|
|
17
17
|
i as loading,
|
|
18
18
|
t as navigation,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
_ as route,
|
|
20
|
+
n as routeList
|
|
21
21
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
const e = "
|
|
1
|
+
const e = "_sider_11os5_1", i = "_leftSiderContainer_11os5_13", t = "_rightSiderContainer_11os5_21", n = "_content_11os5_29", r = "_miniLeftSider_11os5_39", o = "_miniRightSider_11os5_46", _ = "_leftOpen_11os5_53", s = "_rightOpen_11os5_66", d = {
|
|
2
2
|
sider: e,
|
|
3
3
|
leftSiderContainer: i,
|
|
4
4
|
rightSiderContainer: t,
|
|
5
5
|
content: n,
|
|
6
6
|
miniLeftSider: r,
|
|
7
|
-
miniRightSider:
|
|
7
|
+
miniRightSider: o,
|
|
8
8
|
leftOpen: _,
|
|
9
|
-
rightOpen:
|
|
9
|
+
rightOpen: s
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
12
|
n as content,
|
|
13
|
-
|
|
13
|
+
d as default,
|
|
14
14
|
_ as leftOpen,
|
|
15
15
|
i as leftSiderContainer,
|
|
16
16
|
r as miniLeftSider,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
o as miniRightSider,
|
|
18
|
+
s as rightOpen,
|
|
19
19
|
t as rightSiderContainer,
|
|
20
20
|
e as sider
|
|
21
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/ThemePicker/ThemePicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThemePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/ThemePicker/ThemePicker.tsx"],"names":[],"mappings":"AAaA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAqC,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAG/E,eAAO,MAAM,WAAW,8GAwEtB,CAAC"}
|
|
@@ -1,73 +1,76 @@
|
|
|
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 {
|
|
9
|
-
import {
|
|
10
|
-
import { THEME_SCHEME as
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
import { EThemePickerGap as x, EThemePickerSize as
|
|
14
|
-
const
|
|
15
|
-
const { className:
|
|
16
|
-
|
|
17
|
-
|
|
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
|
+
import { isEqual as S } from "../../../utils/function/common.js";
|
|
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
|
|
18
18
|
);
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ r(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
ref:
|
|
23
|
-
className:
|
|
22
|
+
ref: c,
|
|
23
|
+
className: p,
|
|
24
24
|
role: "region",
|
|
25
25
|
style: {
|
|
26
|
-
"--schemeSize": `${
|
|
27
|
-
"--schemeGap": `${x[
|
|
26
|
+
"--schemeSize": `${P[m]}px`,
|
|
27
|
+
"--schemeGap": `${x[m]}px`
|
|
28
28
|
},
|
|
29
29
|
children: [
|
|
30
|
-
/* @__PURE__ */ o("div", { className:
|
|
31
|
-
|
|
30
|
+
/* @__PURE__ */ o("div", { className: "themeSchemes", role: "radiogroup", children: E.map(({ name: e, icon: s }, f) => /* @__PURE__ */ r(
|
|
31
|
+
v,
|
|
32
32
|
{
|
|
33
|
-
className:
|
|
34
|
-
onClick: () =>
|
|
33
|
+
className: i("themeSchemeItem", e, t === e && "active"),
|
|
34
|
+
onClick: () => h(e),
|
|
35
35
|
children: [
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */ o("div", { className:
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */ o("div", { className:
|
|
40
|
-
/* @__PURE__ */ o("div", { className:
|
|
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" })
|
|
41
41
|
] })
|
|
42
42
|
] }),
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */ o(
|
|
45
|
-
/* @__PURE__ */ o("span", { className:
|
|
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 })
|
|
46
46
|
] })
|
|
47
47
|
]
|
|
48
48
|
},
|
|
49
|
-
`ThemeScheme-${
|
|
49
|
+
`ThemeScheme-${e}-${f}`
|
|
50
50
|
)) }),
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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)
|
|
61
64
|
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
`ThemeColor-${e.h}${e.s}${e.l}-${s}`
|
|
66
|
+
)),
|
|
67
|
+
/* @__PURE__ */ o(k, {})
|
|
68
|
+
] })
|
|
66
69
|
]
|
|
67
70
|
}
|
|
68
71
|
);
|
|
69
72
|
});
|
|
70
|
-
|
|
73
|
+
I.displayName = "ThemePicker";
|
|
71
74
|
export {
|
|
72
|
-
|
|
75
|
+
I as ThemePicker
|
|
73
76
|
};
|