@cfx-dev/ui-components 3.0.2 → 3.0.4

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 +27 -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,35 +1,44 @@
1
- import { jsx as r } from "react/jsx-runtime";
1
+ import { jsx as _ } from "react/jsx-runtime";
2
2
  import c from "react";
3
- import { clsx as d } from "../../utils/clsx.js";
4
- const u = "_unsetAll_6pbf7_1", f = "_root_6pbf7_5", i = "_unstyled_6pbf7_30", m = "_secondary_6pbf7_33", s = {
5
- unsetAll: u,
6
- root: f,
7
- unstyled: i,
8
- secondary: m
3
+ import { clsx as i } from "../../utils/clsx.js";
4
+ const r = "cfxui__Link__unsetAll__58fea", d = "cfxui__Link__root__a29b3", u = "cfxui__Link__unstyled__f020c", f = "cfxui__Link__secondary__1e0f9", s = {
5
+ unsetAll: r,
6
+ root: d,
7
+ unstyled: u,
8
+ secondary: f
9
9
  };
10
- function _(t) {
10
+ function m(e) {
11
11
  const {
12
- className: n,
13
- disabled: e = !1,
14
- unstyled: o = !1,
15
- theme: l = "default"
16
- } = t;
17
- return d(s.unsetAll, s.root, s[l], {
18
- [s.disabled]: e,
19
- [s.unstyled]: o
20
- }, n);
12
+ className: a,
13
+ disabled: n = !1,
14
+ unstyled: t = !1,
15
+ theme: o = "default"
16
+ } = e;
17
+ return i(s.unsetAll, s.root, s[o], {
18
+ [s.disabled]: n,
19
+ [s.unstyled]: t
20
+ }, a);
21
21
  }
22
- function y(t) {
22
+ function y(e) {
23
23
  const {
24
- className: n,
25
- children: e,
26
- disabled: o = !1,
27
- ...l
28
- } = t, a = _(t);
29
- return /* @__PURE__ */ r("a", { ...l, "aria-disabled": o, className: a, children: e });
24
+ className: a,
25
+ children: n,
26
+ disabled: t = !1,
27
+ ...o
28
+ } = e, l = m(e);
29
+ return /* @__PURE__ */ _(
30
+ "a",
31
+ {
32
+ ...o,
33
+ tabIndex: t ? -1 : 0,
34
+ "aria-disabled": t,
35
+ className: l,
36
+ children: n
37
+ }
38
+ );
30
39
  }
31
- const A = c.memo(y);
40
+ const b = c.memo(y);
32
41
  export {
33
- A as default,
34
- _ as getLinkClassName
42
+ b as default,
43
+ m as getLinkClassName
35
44
  };
@@ -1,27 +1,27 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import i from "react";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import e from "react";
3
3
  import { clsx as m } from "../../utils/clsx.js";
4
- const n = "_root_gg27t_1", f = "_bright_gg27t_14", o = {
4
+ const n = "cfxui__Loaf__root__05393", u = "cfxui__Loaf__bright__6638c", o = {
5
5
  root: n,
6
- "color-normal": "_color-normal_gg27t_10",
7
- bright: f,
8
- "color-gold": "_color-gold_gg27t_17",
9
- "color-error": "_color-error_gg27t_24",
10
- "size-small": "_size-small_gg27t_32",
11
- "size-normal": "_size-normal_gg27t_39",
12
- "size-large": "_size-large_gg27t_46"
13
- }, p = i.forwardRef(function(r, t) {
6
+ "color-normal": "cfxui__Loaf__color-normal__bec17",
7
+ bright: u,
8
+ "color-gold": "cfxui__Loaf__color-gold__4fa59",
9
+ "color-error": "cfxui__Loaf__color-error__9887b",
10
+ "size-small": "cfxui__Loaf__size-small__942f7",
11
+ "size-normal": "cfxui__Loaf__size-normal__7b2a1",
12
+ "size-large": "cfxui__Loaf__size-large__1679c"
13
+ }, z = e.forwardRef(function(_, r) {
14
14
  const {
15
- size: l = "normal",
16
- color: s = "normal",
17
- bright: _ = !1,
18
- children: g,
19
- className: a
20
- } = r, e = m(o.root, o[`size-${l}`], o[`color-${s}`], a, {
21
- [o.bright]: _
15
+ size: a = "normal",
16
+ color: c = "normal",
17
+ bright: l = !1,
18
+ children: f,
19
+ className: i
20
+ } = _, s = m(o.root, o[`size-${a}`], o[`color-${c}`], i, {
21
+ [o.bright]: l
22
22
  });
23
- return /* @__PURE__ */ c("div", { ref: t, className: e, children: g });
23
+ return /* @__PURE__ */ t("div", { ref: r, className: s, children: f });
24
24
  });
25
25
  export {
26
- p as Loaf
26
+ z as Loaf
27
27
  };
@@ -1,60 +1,60 @@
1
- import { jsxs as n, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
2
  import N from "react";
3
3
  import "../Button/Button.js";
4
4
  import { ButtonBar as k } from "../Button/ButtonBar.js";
5
5
  import "../Button/LinkButton.js";
6
- import y from "../IconButton/IconButton.js";
7
- import { Overlay as c } from "../Overlay/Overlay.js";
6
+ import x from "../IconButton/IconButton.js";
7
+ import { Overlay as t } from "../Overlay/Overlay.js";
8
8
  import { Text as m } from "../Text/Text.js";
9
- import { clsx as l } from "../../utils/clsx.js";
9
+ import { clsx as s } from "../../utils/clsx.js";
10
10
  import "../../utils/hooks/useGlobalKeyboardEvent.js";
11
- import { useKeyboardClose as z } from "../../utils/hooks/useKeyboardClose.js";
11
+ import { useKeyboardClose as y } from "../../utils/hooks/useKeyboardClose.js";
12
12
  import "../../index-2hJuj4UN.js";
13
- const B = "_root_zn44h_1", v = "_close_zn44h_37", x = "_header_zn44h_43", g = "_footer_zn44h_53", r = {
14
- root: B,
15
- "modal-appearance": "_modal-appearance_zn44h_1",
16
- close: v,
17
- header: x,
13
+ const M = "cfxui__Modal__root__53283", B = "cfxui__Modal__close__2df9b", v = "cfxui__Modal__header__bec76", g = "cfxui__Modal__footer__bb2fc", a = {
14
+ root: M,
15
+ "modal-appearance": "cfxui__Modal__modal-appearance__60dd7",
16
+ close: B,
17
+ header: v,
18
18
  footer: g
19
19
  };
20
- function p(t) {
20
+ function _(c) {
21
21
  const {
22
- onClose: e,
23
- children: s,
24
- className: o,
22
+ onClose: o,
23
+ children: l,
24
+ className: e,
25
25
  overlayClassName: f,
26
- backdropClassName: h,
27
- contentClassName: _,
28
- ariaDescribedby: b,
29
- ariaLabelledby: u,
30
- disableBackdropClose: i = !1,
26
+ backdropClassName: p,
27
+ contentClassName: b,
28
+ ariaDescribedby: u,
29
+ ariaLabelledby: h,
30
+ disableBackdropClose: d = !1,
31
31
  disableFocusLock: C = !1
32
- } = t, d = N.useCallback(() => {
33
- i || !e || e();
34
- }, [e, i]);
35
- return z(d), /* @__PURE__ */ n(c, { className: l(r.overlay, f), children: [
36
- /* @__PURE__ */ a(
37
- c.Backdrop,
32
+ } = c, n = N.useCallback(() => {
33
+ d || !o || o();
34
+ }, [o, d]);
35
+ return y(n), /* @__PURE__ */ i(t, { className: s(a.overlay, f), children: [
36
+ /* @__PURE__ */ r(
37
+ t.Backdrop,
38
38
  {
39
- onClick: d,
40
- className: l(r.backdrop, h)
39
+ onClick: n,
40
+ className: s(a.backdrop, p)
41
41
  }
42
42
  ),
43
- /* @__PURE__ */ a(
44
- c.Content,
43
+ /* @__PURE__ */ r(
44
+ t.Content,
45
45
  {
46
- className: _,
46
+ className: b,
47
47
  disableFocusLock: C,
48
- children: /* @__PURE__ */ n(
48
+ children: /* @__PURE__ */ i(
49
49
  "div",
50
50
  {
51
51
  role: "dialog",
52
- "aria-describedby": b,
53
- "aria-labelledby": u,
54
- className: l(r.root, o),
52
+ "aria-describedby": u,
53
+ "aria-labelledby": h,
54
+ className: s(a.root, e),
55
55
  children: [
56
- !!e && /* @__PURE__ */ a(y, { areaSize: "large", className: r.close, name: "Close", onClick: e }),
57
- s
56
+ !!o && /* @__PURE__ */ r(x, { areaSize: "large", className: a.close, name: "Close", onClick: o }),
57
+ l
58
58
  ]
59
59
  }
60
60
  )
@@ -62,37 +62,37 @@ function p(t) {
62
62
  )
63
63
  ] });
64
64
  }
65
- p.Header = function(e) {
65
+ _.Header = function(o) {
66
66
  const {
67
- title: s,
68
- description: o
69
- } = e;
70
- return /* @__PURE__ */ n("div", { className: r.header, children: [
71
- /* @__PURE__ */ a(
67
+ title: l,
68
+ description: e
69
+ } = o;
70
+ return /* @__PURE__ */ i("div", { className: a.header, children: [
71
+ /* @__PURE__ */ r(
72
72
  m,
73
73
  {
74
74
  weight: "bold",
75
75
  size: "large",
76
- children: s
76
+ children: l
77
77
  }
78
78
  ),
79
- o && /* @__PURE__ */ a(
79
+ e && /* @__PURE__ */ r(
80
80
  m,
81
81
  {
82
82
  size: "small",
83
83
  color: "secondary",
84
- children: o
84
+ children: e
85
85
  }
86
86
  )
87
87
  ] });
88
88
  };
89
- p.Footer = function(e) {
89
+ _.Footer = function(o) {
90
90
  const {
91
- className: s,
92
- ...o
93
- } = e;
94
- return /* @__PURE__ */ a(k, { ...o, className: l(r.footer, s) });
91
+ className: l,
92
+ ...e
93
+ } = o;
94
+ return /* @__PURE__ */ r(k, { ...e, className: s(a.footer, l) });
95
95
  };
96
96
  export {
97
- p as Modal
97
+ _ as Modal
98
98
  };
@@ -1,32 +1,32 @@
1
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import v from "react";
3
- import { Interactive as d } from "../Interactive/Interactive.js";
4
- import { clsx as _ } from "../../utils/clsx.js";
5
- import { noop as f } from "../../utils/functional.js";
6
- import { getValue as i } from "../../utils/getValue.js";
7
- const p = "_root_u7cv2_1", u = "_item_u7cv2_5", N = "_active_u7cv2_20", h = "_icon_u7cv2_30", c = {
8
- root: p,
9
- item: u,
10
- active: N,
11
- icon: h
12
- }, k = v.forwardRef(function(e, r) {
1
+ import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
+ import d from "react";
3
+ import { Interactive as f } from "../Interactive/Interactive.js";
4
+ import { clsx as l } from "../../utils/clsx.js";
5
+ import { noop as v } from "../../utils/functional.js";
6
+ import { getValue as c } from "../../utils/getValue.js";
7
+ const N = "cfxui__NavList__root__6fbf7", p = "cfxui__NavList__item__d5754", u = "cfxui__NavList__active__4634d", x = "cfxui__NavList__icon__9a57e", o = {
8
+ root: N,
9
+ item: p,
10
+ active: u,
11
+ icon: x
12
+ }, k = d.forwardRef(function(a, e) {
13
13
  const {
14
- items: n,
15
- activeItemId: s,
16
- onActivate: a = f
17
- } = e, m = n.map((o) => /* @__PURE__ */ l(
18
- d,
14
+ items: s,
15
+ activeItemId: r,
16
+ onActivate: _ = v
17
+ } = a, n = s.map((i) => /* @__PURE__ */ m(
18
+ f,
19
19
  {
20
- className: _(c.item, { [c.active]: o.id === s }),
21
- onClick: () => a(o.id),
20
+ className: l(o.item, { [o.active]: i.id === r }),
21
+ onClick: () => _(i.id),
22
22
  children: [
23
- !!o.icon && /* @__PURE__ */ t("div", { className: c.icon, children: i(o.icon) }),
24
- /* @__PURE__ */ t("div", { className: c.label, children: i(o.label) })
23
+ !!i.icon && /* @__PURE__ */ t("div", { className: o.icon, children: c(i.icon) }),
24
+ /* @__PURE__ */ t("div", { className: o.label, children: c(i.label) })
25
25
  ]
26
26
  },
27
- o.id
27
+ i.id
28
28
  ));
29
- return /* @__PURE__ */ t("div", { ref: r, className: c.root, children: m });
29
+ return /* @__PURE__ */ t("div", { ref: e, className: o.root, children: n });
30
30
  });
31
31
  export {
32
32
  k as NavList
@@ -1,34 +1,34 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import l from "react";
3
- import { F as i } from "../../Combination-BRUj3CHE.js";
4
- import { Interactive as m } from "../Interactive/Interactive.js";
5
- import { clsx as n } from "../../utils/clsx.js";
3
+ import { F as _ } from "../../Combination-BRUj3CHE.js";
4
+ import { Interactive as d } from "../Interactive/Interactive.js";
5
+ import { clsx as a } from "../../utils/clsx.js";
6
6
  import "../../utils/hooks/useGlobalKeyboardEvent.js";
7
7
  import "../../utils/hooks/useKeyboardClose.js";
8
- import { useOutlet as _ } from "../../utils/hooks/useOutlet.js";
9
- const f = "_root_17xdt_1", p = "_backdrop_17xdt_9", u = "_content_17xdt_27", a = {
8
+ import { useOutlet as m } from "../../utils/hooks/useOutlet.js";
9
+ const f = "cfxui__Overlay__root__7221c", u = "cfxui__Overlay__backdrop__bc193", p = "cfxui__Overlay__content__002f3", n = {
10
10
  root: f,
11
- backdrop: p,
12
- "backdrop-appearance": "_backdrop-appearance_17xdt_1",
13
- content: u
11
+ backdrop: u,
12
+ "backdrop-appearance": "cfxui__Overlay__backdrop-appearance__785a5",
13
+ content: p
14
14
  }, k = "overlay-outlet";
15
- function s(c) {
15
+ function i(t) {
16
16
  const {
17
17
  className: o,
18
- children: t
19
- } = c, e = n(a.root, o), d = _(k);
20
- return /* @__PURE__ */ r(d, { children: /* @__PURE__ */ r("div", { className: e, children: t }) });
18
+ children: c
19
+ } = t, e = a(n.root, o), s = m(k);
20
+ return /* @__PURE__ */ r(s, { children: /* @__PURE__ */ r("div", { className: e, children: c }) });
21
21
  }
22
- s.Backdrop = l.forwardRef(function(o, t) {
23
- return /* @__PURE__ */ r(m, { ref: t, onClick: o.onClick, className: n(a.backdrop, o.className), children: o.children });
22
+ i.Backdrop = l.forwardRef(function(o, c) {
23
+ return /* @__PURE__ */ r(d, { ref: c, onClick: o.onClick, className: a(n.backdrop, o.className), children: o.children });
24
24
  });
25
- s.Content = l.forwardRef(function(o, t) {
25
+ i.Content = l.forwardRef(function(o, c) {
26
26
  const {
27
27
  disableFocusLock: e = !1
28
28
  } = o;
29
- return /* @__PURE__ */ r("div", { ref: t, className: n(a.content, o.className), children: /* @__PURE__ */ r(i, { disabled: e, children: o.children }) });
29
+ return /* @__PURE__ */ r("div", { ref: c, className: a(n.content, o.className), children: /* @__PURE__ */ r(_, { disabled: e, children: o.children }) });
30
30
  });
31
31
  export {
32
32
  k as OVERLAY_OUTLET_ID,
33
- s as Overlay
33
+ i as Overlay
34
34
  };
@@ -1,46 +1,46 @@
1
- import { jsxs as d, jsx as u } from "react/jsx-runtime";
2
- import N from "react";
3
- import { Interactive as x } from "../Interactive/Interactive.js";
4
- import { clsx as t } from "../../utils/clsx.js";
5
- const C = "_root_3gp1h_1", w = "_active_3gp1h_4", M = "_popover_3gp1h_4", P = "_appearance_3gp1h_1", o = {
1
+ import { jsxs as P, jsx as d } from "react/jsx-runtime";
2
+ import h from "react";
3
+ import { Interactive as N } from "../Interactive/Interactive.js";
4
+ import { clsx as r } from "../../utils/clsx.js";
5
+ const C = "cfxui__Popover__root__4521b", g = "cfxui__Popover__active__e4504", w = "cfxui__Popover__popover__bea1e", M = "cfxui__Popover__appearance__20d42", o = {
6
6
  root: C,
7
- active: w,
8
- popover: M,
9
- appearance: P,
10
- "pos-top-right": "_pos-top-right_3gp1h_37",
11
- "pos-top-left": "_pos-top-left_3gp1h_41"
12
- }, I = N.forwardRef(function(s, p) {
7
+ active: g,
8
+ popover: w,
9
+ appearance: M,
10
+ "pos-top-right": "cfxui__Popover__pos-top-right__95a54",
11
+ "pos-top-left": "cfxui__Popover__pos-top-left__a93aa"
12
+ }, E = h.forwardRef(function(t, s) {
13
13
  const {
14
- at: r = "top-right",
14
+ at: p = "top-right",
15
15
  as: a = "div",
16
- popover: c,
17
- children: n,
16
+ popover: _,
17
+ children: c,
18
18
  active: i = !1,
19
- onMouseEnter: _,
19
+ onMouseEnter: n,
20
20
  onMouseLeave: v,
21
- onMouseDown: l,
22
- rootClassName: m,
23
- popoverClassName: f
24
- } = s, e = i, h = t(o.root, m, {
21
+ onMouseDown: f,
22
+ rootClassName: l,
23
+ popoverClassName: m
24
+ } = t, e = i, u = r(o.root, l, {
25
25
  [o.active]: e
26
- }), g = t(o.popover, f, o[`pos-${r}`]);
27
- return /* @__PURE__ */ d(
28
- x,
26
+ }), x = r(o.popover, m, o[`pos-${p}`]);
27
+ return /* @__PURE__ */ P(
28
+ N,
29
29
  {
30
30
  as: a,
31
- ref: p,
31
+ ref: s,
32
32
  showPointer: !1,
33
- className: h,
34
- onMouseEnter: _,
33
+ className: u,
34
+ onMouseEnter: n,
35
35
  onMouseLeave: v,
36
- onMouseDown: l,
36
+ onMouseDown: f,
37
37
  children: [
38
- n(e),
39
- e && /* @__PURE__ */ u("div", { className: g, children: c })
38
+ c(e),
39
+ e && /* @__PURE__ */ d("div", { className: x, children: _ })
40
40
  ]
41
41
  }
42
42
  );
43
43
  });
44
44
  export {
45
- I as Popover
45
+ E as Popover
46
46
  };
@@ -1,17 +1,17 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import s from "react";
3
- import { Button as m } from "../Button/Button.js";
3
+ import { Button as a } from "../Button/Button.js";
4
4
  import "../Button/LinkButton.js";
5
- import { Flex as a } from "../Layout/Flex/Flex.js";
5
+ import { Flex as m } from "../Layout/Flex/Flex.js";
6
6
  import { usePopoverController as i } from "../../utils/hooks/usePopoverController.js";
7
7
  import "../../utils/hooks/useGlobalKeyboardEvent.js";
8
8
  import "../../utils/hooks/useKeyboardClose.js";
9
9
  import "../../index-2hJuj4UN.js";
10
10
  import { Popover as l } from "./Popover.js";
11
- const v = "_popover_1s88x_1", u = {
11
+ const v = "cfxui__PopoverShowcase__popover__432d2", c = {
12
12
  popover: v
13
13
  };
14
- function c() {
14
+ function u() {
15
15
  const {
16
16
  active: e,
17
17
  wrapperRef: r,
@@ -20,7 +20,7 @@ function c() {
20
20
  handleMouseDown: n
21
21
  } = i();
22
22
  return /* @__PURE__ */ o(
23
- a,
23
+ m,
24
24
  {
25
25
  fullWidth: !0,
26
26
  centered: !0,
@@ -35,9 +35,9 @@ function c() {
35
35
  onMouseDown: n,
36
36
  active: e,
37
37
  popover: /* @__PURE__ */ o("div", { style: { padding: "20px" }, children: "Popover content" }),
38
- popoverClassName: u.popover,
38
+ popoverClassName: c.popover,
39
39
  children: () => /* @__PURE__ */ o(
40
- m,
40
+ a,
41
41
  {
42
42
  text: "Hover me"
43
43
  }
@@ -47,7 +47,7 @@ function c() {
47
47
  }
48
48
  );
49
49
  }
50
- const D = s.memo(c);
50
+ const C = s.memo(u);
51
51
  export {
52
- D as default
52
+ C as default
53
53
  };
@@ -1,9 +1,9 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import a from "react";
3
- import { Title as m } from "../Title/Title.js";
4
- import { clsx as s } from "../../utils/clsx.js";
5
- const g = "_root_137v5_1", c = {
6
- root: g
2
+ import m from "react";
3
+ import { Title as a } from "../Title/Title.js";
4
+ import { clsx as g } from "../../utils/clsx.js";
5
+ const s = "cfxui__PremiumBadge__root__7477e", c = {
6
+ root: s
7
7
  }, t = {
8
8
  ag: {
9
9
  // https://github.com/microsoft/fluentui-emoji/tree/main/assets/Optical%20disk
@@ -23,15 +23,15 @@ const g = "_root_137v5_1", c = {
23
23
  imgSrc: new URL("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20style='filter:%20drop-shadow(0%200%201px%20rgba(0,0,0,.75))'%3e%3cpath%20d='M28.9788%2017.0028L25.8711%2017.2166C25.0368%2017.2777%2024.6927%2018.2958%2025.3288%2018.8252L27.7169%2020.78C28.2384%2021.2076%2029.0309%2020.9836%2029.2395%2020.3524L29.9486%2018.2246C30.1676%2017.5933%2029.6566%2016.9519%2028.9788%2017.0028Z'%20fill='%23FCD53F'/%3e%3cpath%20d='M21.7494%202.69148L21.0294%205.59149C20.8294%206.37149%2021.6894%207.00148%2022.3694%206.57148L24.9094%204.99149C25.4594%204.65149%2025.4894%203.85148%2024.9594%203.47148L23.1794%202.18148C22.6494%201.79148%2021.9094%202.06148%2021.7494%202.69148Z'%20fill='%23FCD53F'/%3e%3cpath%20d='M6.43056%204.99468L8.96056%206.57468C9.64056%207.00468%2010.5005%206.38468%2010.3105%205.59468L9.59056%202.69467C9.43056%202.06467%208.69055%201.79468%208.16055%202.17468L6.38055%203.46468C5.85055%203.86468%205.88056%204.65468%206.43056%204.99468Z'%20fill='%23FCD53F'/%3e%3cpath%20d='M4.18524%2020.7128L6.47524%2018.7928C7.09524%2018.2728%206.76524%2017.2628%205.96524%2017.2128L2.98524%2017.0028C2.33524%2016.9528%201.84524%2017.5828%202.04524%2018.2028L2.72524%2020.2928C2.92524%2020.9128%203.69524%2021.1328%204.18524%2020.7128Z'%20fill='%23FCD53F'/%3e%3cpath%20d='M17.7952%2028.0047L16.6752%2025.2347C16.3752%2024.4847%2015.3152%2024.4847%2015.0152%2025.2347L13.8952%2028.0047C13.6552%2028.6047%2014.0952%2029.2647%2014.7452%2029.2647H16.9452C17.5952%2029.2547%2018.0352%2028.6047%2017.7952%2028.0047Z'%20fill='%23FCD53F'/%3e%3cpath%20d='M17.5645%203.3242L19.2913%207.04387C19.617%207.73821%2020.2584%208.22424%2021.0083%208.33335L25.0639%208.95825C26.8993%209.23599%2027.6393%2011.4876%2026.3565%2012.8168L23.268%2016.0008C22.7647%2016.5166%2022.5378%2017.2506%2022.6562%2017.9648L23.3667%2022.3391C23.6726%2024.2238%2021.6793%2025.6323%2020.0117%2024.7098L16.6074%2022.8153C15.9166%2022.4284%2015.0878%2022.4284%2014.397%2022.8153L10.9927%2024.7098C9.32509%2025.6323%207.33183%2024.2238%207.63773%2022.3391L8.34819%2017.9648C8.4666%2017.2506%208.23965%2016.5166%207.7364%2016.0008L4.64785%2012.8168C3.35519%2011.4777%204.10513%209.23599%205.9405%208.95825L9.99608%208.33335C10.746%208.21432%2011.3874%207.72829%2011.713%207.04387L13.4399%203.3242C14.2589%201.5586%2016.7455%201.5586%2017.5645%203.3242Z'%20fill='%23FCD53F'/%3e%3c/svg%3e", import.meta.url).toString(),
24
24
  title: "Element Club Platinum"
25
25
  }
26
- }, f = a.forwardRef(function(l, i) {
26
+ }, f = m.forwardRef(function(l, i) {
27
27
  const {
28
28
  level: C,
29
29
  className: r
30
30
  } = l;
31
31
  if (!t[C])
32
32
  return null;
33
- const o = s(c.root, r);
34
- return /* @__PURE__ */ e("div", { ref: i, className: o, children: /* @__PURE__ */ e(m, { title: t[C].title, children: /* @__PURE__ */ e("img", { src: t[C].imgSrc, alt: t[C].title }) }) });
33
+ const o = g(c.root, r);
34
+ return /* @__PURE__ */ e("div", { ref: i, className: o, children: /* @__PURE__ */ e(a, { title: t[C].title, children: /* @__PURE__ */ e("img", { src: t[C].imgSrc, alt: t[C].title }) }) });
35
35
  });
36
36
  export {
37
37
  f as PremiumBadge
@@ -1,12 +1,12 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- const r = "_root_n8l9t_1", s = {
3
- root: r
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ const t = "cfxui__Prose__root__e03c1", s = {
3
+ root: t
4
4
  };
5
- function c({
5
+ function e({
6
6
  children: o
7
7
  }) {
8
- return /* @__PURE__ */ t("div", { className: s.root, children: o });
8
+ return /* @__PURE__ */ r("div", { className: s.root, children: o });
9
9
  }
10
10
  export {
11
- c as Prose
11
+ e as Prose
12
12
  };
@@ -1,43 +1,43 @@
1
- import { jsxs as g, jsx as o } from "react/jsx-runtime";
2
- import s from "react";
3
- import { clsx as h } from "../../utils/clsx.js";
4
- const u = "_root_1yglr_1", p = "_indicator_1yglr_29", x = "_disabled_1yglr_44", e = {
5
- root: u,
6
- "size-normal": "_size-normal_1yglr_19",
7
- "size-large": "_size-large_1yglr_22",
8
- indicator: p,
9
- disabled: x
1
+ import { jsxs as x, jsx as e } from "react/jsx-runtime";
2
+ import a from "react";
3
+ import { clsx as b } from "../../utils/clsx.js";
4
+ const h = "cfxui__Radio__root__05f1c", R = "cfxui__Radio__indicator__2181e", p = "cfxui__Radio__disabled__c411f", o = {
5
+ root: h,
6
+ "size-normal": "cfxui__Radio__size-normal__6dccc",
7
+ "size-large": "cfxui__Radio__size-large__0a074",
8
+ indicator: R,
9
+ disabled: p
10
10
  };
11
- let r = 1;
12
- function C(n) {
11
+ let t = 1;
12
+ function C(d) {
13
13
  const {
14
- checked: a,
15
- onChange: i,
16
- label: d,
17
- size: c = "normal",
18
- className: _,
19
- disabled: t = !1
20
- } = n, m = s.useRef(r);
21
- s.useEffect(() => {
22
- r += 1;
14
+ checked: i,
15
+ onChange: n,
16
+ label: _,
17
+ size: l = "normal",
18
+ className: r,
19
+ disabled: s = !1
20
+ } = d, f = a.useRef(t);
21
+ a.useEffect(() => {
22
+ t += 1;
23
23
  }, []);
24
- const b = () => {
25
- i(!a);
26
- }, l = s.useId(), f = h(e.root, _, e[`size-${c}`], { [e.disabled]: t });
27
- return /* @__PURE__ */ g("label", { className: f, htmlFor: l, children: [
28
- /* @__PURE__ */ o(
24
+ const m = () => {
25
+ n(!i);
26
+ }, c = a.useId(), u = b(o.root, r, o[`size-${l}`], { [o.disabled]: s });
27
+ return /* @__PURE__ */ x("label", { className: u, htmlFor: c, children: [
28
+ /* @__PURE__ */ e(
29
29
  "input",
30
30
  {
31
31
  type: "radio",
32
- tabIndex: m.current,
33
- checked: a,
34
- disabled: t,
35
- onChange: b,
36
- id: l
32
+ tabIndex: f.current,
33
+ checked: i,
34
+ disabled: s,
35
+ onChange: m,
36
+ id: c
37
37
  }
38
38
  ),
39
- /* @__PURE__ */ o("div", { className: e.indicator }),
40
- /* @__PURE__ */ o("div", { className: e.label, children: d })
39
+ /* @__PURE__ */ e("div", { className: o.indicator }),
40
+ /* @__PURE__ */ e("div", { className: o.label, children: _ })
41
41
  ] });
42
42
  }
43
43
  export {