@cfx-dev/ui-components 4.3.1 → 4.3.3

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 (151) hide show
  1. package/dist/{Combination-CSgOhzm-.js → Combination-BGYCZNoJ.js} +375 -367
  2. package/dist/Rail-CHFAf3wJ.js +81 -0
  3. package/dist/Table.module-DffST69u.js +17 -0
  4. package/dist/assets/css/Accordion.css +1 -1
  5. package/dist/assets/css/Box.css +1 -1
  6. package/dist/assets/css/Button.css +1 -1
  7. package/dist/assets/css/DataTable.css +1 -1
  8. package/dist/assets/css/DropdownSelect.css +1 -1
  9. package/dist/assets/css/Flex.css +1 -1
  10. package/dist/assets/css/Flyout.css +1 -1
  11. package/dist/assets/css/Indicator.css +1 -1
  12. package/dist/assets/css/InfoPanel.css +1 -1
  13. package/dist/assets/css/Input.css +1 -1
  14. package/dist/assets/css/InputDropzone.css +1 -1
  15. package/dist/assets/css/Island.css +1 -1
  16. package/dist/assets/css/Link.css +1 -1
  17. package/dist/assets/css/Modal.css +1 -1
  18. package/dist/assets/css/Overlay.css +1 -1
  19. package/dist/assets/css/Pad.css +1 -1
  20. package/dist/assets/css/Popover.css +1 -1
  21. package/dist/assets/css/Radio.css +1 -1
  22. package/dist/assets/css/Rail.css +1 -1
  23. package/dist/assets/css/RichInput.css +1 -1
  24. package/dist/assets/css/Select.css +1 -1
  25. package/dist/assets/css/Separator.css +1 -1
  26. package/dist/assets/css/Switch.css +1 -1
  27. package/dist/assets/css/Table.css +1 -1
  28. package/dist/assets/css/Tabular.css +1 -1
  29. package/dist/assets/css/Text.css +1 -1
  30. package/dist/assets/css/Textarea.css +1 -1
  31. package/dist/assets/css/Title.css +1 -1
  32. package/dist/assets/css/ToggleGroup.css +1 -1
  33. package/dist/assets/general/global.css +1 -1
  34. package/dist/assets/general/themes.css +1 -1
  35. package/dist/components/Accordion/Accordion.js +5 -5
  36. package/dist/components/Accordion/AccordionShowcase.js +1 -1
  37. package/dist/components/Avatar/AvatarShowcase.js +1 -1
  38. package/dist/components/Badge/BadgeShowcase.js +1 -1
  39. package/dist/components/Box/Box.d.ts +6 -0
  40. package/dist/components/Box/Box.js +23 -0
  41. package/dist/components/Box/index.d.ts +3 -0
  42. package/dist/components/Box/index.js +6 -0
  43. package/dist/components/BurgerMenu/BurgerMenu.js +7 -7
  44. package/dist/components/BurgerMenu/BurgerMenuButton.js +2 -2
  45. package/dist/components/BurgerMenu/BurgerMenuShowcase.js +1 -1
  46. package/dist/components/Button/ButtonShowcase.js +1 -1
  47. package/dist/components/Checkbox/Checkbox.js +252 -157
  48. package/dist/components/DataTable/DataTable.js +2 -2
  49. package/dist/components/DataTable/DataTableShowcase.js +2 -2
  50. package/dist/components/DropdownSelect/DropdownSelect.js +13 -13
  51. package/dist/components/DropdownSelect/DropdownSelectShowcase.js +1 -1
  52. package/dist/components/Flex/Flex.d.ts +7 -0
  53. package/dist/components/Flex/Flex.js +23 -0
  54. package/dist/components/Flex/index.d.ts +6 -0
  55. package/dist/components/{Layout/Flex → Flex}/index.js +2 -2
  56. package/dist/components/Flyout/Flyout.js +6 -6
  57. package/dist/components/InfoPanel/InfoPanel.js +3 -3
  58. package/dist/components/InfoPanel/InfoPanelShowcase.js +1 -1
  59. package/dist/components/Input/Input.js +87 -87
  60. package/dist/components/Input/InputShowcase.js +1 -1
  61. package/dist/components/Input/RichInput.js +42 -42
  62. package/dist/components/Island/Island.js +27 -27
  63. package/dist/components/Layout/Pad/Pad.js +20 -20
  64. package/dist/components/Link/LinkShowcase.js +1 -1
  65. package/dist/components/Logos/LogosShowcase.js +1 -1
  66. package/dist/components/Modal/ModalShowcase.js +4 -4
  67. package/dist/components/OnScreenSensor.js +13 -13
  68. package/dist/components/Popover/Popover.js +5 -5
  69. package/dist/components/Popover/PopoverShowcase.js +1 -1
  70. package/dist/components/{Layout → RSC}/Box/Box.d.ts +3 -2
  71. package/dist/components/RSC/Box/Box.js +101 -0
  72. package/dist/components/RSC/Box/index.d.ts +2 -0
  73. package/dist/components/RSC/Box/index.js +7 -0
  74. package/dist/components/{Layout → RSC}/Flex/Flex.d.ts +4 -2
  75. package/dist/components/RSC/Flex/Flex.js +119 -0
  76. package/dist/components/{Layout → RSC}/Flex/index.d.ts +1 -1
  77. package/dist/components/RSC/Flex/index.js +15 -0
  78. package/dist/components/Scrollable/Rail.js +9 -0
  79. package/dist/components/Scrollable/Scrollable.js +88 -0
  80. package/dist/components/{Layout/Scrollable → Scrollable}/ScrollableShowcase.js +3 -3
  81. package/dist/components/{Layout/Scrollable → Scrollable}/VirtualScrollable.js +3 -3
  82. package/dist/components/{Layout/Scrollable → Scrollable}/index.js +1 -1
  83. package/dist/components/Select/Select.js +3 -3
  84. package/dist/components/Select/SelectShowcase.js +1 -1
  85. package/dist/components/Separator/Separator.js +3 -3
  86. package/dist/components/Shroud/Shroud.js +7 -7
  87. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  88. package/dist/components/Skeleton/Skeleton.js +5 -5
  89. package/dist/components/Skeleton/SkeletonShowcase.js +1 -1
  90. package/dist/components/Slider/Slider.js +2 -2
  91. package/dist/components/Slider/SliderShowcase.js +1 -1
  92. package/dist/components/Switch/Switch.js +1 -1
  93. package/dist/components/Table/TableBody.js +1 -1
  94. package/dist/components/Table/TableCell.d.ts +1 -1
  95. package/dist/components/Table/TableCell.js +13 -12
  96. package/dist/components/Table/TableCellCheckbox.js +1 -1
  97. package/dist/components/Table/TableHeader.js +1 -1
  98. package/dist/components/Table/TableIconButton.js +1 -1
  99. package/dist/components/Table/TableRoot.js +1 -1
  100. package/dist/components/Table/TableRow.js +1 -1
  101. package/dist/components/Tabular/TabularShowcase.js +1 -1
  102. package/dist/components/Text/TextShowcase.js +2 -2
  103. package/dist/components/Textarea/Textarea.js +32 -34
  104. package/dist/components/Title/Title.js +62 -62
  105. package/dist/components/Title/TitleShowcase.js +1 -1
  106. package/dist/components/ToggleGroup/ToggleGroup.js +7 -7
  107. package/dist/components/ToggleGroup/ToggleGroupShowcase.js +1 -1
  108. package/dist/index-ByKwkZKY.js +239 -0
  109. package/dist/{index-HDl8nGsm.js → index-CriGVLlo.js} +1 -1
  110. package/dist/{index-DZEAOJqB.js → index-DlJ4qUbZ.js} +1 -1
  111. package/dist/main.d.ts +6 -6
  112. package/dist/main.js +94 -93
  113. package/dist/rsc.d.ts +4 -0
  114. package/dist/rsc.js +16 -0
  115. package/dist/styles-scss/_colors.scss +41 -32
  116. package/dist/styles-scss/_typography.scss +5 -5
  117. package/dist/styles-scss/_ui.scss +36 -20
  118. package/dist/styles-scss/global.scss +24 -13
  119. package/dist/styles-scss/themes/theme_cfx.scss +3 -5
  120. package/dist/styles-scss/themes/theme_fivem.scss +5 -7
  121. package/dist/styles-scss/themes/theme_redm.scss +4 -6
  122. package/dist/styles-scss/themes/theme_wireframe.scss +5 -7
  123. package/dist/styles-scss/themes.scss +4 -4
  124. package/dist/styles-scss/tokens.scss +2 -56
  125. package/dist/utils/hooks/useGlobalKeyboardEvent.js +3 -3
  126. package/dist/utils/hooks/useWindowResize.js +5 -5
  127. package/dist/utils/string.d.ts +1 -0
  128. package/dist/utils/string.js +23 -19
  129. package/package.json +10 -5
  130. package/dist/Rail-DcVowhML.js +0 -81
  131. package/dist/Table.module-DHI1mXN2.js +0 -17
  132. package/dist/components/Layout/Box/Box.js +0 -72
  133. package/dist/components/Layout/Box/index.d.ts +0 -2
  134. package/dist/components/Layout/Box/index.js +0 -5
  135. package/dist/components/Layout/Flex/Flex.js +0 -84
  136. package/dist/components/Layout/Scrollable/Rail.js +0 -9
  137. package/dist/components/Layout/Scrollable/Scrollable.js +0 -91
  138. package/dist/index-BHuChyf5.js +0 -238
  139. /package/dist/components/{Layout/Flex → Flex}/FlexShowcase.d.ts +0 -0
  140. /package/dist/components/{Layout/Flex → Flex}/FlexShowcase.js +0 -0
  141. /package/dist/components/{Layout → RSC}/Box/Box.types.d.ts +0 -0
  142. /package/dist/components/{Layout → RSC}/Box/Box.types.js +0 -0
  143. /package/dist/components/{Layout → RSC}/Flex/Flex.types.d.ts +0 -0
  144. /package/dist/components/{Layout → RSC}/Flex/Flex.types.js +0 -0
  145. /package/dist/components/{Layout → RSC}/Flex/FlexRestricter.d.ts +0 -0
  146. /package/dist/components/{Layout → RSC}/Flex/FlexRestricter.js +0 -0
  147. /package/dist/components/{Layout/Scrollable → Scrollable}/Rail.d.ts +0 -0
  148. /package/dist/components/{Layout/Scrollable → Scrollable}/Scrollable.d.ts +0 -0
  149. /package/dist/components/{Layout/Scrollable → Scrollable}/ScrollableShowcase.d.ts +0 -0
  150. /package/dist/components/{Layout/Scrollable → Scrollable}/VirtualScrollable.d.ts +0 -0
  151. /package/dist/components/{Layout/Scrollable → Scrollable}/index.d.ts +0 -0
@@ -1,9 +1,9 @@
1
- import { jsxs as z, jsx as p } from "react/jsx-runtime";
2
- import * as c from "react";
3
- import A from "react";
4
- import { u as w, d as L, c as O, P as E, e as S, f as j } from "../../index-BHuChyf5.js";
5
- import { u as H } from "../../index-BZPx6jYI.js";
6
- import { P as K } from "../../index-HDl8nGsm.js";
1
+ import { jsx as u, jsxs as w, Fragment as $ } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import G from "react";
4
+ import { c as K, P as E, d as X, u as B, e as q, f as J } from "../../index-ByKwkZKY.js";
5
+ import { u as Q } from "../../index-BZPx6jYI.js";
6
+ import { P as V } from "../../index-CriGVLlo.js";
7
7
  import "../Icons/cfx-icons/Close.js";
8
8
  import "../Icons/cfx-icons/Controller.js";
9
9
  import "../Icons/cfx-icons/Copy.js";
@@ -25,16 +25,16 @@ import "../Icons/cfx-icons/MoreInfo.js";
25
25
  import "../Icons/cfx-icons/Pencil.js";
26
26
  import "../Icons/cfx-icons/Play.js";
27
27
  import "../Icons/cfx-icons/Plus.js";
28
- import g from "../Icons/cfx-icons/Radio.js";
28
+ import z from "../Icons/cfx-icons/Radio.js";
29
29
  import "../Icons/cfx-icons/Refresh.js";
30
30
  import "../Icons/cfx-icons/RightArrow.js";
31
31
  import "../Icons/cfx-icons/RightChevron.js";
32
32
  import "../Icons/cfx-icons/Search.js";
33
33
  import "../Icons/cfx-icons/Sort.js";
34
- import $ from "../Icons/cfx-icons/Square.js";
34
+ import W from "../Icons/cfx-icons/Square.js";
35
35
  import "../Icons/cfx-icons/SquareCheck.js";
36
36
  import "../Icons/cfx-icons/Stop.js";
37
- import X from "../Icons/cfx-icons/Tick.js";
37
+ import Y from "../Icons/cfx-icons/Tick.js";
38
38
  import "../Icons/cfx-icons/Transfer.js";
39
39
  import "../Icons/cfx-icons/Trash.js";
40
40
  import "../Icons/cfx-icons/Undo.js";
@@ -55,191 +55,286 @@ import "../Icons/cfx-icons-big/Subscriptions.js";
55
55
  import "../Icons/cfx-icons-big/Upload.js";
56
56
  import "../Icons/cfx-icons-big/Warning.js";
57
57
  import "../Icons/cfx-icons-big/Confirm.js";
58
- import { clsx as P } from "../../utils/clsx.js";
59
- import { getColor as F } from "../../utils/color.js";
60
- var y = "Checkbox", [G, lo] = O(y), [J, Q] = G(y), q = c.forwardRef(
61
- (e, l) => {
58
+ import { clsx as g } from "../../utils/clsx.js";
59
+ import { getColor as Z } from "../../utils/color.js";
60
+ var R = "Checkbox", [ee, bo] = K(R), [oe, N] = ee(R);
61
+ function te(o) {
62
+ const {
63
+ __scopeCheckbox: n,
64
+ checked: r,
65
+ children: a,
66
+ defaultChecked: t,
67
+ disabled: e,
68
+ form: f,
69
+ name: _,
70
+ onCheckedChange: d,
71
+ required: m,
72
+ value: h = "on",
73
+ // @ts-expect-error
74
+ internal_do_not_use_render: i
75
+ } = o, [p, C] = X({
76
+ prop: r,
77
+ defaultProp: t ?? !1,
78
+ onChange: d,
79
+ caller: R
80
+ }), [x, v] = l.useState(null), [I, c] = l.useState(null), s = l.useRef(!1), y = x ? !!f || !!x.closest("form") : (
81
+ // We set this to true by default so that events bubble to forms without JS (SSR)
82
+ !0
83
+ ), P = {
84
+ checked: p,
85
+ disabled: e,
86
+ setChecked: C,
87
+ control: x,
88
+ setControl: v,
89
+ name: _,
90
+ form: f,
91
+ value: h,
92
+ hasConsumerStoppedPropagationRef: s,
93
+ required: m,
94
+ defaultChecked: k(t) ? !1 : t,
95
+ isFormControl: y,
96
+ bubbleInput: I,
97
+ setBubbleInput: c
98
+ };
99
+ return /* @__PURE__ */ u(
100
+ oe,
101
+ {
102
+ scope: n,
103
+ ...P,
104
+ children: re(i) ? i(P) : a
105
+ }
106
+ );
107
+ }
108
+ var T = "CheckboxTrigger", M = l.forwardRef(
109
+ ({ __scopeCheckbox: o, onKeyDown: n, onClick: r, ...a }, t) => {
62
110
  const {
63
- __scopeCheckbox: o,
64
- name: n,
65
- checked: u,
66
- defaultChecked: r,
67
- required: k,
68
- disabled: s,
69
- value: h = "on",
70
- onCheckedChange: a,
71
- form: f,
72
- ...x
73
- } = e, [t, b] = c.useState(null), N = w(l, (i) => b(i)), _ = c.useRef(!1), I = t ? f || !!t.closest("form") : !0, [C, R] = L({
74
- prop: u,
75
- defaultProp: r ?? !1,
76
- onChange: a,
77
- caller: y
78
- }), T = c.useRef(C);
79
- return c.useEffect(() => {
80
- const i = t == null ? void 0 : t.form;
81
- if (i) {
82
- const v = () => R(T.current);
83
- return i.addEventListener("reset", v), () => i.removeEventListener("reset", v);
111
+ control: e,
112
+ value: f,
113
+ disabled: _,
114
+ checked: d,
115
+ required: m,
116
+ setControl: h,
117
+ setChecked: i,
118
+ hasConsumerStoppedPropagationRef: p,
119
+ isFormControl: C,
120
+ bubbleInput: x
121
+ } = N(T, o), v = B(t, h), I = l.useRef(d);
122
+ return l.useEffect(() => {
123
+ const c = e == null ? void 0 : e.form;
124
+ if (c) {
125
+ const s = () => i(I.current);
126
+ return c.addEventListener("reset", s), () => c.removeEventListener("reset", s);
84
127
  }
85
- }, [t, R]), /* @__PURE__ */ z(J, { scope: o, state: C, disabled: s, children: [
86
- /* @__PURE__ */ p(
87
- E.button,
88
- {
89
- type: "button",
90
- role: "checkbox",
91
- "aria-checked": d(C) ? "mixed" : C,
92
- "aria-required": k,
93
- "data-state": M(C),
94
- "data-disabled": s ? "" : void 0,
95
- disabled: s,
96
- value: h,
97
- ...x,
98
- ref: N,
99
- onKeyDown: S(e.onKeyDown, (i) => {
100
- i.key === "Enter" && i.preventDefault();
101
- }),
102
- onClick: S(e.onClick, (i) => {
103
- R((v) => d(v) ? !0 : !v), I && (_.current = i.isPropagationStopped(), _.current || i.stopPropagation());
104
- })
105
- }
106
- ),
107
- I && /* @__PURE__ */ p(
108
- D,
109
- {
110
- control: t,
111
- bubbles: !_.current,
112
- name: n,
113
- value: h,
114
- checked: C,
115
- required: k,
116
- disabled: s,
117
- form: f,
118
- style: { transform: "translateX(-100%)" },
119
- defaultChecked: d(r) ? !1 : r
120
- }
121
- )
122
- ] });
128
+ }, [e, i]), /* @__PURE__ */ u(
129
+ E.button,
130
+ {
131
+ type: "button",
132
+ role: "checkbox",
133
+ "aria-checked": k(d) ? "mixed" : d,
134
+ "aria-required": m,
135
+ "data-state": O(d),
136
+ "data-disabled": _ ? "" : void 0,
137
+ disabled: _,
138
+ value: f,
139
+ ...a,
140
+ ref: v,
141
+ onKeyDown: q(n, (c) => {
142
+ c.key === "Enter" && c.preventDefault();
143
+ }),
144
+ onClick: q(r, (c) => {
145
+ i((s) => k(s) ? !0 : !s), x && C && (p.current = c.isPropagationStopped(), p.current || c.stopPropagation());
146
+ })
147
+ }
148
+ );
123
149
  }
124
150
  );
125
- q.displayName = y;
126
- var B = "CheckboxIndicator", U = c.forwardRef(
127
- (e, l) => {
128
- const { __scopeCheckbox: o, forceMount: n, ...u } = e, r = Q(B, o);
129
- return /* @__PURE__ */ p(K, { present: n || d(r.state) || r.state === !0, children: /* @__PURE__ */ p(
130
- E.span,
151
+ M.displayName = T;
152
+ var U = l.forwardRef(
153
+ (o, n) => {
154
+ const {
155
+ __scopeCheckbox: r,
156
+ name: a,
157
+ checked: t,
158
+ defaultChecked: e,
159
+ required: f,
160
+ disabled: _,
161
+ value: d,
162
+ onCheckedChange: m,
163
+ form: h,
164
+ ...i
165
+ } = o;
166
+ return /* @__PURE__ */ u(
167
+ te,
131
168
  {
132
- "data-state": M(r.state),
133
- "data-disabled": r.disabled ? "" : void 0,
134
- ...u,
135
- ref: l,
136
- style: { pointerEvents: "none", ...e.style }
169
+ __scopeCheckbox: r,
170
+ checked: t,
171
+ defaultChecked: e,
172
+ disabled: _,
173
+ required: f,
174
+ onCheckedChange: m,
175
+ name: a,
176
+ form: h,
177
+ value: d,
178
+ internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */ w($, { children: [
179
+ /* @__PURE__ */ u(
180
+ M,
181
+ {
182
+ ...i,
183
+ ref: n,
184
+ __scopeCheckbox: r
185
+ }
186
+ ),
187
+ p && /* @__PURE__ */ u(
188
+ L,
189
+ {
190
+ __scopeCheckbox: r
191
+ }
192
+ )
193
+ ] })
137
194
  }
138
- ) });
195
+ );
139
196
  }
140
197
  );
141
- U.displayName = B;
142
- var V = "CheckboxBubbleInput", D = c.forwardRef(
143
- ({
144
- __scopeCheckbox: e,
145
- control: l,
146
- checked: o,
147
- bubbles: n = !0,
148
- defaultChecked: u,
149
- ...r
150
- }, k) => {
151
- const s = c.useRef(null), h = w(s, k), a = H(o), f = j(l);
152
- c.useEffect(() => {
153
- const t = s.current;
154
- if (!t) return;
155
- const b = window.HTMLInputElement.prototype, _ = Object.getOwnPropertyDescriptor(
156
- b,
198
+ U.displayName = R;
199
+ var A = "CheckboxIndicator", D = l.forwardRef(
200
+ (o, n) => {
201
+ const { __scopeCheckbox: r, forceMount: a, ...t } = o, e = N(A, r);
202
+ return /* @__PURE__ */ u(
203
+ V,
204
+ {
205
+ present: a || k(e.checked) || e.checked === !0,
206
+ children: /* @__PURE__ */ u(
207
+ E.span,
208
+ {
209
+ "data-state": O(e.checked),
210
+ "data-disabled": e.disabled ? "" : void 0,
211
+ ...t,
212
+ ref: n,
213
+ style: { pointerEvents: "none", ...o.style }
214
+ }
215
+ )
216
+ }
217
+ );
218
+ }
219
+ );
220
+ D.displayName = A;
221
+ var F = "CheckboxBubbleInput", L = l.forwardRef(
222
+ ({ __scopeCheckbox: o, ...n }, r) => {
223
+ const {
224
+ control: a,
225
+ hasConsumerStoppedPropagationRef: t,
226
+ checked: e,
227
+ defaultChecked: f,
228
+ required: _,
229
+ disabled: d,
230
+ name: m,
231
+ value: h,
232
+ form: i,
233
+ bubbleInput: p,
234
+ setBubbleInput: C
235
+ } = N(F, o), x = B(r, C), v = Q(e), I = J(a);
236
+ l.useEffect(() => {
237
+ const s = p;
238
+ if (!s) return;
239
+ const y = window.HTMLInputElement.prototype, S = Object.getOwnPropertyDescriptor(
240
+ y,
157
241
  "checked"
158
- ).set;
159
- if (a !== o && _) {
160
- const I = new Event("click", { bubbles: n });
161
- t.indeterminate = d(o), _.call(t, d(o) ? !1 : o), t.dispatchEvent(I);
242
+ ).set, j = !t.current;
243
+ if (v !== e && S) {
244
+ const H = new Event("click", { bubbles: j });
245
+ s.indeterminate = k(e), S.call(s, k(e) ? !1 : e), s.dispatchEvent(H);
162
246
  }
163
- }, [a, o, n]);
164
- const x = c.useRef(d(o) ? !1 : o);
165
- return /* @__PURE__ */ p(
247
+ }, [p, v, e, t]);
248
+ const c = l.useRef(k(e) ? !1 : e);
249
+ return /* @__PURE__ */ u(
166
250
  E.input,
167
251
  {
168
252
  type: "checkbox",
169
253
  "aria-hidden": !0,
170
- defaultChecked: u ?? x.current,
171
- ...r,
254
+ defaultChecked: f ?? c.current,
255
+ required: _,
256
+ disabled: d,
257
+ name: m,
258
+ value: h,
259
+ form: i,
260
+ ...n,
172
261
  tabIndex: -1,
173
- ref: h,
262
+ ref: x,
174
263
  style: {
175
- ...r.style,
176
- ...f,
264
+ ...n.style,
265
+ ...I,
177
266
  position: "absolute",
178
267
  pointerEvents: "none",
179
268
  opacity: 0,
180
- margin: 0
269
+ margin: 0,
270
+ // We transform because the input is absolutely positioned but we have
271
+ // rendered it **after** the button. This pulls it back to sit on top
272
+ // of the button.
273
+ transform: "translateX(-100%)"
181
274
  }
182
275
  }
183
276
  );
184
277
  }
185
278
  );
186
- D.displayName = V;
187
- function d(e) {
188
- return e === "indeterminate";
279
+ L.displayName = F;
280
+ function re(o) {
281
+ return typeof o == "function";
282
+ }
283
+ function k(o) {
284
+ return o === "indeterminate";
189
285
  }
190
- function M(e) {
191
- return d(e) ? "indeterminate" : e ? "checked" : "unchecked";
286
+ function O(o) {
287
+ return k(o) ? "indeterminate" : o ? "checked" : "unchecked";
192
288
  }
193
- var W = q, Y = U;
194
- const Z = "cfxui__Checkbox__rootUnset__cbb57", ee = "cfxui__Checkbox__root__865aa", oe = "cfxui__Checkbox__square__029aa", te = "cfxui__Checkbox__indicator__2afc0", re = "cfxui__Checkbox__checked__b4081", ie = "cfxui__Checkbox__radioIcon__719e7", ce = "cfxui__Checkbox__tickIcon__a7f19", m = {
195
- rootUnset: Z,
196
- root: ee,
197
- square: oe,
198
- indicator: te,
199
- checked: re,
289
+ const ce = "cfxui__Checkbox__rootUnset__cbb57", ne = "cfxui__Checkbox__root__865aa", ie = "cfxui__Checkbox__square__029aa", se = "cfxui__Checkbox__indicator__2afc0", ae = "cfxui__Checkbox__checked__b4081", de = "cfxui__Checkbox__radioIcon__719e7", me = "cfxui__Checkbox__tickIcon__a7f19", b = {
290
+ rootUnset: ce,
291
+ root: ne,
292
+ square: ie,
293
+ indicator: se,
294
+ checked: ae,
200
295
  "size-small": "cfxui__Checkbox__size-small__02440",
201
- radioIcon: ie,
202
- tickIcon: ce,
296
+ radioIcon: de,
297
+ tickIcon: me,
203
298
  "size-normal": "cfxui__Checkbox__size-normal__700f4",
204
299
  "size-large": "cfxui__Checkbox__size-large__28529"
205
300
  };
206
- function ne(e) {
301
+ function pe(o) {
207
302
  const {
208
- id: l,
209
- size: o = "normal",
210
- rootClassName: n,
211
- indicatorClassName: u,
212
- colorToken: r,
213
- color: k,
214
- opacity: s,
215
- luminance: h,
216
- iconIndicator: a = g,
217
- ...f
218
- } = e, x = P(
219
- m.root,
220
- m.rootUnset,
221
- m[`size-${o}`],
222
- n
223
- ), t = F(e), b = P(
224
- m.checked,
225
- a === X && m.tickIcon,
226
- a === g && m.radioIcon
303
+ id: n,
304
+ size: r = "normal",
305
+ rootClassName: a,
306
+ indicatorClassName: t,
307
+ colorToken: e,
308
+ color: f,
309
+ opacity: _,
310
+ luminance: d,
311
+ iconIndicator: m = z,
312
+ ...h
313
+ } = o, i = g(
314
+ b.root,
315
+ b.rootUnset,
316
+ b[`size-${r}`],
317
+ a
318
+ ), p = Z(o), C = g(
319
+ b.checked,
320
+ m === Y && b.tickIcon,
321
+ m === z && b.radioIcon
227
322
  );
228
- return /* @__PURE__ */ z(
229
- W,
323
+ return /* @__PURE__ */ w(
324
+ U,
230
325
  {
231
- ...f,
232
- id: l,
233
- style: { color: t },
234
- className: x,
326
+ ...h,
327
+ id: n,
328
+ style: { color: p },
329
+ className: i,
235
330
  children: [
236
- /* @__PURE__ */ p($, { className: m.square }),
237
- /* @__PURE__ */ p(Y, { className: P(m.indicator, u), children: /* @__PURE__ */ p(a, { className: b }) })
331
+ /* @__PURE__ */ u(W, { className: b.square }),
332
+ /* @__PURE__ */ u(D, { className: g(b.indicator, t), children: /* @__PURE__ */ u(m, { className: C }) })
238
333
  ]
239
334
  }
240
335
  );
241
336
  }
242
- const uo = A.memo(ne);
337
+ const ko = G.memo(pe);
243
338
  export {
244
- uo as default
339
+ ko as default
245
340
  };
@@ -2,9 +2,9 @@ import { jsx as t, jsxs as x } from "react/jsx-runtime";
2
2
  import s, { useState as k } from "react";
3
3
  import $ from "../Checkbox/Checkbox.js";
4
4
  import { clsx as p } from "../../utils/clsx.js";
5
- import "../Layout/Box/Box.js";
6
- import "../Layout/Flex/Flex.js";
5
+ import "../Box/Box.js";
7
6
  import "../../utils/ui/ui.js";
7
+ import "../Flex/Flex.js";
8
8
  import "../Table/TableCellCheckbox.js";
9
9
  import S from "../Table/TableIconButton.js";
10
10
  import { Text as j } from "../Text/Text.js";
@@ -1,8 +1,8 @@
1
1
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
2
  import d from "react";
3
3
  import { Badge as l } from "../Badge/Badge.js";
4
- import a from "../Layout/Flex/Flex.js";
5
- import { Scrollable as c } from "../Layout/Scrollable/Scrollable.js";
4
+ import a from "../Flex/Flex.js";
5
+ import { Scrollable as c } from "../Scrollable/Scrollable.js";
6
6
  import { Text as r } from "../Text/Text.js";
7
7
  import "../../utils/ui/ui.js";
8
8
  import { DataTable as o } from "./DataTable.js";
@@ -1,13 +1,13 @@
1
1
  import { jsx as s, jsxs as De } from "react/jsx-runtime";
2
2
  import * as a from "react";
3
3
  import { useRef as vo, useState as ho, useEffect as Mo } from "react";
4
- import { c as me, P as O, e as g, u as U, d as ye, g as Co, b as Ro, h as Te } from "../../index-BHuChyf5.js";
5
- import { c as Ae, u as Ne } from "../../index-DZEAOJqB.js";
6
- import { u as de, a as _e, c as Oe, R as So, A as Io, h as bo, b as Do, d as Eo, F as xo, D as Po, C as yo, e as To } from "../../Combination-CSgOhzm-.js";
7
- import { P as ge } from "../../index-HDl8nGsm.js";
8
- import { Icon as Ao } from "../Icon/Icon.js";
9
- import No from "../Layout/Flex/Flex.js";
4
+ import { c as me, P as O, e as g, u as U, d as ye, g as Co, b as Ro, h as Te } from "../../index-ByKwkZKY.js";
5
+ import { c as Ae, u as Ne } from "../../index-DlJ4qUbZ.js";
6
+ import { u as de, a as _e, c as Oe, R as So, A as Io, h as bo, b as Do, d as Eo, F as xo, D as Po, C as yo, e as To } from "../../Combination-BGYCZNoJ.js";
7
+ import { P as ge } from "../../index-CriGVLlo.js";
8
+ import Ao from "../Flex/Flex.js";
10
9
  import { clsx as Ee } from "../../utils/clsx.js";
10
+ import { Icon as No } from "../Icon/Icon.js";
11
11
  import { mergeRefs as Oo } from "../../utils/mergeRefs.js";
12
12
  import { ui as xe } from "../../utils/ui/ui.js";
13
13
  var le = "rovingFocusGroup.onEntryFocus", Fo = { bubbles: !1, cancelable: !0 }, Z = "RovingFocusGroup", [fe, Fe, ko] = Ae(Z), [Go, ke] = me(
@@ -912,11 +912,11 @@ var tt = "DropdownMenuSubContent", rt = a.forwardRef((e, n) => {
912
912
  });
913
913
  rt.displayName = tt;
914
914
  var at = lo, ct = po, st = _o, it = go;
915
- const ut = "cfxui__DropdownSelect__trigger__c03df", lt = "cfxui__DropdownSelect__onlight__f0191", dt = "cfxui__DropdownSelect__fullWidth__dce56", ft = "cfxui__DropdownSelect__icon__d05b8", pt = "cfxui__DropdownSelect__placeholder__e0d89", mt = "cfxui__DropdownSelect__content__05ed8", _t = "cfxui__DropdownSelect__item__0e45f", T = {
916
- trigger: ut,
917
- onlight: lt,
918
- fullWidth: dt,
919
- icon: ft,
915
+ const ut = "cfxui__DropdownSelect__icon__d05b8", lt = "cfxui__DropdownSelect__trigger__c03df", dt = "cfxui__DropdownSelect__onlight__f0191", ft = "cfxui__DropdownSelect__fullWidth__dce56", pt = "cfxui__DropdownSelect__placeholder__e0d89", mt = "cfxui__DropdownSelect__content__05ed8", _t = "cfxui__DropdownSelect__item__0e45f", T = {
916
+ icon: ut,
917
+ trigger: lt,
918
+ onlight: dt,
919
+ fullWidth: ft,
920
920
  placeholder: pt,
921
921
  content: mt,
922
922
  item: _t,
@@ -976,9 +976,9 @@ function Tt(e) {
976
976
  ref: Oo(_, u),
977
977
  className: v,
978
978
  disabled: d,
979
- children: /* @__PURE__ */ De(No, { gap: "small", centered: !0, spaceBetween: !0, children: [
979
+ children: /* @__PURE__ */ De(Ao, { gap: "small", centered: !0, spaceBetween: !0, children: [
980
980
  o || m,
981
- /* @__PURE__ */ s(Ao, { className: T.icon, name: "DownChevron" })
981
+ /* @__PURE__ */ s(No, { className: T.icon, name: "DownChevron" })
982
982
  ] })
983
983
  }
984
984
  ),
@@ -1,6 +1,6 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import r from "react";
3
- import l from "../Layout/Flex/Flex.js";
3
+ import l from "../Flex/Flex.js";
4
4
  import { Text as o } from "../Text/Text.js";
5
5
  import "../../utils/ui/ui.js";
6
6
  import { DropdownSelect as a } from "./DropdownSelect.js";
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { FlexProps as FlexPropsRSC } from '../RSC/Flex';
3
+
4
+ export type FlexProps = FlexPropsRSC;
5
+ declare function Flex(props: FlexProps): import("react/jsx-runtime").JSX.Element;
6
+ declare const _default: React.MemoExoticComponent<typeof Flex>;
7
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import t from "react";
3
+ import r from "../Box/Box.js";
4
+ import "../../utils/ui/ui.js";
5
+ import { getFlexClassNames as a, getFlexStyles as c, getBoxProps as n } from "../RSC/Flex/Flex.js";
6
+ function x(e) {
7
+ const {
8
+ children: o
9
+ } = e, m = a(e), s = t.useMemo(() => c(e), [e]);
10
+ return /* @__PURE__ */ l(
11
+ r,
12
+ {
13
+ className: m,
14
+ style: s,
15
+ ...n(e),
16
+ children: o
17
+ }
18
+ );
19
+ }
20
+ const g = t.memo(x);
21
+ export {
22
+ g as default
23
+ };
@@ -0,0 +1,6 @@
1
+ export { default as Flex } from './Flex';
2
+ export type { FlexProps } from './Flex';
3
+ export type { FlexDirectionType, FlexAlignItemsType, FlexJustifyContentType, FlexWrapType, FlexCentredType, } from '../RSC/Flex/Flex.types';
4
+ export { FlexDirectionEnum, FlexAlignItemsEnum, FlexJustifyContentEnum, FlexWrapEnum, FlexCentredEnum, } from '../RSC/Flex/Flex.types';
5
+ export { FlexRestricter } from '../RSC/Flex/FlexRestricter';
6
+ export type { FlexRestricterProps } from '../RSC/Flex/FlexRestricter';
@@ -1,6 +1,6 @@
1
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";
2
+ import { FlexAlignItemsEnum as x, FlexCentredEnum as l, FlexDirectionEnum as m, FlexJustifyContentEnum as o, FlexWrapEnum as u } from "../RSC/Flex/Flex.types.js";
3
+ import { FlexRestricter as f } from "../RSC/Flex/FlexRestricter.js";
4
4
  export {
5
5
  r as Flex,
6
6
  x as FlexAlignItemsEnum,
@@ -9,18 +9,18 @@ import { Interactive as y } from "../Interactive/Interactive.js";
9
9
  import "../../utils/hooks/useGlobalKeyboardEvent.js";
10
10
  import { useKeyboardClose as F } from "../../utils/hooks/useKeyboardClose.js";
11
11
  import { useOutlet as x } from "../../utils/hooks/useOutlet.js";
12
- const k = "cfxui__Flyout__root__eba04", b = "cfxui__Flyout__holder__d80b5", v = "cfxui__Flyout__active__14a29", C = "cfxui__Flyout__backdrop__57f9e", N = "cfxui__Flyout__mask__72713", z = "cfxui__Flyout__content__04e42", L = "cfxui__Flyout__header__40009", O = "cfxui__Flyout__title__b235a", o = {
12
+ const k = "cfxui__Flyout__root__eba04", b = "cfxui__Flyout__backdrop__57f9e", v = "cfxui__Flyout__mask__72713", C = "cfxui__Flyout__holder__d80b5", N = "cfxui__Flyout__content__04e42", z = "cfxui__Flyout__active__14a29", L = "cfxui__Flyout__header__40009", O = "cfxui__Flyout__title__b235a", o = {
13
13
  root: k,
14
+ backdrop: b,
15
+ mask: v,
16
+ holder: C,
17
+ content: N,
14
18
  "size-normal": "cfxui__Flyout__size-normal__e1165",
15
- holder: b,
16
19
  "size-small": "cfxui__Flyout__size-small__038a5",
17
20
  "size-xsmall": "cfxui__Flyout__size-xsmall__839e8",
18
- active: v,
19
- backdrop: C,
21
+ active: z,
20
22
  "backdrop-appearance": "cfxui__Flyout__backdrop-appearance__d9564",
21
- mask: N,
22
23
  "holder-appearance": "cfxui__Flyout__holder-appearance__e818c",
23
- content: z,
24
24
  header: L,
25
25
  title: O
26
26
  }, E = "flyout-outlet";
@@ -2,11 +2,11 @@ import { jsxs as m, jsx as o } from "react/jsx-runtime";
2
2
  import u from "react";
3
3
  import { Icon as _ } from "../Icon/Icon.js";
4
4
  import { clsx as x } from "../../utils/clsx.js";
5
- const I = "cfxui__InfoPanel__rootUnset__7ca3f", p = "cfxui__InfoPanel__root__a19ad", P = "cfxui__InfoPanel__interactive__1b051", v = "cfxui__InfoPanel__interactiveIcon__03510", y = "cfxui__InfoPanel__icon__b2fca", d = "cfxui__InfoPanel__content__43082", n = {
5
+ const I = "cfxui__InfoPanel__rootUnset__7ca3f", p = "cfxui__InfoPanel__root__a19ad", P = "cfxui__InfoPanel__interactiveIcon__03510", v = "cfxui__InfoPanel__interactive__1b051", y = "cfxui__InfoPanel__icon__b2fca", d = "cfxui__InfoPanel__content__43082", n = {
6
6
  rootUnset: I,
7
7
  root: p,
8
- interactive: P,
9
- interactiveIcon: v,
8
+ interactiveIcon: P,
9
+ interactive: v,
10
10
  "type-neutral": "cfxui__InfoPanel__type-neutral__c4653",
11
11
  "type-error": "cfxui__InfoPanel__type-error__bdfbf",
12
12
  "type-success": "cfxui__InfoPanel__type-success__e3f02",
@@ -1,6 +1,6 @@
1
1
  import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
2
  import a from "react";
3
- import n from "../Layout/Flex/Flex.js";
3
+ import n from "../Flex/Flex.js";
4
4
  import { Text as i } from "../Text/Text.js";
5
5
  import "../../utils/ui/ui.js";
6
6
  import { LOREM_IPSUM as t } from "../../utils/loremipsum.js";