welcome-ui 8.1.0-alpha.1 → 8.1.0-alpha.3
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/AspectRatio.mjs +4 -2
- package/dist/Avatar.mjs +4 -4
- package/dist/Breadcrumb.mjs +19 -19
- package/dist/Button.mjs +2 -2
- package/dist/{CustomPopper-CZt4RioF.mjs → CustomPopper-B2Cqfph4.mjs} +4 -4
- package/dist/DatePicker.mjs +1 -1
- package/dist/DateTimePicker.mjs +3 -3
- package/dist/DateTimePickerCommon.mjs +1 -1
- package/dist/Drawer.mjs +2 -2
- package/dist/Field.mjs +25 -25
- package/dist/FieldGroup.mjs +4 -4
- package/dist/FileDrop.mjs +6 -6
- package/dist/FileUpload.mjs +30 -30
- package/dist/Icon.mjs +11 -11
- package/dist/IconsFont.mjs +1 -1
- package/dist/InputText.mjs +26 -26
- package/dist/Label.mjs +5 -5
- package/dist/Link.mjs +22 -21
- package/dist/Modal.mjs +66 -66
- package/dist/PasswordInput.mjs +5 -5
- package/dist/Picker.mjs +5 -5
- package/dist/Popover.mjs +10 -10
- package/dist/Radio.mjs +1 -1
- package/dist/Search.mjs +52 -50
- package/dist/Select.mjs +10 -10
- package/dist/Slider.mjs +9 -9
- package/dist/Swiper.mjs +3 -3
- package/dist/TimePicker.mjs +1 -1
- package/dist/Toast.mjs +4 -4
- package/dist/Toggle.mjs +8 -8
- package/dist/WuiProvider.mjs +1 -1
- package/dist/types/components/Alert/theme.d.ts +1 -1
- package/dist/types/components/AspectRatio/styles.d.ts +3 -2
- package/dist/types/components/Avatar/theme.d.ts +1 -1
- package/dist/types/components/Button/theme.d.ts +1 -1
- package/dist/types/components/ButtonGroup/index.d.ts +2 -2
- package/dist/types/components/Icon/theme.d.ts +1 -1
- package/dist/types/components/Loader/theme.d.ts +1 -1
- package/dist/types/components/Modal/theme.d.ts +1 -1
- package/dist/types/components/Swiper/index.d.ts +1 -1
- package/dist/types/components/Swiper/styles.d.ts +4 -4
- package/dist/types/components/Tabs/theme.d.ts +1 -1
- package/dist/types/components/Tag/theme.d.ts +1 -1
- package/dist/types/components/Toggle/theme.d.ts +1 -1
- package/dist/types/components/VariantIcon/theme.d.ts +1 -1
- package/package.json +5 -2
package/dist/Radio.mjs
CHANGED
|
@@ -109,7 +109,7 @@ const v = o(R).withConfig({ shouldForwardProp: $ })(
|
|
|
109
109
|
) }),
|
|
110
110
|
/* @__PURE__ */ t.jsxs(D, { children: [
|
|
111
111
|
/* @__PURE__ */ t.jsx("div", { "data-testid": i ? `${i}-label` : void 0, children: c }),
|
|
112
|
-
n
|
|
112
|
+
n ? /* @__PURE__ */ t.jsx(b, { "data-testid": i ? `${i}-hint` : void 0, mt: "0", children: n }) : null
|
|
113
113
|
] })
|
|
114
114
|
] })
|
|
115
115
|
}
|
package/dist/Search.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as e } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
3
3
|
import { D as W } from "./downshift.esm-B7Jil1wW.mjs";
|
|
4
|
-
import ct, { useState as pt, useCallback as ft, useMemo as mt, Fragment as
|
|
5
|
-
import { ClearButton as
|
|
4
|
+
import ct, { useState as pt, useCallback as ft, useMemo as mt, Fragment as ut } from "react";
|
|
5
|
+
import { ClearButton as ht } from "./ClearButton.mjs";
|
|
6
6
|
import { IconWrapper as xt } from "./Field.mjs";
|
|
7
7
|
import { shouldForwardProp as A, forwardRef as gt } from "./System.mjs";
|
|
8
8
|
import { c as jt } from "./create-event-rXDe5aCQ.mjs";
|
|
9
9
|
import { d as wt, F as $t } from "./field-styles-BVlRlvuu.mjs";
|
|
10
10
|
import { t as bt } from "./throttle-CW18pWlW.mjs";
|
|
11
|
-
import s, { css as F, th as
|
|
11
|
+
import s, { css as F, th as n } from "@xstyled/styled-components";
|
|
12
12
|
import { StyledIcon as It } from "./Icon.mjs";
|
|
13
13
|
import { o as L } from "./overflow-ellipsis-DGV5Kgt-.mjs";
|
|
14
14
|
const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
@@ -16,9 +16,9 @@ const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
|
16
16
|
`, St = s.div`
|
|
17
17
|
position: relative;
|
|
18
18
|
`, yt = s.inputBox.withConfig({ shouldForwardProp: A })(
|
|
19
|
-
({ iconPlacement:
|
|
19
|
+
({ iconPlacement: i, size: o, transparent: l, variant: x }) => F`
|
|
20
20
|
position: relative;
|
|
21
|
-
${wt({ iconPlacement:
|
|
21
|
+
${wt({ iconPlacement: i, isClearable: !0, size: o, transparent: l, variant: x })};
|
|
22
22
|
${L};
|
|
23
23
|
|
|
24
24
|
br {
|
|
@@ -26,8 +26,8 @@ const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
|
26
26
|
}
|
|
27
27
|
`
|
|
28
28
|
), Ft = s.ul`
|
|
29
|
-
${
|
|
30
|
-
${
|
|
29
|
+
${n("defaultFields.select.default")};
|
|
30
|
+
${n("cards.default")};
|
|
31
31
|
position: absolute;
|
|
32
32
|
color: neutral-90;
|
|
33
33
|
z-index: 2;
|
|
@@ -40,18 +40,18 @@ const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
|
40
40
|
overflow: auto;
|
|
41
41
|
-webkit-overflow-scrolling: touch;
|
|
42
42
|
`, O = s.li(
|
|
43
|
-
({ isExisting:
|
|
43
|
+
({ isExisting: i, isHighlighted: o, isSelected: l }) => F`
|
|
44
44
|
color: beige-70;
|
|
45
|
-
${o &&
|
|
46
|
-
${l &&
|
|
47
|
-
${
|
|
48
|
-
${l && o &&
|
|
45
|
+
${o && n("defaultFields.select.highlighted")};
|
|
46
|
+
${l && n("defaultFields.select.selected")};
|
|
47
|
+
${i && n("defaultFields.select.existing")};
|
|
48
|
+
${l && o && n("defaultFields.select.selectedAndHighlighted")};
|
|
49
49
|
${L};
|
|
50
50
|
padding: sm;
|
|
51
51
|
list-style: none;
|
|
52
52
|
text-decoration: none;
|
|
53
53
|
font-size: sm;
|
|
54
|
-
transition: background ${
|
|
54
|
+
transition: background ${n.transition("medium")};
|
|
55
55
|
`
|
|
56
56
|
), vt = s.div`
|
|
57
57
|
position: absolute;
|
|
@@ -61,10 +61,10 @@ const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
|
61
61
|
right: 0;
|
|
62
62
|
display: flex;
|
|
63
63
|
`, Rt = s.buttonBox(
|
|
64
|
-
({ isOpen:
|
|
64
|
+
({ isOpen: i, size: o }) => F`
|
|
65
65
|
position: relative;
|
|
66
66
|
height: 100%;
|
|
67
|
-
width: ${
|
|
67
|
+
width: ${n(`defaultFields.sizes.${o}.height`)};
|
|
68
68
|
padding: 0;
|
|
69
69
|
outline: none !important; /* important for firefox */
|
|
70
70
|
appearance: none;
|
|
@@ -76,7 +76,7 @@ const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
|
76
76
|
justify-content: center;
|
|
77
77
|
|
|
78
78
|
${It} {
|
|
79
|
-
transform: ${
|
|
79
|
+
transform: ${i ? "rotate3d(0, 0, 1, 180deg)" : "rotate3d(0)"};
|
|
80
80
|
transition: medium;
|
|
81
81
|
}
|
|
82
82
|
|
|
@@ -86,7 +86,7 @@ const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
|
86
86
|
`
|
|
87
87
|
), V = "", kt = W.default || W, Ct = gt(
|
|
88
88
|
({
|
|
89
|
-
autoComplete:
|
|
89
|
+
autoComplete: i = "off",
|
|
90
90
|
autoFocus: o,
|
|
91
91
|
dataTestId: l,
|
|
92
92
|
disabled: x,
|
|
@@ -147,15 +147,15 @@ const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
|
147
147
|
getMenuProps: et,
|
|
148
148
|
getRootProps: ot,
|
|
149
149
|
highlightedIndex: M,
|
|
150
|
-
inputValue:
|
|
150
|
+
inputValue: nt,
|
|
151
151
|
isOpen: P,
|
|
152
|
-
selectedItem:
|
|
153
|
-
toggleMenu:
|
|
152
|
+
selectedItem: u,
|
|
153
|
+
toggleMenu: it
|
|
154
154
|
}) => {
|
|
155
155
|
const st = P && D.length > 0, lt = () => {
|
|
156
156
|
c([]), S(), t();
|
|
157
|
-
}, at = /* @__PURE__ */ e.jsx(Rt, { as: "div", size: b, children: /* @__PURE__ */ e.jsx(
|
|
158
|
-
autoComplete:
|
|
157
|
+
}, at = /* @__PURE__ */ e.jsx(Rt, { as: "div", size: b, children: /* @__PURE__ */ e.jsx(ht, { onClick: lt }) }), rt = p({
|
|
158
|
+
autoComplete: i,
|
|
159
159
|
autoFocus: o,
|
|
160
160
|
"data-testid": l,
|
|
161
161
|
disabled: x,
|
|
@@ -165,7 +165,7 @@ const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
|
165
165
|
onBlur: J,
|
|
166
166
|
onClick: K,
|
|
167
167
|
onFocus: (r) => {
|
|
168
|
-
w == null || w(r), B(""),
|
|
168
|
+
w == null || w(r), B(""), it();
|
|
169
169
|
},
|
|
170
170
|
placeholder: Q,
|
|
171
171
|
ref: X,
|
|
@@ -178,32 +178,34 @@ const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
|
178
178
|
return /* @__PURE__ */ e.jsxs(Y, { ...ot(I), children: [
|
|
179
179
|
/* @__PURE__ */ e.jsxs(St, { children: [
|
|
180
180
|
/* @__PURE__ */ e.jsx(yt, { ...rt }),
|
|
181
|
-
f
|
|
182
|
-
/* @__PURE__ */ e.jsx(vt, { children:
|
|
181
|
+
f ? /* @__PURE__ */ e.jsx(xt, { iconPlacement: "left", size: N, children: ct.cloneElement(f, { ...f.props, size: N }) }) : null,
|
|
182
|
+
/* @__PURE__ */ e.jsx(vt, { children: nt ? at : null })
|
|
183
183
|
] }),
|
|
184
|
-
st
|
|
185
|
-
(r, d,
|
|
184
|
+
st ? /* @__PURE__ */ e.jsx(Ft, { ...et(), children: D.reduce(
|
|
185
|
+
(r, d, h) => (Z ? r.itemsToRender.push(
|
|
186
186
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
187
187
|
// @ts-expect-error
|
|
188
|
-
/* @__PURE__ */ e.jsxs(
|
|
188
|
+
/* @__PURE__ */ e.jsxs(ut, { children: [
|
|
189
189
|
$ == null ? void 0 : $(d),
|
|
190
|
-
d.options
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
190
|
+
d.options ? d.options.map(
|
|
191
|
+
(y, dt) => {
|
|
192
|
+
const T = r.itemIndex++;
|
|
193
|
+
return /* @__PURE__ */ e.jsx(
|
|
194
|
+
O,
|
|
195
|
+
{
|
|
196
|
+
...z({
|
|
197
|
+
index: T,
|
|
198
|
+
isSelected: !!(u && a(u) === a(y)),
|
|
199
|
+
item: y
|
|
200
|
+
}),
|
|
201
|
+
isHighlighted: M === T,
|
|
202
|
+
children: R(y)
|
|
203
|
+
},
|
|
204
|
+
dt
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
) : null
|
|
208
|
+
] }, h)
|
|
207
209
|
) : r.itemsToRender.push(
|
|
208
210
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
209
211
|
// @ts-expect-error
|
|
@@ -211,18 +213,18 @@ const Y = s.divBox.withConfig({ shouldForwardProp: A })`
|
|
|
211
213
|
O,
|
|
212
214
|
{
|
|
213
215
|
...z({
|
|
214
|
-
index:
|
|
215
|
-
isSelected: !!(
|
|
216
|
+
index: h,
|
|
217
|
+
isSelected: !!(u && a(u) === a(d)),
|
|
216
218
|
item: d
|
|
217
219
|
}),
|
|
218
|
-
isHighlighted: M ===
|
|
220
|
+
isHighlighted: M === h,
|
|
219
221
|
children: R(d)
|
|
220
222
|
},
|
|
221
|
-
|
|
223
|
+
h
|
|
222
224
|
)
|
|
223
225
|
), r),
|
|
224
226
|
{ itemIndex: 0, itemsToRender: [] }
|
|
225
|
-
).itemsToRender })
|
|
227
|
+
).itemsToRender }) : null
|
|
226
228
|
] });
|
|
227
229
|
}
|
|
228
230
|
}
|
package/dist/Select.mjs
CHANGED
|
@@ -975,7 +975,7 @@ const re = "", we = (e) => {
|
|
|
975
975
|
) }), Be = /* @__PURE__ */ p.jsx(
|
|
976
976
|
Ee,
|
|
977
977
|
{
|
|
978
|
-
"data-testid": r
|
|
978
|
+
"data-testid": r ? `${r}-arrow-icon` : null,
|
|
979
979
|
disabled: s,
|
|
980
980
|
isOpen: j,
|
|
981
981
|
size: W,
|
|
@@ -1013,13 +1013,13 @@ const re = "", we = (e) => {
|
|
|
1013
1013
|
return /* @__PURE__ */ p.jsxs(ke, { ...Ye, disabled: s, children: [
|
|
1014
1014
|
/* @__PURE__ */ p.jsxs(xt, { children: [
|
|
1015
1015
|
m ? /* @__PURE__ */ p.jsx(ve, { as: "input", type: "text", ...ue }) : /* @__PURE__ */ p.jsx(ve, { ...ue, children: ae }),
|
|
1016
|
-
l
|
|
1016
|
+
l ? /* @__PURE__ */ p.jsx(Se, { iconPlacement: "left", size: de, children: Le.cloneElement(l, { ...l.props, size: de }) }) : null,
|
|
1017
1017
|
/* @__PURE__ */ p.jsxs(vt, { size: W, children: [
|
|
1018
|
-
Me
|
|
1018
|
+
Me ? Pe : null,
|
|
1019
1019
|
Be
|
|
1020
1020
|
] })
|
|
1021
1021
|
] }),
|
|
1022
|
-
We
|
|
1022
|
+
We ? /* @__PURE__ */ p.jsxs(yt, { ...N(), children: [
|
|
1023
1023
|
M.reduce(
|
|
1024
1024
|
(D, y, fe) => {
|
|
1025
1025
|
if (u && "options" in y)
|
|
@@ -1028,7 +1028,7 @@ const re = "", we = (e) => {
|
|
|
1028
1028
|
// @ts-ignore
|
|
1029
1029
|
/* @__PURE__ */ p.jsxs(Qe, { children: [
|
|
1030
1030
|
Y == null ? void 0 : Y(y),
|
|
1031
|
-
y.options
|
|
1031
|
+
y.options ? y.options.map((C) => {
|
|
1032
1032
|
const me = D.itemIndex++, he = J(C.value, w);
|
|
1033
1033
|
return /* @__PURE__ */ p.jsx(
|
|
1034
1034
|
q,
|
|
@@ -1046,7 +1046,7 @@ const re = "", we = (e) => {
|
|
|
1046
1046
|
},
|
|
1047
1047
|
C.value
|
|
1048
1048
|
);
|
|
1049
|
-
})
|
|
1049
|
+
}) : null
|
|
1050
1050
|
] }, y.label)
|
|
1051
1051
|
);
|
|
1052
1052
|
else if ("value" in y) {
|
|
@@ -1074,7 +1074,7 @@ const re = "", we = (e) => {
|
|
|
1074
1074
|
},
|
|
1075
1075
|
{ itemIndex: 0, itemsToRender: [] }
|
|
1076
1076
|
).itemsToRender,
|
|
1077
|
-
ce && E.length
|
|
1077
|
+
ce && E.length ? /* @__PURE__ */ p.jsx(
|
|
1078
1078
|
q,
|
|
1079
1079
|
{
|
|
1080
1080
|
isHighlighted: X === M.length,
|
|
@@ -1088,9 +1088,9 @@ const re = "", we = (e) => {
|
|
|
1088
1088
|
children: je(E)
|
|
1089
1089
|
},
|
|
1090
1090
|
"add"
|
|
1091
|
-
)
|
|
1092
|
-
] }),
|
|
1093
|
-
i
|
|
1091
|
+
) : null
|
|
1092
|
+
] }) : null,
|
|
1093
|
+
i ? Te(w, De) : null
|
|
1094
1094
|
] });
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
package/dist/Slider.mjs
CHANGED
|
@@ -309,7 +309,7 @@ const H = $`
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
}, [p]), /* @__PURE__ */ s.jsxs(m, { position: "relative", ref: J, w: "100%", children: [
|
|
312
|
-
v
|
|
312
|
+
v ? /* @__PURE__ */ s.jsx(ae, { as: "label", variant: "sm", children: v }) : null,
|
|
313
313
|
/* @__PURE__ */ s.jsxs(m, { alignItems: "center", display: "flex", gap: "sm", children: [
|
|
314
314
|
(b === "inline" || b === "fields") && (b === "fields" ? /* @__PURE__ */ s.jsx(
|
|
315
315
|
W,
|
|
@@ -348,10 +348,10 @@ const H = $`
|
|
|
348
348
|
}
|
|
349
349
|
) : /* @__PURE__ */ s.jsx(m, { children: i })),
|
|
350
350
|
/* @__PURE__ */ s.jsxs(m, { flexGrow: "1", position: "relative", children: [
|
|
351
|
-
R
|
|
351
|
+
R ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
352
352
|
/* @__PURE__ */ s.jsx(Y, { isVisible: A, ref: K, children: /* @__PURE__ */ s.jsx(Z, { children: u }) }),
|
|
353
353
|
/* @__PURE__ */ s.jsx(Y, { isVisible: O, ref: C, children: /* @__PURE__ */ s.jsx(Z, { children: d }) })
|
|
354
|
-
] }),
|
|
354
|
+
] }) : null,
|
|
355
355
|
/* @__PURE__ */ s.jsxs(m, { h: 20, pb: "sm", position: "relative", pt: "sm", w: "100%", children: [
|
|
356
356
|
/* @__PURE__ */ s.jsx(
|
|
357
357
|
re,
|
|
@@ -392,7 +392,7 @@ const H = $`
|
|
|
392
392
|
/* @__PURE__ */ s.jsx(pe, {}),
|
|
393
393
|
/* @__PURE__ */ s.jsx(me, { disabled: c, ref: k })
|
|
394
394
|
] }),
|
|
395
|
-
E
|
|
395
|
+
E ? /* @__PURE__ */ s.jsx(m, { h: 24, ml: 10, mr: 10, position: "relative", children: E.reduce((e, t) => e.includes(t) ? e : [...e, t], []).filter((e) => e >= i && e <= n).map((e, t) => /* @__PURE__ */ s.jsx(ue, { left: `${V(e)}%`, children: /* @__PURE__ */ s.jsx(de, { children: e }) }, `${e}-${t}`)) }) : null
|
|
396
396
|
] }),
|
|
397
397
|
(b === "inline" || b === "fields") && (b === "fields" ? /* @__PURE__ */ s.jsx(
|
|
398
398
|
W,
|
|
@@ -431,7 +431,7 @@ const H = $`
|
|
|
431
431
|
}
|
|
432
432
|
) : /* @__PURE__ */ s.jsx(m, { children: n }))
|
|
433
433
|
] }),
|
|
434
|
-
x
|
|
434
|
+
x ? /* @__PURE__ */ s.jsx(ee, { color: "neutral-50", mt: 0, children: x }) : null
|
|
435
435
|
] });
|
|
436
436
|
}
|
|
437
437
|
), be = 20, q = (o, c) => Math.round(o / c) * c, U = (o, c, x, v) => (o = q(o, v), o < c ? c : o > x ? x : o), fe = le(
|
|
@@ -483,7 +483,7 @@ const H = $`
|
|
|
483
483
|
}, [w, A]), F(() => {
|
|
484
484
|
!isNaN(p) && p !== w && p && (T(p), g(p));
|
|
485
485
|
}, [p]), /* @__PURE__ */ s.jsxs(m, { display: "flex", flexDirection: "column", position: "relative", ref: J, children: [
|
|
486
|
-
v
|
|
486
|
+
v ? /* @__PURE__ */ s.jsx(ae, { as: "label", variant: "sm", children: v }) : null,
|
|
487
487
|
/* @__PURE__ */ s.jsxs(m, { alignItems: "center", display: "flex", gap: "sm", children: [
|
|
488
488
|
(b === "inline" || b === "left-field") && (b === "left-field" ? /* @__PURE__ */ s.jsx(
|
|
489
489
|
W,
|
|
@@ -520,8 +520,8 @@ const H = $`
|
|
|
520
520
|
...G
|
|
521
521
|
}
|
|
522
522
|
),
|
|
523
|
-
R
|
|
524
|
-
E
|
|
523
|
+
R ? /* @__PURE__ */ s.jsx(Y, { isVisible: d, ref: M, children: /* @__PURE__ */ s.jsx(Z, { children: w }) }) : null,
|
|
524
|
+
E ? /* @__PURE__ */ s.jsx(m, { h: 24, ml: 10, mr: 10, mt: 5, position: "relative", children: E.reduce((r, f) => r.includes(f) ? r : [...r, f], []).filter((r) => r >= i && r <= n).map((r, f) => /* @__PURE__ */ s.jsx(ue, { left: `${A(r)}%`, children: /* @__PURE__ */ s.jsx(de, { children: r }) }, `${r}-${f}`)) }) : null
|
|
525
525
|
] }),
|
|
526
526
|
(b === "inline" || b === "right-field") && (b === "right-field" ? /* @__PURE__ */ s.jsx(
|
|
527
527
|
W,
|
|
@@ -539,7 +539,7 @@ const H = $`
|
|
|
539
539
|
}
|
|
540
540
|
) : /* @__PURE__ */ s.jsx(m, { children: n }))
|
|
541
541
|
] }),
|
|
542
|
-
x
|
|
542
|
+
x ? /* @__PURE__ */ s.jsx(ee, { color: "neutral-50", mt: 0, children: x }) : null
|
|
543
543
|
] });
|
|
544
544
|
}
|
|
545
545
|
);
|
package/dist/Swiper.mjs
CHANGED
|
@@ -394,7 +394,7 @@ const $t = /* @__PURE__ */ ft(bt), k = (r = 3, e, a) => {
|
|
|
394
394
|
at,
|
|
395
395
|
{
|
|
396
396
|
"aria-label": "Previous slide",
|
|
397
|
-
"data-testid": e
|
|
397
|
+
"data-testid": e ? `${e}-prev-button` : null,
|
|
398
398
|
disabled: !U,
|
|
399
399
|
left: 10,
|
|
400
400
|
onClick: _,
|
|
@@ -411,7 +411,7 @@ const $t = /* @__PURE__ */ ft(bt), k = (r = 3, e, a) => {
|
|
|
411
411
|
at,
|
|
412
412
|
{
|
|
413
413
|
"aria-label": "Next slide",
|
|
414
|
-
"data-testid": e
|
|
414
|
+
"data-testid": e ? `${e}-next-button` : null,
|
|
415
415
|
disabled: !q,
|
|
416
416
|
onClick: F,
|
|
417
417
|
position: "absolute",
|
|
@@ -428,7 +428,7 @@ const $t = /* @__PURE__ */ ft(bt), k = (r = 3, e, a) => {
|
|
|
428
428
|
yt,
|
|
429
429
|
{
|
|
430
430
|
className: "swiper-pagination",
|
|
431
|
-
"data-testid": e
|
|
431
|
+
"data-testid": e ? `${e}-pagination` : null,
|
|
432
432
|
role: "tablist",
|
|
433
433
|
withPagination: L,
|
|
434
434
|
children: m.length > 1 && m.map((l, s) => {
|
package/dist/TimePicker.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as p } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
3
3
|
import { useState as x, useEffect as j } from "react";
|
|
4
|
-
import { f as I, g as L, D as O, a as U, c as W, b as _ } from "./CustomPopper-
|
|
4
|
+
import { f as I, g as L, D as O, a as U, c as W, b as _ } from "./CustomPopper-B2Cqfph4.mjs";
|
|
5
5
|
import { forwardRef as $ } from "./System.mjs";
|
|
6
6
|
import q from "@xstyled/styled-components";
|
|
7
7
|
const G = q.div`
|
package/dist/Toast.mjs
CHANGED
|
@@ -171,7 +171,7 @@ const ot = x($)(
|
|
|
171
171
|
ref: n,
|
|
172
172
|
variant: o,
|
|
173
173
|
children: [
|
|
174
|
-
s
|
|
174
|
+
s ? /* @__PURE__ */ d.jsx(
|
|
175
175
|
M,
|
|
176
176
|
{
|
|
177
177
|
dataTestId: a,
|
|
@@ -180,7 +180,7 @@ const ot = x($)(
|
|
|
180
180
|
right: "sm",
|
|
181
181
|
top: "sm"
|
|
182
182
|
}
|
|
183
|
-
),
|
|
183
|
+
) : null,
|
|
184
184
|
/* @__PURE__ */ d.jsx($, { pr: "xl", children: t })
|
|
185
185
|
]
|
|
186
186
|
}
|
|
@@ -191,8 +191,8 @@ N.displayName = "Growl";
|
|
|
191
191
|
const G = D(
|
|
192
192
|
({ children: t, cta: e, hasCloseButton: s = !0, icon: i, onClose: r, variant: o = "default", ...n }, a) => /* @__PURE__ */ d.jsx(at, { icon: i, ref: a, variant: o, ...n, children: /* @__PURE__ */ d.jsxs($, { alignItems: "center", display: "flex", gap: "sm", children: [
|
|
193
193
|
t,
|
|
194
|
-
e
|
|
195
|
-
s
|
|
194
|
+
e ? /* @__PURE__ */ d.jsx(nt, { variant: o, children: e }) : null,
|
|
195
|
+
s ? /* @__PURE__ */ d.jsx(M, { onClick: r, size: "xs" }) : null
|
|
196
196
|
] }) })
|
|
197
197
|
), lt = D((t, e) => /* @__PURE__ */ d.jsx(_, { flexShrink: 0, ref: e, size: "xs", variant: "ghost", ...t }));
|
|
198
198
|
G.displayName = "Snackbar";
|
package/dist/Toggle.mjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { j as s } from "./jsx-runtime-B7I4PJ0H.mjs";
|
|
3
3
|
import { C as f, a as $ } from "./index-5HBq1O6Z.mjs";
|
|
4
4
|
import { shouldForwardProp as g, forwardRef as c } from "./System.mjs";
|
|
5
|
-
import r, { th as t, system as
|
|
6
|
-
const
|
|
5
|
+
import r, { th as t, system as u, css as i } from "@xstyled/styled-components";
|
|
6
|
+
const h = r(f).withConfig({ shouldForwardProp: g })(
|
|
7
7
|
({ order: e = "-1", size: o }) => i`
|
|
8
8
|
${t("toggles.item.default")};
|
|
9
9
|
${t(`toggles.item.sizes.${o}`)};
|
|
@@ -52,7 +52,7 @@ const u = r(f).withConfig({ shouldForwardProp: g })(
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
${
|
|
55
|
+
${u};
|
|
56
56
|
`
|
|
57
57
|
), x = r.divBox`
|
|
58
58
|
position: relative;
|
|
@@ -82,11 +82,11 @@ const u = r(f).withConfig({ shouldForwardProp: g })(
|
|
|
82
82
|
`}
|
|
83
83
|
`
|
|
84
84
|
), w = c(
|
|
85
|
-
({ checked: e, checkedIcon: o, onClick:
|
|
86
|
-
const m = o &&
|
|
87
|
-
return /* @__PURE__ */ s.jsxs(x, { onClick:
|
|
88
|
-
m
|
|
89
|
-
/* @__PURE__ */ s.jsx($, { ...d, checked: e, Component:
|
|
85
|
+
({ checked: e, checkedIcon: o, onClick: l, size: n = "xs", uncheckedIcon: a, ...d }, p) => {
|
|
86
|
+
const m = o && a;
|
|
87
|
+
return /* @__PURE__ */ s.jsxs(x, { onClick: l, children: [
|
|
88
|
+
m ? /* @__PURE__ */ s.jsx(b, { checked: e, onClick: l, size: n, children: e ? o : a }) : null,
|
|
89
|
+
/* @__PURE__ */ s.jsx($, { ...d, checked: e, Component: h, ref: p, size: n })
|
|
90
90
|
] });
|
|
91
91
|
}
|
|
92
92
|
);
|
package/dist/WuiProvider.mjs
CHANGED
|
@@ -463,7 +463,7 @@ const d = p(
|
|
|
463
463
|
theme: a,
|
|
464
464
|
useReset: s
|
|
465
465
|
}) => /* @__PURE__ */ r.jsx(m, { theme: a, children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
466
|
-
e
|
|
466
|
+
e ? /* @__PURE__ */ r.jsx(d, { useReset: s }) : null,
|
|
467
467
|
o ? /* @__PURE__ */ r.jsx(y, { reactRootId: n, children: t }) : t
|
|
468
468
|
] }) }), E = d;
|
|
469
469
|
F.displayName = "WuiProvider";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
export declare const AspectRatio: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, {
|
|
2
|
+
ratio: number;
|
|
3
|
+
}>> & string;
|
|
@@ -2,7 +2,7 @@ import { CSSObject } from '@xstyled/styled-components';
|
|
|
2
2
|
import { ThemeColorTokens, ThemeValues } from '../theme';
|
|
3
3
|
import { LiteralUnion } from '../utils';
|
|
4
4
|
export type AvatarColors = LiteralUnion<ThemeColorTokens>;
|
|
5
|
-
export type Size = '
|
|
5
|
+
export type Size = 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
6
6
|
export type ThemeAvatars = {
|
|
7
7
|
sizes: Record<Size, string>;
|
|
8
8
|
text: CSSObject;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSObject } from '@xstyled/styled-components';
|
|
2
2
|
import { ThemeValues } from '../theme';
|
|
3
3
|
import { ThemeFocus } from '../../theme/focus';
|
|
4
|
-
export type Size = '
|
|
4
|
+
export type Size = 'xs' | 'sm' | 'md' | 'lg';
|
|
5
5
|
export type ThemeButtons = Record<'active', Record<'ai' | 'danger' | Variant, CommonAttributesButton>> & Record<'ai' | 'danger' | Variant, CommonAttributesButton> & Record<'disabled', {
|
|
6
6
|
'&:focus': ReturnType<ThemeFocus>;
|
|
7
7
|
} & CommonAttributesButton> & Record<'focus', Record<'ai' | 'danger' | Variant, unknown>> & Record<'hover', Record<'ai' | 'danger' | Variant, CommonAttributesButton>> & Record<'icon', Record<Icon, Record<Size, string>>> & Record<'sizes', Record<Size, SizeAttributesButton>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
2
|
import { Button, ButtonProps } from '../Button';
|
|
3
3
|
import { CreateWuiProps } from '../System';
|
|
4
4
|
export interface ButtonGroupOptions {
|
|
@@ -10,6 +10,6 @@ export interface ButtonGroupOptions {
|
|
|
10
10
|
}
|
|
11
11
|
export type ButtonGroupProps = CreateWuiProps<'div', ButtonGroupOptions>;
|
|
12
12
|
type ChildrenProps = ChildType | ChildType[];
|
|
13
|
-
type ChildType = boolean | null |
|
|
13
|
+
type ChildType = boolean | null | ReactElement<typeof Button> | undefined;
|
|
14
14
|
export declare const ButtonGroup: import('../System').CreateWuiComponent<"div", ButtonGroupProps>;
|
|
15
15
|
export {};
|
|
@@ -2,6 +2,6 @@ import { ThemeValues } from '../theme';
|
|
|
2
2
|
import { LiteralUnion } from '../utils';
|
|
3
3
|
export type Size = LiteralUnion<IconSize, number | string>;
|
|
4
4
|
export type ThemeIcons = Record<IconSize, string>;
|
|
5
|
-
type IconSize = '
|
|
5
|
+
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
6
6
|
export declare const getIcons: ({ toRem }: ThemeValues) => ThemeIcons;
|
|
7
7
|
export {};
|
|
@@ -2,6 +2,6 @@ import { ThemeValues } from '../theme';
|
|
|
2
2
|
import { LiteralUnion } from '../utils';
|
|
3
3
|
export type Size = LiteralUnion<LoaderSize, number | string>;
|
|
4
4
|
export type ThemeLoaders = Record<LoaderSize, string>;
|
|
5
|
-
type LoaderSize = '
|
|
5
|
+
type LoaderSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
6
6
|
export declare const getLoaders: ({ toRem }: ThemeValues) => ThemeLoaders;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from '@xstyled/styled-components';
|
|
2
2
|
import { ThemeValues } from '../theme';
|
|
3
|
-
export type Size = 'auto' | '
|
|
3
|
+
export type Size = 'auto' | 'xs' | 'sm' | 'md' | 'lg';
|
|
4
4
|
export type ThemeModals = {
|
|
5
5
|
backdrop: CSSObject;
|
|
6
6
|
body: CSSObject;
|
|
@@ -41,7 +41,7 @@ export declare const useSwiper: (options?: UseSwiperProps) => {
|
|
|
41
41
|
firstSlideToShow: number;
|
|
42
42
|
fullWidth: boolean;
|
|
43
43
|
id: string;
|
|
44
|
-
navigationSize: "
|
|
44
|
+
navigationSize: "sm" | "md" | "xs" | "lg";
|
|
45
45
|
ref: import('react').MutableRefObject<HTMLUListElement | null>;
|
|
46
46
|
setCurrentPage: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
47
47
|
setShowLeftArrow: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
@@ -16,7 +16,7 @@ export declare const Arrow: import('styled-components/dist/types').IStyledCompon
|
|
|
16
16
|
firstSlideToShow: number;
|
|
17
17
|
fullWidth: boolean;
|
|
18
18
|
id: string;
|
|
19
|
-
navigationSize: "
|
|
19
|
+
navigationSize: "sm" | "md" | "xs" | "lg";
|
|
20
20
|
ref: import('react').MutableRefObject<HTMLUListElement | null>;
|
|
21
21
|
setCurrentPage: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
22
22
|
setShowLeftArrow: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
@@ -49,7 +49,7 @@ export declare const Pagination: import('styled-components/dist/types').IStyledC
|
|
|
49
49
|
firstSlideToShow: number;
|
|
50
50
|
fullWidth: boolean;
|
|
51
51
|
id: string;
|
|
52
|
-
navigationSize: "
|
|
52
|
+
navigationSize: "sm" | "md" | "xs" | "lg";
|
|
53
53
|
ref: import('react').MutableRefObject<HTMLUListElement | null>;
|
|
54
54
|
setCurrentPage: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
55
55
|
setShowLeftArrow: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
@@ -84,7 +84,7 @@ export declare const Bullet: import('styled-components/dist/types').IStyledCompo
|
|
|
84
84
|
firstSlideToShow: number;
|
|
85
85
|
fullWidth: boolean;
|
|
86
86
|
id: string;
|
|
87
|
-
navigationSize: "
|
|
87
|
+
navigationSize: "sm" | "md" | "xs" | "lg";
|
|
88
88
|
ref: import('react').MutableRefObject<HTMLUListElement | null>;
|
|
89
89
|
setCurrentPage: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
90
90
|
setShowLeftArrow: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
@@ -117,7 +117,7 @@ export declare const Container: import('styled-components/dist/types').IStyledCo
|
|
|
117
117
|
firstSlideToShow: number;
|
|
118
118
|
fullWidth: boolean;
|
|
119
119
|
id: string;
|
|
120
|
-
navigationSize: "
|
|
120
|
+
navigationSize: "sm" | "md" | "xs" | "lg";
|
|
121
121
|
ref: import('react').MutableRefObject<HTMLUListElement | null>;
|
|
122
122
|
setCurrentPage: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
123
123
|
setShowLeftArrow: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSObject } from '@xstyled/styled-components';
|
|
2
2
|
import { ThemeValues } from '../theme';
|
|
3
3
|
import { ThemeSecondaryColors } from '../../theme/colors';
|
|
4
|
-
export type Size = '
|
|
4
|
+
export type Size = 'xs' | 'sm' | 'md';
|
|
5
5
|
export type ThemeTags = {
|
|
6
6
|
default: CSSObject;
|
|
7
7
|
hover: Record<Variant, CSSObject>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from '@xstyled/styled-components';
|
|
2
2
|
import { ThemeValues } from '../theme';
|
|
3
|
-
export type Size = '
|
|
3
|
+
export type Size = 'xs' | 'sm' | 'md';
|
|
4
4
|
export type ThemeToggles = {
|
|
5
5
|
after: Record<'sizes' | State, CSSObject>;
|
|
6
6
|
icon: Record<'position' | 'sizes', CSSObject>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from '@xstyled/styled-components';
|
|
2
2
|
import { ThemeValues } from '../theme';
|
|
3
|
-
export type Size = '
|
|
3
|
+
export type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
4
4
|
export type ThemeVariantIcon = Record<Variant, CSSObject>;
|
|
5
5
|
export type Variant = 'ai' | 'danger' | 'default' | 'info' | 'success' | 'warning';
|
|
6
6
|
export declare const getVariantIcon: (theme: ThemeValues) => ThemeVariantIcon;
|