@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
@@ -1,21 +1,15 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconName } from '../Icon';
3
3
 
4
- export interface AccordionContextProps {
5
- openItems: Record<string, boolean>;
6
- toggleItem: (id: string) => void;
7
- rootWidth: null | number;
8
- }
9
4
  export interface AccordionProps {
10
5
  className?: string;
11
6
  }
12
7
  export declare const Accordion: React.FC<React.PropsWithChildren<AccordionProps>>;
13
8
  export declare const AccordionItem: React.FC<React.PropsWithChildren>;
14
9
  export declare const AccordionHeader: React.FC<React.PropsWithChildren>;
15
- interface AccordionTriggerProps {
10
+ export interface AccordionTriggerProps {
16
11
  text: string;
17
12
  iconLeft?: IconName;
18
13
  }
19
14
  export declare const AccordionTrigger: React.FC<AccordionTriggerProps>;
20
15
  export declare const AccordionContent: React.FC<React.PropsWithChildren>;
21
- export {};
@@ -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: [
@@ -1 +1,2 @@
1
1
  export { Accordion, AccordionTrigger, AccordionHeader, AccordionItem, AccordionContent, } from './Accordion';
2
+ export type { AccordionTriggerProps, AccordionProps } from './Accordion';
@@ -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: [
@@ -5,3 +5,5 @@ export interface BackdropPortalProps {
5
5
  children?: React.ReactNode;
6
6
  }
7
7
  export declare function BackdropPortal({ children, }: BackdropPortalProps): import("react/jsx-runtime").JSX.Element;
8
+ declare const _default: React.MemoExoticComponent<typeof BackdropPortal>;
9
+ export default _default;
@@ -1,16 +1,18 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import "react";
2
+ import a from "react";
3
3
  import "../../utils/hooks/useGlobalKeyboardEvent.js";
4
4
  import "../../utils/hooks/useKeyboardClose.js";
5
- import { useOutlet as p } from "../../utils/hooks/useOutlet.js";
5
+ import { useOutlet as e } from "../../utils/hooks/useOutlet.js";
6
6
  const m = "backdrop-outlet";
7
- function a({
7
+ function p({
8
8
  children: t
9
9
  }) {
10
- const o = p(m);
10
+ const o = e(m);
11
11
  return /* @__PURE__ */ r(o, { children: t });
12
12
  }
13
+ const i = a.memo(p);
13
14
  export {
14
15
  m as BACKDROP_OUTLET_ID,
15
- a as BackdropPortal
16
+ p as BackdropPortal,
17
+ i as default
16
18
  };
@@ -0,0 +1,2 @@
1
+ export { default as BackdropPortal, BACKDROP_OUTLET_ID } from './BackdropPortal';
2
+ export type { BackdropPortalProps } from './BackdropPortal';
@@ -0,0 +1,5 @@
1
+ import { BACKDROP_OUTLET_ID as r, default as t } from "./BackdropPortal.js";
2
+ export {
3
+ r as BACKDROP_OUTLET_ID,
4
+ t as BackdropPortal
5
+ };
@@ -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: [
@@ -1,2 +1,2 @@
1
1
  export { Badge } from './Badge';
2
- export type { BadgeColor, BadgeProps, } from './Badge';
2
+ export type { BadgeColor, BadgeProps, BadgeSize, } from './Badge';
@@ -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;
@@ -1,10 +1,10 @@
1
1
  import { default as React } from 'react';
2
- import { ButtonProps } from '../Button/Button';
3
- import { FixedOn } from '../Title/Title';
2
+ import { ButtonProps } from '../Button';
3
+ import { TitleFixedOn } from '../Title';
4
4
  import { UseClipboardProps } from '../../utils/hooks';
5
5
 
6
6
  export type ClipboardButtonProps = ButtonProps & UseClipboardProps & {
7
- fixedOn?: FixedOn;
7
+ fixedOn?: TitleFixedOn;
8
8
  };
9
9
  declare const _default: React.NamedExoticComponent<ClipboardButtonProps>;
10
10
  export default _default;
@@ -1,8 +1,9 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import c from "react";
3
3
  import { Button as C } from "../Button/Button.js";
4
- import { Title as _ } from "../Title/Title.js";
5
- import { clsx as f } from "../../utils/clsx.js";
4
+ import { clsx as _ } from "../../utils/clsx.js";
5
+ import "../Button/LinkButton.js";
6
+ import { Title as f } from "../Title/Title.js";
6
7
  import { noop as u } from "../../utils/functional.js";
7
8
  import "../../utils/hooks/useGlobalKeyboardEvent.js";
8
9
  import "../../utils/hooks/useKeyboardClose.js";
@@ -19,25 +20,25 @@ function h(o) {
19
20
  textToCopy: j,
20
21
  fixedOn: n,
21
22
  onClick: t = u,
22
- ...l
23
+ ...p
23
24
  } = o, {
24
- copied: p,
25
+ copied: l,
25
26
  handleClick: i,
26
27
  title: m
27
28
  } = b(o), d = c.useCallback((s) => {
28
29
  t(s), i();
29
- }, [i, t]), a = f(e.root, { [e.copied]: p });
30
+ }, [i, t]), a = _(e.root, { [e.copied]: l });
30
31
  return /* @__PURE__ */ r(
31
- _,
32
+ f,
32
33
  {
33
34
  title: m,
34
35
  fixedOn: n,
35
36
  rootClassName: a,
36
- children: /* @__PURE__ */ r(C, { ...l, onClick: d })
37
+ children: /* @__PURE__ */ r(C, { ...p, onClick: d })
37
38
  }
38
39
  );
39
40
  }
40
- const z = c.memo(h);
41
+ const A = c.memo(h);
41
42
  export {
42
- z as default
43
+ A as default
43
44
  };
@@ -7,3 +7,5 @@ export interface ControlBoxProps {
7
7
  children: React.ReactNode;
8
8
  }
9
9
  export declare const ControlBox: React.ForwardRefExoticComponent<ControlBoxProps & React.RefAttributes<HTMLDivElement>>;
10
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ControlBoxProps & React.RefAttributes<HTMLDivElement>>>;
11
+ export default _default;
@@ -1,19 +1,20 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import c from "react";
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import r from "react";
3
3
  import { clsx as m } from "../../utils/clsx.js";
4
4
  const e = "cfxui__ControlBox__root__6a08c", x = "cfxui__ControlBox__small__8beb2", f = "cfxui__ControlBox__normal__e3aa5", i = "cfxui__ControlBox__large__1039d", o = {
5
5
  root: e,
6
6
  small: x,
7
7
  normal: f,
8
8
  large: i
9
- }, p = c.forwardRef(function(r, t) {
9
+ }, u = r.forwardRef(function(t, l) {
10
10
  const {
11
11
  size: _ = "normal",
12
- className: l,
13
- children: a
14
- } = r, n = m(o.root, l, o[_]);
15
- return /* @__PURE__ */ s("div", { ref: t, className: n, children: a });
16
- });
12
+ className: a,
13
+ children: n
14
+ } = t, s = m(o.root, a, o[_]);
15
+ return /* @__PURE__ */ c("div", { ref: l, className: s, children: n });
16
+ }), g = r.memo(u);
17
17
  export {
18
- p as ControlBox
18
+ u as ControlBox,
19
+ g as default
19
20
  };
@@ -0,0 +1,2 @@
1
+ export { default as ControlBox } from './ControlBox';
2
+ export type { ControlBoxProps } from './ControlBox';
@@ -0,0 +1,4 @@
1
+ import { default as t } from "./ControlBox.js";
2
+ export {
3
+ t as ControlBox
4
+ };
@@ -7,3 +7,5 @@ export interface CountryFlagProps {
7
7
  forceShow?: boolean;
8
8
  }
9
9
  export declare const CountryFlag: React.ForwardRefExoticComponent<CountryFlagProps & React.RefAttributes<HTMLDivElement>>;
10
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<CountryFlagProps & React.RefAttributes<HTMLDivElement>>>;
11
+ export default _default;
@@ -1,21 +1,22 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- import l from "react";
2
+ import r from "react";
3
3
  import { Title as f } from "../Title/Title.js";
4
- import { clsx as i } from "../../utils/clsx.js";
5
- const m = "cfxui__CountryFlag__root__95489", u = {
6
- root: m
7
- }, y = l.forwardRef(function(r, e) {
4
+ import { clsx as m } from "../../utils/clsx.js";
5
+ const i = "cfxui__CountryFlag__root__95489", u = {
6
+ root: i
7
+ }, _ = r.forwardRef(function(a, e) {
8
8
  const {
9
9
  country: o,
10
10
  className: s,
11
- title: a,
12
- forceShow: n = !1
13
- } = r;
14
- if (!n && (o === "001" || o === "AQ" || o === "aq"))
11
+ title: n,
12
+ forceShow: l = !1
13
+ } = a;
14
+ if (!l && (o === "001" || o === "AQ" || o === "aq"))
15
15
  return null;
16
- const c = i(u.root, s, `fi-${o.toLowerCase()}`);
17
- return /* @__PURE__ */ t(f, { title: a, children: /* @__PURE__ */ t("div", { ref: e, className: c }) });
18
- });
16
+ const c = m(u.root, s, `fi-${o.toLowerCase()}`);
17
+ return /* @__PURE__ */ t(f, { title: n, children: /* @__PURE__ */ t("div", { ref: e, className: c }) });
18
+ }), x = r.memo(_);
19
19
  export {
20
- y as CountryFlag
20
+ _ as CountryFlag,
21
+ x as default
21
22
  };
@@ -0,0 +1,2 @@
1
+ export { default as CountryFlag } from './CountryFlag';
2
+ export type { CountryFlagProps } from './CountryFlag';
@@ -0,0 +1,4 @@
1
+ import { default as r } from "./CountryFlag.js";
2
+ export {
3
+ r as CountryFlag
4
+ };
@@ -7,3 +7,5 @@ export interface DecorateProps {
7
7
  decoratorClassName?: string;
8
8
  }
9
9
  export declare const Decorate: React.ForwardRefExoticComponent<DecorateProps & React.RefAttributes<HTMLDivElement>>;
10
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<DecorateProps & React.RefAttributes<HTMLDivElement>>>;
11
+ export default _default;
@@ -1,20 +1,21 @@
1
- import { jsxs as n, jsx as m } from "react/jsx-runtime";
2
- import f from "react";
1
+ import { jsxs as _, jsx as f } from "react/jsx-runtime";
2
+ import a from "react";
3
3
  import { clsx as t } from "../../utils/clsx.js";
4
- const i = "cfxui__Decorate__root__8f2af", l = "cfxui__Decorate__decorator__db06a", c = {
5
- root: i,
6
- decorator: l
7
- }, h = f.forwardRef(function(o, e) {
4
+ const l = "cfxui__Decorate__root__8f2af", i = "cfxui__Decorate__decorator__db06a", e = {
5
+ root: l,
6
+ decorator: i
7
+ }, u = a.forwardRef(function(o, c) {
8
8
  const {
9
9
  decorator: r,
10
- children: a,
11
- className: s
12
- } = o, d = t(c.root, s), _ = t(c.decorator, o.decoratorClassName);
13
- return /* @__PURE__ */ n("div", { ref: e, className: d, children: [
14
- a,
15
- !!r && /* @__PURE__ */ m("div", { className: _, children: r })
10
+ children: s,
11
+ className: d
12
+ } = o, m = t(e.root, d), n = t(e.decorator, o.decoratorClassName);
13
+ return /* @__PURE__ */ _("div", { ref: c, className: m, children: [
14
+ s,
15
+ !!r && /* @__PURE__ */ f("div", { className: n, children: r })
16
16
  ] });
17
- });
17
+ }), C = a.memo(u);
18
18
  export {
19
- h as Decorate
19
+ u as Decorate,
20
+ C as default
20
21
  };
@@ -0,0 +1,2 @@
1
+ export { default as Decorate } from './Decorate';
2
+ export type { DecorateProps } from './Decorate';
@@ -0,0 +1,4 @@
1
+ import { default as o } from "./Decorate.js";
2
+ export {
3
+ o as Decorate
4
+ };
@@ -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> {