@cfx-dev/ui-components 4.2.20 → 4.2.22
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/assets/css/Badge.css +1 -1
- package/dist/assets/css/Link.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/components/Accordion/Accordion.d.ts +1 -7
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/AccordionShowcase.js +1 -1
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Avatar/AvatarShowcase.js +1 -1
- package/dist/components/BackdropPortal/BackdropPortal.d.ts +2 -0
- package/dist/components/BackdropPortal/BackdropPortal.js +7 -5
- package/dist/components/BackdropPortal/index.d.ts +2 -0
- package/dist/components/BackdropPortal/index.js +5 -0
- package/dist/components/Badge/Badge.d.ts +9 -2
- package/dist/components/Badge/Badge.js +52 -25
- package/dist/components/Badge/BadgeShowcase.js +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/BurgerMenu/BurgerMenu.js +1 -1
- package/dist/components/BurgerMenu/BurgerMenuShowcase.js +1 -1
- package/dist/components/Button/ButtonShowcase.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/ClipboardButton/ClipboardButton.d.ts +3 -3
- package/dist/components/ClipboardButton/ClipboardButton.js +10 -9
- package/dist/components/ControlBox/ControlBox.d.ts +2 -0
- package/dist/components/ControlBox/ControlBox.js +10 -9
- package/dist/components/ControlBox/index.d.ts +2 -0
- package/dist/components/ControlBox/index.js +4 -0
- package/dist/components/CountryFlag/CountryFlag.d.ts +2 -0
- package/dist/components/CountryFlag/CountryFlag.js +14 -13
- package/dist/components/CountryFlag/index.d.ts +2 -0
- package/dist/components/CountryFlag/index.js +4 -0
- package/dist/components/Decorate/Decorate.d.ts +2 -0
- package/dist/components/Decorate/Decorate.js +15 -14
- package/dist/components/Decorate/index.d.ts +2 -0
- package/dist/components/Decorate/index.js +4 -0
- package/dist/components/DropdownSelect/DropdownSelect.d.ts +1 -1
- package/dist/components/DropdownSelect/DropdownSelect.js +801 -1039
- package/dist/components/DropdownSelect/DropdownSelectShowcase.js +1 -1
- package/dist/components/DropdownSelect/index.d.ts +1 -0
- package/dist/components/Flyout/Flyout.d.ts +2 -1
- package/dist/components/Flyout/index.d.ts +2 -0
- package/dist/components/Flyout/index.js +5 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/IconBig/IconBig.js +1 -1
- package/dist/components/IconButton/IconButton.d.ts +2 -3
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/Indicator/index.d.ts +2 -0
- package/dist/components/Indicator/index.js +4 -0
- package/dist/components/InfoPanel/InfoPanelShowcase.js +1 -1
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +6 -6
- package/dist/components/Input/InputShowcase.js +1 -1
- package/dist/components/Input/RichInput.d.ts +1 -1
- package/dist/components/Input/RichInput.js +4 -4
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/InputDropzone/index.d.ts +3 -3
- package/dist/components/InputDropzone/index.js +3 -3
- package/dist/components/Interactive/index.d.ts +2 -0
- package/dist/components/Interactive/index.js +4 -0
- package/dist/components/Island/Island.js +4 -4
- package/dist/components/Island/index.d.ts +2 -0
- package/dist/components/Island/index.js +5 -0
- package/dist/components/Layout/Box/Box.d.ts +2 -1
- package/dist/components/Layout/Box/Box.js +3 -2
- package/dist/components/Layout/Box/index.d.ts +2 -0
- package/dist/components/Layout/Box/index.js +5 -0
- package/dist/components/Layout/Center/index.d.ts +2 -0
- package/dist/components/Layout/Center/index.js +4 -0
- package/dist/components/Layout/Flex/Flex.d.ts +4 -4
- package/dist/components/Layout/Flex/Flex.js +1 -1
- package/dist/components/Layout/Flex/Flex.types.d.ts +7 -0
- package/dist/components/Layout/Flex/Flex.types.js +6 -5
- package/dist/components/Layout/Flex/index.d.ts +6 -0
- package/dist/components/Layout/Flex/index.js +12 -0
- package/dist/components/Layout/Pad/index.d.ts +2 -0
- package/dist/components/Layout/Pad/index.js +4 -0
- package/dist/components/Layout/Page/index.d.ts +2 -0
- package/dist/components/Layout/Page/index.js +4 -0
- package/dist/components/Layout/Scrollable/ScrollableShowcase.js +1 -1
- package/dist/components/Link/ButtonLink.js +23 -18
- package/dist/components/Link/Link.d.ts +3 -1
- package/dist/components/Link/Link.js +48 -30
- package/dist/components/Link/LinkShowcase.js +46 -41
- package/dist/components/Link/index.d.ts +1 -1
- package/dist/components/Link/index.js +6 -5
- package/dist/components/Loaf/index.d.ts +2 -0
- package/dist/components/Loaf/index.js +4 -0
- package/dist/components/Logos/LogosShowcase.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/NavList/index.d.ts +2 -0
- package/dist/components/NavList/index.js +4 -0
- package/dist/components/Overlay/index.d.ts +2 -0
- package/dist/components/Overlay/index.js +5 -0
- package/dist/components/PremiumBadge/index.d.ts +2 -0
- package/dist/components/PremiumBadge/index.js +4 -0
- package/dist/components/Prose/Prose.d.ts +1 -2
- package/dist/components/Prose/index.d.ts +2 -0
- package/dist/components/Prose/index.js +4 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +4 -0
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/SelectShowcase.js +1 -1
- package/dist/components/Separator/Separator.d.ts +1 -1
- package/dist/components/Separator/Separator.js +1 -1
- package/dist/components/Separator/index.d.ts +2 -0
- package/dist/components/Separator/index.js +4 -0
- package/dist/components/Shroud/Shroud.js +6 -6
- package/dist/components/Shroud/index.d.ts +2 -0
- package/dist/components/Shroud/index.js +4 -0
- package/dist/components/Skeleton/Skeleton.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Skeleton/SkeletonShowcase.js +1 -1
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Slider/Slider.js +294 -374
- package/dist/components/Slider/SliderShowcase.js +1 -1
- package/dist/components/Spacer/Spacer.d.ts +1 -1
- package/dist/components/Spacer/index.d.ts +2 -0
- package/dist/components/Spacer/index.js +4 -0
- package/dist/components/Style/index.d.ts +2 -0
- package/dist/components/Style/index.js +5 -0
- package/dist/components/Table/Table.d.ts +13 -4
- package/dist/components/Table/Table.js +3 -2
- package/dist/components/Table/TableShowcase.js +1 -1
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Table/index.js +5 -2
- package/dist/components/Tabular/Tabular.d.ts +1 -1
- package/dist/components/Tabular/Tabular.js +1 -1
- package/dist/components/Tabular/TabularShowcase.js +1 -1
- package/dist/components/Text/Text.js +13 -12
- package/dist/components/Text/Text.types.d.ts +3 -2
- package/dist/components/Text/TextShowcase.js +12 -15
- package/dist/components/Text/index.d.ts +2 -2
- package/dist/components/Text/index.js +9 -8
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/index.js +4 -0
- package/dist/components/Title/Title.d.ts +5 -4
- package/dist/components/Title/Title.js +4 -2
- package/dist/components/Title/TitleShowcase.js +1 -1
- package/dist/components/Title/index.d.ts +2 -0
- package/dist/components/Title/index.js +7 -0
- package/dist/components/ToggleGroup/ToggleGroupShowcase.js +1 -1
- package/dist/index-AweK2ufS.js +171 -0
- package/dist/{index-DBus3GoO.js → index-Bz27DCHt.js} +2 -2
- package/dist/main.d.ts +93 -69
- package/dist/main.js +217 -191
- package/dist/styles-scss/global.scss +2 -2
- package/dist/styles-scss/tokens.scss +0 -4
- package/dist/utils/color.d.ts +3 -1
- package/dist/utils/enum.d.ts +1 -0
- package/dist/utils/enum.js +6 -0
- package/dist/utils/ui/index.d.ts +3 -0
- package/dist/utils/ui/index.js +11 -0
- package/dist/{components → utils/ui}/ui.d.ts +2 -68
- package/dist/utils/ui/ui.js +68 -0
- package/dist/utils/ui/ui.types.d.ts +86 -0
- package/dist/utils/ui/ui.types.js +9 -0
- package/package.json +1 -1
- package/dist/components/ui.js +0 -73
- package/dist/index-CjTSD6zB.js +0 -161
|
@@ -1,63 +1,68 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import d from "react";
|
|
3
|
-
import { Flex as
|
|
4
|
-
import { Text as
|
|
5
|
-
import "
|
|
6
|
-
import
|
|
7
|
-
import
|
|
3
|
+
import { Flex as l } from "../Layout/Flex/Flex.js";
|
|
4
|
+
import { Text as i } from "../Text/Text.js";
|
|
5
|
+
import "../../utils/ui/ui.js";
|
|
6
|
+
import t from "./ButtonLink.js";
|
|
7
|
+
import n from "./Link.js";
|
|
8
8
|
function c() {
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */ e(
|
|
12
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
13
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
14
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
15
|
-
] }),
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */ e(
|
|
18
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
19
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
20
|
-
] }),
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */ e(
|
|
23
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
24
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
25
|
-
] }),
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ r(l, { gap: "large", vertical: !0, children: [
|
|
10
|
+
/* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
|
|
11
|
+
/* @__PURE__ */ e(i, { children: "Color Default" }),
|
|
12
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { href: "/", children: "Link active" }) }),
|
|
13
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { href: "/", disabled: !0, children: "Link disable" }) }),
|
|
14
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { href: "/", unstyled: !0, children: "Link unstyled" }) })
|
|
15
|
+
] }),
|
|
16
|
+
/* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
|
|
17
|
+
/* @__PURE__ */ e(i, { children: "Color secondary" }),
|
|
18
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { href: "/", color: "secondary", children: "Link active" }) }),
|
|
19
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { href: "/", color: "secondary", disabled: !0, children: "Link disable" }) })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
|
|
22
|
+
/* @__PURE__ */ e(i, { children: "Color red" }),
|
|
23
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { href: "/", color: "red", children: "Link active" }) }),
|
|
24
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(n, { href: "/", color: "red", disabled: !0, children: "Link disable" }) })
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
|
|
27
|
+
/* @__PURE__ */ e(i, { children: "ButtonLink - look like link but its button" }),
|
|
28
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { children: "Link active" }) }),
|
|
29
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { disabled: !0, children: "Link disable" }) })
|
|
30
|
+
] }),
|
|
31
|
+
/* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
|
|
32
|
+
/* @__PURE__ */ e(i, { children: "Inside text" }),
|
|
33
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ r(i, { size: "large", as: "h2", children: [
|
|
29
34
|
"Out of link text. ",
|
|
30
|
-
/* @__PURE__ */ e(
|
|
35
|
+
/* @__PURE__ */ e(n, { href: "/", children: "Link text" })
|
|
31
36
|
] }) })
|
|
32
37
|
] }),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */ e(
|
|
35
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ i
|
|
38
|
+
/* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
|
|
39
|
+
/* @__PURE__ */ e(i, { children: "Inside typographic text" }),
|
|
40
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ r(i, { size: "large", as: "h2", typographic: !0, children: [
|
|
36
41
|
"Out of link text. ",
|
|
37
|
-
/* @__PURE__ */ e(
|
|
42
|
+
/* @__PURE__ */ e(n, { href: "/", children: "Link text" })
|
|
38
43
|
] }) })
|
|
39
44
|
] }),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */ e(
|
|
45
|
+
/* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
|
|
46
|
+
/* @__PURE__ */ e(i, { children: "Row a tag" }),
|
|
42
47
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("a", { href: "/", children: "Link text" }) })
|
|
43
48
|
] }),
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */ e(
|
|
46
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ i
|
|
49
|
+
/* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
|
|
50
|
+
/* @__PURE__ */ e(i, { children: "Row a in text" }),
|
|
51
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ r(i, { size: "large", as: "h2", children: [
|
|
47
52
|
"Out of link text. ",
|
|
48
53
|
/* @__PURE__ */ e("a", { href: "/", children: "Link text" })
|
|
49
54
|
] }) })
|
|
50
55
|
] }),
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ i
|
|
56
|
+
/* @__PURE__ */ r(l, { gap: "normal", vertical: !0, children: [
|
|
57
|
+
/* @__PURE__ */ e(i, { children: "Row a in typographic text" }),
|
|
58
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ r(i, { size: "large", as: "h2", typographic: !0, children: [
|
|
54
59
|
"Out of link text. ",
|
|
55
60
|
/* @__PURE__ */ e("a", { href: "/", children: "Link text" })
|
|
56
61
|
] }) })
|
|
57
62
|
] })
|
|
58
63
|
] });
|
|
59
64
|
}
|
|
60
|
-
const
|
|
65
|
+
const k = d.memo(c);
|
|
61
66
|
export {
|
|
62
|
-
|
|
67
|
+
k as default
|
|
63
68
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
1
|
+
import { default as a, getLinkClassName as n, getLinkStyles as o } from "./Link.js";
|
|
2
|
+
import { default as f } from "./ButtonLink.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
f as ButtonLink,
|
|
5
|
+
a as Link,
|
|
6
|
+
n as getLinkClassName,
|
|
7
|
+
o as getLinkStyles
|
|
7
8
|
};
|
|
@@ -4,7 +4,7 @@ import { Island as c } from "../Island/Island.js";
|
|
|
4
4
|
import { Flex as 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
|
-
import "
|
|
7
|
+
import "../../utils/ui/ui.js";
|
|
8
8
|
import { Logos as p } from "./index.js";
|
|
9
9
|
function h() {
|
|
10
10
|
const s = Object.entries(p).map(([r, i]) => ({
|
|
@@ -6,7 +6,7 @@ import "../Button/LinkButton.js";
|
|
|
6
6
|
import x 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
|
-
import "
|
|
9
|
+
import "../../utils/ui/ui.js";
|
|
10
10
|
import { clsx as s } from "../../utils/clsx.js";
|
|
11
11
|
import "../../utils/hooks/useGlobalKeyboardEvent.js";
|
|
12
12
|
import { useKeyboardClose as y } from "../../utils/hooks/useKeyboardClose.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
export interface ProseProps {
|
|
4
|
-
children?: React.ReactNode;
|
|
3
|
+
export interface ProseProps extends React.PropsWithChildren {
|
|
5
4
|
}
|
|
6
5
|
export declare function Prose({ children, }: ProseProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,13 +6,13 @@ import { c as Je } from "../../index-rKs9bXHr.js";
|
|
|
6
6
|
import { S as ze, P as O, d as bn } from "../../index-BlbvKsmN.js";
|
|
7
7
|
import { u as xn } from "../../index-ByaXH_ih.js";
|
|
8
8
|
import { c as pe, a as _n, b as X, u as et } from "../../index-Cf5Yu9oD.js";
|
|
9
|
-
import { u as En, a as Pn, b as Rn, o as Tn, s as Nn, f as In, c as An, d as On, h as Mn, l as Ln, g as Dn,
|
|
9
|
+
import { u as En, a as Pn, b as Rn, o as Tn, s as Nn, f as In, c as An, d as On, h as Mn, l as Ln, g as Dn, i as kn, e as Ge } from "../../index-Bz27DCHt.js";
|
|
10
10
|
import { u as Bn } from "../../index-BZPx6jYI.js";
|
|
11
11
|
import { f as ht, _ as ce, c as Fn } from "../../tslib.es6-CBKHJX9H.js";
|
|
12
12
|
import { c as Wn, u as zn } from "../../medium-BA3EQDZW.js";
|
|
13
13
|
import { Icon as Vn } from "../Icon/Icon.js";
|
|
14
|
-
import { ui as Hn } from "../ui.js";
|
|
15
14
|
import { clsx as Me } from "../../utils/clsx.js";
|
|
15
|
+
import { ui as Hn } from "../../utils/ui/ui.js";
|
|
16
16
|
var vt = function(e) {
|
|
17
17
|
var t = e.sideCar, n = ht(e, ["sideCar"]);
|
|
18
18
|
if (!t)
|
|
@@ -2,7 +2,7 @@ import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import o from "react";
|
|
3
3
|
import { Flex as a } from "../Layout/Flex/Flex.js";
|
|
4
4
|
import { Text as i } from "../Text/Text.js";
|
|
5
|
-
import "
|
|
5
|
+
import "../../utils/ui/ui.js";
|
|
6
6
|
import { Select as n } from "./Select.js";
|
|
7
7
|
const t = [
|
|
8
8
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import l from "react";
|
|
3
|
-
import { ui as s } from "../ui.js";
|
|
4
3
|
import { clsx as x } from "../../utils/clsx.js";
|
|
4
|
+
import { ui as s } from "../../utils/ui/ui.js";
|
|
5
5
|
const m = "cfxui__Separator__root__3aea3", u = "cfxui__Separator__separator__5dbbd", d = "cfxui__Separator__content__7ade9", S = "cfxui__Separator__thin__628fd", h = "cfxui__Separator__vertical__8bd90", v = "cfxui__Separator__text__d02da", a = {
|
|
6
6
|
root: m,
|
|
7
7
|
"separator-offset-none": "cfxui__Separator__separator-offset-none__f2b70",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as t, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import r from "react";
|
|
3
3
|
import { TITLE_OUTLET_ID as _ } from "../Title/Title.js";
|
|
4
|
-
import { ui as p } from "../ui.js";
|
|
5
4
|
import "../../utils/hooks/useGlobalKeyboardEvent.js";
|
|
6
5
|
import "../../utils/hooks/useKeyboardClose.js";
|
|
7
|
-
import { useWindowResize as
|
|
8
|
-
import { useOutlet as
|
|
6
|
+
import { useWindowResize as p } from "../../utils/hooks/useWindowResize.js";
|
|
7
|
+
import { useOutlet as b } from "../../utils/hooks/useOutlet.js";
|
|
8
|
+
import { ui as x } from "../../utils/ui/ui.js";
|
|
9
9
|
const g = "cfxui__Shroud__root__99944", v = "cfxui__Shroud__tile__db55f", e = {
|
|
10
10
|
root: g,
|
|
11
11
|
tile: v
|
|
12
12
|
}, P = r.forwardRef(function(l, n) {
|
|
13
13
|
const {
|
|
14
14
|
forRef: s
|
|
15
|
-
} = l, [u, d] = r.useState({}), f =
|
|
15
|
+
} = l, [u, d] = r.useState({}), f = b(_, "before"), i = r.useCallback(() => {
|
|
16
16
|
if (!s.current)
|
|
17
17
|
return;
|
|
18
18
|
const o = s.current.getBoundingClientRect(), m = {
|
|
@@ -26,13 +26,13 @@ const g = "cfxui__Shroud__root__99944", v = "cfxui__Shroud__tile__db55f", e = {
|
|
|
26
26
|
d(
|
|
27
27
|
Object.fromEntries(
|
|
28
28
|
Object.entries(m).flatMap(([a, c]) => [
|
|
29
|
-
[`--${a}`,
|
|
29
|
+
[`--${a}`, x.px(c)],
|
|
30
30
|
[`--${a}-raw`, c]
|
|
31
31
|
])
|
|
32
32
|
)
|
|
33
33
|
);
|
|
34
34
|
}, []);
|
|
35
|
-
return r.useEffect(i, []),
|
|
35
|
+
return r.useEffect(i, []), p(i), /* @__PURE__ */ t(f, { children: /* @__PURE__ */ h("div", { ref: n, className: e.root, style: u, children: [
|
|
36
36
|
/* @__PURE__ */ t("div", { className: e.tile, "data-top": !0 }),
|
|
37
37
|
/* @__PURE__ */ t("div", { className: e.tile, "data-left": !0 }),
|
|
38
38
|
/* @__PURE__ */ t("div", { className: e.tile, "data-right": !0 }),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { BoxProps } from '../Layout/Box/Box';
|
|
3
3
|
import { ResponsiveTextSize } from '../Text';
|
|
4
|
-
import { BorderRadiusType, ResponsiveValueType } from '
|
|
4
|
+
import { BorderRadiusType, ResponsiveValueType } from '../../utils/ui';
|
|
5
5
|
|
|
6
|
-
interface SkeletonProps extends BoxProps {
|
|
6
|
+
export interface SkeletonProps extends BoxProps {
|
|
7
7
|
borderRadius?: BorderRadiusType;
|
|
8
8
|
height?: ResponsiveValueType<ResponsiveTextSize>;
|
|
9
9
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx as _ } from "react/jsx-runtime";
|
|
|
2
2
|
import r from "react";
|
|
3
3
|
import { Box as f } from "../Layout/Box/Box.js";
|
|
4
4
|
import { textSizeResponsiveValueFormatter as u } from "../Text/Text.js";
|
|
5
|
-
import { ui as s } from "
|
|
5
|
+
import { ui as s } from "../../utils/ui/ui.js";
|
|
6
6
|
import { clsx as d } from "../../utils/clsx.js";
|
|
7
7
|
const p = "cfxui__Skeleton__skeleton__d700e", h = "cfxui__Skeleton__shimmer__d72f5", k = {
|
|
8
8
|
skeleton: p,
|
|
@@ -5,7 +5,7 @@ import { Button as p } from "../Button/Button.js";
|
|
|
5
5
|
import "../Button/LinkButton.js";
|
|
6
6
|
import { Flex as m } from "../Layout/Flex/Flex.js";
|
|
7
7
|
import { Text as r } from "../Text/Text.js";
|
|
8
|
-
import "
|
|
8
|
+
import "../../utils/ui/ui.js";
|
|
9
9
|
import c from "./Skeleton.js";
|
|
10
10
|
import { Table as x } from "../Table/Table.js";
|
|
11
11
|
const g = [
|