@dmsi/wedgekit-react 0.0.1241 → 1.0.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.
- package/README.md +4 -32
- package/dist/classNames.d.ts +41 -0
- package/dist/classNames.d.ts.map +1 -0
- package/dist/components/AccessCard.d.ts +14 -0
- package/dist/components/AccessCard.d.ts.map +1 -0
- package/dist/components/AccessCardGroup.d.ts +15 -0
- package/dist/components/AccessCardGroup.d.ts.map +1 -0
- package/dist/components/AccessChangerTabItem.d.ts +11 -0
- package/dist/components/AccessChangerTabItem.d.ts.map +1 -0
- package/dist/components/Accordion.d.ts +15 -0
- package/dist/components/Accordion.d.ts.map +1 -0
- package/dist/components/Alert.d.ts +13 -0
- package/dist/components/Alert.d.ts.map +1 -0
- package/dist/components/Breadcrumbs.d.ts +19 -0
- package/dist/components/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/Button.d.ts +46 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/CalendarRange.d.ts +28 -0
- package/dist/components/CalendarRange.d.ts.map +1 -0
- package/dist/components/Caption.d.ts +15 -0
- package/dist/components/Caption.d.ts.map +1 -0
- package/dist/components/Card.d.ts +28 -0
- package/dist/components/Card.d.ts.map +1 -0
- package/dist/components/Checkbox.d.ts +12 -0
- package/dist/components/Checkbox.d.ts.map +1 -0
- package/dist/components/CompactImagesPreview.d.ts +25 -0
- package/dist/components/CompactImagesPreview.d.ts.map +1 -0
- package/dist/components/ContentTab.d.ts +12 -0
- package/dist/components/ContentTab.d.ts.map +1 -0
- package/dist/components/ContentTabs.d.ts +23 -0
- package/dist/components/ContentTabs.d.ts.map +1 -0
- package/dist/components/DMSiLogo.d.ts +2 -0
- package/dist/components/DMSiLogo.d.ts.map +1 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.d.ts +8 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.d.ts.map +1 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.d.ts +9 -0
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.d.ts.map +1 -0
- package/dist/components/DataGrid/PinnedColumns.d.ts +26 -0
- package/dist/components/DataGrid/PinnedColumns.d.ts.map +1 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.d.ts +7 -0
- package/dist/components/DataGrid/TableBody/LoadingCell.d.ts.map +1 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.d.ts +22 -0
- package/dist/components/DataGrid/TableBody/TableBodyRow.d.ts.map +1 -0
- package/dist/components/DataGrid/TableBody/index.d.ts +26 -0
- package/dist/components/DataGrid/TableBody/index.d.ts.map +1 -0
- package/dist/components/DataGrid/index.d.ts +5 -0
- package/dist/components/DataGrid/index.d.ts.map +1 -0
- package/dist/components/DataGrid/types.d.ts +74 -0
- package/dist/components/DataGrid/types.d.ts.map +1 -0
- package/dist/components/DataGrid/utils.d.ts +3 -0
- package/dist/components/DataGrid/utils.d.ts.map +1 -0
- package/dist/components/DataGridCell.d.ts +46 -0
- package/dist/components/DataGridCell.d.ts.map +1 -0
- package/dist/components/DataTable.d.ts +36 -0
- package/dist/components/DataTable.d.ts.map +1 -0
- package/dist/components/DateInput.d.ts +38 -0
- package/dist/components/DateInput.d.ts.map +1 -0
- package/dist/components/DateRangeInput.d.ts +36 -0
- package/dist/components/DateRangeInput.d.ts.map +1 -0
- package/dist/components/DebugJson.d.ts +5 -0
- package/dist/components/DebugJson.d.ts.map +1 -0
- package/dist/components/Display.d.ts +14 -0
- package/dist/components/Display.d.ts.map +1 -0
- package/dist/components/EditingContext.d.ts +14 -0
- package/dist/components/EditingContext.d.ts.map +1 -0
- package/dist/components/EmblaCarousel/ArrowButtons.d.ts +9 -0
- package/dist/components/EmblaCarousel/ArrowButtons.d.ts.map +1 -0
- package/dist/components/EmblaCarousel/SelectedSnapDisplay.d.ts +7 -0
- package/dist/components/EmblaCarousel/SelectedSnapDisplay.d.ts.map +1 -0
- package/dist/components/EmblaCarousel/index.d.ts +20 -0
- package/dist/components/EmblaCarousel/index.d.ts.map +1 -0
- package/dist/components/EmblaCarousel/usePrevNextButtons.d.ts +10 -0
- package/dist/components/EmblaCarousel/usePrevNextButtons.d.ts.map +1 -0
- package/dist/components/EmblaCarousel/useSelectedSnapDisplay.d.ts +8 -0
- package/dist/components/EmblaCarousel/useSelectedSnapDisplay.d.ts.map +1 -0
- package/dist/components/EmptyCartIcon.d.ts +2 -0
- package/dist/components/EmptyCartIcon.d.ts.map +1 -0
- package/dist/components/FilterGroup.d.ts +29 -0
- package/dist/components/FilterGroup.d.ts.map +1 -0
- package/dist/components/FullViewportBox.d.ts +6 -0
- package/dist/components/FullViewportBox.d.ts.map +1 -0
- package/dist/components/Grid.d.ts +22 -0
- package/dist/components/Grid.d.ts.map +1 -0
- package/dist/components/Heading.d.ts +15 -0
- package/dist/components/Heading.d.ts.map +1 -0
- package/dist/components/HorizontalDivider.d.ts +8 -0
- package/dist/components/HorizontalDivider.d.ts.map +1 -0
- package/dist/components/Icon.d.ts +11 -0
- package/dist/components/Icon.d.ts.map +1 -0
- package/dist/components/ImagePlaceholder.d.ts +3 -0
- package/dist/components/ImagePlaceholder.d.ts.map +1 -0
- package/dist/components/Input.d.ts +50 -0
- package/dist/components/Input.d.ts.map +1 -0
- package/dist/components/InputGroup.d.ts +12 -0
- package/dist/components/InputGroup.d.ts.map +1 -0
- package/dist/components/Label.d.ts +10 -0
- package/dist/components/Label.d.ts.map +1 -0
- package/dist/components/Link.d.ts +16 -0
- package/dist/components/Link.d.ts.map +1 -0
- package/dist/components/List.d.ts +7 -0
- package/dist/components/List.d.ts.map +1 -0
- package/dist/components/ListGroup.d.ts +26 -0
- package/dist/components/ListGroup.d.ts.map +1 -0
- package/dist/components/LiveChatComponent.d.ts +17 -0
- package/dist/components/LiveChatComponent.d.ts.map +1 -0
- package/dist/components/LoadingScrim.d.ts +14 -0
- package/dist/components/LoadingScrim.d.ts.map +1 -0
- package/dist/components/LogoAgilityTopBar.d.ts +2 -0
- package/dist/components/LogoAgilityTopBar.d.ts.map +1 -0
- package/dist/components/LogoDMSiTopBar.d.ts +2 -0
- package/dist/components/LogoDMSiTopBar.d.ts.map +1 -0
- package/dist/components/LogoMillworkTopBar.d.ts +2 -0
- package/dist/components/LogoMillworkTopBar.d.ts.map +1 -0
- package/dist/components/MainBar.d.ts +14 -0
- package/dist/components/MainBar.d.ts.map +1 -0
- package/dist/components/MaxViewportBox.d.ts +6 -0
- package/dist/components/MaxViewportBox.d.ts.map +1 -0
- package/dist/components/Menu.d.ts +23 -0
- package/dist/components/Menu.d.ts.map +1 -0
- package/dist/components/MenuOption.d.ts +65 -0
- package/dist/components/MenuOption.d.ts.map +1 -0
- package/dist/components/MobileDataGrid/ColumnList.d.ts +13 -0
- package/dist/components/MobileDataGrid/ColumnList.d.ts.map +1 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.d.ts +2 -0
- package/dist/components/MobileDataGrid/ColumnSelector/index.d.ts.map +1 -0
- package/dist/components/MobileDataGrid/GridContextProvider/GridContext.d.ts +24 -0
- package/dist/components/MobileDataGrid/GridContextProvider/GridContext.d.ts.map +1 -0
- package/dist/components/MobileDataGrid/GridContextProvider/index.d.ts +15 -0
- package/dist/components/MobileDataGrid/GridContextProvider/index.d.ts.map +1 -0
- package/dist/components/MobileDataGrid/GridContextProvider/useGridContext.d.ts +3 -0
- package/dist/components/MobileDataGrid/GridContextProvider/useGridContext.d.ts.map +1 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.d.ts +6 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.d.ts.map +1 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.d.ts +10 -0
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.d.ts.map +1 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.d.ts +7 -0
- package/dist/components/MobileDataGrid/MobileDataGridHeader.d.ts.map +1 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.d.ts +2 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.d.ts.map +1 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.d.ts +2 -0
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.d.ts.map +1 -0
- package/dist/components/MobileDataGrid/dataGridReducer.d.ts +21 -0
- package/dist/components/MobileDataGrid/dataGridReducer.d.ts.map +1 -0
- package/dist/components/MobileDataGrid/index.d.ts +26 -0
- package/dist/components/MobileDataGrid/index.d.ts.map +1 -0
- package/dist/components/MobileDataGrid/types.d.ts +4 -0
- package/dist/components/MobileDataGrid/types.d.ts.map +1 -0
- package/dist/components/MobileNavMenu.d.ts +36 -0
- package/dist/components/MobileNavMenu.d.ts.map +1 -0
- package/dist/components/Modal.d.ts +30 -0
- package/dist/components/Modal.d.ts.map +1 -0
- package/dist/components/ModalButtons.d.ts +13 -0
- package/dist/components/ModalButtons.d.ts.map +1 -0
- package/dist/components/ModalContent.d.ts +7 -0
- package/dist/components/ModalContent.d.ts.map +1 -0
- package/dist/components/ModalHeader.d.ts +17 -0
- package/dist/components/ModalHeader.d.ts.map +1 -0
- package/dist/components/ModalScrim.d.ts +13 -0
- package/dist/components/ModalScrim.d.ts.map +1 -0
- package/dist/components/NavigationTab.d.ts +13 -0
- package/dist/components/NavigationTab.d.ts.map +1 -0
- package/dist/components/NavigationTabs.d.ts +18 -0
- package/dist/components/NavigationTabs.d.ts.map +1 -0
- package/dist/components/NestedMenu.d.ts +35 -0
- package/dist/components/NestedMenu.d.ts.map +1 -0
- package/dist/components/Notification.d.ts +17 -0
- package/dist/components/Notification.d.ts.map +1 -0
- package/dist/components/OptionPill.d.ts +14 -0
- package/dist/components/OptionPill.d.ts.map +1 -0
- package/dist/components/OrderCheckIcon.d.ts +5 -0
- package/dist/components/OrderCheckIcon.d.ts.map +1 -0
- package/dist/components/PDFViewer/DownloadIcon.d.ts +7 -0
- package/dist/components/PDFViewer/DownloadIcon.d.ts.map +1 -0
- package/dist/components/PDFViewer/PDFElement.d.ts +7 -0
- package/dist/components/PDFViewer/PDFElement.d.ts.map +1 -0
- package/dist/components/PDFViewer/PDFNavigation.d.ts +12 -0
- package/dist/components/PDFViewer/PDFNavigation.d.ts.map +1 -0
- package/dist/components/PDFViewer/PDFPage.d.ts +7 -0
- package/dist/components/PDFViewer/PDFPage.d.ts.map +1 -0
- package/dist/components/PDFViewer/index.d.ts +20 -0
- package/dist/components/PDFViewer/index.d.ts.map +1 -0
- package/dist/components/Pagination.d.ts +14 -0
- package/dist/components/Pagination.d.ts.map +1 -0
- package/dist/components/Paragraph.d.ts +10 -0
- package/dist/components/Paragraph.d.ts.map +1 -0
- package/dist/components/Password.d.ts +4 -0
- package/dist/components/Password.d.ts.map +1 -0
- package/dist/components/ProductImagePreview/CarouselPagination.d.ts +9 -0
- package/dist/components/ProductImagePreview/CarouselPagination.d.ts.map +1 -0
- package/dist/components/ProductImagePreview/MobileImageCarousel.d.ts +11 -0
- package/dist/components/ProductImagePreview/MobileImageCarousel.d.ts.map +1 -0
- package/dist/components/ProductImagePreview/ProductPrimaryImage.d.ts +22 -0
- package/dist/components/ProductImagePreview/ProductPrimaryImage.d.ts.map +1 -0
- package/dist/components/ProductImagePreview/Thumbnail.d.ts +11 -0
- package/dist/components/ProductImagePreview/Thumbnail.d.ts.map +1 -0
- package/dist/components/ProductImagePreview/ZoomWindow.d.ts +22 -0
- package/dist/components/ProductImagePreview/ZoomWindow.d.ts.map +1 -0
- package/dist/components/ProductImagePreview/index.d.ts +23 -0
- package/dist/components/ProductImagePreview/index.d.ts.map +1 -0
- package/dist/components/ProductImagePreview/useProductImagePreview.d.ts +42 -0
- package/dist/components/ProductImagePreview/useProductImagePreview.d.ts.map +1 -0
- package/dist/components/ProjectBar.d.ts +12 -0
- package/dist/components/ProjectBar.d.ts.map +1 -0
- package/dist/components/Radio.d.ts +10 -0
- package/dist/components/Radio.d.ts.map +1 -0
- package/dist/components/Search.d.ts +20 -0
- package/dist/components/Search.d.ts.map +1 -0
- package/dist/components/SearchResultImage/index.d.ts +9 -0
- package/dist/components/SearchResultImage/index.d.ts.map +1 -0
- package/dist/components/Select.d.ts +22 -0
- package/dist/components/Select.d.ts.map +1 -0
- package/dist/components/SideMenu.d.ts +9 -0
- package/dist/components/SideMenu.d.ts.map +1 -0
- package/dist/components/SideMenuGroup.d.ts +11 -0
- package/dist/components/SideMenuGroup.d.ts.map +1 -0
- package/dist/components/SideMenuItem.d.ts +15 -0
- package/dist/components/SideMenuItem.d.ts.map +1 -0
- package/dist/components/SimpleTable.d.ts +11 -0
- package/dist/components/SimpleTable.d.ts.map +1 -0
- package/dist/components/SkeletonParagraph.d.ts +16 -0
- package/dist/components/SkeletonParagraph.d.ts.map +1 -0
- package/dist/components/Spinner.d.ts +7 -0
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/components/Stack.d.ts +64 -0
- package/dist/components/Stack.d.ts.map +1 -0
- package/dist/components/StatusPill.d.ts +10 -0
- package/dist/components/StatusPill.d.ts.map +1 -0
- package/dist/components/Stepper.d.ts +26 -0
- package/dist/components/Stepper.d.ts.map +1 -0
- package/dist/components/Subheader.d.ts +10 -0
- package/dist/components/Subheader.d.ts.map +1 -0
- package/dist/components/Surface.d.ts +9 -0
- package/dist/components/Surface.d.ts.map +1 -0
- package/dist/components/Swatch.d.ts +13 -0
- package/dist/components/Swatch.d.ts.map +1 -0
- package/dist/components/Textarea.d.ts +12 -0
- package/dist/components/Textarea.d.ts.map +1 -0
- package/dist/components/Theme.d.ts +8 -0
- package/dist/components/Theme.d.ts.map +1 -0
- package/dist/components/Time.d.ts +13 -0
- package/dist/components/Time.d.ts.map +1 -0
- package/dist/components/Toast.d.ts +20 -0
- package/dist/components/Toast.d.ts.map +1 -0
- package/dist/components/Tooltip.d.ts +13 -0
- package/dist/components/Tooltip.d.ts.map +1 -0
- package/dist/components/TopBar.d.ts +20 -0
- package/dist/components/TopBar.d.ts.map +1 -0
- package/dist/components/Upload.d.ts +10 -0
- package/dist/components/Upload.d.ts.map +1 -0
- package/dist/components/WorldpayIframe.d.ts +5 -0
- package/dist/components/WorldpayIframe.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +9 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useEditCell.d.ts +9 -0
- package/dist/hooks/useEditCell.d.ts.map +1 -0
- package/dist/hooks/useInfiniteScroll.d.ts +9 -0
- package/dist/hooks/useInfiniteScroll.d.ts.map +1 -0
- package/dist/hooks/useKeydown.d.ts +4 -0
- package/dist/hooks/useKeydown.d.ts.map +1 -0
- package/dist/hooks/useMatchesMedia.d.ts +3 -0
- package/dist/hooks/useMatchesMedia.d.ts.map +1 -0
- package/dist/hooks/useMenuSystem.d.ts +44 -0
- package/dist/hooks/useMenuSystem.d.ts.map +1 -0
- package/dist/hooks/useMounted.d.ts +2 -0
- package/dist/hooks/useMounted.d.ts.map +1 -0
- package/dist/hooks/useTableLayout/computeColumns.d.ts +49 -0
- package/dist/hooks/useTableLayout/computeColumns.d.ts.map +1 -0
- package/dist/hooks/useTableLayout/index.d.ts +3 -0
- package/dist/hooks/useTableLayout/index.d.ts.map +1 -0
- package/dist/hooks/useTableLayout/storage.d.ts +41 -0
- package/dist/hooks/useTableLayout/storage.d.ts.map +1 -0
- package/dist/hooks/useTableLayout/types.d.ts +56 -0
- package/dist/hooks/useTableLayout/types.d.ts.map +1 -0
- package/dist/hooks/useTableLayout/useTableLayout.d.ts +23 -0
- package/dist/hooks/useTableLayout/useTableLayout.d.ts.map +1 -0
- package/dist/index.d.ts +94 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +52855 -0
- package/dist/lib/design-system.d.ts +3 -0
- package/dist/lib/design-system.d.ts.map +1 -0
- package/dist/pdf-l6QfMa5e.js +17649 -0
- package/dist/styles.css +1 -0
- package/dist/types.d.ts +33 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/date-patch-dashes.d.ts +17 -0
- package/dist/utils/date-patch-dashes.d.ts.map +1 -0
- package/dist/utils/date.d.ts +60 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/formatting.d.ts +36 -0
- package/dist/utils/formatting.d.ts.map +1 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/mergeObjectArrays.d.ts +12 -0
- package/dist/utils/mergeObjectArrays.d.ts.map +1 -0
- package/dist/utils.d.ts +3 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +17 -83
- package/dist/chunk-3JUIYULW.js +0 -231
- package/dist/chunk-3UPUZBP5.js +0 -149
- package/dist/chunk-4RJKB7LC.js +0 -14
- package/dist/chunk-4UGMSWWA.js +0 -57
- package/dist/chunk-5IFPG6TS.js +0 -17
- package/dist/chunk-5N32SQ3R.js +0 -99
- package/dist/chunk-5UH6QUFB.js +0 -38
- package/dist/chunk-5UPADXVU.js +0 -2376
- package/dist/chunk-65HTZ3R2.js +0 -177
- package/dist/chunk-6YUQCRMX.js +0 -32
- package/dist/chunk-75USUR3I.js +0 -27
- package/dist/chunk-7IPESTQS.js +0 -93
- package/dist/chunk-7MBRCM3M.js +0 -66
- package/dist/chunk-7WDYXRMW.js +0 -110
- package/dist/chunk-7YA3TF73.js +0 -32
- package/dist/chunk-7Z3WINQ3.js +0 -59
- package/dist/chunk-7ZJIGTFN.js +0 -78
- package/dist/chunk-AJ5M6MVX.js +0 -7
- package/dist/chunk-AT4AWD6B.js +0 -44
- package/dist/chunk-BQNPOGD5.js +0 -105
- package/dist/chunk-BWPNXY7T.js +0 -78
- package/dist/chunk-CIYLALYO.js +0 -72
- package/dist/chunk-DNNX5EYX.js +0 -274
- package/dist/chunk-E3FOCECQ.js +0 -61
- package/dist/chunk-E7LGUC2B.js +0 -35
- package/dist/chunk-EA6Y4HXQ.js +0 -112
- package/dist/chunk-EWGHVZL5.js +0 -27
- package/dist/chunk-F4VE3THQ.js +0 -71
- package/dist/chunk-G242RHWI.js +0 -139
- package/dist/chunk-GOGNV5TF.js +0 -68
- package/dist/chunk-GYT5CL7R.js +0 -159
- package/dist/chunk-I3W5K76C.js +0 -142
- package/dist/chunk-ICJARSLG.js +0 -142
- package/dist/chunk-J3HNYUSG.js +0 -34
- package/dist/chunk-J4IMVWT5.js +0 -183
- package/dist/chunk-JRNU5BZ4.js +0 -52
- package/dist/chunk-K6RPFIMB.js +0 -77
- package/dist/chunk-KBIEWFQS.js +0 -27
- package/dist/chunk-KESCXOG3.js +0 -82
- package/dist/chunk-MAEVKATN.js +0 -110
- package/dist/chunk-MBZ55T2D.js +0 -51
- package/dist/chunk-MOBFZ672.js +0 -134
- package/dist/chunk-MVDGHWKO.js +0 -238
- package/dist/chunk-NAWP246H.js +0 -65
- package/dist/chunk-NKUETCDA.js +0 -44
- package/dist/chunk-NSZTJ5R4.js +0 -38
- package/dist/chunk-NT26ZKSI.js +0 -82
- package/dist/chunk-NW75QACN.js +0 -91
- package/dist/chunk-OG2PGA3X.js +0 -154
- package/dist/chunk-OM7QLLI2.js +0 -277
- package/dist/chunk-ORMEWXMH.js +0 -37
- package/dist/chunk-PABII472.js +0 -579
- package/dist/chunk-PBJ2MEHM.js +0 -483
- package/dist/chunk-PE3EZP56.js +0 -373
- package/dist/chunk-QBIEU25R.js +0 -61
- package/dist/chunk-QG6NWMGA.js +0 -138
- package/dist/chunk-QVWYTQKL.js +0 -29
- package/dist/chunk-S4XW2XZW.js +0 -192
- package/dist/chunk-SATCWGO7.js +0 -166
- package/dist/chunk-SBRRNFOP.js +0 -33
- package/dist/chunk-SJZNVG4N.js +0 -47
- package/dist/chunk-TBZ243DS.js +0 -173
- package/dist/chunk-UARCWLMD.js +0 -66
- package/dist/chunk-UZHBKSXJ.js +0 -87
- package/dist/chunk-VEEZ7VRJ.js +0 -137
- package/dist/chunk-VJVY6NPF.js +0 -32
- package/dist/chunk-VUKYIERA.js +0 -89
- package/dist/chunk-VXWSAIB5.js +0 -26
- package/dist/chunk-W5NXOJ4L.js +0 -104
- package/dist/chunk-WVGXD7HT.js +0 -19
- package/dist/chunk-WVUIIBRR.js +0 -51
- package/dist/chunk-X4OKKRN5.js +0 -140
- package/dist/chunk-X7BKBBIH.js +0 -114
- package/dist/chunk-XB2S2QMB.js +0 -67
- package/dist/chunk-XW4B4CUY.js +0 -329
- package/dist/chunk-Y5GD2FJA.js +0 -32
- package/dist/chunk-YULGJORA.js +0 -259
- package/dist/chunk-Z2HPSFEQ.js +0 -14
- package/dist/chunk-ZRFXUER3.js +0 -468
- package/dist/components/AccessCard.cjs +0 -661
- package/dist/components/AccessCard.js +0 -13
- package/dist/components/AccessCardGroup.cjs +0 -365
- package/dist/components/AccessCardGroup.js +0 -11
- package/dist/components/AccessChangerTabItem.cjs +0 -352
- package/dist/components/AccessChangerTabItem.js +0 -75
- package/dist/components/Accordion.cjs +0 -680
- package/dist/components/Accordion.js +0 -13
- package/dist/components/Alert.cjs +0 -850
- package/dist/components/Alert.js +0 -14
- package/dist/components/Breadcrumbs.cjs +0 -456
- package/dist/components/Breadcrumbs.js +0 -125
- package/dist/components/Button.cjs +0 -401
- package/dist/components/Button.js +0 -9
- package/dist/components/CalendarRange.cjs +0 -6569
- package/dist/components/CalendarRange.css +0 -5546
- package/dist/components/CalendarRange.js +0 -78
- package/dist/components/Caption.cjs +0 -365
- package/dist/components/Caption.js +0 -9
- package/dist/components/Card.cjs +0 -128
- package/dist/components/Card.js +0 -7
- package/dist/components/Checkbox.cjs +0 -421
- package/dist/components/Checkbox.js +0 -11
- package/dist/components/CompactImagesPreview.cjs +0 -604
- package/dist/components/CompactImagesPreview.js +0 -14
- package/dist/components/ContentTab.cjs +0 -483
- package/dist/components/ContentTab.js +0 -11
- package/dist/components/ContentTabs.cjs +0 -599
- package/dist/components/ContentTabs.js +0 -125
- package/dist/components/DMSiLogo.cjs +0 -97
- package/dist/components/DMSiLogo.js +0 -60
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +0 -6558
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +0 -5546
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +0 -74
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +0 -6558
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +0 -5546
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +0 -74
- package/dist/components/DataGrid/PinnedColumns.cjs +0 -6558
- package/dist/components/DataGrid/PinnedColumns.css +0 -5546
- package/dist/components/DataGrid/PinnedColumns.js +0 -74
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +0 -6560
- package/dist/components/DataGrid/TableBody/LoadingCell.css +0 -5546
- package/dist/components/DataGrid/TableBody/LoadingCell.js +0 -74
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +0 -6560
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +0 -5546
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +0 -74
- package/dist/components/DataGrid/TableBody/index.cjs +0 -6560
- package/dist/components/DataGrid/TableBody/index.css +0 -5546
- package/dist/components/DataGrid/TableBody/index.js +0 -74
- package/dist/components/DataGrid/index.cjs +0 -6563
- package/dist/components/DataGrid/index.css +0 -5546
- package/dist/components/DataGrid/index.js +0 -77
- package/dist/components/DataGrid/utils.cjs +0 -6558
- package/dist/components/DataGrid/utils.css +0 -5546
- package/dist/components/DataGrid/utils.js +0 -74
- package/dist/components/DataGridCell.cjs +0 -2531
- package/dist/components/DataGridCell.js +0 -30
- package/dist/components/DataTable.cjs +0 -847
- package/dist/components/DataTable.js +0 -775
- package/dist/components/DateInput.cjs +0 -6560
- package/dist/components/DateInput.css +0 -5546
- package/dist/components/DateInput.js +0 -74
- package/dist/components/DateRangeInput.cjs +0 -7151
- package/dist/components/DateRangeInput.css +0 -5546
- package/dist/components/DateRangeInput.js +0 -652
- package/dist/components/DebugJson.cjs +0 -58
- package/dist/components/DebugJson.js +0 -35
- package/dist/components/Display.cjs +0 -263
- package/dist/components/Display.js +0 -12
- package/dist/components/EditingContext.cjs +0 -86
- package/dist/components/EditingContext.js +0 -12
- package/dist/components/EmblaCarousel/ArrowButtons.cjs +0 -151
- package/dist/components/EmblaCarousel/ArrowButtons.js +0 -9
- package/dist/components/EmblaCarousel/SelectedSnapDisplay.cjs +0 -38
- package/dist/components/EmblaCarousel/SelectedSnapDisplay.js +0 -7
- package/dist/components/EmblaCarousel/index.cjs +0 -420
- package/dist/components/EmblaCarousel/index.js +0 -12
- package/dist/components/EmptyCartIcon.cjs +0 -51
- package/dist/components/EmptyCartIcon.js +0 -7
- package/dist/components/FilterGroup.cjs +0 -1801
- package/dist/components/FilterGroup.js +0 -267
- package/dist/components/FooterBar.cjs +0 -64
- package/dist/components/FooterBar.js +0 -31
- package/dist/components/FullViewportBox.cjs +0 -60
- package/dist/components/FullViewportBox.js +0 -27
- package/dist/components/Grid.cjs +0 -135
- package/dist/components/Grid.js +0 -7
- package/dist/components/Heading.cjs +0 -267
- package/dist/components/Heading.js +0 -14
- package/dist/components/HorizontalDivider.cjs +0 -82
- package/dist/components/HorizontalDivider.js +0 -26
- package/dist/components/Icon.cjs +0 -101
- package/dist/components/Icon.js +0 -7
- package/dist/components/ImagePlaceholder.cjs +0 -65
- package/dist/components/ImagePlaceholder.js +0 -7
- package/dist/components/Input.cjs +0 -923
- package/dist/components/Input.js +0 -23
- package/dist/components/InputGroup.cjs +0 -307
- package/dist/components/InputGroup.js +0 -68
- package/dist/components/Label.cjs +0 -252
- package/dist/components/Label.js +0 -8
- package/dist/components/Link.cjs +0 -304
- package/dist/components/Link.js +0 -8
- package/dist/components/List.cjs +0 -39
- package/dist/components/List.js +0 -16
- package/dist/components/ListGroup.cjs +0 -568
- package/dist/components/ListGroup.js +0 -11
- package/dist/components/LiveChatComponent.cjs +0 -63
- package/dist/components/LiveChatComponent.js +0 -40
- package/dist/components/LoadingScrim.cjs +0 -90
- package/dist/components/LoadingScrim.js +0 -28
- package/dist/components/LogoAgilityTopBar.cjs +0 -133
- package/dist/components/LogoAgilityTopBar.js +0 -96
- package/dist/components/LogoDMSiTopBar.cjs +0 -97
- package/dist/components/LogoDMSiTopBar.js +0 -7
- package/dist/components/LogoMillworkTopBar.cjs +0 -239
- package/dist/components/LogoMillworkTopBar.js +0 -202
- package/dist/components/MainBar.cjs +0 -234
- package/dist/components/MainBar.js +0 -66
- package/dist/components/MaxViewportBox.cjs +0 -45
- package/dist/components/MaxViewportBox.js +0 -22
- package/dist/components/Menu.cjs +0 -505
- package/dist/components/Menu.js +0 -14
- package/dist/components/MenuOption.cjs +0 -695
- package/dist/components/MenuOption.js +0 -18
- package/dist/components/MobileDataGrid/ColumnList.cjs +0 -991
- package/dist/components/MobileDataGrid/ColumnList.css +0 -5546
- package/dist/components/MobileDataGrid/ColumnList.js +0 -20
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +0 -6668
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +0 -5546
- package/dist/components/MobileDataGrid/ColumnSelector/index.js +0 -74
- package/dist/components/MobileDataGrid/GridContextProvider/GridContext.cjs +0 -31
- package/dist/components/MobileDataGrid/GridContextProvider/GridContext.js +0 -7
- package/dist/components/MobileDataGrid/GridContextProvider/index.cjs +0 -186
- package/dist/components/MobileDataGrid/GridContextProvider/index.js +0 -8
- package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.cjs +0 -333
- package/dist/components/MobileDataGrid/MobileDataGridCard/MobileDataGridColumn.js +0 -12
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.cjs +0 -907
- package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +0 -19
- package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +0 -6978
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +0 -5546
- package/dist/components/MobileDataGrid/MobileDataGridHeader.js +0 -74
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.cjs +0 -620
- package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +0 -16
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +0 -1457
- package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +0 -29
- package/dist/components/MobileDataGrid/index.cjs +0 -7489
- package/dist/components/MobileDataGrid/index.css +0 -5546
- package/dist/components/MobileDataGrid/index.js +0 -74
- package/dist/components/Modal.cjs +0 -995
- package/dist/components/Modal.js +0 -23
- package/dist/components/ModalButtons.cjs +0 -491
- package/dist/components/ModalButtons.js +0 -11
- package/dist/components/ModalContent.cjs +0 -204
- package/dist/components/ModalContent.js +0 -8
- package/dist/components/ModalHeader.cjs +0 -563
- package/dist/components/ModalHeader.js +0 -12
- package/dist/components/ModalScrim.cjs +0 -69
- package/dist/components/ModalScrim.js +0 -7
- package/dist/components/NavigationTab.cjs +0 -522
- package/dist/components/NavigationTab.js +0 -11
- package/dist/components/NavigationTabs.cjs +0 -572
- package/dist/components/NavigationTabs.js +0 -61
- package/dist/components/NestedMenu.cjs +0 -1275
- package/dist/components/NestedMenu.js +0 -164
- package/dist/components/Notification.cjs +0 -871
- package/dist/components/Notification.js +0 -126
- package/dist/components/OptionPill.cjs +0 -597
- package/dist/components/OptionPill.js +0 -12
- package/dist/components/OrderCheckIcon.cjs +0 -85
- package/dist/components/OrderCheckIcon.js +0 -7
- package/dist/components/PDFViewer/DownloadIcon.cjs +0 -618
- package/dist/components/PDFViewer/DownloadIcon.js +0 -17
- package/dist/components/PDFViewer/PDFElement.cjs +0 -571
- package/dist/components/PDFViewer/PDFElement.js +0 -11
- package/dist/components/PDFViewer/PDFNavigation.cjs +0 -828
- package/dist/components/PDFViewer/PDFNavigation.js +0 -14
- package/dist/components/PDFViewer/PDFPage.cjs +0 -56
- package/dist/components/PDFViewer/PDFPage.js +0 -7
- package/dist/components/PDFViewer/index.cjs +0 -1941
- package/dist/components/PDFViewer/index.js +0 -182
- package/dist/components/Pagination.cjs +0 -436
- package/dist/components/Pagination.js +0 -10
- package/dist/components/Paragraph.cjs +0 -261
- package/dist/components/Paragraph.js +0 -8
- package/dist/components/Password.cjs +0 -1123
- package/dist/components/Password.js +0 -75
- package/dist/components/ProductImagePreview/CarouselPagination.cjs +0 -75
- package/dist/components/ProductImagePreview/CarouselPagination.js +0 -7
- package/dist/components/ProductImagePreview/MobileImageCarousel.cjs +0 -216
- package/dist/components/ProductImagePreview/MobileImageCarousel.js +0 -7
- package/dist/components/ProductImagePreview/ProductPrimaryImage.cjs +0 -213
- package/dist/components/ProductImagePreview/ProductPrimaryImage.js +0 -7
- package/dist/components/ProductImagePreview/Thumbnail.cjs +0 -112
- package/dist/components/ProductImagePreview/Thumbnail.js +0 -8
- package/dist/components/ProductImagePreview/ZoomWindow.cjs +0 -198
- package/dist/components/ProductImagePreview/ZoomWindow.js +0 -8
- package/dist/components/ProductImagePreview/index.cjs +0 -1446
- package/dist/components/ProductImagePreview/index.js +0 -22
- package/dist/components/ProjectBar.cjs +0 -279
- package/dist/components/ProjectBar.js +0 -71
- package/dist/components/Radio.cjs +0 -386
- package/dist/components/Radio.js +0 -10
- package/dist/components/Search.cjs +0 -1033
- package/dist/components/Search.js +0 -14
- package/dist/components/SearchResultImage/index.cjs +0 -92
- package/dist/components/SearchResultImage/index.js +0 -8
- package/dist/components/Select.cjs +0 -1012
- package/dist/components/Select.js +0 -14
- package/dist/components/SideMenu.cjs +0 -61
- package/dist/components/SideMenu.js +0 -28
- package/dist/components/SideMenuGroup.cjs +0 -593
- package/dist/components/SideMenuGroup.js +0 -97
- package/dist/components/SideMenuItem.cjs +0 -568
- package/dist/components/SideMenuItem.js +0 -95
- package/dist/components/SimpleTable.cjs +0 -547
- package/dist/components/SimpleTable.js +0 -10
- package/dist/components/SkeletonParagraph.cjs +0 -51
- package/dist/components/SkeletonParagraph.js +0 -7
- package/dist/components/Spinner.cjs +0 -57
- package/dist/components/Spinner.js +0 -7
- package/dist/components/Stack.cjs +0 -434
- package/dist/components/Stack.js +0 -8
- package/dist/components/StatusPill.cjs +0 -303
- package/dist/components/StatusPill.js +0 -64
- package/dist/components/Stepper.cjs +0 -1478
- package/dist/components/Stepper.js +0 -239
- package/dist/components/Subheader.cjs +0 -255
- package/dist/components/Subheader.js +0 -8
- package/dist/components/Surface.cjs +0 -101
- package/dist/components/Surface.js +0 -7
- package/dist/components/Swatch.cjs +0 -2089
- package/dist/components/Swatch.js +0 -1513
- package/dist/components/Textarea.cjs +0 -330
- package/dist/components/Textarea.js +0 -136
- package/dist/components/Theme.cjs +0 -51
- package/dist/components/Theme.js +0 -7
- package/dist/components/Time.cjs +0 -1511
- package/dist/components/Time.js +0 -373
- package/dist/components/Toast.cjs +0 -764
- package/dist/components/Toast.js +0 -243
- package/dist/components/Tooltip.cjs +0 -337
- package/dist/components/Tooltip.js +0 -14
- package/dist/components/TopBar.cjs +0 -392
- package/dist/components/TopBar.js +0 -148
- package/dist/components/Upload.cjs +0 -823
- package/dist/components/Upload.js +0 -132
- package/dist/components/WorldpayIframe.cjs +0 -45
- package/dist/components/WorldpayIframe.js +0 -22
- package/dist/components/index.cjs +0 -9453
- package/dist/components/index.css +0 -5546
- package/dist/components/index.js +0 -174
- package/dist/components/useMenuSystem.cjs +0 -442
- package/dist/components/useMenuSystem.js +0 -15
- package/dist/components/useMounted.cjs +0 -39
- package/dist/components/useMounted.js +0 -8
- package/dist/fonts.css +0 -21
- package/dist/hooks/index.cjs +0 -523
- package/dist/hooks/index.js +0 -22
- package/dist/icons-light[FILL]-PPZXOLWS.woff2 +0 -0
- package/dist/icons-normal[FILL]-PPZXOLWS.woff2 +0 -0
- package/dist/index.css +0 -5524
- package/dist/open-sans-55T6A4JE.woff2 +0 -0
- package/dist/types.cjs +0 -18
- package/dist/types.js +0 -0
- package/dist/utils/index.cjs +0 -264
- package/dist/utils/index.js +0 -43
package/dist/chunk-I3W5K76C.js
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Paragraph
|
|
3
|
-
} from "./chunk-7MBRCM3M.js";
|
|
4
|
-
import {
|
|
5
|
-
Icon
|
|
6
|
-
} from "./chunk-NKUETCDA.js";
|
|
7
|
-
import {
|
|
8
|
-
baseTransition,
|
|
9
|
-
componentGap
|
|
10
|
-
} from "./chunk-SATCWGO7.js";
|
|
11
|
-
import {
|
|
12
|
-
__objRest,
|
|
13
|
-
__spreadValues
|
|
14
|
-
} from "./chunk-ORMEWXMH.js";
|
|
15
|
-
|
|
16
|
-
// src/components/Checkbox.tsx
|
|
17
|
-
import clsx from "clsx";
|
|
18
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
var Checkbox = (_a) => {
|
|
20
|
-
var _b = _a, {
|
|
21
|
-
label,
|
|
22
|
-
error,
|
|
23
|
-
disabled,
|
|
24
|
-
readOnly,
|
|
25
|
-
checked,
|
|
26
|
-
onChange,
|
|
27
|
-
indeterminate,
|
|
28
|
-
paragraphClassName,
|
|
29
|
-
id,
|
|
30
|
-
testid
|
|
31
|
-
} = _b, props = __objRest(_b, [
|
|
32
|
-
"label",
|
|
33
|
-
"error",
|
|
34
|
-
"disabled",
|
|
35
|
-
"readOnly",
|
|
36
|
-
"checked",
|
|
37
|
-
"onChange",
|
|
38
|
-
"indeterminate",
|
|
39
|
-
"paragraphClassName",
|
|
40
|
-
"id",
|
|
41
|
-
"testid"
|
|
42
|
-
]);
|
|
43
|
-
const selected = indeterminate || checked;
|
|
44
|
-
const normalClassName = clsx(
|
|
45
|
-
!selected && !error && !disabled && !readOnly && "border-border-primary-normal bg-background-action-secondary-normal peer-hover:border-border-action-hover peer-hover:bg-background-action-secondary-hover peer-active:border-border-action-active peer-active:bg-background-action-secondary-active"
|
|
46
|
-
);
|
|
47
|
-
const normalSelectedClassName = clsx(
|
|
48
|
-
selected && !error && !disabled && !readOnly && "bg-background-action-primary-normal border-background-action-primary-normal peer-hover:bg-background-action-primary-hover peer-hover:border-background-action-primary-hover peer-active:bg-background-action-primary-active peer-active:border-background-action-primary-active"
|
|
49
|
-
);
|
|
50
|
-
const errorClassName = clsx(
|
|
51
|
-
error && !selected && "bg-background-action-critical-secondary-normal border-border-action-critical-normal peer-hover:border-border-action-critical-hover peer-hover:bg-background-action-critical-secondary-hover peer-active:border-border-action-critical-active peer-active:bg-background-action-secondary-active"
|
|
52
|
-
);
|
|
53
|
-
const errorSelectedClassName = clsx(
|
|
54
|
-
error && selected && "bg-background-action-critical-primary-normal border-background-action-critical-primary-normal peer-hover:bg-background-action-critical-primary-hover peer-hover:border-background-action-critical-primary-hover peer-active:bg-background-action-critical-primary-active peer-active:border-background-action-critical-primary-active"
|
|
55
|
-
);
|
|
56
|
-
const disabledClassName = clsx(
|
|
57
|
-
disabled && !readOnly && "border-border-primary-normal bg-background-action-secondary-disabled peer-checked:bg-icon-on-action-primary-disabled peer-checked:border-icon-on-action-primary-disabled"
|
|
58
|
-
);
|
|
59
|
-
const readOnlyClassName = clsx(
|
|
60
|
-
readOnly && "border-transparent bg-transparent peer-checked:bg-transparent peer-checked:border-transparent"
|
|
61
|
-
);
|
|
62
|
-
const checkColor = clsx(
|
|
63
|
-
selected && !disabled && !readOnly && "color-icon-on-action-primary-normal peer-hover:color-icon-on-action-primary-hover peer-active:color-icon-on-action-primary-active",
|
|
64
|
-
selected && disabled && "color-background-action-primary-disabled"
|
|
65
|
-
);
|
|
66
|
-
return /* @__PURE__ */ jsxs(
|
|
67
|
-
"label",
|
|
68
|
-
{
|
|
69
|
-
id,
|
|
70
|
-
"data-testid": testid,
|
|
71
|
-
htmlFor: id ? `${id}-input` : void 0,
|
|
72
|
-
className: clsx(
|
|
73
|
-
"flex items-center",
|
|
74
|
-
componentGap,
|
|
75
|
-
(disabled || readOnly && error || readOnly) && "cursor-default",
|
|
76
|
-
!(readOnly && error) && !disabled && !readOnly && "cursor-pointer"
|
|
77
|
-
),
|
|
78
|
-
children: [
|
|
79
|
-
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
80
|
-
/* @__PURE__ */ jsx(
|
|
81
|
-
"input",
|
|
82
|
-
__spreadValues({
|
|
83
|
-
id: id ? `${id}-input` : void 0,
|
|
84
|
-
"data-testid": testid ? `${testid}-input` : void 0,
|
|
85
|
-
type: "checkbox",
|
|
86
|
-
className: "sr-only peer",
|
|
87
|
-
disabled,
|
|
88
|
-
checked: selected,
|
|
89
|
-
onChange: handleOnChange,
|
|
90
|
-
"data-indeterminate": indeterminate
|
|
91
|
-
}, props)
|
|
92
|
-
),
|
|
93
|
-
error && (readOnly || disabled) ? /* @__PURE__ */ jsx("div", { className: clsx("size-6", "flex items-center justify-center"), children: selected ? indeterminate ? /* @__PURE__ */ jsx("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ jsx(Icon, { name: "question_mark" }) }) : readOnly ? /* @__PURE__ */ jsx("span", { className: "text-success-400 contents", children: /* @__PURE__ */ jsx(Icon, { name: "check" }) }) : /* @__PURE__ */ jsx("span", { className: "text-icon-on-action-primary-normal contents", children: /* @__PURE__ */ jsx(Icon, { name: "check", className: "pointer-events-none" }) }) : readOnly && /* @__PURE__ */ jsx("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ jsx(Icon, { name: "close" }) }) }) : /* @__PURE__ */ jsx(
|
|
94
|
-
"div",
|
|
95
|
-
{
|
|
96
|
-
className: clsx(
|
|
97
|
-
"size-6 border rounded-base",
|
|
98
|
-
"flex items-center justify-center",
|
|
99
|
-
baseTransition,
|
|
100
|
-
normalClassName,
|
|
101
|
-
normalSelectedClassName,
|
|
102
|
-
errorClassName,
|
|
103
|
-
errorSelectedClassName,
|
|
104
|
-
disabledClassName,
|
|
105
|
-
readOnlyClassName,
|
|
106
|
-
checkColor
|
|
107
|
-
),
|
|
108
|
-
children: selected ? indeterminate ? readOnly ? /* @__PURE__ */ jsx("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ jsx(Icon, { name: "question_mark" }) }) : /* @__PURE__ */ jsx("span", { className: "text-icon-on-action-primary-normal contents", children: /* @__PURE__ */ jsx(Icon, { name: "remove", className: "pointer-events-none" }) }) : readOnly ? /* @__PURE__ */ jsx("span", { className: "text-success-400 contents", children: /* @__PURE__ */ jsx(Icon, { name: "check" }) }) : /* @__PURE__ */ jsx("span", { className: "text-icon-on-action-primary-normal contents", children: /* @__PURE__ */ jsx(Icon, { name: "check", className: "pointer-events-none" }) }) : readOnly && /* @__PURE__ */ jsx("span", { className: "text-icon-primary-normal contents", children: /* @__PURE__ */ jsx(Icon, { name: "close" }) })
|
|
109
|
-
}
|
|
110
|
-
)
|
|
111
|
-
] }),
|
|
112
|
-
label && /* @__PURE__ */ jsx(
|
|
113
|
-
Paragraph,
|
|
114
|
-
{
|
|
115
|
-
id: id ? `${id}-label` : void 0,
|
|
116
|
-
testid: testid ? `${testid}-label` : void 0,
|
|
117
|
-
as: "span",
|
|
118
|
-
padded: true,
|
|
119
|
-
className: clsx(
|
|
120
|
-
"text-nowrap",
|
|
121
|
-
disabled && !error && "!text-text-primary-disabled",
|
|
122
|
-
error && !disabled && !readOnly && "!text-text-primary-error",
|
|
123
|
-
paragraphClassName
|
|
124
|
-
),
|
|
125
|
-
children: label
|
|
126
|
-
}
|
|
127
|
-
)
|
|
128
|
-
]
|
|
129
|
-
}
|
|
130
|
-
);
|
|
131
|
-
function handleOnChange(e) {
|
|
132
|
-
if (disabled || readOnly || readOnly && error || !onChange) {
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
onChange(e);
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
Checkbox.displayName = "Checkbox";
|
|
139
|
-
|
|
140
|
-
export {
|
|
141
|
-
Checkbox
|
|
142
|
-
};
|
package/dist/chunk-ICJARSLG.js
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useMatchesMobile
|
|
3
|
-
} from "./chunk-WVGXD7HT.js";
|
|
4
|
-
import {
|
|
5
|
-
Stack
|
|
6
|
-
} from "./chunk-MVDGHWKO.js";
|
|
7
|
-
|
|
8
|
-
// src/components/CompactImagesPreview.tsx
|
|
9
|
-
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
10
|
-
import clsx from "clsx";
|
|
11
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
function hasValidSourceUri(uri, placeholderImageUri) {
|
|
13
|
-
const normalizedUri = uri == null ? void 0 : uri.trim();
|
|
14
|
-
return !!normalizedUri && normalizedUri !== placeholderImageUri && !normalizedUri.endsWith("/placeholder.svg") && !normalizedUri.includes("/placeholder.svg?");
|
|
15
|
-
}
|
|
16
|
-
function CompactImagesPreview(props) {
|
|
17
|
-
const {
|
|
18
|
-
sources,
|
|
19
|
-
currentSourceIndex = 0,
|
|
20
|
-
activeImageHeight = 243,
|
|
21
|
-
activeImageWidth = 242,
|
|
22
|
-
thumbnailWidth = 30.5,
|
|
23
|
-
thumbnailHeight = 30,
|
|
24
|
-
enableThumbnailBorder = false,
|
|
25
|
-
placeholderImageUri,
|
|
26
|
-
placeholderAlt = "placeholder image",
|
|
27
|
-
onChangeSource,
|
|
28
|
-
onMainImageClick,
|
|
29
|
-
testid
|
|
30
|
-
} = props;
|
|
31
|
-
const isMobile = useMatchesMobile();
|
|
32
|
-
const [failedSourceUris, setFailedSourceUris] = useState([]);
|
|
33
|
-
const sourceKey = useMemo(
|
|
34
|
-
() => sources.map((source) => source.uri).join("|"),
|
|
35
|
-
[sources]
|
|
36
|
-
);
|
|
37
|
-
const validSources = useMemo(
|
|
38
|
-
() => sources.filter(
|
|
39
|
-
(source) => hasValidSourceUri(source.uri, placeholderImageUri) && failedSourceUris.indexOf(source.uri) === -1
|
|
40
|
-
),
|
|
41
|
-
[failedSourceUris, placeholderImageUri, sources]
|
|
42
|
-
);
|
|
43
|
-
const imagesCount = validSources.length;
|
|
44
|
-
const safeCurrentSourceIndex = currentSourceIndex >= 0 && currentSourceIndex < imagesCount ? currentSourceIndex : 0;
|
|
45
|
-
useEffect(() => {
|
|
46
|
-
setFailedSourceUris([]);
|
|
47
|
-
}, [sourceKey]);
|
|
48
|
-
const handleImgError = useCallback(
|
|
49
|
-
(e, failedUri) => {
|
|
50
|
-
if (failedUri) {
|
|
51
|
-
setFailedSourceUris(
|
|
52
|
-
(previousUris) => previousUris.indexOf(failedUri) >= 0 ? previousUris : [...previousUris, failedUri]
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
if (!placeholderImageUri) return;
|
|
56
|
-
const img = e.currentTarget;
|
|
57
|
-
if (img.src === placeholderImageUri) return;
|
|
58
|
-
img.src = placeholderImageUri;
|
|
59
|
-
if (!img.alt) img.alt = placeholderAlt;
|
|
60
|
-
},
|
|
61
|
-
[placeholderAlt, placeholderImageUri]
|
|
62
|
-
);
|
|
63
|
-
const handleThumbnailClick = useCallback(
|
|
64
|
-
(newIndex) => {
|
|
65
|
-
if (newIndex === currentSourceIndex) return;
|
|
66
|
-
if (newIndex < 0 || newIndex >= imagesCount) return;
|
|
67
|
-
onChangeSource(newIndex);
|
|
68
|
-
},
|
|
69
|
-
[currentSourceIndex, onChangeSource, imagesCount]
|
|
70
|
-
);
|
|
71
|
-
if (!validSources.length || typeof isMobile === "undefined")
|
|
72
|
-
return /* @__PURE__ */ jsx(
|
|
73
|
-
"img",
|
|
74
|
-
{
|
|
75
|
-
"data-testid": testid ? `${testid}-placeholder` : void 0,
|
|
76
|
-
className: "object-center",
|
|
77
|
-
style: {
|
|
78
|
-
width: activeImageWidth,
|
|
79
|
-
height: activeImageHeight,
|
|
80
|
-
objectPosition: "center",
|
|
81
|
-
objectFit: "contain"
|
|
82
|
-
},
|
|
83
|
-
src: placeholderImageUri,
|
|
84
|
-
alt: placeholderAlt,
|
|
85
|
-
onError: (event) => handleImgError(event),
|
|
86
|
-
onClick: onMainImageClick
|
|
87
|
-
}
|
|
88
|
-
);
|
|
89
|
-
const currentSource = validSources[safeCurrentSourceIndex];
|
|
90
|
-
return /* @__PURE__ */ jsxs(Stack, { "data-testid": testid, sizing: "layout", children: [
|
|
91
|
-
/* @__PURE__ */ jsx(
|
|
92
|
-
"img",
|
|
93
|
-
{
|
|
94
|
-
"data-testid": testid ? `${testid}-main-image` : void 0,
|
|
95
|
-
className: clsx("object-center", onMainImageClick && "cursor-pointer"),
|
|
96
|
-
style: {
|
|
97
|
-
width: isMobile ? "100%" : activeImageWidth,
|
|
98
|
-
height: activeImageHeight,
|
|
99
|
-
objectPosition: "center",
|
|
100
|
-
objectFit: "contain"
|
|
101
|
-
},
|
|
102
|
-
src: currentSource.uri,
|
|
103
|
-
alt: currentSource.name,
|
|
104
|
-
onError: (event) => handleImgError(event, currentSource.uri),
|
|
105
|
-
onClick: onMainImageClick
|
|
106
|
-
}
|
|
107
|
-
),
|
|
108
|
-
imagesCount > 1 && /* @__PURE__ */ jsx("div", { className: "flex flex-row flex-wrap items-center gap-3", children: validSources.slice(0, 4).map((source, index) => /* @__PURE__ */ jsx(
|
|
109
|
-
"button",
|
|
110
|
-
{
|
|
111
|
-
"data-testid": testid ? `${testid}-thumbnail-${index}` : void 0,
|
|
112
|
-
onClick: (e) => {
|
|
113
|
-
e.preventDefault();
|
|
114
|
-
handleThumbnailClick(index);
|
|
115
|
-
},
|
|
116
|
-
className: clsx(
|
|
117
|
-
"cursor-pointer",
|
|
118
|
-
safeCurrentSourceIndex === index && enableThumbnailBorder ? "ring-2 ring-offset-2 ring-brand-400 transition-discrete duration-300" : "ring-brand-400/0"
|
|
119
|
-
),
|
|
120
|
-
children: /* @__PURE__ */ jsx(
|
|
121
|
-
"img",
|
|
122
|
-
{
|
|
123
|
-
src: source.uri,
|
|
124
|
-
alt: source.name,
|
|
125
|
-
style: {
|
|
126
|
-
width: thumbnailWidth,
|
|
127
|
-
height: thumbnailHeight,
|
|
128
|
-
objectPosition: "center",
|
|
129
|
-
objectFit: "cover"
|
|
130
|
-
},
|
|
131
|
-
onError: (event) => handleImgError(event, source.uri)
|
|
132
|
-
}
|
|
133
|
-
)
|
|
134
|
-
},
|
|
135
|
-
`compact-image-${source.uri}-${index}`
|
|
136
|
-
)) })
|
|
137
|
-
] });
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
export {
|
|
141
|
-
CompactImagesPreview
|
|
142
|
-
};
|
package/dist/chunk-J3HNYUSG.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Tooltip
|
|
3
|
-
} from "./chunk-QG6NWMGA.js";
|
|
4
|
-
import {
|
|
5
|
-
Button
|
|
6
|
-
} from "./chunk-J4IMVWT5.js";
|
|
7
|
-
import {
|
|
8
|
-
Icon
|
|
9
|
-
} from "./chunk-NKUETCDA.js";
|
|
10
|
-
|
|
11
|
-
// src/components/PDFViewer/DownloadIcon.tsx
|
|
12
|
-
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
function DownloadIcon({
|
|
14
|
-
onClick,
|
|
15
|
-
isDownloading,
|
|
16
|
-
testid,
|
|
17
|
-
colorClassName
|
|
18
|
-
}) {
|
|
19
|
-
return /* @__PURE__ */ jsx(Tooltip, { message: "Download", position: "bottom", children: /* @__PURE__ */ jsx(
|
|
20
|
-
Button,
|
|
21
|
-
{
|
|
22
|
-
testid,
|
|
23
|
-
iconOnly: true,
|
|
24
|
-
variant: "tertiary",
|
|
25
|
-
colorClassName,
|
|
26
|
-
leftIcon: /* @__PURE__ */ jsx(Icon, { name: isDownloading ? "cached" : "download" }),
|
|
27
|
-
onClick
|
|
28
|
-
}
|
|
29
|
-
) });
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
DownloadIcon
|
|
34
|
-
};
|
package/dist/chunk-J4IMVWT5.js
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Spinner
|
|
3
|
-
} from "./chunk-SBRRNFOP.js";
|
|
4
|
-
import {
|
|
5
|
-
baseTransition,
|
|
6
|
-
componentGap,
|
|
7
|
-
componentPaddingMinus2pxBorder,
|
|
8
|
-
componentPaddingXUsingComponentGap,
|
|
9
|
-
paddingUsingComponentGap,
|
|
10
|
-
typography
|
|
11
|
-
} from "./chunk-SATCWGO7.js";
|
|
12
|
-
import {
|
|
13
|
-
__objRest,
|
|
14
|
-
__spreadProps,
|
|
15
|
-
__spreadValues
|
|
16
|
-
} from "./chunk-ORMEWXMH.js";
|
|
17
|
-
|
|
18
|
-
// src/components/Button.tsx
|
|
19
|
-
import clsx from "clsx";
|
|
20
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
-
var Button = (_a) => {
|
|
22
|
-
var _b = _a, {
|
|
23
|
-
variant = "primary",
|
|
24
|
-
as = "button",
|
|
25
|
-
block,
|
|
26
|
-
leftIcon,
|
|
27
|
-
rightIcon,
|
|
28
|
-
className,
|
|
29
|
-
classNameLabel,
|
|
30
|
-
disabled = false,
|
|
31
|
-
children,
|
|
32
|
-
iconOnly = false,
|
|
33
|
-
colorClassName,
|
|
34
|
-
href,
|
|
35
|
-
id,
|
|
36
|
-
testid,
|
|
37
|
-
isLoading,
|
|
38
|
-
fontNormal = false
|
|
39
|
-
} = _b, props = __objRest(_b, [
|
|
40
|
-
"variant",
|
|
41
|
-
"as",
|
|
42
|
-
"block",
|
|
43
|
-
"leftIcon",
|
|
44
|
-
"rightIcon",
|
|
45
|
-
"className",
|
|
46
|
-
"classNameLabel",
|
|
47
|
-
"disabled",
|
|
48
|
-
"children",
|
|
49
|
-
"iconOnly",
|
|
50
|
-
"colorClassName",
|
|
51
|
-
"href",
|
|
52
|
-
"id",
|
|
53
|
-
"testid",
|
|
54
|
-
"isLoading",
|
|
55
|
-
"fontNormal"
|
|
56
|
-
]);
|
|
57
|
-
const primaryVariantStyles = variant === "primary" && clsx(
|
|
58
|
-
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
59
|
-
"bg-background-action-primary-normal border-background-action-primary-normal",
|
|
60
|
-
"hover:bg-background-action-primary-hover hover:border-background-action-primary-hover",
|
|
61
|
-
"focus:bg-background-action-primary-hover focus:border-background-action-primary-hover focus:outline-0",
|
|
62
|
-
"active:bg-background-action-primary-active active:border-background-action-primary-active",
|
|
63
|
-
"disabled:bg-background-action-primary-disabled disabled:border-background-action-primary-disabled disabled:text-text-on-action-primary-disabled"
|
|
64
|
-
);
|
|
65
|
-
const secondaryVariantStyles = variant === "secondary" && clsx(
|
|
66
|
-
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
|
|
67
|
-
"bg-background-action-secondary-normal border-border-action-normal",
|
|
68
|
-
"hover:bg-background-action-secondary-hover hover:border-border-action-hover hover:text-text-action-primary-hover",
|
|
69
|
-
"focus:bg-background-action-secondary-hover focus:border-border-action-hover focus:text-text-action-primary-hover focus:outline-0",
|
|
70
|
-
"active:bg-background-action-secondary-active active:border-border-action-active active:text-text-action-primary-active",
|
|
71
|
-
"disabled:bg-background-action-primary-disabled disabled:border-border-action-disabled disabled:text-text-action-primary-disabled"
|
|
72
|
-
);
|
|
73
|
-
const tertiaryVariantStyles = variant === "tertiary" && clsx(
|
|
74
|
-
"bg-transparent border-transparent",
|
|
75
|
-
iconOnly ? (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-icon-action-primary-normal" : (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
|
|
76
|
-
"bg-transparent border-transparent",
|
|
77
|
-
"hover:bg-background-action-secondary-hover hover:border-background-action-secondary-hover hover:text-text-action-primary-hover",
|
|
78
|
-
"focus:bg-background-action-secondary-hover focus:border-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
|
|
79
|
-
"active:bg-background-action-secondary-active active:border-transparent active:text-text-action-primary-active",
|
|
80
|
-
"disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
|
|
81
|
-
);
|
|
82
|
-
const quarternaryOutlinedVariantStyles = variant === "quarternary-outlined" && clsx(
|
|
83
|
-
"bg-transparent border-transparent",
|
|
84
|
-
iconOnly ? (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-icon-action-primary-normal" : (colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-primary-normal",
|
|
85
|
-
"bg-transparent border-transparent",
|
|
86
|
-
"hover:bg-transparent hover:border-border-primary-normal hover:text-text-primary-normal",
|
|
87
|
-
"focus:bg-transparent focus:border-border-primary-normal focus:text-text-primary-normal focus:outline-0",
|
|
88
|
-
"active:bg-transparent active:border-transparent active:text-text-primary-active",
|
|
89
|
-
"disabled:bg-transparent disabled:border-transparent disabled:text-text-action-primary-disabled"
|
|
90
|
-
);
|
|
91
|
-
const primaryCriticalVariantStyles = variant === "primary-critical" && clsx(
|
|
92
|
-
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
93
|
-
"bg-background-action-critical-primary-normal border-background-action-critical-primary-normal",
|
|
94
|
-
"hover:bg-background-action-critical-primary-hover hover:border-background-action-critical-primary-hover",
|
|
95
|
-
"focus:bg-background-action-critical-primary-hover focus:border-background-action-critical-primary-hover focus:outline-0",
|
|
96
|
-
"active:bg-background-action-critical-primary-active active:border-background-action-critical-primary-active",
|
|
97
|
-
"disabled:bg-background-action-critical-primary-disabled disabled:border-background-action-critical-primary-disabled disabled:text-text-on-action-primary-disabled"
|
|
98
|
-
);
|
|
99
|
-
const secondaryCriticalVariantStyles = variant === "secondary-critical" && clsx(
|
|
100
|
-
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
|
|
101
|
-
"bg-background-action-critical-secondary-normal border-border-action-critical-normal",
|
|
102
|
-
"hover:bg-background-action-critical-secondary-hover hover:border-border-action-critical-hover hover:text-text-action-critical-hover",
|
|
103
|
-
"focus:bg-background-action-critical-secondary-hover focus:border-border-action-critical-hover focus:text-text-action-critical-hover focus:outline-0",
|
|
104
|
-
"active:bg-background-action-critical-secondary-active active:border-border-action-critical-active active:text-text-action-critical-active",
|
|
105
|
-
"disabled:bg-background-action-critical-disabled disabled:border-border-action-critical-disabled disabled:text-text-action-critical-disabled"
|
|
106
|
-
);
|
|
107
|
-
const tertiaryCriticalVariantStyles = variant === "tertiary-critical" && clsx(
|
|
108
|
-
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-critical-normal",
|
|
109
|
-
"bg-transparent border-transparent text-text-action-critical-normal",
|
|
110
|
-
"hover:bg-background-action-critical-secondary-hover hover:border-background-action-critical-secondary-hover hover:text-text-action-critical-hover",
|
|
111
|
-
"focus:bg-background-action-critical-secondary-hover focus:border-background-action-critical-secondary-hover focus:text-text-action-critical-hover focus:outline-0",
|
|
112
|
-
"active:bg-background-action-critical-secondary-active active:border-background-action-critical-secondary-active active:text-text-action-critical-active",
|
|
113
|
-
"disabled:bg-transparent disabled:border-transparent disabled:text-text-action-critical-disabled"
|
|
114
|
-
);
|
|
115
|
-
const navigationVarianStyles = variant === "navigation" && clsx(
|
|
116
|
-
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-action-primary-normal",
|
|
117
|
-
"bg-transparent",
|
|
118
|
-
"hover:bg-background-action-secondary-hover hover:text-text-action-primary-hover",
|
|
119
|
-
"focus:bg-background-action-secondary-hover focus:text-text-action-primary-hover focus:outline-0",
|
|
120
|
-
"active:bg-background-action-secondary-active active:text-text-action-primary-active",
|
|
121
|
-
"disabled:bg-transparent disabled:text-text-action-primary-normal",
|
|
122
|
-
"flex-col",
|
|
123
|
-
paddingUsingComponentGap
|
|
124
|
-
);
|
|
125
|
-
const notNavigationVariantStyles = variant !== "navigation" && clsx("border-2 flex-row", componentPaddingMinus2pxBorder, componentGap);
|
|
126
|
-
const buttonClasses = clsx(
|
|
127
|
-
disabled ? "cursor-default" : "cursor-pointer",
|
|
128
|
-
block ? "w-full" : "w-fit",
|
|
129
|
-
baseTransition,
|
|
130
|
-
"rounded-sm whitespace-nowrap inline-flex items-center justify-center group/btn",
|
|
131
|
-
primaryVariantStyles,
|
|
132
|
-
secondaryVariantStyles,
|
|
133
|
-
tertiaryVariantStyles,
|
|
134
|
-
quarternaryOutlinedVariantStyles,
|
|
135
|
-
primaryCriticalVariantStyles,
|
|
136
|
-
secondaryCriticalVariantStyles,
|
|
137
|
-
tertiaryCriticalVariantStyles,
|
|
138
|
-
navigationVarianStyles,
|
|
139
|
-
notNavigationVariantStyles,
|
|
140
|
-
className
|
|
141
|
-
);
|
|
142
|
-
const labelClasses = clsx(
|
|
143
|
-
"min-h-6 flex items-center justify-center",
|
|
144
|
-
classNameLabel,
|
|
145
|
-
fontNormal && "font-normal!",
|
|
146
|
-
componentPaddingXUsingComponentGap,
|
|
147
|
-
typography.buttonLabel
|
|
148
|
-
);
|
|
149
|
-
const Element = href && !as ? "a" : as;
|
|
150
|
-
return /* @__PURE__ */ jsxs(
|
|
151
|
-
Element,
|
|
152
|
-
__spreadProps(__spreadValues({
|
|
153
|
-
id,
|
|
154
|
-
"data-testid": testid,
|
|
155
|
-
type: Element === "button" ? "button" : void 0,
|
|
156
|
-
className: buttonClasses
|
|
157
|
-
}, props), {
|
|
158
|
-
onClick: props.onClick,
|
|
159
|
-
disabled,
|
|
160
|
-
href,
|
|
161
|
-
"data-theme": variant === "navigation" ? "brand" : void 0,
|
|
162
|
-
children: [
|
|
163
|
-
leftIcon && leftIcon,
|
|
164
|
-
isLoading && /* @__PURE__ */ jsx(Spinner, { size: "small" }),
|
|
165
|
-
!iconOnly && !isLoading && children && /* @__PURE__ */ jsx(
|
|
166
|
-
"span",
|
|
167
|
-
{
|
|
168
|
-
id: id ? `${id}-label` : void 0,
|
|
169
|
-
"data-testid": testid ? `${testid}-label` : void 0,
|
|
170
|
-
className: labelClasses,
|
|
171
|
-
children
|
|
172
|
-
}
|
|
173
|
-
),
|
|
174
|
-
rightIcon && rightIcon
|
|
175
|
-
]
|
|
176
|
-
})
|
|
177
|
-
);
|
|
178
|
-
};
|
|
179
|
-
Button.displayName = "Button";
|
|
180
|
-
|
|
181
|
-
export {
|
|
182
|
-
Button
|
|
183
|
-
};
|
package/dist/chunk-JRNU5BZ4.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ImagePlaceholder
|
|
3
|
-
} from "./chunk-QVWYTQKL.js";
|
|
4
|
-
|
|
5
|
-
// src/components/ProductImagePreview/Thumbnail.tsx
|
|
6
|
-
import { useState } from "react";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
function Thumbnail({
|
|
9
|
-
width,
|
|
10
|
-
height,
|
|
11
|
-
src,
|
|
12
|
-
alt,
|
|
13
|
-
isActive,
|
|
14
|
-
onClick,
|
|
15
|
-
isPlaceholder = false,
|
|
16
|
-
onImageError
|
|
17
|
-
}) {
|
|
18
|
-
const [imageError, setImageError] = useState(false);
|
|
19
|
-
return /* @__PURE__ */ jsx(
|
|
20
|
-
"button",
|
|
21
|
-
{
|
|
22
|
-
type: "button",
|
|
23
|
-
onClick,
|
|
24
|
-
className: [
|
|
25
|
-
"cursor-pointer relative overflow-hidden rounded aspect-square w-full",
|
|
26
|
-
// base radius, square when no explicit size
|
|
27
|
-
"focus:outline-none",
|
|
28
|
-
isActive && !isPlaceholder && "ring-[3px] ring-offset-1 ring-border-action-normal ring-offset-white opacity-70"
|
|
29
|
-
].join(" "),
|
|
30
|
-
style: { maxWidth: width, maxHeight: height, aspectRatio: "1 / 1" },
|
|
31
|
-
"aria-pressed": isActive && !isPlaceholder ? "true" : "false",
|
|
32
|
-
children: isPlaceholder ? /* @__PURE__ */ jsx(ImagePlaceholder, { width: 115, height: 115 }) : /* @__PURE__ */ jsx(
|
|
33
|
-
"img",
|
|
34
|
-
{
|
|
35
|
-
src: imageError ? "/placeholder.svg" : src,
|
|
36
|
-
alt,
|
|
37
|
-
className: "object-cover w-full h-full select-none",
|
|
38
|
-
draggable: false,
|
|
39
|
-
loading: "lazy",
|
|
40
|
-
onError: () => {
|
|
41
|
-
onImageError == null ? void 0 : onImageError(src);
|
|
42
|
-
setImageError(true);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export {
|
|
51
|
-
Thumbnail
|
|
52
|
-
};
|
package/dist/chunk-K6RPFIMB.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Heading3
|
|
3
|
-
} from "./chunk-GOGNV5TF.js";
|
|
4
|
-
import {
|
|
5
|
-
Button
|
|
6
|
-
} from "./chunk-J4IMVWT5.js";
|
|
7
|
-
import {
|
|
8
|
-
Stack
|
|
9
|
-
} from "./chunk-MVDGHWKO.js";
|
|
10
|
-
import {
|
|
11
|
-
Paragraph
|
|
12
|
-
} from "./chunk-7MBRCM3M.js";
|
|
13
|
-
import {
|
|
14
|
-
Icon
|
|
15
|
-
} from "./chunk-NKUETCDA.js";
|
|
16
|
-
|
|
17
|
-
// src/components/PDFViewer/PDFNavigation.tsx
|
|
18
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
function PdfNavigation({
|
|
20
|
-
currentIndex,
|
|
21
|
-
total,
|
|
22
|
-
onPrev,
|
|
23
|
-
onNext,
|
|
24
|
-
disablePrev,
|
|
25
|
-
disableNext,
|
|
26
|
-
extraActions,
|
|
27
|
-
testid,
|
|
28
|
-
fileName
|
|
29
|
-
}) {
|
|
30
|
-
return /* @__PURE__ */ jsx("div", { className: "w-full", children: /* @__PURE__ */ jsxs(
|
|
31
|
-
Stack,
|
|
32
|
-
{
|
|
33
|
-
horizontal: true,
|
|
34
|
-
items: "center",
|
|
35
|
-
justify: "between",
|
|
36
|
-
sizing: "layout-group",
|
|
37
|
-
testid: testid ? `${testid}-pdf-navigation` : void 0,
|
|
38
|
-
children: [
|
|
39
|
-
/* @__PURE__ */ jsxs(Stack, { horizontal: true, items: "center", children: [
|
|
40
|
-
/* @__PURE__ */ jsx(
|
|
41
|
-
Button,
|
|
42
|
-
{
|
|
43
|
-
iconOnly: true,
|
|
44
|
-
variant: "tertiary",
|
|
45
|
-
onClick: onPrev,
|
|
46
|
-
leftIcon: /* @__PURE__ */ jsx(Icon, { name: "chevron_backward" }),
|
|
47
|
-
disabled: disablePrev,
|
|
48
|
-
testid: testid ? `${testid}-pdf-file-previous-button` : void 0
|
|
49
|
-
}
|
|
50
|
-
),
|
|
51
|
-
/* @__PURE__ */ jsxs(Heading3, { className: "text-text-primary-normal whitespace-nowrap", children: [
|
|
52
|
-
currentIndex + 1,
|
|
53
|
-
" / ",
|
|
54
|
-
total
|
|
55
|
-
] }),
|
|
56
|
-
/* @__PURE__ */ jsx(
|
|
57
|
-
Button,
|
|
58
|
-
{
|
|
59
|
-
iconOnly: true,
|
|
60
|
-
variant: "tertiary",
|
|
61
|
-
onClick: onNext,
|
|
62
|
-
rightIcon: /* @__PURE__ */ jsx(Icon, { name: "chevron_forward" }),
|
|
63
|
-
disabled: disableNext,
|
|
64
|
-
testid: testid ? `${testid}-pdf-file-next-button` : void 0
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
/* @__PURE__ */ jsx(Paragraph, { children: (fileName == null ? void 0 : fileName.endsWith(".pdf")) ? fileName : `${fileName}.pdf` })
|
|
68
|
-
] }),
|
|
69
|
-
extraActions && /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: extraActions })
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
) });
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export {
|
|
76
|
-
PdfNavigation
|
|
77
|
-
};
|
package/dist/chunk-KBIEWFQS.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// src/components/SkeletonParagraph.tsx
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
function SkeletonParagraph({
|
|
4
|
-
className = "",
|
|
5
|
-
heightClassName = "h-6",
|
|
6
|
-
size = "large",
|
|
7
|
-
testid
|
|
8
|
-
}) {
|
|
9
|
-
const sizeClassMap = {
|
|
10
|
-
small: "min-w-10 w-1/4",
|
|
11
|
-
medium: "min-w-20 w-1/2",
|
|
12
|
-
large: "min-w-32 w-full"
|
|
13
|
-
};
|
|
14
|
-
return /* @__PURE__ */ jsx(
|
|
15
|
-
"div",
|
|
16
|
-
{
|
|
17
|
-
"aria-label": "Loading content",
|
|
18
|
-
role: "status",
|
|
19
|
-
className: `skeleton-paragraph ${heightClassName} ${sizeClassMap[size]} rounded-xs ${className}`,
|
|
20
|
-
"data-testid": testid
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
SkeletonParagraph
|
|
27
|
-
};
|