@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
|
@@ -1,652 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CalendarRange
|
|
3
|
-
} from "../chunk-3V5OMIYB.js";
|
|
4
|
-
import "../chunk-3UPUZBP5.js";
|
|
5
|
-
import "../chunk-7ZJIGTFN.js";
|
|
6
|
-
import "../chunk-E3FOCECQ.js";
|
|
7
|
-
import "../chunk-Y5GD2FJA.js";
|
|
8
|
-
import "../chunk-FXXRXLOL.js";
|
|
9
|
-
import "../chunk-MBZ55T2D.js";
|
|
10
|
-
import "../chunk-YKEPPS2I.js";
|
|
11
|
-
import "../chunk-UFX5XIJL.js";
|
|
12
|
-
import "../chunk-3PIDINTF.js";
|
|
13
|
-
import "../chunk-BQNPOGD5.js";
|
|
14
|
-
import "../chunk-YULGJORA.js";
|
|
15
|
-
import "../chunk-Z2HPSFEQ.js";
|
|
16
|
-
import "../chunk-HRPW6VXG.js";
|
|
17
|
-
import "../chunk-JYECZBCJ.js";
|
|
18
|
-
import "../chunk-5IFPG6TS.js";
|
|
19
|
-
import "../chunk-7YA3TF73.js";
|
|
20
|
-
import "../chunk-AJ5M6MVX.js";
|
|
21
|
-
import "../chunk-7IPESTQS.js";
|
|
22
|
-
import "../chunk-EWGHVZL5.js";
|
|
23
|
-
import "../chunk-AT4AWD6B.js";
|
|
24
|
-
import "../chunk-4FUZDLWX.js";
|
|
25
|
-
import "../chunk-CIYLALYO.js";
|
|
26
|
-
import "../chunk-KBIEWFQS.js";
|
|
27
|
-
import "../chunk-NSZTJ5R4.js";
|
|
28
|
-
import "../chunk-GYT5CL7R.js";
|
|
29
|
-
import "../chunk-QG6NWMGA.js";
|
|
30
|
-
import "../chunk-DNNX5EYX.js";
|
|
31
|
-
import "../chunk-4RJKB7LC.js";
|
|
32
|
-
import "../chunk-XB2S2QMB.js";
|
|
33
|
-
import "../chunk-6YUQCRMX.js";
|
|
34
|
-
import "../chunk-UZHBKSXJ.js";
|
|
35
|
-
import "../chunk-E7LGUC2B.js";
|
|
36
|
-
import "../chunk-QVWYTQKL.js";
|
|
37
|
-
import "../chunk-UARCWLMD.js";
|
|
38
|
-
import "../chunk-SJZNVG4N.js";
|
|
39
|
-
import "../chunk-75USUR3I.js";
|
|
40
|
-
import "../chunk-BWPNXY7T.js";
|
|
41
|
-
import "../chunk-QW4AJ5FK.js";
|
|
42
|
-
import "../chunk-3JUIYULW.js";
|
|
43
|
-
import "../chunk-OM7QLLI2.js";
|
|
44
|
-
import "../chunk-PE3EZP56.js";
|
|
45
|
-
import "../chunk-3DJWSTPS.js";
|
|
46
|
-
import {
|
|
47
|
-
InputBase
|
|
48
|
-
} from "../chunk-H5SHC4XZ.js";
|
|
49
|
-
import "../chunk-4UGMSWWA.js";
|
|
50
|
-
import "../chunk-WVUIIBRR.js";
|
|
51
|
-
import "../chunk-RN465M4S.js";
|
|
52
|
-
import "../chunk-Z5YP2GI6.js";
|
|
53
|
-
import "../chunk-ZRFXUER3.js";
|
|
54
|
-
import "../chunk-WVGXD7HT.js";
|
|
55
|
-
import {
|
|
56
|
-
findDocumentRoot
|
|
57
|
-
} from "../chunk-VXWSAIB5.js";
|
|
58
|
-
import {
|
|
59
|
-
calculateCursorPosition,
|
|
60
|
-
formatDate,
|
|
61
|
-
formatInputValue,
|
|
62
|
-
isValidDate,
|
|
63
|
-
isValidDateRangeOrder,
|
|
64
|
-
parseInputDate
|
|
65
|
-
} from "../chunk-TBZ243DS.js";
|
|
66
|
-
import "../chunk-5UH6QUFB.js";
|
|
67
|
-
import "../chunk-NT26ZKSI.js";
|
|
68
|
-
import "../chunk-G242RHWI.js";
|
|
69
|
-
import "../chunk-VEEZ7VRJ.js";
|
|
70
|
-
import "../chunk-KESCXOG3.js";
|
|
71
|
-
import "../chunk-7Z3WINQ3.js";
|
|
72
|
-
import "../chunk-X7BKBBIH.js";
|
|
73
|
-
import "../chunk-F4VE3THQ.js";
|
|
74
|
-
import "../chunk-W5NXOJ4L.js";
|
|
75
|
-
import "../chunk-GOGNV5TF.js";
|
|
76
|
-
import "../chunk-J4IMVWT5.js";
|
|
77
|
-
import "../chunk-SBRRNFOP.js";
|
|
78
|
-
import "../chunk-MVDGHWKO.js";
|
|
79
|
-
import "../chunk-7MBRCM3M.js";
|
|
80
|
-
import {
|
|
81
|
-
Icon
|
|
82
|
-
} from "../chunk-NKUETCDA.js";
|
|
83
|
-
import "../chunk-SATCWGO7.js";
|
|
84
|
-
import {
|
|
85
|
-
__objRest,
|
|
86
|
-
__spreadProps,
|
|
87
|
-
__spreadValues
|
|
88
|
-
} from "../chunk-ORMEWXMH.js";
|
|
89
|
-
|
|
90
|
-
// src/components/DateRangeInput.tsx
|
|
91
|
-
import { useRef, useEffect, useState, useLayoutEffect } from "react";
|
|
92
|
-
import { createPortal } from "react-dom";
|
|
93
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
94
|
-
var DateRangeInput = (_a) => {
|
|
95
|
-
var _b = _a, {
|
|
96
|
-
id,
|
|
97
|
-
testid,
|
|
98
|
-
value,
|
|
99
|
-
onChange,
|
|
100
|
-
placeholder = "MM/DD/YYYY - MM/DD/YYYY",
|
|
101
|
-
disabled,
|
|
102
|
-
readOnly = false,
|
|
103
|
-
single = false,
|
|
104
|
-
disableRange = false,
|
|
105
|
-
label,
|
|
106
|
-
isDateAvailable,
|
|
107
|
-
onPendingFromChange
|
|
108
|
-
} = _b, props = __objRest(_b, [
|
|
109
|
-
"id",
|
|
110
|
-
"testid",
|
|
111
|
-
"value",
|
|
112
|
-
"onChange",
|
|
113
|
-
"placeholder",
|
|
114
|
-
"disabled",
|
|
115
|
-
"readOnly",
|
|
116
|
-
"single",
|
|
117
|
-
"disableRange",
|
|
118
|
-
"label",
|
|
119
|
-
"isDateAvailable",
|
|
120
|
-
"onPendingFromChange"
|
|
121
|
-
]);
|
|
122
|
-
const [visible, setVisible] = useState(false);
|
|
123
|
-
const [inputValue, setInputValue] = useState("");
|
|
124
|
-
const [isTyping, setIsTyping] = useState(false);
|
|
125
|
-
const popoverRef = useRef(null);
|
|
126
|
-
const rootRef = useRef(null);
|
|
127
|
-
const triggerRef = useRef(null);
|
|
128
|
-
const [calendarPosition, setCalendarPosition] = useState({
|
|
129
|
-
top: 0,
|
|
130
|
-
left: 0,
|
|
131
|
-
width: 0
|
|
132
|
-
});
|
|
133
|
-
const [from, to] = value.split("|");
|
|
134
|
-
useEffect(() => {
|
|
135
|
-
if (!isTyping) {
|
|
136
|
-
const displayValue = formatDisplayValue(from, to);
|
|
137
|
-
if (displayValue) {
|
|
138
|
-
setInputValue(displayValue);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}, [from, to, isTyping, disableRange]);
|
|
142
|
-
useLayoutEffect(() => {
|
|
143
|
-
if (visible) {
|
|
144
|
-
updatePosition();
|
|
145
|
-
}
|
|
146
|
-
}, [visible]);
|
|
147
|
-
const updatePosition = () => {
|
|
148
|
-
if (rootRef.current) {
|
|
149
|
-
const rect = rootRef.current.getBoundingClientRect();
|
|
150
|
-
setCalendarPosition({
|
|
151
|
-
top: rect.bottom + window.scrollY,
|
|
152
|
-
left: rect.left + window.scrollX,
|
|
153
|
-
width: rect.width
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
useEffect(() => {
|
|
158
|
-
updatePosition();
|
|
159
|
-
const resizeObserver = new ResizeObserver(updatePosition);
|
|
160
|
-
if (triggerRef.current) {
|
|
161
|
-
resizeObserver.observe(triggerRef.current);
|
|
162
|
-
}
|
|
163
|
-
window.addEventListener("scroll", updatePosition);
|
|
164
|
-
return () => {
|
|
165
|
-
resizeObserver.disconnect();
|
|
166
|
-
window.removeEventListener("scroll", updatePosition);
|
|
167
|
-
};
|
|
168
|
-
}, []);
|
|
169
|
-
useEffect(() => {
|
|
170
|
-
const handleKeyDown2 = (event) => {
|
|
171
|
-
var _a2;
|
|
172
|
-
if (event.key === "Escape" && popoverRef.current) {
|
|
173
|
-
setVisible(false);
|
|
174
|
-
(_a2 = triggerRef.current) == null ? void 0 : _a2.blur();
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
document.addEventListener("keydown", handleKeyDown2);
|
|
178
|
-
return () => {
|
|
179
|
-
document.removeEventListener("keydown", handleKeyDown2);
|
|
180
|
-
};
|
|
181
|
-
}, []);
|
|
182
|
-
useEffect(() => {
|
|
183
|
-
const handleClickOutside = (event) => {
|
|
184
|
-
if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
|
|
185
|
-
setVisible(false);
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
189
|
-
return () => {
|
|
190
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
191
|
-
};
|
|
192
|
-
}, []);
|
|
193
|
-
function handleRangeChange(fromValue, toValue) {
|
|
194
|
-
if (disableRange) {
|
|
195
|
-
onChange(`${fromValue}|${fromValue}`);
|
|
196
|
-
} else {
|
|
197
|
-
onChange(`${fromValue}|${toValue}`);
|
|
198
|
-
}
|
|
199
|
-
setVisible(false);
|
|
200
|
-
setIsTyping(false);
|
|
201
|
-
}
|
|
202
|
-
const handleFocus = () => {
|
|
203
|
-
if (readOnly) return;
|
|
204
|
-
setVisible(true);
|
|
205
|
-
};
|
|
206
|
-
const handleClick = () => {
|
|
207
|
-
handleFocus();
|
|
208
|
-
};
|
|
209
|
-
const handleInputChange = (event) => {
|
|
210
|
-
if (readOnly) return;
|
|
211
|
-
const rawValue = event.target.value;
|
|
212
|
-
const cursorPosition = event.target.selectionStart || 0;
|
|
213
|
-
if (shouldPreventManualDash(rawValue)) {
|
|
214
|
-
handleManualDashRemoval(rawValue, cursorPosition);
|
|
215
|
-
return;
|
|
216
|
-
}
|
|
217
|
-
setIsTyping(true);
|
|
218
|
-
const formattedValue = formatInputValue2(rawValue);
|
|
219
|
-
const finalValue = shouldAutoInsertDash(formattedValue, rawValue) ? `${formattedValue} - ` : formattedValue;
|
|
220
|
-
setInputValue(finalValue);
|
|
221
|
-
const newCursorPosition = calculateNewCursorPosition(
|
|
222
|
-
rawValue,
|
|
223
|
-
formattedValue,
|
|
224
|
-
finalValue,
|
|
225
|
-
cursorPosition
|
|
226
|
-
);
|
|
227
|
-
requestAnimationFrame(() => {
|
|
228
|
-
setCursorPosition(newCursorPosition);
|
|
229
|
-
});
|
|
230
|
-
updateParentValue(finalValue);
|
|
231
|
-
};
|
|
232
|
-
const shouldPreventManualDash = (value2) => {
|
|
233
|
-
return !disableRange && value2.includes("-") && !value2.includes(" - ");
|
|
234
|
-
};
|
|
235
|
-
const handleManualDashRemoval = (rawValue, cursorPosition) => {
|
|
236
|
-
const cleanValue = rawValue.replace(/-/g, "");
|
|
237
|
-
const formattedCleanValue = formatInputValue2(cleanValue);
|
|
238
|
-
setInputValue(formattedCleanValue);
|
|
239
|
-
requestAnimationFrame(() => {
|
|
240
|
-
const newPosition = Math.min(
|
|
241
|
-
cursorPosition - 1,
|
|
242
|
-
formattedCleanValue.length
|
|
243
|
-
);
|
|
244
|
-
setCursorPosition(newPosition);
|
|
245
|
-
});
|
|
246
|
-
};
|
|
247
|
-
const shouldAutoInsertDash = (formattedValue, rawValue) => {
|
|
248
|
-
if (disableRange || formattedValue.includes(" - ")) {
|
|
249
|
-
return false;
|
|
250
|
-
}
|
|
251
|
-
const completeDate = formattedValue.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);
|
|
252
|
-
if (!completeDate || rawValue.length !== formattedValue.length) {
|
|
253
|
-
return false;
|
|
254
|
-
}
|
|
255
|
-
const prevLength = rawValue.length - 1;
|
|
256
|
-
const prevFormatted = formatInputValue2(rawValue.slice(0, prevLength));
|
|
257
|
-
return !prevFormatted.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);
|
|
258
|
-
};
|
|
259
|
-
const calculateNewCursorPosition = (rawValue, formattedValue, finalValue, originalPosition) => {
|
|
260
|
-
if (finalValue !== formattedValue) {
|
|
261
|
-
return finalValue.length;
|
|
262
|
-
}
|
|
263
|
-
return calculateCursorPositionHelper(
|
|
264
|
-
rawValue,
|
|
265
|
-
finalValue,
|
|
266
|
-
originalPosition,
|
|
267
|
-
disableRange
|
|
268
|
-
);
|
|
269
|
-
};
|
|
270
|
-
const setCursorPosition = (position) => {
|
|
271
|
-
if (triggerRef.current) {
|
|
272
|
-
triggerRef.current.setSelectionRange(position, position);
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
const updateParentValue = (value2) => {
|
|
276
|
-
if (disableRange) {
|
|
277
|
-
updateSingleDateValue(value2);
|
|
278
|
-
} else {
|
|
279
|
-
updateRangeValue(value2);
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
const updateSingleDateValue = (value2) => {
|
|
283
|
-
const parsedDate = parseInputDate(value2);
|
|
284
|
-
if (parsedDate && isValidDate(parsedDate)) {
|
|
285
|
-
onChange(`${parsedDate}|${parsedDate}`);
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
const updateRangeValue = (value2) => {
|
|
289
|
-
if (value2 === "") {
|
|
290
|
-
onChange("");
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
const rangeMatch = value2.match(/^(.+?)\s*-\s*(.+)$/);
|
|
294
|
-
if (rangeMatch) {
|
|
295
|
-
updateCompleteRange(rangeMatch);
|
|
296
|
-
} else {
|
|
297
|
-
updatePartialRange(value2);
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
const updateCompleteRange = (rangeMatch) => {
|
|
301
|
-
const [, fromStr, toStr] = rangeMatch;
|
|
302
|
-
const fromDate = parseInputDate(fromStr.trim());
|
|
303
|
-
const toDate = parseInputDate(toStr.trim());
|
|
304
|
-
if (fromDate && toDate && isValidDateRange(fromDate, toDate)) {
|
|
305
|
-
onChange(`${fromDate}|${toDate}`);
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
const updatePartialRange = (value2) => {
|
|
309
|
-
const singleDate = parseInputDate(value2);
|
|
310
|
-
if (singleDate && isValidDate(singleDate)) {
|
|
311
|
-
onChange(`${singleDate}|`);
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
|
-
const handleBlur = () => {
|
|
315
|
-
setIsTyping(false);
|
|
316
|
-
if (disableRange) {
|
|
317
|
-
const parsedDate = parseInputDate(inputValue);
|
|
318
|
-
if (!parsedDate || !isValidDate(parsedDate)) {
|
|
319
|
-
const lastValidValue = formatDisplayValue(from, to);
|
|
320
|
-
setInputValue(lastValidValue || "");
|
|
321
|
-
}
|
|
322
|
-
} else {
|
|
323
|
-
const rangeMatch = inputValue.match(/^(.+?)\s*-\s*(.+)$/);
|
|
324
|
-
if (rangeMatch) {
|
|
325
|
-
const [, fromStr, toStr] = rangeMatch;
|
|
326
|
-
const fromDate = parseInputDate(fromStr.trim());
|
|
327
|
-
const toDate = parseInputDate(toStr.trim());
|
|
328
|
-
if (!fromDate || !toDate || !isValidDateRange(fromDate, toDate)) {
|
|
329
|
-
setInputValue("");
|
|
330
|
-
onChange("");
|
|
331
|
-
}
|
|
332
|
-
} else {
|
|
333
|
-
if (inputValue.includes(" - ")) {
|
|
334
|
-
setInputValue("");
|
|
335
|
-
onChange("");
|
|
336
|
-
} else {
|
|
337
|
-
const singleDate = parseInputDate(inputValue);
|
|
338
|
-
if (!singleDate || !isValidDate(singleDate)) {
|
|
339
|
-
setInputValue("");
|
|
340
|
-
onChange("");
|
|
341
|
-
} else {
|
|
342
|
-
setInputValue("");
|
|
343
|
-
onChange("");
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
|
-
const handleKeyDown = (event) => {
|
|
350
|
-
if (!disableRange && event.key === "-") {
|
|
351
|
-
event.preventDefault();
|
|
352
|
-
return;
|
|
353
|
-
}
|
|
354
|
-
if (event.key === "Backspace") {
|
|
355
|
-
const input = event.target;
|
|
356
|
-
const cursorPosition = input.selectionStart || 0;
|
|
357
|
-
const value2 = input.value;
|
|
358
|
-
if (cursorPosition > 0 && value2[cursorPosition - 1] === "/") {
|
|
359
|
-
event.preventDefault();
|
|
360
|
-
const newValue = value2.slice(0, cursorPosition - 2) + value2.slice(cursorPosition);
|
|
361
|
-
const formattedValue = formatInputValue2(newValue);
|
|
362
|
-
setInputValue(formattedValue);
|
|
363
|
-
requestAnimationFrame(() => {
|
|
364
|
-
if (triggerRef.current) {
|
|
365
|
-
const newPosition = Math.max(0, cursorPosition - 2);
|
|
366
|
-
triggerRef.current.setSelectionRange(newPosition, newPosition);
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
|
-
setIsTyping(true);
|
|
370
|
-
return;
|
|
371
|
-
}
|
|
372
|
-
if (!disableRange && value2.includes(" - ")) {
|
|
373
|
-
const dashIndex = value2.indexOf(" - ");
|
|
374
|
-
const dashStart = dashIndex;
|
|
375
|
-
const dashEnd = dashIndex + 3;
|
|
376
|
-
if (cursorPosition >= dashStart && cursorPosition <= dashEnd) {
|
|
377
|
-
event.preventDefault();
|
|
378
|
-
const beforeDash = value2.slice(0, dashStart).trim();
|
|
379
|
-
const yearMatch = beforeDash.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);
|
|
380
|
-
if (yearMatch) {
|
|
381
|
-
const [, month, day, year] = yearMatch;
|
|
382
|
-
const truncatedYear = year.slice(0, -1);
|
|
383
|
-
const newValue = `${month}/${day}/${truncatedYear}`;
|
|
384
|
-
const formattedValue = formatInputValue2(newValue);
|
|
385
|
-
setInputValue(formattedValue);
|
|
386
|
-
onChange("");
|
|
387
|
-
requestAnimationFrame(() => {
|
|
388
|
-
if (triggerRef.current) {
|
|
389
|
-
triggerRef.current.setSelectionRange(
|
|
390
|
-
formattedValue.length,
|
|
391
|
-
formattedValue.length
|
|
392
|
-
);
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
} else {
|
|
396
|
-
const formattedValue = formatInputValue2(beforeDash);
|
|
397
|
-
setInputValue(formattedValue);
|
|
398
|
-
const singleDate = parseInputDate(beforeDash);
|
|
399
|
-
if (singleDate && isValidDate(singleDate)) {
|
|
400
|
-
onChange(`${singleDate}|`);
|
|
401
|
-
} else {
|
|
402
|
-
onChange("");
|
|
403
|
-
}
|
|
404
|
-
requestAnimationFrame(() => {
|
|
405
|
-
if (triggerRef.current) {
|
|
406
|
-
const newPosition = formattedValue.length;
|
|
407
|
-
triggerRef.current.setSelectionRange(newPosition, newPosition);
|
|
408
|
-
}
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
setIsTyping(true);
|
|
412
|
-
return;
|
|
413
|
-
}
|
|
414
|
-
if (cursorPosition === dashEnd) {
|
|
415
|
-
event.preventDefault();
|
|
416
|
-
const beforeDash = value2.slice(0, dashStart).trim();
|
|
417
|
-
const newValue = `${beforeDash} - `;
|
|
418
|
-
setInputValue(newValue);
|
|
419
|
-
const singleDate = parseInputDate(beforeDash);
|
|
420
|
-
if (singleDate && isValidDate(singleDate)) {
|
|
421
|
-
onChange(`${singleDate}|`);
|
|
422
|
-
}
|
|
423
|
-
requestAnimationFrame(() => {
|
|
424
|
-
if (triggerRef.current) {
|
|
425
|
-
triggerRef.current.setSelectionRange(
|
|
426
|
-
newValue.length,
|
|
427
|
-
newValue.length
|
|
428
|
-
);
|
|
429
|
-
}
|
|
430
|
-
});
|
|
431
|
-
setIsTyping(true);
|
|
432
|
-
return;
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
if (event.key === "Delete") {
|
|
437
|
-
const input = event.target;
|
|
438
|
-
const cursorPosition = input.selectionStart || 0;
|
|
439
|
-
const value2 = input.value;
|
|
440
|
-
if (!disableRange && value2.includes(" - ")) {
|
|
441
|
-
const dashIndex = value2.indexOf(" - ");
|
|
442
|
-
const dashStart = dashIndex;
|
|
443
|
-
const dashEnd = dashIndex + 3;
|
|
444
|
-
if (cursorPosition >= dashStart && cursorPosition <= dashEnd) {
|
|
445
|
-
event.preventDefault();
|
|
446
|
-
const beforeDash = value2.slice(0, dashStart).trim();
|
|
447
|
-
const yearMatch = beforeDash.match(/^(\d{2})\/(\d{2})\/(\d{4})$/);
|
|
448
|
-
if (yearMatch) {
|
|
449
|
-
const [, month, day, year] = yearMatch;
|
|
450
|
-
const truncatedYear = year.slice(0, -1);
|
|
451
|
-
const newValue = `${month}/${day}/${truncatedYear}`;
|
|
452
|
-
const formattedValue = formatInputValue2(newValue);
|
|
453
|
-
setInputValue(formattedValue);
|
|
454
|
-
onChange("");
|
|
455
|
-
requestAnimationFrame(() => {
|
|
456
|
-
if (triggerRef.current) {
|
|
457
|
-
triggerRef.current.setSelectionRange(
|
|
458
|
-
formattedValue.length,
|
|
459
|
-
formattedValue.length
|
|
460
|
-
);
|
|
461
|
-
}
|
|
462
|
-
});
|
|
463
|
-
} else {
|
|
464
|
-
const formattedValue = formatInputValue2(beforeDash);
|
|
465
|
-
setInputValue(formattedValue);
|
|
466
|
-
const singleDate = parseInputDate(beforeDash);
|
|
467
|
-
if (singleDate && isValidDate(singleDate)) {
|
|
468
|
-
onChange(`${singleDate}|`);
|
|
469
|
-
} else {
|
|
470
|
-
onChange("");
|
|
471
|
-
}
|
|
472
|
-
requestAnimationFrame(() => {
|
|
473
|
-
if (triggerRef.current) {
|
|
474
|
-
const newPosition = formattedValue.length;
|
|
475
|
-
triggerRef.current.setSelectionRange(newPosition, newPosition);
|
|
476
|
-
}
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
setIsTyping(true);
|
|
480
|
-
return;
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
if (event.key === "Enter") {
|
|
485
|
-
if (disableRange) {
|
|
486
|
-
const parsedDate = parseInputDate(inputValue);
|
|
487
|
-
if (parsedDate && isValidDate(parsedDate)) {
|
|
488
|
-
onChange(`${parsedDate}|${parsedDate}`);
|
|
489
|
-
setVisible(false);
|
|
490
|
-
setIsTyping(false);
|
|
491
|
-
}
|
|
492
|
-
} else {
|
|
493
|
-
const rangeMatch = inputValue.match(/^(.+?)\s*-\s*(.+)$/);
|
|
494
|
-
if (rangeMatch) {
|
|
495
|
-
const [, fromStr, toStr] = rangeMatch;
|
|
496
|
-
const fromDate = parseInputDate(fromStr.trim());
|
|
497
|
-
const toDate = parseInputDate(toStr.trim());
|
|
498
|
-
if (fromDate && toDate && isValidDateRange(fromDate, toDate)) {
|
|
499
|
-
onChange(`${fromDate}|${toDate}`);
|
|
500
|
-
setVisible(false);
|
|
501
|
-
setIsTyping(false);
|
|
502
|
-
} else {
|
|
503
|
-
setInputValue("");
|
|
504
|
-
onChange("");
|
|
505
|
-
setVisible(false);
|
|
506
|
-
setIsTyping(false);
|
|
507
|
-
}
|
|
508
|
-
} else {
|
|
509
|
-
setInputValue("");
|
|
510
|
-
onChange("");
|
|
511
|
-
setVisible(false);
|
|
512
|
-
setIsTyping(false);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
518
|
-
/* @__PURE__ */ jsx(
|
|
519
|
-
InputBase,
|
|
520
|
-
__spreadProps(__spreadValues({
|
|
521
|
-
id,
|
|
522
|
-
testid,
|
|
523
|
-
ref: (el) => {
|
|
524
|
-
triggerRef.current = el;
|
|
525
|
-
}
|
|
526
|
-
}, props), {
|
|
527
|
-
wrapperRef: rootRef,
|
|
528
|
-
value: inputValue,
|
|
529
|
-
placeholder: disableRange ? "MM/DD/YYYY" : placeholder,
|
|
530
|
-
disabled,
|
|
531
|
-
readOnly,
|
|
532
|
-
after: /* @__PURE__ */ jsx(Icon, { name: "calendar_month" }),
|
|
533
|
-
onFocus: handleFocus,
|
|
534
|
-
onClick: handleClick,
|
|
535
|
-
onChange: handleInputChange,
|
|
536
|
-
onBlur: handleBlur,
|
|
537
|
-
onKeyDown: handleKeyDown,
|
|
538
|
-
label,
|
|
539
|
-
secondaryIconColor: true
|
|
540
|
-
})
|
|
541
|
-
),
|
|
542
|
-
visible && !readOnly && createPortal(
|
|
543
|
-
/* @__PURE__ */ jsx(
|
|
544
|
-
"div",
|
|
545
|
-
{
|
|
546
|
-
ref: (el) => {
|
|
547
|
-
popoverRef.current = el;
|
|
548
|
-
},
|
|
549
|
-
className: "absolute z-40",
|
|
550
|
-
style: {
|
|
551
|
-
top: `${calendarPosition.top + 4}px`,
|
|
552
|
-
left: `${calendarPosition.left}px`,
|
|
553
|
-
minWidth: `${calendarPosition.width}px`
|
|
554
|
-
},
|
|
555
|
-
children: /* @__PURE__ */ jsx(
|
|
556
|
-
CalendarRange,
|
|
557
|
-
{
|
|
558
|
-
id: id ? `${id}-calendar` : void 0,
|
|
559
|
-
testid: testid ? `${testid}-calendar` : void 0,
|
|
560
|
-
from,
|
|
561
|
-
to,
|
|
562
|
-
onChange: handleRangeChange,
|
|
563
|
-
cardStyle: true,
|
|
564
|
-
mode: single ? "single" : "double",
|
|
565
|
-
disableRange,
|
|
566
|
-
isDateAvailable,
|
|
567
|
-
onPendingFromChange
|
|
568
|
-
}
|
|
569
|
-
)
|
|
570
|
-
}
|
|
571
|
-
),
|
|
572
|
-
findDocumentRoot(popoverRef.current)
|
|
573
|
-
)
|
|
574
|
-
] });
|
|
575
|
-
function formatInputValue2(value2) {
|
|
576
|
-
return formatInputValueHelper(value2, disableRange);
|
|
577
|
-
}
|
|
578
|
-
function formatDisplayValue(from2, to2) {
|
|
579
|
-
return formatDisplayValueHelper(from2, to2, disableRange);
|
|
580
|
-
}
|
|
581
|
-
};
|
|
582
|
-
DateRangeInput.displayName = "DateRangeInput";
|
|
583
|
-
function isValidDateRange(fromDate, toDate) {
|
|
584
|
-
return isValidDateRangeOrder(fromDate, toDate);
|
|
585
|
-
}
|
|
586
|
-
function formatInputValueHelper(value, disableRange) {
|
|
587
|
-
if (disableRange) {
|
|
588
|
-
return formatInputValue(value);
|
|
589
|
-
}
|
|
590
|
-
if (value.includes(" - ")) {
|
|
591
|
-
const [from, to] = value.split(" - ");
|
|
592
|
-
const fromFormatted = formatInputValue(from);
|
|
593
|
-
const toFormatted = formatInputValue(to || "");
|
|
594
|
-
return `${fromFormatted} - ${toFormatted}`;
|
|
595
|
-
}
|
|
596
|
-
const cleanValue = value.replace(/-/g, "");
|
|
597
|
-
return formatInputValue(cleanValue);
|
|
598
|
-
}
|
|
599
|
-
function calculateCursorPositionHelper(originalValue, formattedValue, originalPosition, disableRange) {
|
|
600
|
-
if (!disableRange && formattedValue.includes(" - ")) {
|
|
601
|
-
const dashPosition = formattedValue.indexOf(" - ");
|
|
602
|
-
const originalDashPosition = originalValue.indexOf("-");
|
|
603
|
-
if (originalDashPosition !== -1 && originalPosition > originalDashPosition) {
|
|
604
|
-
const afterDashDigits = originalValue.slice(originalDashPosition + 1).replace(/\D/g, "").length;
|
|
605
|
-
const formattedAfterDash = formattedValue.slice(dashPosition + 3);
|
|
606
|
-
let newPosition = dashPosition + 3;
|
|
607
|
-
let digitCount = 0;
|
|
608
|
-
for (let i = 0; i < formattedAfterDash.length; i++) {
|
|
609
|
-
if (/\d/.test(formattedAfterDash[i])) {
|
|
610
|
-
digitCount++;
|
|
611
|
-
if (digitCount >= afterDashDigits) {
|
|
612
|
-
if (i + 1 < formattedAfterDash.length && formattedAfterDash[i + 1] === "/") {
|
|
613
|
-
newPosition = dashPosition + 3 + i + 2;
|
|
614
|
-
} else {
|
|
615
|
-
newPosition = dashPosition + 3 + i + 1;
|
|
616
|
-
}
|
|
617
|
-
break;
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
if (digitCount < afterDashDigits) {
|
|
621
|
-
newPosition = dashPosition + 3 + i + 1;
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
return Math.min(newPosition, formattedValue.length);
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
return calculateCursorPosition(
|
|
628
|
-
originalValue,
|
|
629
|
-
formattedValue,
|
|
630
|
-
originalPosition
|
|
631
|
-
);
|
|
632
|
-
}
|
|
633
|
-
function formatDisplayValueHelper(from, to, disableRange) {
|
|
634
|
-
if (!from && !to) {
|
|
635
|
-
return "";
|
|
636
|
-
}
|
|
637
|
-
const fromValid = from ? isValidDate(from) : false;
|
|
638
|
-
const toValid = to ? isValidDate(to) : false;
|
|
639
|
-
if (disableRange) {
|
|
640
|
-
return fromValid && from ? formatDate(from) : "";
|
|
641
|
-
}
|
|
642
|
-
if (fromValid && toValid && from && to && isValidDateRange(from, to)) {
|
|
643
|
-
return `${formatDate(from)} - ${formatDate(to)}`;
|
|
644
|
-
}
|
|
645
|
-
if (fromValid && !to && from) {
|
|
646
|
-
return `${formatDate(from)} - `;
|
|
647
|
-
}
|
|
648
|
-
return "";
|
|
649
|
-
}
|
|
650
|
-
export {
|
|
651
|
-
DateRangeInput
|
|
652
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/components/DebugJson.tsx
|
|
22
|
-
var DebugJson_exports = {};
|
|
23
|
-
__export(DebugJson_exports, {
|
|
24
|
-
DebugJson: () => DebugJson
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(DebugJson_exports);
|
|
27
|
-
var import_react = require("react");
|
|
28
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
function DebugJson({ data, id }) {
|
|
30
|
-
const [open, setOpen] = (0, import_react.useState)(false);
|
|
31
|
-
if (process.env.NODE_ENV !== "development") {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
35
|
-
"div",
|
|
36
|
-
{
|
|
37
|
-
id,
|
|
38
|
-
className: "p-2 rounded bg-neutral-100 border border-red-500 my-4",
|
|
39
|
-
children: [
|
|
40
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
41
|
-
"button",
|
|
42
|
-
{
|
|
43
|
-
id: id ? `${id}-toggle-button` : void 0,
|
|
44
|
-
onClick: () => setOpen((prev) => !prev),
|
|
45
|
-
className: "px-4 py-2 border rounded bg-white",
|
|
46
|
-
children: open ? "Hide JSON" : "Show JSON"
|
|
47
|
-
}
|
|
48
|
-
),
|
|
49
|
-
open && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", { className: "mt-4", children: JSON.stringify(data, null, 4) })
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
DebugJson.displayName = "DebugJson";
|
|
55
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
-
0 && (module.exports = {
|
|
57
|
-
DebugJson
|
|
58
|
-
});
|