welcome-ui 10.0.0-alpha.10 → 10.0.0-alpha.11
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/Checkbox.js +12 -11
- package/dist/DatePicker.js +69 -68
- package/dist/DateTimePicker.js +10 -10
- package/dist/Field.css +1 -1
- package/dist/Field.js +48 -49
- package/dist/FileDrop.js +7 -1
- package/dist/InputText.js +6 -6
- package/dist/Modal.js +65 -56
- package/dist/Search.js +1 -1
- package/dist/Select.js +1 -1
- package/dist/Slider.js +1 -1
- package/dist/Textarea.js +14 -13
- package/dist/TimePicker.js +46 -45
- package/dist/Toggle.js +11 -11
- package/dist/types/components/Modal/Assets/AssetContent.d.ts +1 -1
- package/dist/types/components/Modal/Assets/index.d.ts +1 -1
- package/dist/types/components/Modal/components/Content.d.ts +1 -1
- package/dist/types/components/Modal/index.d.ts +2 -2
- package/dist/types/components/Modal/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/Checkbox.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './Checkbox.css';
|
|
3
|
-
import { jsxs as b, jsx as
|
|
3
|
+
import { jsxs as b, jsx as i } from "react/jsx-runtime";
|
|
4
4
|
import { a as x } from "./KPUWHTQJ-Dv3cAqjP.js";
|
|
5
5
|
import { forwardRef as C, useState as l } from "react";
|
|
6
6
|
import { useField as g } from "./Field.js";
|
|
@@ -14,9 +14,9 @@ const y = "_root_luk8p_2", F = "_indeterminate_luk8p_67", I = {
|
|
|
14
14
|
"variant-success": "_variant-success_luk8p_61",
|
|
15
15
|
indeterminate: F
|
|
16
16
|
}, N = w(I), j = C(
|
|
17
|
-
({ checked: m = !1, className: u, indeterminate:
|
|
18
|
-
const [e, _] = l(m), [k,
|
|
19
|
-
_(!e),
|
|
17
|
+
({ checked: m = !1, className: u, indeterminate: s = !1, onChange: a, variant: f, ...t }, p) => {
|
|
18
|
+
const [e, _] = l(m), [k, n] = l(!1), { getInputProps: o, variant: v } = g(), r = v || f, { disabled: c } = o(t), h = () => {
|
|
19
|
+
_(!e), a && a(!e);
|
|
20
20
|
};
|
|
21
21
|
return /* @__PURE__ */ b(
|
|
22
22
|
"div",
|
|
@@ -26,24 +26,25 @@ const y = "_root_luk8p_2", F = "_indeterminate_luk8p_67", I = {
|
|
|
26
26
|
className: N(
|
|
27
27
|
"root",
|
|
28
28
|
r && `variant-${r}`,
|
|
29
|
-
|
|
29
|
+
s && "indeterminate",
|
|
30
|
+
"field-input",
|
|
30
31
|
u
|
|
31
32
|
),
|
|
32
33
|
"data-focus-visible": k || void 0,
|
|
33
34
|
onClick: c ? void 0 : h,
|
|
34
35
|
children: [
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ i(V, { children: /* @__PURE__ */ i(
|
|
36
37
|
x,
|
|
37
38
|
{
|
|
38
|
-
...
|
|
39
|
+
...o(t),
|
|
39
40
|
checked: e,
|
|
40
|
-
onBlur: () =>
|
|
41
|
-
onFocusVisible: () =>
|
|
41
|
+
onBlur: () => n(!1),
|
|
42
|
+
onFocusVisible: () => n(!0),
|
|
42
43
|
ref: p
|
|
43
44
|
}
|
|
44
45
|
) }),
|
|
45
|
-
e ? /* @__PURE__ */
|
|
46
|
-
!e &&
|
|
46
|
+
e ? /* @__PURE__ */ i(d, { name: "check", size: "sm" }) : null,
|
|
47
|
+
!e && s ? /* @__PURE__ */ i(d, { name: "minus", size: "sm" }) : null
|
|
47
48
|
]
|
|
48
49
|
}
|
|
49
50
|
);
|
package/dist/DatePicker.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './DatePicker.css';
|
|
3
|
-
import { jsxs as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { D as
|
|
6
|
-
import { Button as
|
|
7
|
-
import { Icon as
|
|
8
|
-
import { Select as
|
|
9
|
-
import { c as
|
|
10
|
-
import { g as
|
|
11
|
-
import { InputText as
|
|
12
|
-
const
|
|
3
|
+
import { jsxs as G, jsx as l } from "react/jsx-runtime";
|
|
4
|
+
import { useState as A, useMemo as $, useEffect as S, forwardRef as J, useRef as Q } from "react";
|
|
5
|
+
import { D as V, C as W } from "./CustomPopper-C1wIDHbM.js";
|
|
6
|
+
import { Button as j } from "./Button.js";
|
|
7
|
+
import { Icon as F } from "./Icon.js";
|
|
8
|
+
import { Select as M } from "./Select.js";
|
|
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 K } from "./utils-BD597oo6.js";
|
|
11
|
+
import { InputText as g } from "./InputText.js";
|
|
12
|
+
const C = v(B), L = ({
|
|
13
13
|
changeMonth: x,
|
|
14
14
|
changeYear: N,
|
|
15
15
|
date: f,
|
|
@@ -22,49 +22,49 @@ const g = P(v), B = ({
|
|
|
22
22
|
locale: D,
|
|
23
23
|
startYear: a
|
|
24
24
|
}) => {
|
|
25
|
-
const [
|
|
26
|
-
return
|
|
27
|
-
const b = new Date(f),
|
|
28
|
-
R(
|
|
29
|
-
}, [f,
|
|
25
|
+
const [p, R] = A(null), [m, w] = A(null), i = $(() => X(D), [D]), r = $(() => Z(a, c), [a, c]), o = (t || p === i[0].label) && m === a, E = (t || p === i[i.length - 1].label) && m === c;
|
|
26
|
+
return S(() => {
|
|
27
|
+
const b = new Date(f), u = i[b.getMonth()].label, H = b.getFullYear();
|
|
28
|
+
R(u), w(H);
|
|
29
|
+
}, [f, i]), /* @__PURE__ */ G("div", { className: C("custom-header"), children: [
|
|
30
30
|
/* @__PURE__ */ l(
|
|
31
|
-
|
|
31
|
+
j,
|
|
32
32
|
{
|
|
33
|
-
disabled:
|
|
33
|
+
disabled: o,
|
|
34
34
|
onClick: t ? z : T,
|
|
35
35
|
size: "sm",
|
|
36
36
|
title: `Previous ${t ? "year" : "month"}`,
|
|
37
37
|
variant: "tertiary",
|
|
38
|
-
children: /* @__PURE__ */ l(
|
|
38
|
+
children: /* @__PURE__ */ l(F, { name: "angle-left-b", size: "xs" })
|
|
39
39
|
}
|
|
40
40
|
),
|
|
41
41
|
!t && /* @__PURE__ */ l(
|
|
42
|
-
|
|
42
|
+
M,
|
|
43
43
|
{
|
|
44
44
|
id: "month",
|
|
45
45
|
name: "month",
|
|
46
46
|
onChange: x,
|
|
47
|
-
options:
|
|
47
|
+
options: i,
|
|
48
48
|
size: "md",
|
|
49
|
-
value:
|
|
49
|
+
value: p
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
/* @__PURE__ */ l(
|
|
52
|
+
/* @__PURE__ */ l(M, { id: "year", name: "year", onChange: N, options: r, size: "md", value: m }),
|
|
53
53
|
/* @__PURE__ */ l(
|
|
54
|
-
|
|
54
|
+
j,
|
|
55
55
|
{
|
|
56
|
-
disabled:
|
|
56
|
+
disabled: E,
|
|
57
57
|
onClick: t ? y : I,
|
|
58
58
|
size: "sm",
|
|
59
59
|
title: `Next ${t ? "year" : "month"}`,
|
|
60
60
|
variant: "tertiary",
|
|
61
|
-
children: /* @__PURE__ */ l(
|
|
61
|
+
children: /* @__PURE__ */ l(F, { name: "angle-right-b", size: "xs" })
|
|
62
62
|
}
|
|
63
63
|
)
|
|
64
64
|
] });
|
|
65
65
|
};
|
|
66
|
-
|
|
67
|
-
const
|
|
66
|
+
L.displayName = "DateTimePicker.CustomHeader";
|
|
67
|
+
const P = v(B), h = J(
|
|
68
68
|
({
|
|
69
69
|
autoFocus: x,
|
|
70
70
|
className: N,
|
|
@@ -77,93 +77,94 @@ const h = P(v), C = G(
|
|
|
77
77
|
onChange: t,
|
|
78
78
|
placeholder: D,
|
|
79
79
|
preventVirtualKeyboard: a = !1,
|
|
80
|
-
showMonthYearPicker:
|
|
80
|
+
showMonthYearPicker: p,
|
|
81
81
|
size: R = "md",
|
|
82
|
-
startYear:
|
|
83
|
-
transparent:
|
|
84
|
-
useWeekdaysShort:
|
|
82
|
+
startYear: m = 1900,
|
|
83
|
+
transparent: w,
|
|
84
|
+
useWeekdaysShort: i = !0,
|
|
85
85
|
value: r = K,
|
|
86
|
-
...
|
|
87
|
-
},
|
|
88
|
-
const b =
|
|
89
|
-
|
|
90
|
-
t == null || t(
|
|
91
|
-
}, []),
|
|
92
|
-
var
|
|
93
|
-
const e =
|
|
94
|
-
((
|
|
86
|
+
...o
|
|
87
|
+
}, E) => {
|
|
88
|
+
const b = o == null ? void 0 : o.timeIntervals, u = (e) => Y(e, b), [H, d] = A(u(r)), O = Q(), k = E || O;
|
|
89
|
+
S(() => {
|
|
90
|
+
t == null || t(u(r));
|
|
91
|
+
}, []), S(() => {
|
|
92
|
+
var n;
|
|
93
|
+
const e = u(r), s = typeof r == "object" ? r == null ? void 0 : r.toISOString() : r;
|
|
94
|
+
((n = new Date(Date.parse(s))) == null ? void 0 : n.getTime()) - (e == null ? void 0 : e.getTime()) !== 0 && (t == null || t(e)), d(e);
|
|
95
95
|
}, [r]);
|
|
96
|
-
const
|
|
96
|
+
const U = (e) => {
|
|
97
97
|
var s;
|
|
98
|
-
["Enter", "Escape"].includes(e.key) && ((s =
|
|
99
|
-
}, U = (e) => {
|
|
100
|
-
var s;
|
|
101
|
-
e.preventDefault(), (s = S.current) == null || s.blur(), n(null), t == null || t(null);
|
|
98
|
+
["Enter", "Escape"].includes(e.key) && ((s = k.current) == null || s.blur());
|
|
102
99
|
}, _ = (e) => {
|
|
100
|
+
var s;
|
|
101
|
+
e.preventDefault(), (s = k.current) == null || s.blur(), d(null), t == null || t(null);
|
|
102
|
+
}, q = (e) => {
|
|
103
103
|
if (!e) {
|
|
104
|
-
|
|
104
|
+
d(null), t == null || t(null);
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
107
|
const s = Array.isArray(e) ? e[0] : e;
|
|
108
108
|
if (!s) {
|
|
109
|
-
|
|
109
|
+
d(null), t == null || t(null);
|
|
110
110
|
return;
|
|
111
111
|
}
|
|
112
|
-
const
|
|
113
|
-
s.setHours(
|
|
112
|
+
const n = u(s);
|
|
113
|
+
s.setHours(n.getHours(), n.getMinutes()), d(s), t == null || t(new Date(s));
|
|
114
114
|
};
|
|
115
115
|
return (
|
|
116
116
|
// type issue in react-datepicker (https://github.com/Hacker0x01/react-datepicker/issues/5391)
|
|
117
117
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
118
118
|
// @ts-expect-error
|
|
119
119
|
/* @__PURE__ */ l(
|
|
120
|
-
|
|
120
|
+
V,
|
|
121
121
|
{
|
|
122
122
|
autoComplete: "off",
|
|
123
123
|
calendarClassName: "date-picker-popper",
|
|
124
124
|
customInput: /* @__PURE__ */ l(
|
|
125
|
-
|
|
125
|
+
g,
|
|
126
126
|
{
|
|
127
127
|
autoFocus: x,
|
|
128
|
-
className:
|
|
129
|
-
"data-testid":
|
|
128
|
+
className: P("date-picker", N),
|
|
129
|
+
"data-testid": o["data-testid"],
|
|
130
130
|
disabled: T,
|
|
131
131
|
icon: c,
|
|
132
132
|
iconPlacement: I,
|
|
133
133
|
inputMode: a ? "none" : "text",
|
|
134
134
|
isClearable: !0,
|
|
135
|
-
onReset:
|
|
135
|
+
onReset: _,
|
|
136
136
|
placeholder: D,
|
|
137
|
-
ref:
|
|
137
|
+
ref: k,
|
|
138
138
|
size: R,
|
|
139
|
-
transparent:
|
|
139
|
+
transparent: w
|
|
140
140
|
}
|
|
141
141
|
),
|
|
142
142
|
dateFormat: f,
|
|
143
143
|
locale: y,
|
|
144
|
-
onChange:
|
|
145
|
-
onKeyDown:
|
|
146
|
-
popperContainer:
|
|
144
|
+
onChange: q,
|
|
145
|
+
onKeyDown: U,
|
|
146
|
+
popperContainer: W,
|
|
147
147
|
renderCustomHeader: (e) => /* @__PURE__ */ l(
|
|
148
|
-
|
|
148
|
+
L,
|
|
149
149
|
{
|
|
150
150
|
endYear: z,
|
|
151
|
-
isMonthYearPicker:
|
|
151
|
+
isMonthYearPicker: p,
|
|
152
152
|
locale: y,
|
|
153
|
-
startYear:
|
|
153
|
+
startYear: m,
|
|
154
154
|
...e
|
|
155
155
|
}
|
|
156
156
|
),
|
|
157
|
-
selected:
|
|
158
|
-
showMonthYearPicker:
|
|
159
|
-
useWeekdaysShort:
|
|
160
|
-
...
|
|
157
|
+
selected: H,
|
|
158
|
+
showMonthYearPicker: p,
|
|
159
|
+
useWeekdaysShort: i,
|
|
160
|
+
...o,
|
|
161
|
+
wrapperClassName: P(o.wrapperClassName, "date-picker-wrapper", "field-input")
|
|
161
162
|
}
|
|
162
163
|
)
|
|
163
164
|
);
|
|
164
165
|
}
|
|
165
166
|
);
|
|
166
|
-
|
|
167
|
+
h.displayName = "DatePicker";
|
|
167
168
|
export {
|
|
168
|
-
|
|
169
|
+
h as DatePicker
|
|
169
170
|
};
|
package/dist/DateTimePicker.js
CHANGED
|
@@ -10,11 +10,11 @@ const L = F(j), M = E(
|
|
|
10
10
|
locale: p,
|
|
11
11
|
onChange: s,
|
|
12
12
|
size: D = "md",
|
|
13
|
-
transparent:
|
|
14
|
-
value:
|
|
13
|
+
transparent: n,
|
|
14
|
+
value: i = b,
|
|
15
15
|
...l
|
|
16
|
-
},
|
|
17
|
-
const u = l == null ? void 0 : l.timeIntervals,
|
|
16
|
+
}, k) => {
|
|
17
|
+
const u = l == null ? void 0 : l.timeIntervals, r = (t) => I(t, u), [T, c] = P(r(i)), y = x(), R = k || y, m = (t) => {
|
|
18
18
|
if (!t) {
|
|
19
19
|
c(null), s == null || s(null);
|
|
20
20
|
return;
|
|
@@ -24,16 +24,16 @@ const L = F(j), M = E(
|
|
|
24
24
|
c(null), s == null || s(null);
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
-
const f =
|
|
27
|
+
const f = r(e);
|
|
28
28
|
e.setHours(f.getHours(), f.getMinutes()), c(e), s == null || s(new Date(e));
|
|
29
29
|
};
|
|
30
30
|
return a(() => {
|
|
31
|
-
m(i
|
|
31
|
+
m(r(i));
|
|
32
32
|
}, []), a(() => {
|
|
33
33
|
var e;
|
|
34
|
-
const t = i
|
|
35
|
-
((e = new Date(
|
|
36
|
-
}, [
|
|
34
|
+
const t = r(i);
|
|
35
|
+
((e = new Date(i)) == null ? void 0 : e.getTime()) - (t == null ? void 0 : t.getTime()) !== 0 && m(t), c(t);
|
|
36
|
+
}, [i]), /* @__PURE__ */ A("div", { className: L("date-time-picker", "field-input"), children: N.map(o, (t, e) => H(t, {
|
|
37
37
|
disabled: d,
|
|
38
38
|
inputRef: e === 0 ? R : null,
|
|
39
39
|
// give ref only to the DatePicker
|
|
@@ -42,7 +42,7 @@ const L = F(j), M = E(
|
|
|
42
42
|
onChange: m,
|
|
43
43
|
size: D,
|
|
44
44
|
timeIntervals: u,
|
|
45
|
-
transparent:
|
|
45
|
+
transparent: n,
|
|
46
46
|
value: T
|
|
47
47
|
})) });
|
|
48
48
|
}
|
package/dist/Field.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.
|
|
1
|
+
@layer components{._root_wx4cj_2{display:grid;grid-template-areas:"label" "input";width:100%}._root_wx4cj_2:has(._label_wx4cj_7):has(._hint_wx4cj_7){grid-template-areas:"label" "input" "hint"}._root_wx4cj_2:not(:has(._label_wx4cj_7)):has(._hint_wx4cj_7){grid-template-areas:"input" "hint"}._root_wx4cj_2:not(._inline_wx4cj_13) ._hint_wx4cj_7{margin-top:var(--components-dimensions-field-gap-assistive)}._root_wx4cj_2:not(._inline_wx4cj_13) ._label_wx4cj_7{margin-bottom:var(--components-dimensions-field-gap-label)}._root_wx4cj_2 .field-input{align-self:center;grid-area:input}._root_wx4cj_2 .field-input.date-picker-wrapper{justify-self:start}._inline_wx4cj_13{grid-template-areas:"input label";grid-template-columns:min-content 1fr;height:fit-content;grid-row-gap:var(--components-dimensions-field-gap-assistive);grid-column-gap:var(--components-dimensions-field-gap-label)}._inline_wx4cj_13:has(._label_wx4cj_7):has(._hint_wx4cj_7){grid-template-areas:"input label" ". hint"}._inline_wx4cj_13:not(:has(._label_wx4cj_7)):has(._hint_wx4cj_7){grid-template-areas:"input ." ". hint"}._label_wx4cj_7{grid-area:label}._hint_wx4cj_7{grid-area:hint}._visuallyHidden_wx4cj_45{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important;white-space:nowrap!important}}
|
package/dist/Field.js
CHANGED
|
@@ -1,90 +1,89 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './Field.css';
|
|
3
|
-
import { jsx as
|
|
3
|
+
import { jsx as m, jsxs as C } from "react/jsx-runtime";
|
|
4
4
|
import { createContext as L, useMemo as q, useId as A, useContext as M } from "react";
|
|
5
5
|
import { Hint as R } from "./Hint.js";
|
|
6
6
|
import { Label as S } from "./Label.js";
|
|
7
7
|
import { c as T } from "./index-PAaZGbyz.js";
|
|
8
8
|
import { f as W } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
9
|
-
const k = "
|
|
9
|
+
const k = "_root_wx4cj_2", z = "_label_wx4cj_7", E = "_hint_wx4cj_7", G = "_inline_wx4cj_13", J = "_visuallyHidden_wx4cj_45", K = {
|
|
10
10
|
root: k,
|
|
11
11
|
label: z,
|
|
12
12
|
hint: E,
|
|
13
13
|
inline: G,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
getInputProps: (i) => i,
|
|
14
|
+
visuallyHidden: J
|
|
15
|
+
}, b = T(K), x = L({
|
|
16
|
+
getInputProps: (e) => e,
|
|
18
17
|
hintID: "",
|
|
19
18
|
labelID: "",
|
|
20
19
|
variant: void 0
|
|
21
20
|
});
|
|
22
|
-
function
|
|
23
|
-
const
|
|
24
|
-
return
|
|
21
|
+
function f(e) {
|
|
22
|
+
const s = A();
|
|
23
|
+
return e || s;
|
|
25
24
|
}
|
|
26
|
-
function
|
|
27
|
-
return M(
|
|
25
|
+
function $() {
|
|
26
|
+
return M(x);
|
|
28
27
|
}
|
|
29
|
-
const
|
|
28
|
+
const O = W((e, s) => {
|
|
30
29
|
const {
|
|
31
30
|
children: y,
|
|
32
31
|
className: I,
|
|
33
|
-
disabled:
|
|
34
|
-
error:
|
|
35
|
-
hideLabel:
|
|
36
|
-
hint:
|
|
32
|
+
disabled: o,
|
|
33
|
+
error: h,
|
|
34
|
+
hideLabel: j,
|
|
35
|
+
hint: p,
|
|
37
36
|
hintProps: n,
|
|
38
|
-
id:
|
|
39
|
-
inline:
|
|
40
|
-
label:
|
|
37
|
+
id: D,
|
|
38
|
+
inline: g,
|
|
39
|
+
label: w,
|
|
41
40
|
labelProps: t,
|
|
42
|
-
required:
|
|
43
|
-
success:
|
|
41
|
+
required: d,
|
|
42
|
+
success: _,
|
|
44
43
|
warning: v,
|
|
45
|
-
...
|
|
46
|
-
} =
|
|
44
|
+
...N
|
|
45
|
+
} = e, i = h ? "danger" : _ ? "success" : v ? "warning" : void 0, l = h ?? v ?? _ ?? p, a = f(t == null ? void 0 : t.id), r = f(n == null ? void 0 : n.id), c = f(D), F = q(
|
|
47
46
|
() => ({
|
|
48
|
-
getInputProps(
|
|
49
|
-
const
|
|
47
|
+
getInputProps(u) {
|
|
48
|
+
const H = [u["aria-describedby"], l && r].filter(Boolean).join(" ") || void 0, B = [u["aria-labelledby"], a].filter(Boolean).join(" ");
|
|
50
49
|
return {
|
|
51
|
-
...
|
|
52
|
-
"aria-describedby":
|
|
53
|
-
"aria-invalid":
|
|
50
|
+
...u,
|
|
51
|
+
"aria-describedby": H,
|
|
52
|
+
"aria-invalid": i === "danger" ? !0 : void 0,
|
|
54
53
|
"aria-labelledby": B,
|
|
55
|
-
disabled:
|
|
56
|
-
id:
|
|
57
|
-
required:
|
|
54
|
+
disabled: o,
|
|
55
|
+
id: c,
|
|
56
|
+
required: d
|
|
58
57
|
};
|
|
59
58
|
},
|
|
60
|
-
hintID:
|
|
59
|
+
hintID: r,
|
|
61
60
|
labelID: a,
|
|
62
|
-
variant:
|
|
61
|
+
variant: i
|
|
63
62
|
}),
|
|
64
|
-
[
|
|
63
|
+
[r, a, i, l, o, c, d]
|
|
65
64
|
);
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ m(x.Provider, { value: F, children: /* @__PURE__ */ C("div", { ref: s, ...N, className: b("root", g && "inline", I), children: [
|
|
66
|
+
/* @__PURE__ */ m(
|
|
68
67
|
S,
|
|
69
68
|
{
|
|
70
|
-
className:
|
|
71
|
-
disabled:
|
|
72
|
-
htmlFor:
|
|
69
|
+
className: b("label", j && "visuallyHidden"),
|
|
70
|
+
disabled: o,
|
|
71
|
+
htmlFor: c,
|
|
73
72
|
id: a,
|
|
74
|
-
required:
|
|
75
|
-
variant:
|
|
73
|
+
required: d,
|
|
74
|
+
variant: i,
|
|
76
75
|
...t,
|
|
77
|
-
children:
|
|
76
|
+
children: w
|
|
78
77
|
}
|
|
79
78
|
),
|
|
80
|
-
|
|
81
|
-
l ? /* @__PURE__ */
|
|
79
|
+
y,
|
|
80
|
+
l ? /* @__PURE__ */ m(R, { className: b("hint"), id: r, variant: i, ...n, children: l }) : null
|
|
82
81
|
] }) });
|
|
83
82
|
});
|
|
84
|
-
|
|
83
|
+
O.displayName = "Field";
|
|
85
84
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
O as Field,
|
|
86
|
+
x as FieldContext,
|
|
87
|
+
f as useDefaultID,
|
|
88
|
+
$ as useField
|
|
90
89
|
};
|
package/dist/FileDrop.js
CHANGED
|
@@ -2273,7 +2273,13 @@ const vi = /\.(jpeg|jpg|gif|png|webp)$/, Nt = (a) => a ? typeof a == "string" ?
|
|
|
2273
2273
|
return /* @__PURE__ */ L(
|
|
2274
2274
|
"div",
|
|
2275
2275
|
{
|
|
2276
|
-
className: ha(
|
|
2276
|
+
className: ha(
|
|
2277
|
+
"root",
|
|
2278
|
+
n && "disabled",
|
|
2279
|
+
U && "drag-reject",
|
|
2280
|
+
"field-input",
|
|
2281
|
+
t
|
|
2282
|
+
),
|
|
2277
2283
|
...f({
|
|
2278
2284
|
disabled: n,
|
|
2279
2285
|
handleRemoveFile: h,
|
package/dist/InputText.js
CHANGED
|
@@ -27,11 +27,11 @@ const D = "_root_13hsf_8", F = "_transparent_13hsf_68", L = "_clearable_13hsf_88
|
|
|
27
27
|
"icon-placement-right-md": "_icon-placement-right-md_13hsf_124"
|
|
28
28
|
}, a = B(C), O = { lg: "md", md: "md", sm: "sm" }, V = T(
|
|
29
29
|
({
|
|
30
|
-
children:
|
|
30
|
+
children: p,
|
|
31
31
|
className: v,
|
|
32
32
|
icon: t,
|
|
33
33
|
iconPlacement: s = "left",
|
|
34
|
-
isClearable:
|
|
34
|
+
isClearable: c,
|
|
35
35
|
name: _,
|
|
36
36
|
onChange: r,
|
|
37
37
|
size: m = "lg",
|
|
@@ -41,13 +41,13 @@ const D = "_root_13hsf_8", F = "_transparent_13hsf_68", L = "_clearable_13hsf_88
|
|
|
41
41
|
variant: z,
|
|
42
42
|
...I
|
|
43
43
|
}, b) => {
|
|
44
|
-
const { getInputProps: N, variant: $ } = y(), d = $ || z, i = t && s, h = i && s === "right", R = i && s === "left", n = O[m], l = N(I), o = !!
|
|
44
|
+
const { getInputProps: N, variant: $ } = y(), d = $ || z, i = t && s, h = i && s === "right", R = i && s === "left", n = O[m], l = N(I), o = !!p, S = c || h || o, E = () => {
|
|
45
45
|
r && r({
|
|
46
46
|
preventDefault: () => null,
|
|
47
47
|
target: { name: _, value: "" }
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
|
-
return /* @__PURE__ */ u("div", { className: a("input-text-wrapper"), children: [
|
|
50
|
+
return /* @__PURE__ */ u("div", { className: a("input-text-wrapper", "field-input"), children: [
|
|
51
51
|
/* @__PURE__ */ e(
|
|
52
52
|
"input",
|
|
53
53
|
{
|
|
@@ -87,9 +87,9 @@ const D = "_root_13hsf_8", F = "_transparent_13hsf_68", L = "_clearable_13hsf_88
|
|
|
87
87
|
l.disabled && "disabled"
|
|
88
88
|
),
|
|
89
89
|
children: [
|
|
90
|
-
|
|
90
|
+
c && f ? /* @__PURE__ */ e(j, { onClick: E, size: "sm" }) : null,
|
|
91
91
|
h && !o ? /* @__PURE__ */ e(g, { ...t.props, name: t.props.name, size: n }) : null,
|
|
92
|
-
o ?
|
|
92
|
+
o ? p : null
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
95
|
) : null
|
package/dist/Modal.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './Modal.css';
|
|
3
|
-
import { jsx as
|
|
3
|
+
import { jsx as o, jsxs as _ } from "react/jsx-runtime";
|
|
4
4
|
import { b as R } from "./RTNCFSKZ-BywELldk.js";
|
|
5
5
|
import { D as V, u as q } from "./NI3IVY7K-Dy240mkD.js";
|
|
6
|
-
import { forwardRef as
|
|
6
|
+
import { forwardRef as i, isValidElement as G, cloneElement as J, useState as K, useEffect as L } from "react";
|
|
7
7
|
import { c as r } from "./index-PAaZGbyz.js";
|
|
8
8
|
import { f as j } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
9
9
|
import { D as y } from "./DSAASPLT-Fx1kuAsk.js";
|
|
@@ -12,7 +12,7 @@ import { Button as Q } from "./Button.js";
|
|
|
12
12
|
import { Text as m } from "./Text.js";
|
|
13
13
|
import { CloseButton as U } from "./CloseButton.js";
|
|
14
14
|
import { D as X } from "./ZTXFEM5L-WGHY_jqg.js";
|
|
15
|
-
const Y = "_root_1ruus_3", Z = "_hideOnInteractOutside_1ruus_19", ee = "_dialog_1ruus_117",
|
|
15
|
+
const Y = "_root_1ruus_3", Z = "_hideOnInteractOutside_1ruus_19", ee = "_dialog_1ruus_117", c = {
|
|
16
16
|
root: Y,
|
|
17
17
|
"asset-backdrop": "_asset-backdrop_1ruus_8",
|
|
18
18
|
hideOnInteractOutside: Z,
|
|
@@ -23,49 +23,50 @@ const Y = "_root_1ruus_3", Z = "_hideOnInteractOutside_1ruus_19", ee = "_dialog_
|
|
|
23
23
|
"asset-content": "_asset-content_1ruus_96",
|
|
24
24
|
dialog: ee,
|
|
25
25
|
"close-button": "_close-button_1ruus_159"
|
|
26
|
-
}, te = r(
|
|
26
|
+
}, te = r(c), x = ({ children: e, ...t }) => /* @__PURE__ */ o(Q, { className: te("close-button"), variant: "primary-neutral", ...t, children: e });
|
|
27
27
|
x.displayName = "AssetModal.Close";
|
|
28
|
-
const se = r(
|
|
29
|
-
({ hideOnInteractOutside: e, ...t },
|
|
28
|
+
const se = r(c), M = i(
|
|
29
|
+
({ hideOnInteractOutside: e, ...t }, s) => /* @__PURE__ */ o(
|
|
30
30
|
"div",
|
|
31
31
|
{
|
|
32
32
|
className: se("asset-backdrop", e && "hideOnInteractOutside"),
|
|
33
33
|
...t,
|
|
34
|
-
ref:
|
|
35
|
-
children: /* @__PURE__ */
|
|
34
|
+
ref: s,
|
|
35
|
+
children: /* @__PURE__ */ o(
|
|
36
36
|
y,
|
|
37
37
|
{
|
|
38
|
-
render: /* @__PURE__ */
|
|
38
|
+
render: /* @__PURE__ */ o(x, { children: /* @__PURE__ */ o(P, { name: "times" }) })
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
41
|
}
|
|
42
42
|
)
|
|
43
43
|
);
|
|
44
44
|
M.displayName = "AssetModal.Backdrop";
|
|
45
|
-
const oe = r(
|
|
45
|
+
const oe = r(c), $ = ({
|
|
46
46
|
children: e,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
className: t,
|
|
48
|
+
...s
|
|
49
|
+
}) => /* @__PURE__ */ o("div", { className: oe("root", "asset-content", t), ...s, children: e });
|
|
49
50
|
$.displayName = "AssetModal.Content";
|
|
50
|
-
const ae = r(
|
|
51
|
+
const ae = r(c), f = ({ children: e, ...t }) => /* @__PURE__ */ o(m, { as: "p", className: ae("asset-title"), lines: 2, variant: "heading-md-strong", ...t, children: e });
|
|
51
52
|
f.displayName = "AssetModal.Title";
|
|
52
|
-
const g = r(
|
|
53
|
-
({ children: e, customContent: t, subtitle:
|
|
53
|
+
const g = r(c), v = i(
|
|
54
|
+
({ children: e, customContent: t, subtitle: s, title: a, ...n }, l) => /* @__PURE__ */ _("div", { className: g("root", "asset-wrapper"), ref: l, ...n, children: [
|
|
54
55
|
e,
|
|
55
56
|
/* @__PURE__ */ _("div", { className: g("root", "asset-title-wrapper"), children: [
|
|
56
57
|
t,
|
|
57
|
-
!t &&
|
|
58
|
-
!t && a ? /* @__PURE__ */
|
|
58
|
+
!t && s ? /* @__PURE__ */ o(m, { variant: "label-md", children: s }) : null,
|
|
59
|
+
!t && a ? /* @__PURE__ */ o(f, { children: a }) : null
|
|
59
60
|
] })
|
|
60
61
|
] })
|
|
61
62
|
);
|
|
62
63
|
v.displayName = "AssetModal.AssetWithTitle";
|
|
63
|
-
const re = r(
|
|
64
|
+
const re = r(c), w = ({
|
|
64
65
|
children: e,
|
|
65
66
|
...t
|
|
66
|
-
}) => /* @__PURE__ */
|
|
67
|
+
}) => /* @__PURE__ */ o("div", { className: re("root", "dialog"), ...t, children: e });
|
|
67
68
|
w.displayName = "AssetModal";
|
|
68
|
-
const ne = r(
|
|
69
|
+
const ne = r(c), O = ({ children: e }) => /* @__PURE__ */ o("div", { className: ne("root", "iframe-wrapper"), children: e });
|
|
69
70
|
O.displayName = "AssetModal.Iframe";
|
|
70
71
|
const le = Object.assign(w, {
|
|
71
72
|
AssetWithTitle: v,
|
|
@@ -73,7 +74,7 @@ const le = Object.assign(w, {
|
|
|
73
74
|
Content: $,
|
|
74
75
|
Iframe: O,
|
|
75
76
|
Title: f
|
|
76
|
-
}), ie = "_root_a4zjh_4", ce = "_body_a4zjh_48", de = "_footer_a4zjh_48", _e = "_header_a4zjh_48", me = "_scrollable_a4zjh_60", ue = "_content_a4zjh_66", pe = "_close_a4zjh_66", he = "_backdrop_a4zjh_85", fe = "_hideOnInteractOutside_a4zjh_96", Ne = "_icon_a4zjh_127",
|
|
77
|
+
}), ie = "_root_a4zjh_4", ce = "_body_a4zjh_48", de = "_footer_a4zjh_48", _e = "_header_a4zjh_48", me = "_scrollable_a4zjh_60", ue = "_content_a4zjh_66", pe = "_close_a4zjh_66", he = "_backdrop_a4zjh_85", fe = "_hideOnInteractOutside_a4zjh_96", Ne = "_icon_a4zjh_127", d = {
|
|
77
78
|
root: ie,
|
|
78
79
|
body: ce,
|
|
79
80
|
footer: de,
|
|
@@ -95,57 +96,65 @@ const le = Object.assign(w, {
|
|
|
95
96
|
"footer-information": "_footer-information_a4zjh_163",
|
|
96
97
|
"footer-information-title": "_footer-information-title_a4zjh_170",
|
|
97
98
|
"footer-information-subtitle": "_footer-information-subtitle_a4zjh_174"
|
|
98
|
-
}, be = r(
|
|
99
|
-
({ backdrop: e, hideOnInteractOutside: t, ...
|
|
99
|
+
}, be = r(d), A = i(
|
|
100
|
+
({ backdrop: e, hideOnInteractOutside: t, ...s }, a) => e === !0 ? /* @__PURE__ */ o(
|
|
100
101
|
"div",
|
|
101
102
|
{
|
|
102
103
|
className: be("backdrop", t && "hideOnInteractOutside"),
|
|
103
104
|
ref: a,
|
|
104
|
-
...
|
|
105
|
+
...s
|
|
105
106
|
}
|
|
106
|
-
) : G(e) ? J(e, { ref: a, ...
|
|
107
|
+
) : G(e) ? J(e, { ref: a, ...s }) : null
|
|
107
108
|
);
|
|
108
109
|
A.displayName = "Modal.Backdrop";
|
|
109
|
-
const ze = r(
|
|
110
|
+
const ze = r(d), k = i(({ className: e, ...t }, s) => /* @__PURE__ */ o("section", { className: ze("body", e), ref: s, ...t }));
|
|
110
111
|
k.displayName = "Modal.Body";
|
|
111
|
-
const ge = r(
|
|
112
|
+
const ge = r(d), N = (e) => /* @__PURE__ */ o(y, { render: /* @__PURE__ */ o(U, { className: ge("close"), ...e }) });
|
|
112
113
|
N.displayName = "Modal.Close";
|
|
113
|
-
const je = r(
|
|
114
|
-
({ children: e,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
const je = r(d), B = i(
|
|
115
|
+
({ children: e, className: t, withClosingButton: s = !0, ...a }, n) => /* @__PURE__ */ _(
|
|
116
|
+
"div",
|
|
117
|
+
{
|
|
118
|
+
className: (je("content", s && "with-close-button"), t),
|
|
119
|
+
ref: n,
|
|
120
|
+
...a,
|
|
121
|
+
children: [
|
|
122
|
+
/* @__PURE__ */ o(N, {}),
|
|
123
|
+
e
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
)
|
|
118
127
|
);
|
|
119
128
|
B.displayName = "Modal.Content";
|
|
120
|
-
const u = r(
|
|
121
|
-
({ children: e,
|
|
122
|
-
e ? /* @__PURE__ */
|
|
123
|
-
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */
|
|
129
|
+
const u = r(d), C = i(
|
|
130
|
+
({ children: e, className: t, information: s, ...a }, n) => /* @__PURE__ */ _("footer", { className: u("footer", t), ref: n, ...a, children: [
|
|
131
|
+
e ? /* @__PURE__ */ o("div", { className: u("footer-children-wrapper"), children: e }) : null,
|
|
132
|
+
s ? /* @__PURE__ */ _("div", { className: u("footer-information"), children: [
|
|
133
|
+
/* @__PURE__ */ o(m, { className: u("footer-information-title"), variant: "label-md", children: s.title }),
|
|
134
|
+
/* @__PURE__ */ o(m, { className: u("footer-information-subtitle"), variant: "body-md", children: s.subtitle })
|
|
126
135
|
] }) : null
|
|
127
136
|
] })
|
|
128
137
|
);
|
|
129
138
|
C.displayName = "Modal.Footer";
|
|
130
|
-
const h = r(
|
|
131
|
-
({
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
|
|
139
|
+
const h = r(d), D = i(
|
|
140
|
+
({ className: e, icon: t, subtitle: s, title: a, ...n }, l) => /* @__PURE__ */ _("header", { className: h("header", t && "icon", e), ref: l, ...n, children: [
|
|
141
|
+
/* @__PURE__ */ o(N, {}),
|
|
142
|
+
t,
|
|
143
|
+
/* @__PURE__ */ o(m, { as: "h4", className: h("header-title"), variant: "heading-md-strong", children: a }),
|
|
144
|
+
s ? /* @__PURE__ */ o(m, { className: h("header-subtitle"), children: s }) : null
|
|
136
145
|
] })
|
|
137
146
|
);
|
|
138
147
|
D.displayName = "Modal.Header";
|
|
139
148
|
const I = j(
|
|
140
|
-
({ as: e, store: t, ...
|
|
149
|
+
({ as: e, store: t, ...s }, a) => /* @__PURE__ */ o(X, { ref: a, render: e ? /* @__PURE__ */ o(e, {}) : void 0, store: t, ...s })
|
|
141
150
|
);
|
|
142
151
|
I.displayName = "Modal.Trigger";
|
|
143
|
-
const ye = r(
|
|
152
|
+
const ye = r(d);
|
|
144
153
|
function Te(e) {
|
|
145
|
-
const { onClose: t, setOpen:
|
|
154
|
+
const { onClose: t, setOpen: s, ...a } = e || {};
|
|
146
155
|
return q({
|
|
147
|
-
setOpen: (
|
|
148
|
-
!
|
|
156
|
+
setOpen: (l) => {
|
|
157
|
+
!l && t && t(), s == null || s(l);
|
|
149
158
|
},
|
|
150
159
|
...a
|
|
151
160
|
});
|
|
@@ -155,10 +164,10 @@ const T = j(
|
|
|
155
164
|
ariaLabel: e,
|
|
156
165
|
/** for render property */
|
|
157
166
|
as: t,
|
|
158
|
-
backdrop:
|
|
167
|
+
backdrop: s = !0,
|
|
159
168
|
children: a,
|
|
160
|
-
className:
|
|
161
|
-
hideOnInteractOutside:
|
|
169
|
+
className: n,
|
|
170
|
+
hideOnInteractOutside: l = !0,
|
|
162
171
|
size: S = "lg",
|
|
163
172
|
store: b,
|
|
164
173
|
...E
|
|
@@ -166,13 +175,13 @@ const T = j(
|
|
|
166
175
|
const [W, F] = K(!1), { contentElement: p, open: z } = R(b);
|
|
167
176
|
return L(() => {
|
|
168
177
|
z && p && F(p.scrollHeight > p.offsetHeight);
|
|
169
|
-
}, [p, z]), /* @__PURE__ */
|
|
178
|
+
}, [p, z]), /* @__PURE__ */ o(
|
|
170
179
|
V,
|
|
171
180
|
{
|
|
172
|
-
backdrop: /* @__PURE__ */
|
|
173
|
-
hideOnInteractOutside:
|
|
181
|
+
backdrop: /* @__PURE__ */ o(A, { backdrop: s, hideOnInteractOutside: l }),
|
|
182
|
+
hideOnInteractOutside: l,
|
|
174
183
|
ref: H,
|
|
175
|
-
render: t ? /* @__PURE__ */
|
|
184
|
+
render: t ? /* @__PURE__ */ o(t, {}) : /* @__PURE__ */ o("div", { className: ye("root", `size-${S}`, W && "scrollable", n) }),
|
|
176
185
|
store: b,
|
|
177
186
|
...E,
|
|
178
187
|
"aria-label": e,
|
package/dist/Search.js
CHANGED
|
@@ -126,7 +126,7 @@ const qe = "_wrapper_qaadj_2", we = "_indicators_qaadj_5", Ne = "_root_qaadj_33"
|
|
|
126
126
|
variant: b ? "focused" : f,
|
|
127
127
|
...j
|
|
128
128
|
});
|
|
129
|
-
return /* @__PURE__ */ w("div", { ...se, className: t("wrapper"), children: [
|
|
129
|
+
return /* @__PURE__ */ w("div", { ...se, className: t("wrapper", "field-input"), children: [
|
|
130
130
|
/* @__PURE__ */ w("div", { className: t("input-wrapper"), children: [
|
|
131
131
|
/* @__PURE__ */ a(
|
|
132
132
|
"input",
|
package/dist/Select.js
CHANGED
|
@@ -967,7 +967,7 @@ const ee = "", xt = /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|
|
|
|
967
967
|
variant: N ? "focused" : ae,
|
|
968
968
|
...oe
|
|
969
969
|
});
|
|
970
|
-
return /* @__PURE__ */ L("div", { ...We, className: w("wrapper", i && "disabled"), children: [
|
|
970
|
+
return /* @__PURE__ */ L("div", { ...We, className: w("wrapper", i && "disabled", "field-input"), children: [
|
|
971
971
|
m ? /* @__PURE__ */ v(
|
|
972
972
|
"input",
|
|
973
973
|
{
|
package/dist/Slider.js
CHANGED
|
@@ -337,7 +337,7 @@ const _e = 20, q = (d, _) => Math.round(d / _) * _, F = (d, _, p, y) => (d = q(d
|
|
|
337
337
|
!isNaN(f) && f !== v && f && (A(f), z(f));
|
|
338
338
|
}, [f]);
|
|
339
339
|
const j = ee();
|
|
340
|
-
return /* @__PURE__ */ D("div", { className: N("slider-root", _), ref: G, children: [
|
|
340
|
+
return /* @__PURE__ */ D("div", { className: N("slider-root", "field-input", _), ref: G, children: [
|
|
341
341
|
h ? /* @__PURE__ */ l(re, { as: "label", htmlFor: j, variant: "body-md", children: h }) : null,
|
|
342
342
|
/* @__PURE__ */ D("div", { className: N("input-wrapper"), children: [
|
|
343
343
|
(m === "inline" || m === "left-field") && (m === "left-field" ? /* @__PURE__ */ l(
|
package/dist/Textarea.js
CHANGED
|
@@ -2,34 +2,35 @@
|
|
|
2
2
|
import './Textarea.css';
|
|
3
3
|
import { jsx as _ } from "react/jsx-runtime";
|
|
4
4
|
import { forwardRef as f } from "react";
|
|
5
|
-
import { useField as
|
|
6
|
-
import { c as
|
|
7
|
-
const
|
|
8
|
-
root:
|
|
5
|
+
import { useField as p } from "./Field.js";
|
|
6
|
+
import { c as v } from "./index-PAaZGbyz.js";
|
|
7
|
+
const d = "_root_161f5_2", m = "_adaptative_161f5_45", l = {
|
|
8
|
+
root: d,
|
|
9
9
|
"variant-danger": "_variant-danger_161f5_36",
|
|
10
10
|
"variant-warning": "_variant-warning_161f5_39",
|
|
11
11
|
"variant-success": "_variant-success_161f5_42",
|
|
12
|
-
adaptative:
|
|
13
|
-
},
|
|
14
|
-
({ className: t, isAdaptative: r = !1, minRows: e = 5, variant:
|
|
15
|
-
const { getInputProps: i, variant: c } =
|
|
12
|
+
adaptative: m
|
|
13
|
+
}, u = v(l), x = f(
|
|
14
|
+
({ className: t, isAdaptative: r = !1, minRows: e = 5, variant: n, ...o }, s) => {
|
|
15
|
+
const { getInputProps: i, variant: c } = p(), a = c || n;
|
|
16
16
|
return /* @__PURE__ */ _(
|
|
17
17
|
"textarea",
|
|
18
18
|
{
|
|
19
|
-
className:
|
|
19
|
+
className: u(
|
|
20
20
|
"root",
|
|
21
21
|
a && `variant-${a}`,
|
|
22
22
|
r && "adaptative",
|
|
23
|
+
"field-input",
|
|
23
24
|
t
|
|
24
25
|
),
|
|
25
|
-
ref:
|
|
26
|
+
ref: s,
|
|
26
27
|
rows: e,
|
|
27
|
-
...i(
|
|
28
|
+
...i(o)
|
|
28
29
|
}
|
|
29
30
|
);
|
|
30
31
|
}
|
|
31
32
|
);
|
|
32
|
-
|
|
33
|
+
x.displayName = "Textarea";
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
x as Textarea
|
|
35
36
|
};
|
package/dist/TimePicker.js
CHANGED
|
@@ -1,83 +1,84 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as f } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as S, useState as
|
|
4
|
-
import { D as
|
|
5
|
-
import { b as
|
|
6
|
-
import { InputText as
|
|
7
|
-
import { c as
|
|
8
|
-
const
|
|
3
|
+
import { forwardRef as S, useState as j, useRef as F, useEffect as d } from "react";
|
|
4
|
+
import { D as I, C as L } from "./CustomPopper-C1wIDHbM.js";
|
|
5
|
+
import { b as M, D as O, s as U } from "./utils-BD597oo6.js";
|
|
6
|
+
import { InputText as _ } from "./InputText.js";
|
|
7
|
+
import { c as q } from "./index-PAaZGbyz.js";
|
|
8
|
+
const a = q(U), z = S(
|
|
9
9
|
({
|
|
10
10
|
autoFocus: o,
|
|
11
11
|
className: T,
|
|
12
12
|
dateFormat: D = "HH:mm",
|
|
13
|
-
disabled:
|
|
14
|
-
icon:
|
|
15
|
-
iconPlacement:
|
|
13
|
+
disabled: k,
|
|
14
|
+
icon: N,
|
|
15
|
+
iconPlacement: R = "left",
|
|
16
16
|
onChange: t,
|
|
17
|
-
placeholder:
|
|
18
|
-
size:
|
|
19
|
-
timeIntervals:
|
|
20
|
-
transparent:
|
|
21
|
-
value: r =
|
|
22
|
-
...
|
|
17
|
+
placeholder: w,
|
|
18
|
+
size: x = "md",
|
|
19
|
+
timeIntervals: m = 15,
|
|
20
|
+
transparent: y,
|
|
21
|
+
value: r = O,
|
|
22
|
+
...c
|
|
23
23
|
}, p) => {
|
|
24
|
-
const
|
|
24
|
+
const i = (e) => M(e, m), [A, l] = j(i(r)), H = F(), P = p || H;
|
|
25
25
|
d(() => {
|
|
26
|
-
t == null || t(
|
|
26
|
+
t == null || t(i(r));
|
|
27
27
|
}, []), d(() => {
|
|
28
|
-
var
|
|
29
|
-
const
|
|
30
|
-
((
|
|
28
|
+
var s;
|
|
29
|
+
const e = i(r);
|
|
30
|
+
((s = new Date(r)) == null ? void 0 : s.getTime()) - (e == null ? void 0 : e.getTime()) !== 0 && (t == null || t(e)), l(e);
|
|
31
31
|
}, [r]);
|
|
32
|
-
const b = (
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
}, E = (
|
|
36
|
-
if (!
|
|
37
|
-
|
|
32
|
+
const b = (e) => {
|
|
33
|
+
var s;
|
|
34
|
+
e.preventDefault(), (s = P.current) == null || s.blur(), l(null), t == null || t(null);
|
|
35
|
+
}, E = (e) => {
|
|
36
|
+
if (!e) {
|
|
37
|
+
l(null), t == null || t(null);
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
if (!
|
|
42
|
-
|
|
40
|
+
const s = Array.isArray(e) ? e[0] : e;
|
|
41
|
+
if (!s) {
|
|
42
|
+
l(null), t == null || t(null);
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
|
-
const u =
|
|
46
|
-
|
|
45
|
+
const u = i(s);
|
|
46
|
+
s.setHours(u.getHours(), u.getMinutes()), l(s), t == null || t(new Date(s));
|
|
47
47
|
};
|
|
48
48
|
return (
|
|
49
49
|
// type issue in react-datepicker (https://github.com/Hacker0x01/react-datepicker/issues/5391)
|
|
50
50
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
51
51
|
// @ts-expect-error
|
|
52
52
|
/* @__PURE__ */ f(
|
|
53
|
-
|
|
53
|
+
I,
|
|
54
54
|
{
|
|
55
55
|
calendarClassName: "time-picker-popper",
|
|
56
56
|
customInput: /* @__PURE__ */ f(
|
|
57
|
-
|
|
57
|
+
_,
|
|
58
58
|
{
|
|
59
59
|
autoFocus: o,
|
|
60
|
-
className:
|
|
61
|
-
"data-testid":
|
|
62
|
-
disabled:
|
|
63
|
-
icon:
|
|
64
|
-
iconPlacement:
|
|
60
|
+
className: a("time-picker", T),
|
|
61
|
+
"data-testid": c["data-testid"],
|
|
62
|
+
disabled: k,
|
|
63
|
+
icon: N,
|
|
64
|
+
iconPlacement: R,
|
|
65
65
|
isClearable: !1,
|
|
66
66
|
onReset: b,
|
|
67
67
|
ref: p,
|
|
68
|
-
size:
|
|
69
|
-
transparent:
|
|
68
|
+
size: x,
|
|
69
|
+
transparent: y
|
|
70
70
|
}
|
|
71
71
|
),
|
|
72
72
|
dateFormat: D,
|
|
73
73
|
onChange: E,
|
|
74
|
-
placeholderText:
|
|
75
|
-
popperContainer:
|
|
76
|
-
selected:
|
|
74
|
+
placeholderText: w,
|
|
75
|
+
popperContainer: L,
|
|
76
|
+
selected: A,
|
|
77
77
|
showTimeSelect: !0,
|
|
78
78
|
showTimeSelectOnly: !0,
|
|
79
|
-
timeIntervals:
|
|
80
|
-
...
|
|
79
|
+
timeIntervals: m,
|
|
80
|
+
...c,
|
|
81
|
+
wrapperClassName: a(c.wrapperClassName, "date-picker-wrapper", "field-input")
|
|
81
82
|
}
|
|
82
83
|
)
|
|
83
84
|
);
|
package/dist/Toggle.js
CHANGED
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
import './Toggle.css';
|
|
3
3
|
import { jsxs as z, jsx as e } from "react/jsx-runtime";
|
|
4
4
|
import { a as v } from "./KPUWHTQJ-Dv3cAqjP.js";
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
import { useField as
|
|
5
|
+
import { forwardRef as f } from "react";
|
|
6
|
+
import { useField as g } from "./Field.js";
|
|
7
7
|
import { Icon as n } from "./Icon.js";
|
|
8
8
|
import { c as h } from "./index-PAaZGbyz.js";
|
|
9
|
-
const w = "_root_1czvn_2",
|
|
9
|
+
const w = "_root_1czvn_2", u = "_wrapper_1czvn_100", k = "_checked_1czvn_120", x = "_disabled_1czvn_124", N = {
|
|
10
10
|
root: w,
|
|
11
11
|
"size-sm": "_size-sm_1czvn_82",
|
|
12
12
|
"size-md": "_size-md_1czvn_88",
|
|
13
13
|
"size-lg": "_size-lg_1czvn_94",
|
|
14
|
-
wrapper:
|
|
14
|
+
wrapper: u,
|
|
15
15
|
"icon-wrapper": "_icon-wrapper_1czvn_106",
|
|
16
|
-
checked:
|
|
16
|
+
checked: k,
|
|
17
17
|
disabled: x
|
|
18
|
-
}, c = h(N), b =
|
|
19
|
-
({ checked: o, className:
|
|
20
|
-
const { getInputProps: m } =
|
|
21
|
-
return /* @__PURE__ */ z("div", { className: c("wrapper"), onClick: d, children: [
|
|
22
|
-
|
|
18
|
+
}, c = h(N), b = f(
|
|
19
|
+
({ checked: o, className: i, disabled: s, onClick: t, size: r = "md", withVisibilityIcon: a, ...l }, p) => {
|
|
20
|
+
const { getInputProps: m } = g(), _ = m(l), d = s ? null : t;
|
|
21
|
+
return /* @__PURE__ */ z("div", { className: c("wrapper", "field-input"), onClick: d, children: [
|
|
22
|
+
a ? /* @__PURE__ */ e(
|
|
23
23
|
"div",
|
|
24
24
|
{
|
|
25
25
|
className: c(
|
|
@@ -35,7 +35,7 @@ const w = "_root_1czvn_2", k = "_wrapper_1czvn_100", u = "_checked_1czvn_120", x
|
|
|
35
35
|
v,
|
|
36
36
|
{
|
|
37
37
|
checked: o,
|
|
38
|
-
className: c("root", `size-${r}`,
|
|
38
|
+
className: c("root", `size-${r}`, i),
|
|
39
39
|
disabled: s,
|
|
40
40
|
ref: p,
|
|
41
41
|
..._
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, default as React } from 'react';
|
|
2
2
|
export declare const AssetContent: {
|
|
3
|
-
({ children, ...rest }: React.PropsWithChildren<HTMLAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
({ children, className, ...rest }: React.PropsWithChildren<HTMLAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
@@ -5,7 +5,7 @@ export declare const Assets: {
|
|
|
5
5
|
AssetWithTitle: import('react').ForwardRefExoticComponent<Omit<import('./types').AssetWithTitleProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
6
|
Backdrop: import('react').ForwardRefExoticComponent<import('../types').BackdropProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
7
|
Content: {
|
|
8
|
-
({ children, ...rest }: React.PropsWithChildren<import('react').HTMLAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
({ children, className, ...rest }: React.PropsWithChildren<import('react').HTMLAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
displayName: string;
|
|
10
10
|
};
|
|
11
11
|
Iframe: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name Modal.Content
|
|
3
3
|
*/
|
|
4
|
-
export declare const Content: import('react').ForwardRefExoticComponent<{
|
|
4
|
+
export declare const Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
withClosingButton?: boolean;
|
|
6
6
|
} & {
|
|
7
7
|
children?: import('react').ReactNode | undefined;
|
|
@@ -4,7 +4,7 @@ export declare const Modal: import('../../utils').FunctionComponentWithAs<"div",
|
|
|
4
4
|
Body: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLElement> & {
|
|
5
5
|
children?: import('react').ReactNode | undefined;
|
|
6
6
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
7
|
-
Content: import('react').ForwardRefExoticComponent<{
|
|
7
|
+
Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
8
8
|
withClosingButton?: boolean;
|
|
9
9
|
} & {
|
|
10
10
|
children?: import('react').ReactNode | undefined;
|
|
@@ -20,7 +20,7 @@ export declare const AssetModal: {
|
|
|
20
20
|
AssetWithTitle: import('react').ForwardRefExoticComponent<Omit<import('./Assets/types').AssetWithTitleProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
21
|
Backdrop: import('react').ForwardRefExoticComponent<import('./types').BackdropProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
22
22
|
Content: {
|
|
23
|
-
({ children, ...rest }: React.PropsWithChildren<import('react').HTMLAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
({ children, className, ...rest }: React.PropsWithChildren<import('react').HTMLAttributes<HTMLDivElement>>): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
displayName: string;
|
|
25
25
|
};
|
|
26
26
|
Iframe: {
|
|
@@ -27,7 +27,7 @@ export interface HeaderOptions {
|
|
|
27
27
|
}
|
|
28
28
|
export type HeaderProps = MergeProps<HeaderOptions, HTMLAttributes<HTMLDivElement>>;
|
|
29
29
|
export type BodyProps = PropsWithChildren<HTMLAttributes<HTMLElement>>;
|
|
30
|
-
export type ContentProps = PropsWithChildren<{
|
|
30
|
+
export type ContentProps = PropsWithChildren<HTMLAttributes<HTMLDivElement> & {
|
|
31
31
|
/**
|
|
32
32
|
* show or hide the closing button
|
|
33
33
|
*/
|