@cfx-dev/ui-components 2.1.22 → 2.1.24

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.
@@ -1,88 +1,88 @@
1
- import { jsx as o, jsxs as f } from "react/jsx-runtime";
2
- import b, { createContext as I, useState as u, useContext as w, useEffect as v } from "react";
1
+ import { jsx as e, jsxs as g } from "react/jsx-runtime";
2
+ import f, { createContext as x, useState as u, useContext as A, useEffect as b } from "react";
3
3
  import { Icon as C } from "../Icon/Icon.js";
4
- import { Flex as x } from "../Layout/Flex/Flex.js";
5
- import { Text as y } from "../Text/Text.js";
4
+ import { Flex as k } from "../Layout/Flex/Flex.js";
5
+ import { Text as I } from "../Text/Text.js";
6
6
  import { clsx as h } from "../../utils/clsx.js";
7
- import '../../assets/Accordion.css';const q = "_root_y0b1q_1", D = "_item_y0b1q_5", F = "_header_y0b1q_5", N = "_triggerContainer_y0b1q_10", U = "_iconFlip_y0b1q_23", T = "_iconUp_y0b1q_26", R = "_iconDown_y0b1q_29", $ = "_iconLeft_y0b1q_32", k = "_iconRight_y0b1q_36", E = "_content_y0b1q_49", L = "_open_y0b1q_56", n = {
8
- root: q,
9
- item: D,
7
+ import '../../assets/Accordion.css';const D = "_root_1pwnk_1", y = "_item_1pwnk_5", F = "_header_1pwnk_5", N = "_triggerContainer_1pwnk_10", U = "_iconFlip_1pwnk_23", T = "_iconUp_1pwnk_26", R = "_iconDown_1pwnk_29", $ = "_iconLeft_1pwnk_32", E = "_iconRight_1pwnk_36", L = "_content_1pwnk_49", O = "_open_1pwnk_56", o = {
8
+ root: D,
9
+ item: y,
10
10
  header: F,
11
11
  triggerContainer: N,
12
12
  iconFlip: U,
13
13
  iconUp: T,
14
14
  iconDown: R,
15
15
  iconLeft: $,
16
- iconRight: k,
17
- content: E,
18
- open: L
19
- }, g = I(void 0), M = function({
16
+ iconRight: E,
17
+ content: L,
18
+ open: O
19
+ }, w = x(void 0), P = function({
20
20
  children: t,
21
- className: e
21
+ className: n
22
22
  }) {
23
- const [c, s] = u(/* @__PURE__ */ new Set()), a = b.useCallback((r) => {
24
- s((_) => {
25
- const i = new Set(_);
26
- return i.has(r) ? i.delete(r) : i.add(r), i;
23
+ const [r, s] = u(/* @__PURE__ */ new Set()), a = f.useCallback((c) => {
24
+ s((m) => {
25
+ const i = new Set(m);
26
+ return i.has(c) ? i.delete(c) : i.add(c), i;
27
27
  });
28
- }, []), m = b.useMemo(() => ({
29
- openItems: c,
28
+ }, []), d = f.useMemo(() => ({
29
+ openItems: r,
30
30
  toggleItem: a
31
- }), [c, a]);
32
- return /* @__PURE__ */ o(g.Provider, { value: m, children: /* @__PURE__ */ o("div", { className: h(n.root, e), role: "presentation", children: t }) });
33
- }, P = function({
31
+ }), [r, a]);
32
+ return /* @__PURE__ */ e(w.Provider, { value: d, children: /* @__PURE__ */ e("div", { className: h(o.root, n), role: "presentation", children: t }) });
33
+ }, V = function({
34
34
  children: t,
35
- id: e
35
+ id: n
36
36
  }) {
37
- return /* @__PURE__ */ o("div", { className: n.item, id: e, role: "region", "aria-labelledby": `${e}-header`, children: t });
38
- }, V = function({
37
+ return /* @__PURE__ */ e("div", { className: o.item, id: n, role: "region", "aria-labelledby": `${n}-header`, children: t });
38
+ }, q = function({
39
39
  children: t
40
40
  }) {
41
- return /* @__PURE__ */ o("div", { className: n.header, children: t });
41
+ return /* @__PURE__ */ e("div", { className: o.header, children: t });
42
42
  }, B = function({
43
43
  text: t,
44
- id: e,
45
- iconLeft: c
44
+ id: n,
45
+ iconLeft: r
46
46
  }) {
47
- const s = w(g);
47
+ const s = A(w);
48
48
  if (!s)
49
49
  throw new Error("AccordionTrigger must be used within an Accordion");
50
50
  const {
51
51
  toggleItem: a,
52
- openItems: m
53
- } = s, r = m.has(e), [_, i] = u(!1), [p, A] = u(r ? "UpChevron" : "DownChevron");
54
- return v(() => {
55
- const d = setTimeout(() => {
56
- A(r ? "UpChevron" : "DownChevron"), i(!1);
52
+ openItems: d
53
+ } = s, c = d.has(n), [m, i] = u(!1), [_, v] = u(c ? "UpChevron" : "DownChevron");
54
+ return b(() => {
55
+ const p = setTimeout(() => {
56
+ v(c ? "UpChevron" : "DownChevron"), i(!1);
57
57
  }, 300);
58
- return i(!0), () => clearTimeout(d);
59
- }, [r]), /* @__PURE__ */ f(
58
+ return i(!0), () => clearTimeout(p);
59
+ }, [c]), /* @__PURE__ */ g(
60
60
  "div",
61
61
  {
62
- className: n.triggerContainer,
63
- onClick: () => a(e),
64
- onKeyDown: (d) => {
65
- (d.key === "Enter" || d.key === " ") && a(e);
62
+ className: o.triggerContainer,
63
+ onClick: () => a(n),
64
+ onKeyDown: (p) => {
65
+ (p.key === "Enter" || p.key === " ") && a(n);
66
66
  },
67
67
  role: "button",
68
68
  tabIndex: 0,
69
- "aria-expanded": r,
70
- "aria-controls": `${e}-content`,
71
- id: `${e}-header`,
69
+ "aria-expanded": c,
70
+ "aria-controls": `${n}-content`,
71
+ id: `${n}-header`,
72
72
  children: [
73
- /* @__PURE__ */ f(x, { centered: !0, children: [
74
- c && /* @__PURE__ */ o(C, { name: c, className: n.iconLeft }),
75
- /* @__PURE__ */ o(y, { size: "xxsmall", children: t })
73
+ /* @__PURE__ */ g(k, { centered: !0, children: [
74
+ r && /* @__PURE__ */ e(C, { name: r, className: o.iconLeft }),
75
+ /* @__PURE__ */ e(I, { size: "normal", children: t })
76
76
  ] }),
77
- /* @__PURE__ */ o(x, { centered: !0, children: /* @__PURE__ */ o(
77
+ /* @__PURE__ */ e(k, { centered: !0, children: /* @__PURE__ */ e(
78
78
  C,
79
79
  {
80
- className: h(n.iconRight, {
81
- [n.iconFlip]: _,
82
- [n.iconUp]: p === "UpChevron",
83
- [n.iconDown]: p === "DownChevron"
80
+ className: h(o.iconRight, {
81
+ [o.iconFlip]: m,
82
+ [o.iconUp]: _ === "UpChevron",
83
+ [o.iconDown]: _ === "DownChevron"
84
84
  }),
85
- name: p
85
+ name: _
86
86
  }
87
87
  ) })
88
88
  ]
@@ -90,29 +90,29 @@ import '../../assets/Accordion.css';const q = "_root_y0b1q_1", D = "_item_y0b1q_
90
90
  );
91
91
  }, G = function({
92
92
  children: t,
93
- id: e
93
+ id: n
94
94
  }) {
95
- const c = w(g);
96
- if (!c)
95
+ const r = A(w);
96
+ if (!r)
97
97
  throw new Error("AccordionContent must be used within an Accordion");
98
98
  const {
99
99
  openItems: s
100
- } = c;
101
- return /* @__PURE__ */ o(
100
+ } = r;
101
+ return /* @__PURE__ */ e(
102
102
  "div",
103
103
  {
104
- className: h(n.content, { [n.open]: s.has(e) }),
105
- id: `${e}-content`,
104
+ className: h(o.content, { [o.open]: s.has(n) }),
105
+ id: `${n}-content`,
106
106
  role: "region",
107
- "aria-labelledby": `${e}-header`,
108
- children: /* @__PURE__ */ o(y, { color: "secondary", size: "xxsmall", children: t })
107
+ "aria-labelledby": `${n}-header`,
108
+ children: /* @__PURE__ */ e(I, { color: "secondary", size: "normal", typographic: !0, children: t })
109
109
  }
110
110
  );
111
111
  };
112
112
  export {
113
- M as Accordion,
113
+ P as Accordion,
114
114
  G as AccordionContent,
115
- V as AccordionHeader,
116
- P as AccordionItem,
115
+ q as AccordionHeader,
116
+ V as AccordionItem,
117
117
  B as AccordionTrigger
118
118
  };
@@ -2,11 +2,11 @@ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
2
  import a from "react";
3
3
  import { Flex as c } from "../Layout/Flex/Flex.js";
4
4
  import { Text as d } from "../Text/Text.js";
5
- import { Accordion as l, AccordionItem as i, AccordionHeader as o, AccordionTrigger as n, AccordionContent as r } from "./Accordion.js";
6
- function h() {
5
+ import { Accordion as h, AccordionItem as i, AccordionHeader as o, AccordionTrigger as n, AccordionContent as r } from "./Accordion.js";
6
+ function l() {
7
7
  return /* @__PURE__ */ e(c, { fullWidth: !0, vertical: !0, children: /* @__PURE__ */ t(c, { fullWidth: !0, vertical: !0, children: [
8
8
  /* @__PURE__ */ e(d, { size: "large", children: "Accordion" }),
9
- /* @__PURE__ */ t(l, { children: [
9
+ /* @__PURE__ */ t(h, { children: [
10
10
  /* @__PURE__ */ t(i, { id: "item1", children: [
11
11
  /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
12
12
  n,
@@ -16,7 +16,11 @@ function h() {
16
16
  iconLeft: "MoreInfo"
17
17
  }
18
18
  ) }),
19
- /* @__PURE__ */ e(r, { id: "item1", children: "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! FiveM does not interact with the Rockstar Online Services other than to validate your game copy the first time you launch it." })
19
+ /* @__PURE__ */ t(r, { id: "item1", children: [
20
+ "Nope! ",
21
+ /* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
22
+ " 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."
23
+ ] })
20
24
  ] }),
21
25
  /* @__PURE__ */ t(i, { id: "item2", children: [
22
26
  /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(
@@ -54,7 +58,7 @@ function h() {
54
58
  ] })
55
59
  ] }) });
56
60
  }
57
- const b = a.memo(h);
61
+ const b = a.memo(l);
58
62
  export {
59
63
  b as default
60
64
  };
@@ -1,108 +1,109 @@
1
- import { jsx as u, jsxs as g, Fragment as B } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as W, Fragment as g } from "react/jsx-runtime";
2
2
  import m from "react";
3
- import { Icon as q } from "../Icon/Icon.js";
4
- import { clsx as I } from "../../utils/clsx.js";
5
- import { noop as h } from "../../utils/functional.js";
6
- import '../../assets/Button.css';const M = "_root_1cisu_1", j = "_fullWidth_1cisu_33", w = "_primary_1cisu_53", F = "_secondary_1cisu_74", R = "_linked_1cisu_116", v = "_quicklink_1cisu_145", D = "_icon_1cisu_152", L = "_icononly_1cisu_177", U = "_decorator_1cisu_182", o = {
7
- root: M,
8
- fullWidth: j,
9
- primary: w,
10
- secondary: F,
11
- "on-light": "_on-light_1cisu_95",
12
- linked: R,
13
- quicklink: v,
14
- icon: D,
15
- icononly: L,
16
- decorator: U
3
+ import { Icon as A } from "../Icon/Icon.js";
4
+ import { clsx as B } from "../../utils/clsx.js";
5
+ import { noop as y } from "../../utils/functional.js";
6
+ import '../../assets/Button.css';const q = "_unsetAll_13zdy_1", I = "_root_13zdy_5", M = "_fullWidth_13zdy_38", j = "_primary_13zdy_58", w = "_secondary_13zdy_79", F = "_linked_13zdy_121", R = "_quicklink_13zdy_150", v = "_icon_13zdy_157", D = "_icononly_13zdy_182", L = "_decorator_13zdy_187", o = {
7
+ unsetAll: q,
8
+ root: I,
9
+ fullWidth: M,
10
+ primary: j,
11
+ secondary: w,
12
+ "on-light": "_on-light_13zdy_100",
13
+ linked: F,
14
+ quicklink: R,
15
+ icon: v,
16
+ icononly: D,
17
+ decorator: L
17
18
  };
18
- function z(l) {
19
+ function U(c) {
19
20
  const {
20
21
  text: t = null,
21
- icon: c,
22
+ icon: l,
22
23
  decorator: n = null
23
- } = l;
24
- return /* @__PURE__ */ g(B, { children: [
24
+ } = c;
25
+ return /* @__PURE__ */ W(g, { children: [
25
26
  t,
26
- !!c && /* @__PURE__ */ u(q, { name: c, className: o.icon }),
27
- !!n && /* @__PURE__ */ u("div", { className: o.decorator, children: n })
27
+ !!l && /* @__PURE__ */ r(A, { name: l, className: o.icon }),
28
+ !!n && /* @__PURE__ */ r("div", { className: o.decorator, children: n })
28
29
  ] });
29
30
  }
30
- function A(l) {
31
+ function E(c) {
31
32
  const {
32
33
  text: t = null,
33
- icon: c,
34
+ icon: l,
34
35
  theme: n = "default",
35
- disabled: i = !1,
36
- className: r = "",
37
- autofocus: d = !1,
38
- fullWidth: s = !1,
39
- tabIndex: a
40
- } = l;
41
- return I(o.root, o[n], r, {
42
- [o.disabled]: i,
43
- [o.icononly]: !!c && (t === null || typeof t > "u"),
36
+ disabled: s = !1,
37
+ className: d = "",
38
+ autofocus: u = !1,
39
+ fullWidth: a = !1,
40
+ tabIndex: i
41
+ } = c;
42
+ return B(o.unsetAll, o.root, o[n], d, {
43
+ [o.disabled]: s,
44
+ [o.icononly]: !!l && (t === null || typeof t > "u"),
44
45
  [o.text]: !!t,
45
- [o.autofocus]: d || typeof a < "u",
46
- [o.fullWidth]: s
46
+ [o.autofocus]: u || typeof i < "u",
47
+ [o.fullWidth]: a
47
48
  });
48
49
  }
49
- const O = m.forwardRef(function(t, c) {
50
+ const P = m.forwardRef(function(t, l) {
50
51
  const {
51
52
  text: n = null,
52
- icon: i,
53
- title: r = "",
54
- type: d = "button",
55
- className: s = "",
56
- theme: a = "default",
53
+ icon: s,
54
+ title: d = "",
55
+ type: u = "button",
56
+ className: a = "",
57
+ theme: i = "default",
57
58
  disabled: e = !1,
58
- onClick: k = h,
59
- onMouseDown: p = h,
60
- onMouseUp: b = h,
61
- autofocus: f = !1,
62
- tabIndex: _,
63
- fullWidth: y = !1,
64
- ariaLabel: x = ""
65
- } = t, C = m.useMemo(() => A({
59
+ onClick: h = y,
60
+ onMouseDown: p = y,
61
+ onMouseUp: z = y,
62
+ autofocus: _ = !1,
63
+ tabIndex: f,
64
+ fullWidth: k = !1,
65
+ ariaLabel: b = ""
66
+ } = t, x = m.useMemo(() => E({
66
67
  text: n,
67
- icon: i,
68
- theme: a,
68
+ icon: s,
69
+ theme: i,
69
70
  disabled: e,
70
- className: s,
71
- autofocus: f,
72
- fullWidth: y,
73
- tabIndex: _
71
+ className: a,
72
+ autofocus: _,
73
+ fullWidth: k,
74
+ tabIndex: f
74
75
  }), [
75
- f,
76
- s,
77
- y,
78
- e,
79
- i,
80
76
  _,
77
+ a,
78
+ k,
79
+ e,
80
+ s,
81
+ f,
81
82
  n,
82
- a
83
- ]), N = m.useCallback((W) => {
84
- e || k(W);
85
- }, [e, k]);
86
- return /* @__PURE__ */ u(
83
+ i
84
+ ]), C = m.useCallback((N) => {
85
+ e || h(N);
86
+ }, [e, h]);
87
+ return /* @__PURE__ */ r(
87
88
  "button",
88
89
  {
89
- ref: c,
90
+ ref: l,
90
91
  disabled: e,
91
- className: C,
92
- onClick: N,
92
+ className: x,
93
+ onClick: C,
93
94
  onMouseDown: p,
94
- onMouseUp: b,
95
- autoFocus: f,
96
- tabIndex: _,
97
- title: r,
98
- type: d,
99
- "aria-label": x,
100
- children: /* @__PURE__ */ u(z, { ...t })
95
+ onMouseUp: z,
96
+ autoFocus: _,
97
+ tabIndex: f,
98
+ title: d,
99
+ type: u,
100
+ "aria-label": b,
101
+ children: /* @__PURE__ */ r(U, { ...t })
101
102
  }
102
103
  );
103
104
  });
104
105
  export {
105
- O as Button,
106
- z as ButtonContent,
107
- A as getButtonClassName
106
+ P as Button,
107
+ U as ButtonContent,
108
+ E as getButtonClassName
108
109
  };
@@ -1,15 +1,16 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import l from "react";
3
3
  import { Flex as n } from "../Layout/Flex/Flex.js";
4
4
  import { Text as i } from "../Text/Text.js";
5
- import { Button as t } from "./Button.js";
6
- import { ButtonBar as c } from "./ButtonBar.js";
7
- function o() {
8
- return /* @__PURE__ */ r(n, { gap: "large", vertical: !0, children: [
9
- /* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
5
+ import { Button as r } from "./Button.js";
6
+ import { ButtonBar as o } from "./ButtonBar.js";
7
+ import { LinkButton as c } from "./LinkButton.js";
8
+ function a() {
9
+ return /* @__PURE__ */ t(n, { gap: "large", vertical: !0, children: [
10
+ /* @__PURE__ */ t(n, { gap: "normal", vertical: !0, children: [
10
11
  /* @__PURE__ */ e(i, { children: "Default" }),
11
12
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
12
- t,
13
+ r,
13
14
  {
14
15
  text: "Sign In",
15
16
  theme: "default",
@@ -17,10 +18,10 @@ function o() {
17
18
  }
18
19
  ) })
19
20
  ] }),
20
- /* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
21
+ /* @__PURE__ */ t(n, { gap: "normal", vertical: !0, children: [
21
22
  /* @__PURE__ */ e(i, { children: "Primary" }),
22
23
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
23
- t,
24
+ r,
24
25
  {
25
26
  text: "Sign In",
26
27
  theme: "primary",
@@ -28,10 +29,10 @@ function o() {
28
29
  }
29
30
  ) })
30
31
  ] }),
31
- /* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
32
+ /* @__PURE__ */ t(n, { gap: "normal", vertical: !0, children: [
32
33
  /* @__PURE__ */ e(i, { children: "Secondary" }),
33
34
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
34
- t,
35
+ r,
35
36
  {
36
37
  text: "Sign In",
37
38
  theme: "secondary",
@@ -39,10 +40,10 @@ function o() {
39
40
  }
40
41
  ) })
41
42
  ] }),
42
- /* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
43
+ /* @__PURE__ */ t(n, { gap: "normal", vertical: !0, children: [
43
44
  /* @__PURE__ */ e(i, { children: "On Light" }),
44
45
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
45
- t,
46
+ r,
46
47
  {
47
48
  text: "Sign In",
48
49
  theme: "on-light",
@@ -50,10 +51,10 @@ function o() {
50
51
  }
51
52
  ) })
52
53
  ] }),
53
- /* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
54
+ /* @__PURE__ */ t(n, { gap: "normal", vertical: !0, children: [
54
55
  /* @__PURE__ */ e(i, { children: "Quick Link" }),
55
56
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
56
- t,
57
+ r,
57
58
  {
58
59
  text: "Sign In",
59
60
  theme: "quicklink",
@@ -61,20 +62,20 @@ function o() {
61
62
  }
62
63
  ) })
63
64
  ] }),
64
- /* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
65
+ /* @__PURE__ */ t(n, { gap: "normal", vertical: !0, children: [
65
66
  /* @__PURE__ */ e(i, { children: "No Icon" }),
66
67
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
67
- t,
68
+ r,
68
69
  {
69
70
  text: "Sign In",
70
71
  theme: "default"
71
72
  }
72
73
  ) })
73
74
  ] }),
74
- /* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
75
+ /* @__PURE__ */ t(n, { gap: "normal", vertical: !0, children: [
75
76
  /* @__PURE__ */ e(i, { children: "Full Width" }),
76
77
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
77
- t,
78
+ r,
78
79
  {
79
80
  text: "Sign In",
80
81
  theme: "default",
@@ -83,11 +84,11 @@ function o() {
83
84
  }
84
85
  ) })
85
86
  ] }),
86
- /* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
87
+ /* @__PURE__ */ t(n, { gap: "normal", vertical: !0, children: [
87
88
  /* @__PURE__ */ e(i, { children: "Linked" }),
88
- /* @__PURE__ */ r(n, { p: 4, style: { backgroundColor: "var(--color-modal-background)" }, children: [
89
+ /* @__PURE__ */ t(n, { p: 4, style: { backgroundColor: "var(--color-modal-background)" }, children: [
89
90
  /* @__PURE__ */ e(
90
- t,
91
+ r,
91
92
  {
92
93
  text: "Sign In",
93
94
  theme: "linked",
@@ -95,7 +96,7 @@ function o() {
95
96
  }
96
97
  ),
97
98
  /* @__PURE__ */ e(
98
- t,
99
+ r,
99
100
  {
100
101
  disabled: !0,
101
102
  text: "Copy",
@@ -105,19 +106,31 @@ function o() {
105
106
  )
106
107
  ] })
107
108
  ] }),
108
- /* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
109
+ /* @__PURE__ */ t(n, { gap: "normal", vertical: !0, children: [
110
+ /* @__PURE__ */ e(i, { children: "LinkButton - look like button but its anchor" }),
111
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
112
+ c,
113
+ {
114
+ to: "/",
115
+ text: "Sign In",
116
+ theme: "primary",
117
+ icon: "Users"
118
+ }
119
+ ) })
120
+ ] }),
121
+ /* @__PURE__ */ t(n, { gap: "normal", vertical: !0, children: [
109
122
  /* @__PURE__ */ e(i, { children: "Button Bar" }),
110
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ r(c, { children: [
111
- /* @__PURE__ */ e(t, { text: "Sign In", theme: "primary", icon: "Users" }),
112
- /* @__PURE__ */ e(t, { text: "Register", theme: "secondary", icon: "Users" }),
113
- /* @__PURE__ */ e(t, { text: "Sign Out", theme: "on-light", icon: "Users" }),
114
- /* @__PURE__ */ e(t, { text: "Create Account", theme: "default", icon: "Users" })
123
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ t(o, { children: [
124
+ /* @__PURE__ */ e(r, { text: "Sign In", theme: "primary", icon: "Users" }),
125
+ /* @__PURE__ */ e(r, { text: "Register", theme: "secondary", icon: "Users" }),
126
+ /* @__PURE__ */ e(r, { text: "Sign Out", theme: "on-light", icon: "Users" }),
127
+ /* @__PURE__ */ e(r, { text: "Create Account", theme: "default", icon: "Users" })
115
128
  ] }) })
116
129
  ] }),
117
- /* @__PURE__ */ r(n, { gap: "normal", vertical: !0, children: [
130
+ /* @__PURE__ */ t(n, { gap: "normal", vertical: !0, children: [
118
131
  /* @__PURE__ */ e(i, { children: "Long text" }),
119
132
  /* @__PURE__ */ e("div", { style: { maxWidth: "300px" }, children: /* @__PURE__ */ e(
120
- t,
133
+ r,
121
134
  {
122
135
  text: "Long text that should wrap around",
123
136
  theme: "default",
@@ -127,7 +140,7 @@ function o() {
127
140
  ] })
128
141
  ] });
129
142
  }
130
- const g = l.memo(o);
143
+ const x = l.memo(a);
131
144
  export {
132
- g as default
145
+ x as default
133
146
  };