@cfx-dev/ui-components 4.2.23 → 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 +7 -5
- package/dist/main.js +181 -179
- 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,27 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
root: n,
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as t } from "../../utils/clsx.js";
|
|
3
|
+
const m = "cfxui__Loaf__root__05393", n = "cfxui__Loaf__bright__6638c", o = {
|
|
4
|
+
root: m,
|
|
6
5
|
"color-normal": "cfxui__Loaf__color-normal__bec17",
|
|
7
|
-
bright:
|
|
6
|
+
bright: n,
|
|
8
7
|
"color-gold": "cfxui__Loaf__color-gold__4fa59",
|
|
9
8
|
"color-error": "cfxui__Loaf__color-error__9887b",
|
|
10
9
|
"size-small": "cfxui__Loaf__size-small__942f7",
|
|
11
10
|
"size-normal": "cfxui__Loaf__size-normal__7b2a1",
|
|
12
11
|
"size-large": "cfxui__Loaf__size-large__1679c"
|
|
13
|
-
}
|
|
12
|
+
};
|
|
13
|
+
function g(_) {
|
|
14
14
|
const {
|
|
15
|
-
size:
|
|
15
|
+
size: r = "normal",
|
|
16
16
|
color: c = "normal",
|
|
17
|
-
bright:
|
|
18
|
-
children:
|
|
19
|
-
className: i
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
bright: a = !1,
|
|
18
|
+
children: l,
|
|
19
|
+
className: i,
|
|
20
|
+
ref: s
|
|
21
|
+
} = _, f = t(o.root, o[`size-${r}`], o[`color-${c}`], i, {
|
|
22
|
+
[o.bright]: a
|
|
22
23
|
});
|
|
23
|
-
return /* @__PURE__ */
|
|
24
|
-
}
|
|
24
|
+
return /* @__PURE__ */ e("div", { ref: s, className: f, children: l });
|
|
25
|
+
}
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
g as Loaf
|
|
27
28
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import d from "react";
|
|
3
3
|
import { Island as c } from "../Island/Island.js";
|
|
4
|
-
import
|
|
4
|
+
import m from "../Layout/Flex/Flex.js";
|
|
5
5
|
import { Pad as l } from "../Layout/Pad/Pad.js";
|
|
6
6
|
import { Text as a } from "../Text/Text.js";
|
|
7
7
|
import "../../utils/ui/ui.js";
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
1
|
+
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import N from "react";
|
|
3
3
|
import "../Button/Button.js";
|
|
4
4
|
import { ButtonBar as k } from "../Button/ButtonBar.js";
|
|
5
|
-
import "
|
|
6
|
-
import
|
|
5
|
+
import "../../utils/links.js";
|
|
6
|
+
import y from "../IconButton/IconButton.js";
|
|
7
7
|
import { Overlay as t } from "../Overlay/Overlay.js";
|
|
8
8
|
import { Text as m } from "../Text/Text.js";
|
|
9
9
|
import "../../utils/ui/ui.js";
|
|
10
10
|
import { clsx as s } from "../../utils/clsx.js";
|
|
11
11
|
import "../../utils/hooks/useGlobalKeyboardEvent.js";
|
|
12
|
-
import { useKeyboardClose as
|
|
13
|
-
import "../../index-
|
|
14
|
-
const M = "cfxui__Modal__root__53283", B = "cfxui__Modal__close__2df9b", v = "cfxui__Modal__header__bec76", g = "cfxui__Modal__footer__bb2fc",
|
|
12
|
+
import { useKeyboardClose as x } from "../../utils/hooks/useKeyboardClose.js";
|
|
13
|
+
import "../../index-Cl_RnsqN.js";
|
|
14
|
+
const M = "cfxui__Modal__root__53283", B = "cfxui__Modal__close__2df9b", v = "cfxui__Modal__header__bec76", g = "cfxui__Modal__footer__bb2fc", r = {
|
|
15
15
|
root: M,
|
|
16
|
-
"modal-appearance": "cfxui__Modal__modal-appearance__60dd7",
|
|
17
16
|
close: B,
|
|
18
17
|
header: v,
|
|
19
18
|
footer: g
|
|
@@ -33,15 +32,15 @@ function _(c) {
|
|
|
33
32
|
} = c, n = N.useCallback(() => {
|
|
34
33
|
d || !o || o();
|
|
35
34
|
}, [o, d]);
|
|
36
|
-
return
|
|
37
|
-
/* @__PURE__ */
|
|
35
|
+
return x(n), /* @__PURE__ */ i(t, { className: s(r.overlay, f), children: [
|
|
36
|
+
/* @__PURE__ */ a(
|
|
38
37
|
t.Backdrop,
|
|
39
38
|
{
|
|
40
39
|
onClick: n,
|
|
41
|
-
className: s(
|
|
40
|
+
className: s(r.backdrop, p)
|
|
42
41
|
}
|
|
43
42
|
),
|
|
44
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ a(
|
|
45
44
|
t.Content,
|
|
46
45
|
{
|
|
47
46
|
className: b,
|
|
@@ -52,9 +51,9 @@ function _(c) {
|
|
|
52
51
|
role: "dialog",
|
|
53
52
|
"aria-describedby": u,
|
|
54
53
|
"aria-labelledby": h,
|
|
55
|
-
className: s(
|
|
54
|
+
className: s(r.root, e),
|
|
56
55
|
children: [
|
|
57
|
-
!!o && /* @__PURE__ */
|
|
56
|
+
!!o && /* @__PURE__ */ a(y, { areaSize: "large", className: r.close, name: "Close", onClick: o }),
|
|
58
57
|
l
|
|
59
58
|
]
|
|
60
59
|
}
|
|
@@ -68,8 +67,8 @@ _.Header = function(o) {
|
|
|
68
67
|
title: l,
|
|
69
68
|
description: e
|
|
70
69
|
} = o;
|
|
71
|
-
return /* @__PURE__ */ i("div", { className:
|
|
72
|
-
/* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ i("div", { className: r.header, children: [
|
|
71
|
+
/* @__PURE__ */ a(
|
|
73
72
|
m,
|
|
74
73
|
{
|
|
75
74
|
weight: "bold",
|
|
@@ -77,7 +76,7 @@ _.Header = function(o) {
|
|
|
77
76
|
children: l
|
|
78
77
|
}
|
|
79
78
|
),
|
|
80
|
-
e && /* @__PURE__ */
|
|
79
|
+
e && /* @__PURE__ */ a(
|
|
81
80
|
m,
|
|
82
81
|
{
|
|
83
82
|
size: "small",
|
|
@@ -92,7 +91,7 @@ _.Footer = function(o) {
|
|
|
92
91
|
className: l,
|
|
93
92
|
...e
|
|
94
93
|
} = o;
|
|
95
|
-
return /* @__PURE__ */
|
|
94
|
+
return /* @__PURE__ */ a(k, { ...e, className: s(r.footer, l) });
|
|
96
95
|
};
|
|
97
96
|
export {
|
|
98
97
|
_ as Modal
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
3
|
+
import l from "../Button/Button.js";
|
|
4
|
+
import "../../utils/links.js";
|
|
5
5
|
import n from "../Input/Input.js";
|
|
6
|
-
import "
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import "../../utils/hooks/useGlobalKeyboardEvent.js";
|
|
7
|
+
import "../../utils/hooks/useKeyboardClose.js";
|
|
8
|
+
import "../../index-Cl_RnsqN.js";
|
|
9
|
+
import "../../utils/ui/ui.js";
|
|
10
|
+
import p from "../Layout/Box/Box.js";
|
|
11
|
+
import { LOREM_IPSUM as c } from "../../utils/loremipsum.js";
|
|
9
12
|
import { Modal as r } from "./Modal.js";
|
|
10
|
-
function
|
|
11
|
-
const [d,
|
|
13
|
+
function s() {
|
|
14
|
+
const [d, m] = i.useState(!1), t = i.useCallback(() => m((a) => !a), []);
|
|
12
15
|
return /* @__PURE__ */ e(
|
|
13
16
|
"div",
|
|
14
17
|
{
|
|
@@ -22,9 +25,9 @@ function p() {
|
|
|
22
25
|
/* @__PURE__ */ o(l, { theme: "primary", onClick: t, text: "Toggle Modal" }),
|
|
23
26
|
d && /* @__PURE__ */ e(r, { onClose: t, children: [
|
|
24
27
|
/* @__PURE__ */ o(r.Header, { title: "Modal Title", description: "Modal Description" }),
|
|
25
|
-
/* @__PURE__ */ o(
|
|
28
|
+
/* @__PURE__ */ o(p, { mb: 4, children: /* @__PURE__ */ o(n, { theme: "onlight", placeholder: "Input", fullWidth: !0 }) }),
|
|
26
29
|
"Modal content: ",
|
|
27
|
-
|
|
30
|
+
c,
|
|
28
31
|
/* @__PURE__ */ e(r.Footer, { children: [
|
|
29
32
|
/* @__PURE__ */ o(
|
|
30
33
|
l,
|
|
@@ -50,7 +53,7 @@ function p() {
|
|
|
50
53
|
}
|
|
51
54
|
);
|
|
52
55
|
}
|
|
53
|
-
const
|
|
56
|
+
const b = i.memo(s);
|
|
54
57
|
export {
|
|
55
|
-
|
|
58
|
+
b as default
|
|
56
59
|
};
|
|
@@ -10,5 +10,6 @@ export interface NavListProps {
|
|
|
10
10
|
items: NavListItem[];
|
|
11
11
|
activeItemId: string;
|
|
12
12
|
onActivate?(id: string): void;
|
|
13
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
13
14
|
}
|
|
14
|
-
export declare
|
|
15
|
+
export declare function NavList(props: NavListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { noop as v } from "../../utils/functional.js";
|
|
2
|
+
import { Interactive as l } from "../Interactive/Interactive.js";
|
|
3
|
+
import { clsx as v } from "../../utils/clsx.js";
|
|
4
|
+
import { noop as d } from "../../utils/functional.js";
|
|
6
5
|
import { getValue as c } from "../../utils/getValue.js";
|
|
7
|
-
const
|
|
8
|
-
root:
|
|
9
|
-
item:
|
|
10
|
-
active:
|
|
6
|
+
const f = "cfxui__NavList__root__6fbf7", N = "cfxui__NavList__item__d5754", p = "cfxui__NavList__active__4634d", x = "cfxui__NavList__icon__9a57e", o = {
|
|
7
|
+
root: f,
|
|
8
|
+
item: N,
|
|
9
|
+
active: p,
|
|
11
10
|
icon: x
|
|
12
|
-
}
|
|
11
|
+
};
|
|
12
|
+
function j(e) {
|
|
13
13
|
const {
|
|
14
14
|
items: s,
|
|
15
|
-
activeItemId:
|
|
16
|
-
onActivate:
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
activeItemId: a,
|
|
16
|
+
onActivate: n = d,
|
|
17
|
+
ref: _
|
|
18
|
+
} = e, r = s.map((i) => /* @__PURE__ */ m(
|
|
19
|
+
l,
|
|
19
20
|
{
|
|
20
|
-
className:
|
|
21
|
-
onClick: () =>
|
|
21
|
+
className: v(o.item, { [o.active]: i.id === a }),
|
|
22
|
+
onClick: () => n(i.id),
|
|
22
23
|
children: [
|
|
23
24
|
!!i.icon && /* @__PURE__ */ t("div", { className: o.icon, children: c(i.icon) }),
|
|
24
25
|
/* @__PURE__ */ t("div", { className: o.label, children: c(i.label) })
|
|
@@ -26,8 +27,8 @@ const N = "cfxui__NavList__root__6fbf7", p = "cfxui__NavList__item__d5754", u =
|
|
|
26
27
|
},
|
|
27
28
|
i.id
|
|
28
29
|
));
|
|
29
|
-
return /* @__PURE__ */ t("div", { ref:
|
|
30
|
-
}
|
|
30
|
+
return /* @__PURE__ */ t("div", { ref: _, className: o.root, children: r });
|
|
31
|
+
}
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
j as NavList
|
|
33
34
|
};
|
|
@@ -4,7 +4,7 @@ import { noop as o } from "../utils/functional.js";
|
|
|
4
4
|
import { useDynamicRef as s } from "../utils/hooks/useDynamicRef.js";
|
|
5
5
|
import "../utils/hooks/useGlobalKeyboardEvent.js";
|
|
6
6
|
import "../utils/hooks/useKeyboardClose.js";
|
|
7
|
-
import "../index-
|
|
7
|
+
import "../index-Cl_RnsqN.js";
|
|
8
8
|
const l = {
|
|
9
9
|
width: "0",
|
|
10
10
|
height: "0"
|
|
@@ -7,11 +7,12 @@ export interface OverlayProps {
|
|
|
7
7
|
}
|
|
8
8
|
export declare function Overlay(props: OverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export declare namespace Overlay {
|
|
10
|
-
var Backdrop:
|
|
11
|
-
var Content:
|
|
10
|
+
var Backdrop: (props: OverlayBackdropProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
var Content: (props: OverlayContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
}
|
|
13
13
|
export interface OverlayBackdropProps {
|
|
14
14
|
children?: React.ReactNode;
|
|
15
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
15
16
|
className?: string;
|
|
16
17
|
onClick?(): void;
|
|
17
18
|
}
|
|
@@ -19,4 +20,5 @@ export interface OverlayContentProps {
|
|
|
19
20
|
children?: React.ReactNode;
|
|
20
21
|
className?: string;
|
|
21
22
|
disableFocusLock?: boolean;
|
|
23
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
22
24
|
}
|
|
@@ -1,34 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { F as m } from "../../Combination-N-vN9BB-.js";
|
|
3
|
+
import { Interactive as _ } from "../Interactive/Interactive.js";
|
|
4
|
+
import { clsx as s } from "../../utils/clsx.js";
|
|
5
|
+
import "react";
|
|
6
6
|
import "../../utils/hooks/useGlobalKeyboardEvent.js";
|
|
7
7
|
import "../../utils/hooks/useKeyboardClose.js";
|
|
8
|
-
import { useOutlet as
|
|
9
|
-
const f = "cfxui__Overlay__root__7221c",
|
|
8
|
+
import { useOutlet as d } from "../../utils/hooks/useOutlet.js";
|
|
9
|
+
const f = "cfxui__Overlay__root__7221c", p = "cfxui__Overlay__backdrop__bc193", u = "cfxui__Overlay__content__002f3", l = {
|
|
10
10
|
root: f,
|
|
11
|
-
backdrop:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function i(t) {
|
|
11
|
+
backdrop: p,
|
|
12
|
+
content: u
|
|
13
|
+
}, v = "overlay-outlet";
|
|
14
|
+
function i(n) {
|
|
16
15
|
const {
|
|
17
16
|
className: o,
|
|
18
|
-
children:
|
|
19
|
-
} =
|
|
20
|
-
return /* @__PURE__ */
|
|
17
|
+
children: t
|
|
18
|
+
} = n, r = s(l.root, o), c = d(v);
|
|
19
|
+
return /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e("div", { className: r, children: t }) });
|
|
21
20
|
}
|
|
22
|
-
i.Backdrop =
|
|
23
|
-
return /* @__PURE__ */ r(d, { ref: c, onClick: o.onClick, className: a(n.backdrop, o.className), children: o.children });
|
|
24
|
-
});
|
|
25
|
-
i.Content = l.forwardRef(function(o, c) {
|
|
21
|
+
i.Backdrop = function(o) {
|
|
26
22
|
const {
|
|
27
|
-
|
|
23
|
+
className: t,
|
|
24
|
+
ref: r,
|
|
25
|
+
onClick: c,
|
|
26
|
+
children: a
|
|
28
27
|
} = o;
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
-
}
|
|
28
|
+
return /* @__PURE__ */ e(_, { ref: r, onClick: c, className: s(l.backdrop, t), children: a });
|
|
29
|
+
};
|
|
30
|
+
i.Content = function(o) {
|
|
31
|
+
const {
|
|
32
|
+
disableFocusLock: t = !1,
|
|
33
|
+
className: r,
|
|
34
|
+
children: c,
|
|
35
|
+
ref: a
|
|
36
|
+
} = o;
|
|
37
|
+
return /* @__PURE__ */ e("div", { ref: a, className: s(l.content, r), children: /* @__PURE__ */ e(m, { disabled: t, children: c }) });
|
|
38
|
+
};
|
|
31
39
|
export {
|
|
32
|
-
|
|
40
|
+
v as OVERLAY_OUTLET_ID,
|
|
33
41
|
i as Overlay
|
|
34
42
|
};
|
|
@@ -2,13 +2,14 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { InteractiveProps } from '../Interactive/Interactive';
|
|
3
3
|
|
|
4
4
|
export type PopoverPosition = 'top-right' | 'top-left';
|
|
5
|
-
export interface PopoverProps extends Omit<InteractiveProps, 'children'> {
|
|
5
|
+
export interface PopoverProps extends Omit<InteractiveProps, 'children' | 'popover'> {
|
|
6
6
|
at?: PopoverPosition;
|
|
7
7
|
as?: React.ElementType;
|
|
8
8
|
popover: React.ReactNode;
|
|
9
9
|
children: (active: boolean) => React.ReactNode;
|
|
10
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
10
11
|
active?: boolean;
|
|
11
12
|
rootClassName?: string;
|
|
12
13
|
popoverClassName?: string;
|
|
13
14
|
}
|
|
14
|
-
export declare
|
|
15
|
+
export declare function Popover(props: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,46 +1,47 @@
|
|
|
1
|
-
import { jsxs as P, jsx as
|
|
2
|
-
import
|
|
3
|
-
import { Interactive as N } from "../Interactive/Interactive.js";
|
|
1
|
+
import { jsxs as P, jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { Interactive as d } from "../Interactive/Interactive.js";
|
|
4
3
|
import { clsx as r } from "../../utils/clsx.js";
|
|
5
|
-
const
|
|
6
|
-
root:
|
|
7
|
-
active:
|
|
8
|
-
popover:
|
|
4
|
+
const N = "cfxui__Popover__root__4521b", C = "cfxui__Popover__active__e4504", g = "cfxui__Popover__popover__bea1e", M = "cfxui__Popover__appearance__20d42", o = {
|
|
5
|
+
root: N,
|
|
6
|
+
active: C,
|
|
7
|
+
popover: g,
|
|
9
8
|
appearance: M,
|
|
10
9
|
"pos-top-right": "cfxui__Popover__pos-top-right__95a54",
|
|
11
10
|
"pos-top-left": "cfxui__Popover__pos-top-left__a93aa"
|
|
12
|
-
}
|
|
11
|
+
};
|
|
12
|
+
function A(s) {
|
|
13
13
|
const {
|
|
14
|
-
at:
|
|
15
|
-
as:
|
|
16
|
-
popover:
|
|
17
|
-
children:
|
|
18
|
-
active:
|
|
19
|
-
onMouseEnter:
|
|
20
|
-
onMouseLeave:
|
|
21
|
-
onMouseDown:
|
|
22
|
-
rootClassName:
|
|
23
|
-
popoverClassName:
|
|
24
|
-
|
|
14
|
+
at: t = "top-right",
|
|
15
|
+
as: p = "div",
|
|
16
|
+
popover: a,
|
|
17
|
+
children: _,
|
|
18
|
+
active: c = !1,
|
|
19
|
+
onMouseEnter: i,
|
|
20
|
+
onMouseLeave: n,
|
|
21
|
+
onMouseDown: v,
|
|
22
|
+
rootClassName: f,
|
|
23
|
+
popoverClassName: l,
|
|
24
|
+
ref: m
|
|
25
|
+
} = s, e = c, u = r(o.root, f, {
|
|
25
26
|
[o.active]: e
|
|
26
|
-
}), x = r(o.popover,
|
|
27
|
+
}), x = r(o.popover, l, o[`pos-${t}`]);
|
|
27
28
|
return /* @__PURE__ */ P(
|
|
28
|
-
|
|
29
|
+
d,
|
|
29
30
|
{
|
|
30
|
-
as:
|
|
31
|
-
ref:
|
|
31
|
+
as: p,
|
|
32
|
+
ref: m,
|
|
32
33
|
showPointer: !1,
|
|
33
34
|
className: u,
|
|
34
|
-
onMouseEnter:
|
|
35
|
-
onMouseLeave:
|
|
36
|
-
onMouseDown:
|
|
35
|
+
onMouseEnter: i,
|
|
36
|
+
onMouseLeave: n,
|
|
37
|
+
onMouseDown: v,
|
|
37
38
|
children: [
|
|
38
|
-
|
|
39
|
-
e && /* @__PURE__ */
|
|
39
|
+
_(e),
|
|
40
|
+
e && /* @__PURE__ */ h("div", { className: x, children: a })
|
|
40
41
|
]
|
|
41
42
|
}
|
|
42
43
|
);
|
|
43
|
-
}
|
|
44
|
+
}
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
A as Popover
|
|
46
47
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import s from "react";
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
3
|
+
import a from "../Button/Button.js";
|
|
4
|
+
import "../../utils/links.js";
|
|
5
|
+
import m from "../Layout/Flex/Flex.js";
|
|
6
6
|
import { usePopoverController as i } from "../../utils/hooks/usePopoverController.js";
|
|
7
7
|
import "../../utils/hooks/useGlobalKeyboardEvent.js";
|
|
8
8
|
import "../../utils/hooks/useKeyboardClose.js";
|
|
9
|
-
import "../../index-
|
|
9
|
+
import "../../index-Cl_RnsqN.js";
|
|
10
10
|
import { Popover as l } from "./Popover.js";
|
|
11
11
|
const v = "cfxui__PopoverShowcase__popover__432d2", c = {
|
|
12
12
|
popover: v
|
|
@@ -10,6 +10,7 @@ export type PremiumBadgeLevel = keyof typeof map | string;
|
|
|
10
10
|
export interface PremiumBadgeProps {
|
|
11
11
|
level: PremiumBadgeLevel;
|
|
12
12
|
className?: string;
|
|
13
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
13
14
|
}
|
|
14
|
-
export declare
|
|
15
|
+
export declare function PremiumBadge(props: PremiumBadgeProps): import("react/jsx-runtime").JSX.Element | null;
|
|
15
16
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import m from "
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
root: s
|
|
2
|
+
import { Title as m } from "../Title/Title.js";
|
|
3
|
+
import { clsx as a } from "../../utils/clsx.js";
|
|
4
|
+
const g = "cfxui__PremiumBadge__root__7477e", s = {
|
|
5
|
+
root: g
|
|
7
6
|
}, t = {
|
|
8
7
|
ag: {
|
|
9
8
|
// https://github.com/microsoft/fluentui-emoji/tree/main/assets/Optical%20disk
|
|
@@ -23,16 +22,18 @@ const s = "cfxui__PremiumBadge__root__7477e", c = {
|
|
|
23
22
|
imgSrc: new URL("data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20style='filter:%20drop-shadow(0%200%201px%20rgba(0,0,0,.75))'%3e%3cpath%20d='M28.9788%2017.0028L25.8711%2017.2166C25.0368%2017.2777%2024.6927%2018.2958%2025.3288%2018.8252L27.7169%2020.78C28.2384%2021.2076%2029.0309%2020.9836%2029.2395%2020.3524L29.9486%2018.2246C30.1676%2017.5933%2029.6566%2016.9519%2028.9788%2017.0028Z'%20fill='%23FCD53F'/%3e%3cpath%20d='M21.7494%202.69148L21.0294%205.59149C20.8294%206.37149%2021.6894%207.00148%2022.3694%206.57148L24.9094%204.99149C25.4594%204.65149%2025.4894%203.85148%2024.9594%203.47148L23.1794%202.18148C22.6494%201.79148%2021.9094%202.06148%2021.7494%202.69148Z'%20fill='%23FCD53F'/%3e%3cpath%20d='M6.43056%204.99468L8.96056%206.57468C9.64056%207.00468%2010.5005%206.38468%2010.3105%205.59468L9.59056%202.69467C9.43056%202.06467%208.69055%201.79468%208.16055%202.17468L6.38055%203.46468C5.85055%203.86468%205.88056%204.65468%206.43056%204.99468Z'%20fill='%23FCD53F'/%3e%3cpath%20d='M4.18524%2020.7128L6.47524%2018.7928C7.09524%2018.2728%206.76524%2017.2628%205.96524%2017.2128L2.98524%2017.0028C2.33524%2016.9528%201.84524%2017.5828%202.04524%2018.2028L2.72524%2020.2928C2.92524%2020.9128%203.69524%2021.1328%204.18524%2020.7128Z'%20fill='%23FCD53F'/%3e%3cpath%20d='M17.7952%2028.0047L16.6752%2025.2347C16.3752%2024.4847%2015.3152%2024.4847%2015.0152%2025.2347L13.8952%2028.0047C13.6552%2028.6047%2014.0952%2029.2647%2014.7452%2029.2647H16.9452C17.5952%2029.2547%2018.0352%2028.6047%2017.7952%2028.0047Z'%20fill='%23FCD53F'/%3e%3cpath%20d='M17.5645%203.3242L19.2913%207.04387C19.617%207.73821%2020.2584%208.22424%2021.0083%208.33335L25.0639%208.95825C26.8993%209.23599%2027.6393%2011.4876%2026.3565%2012.8168L23.268%2016.0008C22.7647%2016.5166%2022.5378%2017.2506%2022.6562%2017.9648L23.3667%2022.3391C23.6726%2024.2238%2021.6793%2025.6323%2020.0117%2024.7098L16.6074%2022.8153C15.9166%2022.4284%2015.0878%2022.4284%2014.397%2022.8153L10.9927%2024.7098C9.32509%2025.6323%207.33183%2024.2238%207.63773%2022.3391L8.34819%2017.9648C8.4666%2017.2506%208.23965%2016.5166%207.7364%2016.0008L4.64785%2012.8168C3.35519%2011.4777%204.10513%209.23599%205.9405%208.95825L9.99608%208.33335C10.746%208.21432%2011.3874%207.72829%2011.713%207.04387L13.4399%203.3242C14.2589%201.5586%2016.7455%201.5586%2017.5645%203.3242Z'%20fill='%23FCD53F'/%3e%3c/svg%3e", import.meta.url).toString(),
|
|
24
23
|
title: "Element Club Platinum"
|
|
25
24
|
}
|
|
26
|
-
}
|
|
25
|
+
};
|
|
26
|
+
function p(l) {
|
|
27
27
|
const {
|
|
28
28
|
level: C,
|
|
29
|
-
className:
|
|
29
|
+
className: i,
|
|
30
|
+
ref: r
|
|
30
31
|
} = l;
|
|
31
32
|
if (!t[C])
|
|
32
33
|
return null;
|
|
33
|
-
const o =
|
|
34
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
35
|
-
}
|
|
34
|
+
const o = a(s.root, i);
|
|
35
|
+
return /* @__PURE__ */ e("div", { ref: r, className: o, children: /* @__PURE__ */ e(m, { title: t[C].title, children: /* @__PURE__ */ e("img", { src: t[C].imgSrc, alt: t[C].title }) }) });
|
|
36
|
+
}
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
p as PremiumBadge
|
|
38
39
|
};
|
|
@@ -16,4 +16,4 @@ export interface SelectProps<T = string> {
|
|
|
16
16
|
size?: ResponsiveValueType<InputSize>;
|
|
17
17
|
fullWidth?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export declare
|
|
19
|
+
export declare function Select(props: SelectProps): import("react/jsx-runtime").JSX.Element;
|