@sakura-ui/sakura-ui 0.0.14 → 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
@@ -1,725 +0,0 @@
1
- import q from "react";
2
- var S = {}, sr = {
3
- get exports() {
4
- return S;
5
- },
6
- set exports(p) {
7
- S = p;
8
- }
9
- }, N = {};
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 Te;
20
- function ur() {
21
- if (Te)
22
- return N;
23
- Te = 1;
24
- var p = q, h = Symbol.for("react.element"), x = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, w = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
25
- function O(E, c, P) {
26
- var f, m = {}, T = null, j = null;
27
- P !== void 0 && (T = "" + P), c.key !== void 0 && (T = "" + c.key), c.ref !== void 0 && (j = c.ref);
28
- for (f in c)
29
- g.call(c, f) && !y.hasOwnProperty(f) && (m[f] = c[f]);
30
- if (E && E.defaultProps)
31
- for (f in c = E.defaultProps, c)
32
- m[f] === void 0 && (m[f] = c[f]);
33
- return { $$typeof: h, type: E, key: T, ref: j, props: m, _owner: w.current };
34
- }
35
- return N.Fragment = x, N.jsx = O, N.jsxs = O, N;
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 xe;
48
- function lr() {
49
- return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
50
- var p = q, h = Symbol.for("react.element"), x = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), O = Symbol.for("react.provider"), E = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), A = Symbol.iterator, Oe = "@@iterator";
51
- function Pe(e) {
52
- if (e === null || typeof e != "object")
53
- return null;
54
- var r = A && e[A] || e[Oe];
55
- return typeof r == "function" ? r : null;
56
- }
57
- var k = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
58
- function d(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
- Ce("error", e, t);
63
- }
64
- }
65
- function Ce(e, r, t) {
66
- {
67
- var n = k.ReactDebugCurrentFrame, i = n.getStackAddendum();
68
- i !== "" && (r += "%s", t = t.concat([i]));
69
- var s = t.map(function(o) {
70
- return String(o);
71
- });
72
- s.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, s);
73
- }
74
- }
75
- var Se = !1, je = !1, ke = !1, De = !1, Fe = !1, ee;
76
- ee = Symbol.for("react.module.reference");
77
- function Ae(e) {
78
- return !!(typeof e == "string" || typeof e == "function" || e === g || e === y || Fe || e === w || e === P || e === f || De || e === j || Se || je || ke || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === m || e.$$typeof === O || e.$$typeof === E || e.$$typeof === c || // 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 Ie(e, r, t) {
85
- var n = e.displayName;
86
- if (n)
87
- return n;
88
- var i = r.displayName || r.name || "";
89
- return i !== "" ? t + "(" + i + ")" : t;
90
- }
91
- function re(e) {
92
- return e.displayName || "Context";
93
- }
94
- function R(e) {
95
- if (e == null)
96
- return null;
97
- if (typeof e.tag == "number" && d("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 g:
103
- return "Fragment";
104
- case x:
105
- return "Portal";
106
- case y:
107
- return "Profiler";
108
- case w:
109
- return "StrictMode";
110
- case P:
111
- return "Suspense";
112
- case f:
113
- return "SuspenseList";
114
- }
115
- if (typeof e == "object")
116
- switch (e.$$typeof) {
117
- case E:
118
- var r = e;
119
- return re(r) + ".Consumer";
120
- case O:
121
- var t = e;
122
- return re(t._context) + ".Provider";
123
- case c:
124
- return Ie(e, e.render, "ForwardRef");
125
- case m:
126
- var n = e.displayName || null;
127
- return n !== null ? n : R(e.type) || "Memo";
128
- case T: {
129
- var i = e, s = i._payload, o = i._init;
130
- try {
131
- return R(o(s));
132
- } catch {
133
- return null;
134
- }
135
- }
136
- }
137
- return null;
138
- }
139
- var C = Object.assign, I = 0, te, ne, ae, oe, ie, se, ue;
140
- function le() {
141
- }
142
- le.__reactDisabledLog = !0;
143
- function $e() {
144
- {
145
- if (I === 0) {
146
- te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, se = console.groupCollapsed, ue = console.groupEnd;
147
- var e = {
148
- configurable: !0,
149
- enumerable: !0,
150
- value: le,
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
- I++;
164
- }
165
- }
166
- function Ne() {
167
- {
168
- if (I--, I === 0) {
169
- var e = {
170
- configurable: !0,
171
- enumerable: !0,
172
- writable: !0
173
- };
174
- Object.defineProperties(console, {
175
- log: C({}, e, {
176
- value: te
177
- }),
178
- info: C({}, e, {
179
- value: ne
180
- }),
181
- warn: C({}, e, {
182
- value: ae
183
- }),
184
- error: C({}, e, {
185
- value: oe
186
- }),
187
- group: C({}, e, {
188
- value: ie
189
- }),
190
- groupCollapsed: C({}, e, {
191
- value: se
192
- }),
193
- groupEnd: C({}, e, {
194
- value: ue
195
- })
196
- });
197
- }
198
- I < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
199
- }
200
- }
201
- var J = k.ReactCurrentDispatcher, G;
202
- function Y(e, r, t) {
203
- {
204
- if (G === void 0)
205
- try {
206
- throw Error();
207
- } catch (i) {
208
- var n = i.stack.trim().match(/\n( *(at )?)/);
209
- G = n && n[1] || "";
210
- }
211
- return `
212
- ` + G + e;
213
- }
214
- }
215
- var z = !1, L;
216
- {
217
- var We = typeof WeakMap == "function" ? WeakMap : Map;
218
- L = new We();
219
- }
220
- function ce(e, r) {
221
- if (!e || z)
222
- return "";
223
- {
224
- var t = L.get(e);
225
- if (t !== void 0)
226
- return t;
227
- }
228
- var n;
229
- z = !0;
230
- var i = Error.prepareStackTrace;
231
- Error.prepareStackTrace = void 0;
232
- var s;
233
- s = J.current, J.current = null, $e();
234
- try {
235
- if (r) {
236
- var o = function() {
237
- throw Error();
238
- };
239
- if (Object.defineProperty(o.prototype, "props", {
240
- set: function() {
241
- throw Error();
242
- }
243
- }), typeof Reflect == "object" && Reflect.construct) {
244
- try {
245
- Reflect.construct(o, []);
246
- } catch (_) {
247
- n = _;
248
- }
249
- Reflect.construct(e, [], o);
250
- } else {
251
- try {
252
- o.call();
253
- } catch (_) {
254
- n = _;
255
- }
256
- e.call(o.prototype);
257
- }
258
- } else {
259
- try {
260
- throw Error();
261
- } catch (_) {
262
- n = _;
263
- }
264
- e();
265
- }
266
- } catch (_) {
267
- if (_ && n && typeof _.stack == "string") {
268
- for (var a = _.stack.split(`
269
- `), v = n.stack.split(`
270
- `), u = a.length - 1, l = v.length - 1; u >= 1 && l >= 0 && a[u] !== v[l]; )
271
- l--;
272
- for (; u >= 1 && l >= 0; u--, l--)
273
- if (a[u] !== v[l]) {
274
- if (u !== 1 || l !== 1)
275
- do
276
- if (u--, l--, l < 0 || a[u] !== v[l]) {
277
- var b = `
278
- ` + a[u].replace(" at new ", " at ");
279
- return e.displayName && b.includes("<anonymous>") && (b = b.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, b), b;
280
- }
281
- while (u >= 1 && l >= 0);
282
- break;
283
- }
284
- }
285
- } finally {
286
- z = !1, J.current = s, Ne(), Error.prepareStackTrace = i;
287
- }
288
- var F = e ? e.displayName || e.name : "", we = F ? Y(F) : "";
289
- return typeof e == "function" && L.set(e, we), we;
290
- }
291
- function Ye(e, r, t) {
292
- return ce(e, !1);
293
- }
294
- function Le(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, Le(e));
303
- if (typeof e == "string")
304
- return Y(e);
305
- switch (e) {
306
- case P:
307
- return Y("Suspense");
308
- case f:
309
- return Y("SuspenseList");
310
- }
311
- if (typeof e == "object")
312
- switch (e.$$typeof) {
313
- case c:
314
- return Ye(e.render);
315
- case m:
316
- return V(e.type, r, t);
317
- case T: {
318
- var n = e, i = n._payload, s = n._init;
319
- try {
320
- return V(s(i), r, t);
321
- } catch {
322
- }
323
- }
324
- }
325
- return "";
326
- }
327
- var M = Object.prototype.hasOwnProperty, fe = {}, de = k.ReactDebugCurrentFrame;
328
- function U(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 Ve(e, r, t, n, i) {
336
- {
337
- var s = Function.call.bind(M);
338
- for (var o in e)
339
- if (s(e, o)) {
340
- var a = void 0;
341
- try {
342
- if (typeof e[o] != "function") {
343
- var v = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
344
- throw v.name = "Invariant Violation", v;
345
- }
346
- a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
347
- } catch (u) {
348
- a = u;
349
- }
350
- a && !(a instanceof Error) && (U(i), d("%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, o, typeof a), U(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, U(i), d("Failed %s type: %s", t, a.message), U(null));
351
- }
352
- }
353
- }
354
- var Me = Array.isArray;
355
- function K(e) {
356
- return Me(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 d("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 $ = k.ReactCurrentOwner, qe = {
379
- key: !0,
380
- ref: !0,
381
- __self: !0,
382
- __source: !0
383
- }, be, ge, H;
384
- H = {};
385
- function Je(e) {
386
- if (M.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 Ge(e) {
394
- if (M.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" && $.current && r && $.current.stateNode !== r) {
403
- var t = R($.current.type);
404
- H[t] || (d('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', R($.current.type), e.ref), H[t] = !0);
405
- }
406
- }
407
- function Ke(e, r) {
408
- {
409
- var t = function() {
410
- be || (be = !0, d("%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
- ge || (ge = !0, d("%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, i, s, o) {
430
- var a = {
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: o,
438
- // Record the component responsible for creating this element.
439
- _owner: s
440
- };
441
- return a._store = {}, Object.defineProperty(a._store, "validated", {
442
- configurable: !1,
443
- enumerable: !1,
444
- writable: !0,
445
- value: !1
446
- }), Object.defineProperty(a, "_self", {
447
- configurable: !1,
448
- enumerable: !1,
449
- writable: !1,
450
- value: n
451
- }), Object.defineProperty(a, "_source", {
452
- configurable: !1,
453
- enumerable: !1,
454
- writable: !1,
455
- value: i
456
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
457
- };
458
- function Ze(e, r, t, n, i) {
459
- {
460
- var s, o = {}, a = null, v = null;
461
- t !== void 0 && (pe(t), a = "" + t), Ge(r) && (pe(r.key), a = "" + r.key), Je(r) && (v = r.ref, ze(r, i));
462
- for (s in r)
463
- M.call(r, s) && !qe.hasOwnProperty(s) && (o[s] = r[s]);
464
- if (e && e.defaultProps) {
465
- var u = e.defaultProps;
466
- for (s in u)
467
- o[s] === void 0 && (o[s] = u[s]);
468
- }
469
- if (a || v) {
470
- var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
471
- a && Ke(o, l), v && He(o, l);
472
- }
473
- return Xe(e, a, v, i, n, $.current, o);
474
- }
475
- }
476
- var X = k.ReactCurrentOwner, me = k.ReactDebugCurrentFrame;
477
- function D(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 Z;
485
- Z = !1;
486
- function Q(e) {
487
- return typeof e == "object" && e !== null && e.$$typeof === h;
488
- }
489
- function he() {
490
- {
491
- if (X.current) {
492
- var e = R(X.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 = he();
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 Ee(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 !== X.current && (n = " It was passed a child from " + R(e._owner.type) + "."), D(e), d('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), D(null);
536
- }
537
- }
538
- function Re(e, r) {
539
- {
540
- if (typeof e != "object")
541
- return;
542
- if (K(e))
543
- for (var t = 0; t < e.length; t++) {
544
- var n = e[t];
545
- Q(n) && Ee(n, r);
546
- }
547
- else if (Q(e))
548
- e._store && (e._store.validated = !0);
549
- else if (e) {
550
- var i = Pe(e);
551
- if (typeof i == "function" && i !== e.entries)
552
- for (var s = i.call(e), o; !(o = s.next()).done; )
553
- Q(o.value) && Ee(o.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 === c || // Note: Memo only checks outer props here.
566
- // Inner props are checked in the reconciler.
567
- r.$$typeof === m))
568
- t = r.propTypes;
569
- else
570
- return;
571
- if (t) {
572
- var n = R(r);
573
- Ve(t, e.props, "prop", n, e);
574
- } else if (r.PropTypes !== void 0 && !Z) {
575
- Z = !0;
576
- var i = R(r);
577
- d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
578
- }
579
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("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
- D(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
588
- break;
589
- }
590
- }
591
- e.ref !== null && (D(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
592
- }
593
- }
594
- function _e(e, r, t, n, i, s) {
595
- {
596
- var o = Ae(e);
597
- if (!o) {
598
- var a = "";
599
- (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.");
600
- var v = Qe(i);
601
- v ? a += v : a += he();
602
- var u;
603
- e === null ? u = "null" : K(e) ? u = "array" : e !== void 0 && e.$$typeof === h ? (u = "<" + (R(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : u = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", u, a);
604
- }
605
- var l = Ze(e, r, t, i, s);
606
- if (l == null)
607
- return l;
608
- if (o) {
609
- var b = r.children;
610
- if (b !== void 0)
611
- if (n)
612
- if (K(b)) {
613
- for (var F = 0; F < b.length; F++)
614
- Re(b[F], e);
615
- Object.freeze && Object.freeze(b);
616
- } else
617
- d("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(b, e);
620
- }
621
- return e === g ? tr(l) : rr(l), l;
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 = g, W.jsx = or, W.jsxs = ir;
632
- }()), W;
633
- }
634
- (function(p) {
635
- process.env.NODE_ENV === "production" ? p.exports = ur() : p.exports = lr();
636
- })(sr);
637
- const B = (...p) => p.filter(Boolean).join(" "), fr = q.forwardRef(
638
- (p, h) => {
639
- const { className: x, children: g, variant: w, icon: y, iconLayout: O, ...E } = p, c = O ?? "left", f = `
640
- inline-block
641
- p-4
642
- text-base
643
- font-bold
644
- rounded-lg
645
- text-center
646
- cursor-pointer
647
- whitespace-nowrap
648
- `, j = {
649
- primary: `
650
- text-white-1000
651
- border
652
- border-solid
653
- border-sea-600
654
- bg-sea-600
655
- hover:bg-sea-800
656
- active:bg-sea-800
657
- focus:outline
658
- focus:outline-2
659
- focus:outline-wood-500
660
- disabled:bg-sumi-500
661
- disabled:text-white-1000
662
- disabled:border
663
- disabled:border-solid
664
- disabled:border-sumi-500
665
- disabled:cursor-not-allowed
666
- `,
667
- secondary: `
668
- text-sea-600
669
- border
670
- border-solid
671
- border-sea-600
672
- hover:bg-sea-100
673
- active:bg-sea-100
674
- focus:outline
675
- focus:outline-2
676
- focus:outline-wood-500
677
- disabled:hover:bg-white-1000
678
- disabled:text-sumi-500
679
- disabled:border
680
- disabled:border-solid
681
- disabled:border-sumi-500
682
- disabled:cursor-not-allowed
683
- `
684
- }, A = `
685
- inline-block
686
- align-middle
687
- font-icon
688
- text-2xl
689
- font-light
690
- leading-4
691
- antialiased
692
- mb-1
693
- `;
694
- return /* @__PURE__ */ S.jsxs(
695
- "button",
696
- {
697
- className: B(f, j[w ?? "primary"], x),
698
- ...E,
699
- ref: h,
700
- children: [
701
- c == "left" && /* @__PURE__ */ S.jsx("span", { className: B(A), children: y }),
702
- g && /* @__PURE__ */ S.jsx("span", { className: "mx-1 inline-block", children: g }),
703
- c == "right" && /* @__PURE__ */ S.jsx("span", { className: B(A), children: y })
704
- ]
705
- }
706
- );
707
- }
708
- ), dr = q.forwardRef((p, h) => {
709
- const { className: x, icon: g, ...w } = p, y = `
710
- inline-block
711
- align-middle
712
- font-icon
713
- text-2xl
714
- font-light
715
- leading-none
716
- antialiased
717
- mb-1
718
- `;
719
- return /* @__PURE__ */ S.jsx("span", { className: B(y, x), ...w, ref: h, children: g });
720
- });
721
- export {
722
- dr as Icon,
723
- fr as IconButton
724
- };
725
- //# sourceMappingURL=index.es.js.map