@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
package/dist/index-Cf5Yu9oD.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as i from "react";
|
|
2
|
-
function d(e) {
|
|
3
|
-
const r = i.useRef(e);
|
|
4
|
-
return i.useEffect(() => {
|
|
5
|
-
r.current = e;
|
|
6
|
-
}), i.useMemo(() => (...o) => {
|
|
7
|
-
var t;
|
|
8
|
-
return (t = r.current) == null ? void 0 : t.call(r, ...o);
|
|
9
|
-
}, []);
|
|
10
|
-
}
|
|
11
|
-
function v({
|
|
12
|
-
prop: e,
|
|
13
|
-
defaultProp: r,
|
|
14
|
-
onChange: o = () => {
|
|
15
|
-
}
|
|
16
|
-
}) {
|
|
17
|
-
const [t, s] = b({ defaultProp: r, onChange: o }), n = e !== void 0, f = n ? e : t, c = d(o), a = i.useCallback(
|
|
18
|
-
(u) => {
|
|
19
|
-
if (n) {
|
|
20
|
-
const l = typeof u == "function" ? u(e) : u;
|
|
21
|
-
l !== e && c(l);
|
|
22
|
-
} else
|
|
23
|
-
s(u);
|
|
24
|
-
},
|
|
25
|
-
[n, e, s, c]
|
|
26
|
-
);
|
|
27
|
-
return [f, a];
|
|
28
|
-
}
|
|
29
|
-
function b({
|
|
30
|
-
defaultProp: e,
|
|
31
|
-
onChange: r
|
|
32
|
-
}) {
|
|
33
|
-
const o = i.useState(e), [t] = o, s = i.useRef(t), n = d(r);
|
|
34
|
-
return i.useEffect(() => {
|
|
35
|
-
s.current !== t && (n(t), s.current = t);
|
|
36
|
-
}, [t, s, n]), o;
|
|
37
|
-
}
|
|
38
|
-
var h = globalThis != null && globalThis.document ? i.useLayoutEffect : () => {
|
|
39
|
-
};
|
|
40
|
-
function z(e) {
|
|
41
|
-
const [r, o] = i.useState(void 0);
|
|
42
|
-
return h(() => {
|
|
43
|
-
if (e) {
|
|
44
|
-
o({ width: e.offsetWidth, height: e.offsetHeight });
|
|
45
|
-
const t = new ResizeObserver((s) => {
|
|
46
|
-
if (!Array.isArray(s) || !s.length)
|
|
47
|
-
return;
|
|
48
|
-
const n = s[0];
|
|
49
|
-
let f, c;
|
|
50
|
-
if ("borderBoxSize" in n) {
|
|
51
|
-
const a = n.borderBoxSize, u = Array.isArray(a) ? a[0] : a;
|
|
52
|
-
f = u.inlineSize, c = u.blockSize;
|
|
53
|
-
} else
|
|
54
|
-
f = e.offsetWidth, c = e.offsetHeight;
|
|
55
|
-
o({ width: f, height: c });
|
|
56
|
-
});
|
|
57
|
-
return t.observe(e, { box: "border-box" }), () => t.unobserve(e);
|
|
58
|
-
} else
|
|
59
|
-
o(void 0);
|
|
60
|
-
}, [e]), r;
|
|
61
|
-
}
|
|
62
|
-
export {
|
|
63
|
-
z as a,
|
|
64
|
-
h as b,
|
|
65
|
-
d as c,
|
|
66
|
-
v as u
|
|
67
|
-
};
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
var y = function(c, a) {
|
|
2
|
-
return y = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, e) {
|
|
3
|
-
r.__proto__ = e;
|
|
4
|
-
} || function(r, e) {
|
|
5
|
-
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (r[o] = e[o]);
|
|
6
|
-
}, y(c, a);
|
|
7
|
-
};
|
|
8
|
-
function h(c, a) {
|
|
9
|
-
if (typeof a != "function" && a !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(a) + " is not a constructor or null");
|
|
11
|
-
y(c, a);
|
|
12
|
-
function r() {
|
|
13
|
-
this.constructor = c;
|
|
14
|
-
}
|
|
15
|
-
c.prototype = a === null ? Object.create(a) : (r.prototype = a.prototype, new r());
|
|
16
|
-
}
|
|
17
|
-
var p = function() {
|
|
18
|
-
return p = Object.assign || function(a) {
|
|
19
|
-
for (var r, e = 1, o = arguments.length; e < o; e++) {
|
|
20
|
-
r = arguments[e];
|
|
21
|
-
for (var t in r) Object.prototype.hasOwnProperty.call(r, t) && (a[t] = r[t]);
|
|
22
|
-
}
|
|
23
|
-
return a;
|
|
24
|
-
}, p.apply(this, arguments);
|
|
25
|
-
};
|
|
26
|
-
function _(c, a) {
|
|
27
|
-
var r = {};
|
|
28
|
-
for (var e in c) Object.prototype.hasOwnProperty.call(c, e) && a.indexOf(e) < 0 && (r[e] = c[e]);
|
|
29
|
-
if (c != null && typeof Object.getOwnPropertySymbols == "function")
|
|
30
|
-
for (var o = 0, e = Object.getOwnPropertySymbols(c); o < e.length; o++)
|
|
31
|
-
a.indexOf(e[o]) < 0 && Object.prototype.propertyIsEnumerable.call(c, e[o]) && (r[e[o]] = c[e[o]]);
|
|
32
|
-
return r;
|
|
33
|
-
}
|
|
34
|
-
function d(c, a, r, e) {
|
|
35
|
-
function o(t) {
|
|
36
|
-
return t instanceof r ? t : new r(function(l) {
|
|
37
|
-
l(t);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
return new (r || (r = Promise))(function(t, l) {
|
|
41
|
-
function i(u) {
|
|
42
|
-
try {
|
|
43
|
-
n(e.next(u));
|
|
44
|
-
} catch (s) {
|
|
45
|
-
l(s);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function f(u) {
|
|
49
|
-
try {
|
|
50
|
-
n(e.throw(u));
|
|
51
|
-
} catch (s) {
|
|
52
|
-
l(s);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function n(u) {
|
|
56
|
-
u.done ? t(u.value) : o(u.value).then(i, f);
|
|
57
|
-
}
|
|
58
|
-
n((e = e.apply(c, a || [])).next());
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
function w(c, a) {
|
|
62
|
-
var r = { label: 0, sent: function() {
|
|
63
|
-
if (t[0] & 1) throw t[1];
|
|
64
|
-
return t[1];
|
|
65
|
-
}, trys: [], ops: [] }, e, o, t, l;
|
|
66
|
-
return l = { next: i(0), throw: i(1), return: i(2) }, typeof Symbol == "function" && (l[Symbol.iterator] = function() {
|
|
67
|
-
return this;
|
|
68
|
-
}), l;
|
|
69
|
-
function i(n) {
|
|
70
|
-
return function(u) {
|
|
71
|
-
return f([n, u]);
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
function f(n) {
|
|
75
|
-
if (e) throw new TypeError("Generator is already executing.");
|
|
76
|
-
for (; l && (l = 0, n[0] && (r = 0)), r; ) try {
|
|
77
|
-
if (e = 1, o && (t = n[0] & 2 ? o.return : n[0] ? o.throw || ((t = o.return) && t.call(o), 0) : o.next) && !(t = t.call(o, n[1])).done) return t;
|
|
78
|
-
switch (o = 0, t && (n = [n[0] & 2, t.value]), n[0]) {
|
|
79
|
-
case 0:
|
|
80
|
-
case 1:
|
|
81
|
-
t = n;
|
|
82
|
-
break;
|
|
83
|
-
case 4:
|
|
84
|
-
return r.label++, { value: n[1], done: !1 };
|
|
85
|
-
case 5:
|
|
86
|
-
r.label++, o = n[1], n = [0];
|
|
87
|
-
continue;
|
|
88
|
-
case 7:
|
|
89
|
-
n = r.ops.pop(), r.trys.pop();
|
|
90
|
-
continue;
|
|
91
|
-
default:
|
|
92
|
-
if (t = r.trys, !(t = t.length > 0 && t[t.length - 1]) && (n[0] === 6 || n[0] === 2)) {
|
|
93
|
-
r = 0;
|
|
94
|
-
continue;
|
|
95
|
-
}
|
|
96
|
-
if (n[0] === 3 && (!t || n[1] > t[0] && n[1] < t[3])) {
|
|
97
|
-
r.label = n[1];
|
|
98
|
-
break;
|
|
99
|
-
}
|
|
100
|
-
if (n[0] === 6 && r.label < t[1]) {
|
|
101
|
-
r.label = t[1], t = n;
|
|
102
|
-
break;
|
|
103
|
-
}
|
|
104
|
-
if (t && r.label < t[2]) {
|
|
105
|
-
r.label = t[2], r.ops.push(n);
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
t[2] && r.ops.pop(), r.trys.pop();
|
|
109
|
-
continue;
|
|
110
|
-
}
|
|
111
|
-
n = a.call(c, r);
|
|
112
|
-
} catch (u) {
|
|
113
|
-
n = [6, u], o = 0;
|
|
114
|
-
} finally {
|
|
115
|
-
e = t = 0;
|
|
116
|
-
}
|
|
117
|
-
if (n[0] & 5) throw n[1];
|
|
118
|
-
return { value: n[0] ? n[1] : void 0, done: !0 };
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
function b(c, a) {
|
|
122
|
-
var r = typeof Symbol == "function" && c[Symbol.iterator];
|
|
123
|
-
if (!r) return c;
|
|
124
|
-
var e = r.call(c), o, t = [], l;
|
|
125
|
-
try {
|
|
126
|
-
for (; (a === void 0 || a-- > 0) && !(o = e.next()).done; ) t.push(o.value);
|
|
127
|
-
} catch (i) {
|
|
128
|
-
l = { error: i };
|
|
129
|
-
} finally {
|
|
130
|
-
try {
|
|
131
|
-
o && !o.done && (r = e.return) && r.call(e);
|
|
132
|
-
} finally {
|
|
133
|
-
if (l) throw l.error;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return t;
|
|
137
|
-
}
|
|
138
|
-
function v(c, a, r) {
|
|
139
|
-
if (r || arguments.length === 2) for (var e = 0, o = a.length, t; e < o; e++)
|
|
140
|
-
(t || !(e in a)) && (t || (t = Array.prototype.slice.call(a, 0, e)), t[e] = a[e]);
|
|
141
|
-
return c.concat(t || Array.prototype.slice.call(a));
|
|
142
|
-
}
|
|
143
|
-
export {
|
|
144
|
-
p as _,
|
|
145
|
-
d as a,
|
|
146
|
-
w as b,
|
|
147
|
-
v as c,
|
|
148
|
-
b as d,
|
|
149
|
-
h as e,
|
|
150
|
-
_ as f
|
|
151
|
-
};
|