@cfx-dev/ui-components 3.0.2 → 3.0.4
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/Rail-DcVowhML.js +81 -0
- package/dist/assets/css/Accordion.css +1 -1
- package/dist/assets/css/Avatar.css +1 -1
- package/dist/assets/css/Badge.css +1 -1
- package/dist/assets/css/Box.css +1 -1
- package/dist/assets/css/Button.css +1 -1
- package/dist/assets/css/ButtonBar.css +1 -1
- package/dist/assets/css/Center.css +1 -1
- package/dist/assets/css/Checkbox.css +1 -1
- package/dist/assets/css/ClipboardButton.css +1 -1
- package/dist/assets/css/ControlBox.css +1 -1
- package/dist/assets/css/CountryFlag.css +1 -1
- package/dist/assets/css/Decorate.css +1 -1
- package/dist/assets/css/Dot.css +1 -1
- package/dist/assets/css/Flex.css +1 -1
- package/dist/assets/css/FlexRestricter.css +1 -1
- package/dist/assets/css/FlexShowcase.css +1 -1
- package/dist/assets/css/Flyout.css +1 -1
- package/dist/assets/css/Icon.css +1 -1
- package/dist/assets/css/IconBig.css +1 -1
- package/dist/assets/css/IconButton.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/Interactive.css +1 -1
- package/dist/assets/css/Island.css +1 -1
- package/dist/assets/css/ItemPreview.css +1 -1
- package/dist/assets/css/Link.css +1 -1
- package/dist/assets/css/Loaf.css +1 -1
- package/dist/assets/css/Modal.css +1 -1
- package/dist/assets/css/NavList.css +1 -1
- package/dist/assets/css/Overlay.css +1 -1
- package/dist/assets/css/Pad.css +1 -1
- package/dist/assets/css/Page.css +1 -1
- package/dist/assets/css/Popover.css +1 -1
- package/dist/assets/css/PopoverShowcase.css +1 -1
- package/dist/assets/css/PremiumBadge.css +1 -1
- package/dist/assets/css/Prose.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/Shroud.css +1 -1
- package/dist/assets/css/Skeleton.css +1 -1
- package/dist/assets/css/Spacer.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/TextShowcase.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/cfxIcons-BNd1WgpX.js +96 -0
- package/dist/components/Accordion/Accordion.js +69 -69
- package/dist/components/Avatar/Avatar.js +18 -18
- package/dist/components/Badge/Badge.js +23 -23
- package/dist/components/Button/Button.js +76 -76
- package/dist/components/Button/ButtonBar.js +6 -6
- package/dist/components/Checkbox/Checkbox.js +90 -85
- package/dist/components/ClipboardButton/ClipboardButton.js +17 -17
- package/dist/components/ControlBox/ControlBox.js +11 -11
- package/dist/components/CountryFlag/CountryFlag.js +9 -9
- package/dist/components/Decorate/Decorate.js +12 -12
- package/dist/components/Dot/Dot.js +17 -17
- package/dist/components/Flyout/Flyout.js +44 -44
- package/dist/components/Icon/Icon.js +14 -14
- package/dist/components/IconBig/IconBig.js +23 -18
- package/dist/components/IconButton/IconButton.js +25 -25
- package/dist/components/Icons/IconsShowcase.js +1 -1
- package/dist/components/Icons/cfx-icons/Cart.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Cart.js +42 -0
- package/dist/components/Icons/cfx-icons/UpvotesBurst.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/UpvotesBurst.js +26 -0
- package/dist/components/Icons/cfx-icons/UpvotesRecurring.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/UpvotesRecurring.js +27 -0
- package/dist/components/Icons/cfx-icons/User.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/User.js +31 -0
- package/dist/components/Icons/cfx-icons/Verified.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Verified.js +23 -0
- package/dist/components/Icons/cfxIcons.d.ts +5 -0
- package/dist/components/Icons/cfxIcons.js +52 -42
- package/dist/components/Icons/index.js +1 -1
- package/dist/components/Indicator/Indicator.js +11 -11
- package/dist/components/InfoPanel/InfoPanel.js +37 -37
- package/dist/components/Input/Input.js +59 -59
- package/dist/components/Input/RichInput.js +39 -39
- package/dist/components/InputDropzone/InputDropzone.js +87 -87
- package/dist/components/InputDropzone/ItemPreview.js +17 -17
- package/dist/components/Interactive/Interactive.js +6 -6
- package/dist/components/Island/Island.js +20 -20
- package/dist/components/Layout/Box/Box.js +81 -81
- package/dist/components/Layout/Center/Center.js +14 -14
- package/dist/components/Layout/Flex/Flex.js +67 -67
- package/dist/components/Layout/Flex/FlexRestricter.js +14 -14
- package/dist/components/Layout/Flex/FlexShowcase.js +4 -4
- package/dist/components/Layout/Pad/Pad.js +34 -34
- package/dist/components/Layout/Page/Page.js +11 -11
- package/dist/components/Layout/Scrollable/Rail.js +1 -1
- package/dist/components/Layout/Scrollable/Scrollable.js +1 -1
- package/dist/components/Layout/Scrollable/VirtualScrollable.js +1 -1
- package/dist/components/Layout/Scrollable/index.js +1 -1
- package/dist/components/Link/ButtonLink.js +7 -6
- package/dist/components/Link/Link.js +36 -27
- package/dist/components/Loaf/Loaf.js +20 -20
- package/dist/components/Modal/Modal.js +51 -51
- package/dist/components/NavList/NavList.js +23 -23
- package/dist/components/Overlay/Overlay.js +17 -17
- package/dist/components/Popover/Popover.js +29 -29
- package/dist/components/Popover/PopoverShowcase.js +9 -9
- package/dist/components/PremiumBadge/PremiumBadge.js +8 -8
- package/dist/components/Prose/Prose.js +6 -6
- package/dist/components/Radio/Radio.js +32 -32
- package/dist/components/Select/Select.js +157 -157
- package/dist/components/Separator/Separator.js +31 -31
- package/dist/components/Shroud/Shroud.js +14 -14
- package/dist/components/Skeleton/Skeleton.js +10 -10
- package/dist/components/Spacer/Spacer.js +25 -25
- package/dist/components/Switch/Switch.js +43 -43
- package/dist/components/Table/Table.js +82 -82
- package/dist/components/Tabular/Tabular.js +60 -60
- package/dist/components/Text/Text.js +26 -26
- package/dist/components/Text/TextShowcase.js +19 -19
- package/dist/components/Textarea/Textarea.js +36 -36
- package/dist/components/Title/Title.js +57 -57
- package/dist/components/ToggleGroup/ToggleGroup.js +40 -40
- package/dist/main.js +2 -2
- package/dist/styles-scss/_ui.scss +22 -0
- package/dist/styles-scss/global.scss +5 -0
- package/dist/styles-scss/tokens.scss +5 -25
- package/package.json +2 -2
- package/dist/Rail-XT5PwAlx.js +0 -81
- package/dist/cfxIcons-BlbKR-zU.js +0 -86
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { useContextualStyle as
|
|
4
|
-
import { ui as
|
|
1
|
+
import { jsx as W } from "react/jsx-runtime";
|
|
2
|
+
import x from "react";
|
|
3
|
+
import { useContextualStyle as j } from "../../Style/Style.js";
|
|
4
|
+
import { ui as g } from "../../ui.js";
|
|
5
5
|
import { clsx as H } from "../../../utils/clsx.js";
|
|
6
|
-
const z = "
|
|
6
|
+
const z = "cfxui__Box__root__299ae", D = "cfxui__Box__grow__7ee8d", t = {
|
|
7
7
|
root: z,
|
|
8
|
-
"full-width": "
|
|
9
|
-
"fit-content-width": "
|
|
10
|
-
"full-height": "
|
|
11
|
-
"no-overflow": "
|
|
12
|
-
"no-shrink": "
|
|
8
|
+
"full-width": "cfxui__Box__full-width__2b253",
|
|
9
|
+
"fit-content-width": "cfxui__Box__fit-content-width__eff85",
|
|
10
|
+
"full-height": "cfxui__Box__full-height__1d61f",
|
|
11
|
+
"no-overflow": "cfxui__Box__no-overflow__68f14",
|
|
12
|
+
"no-shrink": "cfxui__Box__no-shrink__fbd72",
|
|
13
13
|
grow: D,
|
|
14
|
-
"no-grow": "
|
|
14
|
+
"no-grow": "cfxui__Box__no-grow__7c039"
|
|
15
15
|
};
|
|
16
|
-
function y(
|
|
17
|
-
return typeof
|
|
16
|
+
function y(e) {
|
|
17
|
+
return typeof e == "string" ? e : g.q(e);
|
|
18
18
|
}
|
|
19
|
-
const K =
|
|
19
|
+
const K = x.forwardRef(function(S, M) {
|
|
20
20
|
const {
|
|
21
|
-
noOverflow:
|
|
22
|
-
noShrink:
|
|
23
|
-
grow:
|
|
24
|
-
width:
|
|
25
|
-
height:
|
|
26
|
-
children:
|
|
27
|
-
className:
|
|
28
|
-
fullWidth:
|
|
29
|
-
fullHeight:
|
|
30
|
-
fitContentWidth:
|
|
31
|
-
style:
|
|
21
|
+
noOverflow: b = !1,
|
|
22
|
+
noShrink: k = !1,
|
|
23
|
+
grow: r = void 0,
|
|
24
|
+
width: m,
|
|
25
|
+
height: d,
|
|
26
|
+
children: v,
|
|
27
|
+
className: A,
|
|
28
|
+
fullWidth: C,
|
|
29
|
+
fullHeight: N,
|
|
30
|
+
fitContentWidth: R,
|
|
31
|
+
style: a,
|
|
32
32
|
// --- MPProps
|
|
33
|
-
m:
|
|
33
|
+
m: f,
|
|
34
34
|
mt: i,
|
|
35
|
-
mr:
|
|
36
|
-
mb:
|
|
37
|
-
ml:
|
|
38
|
-
p:
|
|
39
|
-
pt:
|
|
40
|
-
pr:
|
|
41
|
-
pb:
|
|
42
|
-
pl:
|
|
43
|
-
} = S,
|
|
44
|
-
[t["full-width"]]:
|
|
45
|
-
[t["full-height"]]:
|
|
46
|
-
[t["fit-content-width"]]:
|
|
47
|
-
[t["no-overflow"]]:
|
|
48
|
-
[t["no-shrink"]]:
|
|
49
|
-
[t["no-grow"]]:
|
|
50
|
-
[t.grow]:
|
|
51
|
-
}),
|
|
52
|
-
m:
|
|
35
|
+
mr: _,
|
|
36
|
+
mb: n,
|
|
37
|
+
ml: l,
|
|
38
|
+
p: s,
|
|
39
|
+
pt: c,
|
|
40
|
+
pr: u,
|
|
41
|
+
pb: h,
|
|
42
|
+
pl: w
|
|
43
|
+
} = S, p = j(), q = H(t.root, A, {
|
|
44
|
+
[t["full-width"]]: C,
|
|
45
|
+
[t["full-height"]]: N,
|
|
46
|
+
[t["fit-content-width"]]: R,
|
|
47
|
+
[t["no-overflow"]]: b,
|
|
48
|
+
[t["no-shrink"]]: k,
|
|
49
|
+
[t["no-grow"]]: r === !1,
|
|
50
|
+
[t.grow]: r === !0
|
|
51
|
+
}), O = x.useMemo(() => g.getAllMPAttrs({
|
|
52
|
+
m: f,
|
|
53
53
|
mt: i,
|
|
54
|
-
mr:
|
|
55
|
-
mb:
|
|
56
|
-
ml:
|
|
57
|
-
p:
|
|
58
|
-
pt:
|
|
59
|
-
pr:
|
|
60
|
-
pb:
|
|
61
|
-
pl:
|
|
54
|
+
mr: _,
|
|
55
|
+
mb: n,
|
|
56
|
+
ml: l,
|
|
57
|
+
p: s,
|
|
58
|
+
pt: c,
|
|
59
|
+
pr: u,
|
|
60
|
+
pb: h,
|
|
61
|
+
pl: w
|
|
62
62
|
}), [
|
|
63
|
-
|
|
63
|
+
f,
|
|
64
64
|
i,
|
|
65
|
+
_,
|
|
66
|
+
n,
|
|
65
67
|
l,
|
|
66
68
|
s,
|
|
67
|
-
|
|
69
|
+
c,
|
|
70
|
+
u,
|
|
68
71
|
h,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
u
|
|
73
|
-
]), x = c.useMemo(() => a.getAllMPStyles({
|
|
74
|
-
m: n,
|
|
72
|
+
w
|
|
73
|
+
]), B = x.useMemo(() => g.getAllMPStyles({
|
|
74
|
+
m: f,
|
|
75
75
|
mt: i,
|
|
76
|
-
mr:
|
|
77
|
-
mb:
|
|
78
|
-
ml:
|
|
79
|
-
p:
|
|
80
|
-
pt:
|
|
81
|
-
pr:
|
|
82
|
-
pb:
|
|
83
|
-
pl:
|
|
76
|
+
mr: _,
|
|
77
|
+
mb: n,
|
|
78
|
+
ml: l,
|
|
79
|
+
p: s,
|
|
80
|
+
pt: c,
|
|
81
|
+
pr: u,
|
|
82
|
+
pb: h,
|
|
83
|
+
pl: w
|
|
84
84
|
}), [
|
|
85
|
-
|
|
85
|
+
f,
|
|
86
86
|
i,
|
|
87
|
+
_,
|
|
88
|
+
n,
|
|
87
89
|
l,
|
|
88
90
|
s,
|
|
89
|
-
|
|
91
|
+
c,
|
|
92
|
+
u,
|
|
90
93
|
h,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
w,
|
|
94
|
-
u
|
|
95
|
-
]), O = c.useMemo(() => {
|
|
94
|
+
w
|
|
95
|
+
]), P = x.useMemo(() => {
|
|
96
96
|
const o = {
|
|
97
|
-
...
|
|
98
|
-
...
|
|
99
|
-
...
|
|
97
|
+
...B,
|
|
98
|
+
...p,
|
|
99
|
+
...a || {}
|
|
100
100
|
};
|
|
101
|
-
return
|
|
102
|
-
}, [
|
|
103
|
-
return /* @__PURE__ */
|
|
101
|
+
return m && (o.width = y(m)), d && (o.height = y(d)), !o.width && r === !0 && (o.width = "1px"), o;
|
|
102
|
+
}, [r, d, B, a, m, p]);
|
|
103
|
+
return /* @__PURE__ */ W("div", { ...O, ref: M, className: q, style: P, children: v });
|
|
104
104
|
});
|
|
105
105
|
export {
|
|
106
106
|
K as Box
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
const f = "
|
|
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
5
|
root: f,
|
|
6
6
|
vertical: m,
|
|
7
|
-
horizontal:
|
|
8
|
-
},
|
|
7
|
+
horizontal: h
|
|
8
|
+
}, d = l.forwardRef(function(t, r) {
|
|
9
9
|
const {
|
|
10
|
-
vertical:
|
|
11
|
-
horizontal:
|
|
10
|
+
vertical: e = !1,
|
|
11
|
+
horizontal: a = !1,
|
|
12
12
|
className: c,
|
|
13
|
-
children:
|
|
14
|
-
} =
|
|
15
|
-
[o.vertical]:
|
|
16
|
-
[o.horizontal]:
|
|
13
|
+
children: n
|
|
14
|
+
} = t, _ = s(o.root, c, {
|
|
15
|
+
[o.vertical]: e,
|
|
16
|
+
[o.horizontal]: a
|
|
17
17
|
});
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ i("div", { ref: r, className: _, children: n });
|
|
19
19
|
});
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
d as Center
|
|
22
22
|
};
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { Box as
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import m from "react";
|
|
3
|
+
import { Box as h } from "../Box/Box.js";
|
|
4
4
|
import { clsx as b } from "../../../utils/clsx.js";
|
|
5
|
-
import { FlexRestricter as
|
|
6
|
-
const
|
|
7
|
-
root:
|
|
8
|
-
"full-width": "
|
|
9
|
-
"full-height": "
|
|
10
|
-
centered:
|
|
11
|
-
"centered-axis": "
|
|
12
|
-
"centered-cross-axis": "
|
|
13
|
-
"baseline-axis": "
|
|
14
|
-
"baseline-cross-axis": "
|
|
15
|
-
"reverse-order": "
|
|
16
|
-
vertical:
|
|
5
|
+
import { FlexRestricter as w } from "./FlexRestricter.js";
|
|
6
|
+
const v = "cfxui__Flex__root__d860a", z = "cfxui__Flex__centered__e911c", R = "cfxui__Flex__vertical__552db", C = "cfxui__Flex__repell__6ea3f", N = "cfxui__Flex__wrap__9d0d6", B = "cfxui__Flex__stretch__5c1ce", E = "cfxui__Flex__horizontal__d64f7", e = {
|
|
7
|
+
root: v,
|
|
8
|
+
"full-width": "cfxui__Flex__full-width__b7146",
|
|
9
|
+
"full-height": "cfxui__Flex__full-height__d3475",
|
|
10
|
+
centered: z,
|
|
11
|
+
"centered-axis": "cfxui__Flex__centered-axis__8458f",
|
|
12
|
+
"centered-cross-axis": "cfxui__Flex__centered-cross-axis__f7db7",
|
|
13
|
+
"baseline-axis": "cfxui__Flex__baseline-axis__9ac0d",
|
|
14
|
+
"baseline-cross-axis": "cfxui__Flex__baseline-cross-axis__b4492",
|
|
15
|
+
"reverse-order": "cfxui__Flex__reverse-order__65a69",
|
|
16
|
+
vertical: R,
|
|
17
17
|
repell: C,
|
|
18
18
|
wrap: N,
|
|
19
|
-
"align-to-end": "
|
|
20
|
-
"align-to-end-axis": "
|
|
21
|
-
"space-between": "
|
|
19
|
+
"align-to-end": "cfxui__Flex__align-to-end__4b5ea",
|
|
20
|
+
"align-to-end-axis": "cfxui__Flex__align-to-end-axis__db8aa",
|
|
21
|
+
"space-between": "cfxui__Flex__space-between__98493",
|
|
22
22
|
stretch: B,
|
|
23
23
|
horizontal: E,
|
|
24
|
-
"gap-none": "
|
|
25
|
-
"gap-hairthin": "
|
|
26
|
-
"gap-thin": "
|
|
27
|
-
"gap-xxsmall": "
|
|
28
|
-
"gap-xsmall": "
|
|
29
|
-
"gap-small": "
|
|
30
|
-
"gap-normal": "
|
|
31
|
-
"gap-medium": "
|
|
32
|
-
"gap-large": "
|
|
33
|
-
"gap-xlarge": "
|
|
34
|
-
"gap-safezone": "
|
|
24
|
+
"gap-none": "cfxui__Flex__gap-none__deb35",
|
|
25
|
+
"gap-hairthin": "cfxui__Flex__gap-hairthin__5e46a",
|
|
26
|
+
"gap-thin": "cfxui__Flex__gap-thin__090a7",
|
|
27
|
+
"gap-xxsmall": "cfxui__Flex__gap-xxsmall__601de",
|
|
28
|
+
"gap-xsmall": "cfxui__Flex__gap-xsmall__17eb1",
|
|
29
|
+
"gap-small": "cfxui__Flex__gap-small__7c57e",
|
|
30
|
+
"gap-normal": "cfxui__Flex__gap-normal__56a4e",
|
|
31
|
+
"gap-medium": "cfxui__Flex__gap-medium__50167",
|
|
32
|
+
"gap-large": "cfxui__Flex__gap-large__91d92",
|
|
33
|
+
"gap-xlarge": "cfxui__Flex__gap-xlarge__ec431",
|
|
34
|
+
"gap-safezone": "cfxui__Flex__gap-safezone__4e3d1"
|
|
35
35
|
};
|
|
36
|
-
function T(
|
|
36
|
+
function T(s, a) {
|
|
37
37
|
const {
|
|
38
|
-
centered:
|
|
39
|
-
vertical:
|
|
40
|
-
reverseOrder:
|
|
41
|
-
stretch:
|
|
42
|
-
wrap:
|
|
43
|
-
spaceBetween:
|
|
44
|
-
alignToEnd:
|
|
45
|
-
alignToEndAxis:
|
|
46
|
-
gap:
|
|
47
|
-
children:
|
|
48
|
-
className:
|
|
49
|
-
...
|
|
50
|
-
} =
|
|
51
|
-
[e.centered]:
|
|
52
|
-
[e["centered-axis"]]:
|
|
53
|
-
[e["centered-cross-axis"]]:
|
|
54
|
-
[e["baseline-axis"]]:
|
|
55
|
-
[e["baseline-cross-axis"]]:
|
|
56
|
-
[e.vertical]:
|
|
57
|
-
[e.horizontal]: !
|
|
58
|
-
[e.stretch]:
|
|
59
|
-
[e.wrap]:
|
|
60
|
-
[e["align-to-end"]]:
|
|
61
|
-
[e["align-to-end-axis"]]:
|
|
62
|
-
[e["space-between"]]:
|
|
63
|
-
[e["reverse-order"]]:
|
|
38
|
+
centered: _ = !1,
|
|
39
|
+
vertical: i = !1,
|
|
40
|
+
reverseOrder: x = !1,
|
|
41
|
+
stretch: c = !1,
|
|
42
|
+
wrap: t = !1,
|
|
43
|
+
spaceBetween: n = !1,
|
|
44
|
+
alignToEnd: o = !1,
|
|
45
|
+
alignToEndAxis: f = !1,
|
|
46
|
+
gap: d = "normal",
|
|
47
|
+
children: p,
|
|
48
|
+
className: u,
|
|
49
|
+
...g
|
|
50
|
+
} = s, F = b(e.root, u, e[`gap-${d}`], {
|
|
51
|
+
[e.centered]: _ === !0,
|
|
52
|
+
[e["centered-axis"]]: _ === "axis",
|
|
53
|
+
[e["centered-cross-axis"]]: _ === "cross-axis",
|
|
54
|
+
[e["baseline-axis"]]: _ === "baseline-axis",
|
|
55
|
+
[e["baseline-cross-axis"]]: _ === "baseline-cross-axis",
|
|
56
|
+
[e.vertical]: i,
|
|
57
|
+
[e.horizontal]: !i,
|
|
58
|
+
[e.stretch]: c,
|
|
59
|
+
[e.wrap]: t,
|
|
60
|
+
[e["align-to-end"]]: o,
|
|
61
|
+
[e["align-to-end-axis"]]: f,
|
|
62
|
+
[e["space-between"]]: n,
|
|
63
|
+
[e["reverse-order"]]: x
|
|
64
64
|
});
|
|
65
|
-
return /* @__PURE__ */
|
|
66
|
-
|
|
65
|
+
return /* @__PURE__ */ l(
|
|
66
|
+
h,
|
|
67
67
|
{
|
|
68
|
-
ref:
|
|
69
|
-
className:
|
|
70
|
-
...
|
|
71
|
-
children:
|
|
68
|
+
ref: a,
|
|
69
|
+
className: F,
|
|
70
|
+
...g,
|
|
71
|
+
children: p
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
|
-
const j =
|
|
76
|
-
|
|
77
|
-
children:
|
|
75
|
+
const j = m.forwardRef(T), r = j;
|
|
76
|
+
r.Restricted = function({
|
|
77
|
+
children: a
|
|
78
78
|
}) {
|
|
79
|
-
return /* @__PURE__ */
|
|
79
|
+
return /* @__PURE__ */ l(r, { children: /* @__PURE__ */ l(w, { children: a }) });
|
|
80
80
|
};
|
|
81
81
|
export {
|
|
82
|
-
|
|
82
|
+
r as Flex
|
|
83
83
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
const
|
|
5
|
-
root:
|
|
6
|
-
vertical:
|
|
7
|
-
horizontal:
|
|
8
|
-
},
|
|
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) {
|
|
9
9
|
const {
|
|
10
|
-
vertical:
|
|
10
|
+
vertical: r = !1,
|
|
11
11
|
children: c
|
|
12
|
-
} =
|
|
13
|
-
[
|
|
14
|
-
[
|
|
12
|
+
} = o, i = _(t.root, {
|
|
13
|
+
[t.vertical]: r,
|
|
14
|
+
[t.horizontal]: !r
|
|
15
15
|
});
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ l("div", { ref: e, className: i, children: c });
|
|
17
17
|
});
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
v as FlexRestricter
|
|
20
20
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
2
|
import l from "react";
|
|
3
3
|
import { Flex as s } from "./Flex.js";
|
|
4
|
-
const
|
|
5
|
-
box:
|
|
4
|
+
const x = "cfxui__FlexShowcase__box__d5286", o = {
|
|
5
|
+
box: x
|
|
6
6
|
};
|
|
7
|
-
function
|
|
7
|
+
function t(a) {
|
|
8
8
|
return /* @__PURE__ */ e(s, { gap: "large", vertical: !0, children: /* @__PURE__ */ c(s, { ...a, children: [
|
|
9
9
|
/* @__PURE__ */ e("div", { className: o.box }),
|
|
10
10
|
/* @__PURE__ */ e("div", { className: o.box }),
|
|
@@ -13,7 +13,7 @@ function r(a) {
|
|
|
13
13
|
/* @__PURE__ */ e("div", { className: o.box })
|
|
14
14
|
] }) });
|
|
15
15
|
}
|
|
16
|
-
const d = l.memo(
|
|
16
|
+
const d = l.memo(t);
|
|
17
17
|
export {
|
|
18
18
|
d as default
|
|
19
19
|
};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { clsx as
|
|
3
|
-
const
|
|
4
|
-
root:
|
|
5
|
-
"offset-none": "
|
|
6
|
-
"offset-hairthin": "
|
|
7
|
-
"offset-thin": "
|
|
8
|
-
"offset-xxsmall": "
|
|
9
|
-
"offset-xsmall": "
|
|
10
|
-
"offset-small": "
|
|
11
|
-
"offset-normal": "
|
|
12
|
-
"offset-medium": "
|
|
13
|
-
"offset-large": "
|
|
14
|
-
"offset-xlarge": "
|
|
15
|
-
"offset-safezone": "
|
|
16
|
-
"only-top": "
|
|
17
|
-
"only-left": "
|
|
18
|
-
"only-right": "
|
|
19
|
-
"only-bottom": "
|
|
1
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as r } from "../../../utils/clsx.js";
|
|
3
|
+
const d = "cfxui__Pad__root__f230e", _ = {
|
|
4
|
+
root: d,
|
|
5
|
+
"offset-none": "cfxui__Pad__offset-none__41261",
|
|
6
|
+
"offset-hairthin": "cfxui__Pad__offset-hairthin__aa20b",
|
|
7
|
+
"offset-thin": "cfxui__Pad__offset-thin__cf68c",
|
|
8
|
+
"offset-xxsmall": "cfxui__Pad__offset-xxsmall__4ce1d",
|
|
9
|
+
"offset-xsmall": "cfxui__Pad__offset-xsmall__cae67",
|
|
10
|
+
"offset-small": "cfxui__Pad__offset-small__5604b",
|
|
11
|
+
"offset-normal": "cfxui__Pad__offset-normal__628e1",
|
|
12
|
+
"offset-medium": "cfxui__Pad__offset-medium__6b21c",
|
|
13
|
+
"offset-large": "cfxui__Pad__offset-large__7d722",
|
|
14
|
+
"offset-xlarge": "cfxui__Pad__offset-xlarge__ce0b6",
|
|
15
|
+
"offset-safezone": "cfxui__Pad__offset-safezone__2a0b0",
|
|
16
|
+
"only-top": "cfxui__Pad__only-top__9db9a",
|
|
17
|
+
"only-left": "cfxui__Pad__only-left__11e11",
|
|
18
|
+
"only-right": "cfxui__Pad__only-right__3fa8a",
|
|
19
|
+
"only-bottom": "cfxui__Pad__only-bottom__dc7c9"
|
|
20
20
|
};
|
|
21
|
-
function
|
|
21
|
+
function P(s) {
|
|
22
22
|
const {
|
|
23
|
-
top:
|
|
24
|
-
left:
|
|
25
|
-
right:
|
|
26
|
-
bottom:
|
|
27
|
-
size:
|
|
28
|
-
children:
|
|
29
|
-
className:
|
|
30
|
-
} =
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
23
|
+
top: o = !1,
|
|
24
|
+
left: t = !1,
|
|
25
|
+
right: e = !1,
|
|
26
|
+
bottom: a = !1,
|
|
27
|
+
size: l = "normal",
|
|
28
|
+
children: c,
|
|
29
|
+
className: i
|
|
30
|
+
} = s, f = !(o || t || e || a), n = r(_.root, i, _[`offset-${l}`], {
|
|
31
|
+
[_["only-top"]]: f || o,
|
|
32
|
+
[_["only-left"]]: f || t,
|
|
33
|
+
[_["only-right"]]: f || e,
|
|
34
|
+
[_["only-bottom"]]: f || a
|
|
35
35
|
});
|
|
36
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ x("div", { className: n, children: c });
|
|
37
37
|
}
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
P as Pad
|
|
40
40
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { clsx as
|
|
3
|
-
const d = "
|
|
1
|
+
import { jsxs as _, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as l } from "../../../utils/clsx.js";
|
|
3
|
+
const d = "cfxui__Page__root__3b40d", f = "cfxui__Page__loader__df597", n = "cfxui__Page__wtf__c1620", o = {
|
|
4
4
|
root: d,
|
|
5
|
-
loader:
|
|
6
|
-
wtf:
|
|
5
|
+
loader: f,
|
|
6
|
+
wtf: n
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function x(s) {
|
|
9
9
|
const {
|
|
10
10
|
children: r,
|
|
11
11
|
className: t,
|
|
12
|
-
showLoader:
|
|
13
|
-
} = s,
|
|
14
|
-
return /* @__PURE__ */
|
|
12
|
+
showLoader: a = !1
|
|
13
|
+
} = s, e = l(o.root, t);
|
|
14
|
+
return /* @__PURE__ */ _("div", { className: e, children: [
|
|
15
15
|
r,
|
|
16
|
-
|
|
16
|
+
a && /* @__PURE__ */ c("div", { className: o.loader })
|
|
17
17
|
] });
|
|
18
18
|
}
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
x as Page
|
|
21
21
|
};
|
|
@@ -3,7 +3,7 @@ import r from "react";
|
|
|
3
3
|
import { useContextualStyle as W } from "../../Style/Style.js";
|
|
4
4
|
import { clsx as b } from "../../../utils/clsx.js";
|
|
5
5
|
import { mergeRefs as k } from "../../../utils/mergeRefs.js";
|
|
6
|
-
import { s as o, R as w } from "../../../Rail-
|
|
6
|
+
import { s as o, R as w } from "../../../Rail-DcVowhML.js";
|
|
7
7
|
const N = {
|
|
8
8
|
size: 0,
|
|
9
9
|
scrollPos: 0,
|
|
@@ -3,7 +3,7 @@ import N, { createElement as k, PureComponent as re } from "react";
|
|
|
3
3
|
import { _ as ie, a as ne } from "../../../inheritsLoose-CyjgKRgL.js";
|
|
4
4
|
import { clsx as oe } from "../../../utils/clsx.js";
|
|
5
5
|
import { Scrollable as le } from "./Scrollable.js";
|
|
6
|
-
import { s as se } from "../../../Rail-
|
|
6
|
+
import { s as se } from "../../../Rail-DcVowhML.js";
|
|
7
7
|
function $(r) {
|
|
8
8
|
if (r === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9
9
|
return r;
|
|
@@ -4,9 +4,9 @@ import { getLinkClassName as i } from "./Link.js";
|
|
|
4
4
|
function l(t) {
|
|
5
5
|
const {
|
|
6
6
|
className: c,
|
|
7
|
-
children:
|
|
8
|
-
type:
|
|
9
|
-
disabled:
|
|
7
|
+
children: e,
|
|
8
|
+
type: o = "button",
|
|
9
|
+
disabled: a = !1,
|
|
10
10
|
...s
|
|
11
11
|
} = t, n = i(t);
|
|
12
12
|
return /* @__PURE__ */ r(
|
|
@@ -14,9 +14,10 @@ function l(t) {
|
|
|
14
14
|
{
|
|
15
15
|
...s,
|
|
16
16
|
className: n,
|
|
17
|
-
type:
|
|
18
|
-
"aria-disabled":
|
|
19
|
-
|
|
17
|
+
type: o,
|
|
18
|
+
"aria-disabled": a,
|
|
19
|
+
tabIndex: a ? -1 : 0,
|
|
20
|
+
children: e
|
|
20
21
|
}
|
|
21
22
|
);
|
|
22
23
|
}
|