@cfx-dev/ui-components 5.0.25 → 5.0.27
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/{BurgerMenu.module-DA0ojIYf.js → BurgerMenu.module-Dy-zFg88.js} +4 -3
- package/dist/assets/all_css.css +1 -0
- package/dist/assets/css/BurgerMenu.css +1 -1
- package/dist/assets/css/Button.css +1 -1
- package/dist/assets/css/Lightbox.css +1 -0
- package/dist/assets/general/global.css +1 -1
- package/dist/components/BurgerMenu/BurgerMenu.d.ts +4 -2
- package/dist/components/BurgerMenu/BurgerMenu.js +55 -54
- package/dist/components/BurgerMenu/BurgerMenuButton.js +1 -1
- package/dist/components/BurgerMenu/BurgerMenuShowcase.js +26 -23
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Button/Button.js +71 -65
- package/dist/components/Button/ButtonShowcase.js +46 -22
- package/dist/components/Lightbox/Lightbox.d.ts +9 -0
- package/dist/components/Lightbox/Lightbox.js +172 -0
- package/dist/components/Lightbox/LightboxShowcase.d.ts +6 -0
- package/dist/components/Lightbox/LightboxShowcase.js +137 -0
- package/dist/components/Lightbox/index.d.ts +2 -0
- package/dist/components/Lightbox/index.js +4 -0
- package/dist/components/Lightbox/types.d.ts +51 -0
- package/dist/components/Lightbox/types.js +1 -0
- package/dist/components/Logos/fivem/WhiteLogo.js +9 -9
- package/dist/components/Logos/redm/WhiteLogo.js +8 -30
- package/dist/components/Shroud/Shroud.js +3 -3
- package/dist/components/Table/TableCell.js +35 -33
- package/dist/embla-carousel-react.esm-BE464U1q.js +1252 -0
- package/dist/main.d.ts +2 -1
- package/dist/main.js +225 -224
- package/dist/styles-scss/tokens.scss +1 -1
- package/dist/utils/contexts/AnalyticsContext/AnalyticsContext.d.ts +15 -2
- package/dist/utils/contexts/AnalyticsContext/AnalyticsContext.js +9 -3
- package/dist/utils/contexts/AnalyticsContext/index.d.ts +2 -2
- package/dist/utils/contexts/AnalyticsContext/index.js +8 -7
- package/dist/utils/contexts/AnalyticsContext/useSiteLinkClick.js +12 -12
- package/dist/utils/hooks/useBodyScrollLock.d.ts +1 -0
- package/dist/utils/hooks/useBodyScrollLock.js +9 -0
- package/dist/utils/hooks/useCarousel.js +17 -1264
- package/dist/utils/hooks/useKeyboardArrows.d.ts +5 -0
- package/dist/utils/hooks/useKeyboardArrows.js +13 -0
- package/dist/utils/hooks/useLightbox.d.ts +21 -0
- package/dist/utils/hooks/useLightbox.js +80 -0
- package/dist/utils/hooks/usePopoverController.js +25 -22
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { IconName } from '../Icon';
|
|
2
3
|
|
|
3
4
|
export interface BurgerMenuItem {
|
|
4
5
|
label: string;
|
|
@@ -7,6 +8,7 @@ export interface BurgerMenuItem {
|
|
|
7
8
|
openByDefault?: boolean;
|
|
8
9
|
className?: string;
|
|
9
10
|
submenu?: BurgerMenuItem[];
|
|
11
|
+
icon?: IconName;
|
|
10
12
|
}
|
|
11
13
|
export interface BurgerMenuProps {
|
|
12
14
|
items: BurgerMenuItem[];
|
|
@@ -17,6 +19,6 @@ export interface BurgerMenuProps {
|
|
|
17
19
|
subItemContainerClassName?: string;
|
|
18
20
|
itemInteractiveClassName?: string;
|
|
19
21
|
itemClassName?: string;
|
|
20
|
-
|
|
22
|
+
highlightedItemClassname?: string;
|
|
21
23
|
}
|
|
22
|
-
export declare function BurgerMenu({ items, onItemClick, isOpen, className, menuClassName, subItemContainerClassName, itemInteractiveClassName, itemClassName,
|
|
24
|
+
export declare function BurgerMenu({ items, onItemClick, isOpen, className, menuClassName, subItemContainerClassName, itemInteractiveClassName, itemClassName, highlightedItemClassname, }: BurgerMenuProps): React.ReactElement;
|
|
@@ -1,113 +1,114 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as S, useCallback as f } from "react";
|
|
3
3
|
import r from "../Flex/Flex.js";
|
|
4
|
-
import { clsx as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { Interactive as
|
|
4
|
+
import { clsx as i } from "../../utils/clsx.js";
|
|
5
|
+
import { Icon as g } from "../Icon/Icon.js";
|
|
6
|
+
import { Interactive as y } from "../Interactive/Interactive.js";
|
|
7
7
|
import { Text as D } from "../Text/Text.js";
|
|
8
8
|
import "../../utils/ui/ui.js";
|
|
9
|
-
import { s as
|
|
9
|
+
import { s as u } from "../../BurgerMenu.module-Dy-zFg88.js";
|
|
10
10
|
function z({
|
|
11
|
-
items:
|
|
12
|
-
onItemClick:
|
|
13
|
-
isOpen:
|
|
11
|
+
items: c,
|
|
12
|
+
onItemClick: a,
|
|
13
|
+
isOpen: k,
|
|
14
14
|
className: w,
|
|
15
|
-
menuClassName:
|
|
15
|
+
menuClassName: x,
|
|
16
16
|
subItemContainerClassName: C,
|
|
17
|
-
itemInteractiveClassName:
|
|
18
|
-
itemClassName:
|
|
19
|
-
|
|
17
|
+
itemInteractiveClassName: s,
|
|
18
|
+
itemClassName: t,
|
|
19
|
+
highlightedItemClassname: d
|
|
20
20
|
}) {
|
|
21
|
-
const [
|
|
22
|
-
const
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
}),
|
|
26
|
-
}),
|
|
27
|
-
|
|
28
|
-
}, [
|
|
29
|
-
|
|
30
|
-
...
|
|
31
|
-
[
|
|
21
|
+
const [h, N] = S(() => {
|
|
22
|
+
const n = {};
|
|
23
|
+
return c.forEach((e) => {
|
|
24
|
+
e.openByDefault && (n[e.id] = !0);
|
|
25
|
+
}), n;
|
|
26
|
+
}), l = f((n) => {
|
|
27
|
+
a(n);
|
|
28
|
+
}, [a]), p = f((n) => {
|
|
29
|
+
N((e) => ({
|
|
30
|
+
...e,
|
|
31
|
+
[n]: !e[n]
|
|
32
32
|
}));
|
|
33
33
|
}, []);
|
|
34
34
|
return /* @__PURE__ */ o(
|
|
35
35
|
r,
|
|
36
36
|
{
|
|
37
|
-
className: u
|
|
37
|
+
className: i(u.burgerMenuContentContainer, w),
|
|
38
38
|
direction: "column",
|
|
39
|
-
children:
|
|
39
|
+
children: k && /* @__PURE__ */ o(r, { direction: "column", className: i(u.menu, x), children: c.map((n) => /* @__PURE__ */ m("div", { children: [
|
|
40
40
|
/* @__PURE__ */ o(
|
|
41
|
-
|
|
41
|
+
y,
|
|
42
42
|
{
|
|
43
43
|
showPointer: !0,
|
|
44
44
|
"aria-label": "Toggle item",
|
|
45
45
|
role: "button",
|
|
46
46
|
onClick: () => {
|
|
47
|
-
|
|
47
|
+
n.submenu ? p(n.id) : l(n.id);
|
|
48
48
|
},
|
|
49
|
-
onKeyDown: (
|
|
50
|
-
(
|
|
49
|
+
onKeyDown: (e) => {
|
|
50
|
+
(e.key === "Enter" || e.key === " ") && (n.submenu ? p(n.id) : l(n.id));
|
|
51
51
|
},
|
|
52
|
-
className:
|
|
53
|
-
children: /* @__PURE__ */
|
|
52
|
+
className: s,
|
|
53
|
+
children: /* @__PURE__ */ m(
|
|
54
54
|
r,
|
|
55
55
|
{
|
|
56
56
|
p: 2,
|
|
57
57
|
justifyContent: "space-between",
|
|
58
|
-
className:
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
className: i(
|
|
59
|
+
n.highlighted && d ? d : null,
|
|
60
|
+
t
|
|
61
61
|
),
|
|
62
62
|
children: [
|
|
63
63
|
/* @__PURE__ */ o(
|
|
64
64
|
D,
|
|
65
65
|
{
|
|
66
66
|
size: "xsmall",
|
|
67
|
-
weight:
|
|
68
|
-
children:
|
|
67
|
+
weight: n.highlighted ? "bold" : "regular",
|
|
68
|
+
children: n.label
|
|
69
69
|
}
|
|
70
70
|
),
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
n.submenu && /* @__PURE__ */ o(
|
|
72
|
+
g,
|
|
73
73
|
{
|
|
74
|
-
name:
|
|
74
|
+
name: h[n.id] ? "UpChevron" : "DownChevron"
|
|
75
75
|
}
|
|
76
|
-
)
|
|
76
|
+
),
|
|
77
|
+
n.icon && /* @__PURE__ */ o(g, { name: n.icon })
|
|
77
78
|
]
|
|
78
79
|
}
|
|
79
80
|
)
|
|
80
81
|
}
|
|
81
82
|
),
|
|
82
|
-
|
|
83
|
+
n.submenu && /* @__PURE__ */ o(
|
|
83
84
|
r,
|
|
84
85
|
{
|
|
85
|
-
className:
|
|
86
|
-
|
|
86
|
+
className: i(
|
|
87
|
+
u.subItemContainer,
|
|
87
88
|
C,
|
|
88
89
|
{
|
|
89
|
-
[
|
|
90
|
+
[u.subItemContainerOpen]: h[n.id]
|
|
90
91
|
}
|
|
91
92
|
),
|
|
92
93
|
direction: "column",
|
|
93
|
-
children:
|
|
94
|
-
|
|
94
|
+
children: n.submenu.map((e) => /* @__PURE__ */ o(
|
|
95
|
+
y,
|
|
95
96
|
{
|
|
96
97
|
showPointer: !0,
|
|
97
98
|
"aria-label": "Toggle sub item",
|
|
98
99
|
role: "button",
|
|
99
|
-
onClick: () =>
|
|
100
|
-
onKeyDown: (
|
|
101
|
-
(
|
|
100
|
+
onClick: () => l(e.id),
|
|
101
|
+
onKeyDown: (b) => {
|
|
102
|
+
(b.key === "Enter" || b.key === " ") && l(e.id);
|
|
102
103
|
},
|
|
103
|
-
className:
|
|
104
|
-
children: /* @__PURE__ */ o(r, { p: 2, className:
|
|
104
|
+
className: s,
|
|
105
|
+
children: /* @__PURE__ */ o(r, { p: 2, className: t, children: e.label })
|
|
105
106
|
},
|
|
106
|
-
|
|
107
|
+
e.id
|
|
107
108
|
))
|
|
108
109
|
}
|
|
109
110
|
)
|
|
110
|
-
] },
|
|
111
|
+
] }, n.id)) })
|
|
111
112
|
}
|
|
112
113
|
);
|
|
113
114
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
|
2
2
|
import u from "../Flex/Flex.js";
|
|
3
3
|
import { clsx as o } from "../../utils/clsx.js";
|
|
4
4
|
import { Interactive as m } from "../Interactive/Interactive.js";
|
|
5
|
-
import { s as r } from "../../BurgerMenu.module-
|
|
5
|
+
import { s as r } from "../../BurgerMenu.module-Dy-zFg88.js";
|
|
6
6
|
function g({
|
|
7
7
|
isOpen: n,
|
|
8
8
|
onToggle: t,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import d, { useState as h, useCallback as p } from "react";
|
|
3
|
+
import i from "../Flex/Flex.js";
|
|
4
4
|
import { Text as o } from "../Text/Text.js";
|
|
5
5
|
import "../../utils/ui/ui.js";
|
|
6
6
|
import { BurgerMenu as n } from "./BurgerMenu.js";
|
|
7
|
-
import { BurgerMenuButton as
|
|
7
|
+
import { BurgerMenuButton as s } from "./BurgerMenuButton.js";
|
|
8
|
+
import { s as m } from "../../BurgerMenu.module-Dy-zFg88.js";
|
|
8
9
|
const a = [
|
|
9
10
|
{
|
|
10
11
|
id: "1",
|
|
@@ -31,44 +32,46 @@ const a = [
|
|
|
31
32
|
},
|
|
32
33
|
{
|
|
33
34
|
id: "4",
|
|
34
|
-
label: "Settings"
|
|
35
|
+
label: "Settings",
|
|
36
|
+
icon: "ExternalLink"
|
|
35
37
|
}
|
|
36
|
-
],
|
|
38
|
+
], u = (e) => {
|
|
37
39
|
console.log(`Item clicked: ${e}`);
|
|
38
40
|
};
|
|
39
|
-
function
|
|
40
|
-
const [e,
|
|
41
|
-
|
|
41
|
+
function b() {
|
|
42
|
+
const [e, c] = h(!1), l = p(() => {
|
|
43
|
+
c((g) => !g);
|
|
42
44
|
}, []);
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ r(i, { gap: "large", vertical: !0, pb: 20, children: [
|
|
46
|
+
/* @__PURE__ */ r(i, { gap: "medium", vertical: !0, children: [
|
|
47
|
+
/* @__PURE__ */ t(o, { children: "Burger Menu" }),
|
|
48
|
+
/* @__PURE__ */ t(s, { isOpen: e, onToggle: l }),
|
|
49
|
+
/* @__PURE__ */ t(
|
|
48
50
|
n,
|
|
49
51
|
{
|
|
50
52
|
items: a,
|
|
51
|
-
onItemClick:
|
|
53
|
+
onItemClick: u,
|
|
52
54
|
isOpen: e
|
|
53
55
|
}
|
|
54
56
|
)
|
|
55
57
|
] }),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ r(i, { gap: "medium", vertical: !0, children: [
|
|
59
|
+
/* @__PURE__ */ t(o, { children: "Burger Menu With highlighted borders to show custom styling" }),
|
|
60
|
+
/* @__PURE__ */ t(s, { isOpen: e, onToggle: l }),
|
|
61
|
+
/* @__PURE__ */ t(
|
|
60
62
|
n,
|
|
61
63
|
{
|
|
62
64
|
items: a,
|
|
63
|
-
onItemClick:
|
|
65
|
+
onItemClick: u,
|
|
64
66
|
isOpen: e,
|
|
65
|
-
|
|
67
|
+
highlightedItemClassname: m.highlightTest,
|
|
68
|
+
itemClassName: m.borderTest
|
|
66
69
|
}
|
|
67
70
|
)
|
|
68
71
|
] })
|
|
69
72
|
] });
|
|
70
73
|
}
|
|
71
|
-
const
|
|
74
|
+
const C = d.memo(b);
|
|
72
75
|
export {
|
|
73
|
-
|
|
76
|
+
C as default
|
|
74
77
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IconName } from '../Icon';
|
|
3
3
|
|
|
4
|
-
export type ButtonTheme = 'primary' | 'secondary' | '
|
|
4
|
+
export type ButtonTheme = 'primary' | 'secondary' | 'tertiary' | 'on-light' | 'linked' | 'quicklink';
|
|
5
5
|
export interface ButtonProps<T = HTMLButtonElement> {
|
|
6
6
|
text?: React.ReactNode;
|
|
7
7
|
title?: string;
|
|
@@ -16,6 +16,7 @@ export interface ButtonProps<T = HTMLButtonElement> {
|
|
|
16
16
|
fullWidth?: boolean;
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
autofocus?: boolean;
|
|
19
|
+
borderShredded?: boolean;
|
|
19
20
|
onClick?: (event: React.MouseEvent<T>) => void;
|
|
20
21
|
onMouseDown?: (event: React.MouseEvent<T>) => void;
|
|
21
22
|
onMouseUp?: (event: React.MouseEvent<T>) => void;
|
|
@@ -1,86 +1,91 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { clsx as
|
|
5
|
-
import { noop as
|
|
6
|
-
const M = "cfxui__Button__unsetAll__44b96", j = "cfxui__Button__root__e2ace", F = "cfxui__Button__fullWidth__f61d9", v = "
|
|
1
|
+
import { jsx as r, jsxs as q, Fragment as I } from "react/jsx-runtime";
|
|
2
|
+
import b from "react";
|
|
3
|
+
import { Icon as k } from "../Icon/Icon.js";
|
|
4
|
+
import { clsx as h } from "../../utils/clsx.js";
|
|
5
|
+
import { noop as x } from "../../utils/functional.js";
|
|
6
|
+
const M = "cfxui__Button__unsetAll__44b96", j = "cfxui__Button__root__e2ace", F = "cfxui__Button__fullWidth__f61d9", v = "cfxui__Button__borderShredded__2388c", w = "cfxui__Button__primary__1c59f", D = "cfxui__Button__secondary__b2b84", P = "cfxui__Button__linked__330cb", R = "cfxui__Button__quicklink__204ac", U = "cfxui__Button__icon__44e51", $ = "cfxui__Button__icononly__4f786", z = "cfxui__Button__decorator__39a9b", o = {
|
|
7
7
|
unsetAll: M,
|
|
8
8
|
root: j,
|
|
9
9
|
fullWidth: F,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
borderShredded: v,
|
|
11
|
+
primary: w,
|
|
12
|
+
secondary: D,
|
|
12
13
|
"on-light": "cfxui__Button__on-light__ae69c",
|
|
13
|
-
linked:
|
|
14
|
-
quicklink:
|
|
15
|
-
icon:
|
|
16
|
-
icononly:
|
|
17
|
-
decorator:
|
|
14
|
+
linked: P,
|
|
15
|
+
quicklink: R,
|
|
16
|
+
icon: U,
|
|
17
|
+
icononly: $,
|
|
18
|
+
decorator: z
|
|
18
19
|
};
|
|
19
|
-
function
|
|
20
|
+
function E(l) {
|
|
20
21
|
const {
|
|
21
|
-
text:
|
|
22
|
+
text: t = null,
|
|
22
23
|
icon: n,
|
|
23
24
|
iconLeft: e,
|
|
24
|
-
iconClassName:
|
|
25
|
+
iconClassName: _,
|
|
25
26
|
decorator: i = null
|
|
26
27
|
} = l;
|
|
27
28
|
return /* @__PURE__ */ q(I, { children: [
|
|
28
|
-
!!e && /* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
!!n && /* @__PURE__ */
|
|
31
|
-
!!i && /* @__PURE__ */
|
|
29
|
+
!!e && /* @__PURE__ */ r(k, { name: e, className: h(o.icon, _) }),
|
|
30
|
+
t,
|
|
31
|
+
!!n && /* @__PURE__ */ r(k, { name: n, className: h(o.icon, _) }),
|
|
32
|
+
!!i && /* @__PURE__ */ r("div", { className: o.decorator, children: i })
|
|
32
33
|
] });
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function G(l) {
|
|
35
36
|
const {
|
|
36
|
-
text:
|
|
37
|
+
text: t = null,
|
|
37
38
|
icon: n,
|
|
38
39
|
iconLeft: e,
|
|
39
|
-
theme:
|
|
40
|
+
theme: _ = "tertiary",
|
|
40
41
|
disabled: i = !1,
|
|
41
|
-
className:
|
|
42
|
+
className: d = "",
|
|
42
43
|
autofocus: s = !1,
|
|
43
|
-
fullWidth:
|
|
44
|
-
|
|
44
|
+
fullWidth: u = !1,
|
|
45
|
+
borderShredded: c = !1,
|
|
46
|
+
tabIndex: a
|
|
45
47
|
} = l;
|
|
46
|
-
return
|
|
47
|
-
[
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
[
|
|
51
|
-
[
|
|
48
|
+
return h(o.unsetAll, o.root, o[_], d, {
|
|
49
|
+
[o.disabled]: i,
|
|
50
|
+
[o.icononly]: (!!n || !!e) && (t === null || typeof t > "u"),
|
|
51
|
+
[o.text]: !!t,
|
|
52
|
+
[o.autofocus]: s || typeof a < "u",
|
|
53
|
+
[o.fullWidth]: u,
|
|
54
|
+
[o.borderShredded]: c
|
|
52
55
|
});
|
|
53
56
|
}
|
|
54
|
-
function
|
|
57
|
+
function H(l) {
|
|
55
58
|
const {
|
|
56
|
-
text:
|
|
59
|
+
text: t = null,
|
|
57
60
|
icon: n,
|
|
58
61
|
iconLeft: e,
|
|
59
|
-
iconClassName:
|
|
62
|
+
iconClassName: _,
|
|
60
63
|
title: i = "",
|
|
61
|
-
type:
|
|
64
|
+
type: d = "button",
|
|
62
65
|
className: s = "",
|
|
63
|
-
theme:
|
|
66
|
+
theme: u = "tertiary",
|
|
64
67
|
disabled: c = !1,
|
|
65
|
-
onClick:
|
|
66
|
-
onMouseDown:
|
|
67
|
-
onMouseUp:
|
|
68
|
+
onClick: a = x,
|
|
69
|
+
onMouseDown: p = x,
|
|
70
|
+
onMouseUp: N = x,
|
|
68
71
|
autofocus: f = !1,
|
|
69
|
-
tabIndex:
|
|
72
|
+
tabIndex: m,
|
|
70
73
|
fullWidth: B = !1,
|
|
71
|
-
ariaLabel:
|
|
72
|
-
|
|
74
|
+
ariaLabel: C = "",
|
|
75
|
+
borderShredded: y = !1,
|
|
76
|
+
ref: S,
|
|
73
77
|
...W
|
|
74
|
-
} = l, g =
|
|
75
|
-
text:
|
|
78
|
+
} = l, g = b.useMemo(() => G({
|
|
79
|
+
text: t,
|
|
76
80
|
icon: n,
|
|
77
81
|
iconLeft: e,
|
|
78
|
-
theme:
|
|
82
|
+
theme: u,
|
|
79
83
|
disabled: c,
|
|
80
84
|
className: s,
|
|
81
85
|
autofocus: f,
|
|
82
86
|
fullWidth: B,
|
|
83
|
-
tabIndex:
|
|
87
|
+
tabIndex: m,
|
|
88
|
+
borderShredded: y
|
|
84
89
|
}), [
|
|
85
90
|
f,
|
|
86
91
|
s,
|
|
@@ -88,34 +93,35 @@ function G(l) {
|
|
|
88
93
|
c,
|
|
89
94
|
n,
|
|
90
95
|
e,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
m,
|
|
97
|
+
t,
|
|
98
|
+
u,
|
|
99
|
+
y
|
|
100
|
+
]), A = b.useCallback((L) => {
|
|
101
|
+
c || a(L);
|
|
102
|
+
}, [c, a]);
|
|
103
|
+
return /* @__PURE__ */ r(
|
|
98
104
|
"button",
|
|
99
105
|
{
|
|
100
|
-
ref:
|
|
106
|
+
ref: S,
|
|
101
107
|
disabled: c,
|
|
102
108
|
className: g,
|
|
103
109
|
onClick: A,
|
|
104
|
-
onMouseDown:
|
|
105
|
-
onMouseUp:
|
|
110
|
+
onMouseDown: p,
|
|
111
|
+
onMouseUp: N,
|
|
106
112
|
autoFocus: f,
|
|
107
|
-
tabIndex:
|
|
113
|
+
tabIndex: m,
|
|
108
114
|
title: i,
|
|
109
|
-
type:
|
|
110
|
-
"aria-label":
|
|
115
|
+
type: d,
|
|
116
|
+
"aria-label": C,
|
|
111
117
|
...W,
|
|
112
|
-
children: /* @__PURE__ */
|
|
118
|
+
children: /* @__PURE__ */ r(E, { ...l })
|
|
113
119
|
}
|
|
114
120
|
);
|
|
115
121
|
}
|
|
116
|
-
const
|
|
122
|
+
const V = b.memo(H);
|
|
117
123
|
export {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
124
|
+
E as ButtonContent,
|
|
125
|
+
V as default,
|
|
126
|
+
G as getButtonClassName
|
|
121
127
|
};
|