xtreme-ui 0.0.71 → 0.0.73
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/ColorPopper/ColorPopper.d.ts.map +1 -0
- package/dist/components/{layout → base}/ColorPopper/ColorPopper.js +27 -27
- package/dist/components/base/ColorPopper/colorPopper.module.scss.js +11 -0
- package/dist/components/base/ColorPopper/types.d.ts.map +1 -0
- package/dist/components/base/DatePicker/DatePicker.d.ts +3 -0
- package/dist/components/base/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/components/base/DatePicker/DatePicker.js +58 -0
- package/dist/components/base/DatePicker/datePicker.scss.js +1 -0
- package/dist/components/base/DatePicker/types.d.ts +25 -0
- package/dist/components/base/DatePicker/types.d.ts.map +1 -0
- package/dist/components/base/DatePicker/types.js +4 -0
- 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/Select/Select.d.ts +3 -0
- package/dist/components/base/Select/Select.d.ts.map +1 -0
- package/dist/components/base/Select/Select.js +43 -0
- package/dist/components/base/Select/select.scss.js +1 -0
- package/dist/components/base/Select/types.d.ts +22 -0
- package/dist/components/base/Select/types.d.ts.map +1 -0
- package/dist/components/base/Select/types.js +4 -0
- package/dist/components/base/Spinner/spinner.module.scss.js +0 -1
- package/dist/components/base/Spinner/types.js +0 -1
- package/dist/components/base/Textfield/Textfield.js +9 -9
- package/dist/components/base/Textfield/textfield.module.scss.js +17 -18
- package/dist/components/context/Theme/type.js +4 -5
- package/dist/components/context/useContext.js +3 -4
- 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 +30 -31
- package/dist/components/layout/ThemePicker/type.js +0 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +40 -33
- 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 -45
- package/package.json +46 -41
- package/dist/components/layout/ColorPopper/ColorPopper.d.ts.map +0 -1
- package/dist/components/layout/ColorPopper/colorPopper.module.scss.js +0 -12
- package/dist/components/layout/ColorPopper/types.d.ts.map +0 -1
- /package/dist/components/{layout → base}/ColorPopper/ColorPopper.d.ts +0 -0
- /package/dist/components/{layout → base}/ColorPopper/types.d.ts +0 -0
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
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorPopper.d.ts","sourceRoot":"","sources":["../../../../src/components/base/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 {
|
|
7
|
-
import { ColorPicker as W } from "
|
|
8
|
-
import { Icon as X } from "
|
|
9
|
-
import { Textfield as Y } from "
|
|
6
|
+
import { colord as t, getFormat as H } from "colord";
|
|
7
|
+
import { ColorPicker as W } from "../ColorPicker/ColorPicker.js";
|
|
8
|
+
import { Icon as X } from "../Icon/Icon.js";
|
|
9
|
+
import { Textfield as Y } from "../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
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/ColorPopper/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,MAAM,iBAAiB,GAAG;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,QAAQ,CAAC;IAChB,QAAQ,EAAE,CAAC,GAAG,EAAE,QAAQ,KAAK,IAAI,CAAC;CAClC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/base/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAQA,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAoB3C,eAAO,MAAM,UAAU,UAAW,gBAAgB,4CAwCjD,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import g from "@wojtekmaj/react-daterange-picker";
|
|
4
|
+
import k from "clsx";
|
|
5
|
+
import a from "react-date-picker";
|
|
6
|
+
import o from "react-datetime-picker";
|
|
7
|
+
import M from "react-time-picker";
|
|
8
|
+
import { Icon as m } from "../Icon/Icon.js";
|
|
9
|
+
import "./datePicker.scss.js";
|
|
10
|
+
const R = {
|
|
11
|
+
date: "dd-MM-yyyy",
|
|
12
|
+
dateRange: "dd-MM-yyyy",
|
|
13
|
+
time: "h:mm:ss a",
|
|
14
|
+
timeRange: "h:mm:ss a",
|
|
15
|
+
dateTime: "dd-MM-yyyy h:mm:ss a",
|
|
16
|
+
dateTimeRange: "dd-MM-yyyy h:mm:ss a"
|
|
17
|
+
}, u = {
|
|
18
|
+
date: a,
|
|
19
|
+
dateRange: g,
|
|
20
|
+
time: M,
|
|
21
|
+
timeRange: a,
|
|
22
|
+
dateTime: o,
|
|
23
|
+
dateTimeRange: o
|
|
24
|
+
}, L = (r) => {
|
|
25
|
+
const {
|
|
26
|
+
className: c,
|
|
27
|
+
type: t = "date",
|
|
28
|
+
format: d,
|
|
29
|
+
dayPlaceholder: i = "dd",
|
|
30
|
+
monthPlaceholder: s = "mm",
|
|
31
|
+
yearPlaceholder: n = "yyyy",
|
|
32
|
+
hourPlaceholder: y = "hh",
|
|
33
|
+
minutePlaceholder: l = "mm",
|
|
34
|
+
secondPlaceholder: h = "ss",
|
|
35
|
+
value: p,
|
|
36
|
+
onChange: P
|
|
37
|
+
} = r, f = {
|
|
38
|
+
className: k(
|
|
39
|
+
"xtrDatePicker",
|
|
40
|
+
c
|
|
41
|
+
),
|
|
42
|
+
calendarIcon: /* @__PURE__ */ e(m, { code: "f784", type: "solid" }),
|
|
43
|
+
clearIcon: /* @__PURE__ */ e(m, { code: "f00d", type: "solid" }),
|
|
44
|
+
format: d ?? R[t],
|
|
45
|
+
dayPlaceholder: i,
|
|
46
|
+
monthPlaceholder: s,
|
|
47
|
+
yearPlaceholder: n,
|
|
48
|
+
hourPlaceholder: y,
|
|
49
|
+
minutePlaceholder: l,
|
|
50
|
+
secondPlaceholder: h,
|
|
51
|
+
value: p,
|
|
52
|
+
onChange: P
|
|
53
|
+
}, D = u[t];
|
|
54
|
+
return /* @__PURE__ */ e(D, { ...f });
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
L as DatePicker
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type DateValueShort = string | Date | null;
|
|
2
|
+
export type TDateValue = DateValueShort | [DateValueShort, DateValueShort];
|
|
3
|
+
export type TDatePickerProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
type?: keyof typeof EDatePickerTypes;
|
|
6
|
+
format?: string;
|
|
7
|
+
dayPlaceholder?: string;
|
|
8
|
+
monthPlaceholder?: string;
|
|
9
|
+
yearPlaceholder?: string;
|
|
10
|
+
hourPlaceholder?: string;
|
|
11
|
+
minutePlaceholder?: string;
|
|
12
|
+
secondPlaceholder?: string;
|
|
13
|
+
value?: TDateValue;
|
|
14
|
+
onChange: (value: TDateValue) => void;
|
|
15
|
+
};
|
|
16
|
+
export declare enum EDatePickerTypes {
|
|
17
|
+
date = "date",
|
|
18
|
+
dateRange = "dateRange",
|
|
19
|
+
time = "time",
|
|
20
|
+
timeRange = "timeRange",
|
|
21
|
+
dateTime = "dateTime",
|
|
22
|
+
dateTimeRange = "dateTimeRange"
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/base/DatePicker/types.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;AAC3C,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;AAE3E,MAAM,MAAM,gBAAgB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,OAAO,gBAAgB,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAA;CACrC,CAAA;AAED,oBAAY,gBAAgB;IAC3B,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;CAC/B"}
|
|
@@ -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
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/base/Select/Select.tsx"],"names":[],"mappings":"AAGA,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,wBAAgB,MAAM,CAAE,MAAM,GAAG,MAAM,EAAG,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,2CAgCpE"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
3
|
+
import x from "clsx";
|
|
4
|
+
import S from "react-select";
|
|
5
|
+
import "./select.scss.js";
|
|
6
|
+
function C(e) {
|
|
7
|
+
const {
|
|
8
|
+
className: l,
|
|
9
|
+
type: s = "single",
|
|
10
|
+
placeholder: t = "Select an option",
|
|
11
|
+
noOptionsMessage: a,
|
|
12
|
+
clearable: i = !0,
|
|
13
|
+
searchable: o = !0,
|
|
14
|
+
disabled: r = !1,
|
|
15
|
+
loading: c = !1,
|
|
16
|
+
options: n,
|
|
17
|
+
value: m,
|
|
18
|
+
onChange: p
|
|
19
|
+
} = e, u = x(
|
|
20
|
+
"xtrSelect",
|
|
21
|
+
l
|
|
22
|
+
);
|
|
23
|
+
return /* @__PURE__ */ f(
|
|
24
|
+
S,
|
|
25
|
+
{
|
|
26
|
+
className: u,
|
|
27
|
+
classNamePrefix: "xtrSelect",
|
|
28
|
+
isMulti: s === "multi",
|
|
29
|
+
noOptionsMessage: a,
|
|
30
|
+
placeholder: t,
|
|
31
|
+
isClearable: i,
|
|
32
|
+
isSearchable: o,
|
|
33
|
+
isDisabled: r,
|
|
34
|
+
isLoading: c,
|
|
35
|
+
options: n,
|
|
36
|
+
value: m,
|
|
37
|
+
onChange: p
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
C as Select
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ActionMeta, GroupBase, MultiValue, OptionsOrGroups, SingleValue } from 'react-select';
|
|
3
|
+
export type TSelectProps<T = string> = {
|
|
4
|
+
className?: string;
|
|
5
|
+
type?: keyof typeof ESelectTypes;
|
|
6
|
+
noOptionsMessage?: (obj: {
|
|
7
|
+
inputValue: string;
|
|
8
|
+
}) => ReactNode;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
clearable?: boolean;
|
|
11
|
+
searchable?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
options: OptionsOrGroups<T, GroupBase<T>>;
|
|
15
|
+
value?: T;
|
|
16
|
+
onChange?: (newValue: SingleValue<T> | MultiValue<T>, actionMeta: ActionMeta<T>) => void;
|
|
17
|
+
};
|
|
18
|
+
export declare enum ESelectTypes {
|
|
19
|
+
single = "single",
|
|
20
|
+
multi = "multi"
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +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,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE/F,MAAM,MAAM,YAAY,CAAC,CAAC,GAAG,MAAM,IAAI;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,OAAO,YAAY,CAAC;IACjC,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,eAAe,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1C,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CACzF,CAAA;AAED,oBAAY,YAAY;IACvB,MAAM,WAAW;IACjB,KAAK,UAAU;CACf"}
|