@cfx-dev/ui-components 4.5.18 → 4.5.19

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.
@@ -15,11 +15,13 @@ export interface AccordionTriggerProps {
15
15
  iconRightClassName?: string;
16
16
  className?: string;
17
17
  textClassName?: string;
18
+ preopen?: boolean;
18
19
  }
19
20
  export declare const AccordionTrigger: React.FC<AccordionTriggerProps>;
20
21
  export interface AccordionContentProps extends React.PropsWithChildren {
21
22
  className?: string;
22
23
  innerClassName?: string;
23
24
  contentDisplay?: BoxDisplayType;
25
+ preopen?: boolean;
24
26
  }
25
27
  export declare const AccordionContent: React.FC<AccordionContentProps>;
@@ -1,156 +1,174 @@
1
- import { jsx as c, jsxs as T } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as D } from "react/jsx-runtime";
2
2
  import e from "react";
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) {
3
+ import { Icon as y } from "../Icon/Icon.js";
4
+ import { Text as N } from "../Text/Text.js";
5
+ import { ui as E } from "../../utils/ui/ui.js";
6
+ import { clsx as g } from "../../utils/clsx.js";
7
+ import { debounce as L } from "../../utils/execution.js";
8
+ import { minmax as U } from "../../utils/math.js";
9
+ const F = "cfxui__Accordion__iconFlip__367de", $ = "cfxui__Accordion__triggerContainer__b92c1", S = "cfxui__Accordion__iconUp__28d27", W = "cfxui__Accordion__iconDown__b9e95", z = "cfxui__Accordion__text__03dc4", H = "cfxui__Accordion__iconLeft__e348b", M = "cfxui__Accordion__iconRight__bbf0c", O = "cfxui__Accordion__content__5ecaf", j = "cfxui__Accordion__contentText__1384b", B = "cfxui__Accordion__open__ed604", K = "cfxui__Accordion__closed__be897", o = {
10
+ iconFlip: F,
11
+ triggerContainer: $,
12
+ iconUp: S,
13
+ iconDown: W,
14
+ text: z,
15
+ iconLeft: H,
16
+ iconRight: M,
17
+ content: O,
18
+ contentText: j,
19
+ open: B,
20
+ closed: K
21
+ }, I = e.createContext(void 0), Z = function(r) {
22
22
  const {
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) => ({
23
+ children: s,
24
+ className: h
25
+ } = r, [p, x] = e.useState({}), [_, l] = e.useState(null), c = e.useRef(null), d = e.useCallback((t) => {
26
+ x((u) => ({
27
27
  ...u,
28
- [x]: !u[x]
28
+ [t]: !u[t]
29
29
  }));
30
- }, []), l = e.useMemo(() => ({
31
- openItems: m,
32
- toggleItem: n,
33
- rootWidth: d
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
- children: i
30
+ }, []), n = e.useCallback((t) => {
31
+ x((u) => ({
32
+ ...u,
33
+ [t]: !1
34
+ }));
35
+ }, []), f = e.useMemo(() => ({
36
+ openItems: p,
37
+ toggleItem: d,
38
+ closeItem: n,
39
+ rootWidth: _
40
+ }), [
41
+ p,
42
+ d,
43
+ n,
44
+ _
45
+ ]), m = e.useCallback(() => {
46
+ c.current && l(c.current.getBoundingClientRect().width);
47
+ }, []), a = e.useMemo(() => L(m, 250), [m]);
48
+ return e.useEffect(() => (window.addEventListener("resize", a), () => {
49
+ window.removeEventListener("resize", a);
50
+ }), [a]), /* @__PURE__ */ i(I.Provider, { value: f, children: /* @__PURE__ */ i("div", { ref: c, className: h, role: "presentation", children: s }) });
51
+ }, v = e.createContext(""), ee = function({
52
+ children: r
42
53
  }) {
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
- children: i
54
+ const s = e.useId();
55
+ return /* @__PURE__ */ i(v.Provider, { value: s, children: /* @__PURE__ */ i("div", { className: o.item, id: s, role: "region", "aria-labelledby": `${s}-header`, children: r }) });
56
+ }, ne = function({
57
+ children: r
47
58
  }) {
48
- return /* @__PURE__ */ c("div", { className: t.header, children: i });
49
- }, ee = function(i) {
59
+ return /* @__PURE__ */ i("div", { className: o.header, children: r });
60
+ }, te = function(r) {
50
61
  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)
62
+ text: s,
63
+ iconLeft: h,
64
+ iconRightClassName: p,
65
+ iconLeftClassName: x,
66
+ className: _,
67
+ textClassName: l,
68
+ preopen: c = !1
69
+ } = r, d = e.useContext(I), n = e.useContext(v);
70
+ if (!d)
59
71
  throw new Error("AccordionTrigger must be used within an Accordion");
60
72
  const {
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]);
73
+ toggleItem: f,
74
+ closeItem: m,
75
+ openItems: a
76
+ } = d, t = typeof a[n] > "u" ? c : a[n], [u, R] = e.useState(!1), [b, T] = e.useState(t ? "UpChevron" : "DownChevron"), w = e.useCallback(() => {
77
+ if (t) {
78
+ m(n);
79
+ return;
80
+ }
81
+ f(n);
82
+ }, [t, f, n, m]), k = e.useCallback((A) => {
83
+ (A.key === "Enter" || A.key === " ") && w();
84
+ }, [w]);
68
85
  return e.useEffect(() => {
69
- const C = setTimeout(() => {
70
- R(o ? "UpChevron" : "DownChevron"), u(!1);
86
+ const A = setTimeout(() => {
87
+ T(t ? "UpChevron" : "DownChevron"), R(!1);
71
88
  }, 300);
72
- return u(!0), () => clearTimeout(C);
73
- }, [o]), /* @__PURE__ */ T(
89
+ return R(!0), () => clearTimeout(A);
90
+ }, [t]), /* @__PURE__ */ D(
74
91
  "div",
75
92
  {
76
- className: p(t.triggerContainer, d),
77
- onClick: N,
78
- onKeyDown: y,
93
+ className: g(o.triggerContainer, _),
94
+ onClick: w,
95
+ onKeyDown: k,
79
96
  role: "button",
80
97
  tabIndex: 0,
81
- "aria-expanded": o,
98
+ "aria-expanded": t,
82
99
  "aria-controls": `${n}-content`,
83
100
  id: `${n}-header`,
84
101
  children: [
85
- _ && /* @__PURE__ */ c(v, { name: _, className: p(t.iconLeft, f) }),
86
- /* @__PURE__ */ c(I, { size: "normal", className: p(t.text, s), children: r }),
87
- /* @__PURE__ */ c(
88
- v,
102
+ h && /* @__PURE__ */ i(y, { name: h, className: g(o.iconLeft, x) }),
103
+ /* @__PURE__ */ i(N, { size: "normal", className: g(o.text, l), children: s }),
104
+ /* @__PURE__ */ i(
105
+ y,
89
106
  {
90
- className: p(t.iconRight, m, {
91
- [t.iconFlip]: x,
92
- [t.iconUp]: A === "UpChevron",
93
- [t.iconDown]: A === "DownChevron"
107
+ className: g(o.iconRight, p, {
108
+ [o.iconFlip]: u,
109
+ [o.iconUp]: b === "UpChevron",
110
+ [o.iconDown]: b === "DownChevron"
94
111
  }),
95
- name: A
112
+ name: b
96
113
  }
97
114
  )
98
115
  ]
99
116
  }
100
117
  );
101
- }, ne = function({
102
- children: i,
103
- className: r,
104
- innerClassName: _,
105
- contentDisplay: m = "inline-block"
118
+ }, oe = function({
119
+ children: r,
120
+ className: s,
121
+ innerClassName: h,
122
+ contentDisplay: p = "inline-block",
123
+ preopen: x = !1
106
124
  }) {
107
- const f = e.useContext(b), d = e.useContext(w), [s, a] = e.useState(null), n = e.useRef(null);
108
- if (!f)
125
+ const _ = e.useContext(I), l = e.useContext(v), [c, d] = e.useState(null), n = e.useRef(null);
126
+ if (!_)
109
127
  throw new Error("AccordionContent must be used within an Accordion");
110
128
  const {
111
- openItems: l,
112
- rootWidth: h
113
- } = f, o = l[d], x = e.useMemo(() => s === null ? 250 : E(s / 150 * 250, 350, 500), [s]);
129
+ openItems: f,
130
+ rootWidth: m
131
+ } = _, a = typeof f[l] > "u" ? x : f[l], t = e.useMemo(() => c === null ? 250 : U(c / 150 * 250, 350, 500), [c]);
114
132
  return e.useEffect(() => {
115
- a(null);
116
- }, [h]), e.useEffect(() => {
117
- if (s === null && n.current) {
133
+ d(null);
134
+ }, [m]), e.useEffect(() => {
135
+ if (c === null && n.current) {
118
136
  const u = n.current.getBoundingClientRect().height;
119
- a(u);
137
+ d(u);
120
138
  }
121
- }, [s]), /* @__PURE__ */ c(
139
+ }, [c]), /* @__PURE__ */ i(
122
140
  "div",
123
141
  {
124
- id: `${d}-content`,
142
+ id: `${l}-content`,
125
143
  role: "region",
126
- "aria-labelledby": `${d}-header`,
127
- className: p(t.content, r, {
128
- [t.open]: o,
129
- [t.closed]: !o
144
+ "aria-labelledby": `${l}-header`,
145
+ className: g(o.content, s, {
146
+ [o.open]: a,
147
+ [o.closed]: !a
130
148
  }),
131
149
  style: {
132
- "--content-display": m,
133
- "--content-height": k.q(100),
134
- "--content-animation-time": `${x}ms`
150
+ "--content-display": p,
151
+ "--content-height": E.q(100),
152
+ "--content-animation-time": `${t}ms`
135
153
  },
136
- children: /* @__PURE__ */ c(
137
- I,
154
+ children: /* @__PURE__ */ i(
155
+ N,
138
156
  {
139
157
  color: "secondary",
140
158
  size: "normal",
141
159
  typographic: !0,
142
- className: p(t.contentText, _),
160
+ className: g(o.contentText, h),
143
161
  ref: n,
144
- children: i
162
+ children: r
145
163
  }
146
164
  )
147
165
  }
148
166
  );
149
167
  };
150
168
  export {
151
- X as Accordion,
152
- ne as AccordionContent,
153
- Z as AccordionHeader,
154
- Y as AccordionItem,
155
- ee as AccordionTrigger
169
+ Z as Accordion,
170
+ oe as AccordionContent,
171
+ ne as AccordionHeader,
172
+ ee as AccordionItem,
173
+ te as AccordionTrigger
156
174
  };
@@ -1,141 +1,154 @@
1
- import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
- import l from "react";
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
+ import s from "react";
3
3
  import a from "../Flex/Flex.js";
4
4
  import { Text as h } from "../Text/Text.js";
5
5
  import "../../utils/ui/ui.js";
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 = {
6
+ import { Accordion as l, 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", y = "cfxui__AccordionShowcase__customContent__f7c2f", m = "cfxui__AccordionShowcase__customContentInner__f3d0e", c = {
8
8
  customTrigger: u,
9
9
  customTriggerIconRight: d,
10
10
  customTriggerText: g,
11
- customContent: m,
12
- customContentInner: y
11
+ customContent: y,
12
+ customContentInner: m
13
13
  };
14
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(
15
+ return /* @__PURE__ */ t(a, { fullWidth: !0, vertical: !0, p: 2, gap: "large", children: [
16
+ /* @__PURE__ */ t(a, { fullWidth: !0, vertical: !0, children: [
17
+ /* @__PURE__ */ e(h, { size: "large", children: "Accordion" }),
18
+ /* @__PURE__ */ t(l, { children: [
19
+ /* @__PURE__ */ t(o, { children: [
20
+ /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
21
21
  i,
22
22
  {
23
23
  text: "Will I get banned from GTA:O?"
24
24
  }
25
25
  ) }),
26
- /* @__PURE__ */ e(n, { children: [
26
+ /* @__PURE__ */ t(n, { children: [
27
27
  "Nope!",
28
28
  " ",
29
- /* @__PURE__ */ t("a", { href: "https://cfx.re", children: "FiveM" }),
29
+ /* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
30
30
  " ",
31
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
32
  ] })
33
33
  ] }),
34
- /* @__PURE__ */ e(o, { children: [
35
- /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
34
+ /* @__PURE__ */ t(o, { children: [
35
+ /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
36
36
  i,
37
37
  {
38
38
  text: "Can I cheat on FiveM?",
39
39
  iconLeft: "Heart"
40
40
  }
41
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!" })
42
+ /* @__PURE__ */ e(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
43
  ] }),
44
- /* @__PURE__ */ e(o, { children: [
45
- /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
44
+ /* @__PURE__ */ t(o, { children: [
45
+ /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
46
46
  i,
47
47
  {
48
48
  text: "Is this accordion any good?",
49
49
  iconLeft: "Pencil"
50
50
  }
51
51
  ) }),
52
- /* @__PURE__ */ t(n, { children: "Obviously!" })
52
+ /* @__PURE__ */ e(n, { children: "Obviously!" })
53
53
  ] }),
54
- /* @__PURE__ */ e(o, { children: [
55
- /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
54
+ /* @__PURE__ */ t(o, { children: [
55
+ /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
56
56
  i,
57
57
  {
58
58
  text: "Who said?"
59
59
  }
60
60
  ) }),
61
- /* @__PURE__ */ t(n, { children: "Me!" })
61
+ /* @__PURE__ */ e(n, { children: "Me!" })
62
62
  ] }),
63
- /* @__PURE__ */ e(o, { children: [
64
- /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
63
+ /* @__PURE__ */ t(o, { children: [
64
+ /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
65
65
  i,
66
66
  {
67
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
68
  iconLeft: "MoreInfo"
69
69
  }
70
70
  ) }),
71
- /* @__PURE__ */ e(n, { children: [
71
+ /* @__PURE__ */ t(n, { children: [
72
72
  "Nope!",
73
73
  " ",
74
- /* @__PURE__ */ t("a", { href: "https://cfx.re", children: "FiveM" }),
74
+ /* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
75
75
  " ",
76
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
77
  ] })
78
78
  ] }),
79
- /* @__PURE__ */ e(o, { children: [
80
- /* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(
79
+ /* @__PURE__ */ t(o, { children: [
80
+ /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
81
81
  i,
82
82
  {
83
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
84
  }
85
85
  ) }),
86
- /* @__PURE__ */ e(n, { children: [
86
+ /* @__PURE__ */ t(n, { children: [
87
87
  "Nope!",
88
88
  " ",
89
- /* @__PURE__ */ t("a", { href: "https://cfx.re", children: "FiveM" }),
89
+ /* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
90
90
  " ",
91
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
92
  " ",
93
- /* @__PURE__ */ t("a", { href: "https://cfx.re", children: "FiveM" }),
93
+ /* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
94
94
  " ",
95
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
96
  " ",
97
- /* @__PURE__ */ t("a", { href: "https://cfx.re", children: "FiveM" }),
97
+ /* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
98
98
  " ",
99
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
100
  " ",
101
- /* @__PURE__ */ t("a", { href: "https://cfx.re", children: "FiveM" }),
101
+ /* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
102
102
  " ",
103
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
104
  ] })
105
105
  ] })
106
106
  ] })
107
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,
113
- {
114
- text: "Will I get banned from GTA:O?",
115
- className: c.customTrigger,
116
- textClassName: c.customTriggerText,
117
- iconRightClassName: c.customTriggerIconRight
118
- }
119
- ),
120
- /* @__PURE__ */ e(
121
- n,
122
- {
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
- ]
132
- }
133
- )
134
- ] }) })
108
+ /* @__PURE__ */ t(a, { fullWidth: !0, vertical: !0, gap: "large", children: [
109
+ /* @__PURE__ */ e(h, { size: "large", children: "Accordion with custom styles" }),
110
+ /* @__PURE__ */ t(l, { children: [
111
+ /* @__PURE__ */ t(o, { children: [
112
+ /* @__PURE__ */ e(
113
+ i,
114
+ {
115
+ text: "Will I get banned from GTA:O?",
116
+ className: c.customTrigger,
117
+ textClassName: c.customTriggerText,
118
+ iconRightClassName: c.customTriggerIconRight
119
+ }
120
+ ),
121
+ /* @__PURE__ */ t(
122
+ n,
123
+ {
124
+ className: c.customContent,
125
+ innerClassName: c.customContentInner,
126
+ children: [
127
+ "Nope!",
128
+ " ",
129
+ /* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
130
+ " ",
131
+ "does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it."
132
+ ]
133
+ }
134
+ )
135
+ ] }),
136
+ /* @__PURE__ */ t(o, { children: [
137
+ /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
138
+ i,
139
+ {
140
+ text: "Can I cheat on FiveM?",
141
+ iconLeft: "Heart",
142
+ preopen: !0
143
+ }
144
+ ) }),
145
+ /* @__PURE__ */ e(n, { preopen: !0, 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!" })
146
+ ] })
147
+ ] })
135
148
  ] })
136
149
  ] });
137
150
  }
138
- const R = l.memo(v);
151
+ const _ = s.memo(v);
139
152
  export {
140
- R as default
153
+ _ as default
141
154
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cfx-dev/ui-components",
3
3
  "private": false,
4
- "version": "4.5.18",
4
+ "version": "4.5.19",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "dist/main.js",