@cfx-dev/ui-components 4.3.2 → 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.
- package/dist/{Combination-CSgOhzm-.js → Combination-BGYCZNoJ.js} +375 -367
- package/dist/Rail-CHFAf3wJ.js +81 -0
- package/dist/Table.module-DffST69u.js +17 -0
- package/dist/assets/css/Accordion.css +1 -1
- package/dist/assets/css/Box.css +1 -1
- package/dist/assets/css/Button.css +1 -1
- package/dist/assets/css/DropdownSelect.css +1 -1
- package/dist/assets/css/Flex.css +1 -1
- package/dist/assets/css/Flyout.css +1 -1
- package/dist/assets/css/Indicator.css +1 -1
- package/dist/assets/css/InfoPanel.css +1 -1
- package/dist/assets/css/Input.css +1 -1
- package/dist/assets/css/InputDropzone.css +1 -1
- package/dist/assets/css/Island.css +1 -1
- package/dist/assets/css/Link.css +1 -1
- package/dist/assets/css/Modal.css +1 -1
- package/dist/assets/css/Overlay.css +1 -1
- package/dist/assets/css/Pad.css +1 -1
- package/dist/assets/css/Popover.css +1 -1
- package/dist/assets/css/Radio.css +1 -1
- package/dist/assets/css/Rail.css +1 -1
- package/dist/assets/css/RichInput.css +1 -1
- package/dist/assets/css/Select.css +1 -1
- package/dist/assets/css/Separator.css +1 -1
- package/dist/assets/css/Switch.css +1 -1
- package/dist/assets/css/Table.css +1 -1
- package/dist/assets/css/Tabular.css +1 -1
- package/dist/assets/css/Text.css +1 -1
- package/dist/assets/css/Textarea.css +1 -1
- package/dist/assets/css/Title.css +1 -1
- package/dist/assets/css/ToggleGroup.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/assets/general/themes.css +1 -1
- package/dist/components/Accordion/Accordion.js +5 -5
- package/dist/components/Accordion/AccordionShowcase.js +1 -1
- package/dist/components/Avatar/AvatarShowcase.js +1 -1
- package/dist/components/Badge/BadgeShowcase.js +1 -1
- package/dist/components/Box/Box.d.ts +6 -0
- package/dist/components/Box/Box.js +23 -0
- package/dist/components/Box/index.d.ts +3 -0
- package/dist/components/Box/index.js +6 -0
- package/dist/components/BurgerMenu/BurgerMenu.js +7 -7
- package/dist/components/BurgerMenu/BurgerMenuButton.js +2 -2
- package/dist/components/BurgerMenu/BurgerMenuShowcase.js +1 -1
- package/dist/components/Button/ButtonShowcase.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +252 -157
- package/dist/components/DataTable/DataTable.js +2 -2
- package/dist/components/DataTable/DataTableShowcase.js +2 -2
- package/dist/components/DropdownSelect/DropdownSelect.js +13 -13
- package/dist/components/DropdownSelect/DropdownSelectShowcase.js +1 -1
- package/dist/components/Flex/Flex.d.ts +7 -0
- package/dist/components/Flex/Flex.js +23 -0
- package/dist/components/Flex/index.d.ts +6 -0
- package/dist/components/{Layout/Flex → Flex}/index.js +2 -2
- package/dist/components/Flyout/Flyout.js +6 -6
- package/dist/components/InfoPanel/InfoPanel.js +3 -3
- package/dist/components/InfoPanel/InfoPanelShowcase.js +1 -1
- package/dist/components/Input/Input.js +87 -87
- package/dist/components/Input/InputShowcase.js +1 -1
- package/dist/components/Input/RichInput.js +42 -42
- package/dist/components/Island/Island.js +27 -27
- package/dist/components/Layout/Pad/Pad.js +20 -20
- package/dist/components/Link/LinkShowcase.js +1 -1
- package/dist/components/Logos/LogosShowcase.js +1 -1
- package/dist/components/Modal/ModalShowcase.js +4 -4
- package/dist/components/OnScreenSensor.js +13 -13
- package/dist/components/Popover/Popover.js +5 -5
- package/dist/components/Popover/PopoverShowcase.js +1 -1
- package/dist/components/{Layout → RSC}/Box/Box.d.ts +3 -2
- package/dist/components/RSC/Box/Box.js +101 -0
- package/dist/components/RSC/Box/index.d.ts +2 -0
- package/dist/components/RSC/Box/index.js +7 -0
- package/dist/components/{Layout → RSC}/Flex/Flex.d.ts +4 -2
- package/dist/components/RSC/Flex/Flex.js +119 -0
- package/dist/components/{Layout → RSC}/Flex/index.d.ts +1 -1
- package/dist/components/RSC/Flex/index.js +15 -0
- package/dist/components/Scrollable/Rail.js +9 -0
- package/dist/components/Scrollable/Scrollable.js +88 -0
- package/dist/components/{Layout/Scrollable → Scrollable}/ScrollableShowcase.js +3 -3
- package/dist/components/{Layout/Scrollable → Scrollable}/VirtualScrollable.js +3 -3
- package/dist/components/{Layout/Scrollable → Scrollable}/index.js +1 -1
- package/dist/components/Select/Select.js +3 -3
- package/dist/components/Select/SelectShowcase.js +1 -1
- package/dist/components/Separator/Separator.js +3 -3
- package/dist/components/Shroud/Shroud.js +7 -7
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.js +5 -5
- package/dist/components/Skeleton/SkeletonShowcase.js +1 -1
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Slider/SliderShowcase.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Table/TableBody.js +1 -1
- package/dist/components/Table/TableCell.d.ts +1 -1
- package/dist/components/Table/TableCell.js +13 -12
- package/dist/components/Table/TableCellCheckbox.js +1 -1
- package/dist/components/Table/TableHeader.js +1 -1
- package/dist/components/Table/TableIconButton.js +1 -1
- package/dist/components/Table/TableRoot.js +1 -1
- package/dist/components/Table/TableRow.js +1 -1
- package/dist/components/Tabular/TabularShowcase.js +1 -1
- package/dist/components/Text/TextShowcase.js +2 -2
- package/dist/components/Textarea/Textarea.js +32 -34
- package/dist/components/Title/Title.js +62 -62
- package/dist/components/Title/TitleShowcase.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.js +7 -7
- package/dist/components/ToggleGroup/ToggleGroupShowcase.js +1 -1
- package/dist/index-ByKwkZKY.js +239 -0
- package/dist/{index-HDl8nGsm.js → index-CriGVLlo.js} +1 -1
- package/dist/{index-DZEAOJqB.js → index-DlJ4qUbZ.js} +1 -1
- package/dist/main.d.ts +6 -6
- package/dist/main.js +94 -93
- package/dist/rsc.d.ts +4 -0
- package/dist/rsc.js +16 -0
- package/dist/styles-scss/_colors.scss +41 -32
- package/dist/styles-scss/_typography.scss +5 -5
- package/dist/styles-scss/_ui.scss +36 -20
- package/dist/styles-scss/global.scss +24 -13
- package/dist/styles-scss/themes/theme_cfx.scss +3 -5
- package/dist/styles-scss/themes/theme_fivem.scss +5 -7
- package/dist/styles-scss/themes/theme_redm.scss +4 -6
- package/dist/styles-scss/themes/theme_wireframe.scss +5 -7
- package/dist/styles-scss/themes.scss +4 -4
- package/dist/styles-scss/tokens.scss +2 -56
- package/dist/utils/hooks/useGlobalKeyboardEvent.js +3 -3
- package/dist/utils/hooks/useWindowResize.js +5 -5
- package/dist/utils/string.d.ts +1 -0
- package/dist/utils/string.js +23 -19
- package/package.json +10 -5
- package/dist/Rail-DcVowhML.js +0 -81
- package/dist/Table.module-DHI1mXN2.js +0 -17
- package/dist/components/Layout/Box/Box.js +0 -72
- package/dist/components/Layout/Box/index.d.ts +0 -2
- package/dist/components/Layout/Box/index.js +0 -5
- package/dist/components/Layout/Flex/Flex.js +0 -84
- package/dist/components/Layout/Scrollable/Rail.js +0 -9
- package/dist/components/Layout/Scrollable/Scrollable.js +0 -91
- package/dist/index-BHuChyf5.js +0 -238
- /package/dist/components/{Layout/Flex → Flex}/FlexShowcase.d.ts +0 -0
- /package/dist/components/{Layout/Flex → Flex}/FlexShowcase.js +0 -0
- /package/dist/components/{Layout → RSC}/Box/Box.types.d.ts +0 -0
- /package/dist/components/{Layout → RSC}/Box/Box.types.js +0 -0
- /package/dist/components/{Layout → RSC}/Flex/Flex.types.d.ts +0 -0
- /package/dist/components/{Layout → RSC}/Flex/Flex.types.js +0 -0
- /package/dist/components/{Layout → RSC}/Flex/FlexRestricter.d.ts +0 -0
- /package/dist/components/{Layout → RSC}/Flex/FlexRestricter.js +0 -0
- /package/dist/components/{Layout/Scrollable → Scrollable}/Rail.d.ts +0 -0
- /package/dist/components/{Layout/Scrollable → Scrollable}/Scrollable.d.ts +0 -0
- /package/dist/components/{Layout/Scrollable → Scrollable}/ScrollableShowcase.d.ts +0 -0
- /package/dist/components/{Layout/Scrollable → Scrollable}/VirtualScrollable.d.ts +0 -0
- /package/dist/components/{Layout/Scrollable → Scrollable}/index.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { u as
|
|
6
|
-
import { P as
|
|
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
|
|
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
|
|
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
|
|
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
|
|
59
|
-
import { getColor as
|
|
60
|
-
var
|
|
61
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
required:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
} =
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
}, [
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
126
|
-
var
|
|
127
|
-
(
|
|
128
|
-
const {
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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 =
|
|
142
|
-
var
|
|
143
|
-
({
|
|
144
|
-
__scopeCheckbox: e,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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 (
|
|
160
|
-
const
|
|
161
|
-
|
|
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
|
-
}, [
|
|
164
|
-
const
|
|
165
|
-
return /* @__PURE__ */
|
|
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:
|
|
171
|
-
|
|
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:
|
|
262
|
+
ref: x,
|
|
174
263
|
style: {
|
|
175
|
-
...
|
|
176
|
-
...
|
|
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
|
-
|
|
187
|
-
function
|
|
188
|
-
return
|
|
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
|
|
191
|
-
return
|
|
286
|
+
function O(o) {
|
|
287
|
+
return k(o) ? "indeterminate" : o ? "checked" : "unchecked";
|
|
192
288
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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:
|
|
202
|
-
tickIcon:
|
|
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
|
|
301
|
+
function pe(o) {
|
|
207
302
|
const {
|
|
208
|
-
id:
|
|
209
|
-
size:
|
|
210
|
-
rootClassName:
|
|
211
|
-
indicatorClassName:
|
|
212
|
-
colorToken:
|
|
213
|
-
color:
|
|
214
|
-
opacity:
|
|
215
|
-
luminance:
|
|
216
|
-
iconIndicator:
|
|
217
|
-
...
|
|
218
|
-
} =
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
),
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
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__ */
|
|
229
|
-
|
|
323
|
+
return /* @__PURE__ */ w(
|
|
324
|
+
U,
|
|
230
325
|
{
|
|
231
|
-
...
|
|
232
|
-
id:
|
|
233
|
-
style: { color:
|
|
234
|
-
className:
|
|
326
|
+
...h,
|
|
327
|
+
id: n,
|
|
328
|
+
style: { color: p },
|
|
329
|
+
className: i,
|
|
235
330
|
children: [
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
/* @__PURE__ */
|
|
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
|
|
337
|
+
const ko = G.memo(pe);
|
|
243
338
|
export {
|
|
244
|
-
|
|
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 "../
|
|
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 "../
|
|
5
|
-
import { Scrollable as c } from "../
|
|
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-
|
|
5
|
-
import { c as Ae, u as Ne } from "../../index-
|
|
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-
|
|
7
|
-
import { P as ge } from "../../index-
|
|
8
|
-
import
|
|
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 = "
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
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(
|
|
979
|
+
children: /* @__PURE__ */ De(Ao, { gap: "small", centered: !0, spaceBetween: !0, children: [
|
|
980
980
|
o || m,
|
|
981
|
-
/* @__PURE__ */ s(
|
|
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 "../
|
|
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 "
|
|
3
|
-
import { FlexRestricter as f } from "
|
|
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 = "
|
|
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:
|
|
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 = "
|
|
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
|
-
|
|
9
|
-
|
|
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 "../
|
|
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";
|