@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
@@ -0,0 +1,70 @@
1
+ import * as a from "react";
2
+ import { u as T, a as A } from "./index-BHuChyf5.js";
3
+ function E(n, e) {
4
+ return a.useReducer((r, t) => e[r][t] ?? r, n);
5
+ }
6
+ var R = (n) => {
7
+ const { present: e, children: r } = n, t = P(e), o = typeof r == "function" ? r({ present: t.isPresent }) : a.Children.only(r), c = T(t.ref, v(o));
8
+ return typeof r == "function" || t.isPresent ? a.cloneElement(o, { ref: c }) : null;
9
+ };
10
+ R.displayName = "Presence";
11
+ function P(n) {
12
+ const [e, r] = a.useState(), t = a.useRef(null), o = a.useRef(n), c = a.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = E(p, {
13
+ mounted: {
14
+ UNMOUNT: "unmounted",
15
+ ANIMATION_OUT: "unmountSuspended"
16
+ },
17
+ unmountSuspended: {
18
+ MOUNT: "mounted",
19
+ ANIMATION_END: "unmounted"
20
+ },
21
+ unmounted: {
22
+ MOUNT: "mounted"
23
+ }
24
+ });
25
+ return a.useEffect(() => {
26
+ const i = l(t.current);
27
+ c.current = N === "mounted" ? i : "none";
28
+ }, [N]), A(() => {
29
+ const i = t.current, m = o.current;
30
+ if (m !== n) {
31
+ const f = c.current, u = l(i);
32
+ n ? s("MOUNT") : u === "none" || (i == null ? void 0 : i.display) === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), o.current = n;
33
+ }
34
+ }, [n, s]), A(() => {
35
+ if (e) {
36
+ let i;
37
+ const m = e.ownerDocument.defaultView ?? window, d = (u) => {
38
+ const g = l(t.current).includes(u.animationName);
39
+ if (u.target === e && g && (s("ANIMATION_END"), !o.current)) {
40
+ const O = e.style.animationFillMode;
41
+ e.style.animationFillMode = "forwards", i = m.setTimeout(() => {
42
+ e.style.animationFillMode === "forwards" && (e.style.animationFillMode = O);
43
+ });
44
+ }
45
+ }, f = (u) => {
46
+ u.target === e && (c.current = l(t.current));
47
+ };
48
+ return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
49
+ m.clearTimeout(i), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
50
+ };
51
+ } else
52
+ s("ANIMATION_END");
53
+ }, [e, s]), {
54
+ isPresent: ["mounted", "unmountSuspended"].includes(N),
55
+ ref: a.useCallback((i) => {
56
+ t.current = i ? getComputedStyle(i) : null, r(i);
57
+ }, [])
58
+ };
59
+ }
60
+ function l(n) {
61
+ return (n == null ? void 0 : n.animationName) || "none";
62
+ }
63
+ function v(n) {
64
+ var t, o;
65
+ let e = (t = Object.getOwnPropertyDescriptor(n.props, "ref")) == null ? void 0 : t.get, r = e && "isReactWarning" in e && e.isReactWarning;
66
+ return r ? n.ref : (e = (o = Object.getOwnPropertyDescriptor(n, "ref")) == null ? void 0 : o.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? n.props.ref : n.props.ref || n.ref);
67
+ }
68
+ export {
69
+ R as P
70
+ };
package/dist/main.d.ts CHANGED
@@ -7,7 +7,7 @@ export type { OutletPosition, UseClipboardProps, } from './utils/hooks';
7
7
  export { noop, returnTrue, returnFalse, identity, invoke, } from './utils/functional';
8
8
  export { isExternalUrl, matchLinks, matchLinkNodes, defaultLinkReplacerx, defaultLinkReplacer, linkifyx, linkify, Linkify, } from './utils/links';
9
9
  export type { ILinkSubstitute, ILinkMatch, LinkifyProps, } from './utils/links';
10
- export { clamp01, clamp, } from './utils/math';
10
+ export { clamp01, clamp, minmax, } from './utils/math';
11
11
  export { unicodeCharAt, splitByIndices, replaceRange, normalizeSlashes, isTrueString, isFalseString, } from './utils/string';
12
12
  export { debounce, throttle, } from './utils/execution';
13
13
  export type { SetTimeoutReturn } from './utils/execution';
@@ -64,12 +64,12 @@ export { Interactive } from './components/Interactive';
64
64
  export type { InteractiveProps } from './components/Interactive';
65
65
  export { Island, IslandCorner } from './components/Island';
66
66
  export type { IslandProps } from './components/Island';
67
- export { Box, flexPropFormater } from './components/Layout/Box';
67
+ export { Box, stringPropFormater } from './components/Layout/Box';
68
68
  export type { BoxProps } from './components/Layout/Box';
69
69
  export { Center } from './components/Layout/Center';
70
70
  export type { CenterProps } from './components/Layout/Center';
71
71
  export { Flex, FlexRestricter, FlexAlignItemsEnum, FlexDirectionEnum, FlexJustifyContentEnum, FlexWrapEnum, } from './components/Layout/Flex';
72
- export type { FlexType, FlexProps, FlexRestricterProps, FlexAlignItemsType, FlexDirectionType, FlexJustifyContentType, FlexWrapType, } from './components/Layout/Flex';
72
+ export type { FlexProps, FlexRestricterProps, FlexAlignItemsType, FlexDirectionType, FlexJustifyContentType, FlexWrapType, } from './components/Layout/Flex';
73
73
  export { Pad } from './components/Layout/Pad';
74
74
  export type { PadProps } from './components/Layout/Pad';
75
75
  export { Page } from './components/Layout/Page';
@@ -112,8 +112,10 @@ export { ToggleGroup } from './components/ToggleGroup';
112
112
  export type { ToggleGroupOption, ToggleGroupProps } from './components/ToggleGroup';
113
113
  export { Tabular } from './components/Tabular';
114
114
  export type { TabularProps, TabularItem, TabularRootProps, } from './components/Tabular';
115
- export { Table, TableIconButton, TableHeaderItem, TableRow, } from './components/Table';
116
- export type { TableHeaderType, TableProps, TableRowType, TableDataContainerType, TableHeaderItemProps, TableRowProps, } from './components/Table';
115
+ export { DataTable, DataTableHeaderItem, DataTableRow, } from './components/DataTable';
116
+ export type { DataTableHeaderType, DataTableProps, DataTableRowType, DataTableContainerType, DataTableHeaderItemProps, DataTableRowProps, } from './components/DataTable';
117
+ export { Table } from './components/Table';
118
+ export type { TableRootProps, TableBodyProps, TableHeaderProps, TableCellProps, TableRowProps, } from './components/Table';
117
119
  export { TextSizeEnum, Text, TextBlock, getTextOpacity, DEFAULT_TEXT_COLOR, TEXT_OPACITY_MAP, textSizeResponsiveValueFormatter, } from './components/Text';
118
120
  export type { TextSize, TextWeight, TextOpacity, TextAs, TextLetterSpacing, TextProps, TextColorProps, TextFamaly, } from './components/Text';
119
121
  export { Textarea } from './components/Textarea';
package/dist/main.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { mergeRefs as e } from "./utils/mergeRefs.js";
2
- import { clsx as m } from "./utils/clsx.js";
3
- import { getValue as p } from "./utils/getValue.js";
2
+ import { clsx as a } from "./utils/clsx.js";
3
+ import { getValue as f } from "./utils/getValue.js";
4
4
  import { usePopoverController as x } from "./utils/hooks/usePopoverController.js";
5
5
  import { useInstance as l } from "./utils/hooks/useInstance.js";
6
6
  import { useDynamicRef as s } from "./utils/hooks/useDynamicRef.js";
@@ -9,213 +9,215 @@ import { useKeyboardClose as T } from "./utils/hooks/useKeyboardClose.js";
9
9
  import { useWindowResize as C } from "./utils/hooks/useWindowResize.js";
10
10
  import { useOutlet as E } from "./utils/hooks/useOutlet.js";
11
11
  import { CLIPBOARD_TITLE_APPEARANCE as L, useClipboardComponent as S } from "./utils/hooks/useClipboardComponent.js";
12
- import { identity as R, invoke as k, noop as A, returnFalse as O, returnTrue as P } from "./utils/functional.js";
13
- import { Linkify as D, defaultLinkReplacer as F, defaultLinkReplacerx as _, isExternalUrl as v, linkify as h, linkifyx as U, matchLinkNodes as z, matchLinks as w } from "./utils/links.js";
14
- import { clamp as N, clamp01 as G } from "./utils/math.js";
15
- import { isFalseString as K, isTrueString as Y, normalizeSlashes as H, replaceRange as W, splitByIndices as X, unicodeCharAt as J } from "./utils/string.js";
16
- import { debounce as Z, throttle as j } from "./utils/execution.js";
17
- import { getColor as $ } from "./utils/color.js";
18
- import { ui as ro } from "./utils/ui/ui.js";
19
- import { BorderRadiusEnum as to, ColorEnum as mo, MediaQueryEnum as fo, OffsetEnum as po, TextSizeEnum as ao, ZIndexEnum as xo } from "./utils/ui/ui.types.js";
20
- import { isInEnum as lo } from "./utils/enum.js";
21
- import { default as so } from "./components/IconButton/IconButton.js";
22
- import { Accordion as co, AccordionContent as To, AccordionHeader as Io, AccordionItem as Co, AccordionTrigger as Bo } from "./components/Accordion/Accordion.js";
23
- import { default as go } from "./components/ClipboardButton/ClipboardButton.js";
24
- import { default as So } from "./components/Checkbox/Checkbox.js";
25
- import { Button as Ro, ButtonContent as ko, getButtonClassName as Ao } from "./components/Button/Button.js";
12
+ import { identity as R, invoke as k, noop as A, returnFalse as D, returnTrue as O } from "./utils/functional.js";
13
+ import { Linkify as b, defaultLinkReplacer as F, defaultLinkReplacerx as _, isExternalUrl as v, linkify as h, linkifyx as U, matchLinkNodes as z, matchLinks as w } from "./utils/links.js";
14
+ import { clamp as N, clamp01 as G, minmax as V } from "./utils/math.js";
15
+ import { isFalseString as Y, isTrueString as H, normalizeSlashes as W, replaceRange as X, splitByIndices as J, unicodeCharAt as Q } from "./utils/string.js";
16
+ import { debounce as j, throttle as q } from "./utils/execution.js";
17
+ import { getColor as oo } from "./utils/color.js";
18
+ import { ui as eo } from "./utils/ui/ui.js";
19
+ import { BorderRadiusEnum as ao, ColorEnum as mo, MediaQueryEnum as fo, OffsetEnum as po, TextSizeEnum as xo, ZIndexEnum as no } from "./utils/ui/ui.types.js";
20
+ import { isInEnum as uo } from "./utils/enum.js";
21
+ import { default as io } from "./components/IconButton/IconButton.js";
22
+ import { Accordion as To, AccordionContent as Io, AccordionHeader as Co, AccordionItem as go, AccordionTrigger as Eo } from "./components/Accordion/Accordion.js";
23
+ import { default as Lo } from "./components/ClipboardButton/ClipboardButton.js";
24
+ import { default as yo } from "./components/Checkbox/Checkbox.js";
25
+ import { default as ko, ButtonContent as Ao, getButtonClassName as Do } from "./components/Button/Button.js";
26
26
  import { ButtonBar as Po } from "./components/Button/ButtonBar.js";
27
- import { LinkButton as Do } from "./components/Button/LinkButton.js";
28
- import { BurgerMenuButton as _o } from "./components/BurgerMenu/BurgerMenuButton.js";
29
- import { BurgerMenu as ho } from "./components/BurgerMenu/BurgerMenu.js";
30
- import { default as zo, getLinkClassName as wo, getLinkStyles as Mo } from "./components/Link/Link.js";
31
- import { default as Go } from "./components/Link/ButtonLink.js";
32
- import { Avatar as Ko } from "./components/Avatar/Avatar.js";
33
- import { BACKDROP_OUTLET_ID as Ho, default as Wo } from "./components/BackdropPortal/BackdropPortal.js";
34
- import { Badge as Jo } from "./components/Badge/Badge.js";
35
- import { default as Zo } from "./components/ControlBox/ControlBox.js";
36
- import { default as qo } from "./components/CountryFlag/CountryFlag.js";
37
- import { default as or } from "./components/Decorate/Decorate.js";
38
- import { Dot as er } from "./components/Dot/Dot.js";
27
+ import { LinkButton as Fo } from "./components/Button/LinkButton.js";
28
+ import { BurgerMenuButton as vo } from "./components/BurgerMenu/BurgerMenuButton.js";
29
+ import { BurgerMenu as Uo } from "./components/BurgerMenu/BurgerMenu.js";
30
+ import { default as wo, getLinkClassName as Mo, getLinkStyles as No } from "./components/Link/Link.js";
31
+ import { default as Vo } from "./components/Link/ButtonLink.js";
32
+ import { Avatar as Yo } from "./components/Avatar/Avatar.js";
33
+ import { BACKDROP_OUTLET_ID as Wo, default as Xo } from "./components/BackdropPortal/BackdropPortal.js";
34
+ import { Badge as Qo } from "./components/Badge/Badge.js";
35
+ import { default as jo } from "./components/ControlBox/ControlBox.js";
36
+ import { default as $o } from "./components/CountryFlag/CountryFlag.js";
37
+ import { default as rr } from "./components/Decorate/Decorate.js";
38
+ import { Dot as tr } from "./components/Dot/Dot.js";
39
39
  import { FLYOUT_OUTLET_ID as mr, Flyout as fr } from "./components/Flyout/Flyout.js";
40
- import { Logos as ar } from "./components/Logos/index.js";
41
- import { I as nr } from "./cfxIcons-BNd1WgpX.js";
42
- import { I as ur } from "./cfxIconsBig-BLJjMT-Y.js";
43
- import { Icon as ir } from "./components/Icon/Icon.js";
44
- import { IconBig as cr } from "./components/IconBig/IconBig.js";
45
- import { Indicator as Ir } from "./components/Indicator/Indicator.js";
46
- import { default as Br } from "./components/InfoPanel/InfoPanel.js";
47
- import { default as gr } from "./components/Input/Input.js";
48
- import { default as Sr } from "./components/Input/RichInput.js";
49
- import { Interactive as Rr } from "./components/Interactive/Interactive.js";
50
- import { Island as Ar, IslandCorner as Or } from "./components/Island/Island.js";
51
- import { Box as br, flexPropFormater as Dr } from "./components/Layout/Box/Box.js";
52
- import { Center as _r } from "./components/Layout/Center/Center.js";
53
- import { Flex as hr } from "./components/Layout/Flex/Flex.js";
54
- import { FlexAlignItemsEnum as zr, FlexDirectionEnum as wr, FlexJustifyContentEnum as Mr, FlexWrapEnum as Nr } from "./components/Layout/Flex/Flex.types.js";
55
- import { FlexRestricter as Vr } from "./components/Layout/Flex/FlexRestricter.js";
56
- import { Pad as Yr } from "./components/Layout/Pad/Pad.js";
57
- import { Page as Wr } from "./components/Layout/Page/Page.js";
58
- import { R as Jr } from "./Rail-DcVowhML.js";
59
- import { Scrollable as Zr } from "./components/Layout/Scrollable/Scrollable.js";
60
- import { VirtualScrollable as qr } from "./components/Layout/Scrollable/VirtualScrollable.js";
61
- import { Loaf as oe } from "./components/Loaf/Loaf.js";
62
- import { Modal as ee } from "./components/Modal/Modal.js";
40
+ import { Logos as xr } from "./components/Logos/index.js";
41
+ import { I as lr } from "./cfxIcons-B9nzO6TW.js";
42
+ import { I as sr } from "./cfxIconsBig-BLJjMT-Y.js";
43
+ import { Icon as dr } from "./components/Icon/Icon.js";
44
+ import { IconBig as Tr } from "./components/IconBig/IconBig.js";
45
+ import { Indicator as Cr } from "./components/Indicator/Indicator.js";
46
+ import { default as Er } from "./components/InfoPanel/InfoPanel.js";
47
+ import { default as Lr } from "./components/Input/Input.js";
48
+ import { default as yr } from "./components/Input/RichInput.js";
49
+ import { Interactive as kr } from "./components/Interactive/Interactive.js";
50
+ import { Island as Dr, IslandCorner as Or } from "./components/Island/Island.js";
51
+ import { default as br, stringPropFormater as Fr } from "./components/Layout/Box/Box.js";
52
+ import { Center as vr } from "./components/Layout/Center/Center.js";
53
+ import { default as Ur } from "./components/Layout/Flex/Flex.js";
54
+ import { FlexAlignItemsEnum as wr, FlexDirectionEnum as Mr, FlexJustifyContentEnum as Nr, FlexWrapEnum as Gr } from "./components/Layout/Flex/Flex.types.js";
55
+ import { FlexRestricter as Kr } from "./components/Layout/Flex/FlexRestricter.js";
56
+ import { Pad as Hr } from "./components/Layout/Pad/Pad.js";
57
+ import { Page as Xr } from "./components/Layout/Page/Page.js";
58
+ import { R as Qr } from "./Rail-DcVowhML.js";
59
+ import { Scrollable as jr } from "./components/Layout/Scrollable/Scrollable.js";
60
+ import { VirtualScrollable as $r } from "./components/Layout/Scrollable/VirtualScrollable.js";
61
+ import { Loaf as re } from "./components/Loaf/Loaf.js";
62
+ import { Modal as te } from "./components/Modal/Modal.js";
63
63
  import { NavList as me } from "./components/NavList/NavList.js";
64
- import { OVERLAY_OUTLET_ID as pe, Overlay as ae } from "./components/Overlay/Overlay.js";
65
- import { Popover as ne } from "./components/Popover/Popover.js";
66
- import { PremiumBadge as ue } from "./components/PremiumBadge/PremiumBadge.js";
67
- import { Prose as ie } from "./components/Prose/Prose.js";
68
- import { Radio as ce } from "./components/Radio/Radio.js";
69
- import { Select as Ie } from "./components/Select/Select.js";
70
- import { DropdownSelect as Be } from "./components/DropdownSelect/DropdownSelect.js";
71
- import { Separator as ge } from "./components/Separator/Separator.js";
72
- import { Shroud as Se } from "./components/Shroud/Shroud.js";
73
- import { Slider as Re } from "./components/Slider/Slider.js";
74
- import { Spacer as Ae } from "./components/Spacer/Spacer.js";
64
+ import { OVERLAY_OUTLET_ID as pe, Overlay as xe } from "./components/Overlay/Overlay.js";
65
+ import { Popover as le } from "./components/Popover/Popover.js";
66
+ import { PremiumBadge as se } from "./components/PremiumBadge/PremiumBadge.js";
67
+ import { Prose as de } from "./components/Prose/Prose.js";
68
+ import { Radio as Te } from "./components/Radio/Radio.js";
69
+ import { Select as Ce } from "./components/Select/Select.js";
70
+ import { DropdownSelect as Ee } from "./components/DropdownSelect/DropdownSelect.js";
71
+ import { Separator as Le } from "./components/Separator/Separator.js";
72
+ import { Shroud as ye } from "./components/Shroud/Shroud.js";
73
+ import { Slider as ke } from "./components/Slider/Slider.js";
74
+ import { Spacer as De } from "./components/Spacer/Spacer.js";
75
75
  import { Style as Pe, useContextualStyle as be } from "./components/Style/Style.js";
76
- import { default as Fe } from "./components/Switch/Switch.js";
77
- import { ToggleGroup as ve } from "./components/ToggleGroup/ToggleGroup.js";
78
- import { Tabular as Ue } from "./components/Tabular/Tabular.js";
79
- import { Table as we, TableHeaderItem as Me, TableIconButton as Ne, TableRow as Ge } from "./components/Table/Table.js";
80
- import { DEFAULT_TEXT_COLOR as Ke, TEXT_OPACITY_MAP as Ye, Text as He, TextBlock as We, getTextOpacity as Xe, textSizeResponsiveValueFormatter as Je } from "./components/Text/Text.js";
81
- import { Textarea as Ze } from "./components/Textarea/Textarea.js";
82
- import { TITLE_OUTLET_ID as qe, Title as $e, titleGetCoords as ot, titleGetCssStyle as rt } from "./components/Title/Title.js";
83
- import { default as tt } from "./components/InputDropzone/InputDropzone.js";
84
- import { default as ft } from "./components/InputDropzone/ItemPreview.js";
85
- import { default as at } from "./components/Skeleton/Skeleton.js";
86
- import { OnScreenSensor as nt } from "./components/OnScreenSensor.js";
87
- import { Symbols as ut } from "./components/Symbols.js";
76
+ import { default as _e } from "./components/Switch/Switch.js";
77
+ import { ToggleGroup as he } from "./components/ToggleGroup/ToggleGroup.js";
78
+ import { Tabular as ze } from "./components/Tabular/Tabular.js";
79
+ import { DataTable as Me, DataTableHeaderItem as Ne, DataTableRow as Ge } from "./components/DataTable/DataTable.js";
80
+ import { Table as Ke } from "./components/Table/index.js";
81
+ import { DEFAULT_TEXT_COLOR as He, TEXT_OPACITY_MAP as We, Text as Xe, TextBlock as Je, getTextOpacity as Qe, textSizeResponsiveValueFormatter as Ze } from "./components/Text/Text.js";
82
+ import { Textarea as qe } from "./components/Textarea/Textarea.js";
83
+ import { TITLE_OUTLET_ID as ot, Title as rt, titleGetCoords as et, titleGetCssStyle as tt } from "./components/Title/Title.js";
84
+ import { default as mt } from "./components/InputDropzone/InputDropzone.js";
85
+ import { default as pt } from "./components/InputDropzone/ItemPreview.js";
86
+ import { default as nt } from "./components/Skeleton/Skeleton.js";
87
+ import { OnScreenSensor as ut } from "./components/OnScreenSensor.js";
88
+ import { Symbols as it } from "./components/Symbols.js";
88
89
  export {
89
- co as Accordion,
90
- To as AccordionContent,
91
- Io as AccordionHeader,
92
- Co as AccordionItem,
93
- Bo as AccordionTrigger,
94
- Ko as Avatar,
95
- Ho as BACKDROP_OUTLET_ID,
96
- Wo as BackdropPortal,
97
- Jo as Badge,
98
- to as BorderRadiusEnum,
90
+ To as Accordion,
91
+ Io as AccordionContent,
92
+ Co as AccordionHeader,
93
+ go as AccordionItem,
94
+ Eo as AccordionTrigger,
95
+ Yo as Avatar,
96
+ Wo as BACKDROP_OUTLET_ID,
97
+ Xo as BackdropPortal,
98
+ Qo as Badge,
99
+ ao as BorderRadiusEnum,
99
100
  br as Box,
100
- ho as BurgerMenu,
101
- _o as BurgerMenuButton,
102
- Ro as Button,
101
+ Uo as BurgerMenu,
102
+ vo as BurgerMenuButton,
103
+ ko as Button,
103
104
  Po as ButtonBar,
104
- ko as ButtonContent,
105
- Go as ButtonLink,
105
+ Ao as ButtonContent,
106
+ Vo as ButtonLink,
106
107
  L as CLIPBOARD_TITLE_APPEARANCE,
107
- _r as Center,
108
- So as Checkbox,
109
- go as ClipboardButton,
108
+ vr as Center,
109
+ yo as Checkbox,
110
+ Lo as ClipboardButton,
110
111
  mo as ColorEnum,
111
- Zo as ControlBox,
112
- qo as CountryFlag,
113
- Ke as DEFAULT_TEXT_COLOR,
114
- or as Decorate,
115
- er as Dot,
116
- Be as DropdownSelect,
117
- ft as DropzoneItemPreview,
112
+ jo as ControlBox,
113
+ $o as CountryFlag,
114
+ He as DEFAULT_TEXT_COLOR,
115
+ Me as DataTable,
116
+ Ne as DataTableHeaderItem,
117
+ Ge as DataTableRow,
118
+ rr as Decorate,
119
+ tr as Dot,
120
+ Ee as DropdownSelect,
121
+ pt as DropzoneItemPreview,
118
122
  mr as FLYOUT_OUTLET_ID,
119
- hr as Flex,
120
- zr as FlexAlignItemsEnum,
121
- wr as FlexDirectionEnum,
122
- Mr as FlexJustifyContentEnum,
123
- Vr as FlexRestricter,
124
- Nr as FlexWrapEnum,
123
+ Ur as Flex,
124
+ wr as FlexAlignItemsEnum,
125
+ Mr as FlexDirectionEnum,
126
+ Nr as FlexJustifyContentEnum,
127
+ Kr as FlexRestricter,
128
+ Gr as FlexWrapEnum,
125
129
  fr as Flyout,
126
- ir as Icon,
127
- cr as IconBig,
128
- so as IconButton,
129
- nr as Icons,
130
- ur as IconsBig,
131
- Ir as Indicator,
132
- Br as InfoPanel,
133
- gr as Input,
134
- tt as InputDropzone,
135
- Rr as Interactive,
136
- Ar as Island,
130
+ dr as Icon,
131
+ Tr as IconBig,
132
+ io as IconButton,
133
+ lr as Icons,
134
+ sr as IconsBig,
135
+ Cr as Indicator,
136
+ Er as InfoPanel,
137
+ Lr as Input,
138
+ mt as InputDropzone,
139
+ kr as Interactive,
140
+ Dr as Island,
137
141
  Or as IslandCorner,
138
- zo as Link,
139
- Do as LinkButton,
140
- D as Linkify,
141
- oe as Loaf,
142
- ar as Logos,
142
+ wo as Link,
143
+ Fo as LinkButton,
144
+ b as Linkify,
145
+ re as Loaf,
146
+ xr as Logos,
143
147
  fo as MediaQueryEnum,
144
- ee as Modal,
148
+ te as Modal,
145
149
  me as NavList,
146
150
  pe as OVERLAY_OUTLET_ID,
147
151
  po as OffsetEnum,
148
- nt as OnScreenSensor,
149
- ae as Overlay,
150
- Yr as Pad,
151
- Wr as Page,
152
- ne as Popover,
153
- ue as PremiumBadge,
154
- ie as Prose,
155
- ce as Radio,
156
- Jr as Rail,
157
- Sr as RichInput,
158
- Zr as Scrollable,
159
- Ie as Select,
160
- ge as Separator,
161
- Se as Shroud,
162
- at as Skeleton,
163
- Re as Slider,
164
- Ae as Spacer,
152
+ ut as OnScreenSensor,
153
+ xe as Overlay,
154
+ Hr as Pad,
155
+ Xr as Page,
156
+ le as Popover,
157
+ se as PremiumBadge,
158
+ de as Prose,
159
+ Te as Radio,
160
+ Qr as Rail,
161
+ yr as RichInput,
162
+ jr as Scrollable,
163
+ Ce as Select,
164
+ Le as Separator,
165
+ ye as Shroud,
166
+ nt as Skeleton,
167
+ ke as Slider,
168
+ De as Spacer,
165
169
  Pe as Style,
166
- Fe as Switch,
167
- ut as Symbols,
168
- Ye as TEXT_OPACITY_MAP,
169
- qe as TITLE_OUTLET_ID,
170
- we as Table,
171
- Me as TableHeaderItem,
172
- Ne as TableIconButton,
173
- Ge as TableRow,
174
- Ue as Tabular,
175
- He as Text,
176
- We as TextBlock,
177
- ao as TextSizeEnum,
178
- Ze as Textarea,
179
- $e as Title,
180
- ve as ToggleGroup,
181
- qr as VirtualScrollable,
182
- xo as ZIndexEnum,
170
+ _e as Switch,
171
+ it as Symbols,
172
+ We as TEXT_OPACITY_MAP,
173
+ ot as TITLE_OUTLET_ID,
174
+ Ke as Table,
175
+ ze as Tabular,
176
+ Xe as Text,
177
+ Je as TextBlock,
178
+ xo as TextSizeEnum,
179
+ qe as Textarea,
180
+ rt as Title,
181
+ he as ToggleGroup,
182
+ $r as VirtualScrollable,
183
+ no as ZIndexEnum,
183
184
  N as clamp,
184
185
  G as clamp01,
185
- m as clsx,
186
- Z as debounce,
186
+ a as clsx,
187
+ j as debounce,
187
188
  F as defaultLinkReplacer,
188
189
  _ as defaultLinkReplacerx,
189
- Dr as flexPropFormater,
190
- Ao as getButtonClassName,
191
- $ as getColor,
192
- wo as getLinkClassName,
193
- Mo as getLinkStyles,
194
- Xe as getTextOpacity,
195
- p as getValue,
190
+ Do as getButtonClassName,
191
+ oo as getColor,
192
+ Mo as getLinkClassName,
193
+ No as getLinkStyles,
194
+ Qe as getTextOpacity,
195
+ f as getValue,
196
196
  R as identity,
197
197
  k as invoke,
198
198
  v as isExternalUrl,
199
- K as isFalseString,
200
- lo as isInEnum,
201
- Y as isTrueString,
199
+ Y as isFalseString,
200
+ uo as isInEnum,
201
+ H as isTrueString,
202
202
  h as linkify,
203
203
  U as linkifyx,
204
204
  z as matchLinkNodes,
205
205
  w as matchLinks,
206
206
  e as mergeRefs,
207
+ V as minmax,
207
208
  A as noop,
208
- H as normalizeSlashes,
209
- W as replaceRange,
210
- O as returnFalse,
211
- P as returnTrue,
212
- X as splitByIndices,
213
- Je as textSizeResponsiveValueFormatter,
214
- j as throttle,
215
- ot as titleGetCoords,
216
- rt as titleGetCssStyle,
217
- ro as ui,
218
- J as unicodeCharAt,
209
+ W as normalizeSlashes,
210
+ X as replaceRange,
211
+ D as returnFalse,
212
+ O as returnTrue,
213
+ J as splitByIndices,
214
+ Fr as stringPropFormater,
215
+ Ze as textSizeResponsiveValueFormatter,
216
+ q as throttle,
217
+ et as titleGetCoords,
218
+ tt as titleGetCssStyle,
219
+ eo as ui,
220
+ Q as unicodeCharAt,
219
221
  S as useClipboardComponent,
220
222
  be as useContextualStyle,
221
223
  s as useDynamicRef,
@@ -1,6 +1,6 @@
1
1
  import * as l from "react";
2
2
  import { useState as g } from "react";
3
- import { _ as p } from "./tslib.es6-CBKHJX9H.js";
3
+ import { _ as p } from "./tslib.es6-CtHwNPxX.js";
4
4
  function o(e, u) {
5
5
  return typeof e == "function" ? e(u) : e && (e.current = u), e;
6
6
  }
@@ -29,6 +29,7 @@ body {
29
29
 
30
30
  // responsive
31
31
  @include tokens.mp-tokens;
32
+ @include tokens.responsive-tokens('display');
32
33
  @include tokens.responsive-tokens('width');
33
34
  @include tokens.responsive-tokens('height');
34
35
  @include tokens.responsive-tokens('gap');
@@ -0,0 +1,72 @@
1
+ var i = function(e, n) {
2
+ return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, t) {
3
+ r.__proto__ = t;
4
+ } || function(r, t) {
5
+ for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (r[o] = t[o]);
6
+ }, i(e, n);
7
+ };
8
+ function _(e, n) {
9
+ if (typeof n != "function" && n !== null)
10
+ throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
11
+ i(e, n);
12
+ function r() {
13
+ this.constructor = e;
14
+ }
15
+ e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
16
+ }
17
+ var s = function() {
18
+ return s = Object.assign || function(n) {
19
+ for (var r, t = 1, o = arguments.length; t < o; t++) {
20
+ r = arguments[t];
21
+ for (var c in r) Object.prototype.hasOwnProperty.call(r, c) && (n[c] = r[c]);
22
+ }
23
+ return n;
24
+ }, s.apply(this, arguments);
25
+ };
26
+ function O(e, n) {
27
+ var r = {};
28
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
29
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
30
+ for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
31
+ n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (r[t[o]] = e[t[o]]);
32
+ return r;
33
+ }
34
+ function h(e, n, r, t) {
35
+ function o(c) {
36
+ return c instanceof r ? c : new r(function(u) {
37
+ u(c);
38
+ });
39
+ }
40
+ return new (r || (r = Promise))(function(c, u) {
41
+ function l(a) {
42
+ try {
43
+ p(t.next(a));
44
+ } catch (f) {
45
+ u(f);
46
+ }
47
+ }
48
+ function y(a) {
49
+ try {
50
+ p(t.throw(a));
51
+ } catch (f) {
52
+ u(f);
53
+ }
54
+ }
55
+ function p(a) {
56
+ a.done ? c(a.value) : o(a.value).then(l, y);
57
+ }
58
+ p((t = t.apply(e, n || [])).next());
59
+ });
60
+ }
61
+ function d(e, n, r) {
62
+ if (r || arguments.length === 2) for (var t = 0, o = n.length, c; t < o; t++)
63
+ (c || !(t in n)) && (c || (c = Array.prototype.slice.call(n, 0, t)), c[t] = n[t]);
64
+ return e.concat(c || Array.prototype.slice.call(n));
65
+ }
66
+ export {
67
+ s as _,
68
+ h as a,
69
+ _ as b,
70
+ O as c,
71
+ d
72
+ };
@@ -11,5 +11,5 @@ export declare function useClipboardComponent(props: UseClipboardProps): {
11
11
  handleClick: () => void;
12
12
  title: string | undefined;
13
13
  copied: boolean;
14
- clipboardRef: React.MutableRefObject<Clipboard | null>;
14
+ clipboardRef: React.RefObject<Clipboard | null>;
15
15
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
2
  import l from "react";
3
- import { R as i } from "../../index-2hJuj4UN.js";
3
+ import { R as i } from "../../index-Cl_RnsqN.js";
4
4
  function m(t) {
5
5
  const {
6
6
  children: n
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
 
3
3
  export declare function usePopoverController(): {
4
4
  active: boolean;
5
- wrapperRef: React.RefObject<HTMLDivElement>;
5
+ wrapperRef: React.RefObject<HTMLDivElement | null>;
6
6
  handleMouseEnter: () => void;
7
7
  handleMouseLeave: () => void;
8
8
  handleMouseDown: () => void;
@@ -1,5 +1,5 @@
1
1
  import { jsx as le, Fragment as Be } from "react/jsx-runtime";
2
- import { e as z, _ as C } from "../tslib.es6-CBKHJX9H.js";
2
+ import { b as z, _ as C } from "../tslib.es6-CtHwNPxX.js";
3
3
  import De from "react";
4
4
  import { splitByIndices as Ee } from "./string.js";
5
5
  var ke = "3.16.2";