@cfx-dev/ui-components 4.2.24 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Combination-CSgOhzm-.js +2198 -0
- package/dist/Combination-N-vN9BB-.js +823 -0
- package/dist/Table.module-DHI1mXN2.js +17 -0
- package/dist/assets/all_css.css +1 -0
- package/dist/assets/css/Checkbox.css +1 -1
- package/dist/assets/css/DataTable.css +1 -0
- package/dist/assets/css/Table.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/cfxIcons-B9nzO6TW.js +98 -0
- package/dist/components/Accordion/Accordion.js +25 -26
- package/dist/components/Accordion/AccordionShowcase.js +1 -1
- package/dist/components/Avatar/Avatar.d.ts +2 -1
- package/dist/components/Avatar/Avatar.js +21 -20
- package/dist/components/Avatar/AvatarShowcase.js +1 -1
- package/dist/components/Badge/Badge.d.ts +2 -1
- package/dist/components/Badge/Badge.js +29 -29
- package/dist/components/Badge/BadgeShowcase.js +1 -1
- package/dist/components/BurgerMenu/BurgerMenu.js +2 -2
- package/dist/components/BurgerMenu/BurgerMenuButton.js +1 -1
- package/dist/components/BurgerMenu/BurgerMenuShowcase.js +1 -1
- package/dist/components/Button/Button.d.ts +5 -2
- package/dist/components/Button/Button.js +83 -81
- package/dist/components/Button/ButtonShowcase.js +2 -2
- package/dist/components/Button/LinkButton.d.ts +1 -1
- package/dist/components/Button/LinkButton.js +18 -17
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.js +7 -7
- package/dist/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.js +154 -242
- package/dist/components/ClipboardButton/ClipboardButton.js +7 -7
- package/dist/components/ControlBox/ControlBox.d.ts +3 -2
- package/dist/components/ControlBox/ControlBox.js +13 -10
- package/dist/components/CountryFlag/CountryFlag.d.ts +3 -2
- package/dist/components/CountryFlag/CountryFlag.js +14 -11
- package/dist/components/DataTable/DataTable.d.ts +40 -0
- package/dist/components/DataTable/DataTable.js +163 -0
- package/dist/components/DataTable/DataTableShowcase.d.ts +5 -0
- package/dist/components/DataTable/DataTableShowcase.js +60 -0
- package/dist/components/DataTable/index.d.ts +2 -0
- package/dist/components/DataTable/index.js +6 -0
- package/dist/components/Decorate/Decorate.d.ts +3 -2
- package/dist/components/Decorate/Decorate.js +19 -15
- package/dist/components/Dot/Dot.d.ts +2 -1
- package/dist/components/Dot/Dot.js +15 -13
- package/dist/components/DropdownSelect/DropdownSelect.d.ts +2 -1
- package/dist/components/DropdownSelect/DropdownSelect.js +665 -1836
- package/dist/components/DropdownSelect/DropdownSelectShowcase.js +1 -1
- package/dist/components/Flyout/Flyout.d.ts +2 -1
- package/dist/components/Flyout/Flyout.js +22 -20
- package/dist/components/Icon/Icon.d.ts +2 -1
- package/dist/components/Icon/Icon.js +19 -17
- package/dist/components/IconBig/IconBig.d.ts +2 -1
- package/dist/components/IconBig/IconBig.js +16 -14
- package/dist/components/Icons/IconsShowcase.js +1 -1
- package/dist/components/Icons/cfx-icons/Radio.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Radio.js +36 -0
- package/dist/components/Icons/cfx-icons/Square.js +15 -9
- package/dist/components/Icons/cfxIcons.d.ts +1 -0
- package/dist/components/Icons/cfxIcons.js +62 -60
- package/dist/components/Icons/index.js +1 -1
- package/dist/components/Indicator/Indicator.js +9 -10
- package/dist/components/InfoPanel/InfoPanelShowcase.js +1 -1
- package/dist/components/Input/Input.d.ts +4 -1
- package/dist/components/Input/Input.js +101 -88
- package/dist/components/Input/InputShowcase.js +1 -1
- package/dist/components/Input/RichInput.d.ts +2 -1
- package/dist/components/Input/RichInput.js +37 -34
- package/dist/components/InputDropzone/InputDropzone.d.ts +1 -1
- package/dist/components/InputDropzone/InputDropzone.js +1723 -625
- package/dist/components/Interactive/Interactive.d.ts +2 -1
- package/dist/components/Interactive/Interactive.js +14 -12
- package/dist/components/Island/Island.d.ts +2 -1
- package/dist/components/Island/Island.js +24 -24
- package/dist/components/Layout/Box/Box.d.ts +8 -2
- package/dist/components/Layout/Box/Box.js +53 -51
- package/dist/components/Layout/Box/Box.types.d.ts +22 -0
- package/dist/components/Layout/Box/Box.types.js +4 -0
- package/dist/components/Layout/Box/index.d.ts +1 -1
- package/dist/components/Layout/Box/index.js +3 -3
- package/dist/components/Layout/Center/Center.d.ts +2 -1
- package/dist/components/Layout/Center/Center.js +19 -18
- package/dist/components/Layout/Flex/Flex.d.ts +6 -10
- package/dist/components/Layout/Flex/Flex.js +53 -64
- package/dist/components/Layout/Flex/FlexRestricter.d.ts +2 -1
- package/dist/components/Layout/Flex/FlexRestricter.js +13 -12
- package/dist/components/Layout/Flex/FlexShowcase.js +1 -1
- package/dist/components/Layout/Flex/index.d.ts +2 -2
- package/dist/components/Layout/Flex/index.js +8 -8
- package/dist/components/Layout/Page/Page.js +11 -12
- package/dist/components/Layout/Scrollable/Rail.d.ts +1 -1
- package/dist/components/Layout/Scrollable/Scrollable.d.ts +2 -1
- package/dist/components/Layout/Scrollable/Scrollable.js +40 -38
- package/dist/components/Layout/Scrollable/ScrollableShowcase.js +1 -1
- package/dist/components/Layout/Scrollable/VirtualScrollable.js +98 -98
- package/dist/components/Link/LinkShowcase.js +1 -1
- package/dist/components/Loaf/Loaf.d.ts +2 -1
- package/dist/components/Loaf/Loaf.js +17 -16
- package/dist/components/Logos/LogosShowcase.js +1 -1
- package/dist/components/Modal/Modal.js +16 -17
- package/dist/components/Modal/ModalShowcase.js +14 -11
- package/dist/components/NavList/NavList.d.ts +2 -1
- package/dist/components/NavList/NavList.js +19 -18
- package/dist/components/OnScreenSensor.js +1 -1
- package/dist/components/Overlay/Overlay.d.ts +4 -2
- package/dist/components/Overlay/Overlay.js +31 -23
- package/dist/components/Popover/Popover.d.ts +3 -2
- package/dist/components/Popover/Popover.js +31 -30
- package/dist/components/Popover/PopoverShowcase.js +4 -4
- package/dist/components/PremiumBadge/PremiumBadge.d.ts +2 -1
- package/dist/components/PremiumBadge/PremiumBadge.js +12 -11
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +666 -1617
- package/dist/components/Select/SelectShowcase.js +1 -1
- package/dist/components/Shroud/Shroud.d.ts +2 -1
- package/dist/components/Shroud/Shroud.js +16 -14
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.js +26 -27
- package/dist/components/Skeleton/SkeletonShowcase.js +4 -4
- package/dist/components/Slider/Slider.d.ts +2 -1
- package/dist/components/Slider/Slider.js +326 -377
- package/dist/components/Slider/SliderShowcase.js +1 -1
- package/dist/components/Switch/Switch.js +109 -155
- package/dist/components/Table/TableBody.d.ts +8 -0
- package/dist/components/Table/TableBody.js +14 -0
- package/dist/components/Table/TableCell.d.ts +11 -0
- package/dist/components/Table/TableCell.js +54 -0
- package/dist/components/Table/TableCellCheckbox.d.ts +11 -0
- package/dist/components/Table/TableCellCheckbox.js +20 -0
- package/dist/components/Table/TableHeader.d.ts +9 -0
- package/dist/components/Table/TableHeader.js +24 -0
- package/dist/components/Table/TableIconButton.d.ts +6 -0
- package/dist/components/Table/TableIconButton.js +16 -0
- package/dist/components/Table/TableRoot.d.ts +8 -0
- package/dist/components/Table/TableRoot.js +23 -0
- package/dist/components/Table/TableRow.d.ts +13 -0
- package/dist/components/Table/TableRow.js +46 -0
- package/dist/components/Table/TableShowcase.js +56 -57
- package/dist/components/Table/index.d.ts +21 -2
- package/dist/components/Table/index.js +18 -5
- package/dist/components/Tabular/TabularShowcase.js +1 -1
- package/dist/components/Text/Text.d.ts +6 -3
- package/dist/components/Text/Text.js +67 -63
- package/dist/components/Text/TextShowcase.js +40 -33
- package/dist/components/Title/Title.d.ts +3 -1
- package/dist/components/Title/TitleShowcase.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroupShowcase.js +1 -1
- package/dist/index-BHuChyf5.js +238 -0
- package/dist/index-Cl_RnsqN.js +386 -0
- package/dist/index-DZEAOJqB.js +53 -0
- package/dist/index-HDl8nGsm.js +70 -0
- package/dist/main.d.ts +6 -4
- package/dist/main.js +73 -70
- package/dist/{medium-BA3EQDZW.js → medium-Bq5NvyU7.js} +1 -1
- package/dist/styles-scss/global.scss +1 -0
- package/dist/tslib.es6-CtHwNPxX.js +72 -0
- package/dist/utils/hooks/useClipboardComponent.d.ts +1 -1
- package/dist/utils/hooks/useOutlet.js +1 -1
- package/dist/utils/hooks/usePopoverController.d.ts +1 -1
- package/dist/utils/links.js +1 -1
- package/dist/utils/mergeRefs.d.ts +1 -1
- package/dist/utils/mergeRefs.js +1 -1
- package/dist/utils/ui/ui.d.ts +1 -0
- package/dist/utils/ui/ui.js +45 -36
- package/dist/utils/ui/ui.types.d.ts +4 -0
- package/package.json +6 -5
- package/dist/Combination-Cbiw1XRb.js +0 -792
- package/dist/cfxIcons-BNd1WgpX.js +0 -96
- package/dist/components/Table/Table.d.ts +0 -42
- package/dist/components/Table/Table.js +0 -170
- package/dist/index-2hJuj4UN.js +0 -19069
- package/dist/index-AweK2ufS.js +0 -171
- package/dist/index-BlbvKsmN.js +0 -82
- package/dist/index-ByaXH_ih.js +0 -10
- package/dist/index-Bz27DCHt.js +0 -1342
- package/dist/index-Cf5Yu9oD.js +0 -67
- 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
|
|
8
|
+
export declare function Interactive(props: InteractiveProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
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
|
-
}
|
|
5
|
+
};
|
|
6
|
+
function u(o) {
|
|
7
7
|
const {
|
|
8
|
-
showPointer:
|
|
9
|
-
className:
|
|
10
|
-
as:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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__ */
|
|
16
|
-
}
|
|
17
|
+
return /* @__PURE__ */ i(s, { ref: e, className: a, ...c, children: n });
|
|
18
|
+
}
|
|
17
19
|
export {
|
|
18
|
-
|
|
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
|
|
27
|
+
export declare function Island(props: IslandProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
|
14
|
-
|
|
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:
|
|
17
|
-
widthQ:
|
|
18
|
-
straightCorner:
|
|
15
|
+
grow: f = !1,
|
|
16
|
+
widthQ: r = 0,
|
|
17
|
+
straightCorner: _ = 0,
|
|
19
18
|
children: u,
|
|
20
|
-
className:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
[t
|
|
24
|
-
[t["no-round-border-top-
|
|
25
|
-
[t["no-round-border-
|
|
26
|
-
[t["no-round-border-bottom-
|
|
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
|
-
}),
|
|
29
|
-
return
|
|
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
|
-
|
|
33
|
-
|
|
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
|
|
19
|
-
|
|
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
|
|
2
|
-
import
|
|
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
|
|
7
|
-
root:
|
|
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:
|
|
12
|
+
grow: k,
|
|
14
13
|
"no-grow": "cfxui__Box__no-grow__7c039"
|
|
15
|
-
},
|
|
14
|
+
}, h = (t) => t;
|
|
15
|
+
function N(t) {
|
|
16
16
|
const {
|
|
17
17
|
noOverflow: a = !1,
|
|
18
|
-
noShrink:
|
|
19
|
-
grow:
|
|
20
|
-
width:
|
|
21
|
-
height:
|
|
18
|
+
noShrink: c = !1,
|
|
19
|
+
grow: s = void 0,
|
|
20
|
+
width: l,
|
|
21
|
+
height: n,
|
|
22
22
|
children: g,
|
|
23
|
-
className:
|
|
24
|
-
fullWidth:
|
|
25
|
-
fullHeight:
|
|
26
|
-
fitContentWidth:
|
|
27
|
-
flex:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
o.
|
|
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
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
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
|
-
),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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:
|
|
61
|
-
className:
|
|
62
|
-
style:
|
|
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
|
-
|
|
69
|
-
|
|
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,
|
|
1
|
+
export { default as Box, stringPropFormater } from './Box';
|
|
2
2
|
export type { BoxProps } from './Box';
|
|
@@ -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
|
|
10
|
+
export declare function Center(props: CenterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import l from "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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:
|
|
11
|
-
horizontal:
|
|
12
|
-
className:
|
|
13
|
-
children:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
[o.
|
|
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__ */
|
|
19
|
-
}
|
|
19
|
+
return /* @__PURE__ */ _("div", { ref: n, className: i, children: c });
|
|
20
|
+
}
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
+
x as Center
|
|
22
23
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { BoxProps } from '../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
|
|
24
|
-
|
|
25
|
-
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { clsx as
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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:
|
|
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:
|
|
24
|
-
horizontal:
|
|
18
|
+
stretch: j,
|
|
19
|
+
horizontal: z
|
|
25
20
|
};
|
|
26
|
-
function
|
|
21
|
+
function N(t) {
|
|
27
22
|
return t == null ? "" : typeof t == "boolean" ? t ? "wrap" : "nowrap" : t.toString();
|
|
28
23
|
}
|
|
29
|
-
function
|
|
24
|
+
function B(t) {
|
|
30
25
|
const {
|
|
31
26
|
centered: i = !1,
|
|
32
|
-
vertical:
|
|
33
|
-
reverseOrder:
|
|
34
|
-
stretch:
|
|
35
|
-
spaceBetween:
|
|
36
|
-
alignToEnd:
|
|
37
|
-
alignToEndAxis:
|
|
38
|
-
children:
|
|
39
|
-
className:
|
|
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:
|
|
43
|
-
justifyContent:
|
|
44
|
-
wrap:
|
|
45
|
-
...
|
|
46
|
-
} = t,
|
|
36
|
+
direction: a,
|
|
37
|
+
alignItems: r,
|
|
38
|
+
justifyContent: o,
|
|
39
|
+
wrap: _,
|
|
40
|
+
...b
|
|
41
|
+
} = t, v = y(
|
|
47
42
|
e.root,
|
|
48
|
-
|
|
43
|
+
m,
|
|
49
44
|
s.getResponsiveClassnames("gap", n),
|
|
50
|
-
s.getResponsiveClassnames("flex-direction",
|
|
51
|
-
s.getResponsiveClassnames("align-items",
|
|
52
|
-
s.getResponsiveClassnames("justify-content",
|
|
53
|
-
s.getResponsiveClassnames("flex-wrap",
|
|
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]:
|
|
61
|
-
[e.horizontal]: !
|
|
62
|
-
[e.stretch]:
|
|
63
|
-
[e["align-to-end"]]:
|
|
64
|
-
[e["align-to-end-axis"]]:
|
|
65
|
-
[e["space-between"]]:
|
|
66
|
-
[e["reverse-order"]]:
|
|
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
|
-
),
|
|
63
|
+
), F = l.useMemo(() => ({
|
|
69
64
|
...s.getOffsetStyles("gap", n),
|
|
70
|
-
...s.getResponsiveStyles("flex-direction",
|
|
71
|
-
...s.getResponsiveStyles("align-items",
|
|
72
|
-
...s.getResponsiveStyles("justify-content",
|
|
73
|
-
...s.getResponsiveStyles("flex-wrap",
|
|
74
|
-
}), [n,
|
|
75
|
-
return /* @__PURE__ */
|
|
76
|
-
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
children: b
|
|
73
|
+
className: v,
|
|
74
|
+
style: F,
|
|
75
|
+
...b,
|
|
76
|
+
children: g
|
|
83
77
|
}
|
|
84
78
|
);
|
|
85
79
|
}
|
|
86
|
-
const 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
|
-
|
|
94
|
-
|
|
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
|
|
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 "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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:
|
|
12
|
-
|
|
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:
|
|
17
|
-
}
|
|
17
|
+
return /* @__PURE__ */ l("div", { ref: c, className: i, children: e });
|
|
18
|
+
}
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
m as FlexRestricter
|
|
20
21
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Flex } from './Flex';
|
|
2
|
-
export type {
|
|
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 {
|
|
2
|
-
import { FlexAlignItemsEnum as x, FlexCentredEnum as
|
|
3
|
-
import { FlexRestricter as
|
|
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
|
-
|
|
5
|
+
r as Flex,
|
|
6
6
|
x as FlexAlignItemsEnum,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
l as FlexCentredEnum,
|
|
8
|
+
m as FlexDirectionEnum,
|
|
9
9
|
o as FlexJustifyContentEnum,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
f as FlexRestricter,
|
|
11
|
+
u as FlexWrapEnum
|
|
12
12
|
};
|