meticulous-ui 2.5.6 → 2.6.0
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 +32 -19
- package/components/Button/Button.js +32 -33
- package/components/Dropdown/Dropdown.js +32 -33
- package/components/Input/Checkbox/Checkbox.js +38 -39
- package/components/Input/Checkbox/helpers.js +21 -22
- package/components/Input/FileUploader/FileUploader.js +18 -19
- package/components/Input/Input/Input.js +37 -37
- package/components/Input/Input/helpers.js +26 -27
- package/components/Input/Radio/Radio.js +15 -16
- package/components/Input/Textarea/Textarea.js +38 -38
- package/components/Input/Textarea/helpers.js +20 -21
- package/components/Loader/Loader.js +10 -11
- package/components/Loader/helpers.js +21 -22
- package/components/PageLoader/PageLoader.js +10 -11
- package/components/Pagination/Pagination.js +50 -52
- package/components/Selectbox/Selectbox.js +30 -31
- package/components/Shimmer/Shimmer.js +7 -18
- package/components/Shimmer/styles.js +29 -0
- package/components/Spinner/Spinner.js +14 -15
- package/components/Timer/Timer.js +19 -19
- package/components/Toast/Toast.js +26 -34
- package/components/Typography/P/P.js +3 -7
- package/package.json +9 -4
- package/utils/hasEqualProps.js +6 -4
|
@@ -1,75 +1,75 @@
|
|
|
1
1
|
import { jsxs as H, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import P from "
|
|
3
|
-
import { useState as _ } from "react";
|
|
2
|
+
import { useState as P } from "react";
|
|
4
3
|
import { Wrapper as q, InputBox as v, LeftIconWrapper as A, RightIconWrapper as D, Label as G, HelperText as J } from "./styles.js";
|
|
5
|
-
import { getColor as K, getIcon as
|
|
4
|
+
import { getColor as K, getIcon as y } from "./helpers.js";
|
|
6
5
|
import M from "../../../colors/white.js";
|
|
7
6
|
import N from "../../../colors/grey.js";
|
|
8
|
-
const
|
|
7
|
+
const Z = ({
|
|
9
8
|
label: e,
|
|
10
|
-
onChange:
|
|
11
|
-
value:
|
|
12
|
-
type:
|
|
13
|
-
hasError:
|
|
14
|
-
name:
|
|
15
|
-
color:
|
|
16
|
-
size:
|
|
17
|
-
disableAutoComplete:
|
|
9
|
+
onChange: B,
|
|
10
|
+
value: n,
|
|
11
|
+
type: C,
|
|
12
|
+
hasError: b,
|
|
13
|
+
name: u = "input",
|
|
14
|
+
color: x = "blue",
|
|
15
|
+
size: L = "20",
|
|
16
|
+
disableAutoComplete: W,
|
|
18
17
|
helperText: s = "",
|
|
19
|
-
background:
|
|
20
|
-
outerBackground:
|
|
18
|
+
background: l = "transparent",
|
|
19
|
+
outerBackground: j = M,
|
|
21
20
|
leftIcon: m,
|
|
22
21
|
rightIcon: f,
|
|
23
|
-
|
|
22
|
+
placeholder: i,
|
|
23
|
+
...R
|
|
24
24
|
}) => {
|
|
25
|
-
const [t,
|
|
26
|
-
|
|
27
|
-
},
|
|
25
|
+
const [t, I] = P(!1), c = K(x), S = () => I(!0), k = () => I(!1), w = (E) => {
|
|
26
|
+
B(E);
|
|
27
|
+
}, $ = { color: N.m500, size: 22 }, a = y(m), d = y(f), h = !!(m && a), g = !!(f && d), r = b, z = l, p = `input-${u}`, F = s ? `${p}-helper` : void 0;
|
|
28
28
|
return /* @__PURE__ */ H(q, { children: [
|
|
29
29
|
/* @__PURE__ */ o(
|
|
30
30
|
v,
|
|
31
31
|
{
|
|
32
|
-
type:
|
|
33
|
-
name:
|
|
34
|
-
$hasError:
|
|
35
|
-
size:
|
|
36
|
-
value:
|
|
32
|
+
type: C,
|
|
33
|
+
name: u,
|
|
34
|
+
$hasError: r,
|
|
35
|
+
size: L,
|
|
36
|
+
value: n,
|
|
37
37
|
$isFocused: t,
|
|
38
38
|
$shade: c,
|
|
39
39
|
$background: z,
|
|
40
40
|
$hasLeftIcon: h,
|
|
41
|
-
$hasRightIcon:
|
|
41
|
+
$hasRightIcon: g,
|
|
42
42
|
id: p,
|
|
43
|
-
"aria-invalid":
|
|
44
|
-
"aria-describedby":
|
|
43
|
+
"aria-invalid": r ? !0 : void 0,
|
|
44
|
+
"aria-describedby": F,
|
|
45
45
|
onFocus: S,
|
|
46
46
|
onBlur: k,
|
|
47
47
|
onChange: w,
|
|
48
|
-
autoComplete:
|
|
49
|
-
...
|
|
48
|
+
autoComplete: W ? "off" : "on",
|
|
49
|
+
...R
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
(e || i && !
|
|
52
|
+
a && /* @__PURE__ */ o(A, { "aria-hidden": "true", children: a($) }),
|
|
53
|
+
d && /* @__PURE__ */ o(D, { "aria-hidden": "true", children: d($) }),
|
|
54
|
+
(e || i && !n) && /* @__PURE__ */ o(
|
|
55
55
|
G,
|
|
56
56
|
{
|
|
57
57
|
as: "label",
|
|
58
58
|
htmlFor: p,
|
|
59
|
-
$hasError:
|
|
59
|
+
$hasError: r,
|
|
60
60
|
$isFocused: t,
|
|
61
61
|
$shade: c,
|
|
62
|
-
value:
|
|
63
|
-
$outerBackground: t ||
|
|
62
|
+
value: n,
|
|
63
|
+
$outerBackground: t || n ? j : l,
|
|
64
64
|
$hasLeftIcon: h,
|
|
65
|
-
$hasRightIcon:
|
|
65
|
+
$hasRightIcon: g,
|
|
66
66
|
$onlyPh: i && !e,
|
|
67
67
|
children: e || i
|
|
68
68
|
}
|
|
69
69
|
),
|
|
70
|
-
s && /* @__PURE__ */ o(J, { id:
|
|
70
|
+
s && /* @__PURE__ */ o(J, { id: F, $hasError: r, $isFocused: t, $shade: c, $hasLeftIcon: h, children: s })
|
|
71
71
|
] });
|
|
72
72
|
};
|
|
73
73
|
export {
|
|
74
|
-
|
|
74
|
+
Z as default
|
|
75
75
|
};
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import n from "lodash-es/get";
|
|
2
1
|
import l from "../../../colors/blue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
import n from "../../../colors/green.js";
|
|
3
|
+
import i from "../../../colors/red.js";
|
|
4
|
+
import f from "../../../colors/yellow.js";
|
|
5
|
+
import g from "../../../colors/orange.js";
|
|
6
|
+
import u from "../../../colors/black.js";
|
|
8
7
|
import e from "../../../colors/grey.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
8
|
+
import a from "../../../colors/violet.js";
|
|
9
|
+
import c from "../../../colors/teal.js";
|
|
10
|
+
import s from "../../../colors/purple.js";
|
|
11
|
+
import y from "../../../colors/pink.js";
|
|
12
|
+
import b from "../../Icons/index.js";
|
|
13
|
+
const d = {
|
|
15
14
|
blue: l.m500,
|
|
16
|
-
green:
|
|
17
|
-
red:
|
|
18
|
-
green:
|
|
19
|
-
yellow:
|
|
20
|
-
orange:
|
|
21
|
-
black:
|
|
15
|
+
green: n.m500,
|
|
16
|
+
red: i.m500,
|
|
17
|
+
green: n.m500,
|
|
18
|
+
yellow: f.m500,
|
|
19
|
+
orange: g.m500,
|
|
20
|
+
black: u.m500,
|
|
22
21
|
grey: e.m500,
|
|
23
|
-
violet:
|
|
24
|
-
teal:
|
|
25
|
-
purple:
|
|
26
|
-
pink:
|
|
27
|
-
},
|
|
22
|
+
violet: a.m500,
|
|
23
|
+
teal: c.m500,
|
|
24
|
+
purple: s.m500,
|
|
25
|
+
pink: y.m500
|
|
26
|
+
}, H = (r) => d[r] ?? e.m500, M = ({ $hasError: r, $shade: m, $isFocused: o, value: t, $onlyPh: p }) => r ? typeof t == "string" && !t && !o ? e.m500 : i.m400 : o && !p ? m : e.m500, j = (r) => b[r] ?? null, q = ({ $hasLeftIcon: r, $hasRightIcon: m }) => r && m ? "0 2.4rem" : r ? "0 0.6rem 0 2.4rem" : m ? "0 2.4rem 0 0.6rem" : "0 0.6rem";
|
|
28
27
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
H as getColor,
|
|
29
|
+
M as getCssShade,
|
|
30
|
+
j as getIcon,
|
|
31
|
+
q as getPadding
|
|
33
32
|
};
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import c from "lodash-es/get";
|
|
1
|
+
import { jsxs as o, jsx as n } from "react/jsx-runtime";
|
|
3
2
|
import u from "../../Typography/P/P.js";
|
|
4
3
|
import m from "../../../colors/blue.js";
|
|
5
|
-
import { Wrapper as $, HiddenInput as y, CircleBorder as D, Circle as
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
4
|
+
import { Wrapper as $, HiddenInput as y, CircleBorder as D, Circle as w } from "./styles.js";
|
|
5
|
+
const k = ({ label: s, value: r, name: p, color: e, textColor: f, isSelected: d, disabled: t, onChange: i }) => {
|
|
6
|
+
const c = (e == null ? void 0 : e.m500) ?? m.m500, a = (e == null ? void 0 : e.m800) ?? m.m800;
|
|
7
|
+
return /* @__PURE__ */ o($, { $disabled: t, $focusShade: a, children: [
|
|
8
|
+
/* @__PURE__ */ n(
|
|
10
9
|
y,
|
|
11
10
|
{
|
|
12
11
|
type: "radio",
|
|
13
|
-
name:
|
|
12
|
+
name: p,
|
|
14
13
|
value: r,
|
|
15
|
-
checked:
|
|
16
|
-
disabled:
|
|
17
|
-
onChange: () =>
|
|
18
|
-
onKeyDown: (
|
|
19
|
-
|
|
14
|
+
checked: d,
|
|
15
|
+
disabled: t,
|
|
16
|
+
onChange: () => i(r),
|
|
17
|
+
onKeyDown: (h) => {
|
|
18
|
+
h.key === "Enter" && (h.preventDefault(), t || i(r));
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ n(D, { "aria-hidden": "true", $isSelected: d, $shade: a, children: /* @__PURE__ */ n(w, { $isSelected: d, $shade: c }) }),
|
|
23
|
+
/* @__PURE__ */ n(u, { color: f, size: "1.2rem", children: s })
|
|
25
24
|
] });
|
|
26
25
|
};
|
|
27
26
|
export {
|
|
28
|
-
|
|
27
|
+
k as default
|
|
29
28
|
};
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import E from "
|
|
3
|
-
import {
|
|
4
|
-
import { Wrapper as O, TextareaBox as S, Parent as T, Label as W, HelperText as _ } from "./styles.js";
|
|
1
|
+
import { jsxs as m, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { useState as E, useRef as L } from "react";
|
|
3
|
+
import { Wrapper as N, TextareaBox as O, Parent as S, Label as T, HelperText as W } from "./styles.js";
|
|
5
4
|
import { getColor as q } from "./helpers.js";
|
|
6
5
|
import G from "../../../colors/white.js";
|
|
7
|
-
const
|
|
6
|
+
const V = ({
|
|
8
7
|
label: s,
|
|
9
|
-
onChange:
|
|
8
|
+
onChange: p,
|
|
10
9
|
value: e,
|
|
11
|
-
type:
|
|
12
|
-
hasError:
|
|
10
|
+
type: g,
|
|
11
|
+
hasError: F,
|
|
13
12
|
name: h = "textarea",
|
|
14
|
-
color:
|
|
13
|
+
color: b = "blue",
|
|
15
14
|
helperText: n = "",
|
|
16
15
|
background: u = "transparent",
|
|
17
|
-
outerBackground:
|
|
16
|
+
outerBackground: B = G,
|
|
18
17
|
isDynamic: a,
|
|
19
|
-
isResizeNone:
|
|
20
|
-
rows:
|
|
21
|
-
cols:
|
|
22
|
-
|
|
18
|
+
isResizeNone: j,
|
|
19
|
+
rows: y = "2",
|
|
20
|
+
cols: C = "20",
|
|
21
|
+
placeholder: i,
|
|
22
|
+
...H
|
|
23
23
|
}) => {
|
|
24
|
-
const [t,
|
|
24
|
+
const [t, f] = E(!1), c = q(b), $ = L(null), I = () => f(!0), R = () => f(!1), w = (z) => {
|
|
25
25
|
if (a) {
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
28
|
-
|
|
29
|
-
const A =
|
|
30
|
-
|
|
26
|
+
const o = $.current;
|
|
27
|
+
if (o) {
|
|
28
|
+
o.style.height = "0px";
|
|
29
|
+
const A = o.scrollHeight;
|
|
30
|
+
o.style.height = `${A}px`;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
return /* @__PURE__ */
|
|
33
|
+
p(z);
|
|
34
|
+
}, r = F, P = a, k = u, v = a ? {} : { rows: y }, l = `textarea-${h}`, x = n ? `${l}-helper` : void 0;
|
|
35
|
+
return /* @__PURE__ */ m(N, { children: [
|
|
36
36
|
/* @__PURE__ */ d(
|
|
37
|
-
|
|
37
|
+
O,
|
|
38
38
|
{
|
|
39
|
-
type:
|
|
39
|
+
type: g,
|
|
40
40
|
name: h,
|
|
41
|
-
$hasError:
|
|
41
|
+
$hasError: r,
|
|
42
42
|
value: e,
|
|
43
43
|
$isFocused: t,
|
|
44
44
|
$shade: c,
|
|
45
45
|
$isDynamic: P,
|
|
46
46
|
$background: k,
|
|
47
|
-
cols:
|
|
48
|
-
$isResizeNone:
|
|
47
|
+
cols: C,
|
|
48
|
+
$isResizeNone: j,
|
|
49
49
|
...v,
|
|
50
50
|
id: l,
|
|
51
|
-
"aria-invalid":
|
|
52
|
-
"aria-describedby":
|
|
53
|
-
ref:
|
|
51
|
+
"aria-invalid": r ? !0 : void 0,
|
|
52
|
+
"aria-describedby": x,
|
|
53
|
+
ref: $,
|
|
54
54
|
onFocus: I,
|
|
55
55
|
onBlur: R,
|
|
56
56
|
onChange: w,
|
|
57
|
-
...
|
|
57
|
+
...H
|
|
58
58
|
}
|
|
59
59
|
),
|
|
60
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ m(S, { children: [
|
|
61
61
|
(s || i && !e) && /* @__PURE__ */ d(
|
|
62
|
-
|
|
62
|
+
T,
|
|
63
63
|
{
|
|
64
64
|
as: "label",
|
|
65
65
|
htmlFor: l,
|
|
66
|
-
$hasError:
|
|
66
|
+
$hasError: r,
|
|
67
67
|
$isFocused: t,
|
|
68
68
|
$shade: c,
|
|
69
69
|
$value: e,
|
|
70
|
-
$outerBackground: t || e ?
|
|
70
|
+
$outerBackground: t || e ? B : u,
|
|
71
71
|
$onlyPh: i && !s,
|
|
72
72
|
children: s || i
|
|
73
73
|
}
|
|
74
74
|
),
|
|
75
|
-
n && /* @__PURE__ */ d(
|
|
75
|
+
n && /* @__PURE__ */ d(W, { id: x, $hasError: r, $isFocused: t, $shade: c, children: n })
|
|
76
76
|
] })
|
|
77
77
|
] });
|
|
78
78
|
};
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
V as default
|
|
81
81
|
};
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import n from "../../../colors/blue.js";
|
|
1
|
+
import f from "../../../colors/blue.js";
|
|
3
2
|
import t from "../../../colors/green.js";
|
|
4
3
|
import p from "../../../colors/red.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
4
|
+
import n from "../../../colors/yellow.js";
|
|
5
|
+
import g from "../../../colors/orange.js";
|
|
6
|
+
import a from "../../../colors/black.js";
|
|
8
7
|
import r from "../../../colors/grey.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
const
|
|
14
|
-
blue:
|
|
8
|
+
import u from "../../../colors/violet.js";
|
|
9
|
+
import y from "../../../colors/teal.js";
|
|
10
|
+
import b from "../../../colors/purple.js";
|
|
11
|
+
import c from "../../../colors/pink.js";
|
|
12
|
+
const k = {
|
|
13
|
+
blue: f.m500,
|
|
15
14
|
green: t.m500,
|
|
16
15
|
red: p.m500,
|
|
17
16
|
green: t.m500,
|
|
18
|
-
yellow:
|
|
19
|
-
orange:
|
|
20
|
-
black:
|
|
17
|
+
yellow: n.m500,
|
|
18
|
+
orange: g.m500,
|
|
19
|
+
black: a.m500,
|
|
21
20
|
grey: r.m500,
|
|
22
|
-
violet:
|
|
23
|
-
teal:
|
|
24
|
-
purple:
|
|
25
|
-
pink:
|
|
26
|
-
},
|
|
21
|
+
violet: u.m500,
|
|
22
|
+
teal: y.m500,
|
|
23
|
+
purple: b.m500,
|
|
24
|
+
pink: c.m500
|
|
25
|
+
}, E = (m) => k[m] ?? r.m500, H = ({ $hasError: m, $shade: i, $isFocused: o, value: e, $onlyPh: l, textColor: s }) => m ? typeof e == "string" && !e && !o ? r.m500 : p.m400 : o && !l ? i : r.m500;
|
|
27
26
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
E as getColor,
|
|
28
|
+
H as getCssShade
|
|
30
29
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
return /* @__PURE__ */ h(L, { role: "status", $gap: I, children: [
|
|
1
|
+
import { jsxs as u, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { LoaderWrapper as L, VisuallyHidden as $, Dot as f } from "./styles.js";
|
|
3
|
+
import { SIZE as c, MEDIUM as l, THEME_SHADE as s, MINI_ANIMATION_DELAYS as D, ANIMATION_DELAYS as M, BLUE as N } from "./constants.js";
|
|
4
|
+
import { getTheme as g } from "./helpers.js";
|
|
5
|
+
const H = ({ size: m = l, theme: n = N, isBounce: p, isMini: t, isMiniDark: i }) => {
|
|
6
|
+
const { dot: E, gap: I } = c[m] || c[l], r = g(n), a = t ? D : M, A = (i ? s.slice(2, 6) : t ? s.slice(0, 3) : s).map((o) => r[o] ?? r.m500), h = a.map(() => E);
|
|
7
|
+
return /* @__PURE__ */ u(L, { role: "status", $gap: I, children: [
|
|
9
8
|
/* @__PURE__ */ d($, { children: "Loading" }),
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
h.map((o, e) => /* @__PURE__ */ d(
|
|
10
|
+
f,
|
|
12
11
|
{
|
|
13
12
|
"aria-hidden": "true",
|
|
14
13
|
$size: o,
|
|
@@ -21,5 +20,5 @@ const B = ({ size: m = l, theme: n = N, isBounce: p, isMini: r, isMiniDark: i })
|
|
|
21
20
|
] });
|
|
22
21
|
};
|
|
23
22
|
export {
|
|
24
|
-
|
|
23
|
+
H as default
|
|
25
24
|
};
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import m from "lodash-es/get";
|
|
2
1
|
import o from "../../colors/blue.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
2
|
+
import m from "../../colors/green.js";
|
|
3
|
+
import t from "../../colors/red.js";
|
|
4
|
+
import p from "../../colors/yellow.js";
|
|
5
|
+
import e from "../../colors/orange.js";
|
|
6
|
+
import i from "../../colors/black.js";
|
|
7
|
+
import f from "../../colors/grey.js";
|
|
8
|
+
import l from "../../colors/violet.js";
|
|
10
9
|
import n from "../../colors/teal.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
const
|
|
10
|
+
import g from "../../colors/purple.js";
|
|
11
|
+
import a from "../../colors/pink.js";
|
|
12
|
+
const c = {
|
|
14
13
|
blue: o,
|
|
15
|
-
green:
|
|
16
|
-
red:
|
|
17
|
-
yellow:
|
|
18
|
-
orange:
|
|
19
|
-
black:
|
|
20
|
-
grey:
|
|
21
|
-
violet:
|
|
14
|
+
green: m,
|
|
15
|
+
red: t,
|
|
16
|
+
yellow: p,
|
|
17
|
+
orange: e,
|
|
18
|
+
black: i,
|
|
19
|
+
grey: f,
|
|
20
|
+
violet: l,
|
|
22
21
|
teal: n,
|
|
23
|
-
purple:
|
|
24
|
-
pink:
|
|
25
|
-
},
|
|
22
|
+
purple: g,
|
|
23
|
+
pink: a
|
|
24
|
+
}, w = (r) => c[r] ?? o;
|
|
26
25
|
export {
|
|
27
|
-
|
|
26
|
+
w as getTheme
|
|
28
27
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
s,
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { getColor as t } from "../Input/Checkbox/helpers.js";
|
|
3
|
+
import { PageLdr as i } from "./styles.js";
|
|
4
|
+
import n from "../../colors/blue.js";
|
|
5
|
+
const f = ({ theme: o = "blue", color: a, ...e }) => {
|
|
6
|
+
const r = t(o), m = a || ((r == null ? void 0 : r.m500) ?? n.m500);
|
|
7
|
+
return /* @__PURE__ */ l(
|
|
8
|
+
i,
|
|
10
9
|
{
|
|
11
|
-
...
|
|
10
|
+
...e,
|
|
12
11
|
$color: m,
|
|
13
12
|
role: "progressbar",
|
|
14
13
|
"aria-label": "Loading",
|
|
@@ -18,5 +17,5 @@ const d = ({ theme: r = "blue", color: o, ...a }) => {
|
|
|
18
17
|
);
|
|
19
18
|
};
|
|
20
19
|
export {
|
|
21
|
-
|
|
20
|
+
f as default
|
|
22
21
|
};
|