welcome-ui 0.0.0-dev.1763389246174 → 0.0.0-dev.1763736449682
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/2W3RN7C5-DMC82gDP.js +61 -0
- package/dist/{4I4MLMKD-z3Xm3qCo.js → 4I4MLMKD-BO6Lcy7s.js} +17 -17
- package/dist/Accordion.js +11 -10
- package/dist/Alert.js +39 -31
- package/dist/Avatar.js +12 -11
- package/dist/{B7UTNDHN-BDa2-8JK.js → B7UTNDHN-BghjolIs.js} +30 -30
- package/dist/Breadcrumb.js +75 -71
- package/dist/Button.css +1 -1
- package/dist/Button.js +42 -41
- package/dist/ButtonGroup.js +5 -4
- package/dist/Card.css +1 -1
- package/dist/Card.js +67 -15
- package/dist/Checkbox.js +29 -29
- package/dist/CloseButton.js +6 -5
- package/dist/{CustomPopper-vwbOQq72.js → CustomPopper-C1wIDHbM.js} +5 -4
- package/dist/{DSAASPLT-C-2xDjIv.js → DSAASPLT-Fx1kuAsk.js} +3 -3
- package/dist/DatePicker.js +81 -78
- package/dist/DateTimePicker.js +22 -21
- package/dist/Drawer.js +100 -80
- package/dist/DropdownMenu.css +1 -1
- package/dist/DropdownMenu.js +898 -462
- package/dist/FieldGroup.js +8 -7
- package/dist/FileDrop.js +183 -176
- package/dist/FileUpload.js +42 -40
- package/dist/{GVVKDT6A-C66-lr0B.js → GVVKDT6A-CF9ejW_c.js} +103 -103
- package/dist/Hint.js +8 -7
- package/dist/Icon.js +20 -15
- package/dist/InputText.css +1 -1
- package/dist/InputText.js +63 -62
- package/dist/{KPUWHTQJ-Byij2al4.js → KPUWHTQJ-Dv3cAqjP.js} +33 -31
- package/dist/Label.js +8 -7
- package/dist/Link.css +1 -1
- package/dist/Link.js +51 -48
- package/dist/Loader.js +11 -10
- package/dist/Logo.js +20 -13
- package/dist/Modal.js +144 -114
- package/dist/{NI3IVY7K-DpF3td-7.js → NI3IVY7K-Dy240mkD.js} +160 -160
- package/dist/{NMGNQVTG-BgAqqGOq.js → NMGNQVTG-DRO2uXZT.js} +6 -6
- package/dist/{OE2EFRVA-DkdhQLJL.js → OE2EFRVA-Dg1R6gaC.js} +186 -170
- package/dist/{OLVWQA7U-wHytlFYu.js → OLVWQA7U-Dia3UUnG.js} +36 -36
- package/dist/Pagination.js +38 -37
- package/dist/PasswordInput.js +20 -17
- package/dist/Popover.js +88 -72
- package/dist/{RTNCFSKZ-LcIdBwa8.js → RTNCFSKZ-BywELldk.js} +42 -42
- package/dist/Radio.js +19 -19
- package/dist/RadioGroup.js +28 -27
- package/dist/RadioTab.js +1 -1
- package/dist/{SBSPVDDI-BoxPz2JY.js → SBSPVDDI-CmtnvvUX.js} +46 -46
- package/dist/SQZLCNLX-Dg4KKdNJ.js +83 -0
- package/dist/Search.css +1 -1
- package/dist/Search.js +107 -101
- package/dist/Select.css +1 -1
- package/dist/Select.js +203 -202
- package/dist/Slider.js +65 -61
- package/dist/Stepper.js +33 -27
- package/dist/StickyNote.js +29 -23
- package/dist/Swiper.js +51 -50
- package/dist/{T22PY7TE-CzEDuEn1.js → T22PY7TE-gLuJpoOm.js} +46 -46
- package/dist/Table.js +33 -21
- package/dist/Tabs.js +160 -152
- package/dist/Tag.css +1 -1
- package/dist/Tag.js +69 -65
- package/dist/Text.js +3 -2
- package/dist/Textarea.css +1 -1
- package/dist/Textarea.js +25 -18
- package/dist/TimePicker.js +22 -21
- package/dist/Toast.js +226 -201
- package/dist/Toggle.js +15 -14
- package/dist/Tooltip.js +28 -27
- package/dist/VariantIcon.js +6 -5
- package/dist/VisuallyHidden.js +7 -6
- package/dist/WelcomeLoader.js +3 -2
- package/dist/XCKGTAUF-CJwwVibW.js +25 -0
- package/dist/{Y67KZUMI-BDyUNSJw.js → Y67KZUMI-BwLWwpNF.js} +2 -2
- package/dist/{ZTXFEM5L-CjFLRObi.js → ZTXFEM5L-WGHY_jqg.js} +3 -3
- package/dist/types/components/Alert/components/Title.d.ts +4 -1
- package/dist/types/components/Alert/index.d.ts +4 -1
- package/dist/types/components/Card/Body.d.ts +2 -3
- package/dist/types/components/Card/Footer.d.ts +6 -0
- package/dist/types/components/Card/Header.d.ts +5 -0
- package/dist/types/components/Card/index.d.ts +7 -8
- package/dist/types/components/Card/types.d.ts +16 -3
- package/dist/types/components/Checkbox/index.d.ts +1 -2
- package/dist/types/components/Checkbox/types.d.ts +3 -1
- package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +4 -1
- package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +6 -3
- package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +4 -1
- package/dist/types/components/Drawer/AssetDrawer/IconBlock.d.ts +4 -1
- package/dist/types/components/Drawer/components/Close.d.ts +4 -1
- package/dist/types/components/Drawer/components/Title.d.ts +4 -1
- package/dist/types/components/Drawer/index.d.ts +12 -3
- package/dist/types/components/DropdownMenu/Action.d.ts +2 -0
- package/dist/types/components/DropdownMenu/Group.d.ts +4 -0
- package/dist/types/components/DropdownMenu/Item.d.ts +7 -0
- package/dist/types/components/DropdownMenu/Search.d.ts +2 -0
- package/dist/types/components/DropdownMenu/Submenu.d.ts +4 -0
- package/dist/types/components/DropdownMenu/index.d.ts +11 -0
- package/dist/types/components/DropdownMenu/types.d.ts +26 -5
- package/dist/types/components/FileDrop/components/FilePreview.d.ts +4 -1
- package/dist/types/components/FileDrop/components/Message.d.ts +4 -1
- package/dist/types/components/Icon/icons.d.ts +4 -3
- package/dist/types/components/Loader/index.d.ts +4 -1
- package/dist/types/components/Modal/Assets/AssetContent.d.ts +4 -1
- package/dist/types/components/Modal/Assets/AssetTitle.d.ts +4 -1
- package/dist/types/components/Modal/Assets/CloseButton.d.ts +4 -1
- package/dist/types/components/Modal/Assets/Dialog.d.ts +4 -1
- package/dist/types/components/Modal/Assets/Iframe.d.ts +4 -1
- package/dist/types/components/Modal/Assets/index.d.ts +16 -4
- package/dist/types/components/Modal/components/Close.d.ts +4 -1
- package/dist/types/components/Modal/index.d.ts +16 -4
- package/dist/types/components/PasswordInput/ToggleButton.d.ts +4 -1
- package/dist/types/components/Popover/Arrow.d.ts +4 -1
- package/dist/types/components/Popover/ContentWrapper.d.ts +4 -1
- package/dist/types/components/RadioGroup/index.d.ts +4 -1
- package/dist/types/components/Stepper/index.d.ts +8 -2
- package/dist/types/components/StickyNote/components/Button.d.ts +4 -1
- package/dist/types/components/StickyNote/components/Title.d.ts +4 -1
- package/dist/types/components/StickyNote/index.d.ts +8 -2
- package/dist/types/components/Swiper/index.d.ts +4 -1
- package/dist/types/components/Table/index.d.ts +20 -5
- package/dist/types/components/Tabs/components/ActiveBar/index.d.ts +4 -1
- package/dist/types/components/Tag/types.d.ts +4 -2
- package/dist/types/components/Textarea/types.d.ts +1 -0
- package/dist/types/components/Toast/index.d.ts +4 -1
- package/package.json +1 -1
- package/dist/2W3RN7C5-uG7eBeTQ.js +0 -61
- package/dist/SQZLCNLX-CUlXoT69.js +0 -82
- package/dist/XCKGTAUF-CahZE721.js +0 -25
package/dist/Slider.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './Slider.css';
|
|
3
|
-
import { jsxs as D, jsx as l, Fragment as
|
|
4
|
-
import { forwardRef as Y, useState as $, useRef as
|
|
3
|
+
import { jsxs as D, jsx as l, Fragment as se } from "react/jsx-runtime";
|
|
4
|
+
import { forwardRef as Y, useState as $, useRef as C, useCallback as Z, useEffect as U, useId as ee } from "react";
|
|
5
5
|
import { Hint as H } from "./Hint.js";
|
|
6
6
|
import { InputText as O } from "./InputText.js";
|
|
7
7
|
import { Text as re } from "./Text.js";
|
|
8
8
|
import { c as ne } from "./index-PAaZGbyz.js";
|
|
9
|
-
const
|
|
9
|
+
const ce = "_hint_6xzwz_20", ue = "_output_6xzwz_149", de = "_tooltip_6xzwz_162", fe = "_thick_6xzwz_171", pe = "_range_6xzwz_8", te = {
|
|
10
10
|
"slider-root": "_slider-root_6xzwz_2",
|
|
11
11
|
"range-root": "_range-root_6xzwz_8",
|
|
12
12
|
"input-wrapper": "_input-wrapper_6xzwz_14",
|
|
13
|
-
hint:
|
|
13
|
+
hint: ce,
|
|
14
14
|
"slider-wrapper": "_slider-wrapper_6xzwz_23",
|
|
15
15
|
"range-wrapper": "_range-wrapper_6xzwz_30",
|
|
16
16
|
"tick-markers": "_tick-markers_6xzwz_34",
|
|
@@ -24,36 +24,36 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
24
24
|
"border-selector-secondary-violet": "_border-selector-secondary-violet_6xzwz_125",
|
|
25
25
|
"slider-input-range": "_slider-input-range_6xzwz_128",
|
|
26
26
|
"range-input-range": "_range-input-range_6xzwz_135",
|
|
27
|
-
output:
|
|
27
|
+
output: ue,
|
|
28
28
|
"output-visible": "_output-visible_6xzwz_157",
|
|
29
|
-
tooltip:
|
|
30
|
-
thick:
|
|
29
|
+
tooltip: de,
|
|
30
|
+
thick: fe,
|
|
31
31
|
"thick-label": "_thick-label_6xzwz_182",
|
|
32
32
|
"range-track": "_range-track_6xzwz_188",
|
|
33
|
-
range:
|
|
33
|
+
range: pe,
|
|
34
34
|
"range-disabled": "_range-disabled_6xzwz_200"
|
|
35
35
|
}, X = 20, g = ne(te), P = ({
|
|
36
36
|
min: d,
|
|
37
37
|
step: _,
|
|
38
38
|
toCompare: p,
|
|
39
|
-
value:
|
|
39
|
+
value: y
|
|
40
40
|
}) => {
|
|
41
|
-
let h = Math.min(
|
|
41
|
+
let h = Math.min(y, p - 1 * _);
|
|
42
42
|
return h = Math.max(h, d), q(h, _);
|
|
43
43
|
}, T = ({
|
|
44
44
|
max: d,
|
|
45
45
|
step: _,
|
|
46
46
|
toCompare: p,
|
|
47
|
-
value:
|
|
47
|
+
value: y
|
|
48
48
|
}) => {
|
|
49
|
-
let h = Math.max(
|
|
49
|
+
let h = Math.max(y, p + 1 * _);
|
|
50
50
|
return h = Math.min(h, d), q(h, _);
|
|
51
|
-
},
|
|
51
|
+
}, ae = Y(
|
|
52
52
|
({
|
|
53
53
|
borderSelectorColor: d,
|
|
54
54
|
className: _,
|
|
55
55
|
disabled: p,
|
|
56
|
-
hint:
|
|
56
|
+
hint: y,
|
|
57
57
|
label: h,
|
|
58
58
|
max: a,
|
|
59
59
|
min: t,
|
|
@@ -65,7 +65,7 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
65
65
|
values: B,
|
|
66
66
|
...W
|
|
67
67
|
}, G) => {
|
|
68
|
-
const [o, k] = $(t), [s, I] = $(a), [R, z] = $(t), [v,
|
|
68
|
+
const [o, k] = $(t), [s, I] = $(a), [R, z] = $(t), [v, x] = $(a), A = C(null), E = C(null), M = C(null), S = C(null), L = C(null), [K, j] = $(!1), [n, c] = $(!1), ie = (e) => {
|
|
69
69
|
const r = P({
|
|
70
70
|
min: t,
|
|
71
71
|
step: i,
|
|
@@ -73,14 +73,14 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
73
73
|
value: parseInt(e.target.value, 10)
|
|
74
74
|
});
|
|
75
75
|
z(r), k(r), e.target.value = r.toString();
|
|
76
|
-
},
|
|
76
|
+
}, oe = (e) => {
|
|
77
77
|
const r = T({
|
|
78
78
|
max: a,
|
|
79
79
|
step: i,
|
|
80
80
|
toCompare: o,
|
|
81
81
|
value: parseInt(e.target.value, 10)
|
|
82
82
|
});
|
|
83
|
-
|
|
83
|
+
x(r), I(r), e.target.value = r.toString();
|
|
84
84
|
}, Q = (e, r) => {
|
|
85
85
|
if (e.preventDefault(), r === "min") {
|
|
86
86
|
let u = o;
|
|
@@ -88,7 +88,7 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
88
88
|
}
|
|
89
89
|
if (r === "max") {
|
|
90
90
|
let u = s;
|
|
91
|
-
e.key === "ArrowRight" && (u = T({ max: a, step: i, toCompare: o, value: u + i })), e.key === "ArrowLeft" && (u = T({ max: a, step: i, toCompare: o, value: u - i })),
|
|
91
|
+
e.key === "ArrowRight" && (u = T({ max: a, step: i, toCompare: o, value: u + i })), e.key === "ArrowLeft" && (u = T({ max: a, step: i, toCompare: o, value: u - i })), x(u), I(u), w({ max: u, min: o });
|
|
92
92
|
}
|
|
93
93
|
}, V = Z(
|
|
94
94
|
(e) => {
|
|
@@ -105,9 +105,9 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
105
105
|
}, [o, V]), U(() => {
|
|
106
106
|
if (A.current) {
|
|
107
107
|
const e = V(parseInt(A.current.value, 10)), r = V(s);
|
|
108
|
-
if (M.current && (M.current.style.width = `${r - e}%`),
|
|
108
|
+
if (M.current && (M.current.style.width = `${r - e}%`), S.current) {
|
|
109
109
|
const u = V(o) / 100;
|
|
110
|
-
|
|
110
|
+
S.current.style.left = `calc(${u * 100}% + ${(0.5 - u) * X}px)`;
|
|
111
111
|
}
|
|
112
112
|
if (L.current) {
|
|
113
113
|
const u = V(s) / 100;
|
|
@@ -122,7 +122,7 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
122
122
|
}
|
|
123
123
|
if (!isNaN(f.max) && f.max !== s) {
|
|
124
124
|
const e = T({ max: a, step: i, toCompare: o, value: f.max || a });
|
|
125
|
-
I(e),
|
|
125
|
+
I(e), x(e);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
}, [f]);
|
|
@@ -166,12 +166,12 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
166
166
|
}
|
|
167
167
|
) : /* @__PURE__ */ l("div", { children: t })),
|
|
168
168
|
/* @__PURE__ */ D("div", { className: g("range-wrapper"), children: [
|
|
169
|
-
b ? /* @__PURE__ */ D(
|
|
169
|
+
b ? /* @__PURE__ */ D(se, { children: [
|
|
170
170
|
/* @__PURE__ */ l(
|
|
171
171
|
"output",
|
|
172
172
|
{
|
|
173
|
-
className: g("output",
|
|
174
|
-
ref:
|
|
173
|
+
className: g("output", K && "output-visible"),
|
|
174
|
+
ref: S,
|
|
175
175
|
children: /* @__PURE__ */ l("div", { children: o })
|
|
176
176
|
}
|
|
177
177
|
),
|
|
@@ -198,10 +198,10 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
198
198
|
id: `${J}-min`,
|
|
199
199
|
max: a,
|
|
200
200
|
min: t,
|
|
201
|
-
onChange:
|
|
201
|
+
onChange: ie,
|
|
202
202
|
onKeyDown: (e) => Q(e, "min"),
|
|
203
203
|
onMouseDown: () => {
|
|
204
|
-
b &&
|
|
204
|
+
b && K === !1 && j(!0);
|
|
205
205
|
},
|
|
206
206
|
onMouseUp: () => {
|
|
207
207
|
w({ max: s, min: o }), b && j(!1);
|
|
@@ -225,7 +225,7 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
225
225
|
id: `${J}-max`,
|
|
226
226
|
max: a,
|
|
227
227
|
min: t,
|
|
228
|
-
onChange:
|
|
228
|
+
onChange: oe,
|
|
229
229
|
onKeyDown: (e) => Q(e, "max"),
|
|
230
230
|
onMouseDown: () => {
|
|
231
231
|
b && n === !1 && c(!0);
|
|
@@ -265,11 +265,11 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
265
265
|
toCompare: o,
|
|
266
266
|
value: v
|
|
267
267
|
});
|
|
268
|
-
|
|
268
|
+
x(e), I(e), w({ max: e, min: o });
|
|
269
269
|
},
|
|
270
270
|
onChange: (e) => {
|
|
271
271
|
let r = parseInt(e.target.value, 10);
|
|
272
|
-
isNaN(r) && (r = 0),
|
|
272
|
+
isNaN(r) && (r = 0), x(r);
|
|
273
273
|
},
|
|
274
274
|
onKeyDown: (e) => {
|
|
275
275
|
if (e.key === "Enter") {
|
|
@@ -279,7 +279,7 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
279
279
|
toCompare: o,
|
|
280
280
|
value: v
|
|
281
281
|
});
|
|
282
|
-
|
|
282
|
+
x(r), I(r), w({ max: r, min: o });
|
|
283
283
|
}
|
|
284
284
|
},
|
|
285
285
|
size: "md",
|
|
@@ -288,15 +288,17 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
288
288
|
}
|
|
289
289
|
) : /* @__PURE__ */ l("div", { children: a }))
|
|
290
290
|
] }),
|
|
291
|
-
|
|
291
|
+
y ? /* @__PURE__ */ l(H, { className: g("hint"), children: y }) : null
|
|
292
292
|
] });
|
|
293
293
|
}
|
|
294
|
-
)
|
|
294
|
+
);
|
|
295
|
+
ae.displayName = "Slider.Range";
|
|
296
|
+
const _e = 20, q = (d, _) => Math.round(d / _) * _, F = (d, _, p, y) => (d = q(d, y), d < _ ? _ : d > p ? p : d), N = ne(te), le = Y(
|
|
295
297
|
({
|
|
296
298
|
borderSelectorColor: d,
|
|
297
299
|
className: _,
|
|
298
300
|
disabled: p,
|
|
299
|
-
hint:
|
|
301
|
+
hint: y,
|
|
300
302
|
label: h,
|
|
301
303
|
max: a,
|
|
302
304
|
min: t,
|
|
@@ -308,43 +310,43 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
308
310
|
values: B,
|
|
309
311
|
...W
|
|
310
312
|
}, G) => {
|
|
311
|
-
const o =
|
|
312
|
-
n = q(n, i),
|
|
313
|
+
const o = C(null), k = C(null), [s, I] = $(!1), [R, z] = $(F(f, t, a, i)), [v, x] = $(F(f, t, a, i)), A = (n) => {
|
|
314
|
+
n = q(n, i), x(n);
|
|
313
315
|
}, E = (n) => {
|
|
314
316
|
n.preventDefault();
|
|
315
317
|
let c = v;
|
|
316
|
-
n.key === "ArrowRight" && (c = F(c + i, t, a, i)), n.key === "ArrowLeft" && (c = F(c - i, t, a, i)),
|
|
318
|
+
n.key === "ArrowRight" && (c = F(c + i, t, a, i)), n.key === "ArrowLeft" && (c = F(c - i, t, a, i)), x(c), z(c), w(c);
|
|
317
319
|
}, M = (n) => {
|
|
318
320
|
let c = parseInt(n.target.value, 10);
|
|
319
321
|
isNaN(c) && (c = 0), z(c);
|
|
320
|
-
},
|
|
322
|
+
}, S = () => {
|
|
321
323
|
const n = F(R, t, a, i);
|
|
322
|
-
z(n),
|
|
324
|
+
z(n), x(n), w(n);
|
|
323
325
|
}, L = (n) => {
|
|
324
|
-
n.key === "Enter" &&
|
|
325
|
-
},
|
|
326
|
+
n.key === "Enter" && S();
|
|
327
|
+
}, K = Z(
|
|
326
328
|
(n) => Math.round((n - t) / (a - t) * 100),
|
|
327
329
|
[t, a]
|
|
328
330
|
);
|
|
329
331
|
U(() => {
|
|
330
|
-
if (o.current && (o.current.style.backgroundSize = `${
|
|
331
|
-
const n =
|
|
332
|
-
k.current.style.left = `calc(${n * 100}% + ${(0.5 - n) *
|
|
332
|
+
if (o.current && (o.current.style.backgroundSize = `${K(v)}% 100%`), k.current) {
|
|
333
|
+
const n = K(v) / 100;
|
|
334
|
+
k.current.style.left = `calc(${n * 100}% + ${(0.5 - n) * _e}px)`;
|
|
333
335
|
}
|
|
334
|
-
}, [v,
|
|
336
|
+
}, [v, K]), U(() => {
|
|
335
337
|
!isNaN(f) && f !== v && f && (A(f), z(f));
|
|
336
338
|
}, [f]);
|
|
337
339
|
const j = ee();
|
|
338
|
-
return /* @__PURE__ */ D("div", { className:
|
|
340
|
+
return /* @__PURE__ */ D("div", { className: N("slider-root", _), ref: G, children: [
|
|
339
341
|
h ? /* @__PURE__ */ l(re, { as: "label", htmlFor: j, variant: "body-md", children: h }) : null,
|
|
340
|
-
/* @__PURE__ */ D("div", { className:
|
|
342
|
+
/* @__PURE__ */ D("div", { className: N("input-wrapper"), children: [
|
|
341
343
|
(m === "inline" || m === "left-field") && (m === "left-field" ? /* @__PURE__ */ l(
|
|
342
344
|
O,
|
|
343
345
|
{
|
|
344
346
|
disabled: p,
|
|
345
347
|
max: a,
|
|
346
348
|
min: t,
|
|
347
|
-
onBlur:
|
|
349
|
+
onBlur: S,
|
|
348
350
|
onChange: M,
|
|
349
351
|
onKeyDown: L,
|
|
350
352
|
size: "md",
|
|
@@ -352,11 +354,11 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
352
354
|
value: R.toString()
|
|
353
355
|
}
|
|
354
356
|
) : /* @__PURE__ */ l("div", { children: t })),
|
|
355
|
-
/* @__PURE__ */ D("div", { className:
|
|
357
|
+
/* @__PURE__ */ D("div", { className: N("slider-wrapper"), children: [
|
|
356
358
|
/* @__PURE__ */ l(
|
|
357
359
|
"input",
|
|
358
360
|
{
|
|
359
|
-
className:
|
|
361
|
+
className: N(
|
|
360
362
|
"input-range",
|
|
361
363
|
"slider-input-range",
|
|
362
364
|
d && `border-selector-${d}`
|
|
@@ -384,13 +386,13 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
384
386
|
...W
|
|
385
387
|
}
|
|
386
388
|
),
|
|
387
|
-
b ? /* @__PURE__ */ l("output", { className:
|
|
388
|
-
B ? /* @__PURE__ */ l("div", { className:
|
|
389
|
+
b ? /* @__PURE__ */ l("output", { className: N("output", s && "output-visible"), ref: k, children: /* @__PURE__ */ l("div", { className: N("tooltip"), children: v }) }) : null,
|
|
390
|
+
B ? /* @__PURE__ */ l("div", { className: N("thick-markers"), children: B.reduce((n, c) => n.includes(c) ? n : [...n, c], []).filter((n) => n >= t && n <= a).map((n, c) => /* @__PURE__ */ l(
|
|
389
391
|
"div",
|
|
390
392
|
{
|
|
391
|
-
className:
|
|
392
|
-
style: { left: `${
|
|
393
|
-
children: /* @__PURE__ */ l(H, { className:
|
|
393
|
+
className: N("thick"),
|
|
394
|
+
style: { left: `${K(n)}%` },
|
|
395
|
+
children: /* @__PURE__ */ l(H, { className: N("thick-label"), children: n })
|
|
394
396
|
},
|
|
395
397
|
`${n}-${c}`
|
|
396
398
|
)) }) : null
|
|
@@ -398,11 +400,11 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
398
400
|
(m === "inline" || m === "right-field") && (m === "right-field" ? /* @__PURE__ */ l(
|
|
399
401
|
O,
|
|
400
402
|
{
|
|
401
|
-
className:
|
|
403
|
+
className: N("input-text"),
|
|
402
404
|
disabled: p,
|
|
403
405
|
max: a,
|
|
404
406
|
min: t,
|
|
405
|
-
onBlur:
|
|
407
|
+
onBlur: S,
|
|
406
408
|
onChange: M,
|
|
407
409
|
onKeyDown: L,
|
|
408
410
|
size: "md",
|
|
@@ -411,14 +413,16 @@ const oe = "_hint_6xzwz_20", se = "_output_6xzwz_149", ce = "_tooltip_6xzwz_162"
|
|
|
411
413
|
}
|
|
412
414
|
) : /* @__PURE__ */ l("div", { children: a }))
|
|
413
415
|
] }),
|
|
414
|
-
|
|
416
|
+
y ? /* @__PURE__ */ l(H, { className: N("hint"), children: y }) : null
|
|
415
417
|
] });
|
|
416
418
|
}
|
|
417
|
-
)
|
|
419
|
+
);
|
|
420
|
+
le.displayName = "Slider";
|
|
421
|
+
const ye = Object.assign(le, { Range: ae });
|
|
418
422
|
export {
|
|
419
|
-
|
|
420
|
-
|
|
423
|
+
ye as Slider,
|
|
424
|
+
le as SliderComponent,
|
|
421
425
|
F as ensureMinMax,
|
|
422
426
|
q as round,
|
|
423
|
-
|
|
427
|
+
_e as thumbWidth
|
|
424
428
|
};
|
package/dist/Stepper.js
CHANGED
|
@@ -1,43 +1,49 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './Stepper.css';
|
|
3
|
-
import { jsx as e, jsxs as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { c as
|
|
7
|
-
import { Text as
|
|
8
|
-
const
|
|
9
|
-
root:
|
|
10
|
-
separator:
|
|
11
|
-
item:
|
|
12
|
-
clickable:
|
|
13
|
-
completed:
|
|
3
|
+
import { jsx as e, jsxs as _ } from "react/jsx-runtime";
|
|
4
|
+
import { forwardRef as d } from "react";
|
|
5
|
+
import { Icon as a } from "./Icon.js";
|
|
6
|
+
import { c as u } from "./index-PAaZGbyz.js";
|
|
7
|
+
import { Text as f } from "./Text.js";
|
|
8
|
+
const b = "_root_1wnun_2", N = "_separator_1wnun_28", S = "_item_1wnun_31", k = "_clickable_1wnun_64", w = "_completed_1wnun_73", g = {
|
|
9
|
+
root: b,
|
|
10
|
+
separator: N,
|
|
11
|
+
item: S,
|
|
12
|
+
clickable: k,
|
|
13
|
+
completed: w
|
|
14
14
|
};
|
|
15
|
-
function
|
|
15
|
+
function x({
|
|
16
16
|
icon: t,
|
|
17
|
-
isCompleted:
|
|
18
|
-
isOpen:
|
|
17
|
+
isCompleted: o,
|
|
18
|
+
isOpen: r
|
|
19
19
|
}) {
|
|
20
|
-
return t || (
|
|
20
|
+
return t || (o ? /* @__PURE__ */ e(a, { name: "check-circle" }) : r ? /* @__PURE__ */ e(a, { name: "folder-open" }) : /* @__PURE__ */ e(a, { name: "folder" }));
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
({ children: t, className:
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
const n = u(g), l = d(
|
|
23
|
+
({ children: t, className: o }, r) => /* @__PURE__ */ e("ol", { className: n("root", o), ref: r, children: t })
|
|
24
|
+
);
|
|
25
|
+
l.displayName = "Stepper";
|
|
26
|
+
const m = () => /* @__PURE__ */ e("div", { className: n("separator"), children: /* @__PURE__ */ e(a, { name: "angle-right-b", size: "lg" }) });
|
|
27
|
+
m.displayName = "Stepper.Separator";
|
|
28
|
+
const i = ({ children: t, icon: o, isCompleted: r, isOpen: c, onClick: s }) => {
|
|
29
|
+
const p = x({ icon: o, isCompleted: r, isOpen: c });
|
|
30
|
+
return /* @__PURE__ */ _(
|
|
27
31
|
"li",
|
|
28
32
|
{
|
|
29
|
-
"aria-current":
|
|
30
|
-
className:
|
|
33
|
+
"aria-current": c,
|
|
34
|
+
className: n("item", !!s && "clickable", r && "completed"),
|
|
31
35
|
onClick: s,
|
|
32
36
|
children: [
|
|
33
|
-
|
|
34
|
-
/* @__PURE__ */ e(
|
|
37
|
+
p,
|
|
38
|
+
/* @__PURE__ */ e(f, { variant: "label-md", children: t })
|
|
35
39
|
]
|
|
36
40
|
}
|
|
37
41
|
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
};
|
|
43
|
+
i.displayName = "Stepper.Item";
|
|
44
|
+
const B = Object.assign(l, {
|
|
45
|
+
Item: i,
|
|
46
|
+
Separator: m
|
|
41
47
|
});
|
|
42
48
|
export {
|
|
43
49
|
B as Stepper
|
package/dist/StickyNote.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './StickyNote.css';
|
|
3
3
|
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { CloseButton as
|
|
6
|
-
import { c as
|
|
7
|
-
import { Button as
|
|
8
|
-
import { Icon as
|
|
9
|
-
import { Text as
|
|
10
|
-
const
|
|
11
|
-
root:
|
|
4
|
+
import { forwardRef as j } from "react";
|
|
5
|
+
import { CloseButton as d } from "./CloseButton.js";
|
|
6
|
+
import { c as i } from "./index-PAaZGbyz.js";
|
|
7
|
+
import { Button as N } from "./Button.js";
|
|
8
|
+
import { Icon as y } from "./Icon.js";
|
|
9
|
+
import { Text as f } from "./Text.js";
|
|
10
|
+
const g = "_root_1m1jb_2", h = "_content_1m1jb_110", k = "_title_1m1jb_38", x = "_action_1m1jb_132", r = {
|
|
11
|
+
root: g,
|
|
12
12
|
"shape-rectangle": "_shape-rectangle_1m1jb_26",
|
|
13
13
|
"shape-square": "_shape-square_1m1jb_30",
|
|
14
14
|
"variant-brand": "_variant-brand_1m1jb_34",
|
|
@@ -20,23 +20,29 @@ const f = "_root_1m1jb_2", g = "_content_1m1jb_110", h = "_title_1m1jb_38", N =
|
|
|
20
20
|
"variant-orange": "_variant-orange_1m1jb_84",
|
|
21
21
|
"variant-teal": "_variant-teal_1m1jb_94",
|
|
22
22
|
"close-button": "_close-button_1m1jb_104",
|
|
23
|
-
content:
|
|
24
|
-
title:
|
|
25
|
-
action:
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
content: h,
|
|
24
|
+
title: k,
|
|
25
|
+
action: x
|
|
26
|
+
}, B = i(r), m = ({ children: a, className: n, ...o }) => /* @__PURE__ */ t(N, { className: B("action", n), ...o, size: "sm", variant: "primary-neutral", children: a });
|
|
27
|
+
m.displayName = "StickyNote.Button";
|
|
28
|
+
const s = i(r), _ = ({ children: a, icon: n = "lightbulb-alt" }) => /* @__PURE__ */ c(f, { as: "div", className: s("title"), variant: "body-md-strong", children: [
|
|
29
|
+
/* @__PURE__ */ t("div", { className: s("title-icon"), children: /* @__PURE__ */ t(y, { name: n }) }),
|
|
30
|
+
/* @__PURE__ */ t("span", { children: a })
|
|
31
|
+
] });
|
|
32
|
+
_.displayName = "StickyNote.Title";
|
|
33
|
+
const e = i(r), l = j(
|
|
34
|
+
({ children: a, className: n, handleClose: o, shape: b = "square", variant: v = "brand" }, p) => {
|
|
35
|
+
const u = !!o;
|
|
36
|
+
return /* @__PURE__ */ c("div", { className: e("root", `variant-${v}`, `shape-${b}`, n), ref: p, children: [
|
|
37
|
+
u ? /* @__PURE__ */ t(d, { className: e("close-button"), onClick: o, size: "sm" }) : null,
|
|
38
|
+
/* @__PURE__ */ t("div", { className: e("content"), children: a })
|
|
35
39
|
] });
|
|
36
40
|
}
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
);
|
|
42
|
+
l.displayName = "StickyNote";
|
|
43
|
+
const I = Object.assign(l, {
|
|
44
|
+
Button: m,
|
|
45
|
+
Title: _
|
|
40
46
|
});
|
|
41
47
|
export {
|
|
42
48
|
I as StickyNote
|