welcome-ui 10.1.8 → 10.1.9
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/Accordion.js +15 -14
- package/dist/Alert.js +6 -5
- package/dist/AspectRatio.js +3 -2
- package/dist/Avatar.js +4 -3
- package/dist/Badge.js +5 -4
- package/dist/Breadcrumb.js +2 -1
- package/dist/Button.js +2 -1
- package/dist/ButtonGroup.js +11 -10
- package/dist/Card.js +22 -21
- package/dist/Checkbox.js +18 -17
- package/dist/CloseButton.js +13 -12
- package/dist/DatePicker.js +29 -28
- package/dist/Drawer.js +20 -19
- package/dist/DropdownMenu.js +1 -0
- package/dist/Field.js +16 -15
- package/dist/FieldGroup.js +7 -6
- package/dist/FileDrop.js +29 -28
- package/dist/FileUpload.js +36 -35
- package/dist/FloatingActionBar.js +8 -7
- package/dist/Hint.js +9 -8
- package/dist/Icon.js +5 -4
- package/dist/InputText.js +26 -25
- package/dist/Label.js +8 -7
- package/dist/Link.js +20 -19
- package/dist/Loader.js +10 -9
- package/dist/Logo.js +6 -5
- package/dist/Modal.js +1 -0
- package/dist/Pagination.js +42 -41
- package/dist/Popover.js +7 -6
- package/dist/Radio.js +16 -15
- package/dist/RadioGroup.js +36 -35
- package/dist/RadioTab.js +20 -19
- package/dist/Search.js +28 -27
- package/dist/Select.js +25 -24
- package/dist/Slider.js +11 -10
- package/dist/Stamp.js +5 -4
- package/dist/Stepper.js +22 -21
- package/dist/StickyNote.js +10 -9
- package/dist/Swiper.js +18 -17
- package/dist/Table.js +9 -8
- package/dist/Tabs.js +1 -0
- package/dist/Tag.js +6 -5
- package/dist/Text.js +5 -4
- package/dist/Textarea.js +13 -12
- package/dist/Toast.js +2 -1
- package/dist/Toggle.js +9 -8
- package/dist/Tooltip.js +35 -34
- package/dist/VariantIcon.js +2 -1
- package/dist/VisuallyHidden.js +8 -7
- package/dist/Window.js +12 -11
- package/dist/types/components/Accordion/index.d.ts +2 -0
- package/dist/types/components/Alert/index.d.ts +2 -0
- package/dist/types/components/AspectRatio/index.d.ts +2 -0
- package/dist/types/components/Avatar/index.d.ts +2 -0
- package/dist/types/components/Badge/index.d.ts +2 -0
- package/dist/types/components/Breadcrumb/index.d.ts +2 -0
- package/dist/types/components/Button/index.d.ts +2 -0
- package/dist/types/components/ButtonGroup/index.d.ts +2 -0
- package/dist/types/components/Card/index.d.ts +2 -0
- package/dist/types/components/Checkbox/index.d.ts +2 -0
- package/dist/types/components/CloseButton/index.d.ts +2 -0
- package/dist/types/components/DatePicker/index.d.ts +2 -0
- package/dist/types/components/Drawer/AssetDrawer/index.d.ts +2 -0
- package/dist/types/components/Drawer/index.d.ts +2 -0
- package/dist/types/components/DropdownMenu/index.d.ts +2 -0
- package/dist/types/components/Field/index.d.ts +2 -0
- package/dist/types/components/FieldGroup/index.d.ts +2 -0
- package/dist/types/components/FileDrop/index.d.ts +2 -0
- package/dist/types/components/FileUpload/index.d.ts +2 -0
- package/dist/types/components/FloatingActionBar/index.d.ts +2 -0
- package/dist/types/components/Hint/index.d.ts +2 -0
- package/dist/types/components/Icon/index.d.ts +2 -0
- package/dist/types/components/InputText/index.d.ts +2 -0
- package/dist/types/components/Label/index.d.ts +2 -0
- package/dist/types/components/Link/index.d.ts +2 -0
- package/dist/types/components/Loader/index.d.ts +2 -0
- package/dist/types/components/Logo/Symbol.d.ts +2 -0
- package/dist/types/components/Logo/index.d.ts +2 -2
- package/dist/types/components/Modal/Assets/index.d.ts +2 -0
- package/dist/types/components/Modal/index.d.ts +2 -0
- package/dist/types/components/Pagination/index.d.ts +2 -0
- package/dist/types/components/Popover/index.d.ts +2 -0
- package/dist/types/components/Radio/index.d.ts +2 -0
- package/dist/types/components/RadioGroup/index.d.ts +2 -0
- package/dist/types/components/RadioTab/index.d.ts +2 -0
- package/dist/types/components/Search/index.d.ts +2 -0
- package/dist/types/components/Select/index.d.ts +2 -0
- package/dist/types/components/Slider/index.d.ts +2 -0
- package/dist/types/components/Stamp/index.d.ts +2 -0
- package/dist/types/components/Stepper/index.d.ts +2 -0
- package/dist/types/components/StickyNote/index.d.ts +2 -0
- package/dist/types/components/Swiper/index.d.ts +2 -1
- package/dist/types/components/Table/index.d.ts +2 -0
- package/dist/types/components/Tabs/index.d.ts +2 -0
- package/dist/types/components/Tag/index.d.ts +2 -0
- package/dist/types/components/Text/index.d.ts +2 -0
- package/dist/types/components/Textarea/index.d.ts +2 -0
- package/dist/types/components/Toast/index.d.ts +2 -0
- package/dist/types/components/Toggle/index.d.ts +2 -0
- package/dist/types/components/Tooltip/index.d.ts +2 -0
- package/dist/types/components/VariantIcon/index.d.ts +2 -0
- package/dist/types/components/VisuallyHidden/index.d.ts +2 -0
- package/dist/types/components/Window/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/Accordion.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './Accordion.css';
|
|
3
3
|
import { jsx as e, jsxs as g } from "react/jsx-runtime";
|
|
4
|
-
import { D
|
|
4
|
+
import { D } from "./NDVACHQI-B7drCM9O.js";
|
|
5
5
|
import { D as S } from "./WLZ6H5FH-6NScq2Y6.js";
|
|
6
6
|
import { u as co } from "./WLZ6H5FH-6NScq2Y6.js";
|
|
7
7
|
import { createContext as j, forwardRef as t, useContext as B, useCallback as I } from "react";
|
|
@@ -26,8 +26,8 @@ const R = "_root_4govd_2", V = {
|
|
|
26
26
|
"accordion-subtitle": "_accordion-subtitle_4govd_65",
|
|
27
27
|
"accordion-content": "_accordion-content_4govd_68",
|
|
28
28
|
"accordion-content-wrapper": "_accordion-content-wrapper_4govd_76"
|
|
29
|
-
}, n = M(V), v = j({}),
|
|
30
|
-
({ children: r, className: a, size: o = "sm", store: c, ...i },
|
|
29
|
+
}, n = M(V), v = j({}), d = () => B(v), A = t(
|
|
30
|
+
({ children: r, className: a, size: o = "sm", store: c, ...i }, s) => /* @__PURE__ */ e(v.Provider, { value: { size: o, store: c }, children: /* @__PURE__ */ e("div", { className: n("root", a), ref: s, ...i, children: r }) })
|
|
31
31
|
);
|
|
32
32
|
A.displayName = "Accordion";
|
|
33
33
|
const N = {
|
|
@@ -36,14 +36,14 @@ const N = {
|
|
|
36
36
|
sm: "sm"
|
|
37
37
|
}, w = t(
|
|
38
38
|
({ children: r, className: a, "data-testid": o = "accordion-disclosure", ...c }, i) => {
|
|
39
|
-
const { size:
|
|
39
|
+
const { size: s, store: l } = d(), m = s === "lg" ? "secondary" : "tertiary", p = N[s];
|
|
40
40
|
return /* @__PURE__ */ g(
|
|
41
|
-
|
|
41
|
+
D,
|
|
42
42
|
{
|
|
43
43
|
ref: i,
|
|
44
44
|
...c,
|
|
45
45
|
"data-testid": o,
|
|
46
|
-
render: (
|
|
46
|
+
render: (C) => /* @__PURE__ */ e("div", { ...C, className: n("accordion-disclosure", a) }),
|
|
47
47
|
role: "button",
|
|
48
48
|
store: l,
|
|
49
49
|
tabIndex: 0,
|
|
@@ -73,9 +73,9 @@ const $ = {
|
|
|
73
73
|
lg: "heading-md-strong",
|
|
74
74
|
md: "heading-sm",
|
|
75
75
|
sm: "heading-xs"
|
|
76
|
-
}, y = t(({ badgeValue: r, badgeVariant: a, className: o, subtitle: c, title: i, ...
|
|
77
|
-
const { size: m } =
|
|
78
|
-
return /* @__PURE__ */ g("div", { className: n("accordion-header", o), ...
|
|
76
|
+
}, y = t(({ badgeValue: r, badgeVariant: a, className: o, subtitle: c, title: i, ...s }, l) => {
|
|
77
|
+
const { size: m } = d();
|
|
78
|
+
return /* @__PURE__ */ g("div", { className: n("accordion-header", o), ...s, ref: l, children: [
|
|
79
79
|
/* @__PURE__ */ g("div", { className: n("accordion-header-title-wrapper"), children: [
|
|
80
80
|
/* @__PURE__ */ e(u, { className: n("accordion-title"), variant: $[m], children: i }),
|
|
81
81
|
r ? /* @__PURE__ */ e(O, { variant: a, children: r }) : null
|
|
@@ -101,11 +101,11 @@ const q = {
|
|
|
101
101
|
md: "lg",
|
|
102
102
|
sm: "md"
|
|
103
103
|
}, E = ({ className: r, name: a, ...o }) => {
|
|
104
|
-
const { size: c } =
|
|
104
|
+
const { size: c } = d(), i = q[c];
|
|
105
105
|
return /* @__PURE__ */ e(_, { className: r, name: a, size: i, ...o });
|
|
106
106
|
}, H = t(
|
|
107
107
|
({ children: r, className: a, ...o }, c) => {
|
|
108
|
-
const { store: i } =
|
|
108
|
+
const { store: i } = d();
|
|
109
109
|
return /* @__PURE__ */ e(
|
|
110
110
|
S,
|
|
111
111
|
{
|
|
@@ -121,14 +121,14 @@ const q = {
|
|
|
121
121
|
H.displayName = "Accordion.Content";
|
|
122
122
|
const W = t(
|
|
123
123
|
({ children: r, className: a, ...o }, c) => {
|
|
124
|
-
const { size: i } =
|
|
124
|
+
const { size: i } = d();
|
|
125
125
|
return /* @__PURE__ */ e(P, { className: a, ref: c, size: i === "lg" ? "lg" : "md", ...o, children: r });
|
|
126
126
|
}
|
|
127
127
|
);
|
|
128
128
|
W.displayName = "Accordion.Tag";
|
|
129
129
|
const b = t(
|
|
130
130
|
({ children: r, className: a, onClick: o, ...c }, i) => {
|
|
131
|
-
const { size:
|
|
131
|
+
const { size: s } = d(), l = N[s], m = I(
|
|
132
132
|
(p) => {
|
|
133
133
|
p.preventDefault(), o == null || o(p);
|
|
134
134
|
},
|
|
@@ -163,6 +163,7 @@ const k = Object.assign(A, {
|
|
|
163
163
|
});
|
|
164
164
|
export {
|
|
165
165
|
k as Accordion,
|
|
166
|
+
V as accordionClasses,
|
|
166
167
|
co as useAccordion,
|
|
167
|
-
|
|
168
|
+
d as useAccordionContext
|
|
168
169
|
};
|
package/dist/Alert.js
CHANGED
|
@@ -54,10 +54,10 @@ const o = b(B), M = {
|
|
|
54
54
|
cta: e,
|
|
55
55
|
handleClose: p,
|
|
56
56
|
icon: k,
|
|
57
|
-
isFullWidth:
|
|
57
|
+
isFullWidth: C,
|
|
58
58
|
size: s = "md",
|
|
59
59
|
variant: c = "brand",
|
|
60
|
-
...
|
|
60
|
+
...T
|
|
61
61
|
}, E) => {
|
|
62
62
|
const S = c === "ai", d = g.toArray(n).some((i) => m.isValidElement(i) ? i.type === _ : !1), y = /* @__PURE__ */ a("div", { className: o("icon-wrapper", `icon-wrapper-${c}`), children: /* @__PURE__ */ a(I, { name: k || M[c] }) }), j = g.toArray(n).map((i, t) => i.type === _ ? /* @__PURE__ */ l("div", { className: o("title-with-icon"), children: [
|
|
63
63
|
y,
|
|
@@ -76,13 +76,13 @@ const o = b(B), M = {
|
|
|
76
76
|
{
|
|
77
77
|
className: o(
|
|
78
78
|
"root",
|
|
79
|
-
|
|
79
|
+
C && "full-width",
|
|
80
80
|
`size-${s}`,
|
|
81
81
|
c && `variant-${c}`,
|
|
82
82
|
r
|
|
83
83
|
),
|
|
84
84
|
ref: E,
|
|
85
|
-
...
|
|
85
|
+
...T,
|
|
86
86
|
children: [
|
|
87
87
|
!!p && /* @__PURE__ */ a(V, { className: o("close-button"), onClick: p }),
|
|
88
88
|
/* @__PURE__ */ l("div", { className: o("content"), children: [
|
|
@@ -113,5 +113,6 @@ const P = Object.assign($, {
|
|
|
113
113
|
});
|
|
114
114
|
export {
|
|
115
115
|
P as Alert,
|
|
116
|
-
M as ICON
|
|
116
|
+
M as ICON,
|
|
117
|
+
B as alertClasses
|
|
117
118
|
};
|
package/dist/AspectRatio.js
CHANGED
|
@@ -11,9 +11,10 @@ const _ = "_root_1clgx_2", l = {
|
|
|
11
11
|
"ratio-3-2": "_ratio-3-2_1clgx_14",
|
|
12
12
|
"ratio-video": "_ratio-video_1clgx_17"
|
|
13
13
|
}, m = c(l), p = e(
|
|
14
|
-
({ as: o = "div", className: t, ratio:
|
|
14
|
+
({ as: o = "div", className: t, ratio: a = "4-3", ...r }, s) => /* @__PURE__ */ i(o, { className: m("root", `ratio-${a}`, t), ref: s, ...r })
|
|
15
15
|
);
|
|
16
16
|
p.displayName = "AspectRatio";
|
|
17
17
|
export {
|
|
18
|
-
p as AspectRatio
|
|
18
|
+
p as AspectRatio,
|
|
19
|
+
l as aspectRatioClasses
|
|
19
20
|
};
|
package/dist/Avatar.js
CHANGED
|
@@ -45,7 +45,7 @@ const f = (r) => {
|
|
|
45
45
|
md: "label-xl",
|
|
46
46
|
sm: "label-lg",
|
|
47
47
|
xs: "label-sm-strong"
|
|
48
|
-
},
|
|
48
|
+
}, C = u(
|
|
49
49
|
({ className: r, getInitials: a = x, name: o, size: e = "md", src: s, ...i }, g) => {
|
|
50
50
|
const c = f(o), t = !s && !o;
|
|
51
51
|
return /* @__PURE__ */ _(
|
|
@@ -71,7 +71,8 @@ const f = (r) => {
|
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
|
-
|
|
74
|
+
C.displayName = "Avatar";
|
|
75
75
|
export {
|
|
76
|
-
|
|
76
|
+
C as Avatar,
|
|
77
|
+
k as avatarClasses
|
|
77
78
|
};
|
package/dist/Badge.js
CHANGED
|
@@ -4,7 +4,7 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
4
4
|
import { forwardRef as d } from "react";
|
|
5
5
|
import { Text as b } from "./Text.js";
|
|
6
6
|
import { c } from "./index-PAaZGbyz.js";
|
|
7
|
-
const v = "_root_103yk_2",
|
|
7
|
+
const v = "_root_103yk_2", g = {
|
|
8
8
|
root: v,
|
|
9
9
|
"size-lg": "_size-lg_103yk_18",
|
|
10
10
|
"size-md": "_size-md_103yk_25",
|
|
@@ -13,14 +13,14 @@ const v = "_root_103yk_2", u = {
|
|
|
13
13
|
"variant-neutral": "_variant-neutral_103yk_41",
|
|
14
14
|
"variant-warm": "_variant-warm_103yk_45",
|
|
15
15
|
"variant-blue": "_variant-blue_103yk_49"
|
|
16
|
-
},
|
|
16
|
+
}, u = c(g), y = d(
|
|
17
17
|
({ children: a, className: s, size: t = "md", variant: e = "warm", withNumberAbbreviation: o, ...i }, n) => {
|
|
18
18
|
const m = Number.isInteger(a) && o && a > 99 ? "99+" : a, _ = t === "lg" ? "label-md-strong" : "label-sm-strong", l = t === "sm";
|
|
19
19
|
return /* @__PURE__ */ r(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
22
|
...i,
|
|
23
|
-
className:
|
|
23
|
+
className: u("root", `variant-${e}`, `size-${t}`, s),
|
|
24
24
|
ref: n,
|
|
25
25
|
children: !l && /* @__PURE__ */ r(b, { variant: _, children: m })
|
|
26
26
|
}
|
|
@@ -29,5 +29,6 @@ const v = "_root_103yk_2", u = {
|
|
|
29
29
|
);
|
|
30
30
|
y.displayName = "Badge";
|
|
31
31
|
export {
|
|
32
|
-
y as Badge
|
|
32
|
+
y as Badge,
|
|
33
|
+
g as badgeClasses
|
|
33
34
|
};
|
package/dist/Breadcrumb.js
CHANGED
package/dist/Button.js
CHANGED
package/dist/ButtonGroup.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './ButtonGroup.css';
|
|
3
|
-
import { jsx as
|
|
3
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
4
4
|
import { createContext as f, useMemo as i, useContext as l } from "react";
|
|
5
5
|
import { c as x } from "./index-PAaZGbyz.js";
|
|
6
6
|
import { f as G } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
7
7
|
const d = "_root_kot0y_2", y = {
|
|
8
8
|
root: d
|
|
9
|
-
}, B = x(y),
|
|
10
|
-
function
|
|
11
|
-
return l(
|
|
9
|
+
}, B = x(y), e = f({});
|
|
10
|
+
function b() {
|
|
11
|
+
return l(e);
|
|
12
12
|
}
|
|
13
13
|
const C = G(
|
|
14
14
|
({
|
|
15
15
|
as: n = "div",
|
|
16
16
|
children: u,
|
|
17
|
-
className:
|
|
17
|
+
className: a,
|
|
18
18
|
disabled: o = !1,
|
|
19
19
|
size: t = "md",
|
|
20
20
|
variant: r = "primary",
|
|
21
|
-
...
|
|
22
|
-
},
|
|
21
|
+
...c
|
|
22
|
+
}, m) => {
|
|
23
23
|
const p = i(() => ({ disabled: o, size: t, variant: r }), [o, t, r]);
|
|
24
|
-
return /* @__PURE__ */ e
|
|
24
|
+
return /* @__PURE__ */ s(e.Provider, { value: p, children: /* @__PURE__ */ s(n, { ...c, className: B("root", a), ref: m, children: u }) });
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
27
|
C.displayName = "ButtonGroup";
|
|
28
28
|
export {
|
|
29
29
|
C as ButtonGroup,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
e as ButtonGroupContext,
|
|
31
|
+
y as buttonGroupClasses,
|
|
32
|
+
b as useButtonGroup
|
|
32
33
|
};
|
package/dist/Card.js
CHANGED
|
@@ -3,7 +3,7 @@ import './Card.css';
|
|
|
3
3
|
import { jsxs as _, jsx as r } from "react/jsx-runtime";
|
|
4
4
|
import { forwardRef as t } from "react";
|
|
5
5
|
import { c } from "./index-PAaZGbyz.js";
|
|
6
|
-
import { Button as
|
|
6
|
+
import { Button as h } from "./Button.js";
|
|
7
7
|
import { Icon as b } from "./Icon.js";
|
|
8
8
|
import { f as q } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
9
9
|
const u = "_root_13dyq_2", v = "_header_13dyq_33", z = "_close_13dyq_46", x = "_body_13dyq_74", g = "_metadata_13dyq_83", $ = "_footer_13dyq_91", i = {
|
|
@@ -16,28 +16,28 @@ const u = "_root_13dyq_2", v = "_header_13dyq_33", z = "_close_13dyq_46", x = "_
|
|
|
16
16
|
"size-sm": "_size-sm_13dyq_104",
|
|
17
17
|
"size-md": "_size-md_13dyq_118",
|
|
18
18
|
"size-lg": "_size-lg_13dyq_132"
|
|
19
|
-
},
|
|
20
|
-
({ children:
|
|
21
|
-
|
|
22
|
-
e ? /* @__PURE__ */ r("div", { className:
|
|
19
|
+
}, l = c(i), y = t(
|
|
20
|
+
({ children: a, className: o, metadata: e, ...s }, d) => /* @__PURE__ */ _("div", { className: l("body", o), ref: d, ...s, children: [
|
|
21
|
+
a,
|
|
22
|
+
e ? /* @__PURE__ */ r("div", { className: l("metadata"), children: e }) : null
|
|
23
23
|
] })
|
|
24
24
|
);
|
|
25
25
|
y.displayName = "Card.Body";
|
|
26
|
-
const f = t(({ alt:
|
|
26
|
+
const f = t(({ alt: a, src: o, ...e }, s) => /* @__PURE__ */ r("div", { ref: s, ...e, children: /* @__PURE__ */ r("img", { alt: a, src: o }) }));
|
|
27
27
|
f.displayName = "Card.Cover";
|
|
28
28
|
const j = c(i), p = t(
|
|
29
|
-
({ children:
|
|
29
|
+
({ children: a, className: o, ...e }, s) => /* @__PURE__ */ r("div", { className: j("footer", o), ref: s, ...e, children: a })
|
|
30
30
|
);
|
|
31
31
|
p.displayName = "Card.Footer";
|
|
32
|
-
const
|
|
33
|
-
({ children:
|
|
34
|
-
|
|
32
|
+
const m = c(i), C = t(
|
|
33
|
+
({ children: a, className: o, disabled: e, onClose: s, ...d }, n) => /* @__PURE__ */ _("div", { className: m("header", o), ref: n, ...d, children: [
|
|
34
|
+
a,
|
|
35
35
|
s ? /* @__PURE__ */ r(
|
|
36
|
-
|
|
36
|
+
h,
|
|
37
37
|
{
|
|
38
38
|
accessibleWhenDisabled: !1,
|
|
39
39
|
"aria-label": "Close",
|
|
40
|
-
className:
|
|
40
|
+
className: m("close"),
|
|
41
41
|
disabled: e,
|
|
42
42
|
onClick: () => s(),
|
|
43
43
|
size: "sm",
|
|
@@ -47,26 +47,27 @@ const l = c(i), N = t(
|
|
|
47
47
|
) : null
|
|
48
48
|
] })
|
|
49
49
|
);
|
|
50
|
-
|
|
51
|
-
const B = c(i),
|
|
52
|
-
({ as:
|
|
53
|
-
|
|
50
|
+
C.displayName = "Card.Header";
|
|
51
|
+
const B = c(i), N = q(
|
|
52
|
+
({ as: a = "div", className: o, disabled: e, size: s = "md", ...d }, n) => /* @__PURE__ */ r(
|
|
53
|
+
a,
|
|
54
54
|
{
|
|
55
55
|
"aria-disabled": e,
|
|
56
56
|
...d,
|
|
57
|
-
className: B("root", `size-${s}`,
|
|
57
|
+
className: B("root", `size-${s}`, o),
|
|
58
58
|
ref: n
|
|
59
59
|
}
|
|
60
60
|
)
|
|
61
61
|
);
|
|
62
|
-
|
|
63
|
-
const A = Object.assign(
|
|
62
|
+
N.displayName = "Card";
|
|
63
|
+
const A = Object.assign(N, {
|
|
64
64
|
Body: y,
|
|
65
65
|
Cover: f,
|
|
66
66
|
Footer: p,
|
|
67
|
-
Header:
|
|
67
|
+
Header: C
|
|
68
68
|
});
|
|
69
69
|
export {
|
|
70
70
|
A as Card,
|
|
71
|
-
|
|
71
|
+
N as CardComponent,
|
|
72
|
+
i as cardClasses
|
|
72
73
|
};
|
package/dist/Checkbox.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './Checkbox.css';
|
|
3
|
-
import { jsxs as k, jsx as
|
|
4
|
-
import { a as
|
|
5
|
-
import { forwardRef as
|
|
3
|
+
import { jsxs as k, jsx as s } from "react/jsx-runtime";
|
|
4
|
+
import { a as x } from "./I7KWAPMF-CuA_ygsc.js";
|
|
5
|
+
import { forwardRef as w, useState as l } from "react";
|
|
6
6
|
import { useField as C } from "./Field.js";
|
|
7
7
|
import { VisuallyHidden as g } from "./VisuallyHidden.js";
|
|
8
8
|
import { c as V } from "./index-PAaZGbyz.js";
|
|
@@ -13,10 +13,10 @@ const y = "_root_uppw9_2", F = "_indeterminate_uppw9_67", I = {
|
|
|
13
13
|
"variant-warning": "_variant-warning_uppw9_55",
|
|
14
14
|
"variant-success": "_variant-success_uppw9_61",
|
|
15
15
|
indeterminate: F
|
|
16
|
-
}, N = V(I), j =
|
|
17
|
-
({ checked: m = !1, className: u, indeterminate:
|
|
18
|
-
const [e, _] = l(m), [
|
|
19
|
-
_(!e),
|
|
16
|
+
}, N = V(I), j = w(
|
|
17
|
+
({ checked: m = !1, className: u, indeterminate: a = !1, onChange: i, variant: p, ...o }, f) => {
|
|
18
|
+
const [e, _] = l(m), [h, t] = l(!1), { getInputProps: n, variant: v } = C(), r = v || p, { disabled: c } = n(o), b = () => {
|
|
19
|
+
_(!e), i && i(!e);
|
|
20
20
|
};
|
|
21
21
|
return /* @__PURE__ */ k(
|
|
22
22
|
"div",
|
|
@@ -26,25 +26,25 @@ const y = "_root_uppw9_2", F = "_indeterminate_uppw9_67", I = {
|
|
|
26
26
|
className: N(
|
|
27
27
|
"root",
|
|
28
28
|
r && `variant-${r}`,
|
|
29
|
-
|
|
29
|
+
a && "indeterminate",
|
|
30
30
|
"field-input",
|
|
31
31
|
u
|
|
32
32
|
),
|
|
33
|
-
"data-focus-visible":
|
|
33
|
+
"data-focus-visible": h || void 0,
|
|
34
34
|
onClick: c ? void 0 : b,
|
|
35
35
|
children: [
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
36
|
+
/* @__PURE__ */ s(g, { children: /* @__PURE__ */ s(
|
|
37
|
+
x,
|
|
38
38
|
{
|
|
39
|
-
...o
|
|
39
|
+
...n(o),
|
|
40
40
|
checked: e,
|
|
41
|
-
onBlur: () =>
|
|
42
|
-
onFocusVisible: () =>
|
|
41
|
+
onBlur: () => t(!1),
|
|
42
|
+
onFocusVisible: () => t(!0),
|
|
43
43
|
ref: f
|
|
44
44
|
}
|
|
45
45
|
) }),
|
|
46
|
-
e ? /* @__PURE__ */
|
|
47
|
-
!e &&
|
|
46
|
+
e ? /* @__PURE__ */ s(d, { name: "check", size: "sm" }) : null,
|
|
47
|
+
!e && a ? /* @__PURE__ */ s(d, { name: "minus", size: "sm" }) : null
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
50
|
);
|
|
@@ -52,5 +52,6 @@ const y = "_root_uppw9_2", F = "_indeterminate_uppw9_67", I = {
|
|
|
52
52
|
);
|
|
53
53
|
j.displayName = "Checkbox";
|
|
54
54
|
export {
|
|
55
|
-
j as Checkbox
|
|
55
|
+
j as Checkbox,
|
|
56
|
+
I as checkboxClasses
|
|
56
57
|
};
|
package/dist/CloseButton.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './CloseButton.css';
|
|
3
3
|
import { jsx as e } from "react/jsx-runtime";
|
|
4
|
-
import { forwardRef as
|
|
4
|
+
import { forwardRef as r } from "react";
|
|
5
5
|
import { Button as n } from "./Button.js";
|
|
6
|
-
import { Icon as
|
|
7
|
-
import { c as
|
|
8
|
-
const
|
|
9
|
-
root:
|
|
6
|
+
import { Icon as l } from "./Icon.js";
|
|
7
|
+
import { c as m } from "./index-PAaZGbyz.js";
|
|
8
|
+
const c = "_root_6fylp_2", i = "_fade_6fylp_1", f = {
|
|
9
|
+
root: c,
|
|
10
10
|
"animate-presence": "_animate-presence_6fylp_6",
|
|
11
|
-
fade:
|
|
12
|
-
}, p =
|
|
13
|
-
({ animatePresence: o = !1, className: t, ...
|
|
11
|
+
fade: i
|
|
12
|
+
}, p = m(f), _ = r(
|
|
13
|
+
({ animatePresence: o = !1, className: t, ...s }, a) => /* @__PURE__ */ e(
|
|
14
14
|
n,
|
|
15
15
|
{
|
|
16
16
|
"aria-label": "Close",
|
|
17
17
|
className: p("root", o && "animate-presence", t),
|
|
18
|
-
ref:
|
|
18
|
+
ref: a,
|
|
19
19
|
size: "sm",
|
|
20
20
|
variant: "tertiary",
|
|
21
|
-
...
|
|
22
|
-
children: /* @__PURE__ */ e(
|
|
21
|
+
...s,
|
|
22
|
+
children: /* @__PURE__ */ e(l, { name: "times", size: "lg" })
|
|
23
23
|
}
|
|
24
24
|
)
|
|
25
25
|
);
|
|
26
26
|
_.displayName = "CloseButton";
|
|
27
27
|
export {
|
|
28
|
-
_ as CloseButton
|
|
28
|
+
_ as CloseButton,
|
|
29
|
+
f as closeButtonClasses
|
|
29
30
|
};
|
package/dist/DatePicker.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Button as j } from "./Button.js";
|
|
|
7
7
|
import { Icon as F } from "./Icon.js";
|
|
8
8
|
import { Select as M } from "./Select.js";
|
|
9
9
|
import { c as v } from "./index-PAaZGbyz.js";
|
|
10
|
-
import { g as X, a as Z, s as B, b as Y, D as
|
|
10
|
+
import { g as X, a as Z, s as B, b as Y, D as P } from "./utils-BGmdljvh.js";
|
|
11
11
|
import { InputText as g } from "./InputText.js";
|
|
12
12
|
const C = v(B), L = ({
|
|
13
13
|
changeMonth: x,
|
|
@@ -15,17 +15,17 @@ const C = v(B), L = ({
|
|
|
15
15
|
date: f,
|
|
16
16
|
decreaseMonth: T,
|
|
17
17
|
decreaseYear: z,
|
|
18
|
-
endYear:
|
|
18
|
+
endYear: m,
|
|
19
19
|
increaseMonth: I,
|
|
20
20
|
increaseYear: y,
|
|
21
21
|
isMonthYearPicker: t,
|
|
22
22
|
locale: D,
|
|
23
|
-
startYear:
|
|
23
|
+
startYear: c
|
|
24
24
|
}) => {
|
|
25
|
-
const [p, R] = A(null), [
|
|
25
|
+
const [p, R] = A(null), [a, k] = A(null), i = $(() => X(D), [D]), r = $(() => Z(c, m), [c, m]), o = (t || p === i[0].label) && a === c, w = (t || p === i[i.length - 1].label) && a === m;
|
|
26
26
|
return S(() => {
|
|
27
|
-
const b = new Date(f), u = i[b.getMonth()].label,
|
|
28
|
-
R(u),
|
|
27
|
+
const b = new Date(f), u = i[b.getMonth()].label, E = b.getFullYear();
|
|
28
|
+
R(u), k(E);
|
|
29
29
|
}, [f, i]), /* @__PURE__ */ G("div", { className: C("custom-header"), children: [
|
|
30
30
|
/* @__PURE__ */ l(
|
|
31
31
|
j,
|
|
@@ -49,11 +49,11 @@ const C = v(B), L = ({
|
|
|
49
49
|
value: p
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
/* @__PURE__ */ l(M, { id: "year", name: "year", onChange: N, options: r, size: "md", value:
|
|
52
|
+
/* @__PURE__ */ l(M, { id: "year", name: "year", onChange: N, options: r, size: "md", value: a }),
|
|
53
53
|
/* @__PURE__ */ l(
|
|
54
54
|
j,
|
|
55
55
|
{
|
|
56
|
-
disabled:
|
|
56
|
+
disabled: w,
|
|
57
57
|
onClick: t ? y : I,
|
|
58
58
|
size: "sm",
|
|
59
59
|
title: `Next ${t ? "year" : "month"}`,
|
|
@@ -64,28 +64,28 @@ const C = v(B), L = ({
|
|
|
64
64
|
] });
|
|
65
65
|
};
|
|
66
66
|
L.displayName = "DateTimePicker.CustomHeader";
|
|
67
|
-
const
|
|
67
|
+
const K = v(B), h = J(
|
|
68
68
|
({
|
|
69
69
|
autoFocus: x,
|
|
70
70
|
className: N,
|
|
71
71
|
dateFormat: f = "dd/MM/yyyy",
|
|
72
72
|
disabled: T,
|
|
73
|
-
endYear: z =
|
|
74
|
-
icon:
|
|
73
|
+
endYear: z = P.getFullYear(),
|
|
74
|
+
icon: m,
|
|
75
75
|
iconPlacement: I = "left",
|
|
76
76
|
locale: y,
|
|
77
77
|
onChange: t,
|
|
78
78
|
placeholder: D,
|
|
79
|
-
preventVirtualKeyboard:
|
|
79
|
+
preventVirtualKeyboard: c = !1,
|
|
80
80
|
showMonthYearPicker: p,
|
|
81
81
|
size: R = "md",
|
|
82
|
-
startYear:
|
|
83
|
-
transparent:
|
|
82
|
+
startYear: a = 1900,
|
|
83
|
+
transparent: k,
|
|
84
84
|
useWeekdaysShort: i = !0,
|
|
85
|
-
value: r =
|
|
85
|
+
value: r = P,
|
|
86
86
|
...o
|
|
87
|
-
},
|
|
88
|
-
const b = o == null ? void 0 : o.timeIntervals, u = (e) => Y(e, b), [
|
|
87
|
+
}, w) => {
|
|
88
|
+
const b = o == null ? void 0 : o.timeIntervals, u = (e) => Y(e, b), [E, d] = A(u(r)), O = Q(), H = w || O;
|
|
89
89
|
S(() => {
|
|
90
90
|
t == null || t(u(r));
|
|
91
91
|
}, []), S(() => {
|
|
@@ -95,10 +95,10 @@ const P = v(B), h = J(
|
|
|
95
95
|
}, [r]);
|
|
96
96
|
const U = (e) => {
|
|
97
97
|
var s;
|
|
98
|
-
["Enter", "Escape"].includes(e.key) && ((s =
|
|
98
|
+
["Enter", "Escape"].includes(e.key) && ((s = H.current) == null || s.blur());
|
|
99
99
|
}, _ = (e) => {
|
|
100
100
|
var s;
|
|
101
|
-
e.preventDefault(), (s =
|
|
101
|
+
e.preventDefault(), (s = H.current) == null || s.blur(), d(null), t == null || t(null);
|
|
102
102
|
}, q = (e) => {
|
|
103
103
|
if (!e) {
|
|
104
104
|
d(null), t == null || t(null);
|
|
@@ -125,18 +125,18 @@ const P = v(B), h = J(
|
|
|
125
125
|
g,
|
|
126
126
|
{
|
|
127
127
|
autoFocus: x,
|
|
128
|
-
className:
|
|
128
|
+
className: K("date-picker", N),
|
|
129
129
|
"data-testid": o["data-testid"],
|
|
130
130
|
disabled: T,
|
|
131
|
-
icon:
|
|
131
|
+
icon: m,
|
|
132
132
|
iconPlacement: I,
|
|
133
|
-
inputMode:
|
|
133
|
+
inputMode: c ? "none" : "text",
|
|
134
134
|
isClearable: !0,
|
|
135
135
|
onReset: _,
|
|
136
136
|
placeholder: D,
|
|
137
|
-
ref:
|
|
137
|
+
ref: H,
|
|
138
138
|
size: R,
|
|
139
|
-
transparent:
|
|
139
|
+
transparent: k
|
|
140
140
|
}
|
|
141
141
|
),
|
|
142
142
|
dateFormat: f,
|
|
@@ -150,15 +150,15 @@ const P = v(B), h = J(
|
|
|
150
150
|
endYear: z,
|
|
151
151
|
isMonthYearPicker: p,
|
|
152
152
|
locale: y,
|
|
153
|
-
startYear:
|
|
153
|
+
startYear: a,
|
|
154
154
|
...e
|
|
155
155
|
}
|
|
156
156
|
),
|
|
157
|
-
selected:
|
|
157
|
+
selected: E,
|
|
158
158
|
showMonthYearPicker: p,
|
|
159
159
|
useWeekdaysShort: i,
|
|
160
160
|
...o,
|
|
161
|
-
wrapperClassName:
|
|
161
|
+
wrapperClassName: K(o.wrapperClassName, "date-picker-wrapper", "field-input")
|
|
162
162
|
}
|
|
163
163
|
)
|
|
164
164
|
);
|
|
@@ -166,5 +166,6 @@ const P = v(B), h = J(
|
|
|
166
166
|
);
|
|
167
167
|
h.displayName = "DatePicker";
|
|
168
168
|
export {
|
|
169
|
-
h as DatePicker
|
|
169
|
+
h as DatePicker,
|
|
170
|
+
B as datePickerClasses
|
|
170
171
|
};
|