@cfx-dev/ui-components 5.0.22 → 5.0.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.
Files changed (188) hide show
  1. package/dist/CarouselControls-CJ3tupLr.js +41 -0
  2. package/dist/Combination-BNueeiCk.js +2227 -0
  3. package/dist/{Combination-N-vN9BB-.js → Combination-DFRGuWx2.js} +50 -48
  4. package/dist/{DropdownContent-BTzahw95.js → DropdownContent-DCqFWnzj.js} +10 -10
  5. package/dist/assets/all_css.css +2 -1
  6. package/dist/assets/css/Button.css +1 -1
  7. package/dist/assets/css/CarouselControls.css +1 -0
  8. package/dist/assets/css/CarouselItem.css +1 -0
  9. package/dist/assets/css/RangeInput.css +1 -1
  10. package/dist/assets/css/Text.css +1 -1
  11. package/dist/assets/general/global.css +1 -1
  12. package/dist/assets/general/themes.css +1 -1
  13. package/dist/cfxIcons-YyDWNxmM.js +110 -0
  14. package/dist/cfxIconsXLarge-Dw37ZSw2.js +110 -0
  15. package/dist/components/Accordion/AccordionShowcase.js +2 -2
  16. package/dist/components/Badge/BadgeShowcase.js +3 -3
  17. package/dist/components/BurgerMenu/BurgerMenuShowcase.js +4 -4
  18. package/dist/components/Carousel/Carousel.d.ts +24 -0
  19. package/dist/components/Carousel/Carousel.js +125 -0
  20. package/dist/components/Carousel/Carousel.types.d.ts +41 -0
  21. package/dist/components/Carousel/Carousel.types.js +1 -0
  22. package/dist/components/Carousel/CarouselControls.d.ts +8 -0
  23. package/dist/components/Carousel/CarouselControls.js +8 -0
  24. package/dist/components/Carousel/CarouselItem.d.ts +11 -0
  25. package/dist/components/Carousel/CarouselItem.js +85 -0
  26. package/dist/components/Carousel/CarouselShowcase.d.ts +6 -0
  27. package/dist/components/Carousel/CarouselShowcase.js +177 -0
  28. package/dist/components/Carousel/index.d.ts +4 -0
  29. package/dist/components/Carousel/index.js +6 -0
  30. package/dist/components/Carousel/playIcon.d.ts +6 -0
  31. package/dist/components/Carousel/playIcon.js +25 -0
  32. package/dist/components/Checkbox/Checkbox.js +7 -7
  33. package/dist/components/Checkbox/CheckboxShowcase.js +5 -5
  34. package/dist/components/ClipboardButton/ClipboardButton.js +9 -9
  35. package/dist/components/ControlBox/ControlBox.js +10 -10
  36. package/dist/components/Decorate/Decorate.js +5 -5
  37. package/dist/components/DropdownContent/DropdownContent.js +1 -1
  38. package/dist/components/DropdownContent/index.js +1 -1
  39. package/dist/components/DropdownMenu/DropdownMenu.js +12 -12
  40. package/dist/components/DropdownSelect/DropdownSelect.js +1 -1
  41. package/dist/components/DropdownSelect/DropdownSelectShowcase.js +4 -4
  42. package/dist/components/Flex/FlexShowcase.js +4 -4
  43. package/dist/components/Flyout/Flyout.js +1 -1
  44. package/dist/components/Flyout/FlyoutShowcase.js +3 -3
  45. package/dist/components/FormField/FormFieldShowcase.js +1 -1
  46. package/dist/components/Icon/Icon.js +2 -2
  47. package/dist/components/Icons/IconsShowcase.js +1 -1
  48. package/dist/components/Icons/cfx-icons/Close.js +2 -2
  49. package/dist/components/Icons/cfx-icons/Copy.js +3 -3
  50. package/dist/components/Icons/cfx-icons/DownChevron.js +2 -2
  51. package/dist/components/Icons/cfx-icons/Filter.js +6 -6
  52. package/dist/components/Icons/cfx-icons/Heart.js +2 -2
  53. package/dist/components/Icons/cfx-icons/HeartFilled.js +2 -2
  54. package/dist/components/Icons/cfx-icons/LeftArrow.js +2 -2
  55. package/dist/components/Icons/cfx-icons/LeftChevron.js +2 -2
  56. package/dist/components/Icons/cfx-icons/MoreInfo.js +4 -4
  57. package/dist/components/Icons/cfx-icons/Play.js +5 -5
  58. package/dist/components/Icons/cfx-icons/Plus.js +2 -2
  59. package/dist/components/Icons/cfx-icons/Refresh.js +3 -3
  60. package/dist/components/Icons/cfx-icons/Search.js +2 -2
  61. package/dist/components/Icons/cfx-icons/ServerList.js +2 -2
  62. package/dist/components/Icons/cfx-icons/ServerReconnect.js +7 -7
  63. package/dist/components/Icons/cfx-icons/Square.js +3 -3
  64. package/dist/components/Icons/cfx-icons/SquareFilled.js +7 -7
  65. package/dist/components/Icons/cfx-icons/Trash.js +2 -2
  66. package/dist/components/Icons/cfx-icons/Undo.js +3 -3
  67. package/dist/components/Icons/cfx-icons/User.js +5 -5
  68. package/dist/components/Icons/cfx-icons/Users.js +3 -3
  69. package/dist/components/Icons/cfx-icons/Verified.js +4 -4
  70. package/dist/components/Icons/cfx-icons/Warning.js +2 -2
  71. package/dist/components/Icons/cfx-iconsXLarge/Close.js +2 -2
  72. package/dist/components/Icons/cfx-iconsXLarge/Copy.js +3 -3
  73. package/dist/components/Icons/cfx-iconsXLarge/DownChevron.js +2 -2
  74. package/dist/components/Icons/cfx-iconsXLarge/Filter.js +2 -2
  75. package/dist/components/Icons/cfx-iconsXLarge/Heart.js +5 -5
  76. package/dist/components/Icons/cfx-iconsXLarge/HeartFilled.js +2 -2
  77. package/dist/components/Icons/cfx-iconsXLarge/LeftArrow.js +2 -2
  78. package/dist/components/Icons/cfx-iconsXLarge/LeftChevron.js +2 -2
  79. package/dist/components/Icons/cfx-iconsXLarge/MoreInfo.js +4 -4
  80. package/dist/components/Icons/cfx-iconsXLarge/Play.js +5 -5
  81. package/dist/components/Icons/cfx-iconsXLarge/Plus.js +2 -2
  82. package/dist/components/Icons/cfx-iconsXLarge/Refresh.js +3 -3
  83. package/dist/components/Icons/cfx-iconsXLarge/Search.js +2 -2
  84. package/dist/components/Icons/cfx-iconsXLarge/ServerList.js +2 -2
  85. package/dist/components/Icons/cfx-iconsXLarge/ServerReconnect.js +7 -7
  86. package/dist/components/Icons/cfx-iconsXLarge/Square.js +3 -3
  87. package/dist/components/Icons/cfx-iconsXLarge/SquareFilled.js +4 -4
  88. package/dist/components/Icons/cfx-iconsXLarge/Trash.js +2 -2
  89. package/dist/components/Icons/cfx-iconsXLarge/Undo.js +4 -4
  90. package/dist/components/Icons/cfx-iconsXLarge/User.js +5 -5
  91. package/dist/components/Icons/cfx-iconsXLarge/Users.js +3 -3
  92. package/dist/components/Icons/cfx-iconsXLarge/Verified.js +4 -4
  93. package/dist/components/Icons/cfx-iconsXLarge/VisibilityOff.js +2 -2
  94. package/dist/components/Icons/cfx-iconsXLarge/Warning.js +2 -2
  95. package/dist/components/Icons/index.js +2 -2
  96. package/dist/components/InfoPanel/InfoPanelShowcase.js +9 -9
  97. package/dist/components/Input/InputShowcase.js +19 -19
  98. package/dist/components/Input/RichInput.js +1 -1
  99. package/dist/components/InputDropzone/InputDropzone.js +340 -304
  100. package/dist/components/Link/LinkShowcase.js +5 -5
  101. package/dist/components/Logos/LogosShowcase.js +2 -2
  102. package/dist/components/Logos/cfx/Icon.js +7 -7
  103. package/dist/components/Logos/cfx/Logo.js +3 -3
  104. package/dist/components/Logos/cfx/Wordmark.js +2 -2
  105. package/dist/components/Logos/discord/Icon.js +5 -5
  106. package/dist/components/Logos/fivem/Icon.js +2 -2
  107. package/dist/components/Logos/fivem/WhiteLogo.js +2 -2
  108. package/dist/components/Logos/github/Icon.js +7 -7
  109. package/dist/components/Logos/google/Icon.js +6 -6
  110. package/dist/components/Logos/google/Wordmark.js +3 -3
  111. package/dist/components/Logos/index.js +7 -7
  112. package/dist/components/Logos/patreon/Icon.js +7 -7
  113. package/dist/components/Logos/patreon/Wordmark.js +5 -5
  114. package/dist/components/Logos/redm/CompositeLogo.js +2 -2
  115. package/dist/components/Logos/rockstar/Icon.js +2 -2
  116. package/dist/components/Logos/tebex/Icon.js +7 -7
  117. package/dist/components/Logos/tebex/Wordmark.js +2 -2
  118. package/dist/components/Logos/x/Icon.js +3 -3
  119. package/dist/components/Modal/Modal.js +1 -1
  120. package/dist/components/Modal/ModalShowcase.js +3 -3
  121. package/dist/components/OnScreenSensor.js +1 -1
  122. package/dist/components/Overlay/Overlay.js +1 -1
  123. package/dist/components/Popover/PopoverShowcase.js +6 -6
  124. package/dist/components/Prose/Prose.js +3 -3
  125. package/dist/components/Range/Range.js +1 -1
  126. package/dist/components/Scrollable/ScrollableShowcase.js +2 -2
  127. package/dist/components/Select/Select.js +109 -109
  128. package/dist/components/Select/SelectShowcase.js +21 -21
  129. package/dist/components/Skeleton/SkeletonShowcase.js +4 -4
  130. package/dist/components/Slider/Slider.js +1 -1
  131. package/dist/components/Switch/Switch.js +14 -14
  132. package/dist/components/TableResponsiveText/TableResponsiveText.js +2 -2
  133. package/dist/components/Tabular/TabularShowcase.js +12 -12
  134. package/dist/components/Title/Title.js +81 -77
  135. package/dist/{index-CfQtbUfi.js → index-8cuIcSMB.js} +5 -5
  136. package/dist/index-BcJ929FX.js +20 -0
  137. package/dist/{index-kbBuAY0m.js → index-BcnrbBqR.js} +2 -2
  138. package/dist/{index-BgyFvlVL.js → index-Bg26abkD.js} +2 -2
  139. package/dist/{index-9LBuZ7x4.js → index-BzirdFxK.js} +5 -5
  140. package/dist/{index-Cl_RnsqN.js → index-CUyjBl1Y.js} +2 -2
  141. package/dist/index-CZVyC53C.js +20 -0
  142. package/dist/{index-DwfZyjnS.js → index-CaQzR2YA.js} +2 -2
  143. package/dist/{index-D5SMGei3.js → index-CzUzkeQx.js} +9 -9
  144. package/dist/{index-Cy4ZbWBL.js → index-DqqOUOlj.js} +2 -2
  145. package/dist/{index-3ctv5u9o.js → index-DwdZ_SPo.js} +2 -2
  146. package/dist/{index-Bj7QGXdt.js → index-DxFgF-nY.js} +2 -2
  147. package/dist/main.d.ts +11 -2
  148. package/dist/main.js +279 -257
  149. package/dist/utils/contexts/AnalyticsContext/AnalyticsContext.d.ts +12 -0
  150. package/dist/utils/contexts/AnalyticsContext/AnalyticsContext.js +9 -0
  151. package/dist/utils/contexts/AnalyticsContext/AnalyticsProvider.d.ts +9 -0
  152. package/dist/utils/contexts/AnalyticsContext/AnalyticsProvider.js +33 -0
  153. package/dist/utils/contexts/AnalyticsContext/index.d.ts +6 -0
  154. package/dist/utils/contexts/AnalyticsContext/index.js +10 -0
  155. package/dist/utils/contexts/AnalyticsContext/useAnalytics.d.ts +1 -0
  156. package/dist/utils/contexts/AnalyticsContext/useAnalytics.js +8 -0
  157. package/dist/utils/contexts/AnalyticsContext/useSiteLinkClick.d.ts +7 -0
  158. package/dist/utils/contexts/AnalyticsContext/useSiteLinkClick.js +22 -0
  159. package/dist/utils/contexts/MediaQueryContext/MediaQueryContext.d.ts +11 -0
  160. package/dist/utils/contexts/MediaQueryContext/MediaQueryContext.js +11 -0
  161. package/dist/utils/contexts/MediaQueryContext/MediaQueryContextProvider.d.ts +6 -0
  162. package/dist/utils/contexts/MediaQueryContext/MediaQueryContextProvider.js +38 -0
  163. package/dist/utils/contexts/MediaQueryContext/index.d.ts +4 -0
  164. package/dist/utils/contexts/MediaQueryContext/index.js +8 -0
  165. package/dist/utils/contexts/MediaQueryContext/useMediaQuery.d.ts +2 -0
  166. package/dist/utils/contexts/MediaQueryContext/useMediaQuery.js +8 -0
  167. package/dist/utils/contexts/StoreContext/StoreContext.d.ts +15 -0
  168. package/dist/utils/contexts/StoreContext/StoreContext.js +21 -0
  169. package/dist/utils/contexts/StoreContext/index.d.ts +2 -0
  170. package/dist/utils/contexts/StoreContext/index.js +4 -0
  171. package/dist/utils/formatBytes.d.ts +1 -0
  172. package/dist/utils/formatBytes.js +12 -0
  173. package/dist/utils/hooks/useCarousel.d.ts +11 -0
  174. package/dist/utils/hooks/useCarousel.js +1276 -0
  175. package/dist/utils/hooks/useOutlet.js +1 -1
  176. package/dist/utils/truncateWithEllipsis.d.ts +1 -0
  177. package/dist/utils/truncateWithEllipsis.js +6 -0
  178. package/package.json +2 -1
  179. package/dist/Combination-CcTTSYNP.js +0 -2209
  180. package/dist/assets/css/CountryFlag.css +0 -1
  181. package/dist/cfxIcons-0xD_EEXT.js +0 -110
  182. package/dist/cfxIconsXLarge-D0vz6Yd_.js +0 -110
  183. package/dist/components/CountryFlag/CountryFlag.d.ts +0 -12
  184. package/dist/components/CountryFlag/CountryFlag.js +0 -25
  185. package/dist/components/CountryFlag/index.d.ts +0 -2
  186. package/dist/components/CountryFlag/index.js +0 -4
  187. package/dist/index-B_NGoq0d.js +0 -20
  188. package/dist/index-Cn_D8a9-.js +0 -20
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ import { CarouselItemData, VisibleItems, ImageComponentProps } from './Carousel.types';
3
+
4
+ export interface CarouselProps {
5
+ items: CarouselItemData[];
6
+ ImageComponent: React.ComponentType<ImageComponentProps>;
7
+ visibleItems?: number | VisibleItems;
8
+ onItemClick?: (index: number) => void;
9
+ showControlsBottom?: boolean;
10
+ showControlsTop?: boolean;
11
+ skipFirstItem?: boolean;
12
+ controlsClassName?: string;
13
+ text?: string;
14
+ showDots?: boolean;
15
+ trackClassName?: string;
16
+ className?: string;
17
+ rootClassName?: string;
18
+ headerClassName?: string;
19
+ currentPage?: number;
20
+ onPageChange?: (page: number) => void;
21
+ }
22
+ declare function Carousel({ items, ImageComponent, visibleItems, onItemClick, showControlsBottom, showControlsTop, skipFirstItem, controlsClassName, text, showDots, trackClassName, className, rootClassName, headerClassName, currentPage: controlledCurrentPage, onPageChange, }: CarouselProps): import("react/jsx-runtime").JSX.Element;
23
+ declare const _default: React.MemoExoticComponent<typeof Carousel>;
24
+ export default _default;
@@ -0,0 +1,125 @@
1
+ import { jsxs as p, jsx as s } from "react/jsx-runtime";
2
+ import G, { useMemo as H, useState as J, useCallback as B, useEffect as K } from "react";
3
+ import { Dot as L } from "../Dot/Dot.js";
4
+ import u from "../Flex/Flex.js";
5
+ import { clsx as E } from "../../utils/clsx.js";
6
+ import "../../utils/contexts/MediaQueryContext/MediaQueryContext.js";
7
+ import "../../utils/contexts/MediaQueryContext/MediaQueryContextProvider.js";
8
+ import O from "../../utils/contexts/MediaQueryContext/useMediaQuery.js";
9
+ import { useCarousel as U } from "../../utils/hooks/useCarousel.js";
10
+ import { s as i, C as W } from "../../CarouselControls-CJ3tupLr.js";
11
+ import X from "./CarouselItem.js";
12
+ function F({
13
+ showDots: n = !1,
14
+ pageCount: a,
15
+ currentPage: t,
16
+ onPageChange: o,
17
+ controlsClassName: m
18
+ }) {
19
+ return a <= 1 ? null : /* @__PURE__ */ p(u, { gap: 2, centered: !0, className: i.controls, children: [
20
+ n && /* @__PURE__ */ s(u, { centered: !0, gap: 1, children: Array.from({ length: a }).map((y, c) => /* @__PURE__ */ s(
21
+ L,
22
+ {
23
+ className: i.dots,
24
+ color: c === t ? "primary" : "secondary",
25
+ opacity: c === t ? 1 : 0.2
26
+ },
27
+ c
28
+ )) }),
29
+ /* @__PURE__ */ s(
30
+ W,
31
+ {
32
+ currentPage: t,
33
+ pageCount: a,
34
+ onPageChange: o,
35
+ className: m
36
+ }
37
+ )
38
+ ] });
39
+ }
40
+ function Y({
41
+ items: n,
42
+ ImageComponent: a,
43
+ visibleItems: t = 4,
44
+ onItemClick: o,
45
+ showControlsBottom: m = !1,
46
+ showControlsTop: y = !1,
47
+ skipFirstItem: c = !1,
48
+ controlsClassName: N,
49
+ text: h,
50
+ showDots: S = !1,
51
+ trackClassName: Q,
52
+ className: V,
53
+ rootClassName: $,
54
+ headerClassName: q,
55
+ currentPage: d,
56
+ onPageChange: l
57
+ }) {
58
+ const {
59
+ isMobile: x,
60
+ isTablet: M
61
+ } = O(), T = H(() => typeof t == "number" ? t : x ? t.mobile : M ? t.tablet : t.desktop, [t, x, M]), w = c ? n.slice(1) : n, j = Math.ceil(w.length / T), {
62
+ carouselRef: z,
63
+ carouselApi: e
64
+ } = U({
65
+ slidesToScroll: T
66
+ }), [A, _] = J(0), b = d ?? A, R = B(
67
+ (r) => {
68
+ e == null || e.scrollTo(r), l == null || l(r), d == null && _(r);
69
+ },
70
+ [e, l, d]
71
+ ), D = B(
72
+ (r) => {
73
+ o == null || o(r);
74
+ },
75
+ [o]
76
+ );
77
+ return K(() => {
78
+ if (!e)
79
+ return;
80
+ const r = () => {
81
+ const f = e.selectedScrollSnap();
82
+ _(f), l == null || l(f);
83
+ };
84
+ return e.on("select", r), e.on("reInit", r), () => {
85
+ e.off("select", r), e.off("reInit", r);
86
+ };
87
+ }, [e, l]), /* @__PURE__ */ p("div", { className: $, children: [
88
+ h && /* @__PURE__ */ p(u, { spaceBetween: !0, alignItems: "center", className: q, children: [
89
+ /* @__PURE__ */ s("span", { children: h }),
90
+ y && /* @__PURE__ */ s(
91
+ F,
92
+ {
93
+ showDots: S,
94
+ pageCount: j,
95
+ currentPage: b,
96
+ onPageChange: R,
97
+ controlsClassName: N
98
+ }
99
+ )
100
+ ] }),
101
+ /* @__PURE__ */ s("div", { className: E(i.carousel, V), ref: z, children: /* @__PURE__ */ s(u, { className: E(i.carouselTrack, Q), gap: 1, children: n.map((r, f) => f === 0 && c ? null : /* @__PURE__ */ s("div", { className: i.carouselItem, children: /* @__PURE__ */ s(
102
+ X,
103
+ {
104
+ index: f,
105
+ item: r,
106
+ onClick: D,
107
+ ImageComponent: a
108
+ }
109
+ ) }, r.id)) }) }),
110
+ m && /* @__PURE__ */ s(u, { justifyContent: "flex-end", children: /* @__PURE__ */ s(
111
+ F,
112
+ {
113
+ showDots: S,
114
+ pageCount: j,
115
+ currentPage: b,
116
+ onPageChange: R,
117
+ controlsClassName: N
118
+ }
119
+ ) })
120
+ ] });
121
+ }
122
+ const lr = G.memo(Y);
123
+ export {
124
+ lr as default
125
+ };
@@ -0,0 +1,41 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface ImageCarouselItem {
4
+ id: string;
5
+ type: 'image';
6
+ src: string;
7
+ alt?: string;
8
+ blurDataURL?: string;
9
+ height?: number;
10
+ width?: number;
11
+ }
12
+ export interface VideoCarouselItem {
13
+ id: string;
14
+ type: 'video';
15
+ videoUrl: string;
16
+ alt?: string;
17
+ thumbnail?: string;
18
+ blurDataURL?: string;
19
+ height?: number;
20
+ width?: number;
21
+ }
22
+ export interface ComponentCarouselItem {
23
+ id: string;
24
+ type: 'component';
25
+ component: React.ReactNode;
26
+ }
27
+ export type CarouselItemData = ImageCarouselItem | VideoCarouselItem | ComponentCarouselItem;
28
+ export type VisibleItems = {
29
+ mobile: number;
30
+ tablet: number;
31
+ desktop: number;
32
+ };
33
+ export interface ImageComponentProps {
34
+ src: string;
35
+ alt?: string;
36
+ width?: number;
37
+ height?: number;
38
+ className?: string;
39
+ placeholder?: 'blur' | 'empty';
40
+ blurDataURL?: string;
41
+ }
@@ -0,0 +1,8 @@
1
+ interface CarouselControlsProps {
2
+ currentPage: number;
3
+ pageCount: number;
4
+ onPageChange: (page: number) => void;
5
+ className?: string;
6
+ }
7
+ export default function CarouselControls({ currentPage, pageCount, onPageChange, className, }: CarouselControlsProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import "react/jsx-runtime";
2
+ import "../Flex/Flex.js";
3
+ import "../../utils/clsx.js";
4
+ import "../IconButton/IconButton.js";
5
+ import { C as a } from "../../CarouselControls-CJ3tupLr.js";
6
+ export {
7
+ a as default
8
+ };
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ import { CarouselItemData, ImageComponentProps } from './Carousel.types';
3
+
4
+ interface CarouselItemProps {
5
+ item: CarouselItemData;
6
+ index: number;
7
+ onClick?: (index: number) => void;
8
+ ImageComponent: React.ComponentType<ImageComponentProps>;
9
+ }
10
+ declare function CarouselItem({ item, index, onClick, ImageComponent, }: CarouselItemProps): import("react/jsx-runtime").JSX.Element;
11
+ export default CarouselItem;
@@ -0,0 +1,85 @@
1
+ import { jsx as l, jsxs as d } from "react/jsx-runtime";
2
+ import i from "react";
3
+ import { Interactive as u } from "../Interactive/Interactive.js";
4
+ import { clsx as p } from "../../utils/clsx.js";
5
+ import b from "./playIcon.js";
6
+ const y = "cfxui__CarouselItem__slideWrapper__ce3bc", f = "cfxui__CarouselItem__clickable__1b1df", h = "cfxui__CarouselItem__playButtonOverlay__124b4", I = "cfxui__CarouselItem__playIcon__ecb3e", m = "cfxui__CarouselItem__slideImg__a8fc1", g = "cfxui__CarouselItem__slideVideo__d039c", a = {
7
+ slideWrapper: y,
8
+ clickable: f,
9
+ default: "cfxui__CarouselItem__default__860c3",
10
+ playButtonOverlay: h,
11
+ playIcon: I,
12
+ slideImg: m,
13
+ slideVideo: g
14
+ };
15
+ function x({
16
+ item: e,
17
+ ImageComponent: t
18
+ }) {
19
+ return e.type === "image" ? /* @__PURE__ */ l(
20
+ t,
21
+ {
22
+ src: e.src,
23
+ alt: e.alt ?? `Image ${e.id}`,
24
+ width: e.width,
25
+ height: e.height,
26
+ placeholder: e.blurDataURL ? "blur" : "empty",
27
+ blurDataURL: e.blurDataURL,
28
+ className: a.slideImg
29
+ }
30
+ ) : e.type === "video" ? /* @__PURE__ */ l(
31
+ t,
32
+ {
33
+ src: e.thumbnail || "/missing_image.png",
34
+ alt: e.alt ?? `Video ${e.id}`,
35
+ width: e.width,
36
+ height: e.height,
37
+ placeholder: e.blurDataURL ? "blur" : "empty",
38
+ blurDataURL: e.blurDataURL,
39
+ className: a.slideVideo
40
+ }
41
+ ) : null;
42
+ }
43
+ function L({
44
+ item: e,
45
+ index: t,
46
+ onClick: r,
47
+ ImageComponent: _
48
+ }) {
49
+ const o = i.useCallback(() => {
50
+ r == null || r(t);
51
+ }, [t, r]), s = i.useCallback((n) => {
52
+ (n.key === "Enter" || n.key === " ") && o();
53
+ }, [o]), c = p(
54
+ a.slideWrapper,
55
+ r ? a.clickable : a.default
56
+ );
57
+ return e.type === "component" ? /* @__PURE__ */ l(
58
+ u,
59
+ {
60
+ className: c,
61
+ onClick: o,
62
+ onKeyDown: s,
63
+ role: "button",
64
+ tabIndex: 0,
65
+ children: e.component
66
+ }
67
+ ) : /* @__PURE__ */ d(
68
+ u,
69
+ {
70
+ className: c,
71
+ onClick: o,
72
+ onKeyDown: s,
73
+ role: "button",
74
+ tabIndex: 0,
75
+ "aria-label": e.type === "video" ? "Open video in lightbox" : "Open image in lightbox",
76
+ children: [
77
+ /* @__PURE__ */ l(x, { item: e, ImageComponent: _ }),
78
+ e.type === "video" && /* @__PURE__ */ l("div", { className: a.playButtonOverlay, children: /* @__PURE__ */ l(b, { className: a.playIcon }) })
79
+ ]
80
+ }
81
+ );
82
+ }
83
+ export {
84
+ L as default
85
+ };
@@ -0,0 +1,6 @@
1
+ import { CarouselItemData } from './Carousel.types';
2
+
3
+ declare const items: CarouselItemData[];
4
+ declare function CarouselShowcase(): import("react/jsx-runtime").JSX.Element;
5
+ export default CarouselShowcase;
6
+ export { items };
@@ -0,0 +1,177 @@
1
+ import { jsxs as m, jsx as t } from "react/jsx-runtime";
2
+ import { useState as d, useCallback as r } from "react";
3
+ import l from "../Flex/Flex.js";
4
+ import u from "./Carousel.js";
5
+ import { s as c } from "../../CarouselControls-CJ3tupLr.js";
6
+ const g = [
7
+ {
8
+ id: "1",
9
+ type: "image",
10
+ src: "https://picsum.photos/400/225?1",
11
+ alt: "Image 1"
12
+ },
13
+ {
14
+ id: "2",
15
+ type: "image",
16
+ src: "https://picsum.photos/400/225?2",
17
+ alt: "Image 2"
18
+ },
19
+ {
20
+ id: "3",
21
+ type: "video",
22
+ videoUrl: "https://example.com/video.mp4",
23
+ thumbnail: "https://picsum.photos/400/225?3",
24
+ alt: "Video 1"
25
+ },
26
+ {
27
+ id: "4",
28
+ type: "image",
29
+ src: "https://picsum.photos/400/225?4",
30
+ alt: "Image 4"
31
+ },
32
+ {
33
+ id: "5",
34
+ type: "image",
35
+ src: "https://picsum.photos/400/225?5",
36
+ alt: "Image 5"
37
+ },
38
+ {
39
+ id: "6",
40
+ type: "image",
41
+ src: "https://picsum.photos/400/225?6",
42
+ alt: "Image 6"
43
+ },
44
+ {
45
+ id: "7",
46
+ type: "video",
47
+ videoUrl: "https://example.com/video2.mp4",
48
+ thumbnail: "https://picsum.photos/400/225?7",
49
+ alt: "Video 2"
50
+ },
51
+ {
52
+ id: "8",
53
+ type: "image",
54
+ src: "https://picsum.photos/400/225?8",
55
+ alt: "Image 8"
56
+ },
57
+ {
58
+ id: "9",
59
+ type: "image",
60
+ src: "https://picsum.photos/400/225?9",
61
+ alt: "Image 9"
62
+ },
63
+ {
64
+ id: "10",
65
+ type: "image",
66
+ src: "https://picsum.photos/400/225?10",
67
+ alt: "Image 10"
68
+ },
69
+ {
70
+ id: "1",
71
+ type: "image",
72
+ src: "https://picsum.photos/400/225?1",
73
+ alt: "Image 1"
74
+ },
75
+ {
76
+ id: "2",
77
+ type: "image",
78
+ src: "https://picsum.photos/400/225?2",
79
+ alt: "Image 2"
80
+ },
81
+ {
82
+ id: "3",
83
+ type: "video",
84
+ videoUrl: "https://example.com/video.mp4",
85
+ thumbnail: "https://picsum.photos/400/225?3",
86
+ alt: "Video 1"
87
+ },
88
+ {
89
+ id: "4",
90
+ type: "image",
91
+ src: "https://picsum.photos/400/225?4",
92
+ alt: "Image 4"
93
+ },
94
+ {
95
+ id: "5",
96
+ type: "image",
97
+ src: "https://picsum.photos/400/225?5",
98
+ alt: "Image 5"
99
+ },
100
+ {
101
+ id: "6",
102
+ type: "image",
103
+ src: "https://picsum.photos/400/225?6",
104
+ alt: "Image 6"
105
+ },
106
+ {
107
+ id: "7",
108
+ type: "video",
109
+ videoUrl: "https://example.com/video2.mp4",
110
+ thumbnail: "https://picsum.photos/400/225?7",
111
+ alt: "Video 2"
112
+ },
113
+ {
114
+ id: "8",
115
+ type: "image",
116
+ src: "https://picsum.photos/400/225?8",
117
+ alt: "Image 8"
118
+ },
119
+ {
120
+ id: "9",
121
+ type: "image",
122
+ src: "https://picsum.photos/400/225?9",
123
+ alt: "Image 9"
124
+ },
125
+ {
126
+ id: "10",
127
+ type: "image",
128
+ src: "https://picsum.photos/400/225?10",
129
+ alt: "Image 10"
130
+ }
131
+ ];
132
+ function n({
133
+ src: e,
134
+ alt: s,
135
+ width: o,
136
+ height: i,
137
+ className: p
138
+ }) {
139
+ return /* @__PURE__ */ t("img", { src: e, alt: s, width: o, height: i, className: p, style: { objectFit: "cover" } });
140
+ }
141
+ function h({
142
+ visibleItems: e
143
+ }) {
144
+ const [s, o] = d(0), i = r((a) => o(a), []), p = r((a) => console.log("Clicked item", a), []);
145
+ return /* @__PURE__ */ t(
146
+ u,
147
+ {
148
+ items: g,
149
+ ImageComponent: n,
150
+ visibleItems: e,
151
+ showDots: !0,
152
+ showControlsBottom: !0,
153
+ trackClassName: c.carouselTrack,
154
+ className: c.carousel,
155
+ controlsClassName: c.controls,
156
+ currentPage: s,
157
+ onPageChange: i,
158
+ onItemClick: p
159
+ }
160
+ );
161
+ }
162
+ function x() {
163
+ return /* @__PURE__ */ m(l, { direction: "column", gap: "large", children: [
164
+ /* @__PURE__ */ m(l, { direction: "column", gap: "small", children: [
165
+ /* @__PURE__ */ t("h4", { children: "Default Full Width (Responsive)" }),
166
+ /* @__PURE__ */ t(h, {})
167
+ ] }),
168
+ /* @__PURE__ */ m(l, { direction: "column", gap: "small", children: [
169
+ /* @__PURE__ */ t("h4", { children: "Fixed Width Parent" }),
170
+ /* @__PURE__ */ t("div", { style: { width: 800 }, children: /* @__PURE__ */ t(h, {}) })
171
+ ] })
172
+ ] });
173
+ }
174
+ export {
175
+ x as default,
176
+ g as items
177
+ };
@@ -0,0 +1,4 @@
1
+ export { default as Carousel } from './Carousel';
2
+ export { default as CarouselControls } from './CarouselControls';
3
+ export type { CarouselItemData } from './Carousel.types';
4
+ export type { CarouselProps } from './Carousel';
@@ -0,0 +1,6 @@
1
+ import { default as a } from "./Carousel.js";
2
+ import { C as s } from "../../CarouselControls-CJ3tupLr.js";
3
+ export {
4
+ a as Carousel,
5
+ s as CarouselControls
6
+ };
@@ -0,0 +1,6 @@
1
+ interface PlayIconProps {
2
+ className?: string;
3
+ fill?: string;
4
+ }
5
+ declare function PlayIcon({ className, fill, }: PlayIconProps): import("react/jsx-runtime").JSX.Element;
6
+ export default PlayIcon;
@@ -0,0 +1,25 @@
1
+ import { jsx as C } from "react/jsx-runtime";
2
+ function t({
3
+ className: e,
4
+ fill: n = "#F1F1E4"
5
+ }) {
6
+ return /* @__PURE__ */ C(
7
+ "svg",
8
+ {
9
+ className: e,
10
+ viewBox: "0 0 62 66",
11
+ fill: "none",
12
+ xmlns: "http://www.w3.org/2000/svg",
13
+ children: /* @__PURE__ */ C(
14
+ "path",
15
+ {
16
+ d: "M58.7027 27.599L10.2747 0.846534C9.23892 0.29496 8.06461 0.00311084 6.86857 2.23594e-05C5.67252 -0.00306612 4.49645 0.282713 3.45735 0.82893C2.41825 1.37515 1.55234 2.16276 0.945782 3.11341C0.339222 4.06406 0.0131452 5.14461 -2.73089e-07 6.24756L-2.61186e-06 59.7524C0.0131428 60.8554 0.339219 61.9359 0.945779 62.8866C1.55234 63.8372 2.41824 64.6248 3.45735 65.1711C4.49645 65.7173 5.67252 66.0031 6.86857 66C8.06461 65.9969 9.23892 65.705 10.2747 65.1535L58.7027 38.401C59.7093 37.838 60.5415 37.0452 61.119 36.0991C61.6966 35.153 62 34.0857 62 33C62 31.9143 61.6966 30.847 61.119 29.9009C60.5415 28.9548 59.7093 28.162 58.7027 27.599Z",
17
+ fill: n
18
+ }
19
+ )
20
+ }
21
+ );
22
+ }
23
+ export {
24
+ t as default
25
+ };
@@ -1,9 +1,9 @@
1
1
  import { jsx as m, jsxs as U, Fragment as V } from "react/jsx-runtime";
2
2
  import * as f from "react";
3
3
  import R from "react";
4
- import { c as W, P as w, u as Y, b as A, a as T, d as Z } from "../../index-CfQtbUfi.js";
4
+ import { P as w, u as W, a as A, c as T, b as Y, d as Z } from "../../index-8cuIcSMB.js";
5
5
  import { u as ee } from "../../index-BZPx6jYI.js";
6
- import { P as oe } from "../../index-3ctv5u9o.js";
6
+ import { P as oe } from "../../index-DwdZ_SPo.js";
7
7
  import "../Icons/cfx-icons/Close.js";
8
8
  import "../Icons/cfx-icons/Controller.js";
9
9
  import "../Icons/cfx-icons/Copy.js";
@@ -110,7 +110,7 @@ import "../Icons/cfx-iconsXLarge/UpvotesBurst.js";
110
110
  import "../Icons/cfx-iconsXLarge/UpvotesRecurring.js";
111
111
  import { clsx as P } from "../../utils/clsx.js";
112
112
  import { getColor as ie } from "../../utils/color.js";
113
- var q = "Checkbox", [ce, yt] = W(q), [ne, F] = ce(q);
113
+ var q = "Checkbox", [ce] = Z(q), [ne, F] = ce(q);
114
114
  function se(o) {
115
115
  const {
116
116
  __scopeCheckbox: a,
@@ -125,7 +125,7 @@ function se(o) {
125
125
  value: x = "on",
126
126
  // @ts-expect-error
127
127
  internal_do_not_use_render: u
128
- } = o, [n, y] = Y({
128
+ } = o, [n, y] = W({
129
129
  prop: c,
130
130
  defaultProp: r ?? !1,
131
131
  onChange: d,
@@ -285,7 +285,7 @@ var $ = "CheckboxBubbleInput", G = f.forwardRef(
285
285
  form: u,
286
286
  bubbleInput: n,
287
287
  setBubbleInput: y
288
- } = F($, o), l = A(c, y), k = ee(e), C = Z(p);
288
+ } = F($, o), l = A(c, y), k = ee(e), C = Y(p);
289
289
  f.useEffect(() => {
290
290
  const t = n;
291
291
  if (!t) return;
@@ -440,7 +440,7 @@ function ke(o) {
440
440
  }
441
441
  );
442
442
  }
443
- const Nt = R.memo(ke);
443
+ const yt = R.memo(ke);
444
444
  export {
445
- Nt as default
445
+ yt as default
446
446
  };
@@ -106,12 +106,12 @@ import "../Icons/cfx-iconsXLarge/Verified.js";
106
106
  import "../Icons/cfx-iconsXLarge/UpvotesBurst.js";
107
107
  import "../Icons/cfx-iconsXLarge/UpvotesRecurring.js";
108
108
  import t from "./Checkbox.js";
109
- const h = "cfxui__CheckboxShowcase__root__5c0e0", d = "cfxui__CheckboxShowcase__checked__e49f9", s = "cfxui__CheckboxShowcase__icon__686ec", m = {
110
- root: h,
111
- checked: d,
109
+ const d = "cfxui__CheckboxShowcase__root__5c0e0", h = "cfxui__CheckboxShowcase__checked__e49f9", s = "cfxui__CheckboxShowcase__icon__686ec", m = {
110
+ root: d,
111
+ checked: h,
112
112
  icon: s
113
113
  };
114
- function ki(l) {
114
+ function _i(l) {
115
115
  const [e, p] = a.useState(!1);
116
116
  return /* @__PURE__ */ i(r, { direction: "column", gap: "large", children: [
117
117
  /* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
@@ -170,5 +170,5 @@ function ki(l) {
170
170
  ] });
171
171
  }
172
172
  export {
173
- ki as default
173
+ _i as default
174
174
  };
@@ -7,7 +7,7 @@ import { Title as f } from "../Title/Title.js";
7
7
  import { noop as u } from "../../utils/functional.js";
8
8
  import "../../utils/hooks/useGlobalKeyboardEvent.js";
9
9
  import "../../utils/hooks/useKeyboardClose.js";
10
- import "../../index-Cl_RnsqN.js";
10
+ import "../../index-CUyjBl1Y.js";
11
11
  import { useClipboardComponent as b } from "../../utils/hooks/useClipboardComponent.js";
12
12
  const x = "cfxui__ClipboardButton__root__e8251", k = "cfxui__ClipboardButton__copied__6e0b9", e = {
13
13
  root: x,
@@ -18,27 +18,27 @@ function h(o) {
18
18
  hoverTitle: B,
19
19
  copiedTitle: T,
20
20
  textToCopy: j,
21
- fixedOn: n,
21
+ fixedOn: l,
22
22
  onClick: t = u,
23
- ...p
23
+ ...n
24
24
  } = o, {
25
- copied: l,
25
+ copied: p,
26
26
  handleClick: i,
27
27
  title: m
28
28
  } = b(o), d = c.useCallback((s) => {
29
29
  t(s), i();
30
- }, [i, t]), a = _(e.root, { [e.copied]: l });
30
+ }, [i, t]), a = _(e.root, { [e.copied]: p });
31
31
  return /* @__PURE__ */ r(
32
32
  f,
33
33
  {
34
34
  title: m,
35
- fixedOn: n,
35
+ fixedOn: l,
36
36
  rootClassName: a,
37
- children: /* @__PURE__ */ r(C, { ...p, onClick: d })
37
+ children: /* @__PURE__ */ r(C, { ...n, onClick: d })
38
38
  }
39
39
  );
40
40
  }
41
- const A = c.memo(h);
41
+ const D = c.memo(h);
42
42
  export {
43
- A as default
43
+ D as default
44
44
  };