@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.
Files changed (32) hide show
  1. package/dist/assets/all_css.css +1 -0
  2. package/dist/assets/css/AccordionShowcase.css +1 -0
  3. package/dist/assets/css/Avatar.css +1 -1
  4. package/dist/assets/css/Badge.css +1 -1
  5. package/dist/assets/general/global.css +1 -1
  6. package/dist/cfxIcons-B4SQ4Ljd.js +100 -0
  7. package/dist/components/Accordion/Accordion.d.ts +11 -1
  8. package/dist/components/Accordion/Accordion.js +105 -98
  9. package/dist/components/Accordion/AccordionShowcase.js +129 -95
  10. package/dist/components/Avatar/Avatar.d.ts +1 -1
  11. package/dist/components/Avatar/Avatar.js +21 -19
  12. package/dist/components/Avatar/AvatarShowcase.js +20 -12
  13. package/dist/components/Badge/Badge.js +16 -17
  14. package/dist/components/Badge/BadgeShowcase.js +10 -0
  15. package/dist/components/Button/Button.d.ts +2 -1
  16. package/dist/components/Button/Button.js +78 -72
  17. package/dist/components/Button/ButtonShowcase.js +16 -5
  18. package/dist/components/Checkbox/Checkbox.js +4 -3
  19. package/dist/components/Icon/Icon.js +1 -1
  20. package/dist/components/IconBig/IconBig.js +3 -2
  21. package/dist/components/Icons/IconsShowcase.js +1 -1
  22. package/dist/components/Icons/cfx-icons/Filter.d.ts +5 -0
  23. package/dist/components/Icons/cfx-icons/Filter.js +23 -0
  24. package/dist/components/Icons/cfxIcons.d.ts +1 -0
  25. package/dist/components/Icons/cfxIcons.js +80 -78
  26. package/dist/components/Icons/index.js +1 -1
  27. package/dist/components/Text/Text.types.d.ts +1 -1
  28. package/dist/main.js +1 -1
  29. package/dist/styles-scss/_ui.scss +5 -0
  30. package/dist/styles-scss/tokens.scss +1 -0
  31. package/package.json +1 -1
  32. 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 declare const AccordionContent: React.FC<React.PropsWithChildren>;
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 v } from "react/jsx-runtime";
1
+ import { jsx as c, jsxs as T } from "react/jsx-runtime";
2
2
  import e from "react";
3
- import { Icon as A } from "../Icon/Icon.js";
4
- import { Text as b } from "../Text/Text.js";
5
- import { ui as I } from "../../utils/ui/ui.js";
6
- import { clsx as w } from "../../utils/clsx.js";
7
- import { debounce as R } from "../../utils/execution.js";
8
- import { minmax as y } from "../../utils/math.js";
9
- const T = "cfxui__Accordion__iconFlip__367de", k = "cfxui__Accordion__triggerContainer__b92c1", D = "cfxui__Accordion__iconUp__28d27", E = "cfxui__Accordion__iconDown__b9e95", N = "cfxui__Accordion__text__03dc4", U = "cfxui__Accordion__iconLeft__e348b", F = "cfxui__Accordion__iconRight__bbf0c", $ = "cfxui__Accordion__content__5ecaf", L = "cfxui__Accordion__contentText__1384b", S = "cfxui__Accordion__open__ed604", W = "cfxui__Accordion__closed__be897", o = {
10
- iconFlip: T,
11
- triggerContainer: k,
12
- iconUp: D,
13
- iconDown: E,
14
- text: N,
15
- iconLeft: U,
16
- iconRight: F,
17
- content: $,
18
- contentText: L,
19
- open: S,
20
- closed: W
21
- }, g = e.createContext(void 0), q = function(i) {
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: t,
24
- className: s
25
- } = i, [n, r] = e.useState({}), [d, a] = e.useState(null), u = e.useRef(null), l = e.useCallback((p) => {
26
- r((m) => ({
27
- ...m,
28
- [p]: !m[p]
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
- }, []), _ = e.useMemo(() => ({
31
- openItems: n,
32
- toggleItem: l,
30
+ }, []), l = e.useMemo(() => ({
31
+ openItems: m,
32
+ toggleItem: n,
33
33
  rootWidth: d
34
- }), [n, l, d]), f = e.useCallback(() => {
35
- u.current && a(u.current.getBoundingClientRect().width);
36
- }, []), h = e.useMemo(() => R(f, 250), [f]);
37
- return e.useEffect(() => (window.addEventListener("resize", h), () => {
38
- window.removeEventListener("resize", h);
39
- }), [h]), /* @__PURE__ */ c(g.Provider, { value: _, children: /* @__PURE__ */ c("div", { ref: u, className: s, role: "presentation", children: t }) });
40
- }, C = e.createContext(""), V = function({
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 t = e.useId();
44
- return /* @__PURE__ */ c(C.Provider, { value: t, children: /* @__PURE__ */ c("div", { className: o.item, id: t, role: "region", "aria-labelledby": `${t}-header`, children: i }) });
45
- }, G = function({
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: o.header, children: i });
49
- }, J = function({
50
- text: i,
51
- iconLeft: t
52
- }) {
53
- const s = e.useContext(g), n = e.useContext(C);
54
- if (!s)
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: r,
58
- openItems: d
59
- } = s, a = d[n], [u, l] = e.useState(!1), [_, f] = e.useState(a ? "UpChevron" : "DownChevron"), h = e.useCallback(() => {
60
- r(n);
61
- }, [n, r]), p = e.useCallback((m) => {
62
- (m.key === "Enter" || m.key === " ") && r(n);
63
- }, [n, r]);
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 m = setTimeout(() => {
66
- f(a ? "UpChevron" : "DownChevron"), l(!1);
69
+ const C = setTimeout(() => {
70
+ R(o ? "UpChevron" : "DownChevron"), u(!1);
67
71
  }, 300);
68
- return l(!0), () => clearTimeout(m);
69
- }, [a]), /* @__PURE__ */ v(
72
+ return u(!0), () => clearTimeout(C);
73
+ }, [o]), /* @__PURE__ */ T(
70
74
  "div",
71
75
  {
72
- className: o.triggerContainer,
73
- onClick: h,
74
- onKeyDown: p,
76
+ className: p(t.triggerContainer, d),
77
+ onClick: N,
78
+ onKeyDown: y,
75
79
  role: "button",
76
80
  tabIndex: 0,
77
- "aria-expanded": a,
81
+ "aria-expanded": o,
78
82
  "aria-controls": `${n}-content`,
79
83
  id: `${n}-header`,
80
84
  children: [
81
- t && /* @__PURE__ */ c(A, { name: t, className: o.iconLeft }),
82
- /* @__PURE__ */ c(b, { size: "normal", className: o.text, children: i }),
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
- A,
88
+ v,
85
89
  {
86
- className: w(o.iconRight, {
87
- [o.iconFlip]: u,
88
- [o.iconUp]: _ === "UpChevron",
89
- [o.iconDown]: _ === "DownChevron"
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
- }, Q = function({
98
- children: i
101
+ }, ne = function({
102
+ children: i,
103
+ className: r,
104
+ innerClassName: _,
105
+ contentDisplay: m = "inline-block"
99
106
  }) {
100
- const t = e.useContext(g), s = e.useContext(C), [n, r] = e.useState(null), d = e.useRef(null);
101
- if (!t)
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: a,
105
- rootWidth: u
106
- } = t, l = a[s], _ = e.useMemo(() => n === null ? 250 : y(n / 150 * 250, 350, 500), [n]);
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
- r(null);
109
- }, [u]), e.useEffect(() => {
110
- if (n === null && d.current) {
111
- const f = d.current.getBoundingClientRect().height;
112
- r(f);
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
- }, [n]), /* @__PURE__ */ c(
121
+ }, [s]), /* @__PURE__ */ c(
115
122
  "div",
116
123
  {
117
- id: `${s}-content`,
124
+ id: `${d}-content`,
118
125
  role: "region",
119
- "aria-labelledby": `${s}-header`,
120
- className: w(o.content, {
121
- [o.open]: l,
122
- [o.closed]: !l
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": "inline-block",
126
- "--content-height": I.q(100),
127
- "--content-animation-time": `${_}ms`
132
+ "--content-display": m,
133
+ "--content-height": k.q(100),
134
+ "--content-animation-time": `${x}ms`
128
135
  },
129
136
  children: /* @__PURE__ */ c(
130
- b,
137
+ I,
131
138
  {
132
139
  color: "secondary",
133
140
  size: "normal",
134
141
  typographic: !0,
135
- className: o.contentText,
136
- ref: d,
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
- q as Accordion,
145
- Q as AccordionContent,
146
- G as AccordionHeader,
147
- V as AccordionItem,
148
- J as AccordionTrigger
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 { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import h from "react";
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 c } from "../Text/Text.js";
4
+ import { Text as h } from "../Text/Text.js";
5
5
  import "../../utils/ui/ui.js";
6
- import { Accordion as l, AccordionItem as o, AccordionHeader as i, AccordionTrigger as n, AccordionContent as r } from "./Accordion.js";
7
- function s() {
8
- return /* @__PURE__ */ e(a, { fullWidth: !0, vertical: !0, children: /* @__PURE__ */ t(a, { fullWidth: !0, vertical: !0, children: [
9
- /* @__PURE__ */ e(c, { size: "large", children: "Accordion" }),
10
- /* @__PURE__ */ t(l, { children: [
11
- /* @__PURE__ */ t(o, { children: [
12
- /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
13
- n,
14
- {
15
- text: "Will I get banned from GTA:O?",
16
- iconLeft: "MoreInfo"
17
- }
18
- ) }),
19
- /* @__PURE__ */ t(r, { children: [
20
- "Nope!",
21
- " ",
22
- /* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
23
- " ",
24
- "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."
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
- /* @__PURE__ */ t(o, { children: [
28
- /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
29
- n,
30
- {
31
- text: "Can I cheat on FiveM?",
32
- iconLeft: "MoreInfo"
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: "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!",
62
- iconLeft: "MoreInfo"
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__ */ t(r, { children: [
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
- 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!",
78
- iconLeft: "MoreInfo"
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
- /* @__PURE__ */ t(r, { children: [
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 p = h.memo(s);
138
+ const R = l.memo(v);
105
139
  export {
106
- p as default
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;