@atom-learning/components 4.0.0-beta.9 → 4.1.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/CHANGELOG.md +212 -0
- package/dist/components/accordion/Accordion.d.ts +294 -294
- package/dist/components/accordion/AccordionContent.d.ts +292 -292
- package/dist/components/accordion/AccordionItem.d.ts +292 -292
- package/dist/components/accordion/AccordionTrigger.d.ts +294 -659
- package/dist/components/accordion/AccordionTrigger.js +1 -1
- package/dist/components/accordion/AccordionTrigger.js.map +1 -1
- package/dist/components/action-icon/ActionIcon.d.ts +294 -294
- package/dist/components/action-icon/ActionIcon.js +1 -1
- package/dist/components/action-icon/ActionIcon.js.map +1 -1
- package/dist/components/alert-dialog/AlertDialog.d.ts +645 -647
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +292 -292
- package/dist/components/alert-dialog/alert-context/AlertContext.d.ts +1 -1
- package/dist/components/alert-dialog/alert-context/AlertDialog.d.ts +1 -1
- package/dist/components/alert-dialog/alert-context/AlertDialogIcon.d.ts +1 -1
- package/dist/components/alert-dialog/alert-context/reducer.d.ts +2 -2
- package/dist/components/alert-dialog/alert-context/types.d.ts +3 -3
- package/dist/components/avatar/Avatar.d.ts +589 -961
- package/dist/components/badge/Badge.context.d.ts +2 -2
- package/dist/components/badge/Badge.d.ts +1824 -1826
- package/dist/components/badge/BadgeIcon.d.ts +585 -585
- package/dist/components/badge/BadgeText.d.ts +589 -589
- package/dist/components/banner/Banner.d.ts +0 -1
- package/dist/components/banner/BannerContainer.d.ts +588 -588
- package/dist/components/banner/BannerContext.d.ts +2 -2
- package/dist/components/banner/banner-regular/BannerRegular.d.ts +1387 -2908
- package/dist/components/banner/banner-regular/BannerRegularContainer.d.ts +1 -1
- package/dist/components/banner/banner-regular/BannerRegularContent.d.ts +584 -584
- package/dist/components/banner/banner-regular/BannerRegularDismiss.d.ts +588 -588
- package/dist/components/banner/banner-slim/BannerSlim.d.ts +1388 -2537
- package/dist/components/banner/banner-slim/BannerSlimContainer.d.ts +293 -293
- package/dist/components/banner/banner-slim/BannerSlimContent.d.ts +587 -587
- package/dist/components/banner/banner-slim/BannerSlimDismiss.d.ts +588 -588
- package/dist/components/box/Box.d.ts +292 -292
- package/dist/components/button/Button.d.ts +293 -293
- package/dist/components/calendar/Calendar.d.ts +2 -2
- package/dist/components/calendar/Calendar.js +1 -1
- package/dist/components/calendar/Calendar.js.map +1 -1
- package/dist/components/calendar/Day.d.ts +292 -292
- package/dist/components/carousel/Carousel.d.ts +935 -1304
- package/dist/components/carousel/CarouselPagination.d.ts +293 -294
- package/dist/components/carousel/CarouselSlide.d.ts +293 -293
- package/dist/components/carousel/CarouselSlider.d.ts +293 -294
- package/dist/components/checkbox/Checkbox.d.ts +292 -292
- package/dist/components/checkbox-group/CheckboxGroup.d.ts +895 -895
- package/dist/components/checkbox-group/CheckboxGroup.types.d.ts +1 -1
- package/dist/components/checkbox-group/CheckboxGroupAllItem.d.ts +1 -1
- package/dist/components/checkbox-group/CheckboxGroupItem.d.ts +1 -1
- package/dist/components/checkbox-group/CheckboxGroupSub.d.ts +1 -1
- package/dist/components/checkbox-group/context/CheckboxGroupChecked.context.d.ts +2 -2
- package/dist/components/checkbox-group/context/CheckboxGroupMounted.context.d.ts +1 -1
- package/dist/components/checkbox-tree/CheckboxTree.d.ts +1321 -1321
- package/dist/components/checkbox-tree/CheckboxTreeCollapsible.d.ts +1 -1
- package/dist/components/checkbox-tree/CheckboxTreeCollapsibleContent.d.ts +1 -1
- package/dist/components/checkbox-tree/CheckboxTreeCollapsibleTrigger.d.ts +1 -1
- package/dist/components/checkbox-tree/CheckboxTreeItem.d.ts +1 -1
- package/dist/components/checkbox-tree/CheckboxTreeItemContent.d.ts +1 -1
- package/dist/components/chip/Chip.d.ts +2058 -2058
- package/dist/components/chip/Chip.js +1 -1
- package/dist/components/chip/Chip.js.map +1 -1
- package/dist/components/chip/ChipGroup.d.ts +1 -1
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +883 -1254
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupRoot.d.ts +1 -1
- package/dist/components/chip-dismissible-group/index.d.ts +1 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +883 -1254
- package/dist/components/chip-toggle-group/ChipToggleGroupRoot.d.ts +1 -1
- package/dist/components/chip-toggle-group/index.d.ts +1 -1
- package/dist/components/combobox/Combobox.d.ts +1464 -1465
- package/dist/components/combobox/ComboboxInput.d.ts +294 -294
- package/dist/components/combobox/ComboboxList.d.ts +293 -293
- package/dist/components/combobox/ComboboxOption.d.ts +293 -293
- package/dist/components/combobox/ComboboxPopover.d.ts +293 -293
- package/dist/components/create-password-field/CreatePasswordField.d.ts +2 -2
- package/dist/components/data-table/DataTable.d.ts +3354 -3373
- package/dist/components/data-table/DataTable.types.d.ts +7 -7
- package/dist/components/data-table/DataTableBody.d.ts +1 -1
- package/dist/components/data-table/DataTableBulkActions.d.ts +4 -7
- package/dist/components/data-table/DataTableContext.d.ts +1 -1
- package/dist/components/data-table/DataTableDataCell.d.ts +1 -1
- package/dist/components/data-table/DataTableEmptyState.d.ts +1 -1
- package/dist/components/data-table/DataTableError.d.ts +1 -1
- package/dist/components/data-table/DataTableGlobalFilter.d.ts +1 -1
- package/dist/components/data-table/DataTableHead.d.ts +1 -1
- package/dist/components/data-table/DataTableHeaderCell.d.ts +1 -1
- package/dist/components/data-table/DataTableLoading.d.ts +295 -295
- package/dist/components/data-table/DataTableMetaData.d.ts +7 -7
- package/dist/components/data-table/DataTableRow.d.ts +1 -1
- package/dist/components/data-table/DataTableRowSelectionCheckbox.d.ts +2 -2
- package/dist/components/data-table/DataTableSelectAllRowsCheckbox.d.ts +1 -1
- package/dist/components/data-table/DataTableTable.d.ts +1 -1
- package/dist/components/data-table/DataTableTable.js +1 -1
- package/dist/components/data-table/DataTableTable.js.map +1 -1
- package/dist/components/data-table/drag-and-drop/DragAndDropTable.d.ts +1 -1
- package/dist/components/data-table/drag-and-drop/DragAndDropTableBody.d.ts +1 -1
- package/dist/components/data-table/drag-and-drop/DragAndDropTableRow.d.ts +1 -1
- package/dist/components/data-table/pagination/Pagination.d.ts +293 -293
- package/dist/components/date-field/DateField.d.ts +1 -1
- package/dist/components/date-input/DateInput.d.ts +1 -1
- package/dist/components/dialog/Dialog.d.ts +1465 -2211
- package/dist/components/dialog/DialogBackground.d.ts +584 -584
- package/dist/components/dialog/DialogClose.d.ts +292 -293
- package/dist/components/dialog/DialogContent.d.ts +294 -294
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/dialog/DialogContent.js.map +1 -1
- package/dist/components/dismissible/index.d.ts +0 -1
- package/dist/components/dismissible-group/DismissibleGroupItem.d.ts +1 -1
- package/dist/components/dismissible-group/index.d.ts +0 -1
- package/dist/components/divider/Divider.d.ts +292 -292
- package/dist/components/drawer/Drawer.context.d.ts +1 -1
- package/dist/components/drawer/Drawer.d.ts +1171 -1928
- package/dist/components/drawer/DrawerClose.d.ts +1 -1
- package/dist/components/drawer/DrawerContent.d.ts +293 -293
- package/dist/components/drawer/DrawerFooter.d.ts +292 -292
- package/dist/components/drawer/DrawerHeader.d.ts +292 -292
- package/dist/components/drawer/DrawerMain.d.ts +292 -292
- package/dist/components/drawer/DrawerOverlay.d.ts +292 -293
- package/dist/components/drawer/DrawerTrigger.d.ts +292 -293
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +1462 -1826
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +292 -293
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +292 -293
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.d.ts +1 -366
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +292 -293
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +292 -293
- package/dist/components/empty-state/EmptyState.context.d.ts +1 -1
- package/dist/components/empty-state/EmptyState.d.ts +2058 -2058
- package/dist/components/empty-state/EmptyStateBody.d.ts +589 -589
- 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 +587 -587
- package/dist/components/empty-state/EmptyStateTitle.d.ts +294 -294
- package/dist/components/empty-state/EmptyStateTitle.js +1 -1
- package/dist/components/empty-state/EmptyStateTitle.js.map +1 -1
- package/dist/components/field-wrapper/FieldDescription.d.ts +1 -1
- package/dist/components/field-wrapper/FieldWrapper.d.ts +2 -2
- package/dist/components/field-wrapper/InlineFieldWrapper.d.ts +1 -1
- package/dist/components/file-input/FileInput.d.ts +1 -1
- package/dist/components/flex/Flex.d.ts +295 -295
- package/dist/components/form/Form.d.ts +293 -293
- package/dist/components/form/validation.d.ts +5 -5
- package/dist/components/grid/Grid.d.ts +293 -293
- package/dist/components/heading/Heading.d.ts +294 -294
- package/dist/components/icon/Icon.d.ts +293 -293
- package/dist/components/image/Image.d.ts +293 -293
- package/dist/components/index.d.ts +1 -0
- package/dist/components/inline-message/InlineMessage.d.ts +588 -588
- package/dist/components/inline-message/InlineMessage.types.d.ts +1 -1
- package/dist/components/input/Input.d.ts +882 -882
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input/Input.js.map +1 -1
- package/dist/components/input-field/InputField.d.ts +1 -1
- package/dist/components/keyboard-shortcut/KeyboardShortcut.d.ts +760 -0
- package/dist/components/keyboard-shortcut/KeyboardShortcut.js +2 -0
- package/dist/components/keyboard-shortcut/KeyboardShortcut.js.map +1 -0
- package/dist/components/keyboard-shortcut/index.d.ts +1123 -0
- package/dist/components/keyboard-shortcut/index.js +2 -0
- package/dist/components/keyboard-shortcut/index.js.map +1 -0
- package/dist/components/label/Label.d.ts +293 -293
- package/dist/components/link/Link.d.ts +294 -294
- package/dist/components/list/List.d.ts +587 -587
- package/dist/components/loader/Loader.d.ts +1 -1
- package/dist/components/markdown-content/MarkdownContent.d.ts +2 -2
- package/dist/components/markdown-content/components/MarkdownCode.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownEmphasis.d.ts +293 -293
- package/dist/components/markdown-content/components/MarkdownHeading.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownImage.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownInlineCode.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownLink.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownList.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownListItem.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownParagraph.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownStrong.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownText.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownThematicBreak.d.ts +1 -1
- package/dist/components/navigation/NavigationMenu.d.ts +2783 -2075
- package/dist/components/navigation/NavigationMenu.styles.d.ts +1 -1
- package/dist/components/navigation/NavigationMenu.styles.js +1 -1
- package/dist/components/navigation/NavigationMenu.styles.js.map +1 -1
- package/dist/components/navigation/NavigationMenuDropdown.d.ts +1 -1
- package/dist/components/navigation/NavigationMenuDropdownContent.d.ts +293 -293
- package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +587 -587
- package/dist/components/navigation/NavigationMenuDropdownTrigger.d.ts +292 -292
- package/dist/components/navigation/NavigationMenuLink.d.ts +292 -292
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.d.ts +3308 -3310
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.d.ts +2 -2
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.js +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.styles.js.map +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordion.d.ts +2 -2
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionContent.d.ts +293 -293
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionTrigger.d.ts +293 -293
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalIcon.d.ts +585 -585
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItem.d.ts +293 -293
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItemContent.d.ts +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.d.ts +293 -293
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalList.d.ts +292 -293
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.d.ts +588 -588
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.js +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.js.map +1 -1
- package/dist/components/notification-badge/NotificationBadge.d.ts +1 -1
- package/dist/components/number-input/NumberInputStepper.d.ts +1 -1
- package/dist/components/pagination/Pagination.d.ts +1 -3
- package/dist/components/pagination/PaginationItems.d.ts +0 -1
- package/dist/components/pagination/PaginationNextButton.d.ts +587 -587
- package/dist/components/pagination/PaginationPopover.js +1 -1
- package/dist/components/pagination/PaginationPopover.js.map +1 -1
- package/dist/components/pagination/PaginationPreviousButton.d.ts +587 -587
- package/dist/components/pagination/types.d.ts +3 -4
- package/dist/components/password-field/PasswordField.d.ts +1 -1
- package/dist/components/password-input/PasswordInput.d.ts +1 -1
- package/dist/components/popover/Popover.d.ts +586 -586
- package/dist/components/popover/PopoverContent.d.ts +293 -293
- package/dist/components/progress-bar/ProgressBar.d.ts +293 -293
- package/dist/components/radio-button/RadioButton.d.ts +293 -293
- package/dist/components/radio-button/RadioButtonGroup.d.ts +292 -293
- package/dist/components/radio-button-field/RadioButtonField.d.ts +299 -299
- package/dist/components/radio-button-field/RadioField.d.ts +1 -1
- package/dist/components/radio-card/RadioCard.d.ts +293 -293
- package/dist/components/radio-card/RadioCardGroup.d.ts +1 -1
- package/dist/components/radio-card/RadioCardGroup.js.map +1 -1
- package/dist/components/search-field/SearchField.d.ts +1 -1
- package/dist/components/search-input/SearchInput.d.ts +1 -1
- package/dist/components/search-input/SearchInput.js +1 -1
- package/dist/components/search-input/SearchInput.js.map +1 -1
- package/dist/components/section-message/SectionMessage.d.ts +592 -2468
- package/dist/components/section-message/SectionMessageContext.d.ts +2 -2
- package/dist/components/section-message/SectionMessageIcon.d.ts +1 -1
- package/dist/components/section-message/SectionMessageTitle.js.map +1 -1
- package/dist/components/select/Select.d.ts +293 -293
- package/dist/components/select-field/SelectField.d.ts +1 -1
- package/dist/components/side-bar/SideBar.d.ts +2341 -2341
- package/dist/components/side-bar/SideBarComponents.d.ts +2048 -2049
- package/dist/components/side-bar/SideBarContext.d.ts +2 -2
- package/dist/components/slider/Slider.d.ts +294 -294
- package/dist/components/slider/Slider.js +1 -1
- package/dist/components/slider/Slider.js.map +1 -1
- package/dist/components/slider/SliderSteps.d.ts +2 -2
- package/dist/components/slider/SliderValue.d.ts +2 -2
- package/dist/components/slider-field/SliderField.d.ts +1 -1
- package/dist/components/sortable/Handle.d.ts +588 -588
- package/dist/components/sortable/SortableHandle.d.ts +1 -1
- package/dist/components/sortable/SortableItem.d.ts +1 -1
- package/dist/components/sortable/SortableRoot.d.ts +1 -1
- package/dist/components/sortable/index.d.ts +0 -1
- package/dist/components/spacer/Spacer.d.ts +292 -292
- package/dist/components/stack-content/StackContent.d.ts +293 -293
- package/dist/components/stepper/Stepper.d.ts +2 -786
- package/dist/components/stepper/StepperStepBullet.d.ts +587 -587
- package/dist/components/stepper/StepperStepContainer.d.ts +587 -587
- package/dist/components/stepper/StepperStepLabel.d.ts +587 -588
- package/dist/components/stepper/types.d.ts +3 -3
- package/dist/components/switch/Switch.d.ts +293 -293
- package/dist/components/table/Table.d.ts +2342 -2344
- package/dist/components/table/Table.js +1 -1
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/TableBody.d.ts +293 -293
- package/dist/components/table/TableCell.d.ts +292 -292
- package/dist/components/table/TableCell.js +1 -1
- package/dist/components/table/TableCell.js.map +1 -1
- package/dist/components/table/TableFooter.d.ts +292 -292
- package/dist/components/table/TableFooterCell.d.ts +292 -292
- package/dist/components/table/TableHeader.d.ts +293 -293
- package/dist/components/table/TableHeaderCell.d.ts +292 -292
- package/dist/components/table/TableHeaderCell.js +1 -1
- package/dist/components/table/TableHeaderCell.js.map +1 -1
- package/dist/components/table/TableRow.d.ts +292 -292
- package/dist/components/table/TableStickyColumnsContainer.d.ts +3 -5
- package/dist/components/table/TableStickyColumnsContainer.js +1 -1
- package/dist/components/table/TableStickyColumnsContainer.js.map +1 -1
- package/dist/components/table/useStickyColumnsCss.d.ts +1 -3
- package/dist/components/table/useStickyColumnsCss.js +1 -1
- package/dist/components/table/useStickyColumnsCss.js.map +1 -1
- package/dist/components/tabs/Tabs.d.ts +1291 -1295
- package/dist/components/tabs/TabsContent.d.ts +292 -293
- package/dist/components/tabs/TabsTrigger.d.ts +292 -292
- package/dist/components/tabs/TabsTrigger.js +1 -1
- package/dist/components/tabs/TabsTrigger.js.map +1 -1
- package/dist/components/tabs/TabsTriggerList.d.ts +294 -659
- package/dist/components/text/Text.d.ts +295 -295
- package/dist/components/text/Text.js +1 -1
- package/dist/components/text/Text.js.map +1 -1
- package/dist/components/textarea/Textarea.d.ts +293 -293
- package/dist/components/textarea-field/TextareaField.d.ts +1 -1
- package/dist/components/tile/Tile.d.ts +293 -293
- package/dist/components/tile/TileGroup.d.ts +295 -295
- package/dist/components/tile-interactive/TileInteractive.d.ts +586 -586
- package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +879 -879
- package/dist/components/tile-toggle-group/TileToggleGroupRoot.d.ts +1 -1
- package/dist/components/tile-toggle-group/index.d.ts +1 -1
- package/dist/components/toast/Toast.d.ts +589 -961
- package/dist/components/toast/ToastProvider.d.ts +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +584 -584
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +584 -585
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +294 -294
- package/dist/components/toggle-group/index.d.ts +1760 -1761
- package/dist/components/tooltip/Tooltip.d.ts +585 -585
- package/dist/components/tooltip/TooltipContent.d.ts +293 -293
- package/dist/components/top-bar/TopBar.d.ts +1839 -1477
- 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 +1 -1
- package/dist/components/top-bar/TopBarBrand.d.ts +881 -890
- package/dist/components/top-bar/TopBarBrand.js +1 -1
- package/dist/components/top-bar/TopBarBrand.js.map +1 -1
- package/dist/components/tree/Tree.d.ts +3705 -3707
- package/dist/components/tree/TreeCollapsible.d.ts +293 -293
- package/dist/components/tree/TreeCollapsibleContent.d.ts +293 -293
- package/dist/components/tree/TreeCollapsibleTrigger.d.ts +1 -1
- package/dist/components/tree/TreeIcon.d.ts +585 -585
- package/dist/components/tree/TreeItem.d.ts +1 -1
- package/dist/components/tree/TreeItemContent.d.ts +296 -296
- package/dist/components/tree/TreeList.d.ts +1 -1
- package/dist/components/tree/TreeListItem.d.ts +296 -296
- package/dist/components/tree/TreeText.d.ts +1 -1
- package/dist/components/video/Video.d.ts +293 -293
- package/dist/docgen.json +1 -1
- package/dist/experiments/color-scheme/ColorScheme.d.ts +295 -295
- package/dist/experiments/color-scheme/stitches.colorscheme.config.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/stitches.d.ts +2446 -2444
- package/dist/types/navigatorActions.types.d.ts +1 -1
- package/dist/types/polymorphicComponentProp.types.d.ts +5 -6
- package/dist/utilities/create-theme-variants/createThemeVariants.d.ts +1 -297
- package/dist/utilities/css-wrapper/CSSWrapper.d.ts +1 -1
- package/dist/utilities/hooks/useIsMountedRef.d.ts +0 -1
- package/dist/utilities/hooks/useResizeObserver.d.ts +2 -2
- package/dist/utilities/hooks/useScrollPosition.d.ts +2 -2
- package/dist/utilities/hooks/useSize.d.ts +2 -2
- package/dist/utilities/hooks/useWindowScrollPosition.d.ts +2 -2
- package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.d.ts +584 -584
- package/dist/utilities/optional-tooltip-wrapper/OptionalTooltipWrapper.d.ts +1 -1
- package/dist/utilities/optional-visually-hidden-wrapper/OptionalVisuallyHiddenWrapper.d.ts +1 -1
- package/dist/utilities/radix-overrides/toggle-group/ToggleGroupRoot.d.ts +2 -2
- package/dist/utilities/radix-overrides/toggle-group/index.d.ts +1 -2
- package/dist/utilities/style/capsize.d.ts +1 -1
- package/dist/utilities/style/encode-background-icon.d.ts +1 -1
- package/dist/utilities/style/focus-visible-style-block.d.ts +4 -3
- package/dist/utilities/style/focus-visible-style-block.js +1 -1
- package/dist/utilities/style/focus-visible-style-block.js.map +1 -1
- package/dist/utilities/style/keyframe-animations.d.ts +2 -2
- package/dist/utilities/types.d.ts +1 -1
- package/dist/utilities/uri/index.d.ts +2 -2
- package/package.json +9 -9
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import u from"invariant";import*as n from"react";import{styled as w}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";import{disabledStyle as k}from"../../utilities/style/disabledStyle.js";import{getExternalAnchorProps as D}from"../../utilities/uri/index.js";import{Icon as m}from"../icon/Icon.js";import{ActionIconSizeMap as
|
|
1
|
+
import u from"invariant";import*as n from"react";import{styled as w}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import"../../utilities/style/keyframe-animations.js";import{disabledStyle as k}from"../../utilities/style/disabledStyle.js";import{getExternalAnchorProps as D}from"../../utilities/uri/index.js";import{Icon as m}from"../icon/Icon.js";import{ActionIconSizeMap as v}from"./ActionIcon.constants.js";import{OptionalTooltipWrapper as z}from"../../utilities/optional-tooltip-wrapper/OptionalTooltipWrapper.js";const o=(r,a,i,e)=>({theme:r,appearance:"simple",css:{bg:"transparent",color:a,"&:not(:disabled):hover, &:not(:disabled):focus":{color:i},"&:not(:disabled):active":{color:e}}}),t=(r,a,i,e)=>({theme:r,appearance:"solid",css:{bg:a,color:"white","&:not(:disabled):hover, &:not(:disabled):focus":{bg:i,color:"white"},"&:not(:disabled):active":{bg:e}}}),p=(r,a,i,e)=>({theme:r,appearance:"outline",css:{border:"1px solid",borderColor:"currentColor",color:a,"&:not(:disabled):hover, &:not(:disabled):focus":{color:i},"&:not(:disabled):active":{color:e}}}),M=w("button",{alignItems:"center",appearance:"none",bg:"white",border:"unset",borderRadius:"$0",boxSizing:"border-box",cursor:"pointer",display:"flex",flexShrink:0,justifyContent:"center",p:"unset",transition:"all 100ms ease-out","&[disabled]":k,variants:{theme:{neutral:{},primary:{},success:{},warning:{},danger:{}},appearance:{simple:{},outline:{},solid:{}},size:{xs:{size:"$2"},sm:{size:"$3"},md:{size:"$4"},lg:{size:"$5"}},isRounded:{true:{borderRadius:"$round"}}},compoundVariants:[o("neutral","$grey700","$primary900","$primary1000"),o("primary","$primary800","$primary900","$primary1000"),o("primaryDark","$primary1000","$primary1100","$primary1200"),o("success","$success","$successMid","$successDark"),o("warning","$warning","$warningMid","$warningDark"),o("danger","$danger","$dangerMid","$dangerDark"),t("primary","$primary800","$primary900","$primary1000"),t("primaryDark","$primary1000","$primary1100","$primary1200"),t("success","$success","$successMid","$successDark"),t("warning","$warning","$warningMid","$warningDark"),t("danger","$danger","$dangerMid","$dangerDark"),p("primary","$primary800","$primary900","$primary1000"),p("primaryDark","$primary1000","$primary1100","$primary1200"),p("success","$success","$successMid","$successDark"),p("warning","$warning","$warningMid","$warningDark"),p("danger","$danger","$dangerMid","$dangerDark")]}),d=n.forwardRef(({children:r,theme:a="primary",appearance:i="simple",size:e="sm",label:$,href:l,disabled:c,hasTooltip:g=!0,tooltipSide:b,...h},f)=>{const y=`A single ${m.displayName} component is permitted as a child of ${d.displayName}`;return u(n.Children.count(r)===1,y),n.createElement(z,{hasTooltip:g,label:$,tooltipSide:b},n.createElement(M,{...l?{as:"a",href:c?null:l,onClick:void 0,"aria-disabled":!!c}:{type:"button"},...D(l),...h,"aria-label":$,theme:a,appearance:i,size:e,ref:f,disabled:c},n.Children.map(r,s=>{if(!n.isValidElement(s))throw new Error(y);return u(s.type===m,`Children of type ${s==null?void 0:s.type} aren't permitted. Only an ${m.displayName} component is allowed in ${d.displayName}`),n.cloneElement(s,{size:v[e],css:{...s.props.css?s.props.css:{}}})})))});d.displayName="ActionIcon";export{d as ActionIcon};
|
|
2
2
|
//# sourceMappingURL=ActionIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionIcon.js","sources":["../../../src/components/action-icon/ActionIcon.tsx"],"sourcesContent":["import type { VariantProps } from '@atom-learning/stitches-react'\nimport invariant from 'invariant'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport { NavigatorActions } from '~/types'\nimport { disabledStyle, Override } from '~/utilities'\nimport type { TOptionalTooltipWrapperProps } from '~/utilities/optional-tooltip-wrapper'\nimport { OptionalTooltipWrapper } from '~/utilities/optional-tooltip-wrapper'\nimport { getExternalAnchorProps } from '~/utilities/uri'\n\nimport { Icon } from '../icon/Icon'\nimport { ActionIconSizeMap } from './ActionIcon.constants'\n\nconst getSimpleVariant = (\n theme: string,\n base: string,\n interact: string,\n active: string\n) => ({\n theme,\n appearance: 'simple',\n css: {\n bg: 'transparent',\n color: base,\n '&:not(:disabled):hover, &:not(:disabled):focus': { color: interact },\n '&:not(:disabled):active': { color: active }\n }\n})\n\nconst getSolidVariant = (\n theme: string,\n base: string,\n interact: string,\n active: string\n) => ({\n theme,\n appearance: 'solid',\n css: {\n bg: base,\n color: 'white',\n '&:not(:disabled):hover, &:not(:disabled):focus': {\n bg: interact,\n color: 'white'\n },\n '&:not(:disabled):active': { bg: active }\n }\n})\n\nconst getOutlineVariant = (\n theme: string,\n base: string,\n interact: string,\n active: string\n) => ({\n theme,\n appearance: 'outline',\n css: {\n border: '1px solid',\n borderColor: 'currentColor',\n color: base,\n '&:not(:disabled):hover, &:not(:disabled):focus': { color: interact },\n '&:not(:disabled):active': { color: active }\n }\n})\n\nconst StyledButton = styled('button', {\n alignItems: 'center',\n appearance: 'none',\n bg: 'white',\n border: 'unset',\n borderRadius: '$0',\n boxSizing: 'border-box',\n cursor: 'pointer',\n display: 'flex',\n flexShrink: 0,\n justifyContent: 'center',\n p: 'unset',\n transition: 'all 100ms ease-out',\n '&[disabled]': disabledStyle,\n variants: {\n theme: {\n neutral: {},\n primary: {},\n success: {},\n warning: {},\n danger: {}\n },\n appearance: {\n simple: {},\n outline: {},\n solid: {}\n },\n size: {\n xs: { size: '$2' },\n sm: { size: '$3' },\n md: { size: '$4' },\n lg: { size: '$5' }\n },\n isRounded: {\n true: {\n borderRadius: '$round'\n }\n }\n },\n\n // prettier-ignore\n compoundVariants: [\n getSimpleVariant('neutral', '$grey700', '$primary900', '$primary1000'),\n getSimpleVariant('primary', '$primary800', '$primary900', '$primary1000'),\n getSimpleVariant('primaryDark', '$primary1000', '$primary1100', '$primary1200'),\n getSimpleVariant('success', '$success', '$successMid', '$successDark'),\n getSimpleVariant('warning', '$warning', '$warningMid', '$warningDark'),\n getSimpleVariant('danger', '$danger', '$dangerMid', '$dangerDark'),\n\n getSolidVariant('primary', '$primary800', '$primary900', '$primary1000'),\n getSolidVariant('primaryDark', '$primary1000', '$primary1100', '$primary1200'),\n getSolidVariant('success', '$success', '$successMid', '$successDark'),\n getSolidVariant('warning', '$warning', '$warningMid', '$warningDark'),\n getSolidVariant('danger', '$danger', '$dangerMid', '$dangerDark'),\n\n getOutlineVariant('primary', '$primary800', '$primary900', '$primary1000'),\n getOutlineVariant('primaryDark', '$primary1000', '$primary1100', '$primary1200'),\n getOutlineVariant('success', '$success', '$successMid', '$successDark'),\n getOutlineVariant('warning', '$warning', '$warningMid', '$warningDark'),\n getOutlineVariant('danger', '$danger', '$dangerMid', '$dangerDark')\n ]\n})\n\ntype ActionIconProps = Override<\n React.ComponentProps<typeof StyledButton>,\n VariantProps<typeof StyledButton> & {\n as?: string | React.ReactNode\n children: React.ReactNode\n label: string\n } & Omit<TOptionalTooltipWrapperProps, 'label'> &\n NavigatorActions\n>\n\nexport const ActionIcon: React.ForwardRefExoticComponent<ActionIconProps> =\n React.forwardRef(\n (\n {\n children,\n theme = 'primary',\n appearance = 'simple',\n size = 'sm',\n label,\n href,\n disabled,\n hasTooltip = true,\n tooltipSide,\n ...remainingProps\n },\n ref\n ) => {\n const INVALID_CHILDREN_MESSAGE = `A single ${Icon.displayName} component is permitted as a child of ${ActionIcon.displayName}`\n\n invariant(React.Children.count(children) === 1, INVALID_CHILDREN_MESSAGE)\n\n const optionalLinkProps = href\n ? ({\n as: 'a',\n href: disabled ? null : href,\n onClick: undefined,\n 'aria-disabled': !!disabled\n } as const)\n : ({ type: 'button' } as const)\n\n return (\n <OptionalTooltipWrapper\n hasTooltip={hasTooltip}\n label={label}\n tooltipSide={tooltipSide}\n >\n <StyledButton\n {...optionalLinkProps}\n {...getExternalAnchorProps(href)}\n {...remainingProps}\n aria-label={label}\n theme={theme}\n appearance={appearance}\n size={size}\n ref={ref}\n disabled={disabled}\n >\n {React.Children.map(children, (child) => {\n // TS needs this check for any following code to access child.type\n // even with optional chaining\n if (!React.isValidElement(child)) {\n throw new Error(INVALID_CHILDREN_MESSAGE)\n }\n\n invariant(\n child.type === Icon,\n `Children of type ${child?.type} aren't permitted. Only an ${Icon.displayName} component is allowed in ${ActionIcon.displayName}`\n )\n\n return React.cloneElement(child
|
|
1
|
+
{"version":3,"file":"ActionIcon.js","sources":["../../../src/components/action-icon/ActionIcon.tsx"],"sourcesContent":["import type { VariantProps } from '@atom-learning/stitches-react'\nimport invariant from 'invariant'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\nimport { NavigatorActions } from '~/types'\nimport { disabledStyle, Override } from '~/utilities'\nimport type { TOptionalTooltipWrapperProps } from '~/utilities/optional-tooltip-wrapper'\nimport { OptionalTooltipWrapper } from '~/utilities/optional-tooltip-wrapper'\nimport { getExternalAnchorProps } from '~/utilities/uri'\n\nimport { Icon } from '../icon/Icon'\nimport { ActionIconSizeMap } from './ActionIcon.constants'\n\nconst getSimpleVariant = (\n theme: string,\n base: string,\n interact: string,\n active: string\n) => ({\n theme,\n appearance: 'simple',\n css: {\n bg: 'transparent',\n color: base,\n '&:not(:disabled):hover, &:not(:disabled):focus': { color: interact },\n '&:not(:disabled):active': { color: active }\n }\n})\n\nconst getSolidVariant = (\n theme: string,\n base: string,\n interact: string,\n active: string\n) => ({\n theme,\n appearance: 'solid',\n css: {\n bg: base,\n color: 'white',\n '&:not(:disabled):hover, &:not(:disabled):focus': {\n bg: interact,\n color: 'white'\n },\n '&:not(:disabled):active': { bg: active }\n }\n})\n\nconst getOutlineVariant = (\n theme: string,\n base: string,\n interact: string,\n active: string\n) => ({\n theme,\n appearance: 'outline',\n css: {\n border: '1px solid',\n borderColor: 'currentColor',\n color: base,\n '&:not(:disabled):hover, &:not(:disabled):focus': { color: interact },\n '&:not(:disabled):active': { color: active }\n }\n})\n\nconst StyledButton = styled('button', {\n alignItems: 'center',\n appearance: 'none',\n bg: 'white',\n border: 'unset',\n borderRadius: '$0',\n boxSizing: 'border-box',\n cursor: 'pointer',\n display: 'flex',\n flexShrink: 0,\n justifyContent: 'center',\n p: 'unset',\n transition: 'all 100ms ease-out',\n '&[disabled]': disabledStyle,\n variants: {\n theme: {\n neutral: {},\n primary: {},\n success: {},\n warning: {},\n danger: {}\n },\n appearance: {\n simple: {},\n outline: {},\n solid: {}\n },\n size: {\n xs: { size: '$2' },\n sm: { size: '$3' },\n md: { size: '$4' },\n lg: { size: '$5' }\n },\n isRounded: {\n true: {\n borderRadius: '$round'\n }\n }\n },\n\n // prettier-ignore\n compoundVariants: [\n getSimpleVariant('neutral', '$grey700', '$primary900', '$primary1000'),\n getSimpleVariant('primary', '$primary800', '$primary900', '$primary1000'),\n getSimpleVariant('primaryDark', '$primary1000', '$primary1100', '$primary1200'),\n getSimpleVariant('success', '$success', '$successMid', '$successDark'),\n getSimpleVariant('warning', '$warning', '$warningMid', '$warningDark'),\n getSimpleVariant('danger', '$danger', '$dangerMid', '$dangerDark'),\n\n getSolidVariant('primary', '$primary800', '$primary900', '$primary1000'),\n getSolidVariant('primaryDark', '$primary1000', '$primary1100', '$primary1200'),\n getSolidVariant('success', '$success', '$successMid', '$successDark'),\n getSolidVariant('warning', '$warning', '$warningMid', '$warningDark'),\n getSolidVariant('danger', '$danger', '$dangerMid', '$dangerDark'),\n\n getOutlineVariant('primary', '$primary800', '$primary900', '$primary1000'),\n getOutlineVariant('primaryDark', '$primary1000', '$primary1100', '$primary1200'),\n getOutlineVariant('success', '$success', '$successMid', '$successDark'),\n getOutlineVariant('warning', '$warning', '$warningMid', '$warningDark'),\n getOutlineVariant('danger', '$danger', '$dangerMid', '$dangerDark')\n ]\n})\n\ntype ActionIconProps = Override<\n React.ComponentProps<typeof StyledButton>,\n VariantProps<typeof StyledButton> & {\n as?: string | React.ReactNode\n children: React.ReactNode\n label: string\n } & Omit<TOptionalTooltipWrapperProps, 'label'> &\n NavigatorActions\n>\n\nexport const ActionIcon: React.ForwardRefExoticComponent<ActionIconProps> =\n React.forwardRef(\n (\n {\n children,\n theme = 'primary',\n appearance = 'simple',\n size = 'sm',\n label,\n href,\n disabled,\n hasTooltip = true,\n tooltipSide,\n ...remainingProps\n },\n ref\n ) => {\n const INVALID_CHILDREN_MESSAGE = `A single ${Icon.displayName} component is permitted as a child of ${ActionIcon.displayName}`\n\n invariant(React.Children.count(children) === 1, INVALID_CHILDREN_MESSAGE)\n\n const optionalLinkProps = href\n ? ({\n as: 'a',\n href: disabled ? null : href,\n onClick: undefined,\n 'aria-disabled': !!disabled\n } as const)\n : ({ type: 'button' } as const)\n\n return (\n <OptionalTooltipWrapper\n hasTooltip={hasTooltip}\n label={label}\n tooltipSide={tooltipSide}\n >\n <StyledButton\n {...optionalLinkProps}\n {...getExternalAnchorProps(href)}\n {...remainingProps}\n aria-label={label}\n theme={theme}\n appearance={appearance}\n size={size}\n ref={ref}\n disabled={disabled}\n >\n {React.Children.map(children, (child) => {\n // TS needs this check for any following code to access child.type\n // even with optional chaining\n if (!React.isValidElement(child)) {\n throw new Error(INVALID_CHILDREN_MESSAGE)\n }\n\n invariant(\n child.type === Icon,\n `Children of type ${child?.type} aren't permitted. Only an ${Icon.displayName} component is allowed in ${ActionIcon.displayName}`\n )\n\n return React.cloneElement(\n child as React.ReactElement<React.ComponentProps<typeof Icon>>,\n {\n size: ActionIconSizeMap[size as string],\n css: { ...(child.props.css ? child.props.css : {}) }\n }\n )\n })}\n </StyledButton>\n </OptionalTooltipWrapper>\n )\n }\n )\n\nActionIcon.displayName = 'ActionIcon'\n"],"names":["getSimpleVariant","theme","base","interact","active","getSolidVariant","getOutlineVariant","StyledButton","styled","disabledStyle","ActionIcon","React","children","appearance","size","label","href","disabled","hasTooltip","tooltipSide","remainingProps","ref","INVALID_CHILDREN_MESSAGE","Icon","invariant","OptionalTooltipWrapper","getExternalAnchorProps","child","ActionIconSizeMap"],"mappings":"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"}
|