@atom-learning/components 6.16.0-beta.3 → 6.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/Accordion.js.map +1 -1
- package/dist/components/accordion/AccordionContent.js.map +1 -1
- package/dist/components/accordion/AccordionItem.js.map +1 -1
- package/dist/components/accordion/AccordionTrigger.js.map +1 -1
- package/dist/components/action-icon/ActionIcon.constants.js.map +1 -1
- package/dist/components/action-icon/ActionIcon.d.ts +0 -1
- package/dist/components/action-icon/ActionIcon.js +2 -4
- package/dist/components/action-icon/ActionIcon.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialog.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialogContent.js.map +1 -1
- package/dist/components/alert-dialog/alert-context/AlertContext.js.map +1 -1
- package/dist/components/alert-dialog/alert-context/AlertDialog.js.map +1 -1
- package/dist/components/alert-dialog/alert-context/AlertDialogIcon.js.map +1 -1
- package/dist/components/alert-dialog/alert-context/reducer.js.map +1 -1
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/avatar/AvatarContext.js.map +1 -1
- package/dist/components/avatar/AvatarIcon.js.map +1 -1
- package/dist/components/avatar/AvatarImage.js.map +1 -1
- package/dist/components/avatar/AvatarInitial.js.map +1 -1
- package/dist/components/avatar/AvatarPlaceholder.js.map +1 -1
- package/dist/components/badge/Badge.colorscheme.config.js.map +1 -1
- package/dist/components/badge/Badge.context.js.map +1 -1
- package/dist/components/badge/Badge.js.map +1 -1
- package/dist/components/badge/BadgeIcon.js.map +1 -1
- package/dist/components/badge/BadgeText.js.map +1 -1
- package/dist/components/banner/Banner.js.map +1 -1
- package/dist/components/banner/BannerContainer.js.map +1 -1
- package/dist/components/banner/BannerContext.js.map +1 -1
- package/dist/components/banner/banner-regular/BannerRegular.d.ts +0 -1
- package/dist/components/banner/banner-regular/BannerRegular.js.map +1 -1
- package/dist/components/banner/banner-regular/BannerRegularActions.js.map +1 -1
- package/dist/components/banner/banner-regular/BannerRegularButton.js.map +1 -1
- package/dist/components/banner/banner-regular/BannerRegularContainer.js.map +1 -1
- package/dist/components/banner/banner-regular/BannerRegularContent.js.map +1 -1
- package/dist/components/banner/banner-regular/BannerRegularDismiss.d.ts +1 -2
- package/dist/components/banner/banner-regular/BannerRegularDismiss.js.map +1 -1
- package/dist/components/banner/banner-regular/BannerRegularHeading.js.map +1 -1
- package/dist/components/banner/banner-regular/BannerRegularImage.js.map +1 -1
- package/dist/components/banner/banner-regular/BannerRegularText.js.map +1 -1
- package/dist/components/banner/banner-slim/BannerSlim.d.ts +0 -1
- package/dist/components/banner/banner-slim/BannerSlim.js.map +1 -1
- package/dist/components/banner/banner-slim/BannerSlimActions.js.map +1 -1
- package/dist/components/banner/banner-slim/BannerSlimButton.js.map +1 -1
- package/dist/components/banner/banner-slim/BannerSlimContainer.d.ts +1 -1
- package/dist/components/banner/banner-slim/BannerSlimContainer.js +3 -3
- package/dist/components/banner/banner-slim/BannerSlimContainer.js.map +1 -1
- package/dist/components/banner/banner-slim/BannerSlimContent.js.map +1 -1
- package/dist/components/banner/banner-slim/BannerSlimDismiss.d.ts +1 -2
- package/dist/components/banner/banner-slim/BannerSlimDismiss.js.map +1 -1
- package/dist/components/banner/banner-slim/BannerSlimImage.js.map +1 -1
- package/dist/components/banner/banner-slim/BannerSlimText.js.map +1 -1
- package/dist/components/box/Box.js.map +1 -1
- package/dist/components/button/Button.d.ts +0 -1
- package/dist/components/button/Button.js +13 -17
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/calendar/Calendar.js.map +1 -1
- package/dist/components/calendar/Day.js.map +1 -1
- package/dist/components/calendar/constants.js.map +1 -1
- package/dist/components/carousel/Carousel.js.map +1 -1
- package/dist/components/carousel/CarouselArrows.js.map +1 -1
- package/dist/components/carousel/CarouselPagination.js.map +1 -1
- package/dist/components/carousel/CarouselSlide.js.map +1 -1
- package/dist/components/carousel/CarouselSlider.js.map +1 -1
- package/dist/components/checkbox/Checkbox.js.map +1 -1
- package/dist/components/checkbox-field/CheckboxField.js +6 -1
- package/dist/components/checkbox-field/CheckboxField.js.map +1 -1
- package/dist/components/checkbox-group/CheckboxGroup.js.map +1 -1
- package/dist/components/checkbox-group/CheckboxGroupAllItem.js.map +1 -1
- package/dist/components/checkbox-group/CheckboxGroupItem.js.map +1 -1
- package/dist/components/checkbox-group/CheckboxGroupSub.js.map +1 -1
- package/dist/components/checkbox-group/context/CheckboxGroupChecked.context.js.map +1 -1
- package/dist/components/checkbox-group/context/CheckboxGroupMounted.context.js.map +1 -1
- package/dist/components/checkbox-tree/CheckboxTree.js.map +1 -1
- package/dist/components/checkbox-tree/CheckboxTreeCollapsible.js.map +1 -1
- package/dist/components/checkbox-tree/CheckboxTreeCollapsibleContent.js.map +1 -1
- package/dist/components/checkbox-tree/CheckboxTreeCollapsibleTrigger.js.map +1 -1
- package/dist/components/checkbox-tree/CheckboxTreeItem.js.map +1 -1
- package/dist/components/checkbox-tree/CheckboxTreeItemContent.js.map +1 -1
- package/dist/components/chip/Chip.js.map +1 -1
- package/dist/components/chip/ChipGroup.js.map +1 -1
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.js.map +1 -1
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupRoot.js.map +1 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.js.map +1 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupRoot.js.map +1 -1
- package/dist/components/combobox/Combobox.js.map +1 -1
- package/dist/components/combobox/ComboboxInput.js.map +1 -1
- package/dist/components/combobox/ComboboxList.js.map +1 -1
- package/dist/components/combobox/ComboboxOption.js.map +1 -1
- package/dist/components/combobox/ComboboxPopover.js.map +1 -1
- package/dist/components/create-password-field/CreatePasswordField.js.map +1 -1
- package/dist/components/data-table/DataTable.js +0 -88
- package/dist/components/data-table/DataTable.js.map +1 -1
- package/dist/components/data-table/DataTable.types.js.map +1 -1
- package/dist/components/data-table/DataTableBody.js.map +1 -1
- package/dist/components/data-table/DataTableBulkActions.js.map +1 -1
- package/dist/components/data-table/DataTableBulkActionsFloating.js.map +1 -1
- package/dist/components/data-table/DataTableBulkActionsSelectedRowActions.js.map +1 -1
- package/dist/components/data-table/DataTableContext.js.map +1 -1
- package/dist/components/data-table/DataTableDataCell.js.map +1 -1
- package/dist/components/data-table/DataTableEmptyState.js.map +1 -1
- package/dist/components/data-table/DataTableError.js.map +1 -1
- package/dist/components/data-table/DataTableGlobalFilter.js.map +1 -1
- package/dist/components/data-table/DataTableHead.js.map +1 -1
- package/dist/components/data-table/DataTableHeaderCell.js.map +1 -1
- package/dist/components/data-table/DataTableLoading.js.map +1 -1
- package/dist/components/data-table/DataTableMetaData.js.map +1 -1
- package/dist/components/data-table/DataTableRow.js.map +1 -1
- package/dist/components/data-table/DataTableRowSelectionCheckbox.js.map +1 -1
- package/dist/components/data-table/DataTableSelectAllRowsCheckbox.js.map +1 -1
- package/dist/components/data-table/DataTableTable.js +2 -2
- package/dist/components/data-table/DataTableTable.js.map +1 -1
- package/dist/components/data-table/drag-and-drop/DragAndDropTable.js +6 -3
- package/dist/components/data-table/drag-and-drop/DragAndDropTable.js.map +1 -1
- package/dist/components/data-table/drag-and-drop/DragAndDropTableBody.js.map +1 -1
- package/dist/components/data-table/drag-and-drop/DragAndDropTableRow.js.map +1 -1
- package/dist/components/data-table/getNewAsyncData.js.map +1 -1
- package/dist/components/data-table/pagination/Pagination.js.map +1 -1
- package/dist/components/data-table/usePagination.js.map +1 -1
- package/dist/components/data-table/useSorting.js.map +1 -1
- package/dist/components/date-field/DateField.js.map +1 -1
- package/dist/components/date-input/DateInput.js.map +1 -1
- package/dist/components/dialog/Dialog.js.map +1 -1
- package/dist/components/dialog/DialogActionBar.js.map +1 -1
- package/dist/components/dialog/DialogBackground.js.map +1 -1
- package/dist/components/dialog/DialogContent.js.map +1 -1
- package/dist/components/dialog/DialogFooter.js.map +1 -1
- package/dist/components/dialog/DialogHeading.js.map +1 -1
- package/dist/components/dialog/DialogNavigationBar.js.map +1 -1
- package/dist/components/dialog/DialogScrollableContent.js.map +1 -1
- package/dist/components/dismissible/DismissibleRoot.js.map +1 -1
- package/dist/components/dismissible/DismissibleTrigger.js.map +1 -1
- package/dist/components/dismissible/index.js.map +1 -1
- package/dist/components/dismissible-group/DismissibleGroupItem.js.map +1 -1
- package/dist/components/dismissible-group/DismissibleGroupRoot.js.map +1 -1
- package/dist/components/dismissible-group/index.js.map +1 -1
- package/dist/components/divider/Divider.js.map +1 -1
- package/dist/components/drawer/Drawer.context.js.map +1 -1
- package/dist/components/drawer/Drawer.js.map +1 -1
- package/dist/components/drawer/DrawerClose.js.map +1 -1
- package/dist/components/drawer/DrawerContent.js.map +1 -1
- package/dist/components/drawer/DrawerFooter.js.map +1 -1
- package/dist/components/drawer/DrawerHeader.js.map +1 -1
- package/dist/components/drawer/DrawerMain.js.map +1 -1
- package/dist/components/drawer/DrawerOverlay.js.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +1 -2
- package/dist/components/dropdown-menu/DropdownMenu.js.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuContent.js.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuItem.js.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.d.ts +1 -2
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +8 -13
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.js.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuSeparator.js.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuTrigger.js.map +1 -1
- package/dist/components/empty-state/EmptyState.context.js.map +1 -1
- package/dist/components/empty-state/EmptyState.js.map +1 -1
- package/dist/components/empty-state/EmptyStateBody.js.map +1 -1
- package/dist/components/empty-state/EmptyStateImage.js.map +1 -1
- package/dist/components/empty-state/EmptyStateTitle.js.map +1 -1
- package/dist/components/field-wrapper/FieldDescription.js.map +1 -1
- package/dist/components/field-wrapper/FieldWrapper.js.map +1 -1
- package/dist/components/field-wrapper/InlineFieldWrapper.js.map +1 -1
- package/dist/components/file-drop/FileDrop.js.map +1 -1
- package/dist/components/file-drop/FileDropContext.js.map +1 -1
- package/dist/components/file-drop/useFileDrop.js.map +1 -1
- package/dist/components/file-input/FileInput.js.map +1 -1
- package/dist/components/flex/Flex.js.map +1 -1
- package/dist/components/form/Form.js.map +1 -1
- package/dist/components/form/useFieldError.js.map +1 -1
- package/dist/components/form/useFormCustomContext.js.map +1 -1
- package/dist/components/grid/Grid.js.map +1 -1
- package/dist/components/heading/Heading.js.map +1 -1
- package/dist/components/icon/Icon.js.map +1 -1
- package/dist/components/image/Image.js.map +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/inline-message/InlineMessage.config.js.map +1 -1
- package/dist/components/inline-message/InlineMessage.js.map +1 -1
- package/dist/components/input/Input.js.map +1 -1
- package/dist/components/input-field/InputField.js.map +1 -1
- package/dist/components/keyboard-shortcut/KeyboardShortcut.js.map +1 -1
- package/dist/components/keyboard-shortcut/index.js.map +1 -1
- package/dist/components/label/Label.js.map +1 -1
- package/dist/components/link/Link.d.ts +0 -1
- package/dist/components/link/Link.js +9 -13
- package/dist/components/link/Link.js.map +1 -1
- package/dist/components/list/List.js.map +1 -1
- package/dist/components/loader/Loader.js.map +1 -1
- package/dist/components/markdown-content/MarkdownContent.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownCode.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownEmphasis.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownHeading.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownImage.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownInlineCode.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownLink.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownList.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownListItem.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownParagraph.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownStrong.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownThematicBreak.js.map +1 -1
- package/dist/components/navigation/NavigationMenu.colorscheme.config.js.map +1 -1
- package/dist/components/navigation/NavigationMenu.d.ts +0 -2
- package/dist/components/navigation/NavigationMenu.js.map +1 -1
- package/dist/components/navigation/NavigationMenu.styles.js.map +1 -1
- package/dist/components/navigation/NavigationMenuContext.js.map +1 -1
- package/dist/components/navigation/NavigationMenuDropdown.js.map +1 -1
- package/dist/components/navigation/NavigationMenuDropdownContent.js.map +1 -1
- package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +0 -1
- package/dist/components/navigation/NavigationMenuDropdownItem.js.map +1 -1
- package/dist/components/navigation/NavigationMenuDropdownTrigger.js.map +1 -1
- package/dist/components/navigation/NavigationMenuLink.d.ts +0 -1
- package/dist/components/navigation/NavigationMenuLink.js +11 -22
- package/dist/components/navigation/NavigationMenuLink.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.colorscheme.config.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.d.ts +1 -3
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordion.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionContent.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionTrigger.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalIcon.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItem.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItemContent.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.d.ts +2 -4
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.js +3 -5
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalList.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.js.map +1 -1
- package/dist/components/notification-badge/NotificationBadge.js.map +1 -1
- package/dist/components/number-input/NumberInput.js +2 -2
- package/dist/components/number-input/NumberInput.js.map +1 -1
- package/dist/components/number-input/NumberInputStepper.d.ts +1 -2
- package/dist/components/number-input/NumberInputStepper.js.map +1 -1
- package/dist/components/number-input-field/NumberInputField.js.map +1 -1
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/components/pagination/PaginationItems.js.map +1 -1
- package/dist/components/pagination/PaginationNextButton.d.ts +1 -2
- package/dist/components/pagination/PaginationNextButton.js.map +1 -1
- package/dist/components/pagination/PaginationPage.js.map +1 -1
- package/dist/components/pagination/PaginationPopover.js.map +1 -1
- package/dist/components/pagination/PaginationPreviousButton.d.ts +1 -2
- package/dist/components/pagination/PaginationPreviousButton.js.map +1 -1
- package/dist/components/pagination/pagination-context/PaginationContext.js.map +1 -1
- package/dist/components/pagination/pagination.constants.js.map +1 -1
- package/dist/components/pagination/pagination.helper.js.map +1 -1
- package/dist/components/pagination/usePagination.js.map +1 -1
- package/dist/components/password-field/PasswordField.js +1 -1
- package/dist/components/password-field/PasswordField.js.map +1 -1
- package/dist/components/password-input/PasswordInput.js.map +1 -1
- package/dist/components/popover/Popover.js.map +1 -1
- package/dist/components/popover/PopoverContent.js.map +1 -1
- package/dist/components/progress-bar/ProgressBar.js.map +1 -1
- package/dist/components/radio-button/RadioButton.js.map +1 -1
- package/dist/components/radio-button/RadioButtonGroup.js.map +1 -1
- package/dist/components/radio-button-field/RadioButtonField.js.map +1 -1
- package/dist/components/radio-button-field/RadioField.js.map +1 -1
- package/dist/components/radio-card/RadioCard.js.map +1 -1
- package/dist/components/radio-card/RadioCardGroup.js.map +1 -1
- package/dist/components/search-field/SearchField.js.map +1 -1
- package/dist/components/search-input/SearchInput.js +9 -4
- package/dist/components/search-input/SearchInput.js.map +1 -1
- package/dist/components/section-message/SectionMessage.js.map +1 -1
- package/dist/components/section-message/SectionMessageContext.js.map +1 -1
- package/dist/components/section-message/SectionMessageDescription.js.map +1 -1
- package/dist/components/section-message/SectionMessageDismiss.js.map +1 -1
- package/dist/components/section-message/SectionMessageIcon.js.map +1 -1
- package/dist/components/section-message/SectionMessageLayout.js.map +1 -1
- package/dist/components/section-message/SectionMessageTitle.js.map +1 -1
- package/dist/components/segmented-control/SegmentedControl.js.map +1 -1
- package/dist/components/segmented-control/SegmentedControlBadge.js +1 -1
- package/dist/components/segmented-control/SegmentedControlBadge.js.map +1 -1
- package/dist/components/segmented-control/SegmentedControlContext.js.map +1 -1
- package/dist/components/segmented-control/SegmentedControlDescription.js.map +1 -1
- package/dist/components/segmented-control/SegmentedControlHeading.js.map +1 -1
- package/dist/components/segmented-control/SegmentedControlIcon.js.map +1 -1
- package/dist/components/segmented-control/SegmentedControlItem.js.map +1 -1
- package/dist/components/segmented-control/SegmentedControlItemList.js.map +1 -1
- package/dist/components/segmented-control/SegmentedControlRoot.js.map +1 -1
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/select-field/SelectField.js.map +1 -1
- package/dist/components/select-menu/SelectMenu.d.ts +23 -0
- package/dist/components/select-menu/SelectMenu.js +26 -0
- package/dist/components/select-menu/SelectMenu.js.map +1 -0
- package/dist/components/select-menu/SelectMenuContent.d.ts +3 -0
- package/dist/components/select-menu/SelectMenuContent.js +66 -0
- package/dist/components/select-menu/SelectMenuContent.js.map +1 -0
- package/dist/components/select-menu/SelectMenuContext.d.ts +9 -0
- package/dist/components/select-menu/SelectMenuContext.js +11 -0
- package/dist/components/select-menu/SelectMenuContext.js.map +1 -0
- package/dist/components/select-menu/SelectMenuItem.d.ts +3 -0
- package/dist/components/select-menu/SelectMenuItem.js +59 -0
- package/dist/components/select-menu/SelectMenuItem.js.map +1 -0
- package/dist/components/select-menu/SelectMenuLabel.d.ts +8 -0
- package/dist/components/select-menu/SelectMenuLabel.js +16 -0
- package/dist/components/select-menu/SelectMenuLabel.js.map +1 -0
- package/dist/components/select-menu/SelectMenuSeparator.d.ts +4 -0
- package/dist/components/select-menu/SelectMenuSeparator.js +13 -0
- package/dist/components/select-menu/SelectMenuSeparator.js.map +1 -0
- package/dist/components/select-menu/SelectMenuTrigger.d.ts +7 -0
- package/dist/components/select-menu/SelectMenuTrigger.js +91 -0
- package/dist/components/select-menu/SelectMenuTrigger.js.map +1 -0
- package/dist/components/select-menu-field/SelectMenuField.d.ts +14 -0
- package/dist/components/select-menu-field/SelectMenuField.js +46 -0
- package/dist/components/select-menu-field/SelectMenuField.js.map +1 -0
- package/dist/components/side-bar/SideBar.js.map +1 -1
- package/dist/components/side-bar/SideBarComponents.js.map +1 -1
- package/dist/components/side-bar/SideBarContext.js.map +1 -1
- package/dist/components/skeleton-loader/Skeleton.js.map +1 -1
- package/dist/components/skeleton-loader/SkeletonBarChart.js.map +1 -1
- package/dist/components/skeleton-loader/SkeletonButton.js.map +1 -1
- package/dist/components/skeleton-loader/SkeletonCard.js +1 -1
- package/dist/components/skeleton-loader/SkeletonCard.js.map +1 -1
- package/dist/components/skeleton-loader/SkeletonColumnChart.js.map +1 -1
- package/dist/components/skeleton-loader/SkeletonDoughnutChart.js.map +1 -1
- package/dist/components/skeleton-loader/SkeletonHeading.js.map +1 -1
- package/dist/components/skeleton-loader/SkeletonPanelList.js.map +1 -1
- package/dist/components/skeleton-loader/SkeletonSubjectList.js.map +1 -1
- package/dist/components/skeleton-loader/SkeletonTable.js.map +1 -1
- package/dist/components/skeleton-loader/SkeletonTabs.js.map +1 -1
- package/dist/components/slider/Slider.js.map +1 -1
- package/dist/components/slider/SliderSteps.js.map +1 -1
- package/dist/components/slider/SliderValue.js.map +1 -1
- package/dist/components/slider-field/SliderField.js.map +1 -1
- package/dist/components/sortable/Handle.d.ts +1 -2
- package/dist/components/sortable/Handle.js.map +1 -1
- package/dist/components/sortable/SortableHandle.js.map +1 -1
- package/dist/components/sortable/SortableItem.js.map +1 -1
- package/dist/components/sortable/SortableRoot.js.map +1 -1
- package/dist/components/spacer/Spacer.js.map +1 -1
- package/dist/components/stepper/Stepper.js.map +1 -1
- package/dist/components/stepper/StepperStepBack.js.map +1 -1
- package/dist/components/stepper/StepperStepBullet.js.map +1 -1
- package/dist/components/stepper/StepperStepContainer.js.map +1 -1
- package/dist/components/stepper/StepperStepForward.js.map +1 -1
- package/dist/components/stepper/StepperStepLabel.js.map +1 -1
- package/dist/components/stepper/StepperSteps.js.map +1 -1
- package/dist/components/stepper/stepper-context/StepperContext.js.map +1 -1
- package/dist/components/stepper/types.js.map +1 -1
- package/dist/components/switch/Switch.js.map +1 -1
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/TableBody.js.map +1 -1
- package/dist/components/table/TableCell.js.map +1 -1
- package/dist/components/table/TableFooter.js.map +1 -1
- package/dist/components/table/TableFooterCell.js.map +1 -1
- package/dist/components/table/TableHeader.js.map +1 -1
- package/dist/components/table/TableHeaderCell.js.map +1 -1
- package/dist/components/table/TableRow.js.map +1 -1
- package/dist/components/table/TableStickyColumnsContainer.js.map +1 -1
- package/dist/components/table/useStickyColumnsCss.js.map +1 -1
- package/dist/components/tabs/Tabs.js.map +1 -1
- package/dist/components/tabs/TabsContent.js.map +1 -1
- package/dist/components/tabs/TabsTrigger.js.map +1 -1
- package/dist/components/tabs/TabsTriggerList.js.map +1 -1
- package/dist/components/text/Text.js.map +1 -1
- package/dist/components/textarea/Textarea.js.map +1 -1
- package/dist/components/textarea-field/TextareaField.js.map +1 -1
- package/dist/components/tile/Tile.js.map +1 -1
- package/dist/components/tile-interactive/TileInteractive.d.ts +1 -3
- package/dist/components/tile-interactive/TileInteractive.js +2 -4
- package/dist/components/tile-interactive/TileInteractive.js.map +1 -1
- package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +1 -3
- package/dist/components/tile-toggle-group/TileToggleGroupItem.js.map +1 -1
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.js +3 -3
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.js.map +1 -1
- package/dist/components/toast/Toast.js.map +1 -1
- package/dist/components/toast/ToastCloseButton.js.map +1 -1
- package/dist/components/toast/ToastContext.js.map +1 -1
- package/dist/components/toast/ToastIcon.js.map +1 -1
- package/dist/components/toast/ToastProvider.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupRoot.js.map +1 -1
- package/dist/components/toggle-group/index.js.map +1 -1
- package/dist/components/tooltip/Tooltip.js.map +1 -1
- package/dist/components/tooltip/TooltipContent.js.map +1 -1
- package/dist/components/top-bar/TopBar.colorscheme.config.js.map +1 -1
- package/dist/components/top-bar/TopBar.d.ts +1 -2
- package/dist/components/top-bar/TopBar.js.map +1 -1
- package/dist/components/top-bar/TopBarActionIcon.js.map +1 -1
- package/dist/components/top-bar/TopBarBrand.js.map +1 -1
- package/dist/components/tree/Tree.d.ts +1 -1
- package/dist/components/tree/Tree.js.map +1 -1
- package/dist/components/tree/TreeCollapsible.js.map +1 -1
- package/dist/components/tree/TreeCollapsibleContent.js.map +1 -1
- package/dist/components/tree/TreeCollapsibleTrigger.js.map +1 -1
- package/dist/components/tree/TreeIcon.js +1 -1
- package/dist/components/tree/TreeIcon.js.map +1 -1
- package/dist/components/tree/TreeItem.js.map +1 -1
- package/dist/components/tree/TreeItemContent.js.map +1 -1
- package/dist/components/tree/TreeList.js.map +1 -1
- package/dist/components/tree/TreeListItem.js +1 -1
- package/dist/components/tree/TreeListItem.js.map +1 -1
- package/dist/components/tree/TreeText.d.ts +1 -1
- package/dist/components/tree/TreeText.js +3 -3
- package/dist/components/tree/TreeText.js.map +1 -1
- package/dist/components/video/Video.js.map +1 -1
- package/dist/docgen.json +1 -1
- package/dist/experiments/color-scheme/ColorScheme.config.js.map +1 -1
- package/dist/experiments/color-scheme/ColorScheme.js.map +1 -1
- package/dist/index.cjs.js +377 -220
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/styled.js +2 -1
- package/dist/styled.js.map +1 -1
- package/dist/utilities/css-wrapper/CSSWrapper.js.map +1 -1
- package/dist/utilities/event/preventEvent.js.map +1 -1
- package/dist/utilities/hooks/useCallbackRef.js.map +1 -1
- package/dist/utilities/hooks/useIsMountedRef.js.map +1 -1
- package/dist/utilities/hooks/useResizeObserver.js.map +1 -1
- package/dist/utilities/hooks/useScrollPosition.js.map +1 -1
- package/dist/utilities/hooks/useSize.js.map +1 -1
- package/dist/utilities/hooks/useWindowScrollPosition.js.map +1 -1
- package/dist/utilities/optional-tooltip-wrapper/OptionalTooltipWrapper.js.map +1 -1
- package/dist/utilities/override-styled-variant-value/overrideStyledVariantValue.js.map +1 -1
- package/dist/utilities/radix-overrides/toggle-group/ToggleGroupRoot.js.map +1 -1
- package/dist/utilities/radix-overrides/toggle-group/index.js.map +1 -1
- package/dist/utilities/style/backdrop-overlay.js.map +1 -1
- package/dist/utilities/style/get-icon-size.js.map +1 -1
- package/dist/utilities/uri/index.js.map +1 -1
- package/package.json +2 -1
- package/dist/components/router-provider/RouterProvider.d.ts +0 -16
- package/dist/components/router-provider/RouterProvider.js +0 -19
- package/dist/components/router-provider/RouterProvider.js.map +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -32,64 +32,66 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
32
|
//#endregion
|
|
33
33
|
let _radix_ui_react_accordion = require("@radix-ui/react-accordion");
|
|
34
34
|
let react = require("react");
|
|
35
|
-
react = __toESM(react
|
|
35
|
+
react = __toESM(react);
|
|
36
36
|
let clsx = require("clsx");
|
|
37
|
-
clsx = __toESM(clsx
|
|
37
|
+
clsx = __toESM(clsx);
|
|
38
38
|
let tailwind_merge = require("tailwind-merge");
|
|
39
39
|
let tailwind_variants = require("tailwind-variants");
|
|
40
40
|
let _atom_learning_icons = require("@atom-learning/icons");
|
|
41
41
|
let _radix_ui_react_slot = require("@radix-ui/react-slot");
|
|
42
42
|
let invariant = require("invariant");
|
|
43
|
-
invariant = __toESM(invariant
|
|
43
|
+
invariant = __toESM(invariant);
|
|
44
44
|
let _radix_ui_react_tooltip = require("@radix-ui/react-tooltip");
|
|
45
45
|
let _radix_ui_react_alert_dialog = require("@radix-ui/react-alert-dialog");
|
|
46
46
|
let uid = require("uid");
|
|
47
47
|
let throttle_debounce = require("throttle-debounce");
|
|
48
48
|
let pure_react_carousel = require("pure-react-carousel");
|
|
49
49
|
let _radix_ui_react_checkbox = require("@radix-ui/react-checkbox");
|
|
50
|
-
_radix_ui_react_checkbox = __toESM(_radix_ui_react_checkbox
|
|
50
|
+
_radix_ui_react_checkbox = __toESM(_radix_ui_react_checkbox);
|
|
51
51
|
let _radix_ui_react_collapsible = require("@radix-ui/react-collapsible");
|
|
52
52
|
let react_hook_form = require("react-hook-form");
|
|
53
53
|
let _radix_ui_react_radio_group = require("@radix-ui/react-radio-group");
|
|
54
|
-
_radix_ui_react_radio_group = __toESM(_radix_ui_react_radio_group
|
|
54
|
+
_radix_ui_react_radio_group = __toESM(_radix_ui_react_radio_group);
|
|
55
55
|
let dlv = require("dlv");
|
|
56
|
-
dlv = __toESM(dlv
|
|
56
|
+
dlv = __toESM(dlv);
|
|
57
57
|
let _radix_ui_react_toggle_group = require("@radix-ui/react-toggle-group");
|
|
58
|
-
_radix_ui_react_toggle_group = __toESM(_radix_ui_react_toggle_group
|
|
58
|
+
_radix_ui_react_toggle_group = __toESM(_radix_ui_react_toggle_group);
|
|
59
59
|
let _reach_combobox = require("@reach/combobox");
|
|
60
60
|
let _lukeed_uuid = require("@lukeed/uuid");
|
|
61
61
|
let _tanstack_react_table = require("@tanstack/react-table");
|
|
62
62
|
let use_deep_compare_effect = require("use-deep-compare-effect");
|
|
63
|
-
use_deep_compare_effect = __toESM(use_deep_compare_effect
|
|
63
|
+
use_deep_compare_effect = __toESM(use_deep_compare_effect);
|
|
64
64
|
let react_aria = require("react-aria");
|
|
65
65
|
let _dnd_kit_sortable = require("@dnd-kit/sortable");
|
|
66
66
|
let _dnd_kit_core = require("@dnd-kit/core");
|
|
67
67
|
let _radix_ui_react_popover = require("@radix-ui/react-popover");
|
|
68
68
|
let dayjs = require("dayjs");
|
|
69
|
-
dayjs = __toESM(dayjs
|
|
69
|
+
dayjs = __toESM(dayjs);
|
|
70
70
|
let dayjs_plugin_customParseFormat_js = require("dayjs/plugin/customParseFormat.js");
|
|
71
|
-
dayjs_plugin_customParseFormat_js = __toESM(dayjs_plugin_customParseFormat_js
|
|
71
|
+
dayjs_plugin_customParseFormat_js = __toESM(dayjs_plugin_customParseFormat_js);
|
|
72
72
|
let dayzed = require("dayzed");
|
|
73
73
|
let _radix_ui_react_dialog = require("@radix-ui/react-dialog");
|
|
74
74
|
let _radix_ui_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
75
75
|
let mdast_util_directive = require("mdast-util-directive");
|
|
76
|
-
mdast_util_directive = __toESM(mdast_util_directive
|
|
76
|
+
mdast_util_directive = __toESM(mdast_util_directive);
|
|
77
77
|
let mdast_util_from_markdown = require("mdast-util-from-markdown");
|
|
78
|
-
mdast_util_from_markdown = __toESM(mdast_util_from_markdown
|
|
78
|
+
mdast_util_from_markdown = __toESM(mdast_util_from_markdown);
|
|
79
79
|
let micromark_extension_directive = require("micromark-extension-directive");
|
|
80
|
-
micromark_extension_directive = __toESM(micromark_extension_directive
|
|
80
|
+
micromark_extension_directive = __toESM(micromark_extension_directive);
|
|
81
81
|
let _radix_ui_react_navigation_menu = require("@radix-ui/react-navigation-menu");
|
|
82
|
-
_radix_ui_react_navigation_menu = __toESM(_radix_ui_react_navigation_menu
|
|
82
|
+
_radix_ui_react_navigation_menu = __toESM(_radix_ui_react_navigation_menu);
|
|
83
83
|
let _radix_ui_react_progress = require("@radix-ui/react-progress");
|
|
84
|
-
_radix_ui_react_progress = __toESM(_radix_ui_react_progress
|
|
84
|
+
_radix_ui_react_progress = __toESM(_radix_ui_react_progress);
|
|
85
|
+
let _radix_ui_react_select = require("@radix-ui/react-select");
|
|
86
|
+
_radix_ui_react_select = __toESM(_radix_ui_react_select);
|
|
85
87
|
let _radix_ui_react_slider = require("@radix-ui/react-slider");
|
|
86
88
|
let _radix_ui_react_switch = require("@radix-ui/react-switch");
|
|
87
|
-
_radix_ui_react_switch = __toESM(_radix_ui_react_switch
|
|
89
|
+
_radix_ui_react_switch = __toESM(_radix_ui_react_switch);
|
|
88
90
|
let _radix_ui_react_tabs = require("@radix-ui/react-tabs");
|
|
89
91
|
let react_hot_toast = require("react-hot-toast");
|
|
90
|
-
react_hot_toast = __toESM(react_hot_toast
|
|
92
|
+
react_hot_toast = __toESM(react_hot_toast);
|
|
91
93
|
let react_player_vimeo_js = require("react-player/vimeo.js");
|
|
92
|
-
react_player_vimeo_js = __toESM(react_player_vimeo_js
|
|
94
|
+
react_player_vimeo_js = __toESM(react_player_vimeo_js);
|
|
93
95
|
//#region src/styled.tsx
|
|
94
96
|
tailwind_variants.defaultConfig.twMerge = false;
|
|
95
97
|
var isArbitraryNumber = (value) => /^\[[\d.]+\]$/.test(value) || !Number.isNaN(Number(value));
|
|
@@ -120,7 +122,8 @@ function styled(el, styles, options) {
|
|
|
120
122
|
const responsiveVariantConfig = props[variantKey];
|
|
121
123
|
const variantStyles = styles.variants[variantKey];
|
|
122
124
|
if (typeof responsiveVariantConfig === "object" && responsiveVariantConfig && !Array.isArray(responsiveVariantConfig)) return Object.entries(responsiveVariantConfig).flatMap(([key, val]) => {
|
|
123
|
-
const
|
|
125
|
+
const valStr = String(val);
|
|
126
|
+
const styleArr = variantStyles && variantStyles[valStr];
|
|
124
127
|
if (styleArr && Array.isArray(styleArr)) return styleArr.flatMap((cls) => {
|
|
125
128
|
if (key === "@initial") return cls;
|
|
126
129
|
return `${key.replace("@", "")}:${cls}`;
|
|
@@ -485,21 +488,6 @@ var getExternalAnchorProps = (url) => isExternalUrl(url) ? {
|
|
|
485
488
|
rel: "noopener noreferrer"
|
|
486
489
|
} : {};
|
|
487
490
|
//#endregion
|
|
488
|
-
//#region src/components/router-provider/RouterProvider.tsx
|
|
489
|
-
var RouterContext = react.createContext({});
|
|
490
|
-
var RouterProvider = ({ link, children }) => {
|
|
491
|
-
const value = react.useMemo(() => ({ link }), [link]);
|
|
492
|
-
return /* @__PURE__ */ react.createElement(RouterContext.Provider, { value }, children);
|
|
493
|
-
};
|
|
494
|
-
var isAbsoluteUrl = (url) => /^https?:\/\//.test(url || "");
|
|
495
|
-
var EMPTY = {};
|
|
496
|
-
var useRouterLinkProps = (href, { reloadDocument } = {}) => {
|
|
497
|
-
const { link } = react.useContext(RouterContext);
|
|
498
|
-
if (!link || !href || isAbsoluteUrl(href) || reloadDocument) return EMPTY;
|
|
499
|
-
return { as: link };
|
|
500
|
-
};
|
|
501
|
-
RouterProvider.displayName = "RouterProvider";
|
|
502
|
-
//#endregion
|
|
503
491
|
//#region src/components/action-icon/ActionIcon.constants.ts
|
|
504
492
|
var ActionIconSizeMap = {
|
|
505
493
|
xs: "sm",
|
|
@@ -604,12 +592,11 @@ var StyledButton$5 = styled("button", {
|
|
|
604
592
|
isRounded: { true: ["rounded-full"] }
|
|
605
593
|
}
|
|
606
594
|
}, { enabledResponsiveVariants: true });
|
|
607
|
-
var ActionIcon = react.forwardRef(({ children, theme = "primary", appearance = "simple", size = "sm", label, href, disabled, hasTooltip = true, tooltipSide,
|
|
595
|
+
var ActionIcon = react.forwardRef(({ children, theme = "primary", appearance = "simple", size = "sm", label, href, disabled, hasTooltip = true, tooltipSide, ...remainingProps }, ref) => {
|
|
608
596
|
const INVALID_CHILDREN_MESSAGE = `A single ${Icon.displayName} component is permitted as a child of ${ActionIcon.displayName}`;
|
|
609
597
|
(0, invariant.default)(react.Children.count(children) === 1, INVALID_CHILDREN_MESSAGE);
|
|
610
|
-
const routerLinkProps = useRouterLinkProps(href, { reloadDocument });
|
|
611
598
|
const optionalLinkProps = href ? {
|
|
612
|
-
as:
|
|
599
|
+
as: "a",
|
|
613
600
|
href: disabled ? void 0 : href,
|
|
614
601
|
onClick: void 0,
|
|
615
602
|
"aria-disabled": !!disabled
|
|
@@ -863,22 +850,19 @@ var LoaderContentsWrapper = styled("span", {
|
|
|
863
850
|
defaultVariants: { size: "md" }
|
|
864
851
|
}, { enabledResponsiveVariants: true });
|
|
865
852
|
var WithLoader = ({ size, children }) => /* @__PURE__ */ react.createElement(react.Fragment, null, /* @__PURE__ */ react.createElement(Loader, { className: "absolute" }), /* @__PURE__ */ react.createElement(LoaderContentsWrapper, { size }, children));
|
|
866
|
-
var Button = react.forwardRef(({ children, as, href, isLoading = false, onClick, disabled,
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
ref
|
|
880
|
-
}, isLoading ? /* @__PURE__ */ react.createElement(WithLoader, { size: rest.size }, children) : children);
|
|
881
|
-
});
|
|
853
|
+
var Button = react.forwardRef(({ children, as, href, isLoading = false, onClick, disabled, ...rest }, ref) => /* @__PURE__ */ react.createElement(StyledButton, {
|
|
854
|
+
as: as || (href ? "a" : void 0),
|
|
855
|
+
...!disabled && !isLoading && {
|
|
856
|
+
href,
|
|
857
|
+
onClick
|
|
858
|
+
},
|
|
859
|
+
isLoading,
|
|
860
|
+
type: !href ? "button" : void 0,
|
|
861
|
+
disabled,
|
|
862
|
+
...rest,
|
|
863
|
+
...getExternalAnchorProps(href),
|
|
864
|
+
ref
|
|
865
|
+
}, isLoading ? /* @__PURE__ */ react.createElement(WithLoader, { size: rest.size }, children) : children));
|
|
882
866
|
Button.displayName = "Button";
|
|
883
867
|
//#endregion
|
|
884
868
|
//#region src/components/heading/Heading.tsx
|
|
@@ -1997,7 +1981,7 @@ var StyledBannerSlimContainer = styled(BannerContainer, {
|
|
|
1997
1981
|
md: ["px-6"]
|
|
1998
1982
|
} }
|
|
1999
1983
|
}, { enabledResponsiveVariants: true });
|
|
2000
|
-
var BannerSlimContainer = (
|
|
1984
|
+
var BannerSlimContainer = ({ className, ...rest }) => {
|
|
2001
1985
|
const { size } = useBannerContext();
|
|
2002
1986
|
const direction = react.useMemo(() => {
|
|
2003
1987
|
if (typeof size === "string") return toDirection[size];
|
|
@@ -2012,9 +1996,9 @@ var BannerSlimContainer = (props) => {
|
|
|
2012
1996
|
return "flex-wrap md:flex-nowrap";
|
|
2013
1997
|
}, [size]);
|
|
2014
1998
|
return /* @__PURE__ */ react.createElement(StyledBannerSlimContainer, {
|
|
2015
|
-
...
|
|
1999
|
+
...rest,
|
|
2016
2000
|
sizeWorkaround: size,
|
|
2017
|
-
className: cn(direction, align, "gap-4", wrap,
|
|
2001
|
+
className: cn(direction, align, "gap-4", wrap, className)
|
|
2018
2002
|
});
|
|
2019
2003
|
};
|
|
2020
2004
|
BannerSlimContainer.displayName = "BannerSlimContainer";
|
|
@@ -2430,7 +2414,7 @@ var TreeListItem = react.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2430
2414
|
...props,
|
|
2431
2415
|
ref,
|
|
2432
2416
|
role: "treeitem",
|
|
2433
|
-
className: cn("flex items-center gap-2 not-first:mt-0.5", className)
|
|
2417
|
+
className: cn("flex", "items-center", "gap-2", "not-first:mt-0.5", className)
|
|
2434
2418
|
}));
|
|
2435
2419
|
//#endregion
|
|
2436
2420
|
//#region src/components/tree/TreeCollapsible.tsx
|
|
@@ -2485,14 +2469,14 @@ var TreeCollapsibleContent = react.default.forwardRef(({ children, className, ..
|
|
|
2485
2469
|
var TreeIcon = ({ className, ...props }) => /* @__PURE__ */ react.createElement(Icon, {
|
|
2486
2470
|
size: "md",
|
|
2487
2471
|
...props,
|
|
2488
|
-
className: cn("my-1 shrink-0 self-start", className)
|
|
2472
|
+
className: cn("my-1", "shrink-0", "self-start", className)
|
|
2489
2473
|
});
|
|
2490
2474
|
//#endregion
|
|
2491
2475
|
//#region src/components/tree/TreeText.tsx
|
|
2492
|
-
var TreeText = (
|
|
2476
|
+
var TreeText = ({ className, ...rest }) => /* @__PURE__ */ react.default.createElement(Text, {
|
|
2493
2477
|
as: "span",
|
|
2494
|
-
...
|
|
2495
|
-
className: cn("py-0.5", "whitespace-nowrap", "overflow-x-hidden", "text-ellipsis",
|
|
2478
|
+
...rest,
|
|
2479
|
+
className: cn("py-0.5", "whitespace-nowrap", "overflow-x-hidden", "text-ellipsis", className),
|
|
2496
2480
|
size: "md"
|
|
2497
2481
|
});
|
|
2498
2482
|
//#endregion
|
|
@@ -2835,6 +2819,11 @@ var useFieldError = (fieldName) => {
|
|
|
2835
2819
|
};
|
|
2836
2820
|
//#endregion
|
|
2837
2821
|
//#region src/components/checkbox-field/CheckboxField.tsx
|
|
2822
|
+
var CheckboxValue = /* @__PURE__ */ function(CheckboxValue) {
|
|
2823
|
+
CheckboxValue["ON"] = "on";
|
|
2824
|
+
CheckboxValue["OFF"] = "off";
|
|
2825
|
+
return CheckboxValue;
|
|
2826
|
+
}(CheckboxValue || {});
|
|
2838
2827
|
var CheckboxField = ({ className, label, name, validation, description, defaultChecked = false, checked, onCheckedChange, ...remainingProps }) => {
|
|
2839
2828
|
const { control } = (0, react_hook_form.useFormContext)();
|
|
2840
2829
|
const { error } = useFieldError(name);
|
|
@@ -2861,7 +2850,7 @@ var CheckboxField = ({ className, label, name, validation, description, defaultC
|
|
|
2861
2850
|
onChange(newChecked);
|
|
2862
2851
|
onCheckedChange?.(newChecked);
|
|
2863
2852
|
},
|
|
2864
|
-
value: innerChecked ?
|
|
2853
|
+
value: innerChecked ? CheckboxValue.ON : CheckboxValue.OFF,
|
|
2865
2854
|
checked: innerChecked,
|
|
2866
2855
|
...error && { state: "error" }
|
|
2867
2856
|
}));
|
|
@@ -3310,18 +3299,15 @@ var StyledLink = styled("a", {
|
|
|
3310
3299
|
},
|
|
3311
3300
|
defaultVariants: { size: "md" }
|
|
3312
3301
|
}, { enabledResponsiveVariants: true });
|
|
3313
|
-
var Link = react.forwardRef(({ as, disabled, href,
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
ref
|
|
3323
|
-
});
|
|
3324
|
-
});
|
|
3302
|
+
var Link = react.forwardRef(({ as, disabled, href, ...rest }, ref) => /* @__PURE__ */ react.createElement(StyledLink, {
|
|
3303
|
+
as: as || (!href ? "button" : void 0),
|
|
3304
|
+
noCapsize: !href ? true : void 0,
|
|
3305
|
+
href,
|
|
3306
|
+
...disabled && { disabled: true },
|
|
3307
|
+
...rest,
|
|
3308
|
+
...getExternalAnchorProps(href),
|
|
3309
|
+
ref
|
|
3310
|
+
}));
|
|
3325
3311
|
Link.displayName = "Link";
|
|
3326
3312
|
//#endregion
|
|
3327
3313
|
//#region src/components/field-wrapper/FieldWrapper.tsx
|
|
@@ -3505,7 +3491,7 @@ var PasswordField = ({ className, hideLabel, label = "Password", name, prompt =
|
|
|
3505
3491
|
prompt,
|
|
3506
3492
|
required: Boolean(validation?.required),
|
|
3507
3493
|
appearance: formAppearance,
|
|
3508
|
-
className: cn(
|
|
3494
|
+
className: cn("relative", className)
|
|
3509
3495
|
}, /* @__PURE__ */ react.createElement(PasswordInput, {
|
|
3510
3496
|
autoComplete: "current-password",
|
|
3511
3497
|
name,
|
|
@@ -4404,6 +4390,11 @@ var DataTableError = ({ children }) => {
|
|
|
4404
4390
|
};
|
|
4405
4391
|
//#endregion
|
|
4406
4392
|
//#region src/components/search-input/SearchInput.tsx
|
|
4393
|
+
var INPUT_ICON = /* @__PURE__ */ function(INPUT_ICON) {
|
|
4394
|
+
INPUT_ICON["SEARCH"] = "SEARCH";
|
|
4395
|
+
INPUT_ICON["CLEAR"] = "CLEAR";
|
|
4396
|
+
return INPUT_ICON;
|
|
4397
|
+
}(INPUT_ICON || {});
|
|
4407
4398
|
var StyledIcon$1 = styled(Icon, {
|
|
4408
4399
|
base: [
|
|
4409
4400
|
"text-grey-700",
|
|
@@ -4419,11 +4410,11 @@ var StyledIcon$1 = styled(Icon, {
|
|
|
4419
4410
|
var SearchInput = react.forwardRef(({ size = "md", appearance = "standard", theme, className, value, defaultValue = "", onValueChange, clearText = "Clear", onChange, ...remainingProps }, ref) => {
|
|
4420
4411
|
const [inputElRef, setInputElRef] = useCallbackRef();
|
|
4421
4412
|
const [innerValue, setInnerValue] = react.useState(defaultValue);
|
|
4422
|
-
const [activeIcon, setActiveIcon] = react.useState(defaultValue ?
|
|
4413
|
+
const [activeIcon, setActiveIcon] = react.useState(defaultValue ? INPUT_ICON.CLEAR : INPUT_ICON.SEARCH);
|
|
4423
4414
|
react.useEffect(() => {
|
|
4424
4415
|
if (typeof value === "undefined") return;
|
|
4425
4416
|
setInnerValue(value);
|
|
4426
|
-
setActiveIcon(value ?
|
|
4417
|
+
setActiveIcon(value ? INPUT_ICON.CLEAR : INPUT_ICON.SEARCH);
|
|
4427
4418
|
}, [value]);
|
|
4428
4419
|
const iconSize = react.useMemo(() => getFieldIconSize(size), [size]);
|
|
4429
4420
|
react.useImperativeHandle(ref, () => inputElRef.current);
|
|
@@ -4441,10 +4432,10 @@ var SearchInput = react.forwardRef(({ size = "md", appearance = "standard", them
|
|
|
4441
4432
|
const newValue = event.target.value;
|
|
4442
4433
|
setInnerValue(newValue);
|
|
4443
4434
|
onValueChange?.(newValue);
|
|
4444
|
-
setActiveIcon(newValue ?
|
|
4435
|
+
setActiveIcon(newValue ? INPUT_ICON.CLEAR : INPUT_ICON.SEARCH);
|
|
4445
4436
|
};
|
|
4446
4437
|
const getIcon = () => {
|
|
4447
|
-
if (activeIcon ===
|
|
4438
|
+
if (activeIcon === INPUT_ICON.SEARCH) return /* @__PURE__ */ react.createElement(StyledIcon$1, {
|
|
4448
4439
|
is: _atom_learning_icons.Search,
|
|
4449
4440
|
size,
|
|
4450
4441
|
className: cn(size == "sm" ? "size-4" : "size-5", "top-1/2", "-translate-y-1/2")
|
|
@@ -4742,14 +4733,14 @@ var DataTableTable = ({ sortable, striped, theme = "white", className, scrollOpt
|
|
|
4742
4733
|
numberOfStickyColumns: scrollOptions.numberOfStickyColumns,
|
|
4743
4734
|
scrollContainerCls: scrollOptions.scrollContainerCls,
|
|
4744
4735
|
scrollContainerkey: buildScrollContainerKey(),
|
|
4745
|
-
className: cn(
|
|
4736
|
+
className: cn(isPending && [
|
|
4746
4737
|
"opacity-50",
|
|
4747
4738
|
"pointer-events-none",
|
|
4748
4739
|
"transition-opacity",
|
|
4749
4740
|
"duration-250",
|
|
4750
4741
|
"linear",
|
|
4751
4742
|
"delay-150"
|
|
4752
|
-
])
|
|
4743
|
+
], className)
|
|
4753
4744
|
}, /* @__PURE__ */ react.createElement(DataTableHead, {
|
|
4754
4745
|
theme,
|
|
4755
4746
|
sortable,
|
|
@@ -4925,11 +4916,14 @@ var DragAndDropTable = ({ idColumn = "id", onDragAndDrop, sortable, striped, the
|
|
|
4925
4916
|
sortableIds: rowIds
|
|
4926
4917
|
}, /* @__PURE__ */ react.createElement(DataTableLoading, null), /* @__PURE__ */ react.createElement(Table, {
|
|
4927
4918
|
...props,
|
|
4928
|
-
className: cn(
|
|
4919
|
+
className: cn(isPending && [
|
|
4929
4920
|
"opacity-50",
|
|
4930
4921
|
"pointer-events-none",
|
|
4931
|
-
"transition-opacity,
|
|
4932
|
-
|
|
4922
|
+
"transition-opacity",
|
|
4923
|
+
"duration-250",
|
|
4924
|
+
"linear",
|
|
4925
|
+
"delay-150"
|
|
4926
|
+
], className)
|
|
4933
4927
|
}, /* @__PURE__ */ react.createElement(DataTableHead, {
|
|
4934
4928
|
theme,
|
|
4935
4929
|
sortable
|
|
@@ -5437,110 +5431,22 @@ Pagination$1.displayName = "Pagination";
|
|
|
5437
5431
|
* the functionality we've built on top.
|
|
5438
5432
|
*/
|
|
5439
5433
|
var DataTable = Object.assign(DataTableProvider, {
|
|
5440
|
-
/** Default table body implementation for `DataTable`.
|
|
5441
|
-
*
|
|
5442
|
-
* Can be configured with alternating colours of rows. If you need more customisation options,
|
|
5443
|
-
* you can build your own implementation with `useDataTable()` and the UI-only `Table` components.
|
|
5444
|
-
*/
|
|
5445
5434
|
Body: DataTableBody,
|
|
5446
|
-
/** Default table data cell implementation for `DataTable`
|
|
5447
|
-
*
|
|
5448
|
-
*
|
|
5449
|
-
*/
|
|
5450
5435
|
DataCell: DataTableDataCell,
|
|
5451
|
-
/**
|
|
5452
|
-
* Used in place of `DataTable.Table` to render a table with rows that the user can sort by drag-and-drop
|
|
5453
|
-
*/
|
|
5454
5436
|
DragAndDropTable,
|
|
5455
|
-
/** Default global search implementation for `DataTable`
|
|
5456
|
-
*
|
|
5457
|
-
* If you need more customisation options, you can compose your own implementation with our UI-only input components and `useDataTable`.
|
|
5458
|
-
*/
|
|
5459
5437
|
GlobalFilter: DataTableGlobalFilter,
|
|
5460
|
-
/** Default table head implementation
|
|
5461
|
-
*
|
|
5462
|
-
* Can be configured to be sortable and with different visual themes.
|
|
5463
|
-
* If you need more customisation options, you can build your own implementation
|
|
5464
|
-
* with `useDataTable` and the UI-only `Table` components.
|
|
5465
|
-
*/
|
|
5466
5438
|
Head: DataTableHead,
|
|
5467
|
-
/** Default header implementation for `DataTable`
|
|
5468
|
-
*
|
|
5469
|
-
* Can be configured to make the column sortable. If you need more customisation options,
|
|
5470
|
-
* you can build your own implementation with the UI-only `Table` components.
|
|
5471
|
-
*/
|
|
5472
5439
|
HeaderCell: DataTableHeaderCell,
|
|
5473
|
-
/** Default pagination implementation for `DataTable`
|
|
5474
|
-
*
|
|
5475
|
-
* Can navigate forward, backward, or to any specific page. If you need more customisation options,
|
|
5476
|
-
* you can build your own implementation with `useDataTable` and other UI components.
|
|
5477
|
-
*
|
|
5478
|
-
*/
|
|
5479
5440
|
MetaData: DataTableMetaData,
|
|
5480
|
-
/** Default display of amount of items and current sorting status for 'DataTable'
|
|
5481
|
-
*
|
|
5482
|
-
*/
|
|
5483
5441
|
Pagination: Pagination$1,
|
|
5484
|
-
/** Default row implementation for `DataTable`
|
|
5485
|
-
*
|
|
5486
|
-
* Renders all visible cells as `Table.Cell`. If you need more customisation options,
|
|
5487
|
-
* you can build your own implementation with the UI-only `Table` components.
|
|
5488
|
-
*/
|
|
5489
5442
|
Row: DataTableRow,
|
|
5490
|
-
/** Default table implementation for `DataTable`.
|
|
5491
|
-
*
|
|
5492
|
-
* Can be configured with sortable columns and different visual themes.
|
|
5493
|
-
*
|
|
5494
|
-
* If you need more customisation options, you can compose your own implementation with
|
|
5495
|
-
* lower-level `DataTable` components or build the whole thing from
|
|
5496
|
-
* scratch with `useDataTable` and the UI-only `Table` components.
|
|
5497
|
-
*
|
|
5498
|
-
*/
|
|
5499
5443
|
Table: DataTableTable,
|
|
5500
|
-
/** Default loading implementation for remote data
|
|
5501
|
-
*
|
|
5502
|
-
* Renders a loading component while fetching the paginated data using `getAsyncData`.
|
|
5503
|
-
*
|
|
5504
|
-
* If you need more customisation, you can compose your own implentation, `asyncDataState`
|
|
5505
|
-
* can be retrieved from `useDataTable`
|
|
5506
|
-
*/
|
|
5507
5444
|
Loading: DataTableLoading,
|
|
5508
|
-
/** Default error implementation for remote data
|
|
5509
|
-
*
|
|
5510
|
-
* Renders an error component when `getAsyncData` promise rejects.
|
|
5511
|
-
* Children are rendered as a function, it exposes a `runAsyncData` function to the children component.
|
|
5512
|
-
* `runAsyncData()` can be used to retry fetching the paginated data with the current pageIndex, pageSize
|
|
5513
|
-
* and sorting parameters or your own custom paginated options.
|
|
5514
|
-
*
|
|
5515
|
-
* If you need more customisation, you can compose your own implentation, `asyncDataState` and `runAsyncData()`
|
|
5516
|
-
* can be retrieved from `useDataTable`
|
|
5517
|
-
*
|
|
5518
|
-
*/
|
|
5519
5445
|
Error: DataTableError,
|
|
5520
|
-
/** Empty state implementation for `DataTable`.
|
|
5521
|
-
*
|
|
5522
|
-
* Extends the EmptyState component
|
|
5523
|
-
*/
|
|
5524
5446
|
EmptyState: DataTableEmptyState,
|
|
5525
|
-
/** Select all rows checkbox.
|
|
5526
|
-
*
|
|
5527
|
-
* Renders a checkbox on the header, allowing for bulk selection/deselection of all selectable rows
|
|
5528
|
-
*/
|
|
5529
5447
|
SelectAllRowsCheckbox: DataTableSelectAllRowsCheckbox,
|
|
5530
|
-
/** Individual row selection checkbox.
|
|
5531
|
-
*
|
|
5532
|
-
* Renders a checkbox on each row, allowing for individual selection/deselection of any selectable row
|
|
5533
|
-
*/
|
|
5534
5448
|
RowSelectionCheckbox: DataTableRowSelectionCheckbox,
|
|
5535
|
-
/** Bulk actions for selected rows.
|
|
5536
|
-
*
|
|
5537
|
-
* Renders a toolbar with actions that can be applied to all selected rows
|
|
5538
|
-
*/
|
|
5539
5449
|
BulkActions: DataTableBulkActions,
|
|
5540
|
-
/** Bulk actions for selected rows.
|
|
5541
|
-
*
|
|
5542
|
-
* Renders a toolbar with actions that can be applied to all selected rows
|
|
5543
|
-
*/
|
|
5544
5450
|
BulkActionsFloating: DataTableBulkActionsFloating
|
|
5545
5451
|
});
|
|
5546
5452
|
//#endregion
|
|
@@ -6189,18 +6095,14 @@ var DropdownMenuItem = styled(_radix_ui_react_dropdown_menu.Item, { base: [
|
|
|
6189
6095
|
//#endregion
|
|
6190
6096
|
//#region src/components/dropdown-menu/DropdownMenuLinkItem.tsx
|
|
6191
6097
|
var StyledLink$2 = styled("a", { base: ["no-underline"] });
|
|
6192
|
-
var DropdownMenuLinkItem = ({ children, href,
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
role: "menuitem",
|
|
6201
|
-
...getExternalAnchorProps(href)
|
|
6202
|
-
}, children));
|
|
6203
|
-
};
|
|
6098
|
+
var DropdownMenuLinkItem = ({ children, href, ...props }) => /* @__PURE__ */ react.default.createElement(DropdownMenuItem, {
|
|
6099
|
+
...props,
|
|
6100
|
+
asChild: true
|
|
6101
|
+
}, /* @__PURE__ */ react.default.createElement(StyledLink$2, {
|
|
6102
|
+
href,
|
|
6103
|
+
role: "menuitem",
|
|
6104
|
+
...getExternalAnchorProps(href)
|
|
6105
|
+
}, children));
|
|
6204
6106
|
//#endregion
|
|
6205
6107
|
//#region src/components/dropdown-menu/DropdownMenuSeparator.tsx
|
|
6206
6108
|
var DropdownMenuSeparator = styled(_radix_ui_react_dropdown_menu.Separator, { base: [
|
|
@@ -6784,27 +6686,17 @@ var StyledLink$1 = styled(_radix_ui_react_navigation_menu.Link, {
|
|
|
6784
6686
|
]
|
|
6785
6687
|
} }
|
|
6786
6688
|
});
|
|
6787
|
-
var NavigationMenuLink = react.default.forwardRef(({ children, href, disabled, className, variant = "link", ref: _ref,
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
...props
|
|
6799
|
-
}, /* @__PURE__ */ react.default.createElement(RouterLink, { href }, children)) : /* @__PURE__ */ react.default.createElement(StyledLink$1, {
|
|
6800
|
-
href,
|
|
6801
|
-
ref: forwardedRef,
|
|
6802
|
-
elementType: variant,
|
|
6803
|
-
className,
|
|
6804
|
-
...getExternalAnchorProps(href),
|
|
6805
|
-
...props
|
|
6806
|
-
}, children));
|
|
6807
|
-
});
|
|
6689
|
+
var NavigationMenuLink = react.default.forwardRef(({ children, href, disabled, className, variant = "link", ref: _ref, ...props }, forwardedRef) => /* @__PURE__ */ react.default.createElement(ListItem, null, disabled ? /* @__PURE__ */ react.default.createElement(DisabledButton, {
|
|
6690
|
+
disabled: true,
|
|
6691
|
+
className
|
|
6692
|
+
}, children) : /* @__PURE__ */ react.default.createElement(StyledLink$1, {
|
|
6693
|
+
href,
|
|
6694
|
+
ref: forwardedRef,
|
|
6695
|
+
elementType: variant,
|
|
6696
|
+
className,
|
|
6697
|
+
...getExternalAnchorProps(href),
|
|
6698
|
+
...props
|
|
6699
|
+
}, children)));
|
|
6808
6700
|
NavigationMenuLink.displayName = "NavigationMenuLink";
|
|
6809
6701
|
//#endregion
|
|
6810
6702
|
//#region src/components/navigation/NavigationMenuDropdownItem.tsx
|
|
@@ -7060,10 +6952,9 @@ var StyledNavigationMenuVerticalLink = styled(_radix_ui_react_navigation_menu.Li
|
|
|
7060
6952
|
lg: ["min-h-12"]
|
|
7061
6953
|
} }
|
|
7062
6954
|
});
|
|
7063
|
-
var NavigationMenuVerticalLink = ({ as, href, children,
|
|
7064
|
-
const
|
|
7065
|
-
const
|
|
7066
|
-
const componentProps = as || routerLinkProps.as ? {} : href ? getExternalAnchorProps(href) : { type: "button" };
|
|
6955
|
+
var NavigationMenuVerticalLink = ({ as, href, children, ...rest }) => {
|
|
6956
|
+
const Component = as || (href ? "a" : "button");
|
|
6957
|
+
const componentProps = as ? {} : href ? getExternalAnchorProps(href) : { type: "button" };
|
|
7067
6958
|
return /* @__PURE__ */ react.default.createElement(NavigationMenuVerticalItem, null, /* @__PURE__ */ react.default.createElement(StyledNavigationMenuVerticalLink, {
|
|
7068
6959
|
size: "lg",
|
|
7069
6960
|
href,
|
|
@@ -7323,7 +7214,7 @@ var NumberInput = react.forwardRef(({ value, defaultValue = 0, onValueChange, mi
|
|
|
7323
7214
|
}, /* @__PURE__ */ react.createElement(NumberInputStepper, {
|
|
7324
7215
|
onClick: decrement,
|
|
7325
7216
|
icon: _atom_learning_icons.Minus,
|
|
7326
|
-
className: cn(emphasis !== "bold" && "border-r-none rounded-r-none"),
|
|
7217
|
+
className: cn(emphasis !== "bold" && ["border-r-none", "rounded-r-none"]),
|
|
7327
7218
|
size: iconSize,
|
|
7328
7219
|
fieldAppearance: appearance,
|
|
7329
7220
|
fieldTheme: theme,
|
|
@@ -7335,7 +7226,7 @@ var NumberInput = react.forwardRef(({ value, defaultValue = 0, onValueChange, mi
|
|
|
7335
7226
|
}), /* @__PURE__ */ react.createElement(Input, inputProps), /* @__PURE__ */ react.createElement(NumberInputStepper, {
|
|
7336
7227
|
onClick: increment,
|
|
7337
7228
|
icon: _atom_learning_icons.Plus,
|
|
7338
|
-
className: cn(emphasis !== "bold" && "border-l-none rounded-l-none"),
|
|
7229
|
+
className: cn(emphasis !== "bold" && ["border-l-none", "rounded-l-none"]),
|
|
7339
7230
|
size: iconSize,
|
|
7340
7231
|
fieldAppearance: appearance,
|
|
7341
7232
|
fieldTheme: theme,
|
|
@@ -7897,6 +7788,272 @@ var SelectField = ({ className, hideLabel, children, name, label, validation, pr
|
|
|
7897
7788
|
};
|
|
7898
7789
|
SelectField.displayName = "SelectField";
|
|
7899
7790
|
//#endregion
|
|
7791
|
+
//#region src/components/select-menu/SelectMenuContent.tsx
|
|
7792
|
+
var Content$2 = styled(_radix_ui_react_select.Content, {
|
|
7793
|
+
base: [
|
|
7794
|
+
"bg-white",
|
|
7795
|
+
"rounded-md",
|
|
7796
|
+
"shadow-lg",
|
|
7797
|
+
"z-10",
|
|
7798
|
+
"overflow-hidden",
|
|
7799
|
+
"will-change-transform",
|
|
7800
|
+
"will-change-opacity",
|
|
7801
|
+
"[--slide-opacity-out:0]",
|
|
7802
|
+
"data-[side=top]:[--slide-direction-out-y:-4px]",
|
|
7803
|
+
"data-[side=right]:[--slide-direction-out-x:4px]",
|
|
7804
|
+
"data-[side=bottom]:[--slide-direction-out-y:4px]",
|
|
7805
|
+
"data-[side=left]:[--slide-direction-out-x:-4px]",
|
|
7806
|
+
"motion-safe:data-[state=open]:animate-slide-direction-in",
|
|
7807
|
+
"motion-safe:data-[state=closed]:animate-slide-direction-out"
|
|
7808
|
+
],
|
|
7809
|
+
variants: { position: {
|
|
7810
|
+
popper: ["max-h-(--radix-select-content-available-height)", "min-w-(--radix-select-trigger-width)"],
|
|
7811
|
+
"item-aligned": []
|
|
7812
|
+
} }
|
|
7813
|
+
});
|
|
7814
|
+
var Viewport = styled(_radix_ui_react_select.Viewport, {
|
|
7815
|
+
base: ["p-1", "w-full"],
|
|
7816
|
+
variants: { position: {
|
|
7817
|
+
popper: ["h-(--radix-select-content-available-height)"],
|
|
7818
|
+
"item-aligned": []
|
|
7819
|
+
} }
|
|
7820
|
+
});
|
|
7821
|
+
var ScrollUpButton = styled(_radix_ui_react_select.ScrollUpButton, { base: [
|
|
7822
|
+
"flex",
|
|
7823
|
+
"items-center",
|
|
7824
|
+
"justify-center",
|
|
7825
|
+
"h-6",
|
|
7826
|
+
"cursor-default"
|
|
7827
|
+
] });
|
|
7828
|
+
var ScrollDownButton = styled(_radix_ui_react_select.ScrollDownButton, { base: [
|
|
7829
|
+
"flex",
|
|
7830
|
+
"items-center",
|
|
7831
|
+
"justify-center",
|
|
7832
|
+
"h-6",
|
|
7833
|
+
"cursor-default"
|
|
7834
|
+
] });
|
|
7835
|
+
var SelectMenuContent = react.forwardRef(({ children, position = "popper", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ react.createElement(_radix_ui_react_select.Portal, null, /* @__PURE__ */ react.createElement(Content$2, {
|
|
7836
|
+
ref,
|
|
7837
|
+
position,
|
|
7838
|
+
sideOffset,
|
|
7839
|
+
...props
|
|
7840
|
+
}, /* @__PURE__ */ react.createElement(ScrollUpButton, null, /* @__PURE__ */ react.createElement(Icon, {
|
|
7841
|
+
is: _atom_learning_icons.ChevronUp,
|
|
7842
|
+
className: "text-grey-700 size-4"
|
|
7843
|
+
})), /* @__PURE__ */ react.createElement(Viewport, { position }, children), /* @__PURE__ */ react.createElement(ScrollDownButton, null, /* @__PURE__ */ react.createElement(Icon, {
|
|
7844
|
+
is: _atom_learning_icons.ChevronDown,
|
|
7845
|
+
className: "text-grey-700 size-4"
|
|
7846
|
+
})))));
|
|
7847
|
+
SelectMenuContent.displayName = "SelectMenuContent";
|
|
7848
|
+
//#endregion
|
|
7849
|
+
//#region src/components/select-menu/SelectMenuContext.tsx
|
|
7850
|
+
var SelectMenuContext = react.createContext({
|
|
7851
|
+
size: "md",
|
|
7852
|
+
theme: "grey"
|
|
7853
|
+
});
|
|
7854
|
+
var useSelectMenuContext = () => react.useContext(SelectMenuContext);
|
|
7855
|
+
//#endregion
|
|
7856
|
+
//#region src/components/select-menu/SelectMenuItem.tsx
|
|
7857
|
+
var Item = styled(_radix_ui_react_select.Item, {
|
|
7858
|
+
base: [
|
|
7859
|
+
"relative",
|
|
7860
|
+
"flex",
|
|
7861
|
+
"items-center",
|
|
7862
|
+
"text-grey-1000",
|
|
7863
|
+
"font-body",
|
|
7864
|
+
"font-normal",
|
|
7865
|
+
"cursor-pointer",
|
|
7866
|
+
"rounded-sm",
|
|
7867
|
+
"outline-none",
|
|
7868
|
+
"data-disabled:cursor-not-allowed",
|
|
7869
|
+
"data-disabled:opacity-30",
|
|
7870
|
+
"data-disabled:pointer-events-none",
|
|
7871
|
+
"data-highlighted:bg-grey-100",
|
|
7872
|
+
"data-highlighted:outline-none"
|
|
7873
|
+
],
|
|
7874
|
+
variants: { size: {
|
|
7875
|
+
sm: [
|
|
7876
|
+
"py-1.5",
|
|
7877
|
+
"pl-7",
|
|
7878
|
+
"pr-4",
|
|
7879
|
+
"text-sm"
|
|
7880
|
+
],
|
|
7881
|
+
md: [
|
|
7882
|
+
"py-2",
|
|
7883
|
+
"pl-8",
|
|
7884
|
+
"pr-6"
|
|
7885
|
+
],
|
|
7886
|
+
lg: [
|
|
7887
|
+
"py-2",
|
|
7888
|
+
"pl-8",
|
|
7889
|
+
"pr-6"
|
|
7890
|
+
]
|
|
7891
|
+
} }
|
|
7892
|
+
});
|
|
7893
|
+
var SelectMenuItem = react.forwardRef(({ children, ...props }, ref) => {
|
|
7894
|
+
const { size } = useSelectMenuContext();
|
|
7895
|
+
return /* @__PURE__ */ react.createElement(Item, {
|
|
7896
|
+
ref,
|
|
7897
|
+
size,
|
|
7898
|
+
...props
|
|
7899
|
+
}, /* @__PURE__ */ react.createElement(_radix_ui_react_select.ItemIndicator, { className: "absolute left-2 inline-flex items-center" }, /* @__PURE__ */ react.createElement(Icon, {
|
|
7900
|
+
is: _atom_learning_icons.Ok,
|
|
7901
|
+
className: size === "sm" ? "size-3" : "size-4"
|
|
7902
|
+
})), /* @__PURE__ */ react.createElement(_radix_ui_react_select.ItemText, null, children));
|
|
7903
|
+
});
|
|
7904
|
+
SelectMenuItem.displayName = "SelectMenuItem";
|
|
7905
|
+
//#endregion
|
|
7906
|
+
//#region src/components/select-menu/SelectMenuLabel.tsx
|
|
7907
|
+
var SelectMenuLabel = ({ className, ...props }) => /* @__PURE__ */ react.createElement(Text, {
|
|
7908
|
+
as: _radix_ui_react_select.Label,
|
|
7909
|
+
size: "sm",
|
|
7910
|
+
className: cn("p-2", "mb-1", "text-text-subtle", className),
|
|
7911
|
+
...props
|
|
7912
|
+
});
|
|
7913
|
+
SelectMenuLabel.displayName = "SelectMenuLabel";
|
|
7914
|
+
//#endregion
|
|
7915
|
+
//#region src/components/select-menu/SelectMenuSeparator.tsx
|
|
7916
|
+
var SelectMenuSeparator = styled(_radix_ui_react_select.Separator, { base: [
|
|
7917
|
+
"h-px",
|
|
7918
|
+
"bg-grey-200",
|
|
7919
|
+
"my-2",
|
|
7920
|
+
"mx-1"
|
|
7921
|
+
] });
|
|
7922
|
+
//#endregion
|
|
7923
|
+
//#region src/components/select-menu/SelectMenuTrigger.tsx
|
|
7924
|
+
var Trigger$2 = styled(_radix_ui_react_select.Trigger, {
|
|
7925
|
+
base: [
|
|
7926
|
+
"appearance-none",
|
|
7927
|
+
"rounded-md",
|
|
7928
|
+
"block",
|
|
7929
|
+
"w-full",
|
|
7930
|
+
"font-body",
|
|
7931
|
+
"font-normal",
|
|
7932
|
+
"leading-[1.4]",
|
|
7933
|
+
"text-grey-1000",
|
|
7934
|
+
"text-left",
|
|
7935
|
+
"relative",
|
|
7936
|
+
"inline-flex",
|
|
7937
|
+
"items-center",
|
|
7938
|
+
"border-none",
|
|
7939
|
+
"hover:cursor-pointer",
|
|
7940
|
+
"disabled:opacity-30",
|
|
7941
|
+
"disabled:cursor-not-allowed",
|
|
7942
|
+
"focus:outline-2",
|
|
7943
|
+
"focus:outline-blue-800",
|
|
7944
|
+
"focus:outline-offset-1",
|
|
7945
|
+
"focus:outline-solid",
|
|
7946
|
+
"focus:z-1"
|
|
7947
|
+
],
|
|
7948
|
+
variants: {
|
|
7949
|
+
size: {
|
|
7950
|
+
sm: [
|
|
7951
|
+
"h-8",
|
|
7952
|
+
"pl-2",
|
|
7953
|
+
"pr-8",
|
|
7954
|
+
"text-sm"
|
|
7955
|
+
],
|
|
7956
|
+
md: [
|
|
7957
|
+
"h-10",
|
|
7958
|
+
"pl-3",
|
|
7959
|
+
"pr-10",
|
|
7960
|
+
"text-md"
|
|
7961
|
+
],
|
|
7962
|
+
lg: [
|
|
7963
|
+
"h-12",
|
|
7964
|
+
"pl-3",
|
|
7965
|
+
"pr-10",
|
|
7966
|
+
"text-md"
|
|
7967
|
+
]
|
|
7968
|
+
},
|
|
7969
|
+
theme: {
|
|
7970
|
+
white: ["bg-white"],
|
|
7971
|
+
grey: ["bg-grey-100"]
|
|
7972
|
+
},
|
|
7973
|
+
state: { error: ["bg-danger-light", "focus:outline-danger"] }
|
|
7974
|
+
}
|
|
7975
|
+
});
|
|
7976
|
+
var TriggerIcon = styled(Icon, {
|
|
7977
|
+
base: [
|
|
7978
|
+
"absolute",
|
|
7979
|
+
"top-1/2",
|
|
7980
|
+
"-translate-y-1/2",
|
|
7981
|
+
"pointer-events-none",
|
|
7982
|
+
"text-grey-700"
|
|
7983
|
+
],
|
|
7984
|
+
variants: { size: {
|
|
7985
|
+
sm: ["right-2", "size-4"],
|
|
7986
|
+
md: ["right-3", "size-5"],
|
|
7987
|
+
lg: ["right-3", "size-5"]
|
|
7988
|
+
} }
|
|
7989
|
+
});
|
|
7990
|
+
var SelectMenuTrigger = react.forwardRef(({ placeholder, children, ...props }, ref) => {
|
|
7991
|
+
const { size, theme, state } = useSelectMenuContext();
|
|
7992
|
+
return /* @__PURE__ */ react.createElement(Trigger$2, {
|
|
7993
|
+
ref,
|
|
7994
|
+
size,
|
|
7995
|
+
theme,
|
|
7996
|
+
state,
|
|
7997
|
+
...props
|
|
7998
|
+
}, /* @__PURE__ */ react.createElement(_radix_ui_react_select.Value, { placeholder }, children), /* @__PURE__ */ react.createElement(TriggerIcon, {
|
|
7999
|
+
is: _atom_learning_icons.ChevronDown,
|
|
8000
|
+
size
|
|
8001
|
+
}));
|
|
8002
|
+
});
|
|
8003
|
+
SelectMenuTrigger.displayName = "SelectMenuTrigger";
|
|
8004
|
+
//#endregion
|
|
8005
|
+
//#region src/components/select-menu/SelectMenu.tsx
|
|
8006
|
+
var SelectMenuRoot = ({ size = "md", theme = "grey", state, children, ...props }) => /* @__PURE__ */ react.createElement(SelectMenuContext.Provider, { value: {
|
|
8007
|
+
size,
|
|
8008
|
+
theme,
|
|
8009
|
+
state
|
|
8010
|
+
} }, /* @__PURE__ */ react.createElement(_radix_ui_react_select.Root, props, children));
|
|
8011
|
+
var SelectMenu = Object.assign(SelectMenuRoot, {
|
|
8012
|
+
Trigger: SelectMenuTrigger,
|
|
8013
|
+
Content: SelectMenuContent,
|
|
8014
|
+
Item: SelectMenuItem,
|
|
8015
|
+
Group: _radix_ui_react_select.Group,
|
|
8016
|
+
Label: SelectMenuLabel,
|
|
8017
|
+
Separator: SelectMenuSeparator
|
|
8018
|
+
});
|
|
8019
|
+
//#endregion
|
|
8020
|
+
//#region src/components/select-menu-field/SelectMenuField.tsx
|
|
8021
|
+
var SelectMenuField = ({ className, hideLabel, children, name, label, validation, prompt, description, theme, size, placeholder, disabled, ...remainingProps }) => {
|
|
8022
|
+
const { control } = (0, react_hook_form.useFormContext)();
|
|
8023
|
+
const context = useFormCustomContext();
|
|
8024
|
+
const { error } = useFieldError(name);
|
|
8025
|
+
const formTheme = context?.theme ?? theme;
|
|
8026
|
+
const { field: { ref, onChange, value } } = (0, react_hook_form.useController)({
|
|
8027
|
+
name,
|
|
8028
|
+
control,
|
|
8029
|
+
rules: validation,
|
|
8030
|
+
defaultValue: ""
|
|
8031
|
+
});
|
|
8032
|
+
return /* @__PURE__ */ react.createElement(FieldWrapper, {
|
|
8033
|
+
className,
|
|
8034
|
+
description,
|
|
8035
|
+
error,
|
|
8036
|
+
fieldId: name,
|
|
8037
|
+
hideLabel,
|
|
8038
|
+
label,
|
|
8039
|
+
prompt,
|
|
8040
|
+
required: Boolean(validation?.required)
|
|
8041
|
+
}, /* @__PURE__ */ react.createElement(SelectMenu, {
|
|
8042
|
+
value,
|
|
8043
|
+
onValueChange: onChange,
|
|
8044
|
+
size,
|
|
8045
|
+
theme: formTheme,
|
|
8046
|
+
disabled,
|
|
8047
|
+
...error && { state: "error" },
|
|
8048
|
+
...remainingProps
|
|
8049
|
+
}, /* @__PURE__ */ react.createElement(SelectMenu.Trigger, {
|
|
8050
|
+
ref,
|
|
8051
|
+
placeholder,
|
|
8052
|
+
"aria-label": label
|
|
8053
|
+
}), /* @__PURE__ */ react.createElement(SelectMenu.Content, null, children)));
|
|
8054
|
+
};
|
|
8055
|
+
SelectMenuField.displayName = "SelectMenuField";
|
|
8056
|
+
//#endregion
|
|
7900
8057
|
//#region src/components/side-bar/SideBarComponents.tsx
|
|
7901
8058
|
var SideBarHeader = styled("div", { base: [
|
|
7902
8059
|
"border-b",
|
|
@@ -8248,7 +8405,7 @@ var SkeletonTable = ({ numberOfColumns = 4, numberOfRows = 4, columnWidth, class
|
|
|
8248
8405
|
};
|
|
8249
8406
|
//#endregion
|
|
8250
8407
|
//#region src/components/skeleton-loader/SkeletonCard.tsx
|
|
8251
|
-
var SkeletonCard = ({ numberOfRows = 3, withChart, className }) => /* @__PURE__ */ react.default.createElement(Tile, { className: cn("relative", "w-full", "flex-col", "items-center", "gap-6 p-6", className) }, /* @__PURE__ */ react.default.createElement("div", { className: "align-center flex w-full gap-6" }, withChart && /* @__PURE__ */ react.default.createElement(SkeletonDoughnutChart, null), /* @__PURE__ */ react.default.createElement("div", { className: "flex grow flex-col gap-6" }, Array.from({ length: numberOfRows }, (_, index) => index).map((rowNumber) => /* @__PURE__ */ react.default.createElement(SkeletonLoader, {
|
|
8408
|
+
var SkeletonCard = ({ numberOfRows = 3, withChart, className }) => /* @__PURE__ */ react.default.createElement(Tile, { className: cn("relative", "w-full", "flex-col", "items-center", "gap-6", "p-6", className) }, /* @__PURE__ */ react.default.createElement("div", { className: "align-center flex w-full gap-6" }, withChart && /* @__PURE__ */ react.default.createElement(SkeletonDoughnutChart, null), /* @__PURE__ */ react.default.createElement("div", { className: "flex grow flex-col gap-6" }, Array.from({ length: numberOfRows }, (_, index) => index).map((rowNumber) => /* @__PURE__ */ react.default.createElement(SkeletonLoader, {
|
|
8252
8409
|
key: rowNumber,
|
|
8253
8410
|
className: "bg-grey-200 h-10 w-full min-w-25 rounded-md"
|
|
8254
8411
|
})))), /* @__PURE__ */ react.default.createElement(SkeletonButton, null));
|
|
@@ -9017,10 +9174,9 @@ var StyledTileInteractive = styled(Tile, { base: [
|
|
|
9017
9174
|
"not-disabled:transition-transform",
|
|
9018
9175
|
"not-disabled:translate-y-0"
|
|
9019
9176
|
] });
|
|
9020
|
-
var TileInteractive = react.default.forwardRef(({ onClick, href, type = "button", as,
|
|
9021
|
-
const routerLinkProps = useRouterLinkProps(href, { reloadDocument });
|
|
9177
|
+
var TileInteractive = react.default.forwardRef(({ onClick, href, type = "button", as, ...rest }, ref) => {
|
|
9022
9178
|
const elementSpecificProps = !!href ? {
|
|
9023
|
-
as: as ||
|
|
9179
|
+
as: as || "a",
|
|
9024
9180
|
href,
|
|
9025
9181
|
onClick: void 0
|
|
9026
9182
|
} : {
|
|
@@ -9055,10 +9211,10 @@ var TileToggleGroupItem = ({ children, ...rest }) => /* @__PURE__ */ react.creat
|
|
|
9055
9211
|
}, /* @__PURE__ */ react.createElement(StyledTileToggleGroupItem, { as: "button" }, children));
|
|
9056
9212
|
//#endregion
|
|
9057
9213
|
//#region src/components/tile-toggle-group/index.ts
|
|
9058
|
-
var TileToggleGroup = react.forwardRef((
|
|
9214
|
+
var TileToggleGroup = react.forwardRef(({ orientation, className, ...rest }, ref) => /* @__PURE__ */ react.createElement(ToggleGroup$1.Root, {
|
|
9059
9215
|
ref,
|
|
9060
|
-
...
|
|
9061
|
-
className: cn(
|
|
9216
|
+
...rest,
|
|
9217
|
+
className: cn("flex", "gap-2", orientation === "horizontal" && "flex-row", orientation === "vertical" && "flex-col", "flex-wrap", className)
|
|
9062
9218
|
}));
|
|
9063
9219
|
TileToggleGroup.Item = TileToggleGroupItem;
|
|
9064
9220
|
TileToggleGroup.displayName = "TileToggleGroup";
|
|
@@ -9667,7 +9823,7 @@ var SegmentedControlBadge = ({ className, ...props }) => {
|
|
|
9667
9823
|
return /* @__PURE__ */ react.createElement(Badge, {
|
|
9668
9824
|
...props,
|
|
9669
9825
|
size: badgeSizeMap[size],
|
|
9670
|
-
className: cn("border-none",
|
|
9826
|
+
className: cn("border-none", "font-normal", className)
|
|
9671
9827
|
});
|
|
9672
9828
|
};
|
|
9673
9829
|
//#endregion
|
|
@@ -10078,13 +10234,14 @@ exports.RadioButtonField = RadioButtonField;
|
|
|
10078
10234
|
exports.RadioButtonGroup = RadioButtonGroup;
|
|
10079
10235
|
exports.RadioCard = RadioCard;
|
|
10080
10236
|
exports.RadioCardGroup = RadioCardGroup;
|
|
10081
|
-
exports.RouterProvider = RouterProvider;
|
|
10082
10237
|
exports.SearchField = SearchField;
|
|
10083
10238
|
exports.SearchInput = SearchInput;
|
|
10084
10239
|
exports.SectionMessage = SectionMessage;
|
|
10085
10240
|
exports.SegmentedControl = SegmentedControl;
|
|
10086
10241
|
exports.Select = Select;
|
|
10087
10242
|
exports.SelectField = SelectField;
|
|
10243
|
+
exports.SelectMenu = SelectMenu;
|
|
10244
|
+
exports.SelectMenuField = SelectMenuField;
|
|
10088
10245
|
exports.SideBar = SideBar;
|
|
10089
10246
|
Object.defineProperty(exports, "Skeleton", {
|
|
10090
10247
|
enumerable: true,
|