@cfx-dev/ui-components 3.0.2 → 3.0.3

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 (136) hide show
  1. package/dist/Rail-DcVowhML.js +81 -0
  2. package/dist/assets/css/Accordion.css +1 -1
  3. package/dist/assets/css/Avatar.css +1 -1
  4. package/dist/assets/css/Badge.css +1 -1
  5. package/dist/assets/css/Box.css +1 -1
  6. package/dist/assets/css/Button.css +1 -1
  7. package/dist/assets/css/ButtonBar.css +1 -1
  8. package/dist/assets/css/Center.css +1 -1
  9. package/dist/assets/css/Checkbox.css +1 -1
  10. package/dist/assets/css/ClipboardButton.css +1 -1
  11. package/dist/assets/css/ControlBox.css +1 -1
  12. package/dist/assets/css/CountryFlag.css +1 -1
  13. package/dist/assets/css/Decorate.css +1 -1
  14. package/dist/assets/css/Dot.css +1 -1
  15. package/dist/assets/css/Flex.css +1 -1
  16. package/dist/assets/css/FlexRestricter.css +1 -1
  17. package/dist/assets/css/FlexShowcase.css +1 -1
  18. package/dist/assets/css/Flyout.css +1 -1
  19. package/dist/assets/css/Icon.css +1 -1
  20. package/dist/assets/css/IconBig.css +1 -1
  21. package/dist/assets/css/IconButton.css +1 -1
  22. package/dist/assets/css/Indicator.css +1 -1
  23. package/dist/assets/css/InfoPanel.css +1 -1
  24. package/dist/assets/css/Input.css +1 -1
  25. package/dist/assets/css/InputDropzone.css +1 -1
  26. package/dist/assets/css/Interactive.css +1 -1
  27. package/dist/assets/css/Island.css +1 -1
  28. package/dist/assets/css/ItemPreview.css +1 -1
  29. package/dist/assets/css/Link.css +1 -1
  30. package/dist/assets/css/Loaf.css +1 -1
  31. package/dist/assets/css/Modal.css +1 -1
  32. package/dist/assets/css/NavList.css +1 -1
  33. package/dist/assets/css/Overlay.css +1 -1
  34. package/dist/assets/css/Pad.css +1 -1
  35. package/dist/assets/css/Page.css +1 -1
  36. package/dist/assets/css/Popover.css +1 -1
  37. package/dist/assets/css/PopoverShowcase.css +1 -1
  38. package/dist/assets/css/PremiumBadge.css +1 -1
  39. package/dist/assets/css/Prose.css +1 -1
  40. package/dist/assets/css/Radio.css +1 -1
  41. package/dist/assets/css/Rail.css +1 -1
  42. package/dist/assets/css/RichInput.css +1 -1
  43. package/dist/assets/css/Select.css +1 -1
  44. package/dist/assets/css/Separator.css +1 -1
  45. package/dist/assets/css/Shroud.css +1 -1
  46. package/dist/assets/css/Skeleton.css +1 -1
  47. package/dist/assets/css/Spacer.css +1 -1
  48. package/dist/assets/css/Switch.css +1 -1
  49. package/dist/assets/css/Table.css +1 -1
  50. package/dist/assets/css/Tabular.css +1 -1
  51. package/dist/assets/css/Text.css +1 -1
  52. package/dist/assets/css/TextShowcase.css +1 -1
  53. package/dist/assets/css/Textarea.css +1 -1
  54. package/dist/assets/css/Title.css +1 -1
  55. package/dist/assets/css/ToggleGroup.css +1 -1
  56. package/dist/assets/general/global.css +1 -1
  57. package/dist/cfxIcons-BNd1WgpX.js +96 -0
  58. package/dist/components/Accordion/Accordion.js +69 -69
  59. package/dist/components/Avatar/Avatar.js +18 -18
  60. package/dist/components/Badge/Badge.js +23 -23
  61. package/dist/components/Button/Button.js +76 -76
  62. package/dist/components/Button/ButtonBar.js +6 -6
  63. package/dist/components/Checkbox/Checkbox.js +90 -85
  64. package/dist/components/ClipboardButton/ClipboardButton.js +17 -17
  65. package/dist/components/ControlBox/ControlBox.js +11 -11
  66. package/dist/components/CountryFlag/CountryFlag.js +9 -9
  67. package/dist/components/Decorate/Decorate.js +12 -12
  68. package/dist/components/Dot/Dot.js +17 -17
  69. package/dist/components/Flyout/Flyout.js +44 -44
  70. package/dist/components/Icon/Icon.js +14 -14
  71. package/dist/components/IconBig/IconBig.js +23 -18
  72. package/dist/components/IconButton/IconButton.js +25 -25
  73. package/dist/components/Icons/IconsShowcase.js +1 -1
  74. package/dist/components/Icons/cfx-icons/Cart.d.ts +5 -0
  75. package/dist/components/Icons/cfx-icons/Cart.js +42 -0
  76. package/dist/components/Icons/cfx-icons/UpvotesBurst.d.ts +5 -0
  77. package/dist/components/Icons/cfx-icons/UpvotesBurst.js +26 -0
  78. package/dist/components/Icons/cfx-icons/UpvotesRecurring.d.ts +5 -0
  79. package/dist/components/Icons/cfx-icons/UpvotesRecurring.js +26 -0
  80. package/dist/components/Icons/cfx-icons/User.d.ts +5 -0
  81. package/dist/components/Icons/cfx-icons/User.js +31 -0
  82. package/dist/components/Icons/cfx-icons/Verified.d.ts +5 -0
  83. package/dist/components/Icons/cfx-icons/Verified.js +23 -0
  84. package/dist/components/Icons/cfxIcons.d.ts +5 -0
  85. package/dist/components/Icons/cfxIcons.js +52 -42
  86. package/dist/components/Icons/index.js +1 -1
  87. package/dist/components/Indicator/Indicator.js +11 -11
  88. package/dist/components/InfoPanel/InfoPanel.js +37 -37
  89. package/dist/components/Input/Input.js +59 -59
  90. package/dist/components/Input/RichInput.js +39 -39
  91. package/dist/components/InputDropzone/InputDropzone.js +87 -87
  92. package/dist/components/InputDropzone/ItemPreview.js +17 -17
  93. package/dist/components/Interactive/Interactive.js +6 -6
  94. package/dist/components/Island/Island.js +20 -20
  95. package/dist/components/Layout/Box/Box.js +81 -81
  96. package/dist/components/Layout/Center/Center.js +14 -14
  97. package/dist/components/Layout/Flex/Flex.js +67 -67
  98. package/dist/components/Layout/Flex/FlexRestricter.js +14 -14
  99. package/dist/components/Layout/Flex/FlexShowcase.js +4 -4
  100. package/dist/components/Layout/Pad/Pad.js +34 -34
  101. package/dist/components/Layout/Page/Page.js +11 -11
  102. package/dist/components/Layout/Scrollable/Rail.js +1 -1
  103. package/dist/components/Layout/Scrollable/Scrollable.js +1 -1
  104. package/dist/components/Layout/Scrollable/VirtualScrollable.js +1 -1
  105. package/dist/components/Layout/Scrollable/index.js +1 -1
  106. package/dist/components/Link/ButtonLink.js +7 -6
  107. package/dist/components/Link/Link.js +36 -27
  108. package/dist/components/Loaf/Loaf.js +20 -20
  109. package/dist/components/Modal/Modal.js +51 -51
  110. package/dist/components/NavList/NavList.js +23 -23
  111. package/dist/components/Overlay/Overlay.js +17 -17
  112. package/dist/components/Popover/Popover.js +29 -29
  113. package/dist/components/Popover/PopoverShowcase.js +9 -9
  114. package/dist/components/PremiumBadge/PremiumBadge.js +8 -8
  115. package/dist/components/Prose/Prose.js +6 -6
  116. package/dist/components/Radio/Radio.js +32 -32
  117. package/dist/components/Select/Select.js +157 -157
  118. package/dist/components/Separator/Separator.js +31 -31
  119. package/dist/components/Shroud/Shroud.js +14 -14
  120. package/dist/components/Skeleton/Skeleton.js +10 -10
  121. package/dist/components/Spacer/Spacer.js +25 -25
  122. package/dist/components/Switch/Switch.js +43 -43
  123. package/dist/components/Table/Table.js +82 -82
  124. package/dist/components/Tabular/Tabular.js +60 -60
  125. package/dist/components/Text/Text.js +26 -26
  126. package/dist/components/Text/TextShowcase.js +19 -19
  127. package/dist/components/Textarea/Textarea.js +36 -36
  128. package/dist/components/Title/Title.js +57 -57
  129. package/dist/components/ToggleGroup/ToggleGroup.js +40 -40
  130. package/dist/main.js +2 -2
  131. package/dist/styles-scss/_ui.scss +22 -0
  132. package/dist/styles-scss/global.scss +5 -0
  133. package/dist/styles-scss/tokens.scss +5 -25
  134. package/package.json +2 -2
  135. package/dist/Rail-XT5PwAlx.js +0 -81
  136. package/dist/cfxIcons-BlbKR-zU.js +0 -86
@@ -1,12 +1,12 @@
1
- import { jsxs as we, jsx as Y } from "react/jsx-runtime";
2
- import ce, { useMemo as L, useRef as ie, useReducer as Dr, useEffect as Oe, useCallback as A, forwardRef as Ar, useImperativeHandle as wr, Fragment as Or } from "react";
1
+ import { jsxs as _e, jsx as Y } from "react/jsx-runtime";
2
+ import ce, { useMemo as L, useRef as ie, useReducer as Dr, useEffect as we, useCallback as A, forwardRef as Ar, useImperativeHandle as _r, Fragment as wr } from "react";
3
3
  import { P as l } from "../../index-DQMInta3.js";
4
4
  import { a as M, b as $, c as We, d as Be } from "../../tslib.es6-CBKHJX9H.js";
5
- import { IconBig as Fr } from "../IconBig/IconBig.js";
5
+ import { IconBig as Or } from "../IconBig/IconBig.js";
6
6
  import { Text as Ue } from "../Text/Text.js";
7
- import { clsx as Er } from "../../utils/clsx.js";
7
+ import { clsx as Fr } from "../../utils/clsx.js";
8
8
  import Ye from "./ItemPreview.js";
9
- var _r = /* @__PURE__ */ new Map([
9
+ var xr = /* @__PURE__ */ new Map([
10
10
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
11
11
  ["aac", "audio/aac"],
12
12
  ["abw", "application/x-abiword"],
@@ -91,7 +91,7 @@ var _r = /* @__PURE__ */ new Map([
91
91
  ["msg", "application/vnd.ms-outlook"]
92
92
  ]);
93
93
  function q(e, r) {
94
- var t = xr(e);
94
+ var t = Er(e);
95
95
  if (typeof t.path != "string") {
96
96
  var n = e.webkitRelativePath;
97
97
  Object.defineProperty(t, "path", {
@@ -103,10 +103,10 @@ function q(e, r) {
103
103
  }
104
104
  return t;
105
105
  }
106
- function xr(e) {
106
+ function Er(e) {
107
107
  var r = e.name, t = r && r.lastIndexOf(".") !== -1;
108
108
  if (t && !e.type) {
109
- var n = r.split(".").pop().toLowerCase(), i = _r.get(n);
109
+ var n = r.split(".").pop().toLowerCase(), i = xr.get(n);
110
110
  i && Object.defineProperty(e, "type", {
111
111
  value: i,
112
112
  writable: !1,
@@ -141,7 +141,7 @@ function ue(e) {
141
141
  return typeof e == "object" && e !== null;
142
142
  }
143
143
  function Tr(e) {
144
- return Ee(e.target.files).map(function(r) {
144
+ return Fe(e.target.files).map(function(r) {
145
145
  return q(r);
146
146
  });
147
147
  }
@@ -168,13 +168,13 @@ function Sr(e, r) {
168
168
  return $(this, function(i) {
169
169
  switch (i.label) {
170
170
  case 0:
171
- return e.items ? (t = Ee(e.items).filter(function(a) {
171
+ return e.items ? (t = Fe(e.items).filter(function(a) {
172
172
  return a.kind === "file";
173
- }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(kr))]) : [3, 2];
173
+ }), r !== "drop" ? [2, t] : [4, Promise.all(t.map(zr))]) : [3, 2];
174
174
  case 1:
175
175
  return n = i.sent(), [2, Ge(nr(n))];
176
176
  case 2:
177
- return [2, Ge(Ee(e.files).map(function(a) {
177
+ return [2, Ge(Fe(e.files).map(function(a) {
178
178
  return q(a);
179
179
  }))];
180
180
  }
@@ -186,7 +186,7 @@ function Ge(e) {
186
186
  return jr.indexOf(r.name) === -1;
187
187
  });
188
188
  }
189
- function Ee(e) {
189
+ function Fe(e) {
190
190
  if (e === null)
191
191
  return [];
192
192
  for (var r = [], t = 0; t < e.length; t++) {
@@ -195,7 +195,7 @@ function Ee(e) {
195
195
  }
196
196
  return r;
197
197
  }
198
- function kr(e) {
198
+ function zr(e) {
199
199
  if (typeof e.webkitGetAsEntry != "function")
200
200
  return qe(e);
201
201
  var r = e.webkitGetAsEntry();
@@ -213,7 +213,7 @@ function qe(e) {
213
213
  var t = q(r);
214
214
  return Promise.resolve(t);
215
215
  }
216
- function zr(e) {
216
+ function kr(e) {
217
217
  return M(this, void 0, void 0, function() {
218
218
  return $(this, function(r) {
219
219
  return [2, e.isDirectory ? or(e) : Lr(e)];
@@ -228,7 +228,7 @@ function or(e) {
228
228
  var s = this;
229
229
  r.readEntries(function(u) {
230
230
  return M(s, void 0, void 0, function() {
231
- var p, w, O;
231
+ var p, _, w;
232
232
  return $(this, function(g) {
233
233
  switch (g.label) {
234
234
  case 0:
@@ -239,11 +239,11 @@ function or(e) {
239
239
  case 2:
240
240
  return p = g.sent(), t(p), [3, 4];
241
241
  case 3:
242
- return w = g.sent(), n(w), [3, 4];
242
+ return _ = g.sent(), n(_), [3, 4];
243
243
  case 4:
244
244
  return [3, 6];
245
245
  case 5:
246
- O = Promise.all(u.map(zr)), i.push(O), a(), g.label = 6;
246
+ w = Promise.all(u.map(kr)), i.push(w), a(), g.label = 6;
247
247
  case 6:
248
248
  return [
249
249
  2
@@ -294,7 +294,7 @@ function Kr(e) {
294
294
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
295
295
  }
296
296
  function Nr(e) {
297
- if (Array.isArray(e)) return _e(e);
297
+ if (Array.isArray(e)) return xe(e);
298
298
  }
299
299
  function Ve(e, r) {
300
300
  var t = Object.keys(e);
@@ -329,13 +329,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
329
329
  }
330
330
  function ar(e, r) {
331
331
  if (e) {
332
- if (typeof e == "string") return _e(e, r);
332
+ if (typeof e == "string") return xe(e, r);
333
333
  var t = Object.prototype.toString.call(e).slice(8, -1);
334
334
  if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
335
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return _e(e, r);
335
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return xe(e, r);
336
336
  }
337
337
  }
338
- function _e(e, r) {
338
+ function xe(e, r) {
339
339
  (r == null || r > e.length) && (r = e.length);
340
340
  for (var t = 0, n = new Array(r); t < r; t++)
341
341
  n[t] = e[t];
@@ -405,7 +405,7 @@ function T(e) {
405
405
  function Qr(e) {
406
406
  var r = e.files, t = e.accept, n = e.minSize, i = e.maxSize, a = e.multiple, s = e.maxFiles, u = e.validator;
407
407
  return !a && r.length > 1 || a && s >= 1 && r.length > s ? !1 : r.every(function(p) {
408
- var w = cr(p, t), O = G(w, 1), g = O[0], _ = ur(p, n, i), x = G(_, 1), j = x[0], P = u ? u(p) : null;
408
+ var _ = cr(p, t), w = G(_, 1), g = w[0], x = ur(p, n, i), E = G(x, 1), j = E[0], P = u ? u(p) : null;
409
409
  return g && j && !P;
410
410
  });
411
411
  }
@@ -430,7 +430,7 @@ function et() {
430
430
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
431
431
  return Xr(e) || Zr(e);
432
432
  }
433
- function F() {
433
+ function O() {
434
434
  for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
435
435
  r[t] = arguments[t];
436
436
  return function(n) {
@@ -494,9 +494,9 @@ function pt(e) {
494
494
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
495
495
  }
496
496
  function dt(e) {
497
- if (Array.isArray(e)) return xe(e);
497
+ if (Array.isArray(e)) return Ee(e);
498
498
  }
499
- function Fe(e, r) {
499
+ function Oe(e, r) {
500
500
  return vt(e) || gt(e, r) || fr(e, r) || mt();
501
501
  }
502
502
  function mt() {
@@ -505,13 +505,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
505
505
  }
506
506
  function fr(e, r) {
507
507
  if (e) {
508
- if (typeof e == "string") return xe(e, r);
508
+ if (typeof e == "string") return Ee(e, r);
509
509
  var t = Object.prototype.toString.call(e).slice(8, -1);
510
510
  if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
511
- if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return xe(e, r);
511
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Ee(e, r);
512
512
  }
513
513
  }
514
- function xe(e, r) {
514
+ function Ee(e, r) {
515
515
  (r == null || r > e.length) && (r = e.length);
516
516
  for (var t = 0, n = new Array(r); t < r; t++)
517
517
  n[t] = e[t];
@@ -582,11 +582,11 @@ function yt(e, r) {
582
582
  }
583
583
  var Ie = /* @__PURE__ */ Ar(function(e, r) {
584
584
  var t = e.children, n = le(e, at), i = dr(n), a = i.open, s = le(i, ct);
585
- return wr(r, function() {
585
+ return _r(r, function() {
586
586
  return {
587
587
  open: a
588
588
  };
589
- }, [a]), /* @__PURE__ */ ce.createElement(Or, null, t(f(f({}, s), {}, {
589
+ }, [a]), /* @__PURE__ */ ce.createElement(wr, null, t(f(f({}, s), {}, {
590
590
  open: a
591
591
  })));
592
592
  });
@@ -786,7 +786,7 @@ var Pe = {
786
786
  fileRejections: []
787
787
  };
788
788
  function dr() {
789
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = f(f({}, pr), e), t = r.accept, n = r.disabled, i = r.getFilesFromEvent, a = r.maxSize, s = r.minSize, u = r.multiple, p = r.maxFiles, w = r.onDragEnter, O = r.onDragLeave, g = r.onDragOver, _ = r.onDrop, x = r.onDropAccepted, j = r.onDropRejected, P = r.onFileDialogCancel, K = r.onFileDialogOpen, J = r.useFsAccessApi, V = r.autoFocus, N = r.preventDropOnDocument, Q = r.noClick, H = r.noKeyboard, h = r.noDrag, I = r.noDragEventsBubbling, fe = r.onError, W = r.validator, B = L(function() {
789
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = f(f({}, pr), e), t = r.accept, n = r.disabled, i = r.getFilesFromEvent, a = r.maxSize, s = r.minSize, u = r.multiple, p = r.maxFiles, _ = r.onDragEnter, w = r.onDragLeave, g = r.onDragOver, x = r.onDrop, E = r.onDropAccepted, j = r.onDropRejected, P = r.onFileDialogCancel, K = r.onFileDialogOpen, J = r.useFsAccessApi, V = r.autoFocus, N = r.preventDropOnDocument, Q = r.noClick, H = r.noKeyboard, h = r.noDrag, I = r.noDragEventsBubbling, fe = r.onError, W = r.validator, B = L(function() {
790
790
  return nt(t);
791
791
  }, [t]), Ce = L(function() {
792
792
  return tt(t);
@@ -794,7 +794,7 @@ function dr() {
794
794
  return typeof K == "function" ? K : tr;
795
795
  }, [K]), X = L(function() {
796
796
  return typeof P == "function" ? P : tr;
797
- }, [P]), v = ie(null), D = ie(null), mr = Dr(bt, Pe), Te = Fe(mr, 2), de = Te[0], y = Te[1], gr = de.isFocused, Re = de.isFileDialogActive, Z = ie(typeof window < "u" && window.isSecureContext && J && rt()), Se = function() {
797
+ }, [P]), v = ie(null), D = ie(null), mr = Dr(bt, Pe), Te = Oe(mr, 2), de = Te[0], y = Te[1], gr = de.isFocused, Re = de.isFileDialogActive, Z = ie(typeof window < "u" && window.isSecureContext && J && rt()), Se = function() {
798
798
  !Z.current && Re && setTimeout(function() {
799
799
  if (D.current) {
800
800
  var c = D.current.files;
@@ -804,25 +804,25 @@ function dr() {
804
804
  }
805
805
  }, 300);
806
806
  };
807
- Oe(function() {
807
+ we(function() {
808
808
  return window.addEventListener("focus", Se, !1), function() {
809
809
  window.removeEventListener("focus", Se, !1);
810
810
  };
811
811
  }, [D, Re, X, Z]);
812
- var R = ie([]), ke = function(c) {
812
+ var R = ie([]), ze = function(c) {
813
813
  v.current && v.current.contains(c.target) || (c.preventDefault(), R.current = []);
814
814
  };
815
- Oe(function() {
816
- return N && (document.addEventListener("dragover", er, !1), document.addEventListener("drop", ke, !1)), function() {
817
- N && (document.removeEventListener("dragover", er), document.removeEventListener("drop", ke));
815
+ we(function() {
816
+ return N && (document.addEventListener("dragover", er, !1), document.addEventListener("drop", ze, !1)), function() {
817
+ N && (document.removeEventListener("dragover", er), document.removeEventListener("drop", ze));
818
818
  };
819
- }, [v, N]), Oe(function() {
819
+ }, [v, N]), we(function() {
820
820
  return !n && V && v.current && v.current.focus(), function() {
821
821
  };
822
822
  }, [v, V, n]);
823
823
  var C = A(function(o) {
824
824
  fe ? fe(o) : console.error(o);
825
- }, [fe]), ze = A(function(o) {
825
+ }, [fe]), ke = A(function(o) {
826
826
  o.preventDefault(), o.persist(), ne(o), R.current = [].concat(lt(R.current), [o.target]), ae(o) && Promise.resolve(i(o)).then(function(c) {
827
827
  if (!(se(o) && !I)) {
828
828
  var d = c.length, m = d > 0 && Qr({
@@ -839,12 +839,12 @@ function dr() {
839
839
  isDragReject: b,
840
840
  isDragActive: !0,
841
841
  type: "setDraggedFiles"
842
- }), w && w(o);
842
+ }), _ && _(o);
843
843
  }
844
844
  }).catch(function(c) {
845
845
  return C(c);
846
846
  });
847
- }, [i, w, C, I, B, s, a, u, p, W]), Le = A(function(o) {
847
+ }, [i, _, C, I, B, s, a, u, p, W]), Le = A(function(o) {
848
848
  o.preventDefault(), o.persist(), ne(o);
849
849
  var c = ae(o);
850
850
  if (c && o.dataTransfer)
@@ -863,11 +863,11 @@ function dr() {
863
863
  isDragActive: !1,
864
864
  isDragAccept: !1,
865
865
  isDragReject: !1
866
- }), ae(o) && O && O(o));
867
- }, [v, O, I]), ee = A(function(o, c) {
866
+ }), ae(o) && w && w(o));
867
+ }, [v, w, I]), ee = A(function(o, c) {
868
868
  var d = [], m = [];
869
869
  o.forEach(function(b) {
870
- var U = cr(b, B), z = Fe(U, 2), ge = z[0], ve = z[1], ye = ur(b, s, a), oe = Fe(ye, 2), be = oe[0], he = oe[1], De = W ? W(b) : null;
870
+ var U = cr(b, B), k = Oe(U, 2), ge = k[0], ve = k[1], ye = ur(b, s, a), oe = Oe(ye, 2), be = oe[0], he = oe[1], De = W ? W(b) : null;
871
871
  if (ge && be && !De)
872
872
  d.push(b);
873
873
  else {
@@ -888,8 +888,8 @@ function dr() {
888
888
  acceptedFiles: d,
889
889
  fileRejections: m,
890
890
  type: "setFiles"
891
- }), _ && _(d, m, c), m.length > 0 && j && j(m, c), d.length > 0 && x && x(d, c);
892
- }, [y, u, B, s, a, p, _, x, j, W]), re = A(function(o) {
891
+ }), x && x(d, m, c), m.length > 0 && j && j(m, c), d.length > 0 && E && E(d, c);
892
+ }, [y, u, B, s, a, p, x, E, j, W]), re = A(function(o) {
893
893
  o.preventDefault(), o.persist(), ne(o), R.current = [], ae(o) && Promise.resolve(i(o)).then(function(c) {
894
894
  se(o) && !I || ee(c, o);
895
895
  }).catch(function(c) {
@@ -934,47 +934,47 @@ function dr() {
934
934
  });
935
935
  }, []), He = A(function() {
936
936
  Q || (et() ? setTimeout(S, 0) : S());
937
- }, [Q, S]), k = function(c) {
937
+ }, [Q, S]), z = function(c) {
938
938
  return n ? null : c;
939
939
  }, me = function(c) {
940
- return H ? null : k(c);
940
+ return H ? null : z(c);
941
941
  }, te = function(c) {
942
- return h ? null : k(c);
942
+ return h ? null : z(c);
943
943
  }, ne = function(c) {
944
944
  I && c.stopPropagation();
945
945
  }, vr = L(function() {
946
946
  return function() {
947
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, d = c === void 0 ? "ref" : c, m = o.role, b = o.onKeyDown, U = o.onFocus, z = o.onBlur, ge = o.onClick, ve = o.onDragEnter, ye = o.onDragOver, oe = o.onDragLeave, be = o.onDrop, he = le(o, ut);
947
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, d = c === void 0 ? "ref" : c, m = o.role, b = o.onKeyDown, U = o.onFocus, k = o.onBlur, ge = o.onClick, ve = o.onDragEnter, ye = o.onDragOver, oe = o.onDragLeave, be = o.onDrop, he = le(o, ut);
948
948
  return f(f(je({
949
- onKeyDown: me(F(b, $e)),
950
- onFocus: me(F(U, Ke)),
951
- onBlur: me(F(z, Ne)),
952
- onClick: k(F(ge, He)),
953
- onDragEnter: te(F(ve, ze)),
954
- onDragOver: te(F(ye, Le)),
955
- onDragLeave: te(F(oe, Me)),
956
- onDrop: te(F(be, re)),
949
+ onKeyDown: me(O(b, $e)),
950
+ onFocus: me(O(U, Ke)),
951
+ onBlur: me(O(k, Ne)),
952
+ onClick: z(O(ge, He)),
953
+ onDragEnter: te(O(ve, ke)),
954
+ onDragOver: te(O(ye, Le)),
955
+ onDragLeave: te(O(oe, Me)),
956
+ onDrop: te(O(be, re)),
957
957
  role: typeof m == "string" && m !== "" ? m : "presentation"
958
958
  }, d, v), !n && !H ? {
959
959
  tabIndex: 0
960
960
  } : {}), he);
961
961
  };
962
- }, [v, $e, Ke, Ne, He, ze, Le, Me, re, H, h, n]), yr = A(function(o) {
962
+ }, [v, $e, Ke, Ne, He, ke, Le, Me, re, H, h, n]), yr = A(function(o) {
963
963
  o.stopPropagation();
964
964
  }, []), br = L(function() {
965
965
  return function() {
966
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, d = c === void 0 ? "ref" : c, m = o.onChange, b = o.onClick, U = le(o, st), z = je({
966
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, d = c === void 0 ? "ref" : c, m = o.onChange, b = o.onClick, U = le(o, st), k = je({
967
967
  accept: B,
968
968
  multiple: u,
969
969
  type: "file",
970
970
  style: {
971
971
  display: "none"
972
972
  },
973
- onChange: k(F(m, re)),
974
- onClick: k(F(b, yr)),
973
+ onChange: z(O(m, re)),
974
+ onClick: z(O(b, yr)),
975
975
  tabIndex: -1
976
976
  }, d, D);
977
- return f(f({}, z), U);
977
+ return f(f({}, k), U);
978
978
  };
979
979
  }, [D, t, u, re, n]);
980
980
  return f(f({}, de), {}, {
@@ -983,7 +983,7 @@ function dr() {
983
983
  getInputProps: br,
984
984
  rootRef: v,
985
985
  inputRef: D,
986
- open: k(S)
986
+ open: z(S)
987
987
  });
988
988
  }
989
989
  function bt(e, r) {
@@ -1023,14 +1023,14 @@ function bt(e, r) {
1023
1023
  }
1024
1024
  function tr() {
1025
1025
  }
1026
- const ht = "_dropzone_1kj2k_1", Dt = "_text_1kj2k_18", At = "_disabled_1kj2k_24", wt = "_focused_1kj2k_38", Ot = "_dragActive_1kj2k_38", E = {
1026
+ const ht = "cfxui__InputDropzone__dropzone__bde8d", Dt = "cfxui__InputDropzone__text__47997", At = "cfxui__InputDropzone__disabled__168e8", _t = "cfxui__InputDropzone__focused__0bbd6", wt = "cfxui__InputDropzone__dragActive__096b2", F = {
1027
1027
  dropzone: ht,
1028
1028
  text: Dt,
1029
1029
  disabled: At,
1030
- focused: wt,
1031
- dragActive: Ot
1030
+ focused: _t,
1031
+ dragActive: wt
1032
1032
  };
1033
- function Ft(e) {
1033
+ function Ot(e) {
1034
1034
  const {
1035
1035
  value: r = [],
1036
1036
  rejections: t = [],
@@ -1040,12 +1040,12 @@ function Ft(e) {
1040
1040
  rootAriaLabel: s = "",
1041
1041
  onRemoveFile: u,
1042
1042
  onRemoveRejection: p,
1043
- dropzoneItemClassName: w,
1044
- dropzoneClassName: O,
1043
+ dropzoneItemClassName: _,
1044
+ dropzoneClassName: w,
1045
1045
  ...g
1046
1046
  } = e, {
1047
- isFocused: _,
1048
- isDragActive: x,
1047
+ isFocused: x,
1048
+ isDragActive: E,
1049
1049
  isDragAccept: j,
1050
1050
  isDragReject: P,
1051
1051
  isFileDialogActive: K,
@@ -1055,16 +1055,16 @@ function Ft(e) {
1055
1055
  u && u(h);
1056
1056
  }, [u]), Q = ce.useCallback((h) => {
1057
1057
  p && p(h);
1058
- }, [p]), H = Er(E.dropzone, O, {
1059
- [E.disabled]: g.disabled,
1060
- [E.focused]: _,
1061
- [E.dragActive]: x,
1062
- [E.dragAccept]: j,
1063
- [E.dragReject]: P,
1064
- [E.fileDialogActive]: K
1058
+ }, [p]), H = Fr(F.dropzone, w, {
1059
+ [F.disabled]: g.disabled,
1060
+ [F.focused]: x,
1061
+ [F.dragActive]: E,
1062
+ [F.dragAccept]: j,
1063
+ [F.dragReject]: P,
1064
+ [F.fileDialogActive]: K
1065
1065
  });
1066
- return /* @__PURE__ */ we("section", { children: [
1067
- /* @__PURE__ */ we(
1066
+ return /* @__PURE__ */ _e("section", { children: [
1067
+ /* @__PURE__ */ _e(
1068
1068
  "div",
1069
1069
  {
1070
1070
  className: H,
@@ -1073,8 +1073,8 @@ function Ft(e) {
1073
1073
  }),
1074
1074
  children: [
1075
1075
  /* @__PURE__ */ Y("input", { ...V() }),
1076
- /* @__PURE__ */ Y(Fr, { name: "Upload" }),
1077
- /* @__PURE__ */ we(Ue, { className: E.text, children: [
1076
+ /* @__PURE__ */ Y(Or, { name: "Upload" }),
1077
+ /* @__PURE__ */ _e(Ue, { className: F.text, children: [
1078
1078
  i ? `${n} ` : n,
1079
1079
  !!i && /* @__PURE__ */ Y(
1080
1080
  Ue,
@@ -1095,7 +1095,7 @@ function Ft(e) {
1095
1095
  removeAriaLabel: a,
1096
1096
  file: h,
1097
1097
  onRemoveFile: N,
1098
- className: w
1098
+ className: _
1099
1099
  },
1100
1100
  h.path
1101
1101
  )),
@@ -1108,13 +1108,13 @@ function Ft(e) {
1108
1108
  removeAriaLabel: a,
1109
1109
  file: h,
1110
1110
  onRemoveFile: Q,
1111
- className: w
1111
+ className: _
1112
1112
  },
1113
1113
  h.path
1114
1114
  ))
1115
1115
  ] });
1116
1116
  }
1117
- const Rt = ce.memo(Ft);
1117
+ const Rt = ce.memo(Ot);
1118
1118
  export {
1119
1119
  Rt as default
1120
1120
  };
@@ -1,29 +1,29 @@
1
- import { jsxs as n, jsx as s } from "react/jsx-runtime";
2
- import e from "react";
1
+ import { jsxs as l, jsx as c } from "react/jsx-runtime";
2
+ import a from "react";
3
3
  import f from "../IconButton/IconButton.js";
4
- import { Text as d } from "../Text/Text.js";
5
- import { clsx as _ } from "../../utils/clsx.js";
6
- const h = "_root_1v0i1_1", p = "_failed_1v0i1_12", u = "_filePath_1v0i1_15", a = {
7
- root: h,
8
- failed: p,
9
- filePath: u
4
+ import { Text as n } from "../Text/Text.js";
5
+ import { clsx as d } from "../../utils/clsx.js";
6
+ const u = "cfxui__ItemPreview__root__bb9bc", h = "cfxui__ItemPreview__failed__98fb7", p = "cfxui__ItemPreview__filePath__54877", o = {
7
+ root: u,
8
+ failed: h,
9
+ filePath: p
10
10
  };
11
11
  function P({
12
12
  file: t,
13
13
  onRemoveFile: r,
14
- removeAriaLabel: o = "",
14
+ removeAriaLabel: e = "",
15
15
  className: i,
16
- theme: c = "default"
16
+ theme: s = "default"
17
17
  }) {
18
- const l = e.useCallback(() => {
18
+ const m = a.useCallback(() => {
19
19
  r(t);
20
- }, [t, r]), m = e.useMemo(() => `${o}${o ? ", " : ""}${t.path}`, [o, t.path]);
21
- return /* @__PURE__ */ n("div", { className: _(a.root, a[c], i), children: [
22
- /* @__PURE__ */ s(d, { family: "secondary", className: a.filePath, children: t.path }),
23
- /* @__PURE__ */ s(f, { areaSize: "large", ariaLabel: m, name: "Close", onClick: l })
20
+ }, [t, r]), _ = a.useMemo(() => `${e}${e ? ", " : ""}${t.path}`, [e, t.path]);
21
+ return /* @__PURE__ */ l("div", { className: d(o.root, o[s], i), children: [
22
+ /* @__PURE__ */ c(n, { family: "secondary", className: o.filePath, children: t.path }),
23
+ /* @__PURE__ */ c(f, { areaSize: "large", ariaLabel: _, name: "Close", onClick: m })
24
24
  ] });
25
25
  }
26
- const I = e.memo(P);
26
+ const $ = a.memo(P);
27
27
  export {
28
- I as default
28
+ $ as default
29
29
  };
@@ -1,19 +1,19 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import i from "react";
3
3
  import { clsx as m } from "../../utils/clsx.js";
4
- const f = "_root_1o2df_1", l = {
4
+ const f = "cfxui__Interactive__root__83e14", l = {
5
5
  root: f
6
- }, h = i.forwardRef(function(o, t) {
6
+ }, v = i.forwardRef(function(o, t) {
7
7
  const {
8
8
  showPointer: r = !0,
9
9
  className: e,
10
- as: s = "div",
11
- ...n
10
+ as: n = "div",
11
+ ...s
12
12
  } = o, c = m(e, {
13
13
  [l.root]: r
14
14
  });
15
- return /* @__PURE__ */ a(s, { ref: t, className: c, ...n, children: o.children });
15
+ return /* @__PURE__ */ a(n, { ref: t, className: c, ...s, children: o.children });
16
16
  });
17
17
  export {
18
- h as Interactive
18
+ v as Interactive
19
19
  };
@@ -1,34 +1,34 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import b from "react";
1
+ import { jsx as b } from "react/jsx-runtime";
2
+ import g from "react";
3
3
  import { ui as p } from "../ui.js";
4
4
  import { clsx as h } from "../../utils/clsx.js";
5
- const w = "_root_mdgcu_1", R = "_grow_mdgcu_15", t = {
6
- root: w,
7
- grow: R,
8
- "no-round-border-top-left": "_no-round-border-top-left_mdgcu_19",
9
- "no-round-border-top-right": "_no-round-border-top-right_mdgcu_22",
10
- "no-round-border-bottom-left": "_no-round-border-bottom-left_mdgcu_25",
11
- "no-round-border-bottom-right": "_no-round-border-bottom-right_mdgcu_28"
5
+ const n = "cfxui__Island__root__24fd9", s = "cfxui__Island__grow__c1786", t = {
6
+ root: n,
7
+ grow: s,
8
+ "no-round-border-top-left": "cfxui__Island__no-round-border-top-left__599e3",
9
+ "no-round-border-top-right": "cfxui__Island__no-round-border-top-right__83fe5",
10
+ "no-round-border-bottom-left": "cfxui__Island__no-round-border-bottom-left__8d1c9",
11
+ "no-round-border-bottom-right": "cfxui__Island__no-round-border-bottom-right__f8472"
12
12
  };
13
- var B = /* @__PURE__ */ ((o) => (o[o.TopLeft = 1] = "TopLeft", o[o.TopRight = 2] = "TopRight", o[o.BottomLeft = 4] = "BottomLeft", o[o.BottomRight = 8] = "BottomRight", o[o.Top = 3] = "Top", o[o.Left = 5] = "Left", o[o.Right = 10] = "Right", o[o.Bottom = 12] = "Bottom", o[o.All = 15] = "All", o))(B || {});
14
- const l = b.forwardRef(function(i, u) {
13
+ var l = /* @__PURE__ */ ((o) => (o[o.TopLeft = 1] = "TopLeft", o[o.TopRight = 2] = "TopRight", o[o.BottomLeft = 4] = "BottomLeft", o[o.BottomRight = 8] = "BottomRight", o[o.Top = 3] = "Top", o[o.Left = 5] = "Left", o[o.Right = 10] = "Right", o[o.Bottom = 12] = "Bottom", o[o.All = 15] = "All", o))(l || {});
14
+ const L = g.forwardRef(function(i, d) {
15
15
  const {
16
- grow: f = !1,
17
- widthQ: m = 0,
16
+ grow: m = !1,
17
+ widthQ: _ = 0,
18
18
  straightCorner: r = 0,
19
- children: d,
19
+ children: u,
20
20
  className: e
21
- } = i, _ = h(t.root, e, {
22
- [t.grow]: f,
21
+ } = i, c = h(t.root, e, {
22
+ [t.grow]: m,
23
23
  [t["no-round-border-top-left"]]: r & 1,
24
24
  [t["no-round-border-top-right"]]: r & 2,
25
25
  [t["no-round-border-bottom-left"]]: r & 4,
26
26
  [t["no-round-border-bottom-right"]]: r & 8
27
27
  /* BottomRight */
28
- }), g = {};
29
- return m > 0 && (g.width = p.q(m)), /* @__PURE__ */ c("div", { className: _, style: g, ref: u, children: d });
28
+ }), f = {};
29
+ return _ > 0 && (f.width = p.q(_)), /* @__PURE__ */ b("div", { className: c, style: f, ref: d, children: u });
30
30
  });
31
31
  export {
32
- l as Island,
33
- B as IslandCorner
32
+ L as Island,
33
+ l as IslandCorner
34
34
  };