@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,109 +1,109 @@
1
- import { jsx as r, jsxs as W, Fragment as g } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as W, Fragment as g } from "react/jsx-runtime";
2
2
  import m from "react";
3
3
  import { Icon as A } from "../Icon/Icon.js";
4
- import { clsx as B } from "../../utils/clsx.js";
5
- import { noop as y } from "../../utils/functional.js";
6
- const q = "_unsetAll_13zdy_1", I = "_root_13zdy_5", M = "_fullWidth_13zdy_38", j = "_primary_13zdy_58", w = "_secondary_13zdy_79", F = "_linked_13zdy_121", R = "_quicklink_13zdy_150", v = "_icon_13zdy_157", D = "_icononly_13zdy_182", L = "_decorator_13zdy_187", o = {
7
- unsetAll: q,
8
- root: I,
9
- fullWidth: M,
10
- primary: j,
11
- secondary: w,
12
- "on-light": "_on-light_13zdy_100",
13
- linked: F,
14
- quicklink: R,
15
- icon: v,
16
- icononly: D,
17
- decorator: L
4
+ import { clsx as q } from "../../utils/clsx.js";
5
+ import { noop as x } from "../../utils/functional.js";
6
+ const I = "cfxui__Button__unsetAll__44b96", M = "cfxui__Button__root__e2ace", j = "cfxui__Button__fullWidth__f61d9", w = "cfxui__Button__primary__1c59f", F = "cfxui__Button__secondary__b2b84", R = "cfxui__Button__linked__330cb", v = "cfxui__Button__quicklink__204ac", D = "cfxui__Button__icon__44e51", L = "cfxui__Button__icononly__4f786", U = "cfxui__Button__decorator__39a9b", t = {
7
+ unsetAll: I,
8
+ root: M,
9
+ fullWidth: j,
10
+ primary: w,
11
+ secondary: F,
12
+ "on-light": "cfxui__Button__on-light__ae69c",
13
+ linked: R,
14
+ quicklink: v,
15
+ icon: D,
16
+ icononly: L,
17
+ decorator: U
18
18
  };
19
- function U(c) {
19
+ function z(l) {
20
20
  const {
21
- text: t = null,
22
- icon: l,
21
+ text: o = null,
22
+ icon: e,
23
23
  decorator: n = null
24
- } = c;
24
+ } = l;
25
25
  return /* @__PURE__ */ W(g, { children: [
26
- t,
27
- !!l && /* @__PURE__ */ r(A, { name: l, className: o.icon }),
28
- !!n && /* @__PURE__ */ r("div", { className: o.decorator, children: n })
26
+ o,
27
+ !!e && /* @__PURE__ */ a(A, { name: e, className: t.icon }),
28
+ !!n && /* @__PURE__ */ a("div", { className: t.decorator, children: n })
29
29
  ] });
30
30
  }
31
- function E(c) {
31
+ function E(l) {
32
32
  const {
33
- text: t = null,
34
- icon: l,
33
+ text: o = null,
34
+ icon: e,
35
35
  theme: n = "default",
36
- disabled: s = !1,
37
- className: d = "",
38
- autofocus: u = !1,
39
- fullWidth: a = !1,
36
+ disabled: u = !1,
37
+ className: s = "",
38
+ autofocus: r = !1,
39
+ fullWidth: _ = !1,
40
40
  tabIndex: i
41
- } = c;
42
- return B(o.unsetAll, o.root, o[n], d, {
43
- [o.disabled]: s,
44
- [o.icononly]: !!l && (t === null || typeof t > "u"),
45
- [o.text]: !!t,
46
- [o.autofocus]: u || typeof i < "u",
47
- [o.fullWidth]: a
41
+ } = l;
42
+ return q(t.unsetAll, t.root, t[n], s, {
43
+ [t.disabled]: u,
44
+ [t.icononly]: !!e && (o === null || typeof o > "u"),
45
+ [t.text]: !!o,
46
+ [t.autofocus]: r || typeof i < "u",
47
+ [t.fullWidth]: _
48
48
  });
49
49
  }
50
- const P = m.forwardRef(function(t, l) {
50
+ const P = m.forwardRef(function(o, e) {
51
51
  const {
52
52
  text: n = null,
53
- icon: s,
54
- title: d = "",
55
- type: u = "button",
56
- className: a = "",
53
+ icon: u,
54
+ title: s = "",
55
+ type: r = "button",
56
+ className: _ = "",
57
57
  theme: i = "default",
58
- disabled: e = !1,
59
- onClick: h = y,
60
- onMouseDown: p = y,
61
- onMouseUp: z = y,
62
- autofocus: _ = !1,
63
- tabIndex: f,
64
- fullWidth: k = !1,
65
- ariaLabel: b = ""
66
- } = t, x = m.useMemo(() => E({
58
+ disabled: c = !1,
59
+ onClick: b = x,
60
+ onMouseDown: h = x,
61
+ onMouseUp: k = x,
62
+ autofocus: f = !1,
63
+ tabIndex: d,
64
+ fullWidth: B = !1,
65
+ ariaLabel: y = ""
66
+ } = o, p = m.useMemo(() => E({
67
67
  text: n,
68
- icon: s,
68
+ icon: u,
69
69
  theme: i,
70
- disabled: e,
71
- className: a,
72
- autofocus: _,
73
- fullWidth: k,
74
- tabIndex: f
70
+ disabled: c,
71
+ className: _,
72
+ autofocus: f,
73
+ fullWidth: B,
74
+ tabIndex: d
75
75
  }), [
76
- _,
77
- a,
78
- k,
79
- e,
80
- s,
81
76
  f,
77
+ _,
78
+ B,
79
+ c,
80
+ u,
81
+ d,
82
82
  n,
83
83
  i
84
84
  ]), C = m.useCallback((N) => {
85
- e || h(N);
86
- }, [e, h]);
87
- return /* @__PURE__ */ r(
85
+ c || b(N);
86
+ }, [c, b]);
87
+ return /* @__PURE__ */ a(
88
88
  "button",
89
89
  {
90
- ref: l,
91
- disabled: e,
92
- className: x,
90
+ ref: e,
91
+ disabled: c,
92
+ className: p,
93
93
  onClick: C,
94
- onMouseDown: p,
95
- onMouseUp: z,
96
- autoFocus: _,
97
- tabIndex: f,
98
- title: d,
99
- type: u,
100
- "aria-label": b,
101
- children: /* @__PURE__ */ r(U, { ...t })
94
+ onMouseDown: h,
95
+ onMouseUp: k,
96
+ autoFocus: f,
97
+ tabIndex: d,
98
+ title: s,
99
+ type: r,
100
+ "aria-label": y,
101
+ children: /* @__PURE__ */ a(z, { ...o })
102
102
  }
103
103
  );
104
104
  });
105
105
  export {
106
106
  P as Button,
107
- U as ButtonContent,
107
+ z as ButtonContent,
108
108
  E as getButtonClassName
109
109
  };
@@ -1,6 +1,6 @@
1
- import { jsx as c } from "react/jsx-runtime";
1
+ import { jsx as a } from "react/jsx-runtime";
2
2
  import { clsx as o } from "../../utils/clsx.js";
3
- const i = "_bar_4bu59_1", l = {
3
+ const i = "cfxui__ButtonBar__bar__cf894", f = {
4
4
  bar: i
5
5
  }, t = {
6
6
  start: "flex-start",
@@ -12,15 +12,15 @@ function u(e) {
12
12
  children: n,
13
13
  className: r,
14
14
  justify: s = "center",
15
- align: a = "center"
15
+ align: c = "center"
16
16
  } = e;
17
- return /* @__PURE__ */ c(
17
+ return /* @__PURE__ */ a(
18
18
  "div",
19
19
  {
20
- className: o(l.bar, r),
20
+ className: o(f.bar, r),
21
21
  style: {
22
22
  justifyContent: t[s],
23
- alignItems: t[a]
23
+ alignItems: t[c]
24
24
  },
25
25
  children: n
26
26
  }
@@ -1,5 +1,5 @@
1
- import { jsxs as z, jsx as f } from "react/jsx-runtime";
2
- import * as a from "react";
1
+ import { jsxs as z, jsx as l } from "react/jsx-runtime";
2
+ import * as c from "react";
3
3
  import L from "react";
4
4
  import { u as S, f as y, c as j, a as W, P as O, b as A, d as B, e as H } from "../../index-CjWRnNpt.js";
5
5
  import { r as K } from "../../index-2hJuj4UN.js";
@@ -43,6 +43,11 @@ import "../Icons/cfx-icons/Users.js";
43
43
  import "../Icons/cfx-icons/Visibility.js";
44
44
  import "../Icons/cfx-icons/VisibilityOff.js";
45
45
  import "../Icons/cfx-icons/Warning.js";
46
+ import "../Icons/cfx-icons/Cart.js";
47
+ import "../Icons/cfx-icons/User.js";
48
+ import "../Icons/cfx-icons/Verified.js";
49
+ import "../Icons/cfx-icons/UpvotesBurst.js";
50
+ import "../Icons/cfx-icons/UpvotesRecurring.js";
46
51
  import "../Icons/cfx-icons-big/Like.js";
47
52
  import "../Icons/cfx-icons-big/Subscriptions.js";
48
53
  import "../Icons/cfx-icons-big/Upload.js";
@@ -51,15 +56,15 @@ import "../Icons/cfx-icons-big/Confirm.js";
51
56
  import { clsx as R } from "../../utils/clsx.js";
52
57
  import { getColor as q } from "../../utils/color.js";
53
58
  function X(e, t) {
54
- return a.useReducer((n, o) => t[n][o] ?? n, e);
59
+ return c.useReducer((o, n) => t[o][n] ?? o, e);
55
60
  }
56
61
  var I = (e) => {
57
- const { present: t, children: n } = e, o = F(t), s = typeof n == "function" ? n({ present: o.isPresent }) : a.Children.only(n), c = S(o.ref, G(s));
58
- return typeof n == "function" || o.isPresent ? a.cloneElement(s, { ref: c }) : null;
62
+ const { present: t, children: o } = e, n = F(t), s = typeof o == "function" ? o({ present: n.isPresent }) : c.Children.only(o), a = S(n.ref, G(s));
63
+ return typeof o == "function" || n.isPresent ? c.cloneElement(s, { ref: a }) : null;
59
64
  };
60
65
  I.displayName = "Presence";
61
66
  function F(e) {
62
- const [t, n] = a.useState(), o = a.useRef({}), s = a.useRef(e), c = a.useRef("none"), l = e ? "mounted" : "unmounted", [u, m] = X(l, {
67
+ const [t, o] = c.useState(), n = c.useRef({}), s = c.useRef(e), a = c.useRef("none"), f = e ? "mounted" : "unmounted", [u, m] = X(f, {
63
68
  mounted: {
64
69
  UNMOUNT: "unmounted",
65
70
  ANIMATION_OUT: "unmountSuspended"
@@ -72,97 +77,97 @@ function F(e) {
72
77
  MOUNT: "mounted"
73
78
  }
74
79
  });
75
- return a.useEffect(() => {
76
- const r = _(o.current);
77
- c.current = u === "mounted" ? r : "none";
80
+ return c.useEffect(() => {
81
+ const r = x(n.current);
82
+ a.current = u === "mounted" ? r : "none";
78
83
  }, [u]), y(() => {
79
- const r = o.current, p = s.current;
80
- if (p !== e) {
81
- const C = c.current, N = _(r);
82
- e ? m("MOUNT") : N === "none" || (r == null ? void 0 : r.display) === "none" ? m("UNMOUNT") : m(p && C !== N ? "ANIMATION_OUT" : "UNMOUNT"), s.current = e;
84
+ const r = n.current, d = s.current;
85
+ if (d !== e) {
86
+ const C = a.current, _ = x(r);
87
+ e ? m("MOUNT") : _ === "none" || (r == null ? void 0 : r.display) === "none" ? m("UNMOUNT") : m(d && C !== _ ? "ANIMATION_OUT" : "UNMOUNT"), s.current = e;
83
88
  }
84
89
  }, [e, m]), y(() => {
85
90
  if (t) {
86
91
  const r = (i) => {
87
- const N = _(o.current).includes(i.animationName);
88
- i.target === t && N && K.flushSync(() => m("ANIMATION_END"));
89
- }, p = (i) => {
90
- i.target === t && (c.current = _(o.current));
92
+ const _ = x(n.current).includes(i.animationName);
93
+ i.target === t && _ && K.flushSync(() => m("ANIMATION_END"));
94
+ }, d = (i) => {
95
+ i.target === t && (a.current = x(n.current));
91
96
  };
92
- return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", r), t.addEventListener("animationend", r), () => {
93
- t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", r), t.removeEventListener("animationend", r);
97
+ return t.addEventListener("animationstart", d), t.addEventListener("animationcancel", r), t.addEventListener("animationend", r), () => {
98
+ t.removeEventListener("animationstart", d), t.removeEventListener("animationcancel", r), t.removeEventListener("animationend", r);
94
99
  };
95
100
  } else
96
101
  m("ANIMATION_END");
97
102
  }, [t, m]), {
98
103
  isPresent: ["mounted", "unmountSuspended"].includes(u),
99
- ref: a.useCallback((r) => {
100
- r && (o.current = getComputedStyle(r)), n(r);
104
+ ref: c.useCallback((r) => {
105
+ r && (n.current = getComputedStyle(r)), o(r);
101
106
  }, [])
102
107
  };
103
108
  }
104
- function _(e) {
109
+ function x(e) {
105
110
  return (e == null ? void 0 : e.animationName) || "none";
106
111
  }
107
112
  function G(e) {
108
- var o, s;
109
- let t = (o = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning;
110
- return n ? e.ref : (t = (s = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : s.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
113
+ var n, s;
114
+ let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning;
115
+ return o ? e.ref : (t = (s = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : s.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
111
116
  }
112
- var x = "Checkbox", [J, nt] = j(x), [Q, V] = J(x), M = a.forwardRef(
117
+ var E = "Checkbox", [J, ct] = j(E), [Q, V] = J(E), M = c.forwardRef(
113
118
  (e, t) => {
114
119
  const {
115
- __scopeCheckbox: n,
116
- name: o,
120
+ __scopeCheckbox: o,
121
+ name: n,
117
122
  checked: s,
118
- defaultChecked: c,
119
- required: l,
123
+ defaultChecked: a,
124
+ required: f,
120
125
  disabled: u,
121
126
  value: m = "on",
122
127
  onCheckedChange: r,
123
- ...p
124
- } = e, [i, C] = a.useState(null), N = S(t, (d) => C(d)), v = a.useRef(!1), P = i ? !!i.closest("form") : !0, [b = !1, E] = W({
128
+ ...d
129
+ } = e, [i, C] = c.useState(null), _ = S(t, (p) => C(p)), k = c.useRef(!1), P = i ? !!i.closest("form") : !0, [b = !1, g] = W({
125
130
  prop: s,
126
- defaultProp: c,
131
+ defaultProp: a,
127
132
  onChange: r
128
- }), D = a.useRef(b);
129
- return a.useEffect(() => {
130
- const d = i == null ? void 0 : i.form;
131
- if (d) {
132
- const k = () => E(D.current);
133
- return d.addEventListener("reset", k), () => d.removeEventListener("reset", k);
133
+ }), D = c.useRef(b);
134
+ return c.useEffect(() => {
135
+ const p = i == null ? void 0 : i.form;
136
+ if (p) {
137
+ const N = () => g(D.current);
138
+ return p.addEventListener("reset", N), () => p.removeEventListener("reset", N);
134
139
  }
135
- }, [i, E]), /* @__PURE__ */ z(Q, { scope: n, state: b, disabled: u, children: [
136
- /* @__PURE__ */ f(
140
+ }, [i, g]), /* @__PURE__ */ z(Q, { scope: o, state: b, disabled: u, children: [
141
+ /* @__PURE__ */ l(
137
142
  O.button,
138
143
  {
139
144
  type: "button",
140
145
  role: "checkbox",
141
146
  "aria-checked": h(b) ? "mixed" : b,
142
- "aria-required": l,
147
+ "aria-required": f,
143
148
  "data-state": w(b),
144
149
  "data-disabled": u ? "" : void 0,
145
150
  disabled: u,
146
151
  value: m,
147
- ...p,
148
- ref: N,
149
- onKeyDown: A(e.onKeyDown, (d) => {
150
- d.key === "Enter" && d.preventDefault();
152
+ ...d,
153
+ ref: _,
154
+ onKeyDown: A(e.onKeyDown, (p) => {
155
+ p.key === "Enter" && p.preventDefault();
151
156
  }),
152
- onClick: A(e.onClick, (d) => {
153
- E((k) => h(k) ? !0 : !k), P && (v.current = d.isPropagationStopped(), v.current || d.stopPropagation());
157
+ onClick: A(e.onClick, (p) => {
158
+ g((N) => h(N) ? !0 : !N), P && (k.current = p.isPropagationStopped(), k.current || p.stopPropagation());
154
159
  })
155
160
  }
156
161
  ),
157
- P && /* @__PURE__ */ f(
162
+ P && /* @__PURE__ */ l(
158
163
  Y,
159
164
  {
160
165
  control: i,
161
- bubbles: !v.current,
162
- name: o,
166
+ bubbles: !k.current,
167
+ name: n,
163
168
  value: m,
164
169
  checked: b,
165
- required: l,
170
+ required: f,
166
171
  disabled: u,
167
172
  style: { transform: "translateX(-100%)" }
168
173
  }
@@ -170,15 +175,15 @@ var x = "Checkbox", [J, nt] = j(x), [Q, V] = J(x), M = a.forwardRef(
170
175
  ] });
171
176
  }
172
177
  );
173
- M.displayName = x;
174
- var T = "CheckboxIndicator", U = a.forwardRef(
178
+ M.displayName = E;
179
+ var T = "CheckboxIndicator", U = c.forwardRef(
175
180
  (e, t) => {
176
- const { __scopeCheckbox: n, forceMount: o, ...s } = e, c = V(T, n);
177
- return /* @__PURE__ */ f(I, { present: o || h(c.state) || c.state === !0, children: /* @__PURE__ */ f(
181
+ const { __scopeCheckbox: o, forceMount: n, ...s } = e, a = V(T, o);
182
+ return /* @__PURE__ */ l(I, { present: n || h(a.state) || a.state === !0, children: /* @__PURE__ */ l(
178
183
  O.span,
179
184
  {
180
- "data-state": w(c.state),
181
- "data-disabled": c.disabled ? "" : void 0,
185
+ "data-state": w(a.state),
186
+ "data-disabled": a.disabled ? "" : void 0,
182
187
  ...s,
183
188
  ref: t,
184
189
  style: { pointerEvents: "none", ...e.style }
@@ -188,22 +193,22 @@ var T = "CheckboxIndicator", U = a.forwardRef(
188
193
  );
189
194
  U.displayName = T;
190
195
  var Y = (e) => {
191
- const { control: t, checked: n, bubbles: o = !0, ...s } = e, c = a.useRef(null), l = B(n), u = H(t);
192
- return a.useEffect(() => {
193
- const m = c.current, r = window.HTMLInputElement.prototype, i = Object.getOwnPropertyDescriptor(r, "checked").set;
194
- if (l !== n && i) {
195
- const C = new Event("click", { bubbles: o });
196
- m.indeterminate = h(n), i.call(m, h(n) ? !1 : n), m.dispatchEvent(C);
196
+ const { control: t, checked: o, bubbles: n = !0, ...s } = e, a = c.useRef(null), f = B(o), u = H(t);
197
+ return c.useEffect(() => {
198
+ const m = a.current, r = window.HTMLInputElement.prototype, i = Object.getOwnPropertyDescriptor(r, "checked").set;
199
+ if (f !== o && i) {
200
+ const C = new Event("click", { bubbles: n });
201
+ m.indeterminate = h(o), i.call(m, h(o) ? !1 : o), m.dispatchEvent(C);
197
202
  }
198
- }, [l, n, o]), /* @__PURE__ */ f(
203
+ }, [f, o, n]), /* @__PURE__ */ l(
199
204
  "input",
200
205
  {
201
206
  type: "checkbox",
202
207
  "aria-hidden": !0,
203
- defaultChecked: h(n) ? !1 : n,
208
+ defaultChecked: h(o) ? !1 : o,
204
209
  ...s,
205
210
  tabIndex: -1,
206
- ref: c,
211
+ ref: a,
207
212
  style: {
208
213
  ...e.style,
209
214
  ...u,
@@ -222,34 +227,34 @@ function w(e) {
222
227
  return h(e) ? "indeterminate" : e ? "checked" : "unchecked";
223
228
  }
224
229
  var Z = M, ee = U;
225
- const te = "_rootUnset_1i045_1", ne = "_root_1i045_1", oe = "_indicator_1i045_20", g = {
230
+ const te = "cfxui__Checkbox__rootUnset__cbb57", oe = "cfxui__Checkbox__root__865aa", ne = "cfxui__Checkbox__indicator__2afc0", v = {
226
231
  rootUnset: te,
227
- root: ne,
228
- indicator: oe,
229
- "size-small": "_size-small_1i045_26",
230
- "size-normal": "_size-normal_1i045_41",
231
- "size-large": "_size-large_1i045_56"
232
+ root: oe,
233
+ indicator: ne,
234
+ "size-small": "cfxui__Checkbox__size-small__02440",
235
+ "size-normal": "cfxui__Checkbox__size-normal__700f4",
236
+ "size-large": "cfxui__Checkbox__size-large__28529"
232
237
  };
233
238
  function re(e) {
234
239
  const {
235
240
  id: t,
236
- size: n = "normal",
237
- rootClassName: o,
241
+ size: o = "normal",
242
+ rootClassName: n,
238
243
  indicatorClassName: s,
239
- colorToken: c,
240
- color: l,
244
+ colorToken: a,
245
+ color: f,
241
246
  opacity: u,
242
247
  luminance: m,
243
248
  ...r
244
- } = e, p = R(
245
- g.root,
246
- g.rootUnset,
247
- g[`size-${n}`],
248
- o
249
+ } = e, d = R(
250
+ v.root,
251
+ v.rootUnset,
252
+ v[`size-${o}`],
253
+ n
249
254
  ), i = q(e);
250
- return /* @__PURE__ */ f(Z, { ...r, id: t, style: { color: i }, className: p, children: /* @__PURE__ */ f(ee, { className: R(g.indicator, s), children: /* @__PURE__ */ f($, {}) }) });
255
+ return /* @__PURE__ */ l(Z, { ...r, id: t, style: { color: i }, className: d, children: /* @__PURE__ */ l(ee, { className: R(v.indicator, s), children: /* @__PURE__ */ l($, {}) }) });
251
256
  }
252
- const ot = L.memo(re);
257
+ const at = L.memo(re);
253
258
  export {
254
- ot as default
259
+ at as default
255
260
  };
@@ -1,43 +1,43 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import c from "react";
3
3
  import { Button as C } from "../Button/Button.js";
4
- import { Title as f } from "../Title/Title.js";
5
- import { clsx as u } from "../../utils/clsx.js";
6
- import { noop as _ } from "../../utils/functional.js";
4
+ import { Title as _ } from "../Title/Title.js";
5
+ import { clsx as f } from "../../utils/clsx.js";
6
+ import { noop as u } from "../../utils/functional.js";
7
7
  import "../../utils/hooks/useGlobalKeyboardEvent.js";
8
8
  import "../../utils/hooks/useKeyboardClose.js";
9
9
  import "../../index-2hJuj4UN.js";
10
- import { useClipboardComponent as k } from "../../utils/hooks/useClipboardComponent.js";
11
- const b = "_root_185u8_1", h = "_copied_185u8_1", e = {
12
- root: b,
13
- copied: h
10
+ import { useClipboardComponent as b } from "../../utils/hooks/useClipboardComponent.js";
11
+ const x = "cfxui__ClipboardButton__root__e8251", k = "cfxui__ClipboardButton__copied__6e0b9", e = {
12
+ root: x,
13
+ copied: k
14
14
  };
15
- function x(o) {
15
+ function h(o) {
16
16
  const {
17
- hoverTitle: T,
18
- copiedTitle: B,
17
+ hoverTitle: B,
18
+ copiedTitle: T,
19
19
  textToCopy: j,
20
20
  fixedOn: n,
21
- onClick: t = _,
21
+ onClick: t = u,
22
22
  ...l
23
23
  } = o, {
24
24
  copied: p,
25
25
  handleClick: i,
26
26
  title: m
27
- } = k(o), d = c.useCallback((a) => {
28
- t(a), i();
29
- }, [i, t]), s = u(e.root, { [e.copied]: p });
27
+ } = b(o), d = c.useCallback((s) => {
28
+ t(s), i();
29
+ }, [i, t]), a = f(e.root, { [e.copied]: p });
30
30
  return /* @__PURE__ */ r(
31
- f,
31
+ _,
32
32
  {
33
33
  title: m,
34
34
  fixedOn: n,
35
- rootClassName: s,
35
+ rootClassName: a,
36
36
  children: /* @__PURE__ */ r(C, { ...l, onClick: d })
37
37
  }
38
38
  );
39
39
  }
40
- const z = c.memo(x);
40
+ const z = c.memo(h);
41
41
  export {
42
42
  z as default
43
43
  };
@@ -1,19 +1,19 @@
1
- import { jsx as m } from "react/jsx-runtime";
1
+ import { jsx as s } from "react/jsx-runtime";
2
2
  import c from "react";
3
- import { clsx as _ } from "../../utils/clsx.js";
4
- const e = "_root_1ykga_1", f = "_small_1ykga_5", g = "_normal_1ykga_8", i = "_large_1ykga_11", o = {
3
+ import { clsx as m } from "../../utils/clsx.js";
4
+ const e = "cfxui__ControlBox__root__6a08c", x = "cfxui__ControlBox__small__8beb2", f = "cfxui__ControlBox__normal__e3aa5", i = "cfxui__ControlBox__large__1039d", o = {
5
5
  root: e,
6
- small: f,
7
- normal: g,
6
+ small: x,
7
+ normal: f,
8
8
  large: i
9
- }, y = c.forwardRef(function(r, a) {
9
+ }, p = c.forwardRef(function(r, t) {
10
10
  const {
11
- size: t = "normal",
11
+ size: _ = "normal",
12
12
  className: l,
13
- children: s
14
- } = r, n = _(o.root, l, o[t]);
15
- return /* @__PURE__ */ m("div", { ref: a, className: n, children: s });
13
+ children: a
14
+ } = r, n = m(o.root, l, o[_]);
15
+ return /* @__PURE__ */ s("div", { ref: t, className: n, children: a });
16
16
  });
17
17
  export {
18
- y as ControlBox
18
+ p as ControlBox
19
19
  };
@@ -1,21 +1,21 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import f from "react";
3
- import { Title as l } from "../Title/Title.js";
2
+ import l from "react";
3
+ import { Title as f } from "../Title/Title.js";
4
4
  import { clsx as i } from "../../utils/clsx.js";
5
- const m = "_root_n4jzf_1", u = {
5
+ const m = "cfxui__CountryFlag__root__95489", u = {
6
6
  root: m
7
- }, x = f.forwardRef(function(r, e) {
7
+ }, y = l.forwardRef(function(r, e) {
8
8
  const {
9
9
  country: o,
10
10
  className: s,
11
- title: n,
12
- forceShow: a = !1
11
+ title: a,
12
+ forceShow: n = !1
13
13
  } = r;
14
- if (!a && (o === "001" || o === "AQ" || o === "aq"))
14
+ if (!n && (o === "001" || o === "AQ" || o === "aq"))
15
15
  return null;
16
16
  const c = i(u.root, s, `fi-${o.toLowerCase()}`);
17
- return /* @__PURE__ */ t(l, { title: n, children: /* @__PURE__ */ t("div", { ref: e, className: c }) });
17
+ return /* @__PURE__ */ t(f, { title: a, children: /* @__PURE__ */ t("div", { ref: e, className: c }) });
18
18
  });
19
19
  export {
20
- x as CountryFlag
20
+ y as CountryFlag
21
21
  };