@sakura-ui/sakura-ui 0.3.0 → 0.4.1

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 (129) hide show
  1. package/README.md +61 -0
  2. package/package.json +26 -25
  3. package/packages/core/package.json +10 -8
  4. package/packages/core/src/components/Button.tsx +1 -1
  5. package/packages/core/src/components/Card.tsx +8 -3
  6. package/packages/core/src/components/IconButton.tsx +1 -1
  7. package/packages/core/src/components/LangSelector.tsx +2 -2
  8. package/packages/core/src/components/Link.tsx +0 -1
  9. package/packages/core/src/components/LinkCard.tsx +87 -52
  10. package/packages/core/src/components/MenuButton.tsx +2 -2
  11. package/packages/core/src/components/NavigationItem.tsx +1 -1
  12. package/packages/core/src/components/NotificationBanner.tsx +20 -0
  13. package/packages/core/src/components/PopoverMenu.tsx +1 -0
  14. package/packages/core/src/components/buttonStyle.ts +1 -1
  15. package/packages/core/src/components/index.ts +1 -1
  16. package/packages/core/src/icons/index.ts +1 -1
  17. package/packages/core/src/index.ts +1 -0
  18. package/packages/core/vite.config.ts +2 -1
  19. package/packages/forms/.turbo/turbo-build.log +12 -22
  20. package/packages/forms/dist/index.cjs.js +53 -80
  21. package/packages/forms/dist/index.es.js +484 -663
  22. package/packages/forms/dist/types/components/Checkbox.d.ts +2 -2
  23. package/packages/forms/dist/types/components/Checkbox.d.ts.map +1 -1
  24. package/packages/forms/dist/types/components/FieldsetControl.d.ts +2 -2
  25. package/packages/forms/dist/types/components/FieldsetControl.d.ts.map +1 -1
  26. package/packages/forms/dist/types/components/FileInput.d.ts +2 -2
  27. package/packages/forms/dist/types/components/FileInput.d.ts.map +1 -1
  28. package/packages/forms/dist/types/components/Input.d.ts +2 -2
  29. package/packages/forms/dist/types/components/Input.d.ts.map +1 -1
  30. package/packages/forms/dist/types/components/LabelControl.d.ts +2 -2
  31. package/packages/forms/dist/types/components/LabelControl.d.ts.map +1 -1
  32. package/packages/forms/dist/types/components/Radio.d.ts +2 -2
  33. package/packages/forms/dist/types/components/Radio.d.ts.map +1 -1
  34. package/packages/forms/dist/types/components/Select.d.ts +2 -2
  35. package/packages/forms/dist/types/components/Select.d.ts.map +1 -1
  36. package/packages/forms/dist/types/components/Textarea.d.ts +2 -2
  37. package/packages/forms/dist/types/components/Textarea.d.ts.map +1 -1
  38. package/packages/forms/dist/types/components/controlled/CheckboxGroup.d.ts +1 -1
  39. package/packages/forms/dist/types/components/controlled/RadioGroup.d.ts +1 -1
  40. package/packages/forms/dist/types/components/inputStyle.d.ts +1 -1
  41. package/packages/forms/dist/types/components/inputStyle.d.ts.map +1 -1
  42. package/packages/forms/node_modules/.bin/autoprefixer +44 -6
  43. package/packages/forms/package.json +9 -7
  44. package/packages/forms/src/components/Checkbox.tsx +1 -1
  45. package/packages/forms/src/components/FileInput.tsx +5 -0
  46. package/packages/forms/src/components/Radio.tsx +2 -0
  47. package/packages/forms/tests/FieldsetControl.test.tsx +8 -2
  48. package/packages/forms/tests/LabelControl.test.tsx +8 -2
  49. package/packages/forms/vite.config.ts +2 -1
  50. package/packages/helper/.turbo/turbo-build.log +12 -23
  51. package/packages/helper/dist/index.cjs.js +7 -9
  52. package/packages/helper/dist/index.es.js +23 -23
  53. package/packages/helper/dist/types/calc.d.ts.map +1 -1
  54. package/packages/helper/dist/types/cx.d.ts.map +1 -1
  55. package/packages/helper/dist/types/styles.d.ts +9 -9
  56. package/packages/helper/dist/types/styles.d.ts.map +1 -1
  57. package/packages/helper/dist/types/treefy.d.ts.map +1 -1
  58. package/packages/helper/node_modules/.bin/vitest +55 -0
  59. package/packages/helper/package.json +13 -3
  60. package/packages/helper/src/cx.ts +1 -1
  61. package/packages/helper/src/styles.ts +2 -4
  62. package/packages/helper/src/treefy.ts +3 -1
  63. package/packages/helper/tests/calc.test.ts +22 -0
  64. package/packages/helper/tests/cx.test.ts +30 -0
  65. package/packages/helper/tests/querySelector.test.ts +24 -0
  66. package/packages/helper/tests/treefy.test.ts +111 -0
  67. package/packages/helper/tests/vitest.setup.ts +2 -0
  68. package/packages/markdown/.turbo/turbo-build.log +12 -22
  69. package/packages/markdown/dist/index.cjs.js +37 -63
  70. package/packages/markdown/dist/index.es.js +4287 -4425
  71. package/packages/markdown/dist/types/components/Markdown.d.ts.map +1 -1
  72. package/packages/markdown/dist/types/plugins/attr.d.ts.map +1 -1
  73. package/packages/markdown/dist/types/plugins/card.d.ts.map +1 -1
  74. package/packages/markdown/dist/types/plugins/cell.d.ts.map +1 -1
  75. package/packages/markdown/dist/types/plugins/faq.d.ts.map +1 -1
  76. package/packages/markdown/dist/types/plugins/grid.d.ts.map +1 -1
  77. package/packages/markdown/dist/types/plugins/headings.d.ts +3 -1
  78. package/packages/markdown/dist/types/plugins/headings.d.ts.map +1 -1
  79. package/packages/markdown/dist/types/plugins/helper.d.ts.map +1 -1
  80. package/packages/markdown/dist/types/plugins/linkButton.d.ts.map +1 -1
  81. package/packages/markdown/dist/types/plugins/youtube.d.ts.map +1 -1
  82. package/packages/markdown/node_modules/.bin/autoprefixer +44 -6
  83. package/packages/markdown/package.json +16 -15
  84. package/packages/markdown/src/components/Markdown.tsx +4 -0
  85. package/packages/markdown/src/plugins/grid.ts +4 -1
  86. package/packages/markdown/src/plugins/headings.ts +6 -3
  87. package/packages/markdown/src/plugins/linkButton.ts +2 -1
  88. package/packages/markdown/src/plugins/youtube.ts +5 -4
  89. package/packages/tailwind-theme-plugin/#package.json# +51 -0
  90. package/packages/tailwind-theme-plugin/.turbo/turbo-build.log +12 -22
  91. package/packages/tailwind-theme-plugin/dist/index.cjs.js +1 -1
  92. package/packages/tailwind-theme-plugin/dist/index.es.js +1111 -1477
  93. package/packages/tailwind-theme-plugin/dist/types/index.d.ts +1 -4
  94. package/packages/tailwind-theme-plugin/dist/types/index.d.ts.map +1 -1
  95. package/packages/tailwind-theme-plugin/node_modules/.bin/autoprefixer +44 -6
  96. package/packages/tailwind-theme-plugin/package.json +8 -6
  97. package/packages/tailwind-theme-plugin/src/index.ts +15 -58
  98. package/packages/tailwind-theme-plugin/vite.config.ts +2 -0
  99. package/packages/forms/node_modules/.bin/tailwind +0 -17
  100. package/packages/forms/node_modules/.bin/tailwindcss +0 -17
  101. package/packages/forms/node_modules/.bin/ts-node +0 -17
  102. package/packages/forms/node_modules/.bin/ts-node-cwd +0 -17
  103. package/packages/forms/node_modules/.bin/ts-node-esm +0 -17
  104. package/packages/forms/node_modules/.bin/ts-node-script +0 -17
  105. package/packages/forms/node_modules/.bin/ts-node-transpile-only +0 -17
  106. package/packages/forms/node_modules/.bin/ts-script +0 -17
  107. package/packages/forms/node_modules/.bin/tsc +0 -17
  108. package/packages/forms/node_modules/.bin/tsserver +0 -17
  109. package/packages/forms/node_modules/.vite/vitest/results.json +0 -1
  110. package/packages/markdown/node_modules/.bin/tailwind +0 -17
  111. package/packages/markdown/node_modules/.bin/tailwindcss +0 -17
  112. package/packages/markdown/node_modules/.bin/ts-node +0 -17
  113. package/packages/markdown/node_modules/.bin/ts-node-cwd +0 -17
  114. package/packages/markdown/node_modules/.bin/ts-node-esm +0 -17
  115. package/packages/markdown/node_modules/.bin/ts-node-script +0 -17
  116. package/packages/markdown/node_modules/.bin/ts-node-transpile-only +0 -17
  117. package/packages/markdown/node_modules/.bin/ts-script +0 -17
  118. package/packages/markdown/node_modules/.bin/tsc +0 -17
  119. package/packages/markdown/node_modules/.bin/tsserver +0 -17
  120. package/packages/tailwind-theme-plugin/node_modules/.bin/tailwind +0 -17
  121. package/packages/tailwind-theme-plugin/node_modules/.bin/tailwindcss +0 -17
  122. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node +0 -17
  123. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-cwd +0 -17
  124. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-esm +0 -17
  125. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-script +0 -17
  126. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-node-transpile-only +0 -17
  127. package/packages/tailwind-theme-plugin/node_modules/.bin/ts-script +0 -17
  128. package/packages/tailwind-theme-plugin/node_modules/.bin/tsc +0 -17
  129. package/packages/tailwind-theme-plugin/node_modules/.bin/tsserver +0 -17
@@ -1,329 +1,148 @@
1
1
  import R from "react";
2
- var z = { exports: {} }, q = {};
3
- /**
4
- * @license React
5
- * react-jsx-runtime.production.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var ye;
13
- function Me() {
14
- if (ye) return q;
15
- ye = 1;
16
- var s = Symbol.for("react.transitional.element"), d = Symbol.for("react.fragment");
17
- function f(b, i, o) {
18
- var n = null;
19
- if (o !== void 0 && (n = "" + o), i.key !== void 0 && (n = "" + i.key), "key" in i) {
20
- o = {};
21
- for (var g in i)
22
- g !== "key" && (o[g] = i[g]);
23
- } else o = i;
24
- return i = o.ref, {
25
- $$typeof: s,
26
- type: b,
27
- key: n,
28
- ref: i !== void 0 ? i : null,
29
- props: o
2
+ var I = { exports: {} }, E = {};
3
+ var W;
4
+ function fe() {
5
+ if (W) return E;
6
+ W = 1;
7
+ var r = /* @__PURE__ */ Symbol.for("react.transitional.element"), i = /* @__PURE__ */ Symbol.for("react.fragment");
8
+ function c(n, a, s) {
9
+ var o = null;
10
+ if (s !== void 0 && (o = "" + s), a.key !== void 0 && (o = "" + a.key), "key" in a) {
11
+ s = {};
12
+ for (var u in a)
13
+ u !== "key" && (s[u] = a[u]);
14
+ } else s = a;
15
+ return a = s.ref, {
16
+ $$typeof: r,
17
+ type: n,
18
+ key: o,
19
+ ref: a !== void 0 ? a : null,
20
+ props: s
30
21
  };
31
22
  }
32
- return q.Fragment = d, q.jsx = f, q.jsxs = f, q;
23
+ return E.Fragment = i, E.jsx = c, E.jsxs = c, E;
33
24
  }
34
- var M = {};
35
- /**
36
- * @license React
37
- * react-jsx-runtime.development.js
38
- *
39
- * Copyright (c) Meta Platforms, Inc. and affiliates.
40
- *
41
- * This source code is licensed under the MIT license found in the
42
- * LICENSE file in the root directory of this source tree.
43
- */
44
- var Ee;
45
- function Ye() {
46
- return Ee || (Ee = 1, process.env.NODE_ENV !== "production" && function() {
47
- function s(e) {
25
+ var _ = {};
26
+ var B;
27
+ function pe() {
28
+ return B || (B = 1, process.env.NODE_ENV !== "production" && (function() {
29
+ function r(e) {
48
30
  if (e == null) return null;
49
31
  if (typeof e == "function")
50
- return e.$$typeof === $e ? null : e.displayName || e.name || null;
32
+ return e.$$typeof === de ? null : e.displayName || e.name || null;
51
33
  if (typeof e == "string") return e;
52
34
  switch (e) {
53
- case U:
35
+ case k:
54
36
  return "Fragment";
55
- case Pe:
56
- return "Portal";
57
- case se:
37
+ case re:
58
38
  return "Profiler";
59
- case te:
39
+ case ee:
60
40
  return "StrictMode";
61
- case G:
41
+ case ae:
62
42
  return "Suspense";
63
- case H:
43
+ case oe:
64
44
  return "SuspenseList";
45
+ case ne:
46
+ return "Activity";
65
47
  }
66
48
  if (typeof e == "object")
67
49
  switch (typeof e.tag == "number" && console.error(
68
50
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
51
  ), e.$$typeof) {
70
- case le:
71
- return (e.displayName || "Context") + ".Provider";
72
- case oe:
52
+ case K:
53
+ return "Portal";
54
+ case te:
55
+ return e.displayName || "Context";
56
+ case se:
73
57
  return (e._context.displayName || "Context") + ".Consumer";
74
- case F:
75
- var r = e.render;
76
- return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
77
- case J:
78
- return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
79
- case V:
80
- r = e._payload, e = e._init;
58
+ case le:
59
+ var l = e.render;
60
+ return e = e.displayName, e || (e = l.displayName || l.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
61
+ case ie:
62
+ return l = e.displayName || null, l !== null ? l : r(e.type) || "Memo";
63
+ case P:
64
+ l = e._payload, e = e._init;
81
65
  try {
82
- return s(e(r));
66
+ return r(e(l));
83
67
  } catch {
84
68
  }
85
69
  }
86
70
  return null;
87
71
  }
88
- function d(e) {
72
+ function i(e) {
89
73
  return "" + e;
90
74
  }
91
- function f(e) {
75
+ function c(e) {
92
76
  try {
93
- d(e);
94
- var r = !1;
77
+ i(e);
78
+ var l = !1;
95
79
  } catch {
96
- r = !0;
80
+ l = !0;
97
81
  }
98
- if (r) {
99
- r = console;
100
- var t = r.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
101
- return t.call(
102
- r,
82
+ if (l) {
83
+ l = console;
84
+ var p = l.error, b = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
85
+ return p.call(
86
+ l,
103
87
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
104
- u
105
- ), d(e);
106
- }
107
- }
108
- function b() {
109
- }
110
- function i() {
111
- if ($ === 0) {
112
- ne = console.log, ce = console.info, de = console.warn, ue = console.error, fe = console.group, be = console.groupCollapsed, ge = console.groupEnd;
113
- var e = {
114
- configurable: !0,
115
- enumerable: !0,
116
- value: b,
117
- writable: !0
118
- };
119
- Object.defineProperties(console, {
120
- info: e,
121
- log: e,
122
- warn: e,
123
- error: e,
124
- group: e,
125
- groupCollapsed: e,
126
- groupEnd: e
127
- });
88
+ b
89
+ ), i(e);
128
90
  }
129
- $++;
130
- }
131
- function o() {
132
- if ($--, $ === 0) {
133
- var e = { configurable: !0, enumerable: !0, writable: !0 };
134
- Object.defineProperties(console, {
135
- log: S({}, e, { value: ne }),
136
- info: S({}, e, { value: ce }),
137
- warn: S({}, e, { value: de }),
138
- error: S({}, e, { value: ue }),
139
- group: S({}, e, { value: fe }),
140
- groupCollapsed: S({}, e, { value: be }),
141
- groupEnd: S({}, e, { value: ge })
142
- });
143
- }
144
- 0 > $ && console.error(
145
- "disabledDepth fell below zero. This is a bug in React. Please file an issue."
146
- );
147
91
  }
148
92
  function n(e) {
149
- if (X === void 0)
150
- try {
151
- throw Error();
152
- } catch (t) {
153
- var r = t.stack.trim().match(/\n( *(at )?)/);
154
- X = r && r[1] || "", pe = -1 < t.stack.indexOf(`
155
- at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
156
- }
157
- return `
158
- ` + X + e + pe;
159
- }
160
- function g(e, r) {
161
- if (!e || Z) return "";
162
- var t = Q.get(e);
163
- if (t !== void 0) return t;
164
- Z = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
165
- var u = null;
166
- u = I.H, I.H = null, i();
93
+ if (e === k) return "<>";
94
+ if (typeof e == "object" && e !== null && e.$$typeof === P)
95
+ return "<...>";
167
96
  try {
168
- var v = {
169
- DetermineComponentFrameRoot: function() {
170
- try {
171
- if (r) {
172
- var C = function() {
173
- throw Error();
174
- };
175
- if (Object.defineProperty(C.prototype, "props", {
176
- set: function() {
177
- throw Error();
178
- }
179
- }), typeof Reflect == "object" && Reflect.construct) {
180
- try {
181
- Reflect.construct(C, []);
182
- } catch (T) {
183
- var Y = T;
184
- }
185
- Reflect.construct(e, [], C);
186
- } else {
187
- try {
188
- C.call();
189
- } catch (T) {
190
- Y = T;
191
- }
192
- e.call(C.prototype);
193
- }
194
- } else {
195
- try {
196
- throw Error();
197
- } catch (T) {
198
- Y = T;
199
- }
200
- (C = e()) && typeof C.catch == "function" && C.catch(function() {
201
- });
202
- }
203
- } catch (T) {
204
- if (T && Y && typeof T.stack == "string")
205
- return [T.stack, Y.stack];
206
- }
207
- return [null, null];
208
- }
209
- };
210
- v.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
211
- var x = Object.getOwnPropertyDescriptor(
212
- v.DetermineComponentFrameRoot,
213
- "name"
214
- );
215
- x && x.configurable && Object.defineProperty(
216
- v.DetermineComponentFrameRoot,
217
- "name",
218
- { value: "DetermineComponentFrameRoot" }
219
- );
220
- var a = v.DetermineComponentFrameRoot(), w = a[0], A = a[1];
221
- if (w && A) {
222
- var h = w.split(`
223
- `), P = A.split(`
224
- `);
225
- for (a = x = 0; x < h.length && !h[x].includes(
226
- "DetermineComponentFrameRoot"
227
- ); )
228
- x++;
229
- for (; a < P.length && !P[a].includes(
230
- "DetermineComponentFrameRoot"
231
- ); )
232
- a++;
233
- if (x === h.length || a === P.length)
234
- for (x = h.length - 1, a = P.length - 1; 1 <= x && 0 <= a && h[x] !== P[a]; )
235
- a--;
236
- for (; 1 <= x && 0 <= a; x--, a--)
237
- if (h[x] !== P[a]) {
238
- if (x !== 1 || a !== 1)
239
- do
240
- if (x--, a--, 0 > a || h[x] !== P[a]) {
241
- var O = `
242
- ` + h[x].replace(
243
- " at new ",
244
- " at "
245
- );
246
- return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, O), O;
247
- }
248
- while (1 <= x && 0 <= a);
249
- break;
250
- }
251
- }
252
- } finally {
253
- Z = !1, I.H = u, o(), Error.prepareStackTrace = t;
254
- }
255
- return h = (h = e ? e.displayName || e.name : "") ? n(h) : "", typeof e == "function" && Q.set(e, h), h;
256
- }
257
- function c(e) {
258
- if (e == null) return "";
259
- if (typeof e == "function") {
260
- var r = e.prototype;
261
- return g(
262
- e,
263
- !(!r || !r.isReactComponent)
264
- );
265
- }
266
- if (typeof e == "string") return n(e);
267
- switch (e) {
268
- case G:
269
- return n("Suspense");
270
- case H:
271
- return n("SuspenseList");
97
+ var l = r(e);
98
+ return l ? "<" + l + ">" : "<...>";
99
+ } catch {
100
+ return "<...>";
272
101
  }
273
- if (typeof e == "object")
274
- switch (e.$$typeof) {
275
- case F:
276
- return e = g(e.render, !1), e;
277
- case J:
278
- return c(e.type);
279
- case V:
280
- r = e._payload, e = e._init;
281
- try {
282
- return c(e(r));
283
- } catch {
284
- }
285
- }
286
- return "";
287
102
  }
288
- function m() {
289
- var e = I.A;
103
+ function a() {
104
+ var e = C.A;
290
105
  return e === null ? null : e.getOwner();
291
106
  }
292
- function p(e) {
293
- if (ie.call(e, "key")) {
294
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
295
- if (r && r.isReactWarning) return !1;
107
+ function s() {
108
+ return Error("react-stack-top-frame");
109
+ }
110
+ function o(e) {
111
+ if (M.call(e, "key")) {
112
+ var l = Object.getOwnPropertyDescriptor(e, "key").get;
113
+ if (l && l.isReactWarning) return !1;
296
114
  }
297
115
  return e.key !== void 0;
298
116
  }
299
- function y(e, r) {
300
- function t() {
301
- xe || (xe = !0, console.error(
117
+ function u(e, l) {
118
+ function p() {
119
+ F || (F = !0, console.error(
302
120
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
303
- r
121
+ l
304
122
  ));
305
123
  }
306
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
307
- get: t,
124
+ p.isReactWarning = !0, Object.defineProperty(e, "key", {
125
+ get: p,
308
126
  configurable: !0
309
127
  });
310
128
  }
311
- function E() {
312
- var e = s(this.type);
313
- return me[e] || (me[e] = !0, console.error(
129
+ function d() {
130
+ var e = r(this.type);
131
+ return Y[e] || (Y[e] = !0, console.error(
314
132
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
315
133
  )), e = this.props.ref, e !== void 0 ? e : null;
316
134
  }
317
- function j(e, r, t, u, v, x) {
318
- return t = x.ref, e = {
319
- $$typeof: B,
135
+ function x(e, l, p, b, w, A) {
136
+ var m = p.ref;
137
+ return e = {
138
+ $$typeof: q,
320
139
  type: e,
321
- key: r,
322
- props: x,
323
- _owner: v
324
- }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
140
+ key: l,
141
+ props: p,
142
+ _owner: b
143
+ }, (m !== void 0 ? m : null) !== null ? Object.defineProperty(e, "ref", {
325
144
  enumerable: !1,
326
- get: E
145
+ get: d
327
146
  }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
328
147
  configurable: !1,
329
148
  enumerable: !1,
@@ -334,168 +153,167 @@ function Ye() {
334
153
  enumerable: !1,
335
154
  writable: !0,
336
155
  value: null
156
+ }), Object.defineProperty(e, "_debugStack", {
157
+ configurable: !1,
158
+ enumerable: !1,
159
+ writable: !0,
160
+ value: w
161
+ }), Object.defineProperty(e, "_debugTask", {
162
+ configurable: !1,
163
+ enumerable: !1,
164
+ writable: !0,
165
+ value: A
337
166
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
338
167
  }
339
- function D(e, r, t, u, v, x) {
340
- if (typeof e == "string" || typeof e == "function" || e === U || e === se || e === te || e === G || e === H || e === Ae || typeof e == "object" && e !== null && (e.$$typeof === V || e.$$typeof === J || e.$$typeof === le || e.$$typeof === oe || e.$$typeof === F || e.$$typeof === Oe || e.getModuleId !== void 0)) {
341
- var a = r.children;
342
- if (a !== void 0)
343
- if (u)
344
- if (L(a)) {
345
- for (u = 0; u < a.length; u++)
346
- ee(a[u], e);
347
- Object.freeze && Object.freeze(a);
348
- } else
349
- console.error(
350
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
351
- );
352
- else ee(a, e);
353
- } else
354
- a = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? u = "null" : L(e) ? u = "array" : e !== void 0 && e.$$typeof === B ? (u = "<" + (s(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, console.error(
355
- "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
356
- u,
357
- a
358
- );
359
- if (ie.call(r, "key")) {
360
- a = s(e);
361
- var w = Object.keys(r).filter(function(h) {
362
- return h !== "key";
168
+ function f(e, l, p, b, w, A) {
169
+ var m = l.children;
170
+ if (m !== void 0)
171
+ if (b)
172
+ if (ce(m)) {
173
+ for (b = 0; b < m.length; b++)
174
+ g(m[b]);
175
+ Object.freeze && Object.freeze(m);
176
+ } else
177
+ console.error(
178
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
179
+ );
180
+ else g(m);
181
+ if (M.call(l, "key")) {
182
+ m = r(e);
183
+ var j = Object.keys(l).filter(function(ue) {
184
+ return ue !== "key";
363
185
  });
364
- u = 0 < w.length ? "{key: someKey, " + w.join(": ..., ") + ": ...}" : "{key: someKey}", ve[a + u] || (w = 0 < w.length ? "{" + w.join(": ..., ") + ": ...}" : "{}", console.error(
186
+ b = 0 < j.length ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}", L[m + b] || (j = 0 < j.length ? "{" + j.join(": ..., ") + ": ...}" : "{}", console.error(
365
187
  `A props object containing a "key" prop is being spread into JSX:
366
188
  let props = %s;
367
189
  <%s {...props} />
368
190
  React keys must be passed directly to JSX without using spread:
369
191
  let props = %s;
370
192
  <%s key={someKey} {...props} />`,
371
- u,
372
- a,
373
- w,
374
- a
375
- ), ve[a + u] = !0);
193
+ b,
194
+ m,
195
+ j,
196
+ m
197
+ ), L[m + b] = !0);
376
198
  }
377
- if (a = null, t !== void 0 && (f(t), a = "" + t), p(r) && (f(r.key), a = "" + r.key), "key" in r) {
378
- t = {};
379
- for (var A in r)
380
- A !== "key" && (t[A] = r[A]);
381
- } else t = r;
382
- return a && y(
383
- t,
199
+ if (m = null, p !== void 0 && (c(p), m = "" + p), o(l) && (c(l.key), m = "" + l.key), "key" in l) {
200
+ p = {};
201
+ for (var O in l)
202
+ O !== "key" && (p[O] = l[O]);
203
+ } else p = l;
204
+ return m && u(
205
+ p,
384
206
  typeof e == "function" ? e.displayName || e.name || "Unknown" : e
385
- ), j(e, a, x, v, m(), t);
207
+ ), x(
208
+ e,
209
+ m,
210
+ p,
211
+ a(),
212
+ w,
213
+ A
214
+ );
386
215
  }
387
- function ee(e, r) {
388
- if (typeof e == "object" && e && e.$$typeof !== qe) {
389
- if (L(e))
390
- for (var t = 0; t < e.length; t++) {
391
- var u = e[t];
392
- W(u) && re(u, r);
393
- }
394
- else if (W(e))
395
- e._store && (e._store.validated = 1);
396
- else if (e === null || typeof e != "object" ? t = null : (t = ae && e[ae] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
397
- for (; !(e = t.next()).done; )
398
- W(e.value) && re(e.value, r);
399
- }
216
+ function g(e) {
217
+ h(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === P && (e._payload.status === "fulfilled" ? h(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
400
218
  }
401
- function W(e) {
402
- return typeof e == "object" && e !== null && e.$$typeof === B;
219
+ function h(e) {
220
+ return typeof e == "object" && e !== null && e.$$typeof === q;
403
221
  }
404
- function re(e, r) {
405
- if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = Ie(r), !he[r])) {
406
- he[r] = !0;
407
- var t = "";
408
- e && e._owner != null && e._owner !== m() && (t = null, typeof e._owner.tag == "number" ? t = s(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
409
- var u = I.getCurrentStack;
410
- I.getCurrentStack = function() {
411
- var v = c(e.type);
412
- return u && (v += u() || ""), v;
413
- }, console.error(
414
- 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
415
- r,
416
- t
417
- ), I.getCurrentStack = u;
222
+ var v = R, q = /* @__PURE__ */ Symbol.for("react.transitional.element"), K = /* @__PURE__ */ Symbol.for("react.portal"), k = /* @__PURE__ */ Symbol.for("react.fragment"), ee = /* @__PURE__ */ Symbol.for("react.strict_mode"), re = /* @__PURE__ */ Symbol.for("react.profiler"), se = /* @__PURE__ */ Symbol.for("react.consumer"), te = /* @__PURE__ */ Symbol.for("react.context"), le = /* @__PURE__ */ Symbol.for("react.forward_ref"), ae = /* @__PURE__ */ Symbol.for("react.suspense"), oe = /* @__PURE__ */ Symbol.for("react.suspense_list"), ie = /* @__PURE__ */ Symbol.for("react.memo"), P = /* @__PURE__ */ Symbol.for("react.lazy"), ne = /* @__PURE__ */ Symbol.for("react.activity"), de = /* @__PURE__ */ Symbol.for("react.client.reference"), C = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, ce = Array.isArray, S = console.createTask ? console.createTask : function() {
223
+ return null;
224
+ };
225
+ v = {
226
+ react_stack_bottom_frame: function(e) {
227
+ return e();
418
228
  }
419
- }
420
- function Ie(e) {
421
- var r = "", t = m();
422
- return t && (t = s(t.type)) && (r = `
423
-
424
- Check the render method of \`` + t + "`."), r || (e = s(e)) && (r = `
425
-
426
- Check the top-level render call using <` + e + ">."), r;
427
- }
428
- var Se = R, B = Symbol.for("react.transitional.element"), Pe = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), te = Symbol.for("react.strict_mode"), se = Symbol.for("react.profiler"), oe = Symbol.for("react.consumer"), le = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), J = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), Ae = Symbol.for("react.offscreen"), ae = Symbol.iterator, $e = Symbol.for("react.client.reference"), I = Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ie = Object.prototype.hasOwnProperty, S = Object.assign, Oe = Symbol.for("react.client.reference"), L = Array.isArray, $ = 0, ne, ce, de, ue, fe, be, ge;
429
- b.__reactDisabledLog = !0;
430
- var X, pe, Z = !1, Q = new (typeof WeakMap == "function" ? WeakMap : Map)(), qe = Symbol.for("react.client.reference"), xe, me = {}, ve = {}, he = {};
431
- M.Fragment = U, M.jsx = function(e, r, t, u, v) {
432
- return D(e, r, t, !1, u, v);
433
- }, M.jsxs = function(e, r, t, u, v) {
434
- return D(e, r, t, !0, u, v);
435
229
  };
436
- }()), M;
230
+ var F, Y = {}, z = v.react_stack_bottom_frame.bind(
231
+ v,
232
+ s
233
+ )(), D = S(n(s)), L = {};
234
+ _.Fragment = k, _.jsx = function(e, l, p) {
235
+ var b = 1e4 > C.recentlyCreatedOwnerStacks++;
236
+ return f(
237
+ e,
238
+ l,
239
+ p,
240
+ !1,
241
+ b ? Error("react-stack-top-frame") : z,
242
+ b ? S(n(e)) : D
243
+ );
244
+ }, _.jsxs = function(e, l, p) {
245
+ var b = 1e4 > C.recentlyCreatedOwnerStacks++;
246
+ return f(
247
+ e,
248
+ l,
249
+ p,
250
+ !0,
251
+ b ? Error("react-stack-top-frame") : z,
252
+ b ? S(n(e)) : D
253
+ );
254
+ };
255
+ })()), _;
437
256
  }
438
- var Ne;
439
- function ze() {
440
- return Ne || (Ne = 1, process.env.NODE_ENV === "production" ? z.exports = Me() : z.exports = Ye()), z.exports;
257
+ var U;
258
+ function be() {
259
+ return U || (U = 1, process.env.NODE_ENV === "production" ? I.exports = fe() : I.exports = pe()), I.exports;
441
260
  }
442
- var l = ze();
443
- const N = (...s) => s.filter(Boolean).join(" ");
444
- var k;
445
- ((s) => {
446
- s.clickable = `
261
+ var t = be();
262
+ const y = (...r) => r.filter(Boolean).join(" ");
263
+ var N;
264
+ ((r) => {
265
+ r.clickable = `
447
266
  px-2
448
267
  min-h-[calc(44/16*1rem)]
449
268
  border
450
269
  border-transparent
451
270
  rounded-lg
452
271
  hover:bg-solid-grey-50
453
- `, s.selected = `
272
+ `, r.selected = `
454
273
  rounded-full
455
274
  bg-yellow-50
456
275
  `;
457
- const d = `
458
- focus-visible:outline
276
+ const i = `
459
277
  focus-visible:outline-4
460
278
  focus-visible:outline-black
461
279
  focus-visible:ring-yellow-300
462
280
  `;
463
- s.focusRectCondensed = `
464
- ${d}
281
+ r.focusRectCondensed = `
282
+ ${i}
465
283
  focus-visible:-outline-offset-4
466
284
  focus-visible:ring-[calc(6/16*1rem)]
467
285
  focus-visible:ring-inset
468
- `, s.focusRectCondensedWithBg = `
469
- ${s.focusRectCondensed}
286
+ `, r.focusRectCondensedWithBg = `
287
+ ${r.focusRectCondensed}
470
288
  focus-visible:bg-yellow-300
471
- `, s.focusRect = `
472
- ${d}
289
+ `, r.focusRect = `
290
+ ${i}
473
291
  focus-visible:outline-offset-[calc(2/16*1rem)]
474
292
  focus-visible:ring-[calc(2/16*1rem)]
475
- `, s.focusRounded = `
476
- ${s.focusRect}
477
- focus-visible:rounded
478
- `, s.focusCard = `
479
- ${s.focusRect}
293
+ `, r.focusRounded = `
294
+ ${r.focusRect}
295
+ focus-visible:rounded-sm
296
+ `, r.focusCard = `
297
+ ${r.focusRect}
480
298
  focus-visible:rounded-2xl
481
299
  sm:focus-visible:rounded-3xl
482
- `, s.focusRectWithBg = `
483
- ${s.focusRect}
300
+ `, r.focusRectWithBg = `
301
+ ${r.focusRect}
484
302
  focus-visible:bg-yellow-300
485
- `, s.focusRoundedWithBg = `
486
- ${s.focusRectWithBg}
487
- focus-visible:rounded
488
- `, s.hoverUnderline = `
303
+ `, r.focusRoundedWithBg = `
304
+ ${r.focusRectWithBg}
305
+ focus-visible:rounded-sm
306
+ `, r.hoverUnderline = `
489
307
  hover:underline
490
308
  hover:underline-offset-[calc(3/16*1rem)]
491
- `, s.underline = `
309
+ `, r.underline = `
492
310
  underline
493
311
  underline-offset-[calc(3/16*1rem)]
494
312
  hover:decoration-[calc(3/16*1rem)]
495
- `, s.underlineNoDeco = `
313
+ `, r.underlineNoDeco = `
496
314
  underline
497
315
  underline-offset-[calc(3/16*1rem)]
498
- `, s.popover = `
316
+ `, r.popover = `
499
317
  min-w-fit
500
318
  w-auto
501
319
  py-2
@@ -505,33 +323,32 @@ var k;
505
323
  border
506
324
  border-solid-grey-420
507
325
  has-[>:nth-child(7)]:rounded-r-none
508
- `, s.popoverPositionBottomRight = `
326
+ `, r.popoverPositionBottomRight = `
509
327
  absolute
510
328
  top-11
511
329
  right-0
512
- `, s.popoverPositionBottomLeft = `
330
+ `, r.popoverPositionBottomLeft = `
513
331
  absolute
514
332
  top-11
515
333
  left-0
516
- `, ((f) => {
517
- f.focus = `
518
- peer-focus-visible:outline
334
+ `, ((c) => {
335
+ c.focus = `
519
336
  peer-focus-visible:outline-4
520
337
  peer-focus-visible:outline-black
521
338
  peer-focus-visible:ring-yellow-300
522
- `, f.focusRect = `
523
- ${f.focus}
339
+ `, c.focusRect = `
340
+ ${c.focus}
524
341
  peer-focus-visible:outline-offset-[calc(2/16*1rem)]
525
342
  peer-focus-visible:ring-[calc(2/16*1rem)]
526
343
  `;
527
- })(s.Peer || (s.Peer = {}));
528
- })(k || (k = {}));
529
- const _ = R.createContext({
344
+ })(r.Peer || (r.Peer = {}));
345
+ })(N || (N = {}));
346
+ const T = R.createContext({
530
347
  helperTextId: "",
531
348
  errorMessageId: "",
532
349
  isInvalid: !1,
533
350
  isRequired: !1
534
- }), Re = `
351
+ }), G = `
535
352
  bg-white
536
353
  border
537
354
  border-solid
@@ -540,8 +357,8 @@ const _ = R.createContext({
540
357
  disabled:text-solid-gray-500
541
358
  disabled:border-solid-gray-500
542
359
  aria-invalid:border-red-800
543
- ${k.focusRect}
544
- `, je = {
360
+ ${N.focusRect}
361
+ `, V = {
545
362
  // 16(p-4) * 2 + 22(text-label * leading-snug) + boader * 2 = 56px
546
363
  lg: `
547
364
  p-4
@@ -565,13 +382,13 @@ const _ = R.createContext({
565
382
  rounded-md
566
383
  leading-snug
567
384
  `
568
- }, we = `
385
+ }, J = `
569
386
  inline-block
570
387
  cursor-pointer
571
388
  border
572
389
  border-solid
573
390
  border-transparent
574
- `, Te = {
391
+ `, H = {
575
392
  // 16(p-4) * 2 + 22(text-label * leading-snug) + boader(transparent) * 2 = 56px
576
393
  lg: `
577
394
  pr-8
@@ -593,23 +410,23 @@ const _ = R.createContext({
593
410
  text-label
594
411
  leading-snug
595
412
  `
596
- }, Ce = {
413
+ }, X = {
597
414
  lg: "w-[22px] h-[22px] mr-2",
598
415
  md: "w-[18px] h-[18px] mr-1.5",
599
416
  sm: "w-[18px] h-[18px] mr-1"
600
- }, ke = (s) => {
601
- const { id: d, className: f, size: b = "lg", children: i, ...o } = s, n = R.useId(), g = d || n, c = R.useContext(_);
602
- c.isRequired && (o.required = !0), c.groupName && (o.name = c.groupName);
603
- const m = {
417
+ }, Z = (r) => {
418
+ const { id: i, className: c, size: n = "lg", children: a, ...s } = r, o = R.useId(), u = i || o, d = R.useContext(T);
419
+ d.isRequired && (s.required = !0), d.groupName && (s.name = d.groupName);
420
+ const x = {
604
421
  lg: 22 / 24,
605
422
  md: 18 / 24,
606
423
  sm: 18 / 24
607
- }, p = `
424
+ }, f = `
608
425
  peer
609
426
  sr-only
610
- `, y = `
427
+ `, g = `
611
428
  bg-clip-content
612
- rounded
429
+ rounded-sm
613
430
  border
614
431
  border-solid
615
432
  border-solid-gray-900
@@ -618,32 +435,32 @@ const _ = R.createContext({
618
435
  peer-checked:bg-blue-600
619
436
  peer-checked:border-none
620
437
  peer-disabled:border-solid-gray-500
621
- ${k.Peer.focusRect}
438
+ ${N.Peer.focusRect}
622
439
  `;
623
- return /* @__PURE__ */ l.jsx(
440
+ return /* @__PURE__ */ t.jsx(
624
441
  "label",
625
442
  {
626
- htmlFor: g,
627
- className: N(
628
- we,
629
- Te[b],
630
- f
443
+ htmlFor: u,
444
+ className: y(
445
+ J,
446
+ H[n],
447
+ c
631
448
  ),
632
- children: /* @__PURE__ */ l.jsxs("span", { className: "flex items-center", children: [
633
- /* @__PURE__ */ l.jsx(
449
+ children: /* @__PURE__ */ t.jsxs("span", { className: "flex items-center", children: [
450
+ /* @__PURE__ */ t.jsx(
634
451
  "input",
635
452
  {
636
- id: g,
637
- className: p,
453
+ id: u,
454
+ className: f,
638
455
  type: "checkbox",
639
- "aria-describedby": c.helperTextId,
640
- "aria-errormessage": c.errorMessageId,
641
- "aria-invalid": c.isInvalid ?? !1,
642
- "aria-required": c.isRequired ?? !1,
643
- ...o
456
+ "aria-describedby": d.helperTextId,
457
+ "aria-errormessage": d.errorMessageId,
458
+ "aria-invalid": d.isInvalid ?? !1,
459
+ "aria-required": d.isRequired ?? !1,
460
+ ...s
644
461
  }
645
462
  ),
646
- /* @__PURE__ */ l.jsx("span", { className: N(y, Ce[b]), children: /* @__PURE__ */ l.jsx(
463
+ /* @__PURE__ */ t.jsx("span", { className: y(g, X[n]), children: /* @__PURE__ */ t.jsx(
647
464
  "svg",
648
465
  {
649
466
  xmlns: "http://www.w3.org/2000/svg",
@@ -651,22 +468,22 @@ const _ = R.createContext({
651
468
  width: "24",
652
469
  height: "24",
653
470
  viewBox: "0 0 24 24",
654
- children: /* @__PURE__ */ l.jsx("g", { transform: `scale(${m[b]} ${m[b]})`, children: /* @__PURE__ */ l.jsx("path", { d: "m9.55 17.65-5.325-5.325 1.05-1.075 4.275 4.275 9.175-9.175 1.05 1.075Z" }) })
471
+ children: /* @__PURE__ */ t.jsx("g", { transform: `scale(${x[n]} ${x[n]})`, children: /* @__PURE__ */ t.jsx("path", { d: "m9.55 17.65-5.325-5.325 1.05-1.075 4.275 4.275 9.175-9.175 1.05 1.075Z" }) })
655
472
  }
656
473
  ) }),
657
- /* @__PURE__ */ l.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: i })
474
+ /* @__PURE__ */ t.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
658
475
  ] })
659
476
  }
660
477
  );
661
478
  };
662
- ke.displayName = "Checkbox";
663
- const _e = (s) => {
664
- const { id: d, className: f, size: b = "lg", children: i, ...o } = s, n = R.useId(), g = d || n, c = R.useContext(_);
665
- c.isRequired && (o.required = !0), c.groupName && (o.name = c.groupName);
666
- const m = `
479
+ Z.displayName = "Checkbox";
480
+ const Q = (r) => {
481
+ const { id: i, className: c, size: n = "lg", children: a, ...s } = r, o = R.useId(), u = i || o, d = R.useContext(T);
482
+ d.isRequired && (s.required = !0), d.groupName && (s.name = d.groupName);
483
+ const x = `
667
484
  peer
668
485
  sr-only
669
- `, p = `
486
+ `, f = `
670
487
  bg-clip-content
671
488
  rounded-full
672
489
  border
@@ -675,75 +492,75 @@ const _e = (s) => {
675
492
  peer-checked:bg-blue-600
676
493
  peer-checked:border-blue-600
677
494
  peer-disabled:border-solid-gray-500
678
- ${k.Peer.focusRect}
679
- `, y = {
495
+ ${N.Peer.focusRect}
496
+ `, g = {
680
497
  lg: "p-1",
681
498
  md: "p-[3px]",
682
499
  sm: "p-[3px]"
683
500
  };
684
- return /* @__PURE__ */ l.jsx(
501
+ return /* @__PURE__ */ t.jsx(
685
502
  "label",
686
503
  {
687
- htmlFor: g,
688
- className: N(
689
- we,
690
- Te[b],
691
- f
504
+ htmlFor: u,
505
+ className: y(
506
+ J,
507
+ H[n],
508
+ c
692
509
  ),
693
- children: /* @__PURE__ */ l.jsxs("span", { className: "flex items-center", children: [
694
- /* @__PURE__ */ l.jsx(
510
+ children: /* @__PURE__ */ t.jsxs("span", { className: "flex items-center", children: [
511
+ /* @__PURE__ */ t.jsx(
695
512
  "input",
696
513
  {
697
- id: g,
698
- className: m,
514
+ id: u,
515
+ className: x,
699
516
  type: "radio",
700
- "aria-describedby": c.helperTextId,
701
- "aria-errormessage": c.errorMessageId,
702
- "aria-invalid": c.isInvalid ?? !1,
703
- "aria-required": c.isRequired ?? !1,
704
- ...o
517
+ "aria-describedby": d.helperTextId,
518
+ "aria-errormessage": d.errorMessageId,
519
+ "aria-invalid": d.isInvalid ?? !1,
520
+ "aria-required": d.isRequired ?? !1,
521
+ ...s
705
522
  }
706
523
  ),
707
- /* @__PURE__ */ l.jsx(
524
+ /* @__PURE__ */ t.jsx(
708
525
  "span",
709
526
  {
710
527
  "aria-hidden": !0,
711
- className: N(p, y[b], Ce[b])
528
+ className: y(f, g[n], X[n])
712
529
  }
713
530
  ),
714
- /* @__PURE__ */ l.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: i })
531
+ /* @__PURE__ */ t.jsx("span", { className: "peer-disabled:text-solid-gray-500", children: a })
715
532
  ] })
716
533
  }
717
534
  );
718
535
  };
719
- _e.displayName = "Radio";
720
- const We = (s) => {
721
- const { id: d, className: f, size: b = "lg", children: i, ...o } = s, n = R.useContext(_);
722
- return n.isRequired && (o.required = !0), /* @__PURE__ */ l.jsxs("div", { className: "inline-block relative", children: [
723
- /* @__PURE__ */ l.jsx(
536
+ Q.displayName = "Radio";
537
+ const me = (r) => {
538
+ const { id: i, className: c, size: n = "lg", children: a, ...s } = r, o = R.useContext(T);
539
+ return o.isRequired && (s.required = !0), /* @__PURE__ */ t.jsxs("div", { className: "inline-block relative", children: [
540
+ /* @__PURE__ */ t.jsx(
724
541
  "select",
725
542
  {
726
- id: d || n.id,
727
- className: N(
543
+ id: i || o.id,
544
+ className: y(
728
545
  `
729
546
  !pr-8
730
547
  peer
731
548
  cursor-pointer
732
549
  appearance-none
733
550
  `,
734
- Re,
735
- je[b],
736
- f
551
+ G,
552
+ V[n],
553
+ c
737
554
  ),
738
- "aria-describedby": n.helperTextId,
739
- "aria-errormessage": n.errorMessageId,
740
- "aria-invalid": n.isInvalid ?? !1,
741
- "aria-required": n.isRequired ?? !1,
742
- ...o,
743
- children: i
555
+ "aria-describedby": o.helperTextId,
556
+ "aria-errormessage": o.errorMessageId,
557
+ "aria-invalid": o.isInvalid ?? !1,
558
+ "aria-required": o.isRequired ?? !1,
559
+ ...s,
560
+ children: a
744
561
  }
745
562
  ),
746
- /* @__PURE__ */ l.jsxs(
563
+ /* @__PURE__ */ t.jsxs(
747
564
  "svg",
748
565
  {
749
566
  xmlns: "http://www.w3.org/2000/svg",
@@ -762,8 +579,8 @@ const We = (s) => {
762
579
  height: "16",
763
580
  viewBox: "0 0 16 16",
764
581
  children: [
765
- /* @__PURE__ */ l.jsx("title", { children: "arrow down" }),
766
- /* @__PURE__ */ l.jsx(
582
+ /* @__PURE__ */ t.jsx("title", { children: "arrow down" }),
583
+ /* @__PURE__ */ t.jsx(
767
584
  "path",
768
585
  {
769
586
  d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z",
@@ -775,11 +592,11 @@ const We = (s) => {
775
592
  )
776
593
  ] });
777
594
  };
778
- We.displayName = "Select";
779
- const Be = (s) => {
780
- const { id: d, className: f, size: b = "lg", ...i } = s, o = R.useContext(_);
781
- o.isRequired && (i.required = !0);
782
- const n = `
595
+ me.displayName = "Select";
596
+ const xe = (r) => {
597
+ const { id: i, className: c, size: n = "lg", ...a } = r, s = R.useContext(T);
598
+ s.isRequired && (a.required = !0);
599
+ const o = `
783
600
  file:mr-2
784
601
  file:inline-block
785
602
  file:text-button
@@ -795,7 +612,7 @@ const Be = (s) => {
795
612
  file:active:border-blue-1200
796
613
  file:disabled:border-solid-gray-500
797
614
  file:disabled:cursor-not-allowed
798
- `, g = `
615
+ `, u = `
799
616
  file:text-blue-900
800
617
  file:hover:text-blue-1000
801
618
  file:active:text-blue-1200
@@ -804,15 +621,15 @@ const Be = (s) => {
804
621
  file:active:bg-blue-300
805
622
  file:disabled:text-solid-gray-500
806
623
  file:disabled:bg-transparent
807
- `, c = `
624
+ `, d = `
808
625
  text-label
809
626
  text-solid-gray-900
810
627
  rounded-lg
811
628
  outline-offset-2
812
629
  aria-invalid:text-red-800
813
- ${k.hoverUnderline}
814
- ${k.focusRounded}
815
- `, m = {
630
+ ${N.hoverUnderline}
631
+ ${N.focusRounded}
632
+ `, x = {
816
633
  // 16(p-4) * 2 + 22(text-button * leading-snug) + boader * 2 = 56px
817
634
  lg: `
818
635
  file:p-4
@@ -837,50 +654,54 @@ const Be = (s) => {
837
654
  file:leading-snug
838
655
  `
839
656
  };
840
- return /* @__PURE__ */ l.jsx(
841
- "input",
842
- {
843
- type: "file",
844
- id: d || o.id,
845
- className: N(n, g, m[b], c, f),
846
- "aria-describedby": o.helperTextId,
847
- "aria-errormessage": o.errorMessageId,
848
- "aria-invalid": o.isInvalid ?? !1,
849
- "aria-required": o.isRequired ?? !1,
850
- role: "button",
851
- "aria-label": "File Upload",
852
- ...i
853
- }
657
+ return (
658
+ // biome-ignore lint/a11y/useAriaPropsSupportedByRole: see the TODO above
659
+ // biome-ignore lint/a11y/useSemanticElements: see the TODO above
660
+ /* @__PURE__ */ t.jsx(
661
+ "input",
662
+ {
663
+ type: "file",
664
+ id: i || s.id,
665
+ className: y(o, u, x[n], d, c),
666
+ "aria-describedby": s.helperTextId,
667
+ "aria-errormessage": s.errorMessageId,
668
+ "aria-invalid": s.isInvalid ?? !1,
669
+ "aria-required": s.isRequired ?? !1,
670
+ role: "button",
671
+ "aria-label": "File Upload",
672
+ ...a
673
+ }
674
+ )
854
675
  );
855
676
  };
856
- Be.displayName = "FileInput";
857
- const Ue = (s) => {
858
- const { id: d, className: f, size: b = "lg", ...i } = s, o = R.useContext(_);
859
- return o.isRequired && (i.required = !0), /* @__PURE__ */ l.jsx(
677
+ xe.displayName = "FileInput";
678
+ const ge = (r) => {
679
+ const { id: i, className: c, size: n = "lg", ...a } = r, s = R.useContext(T);
680
+ return s.isRequired && (a.required = !0), /* @__PURE__ */ t.jsx(
860
681
  "input",
861
682
  {
862
683
  type: "text",
863
- id: d || o.id,
864
- className: N(
865
- Re,
866
- je[b],
867
- f
684
+ id: i || s.id,
685
+ className: y(
686
+ G,
687
+ V[n],
688
+ c
868
689
  ),
869
- "aria-describedby": o.helperTextId,
870
- "aria-errormessage": o.errorMessageId,
871
- "aria-invalid": o.isInvalid ?? !1,
872
- "aria-required": o.isRequired ?? !1,
873
- ...i
690
+ "aria-describedby": s.helperTextId,
691
+ "aria-errormessage": s.errorMessageId,
692
+ "aria-invalid": s.isInvalid ?? !1,
693
+ "aria-required": s.isRequired ?? !1,
694
+ ...a
874
695
  }
875
696
  );
876
697
  };
877
- Ue.displayName = "Input";
878
- const Fe = (s) => {
879
- const { id: d, className: f, children: b, onChange: i, maxLength: o, ...n } = s, [g, c] = R.useState(0), m = (j) => {
880
- i && i(j), c(j.target.value.length);
881
- }, p = R.useContext(_);
882
- p.isRequired && (n.required = !0);
883
- const y = g > (o || 0) ? "text-red-800" : "text-solid-gray-700", E = `
698
+ ge.displayName = "Input";
699
+ const he = (r) => {
700
+ const { id: i, className: c, children: n, onChange: a, maxLength: s, ...o } = r, [u, d] = R.useState(0), x = (v) => {
701
+ a && a(v), d(v.target.value.length);
702
+ }, f = R.useContext(T);
703
+ f.isRequired && (o.required = !0);
704
+ const g = u > (s || 0) ? "text-red-800" : "text-solid-gray-700", h = `
884
705
  p-4
885
706
  text-label
886
707
  rounded-lg
@@ -891,192 +712,192 @@ const Fe = (s) => {
891
712
  disabled:text-solid-gray-500
892
713
  disabled:border-solid-gray-500
893
714
  aria-invalid:border-red-800
894
- ${k.focusRect}
715
+ ${N.focusRect}
895
716
  `;
896
- return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
897
- /* @__PURE__ */ l.jsx(
717
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
718
+ /* @__PURE__ */ t.jsx(
898
719
  "textarea",
899
720
  {
900
- id: d || p.id,
901
- className: N(E, f),
902
- "aria-describedby": p.helperTextId,
903
- "aria-errormessage": p.errorMessageId,
904
- "aria-invalid": p.isInvalid ?? !1,
905
- "aria-required": p.isRequired ?? !1,
906
- onChange: m,
907
- ...n,
908
- children: b
721
+ id: i || f.id,
722
+ className: y(h, c),
723
+ "aria-describedby": f.helperTextId,
724
+ "aria-errormessage": f.errorMessageId,
725
+ "aria-invalid": f.isInvalid ?? !1,
726
+ "aria-required": f.isRequired ?? !1,
727
+ onChange: x,
728
+ ...o,
729
+ children: n
909
730
  }
910
731
  ),
911
- o ? /* @__PURE__ */ l.jsxs("p", { className: "text-label text-solid-gray-700", children: [
912
- /* @__PURE__ */ l.jsx("span", { className: y, children: g }),
732
+ s ? /* @__PURE__ */ t.jsxs("p", { className: "text-label text-solid-gray-700", children: [
733
+ /* @__PURE__ */ t.jsx("span", { className: g, children: u }),
913
734
  "/",
914
- /* @__PURE__ */ l.jsx("span", { children: o })
735
+ /* @__PURE__ */ t.jsx("span", { children: s })
915
736
  ] }) : ""
916
737
  ] });
917
738
  };
918
- Fe.displayName = "Textarea";
919
- const Ge = (s) => {
920
- const d = R.useId(), {
921
- labelText: f,
922
- className: b,
923
- helperText: i,
924
- errorMessage: o,
925
- isInvalid: n,
926
- isRequired: g,
927
- children: c,
928
- ...m
929
- } = s, p = {
930
- id: s.htmlFor ?? `input-${d}`,
931
- helperTextId: `helper-text-${d}`,
932
- errorMessageId: `error-message-${d}`,
933
- isInvalid: n ?? !1,
934
- isRequired: g ?? !1
739
+ he.displayName = "Textarea";
740
+ const ve = (r) => {
741
+ const i = R.useId(), {
742
+ labelText: c,
743
+ className: n,
744
+ helperText: a,
745
+ errorMessage: s,
746
+ isInvalid: o,
747
+ isRequired: u,
748
+ children: d,
749
+ ...x
750
+ } = r, f = {
751
+ id: r.htmlFor ?? `input-${i}`,
752
+ helperTextId: `helper-text-${i}`,
753
+ errorMessageId: `error-message-${i}`,
754
+ isInvalid: o ?? !1,
755
+ isRequired: u ?? !1
935
756
  };
936
- return /* @__PURE__ */ l.jsx(_.Provider, { value: p, children: /* @__PURE__ */ l.jsxs("div", { className: N("flex flex-col items-start gap-2", b), children: [
937
- /* @__PURE__ */ l.jsxs(
757
+ return /* @__PURE__ */ t.jsx(T.Provider, { value: f, children: /* @__PURE__ */ t.jsxs("div", { className: y("flex flex-col items-start gap-2", n), children: [
758
+ /* @__PURE__ */ t.jsxs(
938
759
  "label",
939
760
  {
940
- className: N("block text-label", n && "text-red-800"),
941
- htmlFor: p.id,
942
- ...m,
761
+ className: y("block text-label", o && "text-red-800"),
762
+ htmlFor: f.id,
763
+ ...x,
943
764
  children: [
944
- f,
945
- g && /* @__PURE__ */ l.jsx("span", { className: "text-label text-red-800", children: " *" })
765
+ c,
766
+ u && /* @__PURE__ */ t.jsx("span", { className: "text-label text-red-800", children: " *" })
946
767
  ]
947
768
  }
948
769
  ),
949
- i && /* @__PURE__ */ l.jsx("p", { id: p.helperTextId, className: `
770
+ a && /* @__PURE__ */ t.jsx("p", { id: f.helperTextId, className: `
950
771
  text-label text-solid-gray-700
951
- `, children: i }),
952
- c,
953
- n && /* @__PURE__ */ l.jsx("p", { id: p.errorMessageId, className: `
772
+ `, children: a }),
773
+ d,
774
+ o && /* @__PURE__ */ t.jsx("p", { id: f.errorMessageId, className: `
954
775
  text-label text-red-800
955
- `, children: o })
776
+ `, children: s })
956
777
  ] }) });
957
778
  };
958
- Ge.displayName = "LabelControl";
959
- const K = (s) => {
960
- const d = R.useId(), {
961
- labelText: f,
962
- className: b,
963
- helperText: i,
964
- errorMessage: o,
965
- isInvalid: n,
966
- isRequired: g,
967
- direction: c,
968
- children: m,
969
- ...p
970
- } = s, E = {
971
- groupName: p.name ?? `group-${d}`,
972
- helperTextId: `helper-text-${d}`,
973
- errorMessageId: `error-message-${d}`,
974
- isInvalid: n ?? !1,
975
- isRequired: g ?? !1
976
- }, j = c ?? "flex-col";
977
- return /* @__PURE__ */ l.jsx(_.Provider, { value: E, children: /* @__PURE__ */ l.jsxs(
779
+ ve.displayName = "LabelControl";
780
+ const $ = (r) => {
781
+ const i = R.useId(), {
782
+ labelText: c,
783
+ className: n,
784
+ helperText: a,
785
+ errorMessage: s,
786
+ isInvalid: o,
787
+ isRequired: u,
788
+ direction: d,
789
+ children: x,
790
+ ...f
791
+ } = r, h = {
792
+ groupName: f.name ?? `group-${i}`,
793
+ helperTextId: `helper-text-${i}`,
794
+ errorMessageId: `error-message-${i}`,
795
+ isInvalid: o ?? !1,
796
+ isRequired: u ?? !1
797
+ }, v = d ?? "flex-col";
798
+ return /* @__PURE__ */ t.jsx(T.Provider, { value: h, children: /* @__PURE__ */ t.jsxs(
978
799
  "fieldset",
979
800
  {
980
- className: N("flex flex-col items-start gap-2", b),
981
- ...p,
801
+ className: y("flex flex-col items-start gap-2", n),
802
+ ...f,
982
803
  children: [
983
- /* @__PURE__ */ l.jsx("legend", { children: /* @__PURE__ */ l.jsxs("p", { className: N("block text-label", n && "text-red-800"), children: [
984
- f,
985
- g && /* @__PURE__ */ l.jsx("span", { className: "text-red-800", children: " *" })
804
+ /* @__PURE__ */ t.jsx("legend", { children: /* @__PURE__ */ t.jsxs("p", { className: y("block text-label", o && "text-red-800"), children: [
805
+ c,
806
+ u && /* @__PURE__ */ t.jsx("span", { className: "text-red-800", children: " *" })
986
807
  ] }) }),
987
- /* @__PURE__ */ l.jsx("div", { className: N("inline-flex", j), children: m }),
988
- i && /* @__PURE__ */ l.jsx("p", { id: E.helperTextId, className: "text-sup text-solid-gray-700", children: i }),
989
- n && /* @__PURE__ */ l.jsx("p", { id: E.errorMessageId, className: "text-label text-red-800", children: o })
808
+ /* @__PURE__ */ t.jsx("div", { className: y("inline-flex", v), children: x }),
809
+ a && /* @__PURE__ */ t.jsx("p", { id: h.helperTextId, className: "text-sup text-solid-gray-700", children: a }),
810
+ o && /* @__PURE__ */ t.jsx("p", { id: h.errorMessageId, className: "text-label text-red-800", children: s })
990
811
  ]
991
812
  }
992
813
  ) });
993
814
  };
994
- K.displayName = "FieldsetControl";
995
- const He = (s) => {
815
+ $.displayName = "FieldsetControl";
816
+ const ye = (r) => {
996
817
  const {
997
- items: d,
998
- onChange: f,
999
- className: b,
1000
- labelText: i,
1001
- helperText: o,
1002
- errorMessage: n,
1003
- isInvalid: g,
1004
- isRequired: c,
1005
- size: m,
1006
- ...p
1007
- } = s;
1008
- return /* @__PURE__ */ l.jsx(
1009
- K,
818
+ items: i,
819
+ onChange: c,
820
+ className: n,
821
+ labelText: a,
822
+ helperText: s,
823
+ errorMessage: o,
824
+ isInvalid: u,
825
+ isRequired: d,
826
+ size: x,
827
+ ...f
828
+ } = r;
829
+ return /* @__PURE__ */ t.jsx(
830
+ $,
1010
831
  {
1011
- className: b,
1012
- labelText: i,
1013
- helperText: o,
1014
- errorMessage: n,
1015
- isInvalid: g,
1016
- isRequired: c,
1017
- ...p,
1018
- children: d.map(({ label: y, value: E }) => /* @__PURE__ */ l.jsx(
1019
- ke,
832
+ className: n,
833
+ labelText: a,
834
+ helperText: s,
835
+ errorMessage: o,
836
+ isInvalid: u,
837
+ isRequired: d,
838
+ ...f,
839
+ children: i.map(({ label: g, value: h }) => /* @__PURE__ */ t.jsx(
840
+ Z,
1020
841
  {
1021
- size: m,
1022
- value: E,
1023
- onChange: f,
1024
- children: y
842
+ size: x,
843
+ value: h,
844
+ onChange: c,
845
+ children: g
1025
846
  },
1026
- `${y}-${E}`
847
+ `${g}-${h}`
1027
848
  ))
1028
849
  }
1029
850
  );
1030
851
  };
1031
- He.displayName = "CheckboxGroup";
1032
- const Je = (s) => {
852
+ ye.displayName = "CheckboxGroup";
853
+ const Re = (r) => {
1033
854
  const {
1034
- items: d,
1035
- onChange: f,
1036
- className: b,
1037
- labelText: i,
1038
- helperText: o,
1039
- errorMessage: n,
1040
- isInvalid: g,
1041
- isRequired: c,
1042
- defaultValue: m,
1043
- size: p,
1044
- ...y
1045
- } = s;
1046
- return /* @__PURE__ */ l.jsx(
1047
- K,
855
+ items: i,
856
+ onChange: c,
857
+ className: n,
858
+ labelText: a,
859
+ helperText: s,
860
+ errorMessage: o,
861
+ isInvalid: u,
862
+ isRequired: d,
863
+ defaultValue: x,
864
+ size: f,
865
+ ...g
866
+ } = r;
867
+ return /* @__PURE__ */ t.jsx(
868
+ $,
1048
869
  {
1049
- className: b,
1050
- labelText: i,
1051
- helperText: o,
1052
- errorMessage: n,
1053
- isInvalid: g,
1054
- isRequired: c,
1055
- ...y,
1056
- children: d.map(({ label: E, value: j }) => /* @__PURE__ */ l.jsx(
1057
- _e,
870
+ className: n,
871
+ labelText: a,
872
+ helperText: s,
873
+ errorMessage: o,
874
+ isInvalid: u,
875
+ isRequired: d,
876
+ ...g,
877
+ children: i.map(({ label: h, value: v }) => /* @__PURE__ */ t.jsx(
878
+ Q,
1058
879
  {
1059
- size: p,
1060
- value: j,
1061
- onChange: f,
1062
- defaultChecked: m === j,
1063
- children: E
880
+ size: f,
881
+ value: v,
882
+ onChange: c,
883
+ defaultChecked: x === v,
884
+ children: h
1064
885
  },
1065
- `${E}-${j}`
886
+ `${h}-${v}`
1066
887
  ))
1067
888
  }
1068
889
  );
1069
890
  };
1070
- Je.displayName = "RadioGroup";
891
+ Re.displayName = "RadioGroup";
1071
892
  export {
1072
- ke as Checkbox,
1073
- He as CheckboxGroup,
1074
- K as FieldsetControl,
1075
- Be as FileInput,
1076
- Ue as Input,
1077
- Ge as LabelControl,
1078
- _e as Radio,
1079
- Je as RadioGroup,
1080
- We as Select,
1081
- Fe as Textarea
893
+ Z as Checkbox,
894
+ ye as CheckboxGroup,
895
+ $ as FieldsetControl,
896
+ xe as FileInput,
897
+ ge as Input,
898
+ ve as LabelControl,
899
+ Q as Radio,
900
+ Re as RadioGroup,
901
+ me as Select,
902
+ he as Textarea
1082
903
  };