@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
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { jsx as t, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import s, { useState as k } from "react";
|
|
3
|
+
import $ from "../Checkbox/Checkbox.js";
|
|
4
|
+
import { clsx as p } from "../../utils/clsx.js";
|
|
5
|
+
import "../Layout/Box/Box.js";
|
|
6
|
+
import "../Layout/Flex/Flex.js";
|
|
7
|
+
import "../../utils/ui/ui.js";
|
|
8
|
+
import "../Table/TableCellCheckbox.js";
|
|
9
|
+
import S from "../Table/TableIconButton.js";
|
|
10
|
+
import { Text as j } from "../Text/Text.js";
|
|
11
|
+
const z = "cfxui__DataTable__root__49417", A = "cfxui__DataTable__radio__8126b", B = "cfxui__DataTable__radioContent__9c8cc", E = "cfxui__DataTable__pointer__91cb4", O = "cfxui__DataTable__selectedRow__39a1c", g = "cfxui__DataTable__headerText__aa726", F = "cfxui__DataTable__headerContent__1c65d", H = "cfxui__DataTable__hidden__41ce8", a = {
|
|
12
|
+
root: z,
|
|
13
|
+
radio: A,
|
|
14
|
+
radioContent: B,
|
|
15
|
+
pointer: E,
|
|
16
|
+
selectedRow: O,
|
|
17
|
+
headerText: g,
|
|
18
|
+
headerContent: F,
|
|
19
|
+
hidden: H
|
|
20
|
+
};
|
|
21
|
+
function V(b) {
|
|
22
|
+
const {
|
|
23
|
+
item: e,
|
|
24
|
+
onSortClick: c
|
|
25
|
+
} = b, _ = s.useCallback(() => {
|
|
26
|
+
c && c(e.sortKey || e.text);
|
|
27
|
+
}, [e.sortKey, e.text, c]), n = p(a.headerContent, {
|
|
28
|
+
[a.sortable]: e.sortable,
|
|
29
|
+
[a.empty]: !e.text
|
|
30
|
+
});
|
|
31
|
+
return /* @__PURE__ */ t(
|
|
32
|
+
"th",
|
|
33
|
+
{
|
|
34
|
+
className: e.sortable ? a.pointer : void 0,
|
|
35
|
+
onClick: e.sortable ? _ : void 0,
|
|
36
|
+
children: /* @__PURE__ */ x("div", { className: n, children: [
|
|
37
|
+
/* @__PURE__ */ t(
|
|
38
|
+
j,
|
|
39
|
+
{
|
|
40
|
+
className: a.headerText,
|
|
41
|
+
color: "secondary",
|
|
42
|
+
letterSpacing: "large",
|
|
43
|
+
weight: "bold",
|
|
44
|
+
uppercase: !0,
|
|
45
|
+
size: "xxsmall",
|
|
46
|
+
children: e.text
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
!!e.sortable && /* @__PURE__ */ t(
|
|
50
|
+
S,
|
|
51
|
+
{
|
|
52
|
+
name: "Sort",
|
|
53
|
+
onClick: _
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] })
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
function q(b) {
|
|
61
|
+
const {
|
|
62
|
+
index: e,
|
|
63
|
+
includeRadio: c = !1,
|
|
64
|
+
loading: _,
|
|
65
|
+
selectedRow: n,
|
|
66
|
+
item: C,
|
|
67
|
+
dataContainer: m,
|
|
68
|
+
onSelectChange: r
|
|
69
|
+
} = b, f = s.useCallback((o) => {
|
|
70
|
+
r(
|
|
71
|
+
o ? e : null
|
|
72
|
+
);
|
|
73
|
+
}, [r, e]), h = s.useCallback(() => {
|
|
74
|
+
r(e);
|
|
75
|
+
}, [r, e]), T = p({
|
|
76
|
+
[a.selectedRow]: n === e,
|
|
77
|
+
[a.pointer]: c
|
|
78
|
+
});
|
|
79
|
+
return /* @__PURE__ */ x(
|
|
80
|
+
"tr",
|
|
81
|
+
{
|
|
82
|
+
className: T,
|
|
83
|
+
onClick: c ? h : void 0,
|
|
84
|
+
children: [
|
|
85
|
+
c && /* @__PURE__ */ t("td", { className: p(a.radio, { [a.hidden]: _ }), children: /* @__PURE__ */ t("div", { className: a.radioContent, children: /* @__PURE__ */ t(
|
|
86
|
+
$,
|
|
87
|
+
{
|
|
88
|
+
size: "small",
|
|
89
|
+
onCheckedChange: f,
|
|
90
|
+
"aria-label": `${e}`,
|
|
91
|
+
checked: n === e
|
|
92
|
+
}
|
|
93
|
+
) }) }),
|
|
94
|
+
C.map((o, u) => {
|
|
95
|
+
let d;
|
|
96
|
+
return s.isValidElement(o) ? d = o : m ? d = s.createElement(m, { item: o }) : d = String(o), /* @__PURE__ */ t("td", { children: d }, `item-${u}`);
|
|
97
|
+
})
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
`row-${e}`
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
function X({
|
|
104
|
+
headers: b = [],
|
|
105
|
+
data: e = [],
|
|
106
|
+
includeRadio: c = !1,
|
|
107
|
+
loading: _ = !1,
|
|
108
|
+
onSelectChange: n,
|
|
109
|
+
dataContainer: C,
|
|
110
|
+
selectedRow: m = null,
|
|
111
|
+
sortBy: r,
|
|
112
|
+
sortOrder: f = "asc",
|
|
113
|
+
onSortChange: h,
|
|
114
|
+
className: T
|
|
115
|
+
}) {
|
|
116
|
+
const [o, u] = k(m), [d, w] = k(r), [D, R] = k(f), v = s.useCallback((l) => {
|
|
117
|
+
const N = d === l && D === "asc" ? "desc" : "asc";
|
|
118
|
+
w(l), R(N), h == null || h(l, N);
|
|
119
|
+
}, [h, d, D]), y = s.useCallback(
|
|
120
|
+
(l) => {
|
|
121
|
+
const i = l === o ? null : l;
|
|
122
|
+
u(i), n == null || n(i);
|
|
123
|
+
},
|
|
124
|
+
[n, o]
|
|
125
|
+
);
|
|
126
|
+
return s.useEffect(() => {
|
|
127
|
+
u(m);
|
|
128
|
+
}, [m]), s.useEffect(() => {
|
|
129
|
+
w(r);
|
|
130
|
+
}, [r]), s.useEffect(() => {
|
|
131
|
+
R(f);
|
|
132
|
+
}, [f]), /* @__PURE__ */ t("div", { className: p(a.root, T), children: /* @__PURE__ */ x("table", { children: [
|
|
133
|
+
/* @__PURE__ */ t("thead", { children: /* @__PURE__ */ x("tr", { children: [
|
|
134
|
+
c && /* @__PURE__ */ t("th", { "aria-label": "Select Row" }),
|
|
135
|
+
b.map((l, i) => /* @__PURE__ */ t(
|
|
136
|
+
V,
|
|
137
|
+
{
|
|
138
|
+
item: l,
|
|
139
|
+
onSortClick: v
|
|
140
|
+
},
|
|
141
|
+
`header-${i}`
|
|
142
|
+
))
|
|
143
|
+
] }) }),
|
|
144
|
+
/* @__PURE__ */ t("tbody", { children: e.map((l, i) => /* @__PURE__ */ t(
|
|
145
|
+
q,
|
|
146
|
+
{
|
|
147
|
+
index: i,
|
|
148
|
+
item: l,
|
|
149
|
+
includeRadio: c,
|
|
150
|
+
loading: _,
|
|
151
|
+
selectedRow: o,
|
|
152
|
+
onSelectChange: y,
|
|
153
|
+
dataContainer: C
|
|
154
|
+
},
|
|
155
|
+
`row-${i}`
|
|
156
|
+
)) })
|
|
157
|
+
] }) });
|
|
158
|
+
}
|
|
159
|
+
export {
|
|
160
|
+
X as DataTable,
|
|
161
|
+
V as DataTableHeaderItem,
|
|
162
|
+
q as DataTableRow
|
|
163
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import d from "react";
|
|
3
|
+
import { Badge as l } from "../Badge/Badge.js";
|
|
4
|
+
import a from "../Layout/Flex/Flex.js";
|
|
5
|
+
import { Scrollable as c } from "../Layout/Scrollable/Scrollable.js";
|
|
6
|
+
import { Text as r } from "../Text/Text.js";
|
|
7
|
+
import "../../utils/ui/ui.js";
|
|
8
|
+
import { DataTable as o } from "./DataTable.js";
|
|
9
|
+
const n = [
|
|
10
|
+
[
|
|
11
|
+
"Cell 1",
|
|
12
|
+
"Cell 2",
|
|
13
|
+
"Cell 3",
|
|
14
|
+
new Date(2023, 0, 1).toLocaleDateString(),
|
|
15
|
+
/* @__PURE__ */ e(l, { color: "error", children: "Error" }, "1")
|
|
16
|
+
],
|
|
17
|
+
["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "2")],
|
|
18
|
+
["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")],
|
|
19
|
+
["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "2")],
|
|
20
|
+
["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")],
|
|
21
|
+
["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "2")],
|
|
22
|
+
["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")],
|
|
23
|
+
["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "2")],
|
|
24
|
+
["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")],
|
|
25
|
+
["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "2")],
|
|
26
|
+
["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")],
|
|
27
|
+
["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "2")],
|
|
28
|
+
["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")]
|
|
29
|
+
], i = [
|
|
30
|
+
{ text: "Header 1" },
|
|
31
|
+
{ text: "Header 2" },
|
|
32
|
+
{ text: "Header 3" },
|
|
33
|
+
{ text: "Date" },
|
|
34
|
+
{ text: "Item" }
|
|
35
|
+
];
|
|
36
|
+
function C() {
|
|
37
|
+
return /* @__PURE__ */ t(a, { gap: "large", vertical: !0, children: [
|
|
38
|
+
/* @__PURE__ */ t(a, { gap: "normal", vertical: !0, children: [
|
|
39
|
+
/* @__PURE__ */ e(r, { children: "Table" }),
|
|
40
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(o, { headers: i, data: n }) })
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ t(a, { fullWidth: !0, vertical: !0, children: [
|
|
43
|
+
/* @__PURE__ */ e(r, { children: "Table with scroll" }),
|
|
44
|
+
/* @__PURE__ */ e(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
style: {
|
|
48
|
+
height: "400px",
|
|
49
|
+
overflow: "hidden"
|
|
50
|
+
},
|
|
51
|
+
children: /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(o, { includeRadio: !0, headers: i, data: n }) })
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
] })
|
|
55
|
+
] });
|
|
56
|
+
}
|
|
57
|
+
const L = d.memo(C);
|
|
58
|
+
export {
|
|
59
|
+
L as default
|
|
60
|
+
};
|
|
@@ -5,7 +5,8 @@ export interface DecorateProps {
|
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
className?: string;
|
|
7
7
|
decoratorClassName?: string;
|
|
8
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
8
9
|
}
|
|
9
|
-
export declare
|
|
10
|
-
declare const _default: React.MemoExoticComponent<
|
|
10
|
+
export declare function Decorate(props: DecorateProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const _default: React.MemoExoticComponent<typeof Decorate>;
|
|
11
12
|
export default _default;
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
const
|
|
5
|
-
root:
|
|
6
|
-
decorator:
|
|
7
|
-
}
|
|
1
|
+
import { jsxs as l, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import f from "react";
|
|
3
|
+
import { clsx as r } from "../../utils/clsx.js";
|
|
4
|
+
const i = "cfxui__Decorate__root__8f2af", N = "cfxui__Decorate__decorator__db06a", a = {
|
|
5
|
+
root: i,
|
|
6
|
+
decorator: N
|
|
7
|
+
};
|
|
8
|
+
function u(e) {
|
|
8
9
|
const {
|
|
9
|
-
decorator:
|
|
10
|
-
children:
|
|
11
|
-
className:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
decorator: o,
|
|
11
|
+
children: t,
|
|
12
|
+
className: c,
|
|
13
|
+
decoratorClassName: s,
|
|
14
|
+
ref: d
|
|
15
|
+
} = e, m = r(a.root, c), _ = r(a.decorator, s);
|
|
16
|
+
return /* @__PURE__ */ l("div", { ref: d, className: m, children: [
|
|
17
|
+
t,
|
|
18
|
+
!!o && /* @__PURE__ */ n("div", { className: _, children: o })
|
|
16
19
|
] });
|
|
17
|
-
}
|
|
20
|
+
}
|
|
21
|
+
const C = f.memo(u);
|
|
18
22
|
export {
|
|
19
23
|
u as Decorate,
|
|
20
24
|
C as default
|
|
@@ -5,5 +5,6 @@ export type DotSize = 'small' | 'normal' | 'large';
|
|
|
5
5
|
export interface DotProps extends GetColorProps {
|
|
6
6
|
size?: DotSize;
|
|
7
7
|
className?: string;
|
|
8
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
8
9
|
}
|
|
9
|
-
export declare
|
|
10
|
+
export declare function Dot(props: DotProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import i from "react";
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
2
|
import { clsx as l } from "../../utils/clsx.js";
|
|
4
3
|
import { getColor as a } from "../../utils/color.js";
|
|
5
|
-
const
|
|
6
|
-
root:
|
|
4
|
+
const m = "cfxui__Dot__root__9bed3", r = {
|
|
5
|
+
root: m,
|
|
7
6
|
"size-small": "cfxui__Dot__size-small__b7d03",
|
|
8
7
|
"size-normal": "cfxui__Dot__size-normal__e73b3",
|
|
9
8
|
"size-large": "cfxui__Dot__size-large__4fe0a"
|
|
10
|
-
}
|
|
9
|
+
};
|
|
10
|
+
function z(o) {
|
|
11
11
|
const {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
color: _ = "primary",
|
|
13
|
+
size: e = "normal",
|
|
14
|
+
className: s,
|
|
15
|
+
ref: t
|
|
14
16
|
} = o;
|
|
15
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ i(
|
|
16
18
|
"div",
|
|
17
19
|
{
|
|
18
|
-
ref:
|
|
19
|
-
className: l(r.root, r[`size-${
|
|
20
|
+
ref: t,
|
|
21
|
+
className: l(r.root, r[`size-${e}`], s),
|
|
20
22
|
style: { backgroundColor: a({
|
|
21
23
|
...o,
|
|
22
|
-
color:
|
|
24
|
+
color: _
|
|
23
25
|
}) }
|
|
24
26
|
}
|
|
25
27
|
);
|
|
26
|
-
}
|
|
28
|
+
}
|
|
27
29
|
export {
|
|
28
|
-
|
|
30
|
+
z as Dot
|
|
29
31
|
};
|
|
@@ -14,6 +14,7 @@ export interface DropdownSelectProps<T = string> {
|
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
fullWidth?: boolean;
|
|
16
16
|
onlight?: boolean;
|
|
17
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
17
18
|
}
|
|
18
|
-
export declare
|
|
19
|
+
export declare function DropdownSelect(props: DropdownSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export default DropdownSelect;
|