welcome-ui 10.0.0-alpha.1 → 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/README.md +1 -1
- package/dist/2W3RN7C5-DMC82gDP.js +61 -0
- package/dist/4I4MLMKD-BO6Lcy7s.js +150 -0
- package/dist/Accordion.js +20 -18
- package/dist/Alert.css +1 -1
- package/dist/Alert.js +93 -87
- package/dist/AspectRatio.js +2 -1
- package/dist/Avatar.js +14 -12
- package/dist/{B7UTNDHN-BlIblHCu.js → B7UTNDHN-BghjolIs.js} +30 -30
- package/dist/Badge.js +2 -1
- package/dist/Breadcrumb.css +1 -1
- package/dist/Breadcrumb.js +175 -154
- package/dist/Button.css +1 -1
- package/dist/Button.js +43 -41
- package/dist/ButtonGroup.js +7 -5
- package/dist/Card.css +1 -1
- package/dist/Card.js +68 -15
- package/dist/Checkbox.js +32 -30
- package/dist/CloseButton.css +1 -1
- package/dist/CloseButton.js +15 -13
- package/dist/{CustomPopper-vwbOQq72.js → CustomPopper-C1wIDHbM.js} +5 -4
- package/dist/{DSAASPLT-BaaCUKsb.js → DSAASPLT-Fx1kuAsk.js} +3 -3
- package/dist/DatePicker.js +96 -91
- package/dist/DateTimePicker.js +21 -20
- package/dist/Drawer.js +141 -96
- package/dist/DropdownMenu.css +1 -1
- package/dist/DropdownMenu.js +902 -462
- package/dist/Field.css +1 -1
- package/dist/Field.js +50 -50
- package/dist/FieldGroup.js +9 -7
- package/dist/FileDrop.css +1 -1
- package/dist/FileDrop.js +433 -398
- package/dist/FileUpload.js +44 -41
- package/dist/GVVKDT6A-CF9ejW_c.js +619 -0
- package/dist/Hint.js +10 -8
- package/dist/Icon.css +1 -1
- package/dist/Icon.js +36 -22
- package/dist/InputText.css +1 -1
- package/dist/InputText.js +59 -57
- package/dist/{KPUWHTQJ-D2TPji47.js → KPUWHTQJ-Dv3cAqjP.js} +33 -31
- package/dist/Label.js +9 -7
- package/dist/Link.css +1 -1
- package/dist/Link.js +54 -49
- package/dist/Loader.js +13 -11
- package/dist/Logo.js +21 -13
- package/dist/Modal.js +153 -113
- package/dist/{NI3IVY7K-Ztb3-XAv.js → NI3IVY7K-Dy240mkD.js} +53 -53
- package/dist/{NMGNQVTG-C6TqBngP.js → NMGNQVTG-DRO2uXZT.js} +8 -8
- package/dist/{OE2EFRVA-C3721cM3.js → OE2EFRVA-Dg1R6gaC.js} +186 -170
- package/dist/{OLVWQA7U-DysaSaZj.js → OLVWQA7U-Dia3UUnG.js} +51 -51
- package/dist/Pagination.css +1 -1
- package/dist/Pagination.js +157 -76
- package/dist/PasswordInput.js +20 -17
- package/dist/Popover.js +89 -72
- package/dist/{RTNCFSKZ-qpPg689E.js → RTNCFSKZ-BywELldk.js} +47 -47
- package/dist/Radio.css +1 -1
- package/dist/Radio.js +39 -40
- package/dist/RadioGroup.js +29 -27
- package/dist/RadioTab.js +3 -2
- package/dist/{SBSPVDDI-DJKkC1eb.js → SBSPVDDI-CmtnvvUX.js} +42 -42
- package/dist/SQZLCNLX-Dg4KKdNJ.js +83 -0
- package/dist/Search.css +1 -1
- package/dist/Search.js +136 -129
- package/dist/Select.css +1 -1
- package/dist/Select.js +259 -257
- package/dist/Slider.js +67 -62
- package/dist/Stepper.js +34 -27
- package/dist/StickyNote.css +1 -0
- package/dist/StickyNote.js +49 -0
- package/dist/Swiper.js +53 -51
- package/dist/{T22PY7TE-C1N0q8Kn.js → T22PY7TE-gLuJpoOm.js} +46 -46
- package/dist/Table.js +34 -21
- package/dist/Tabs.js +165 -156
- package/dist/Tag.css +1 -1
- package/dist/Tag.js +67 -62
- package/dist/Text.js +5 -3
- package/dist/Textarea.css +1 -1
- package/dist/Textarea.js +26 -17
- package/dist/TimePicker.js +53 -51
- package/dist/Toast.css +1 -1
- package/dist/Toast.js +275 -165
- package/dist/Toggle.js +17 -15
- package/dist/Tooltip.css +1 -1
- package/dist/Tooltip.js +120 -129
- package/dist/VariantIcon.js +8 -6
- package/dist/VisuallyHidden.js +9 -7
- package/dist/WelcomeLoader.js +4 -3
- package/dist/XCKGTAUF-CJwwVibW.js +25 -0
- package/dist/{Y67KZUMI-DFEgrUv2.js → Y67KZUMI-BwLWwpNF.js} +5 -5
- package/dist/{ZTXFEM5L-CkrIQCN1.js → ZTXFEM5L-WGHY_jqg.js} +3 -3
- package/dist/{downshift.esm-D_6pHXkq.js → downshift.esm-xtYanIDi.js} +1 -1
- package/dist/scss/breakpoints.scss +9 -0
- package/dist/scss/text-ellipsis.scss +5 -0
- package/dist/scss/texts.scss +108 -0
- package/dist/theme.css +1 -1
- package/dist/theme.js +1 -0
- package/dist/{tslib.es6-DpB4Y59c.js → tslib.es6-C80jYMbM.js} +1 -1
- package/dist/types/components/Alert/components/Buttons.d.ts +3 -0
- package/dist/types/components/Alert/components/Title.d.ts +5 -0
- package/dist/types/components/Alert/index.d.ts +7 -3
- package/dist/types/components/Alert/types.d.ts +3 -9
- package/dist/types/components/Breadcrumb/Item.d.ts +2 -2
- package/dist/types/components/Breadcrumb/index.d.ts +1 -1
- package/dist/types/components/Breadcrumb/types.d.ts +6 -3
- 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/AssetDrawer/types.d.ts +3 -0
- package/dist/types/components/Drawer/components/Backdrop.d.ts +1 -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 +13 -4
- 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/FileDrop/types.d.ts +2 -0
- package/dist/types/components/Icon/icons.d.ts +6 -6
- package/dist/types/components/Icon/types.d.ts +2 -0
- 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/components/Content.d.ts +1 -1
- package/dist/types/components/Modal/index.d.ts +17 -5
- package/dist/types/components/Modal/types.d.ts +1 -1
- package/dist/types/components/Pagination/types.d.ts +11 -0
- 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/Radio/types.d.ts +1 -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 +5 -0
- package/dist/types/components/StickyNote/components/Title.d.ts +5 -0
- package/dist/types/components/StickyNote/index.d.ts +11 -0
- package/dist/types/components/StickyNote/index.test.d.ts +1 -0
- package/dist/types/components/StickyNote/types.d.ts +15 -0
- 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/components/Growl.d.ts +2 -0
- package/dist/types/components/Toast/index.d.ts +8 -2
- package/dist/types/components/Toast/types.d.ts +8 -9
- package/dist/types/components/Tooltip/types.d.ts +1 -1
- package/dist/types/theme/types.d.ts +255 -218
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/{utils-DileZjMm.js → utils-BD597oo6.js} +1 -1
- package/dist/utils.js +3 -2
- package/package.json +3 -2
- package/dist/2W3RN7C5-bkX-rIa3.js +0 -61
- package/dist/4I4MLMKD-BLxAidnq.js +0 -43
- package/dist/GVVKDT6A-bET6V7Py.js +0 -724
- package/dist/SQZLCNLX-CHDXnZ16.js +0 -82
- package/dist/XCKGTAUF-DkxWCbaW.js +0 -25
- package/dist/index.css +0 -0
- package/dist/types/components/Icon/Icon.d.ts +0 -2
- package/dist/types/utils/theme/index.d.ts +0 -0
- /package/dist/{index-CdiHdiVB.js → index-PAaZGbyz.js} +0 -0
- /package/dist/types/components/Icon/{Icon.test.d.ts → index.test.d.ts} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t as ee, c as
|
|
2
|
+
import { z as S, A as R, V as Q, B as L, s as X, g as Z, C as p } from "./OE2EFRVA-Dg1R6gaC.js";
|
|
3
|
+
import { t as ee, c as z, s as M, i as te, f as U, a as h, d as ne } from "./RTNCFSKZ-BywELldk.js";
|
|
4
4
|
function re(t) {
|
|
5
5
|
const i = [];
|
|
6
6
|
for (const e of t)
|
|
7
7
|
i.push(...e);
|
|
8
8
|
return i;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function $(t) {
|
|
11
11
|
return t.slice().reverse();
|
|
12
12
|
}
|
|
13
13
|
function ie(t) {
|
|
@@ -35,16 +35,16 @@ function oe(t = {}) {
|
|
|
35
35
|
), s = new Map(o.map((r) => [r.id, r])), a = {
|
|
36
36
|
items: o,
|
|
37
37
|
renderedItems: S(e == null ? void 0 : e.renderedItems, [])
|
|
38
|
-
}, d = se(t.store), u =
|
|
38
|
+
}, d = se(t.store), u = z(
|
|
39
39
|
{ items: o, renderedItems: a.renderedItems },
|
|
40
40
|
d
|
|
41
|
-
), n =
|
|
41
|
+
), n = z(a, t.store), b = (r) => {
|
|
42
42
|
const l = X(r, (c) => c.element);
|
|
43
43
|
u.setState("renderedItems", l), n.setState("renderedItems", l);
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
M(n, () => te(u)), M(u, () => U(u, ["items"], (r) => {
|
|
46
46
|
n.setState("items", r.items);
|
|
47
|
-
})),
|
|
47
|
+
})), M(u, () => U(u, ["renderedItems"], (r) => {
|
|
48
48
|
let l = !0, c = requestAnimationFrame(() => {
|
|
49
49
|
const { renderedItems: m } = n.getState();
|
|
50
50
|
r.renderedItems !== m && b(r.renderedItems);
|
|
@@ -90,7 +90,7 @@ function oe(t = {}) {
|
|
|
90
90
|
(l) => u.setState("items", l),
|
|
91
91
|
!0
|
|
92
92
|
);
|
|
93
|
-
return
|
|
93
|
+
return R(L({}, n), {
|
|
94
94
|
registerItem: P,
|
|
95
95
|
renderItem: (r) => Q(
|
|
96
96
|
P(r),
|
|
@@ -122,7 +122,7 @@ function _(t, i) {
|
|
|
122
122
|
function de(t, i) {
|
|
123
123
|
return t.filter((e) => i ? !e.disabled && e.id !== i : !e.disabled);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function G(t, i) {
|
|
126
126
|
return t.filter((e) => e.rowId === i);
|
|
127
127
|
}
|
|
128
128
|
function ce(t, i, e = !1) {
|
|
@@ -133,7 +133,7 @@ function ce(t, i, e = !1) {
|
|
|
133
133
|
...t.slice(0, o)
|
|
134
134
|
];
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Y(t) {
|
|
137
137
|
const i = [];
|
|
138
138
|
for (const e of t) {
|
|
139
139
|
const o = i.find((s) => {
|
|
@@ -144,7 +144,7 @@ function H(t) {
|
|
|
144
144
|
}
|
|
145
145
|
return i;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function j(t) {
|
|
148
148
|
let i = 0;
|
|
149
149
|
for (const { length: e } of t)
|
|
150
150
|
e > i && (i = e);
|
|
@@ -158,7 +158,7 @@ function ue(t) {
|
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
function fe(t, i, e) {
|
|
161
|
-
const o =
|
|
161
|
+
const o = j(t);
|
|
162
162
|
for (const s of t)
|
|
163
163
|
for (let a = 0; a < o; a += 1) {
|
|
164
164
|
const d = s[a];
|
|
@@ -170,11 +170,11 @@ function fe(t, i, e) {
|
|
|
170
170
|
return t;
|
|
171
171
|
}
|
|
172
172
|
function me(t) {
|
|
173
|
-
const i =
|
|
173
|
+
const i = Y(t), e = j(i), o = [];
|
|
174
174
|
for (let s = 0; s < e; s += 1)
|
|
175
175
|
for (const a of i) {
|
|
176
176
|
const d = a[s];
|
|
177
|
-
d && o.push(
|
|
177
|
+
d && o.push(R(L({}, d), {
|
|
178
178
|
// If there's no rowId, it means that it's not a grid composite, but
|
|
179
179
|
// a single row instead. So, instead of verticalizing it, that is,
|
|
180
180
|
// assigning a different rowId based on the column index, we keep it
|
|
@@ -191,7 +191,7 @@ function Se(t = {}) {
|
|
|
191
191
|
t.activeId,
|
|
192
192
|
e == null ? void 0 : e.activeId,
|
|
193
193
|
t.defaultActiveId
|
|
194
|
-
), a =
|
|
194
|
+
), a = R(L({}, o.getState()), {
|
|
195
195
|
id: S(
|
|
196
196
|
t.id,
|
|
197
197
|
e == null ? void 0 : e.id,
|
|
@@ -219,8 +219,8 @@ function Se(t = {}) {
|
|
|
219
219
|
focusLoop: S(t.focusLoop, e == null ? void 0 : e.focusLoop, !1),
|
|
220
220
|
focusWrap: S(t.focusWrap, e == null ? void 0 : e.focusWrap, !1),
|
|
221
221
|
focusShift: S(t.focusShift, e == null ? void 0 : e.focusShift, !1)
|
|
222
|
-
}), d =
|
|
223
|
-
|
|
222
|
+
}), d = z(a, o, t.store);
|
|
223
|
+
M(
|
|
224
224
|
d,
|
|
225
225
|
() => ne(d, ["renderedItems", "activeId"], (n) => {
|
|
226
226
|
d.setState("activeId", (b) => {
|
|
@@ -240,27 +240,27 @@ function Se(t = {}) {
|
|
|
240
240
|
includesBaseElement: m = r.includesBaseElement,
|
|
241
241
|
renderedItems: w = r.renderedItems,
|
|
242
242
|
rtl: x = r.rtl
|
|
243
|
-
} = b, y = n === "up" || n === "down",
|
|
243
|
+
} = b, y = n === "up" || n === "down", O = n === "next" || n === "down", H = O ? x && !y : !x || y, J = g && !l;
|
|
244
244
|
let v = y ? re(
|
|
245
|
-
fe(
|
|
245
|
+
fe(Y(w), c, J)
|
|
246
246
|
) : w;
|
|
247
|
-
if (v =
|
|
247
|
+
if (v = H ? $(v) : v, v = y ? me(v) : v, c == null)
|
|
248
248
|
return (E = _(v)) == null ? void 0 : E.id;
|
|
249
|
-
const
|
|
250
|
-
if (!
|
|
249
|
+
const C = v.find((I) => I.id === c);
|
|
250
|
+
if (!C)
|
|
251
251
|
return (P = _(v)) == null ? void 0 : P.id;
|
|
252
|
-
const D = v.some((I) => I.rowId),
|
|
252
|
+
const D = v.some((I) => I.rowId), K = v.indexOf(C), N = v.slice(K + 1), W = G(N, C.rowId);
|
|
253
253
|
if (l) {
|
|
254
254
|
const I = de(W, c), B = I.slice(l)[0] || // If we can't find an item, just return the last one.
|
|
255
255
|
I[I.length - 1];
|
|
256
256
|
return B == null ? void 0 : B.id;
|
|
257
257
|
}
|
|
258
|
-
const
|
|
259
|
-
if (
|
|
260
|
-
const I =
|
|
258
|
+
const V = F && (y ? F !== "horizontal" : F !== "vertical"), T = D && f && (y ? f !== "horizontal" : f !== "vertical"), A = O ? (!D || y) && V && m : y ? m : !1;
|
|
259
|
+
if (V) {
|
|
260
|
+
const I = T && !A ? v : G(v, C.rowId), B = ce(I, c, A), q = _(B, c);
|
|
261
261
|
return q == null ? void 0 : q.id;
|
|
262
262
|
}
|
|
263
|
-
if (
|
|
263
|
+
if (T) {
|
|
264
264
|
const I = _(
|
|
265
265
|
// We can use nextItems, which contains all the next items, including
|
|
266
266
|
// items from other rows, to wrap between rows. However, if there is a
|
|
@@ -276,7 +276,7 @@ function Se(t = {}) {
|
|
|
276
276
|
const k = _(W, c);
|
|
277
277
|
return !k && A ? null : k == null ? void 0 : k.id;
|
|
278
278
|
};
|
|
279
|
-
return
|
|
279
|
+
return R(L(L({}, o), d), {
|
|
280
280
|
setBaseElement: (n) => d.setState("baseElement", n),
|
|
281
281
|
setActiveId: (n) => d.setState("activeId", n),
|
|
282
282
|
move: (n) => {
|
|
@@ -288,7 +288,7 @@ function Se(t = {}) {
|
|
|
288
288
|
},
|
|
289
289
|
last: () => {
|
|
290
290
|
var n;
|
|
291
|
-
return (n = _(
|
|
291
|
+
return (n = _($(d.getState().renderedItems))) == null ? void 0 : n.id;
|
|
292
292
|
},
|
|
293
293
|
next: (n) => (n !== void 0 && typeof n == "number" && (n = { skip: n }), u("next", n)),
|
|
294
294
|
previous: (n) => (n !== void 0 && typeof n == "number" && (n = { skip: n }), u("previous", n)),
|
|
@@ -303,6 +303,6 @@ export {
|
|
|
303
303
|
oe as a,
|
|
304
304
|
Se as c,
|
|
305
305
|
re as f,
|
|
306
|
-
|
|
306
|
+
$ as r,
|
|
307
307
|
ge as u
|
|
308
308
|
};
|
package/dist/Badge.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import './Badge.css';
|
|
2
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
4
|
import { forwardRef as g } from "react";
|
|
4
5
|
import { Text as d } from "./Text.js";
|
|
5
|
-
import { c as b } from "./index-
|
|
6
|
+
import { c as b } from "./index-PAaZGbyz.js";
|
|
6
7
|
const c = "_root_1pr8g_2", p = {
|
|
7
8
|
root: c,
|
|
8
9
|
"size-lg": "_size-lg_1pr8g_18",
|
package/dist/Breadcrumb.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer components{.
|
|
1
|
+
@layer components{._root_13qa2_2{position:relative;overflow-x:hidden;font-size:var(--font-size-14);font-weight:var(--font-weight-regular);letter-spacing:0;line-height:var(--font-line-height-md);font-family:var(--font-family-body);--breadcrumbItemGap: var(--spacing-xs)}._list_13qa2_12{display:inline-flex;align-items:center;max-width:100%;overflow-x:auto;margin:0;padding:var(--spacing-sm) 0;list-style:none;white-space:nowrap;gap:var(--breadcrumbItemGap)}._start-gradient_13qa2_23{left:0;transform-origin:left}._end-gradient_13qa2_27{right:0;transform-origin:right}._start-gradient_13qa2_23,._end-gradient_13qa2_27{position:absolute;bottom:0;top:0;width:var(--size-icon-xl)}._item-wrapper_13qa2_38{display:inline-flex;flex:0 0 auto;gap:var(--breadcrumbItemGap)}._item-content_13qa2_43{color:var(--breadcrumbItemColor, var(--components-colors-breadcrumb-color-text-default));text-decoration:none;display:inline-flex;align-items:center;gap:var(--breadcrumbItemGap);transition:var(--duration-medium);direction:initial}._item-content_13qa2_43:hover{--breadcrumbItemColor: var(--components-colors-breadcrumb-color-text-hover)}._item-content_13qa2_43[aria-current=page]{--breadcrumbItemColor: var(--components-colors-breadcrumb-color-text-active);font-weight:var(--font-weight-medium)}._item-content_13qa2_43[aria-disabled=true]{pointer-events:none;cursor:default}._item-separator_13qa2_63{color:var(--components-colors-breadcrumb-color-icon-default);display:flex;align-items:center}}
|