@cfx-dev/ui-components 4.5.14 → 4.5.16
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/all_css.css +1 -0
- package/dist/assets/css/AccordionShowcase.css +1 -0
- package/dist/assets/css/Avatar.css +1 -1
- package/dist/assets/css/Badge.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/cfxIcons-B4SQ4Ljd.js +100 -0
- package/dist/components/Accordion/Accordion.d.ts +11 -1
- package/dist/components/Accordion/Accordion.js +105 -98
- package/dist/components/Accordion/AccordionShowcase.js +129 -95
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.js +21 -19
- package/dist/components/Avatar/AvatarShowcase.js +20 -12
- package/dist/components/Badge/Badge.js +16 -17
- package/dist/components/Badge/BadgeShowcase.js +10 -0
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Button/Button.js +78 -72
- package/dist/components/Button/ButtonShowcase.js +16 -5
- package/dist/components/Checkbox/Checkbox.js +4 -3
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/IconBig/IconBig.js +3 -2
- package/dist/components/Icons/IconsShowcase.js +1 -1
- package/dist/components/Icons/cfx-icons/Filter.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Filter.js +23 -0
- package/dist/components/Icons/cfxIcons.d.ts +1 -0
- package/dist/components/Icons/cfxIcons.js +80 -78
- package/dist/components/Icons/index.js +1 -1
- package/dist/components/Text/Text.types.d.ts +1 -1
- package/dist/main.js +1 -1
- package/dist/styles-scss/_ui.scss +5 -0
- package/dist/styles-scss/tokens.scss +1 -0
- package/package.json +1 -1
- package/dist/cfxIcons-B9nzO6TW.js +0 -98
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import r from "./components/Icons/cfx-icons/Close.js";
|
|
2
|
+
import o from "./components/Icons/cfx-icons/Controller.js";
|
|
3
|
+
import m from "./components/Icons/cfx-icons/Copy.js";
|
|
4
|
+
import t from "./components/Icons/cfx-icons/DownArrow.js";
|
|
5
|
+
import i from "./components/Icons/cfx-icons/DownChevron.js";
|
|
6
|
+
import p from "./components/Icons/cfx-icons/Download.js";
|
|
7
|
+
import f from "./components/Icons/cfx-icons/Expand.js";
|
|
8
|
+
import e from "./components/Icons/cfx-icons/ExternalLink.js";
|
|
9
|
+
import n from "./components/Icons/cfx-icons/Filter.js";
|
|
10
|
+
import l from "./components/Icons/cfx-icons/Heart.js";
|
|
11
|
+
import a from "./components/Icons/cfx-icons/HeartFilled.js";
|
|
12
|
+
import s from "./components/Icons/cfx-icons/Help.js";
|
|
13
|
+
import h from "./components/Icons/cfx-icons/LeftArrow.js";
|
|
14
|
+
import u from "./components/Icons/cfx-icons/LeftChevron.js";
|
|
15
|
+
import c from "./components/Icons/cfx-icons/Map.js";
|
|
16
|
+
import d from "./components/Icons/cfx-icons/Menu.js";
|
|
17
|
+
import C from "./components/Icons/cfx-icons/Minus.js";
|
|
18
|
+
import U from "./components/Icons/cfx-icons/More.js";
|
|
19
|
+
import v from "./components/Icons/cfx-icons/MoreInfo.js";
|
|
20
|
+
import w from "./components/Icons/cfx-icons/Pencil.js";
|
|
21
|
+
import S from "./components/Icons/cfx-icons/Play.js";
|
|
22
|
+
import g from "./components/Icons/cfx-icons/Plus.js";
|
|
23
|
+
import y from "./components/Icons/cfx-icons/Radio.js";
|
|
24
|
+
import M from "./components/Icons/cfx-icons/Refresh.js";
|
|
25
|
+
import b from "./components/Icons/cfx-icons/RightArrow.js";
|
|
26
|
+
import R from "./components/Icons/cfx-icons/RightChevron.js";
|
|
27
|
+
import A from "./components/Icons/cfx-icons/Search.js";
|
|
28
|
+
import P from "./components/Icons/cfx-icons/Sort.js";
|
|
29
|
+
import T from "./components/Icons/cfx-icons/Square.js";
|
|
30
|
+
import _ from "./components/Icons/cfx-icons/SquareCheck.js";
|
|
31
|
+
import k from "./components/Icons/cfx-icons/Stop.js";
|
|
32
|
+
import x from "./components/Icons/cfx-icons/Tick.js";
|
|
33
|
+
import D from "./components/Icons/cfx-icons/Transfer.js";
|
|
34
|
+
import H from "./components/Icons/cfx-icons/Trash.js";
|
|
35
|
+
import I from "./components/Icons/cfx-icons/Undo.js";
|
|
36
|
+
import L from "./components/Icons/cfx-icons/UpArrow.js";
|
|
37
|
+
import O from "./components/Icons/cfx-icons/UpChevron.js";
|
|
38
|
+
import V from "./components/Icons/cfx-icons/Upload.js";
|
|
39
|
+
import j from "./components/Icons/cfx-icons/Users.js";
|
|
40
|
+
import q from "./components/Icons/cfx-icons/Visibility.js";
|
|
41
|
+
import E from "./components/Icons/cfx-icons/VisibilityOff.js";
|
|
42
|
+
import F from "./components/Icons/cfx-icons/Warning.js";
|
|
43
|
+
import z from "./components/Icons/cfx-icons/Cart.js";
|
|
44
|
+
import B from "./components/Icons/cfx-icons/User.js";
|
|
45
|
+
import W from "./components/Icons/cfx-icons/Verified.js";
|
|
46
|
+
import G from "./components/Icons/cfx-icons/UpvotesBurst.js";
|
|
47
|
+
import J from "./components/Icons/cfx-icons/UpvotesRecurring.js";
|
|
48
|
+
const Er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
49
|
+
__proto__: null,
|
|
50
|
+
Cart: z,
|
|
51
|
+
Close: r,
|
|
52
|
+
Controller: o,
|
|
53
|
+
Copy: m,
|
|
54
|
+
DownArrow: t,
|
|
55
|
+
DownChevron: i,
|
|
56
|
+
Download: p,
|
|
57
|
+
Expand: f,
|
|
58
|
+
ExternalLink: e,
|
|
59
|
+
Filter: n,
|
|
60
|
+
Heart: l,
|
|
61
|
+
HeartFilled: a,
|
|
62
|
+
Help: s,
|
|
63
|
+
LeftArrow: h,
|
|
64
|
+
LeftChevron: u,
|
|
65
|
+
Map: c,
|
|
66
|
+
Menu: d,
|
|
67
|
+
Minus: C,
|
|
68
|
+
More: U,
|
|
69
|
+
MoreInfo: v,
|
|
70
|
+
Pencil: w,
|
|
71
|
+
Play: S,
|
|
72
|
+
Plus: g,
|
|
73
|
+
Radio: y,
|
|
74
|
+
Refresh: M,
|
|
75
|
+
RightArrow: b,
|
|
76
|
+
RightChevron: R,
|
|
77
|
+
Search: A,
|
|
78
|
+
Sort: P,
|
|
79
|
+
Square: T,
|
|
80
|
+
SquareCheck: _,
|
|
81
|
+
Stop: k,
|
|
82
|
+
Tick: x,
|
|
83
|
+
Transfer: D,
|
|
84
|
+
Trash: H,
|
|
85
|
+
Undo: I,
|
|
86
|
+
UpArrow: L,
|
|
87
|
+
UpChevron: O,
|
|
88
|
+
Upload: V,
|
|
89
|
+
UpvotesBurst: G,
|
|
90
|
+
UpvotesRecurring: J,
|
|
91
|
+
User: B,
|
|
92
|
+
Users: j,
|
|
93
|
+
Verified: W,
|
|
94
|
+
Visibility: q,
|
|
95
|
+
VisibilityOff: E,
|
|
96
|
+
Warning: F
|
|
97
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
98
|
+
export {
|
|
99
|
+
Er as I
|
|
100
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IconName } from '../Icon';
|
|
3
|
+
import { BoxDisplayType } from '../RSC/Box/Box.types';
|
|
3
4
|
|
|
4
5
|
export interface AccordionProps {
|
|
5
6
|
className?: string;
|
|
@@ -10,6 +11,15 @@ export declare const AccordionHeader: React.FC<React.PropsWithChildren>;
|
|
|
10
11
|
export interface AccordionTriggerProps {
|
|
11
12
|
text: string;
|
|
12
13
|
iconLeft?: IconName;
|
|
14
|
+
iconLeftClassName?: string;
|
|
15
|
+
iconRightClassName?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
textClassName?: string;
|
|
13
18
|
}
|
|
14
19
|
export declare const AccordionTrigger: React.FC<AccordionTriggerProps>;
|
|
15
|
-
export
|
|
20
|
+
export interface AccordionContentProps extends React.PropsWithChildren {
|
|
21
|
+
className?: string;
|
|
22
|
+
innerClassName?: string;
|
|
23
|
+
contentDisplay?: BoxDisplayType;
|
|
24
|
+
}
|
|
25
|
+
export declare const AccordionContent: React.FC<AccordionContentProps>;
|
|
@@ -1,139 +1,146 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
1
|
+
import { jsx as c, jsxs as T } from "react/jsx-runtime";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { Text as
|
|
5
|
-
import { ui as
|
|
6
|
-
import { clsx as
|
|
7
|
-
import { debounce as
|
|
8
|
-
import { minmax as
|
|
9
|
-
const
|
|
10
|
-
iconFlip:
|
|
11
|
-
triggerContainer:
|
|
12
|
-
iconUp:
|
|
13
|
-
iconDown:
|
|
14
|
-
text:
|
|
15
|
-
iconLeft:
|
|
16
|
-
iconRight:
|
|
17
|
-
content:
|
|
18
|
-
contentText:
|
|
19
|
-
open:
|
|
20
|
-
closed:
|
|
21
|
-
},
|
|
3
|
+
import { Icon as v } from "../Icon/Icon.js";
|
|
4
|
+
import { Text as I } from "../Text/Text.js";
|
|
5
|
+
import { ui as k } from "../../utils/ui/ui.js";
|
|
6
|
+
import { clsx as p } from "../../utils/clsx.js";
|
|
7
|
+
import { debounce as D } from "../../utils/execution.js";
|
|
8
|
+
import { minmax as E } from "../../utils/math.js";
|
|
9
|
+
const L = "cfxui__Accordion__iconFlip__367de", U = "cfxui__Accordion__triggerContainer__b92c1", F = "cfxui__Accordion__iconUp__28d27", $ = "cfxui__Accordion__iconDown__b9e95", S = "cfxui__Accordion__text__03dc4", W = "cfxui__Accordion__iconLeft__e348b", z = "cfxui__Accordion__iconRight__bbf0c", H = "cfxui__Accordion__content__5ecaf", O = "cfxui__Accordion__contentText__1384b", M = "cfxui__Accordion__open__ed604", j = "cfxui__Accordion__closed__be897", t = {
|
|
10
|
+
iconFlip: L,
|
|
11
|
+
triggerContainer: U,
|
|
12
|
+
iconUp: F,
|
|
13
|
+
iconDown: $,
|
|
14
|
+
text: S,
|
|
15
|
+
iconLeft: W,
|
|
16
|
+
iconRight: z,
|
|
17
|
+
content: H,
|
|
18
|
+
contentText: O,
|
|
19
|
+
open: M,
|
|
20
|
+
closed: j
|
|
21
|
+
}, b = e.createContext(void 0), X = function(i) {
|
|
22
22
|
const {
|
|
23
|
-
children:
|
|
24
|
-
className:
|
|
25
|
-
} = i, [
|
|
26
|
-
|
|
27
|
-
...
|
|
28
|
-
[
|
|
23
|
+
children: r,
|
|
24
|
+
className: _
|
|
25
|
+
} = i, [m, f] = e.useState({}), [d, s] = e.useState(null), a = e.useRef(null), n = e.useCallback((x) => {
|
|
26
|
+
f((u) => ({
|
|
27
|
+
...u,
|
|
28
|
+
[x]: !u[x]
|
|
29
29
|
}));
|
|
30
|
-
}, []),
|
|
31
|
-
openItems:
|
|
32
|
-
toggleItem:
|
|
30
|
+
}, []), l = e.useMemo(() => ({
|
|
31
|
+
openItems: m,
|
|
32
|
+
toggleItem: n,
|
|
33
33
|
rootWidth: d
|
|
34
|
-
}), [
|
|
35
|
-
|
|
36
|
-
}, []),
|
|
37
|
-
return e.useEffect(() => (window.addEventListener("resize",
|
|
38
|
-
window.removeEventListener("resize",
|
|
39
|
-
}), [
|
|
40
|
-
},
|
|
34
|
+
}), [m, n, d]), h = e.useCallback(() => {
|
|
35
|
+
a.current && s(a.current.getBoundingClientRect().width);
|
|
36
|
+
}, []), o = e.useMemo(() => D(h, 250), [h]);
|
|
37
|
+
return e.useEffect(() => (window.addEventListener("resize", o), () => {
|
|
38
|
+
window.removeEventListener("resize", o);
|
|
39
|
+
}), [o]), /* @__PURE__ */ c(b.Provider, { value: l, children: /* @__PURE__ */ c("div", { ref: a, className: _, role: "presentation", children: r }) });
|
|
40
|
+
}, w = e.createContext(""), Y = function({
|
|
41
41
|
children: i
|
|
42
42
|
}) {
|
|
43
|
-
const
|
|
44
|
-
return /* @__PURE__ */ c(
|
|
45
|
-
},
|
|
43
|
+
const r = e.useId();
|
|
44
|
+
return /* @__PURE__ */ c(w.Provider, { value: r, children: /* @__PURE__ */ c("div", { className: t.item, id: r, role: "region", "aria-labelledby": `${r}-header`, children: i }) });
|
|
45
|
+
}, Z = function({
|
|
46
46
|
children: i
|
|
47
47
|
}) {
|
|
48
|
-
return /* @__PURE__ */ c("div", { className:
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
return /* @__PURE__ */ c("div", { className: t.header, children: i });
|
|
49
|
+
}, ee = function(i) {
|
|
50
|
+
const {
|
|
51
|
+
text: r,
|
|
52
|
+
iconLeft: _,
|
|
53
|
+
iconRightClassName: m,
|
|
54
|
+
iconLeftClassName: f,
|
|
55
|
+
className: d,
|
|
56
|
+
textClassName: s
|
|
57
|
+
} = i, a = e.useContext(b), n = e.useContext(w);
|
|
58
|
+
if (!a)
|
|
55
59
|
throw new Error("AccordionTrigger must be used within an Accordion");
|
|
56
60
|
const {
|
|
57
|
-
toggleItem:
|
|
58
|
-
openItems:
|
|
59
|
-
} =
|
|
60
|
-
|
|
61
|
-
}, [n,
|
|
62
|
-
(
|
|
63
|
-
}, [n,
|
|
61
|
+
toggleItem: l,
|
|
62
|
+
openItems: h
|
|
63
|
+
} = a, o = h[n], [x, u] = e.useState(!1), [A, R] = e.useState(o ? "UpChevron" : "DownChevron"), N = e.useCallback(() => {
|
|
64
|
+
l(n);
|
|
65
|
+
}, [n, l]), y = e.useCallback((C) => {
|
|
66
|
+
(C.key === "Enter" || C.key === " ") && l(n);
|
|
67
|
+
}, [n, l]);
|
|
64
68
|
return e.useEffect(() => {
|
|
65
|
-
const
|
|
66
|
-
|
|
69
|
+
const C = setTimeout(() => {
|
|
70
|
+
R(o ? "UpChevron" : "DownChevron"), u(!1);
|
|
67
71
|
}, 300);
|
|
68
|
-
return
|
|
69
|
-
}, [
|
|
72
|
+
return u(!0), () => clearTimeout(C);
|
|
73
|
+
}, [o]), /* @__PURE__ */ T(
|
|
70
74
|
"div",
|
|
71
75
|
{
|
|
72
|
-
className:
|
|
73
|
-
onClick:
|
|
74
|
-
onKeyDown:
|
|
76
|
+
className: p(t.triggerContainer, d),
|
|
77
|
+
onClick: N,
|
|
78
|
+
onKeyDown: y,
|
|
75
79
|
role: "button",
|
|
76
80
|
tabIndex: 0,
|
|
77
|
-
"aria-expanded":
|
|
81
|
+
"aria-expanded": o,
|
|
78
82
|
"aria-controls": `${n}-content`,
|
|
79
83
|
id: `${n}-header`,
|
|
80
84
|
children: [
|
|
81
|
-
|
|
82
|
-
/* @__PURE__ */ c(
|
|
85
|
+
_ && /* @__PURE__ */ c(v, { name: _, className: p(t.iconLeft, f) }),
|
|
86
|
+
/* @__PURE__ */ c(I, { size: "normal", className: p(t.text, s), children: r }),
|
|
83
87
|
/* @__PURE__ */ c(
|
|
84
|
-
|
|
88
|
+
v,
|
|
85
89
|
{
|
|
86
|
-
className:
|
|
87
|
-
[
|
|
88
|
-
[
|
|
89
|
-
[
|
|
90
|
+
className: p(t.iconRight, m, {
|
|
91
|
+
[t.iconFlip]: x,
|
|
92
|
+
[t.iconUp]: A === "UpChevron",
|
|
93
|
+
[t.iconDown]: A === "DownChevron"
|
|
90
94
|
}),
|
|
91
|
-
name:
|
|
95
|
+
name: A
|
|
92
96
|
}
|
|
93
97
|
)
|
|
94
98
|
]
|
|
95
99
|
}
|
|
96
100
|
);
|
|
97
|
-
},
|
|
98
|
-
children: i
|
|
101
|
+
}, ne = function({
|
|
102
|
+
children: i,
|
|
103
|
+
className: r,
|
|
104
|
+
innerClassName: _,
|
|
105
|
+
contentDisplay: m = "inline-block"
|
|
99
106
|
}) {
|
|
100
|
-
const
|
|
101
|
-
if (!
|
|
107
|
+
const f = e.useContext(b), d = e.useContext(w), [s, a] = e.useState(null), n = e.useRef(null);
|
|
108
|
+
if (!f)
|
|
102
109
|
throw new Error("AccordionContent must be used within an Accordion");
|
|
103
110
|
const {
|
|
104
|
-
openItems:
|
|
105
|
-
rootWidth:
|
|
106
|
-
} =
|
|
111
|
+
openItems: l,
|
|
112
|
+
rootWidth: h
|
|
113
|
+
} = f, o = l[d], x = e.useMemo(() => s === null ? 250 : E(s / 150 * 250, 350, 500), [s]);
|
|
107
114
|
return e.useEffect(() => {
|
|
108
|
-
|
|
109
|
-
}, [
|
|
110
|
-
if (
|
|
111
|
-
const
|
|
112
|
-
|
|
115
|
+
a(null);
|
|
116
|
+
}, [h]), e.useEffect(() => {
|
|
117
|
+
if (s === null && n.current) {
|
|
118
|
+
const u = n.current.getBoundingClientRect().height;
|
|
119
|
+
a(u);
|
|
113
120
|
}
|
|
114
|
-
}, [
|
|
121
|
+
}, [s]), /* @__PURE__ */ c(
|
|
115
122
|
"div",
|
|
116
123
|
{
|
|
117
|
-
id: `${
|
|
124
|
+
id: `${d}-content`,
|
|
118
125
|
role: "region",
|
|
119
|
-
"aria-labelledby": `${
|
|
120
|
-
className:
|
|
121
|
-
[
|
|
122
|
-
[
|
|
126
|
+
"aria-labelledby": `${d}-header`,
|
|
127
|
+
className: p(t.content, r, {
|
|
128
|
+
[t.open]: o,
|
|
129
|
+
[t.closed]: !o
|
|
123
130
|
}),
|
|
124
131
|
style: {
|
|
125
|
-
"--content-display":
|
|
126
|
-
"--content-height":
|
|
127
|
-
"--content-animation-time": `${
|
|
132
|
+
"--content-display": m,
|
|
133
|
+
"--content-height": k.q(100),
|
|
134
|
+
"--content-animation-time": `${x}ms`
|
|
128
135
|
},
|
|
129
136
|
children: /* @__PURE__ */ c(
|
|
130
|
-
|
|
137
|
+
I,
|
|
131
138
|
{
|
|
132
139
|
color: "secondary",
|
|
133
140
|
size: "normal",
|
|
134
141
|
typographic: !0,
|
|
135
|
-
className:
|
|
136
|
-
ref:
|
|
142
|
+
className: p(t.contentText, _),
|
|
143
|
+
ref: n,
|
|
137
144
|
children: i
|
|
138
145
|
}
|
|
139
146
|
)
|
|
@@ -141,9 +148,9 @@ const T = "cfxui__Accordion__iconFlip__367de", k = "cfxui__Accordion__triggerCon
|
|
|
141
148
|
);
|
|
142
149
|
};
|
|
143
150
|
export {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
151
|
+
X as Accordion,
|
|
152
|
+
ne as AccordionContent,
|
|
153
|
+
Z as AccordionHeader,
|
|
154
|
+
Y as AccordionItem,
|
|
155
|
+
ee as AccordionTrigger
|
|
149
156
|
};
|
|
@@ -1,107 +1,141 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as e, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import l from "react";
|
|
3
3
|
import a from "../Flex/Flex.js";
|
|
4
|
-
import { Text as
|
|
4
|
+
import { Text as h } from "../Text/Text.js";
|
|
5
5
|
import "../../utils/ui/ui.js";
|
|
6
|
-
import { Accordion as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
6
|
+
import { Accordion as s, AccordionItem as o, AccordionHeader as r, AccordionTrigger as i, AccordionContent as n } from "./Accordion.js";
|
|
7
|
+
const u = "cfxui__AccordionShowcase__customTrigger__50550", d = "cfxui__AccordionShowcase__customTriggerIconRight__29b74", g = "cfxui__AccordionShowcase__customTriggerText__6f61c", m = "cfxui__AccordionShowcase__customContent__f7c2f", y = "cfxui__AccordionShowcase__customContentInner__f3d0e", c = {
|
|
8
|
+
customTrigger: u,
|
|
9
|
+
customTriggerIconRight: d,
|
|
10
|
+
customTriggerText: g,
|
|
11
|
+
customContent: m,
|
|
12
|
+
customContentInner: y
|
|
13
|
+
};
|
|
14
|
+
function v() {
|
|
15
|
+
return /* @__PURE__ */ e(a, { fullWidth: !0, vertical: !0, p: 2, gap: "large", children: [
|
|
16
|
+
/* @__PURE__ */ e(a, { fullWidth: !0, vertical: !0, children: [
|
|
17
|
+
/* @__PURE__ */ t(h, { size: "large", children: "Accordion" }),
|
|
18
|
+
/* @__PURE__ */ e(s, { children: [
|
|
19
|
+
/* @__PURE__ */ e(o, { children: [
|
|
20
|
+
/* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
|
|
21
|
+
i,
|
|
22
|
+
{
|
|
23
|
+
text: "Will I get banned from GTA:O?"
|
|
24
|
+
}
|
|
25
|
+
) }),
|
|
26
|
+
/* @__PURE__ */ e(n, { children: [
|
|
27
|
+
"Nope!",
|
|
28
|
+
" ",
|
|
29
|
+
/* @__PURE__ */ t("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
30
|
+
" ",
|
|
31
|
+
"does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it."
|
|
32
|
+
] })
|
|
33
|
+
] }),
|
|
34
|
+
/* @__PURE__ */ e(o, { children: [
|
|
35
|
+
/* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
|
|
36
|
+
i,
|
|
37
|
+
{
|
|
38
|
+
text: "Can I cheat on FiveM?",
|
|
39
|
+
iconLeft: "Heart"
|
|
40
|
+
}
|
|
41
|
+
) }),
|
|
42
|
+
/* @__PURE__ */ t(n, { children: "Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned!" })
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ e(o, { children: [
|
|
45
|
+
/* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
|
|
46
|
+
i,
|
|
47
|
+
{
|
|
48
|
+
text: "Is this accordion any good?",
|
|
49
|
+
iconLeft: "Pencil"
|
|
50
|
+
}
|
|
51
|
+
) }),
|
|
52
|
+
/* @__PURE__ */ t(n, { children: "Obviously!" })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ e(o, { children: [
|
|
55
|
+
/* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
|
|
56
|
+
i,
|
|
57
|
+
{
|
|
58
|
+
text: "Who said?"
|
|
59
|
+
}
|
|
60
|
+
) }),
|
|
61
|
+
/* @__PURE__ */ t(n, { children: "Me!" })
|
|
62
|
+
] }),
|
|
63
|
+
/* @__PURE__ */ e(o, { children: [
|
|
64
|
+
/* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
|
|
65
|
+
i,
|
|
66
|
+
{
|
|
67
|
+
text: "Long long text, Long long text, Long long text, Long long text, Long long text, Long long text to test the overflow, will it work? Let's see!",
|
|
68
|
+
iconLeft: "MoreInfo"
|
|
69
|
+
}
|
|
70
|
+
) }),
|
|
71
|
+
/* @__PURE__ */ e(n, { children: [
|
|
72
|
+
"Nope!",
|
|
73
|
+
" ",
|
|
74
|
+
/* @__PURE__ */ t("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
75
|
+
" ",
|
|
76
|
+
"does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it."
|
|
77
|
+
] })
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ e(o, { children: [
|
|
80
|
+
/* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
|
|
81
|
+
i,
|
|
82
|
+
{
|
|
83
|
+
text: "Long long text, Long long text, Long long text, Long long text, Long long text, Long long text to test the overflow, will it work? Let's see!"
|
|
84
|
+
}
|
|
85
|
+
) }),
|
|
86
|
+
/* @__PURE__ */ e(n, { children: [
|
|
87
|
+
"Nope!",
|
|
88
|
+
" ",
|
|
89
|
+
/* @__PURE__ */ t("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
90
|
+
" ",
|
|
91
|
+
"does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope!",
|
|
92
|
+
" ",
|
|
93
|
+
/* @__PURE__ */ t("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
94
|
+
" ",
|
|
95
|
+
"does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope!",
|
|
96
|
+
" ",
|
|
97
|
+
/* @__PURE__ */ t("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
98
|
+
" ",
|
|
99
|
+
"does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope!",
|
|
100
|
+
" ",
|
|
101
|
+
/* @__PURE__ */ t("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
102
|
+
" ",
|
|
103
|
+
"does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it."
|
|
104
|
+
] })
|
|
25
105
|
] })
|
|
26
|
-
] })
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
) }),
|
|
35
|
-
/* @__PURE__ */ e(r, { children: "Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned!" })
|
|
36
|
-
] }),
|
|
37
|
-
/* @__PURE__ */ t(o, { children: [
|
|
38
|
-
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
|
|
39
|
-
n,
|
|
40
|
-
{
|
|
41
|
-
text: "Is this accordion any good?",
|
|
42
|
-
iconLeft: "MoreInfo"
|
|
43
|
-
}
|
|
44
|
-
) }),
|
|
45
|
-
/* @__PURE__ */ e(r, { children: "Obviously!" })
|
|
46
|
-
] }),
|
|
47
|
-
/* @__PURE__ */ t(o, { children: [
|
|
48
|
-
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
|
|
49
|
-
n,
|
|
50
|
-
{
|
|
51
|
-
text: "Who said?",
|
|
52
|
-
iconLeft: "MoreInfo"
|
|
53
|
-
}
|
|
54
|
-
) }),
|
|
55
|
-
/* @__PURE__ */ e(r, { children: "Me!" })
|
|
56
|
-
] }),
|
|
57
|
-
/* @__PURE__ */ t(o, { children: [
|
|
58
|
-
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
|
|
59
|
-
n,
|
|
106
|
+
] })
|
|
107
|
+
] }),
|
|
108
|
+
/* @__PURE__ */ e(a, { fullWidth: !0, vertical: !0, gap: "large", children: [
|
|
109
|
+
/* @__PURE__ */ t(h, { size: "large", children: "Accordion with custom styles" }),
|
|
110
|
+
/* @__PURE__ */ t(s, { children: /* @__PURE__ */ e(o, { children: [
|
|
111
|
+
/* @__PURE__ */ t(
|
|
112
|
+
i,
|
|
60
113
|
{
|
|
61
|
-
text: "
|
|
62
|
-
|
|
114
|
+
text: "Will I get banned from GTA:O?",
|
|
115
|
+
className: c.customTrigger,
|
|
116
|
+
textClassName: c.customTriggerText,
|
|
117
|
+
iconRightClassName: c.customTriggerIconRight
|
|
63
118
|
}
|
|
64
|
-
)
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
"Nope!",
|
|
67
|
-
" ",
|
|
68
|
-
/* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
69
|
-
" ",
|
|
70
|
-
"does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it."
|
|
71
|
-
] })
|
|
72
|
-
] }),
|
|
73
|
-
/* @__PURE__ */ t(o, { children: [
|
|
74
|
-
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
|
|
119
|
+
),
|
|
120
|
+
/* @__PURE__ */ e(
|
|
75
121
|
n,
|
|
76
122
|
{
|
|
77
|
-
|
|
78
|
-
|
|
123
|
+
className: c.customContent,
|
|
124
|
+
innerClassName: c.customContentInner,
|
|
125
|
+
children: [
|
|
126
|
+
"Nope!",
|
|
127
|
+
" ",
|
|
128
|
+
/* @__PURE__ */ t("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
129
|
+
" ",
|
|
130
|
+
"does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it."
|
|
131
|
+
]
|
|
79
132
|
}
|
|
80
|
-
)
|
|
81
|
-
|
|
82
|
-
"Nope!",
|
|
83
|
-
" ",
|
|
84
|
-
/* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
85
|
-
" ",
|
|
86
|
-
"does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope!",
|
|
87
|
-
" ",
|
|
88
|
-
/* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
89
|
-
" ",
|
|
90
|
-
"does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope!",
|
|
91
|
-
" ",
|
|
92
|
-
/* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
93
|
-
" ",
|
|
94
|
-
"does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope!",
|
|
95
|
-
" ",
|
|
96
|
-
/* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
97
|
-
" ",
|
|
98
|
-
"does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it. Nope! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it."
|
|
99
|
-
] })
|
|
100
|
-
] })
|
|
133
|
+
)
|
|
134
|
+
] }) })
|
|
101
135
|
] })
|
|
102
|
-
] })
|
|
136
|
+
] });
|
|
103
137
|
}
|
|
104
|
-
const
|
|
138
|
+
const R = l.memo(v);
|
|
105
139
|
export {
|
|
106
|
-
|
|
140
|
+
R as default
|
|
107
141
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
export type AvatarSize = 'none' | 'small' | 'normal' | 'large' | 'xxxlarge';
|
|
3
|
+
export type AvatarSize = 'none' | 'small' | 'normal' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
|
|
4
4
|
export interface AvatarProps {
|
|
5
5
|
url?: string | undefined | null;
|
|
6
6
|
size?: AvatarSize;
|