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.
Files changed (179) hide show
  1. package/README.md +1 -1
  2. package/dist/2W3RN7C5-DMC82gDP.js +61 -0
  3. package/dist/4I4MLMKD-BO6Lcy7s.js +150 -0
  4. package/dist/Accordion.js +20 -18
  5. package/dist/Alert.css +1 -1
  6. package/dist/Alert.js +93 -87
  7. package/dist/AspectRatio.js +2 -1
  8. package/dist/Avatar.js +14 -12
  9. package/dist/{B7UTNDHN-BlIblHCu.js → B7UTNDHN-BghjolIs.js} +30 -30
  10. package/dist/Badge.js +2 -1
  11. package/dist/Breadcrumb.css +1 -1
  12. package/dist/Breadcrumb.js +175 -154
  13. package/dist/Button.css +1 -1
  14. package/dist/Button.js +43 -41
  15. package/dist/ButtonGroup.js +7 -5
  16. package/dist/Card.css +1 -1
  17. package/dist/Card.js +68 -15
  18. package/dist/Checkbox.js +32 -30
  19. package/dist/CloseButton.css +1 -1
  20. package/dist/CloseButton.js +15 -13
  21. package/dist/{CustomPopper-vwbOQq72.js → CustomPopper-C1wIDHbM.js} +5 -4
  22. package/dist/{DSAASPLT-BaaCUKsb.js → DSAASPLT-Fx1kuAsk.js} +3 -3
  23. package/dist/DatePicker.js +96 -91
  24. package/dist/DateTimePicker.js +21 -20
  25. package/dist/Drawer.js +141 -96
  26. package/dist/DropdownMenu.css +1 -1
  27. package/dist/DropdownMenu.js +902 -462
  28. package/dist/Field.css +1 -1
  29. package/dist/Field.js +50 -50
  30. package/dist/FieldGroup.js +9 -7
  31. package/dist/FileDrop.css +1 -1
  32. package/dist/FileDrop.js +433 -398
  33. package/dist/FileUpload.js +44 -41
  34. package/dist/GVVKDT6A-CF9ejW_c.js +619 -0
  35. package/dist/Hint.js +10 -8
  36. package/dist/Icon.css +1 -1
  37. package/dist/Icon.js +36 -22
  38. package/dist/InputText.css +1 -1
  39. package/dist/InputText.js +59 -57
  40. package/dist/{KPUWHTQJ-D2TPji47.js → KPUWHTQJ-Dv3cAqjP.js} +33 -31
  41. package/dist/Label.js +9 -7
  42. package/dist/Link.css +1 -1
  43. package/dist/Link.js +54 -49
  44. package/dist/Loader.js +13 -11
  45. package/dist/Logo.js +21 -13
  46. package/dist/Modal.js +153 -113
  47. package/dist/{NI3IVY7K-Ztb3-XAv.js → NI3IVY7K-Dy240mkD.js} +53 -53
  48. package/dist/{NMGNQVTG-C6TqBngP.js → NMGNQVTG-DRO2uXZT.js} +8 -8
  49. package/dist/{OE2EFRVA-C3721cM3.js → OE2EFRVA-Dg1R6gaC.js} +186 -170
  50. package/dist/{OLVWQA7U-DysaSaZj.js → OLVWQA7U-Dia3UUnG.js} +51 -51
  51. package/dist/Pagination.css +1 -1
  52. package/dist/Pagination.js +157 -76
  53. package/dist/PasswordInput.js +20 -17
  54. package/dist/Popover.js +89 -72
  55. package/dist/{RTNCFSKZ-qpPg689E.js → RTNCFSKZ-BywELldk.js} +47 -47
  56. package/dist/Radio.css +1 -1
  57. package/dist/Radio.js +39 -40
  58. package/dist/RadioGroup.js +29 -27
  59. package/dist/RadioTab.js +3 -2
  60. package/dist/{SBSPVDDI-DJKkC1eb.js → SBSPVDDI-CmtnvvUX.js} +42 -42
  61. package/dist/SQZLCNLX-Dg4KKdNJ.js +83 -0
  62. package/dist/Search.css +1 -1
  63. package/dist/Search.js +136 -129
  64. package/dist/Select.css +1 -1
  65. package/dist/Select.js +259 -257
  66. package/dist/Slider.js +67 -62
  67. package/dist/Stepper.js +34 -27
  68. package/dist/StickyNote.css +1 -0
  69. package/dist/StickyNote.js +49 -0
  70. package/dist/Swiper.js +53 -51
  71. package/dist/{T22PY7TE-C1N0q8Kn.js → T22PY7TE-gLuJpoOm.js} +46 -46
  72. package/dist/Table.js +34 -21
  73. package/dist/Tabs.js +165 -156
  74. package/dist/Tag.css +1 -1
  75. package/dist/Tag.js +67 -62
  76. package/dist/Text.js +5 -3
  77. package/dist/Textarea.css +1 -1
  78. package/dist/Textarea.js +26 -17
  79. package/dist/TimePicker.js +53 -51
  80. package/dist/Toast.css +1 -1
  81. package/dist/Toast.js +275 -165
  82. package/dist/Toggle.js +17 -15
  83. package/dist/Tooltip.css +1 -1
  84. package/dist/Tooltip.js +120 -129
  85. package/dist/VariantIcon.js +8 -6
  86. package/dist/VisuallyHidden.js +9 -7
  87. package/dist/WelcomeLoader.js +4 -3
  88. package/dist/XCKGTAUF-CJwwVibW.js +25 -0
  89. package/dist/{Y67KZUMI-DFEgrUv2.js → Y67KZUMI-BwLWwpNF.js} +5 -5
  90. package/dist/{ZTXFEM5L-CkrIQCN1.js → ZTXFEM5L-WGHY_jqg.js} +3 -3
  91. package/dist/{downshift.esm-D_6pHXkq.js → downshift.esm-xtYanIDi.js} +1 -1
  92. package/dist/scss/breakpoints.scss +9 -0
  93. package/dist/scss/text-ellipsis.scss +5 -0
  94. package/dist/scss/texts.scss +108 -0
  95. package/dist/theme.css +1 -1
  96. package/dist/theme.js +1 -0
  97. package/dist/{tslib.es6-DpB4Y59c.js → tslib.es6-C80jYMbM.js} +1 -1
  98. package/dist/types/components/Alert/components/Buttons.d.ts +3 -0
  99. package/dist/types/components/Alert/components/Title.d.ts +5 -0
  100. package/dist/types/components/Alert/index.d.ts +7 -3
  101. package/dist/types/components/Alert/types.d.ts +3 -9
  102. package/dist/types/components/Breadcrumb/Item.d.ts +2 -2
  103. package/dist/types/components/Breadcrumb/index.d.ts +1 -1
  104. package/dist/types/components/Breadcrumb/types.d.ts +6 -3
  105. package/dist/types/components/Card/Body.d.ts +2 -3
  106. package/dist/types/components/Card/Footer.d.ts +6 -0
  107. package/dist/types/components/Card/Header.d.ts +5 -0
  108. package/dist/types/components/Card/index.d.ts +7 -8
  109. package/dist/types/components/Card/types.d.ts +16 -3
  110. package/dist/types/components/Checkbox/index.d.ts +1 -2
  111. package/dist/types/components/Checkbox/types.d.ts +3 -1
  112. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +4 -1
  113. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +6 -3
  114. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +4 -1
  115. package/dist/types/components/Drawer/AssetDrawer/IconBlock.d.ts +4 -1
  116. package/dist/types/components/Drawer/AssetDrawer/types.d.ts +3 -0
  117. package/dist/types/components/Drawer/components/Backdrop.d.ts +1 -1
  118. package/dist/types/components/Drawer/components/Close.d.ts +4 -1
  119. package/dist/types/components/Drawer/components/Title.d.ts +4 -1
  120. package/dist/types/components/Drawer/index.d.ts +13 -4
  121. package/dist/types/components/DropdownMenu/Action.d.ts +2 -0
  122. package/dist/types/components/DropdownMenu/Group.d.ts +4 -0
  123. package/dist/types/components/DropdownMenu/Item.d.ts +7 -0
  124. package/dist/types/components/DropdownMenu/Search.d.ts +2 -0
  125. package/dist/types/components/DropdownMenu/Submenu.d.ts +4 -0
  126. package/dist/types/components/DropdownMenu/index.d.ts +11 -0
  127. package/dist/types/components/DropdownMenu/types.d.ts +26 -5
  128. package/dist/types/components/FileDrop/components/FilePreview.d.ts +4 -1
  129. package/dist/types/components/FileDrop/components/Message.d.ts +4 -1
  130. package/dist/types/components/FileDrop/types.d.ts +2 -0
  131. package/dist/types/components/Icon/icons.d.ts +6 -6
  132. package/dist/types/components/Icon/types.d.ts +2 -0
  133. package/dist/types/components/Loader/index.d.ts +4 -1
  134. package/dist/types/components/Modal/Assets/AssetContent.d.ts +4 -1
  135. package/dist/types/components/Modal/Assets/AssetTitle.d.ts +4 -1
  136. package/dist/types/components/Modal/Assets/CloseButton.d.ts +4 -1
  137. package/dist/types/components/Modal/Assets/Dialog.d.ts +4 -1
  138. package/dist/types/components/Modal/Assets/Iframe.d.ts +4 -1
  139. package/dist/types/components/Modal/Assets/index.d.ts +16 -4
  140. package/dist/types/components/Modal/components/Close.d.ts +4 -1
  141. package/dist/types/components/Modal/components/Content.d.ts +1 -1
  142. package/dist/types/components/Modal/index.d.ts +17 -5
  143. package/dist/types/components/Modal/types.d.ts +1 -1
  144. package/dist/types/components/Pagination/types.d.ts +11 -0
  145. package/dist/types/components/PasswordInput/ToggleButton.d.ts +4 -1
  146. package/dist/types/components/Popover/Arrow.d.ts +4 -1
  147. package/dist/types/components/Popover/ContentWrapper.d.ts +4 -1
  148. package/dist/types/components/Radio/types.d.ts +1 -1
  149. package/dist/types/components/RadioGroup/index.d.ts +4 -1
  150. package/dist/types/components/Stepper/index.d.ts +8 -2
  151. package/dist/types/components/StickyNote/components/Button.d.ts +5 -0
  152. package/dist/types/components/StickyNote/components/Title.d.ts +5 -0
  153. package/dist/types/components/StickyNote/index.d.ts +11 -0
  154. package/dist/types/components/StickyNote/index.test.d.ts +1 -0
  155. package/dist/types/components/StickyNote/types.d.ts +15 -0
  156. package/dist/types/components/Swiper/index.d.ts +4 -1
  157. package/dist/types/components/Table/index.d.ts +20 -5
  158. package/dist/types/components/Tabs/components/ActiveBar/index.d.ts +4 -1
  159. package/dist/types/components/Tag/types.d.ts +4 -2
  160. package/dist/types/components/Textarea/types.d.ts +1 -0
  161. package/dist/types/components/Toast/components/Growl.d.ts +2 -0
  162. package/dist/types/components/Toast/index.d.ts +8 -2
  163. package/dist/types/components/Toast/types.d.ts +8 -9
  164. package/dist/types/components/Tooltip/types.d.ts +1 -1
  165. package/dist/types/theme/types.d.ts +255 -218
  166. package/dist/types/utils/index.d.ts +0 -1
  167. package/dist/{utils-DileZjMm.js → utils-BD597oo6.js} +1 -1
  168. package/dist/utils.js +3 -2
  169. package/package.json +3 -2
  170. package/dist/2W3RN7C5-bkX-rIa3.js +0 -61
  171. package/dist/4I4MLMKD-BLxAidnq.js +0 -43
  172. package/dist/GVVKDT6A-bET6V7Py.js +0 -724
  173. package/dist/SQZLCNLX-CHDXnZ16.js +0 -82
  174. package/dist/XCKGTAUF-DkxWCbaW.js +0 -25
  175. package/dist/index.css +0 -0
  176. package/dist/types/components/Icon/Icon.d.ts +0 -2
  177. package/dist/types/utils/theme/index.d.ts +0 -0
  178. /package/dist/{index-CdiHdiVB.js → index-PAaZGbyz.js} +0 -0
  179. /package/dist/types/components/Icon/{Icon.test.d.ts → index.test.d.ts} +0 -0
package/dist/Popover.js CHANGED
@@ -1,34 +1,37 @@
1
1
  "use client";
2
- import { jsx as r, jsxs as _ } from "react/jsx-runtime";
2
+ import './Popover.css';
3
+ import { jsx as r, jsxs as w } from "react/jsx-runtime";
3
4
  import { forwardRef as i } from "react";
4
- import { c as a } from "./index-CdiHdiVB.js";
5
- import { Button as h } from "./Button.js";
6
- import { Icon as b } from "./Icon.js";
7
- import { u as d } from "./RTNCFSKZ-qpPg689E.js";
8
- import { P, f as g, g as k, h as q, i as x, j as C } from "./GVVKDT6A-bET6V7Py.js";
9
- import { f as m } from "./forwardRefWithAs-8eP3ZN15.js";
10
- import { P as H } from "./4I4MLMKD-BLxAidnq.js";
11
- const N = "_root_kqbt9_2", $ = "_title_kqbt9_15", j = "_content_kqbt9_27", S = "_arrow_kqbt9_41", l = {
12
- root: N,
13
- title: $,
5
+ import { c as a } from "./index-PAaZGbyz.js";
6
+ import { Button as N } from "./Button.js";
7
+ import { Icon as k } from "./Icon.js";
8
+ import { b as q } from "./RTNCFSKZ-BywELldk.js";
9
+ import { P as C, b as H } from "./4I4MLMKD-BO6Lcy7s.js";
10
+ import { f as p } from "./forwardRefWithAs-8eP3ZN15.js";
11
+ import { e as x, f as y, g as T, h as $, P as S } from "./GVVKDT6A-CF9ejW_c.js";
12
+ const j = "_root_kqbt9_2", B = "_title_kqbt9_15", L = "_content_kqbt9_27", R = "_arrow_kqbt9_41", l = {
13
+ root: j,
14
+ title: B,
14
15
  "with-close-button": "_with-close-button_kqbt9_24",
15
16
  "content-wrapper": "_content-wrapper_kqbt9_27",
16
- content: j,
17
+ content: L,
17
18
  "close-button": "_close-button_kqbt9_34",
18
- arrow: S,
19
+ arrow: R,
19
20
  "arrow-item": "_arrow-item_kqbt9_44",
20
21
  "placement-top": "_placement-top_kqbt9_49",
21
22
  "placement-right": "_placement-right_kqbt9_52",
22
23
  "placement-left": "_placement-left_kqbt9_55",
23
24
  "placement-bottom": "_placement-bottom_kqbt9_58"
24
- }, T = a(l), v = i(
25
- ({ className: o, ...e }, t) => /* @__PURE__ */ r("div", { className: T("content", o), ref: t, ...e })
26
- ), p = a(l), B = ({ store: o }) => {
27
- const e = d(o, "currentPlacement"), [t] = e.split("-");
28
- return /* @__PURE__ */ r(P, { className: p("arrow"), store: o, children: /* @__PURE__ */ _(
25
+ }, z = a(l), m = i(
26
+ ({ className: t, ...e }, o) => /* @__PURE__ */ r("div", { className: z("content", t), ref: o, ...e })
27
+ );
28
+ m.displayName = "Popover.Content";
29
+ const u = a(l), b = ({ store: t }) => {
30
+ const e = q(t, "currentPlacement"), [o] = e.split("-");
31
+ return /* @__PURE__ */ r(C, { className: u("arrow"), store: t, children: /* @__PURE__ */ w(
29
32
  "svg",
30
33
  {
31
- className: p("arrow-item", t && `placement-${t}`),
34
+ className: u("arrow-item", o && `placement-${o}`),
32
35
  xmlns: "http://www.w3.org/2000/svg",
33
36
  children: [
34
37
  /* @__PURE__ */ r("path", { d: "M7 30L15 22L23 30H7Z", fill: "currentColor", fillRule: "nonzero", id: "stroke" }),
@@ -36,95 +39,109 @@ const N = "_root_kqbt9_2", $ = "_title_kqbt9_15", j = "_content_kqbt9_27", S = "
36
39
  ]
37
40
  }
38
41
  ) });
39
- }, u = a(l), w = ({ children: o, className: e, onClose: t, store: n }) => {
40
- const c = () => {
41
- t && t(), n == null || n.hide();
42
- }, { withCloseButton: s } = n;
43
- return /* @__PURE__ */ _("div", { className: u("content-wrapper", e), children: [
44
- /* @__PURE__ */ r(B, { store: n }),
45
- o,
46
- s ? /* @__PURE__ */ r(h, { className: u("close-button"), onClick: c, size: "sm", variant: "secondary", children: /* @__PURE__ */ r(b, { name: "times" }) }) : null
42
+ };
43
+ b.displayName = "Popover.Arrow";
44
+ const d = a(l), v = ({ children: t, className: e, onClose: o, store: n }) => {
45
+ const s = () => {
46
+ o && o(), n == null || n.hide();
47
+ }, { withCloseButton: c } = n;
48
+ return /* @__PURE__ */ w("div", { className: d("content-wrapper", e), children: [
49
+ /* @__PURE__ */ r(b, { store: n }),
50
+ t,
51
+ c ? /* @__PURE__ */ r(N, { className: d("close-button"), onClick: s, size: "sm", variant: "secondary", children: /* @__PURE__ */ r(k, { name: "times" }) }) : null
47
52
  ] });
48
- }, L = a(l), f = i(
49
- ({ className: o, ...e }, t) => /* @__PURE__ */ r("h6", { className: L("title", o), ref: t, ...e })
50
- ), R = m(
51
- ({ as: o, className: e, store: t, ...n }, c) => /* @__PURE__ */ r(
53
+ };
54
+ v.displayName = "Popover.ContentWrapper";
55
+ const A = a(l), _ = i(
56
+ ({ className: t, ...e }, o) => /* @__PURE__ */ r("h6", { className: A("title", t), ref: o, ...e })
57
+ );
58
+ _.displayName = "Popover.Title";
59
+ const P = p(
60
+ ({ as: t, className: e, store: o, ...n }, s) => /* @__PURE__ */ r(
52
61
  H,
53
62
  {
54
63
  className: e,
55
- ref: c,
56
- render: o ? (s) => /* @__PURE__ */ r(o, { ...s }) : void 0,
57
- store: t,
64
+ ref: s,
65
+ render: t ? (c) => /* @__PURE__ */ r(t, { ...c }) : void 0,
66
+ store: o,
58
67
  ...n
59
68
  }
60
69
  )
61
- ), z = m(
62
- ({ as: o, className: e, store: t, ...n }, c) => /* @__PURE__ */ r(
63
- g,
70
+ );
71
+ P.displayName = "Popover.Trigger";
72
+ const f = p(
73
+ ({ as: t, className: e, store: o, ...n }, s) => /* @__PURE__ */ r(
74
+ x,
64
75
  {
65
76
  className: e,
66
- ref: c,
67
- render: o ? (s) => /* @__PURE__ */ r(o, { ...s }) : void 0,
68
- store: t,
77
+ ref: s,
78
+ render: t ? (c) => /* @__PURE__ */ r(t, { ...c }) : void 0,
79
+ store: o,
69
80
  ...n
70
81
  }
71
82
  )
72
- ), y = a(l), A = m(
73
- ({ children: o, onClose: e, store: t, ...n }, c) => {
74
- const { withCloseButton: s } = t;
83
+ );
84
+ f.displayName = "Popover.HoverTrigger";
85
+ const W = a(l), h = p(
86
+ ({ children: t, onClose: e, store: o, ...n }, s) => {
87
+ const { withCloseButton: c } = o;
75
88
  return /* @__PURE__ */ r(
76
- k,
89
+ y,
77
90
  {
78
- className: y("root", s && "with-close-button"),
79
- store: t,
91
+ className: W("root", c && "with-close-button"),
92
+ store: o,
80
93
  ...n,
81
- ref: c,
82
- children: /* @__PURE__ */ r(w, { onClose: e, store: t, children: o })
94
+ ref: s,
95
+ children: /* @__PURE__ */ r(v, { onClose: e, store: o, children: t })
83
96
  }
84
97
  );
85
98
  }
86
- ), Q = Object.assign(A, {
87
- Content: v,
88
- Title: f,
89
- Trigger: z
99
+ );
100
+ h.displayName = "PopoverHover";
101
+ const Q = Object.assign(h, {
102
+ Content: m,
103
+ Title: _,
104
+ Trigger: f
90
105
  }), U = ({
91
- withCloseButton: o = !1,
106
+ withCloseButton: t = !1,
92
107
  ...e
93
108
  } = {}) => ({
94
- ...q({
109
+ ...T({
95
110
  ...e
96
111
  }),
97
- withCloseButton: o
112
+ withCloseButton: t
98
113
  }), V = ({
99
- hideTimeout: o = 300,
114
+ hideTimeout: t = 300,
100
115
  showTimeout: e = 500,
101
- withCloseButton: t = !1,
116
+ withCloseButton: o = !1,
102
117
  ...n
103
118
  } = {}) => ({
104
- ...x({
105
- hideTimeout: o,
119
+ ...$({
120
+ hideTimeout: t,
106
121
  showTimeout: e,
107
122
  ...n
108
123
  }),
109
- withCloseButton: t
110
- }), M = a(l), O = i(
111
- ({ children: o, onClose: e, store: t, ...n }, c) => {
112
- const { withCloseButton: s } = t;
124
+ withCloseButton: o
125
+ }), M = a(l), g = i(
126
+ ({ children: t, onClose: e, store: o, ...n }, s) => {
127
+ const { withCloseButton: c } = o;
113
128
  return /* @__PURE__ */ r(
114
- C,
129
+ S,
115
130
  {
116
- className: M("root", s && "with-close-button"),
117
- ref: c,
118
- store: t,
131
+ className: M("root", c && "with-close-button"),
132
+ ref: s,
133
+ store: o,
119
134
  ...n,
120
- children: /* @__PURE__ */ r(w, { onClose: e, store: t, children: o })
135
+ children: /* @__PURE__ */ r(v, { onClose: e, store: o, children: t })
121
136
  }
122
137
  );
123
138
  }
124
- ), X = Object.assign(O, {
125
- Content: v,
126
- Title: f,
127
- Trigger: R
139
+ );
140
+ g.displayName = "Popover";
141
+ const X = Object.assign(g, {
142
+ Content: m,
143
+ Title: _,
144
+ Trigger: P
128
145
  });
129
146
  export {
130
147
  X as Popover,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { i as ot, t as C, P as st, Q as at, R as ut, S as F, J as it, G as ct, I as ft, T as lt, U as dt, M as N, d as St, a as P, u as pt, V as vt } from "./OE2EFRVA-C3721cM3.js";
2
+ import { i as ot, x as C, S as st, T as at, U as ut, V as F, N as it, A as ct, B as ft, W as lt, X as dt, m as G, d as St, a as P, u as pt, Y as vt } from "./OE2EFRVA-Dg1R6gaC.js";
3
3
  import * as I from "react";
4
- import X from "react";
5
- import { g as _t } from "./index-CdiHdiVB.js";
6
- function T(t, n) {
4
+ import Q from "react";
5
+ import { g as _t } from "./index-PAaZGbyz.js";
6
+ function A(t, n) {
7
7
  const e = t.__unstableInternals;
8
8
  return ot(e, "Invalid store"), e[n];
9
9
  }
@@ -33,24 +33,24 @@ function W(t, ...n) {
33
33
  });
34
34
  })
35
35
  )
36
- ), A = [];
36
+ ), T = [];
37
37
  for (const L of v)
38
- A.push(L());
39
- const B = n.map(Z);
40
- return o = F(...w, ...A, ...B), b;
38
+ T.push(L());
39
+ const q = n.map(Z);
40
+ return o = F(...w, ...T, ...q), b;
41
41
  }, E = (s, r, b = m) => (b.add(r), d.set(r, s), () => {
42
42
  var w;
43
43
  (w = i.get(r)) == null || w(), i.delete(r), d.delete(r), b.delete(r);
44
- }), R = (s, r) => E(s, r), M = (s, r) => (i.set(r, r(e, e)), E(s, r)), q = (s, r) => (i.set(r, r(e, l)), E(s, r, _)), S = (s) => W(at(e, s), y), f = (s) => W(st(e, s), y), O = () => e, p = (s, r, b = !1) => {
44
+ }), R = (s, r) => E(s, r), B = (s, r) => (i.set(r, r(e, e)), E(s, r)), N = (s, r) => (i.set(r, r(e, l)), E(s, r, _)), S = (s) => W(at(e, s), y), f = (s) => W(st(e, s), y), O = () => e, p = (s, r, b = !1) => {
45
45
  var w;
46
46
  if (!C(e, s)) return;
47
- const A = it(r, e[s]);
48
- if (A === e[s]) return;
47
+ const T = it(r, e[s]);
48
+ if (T === e[s]) return;
49
49
  if (!b)
50
50
  for (const h of n)
51
- (w = h == null ? void 0 : h.setState) == null || w.call(h, s, A);
52
- const B = e;
53
- e = ct(ft({}, e), { [s]: A });
51
+ (w = h == null ? void 0 : h.setState) == null || w.call(h, s, T);
52
+ const q = e;
53
+ e = ct(ft({}, e), { [s]: T });
54
54
  const L = Symbol();
55
55
  a = L, c.add(s);
56
56
  const V = (h, D, U) => {
@@ -59,7 +59,7 @@ function W(t, ...n) {
59
59
  (!$ || $.some(rt)) && ((H = i.get(h)) == null || H(), i.set(h, h(e, D)));
60
60
  };
61
61
  for (const h of m)
62
- V(h, B);
62
+ V(h, q);
63
63
  queueMicrotask(() => {
64
64
  if (a !== L) return;
65
65
  const h = e;
@@ -74,8 +74,8 @@ function W(t, ...n) {
74
74
  setup: g,
75
75
  init: x,
76
76
  subscribe: R,
77
- sync: M,
78
- batch: q,
77
+ sync: B,
78
+ batch: N,
79
79
  pick: S,
80
80
  omit: f
81
81
  }
@@ -84,33 +84,33 @@ function W(t, ...n) {
84
84
  }
85
85
  function Rt(t, ...n) {
86
86
  if (t)
87
- return T(t, "setup")(...n);
87
+ return A(t, "setup")(...n);
88
88
  }
89
89
  function Z(t, ...n) {
90
90
  if (t)
91
- return T(t, "init")(...n);
91
+ return A(t, "init")(...n);
92
92
  }
93
93
  function k(t, ...n) {
94
94
  if (t)
95
- return T(t, "subscribe")(...n);
95
+ return A(t, "subscribe")(...n);
96
96
  }
97
97
  function tt(t, ...n) {
98
98
  if (t)
99
- return T(t, "sync")(...n);
99
+ return A(t, "sync")(...n);
100
100
  }
101
101
  function ht(t, ...n) {
102
102
  if (t)
103
- return T(t, "batch")(...n);
103
+ return A(t, "batch")(...n);
104
104
  }
105
105
  function Vt(t, ...n) {
106
106
  if (t)
107
- return T(t, "omit")(...n);
107
+ return A(t, "omit")(...n);
108
108
  }
109
- function Tt(t, ...n) {
109
+ function At(t, ...n) {
110
110
  if (t)
111
- return T(t, "pick")(...n);
111
+ return A(t, "pick")(...n);
112
112
  }
113
- function At(...t) {
113
+ function Tt(...t) {
114
114
  var n;
115
115
  const e = {};
116
116
  for (const a of t) {
@@ -150,11 +150,11 @@ If there's a particular need for this, please submit a feature request at https:
150
150
  `
151
151
  );
152
152
  }
153
- var j = { exports: {} }, G = {}, Y;
153
+ var j = { exports: {} }, K = {}, Y;
154
154
  function mt() {
155
- if (Y) return G;
155
+ if (Y) return K;
156
156
  Y = 1;
157
- var t = X;
157
+ var t = Q;
158
158
  function n(i, d) {
159
159
  return i === d && (i !== 0 || 1 / i === 1 / d) || i !== i && d !== d;
160
160
  }
@@ -183,13 +183,13 @@ function mt() {
183
183
  return d();
184
184
  }
185
185
  var _ = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? m : c;
186
- return G.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : _, G;
186
+ return K.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : _, K;
187
187
  }
188
- var K = {}, J;
188
+ var M = {}, X;
189
189
  function Et() {
190
- return J || (J = 1, process.env.NODE_ENV !== "production" && function() {
190
+ return X || (X = 1, process.env.NODE_ENV !== "production" && function() {
191
191
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
192
- var t = X, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
192
+ var t = Q, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
193
193
  function e(S) {
194
194
  {
195
195
  for (var f = arguments.length, O = new Array(f > 1 ? f - 1 : 0), p = 1; p < f; p++)
@@ -252,13 +252,13 @@ function Et() {
252
252
  function x(S, f, O) {
253
253
  return f();
254
254
  }
255
- var E = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", R = !E, M = R ? x : d, q = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : M;
256
- K.useSyncExternalStore = q, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
257
- }()), K;
255
+ var E = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", R = !E, B = R ? x : d, N = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : B;
256
+ M.useSyncExternalStore = N, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
257
+ }()), M;
258
258
  }
259
- var Q;
259
+ var J;
260
260
  function gt() {
261
- return Q || (Q = 1, process.env.NODE_ENV === "production" ? j.exports = mt() : j.exports = Et()), j.exports;
261
+ return J || (J = 1, process.env.NODE_ENV === "production" ? j.exports = mt() : j.exports = Et()), j.exports;
262
262
  }
263
263
  var Ot = gt();
264
264
  const bt = /* @__PURE__ */ _t(Ot);
@@ -304,10 +304,10 @@ function It(t, n) {
304
304
  }
305
305
  function Ct(t, n, e, l) {
306
306
  const a = C(n, e) ? n[e] : void 0, o = l ? n[l] : void 0, u = vt({ value: a, setValue: o });
307
- N(() => tt(t, [e], (c, v) => {
307
+ G(() => tt(t, [e], (c, v) => {
308
308
  const { value: m, setValue: _ } = u.current;
309
309
  _ && c[e] !== v[e] && c[e] !== m && _(c[e]);
310
- }), [t, e]), N(() => {
310
+ }), [t, e]), G(() => {
311
311
  if (a !== void 0)
312
312
  return t.setState(e, a), ht(t, [e], () => {
313
313
  a !== void 0 && t.setState(e, a);
@@ -316,7 +316,7 @@ function Ct(t, n, e, l) {
316
316
  }
317
317
  function Ut(t, n) {
318
318
  const [e, l] = I.useState(() => t(n));
319
- N(() => Z(e), [e]);
319
+ G(() => Z(e), [e]);
320
320
  const a = I.useCallback(
321
321
  (c) => yt(e, c),
322
322
  [e]
@@ -329,18 +329,18 @@ function Ut(t, n) {
329
329
  return [o, u];
330
330
  }
331
331
  export {
332
- tt as a,
333
- Ut as b,
332
+ Ct as a,
333
+ yt as b,
334
334
  W as c,
335
- Ct as d,
335
+ tt as d,
336
336
  k as e,
337
337
  ht as f,
338
338
  It as g,
339
339
  Z as i,
340
- At as m,
340
+ Tt as m,
341
341
  Vt as o,
342
- Tt as p,
342
+ At as p,
343
343
  Rt as s,
344
344
  Dt as t,
345
- yt as u
345
+ Ut as u
346
346
  };
package/dist/Radio.css CHANGED
@@ -1 +1 @@
1
- @layer components{._root_b4f3u_2{display:flex;align-items:flex-start;gap:var(--components-dimensions-radio-indicator-size);flex-direction:row}._input-wrapper_b4f3u_8{flex-shrink:0;position:relative;align-items:center;display:flex;align-self:flex-start}._input_b4f3u_8{border-radius:var(--components-dimensions-radio-indicator-border-radius);order:-1;position:relative;outline:none;padding:0;transition:var(--duration-medium) var(--timing-primary);border-style:solid;border-width:var(--components-dimensions-radio-border-width-unchecked);border-color:var(--borderColor, var(--components-colors-radio-color-border-unchecked-default));color:var(--components-colors-radio-color-background-unchecked-default);height:var(--components-dimensions-radio-size);width:var(--components-dimensions-radio-size);margin-top:var(--border-radius-sm);cursor:var(--inputCursor, pointer)}._input_b4f3u_8:hover{--borderColor: var(--components-colors-radio-color-border-unchecked-hover)}._input_b4f3u_8._disabled_b4f3u_34{background-color:var(--components-colors-radio-indicator-color-background-disabled);--inputCursor: not-allowed}._input_b4f3u_8._variant-danger_b4f3u_38{--borderColor: var(--color-background-danger-strongest)}._input_b4f3u_8._variant-warning_b4f3u_41{--borderColor: var(--color-background-warning-stronger)}._input_b4f3u_8:after{content:"";position:absolute;width:var(--components-dimensions-radio-indicator-size);height:var(--components-dimensions-radio-indicator-size);border-radius:var(--components-dimensions-radio-indicator-border-radius);top:calc((var(--components-dimensions-radio-size) - var(--components-dimensions-radio-indicator-size)) / 2 - var(--components-dimensions-radio-border-width-unchecked));left:calc((var(--components-dimensions-radio-size) - var(--components-dimensions-radio-indicator-size)) / 2 - var(--components-dimensions-radio-border-width-unchecked));transition:var(--duration-medium);background-color:var(--backgroundColor, transparent)}._input_b4f3u_8[aria-checked=true]:not([disabled]){--borderColor: var(--components-colors-radio-indicator-color-background-default);color:var(--color-background-neutral-primary-fixed)}._input_b4f3u_8[aria-checked=true][disabled]:after{--backgroundColor: var(--components-colors-radio-indicator-color-background-hover)}._input_b4f3u_8[aria-checked=true]:after{--backgroundColor: var(--components-colors-radio-indicator-color-background-default)}._label-with-hint_b4f3u_67{display:flex;flex-direction:column}._hint_b4f3u_71{margin-top:0}}
1
+ @layer components{._root_yfym3_2{display:flex;align-items:flex-start;flex-direction:row;gap:var(--components-dimensions-radio-indicator-size)}._input-wrapper_yfym3_8{display:flex;position:relative;align-items:center;align-self:flex-start;flex-shrink:0}._input_yfym3_8{position:relative;order:-1;padding:0;margin-top:var(--border-radius-sm);width:var(--components-dimensions-radio-size);height:var(--components-dimensions-radio-size);border-style:solid;border-radius:var(--components-dimensions-radio-indicator-border-radius);border-width:var(--borderWidth, var(--components-dimensions-radio-border-width-unchecked));border-color:var(--borderColor, var(--components-colors-radio-color-border-unchecked-default));color:var(--components-colors-radio-color-background-unchecked-default);cursor:var(--inputCursor, pointer);outline:none;box-shadow:var(--inputBoxShadow, var(--inset-5)) inset}._input_yfym3_8:focus-visible:not([disabled]){outline-style:solid;outline-width:var(--components-dimensions-radio-border-width-focused);outline-color:var(--components-colors-radio-color-border-focused);outline-offset:0px}._input_yfym3_8:hover{--borderColor: var(--components-colors-radio-color-border-unchecked-hover);--inputBoxShadow: var(--inset-10)}._input_yfym3_8:disabled{background-color:var(--components-colors-radio-color-background-unchecked-disabled);border-color:var(--components-colors-radio-color-border-unchecked-disabled);--inputCursor: not-allowed;--inputBoxShadow: none}._input_yfym3_8._variant-danger_yfym3_47{--borderColor: var(--color-background-danger-strongest)}._input_yfym3_8:after{content:"";position:absolute;width:var(--components-dimensions-radio-indicator-size);height:var(--components-dimensions-radio-indicator-size);border-radius:var(--components-dimensions-radio-indicator-border-radius);top:calc((var(--components-dimensions-radio-size) - var(--components-dimensions-radio-indicator-size)) / 2 - var(--components-dimensions-radio-border-width-checked));left:calc((var(--components-dimensions-radio-size) - var(--components-dimensions-radio-indicator-size)) / 2 - var(--components-dimensions-radio-border-width-checked));background-color:var(--backgroundColor, transparent)}._input_yfym3_8[aria-checked=true]{--backgroundColor: var(--components-colors-radio-indicator-color-background-default);--borderWidth: var(--components-dimensions-radio-border-width-checked)}._input_yfym3_8[aria-checked=true]:not([disabled]){--borderColor: var(--components-colors-radio-indicator-color-background-default);color:var(--color-background-neutral-primary-fixed)}._input_yfym3_8[aria-checked=true]:not([disabled]):hover{--backgroundColor: var(--components-colors-radio-indicator-color-background-hover);--borderColor: var(--components-colors-radio-indicator-color-background-hover)}._input_yfym3_8[aria-checked=true][disabled]{--backgroundColor: var(--components-colors-radio-indicator-color-background-disabled)}._label-with-hint_yfym3_77{display:flex;flex-direction:column}._hint_yfym3_81{margin-top:0}}
package/dist/Radio.js CHANGED
@@ -1,63 +1,62 @@
1
1
  "use client";
2
- import { jsxs as d, jsx as t } from "react/jsx-runtime";
3
- import { R as b } from "./SQZLCNLX-CHDXnZ16.js";
4
- import { forwardRef as h } from "react";
2
+ import './Radio.css';
3
+ import { jsxs as m, jsx as r } from "react/jsx-runtime";
4
+ import { R as y } from "./SQZLCNLX-Dg4KKdNJ.js";
5
+ import { forwardRef as u } from "react";
5
6
  import { Hint as w } from "./Hint.js";
6
- import { Label as v } from "./Label.js";
7
- import { c as N } from "./index-CdiHdiVB.js";
8
- const R = "_root_b4f3u_2", g = "_input_b4f3u_8", x = "_disabled_b4f3u_34", $ = "_hint_b4f3u_71", j = {
7
+ import { Label as N } from "./Label.js";
8
+ import { c as v } from "./index-PAaZGbyz.js";
9
+ const R = "_root_yfym3_2", b = "_input_yfym3_8", x = "_hint_yfym3_81", $ = {
9
10
  root: R,
10
- "input-wrapper": "_input-wrapper_b4f3u_8",
11
- input: g,
12
- disabled: x,
13
- "variant-danger": "_variant-danger_b4f3u_38",
14
- "variant-warning": "_variant-warning_b4f3u_41",
15
- "label-with-hint": "_label-with-hint_b4f3u_67",
16
- hint: $
17
- }, a = N(j), y = h(
11
+ "input-wrapper": "_input-wrapper_yfym3_8",
12
+ input: b,
13
+ "variant-danger": "_variant-danger_yfym3_47",
14
+ "label-with-hint": "_label-with-hint_yfym3_77",
15
+ hint: x
16
+ }, t = v($), g = u(
18
17
  ({
19
- className: _,
18
+ className: e,
20
19
  dataTestId: i,
21
- disabled: n,
22
- hint: o,
23
- label: s,
20
+ disabled: p,
21
+ hint: n,
22
+ label: a,
24
23
  onChange: l,
25
- onClick: e,
24
+ onClick: s,
26
25
  value: c,
27
- variant: p = "default",
28
- ...f
29
- }, m) => {
30
- const u = (r) => {
31
- r.stopPropagation(), e && e(r), l && l(r);
26
+ variant: d = "default",
27
+ ..._
28
+ }, f) => {
29
+ const h = (o) => {
30
+ o.stopPropagation(), s && s(o), l && l(o);
32
31
  };
33
- return /* @__PURE__ */ d(v, { className: a("root", _), onClick: u, children: [
34
- /* @__PURE__ */ t("div", { className: a("input-wrapper"), children: /* @__PURE__ */ t(
35
- b,
32
+ return /* @__PURE__ */ m(N, { className: t("root", e), onClick: h, children: [
33
+ /* @__PURE__ */ r("div", { className: t("input-wrapper"), children: /* @__PURE__ */ r(
34
+ y,
36
35
  {
37
- "aria-label": s,
38
- className: a("input", `variant-${p}`, n && "disabled"),
36
+ "aria-label": a,
37
+ className: t("input", `variant-${d}`),
39
38
  "data-testid": i,
40
- disabled: n,
41
- ref: m,
39
+ disabled: p,
40
+ ref: f,
42
41
  value: c,
43
- ...f
42
+ ..._
44
43
  }
45
44
  ) }),
46
- /* @__PURE__ */ d("div", { className: a("label-with-hint"), children: [
47
- /* @__PURE__ */ t("div", { "data-testid": i ? `${i}-label` : void 0, children: s }),
48
- o ? /* @__PURE__ */ t(
45
+ a ? /* @__PURE__ */ m("div", { className: t("label-with-hint"), children: [
46
+ /* @__PURE__ */ r("div", { "data-testid": i ? `${i}-label` : void 0, children: a }),
47
+ n ? /* @__PURE__ */ r(
49
48
  w,
50
49
  {
51
- className: a("hint"),
50
+ className: t("hint"),
52
51
  "data-testid": i ? `${i}-hint` : void 0,
53
- children: o
52
+ children: n
54
53
  }
55
54
  ) : null
56
- ] })
55
+ ] }) : null
57
56
  ] });
58
57
  }
59
58
  );
60
- y.displayName = "Radio";
59
+ g.displayName = "Radio";
61
60
  export {
62
- y as Radio
61
+ g as Radio
63
62
  };
@@ -1,56 +1,57 @@
1
1
  "use client";
2
+ import './RadioGroup.css';
2
3
  import { jsx as n } from "react/jsx-runtime";
3
- import { c as G, u as P } from "./B7UTNDHN-BlIblHCu.js";
4
- import { c as $, b, d as x, u as L } from "./RTNCFSKZ-qpPg689E.js";
5
- import { F as j, G as d, H as v, I as c } from "./OE2EFRVA-C3721cM3.js";
6
- import { FieldGroup as y } from "./FieldGroup.js";
7
- import { Radio as F } from "./Radio.js";
8
- import { c as N } from "./index-CdiHdiVB.js";
4
+ import { c as G, u as P } from "./B7UTNDHN-BghjolIs.js";
5
+ import { c as $, u as b, a as x, b as y } from "./RTNCFSKZ-BywELldk.js";
6
+ import { M as L, A as d, z as p, B as i } from "./OE2EFRVA-Dg1R6gaC.js";
7
+ import { FieldGroup as N } from "./FieldGroup.js";
8
+ import { Radio as j } from "./Radio.js";
9
+ import { c as k } from "./index-PAaZGbyz.js";
9
10
  import "react";
10
- function k(t = {}) {
11
- var e = j(t, []), a;
12
- const r = (a = e.store) == null ? void 0 : a.getState(), s = G(d(c({}, e), {
13
- focusLoop: v(e.focusLoop, r == null ? void 0 : r.focusLoop, !0)
14
- })), i = d(c({}, s.getState()), {
15
- value: v(
11
+ function z(t = {}) {
12
+ var e = L(t, []), a;
13
+ const r = (a = e.store) == null ? void 0 : a.getState(), s = G(d(i({}, e), {
14
+ focusLoop: p(e.focusLoop, r == null ? void 0 : r.focusLoop, !0)
15
+ })), c = d(i({}, s.getState()), {
16
+ value: p(
16
17
  e.value,
17
18
  r == null ? void 0 : r.value,
18
19
  e.defaultValue,
19
20
  null
20
21
  )
21
- }), u = $(i, s, e.store);
22
- return d(c(c({}, s), u), {
22
+ }), u = $(c, s, e.store);
23
+ return d(i(i({}, s), u), {
23
24
  setValue: (l) => u.setState("value", l)
24
25
  });
25
26
  }
26
- function H(t, e, a) {
27
+ function A(t, e, a) {
27
28
  return t = P(t, e, a), x(t, a, "value", "setValue"), t;
28
29
  }
29
- function O(t = {}) {
30
- const [e, a] = b(k, t);
31
- return H(e, a, t);
30
+ function B(t = {}) {
31
+ const [e, a] = b(z, t);
32
+ return A(e, a, t);
32
33
  }
33
- const g = "_root_17iu3_2", q = {
34
- root: g
35
- }, w = N(q), K = ({
34
+ const F = "_root_17iu3_2", M = {
35
+ root: F
36
+ }, O = k(M), g = ({
36
37
  className: t,
37
38
  dataTestId: e,
38
39
  disabled: a,
39
40
  hideLabel: r,
40
41
  id: s,
41
- label: i,
42
+ label: c,
42
43
  name: u,
43
44
  onChange: l,
44
- options: p = [],
45
- renderOption: f = F,
45
+ options: v = [],
46
+ renderOption: f = j,
46
47
  required: S,
47
48
  value: _,
48
49
  ...V
49
50
  }) => {
50
- const m = O({ defaultValue: _ }), R = L(m, "value"), h = (o) => {
51
+ const m = B({ defaultValue: _ }), R = y(m, "value"), h = (o) => {
51
52
  a || (m.setValue(o), l == null || l(o));
52
53
  };
53
- return /* @__PURE__ */ n(y, { "data-testid": e, hideLabel: r, label: i, required: S, children: /* @__PURE__ */ n("div", { className: w("root", t), children: p.map((o) => /* @__PURE__ */ n(
54
+ return /* @__PURE__ */ n(N, { "data-testid": e, hideLabel: r, label: c, required: S, children: /* @__PURE__ */ n("div", { className: O("root", t), children: v.map((o) => /* @__PURE__ */ n(
54
55
  f,
55
56
  {
56
57
  checked: o.value === R,
@@ -67,6 +68,7 @@ const g = "_root_17iu3_2", q = {
67
68
  o.value
68
69
  )) }) });
69
70
  };
71
+ g.displayName = "RadioGroup";
70
72
  export {
71
- K as RadioGroup
73
+ g as RadioGroup
72
74
  };
package/dist/RadioTab.js CHANGED
@@ -1,9 +1,10 @@
1
1
  "use client";
2
+ import './RadioTab.css';
2
3
  import { jsxs as u, jsx as a } from "react/jsx-runtime";
3
- import { R as _ } from "./SQZLCNLX-CHDXnZ16.js";
4
+ import { R as _ } from "./SQZLCNLX-Dg4KKdNJ.js";
4
5
  import { forwardRef as d } from "react";
5
6
  import { Button as y } from "./Button.js";
6
- import { c as f } from "./index-CdiHdiVB.js";
7
+ import { c as f } from "./index-PAaZGbyz.js";
7
8
  const b = "_label_12uyi_2", N = "_checked_12uyi_7", h = "_input_12uyi_16", R = "_content_12uyi_26", v = {
8
9
  label: b,
9
10
  checked: N,