@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.
- package/dist/assets/css/Badge.css +1 -1
- package/dist/assets/css/Link.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/components/Accordion/Accordion.d.ts +1 -7
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/AccordionShowcase.js +1 -1
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Avatar/AvatarShowcase.js +1 -1
- package/dist/components/BackdropPortal/BackdropPortal.d.ts +2 -0
- package/dist/components/BackdropPortal/BackdropPortal.js +7 -5
- package/dist/components/BackdropPortal/index.d.ts +2 -0
- package/dist/components/BackdropPortal/index.js +5 -0
- package/dist/components/Badge/Badge.d.ts +9 -2
- package/dist/components/Badge/Badge.js +52 -25
- package/dist/components/Badge/BadgeShowcase.js +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/BurgerMenu/BurgerMenu.js +1 -1
- package/dist/components/BurgerMenu/BurgerMenuShowcase.js +1 -1
- package/dist/components/Button/ButtonShowcase.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/ClipboardButton/ClipboardButton.d.ts +3 -3
- package/dist/components/ClipboardButton/ClipboardButton.js +10 -9
- package/dist/components/ControlBox/ControlBox.d.ts +2 -0
- package/dist/components/ControlBox/ControlBox.js +10 -9
- package/dist/components/ControlBox/index.d.ts +2 -0
- package/dist/components/ControlBox/index.js +4 -0
- package/dist/components/CountryFlag/CountryFlag.d.ts +2 -0
- package/dist/components/CountryFlag/CountryFlag.js +14 -13
- package/dist/components/CountryFlag/index.d.ts +2 -0
- package/dist/components/CountryFlag/index.js +4 -0
- package/dist/components/Decorate/Decorate.d.ts +2 -0
- package/dist/components/Decorate/Decorate.js +15 -14
- package/dist/components/Decorate/index.d.ts +2 -0
- package/dist/components/Decorate/index.js +4 -0
- package/dist/components/DropdownSelect/DropdownSelect.d.ts +1 -1
- package/dist/components/DropdownSelect/DropdownSelect.js +801 -1039
- package/dist/components/DropdownSelect/DropdownSelectShowcase.js +1 -1
- package/dist/components/DropdownSelect/index.d.ts +1 -0
- package/dist/components/Flyout/Flyout.d.ts +2 -1
- package/dist/components/Flyout/index.d.ts +2 -0
- package/dist/components/Flyout/index.js +5 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/IconBig/IconBig.js +1 -1
- package/dist/components/IconButton/IconButton.d.ts +2 -3
- package/dist/components/IconButton/index.d.ts +1 -1
- package/dist/components/Indicator/index.d.ts +2 -0
- package/dist/components/Indicator/index.js +4 -0
- package/dist/components/InfoPanel/InfoPanelShowcase.js +1 -1
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +6 -6
- package/dist/components/Input/InputShowcase.js +1 -1
- package/dist/components/Input/RichInput.d.ts +1 -1
- package/dist/components/Input/RichInput.js +4 -4
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/InputDropzone/index.d.ts +3 -3
- package/dist/components/InputDropzone/index.js +3 -3
- package/dist/components/Interactive/index.d.ts +2 -0
- package/dist/components/Interactive/index.js +4 -0
- package/dist/components/Island/Island.js +4 -4
- package/dist/components/Island/index.d.ts +2 -0
- package/dist/components/Island/index.js +5 -0
- package/dist/components/Layout/Box/Box.d.ts +2 -1
- package/dist/components/Layout/Box/Box.js +3 -2
- package/dist/components/Layout/Box/index.d.ts +2 -0
- package/dist/components/Layout/Box/index.js +5 -0
- package/dist/components/Layout/Center/index.d.ts +2 -0
- package/dist/components/Layout/Center/index.js +4 -0
- package/dist/components/Layout/Flex/Flex.d.ts +4 -4
- package/dist/components/Layout/Flex/Flex.js +1 -1
- package/dist/components/Layout/Flex/Flex.types.d.ts +7 -0
- package/dist/components/Layout/Flex/Flex.types.js +6 -5
- package/dist/components/Layout/Flex/index.d.ts +6 -0
- package/dist/components/Layout/Flex/index.js +12 -0
- package/dist/components/Layout/Pad/index.d.ts +2 -0
- package/dist/components/Layout/Pad/index.js +4 -0
- package/dist/components/Layout/Page/index.d.ts +2 -0
- package/dist/components/Layout/Page/index.js +4 -0
- package/dist/components/Layout/Scrollable/ScrollableShowcase.js +1 -1
- package/dist/components/Link/ButtonLink.js +23 -18
- package/dist/components/Link/Link.d.ts +3 -1
- package/dist/components/Link/Link.js +48 -30
- package/dist/components/Link/LinkShowcase.js +46 -41
- package/dist/components/Link/index.d.ts +1 -1
- package/dist/components/Link/index.js +6 -5
- package/dist/components/Loaf/index.d.ts +2 -0
- package/dist/components/Loaf/index.js +4 -0
- package/dist/components/Logos/LogosShowcase.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/NavList/index.d.ts +2 -0
- package/dist/components/NavList/index.js +4 -0
- package/dist/components/Overlay/index.d.ts +2 -0
- package/dist/components/Overlay/index.js +5 -0
- package/dist/components/PremiumBadge/index.d.ts +2 -0
- package/dist/components/PremiumBadge/index.js +4 -0
- package/dist/components/Prose/Prose.d.ts +1 -2
- package/dist/components/Prose/index.d.ts +2 -0
- package/dist/components/Prose/index.js +4 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +4 -0
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/SelectShowcase.js +1 -1
- package/dist/components/Separator/Separator.d.ts +1 -1
- package/dist/components/Separator/Separator.js +1 -1
- package/dist/components/Separator/index.d.ts +2 -0
- package/dist/components/Separator/index.js +4 -0
- package/dist/components/Shroud/Shroud.js +6 -6
- package/dist/components/Shroud/index.d.ts +2 -0
- package/dist/components/Shroud/index.js +4 -0
- package/dist/components/Skeleton/Skeleton.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Skeleton/SkeletonShowcase.js +1 -1
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Slider/Slider.js +294 -374
- package/dist/components/Slider/SliderShowcase.js +1 -1
- package/dist/components/Spacer/Spacer.d.ts +1 -1
- package/dist/components/Spacer/index.d.ts +2 -0
- package/dist/components/Spacer/index.js +4 -0
- package/dist/components/Style/index.d.ts +2 -0
- package/dist/components/Style/index.js +5 -0
- package/dist/components/Table/Table.d.ts +13 -4
- package/dist/components/Table/Table.js +3 -2
- package/dist/components/Table/TableShowcase.js +1 -1
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Table/index.js +5 -2
- package/dist/components/Tabular/Tabular.d.ts +1 -1
- package/dist/components/Tabular/Tabular.js +1 -1
- package/dist/components/Tabular/TabularShowcase.js +1 -1
- package/dist/components/Text/Text.js +13 -12
- package/dist/components/Text/Text.types.d.ts +3 -2
- package/dist/components/Text/TextShowcase.js +12 -15
- package/dist/components/Text/index.d.ts +2 -2
- package/dist/components/Text/index.js +9 -8
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/index.js +4 -0
- package/dist/components/Title/Title.d.ts +5 -4
- package/dist/components/Title/Title.js +4 -2
- package/dist/components/Title/TitleShowcase.js +1 -1
- package/dist/components/Title/index.d.ts +2 -0
- package/dist/components/Title/index.js +7 -0
- package/dist/components/ToggleGroup/ToggleGroupShowcase.js +1 -1
- package/dist/index-AweK2ufS.js +171 -0
- package/dist/{index-DBus3GoO.js → index-Bz27DCHt.js} +2 -2
- package/dist/main.d.ts +93 -69
- package/dist/main.js +217 -191
- package/dist/styles-scss/global.scss +2 -2
- package/dist/styles-scss/tokens.scss +0 -4
- package/dist/utils/color.d.ts +3 -1
- package/dist/utils/enum.d.ts +1 -0
- package/dist/utils/enum.js +6 -0
- package/dist/utils/ui/index.d.ts +3 -0
- package/dist/utils/ui/index.js +11 -0
- package/dist/{components → utils/ui}/ui.d.ts +2 -68
- package/dist/utils/ui/ui.js +68 -0
- package/dist/utils/ui/ui.types.d.ts +86 -0
- package/dist/utils/ui/ui.types.js +9 -0
- package/package.json +1 -1
- package/dist/components/ui.js +0 -73
- 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 "
|
|
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 "
|
|
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 "
|
|
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
|
|
5
|
+
import { useOutlet as e } from "../../utils/hooks/useOutlet.js";
|
|
6
6
|
const m = "backdrop-outlet";
|
|
7
|
-
function
|
|
7
|
+
function p({
|
|
8
8
|
children: t
|
|
9
9
|
}) {
|
|
10
|
-
const o =
|
|
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
|
-
|
|
16
|
+
p as BackdropPortal,
|
|
17
|
+
i as default
|
|
16
18
|
};
|
|
@@ -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
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { clsx as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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:
|
|
17
|
-
size:
|
|
18
|
-
children:
|
|
19
|
-
icon:
|
|
20
|
-
className:
|
|
21
|
-
hoverable:
|
|
22
|
-
} =
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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
|
|
3
|
-
import {
|
|
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?:
|
|
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 {
|
|
5
|
-
import
|
|
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
|
-
...
|
|
23
|
+
...p
|
|
23
24
|
} = o, {
|
|
24
|
-
copied:
|
|
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 =
|
|
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, { ...
|
|
37
|
+
children: /* @__PURE__ */ r(C, { ...p, onClick: d })
|
|
37
38
|
}
|
|
38
39
|
);
|
|
39
40
|
}
|
|
40
|
-
const
|
|
41
|
+
const A = c.memo(h);
|
|
41
42
|
export {
|
|
42
|
-
|
|
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
|
|
2
|
-
import
|
|
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
|
-
},
|
|
9
|
+
}, u = r.forwardRef(function(t, l) {
|
|
10
10
|
const {
|
|
11
11
|
size: _ = "normal",
|
|
12
|
-
className:
|
|
13
|
-
children:
|
|
14
|
-
} =
|
|
15
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
18
|
+
u as ControlBox,
|
|
19
|
+
g as default
|
|
19
20
|
};
|
|
@@ -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
|
|
2
|
+
import r from "react";
|
|
3
3
|
import { Title as f } from "../Title/Title.js";
|
|
4
|
-
import { clsx as
|
|
5
|
-
const
|
|
6
|
-
root:
|
|
7
|
-
},
|
|
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:
|
|
12
|
-
forceShow:
|
|
13
|
-
} =
|
|
14
|
-
if (!
|
|
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 =
|
|
17
|
-
return /* @__PURE__ */ t(f, { title:
|
|
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
|
-
|
|
20
|
+
_ as CountryFlag,
|
|
21
|
+
x as default
|
|
21
22
|
};
|
|
@@ -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
|
|
2
|
-
import
|
|
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
|
|
5
|
-
root:
|
|
6
|
-
decorator:
|
|
7
|
-
},
|
|
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:
|
|
11
|
-
className:
|
|
12
|
-
} = o,
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
|
|
15
|
-
!!r && /* @__PURE__ */
|
|
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
|
-
|
|
19
|
+
u as Decorate,
|
|
20
|
+
C as default
|
|
20
21
|
};
|
|
@@ -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 '
|
|
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> {
|