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.
Files changed (127) hide show
  1. package/dist/2W3RN7C5-DMC82gDP.js +61 -0
  2. package/dist/{4I4MLMKD-z3Xm3qCo.js → 4I4MLMKD-BO6Lcy7s.js} +17 -17
  3. package/dist/Accordion.js +19 -17
  4. package/dist/Alert.js +40 -31
  5. package/dist/AspectRatio.js +1 -0
  6. package/dist/Avatar.js +13 -11
  7. package/dist/{B7UTNDHN-BDa2-8JK.js → B7UTNDHN-BghjolIs.js} +30 -30
  8. package/dist/Badge.js +1 -0
  9. package/dist/Breadcrumb.js +76 -71
  10. package/dist/Button.js +8 -6
  11. package/dist/ButtonGroup.js +6 -4
  12. package/dist/Card.css +1 -1
  13. package/dist/Card.js +68 -15
  14. package/dist/Checkbox.js +30 -29
  15. package/dist/CloseButton.js +7 -5
  16. package/dist/{CustomPopper-vwbOQq72.js → CustomPopper-C1wIDHbM.js} +5 -4
  17. package/dist/{DSAASPLT-C-2xDjIv.js → DSAASPLT-Fx1kuAsk.js} +3 -3
  18. package/dist/DatePicker.js +82 -78
  19. package/dist/DateTimePicker.js +22 -21
  20. package/dist/Drawer.js +101 -80
  21. package/dist/DropdownMenu.css +1 -1
  22. package/dist/DropdownMenu.js +889 -462
  23. package/dist/Field.js +1 -0
  24. package/dist/FieldGroup.js +9 -7
  25. package/dist/FileDrop.js +184 -176
  26. package/dist/FileUpload.js +43 -40
  27. package/dist/{GVVKDT6A-C66-lr0B.js → GVVKDT6A-CF9ejW_c.js} +103 -103
  28. package/dist/Hint.js +9 -7
  29. package/dist/Icon.js +6 -4
  30. package/dist/InputText.js +30 -28
  31. package/dist/{KPUWHTQJ-Byij2al4.js → KPUWHTQJ-Dv3cAqjP.js} +33 -31
  32. package/dist/Label.js +9 -7
  33. package/dist/Link.js +25 -21
  34. package/dist/Loader.js +12 -10
  35. package/dist/Logo.js +21 -13
  36. package/dist/Modal.js +145 -114
  37. package/dist/{NI3IVY7K-DpF3td-7.js → NI3IVY7K-Dy240mkD.js} +160 -160
  38. package/dist/{NMGNQVTG-BgAqqGOq.js → NMGNQVTG-DRO2uXZT.js} +6 -6
  39. package/dist/{OE2EFRVA-DkdhQLJL.js → OE2EFRVA-Dg1R6gaC.js} +186 -170
  40. package/dist/{OLVWQA7U-wHytlFYu.js → OLVWQA7U-Dia3UUnG.js} +36 -36
  41. package/dist/Pagination.js +39 -37
  42. package/dist/PasswordInput.js +20 -17
  43. package/dist/Popover.js +89 -72
  44. package/dist/{RTNCFSKZ-LcIdBwa8.js → RTNCFSKZ-BywELldk.js} +42 -42
  45. package/dist/Radio.js +20 -19
  46. package/dist/RadioGroup.js +29 -27
  47. package/dist/RadioTab.js +2 -1
  48. package/dist/{SBSPVDDI-BoxPz2JY.js → SBSPVDDI-CmtnvvUX.js} +46 -46
  49. package/dist/SQZLCNLX-Dg4KKdNJ.js +83 -0
  50. package/dist/Search.css +1 -1
  51. package/dist/Search.js +62 -60
  52. package/dist/Select.css +1 -1
  53. package/dist/Select.js +204 -202
  54. package/dist/Slider.js +66 -61
  55. package/dist/Stepper.js +34 -27
  56. package/dist/StickyNote.js +30 -23
  57. package/dist/Swiper.js +52 -50
  58. package/dist/{T22PY7TE-CzEDuEn1.js → T22PY7TE-gLuJpoOm.js} +46 -46
  59. package/dist/Table.js +34 -21
  60. package/dist/Tabs.js +161 -152
  61. package/dist/Tag.css +1 -1
  62. package/dist/Tag.js +70 -65
  63. package/dist/Text.js +4 -2
  64. package/dist/Textarea.js +10 -8
  65. package/dist/TimePicker.js +22 -21
  66. package/dist/Toast.js +186 -177
  67. package/dist/Toggle.js +16 -14
  68. package/dist/Tooltip.js +29 -27
  69. package/dist/VariantIcon.js +7 -5
  70. package/dist/VisuallyHidden.js +8 -6
  71. package/dist/WelcomeLoader.js +3 -2
  72. package/dist/XCKGTAUF-CJwwVibW.js +25 -0
  73. package/dist/{Y67KZUMI-BDyUNSJw.js → Y67KZUMI-BwLWwpNF.js} +2 -2
  74. package/dist/{ZTXFEM5L-CjFLRObi.js → ZTXFEM5L-WGHY_jqg.js} +3 -3
  75. package/dist/theme.js +1 -0
  76. package/dist/types/components/Alert/components/Title.d.ts +4 -1
  77. package/dist/types/components/Alert/index.d.ts +4 -1
  78. package/dist/types/components/Card/Body.d.ts +2 -3
  79. package/dist/types/components/Card/Footer.d.ts +6 -0
  80. package/dist/types/components/Card/Header.d.ts +5 -0
  81. package/dist/types/components/Card/index.d.ts +7 -8
  82. package/dist/types/components/Card/types.d.ts +16 -3
  83. package/dist/types/components/Checkbox/index.d.ts +1 -2
  84. package/dist/types/components/Checkbox/types.d.ts +3 -1
  85. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +4 -1
  86. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +6 -3
  87. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +4 -1
  88. package/dist/types/components/Drawer/AssetDrawer/IconBlock.d.ts +4 -1
  89. package/dist/types/components/Drawer/components/Close.d.ts +4 -1
  90. package/dist/types/components/Drawer/components/Title.d.ts +4 -1
  91. package/dist/types/components/Drawer/index.d.ts +12 -3
  92. package/dist/types/components/DropdownMenu/Action.d.ts +2 -0
  93. package/dist/types/components/DropdownMenu/Group.d.ts +4 -0
  94. package/dist/types/components/DropdownMenu/Item.d.ts +7 -0
  95. package/dist/types/components/DropdownMenu/Search.d.ts +2 -0
  96. package/dist/types/components/DropdownMenu/Submenu.d.ts +4 -0
  97. package/dist/types/components/DropdownMenu/index.d.ts +11 -0
  98. package/dist/types/components/DropdownMenu/types.d.ts +26 -5
  99. package/dist/types/components/FileDrop/components/FilePreview.d.ts +4 -1
  100. package/dist/types/components/FileDrop/components/Message.d.ts +4 -1
  101. package/dist/types/components/Loader/index.d.ts +4 -1
  102. package/dist/types/components/Modal/Assets/AssetContent.d.ts +4 -1
  103. package/dist/types/components/Modal/Assets/AssetTitle.d.ts +4 -1
  104. package/dist/types/components/Modal/Assets/CloseButton.d.ts +4 -1
  105. package/dist/types/components/Modal/Assets/Dialog.d.ts +4 -1
  106. package/dist/types/components/Modal/Assets/Iframe.d.ts +4 -1
  107. package/dist/types/components/Modal/Assets/index.d.ts +16 -4
  108. package/dist/types/components/Modal/components/Close.d.ts +4 -1
  109. package/dist/types/components/Modal/index.d.ts +16 -4
  110. package/dist/types/components/PasswordInput/ToggleButton.d.ts +4 -1
  111. package/dist/types/components/Popover/Arrow.d.ts +4 -1
  112. package/dist/types/components/Popover/ContentWrapper.d.ts +4 -1
  113. package/dist/types/components/RadioGroup/index.d.ts +4 -1
  114. package/dist/types/components/Stepper/index.d.ts +8 -2
  115. package/dist/types/components/StickyNote/components/Button.d.ts +4 -1
  116. package/dist/types/components/StickyNote/components/Title.d.ts +4 -1
  117. package/dist/types/components/StickyNote/index.d.ts +8 -2
  118. package/dist/types/components/Swiper/index.d.ts +4 -1
  119. package/dist/types/components/Table/index.d.ts +20 -5
  120. package/dist/types/components/Tabs/components/ActiveBar/index.d.ts +4 -1
  121. package/dist/types/components/Tag/types.d.ts +4 -2
  122. package/dist/types/components/Toast/index.d.ts +4 -1
  123. package/dist/utils.js +1 -0
  124. package/package.json +2 -2
  125. package/dist/2W3RN7C5-uG7eBeTQ.js +0 -61
  126. package/dist/SQZLCNLX-CUlXoT69.js +0 -82
  127. package/dist/XCKGTAUF-CahZE721.js +0 -25
package/dist/Tag.js CHANGED
@@ -1,85 +1,90 @@
1
1
  "use client";
2
- import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
+ import './Tag.css';
3
+ import { jsxs as k, jsx as r } from "react/jsx-runtime";
3
4
  import z from "react";
4
- import { Button as h } from "./Button.js";
5
- import { Icon as x } from "./Icon.js";
5
+ import { Icon as m } from "./Icon.js";
6
6
  import { c as R } from "./index-PAaZGbyz.js";
7
- import { f as y } from "./forwardRefWithAs-8eP3ZN15.js";
8
- const S = "_root_etflv_4", k = "_hasRemoveAction_etflv_199", q = "_isSquare_etflv_205", A = "_removeButton_etflv_210", N = {
9
- root: S,
10
- "variant-primary": "_variant-primary_etflv_70",
11
- "variant-info": "_variant-info_etflv_78",
12
- "variant-success": "_variant-success_etflv_86",
13
- "variant-danger": "_variant-danger_etflv_94",
14
- "variant-warning": "_variant-warning_etflv_102",
15
- "variant-ai": "_variant-ai_etflv_110",
16
- "variant-blue": "_variant-blue_etflv_118",
17
- "variant-green": "_variant-green_etflv_126",
18
- "variant-orange": "_variant-orange_etflv_134",
19
- "variant-pink": "_variant-pink_etflv_142",
20
- "variant-teal": "_variant-teal_etflv_150",
21
- "variant-violet": "_variant-violet_etflv_158",
22
- "size-xs": "_size-xs_etflv_166",
23
- "size-sm": "_size-sm_etflv_177",
24
- "size-md": "_size-md_etflv_188",
25
- hasRemoveAction: k,
26
- isSquare: q,
27
- removeButton: A
28
- }, s = R(N);
29
- function b(t) {
30
- if (typeof t == "string" || typeof t == "number")
31
- return t.toString().length;
32
- if (z.isValidElement(t) && typeof t.props.children == "string")
33
- return t.props.children.length;
7
+ import { f as S } from "./forwardRefWithAs-8eP3ZN15.js";
8
+ const C = "_root_1y63p_9", N = "_disabled_1y63p_53", q = "_ai_1y63p_70", x = "_removeButton_1y63p_73", A = "_hasRemoveAction_1y63p_240", w = "_isSquare_1y63p_246", T = {
9
+ root: C,
10
+ disabled: N,
11
+ "variant-dash": "_variant-dash_1y63p_58",
12
+ ai: q,
13
+ removeButton: x,
14
+ "variant-brand": "_variant-brand_1y63p_76",
15
+ "variant-warm": "_variant-warm_1y63p_91",
16
+ "variant-red": "_variant-red_1y63p_106",
17
+ "variant-blue": "_variant-blue_1y63p_121",
18
+ "variant-green": "_variant-green_1y63p_136",
19
+ "variant-orange": "_variant-orange_1y63p_151",
20
+ "variant-pink": "_variant-pink_1y63p_166",
21
+ "variant-teal": "_variant-teal_1y63p_181",
22
+ "variant-violet": "_variant-violet_1y63p_196",
23
+ "size-md": "_size-md_1y63p_226",
24
+ "size-lg": "_size-lg_1y63p_233",
25
+ hasRemoveAction: A,
26
+ isSquare: w
27
+ }, c = R(T);
28
+ function j(a) {
29
+ if (typeof a == "string" || typeof a == "number")
30
+ return a.toString().length;
31
+ if (z.isValidElement(a) && typeof a.props.children == "string")
32
+ return a.props.children.length;
34
33
  }
35
- const $ = y((t, o) => {
34
+ const E = S((a, p) => {
36
35
  const {
37
- as: _ = "div",
38
- children: i,
39
- className: v,
40
- icon: l,
41
- onClick: f,
42
- onRemove: e,
43
- removeButtonProps: a,
44
- size: m = "md",
45
- variant: n,
46
- ...c
47
- } = t, u = b(i) === 1 && !e, g = (p) => {
48
- a != null && a.onClick && a.onClick(p), e && e();
36
+ ai: s = !1,
37
+ as: v = "div",
38
+ children: o,
39
+ className: d,
40
+ disabled: i = !1,
41
+ icon: y,
42
+ onClick: _,
43
+ onRemove: t,
44
+ removeButtonProps: e,
45
+ size: f = "lg",
46
+ variant: l = "warm",
47
+ ...u
48
+ } = a, g = j(o) === 1 && !t, h = (n) => {
49
+ n.stopPropagation(), !i && (e != null && e.onClick && e.onClick(n), t && t());
50
+ }, b = (n) => {
51
+ i || _ && _(n);
49
52
  };
50
- return /* @__PURE__ */ d(
51
- _,
53
+ return /* @__PURE__ */ k(
54
+ v,
52
55
  {
53
- className: s(
56
+ className: c(
54
57
  "root",
55
- n && `variant-${n}`,
56
- `size-${m}`,
57
- !!e && "hasRemoveAction",
58
- u && "isSquare",
59
- v
58
+ `variant-${l}`,
59
+ `size-${f}`,
60
+ !!t && "hasRemoveAction",
61
+ g && "isSquare",
62
+ s && "ai",
63
+ i && "disabled",
64
+ d
60
65
  ),
61
- onClick: f,
62
- ref: o,
63
- ...c,
66
+ onClick: b,
67
+ ref: p,
68
+ ...u,
64
69
  children: [
65
- l,
66
- i,
67
- e ? /* @__PURE__ */ r(
68
- h,
70
+ s && l !== "dash" ? /* @__PURE__ */ r(m, { name: "sparkles", size: "md" }) : y,
71
+ o,
72
+ t ? /* @__PURE__ */ r(
73
+ "button",
69
74
  {
70
75
  "aria-label": "remove tag",
71
- ...a,
72
- className: s("removeButton", a == null ? void 0 : a.className),
73
- onClick: g,
74
- size: "sm",
75
- variant: "tertiary",
76
- children: /* @__PURE__ */ r(x, { name: "times", size: "xs" })
76
+ disabled: i,
77
+ ...e,
78
+ className: c("removeButton", e == null ? void 0 : e.className),
79
+ onClick: h,
80
+ children: /* @__PURE__ */ r(m, { name: "times", size: "md" })
77
81
  }
78
82
  ) : null
79
83
  ]
80
84
  }
81
85
  );
82
86
  });
87
+ E.displayName = "Tag";
83
88
  export {
84
- $ as Tag
89
+ E as Tag
85
90
  };
package/dist/Text.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use client";
2
+ import './Text.css';
2
3
  import { createElement as g } from "react";
3
4
  import { c as m } from "./index-PAaZGbyz.js";
4
5
  import { f as b } from "./forwardRefWithAs-8eP3ZN15.js";
@@ -34,7 +35,7 @@ const q = "_root_1tqvt_2", h = {
34
35
  "single-line": "_single-line_1tqvt_129",
35
36
  "multi-line": "_multi-line_1tqvt_133",
36
37
  "with-dash": "_with-dash_1tqvt_136"
37
- }, y = m(h), w = b(
38
+ }, y = m(h), x = b(
38
39
  ({ as: _ = "p", children: s, className: r, lines: a, variant: t = "md", withDash: l, ...v }, d) => {
39
40
  const e = (t == null ? void 0 : t.startsWith("heading")) || (t == null ? void 0 : t.startsWith("display")), i = a && a > 1 && a !== Number.POSITIVE_INFINITY, n = a === 1, o = y(
40
41
  "root",
@@ -57,6 +58,7 @@ const q = "_root_1tqvt_2", h = {
57
58
  );
58
59
  }
59
60
  );
61
+ x.displayName = "Text";
60
62
  export {
61
- w as Text
63
+ x as Text
62
64
  };
package/dist/Textarea.js CHANGED
@@ -1,27 +1,29 @@
1
1
  "use client";
2
+ import './Textarea.css';
2
3
  import { jsx as c } from "react/jsx-runtime";
3
4
  import { forwardRef as _ } from "react";
4
5
  import { useField as m } from "./Field.js";
5
6
  import { c as g } from "./index-PAaZGbyz.js";
6
- const v = "_root_rh62g_2", f = {
7
+ const v = "_root_rh62g_2", p = {
7
8
  root: v,
8
9
  "variant-danger": "_variant-danger_rh62g_35",
9
10
  "variant-warning": "_variant-warning_rh62g_38",
10
11
  "variant-success": "_variant-success_rh62g_41"
11
- }, p = g(f), h = _(
12
- ({ className: a, minRows: t = 5, variant: o, ...n }, s) => {
13
- const { getInputProps: e, variant: i } = m(), r = i || o;
12
+ }, f = g(p), l = _(
13
+ ({ className: a, minRows: t = 5, variant: o, ...e }, n) => {
14
+ const { getInputProps: s, variant: i } = m(), r = i || o;
14
15
  return /* @__PURE__ */ c(
15
16
  "textarea",
16
17
  {
17
- className: p("root", r && `variant-${r}`, a),
18
- ref: s,
18
+ className: f("root", r && `variant-${r}`, a),
19
+ ref: n,
19
20
  rows: t,
20
- ...e(n)
21
+ ...s(e)
21
22
  }
22
23
  );
23
24
  }
24
25
  );
26
+ l.displayName = "Textarea";
25
27
  export {
26
- h as Textarea
28
+ l as Textarea
27
29
  };
@@ -1,27 +1,27 @@
1
1
  "use client";
2
2
  import { jsx as f } from "react/jsx-runtime";
3
3
  import { forwardRef as S, useState as w, useRef as j, useEffect as d } from "react";
4
- import { D as F, C as I } from "./CustomPopper-vwbOQq72.js";
4
+ import { D as F, C as I } from "./CustomPopper-C1wIDHbM.js";
5
5
  import { b as L, D as M, s as O } from "./utils-BD597oo6.js";
6
6
  import { InputText as U } from "./InputText.js";
7
7
  import { c as _ } from "./index-PAaZGbyz.js";
8
- const q = _(O), V = S(
8
+ const q = _(O), z = S(
9
9
  ({
10
10
  autoFocus: o,
11
- className: D,
12
- dateFormat: T = "HH:mm",
13
- disabled: R,
14
- icon: a,
15
- iconPlacement: x = "left",
11
+ className: T,
12
+ dateFormat: D = "HH:mm",
13
+ disabled: a,
14
+ icon: R,
15
+ iconPlacement: k = "left",
16
16
  onChange: t,
17
- placeholder: k,
17
+ placeholder: x,
18
18
  size: y = "md",
19
19
  timeIntervals: i = 15,
20
20
  transparent: A,
21
21
  value: r = M,
22
22
  ...m
23
23
  }, p) => {
24
- const l = (s) => L(s, i), [H, c] = w(l(r)), b = j(), E = p || b;
24
+ const l = (s) => L(s, i), [H, c] = w(l(r)), N = j(), P = p || N;
25
25
  d(() => {
26
26
  t == null || t(l(r));
27
27
  }, []), d(() => {
@@ -29,10 +29,10 @@ const q = _(O), V = S(
29
29
  const s = l(r);
30
30
  ((e = new Date(r)) == null ? void 0 : e.getTime()) - (s == null ? void 0 : s.getTime()) !== 0 && (t == null || t(s)), c(s);
31
31
  }, [r]);
32
- const N = (s) => {
32
+ const b = (s) => {
33
33
  var e;
34
- s.preventDefault(), (e = E.current) == null || e.blur(), c(null), t == null || t(null);
35
- }, P = (s) => {
34
+ s.preventDefault(), (e = P.current) == null || e.blur(), c(null), t == null || t(null);
35
+ }, E = (s) => {
36
36
  if (!s) {
37
37
  c(null), t == null || t(null);
38
38
  return;
@@ -57,21 +57,21 @@ const q = _(O), V = S(
57
57
  U,
58
58
  {
59
59
  autoFocus: o,
60
- className: q("time-picker", D),
60
+ className: q("time-picker", T),
61
61
  "data-testid": m["data-testid"],
62
- disabled: R,
63
- icon: a,
64
- iconPlacement: x,
62
+ disabled: a,
63
+ icon: R,
64
+ iconPlacement: k,
65
65
  isClearable: !1,
66
- onReset: N,
66
+ onReset: b,
67
67
  ref: p,
68
68
  size: y,
69
69
  transparent: A
70
70
  }
71
71
  ),
72
- dateFormat: T,
73
- onChange: P,
74
- placeholderText: k,
72
+ dateFormat: D,
73
+ onChange: E,
74
+ placeholderText: x,
75
75
  popperContainer: I,
76
76
  selected: H,
77
77
  showTimeSelect: !0,
@@ -83,6 +83,7 @@ const q = _(O), V = S(
83
83
  );
84
84
  }
85
85
  );
86
+ z.displayName = "TimePicker";
86
87
  export {
87
- V as TimePicker
88
+ z as TimePicker
88
89
  };