@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
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { u as T, a as A } from "./index-BHuChyf5.js";
|
|
3
|
+
function E(n, e) {
|
|
4
|
+
return a.useReducer((r, t) => e[r][t] ?? r, n);
|
|
5
|
+
}
|
|
6
|
+
var R = (n) => {
|
|
7
|
+
const { present: e, children: r } = n, t = P(e), o = typeof r == "function" ? r({ present: t.isPresent }) : a.Children.only(r), c = T(t.ref, v(o));
|
|
8
|
+
return typeof r == "function" || t.isPresent ? a.cloneElement(o, { ref: c }) : null;
|
|
9
|
+
};
|
|
10
|
+
R.displayName = "Presence";
|
|
11
|
+
function P(n) {
|
|
12
|
+
const [e, r] = a.useState(), t = a.useRef(null), o = a.useRef(n), c = a.useRef("none"), p = n ? "mounted" : "unmounted", [N, s] = E(p, {
|
|
13
|
+
mounted: {
|
|
14
|
+
UNMOUNT: "unmounted",
|
|
15
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
16
|
+
},
|
|
17
|
+
unmountSuspended: {
|
|
18
|
+
MOUNT: "mounted",
|
|
19
|
+
ANIMATION_END: "unmounted"
|
|
20
|
+
},
|
|
21
|
+
unmounted: {
|
|
22
|
+
MOUNT: "mounted"
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
return a.useEffect(() => {
|
|
26
|
+
const i = l(t.current);
|
|
27
|
+
c.current = N === "mounted" ? i : "none";
|
|
28
|
+
}, [N]), A(() => {
|
|
29
|
+
const i = t.current, m = o.current;
|
|
30
|
+
if (m !== n) {
|
|
31
|
+
const f = c.current, u = l(i);
|
|
32
|
+
n ? s("MOUNT") : u === "none" || (i == null ? void 0 : i.display) === "none" ? s("UNMOUNT") : s(m && f !== u ? "ANIMATION_OUT" : "UNMOUNT"), o.current = n;
|
|
33
|
+
}
|
|
34
|
+
}, [n, s]), A(() => {
|
|
35
|
+
if (e) {
|
|
36
|
+
let i;
|
|
37
|
+
const m = e.ownerDocument.defaultView ?? window, d = (u) => {
|
|
38
|
+
const g = l(t.current).includes(u.animationName);
|
|
39
|
+
if (u.target === e && g && (s("ANIMATION_END"), !o.current)) {
|
|
40
|
+
const O = e.style.animationFillMode;
|
|
41
|
+
e.style.animationFillMode = "forwards", i = m.setTimeout(() => {
|
|
42
|
+
e.style.animationFillMode === "forwards" && (e.style.animationFillMode = O);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}, f = (u) => {
|
|
46
|
+
u.target === e && (c.current = l(t.current));
|
|
47
|
+
};
|
|
48
|
+
return e.addEventListener("animationstart", f), e.addEventListener("animationcancel", d), e.addEventListener("animationend", d), () => {
|
|
49
|
+
m.clearTimeout(i), e.removeEventListener("animationstart", f), e.removeEventListener("animationcancel", d), e.removeEventListener("animationend", d);
|
|
50
|
+
};
|
|
51
|
+
} else
|
|
52
|
+
s("ANIMATION_END");
|
|
53
|
+
}, [e, s]), {
|
|
54
|
+
isPresent: ["mounted", "unmountSuspended"].includes(N),
|
|
55
|
+
ref: a.useCallback((i) => {
|
|
56
|
+
t.current = i ? getComputedStyle(i) : null, r(i);
|
|
57
|
+
}, [])
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function l(n) {
|
|
61
|
+
return (n == null ? void 0 : n.animationName) || "none";
|
|
62
|
+
}
|
|
63
|
+
function v(n) {
|
|
64
|
+
var t, o;
|
|
65
|
+
let e = (t = Object.getOwnPropertyDescriptor(n.props, "ref")) == null ? void 0 : t.get, r = e && "isReactWarning" in e && e.isReactWarning;
|
|
66
|
+
return r ? n.ref : (e = (o = Object.getOwnPropertyDescriptor(n, "ref")) == null ? void 0 : o.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? n.props.ref : n.props.ref || n.ref);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
R as P
|
|
70
|
+
};
|
package/dist/main.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type { OutletPosition, UseClipboardProps, } from './utils/hooks';
|
|
|
7
7
|
export { noop, returnTrue, returnFalse, identity, invoke, } from './utils/functional';
|
|
8
8
|
export { isExternalUrl, matchLinks, matchLinkNodes, defaultLinkReplacerx, defaultLinkReplacer, linkifyx, linkify, Linkify, } from './utils/links';
|
|
9
9
|
export type { ILinkSubstitute, ILinkMatch, LinkifyProps, } from './utils/links';
|
|
10
|
-
export { clamp01, clamp, } from './utils/math';
|
|
10
|
+
export { clamp01, clamp, minmax, } from './utils/math';
|
|
11
11
|
export { unicodeCharAt, splitByIndices, replaceRange, normalizeSlashes, isTrueString, isFalseString, } from './utils/string';
|
|
12
12
|
export { debounce, throttle, } from './utils/execution';
|
|
13
13
|
export type { SetTimeoutReturn } from './utils/execution';
|
|
@@ -64,12 +64,12 @@ export { Interactive } from './components/Interactive';
|
|
|
64
64
|
export type { InteractiveProps } from './components/Interactive';
|
|
65
65
|
export { Island, IslandCorner } from './components/Island';
|
|
66
66
|
export type { IslandProps } from './components/Island';
|
|
67
|
-
export { Box,
|
|
67
|
+
export { Box, stringPropFormater } from './components/Layout/Box';
|
|
68
68
|
export type { BoxProps } from './components/Layout/Box';
|
|
69
69
|
export { Center } from './components/Layout/Center';
|
|
70
70
|
export type { CenterProps } from './components/Layout/Center';
|
|
71
71
|
export { Flex, FlexRestricter, FlexAlignItemsEnum, FlexDirectionEnum, FlexJustifyContentEnum, FlexWrapEnum, } from './components/Layout/Flex';
|
|
72
|
-
export type {
|
|
72
|
+
export type { FlexProps, FlexRestricterProps, FlexAlignItemsType, FlexDirectionType, FlexJustifyContentType, FlexWrapType, } from './components/Layout/Flex';
|
|
73
73
|
export { Pad } from './components/Layout/Pad';
|
|
74
74
|
export type { PadProps } from './components/Layout/Pad';
|
|
75
75
|
export { Page } from './components/Layout/Page';
|
|
@@ -112,8 +112,10 @@ export { ToggleGroup } from './components/ToggleGroup';
|
|
|
112
112
|
export type { ToggleGroupOption, ToggleGroupProps } from './components/ToggleGroup';
|
|
113
113
|
export { Tabular } from './components/Tabular';
|
|
114
114
|
export type { TabularProps, TabularItem, TabularRootProps, } from './components/Tabular';
|
|
115
|
-
export {
|
|
116
|
-
export type {
|
|
115
|
+
export { DataTable, DataTableHeaderItem, DataTableRow, } from './components/DataTable';
|
|
116
|
+
export type { DataTableHeaderType, DataTableProps, DataTableRowType, DataTableContainerType, DataTableHeaderItemProps, DataTableRowProps, } from './components/DataTable';
|
|
117
|
+
export { Table } from './components/Table';
|
|
118
|
+
export type { TableRootProps, TableBodyProps, TableHeaderProps, TableCellProps, TableRowProps, } from './components/Table';
|
|
117
119
|
export { TextSizeEnum, Text, TextBlock, getTextOpacity, DEFAULT_TEXT_COLOR, TEXT_OPACITY_MAP, textSizeResponsiveValueFormatter, } from './components/Text';
|
|
118
120
|
export type { TextSize, TextWeight, TextOpacity, TextAs, TextLetterSpacing, TextProps, TextColorProps, TextFamaly, } from './components/Text';
|
|
119
121
|
export { Textarea } from './components/Textarea';
|
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mergeRefs as e } from "./utils/mergeRefs.js";
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { getValue as
|
|
2
|
+
import { clsx as a } from "./utils/clsx.js";
|
|
3
|
+
import { getValue as f } from "./utils/getValue.js";
|
|
4
4
|
import { usePopoverController as x } from "./utils/hooks/usePopoverController.js";
|
|
5
5
|
import { useInstance as l } from "./utils/hooks/useInstance.js";
|
|
6
6
|
import { useDynamicRef as s } from "./utils/hooks/useDynamicRef.js";
|
|
@@ -9,213 +9,215 @@ import { useKeyboardClose as T } from "./utils/hooks/useKeyboardClose.js";
|
|
|
9
9
|
import { useWindowResize as C } from "./utils/hooks/useWindowResize.js";
|
|
10
10
|
import { useOutlet as E } from "./utils/hooks/useOutlet.js";
|
|
11
11
|
import { CLIPBOARD_TITLE_APPEARANCE as L, useClipboardComponent as S } from "./utils/hooks/useClipboardComponent.js";
|
|
12
|
-
import { identity as R, invoke as k, noop as A, returnFalse as
|
|
13
|
-
import { Linkify as
|
|
14
|
-
import { clamp as N, clamp01 as G } from "./utils/math.js";
|
|
15
|
-
import { isFalseString as
|
|
16
|
-
import { debounce as
|
|
17
|
-
import { getColor as
|
|
18
|
-
import { ui as
|
|
19
|
-
import { BorderRadiusEnum as
|
|
20
|
-
import { isInEnum as
|
|
21
|
-
import { default as
|
|
22
|
-
import { Accordion as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import {
|
|
12
|
+
import { identity as R, invoke as k, noop as A, returnFalse as D, returnTrue as O } from "./utils/functional.js";
|
|
13
|
+
import { Linkify as b, defaultLinkReplacer as F, defaultLinkReplacerx as _, isExternalUrl as v, linkify as h, linkifyx as U, matchLinkNodes as z, matchLinks as w } from "./utils/links.js";
|
|
14
|
+
import { clamp as N, clamp01 as G, minmax as V } from "./utils/math.js";
|
|
15
|
+
import { isFalseString as Y, isTrueString as H, normalizeSlashes as W, replaceRange as X, splitByIndices as J, unicodeCharAt as Q } from "./utils/string.js";
|
|
16
|
+
import { debounce as j, throttle as q } from "./utils/execution.js";
|
|
17
|
+
import { getColor as oo } from "./utils/color.js";
|
|
18
|
+
import { ui as eo } from "./utils/ui/ui.js";
|
|
19
|
+
import { BorderRadiusEnum as ao, ColorEnum as mo, MediaQueryEnum as fo, OffsetEnum as po, TextSizeEnum as xo, ZIndexEnum as no } from "./utils/ui/ui.types.js";
|
|
20
|
+
import { isInEnum as uo } from "./utils/enum.js";
|
|
21
|
+
import { default as io } from "./components/IconButton/IconButton.js";
|
|
22
|
+
import { Accordion as To, AccordionContent as Io, AccordionHeader as Co, AccordionItem as go, AccordionTrigger as Eo } from "./components/Accordion/Accordion.js";
|
|
23
|
+
import { default as Lo } from "./components/ClipboardButton/ClipboardButton.js";
|
|
24
|
+
import { default as yo } from "./components/Checkbox/Checkbox.js";
|
|
25
|
+
import { default as ko, ButtonContent as Ao, getButtonClassName as Do } from "./components/Button/Button.js";
|
|
26
26
|
import { ButtonBar as Po } from "./components/Button/ButtonBar.js";
|
|
27
|
-
import { LinkButton as
|
|
28
|
-
import { BurgerMenuButton as
|
|
29
|
-
import { BurgerMenu as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { Avatar as
|
|
33
|
-
import { BACKDROP_OUTLET_ID as
|
|
34
|
-
import { Badge as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { Dot as
|
|
27
|
+
import { LinkButton as Fo } from "./components/Button/LinkButton.js";
|
|
28
|
+
import { BurgerMenuButton as vo } from "./components/BurgerMenu/BurgerMenuButton.js";
|
|
29
|
+
import { BurgerMenu as Uo } from "./components/BurgerMenu/BurgerMenu.js";
|
|
30
|
+
import { default as wo, getLinkClassName as Mo, getLinkStyles as No } from "./components/Link/Link.js";
|
|
31
|
+
import { default as Vo } from "./components/Link/ButtonLink.js";
|
|
32
|
+
import { Avatar as Yo } from "./components/Avatar/Avatar.js";
|
|
33
|
+
import { BACKDROP_OUTLET_ID as Wo, default as Xo } from "./components/BackdropPortal/BackdropPortal.js";
|
|
34
|
+
import { Badge as Qo } from "./components/Badge/Badge.js";
|
|
35
|
+
import { default as jo } from "./components/ControlBox/ControlBox.js";
|
|
36
|
+
import { default as $o } from "./components/CountryFlag/CountryFlag.js";
|
|
37
|
+
import { default as rr } from "./components/Decorate/Decorate.js";
|
|
38
|
+
import { Dot as tr } from "./components/Dot/Dot.js";
|
|
39
39
|
import { FLYOUT_OUTLET_ID as mr, Flyout as fr } from "./components/Flyout/Flyout.js";
|
|
40
|
-
import { Logos as
|
|
41
|
-
import { I as
|
|
42
|
-
import { I as
|
|
43
|
-
import { Icon as
|
|
44
|
-
import { IconBig as
|
|
45
|
-
import { Indicator as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { Interactive as
|
|
50
|
-
import { Island as
|
|
51
|
-
import {
|
|
52
|
-
import { Center as
|
|
53
|
-
import {
|
|
54
|
-
import { FlexAlignItemsEnum as
|
|
55
|
-
import { FlexRestricter as
|
|
56
|
-
import { Pad as
|
|
57
|
-
import { Page as
|
|
58
|
-
import { R as
|
|
59
|
-
import { Scrollable as
|
|
60
|
-
import { VirtualScrollable as
|
|
61
|
-
import { Loaf as
|
|
62
|
-
import { Modal as
|
|
40
|
+
import { Logos as xr } from "./components/Logos/index.js";
|
|
41
|
+
import { I as lr } from "./cfxIcons-B9nzO6TW.js";
|
|
42
|
+
import { I as sr } from "./cfxIconsBig-BLJjMT-Y.js";
|
|
43
|
+
import { Icon as dr } from "./components/Icon/Icon.js";
|
|
44
|
+
import { IconBig as Tr } from "./components/IconBig/IconBig.js";
|
|
45
|
+
import { Indicator as Cr } from "./components/Indicator/Indicator.js";
|
|
46
|
+
import { default as Er } from "./components/InfoPanel/InfoPanel.js";
|
|
47
|
+
import { default as Lr } from "./components/Input/Input.js";
|
|
48
|
+
import { default as yr } from "./components/Input/RichInput.js";
|
|
49
|
+
import { Interactive as kr } from "./components/Interactive/Interactive.js";
|
|
50
|
+
import { Island as Dr, IslandCorner as Or } from "./components/Island/Island.js";
|
|
51
|
+
import { default as br, stringPropFormater as Fr } from "./components/Layout/Box/Box.js";
|
|
52
|
+
import { Center as vr } from "./components/Layout/Center/Center.js";
|
|
53
|
+
import { default as Ur } from "./components/Layout/Flex/Flex.js";
|
|
54
|
+
import { FlexAlignItemsEnum as wr, FlexDirectionEnum as Mr, FlexJustifyContentEnum as Nr, FlexWrapEnum as Gr } from "./components/Layout/Flex/Flex.types.js";
|
|
55
|
+
import { FlexRestricter as Kr } from "./components/Layout/Flex/FlexRestricter.js";
|
|
56
|
+
import { Pad as Hr } from "./components/Layout/Pad/Pad.js";
|
|
57
|
+
import { Page as Xr } from "./components/Layout/Page/Page.js";
|
|
58
|
+
import { R as Qr } from "./Rail-DcVowhML.js";
|
|
59
|
+
import { Scrollable as jr } from "./components/Layout/Scrollable/Scrollable.js";
|
|
60
|
+
import { VirtualScrollable as $r } from "./components/Layout/Scrollable/VirtualScrollable.js";
|
|
61
|
+
import { Loaf as re } from "./components/Loaf/Loaf.js";
|
|
62
|
+
import { Modal as te } from "./components/Modal/Modal.js";
|
|
63
63
|
import { NavList as me } from "./components/NavList/NavList.js";
|
|
64
|
-
import { OVERLAY_OUTLET_ID as pe, Overlay as
|
|
65
|
-
import { Popover as
|
|
66
|
-
import { PremiumBadge as
|
|
67
|
-
import { Prose as
|
|
68
|
-
import { Radio as
|
|
69
|
-
import { Select as
|
|
70
|
-
import { DropdownSelect as
|
|
71
|
-
import { Separator as
|
|
72
|
-
import { Shroud as
|
|
73
|
-
import { Slider as
|
|
74
|
-
import { Spacer as
|
|
64
|
+
import { OVERLAY_OUTLET_ID as pe, Overlay as xe } from "./components/Overlay/Overlay.js";
|
|
65
|
+
import { Popover as le } from "./components/Popover/Popover.js";
|
|
66
|
+
import { PremiumBadge as se } from "./components/PremiumBadge/PremiumBadge.js";
|
|
67
|
+
import { Prose as de } from "./components/Prose/Prose.js";
|
|
68
|
+
import { Radio as Te } from "./components/Radio/Radio.js";
|
|
69
|
+
import { Select as Ce } from "./components/Select/Select.js";
|
|
70
|
+
import { DropdownSelect as Ee } from "./components/DropdownSelect/DropdownSelect.js";
|
|
71
|
+
import { Separator as Le } from "./components/Separator/Separator.js";
|
|
72
|
+
import { Shroud as ye } from "./components/Shroud/Shroud.js";
|
|
73
|
+
import { Slider as ke } from "./components/Slider/Slider.js";
|
|
74
|
+
import { Spacer as De } from "./components/Spacer/Spacer.js";
|
|
75
75
|
import { Style as Pe, useContextualStyle as be } from "./components/Style/Style.js";
|
|
76
|
-
import { default as
|
|
77
|
-
import { ToggleGroup as
|
|
78
|
-
import { Tabular as
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
76
|
+
import { default as _e } from "./components/Switch/Switch.js";
|
|
77
|
+
import { ToggleGroup as he } from "./components/ToggleGroup/ToggleGroup.js";
|
|
78
|
+
import { Tabular as ze } from "./components/Tabular/Tabular.js";
|
|
79
|
+
import { DataTable as Me, DataTableHeaderItem as Ne, DataTableRow as Ge } from "./components/DataTable/DataTable.js";
|
|
80
|
+
import { Table as Ke } from "./components/Table/index.js";
|
|
81
|
+
import { DEFAULT_TEXT_COLOR as He, TEXT_OPACITY_MAP as We, Text as Xe, TextBlock as Je, getTextOpacity as Qe, textSizeResponsiveValueFormatter as Ze } from "./components/Text/Text.js";
|
|
82
|
+
import { Textarea as qe } from "./components/Textarea/Textarea.js";
|
|
83
|
+
import { TITLE_OUTLET_ID as ot, Title as rt, titleGetCoords as et, titleGetCssStyle as tt } from "./components/Title/Title.js";
|
|
84
|
+
import { default as mt } from "./components/InputDropzone/InputDropzone.js";
|
|
85
|
+
import { default as pt } from "./components/InputDropzone/ItemPreview.js";
|
|
86
|
+
import { default as nt } from "./components/Skeleton/Skeleton.js";
|
|
87
|
+
import { OnScreenSensor as ut } from "./components/OnScreenSensor.js";
|
|
88
|
+
import { Symbols as it } from "./components/Symbols.js";
|
|
88
89
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
90
|
+
To as Accordion,
|
|
91
|
+
Io as AccordionContent,
|
|
92
|
+
Co as AccordionHeader,
|
|
93
|
+
go as AccordionItem,
|
|
94
|
+
Eo as AccordionTrigger,
|
|
95
|
+
Yo as Avatar,
|
|
96
|
+
Wo as BACKDROP_OUTLET_ID,
|
|
97
|
+
Xo as BackdropPortal,
|
|
98
|
+
Qo as Badge,
|
|
99
|
+
ao as BorderRadiusEnum,
|
|
99
100
|
br as Box,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
Uo as BurgerMenu,
|
|
102
|
+
vo as BurgerMenuButton,
|
|
103
|
+
ko as Button,
|
|
103
104
|
Po as ButtonBar,
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
Ao as ButtonContent,
|
|
106
|
+
Vo as ButtonLink,
|
|
106
107
|
L as CLIPBOARD_TITLE_APPEARANCE,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
vr as Center,
|
|
109
|
+
yo as Checkbox,
|
|
110
|
+
Lo as ClipboardButton,
|
|
110
111
|
mo as ColorEnum,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
jo as ControlBox,
|
|
113
|
+
$o as CountryFlag,
|
|
114
|
+
He as DEFAULT_TEXT_COLOR,
|
|
115
|
+
Me as DataTable,
|
|
116
|
+
Ne as DataTableHeaderItem,
|
|
117
|
+
Ge as DataTableRow,
|
|
118
|
+
rr as Decorate,
|
|
119
|
+
tr as Dot,
|
|
120
|
+
Ee as DropdownSelect,
|
|
121
|
+
pt as DropzoneItemPreview,
|
|
118
122
|
mr as FLYOUT_OUTLET_ID,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
Ur as Flex,
|
|
124
|
+
wr as FlexAlignItemsEnum,
|
|
125
|
+
Mr as FlexDirectionEnum,
|
|
126
|
+
Nr as FlexJustifyContentEnum,
|
|
127
|
+
Kr as FlexRestricter,
|
|
128
|
+
Gr as FlexWrapEnum,
|
|
125
129
|
fr as Flyout,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
130
|
+
dr as Icon,
|
|
131
|
+
Tr as IconBig,
|
|
132
|
+
io as IconButton,
|
|
133
|
+
lr as Icons,
|
|
134
|
+
sr as IconsBig,
|
|
135
|
+
Cr as Indicator,
|
|
136
|
+
Er as InfoPanel,
|
|
137
|
+
Lr as Input,
|
|
138
|
+
mt as InputDropzone,
|
|
139
|
+
kr as Interactive,
|
|
140
|
+
Dr as Island,
|
|
137
141
|
Or as IslandCorner,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
142
|
+
wo as Link,
|
|
143
|
+
Fo as LinkButton,
|
|
144
|
+
b as Linkify,
|
|
145
|
+
re as Loaf,
|
|
146
|
+
xr as Logos,
|
|
143
147
|
fo as MediaQueryEnum,
|
|
144
|
-
|
|
148
|
+
te as Modal,
|
|
145
149
|
me as NavList,
|
|
146
150
|
pe as OVERLAY_OUTLET_ID,
|
|
147
151
|
po as OffsetEnum,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
152
|
+
ut as OnScreenSensor,
|
|
153
|
+
xe as Overlay,
|
|
154
|
+
Hr as Pad,
|
|
155
|
+
Xr as Page,
|
|
156
|
+
le as Popover,
|
|
157
|
+
se as PremiumBadge,
|
|
158
|
+
de as Prose,
|
|
159
|
+
Te as Radio,
|
|
160
|
+
Qr as Rail,
|
|
161
|
+
yr as RichInput,
|
|
162
|
+
jr as Scrollable,
|
|
163
|
+
Ce as Select,
|
|
164
|
+
Le as Separator,
|
|
165
|
+
ye as Shroud,
|
|
166
|
+
nt as Skeleton,
|
|
167
|
+
ke as Slider,
|
|
168
|
+
De as Spacer,
|
|
165
169
|
Pe as Style,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
ve as ToggleGroup,
|
|
181
|
-
qr as VirtualScrollable,
|
|
182
|
-
xo as ZIndexEnum,
|
|
170
|
+
_e as Switch,
|
|
171
|
+
it as Symbols,
|
|
172
|
+
We as TEXT_OPACITY_MAP,
|
|
173
|
+
ot as TITLE_OUTLET_ID,
|
|
174
|
+
Ke as Table,
|
|
175
|
+
ze as Tabular,
|
|
176
|
+
Xe as Text,
|
|
177
|
+
Je as TextBlock,
|
|
178
|
+
xo as TextSizeEnum,
|
|
179
|
+
qe as Textarea,
|
|
180
|
+
rt as Title,
|
|
181
|
+
he as ToggleGroup,
|
|
182
|
+
$r as VirtualScrollable,
|
|
183
|
+
no as ZIndexEnum,
|
|
183
184
|
N as clamp,
|
|
184
185
|
G as clamp01,
|
|
185
|
-
|
|
186
|
-
|
|
186
|
+
a as clsx,
|
|
187
|
+
j as debounce,
|
|
187
188
|
F as defaultLinkReplacer,
|
|
188
189
|
_ as defaultLinkReplacerx,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
p as getValue,
|
|
190
|
+
Do as getButtonClassName,
|
|
191
|
+
oo as getColor,
|
|
192
|
+
Mo as getLinkClassName,
|
|
193
|
+
No as getLinkStyles,
|
|
194
|
+
Qe as getTextOpacity,
|
|
195
|
+
f as getValue,
|
|
196
196
|
R as identity,
|
|
197
197
|
k as invoke,
|
|
198
198
|
v as isExternalUrl,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
Y as isFalseString,
|
|
200
|
+
uo as isInEnum,
|
|
201
|
+
H as isTrueString,
|
|
202
202
|
h as linkify,
|
|
203
203
|
U as linkifyx,
|
|
204
204
|
z as matchLinkNodes,
|
|
205
205
|
w as matchLinks,
|
|
206
206
|
e as mergeRefs,
|
|
207
|
+
V as minmax,
|
|
207
208
|
A as noop,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
209
|
+
W as normalizeSlashes,
|
|
210
|
+
X as replaceRange,
|
|
211
|
+
D as returnFalse,
|
|
212
|
+
O as returnTrue,
|
|
213
|
+
J as splitByIndices,
|
|
214
|
+
Fr as stringPropFormater,
|
|
215
|
+
Ze as textSizeResponsiveValueFormatter,
|
|
216
|
+
q as throttle,
|
|
217
|
+
et as titleGetCoords,
|
|
218
|
+
tt as titleGetCssStyle,
|
|
219
|
+
eo as ui,
|
|
220
|
+
Q as unicodeCharAt,
|
|
219
221
|
S as useClipboardComponent,
|
|
220
222
|
be as useContextualStyle,
|
|
221
223
|
s as useDynamicRef,
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
var i = function(e, n) {
|
|
2
|
+
return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, t) {
|
|
3
|
+
r.__proto__ = t;
|
|
4
|
+
} || function(r, t) {
|
|
5
|
+
for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (r[o] = t[o]);
|
|
6
|
+
}, i(e, n);
|
|
7
|
+
};
|
|
8
|
+
function _(e, n) {
|
|
9
|
+
if (typeof n != "function" && n !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
|
|
11
|
+
i(e, n);
|
|
12
|
+
function r() {
|
|
13
|
+
this.constructor = e;
|
|
14
|
+
}
|
|
15
|
+
e.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
|
|
16
|
+
}
|
|
17
|
+
var s = function() {
|
|
18
|
+
return s = Object.assign || function(n) {
|
|
19
|
+
for (var r, t = 1, o = arguments.length; t < o; t++) {
|
|
20
|
+
r = arguments[t];
|
|
21
|
+
for (var c in r) Object.prototype.hasOwnProperty.call(r, c) && (n[c] = r[c]);
|
|
22
|
+
}
|
|
23
|
+
return n;
|
|
24
|
+
}, s.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
function O(e, n) {
|
|
27
|
+
var r = {};
|
|
28
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
|
|
29
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
30
|
+
for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
|
|
31
|
+
n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (r[t[o]] = e[t[o]]);
|
|
32
|
+
return r;
|
|
33
|
+
}
|
|
34
|
+
function h(e, n, r, t) {
|
|
35
|
+
function o(c) {
|
|
36
|
+
return c instanceof r ? c : new r(function(u) {
|
|
37
|
+
u(c);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return new (r || (r = Promise))(function(c, u) {
|
|
41
|
+
function l(a) {
|
|
42
|
+
try {
|
|
43
|
+
p(t.next(a));
|
|
44
|
+
} catch (f) {
|
|
45
|
+
u(f);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function y(a) {
|
|
49
|
+
try {
|
|
50
|
+
p(t.throw(a));
|
|
51
|
+
} catch (f) {
|
|
52
|
+
u(f);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function p(a) {
|
|
56
|
+
a.done ? c(a.value) : o(a.value).then(l, y);
|
|
57
|
+
}
|
|
58
|
+
p((t = t.apply(e, n || [])).next());
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function d(e, n, r) {
|
|
62
|
+
if (r || arguments.length === 2) for (var t = 0, o = n.length, c; t < o; t++)
|
|
63
|
+
(c || !(t in n)) && (c || (c = Array.prototype.slice.call(n, 0, t)), c[t] = n[t]);
|
|
64
|
+
return e.concat(c || Array.prototype.slice.call(n));
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
s as _,
|
|
68
|
+
h as a,
|
|
69
|
+
_ as b,
|
|
70
|
+
O as c,
|
|
71
|
+
d
|
|
72
|
+
};
|
|
@@ -11,5 +11,5 @@ export declare function useClipboardComponent(props: UseClipboardProps): {
|
|
|
11
11
|
handleClick: () => void;
|
|
12
12
|
title: string | undefined;
|
|
13
13
|
copied: boolean;
|
|
14
|
-
clipboardRef: React.
|
|
14
|
+
clipboardRef: React.RefObject<Clipboard | null>;
|
|
15
15
|
};
|
|
@@ -2,7 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
|
|
3
3
|
export declare function usePopoverController(): {
|
|
4
4
|
active: boolean;
|
|
5
|
-
wrapperRef: React.RefObject<HTMLDivElement>;
|
|
5
|
+
wrapperRef: React.RefObject<HTMLDivElement | null>;
|
|
6
6
|
handleMouseEnter: () => void;
|
|
7
7
|
handleMouseLeave: () => void;
|
|
8
8
|
handleMouseDown: () => void;
|
package/dist/utils/links.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as le, Fragment as Be } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { b as z, _ as C } from "../tslib.es6-CtHwNPxX.js";
|
|
3
3
|
import De from "react";
|
|
4
4
|
import { splitByIndices as Ee } from "./string.js";
|
|
5
5
|
var ke = "3.16.2";
|