@endora-commerce/cms-components 0.100.0

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 (300) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +59 -0
  3. package/dist/cms-components.css +2 -0
  4. package/dist/components/Accordion.d.ts +43 -0
  5. package/dist/components/Accordion.d.ts.map +1 -0
  6. package/dist/components/Accordion.js +81 -0
  7. package/dist/components/Accordion.js.map +1 -0
  8. package/dist/components/AnnouncementBar.d.ts +43 -0
  9. package/dist/components/AnnouncementBar.d.ts.map +1 -0
  10. package/dist/components/AnnouncementBar.js +27 -0
  11. package/dist/components/AnnouncementBar.js.map +1 -0
  12. package/dist/components/Button.d.ts +43 -0
  13. package/dist/components/Button.d.ts.map +1 -0
  14. package/dist/components/Button.js +122 -0
  15. package/dist/components/Button.js.map +1 -0
  16. package/dist/components/CategoryGrid.d.ts +43 -0
  17. package/dist/components/CategoryGrid.d.ts.map +1 -0
  18. package/dist/components/CategoryGrid.js +117 -0
  19. package/dist/components/CategoryGrid.js.map +1 -0
  20. package/dist/components/CategoryList.d.ts +43 -0
  21. package/dist/components/CategoryList.d.ts.map +1 -0
  22. package/dist/components/CategoryList.js +96 -0
  23. package/dist/components/CategoryList.js.map +1 -0
  24. package/dist/components/CmsPageContainer.d.ts +12 -0
  25. package/dist/components/CmsPageContainer.d.ts.map +1 -0
  26. package/dist/components/CmsPageContainer.js +19 -0
  27. package/dist/components/CmsPageContainer.js.map +1 -0
  28. package/dist/components/CmsProductCard.d.ts +35 -0
  29. package/dist/components/CmsProductCard.d.ts.map +1 -0
  30. package/dist/components/CmsProductCard.js +101 -0
  31. package/dist/components/CmsProductCard.js.map +1 -0
  32. package/dist/components/Column.d.ts +50 -0
  33. package/dist/components/Column.d.ts.map +1 -0
  34. package/dist/components/Column.js +127 -0
  35. package/dist/components/Column.js.map +1 -0
  36. package/dist/components/ContactFormEmbed.d.ts +43 -0
  37. package/dist/components/ContactFormEmbed.d.ts.map +1 -0
  38. package/dist/components/ContactFormEmbed.js +37 -0
  39. package/dist/components/ContactFormEmbed.js.map +1 -0
  40. package/dist/components/ContentSlider.d.ts +43 -0
  41. package/dist/components/ContentSlider.d.ts.map +1 -0
  42. package/dist/components/ContentSlider.js +96 -0
  43. package/dist/components/ContentSlider.js.map +1 -0
  44. package/dist/components/FeatureList.d.ts +43 -0
  45. package/dist/components/FeatureList.d.ts.map +1 -0
  46. package/dist/components/FeatureList.js +89 -0
  47. package/dist/components/FeatureList.js.map +1 -0
  48. package/dist/components/Heading.d.ts +43 -0
  49. package/dist/components/Heading.d.ts.map +1 -0
  50. package/dist/components/Heading.js +116 -0
  51. package/dist/components/Heading.js.map +1 -0
  52. package/dist/components/Hero.d.ts +43 -0
  53. package/dist/components/Hero.d.ts.map +1 -0
  54. package/dist/components/Hero.js +186 -0
  55. package/dist/components/Hero.js.map +1 -0
  56. package/dist/components/IconPickerField.d.ts +3 -0
  57. package/dist/components/IconPickerField.d.ts.map +1 -0
  58. package/dist/components/IconPickerField.js +30 -0
  59. package/dist/components/IconPickerField.js.map +1 -0
  60. package/dist/components/Icons.d.ts +43 -0
  61. package/dist/components/Icons.d.ts.map +1 -0
  62. package/dist/components/Icons.js +62 -0
  63. package/dist/components/Icons.js.map +1 -0
  64. package/dist/components/Image.d.ts +43 -0
  65. package/dist/components/Image.d.ts.map +1 -0
  66. package/dist/components/Image.js +179 -0
  67. package/dist/components/Image.js.map +1 -0
  68. package/dist/components/ImageSlider.d.ts +44 -0
  69. package/dist/components/ImageSlider.d.ts.map +1 -0
  70. package/dist/components/ImageSlider.js +186 -0
  71. package/dist/components/ImageSlider.js.map +1 -0
  72. package/dist/components/InsertBlock.d.ts +4 -0
  73. package/dist/components/InsertBlock.d.ts.map +1 -0
  74. package/dist/components/InsertBlock.js +30 -0
  75. package/dist/components/InsertBlock.js.map +1 -0
  76. package/dist/components/InsertTemplate.d.ts +4 -0
  77. package/dist/components/InsertTemplate.d.ts.map +1 -0
  78. package/dist/components/InsertTemplate.js +30 -0
  79. package/dist/components/InsertTemplate.js.map +1 -0
  80. package/dist/components/LogoStrip.d.ts +43 -0
  81. package/dist/components/LogoStrip.d.ts.map +1 -0
  82. package/dist/components/LogoStrip.js +155 -0
  83. package/dist/components/LogoStrip.js.map +1 -0
  84. package/dist/components/Map.d.ts +43 -0
  85. package/dist/components/Map.d.ts.map +1 -0
  86. package/dist/components/Map.js +165 -0
  87. package/dist/components/Map.js.map +1 -0
  88. package/dist/components/MissingComponentPlaceholder.d.ts +27 -0
  89. package/dist/components/MissingComponentPlaceholder.d.ts.map +1 -0
  90. package/dist/components/MissingComponentPlaceholder.js +24 -0
  91. package/dist/components/MissingComponentPlaceholder.js.map +1 -0
  92. package/dist/components/NewsletterSignup.d.ts +43 -0
  93. package/dist/components/NewsletterSignup.d.ts.map +1 -0
  94. package/dist/components/NewsletterSignup.js +43 -0
  95. package/dist/components/NewsletterSignup.js.map +1 -0
  96. package/dist/components/ProductCard.d.ts +43 -0
  97. package/dist/components/ProductCard.d.ts.map +1 -0
  98. package/dist/components/ProductCard.js +96 -0
  99. package/dist/components/ProductCard.js.map +1 -0
  100. package/dist/components/ProductGrid.d.ts +43 -0
  101. package/dist/components/ProductGrid.d.ts.map +1 -0
  102. package/dist/components/ProductGrid.js +138 -0
  103. package/dist/components/ProductGrid.js.map +1 -0
  104. package/dist/components/ProductSlider.d.ts +43 -0
  105. package/dist/components/ProductSlider.d.ts.map +1 -0
  106. package/dist/components/ProductSlider.js +134 -0
  107. package/dist/components/ProductSlider.js.map +1 -0
  108. package/dist/components/RawHtml.d.ts +43 -0
  109. package/dist/components/RawHtml.d.ts.map +1 -0
  110. package/dist/components/RawHtml.js +38 -0
  111. package/dist/components/RawHtml.js.map +1 -0
  112. package/dist/components/RawJs.d.ts +43 -0
  113. package/dist/components/RawJs.d.ts.map +1 -0
  114. package/dist/components/RawJs.js +53 -0
  115. package/dist/components/RawJs.js.map +1 -0
  116. package/dist/components/RichContent.d.ts +4 -0
  117. package/dist/components/RichContent.d.ts.map +1 -0
  118. package/dist/components/RichContent.js +48 -0
  119. package/dist/components/RichContent.js.map +1 -0
  120. package/dist/components/RichContentEditorField.d.ts +10 -0
  121. package/dist/components/RichContentEditorField.d.ts.map +1 -0
  122. package/dist/components/RichContentEditorField.js +130 -0
  123. package/dist/components/RichContentEditorField.js.map +1 -0
  124. package/dist/components/RichContentPublished.d.ts +5 -0
  125. package/dist/components/RichContentPublished.d.ts.map +1 -0
  126. package/dist/components/RichContentPublished.js +22 -0
  127. package/dist/components/RichContentPublished.js.map +1 -0
  128. package/dist/components/Row.d.ts +43 -0
  129. package/dist/components/Row.d.ts.map +1 -0
  130. package/dist/components/Row.js +305 -0
  131. package/dist/components/Row.js.map +1 -0
  132. package/dist/components/SimpleTable.d.ts +43 -0
  133. package/dist/components/SimpleTable.d.ts.map +1 -0
  134. package/dist/components/SimpleTable.js +155 -0
  135. package/dist/components/SimpleTable.js.map +1 -0
  136. package/dist/components/Slide.d.ts +44 -0
  137. package/dist/components/Slide.d.ts.map +1 -0
  138. package/dist/components/Slide.js +36 -0
  139. package/dist/components/Slide.js.map +1 -0
  140. package/dist/components/Social.d.ts +43 -0
  141. package/dist/components/Social.d.ts.map +1 -0
  142. package/dist/components/Social.js +110 -0
  143. package/dist/components/Social.js.map +1 -0
  144. package/dist/components/Spacer.d.ts +43 -0
  145. package/dist/components/Spacer.d.ts.map +1 -0
  146. package/dist/components/Spacer.js +48 -0
  147. package/dist/components/Spacer.js.map +1 -0
  148. package/dist/components/Stats.d.ts +43 -0
  149. package/dist/components/Stats.d.ts.map +1 -0
  150. package/dist/components/Stats.js +71 -0
  151. package/dist/components/Stats.js.map +1 -0
  152. package/dist/components/Tabs.d.ts +43 -0
  153. package/dist/components/Tabs.d.ts.map +1 -0
  154. package/dist/components/Tabs.js +70 -0
  155. package/dist/components/Tabs.js.map +1 -0
  156. package/dist/components/Testimonial.d.ts +43 -0
  157. package/dist/components/Testimonial.d.ts.map +1 -0
  158. package/dist/components/Testimonial.js +74 -0
  159. package/dist/components/Testimonial.js.map +1 -0
  160. package/dist/components/Text.d.ts +43 -0
  161. package/dist/components/Text.d.ts.map +1 -0
  162. package/dist/components/Text.js +87 -0
  163. package/dist/components/Text.js.map +1 -0
  164. package/dist/components/Video.d.ts +43 -0
  165. package/dist/components/Video.d.ts.map +1 -0
  166. package/dist/components/Video.js +98 -0
  167. package/dist/components/Video.js.map +1 -0
  168. package/dist/components/box-styles.d.ts +19 -0
  169. package/dist/components/box-styles.d.ts.map +1 -0
  170. package/dist/components/box-styles.js +66 -0
  171. package/dist/components/box-styles.js.map +1 -0
  172. package/dist/components/button-link.d.ts +7 -0
  173. package/dist/components/button-link.d.ts.map +1 -0
  174. package/dist/components/button-link.js +15 -0
  175. package/dist/components/button-link.js.map +1 -0
  176. package/dist/components/carousel/CarouselShell.d.ts +27 -0
  177. package/dist/components/carousel/CarouselShell.d.ts.map +1 -0
  178. package/dist/components/carousel/CarouselShell.js +210 -0
  179. package/dist/components/carousel/CarouselShell.js.map +1 -0
  180. package/dist/components/catalog/CatalogSkeletons.d.ts +27 -0
  181. package/dist/components/catalog/CatalogSkeletons.d.ts.map +1 -0
  182. package/dist/components/catalog/CatalogSkeletons.js +38 -0
  183. package/dist/components/catalog/CatalogSkeletons.js.map +1 -0
  184. package/dist/components/catalog-preview-context.d.ts +9 -0
  185. package/dist/components/catalog-preview-context.d.ts.map +1 -0
  186. package/dist/components/catalog-preview-context.js +18 -0
  187. package/dist/components/catalog-preview-context.js.map +1 -0
  188. package/dist/components/icon-catalog.d.ts +139 -0
  189. package/dist/components/icon-catalog.d.ts.map +1 -0
  190. package/dist/components/icon-catalog.js +148 -0
  191. package/dist/components/icon-catalog.js.map +1 -0
  192. package/dist/components/image-fields.d.ts +6 -0
  193. package/dist/components/image-fields.d.ts.map +1 -0
  194. package/dist/components/image-fields.js +11 -0
  195. package/dist/components/image-fields.js.map +1 -0
  196. package/dist/components/image-slider-item.d.ts +7 -0
  197. package/dist/components/image-slider-item.d.ts.map +1 -0
  198. package/dist/components/image-slider-item.js +45 -0
  199. package/dist/components/image-slider-item.js.map +1 -0
  200. package/dist/components/render-context.d.ts +29 -0
  201. package/dist/components/render-context.d.ts.map +1 -0
  202. package/dist/components/render-context.js +21 -0
  203. package/dist/components/render-context.js.map +1 -0
  204. package/dist/components/rich-content-shared.d.ts +11 -0
  205. package/dist/components/rich-content-shared.d.ts.map +1 -0
  206. package/dist/components/rich-content-shared.js +132 -0
  207. package/dist/components/rich-content-shared.js.map +1 -0
  208. package/dist/components/social-networks.d.ts +10 -0
  209. package/dist/components/social-networks.d.ts.map +1 -0
  210. package/dist/components/social-networks.js +43 -0
  211. package/dist/components/social-networks.js.map +1 -0
  212. package/dist/components/styles.d.ts +2 -0
  213. package/dist/components/styles.d.ts.map +1 -0
  214. package/dist/components/styles.js +9 -0
  215. package/dist/components/styles.js.map +1 -0
  216. package/dist/components/text-content.d.ts +13 -0
  217. package/dist/components/text-content.d.ts.map +1 -0
  218. package/dist/components/text-content.js +64 -0
  219. package/dist/components/text-content.js.map +1 -0
  220. package/dist/components/typography.d.ts +26 -0
  221. package/dist/components/typography.d.ts.map +1 -0
  222. package/dist/components/typography.js +52 -0
  223. package/dist/components/typography.js.map +1 -0
  224. package/dist/editor/row-layout-presets.d.ts +34 -0
  225. package/dist/editor/row-layout-presets.d.ts.map +1 -0
  226. package/dist/editor/row-layout-presets.js +175 -0
  227. package/dist/editor/row-layout-presets.js.map +1 -0
  228. package/dist/editor/slot-edit-props.d.ts +16 -0
  229. package/dist/editor/slot-edit-props.d.ts.map +1 -0
  230. package/dist/editor/slot-edit-props.js +25 -0
  231. package/dist/editor/slot-edit-props.js.map +1 -0
  232. package/dist/fields/catalog-data-fields.d.ts +7 -0
  233. package/dist/fields/catalog-data-fields.d.ts.map +1 -0
  234. package/dist/fields/catalog-data-fields.js +4 -0
  235. package/dist/fields/catalog-data-fields.js.map +1 -0
  236. package/dist/fields/catalog-fallback-fields.d.ts +4 -0
  237. package/dist/fields/catalog-fallback-fields.d.ts.map +1 -0
  238. package/dist/fields/catalog-fallback-fields.js +34 -0
  239. package/dist/fields/catalog-fallback-fields.js.map +1 -0
  240. package/dist/fields/catalog-resolve-fields.d.ts +5 -0
  241. package/dist/fields/catalog-resolve-fields.d.ts.map +1 -0
  242. package/dist/fields/catalog-resolve-fields.js +40 -0
  243. package/dist/fields/catalog-resolve-fields.js.map +1 -0
  244. package/dist/fields/shared-fields.d.ts +176 -0
  245. package/dist/fields/shared-fields.d.ts.map +1 -0
  246. package/dist/fields/shared-fields.js +142 -0
  247. package/dist/fields/shared-fields.js.map +1 -0
  248. package/dist/hooks/use-viewport-breakpoint-tier.d.ts +4 -0
  249. package/dist/hooks/use-viewport-breakpoint-tier.d.ts.map +1 -0
  250. package/dist/hooks/use-viewport-breakpoint-tier.js +21 -0
  251. package/dist/hooks/use-viewport-breakpoint-tier.js.map +1 -0
  252. package/dist/index.d.ts +127 -0
  253. package/dist/index.d.ts.map +1 -0
  254. package/dist/index.js +377 -0
  255. package/dist/index.js.map +1 -0
  256. package/dist/schema/catalog-types.d.ts +22 -0
  257. package/dist/schema/catalog-types.d.ts.map +1 -0
  258. package/dist/schema/catalog-types.js +2 -0
  259. package/dist/schema/catalog-types.js.map +1 -0
  260. package/dist/schema/component-types.d.ts +419 -0
  261. package/dist/schema/component-types.d.ts.map +1 -0
  262. package/dist/schema/component-types.js +2 -0
  263. package/dist/schema/component-types.js.map +1 -0
  264. package/dist/schema/envelope.d.ts +21 -0
  265. package/dist/schema/envelope.d.ts.map +1 -0
  266. package/dist/schema/envelope.js +19 -0
  267. package/dist/schema/envelope.js.map +1 -0
  268. package/dist/utils/catalog-fetch.d.ts +29 -0
  269. package/dist/utils/catalog-fetch.d.ts.map +1 -0
  270. package/dist/utils/catalog-fetch.js +88 -0
  271. package/dist/utils/catalog-fetch.js.map +1 -0
  272. package/dist/utils/catalog-load.d.ts +4 -0
  273. package/dist/utils/catalog-load.d.ts.map +1 -0
  274. package/dist/utils/catalog-load.js +11 -0
  275. package/dist/utils/catalog-load.js.map +1 -0
  276. package/dist/utils/catalog-preview-bridge.d.ts +13 -0
  277. package/dist/utils/catalog-preview-bridge.d.ts.map +1 -0
  278. package/dist/utils/catalog-preview-bridge.js +8 -0
  279. package/dist/utils/catalog-preview-bridge.js.map +1 -0
  280. package/dist/utils/catalog-skeleton-estimate.d.ts +7 -0
  281. package/dist/utils/catalog-skeleton-estimate.d.ts.map +1 -0
  282. package/dist/utils/catalog-skeleton-estimate.js +42 -0
  283. package/dist/utils/catalog-skeleton-estimate.js.map +1 -0
  284. package/dist/utils/resolve-image-url.d.ts +20 -0
  285. package/dist/utils/resolve-image-url.d.ts.map +1 -0
  286. package/dist/utils/resolve-image-url.js +24 -0
  287. package/dist/utils/resolve-image-url.js.map +1 -0
  288. package/dist/utils/sanitize-html.d.ts +6 -0
  289. package/dist/utils/sanitize-html.d.ts.map +1 -0
  290. package/dist/utils/sanitize-html.js +81 -0
  291. package/dist/utils/sanitize-html.js.map +1 -0
  292. package/dist/utils/video-embed.d.ts +11 -0
  293. package/dist/utils/video-embed.d.ts.map +1 -0
  294. package/dist/utils/video-embed.js +61 -0
  295. package/dist/utils/video-embed.js.map +1 -0
  296. package/dist/utils/walk-asset-ids.d.ts +3 -0
  297. package/dist/utils/walk-asset-ids.d.ts.map +1 -0
  298. package/dist/utils/walk-asset-ids.js +23 -0
  299. package/dist/utils/walk-asset-ids.js.map +1 -0
  300. package/package.json +117 -0
@@ -0,0 +1,210 @@
1
+ 'use client';
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, } from 'react';
4
+ import { setEditorCarouselPage } from '@endora-commerce/page-builder-core/editor/carousel-preview';
5
+ export function CarouselShell({ children, slidesPerView = 1, gap = 16, autoplay = false, intervalMs = 5000, showArrows = true, showDots = true, equalHeight = false, className = '', slotMode = false, editorPreview = false, previewPage = 0, editorCarouselId, editorSlideCount, }) {
6
+ const trackRef = useRef(null);
7
+ const reactId = useId().replace(/:/g, '');
8
+ const carouselUid = editorCarouselId ?? `pb-carousel-${reactId}`;
9
+ const [activePage, setActivePage] = useState(0);
10
+ const [slideCount, setSlideCount] = useState(1);
11
+ const isProgrammaticScrollRef = useRef(false);
12
+ const scrollEndTimerRef = useRef(null);
13
+ const getSlideRow = useCallback(() => {
14
+ const track = trackRef.current;
15
+ if (!track)
16
+ return null;
17
+ if (!slotMode)
18
+ return track;
19
+ const dropzone = track.querySelector('[data-puck-dropzone$=":slides"]') ??
20
+ track.querySelector('.cmsc-pb-content-slider-slot');
21
+ if (dropzone instanceof HTMLElement)
22
+ return dropzone;
23
+ const slotRoot = track.firstElementChild;
24
+ return slotRoot instanceof HTMLElement ? slotRoot : track;
25
+ }, [slotMode]);
26
+ const measureSlideCount = useCallback(() => {
27
+ if (slotMode) {
28
+ const row = getSlideRow();
29
+ if (!row)
30
+ return;
31
+ setSlideCount(Math.max(1, row.children.length));
32
+ return;
33
+ }
34
+ setSlideCount(Array.isArray(children) ? Math.max(1, children.length) : 1);
35
+ }, [getSlideRow, slotMode, children]);
36
+ const perView = Math.max(1, slidesPerView);
37
+ const measuredCount = Math.max(1, slideCount);
38
+ const effectiveSlideCount = editorPreview && typeof editorSlideCount === 'number' && editorSlideCount > 0
39
+ ? editorSlideCount
40
+ : measuredCount;
41
+ const pageCount = Math.max(1, Math.ceil(effectiveSlideCount / perView));
42
+ const showArrowControls = !editorPreview && showArrows && pageCount > 1;
43
+ const showDotControls = showDots && pageCount > 1;
44
+ const enableAutoplay = !editorPreview && autoplay && pageCount > 1;
45
+ const displayPage = editorPreview
46
+ ? Math.max(0, Math.min(previewPage, pageCount - 1))
47
+ : activePage;
48
+ const editorVisibleRange = useMemo(() => {
49
+ const start = displayPage * perView;
50
+ return { start, end: start + perView };
51
+ }, [displayPage, perView]);
52
+ /** CSS-driven hide for editor — only the slides zone, never nested Slide content. */
53
+ const editorPreviewStyle = useMemo(() => {
54
+ if (!editorPreview)
55
+ return null;
56
+ const { start, end } = editorVisibleRange;
57
+ const root = `.cmsc-pb-carousel[data-pb-carousel-uid="${CSS.escape(carouselUid)}"]`;
58
+ const slideParents = [
59
+ `${root} [data-puck-dropzone$=":slides"]`,
60
+ `${root} .cmsc-pb-content-slider-slot`,
61
+ `${root} .cmsc-pb-carousel__track--slot > *:not(.cmsc-pb-carousel__slide)`,
62
+ ];
63
+ const selectors = [];
64
+ for (const parent of slideParents) {
65
+ if (start > 0)
66
+ selectors.push(`${parent} > *:nth-child(-n+${start})`);
67
+ selectors.push(`${parent} > *:nth-child(n+${end + 1})`);
68
+ }
69
+ if (start > 0) {
70
+ selectors.push(`${root} .cmsc-pb-carousel__track > .cmsc-pb-carousel__slide:nth-child(-n+${start})`);
71
+ }
72
+ selectors.push(`${root} .cmsc-pb-carousel__track > .cmsc-pb-carousel__slide:nth-child(n+${end + 1})`);
73
+ return `${selectors.join(',\n')} { display: none !important; }`;
74
+ }, [editorPreview, editorVisibleRange, carouselUid]);
75
+ const beginProgrammaticScroll = useCallback(() => {
76
+ if (scrollEndTimerRef.current) {
77
+ clearTimeout(scrollEndTimerRef.current);
78
+ scrollEndTimerRef.current = null;
79
+ }
80
+ isProgrammaticScrollRef.current = true;
81
+ }, []);
82
+ const endProgrammaticScroll = useCallback(() => {
83
+ isProgrammaticScrollRef.current = false;
84
+ }, []);
85
+ const scheduleProgrammaticScrollEnd = useCallback(() => {
86
+ if (scrollEndTimerRef.current)
87
+ clearTimeout(scrollEndTimerRef.current);
88
+ scrollEndTimerRef.current = setTimeout(() => {
89
+ scrollEndTimerRef.current = null;
90
+ endProgrammaticScroll();
91
+ }, 400);
92
+ }, [endProgrammaticScroll]);
93
+ const syncSlideStride = useCallback(() => {
94
+ const track = trackRef.current;
95
+ if (!track || !slotMode || editorPreview)
96
+ return;
97
+ const width = track.clientWidth;
98
+ if (width <= 0)
99
+ return;
100
+ const stride = Math.max(1, width / perView - (perView > 1 ? gap / perView : 0));
101
+ track.style.setProperty('--slide-stride', `${stride}px`);
102
+ }, [slotMode, perView, editorPreview, gap]);
103
+ useLayoutEffect(() => {
104
+ measureSlideCount();
105
+ syncSlideStride();
106
+ }, [measureSlideCount, syncSlideStride, effectiveSlideCount, children]);
107
+ useEffect(() => {
108
+ const track = trackRef.current;
109
+ if (!track)
110
+ return undefined;
111
+ const ro = new ResizeObserver(() => {
112
+ measureSlideCount();
113
+ syncSlideStride();
114
+ });
115
+ ro.observe(track);
116
+ const onScrollEnd = () => {
117
+ if (!isProgrammaticScrollRef.current)
118
+ return;
119
+ if (scrollEndTimerRef.current) {
120
+ clearTimeout(scrollEndTimerRef.current);
121
+ scrollEndTimerRef.current = null;
122
+ }
123
+ endProgrammaticScroll();
124
+ };
125
+ track.addEventListener('scrollend', onScrollEnd);
126
+ const row = getSlideRow();
127
+ if (slotMode && row && row !== track) {
128
+ const mo = new MutationObserver(() => measureSlideCount());
129
+ mo.observe(row, { childList: true, subtree: false });
130
+ return () => {
131
+ ro.disconnect();
132
+ mo.disconnect();
133
+ track.removeEventListener('scrollend', onScrollEnd);
134
+ if (scrollEndTimerRef.current)
135
+ clearTimeout(scrollEndTimerRef.current);
136
+ };
137
+ }
138
+ return () => {
139
+ ro.disconnect();
140
+ track.removeEventListener('scrollend', onScrollEnd);
141
+ if (scrollEndTimerRef.current)
142
+ clearTimeout(scrollEndTimerRef.current);
143
+ };
144
+ }, [measureSlideCount, syncSlideStride, getSlideRow, slotMode, endProgrammaticScroll]);
145
+ const scrollToPage = useCallback((pageIndex, behavior = 'smooth') => {
146
+ const track = trackRef.current;
147
+ if (!track)
148
+ return;
149
+ const page = Math.max(0, Math.min(pageIndex, pageCount - 1));
150
+ const pageWidth = track.clientWidth;
151
+ if (pageWidth <= 0)
152
+ return;
153
+ const target = page * pageWidth;
154
+ beginProgrammaticScroll();
155
+ setActivePage(page);
156
+ track.scrollTo({ left: target, behavior });
157
+ if (behavior === 'instant') {
158
+ endProgrammaticScroll();
159
+ }
160
+ else {
161
+ scheduleProgrammaticScrollEnd();
162
+ }
163
+ }, [pageCount, beginProgrammaticScroll, endProgrammaticScroll, scheduleProgrammaticScrollEnd]);
164
+ const scrollByDir = useCallback((dir) => {
165
+ const next = (activePage + dir + pageCount) % pageCount;
166
+ scrollToPage(next, 'smooth');
167
+ }, [activePage, pageCount, scrollToPage]);
168
+ useEffect(() => {
169
+ setActivePage((page) => Math.min(page, pageCount - 1));
170
+ }, [pageCount, perView, effectiveSlideCount]);
171
+ const goToPage = useCallback((pageIndex, behavior = 'smooth') => {
172
+ if (editorPreview) {
173
+ if (editorCarouselId)
174
+ setEditorCarouselPage(editorCarouselId, pageIndex);
175
+ setActivePage(Math.max(0, Math.min(pageIndex, pageCount - 1)));
176
+ return;
177
+ }
178
+ scrollToPage(pageIndex, behavior);
179
+ }, [editorPreview, editorCarouselId, pageCount, scrollToPage]);
180
+ useEffect(() => {
181
+ if (!enableAutoplay)
182
+ return;
183
+ const id = window.setInterval(() => scrollByDir(1), intervalMs);
184
+ return () => window.clearInterval(id);
185
+ }, [enableAutoplay, intervalMs, pageCount, scrollByDir]);
186
+ const basis = `${100 / perView}%`;
187
+ const carouselClass = [
188
+ 'cmsc-pb-carousel',
189
+ editorPreview ? 'cmsc-pb-carousel--editor-preview' : '',
190
+ equalHeight ? 'cmsc-pb-carousel--equal-height' : '',
191
+ className,
192
+ ]
193
+ .filter(Boolean)
194
+ .join(' ');
195
+ return (_jsxs("div", { className: carouselClass, "data-pb-carousel-page": displayPage, "data-pb-carousel-uid": carouselUid, children: [editorPreviewStyle ? _jsx("style", { children: editorPreviewStyle }) : null, _jsxs("div", { className: "cmsc-pb-carousel__viewport cmsc:relative", children: [showArrowControls ? (_jsxs(_Fragment, { children: [_jsx("button", { type: "button", className: "cmsc-pb-carousel__arrow cmsc-pb-carousel__arrow--prev", "aria-label": "Previous slide", onClick: () => scrollByDir(-1), children: "\u2039" }), _jsx("button", { type: "button", className: "cmsc-pb-carousel__arrow cmsc-pb-carousel__arrow--next", "aria-label": "Next slide", onClick: () => scrollByDir(1), children: "\u203A" })] })) : null, _jsx("div", { ref: trackRef, className: `cmsc-pb-carousel__track${slotMode ? ' cmsc-pb-carousel__track--slot' : ''}`, style: {
196
+ gap: slotMode ? undefined : `${gap}px`,
197
+ ['--slide-gap']: `${gap}px`,
198
+ ['--slide-basis']: basis,
199
+ }, onScroll: (e) => {
200
+ if (editorPreview || isProgrammaticScrollRef.current)
201
+ return;
202
+ const track = e.currentTarget;
203
+ const pageWidth = track.clientWidth;
204
+ if (pageWidth <= 0)
205
+ return;
206
+ const page = Math.min(pageCount - 1, Math.round(track.scrollLeft / pageWidth));
207
+ setActivePage(page);
208
+ }, children: slotMode ? (children) : Array.isArray(children) ? (children.map((child, i) => (_jsx("div", { className: "cmsc-pb-carousel__slide", style: { flex: `0 0 calc(${basis} - ${gap * ((perView - 1) / perView)}px)` }, children: child }, i)))) : (_jsx("div", { className: "cmsc-pb-carousel__slide", style: { flex: `0 0 calc(${basis} - ${gap * ((perView - 1) / perView)}px)` }, children: children })) })] }), showDotControls ? (_jsx("div", { className: "cmsc-pb-carousel__dots", role: "tablist", children: Array.from({ length: pageCount }, (_, i) => (_jsx("button", { type: "button", role: "tab", "aria-selected": i === displayPage, "aria-label": `Page ${i + 1}`, className: `cmsc-pb-carousel__dot${i === displayPage ? ' cmsc-pb-carousel__dot--active' : ''}`, onClick: () => goToPage(i, 'instant') }, i))) })) : null] }));
209
+ }
210
+ //# sourceMappingURL=CarouselShell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarouselShell.js","sourceRoot":"","sources":["../../../src/components/carousel/CarouselShell.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EACL,WAAW,EACX,SAAS,EACT,KAAK,EACL,eAAe,EACf,OAAO,EACP,MAAM,EACN,QAAQ,GAET,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,qBAAq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,CAAC,CACzB,cAEE,SAAS,EAAC,yBAAyB,EACnC,KAAK,EAAE,EAAE,IAAI,EAAE,YAAY,KAAK,MAAM,GAAG,GAAG,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,EAAE,YAE3E,KAAK,IAJD,CAAC,CAKF,CACP,CAAC,CACH,CAAC,CAAC,CAAC,CACF,cACE,SAAS,EAAC,yBAAyB,EACnC,KAAK,EAAE,EAAE,IAAI,EAAE,YAAY,KAAK,MAAM,GAAG,GAAG,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,EAAE,YAE3E,QAAQ,GACL,CACP,GACG,IACF,EACL,eAAe,CAAC,CAAC,CAAC,CACjB,cAAK,SAAS,EAAC,wBAAwB,EAAC,IAAI,EAAC,SAAS,YACnD,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAC3C,iBAEE,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,KAAK,mBACK,CAAC,KAAK,WAAW,gBACpB,QAAQ,CAAC,GAAG,CAAC,EAAE,EAC3B,SAAS,EAAE,wBAAwB,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAC,EAAE,EAAE,EAC9F,OAAO,EAAE,GAAS,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,SAAS,CAAC,IANtC,CAAC,CAON,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { ReactElement } from 'react';
2
+ export declare function ProductCardSkeleton(): ReactElement;
3
+ type ResponsiveNumber = number | {
4
+ base: number;
5
+ tablet?: number;
6
+ desktop?: number;
7
+ };
8
+ export declare function ProductSliderSkeleton({ count, slidesPerView, gap, }: {
9
+ count?: number;
10
+ slidesPerView?: ResponsiveNumber;
11
+ gap?: ResponsiveNumber;
12
+ }): ReactElement;
13
+ export declare function ProductGridSkeleton({ count, columns, gap, }: {
14
+ count?: number;
15
+ columns?: number;
16
+ gap?: number;
17
+ }): ReactElement;
18
+ export declare function CategoryListSkeleton({ count }: {
19
+ count?: number;
20
+ }): ReactElement;
21
+ export declare function CategoryGridSkeleton({ count, columns, gap, }: {
22
+ count?: number;
23
+ columns?: number;
24
+ gap?: number;
25
+ }): ReactElement;
26
+ export {};
27
+ //# sourceMappingURL=CatalogSkeletons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CatalogSkeletons.d.ts","sourceRoot":"","sources":["../../../src/components/catalog/CatalogSkeletons.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,YAAY,EAAE,MAAM,OAAO,CAAC;AAEzD,wBAAgB,mBAAmB,IAAI,YAAY,CAclD;AAED,KAAK,gBAAgB,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAyBrF,wBAAgB,qBAAqB,CAAC,EACpC,KAAS,EACT,aAAiB,EACjB,GAAQ,GACT,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,GAAG,CAAC,EAAE,gBAAgB,CAAC;CACxB,GAAG,YAAY,CAYf;AAED,wBAAgB,mBAAmB,CAAC,EAClC,KAAS,EACT,OAAW,EACX,GAAQ,GACT,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,GAAG,YAAY,CAef;AAED,wBAAgB,oBAAoB,CAAC,EAAE,KAAS,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,CAapF;AAED,wBAAgB,oBAAoB,CAAC,EACnC,KAAS,EACT,OAAW,EACX,GAAQ,GACT,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,GAAG,YAAY,CAgBf"}
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { normalizeResponsive } from '@endora-commerce/page-builder-core';
3
+ export function ProductCardSkeleton() {
4
+ return (_jsxs("article", { className: "cmsc-pb-product-card cmsc-pb-skel-product-card", "aria-hidden": true, children: [_jsx("div", { className: "cmsc-pb-product-card__media cmsc-pb-product-card__media--square", children: _jsx("div", { className: "cmsc-pb-skel-block cmsc-pb-skel-product-card__media-fill" }) }), _jsxs("div", { className: "cmsc-pb-product-card__body", children: [_jsx("div", { className: "cmsc-pb-skel-block cmsc-pb-skel-product-card__line cmsc-pb-skel-product-card__line--sku" }), _jsx("div", { className: "cmsc-pb-skel-block cmsc-pb-skel-product-card__line cmsc-pb-skel-product-card__line--name" }), _jsx("div", { className: "cmsc-pb-skel-block cmsc-pb-skel-product-card__line cmsc-pb-skel-product-card__line--stock" }), _jsx("div", { className: "cmsc-pb-skel-block cmsc-pb-skel-product-card__line cmsc-pb-skel-product-card__line--price" })] })] }));
5
+ }
6
+ function slideBasisPercent(perView) {
7
+ return `${100 / Math.max(1, perView)}%`;
8
+ }
9
+ function skeletonTrackStyle(slidesPerView, gap) {
10
+ const slides = normalizeResponsive(slidesPerView, 1);
11
+ const gaps = normalizeResponsive(gap, 16);
12
+ const tabletSlides = slides.tablet ?? slides.base;
13
+ const desktopSlides = slides.desktop ?? tabletSlides;
14
+ const tabletGap = gaps.tablet ?? gaps.base;
15
+ const desktopGap = gaps.desktop ?? tabletGap;
16
+ return {
17
+ gap: `${gaps.base}px`,
18
+ ['--slide-basis']: slideBasisPercent(slides.base),
19
+ ['--slide-basis-md']: slideBasisPercent(tabletSlides),
20
+ ['--slide-basis-lg']: slideBasisPercent(desktopSlides),
21
+ ['--pb-skel-gap']: `${gaps.base}px`,
22
+ ['--pb-skel-gap-md']: `${tabletGap}px`,
23
+ ['--pb-skel-gap-lg']: `${desktopGap}px`,
24
+ };
25
+ }
26
+ export function ProductSliderSkeleton({ count = 3, slidesPerView = 1, gap = 16, }) {
27
+ return (_jsx("div", { className: "cmsc-pb-skel-carousel", "aria-busy": "true", "aria-label": "Loading products", children: _jsx("div", { className: "cmsc-pb-skel-carousel__track", style: skeletonTrackStyle(slidesPerView, gap), children: Array.from({ length: count }, (_, i) => (_jsx("div", { className: "cmsc-pb-skel-carousel__slide", children: _jsx(ProductCardSkeleton, {}) }, i))) }) }));
28
+ }
29
+ export function ProductGridSkeleton({ count = 4, columns = 4, gap = 16, }) {
30
+ return (_jsx("ul", { className: "cmsc-pb-product-grid cmsc-pb-skel-grid", style: { gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`, gap: `${gap}px` }, "aria-busy": "true", "aria-label": "Loading products", children: Array.from({ length: count }, (_, i) => (_jsx("li", { children: _jsx(ProductCardSkeleton, {}) }, i))) }));
31
+ }
32
+ export function CategoryListSkeleton({ count = 5 }) {
33
+ return (_jsx("ul", { className: "cmsc-pb-category-list cmsc-pb-skel-list", "aria-busy": "true", "aria-label": "Loading categories", children: Array.from({ length: count }, (_, i) => (_jsx("li", { children: _jsx("div", { className: "cmsc-pb-skel-block cmsc-pb-skel-category-line", style: { width: `${55 + (i % 3) * 12}%` } }) }, i))) }));
34
+ }
35
+ export function CategoryGridSkeleton({ count = 4, columns = 4, gap = 16, }) {
36
+ return (_jsx("ul", { className: "cmsc-pb-category-grid cmsc-pb-skel-grid", style: { gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`, gap: `${gap}px` }, "aria-busy": "true", "aria-label": "Loading categories", children: Array.from({ length: count }, (_, i) => (_jsxs("li", { className: "cmsc-pb-skel-category-card", children: [_jsx("div", { className: "cmsc-pb-skel-block cmsc-pb-skel-category-card__media" }), _jsx("div", { className: "cmsc-pb-skel-block cmsc-pb-skel-category-card__line" })] }, i))) }));
37
+ }
38
+ //# sourceMappingURL=CatalogSkeletons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CatalogSkeletons.js","sourceRoot":"","sources":["../../../src/components/catalog/CatalogSkeletons.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAGzE,MAAM,UAAU,mBAAmB;IACjC,OAAO,CACL,mBAAS,SAAS,EAAC,gDAAgD,kCACjE,cAAK,SAAS,EAAC,iEAAiE,YAC9E,cAAK,SAAS,EAAC,0DAA0D,GAAG,GACxE,EACN,eAAK,SAAS,EAAC,4BAA4B,aACzC,cAAK,SAAS,EAAC,yFAAyF,GAAG,EAC3G,cAAK,SAAS,EAAC,0FAA0F,GAAG,EAC5G,cAAK,SAAS,EAAC,2FAA2F,GAAG,EAC7G,cAAK,SAAS,EAAC,2FAA2F,GAAG,IACzG,IACE,CACX,CAAC;AACJ,CAAC;AAID,SAAS,iBAAiB,CAAC,OAAe;IACxC,OAAO,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC;AAC1C,CAAC;AAED,SAAS,kBAAkB,CAAC,aAA+B,EAAE,GAAqB;IAChF,MAAM,MAAM,GAAG,mBAAmB,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;IACrD,MAAM,IAAI,GAAG,mBAAmB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IAC1C,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC;IAClD,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,IAAI,YAAY,CAAC;IACrD,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,CAAC;IAC3C,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO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Node } from 'react';
2
+ import type { CatalogPreviewApi } from '../utils/catalog-preview-bridge.js';
3
+ export type { CatalogPreviewApi } from '../utils/catalog-preview-bridge.js';
4
+ export declare function CatalogPreviewProvider({ api, children, }: {
5
+ api: CatalogPreviewApi;
6
+ children: ReactNode;
7
+ }): React.ReactElement;
8
+ export declare function useCatalogPreviewApi(): CatalogPreviewApi | null;
9
+ //# sourceMappingURL=catalog-preview-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog-preview-context.d.ts","sourceRoot":"","sources":["../../src/components/catalog-preview-context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAwC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAG5E,YAAY,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAI5E,wBAAgB,sBAAsB,CAAC,EACrC,GAAG,EACH,QAAQ,GACT,EAAE;IACD,GAAG,EAAE,iBAAiB,CAAC;IACvB,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,KAAK,CAAC,YAAY,CASrB;AAED,wBAAgB,oBAAoB,IAAI,iBAAiB,GAAG,IAAI,CAE/D"}
@@ -0,0 +1,18 @@
1
+ 'use client';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { createContext, useContext, useEffect } from 'react';
4
+ import { registerCatalogPreviewGetter } from '../utils/catalog-preview-bridge.js';
5
+ const CatalogPreviewContext = createContext(null);
6
+ export function CatalogPreviewProvider({ api, children, }) {
7
+ useEffect(() => {
8
+ registerCatalogPreviewGetter(() => api);
9
+ return () => {
10
+ registerCatalogPreviewGetter(null);
11
+ };
12
+ }, [api]);
13
+ return _jsx(CatalogPreviewContext.Provider, { value: api, children: children });
14
+ }
15
+ export function useCatalogPreviewApi() {
16
+ return useContext(CatalogPreviewContext);
17
+ }
18
+ //# sourceMappingURL=catalog-preview-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog-preview-context.js","sourceRoot":"","sources":["../../src/components/catalog-preview-context.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAkB,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAIlF,MAAM,qBAAqB,GAAG,aAAa,CAA2B,IAAI,CAAC,CAAC;AAE5E,MAAM,UAAU,sBAAsB,CAAC,EACrC,GAAG,EACH,QAAQ,GAIT;IACC,SAAS,CAAC,GAAG,EAAE;QACb,4BAA4B,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;QACxC,OAAO,GAAS,EAAE;YAChB,4BAA4B,CAAC,IAAI,CAAC,CAAC;QACrC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEV,OAAO,KAAC,qBAAqB,CAAC,QAAQ,IAAC,KAAK,EAAE,GAAG,YAAG,QAAQ,GAAkC,CAAC;AACjG,CAAC;AAED,MAAM,UAAU,oBAAoB;IAClC,OAAO,UAAU,CAAC,qBAAqB,CAAC,CAAC;AAC3C,CAAC"}
@@ -0,0 +1,139 @@
1
+ import { type LucideIcon } from 'lucide-react';
2
+ /** Curated Lucide allowlist for CMS Icons / Feature list (not the full catalog). */
3
+ export declare const CMS_ICON_CATALOG: {
4
+ readonly activity: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
5
+ readonly alarmClock: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
6
+ readonly archive: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
7
+ readonly arrowDown: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
8
+ readonly arrowLeft: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
9
+ readonly arrowRight: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
10
+ readonly arrowUp: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
11
+ readonly arrowUpRight: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
12
+ readonly atSign: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
13
+ readonly award: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
14
+ readonly badgeCheck: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
15
+ readonly banknote: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
16
+ readonly barChart3: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
17
+ readonly bell: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18
+ readonly bookOpen: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
19
+ readonly bookmark: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
20
+ readonly box: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
21
+ readonly briefcase: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
22
+ readonly building2: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
23
+ readonly calculator: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
24
+ readonly calendar: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
25
+ readonly camera: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
26
+ readonly chartPie: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
27
+ readonly check: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
28
+ readonly checkCircle2: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
29
+ readonly chevronDown: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
30
+ readonly chevronRight: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
31
+ readonly circleHelp: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
32
+ readonly clipboardList: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
33
+ readonly clock: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
34
+ readonly cloud: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
35
+ readonly code2: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
36
+ readonly compass: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
37
+ readonly copy: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
38
+ readonly creditCard: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
39
+ readonly database: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
40
+ readonly download: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
41
+ readonly droplets: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
42
+ readonly externalLink: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
43
+ readonly eye: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
44
+ readonly factory: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
45
+ readonly fileCheck: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
46
+ readonly fileText: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
47
+ readonly filter: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
48
+ readonly flag: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
49
+ readonly folder: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
50
+ readonly gift: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
51
+ readonly globe: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
52
+ readonly graduationCap: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
53
+ readonly handshake: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
54
+ readonly hardHat: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
55
+ readonly heart: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
56
+ readonly heartHandshake: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
57
+ readonly home: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
58
+ readonly image: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
59
+ readonly inbox: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
60
+ readonly info: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
61
+ readonly keyRound: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
62
+ readonly landmark: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
63
+ readonly layers: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
64
+ readonly layoutDashboard: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
65
+ readonly leaf: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
66
+ readonly lifeBuoy: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
67
+ readonly lightbulb: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
68
+ readonly link2: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
69
+ readonly listChecks: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
70
+ readonly lock: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
71
+ readonly mail: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
72
+ readonly map: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
73
+ readonly mapPin: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
74
+ readonly medal: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
75
+ readonly megaphone: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
76
+ readonly messageCircle: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
77
+ readonly messageSquare: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
78
+ readonly mic: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
79
+ readonly monitor: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
80
+ readonly moon: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
81
+ readonly newspaper: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
82
+ readonly package: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
83
+ readonly paintbrush: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
84
+ readonly paperclip: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
85
+ readonly penLine: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
86
+ readonly percent: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
87
+ readonly phone: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
88
+ readonly pieChart: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
89
+ readonly pin: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
90
+ readonly plane: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
91
+ readonly play: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
92
+ readonly plug: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
93
+ readonly plus: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
94
+ readonly printer: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
95
+ readonly puzzle: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
96
+ readonly qrCode: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
97
+ readonly quote: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
98
+ readonly receipt: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
99
+ readonly refreshCw: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
100
+ readonly rocket: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
101
+ readonly scale: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
102
+ readonly scanLine: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
103
+ readonly search: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
104
+ readonly send: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
105
+ readonly server: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
106
+ readonly settings: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
107
+ readonly share2: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
108
+ readonly shield: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
109
+ readonly shieldCheck: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
110
+ readonly shoppingBag: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
111
+ readonly shoppingCart: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
112
+ readonly sparkles: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
113
+ readonly star: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
114
+ readonly store: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
115
+ readonly sun: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
116
+ readonly target: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
117
+ readonly thumbsUp: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
118
+ readonly timer: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
119
+ readonly trash2: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
120
+ readonly trendingUp: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
121
+ readonly truck: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
122
+ readonly upload: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
123
+ readonly user: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
124
+ readonly userCheck: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
125
+ readonly users: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
126
+ readonly video: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
127
+ readonly wallet: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
128
+ readonly warehouse: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
129
+ readonly wrench: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
130
+ readonly zap: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
131
+ };
132
+ export type CmsIconName = keyof typeof CMS_ICON_CATALOG;
133
+ export declare const CMS_ICON_OPTIONS: {
134
+ label: "target" | "quote" | "search" | "map" | "filter" | "copy" | "video" | "box" | "timer" | "play" | "image" | "scale" | "activity" | "alarmClock" | "archive" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "arrowUpRight" | "atSign" | "award" | "badgeCheck" | "banknote" | "barChart3" | "bell" | "bookOpen" | "bookmark" | "briefcase" | "building2" | "calculator" | "calendar" | "camera" | "chartPie" | "check" | "checkCircle2" | "chevronDown" | "chevronRight" | "circleHelp" | "clipboardList" | "clock" | "cloud" | "code2" | "compass" | "creditCard" | "database" | "download" | "droplets" | "externalLink" | "eye" | "factory" | "fileCheck" | "fileText" | "flag" | "folder" | "gift" | "globe" | "graduationCap" | "handshake" | "hardHat" | "heart" | "heartHandshake" | "home" | "inbox" | "info" | "keyRound" | "landmark" | "layers" | "layoutDashboard" | "leaf" | "lifeBuoy" | "lightbulb" | "link2" | "listChecks" | "lock" | "mail" | "mapPin" | "medal" | "megaphone" | "messageCircle" | "messageSquare" | "mic" | "monitor" | "moon" | "newspaper" | "package" | "paintbrush" | "paperclip" | "penLine" | "percent" | "phone" | "pieChart" | "pin" | "plane" | "plug" | "plus" | "printer" | "puzzle" | "qrCode" | "receipt" | "refreshCw" | "rocket" | "scanLine" | "send" | "server" | "settings" | "share2" | "shield" | "shieldCheck" | "shoppingBag" | "shoppingCart" | "sparkles" | "star" | "store" | "sun" | "thumbsUp" | "trash2" | "trendingUp" | "truck" | "upload" | "user" | "userCheck" | "users" | "wallet" | "warehouse" | "wrench" | "zap";
135
+ value: "target" | "quote" | "search" | "map" | "filter" | "copy" | "video" | "box" | "timer" | "play" | "image" | "scale" | "activity" | "alarmClock" | "archive" | "arrowDown" | "arrowLeft" | "arrowRight" | "arrowUp" | "arrowUpRight" | "atSign" | "award" | "badgeCheck" | "banknote" | "barChart3" | "bell" | "bookOpen" | "bookmark" | "briefcase" | "building2" | "calculator" | "calendar" | "camera" | "chartPie" | "check" | "checkCircle2" | "chevronDown" | "chevronRight" | "circleHelp" | "clipboardList" | "clock" | "cloud" | "code2" | "compass" | "creditCard" | "database" | "download" | "droplets" | "externalLink" | "eye" | "factory" | "fileCheck" | "fileText" | "flag" | "folder" | "gift" | "globe" | "graduationCap" | "handshake" | "hardHat" | "heart" | "heartHandshake" | "home" | "inbox" | "info" | "keyRound" | "landmark" | "layers" | "layoutDashboard" | "leaf" | "lifeBuoy" | "lightbulb" | "link2" | "listChecks" | "lock" | "mail" | "mapPin" | "medal" | "megaphone" | "messageCircle" | "messageSquare" | "mic" | "monitor" | "moon" | "newspaper" | "package" | "paintbrush" | "paperclip" | "penLine" | "percent" | "phone" | "pieChart" | "pin" | "plane" | "plug" | "plus" | "printer" | "puzzle" | "qrCode" | "receipt" | "refreshCw" | "rocket" | "scanLine" | "send" | "server" | "settings" | "share2" | "shield" | "shieldCheck" | "shoppingBag" | "shoppingCart" | "sparkles" | "star" | "store" | "sun" | "thumbsUp" | "trash2" | "trendingUp" | "truck" | "upload" | "user" | "userCheck" | "users" | "wallet" | "warehouse" | "wrench" | "zap";
136
+ }[];
137
+ export declare function resolveCmsIcon(name: string | undefined): LucideIcon | null;
138
+ export declare function humanizeIconName(name: string): string;
139
+ //# sourceMappingURL=icon-catalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-catalog.d.ts","sourceRoot":"","sources":["../../src/components/icon-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAgIL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AAEtB,oFAAoF;AACpF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgIkB,CAAC;AAEhD,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAExD,eAAO,MAAM,gBAAgB;;;GAG1B,CAAC;AAEJ,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,IAAI,CAG1E;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMrD"}