@atom-learning/components 6.0.0-beta.0 → 6.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/Accordion.d.ts +17 -0
- package/dist/components/accordion/Accordion.js.map +1 -1
- package/dist/components/accordion/AccordionContent.d.ts +6 -0
- package/dist/components/accordion/AccordionItem.d.ts +4 -0
- package/dist/components/accordion/AccordionTrigger.d.ts +11 -0
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/action-icon/ActionIcon.constants.d.ts +6 -0
- package/dist/components/action-icon/ActionIcon.d.ts +21 -0
- package/dist/components/action-icon/ActionIcon.js +1 -1
- package/dist/components/action-icon/ActionIcon.js.map +1 -1
- package/dist/components/action-icon/index.d.ts +1 -0
- package/dist/components/alert-dialog/AlertDialog.d.ts +13 -0
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +8 -0
- package/dist/components/alert-dialog/alert-context/AlertContext.d.ts +8 -0
- package/dist/components/alert-dialog/alert-context/AlertDialog.d.ts +9 -0
- package/dist/components/alert-dialog/alert-context/AlertDialogIcon.d.ts +5 -0
- package/dist/components/alert-dialog/alert-context/reducer.d.ts +12 -0
- package/dist/components/alert-dialog/alert-context/types.d.ts +26 -0
- package/dist/components/alert-dialog/index.d.ts +2 -0
- package/dist/components/avatar/Avatar.d.ts +49 -0
- package/dist/components/avatar/AvatarIcon.d.ts +5 -0
- package/dist/components/avatar/AvatarImage.d.ts +5 -0
- package/dist/components/avatar/AvatarInitial.d.ts +2 -0
- package/dist/components/avatar/AvatarPlaceholder.d.ts +2 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/badge/Badge.colorscheme.config.d.ts +198 -0
- package/dist/components/badge/Badge.context.d.ts +13 -0
- package/dist/components/badge/Badge.d.ts +46 -0
- package/dist/components/badge/Badge.js.map +1 -1
- package/dist/components/badge/BadgeIcon.d.ts +3 -0
- package/dist/components/badge/BadgeText.d.ts +20 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/banner/Banner.d.ts +6 -0
- package/dist/components/banner/BannerContainer.d.ts +24 -0
- package/dist/components/banner/BannerContext.d.ts +14 -0
- package/dist/components/banner/banner-regular/BannerRegular.d.ts +321 -0
- package/dist/components/banner/banner-regular/BannerRegularActions.d.ts +6 -0
- package/dist/components/banner/banner-regular/BannerRegularButton.d.ts +6 -0
- package/dist/components/banner/banner-regular/BannerRegularContainer.d.ts +5 -0
- package/dist/components/banner/banner-regular/BannerRegularContent.d.ts +13 -0
- package/dist/components/banner/banner-regular/BannerRegularDismiss.d.ts +23 -0
- package/dist/components/banner/banner-regular/BannerRegularHeading.d.ts +6 -0
- package/dist/components/banner/banner-regular/BannerRegularImage.d.ts +6 -0
- package/dist/components/banner/banner-regular/BannerRegularText.d.ts +6 -0
- package/dist/components/banner/banner-regular/index.d.ts +1 -0
- package/dist/components/banner/banner-slim/BannerSlim.d.ts +326 -0
- package/dist/components/banner/banner-slim/BannerSlimActions.d.ts +6 -0
- package/dist/components/banner/banner-slim/BannerSlimButton.d.ts +6 -0
- package/dist/components/banner/banner-slim/BannerSlimContainer.d.ts +31 -0
- package/dist/components/banner/banner-slim/BannerSlimContent.d.ts +19 -0
- package/dist/components/banner/banner-slim/BannerSlimDismiss.d.ts +26 -0
- package/dist/components/banner/banner-slim/BannerSlimImage.d.ts +6 -0
- package/dist/components/banner/banner-slim/BannerSlimText.d.ts +6 -0
- package/dist/components/banner/banner-slim/index.d.ts +1 -0
- package/dist/components/banner/index.d.ts +2 -0
- package/dist/components/box/Box.d.ts +5 -0
- package/dist/components/box/index.d.ts +1 -0
- package/dist/components/button/Button.d.ts +22 -0
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/calendar/Calendar.d.ts +24 -0
- package/dist/components/calendar/Calendar.js +1 -1
- package/dist/components/calendar/Day.d.ts +9 -0
- package/dist/components/calendar/constants.d.ts +9 -0
- package/dist/components/calendar/index.d.ts +1 -0
- package/dist/components/carousel/Carousel.d.ts +42 -0
- package/dist/components/carousel/CarouselArrows.d.ts +10 -0
- package/dist/components/carousel/CarouselPagination.d.ts +3 -0
- package/dist/components/carousel/CarouselSlide.d.ts +5 -0
- package/dist/components/carousel/CarouselSlider.d.ts +7 -0
- package/dist/components/carousel/index.d.ts +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +8 -0
- package/dist/components/checkbox/Checkbox.js +1 -1
- package/dist/components/checkbox/Checkbox.js.map +1 -1
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/checkbox-field/CheckboxField.d.ts +7 -0
- package/dist/components/checkbox-field/index.d.ts +1 -0
- package/dist/components/checkbox-group/CheckboxGroup.context.d.ts +2 -0
- package/dist/components/checkbox-group/CheckboxGroup.d.ts +302 -0
- package/dist/components/checkbox-group/CheckboxGroup.types.d.ts +3 -0
- package/dist/components/checkbox-group/CheckboxGroupAllItem.d.ts +5 -0
- package/dist/components/checkbox-group/CheckboxGroupItem.d.ts +7 -0
- package/dist/components/checkbox-group/CheckboxGroupSub.d.ts +6 -0
- package/dist/components/checkbox-group/context/CheckboxGroupChecked.context.d.ts +14 -0
- package/dist/components/checkbox-group/context/CheckboxGroupMounted.context.d.ts +9 -0
- package/dist/components/checkbox-group/index.d.ts +1 -0
- package/dist/components/checkbox-tree/CheckboxTree.d.ts +1118 -0
- package/dist/components/checkbox-tree/CheckboxTreeCollapsible.d.ts +6 -0
- package/dist/components/checkbox-tree/CheckboxTreeCollapsibleContent.d.ts +5 -0
- package/dist/components/checkbox-tree/CheckboxTreeCollapsibleTrigger.d.ts +6 -0
- package/dist/components/checkbox-tree/CheckboxTreeItem.d.ts +6 -0
- package/dist/components/checkbox-tree/CheckboxTreeItemContent.d.ts +5 -0
- package/dist/components/checkbox-tree/index.d.ts +1 -0
- package/dist/components/chip/Chip.d.ts +39 -0
- package/dist/components/chip/Chip.js.map +1 -1
- package/dist/components/chip/ChipGroup.d.ts +18 -0
- package/dist/components/chip/ChipGroup.js.map +1 -1
- package/dist/components/chip/index.d.ts +2 -0
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +16 -0
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupRoot.d.ts +6 -0
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupRoot.js.map +1 -1
- package/dist/components/chip-dismissible-group/index.d.ts +7 -0
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +14 -0
- package/dist/components/chip-toggle-group/ChipToggleGroupRoot.d.ts +34 -0
- package/dist/components/chip-toggle-group/ChipToggleGroupRoot.js.map +1 -1
- package/dist/components/chip-toggle-group/index.d.ts +7 -0
- package/dist/components/combobox/Combobox.d.ts +36 -0
- package/dist/components/combobox/ComboboxInput.d.ts +22 -0
- package/dist/components/combobox/ComboboxInput.js.map +1 -1
- package/dist/components/combobox/ComboboxList.d.ts +7 -0
- package/dist/components/combobox/ComboboxOption.d.ts +7 -0
- package/dist/components/combobox/ComboboxPopover.d.ts +7 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/create-password-field/CreatePasswordField.d.ts +17 -0
- package/dist/components/create-password-field/CreatePasswordField.js +1 -1
- package/dist/components/create-password-field/CreatePasswordField.js.map +1 -1
- package/dist/components/create-password-field/index.d.ts +1 -0
- package/dist/components/data-table/DataTable.d.ts +294 -0
- package/dist/components/data-table/DataTable.types.d.ts +56 -0
- package/dist/components/data-table/DataTableBody.d.ts +7 -0
- package/dist/components/data-table/DataTableBulkActions.d.ts +20 -0
- package/dist/components/data-table/DataTableBulkActionsFloating.d.ts +10 -0
- package/dist/components/data-table/DataTableBulkActionsSelectedRowActions.d.ts +6 -0
- package/dist/components/data-table/DataTableContext.d.ts +21 -0
- package/dist/components/data-table/DataTableDataCell.d.ts +7 -0
- package/dist/components/data-table/DataTableEmptyState.d.ts +5 -0
- package/dist/components/data-table/DataTableError.d.ts +5 -0
- package/dist/components/data-table/DataTableGlobalFilter.d.ts +8 -0
- package/dist/components/data-table/DataTableHead.d.ts +11 -0
- package/dist/components/data-table/DataTableHead.js +1 -1
- package/dist/components/data-table/DataTableHead.js.map +1 -1
- package/dist/components/data-table/DataTableHeaderCell.d.ts +10 -0
- package/dist/components/data-table/DataTableHeaderCell.js +1 -1
- package/dist/components/data-table/DataTableLoading.d.ts +19 -0
- package/dist/components/data-table/DataTableMetaData.d.ts +10 -0
- package/dist/components/data-table/DataTableRow.d.ts +8 -0
- package/dist/components/data-table/DataTableRowSelectionCheckbox.d.ts +8 -0
- package/dist/components/data-table/DataTableSelectAllRowsCheckbox.d.ts +4 -0
- package/dist/components/data-table/DataTableTable.d.ts +18 -0
- package/dist/components/data-table/drag-and-drop/DragAndDropTable.d.ts +14 -0
- package/dist/components/data-table/drag-and-drop/DragAndDropTable.js +1 -1
- package/dist/components/data-table/drag-and-drop/DragAndDropTableBody.d.ts +7 -0
- package/dist/components/data-table/drag-and-drop/DragAndDropTableRow.d.ts +8 -0
- package/dist/components/data-table/drag-and-drop/index.d.ts +1 -0
- package/dist/components/data-table/getNewAsyncData.d.ts +3 -0
- package/dist/components/data-table/index.d.ts +2 -0
- package/dist/components/data-table/pagination/Pagination.d.ts +16 -0
- package/dist/components/data-table/pagination/index.d.ts +1 -0
- package/dist/components/data-table/usePagination.d.ts +8 -0
- package/dist/components/data-table/useSorting.d.ts +9 -0
- package/dist/components/date-field/DateField.d.ts +9 -0
- package/dist/components/date-field/index.d.ts +1 -0
- package/dist/components/date-input/DateInput.d.ts +19 -0
- package/dist/components/date-input/DateInput.js +1 -1
- package/dist/components/date-input/DateInput.js.map +1 -1
- package/dist/components/date-input/constants.d.ts +1 -0
- package/dist/components/date-input/index.d.ts +1 -0
- package/dist/components/dialog/Dialog.d.ts +21 -0
- package/dist/components/dialog/DialogBackground.d.ts +5 -0
- package/dist/components/dialog/DialogClose.d.ts +1 -0
- package/dist/components/dialog/DialogContent.d.ts +12 -0
- package/dist/components/dialog/DialogFooter.d.ts +3 -0
- package/dist/components/dialog/DialogFooter.js +1 -1
- package/dist/components/dialog/DialogHeading.d.ts +3 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/dismissible/DismissibleRoot.d.ts +21 -0
- package/dist/components/dismissible/DismissibleTrigger.d.ts +5 -0
- package/dist/components/dismissible/index.d.ts +6 -0
- package/dist/components/dismissible-group/DismissibleGroupItem.d.ts +7 -0
- package/dist/components/dismissible-group/DismissibleGroupRoot.d.ts +18 -0
- package/dist/components/dismissible-group/index.d.ts +7 -0
- package/dist/components/divider/Divider.d.ts +15 -0
- package/dist/components/divider/Divider.js.map +1 -1
- package/dist/components/divider/index.d.ts +1 -0
- package/dist/components/drawer/Drawer.context.d.ts +8 -0
- package/dist/components/drawer/Drawer.d.ts +26 -0
- package/dist/components/drawer/DrawerClose.d.ts +3 -0
- package/dist/components/drawer/DrawerContent.d.ts +8 -0
- package/dist/components/drawer/DrawerFooter.d.ts +5 -0
- package/dist/components/drawer/DrawerHeader.d.ts +5 -0
- package/dist/components/drawer/DrawerMain.d.ts +5 -0
- package/dist/components/drawer/DrawerOverlay.d.ts +3 -0
- package/dist/components/drawer/DrawerTrigger.d.ts +1 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +20 -0
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +3 -0
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +3 -0
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.d.ts +5 -0
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +3 -0
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +3 -0
- package/dist/components/dropdown-menu/index.d.ts +1 -0
- package/dist/components/empty-state/EmptyState.context.d.ts +8 -0
- package/dist/components/empty-state/EmptyState.d.ts +61 -0
- package/dist/components/empty-state/EmptyStateBody.d.ts +20 -0
- package/dist/components/empty-state/EmptyStateBody.js +1 -1
- package/dist/components/empty-state/EmptyStateBody.js.map +1 -1
- package/dist/components/empty-state/EmptyStateImage.d.ts +17 -0
- package/dist/components/empty-state/EmptyStateTitle.d.ts +13 -0
- package/dist/components/empty-state/index.d.ts +1 -0
- package/dist/components/field-wrapper/FieldDescription.d.ts +4 -0
- package/dist/components/field-wrapper/FieldWrapper.d.ts +26 -0
- package/dist/components/field-wrapper/InlineFieldWrapper.d.ts +15 -0
- package/dist/components/field-wrapper/index.d.ts +3 -0
- package/dist/components/file-drop/FileDrop.d.ts +15 -0
- package/dist/components/file-drop/FileDropContext.d.ts +3 -0
- package/dist/components/file-drop/index.d.ts +2 -0
- package/dist/components/file-drop/types.d.ts +4 -0
- package/dist/components/file-drop/useFileDrop.d.ts +2 -0
- package/dist/components/file-input/FileInput.d.ts +11 -0
- package/dist/components/file-input/index.d.ts +1 -0
- package/dist/components/flex/Flex.d.ts +11 -0
- package/dist/components/flex/Flex.js.map +1 -1
- package/dist/components/flex/index.d.ts +1 -0
- package/dist/components/form/Form.d.ts +16 -0
- package/dist/components/form/index.d.ts +4 -0
- package/dist/components/form/useFieldError.d.ts +3 -0
- package/dist/components/form/useFormCustomContext.d.ts +7 -0
- package/dist/components/form/validation.d.ts +25 -0
- package/dist/components/grid/Grid.d.ts +19 -0
- package/dist/components/grid/Grid.js +1 -1
- package/dist/components/grid/Grid.js.map +1 -1
- package/dist/components/grid/index.d.ts +1 -0
- package/dist/components/heading/Heading.d.ts +15 -0
- package/dist/components/heading/Heading.js.map +1 -1
- package/dist/components/heading/index.d.ts +1 -0
- package/dist/components/icon/Icon.d.ts +15 -0
- package/dist/components/icon/Icon.js.map +1 -1
- package/dist/components/icon/index.d.ts +1 -0
- package/dist/components/image/Image.d.ts +17 -0
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/index.d.ts +87 -0
- package/dist/components/inline-message/InlineMessage.config.d.ts +3 -0
- package/dist/components/inline-message/InlineMessage.d.ts +22 -0
- package/dist/components/inline-message/InlineMessage.types.d.ts +1 -0
- package/dist/components/inline-message/index.d.ts +1 -0
- package/dist/components/input/Input.d.ts +52 -0
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input/Input.js.map +1 -1
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input-field/InputField.d.ts +9 -0
- package/dist/components/input-field/index.d.ts +1 -0
- package/dist/components/keyboard-shortcut/KeyboardShortcut.d.ts +35 -0
- package/dist/components/keyboard-shortcut/KeyboardShortcut.js.map +1 -1
- package/dist/components/keyboard-shortcut/index.d.ts +30 -0
- package/dist/components/label/Label.d.ts +22 -0
- package/dist/components/label/Label.js +1 -1
- package/dist/components/label/Label.js.map +1 -1
- package/dist/components/label/index.d.ts +1 -0
- package/dist/components/link/Link.d.ts +18 -0
- package/dist/components/link/Link.js.map +1 -1
- package/dist/components/link/index.d.ts +1 -0
- package/dist/components/list/List.d.ts +24 -0
- package/dist/components/list/List.js.map +1 -1
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/loader/Loader.d.ts +8 -0
- package/dist/components/loader/Loader.js +1 -1
- package/dist/components/loader/Loader.js.map +1 -1
- package/dist/components/loader/index.d.ts +1 -0
- package/dist/components/markdown-content/MarkdownContent.d.ts +29 -0
- package/dist/components/markdown-content/__mockdata__/mockMarkdown.d.ts +1 -0
- package/dist/components/markdown-content/components/MarkdownCode.d.ts +7 -0
- package/dist/components/markdown-content/components/MarkdownEmphasis.d.ts +13 -0
- package/dist/components/markdown-content/components/MarkdownHeading.d.ts +8 -0
- package/dist/components/markdown-content/components/MarkdownImage.d.ts +8 -0
- package/dist/components/markdown-content/components/MarkdownInlineCode.d.ts +7 -0
- package/dist/components/markdown-content/components/MarkdownLink.d.ts +8 -0
- package/dist/components/markdown-content/components/MarkdownList.d.ts +9 -0
- package/dist/components/markdown-content/components/MarkdownListItem.d.ts +8 -0
- package/dist/components/markdown-content/components/MarkdownParagraph.d.ts +8 -0
- package/dist/components/markdown-content/components/MarkdownStrong.d.ts +8 -0
- package/dist/components/markdown-content/components/MarkdownText.d.ts +7 -0
- package/dist/components/markdown-content/components/MarkdownThematicBreak.d.ts +6 -0
- package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -1
- package/dist/components/markdown-content/components/index.d.ts +12 -0
- package/dist/components/markdown-content/index.d.ts +1 -0
- package/dist/components/navigation/NavigationMenu.colorscheme.config.d.ts +21 -0
- package/dist/components/navigation/NavigationMenu.d.ts +68 -0
- package/dist/components/navigation/NavigationMenu.styles.d.ts +2 -0
- package/dist/components/navigation/NavigationMenu.styles.js +1 -1
- package/dist/components/navigation/NavigationMenu.styles.js.map +1 -1
- package/dist/components/navigation/NavigationMenuContext.d.ts +7 -0
- package/dist/components/navigation/NavigationMenuDropdown.d.ts +11 -0
- package/dist/components/navigation/NavigationMenuDropdownContent.d.ts +11 -0
- package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +27 -0
- package/dist/components/navigation/NavigationMenuDropdownItem.js.map +1 -1
- package/dist/components/navigation/NavigationMenuDropdownTrigger.d.ts +7 -0
- package/dist/components/navigation/NavigationMenuDropdownTrigger.js.map +1 -1
- package/dist/components/navigation/NavigationMenuLink.d.ts +16 -0
- package/dist/components/navigation/NavigationMenuLink.js +1 -1
- package/dist/components/navigation/NavigationMenuLink.js.map +1 -1
- package/dist/components/navigation/index.d.ts +1 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.colorscheme.config.d.ts +10 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.d.ts +594 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.d.ts +1 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordion.d.ts +11 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionContent.d.ts +6 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionTrigger.d.ts +9 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionTrigger.js +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionTrigger.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalIcon.d.ts +15 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItem.d.ts +5 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItemContent.d.ts +5 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.d.ts +11 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalList.d.ts +3 -0
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.d.ts +20 -0
- package/dist/components/navigation-menu-vertical/index.d.ts +1 -0
- package/dist/components/notification-badge/NotificationBadge.d.ts +11 -0
- package/dist/components/notification-badge/index.d.ts +1 -0
- package/dist/components/number-input/NumberInput.d.ts +24 -0
- package/dist/components/number-input/NumberInput.js +1 -1
- package/dist/components/number-input/NumberInput.js.map +1 -1
- package/dist/components/number-input/NumberInputStepper.d.ts +27 -0
- package/dist/components/number-input/NumberInputStepper.js.map +1 -1
- package/dist/components/number-input/index.d.ts +1 -0
- package/dist/components/number-input-field/NumberInputField.d.ts +19 -0
- package/dist/components/number-input-field/index.d.ts +1 -0
- package/dist/components/pagination/Pagination.d.ts +8 -0
- package/dist/components/pagination/PaginationItems.d.ts +1 -0
- package/dist/components/pagination/PaginationNextButton.d.ts +19 -0
- package/dist/components/pagination/PaginationPage.d.ts +3 -0
- package/dist/components/pagination/PaginationPopover.d.ts +2 -0
- package/dist/components/pagination/PaginationPreviousButton.d.ts +19 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/pagination/pagination-context/PaginationContext.d.ts +4 -0
- package/dist/components/pagination/pagination.constants.d.ts +7 -0
- package/dist/components/pagination/pagination.helper.d.ts +4 -0
- package/dist/components/pagination/types.d.ts +41 -0
- package/dist/components/pagination/usePagination.d.ts +2 -0
- package/dist/components/password-field/PasswordField.d.ts +11 -0
- package/dist/components/password-field/PasswordField.js +1 -1
- package/dist/components/password-field/index.d.ts +1 -0
- package/dist/components/password-input/PasswordInput.d.ts +8 -0
- package/dist/components/password-input/PasswordInput.js +1 -1
- package/dist/components/password-input/PasswordInput.js.map +1 -1
- package/dist/components/password-input/index.d.ts +1 -0
- package/dist/components/popover/Popover.d.ts +12 -0
- package/dist/components/popover/PopoverContent.d.ts +13 -0
- package/dist/components/popover/PopoverContent.js +1 -1
- package/dist/components/popover/PopoverContent.js.map +1 -1
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/progress-bar/ProgressBar.d.ts +20 -0
- package/dist/components/progress-bar/index.d.ts +1 -0
- package/dist/components/radio-button/RadioButton.d.ts +18 -0
- package/dist/components/radio-button/RadioButtonGroup.d.ts +6 -0
- package/dist/components/radio-button/index.d.ts +2 -0
- package/dist/components/radio-button-field/RadioButtonField.d.ts +28 -0
- package/dist/components/radio-button-field/RadioField.d.ts +15 -0
- package/dist/components/radio-button-field/index.d.ts +1 -0
- package/dist/components/radio-card/RadioCard.d.ts +12 -0
- package/dist/components/radio-card/RadioCardGroup.d.ts +8 -0
- package/dist/components/radio-card/index.d.ts +2 -0
- package/dist/components/search-field/SearchField.d.ts +9 -0
- package/dist/components/search-field/index.d.ts +1 -0
- package/dist/components/search-input/SearchInput.d.ts +12 -0
- package/dist/components/search-input/SearchInput.js +1 -1
- package/dist/components/search-input/SearchInput.js.map +1 -1
- package/dist/components/search-input/index.d.ts +2 -0
- package/dist/components/section-message/SectionMessage.d.ts +39 -0
- package/dist/components/section-message/SectionMessage.js.map +1 -1
- package/dist/components/section-message/SectionMessageContext.d.ts +16 -0
- package/dist/components/section-message/SectionMessageDescription.d.ts +3 -0
- package/dist/components/section-message/SectionMessageDescription.js +1 -1
- package/dist/components/section-message/SectionMessageDismiss.d.ts +3 -0
- package/dist/components/section-message/SectionMessageDismiss.js +1 -1
- package/dist/components/section-message/SectionMessageIcon.d.ts +5 -0
- package/dist/components/section-message/SectionMessageIcon.js +1 -1
- package/dist/components/section-message/SectionMessageLayout.d.ts +8 -0
- package/dist/components/section-message/SectionMessageLayout.js +1 -1
- package/dist/components/section-message/SectionMessageTitle.d.ts +3 -0
- package/dist/components/section-message/index.d.ts +1 -0
- package/dist/components/segmented-control/SegmentedControl.d.ts +58 -0
- package/dist/components/segmented-control/SegmentedControl.types.d.ts +1 -0
- package/dist/components/segmented-control/SegmentedControlBadge.d.ts +3 -0
- package/dist/components/segmented-control/SegmentedControlContent.d.ts +4 -0
- package/dist/components/segmented-control/SegmentedControlContext.d.ts +9 -0
- package/dist/components/segmented-control/SegmentedControlDescription.d.ts +19 -0
- package/dist/components/segmented-control/SegmentedControlHeading.d.ts +19 -0
- package/dist/components/segmented-control/SegmentedControlIcon.d.ts +3 -0
- package/dist/components/segmented-control/SegmentedControlItem.d.ts +11 -0
- package/dist/components/segmented-control/SegmentedControlItemList.d.ts +3 -0
- package/dist/components/segmented-control/SegmentedControlItemList.js +1 -1
- package/dist/components/segmented-control/SegmentedControlItemList.js.map +1 -1
- package/dist/components/segmented-control/SegmentedControlRoot.d.ts +14 -0
- package/dist/components/segmented-control/index.d.ts +1 -0
- package/dist/components/select/Select.d.ts +17 -0
- package/dist/components/select/Select.js +1 -1
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select-field/SelectField.d.ts +9 -0
- package/dist/components/select-field/index.d.ts +1 -0
- package/dist/components/side-bar/SideBar.d.ts +64 -0
- package/dist/components/side-bar/SideBar.js +1 -1
- package/dist/components/side-bar/SideBar.js.map +1 -1
- package/dist/components/side-bar/SideBarComponents.d.ts +46 -0
- package/dist/components/side-bar/SideBarContext.d.ts +7 -0
- package/dist/components/side-bar/index.d.ts +2 -0
- package/dist/components/slider/Slider.d.ts +18 -0
- package/dist/components/slider/Slider.js.map +1 -1
- package/dist/components/slider/SliderSteps.d.ts +13 -0
- package/dist/components/slider/SliderValue.d.ts +9 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/slider-field/SliderField.d.ts +11 -0
- package/dist/components/slider-field/index.d.ts +1 -0
- package/dist/components/sortable/Handle.d.ts +22 -0
- package/dist/components/sortable/Handle.js.map +1 -1
- package/dist/components/sortable/SortableHandle.d.ts +11 -0
- package/dist/components/sortable/SortableItem.d.ts +14 -0
- package/dist/components/sortable/SortableItem.js +1 -1
- package/dist/components/sortable/SortableItem.js.map +1 -1
- package/dist/components/sortable/SortableRoot.d.ts +15 -0
- package/dist/components/sortable/index.d.ts +21 -0
- package/dist/components/spacer/Spacer.d.ts +9 -0
- package/dist/components/spacer/index.d.ts +1 -0
- package/dist/components/stepper/Stepper.d.ts +10 -0
- package/dist/components/stepper/StepperStepBack.d.ts +4 -0
- package/dist/components/stepper/StepperStepBullet.d.ts +15 -0
- package/dist/components/stepper/StepperStepContainer.d.ts +18 -0
- package/dist/components/stepper/StepperStepForward.d.ts +4 -0
- package/dist/components/stepper/StepperStepLabel.d.ts +17 -0
- package/dist/components/stepper/StepperSteps.d.ts +3 -0
- package/dist/components/stepper/index.d.ts +1 -0
- package/dist/components/stepper/stepper-context/StepperContext.d.ts +4 -0
- package/dist/components/stepper/types.d.ts +54 -0
- package/dist/components/switch/Switch.d.ts +13 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/table/Table.d.ts +68 -0
- package/dist/components/table/TableBody.d.ts +14 -0
- package/dist/components/table/TableCell.d.ts +5 -0
- package/dist/components/table/TableFooter.d.ts +5 -0
- package/dist/components/table/TableFooterCell.d.ts +5 -0
- package/dist/components/table/TableHeader.d.ts +22 -0
- package/dist/components/table/TableHeaderCell.d.ts +5 -0
- package/dist/components/table/TableRow.d.ts +6 -0
- package/dist/components/table/TableRow.js.map +1 -1
- package/dist/components/table/TableStickyColumnsContainer.d.ts +5 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/useStickyColumnsCss.d.ts +15 -0
- package/dist/components/table/useStickyColumnsCss.js +1 -1
- package/dist/components/table/useStickyColumnsCss.js.map +1 -1
- package/dist/components/tabs/Tabs.d.ts +21 -0
- package/dist/components/tabs/TabsContent.d.ts +3 -0
- package/dist/components/tabs/TabsTrigger.d.ts +6 -0
- package/dist/components/tabs/TabsTriggerList.d.ts +12 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/text/Text.d.ts +32 -0
- package/dist/components/text/Text.js.map +1 -1
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/textarea/Textarea.d.ts +19 -0
- package/dist/components/textarea/Textarea.js.map +1 -1
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea-field/TextareaField.d.ts +9 -0
- package/dist/components/textarea-field/index.d.ts +1 -0
- package/dist/components/tile/Tile.d.ts +16 -0
- package/dist/components/tile/Tile.js +1 -1
- package/dist/components/tile/Tile.js.map +1 -1
- package/dist/components/tile/TileGroup.d.ts +11 -0
- package/dist/components/tile/index.d.ts +2 -0
- package/dist/components/tile-interactive/TileInteractive.d.ts +20 -0
- package/dist/components/tile-interactive/TileInteractive.js +1 -1
- package/dist/components/tile-interactive/TileInteractive.js.map +1 -1
- package/dist/components/tile-interactive/index.d.ts +1 -0
- package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +22 -0
- package/dist/components/tile-toggle-group/TileToggleGroupItem.js +1 -1
- package/dist/components/tile-toggle-group/TileToggleGroupItem.js.map +1 -1
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.d.ts +26 -0
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.js.map +1 -1
- package/dist/components/tile-toggle-group/index.d.ts +7 -0
- package/dist/components/toast/Toast.d.ts +21 -0
- package/dist/components/toast/Toast.js +1 -1
- package/dist/components/toast/Toast.js.map +1 -1
- package/dist/components/toast/ToastCloseButton.d.ts +7 -0
- package/dist/components/toast/ToastIcon.d.ts +3 -0
- package/dist/components/toast/ToastProvider.d.ts +10 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +23 -0
- package/dist/components/toggle-group/ToggleGroupButton.js +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +6 -0
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +40 -0
- package/dist/components/toggle-group/ToggleGroupRoot.js.map +1 -1
- package/dist/components/toggle-group/index.d.ts +43 -0
- package/dist/components/tooltip/Tooltip.d.ts +17 -0
- package/dist/components/tooltip/TooltipContent.d.ts +10 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/top-bar/TopBar.colorscheme.config.d.ts +7 -0
- package/dist/components/top-bar/TopBar.d.ts +62 -0
- package/dist/components/top-bar/TopBar.js +1 -1
- package/dist/components/top-bar/TopBar.js.map +1 -1
- package/dist/components/top-bar/TopBarActionIcon.d.ts +8 -0
- package/dist/components/top-bar/TopBarActionIcon.js.map +1 -1
- package/dist/components/top-bar/TopBarBrand.d.ts +24 -0
- package/dist/components/top-bar/index.d.ts +1 -0
- package/dist/components/tree/Tree.d.ts +865 -0
- package/dist/components/tree/Tree.js.map +1 -1
- package/dist/components/tree/TreeCollapsible.d.ts +10 -0
- package/dist/components/tree/TreeCollapsibleContent.d.ts +8 -0
- package/dist/components/tree/TreeCollapsibleContent.js +1 -1
- package/dist/components/tree/TreeCollapsibleContent.js.map +1 -1
- package/dist/components/tree/TreeCollapsibleTrigger.d.ts +7 -0
- package/dist/components/tree/TreeIcon.d.ts +15 -0
- package/dist/components/tree/TreeItem.d.ts +5 -0
- package/dist/components/tree/TreeItemContent.d.ts +12 -0
- package/dist/components/tree/TreeList.d.ts +5 -0
- package/dist/components/tree/TreeList.js.map +1 -1
- package/dist/components/tree/TreeListItem.d.ts +12 -0
- package/dist/components/tree/TreeText.d.ts +5 -0
- package/dist/components/tree/index.d.ts +1 -0
- package/dist/components/video/Video.d.ts +10 -0
- package/dist/components/video/Video.js.map +1 -1
- package/dist/components/video/index.d.ts +1 -0
- package/dist/docgen.json +1 -0
- package/dist/experiments/color-scheme/ColorScheme.config.d.ts +190 -0
- package/dist/experiments/color-scheme/ColorScheme.config.js +1 -1
- package/dist/experiments/color-scheme/ColorScheme.config.js.map +1 -1
- package/dist/experiments/color-scheme/ColorScheme.d.ts +13 -0
- package/dist/experiments/color-scheme/ColorScheme.js +1 -1
- package/dist/experiments/color-scheme/ColorScheme.js.map +1 -1
- package/dist/experiments/color-scheme/index.d.ts +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/styled.d.ts +35 -0
- package/dist/styled.js +1 -1
- package/dist/styled.js.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/navigatorActions.types.d.ts +4 -0
- package/dist/types/polymorphicComponentProp.types.d.ts +59 -0
- package/dist/utilities/css-wrapper/CSSWrapper.d.ts +10 -0
- package/dist/utilities/css-wrapper/index.d.ts +1 -0
- package/dist/utilities/event/index.d.ts +1 -0
- package/dist/utilities/event/preventEvent.d.ts +1 -0
- package/dist/utilities/hooks/useCallbackRef.d.ts +9 -0
- package/dist/utilities/hooks/useIsMountedRef.d.ts +1 -0
- package/dist/utilities/hooks/useResizeObserver.d.ts +8 -0
- package/dist/utilities/hooks/useScrollPosition.d.ts +11 -0
- package/dist/utilities/hooks/useSize.d.ts +9 -0
- package/dist/utilities/hooks/useWindowScrollPosition.d.ts +10 -0
- package/dist/utilities/hooks/useWindowSize.d.ts +8 -0
- package/dist/utilities/index.d.ts +4 -0
- package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.d.ts +5 -0
- package/dist/utilities/no-overflow-wrapper/index.d.ts +1 -0
- package/dist/utilities/optional-tooltip-wrapper/OptionalTooltipWrapper.d.ts +11 -0
- package/dist/utilities/optional-tooltip-wrapper/index.d.ts +2 -0
- package/dist/utilities/optional-visually-hidden-wrapper/OptionalVisuallyHiddenWrapper.d.ts +7 -0
- package/dist/utilities/optional-visually-hidden-wrapper/index.d.ts +1 -0
- package/dist/utilities/override-styled-variant-value/overrideStyledVariantValue.d.ts +1 -0
- package/dist/utilities/radix-overrides/index.d.ts +1 -0
- package/dist/utilities/radix-overrides/toggle-group/ToggleGroupRoot.d.ts +7 -0
- package/dist/utilities/radix-overrides/toggle-group/ToggleGroupRoot.js +1 -1
- package/dist/utilities/radix-overrides/toggle-group/ToggleGroupRoot.js.map +1 -1
- package/dist/utilities/radix-overrides/toggle-group/index.d.ts +7 -0
- package/dist/utilities/style/backdrop-overlay.d.ts +1 -0
- package/dist/utilities/style/get-icon-size.d.ts +1 -0
- package/dist/utilities/style/index.d.ts +1 -0
- package/dist/utilities/types.d.ts +24 -0
- package/dist/utilities/uri/index.d.ts +8 -0
- package/package.json +15 -5
- package/src/index.css +167 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Table } from '../table';
|
|
3
|
+
import { TableBody } from '../table/TableBody';
|
|
4
|
+
import { DataTableHead } from './DataTableHead';
|
|
5
|
+
export type DataTableTableProps = Omit<React.ComponentProps<typeof Table>, 'children' | 'numberOfStickyColumns'> & Partial<Pick<React.ComponentProps<typeof DataTableHead>, 'theme' | 'sortable'>> & Partial<Pick<React.ComponentProps<typeof TableBody>, 'striped'>> & {
|
|
6
|
+
scrollOptions?: {
|
|
7
|
+
hasStickyHeader?: boolean;
|
|
8
|
+
stickyHeaderOffset?: number;
|
|
9
|
+
headerCss?: string;
|
|
10
|
+
numberOfStickyColumns?: number;
|
|
11
|
+
scrollContainerCss?: string;
|
|
12
|
+
showTotalInFirstColumn?: boolean;
|
|
13
|
+
totalSuffix?: string;
|
|
14
|
+
};
|
|
15
|
+
rowAction?: (row: Record<string, unknown>, event: React.MouseEvent) => void;
|
|
16
|
+
withContainer?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare const DataTableTable: ({ sortable, striped, theme, className, scrollOptions, rowAction, withContainer, ...props }: DataTableTableProps) => JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TAsyncDataResult } from '../DataTable.types';
|
|
3
|
+
import type { DataTableTableProps } from '../DataTableTable';
|
|
4
|
+
type DragAndDropTableProps = DataTableTableProps & {
|
|
5
|
+
className?: string;
|
|
6
|
+
idColumn?: string;
|
|
7
|
+
onDragAndDrop?: (onDragAndDropData: {
|
|
8
|
+
oldIndex: number;
|
|
9
|
+
newIndex: number;
|
|
10
|
+
newData: TAsyncDataResult;
|
|
11
|
+
}) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const DragAndDropTable: ({ idColumn, onDragAndDrop, sortable, striped, theme, className, ...props }: DragAndDropTableProps) => React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{arrayMove as T}from"@dnd-kit/sortable";import E from"clsx";import*as
|
|
1
|
+
import{arrayMove as T}from"@dnd-kit/sortable";import E from"clsx";import*as e from"react";import{Sortable as I}from"../../sortable/index.js";import{Table as g}from"../../table/Table.js";import{DataTable as x}from"../DataTable.js";import{AsyncDataState as A}from"../DataTable.types.js";import{useDataTable as C}from"../DataTableContext.js";import{DataTableLoading as N}from"../DataTableLoading.js";import{DragAndDropTableBody as S}from"./DragAndDropTableBody.js";const h=({idColumn:r="id",onDragAndDrop:o,sortable:m,striped:s,theme:i,className:d,...p})=>{const{asyncDataState:c,data:t,setData:D}=C(),u=c===A.PENDING,b=e.useMemo(()=>t.results.map(a=>a[r]),[t]),f=e.useCallback(({oldIndex:a,newIndex:l})=>{const n=T(t.results,a,l),y={results:n,total:t.total};D({results:n,total:t.total}),o==null||o({oldIndex:a,newIndex:l,newData:y})},[t,o]);return e.createElement(I.Root,{onSortChange:f,sortableIds:b},e.createElement(N,null),e.createElement(g,{...p,className:E(d,u&&["opacity-50","pointer-events-none","transition-opacity,duration-250,linear,delay-150"])},e.createElement(x.Head,{theme:i,sortable:m}),e.createElement(S,{striped:s,idColumn:r})))};export{h as DragAndDropTable};
|
|
2
2
|
//# sourceMappingURL=DragAndDropTable.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Table } from '../../table';
|
|
3
|
+
type DataTableBodyProps = Omit<React.ComponentProps<typeof Table.Body>, 'children'> & {
|
|
4
|
+
idColumn?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const DragAndDropTableBody: ({ striped, idColumn, ...props }: DataTableBodyProps) => React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Row } from '@tanstack/react-table';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Table } from '../../table';
|
|
4
|
+
export type DataTableDraggableRowProps = React.ComponentProps<typeof Table.Row> & {
|
|
5
|
+
row: Row<Record<string, unknown>>;
|
|
6
|
+
idColumn?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const DragAndDropTableRow: ({ row, idColumn }: DataTableDraggableRowProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DragAndDropTable } from './DragAndDropTable';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { PaginationState, SortingState } from '@tanstack/react-table';
|
|
2
|
+
import type { TAsyncDataOptions, TAsyncDataResult, TGetAsyncData } from './DataTable.types';
|
|
3
|
+
export declare const getNewAsyncData: (getAsyncData: TGetAsyncData, asyncDataOptions: Partial<TAsyncDataOptions>, paginationState: PaginationState, sorting: SortingState, globalFilter: string) => Promise<TAsyncDataResult | undefined>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TcolorScheme } from '../../../experiments/color-scheme';
|
|
3
|
+
declare const StyledNav: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLElement | null) => void) | React.RefObject<HTMLElement> | null | undefined;
|
|
5
|
+
}, never> & {
|
|
6
|
+
as?: React.ElementType;
|
|
7
|
+
}, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
8
|
+
type PaginationProps = React.ComponentProps<typeof StyledNav> & {
|
|
9
|
+
colorScheme?: TcolorScheme;
|
|
10
|
+
};
|
|
11
|
+
/** Applies pagination to parent DataTableProvider and renders UI to switch pages etc */
|
|
12
|
+
export declare const Pagination: {
|
|
13
|
+
({ colorScheme, ...props }: PaginationProps): React.JSX.Element | null;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Pagination } from './Pagination';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PaginationState } from '@tanstack/react-table';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const usePagination: (initialPaginationState: PaginationState | undefined) => {
|
|
4
|
+
isPaginated: boolean;
|
|
5
|
+
paginationState: PaginationState | undefined;
|
|
6
|
+
setPaginationState: React.Dispatch<React.SetStateAction<PaginationState | undefined>>;
|
|
7
|
+
applyPagination: () => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SortingState } from '@tanstack/react-table';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TDefaultSort } from './DataTable.types';
|
|
4
|
+
export declare const useSortByColumn: (defaultSort: TDefaultSort | undefined) => {
|
|
5
|
+
isSortable: boolean;
|
|
6
|
+
setIsSortable: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
|
+
sorting: SortingState;
|
|
8
|
+
setSorting: React.Dispatch<React.SetStateAction<SortingState>>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DateInputProps } from '../../components/date-input';
|
|
3
|
+
import { FieldElementWrapperProps } from '../../components/field-wrapper';
|
|
4
|
+
type DateFieldProps = DateInputProps & FieldElementWrapperProps;
|
|
5
|
+
export declare const DateField: {
|
|
6
|
+
({ className, hideLabel, label, name, validation, prompt, description, appearance, ...remainingProps }: DateFieldProps): React.JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DateField } from './DateField';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Props as DayzedInterface } from 'dayzed';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { CalendarTranslationProps } from '../calendar/Calendar';
|
|
4
|
+
export type DateInputProps = Omit<DayzedInterface, 'onDateSelected'> & CalendarTranslationProps & {
|
|
5
|
+
initialDate?: Date;
|
|
6
|
+
dateFormat?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
size?: 'sm' | 'md' | 'lg';
|
|
9
|
+
revalidate?: () => Promise<boolean>;
|
|
10
|
+
onChange?: (value?: Date) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const DateInput: React.ForwardRefExoticComponent<Omit<DayzedInterface, "onDateSelected"> & CalendarTranslationProps & {
|
|
13
|
+
initialDate?: Date;
|
|
14
|
+
dateFormat?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
size?: "sm" | "md" | "lg";
|
|
17
|
+
revalidate?: () => Promise<boolean>;
|
|
18
|
+
onChange?: (value?: Date) => void;
|
|
19
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{CalendarEvent as H}from"@atom-learning/icons";import c from"dayjs";import P from"dayjs/plugin/customParseFormat";import*as e from"react";import"../../utilities/css-wrapper/CSSWrapper.js";import{getFieldIconSize as _}from"../../utilities/style/get-icon-size.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import{useCallbackRefState as B}from"../../utilities/hooks/useCallbackRef.js";import{ActionIcon as U}from"../action-icon/ActionIcon.js";import{Calendar as V}from"../calendar/Calendar.js";import{DEFAULT_LABELS as W}from"../calendar/constants.js";import{Icon as j}from"../icon/Icon.js";import{Input as Y}from"../input/Input.js";import{Popover as u}from"../popover/Popover.js";import{DEFAULT_DATE_FORMAT as C}from"./constants.js";c.extend(P);const g=(n,o=C)=>n?c(n).format(o):"",w=e.forwardRef(({initialDate:n,dateFormat:o=C,firstDayOfWeek:I=1,disabled:f,monthNames:N,weekdayNames:T,size:d="md",labels:k,revalidate:m,onChange:p,minDate:A,maxDate:F,...O},S)=>{const[s,D]=e.useState(n?c(n).toDate():void 0),[l,x]=B();e.useImperativeHandle(S,()=>l);const z=g(s,o),L=e.useCallback(t=>{const r=t.target.value,a=c(r,o),i=a.isValid()?a.toDate():void 0;D(i),p==null||p(i)},[o,p]),
|
|
1
|
+
import{CalendarEvent as H}from"@atom-learning/icons";import c from"dayjs";import P from"dayjs/plugin/customParseFormat";import*as e from"react";import"../../utilities/css-wrapper/CSSWrapper.js";import{getFieldIconSize as _}from"../../utilities/style/get-icon-size.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import{useCallbackRefState as B}from"../../utilities/hooks/useCallbackRef.js";import{ActionIcon as U}from"../action-icon/ActionIcon.js";import{Calendar as V}from"../calendar/Calendar.js";import{DEFAULT_LABELS as W}from"../calendar/constants.js";import{Icon as j}from"../icon/Icon.js";import{Input as Y}from"../input/Input.js";import{Popover as u}from"../popover/Popover.js";import{DEFAULT_DATE_FORMAT as C}from"./constants.js";c.extend(P);const g=(n,o=C)=>n?c(n).format(o):"",w=e.forwardRef(({initialDate:n,dateFormat:o=C,firstDayOfWeek:I=1,disabled:f,monthNames:N,weekdayNames:T,size:d="md",labels:k,revalidate:m,onChange:p,minDate:A,maxDate:F,...O},S)=>{const[s,D]=e.useState(n?c(n).toDate():void 0),[l,x]=B();e.useImperativeHandle(S,()=>l);const z=g(s,o),L=e.useCallback(t=>{const r=t.target.value,a=c(r,o),i=a.isValid()?a.toDate():void 0;D(i),p==null||p(i)},[o,p]),E=e.useCallback(t=>{D(t),(()=>{var r;if(!l)return;const a=(r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:r.set;a==null||a.call(l,g(t,o));const i=new Event("input",{bubbles:!0});l.dispatchEvent(i)})()},[o,l]),b={...W,...k},[R,v]=e.useState(!1),h=e.useRef(null),y=e.useRef(null),M=e.useMemo(()=>_(d),[d]);return e.createElement("div",{className:"relative h-max"},e.createElement(Y,{name:"date",disabled:f,size:d,...O,onChange:L,ref:x,defaultValue:z}),e.createElement(u,{modal:!0,open:R,onOpenChange:v},e.createElement(u.Trigger,{asChild:!0},e.createElement(U,{disabled:f,label:b.open,size:M,theme:"neutral",hasTooltip:!1,className:"absolute top-1/2 right-0 -translate-y-1/2"},e.createElement(j,{is:H}))),e.createElement(u.Portal,null,e.createElement(u.Content,{side:"bottom",align:"end",showCloseButton:!1,onOpenAutoFocus:t=>{var r,a;t.preventDefault(),s?(r=y.current)==null||r.focus():(a=h.current)==null||a.focus()},className:"z-1147483646 pr-6"},e.createElement(V,{date:s||new Date,selected:s,onDateSelected:async t=>{v(!1),await E(t.date),m&&m()},setYear:async t=>{await E(t),m&&m()},minDate:A,maxDate:F,refDateToday:h,refDateSelected:y,firstDayOfWeek:I,monthNames:N,weekdayNames:T,labels:b})))))});w.displayName="DateInput";export{w as DateInput};
|
|
2
2
|
//# sourceMappingURL=DateInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.js","sources":["../../../src/components/date-input/DateInput.tsx"],"sourcesContent":["import { CalendarEvent } from '@atom-learning/icons'\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat'\nimport type { Props as DayzedInterface } from 'dayzed'\nimport * as React from 'react'\n\nimport { getFieldIconSize } from '~/utilities'\nimport { useCallbackRefState } from '~/utilities/hooks/useCallbackRef'\n\nimport { ActionIcon } from '../action-icon/ActionIcon'\nimport { Calendar, CalendarTranslationProps } from '../calendar/Calendar'\nimport { DEFAULT_LABELS } from '../calendar/constants'\nimport { Icon } from '../icon/Icon'\nimport { Input } from '../input/Input'\nimport { Popover } from '../popover/Popover'\nimport { DEFAULT_DATE_FORMAT } from './constants'\n\ndayjs.extend(customParseFormat)\n\nexport type DateInputProps = Omit<DayzedInterface, 'onDateSelected'> &\n CalendarTranslationProps & {\n initialDate?: Date\n dateFormat?: string\n disabled?: boolean\n size?: 'sm' | 'md' | 'lg'\n revalidate?: () => Promise<boolean>\n onChange?: (value?: Date) => void\n }\n\nconst formatDateToString = (date?: Date, dateFormat = DEFAULT_DATE_FORMAT) =>\n date ? dayjs(date).format(dateFormat) : ''\n\nexport const DateInput
|
|
1
|
+
{"version":3,"file":"DateInput.js","sources":["../../../src/components/date-input/DateInput.tsx"],"sourcesContent":["import { CalendarEvent } from '@atom-learning/icons'\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat'\nimport type { Props as DayzedInterface } from 'dayzed'\nimport * as React from 'react'\n\nimport { getFieldIconSize } from '~/utilities'\nimport { useCallbackRefState } from '~/utilities/hooks/useCallbackRef'\n\nimport { ActionIcon } from '../action-icon/ActionIcon'\nimport { Calendar, CalendarTranslationProps } from '../calendar/Calendar'\nimport { DEFAULT_LABELS } from '../calendar/constants'\nimport { Icon } from '../icon/Icon'\nimport { Input } from '../input/Input'\nimport { Popover } from '../popover/Popover'\nimport { DEFAULT_DATE_FORMAT } from './constants'\n\ndayjs.extend(customParseFormat)\n\nexport type DateInputProps = Omit<DayzedInterface, 'onDateSelected'> &\n CalendarTranslationProps & {\n initialDate?: Date\n dateFormat?: string\n disabled?: boolean\n size?: 'sm' | 'md' | 'lg'\n revalidate?: () => Promise<boolean>\n onChange?: (value?: Date) => void\n }\n\nconst formatDateToString = (date?: Date, dateFormat = DEFAULT_DATE_FORMAT) =>\n date ? dayjs(date).format(dateFormat) : ''\n\nexport const DateInput = React.forwardRef<HTMLInputElement, DateInputProps>(\n (\n {\n initialDate,\n dateFormat = DEFAULT_DATE_FORMAT,\n firstDayOfWeek = 1,\n disabled,\n monthNames,\n weekdayNames,\n size = 'md',\n labels,\n revalidate,\n onChange,\n minDate,\n maxDate,\n ...remainingProps\n },\n ref\n ) => {\n const [date, setDate] = React.useState(\n initialDate ? dayjs(initialDate).toDate() : undefined\n )\n\n const [inputElRef, setInputElRef] = useCallbackRefState()\n React.useImperativeHandle(ref, () => inputElRef as HTMLInputElement)\n\n const dateString = formatDateToString(date, dateFormat)\n\n const handleInputChange = React.useCallback(\n (event) => {\n const newDateString = event.target.value\n const parsedInputDate = dayjs(newDateString, dateFormat)\n const newDate = parsedInputDate.isValid()\n ? parsedInputDate.toDate()\n : undefined\n setDate(newDate)\n onChange?.(newDate)\n },\n [dateFormat, onChange]\n )\n\n const handleCalendarChange = React.useCallback(\n (newDate) => {\n setDate(newDate)\n\n const mirrorChangeToInputElement = () => {\n if (!inputElRef) return\n\n // Call the `set` function on the input value directly to mirror the change.\n // Props to: https://stackoverflow.com/a/46012210\n const nativeInputValueSetter = Object.getOwnPropertyDescriptor(\n window.HTMLInputElement.prototype,\n 'value'\n )?.set\n nativeInputValueSetter?.call(\n inputElRef,\n formatDateToString(newDate, dateFormat)\n )\n const event = new Event('input', { bubbles: true })\n inputElRef.dispatchEvent(event)\n }\n mirrorChangeToInputElement()\n },\n [dateFormat, inputElRef]\n )\n\n const updatedLabels = {\n ...DEFAULT_LABELS,\n ...labels\n }\n\n const [calendarOpen, setCalendarOpen] = React.useState(false)\n\n const refDateToday = React.useRef<HTMLButtonElement>(null)\n const refDateSelected = React.useRef<HTMLButtonElement>(null)\n\n const iconSize = React.useMemo(() => getFieldIconSize(size), [size])\n\n return (\n <div className=\"relative h-max\">\n <Input\n name=\"date\"\n disabled={disabled}\n size={size}\n {...remainingProps}\n onChange={handleInputChange}\n ref={setInputElRef}\n defaultValue={dateString}\n />\n <Popover modal open={calendarOpen} onOpenChange={setCalendarOpen}>\n <Popover.Trigger asChild>\n <ActionIcon\n disabled={disabled}\n label={updatedLabels.open}\n size={iconSize}\n theme=\"neutral\"\n hasTooltip={false}\n className=\"absolute top-1/2 right-0 -translate-y-1/2\"\n >\n <Icon is={CalendarEvent} />\n </ActionIcon>\n </Popover.Trigger>\n <Popover.Portal>\n <Popover.Content\n side=\"bottom\"\n align=\"end\"\n showCloseButton={false}\n onOpenAutoFocus={(e) => {\n e.preventDefault()\n if (date) {\n refDateSelected.current?.focus()\n } else {\n refDateToday.current?.focus()\n }\n }}\n className=\"z-1147483646 pr-6\"\n >\n <Calendar\n date={date || new Date()}\n selected={date}\n onDateSelected={async (date) => {\n setCalendarOpen(false)\n await handleCalendarChange(date.date)\n if (revalidate) revalidate()\n }}\n setYear={async (date) => {\n await handleCalendarChange(date)\n if (revalidate) revalidate()\n }}\n minDate={minDate}\n maxDate={maxDate}\n refDateToday={refDateToday}\n refDateSelected={refDateSelected}\n firstDayOfWeek={firstDayOfWeek}\n monthNames={monthNames}\n weekdayNames={weekdayNames}\n labels={updatedLabels}\n />\n </Popover.Content>\n </Popover.Portal>\n </Popover>\n </div>\n )\n }\n)\n\nDateInput.displayName = 'DateInput'\n"],"names":["dayjs","customParseFormat","formatDateToString","date","dateFormat","DEFAULT_DATE_FORMAT","DateInput","React","initialDate","firstDayOfWeek","disabled","monthNames","weekdayNames","size","labels","revalidate","onChange","minDate","maxDate","remainingProps","ref","setDate","inputElRef","setInputElRef","useCallbackRefState","dateString","handleInputChange","event","newDateString","parsedInputDate","newDate","handleCalendarChange","_a","nativeInputValueSetter","updatedLabels","DEFAULT_LABELS","calendarOpen","setCalendarOpen","refDateToday","refDateSelected","iconSize","getFieldIconSize","Input","Popover","ActionIcon","Icon","CalendarEvent","e","_b","Calendar"],"mappings":"wvBAiBAA,EAAM,OAAOC,CAAiB,EAY9B,MAAMC,EAAqB,CAACC,EAAaC,EAAaC,IACpDF,EAAOH,EAAMG,CAAI,EAAE,OAAOC,CAAU,EAAI,GAE7BE,EAAYC,EAAM,WAC7B,CACE,CACE,YAAAC,EACA,WAAAJ,EAAaC,EACb,eAAAI,EAAiB,EACjB,SAAAC,EACA,WAAAC,EACA,aAAAC,EACA,KAAAC,EAAO,KACP,OAAAC,EACA,WAAAC,EACA,SAAAC,EACA,QAAAC,EACA,QAAAC,EACA,GAAGC,CACL,EACAC,IACG,CACH,KAAM,CAACjB,EAAMkB,CAAO,EAAId,EAAM,SAC5BC,EAAcR,EAAMQ,CAAW,EAAE,OAAW,EAAA,MAC9C,EAEM,CAACc,EAAYC,CAAa,EAAIC,IACpCjB,EAAM,oBAAoBa,EAAK,IAAME,CAA8B,EAEnE,MAAMG,EAAavB,EAAmBC,EAAMC,CAAU,EAEhDsB,EAAoBnB,EAAM,YAC7BoB,GAAU,CACT,MAAMC,EAAgBD,EAAM,OAAO,MAC7BE,EAAkB7B,EAAM4B,EAAexB,CAAU,EACjD0B,EAAUD,EAAgB,QAC5BA,EAAAA,EAAgB,SAChB,OACJR,EAAQS,CAAO,EACfd,GAAA,MAAAA,EAAWc,CAAAA,CACb,EACA,CAAC1B,EAAYY,CAAQ,CACvB,EAEMe,EAAuBxB,EAAM,YAChCuB,GAAY,CACXT,EAAQS,CAAO,GAEoB,IAAM,CA7EjD,IAAAE,EA8EU,GAAI,CAACV,EAAY,OAIjB,MAAMW,GAAyBD,EAAA,OAAO,yBACpC,OAAO,iBAAiB,UACxB,OACF,IAH+B,YAAAA,EAG5B,IACHC,GAAA,MAAAA,EAAwB,KACtBX,EACApB,EAAmB4B,EAAS1B,CAAU,CAAA,EAExC,MAAMuB,EAAQ,IAAI,MAAM,QAAS,CAAE,QAAS,EAAK,CAAC,EAClDL,EAAW,cAAcK,CAAK,CAChC,IAEF,EACA,CAACvB,EAAYkB,CAAU,CACzB,EAEMY,EAAgB,CACpB,GAAGC,EACH,GAAGrB,CACL,EAEM,CAACsB,EAAcC,CAAe,EAAI9B,EAAM,SAAS,EAAK,EAEtD+B,EAAe/B,EAAM,OAA0B,IAAI,EACnDgC,EAAkBhC,EAAM,OAA0B,IAAI,EAEtDiC,EAAWjC,EAAM,QAAQ,IAAMkC,EAAiB5B,CAAI,EAAG,CAACA,CAAI,CAAC,EAEnE,OACEN,EAAA,cAAC,MAAA,CAAI,UAAU,gBAAA,EACbA,EAAA,cAACmC,EAAA,CACC,KAAK,OACL,SAAUhC,EACV,KAAMG,EACL,GAAGM,EACJ,SAAUO,EACV,IAAKH,EACL,aAAcE,CAChB,CAAA,EACAlB,EAAA,cAACoC,EAAA,CAAQ,MAAK,GAAC,KAAMP,EAAc,aAAcC,GAC/C9B,EAAA,cAACoC,EAAQ,QAAR,CAAgB,QAAO,IACtBpC,EAAA,cAACqC,EAAA,CACC,SAAUlC,EACV,MAAOwB,EAAc,KACrB,KAAMM,EACN,MAAM,UACN,WAAY,GACZ,UAAU,2CAEVjC,EAAAA,EAAA,cAACsC,EAAA,CAAK,GAAIC,CAAAA,CAAe,CAC3B,CACF,EACAvC,EAAA,cAACoC,EAAQ,OAAR,KACCpC,EAAA,cAACoC,EAAQ,QAAR,CACC,KAAK,SACL,MAAM,MACN,gBAAiB,GACjB,gBAAkBI,GAAM,CA3ItC,IAAAf,EAAAgB,EA4IgBD,EAAE,eAAA,EACE5C,GACF6B,EAAAO,EAAgB,UAAhB,MAAAP,EAAyB,MAEzBgB,GAAAA,EAAAV,EAAa,UAAb,MAAAU,EAAsB,MAAA,CAE1B,EACA,UAAU,mBAEVzC,EAAAA,EAAA,cAAC0C,EAAA,CACC,KAAM9C,GAAQ,IAAI,KAClB,SAAUA,EACV,eAAgB,MAAOA,GAAS,CAC9BkC,EAAgB,EAAK,EACrB,MAAMN,EAAqB5B,EAAK,IAAI,EAChCY,GAAYA,EAAW,CAC7B,EACA,QAAS,MAAOZ,GAAS,CACvB,MAAM4B,EAAqB5B,CAAI,EAC3BY,GAAYA,GAClB,EACA,QAASE,EACT,QAASC,EACT,aAAcoB,EACd,gBAAiBC,EACjB,eAAgB9B,EAChB,WAAYE,EACZ,aAAcC,EACd,OAAQsB,CACV,CAAA,CACF,CACF,CACF,CACF,CAEJ,CACF,EAEA5B,EAAU,YAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_DATE_FORMAT = "DD/MM/YYYY";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DateInput';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const Dialog: import("react").FC<import("@radix-ui/react-dialog").DialogProps> & {
|
|
2
|
+
Background: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, never> & {
|
|
5
|
+
as?: import("react").ElementType;
|
|
6
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Close: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
Content: ({ size, children, closeDialogText, showCloseButton, ...remainingProps }: Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & import("react").RefAttributes<HTMLDivElement>, "size"> & {
|
|
9
|
+
size?: ("sm" | "md" | "lg" | "xs" | "xl" | "fullscreen" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "sm" | "md" | "lg" | "xs" | "xl" | "fullscreen">>) | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
as?: import("react").ElementType;
|
|
12
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
|
|
13
|
+
closeDialogText?: string;
|
|
14
|
+
showCloseButton?: boolean;
|
|
15
|
+
}) => import("react").JSX.Element;
|
|
16
|
+
Heading: ({ className, ...rest }: React.ComponentProps<typeof import("..").Heading>) => import("react").JSX.Element;
|
|
17
|
+
Footer: ({ className, ...rest }: React.ComponentProps<typeof import("..").Flex>) => import("react").JSX.Element;
|
|
18
|
+
Description: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
19
|
+
Title: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
20
|
+
Trigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
21
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const DialogBackground: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, never> & {
|
|
4
|
+
as?: import("react").ElementType;
|
|
5
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DialogClose: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const StyledDialogContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "size"> & {
|
|
3
|
+
size?: ("sm" | "md" | "lg" | "xs" | "xl" | "fullscreen" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "sm" | "md" | "lg" | "xs" | "xl" | "fullscreen">>) | undefined;
|
|
4
|
+
} & {
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
type DialogContentProps = React.ComponentProps<typeof StyledDialogContent> & {
|
|
8
|
+
closeDialogText?: string;
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const DialogContent: ({ size, children, closeDialogText, showCloseButton, ...remainingProps }: DialogContentProps) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"clsx";import*as m from"react";import{Flex as r}from"../flex/Flex.js";const a=({className:o
|
|
1
|
+
import t from"clsx";import*as m from"react";import{Flex as r}from"../flex/Flex.js";const a=({className:e,...o})=>m.createElement(r,{justify:"end",gap:3,...o,className:t("pt-4",e)});export{a as DialogFooter};
|
|
2
2
|
//# sourceMappingURL=DialogFooter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Dialog } from './Dialog';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface IDismissibleRootContext {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
isDismissed: boolean;
|
|
5
|
+
setIsDismissed: (boolean: any) => void;
|
|
6
|
+
onDismiss: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const DismissibleRootContext: React.Context<IDismissibleRootContext>;
|
|
9
|
+
export interface IDismissibleRootProps {
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
dismissed?: boolean;
|
|
12
|
+
onDismiss?: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const DismissibleRootProvider: ({ dismissed: controlledIsDismissed, children, disabled, onDismiss }: React.PropsWithChildren<IDismissibleRootProps>) => React.JSX.Element;
|
|
15
|
+
export interface IDismissibleRootInternalProps {
|
|
16
|
+
asChild?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const DismissibleRoot: {
|
|
19
|
+
({ disabled, dismissed, onDismiss, ...rest }: React.PropsWithChildren<IDismissibleRootInternalProps & IDismissibleRootProps>): React.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const Dismissible: {
|
|
2
|
+
({ disabled, dismissed, onDismiss, ...rest }: React.PropsWithChildren<import("./DismissibleRoot").IDismissibleRootInternalProps & import("./DismissibleRoot").IDismissibleRootProps>): import("react").JSX.Element;
|
|
3
|
+
displayName: string;
|
|
4
|
+
} & {
|
|
5
|
+
Trigger: ({ asChild, ...rest }: React.PropsWithChildren<import("./DismissibleTrigger").IDismissibleTriggerProps>) => import("react").JSX.Element;
|
|
6
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Dismissible } from '../../components/dismissible';
|
|
3
|
+
export type TDismissibleGroupItemProps = React.ComponentProps<typeof Dismissible> & {
|
|
4
|
+
value: React.ReactText;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const DismissibleGroupItem: ({ children, value, disabled: itemDisabled, ...rest }: React.PropsWithChildren<TDismissibleGroupItemProps>) => React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface IDismissibleGroupContext {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
onDismiss: (value: React.ReactText) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const DismissibleGroupContext: React.Context<IDismissibleGroupContext>;
|
|
7
|
+
export interface IDismissibleGroupProps {
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onDismiss: (value: React.ReactText) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const DismissibleGroupProvider: ({ children, disabled, onDismiss }: React.PropsWithChildren<IDismissibleGroupProps>) => React.JSX.Element;
|
|
12
|
+
export interface IDismissibleGroupRootProps extends IDismissibleGroupProps {
|
|
13
|
+
as?: React.ElementType;
|
|
14
|
+
}
|
|
15
|
+
export declare const DismissibleGroupRoot: {
|
|
16
|
+
({ as: Component, disabled, onDismiss, ...rest }: React.PropsWithChildren<IDismissibleGroupRootProps>): React.JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const DismissibleGroup: {
|
|
2
|
+
({ as: Component, disabled, onDismiss, ...rest }: React.PropsWithChildren<import("./DismissibleGroupRoot").IDismissibleGroupRootProps>): import("react").JSX.Element;
|
|
3
|
+
displayName: string;
|
|
4
|
+
} & {
|
|
5
|
+
Item: ({ children, value, disabled: itemDisabled, ...rest }: React.PropsWithChildren<import("./DismissibleGroupItem").TDismissibleGroupItemProps>) => import("react").JSX.Element;
|
|
6
|
+
Trigger: ({ asChild, ...rest }: React.PropsWithChildren<import("../../components/dismissible/DismissibleTrigger").IDismissibleTriggerProps>) => import("react").JSX.Element;
|
|
7
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const StyledDivider: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLHRElement | null) => void) | React.RefObject<HTMLHRElement> | null | undefined;
|
|
4
|
+
}, "orientation"> & {
|
|
5
|
+
orientation?: ("horizontal" | "vertical" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "horizontal" | "vertical">>) | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
as?: React.ElementType;
|
|
8
|
+
}, "ref"> & React.RefAttributes<HTMLHRElement>>;
|
|
9
|
+
export declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLHRElement | null) => void) | React.RefObject<HTMLHRElement> | null | undefined;
|
|
11
|
+
}, "orientation"> & {
|
|
12
|
+
orientation?: ("horizontal" | "vertical" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "horizontal" | "vertical">>) | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
as?: React.ElementType;
|
|
15
|
+
}, "ref"> & React.RefAttributes<HTMLHRElement>, "ref"> & React.RefAttributes<HTMLHRElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.js","sources":["../../../src/components/divider/Divider.tsx"],"sourcesContent":["import React from 'react'\n\nimport { styled } from '~/styled'\n\nexport const StyledDivider = styled('hr', {\n base: ['border-none', 'bg-grey-200'],\n variants: {\n orientation: {\n horizontal: ['h-px', 'w-full'],\n vertical: ['h-full', 'min-h-8', 'w-px']\n }\n }\n})\n\nexport const Divider
|
|
1
|
+
{"version":3,"file":"Divider.js","sources":["../../../src/components/divider/Divider.tsx"],"sourcesContent":["import React from 'react'\n\nimport { styled } from '~/styled'\n\nexport const StyledDivider = styled('hr', {\n base: ['border-none', 'bg-grey-200'],\n variants: {\n orientation: {\n horizontal: ['h-px', 'w-full'],\n vertical: ['h-full', 'min-h-8', 'w-px']\n }\n }\n})\n\nexport const Divider = React.forwardRef<\n HTMLHRElement,\n React.ComponentProps<typeof StyledDivider>\n>(({ orientation = 'horizontal', ...rest }, ref) => {\n return <StyledDivider ref={ref} orientation={orientation} {...rest} />\n})\n"],"names":["StyledDivider","styled","Divider","React","orientation","rest","ref"],"mappings":"8DAIO,MAAMA,EAAgBC,EAAO,KAAM,CACxC,KAAM,CAAC,cAAe,aAAa,EACnC,SAAU,CACR,YAAa,CACX,WAAY,CAAC,OAAQ,QAAQ,EAC7B,SAAU,CAAC,SAAU,UAAW,MAAM,CACxC,CACF,CACF,CAAC,EAEYC,EAAUC,EAAM,WAG3B,CAAC,CAAE,YAAAC,EAAc,aAAc,GAAGC,CAAK,EAAGC,IACnCH,EAAA,cAACH,EAAA,CAAc,IAAKM,EAAK,YAAaF,EAAc,GAAGC,CAAAA,CAAM,CACrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Divider } from './Divider';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { StyledContent } from './DrawerContent';
|
|
3
|
+
type TDrawerProviderProps = {
|
|
4
|
+
position?: React.ComponentProps<typeof StyledContent>['position'];
|
|
5
|
+
};
|
|
6
|
+
export declare const DrawerContext: React.Context<TDrawerProviderProps>;
|
|
7
|
+
export declare const DrawerProvider: ({ position, ...rest }: React.PropsWithChildren<TDrawerProviderProps>) => JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Root } from '@radix-ui/react-dialog';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { DrawerProvider } from './Drawer.context';
|
|
4
|
+
type TDrawerProps = React.ComponentProps<typeof Root> & React.ComponentProps<typeof DrawerProvider>;
|
|
5
|
+
export declare const Drawer: {
|
|
6
|
+
({ children, position, ...rest }: TDrawerProps): JSX.Element;
|
|
7
|
+
Close: (props: Omit<React.ComponentProps<typeof import("..").ActionIcon>, "children">) => React.JSX.Element;
|
|
8
|
+
Content: ({ children, ...rest }: React.ComponentProps<typeof import("./DrawerContent").StyledContent>) => React.JSX.Element;
|
|
9
|
+
Main: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
+
}, never> & {
|
|
12
|
+
as?: React.ElementType;
|
|
13
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Header: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
15
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
16
|
+
}, never> & {
|
|
17
|
+
as?: React.ElementType;
|
|
18
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
Footer: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
21
|
+
}, never> & {
|
|
22
|
+
as?: React.ElementType;
|
|
23
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
Trigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const StyledContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "size" | "position"> & {
|
|
3
|
+
position?: ("left" | "right" | "top" | "bottom" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "left" | "right" | "top" | "bottom">>) | undefined;
|
|
4
|
+
size?: ("sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl" | Partial<Record<"@initial" | "@sm" | "@md" | "@lg" | "@xl", "sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl">>) | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
as?: React.ElementType;
|
|
7
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const DrawerContent: ({ children, ...rest }: React.ComponentProps<typeof StyledContent>) => React.JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const DrawerFooter: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, never> & {
|
|
4
|
+
as?: import("react").ElementType;
|
|
5
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const DrawerHeader: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, never> & {
|
|
4
|
+
as?: import("react").ElementType;
|
|
5
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const DrawerMain: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, never> & {
|
|
4
|
+
as?: import("react").ElementType;
|
|
5
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const DrawerOverlay: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & import("react").RefAttributes<HTMLDivElement>, never> & {
|
|
2
|
+
as?: import("react").ElementType;
|
|
3
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DrawerTrigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Drawer } from './Drawer';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DropdownMenuItem } from './DropdownMenuItem';
|
|
3
|
+
export declare const DropdownMenu: React.FC<import("@radix-ui/react-dropdown-menu").DropdownMenuProps> & {
|
|
4
|
+
Content: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, never> & {
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Item: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, never> & {
|
|
8
|
+
as?: React.ElementType;
|
|
9
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
LinkItem: ({ children, href, ...props }: React.ComponentProps<typeof DropdownMenuItem> & {
|
|
11
|
+
href: string;
|
|
12
|
+
}) => React.JSX.Element;
|
|
13
|
+
Portal: React.FC<import("@radix-ui/react-dropdown-menu").DropdownMenuPortalProps>;
|
|
14
|
+
Separator: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, never> & {
|
|
15
|
+
as?: React.ElementType;
|
|
16
|
+
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
Trigger: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, never> & {
|
|
18
|
+
as?: React.ElementType;
|
|
19
|
+
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const DropdownMenuContent: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuContentProps & import("react").RefAttributes<HTMLDivElement>, never> & {
|
|
2
|
+
as?: import("react").ElementType;
|
|
3
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const DropdownMenuItem: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>, never> & {
|
|
2
|
+
as?: import("react").ElementType;
|
|
3
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const DropdownMenuSeparator: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuSeparatorProps & import("react").RefAttributes<HTMLDivElement>, never> & {
|
|
2
|
+
as?: import("react").ElementType;
|
|
3
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const DropdownMenuTrigger: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>, never> & {
|
|
2
|
+
as?: import("react").ElementType;
|
|
3
|
+
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DropdownMenu } from './DropdownMenu';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { EmptyStateProps } from './EmptyState';
|
|
3
|
+
type EmptyStateProviderProps = {
|
|
4
|
+
size?: EmptyStateProps['size'];
|
|
5
|
+
};
|
|
6
|
+
export declare const EmptyStateContext: React.Context<EmptyStateProviderProps>;
|
|
7
|
+
export declare const EmptyStateProvider: ({ size, children }: React.PropsWithChildren<EmptyStateProviderProps>) => React.JSX.Element;
|
|
8
|
+
export {};
|