@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.
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 +7 -6
  66. package/dist/main.js +208 -194
  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
@@ -2,7 +2,7 @@ import { jsx as c, jsxs as v } from "react/jsx-runtime";
2
2
  import e from "react";
3
3
  import { Icon as A } from "../Icon/Icon.js";
4
4
  import { Text as b } from "../Text/Text.js";
5
- import { ui as I } from "../ui.js";
5
+ import { ui as I } from "../../utils/ui/ui.js";
6
6
  import { clsx as w } from "../../utils/clsx.js";
7
7
  import { debounce as R } from "../../utils/execution.js";
8
8
  import { minmax as y } from "../../utils/math.js";
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
2
  import h from "react";
3
3
  import { Flex as a } from "../Layout/Flex/Flex.js";
4
4
  import { Text as c } from "../Text/Text.js";
5
- import "../ui.js";
5
+ import "../../utils/ui/ui.js";
6
6
  import { Accordion as l, AccordionItem as o, AccordionHeader as i, AccordionTrigger as n, AccordionContent as r } from "./Accordion.js";
7
7
  function s() {
8
8
  return /* @__PURE__ */ e(a, { fullWidth: !0, vertical: !0, children: /* @__PURE__ */ t(a, { fullWidth: !0, vertical: !0, children: [
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
2
  import a from "react";
3
3
  import { Flex as l } 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 { Avatar as i } from "./Avatar.js";
7
7
  function u() {
8
8
  return /* @__PURE__ */ r(l, { fullWidth: !0, vertical: !0, children: [
@@ -1,10 +1,17 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconName } from '../Icon';
3
+ import { ColorType } from '../../utils/ui';
3
4
 
4
- export type BadgeColor = 'success' | 'neutral' | 'warning' | 'error';
5
+ export declare enum BadgeColorEnum {
6
+ success = "success",
7
+ neutral = "neutral",
8
+ warning = "warning",
9
+ error = "error"
10
+ }
11
+ export type BadgeColor = keyof typeof BadgeColorEnum;
5
12
  export type BadgeSize = 'small' | 'normal';
6
13
  export interface BadgeProps {
7
- color?: BadgeColor;
14
+ color?: BadgeColor | ColorType;
8
15
  size?: BadgeSize;
9
16
  icon?: IconName;
10
17
  children?: React.ReactNode;
@@ -1,30 +1,57 @@
1
- import { jsxs as i, jsx as f } from "react/jsx-runtime";
2
- import m from "react";
3
- import { Icon as u } from "../Icon/Icon.js";
4
- import { clsx as d } from "../../utils/clsx.js";
5
- const x = "cfxui__Badge__root__73dcc", g = "cfxui__Badge__success__b5ae3", B = "cfxui__Badge__hoverable__4b089", b = "cfxui__Badge__neutral__6ac4e", h = "cfxui__Badge__warning__72699", v = "cfxui__Badge__error__7e5f9", p = "cfxui__Badge__small__a1a55", w = "cfxui__Badge__icon__4e25f", o = {
6
- root: x,
7
- success: g,
8
- hoverable: B,
9
- neutral: b,
10
- warning: h,
11
- error: v,
12
- small: p,
13
- icon: w
14
- }, I = m.forwardRef(function(e, c) {
1
+ import { jsxs as x, jsx as b } from "react/jsx-runtime";
2
+ import p from "react";
3
+ import { Icon as v } from "../Icon/Icon.js";
4
+ import { clsx as h } from "../../utils/clsx.js";
5
+ import { getColor as c } from "../../utils/color.js";
6
+ import { isInEnum as a } from "../../utils/enum.js";
7
+ import "../../utils/ui/ui.js";
8
+ import { ColorEnum as B } from "../../utils/ui/ui.types.js";
9
+ const w = "cfxui__Badge__root__73dcc", N = "cfxui__Badge__hoverable__4b089", y = "cfxui__Badge__success__b5ae3", j = "cfxui__Badge__neutral__6ac4e", z = "cfxui__Badge__warning__72699", I = "cfxui__Badge__error__7e5f9", R = "cfxui__Badge__small__a1a55", C = "cfxui__Badge__icon__4e25f", e = {
10
+ root: w,
11
+ hoverable: N,
12
+ success: y,
13
+ neutral: j,
14
+ warning: z,
15
+ error: I,
16
+ small: R,
17
+ icon: C
18
+ };
19
+ var _ = /* @__PURE__ */ ((o) => (o.success = "success", o.neutral = "neutral", o.warning = "warning", o.error = "error", o))(_ || {});
20
+ const K = p.forwardRef(function(n, t) {
15
21
  const {
16
- color: s = "success",
17
- size: a = "normal",
18
- children: r,
19
- icon: _,
20
- className: n,
21
- hoverable: t = !1
22
- } = e, l = d(o.root, n, o[s], o[a], { [o.hoverable]: t });
23
- return /* @__PURE__ */ i("div", { ref: c, className: l, children: [
24
- r,
25
- !!_ && /* @__PURE__ */ f(u, { size: "xxsmall", name: _, className: o.icon })
22
+ color: r = "success",
23
+ size: i = "normal",
24
+ children: l,
25
+ icon: s,
26
+ className: m,
27
+ hoverable: f = !1
28
+ } = n, u = a(r, _) ? e[r] : void 0, g = a(r, B) ? {
29
+ "--badge-color": c({
30
+ color: r
31
+ }),
32
+ "--badge-bg-color": c({
33
+ color: r,
34
+ opacity: 0.2
35
+ }),
36
+ "--badge-bg-hover-color": c({
37
+ color: r,
38
+ opacity: 0.4
39
+ })
40
+ } : {}, d = h(
41
+ e.root,
42
+ m,
43
+ u,
44
+ e[i],
45
+ {
46
+ [e.hoverable]: f
47
+ }
48
+ );
49
+ return /* @__PURE__ */ x("div", { ref: t, className: d, style: g, children: [
50
+ l,
51
+ !!s && /* @__PURE__ */ b(v, { size: "xxsmall", name: s, className: e.icon })
26
52
  ] });
27
53
  });
28
54
  export {
29
- I as Badge
55
+ K as Badge,
56
+ _ as BadgeColorEnum
30
57
  };
@@ -2,7 +2,7 @@ import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
2
  import o from "react";
3
3
  import { Flex as l } 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 { Badge as c } from "./Badge.js";
7
7
  function n() {
8
8
  return /* @__PURE__ */ e(l, { gap: "large", vertical: !0, children: [
@@ -4,7 +4,7 @@ import { Icon as k } from "../Icon/Icon.js";
4
4
  import { Interactive as m } from "../Interactive/Interactive.js";
5
5
  import { Flex as r } from "../Layout/Flex/Flex.js";
6
6
  import { Text as w } from "../Text/Text.js";
7
- import "../ui.js";
7
+ import "../../utils/ui/ui.js";
8
8
  import { clsx as h } from "../../utils/clsx.js";
9
9
  import { s as l } from "../../BurgerMenu.module-CyY93Y4u.js";
10
10
  function K({
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
2
  import a, { useState as s, useCallback as u } from "react";
3
3
  import { Flex as t } from "../Layout/Flex/Flex.js";
4
4
  import { Text as m } from "../Text/Text.js";
5
- import "../ui.js";
5
+ import "../../utils/ui/ui.js";
6
6
  import { BurgerMenu as c } from "./BurgerMenu.js";
7
7
  import { BurgerMenuButton as g } from "./BurgerMenuButton.js";
8
8
  const d = [
@@ -2,7 +2,7 @@ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import l from "react";
3
3
  import { Flex as n } 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 { Button as r } from "./Button.js";
7
7
  import { ButtonBar as o } from "./ButtonBar.js";
8
8
  import { LinkButton as c } from "./LinkButton.js";
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { GetColorProps } from '../../utils/color';
3
3
  import * as CheckboxUi from '@radix-ui/react-checkbox';
4
4
  export type CheckboxSize = 'small' | 'normal' | 'large';
5
- export interface CheckboxProps extends CheckboxUi.CheckboxProps, GetColorProps {
5
+ export interface CheckboxProps extends Omit<CheckboxUi.CheckboxProps, 'color'>, GetColorProps {
6
6
  id?: string;
7
7
  size?: CheckboxSize;
8
8
  rootClassName?: string;
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { IconSize } from '../Icon';
3
3
  import { InputSize } from '../Input';
4
4
  import { SelectOption } from '../Select';
5
- import { ResponsiveValueType } from '../ui';
5
+ import { ResponsiveValueType } from '../../utils/ui';
6
6
 
7
7
  export declare const ICON_SIZE_MAP: Record<InputSize, IconSize>;
8
8
  export interface DropdownSelectProps<T = string> {
@@ -9,9 +9,9 @@ import { u as Vn, a as Hn, b as Yn, o as Xn, s as jn, l as Zn, f as Qn, c as qn,
9
9
  import { _ as H, f as Mt, c as rr } from "../../tslib.es6-CBKHJX9H.js";
10
10
  import { Icon as or } from "../Icon/Icon.js";
11
11
  import { Flex as ar } from "../Layout/Flex/Flex.js";
12
- import { ui as ct } from "../ui.js";
13
- import { clsx as st } from "../../utils/clsx.js";
12
+ import { clsx as ct } from "../../utils/clsx.js";
14
13
  import { mergeRefs as ir } from "../../utils/mergeRefs.js";
14
+ import { ui as st } from "../../utils/ui/ui.js";
15
15
  var Pt = a.forwardRef((e, t) => {
16
16
  const { children: n, ...r } = e, o = a.Children.toArray(n), i = o.find(sr);
17
17
  if (i) {
@@ -2125,7 +2125,7 @@ const ii = "cfxui__DropdownSelect__trigger__c03df", ci = "cfxui__DropdownSelect_
2125
2125
  Kn(() => {
2126
2126
  c && m.current && w(m.current.offsetWidth);
2127
2127
  }, [c]);
2128
- const h = ct.getResponsiveFlatClassnames("dropdownselect-size", s).map((g) => G[g]), l = st(
2128
+ const h = st.getResponsiveFlatClassnames("dropdownselect-size", s).map((g) => G[g]), l = ct(
2129
2129
  G.trigger,
2130
2130
  h,
2131
2131
  {
@@ -2133,7 +2133,7 @@ const ii = "cfxui__DropdownSelect__trigger__c03df", ci = "cfxui__DropdownSelect_
2133
2133
  [G.fullWidth]: c,
2134
2134
  [G.onlight]: f
2135
2135
  }
2136
- ), E = st(
2136
+ ), E = ct(
2137
2137
  G.content,
2138
2138
  h,
2139
2139
  {
@@ -2161,7 +2161,7 @@ const ii = "cfxui__DropdownSelect__trigger__c03df", ci = "cfxui__DropdownSelect_
2161
2161
  className: E,
2162
2162
  style: {
2163
2163
  width: v,
2164
- zIndex: ct.zindex("max")
2164
+ zIndex: st.zindex("max")
2165
2165
  },
2166
2166
  children: r.map((g) => /* @__PURE__ */ d(
2167
2167
  ai,
@@ -2,7 +2,7 @@ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import r from "react";
3
3
  import { Flex as l } 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 { DropdownSelect as a } from "./DropdownSelect.js";
7
7
  const c = [
8
8
  {
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconName } from '../Icons';
3
3
  import { TextColorProps, ResponsiveTextSize } from '../Text';
4
- import { ResponsiveValueType } from '../ui';
4
+ import { ResponsiveValueType } from '../../utils/ui';
5
5
 
6
6
  export type IconSize = ResponsiveTextSize;
7
7
  export interface IconProps extends TextColorProps {
@@ -7,7 +7,7 @@ import "../Icons/cfx-icons-big/Upload.js";
7
7
  import "../Icons/cfx-icons-big/Warning.js";
8
8
  import "../Icons/cfx-icons-big/Confirm.js";
9
9
  import { textSizeResponsiveValueFormatter as c, getTextOpacity as u } from "../Text/Text.js";
10
- import { ui as t } from "../ui.js";
10
+ import { ui as t } from "../../utils/ui/ui.js";
11
11
  import { clsx as a } from "../../utils/clsx.js";
12
12
  import { getColor as h } from "../../utils/color.js";
13
13
  const C = "cfxui__Icon__root__6c380", d = {
@@ -47,7 +47,7 @@ import "../Icons/cfx-icons/UpvotesBurst.js";
47
47
  import "../Icons/cfx-icons/UpvotesRecurring.js";
48
48
  import { I as f } from "../../cfxIconsBig-BLJjMT-Y.js";
49
49
  import { getTextOpacity as g } from "../Text/Text.js";
50
- import "../ui.js";
50
+ import "../../utils/ui/ui.js";
51
51
  import { clsx as I } from "../../utils/clsx.js";
52
52
  import { getColor as x } from "../../utils/color.js";
53
53
  const z = "cfxui__IconBig__root__f259a", i = {
@@ -2,7 +2,7 @@ import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
2
  import a from "react";
3
3
  import { Flex as n } 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 { LOREM_IPSUM as t } from "../../utils/loremipsum.js";
7
7
  import l from "./InfoPanel.js";
8
8
  function c() {
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconName } from '../Icon';
3
- import { ResponsiveValueType } from '../ui';
3
+ import { ResponsiveValueType } from '../../utils/ui';
4
4
 
5
5
  export type InputSize = 'small' | 'normal' | 'large';
6
6
  export type InputTheme = 'default' | 'onlight';
@@ -3,9 +3,9 @@ import n from "react";
3
3
  import { Icon as T } from "../Icon/Icon.js";
4
4
  import W from "../IconButton/IconButton.js";
5
5
  import { Indicator as X } from "../Indicator/Indicator.js";
6
- import { ui as $ } from "../ui.js";
7
- import { clsx as q } from "../../utils/clsx.js";
8
- import { getValue as H } from "../../utils/getValue.js";
6
+ import { clsx as $ } from "../../utils/clsx.js";
7
+ import { getValue as q } from "../../utils/getValue.js";
8
+ import { ui as H } from "../../utils/ui/ui.js";
9
9
  const J = "cfxui__Input__root__6392b", L = "cfxui__Input__input__07830", O = "cfxui__Input__empty__3b36a", P = "cfxui__Input__placeholderIcon__4d079", Q = "cfxui__Input__decorator__3b81f", U = "cfxui__Input__small__c1513", Y = "cfxui__Input__large__92d72", Z = "cfxui__Input__onlight__7d0b7", e = {
10
10
  root: J,
11
11
  "full-width": "cfxui__Input__full-width__587b3",
@@ -40,7 +40,7 @@ function ee(x) {
40
40
  hasValue: c,
41
41
  onCleare: a
42
42
  } = x;
43
- return s ? /* @__PURE__ */ i("div", { className: e.decorator, children: /* @__PURE__ */ i(X, {}) }) : t ? /* @__PURE__ */ i("div", { className: e.decorator, children: H(t) }) : o === "search" && c ? /* @__PURE__ */ i("div", { className: e.decorator, children: /* @__PURE__ */ i(W, { size: "xsmall", areaSize: "large", name: "Close", onClick: a }) }) : null;
43
+ return s ? /* @__PURE__ */ i("div", { className: e.decorator, children: /* @__PURE__ */ i(X, {}) }) : t ? /* @__PURE__ */ i("div", { className: e.decorator, children: q(t) }) : o === "search" && c ? /* @__PURE__ */ i("div", { className: e.decorator, children: /* @__PURE__ */ i(W, { size: "xsmall", areaSize: "large", name: "Close", onClick: a }) }) : null;
44
44
  }
45
45
  const se = n.forwardRef(function(t, s) {
46
46
  const {
@@ -82,11 +82,11 @@ const se = n.forwardRef(function(t, s) {
82
82
  d && d(l), p && l.key === "Enter" && p();
83
83
  }, [d, p]), M = n.useCallback(() => {
84
84
  u("");
85
- }, [u]), j = q(
85
+ }, [u]), j = $(
86
86
  e.root,
87
87
  e[E],
88
88
  v,
89
- $.getResponsiveFlatClassnames("input-size", w).map((l) => e[l]),
89
+ H.getResponsiveFlatClassnames("input-size", w).map((l) => e[l]),
90
90
  {
91
91
  [e["full-width"]]: c,
92
92
  [e["backdrop-blur"]]: V,
@@ -2,7 +2,7 @@ import { jsxs as l, jsx as e } 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 a } from "../Text/Text.js";
5
- import "../ui.js";
5
+ import "../../utils/ui/ui.js";
6
6
  import c from "./Input.js";
7
7
  const m = /^\+?[0-9]*$/;
8
8
  function s() {
@@ -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
  import { InputSize } from './Input';
4
4
 
5
5
  export interface RichInputProps {
@@ -1,12 +1,12 @@
1
1
  import { jsxs as w, jsx as l } from "react/jsx-runtime";
2
2
  import i from "react";
3
3
  import { Button as y } from "../Button/Button.js";
4
- import { ui as B } from "../ui.js";
5
- import { clsx as D } from "../../utils/clsx.js";
4
+ import { clsx as B } from "../../utils/clsx.js";
6
5
  import { useDynamicRef as _ } from "../../utils/hooks/useDynamicRef.js";
7
6
  import "../../utils/hooks/useGlobalKeyboardEvent.js";
8
7
  import "../../utils/hooks/useKeyboardClose.js";
9
8
  import "../../index-2hJuj4UN.js";
9
+ import { ui as D } from "../../utils/ui/ui.js";
10
10
  const L = "cfxui__RichInput__root__57e6e", T = "cfxui__RichInput__renderer__8b298", j = "cfxui__RichInput__clear__5538b", c = {
11
11
  root: L,
12
12
  renderer: T,
@@ -51,10 +51,10 @@ const L = "cfxui__RichInput__root__57e6e", T = "cfxui__RichInput__renderer__8b29
51
51
  s.current(t.selectionStart, t.selectionEnd, t.selectionDirection);
52
52
  }, []), v = i.useCallback((e) => {
53
53
  r.current && (r.current.scrollTop = e.target.scrollTop, r.current.scrollLeft = e.target.scrollLeft);
54
- }, []), F = D(
54
+ }, []), F = B(
55
55
  c.root,
56
56
  R,
57
- B.getResponsiveFlatClassnames("richinput-size", p).map((e) => c[e])
57
+ D.getResponsiveFlatClassnames("richinput-size", p).map((e) => c[e])
58
58
  );
59
59
  return /* @__PURE__ */ w("div", { ref: m, className: F, children: [
60
60
  /* @__PURE__ */ l(
@@ -1,7 +1,7 @@
1
1
  import { jsx as b } from "react/jsx-runtime";
2
2
  import g from "react";
3
- import { ui as p } from "../ui.js";
4
- import { clsx as h } from "../../utils/clsx.js";
3
+ import { clsx as p } from "../../utils/clsx.js";
4
+ import { ui as h } from "../../utils/ui/ui.js";
5
5
  const n = "cfxui__Island__root__24fd9", s = "cfxui__Island__grow__c1786", t = {
6
6
  root: n,
7
7
  grow: s,
@@ -18,7 +18,7 @@ const L = g.forwardRef(function(i, d) {
18
18
  straightCorner: r = 0,
19
19
  children: u,
20
20
  className: e
21
- } = i, c = h(t.root, e, {
21
+ } = i, c = p(t.root, e, {
22
22
  [t.grow]: m,
23
23
  [t["no-round-border-top-left"]]: r & 1,
24
24
  [t["no-round-border-top-right"]]: r & 2,
@@ -26,7 +26,7 @@ const L = g.forwardRef(function(i, d) {
26
26
  [t["no-round-border-bottom-right"]]: r & 8
27
27
  /* BottomRight */
28
28
  }), f = {};
29
- return _ > 0 && (f.width = p.q(_)), /* @__PURE__ */ b("div", { className: c, style: f, ref: d, children: u });
29
+ return _ > 0 && (f.width = h.q(_)), /* @__PURE__ */ b("div", { className: c, style: f, ref: d, children: u });
30
30
  });
31
31
  export {
32
32
  L as Island,
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { MPProps, ResponsiveValueType } from '../../ui';
2
+ import { MPProps, ResponsiveValueType } from '../../../utils/ui';
3
3
 
4
4
  export interface BoxProps extends MPProps {
5
5
  noOverflow?: boolean;
@@ -1,8 +1,8 @@
1
1
  import { jsx as R } from "react/jsx-runtime";
2
2
  import c from "react";
3
3
  import { useContextualStyle as S } from "../../Style/Style.js";
4
- import { ui as o } from "../../ui.js";
5
4
  import { clsx as C } from "../../../utils/clsx.js";
5
+ import { ui as o } from "../../../utils/ui/ui.js";
6
6
  const k = "cfxui__Box__root__299ae", M = "cfxui__Box__grow__7ee8d", t = {
7
7
  root: k,
8
8
  "full-width": "cfxui__Box__full-width__2b253",
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { BoxProps } from '../Box/Box';
3
- import { ResponsiveOffsetType, ResponsiveValueType } from '../../ui';
3
+ import { ResponsiveOffsetType, ResponsiveValueType } from '../../../utils/ui';
4
4
  import { FlexAlignItemsType, FlexCentredType, FlexDirectionType, FlexJustifyContentType, FlexWrapType } from './Flex.types';
5
5
 
6
6
  export interface FlexProps extends BoxProps {
@@ -1,8 +1,8 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import d from "react";
3
3
  import { Box as y } from "../Box/Box.js";
4
- import { ui as s } from "../../ui.js";
5
4
  import { clsx as C } from "../../../utils/clsx.js";
5
+ import { ui as s } from "../../../utils/ui/ui.js";
6
6
  import { FlexRestricter as S } from "./FlexRestricter.js";
7
7
  const j = "cfxui__Flex__root__d860a", z = "cfxui__Flex__centered__e911c", N = "cfxui__Flex__vertical__552db", B = "cfxui__Flex__repell__6ea3f", E = "cfxui__Flex__wrap__9d0d6", O = "cfxui__Flex__stretch__5c1ce", T = "cfxui__Flex__horizontal__d64f7", e = {
8
8
  root: j,
@@ -1,5 +1,6 @@
1
1
  export { Flex } from './Flex';
2
2
  export type { FlexType, FlexProps } from './Flex';
3
- export type { FlexDirectionType, FlexAlignItemsType, FlexJustifyContentType, FlexWrapType, FlexCentredType, FlexDirectionEnum, FlexAlignItemsEnum, FlexJustifyContentEnum, FlexWrapEnum, FlexCentredEnum, } from './Flex.types';
3
+ export type { FlexDirectionType, FlexAlignItemsType, FlexJustifyContentType, FlexWrapType, FlexCentredType, } from './Flex.types';
4
+ export { FlexDirectionEnum, FlexAlignItemsEnum, FlexJustifyContentEnum, FlexWrapEnum, FlexCentredEnum, } from './Flex.types';
4
5
  export { FlexRestricter } from './FlexRestricter';
5
6
  export type { FlexRestricterProps } from './FlexRestricter';
@@ -1,6 +1,12 @@
1
- import { Flex as o } from "./Flex.js";
2
- import { FlexRestricter as x } from "./FlexRestricter.js";
1
+ import { Flex as t } from "./Flex.js";
2
+ import { FlexAlignItemsEnum as x, FlexCentredEnum as m, FlexDirectionEnum as l, FlexJustifyContentEnum as o, FlexWrapEnum as F } from "./Flex.types.js";
3
+ import { FlexRestricter as i } from "./FlexRestricter.js";
3
4
  export {
4
- o as Flex,
5
- x as FlexRestricter
5
+ t as Flex,
6
+ x as FlexAlignItemsEnum,
7
+ m as FlexCentredEnum,
8
+ l as FlexDirectionEnum,
9
+ o as FlexJustifyContentEnum,
10
+ i as FlexRestricter,
11
+ F as FlexWrapEnum
6
12
  };
@@ -2,7 +2,7 @@ import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
2
  import d from "react";
3
3
  import { Flex as i } from "../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 { LOREM_IPSUM as e } from "../../../utils/loremipsum.js";
7
7
  import { Scrollable as o } from "./Scrollable.js";
8
8
  function c() {
@@ -1,27 +1,32 @@
1
- import { jsx as r } from "react/jsx-runtime";
1
+ import { jsx as i } from "react/jsx-runtime";
2
2
  import m from "react";
3
- import { getLinkClassName as i } from "./Link.js";
4
- function l(t) {
3
+ import { getLinkClassName as c, getLinkStyles as d } from "./Link.js";
4
+ function u(t) {
5
5
  const {
6
- className: c,
7
- children: e,
8
- type: o = "button",
9
- disabled: a = !1,
10
- ...s
11
- } = t, n = i(t);
12
- return /* @__PURE__ */ r(
6
+ className: f,
7
+ children: s,
8
+ type: a = "button",
9
+ disabled: e = !1,
10
+ style: o,
11
+ ...n
12
+ } = t, l = c(t), r = d(t);
13
+ return /* @__PURE__ */ i(
13
14
  "button",
14
15
  {
15
- ...s,
16
- className: n,
17
- type: o,
18
- "aria-disabled": a,
19
- tabIndex: a ? -1 : 0,
20
- children: e
16
+ ...n,
17
+ style: {
18
+ ...r,
19
+ ...o
20
+ },
21
+ className: l,
22
+ type: a,
23
+ "aria-disabled": e,
24
+ tabIndex: e ? -1 : 0,
25
+ children: s
21
26
  }
22
27
  );
23
28
  }
24
- const b = m.memo(l);
29
+ const L = m.memo(u);
25
30
  export {
26
- b as default
31
+ L as default
27
32
  };
@@ -1,12 +1,14 @@
1
1
  import { default as React } from 'react';
2
+ import { ColorType } from '../../utils/ui';
2
3
 
3
4
  export interface LinkBaseProps {
5
+ color?: ColorType;
4
6
  className?: string;
5
7
  disabled?: boolean;
6
8
  unstyled?: boolean;
7
- theme?: 'default' | 'secondary';
8
9
  }
9
10
  export declare function getLinkClassName(props: LinkBaseProps): string;
11
+ export declare function getLinkStyles(props: LinkBaseProps): React.CSSProperties;
10
12
  export type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & LinkBaseProps;
11
13
  declare function Link(props: LinkProps): import("react/jsx-runtime").JSX.Element;
12
14
  declare const _default: React.MemoExoticComponent<typeof Link>;