enerdot-front-system 0.0.29-beta.9 → 0.1.0

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 (50) hide show
  1. package/README.md +85 -3
  2. package/dist/index-Bp7Gu_Dn.cjs +32 -0
  3. package/dist/index-aVal9heD.js +842 -0
  4. package/dist/index.cjs.js +55 -69
  5. package/dist/index.es.js +2994 -3575
  6. package/dist/lib/components/Button/common.d.ts +4 -7
  7. package/dist/lib/components/Button/index.d.ts +1 -0
  8. package/dist/lib/components/ButtonFilter/Button/index.d.ts +1 -0
  9. package/dist/lib/components/ButtonFilter/CustomFilter.d.ts +2 -1
  10. package/dist/lib/components/ButtonFilter/index.d.ts +3 -1
  11. package/dist/lib/components/CheckBox/index.d.ts +3 -2
  12. package/dist/lib/components/Chip/index.d.ts +6 -2
  13. package/dist/lib/components/Chip/theme.d.ts +2 -7
  14. package/dist/lib/components/DateSelector/DatePicker/Buttons/ArrowButton.d.ts +4 -3
  15. package/dist/lib/components/DateSelector/DatePicker/Buttons/InputButton.d.ts +7 -3
  16. package/dist/lib/components/DateSelector/DatePicker/index.d.ts +8 -4
  17. package/dist/lib/components/DateSelector/DateRangePicker/InputButton.d.ts +13 -0
  18. package/dist/lib/components/DateSelector/DateRangePicker/index.d.ts +5 -2
  19. package/dist/lib/components/Divider/index.d.ts +2 -1
  20. package/dist/lib/components/Dropdown/Button/index.d.ts +6 -2
  21. package/dist/lib/components/Dropdown/OptionList/CheckboxOption.d.ts +3 -2
  22. package/dist/lib/components/Dropdown/OptionList/OptionSubLabelWrapper.d.ts +11 -0
  23. package/dist/lib/components/Dropdown/OptionList/RadioOption.d.ts +3 -2
  24. package/dist/lib/components/Dropdown/OptionList/SeletOption.d.ts +3 -2
  25. package/dist/lib/components/Dropdown/OptionList/index.d.ts +2 -1
  26. package/dist/lib/components/Dropdown/index.d.ts +6 -2
  27. package/dist/lib/components/IconButton/common.d.ts +3 -11
  28. package/dist/lib/components/IconButton/index.d.ts +1 -0
  29. package/dist/lib/components/Inputs/Input/index.d.ts +8 -2
  30. package/dist/lib/components/Inputs/SearchInput/index.d.ts +3 -2
  31. package/dist/lib/components/Pagination/index.d.ts +2 -1
  32. package/dist/lib/components/Radio/RadioButton/index.d.ts +2 -1
  33. package/dist/lib/components/Radio/RadioButtons.d.ts +4 -3
  34. package/dist/lib/components/Svg/Symbol/Cancel.d.ts +2 -0
  35. package/dist/lib/components/Textarea/index.d.ts +3 -2
  36. package/dist/lib/hooks/useTooltipWithPortal.d.ts +44 -0
  37. package/dist/lib/index.d.ts +0 -1
  38. package/dist/lib/server.d.ts +3 -0
  39. package/dist/lib/theme/color.style.d.ts +53 -0
  40. package/dist/lib/types/option.d.ts +5 -4
  41. package/dist/lib/types/theme.d.ts +4 -0
  42. package/dist/lib/utils/dark.d.ts +1 -0
  43. package/dist/server.cjs.js +1 -0
  44. package/dist/server.es.js +6 -0
  45. package/package.json +19 -7
  46. package/src/lib/styles/_variables.scss +108 -0
  47. package/src/theme.scss +104 -0
  48. package/dist/lib/components/DateSelector/DateRangePicker/Button.d.ts +0 -10
  49. package/dist/lib/hooks/useTooltip.d.ts +0 -2
  50. package/dist/lib/hooks/useTooltipPosition.d.ts +0 -7
@@ -0,0 +1,842 @@
1
+ import * as ve from "react";
2
+ function _e(v) {
3
+ if (v.__esModule) return v;
4
+ var _ = v.default;
5
+ if (typeof _ == "function") {
6
+ var y = function l() {
7
+ return this instanceof l ? Reflect.construct(_, arguments, this.constructor) : _.apply(this, arguments);
8
+ };
9
+ y.prototype = _.prototype;
10
+ } else y = {};
11
+ return Object.defineProperty(y, "__esModule", { value: !0 }), Object.keys(v).forEach(function(l) {
12
+ var m = Object.getOwnPropertyDescriptor(v, l);
13
+ Object.defineProperty(y, l, m.get ? m : {
14
+ enumerable: !0,
15
+ get: function() {
16
+ return v[l];
17
+ }
18
+ });
19
+ }), y;
20
+ }
21
+ var N = { exports: {} }, B = {};
22
+ const Or = /* @__PURE__ */ _e(ve);
23
+ /**
24
+ * @license React
25
+ * react-jsx-runtime.production.min.js
26
+ *
27
+ * Copyright (c) Facebook, Inc. and its affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ */
32
+ var wr;
33
+ function ge() {
34
+ if (wr) return B;
35
+ wr = 1;
36
+ var v = Or, _ = Symbol.for("react.element"), y = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, m = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, O = { key: !0, ref: !0, __self: !0, __source: !0 };
37
+ function b(h, d, R) {
38
+ var c, k = {}, w = null, I = null;
39
+ R !== void 0 && (w = "" + R), d.key !== void 0 && (w = "" + d.key), d.ref !== void 0 && (I = d.ref);
40
+ for (c in d) l.call(d, c) && !O.hasOwnProperty(c) && (k[c] = d[c]);
41
+ if (h && h.defaultProps) for (c in d = h.defaultProps, d) k[c] === void 0 && (k[c] = d[c]);
42
+ return { $$typeof: _, type: h, key: w, ref: I, props: k, _owner: m.current };
43
+ }
44
+ return B.Fragment = y, B.jsx = b, B.jsxs = b, B;
45
+ }
46
+ var $ = {};
47
+ /**
48
+ * @license React
49
+ * react-jsx-runtime.development.js
50
+ *
51
+ * Copyright (c) Facebook, Inc. and its affiliates.
52
+ *
53
+ * This source code is licensed under the MIT license found in the
54
+ * LICENSE file in the root directory of this source tree.
55
+ */
56
+ var xr;
57
+ function pe() {
58
+ return xr || (xr = 1, process.env.NODE_ENV !== "production" && function() {
59
+ var v = Or, _ = Symbol.for("react.element"), y = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), h = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), rr = Symbol.iterator, Ar = "@@iterator";
60
+ function Tr(r) {
61
+ if (r === null || typeof r != "object")
62
+ return null;
63
+ var e = rr && r[rr] || r[Ar];
64
+ return typeof e == "function" ? e : null;
65
+ }
66
+ var A = v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
67
+ function g(r) {
68
+ {
69
+ for (var e = arguments.length, a = new Array(e > 1 ? e - 1 : 0), t = 1; t < e; t++)
70
+ a[t - 1] = arguments[t];
71
+ Pr("error", r, a);
72
+ }
73
+ }
74
+ function Pr(r, e, a) {
75
+ {
76
+ var t = A.ReactDebugCurrentFrame, i = t.getStackAddendum();
77
+ i !== "" && (e += "%s", a = a.concat([i]));
78
+ var u = a.map(function(o) {
79
+ return String(o);
80
+ });
81
+ u.unshift("Warning: " + e), Function.prototype.apply.call(console[r], console, u);
82
+ }
83
+ }
84
+ var Sr = !1, jr = !1, Br = !1, $r = !1, Ir = !1, er;
85
+ er = Symbol.for("react.module.reference");
86
+ function Wr(r) {
87
+ return !!(typeof r == "string" || typeof r == "function" || r === l || r === O || Ir || r === m || r === R || r === c || $r || r === I || Sr || jr || Br || typeof r == "object" && r !== null && (r.$$typeof === w || r.$$typeof === k || r.$$typeof === b || r.$$typeof === h || r.$$typeof === d || // This needs to include all possible module reference object
88
+ // types supported by any Flight configuration anywhere since
89
+ // we don't know which Flight build this will end up being used
90
+ // with.
91
+ r.$$typeof === er || r.getModuleId !== void 0));
92
+ }
93
+ function Yr(r, e, a) {
94
+ var t = r.displayName;
95
+ if (t)
96
+ return t;
97
+ var i = e.displayName || e.name || "";
98
+ return i !== "" ? a + "(" + i + ")" : a;
99
+ }
100
+ function ar(r) {
101
+ return r.displayName || "Context";
102
+ }
103
+ function C(r) {
104
+ if (r == null)
105
+ return null;
106
+ if (typeof r.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
107
+ return r.displayName || r.name || null;
108
+ if (typeof r == "string")
109
+ return r;
110
+ switch (r) {
111
+ case l:
112
+ return "Fragment";
113
+ case y:
114
+ return "Portal";
115
+ case O:
116
+ return "Profiler";
117
+ case m:
118
+ return "StrictMode";
119
+ case R:
120
+ return "Suspense";
121
+ case c:
122
+ return "SuspenseList";
123
+ }
124
+ if (typeof r == "object")
125
+ switch (r.$$typeof) {
126
+ case h:
127
+ var e = r;
128
+ return ar(e) + ".Consumer";
129
+ case b:
130
+ var a = r;
131
+ return ar(a._context) + ".Provider";
132
+ case d:
133
+ return Yr(r, r.render, "ForwardRef");
134
+ case k:
135
+ var t = r.displayName || null;
136
+ return t !== null ? t : C(r.type) || "Memo";
137
+ case w: {
138
+ var i = r, u = i._payload, o = i._init;
139
+ try {
140
+ return C(o(u));
141
+ } catch {
142
+ return null;
143
+ }
144
+ }
145
+ }
146
+ return null;
147
+ }
148
+ var x = Object.assign, S = 0, tr, nr, or, ir, ur, lr, sr;
149
+ function cr() {
150
+ }
151
+ cr.__reactDisabledLog = !0;
152
+ function Lr() {
153
+ {
154
+ if (S === 0) {
155
+ tr = console.log, nr = console.info, or = console.warn, ir = console.error, ur = console.group, lr = console.groupCollapsed, sr = console.groupEnd;
156
+ var r = {
157
+ configurable: !0,
158
+ enumerable: !0,
159
+ value: cr,
160
+ writable: !0
161
+ };
162
+ Object.defineProperties(console, {
163
+ info: r,
164
+ log: r,
165
+ warn: r,
166
+ error: r,
167
+ group: r,
168
+ groupCollapsed: r,
169
+ groupEnd: r
170
+ });
171
+ }
172
+ S++;
173
+ }
174
+ }
175
+ function Mr() {
176
+ {
177
+ if (S--, S === 0) {
178
+ var r = {
179
+ configurable: !0,
180
+ enumerable: !0,
181
+ writable: !0
182
+ };
183
+ Object.defineProperties(console, {
184
+ log: x({}, r, {
185
+ value: tr
186
+ }),
187
+ info: x({}, r, {
188
+ value: nr
189
+ }),
190
+ warn: x({}, r, {
191
+ value: or
192
+ }),
193
+ error: x({}, r, {
194
+ value: ir
195
+ }),
196
+ group: x({}, r, {
197
+ value: ur
198
+ }),
199
+ groupCollapsed: x({}, r, {
200
+ value: lr
201
+ }),
202
+ groupEnd: x({}, r, {
203
+ value: sr
204
+ })
205
+ });
206
+ }
207
+ S < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
208
+ }
209
+ }
210
+ var U = A.ReactCurrentDispatcher, J;
211
+ function W(r, e, a) {
212
+ {
213
+ if (J === void 0)
214
+ try {
215
+ throw Error();
216
+ } catch (i) {
217
+ var t = i.stack.trim().match(/\n( *(at )?)/);
218
+ J = t && t[1] || "";
219
+ }
220
+ return `
221
+ ` + J + r;
222
+ }
223
+ }
224
+ var q = !1, Y;
225
+ {
226
+ var Nr = typeof WeakMap == "function" ? WeakMap : Map;
227
+ Y = new Nr();
228
+ }
229
+ function fr(r, e) {
230
+ if (!r || q)
231
+ return "";
232
+ {
233
+ var a = Y.get(r);
234
+ if (a !== void 0)
235
+ return a;
236
+ }
237
+ var t;
238
+ q = !0;
239
+ var i = Error.prepareStackTrace;
240
+ Error.prepareStackTrace = void 0;
241
+ var u;
242
+ u = U.current, U.current = null, Lr();
243
+ try {
244
+ if (e) {
245
+ var o = function() {
246
+ throw Error();
247
+ };
248
+ if (Object.defineProperty(o.prototype, "props", {
249
+ set: function() {
250
+ throw Error();
251
+ }
252
+ }), typeof Reflect == "object" && Reflect.construct) {
253
+ try {
254
+ Reflect.construct(o, []);
255
+ } catch (E) {
256
+ t = E;
257
+ }
258
+ Reflect.construct(r, [], o);
259
+ } else {
260
+ try {
261
+ o.call();
262
+ } catch (E) {
263
+ t = E;
264
+ }
265
+ r.call(o.prototype);
266
+ }
267
+ } else {
268
+ try {
269
+ throw Error();
270
+ } catch (E) {
271
+ t = E;
272
+ }
273
+ r();
274
+ }
275
+ } catch (E) {
276
+ if (E && t && typeof E.stack == "string") {
277
+ for (var n = E.stack.split(`
278
+ `), p = t.stack.split(`
279
+ `), s = n.length - 1, f = p.length - 1; s >= 1 && f >= 0 && n[s] !== p[f]; )
280
+ f--;
281
+ for (; s >= 1 && f >= 0; s--, f--)
282
+ if (n[s] !== p[f]) {
283
+ if (s !== 1 || f !== 1)
284
+ do
285
+ if (s--, f--, f < 0 || n[s] !== p[f]) {
286
+ var F = `
287
+ ` + n[s].replace(" at new ", " at ");
288
+ return r.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", r.displayName)), typeof r == "function" && Y.set(r, F), F;
289
+ }
290
+ while (s >= 1 && f >= 0);
291
+ break;
292
+ }
293
+ }
294
+ } finally {
295
+ q = !1, U.current = u, Mr(), Error.prepareStackTrace = i;
296
+ }
297
+ var P = r ? r.displayName || r.name : "", D = P ? W(P) : "";
298
+ return typeof r == "function" && Y.set(r, D), D;
299
+ }
300
+ function Vr(r, e, a) {
301
+ return fr(r, !1);
302
+ }
303
+ function Ur(r) {
304
+ var e = r.prototype;
305
+ return !!(e && e.isReactComponent);
306
+ }
307
+ function L(r, e, a) {
308
+ if (r == null)
309
+ return "";
310
+ if (typeof r == "function")
311
+ return fr(r, Ur(r));
312
+ if (typeof r == "string")
313
+ return W(r);
314
+ switch (r) {
315
+ case R:
316
+ return W("Suspense");
317
+ case c:
318
+ return W("SuspenseList");
319
+ }
320
+ if (typeof r == "object")
321
+ switch (r.$$typeof) {
322
+ case d:
323
+ return Vr(r.render);
324
+ case k:
325
+ return L(r.type, e, a);
326
+ case w: {
327
+ var t = r, i = t._payload, u = t._init;
328
+ try {
329
+ return L(u(i), e, a);
330
+ } catch {
331
+ }
332
+ }
333
+ }
334
+ return "";
335
+ }
336
+ var j = Object.prototype.hasOwnProperty, dr = {}, vr = A.ReactDebugCurrentFrame;
337
+ function M(r) {
338
+ if (r) {
339
+ var e = r._owner, a = L(r.type, r._source, e ? e.type : null);
340
+ vr.setExtraStackFrame(a);
341
+ } else
342
+ vr.setExtraStackFrame(null);
343
+ }
344
+ function Jr(r, e, a, t, i) {
345
+ {
346
+ var u = Function.call.bind(j);
347
+ for (var o in r)
348
+ if (u(r, o)) {
349
+ var n = void 0;
350
+ try {
351
+ if (typeof r[o] != "function") {
352
+ var p = Error((t || "React class") + ": " + a + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
353
+ throw p.name = "Invariant Violation", p;
354
+ }
355
+ n = r[o](e, o, t, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
356
+ } catch (s) {
357
+ n = s;
358
+ }
359
+ n && !(n instanceof Error) && (M(i), g("%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).", t || "React class", a, o, typeof n), M(null)), n instanceof Error && !(n.message in dr) && (dr[n.message] = !0, M(i), g("Failed %s type: %s", a, n.message), M(null));
360
+ }
361
+ }
362
+ }
363
+ var qr = Array.isArray;
364
+ function K(r) {
365
+ return qr(r);
366
+ }
367
+ function Kr(r) {
368
+ {
369
+ var e = typeof Symbol == "function" && Symbol.toStringTag, a = e && r[Symbol.toStringTag] || r.constructor.name || "Object";
370
+ return a;
371
+ }
372
+ }
373
+ function Gr(r) {
374
+ try {
375
+ return _r(r), !1;
376
+ } catch {
377
+ return !0;
378
+ }
379
+ }
380
+ function _r(r) {
381
+ return "" + r;
382
+ }
383
+ function gr(r) {
384
+ if (Gr(r))
385
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Kr(r)), _r(r);
386
+ }
387
+ var pr = A.ReactCurrentOwner, Xr = {
388
+ key: !0,
389
+ ref: !0,
390
+ __self: !0,
391
+ __source: !0
392
+ }, yr, Er;
393
+ function zr(r) {
394
+ if (j.call(r, "ref")) {
395
+ var e = Object.getOwnPropertyDescriptor(r, "ref").get;
396
+ if (e && e.isReactWarning)
397
+ return !1;
398
+ }
399
+ return r.ref !== void 0;
400
+ }
401
+ function Hr(r) {
402
+ if (j.call(r, "key")) {
403
+ var e = Object.getOwnPropertyDescriptor(r, "key").get;
404
+ if (e && e.isReactWarning)
405
+ return !1;
406
+ }
407
+ return r.key !== void 0;
408
+ }
409
+ function Zr(r, e) {
410
+ typeof r.ref == "string" && pr.current;
411
+ }
412
+ function Qr(r, e) {
413
+ {
414
+ var a = function() {
415
+ yr || (yr = !0, g("%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)", e));
416
+ };
417
+ a.isReactWarning = !0, Object.defineProperty(r, "key", {
418
+ get: a,
419
+ configurable: !0
420
+ });
421
+ }
422
+ }
423
+ function re(r, e) {
424
+ {
425
+ var a = function() {
426
+ Er || (Er = !0, g("%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)", e));
427
+ };
428
+ a.isReactWarning = !0, Object.defineProperty(r, "ref", {
429
+ get: a,
430
+ configurable: !0
431
+ });
432
+ }
433
+ }
434
+ var ee = function(r, e, a, t, i, u, o) {
435
+ var n = {
436
+ // This tag allows us to uniquely identify this as a React Element
437
+ $$typeof: _,
438
+ // Built-in properties that belong on the element
439
+ type: r,
440
+ key: e,
441
+ ref: a,
442
+ props: o,
443
+ // Record the component responsible for creating this element.
444
+ _owner: u
445
+ };
446
+ return n._store = {}, Object.defineProperty(n._store, "validated", {
447
+ configurable: !1,
448
+ enumerable: !1,
449
+ writable: !0,
450
+ value: !1
451
+ }), Object.defineProperty(n, "_self", {
452
+ configurable: !1,
453
+ enumerable: !1,
454
+ writable: !1,
455
+ value: t
456
+ }), Object.defineProperty(n, "_source", {
457
+ configurable: !1,
458
+ enumerable: !1,
459
+ writable: !1,
460
+ value: i
461
+ }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
462
+ };
463
+ function ae(r, e, a, t, i) {
464
+ {
465
+ var u, o = {}, n = null, p = null;
466
+ a !== void 0 && (gr(a), n = "" + a), Hr(e) && (gr(e.key), n = "" + e.key), zr(e) && (p = e.ref, Zr(e, i));
467
+ for (u in e)
468
+ j.call(e, u) && !Xr.hasOwnProperty(u) && (o[u] = e[u]);
469
+ if (r && r.defaultProps) {
470
+ var s = r.defaultProps;
471
+ for (u in s)
472
+ o[u] === void 0 && (o[u] = s[u]);
473
+ }
474
+ if (n || p) {
475
+ var f = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
476
+ n && Qr(o, f), p && re(o, f);
477
+ }
478
+ return ee(r, n, p, i, t, pr.current, o);
479
+ }
480
+ }
481
+ var G = A.ReactCurrentOwner, Fr = A.ReactDebugCurrentFrame;
482
+ function T(r) {
483
+ if (r) {
484
+ var e = r._owner, a = L(r.type, r._source, e ? e.type : null);
485
+ Fr.setExtraStackFrame(a);
486
+ } else
487
+ Fr.setExtraStackFrame(null);
488
+ }
489
+ var X;
490
+ X = !1;
491
+ function z(r) {
492
+ return typeof r == "object" && r !== null && r.$$typeof === _;
493
+ }
494
+ function br() {
495
+ {
496
+ if (G.current) {
497
+ var r = C(G.current.type);
498
+ if (r)
499
+ return `
500
+
501
+ Check the render method of \`` + r + "`.";
502
+ }
503
+ return "";
504
+ }
505
+ }
506
+ function te(r) {
507
+ return "";
508
+ }
509
+ var hr = {};
510
+ function ne(r) {
511
+ {
512
+ var e = br();
513
+ if (!e) {
514
+ var a = typeof r == "string" ? r : r.displayName || r.name;
515
+ a && (e = `
516
+
517
+ Check the top-level render call using <` + a + ">.");
518
+ }
519
+ return e;
520
+ }
521
+ }
522
+ function mr(r, e) {
523
+ {
524
+ if (!r._store || r._store.validated || r.key != null)
525
+ return;
526
+ r._store.validated = !0;
527
+ var a = ne(e);
528
+ if (hr[a])
529
+ return;
530
+ hr[a] = !0;
531
+ var t = "";
532
+ r && r._owner && r._owner !== G.current && (t = " It was passed a child from " + C(r._owner.type) + "."), T(r), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, t), T(null);
533
+ }
534
+ }
535
+ function kr(r, e) {
536
+ {
537
+ if (typeof r != "object")
538
+ return;
539
+ if (K(r))
540
+ for (var a = 0; a < r.length; a++) {
541
+ var t = r[a];
542
+ z(t) && mr(t, e);
543
+ }
544
+ else if (z(r))
545
+ r._store && (r._store.validated = !0);
546
+ else if (r) {
547
+ var i = Tr(r);
548
+ if (typeof i == "function" && i !== r.entries)
549
+ for (var u = i.call(r), o; !(o = u.next()).done; )
550
+ z(o.value) && mr(o.value, e);
551
+ }
552
+ }
553
+ }
554
+ function oe(r) {
555
+ {
556
+ var e = r.type;
557
+ if (e == null || typeof e == "string")
558
+ return;
559
+ var a;
560
+ if (typeof e == "function")
561
+ a = e.propTypes;
562
+ else if (typeof e == "object" && (e.$$typeof === d || // Note: Memo only checks outer props here.
563
+ // Inner props are checked in the reconciler.
564
+ e.$$typeof === k))
565
+ a = e.propTypes;
566
+ else
567
+ return;
568
+ if (a) {
569
+ var t = C(e);
570
+ Jr(a, r.props, "prop", t, r);
571
+ } else if (e.PropTypes !== void 0 && !X) {
572
+ X = !0;
573
+ var i = C(e);
574
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
575
+ }
576
+ typeof e.getDefaultProps == "function" && !e.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
577
+ }
578
+ }
579
+ function ie(r) {
580
+ {
581
+ for (var e = Object.keys(r.props), a = 0; a < e.length; a++) {
582
+ var t = e[a];
583
+ if (t !== "children" && t !== "key") {
584
+ T(r), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", t), T(null);
585
+ break;
586
+ }
587
+ }
588
+ r.ref !== null && (T(r), g("Invalid attribute `ref` supplied to `React.Fragment`."), T(null));
589
+ }
590
+ }
591
+ var Rr = {};
592
+ function Cr(r, e, a, t, i, u) {
593
+ {
594
+ var o = Wr(r);
595
+ if (!o) {
596
+ var n = "";
597
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (n += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
598
+ var p = te();
599
+ p ? n += p : n += br();
600
+ var s;
601
+ r === null ? s = "null" : K(r) ? s = "array" : r !== void 0 && r.$$typeof === _ ? (s = "<" + (C(r.type) || "Unknown") + " />", n = " Did you accidentally export a JSX literal instead of a component?") : s = typeof r, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, n);
602
+ }
603
+ var f = ae(r, e, a, i, u);
604
+ if (f == null)
605
+ return f;
606
+ if (o) {
607
+ var F = e.children;
608
+ if (F !== void 0)
609
+ if (t)
610
+ if (K(F)) {
611
+ for (var P = 0; P < F.length; P++)
612
+ kr(F[P], r);
613
+ Object.freeze && Object.freeze(F);
614
+ } else
615
+ g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
616
+ else
617
+ kr(F, r);
618
+ }
619
+ if (j.call(e, "key")) {
620
+ var D = C(r), E = Object.keys(e).filter(function(de) {
621
+ return de !== "key";
622
+ }), H = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
623
+ if (!Rr[D + H]) {
624
+ var fe = E.length > 0 ? "{" + E.join(": ..., ") + ": ...}" : "{}";
625
+ g(`A props object containing a "key" prop is being spread into JSX:
626
+ let props = %s;
627
+ <%s {...props} />
628
+ React keys must be passed directly to JSX without using spread:
629
+ let props = %s;
630
+ <%s key={someKey} {...props} />`, H, D, fe, D), Rr[D + H] = !0;
631
+ }
632
+ }
633
+ return r === l ? ie(f) : oe(f), f;
634
+ }
635
+ }
636
+ function ue(r, e, a) {
637
+ return Cr(r, e, a, !0);
638
+ }
639
+ function le(r, e, a) {
640
+ return Cr(r, e, a, !1);
641
+ }
642
+ var se = le, ce = ue;
643
+ $.Fragment = l, $.jsx = se, $.jsxs = ce;
644
+ }()), $;
645
+ }
646
+ var Dr;
647
+ function ye() {
648
+ return Dr || (Dr = 1, process.env.NODE_ENV === "production" ? N.exports = ge() : N.exports = pe()), N.exports;
649
+ }
650
+ var Q = ye();
651
+ const Ee = {
652
+ white: "#FFFFFF",
653
+ black: "#222222",
654
+ dark_black: "#030A18",
655
+ gray50: "#FBFBFB",
656
+ gray100: "#F7F8F9",
657
+ gray200: "#EBEDF2",
658
+ gray300: "#DADEE5",
659
+ gray400: "#C6CBD3",
660
+ gray500: "#BABFC9",
661
+ gray600: "#A3A8B4",
662
+ gray700: "#8A8F9D",
663
+ gray800: "#6D717D",
664
+ gray900: "#4A515D",
665
+ blue100: "#F1F5FE",
666
+ blue150: "#E4EBFF",
667
+ blue200: "#CEDBFF",
668
+ blue300: "#A7BFFF",
669
+ blue400: "#7EA1FF",
670
+ blue500: "#5884FF",
671
+ blue600: "#3369FF",
672
+ blue700: "#2B59D9",
673
+ blue800: "#244BB5",
674
+ blue900: "#1D3C91",
675
+ red50: "#FFF1EF",
676
+ red100: "#FFACAD",
677
+ red200: "#FF8182",
678
+ red300: "#FA4549",
679
+ red400: "#CF222E",
680
+ red500: "#82071E",
681
+ orange50: "#FFF1E5",
682
+ orange100: "#FFD0AA",
683
+ orange200: "#FFB37D",
684
+ orange300: "#FF8E40",
685
+ orange400: "#E16F24",
686
+ orange500: "#953800",
687
+ green50: "#EFFDEE",
688
+ green100: "#8AE3A1",
689
+ green200: "#4DD470",
690
+ green300: "#1CB854",
691
+ green400: "#149E53",
692
+ green500: "#086A49",
693
+ yellow50: "#FEF9E6",
694
+ yellow100: "#FADD78",
695
+ yellow200: "#F7CC33",
696
+ yellow300: "#F7B200",
697
+ yellow400: "#CB9D26",
698
+ yellow500: "#956B00",
699
+ dark_gray50: "#F7F8FA",
700
+ dark_gray100: "#E4E8EF",
701
+ dark_gray200: "#C7D0DE",
702
+ dark_gray250: "#C7D0DE",
703
+ dark_gray300: "#7E8EA2",
704
+ dark_gray400: "#5C6B80",
705
+ dark_gray500: "#4F5E72",
706
+ dark_gray600: "#334050",
707
+ dark_gray700: "#2F3A4F",
708
+ dark_gray750: "#212B3E",
709
+ dark_gray800: "#1C2736",
710
+ dark_gray850: "#141F2D",
711
+ dark_gray900: "#0B111D",
712
+ dark_blue100: "#EEF8FF",
713
+ dark_blue200: "#C2E8FF",
714
+ dark_blue300: "#8ED3FF",
715
+ dark_blue400: "#61C2FF",
716
+ dark_blue500: "#2DAEFF",
717
+ dark_blue600: "#1B8CE3",
718
+ dark_blue700: "#2356A3",
719
+ dark_blue800: "#193C70",
720
+ dark_blue900: "#132B51",
721
+ dark_cyan50: "#E2FBFF",
722
+ dark_cyan100: "#A3F1FF",
723
+ dark_cyan200: "#7BEBFF",
724
+ dark_cyan300: "#40E3FF",
725
+ dark_cyan400: "#1FC0DC",
726
+ dark_cyan500: "#217C8C",
727
+ dark_red50: "#FFEBE8",
728
+ dark_red100: "#FFAAA5",
729
+ dark_red200: "#FF817A",
730
+ dark_red300: "#FB453D",
731
+ dark_red400: "#CA2020",
732
+ dark_red500: "#791F2D",
733
+ dark_green50: "#C4F5CF",
734
+ dark_green100: "#8AEC99",
735
+ dark_green200: "#65E679",
736
+ dark_green300: "#34D64B",
737
+ dark_green400: "#35873D",
738
+ dark_green500: "#114410",
739
+ dark_yellow50: "#FFF9B8",
740
+ dark_yellow100: "#FFE975",
741
+ dark_yellow200: "#FFE34A",
742
+ dark_yellow300: "#FFD509",
743
+ dark_yellow400: "#A58515",
744
+ dark_yellow500: "#503602",
745
+ dark_orange50: "#FFEABB",
746
+ dark_orange100: "#FFCC78",
747
+ dark_orange200: "#FFBC4D",
748
+ dark_orange300: "#FDA00E",
749
+ dark_orange400: "#A66817",
750
+ dark_orange500: "#522603"
751
+ }, Fe = "_chip_1fflx_1", be = "_small_1fflx_10", he = "_regular_1fflx_21", me = "_large_1fflx_32", ke = "_x-large_1fflx_43", Re = "_full_1fflx_54", Ce = "_dot_1fflx_62", V = {
752
+ chip: Fe,
753
+ small: be,
754
+ regular: he,
755
+ large: me,
756
+ "x-large": "_x-large_1fflx_43",
757
+ xLarge: ke,
758
+ full: Re,
759
+ dot: Ce
760
+ }, Oe = ({
761
+ children: v,
762
+ level: _ = "regular",
763
+ borderRadius: y = "round",
764
+ colorTheme: l = "primary",
765
+ isWhiteBg: m = !1,
766
+ //deprecated
767
+ gap: O = 4,
768
+ isDot: b
769
+ }) => {
770
+ const h = l === "primary" ? "blue" : l, d = l === "gray" ? "var(--color-palette-background-gray)" : `color-mix(in srgb, var(--color-palette-${h}), transparent 84%)`, R = y === "full";
771
+ let c;
772
+ switch (_) {
773
+ case "small":
774
+ c = `0 8px 0 ${b ? 6 : 8}px`;
775
+ break;
776
+ case "regular":
777
+ c = `0 8px 0 ${b ? 6 : 8}px`;
778
+ break;
779
+ case "large":
780
+ c = `0 10px 0 ${b ? 8 : 10}px`;
781
+ break;
782
+ case "x-large":
783
+ c = `0 16px 0 ${b ? 12 : 16}px`;
784
+ break;
785
+ default:
786
+ c = "4px 8px";
787
+ }
788
+ return /* @__PURE__ */ Q.jsxs(
789
+ "div",
790
+ {
791
+ className: `${V.chip} ${V[_]}
792
+ ${R && V.full}
793
+ `,
794
+ style: {
795
+ backgroundColor: m ? Ee.white : d,
796
+ color: `var(--color-palette-${h})`,
797
+ padding: c,
798
+ gap: `${O}px`
799
+ },
800
+ children: [
801
+ b && /* @__PURE__ */ Q.jsx(
802
+ "div",
803
+ {
804
+ className: V.dot,
805
+ style: {
806
+ backgroundColor: `var(--color-palette-${h})`
807
+ }
808
+ }
809
+ ),
810
+ v
811
+ ]
812
+ }
813
+ );
814
+ }, we = "_divider_6kbwo_1", xe = "_row_6kbwo_5", De = "_column_6kbwo_9", Z = {
815
+ divider: we,
816
+ row: xe,
817
+ column: De
818
+ }, Ae = ({
819
+ size: v = 1,
820
+ direction: _ = "row",
821
+ color: y
822
+ }) => {
823
+ const l = _ === "row";
824
+ return /* @__PURE__ */ Q.jsx(
825
+ "div",
826
+ {
827
+ className: `${Z.divider} ${l ? Z.row : Z.column}`,
828
+ style: {
829
+ borderBottom: l && `${v}px solid ${y || "var(--color-line-normal-muted)"}`,
830
+ borderRight: !l && `${v}px solid ${y || "var(--color-line-normal-muted)"}`,
831
+ width: l && "100%",
832
+ height: !l && "100%"
833
+ }
834
+ }
835
+ );
836
+ };
837
+ export {
838
+ Oe as C,
839
+ Ae as D,
840
+ Q as j,
841
+ Ee as t
842
+ };