@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.
Files changed (160) 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.d.ts +1 -7
  5. package/dist/components/Accordion/Accordion.js +1 -1
  6. package/dist/components/Accordion/AccordionShowcase.js +1 -1
  7. package/dist/components/Accordion/index.d.ts +1 -0
  8. package/dist/components/Avatar/AvatarShowcase.js +1 -1
  9. package/dist/components/BackdropPortal/BackdropPortal.d.ts +2 -0
  10. package/dist/components/BackdropPortal/BackdropPortal.js +7 -5
  11. package/dist/components/BackdropPortal/index.d.ts +2 -0
  12. package/dist/components/BackdropPortal/index.js +5 -0
  13. package/dist/components/Badge/Badge.d.ts +9 -2
  14. package/dist/components/Badge/Badge.js +52 -25
  15. package/dist/components/Badge/BadgeShowcase.js +1 -1
  16. package/dist/components/Badge/index.d.ts +1 -1
  17. package/dist/components/BurgerMenu/BurgerMenu.js +1 -1
  18. package/dist/components/BurgerMenu/BurgerMenuShowcase.js +1 -1
  19. package/dist/components/Button/ButtonShowcase.js +1 -1
  20. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  21. package/dist/components/ClipboardButton/ClipboardButton.d.ts +3 -3
  22. package/dist/components/ClipboardButton/ClipboardButton.js +10 -9
  23. package/dist/components/ControlBox/ControlBox.d.ts +2 -0
  24. package/dist/components/ControlBox/ControlBox.js +10 -9
  25. package/dist/components/ControlBox/index.d.ts +2 -0
  26. package/dist/components/ControlBox/index.js +4 -0
  27. package/dist/components/CountryFlag/CountryFlag.d.ts +2 -0
  28. package/dist/components/CountryFlag/CountryFlag.js +14 -13
  29. package/dist/components/CountryFlag/index.d.ts +2 -0
  30. package/dist/components/CountryFlag/index.js +4 -0
  31. package/dist/components/Decorate/Decorate.d.ts +2 -0
  32. package/dist/components/Decorate/Decorate.js +15 -14
  33. package/dist/components/Decorate/index.d.ts +2 -0
  34. package/dist/components/Decorate/index.js +4 -0
  35. package/dist/components/DropdownSelect/DropdownSelect.d.ts +1 -1
  36. package/dist/components/DropdownSelect/DropdownSelect.js +801 -1039
  37. package/dist/components/DropdownSelect/DropdownSelectShowcase.js +1 -1
  38. package/dist/components/DropdownSelect/index.d.ts +1 -0
  39. package/dist/components/Flyout/Flyout.d.ts +2 -1
  40. package/dist/components/Flyout/index.d.ts +2 -0
  41. package/dist/components/Flyout/index.js +5 -0
  42. package/dist/components/Icon/Icon.d.ts +1 -1
  43. package/dist/components/Icon/Icon.js +1 -1
  44. package/dist/components/IconBig/IconBig.js +1 -1
  45. package/dist/components/IconButton/IconButton.d.ts +2 -3
  46. package/dist/components/IconButton/index.d.ts +1 -1
  47. package/dist/components/Indicator/index.d.ts +2 -0
  48. package/dist/components/Indicator/index.js +4 -0
  49. package/dist/components/InfoPanel/InfoPanelShowcase.js +1 -1
  50. package/dist/components/Input/Input.d.ts +1 -1
  51. package/dist/components/Input/Input.js +6 -6
  52. package/dist/components/Input/InputShowcase.js +1 -1
  53. package/dist/components/Input/RichInput.d.ts +1 -1
  54. package/dist/components/Input/RichInput.js +4 -4
  55. package/dist/components/Input/index.d.ts +1 -1
  56. package/dist/components/InputDropzone/index.d.ts +3 -3
  57. package/dist/components/InputDropzone/index.js +3 -3
  58. package/dist/components/Interactive/index.d.ts +2 -0
  59. package/dist/components/Interactive/index.js +4 -0
  60. package/dist/components/Island/Island.js +4 -4
  61. package/dist/components/Island/index.d.ts +2 -0
  62. package/dist/components/Island/index.js +5 -0
  63. package/dist/components/Layout/Box/Box.d.ts +2 -1
  64. package/dist/components/Layout/Box/Box.js +3 -2
  65. package/dist/components/Layout/Box/index.d.ts +2 -0
  66. package/dist/components/Layout/Box/index.js +5 -0
  67. package/dist/components/Layout/Center/index.d.ts +2 -0
  68. package/dist/components/Layout/Center/index.js +4 -0
  69. package/dist/components/Layout/Flex/Flex.d.ts +4 -4
  70. package/dist/components/Layout/Flex/Flex.js +1 -1
  71. package/dist/components/Layout/Flex/Flex.types.d.ts +7 -0
  72. package/dist/components/Layout/Flex/Flex.types.js +6 -5
  73. package/dist/components/Layout/Flex/index.d.ts +6 -0
  74. package/dist/components/Layout/Flex/index.js +12 -0
  75. package/dist/components/Layout/Pad/index.d.ts +2 -0
  76. package/dist/components/Layout/Pad/index.js +4 -0
  77. package/dist/components/Layout/Page/index.d.ts +2 -0
  78. package/dist/components/Layout/Page/index.js +4 -0
  79. package/dist/components/Layout/Scrollable/ScrollableShowcase.js +1 -1
  80. package/dist/components/Link/ButtonLink.js +23 -18
  81. package/dist/components/Link/Link.d.ts +3 -1
  82. package/dist/components/Link/Link.js +48 -30
  83. package/dist/components/Link/LinkShowcase.js +46 -41
  84. package/dist/components/Link/index.d.ts +1 -1
  85. package/dist/components/Link/index.js +6 -5
  86. package/dist/components/Loaf/index.d.ts +2 -0
  87. package/dist/components/Loaf/index.js +4 -0
  88. package/dist/components/Logos/LogosShowcase.js +1 -1
  89. package/dist/components/Modal/Modal.js +1 -1
  90. package/dist/components/NavList/index.d.ts +2 -0
  91. package/dist/components/NavList/index.js +4 -0
  92. package/dist/components/Overlay/index.d.ts +2 -0
  93. package/dist/components/Overlay/index.js +5 -0
  94. package/dist/components/PremiumBadge/index.d.ts +2 -0
  95. package/dist/components/PremiumBadge/index.js +4 -0
  96. package/dist/components/Prose/Prose.d.ts +1 -2
  97. package/dist/components/Prose/index.d.ts +2 -0
  98. package/dist/components/Prose/index.js +4 -0
  99. package/dist/components/Radio/index.d.ts +2 -0
  100. package/dist/components/Radio/index.js +4 -0
  101. package/dist/components/Select/Select.d.ts +1 -1
  102. package/dist/components/Select/Select.js +2 -2
  103. package/dist/components/Select/SelectShowcase.js +1 -1
  104. package/dist/components/Separator/Separator.d.ts +1 -1
  105. package/dist/components/Separator/Separator.js +1 -1
  106. package/dist/components/Separator/index.d.ts +2 -0
  107. package/dist/components/Separator/index.js +4 -0
  108. package/dist/components/Shroud/Shroud.js +6 -6
  109. package/dist/components/Shroud/index.d.ts +2 -0
  110. package/dist/components/Shroud/index.js +4 -0
  111. package/dist/components/Skeleton/Skeleton.d.ts +2 -2
  112. package/dist/components/Skeleton/Skeleton.js +1 -1
  113. package/dist/components/Skeleton/SkeletonShowcase.js +1 -1
  114. package/dist/components/Skeleton/index.d.ts +1 -0
  115. package/dist/components/Slider/Slider.js +294 -374
  116. package/dist/components/Slider/SliderShowcase.js +1 -1
  117. package/dist/components/Spacer/Spacer.d.ts +1 -1
  118. package/dist/components/Spacer/index.d.ts +2 -0
  119. package/dist/components/Spacer/index.js +4 -0
  120. package/dist/components/Style/index.d.ts +2 -0
  121. package/dist/components/Style/index.js +5 -0
  122. package/dist/components/Table/Table.d.ts +13 -4
  123. package/dist/components/Table/Table.js +3 -2
  124. package/dist/components/Table/TableShowcase.js +1 -1
  125. package/dist/components/Table/index.d.ts +2 -2
  126. package/dist/components/Table/index.js +5 -2
  127. package/dist/components/Tabular/Tabular.d.ts +1 -1
  128. package/dist/components/Tabular/Tabular.js +1 -1
  129. package/dist/components/Tabular/TabularShowcase.js +1 -1
  130. package/dist/components/Text/Text.js +13 -12
  131. package/dist/components/Text/Text.types.d.ts +3 -2
  132. package/dist/components/Text/TextShowcase.js +12 -15
  133. package/dist/components/Text/index.d.ts +2 -2
  134. package/dist/components/Text/index.js +9 -8
  135. package/dist/components/Textarea/index.d.ts +2 -0
  136. package/dist/components/Textarea/index.js +4 -0
  137. package/dist/components/Title/Title.d.ts +5 -4
  138. package/dist/components/Title/Title.js +4 -2
  139. package/dist/components/Title/TitleShowcase.js +1 -1
  140. package/dist/components/Title/index.d.ts +2 -0
  141. package/dist/components/Title/index.js +7 -0
  142. package/dist/components/ToggleGroup/ToggleGroupShowcase.js +1 -1
  143. package/dist/index-AweK2ufS.js +171 -0
  144. package/dist/{index-DBus3GoO.js → index-Bz27DCHt.js} +2 -2
  145. package/dist/main.d.ts +93 -69
  146. package/dist/main.js +217 -191
  147. package/dist/styles-scss/global.scss +2 -2
  148. package/dist/styles-scss/tokens.scss +0 -4
  149. package/dist/utils/color.d.ts +3 -1
  150. package/dist/utils/enum.d.ts +1 -0
  151. package/dist/utils/enum.js +6 -0
  152. package/dist/utils/ui/index.d.ts +3 -0
  153. package/dist/utils/ui/index.js +11 -0
  154. package/dist/{components → utils/ui}/ui.d.ts +2 -68
  155. package/dist/utils/ui/ui.js +68 -0
  156. package/dist/utils/ui/ui.types.d.ts +86 -0
  157. package/dist/utils/ui/ui.types.js +9 -0
  158. package/package.json +1 -1
  159. package/dist/components/ui.js +0 -73
  160. package/dist/index-CjTSD6zB.js +0 -161
@@ -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 +1,2 @@
1
1
  export { DropdownSelect } from './DropdownSelect';
2
+ export type { DropdownSelectProps } from './DropdownSelect';
@@ -1,9 +1,10 @@
1
1
  import { default as React } from 'react';
2
2
 
3
3
  export declare const FLYOUT_OUTLET_ID = "flyout-outlet";
4
+ export type FlyoutSize = 'normal' | 'small' | 'xsmall';
4
5
  export interface FlyoutProps {
5
6
  disabled?: boolean;
6
- size?: 'normal' | 'small' | 'xsmall';
7
+ size?: FlyoutSize;
7
8
  onClose?(): void;
8
9
  children?: React.ReactNode;
9
10
  holderClassName?: string;
@@ -0,0 +1,2 @@
1
+ export { FLYOUT_OUTLET_ID, Flyout } from './Flyout';
2
+ export type { FlyoutProps, FlyoutSize } from './Flyout';
@@ -0,0 +1,5 @@
1
+ import { FLYOUT_OUTLET_ID as r, Flyout as t } from "./Flyout.js";
2
+ export {
3
+ r as FLYOUT_OUTLET_ID,
4
+ t as Flyout
5
+ };
@@ -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 = {
@@ -1,9 +1,8 @@
1
1
  import { default as React } from 'react';
2
- import { IconSize } from '../Icon';
3
- import { IconName } from '../Icons';
2
+ import { IconSize, IconName } from '../Icon';
4
3
  import { TextColorProps } from '../Text';
5
4
 
6
- type IconButtonAreaSize = 'small' | 'medium' | 'large';
5
+ export type IconButtonAreaSize = 'small' | 'medium' | 'large';
7
6
  export interface IconButtonProps extends TextColorProps {
8
7
  name: IconName;
9
8
  size?: IconSize;
@@ -1,2 +1,2 @@
1
1
  export { default as IconButton } from './IconButton';
2
- export type { IconButtonProps } from './IconButton';
2
+ export type { IconButtonProps, IconButtonAreaSize } from './IconButton';
@@ -0,0 +1,2 @@
1
+ export { Indicator } from './Indicator';
2
+ export type { IndicatorProps } from './Indicator';
@@ -0,0 +1,4 @@
1
+ import { Indicator as t } from "./Indicator.js";
2
+ export {
3
+ t as Indicator
4
+ };
@@ -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,4 +1,4 @@
1
1
  export { default as Input } from './Input';
2
2
  export { default as RichInput } from './RichInput';
3
- export type { InputSize, InputProps } from './Input';
3
+ export type { InputSize, InputProps, InputTheme, } from './Input';
4
4
  export type { RichInputProps } from './RichInput';
@@ -1,4 +1,4 @@
1
1
  export { default as InputDropzone } from './InputDropzone';
2
- export type { FileWithPath, InputDropzoneProps } from './InputDropzone';
3
- export { default as ItemPreview } from './ItemPreview';
4
- export type { ItemPreviewProps } from './ItemPreview';
2
+ export type { FileWithPath as DropzoneFileWithPath, InputDropzoneProps } from './InputDropzone';
3
+ export { default as DropzoneItemPreview } from './ItemPreview';
4
+ export type { ItemPreviewProps as DropzoneItemPreviewProps } from './ItemPreview';
@@ -1,6 +1,6 @@
1
1
  import { default as r } from "./InputDropzone.js";
2
- import { default as a } from "./ItemPreview.js";
2
+ import { default as p } from "./ItemPreview.js";
3
3
  export {
4
- r as InputDropzone,
5
- a as ItemPreview
4
+ p as DropzoneItemPreview,
5
+ r as InputDropzone
6
6
  };
@@ -0,0 +1,2 @@
1
+ export { Interactive } from './Interactive';
2
+ export type { InteractiveProps } from './Interactive';
@@ -0,0 +1,4 @@
1
+ import { Interactive as t } from "./Interactive.js";
2
+ export {
3
+ t as Interactive
4
+ };
@@ -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,
@@ -0,0 +1,2 @@
1
+ export { Island, IslandCorner } from './Island';
2
+ export type { IslandProps } from './Island';
@@ -0,0 +1,5 @@
1
+ import { Island as o, IslandCorner as a } from "./Island.js";
2
+ export {
3
+ o as Island,
4
+ a as IslandCorner
5
+ };
@@ -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;
@@ -15,4 +15,5 @@ export interface BoxProps extends MPProps {
15
15
  className?: string;
16
16
  style?: React.CSSProperties;
17
17
  }
18
+ export declare const flexPropFormater: (val: string) => string;
18
19
  export declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
@@ -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",
@@ -65,5 +65,6 @@ const k = "cfxui__Box__root__299ae", M = "cfxui__Box__grow__7ee8d", t = {
65
65
  );
66
66
  });
67
67
  export {
68
- F as Box
68
+ F as Box,
69
+ N as flexPropFormater
69
70
  };
@@ -0,0 +1,2 @@
1
+ export { Box, flexPropFormater } from './Box';
2
+ export type { BoxProps } from './Box';
@@ -0,0 +1,5 @@
1
+ import { Box as e, flexPropFormater as x } from "./Box.js";
2
+ export {
3
+ e as Box,
4
+ x as flexPropFormater
5
+ };
@@ -0,0 +1,2 @@
1
+ export { Center } from './Center';
2
+ export type { CenterProps } from './Center';
@@ -0,0 +1,4 @@
1
+ import { Center as o } from "./Center.js";
2
+ export {
3
+ o as Center
4
+ };
@@ -1,10 +1,10 @@
1
1
  import { default as React } from 'react';
2
2
  import { BoxProps } from '../Box/Box';
3
- import { ResponsiveOffsetType, ResponsiveValueType } from '../../ui';
4
- import { FlexAlignItemsType, FlexDirectionType, FlexJustifyContentType, FlexWrapType } from './Flex.types';
3
+ import { ResponsiveOffsetType, ResponsiveValueType } from '../../../utils/ui';
4
+ import { FlexAlignItemsType, FlexCentredType, FlexDirectionType, FlexJustifyContentType, FlexWrapType } from './Flex.types';
5
5
 
6
6
  export interface FlexProps extends BoxProps {
7
- centered?: boolean | 'axis' | 'cross-axis' | 'baseline-axis' | 'baseline-cross-axis';
7
+ centered?: FlexCentredType;
8
8
  vertical?: boolean;
9
9
  reverseOrder?: boolean;
10
10
  stretch?: boolean;
@@ -21,7 +21,7 @@ export interface FlexProps extends BoxProps {
21
21
  }
22
22
  export declare function flexWrapResponsiveFormatter(val: FlexWrapType | boolean): string;
23
23
  declare const FlexComponentReffed: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
24
- type FlexType = typeof FlexComponentReffed & {
24
+ export type FlexType = typeof FlexComponentReffed & {
25
25
  Restricted: React.FC<{
26
26
  children?: React.ReactNode;
27
27
  }>;
@@ -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,
@@ -40,3 +40,10 @@ export declare enum FlexWrapEnum {
40
40
  'wrap-reverse' = "wrap-reverse"
41
41
  }
42
42
  export type FlexWrapType = keyof typeof FlexWrapEnum;
43
+ export declare enum FlexCentredEnum {
44
+ axis = "axis",
45
+ 'cross-axis' = "cross-axis",
46
+ 'baseline-axis' = "baseline-axis",
47
+ 'baseline-cross-axis' = "baseline-cross-axis"
48
+ }
49
+ export type FlexCentredType = keyof typeof FlexCentredEnum | boolean;
@@ -1,7 +1,8 @@
1
- var e = /* @__PURE__ */ ((r) => (r.row = "row", r.column = "column", r["row-reverse"] = "row-reverse", r["column-reverse"] = "column-reverse", r))(e || {}), a = /* @__PURE__ */ ((r) => (r.stretch = "stretch", r.center = "center", r.start = "start", r.end = "end", r.baseline = "baseline", r.unset = "unset", r["flex-start"] = "flex-start", r["flex-end"] = "flex-end", r["self-start"] = "self-start", r["self-end"] = "self-end", r["anchor-center"] = "anchor-center", r))(a || {}), c = /* @__PURE__ */ ((r) => (r.stretch = "stretch", r.center = "center", r.start = "start", r.end = "end", r.left = "left", r.right = "right", r.unset = "unset", r["flex-start"] = "flex-start", r["flex-end"] = "flex-end", r["space-between"] = "space-between", r["space-around"] = "space-around", r))(c || {}), s = /* @__PURE__ */ ((r) => (r.nowrap = "nowrap", r.wrap = "wrap", r.unset = "unset", r["wrap-reverse"] = "wrap-reverse", r))(s || {});
1
+ var a = /* @__PURE__ */ ((r) => (r.row = "row", r.column = "column", r["row-reverse"] = "row-reverse", r["column-reverse"] = "column-reverse", r))(a || {}), s = /* @__PURE__ */ ((r) => (r.stretch = "stretch", r.center = "center", r.start = "start", r.end = "end", r.baseline = "baseline", r.unset = "unset", r["flex-start"] = "flex-start", r["flex-end"] = "flex-end", r["self-start"] = "self-start", r["self-end"] = "self-end", r["anchor-center"] = "anchor-center", r))(s || {}), e = /* @__PURE__ */ ((r) => (r.stretch = "stretch", r.center = "center", r.start = "start", r.end = "end", r.left = "left", r.right = "right", r.unset = "unset", r["flex-start"] = "flex-start", r["flex-end"] = "flex-end", r["space-between"] = "space-between", r["space-around"] = "space-around", r))(e || {}), c = /* @__PURE__ */ ((r) => (r.nowrap = "nowrap", r.wrap = "wrap", r.unset = "unset", r["wrap-reverse"] = "wrap-reverse", r))(c || {}), w = /* @__PURE__ */ ((r) => (r.axis = "axis", r["cross-axis"] = "cross-axis", r["baseline-axis"] = "baseline-axis", r["baseline-cross-axis"] = "baseline-cross-axis", r))(w || {});
2
2
  export {
3
- a as FlexAlignItemsEnum,
4
- e as FlexDirectionEnum,
5
- c as FlexJustifyContentEnum,
6
- s as FlexWrapEnum
3
+ s as FlexAlignItemsEnum,
4
+ w as FlexCentredEnum,
5
+ a as FlexDirectionEnum,
6
+ e as FlexJustifyContentEnum,
7
+ c as FlexWrapEnum
7
8
  };
@@ -0,0 +1,6 @@
1
+ export { Flex } from './Flex';
2
+ export type { FlexType, FlexProps } from './Flex';
3
+ export type { FlexDirectionType, FlexAlignItemsType, FlexJustifyContentType, FlexWrapType, FlexCentredType, } from './Flex.types';
4
+ export { FlexDirectionEnum, FlexAlignItemsEnum, FlexJustifyContentEnum, FlexWrapEnum, FlexCentredEnum, } from './Flex.types';
5
+ export { FlexRestricter } from './FlexRestricter';
6
+ export type { FlexRestricterProps } from './FlexRestricter';
@@ -0,0 +1,12 @@
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";
4
+ export {
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
12
+ };
@@ -0,0 +1,2 @@
1
+ export { Pad } from './Pad';
2
+ export type { PadProps } from './Pad';
@@ -0,0 +1,4 @@
1
+ import { Pad as a } from "./Pad.js";
2
+ export {
3
+ a as Pad
4
+ };
@@ -0,0 +1,2 @@
1
+ export { Page } from './Page';
2
+ export type { PageProps } from './Page';
@@ -0,0 +1,4 @@
1
+ import { Page as r } from "./Page.js";
2
+ export {
3
+ r as Page
4
+ };
@@ -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>;
@@ -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
  };