@cfx-dev/ui-components 4.2.24 → 4.3.1

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 +21 -2
  139. package/dist/components/Table/index.js +18 -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 +6 -4
  152. package/dist/main.js +73 -70
  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
@@ -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, TableIconButton, } 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,29 +1,29 @@
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 m } 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";
7
7
  import { useGlobalKeyboardEvent as d } from "./utils/hooks/useGlobalKeyboardEvent.js";
8
8
  import { useKeyboardClose as T } from "./utils/hooks/useKeyboardClose.js";
9
9
  import { useWindowResize as C } from "./utils/hooks/useWindowResize.js";
10
- import { useOutlet as E } from "./utils/hooks/useOutlet.js";
10
+ import { useOutlet as B } 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";
12
+ import { identity as R, invoke as k, noop as A, returnFalse as D, returnTrue as b } from "./utils/functional.js";
13
+ import { Linkify as P, 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
14
  import { clamp as N, clamp01 as G, minmax as V } from "./utils/math.js";
15
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
16
  import { debounce as j, throttle as q } from "./utils/execution.js";
17
17
  import { getColor as oo } from "./utils/color.js";
18
18
  import { ui as eo } from "./utils/ui/ui.js";
19
- import { BorderRadiusEnum as mo, ColorEnum as fo, MediaQueryEnum as po, OffsetEnum as ao, TextSizeEnum as xo, ZIndexEnum as no } from "./utils/ui/ui.types.js";
19
+ import { BorderRadiusEnum as ao, ColorEnum as fo, MediaQueryEnum as mo, OffsetEnum as po, TextSizeEnum as xo, ZIndexEnum as no } from "./utils/ui/ui.types.js";
20
20
  import { isInEnum as uo } from "./utils/enum.js";
21
21
  import { default as io } from "./components/IconButton/IconButton.js";
22
- import { Accordion as To, AccordionContent as Io, AccordionHeader as Co, AccordionItem as Bo, AccordionTrigger as Eo } from "./components/Accordion/Accordion.js";
22
+ import { Accordion as To, AccordionContent as Io, AccordionHeader as Co, AccordionItem as go, AccordionTrigger as Bo } from "./components/Accordion/Accordion.js";
23
23
  import { default as Lo } from "./components/ClipboardButton/ClipboardButton.js";
24
24
  import { default as yo } from "./components/Checkbox/Checkbox.js";
25
- import { Button as ko, ButtonContent as Ao, getButtonClassName as Oo } from "./components/Button/Button.js";
26
- import { ButtonBar as bo } from "./components/Button/ButtonBar.js";
25
+ import { default as ko, ButtonContent as Ao, getButtonClassName as Do } from "./components/Button/Button.js";
26
+ import { ButtonBar as Oo } from "./components/Button/ButtonBar.js";
27
27
  import { LinkButton as Fo } from "./components/Button/LinkButton.js";
28
28
  import { BurgerMenuButton as vo } from "./components/BurgerMenu/BurgerMenuButton.js";
29
29
  import { BurgerMenu as Uo } from "./components/BurgerMenu/BurgerMenu.js";
@@ -36,21 +36,21 @@ import { default as jo } from "./components/ControlBox/ControlBox.js";
36
36
  import { default as $o } from "./components/CountryFlag/CountryFlag.js";
37
37
  import { default as rr } from "./components/Decorate/Decorate.js";
38
38
  import { Dot as tr } from "./components/Dot/Dot.js";
39
- import { FLYOUT_OUTLET_ID as fr, Flyout as pr } from "./components/Flyout/Flyout.js";
39
+ import { FLYOUT_OUTLET_ID as fr, Flyout as mr } from "./components/Flyout/Flyout.js";
40
40
  import { Logos as xr } from "./components/Logos/index.js";
41
- import { I as lr } from "./cfxIcons-BNd1WgpX.js";
41
+ import { I as lr } from "./cfxIcons-B9nzO6TW.js";
42
42
  import { I as sr } from "./cfxIconsBig-BLJjMT-Y.js";
43
43
  import { Icon as dr } from "./components/Icon/Icon.js";
44
44
  import { IconBig as Tr } from "./components/IconBig/IconBig.js";
45
45
  import { Indicator as Cr } from "./components/Indicator/Indicator.js";
46
- import { default as Er } from "./components/InfoPanel/InfoPanel.js";
46
+ import { default as Br } from "./components/InfoPanel/InfoPanel.js";
47
47
  import { default as Lr } from "./components/Input/Input.js";
48
48
  import { default as yr } from "./components/Input/RichInput.js";
49
49
  import { Interactive as kr } from "./components/Interactive/Interactive.js";
50
- import { Island as Or, IslandCorner as Pr } from "./components/Island/Island.js";
51
- import { Box as Dr, flexPropFormater as Fr } from "./components/Layout/Box/Box.js";
50
+ import { Island as Dr, IslandCorner as br } from "./components/Island/Island.js";
51
+ import { default as Pr, stringPropFormater as Fr } from "./components/Layout/Box/Box.js";
52
52
  import { Center as vr } from "./components/Layout/Center/Center.js";
53
- import { Flex as Ur } from "./components/Layout/Flex/Flex.js";
53
+ import { default as Ur } from "./components/Layout/Flex/Flex.js";
54
54
  import { FlexAlignItemsEnum as wr, FlexDirectionEnum as Mr, FlexJustifyContentEnum as Nr, FlexWrapEnum as Gr } from "./components/Layout/Flex/Flex.types.js";
55
55
  import { FlexRestricter as Kr } from "./components/Layout/Flex/FlexRestricter.js";
56
56
  import { Pad as Hr } from "./components/Layout/Pad/Pad.js";
@@ -61,46 +61,48 @@ import { VirtualScrollable as $r } from "./components/Layout/Scrollable/VirtualS
61
61
  import { Loaf as re } from "./components/Loaf/Loaf.js";
62
62
  import { Modal as te } from "./components/Modal/Modal.js";
63
63
  import { NavList as fe } from "./components/NavList/NavList.js";
64
- import { OVERLAY_OUTLET_ID as ae, Overlay as xe } from "./components/Overlay/Overlay.js";
64
+ import { OVERLAY_OUTLET_ID as pe, Overlay as xe } from "./components/Overlay/Overlay.js";
65
65
  import { Popover as le } from "./components/Popover/Popover.js";
66
66
  import { PremiumBadge as se } from "./components/PremiumBadge/PremiumBadge.js";
67
67
  import { Prose as de } from "./components/Prose/Prose.js";
68
68
  import { Radio as Te } from "./components/Radio/Radio.js";
69
69
  import { Select as Ce } from "./components/Select/Select.js";
70
- import { DropdownSelect as Ee } from "./components/DropdownSelect/DropdownSelect.js";
70
+ import { DropdownSelect as Be } from "./components/DropdownSelect/DropdownSelect.js";
71
71
  import { Separator as Le } from "./components/Separator/Separator.js";
72
72
  import { Shroud as ye } from "./components/Shroud/Shroud.js";
73
73
  import { Slider as ke } from "./components/Slider/Slider.js";
74
- import { Spacer as Oe } from "./components/Spacer/Spacer.js";
75
- import { Style as be, useContextualStyle as De } from "./components/Style/Style.js";
74
+ import { Spacer as De } from "./components/Spacer/Spacer.js";
75
+ import { Style as Oe, useContextualStyle as Pe } from "./components/Style/Style.js";
76
76
  import { default as _e } from "./components/Switch/Switch.js";
77
77
  import { ToggleGroup as he } from "./components/ToggleGroup/ToggleGroup.js";
78
78
  import { Tabular as ze } from "./components/Tabular/Tabular.js";
79
- import { Table as Me, TableHeaderItem as Ne, TableIconButton as Ge, TableRow as Ve } from "./components/Table/Table.js";
80
- import { DEFAULT_TEXT_COLOR as Ye, TEXT_OPACITY_MAP as He, Text as We, TextBlock as Xe, getTextOpacity as Je, textSizeResponsiveValueFormatter as Qe } from "./components/Text/Text.js";
81
- import { Textarea as je } from "./components/Textarea/Textarea.js";
82
- import { TITLE_OUTLET_ID as $e, Title as ot, titleGetCoords as rt, titleGetCssStyle as et } from "./components/Title/Title.js";
83
- import { default as mt } from "./components/InputDropzone/InputDropzone.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 ft } from "./components/InputDropzone/InputDropzone.js";
84
85
  import { default as pt } from "./components/InputDropzone/ItemPreview.js";
85
- import { default as xt } from "./components/Skeleton/Skeleton.js";
86
- import { OnScreenSensor as lt } from "./components/OnScreenSensor.js";
87
- import { Symbols as st } from "./components/Symbols.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";
89
+ import { default as ct } from "./components/Table/TableIconButton.js";
88
90
  export {
89
91
  To as Accordion,
90
92
  Io as AccordionContent,
91
93
  Co as AccordionHeader,
92
- Bo as AccordionItem,
93
- Eo as AccordionTrigger,
94
+ go as AccordionItem,
95
+ Bo as AccordionTrigger,
94
96
  Yo as Avatar,
95
97
  Wo as BACKDROP_OUTLET_ID,
96
98
  Xo as BackdropPortal,
97
99
  Qo as Badge,
98
- mo as BorderRadiusEnum,
99
- Dr as Box,
100
+ ao as BorderRadiusEnum,
101
+ Pr as Box,
100
102
  Uo as BurgerMenu,
101
103
  vo as BurgerMenuButton,
102
104
  ko as Button,
103
- bo as ButtonBar,
105
+ Oo as ButtonBar,
104
106
  Ao as ButtonContent,
105
107
  Vo as ButtonLink,
106
108
  L as CLIPBOARD_TITLE_APPEARANCE,
@@ -110,10 +112,13 @@ export {
110
112
  fo as ColorEnum,
111
113
  jo as ControlBox,
112
114
  $o as CountryFlag,
113
- Ye as DEFAULT_TEXT_COLOR,
115
+ He as DEFAULT_TEXT_COLOR,
116
+ Me as DataTable,
117
+ Ne as DataTableHeaderItem,
118
+ Ge as DataTableRow,
114
119
  rr as Decorate,
115
120
  tr as Dot,
116
- Ee as DropdownSelect,
121
+ Be as DropdownSelect,
117
122
  pt as DropzoneItemPreview,
118
123
  fr as FLYOUT_OUTLET_ID,
119
124
  Ur as Flex,
@@ -122,30 +127,30 @@ export {
122
127
  Nr as FlexJustifyContentEnum,
123
128
  Kr as FlexRestricter,
124
129
  Gr as FlexWrapEnum,
125
- pr as Flyout,
130
+ mr as Flyout,
126
131
  dr as Icon,
127
132
  Tr as IconBig,
128
133
  io as IconButton,
129
134
  lr as Icons,
130
135
  sr as IconsBig,
131
136
  Cr as Indicator,
132
- Er as InfoPanel,
137
+ Br as InfoPanel,
133
138
  Lr as Input,
134
- mt as InputDropzone,
139
+ ft as InputDropzone,
135
140
  kr as Interactive,
136
- Or as Island,
137
- Pr as IslandCorner,
141
+ Dr as Island,
142
+ br as IslandCorner,
138
143
  wo as Link,
139
144
  Fo as LinkButton,
140
- D as Linkify,
145
+ P as Linkify,
141
146
  re as Loaf,
142
147
  xr as Logos,
143
- po as MediaQueryEnum,
148
+ mo as MediaQueryEnum,
144
149
  te as Modal,
145
150
  fe as NavList,
146
- ae as OVERLAY_OUTLET_ID,
147
- ao as OffsetEnum,
148
- lt as OnScreenSensor,
151
+ pe as OVERLAY_OUTLET_ID,
152
+ po as OffsetEnum,
153
+ ut as OnScreenSensor,
149
154
  xe as Overlay,
150
155
  Hr as Pad,
151
156
  Xr as Page,
@@ -159,40 +164,37 @@ export {
159
164
  Ce as Select,
160
165
  Le as Separator,
161
166
  ye as Shroud,
162
- xt as Skeleton,
167
+ nt as Skeleton,
163
168
  ke as Slider,
164
- Oe as Spacer,
165
- be as Style,
169
+ De as Spacer,
170
+ Oe as Style,
166
171
  _e as Switch,
167
- st as Symbols,
168
- He as TEXT_OPACITY_MAP,
169
- $e as TITLE_OUTLET_ID,
170
- Me as Table,
171
- Ne as TableHeaderItem,
172
- Ge as TableIconButton,
173
- Ve as TableRow,
172
+ it as Symbols,
173
+ We as TEXT_OPACITY_MAP,
174
+ ot as TITLE_OUTLET_ID,
175
+ Ke as Table,
176
+ ct as TableIconButton,
174
177
  ze as Tabular,
175
- We as Text,
176
- Xe as TextBlock,
178
+ Xe as Text,
179
+ Je as TextBlock,
177
180
  xo as TextSizeEnum,
178
- je as Textarea,
179
- ot as Title,
181
+ qe as Textarea,
182
+ rt as Title,
180
183
  he as ToggleGroup,
181
184
  $r as VirtualScrollable,
182
185
  no as ZIndexEnum,
183
186
  N as clamp,
184
187
  G as clamp01,
185
- m as clsx,
188
+ a as clsx,
186
189
  j as debounce,
187
190
  F as defaultLinkReplacer,
188
191
  _ as defaultLinkReplacerx,
189
- Fr as flexPropFormater,
190
- Oo as getButtonClassName,
192
+ Do as getButtonClassName,
191
193
  oo as getColor,
192
194
  Mo as getLinkClassName,
193
195
  No as getLinkStyles,
194
- Je as getTextOpacity,
195
- p as getValue,
196
+ Qe as getTextOpacity,
197
+ m as getValue,
196
198
  R as identity,
197
199
  k as invoke,
198
200
  v as isExternalUrl,
@@ -208,22 +210,23 @@ export {
208
210
  A as noop,
209
211
  W as normalizeSlashes,
210
212
  X as replaceRange,
211
- O as returnFalse,
212
- P as returnTrue,
213
+ D as returnFalse,
214
+ b as returnTrue,
213
215
  J as splitByIndices,
214
- Qe as textSizeResponsiveValueFormatter,
216
+ Fr as stringPropFormater,
217
+ Ze as textSizeResponsiveValueFormatter,
215
218
  q as throttle,
216
- rt as titleGetCoords,
217
- et as titleGetCssStyle,
219
+ et as titleGetCoords,
220
+ tt as titleGetCssStyle,
218
221
  eo as ui,
219
222
  Q as unicodeCharAt,
220
223
  S as useClipboardComponent,
221
- De as useContextualStyle,
224
+ Pe as useContextualStyle,
222
225
  s as useDynamicRef,
223
226
  d as useGlobalKeyboardEvent,
224
227
  l as useInstance,
225
228
  T as useKeyboardClose,
226
- E as useOutlet,
229
+ B as useOutlet,
227
230
  x as usePopoverController,
228
231
  C as useWindowResize
229
232
  };
@@ -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";
@@ -1,3 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
 
3
- export declare function mergeRefs<T = any>(...refs: (React.MutableRefObject<T> | React.LegacyRef<T> | undefined)[]): React.RefCallback<T>;
3
+ export declare function mergeRefs<T = unknown>(...refs: (React.RefCallback<T> | React.RefObject<T> | undefined | null)[]): React.RefCallback<T>;
@@ -1,7 +1,7 @@
1
1
  function o(...e) {
2
2
  return (t) => {
3
3
  e.forEach((n) => {
4
- typeof n == "function" ? n(t) : n != null && (n.current = t);
4
+ typeof n == "function" ? n(t) : n && (n.current = t);
5
5
  });
6
6
  };
7
7
  }
@@ -35,6 +35,7 @@ export declare namespace ui {
35
35
  export const getOffsetStyles: (name: string, value?: ResponsiveValueType<OffsetType | number>) => import("react").CSSProperties;
36
36
  type CallbackType<T> = (name: string, value: ResponsiveOffsetType) => T;
37
37
  export function callAllMPProps<T extends object>(props: Partial<MPProps>, callback: CallbackType<T>): T;
38
+ export const optimizeMPProps: (props: Partial<MPProps>) => Partial<MPProps>;
38
39
  export const getAllMPStyles: (props: Partial<MPProps>) => React.CSSProperties;
39
40
  export const getAllMPClassnames: (props: Partial<MPProps>) => string;
40
41
  export {};
@@ -1,68 +1,77 @@
1
- import { clsx as d } from "../clsx.js";
2
- var g;
1
+ import { clsx as m } from "../clsx.js";
2
+ var d;
3
3
  ((t) => {
4
- function i(e = 1) {
4
+ function f(e = 1) {
5
5
  return `calc(var(--quant) * ${e})`;
6
6
  }
7
- t.q = i;
8
- function u(e) {
7
+ t.q = f;
8
+ function p(e) {
9
9
  return `var(--offset-${e})`;
10
10
  }
11
- t.offset = u;
11
+ t.offset = p;
12
12
  function b(e = "normal") {
13
13
  return `var(--font-size-${e})`;
14
14
  }
15
15
  t.fontSize = b;
16
- function m(e = "first") {
16
+ function y(e = "first") {
17
17
  return `var(--zindex-${e})`;
18
18
  }
19
- t.zindex = m;
20
- function y(e = "normal") {
19
+ t.zindex = y;
20
+ function g(e = "normal") {
21
21
  return `var(--line-height-${e})`;
22
22
  }
23
- t.lineHeight = y;
24
- function h(e = "normal") {
23
+ t.lineHeight = g;
24
+ function x(e = "normal") {
25
25
  return `var(--border-radius-${e})`;
26
26
  }
27
- t.borderRadius = h;
28
- function x(e, r, o = 1) {
27
+ t.borderRadius = x;
28
+ function h(e, r, o = 1) {
29
29
  let n = r;
30
30
  return n === "pure" && (n = ""), typeof n == "number" && (n = `${n}`), `rgba(var(--color-${e}${n ? `-${n}` : ""}), ${o})`;
31
31
  }
32
- t.color = x, ((e) => {
32
+ t.color = h, ((e) => {
33
33
  e.fullWidth = "util-full-width", e.fullHeight = "util-full-height", e.flexGrow = "util-flex-grow", e.flexNoShrink = "util-flex-no-shrink", e.userSelectableText = "util-text-selectable", e.zIndex9000 = "util-z-index-9000";
34
34
  })(t.cls || (t.cls = {})), t.pc = (e) => `${e}%`, t.px = (e) => `${e}px`, t.ch = (e) => `${e}ch`, t.em = (e) => `${e}em`, t.rem = (e) => `${e}rem`, t.vh = (e) => `${e}vh`, t.vw = (e) => `${e}vw`, t.url = (e) => `url(${e})`;
35
- function f(e) {
36
- return e == null ? "" : typeof e == "number" ? i(e) : e.toString();
35
+ function l(e) {
36
+ return e == null ? "" : typeof e == "number" ? f(e) : e.toString();
37
37
  }
38
- t.defaultResponsiveValueFormatter = f;
39
- function $(e, r, o = f) {
40
- return r == null ? {} : typeof r == "object" && !Array.isArray(r) ? Object.entries(r).reduce((n, [s, l]) => (n[`--${e}-${s}`] = o(l), n), {}) : {
38
+ t.defaultResponsiveValueFormatter = l;
39
+ function u(e, r, o = l) {
40
+ return r == null ? {} : typeof r == "object" && !Array.isArray(r) ? Object.entries(r).reduce((n, [i, s]) => (n[`--${e}-${i}`] = o(s), n), {}) : {
41
41
  [`--${e}-initial`]: o(r)
42
42
  };
43
43
  }
44
- t.getResponsiveStyles = $;
45
- function a(e, r) {
46
- return r == null ? "" : typeof r == "object" && !Array.isArray(r) ? d(Object.keys(r).map((o) => `ui-${e}-${o}`)) : `ui-${e}-initial`;
44
+ t.getResponsiveStyles = u;
45
+ function c(e, r) {
46
+ return r == null ? "" : typeof r == "object" && !Array.isArray(r) ? m(Object.keys(r).map((o) => `ui-${e}-${o}`)) : `ui-${e}-initial`;
47
47
  }
48
- t.getResponsiveClassnames = a;
49
- function R(e, r, o = f) {
50
- return r == null ? [] : typeof r == "object" && !Array.isArray(r) ? Object.entries(r).reduce((n, [s, l]) => (n.push(`${e}-${s}-${o(l)}`), n), []) : [`${e}-initial-${o(r)}`];
48
+ t.getResponsiveClassnames = c;
49
+ function P(e, r, o = l) {
50
+ return r == null ? [] : typeof r == "object" && !Array.isArray(r) ? Object.entries(r).reduce((n, [i, s]) => (n.push(`${e}-${i}-${o(s)}`), n), []) : [`${e}-initial-${o(r)}`];
51
51
  }
52
- t.getResponsiveFlatClassnames = R;
53
- function c(e) {
54
- return typeof e == "number" ? i(e) : u(e);
52
+ t.getResponsiveFlatClassnames = P;
53
+ function $(e) {
54
+ return typeof e == "number" ? f(e) : p(e);
55
55
  }
56
- t.offsetResponsiveValueFormatter = c, t.getOffsetStyles = (e, r) => $(e, r, c);
57
- function p(e, r) {
58
- return Object.entries(e).reduce((o, [n, s]) => (Object.assign(o, r(n, s)), o), {});
56
+ t.offsetResponsiveValueFormatter = $, t.getOffsetStyles = (e, r) => u(e, r, $);
57
+ function a(e, r) {
58
+ return Object.entries(e).reduce((o, [n, i]) => (Object.assign(o, r(n, i)), o), {});
59
59
  }
60
- t.callAllMPProps = p, t.getAllMPStyles = (e) => p(e, t.getOffsetStyles), t.getAllMPClassnames = (e) => d(
61
- Object.entries(e).map(
62
- ([r, o]) => a(r, o)
60
+ t.callAllMPProps = a, t.optimizeMPProps = (e) => {
61
+ const {
62
+ px: r,
63
+ py: o,
64
+ mx: n,
65
+ my: i,
66
+ ...s
67
+ } = e;
68
+ return r && (s.pr = r, s.pl = r), o && (s.pt = o, s.pb = o), n && (s.mr = n, s.ml = n), i && (s.mt = i, s.mb = i), s;
69
+ }, t.getAllMPStyles = (e) => a((0, t.optimizeMPProps)(e), t.getOffsetStyles), t.getAllMPClassnames = (e) => m(
70
+ Object.entries((0, t.optimizeMPProps)(e)).map(
71
+ ([r, o]) => c(r, o)
63
72
  )
64
73
  );
65
- })(g || (g = {}));
74
+ })(d || (d = {}));
66
75
  export {
67
- g as ui
76
+ d as ui
68
77
  };