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