@cfx-dev/ui-components 4.2.24 → 4.3.1
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 +21 -2
- package/dist/components/Table/index.js +18 -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 +73 -70
- 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
|
@@ -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, TableIconButton, } 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,29 +1,29 @@
|
|
|
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 m } 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";
|
|
7
7
|
import { useGlobalKeyboardEvent as d } from "./utils/hooks/useGlobalKeyboardEvent.js";
|
|
8
8
|
import { useKeyboardClose as T } from "./utils/hooks/useKeyboardClose.js";
|
|
9
9
|
import { useWindowResize as C } from "./utils/hooks/useWindowResize.js";
|
|
10
|
-
import { useOutlet as
|
|
10
|
+
import { useOutlet as B } 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
|
|
12
|
+
import { identity as R, invoke as k, noop as A, returnFalse as D, returnTrue as b } from "./utils/functional.js";
|
|
13
|
+
import { Linkify as P, 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
14
|
import { clamp as N, clamp01 as G, minmax as V } from "./utils/math.js";
|
|
15
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
16
|
import { debounce as j, throttle as q } from "./utils/execution.js";
|
|
17
17
|
import { getColor as oo } from "./utils/color.js";
|
|
18
18
|
import { ui as eo } from "./utils/ui/ui.js";
|
|
19
|
-
import { BorderRadiusEnum as
|
|
19
|
+
import { BorderRadiusEnum as ao, ColorEnum as fo, MediaQueryEnum as mo, OffsetEnum as po, TextSizeEnum as xo, ZIndexEnum as no } from "./utils/ui/ui.types.js";
|
|
20
20
|
import { isInEnum as uo } from "./utils/enum.js";
|
|
21
21
|
import { default as io } from "./components/IconButton/IconButton.js";
|
|
22
|
-
import { Accordion as To, AccordionContent as Io, AccordionHeader as Co, AccordionItem as
|
|
22
|
+
import { Accordion as To, AccordionContent as Io, AccordionHeader as Co, AccordionItem as go, AccordionTrigger as Bo } from "./components/Accordion/Accordion.js";
|
|
23
23
|
import { default as Lo } from "./components/ClipboardButton/ClipboardButton.js";
|
|
24
24
|
import { default as yo } from "./components/Checkbox/Checkbox.js";
|
|
25
|
-
import {
|
|
26
|
-
import { ButtonBar as
|
|
25
|
+
import { default as ko, ButtonContent as Ao, getButtonClassName as Do } from "./components/Button/Button.js";
|
|
26
|
+
import { ButtonBar as Oo } from "./components/Button/ButtonBar.js";
|
|
27
27
|
import { LinkButton as Fo } from "./components/Button/LinkButton.js";
|
|
28
28
|
import { BurgerMenuButton as vo } from "./components/BurgerMenu/BurgerMenuButton.js";
|
|
29
29
|
import { BurgerMenu as Uo } from "./components/BurgerMenu/BurgerMenu.js";
|
|
@@ -36,21 +36,21 @@ import { default as jo } from "./components/ControlBox/ControlBox.js";
|
|
|
36
36
|
import { default as $o } from "./components/CountryFlag/CountryFlag.js";
|
|
37
37
|
import { default as rr } from "./components/Decorate/Decorate.js";
|
|
38
38
|
import { Dot as tr } from "./components/Dot/Dot.js";
|
|
39
|
-
import { FLYOUT_OUTLET_ID as fr, Flyout as
|
|
39
|
+
import { FLYOUT_OUTLET_ID as fr, Flyout as mr } from "./components/Flyout/Flyout.js";
|
|
40
40
|
import { Logos as xr } from "./components/Logos/index.js";
|
|
41
|
-
import { I as lr } from "./cfxIcons-
|
|
41
|
+
import { I as lr } from "./cfxIcons-B9nzO6TW.js";
|
|
42
42
|
import { I as sr } from "./cfxIconsBig-BLJjMT-Y.js";
|
|
43
43
|
import { Icon as dr } from "./components/Icon/Icon.js";
|
|
44
44
|
import { IconBig as Tr } from "./components/IconBig/IconBig.js";
|
|
45
45
|
import { Indicator as Cr } from "./components/Indicator/Indicator.js";
|
|
46
|
-
import { default as
|
|
46
|
+
import { default as Br } from "./components/InfoPanel/InfoPanel.js";
|
|
47
47
|
import { default as Lr } from "./components/Input/Input.js";
|
|
48
48
|
import { default as yr } from "./components/Input/RichInput.js";
|
|
49
49
|
import { Interactive as kr } from "./components/Interactive/Interactive.js";
|
|
50
|
-
import { Island as
|
|
51
|
-
import {
|
|
50
|
+
import { Island as Dr, IslandCorner as br } from "./components/Island/Island.js";
|
|
51
|
+
import { default as Pr, stringPropFormater as Fr } from "./components/Layout/Box/Box.js";
|
|
52
52
|
import { Center as vr } from "./components/Layout/Center/Center.js";
|
|
53
|
-
import {
|
|
53
|
+
import { default as Ur } from "./components/Layout/Flex/Flex.js";
|
|
54
54
|
import { FlexAlignItemsEnum as wr, FlexDirectionEnum as Mr, FlexJustifyContentEnum as Nr, FlexWrapEnum as Gr } from "./components/Layout/Flex/Flex.types.js";
|
|
55
55
|
import { FlexRestricter as Kr } from "./components/Layout/Flex/FlexRestricter.js";
|
|
56
56
|
import { Pad as Hr } from "./components/Layout/Pad/Pad.js";
|
|
@@ -61,46 +61,48 @@ import { VirtualScrollable as $r } from "./components/Layout/Scrollable/VirtualS
|
|
|
61
61
|
import { Loaf as re } from "./components/Loaf/Loaf.js";
|
|
62
62
|
import { Modal as te } from "./components/Modal/Modal.js";
|
|
63
63
|
import { NavList as fe } from "./components/NavList/NavList.js";
|
|
64
|
-
import { OVERLAY_OUTLET_ID as
|
|
64
|
+
import { OVERLAY_OUTLET_ID as pe, Overlay as xe } from "./components/Overlay/Overlay.js";
|
|
65
65
|
import { Popover as le } from "./components/Popover/Popover.js";
|
|
66
66
|
import { PremiumBadge as se } from "./components/PremiumBadge/PremiumBadge.js";
|
|
67
67
|
import { Prose as de } from "./components/Prose/Prose.js";
|
|
68
68
|
import { Radio as Te } from "./components/Radio/Radio.js";
|
|
69
69
|
import { Select as Ce } from "./components/Select/Select.js";
|
|
70
|
-
import { DropdownSelect as
|
|
70
|
+
import { DropdownSelect as Be } from "./components/DropdownSelect/DropdownSelect.js";
|
|
71
71
|
import { Separator as Le } from "./components/Separator/Separator.js";
|
|
72
72
|
import { Shroud as ye } from "./components/Shroud/Shroud.js";
|
|
73
73
|
import { Slider as ke } from "./components/Slider/Slider.js";
|
|
74
|
-
import { Spacer as
|
|
75
|
-
import { Style as
|
|
74
|
+
import { Spacer as De } from "./components/Spacer/Spacer.js";
|
|
75
|
+
import { Style as Oe, useContextualStyle as Pe } from "./components/Style/Style.js";
|
|
76
76
|
import { default as _e } from "./components/Switch/Switch.js";
|
|
77
77
|
import { ToggleGroup as he } from "./components/ToggleGroup/ToggleGroup.js";
|
|
78
78
|
import { Tabular as ze } from "./components/Tabular/Tabular.js";
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
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 ft } from "./components/InputDropzone/InputDropzone.js";
|
|
84
85
|
import { default as pt } from "./components/InputDropzone/ItemPreview.js";
|
|
85
|
-
import { default as
|
|
86
|
-
import { OnScreenSensor as
|
|
87
|
-
import { Symbols as
|
|
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";
|
|
89
|
+
import { default as ct } from "./components/Table/TableIconButton.js";
|
|
88
90
|
export {
|
|
89
91
|
To as Accordion,
|
|
90
92
|
Io as AccordionContent,
|
|
91
93
|
Co as AccordionHeader,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
+
go as AccordionItem,
|
|
95
|
+
Bo as AccordionTrigger,
|
|
94
96
|
Yo as Avatar,
|
|
95
97
|
Wo as BACKDROP_OUTLET_ID,
|
|
96
98
|
Xo as BackdropPortal,
|
|
97
99
|
Qo as Badge,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
ao as BorderRadiusEnum,
|
|
101
|
+
Pr as Box,
|
|
100
102
|
Uo as BurgerMenu,
|
|
101
103
|
vo as BurgerMenuButton,
|
|
102
104
|
ko as Button,
|
|
103
|
-
|
|
105
|
+
Oo as ButtonBar,
|
|
104
106
|
Ao as ButtonContent,
|
|
105
107
|
Vo as ButtonLink,
|
|
106
108
|
L as CLIPBOARD_TITLE_APPEARANCE,
|
|
@@ -110,10 +112,13 @@ export {
|
|
|
110
112
|
fo as ColorEnum,
|
|
111
113
|
jo as ControlBox,
|
|
112
114
|
$o as CountryFlag,
|
|
113
|
-
|
|
115
|
+
He as DEFAULT_TEXT_COLOR,
|
|
116
|
+
Me as DataTable,
|
|
117
|
+
Ne as DataTableHeaderItem,
|
|
118
|
+
Ge as DataTableRow,
|
|
114
119
|
rr as Decorate,
|
|
115
120
|
tr as Dot,
|
|
116
|
-
|
|
121
|
+
Be as DropdownSelect,
|
|
117
122
|
pt as DropzoneItemPreview,
|
|
118
123
|
fr as FLYOUT_OUTLET_ID,
|
|
119
124
|
Ur as Flex,
|
|
@@ -122,30 +127,30 @@ export {
|
|
|
122
127
|
Nr as FlexJustifyContentEnum,
|
|
123
128
|
Kr as FlexRestricter,
|
|
124
129
|
Gr as FlexWrapEnum,
|
|
125
|
-
|
|
130
|
+
mr as Flyout,
|
|
126
131
|
dr as Icon,
|
|
127
132
|
Tr as IconBig,
|
|
128
133
|
io as IconButton,
|
|
129
134
|
lr as Icons,
|
|
130
135
|
sr as IconsBig,
|
|
131
136
|
Cr as Indicator,
|
|
132
|
-
|
|
137
|
+
Br as InfoPanel,
|
|
133
138
|
Lr as Input,
|
|
134
|
-
|
|
139
|
+
ft as InputDropzone,
|
|
135
140
|
kr as Interactive,
|
|
136
|
-
|
|
137
|
-
|
|
141
|
+
Dr as Island,
|
|
142
|
+
br as IslandCorner,
|
|
138
143
|
wo as Link,
|
|
139
144
|
Fo as LinkButton,
|
|
140
|
-
|
|
145
|
+
P as Linkify,
|
|
141
146
|
re as Loaf,
|
|
142
147
|
xr as Logos,
|
|
143
|
-
|
|
148
|
+
mo as MediaQueryEnum,
|
|
144
149
|
te as Modal,
|
|
145
150
|
fe as NavList,
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
151
|
+
pe as OVERLAY_OUTLET_ID,
|
|
152
|
+
po as OffsetEnum,
|
|
153
|
+
ut as OnScreenSensor,
|
|
149
154
|
xe as Overlay,
|
|
150
155
|
Hr as Pad,
|
|
151
156
|
Xr as Page,
|
|
@@ -159,40 +164,37 @@ export {
|
|
|
159
164
|
Ce as Select,
|
|
160
165
|
Le as Separator,
|
|
161
166
|
ye as Shroud,
|
|
162
|
-
|
|
167
|
+
nt as Skeleton,
|
|
163
168
|
ke as Slider,
|
|
164
|
-
|
|
165
|
-
|
|
169
|
+
De as Spacer,
|
|
170
|
+
Oe as Style,
|
|
166
171
|
_e as Switch,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
Ge as TableIconButton,
|
|
173
|
-
Ve as TableRow,
|
|
172
|
+
it as Symbols,
|
|
173
|
+
We as TEXT_OPACITY_MAP,
|
|
174
|
+
ot as TITLE_OUTLET_ID,
|
|
175
|
+
Ke as Table,
|
|
176
|
+
ct as TableIconButton,
|
|
174
177
|
ze as Tabular,
|
|
175
|
-
|
|
176
|
-
|
|
178
|
+
Xe as Text,
|
|
179
|
+
Je as TextBlock,
|
|
177
180
|
xo as TextSizeEnum,
|
|
178
|
-
|
|
179
|
-
|
|
181
|
+
qe as Textarea,
|
|
182
|
+
rt as Title,
|
|
180
183
|
he as ToggleGroup,
|
|
181
184
|
$r as VirtualScrollable,
|
|
182
185
|
no as ZIndexEnum,
|
|
183
186
|
N as clamp,
|
|
184
187
|
G as clamp01,
|
|
185
|
-
|
|
188
|
+
a as clsx,
|
|
186
189
|
j as debounce,
|
|
187
190
|
F as defaultLinkReplacer,
|
|
188
191
|
_ as defaultLinkReplacerx,
|
|
189
|
-
|
|
190
|
-
Oo as getButtonClassName,
|
|
192
|
+
Do as getButtonClassName,
|
|
191
193
|
oo as getColor,
|
|
192
194
|
Mo as getLinkClassName,
|
|
193
195
|
No as getLinkStyles,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
+
Qe as getTextOpacity,
|
|
197
|
+
m as getValue,
|
|
196
198
|
R as identity,
|
|
197
199
|
k as invoke,
|
|
198
200
|
v as isExternalUrl,
|
|
@@ -208,22 +210,23 @@ export {
|
|
|
208
210
|
A as noop,
|
|
209
211
|
W as normalizeSlashes,
|
|
210
212
|
X as replaceRange,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
+
D as returnFalse,
|
|
214
|
+
b as returnTrue,
|
|
213
215
|
J as splitByIndices,
|
|
214
|
-
|
|
216
|
+
Fr as stringPropFormater,
|
|
217
|
+
Ze as textSizeResponsiveValueFormatter,
|
|
215
218
|
q as throttle,
|
|
216
|
-
|
|
217
|
-
|
|
219
|
+
et as titleGetCoords,
|
|
220
|
+
tt as titleGetCssStyle,
|
|
218
221
|
eo as ui,
|
|
219
222
|
Q as unicodeCharAt,
|
|
220
223
|
S as useClipboardComponent,
|
|
221
|
-
|
|
224
|
+
Pe as useContextualStyle,
|
|
222
225
|
s as useDynamicRef,
|
|
223
226
|
d as useGlobalKeyboardEvent,
|
|
224
227
|
l as useInstance,
|
|
225
228
|
T as useKeyboardClose,
|
|
226
|
-
|
|
229
|
+
B as useOutlet,
|
|
227
230
|
x as usePopoverController,
|
|
228
231
|
C as useWindowResize
|
|
229
232
|
};
|
|
@@ -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";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
export declare function mergeRefs<T =
|
|
3
|
+
export declare function mergeRefs<T = unknown>(...refs: (React.RefCallback<T> | React.RefObject<T> | undefined | null)[]): React.RefCallback<T>;
|
package/dist/utils/mergeRefs.js
CHANGED
package/dist/utils/ui/ui.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export declare namespace ui {
|
|
|
35
35
|
export const getOffsetStyles: (name: string, value?: ResponsiveValueType<OffsetType | number>) => import("react").CSSProperties;
|
|
36
36
|
type CallbackType<T> = (name: string, value: ResponsiveOffsetType) => T;
|
|
37
37
|
export function callAllMPProps<T extends object>(props: Partial<MPProps>, callback: CallbackType<T>): T;
|
|
38
|
+
export const optimizeMPProps: (props: Partial<MPProps>) => Partial<MPProps>;
|
|
38
39
|
export const getAllMPStyles: (props: Partial<MPProps>) => React.CSSProperties;
|
|
39
40
|
export const getAllMPClassnames: (props: Partial<MPProps>) => string;
|
|
40
41
|
export {};
|
package/dist/utils/ui/ui.js
CHANGED
|
@@ -1,68 +1,77 @@
|
|
|
1
|
-
import { clsx as
|
|
2
|
-
var
|
|
1
|
+
import { clsx as m } from "../clsx.js";
|
|
2
|
+
var d;
|
|
3
3
|
((t) => {
|
|
4
|
-
function
|
|
4
|
+
function f(e = 1) {
|
|
5
5
|
return `calc(var(--quant) * ${e})`;
|
|
6
6
|
}
|
|
7
|
-
t.q =
|
|
8
|
-
function
|
|
7
|
+
t.q = f;
|
|
8
|
+
function p(e) {
|
|
9
9
|
return `var(--offset-${e})`;
|
|
10
10
|
}
|
|
11
|
-
t.offset =
|
|
11
|
+
t.offset = p;
|
|
12
12
|
function b(e = "normal") {
|
|
13
13
|
return `var(--font-size-${e})`;
|
|
14
14
|
}
|
|
15
15
|
t.fontSize = b;
|
|
16
|
-
function
|
|
16
|
+
function y(e = "first") {
|
|
17
17
|
return `var(--zindex-${e})`;
|
|
18
18
|
}
|
|
19
|
-
t.zindex =
|
|
20
|
-
function
|
|
19
|
+
t.zindex = y;
|
|
20
|
+
function g(e = "normal") {
|
|
21
21
|
return `var(--line-height-${e})`;
|
|
22
22
|
}
|
|
23
|
-
t.lineHeight =
|
|
24
|
-
function
|
|
23
|
+
t.lineHeight = g;
|
|
24
|
+
function x(e = "normal") {
|
|
25
25
|
return `var(--border-radius-${e})`;
|
|
26
26
|
}
|
|
27
|
-
t.borderRadius =
|
|
28
|
-
function
|
|
27
|
+
t.borderRadius = x;
|
|
28
|
+
function h(e, r, o = 1) {
|
|
29
29
|
let n = r;
|
|
30
30
|
return n === "pure" && (n = ""), typeof n == "number" && (n = `${n}`), `rgba(var(--color-${e}${n ? `-${n}` : ""}), ${o})`;
|
|
31
31
|
}
|
|
32
|
-
t.color =
|
|
32
|
+
t.color = h, ((e) => {
|
|
33
33
|
e.fullWidth = "util-full-width", e.fullHeight = "util-full-height", e.flexGrow = "util-flex-grow", e.flexNoShrink = "util-flex-no-shrink", e.userSelectableText = "util-text-selectable", e.zIndex9000 = "util-z-index-9000";
|
|
34
34
|
})(t.cls || (t.cls = {})), t.pc = (e) => `${e}%`, t.px = (e) => `${e}px`, t.ch = (e) => `${e}ch`, t.em = (e) => `${e}em`, t.rem = (e) => `${e}rem`, t.vh = (e) => `${e}vh`, t.vw = (e) => `${e}vw`, t.url = (e) => `url(${e})`;
|
|
35
|
-
function
|
|
36
|
-
return e == null ? "" : typeof e == "number" ?
|
|
35
|
+
function l(e) {
|
|
36
|
+
return e == null ? "" : typeof e == "number" ? f(e) : e.toString();
|
|
37
37
|
}
|
|
38
|
-
t.defaultResponsiveValueFormatter =
|
|
39
|
-
function
|
|
40
|
-
return r == null ? {} : typeof r == "object" && !Array.isArray(r) ? Object.entries(r).reduce((n, [
|
|
38
|
+
t.defaultResponsiveValueFormatter = l;
|
|
39
|
+
function u(e, r, o = l) {
|
|
40
|
+
return r == null ? {} : typeof r == "object" && !Array.isArray(r) ? Object.entries(r).reduce((n, [i, s]) => (n[`--${e}-${i}`] = o(s), n), {}) : {
|
|
41
41
|
[`--${e}-initial`]: o(r)
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
t.getResponsiveStyles =
|
|
45
|
-
function
|
|
46
|
-
return r == null ? "" : typeof r == "object" && !Array.isArray(r) ?
|
|
44
|
+
t.getResponsiveStyles = u;
|
|
45
|
+
function c(e, r) {
|
|
46
|
+
return r == null ? "" : typeof r == "object" && !Array.isArray(r) ? m(Object.keys(r).map((o) => `ui-${e}-${o}`)) : `ui-${e}-initial`;
|
|
47
47
|
}
|
|
48
|
-
t.getResponsiveClassnames =
|
|
49
|
-
function
|
|
50
|
-
return r == null ? [] : typeof r == "object" && !Array.isArray(r) ? Object.entries(r).reduce((n, [
|
|
48
|
+
t.getResponsiveClassnames = c;
|
|
49
|
+
function P(e, r, o = l) {
|
|
50
|
+
return r == null ? [] : typeof r == "object" && !Array.isArray(r) ? Object.entries(r).reduce((n, [i, s]) => (n.push(`${e}-${i}-${o(s)}`), n), []) : [`${e}-initial-${o(r)}`];
|
|
51
51
|
}
|
|
52
|
-
t.getResponsiveFlatClassnames =
|
|
53
|
-
function
|
|
54
|
-
return typeof e == "number" ?
|
|
52
|
+
t.getResponsiveFlatClassnames = P;
|
|
53
|
+
function $(e) {
|
|
54
|
+
return typeof e == "number" ? f(e) : p(e);
|
|
55
55
|
}
|
|
56
|
-
t.offsetResponsiveValueFormatter =
|
|
57
|
-
function
|
|
58
|
-
return Object.entries(e).reduce((o, [n,
|
|
56
|
+
t.offsetResponsiveValueFormatter = $, t.getOffsetStyles = (e, r) => u(e, r, $);
|
|
57
|
+
function a(e, r) {
|
|
58
|
+
return Object.entries(e).reduce((o, [n, i]) => (Object.assign(o, r(n, i)), o), {});
|
|
59
59
|
}
|
|
60
|
-
t.callAllMPProps =
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
t.callAllMPProps = a, t.optimizeMPProps = (e) => {
|
|
61
|
+
const {
|
|
62
|
+
px: r,
|
|
63
|
+
py: o,
|
|
64
|
+
mx: n,
|
|
65
|
+
my: i,
|
|
66
|
+
...s
|
|
67
|
+
} = e;
|
|
68
|
+
return r && (s.pr = r, s.pl = r), o && (s.pt = o, s.pb = o), n && (s.mr = n, s.ml = n), i && (s.mt = i, s.mb = i), s;
|
|
69
|
+
}, t.getAllMPStyles = (e) => a((0, t.optimizeMPProps)(e), t.getOffsetStyles), t.getAllMPClassnames = (e) => m(
|
|
70
|
+
Object.entries((0, t.optimizeMPProps)(e)).map(
|
|
71
|
+
([r, o]) => c(r, o)
|
|
63
72
|
)
|
|
64
73
|
);
|
|
65
|
-
})(
|
|
74
|
+
})(d || (d = {}));
|
|
66
75
|
export {
|
|
67
|
-
|
|
76
|
+
d as ui
|
|
68
77
|
};
|