@sakura-ui/sakura-ui 0.0.14 → 0.0.16

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 (101) 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/Radio.d.ts +5 -0
  9. package/packages/forms/dist/components/Radio.d.ts.map +1 -0
  10. package/packages/forms/dist/components/Select.d.ts +5 -0
  11. package/packages/forms/dist/components/Select.d.ts.map +1 -0
  12. package/packages/forms/dist/components/Text.d.ts +5 -0
  13. package/packages/forms/dist/components/Text.d.ts.map +1 -0
  14. package/packages/forms/dist/components/Textarea.d.ts +5 -0
  15. package/packages/forms/dist/components/Textarea.d.ts.map +1 -0
  16. package/packages/forms/dist/components/controlled/CheckboxGroup.d.ts +9 -0
  17. package/packages/forms/dist/components/controlled/CheckboxGroup.d.ts.map +1 -0
  18. package/packages/forms/dist/components/controlled/InputItem.d.ts +5 -0
  19. package/packages/forms/dist/components/controlled/InputItem.d.ts.map +1 -0
  20. package/packages/forms/dist/components/controlled/RadioGroup.d.ts +9 -0
  21. package/packages/forms/dist/components/controlled/RadioGroup.d.ts.map +1 -0
  22. package/packages/forms/dist/components/controlled/Select.d.ts +6 -0
  23. package/packages/forms/dist/components/controlled/Select.d.ts.map +1 -0
  24. package/packages/forms/dist/components/controlled/Text.d.ts +6 -0
  25. package/packages/forms/dist/components/controlled/Text.d.ts.map +1 -0
  26. package/packages/forms/dist/components/controlled/Textarea.d.ts +6 -0
  27. package/packages/forms/dist/components/controlled/Textarea.d.ts.map +1 -0
  28. package/packages/forms/dist/components/controlled/index.d.ts +6 -0
  29. package/packages/forms/dist/components/controlled/index.d.ts.map +1 -0
  30. package/packages/forms/dist/components/index.d.ts +6 -0
  31. package/packages/forms/dist/components/index.d.ts.map +1 -0
  32. package/packages/forms/dist/index.cjs.js +112 -0
  33. package/packages/forms/dist/index.cjs.js.map +1 -0
  34. package/packages/forms/dist/index.d.ts +3 -0
  35. package/packages/forms/dist/index.d.ts.map +1 -0
  36. package/packages/forms/dist/index.es.js +844 -0
  37. package/packages/forms/dist/index.es.js.map +1 -0
  38. package/packages/{icons → forms}/node_modules/.bin/autoprefixer +2 -2
  39. package/packages/{icons → forms}/node_modules/.bin/jest +2 -2
  40. package/packages/{icons → forms}/node_modules/.bin/npm-run-all +2 -2
  41. package/packages/{icons → forms}/node_modules/.bin/run-p +2 -2
  42. package/packages/{icons → forms}/node_modules/.bin/run-s +2 -2
  43. package/packages/{icons → forms}/node_modules/.bin/tailwind +2 -2
  44. package/packages/{icons → forms}/node_modules/.bin/tailwindcss +2 -2
  45. package/packages/{icons → forms}/node_modules/.bin/ts-jest +2 -2
  46. package/packages/{icons → forms}/node_modules/.bin/ts-node +2 -2
  47. package/packages/{icons → forms}/node_modules/.bin/ts-node-cwd +2 -2
  48. package/packages/{icons → forms}/node_modules/.bin/ts-node-esm +2 -2
  49. package/packages/{icons → forms}/node_modules/.bin/ts-node-script +2 -2
  50. package/packages/{icons → forms}/node_modules/.bin/ts-node-transpile-only +2 -2
  51. package/packages/{icons → forms}/node_modules/.bin/ts-script +2 -2
  52. package/packages/{icons → forms}/node_modules/.bin/tsc +2 -2
  53. package/packages/{icons → forms}/node_modules/.bin/tsc-alias +2 -2
  54. package/packages/{icons → forms}/node_modules/.bin/tsserver +2 -2
  55. package/packages/{icons → forms}/node_modules/.bin/vite +2 -2
  56. package/packages/{icons → forms}/package.json +3 -3
  57. package/packages/forms/src/components/Checkbox.tsx +59 -0
  58. package/packages/{react → forms}/src/components/Radio.tsx +7 -5
  59. package/packages/{react → forms}/src/components/Select.tsx +19 -17
  60. package/packages/{react → forms}/src/components/Text.tsx +14 -14
  61. package/packages/{react → forms}/src/components/Textarea.tsx +14 -14
  62. package/packages/forms/src/components/controlled/CheckboxGroup.tsx +31 -0
  63. package/packages/forms/src/components/controlled/InputItem.ts +4 -0
  64. package/packages/forms/src/components/controlled/RadioGroup.tsx +36 -0
  65. package/packages/forms/src/components/controlled/Select.tsx +22 -0
  66. package/packages/forms/src/components/controlled/Text.tsx +22 -0
  67. package/packages/forms/src/components/controlled/Textarea.tsx +23 -0
  68. package/packages/forms/src/components/controlled/index.ts +5 -0
  69. package/packages/forms/src/components/index.ts +5 -0
  70. package/packages/forms/src/index.ts +9 -0
  71. package/packages/react/package.json +1 -1
  72. package/packages/react/src/components/IconButton.tsx +78 -6
  73. package/packages/react/src/components/List.tsx +1 -0
  74. package/packages/react/src/components/index.ts +1 -6
  75. package/packages/react/src/index.ts +2 -7
  76. package/packages/config/src/material-symbols-outlined.woff2 +0 -0
  77. package/packages/icons/dist/components/Icon.d.ts +0 -6
  78. package/packages/icons/dist/components/Icon.d.ts.map +0 -1
  79. package/packages/icons/dist/components/IconButton.d.ts +0 -8
  80. package/packages/icons/dist/components/IconButton.d.ts.map +0 -1
  81. package/packages/icons/dist/components/index.d.ts +0 -3
  82. package/packages/icons/dist/components/index.d.ts.map +0 -1
  83. package/packages/icons/dist/index.cjs.js +0 -88
  84. package/packages/icons/dist/index.cjs.js.map +0 -1
  85. package/packages/icons/dist/index.d.ts +0 -2
  86. package/packages/icons/dist/index.d.ts.map +0 -1
  87. package/packages/icons/dist/index.es.js +0 -725
  88. package/packages/icons/dist/index.es.js.map +0 -1
  89. package/packages/icons/src/components/IconButton.tsx +0 -94
  90. package/packages/icons/src/components/index.ts +0 -2
  91. package/packages/icons/src/index.ts +0 -1
  92. package/packages/react/src/components/Checkbox.tsx +0 -56
  93. package/packages/react/src/components/RadioGroup.tsx +0 -38
  94. /package/packages/{icons → forms}/dist/utils/index.d.ts +0 -0
  95. /package/packages/{icons → forms}/dist/utils/index.d.ts.map +0 -0
  96. /package/packages/{icons → forms}/src/utils/index.ts +0 -0
  97. /package/packages/{icons → forms}/src/vite-env.d.ts +0 -0
  98. /package/packages/{icons → forms}/tsconfig.json +0 -0
  99. /package/packages/{icons → forms}/tsconfig.node.json +0 -0
  100. /package/packages/{icons → forms}/vite.config.ts +0 -0
  101. /package/packages/{icons → react}/src/components/Icon.tsx +0 -0
@@ -0,0 +1,844 @@
1
+ import j from "react";
2
+ var a = {}, sr = {
3
+ get exports() {
4
+ return a;
5
+ },
6
+ set exports(s) {
7
+ a = s;
8
+ }
9
+ }, $ = {};
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 $;
23
+ we = 1;
24
+ var s = j, d = Symbol.for("react.element"), v = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, f = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
25
+ function R(g, m, w) {
26
+ var _, C = {}, S = null, Y = null;
27
+ w !== void 0 && (S = "" + w), m.key !== void 0 && (S = "" + m.key), m.ref !== void 0 && (Y = m.ref);
28
+ for (_ in m)
29
+ u.call(m, _) && !h.hasOwnProperty(_) && (C[_] = m[_]);
30
+ if (g && g.defaultProps)
31
+ for (_ in m = g.defaultProps, m)
32
+ C[_] === void 0 && (C[_] = m[_]);
33
+ return { $$typeof: d, type: g, key: S, ref: Y, props: C, _owner: f.current };
34
+ }
35
+ return $.Fragment = v, $.jsx = R, $.jsxs = R, $;
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 cr() {
49
+ return je || (je = 1, process.env.NODE_ENV !== "production" && function() {
50
+ var s = j, d = Symbol.for("react.element"), v = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), R = Symbol.for("react.provider"), g = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), S = 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 N = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
58
+ function y(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 = N.ReactDebugCurrentFrame, l = n.getStackAddendum();
68
+ l !== "" && (r += "%s", t = t.concat([l]));
69
+ var c = t.map(function(i) {
70
+ return String(i);
71
+ });
72
+ c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
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 === u || e === h || Fe || e === f || e === w || e === _ || Ne || e === Y || Oe || Se || ke || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === C || e.$$typeof === R || e.$$typeof === g || 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 l = r.displayName || r.name || "";
89
+ return l !== "" ? t + "(" + l + ")" : t;
90
+ }
91
+ function re(e) {
92
+ return e.displayName || "Context";
93
+ }
94
+ function P(e) {
95
+ if (e == null)
96
+ return null;
97
+ if (typeof e.tag == "number" && y("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 u:
103
+ return "Fragment";
104
+ case v:
105
+ return "Portal";
106
+ case h:
107
+ return "Profiler";
108
+ case f:
109
+ return "StrictMode";
110
+ case w:
111
+ return "Suspense";
112
+ case _:
113
+ return "SuspenseList";
114
+ }
115
+ if (typeof e == "object")
116
+ switch (e.$$typeof) {
117
+ case g:
118
+ var r = e;
119
+ return re(r) + ".Consumer";
120
+ case R:
121
+ var t = e;
122
+ return re(t._context) + ".Provider";
123
+ case m:
124
+ return Ae(e, e.render, "ForwardRef");
125
+ case C:
126
+ var n = e.displayName || null;
127
+ return n !== null ? n : P(e.type) || "Memo";
128
+ case S: {
129
+ var l = e, c = l._payload, i = l._init;
130
+ try {
131
+ return P(i(c));
132
+ } catch {
133
+ return null;
134
+ }
135
+ }
136
+ }
137
+ return null;
138
+ }
139
+ var k = Object.assign, A = 0, te, ne, ae, oe, ie, se, le;
140
+ function ce() {
141
+ }
142
+ ce.__reactDisabledLog = !0;
143
+ function Ie() {
144
+ {
145
+ if (A === 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: ce,
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
+ A++;
164
+ }
165
+ }
166
+ function $e() {
167
+ {
168
+ if (A--, A === 0) {
169
+ var e = {
170
+ configurable: !0,
171
+ enumerable: !0,
172
+ writable: !0
173
+ };
174
+ Object.defineProperties(console, {
175
+ log: k({}, e, {
176
+ value: te
177
+ }),
178
+ info: k({}, e, {
179
+ value: ne
180
+ }),
181
+ warn: k({}, e, {
182
+ value: ae
183
+ }),
184
+ error: k({}, e, {
185
+ value: oe
186
+ }),
187
+ group: k({}, e, {
188
+ value: ie
189
+ }),
190
+ groupCollapsed: k({}, e, {
191
+ value: se
192
+ }),
193
+ groupEnd: k({}, e, {
194
+ value: le
195
+ })
196
+ });
197
+ }
198
+ A < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
199
+ }
200
+ }
201
+ var G = N.ReactCurrentDispatcher, q;
202
+ function M(e, r, t) {
203
+ {
204
+ if (q === void 0)
205
+ try {
206
+ throw Error();
207
+ } catch (l) {
208
+ var n = l.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 We = typeof WeakMap == "function" ? WeakMap : Map;
218
+ L = new We();
219
+ }
220
+ function ue(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 l = Error.prepareStackTrace;
231
+ Error.prepareStackTrace = void 0;
232
+ var c;
233
+ c = 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 (O) {
247
+ n = O;
248
+ }
249
+ Reflect.construct(e, [], i);
250
+ } else {
251
+ try {
252
+ i.call();
253
+ } catch (O) {
254
+ n = O;
255
+ }
256
+ e.call(i.prototype);
257
+ }
258
+ } else {
259
+ try {
260
+ throw Error();
261
+ } catch (O) {
262
+ n = O;
263
+ }
264
+ e();
265
+ }
266
+ } catch (O) {
267
+ if (O && n && typeof O.stack == "string") {
268
+ for (var o = O.stack.split(`
269
+ `), x = n.stack.split(`
270
+ `), p = o.length - 1, b = x.length - 1; p >= 1 && b >= 0 && o[p] !== x[b]; )
271
+ b--;
272
+ for (; p >= 1 && b >= 0; p--, b--)
273
+ if (o[p] !== x[b]) {
274
+ if (p !== 1 || b !== 1)
275
+ do
276
+ if (p--, b--, b < 0 || o[p] !== x[b]) {
277
+ var E = `
278
+ ` + o[p].replace(" at new ", " at ");
279
+ return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, E), E;
280
+ }
281
+ while (p >= 1 && b >= 0);
282
+ break;
283
+ }
284
+ }
285
+ } finally {
286
+ J = !1, G.current = c, $e(), Error.prepareStackTrace = l;
287
+ }
288
+ var D = e ? e.displayName || e.name : "", Ee = D ? M(D) : "";
289
+ return typeof e == "function" && L.set(e, Ee), Ee;
290
+ }
291
+ function Ye(e, r, t) {
292
+ return ue(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 ue(e, Me(e));
303
+ if (typeof e == "string")
304
+ return M(e);
305
+ switch (e) {
306
+ case w:
307
+ return M("Suspense");
308
+ case _:
309
+ return M("SuspenseList");
310
+ }
311
+ if (typeof e == "object")
312
+ switch (e.$$typeof) {
313
+ case m:
314
+ return Ye(e.render);
315
+ case C:
316
+ return V(e.type, r, t);
317
+ case S: {
318
+ var n = e, l = n._payload, c = n._init;
319
+ try {
320
+ return V(c(l), r, t);
321
+ } catch {
322
+ }
323
+ }
324
+ }
325
+ return "";
326
+ }
327
+ var U = Object.prototype.hasOwnProperty, fe = {}, de = N.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, l) {
336
+ {
337
+ var c = Function.call.bind(U);
338
+ for (var i in e)
339
+ if (c(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 (p) {
348
+ o = p;
349
+ }
350
+ o && !(o instanceof Error) && (B(l), y("%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(l), y("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 y("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 I = N.ReactCurrentOwner, Ge = {
379
+ key: !0,
380
+ ref: !0,
381
+ __self: !0,
382
+ __source: !0
383
+ }, be, me, 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" && I.current && r && I.current.stateNode !== r) {
403
+ var t = P(I.current.type);
404
+ K[t] || (y('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', P(I.current.type), e.ref), K[t] = !0);
405
+ }
406
+ }
407
+ function Ke(e, r) {
408
+ {
409
+ var t = function() {
410
+ be || (be = !0, y("%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
+ me || (me = !0, y("%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, l, c, i) {
430
+ var o = {
431
+ // This tag allows us to uniquely identify this as a React Element
432
+ $$typeof: d,
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: c
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: l
456
+ }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
457
+ };
458
+ function Ze(e, r, t, n, l) {
459
+ {
460
+ var c, 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, l));
462
+ for (c in r)
463
+ U.call(r, c) && !Ge.hasOwnProperty(c) && (i[c] = r[c]);
464
+ if (e && e.defaultProps) {
465
+ var p = e.defaultProps;
466
+ for (c in p)
467
+ i[c] === void 0 && (i[c] = p[c]);
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, l, n, I.current, i);
474
+ }
475
+ }
476
+ var H = N.ReactCurrentOwner, he = N.ReactDebugCurrentFrame;
477
+ function F(e) {
478
+ if (e) {
479
+ var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
480
+ he.setExtraStackFrame(t);
481
+ } else
482
+ he.setExtraStackFrame(null);
483
+ }
484
+ var X;
485
+ X = !1;
486
+ function Z(e) {
487
+ return typeof e == "object" && e !== null && e.$$typeof === d;
488
+ }
489
+ function ge() {
490
+ {
491
+ if (H.current) {
492
+ var e = P(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 xe(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 " + P(e._owner.type) + "."), F(e), y('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), F(null);
536
+ }
537
+ }
538
+ function Re(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) && xe(n, r);
546
+ }
547
+ else if (Z(e))
548
+ e._store && (e._store.validated = !0);
549
+ else if (e) {
550
+ var l = Ce(e);
551
+ if (typeof l == "function" && l !== e.entries)
552
+ for (var c = l.call(e), i; !(i = c.next()).done; )
553
+ Z(i.value) && xe(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 === C))
568
+ t = r.propTypes;
569
+ else
570
+ return;
571
+ if (t) {
572
+ var n = P(r);
573
+ Le(t, e.props, "prop", n, e);
574
+ } else if (r.PropTypes !== void 0 && !X) {
575
+ X = !0;
576
+ var l = P(r);
577
+ y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
578
+ }
579
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("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
+ F(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), F(null);
588
+ break;
589
+ }
590
+ }
591
+ e.ref !== null && (F(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
592
+ }
593
+ }
594
+ function _e(e, r, t, n, l, c) {
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(l);
601
+ x ? o += x : o += ge();
602
+ var p;
603
+ e === null ? p = "null" : z(e) ? p = "array" : e !== void 0 && e.$$typeof === d ? (p = "<" + (P(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : p = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", p, o);
604
+ }
605
+ var b = Ze(e, r, t, l, c);
606
+ if (b == null)
607
+ return b;
608
+ if (i) {
609
+ var E = r.children;
610
+ if (E !== void 0)
611
+ if (n)
612
+ if (z(E)) {
613
+ for (var D = 0; D < E.length; D++)
614
+ Re(E[D], e);
615
+ Object.freeze && Object.freeze(E);
616
+ } else
617
+ y("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
+ Re(E, e);
620
+ }
621
+ return e === u ? tr(b) : rr(b), b;
622
+ }
623
+ }
624
+ function nr(e, r, t) {
625
+ return _e(e, r, t, !0);
626
+ }
627
+ function ar(e, r, t) {
628
+ return _e(e, r, t, !1);
629
+ }
630
+ var or = ar, ir = nr;
631
+ W.Fragment = u, W.jsx = or, W.jsxs = ir;
632
+ }()), W;
633
+ }
634
+ (function(s) {
635
+ process.env.NODE_ENV === "production" ? s.exports = lr() : s.exports = cr();
636
+ })(sr);
637
+ const T = (...s) => s.filter(Boolean).join(" "), ur = j.forwardRef(
638
+ (s, d) => {
639
+ const { className: v, children: u, ...f } = s, h = `
640
+ flex
641
+ items-center
642
+ text-sm
643
+ cursor-pointer
644
+ py-2
645
+ `, R = `
646
+ hidden
647
+ peer
648
+ `, g = `
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.jsx("div", { className: "inline-block", children: /* @__PURE__ */ a.jsxs("label", { htmlFor: f.id, className: T(h, v), children: [
662
+ /* @__PURE__ */ a.jsx(
663
+ "input",
664
+ {
665
+ className: R,
666
+ type: "checkbox",
667
+ ...f,
668
+ ref: d
669
+ }
670
+ ),
671
+ /* @__PURE__ */ a.jsx("span", { className: g, children: /* @__PURE__ */ a.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", children: /* @__PURE__ */ a.jsx(
672
+ "path",
673
+ {
674
+ fill: "#fff",
675
+ 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"
676
+ }
677
+ ) }) }),
678
+ u
679
+ ] }) });
680
+ }
681
+ ), fr = j.forwardRef((s, d) => {
682
+ const { className: v, children: u, ...f } = s, h = `
683
+ flex
684
+ items-center
685
+ text-sm
686
+ cursor-pointer
687
+ py-2
688
+ `, R = `
689
+ hidden
690
+ peer
691
+ `, g = `
692
+ inline-block
693
+ bg-clip-content
694
+ w-6 h-6
695
+ ml-1
696
+ mr-2
697
+ p-1
698
+ rounded-full
699
+ border
700
+ border-solid
701
+ border-sumi-900
702
+ peer-checked:bg-sea-600
703
+ peer-checked:border-sea-600
704
+ `;
705
+ return /* @__PURE__ */ a.jsx("div", { className: "inline-block", children: /* @__PURE__ */ a.jsxs("label", { htmlFor: f.id, className: T(h, v), children: [
706
+ /* @__PURE__ */ a.jsx("input", { className: R, type: "radio", ...f, ref: d }),
707
+ /* @__PURE__ */ a.jsx("span", { className: g }),
708
+ u
709
+ ] }) });
710
+ }), dr = j.forwardRef(
711
+ (s, d) => {
712
+ const { className: v, children: u, ...f } = s, h = `
713
+ appearance-none
714
+ text-base
715
+ w-full
716
+ bg-white-100
717
+ border
718
+ border-solid
719
+ border-sumi-900
720
+ py-4 px-4 pr-8
721
+ rounded-[8px]
722
+ focus:outline
723
+ focus:outline-2
724
+ focus:outline-wood-500
725
+ `;
726
+ return /* @__PURE__ */ a.jsxs("div", { className: "inline-block relative", children: [
727
+ /* @__PURE__ */ a.jsx("select", { className: T(h, s.className), ...f, ref: d, children: u }),
728
+ /* @__PURE__ */ a.jsx("div", { className: "pointer-events-none absolute inset-y-0 right-0 flex items-center px-2", children: /* @__PURE__ */ a.jsx(
729
+ "svg",
730
+ {
731
+ xmlns: "http://www.w3.org/2000/svg",
732
+ className: "fill-sumi-900",
733
+ height: "24",
734
+ width: "24",
735
+ 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" })
736
+ }
737
+ ) })
738
+ ] });
739
+ }
740
+ ), vr = j.forwardRef(
741
+ (s, d) => {
742
+ const { className: v, ...u } = s, f = `
743
+ p-4
744
+ rounded-lg
745
+ border
746
+ border-solid
747
+ border-sumi-900
748
+ focus:outline
749
+ focus:outline-2
750
+ focus:outline-wood-500
751
+ disabled:bg-sumi-500
752
+ disabled:text-white-1000
753
+ disabled:border
754
+ disabled:border-solid
755
+ disabled:border-sumi-500
756
+ `;
757
+ return /* @__PURE__ */ a.jsx(
758
+ "input",
759
+ {
760
+ type: "text",
761
+ className: T(f, v),
762
+ ...u,
763
+ ref: d
764
+ }
765
+ );
766
+ }
767
+ ), pr = j.forwardRef(
768
+ (s, d) => {
769
+ const { className: v, children: u, ...f } = s, h = `
770
+ p-4
771
+ rounded-lg
772
+ border
773
+ border-solid
774
+ border-sumi-900
775
+ focus:outline
776
+ focus:outline-2
777
+ focus:outline-wood-500
778
+ disabled:bg-sumi-500
779
+ disabled:text-white-1000
780
+ disabled:border
781
+ disabled:border-solid
782
+ disabled:border-sumi-500
783
+ `;
784
+ return /* @__PURE__ */ a.jsx("textarea", { className: T(h, v), ...f, ref: d, children: u });
785
+ }
786
+ ), mr = (s) => {
787
+ const { items: d, onChange: v, label: u, className: f, ...h } = s, R = `checkbox_group_${Math.random()}`;
788
+ return /* @__PURE__ */ a.jsxs("fieldset", { className: T("mb-4", f), ...h, children: [
789
+ /* @__PURE__ */ a.jsx("legend", { children: u }),
790
+ d.map(({ label: g, value: m }, w) => /* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(ur, { name: R, value: m, onChange: v, children: g }) }, w))
791
+ ] });
792
+ }, hr = (s) => {
793
+ const { items: d, onChange: v, label: u, className: f, ...h } = s, R = `radio_group_${Math.random()}`;
794
+ return /* @__PURE__ */ a.jsxs("fieldset", { className: T("mb-4", f), ...h, children: [
795
+ /* @__PURE__ */ a.jsx("legend", { children: u }),
796
+ d.map(({ label: g, value: m }, w) => /* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(
797
+ fr,
798
+ {
799
+ name: R,
800
+ value: m,
801
+ onChange: v,
802
+ defaultChecked: w === 0,
803
+ children: g
804
+ }
805
+ ) }, w))
806
+ ] });
807
+ }, gr = j.forwardRef(
808
+ (s, d) => {
809
+ const { label: v, className: u, ...f } = s;
810
+ return /* @__PURE__ */ a.jsx("div", { className: T("mb-4", u), children: /* @__PURE__ */ a.jsxs("label", { children: [
811
+ /* @__PURE__ */ a.jsx("div", { className: "block mb-2", children: v }),
812
+ /* @__PURE__ */ a.jsx(dr, { ref: d, ...f })
813
+ ] }) });
814
+ }
815
+ ), yr = j.forwardRef(
816
+ (s, d) => {
817
+ const { label: v, className: u, ...f } = s;
818
+ return /* @__PURE__ */ a.jsx("div", { className: T("mb-4", u), children: /* @__PURE__ */ a.jsxs("label", { children: [
819
+ /* @__PURE__ */ a.jsx("div", { className: "block mb-2", children: v }),
820
+ /* @__PURE__ */ a.jsx(vr, { ref: d, ...f })
821
+ ] }) });
822
+ }
823
+ ), xr = j.forwardRef(
824
+ (s, d) => {
825
+ const { label: v, className: u, ...f } = s;
826
+ return /* @__PURE__ */ a.jsx("div", { className: T("mb-4", u), children: /* @__PURE__ */ a.jsxs("label", { children: [
827
+ /* @__PURE__ */ a.jsx("div", { className: "block mb-2", children: v }),
828
+ /* @__PURE__ */ a.jsx(pr, { ref: d, ...f })
829
+ ] }) });
830
+ }
831
+ );
832
+ export {
833
+ ur as Checkbox,
834
+ mr as CheckboxGroup,
835
+ fr as Radio,
836
+ hr as RadioGroup,
837
+ dr as Select,
838
+ gr as SelectControl,
839
+ vr as Text,
840
+ yr as TextControl,
841
+ pr as Textarea,
842
+ xr as TextareaControl
843
+ };
844
+ //# sourceMappingURL=index.es.js.map