xtreme-ui 0.0.70 → 0.0.72
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/README.md +21 -3
- package/dist/components/base/ActionCard/actionCard.module.scss.js +6 -7
- package/dist/components/base/ActionCard/types.js +0 -1
- package/dist/components/base/Avatar/avatar.module.scss.js +9 -10
- package/dist/components/base/Avatar/types.js +0 -1
- package/dist/components/base/Button/button.module.scss.js +16 -17
- package/dist/components/base/Button/types.js +0 -1
- package/dist/components/base/ColorPicker/colorPicker.module.scss.js +4 -5
- package/dist/components/base/Icon/icon.module.scss.js +6 -7
- package/dist/components/base/Icon/types.js +0 -1
- package/dist/components/base/Lottie/lottie.module.scss.js +4 -5
- package/dist/components/base/Lottie/types.js +0 -1
- package/dist/components/base/ProgressBar/progressbar.module.scss.js +5 -6
- package/dist/components/base/Spinner/spinner.module.scss.js +6 -7
- package/dist/components/base/Spinner/types.js +0 -1
- package/dist/components/base/Textfield/textfield.module.scss.js +20 -21
- package/dist/components/context/Theme/type.js +4 -5
- package/dist/components/context/useContext.js +3 -4
- package/dist/components/layout/ColorPopper/ColorPopper.d.ts.map +1 -1
- package/dist/components/layout/ColorPopper/ColorPopper.js +24 -24
- package/dist/components/layout/ColorPopper/colorPopper.module.scss.js +6 -7
- package/dist/components/layout/Navigation/navigation.module.scss.js +0 -1
- package/dist/components/layout/Sider/sider.module.scss.js +0 -1
- package/dist/components/layout/Sider/types.js +0 -1
- package/dist/components/layout/SiderModal/siderModal.module.scss.js +6 -7
- package/dist/components/layout/ThemePicker/themePicker.module.scss.js +0 -1
- package/dist/components/layout/ThemePicker/type.js +0 -1
- package/dist/index.js +11 -12
- package/dist/style.css +1 -1
- package/dist/styles/index.scss.js +1 -1
- package/dist/utils/constants/commons.js +0 -1
- package/dist/utils/function/localStorage.js +6 -7
- package/dist/utils/function/mergeRefs.js +4 -5
- package/dist/utils/function/string.js +2 -3
- package/dist/utils/helper/domHelper.js +0 -1
- package/dist/utils/helper/themeController.d.ts +1 -1
- package/dist/utils/helper/themeController.d.ts.map +1 -1
- package/dist/utils/helper/themeController.js +44 -47
- package/package.json +36 -38
package/README.md
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
# XtremeUI
|
|
1
|
+
# XtremeUI - React Component Library
|
|
2
2
|
|
|
3
|
-
XtremeUI
|
|
4
|
-
It is a collection of reusable components that can be used in web projects.
|
|
3
|
+
Welcome to XtremeUI, a versatile React component library built on Vite, React, and Scss. This library offers a collection of reusable and customizable UI components to expedite frontend development.
|
|
5
4
|
|
|
5
|
+
## Features
|
|
6
6
|
|
|
7
|
+
- **Vite-Powered**: Utilizes Vite for blazing-fast development and optimized builds.
|
|
8
|
+
- **React Components**: A diverse set of reusable React components for easy integration.
|
|
9
|
+
- **Scss Styling**: Customizable styles using Scss to match various design needs.
|
|
10
|
+
- **Responsive Design**: Ensures compatibility and responsiveness across devices.
|
|
11
|
+
- **Accessibility**: Compliant with accessibility standards for an inclusive user experience.
|
|
12
|
+
- **Comprehensive Documentation**: Detailed documentation with usage examples for straightforward implementation.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
Install the library via npm or yarn:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install xtreme-ui
|
|
20
|
+
# or
|
|
21
|
+
yarn add xtreme-ui
|
|
22
|
+
# or
|
|
23
|
+
pnpm add xtreme-ui
|
|
24
|
+
```
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
"
|
|
2
|
-
const i = "_actionCard_1jg2o_1", e = "_miniSize_1jg2o_14", o = "_smallSize_1jg2o_17", m = "_mediumSize_1jg2o_20", n = {
|
|
1
|
+
const i = "_actionCard_1715r_1", e = "_miniSize_1715r_14", m = "_smallSize_1715r_17", _ = "_mediumSize_1715r_20", a = {
|
|
3
2
|
actionCard: i,
|
|
4
3
|
miniSize: e,
|
|
5
|
-
smallSize:
|
|
6
|
-
mediumSize:
|
|
4
|
+
smallSize: m,
|
|
5
|
+
mediumSize: _
|
|
7
6
|
};
|
|
8
7
|
export {
|
|
9
8
|
i as actionCard,
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
a as default,
|
|
10
|
+
_ as mediumSize,
|
|
12
11
|
e as miniSize,
|
|
13
|
-
|
|
12
|
+
m as smallSize
|
|
14
13
|
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
"
|
|
2
|
-
const a = "_avatar_13i6u_1", _ = "_placeholder_13i6u_20", e = "_image_13i6u_23", o = "_loading_13i6u_34", i = "_spin_13i6u_1", r = "_error_13i6u_40", n = {
|
|
1
|
+
const a = "_avatar_13i6u_1", _ = "_placeholder_13i6u_20", o = "_image_13i6u_23", r = "_loading_13i6u_34", e = "_spin_13i6u_1", i = "_error_13i6u_40", n = {
|
|
3
2
|
avatar: a,
|
|
4
3
|
placeholder: _,
|
|
5
|
-
image:
|
|
6
|
-
loading:
|
|
7
|
-
spin:
|
|
8
|
-
error:
|
|
4
|
+
image: o,
|
|
5
|
+
loading: r,
|
|
6
|
+
spin: e,
|
|
7
|
+
error: i
|
|
9
8
|
};
|
|
10
9
|
export {
|
|
11
10
|
a as avatar,
|
|
12
11
|
n as default,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
i as error,
|
|
13
|
+
o as image,
|
|
14
|
+
r as loading,
|
|
16
15
|
_ as placeholder,
|
|
17
|
-
|
|
16
|
+
e as spin
|
|
18
17
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
"
|
|
2
|
-
const e = "_button_o6rm6_1", n = "_label_o6rm6_14", o = "_icon_o6rm6_21", r = "_underline_o6rm6_25", _ = "_primaryType_o6rm6_48", i = "_primaryDangerType_o6rm6_48", a = "_secondaryType_o6rm6_52", y = "_secondaryDangerType_o6rm6_52", l = "_linkType_o6rm6_56", c = "_linkDangerType_o6rm6_56", s = "_miniSize_o6rm6_85", t = "_iconOnly_o6rm6_96", p = "_defaultSize_o6rm6_103", m = "_largeSize_o6rm6_121", T = "_loading_o6rm6_149", d = "_barberPole_o6rm6_1", g = "_spin_o6rm6_1", b = {
|
|
1
|
+
const e = "_button_9wxq7_1", n = "_label_9wxq7_14", _ = "_icon_9wxq7_21", i = "_underline_9wxq7_25", o = "_primaryType_9wxq7_48", r = "_primaryDangerType_9wxq7_48", a = "_secondaryType_9wxq7_52", y = "_secondaryDangerType_9wxq7_52", l = "_linkType_9wxq7_56", c = "_linkDangerType_9wxq7_56", s = "_miniSize_9wxq7_85", t = "_iconOnly_9wxq7_96", p = "_defaultSize_9wxq7_103", x = "_largeSize_9wxq7_121", T = "_loading_9wxq7_149", q = "_barberPole_9wxq7_1", w = "_spin_9wxq7_1", d = {
|
|
3
2
|
button: e,
|
|
4
3
|
label: n,
|
|
5
|
-
icon:
|
|
6
|
-
underline:
|
|
7
|
-
primaryType:
|
|
8
|
-
primaryDangerType:
|
|
4
|
+
icon: _,
|
|
5
|
+
underline: i,
|
|
6
|
+
primaryType: o,
|
|
7
|
+
primaryDangerType: r,
|
|
9
8
|
secondaryType: a,
|
|
10
9
|
secondaryDangerType: y,
|
|
11
10
|
linkType: l,
|
|
@@ -13,28 +12,28 @@ const e = "_button_o6rm6_1", n = "_label_o6rm6_14", o = "_icon_o6rm6_21", r = "_
|
|
|
13
12
|
miniSize: s,
|
|
14
13
|
iconOnly: t,
|
|
15
14
|
defaultSize: p,
|
|
16
|
-
largeSize:
|
|
15
|
+
largeSize: x,
|
|
17
16
|
loading: T,
|
|
18
|
-
barberPole:
|
|
19
|
-
spin:
|
|
17
|
+
barberPole: q,
|
|
18
|
+
spin: w
|
|
20
19
|
};
|
|
21
20
|
export {
|
|
22
|
-
|
|
21
|
+
q as barberPole,
|
|
23
22
|
e as button,
|
|
24
|
-
|
|
23
|
+
d as default,
|
|
25
24
|
p as defaultSize,
|
|
26
|
-
|
|
25
|
+
_ as icon,
|
|
27
26
|
t as iconOnly,
|
|
28
27
|
n as label,
|
|
29
|
-
|
|
28
|
+
x as largeSize,
|
|
30
29
|
c as linkDangerType,
|
|
31
30
|
l as linkType,
|
|
32
31
|
T as loading,
|
|
33
32
|
s as miniSize,
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
r as primaryDangerType,
|
|
34
|
+
o as primaryType,
|
|
36
35
|
y as secondaryDangerType,
|
|
37
36
|
a as secondaryType,
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
w as spin,
|
|
38
|
+
i as underline
|
|
40
39
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
"
|
|
2
|
-
const e = "_colorPicker_1lsi0_1", l = "_wheel_1lsi0_6", s = "_shade_1lsi0_10", c = "_alpha_1lsi0_10", o = {
|
|
1
|
+
const e = "_colorPicker_1lsi0_1", l = "_wheel_1lsi0_6", s = "_shade_1lsi0_10", o = "_alpha_1lsi0_10", _ = {
|
|
3
2
|
colorPicker: e,
|
|
4
3
|
wheel: l,
|
|
5
4
|
shade: s,
|
|
6
|
-
alpha:
|
|
5
|
+
alpha: o
|
|
7
6
|
};
|
|
8
7
|
export {
|
|
9
|
-
|
|
8
|
+
o as alpha,
|
|
10
9
|
e as colorPicker,
|
|
11
|
-
|
|
10
|
+
_ as default,
|
|
12
11
|
s as shade,
|
|
13
12
|
l as wheel
|
|
14
13
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
"
|
|
2
|
-
const o = "_icon_1w5r3_2", t = "_thin_1w5r3_25", r = "_light_1w5r3_29", _ = "_regular_1w5r3_33", n = "_solid_1w5r3_37", s = "_duotone_1w5r3_41", i = "_sharpSolid_1w5r3_52", a = "_sharpRegular_1w5r3_56", c = "_sharpLight_1w5r3_60", h = "_brand_1w5r3_64", l = "_iconButton_1w5r3_68", e = {
|
|
1
|
+
const o = "_icon_1w5r3_2", r = "_thin_1w5r3_25", t = "_light_1w5r3_29", _ = "_regular_1w5r3_33", n = "_solid_1w5r3_37", s = "_duotone_1w5r3_41", i = "_sharpSolid_1w5r3_52", a = "_sharpRegular_1w5r3_56", c = "_sharpLight_1w5r3_60", h = "_brand_1w5r3_64", l = "_iconButton_1w5r3_68", d = {
|
|
3
2
|
icon: o,
|
|
4
|
-
thin:
|
|
5
|
-
light:
|
|
3
|
+
thin: r,
|
|
4
|
+
light: t,
|
|
6
5
|
regular: _,
|
|
7
6
|
solid: n,
|
|
8
7
|
duotone: s,
|
|
@@ -14,15 +13,15 @@ const o = "_icon_1w5r3_2", t = "_thin_1w5r3_25", r = "_light_1w5r3_29", _ = "_re
|
|
|
14
13
|
};
|
|
15
14
|
export {
|
|
16
15
|
h as brand,
|
|
17
|
-
|
|
16
|
+
d as default,
|
|
18
17
|
s as duotone,
|
|
19
18
|
o as icon,
|
|
20
19
|
l as iconButton,
|
|
21
|
-
|
|
20
|
+
t as light,
|
|
22
21
|
_ as regular,
|
|
23
22
|
c as sharpLight,
|
|
24
23
|
a as sharpRegular,
|
|
25
24
|
i as sharpSolid,
|
|
26
25
|
n as solid,
|
|
27
|
-
|
|
26
|
+
r as thin
|
|
28
27
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
"
|
|
2
|
-
const o = "_main_1hnbl_1", e = "_animation_1hnbl_1", t = "_controls_1hnbl_1", _ = "_toolbar_1hnbl_1", n = "_popover_1hnbl_1", r = "_active_1hnbl_1", l = "_seeker_1hnbl_1", p = "_error_1hnbl_1", i = "_lottie_1hnbl_2", a = {
|
|
1
|
+
const o = "_main_1hnbl_1", e = "_animation_1hnbl_1", t = "_controls_1hnbl_1", _ = "_toolbar_1hnbl_1", n = "_popover_1hnbl_1", r = "_active_1hnbl_1", l = "_seeker_1hnbl_1", p = "_error_1hnbl_1", a = "_lottie_1hnbl_2", i = {
|
|
3
2
|
"dotlottie-container": "_dotlottie-container_1hnbl_1",
|
|
4
3
|
main: o,
|
|
5
4
|
animation: e,
|
|
@@ -18,15 +17,15 @@ const o = "_main_1hnbl_1", e = "_animation_1hnbl_1", t = "_controls_1hnbl_1", _
|
|
|
18
17
|
"popover-items": "_popover-items_1hnbl_1",
|
|
19
18
|
"popover-subnav": "_popover-subnav_1hnbl_1",
|
|
20
19
|
"popover-item": "_popover-item_1hnbl_1",
|
|
21
|
-
lottie:
|
|
20
|
+
lottie: a
|
|
22
21
|
};
|
|
23
22
|
export {
|
|
24
23
|
r as active,
|
|
25
24
|
e as animation,
|
|
26
25
|
t as controls,
|
|
27
|
-
|
|
26
|
+
i as default,
|
|
28
27
|
p as error,
|
|
29
|
-
|
|
28
|
+
a as lottie,
|
|
30
29
|
o as main,
|
|
31
30
|
n as popover,
|
|
32
31
|
l as seeker,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
progress: r,
|
|
1
|
+
const r = "_progressBar_luf46_1", e = "_progress_luf46_1", s = "_intermediate_luf46_31", o = "_barberPole_luf46_1", t = {
|
|
2
|
+
progressBar: r,
|
|
3
|
+
progress: e,
|
|
5
4
|
intermediate: s,
|
|
6
5
|
barberPole: o
|
|
7
6
|
};
|
|
@@ -9,6 +8,6 @@ export {
|
|
|
9
8
|
o as barberPole,
|
|
10
9
|
t as default,
|
|
11
10
|
s as intermediate,
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
e as progress,
|
|
12
|
+
r as progressBar
|
|
14
13
|
};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
"
|
|
2
|
-
const e = "_spinner_ob963_1", p = "_fullpage_ob963_14", n = "_label_ob963_18", _ = "_spinnerWrapper_ob963_26", c = "_spin_ob963_1", s = "_cubeTop_ob963_34", o = "_cubeWrapper_ob963_52", b = "_cubeFace_ob963_58", r = {
|
|
1
|
+
const e = "_spinner_2g38j_1", p = "_fullpage_2g38j_14", n = "_label_2g38j_18", _ = "_spinnerWrapper_2g38j_26", c = "_spin_2g38j_1", s = "_cubeTop_2g38j_34", r = "_cubeWrapper_2g38j_53", a = "_cubeFace_2g38j_59", l = {
|
|
3
2
|
spinner: e,
|
|
4
3
|
fullpage: p,
|
|
5
4
|
label: n,
|
|
6
5
|
spinnerWrapper: _,
|
|
7
6
|
spin: c,
|
|
8
7
|
cubeTop: s,
|
|
9
|
-
cubeWrapper:
|
|
10
|
-
cubeFace:
|
|
8
|
+
cubeWrapper: r,
|
|
9
|
+
cubeFace: a
|
|
11
10
|
};
|
|
12
11
|
export {
|
|
13
|
-
|
|
12
|
+
a as cubeFace,
|
|
14
13
|
s as cubeTop,
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
r as cubeWrapper,
|
|
15
|
+
l as default,
|
|
17
16
|
p as fullpage,
|
|
18
17
|
n as label,
|
|
19
18
|
c as spin,
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
hasValue: l
|
|
1
|
+
const t = "_textfield_1faip_1", e = "_icon_1faip_29", a = "_dialCode_1faip_39", _ = "_input_1faip_60", o = "_placeholder_1faip_79", i = "_withIcon_1faip_92", n = "_textarea_1faip_102", c = "_phone_1faip_111", p = "_hasValue_1faip_117", l = {
|
|
2
|
+
textfield: t,
|
|
3
|
+
icon: e,
|
|
4
|
+
dialCode: a,
|
|
5
|
+
input: _,
|
|
6
|
+
placeholder: o,
|
|
7
|
+
withIcon: i,
|
|
8
|
+
textarea: n,
|
|
9
|
+
phone: c,
|
|
10
|
+
hasValue: p
|
|
12
11
|
};
|
|
13
12
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
l as default,
|
|
14
|
+
a as dialCode,
|
|
15
|
+
p as hasValue,
|
|
16
|
+
e as icon,
|
|
17
|
+
_ as input,
|
|
18
|
+
c as phone,
|
|
19
|
+
o as placeholder,
|
|
20
|
+
n as textarea,
|
|
21
|
+
t as textfield,
|
|
22
|
+
i as withIcon
|
|
24
23
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
"
|
|
2
|
-
var n = /* @__PURE__ */ ((t) => (t.light = "light", t.dark = "dark", t.system = "system", t))(n || {});
|
|
1
|
+
var a = /* @__PURE__ */ ((t) => (t.light = "light", t.dark = "dark", t.system = "system", t))(a || {});
|
|
3
2
|
const r = "system";
|
|
4
|
-
var
|
|
3
|
+
var n = /* @__PURE__ */ ((t) => (t.red = "red", t.pink = "pink", t.orange = "orange", t.green = "green", t.blue = "blue", t.violet = "violet", t.black = "black", t))(n || {});
|
|
5
4
|
const s = "violet";
|
|
6
5
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
n as EThemeColor,
|
|
7
|
+
a as EThemeScheme,
|
|
9
8
|
s as defaultColor,
|
|
10
9
|
r as defaultScheme
|
|
11
10
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { useContext as t } from "react";
|
|
3
|
-
import { DataContext as
|
|
4
|
-
import { ThemeContext as
|
|
5
|
-
const s = () => t(
|
|
2
|
+
import { DataContext as o } from "./Data/DataContext.js";
|
|
3
|
+
import { ThemeContext as e } from "./Theme/ThemeContext.js";
|
|
4
|
+
const s = () => t(o), a = () => t(e);
|
|
6
5
|
export {
|
|
7
6
|
s as useXData,
|
|
8
7
|
a as useXTheme
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPopper.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/ColorPopper/ColorPopper.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ColorPopper.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/ColorPopper/ColorPopper.tsx"],"names":[],"mappings":";AAsBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAI5C,eAAO,MAAM,WAAW,8GAuGtB,CAAC"}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as f, Fragment as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { useFloating as
|
|
2
|
+
import { jsxs as f, Fragment as q, jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as D, useMemo as g, useState as p, useEffect as L } from "react";
|
|
4
|
+
import { useFloating as U, shift as z, flip as A, offset as B, autoUpdate as G, useTransitionStyles as J, useInteractions as K, useClick as Q, useDismiss as V } from "@floating-ui/react";
|
|
5
5
|
import C from "clsx";
|
|
6
|
-
import {
|
|
6
|
+
import { colord as t, getFormat as H } from "colord";
|
|
7
7
|
import { ColorPicker as W } from "../../base/ColorPicker/ColorPicker.js";
|
|
8
8
|
import { Icon as X } from "../../base/Icon/Icon.js";
|
|
9
9
|
import { Textfield as Y } from "../../base/Textfield/Textfield.js";
|
|
10
10
|
import { mergeRefs as Z } from "../../../utils/function/mergeRefs.js";
|
|
11
11
|
import h from "./colorPopper.module.scss.js";
|
|
12
|
-
const _ =
|
|
13
|
-
const { className: P, popperClassName: F, placeholder: N = "Color Picker", showReset: R = !0, shade: b, alpha: k, color: s, setColor: o } = v,
|
|
12
|
+
const _ = D((v, y) => {
|
|
13
|
+
const { className: P, popperClassName: F, placeholder: N = "Color Picker", showReset: R = !0, shade: b, alpha: k, color: s, setColor: o } = v, u = g(() => t(s), []), r = g(() => H(s), [s]), [i, n] = p(t(s).toHsv()), [w, a] = p(t(s).toHex()), [I, d] = p(!1), { refs: x, floatingStyles: S, context: c } = U({
|
|
14
14
|
open: I,
|
|
15
|
-
onOpenChange:
|
|
15
|
+
onOpenChange: d,
|
|
16
16
|
middleware: [
|
|
17
17
|
z(),
|
|
18
18
|
A(),
|
|
19
19
|
B(({ placement: e }) => e === "bottom" ? 10 : 16)
|
|
20
20
|
],
|
|
21
21
|
whileElementsMounted: G
|
|
22
|
-
}), { isMounted: T, styles:
|
|
22
|
+
}), { isMounted: T, styles: E } = J(c, {
|
|
23
23
|
duration: 200,
|
|
24
24
|
initial: (e) => ({
|
|
25
25
|
opacity: 0,
|
|
26
26
|
scale: 0.9,
|
|
27
27
|
translate: (e == null ? void 0 : e.side) === "bottom" ? "0 12px" : "0 -12px"
|
|
28
28
|
})
|
|
29
|
-
}), { getReferenceProps:
|
|
29
|
+
}), { getReferenceProps: M, getFloatingProps: O } = K([
|
|
30
30
|
Q(c),
|
|
31
31
|
V(c)
|
|
32
|
-
]),
|
|
32
|
+
]), j = (e) => {
|
|
33
33
|
const m = H(e);
|
|
34
|
-
a(e), m && (m === "hex" && e.length > 6 || m !== "hex") &&
|
|
34
|
+
a(e), m && (m === "hex" && e.length > 6 || m !== "hex") && n(t(e).toHsv());
|
|
35
35
|
};
|
|
36
|
-
return
|
|
37
|
-
const e = t(
|
|
38
|
-
r === "rgb" ? o == null || o(e.toRgb()) : r === "hex" ? o == null || o(e.toHex()) : r === "hsl" ? o == null || o(e.toHsl()) : r === "hsv" && (o == null || o(e.toHsv()));
|
|
39
|
-
}, [r,
|
|
36
|
+
return L(() => {
|
|
37
|
+
const e = t(i);
|
|
38
|
+
e.isEqual(t(s)) || (r === "rgb" ? o == null || o(e.toRgb()) : r === "hex" ? o == null || o(e.toHex()) : r === "hsl" ? o == null || o(e.toHsl()) : r === "hsv" && (o == null || o(e.toHsv())));
|
|
39
|
+
}, [s, r, i, o]), /* @__PURE__ */ f(q, { children: [
|
|
40
40
|
/* @__PURE__ */ l(
|
|
41
41
|
Y,
|
|
42
42
|
{
|
|
@@ -45,10 +45,10 @@ const _ = L((v, y) => {
|
|
|
45
45
|
placeholder: N,
|
|
46
46
|
icon: "color",
|
|
47
47
|
value: w,
|
|
48
|
-
onChange: (e) =>
|
|
49
|
-
style: { "--chipColor": t(
|
|
50
|
-
onFocus: () =>
|
|
51
|
-
...
|
|
48
|
+
onChange: (e) => j(e.target.value),
|
|
49
|
+
style: { "--chipColor": t(i).toHex() },
|
|
50
|
+
onFocus: () => d(!0),
|
|
51
|
+
...M()
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
54
|
T && /* @__PURE__ */ f(
|
|
@@ -56,8 +56,8 @@ const _ = L((v, y) => {
|
|
|
56
56
|
{
|
|
57
57
|
ref: Z([y, x.setFloating]),
|
|
58
58
|
className: C(h.colorPopper, F),
|
|
59
|
-
style: { ...S, ...
|
|
60
|
-
...
|
|
59
|
+
style: { ...S, ...E },
|
|
60
|
+
...O(),
|
|
61
61
|
children: [
|
|
62
62
|
/* @__PURE__ */ f("div", { className: h.header, children: [
|
|
63
63
|
/* @__PURE__ */ l("h1", { children: "Choose a color" }),
|
|
@@ -66,7 +66,7 @@ const _ = L((v, y) => {
|
|
|
66
66
|
{
|
|
67
67
|
code: "f1da",
|
|
68
68
|
onClick: () => {
|
|
69
|
-
|
|
69
|
+
n(u.toHsv()), a(u.toHex());
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
)
|
|
@@ -76,9 +76,9 @@ const _ = L((v, y) => {
|
|
|
76
76
|
{
|
|
77
77
|
shade: b,
|
|
78
78
|
alpha: k,
|
|
79
|
-
color:
|
|
79
|
+
color: i,
|
|
80
80
|
setColor: (e) => {
|
|
81
|
-
|
|
81
|
+
n(e), a(t(e).toHex());
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
)
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
"
|
|
2
|
-
const o = "_colorInput_1pojq_1", e = "_colorPopper_1pojq_10", p = "_header_1pojq_22", r = {
|
|
1
|
+
const o = "_colorInput_1pojq_1", p = "_colorPopper_1pojq_10", r = "_header_1pojq_22", e = {
|
|
3
2
|
colorInput: o,
|
|
4
|
-
colorPopper:
|
|
5
|
-
header:
|
|
3
|
+
colorPopper: p,
|
|
4
|
+
header: r
|
|
6
5
|
};
|
|
7
6
|
export {
|
|
8
7
|
o as colorInput,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
p as colorPopper,
|
|
9
|
+
e as default,
|
|
10
|
+
r as header
|
|
12
11
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
const r = "_navigation_1vrjr_1", o = "_brand_1vrjr_10", t = "_routeList_1vrjr_19", _ = "_route_1vrjr_19", n = "_icon_1vrjr_52", a = "_label_1vrjr_59", e = "_loading_1vrjr_79", i = "_barberPole_1vrjr_1", c = "_active_1vrjr_98", s = {
|
|
3
2
|
navigation: r,
|
|
4
3
|
brand: o,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
const e = "_sider_1dq8m_1", i = "_leftSiderContainer_1dq8m_13", t = "_rightSiderContainer_1dq8m_21", n = "_content_1dq8m_29", r = "_miniLeftSider_1dq8m_39", d = "_miniRightSider_1dq8m_46", _ = "_leftOpen_1dq8m_53", o = "_rightOpen_1dq8m_66", s = {
|
|
3
2
|
sider: e,
|
|
4
3
|
leftSiderContainer: i,
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
"
|
|
2
|
-
const o = "_siderModal_3x26c_1", c = "_header_3x26c_8", t = "_back_3x26c_16", _ = "_icon_3x26c_21", e = "_title_3x26c_21", s = "_footer_3x26c_28", d = "_body_3x26c_37", n = {
|
|
1
|
+
const o = "_siderModal_3x26c_1", c = "_header_3x26c_8", _ = "_back_3x26c_16", t = "_icon_3x26c_21", e = "_title_3x26c_21", s = "_footer_3x26c_28", d = "_body_3x26c_37", a = {
|
|
3
2
|
siderModal: o,
|
|
4
3
|
header: c,
|
|
5
|
-
back:
|
|
6
|
-
icon:
|
|
4
|
+
back: _,
|
|
5
|
+
icon: t,
|
|
7
6
|
title: e,
|
|
8
7
|
footer: s,
|
|
9
8
|
body: d
|
|
10
9
|
};
|
|
11
10
|
export {
|
|
12
|
-
|
|
11
|
+
_ as back,
|
|
13
12
|
d as body,
|
|
14
|
-
|
|
13
|
+
a as default,
|
|
15
14
|
s as footer,
|
|
16
15
|
c as header,
|
|
17
|
-
|
|
16
|
+
t as icon,
|
|
18
17
|
o as siderModal,
|
|
19
18
|
e as title
|
|
20
19
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
const e = "_themePicker_18b3g_1", t = "_themeSchemes_18b3g_11", o = "_themeSchemeItem_18b3g_18", _ = "_system_18b3g_30", n = "_light_18b3g_51", c = "_dark_18b3g_60", s = "_design_18b3g_69", g = "_navigation_18b3g_77", i = "_navigationItem_18b3g_89", m = "_content_18b3g_102", a = "_header_18b3g_112", r = "_profile_18b3g_141", h = "_footer_18b3g_164", b = "_footerIcon_18b3g_175", l = "_footerLabel_18b3g_180", f = "_active_18b3g_191", d = "_themeColors_18b3g_203", v = {
|
|
3
2
|
themePicker: e,
|
|
4
3
|
themeSchemes: t,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
var t = /* @__PURE__ */ ((l) => (l[l.mini = 128] = "mini", l[l.default = 180] = "default", l[l.large = 254] = "large", l))(t || {}), n = /* @__PURE__ */ ((l) => (l[l.mini = 16] = "mini", l[l.default = 24] = "default", l[l.large = 36] = "large", l))(n || {});
|
|
3
2
|
export {
|
|
4
3
|
n as EThemePickerGap,
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import "./styles/index.scss.js";
|
|
3
2
|
import { STORAGE as t } from "./utils/constants/commons.js";
|
|
4
|
-
import { getLocalState as m, setLocalState as
|
|
3
|
+
import { getLocalState as m, setLocalState as f } from "./utils/function/localStorage.js";
|
|
5
4
|
import { mergeRefs as x } from "./utils/function/mergeRefs.js";
|
|
6
5
|
import { capitalizeFirstLetter as a, safeStringFromCodePoint as n, unicodeToString as S } from "./utils/function/string.js";
|
|
7
|
-
import { doc as c, elementObserver as C, getCssProperty as P, getCssPropertyPx as d, getCssPropertyVh as g, getCssPropertyVw as E, isClient as
|
|
6
|
+
import { doc as c, elementObserver as C, getCssProperty as P, getCssPropertyPx as d, getCssPropertyVh as g, getCssPropertyVw as E, isClient as y, localStore as z, setCssProperty as T, waitForElement as u, win as v } from "./utils/helper/domHelper.js";
|
|
8
7
|
import { themeController as L } from "./utils/helper/themeController.js";
|
|
9
8
|
import { XProvider as w } from "./components/context/index.js";
|
|
10
9
|
import { useXData as F, useXTheme as X } from "./components/context/useContext.js";
|
|
@@ -19,10 +18,10 @@ import { EIconSize as Q } from "./components/base/Icon/types.js";
|
|
|
19
18
|
import { Lottie as W } from "./components/base/Lottie/Lottie.js";
|
|
20
19
|
import { ELottieSize as Z } from "./components/base/Lottie/types.js";
|
|
21
20
|
import { ProgressBar as $ } from "./components/base/ProgressBar/ProgressBar.js";
|
|
22
|
-
import { Spinner as
|
|
21
|
+
import { Spinner as or } from "./components/base/Spinner/Spinner.js";
|
|
23
22
|
import { ESpinnerSize as tr } from "./components/base/Spinner/types.js";
|
|
24
23
|
import { Textfield as mr } from "./components/base/Textfield/Textfield.js";
|
|
25
|
-
import { ColorPopper as
|
|
24
|
+
import { ColorPopper as ir } from "./components/layout/ColorPopper/ColorPopper.js";
|
|
26
25
|
import { Sider as sr } from "./components/layout/Sider/Sider.js";
|
|
27
26
|
import { SiderModal as nr } from "./components/layout/SiderModal/SiderModal.js";
|
|
28
27
|
import { Navigation as lr } from "./components/layout/Navigation/Navigation.js";
|
|
@@ -31,7 +30,7 @@ export {
|
|
|
31
30
|
O as ActionCard,
|
|
32
31
|
k as Avatar,
|
|
33
32
|
N as Button,
|
|
34
|
-
|
|
33
|
+
ir as ColorPopper,
|
|
35
34
|
V as EActionCardSize,
|
|
36
35
|
G as EAvatarSize,
|
|
37
36
|
q as EButtonTypes,
|
|
@@ -45,7 +44,7 @@ export {
|
|
|
45
44
|
t as STORAGE,
|
|
46
45
|
sr as Sider,
|
|
47
46
|
nr as SiderModal,
|
|
48
|
-
|
|
47
|
+
or as Spinner,
|
|
49
48
|
mr as Textfield,
|
|
50
49
|
Cr as ThemePicker,
|
|
51
50
|
w as XProvider,
|
|
@@ -57,16 +56,16 @@ export {
|
|
|
57
56
|
g as getCssPropertyVh,
|
|
58
57
|
E as getCssPropertyVw,
|
|
59
58
|
m as getLocalState,
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
y as isClient,
|
|
60
|
+
z as localStore,
|
|
62
61
|
x as mergeRefs,
|
|
63
62
|
n as safeStringFromCodePoint,
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
T as setCssProperty,
|
|
64
|
+
f as setLocalState,
|
|
66
65
|
L as themeController,
|
|
67
66
|
S as unicodeToString,
|
|
68
67
|
F as useXData,
|
|
69
68
|
X as useXTheme,
|
|
70
|
-
|
|
69
|
+
u as waitForElement,
|
|
71
70
|
v as win
|
|
72
71
|
};
|