@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.
Files changed (43) hide show
  1. package/dist/{BurgerMenu.module-DA0ojIYf.js → BurgerMenu.module-Dy-zFg88.js} +4 -3
  2. package/dist/assets/all_css.css +1 -0
  3. package/dist/assets/css/BurgerMenu.css +1 -1
  4. package/dist/assets/css/Button.css +1 -1
  5. package/dist/assets/css/Lightbox.css +1 -0
  6. package/dist/assets/general/global.css +1 -1
  7. package/dist/components/BurgerMenu/BurgerMenu.d.ts +4 -2
  8. package/dist/components/BurgerMenu/BurgerMenu.js +55 -54
  9. package/dist/components/BurgerMenu/BurgerMenuButton.js +1 -1
  10. package/dist/components/BurgerMenu/BurgerMenuShowcase.js +26 -23
  11. package/dist/components/Button/Button.d.ts +2 -1
  12. package/dist/components/Button/Button.js +71 -65
  13. package/dist/components/Button/ButtonShowcase.js +46 -22
  14. package/dist/components/Lightbox/Lightbox.d.ts +9 -0
  15. package/dist/components/Lightbox/Lightbox.js +172 -0
  16. package/dist/components/Lightbox/LightboxShowcase.d.ts +6 -0
  17. package/dist/components/Lightbox/LightboxShowcase.js +137 -0
  18. package/dist/components/Lightbox/index.d.ts +2 -0
  19. package/dist/components/Lightbox/index.js +4 -0
  20. package/dist/components/Lightbox/types.d.ts +51 -0
  21. package/dist/components/Lightbox/types.js +1 -0
  22. package/dist/components/Logos/fivem/WhiteLogo.js +9 -9
  23. package/dist/components/Logos/redm/WhiteLogo.js +8 -30
  24. package/dist/components/Shroud/Shroud.js +3 -3
  25. package/dist/components/Table/TableCell.js +35 -33
  26. package/dist/embla-carousel-react.esm-BE464U1q.js +1252 -0
  27. package/dist/main.d.ts +2 -1
  28. package/dist/main.js +225 -224
  29. package/dist/styles-scss/tokens.scss +1 -1
  30. package/dist/utils/contexts/AnalyticsContext/AnalyticsContext.d.ts +15 -2
  31. package/dist/utils/contexts/AnalyticsContext/AnalyticsContext.js +9 -3
  32. package/dist/utils/contexts/AnalyticsContext/index.d.ts +2 -2
  33. package/dist/utils/contexts/AnalyticsContext/index.js +8 -7
  34. package/dist/utils/contexts/AnalyticsContext/useSiteLinkClick.js +12 -12
  35. package/dist/utils/hooks/useBodyScrollLock.d.ts +1 -0
  36. package/dist/utils/hooks/useBodyScrollLock.js +9 -0
  37. package/dist/utils/hooks/useCarousel.js +17 -1264
  38. package/dist/utils/hooks/useKeyboardArrows.d.ts +5 -0
  39. package/dist/utils/hooks/useKeyboardArrows.js +13 -0
  40. package/dist/utils/hooks/useLightbox.d.ts +21 -0
  41. package/dist/utils/hooks/useLightbox.js +80 -0
  42. package/dist/utils/hooks/usePopoverController.js +25 -22
  43. package/package.json +1 -1
@@ -1,55 +1,57 @@
1
- import { jsx as a } from "react/jsx-runtime";
1
+ import { jsx as n } from "react/jsx-runtime";
2
2
  import "../Box/Box.js";
3
- import { stringPropFormater as c } from "../RSC/Box/Box.js";
4
- import h from "../Flex/Flex.js";
5
- import { clsx as y } from "../../utils/clsx.js";
6
- import { ui as t } from "../../utils/ui/ui.js";
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 w(p) {
8
+ function N(m) {
9
9
  const {
10
- onClick: l,
11
- className: m,
12
- children: d,
13
- ref: f,
14
- width: o,
15
- display: r,
16
- as: i = "td",
17
- ...e
18
- } = p, n = i === "th";
19
- return typeof e.px > "u" && (e.px = 4), typeof e.py > "u" && (e.py = i === "th" ? void 0 : 1.5), /* @__PURE__ */ a(
20
- i,
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: f,
22
+ ref: d,
23
23
  tabIndex: -1,
24
- role: n ? "columnheader" : "cell",
25
- onClick: l,
26
- className: y(
24
+ role: l ? "columnheader" : "cell",
25
+ onClick: o,
26
+ className: C(
27
27
  s.tableCell,
28
- m,
29
- t.getResponsiveClassnames("width", o),
30
- t.getResponsiveClassnames("display", r),
28
+ p,
29
+ e.getResponsiveClassnames("width", r),
30
+ e.getResponsiveClassnames("display", i),
31
31
  {
32
- [s.header]: n,
33
- [s.interactive]: !!l
32
+ [s.header]: l,
33
+ [s.interactive]: !!o
34
34
  }
35
35
  ),
36
36
  style: {
37
- ...t.getResponsiveStyles("width", o),
38
- ...t.getResponsiveStyles("display", r, c)
37
+ ...e.getResponsiveStyles("width", r),
38
+ ...e.getResponsiveStyles("display", i, x)
39
39
  },
40
- children: /* @__PURE__ */ a(
41
- h,
40
+ children: /* @__PURE__ */ n(
41
+ y,
42
42
  {
43
43
  height: "100%",
44
44
  alignItems: "center",
45
45
  className: s.tableCellContent,
46
- ...e,
47
- children: d
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
- w as default
56
+ N as default
55
57
  };