@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,55 +1,57 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import "../Box/Box.js";
|
|
3
|
-
import { stringPropFormater as
|
|
4
|
-
import
|
|
5
|
-
import { clsx as
|
|
6
|
-
import { ui as
|
|
3
|
+
import { stringPropFormater as x } from "../RSC/Box/Box.js";
|
|
4
|
+
import y from "../Flex/Flex.js";
|
|
5
|
+
import { clsx as C } from "../../utils/clsx.js";
|
|
6
|
+
import { ui as e } from "../../utils/ui/ui.js";
|
|
7
7
|
import { s } from "../../Table.module-CMz5ENmI.js";
|
|
8
|
-
function
|
|
8
|
+
function N(m) {
|
|
9
9
|
const {
|
|
10
|
-
onClick:
|
|
11
|
-
className:
|
|
12
|
-
children:
|
|
13
|
-
ref:
|
|
14
|
-
width:
|
|
15
|
-
display:
|
|
16
|
-
as:
|
|
17
|
-
...
|
|
18
|
-
} =
|
|
19
|
-
return
|
|
20
|
-
|
|
10
|
+
onClick: o,
|
|
11
|
+
className: p,
|
|
12
|
+
children: c,
|
|
13
|
+
ref: d,
|
|
14
|
+
width: r,
|
|
15
|
+
display: i,
|
|
16
|
+
as: a = "td",
|
|
17
|
+
...t
|
|
18
|
+
} = m, l = a === "th", f = t.px ?? 4, h = t.py ?? (l ? void 0 : 1.5);
|
|
19
|
+
return /* @__PURE__ */ n(
|
|
20
|
+
a,
|
|
21
21
|
{
|
|
22
|
-
ref:
|
|
22
|
+
ref: d,
|
|
23
23
|
tabIndex: -1,
|
|
24
|
-
role:
|
|
25
|
-
onClick:
|
|
26
|
-
className:
|
|
24
|
+
role: l ? "columnheader" : "cell",
|
|
25
|
+
onClick: o,
|
|
26
|
+
className: C(
|
|
27
27
|
s.tableCell,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
p,
|
|
29
|
+
e.getResponsiveClassnames("width", r),
|
|
30
|
+
e.getResponsiveClassnames("display", i),
|
|
31
31
|
{
|
|
32
|
-
[s.header]:
|
|
33
|
-
[s.interactive]: !!
|
|
32
|
+
[s.header]: l,
|
|
33
|
+
[s.interactive]: !!o
|
|
34
34
|
}
|
|
35
35
|
),
|
|
36
36
|
style: {
|
|
37
|
-
...
|
|
38
|
-
...
|
|
37
|
+
...e.getResponsiveStyles("width", r),
|
|
38
|
+
...e.getResponsiveStyles("display", i, x)
|
|
39
39
|
},
|
|
40
|
-
children: /* @__PURE__ */
|
|
41
|
-
|
|
40
|
+
children: /* @__PURE__ */ n(
|
|
41
|
+
y,
|
|
42
42
|
{
|
|
43
43
|
height: "100%",
|
|
44
44
|
alignItems: "center",
|
|
45
45
|
className: s.tableCellContent,
|
|
46
|
-
...
|
|
47
|
-
|
|
46
|
+
...t,
|
|
47
|
+
px: f,
|
|
48
|
+
py: h,
|
|
49
|
+
children: c
|
|
48
50
|
}
|
|
49
51
|
)
|
|
50
52
|
}
|
|
51
53
|
);
|
|
52
54
|
}
|
|
53
55
|
export {
|
|
54
|
-
|
|
56
|
+
N as default
|
|
55
57
|
};
|