@gobolt/genesis 0.0.8 → 0.0.10

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 (170) hide show
  1. package/README.md +10 -0
  2. package/dist/{AntdIcon-c395a1c4.js → AntdIcon-BoLh1dP8.js} +66 -68
  3. package/dist/CheckOutlined-CeTKr6II.js +13 -0
  4. package/dist/{CloseCircleFilled-ddc51e7e.js → CloseCircleFilled-DXCxlIQL.js} +8 -11
  5. package/dist/{CloseOutlined-14b8bba1.js → CloseOutlined-ClXDNn82.js} +9 -12
  6. package/dist/{Compact-c39ed20d.js → Compact-CGY560JF.js} +63 -65
  7. package/dist/ContextIsolator-D5x2Ih51.js +20 -0
  8. package/dist/{ExclamationCircleFilled-23ef9812.js → ExclamationCircleFilled-C0Kj5KQV.js} +16 -22
  9. package/dist/KeyCode-DM2sFh3-.js +517 -0
  10. package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
  11. package/dist/{Overflow-a570fa69.js → Overflow-PBZD-PFm.js} +63 -64
  12. package/dist/{DownOutlined-64a4732a.js → PurePanel-BqPLRtc2.js} +67 -70
  13. package/dist/{SearchOutlined-a9014e08.js → SearchOutlined-BP3Z2K6j.js} +8 -11
  14. package/dist/{TextArea-20825221.js → TextArea-DKwCct3i.js} +583 -588
  15. package/dist/Typography-aGoDUl4R.js +710 -0
  16. package/dist/bundle.css +1204 -0
  17. package/dist/{button-fa1c119c.js → button-CDQgO1OK.js} +274 -278
  18. package/dist/{collapse-345bc884.js → collapse-Dtpt-6W_.js} +2 -2
  19. package/dist/compact-item-DH13cl8A.js +61 -0
  20. package/dist/components/Badge/Badge.d.ts +2 -2
  21. package/dist/components/Badge/Badge.js +63 -62
  22. package/dist/components/Badge/__tests__/Badge.test.js +11 -65
  23. package/dist/components/Badge/index.js +2 -21
  24. package/dist/components/Badge/styles.js +7 -8
  25. package/dist/components/Breadcrumb/Breadcrumb.js +8 -24
  26. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +21 -7
  27. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +13 -60
  28. package/dist/components/Breadcrumb/index.js +2 -25
  29. package/dist/components/Breadcrumb/styles.d.ts +10 -6
  30. package/dist/components/Breadcrumb/styles.js +787 -808
  31. package/dist/components/Button/Button.d.ts +6 -4
  32. package/dist/components/Button/Button.js +20 -40
  33. package/dist/components/Button/__tests__/Button.test.js +9 -54
  34. package/dist/components/Button/index.js +2 -20
  35. package/dist/components/Button/styles.d.ts +9 -5
  36. package/dist/components/Button/styles.js +19 -30
  37. package/dist/components/Checkbox/Checkbox.js +8 -38
  38. package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -62
  39. package/dist/components/Checkbox/index.js +2 -47
  40. package/dist/components/Checkbox/styles.d.ts +8 -1
  41. package/dist/components/Checkbox/styles.js +181 -188
  42. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -4
  43. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +19 -51
  44. package/dist/components/ErrorBoundaryFallback/index.d.ts +1 -0
  45. package/dist/components/ErrorBoundaryFallback/index.js +2 -49
  46. package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -3
  47. package/dist/components/ErrorBoundaryFallback/styles.js +34 -37
  48. package/dist/components/Form/Form.d.ts +18 -5
  49. package/dist/components/Form/Form.js +4 -45
  50. package/dist/components/Form/__stories__/FormStory.js +44 -81
  51. package/dist/components/Form/__tests__/form.test.d.ts +1 -0
  52. package/dist/components/Form/__tests__/form.test.js +18 -0
  53. package/dist/components/Form/index.js +2 -46
  54. package/dist/components/Form/styles.d.ts +3 -0
  55. package/dist/components/Form/styles.js +5 -0
  56. package/dist/components/Input/Input.js +6 -29
  57. package/dist/components/Input/__tests__/Input.test.js +21 -66
  58. package/dist/components/Input/index.js +2 -29
  59. package/dist/components/Input/styles.d.ts +5 -2
  60. package/dist/components/Input/styles.js +319 -332
  61. package/dist/components/Message/Message.d.ts +4 -4
  62. package/dist/components/Message/Message.js +53 -80
  63. package/dist/components/Message/__tests__/Message.test.js +24 -70
  64. package/dist/components/Message/index.js +2 -48
  65. package/dist/components/Message/styles.d.ts +4 -1
  66. package/dist/components/Message/styles.js +24 -18
  67. package/dist/components/Notification/Notification.d.ts +11 -10
  68. package/dist/components/Notification/Notification.js +306 -372
  69. package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
  70. package/dist/components/Notification/NotificationRightChevron.js +23 -0
  71. package/dist/components/Notification/__tests__/Notification.test.js +8 -69
  72. package/dist/components/Notification/index.js +2 -59
  73. package/dist/components/Notification/styles.d.ts +13 -3
  74. package/dist/components/Notification/styles.js +36 -20
  75. package/dist/components/Radio/Radio.js +20 -106
  76. package/dist/components/Radio/RadioGroup.js +18 -71
  77. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +1 -1
  78. package/dist/components/Radio/__tests__/RadioGroup.test.js +15 -70
  79. package/dist/components/Radio/index.d.ts +1 -1
  80. package/dist/components/Radio/index.js +2 -56
  81. package/dist/components/Select/DropdownChevron.d.ts +2 -0
  82. package/dist/components/Select/DropdownChevron.js +23 -0
  83. package/dist/components/Select/Select.d.ts +9 -4
  84. package/dist/components/Select/Select.js +29 -41
  85. package/dist/components/Select/__tests__/Select.test.js +10752 -93
  86. package/dist/components/Select/index.js +2 -28
  87. package/dist/components/Select/styles.d.ts +20 -6
  88. package/dist/components/Select/styles.js +1381 -1370
  89. package/dist/components/Toast/Toast.d.ts +4 -4
  90. package/dist/components/Toast/Toast.js +8 -37
  91. package/dist/components/Toast/__stories__/Toast.stories.d.ts +1 -0
  92. package/dist/components/Toast/__tests__/Toast.test.js +10 -55
  93. package/dist/components/Toast/index.js +2 -46
  94. package/dist/components/Toast/styles.d.ts +6 -1
  95. package/dist/components/Toast/styles.js +36 -21
  96. package/dist/components/Typography/Typography.d.ts +7 -4
  97. package/dist/components/Typography/Typography.js +2 -42
  98. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  99. package/dist/components/Typography/__tests__/Typography.test.js +19 -56
  100. package/dist/components/Typography/index.js +2 -46
  101. package/dist/components/Typography/styles.d.ts +18 -4
  102. package/dist/components/Typography/styles.js +36 -43
  103. package/dist/components/index.d.ts +13 -5
  104. package/dist/components/index.js +24 -70
  105. package/dist/{context-3b8a39af.js → context-BMW3aJEf.js} +538 -548
  106. package/dist/genesis/GenesisThemeBreakdown.js +38 -55
  107. package/dist/genesis/GenesisThemeDemo.js +3 -53
  108. package/dist/genesis/styles.d.ts +6 -2
  109. package/dist/genesis/styles.js +496 -521
  110. package/dist/{index-e2b72ca8.js → index-1CBpubM3.js} +97 -102
  111. package/dist/index-BZAhCB_K.js +97 -0
  112. package/dist/{index-501fc13d.js → index-C0SmxWLS.js} +367 -392
  113. package/dist/index-C8haFnXI.js +1112 -0
  114. package/dist/index-CfDY25LP.js +873 -0
  115. package/dist/index-DPW8XdWj.js +952 -0
  116. package/dist/{index-8c8d2d0c.js → index-bKlRxQp4.js} +114 -114
  117. package/dist/index-oK7z6jnz.js +22795 -0
  118. package/dist/index.d.ts +1 -0
  119. package/dist/index.js +31 -77
  120. package/dist/{isVisible-729780f5.js → isVisible-A-IfeFoT.js} +67 -94
  121. package/dist/{magic-string.es-b7491176.js → magic-string.es-D2FWSwU3.js} +56 -103
  122. package/dist/{pickAttrs-00ba4687.js → pickAttrs-B0YTfcV1.js} +1 -1
  123. package/dist/providers/GenesisProvider.d.ts +0 -5
  124. package/dist/providers/GenesisProvider.js +9 -59
  125. package/dist/providers/ThemeProvider.d.ts +1 -2
  126. package/dist/providers/ThemeProvider.js +11 -13
  127. package/dist/providers/ToastProvider.d.ts +11 -4
  128. package/dist/providers/ToastProvider.js +10 -39
  129. package/dist/providers/index.d.ts +2 -3
  130. package/dist/providers/index.js +4 -51
  131. package/dist/providers/useGenesis.d.ts +7 -0
  132. package/dist/providers/useGenesis.js +6 -0
  133. package/dist/setup-BvfREoHl.js +33891 -0
  134. package/dist/{styled-components.browser.esm-02f500bc.js → styled-components.browser.esm-CZ1XM4o4.js} +72 -134
  135. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +15 -45
  136. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +15 -45
  137. package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
  138. package/dist/styles/design-tokens/variables.d.ts +10 -10
  139. package/dist/styles/design-tokens/variables.js +1 -1
  140. package/dist/styles/global-styles.d.ts +1 -0
  141. package/dist/styles/global-styles.js +14 -31
  142. package/dist/styles/theme/genesis-theme.js +257 -212
  143. package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
  144. package/dist/styles/theme/index.js +4 -5
  145. package/dist/styles-CT_fyXBd.js +1808 -0
  146. package/dist/test/setup.js +3 -46
  147. package/dist/useLocale-DT-z_vQ6.js +16 -0
  148. package/dist/useVariants-DvhXfgJY.js +30 -0
  149. package/dist/utils/isAllEnglishString.js +1 -2
  150. package/dist/{presets-83ccb923.js → warning-C63HNL9U.js} +358 -356
  151. package/package.json +51 -43
  152. package/dist/CheckOutlined-52d9ac25.js +0 -29
  153. package/dist/ContextIsolator-b09b2c52.js +0 -20
  154. package/dist/EllipsisOutlined-60122660.js +0 -1115
  155. package/dist/InfoCircleFilled-c5f90c20.js +0 -16
  156. package/dist/RightOutlined-83515eb4.js +0 -16
  157. package/dist/compact-item-b8f85aa6.js +0 -75
  158. package/dist/index-0a886e53.js +0 -100
  159. package/dist/index-0b9ee239.js +0 -955
  160. package/dist/index-1a33c134.js +0 -1389
  161. package/dist/index-4003d75b.js +0 -3748
  162. package/dist/index-89035ea5.js +0 -3242
  163. package/dist/providers/ToastWrapper.d.ts +0 -7
  164. package/dist/providers/ToastWrapper.js +0 -56
  165. package/dist/setup-aaca7b6f.js +0 -21158
  166. package/dist/styles/theme/global-styles.d.ts +0 -1
  167. package/dist/styles/theme/global-styles.js +0 -36
  168. package/dist/useVariants-a0d64298.js +0 -30
  169. /package/dist/{presetColors-ccf8cb4c.js → presetColors-Cl8UP3Nw.js} +0 -0
  170. /package/dist/{reactNode-f4391605.js → reactNode-sKPeiqPL.js} +0 -0
@@ -1,11 +1,10 @@
1
- import { b as ht } from "./presets-83ccb923.js";
2
- import "react";
1
+ import { b as ht } from "./warning-C63HNL9U.js";
3
2
  var q = { exports: {} };
4
3
  (function(E, t) {
5
4
  (function(e, n) {
6
5
  n(t);
7
6
  })(ht, function(e) {
8
- const n = ",".charCodeAt(0), s = ";".charCodeAt(0), r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = new Uint8Array(64), f = new Uint8Array(128);
7
+ const r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = new Uint8Array(64), f = new Uint8Array(128);
9
8
  for (let a = 0; a < r.length; a++) {
10
9
  const h = r.charCodeAt(a);
11
10
  u[a] = h, f[h] = a;
@@ -29,7 +28,7 @@ var q = { exports: {} };
29
28
  return h;
30
29
  }
31
30
  function k(a, h) {
32
- return a.pos >= h ? !1 : a.peek() !== n;
31
+ return a.pos >= h ? !1 : a.peek() !== 44;
33
32
  }
34
33
  const O = 1024 * 16, z = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? {
35
34
  decode(a) {
@@ -104,7 +103,7 @@ var q = { exports: {} };
104
103
  }
105
104
  function H(a, h, i, l) {
106
105
  const d = a[h], { 0: g, 1: b, 2: m, 3: S, 4: C, vars: w } = d;
107
- h > 0 && i.write(n), l[0] = c(i, g, l[0]), c(i, b, 0), c(i, C, 0);
106
+ h > 0 && i.write(44), l[0] = c(i, g, l[0]), c(i, b, 0), c(i, C, 0);
108
107
  const y = d.length === 6 ? 1 : 0;
109
108
  c(i, y, 0), d.length === 6 && c(i, d[5], 0);
110
109
  for (const v of w)
@@ -115,7 +114,7 @@ var q = { exports: {} };
115
114
  break;
116
115
  h = H(a, h, i, l);
117
116
  }
118
- return i.write(n), l[0] = c(i, m, l[0]), c(i, S, 0), h;
117
+ return i.write(44), l[0] = c(i, m, l[0]), c(i, S, 0), h;
119
118
  }
120
119
  function V(a) {
121
120
  const { length: h } = a, i = new G(a), l = [], d = [];
@@ -177,7 +176,7 @@ var q = { exports: {} };
177
176
  }
178
177
  function J(a, h, i, l) {
179
178
  const d = a[h], { 0: g, 1: b, 2: m, 3: S, isScope: C, callsite: w, bindings: y } = d;
180
- l[0] < g ? (W(i, l[0], g), l[0] = g, l[1] = 0) : h > 0 && i.write(n), l[1] = c(i, d[1], l[1]);
179
+ l[0] < g ? (W(i, l[0], g), l[0] = g, l[1] = 0) : h > 0 && i.write(44), l[1] = c(i, d[1], l[1]);
181
180
  const v = (d.length === 6 ? 1 : 0) | (w ? 2 : 0) | (C ? 4 : 0);
182
181
  if (c(i, v, 0), d.length === 6) {
183
182
  const { 4: p, 5: x } = d;
@@ -204,11 +203,11 @@ var q = { exports: {} };
204
203
  break;
205
204
  h = J(a, h, i, l);
206
205
  }
207
- return l[0] < m ? (W(i, l[0], m), l[0] = m, l[1] = 0) : i.write(n), l[1] = c(i, S, l[1]), h;
206
+ return l[0] < m ? (W(i, l[0], m), l[0] = m, l[1] = 0) : i.write(44), l[1] = c(i, S, l[1]), h;
208
207
  }
209
208
  function W(a, h, i) {
210
209
  do
211
- a.write(s);
210
+ a.write(59);
212
211
  while (++h < i);
213
212
  }
214
213
  function et(a) {
@@ -236,12 +235,12 @@ var q = { exports: {} };
236
235
  let i = 0, l = 0, d = 0, g = 0;
237
236
  for (let b = 0; b < a.length; b++) {
238
237
  const m = a[b];
239
- if (b > 0 && h.write(s), m.length === 0)
238
+ if (b > 0 && h.write(59), m.length === 0)
240
239
  continue;
241
240
  let S = 0;
242
241
  for (let C = 0; C < m.length; C++) {
243
242
  const w = m[C];
244
- C > 0 && h.write(n), S = c(h, w[0], S), w.length !== 1 && (i = c(h, w[1], i), l = c(h, w[2], l), d = c(h, w[3], d), w.length !== 4 && (g = c(h, w[4], g)));
243
+ C > 0 && h.write(44), S = c(h, w[0], S), w.length !== 1 && (i = c(h, w[1], i), l = c(h, w[2], l), d = c(h, w[3], d), w.length !== 4 && (g = c(h, w[4], g)));
245
244
  }
246
245
  }
247
246
  return h.flush();
@@ -310,17 +309,14 @@ class M {
310
309
  return this.intro + this.content + this.outro;
311
310
  }
312
311
  trimEnd(t) {
313
- if (this.outro = this.outro.replace(t, ""), this.outro.length)
314
- return !0;
312
+ if (this.outro = this.outro.replace(t, ""), this.outro.length) return !0;
315
313
  const e = this.content.replace(t, "");
316
314
  if (e.length)
317
315
  return e !== this.content && (this.split(this.start + e.length).edit("", void 0, !0), this.edited && this.edit(e, this.storeName, !0)), !0;
318
- if (this.edit("", void 0, !0), this.intro = this.intro.replace(t, ""), this.intro.length)
319
- return !0;
316
+ if (this.edit("", void 0, !0), this.intro = this.intro.replace(t, ""), this.intro.length) return !0;
320
317
  }
321
318
  trimStart(t) {
322
- if (this.intro = this.intro.replace(t, ""), this.intro.length)
323
- return !0;
319
+ if (this.intro = this.intro.replace(t, ""), this.intro.length) return !0;
324
320
  const e = this.content.replace(t, "");
325
321
  if (e.length) {
326
322
  if (e !== this.content) {
@@ -328,8 +324,7 @@ class M {
328
324
  this.edited && n.edit(e, this.storeName, !0), this.edit("", void 0, !0);
329
325
  }
330
326
  return !0;
331
- } else if (this.edit("", void 0, !0), this.outro = this.outro.replace(t, ""), this.outro.length)
332
- return !0;
327
+ } else if (this.edit("", void 0, !0), this.outro = this.outro.replace(t, ""), this.outro.length) return !0;
333
328
  }
334
329
  }
335
330
  function ut() {
@@ -368,8 +363,7 @@ function dt(E, t) {
368
363
  e.shift(), n.shift();
369
364
  if (e.length) {
370
365
  let s = e.length;
371
- for (; s--; )
372
- e[s] = "..";
366
+ for (; s--; ) e[s] = "..";
373
367
  }
374
368
  return e.concat(n).join("/");
375
369
  }
@@ -409,8 +403,7 @@ class wt {
409
403
  }
410
404
  const o = [this.generatedCodeColumn, t, n.line, n.column];
411
405
  s >= 0 && o.push(s), this.rawSegments.push(o), this.advance(e.slice(f + 1));
412
- } else
413
- this.pending && (this.rawSegments.push(this.pending), this.advance(e));
406
+ } else this.pending && (this.rawSegments.push(this.pending), this.advance(e));
414
407
  this.pending = null;
415
408
  }
416
409
  addUneditedChunk(t, e, n, s, r) {
@@ -431,8 +424,7 @@ class wt {
431
424
  this.pending = null;
432
425
  }
433
426
  advance(t) {
434
- if (!t)
435
- return;
427
+ if (!t) return;
436
428
  const e = t.split(`
437
429
  `);
438
430
  if (e.length > 1) {
@@ -474,20 +466,17 @@ class Q {
474
466
  this.sourcemapLocations.add(t);
475
467
  }
476
468
  append(t) {
477
- if (typeof t != "string")
478
- throw new TypeError("outro content must be a string");
469
+ if (typeof t != "string") throw new TypeError("outro content must be a string");
479
470
  return this.outro += t, this;
480
471
  }
481
472
  appendLeft(t, e) {
482
- if (t = t + this.offset, typeof e != "string")
483
- throw new TypeError("inserted content must be a string");
473
+ if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
484
474
  this._split(t);
485
475
  const n = this.byEnd[t];
486
476
  return n ? n.appendLeft(e) : this.intro += e, this;
487
477
  }
488
478
  appendRight(t, e) {
489
- if (t = t + this.offset, typeof e != "string")
490
- throw new TypeError("inserted content must be a string");
479
+ if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
491
480
  this._split(t);
492
481
  const n = this.byStart[t];
493
482
  return n ? n.appendRight(e) : this.outro += e, this;
@@ -538,8 +527,7 @@ class Q {
538
527
  }
539
528
  indent(t, e) {
540
529
  const n = /^[^\r\n]/gm;
541
- if (pt(t) && (e = t, t = void 0), t === void 0 && (this._ensureindentStr(), t = this.indentStr || " "), t === "")
542
- return this;
530
+ if (pt(t) && (e = t, t = void 0), t === void 0 && (this._ensureindentStr(), t = this.indentStr || " "), t === "") return this;
543
531
  e = e || {};
544
532
  const s = {};
545
533
  e.exclude && (typeof e.exclude[0] == "number" ? [e.exclude] : e.exclude).forEach((k) => {
@@ -584,12 +572,10 @@ class Q {
584
572
  ), N.insertRight = !0), this.prependRight(t, e);
585
573
  }
586
574
  move(t, e, n) {
587
- if (t = t + this.offset, e = e + this.offset, n = n + this.offset, n >= t && n <= e)
588
- throw new Error("Cannot move a selection inside itself");
575
+ if (t = t + this.offset, e = e + this.offset, n = n + this.offset, n >= t && n <= e) throw new Error("Cannot move a selection inside itself");
589
576
  this._split(t), this._split(e), this._split(n);
590
577
  const s = this.byStart[t], r = this.byEnd[e], u = s.previous, f = r.next, o = this.byStart[n];
591
- if (!o && r === this.lastChunk)
592
- return this;
578
+ if (!o && r === this.lastChunk) return this;
593
579
  const c = o ? o.previous : this.lastChunk;
594
580
  return u && (u.next = f), f && (f.previous = u), c && (c.next = s), o && (o.previous = r), s.previous || (this.firstChunk = r.next), r.next || (this.lastChunk = s.previous, this.lastChunk.next = null), s.previous = c, r.next = o || null, c || (this.firstChunk = s), o || (this.lastChunk = r), this;
595
581
  }
@@ -597,16 +583,12 @@ class Q {
597
583
  return s = s || {}, this.update(t, e, n, { ...s, overwrite: !s.contentOnly });
598
584
  }
599
585
  update(t, e, n, s) {
600
- if (t = t + this.offset, e = e + this.offset, typeof n != "string")
601
- throw new TypeError("replacement content must be a string");
586
+ if (t = t + this.offset, e = e + this.offset, typeof n != "string") throw new TypeError("replacement content must be a string");
602
587
  if (this.original.length !== 0) {
603
- for (; t < 0; )
604
- t += this.original.length;
605
- for (; e < 0; )
606
- e += this.original.length;
588
+ for (; t < 0; ) t += this.original.length;
589
+ for (; e < 0; ) e += this.original.length;
607
590
  }
608
- if (e > this.original.length)
609
- throw new Error("end is out of bounds");
591
+ if (e > this.original.length) throw new Error("end is out of bounds");
610
592
  if (t === e)
611
593
  throw new Error(
612
594
  "Cannot overwrite a zero-length range – use appendLeft or prependRight instead"
@@ -639,37 +621,29 @@ class Q {
639
621
  return this;
640
622
  }
641
623
  prepend(t) {
642
- if (typeof t != "string")
643
- throw new TypeError("outro content must be a string");
624
+ if (typeof t != "string") throw new TypeError("outro content must be a string");
644
625
  return this.intro = t + this.intro, this;
645
626
  }
646
627
  prependLeft(t, e) {
647
- if (t = t + this.offset, typeof e != "string")
648
- throw new TypeError("inserted content must be a string");
628
+ if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
649
629
  this._split(t);
650
630
  const n = this.byEnd[t];
651
631
  return n ? n.prependLeft(e) : this.intro = e + this.intro, this;
652
632
  }
653
633
  prependRight(t, e) {
654
- if (t = t + this.offset, typeof e != "string")
655
- throw new TypeError("inserted content must be a string");
634
+ if (t = t + this.offset, typeof e != "string") throw new TypeError("inserted content must be a string");
656
635
  this._split(t);
657
636
  const n = this.byStart[t];
658
637
  return n ? n.prependRight(e) : this.outro = e + this.outro, this;
659
638
  }
660
639
  remove(t, e) {
661
640
  if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
662
- for (; t < 0; )
663
- t += this.original.length;
664
- for (; e < 0; )
665
- e += this.original.length;
641
+ for (; t < 0; ) t += this.original.length;
642
+ for (; e < 0; ) e += this.original.length;
666
643
  }
667
- if (t === e)
668
- return this;
669
- if (t < 0 || e > this.original.length)
670
- throw new Error("Character is out of bounds");
671
- if (t > e)
672
- throw new Error("end must be greater than start");
644
+ if (t === e) return this;
645
+ if (t < 0 || e > this.original.length) throw new Error("Character is out of bounds");
646
+ if (t > e) throw new Error("end must be greater than start");
673
647
  this._split(t), this._split(e);
674
648
  let n = this.byStart[t];
675
649
  for (; n; )
@@ -678,17 +652,12 @@ class Q {
678
652
  }
679
653
  reset(t, e) {
680
654
  if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
681
- for (; t < 0; )
682
- t += this.original.length;
683
- for (; e < 0; )
684
- e += this.original.length;
655
+ for (; t < 0; ) t += this.original.length;
656
+ for (; e < 0; ) e += this.original.length;
685
657
  }
686
- if (t === e)
687
- return this;
688
- if (t < 0 || e > this.original.length)
689
- throw new Error("Character is out of bounds");
690
- if (t > e)
691
- throw new Error("end must be greater than start");
658
+ if (t === e) return this;
659
+ if (t < 0 || e > this.original.length) throw new Error("Character is out of bounds");
660
+ if (t > e) throw new Error("end must be greater than start");
692
661
  this._split(t), this._split(e);
693
662
  let n = this.byStart[t];
694
663
  for (; n; )
@@ -696,38 +665,30 @@ class Q {
696
665
  return this;
697
666
  }
698
667
  lastChar() {
699
- if (this.outro.length)
700
- return this.outro[this.outro.length - 1];
668
+ if (this.outro.length) return this.outro[this.outro.length - 1];
701
669
  let t = this.lastChunk;
702
670
  do {
703
- if (t.outro.length)
704
- return t.outro[t.outro.length - 1];
705
- if (t.content.length)
706
- return t.content[t.content.length - 1];
707
- if (t.intro.length)
708
- return t.intro[t.intro.length - 1];
671
+ if (t.outro.length) return t.outro[t.outro.length - 1];
672
+ if (t.content.length) return t.content[t.content.length - 1];
673
+ if (t.intro.length) return t.intro[t.intro.length - 1];
709
674
  } while (t = t.previous);
710
675
  return this.intro.length ? this.intro[this.intro.length - 1] : "";
711
676
  }
712
677
  lastLine() {
713
678
  let t = this.outro.lastIndexOf($);
714
- if (t !== -1)
715
- return this.outro.substr(t + 1);
679
+ if (t !== -1) return this.outro.substr(t + 1);
716
680
  let e = this.outro, n = this.lastChunk;
717
681
  do {
718
682
  if (n.outro.length > 0) {
719
- if (t = n.outro.lastIndexOf($), t !== -1)
720
- return n.outro.substr(t + 1) + e;
683
+ if (t = n.outro.lastIndexOf($), t !== -1) return n.outro.substr(t + 1) + e;
721
684
  e = n.outro + e;
722
685
  }
723
686
  if (n.content.length > 0) {
724
- if (t = n.content.lastIndexOf($), t !== -1)
725
- return n.content.substr(t + 1) + e;
687
+ if (t = n.content.lastIndexOf($), t !== -1) return n.content.substr(t + 1) + e;
726
688
  e = n.content + e;
727
689
  }
728
690
  if (n.intro.length > 0) {
729
- if (t = n.intro.lastIndexOf($), t !== -1)
730
- return n.intro.substr(t + 1) + e;
691
+ if (t = n.intro.lastIndexOf($), t !== -1) return n.intro.substr(t + 1) + e;
731
692
  e = n.intro + e;
732
693
  }
733
694
  } while (n = n.previous);
@@ -735,10 +696,8 @@ class Q {
735
696
  }
736
697
  slice(t = 0, e = this.original.length - this.offset) {
737
698
  if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
738
- for (; t < 0; )
739
- t += this.original.length;
740
- for (; e < 0; )
741
- e += this.original.length;
699
+ for (; t < 0; ) t += this.original.length;
700
+ for (; e < 0; ) e += this.original.length;
742
701
  }
743
702
  let n = "", s = this.firstChunk;
744
703
  for (; s && (s.start > t || s.end <= t); ) {
@@ -767,13 +726,11 @@ class Q {
767
726
  return n.remove(0, t), n.remove(e, n.original.length), n;
768
727
  }
769
728
  _split(t) {
770
- if (this.byStart[t] || this.byEnd[t])
771
- return;
729
+ if (this.byStart[t] || this.byEnd[t]) return;
772
730
  let e = this.lastSearchedChunk;
773
731
  const n = t > e.end;
774
732
  for (; e; ) {
775
- if (e.contains(t))
776
- return this._splitChunk(e, t);
733
+ if (e.contains(t)) return this._splitChunk(e, t);
777
734
  e = n ? this.byStart[e.end] : this.byEnd[e.start];
778
735
  }
779
736
  }
@@ -816,13 +773,11 @@ class Q {
816
773
  }
817
774
  trimEndAborted(t) {
818
775
  const e = new RegExp((t || "\\s") + "+$");
819
- if (this.outro = this.outro.replace(e, ""), this.outro.length)
820
- return !0;
776
+ if (this.outro = this.outro.replace(e, ""), this.outro.length) return !0;
821
777
  let n = this.lastChunk;
822
778
  do {
823
779
  const s = n.end, r = n.trimEnd(e);
824
- if (n.end !== s && (this.lastChunk === n && (this.lastChunk = n.next), this.byEnd[n.end] = n, this.byStart[n.next.start] = n.next, this.byEnd[n.next.end] = n.next), r)
825
- return !0;
780
+ if (n.end !== s && (this.lastChunk === n && (this.lastChunk = n.next), this.byEnd[n.end] = n, this.byStart[n.next.start] = n.next, this.byEnd[n.next.end] = n.next), r) return !0;
826
781
  n = n.previous;
827
782
  } while (n);
828
783
  return !1;
@@ -832,13 +787,11 @@ class Q {
832
787
  }
833
788
  trimStartAborted(t) {
834
789
  const e = new RegExp("^" + (t || "\\s") + "+");
835
- if (this.intro = this.intro.replace(e, ""), this.intro.length)
836
- return !0;
790
+ if (this.intro = this.intro.replace(e, ""), this.intro.length) return !0;
837
791
  let n = this.firstChunk;
838
792
  do {
839
793
  const s = n.end, r = n.trimStart(e);
840
- if (n.end !== s && (n === this.lastChunk && (this.lastChunk = n.next), this.byEnd[n.end] = n, this.byStart[n.next.start] = n.next, this.byEnd[n.next.end] = n.next), r)
841
- return !0;
794
+ if (n.end !== s && (n === this.lastChunk && (this.lastChunk = n.next), this.byEnd[n.end] = n, this.byStart[n.next.start] = n.next, this.byEnd[n.next.end] = n.next), r) return !0;
842
795
  n = n.next;
843
796
  } while (n);
844
797
  return !1;
@@ -1,4 +1,4 @@
1
- import { _ as i } from "./presets-83ccb923.js";
1
+ import { _ as i } from "./warning-C63HNL9U.js";
2
2
  var s = `accept acceptCharset accessKey action allowFullScreen allowTransparency
3
3
  alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
4
4
  charSet checked classID className colSpan cols content contentEditable contextMenu
@@ -6,8 +6,3 @@ interface GenesisProviderProps {
6
6
  }
7
7
  export declare const GenesisProvider: React.FC<GenesisProviderProps>;
8
8
  export default GenesisProvider;
9
- export declare const useGenesis: () => {
10
- breakpoint: import('../styles/theme/genesis-theme.types').BreakpointLabel;
11
- theme: import('styled-components').DefaultTheme;
12
- toast: any;
13
- };
@@ -1,61 +1,11 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { ThemeProvider as m, useBreakpoint as p, useGenesisTheme as e } from "./ThemeProvider.js";
3
- import { c as s, u as n } from "../index-89035ea5.js";
4
- import "react";
5
- import "../styled-components.browser.esm-02f500bc.js";
6
- import "../styles/theme/genesis-theme.js";
7
- import "../styles/design-tokens/variables.js";
8
- import "../constants/index.js";
9
- import "../components/Button/styles.js";
10
- import "../button-fa1c119c.js";
11
- import "../presets-83ccb923.js";
12
- import "../isVisible-729780f5.js";
13
- import "../index-4003d75b.js";
14
- import "react-dom";
15
- import "../index-e2b72ca8.js";
16
- import "../reactNode-f4391605.js";
17
- import "../Compact-c39ed20d.js";
18
- import "../presetColors-ccf8cb4c.js";
19
- import "../compact-item-b8f85aa6.js";
20
- import "../AntdIcon-c395a1c4.js";
21
- import "../components/Checkbox/styles.js";
22
- import "../context-3b8a39af.js";
23
- import "../components/ErrorBoundaryFallback/styles.js";
24
- import "../ExclamationCircleFilled-23ef9812.js";
25
- import "../CloseCircleFilled-ddc51e7e.js";
26
- import "../components/Input/styles.js";
27
- import "../TextArea-20825221.js";
28
- import "../index-8c8d2d0c.js";
29
- import "../useVariants-a0d64298.js";
30
- import "../ContextIsolator-b09b2c52.js";
31
- import "../pickAttrs-00ba4687.js";
32
- import "../SearchOutlined-a9014e08.js";
33
- import "../components/Select/styles.js";
34
- import "../index-1a33c134.js";
35
- import "../Overflow-a570fa69.js";
36
- import "../DownOutlined-64a4732a.js";
37
- import "../CheckOutlined-52d9ac25.js";
38
- import "../CloseOutlined-14b8bba1.js";
39
- import "../components/Typography/styles.js";
40
- import "../index-501fc13d.js";
41
- import "../index-0b9ee239.js";
42
- import "../components/Badge/styles.js";
43
- import "../InfoCircleFilled-c5f90c20.js";
44
- import "../components/Toast/styles.js";
45
- import "../collapse-345bc884.js";
46
- const oo = ({
47
- children: o,
48
- isDarkMode: r = !1
49
- }) => /* @__PURE__ */ t(m, { isDarkMode: r, children: /* @__PURE__ */ t(s, { children: o }) }), ro = () => {
50
- const o = p(), r = e(), i = n();
51
- return {
52
- breakpoint: o,
53
- theme: r,
54
- toast: i
55
- };
56
- };
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { ThemeProvider as i } from "./ThemeProvider.js";
3
+ import { g as s } from "../Typography-aGoDUl4R.js";
4
+ const d = ({
5
+ children: e,
6
+ isDarkMode: o = !1
7
+ }) => /* @__PURE__ */ r(i, { isDarkMode: o, children: /* @__PURE__ */ r(s, { children: e }) });
57
8
  export {
58
- oo as GenesisProvider,
59
- oo as default,
60
- ro as useGenesis
9
+ d as GenesisProvider,
10
+ d as default
61
11
  };
@@ -5,6 +5,5 @@ interface ThemeProviderProps {
5
5
  isDarkMode?: boolean;
6
6
  }
7
7
  export declare const ThemeProvider: ({ children, isDarkMode, }: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
8
- export declare const useBreakpoint: () => import('../styles/theme/genesis-theme.types').BreakpointLabel;
9
- export declare const useGenesisTheme: () => import('styled-components').DefaultTheme;
8
+ export declare const useBreakpoint: () => "wide" | "medium" | "narrow";
10
9
  export {};
@@ -1,23 +1,21 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import { createContext as m, useState as p, useEffect as w, useContext as c } from "react";
3
- import { o as u, n as f } from "../styled-components.browser.esm-02f500bc.js";
4
- import { darkTheme as h, lightTheme as k } from "../styles/theme/genesis-theme.js";
5
- import "../styles/design-tokens/variables.js";
6
- const o = m("Wide"), T = ({
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { createContext as m, useState as w, useEffect as p, useContext as c } from "react";
3
+ import { o as u } from "../styled-components.browser.esm-CZ1XM4o4.js";
4
+ import { darkTheme as f, lightTheme as h } from "../styles/theme/genesis-theme.js";
5
+ const n = m("Wide"), B = ({
7
6
  children: s,
8
7
  isDarkMode: d = !1
9
8
  }) => {
10
- const [a, e] = p("wide"), t = d ? h : k;
11
- return w(() => {
9
+ const [a, e] = w("wide"), t = d ? f : h;
10
+ return p(() => {
12
11
  const r = () => {
13
12
  const i = window.innerWidth;
14
13
  i >= t.breakpoints.extra_wide ? e("extra_wide") : i >= t.breakpoints.wide ? e("wide") : i >= t.breakpoints.medium ? e("medium") : e("narrow");
15
14
  };
16
15
  return window.addEventListener("resize", r), r(), () => window.removeEventListener("resize", r);
17
- }, []), /* @__PURE__ */ n(o.Provider, { value: a, children: /* @__PURE__ */ n(u, { theme: t, children: s }) });
18
- }, b = () => c(o), z = () => f();
16
+ }, []), /* @__PURE__ */ o(n.Provider, { value: a, children: /* @__PURE__ */ o(u, { theme: t, children: s }) });
17
+ }, C = () => c(n);
19
18
  export {
20
- T as ThemeProvider,
21
- b as useBreakpoint,
22
- z as useGenesisTheme
19
+ B as ThemeProvider,
20
+ C as useBreakpoint
23
21
  };
@@ -1,6 +1,13 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export declare const ToastProvider: React.FC<{
4
- children: React.ReactNode;
5
- }>;
6
- export declare const useToast: () => any;
3
+ export interface ToastContextType {
4
+ show: (message: string, state: string, action?: {
5
+ label: string;
6
+ onClick: unknown;
7
+ }) => void;
8
+ }
9
+ export declare const ToastContext: React.Context<ToastContextType>;
10
+ export declare const ToastProvider: ({ children }: {
11
+ children: any;
12
+ }) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const useToast: () => ToastContextType;
@@ -1,49 +1,20 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../components/Button/styles.js";
3
+ import { i as u, g as v, j as C } from "../Typography-aGoDUl4R.js";
4
+ import "../styled-components.browser.esm-CZ1XM4o4.js";
5
+ import "../components/Badge/styles.js";
6
+ import "../components/Breadcrumb/styles.js";
4
7
  import "./ThemeProvider.js";
8
+ import "../components/Button/styles.js";
5
9
  import "../components/Checkbox/styles.js";
6
10
  import "../components/ErrorBoundaryFallback/styles.js";
7
- import { c as U, u as V } from "../index-89035ea5.js";
8
11
  import "../components/Input/styles.js";
12
+ import "../components/Message/styles.js";
13
+ import "../components/Notification/styles.js";
9
14
  import "../components/Select/styles.js";
10
15
  import "../components/Typography/styles.js";
11
- import "../components/Badge/styles.js";
12
- import "../styled-components.browser.esm-02f500bc.js";
13
- import "../button-fa1c119c.js";
14
- import "../presets-83ccb923.js";
15
- import "../isVisible-729780f5.js";
16
- import "../index-4003d75b.js";
17
- import "react-dom";
18
- import "../index-e2b72ca8.js";
19
- import "../reactNode-f4391605.js";
20
- import "../Compact-c39ed20d.js";
21
- import "../presetColors-ccf8cb4c.js";
22
- import "../compact-item-b8f85aa6.js";
23
- import "../AntdIcon-c395a1c4.js";
24
- import "../styles/theme/genesis-theme.js";
25
- import "../styles/design-tokens/variables.js";
26
- import "../context-3b8a39af.js";
27
- import "../ExclamationCircleFilled-23ef9812.js";
28
- import "../CloseCircleFilled-ddc51e7e.js";
29
- import "../constants/index.js";
30
- import "../CloseOutlined-14b8bba1.js";
31
- import "../InfoCircleFilled-c5f90c20.js";
32
- import "../index-1a33c134.js";
33
- import "../index-8c8d2d0c.js";
34
- import "../pickAttrs-00ba4687.js";
35
- import "../components/Toast/styles.js";
36
- import "../collapse-345bc884.js";
37
- import "../index-0b9ee239.js";
38
- import "../ContextIsolator-b09b2c52.js";
39
- import "../CheckOutlined-52d9ac25.js";
40
- import "../TextArea-20825221.js";
41
- import "../useVariants-a0d64298.js";
42
- import "../SearchOutlined-a9014e08.js";
43
- import "../Overflow-a570fa69.js";
44
- import "../DownOutlined-64a4732a.js";
45
- import "../index-501fc13d.js";
46
16
  export {
47
- U as ToastProvider,
48
- V as useToast
17
+ u as ToastContext,
18
+ v as ToastProvider,
19
+ C as useToast
49
20
  };
@@ -1,3 +1,2 @@
1
- export { default as GenesisProvider, useGenesis } from './GenesisProvider';
2
- export { useBreakpoint, useGenesisTheme } from './ThemeProvider';
3
- export { useToast } from './ToastProvider';
1
+ export { default as GenesisProvider } from './GenesisProvider';
2
+ export { useGenesis } from './useGenesis';
@@ -1,53 +1,6 @@
1
- import { GenesisProvider as S, useGenesis as U } from "./GenesisProvider.js";
2
- import { useBreakpoint as W, useGenesisTheme as X } from "./ThemeProvider.js";
3
- import { u as Z } from "../index-89035ea5.js";
4
- import "react/jsx-runtime";
5
- import "react";
6
- import "../styled-components.browser.esm-02f500bc.js";
7
- import "../styles/theme/genesis-theme.js";
8
- import "../styles/design-tokens/variables.js";
9
- import "../constants/index.js";
10
- import "../components/Button/styles.js";
11
- import "../button-fa1c119c.js";
12
- import "../presets-83ccb923.js";
13
- import "../isVisible-729780f5.js";
14
- import "../index-4003d75b.js";
15
- import "react-dom";
16
- import "../index-e2b72ca8.js";
17
- import "../reactNode-f4391605.js";
18
- import "../Compact-c39ed20d.js";
19
- import "../presetColors-ccf8cb4c.js";
20
- import "../compact-item-b8f85aa6.js";
21
- import "../AntdIcon-c395a1c4.js";
22
- import "../components/Checkbox/styles.js";
23
- import "../context-3b8a39af.js";
24
- import "../components/ErrorBoundaryFallback/styles.js";
25
- import "../ExclamationCircleFilled-23ef9812.js";
26
- import "../CloseCircleFilled-ddc51e7e.js";
27
- import "../components/Input/styles.js";
28
- import "../TextArea-20825221.js";
29
- import "../index-8c8d2d0c.js";
30
- import "../useVariants-a0d64298.js";
31
- import "../ContextIsolator-b09b2c52.js";
32
- import "../pickAttrs-00ba4687.js";
33
- import "../SearchOutlined-a9014e08.js";
34
- import "../components/Select/styles.js";
35
- import "../index-1a33c134.js";
36
- import "../Overflow-a570fa69.js";
37
- import "../DownOutlined-64a4732a.js";
38
- import "../CheckOutlined-52d9ac25.js";
39
- import "../CloseOutlined-14b8bba1.js";
40
- import "../components/Typography/styles.js";
41
- import "../index-501fc13d.js";
42
- import "../index-0b9ee239.js";
43
- import "../components/Badge/styles.js";
44
- import "../InfoCircleFilled-c5f90c20.js";
45
- import "../components/Toast/styles.js";
46
- import "../collapse-345bc884.js";
1
+ import { GenesisProvider as s } from "./GenesisProvider.js";
2
+ import { u as i } from "../Typography-aGoDUl4R.js";
47
3
  export {
48
- S as GenesisProvider,
49
- W as useBreakpoint,
50
- U as useGenesis,
51
- X as useGenesisTheme,
52
- Z as useToast
4
+ s as GenesisProvider,
5
+ i as useGenesis
53
6
  };