@dmsi/wedgekit-react 1.0.1 → 2.0.1

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 (282) hide show
  1. package/dist/classNames.d.ts +1 -0
  2. package/dist/classNames.d.ts.map +1 -1
  3. package/dist/classNames.js +150 -0
  4. package/dist/components/AccessCard.js +63 -0
  5. package/dist/components/AccessCardGroup.js +73 -0
  6. package/dist/components/AccessChangerTabItem.js +51 -0
  7. package/dist/components/Accordion.js +99 -0
  8. package/dist/components/Alert.d.ts.map +1 -1
  9. package/dist/components/Alert.js +78 -0
  10. package/dist/components/Breadcrumbs.js +111 -0
  11. package/dist/components/Button.js +137 -0
  12. package/dist/components/CalendarRange.js +405 -0
  13. package/dist/components/Caption.js +99 -0
  14. package/dist/components/Card.js +50 -0
  15. package/dist/components/Checkbox.js +108 -0
  16. package/dist/components/CompactImagesPreview.d.ts.map +1 -1
  17. package/dist/components/CompactImagesPreview.js +120 -0
  18. package/dist/components/ContentTab.js +68 -0
  19. package/dist/components/ContentTabs.js +96 -0
  20. package/dist/components/DMSiLogo.js +54 -0
  21. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +27 -0
  22. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +79 -0
  23. package/dist/components/DataGrid/PinnedColumns.d.ts +9 -2
  24. package/dist/components/DataGrid/PinnedColumns.d.ts.map +1 -1
  25. package/dist/components/DataGrid/PinnedColumns.js +165 -0
  26. package/dist/components/DataGrid/SummaryRow/SummaryCell.d.ts +18 -0
  27. package/dist/components/DataGrid/SummaryRow/SummaryCell.d.ts.map +1 -0
  28. package/dist/components/DataGrid/SummaryRow/SummaryCell.js +51 -0
  29. package/dist/components/DataGrid/SummaryRow/aggregations.d.ts +39 -0
  30. package/dist/components/DataGrid/SummaryRow/aggregations.d.ts.map +1 -0
  31. package/dist/components/DataGrid/SummaryRow/aggregations.js +55 -0
  32. package/dist/components/DataGrid/SummaryRow/index.d.ts +18 -0
  33. package/dist/components/DataGrid/SummaryRow/index.d.ts.map +1 -0
  34. package/dist/components/DataGrid/SummaryRow/index.js +86 -0
  35. package/dist/components/DataGrid/TableBody/GroupRow.d.ts +18 -0
  36. package/dist/components/DataGrid/TableBody/GroupRow.d.ts.map +1 -0
  37. package/dist/components/DataGrid/TableBody/GroupRow.js +243 -0
  38. package/dist/components/DataGrid/TableBody/LoadingCell.js +33 -0
  39. package/dist/components/DataGrid/TableBody/TableBodyRow.d.ts +3 -2
  40. package/dist/components/DataGrid/TableBody/TableBodyRow.d.ts.map +1 -1
  41. package/dist/components/DataGrid/TableBody/TableBodyRow.js +136 -0
  42. package/dist/components/DataGrid/TableBody/index.d.ts +3 -1
  43. package/dist/components/DataGrid/TableBody/index.d.ts.map +1 -1
  44. package/dist/components/DataGrid/TableBody/index.js +161 -0
  45. package/dist/components/DataGrid/index.d.ts +1 -1
  46. package/dist/components/DataGrid/index.d.ts.map +1 -1
  47. package/dist/components/DataGrid/index.js +696 -0
  48. package/dist/components/DataGrid/types.d.ts +141 -1
  49. package/dist/components/DataGrid/types.d.ts.map +1 -1
  50. package/dist/components/DataGrid/utils.d.ts +2 -0
  51. package/dist/components/DataGrid/utils.d.ts.map +1 -1
  52. package/dist/components/DataGrid/utils.js +20 -0
  53. package/dist/components/DataGridCell.d.ts +5 -2
  54. package/dist/components/DataGridCell.d.ts.map +1 -1
  55. package/dist/components/DataGridCell.js +412 -0
  56. package/dist/components/DataTable.js +700 -0
  57. package/dist/components/DateInput.js +193 -0
  58. package/dist/components/DateRangeInput.js +368 -0
  59. package/dist/components/DebugJson.js +28 -0
  60. package/dist/components/Display.js +46 -0
  61. package/dist/components/EditingContext.js +34 -0
  62. package/dist/components/EmblaCarousel/ArrowButtons.js +83 -0
  63. package/dist/components/EmblaCarousel/SelectedSnapDisplay.js +12 -0
  64. package/dist/components/EmblaCarousel/index.js +153 -0
  65. package/dist/components/EmblaCarousel/usePrevNextButtons.js +21 -0
  66. package/dist/components/EmblaCarousel/useSelectedSnapDisplay.js +15 -0
  67. package/dist/components/EmptyCartIcon.js +25 -0
  68. package/dist/components/FilterGroup.d.ts +5 -3
  69. package/dist/components/FilterGroup.d.ts.map +1 -1
  70. package/dist/components/FilterGroup.js +198 -0
  71. package/dist/components/FullViewportBox.js +19 -0
  72. package/dist/components/Grid.js +54 -0
  73. package/dist/components/Heading.js +50 -0
  74. package/dist/components/HorizontalDivider.js +20 -0
  75. package/dist/components/Icon.d.ts +5 -2
  76. package/dist/components/Icon.d.ts.map +1 -1
  77. package/dist/components/Icon.js +73 -0
  78. package/dist/components/ImagePlaceholder.js +22 -0
  79. package/dist/components/Input.d.ts +11 -9
  80. package/dist/components/Input.d.ts.map +1 -1
  81. package/dist/components/Input.js +469 -0
  82. package/dist/components/InputGroup.js +45 -0
  83. package/dist/components/Label.js +37 -0
  84. package/dist/components/Link.js +69 -0
  85. package/dist/components/List.js +12 -0
  86. package/dist/components/ListGroup.d.ts.map +1 -1
  87. package/dist/components/ListGroup.js +54 -0
  88. package/dist/components/LiveChatComponent.js +25 -0
  89. package/dist/components/LoadingScrim.js +22 -0
  90. package/dist/components/LogoAgilityTopBar.js +90 -0
  91. package/dist/components/LogoDMSiTopBar.js +54 -0
  92. package/dist/components/LogoMillworkTopBar.js +196 -0
  93. package/dist/components/MainBar.js +58 -0
  94. package/dist/components/MaxViewportBox.js +19 -0
  95. package/dist/components/Menu.d.ts.map +1 -1
  96. package/dist/components/Menu.js +202 -0
  97. package/dist/components/MenuOption.js +161 -0
  98. package/dist/components/MobileDataGrid/ColumnList.js +85 -0
  99. package/dist/components/MobileDataGrid/ColumnSelector/index.js +100 -0
  100. package/dist/components/MobileDataGrid/GridContextProvider/GridContext.d.ts.map +1 -1
  101. package/dist/components/MobileDataGrid/GridContextProvider/GridContext.js +6 -0
  102. package/dist/components/MobileDataGrid/GridContextProvider/index.js +80 -0
  103. package/dist/components/MobileDataGrid/GridContextProvider/useGridContext.js +11 -0
  104. package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.js +18 -0
  105. package/dist/components/MobileDataGrid/MobileDataGridCard/index.d.ts +2 -1
  106. package/dist/components/MobileDataGrid/MobileDataGridCard/index.d.ts.map +1 -1
  107. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +130 -0
  108. package/dist/components/MobileDataGrid/MobileDataGridHeader.d.ts.map +1 -1
  109. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +67 -0
  110. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +42 -0
  111. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.d.ts.map +1 -1
  112. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +58 -0
  113. package/dist/components/MobileDataGrid/dataGridReducer.js +28 -0
  114. package/dist/components/MobileDataGrid/index.d.ts +1 -1
  115. package/dist/components/MobileDataGrid/index.d.ts.map +1 -1
  116. package/dist/components/MobileDataGrid/index.js +78 -0
  117. package/dist/components/MobileNavMenu.d.ts.map +1 -1
  118. package/dist/components/MobileNavMenu.js +173 -0
  119. package/dist/components/Modal.d.ts +1 -2
  120. package/dist/components/Modal.d.ts.map +1 -1
  121. package/dist/components/Modal.js +201 -0
  122. package/dist/components/ModalButtons.d.ts.map +1 -1
  123. package/dist/components/ModalButtons.js +57 -0
  124. package/dist/components/ModalContent.d.ts +1 -2
  125. package/dist/components/ModalContent.d.ts.map +1 -1
  126. package/dist/components/ModalContent.js +24 -0
  127. package/dist/components/ModalHeader.js +74 -0
  128. package/dist/components/ModalScrim.js +32 -0
  129. package/dist/components/NavigationTab.js +72 -0
  130. package/dist/components/NavigationTabs.js +45 -0
  131. package/dist/components/NestedMenu.d.ts.map +1 -1
  132. package/dist/components/NestedMenu.js +119 -0
  133. package/dist/components/Notification.js +91 -0
  134. package/dist/components/OptionPill.d.ts +2 -1
  135. package/dist/components/OptionPill.d.ts.map +1 -1
  136. package/dist/components/OptionPill.js +103 -0
  137. package/dist/components/OrderCheckIcon.js +28 -0
  138. package/dist/components/PDFViewer/DownloadIcon.js +25 -0
  139. package/dist/components/PDFViewer/PDFElement.js +77 -0
  140. package/dist/components/PDFViewer/PDFNavigation.js +64 -0
  141. package/dist/components/PDFViewer/PDFPage.js +28 -0
  142. package/dist/components/PDFViewer/index.d.ts.map +1 -1
  143. package/dist/components/PDFViewer/index.js +124 -0
  144. package/dist/components/Pagination.d.ts.map +1 -1
  145. package/dist/components/Pagination.js +117 -0
  146. package/dist/components/Paragraph.js +43 -0
  147. package/dist/components/Password.js +47 -0
  148. package/dist/components/ProductImagePreview/CarouselPagination.js +48 -0
  149. package/dist/components/ProductImagePreview/MobileImageCarousel.d.ts +2 -1
  150. package/dist/components/ProductImagePreview/MobileImageCarousel.d.ts.map +1 -1
  151. package/dist/components/ProductImagePreview/MobileImageCarousel.js +146 -0
  152. package/dist/components/ProductImagePreview/ProductPrimaryImage.d.ts +2 -1
  153. package/dist/components/ProductImagePreview/ProductPrimaryImage.d.ts.map +1 -1
  154. package/dist/components/ProductImagePreview/ProductPrimaryImage.js +138 -0
  155. package/dist/components/ProductImagePreview/Thumbnail.d.ts +2 -1
  156. package/dist/components/ProductImagePreview/Thumbnail.d.ts.map +1 -1
  157. package/dist/components/ProductImagePreview/Thumbnail.js +46 -0
  158. package/dist/components/ProductImagePreview/ZoomWindow.js +74 -0
  159. package/dist/components/ProductImagePreview/index.d.ts.map +1 -1
  160. package/dist/components/ProductImagePreview/index.js +189 -0
  161. package/dist/components/ProductImagePreview/useProductImagePreview.js +85 -0
  162. package/dist/components/ProjectBar.d.ts +1 -1
  163. package/dist/components/ProjectBar.js +54 -0
  164. package/dist/components/Radio.js +113 -0
  165. package/dist/components/Search.js +89 -0
  166. package/dist/components/SearchResultImage/index.js +26 -0
  167. package/dist/components/Select.js +122 -0
  168. package/dist/components/SideMenu.js +24 -0
  169. package/dist/components/SideMenuGroup.js +80 -0
  170. package/dist/components/SideMenuItem.js +79 -0
  171. package/dist/components/SimpleTable.js +60 -0
  172. package/dist/components/SkeletonParagraph.js +24 -0
  173. package/dist/components/Spinner.d.ts +1 -1
  174. package/dist/components/Spinner.d.ts.map +1 -1
  175. package/dist/components/Spinner.js +30 -0
  176. package/dist/components/Stack.js +174 -0
  177. package/dist/components/StatusPill.js +44 -0
  178. package/dist/components/Stepper.js +138 -0
  179. package/dist/components/Subheader.d.ts +2 -1
  180. package/dist/components/Subheader.d.ts.map +1 -1
  181. package/dist/components/Subheader.js +41 -0
  182. package/dist/components/Surface.js +30 -0
  183. package/dist/components/Swatch.js +1498 -0
  184. package/dist/components/Textarea.js +106 -0
  185. package/dist/components/Theme.d.ts +1 -1
  186. package/dist/components/Theme.d.ts.map +1 -1
  187. package/dist/components/Theme.js +25 -0
  188. package/dist/components/Time.d.ts +2 -1
  189. package/dist/components/Time.d.ts.map +1 -1
  190. package/dist/components/Time.js +225 -0
  191. package/dist/components/Toast.d.ts +4 -3
  192. package/dist/components/Toast.d.ts.map +1 -1
  193. package/dist/components/Toast.js +170 -0
  194. package/dist/components/Tooltip.js +102 -0
  195. package/dist/components/TopBar.d.ts.map +1 -1
  196. package/dist/components/TopBar.js +119 -0
  197. package/dist/components/Upload.js +107 -0
  198. package/dist/components/WorldpayIframe.d.ts.map +1 -1
  199. package/dist/components/WorldpayIframe.js +19 -0
  200. package/dist/hooks/useEditCell.js +23 -0
  201. package/dist/hooks/useInfiniteScroll.js +25 -0
  202. package/dist/hooks/useKeydown.js +20 -0
  203. package/dist/hooks/useMatchesMedia.js +15 -0
  204. package/dist/hooks/useMenuSystem.js +186 -0
  205. package/dist/hooks/useMounted.js +9 -0
  206. package/dist/hooks/useTableLayout/computeColumns.js +59 -0
  207. package/dist/hooks/useTableLayout/storage.js +64 -0
  208. package/dist/hooks/useTableLayout/useTableLayout.js +163 -0
  209. package/dist/index.js +249 -52864
  210. package/dist/lib/loadFonts.js +11 -0
  211. package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +56 -0
  212. package/dist/node_modules/@dnd-kit/core/dist/core.esm.js +2299 -0
  213. package/dist/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.js +13 -0
  214. package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +367 -0
  215. package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +235 -0
  216. package/dist/node_modules/@headlessui/react/dist/components/description/description.js +45 -0
  217. package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +4 -0
  218. package/dist/node_modules/@headlessui/react/dist/components/label/label.js +62 -0
  219. package/dist/node_modules/@headlessui/react/dist/components/switch/switch.js +56 -0
  220. package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js +33 -0
  221. package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js +10 -0
  222. package/dist/node_modules/@headlessui/react/dist/hooks/use-default-value.js +8 -0
  223. package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +9 -0
  224. package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +9 -0
  225. package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +8 -0
  226. package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +11 -0
  227. package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +12 -0
  228. package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.js +7 -0
  229. package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +16 -0
  230. package/dist/node_modules/@headlessui/react/dist/internal/disabled.js +8 -0
  231. package/dist/node_modules/@headlessui/react/dist/internal/form-fields.js +35 -0
  232. package/dist/node_modules/@headlessui/react/dist/internal/hidden.js +13 -0
  233. package/dist/node_modules/@headlessui/react/dist/internal/id.js +8 -0
  234. package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +19 -0
  235. package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +6 -0
  236. package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +40 -0
  237. package/dist/node_modules/@headlessui/react/dist/utils/dom.js +34 -0
  238. package/dist/node_modules/@headlessui/react/dist/utils/env.js +34 -0
  239. package/dist/node_modules/@headlessui/react/dist/utils/form.js +32 -0
  240. package/dist/node_modules/@headlessui/react/dist/utils/match.js +11 -0
  241. package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +8 -0
  242. package/dist/node_modules/@headlessui/react/dist/utils/owner.js +8 -0
  243. package/dist/node_modules/@headlessui/react/dist/utils/render.js +126 -0
  244. package/dist/node_modules/@js-temporal/polyfill/dist/index.esm.js +3913 -0
  245. package/dist/node_modules/@mikecousins/react-pdf/dist/index.js +83 -0
  246. package/dist/node_modules/@react-aria/focus/dist/useFocusRing.js +38 -0
  247. package/dist/node_modules/@react-aria/interactions/dist/useFocus.js +31 -0
  248. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.js +99 -0
  249. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.js +59 -0
  250. package/dist/node_modules/@react-aria/interactions/dist/useHover.js +86 -0
  251. package/dist/node_modules/@react-aria/interactions/dist/utils.js +68 -0
  252. package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.js +32 -0
  253. package/dist/node_modules/@react-aria/utils/dist/domHelpers.js +15 -0
  254. package/dist/node_modules/@react-aria/utils/dist/focusWithoutScrolling.js +45 -0
  255. package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.js +7 -0
  256. package/dist/node_modules/@react-aria/utils/dist/openLink.js +28 -0
  257. package/dist/node_modules/@react-aria/utils/dist/platform.js +47 -0
  258. package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.js +34 -0
  259. package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.js +6 -0
  260. package/dist/node_modules/@react-stately/flags/dist/import.js +7 -0
  261. package/dist/node_modules/@tanstack/react-table/build/lib/index.js +94 -0
  262. package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +38 -0
  263. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1954 -0
  264. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +575 -0
  265. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
  266. package/dist/node_modules/clsx/dist/clsx.js +17 -0
  267. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1204 -0
  268. package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +126 -0
  269. package/dist/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +24 -0
  270. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +35 -0
  271. package/dist/node_modules/jsbi/dist/jsbi.js +1040 -0
  272. package/dist/node_modules/react-use/esm/usePrevious.js +10 -0
  273. package/dist/static/no-results-image.png.js +4 -0
  274. package/dist/styles.css +1 -1
  275. package/dist/utils/date-patch-dashes.js +28 -0
  276. package/dist/utils/date.js +95 -0
  277. package/dist/utils/formatting.js +22 -0
  278. package/dist/utils/index.js +4 -0
  279. package/dist/utils/mergeObjectArrays.js +18 -0
  280. package/dist/utils.js +20 -0
  281. package/package.json +1 -1
  282. /package/dist/{pdf-l6QfMa5e.js → node_modules/pdfjs-dist/build/pdf.js} +0 -0
@@ -0,0 +1,83 @@
1
+ import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
+ import { clsx as e } from "../../node_modules/clsx/dist/clsx.js";
3
+ const l = e(
4
+ "appearance-none bg-transparent border cursor-pointer p-2 flex items-center justify-center size-9 rounded-full transition-colors duration-300 ease-in-out group"
5
+ ), u = (t) => {
6
+ const { children: a, disabled: r, className: n, iconClassName: i, circleChevron: s, ...c } = t;
7
+ return /* @__PURE__ */ d(
8
+ "button",
9
+ {
10
+ className: e(
11
+ l,
12
+ !r && "border-border-primary-normal hover:border-border-action-hover active:border-border-action-active",
13
+ r && "border-border-action-disabled",
14
+ n
15
+ ),
16
+ type: "button",
17
+ ...c,
18
+ children: [
19
+ /* @__PURE__ */ o(
20
+ "svg",
21
+ {
22
+ className: e(
23
+ "size-3 transition-colors duration-300 ease-in-out",
24
+ !r && s && "text-text-primary-normal",
25
+ r && "text-icon-primary-disabled",
26
+ i
27
+ ),
28
+ viewBox: "0 0 532 532",
29
+ children: /* @__PURE__ */ o(
30
+ "path",
31
+ {
32
+ fill: "currentColor",
33
+ d: "M355.66 11.354c13.793-13.805 36.208-13.805 50.001 0 13.785 13.804 13.785 36.238 0 50.034L201.22 266l204.442 204.61c13.785 13.805 13.785 36.239 0 50.044-13.793 13.796-36.208 13.796-50.002 0a5994246.277 5994246.277 0 0 0-229.332-229.454 35.065 35.065 0 0 1-10.326-25.126c0-9.2 3.393-18.26 10.326-25.2C172.192 194.973 332.731 34.31 355.66 11.354Z"
34
+ }
35
+ )
36
+ }
37
+ ),
38
+ a
39
+ ]
40
+ }
41
+ );
42
+ }, p = (t) => {
43
+ const { children: a, disabled: r, className: n, iconClassName: i, circleChevron: s, ...c } = t;
44
+ return /* @__PURE__ */ d(
45
+ "button",
46
+ {
47
+ className: e(
48
+ l,
49
+ !r && "border-border-primary-normal hover:border-border-action-hover active:border-border-action-active",
50
+ r && "border-border-action-disabled",
51
+ n
52
+ ),
53
+ type: "button",
54
+ ...c,
55
+ children: [
56
+ /* @__PURE__ */ o(
57
+ "svg",
58
+ {
59
+ className: e(
60
+ "size-3 transition-colors duration-300 ease-in-out",
61
+ !r && s && "text-text-primary-normal",
62
+ r && "text-icon-primary-disabled",
63
+ i
64
+ ),
65
+ viewBox: "0 0 532 532",
66
+ children: /* @__PURE__ */ o(
67
+ "path",
68
+ {
69
+ fill: "currentColor",
70
+ d: "M176.34 520.646c-13.793 13.805-36.208 13.805-50.001 0-13.785-13.804-13.785-36.238 0-50.034L330.78 266 126.34 61.391c-13.785-13.805-13.785-36.239 0-50.044 13.793-13.796 36.208-13.796 50.002 0 22.928 22.947 206.395 206.507 229.332 229.454a35.065 35.065 0 0 1 10.326 25.126c0 9.2-3.393 18.26-10.326 25.2-45.865 45.901-206.404 206.564-229.332 229.52Z"
71
+ }
72
+ )
73
+ }
74
+ ),
75
+ a
76
+ ]
77
+ }
78
+ );
79
+ };
80
+ export {
81
+ p as NextButton,
82
+ u as PrevButton
83
+ };
@@ -0,0 +1,12 @@
1
+ import { jsxs as n } from "react/jsx-runtime";
2
+ const l = (e) => {
3
+ const { selectedSnap: s, snapCount: a } = e;
4
+ return /* @__PURE__ */ n("div", { className: "embla__selected-snap-display", children: [
5
+ s + 1,
6
+ " / ",
7
+ a
8
+ ] });
9
+ };
10
+ export {
11
+ l as SelectedSnapDisplay
12
+ };
@@ -0,0 +1,153 @@
1
+ import { jsxs as a, jsx as o, Fragment as G } from "react/jsx-runtime";
2
+ import J, { useRef as x, useEffect as g, useCallback as b } from "react";
3
+ import K from "../../node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js";
4
+ import Q from "../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js";
5
+ import { SelectedSnapDisplay as U } from "./SelectedSnapDisplay.js";
6
+ import { useSelectedSnapDisplay as Y } from "./useSelectedSnapDisplay.js";
7
+ import { PrevButton as F, NextButton as A } from "./ArrowButtons.js";
8
+ import { usePrevNextButtons as Z } from "./usePrevNextButtons.js";
9
+ import { useMatchesMobile as ee } from "../../hooks/useMatchesMedia.js";
10
+ import { clsx as k } from "../../node_modules/clsx/dist/clsx.js";
11
+ const te = 0.2, fe = ({
12
+ options: D,
13
+ children: H,
14
+ testid: M,
15
+ leftRightChevrons: n = !1,
16
+ autoplay: c = !1,
17
+ chevronThemeColor: l = !1
18
+ }) => {
19
+ const j = Q({ delay: 4e3 }), [L, e] = K(
20
+ D,
21
+ c ? [j] : []
22
+ ), v = x(null), [h, T] = J.useState(
23
+ void 0
24
+ );
25
+ g(() => {
26
+ if (!e || !n) return;
27
+ const t = () => {
28
+ const s = e.selectedScrollSnap(), i = e.slideNodes()[s];
29
+ i && v.current && T(i.offsetHeight);
30
+ };
31
+ return t(), e.on("select", t).on("reInit", t), () => {
32
+ e.off("select", t), e.off("reInit", t);
33
+ };
34
+ }, [e, n]), g(() => {
35
+ !e || !c || e.plugins()?.autoplay?.play();
36
+ }, [e, c]);
37
+ const {
38
+ prevBtnDisabled: N,
39
+ nextBtnDisabled: y,
40
+ onPrevButtonClick: R,
41
+ onNextButtonClick: V
42
+ } = Z(e), { selectedSnap: q, snapCount: O } = Y(e), w = x(0), S = x([]), _ = ee(), d = b((t) => {
43
+ S.current = t.slideNodes().map((s) => s.querySelector(".embla__parallax__layer"));
44
+ }, []), u = b((t) => {
45
+ w.current = te * t.scrollSnapList().length;
46
+ }, []), r = b(
47
+ (t) => {
48
+ const s = t.internalEngine(), i = t.scrollProgress(), W = t.slidesInView();
49
+ t.scrollSnapList().forEach((p, X) => {
50
+ let f = p - i;
51
+ s.slideRegistry[X].forEach((m) => {
52
+ if (!W.includes(m)) return;
53
+ s.options.loop && s.slideLooper.loopPoints.forEach((B) => {
54
+ const C = B.target();
55
+ if (m === B.index && C !== 0) {
56
+ const I = Math.sign(C);
57
+ I === -1 && (f = p - (1 + i)), I === 1 && (f = p + (1 - i));
58
+ }
59
+ });
60
+ const $ = f * (-1 * w.current) * 100, P = S.current[m];
61
+ P && (P.style.transform = `translateX(${$}%)`);
62
+ });
63
+ });
64
+ },
65
+ []
66
+ );
67
+ g(() => {
68
+ !e || !_ || (d(e), u(e), r(e), e.on("reInit", d).on("reInit", u).on("reInit", r).on("scroll", r).on("slideFocus", r));
69
+ }, [e, _, d, u, r]);
70
+ const E = () => {
71
+ R(), e?.plugins()?.autoplay?.reset();
72
+ }, z = () => {
73
+ V(), e?.plugins()?.autoplay?.reset();
74
+ };
75
+ return /* @__PURE__ */ a(
76
+ "section",
77
+ {
78
+ className: "w-full m-auto grid gap-4 relative",
79
+ "data-testid": M,
80
+ ref: n ? v : void 0,
81
+ style: n && h ? { height: h, transition: "height 0.3s ease" } : void 0,
82
+ children: [
83
+ /* @__PURE__ */ o("div", { className: "embla__viewport overflow-hidden", ref: L, children: /* @__PURE__ */ o(
84
+ "div",
85
+ {
86
+ className: k(
87
+ "embla__container flex touch-pan-y touch-pinch-zoom",
88
+ !n && "desktop:pb-3 gap-2"
89
+ ),
90
+ children: H
91
+ }
92
+ ) }),
93
+ n ? /* @__PURE__ */ a(G, { children: [
94
+ /* @__PURE__ */ o(
95
+ F,
96
+ {
97
+ className: "absolute top-1/2 -translate-y-1/2 left-0 border-transparent! size-10! desktop:size-12!",
98
+ iconClassName: k(
99
+ "size-6! desktop:size-8!",
100
+ l && "text-text-link-normal group-hover:text-text-link-hover group-active:text-text-link-active",
101
+ !l && "text-white group-hover:text-text-link-normal group-active:text-text-link-active"
102
+ ),
103
+ onClick: E,
104
+ disabled: N
105
+ }
106
+ ),
107
+ /* @__PURE__ */ o(
108
+ A,
109
+ {
110
+ className: "absolute top-1/2 -translate-y-1/2 right-0 border-transparent! size-10! desktop:size-12!",
111
+ iconClassName: k(
112
+ "size-6! desktop:size-8!",
113
+ l && "text-text-link-normal group-hover:text-text-link-hover group-active:text-text-link-active",
114
+ !l && "text-white group-hover:text-text-link-normal group-active:text-text-link-active"
115
+ ),
116
+ onClick: z,
117
+ disabled: y
118
+ }
119
+ )
120
+ ] }) : /* @__PURE__ */ a("div", { className: "justify-between hidden desktop:flex", children: [
121
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
122
+ /* @__PURE__ */ o(
123
+ F,
124
+ {
125
+ circleChevron: !0,
126
+ onClick: E,
127
+ disabled: N
128
+ }
129
+ ),
130
+ /* @__PURE__ */ o(
131
+ A,
132
+ {
133
+ circleChevron: !0,
134
+ onClick: z,
135
+ disabled: y
136
+ }
137
+ )
138
+ ] }),
139
+ /* @__PURE__ */ o(
140
+ U,
141
+ {
142
+ selectedSnap: q,
143
+ snapCount: O
144
+ }
145
+ )
146
+ ] })
147
+ ]
148
+ }
149
+ );
150
+ };
151
+ export {
152
+ fe as EmblaCarousel
153
+ };
@@ -0,0 +1,21 @@
1
+ import { useState as o, useCallback as n, useEffect as f } from "react";
2
+ const N = (t) => {
3
+ const [s, c] = o(!0), [u, l] = o(!0), x = n(() => {
4
+ t && t.scrollPrev();
5
+ }, [t]), B = n(() => {
6
+ t && t.scrollNext();
7
+ }, [t]), e = n((r) => {
8
+ c(!r.canScrollPrev()), l(!r.canScrollNext());
9
+ }, []);
10
+ return f(() => {
11
+ t && (e(t), t.on("reInit", e).on("select", e));
12
+ }, [t, e]), {
13
+ prevBtnDisabled: s,
14
+ nextBtnDisabled: u,
15
+ onPrevButtonClick: x,
16
+ onNextButtonClick: B
17
+ };
18
+ };
19
+ export {
20
+ N as usePrevNextButtons
21
+ };
@@ -0,0 +1,15 @@
1
+ import { useState as s, useCallback as l, useEffect as a } from "react";
2
+ const p = (t) => {
3
+ const [c, o] = s(0), [S, r] = s(0), e = l((n) => {
4
+ r(n.scrollSnapList().length), o(n.selectedScrollSnap());
5
+ }, []);
6
+ return a(() => {
7
+ t && (e(t), t.on("select", e), t.on("reInit", e));
8
+ }, [t, e]), {
9
+ selectedSnap: c,
10
+ snapCount: S
11
+ };
12
+ };
13
+ export {
14
+ p as useSelectedSnapDisplay
15
+ };
@@ -0,0 +1,25 @@
1
+ import { jsx as C } from "react/jsx-runtime";
2
+ function l() {
3
+ return /* @__PURE__ */ C(
4
+ "svg",
5
+ {
6
+ width: "211",
7
+ height: "196",
8
+ viewBox: "0 0 211 196",
9
+ fill: "none",
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ children: /* @__PURE__ */ C(
12
+ "path",
13
+ {
14
+ "fill-rule": "evenodd",
15
+ "clip-rule": "evenodd",
16
+ d: "M54.5305 76.3333H137.059L154.793 141.333L22.0305 141.333L54.5305 76.3333ZM3.60295 152.73C7.57878 159.165 14.4688 163 22.0305 163L160.697 163L167.381 187.516C168.67 192.228 172.95 195.5 177.835 195.5H199.502C205.493 195.5 210.335 190.647 210.335 184.667C210.335 178.687 205.493 173.833 199.502 173.833H186.112L155.79 62.6508C154.5 57.9383 150.221 54.6667 145.335 54.6667L47.8354 54.6667C43.7296 54.6667 39.9813 56.985 38.1396 60.6575L2.64963 131.648C-0.741211 138.419 -0.372879 146.295 3.60295 152.73ZM150.75 33C159.72 33 167 25.7308 167 16.75C167 7.76917 159.72 0.5 150.75 0.5C141.78 0.5 134.5 7.76917 134.5 16.75C134.5 25.7308 141.78 33 150.75 33ZM58.6666 16.75C58.6666 25.7308 51.3866 33 42.4166 33C33.4466 33 26.1666 25.7308 26.1666 16.75C26.1666 7.76917 33.4466 0.5 42.4166 0.5C51.3866 0.5 58.6666 7.76917 58.6666 16.75Z",
17
+ fill: "#6B6D6D"
18
+ }
19
+ )
20
+ }
21
+ );
22
+ }
23
+ export {
24
+ l as EmptyCartIcon
25
+ };
@@ -3,8 +3,9 @@ type FilterGroupProps = {
3
3
  id?: string;
4
4
  testid?: string;
5
5
  label: string;
6
- open?: boolean;
6
+ defaultOpen?: boolean;
7
7
  showMore?: boolean;
8
+ bordered?: boolean;
8
9
  type?: "link" | "checkbox" | "summary";
9
10
  onShowMore?: () => void;
10
11
  onClearAll?: () => void;
@@ -17,13 +18,14 @@ type FilterGroupProps = {
17
18
  searchValue?: string;
18
19
  onSearchChange?: React.ChangeEventHandler<HTMLInputElement>;
19
20
  });
20
- export declare function FilterGroup({ id, testid, label, type, open, showMore, onShowMore, onClearAll, children, showSearchField, searchValue, onSearchChange, ...props }: ComponentProps<"div"> & FilterGroupProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function FilterGroup({ id, testid, label, type, defaultOpen, showMore, bordered, onShowMore, onClearAll, children, showSearchField, searchValue, onSearchChange, ...props }: ComponentProps<"div"> & FilterGroupProps): import("react/jsx-runtime").JSX.Element;
21
22
  type FilterGroupItemProps = {
22
23
  id?: string;
23
24
  testid?: string;
24
25
  count?: number;
26
+ active?: boolean;
25
27
  type?: FilterGroupProps["type"];
26
28
  };
27
- export declare function FilterGroupItem({ id, testid, type, children, onClick, ...props }: ComponentProps<React.ElementType> & FilterGroupItemProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function FilterGroupItem({ id, testid, type, count, active, children, onClick, ...props }: ComponentProps<React.ElementType> & FilterGroupItemProps): import("react/jsx-runtime").JSX.Element;
28
30
  export {};
29
31
  //# sourceMappingURL=FilterGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FilterGroup.d.ts","sourceRoot":"","sources":["../../src/components/FilterGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAsC,MAAM,OAAO,CAAC;AAkB3E,KAAK,gBAAgB,GAAG;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB,GAAG,CACA;IACE,eAAe,EAAE,IAAI,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;CAC5D,GACD;IACE,eAAe,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;CAC7D,CACJ,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,EAAE,EACF,MAAM,EACN,KAAK,EACL,IAAa,EACb,IAAY,EACZ,QAAgB,EAChB,UAAU,EACV,UAAU,EACV,QAAQ,EACR,eAAuB,EACvB,WAAW,EACX,cAAc,EACd,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,gBAAgB,2CA2H1C;AAED,KAAK,oBAAoB,GAAG;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC9B,EAAE,EACF,MAAM,EACN,IAAa,EACb,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,oBAAoB,2CAkC1D"}
1
+ {"version":3,"file":"FilterGroup.d.ts","sourceRoot":"","sources":["../../src/components/FilterGroup.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAsC,MAAM,OAAO,CAAC;AAkB3E,KAAK,gBAAgB,GAAG;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB,GAAG,CACA;IACE,eAAe,EAAE,IAAI,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;CAC5D,GACD;IACE,eAAe,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;CAC7D,CACJ,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,EAAE,EACF,MAAM,EACN,KAAK,EACL,IAAa,EACb,WAAmB,EACnB,QAAgB,EAChB,QAAe,EACf,UAAU,EACV,UAAU,EACV,QAAQ,EACR,eAAuB,EACvB,WAAW,EACX,cAAc,EACd,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,gBAAgB,2CA2H1C;AAED,KAAK,oBAAoB,GAAG;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;CACjC,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC9B,EAAE,EACF,MAAM,EACN,IAAa,EACb,KAAK,EACL,MAAM,EACN,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,oBAAoB,2CAkC1D"}
@@ -0,0 +1,198 @@
1
+ "use client";
2
+ import { jsxs as s, jsx as r } from "react/jsx-runtime";
3
+ import { useState as b, Children as M, isValidElement as O } from "react";
4
+ import { Label as T } from "./Label.js";
5
+ import { Checkbox as _ } from "./Checkbox.js";
6
+ import { OptionPill as V } from "./OptionPill.js";
7
+ import { clsx as t } from "../node_modules/clsx/dist/clsx.js";
8
+ import { Link as v } from "./Link.js";
9
+ import { Search as Y } from "./Search.js";
10
+ import { baseTransition as x, componentPaddingY as y, layoutGroupGap as q, componentGap as C, layoutPaddingBottom as z, componentPaddingBottom as D } from "../classNames.js";
11
+ import { Icon as H } from "./Icon.js";
12
+ function no({
13
+ id: e,
14
+ testid: o,
15
+ label: n,
16
+ type: i = "link",
17
+ defaultOpen: d = !1,
18
+ showMore: p = !1,
19
+ bordered: f = !0,
20
+ onShowMore: m,
21
+ onClearAll: h,
22
+ children: u,
23
+ showSearchField: N = !1,
24
+ searchValue: $,
25
+ onSearchChange: P,
26
+ ...S
27
+ }) {
28
+ const a = i === "summary", [g, A] = b(d), [w, G] = b(!1), c = g, k = M.toArray(u).filter(O), I = a || w, j = k.slice(
29
+ 0,
30
+ I ? k.length : 5
31
+ ), E = p && !a && k.length > 5 && !w && c;
32
+ return /* @__PURE__ */ s(
33
+ "div",
34
+ {
35
+ id: e,
36
+ "data-testid": o,
37
+ ...S,
38
+ className: t(
39
+ f && "border-b border-border-primary-normal",
40
+ a ? z : D
41
+ ),
42
+ children: [
43
+ /* @__PURE__ */ s(
44
+ "div",
45
+ {
46
+ className: t(
47
+ "flex items-center justify-between cursor-pointer",
48
+ q
49
+ ),
50
+ onClick: F,
51
+ children: [
52
+ /* @__PURE__ */ r(T, { children: n }),
53
+ i !== "summary" ? /* @__PURE__ */ r(
54
+ H,
55
+ {
56
+ name: "keyboard_arrow_down",
57
+ className: t(
58
+ x.replace(
59
+ "transition-colors",
60
+ "transition-transform"
61
+ ),
62
+ c && "rotate-180",
63
+ "text-icon-action-primary-normal"
64
+ )
65
+ }
66
+ ) : /* @__PURE__ */ r(
67
+ v,
68
+ {
69
+ id: e ? `${e}-clear-all` : void 0,
70
+ testid: o ? `${o}-clear-all` : void 0,
71
+ className: t("block", y),
72
+ onClick: L,
73
+ children: "Clear All"
74
+ }
75
+ )
76
+ ]
77
+ }
78
+ ),
79
+ /* @__PURE__ */ r(
80
+ "div",
81
+ {
82
+ className: t(
83
+ "grid",
84
+ x.replace(
85
+ "transition-colors",
86
+ "transition-[grid-template-rows]"
87
+ ),
88
+ c || a ? "grid-rows-[1fr]" : "grid-rows-[0fr]"
89
+ ),
90
+ children: /* @__PURE__ */ s(
91
+ "div",
92
+ {
93
+ className: t(
94
+ "overflow-hidden",
95
+ C,
96
+ (c || a || g) && "mt-mobile-component-gap desktop:mt-desktop-component-gap compact:mt-desktop-compact-component-gap"
97
+ ),
98
+ children: [
99
+ !a && N && /* @__PURE__ */ r(
100
+ Y,
101
+ {
102
+ id: e ? `${e}-search` : void 0,
103
+ testid: o ? `${o}-search` : void 0,
104
+ style: { marginBottom: "2px" },
105
+ onChange: P,
106
+ value: $
107
+ }
108
+ ),
109
+ /* @__PURE__ */ r("div", { className: t(a && `flex flex-col ${C}`), children: j }),
110
+ E && /* @__PURE__ */ r(
111
+ v,
112
+ {
113
+ id: e ? `${e}-show-more` : void 0,
114
+ testid: o ? `${o}-show-more` : void 0,
115
+ className: t("block", "!items-start", y),
116
+ onClick: B,
117
+ children: "Show More"
118
+ }
119
+ )
120
+ ]
121
+ }
122
+ )
123
+ }
124
+ )
125
+ ]
126
+ }
127
+ );
128
+ function B(l) {
129
+ l.stopPropagation(), G(!0), m?.();
130
+ }
131
+ function F(l) {
132
+ i !== "summary" && (l.stopPropagation(), A(!g));
133
+ }
134
+ function L(l) {
135
+ l.stopPropagation(), h?.();
136
+ }
137
+ }
138
+ function to({
139
+ id: e,
140
+ testid: o,
141
+ type: n = "link",
142
+ count: i,
143
+ active: d,
144
+ children: p,
145
+ onClick: f,
146
+ ...m
147
+ }) {
148
+ return /* @__PURE__ */ r(
149
+ "div",
150
+ {
151
+ id: e,
152
+ "data-testid": o,
153
+ onClick: h,
154
+ ...m,
155
+ className: t(
156
+ "flex items-center justify-between *:first:flex-1 cursor-pointer",
157
+ n !== "summary" ? "*:first:py-mobile-component-padding *:first:desktop:py-desktop-component-padding *:first:compact:py-desktop-compact-component-padding" : ""
158
+ ),
159
+ children: /* @__PURE__ */ r(
160
+ J,
161
+ {
162
+ ...m,
163
+ id: e ? `${e}-child` : void 0,
164
+ "data-testid": o ? `${o}-child` : void 0,
165
+ type: n,
166
+ active: d,
167
+ children: /* @__PURE__ */ s("span", { className: "flex items-center justify-between w-full", children: [
168
+ p,
169
+ n !== "summary" && i && /* @__PURE__ */ s("span", { children: [
170
+ "(",
171
+ i,
172
+ ")"
173
+ ] })
174
+ ] })
175
+ }
176
+ )
177
+ }
178
+ );
179
+ function h(u) {
180
+ u.stopPropagation(), f?.();
181
+ }
182
+ }
183
+ const J = ({
184
+ type: e = "link",
185
+ children: o,
186
+ ...n
187
+ }) => e === "checkbox" ? /* @__PURE__ */ r(
188
+ _,
189
+ {
190
+ paragraphClassName: "w-full",
191
+ label: o,
192
+ ...n
193
+ }
194
+ ) : e === "summary" ? /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(V, { removable: !0, ...n, children: o }) }) : /* @__PURE__ */ r(v, { variant: "secondary", ...n, children: o });
195
+ export {
196
+ no as FilterGroup,
197
+ to as FilterGroupItem
198
+ };
@@ -0,0 +1,19 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ function a({
3
+ children: e,
4
+ id: n,
5
+ testid: t
6
+ }) {
7
+ return /* @__PURE__ */ o(
8
+ "div",
9
+ {
10
+ id: n,
11
+ "data-testid": t,
12
+ className: "flex flex-col min-h-screen min-w-screen p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding items-center justify-center bg-background-grouped-secondary-normal",
13
+ children: e
14
+ }
15
+ );
16
+ }
17
+ export {
18
+ a as FullViewportLayout
19
+ };
@@ -0,0 +1,54 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { clsx as u } from "../node_modules/clsx/dist/clsx.js";
3
+ const n = {
4
+ none: "gap-0",
5
+ "layout-group": "gap-mobile-layout-group-gap desktop:gap-desktop-layout-group-gap compact:gap-compact-layout-group-gap",
6
+ layout: "gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-compact-layout-gap",
7
+ container: "gap-mobile-container-gap desktop:gap-desktop-container-gap compact:gap-compact-container-gap",
8
+ component: "gap-mobile-component-gap desktop:gap-desktop-component-gap compact:gap-compact-component-gap"
9
+ }, e = {
10
+ none: "p-0",
11
+ container: "p-mobile-container-padding desktop:p-desktop-container-padding compact:p-desktop-compact-container-padding",
12
+ layout: "p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
13
+ "layout-group": "p-mobile-layout-group-padding desktop:p-desktop-layout-group-padding compact:p-desktop-compact-layout-group-padding",
14
+ component: "p-mobile-component-padding desktop:p-desktop-component-padding compact:p-desktop-compact-component-padding"
15
+ }, k = (a, o) => {
16
+ const t = [`grid-cols-${a}`];
17
+ return o && Object.entries(o).forEach(([c, p]) => {
18
+ p && p > 0 && t.push(`${c}:grid-cols-${p}`);
19
+ }), t.join(" ");
20
+ };
21
+ function f({
22
+ children: a,
23
+ sizing: o = "container",
24
+ padding: t,
25
+ columns: c,
26
+ responsive: p,
27
+ id: d,
28
+ testid: g,
29
+ style: i,
30
+ className: s,
31
+ ...m
32
+ }) {
33
+ const l = k(c, p);
34
+ return /* @__PURE__ */ r(
35
+ "div",
36
+ {
37
+ id: d,
38
+ "data-testid": g,
39
+ style: i,
40
+ ...m,
41
+ className: u(
42
+ "w-full grid",
43
+ n[o] ?? n.container,
44
+ t && (e[o] ?? e.container),
45
+ l,
46
+ s
47
+ ),
48
+ children: a
49
+ }
50
+ );
51
+ }
52
+ export {
53
+ f as Grid
54
+ };
@@ -0,0 +1,50 @@
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { clsx as g } from "../node_modules/clsx/dist/clsx.js";
3
+ import { typography as l } from "../classNames.js";
4
+ function i({
5
+ className: e,
6
+ children: t,
7
+ as: h,
8
+ color: o,
9
+ align: r,
10
+ variant: a = "heading1",
11
+ id: c,
12
+ testid: f,
13
+ ...d
14
+ }) {
15
+ return /* @__PURE__ */ n(
16
+ h ?? (a === "heading1" ? "h1" : a === "heading2" ? "h2" : "h3"),
17
+ {
18
+ id: c,
19
+ "data-testid": f,
20
+ className: g(
21
+ l[a],
22
+ e,
23
+ r === "left" && "text-left",
24
+ r === "center" && "text-center",
25
+ r === "right" && "text-right"
26
+ ),
27
+ style: {
28
+ ...d.style,
29
+ color: o ? `var(--color-${o})` : void 0
30
+ },
31
+ ...d,
32
+ children: t
33
+ }
34
+ );
35
+ }
36
+ function p({ variant: e, ...t }) {
37
+ return /* @__PURE__ */ n(i, { ...t, variant: "heading1" });
38
+ }
39
+ function y({ variant: e, ...t }) {
40
+ return /* @__PURE__ */ n(i, { ...t, variant: "heading2" });
41
+ }
42
+ function E({ variant: e, ...t }) {
43
+ return /* @__PURE__ */ n(i, { ...t, variant: "heading3" });
44
+ }
45
+ export {
46
+ i as Heading,
47
+ p as Heading1,
48
+ y as Heading2,
49
+ E as Heading3
50
+ };