@cfx-dev/ui-components 3.0.2 → 3.0.4
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/Rail-DcVowhML.js +81 -0
- package/dist/assets/css/Accordion.css +1 -1
- package/dist/assets/css/Avatar.css +1 -1
- package/dist/assets/css/Badge.css +1 -1
- package/dist/assets/css/Box.css +1 -1
- package/dist/assets/css/Button.css +1 -1
- package/dist/assets/css/ButtonBar.css +1 -1
- package/dist/assets/css/Center.css +1 -1
- package/dist/assets/css/Checkbox.css +1 -1
- package/dist/assets/css/ClipboardButton.css +1 -1
- package/dist/assets/css/ControlBox.css +1 -1
- package/dist/assets/css/CountryFlag.css +1 -1
- package/dist/assets/css/Decorate.css +1 -1
- package/dist/assets/css/Dot.css +1 -1
- package/dist/assets/css/Flex.css +1 -1
- package/dist/assets/css/FlexRestricter.css +1 -1
- package/dist/assets/css/FlexShowcase.css +1 -1
- package/dist/assets/css/Flyout.css +1 -1
- package/dist/assets/css/Icon.css +1 -1
- package/dist/assets/css/IconBig.css +1 -1
- package/dist/assets/css/IconButton.css +1 -1
- package/dist/assets/css/Indicator.css +1 -1
- package/dist/assets/css/InfoPanel.css +1 -1
- package/dist/assets/css/Input.css +1 -1
- package/dist/assets/css/InputDropzone.css +1 -1
- package/dist/assets/css/Interactive.css +1 -1
- package/dist/assets/css/Island.css +1 -1
- package/dist/assets/css/ItemPreview.css +1 -1
- package/dist/assets/css/Link.css +1 -1
- package/dist/assets/css/Loaf.css +1 -1
- package/dist/assets/css/Modal.css +1 -1
- package/dist/assets/css/NavList.css +1 -1
- package/dist/assets/css/Overlay.css +1 -1
- package/dist/assets/css/Pad.css +1 -1
- package/dist/assets/css/Page.css +1 -1
- package/dist/assets/css/Popover.css +1 -1
- package/dist/assets/css/PopoverShowcase.css +1 -1
- package/dist/assets/css/PremiumBadge.css +1 -1
- package/dist/assets/css/Prose.css +1 -1
- package/dist/assets/css/Radio.css +1 -1
- package/dist/assets/css/Rail.css +1 -1
- package/dist/assets/css/RichInput.css +1 -1
- package/dist/assets/css/Select.css +1 -1
- package/dist/assets/css/Separator.css +1 -1
- package/dist/assets/css/Shroud.css +1 -1
- package/dist/assets/css/Skeleton.css +1 -1
- package/dist/assets/css/Spacer.css +1 -1
- package/dist/assets/css/Switch.css +1 -1
- package/dist/assets/css/Table.css +1 -1
- package/dist/assets/css/Tabular.css +1 -1
- package/dist/assets/css/Text.css +1 -1
- package/dist/assets/css/TextShowcase.css +1 -1
- package/dist/assets/css/Textarea.css +1 -1
- package/dist/assets/css/Title.css +1 -1
- package/dist/assets/css/ToggleGroup.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/cfxIcons-BNd1WgpX.js +96 -0
- package/dist/components/Accordion/Accordion.js +69 -69
- package/dist/components/Avatar/Avatar.js +18 -18
- package/dist/components/Badge/Badge.js +23 -23
- package/dist/components/Button/Button.js +76 -76
- package/dist/components/Button/ButtonBar.js +6 -6
- package/dist/components/Checkbox/Checkbox.js +90 -85
- package/dist/components/ClipboardButton/ClipboardButton.js +17 -17
- package/dist/components/ControlBox/ControlBox.js +11 -11
- package/dist/components/CountryFlag/CountryFlag.js +9 -9
- package/dist/components/Decorate/Decorate.js +12 -12
- package/dist/components/Dot/Dot.js +17 -17
- package/dist/components/Flyout/Flyout.js +44 -44
- package/dist/components/Icon/Icon.js +14 -14
- package/dist/components/IconBig/IconBig.js +23 -18
- package/dist/components/IconButton/IconButton.js +25 -25
- package/dist/components/Icons/IconsShowcase.js +1 -1
- package/dist/components/Icons/cfx-icons/Cart.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Cart.js +42 -0
- package/dist/components/Icons/cfx-icons/UpvotesBurst.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/UpvotesBurst.js +26 -0
- package/dist/components/Icons/cfx-icons/UpvotesRecurring.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/UpvotesRecurring.js +27 -0
- package/dist/components/Icons/cfx-icons/User.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/User.js +31 -0
- package/dist/components/Icons/cfx-icons/Verified.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Verified.js +23 -0
- package/dist/components/Icons/cfxIcons.d.ts +5 -0
- package/dist/components/Icons/cfxIcons.js +52 -42
- package/dist/components/Icons/index.js +1 -1
- package/dist/components/Indicator/Indicator.js +11 -11
- package/dist/components/InfoPanel/InfoPanel.js +37 -37
- package/dist/components/Input/Input.js +59 -59
- package/dist/components/Input/RichInput.js +39 -39
- package/dist/components/InputDropzone/InputDropzone.js +87 -87
- package/dist/components/InputDropzone/ItemPreview.js +17 -17
- package/dist/components/Interactive/Interactive.js +6 -6
- package/dist/components/Island/Island.js +20 -20
- package/dist/components/Layout/Box/Box.js +81 -81
- package/dist/components/Layout/Center/Center.js +14 -14
- package/dist/components/Layout/Flex/Flex.js +67 -67
- package/dist/components/Layout/Flex/FlexRestricter.js +14 -14
- package/dist/components/Layout/Flex/FlexShowcase.js +4 -4
- package/dist/components/Layout/Pad/Pad.js +34 -34
- package/dist/components/Layout/Page/Page.js +11 -11
- package/dist/components/Layout/Scrollable/Rail.js +1 -1
- package/dist/components/Layout/Scrollable/Scrollable.js +1 -1
- package/dist/components/Layout/Scrollable/VirtualScrollable.js +1 -1
- package/dist/components/Layout/Scrollable/index.js +1 -1
- package/dist/components/Link/ButtonLink.js +7 -6
- package/dist/components/Link/Link.js +36 -27
- package/dist/components/Loaf/Loaf.js +20 -20
- package/dist/components/Modal/Modal.js +51 -51
- package/dist/components/NavList/NavList.js +23 -23
- package/dist/components/Overlay/Overlay.js +17 -17
- package/dist/components/Popover/Popover.js +29 -29
- package/dist/components/Popover/PopoverShowcase.js +9 -9
- package/dist/components/PremiumBadge/PremiumBadge.js +8 -8
- package/dist/components/Prose/Prose.js +6 -6
- package/dist/components/Radio/Radio.js +32 -32
- package/dist/components/Select/Select.js +157 -157
- package/dist/components/Separator/Separator.js +31 -31
- package/dist/components/Shroud/Shroud.js +14 -14
- package/dist/components/Skeleton/Skeleton.js +10 -10
- package/dist/components/Spacer/Spacer.js +25 -25
- package/dist/components/Switch/Switch.js +43 -43
- package/dist/components/Table/Table.js +82 -82
- package/dist/components/Tabular/Tabular.js +60 -60
- package/dist/components/Text/Text.js +26 -26
- package/dist/components/Text/TextShowcase.js +19 -19
- package/dist/components/Textarea/Textarea.js +36 -36
- package/dist/components/Title/Title.js +57 -57
- package/dist/components/ToggleGroup/ToggleGroup.js +40 -40
- package/dist/main.js +2 -2
- package/dist/styles-scss/_ui.scss +22 -0
- package/dist/styles-scss/global.scss +5 -0
- package/dist/styles-scss/tokens.scss +5 -25
- package/package.json +2 -2
- package/dist/Rail-XT5PwAlx.js +0 -81
- package/dist/cfxIcons-BlbKR-zU.js +0 -86
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as n, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import f from "react";
|
|
3
3
|
import { clsx as t } from "../../utils/clsx.js";
|
|
4
|
-
const
|
|
5
|
-
root:
|
|
6
|
-
decorator:
|
|
7
|
-
},
|
|
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) {
|
|
8
8
|
const {
|
|
9
9
|
decorator: r,
|
|
10
|
-
children:
|
|
10
|
+
children: a,
|
|
11
11
|
className: s
|
|
12
|
-
} = o, d = t(c.root, s),
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
|
|
15
|
-
!!r && /* @__PURE__ */
|
|
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 })
|
|
16
16
|
] });
|
|
17
17
|
});
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
h as Decorate
|
|
20
20
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
import { getColor as
|
|
5
|
-
const
|
|
6
|
-
root:
|
|
7
|
-
"size-small": "
|
|
8
|
-
"size-normal": "
|
|
9
|
-
"size-large": "
|
|
10
|
-
},
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import i from "react";
|
|
3
|
+
import { clsx as l } from "../../utils/clsx.js";
|
|
4
|
+
import { getColor as a } from "../../utils/color.js";
|
|
5
|
+
const c = "cfxui__Dot__root__9bed3", r = {
|
|
6
|
+
root: c,
|
|
7
|
+
"size-small": "cfxui__Dot__size-small__b7d03",
|
|
8
|
+
"size-normal": "cfxui__Dot__size-normal__e73b3",
|
|
9
|
+
"size-large": "cfxui__Dot__size-large__4fe0a"
|
|
10
|
+
}, x = i.forwardRef(function(o, _) {
|
|
11
11
|
const {
|
|
12
|
-
size:
|
|
13
|
-
className:
|
|
12
|
+
size: t = "normal",
|
|
13
|
+
className: e
|
|
14
14
|
} = o;
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ s(
|
|
16
16
|
"div",
|
|
17
17
|
{
|
|
18
|
-
ref:
|
|
19
|
-
className:
|
|
20
|
-
style: { backgroundColor:
|
|
18
|
+
ref: _,
|
|
19
|
+
className: l(r.root, r[`size-${t}`], e),
|
|
20
|
+
style: { backgroundColor: a({
|
|
21
21
|
...o,
|
|
22
22
|
color: o.color || "primary"
|
|
23
23
|
}) }
|
|
@@ -25,5 +25,5 @@ const _ = "_root_8a36f_1", r = {
|
|
|
25
25
|
);
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
x as Dot
|
|
29
29
|
};
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { F as
|
|
4
|
-
import { Button as
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import n from "react";
|
|
3
|
+
import { F as f } from "../../Combination-BRUj3CHE.js";
|
|
4
|
+
import { Button as p } from "../Button/Button.js";
|
|
5
5
|
import { Interactive as h } from "../Interactive/Interactive.js";
|
|
6
|
-
import { clsx as
|
|
7
|
-
import { noop as
|
|
6
|
+
import { clsx as l } from "../../utils/clsx.js";
|
|
7
|
+
import { noop as y } from "../../utils/functional.js";
|
|
8
8
|
import "../../utils/hooks/useGlobalKeyboardEvent.js";
|
|
9
|
-
import { useKeyboardClose as
|
|
10
|
-
import { useOutlet as
|
|
11
|
-
const
|
|
12
|
-
root:
|
|
13
|
-
"size-normal": "
|
|
14
|
-
holder:
|
|
15
|
-
"size-small": "
|
|
16
|
-
"size-xsmall": "
|
|
17
|
-
active:
|
|
18
|
-
backdrop:
|
|
19
|
-
"backdrop-appearance": "
|
|
20
|
-
mask:
|
|
21
|
-
"holder-appearance": "
|
|
22
|
-
content:
|
|
9
|
+
import { useKeyboardClose as F } from "../../utils/hooks/useKeyboardClose.js";
|
|
10
|
+
import { useOutlet as x } from "../../utils/hooks/useOutlet.js";
|
|
11
|
+
const k = "cfxui__Flyout__root__eba04", b = "cfxui__Flyout__holder__d80b5", v = "cfxui__Flyout__active__14a29", C = "cfxui__Flyout__backdrop__57f9e", N = "cfxui__Flyout__mask__72713", z = "cfxui__Flyout__content__04e42", L = "cfxui__Flyout__header__40009", O = "cfxui__Flyout__title__b235a", o = {
|
|
12
|
+
root: k,
|
|
13
|
+
"size-normal": "cfxui__Flyout__size-normal__e1165",
|
|
14
|
+
holder: b,
|
|
15
|
+
"size-small": "cfxui__Flyout__size-small__038a5",
|
|
16
|
+
"size-xsmall": "cfxui__Flyout__size-xsmall__839e8",
|
|
17
|
+
active: v,
|
|
18
|
+
backdrop: C,
|
|
19
|
+
"backdrop-appearance": "cfxui__Flyout__backdrop-appearance__d9564",
|
|
20
|
+
mask: N,
|
|
21
|
+
"holder-appearance": "cfxui__Flyout__holder-appearance__e818c",
|
|
22
|
+
content: z,
|
|
23
23
|
header: L,
|
|
24
|
-
title:
|
|
25
|
-
},
|
|
26
|
-
function
|
|
24
|
+
title: O
|
|
25
|
+
}, E = "flyout-outlet";
|
|
26
|
+
function I(c) {
|
|
27
27
|
const {
|
|
28
28
|
disabled: t = !1,
|
|
29
29
|
size: a = "normal",
|
|
30
|
-
onClose:
|
|
31
|
-
children:
|
|
32
|
-
holderClassName:
|
|
33
|
-
} =
|
|
34
|
-
|
|
30
|
+
onClose: s = y,
|
|
31
|
+
children: r,
|
|
32
|
+
holderClassName: d
|
|
33
|
+
} = c, u = x(E);
|
|
34
|
+
n.useEffect(() => {
|
|
35
35
|
if (t)
|
|
36
36
|
return;
|
|
37
|
-
const
|
|
38
|
-
return
|
|
39
|
-
}, [t]),
|
|
40
|
-
const
|
|
41
|
-
[
|
|
37
|
+
const _ = document.getElementById("cfxui-root");
|
|
38
|
+
return _ == null || _.classList.add("shrink"), () => _ == null ? void 0 : _.classList.remove("shrink");
|
|
39
|
+
}, [t]), F(s);
|
|
40
|
+
const m = l(o.root, o[`size-${a}`], {
|
|
41
|
+
[o.active]: !t
|
|
42
42
|
});
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ e(u, { children: /* @__PURE__ */ i("div", { className: m, children: [
|
|
44
|
+
/* @__PURE__ */ e(h, { showPointer: !1, className: o.backdrop, onClick: s }),
|
|
45
|
+
/* @__PURE__ */ e("div", { className: o.mask, children: /* @__PURE__ */ e("div", { className: l(o.holder, d), children: /* @__PURE__ */ e(f, { disabled: !!t, className: o.content, children: r }) }) })
|
|
46
46
|
] }) });
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
I.Header = n.forwardRef(function(t, a) {
|
|
49
49
|
const {
|
|
50
|
-
onClose:
|
|
51
|
-
children:
|
|
50
|
+
onClose: s,
|
|
51
|
+
children: r
|
|
52
52
|
} = t;
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
!!
|
|
53
|
+
return /* @__PURE__ */ i("div", { ref: a, className: o.header, children: [
|
|
54
|
+
/* @__PURE__ */ e("div", { className: o.title, children: r }),
|
|
55
|
+
!!s && /* @__PURE__ */ e(p, { icon: "Close", onClick: s })
|
|
56
56
|
] });
|
|
57
57
|
});
|
|
58
58
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
E as FLYOUT_OUTLET_ID,
|
|
60
|
+
I as Flyout
|
|
61
61
|
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import l from "react";
|
|
3
|
-
import { I as
|
|
3
|
+
import { I as _ } from "../../cfxIcons-BNd1WgpX.js";
|
|
4
4
|
import "../Icons/cfx-icons-big/Like.js";
|
|
5
5
|
import "../Icons/cfx-icons-big/Subscriptions.js";
|
|
6
6
|
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
|
-
import { getTextOpacity as
|
|
9
|
+
import { getTextOpacity as d } from "../Text/Text.js";
|
|
10
10
|
import { ui as t } from "../ui.js";
|
|
11
|
-
import { clsx as
|
|
12
|
-
import { getColor as
|
|
13
|
-
const
|
|
14
|
-
root:
|
|
11
|
+
import { clsx as h } from "../../utils/clsx.js";
|
|
12
|
+
import { getColor as y } from "../../utils/color.js";
|
|
13
|
+
const I = "cfxui__Icon__root__6c380", S = {
|
|
14
|
+
root: I
|
|
15
15
|
}, A = l.forwardRef(function(r, i) {
|
|
16
16
|
const {
|
|
17
|
-
as:
|
|
17
|
+
as: c = "div",
|
|
18
18
|
size: o = "normal",
|
|
19
|
-
opacity:
|
|
20
|
-
className:
|
|
19
|
+
opacity: e,
|
|
20
|
+
className: m,
|
|
21
21
|
name: s
|
|
22
22
|
} = r, p = {
|
|
23
|
-
color:
|
|
23
|
+
color: y({
|
|
24
24
|
...r,
|
|
25
|
-
opacity:
|
|
25
|
+
opacity: d(e)
|
|
26
26
|
}),
|
|
27
27
|
width: t.fontSize(o),
|
|
28
28
|
height: t.fontSize(o)
|
|
29
|
-
},
|
|
29
|
+
}, f = {
|
|
30
30
|
width: t.fontSize(o),
|
|
31
31
|
height: t.fontSize(o)
|
|
32
|
-
},
|
|
33
|
-
return /* @__PURE__ */ n(
|
|
32
|
+
}, a = _[s];
|
|
33
|
+
return /* @__PURE__ */ n(c, { ref: i, style: p, className: h(S.root, m), children: /* @__PURE__ */ n(a, { style: f }) });
|
|
34
34
|
});
|
|
35
35
|
export {
|
|
36
36
|
A as Icon
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import l from "react";
|
|
3
3
|
import "../Icons/cfx-icons/Close.js";
|
|
4
4
|
import "../Icons/cfx-icons/Controller.js";
|
|
5
5
|
import "../Icons/cfx-icons/Copy.js";
|
|
@@ -40,30 +40,35 @@ import "../Icons/cfx-icons/Users.js";
|
|
|
40
40
|
import "../Icons/cfx-icons/Visibility.js";
|
|
41
41
|
import "../Icons/cfx-icons/VisibilityOff.js";
|
|
42
42
|
import "../Icons/cfx-icons/Warning.js";
|
|
43
|
+
import "../Icons/cfx-icons/Cart.js";
|
|
44
|
+
import "../Icons/cfx-icons/User.js";
|
|
45
|
+
import "../Icons/cfx-icons/Verified.js";
|
|
46
|
+
import "../Icons/cfx-icons/UpvotesBurst.js";
|
|
47
|
+
import "../Icons/cfx-icons/UpvotesRecurring.js";
|
|
43
48
|
import { I as f } from "../../cfxIconsBig-BLJjMT-Y.js";
|
|
44
49
|
import { getTextOpacity as g } from "../Text/Text.js";
|
|
45
|
-
import { clsx as
|
|
46
|
-
import { getColor as
|
|
47
|
-
const
|
|
48
|
-
root:
|
|
49
|
-
"size-small": "
|
|
50
|
-
"size-normal": "
|
|
51
|
-
"size-large": "
|
|
52
|
-
},
|
|
50
|
+
import { clsx as I } from "../../utils/clsx.js";
|
|
51
|
+
import { getColor as x } from "../../utils/color.js";
|
|
52
|
+
const z = "cfxui__IconBig__root__f259a", i = {
|
|
53
|
+
root: z,
|
|
54
|
+
"size-small": "cfxui__IconBig__size-small__4e0b8",
|
|
55
|
+
"size-normal": "cfxui__IconBig__size-normal__6ab6d",
|
|
56
|
+
"size-large": "cfxui__IconBig__size-large__753d2"
|
|
57
|
+
}, Bo = l.forwardRef(function(o, r) {
|
|
53
58
|
const {
|
|
54
59
|
as: m = "div",
|
|
55
60
|
size: p = "normal",
|
|
56
|
-
opacity:
|
|
57
|
-
className:
|
|
58
|
-
name:
|
|
59
|
-
} = o,
|
|
60
|
-
color:
|
|
61
|
+
opacity: c,
|
|
62
|
+
className: s,
|
|
63
|
+
name: n
|
|
64
|
+
} = o, e = {
|
|
65
|
+
color: x({
|
|
61
66
|
...o,
|
|
62
|
-
opacity: g(
|
|
67
|
+
opacity: g(c)
|
|
63
68
|
})
|
|
64
|
-
},
|
|
65
|
-
return /* @__PURE__ */ t(m, { ref:
|
|
69
|
+
}, _ = I(i.root, i[`size-${p}`], s), a = f[n];
|
|
70
|
+
return /* @__PURE__ */ t(m, { ref: r, style: e, className: _, children: /* @__PURE__ */ t(a, {}) });
|
|
66
71
|
});
|
|
67
72
|
export {
|
|
68
|
-
|
|
73
|
+
Bo as IconBig
|
|
69
74
|
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { clsx as
|
|
5
|
-
const
|
|
6
|
-
unset:
|
|
7
|
-
root:
|
|
8
|
-
medium:
|
|
9
|
-
large:
|
|
2
|
+
import i from "react";
|
|
3
|
+
import { Icon as f } from "../Icon/Icon.js";
|
|
4
|
+
import { clsx as d } from "../../utils/clsx.js";
|
|
5
|
+
const p = "cfxui__IconButton__unset__de209", x = "cfxui__IconButton__root__5af4a", I = "cfxui__IconButton__medium__52958", B = "cfxui__IconButton__large__6d5d8", o = {
|
|
6
|
+
unset: p,
|
|
7
|
+
root: x,
|
|
8
|
+
medium: I,
|
|
9
|
+
large: B
|
|
10
10
|
};
|
|
11
|
-
function
|
|
11
|
+
function b(n) {
|
|
12
12
|
const {
|
|
13
|
-
name:
|
|
14
|
-
onClick:
|
|
15
|
-
className:
|
|
16
|
-
disabled:
|
|
17
|
-
ariaLabel:
|
|
18
|
-
areaSize:
|
|
19
|
-
size:
|
|
20
|
-
color:
|
|
21
|
-
...
|
|
22
|
-
} =
|
|
13
|
+
name: e,
|
|
14
|
+
onClick: a,
|
|
15
|
+
className: c,
|
|
16
|
+
disabled: r,
|
|
17
|
+
ariaLabel: s,
|
|
18
|
+
areaSize: _ = "small",
|
|
19
|
+
size: u = "xxsmall",
|
|
20
|
+
color: m = "primary",
|
|
21
|
+
...l
|
|
22
|
+
} = n;
|
|
23
23
|
return /* @__PURE__ */ t(
|
|
24
24
|
"button",
|
|
25
25
|
{
|
|
26
26
|
type: "button",
|
|
27
|
-
className:
|
|
28
|
-
onClick:
|
|
29
|
-
disabled:
|
|
30
|
-
"aria-label":
|
|
31
|
-
children: /* @__PURE__ */ t(
|
|
27
|
+
className: d(o.unset, o.root, c, o[_]),
|
|
28
|
+
onClick: a,
|
|
29
|
+
disabled: r,
|
|
30
|
+
"aria-label": s,
|
|
31
|
+
children: /* @__PURE__ */ t(f, { as: "span", name: e, ...l, color: m, size: u })
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
|
-
const h =
|
|
35
|
+
const h = i.memo(b);
|
|
36
36
|
export {
|
|
37
37
|
h as default
|
|
38
38
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { I as s } from "../../cfxIcons-
|
|
2
|
+
import { I as s } from "../../cfxIcons-BNd1WgpX.js";
|
|
3
3
|
import { I as c } from "../../cfxIconsBig-BLJjMT-Y.js";
|
|
4
4
|
function d() {
|
|
5
5
|
const l = Object.entries(s).map(([i, t]) => ({
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import e from "react";
|
|
3
|
+
function n(t) {
|
|
4
|
+
return /* @__PURE__ */ o(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
...t,
|
|
8
|
+
viewBox: "0 0 16 16",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ r(
|
|
12
|
+
"path",
|
|
13
|
+
{
|
|
14
|
+
d: "M3.15659 4.28H13L12 10.21H4.1L2.84 2.29L0.75 1.75",
|
|
15
|
+
stroke: "currentColor",
|
|
16
|
+
strokeWidth: "1.5",
|
|
17
|
+
strokeLinecap: "round",
|
|
18
|
+
strokeLinejoin: "round"
|
|
19
|
+
}
|
|
20
|
+
),
|
|
21
|
+
/* @__PURE__ */ r(
|
|
22
|
+
"path",
|
|
23
|
+
{
|
|
24
|
+
fill: "currentColor",
|
|
25
|
+
d: "M5.64998 12.05C5.00998 12.05 4.47998 12.57 4.47998 13.22C4.47998 13.87 4.99998 14.39 5.64998 14.39C6.29998 14.39 6.81998 13.87 6.81998 13.22C6.81998 12.57 6.29998 12.05 5.64998 12.05Z"
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ r(
|
|
29
|
+
"path",
|
|
30
|
+
{
|
|
31
|
+
fill: "currentColor",
|
|
32
|
+
d: "M10.65 12.05C10.01 12.05 9.47998 12.57 9.47998 13.22C9.47998 13.87 9.99998 14.39 10.65 14.39C11.3 14.39 11.82 13.87 11.82 13.22C11.82 12.57 11.3 12.05 10.65 12.05Z"
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
const i = e.memo(n);
|
|
40
|
+
export {
|
|
41
|
+
i as default
|
|
42
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import r from "react";
|
|
3
|
+
function e(o) {
|
|
4
|
+
return /* @__PURE__ */ t(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
...o,
|
|
8
|
+
viewBox: "0 0 16 16",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
children: /* @__PURE__ */ t(
|
|
11
|
+
"path",
|
|
12
|
+
{
|
|
13
|
+
d: "M7.75 2.75V12.75M12.75 7.75H2.75M4.89 4.89L10.61 10.61M10.61 4.89L4.89 10.61",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: "1.5",
|
|
16
|
+
strokeLinecap: "round",
|
|
17
|
+
strokeLinejoin: "round"
|
|
18
|
+
}
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
const i = r.memo(e);
|
|
24
|
+
export {
|
|
25
|
+
i as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import e from "react";
|
|
3
|
+
function t(r) {
|
|
4
|
+
return /* @__PURE__ */ o(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
...r,
|
|
8
|
+
viewBox: "0 0 16 16",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
children: /* @__PURE__ */ o(
|
|
12
|
+
"path",
|
|
13
|
+
{
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: "1.5",
|
|
16
|
+
strokeLinecap: "round",
|
|
17
|
+
strokeLinejoin: "round",
|
|
18
|
+
d: "M12.33 9.75C11.56 11.52 9.8 12.75 7.75 12.75C4.99 12.75 2.75 10.51 2.75 7.75C2.75 4.99 4.99 2.75 7.75 2.75C9.8 2.75 11.56 3.98 12.33 5.75M13.76 4.13L12.89 7L10.02 6.13M7.53998 5.56995V8.51995L8.68998 9.67995"
|
|
19
|
+
}
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
const s = e.memo(t);
|
|
25
|
+
export {
|
|
26
|
+
s as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsxs as t, jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import o from "react";
|
|
3
|
+
function e(r) {
|
|
4
|
+
return /* @__PURE__ */ t(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
...r,
|
|
8
|
+
viewBox: "0 0 16 16",
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ C(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
d: "M8.00545 8.22533C6.24973 8.22533 4.7121 9.0952 3.81788 10.4157C3.46892 10.9188 3.22901 11.4952 3.09815 12.1135C3.07634 12.2183 3.07634 12.3231 3.06543 12.4279C3.04362 12.6271 3 12.8262 3 13.0358V14H13V13.0358C13 10.3843 10.7644 8.22533 7.99455 8.22533H8.00545ZM4.7012 12.4279C4.99564 10.9293 6.36968 9.79738 8.00545 9.79738C9.64122 9.79738 11.0153 10.9293 11.3097 12.4279H4.69029H4.7012Z"
|
|
16
|
+
}
|
|
17
|
+
),
|
|
18
|
+
/* @__PURE__ */ C(
|
|
19
|
+
"path",
|
|
20
|
+
{
|
|
21
|
+
d: "M8.00545 6.6952C9.35769 6.6952 10.4482 5.64716 10.4482 4.3476C10.4482 3.04803 9.35769 2 8.00545 2C6.65322 2 5.5627 3.04803 5.5627 4.3476C5.5627 5.64716 6.65322 6.6952 8.00545 6.6952ZM8.00545 3.58253C8.45256 3.58253 8.81243 3.92838 8.81243 4.35808C8.81243 4.78777 8.45256 5.13362 8.00545 5.13362C7.55834 5.13362 7.19847 4.78777 7.19847 4.35808C7.19847 3.92838 7.55834 3.58253 8.00545 3.58253Z"
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
const m = o.memo(e);
|
|
29
|
+
export {
|
|
30
|
+
m as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import e from "react";
|
|
3
|
+
function t(r) {
|
|
4
|
+
return /* @__PURE__ */ C(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
...r,
|
|
8
|
+
viewBox: "0 0 16 16",
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
children: /* @__PURE__ */ C(
|
|
12
|
+
"path",
|
|
13
|
+
{
|
|
14
|
+
d: "M14.72 8.08718C14.72 7.43718 13.92 6.92718 13.73 6.34718C13.53 5.73718 13.88 4.85718 13.51 4.34718C13.14 3.83718 12.19 3.89718 11.68 3.52718C11.18 3.15718 10.94 2.23718 10.33 2.03718C9.75 1.84718 9.01 2.44718 8.36 2.44718C7.71 2.44718 6.98 1.84718 6.39 2.03718C5.78 2.23718 5.54 3.15718 5.04 3.52718C4.53 3.89718 3.58 3.84718 3.21 4.34718C2.84 4.84718 3.19 5.73718 2.99 6.34718C2.8 6.92718 2 7.44718 2 8.08718C2 8.72718 2.8 9.24718 2.99 9.82718C3.19 10.4372 2.84 11.3172 3.21 11.8272C3.58 12.3372 4.53 12.2772 5.04 12.6472C5.54 13.0172 5.78 13.9372 6.39 14.1372C6.97 14.3272 7.71 13.7272 8.36 13.7272C9.01 13.7272 9.74 14.3272 10.33 14.1372C10.94 13.9372 11.18 13.0172 11.68 12.6472C12.19 12.2772 13.14 12.3272 13.51 11.8272C13.88 11.3272 13.53 10.4372 13.73 9.82718C13.92 9.24718 14.72 8.72718 14.72 8.08718ZM11.72 6.94718L7.53 11.1372C7.38 11.2872 7.19 11.3572 7 11.3572C6.81 11.3572 6.62 11.2872 6.47 11.1372L5.01 9.67718C4.72 9.38718 4.72 8.90718 5.01 8.61718C5.3 8.32718 5.78 8.32718 6.07 8.61718L7 9.54718L10.66 5.88718C10.95 5.59718 11.43 5.59718 11.72 5.88718C12.01 6.17718 12.01 6.65718 11.72 6.94718Z"
|
|
15
|
+
}
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
const f = e.memo(t);
|
|
21
|
+
export {
|
|
22
|
+
f as default
|
|
23
|
+
};
|
|
@@ -38,3 +38,8 @@ export { default as Users } from './cfx-icons/Users';
|
|
|
38
38
|
export { default as Visibility } from './cfx-icons/Visibility';
|
|
39
39
|
export { default as VisibilityOff } from './cfx-icons/VisibilityOff';
|
|
40
40
|
export { default as Warning } from './cfx-icons/Warning';
|
|
41
|
+
export { default as Cart } from './cfx-icons/Cart';
|
|
42
|
+
export { default as User } from './cfx-icons/User';
|
|
43
|
+
export { default as Verified } from './cfx-icons/Verified';
|
|
44
|
+
export { default as UpvotesBurst } from './cfx-icons/UpvotesBurst';
|
|
45
|
+
export { default as UpvotesRecurring } from './cfx-icons/UpvotesRecurring';
|