@cfx-dev/ui-components 4.2.21 → 4.2.23

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.
Files changed (79) hide show
  1. package/dist/assets/css/Badge.css +1 -1
  2. package/dist/assets/css/Link.css +1 -1
  3. package/dist/assets/general/global.css +1 -1
  4. package/dist/components/Accordion/Accordion.js +1 -1
  5. package/dist/components/Accordion/AccordionShowcase.js +1 -1
  6. package/dist/components/Avatar/AvatarShowcase.js +1 -1
  7. package/dist/components/Badge/Badge.d.ts +9 -2
  8. package/dist/components/Badge/Badge.js +52 -25
  9. package/dist/components/Badge/BadgeShowcase.js +1 -1
  10. package/dist/components/BurgerMenu/BurgerMenu.js +1 -1
  11. package/dist/components/BurgerMenu/BurgerMenuShowcase.js +1 -1
  12. package/dist/components/Button/ButtonShowcase.js +1 -1
  13. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  14. package/dist/components/DropdownSelect/DropdownSelect.d.ts +1 -1
  15. package/dist/components/DropdownSelect/DropdownSelect.js +5 -5
  16. package/dist/components/DropdownSelect/DropdownSelectShowcase.js +1 -1
  17. package/dist/components/Icon/Icon.d.ts +1 -1
  18. package/dist/components/Icon/Icon.js +1 -1
  19. package/dist/components/IconBig/IconBig.js +1 -1
  20. package/dist/components/InfoPanel/InfoPanelShowcase.js +1 -1
  21. package/dist/components/Input/Input.d.ts +1 -1
  22. package/dist/components/Input/Input.js +6 -6
  23. package/dist/components/Input/InputShowcase.js +1 -1
  24. package/dist/components/Input/RichInput.d.ts +1 -1
  25. package/dist/components/Input/RichInput.js +4 -4
  26. package/dist/components/Island/Island.js +4 -4
  27. package/dist/components/Layout/Box/Box.d.ts +1 -1
  28. package/dist/components/Layout/Box/Box.js +1 -1
  29. package/dist/components/Layout/Flex/Flex.d.ts +1 -1
  30. package/dist/components/Layout/Flex/Flex.js +1 -1
  31. package/dist/components/Layout/Flex/index.d.ts +2 -1
  32. package/dist/components/Layout/Flex/index.js +10 -4
  33. package/dist/components/Layout/Scrollable/ScrollableShowcase.js +1 -1
  34. package/dist/components/Link/ButtonLink.js +23 -18
  35. package/dist/components/Link/Link.d.ts +3 -1
  36. package/dist/components/Link/Link.js +48 -30
  37. package/dist/components/Link/LinkShowcase.js +46 -41
  38. package/dist/components/Link/index.d.ts +1 -1
  39. package/dist/components/Link/index.js +6 -5
  40. package/dist/components/Logos/LogosShowcase.js +1 -1
  41. package/dist/components/Modal/Modal.js +1 -1
  42. package/dist/components/Select/Select.d.ts +1 -1
  43. package/dist/components/Select/Select.js +1 -1
  44. package/dist/components/Select/SelectShowcase.js +1 -1
  45. package/dist/components/Separator/Separator.d.ts +1 -1
  46. package/dist/components/Separator/Separator.js +1 -1
  47. package/dist/components/Shroud/Shroud.js +6 -6
  48. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  49. package/dist/components/Skeleton/Skeleton.js +1 -1
  50. package/dist/components/Skeleton/SkeletonShowcase.js +1 -1
  51. package/dist/components/Slider/SliderShowcase.js +1 -1
  52. package/dist/components/Spacer/Spacer.d.ts +1 -1
  53. package/dist/components/Table/Table.js +1 -1
  54. package/dist/components/Table/TableShowcase.js +1 -1
  55. package/dist/components/Tabular/Tabular.d.ts +1 -1
  56. package/dist/components/Tabular/Tabular.js +1 -1
  57. package/dist/components/Tabular/TabularShowcase.js +1 -1
  58. package/dist/components/Text/Text.js +13 -12
  59. package/dist/components/Text/Text.types.d.ts +1 -1
  60. package/dist/components/Text/TextShowcase.js +12 -15
  61. package/dist/components/Text/index.d.ts +1 -1
  62. package/dist/components/Text/index.js +9 -8
  63. package/dist/components/Title/TitleShowcase.js +1 -1
  64. package/dist/components/ToggleGroup/ToggleGroupShowcase.js +1 -1
  65. package/dist/main.d.ts +8 -7
  66. package/dist/main.js +211 -196
  67. package/dist/styles-scss/global.scss +2 -2
  68. package/dist/styles-scss/tokens.scss +0 -4
  69. package/dist/utils/color.d.ts +3 -1
  70. package/dist/utils/enum.d.ts +1 -0
  71. package/dist/utils/enum.js +6 -0
  72. package/dist/utils/ui/index.d.ts +3 -0
  73. package/dist/utils/ui/index.js +11 -0
  74. package/dist/{components → utils/ui}/ui.d.ts +2 -68
  75. package/dist/utils/ui/ui.js +68 -0
  76. package/dist/utils/ui/ui.types.d.ts +86 -0
  77. package/dist/utils/ui/ui.types.js +9 -0
  78. package/package.json +1 -1
  79. package/dist/components/ui.js +0 -73
@@ -1,44 +1,62 @@
1
- import { jsx as _ } from "react/jsx-runtime";
2
- import c from "react";
3
- import { clsx as i } from "../../utils/clsx.js";
4
- const r = "cfxui__Link__unsetAll__58fea", d = "cfxui__Link__root__a29b3", u = "cfxui__Link__unstyled__f020c", f = "cfxui__Link__secondary__1e0f9", s = {
5
- unsetAll: r,
6
- root: d,
7
- unstyled: u,
8
- secondary: f
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 m(e) {
10
+ function k(t) {
11
11
  const {
12
- className: a,
12
+ className: o,
13
13
  disabled: n = !1,
14
- unstyled: t = !1,
15
- theme: o = "default"
16
- } = e;
17
- return i(s.unsetAll, s.root, s[o], {
18
- [s.disabled]: n,
19
- [s.unstyled]: t
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 y(e) {
21
+ function x(t) {
23
22
  const {
24
- className: a,
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: t = !1,
27
- ...o
28
- } = e, l = m(e);
29
- return /* @__PURE__ */ _(
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
- ...o,
33
- tabIndex: t ? -1 : 0,
34
- "aria-disabled": t,
35
- className: l,
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 b = c.memo(y);
57
+ const g = _.memo(L);
41
58
  export {
42
- b as default,
43
- m as getLinkClassName
59
+ g as default,
60
+ k as getLinkClassName,
61
+ x as getLinkStyles
44
62
  };
@@ -1,63 +1,68 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
2
  import d from "react";
3
- import { Flex as n } from "../Layout/Flex/Flex.js";
4
- import { Text as r } from "../Text/Text.js";
5
- import "../ui.js";
6
- import l from "./ButtonLink.js";
7
- import t from "./Link.js";
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__ */ i(n, { gap: "large", vertical: !0, children: [
10
- /* @__PURE__ */ i(n, { gap: "normal", vertical: !0, children: [
11
- /* @__PURE__ */ e(r, { children: "Theme Default" }),
12
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { href: "/", children: "Link active" }) }),
13
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { href: "/", disabled: !0, children: "Link disable" }) }),
14
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { href: "/", unstyled: !0, children: "Link unstyled" }) })
15
- ] }),
16
- /* @__PURE__ */ i(n, { gap: "normal", vertical: !0, children: [
17
- /* @__PURE__ */ e(r, { children: "Theme secondary" }),
18
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { href: "/", theme: "secondary", children: "Link active" }) }),
19
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { href: "/", theme: "secondary", disabled: !0, children: "Link disable" }) })
20
- ] }),
21
- /* @__PURE__ */ i(n, { gap: "normal", vertical: !0, children: [
22
- /* @__PURE__ */ e(r, { children: "ButtonLink - look like link but its button" }),
23
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { children: "Link active" }) }),
24
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { disabled: !0, children: "Link disable" }) })
25
- ] }),
26
- /* @__PURE__ */ i(n, { gap: "normal", vertical: !0, children: [
27
- /* @__PURE__ */ e(r, { children: "Inside text" }),
28
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", children: [
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(t, { href: "/", children: "Link text" })
35
+ /* @__PURE__ */ e(n, { href: "/", children: "Link text" })
31
36
  ] }) })
32
37
  ] }),
33
- /* @__PURE__ */ i(n, { gap: "normal", vertical: !0, children: [
34
- /* @__PURE__ */ e(r, { children: "Inside typographic text" }),
35
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", typographic: !0, children: [
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(t, { href: "/", children: "Link text" })
42
+ /* @__PURE__ */ e(n, { href: "/", children: "Link text" })
38
43
  ] }) })
39
44
  ] }),
40
- /* @__PURE__ */ i(n, { gap: "normal", vertical: !0, children: [
41
- /* @__PURE__ */ e(r, { children: "Row a tag" }),
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__ */ i(n, { gap: "normal", vertical: !0, children: [
45
- /* @__PURE__ */ e(r, { children: "Row a in text" }),
46
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", children: [
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__ */ i(n, { gap: "normal", vertical: !0, children: [
52
- /* @__PURE__ */ e(r, { children: "Row a in typographic text" }),
53
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", typographic: !0, children: [
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 f = d.memo(c);
65
+ const k = d.memo(c);
61
66
  export {
62
- f as default
67
+ k as default
63
68
  };
@@ -1,3 +1,3 @@
1
- export { default as Link, getLinkClassName } from './Link';
1
+ export { default as Link, getLinkClassName, getLinkStyles, } from './Link';
2
2
  export { default as ButtonLink } from './ButtonLink';
3
3
  export type { LinkBaseProps, LinkProps } from './Link';
@@ -1,7 +1,8 @@
1
- import { default as e, getLinkClassName as o } from "./Link.js";
2
- import { default as n } from "./ButtonLink.js";
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
- n as ButtonLink,
5
- e as Link,
6
- o as getLinkClassName
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 "../ui.js";
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 "../ui.js";
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,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { InputSize } from '../Input';
3
- import { ResponsiveValueType } from '../ui';
3
+ import { ResponsiveValueType } from '../../utils/ui';
4
4
 
5
5
  export interface SelectOption<T> {
6
6
  value: T;
@@ -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 "../ui.js";
5
+ import "../../utils/ui/ui.js";
6
6
  import { Select as n } from "./Select.js";
7
7
  const t = [
8
8
  {
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { MPProps, OffsetType } from '../ui';
2
+ import { MPProps, OffsetType } from '../../utils/ui';
3
3
 
4
4
  export interface SeparatorProps extends MPProps {
5
5
  thin?: boolean;
@@ -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 b } from "../../utils/hooks/useWindowResize.js";
8
- import { useOutlet as x } from "../../utils/hooks/useOutlet.js";
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 = x(_, "before"), i = r.useCallback(() => {
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}`, p.px(c)],
29
+ [`--${a}`, x.px(c)],
30
30
  [`--${a}-raw`, c]
31
31
  ])
32
32
  )
33
33
  );
34
34
  }, []);
35
- return r.useEffect(i, []), b(i), /* @__PURE__ */ t(f, { children: /* @__PURE__ */ h("div", { ref: n, className: e.root, style: u, children: [
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 '../ui';
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 "../ui.js";
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 "../ui.js";
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 "../ui.js";
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
@@ -1,4 +1,4 @@
1
- import { OffsetType } from '../ui';
1
+ import { OffsetType } from '../../utils/ui';
2
2
 
3
3
  export interface SpacerProps {
4
4
  size?: OffsetType;
@@ -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 "../ui.js";
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 "../ui.js";
9
+ import "../../utils/ui/ui.js";
10
10
  import { Table as o } from "./Table.js";
11
11
  const i = [
12
12
  [
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ResponsiveValueType } from '../ui';
2
+ import { ResponsiveValueType } from '../../utils/ui';
3
3
 
4
4
  export type TabularTheme = 'light' | 'dark';
5
5
  export type TabularRole = 'tablist' | 'navigation';
@@ -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 "../ui.js";
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 l } from "react/jsx-runtime";
2
- import f from "react";
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 = f.forwardRef(function(o, r) {
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: h = "normal",
36
+ letterSpacing: p = "normal",
36
37
  as: s = "span",
37
- centered: p = !1,
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]: p,
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-${h})`,
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__ */ l(s, { ref: r, dir: "auto", className: C, style: a, children: b });
76
- }), J = f.forwardRef(function(o, r) {
77
- return /* @__PURE__ */ l(V, { ref: r, ...o, as: "div" });
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
- J as TextBlock,
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 u() {
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
- const x = {
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, { ...x, children: [
27
- r.descriptions.map((s, n) => /* @__PURE__ */ t(e, { children: [
28
- s,
29
- n < r.descriptions.length - 1 && /* @__PURE__ */ o("br", {})
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(([s, n], i) => /* @__PURE__ */ t(e, { children: [
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
- s,
30
+ n,
34
31
  ": ",
35
- n.toString(),
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(u, {}) })
37
+ /* @__PURE__ */ o(c, { ...r.textProps, children: /* @__PURE__ */ o(m, {}) })
41
38
  ] })) });
42
39
  }
43
- const E = p.memo(m);
40
+ const w = p.memo(u);
44
41
  export {
45
- E as default
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 '../ui';
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 T, TEXT_OPACITY_MAP as o, Text as x, TextBlock as r, getTextOpacity as i, textSizeResponsiveValueFormatter as m } from "./Text.js";
2
- import { TextSizeEnum as E } from "../ui.js";
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
- T as DEFAULT_TEXT_COLOR,
5
- o as TEXT_OPACITY_MAP,
5
+ o as DEFAULT_TEXT_COLOR,
6
+ r as TEXT_OPACITY_MAP,
6
7
  x as Text,
7
- r as TextBlock,
8
- E as TextSizeEnum,
9
- i as getTextOpacity,
10
- m as textSizeResponsiveValueFormatter
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 "../ui.js";
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 "../ui.js";
5
+ import "../../utils/ui/ui.js";
6
6
  import { ToggleGroup as i } from "./ToggleGroup.js";
7
7
  const n = [
8
8
  {