@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.
- package/dist/assets/Accordion.css +1 -1
- package/dist/assets/Box.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/InputDropzone.css +1 -1
- package/dist/assets/Link.css +1 -0
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/Text.css +1 -1
- package/dist/assets/global.css +1 -1
- package/dist/components/Accordion/Accordion.js +63 -63
- package/dist/components/Accordion/AccordionShowcase.js +9 -5
- package/dist/components/Button/Button.js +78 -77
- package/dist/components/Button/ButtonShowcase.js +46 -33
- package/dist/components/InputDropzone/InputDropzone.js +23 -23
- package/dist/components/Layout/Box/Box.d.ts +1 -0
- package/dist/components/Layout/Box/Box.js +81 -78
- package/dist/components/Link/ButtonLink.d.ts +9 -0
- package/dist/components/Link/ButtonLink.js +26 -0
- package/dist/components/Link/Link.d.ts +13 -0
- package/dist/components/Link/Link.js +35 -0
- package/dist/components/Link/LinkShowcase.d.ts +5 -0
- package/dist/components/Link/LinkShowcase.js +62 -0
- package/dist/components/Link/index.d.ts +3 -0
- package/dist/components/Link/index.js +7 -0
- package/dist/components/Modal/Modal.js +34 -34
- package/dist/components/Table/Table.d.ts +2 -1
- package/dist/components/Table/Table.js +72 -71
- package/dist/components/Text/Text.js +5 -5
- package/dist/main.d.ts +3 -0
- package/dist/main.js +137 -132
- package/dist/styles-scss/global.scss +16 -8
- package/dist/styles-scss/tokens.scss +7 -0
- package/package.json +1 -1
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
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
|
|
5
|
-
import { Text as
|
|
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
|
|
8
|
-
root:
|
|
9
|
-
item:
|
|
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:
|
|
17
|
-
content:
|
|
18
|
-
open:
|
|
19
|
-
},
|
|
16
|
+
iconRight: E,
|
|
17
|
+
content: L,
|
|
18
|
+
open: O
|
|
19
|
+
}, w = x(void 0), P = function({
|
|
20
20
|
children: t,
|
|
21
|
-
className:
|
|
21
|
+
className: n
|
|
22
22
|
}) {
|
|
23
|
-
const [
|
|
24
|
-
s((
|
|
25
|
-
const i = new Set(
|
|
26
|
-
return i.has(
|
|
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
|
-
}, []),
|
|
29
|
-
openItems:
|
|
28
|
+
}, []), d = f.useMemo(() => ({
|
|
29
|
+
openItems: r,
|
|
30
30
|
toggleItem: a
|
|
31
|
-
}), [
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
},
|
|
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:
|
|
35
|
+
id: n
|
|
36
36
|
}) {
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
},
|
|
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__ */
|
|
41
|
+
return /* @__PURE__ */ e("div", { className: o.header, children: t });
|
|
42
42
|
}, B = function({
|
|
43
43
|
text: t,
|
|
44
|
-
id:
|
|
45
|
-
iconLeft:
|
|
44
|
+
id: n,
|
|
45
|
+
iconLeft: r
|
|
46
46
|
}) {
|
|
47
|
-
const s = w
|
|
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:
|
|
53
|
-
} = s,
|
|
54
|
-
return
|
|
55
|
-
const
|
|
56
|
-
|
|
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(
|
|
59
|
-
}, [
|
|
58
|
+
return i(!0), () => clearTimeout(p);
|
|
59
|
+
}, [c]), /* @__PURE__ */ g(
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
|
-
className:
|
|
63
|
-
onClick: () => a(
|
|
64
|
-
onKeyDown: (
|
|
65
|
-
(
|
|
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":
|
|
70
|
-
"aria-controls": `${
|
|
71
|
-
id: `${
|
|
69
|
+
"aria-expanded": c,
|
|
70
|
+
"aria-controls": `${n}-content`,
|
|
71
|
+
id: `${n}-header`,
|
|
72
72
|
children: [
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
|
|
75
|
-
/* @__PURE__ */
|
|
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__ */
|
|
77
|
+
/* @__PURE__ */ e(k, { centered: !0, children: /* @__PURE__ */ e(
|
|
78
78
|
C,
|
|
79
79
|
{
|
|
80
|
-
className: h(
|
|
81
|
-
[
|
|
82
|
-
[
|
|
83
|
-
[
|
|
80
|
+
className: h(o.iconRight, {
|
|
81
|
+
[o.iconFlip]: m,
|
|
82
|
+
[o.iconUp]: _ === "UpChevron",
|
|
83
|
+
[o.iconDown]: _ === "DownChevron"
|
|
84
84
|
}),
|
|
85
|
-
name:
|
|
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:
|
|
93
|
+
id: n
|
|
94
94
|
}) {
|
|
95
|
-
const
|
|
96
|
-
if (!
|
|
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
|
-
} =
|
|
101
|
-
return /* @__PURE__ */
|
|
100
|
+
} = r;
|
|
101
|
+
return /* @__PURE__ */ e(
|
|
102
102
|
"div",
|
|
103
103
|
{
|
|
104
|
-
className: h(
|
|
105
|
-
id: `${
|
|
104
|
+
className: h(o.content, { [o.open]: s.has(n) }),
|
|
105
|
+
id: `${n}-content`,
|
|
106
106
|
role: "region",
|
|
107
|
-
"aria-labelledby": `${
|
|
108
|
-
children: /* @__PURE__ */
|
|
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
|
-
|
|
113
|
+
P as Accordion,
|
|
114
114
|
G as AccordionContent,
|
|
115
|
-
|
|
116
|
-
|
|
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
|
|
6
|
-
function
|
|
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(
|
|
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__ */
|
|
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(
|
|
61
|
+
const b = a.memo(l);
|
|
58
62
|
export {
|
|
59
63
|
b as default
|
|
60
64
|
};
|
|
@@ -1,108 +1,109 @@
|
|
|
1
|
-
import { jsx as
|
|
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
|
|
4
|
-
import { clsx as
|
|
5
|
-
import { noop as
|
|
6
|
-
import '../../assets/Button.css';const M = "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
|
19
|
+
function U(c) {
|
|
19
20
|
const {
|
|
20
21
|
text: t = null,
|
|
21
|
-
icon:
|
|
22
|
+
icon: l,
|
|
22
23
|
decorator: n = null
|
|
23
|
-
} =
|
|
24
|
-
return /* @__PURE__ */ g
|
|
24
|
+
} = c;
|
|
25
|
+
return /* @__PURE__ */ W(g, { children: [
|
|
25
26
|
t,
|
|
26
|
-
!!
|
|
27
|
-
!!n && /* @__PURE__ */
|
|
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
|
|
31
|
+
function E(c) {
|
|
31
32
|
const {
|
|
32
33
|
text: t = null,
|
|
33
|
-
icon:
|
|
34
|
+
icon: l,
|
|
34
35
|
theme: n = "default",
|
|
35
|
-
disabled:
|
|
36
|
-
className:
|
|
37
|
-
autofocus:
|
|
38
|
-
fullWidth:
|
|
39
|
-
tabIndex:
|
|
40
|
-
} =
|
|
41
|
-
return
|
|
42
|
-
[o.disabled]:
|
|
43
|
-
[o.icononly]: !!
|
|
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]:
|
|
46
|
-
[o.fullWidth]:
|
|
46
|
+
[o.autofocus]: u || typeof i < "u",
|
|
47
|
+
[o.fullWidth]: a
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
|
-
const
|
|
50
|
+
const P = m.forwardRef(function(t, l) {
|
|
50
51
|
const {
|
|
51
52
|
text: n = null,
|
|
52
|
-
icon:
|
|
53
|
-
title:
|
|
54
|
-
type:
|
|
55
|
-
className:
|
|
56
|
-
theme:
|
|
53
|
+
icon: s,
|
|
54
|
+
title: d = "",
|
|
55
|
+
type: u = "button",
|
|
56
|
+
className: a = "",
|
|
57
|
+
theme: i = "default",
|
|
57
58
|
disabled: e = !1,
|
|
58
|
-
onClick:
|
|
59
|
-
onMouseDown: p =
|
|
60
|
-
onMouseUp:
|
|
61
|
-
autofocus:
|
|
62
|
-
tabIndex:
|
|
63
|
-
fullWidth:
|
|
64
|
-
ariaLabel:
|
|
65
|
-
} = t,
|
|
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:
|
|
68
|
-
theme:
|
|
68
|
+
icon: s,
|
|
69
|
+
theme: i,
|
|
69
70
|
disabled: e,
|
|
70
|
-
className:
|
|
71
|
-
autofocus:
|
|
72
|
-
fullWidth:
|
|
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
|
-
|
|
83
|
-
]),
|
|
84
|
-
e ||
|
|
85
|
-
}, [e,
|
|
86
|
-
return /* @__PURE__ */
|
|
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:
|
|
90
|
+
ref: l,
|
|
90
91
|
disabled: e,
|
|
91
|
-
className:
|
|
92
|
-
onClick:
|
|
92
|
+
className: x,
|
|
93
|
+
onClick: C,
|
|
93
94
|
onMouseDown: p,
|
|
94
|
-
onMouseUp:
|
|
95
|
-
autoFocus:
|
|
96
|
-
tabIndex:
|
|
97
|
-
title:
|
|
98
|
-
type:
|
|
99
|
-
"aria-label":
|
|
100
|
-
children: /* @__PURE__ */
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
P as Button,
|
|
107
|
+
U as ButtonContent,
|
|
108
|
+
E as getButtonClassName
|
|
108
109
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
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
|
|
6
|
-
import { ButtonBar as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
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__ */
|
|
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
|
-
|
|
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__ */
|
|
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
|
-
|
|
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__ */
|
|
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
|
-
|
|
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__ */
|
|
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
|
-
|
|
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__ */
|
|
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
|
-
|
|
68
|
+
r,
|
|
68
69
|
{
|
|
69
70
|
text: "Sign In",
|
|
70
71
|
theme: "default"
|
|
71
72
|
}
|
|
72
73
|
) })
|
|
73
74
|
] }),
|
|
74
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
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__ */
|
|
87
|
+
/* @__PURE__ */ t(n, { gap: "normal", vertical: !0, children: [
|
|
87
88
|
/* @__PURE__ */ e(i, { children: "Linked" }),
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ t(n, { p: 4, style: { backgroundColor: "var(--color-modal-background)" }, children: [
|
|
89
90
|
/* @__PURE__ */ e(
|
|
90
|
-
|
|
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
|
-
|
|
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__ */
|
|
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__ */
|
|
111
|
-
/* @__PURE__ */ e(
|
|
112
|
-
/* @__PURE__ */ e(
|
|
113
|
-
/* @__PURE__ */ e(
|
|
114
|
-
/* @__PURE__ */ e(
|
|
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__ */
|
|
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
|
-
|
|
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
|
|
143
|
+
const x = l.memo(a);
|
|
131
144
|
export {
|
|
132
|
-
|
|
145
|
+
x as default
|
|
133
146
|
};
|