@dmsi/wedgekit-react 0.0.1277 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +52866 -0
- package/dist/lib/design-system.d.ts +3 -0
- package/dist/lib/design-system.d.ts.map +1 -0
- package/dist/lib/loadFonts.d.ts +2 -0
- package/dist/lib/loadFonts.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-3DJWSTPS.js +0 -134
- package/dist/chunk-3JUIYULW.js +0 -231
- package/dist/chunk-3PIDINTF.js +0 -52
- package/dist/chunk-3UPUZBP5.js +0 -149
- package/dist/chunk-3V5OMIYB.js +0 -2376
- package/dist/chunk-4FUZDLWX.js +0 -112
- 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-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-EWGHVZL5.js +0 -27
- package/dist/chunk-F4VE3THQ.js +0 -71
- package/dist/chunk-FXXRXLOL.js +0 -329
- package/dist/chunk-G242RHWI.js +0 -139
- package/dist/chunk-GOGNV5TF.js +0 -68
- package/dist/chunk-GYT5CL7R.js +0 -159
- package/dist/chunk-H36XCZ3O.js +0 -140
- package/dist/chunk-H5SHC4XZ.js +0 -586
- package/dist/chunk-HRPW6VXG.js +0 -110
- package/dist/chunk-J3HNYUSG.js +0 -34
- package/dist/chunk-J4IMVWT5.js +0 -183
- package/dist/chunk-JYECZBCJ.js +0 -154
- package/dist/chunk-K6RPFIMB.js +0 -77
- package/dist/chunk-KBIEWFQS.js +0 -27
- package/dist/chunk-KESCXOG3.js +0 -82
- package/dist/chunk-MBZ55T2D.js +0 -51
- 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-OM7QLLI2.js +0 -277
- package/dist/chunk-ORMEWXMH.js +0 -37
- 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-QW4AJ5FK.js +0 -483
- package/dist/chunk-RN465M4S.js +0 -142
- 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-UFX5XIJL.js +0 -178
- 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-X7BKBBIH.js +0 -114
- package/dist/chunk-XB2S2QMB.js +0 -67
- package/dist/chunk-Y5GD2FJA.js +0 -32
- package/dist/chunk-YKEPPS2I.js +0 -192
- package/dist/chunk-YULGJORA.js +0 -259
- package/dist/chunk-Z2HPSFEQ.js +0 -14
- package/dist/chunk-Z5YP2GI6.js +0 -142
- 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 -6576
- package/dist/components/CalendarRange.css +0 -5549
- 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 -6565
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.css +0 -5549
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +0 -74
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +0 -6565
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.css +0 -5549
- package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +0 -74
- package/dist/components/DataGrid/PinnedColumns.cjs +0 -6565
- package/dist/components/DataGrid/PinnedColumns.css +0 -5549
- package/dist/components/DataGrid/PinnedColumns.js +0 -74
- package/dist/components/DataGrid/TableBody/LoadingCell.cjs +0 -6567
- package/dist/components/DataGrid/TableBody/LoadingCell.css +0 -5549
- package/dist/components/DataGrid/TableBody/LoadingCell.js +0 -74
- package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +0 -6567
- package/dist/components/DataGrid/TableBody/TableBodyRow.css +0 -5549
- package/dist/components/DataGrid/TableBody/TableBodyRow.js +0 -74
- package/dist/components/DataGrid/TableBody/index.cjs +0 -6567
- package/dist/components/DataGrid/TableBody/index.css +0 -5549
- package/dist/components/DataGrid/TableBody/index.js +0 -74
- package/dist/components/DataGrid/index.cjs +0 -6570
- package/dist/components/DataGrid/index.css +0 -5549
- package/dist/components/DataGrid/index.js +0 -77
- package/dist/components/DataGrid/utils.cjs +0 -6565
- package/dist/components/DataGrid/utils.css +0 -5549
- package/dist/components/DataGrid/utils.js +0 -74
- package/dist/components/DataGridCell.cjs +0 -2538
- 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 -6567
- package/dist/components/DateInput.css +0 -5549
- package/dist/components/DateInput.js +0 -74
- package/dist/components/DateRangeInput.cjs +0 -7158
- package/dist/components/DateRangeInput.css +0 -5549
- 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 -1808
- 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 -930
- 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 -5549
- package/dist/components/MobileDataGrid/ColumnList.js +0 -20
- package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +0 -6675
- package/dist/components/MobileDataGrid/ColumnSelector/index.css +0 -5549
- 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 -6985
- package/dist/components/MobileDataGrid/MobileDataGridHeader.css +0 -5549
- 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 -7496
- package/dist/components/MobileDataGrid/index.css +0 -5549
- 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 -1130
- 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 -214
- 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 -1447
- 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 -1040
- 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 -1019
- 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 -1485
- 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 -1518
- 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 -9461
- package/dist/components/index.css +0 -5549
- 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 -5527
- 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-QW4AJ5FK.js
DELETED
|
@@ -1,483 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
MenuOption
|
|
3
|
-
} from "./chunk-3JUIYULW.js";
|
|
4
|
-
import {
|
|
5
|
-
Menu
|
|
6
|
-
} from "./chunk-OM7QLLI2.js";
|
|
7
|
-
import {
|
|
8
|
-
useSubMenuSystem
|
|
9
|
-
} from "./chunk-PE3EZP56.js";
|
|
10
|
-
import {
|
|
11
|
-
Search
|
|
12
|
-
} from "./chunk-3DJWSTPS.js";
|
|
13
|
-
import {
|
|
14
|
-
CSS
|
|
15
|
-
} from "./chunk-WVUIIBRR.js";
|
|
16
|
-
import {
|
|
17
|
-
Icon
|
|
18
|
-
} from "./chunk-NKUETCDA.js";
|
|
19
|
-
import {
|
|
20
|
-
componentPadding,
|
|
21
|
-
paddingUsingComponentGap
|
|
22
|
-
} from "./chunk-SATCWGO7.js";
|
|
23
|
-
import {
|
|
24
|
-
__objRest,
|
|
25
|
-
__spreadProps,
|
|
26
|
-
__spreadValues
|
|
27
|
-
} from "./chunk-ORMEWXMH.js";
|
|
28
|
-
|
|
29
|
-
// src/components/DataGridCell.tsx
|
|
30
|
-
import { useSortable } from "@dnd-kit/sortable";
|
|
31
|
-
import clsx from "clsx";
|
|
32
|
-
import {
|
|
33
|
-
useEffect,
|
|
34
|
-
useRef,
|
|
35
|
-
useState,
|
|
36
|
-
memo
|
|
37
|
-
} from "react";
|
|
38
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
39
|
-
var DataGridCell = memo(
|
|
40
|
-
(_a) => {
|
|
41
|
-
var _b = _a, {
|
|
42
|
-
id,
|
|
43
|
-
type = "default",
|
|
44
|
-
component = "static",
|
|
45
|
-
children,
|
|
46
|
-
className,
|
|
47
|
-
locked = false,
|
|
48
|
-
noPadding = false,
|
|
49
|
-
paddedLeft = false,
|
|
50
|
-
style,
|
|
51
|
-
onClick,
|
|
52
|
-
onRightClick,
|
|
53
|
-
error,
|
|
54
|
-
warning,
|
|
55
|
-
center,
|
|
56
|
-
width,
|
|
57
|
-
minWidth,
|
|
58
|
-
disabled,
|
|
59
|
-
testid
|
|
60
|
-
} = _b, props = __objRest(_b, [
|
|
61
|
-
"id",
|
|
62
|
-
"type",
|
|
63
|
-
"component",
|
|
64
|
-
"children",
|
|
65
|
-
"className",
|
|
66
|
-
"locked",
|
|
67
|
-
"noPadding",
|
|
68
|
-
"paddedLeft",
|
|
69
|
-
"style",
|
|
70
|
-
"onClick",
|
|
71
|
-
"onRightClick",
|
|
72
|
-
"error",
|
|
73
|
-
"warning",
|
|
74
|
-
"center",
|
|
75
|
-
"width",
|
|
76
|
-
"minWidth",
|
|
77
|
-
"disabled",
|
|
78
|
-
"testid"
|
|
79
|
-
]);
|
|
80
|
-
const Element = type === "header" ? "th" : "td";
|
|
81
|
-
const timerRef = useRef(null);
|
|
82
|
-
const [isGrabbing, setIsGrabbing] = useState(false);
|
|
83
|
-
const [isPointerPressed, setIsPointerPressed] = useState(false);
|
|
84
|
-
useEffect(() => {
|
|
85
|
-
return () => {
|
|
86
|
-
if (timerRef.current) {
|
|
87
|
-
clearTimeout(timerRef.current);
|
|
88
|
-
timerRef.current = null;
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
}, []);
|
|
92
|
-
const handlePointerDown = (_event) => {
|
|
93
|
-
setIsPointerPressed(true);
|
|
94
|
-
timerRef.current = window.setTimeout(() => {
|
|
95
|
-
setIsGrabbing(true);
|
|
96
|
-
}, 500);
|
|
97
|
-
};
|
|
98
|
-
const handlePointerUp = (event) => {
|
|
99
|
-
if (timerRef.current) {
|
|
100
|
-
clearTimeout(timerRef.current);
|
|
101
|
-
timerRef.current = null;
|
|
102
|
-
}
|
|
103
|
-
const rightClick = event.nativeEvent instanceof MouseEvent && event.nativeEvent.button === 2;
|
|
104
|
-
if (!isGrabbing && onClick && !rightClick && isPointerPressed) {
|
|
105
|
-
onClick(event);
|
|
106
|
-
}
|
|
107
|
-
if (rightClick && onRightClick) {
|
|
108
|
-
onRightClick();
|
|
109
|
-
}
|
|
110
|
-
setIsGrabbing(false);
|
|
111
|
-
setIsPointerPressed(false);
|
|
112
|
-
};
|
|
113
|
-
const handlePointerLeave = () => {
|
|
114
|
-
if (timerRef.current) {
|
|
115
|
-
clearTimeout(timerRef.current);
|
|
116
|
-
timerRef.current = null;
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
const headerBgStyles = type === "header" && !locked && !["button"].includes(component) && "bg-brand-400 border-brand-200";
|
|
120
|
-
const lockedHeaderBgStyles = locked && !["button"].includes(component) && "bg-neutral-400 border-neutral-300";
|
|
121
|
-
const headerTypeStyles = type === "header" && component !== "button" && component !== "icon" && clsx("border-r");
|
|
122
|
-
const buttonComponentStyles = component === "button" && clsx("border-r border-b border-border-primary-normal");
|
|
123
|
-
const iconComponentStyles = component === "icon" && clsx("border-l");
|
|
124
|
-
const cellClasses = clsx(
|
|
125
|
-
headerTypeStyles,
|
|
126
|
-
buttonComponentStyles,
|
|
127
|
-
headerBgStyles,
|
|
128
|
-
lockedHeaderBgStyles,
|
|
129
|
-
iconComponentStyles,
|
|
130
|
-
className,
|
|
131
|
-
"flex flex-1 items-center gap-1 whitespace-nowrap h-10 relative text-text-primary-normal",
|
|
132
|
-
"focus-within:!z-10",
|
|
133
|
-
"overflow-x-hidden",
|
|
134
|
-
"overflow-y-hidden",
|
|
135
|
-
component === "input" && "border",
|
|
136
|
-
component === "input" && !error && !warning && "border-border-primary-normal",
|
|
137
|
-
component === "input" && error && "border-border-primary-error",
|
|
138
|
-
component === "input" && warning && "border-background-warning-normal",
|
|
139
|
-
!["button", "icon"].includes(component) && !noPadding && componentPadding,
|
|
140
|
-
paddedLeft && "pl-2",
|
|
141
|
-
component === "icon" && "border-l",
|
|
142
|
-
isGrabbing && "!cursor-grabbing",
|
|
143
|
-
component === "checkbox" || center && "justify-center",
|
|
144
|
-
disabled && "!text-text-primary-disabled"
|
|
145
|
-
);
|
|
146
|
-
return /* @__PURE__ */ jsx(
|
|
147
|
-
Element,
|
|
148
|
-
__spreadProps(__spreadValues({
|
|
149
|
-
id,
|
|
150
|
-
"data-testid": testid,
|
|
151
|
-
className: clsx("flex h-10", !width && "flex-1"),
|
|
152
|
-
style: { width, minWidth }
|
|
153
|
-
}, props), {
|
|
154
|
-
"data-theme": type === "header" && !locked ? "brand" : void 0,
|
|
155
|
-
children: /* @__PURE__ */ jsx(
|
|
156
|
-
"div",
|
|
157
|
-
{
|
|
158
|
-
className: cellClasses,
|
|
159
|
-
style: __spreadValues({}, style),
|
|
160
|
-
onMouseDown: handlePointerDown,
|
|
161
|
-
onMouseUp: handlePointerUp,
|
|
162
|
-
onMouseLeave: handlePointerLeave,
|
|
163
|
-
onTouchStart: handlePointerDown,
|
|
164
|
-
onTouchEnd: handlePointerUp,
|
|
165
|
-
onTouchCancel: handlePointerLeave,
|
|
166
|
-
onContextMenu: (e) => e.preventDefault(),
|
|
167
|
-
children
|
|
168
|
-
}
|
|
169
|
-
)
|
|
170
|
-
})
|
|
171
|
-
);
|
|
172
|
-
}
|
|
173
|
-
);
|
|
174
|
-
DataGridCell.displayName = "DataGridCell";
|
|
175
|
-
function DataCellHeader(_a) {
|
|
176
|
-
var _b = _a, {
|
|
177
|
-
header,
|
|
178
|
-
children,
|
|
179
|
-
setNodeRef,
|
|
180
|
-
node,
|
|
181
|
-
id,
|
|
182
|
-
testid,
|
|
183
|
-
useMenuDefaultMinWidth
|
|
184
|
-
} = _b, props = __objRest(_b, [
|
|
185
|
-
"header",
|
|
186
|
-
"children",
|
|
187
|
-
"setNodeRef",
|
|
188
|
-
"node",
|
|
189
|
-
"id",
|
|
190
|
-
"testid",
|
|
191
|
-
"useMenuDefaultMinWidth"
|
|
192
|
-
]);
|
|
193
|
-
var _a2;
|
|
194
|
-
const [showMenu, setShowMenu] = useState(false);
|
|
195
|
-
const [filter, setFilter] = useState(
|
|
196
|
-
(_a2 = header.column.getFilterValue()) != null ? _a2 : ""
|
|
197
|
-
);
|
|
198
|
-
const ref = useRef(null);
|
|
199
|
-
const predeterminedPinned = useRef(false);
|
|
200
|
-
const { column, getContext } = header;
|
|
201
|
-
const { id: columnId, setFilterValue } = column;
|
|
202
|
-
const {
|
|
203
|
-
menuRootRef,
|
|
204
|
-
isMenuActive,
|
|
205
|
-
registerSubMenu,
|
|
206
|
-
listeners: subMenuListeners,
|
|
207
|
-
mobileHide
|
|
208
|
-
} = useSubMenuSystem(node ? node : ref);
|
|
209
|
-
useEffect(() => {
|
|
210
|
-
var _a3, _b2, _c;
|
|
211
|
-
const columnPinning = (_a3 = getContext().table.options.initialState) == null ? void 0 : _a3.columnPinning;
|
|
212
|
-
const left = (_b2 = columnPinning == null ? void 0 : columnPinning.left) != null ? _b2 : [];
|
|
213
|
-
const right = (_c = columnPinning == null ? void 0 : columnPinning.right) != null ? _c : [];
|
|
214
|
-
predeterminedPinned.current = [...left, ...right].includes(columnId);
|
|
215
|
-
}, [columnId, getContext]);
|
|
216
|
-
useEffect(() => {
|
|
217
|
-
const handler = setTimeout(() => {
|
|
218
|
-
setFilterValue(filter);
|
|
219
|
-
}, 500);
|
|
220
|
-
return () => {
|
|
221
|
-
clearTimeout(handler);
|
|
222
|
-
};
|
|
223
|
-
}, [filter, setFilterValue]);
|
|
224
|
-
const style = __spreadValues({
|
|
225
|
-
position: "relative",
|
|
226
|
-
whiteSpace: "nowrap",
|
|
227
|
-
minWidth: header.column.getSize(),
|
|
228
|
-
"--color-text-primary-normal": "var(--color-text-brand-primary-normal)",
|
|
229
|
-
"--color-icon-on-action-primary-normal": "var(--color-text-brand-primary-normal)",
|
|
230
|
-
"--background-action-secondary-normal": "var(--color-text-brand-primary-normal)"
|
|
231
|
-
}, props.style);
|
|
232
|
-
return /* @__PURE__ */ jsxs(
|
|
233
|
-
DataGridCell,
|
|
234
|
-
__spreadProps(__spreadValues({
|
|
235
|
-
id,
|
|
236
|
-
testid,
|
|
237
|
-
ref: setNodeRef ? setNodeRef : ref,
|
|
238
|
-
type: "header",
|
|
239
|
-
component: "header",
|
|
240
|
-
style,
|
|
241
|
-
minWidth: `${header.column.getSize()}px`,
|
|
242
|
-
onClick: header.column.getToggleSortingHandler(),
|
|
243
|
-
onRightClick: () => setShowMenu(!showMenu)
|
|
244
|
-
}, props), {
|
|
245
|
-
children: [
|
|
246
|
-
children,
|
|
247
|
-
header.column.getCanFilter() && /* @__PURE__ */ jsxs(
|
|
248
|
-
Menu,
|
|
249
|
-
{
|
|
250
|
-
id: id ? `${id}-menu` : void 0,
|
|
251
|
-
testid: testid ? `${testid}-menu` : void 0,
|
|
252
|
-
ref: menuRootRef,
|
|
253
|
-
positionTo: node ? node : ref,
|
|
254
|
-
show: showMenu,
|
|
255
|
-
setShow: setShowMenu,
|
|
256
|
-
mobileHide,
|
|
257
|
-
useDefaultMinWidth: useMenuDefaultMinWidth,
|
|
258
|
-
children: [
|
|
259
|
-
/* @__PURE__ */ jsx(
|
|
260
|
-
MenuOption,
|
|
261
|
-
__spreadProps(__spreadValues({
|
|
262
|
-
id: id ? `${id}-filter-option` : void 0,
|
|
263
|
-
testid: testid ? `${testid}-filter-option` : void 0
|
|
264
|
-
}, subMenuListeners), {
|
|
265
|
-
subMenu: (_b2) => {
|
|
266
|
-
var _c = _b2, { menuId, subMenuLevel } = _c, props2 = __objRest(_c, ["menuId", "subMenuLevel"]);
|
|
267
|
-
return /* @__PURE__ */ jsxs(
|
|
268
|
-
Menu,
|
|
269
|
-
__spreadProps(__spreadValues({
|
|
270
|
-
id: id ? `${id}-filter-submenu` : void 0,
|
|
271
|
-
testid: testid ? `${testid}-filter-submenu` : void 0
|
|
272
|
-
}, props2), {
|
|
273
|
-
show: isMenuActive(menuId, subMenuLevel),
|
|
274
|
-
ref: (el) => {
|
|
275
|
-
registerSubMenu(menuId, el);
|
|
276
|
-
},
|
|
277
|
-
useDefaultMinWidth: useMenuDefaultMinWidth,
|
|
278
|
-
children: [
|
|
279
|
-
/* @__PURE__ */ jsx("div", { className: clsx(paddingUsingComponentGap), children: /* @__PURE__ */ jsx(
|
|
280
|
-
Search,
|
|
281
|
-
{
|
|
282
|
-
id: id ? `${id}-filter-search` : void 0,
|
|
283
|
-
testid: testid ? `${testid}-filter-search` : void 0,
|
|
284
|
-
onChange: (event) => {
|
|
285
|
-
setFilter(event.target.value);
|
|
286
|
-
},
|
|
287
|
-
onKeyDown: (event) => {
|
|
288
|
-
if ([" ", "Space"].includes(event.key)) {
|
|
289
|
-
event.stopPropagation();
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
value: filter != null ? filter : ""
|
|
293
|
-
}
|
|
294
|
-
) }),
|
|
295
|
-
/* @__PURE__ */ jsx(
|
|
296
|
-
MenuOption,
|
|
297
|
-
{
|
|
298
|
-
id: id ? `${id}-filter-contains` : void 0,
|
|
299
|
-
testid: testid ? `${testid}-filter-contains` : void 0,
|
|
300
|
-
onClick: handleFilterFnChange,
|
|
301
|
-
before: menuOptionIcon("includesString"),
|
|
302
|
-
children: "Contains"
|
|
303
|
-
}
|
|
304
|
-
),
|
|
305
|
-
/* @__PURE__ */ jsx(
|
|
306
|
-
MenuOption,
|
|
307
|
-
{
|
|
308
|
-
id: id ? `${id}-filter-startswith` : void 0,
|
|
309
|
-
testid: testid ? `${testid}-filter-startswith` : void 0,
|
|
310
|
-
onClick: handleFilterFnChange,
|
|
311
|
-
before: menuOptionIcon("startsWith"),
|
|
312
|
-
children: "Starts with"
|
|
313
|
-
}
|
|
314
|
-
),
|
|
315
|
-
/* @__PURE__ */ jsx(
|
|
316
|
-
MenuOption,
|
|
317
|
-
{
|
|
318
|
-
id: id ? `${id}-filter-endswith` : void 0,
|
|
319
|
-
testid: testid ? `${testid}-filter-endswith` : void 0,
|
|
320
|
-
onClick: handleFilterFnChange,
|
|
321
|
-
before: menuOptionIcon("endsWith"),
|
|
322
|
-
children: "Ends with"
|
|
323
|
-
}
|
|
324
|
-
)
|
|
325
|
-
]
|
|
326
|
-
})
|
|
327
|
-
);
|
|
328
|
-
},
|
|
329
|
-
children: "Filter"
|
|
330
|
-
})
|
|
331
|
-
),
|
|
332
|
-
!predeterminedPinned.current && header.column.getCanPin() && /* @__PURE__ */ jsx(
|
|
333
|
-
MenuOption,
|
|
334
|
-
__spreadProps(__spreadValues({
|
|
335
|
-
onClick: () => {
|
|
336
|
-
setShowMenu(!showMenu);
|
|
337
|
-
}
|
|
338
|
-
}, subMenuListeners), {
|
|
339
|
-
subMenu: (_d) => {
|
|
340
|
-
var _e = _d, { menuId, subMenuLevel } = _e, props2 = __objRest(_e, ["menuId", "subMenuLevel"]);
|
|
341
|
-
return /* @__PURE__ */ jsxs(
|
|
342
|
-
Menu,
|
|
343
|
-
__spreadProps(__spreadValues({}, props2), {
|
|
344
|
-
show: isMenuActive(menuId, subMenuLevel),
|
|
345
|
-
ref: (el) => {
|
|
346
|
-
registerSubMenu(menuId, el);
|
|
347
|
-
},
|
|
348
|
-
children: [
|
|
349
|
-
/* @__PURE__ */ jsx(
|
|
350
|
-
MenuOption,
|
|
351
|
-
{
|
|
352
|
-
selected: header.column.getIsPinned() === "left",
|
|
353
|
-
onClick: () => {
|
|
354
|
-
if (header.column.getIsPinned() === "left") {
|
|
355
|
-
header.column.pin(false);
|
|
356
|
-
} else {
|
|
357
|
-
header.column.pin("left");
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
after: header.column.getIsPinned() === "left" && /* @__PURE__ */ jsx(Icon, { name: "check" }),
|
|
361
|
-
children: "Left"
|
|
362
|
-
}
|
|
363
|
-
),
|
|
364
|
-
/* @__PURE__ */ jsx(
|
|
365
|
-
MenuOption,
|
|
366
|
-
{
|
|
367
|
-
selected: header.column.getIsPinned() === "right",
|
|
368
|
-
onClick: () => {
|
|
369
|
-
if (header.column.getIsPinned() === "right") {
|
|
370
|
-
header.column.pin(false);
|
|
371
|
-
} else {
|
|
372
|
-
header.column.pin("right");
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
after: header.column.getIsPinned() === "right" && /* @__PURE__ */ jsx(Icon, { name: "check" }),
|
|
376
|
-
children: "Right"
|
|
377
|
-
}
|
|
378
|
-
)
|
|
379
|
-
]
|
|
380
|
-
})
|
|
381
|
-
);
|
|
382
|
-
},
|
|
383
|
-
children: `Freeze [${header.column.columnDef.header}]`
|
|
384
|
-
})
|
|
385
|
-
)
|
|
386
|
-
]
|
|
387
|
-
}
|
|
388
|
-
)
|
|
389
|
-
]
|
|
390
|
-
})
|
|
391
|
-
);
|
|
392
|
-
function menuOptionIcon(value) {
|
|
393
|
-
return /* @__PURE__ */ jsx(
|
|
394
|
-
Icon,
|
|
395
|
-
{
|
|
396
|
-
name: "check",
|
|
397
|
-
className: clsx(
|
|
398
|
-
header.column.columnDef.filterFn !== value && "text-transparent"
|
|
399
|
-
)
|
|
400
|
-
}
|
|
401
|
-
);
|
|
402
|
-
}
|
|
403
|
-
function handleFilterFnChange(_id, value) {
|
|
404
|
-
let filterFn = "includesString";
|
|
405
|
-
const currentFilterFn = header.column.columnDef.filterFn;
|
|
406
|
-
if ((value == null ? void 0 : value.toLowerCase()) === "starts with") {
|
|
407
|
-
filterFn = currentFilterFn === "startsWith" ? "auto" : "startsWith";
|
|
408
|
-
}
|
|
409
|
-
if ((value == null ? void 0 : value.toLowerCase()) === "ends with") {
|
|
410
|
-
filterFn = currentFilterFn === "endsWith" ? "auto" : "endsWith";
|
|
411
|
-
}
|
|
412
|
-
if ((value == null ? void 0 : value.toLowerCase()) === "contains") {
|
|
413
|
-
filterFn = currentFilterFn === "includesString" ? "auto" : "includesString";
|
|
414
|
-
}
|
|
415
|
-
header.column.columnDef.filterFn = filterFn;
|
|
416
|
-
header.column.setFilterValue(filter);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
DataCellHeader.displayName = "DataCellHeader";
|
|
420
|
-
function DraggableCellHeader(_a) {
|
|
421
|
-
var _b = _a, {
|
|
422
|
-
header,
|
|
423
|
-
children
|
|
424
|
-
} = _b, props = __objRest(_b, [
|
|
425
|
-
"header",
|
|
426
|
-
"children"
|
|
427
|
-
]);
|
|
428
|
-
const { attributes, isDragging, listeners, setNodeRef, transform, node } = useSortable({
|
|
429
|
-
id: header.column.id
|
|
430
|
-
});
|
|
431
|
-
const style = {
|
|
432
|
-
opacity: isDragging ? 0.8 : 1,
|
|
433
|
-
position: "relative",
|
|
434
|
-
transform: CSS.Translate.toString(transform),
|
|
435
|
-
transition: "width transform 0.2s ease-in-out",
|
|
436
|
-
whiteSpace: "nowrap",
|
|
437
|
-
zIndex: isDragging ? 1 : 0,
|
|
438
|
-
"--color-text-primary-normal": "var(--color-action-000)",
|
|
439
|
-
"--color-icon-on-action-primary-normal": "var(--color-action-000)",
|
|
440
|
-
userSelect: "none"
|
|
441
|
-
};
|
|
442
|
-
return /* @__PURE__ */ jsx(
|
|
443
|
-
DataCellHeader,
|
|
444
|
-
__spreadProps(__spreadValues(__spreadValues(__spreadValues({
|
|
445
|
-
header,
|
|
446
|
-
setNodeRef,
|
|
447
|
-
node,
|
|
448
|
-
style
|
|
449
|
-
}, props), attributes), listeners), {
|
|
450
|
-
children
|
|
451
|
-
})
|
|
452
|
-
);
|
|
453
|
-
}
|
|
454
|
-
DraggableCellHeader.displayName = "DraggableCellHeader";
|
|
455
|
-
function DragAlongCell(_a) {
|
|
456
|
-
var _b = _a, {
|
|
457
|
-
cell,
|
|
458
|
-
children
|
|
459
|
-
} = _b, props = __objRest(_b, [
|
|
460
|
-
"cell",
|
|
461
|
-
"children"
|
|
462
|
-
]);
|
|
463
|
-
const { isDragging, setNodeRef, transform } = useSortable({
|
|
464
|
-
id: cell.column.id
|
|
465
|
-
});
|
|
466
|
-
const style = {
|
|
467
|
-
opacity: isDragging ? 0.8 : 1,
|
|
468
|
-
position: "relative",
|
|
469
|
-
transform: CSS.Translate.toString(transform),
|
|
470
|
-
transition: "width transform 0.2s ease-in-out",
|
|
471
|
-
minWidth: cell.column.getSize(),
|
|
472
|
-
zIndex: isDragging ? 1 : 0
|
|
473
|
-
};
|
|
474
|
-
return /* @__PURE__ */ jsx(DataGridCell, __spreadProps(__spreadValues({ style, ref: setNodeRef }, props), { children }));
|
|
475
|
-
}
|
|
476
|
-
DragAlongCell.displayName = "DragAlongCell";
|
|
477
|
-
|
|
478
|
-
export {
|
|
479
|
-
DataGridCell,
|
|
480
|
-
DataCellHeader,
|
|
481
|
-
DraggableCellHeader,
|
|
482
|
-
DragAlongCell
|
|
483
|
-
};
|
package/dist/chunk-RN465M4S.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
|
-
!(paragraphClassName == null ? void 0 : paragraphClassName.includes("text-wrap")) && "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
|
-
};
|