@cfx-dev/ui-components 4.2.24 → 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 +6 -4
  152. package/dist/main.js +66 -65
  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
@@ -3,5 +3,6 @@ import { default as React } from 'react';
3
3
  export interface InteractiveProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
4
4
  showPointer?: boolean;
5
5
  as?: React.ElementType;
6
+ ref?: React.Ref<HTMLDivElement>;
6
7
  }
7
- export declare const Interactive: React.ForwardRefExoticComponent<Omit<InteractiveProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ export declare function Interactive(props: InteractiveProps): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +1,21 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import i from "react";
1
+ import { jsx as i } from "react/jsx-runtime";
3
2
  import { clsx as m } from "../../utils/clsx.js";
4
3
  const f = "cfxui__Interactive__root__83e14", l = {
5
4
  root: f
6
- }, v = i.forwardRef(function(o, t) {
5
+ };
6
+ function u(o) {
7
7
  const {
8
- showPointer: r = !0,
9
- className: e,
10
- as: n = "div",
11
- ...s
12
- } = o, c = m(e, {
13
- [l.root]: r
8
+ showPointer: t = !0,
9
+ className: r,
10
+ as: s = "div",
11
+ ref: e,
12
+ children: n,
13
+ ...c
14
+ } = o, a = m(r, {
15
+ [l.root]: t
14
16
  });
15
- return /* @__PURE__ */ a(n, { ref: t, className: c, ...s, children: o.children });
16
- });
17
+ return /* @__PURE__ */ i(s, { ref: e, className: a, ...c, children: n });
18
+ }
17
19
  export {
18
- v as Interactive
20
+ u as Interactive
19
21
  };
@@ -21,6 +21,7 @@ export interface IslandProps {
21
21
  */
22
22
  straightCorner?: number;
23
23
  children?: React.ReactNode;
24
+ ref?: React.Ref<HTMLDivElement>;
24
25
  className?: string;
25
26
  }
26
- export declare const Island: React.ForwardRefExoticComponent<IslandProps & React.RefAttributes<HTMLDivElement>>;
27
+ export declare function Island(props: IslandProps): import("react/jsx-runtime").JSX.Element;
@@ -1,34 +1,34 @@
1
- import { jsx as b } from "react/jsx-runtime";
2
- import g from "react";
3
- import { clsx as p } from "../../utils/clsx.js";
4
- import { ui as h } from "../../utils/ui/ui.js";
5
- const n = "cfxui__Island__root__24fd9", s = "cfxui__Island__grow__c1786", t = {
6
- root: n,
7
- grow: s,
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { clsx as b } from "../../utils/clsx.js";
3
+ import { ui as g } from "../../utils/ui/ui.js";
4
+ const h = "cfxui__Island__root__24fd9", p = "cfxui__Island__grow__c1786", t = {
5
+ root: h,
6
+ grow: p,
8
7
  "no-round-border-top-left": "cfxui__Island__no-round-border-top-left__599e3",
9
8
  "no-round-border-top-right": "cfxui__Island__no-round-border-top-right__83fe5",
10
9
  "no-round-border-bottom-left": "cfxui__Island__no-round-border-bottom-left__8d1c9",
11
10
  "no-round-border-bottom-right": "cfxui__Island__no-round-border-bottom-right__f8472"
12
11
  };
13
- var l = /* @__PURE__ */ ((o) => (o[o.TopLeft = 1] = "TopLeft", o[o.TopRight = 2] = "TopRight", o[o.BottomLeft = 4] = "BottomLeft", o[o.BottomRight = 8] = "BottomRight", o[o.Top = 3] = "Top", o[o.Left = 5] = "Left", o[o.Right = 10] = "Right", o[o.Bottom = 12] = "Bottom", o[o.All = 15] = "All", o))(l || {});
14
- const L = g.forwardRef(function(i, d) {
12
+ var n = /* @__PURE__ */ ((o) => (o[o.TopLeft = 1] = "TopLeft", o[o.TopRight = 2] = "TopRight", o[o.BottomLeft = 4] = "BottomLeft", o[o.BottomRight = 8] = "BottomRight", o[o.Top = 3] = "Top", o[o.Left = 5] = "Left", o[o.Right = 10] = "Right", o[o.Bottom = 12] = "Bottom", o[o.All = 15] = "All", o))(n || {});
13
+ function w(o) {
15
14
  const {
16
- grow: m = !1,
17
- widthQ: _ = 0,
18
- straightCorner: r = 0,
15
+ grow: f = !1,
16
+ widthQ: r = 0,
17
+ straightCorner: _ = 0,
19
18
  children: u,
20
- className: e
21
- } = i, c = p(t.root, e, {
22
- [t.grow]: m,
23
- [t["no-round-border-top-left"]]: r & 1,
24
- [t["no-round-border-top-right"]]: r & 2,
25
- [t["no-round-border-bottom-left"]]: r & 4,
26
- [t["no-round-border-bottom-right"]]: r & 8
19
+ className: m,
20
+ ref: d
21
+ } = o, e = b(t.root, m, {
22
+ [t.grow]: f,
23
+ [t["no-round-border-top-left"]]: _ & 1,
24
+ [t["no-round-border-top-right"]]: _ & 2,
25
+ [t["no-round-border-bottom-left"]]: _ & 4,
26
+ [t["no-round-border-bottom-right"]]: _ & 8
27
27
  /* BottomRight */
28
- }), f = {};
29
- return _ > 0 && (f.width = h.q(_)), /* @__PURE__ */ b("div", { className: c, style: f, ref: d, children: u });
30
- });
28
+ }), i = {};
29
+ return r > 0 && (i.width = g.q(r)), /* @__PURE__ */ c("div", { className: e, style: i, ref: d, children: u });
30
+ }
31
31
  export {
32
- L as Island,
33
- l as IslandCorner
32
+ w as Island,
33
+ n as IslandCorner
34
34
  };
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { MPProps, ResponsiveValueType } from '../../../utils/ui';
3
+ import { BoxDisplayType } from './Box.types';
3
4
 
4
5
  export interface BoxProps extends MPProps {
5
6
  noOverflow?: boolean;
@@ -8,12 +9,17 @@ export interface BoxProps extends MPProps {
8
9
  fullWidth?: boolean;
9
10
  fullHeight?: boolean;
10
11
  fitContentWidth?: boolean;
12
+ display?: ResponsiveValueType<BoxDisplayType>;
11
13
  width?: ResponsiveValueType;
12
14
  height?: ResponsiveValueType;
13
15
  flex?: ResponsiveValueType<string>;
14
16
  children?: React.ReactNode;
15
17
  className?: string;
16
18
  style?: React.CSSProperties;
19
+ ref?: React.Ref<HTMLDivElement>;
20
+ as?: React.ElementType;
17
21
  }
18
- export declare const flexPropFormater: (val: string) => string;
19
- export declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
22
+ export declare const stringPropFormater: (val: string) => string;
23
+ declare function Box(props: BoxProps): import("react/jsx-runtime").JSX.Element;
24
+ declare const _default: React.MemoExoticComponent<typeof Box>;
25
+ export default _default;
@@ -1,70 +1,72 @@
1
- import { jsx as R } from "react/jsx-runtime";
2
- import c from "react";
3
- import { useContextualStyle as S } from "../../Style/Style.js";
1
+ import { jsx as B } from "react/jsx-runtime";
2
+ import R from "react";
4
3
  import { clsx as C } from "../../../utils/clsx.js";
5
4
  import { ui as o } from "../../../utils/ui/ui.js";
6
- const k = "cfxui__Box__root__299ae", M = "cfxui__Box__grow__7ee8d", t = {
7
- root: k,
5
+ const S = "cfxui__Box__root__299ae", k = "cfxui__Box__grow__7ee8d", e = {
6
+ root: S,
8
7
  "full-width": "cfxui__Box__full-width__2b253",
9
8
  "fit-content-width": "cfxui__Box__fit-content-width__eff85",
10
9
  "full-height": "cfxui__Box__full-height__1d61f",
11
10
  "no-overflow": "cfxui__Box__no-overflow__68f14",
12
11
  "no-shrink": "cfxui__Box__no-shrink__fbd72",
13
- grow: M,
12
+ grow: k,
14
13
  "no-grow": "cfxui__Box__no-grow__7c039"
15
- }, N = (r) => r, F = c.forwardRef(function(x, u) {
14
+ }, h = (t) => t;
15
+ function N(t) {
16
16
  const {
17
17
  noOverflow: a = !1,
18
- noShrink: w = !1,
19
- grow: e = void 0,
20
- width: s,
21
- height: i,
18
+ noShrink: c = !1,
19
+ grow: s = void 0,
20
+ width: l,
21
+ height: n,
22
22
  children: g,
23
- className: d,
24
- fullWidth: m,
25
- fullHeight: p,
26
- fitContentWidth: v,
27
- flex: l,
28
- style: f,
29
- ...n
30
- } = x, h = S(), B = C(
31
- t.root,
32
- d,
33
- o.getResponsiveClassnames("width", s),
34
- o.getResponsiveClassnames("height", i),
35
- o.getResponsiveClassnames("flex", l),
36
- o.getAllMPClassnames(n),
23
+ className: x,
24
+ fullWidth: d,
25
+ fullHeight: w,
26
+ fitContentWidth: u,
27
+ flex: _,
28
+ display: f,
29
+ style: p,
30
+ ref: m,
31
+ as: v = "div",
32
+ ...r
33
+ } = t, y = C(
34
+ e.root,
35
+ x,
36
+ o.getResponsiveClassnames("width", l),
37
+ o.getResponsiveClassnames("height", n),
38
+ o.getResponsiveClassnames("flex", _),
39
+ o.getResponsiveClassnames("display", f),
40
+ o.getAllMPClassnames(r),
37
41
  {
38
- [t["full-width"]]: m,
39
- [t["full-height"]]: p,
40
- [t["fit-content-width"]]: v,
41
- [t["no-overflow"]]: a,
42
- [t["no-shrink"]]: w,
43
- [t["no-grow"]]: e === !1,
44
- [t.grow]: e === !0
42
+ [e["full-width"]]: d,
43
+ [e["full-height"]]: w,
44
+ [e["fit-content-width"]]: u,
45
+ [e["no-overflow"]]: a,
46
+ [e["no-shrink"]]: c,
47
+ [e["no-grow"]]: s === !1,
48
+ [e.grow]: s === !0
45
49
  }
46
- ), y = c.useMemo(() => {
47
- const _ = {
48
- ...o.getResponsiveStyles("width", s),
49
- ...o.getResponsiveStyles("height", i),
50
- ...o.getResponsiveStyles("flex", l, N),
51
- ...o.getAllMPStyles(n),
52
- ...h,
53
- ...f || {}
54
- };
55
- return !_.width && e === !0 && (_.width = "1px"), _;
56
- }, [s, i, n, h, f, e, l]);
57
- return /* @__PURE__ */ R(
58
- "div",
50
+ ), i = {
51
+ ...o.getResponsiveStyles("width", l),
52
+ ...o.getResponsiveStyles("height", n),
53
+ ...o.getResponsiveStyles("flex", _, h),
54
+ ...o.getResponsiveStyles("display", f, h),
55
+ ...o.getAllMPStyles(r),
56
+ ...p || {}
57
+ };
58
+ return !i.width && s === !0 && (i.width = "1px"), /* @__PURE__ */ B(
59
+ v,
59
60
  {
60
- ref: u,
61
- className: B,
62
- style: y,
61
+ ref: m,
62
+ className: y,
63
+ style: i,
63
64
  children: g
64
65
  }
65
66
  );
66
- });
67
+ }
68
+ const W = R.memo(N);
67
69
  export {
68
- F as Box,
69
- N as flexPropFormater
70
+ W as default,
71
+ h as stringPropFormater
70
72
  };
@@ -0,0 +1,22 @@
1
+ export declare enum BoxDisplayEnum {
2
+ block = "block",
3
+ inline = "inline",
4
+ 'inline-block' = "inline-block",
5
+ flex = "flex",
6
+ 'inline-flex' = "inline-flex",
7
+ grid = "grid",
8
+ 'inline-grid' = "inline-grid",
9
+ 'flow-root' = "flow-root",
10
+ table = "table",
11
+ 'table-row' = "table-row",
12
+ 'table-cell' = "table-cell",
13
+ 'list-item' = "list-item",
14
+ inherit = "inherit",
15
+ initial = "initial",
16
+ unset = "unset",
17
+ none = "none",
18
+ contents = "contents",
19
+ revert = "revert",
20
+ 'revert-layer' = "revert-layer"
21
+ }
22
+ export type BoxDisplayType = keyof typeof BoxDisplayEnum;
@@ -0,0 +1,4 @@
1
+ var t = /* @__PURE__ */ ((e) => (e.block = "block", e.inline = "inline", e["inline-block"] = "inline-block", e.flex = "flex", e["inline-flex"] = "inline-flex", e.grid = "grid", e["inline-grid"] = "inline-grid", e["flow-root"] = "flow-root", e.table = "table", e["table-row"] = "table-row", e["table-cell"] = "table-cell", e["list-item"] = "list-item", e.inherit = "inherit", e.initial = "initial", e.unset = "unset", e.none = "none", e.contents = "contents", e.revert = "revert", e["revert-layer"] = "revert-layer", e))(t || {});
2
+ export {
3
+ t as BoxDisplayEnum
4
+ };
@@ -1,2 +1,2 @@
1
- export { Box, flexPropFormater } from './Box';
1
+ export { default as Box, stringPropFormater } from './Box';
2
2
  export type { BoxProps } from './Box';
@@ -1,5 +1,5 @@
1
- import { Box as e, flexPropFormater as x } from "./Box.js";
1
+ import { default as t, stringPropFormater as a } from "./Box.js";
2
2
  export {
3
- e as Box,
4
- x as flexPropFormater
3
+ t as Box,
4
+ a as stringPropFormater
5
5
  };
@@ -5,5 +5,6 @@ export interface CenterProps {
5
5
  horizontal?: boolean;
6
6
  className?: string;
7
7
  children?: React.ReactNode;
8
+ ref?: React.Ref<HTMLDivElement>;
8
9
  }
9
- export declare const Center: React.ForwardRefExoticComponent<CenterProps & React.RefAttributes<HTMLDivElement>>;
10
+ export declare function Center(props: CenterProps): import("react/jsx-runtime").JSX.Element;
@@ -1,22 +1,23 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import l from "react";
3
- import { clsx as s } from "../../../utils/clsx.js";
4
- const f = "cfxui__Center__root__e3435", m = "cfxui__Center__vertical__a517d", h = "cfxui__Center__horizontal__21f93", o = {
5
- root: f,
6
- vertical: m,
7
- horizontal: h
8
- }, d = l.forwardRef(function(t, r) {
1
+ import { jsx as _ } from "react/jsx-runtime";
2
+ import { clsx as l } from "../../../utils/clsx.js";
3
+ const s = "cfxui__Center__root__e3435", f = "cfxui__Center__vertical__a517d", m = "cfxui__Center__horizontal__21f93", o = {
4
+ root: s,
5
+ vertical: f,
6
+ horizontal: m
7
+ };
8
+ function x(t) {
9
9
  const {
10
- vertical: e = !1,
11
- horizontal: a = !1,
12
- className: c,
13
- children: n
14
- } = t, _ = s(o.root, c, {
15
- [o.vertical]: e,
16
- [o.horizontal]: a
10
+ vertical: r = !1,
11
+ horizontal: e = !1,
12
+ className: a,
13
+ children: c,
14
+ ref: n
15
+ } = t, i = l(o.root, a, {
16
+ [o.vertical]: r,
17
+ [o.horizontal]: e
17
18
  });
18
- return /* @__PURE__ */ i("div", { ref: r, className: _, children: n });
19
- });
19
+ return /* @__PURE__ */ _("div", { ref: n, className: i, children: c });
20
+ }
20
21
  export {
21
- d as Center
22
+ x as Center
22
23
  };
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { BoxProps } from '../Box/Box';
2
+ import { BoxProps } from '../Box';
3
3
  import { ResponsiveOffsetType, ResponsiveValueType } from '../../../utils/ui';
4
4
  import { FlexAlignItemsType, FlexCentredType, FlexDirectionType, FlexJustifyContentType, FlexWrapType } from './Flex.types';
5
5
 
@@ -16,15 +16,11 @@ export interface FlexProps extends BoxProps {
16
16
  alignItems?: ResponsiveValueType<FlexAlignItemsType>;
17
17
  justifyContent?: ResponsiveValueType<FlexJustifyContentType>;
18
18
  wrap?: ResponsiveValueType<FlexWrapType | boolean>;
19
- children?: React.ReactNode;
20
19
  className?: string;
20
+ children?: React.ReactNode;
21
+ ref?: React.Ref<HTMLDivElement>;
21
22
  }
22
23
  export declare function flexWrapResponsiveFormatter(val: FlexWrapType | boolean): string;
23
- declare const FlexComponentReffed: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
24
- export type FlexType = typeof FlexComponentReffed & {
25
- Restricted: React.FC<{
26
- children?: React.ReactNode;
27
- }>;
28
- };
29
- export declare const Flex: FlexType;
30
- export {};
24
+ declare function Flex(props: FlexProps): import("react/jsx-runtime").JSX.Element;
25
+ declare const _default: React.MemoExoticComponent<typeof Flex>;
26
+ export default _default;
@@ -1,95 +1,84 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import d from "react";
3
- import { Box as y } from "../Box/Box.js";
4
- import { clsx as C } from "../../../utils/clsx.js";
1
+ import { jsx as R } from "react/jsx-runtime";
2
+ import l from "react";
3
+ import h from "../Box/Box.js";
4
+ import { clsx as y } from "../../../utils/clsx.js";
5
5
  import { ui as s } from "../../../utils/ui/ui.js";
6
- import { FlexRestricter as S } from "./FlexRestricter.js";
7
- const j = "cfxui__Flex__root__d860a", z = "cfxui__Flex__centered__e911c", N = "cfxui__Flex__vertical__552db", B = "cfxui__Flex__repell__6ea3f", E = "cfxui__Flex__wrap__9d0d6", O = "cfxui__Flex__stretch__5c1ce", T = "cfxui__Flex__horizontal__d64f7", e = {
8
- root: j,
9
- "full-width": "cfxui__Flex__full-width__b7146",
10
- "full-height": "cfxui__Flex__full-height__d3475",
11
- centered: z,
6
+ const w = "cfxui__Flex__root__d860a", C = "cfxui__Flex__centered__e911c", S = "cfxui__Flex__vertical__552db", j = "cfxui__Flex__stretch__5c1ce", z = "cfxui__Flex__horizontal__d64f7", e = {
7
+ root: w,
8
+ centered: C,
12
9
  "centered-axis": "cfxui__Flex__centered-axis__8458f",
13
10
  "centered-cross-axis": "cfxui__Flex__centered-cross-axis__f7db7",
14
11
  "baseline-axis": "cfxui__Flex__baseline-axis__9ac0d",
15
12
  "baseline-cross-axis": "cfxui__Flex__baseline-cross-axis__b4492",
16
13
  "reverse-order": "cfxui__Flex__reverse-order__65a69",
17
- vertical: N,
18
- repell: B,
19
- wrap: E,
14
+ vertical: S,
20
15
  "align-to-end": "cfxui__Flex__align-to-end__4b5ea",
21
16
  "align-to-end-axis": "cfxui__Flex__align-to-end-axis__db8aa",
22
17
  "space-between": "cfxui__Flex__space-between__98493",
23
- stretch: O,
24
- horizontal: T
18
+ stretch: j,
19
+ horizontal: z
25
20
  };
26
- function A(t) {
21
+ function N(t) {
27
22
  return t == null ? "" : typeof t == "boolean" ? t ? "wrap" : "nowrap" : t.toString();
28
23
  }
29
- function I(t, r) {
24
+ function B(t) {
30
25
  const {
31
26
  centered: i = !1,
32
- vertical: x = !1,
33
- reverseOrder: p = !1,
34
- stretch: u = !1,
35
- spaceBetween: g = !1,
36
- alignToEnd: m = !1,
37
- alignToEndAxis: F = !1,
38
- children: b,
39
- className: h,
27
+ vertical: c = !1,
28
+ reverseOrder: x = !1,
29
+ stretch: f = !1,
30
+ spaceBetween: d = !1,
31
+ alignToEnd: p = !1,
32
+ alignToEndAxis: u = !1,
33
+ children: g,
34
+ className: m,
40
35
  gap: n,
41
- direction: _,
42
- alignItems: o,
43
- justifyContent: a,
44
- wrap: l,
45
- ...v
46
- } = t, R = C(
36
+ direction: a,
37
+ alignItems: r,
38
+ justifyContent: o,
39
+ wrap: _,
40
+ ...b
41
+ } = t, v = y(
47
42
  e.root,
48
- h,
43
+ m,
49
44
  s.getResponsiveClassnames("gap", n),
50
- s.getResponsiveClassnames("flex-direction", _),
51
- s.getResponsiveClassnames("align-items", o),
52
- s.getResponsiveClassnames("justify-content", a),
53
- s.getResponsiveClassnames("flex-wrap", l),
45
+ s.getResponsiveClassnames("flex-direction", a),
46
+ s.getResponsiveClassnames("align-items", r),
47
+ s.getResponsiveClassnames("justify-content", o),
48
+ s.getResponsiveClassnames("flex-wrap", _),
54
49
  {
55
50
  [e.centered]: i === !0,
56
51
  [e["centered-axis"]]: i === "axis",
57
52
  [e["centered-cross-axis"]]: i === "cross-axis",
58
53
  [e["baseline-axis"]]: i === "baseline-axis",
59
54
  [e["baseline-cross-axis"]]: i === "baseline-cross-axis",
60
- [e.vertical]: x,
61
- [e.horizontal]: !x,
62
- [e.stretch]: u,
63
- [e["align-to-end"]]: m,
64
- [e["align-to-end-axis"]]: F,
65
- [e["space-between"]]: g,
66
- [e["reverse-order"]]: p
55
+ [e.vertical]: c,
56
+ [e.horizontal]: !c,
57
+ [e.stretch]: f,
58
+ [e["align-to-end"]]: p,
59
+ [e["align-to-end-axis"]]: u,
60
+ [e["space-between"]]: d,
61
+ [e["reverse-order"]]: x
67
62
  }
68
- ), w = d.useMemo(() => ({
63
+ ), F = l.useMemo(() => ({
69
64
  ...s.getOffsetStyles("gap", n),
70
- ...s.getResponsiveStyles("flex-direction", _),
71
- ...s.getResponsiveStyles("align-items", o),
72
- ...s.getResponsiveStyles("justify-content", a),
73
- ...s.getResponsiveStyles("flex-wrap", l, A)
74
- }), [n, _, o, a, l]);
75
- return /* @__PURE__ */ c(
76
- y,
65
+ ...s.getResponsiveStyles("flex-direction", a),
66
+ ...s.getResponsiveStyles("align-items", r),
67
+ ...s.getResponsiveStyles("justify-content", o),
68
+ ...s.getResponsiveStyles("flex-wrap", _, N)
69
+ }), [n, a, r, o, _]);
70
+ return /* @__PURE__ */ R(
71
+ h,
77
72
  {
78
- ref: r,
79
- className: R,
80
- style: w,
81
- ...v,
82
- children: b
73
+ className: v,
74
+ style: F,
75
+ ...b,
76
+ children: g
83
77
  }
84
78
  );
85
79
  }
86
- const M = d.forwardRef(I), f = M;
87
- f.Restricted = function({
88
- children: r
89
- }) {
90
- return /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(S, { children: r }) });
91
- };
80
+ const M = l.memo(B);
92
81
  export {
93
- f as Flex,
94
- A as flexWrapResponsiveFormatter
82
+ M as default,
83
+ N as flexWrapResponsiveFormatter
95
84
  };
@@ -3,10 +3,11 @@ import { default as React } from 'react';
3
3
  export interface FlexRestricterProps {
4
4
  vertical?: boolean;
5
5
  children?: React.ReactNode;
6
+ ref?: React.Ref<HTMLDivElement>;
6
7
  }
7
8
  /**
8
9
  * Useful when you have some flex layout and need to restrict something within to the limits of layout itself
9
10
  *
10
11
  * To allow scrollable strictly within flex layout, for example
11
12
  */
12
- export declare const FlexRestricter: React.ForwardRefExoticComponent<FlexRestricterProps & React.RefAttributes<HTMLDivElement>>;
13
+ export declare function FlexRestricter(props: FlexRestricterProps): import("react/jsx-runtime").JSX.Element;
@@ -1,20 +1,21 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
- import s from "react";
3
- import { clsx as _ } from "../../../utils/clsx.js";
4
- const a = "cfxui__FlexRestricter__root__a1583", n = "cfxui__FlexRestricter__vertical__27ce9", f = "cfxui__FlexRestricter__horizontal__2ab15", t = {
5
- root: a,
6
- vertical: n,
7
- horizontal: f
8
- }, v = s.forwardRef(function(o, e) {
2
+ import { clsx as s } from "../../../utils/clsx.js";
3
+ const _ = "cfxui__FlexRestricter__root__a1583", a = "cfxui__FlexRestricter__vertical__27ce9", n = "cfxui__FlexRestricter__horizontal__2ab15", t = {
4
+ root: _,
5
+ vertical: a,
6
+ horizontal: n
7
+ };
8
+ function m(o) {
9
9
  const {
10
10
  vertical: r = !1,
11
- children: c
12
- } = o, i = _(t.root, {
11
+ children: e,
12
+ ref: c
13
+ } = o, i = s(t.root, {
13
14
  [t.vertical]: r,
14
15
  [t.horizontal]: !r
15
16
  });
16
- return /* @__PURE__ */ l("div", { ref: e, className: i, children: c });
17
- });
17
+ return /* @__PURE__ */ l("div", { ref: c, className: i, children: e });
18
+ }
18
19
  export {
19
- v as FlexRestricter
20
+ m as FlexRestricter
20
21
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
2
  import l from "react";
3
- import { Flex as s } from "./Flex.js";
3
+ import s from "./Flex.js";
4
4
  const x = "cfxui__FlexShowcase__box__d5286", o = {
5
5
  box: x
6
6
  };
@@ -1,5 +1,5 @@
1
- export { Flex } from './Flex';
2
- export type { FlexType, FlexProps } from './Flex';
1
+ export { default as Flex } from './Flex';
2
+ export type { FlexProps } from './Flex';
3
3
  export type { FlexDirectionType, FlexAlignItemsType, FlexJustifyContentType, FlexWrapType, FlexCentredType, } from './Flex.types';
4
4
  export { FlexDirectionEnum, FlexAlignItemsEnum, FlexJustifyContentEnum, FlexWrapEnum, FlexCentredEnum, } from './Flex.types';
5
5
  export { FlexRestricter } from './FlexRestricter';
@@ -1,12 +1,12 @@
1
- import { Flex as t } from "./Flex.js";
2
- import { FlexAlignItemsEnum as x, FlexCentredEnum as m, FlexDirectionEnum as l, FlexJustifyContentEnum as o, FlexWrapEnum as F } from "./Flex.types.js";
3
- import { FlexRestricter as i } from "./FlexRestricter.js";
1
+ import { default as r } from "./Flex.js";
2
+ import { FlexAlignItemsEnum as x, FlexCentredEnum as l, FlexDirectionEnum as m, FlexJustifyContentEnum as o, FlexWrapEnum as u } from "./Flex.types.js";
3
+ import { FlexRestricter as f } from "./FlexRestricter.js";
4
4
  export {
5
- t as Flex,
5
+ r as Flex,
6
6
  x as FlexAlignItemsEnum,
7
- m as FlexCentredEnum,
8
- l as FlexDirectionEnum,
7
+ l as FlexCentredEnum,
8
+ m as FlexDirectionEnum,
9
9
  o as FlexJustifyContentEnum,
10
- i as FlexRestricter,
11
- F as FlexWrapEnum
10
+ f as FlexRestricter,
11
+ u as FlexWrapEnum
12
12
  };