@dmsi/wedgekit-react 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classNames.js +150 -0
- package/dist/components/AccessCard.js +63 -0
- package/dist/components/AccessCardGroup.js +73 -0
- package/dist/components/AccessChangerTabItem.js +51 -0
- package/dist/components/Accordion.js +99 -0
- package/dist/components/Alert.js +78 -0
- package/dist/components/Breadcrumbs.js +111 -0
- package/dist/components/Button.js +137 -0
- package/dist/components/CalendarRange.d.ts.map +1 -1
- package/dist/components/CalendarRange.js +406 -0
- package/dist/components/Caption.js +99 -0
- package/dist/components/Card.js +50 -0
- package/dist/components/Checkbox.js +108 -0
- package/dist/components/CompactImagesPreview.d.ts.map +1 -1
- package/dist/components/CompactImagesPreview.js +121 -0
- package/dist/components/ContentTab.js +68 -0
- package/dist/components/ContentTabs.js +96 -0
- package/dist/components/DMSiLogo.js +54 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.d.ts.map +1 -1
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +28 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.d.ts.map +1 -1
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +80 -0
- package/dist/components/DataGrid/PinnedColumns.js +165 -0
- package/dist/components/DataGrid/SummaryRow/SummaryCell.js +51 -0
- package/dist/components/DataGrid/SummaryRow/aggregations.js +55 -0
- package/dist/components/DataGrid/SummaryRow/index.js +86 -0
- package/dist/components/DataGrid/TableBody/GroupRow.js +243 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.js +33 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +136 -0
- package/dist/components/DataGrid/TableBody/index.js +161 -0
- package/dist/components/DataGrid/index.js +696 -0
- package/dist/components/DataGrid/utils.js +20 -0
- package/dist/components/DataGridCell.js +412 -0
- package/dist/components/DataTable.js +700 -0
- package/dist/components/DateInput.d.ts.map +1 -1
- package/dist/components/DateInput.js +194 -0
- package/dist/components/DateRangeInput.d.ts.map +1 -1
- package/dist/components/DateRangeInput.js +369 -0
- package/dist/components/DebugJson.js +28 -0
- package/dist/components/Display.js +46 -0
- package/dist/components/EditingContext.js +34 -0
- package/dist/components/EmblaCarousel/ArrowButtons.js +83 -0
- package/dist/components/EmblaCarousel/SelectedSnapDisplay.js +12 -0
- package/dist/components/EmblaCarousel/index.d.ts.map +1 -1
- package/dist/components/EmblaCarousel/index.js +154 -0
- package/dist/components/EmblaCarousel/usePrevNextButtons.d.ts.map +1 -1
- package/dist/components/EmblaCarousel/usePrevNextButtons.js +22 -0
- package/dist/components/EmblaCarousel/useSelectedSnapDisplay.d.ts.map +1 -1
- package/dist/components/EmblaCarousel/useSelectedSnapDisplay.js +16 -0
- package/dist/components/EmptyCartIcon.js +25 -0
- package/dist/components/FilterGroup.js +198 -0
- package/dist/components/FullViewportBox.js +19 -0
- package/dist/components/Grid.js +54 -0
- package/dist/components/Heading.js +50 -0
- package/dist/components/HorizontalDivider.js +20 -0
- package/dist/components/Icon.js +73 -0
- package/dist/components/ImagePlaceholder.d.ts.map +1 -1
- package/dist/components/ImagePlaceholder.js +23 -0
- package/dist/components/Input.js +469 -0
- package/dist/components/InputGroup.js +45 -0
- package/dist/components/Label.js +37 -0
- package/dist/components/Link.js +69 -0
- package/dist/components/List.js +12 -0
- package/dist/components/ListGroup.d.ts.map +1 -1
- package/dist/components/ListGroup.js +55 -0
- package/dist/components/LiveChatComponent.js +25 -0
- package/dist/components/LoadingScrim.js +22 -0
- package/dist/components/LogoAgilityTopBar.js +90 -0
- package/dist/components/LogoDMSiTopBar.js +54 -0
- package/dist/components/LogoMillworkTopBar.js +196 -0
- package/dist/components/MainBar.js +58 -0
- package/dist/components/MaxViewportBox.js +19 -0
- package/dist/components/Menu.js +202 -0
- package/dist/components/MenuOption.js +161 -0
- package/dist/components/MobileDataGrid/ColumnList.js +85 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.d.ts.map +1 -1
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +101 -0
- package/dist/components/MobileDataGrid/GridContextProvider/GridContext.d.ts.map +1 -1
- package/dist/components/MobileDataGrid/GridContextProvider/GridContext.js +6 -0
- package/dist/components/MobileDataGrid/GridContextProvider/index.d.ts.map +1 -1
- package/dist/components/MobileDataGrid/GridContextProvider/index.js +81 -0
- package/dist/components/MobileDataGrid/GridContextProvider/useGridContext.d.ts.map +1 -1
- package/dist/components/MobileDataGrid/GridContextProvider/useGridContext.js +12 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.js +18 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +130 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +67 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +42 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +58 -0
- package/dist/components/MobileDataGrid/dataGridReducer.js +28 -0
- package/dist/components/MobileDataGrid/index.js +78 -0
- package/dist/components/MobileNavMenu.js +173 -0
- package/dist/components/Modal.js +201 -0
- package/dist/components/ModalButtons.js +57 -0
- package/dist/components/ModalContent.js +24 -0
- package/dist/components/ModalHeader.js +74 -0
- package/dist/components/ModalScrim.js +32 -0
- package/dist/components/NavigationTab.js +72 -0
- package/dist/components/NavigationTabs.js +45 -0
- package/dist/components/NestedMenu.js +119 -0
- package/dist/components/Notification.js +91 -0
- package/dist/components/OptionPill.js +103 -0
- package/dist/components/OrderCheckIcon.js +28 -0
- package/dist/components/PDFViewer/DownloadIcon.js +25 -0
- package/dist/components/PDFViewer/PDFElement.js +77 -0
- package/dist/components/PDFViewer/PDFNavigation.js +64 -0
- package/dist/components/PDFViewer/PDFPage.js +28 -0
- package/dist/components/PDFViewer/index.js +124 -0
- package/dist/components/Pagination.js +117 -0
- package/dist/components/Paragraph.js +43 -0
- package/dist/components/Password.js +47 -0
- package/dist/components/ProductImagePreview/CarouselPagination.js +48 -0
- package/dist/components/ProductImagePreview/MobileImageCarousel.d.ts.map +1 -1
- package/dist/components/ProductImagePreview/MobileImageCarousel.js +147 -0
- package/dist/components/ProductImagePreview/ProductPrimaryImage.d.ts.map +1 -1
- package/dist/components/ProductImagePreview/ProductPrimaryImage.js +139 -0
- package/dist/components/ProductImagePreview/Thumbnail.d.ts.map +1 -1
- package/dist/components/ProductImagePreview/Thumbnail.js +47 -0
- package/dist/components/ProductImagePreview/ZoomWindow.js +74 -0
- package/dist/components/ProductImagePreview/index.d.ts.map +1 -1
- package/dist/components/ProductImagePreview/index.js +190 -0
- package/dist/components/ProductImagePreview/useProductImagePreview.d.ts.map +1 -1
- package/dist/components/ProductImagePreview/useProductImagePreview.js +86 -0
- package/dist/components/ProjectBar.js +54 -0
- package/dist/components/Radio.js +113 -0
- package/dist/components/Search.js +89 -0
- package/dist/components/SearchResultImage/index.d.ts.map +1 -1
- package/dist/components/SearchResultImage/index.js +27 -0
- package/dist/components/Select.js +122 -0
- package/dist/components/SideMenu.js +24 -0
- package/dist/components/SideMenuGroup.js +80 -0
- package/dist/components/SideMenuItem.js +79 -0
- package/dist/components/SimpleTable.js +60 -0
- package/dist/components/SkeletonParagraph.js +24 -0
- package/dist/components/Spinner.js +30 -0
- package/dist/components/Stack.js +174 -0
- package/dist/components/StatusPill.js +44 -0
- package/dist/components/Stepper.js +138 -0
- package/dist/components/Subheader.js +41 -0
- package/dist/components/Surface.js +30 -0
- package/dist/components/Swatch.js +1498 -0
- package/dist/components/Textarea.js +106 -0
- package/dist/components/Theme.js +25 -0
- package/dist/components/Time.d.ts.map +1 -1
- package/dist/components/Time.js +226 -0
- package/dist/components/Toast.js +170 -0
- package/dist/components/Tooltip.js +102 -0
- package/dist/components/TopBar.js +119 -0
- package/dist/components/Upload.js +107 -0
- package/dist/components/WorldpayIframe.js +19 -0
- package/dist/hooks/useEditCell.d.ts.map +1 -1
- package/dist/hooks/useEditCell.js +24 -0
- package/dist/hooks/useInfiniteScroll.js +25 -0
- package/dist/hooks/useKeydown.d.ts.map +1 -1
- package/dist/hooks/useKeydown.js +21 -0
- package/dist/hooks/useMatchesMedia.d.ts.map +1 -1
- package/dist/hooks/useMatchesMedia.js +16 -0
- package/dist/hooks/useMenuSystem.js +186 -0
- package/dist/hooks/useMounted.js +9 -0
- package/dist/hooks/useTableLayout/computeColumns.js +59 -0
- package/dist/hooks/useTableLayout/storage.js +64 -0
- package/dist/hooks/useTableLayout/useTableLayout.js +163 -0
- package/dist/index.js +249 -53839
- package/dist/lib/loadFonts.js +11 -0
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +56 -0
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.js +2299 -0
- package/dist/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.js +13 -0
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +367 -0
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +235 -0
- package/dist/node_modules/@headlessui/react/dist/components/description/description.js +45 -0
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +4 -0
- package/dist/node_modules/@headlessui/react/dist/components/label/label.js +62 -0
- package/dist/node_modules/@headlessui/react/dist/components/switch/switch.js +56 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js +33 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-controllable.js +10 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-default-value.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +9 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +9 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +11 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +12 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.js +7 -0
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +16 -0
- package/dist/node_modules/@headlessui/react/dist/internal/disabled.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/internal/form-fields.js +35 -0
- package/dist/node_modules/@headlessui/react/dist/internal/hidden.js +13 -0
- package/dist/node_modules/@headlessui/react/dist/internal/id.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +19 -0
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +6 -0
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +40 -0
- package/dist/node_modules/@headlessui/react/dist/utils/dom.js +34 -0
- package/dist/node_modules/@headlessui/react/dist/utils/env.js +34 -0
- package/dist/node_modules/@headlessui/react/dist/utils/form.js +32 -0
- package/dist/node_modules/@headlessui/react/dist/utils/match.js +11 -0
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/utils/owner.js +8 -0
- package/dist/node_modules/@headlessui/react/dist/utils/render.js +126 -0
- package/dist/node_modules/@js-temporal/polyfill/dist/index.esm.js +3913 -0
- package/dist/node_modules/@mikecousins/react-pdf/dist/index.js +83 -0
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.js +38 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.js +31 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.js +99 -0
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.js +59 -0
- package/dist/node_modules/@react-aria/interactions/dist/useHover.js +86 -0
- package/dist/node_modules/@react-aria/interactions/dist/utils.js +68 -0
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.js +32 -0
- package/dist/node_modules/@react-aria/utils/dist/domHelpers.js +15 -0
- package/dist/node_modules/@react-aria/utils/dist/focusWithoutScrolling.js +45 -0
- package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.js +7 -0
- package/dist/node_modules/@react-aria/utils/dist/openLink.js +28 -0
- package/dist/node_modules/@react-aria/utils/dist/platform.js +47 -0
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.js +34 -0
- package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.js +6 -0
- package/dist/node_modules/@react-stately/flags/dist/import.js +7 -0
- package/dist/node_modules/@tanstack/react-table/build/lib/index.js +94 -0
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +38 -0
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1954 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +575 -0
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +52 -0
- package/dist/node_modules/clsx/dist/clsx.js +17 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1204 -0
- package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +126 -0
- package/dist/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js +24 -0
- package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +35 -0
- package/dist/node_modules/jsbi/dist/jsbi.js +1040 -0
- package/dist/node_modules/react-use/esm/usePrevious.js +10 -0
- package/dist/static/no-results-image.png.js +4 -0
- package/dist/utils/date-patch-dashes.js +28 -0
- package/dist/utils/date.js +95 -0
- package/dist/utils/formatting.js +22 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +4 -0
- package/dist/utils/mergeObjectArrays.js +18 -0
- package/dist/utils.js +20 -0
- package/package.json +1 -1
- /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
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/EmblaCarousel/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/EmblaCarousel/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAEL,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAWxB,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAC;CAC3D,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAIF,eAAO,MAAM,aAAa,GAAI,gFAO3B,QAAQ,4CAgNV,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as a, jsx as o, Fragment as G } from "react/jsx-runtime";
|
|
3
|
+
import J, { useRef as x, useEffect as g, useCallback as b } from "react";
|
|
4
|
+
import K from "../../node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js";
|
|
5
|
+
import Q from "../../node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js";
|
|
6
|
+
import { SelectedSnapDisplay as U } from "./SelectedSnapDisplay.js";
|
|
7
|
+
import { useSelectedSnapDisplay as Y } from "./useSelectedSnapDisplay.js";
|
|
8
|
+
import { PrevButton as F, NextButton as A } from "./ArrowButtons.js";
|
|
9
|
+
import { usePrevNextButtons as Z } from "./usePrevNextButtons.js";
|
|
10
|
+
import { useMatchesMobile as ee } from "../../hooks/useMatchesMedia.js";
|
|
11
|
+
import { clsx as k } from "../../node_modules/clsx/dist/clsx.js";
|
|
12
|
+
const te = 0.2, fe = ({
|
|
13
|
+
options: D,
|
|
14
|
+
children: H,
|
|
15
|
+
testid: M,
|
|
16
|
+
leftRightChevrons: n = !1,
|
|
17
|
+
autoplay: c = !1,
|
|
18
|
+
chevronThemeColor: l = !1
|
|
19
|
+
}) => {
|
|
20
|
+
const j = Q({ delay: 4e3 }), [L, e] = K(
|
|
21
|
+
D,
|
|
22
|
+
c ? [j] : []
|
|
23
|
+
), v = x(null), [h, T] = J.useState(
|
|
24
|
+
void 0
|
|
25
|
+
);
|
|
26
|
+
g(() => {
|
|
27
|
+
if (!e || !n) return;
|
|
28
|
+
const t = () => {
|
|
29
|
+
const s = e.selectedScrollSnap(), i = e.slideNodes()[s];
|
|
30
|
+
i && v.current && T(i.offsetHeight);
|
|
31
|
+
};
|
|
32
|
+
return t(), e.on("select", t).on("reInit", t), () => {
|
|
33
|
+
e.off("select", t), e.off("reInit", t);
|
|
34
|
+
};
|
|
35
|
+
}, [e, n]), g(() => {
|
|
36
|
+
!e || !c || e.plugins()?.autoplay?.play();
|
|
37
|
+
}, [e, c]);
|
|
38
|
+
const {
|
|
39
|
+
prevBtnDisabled: N,
|
|
40
|
+
nextBtnDisabled: y,
|
|
41
|
+
onPrevButtonClick: R,
|
|
42
|
+
onNextButtonClick: V
|
|
43
|
+
} = Z(e), { selectedSnap: q, snapCount: O } = Y(e), w = x(0), S = x([]), _ = ee(), d = b((t) => {
|
|
44
|
+
S.current = t.slideNodes().map((s) => s.querySelector(".embla__parallax__layer"));
|
|
45
|
+
}, []), u = b((t) => {
|
|
46
|
+
w.current = te * t.scrollSnapList().length;
|
|
47
|
+
}, []), r = b(
|
|
48
|
+
(t) => {
|
|
49
|
+
const s = t.internalEngine(), i = t.scrollProgress(), W = t.slidesInView();
|
|
50
|
+
t.scrollSnapList().forEach((p, X) => {
|
|
51
|
+
let f = p - i;
|
|
52
|
+
s.slideRegistry[X].forEach((m) => {
|
|
53
|
+
if (!W.includes(m)) return;
|
|
54
|
+
s.options.loop && s.slideLooper.loopPoints.forEach((B) => {
|
|
55
|
+
const C = B.target();
|
|
56
|
+
if (m === B.index && C !== 0) {
|
|
57
|
+
const I = Math.sign(C);
|
|
58
|
+
I === -1 && (f = p - (1 + i)), I === 1 && (f = p + (1 - i));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
const $ = f * (-1 * w.current) * 100, P = S.current[m];
|
|
62
|
+
P && (P.style.transform = `translateX(${$}%)`);
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
[]
|
|
67
|
+
);
|
|
68
|
+
g(() => {
|
|
69
|
+
!e || !_ || (d(e), u(e), r(e), e.on("reInit", d).on("reInit", u).on("reInit", r).on("scroll", r).on("slideFocus", r));
|
|
70
|
+
}, [e, _, d, u, r]);
|
|
71
|
+
const E = () => {
|
|
72
|
+
R(), e?.plugins()?.autoplay?.reset();
|
|
73
|
+
}, z = () => {
|
|
74
|
+
V(), e?.plugins()?.autoplay?.reset();
|
|
75
|
+
};
|
|
76
|
+
return /* @__PURE__ */ a(
|
|
77
|
+
"section",
|
|
78
|
+
{
|
|
79
|
+
className: "w-full m-auto grid gap-4 relative",
|
|
80
|
+
"data-testid": M,
|
|
81
|
+
ref: n ? v : void 0,
|
|
82
|
+
style: n && h ? { height: h, transition: "height 0.3s ease" } : void 0,
|
|
83
|
+
children: [
|
|
84
|
+
/* @__PURE__ */ o("div", { className: "embla__viewport overflow-hidden", ref: L, children: /* @__PURE__ */ o(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
className: k(
|
|
88
|
+
"embla__container flex touch-pan-y touch-pinch-zoom",
|
|
89
|
+
!n && "desktop:pb-3 gap-2"
|
|
90
|
+
),
|
|
91
|
+
children: H
|
|
92
|
+
}
|
|
93
|
+
) }),
|
|
94
|
+
n ? /* @__PURE__ */ a(G, { children: [
|
|
95
|
+
/* @__PURE__ */ o(
|
|
96
|
+
F,
|
|
97
|
+
{
|
|
98
|
+
className: "absolute top-1/2 -translate-y-1/2 left-0 border-transparent! size-10! desktop:size-12!",
|
|
99
|
+
iconClassName: k(
|
|
100
|
+
"size-6! desktop:size-8!",
|
|
101
|
+
l && "text-text-link-normal group-hover:text-text-link-hover group-active:text-text-link-active",
|
|
102
|
+
!l && "text-white group-hover:text-text-link-normal group-active:text-text-link-active"
|
|
103
|
+
),
|
|
104
|
+
onClick: E,
|
|
105
|
+
disabled: N
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ o(
|
|
109
|
+
A,
|
|
110
|
+
{
|
|
111
|
+
className: "absolute top-1/2 -translate-y-1/2 right-0 border-transparent! size-10! desktop:size-12!",
|
|
112
|
+
iconClassName: k(
|
|
113
|
+
"size-6! desktop:size-8!",
|
|
114
|
+
l && "text-text-link-normal group-hover:text-text-link-hover group-active:text-text-link-active",
|
|
115
|
+
!l && "text-white group-hover:text-text-link-normal group-active:text-text-link-active"
|
|
116
|
+
),
|
|
117
|
+
onClick: z,
|
|
118
|
+
disabled: y
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
] }) : /* @__PURE__ */ a("div", { className: "justify-between hidden desktop:flex", children: [
|
|
122
|
+
/* @__PURE__ */ a("div", { className: "flex items-center gap-2", children: [
|
|
123
|
+
/* @__PURE__ */ o(
|
|
124
|
+
F,
|
|
125
|
+
{
|
|
126
|
+
circleChevron: !0,
|
|
127
|
+
onClick: E,
|
|
128
|
+
disabled: N
|
|
129
|
+
}
|
|
130
|
+
),
|
|
131
|
+
/* @__PURE__ */ o(
|
|
132
|
+
A,
|
|
133
|
+
{
|
|
134
|
+
circleChevron: !0,
|
|
135
|
+
onClick: z,
|
|
136
|
+
disabled: y
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
] }),
|
|
140
|
+
/* @__PURE__ */ o(
|
|
141
|
+
U,
|
|
142
|
+
{
|
|
143
|
+
selectedSnap: q,
|
|
144
|
+
snapCount: O
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
] })
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
};
|
|
152
|
+
export {
|
|
153
|
+
fe as EmblaCarousel
|
|
154
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePrevNextButtons.d.ts","sourceRoot":"","sources":["../../../src/components/EmblaCarousel/usePrevNextButtons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePrevNextButtons.d.ts","sourceRoot":"","sources":["../../../src/components/EmblaCarousel/usePrevNextButtons.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,KAAK,sBAAsB,GAAG;IAC5B,eAAe,EAAE,OAAO,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,iBAAiB,EAAE,MAAM,IAAI,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,UAAU,iBAAiB,GAAG,SAAS,KACtC,sBAgCF,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState as o, useCallback as n, useEffect as f } from "react";
|
|
3
|
+
const N = (t) => {
|
|
4
|
+
const [s, c] = o(!0), [u, l] = o(!0), x = n(() => {
|
|
5
|
+
t && t.scrollPrev();
|
|
6
|
+
}, [t]), B = n(() => {
|
|
7
|
+
t && t.scrollNext();
|
|
8
|
+
}, [t]), e = n((r) => {
|
|
9
|
+
c(!r.canScrollPrev()), l(!r.canScrollNext());
|
|
10
|
+
}, []);
|
|
11
|
+
return f(() => {
|
|
12
|
+
t && (e(t), t.on("reInit", e).on("select", e));
|
|
13
|
+
}, [t, e]), {
|
|
14
|
+
prevBtnDisabled: s,
|
|
15
|
+
nextBtnDisabled: u,
|
|
16
|
+
onPrevButtonClick: x,
|
|
17
|
+
onNextButtonClick: B
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
N as usePrevNextButtons
|
|
22
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectedSnapDisplay.d.ts","sourceRoot":"","sources":["../../../src/components/EmblaCarousel/useSelectedSnapDisplay.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSelectedSnapDisplay.d.ts","sourceRoot":"","sources":["../../../src/components/EmblaCarousel/useSelectedSnapDisplay.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,KAAK,0BAA0B,GAAG;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,UAAU,iBAAiB,GAAG,SAAS,KACtC,0BAqBF,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState as s, useCallback as l, useEffect as a } from "react";
|
|
3
|
+
const p = (t) => {
|
|
4
|
+
const [c, o] = s(0), [S, r] = s(0), e = l((n) => {
|
|
5
|
+
r(n.scrollSnapList().length), o(n.selectedScrollSnap());
|
|
6
|
+
}, []);
|
|
7
|
+
return a(() => {
|
|
8
|
+
t && (e(t), t.on("select", e), t.on("reInit", e));
|
|
9
|
+
}, [t, e]), {
|
|
10
|
+
selectedSnap: c,
|
|
11
|
+
snapCount: S
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
p as useSelectedSnapDisplay
|
|
16
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as a } from "../node_modules/clsx/dist/clsx.js";
|
|
3
|
+
function n({ id: r, testid: o, hideOnMobile: t, className: e, ...d }) {
|
|
4
|
+
return /* @__PURE__ */ i(
|
|
5
|
+
"hr",
|
|
6
|
+
{
|
|
7
|
+
id: r,
|
|
8
|
+
"data-testid": o,
|
|
9
|
+
className: a(
|
|
10
|
+
"w-full border-t border-border-primary-normal",
|
|
11
|
+
t && "hidden desktop:block",
|
|
12
|
+
e
|
|
13
|
+
),
|
|
14
|
+
...d
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
n as HorizontalDivider
|
|
20
|
+
};
|