@cfx-dev/ui-components 4.2.24 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +20 -2
- package/dist/components/Table/index.js +17 -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 +66 -65
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import o from "react";
|
|
3
|
-
import
|
|
3
|
+
import a from "../Layout/Flex/Flex.js";
|
|
4
4
|
import { Text as i } from "../Text/Text.js";
|
|
5
5
|
import "../../utils/ui/ui.js";
|
|
6
6
|
import { Select as n } from "./Select.js";
|
|
@@ -2,5 +2,6 @@ import { default as React } from 'react';
|
|
|
2
2
|
|
|
3
3
|
export interface ShroudProps {
|
|
4
4
|
forRef: React.RefObject<HTMLElement>;
|
|
5
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
5
6
|
}
|
|
6
|
-
export declare
|
|
7
|
+
export declare function Shroud(props: ShroudProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as _ } from "react/jsx-runtime";
|
|
2
2
|
import r from "react";
|
|
3
|
-
import { TITLE_OUTLET_ID as
|
|
3
|
+
import { TITLE_OUTLET_ID as h } from "../Title/Title.js";
|
|
4
4
|
import "../../utils/hooks/useGlobalKeyboardEvent.js";
|
|
5
5
|
import "../../utils/hooks/useKeyboardClose.js";
|
|
6
6
|
import { useWindowResize as p } from "../../utils/hooks/useWindowResize.js";
|
|
@@ -9,13 +9,15 @@ import { ui as x } from "../../utils/ui/ui.js";
|
|
|
9
9
|
const g = "cfxui__Shroud__root__99944", v = "cfxui__Shroud__tile__db55f", e = {
|
|
10
10
|
root: g,
|
|
11
11
|
tile: v
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
|
+
function R(c) {
|
|
13
14
|
const {
|
|
14
|
-
forRef:
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
forRef: i,
|
|
16
|
+
ref: n
|
|
17
|
+
} = c, [u, f] = r.useState({}), d = b(h, "before"), s = r.useCallback(() => {
|
|
18
|
+
if (!i.current)
|
|
17
19
|
return;
|
|
18
|
-
const o =
|
|
20
|
+
const o = i.current.getBoundingClientRect(), m = {
|
|
19
21
|
x: o.x,
|
|
20
22
|
y: o.y,
|
|
21
23
|
w: o.width,
|
|
@@ -23,22 +25,22 @@ const g = "cfxui__Shroud__root__99944", v = "cfxui__Shroud__tile__db55f", e = {
|
|
|
23
25
|
sw: globalThis.screen.availWidth,
|
|
24
26
|
sh: globalThis.screen.availHeight
|
|
25
27
|
};
|
|
26
|
-
|
|
28
|
+
f(
|
|
27
29
|
Object.fromEntries(
|
|
28
|
-
Object.entries(m).flatMap(([
|
|
29
|
-
[`--${
|
|
30
|
-
[`--${
|
|
30
|
+
Object.entries(m).flatMap(([l, a]) => [
|
|
31
|
+
[`--${l}`, x.px(a)],
|
|
32
|
+
[`--${l}-raw`, a]
|
|
31
33
|
])
|
|
32
34
|
)
|
|
33
35
|
);
|
|
34
36
|
}, []);
|
|
35
|
-
return r.useEffect(
|
|
37
|
+
return r.useEffect(s, []), p(s), /* @__PURE__ */ t(d, { children: /* @__PURE__ */ _("div", { ref: n, className: e.root, style: u, children: [
|
|
36
38
|
/* @__PURE__ */ t("div", { className: e.tile, "data-top": !0 }),
|
|
37
39
|
/* @__PURE__ */ t("div", { className: e.tile, "data-left": !0 }),
|
|
38
40
|
/* @__PURE__ */ t("div", { className: e.tile, "data-right": !0 }),
|
|
39
41
|
/* @__PURE__ */ t("div", { className: e.tile, "data-bottom": !0 })
|
|
40
42
|
] }) });
|
|
41
|
-
}
|
|
43
|
+
}
|
|
42
44
|
export {
|
|
43
|
-
|
|
45
|
+
R as Shroud
|
|
44
46
|
};
|
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import r from "react";
|
|
3
|
-
import
|
|
4
|
-
import { textSizeResponsiveValueFormatter as
|
|
5
|
-
import { ui as
|
|
6
|
-
import { clsx as
|
|
7
|
-
const
|
|
8
|
-
skeleton:
|
|
9
|
-
shimmer: h
|
|
3
|
+
import u from "../Layout/Box/Box.js";
|
|
4
|
+
import { textSizeResponsiveValueFormatter as d } from "../Text/Text.js";
|
|
5
|
+
import { ui as t } from "../../utils/ui/ui.js";
|
|
6
|
+
import { clsx as f } from "../../utils/clsx.js";
|
|
7
|
+
const _ = "cfxui__Skeleton__skeleton__d700e", h = {
|
|
8
|
+
skeleton: _
|
|
10
9
|
};
|
|
11
|
-
function
|
|
10
|
+
function k(l) {
|
|
12
11
|
const {
|
|
13
|
-
width:
|
|
12
|
+
width: m = "100%",
|
|
14
13
|
height: e = "small",
|
|
15
|
-
borderRadius:
|
|
16
|
-
className:
|
|
14
|
+
borderRadius: s = "xsmall",
|
|
15
|
+
className: a,
|
|
17
16
|
style: o,
|
|
18
|
-
...
|
|
19
|
-
} =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
...i
|
|
18
|
+
} = l, n = f(
|
|
19
|
+
h.skeleton,
|
|
20
|
+
a,
|
|
21
|
+
t.getResponsiveClassnames("height", e)
|
|
23
22
|
), c = r.useMemo(() => ({
|
|
24
|
-
borderRadius:
|
|
25
|
-
...
|
|
23
|
+
borderRadius: t.borderRadius(s),
|
|
24
|
+
...t.getResponsiveStyles("height", e, d),
|
|
26
25
|
...o || {}
|
|
27
|
-
}), [
|
|
28
|
-
return /* @__PURE__ */
|
|
29
|
-
|
|
26
|
+
}), [s, e, o]);
|
|
27
|
+
return /* @__PURE__ */ p(
|
|
28
|
+
u,
|
|
30
29
|
{
|
|
31
|
-
className:
|
|
30
|
+
className: n,
|
|
32
31
|
height: e,
|
|
33
|
-
width:
|
|
32
|
+
width: m,
|
|
34
33
|
style: c,
|
|
35
|
-
...
|
|
34
|
+
...i
|
|
36
35
|
}
|
|
37
36
|
);
|
|
38
37
|
}
|
|
39
|
-
const
|
|
38
|
+
const v = r.memo(k);
|
|
40
39
|
export {
|
|
41
|
-
|
|
40
|
+
v as default
|
|
42
41
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import f, { useState as n, useEffect as u } from "react";
|
|
3
3
|
import { Badge as t } from "../Badge/Badge.js";
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
import {
|
|
4
|
+
import p from "../Button/Button.js";
|
|
5
|
+
import "../../utils/links.js";
|
|
6
|
+
import { DataTable as x } from "../DataTable/DataTable.js";
|
|
7
|
+
import m from "../Layout/Flex/Flex.js";
|
|
7
8
|
import { Text as r } from "../Text/Text.js";
|
|
8
9
|
import "../../utils/ui/ui.js";
|
|
9
10
|
import c from "./Skeleton.js";
|
|
10
|
-
import { Table as x } from "../Table/Table.js";
|
|
11
11
|
const g = [
|
|
12
12
|
{ text: "Header 1" },
|
|
13
13
|
{ text: "Header 2" },
|
|
@@ -7,6 +7,7 @@ export interface SliderProps extends RadixSlider.SliderProps {
|
|
|
7
7
|
minLabel?: string | number;
|
|
8
8
|
maxLabel?: string | number;
|
|
9
9
|
trackClassName?: string;
|
|
10
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
10
11
|
}
|
|
11
|
-
export declare
|
|
12
|
+
export declare function Slider(props: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default Slider;
|