@cfx-dev/ui-components 4.2.23 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist/Combination-CSgOhzm-.js +2198 -0
  2. package/dist/Combination-N-vN9BB-.js +823 -0
  3. package/dist/Table.module-DHI1mXN2.js +17 -0
  4. package/dist/assets/all_css.css +1 -0
  5. package/dist/assets/css/Checkbox.css +1 -1
  6. package/dist/assets/css/DataTable.css +1 -0
  7. package/dist/assets/css/Table.css +1 -1
  8. package/dist/assets/general/global.css +1 -1
  9. package/dist/cfxIcons-B9nzO6TW.js +98 -0
  10. package/dist/components/Accordion/Accordion.js +25 -26
  11. package/dist/components/Accordion/AccordionShowcase.js +1 -1
  12. package/dist/components/Avatar/Avatar.d.ts +2 -1
  13. package/dist/components/Avatar/Avatar.js +21 -20
  14. package/dist/components/Avatar/AvatarShowcase.js +1 -1
  15. package/dist/components/Badge/Badge.d.ts +2 -1
  16. package/dist/components/Badge/Badge.js +29 -29
  17. package/dist/components/Badge/BadgeShowcase.js +1 -1
  18. package/dist/components/BurgerMenu/BurgerMenu.js +2 -2
  19. package/dist/components/BurgerMenu/BurgerMenuButton.js +1 -1
  20. package/dist/components/BurgerMenu/BurgerMenuShowcase.js +1 -1
  21. package/dist/components/Button/Button.d.ts +5 -2
  22. package/dist/components/Button/Button.js +83 -81
  23. package/dist/components/Button/ButtonShowcase.js +2 -2
  24. package/dist/components/Button/LinkButton.d.ts +1 -1
  25. package/dist/components/Button/LinkButton.js +18 -17
  26. package/dist/components/Button/index.d.ts +1 -1
  27. package/dist/components/Button/index.js +7 -7
  28. package/dist/components/Checkbox/Checkbox.d.ts +1 -0
  29. package/dist/components/Checkbox/Checkbox.js +154 -242
  30. package/dist/components/ClipboardButton/ClipboardButton.js +7 -7
  31. package/dist/components/ControlBox/ControlBox.d.ts +3 -2
  32. package/dist/components/ControlBox/ControlBox.js +13 -10
  33. package/dist/components/CountryFlag/CountryFlag.d.ts +3 -2
  34. package/dist/components/CountryFlag/CountryFlag.js +14 -11
  35. package/dist/components/DataTable/DataTable.d.ts +40 -0
  36. package/dist/components/DataTable/DataTable.js +163 -0
  37. package/dist/components/DataTable/DataTableShowcase.d.ts +5 -0
  38. package/dist/components/DataTable/DataTableShowcase.js +60 -0
  39. package/dist/components/DataTable/index.d.ts +2 -0
  40. package/dist/components/DataTable/index.js +6 -0
  41. package/dist/components/Decorate/Decorate.d.ts +3 -2
  42. package/dist/components/Decorate/Decorate.js +19 -15
  43. package/dist/components/Dot/Dot.d.ts +2 -1
  44. package/dist/components/Dot/Dot.js +15 -13
  45. package/dist/components/DropdownSelect/DropdownSelect.d.ts +2 -1
  46. package/dist/components/DropdownSelect/DropdownSelect.js +665 -1836
  47. package/dist/components/DropdownSelect/DropdownSelectShowcase.js +1 -1
  48. package/dist/components/Flyout/Flyout.d.ts +2 -1
  49. package/dist/components/Flyout/Flyout.js +22 -20
  50. package/dist/components/Icon/Icon.d.ts +2 -1
  51. package/dist/components/Icon/Icon.js +19 -17
  52. package/dist/components/IconBig/IconBig.d.ts +2 -1
  53. package/dist/components/IconBig/IconBig.js +16 -14
  54. package/dist/components/Icons/IconsShowcase.js +1 -1
  55. package/dist/components/Icons/cfx-icons/Radio.d.ts +5 -0
  56. package/dist/components/Icons/cfx-icons/Radio.js +36 -0
  57. package/dist/components/Icons/cfx-icons/Square.js +15 -9
  58. package/dist/components/Icons/cfxIcons.d.ts +1 -0
  59. package/dist/components/Icons/cfxIcons.js +62 -60
  60. package/dist/components/Icons/index.js +1 -1
  61. package/dist/components/Indicator/Indicator.js +9 -10
  62. package/dist/components/InfoPanel/InfoPanelShowcase.js +1 -1
  63. package/dist/components/Input/Input.d.ts +4 -1
  64. package/dist/components/Input/Input.js +101 -88
  65. package/dist/components/Input/InputShowcase.js +1 -1
  66. package/dist/components/Input/RichInput.d.ts +2 -1
  67. package/dist/components/Input/RichInput.js +37 -34
  68. package/dist/components/InputDropzone/InputDropzone.d.ts +1 -1
  69. package/dist/components/InputDropzone/InputDropzone.js +1723 -625
  70. package/dist/components/Interactive/Interactive.d.ts +2 -1
  71. package/dist/components/Interactive/Interactive.js +14 -12
  72. package/dist/components/Island/Island.d.ts +2 -1
  73. package/dist/components/Island/Island.js +24 -24
  74. package/dist/components/Layout/Box/Box.d.ts +8 -2
  75. package/dist/components/Layout/Box/Box.js +53 -51
  76. package/dist/components/Layout/Box/Box.types.d.ts +22 -0
  77. package/dist/components/Layout/Box/Box.types.js +4 -0
  78. package/dist/components/Layout/Box/index.d.ts +1 -1
  79. package/dist/components/Layout/Box/index.js +3 -3
  80. package/dist/components/Layout/Center/Center.d.ts +2 -1
  81. package/dist/components/Layout/Center/Center.js +19 -18
  82. package/dist/components/Layout/Flex/Flex.d.ts +6 -10
  83. package/dist/components/Layout/Flex/Flex.js +53 -64
  84. package/dist/components/Layout/Flex/FlexRestricter.d.ts +2 -1
  85. package/dist/components/Layout/Flex/FlexRestricter.js +13 -12
  86. package/dist/components/Layout/Flex/FlexShowcase.js +1 -1
  87. package/dist/components/Layout/Flex/index.d.ts +2 -2
  88. package/dist/components/Layout/Flex/index.js +8 -8
  89. package/dist/components/Layout/Page/Page.js +11 -12
  90. package/dist/components/Layout/Scrollable/Rail.d.ts +1 -1
  91. package/dist/components/Layout/Scrollable/Scrollable.d.ts +2 -1
  92. package/dist/components/Layout/Scrollable/Scrollable.js +40 -38
  93. package/dist/components/Layout/Scrollable/ScrollableShowcase.js +1 -1
  94. package/dist/components/Layout/Scrollable/VirtualScrollable.js +98 -98
  95. package/dist/components/Link/LinkShowcase.js +1 -1
  96. package/dist/components/Loaf/Loaf.d.ts +2 -1
  97. package/dist/components/Loaf/Loaf.js +17 -16
  98. package/dist/components/Logos/LogosShowcase.js +1 -1
  99. package/dist/components/Modal/Modal.js +16 -17
  100. package/dist/components/Modal/ModalShowcase.js +14 -11
  101. package/dist/components/NavList/NavList.d.ts +2 -1
  102. package/dist/components/NavList/NavList.js +19 -18
  103. package/dist/components/OnScreenSensor.js +1 -1
  104. package/dist/components/Overlay/Overlay.d.ts +4 -2
  105. package/dist/components/Overlay/Overlay.js +31 -23
  106. package/dist/components/Popover/Popover.d.ts +3 -2
  107. package/dist/components/Popover/Popover.js +31 -30
  108. package/dist/components/Popover/PopoverShowcase.js +4 -4
  109. package/dist/components/PremiumBadge/PremiumBadge.d.ts +2 -1
  110. package/dist/components/PremiumBadge/PremiumBadge.js +12 -11
  111. package/dist/components/Select/Select.d.ts +1 -1
  112. package/dist/components/Select/Select.js +666 -1617
  113. package/dist/components/Select/SelectShowcase.js +1 -1
  114. package/dist/components/Shroud/Shroud.d.ts +2 -1
  115. package/dist/components/Shroud/Shroud.js +16 -14
  116. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  117. package/dist/components/Skeleton/Skeleton.js +26 -27
  118. package/dist/components/Skeleton/SkeletonShowcase.js +4 -4
  119. package/dist/components/Slider/Slider.d.ts +2 -1
  120. package/dist/components/Slider/Slider.js +326 -377
  121. package/dist/components/Slider/SliderShowcase.js +1 -1
  122. package/dist/components/Switch/Switch.js +109 -155
  123. package/dist/components/Table/TableBody.d.ts +8 -0
  124. package/dist/components/Table/TableBody.js +14 -0
  125. package/dist/components/Table/TableCell.d.ts +11 -0
  126. package/dist/components/Table/TableCell.js +54 -0
  127. package/dist/components/Table/TableCellCheckbox.d.ts +11 -0
  128. package/dist/components/Table/TableCellCheckbox.js +20 -0
  129. package/dist/components/Table/TableHeader.d.ts +9 -0
  130. package/dist/components/Table/TableHeader.js +24 -0
  131. package/dist/components/Table/TableIconButton.d.ts +6 -0
  132. package/dist/components/Table/TableIconButton.js +16 -0
  133. package/dist/components/Table/TableRoot.d.ts +8 -0
  134. package/dist/components/Table/TableRoot.js +23 -0
  135. package/dist/components/Table/TableRow.d.ts +13 -0
  136. package/dist/components/Table/TableRow.js +46 -0
  137. package/dist/components/Table/TableShowcase.js +56 -57
  138. package/dist/components/Table/index.d.ts +20 -2
  139. package/dist/components/Table/index.js +17 -5
  140. package/dist/components/Tabular/TabularShowcase.js +1 -1
  141. package/dist/components/Text/Text.d.ts +6 -3
  142. package/dist/components/Text/Text.js +67 -63
  143. package/dist/components/Text/TextShowcase.js +40 -33
  144. package/dist/components/Title/Title.d.ts +3 -1
  145. package/dist/components/Title/TitleShowcase.js +1 -1
  146. package/dist/components/ToggleGroup/ToggleGroupShowcase.js +1 -1
  147. package/dist/index-BHuChyf5.js +238 -0
  148. package/dist/index-Cl_RnsqN.js +386 -0
  149. package/dist/index-DZEAOJqB.js +53 -0
  150. package/dist/index-HDl8nGsm.js +70 -0
  151. package/dist/main.d.ts +7 -5
  152. package/dist/main.js +181 -179
  153. package/dist/{medium-BA3EQDZW.js → medium-Bq5NvyU7.js} +1 -1
  154. package/dist/styles-scss/global.scss +1 -0
  155. package/dist/tslib.es6-CtHwNPxX.js +72 -0
  156. package/dist/utils/hooks/useClipboardComponent.d.ts +1 -1
  157. package/dist/utils/hooks/useOutlet.js +1 -1
  158. package/dist/utils/hooks/usePopoverController.d.ts +1 -1
  159. package/dist/utils/links.js +1 -1
  160. package/dist/utils/mergeRefs.d.ts +1 -1
  161. package/dist/utils/mergeRefs.js +1 -1
  162. package/dist/utils/ui/ui.d.ts +1 -0
  163. package/dist/utils/ui/ui.js +45 -36
  164. package/dist/utils/ui/ui.types.d.ts +4 -0
  165. package/package.json +6 -5
  166. package/dist/Combination-Cbiw1XRb.js +0 -792
  167. package/dist/cfxIcons-BNd1WgpX.js +0 -96
  168. package/dist/components/Table/Table.d.ts +0 -42
  169. package/dist/components/Table/Table.js +0 -170
  170. package/dist/index-2hJuj4UN.js +0 -19069
  171. package/dist/index-AweK2ufS.js +0 -171
  172. package/dist/index-BlbvKsmN.js +0 -82
  173. package/dist/index-ByaXH_ih.js +0 -10
  174. package/dist/index-Bz27DCHt.js +0 -1342
  175. package/dist/index-Cf5Yu9oD.js +0 -67
  176. package/dist/tslib.es6-CBKHJX9H.js +0 -151
@@ -1,27 +1,28 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import e from "react";
3
- import { clsx as m } from "../../utils/clsx.js";
4
- const n = "cfxui__Loaf__root__05393", u = "cfxui__Loaf__bright__6638c", o = {
5
- root: n,
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { clsx as t } from "../../utils/clsx.js";
3
+ const m = "cfxui__Loaf__root__05393", n = "cfxui__Loaf__bright__6638c", o = {
4
+ root: m,
6
5
  "color-normal": "cfxui__Loaf__color-normal__bec17",
7
- bright: u,
6
+ bright: n,
8
7
  "color-gold": "cfxui__Loaf__color-gold__4fa59",
9
8
  "color-error": "cfxui__Loaf__color-error__9887b",
10
9
  "size-small": "cfxui__Loaf__size-small__942f7",
11
10
  "size-normal": "cfxui__Loaf__size-normal__7b2a1",
12
11
  "size-large": "cfxui__Loaf__size-large__1679c"
13
- }, z = e.forwardRef(function(_, r) {
12
+ };
13
+ function g(_) {
14
14
  const {
15
- size: a = "normal",
15
+ size: r = "normal",
16
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
17
+ bright: a = !1,
18
+ children: l,
19
+ className: i,
20
+ ref: s
21
+ } = _, f = t(o.root, o[`size-${r}`], o[`color-${c}`], i, {
22
+ [o.bright]: a
22
23
  });
23
- return /* @__PURE__ */ t("div", { ref: r, className: s, children: f });
24
- });
24
+ return /* @__PURE__ */ e("div", { ref: s, className: f, children: l });
25
+ }
25
26
  export {
26
- z as Loaf
27
+ g as Loaf
27
28
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
2
  import d from "react";
3
3
  import { Island as c } from "../Island/Island.js";
4
- import { Flex as m } from "../Layout/Flex/Flex.js";
4
+ import m from "../Layout/Flex/Flex.js";
5
5
  import { Pad as l } from "../Layout/Pad/Pad.js";
6
6
  import { Text as a } from "../Text/Text.js";
7
7
  import "../../utils/ui/ui.js";
@@ -1,19 +1,18 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as a } 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
- import "../Button/LinkButton.js";
6
- import x from "../IconButton/IconButton.js";
5
+ import "../../utils/links.js";
6
+ import y from "../IconButton/IconButton.js";
7
7
  import { Overlay as t } from "../Overlay/Overlay.js";
8
8
  import { Text as m } from "../Text/Text.js";
9
9
  import "../../utils/ui/ui.js";
10
10
  import { clsx as s } from "../../utils/clsx.js";
11
11
  import "../../utils/hooks/useGlobalKeyboardEvent.js";
12
- import { useKeyboardClose as y } from "../../utils/hooks/useKeyboardClose.js";
13
- import "../../index-2hJuj4UN.js";
14
- const M = "cfxui__Modal__root__53283", B = "cfxui__Modal__close__2df9b", v = "cfxui__Modal__header__bec76", g = "cfxui__Modal__footer__bb2fc", a = {
12
+ import { useKeyboardClose as x } from "../../utils/hooks/useKeyboardClose.js";
13
+ import "../../index-Cl_RnsqN.js";
14
+ const M = "cfxui__Modal__root__53283", B = "cfxui__Modal__close__2df9b", v = "cfxui__Modal__header__bec76", g = "cfxui__Modal__footer__bb2fc", r = {
15
15
  root: M,
16
- "modal-appearance": "cfxui__Modal__modal-appearance__60dd7",
17
16
  close: B,
18
17
  header: v,
19
18
  footer: g
@@ -33,15 +32,15 @@ function _(c) {
33
32
  } = c, n = N.useCallback(() => {
34
33
  d || !o || o();
35
34
  }, [o, d]);
36
- return y(n), /* @__PURE__ */ i(t, { className: s(a.overlay, f), children: [
37
- /* @__PURE__ */ r(
35
+ return x(n), /* @__PURE__ */ i(t, { className: s(r.overlay, f), children: [
36
+ /* @__PURE__ */ a(
38
37
  t.Backdrop,
39
38
  {
40
39
  onClick: n,
41
- className: s(a.backdrop, p)
40
+ className: s(r.backdrop, p)
42
41
  }
43
42
  ),
44
- /* @__PURE__ */ r(
43
+ /* @__PURE__ */ a(
45
44
  t.Content,
46
45
  {
47
46
  className: b,
@@ -52,9 +51,9 @@ function _(c) {
52
51
  role: "dialog",
53
52
  "aria-describedby": u,
54
53
  "aria-labelledby": h,
55
- className: s(a.root, e),
54
+ className: s(r.root, e),
56
55
  children: [
57
- !!o && /* @__PURE__ */ r(x, { areaSize: "large", className: a.close, name: "Close", onClick: o }),
56
+ !!o && /* @__PURE__ */ a(y, { areaSize: "large", className: r.close, name: "Close", onClick: o }),
58
57
  l
59
58
  ]
60
59
  }
@@ -68,8 +67,8 @@ _.Header = function(o) {
68
67
  title: l,
69
68
  description: e
70
69
  } = o;
71
- return /* @__PURE__ */ i("div", { className: a.header, children: [
72
- /* @__PURE__ */ r(
70
+ return /* @__PURE__ */ i("div", { className: r.header, children: [
71
+ /* @__PURE__ */ a(
73
72
  m,
74
73
  {
75
74
  weight: "bold",
@@ -77,7 +76,7 @@ _.Header = function(o) {
77
76
  children: l
78
77
  }
79
78
  ),
80
- e && /* @__PURE__ */ r(
79
+ e && /* @__PURE__ */ a(
81
80
  m,
82
81
  {
83
82
  size: "small",
@@ -92,7 +91,7 @@ _.Footer = function(o) {
92
91
  className: l,
93
92
  ...e
94
93
  } = o;
95
- return /* @__PURE__ */ r(k, { ...e, className: s(a.footer, l) });
94
+ return /* @__PURE__ */ a(k, { ...e, className: s(r.footer, l) });
96
95
  };
97
96
  export {
98
97
  _ as Modal
@@ -1,14 +1,17 @@
1
1
  import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
2
  import i from "react";
3
- import { Button as l } from "../Button/Button.js";
4
- import "../Button/LinkButton.js";
3
+ import l from "../Button/Button.js";
4
+ import "../../utils/links.js";
5
5
  import n from "../Input/Input.js";
6
- import "../Input/RichInput.js";
7
- import { Box as c } from "../Layout/Box/Box.js";
8
- import { LOREM_IPSUM as s } from "../../utils/loremipsum.js";
6
+ import "../../utils/hooks/useGlobalKeyboardEvent.js";
7
+ import "../../utils/hooks/useKeyboardClose.js";
8
+ import "../../index-Cl_RnsqN.js";
9
+ import "../../utils/ui/ui.js";
10
+ import p from "../Layout/Box/Box.js";
11
+ import { LOREM_IPSUM as c } from "../../utils/loremipsum.js";
9
12
  import { Modal as r } from "./Modal.js";
10
- function p() {
11
- const [d, a] = i.useState(!1), t = i.useCallback(() => a((m) => !m), []);
13
+ function s() {
14
+ const [d, m] = i.useState(!1), t = i.useCallback(() => m((a) => !a), []);
12
15
  return /* @__PURE__ */ e(
13
16
  "div",
14
17
  {
@@ -22,9 +25,9 @@ function p() {
22
25
  /* @__PURE__ */ o(l, { theme: "primary", onClick: t, text: "Toggle Modal" }),
23
26
  d && /* @__PURE__ */ e(r, { onClose: t, children: [
24
27
  /* @__PURE__ */ o(r.Header, { title: "Modal Title", description: "Modal Description" }),
25
- /* @__PURE__ */ o(c, { mb: 4, children: /* @__PURE__ */ o(n, { theme: "onlight", placeholder: "Input", fullWidth: !0 }) }),
28
+ /* @__PURE__ */ o(p, { mb: 4, children: /* @__PURE__ */ o(n, { theme: "onlight", placeholder: "Input", fullWidth: !0 }) }),
26
29
  "Modal content: ",
27
- s,
30
+ c,
28
31
  /* @__PURE__ */ e(r.Footer, { children: [
29
32
  /* @__PURE__ */ o(
30
33
  l,
@@ -50,7 +53,7 @@ function p() {
50
53
  }
51
54
  );
52
55
  }
53
- const S = i.memo(p);
56
+ const b = i.memo(s);
54
57
  export {
55
- S as default
58
+ b as default
56
59
  };
@@ -10,5 +10,6 @@ export interface NavListProps {
10
10
  items: NavListItem[];
11
11
  activeItemId: string;
12
12
  onActivate?(id: string): void;
13
+ ref?: React.Ref<HTMLDivElement>;
13
14
  }
14
- export declare const NavList: React.ForwardRefExoticComponent<NavListProps & React.RefAttributes<HTMLDivElement>>;
15
+ export declare function NavList(props: NavListProps): import("react/jsx-runtime").JSX.Element;
@@ -1,24 +1,25 @@
1
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";
2
+ import { Interactive as l } from "../Interactive/Interactive.js";
3
+ import { clsx as v } from "../../utils/clsx.js";
4
+ import { noop as d } from "../../utils/functional.js";
6
5
  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,
6
+ const f = "cfxui__NavList__root__6fbf7", N = "cfxui__NavList__item__d5754", p = "cfxui__NavList__active__4634d", x = "cfxui__NavList__icon__9a57e", o = {
7
+ root: f,
8
+ item: N,
9
+ active: p,
11
10
  icon: x
12
- }, k = d.forwardRef(function(a, e) {
11
+ };
12
+ function j(e) {
13
13
  const {
14
14
  items: s,
15
- activeItemId: r,
16
- onActivate: _ = v
17
- } = a, n = s.map((i) => /* @__PURE__ */ m(
18
- f,
15
+ activeItemId: a,
16
+ onActivate: n = d,
17
+ ref: _
18
+ } = e, r = s.map((i) => /* @__PURE__ */ m(
19
+ l,
19
20
  {
20
- className: l(o.item, { [o.active]: i.id === r }),
21
- onClick: () => _(i.id),
21
+ className: v(o.item, { [o.active]: i.id === a }),
22
+ onClick: () => n(i.id),
22
23
  children: [
23
24
  !!i.icon && /* @__PURE__ */ t("div", { className: o.icon, children: c(i.icon) }),
24
25
  /* @__PURE__ */ t("div", { className: o.label, children: c(i.label) })
@@ -26,8 +27,8 @@ const N = "cfxui__NavList__root__6fbf7", p = "cfxui__NavList__item__d5754", u =
26
27
  },
27
28
  i.id
28
29
  ));
29
- return /* @__PURE__ */ t("div", { ref: e, className: o.root, children: n });
30
- });
30
+ return /* @__PURE__ */ t("div", { ref: _, className: o.root, children: r });
31
+ }
31
32
  export {
32
- k as NavList
33
+ j as NavList
33
34
  };
@@ -4,7 +4,7 @@ import { noop as o } from "../utils/functional.js";
4
4
  import { useDynamicRef as s } from "../utils/hooks/useDynamicRef.js";
5
5
  import "../utils/hooks/useGlobalKeyboardEvent.js";
6
6
  import "../utils/hooks/useKeyboardClose.js";
7
- import "../index-2hJuj4UN.js";
7
+ import "../index-Cl_RnsqN.js";
8
8
  const l = {
9
9
  width: "0",
10
10
  height: "0"
@@ -7,11 +7,12 @@ export interface OverlayProps {
7
7
  }
8
8
  export declare function Overlay(props: OverlayProps): import("react/jsx-runtime").JSX.Element;
9
9
  export declare namespace Overlay {
10
- var Backdrop: React.ForwardRefExoticComponent<OverlayBackdropProps & React.RefAttributes<HTMLDivElement>>;
11
- var Content: React.ForwardRefExoticComponent<OverlayContentProps & React.RefAttributes<HTMLDivElement>>;
10
+ var Backdrop: (props: OverlayBackdropProps) => import("react/jsx-runtime").JSX.Element;
11
+ var Content: (props: OverlayContentProps) => import("react/jsx-runtime").JSX.Element;
12
12
  }
13
13
  export interface OverlayBackdropProps {
14
14
  children?: React.ReactNode;
15
+ ref?: React.Ref<HTMLDivElement>;
15
16
  className?: string;
16
17
  onClick?(): void;
17
18
  }
@@ -19,4 +20,5 @@ export interface OverlayContentProps {
19
20
  children?: React.ReactNode;
20
21
  className?: string;
21
22
  disableFocusLock?: boolean;
23
+ ref?: React.Ref<HTMLDivElement>;
22
24
  }
@@ -1,34 +1,42 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import l from "react";
3
- import { F as _ } from "../../Combination-Cbiw1XRb.js";
4
- import { Interactive as d } from "../Interactive/Interactive.js";
5
- import { clsx as a } from "../../utils/clsx.js";
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { F as m } from "../../Combination-N-vN9BB-.js";
3
+ import { Interactive as _ } from "../Interactive/Interactive.js";
4
+ import { clsx as s } from "../../utils/clsx.js";
5
+ import "react";
6
6
  import "../../utils/hooks/useGlobalKeyboardEvent.js";
7
7
  import "../../utils/hooks/useKeyboardClose.js";
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 = {
8
+ import { useOutlet as d } from "../../utils/hooks/useOutlet.js";
9
+ const f = "cfxui__Overlay__root__7221c", p = "cfxui__Overlay__backdrop__bc193", u = "cfxui__Overlay__content__002f3", l = {
10
10
  root: f,
11
- backdrop: u,
12
- "backdrop-appearance": "cfxui__Overlay__backdrop-appearance__785a5",
13
- content: p
14
- }, k = "overlay-outlet";
15
- function i(t) {
11
+ backdrop: p,
12
+ content: u
13
+ }, v = "overlay-outlet";
14
+ function i(n) {
16
15
  const {
17
16
  className: o,
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 }) });
17
+ children: t
18
+ } = n, r = s(l.root, o), c = d(v);
19
+ return /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e("div", { className: r, children: t }) });
21
20
  }
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
- });
25
- i.Content = l.forwardRef(function(o, c) {
21
+ i.Backdrop = function(o) {
26
22
  const {
27
- disableFocusLock: e = !1
23
+ className: t,
24
+ ref: r,
25
+ onClick: c,
26
+ children: a
28
27
  } = o;
29
- return /* @__PURE__ */ r("div", { ref: c, className: a(n.content, o.className), children: /* @__PURE__ */ r(_, { disabled: e, children: o.children }) });
30
- });
28
+ return /* @__PURE__ */ e(_, { ref: r, onClick: c, className: s(l.backdrop, t), children: a });
29
+ };
30
+ i.Content = function(o) {
31
+ const {
32
+ disableFocusLock: t = !1,
33
+ className: r,
34
+ children: c,
35
+ ref: a
36
+ } = o;
37
+ return /* @__PURE__ */ e("div", { ref: a, className: s(l.content, r), children: /* @__PURE__ */ e(m, { disabled: t, children: c }) });
38
+ };
31
39
  export {
32
- k as OVERLAY_OUTLET_ID,
40
+ v as OVERLAY_OUTLET_ID,
33
41
  i as Overlay
34
42
  };
@@ -2,13 +2,14 @@ import { default as React } from 'react';
2
2
  import { InteractiveProps } from '../Interactive/Interactive';
3
3
 
4
4
  export type PopoverPosition = 'top-right' | 'top-left';
5
- export interface PopoverProps extends Omit<InteractiveProps, 'children'> {
5
+ export interface PopoverProps extends Omit<InteractiveProps, 'children' | 'popover'> {
6
6
  at?: PopoverPosition;
7
7
  as?: React.ElementType;
8
8
  popover: React.ReactNode;
9
9
  children: (active: boolean) => React.ReactNode;
10
+ ref?: React.Ref<HTMLDivElement>;
10
11
  active?: boolean;
11
12
  rootClassName?: string;
12
13
  popoverClassName?: string;
13
14
  }
14
- export declare const Popover: React.ForwardRefExoticComponent<Omit<PopoverProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ export declare function Popover(props: PopoverProps): import("react/jsx-runtime").JSX.Element;
@@ -1,46 +1,47 @@
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";
1
+ import { jsxs as P, jsx as h } from "react/jsx-runtime";
2
+ import { Interactive as d } from "../Interactive/Interactive.js";
4
3
  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
- root: C,
7
- active: g,
8
- popover: w,
4
+ const N = "cfxui__Popover__root__4521b", C = "cfxui__Popover__active__e4504", g = "cfxui__Popover__popover__bea1e", M = "cfxui__Popover__appearance__20d42", o = {
5
+ root: N,
6
+ active: C,
7
+ popover: g,
9
8
  appearance: M,
10
9
  "pos-top-right": "cfxui__Popover__pos-top-right__95a54",
11
10
  "pos-top-left": "cfxui__Popover__pos-top-left__a93aa"
12
- }, E = h.forwardRef(function(t, s) {
11
+ };
12
+ function A(s) {
13
13
  const {
14
- at: p = "top-right",
15
- as: a = "div",
16
- popover: _,
17
- children: c,
18
- active: i = !1,
19
- onMouseEnter: n,
20
- onMouseLeave: v,
21
- onMouseDown: f,
22
- rootClassName: l,
23
- popoverClassName: m
24
- } = t, e = i, u = r(o.root, l, {
14
+ at: t = "top-right",
15
+ as: p = "div",
16
+ popover: a,
17
+ children: _,
18
+ active: c = !1,
19
+ onMouseEnter: i,
20
+ onMouseLeave: n,
21
+ onMouseDown: v,
22
+ rootClassName: f,
23
+ popoverClassName: l,
24
+ ref: m
25
+ } = s, e = c, u = r(o.root, f, {
25
26
  [o.active]: e
26
- }), x = r(o.popover, m, o[`pos-${p}`]);
27
+ }), x = r(o.popover, l, o[`pos-${t}`]);
27
28
  return /* @__PURE__ */ P(
28
- N,
29
+ d,
29
30
  {
30
- as: a,
31
- ref: s,
31
+ as: p,
32
+ ref: m,
32
33
  showPointer: !1,
33
34
  className: u,
34
- onMouseEnter: n,
35
- onMouseLeave: v,
36
- onMouseDown: f,
35
+ onMouseEnter: i,
36
+ onMouseLeave: n,
37
+ onMouseDown: v,
37
38
  children: [
38
- c(e),
39
- e && /* @__PURE__ */ d("div", { className: x, children: _ })
39
+ _(e),
40
+ e && /* @__PURE__ */ h("div", { className: x, children: a })
40
41
  ]
41
42
  }
42
43
  );
43
- });
44
+ }
44
45
  export {
45
- E as Popover
46
+ A as Popover
46
47
  };
@@ -1,12 +1,12 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import s from "react";
3
- import { Button as a } from "../Button/Button.js";
4
- import "../Button/LinkButton.js";
5
- import { Flex as m } from "../Layout/Flex/Flex.js";
3
+ import a from "../Button/Button.js";
4
+ import "../../utils/links.js";
5
+ import 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
- import "../../index-2hJuj4UN.js";
9
+ import "../../index-Cl_RnsqN.js";
10
10
  import { Popover as l } from "./Popover.js";
11
11
  const v = "cfxui__PopoverShowcase__popover__432d2", c = {
12
12
  popover: v
@@ -10,6 +10,7 @@ export type PremiumBadgeLevel = keyof typeof map | string;
10
10
  export interface PremiumBadgeProps {
11
11
  level: PremiumBadgeLevel;
12
12
  className?: string;
13
+ ref?: React.Ref<HTMLDivElement>;
13
14
  }
14
- export declare const PremiumBadge: React.ForwardRefExoticComponent<PremiumBadgeProps & React.RefAttributes<HTMLDivElement>>;
15
+ export declare function PremiumBadge(props: PremiumBadgeProps): import("react/jsx-runtime").JSX.Element | null;
15
16
  export {};
@@ -1,9 +1,8 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
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
2
+ import { Title as m } from "../Title/Title.js";
3
+ import { clsx as a } from "../../utils/clsx.js";
4
+ const g = "cfxui__PremiumBadge__root__7477e", s = {
5
+ root: g
7
6
  }, t = {
8
7
  ag: {
9
8
  // https://github.com/microsoft/fluentui-emoji/tree/main/assets/Optical%20disk
@@ -23,16 +22,18 @@ const s = "cfxui__PremiumBadge__root__7477e", c = {
23
22
  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
23
  title: "Element Club Platinum"
25
24
  }
26
- }, f = m.forwardRef(function(l, i) {
25
+ };
26
+ function p(l) {
27
27
  const {
28
28
  level: C,
29
- className: r
29
+ className: i,
30
+ ref: r
30
31
  } = l;
31
32
  if (!t[C])
32
33
  return null;
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
- });
34
+ const o = a(s.root, i);
35
+ return /* @__PURE__ */ e("div", { ref: r, className: o, children: /* @__PURE__ */ e(m, { title: t[C].title, children: /* @__PURE__ */ e("img", { src: t[C].imgSrc, alt: t[C].title }) }) });
36
+ }
36
37
  export {
37
- f as PremiumBadge
38
+ p as PremiumBadge
38
39
  };
@@ -16,4 +16,4 @@ export interface SelectProps<T = string> {
16
16
  size?: ResponsiveValueType<InputSize>;
17
17
  fullWidth?: boolean;
18
18
  }
19
- export declare const Select: React.ForwardRefExoticComponent<SelectProps<string> & React.RefAttributes<unknown>>;
19
+ export declare function Select(props: SelectProps): import("react/jsx-runtime").JSX.Element;