welcome-ui 9.0.0-alpha.2 → 9.0.0

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.
Files changed (111) hide show
  1. package/README.md +47 -3
  2. package/dist/2W3RN7C5-bkX-rIa3.js +61 -0
  3. package/dist/4I4MLMKD-BLxAidnq.js +43 -0
  4. package/dist/Accordion.js +6 -6
  5. package/dist/Alert.js +1 -1
  6. package/dist/AspectRatio.js +1 -1
  7. package/dist/Avatar.js +1 -1
  8. package/dist/{4CMBR7SL-Dhp8uJop.js → B7UTNDHN-BlIblHCu.js} +59 -59
  9. package/dist/Badge.js +1 -1
  10. package/dist/Breadcrumb.css +1 -1
  11. package/dist/Breadcrumb.js +27 -27
  12. package/dist/Button.js +2 -2
  13. package/dist/ButtonGroup.js +1 -1
  14. package/dist/Card.js +1 -1
  15. package/dist/Checkbox.css +1 -1
  16. package/dist/Checkbox.js +22 -22
  17. package/dist/CloseButton.js +3 -3
  18. package/dist/{SYRFVSLH-CHNUB1rW.js → DSAASPLT-BaaCUKsb.js} +7 -7
  19. package/dist/DatePicker.js +5 -5
  20. package/dist/DateTimePicker.js +2 -2
  21. package/dist/Drawer.css +1 -1
  22. package/dist/Drawer.js +67 -67
  23. package/dist/DropdownMenu.js +261 -259
  24. package/dist/Field.js +1 -1
  25. package/dist/FieldGroup.js +1 -1
  26. package/dist/FileDrop.js +194 -221
  27. package/dist/FileUpload.js +2 -2
  28. package/dist/GVVKDT6A-bET6V7Py.js +724 -0
  29. package/dist/Hint.js +1 -1
  30. package/dist/{Icon-BisRi8B3.js → Icon-EG7O4YwD.js} +1 -1
  31. package/dist/Icon.js +12 -12
  32. package/dist/InputText.js +1 -1
  33. package/dist/{ASMQKSDT-SH1qSiMi.js → KPUWHTQJ-D2TPji47.js} +30 -30
  34. package/dist/Label.js +3 -3
  35. package/dist/Link.css +1 -1
  36. package/dist/Link.js +27 -27
  37. package/dist/Loader.js +1 -1
  38. package/dist/Logo.js +1 -1
  39. package/dist/Modal.js +10 -10
  40. package/dist/{JC64G2H7-DPy9R0De.js → NI3IVY7K-Ztb3-XAv.js} +571 -571
  41. package/dist/{P4IRICAX-7kH4HzWI.js → NMGNQVTG-C6TqBngP.js} +5 -5
  42. package/dist/{LVA2YJMS-NUHCRwFZ.js → OE2EFRVA-C3721cM3.js} +316 -315
  43. package/dist/{ITI7HKP4-C5xLpoVY.js → OLVWQA7U-DysaSaZj.js} +59 -59
  44. package/dist/Pagination.css +1 -1
  45. package/dist/Pagination.js +81 -73
  46. package/dist/PasswordInput.js +17 -18
  47. package/dist/Popover.js +14 -14
  48. package/dist/{YV4JVR4I-CVFstk2K.js → RTNCFSKZ-qpPg689E.js} +75 -73
  49. package/dist/Radio.css +1 -1
  50. package/dist/Radio.js +29 -29
  51. package/dist/RadioGroup.js +21 -21
  52. package/dist/RadioTab.js +2 -2
  53. package/dist/{P2CTZE2T-D1TepwxQ.js → SBSPVDDI-DJKkC1eb.js} +43 -43
  54. package/dist/{NLEBE274-B4zy25kL.js → SQZLCNLX-CHDXnZ16.js} +16 -16
  55. package/dist/Search.js +2 -2
  56. package/dist/Select.js +170 -181
  57. package/dist/Slider.js +1 -1
  58. package/dist/Swiper.css +1 -1
  59. package/dist/Swiper.js +151 -151
  60. package/dist/{VGCJ63VH-CVhs4PYt.js → T22PY7TE-C1N0q8Kn.js} +109 -109
  61. package/dist/Table.js +1 -1
  62. package/dist/Tabs.js +303 -308
  63. package/dist/Tag.js +3 -3
  64. package/dist/Text.js +1 -1
  65. package/dist/Textarea.js +1 -1
  66. package/dist/TimePicker.js +2 -2
  67. package/dist/Toast.js +1 -1
  68. package/dist/Toggle.js +2 -2
  69. package/dist/Tooltip.js +72 -72
  70. package/dist/VariantIcon.js +3 -3
  71. package/dist/WelcomeLoader.js +1 -1
  72. package/dist/XCKGTAUF-DkxWCbaW.js +25 -0
  73. package/dist/Y67KZUMI-DFEgrUv2.js +15 -0
  74. package/dist/{AXB53BZF-BHeessqV.js → ZTXFEM5L-CkrIQCN1.js} +7 -7
  75. package/dist/{field-icon-size-Du58qHNC.js → field-icon-size-Z5NulTSk.js} +216 -224
  76. package/dist/{index-5rXezknO.js → index-BC2bF45u.js} +1 -1
  77. package/dist/{index-C8GsqBDe.js → index-BeetbagJ.js} +1 -1
  78. package/dist/{index-BJLXLdM3.js → index-Bt79XJ8R.js} +1 -1
  79. package/dist/{index-Dcq5gh3E.js → index-BtwrJ6N4.js} +1 -1
  80. package/dist/{index-DL4-ut3P.js → index-CCASZBtz.js} +1 -1
  81. package/dist/{index-lbUBMgHp.js → index-CPqDZeah.js} +2 -2
  82. package/dist/{index-CTgip19b.js → index-CQEPCbEE.js} +1 -1
  83. package/dist/{index-CnxSNAPH.js → index-Crpe9CvH.js} +1 -1
  84. package/dist/{index-CWVOLBDY.js → index-D5a8Oe6k.js} +1 -1
  85. package/dist/{index-C1jjVTAc.js → index-D8dq-I5s.js} +1 -1
  86. package/dist/{index-Cvtm6uuS.js → index-DkwTwo3z.js} +1 -1
  87. package/dist/{index-BG2aV9o8.js → index-DnO8yBVT.js} +1 -1
  88. package/dist/index.css +0 -0
  89. package/dist/tslib.es6-DpB4Y59c.js +683 -0
  90. package/dist/types/components/Pagination/index.d.ts +1 -2
  91. package/dist/types/components/Pagination/types.d.ts +5 -2
  92. package/dist/types/components/PasswordInput/ToggleButton.d.ts +1 -1
  93. package/dist/types/components/PasswordInput/types.d.ts +1 -1
  94. package/dist/types/components/Tabs/components/TabList/index.d.ts +1 -1
  95. package/dist/types/components/Tabs/index.d.ts +1 -1
  96. package/dist/types/components/Tabs/types.d.ts +1 -2
  97. package/dist/types/components/Tabs/utils.d.ts +1 -2
  98. package/dist/types/utils/index.d.ts +1 -0
  99. package/dist/types/utils/theme/index.d.ts +0 -0
  100. package/dist/types/utils/useForkRef.d.ts +7 -1
  101. package/dist/useForkRef-D807AV7D.js +22 -0
  102. package/dist/{utils-BNMgUIHQ.js → utils-BpbIqM56.js} +1 -1
  103. package/dist/utils.js +2 -2
  104. package/package.json +5 -5
  105. package/dist/BYC7LY2E-DbSoi9cN.js +0 -673
  106. package/dist/KUU7WJ55-CsIy9XMu.js +0 -61
  107. package/dist/MTZPJQMC-D_TnSwZf.js +0 -15
  108. package/dist/QYJ6MIDR-Dm7lYMh6.js +0 -43
  109. package/dist/X5NMLKT6-PeY306ft.js +0 -25
  110. package/dist/index--0U5Rubs.js +0 -644
  111. /package/dist/{index-PAaZGbyz.js → index-CdiHdiVB.js} +0 -0
@@ -1,61 +0,0 @@
1
- "use client";
2
- import { c as F, _ as p, O as m, G as I, L as h, b as _, e as x, f as Y, g as T, W as L, X as w, q as j, p as G, Y as H, Z as V, l as W, n as X } from "./LVA2YJMS-NUHCRwFZ.js";
3
- import { useRef as C, useState as D, useEffect as Z } from "react";
4
- var z = "button";
5
- function M(s) {
6
- if (!s.isTrusted) return !1;
7
- const t = s.currentTarget;
8
- return s.key === "Enter" ? m(t) || t.tagName === "SUMMARY" || t.tagName === "A" : s.key === " " ? m(t) || t.tagName === "SUMMARY" || t.tagName === "INPUT" || t.tagName === "SELECT" : !1;
9
- }
10
- var J = Symbol("command"), Q = F(
11
- function(t) {
12
- var i = t, { clickOnEnter: d = !0, clickOnSpace: u = !0 } = i, r = p(i, ["clickOnEnter", "clickOnSpace"]);
13
- const c = C(null), [K, R] = D(!1);
14
- Z(() => {
15
- c.current && R(m(c.current));
16
- }, []);
17
- const [U, k] = D(!1), f = C(!1), y = I(r), [E, O] = h(r, J, !0), g = r.onKeyDown, q = _((e) => {
18
- g == null || g(e);
19
- const a = e.currentTarget;
20
- if (e.defaultPrevented || E || y || !j(e) || G(a) || a.isContentEditable) return;
21
- const o = d && e.key === "Enter", n = u && e.key === " ", b = e.key === "Enter" && !d, l = e.key === " " && !u;
22
- if (b || l) {
23
- e.preventDefault();
24
- return;
25
- }
26
- if (o || n) {
27
- const v = M(e);
28
- if (o) {
29
- if (!v) {
30
- e.preventDefault();
31
- const S = e, { view: $ } = S, B = p(S, ["view"]), N = () => w(a, B);
32
- H() ? V(a, "keyup", N) : queueMicrotask(N);
33
- }
34
- } else n && (f.current = !0, v || (e.preventDefault(), k(!0)));
35
- }
36
- }), P = r.onKeyUp, A = _((e) => {
37
- if (P == null || P(e), e.defaultPrevented || E || y || e.metaKey) return;
38
- const a = u && e.key === " ";
39
- if (f.current && a && (f.current = !1, !M(e))) {
40
- e.preventDefault(), k(!1);
41
- const o = e.currentTarget, n = e, { view: b } = n, l = p(n, ["view"]);
42
- queueMicrotask(() => w(o, l));
43
- }
44
- });
45
- return r = x(T(T({
46
- "data-active": U || void 0,
47
- type: K ? "button" : void 0
48
- }, O), r), {
49
- ref: Y(c, r.ref),
50
- onKeyDown: q,
51
- onKeyUp: A
52
- }), r = L(r), r;
53
- }
54
- );
55
- W(function(t) {
56
- const i = Q(t);
57
- return X(z, i);
58
- });
59
- export {
60
- Q as u
61
- };
@@ -1,15 +0,0 @@
1
- "use client";
2
- import { g as e, k as r } from "./VGCJ63VH-CVhs4PYt.js";
3
- import { v as t } from "./LVA2YJMS-NUHCRwFZ.js";
4
- var o = t(
5
- [r],
6
- [e]
7
- ), x = o.useContext;
8
- o.useScopedContext;
9
- var i = o.useProviderContext, n = o.ContextProvider, s = o.ScopedContextProvider;
10
- export {
11
- s as P,
12
- x as a,
13
- n as b,
14
- i as u
15
- };
@@ -1,43 +0,0 @@
1
- "use client";
2
- import { u as _ } from "./AXB53BZF-BHeessqV.js";
3
- import { u as p, P as D } from "./MTZPJQMC-D_TnSwZf.js";
4
- import { c as i, _ as v, e as l, f as h, g as n, l as P, n as m, i as E, b, D as g } from "./LVA2YJMS-NUHCRwFZ.js";
5
- import { jsx as x } from "react/jsx-runtime";
6
- var A = "div", d = i(
7
- function(s) {
8
- var r = s, { store: e } = r, o = v(r, ["store"]);
9
- const c = p();
10
- return e = e || c, o = l(n({}, o), {
11
- ref: h(e == null ? void 0 : e.setAnchorElement, o.ref)
12
- }), o;
13
- }
14
- );
15
- P(function(s) {
16
- const r = d(s);
17
- return m(A, r);
18
- });
19
- var C = "button", k = i(function(s) {
20
- var r = s, { store: e } = r, o = v(r, ["store"]);
21
- const c = p();
22
- e = e || c, E(
23
- e,
24
- process.env.NODE_ENV !== "production" && "PopoverDisclosure must receive a `store` prop or be wrapped in a PopoverProvider component."
25
- );
26
- const u = o.onClick, f = b((t) => {
27
- e == null || e.setAnchorElement(t.currentTarget), u == null || u(t);
28
- });
29
- return o = g(
30
- o,
31
- (t) => /* @__PURE__ */ x(D, { value: e, children: t }),
32
- [e]
33
- ), o = l(n({}, o), {
34
- onClick: f
35
- }), o = d(n({ store: e }, o)), o = _(n({ store: e }, o)), o;
36
- }), w = P(function(s) {
37
- const r = k(s);
38
- return m(C, r);
39
- });
40
- export {
41
- w as P,
42
- k as u
43
- };
@@ -1,25 +0,0 @@
1
- "use client";
2
- import { u as f } from "./KUU7WJ55-CsIy9XMu.js";
3
- import { l as c, c as m, n as i, N as l, O as u, e as B, f as v, g as N } from "./LVA2YJMS-NUHCRwFZ.js";
4
- import { useRef as d, useState as g, useEffect as _ } from "react";
5
- var s = "button", R = m(
6
- function(t) {
7
- const e = d(null), a = l(e, s), [r, o] = g(
8
- () => !!a && u({ tagName: a, type: t.type })
9
- );
10
- return _(() => {
11
- e.current && o(u(e.current));
12
- }, []), t = B(N({
13
- role: !r && a !== "a" ? "button" : void 0
14
- }, t), {
15
- ref: v(e, t.ref)
16
- }), t = f(t), t;
17
- }
18
- ), P = c(function(t) {
19
- const e = R(t);
20
- return i(s, e);
21
- });
22
- export {
23
- P as B,
24
- R as u
25
- };