@cfx-dev/ui-components 4.2.21 → 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.js +1 -1
- package/dist/components/Accordion/AccordionShowcase.js +1 -1
- package/dist/components/Avatar/AvatarShowcase.js +1 -1
- 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/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/DropdownSelect/DropdownSelect.d.ts +1 -1
- package/dist/components/DropdownSelect/DropdownSelect.js +5 -5
- package/dist/components/DropdownSelect/DropdownSelectShowcase.js +1 -1
- 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/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/Island/Island.js +4 -4
- package/dist/components/Layout/Box/Box.d.ts +1 -1
- package/dist/components/Layout/Box/Box.js +1 -1
- package/dist/components/Layout/Flex/Flex.d.ts +1 -1
- package/dist/components/Layout/Flex/Flex.js +1 -1
- package/dist/components/Layout/Flex/index.d.ts +2 -1
- package/dist/components/Layout/Flex/index.js +10 -4
- 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/Logos/LogosShowcase.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +1 -1
- 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/Shroud/Shroud.js +6 -6
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Skeleton/SkeletonShowcase.js +1 -1
- package/dist/components/Slider/SliderShowcase.js +1 -1
- package/dist/components/Spacer/Spacer.d.ts +1 -1
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/TableShowcase.js +1 -1
- 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 +1 -1
- package/dist/components/Text/TextShowcase.js +12 -15
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/Text/index.js +9 -8
- package/dist/components/Title/TitleShowcase.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroupShowcase.js +1 -1
- package/dist/main.d.ts +7 -6
- package/dist/main.js +208 -194
- 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
|
@@ -1,44 +1,62 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import _ from "react";
|
|
3
|
+
import { clsx as d } from "../../utils/clsx.js";
|
|
4
|
+
import { getColor as a } from "../../utils/color.js";
|
|
5
|
+
const f = "cfxui__Link__unsetAll__58fea", m = "cfxui__Link__root__a29b3", y = "cfxui__Link__unstyled__f020c", e = {
|
|
6
|
+
unsetAll: f,
|
|
7
|
+
root: m,
|
|
8
|
+
unstyled: y
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function k(t) {
|
|
11
11
|
const {
|
|
12
|
-
className:
|
|
12
|
+
className: o,
|
|
13
13
|
disabled: n = !1,
|
|
14
|
-
unstyled:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[
|
|
19
|
-
|
|
20
|
-
}, a);
|
|
14
|
+
unstyled: s = !1
|
|
15
|
+
} = t;
|
|
16
|
+
return d(e.unsetAll, e.root, {
|
|
17
|
+
[e.disabled]: n,
|
|
18
|
+
[e.unstyled]: s
|
|
19
|
+
}, o);
|
|
21
20
|
}
|
|
22
|
-
function
|
|
21
|
+
function x(t) {
|
|
23
22
|
const {
|
|
24
|
-
|
|
23
|
+
color: o = "tertiary"
|
|
24
|
+
} = t;
|
|
25
|
+
return {
|
|
26
|
+
"--anchor-color": a({ color: o }),
|
|
27
|
+
"--anchor-decoration-color-hover": a({
|
|
28
|
+
color: o,
|
|
29
|
+
opacity: 0.5
|
|
30
|
+
})
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function L(t) {
|
|
34
|
+
const {
|
|
35
|
+
className: o,
|
|
25
36
|
children: n,
|
|
26
|
-
disabled:
|
|
27
|
-
...
|
|
28
|
-
} =
|
|
29
|
-
|
|
37
|
+
disabled: s = !1,
|
|
38
|
+
...l
|
|
39
|
+
} = t, {
|
|
40
|
+
style: r
|
|
41
|
+
} = l, c = k(t), i = x(t);
|
|
42
|
+
return /* @__PURE__ */ u(
|
|
30
43
|
"a",
|
|
31
44
|
{
|
|
32
|
-
...
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
45
|
+
...l,
|
|
46
|
+
style: {
|
|
47
|
+
...i,
|
|
48
|
+
...r
|
|
49
|
+
},
|
|
50
|
+
tabIndex: s ? -1 : 0,
|
|
51
|
+
"aria-disabled": s,
|
|
52
|
+
className: c,
|
|
36
53
|
children: n
|
|
37
54
|
}
|
|
38
55
|
);
|
|
39
56
|
}
|
|
40
|
-
const
|
|
57
|
+
const g = _.memo(L);
|
|
41
58
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
59
|
+
g as default,
|
|
60
|
+
k as getLinkClassName,
|
|
61
|
+
x as getLinkStyles
|
|
44
62
|
};
|
|
@@ -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";
|
|
@@ -11,8 +11,8 @@ 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,7 +1,7 @@
|
|
|
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
6
|
export interface SkeletonProps extends BoxProps {
|
|
7
7
|
borderRadius?: BorderRadiusType;
|
|
@@ -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 = [
|
|
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import i from "react";
|
|
3
3
|
import { Flex as a } from "../Layout/Flex/Flex.js";
|
|
4
4
|
import { Text as t } from "../Text/Text.js";
|
|
5
|
-
import "
|
|
5
|
+
import "../../utils/ui/ui.js";
|
|
6
6
|
import { Slider as l } from "./Slider.js";
|
|
7
7
|
const c = "cfxui__SliderShowcase__track__9ceda", o = {
|
|
8
8
|
track: c
|
|
@@ -3,7 +3,7 @@ import l, { useState as k } from "react";
|
|
|
3
3
|
import I from "../Checkbox/Checkbox.js";
|
|
4
4
|
import $ from "../IconButton/IconButton.js";
|
|
5
5
|
import { Text as S } from "../Text/Text.js";
|
|
6
|
-
import "
|
|
6
|
+
import "../../utils/ui/ui.js";
|
|
7
7
|
import { clsx as u } from "../../utils/clsx.js";
|
|
8
8
|
const j = "cfxui__Table__tableIcon__f8e96", z = "cfxui__Table__iconButton__ac6da", A = "cfxui__Table__root__591ed", E = "cfxui__Table__radio__70dd7", O = "cfxui__Table__radioContent__35cef", g = "cfxui__Table__pointer__7b6a4", F = "cfxui__Table__selectedRow__f7130", H = "cfxui__Table__headerText__02722", V = "cfxui__Table__headerContent__f0e66", q = "cfxui__Table__hidden__e4ac6", c = {
|
|
9
9
|
tableIcon: j,
|
|
@@ -6,7 +6,7 @@ import "../Interactive/Interactive.js";
|
|
|
6
6
|
import { Scrollable as c } from "../Layout/Scrollable/Scrollable.js";
|
|
7
7
|
import "../Layout/Scrollable/VirtualScrollable.js";
|
|
8
8
|
import { Text as r } from "../Text/Text.js";
|
|
9
|
-
import "
|
|
9
|
+
import "../../utils/ui/ui.js";
|
|
10
10
|
import { Table as o } from "./Table.js";
|
|
11
11
|
const i = [
|
|
12
12
|
[
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import d, { createElement as N } from "react";
|
|
3
3
|
import { Dot as p } from "../Dot/Dot.js";
|
|
4
|
-
import { ui as C } from "../ui.js";
|
|
5
4
|
import { clsx as n } from "../../utils/clsx.js";
|
|
5
|
+
import { ui as C } from "../../utils/ui/ui.js";
|
|
6
6
|
const v = "cfxui__Tabular__reset__b1dbc", k = "cfxui__Tabular__item__98cc3", I = "cfxui__Tabular__root__0ff05", R = "cfxui__Tabular__active__1ae95", y = "cfxui__Tabular__hasNotification__c372f", j = "cfxui__Tabular__content__3a95a", l = {
|
|
7
7
|
reset: v,
|
|
8
8
|
"tabular-size-initial-large": "cfxui__Tabular__tabular-size-initial-large__9451f",
|
|
@@ -2,7 +2,7 @@ import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import o from "react";
|
|
3
3
|
import { Flex as i } from "../Layout/Flex/Flex.js";
|
|
4
4
|
import { Text as l } from "../Text/Text.js";
|
|
5
|
-
import "
|
|
5
|
+
import "../../utils/ui/ui.js";
|
|
6
6
|
import { Tabular as m } from "./Tabular.js";
|
|
7
7
|
const c = [
|
|
8
8
|
{
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { ui as t, TextSizeEnum as _ } from "../ui.js";
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import l from "react";
|
|
4
3
|
import { clsx as w } from "../../utils/clsx.js";
|
|
5
4
|
import { getColor as A } from "../../utils/color.js";
|
|
5
|
+
import { ui as t } from "../../utils/ui/ui.js";
|
|
6
|
+
import { TextSizeEnum as _ } from "../../utils/ui/ui.types.js";
|
|
6
7
|
const E = "cfxui__Text__root__2fe11", O = "cfxui__Text__centered__4d7bd", F = "cfxui__Text__underlined__5860e", H = "cfxui__Text__strikethrough__e3ee3", N = "cfxui__Text__truncated__417f4", $ = "cfxui__Text__typographic__d8155", B = "cfxui__Text__block__cb1b6", n = {
|
|
7
8
|
root: E,
|
|
8
9
|
centered: O,
|
|
@@ -27,14 +28,14 @@ const E = "cfxui__Text__root__2fe11", O = "cfxui__Text__centered__4d7bd", F = "c
|
|
|
27
28
|
}, L = (e, o = 1) => {
|
|
28
29
|
const r = typeof e == "string" && D[e];
|
|
29
30
|
return typeof r == "string" || typeof r == "number" ? r : o;
|
|
30
|
-
}, M = "primary", V =
|
|
31
|
+
}, M = "primary", V = l.forwardRef(function(o, r) {
|
|
31
32
|
const {
|
|
32
33
|
family: c,
|
|
33
34
|
size: i = "normal",
|
|
34
35
|
weight: u = "normal",
|
|
35
|
-
letterSpacing:
|
|
36
|
+
letterSpacing: p = "normal",
|
|
36
37
|
as: s = "span",
|
|
37
|
-
centered:
|
|
38
|
+
centered: h = !1,
|
|
38
39
|
truncated: m = !1,
|
|
39
40
|
typographic: g = !1,
|
|
40
41
|
uppercase: d = !1,
|
|
@@ -51,7 +52,7 @@ const E = "cfxui__Text__root__2fe11", O = "cfxui__Text__centered__4d7bd", F = "c
|
|
|
51
52
|
t.getResponsiveClassnames("line-height", i),
|
|
52
53
|
{
|
|
53
54
|
[n.block]: S,
|
|
54
|
-
[n.centered]:
|
|
55
|
+
[n.centered]: h,
|
|
55
56
|
[n.truncated]: m,
|
|
56
57
|
[n.underlined]: y,
|
|
57
58
|
[n.strikethrough]: T,
|
|
@@ -66,21 +67,21 @@ const E = "cfxui__Text__root__2fe11", O = "cfxui__Text__centered__4d7bd", F = "c
|
|
|
66
67
|
color: v,
|
|
67
68
|
fontFamily: `var(--font-family-${z})`,
|
|
68
69
|
lineHeight: `var(--line-height-${i})`,
|
|
69
|
-
letterSpacing: `var(--letter-spacing-${
|
|
70
|
+
letterSpacing: `var(--letter-spacing-${p})`,
|
|
70
71
|
fontWeight: `var(--font-weight-${u})`,
|
|
71
72
|
...t.getResponsiveStyles("font-size", i, P),
|
|
72
73
|
...t.getResponsiveStyles("line-height", i, q),
|
|
73
74
|
...R
|
|
74
75
|
};
|
|
75
|
-
return d && (a.textTransform = "uppercase"), /* @__PURE__ */
|
|
76
|
-
}),
|
|
77
|
-
return /* @__PURE__ */
|
|
76
|
+
return d && (a.textTransform = "uppercase"), /* @__PURE__ */ f(s, { ref: r, dir: "auto", className: C, style: a, children: b });
|
|
77
|
+
}), K = l.forwardRef(function(o, r) {
|
|
78
|
+
return /* @__PURE__ */ f(V, { ref: r, ...o, as: "div" });
|
|
78
79
|
});
|
|
79
80
|
export {
|
|
80
81
|
M as DEFAULT_TEXT_COLOR,
|
|
81
82
|
D as TEXT_OPACITY_MAP,
|
|
82
83
|
V as Text,
|
|
83
|
-
|
|
84
|
+
K as TextBlock,
|
|
84
85
|
L as getTextOpacity,
|
|
85
86
|
q as lineHeightResponsiveValueFormatter,
|
|
86
87
|
P as textSizeResponsiveValueFormatter
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ResponsiveValueType, TextSize as RawTextSize } from '../ui';
|
|
2
1
|
import { GetColorProps } from '../../utils/color';
|
|
2
|
+
import { ResponsiveValueType, TextSize as RawTextSize } from '../../utils/ui';
|
|
3
3
|
|
|
4
4
|
export type TextSize = RawTextSize;
|
|
5
5
|
export type ResponsiveTextSize = TextSize | string | number;
|
|
@@ -5,17 +5,14 @@ import { Separator as d } from "../Separator/Separator.js";
|
|
|
5
5
|
const h = "cfxui__TextShowcase__root__a3632", _ = {
|
|
6
6
|
root: h
|
|
7
7
|
}, f = "The quick brown fox jumps over the lazy dog.", T = "How vexingly quick daft zebras jump.";
|
|
8
|
-
function
|
|
8
|
+
function m() {
|
|
9
9
|
return /* @__PURE__ */ t(e, { children: [
|
|
10
10
|
f,
|
|
11
11
|
/* @__PURE__ */ o("br", {}),
|
|
12
12
|
T
|
|
13
13
|
] });
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
color: "secondary"
|
|
17
|
-
};
|
|
18
|
-
function m(a) {
|
|
15
|
+
function u(a) {
|
|
19
16
|
const {
|
|
20
17
|
items: l
|
|
21
18
|
} = a;
|
|
@@ -23,24 +20,24 @@ function m(a) {
|
|
|
23
20
|
/* @__PURE__ */ t("div", { children: [
|
|
24
21
|
/* @__PURE__ */ o(c, { ...r.textProps, children: r.title }),
|
|
25
22
|
/* @__PURE__ */ o("br", {}),
|
|
26
|
-
/* @__PURE__ */ t(c, {
|
|
27
|
-
r.descriptions.map((
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
/* @__PURE__ */ t(c, { color: "secondary", children: [
|
|
24
|
+
r.descriptions.map((n, s) => /* @__PURE__ */ t(e, { children: [
|
|
25
|
+
n,
|
|
26
|
+
s < r.descriptions.length - 1 && /* @__PURE__ */ o("br", {})
|
|
30
27
|
] })),
|
|
31
|
-
Object.entries(r.textProps).map(([
|
|
28
|
+
Object.entries(r.textProps).map(([n, s], i) => /* @__PURE__ */ t(e, { children: [
|
|
32
29
|
r.descriptions.length > 0 && i === 0 && /* @__PURE__ */ o(d, { content: "props", offset: "large" }),
|
|
33
|
-
|
|
30
|
+
n,
|
|
34
31
|
": ",
|
|
35
|
-
|
|
32
|
+
s.toString(),
|
|
36
33
|
i < r.descriptions.length - 1 && /* @__PURE__ */ o("br", {})
|
|
37
34
|
] }))
|
|
38
35
|
] })
|
|
39
36
|
] }),
|
|
40
|
-
/* @__PURE__ */ o(c, { ...r.textProps, children: /* @__PURE__ */ o(
|
|
37
|
+
/* @__PURE__ */ o(c, { ...r.textProps, children: /* @__PURE__ */ o(m, {}) })
|
|
41
38
|
] })) });
|
|
42
39
|
}
|
|
43
|
-
const
|
|
40
|
+
const w = p.memo(u);
|
|
44
41
|
export {
|
|
45
|
-
|
|
42
|
+
w as default
|
|
46
43
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Text, TextBlock, TEXT_OPACITY_MAP, DEFAULT_TEXT_COLOR, getTextOpacity, textSizeResponsiveValueFormatter, } from './Text';
|
|
2
|
-
export { TextSizeEnum } from '
|
|
2
|
+
export { TextSizeEnum } from '../../utils/ui';
|
|
3
3
|
export type { TextSize, TextWeight, TextOpacity, TextAs, TextLetterSpacing, TextProps, TextColorProps, ResponsiveTextSize, TextFamaly, } from './Text.types';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { DEFAULT_TEXT_COLOR as
|
|
2
|
-
import
|
|
1
|
+
import { DEFAULT_TEXT_COLOR as o, TEXT_OPACITY_MAP as r, Text as x, TextBlock as i, getTextOpacity as m, textSizeResponsiveValueFormatter as p } from "./Text.js";
|
|
2
|
+
import "../../utils/ui/ui.js";
|
|
3
|
+
import { TextSizeEnum as O } from "../../utils/ui/ui.types.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
o as DEFAULT_TEXT_COLOR,
|
|
6
|
+
r as TEXT_OPACITY_MAP,
|
|
6
7
|
x as Text,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
i as TextBlock,
|
|
9
|
+
O as TextSizeEnum,
|
|
10
|
+
m as getTextOpacity,
|
|
11
|
+
p as textSizeResponsiveValueFormatter
|
|
11
12
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
|
2
2
|
import i from "react";
|
|
3
3
|
import { Flex as r } from "../Layout/Flex/Flex.js";
|
|
4
4
|
import { Text as o } from "../Text/Text.js";
|
|
5
|
-
import "
|
|
5
|
+
import "../../utils/ui/ui.js";
|
|
6
6
|
import { Title as l } from "./Title.js";
|
|
7
7
|
function m() {
|
|
8
8
|
return /* @__PURE__ */ e(r, { gap: "large", vertical: !0, children: /* @__PURE__ */ t(r, { gap: "normal", vertical: !0, children: [
|
|
@@ -2,7 +2,7 @@ import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import u from "react";
|
|
3
3
|
import { Flex as r } from "../Layout/Flex/Flex.js";
|
|
4
4
|
import { Text as a } from "../Text/Text.js";
|
|
5
|
-
import "
|
|
5
|
+
import "../../utils/ui/ui.js";
|
|
6
6
|
import { ToggleGroup as i } from "./ToggleGroup.js";
|
|
7
7
|
const n = [
|
|
8
8
|
{
|