se-design 0.0.95 → 0.0.96

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 (196) hide show
  1. package/dist/components/Button/Button.stories.d.ts +1 -0
  2. package/dist/components/Button/index.d.ts +1 -1
  3. package/dist/components/Checkbox/index.d.ts +9 -0
  4. package/dist/components/HamburgerMenu/HamburgerMenu.stories.d.ts +7 -0
  5. package/dist/components/HamburgerMenu/index.d.ts +11 -0
  6. package/dist/components/Header/index.d.ts +9 -0
  7. package/dist/components/Icon/Icon.stories.d.ts +1 -1
  8. package/dist/components/Modal/Modal.stories.d.ts +1 -1
  9. package/dist/components/Popup/index.d.ts +15 -0
  10. package/dist/components/SplitButton/SplitButton.stories.d.ts +1 -1
  11. package/dist/components/TableLayout/index.d.ts +24 -0
  12. package/dist/components/index.d.ts +11 -6
  13. package/dist/index.js +27 -17
  14. package/dist/index.js.map +1 -1
  15. package/dist/index10.js +31 -15
  16. package/dist/index10.js.map +1 -1
  17. package/dist/index11.js +15 -4
  18. package/dist/index11.js.map +1 -1
  19. package/dist/index12.js +4 -6
  20. package/dist/index12.js.map +1 -1
  21. package/dist/index13.js +53 -152
  22. package/dist/index13.js.map +1 -1
  23. package/dist/index14.js +12 -7
  24. package/dist/index14.js.map +1 -1
  25. package/dist/index15.js +34 -2
  26. package/dist/index15.js.map +1 -1
  27. package/dist/index16.js +33 -26
  28. package/dist/index16.js.map +1 -1
  29. package/dist/index17.js +10 -606
  30. package/dist/index17.js.map +1 -1
  31. package/dist/index18.js +6 -10
  32. package/dist/index18.js.map +1 -1
  33. package/dist/index19.js +148 -9
  34. package/dist/index19.js.map +1 -1
  35. package/dist/index20.js +8 -5
  36. package/dist/index20.js.map +1 -1
  37. package/dist/index21.js +2 -170
  38. package/dist/index21.js.map +1 -1
  39. package/dist/index22.js +26 -11
  40. package/dist/index22.js.map +1 -1
  41. package/dist/index23.js +606 -2
  42. package/dist/index23.js.map +1 -1
  43. package/dist/index24.js +10 -2
  44. package/dist/index24.js.map +1 -1
  45. package/dist/index25.js +8 -4
  46. package/dist/index25.js.map +1 -1
  47. package/dist/index26.js +4 -5
  48. package/dist/index26.js.map +1 -1
  49. package/dist/index27.js +168 -36
  50. package/dist/index27.js.map +1 -1
  51. package/dist/index28.js +11 -2
  52. package/dist/index28.js.map +1 -1
  53. package/dist/index29.js +2 -8
  54. package/dist/index29.js.map +1 -1
  55. package/dist/index30.js +2 -327
  56. package/dist/index30.js.map +1 -1
  57. package/dist/index31.js +5 -49
  58. package/dist/index31.js.map +1 -1
  59. package/dist/index32.js +6 -2
  60. package/dist/index32.js.map +1 -1
  61. package/dist/index33.js +34 -72
  62. package/dist/index33.js.map +1 -1
  63. package/dist/index34.js +2 -93
  64. package/dist/index34.js.map +1 -1
  65. package/dist/index35.js +5 -49
  66. package/dist/index35.js.map +1 -1
  67. package/dist/index36.js +326 -7
  68. package/dist/index36.js.map +1 -1
  69. package/dist/index37.js +49 -4
  70. package/dist/index37.js.map +1 -1
  71. package/dist/index38.js +2 -52
  72. package/dist/index38.js.map +1 -1
  73. package/dist/index39.js +76 -2
  74. package/dist/index39.js.map +1 -1
  75. package/dist/index4.js +34 -8
  76. package/dist/index4.js.map +1 -1
  77. package/dist/index40.js +93 -2
  78. package/dist/index40.js.map +1 -1
  79. package/dist/index41.js +55 -0
  80. package/dist/index41.js.map +1 -0
  81. package/dist/index42.js +11 -0
  82. package/dist/index42.js.map +1 -0
  83. package/dist/index43.js +8 -0
  84. package/dist/index43.js.map +1 -0
  85. package/dist/index44.js +55 -0
  86. package/dist/index44.js.map +1 -0
  87. package/dist/index45.js +5 -0
  88. package/dist/index45.js.map +1 -0
  89. package/dist/index46.js +5 -0
  90. package/dist/index46.js.map +1 -0
  91. package/dist/index5.js +7 -36
  92. package/dist/index5.js.map +1 -1
  93. package/dist/index6.js +35 -38
  94. package/dist/index6.js.map +1 -1
  95. package/dist/index7.js +40 -3
  96. package/dist/index7.js.map +1 -1
  97. package/dist/index8.js +3 -23
  98. package/dist/index8.js.map +1 -1
  99. package/dist/index9.js +22 -30
  100. package/dist/index9.js.map +1 -1
  101. package/dist/public/colors.css +1 -0
  102. package/dist/public/icons/back.svg +4 -0
  103. package/dist/public/icons/close.svg +4 -0
  104. package/dist/public/icons/down.svg +3 -0
  105. package/dist/public/icons/hamburger.svg +5 -0
  106. package/dist/public/icons/pages.svg +4 -0
  107. package/dist/public/icons/tick.svg +3 -0
  108. package/dist/public/style.css +1 -0
  109. package/package.json +8 -3
  110. package/dist/assets/style.css +0 -1
  111. package/dist/index.cjs +0 -2
  112. package/dist/index.cjs.map +0 -1
  113. package/dist/index10.cjs +0 -2
  114. package/dist/index10.cjs.map +0 -1
  115. package/dist/index11.cjs +0 -2
  116. package/dist/index11.cjs.map +0 -1
  117. package/dist/index12.cjs +0 -2
  118. package/dist/index12.cjs.map +0 -1
  119. package/dist/index13.cjs +0 -2
  120. package/dist/index13.cjs.map +0 -1
  121. package/dist/index14.cjs +0 -2
  122. package/dist/index14.cjs.map +0 -1
  123. package/dist/index15.cjs +0 -2
  124. package/dist/index15.cjs.map +0 -1
  125. package/dist/index16.cjs +0 -10
  126. package/dist/index16.cjs.map +0 -1
  127. package/dist/index17.cjs +0 -23
  128. package/dist/index17.cjs.map +0 -1
  129. package/dist/index18.cjs +0 -2
  130. package/dist/index18.cjs.map +0 -1
  131. package/dist/index19.cjs +0 -2
  132. package/dist/index19.cjs.map +0 -1
  133. package/dist/index20.cjs +0 -2
  134. package/dist/index20.cjs.map +0 -1
  135. package/dist/index21.cjs +0 -2
  136. package/dist/index21.cjs.map +0 -1
  137. package/dist/index22.cjs +0 -2
  138. package/dist/index22.cjs.map +0 -1
  139. package/dist/index23.cjs +0 -2
  140. package/dist/index23.cjs.map +0 -1
  141. package/dist/index24.cjs +0 -2
  142. package/dist/index24.cjs.map +0 -1
  143. package/dist/index25.cjs +0 -2
  144. package/dist/index25.cjs.map +0 -1
  145. package/dist/index26.cjs +0 -2
  146. package/dist/index26.cjs.map +0 -1
  147. package/dist/index27.cjs +0 -6
  148. package/dist/index27.cjs.map +0 -1
  149. package/dist/index28.cjs +0 -2
  150. package/dist/index28.cjs.map +0 -1
  151. package/dist/index29.cjs +0 -2
  152. package/dist/index29.cjs.map +0 -1
  153. package/dist/index3.cjs +0 -2
  154. package/dist/index3.cjs.map +0 -1
  155. package/dist/index3.js +0 -36
  156. package/dist/index3.js.map +0 -1
  157. package/dist/index30.cjs +0 -3
  158. package/dist/index30.cjs.map +0 -1
  159. package/dist/index31.cjs +0 -2
  160. package/dist/index31.cjs.map +0 -1
  161. package/dist/index32.cjs +0 -2
  162. package/dist/index32.cjs.map +0 -1
  163. package/dist/index33.cjs +0 -9
  164. package/dist/index33.cjs.map +0 -1
  165. package/dist/index34.cjs +0 -9
  166. package/dist/index34.cjs.map +0 -1
  167. package/dist/index35.cjs +0 -6
  168. package/dist/index35.cjs.map +0 -1
  169. package/dist/index36.cjs +0 -2
  170. package/dist/index36.cjs.map +0 -1
  171. package/dist/index37.cjs +0 -2
  172. package/dist/index37.cjs.map +0 -1
  173. package/dist/index38.cjs +0 -2
  174. package/dist/index38.cjs.map +0 -1
  175. package/dist/index39.cjs +0 -2
  176. package/dist/index39.cjs.map +0 -1
  177. package/dist/index4.cjs +0 -2
  178. package/dist/index4.cjs.map +0 -1
  179. package/dist/index40.cjs +0 -2
  180. package/dist/index40.cjs.map +0 -1
  181. package/dist/index5.cjs +0 -2
  182. package/dist/index5.cjs.map +0 -1
  183. package/dist/index6.cjs +0 -5
  184. package/dist/index6.cjs.map +0 -1
  185. package/dist/index7.cjs +0 -2
  186. package/dist/index7.cjs.map +0 -1
  187. package/dist/index8.cjs +0 -2
  188. package/dist/index8.cjs.map +0 -1
  189. package/dist/index9.cjs +0 -5
  190. package/dist/index9.cjs.map +0 -1
  191. /package/dist/components/Icon/{Icon.d.ts → index.d.ts} +0 -0
  192. /package/dist/components/Modal/{Modal.d.ts → index.d.ts} +0 -0
  193. /package/dist/components/SplitButton/{SplitButton.d.ts → index.d.ts} +0 -0
  194. /package/dist/components/Tag/{Tag.d.ts → index.d.ts} +0 -0
  195. /package/dist/components/Toggle/{Toggle.d.ts → index.d.ts} +0 -0
  196. /package/dist/components/Tooltip/{Tooltip.d.ts → index.d.ts} +0 -0
package/dist/index17.js CHANGED
@@ -1,609 +1,13 @@
1
- import { __exports as T } from "./index24.js";
2
- import or from "react";
3
- /**
4
- * @license React
5
- * react-jsx-runtime.development.js
6
- *
7
- * Copyright (c) Facebook, Inc. and its affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var Ee;
13
- function lr() {
14
- return Ee ? T : (Ee = 1, process.env.NODE_ENV !== "production" && function() {
15
- var Re = or, x = Symbol.for("react.element"), _e = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), K = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), G = Symbol.for("react.provider"), J = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), me = Symbol.for("react.offscreen"), q = Symbol.iterator, Te = "@@iterator";
16
- function Ce(e) {
17
- if (e === null || typeof e != "object")
18
- return null;
19
- var r = q && e[q] || e[Te];
20
- return typeof r == "function" ? r : null;
21
- }
22
- var h = Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
- function f(e) {
24
- {
25
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
26
- t[n - 1] = arguments[n];
27
- Se("error", e, t);
28
- }
29
- }
30
- function Se(e, r, t) {
31
- {
32
- var n = h.ReactDebugCurrentFrame, o = n.getStackAddendum();
33
- o !== "" && (r += "%s", t = t.concat([o]));
34
- var u = t.map(function(i) {
35
- return String(i);
36
- });
37
- u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
38
- }
39
- }
40
- var we = !1, Oe = !1, Pe = !1, je = !1, ke = !1, z;
41
- z = Symbol.for("react.module.reference");
42
- function xe(e) {
43
- return !!(typeof e == "string" || typeof e == "function" || e === C || e === N || ke || e === K || e === A || e === D || je || e === me || we || Oe || Pe || typeof e == "object" && e !== null && (e.$$typeof === F || e.$$typeof === w || e.$$typeof === G || e.$$typeof === J || e.$$typeof === S || // This needs to include all possible module reference object
44
- // types supported by any Flight configuration anywhere since
45
- // we don't know which Flight build this will end up being used
46
- // with.
47
- e.$$typeof === z || e.getModuleId !== void 0));
48
- }
49
- function Ae(e, r, t) {
50
- var n = e.displayName;
51
- if (n)
52
- return n;
53
- var o = r.displayName || r.name || "";
54
- return o !== "" ? t + "(" + o + ")" : t;
55
- }
56
- function X(e) {
57
- return e.displayName || "Context";
58
- }
59
- function p(e) {
60
- if (e == null)
61
- return null;
62
- if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
63
- return e.displayName || e.name || null;
64
- if (typeof e == "string")
65
- return e;
66
- switch (e) {
67
- case C:
68
- return "Fragment";
69
- case _e:
70
- return "Portal";
71
- case N:
72
- return "Profiler";
73
- case K:
74
- return "StrictMode";
75
- case A:
76
- return "Suspense";
77
- case D:
78
- return "SuspenseList";
79
- }
80
- if (typeof e == "object")
81
- switch (e.$$typeof) {
82
- case J:
83
- var r = e;
84
- return X(r) + ".Consumer";
85
- case G:
86
- var t = e;
87
- return X(t._context) + ".Provider";
88
- case S:
89
- return Ae(e, e.render, "ForwardRef");
90
- case w:
91
- var n = e.displayName || null;
92
- return n !== null ? n : p(e.type) || "Memo";
93
- case F: {
94
- var o = e, u = o._payload, i = o._init;
95
- try {
96
- return p(i(u));
97
- } catch {
98
- return null;
99
- }
100
- }
101
- }
102
- return null;
103
- }
104
- var g = Object.assign, R = 0, H, Z, Q, ee, re, te, ne;
105
- function ae() {
106
- }
107
- ae.__reactDisabledLog = !0;
108
- function De() {
109
- {
110
- if (R === 0) {
111
- H = console.log, Z = console.info, Q = console.warn, ee = console.error, re = console.group, te = console.groupCollapsed, ne = console.groupEnd;
112
- var e = {
113
- configurable: !0,
114
- enumerable: !0,
115
- value: ae,
116
- writable: !0
117
- };
118
- Object.defineProperties(console, {
119
- info: e,
120
- log: e,
121
- warn: e,
122
- error: e,
123
- group: e,
124
- groupCollapsed: e,
125
- groupEnd: e
126
- });
127
- }
128
- R++;
129
- }
130
- }
131
- function Fe() {
132
- {
133
- if (R--, R === 0) {
134
- var e = {
135
- configurable: !0,
136
- enumerable: !0,
137
- writable: !0
138
- };
139
- Object.defineProperties(console, {
140
- log: g({}, e, {
141
- value: H
142
- }),
143
- info: g({}, e, {
144
- value: Z
145
- }),
146
- warn: g({}, e, {
147
- value: Q
148
- }),
149
- error: g({}, e, {
150
- value: ee
151
- }),
152
- group: g({}, e, {
153
- value: re
154
- }),
155
- groupCollapsed: g({}, e, {
156
- value: te
157
- }),
158
- groupEnd: g({}, e, {
159
- value: ne
160
- })
161
- });
162
- }
163
- R < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
164
- }
165
- }
166
- var I = h.ReactCurrentDispatcher, W;
167
- function O(e, r, t) {
168
- {
169
- if (W === void 0)
170
- try {
171
- throw Error();
172
- } catch (o) {
173
- var n = o.stack.trim().match(/\n( *(at )?)/);
174
- W = n && n[1] || "";
175
- }
176
- return `
177
- ` + W + e;
178
- }
179
- }
180
- var Y = !1, P;
181
- {
182
- var Ie = typeof WeakMap == "function" ? WeakMap : Map;
183
- P = new Ie();
184
- }
185
- function ie(e, r) {
186
- if (!e || Y)
187
- return "";
188
- {
189
- var t = P.get(e);
190
- if (t !== void 0)
191
- return t;
192
- }
193
- var n;
194
- Y = !0;
195
- var o = Error.prepareStackTrace;
196
- Error.prepareStackTrace = void 0;
197
- var u;
198
- u = I.current, I.current = null, De();
199
- try {
200
- if (r) {
201
- var i = function() {
202
- throw Error();
203
- };
204
- if (Object.defineProperty(i.prototype, "props", {
205
- set: function() {
206
- throw Error();
207
- }
208
- }), typeof Reflect == "object" && Reflect.construct) {
209
- try {
210
- Reflect.construct(i, []);
211
- } catch (v) {
212
- n = v;
213
- }
214
- Reflect.construct(e, [], i);
215
- } else {
216
- try {
217
- i.call();
218
- } catch (v) {
219
- n = v;
220
- }
221
- e.call(i.prototype);
222
- }
223
- } else {
224
- try {
225
- throw Error();
226
- } catch (v) {
227
- n = v;
228
- }
229
- e();
230
- }
231
- } catch (v) {
232
- if (v && n && typeof v.stack == "string") {
233
- for (var a = v.stack.split(`
234
- `), c = n.stack.split(`
235
- `), s = a.length - 1, l = c.length - 1; s >= 1 && l >= 0 && a[s] !== c[l]; )
236
- l--;
237
- for (; s >= 1 && l >= 0; s--, l--)
238
- if (a[s] !== c[l]) {
239
- if (s !== 1 || l !== 1)
240
- do
241
- if (s--, l--, l < 0 || a[s] !== c[l]) {
242
- var d = `
243
- ` + a[s].replace(" at new ", " at ");
244
- return e.displayName && d.includes("<anonymous>") && (d = d.replace("<anonymous>", e.displayName)), typeof e == "function" && P.set(e, d), d;
245
- }
246
- while (s >= 1 && l >= 0);
247
- break;
248
- }
249
- }
250
- } finally {
251
- Y = !1, I.current = u, Fe(), Error.prepareStackTrace = o;
252
- }
253
- var E = e ? e.displayName || e.name : "", b = E ? O(E) : "";
254
- return typeof e == "function" && P.set(e, b), b;
255
- }
256
- function We(e, r, t) {
257
- return ie(e, !1);
258
- }
259
- function Ye(e) {
260
- var r = e.prototype;
261
- return !!(r && r.isReactComponent);
262
- }
263
- function j(e, r, t) {
264
- if (e == null)
265
- return "";
266
- if (typeof e == "function")
267
- return ie(e, Ye(e));
268
- if (typeof e == "string")
269
- return O(e);
270
- switch (e) {
271
- case A:
272
- return O("Suspense");
273
- case D:
274
- return O("SuspenseList");
275
- }
276
- if (typeof e == "object")
277
- switch (e.$$typeof) {
278
- case S:
279
- return We(e.render);
280
- case w:
281
- return j(e.type, r, t);
282
- case F: {
283
- var n = e, o = n._payload, u = n._init;
284
- try {
285
- return j(u(o), r, t);
286
- } catch {
287
- }
288
- }
289
- }
290
- return "";
291
- }
292
- var _ = Object.prototype.hasOwnProperty, oe = {}, ue = h.ReactDebugCurrentFrame;
293
- function k(e) {
294
- if (e) {
295
- var r = e._owner, t = j(e.type, e._source, r ? r.type : null);
296
- ue.setExtraStackFrame(t);
297
- } else
298
- ue.setExtraStackFrame(null);
299
- }
300
- function $e(e, r, t, n, o) {
301
- {
302
- var u = Function.call.bind(_);
303
- for (var i in e)
304
- if (u(e, i)) {
305
- var a = void 0;
306
- try {
307
- if (typeof e[i] != "function") {
308
- var c = 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`.");
309
- throw c.name = "Invariant Violation", c;
310
- }
311
- a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
- } catch (s) {
313
- a = s;
314
- }
315
- a && !(a instanceof Error) && (k(o), f("%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 a), k(null)), a instanceof Error && !(a.message in oe) && (oe[a.message] = !0, k(o), f("Failed %s type: %s", t, a.message), k(null));
316
- }
317
- }
318
- }
319
- var Me = Array.isArray;
320
- function $(e) {
321
- return Me(e);
322
- }
323
- function Ve(e) {
324
- {
325
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
326
- return t;
327
- }
328
- }
329
- function Le(e) {
330
- try {
331
- return se(e), !1;
332
- } catch {
333
- return !0;
334
- }
335
- }
336
- function se(e) {
337
- return "" + e;
338
- }
339
- function le(e) {
340
- if (Le(e))
341
- return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ve(e)), se(e);
342
- }
343
- var m = h.ReactCurrentOwner, Ue = {
344
- key: !0,
345
- ref: !0,
346
- __self: !0,
347
- __source: !0
348
- }, fe, ce, M;
349
- M = {};
350
- function Be(e) {
351
- if (_.call(e, "ref")) {
352
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
353
- if (r && r.isReactWarning)
354
- return !1;
355
- }
356
- return e.ref !== void 0;
357
- }
358
- function Ke(e) {
359
- if (_.call(e, "key")) {
360
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
361
- if (r && r.isReactWarning)
362
- return !1;
363
- }
364
- return e.key !== void 0;
365
- }
366
- function Ne(e, r) {
367
- if (typeof e.ref == "string" && m.current && r && m.current.stateNode !== r) {
368
- var t = p(m.current.type);
369
- M[t] || (f('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(m.current.type), e.ref), M[t] = !0);
370
- }
371
- }
372
- function Ge(e, r) {
373
- {
374
- var t = function() {
375
- fe || (fe = !0, f("%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));
376
- };
377
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
378
- get: t,
379
- configurable: !0
380
- });
381
- }
382
- }
383
- function Je(e, r) {
384
- {
385
- var t = function() {
386
- ce || (ce = !0, f("%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));
387
- };
388
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
389
- get: t,
390
- configurable: !0
391
- });
392
- }
393
- }
394
- var qe = function(e, r, t, n, o, u, i) {
395
- var a = {
396
- // This tag allows us to uniquely identify this as a React Element
397
- $$typeof: x,
398
- // Built-in properties that belong on the element
399
- type: e,
400
- key: r,
401
- ref: t,
402
- props: i,
403
- // Record the component responsible for creating this element.
404
- _owner: u
405
- };
406
- return a._store = {}, Object.defineProperty(a._store, "validated", {
407
- configurable: !1,
408
- enumerable: !1,
409
- writable: !0,
410
- value: !1
411
- }), Object.defineProperty(a, "_self", {
412
- configurable: !1,
413
- enumerable: !1,
414
- writable: !1,
415
- value: n
416
- }), Object.defineProperty(a, "_source", {
417
- configurable: !1,
418
- enumerable: !1,
419
- writable: !1,
420
- value: o
421
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
422
- };
423
- function ze(e, r, t, n, o) {
424
- {
425
- var u, i = {}, a = null, c = null;
426
- t !== void 0 && (le(t), a = "" + t), Ke(r) && (le(r.key), a = "" + r.key), Be(r) && (c = r.ref, Ne(r, o));
427
- for (u in r)
428
- _.call(r, u) && !Ue.hasOwnProperty(u) && (i[u] = r[u]);
429
- if (e && e.defaultProps) {
430
- var s = e.defaultProps;
431
- for (u in s)
432
- i[u] === void 0 && (i[u] = s[u]);
433
- }
434
- if (a || c) {
435
- var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
436
- a && Ge(i, l), c && Je(i, l);
437
- }
438
- return qe(e, a, c, o, n, m.current, i);
439
- }
440
- }
441
- var V = h.ReactCurrentOwner, ve = h.ReactDebugCurrentFrame;
442
- function y(e) {
443
- if (e) {
444
- var r = e._owner, t = j(e.type, e._source, r ? r.type : null);
445
- ve.setExtraStackFrame(t);
446
- } else
447
- ve.setExtraStackFrame(null);
448
- }
449
- var L;
450
- L = !1;
451
- function U(e) {
452
- return typeof e == "object" && e !== null && e.$$typeof === x;
453
- }
454
- function de() {
455
- {
456
- if (V.current) {
457
- var e = p(V.current.type);
458
- if (e)
459
- return `
460
-
461
- Check the render method of \`` + e + "`.";
462
- }
463
- return "";
464
- }
465
- }
466
- function Xe(e) {
467
- return "";
468
- }
469
- var pe = {};
470
- function He(e) {
471
- {
472
- var r = de();
473
- if (!r) {
474
- var t = typeof e == "string" ? e : e.displayName || e.name;
475
- t && (r = `
476
-
477
- Check the top-level render call using <` + t + ">.");
478
- }
479
- return r;
480
- }
481
- }
482
- function ge(e, r) {
483
- {
484
- if (!e._store || e._store.validated || e.key != null)
485
- return;
486
- e._store.validated = !0;
487
- var t = He(r);
488
- if (pe[t])
489
- return;
490
- pe[t] = !0;
491
- var n = "";
492
- e && e._owner && e._owner !== V.current && (n = " It was passed a child from " + p(e._owner.type) + "."), y(e), f('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), y(null);
493
- }
494
- }
495
- function be(e, r) {
496
- {
497
- if (typeof e != "object")
498
- return;
499
- if ($(e))
500
- for (var t = 0; t < e.length; t++) {
501
- var n = e[t];
502
- U(n) && ge(n, r);
503
- }
504
- else if (U(e))
505
- e._store && (e._store.validated = !0);
506
- else if (e) {
507
- var o = Ce(e);
508
- if (typeof o == "function" && o !== e.entries)
509
- for (var u = o.call(e), i; !(i = u.next()).done; )
510
- U(i.value) && ge(i.value, r);
511
- }
512
- }
513
- }
514
- function Ze(e) {
515
- {
516
- var r = e.type;
517
- if (r == null || typeof r == "string")
518
- return;
519
- var t;
520
- if (typeof r == "function")
521
- t = r.propTypes;
522
- else if (typeof r == "object" && (r.$$typeof === S || // Note: Memo only checks outer props here.
523
- // Inner props are checked in the reconciler.
524
- r.$$typeof === w))
525
- t = r.propTypes;
526
- else
527
- return;
528
- if (t) {
529
- var n = p(r);
530
- $e(t, e.props, "prop", n, e);
531
- } else if (r.PropTypes !== void 0 && !L) {
532
- L = !0;
533
- var o = p(r);
534
- f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
535
- }
536
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
537
- }
538
- }
539
- function Qe(e) {
540
- {
541
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
542
- var n = r[t];
543
- if (n !== "children" && n !== "key") {
544
- y(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), y(null);
545
- break;
546
- }
547
- }
548
- e.ref !== null && (y(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), y(null));
549
- }
550
- }
551
- var he = {};
552
- function ye(e, r, t, n, o, u) {
553
- {
554
- var i = xe(e);
555
- if (!i) {
556
- var a = "";
557
- (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.");
558
- var c = Xe();
559
- c ? a += c : a += de();
560
- var s;
561
- e === null ? s = "null" : $(e) ? s = "array" : e !== void 0 && e.$$typeof === x ? (s = "<" + (p(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
562
- }
563
- var l = ze(e, r, t, o, u);
564
- if (l == null)
565
- return l;
566
- if (i) {
567
- var d = r.children;
568
- if (d !== void 0)
569
- if (n)
570
- if ($(d)) {
571
- for (var E = 0; E < d.length; E++)
572
- be(d[E], e);
573
- Object.freeze && Object.freeze(d);
574
- } else
575
- f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
576
- else
577
- be(d, e);
578
- }
579
- if (_.call(r, "key")) {
580
- var b = p(e), v = Object.keys(r).filter(function(ir) {
581
- return ir !== "key";
582
- }), B = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
583
- if (!he[b + B]) {
584
- var ar = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
585
- f(`A props object containing a "key" prop is being spread into JSX:
586
- let props = %s;
587
- <%s {...props} />
588
- React keys must be passed directly to JSX without using spread:
589
- let props = %s;
590
- <%s key={someKey} {...props} />`, B, b, ar, b), he[b + B] = !0;
591
- }
592
- }
593
- return e === C ? Qe(l) : Ze(l), l;
594
- }
595
- }
596
- function er(e, r, t) {
597
- return ye(e, r, t, !0);
598
- }
599
- function rr(e, r, t) {
600
- return ye(e, r, t, !1);
601
- }
602
- var tr = rr, nr = er;
603
- T.Fragment = C, T.jsx = tr, T.jsxs = nr;
604
- }(), T);
605
- }
1
+ import { j as i } from "./index18.js";
2
+ import { useState as l } from "react";
3
+ const x = ({ className: r = "", automationId: c = "", defaultChecked: a = !1, onChange: o }) => {
4
+ const [e, s] = l(a), n = () => {
5
+ const t = !e;
6
+ s(t), o && o(t);
7
+ }, d = e ? "text-[var(--color-blue-500)]" : "text-[var(--color-white)]";
8
+ return /* @__PURE__ */ i.jsx("input", { type: "checkbox", className: `${r} w-4 h-4 ${d} hover:text-[var(--color-blue-600)] border-[var(--color-gray-500)] rounded-md focus:ring-transparent cursor-pointer`, "data-automation-id": c, checked: e, onChange: n });
9
+ };
606
10
  export {
607
- lr as __require
11
+ x as Checkbox
608
12
  };
609
13
  //# sourceMappingURL=index17.js.map