@sakura-ui/sakura-ui 0.0.13 → 0.0.15

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 (91) hide show
  1. package/README.md +27 -1
  2. package/package.json +4 -4
  3. package/packages/config/package.json +2 -3
  4. package/packages/config/src/index.ts +1 -4
  5. package/packages/config/vite.config.ts +1 -13
  6. package/packages/forms/dist/components/Checkbox.d.ts +5 -0
  7. package/packages/forms/dist/components/Checkbox.d.ts.map +1 -0
  8. package/packages/forms/dist/components/CheckboxGroup.d.ts +9 -0
  9. package/packages/forms/dist/components/CheckboxGroup.d.ts.map +1 -0
  10. package/packages/forms/dist/components/InputItem.d.ts +5 -0
  11. package/packages/forms/dist/components/InputItem.d.ts.map +1 -0
  12. package/packages/forms/dist/components/Radio.d.ts +5 -0
  13. package/packages/forms/dist/components/Radio.d.ts.map +1 -0
  14. package/packages/forms/dist/components/RadioGroup.d.ts +9 -0
  15. package/packages/forms/dist/components/RadioGroup.d.ts.map +1 -0
  16. package/packages/forms/dist/components/Select.d.ts +6 -0
  17. package/packages/forms/dist/components/Select.d.ts.map +1 -0
  18. package/packages/forms/dist/components/Text.d.ts +6 -0
  19. package/packages/forms/dist/components/Text.d.ts.map +1 -0
  20. package/packages/forms/dist/components/Textarea.d.ts +6 -0
  21. package/packages/forms/dist/components/Textarea.d.ts.map +1 -0
  22. package/packages/forms/dist/components/index.d.ts +8 -0
  23. package/packages/forms/dist/components/index.d.ts.map +1 -0
  24. package/packages/forms/dist/index.cjs.js +112 -0
  25. package/packages/forms/dist/index.cjs.js.map +1 -0
  26. package/packages/forms/dist/index.d.ts +2 -0
  27. package/packages/forms/dist/index.d.ts.map +1 -0
  28. package/packages/forms/dist/index.es.js +828 -0
  29. package/packages/forms/dist/index.es.js.map +1 -0
  30. package/packages/{icons → forms}/node_modules/.bin/autoprefixer +2 -2
  31. package/packages/{icons → forms}/node_modules/.bin/jest +2 -2
  32. package/packages/{icons → forms}/node_modules/.bin/npm-run-all +2 -2
  33. package/packages/{icons → forms}/node_modules/.bin/run-p +2 -2
  34. package/packages/{icons → forms}/node_modules/.bin/run-s +2 -2
  35. package/packages/{icons → forms}/node_modules/.bin/tailwind +2 -2
  36. package/packages/{icons → forms}/node_modules/.bin/tailwindcss +2 -2
  37. package/packages/{icons → forms}/node_modules/.bin/ts-jest +2 -2
  38. package/packages/{icons → forms}/node_modules/.bin/ts-node +2 -2
  39. package/packages/{icons → forms}/node_modules/.bin/ts-node-cwd +2 -2
  40. package/packages/{icons → forms}/node_modules/.bin/ts-node-esm +2 -2
  41. package/packages/{icons → forms}/node_modules/.bin/ts-node-script +2 -2
  42. package/packages/{icons → forms}/node_modules/.bin/ts-node-transpile-only +2 -2
  43. package/packages/{icons → forms}/node_modules/.bin/ts-script +2 -2
  44. package/packages/{icons → forms}/node_modules/.bin/tsc +2 -2
  45. package/packages/{icons → forms}/node_modules/.bin/tsc-alias +2 -2
  46. package/packages/{icons → forms}/node_modules/.bin/tsserver +2 -2
  47. package/packages/{icons → forms}/node_modules/.bin/vite +2 -2
  48. package/packages/{icons → forms}/package.json +2 -2
  49. package/packages/{react → forms}/src/components/Checkbox.tsx +23 -27
  50. package/packages/forms/src/components/CheckboxGroup.tsx +35 -0
  51. package/packages/forms/src/components/InputItem.ts +4 -0
  52. package/packages/forms/src/components/RadioGroup.tsx +36 -0
  53. package/packages/forms/src/components/Select.tsx +58 -0
  54. package/packages/forms/src/components/Text.tsx +50 -0
  55. package/packages/forms/src/components/Textarea.tsx +48 -0
  56. package/packages/forms/src/components/index.ts +7 -0
  57. package/packages/forms/src/index.ts +9 -0
  58. package/packages/react/package.json +1 -1
  59. package/packages/react/src/components/IconButton.tsx +78 -6
  60. package/packages/react/src/components/List.tsx +1 -0
  61. package/packages/react/src/components/index.ts +1 -6
  62. package/packages/react/src/index.ts +2 -7
  63. package/packages/config/src/material-symbols-outlined.woff2 +0 -0
  64. package/packages/icons/dist/components/Icon.d.ts +0 -6
  65. package/packages/icons/dist/components/Icon.d.ts.map +0 -1
  66. package/packages/icons/dist/components/IconButton.d.ts +0 -8
  67. package/packages/icons/dist/components/IconButton.d.ts.map +0 -1
  68. package/packages/icons/dist/components/index.d.ts +0 -3
  69. package/packages/icons/dist/components/index.d.ts.map +0 -1
  70. package/packages/icons/dist/index.cjs.js +0 -88
  71. package/packages/icons/dist/index.cjs.js.map +0 -1
  72. package/packages/icons/dist/index.d.ts +0 -2
  73. package/packages/icons/dist/index.d.ts.map +0 -1
  74. package/packages/icons/dist/index.es.js +0 -725
  75. package/packages/icons/dist/index.es.js.map +0 -1
  76. package/packages/icons/src/components/IconButton.tsx +0 -94
  77. package/packages/icons/src/components/index.ts +0 -2
  78. package/packages/icons/src/index.ts +0 -1
  79. package/packages/react/src/components/RadioGroup.tsx +0 -38
  80. package/packages/react/src/components/Select.tsx +0 -41
  81. package/packages/react/src/components/Text.tsx +0 -35
  82. package/packages/react/src/components/Textarea.tsx +0 -33
  83. /package/packages/{icons → forms}/dist/utils/index.d.ts +0 -0
  84. /package/packages/{icons → forms}/dist/utils/index.d.ts.map +0 -0
  85. /package/packages/{react → forms}/src/components/Radio.tsx +0 -0
  86. /package/packages/{icons → forms}/src/utils/index.ts +0 -0
  87. /package/packages/{icons → forms}/src/vite-env.d.ts +0 -0
  88. /package/packages/{icons → forms}/tsconfig.json +0 -0
  89. /package/packages/{icons → forms}/tsconfig.node.json +0 -0
  90. /package/packages/{icons → forms}/vite.config.ts +0 -0
  91. /package/packages/{icons → react}/src/components/Icon.tsx +0 -0
@@ -0,0 +1,828 @@
1
+ import S from "react";
2
+ var a = {}, sr = {
3
+ get exports() {
4
+ return a;
5
+ },
6
+ set exports(u) {
7
+ a = u;
8
+ }
9
+ }, I = {};
10
+ /**
11
+ * @license React
12
+ * react-jsx-runtime.production.min.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */
19
+ var we;
20
+ function lr() {
21
+ if (we)
22
+ return I;
23
+ we = 1;
24
+ var u = S, h = Symbol.for("react.element"), v = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, y = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, R = { key: !0, ref: !0, __self: !0, __source: !0 };
25
+ function p(f, m, w) {
26
+ var g, j = {}, P = null, Y = null;
27
+ w !== void 0 && (P = "" + w), m.key !== void 0 && (P = "" + m.key), m.ref !== void 0 && (Y = m.ref);
28
+ for (g in m)
29
+ c.call(m, g) && !R.hasOwnProperty(g) && (j[g] = m[g]);
30
+ if (f && f.defaultProps)
31
+ for (g in m = f.defaultProps, m)
32
+ j[g] === void 0 && (j[g] = m[g]);
33
+ return { $$typeof: h, type: f, key: P, ref: Y, props: j, _owner: y.current };
34
+ }
35
+ return I.Fragment = v, I.jsx = p, I.jsxs = p, I;
36
+ }
37
+ var W = {};
38
+ /**
39
+ * @license React
40
+ * react-jsx-runtime.development.js
41
+ *
42
+ * Copyright (c) Facebook, Inc. and its affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */
47
+ var je;
48
+ function ur() {
49
+ return je || (je = 1, process.env.NODE_ENV !== "production" && function() {
50
+ var u = S, h = Symbol.for("react.element"), v = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), f = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), Q = Symbol.iterator, Te = "@@iterator";
51
+ function Ce(e) {
52
+ if (e === null || typeof e != "object")
53
+ return null;
54
+ var r = Q && e[Q] || e[Te];
55
+ return typeof r == "function" ? r : null;
56
+ }
57
+ var k = u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
58
+ function E(e) {
59
+ {
60
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
61
+ t[n - 1] = arguments[n];
62
+ Pe("error", e, t);
63
+ }
64
+ }
65
+ function Pe(e, r, t) {
66
+ {
67
+ var n = k.ReactDebugCurrentFrame, s = n.getStackAddendum();
68
+ s !== "" && (r += "%s", t = t.concat([s]));
69
+ var l = t.map(function(i) {
70
+ return String(i);
71
+ });
72
+ l.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, l);
73
+ }
74
+ }
75
+ var Oe = !1, Se = !1, ke = !1, Ne = !1, Fe = !1, ee;
76
+ ee = Symbol.for("react.module.reference");
77
+ function De(e) {
78
+ return !!(typeof e == "string" || typeof e == "function" || e === c || e === R || Fe || e === y || e === w || e === g || Ne || e === Y || Oe || Se || ke || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === j || e.$$typeof === p || e.$$typeof === f || e.$$typeof === m || // This needs to include all possible module reference object
79
+ // types supported by any Flight configuration anywhere since
80
+ // we don't know which Flight build this will end up being used
81
+ // with.
82
+ e.$$typeof === ee || e.getModuleId !== void 0));
83
+ }
84
+ function Ae(e, r, t) {
85
+ var n = e.displayName;
86
+ if (n)
87
+ return n;
88
+ var s = r.displayName || r.name || "";
89
+ return s !== "" ? t + "(" + s + ")" : t;
90
+ }
91
+ function re(e) {
92
+ return e.displayName || "Context";
93
+ }
94
+ function T(e) {
95
+ if (e == null)
96
+ return null;
97
+ if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
98
+ return e.displayName || e.name || null;
99
+ if (typeof e == "string")
100
+ return e;
101
+ switch (e) {
102
+ case c:
103
+ return "Fragment";
104
+ case v:
105
+ return "Portal";
106
+ case R:
107
+ return "Profiler";
108
+ case y:
109
+ return "StrictMode";
110
+ case w:
111
+ return "Suspense";
112
+ case g:
113
+ return "SuspenseList";
114
+ }
115
+ if (typeof e == "object")
116
+ switch (e.$$typeof) {
117
+ case f:
118
+ var r = e;
119
+ return re(r) + ".Consumer";
120
+ case p:
121
+ var t = e;
122
+ return re(t._context) + ".Provider";
123
+ case m:
124
+ return Ae(e, e.render, "ForwardRef");
125
+ case j:
126
+ var n = e.displayName || null;
127
+ return n !== null ? n : T(e.type) || "Memo";
128
+ case P: {
129
+ var s = e, l = s._payload, i = s._init;
130
+ try {
131
+ return T(i(l));
132
+ } catch {
133
+ return null;
134
+ }
135
+ }
136
+ }
137
+ return null;
138
+ }
139
+ var O = Object.assign, D = 0, te, ne, ae, oe, ie, se, le;
140
+ function ue() {
141
+ }
142
+ ue.__reactDisabledLog = !0;
143
+ function Ie() {
144
+ {
145
+ if (D === 0) {
146
+ te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, se = console.groupCollapsed, le = console.groupEnd;
147
+ var e = {
148
+ configurable: !0,
149
+ enumerable: !0,
150
+ value: ue,
151
+ writable: !0
152
+ };
153
+ Object.defineProperties(console, {
154
+ info: e,
155
+ log: e,
156
+ warn: e,
157
+ error: e,
158
+ group: e,
159
+ groupCollapsed: e,
160
+ groupEnd: e
161
+ });
162
+ }
163
+ D++;
164
+ }
165
+ }
166
+ function We() {
167
+ {
168
+ if (D--, D === 0) {
169
+ var e = {
170
+ configurable: !0,
171
+ enumerable: !0,
172
+ writable: !0
173
+ };
174
+ Object.defineProperties(console, {
175
+ log: O({}, e, {
176
+ value: te
177
+ }),
178
+ info: O({}, e, {
179
+ value: ne
180
+ }),
181
+ warn: O({}, e, {
182
+ value: ae
183
+ }),
184
+ error: O({}, e, {
185
+ value: oe
186
+ }),
187
+ group: O({}, e, {
188
+ value: ie
189
+ }),
190
+ groupCollapsed: O({}, e, {
191
+ value: se
192
+ }),
193
+ groupEnd: O({}, e, {
194
+ value: le
195
+ })
196
+ });
197
+ }
198
+ D < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
199
+ }
200
+ }
201
+ var G = k.ReactCurrentDispatcher, q;
202
+ function M(e, r, t) {
203
+ {
204
+ if (q === void 0)
205
+ try {
206
+ throw Error();
207
+ } catch (s) {
208
+ var n = s.stack.trim().match(/\n( *(at )?)/);
209
+ q = n && n[1] || "";
210
+ }
211
+ return `
212
+ ` + q + e;
213
+ }
214
+ }
215
+ var J = !1, L;
216
+ {
217
+ var $e = typeof WeakMap == "function" ? WeakMap : Map;
218
+ L = new $e();
219
+ }
220
+ function ce(e, r) {
221
+ if (!e || J)
222
+ return "";
223
+ {
224
+ var t = L.get(e);
225
+ if (t !== void 0)
226
+ return t;
227
+ }
228
+ var n;
229
+ J = !0;
230
+ var s = Error.prepareStackTrace;
231
+ Error.prepareStackTrace = void 0;
232
+ var l;
233
+ l = G.current, G.current = null, Ie();
234
+ try {
235
+ if (r) {
236
+ var i = function() {
237
+ throw Error();
238
+ };
239
+ if (Object.defineProperty(i.prototype, "props", {
240
+ set: function() {
241
+ throw Error();
242
+ }
243
+ }), typeof Reflect == "object" && Reflect.construct) {
244
+ try {
245
+ Reflect.construct(i, []);
246
+ } catch (C) {
247
+ n = C;
248
+ }
249
+ Reflect.construct(e, [], i);
250
+ } else {
251
+ try {
252
+ i.call();
253
+ } catch (C) {
254
+ n = C;
255
+ }
256
+ e.call(i.prototype);
257
+ }
258
+ } else {
259
+ try {
260
+ throw Error();
261
+ } catch (C) {
262
+ n = C;
263
+ }
264
+ e();
265
+ }
266
+ } catch (C) {
267
+ if (C && n && typeof C.stack == "string") {
268
+ for (var o = C.stack.split(`
269
+ `), x = n.stack.split(`
270
+ `), d = o.length - 1, b = x.length - 1; d >= 1 && b >= 0 && o[d] !== x[b]; )
271
+ b--;
272
+ for (; d >= 1 && b >= 0; d--, b--)
273
+ if (o[d] !== x[b]) {
274
+ if (d !== 1 || b !== 1)
275
+ do
276
+ if (d--, b--, b < 0 || o[d] !== x[b]) {
277
+ var _ = `
278
+ ` + o[d].replace(" at new ", " at ");
279
+ return e.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, _), _;
280
+ }
281
+ while (d >= 1 && b >= 0);
282
+ break;
283
+ }
284
+ }
285
+ } finally {
286
+ J = !1, G.current = l, We(), Error.prepareStackTrace = s;
287
+ }
288
+ var F = e ? e.displayName || e.name : "", _e = F ? M(F) : "";
289
+ return typeof e == "function" && L.set(e, _e), _e;
290
+ }
291
+ function Ye(e, r, t) {
292
+ return ce(e, !1);
293
+ }
294
+ function Me(e) {
295
+ var r = e.prototype;
296
+ return !!(r && r.isReactComponent);
297
+ }
298
+ function V(e, r, t) {
299
+ if (e == null)
300
+ return "";
301
+ if (typeof e == "function")
302
+ return ce(e, Me(e));
303
+ if (typeof e == "string")
304
+ return M(e);
305
+ switch (e) {
306
+ case w:
307
+ return M("Suspense");
308
+ case g:
309
+ return M("SuspenseList");
310
+ }
311
+ if (typeof e == "object")
312
+ switch (e.$$typeof) {
313
+ case m:
314
+ return Ye(e.render);
315
+ case j:
316
+ return V(e.type, r, t);
317
+ case P: {
318
+ var n = e, s = n._payload, l = n._init;
319
+ try {
320
+ return V(l(s), r, t);
321
+ } catch {
322
+ }
323
+ }
324
+ }
325
+ return "";
326
+ }
327
+ var U = Object.prototype.hasOwnProperty, fe = {}, de = k.ReactDebugCurrentFrame;
328
+ function B(e) {
329
+ if (e) {
330
+ var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
331
+ de.setExtraStackFrame(t);
332
+ } else
333
+ de.setExtraStackFrame(null);
334
+ }
335
+ function Le(e, r, t, n, s) {
336
+ {
337
+ var l = Function.call.bind(U);
338
+ for (var i in e)
339
+ if (l(e, i)) {
340
+ var o = void 0;
341
+ try {
342
+ if (typeof e[i] != "function") {
343
+ var x = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
344
+ throw x.name = "Invariant Violation", x;
345
+ }
346
+ o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
347
+ } catch (d) {
348
+ o = d;
349
+ }
350
+ o && !(o instanceof Error) && (B(s), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof o), B(null)), o instanceof Error && !(o.message in fe) && (fe[o.message] = !0, B(s), E("Failed %s type: %s", t, o.message), B(null));
351
+ }
352
+ }
353
+ }
354
+ var Ve = Array.isArray;
355
+ function z(e) {
356
+ return Ve(e);
357
+ }
358
+ function Ue(e) {
359
+ {
360
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
361
+ return t;
362
+ }
363
+ }
364
+ function Be(e) {
365
+ try {
366
+ return ve(e), !1;
367
+ } catch {
368
+ return !0;
369
+ }
370
+ }
371
+ function ve(e) {
372
+ return "" + e;
373
+ }
374
+ function pe(e) {
375
+ if (Be(e))
376
+ return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ue(e)), ve(e);
377
+ }
378
+ var A = k.ReactCurrentOwner, Ge = {
379
+ key: !0,
380
+ ref: !0,
381
+ __self: !0,
382
+ __source: !0
383
+ }, be, he, K;
384
+ K = {};
385
+ function qe(e) {
386
+ if (U.call(e, "ref")) {
387
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
388
+ if (r && r.isReactWarning)
389
+ return !1;
390
+ }
391
+ return e.ref !== void 0;
392
+ }
393
+ function Je(e) {
394
+ if (U.call(e, "key")) {
395
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
396
+ if (r && r.isReactWarning)
397
+ return !1;
398
+ }
399
+ return e.key !== void 0;
400
+ }
401
+ function ze(e, r) {
402
+ if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
403
+ var t = T(A.current.type);
404
+ K[t] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', T(A.current.type), e.ref), K[t] = !0);
405
+ }
406
+ }
407
+ function Ke(e, r) {
408
+ {
409
+ var t = function() {
410
+ be || (be = !0, E("%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://reactjs.org/link/special-props)", r));
411
+ };
412
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
413
+ get: t,
414
+ configurable: !0
415
+ });
416
+ }
417
+ }
418
+ function He(e, r) {
419
+ {
420
+ var t = function() {
421
+ he || (he = !0, E("%s: `ref` 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://reactjs.org/link/special-props)", r));
422
+ };
423
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
424
+ get: t,
425
+ configurable: !0
426
+ });
427
+ }
428
+ }
429
+ var Xe = function(e, r, t, n, s, l, i) {
430
+ var o = {
431
+ // This tag allows us to uniquely identify this as a React Element
432
+ $$typeof: h,
433
+ // Built-in properties that belong on the element
434
+ type: e,
435
+ key: r,
436
+ ref: t,
437
+ props: i,
438
+ // Record the component responsible for creating this element.
439
+ _owner: l
440
+ };
441
+ return o._store = {}, Object.defineProperty(o._store, "validated", {
442
+ configurable: !1,
443
+ enumerable: !1,
444
+ writable: !0,
445
+ value: !1
446
+ }), Object.defineProperty(o, "_self", {
447
+ configurable: !1,
448
+ enumerable: !1,
449
+ writable: !1,
450
+ value: n
451
+ }), Object.defineProperty(o, "_source", {
452
+ configurable: !1,
453
+ enumerable: !1,
454
+ writable: !1,
455
+ value: s
456
+ }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
457
+ };
458
+ function Ze(e, r, t, n, s) {
459
+ {
460
+ var l, i = {}, o = null, x = null;
461
+ t !== void 0 && (pe(t), o = "" + t), Je(r) && (pe(r.key), o = "" + r.key), qe(r) && (x = r.ref, ze(r, s));
462
+ for (l in r)
463
+ U.call(r, l) && !Ge.hasOwnProperty(l) && (i[l] = r[l]);
464
+ if (e && e.defaultProps) {
465
+ var d = e.defaultProps;
466
+ for (l in d)
467
+ i[l] === void 0 && (i[l] = d[l]);
468
+ }
469
+ if (o || x) {
470
+ var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
471
+ o && Ke(i, b), x && He(i, b);
472
+ }
473
+ return Xe(e, o, x, s, n, A.current, i);
474
+ }
475
+ }
476
+ var H = k.ReactCurrentOwner, me = k.ReactDebugCurrentFrame;
477
+ function N(e) {
478
+ if (e) {
479
+ var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
480
+ me.setExtraStackFrame(t);
481
+ } else
482
+ me.setExtraStackFrame(null);
483
+ }
484
+ var X;
485
+ X = !1;
486
+ function Z(e) {
487
+ return typeof e == "object" && e !== null && e.$$typeof === h;
488
+ }
489
+ function ge() {
490
+ {
491
+ if (H.current) {
492
+ var e = T(H.current.type);
493
+ if (e)
494
+ return `
495
+
496
+ Check the render method of \`` + e + "`.";
497
+ }
498
+ return "";
499
+ }
500
+ }
501
+ function Qe(e) {
502
+ {
503
+ if (e !== void 0) {
504
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
505
+ return `
506
+
507
+ Check your code at ` + r + ":" + t + ".";
508
+ }
509
+ return "";
510
+ }
511
+ }
512
+ var ye = {};
513
+ function er(e) {
514
+ {
515
+ var r = ge();
516
+ if (!r) {
517
+ var t = typeof e == "string" ? e : e.displayName || e.name;
518
+ t && (r = `
519
+
520
+ Check the top-level render call using <` + t + ">.");
521
+ }
522
+ return r;
523
+ }
524
+ }
525
+ function Re(e, r) {
526
+ {
527
+ if (!e._store || e._store.validated || e.key != null)
528
+ return;
529
+ e._store.validated = !0;
530
+ var t = er(r);
531
+ if (ye[t])
532
+ return;
533
+ ye[t] = !0;
534
+ var n = "";
535
+ e && e._owner && e._owner !== H.current && (n = " It was passed a child from " + T(e._owner.type) + "."), N(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), N(null);
536
+ }
537
+ }
538
+ function Ee(e, r) {
539
+ {
540
+ if (typeof e != "object")
541
+ return;
542
+ if (z(e))
543
+ for (var t = 0; t < e.length; t++) {
544
+ var n = e[t];
545
+ Z(n) && Re(n, r);
546
+ }
547
+ else if (Z(e))
548
+ e._store && (e._store.validated = !0);
549
+ else if (e) {
550
+ var s = Ce(e);
551
+ if (typeof s == "function" && s !== e.entries)
552
+ for (var l = s.call(e), i; !(i = l.next()).done; )
553
+ Z(i.value) && Re(i.value, r);
554
+ }
555
+ }
556
+ }
557
+ function rr(e) {
558
+ {
559
+ var r = e.type;
560
+ if (r == null || typeof r == "string")
561
+ return;
562
+ var t;
563
+ if (typeof r == "function")
564
+ t = r.propTypes;
565
+ else if (typeof r == "object" && (r.$$typeof === m || // Note: Memo only checks outer props here.
566
+ // Inner props are checked in the reconciler.
567
+ r.$$typeof === j))
568
+ t = r.propTypes;
569
+ else
570
+ return;
571
+ if (t) {
572
+ var n = T(r);
573
+ Le(t, e.props, "prop", n, e);
574
+ } else if (r.PropTypes !== void 0 && !X) {
575
+ X = !0;
576
+ var s = T(r);
577
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
578
+ }
579
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
580
+ }
581
+ }
582
+ function tr(e) {
583
+ {
584
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
585
+ var n = r[t];
586
+ if (n !== "children" && n !== "key") {
587
+ N(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), N(null);
588
+ break;
589
+ }
590
+ }
591
+ e.ref !== null && (N(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), N(null));
592
+ }
593
+ }
594
+ function xe(e, r, t, n, s, l) {
595
+ {
596
+ var i = De(e);
597
+ if (!i) {
598
+ var o = "";
599
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
600
+ var x = Qe(s);
601
+ x ? o += x : o += ge();
602
+ var d;
603
+ e === null ? d = "null" : z(e) ? d = "array" : e !== void 0 && e.$$typeof === h ? (d = "<" + (T(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, o);
604
+ }
605
+ var b = Ze(e, r, t, s, l);
606
+ if (b == null)
607
+ return b;
608
+ if (i) {
609
+ var _ = r.children;
610
+ if (_ !== void 0)
611
+ if (n)
612
+ if (z(_)) {
613
+ for (var F = 0; F < _.length; F++)
614
+ Ee(_[F], e);
615
+ Object.freeze && Object.freeze(_);
616
+ } else
617
+ E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
618
+ else
619
+ Ee(_, e);
620
+ }
621
+ return e === c ? tr(b) : rr(b), b;
622
+ }
623
+ }
624
+ function nr(e, r, t) {
625
+ return xe(e, r, t, !0);
626
+ }
627
+ function ar(e, r, t) {
628
+ return xe(e, r, t, !1);
629
+ }
630
+ var or = ar, ir = nr;
631
+ W.Fragment = c, W.jsx = or, W.jsxs = ir;
632
+ }()), W;
633
+ }
634
+ (function(u) {
635
+ process.env.NODE_ENV === "production" ? u.exports = lr() : u.exports = ur();
636
+ })(sr);
637
+ const $ = (...u) => u.filter(Boolean).join(" "), cr = S.forwardRef(
638
+ (u, h) => {
639
+ const { className: v, children: c, ...y } = u, R = `
640
+ flex
641
+ items-center
642
+ text-sm
643
+ cursor-pointer
644
+ py-2
645
+ `, p = `
646
+ hidden
647
+ peer
648
+ `, f = `
649
+ inline-block
650
+ bg-clip-content
651
+ w-6 h-6
652
+ ml-1
653
+ mr-2
654
+ rounded
655
+ border
656
+ border-solid
657
+ border-sumi-900
658
+ peer-checked:bg-sea-600
659
+ peer-checked:border-none
660
+ `;
661
+ return /* @__PURE__ */ a.jsxs("label", { htmlFor: y.id, className: $(R, v), children: [
662
+ /* @__PURE__ */ a.jsx("input", { className: p, type: "checkbox", ...y, ref: h }),
663
+ /* @__PURE__ */ a.jsx("span", { className: f, children: /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", children: /* @__PURE__ */ a.jsx(
664
+ "path",
665
+ {
666
+ fill: "#fff",
667
+ 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"
668
+ }
669
+ ) }) }),
670
+ c
671
+ ] });
672
+ }
673
+ ), vr = (u) => {
674
+ const { items: h, onChange: v, label: c, className: y, children: R, ...p } = u, f = "checkbox group " + Math.random() * 1e5;
675
+ return /* @__PURE__ */ a.jsxs("fieldset", { ...p, children: [
676
+ c && /* @__PURE__ */ a.jsx("legend", { children: c }),
677
+ h.map(({ label: m, value: w }, g) => /* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(
678
+ cr,
679
+ {
680
+ className: "",
681
+ name: f,
682
+ value: w,
683
+ onChange: v,
684
+ children: m
685
+ }
686
+ ) }, g))
687
+ ] });
688
+ }, fr = S.forwardRef((u, h) => {
689
+ const { className: v, children: c, ...y } = u, R = `
690
+ flex
691
+ items-center
692
+ text-sm
693
+ cursor-pointer
694
+ py-2
695
+ `, p = `
696
+ hidden
697
+ peer
698
+ `, f = `
699
+ inline-block
700
+ bg-clip-content
701
+ w-6 h-6
702
+ ml-1
703
+ mr-2
704
+ p-1
705
+ rounded-full
706
+ border
707
+ border-solid
708
+ border-sumi-900
709
+ peer-checked:bg-sea-600
710
+ peer-checked:border-sea-600
711
+ `;
712
+ return /* @__PURE__ */ a.jsxs("label", { htmlFor: y.id, className: $(R, v), children: [
713
+ /* @__PURE__ */ a.jsx("input", { className: p, type: "radio", ...y, ref: h }),
714
+ /* @__PURE__ */ a.jsx("span", { className: f }),
715
+ c
716
+ ] });
717
+ }), pr = (u) => {
718
+ const { items: h, onChange: v, label: c, className: y, children: R, ...p } = u, f = "radio group " + Math.random() * 1e5;
719
+ return /* @__PURE__ */ a.jsxs("fieldset", { ...p, children: [
720
+ c && /* @__PURE__ */ a.jsx("legend", { children: c }),
721
+ h.map(({ label: m, value: w }, g) => /* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(
722
+ fr,
723
+ {
724
+ className: "",
725
+ name: f,
726
+ value: w,
727
+ onChange: v,
728
+ defaultChecked: g === 0,
729
+ children: m
730
+ }
731
+ ) }, g))
732
+ ] });
733
+ }, br = S.forwardRef(
734
+ (u, h) => {
735
+ const { label: v, className: c, children: y, ...R } = u, p = `
736
+ appearance-none
737
+ text-base
738
+ w-full
739
+ bg-white-100
740
+ border
741
+ border-solid
742
+ border-sumi-900
743
+ py-4 px-4 pr-8
744
+ rounded-[8px]
745
+ focus:outline
746
+ focus:outline-2
747
+ focus:outline-wood-500
748
+ `, f = /* @__PURE__ */ a.jsxs("div", { className: "inline-block relative", children: [
749
+ /* @__PURE__ */ a.jsx("select", { className: $(p, u.className), ...R, ref: h, children: u.children }),
750
+ /* @__PURE__ */ a.jsx("div", { className: "pointer-events-none absolute inset-y-0 right-0 flex items-center px-2", children: /* @__PURE__ */ a.jsx(
751
+ "svg",
752
+ {
753
+ xmlns: "http://www.w3.org/2000/svg",
754
+ className: "fill-sumi-900",
755
+ height: "24",
756
+ width: "24",
757
+ children: /* @__PURE__ */ a.jsx("path", { d: "M12 15.05 6.35 9.4 7.4 8.35l4.6 4.6 4.6-4.6 1.05 1.05Z" })
758
+ }
759
+ ) })
760
+ ] });
761
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: v ? /* @__PURE__ */ a.jsxs("label", { children: [
762
+ /* @__PURE__ */ a.jsx("span", { className: "block mb-2", children: v }),
763
+ f
764
+ ] }) : f });
765
+ }
766
+ ), hr = S.forwardRef(
767
+ (u, h) => {
768
+ const { label: v, className: c, ...y } = u, R = `
769
+ p-4
770
+ rounded-lg
771
+ border
772
+ border-solid
773
+ border-sumi-900
774
+ focus:outline
775
+ focus:outline-2
776
+ focus:outline-wood-500
777
+ disabled:bg-sumi-500
778
+ disabled:text-white-1000
779
+ disabled:border
780
+ disabled:border-solid
781
+ disabled:border-sumi-500
782
+ `, p = /* @__PURE__ */ a.jsx(
783
+ "input",
784
+ {
785
+ type: "text",
786
+ className: $(R, c),
787
+ ...y,
788
+ ref: h
789
+ }
790
+ );
791
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: v ? /* @__PURE__ */ a.jsxs("label", { children: [
792
+ /* @__PURE__ */ a.jsx("div", { className: "mb-2", children: v }),
793
+ p
794
+ ] }) : p });
795
+ }
796
+ ), mr = S.forwardRef(
797
+ (u, h) => {
798
+ const { label: v, className: c, children: y, ...R } = u, p = `
799
+ p-4
800
+ rounded-lg
801
+ border
802
+ border-solid
803
+ border-sumi-900
804
+ focus:outline
805
+ focus:outline-2
806
+ focus:outline-wood-500
807
+ disabled:bg-sumi-500
808
+ disabled:text-white-1000
809
+ disabled:border
810
+ disabled:border-solid
811
+ disabled:border-sumi-500
812
+ `, f = /* @__PURE__ */ a.jsx("textarea", { className: $(p, c), ...R, ref: h, children: y });
813
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: v ? /* @__PURE__ */ a.jsxs("label", { children: [
814
+ /* @__PURE__ */ a.jsx("div", { className: "mb-2", children: v }),
815
+ f
816
+ ] }) : f });
817
+ }
818
+ );
819
+ export {
820
+ cr as Checkbox,
821
+ vr as CheckboxGroup,
822
+ fr as Radio,
823
+ pr as RadioGroup,
824
+ br as Select,
825
+ hr as Text,
826
+ mr as Textarea
827
+ };
828
+ //# sourceMappingURL=index.es.js.map