@atom-learning/components 4.0.0-beta.1 → 4.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/Accordion.d.ts +52 -55
- package/dist/components/accordion/AccordionContent.d.ts +53 -56
- package/dist/components/accordion/AccordionItem.d.ts +52 -55
- package/dist/components/accordion/AccordionTrigger.d.ts +105 -111
- 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 +53 -56
- 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 +105 -111
- package/dist/components/alert-dialog/AlertDialogContent.d.ts +53 -56
- 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 +2 -2
- package/dist/components/avatar/Avatar.d.ts +164 -173
- package/dist/components/avatar/Avatar.js +1 -1
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/avatar/AvatarIcon.d.ts +2 -2
- package/dist/components/avatar/AvatarImage.d.ts +2 -2
- package/dist/components/avatar/AvatarInitial.d.ts +2 -2
- package/dist/components/avatar/AvatarInitial.js +1 -1
- package/dist/components/avatar/AvatarInitial.js.map +1 -1
- package/dist/components/avatar/AvatarPlaceholder.d.ts +2 -2
- package/dist/components/badge/Badge.context.d.ts +1 -1
- package/dist/components/badge/Badge.d.ts +316 -332
- package/dist/components/badge/BadgeIcon.d.ts +105 -111
- package/dist/components/badge/BadgeText.d.ts +106 -110
- package/dist/components/badge/stitches.badge.colorscheme.config.d.ts +27 -16
- package/dist/components/badge/stitches.badge.colorscheme.config.js +1 -1
- package/dist/components/badge/stitches.badge.colorscheme.config.js.map +1 -1
- package/dist/components/banner/Banner.d.ts +2 -2
- package/dist/components/banner/BannerContainer.d.ts +103 -109
- package/dist/components/banner/BannerContext.d.ts +1 -1
- package/dist/components/banner/banner-regular/BannerRegular.d.ts +487 -505
- package/dist/components/banner/banner-regular/BannerRegularActions.d.ts +1 -1
- package/dist/components/banner/banner-regular/BannerRegularButton.d.ts +1 -1
- package/dist/components/banner/banner-regular/BannerRegularContainer.d.ts +1 -1
- package/dist/components/banner/banner-regular/BannerRegularContent.d.ts +104 -110
- package/dist/components/banner/banner-regular/BannerRegularDismiss.d.ts +106 -112
- package/dist/components/banner/banner-regular/BannerRegularHeading.d.ts +1 -1
- package/dist/components/banner/banner-regular/BannerRegularImage.d.ts +1 -1
- package/dist/components/banner/banner-regular/BannerRegularText.d.ts +1 -1
- package/dist/components/banner/banner-slim/BannerSlim.d.ts +432 -447
- package/dist/components/banner/banner-slim/BannerSlimActions.d.ts +1 -1
- package/dist/components/banner/banner-slim/BannerSlimButton.d.ts +1 -1
- package/dist/components/banner/banner-slim/BannerSlimContainer.d.ts +52 -55
- package/dist/components/banner/banner-slim/BannerSlimContent.d.ts +104 -110
- package/dist/components/banner/banner-slim/BannerSlimDismiss.d.ts +105 -111
- package/dist/components/banner/banner-slim/BannerSlimImage.d.ts +1 -1
- package/dist/components/banner/banner-slim/BannerSlimText.d.ts +1 -1
- package/dist/components/banner/banner-slim/BannerSlimText.js +1 -1
- package/dist/components/banner/banner-slim/BannerSlimText.js.map +1 -1
- package/dist/components/box/Box.d.ts +52 -55
- package/dist/components/button/Button.d.ts +53 -56
- package/dist/components/button/Button.js +1 -1
- package/dist/components/button/Button.js.map +1 -1
- package/dist/components/calendar/Calendar.d.ts +1 -1
- package/dist/components/calendar/Calendar.js +1 -1
- package/dist/components/calendar/Calendar.js.map +1 -1
- package/dist/components/calendar/Day.d.ts +52 -55
- package/dist/components/calendar/Day.js +1 -1
- package/dist/components/calendar/Day.js.map +1 -1
- package/dist/components/carousel/Carousel.d.ts +213 -225
- package/dist/components/carousel/CarouselArrows.d.ts +3 -3
- package/dist/components/carousel/CarouselArrows.js +1 -1
- package/dist/components/carousel/CarouselArrows.js.map +1 -1
- package/dist/components/carousel/CarouselPagination.d.ts +52 -55
- package/dist/components/carousel/CarouselPagination.js +1 -1
- package/dist/components/carousel/CarouselPagination.js.map +1 -1
- package/dist/components/carousel/CarouselSlide.d.ts +53 -56
- package/dist/components/carousel/CarouselSlider.d.ts +52 -55
- package/dist/components/checkbox/Checkbox.d.ts +52 -55
- package/dist/components/checkbox/Checkbox.js +1 -1
- package/dist/components/checkbox/Checkbox.js.map +1 -1
- package/dist/components/checkbox-field/CheckboxField.d.ts +1 -1
- package/dist/components/checkbox-group/CheckboxGroup.d.ts +211 -216
- package/dist/components/checkbox-group/context/CheckboxGroupChecked.context.d.ts +1 -1
- package/dist/components/checkbox-group/context/CheckboxGroupMounted.context.d.ts +1 -1
- package/dist/components/checkbox-tree/CheckboxTree.d.ts +422 -416
- package/dist/components/chip/Chip.d.ts +369 -390
- package/dist/components/chip/Chip.js +1 -1
- package/dist/components/chip/Chip.js.map +1 -1
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.d.ts +212 -224
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.js +1 -1
- package/dist/components/chip-dismissible-group/ChipDismissibleGroupItem.js.map +1 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +212 -224
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.js +1 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.js.map +1 -1
- package/dist/components/combobox/Combobox.d.ts +261 -276
- package/dist/components/combobox/ComboboxInput.d.ts +52 -55
- package/dist/components/combobox/ComboboxInput.js +1 -1
- package/dist/components/combobox/ComboboxInput.js.map +1 -1
- package/dist/components/combobox/ComboboxList.d.ts +52 -55
- package/dist/components/combobox/ComboboxOption.d.ts +52 -55
- package/dist/components/combobox/ComboboxOption.js +1 -1
- package/dist/components/combobox/ComboboxOption.js.map +1 -1
- package/dist/components/combobox/ComboboxPopover.d.ts +52 -55
- package/dist/components/combobox/ComboboxPopover.js +1 -1
- package/dist/components/combobox/ComboboxPopover.js.map +1 -1
- package/dist/components/create-password-field/CreatePasswordField.d.ts +1 -1
- package/dist/components/data-table/DataTable.d.ts +650 -683
- package/dist/components/data-table/DataTableBody.d.ts +1 -1
- package/dist/components/data-table/DataTableBulkActions.d.ts +3 -3
- package/dist/components/data-table/DataTableDataCell.d.ts +2 -2
- package/dist/components/data-table/DataTableEmptyState.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 +54 -57
- package/dist/components/data-table/DataTableMetaData.d.ts +4 -9
- package/dist/components/data-table/DataTableMetaData.js +1 -1
- package/dist/components/data-table/DataTableMetaData.js.map +1 -1
- package/dist/components/data-table/DataTableRow.d.ts +1 -1
- package/dist/components/data-table/DataTableSelectAllRowsCheckbox.d.ts +2 -2
- 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 +2 -2
- 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 +53 -56
- package/dist/components/date-field/DateField.d.ts +2 -2
- package/dist/components/dialog/Dialog.d.ts +368 -389
- package/dist/components/dialog/DialogBackground.d.ts +103 -109
- package/dist/components/dialog/DialogClose.d.ts +52 -55
- package/dist/components/dialog/DialogContent.d.ts +53 -56
- package/dist/components/dialog/DialogContent.js +1 -1
- package/dist/components/dialog/DialogContent.js.map +1 -1
- package/dist/components/dialog/DialogFooter.d.ts +1 -1
- package/dist/components/dialog/DialogHeading.d.ts +1 -1
- package/dist/components/dialog/DialogHeading.js +1 -1
- package/dist/components/dialog/DialogHeading.js.map +1 -1
- package/dist/components/dismissible/DismissibleRoot.d.ts +2 -2
- package/dist/components/dismissible/DismissibleTrigger.d.ts +1 -1
- package/dist/components/dismissible/index.d.ts +2 -2
- package/dist/components/dismissible-group/DismissibleGroupItem.d.ts +1 -1
- package/dist/components/dismissible-group/DismissibleGroupRoot.d.ts +2 -2
- package/dist/components/dismissible-group/index.d.ts +3 -3
- package/dist/components/divider/Divider.d.ts +52 -55
- package/dist/components/divider/Divider.js +1 -1
- package/dist/components/divider/Divider.js.map +1 -1
- package/dist/components/drawer/Drawer.d.ts +316 -334
- package/dist/components/drawer/DrawerClose.d.ts +1 -1
- package/dist/components/drawer/DrawerContent.d.ts +53 -56
- package/dist/components/drawer/DrawerFooter.d.ts +52 -55
- package/dist/components/drawer/DrawerHeader.d.ts +52 -55
- package/dist/components/drawer/DrawerMain.d.ts +52 -55
- package/dist/components/drawer/DrawerOverlay.d.ts +52 -55
- package/dist/components/drawer/DrawerTrigger.d.ts +52 -55
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +313 -331
- package/dist/components/dropdown-menu/DropdownMenuContent.d.ts +52 -55
- package/dist/components/dropdown-menu/DropdownMenuItem.d.ts +480 -483
- package/dist/components/dropdown-menu/DropdownMenuItem.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuItem.js.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.d.ts +53 -56
- package/dist/components/dropdown-menu/DropdownMenuSeparator.d.ts +52 -55
- package/dist/components/dropdown-menu/DropdownMenuSeparator.js +1 -1
- package/dist/components/dropdown-menu/DropdownMenuSeparator.js.map +1 -1
- package/dist/components/dropdown-menu/DropdownMenuTrigger.d.ts +52 -55
- package/dist/components/empty-state/EmptyState.context.d.ts +1 -1
- package/dist/components/empty-state/EmptyState.d.ts +373 -392
- package/dist/components/empty-state/EmptyStateBody.d.ts +107 -111
- 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 +108 -114
- package/dist/components/empty-state/EmptyStateTitle.d.ts +53 -56
- 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/FieldDescription.js +1 -1
- package/dist/components/field-wrapper/FieldDescription.js.map +1 -1
- package/dist/components/field-wrapper/FieldWrapper.d.ts +1 -1
- 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 +52 -55
- package/dist/components/form/Form.d.ts +53 -56
- package/dist/components/grid/Grid.d.ts +53 -56
- package/dist/components/heading/Heading.d.ts +52 -55
- package/dist/components/heading/Heading.js +1 -1
- package/dist/components/heading/Heading.js.map +1 -1
- package/dist/components/icon/Icon.d.ts +52 -55
- package/dist/components/image/Image.d.ts +53 -56
- package/dist/components/index.d.ts +1 -0
- package/dist/components/inline-message/InlineMessage.config.js +1 -1
- package/dist/components/inline-message/InlineMessage.config.js.map +1 -1
- package/dist/components/inline-message/InlineMessage.d.ts +104 -110
- package/dist/components/input/Input.d.ts +155 -164
- 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 +2 -2
- 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 +1124 -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 +53 -56
- package/dist/components/label/Label.js +1 -1
- package/dist/components/label/Label.js.map +1 -1
- package/dist/components/link/Link.d.ts +52 -55
- package/dist/components/list/List.d.ts +104 -110
- package/dist/components/loader/Loader.d.ts +2 -2
- package/dist/components/markdown-content/MarkdownContent.d.ts +2 -2
- package/dist/components/markdown-content/components/MarkdownCode.d.ts +3 -3
- package/dist/components/markdown-content/components/MarkdownCode.js +1 -1
- package/dist/components/markdown-content/components/MarkdownCode.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownEmphasis.d.ts +54 -57
- package/dist/components/markdown-content/components/MarkdownEmphasis.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownHeading.d.ts +2 -2
- package/dist/components/markdown-content/components/MarkdownHeading.js +1 -1
- package/dist/components/markdown-content/components/MarkdownHeading.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownImage.d.ts +3 -3
- package/dist/components/markdown-content/components/MarkdownImage.js +1 -1
- package/dist/components/markdown-content/components/MarkdownImage.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownInlineCode.d.ts +3 -3
- package/dist/components/markdown-content/components/MarkdownInlineCode.js +1 -1
- package/dist/components/markdown-content/components/MarkdownInlineCode.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownLink.d.ts +2 -2
- package/dist/components/markdown-content/components/MarkdownLink.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownList.d.ts +2 -2
- package/dist/components/markdown-content/components/MarkdownList.js +1 -1
- package/dist/components/markdown-content/components/MarkdownList.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownListItem.d.ts +2 -2
- package/dist/components/markdown-content/components/MarkdownListItem.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownParagraph.d.ts +2 -2
- package/dist/components/markdown-content/components/MarkdownParagraph.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownStrong.d.ts +2 -2
- package/dist/components/markdown-content/components/MarkdownStrong.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownText.d.ts +1 -1
- package/dist/components/markdown-content/components/MarkdownText.js.map +1 -1
- package/dist/components/markdown-content/components/MarkdownThematicBreak.d.ts +2 -2
- package/dist/components/navigation/NavigationMenu.d.ts +369 -388
- package/dist/components/navigation/NavigationMenu.js +1 -1
- package/dist/components/navigation/NavigationMenu.js.map +1 -1
- 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 +53 -56
- package/dist/components/navigation/NavigationMenuDropdownItem.d.ts +106 -110
- package/dist/components/navigation/NavigationMenuDropdownItem.js +1 -1
- package/dist/components/navigation/NavigationMenuDropdownItem.js.map +1 -1
- package/dist/components/navigation/NavigationMenuDropdownTrigger.d.ts +52 -55
- package/dist/components/navigation/NavigationMenuLink.d.ts +52 -55
- package/dist/components/navigation/stitches.navigationMenu.colorscheme.config.d.ts +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVertical.d.ts +686 -707
- 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/NavigationMenuVerticalAccordionContent.d.ts +52 -55
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalAccordionTrigger.d.ts +53 -56
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalIcon.d.ts +104 -110
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalItem.d.ts +52 -55
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalLink.d.ts +53 -56
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalList.d.ts +52 -55
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.d.ts +106 -110
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.js +1 -1
- package/dist/components/navigation-menu-vertical/NavigationMenuVerticalText.js.map +1 -1
- package/dist/components/navigation-menu-vertical/stitches.navigationMenuVertical.colorscheme.config.d.ts +1 -1
- package/dist/components/notification-badge/NotificationBadge.d.ts +1 -1
- package/dist/components/number-input/NumberInputStepper.js +1 -1
- package/dist/components/number-input/NumberInputStepper.js.map +1 -1
- package/dist/components/number-input-field/NumberInputField.d.ts +2 -2
- package/dist/components/pagination/Pagination.d.ts +2 -2
- package/dist/components/pagination/PaginationNextButton.d.ts +106 -112
- package/dist/components/pagination/PaginationPage.d.ts +2 -2
- package/dist/components/pagination/PaginationPopover.d.ts +1 -1
- package/dist/components/pagination/PaginationPopover.js +1 -1
- package/dist/components/pagination/PaginationPopover.js.map +1 -1
- package/dist/components/pagination/PaginationPreviousButton.d.ts +106 -112
- package/dist/components/pagination/pagination-context/PaginationContext.d.ts +1 -1
- package/dist/components/password-field/PasswordField.d.ts +1 -1
- package/dist/components/popover/Popover.d.ts +105 -111
- package/dist/components/popover/PopoverContent.d.ts +53 -56
- package/dist/components/progress-bar/ProgressBar.d.ts +53 -56
- package/dist/components/progress-bar/ProgressBar.js +1 -1
- package/dist/components/progress-bar/ProgressBar.js.map +1 -1
- package/dist/components/radio-button/RadioButton.d.ts +53 -56
- package/dist/components/radio-button/RadioButton.js +1 -1
- package/dist/components/radio-button/RadioButton.js.map +1 -1
- package/dist/components/radio-button/RadioButtonGroup.d.ts +52 -55
- package/dist/components/radio-button-field/RadioButtonField.d.ts +54 -57
- package/dist/components/radio-button-field/RadioField.d.ts +1 -1
- package/dist/components/radio-card/RadioCard.d.ts +53 -56
- package/dist/components/radio-card/RadioCard.js +1 -1
- package/dist/components/radio-card/RadioCard.js.map +1 -1
- package/dist/components/radio-card/RadioCardGroup.d.ts +2 -2
- package/dist/components/radio-card/RadioCardGroup.js.map +1 -1
- package/dist/components/search-field/SearchField.d.ts +2 -2
- 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 +377 -394
- package/dist/components/section-message/SectionMessageTitle.d.ts +1 -1
- package/dist/components/section-message/SectionMessageTitle.js +1 -1
- package/dist/components/section-message/SectionMessageTitle.js.map +1 -1
- package/dist/components/select/Select.d.ts +52 -55
- package/dist/components/select/Select.js +1 -1
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/select-field/SelectField.d.ts +2 -2
- package/dist/components/side-bar/SideBar.d.ts +422 -444
- package/dist/components/side-bar/SideBarComponents.d.ts +369 -388
- package/dist/components/slider/Slider.d.ts +52 -55
- 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/SliderSteps.js +1 -1
- package/dist/components/slider/SliderSteps.js.map +1 -1
- package/dist/components/slider/SliderValue.d.ts +2 -2
- package/dist/components/slider/SliderValue.js +1 -1
- package/dist/components/slider/SliderValue.js.map +1 -1
- package/dist/components/slider-field/SliderField.d.ts +2 -2
- package/dist/components/sortable/Handle.d.ts +105 -111
- package/dist/components/sortable/SortableHandle.d.ts +1 -1
- package/dist/components/sortable/SortableItem.d.ts +2 -2
- package/dist/components/sortable/SortableItem.js +1 -1
- package/dist/components/sortable/SortableItem.js.map +1 -1
- package/dist/components/sortable/SortableRoot.d.ts +1 -1
- package/dist/components/sortable/index.d.ts +3 -3
- package/dist/components/spacer/Spacer.d.ts +364 -1
- package/dist/components/spacer/Spacer.js +1 -1
- package/dist/components/spacer/Spacer.js.map +1 -1
- package/dist/components/stack-content/StackContent.d.ts +52 -55
- package/dist/components/stepper/Stepper.d.ts +112 -118
- package/dist/components/stepper/StepperStepBack.d.ts +1 -1
- package/dist/components/stepper/StepperStepBullet.d.ts +103 -109
- package/dist/components/stepper/StepperStepBullet.js +1 -1
- package/dist/components/stepper/StepperStepBullet.js.map +1 -1
- package/dist/components/stepper/StepperStepContainer.d.ts +103 -109
- package/dist/components/stepper/StepperStepContainer.js +1 -1
- package/dist/components/stepper/StepperStepContainer.js.map +1 -1
- package/dist/components/stepper/StepperStepForward.d.ts +1 -1
- package/dist/components/stepper/StepperStepLabel.d.ts +106 -110
- package/dist/components/stepper/StepperStepLabel.js +1 -1
- package/dist/components/stepper/StepperStepLabel.js.map +1 -1
- package/dist/components/stepper/StepperSteps.d.ts +2 -2
- package/dist/components/stepper/stepper-context/StepperContext.d.ts +1 -1
- package/dist/components/switch/Switch.d.ts +53 -56
- package/dist/components/switch/Switch.js +1 -1
- package/dist/components/switch/Switch.js.map +1 -1
- package/dist/components/table/Table.d.ts +425 -451
- package/dist/components/table/Table.js +1 -1
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/table/TableBody.d.ts +53 -56
- package/dist/components/table/TableBody.js +1 -1
- package/dist/components/table/TableBody.js.map +1 -1
- package/dist/components/table/TableCell.d.ts +52 -55
- package/dist/components/table/TableCell.js +1 -1
- package/dist/components/table/TableCell.js.map +1 -1
- package/dist/components/table/TableFooter.d.ts +52 -55
- package/dist/components/table/TableFooterCell.d.ts +52 -55
- package/dist/components/table/TableFooterCell.js +1 -1
- package/dist/components/table/TableFooterCell.js.map +1 -1
- package/dist/components/table/TableHeader.d.ts +53 -56
- package/dist/components/table/TableHeader.js +1 -1
- package/dist/components/table/TableHeader.js.map +1 -1
- package/dist/components/table/TableHeaderCell.d.ts +52 -55
- package/dist/components/table/TableRow.d.ts +52 -55
- package/dist/components/table/TableStickyColumnsContainer.d.ts +2 -4
- 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 +210 -222
- package/dist/components/tabs/TabsContent.d.ts +52 -55
- package/dist/components/tabs/TabsTrigger.d.ts +53 -56
- package/dist/components/tabs/TabsTrigger.js +1 -1
- package/dist/components/tabs/TabsTrigger.js.map +1 -1
- package/dist/components/tabs/TabsTriggerList.d.ts +105 -111
- package/dist/components/text/Text.d.ts +54 -55
- package/dist/components/text/Text.js +1 -1
- package/dist/components/text/Text.js.map +1 -1
- package/dist/components/textarea/Textarea.d.ts +52 -55
- package/dist/components/textarea/Textarea.js +1 -1
- package/dist/components/textarea/Textarea.js.map +1 -1
- package/dist/components/textarea-field/TextareaField.d.ts +2 -2
- package/dist/components/tile/Tile.d.ts +52 -55
- package/dist/components/tile/TileGroup.d.ts +52 -55
- package/dist/components/tile-interactive/TileInteractive.d.ts +104 -110
- package/dist/components/tile-toggle-group/TileToggleGroupItem.d.ts +157 -166
- package/dist/components/toast/Toast.d.ts +156 -165
- package/dist/components/toast/ToastProvider.d.ts +1 -1
- package/dist/components/toggle-group/ToggleGroupButton.d.ts +103 -109
- package/dist/components/toggle-group/ToggleGroupItem.d.ts +104 -110
- package/dist/components/toggle-group/ToggleGroupItem.js +1 -1
- package/dist/components/toggle-group/ToggleGroupItem.js.map +1 -1
- package/dist/components/toggle-group/ToggleGroupRoot.d.ts +52 -55
- package/dist/components/toggle-group/index.d.ts +313 -331
- package/dist/components/tooltip/Tooltip.d.ts +106 -112
- package/dist/components/tooltip/TooltipContent.d.ts +53 -56
- package/dist/components/tooltip/TooltipContent.js +1 -1
- package/dist/components/tooltip/TooltipContent.js.map +1 -1
- package/dist/components/top-bar/TopBar.d.ts +638 -287
- package/dist/components/top-bar/TopBar.js +1 -1
- package/dist/components/top-bar/TopBar.js.map +1 -1
- package/dist/components/top-bar/TopBarBrand.d.ts +160 -176
- package/dist/components/top-bar/TopBarBrand.js +1 -1
- package/dist/components/top-bar/TopBarBrand.js.map +1 -1
- package/dist/components/top-bar/stitches.topBar.colorscheme.config.d.ts +1 -1
- package/dist/components/tree/Tree.d.ts +793 -812
- package/dist/components/tree/TreeCollapsible.d.ts +53 -56
- package/dist/components/tree/TreeCollapsibleContent.d.ts +52 -55
- package/dist/components/tree/TreeCollapsibleTrigger.d.ts +1 -1
- package/dist/components/tree/TreeIcon.d.ts +104 -110
- package/dist/components/tree/TreeItemContent.d.ts +54 -57
- package/dist/components/tree/TreeListItem.d.ts +54 -57
- package/dist/components/video/Video.d.ts +52 -55
- package/dist/docgen.json +1 -1
- package/dist/experiments/color-scheme/ColorScheme.d.ts +52 -55
- package/dist/experiments/color-scheme/stitches.colorscheme.config.d.ts +14 -0
- package/dist/experiments/color-scheme/stitches.colorscheme.config.js +1 -1
- 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 +604 -637
- package/dist/stitches.js +1 -1
- package/dist/stitches.js.map +1 -1
- package/dist/utilities/create-theme-variants/createThemeVariants.d.ts +276 -279
- package/dist/utilities/hooks/useResizeObserver.js.map +1 -1
- package/dist/utilities/hooks/useScrollPosition.js +1 -1
- package/dist/utilities/hooks/useScrollPosition.js.map +1 -1
- package/dist/utilities/hooks/useWindowScrollPosition.js +1 -1
- package/dist/utilities/hooks/useWindowScrollPosition.js.map +1 -1
- package/dist/utilities/no-overflow-wrapper/NoOverflowWrapper.d.ts +103 -109
- 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/style/focus-visible-style-block.d.ts +2 -1
- package/dist/utilities/style/focus-visible-style-block.js +1 -1
- package/dist/utilities/style/focus-visible-style-block.js.map +1 -1
- package/package.json +27 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TcolorScheme } from '../../experiments/color-scheme';
|
|
3
|
-
declare const StyledTrigger: import("@stitches
|
|
3
|
+
declare const StyledTrigger: import("@atom-learning/stitches-react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-accordion").AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>, {}, {
|
|
4
4
|
sm: string;
|
|
5
5
|
md: string;
|
|
6
6
|
lg: string;
|
|
@@ -8,7 +8,7 @@ declare const StyledTrigger: import("@stitches/react/types/styled-component").St
|
|
|
8
8
|
reducedMotion: string;
|
|
9
9
|
allowMotion: string;
|
|
10
10
|
hover: string;
|
|
11
|
-
}, import("@stitches
|
|
11
|
+
}, import("@atom-learning/stitches-react/types/css-util").CSS<{
|
|
12
12
|
sm: string;
|
|
13
13
|
md: string;
|
|
14
14
|
lg: string;
|
|
@@ -48,6 +48,18 @@ declare const StyledTrigger: import("@stitches/react/types/styled-component").St
|
|
|
48
48
|
blue1000: any;
|
|
49
49
|
blue1100: any;
|
|
50
50
|
blue1200: any;
|
|
51
|
+
pink100: any;
|
|
52
|
+
pink200: any;
|
|
53
|
+
pink300: any;
|
|
54
|
+
pink400: any;
|
|
55
|
+
pink500: any;
|
|
56
|
+
pink600: any;
|
|
57
|
+
pink700: any;
|
|
58
|
+
pink800: any;
|
|
59
|
+
pink900: any;
|
|
60
|
+
pink1000: any;
|
|
61
|
+
pink1100: any;
|
|
62
|
+
pink1200: any;
|
|
51
63
|
purple100: any;
|
|
52
64
|
purple200: any;
|
|
53
65
|
purple300: any;
|
|
@@ -192,26 +204,11 @@ declare const StyledTrigger: import("@stitches/react/types/styled-component").St
|
|
|
192
204
|
marsh1000: any;
|
|
193
205
|
marsh1100: any;
|
|
194
206
|
marsh1200: any;
|
|
195
|
-
tonal50: any;
|
|
196
|
-
tonal100: any;
|
|
197
|
-
tonal200: any;
|
|
198
|
-
tonal300: any;
|
|
199
|
-
tonal400: any;
|
|
200
|
-
tonal500: any;
|
|
201
|
-
tonal600: any;
|
|
202
207
|
alpha100: any;
|
|
203
208
|
alpha150: any;
|
|
204
209
|
alpha200: any;
|
|
205
210
|
alpha250: any;
|
|
206
211
|
alpha600: any;
|
|
207
|
-
brandRed: any;
|
|
208
|
-
brandRedAccent: any;
|
|
209
|
-
brandGreen: any;
|
|
210
|
-
brandGreenAccent: any;
|
|
211
|
-
brandPurple: any;
|
|
212
|
-
brandPurpleAccent: any;
|
|
213
|
-
brandYellow: any;
|
|
214
|
-
brandYellowAccent: any;
|
|
215
212
|
infoLight: any;
|
|
216
213
|
info: any;
|
|
217
214
|
infoMid: any;
|
|
@@ -312,62 +309,62 @@ declare const StyledTrigger: import("@stitches/react/types/styled-component").St
|
|
|
312
309
|
"1-1": any;
|
|
313
310
|
"3-4": any;
|
|
314
311
|
};
|
|
315
|
-
}, import("@stitches
|
|
316
|
-
bg: (value: import("@stitches
|
|
317
|
-
background: import("@stitches
|
|
312
|
+
}, import("@atom-learning/stitches-react/types/config").DefaultThemeMap, {
|
|
313
|
+
bg: (value: import("@atom-learning/stitches-react/types/css-util").WithPropertyValue<"background">) => {
|
|
314
|
+
background: import("@atom-learning/stitches-react/types/css-util").WithPropertyValue<"background">;
|
|
318
315
|
};
|
|
319
|
-
size: (value: string | number | import("@stitches
|
|
320
|
-
height: string | number | import("@stitches
|
|
321
|
-
width: string | number | import("@stitches
|
|
316
|
+
size: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">) => {
|
|
317
|
+
height: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">;
|
|
318
|
+
width: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">;
|
|
322
319
|
};
|
|
323
|
-
p: (value: string | number | import("@stitches
|
|
324
|
-
padding: string | number | import("@stitches
|
|
320
|
+
p: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
321
|
+
padding: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
325
322
|
};
|
|
326
|
-
pt: (value: string | number | import("@stitches
|
|
327
|
-
paddingTop: string | number | import("@stitches
|
|
323
|
+
pt: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
324
|
+
paddingTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
328
325
|
};
|
|
329
|
-
pr: (value: string | number | import("@stitches
|
|
330
|
-
paddingRight: string | number | import("@stitches
|
|
326
|
+
pr: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
327
|
+
paddingRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
331
328
|
};
|
|
332
|
-
pb: (value: string | number | import("@stitches
|
|
333
|
-
paddingBottom: string | number | import("@stitches
|
|
329
|
+
pb: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
330
|
+
paddingBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
334
331
|
};
|
|
335
|
-
pl: (value: string | number | import("@stitches
|
|
336
|
-
paddingLeft: string | number | import("@stitches
|
|
332
|
+
pl: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
333
|
+
paddingLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
337
334
|
};
|
|
338
|
-
px: (value: string | number | import("@stitches
|
|
339
|
-
paddingLeft: string | number | import("@stitches
|
|
340
|
-
paddingRight: string | number | import("@stitches
|
|
335
|
+
px: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
336
|
+
paddingLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
337
|
+
paddingRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
341
338
|
};
|
|
342
|
-
py: (value: string | number | import("@stitches
|
|
343
|
-
paddingTop: string | number | import("@stitches
|
|
344
|
-
paddingBottom: string | number | import("@stitches
|
|
339
|
+
py: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
340
|
+
paddingTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
341
|
+
paddingBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
345
342
|
};
|
|
346
|
-
m: (value: string | number | import("@stitches
|
|
347
|
-
margin: string | number | import("@stitches
|
|
343
|
+
m: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
344
|
+
margin: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
348
345
|
};
|
|
349
|
-
mt: (value: string | number | import("@stitches
|
|
350
|
-
marginTop: string | number | import("@stitches
|
|
346
|
+
mt: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
347
|
+
marginTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
351
348
|
};
|
|
352
|
-
mr: (value: string | number | import("@stitches
|
|
353
|
-
marginRight: string | number | import("@stitches
|
|
349
|
+
mr: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
350
|
+
marginRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
354
351
|
};
|
|
355
|
-
mb: (value: string | number | import("@stitches
|
|
356
|
-
marginBottom: string | number | import("@stitches
|
|
352
|
+
mb: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
353
|
+
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
357
354
|
};
|
|
358
|
-
ml: (value: string | number | import("@stitches
|
|
359
|
-
marginLeft: string | number | import("@stitches
|
|
355
|
+
ml: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
356
|
+
marginLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
360
357
|
};
|
|
361
|
-
mx: (value: string | number | import("@stitches
|
|
362
|
-
marginLeft: string | number | import("@stitches
|
|
363
|
-
marginRight: string | number | import("@stitches
|
|
358
|
+
mx: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
359
|
+
marginLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
360
|
+
marginRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
364
361
|
};
|
|
365
|
-
my: (value: string | number | import("@stitches
|
|
366
|
-
marginTop: string | number | import("@stitches
|
|
367
|
-
marginBottom: string | number | import("@stitches
|
|
362
|
+
my: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
363
|
+
marginTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
364
|
+
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
368
365
|
};
|
|
369
366
|
}>>;
|
|
370
|
-
export declare const AccordionTrigger: ({ children, colorScheme, asChild, ...remainingProps }: Omit<import("@radix-ui/react-accordion").AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "css"> & import("@stitches
|
|
367
|
+
export declare const AccordionTrigger: ({ children, colorScheme, asChild, ...remainingProps }: Omit<import("@radix-ui/react-accordion").AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "css"> & import("@atom-learning/stitches-react/types/styled-component").TransformProps<{}, {
|
|
371
368
|
sm: string;
|
|
372
369
|
md: string;
|
|
373
370
|
lg: string;
|
|
@@ -376,7 +373,7 @@ export declare const AccordionTrigger: ({ children, colorScheme, asChild, ...rem
|
|
|
376
373
|
allowMotion: string;
|
|
377
374
|
hover: string;
|
|
378
375
|
}> & {
|
|
379
|
-
css?: import("@stitches
|
|
376
|
+
css?: import("@atom-learning/stitches-react/types/css-util").CSS<{
|
|
380
377
|
sm: string;
|
|
381
378
|
md: string;
|
|
382
379
|
lg: string;
|
|
@@ -416,6 +413,18 @@ export declare const AccordionTrigger: ({ children, colorScheme, asChild, ...rem
|
|
|
416
413
|
blue1000: any;
|
|
417
414
|
blue1100: any;
|
|
418
415
|
blue1200: any;
|
|
416
|
+
pink100: any;
|
|
417
|
+
pink200: any;
|
|
418
|
+
pink300: any;
|
|
419
|
+
pink400: any;
|
|
420
|
+
pink500: any;
|
|
421
|
+
pink600: any;
|
|
422
|
+
pink700: any;
|
|
423
|
+
pink800: any;
|
|
424
|
+
pink900: any;
|
|
425
|
+
pink1000: any;
|
|
426
|
+
pink1100: any;
|
|
427
|
+
pink1200: any;
|
|
419
428
|
purple100: any;
|
|
420
429
|
purple200: any;
|
|
421
430
|
purple300: any;
|
|
@@ -560,26 +569,11 @@ export declare const AccordionTrigger: ({ children, colorScheme, asChild, ...rem
|
|
|
560
569
|
marsh1000: any;
|
|
561
570
|
marsh1100: any;
|
|
562
571
|
marsh1200: any;
|
|
563
|
-
tonal50: any;
|
|
564
|
-
tonal100: any;
|
|
565
|
-
tonal200: any;
|
|
566
|
-
tonal300: any;
|
|
567
|
-
tonal400: any;
|
|
568
|
-
tonal500: any;
|
|
569
|
-
tonal600: any;
|
|
570
572
|
alpha100: any;
|
|
571
573
|
alpha150: any;
|
|
572
574
|
alpha200: any;
|
|
573
575
|
alpha250: any;
|
|
574
576
|
alpha600: any;
|
|
575
|
-
brandRed: any;
|
|
576
|
-
brandRedAccent: any;
|
|
577
|
-
brandGreen: any;
|
|
578
|
-
brandGreenAccent: any;
|
|
579
|
-
brandPurple: any;
|
|
580
|
-
brandPurpleAccent: any;
|
|
581
|
-
brandYellow: any;
|
|
582
|
-
brandYellowAccent: any;
|
|
583
577
|
infoLight: any;
|
|
584
578
|
info: any;
|
|
585
579
|
infoMid: any;
|
|
@@ -680,62 +674,62 @@ export declare const AccordionTrigger: ({ children, colorScheme, asChild, ...rem
|
|
|
680
674
|
"1-1": any;
|
|
681
675
|
"3-4": any;
|
|
682
676
|
};
|
|
683
|
-
}, import("@stitches
|
|
684
|
-
bg: (value: import("@stitches
|
|
685
|
-
background: import("@stitches
|
|
677
|
+
}, import("@atom-learning/stitches-react/types/config").DefaultThemeMap, {
|
|
678
|
+
bg: (value: import("@atom-learning/stitches-react/types/css-util").WithPropertyValue<"background">) => {
|
|
679
|
+
background: import("@atom-learning/stitches-react/types/css-util").WithPropertyValue<"background">;
|
|
686
680
|
};
|
|
687
|
-
size: (value: string | number | import("@stitches
|
|
688
|
-
height: string | number | import("@stitches
|
|
689
|
-
width: string | number | import("@stitches
|
|
681
|
+
size: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">) => {
|
|
682
|
+
height: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">;
|
|
683
|
+
width: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">;
|
|
690
684
|
};
|
|
691
|
-
p: (value: string | number | import("@stitches
|
|
692
|
-
padding: string | number | import("@stitches
|
|
685
|
+
p: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
686
|
+
padding: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
693
687
|
};
|
|
694
|
-
pt: (value: string | number | import("@stitches
|
|
695
|
-
paddingTop: string | number | import("@stitches
|
|
688
|
+
pt: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
689
|
+
paddingTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
696
690
|
};
|
|
697
|
-
pr: (value: string | number | import("@stitches
|
|
698
|
-
paddingRight: string | number | import("@stitches
|
|
691
|
+
pr: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
692
|
+
paddingRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
699
693
|
};
|
|
700
|
-
pb: (value: string | number | import("@stitches
|
|
701
|
-
paddingBottom: string | number | import("@stitches
|
|
694
|
+
pb: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
695
|
+
paddingBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
702
696
|
};
|
|
703
|
-
pl: (value: string | number | import("@stitches
|
|
704
|
-
paddingLeft: string | number | import("@stitches
|
|
697
|
+
pl: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
698
|
+
paddingLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
705
699
|
};
|
|
706
|
-
px: (value: string | number | import("@stitches
|
|
707
|
-
paddingLeft: string | number | import("@stitches
|
|
708
|
-
paddingRight: string | number | import("@stitches
|
|
700
|
+
px: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
701
|
+
paddingLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
702
|
+
paddingRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
709
703
|
};
|
|
710
|
-
py: (value: string | number | import("@stitches
|
|
711
|
-
paddingTop: string | number | import("@stitches
|
|
712
|
-
paddingBottom: string | number | import("@stitches
|
|
704
|
+
py: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
705
|
+
paddingTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
706
|
+
paddingBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
713
707
|
};
|
|
714
|
-
m: (value: string | number | import("@stitches
|
|
715
|
-
margin: string | number | import("@stitches
|
|
708
|
+
m: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
709
|
+
margin: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
716
710
|
};
|
|
717
|
-
mt: (value: string | number | import("@stitches
|
|
718
|
-
marginTop: string | number | import("@stitches
|
|
711
|
+
mt: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
712
|
+
marginTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
719
713
|
};
|
|
720
|
-
mr: (value: string | number | import("@stitches
|
|
721
|
-
marginRight: string | number | import("@stitches
|
|
714
|
+
mr: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
715
|
+
marginRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
722
716
|
};
|
|
723
|
-
mb: (value: string | number | import("@stitches
|
|
724
|
-
marginBottom: string | number | import("@stitches
|
|
717
|
+
mb: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
718
|
+
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
725
719
|
};
|
|
726
|
-
ml: (value: string | number | import("@stitches
|
|
727
|
-
marginLeft: string | number | import("@stitches
|
|
720
|
+
ml: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
721
|
+
marginLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
728
722
|
};
|
|
729
|
-
mx: (value: string | number | import("@stitches
|
|
730
|
-
marginLeft: string | number | import("@stitches
|
|
731
|
-
marginRight: string | number | import("@stitches
|
|
723
|
+
mx: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
724
|
+
marginLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
725
|
+
marginRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
732
726
|
};
|
|
733
|
-
my: (value: string | number | import("@stitches
|
|
734
|
-
marginTop: string | number | import("@stitches
|
|
735
|
-
marginBottom: string | number | import("@stitches
|
|
727
|
+
my: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
728
|
+
marginTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
729
|
+
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
736
730
|
};
|
|
737
731
|
}> | undefined;
|
|
738
732
|
} & {
|
|
739
733
|
colorScheme?: TcolorScheme | undefined;
|
|
740
|
-
}) => JSX.Element;
|
|
734
|
+
}) => React.JSX.Element;
|
|
741
735
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ChevronDown as n}from"@atom-learning/icons";import{Trigger as s}from"@radix-ui/react-accordion";import e from"react";import{ColorScheme as c}from"../../experiments/color-scheme/ColorScheme.js";import{styled as
|
|
1
|
+
import{ChevronDown as n}from"@atom-learning/icons";import{Trigger as s}from"@radix-ui/react-accordion";import e from"react";import{ColorScheme as c}from"../../experiments/color-scheme/ColorScheme.js";import{styled as r}from"../../stitches.js";import"../../utilities/css-wrapper/CSSWrapper.js";import"../../utilities/no-overflow-wrapper/NoOverflowWrapper.js";import"color2k";import{focusVisibleStyleBlock as d}from"../../utilities/style/focus-visible-style-block.js";import"../../utilities/style/keyframe-animations.js";import{Icon as m}from"../icon/Icon.js";const l=r(m,{transition:"transform 300ms",'[data-state="open"] > &':{transform:"rotate(180deg)"},'[data-state="closed"] > &':{transform:"rotate(0deg)"}}),p=r(s,{border:0,py:"$3",px:"$4",width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",bg:"$interactive2",color:"$interactiveForeground","&[disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([disabled])":{"&:active, &:hover, &:focus-visible":{bg:"$interactive3"},"&:focus-visible":{...d()}},'&[data-state="open"]':{borderRadius:"$0 $0 0 0"},'&[data-state="closed"]':{borderRadius:"$0"}}),f=({children:t,colorScheme:i={},asChild:o,...a})=>e.createElement(c,{asChild:!0,accent:"grey1",interactive:"loContrast",...i},e.createElement(p,{asChild:o,...a},o?t:e.createElement(e.Fragment,null,t,e.createElement(l,{is:n,"data-testid":"accordion-chevron"}))));export{f as AccordionTrigger};
|
|
2
2
|
//# sourceMappingURL=AccordionTrigger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionTrigger.js","sources":["../../../src/components/accordion/AccordionTrigger.tsx"],"sourcesContent":["import { ChevronDown } from '@atom-learning/icons'\nimport { Trigger } from '@radix-ui/react-accordion'\nimport React from 'react'\n\nimport { ColorScheme, TcolorScheme } from '~/experiments/color-scheme'\nimport { styled } from '~/stitches'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nimport { Icon } from '../icon'\n\nconst RotatingIcon = styled(Icon, {\n transition: 'transform 300ms',\n '[data-state=\"open\"] > &': {\n transform: 'rotate(180deg)'\n },\n '[data-state=\"closed\"] > &': {\n transform: 'rotate(0deg)'\n }\n})\n\nconst StyledTrigger = styled(Trigger, {\n border: 0,\n py: '$3',\n px: '$4',\n width: '100%',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n cursor: 'pointer',\n bg: '$interactive2',\n color: '$interactiveForeground',\n '&[
|
|
1
|
+
{"version":3,"file":"AccordionTrigger.js","sources":["../../../src/components/accordion/AccordionTrigger.tsx"],"sourcesContent":["import { ChevronDown } from '@atom-learning/icons'\nimport { Trigger } from '@radix-ui/react-accordion'\nimport React from 'react'\n\nimport { ColorScheme, TcolorScheme } from '~/experiments/color-scheme'\nimport { styled } from '~/stitches'\nimport { focusVisibleStyleBlock } from '~/utilities'\n\nimport { Icon } from '../icon'\n\nconst RotatingIcon = styled(Icon, {\n transition: 'transform 300ms',\n '[data-state=\"open\"] > &': {\n transform: 'rotate(180deg)'\n },\n '[data-state=\"closed\"] > &': {\n transform: 'rotate(0deg)'\n }\n})\n\nconst StyledTrigger = styled(Trigger, {\n border: 0,\n py: '$3',\n px: '$4',\n width: '100%',\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n cursor: 'pointer',\n bg: '$interactive2',\n color: '$interactiveForeground',\n '&[disabled]': {\n opacity: 0.3,\n cursor: 'not-allowed'\n },\n '&:not([disabled])': {\n '&:active, &:hover, &:focus-visible': {\n bg: '$interactive3'\n },\n '&:focus-visible': {\n ...focusVisibleStyleBlock()\n }\n },\n '&[data-state=\"open\"]': {\n borderRadius: '$0 $0 0 0'\n },\n '&[data-state=\"closed\"]': {\n borderRadius: '$0'\n }\n})\n\nexport const AccordionTrigger = ({\n children,\n colorScheme = {},\n asChild,\n ...remainingProps\n}: React.ComponentProps<typeof StyledTrigger> & {\n colorScheme?: TcolorScheme\n}) => (\n <ColorScheme asChild accent=\"grey1\" interactive=\"loContrast\" {...colorScheme}>\n <StyledTrigger asChild={asChild} {...remainingProps}>\n {asChild ? (\n children\n ) : (\n <>\n {children}\n <RotatingIcon is={ChevronDown} data-testid=\"accordion-chevron\" />\n </>\n )}\n </StyledTrigger>\n </ColorScheme>\n)\n"],"names":["RotatingIcon","styled","Icon","StyledTrigger","Trigger","focusVisibleStyleBlock","AccordionTrigger","children","colorScheme","asChild","remainingProps","React","ColorScheme","ChevronDown"],"mappings":"8iBAUA,MAAMA,EAAeC,EAAOC,EAAM,CAChC,WAAY,kBACZ,0BAA2B,CACzB,UAAW,gBACb,EACA,4BAA6B,CAC3B,UAAW,cACb,CACF,CAAC,EAEKC,EAAgBF,EAAOG,EAAS,CACpC,OAAQ,EACR,GAAI,KACJ,GAAI,KACJ,MAAO,OACP,QAAS,OACT,eAAgB,gBAChB,WAAY,SACZ,OAAQ,UACR,GAAI,gBACJ,MAAO,yBACP,cAAe,CACb,QAAS,GACT,OAAQ,aACV,EACA,oBAAqB,CACnB,qCAAsC,CACpC,GAAI,eACN,EACA,kBAAmB,CACjB,GAAGC,EACL,CAAA,CACF,EACA,uBAAwB,CACtB,aAAc,WAChB,EACA,yBAA0B,CACxB,aAAc,IAChB,CACF,CAAC,EAEYC,EAAmB,CAAC,CAC/B,SAAAC,EACA,YAAAC,EAAc,CAAC,EACf,QAAAC,KACGC,CACL,IAGEC,EAAA,cAACC,EAAA,CAAY,QAAO,GAAC,OAAO,QAAQ,YAAY,aAAc,GAAGJ,GAC/DG,EAAA,cAACR,EAAA,CAAc,QAASM,EAAU,GAAGC,CAClCD,EAAAA,EACCF,EAEAI,EAAA,cAAAA,EAAA,SAAA,KACGJ,EACDI,EAAA,cAACX,EAAA,CAAa,GAAIa,EAAa,cAAY,mBAAoB,CAAA,CACjE,CAEJ,CACF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { VariantProps } from '@stitches
|
|
1
|
+
import type { VariantProps } from '@atom-learning/stitches-react';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { NavigatorActions } from '../../types';
|
|
4
4
|
import { Override } from '../../utilities';
|
|
5
5
|
import type { TOptionalTooltipWrapperProps } from '../../utilities/optional-tooltip-wrapper';
|
|
6
|
-
declare const StyledButton: import("@stitches
|
|
6
|
+
declare const StyledButton: import("@atom-learning/stitches-react/types/styled-component").StyledComponent<"button", {
|
|
7
7
|
theme?: "success" | "danger" | "warning" | "primary" | "neutral" | undefined;
|
|
8
8
|
appearance?: "outline" | "solid" | "simple" | undefined;
|
|
9
9
|
size?: "sm" | "md" | "lg" | "xs" | undefined;
|
|
@@ -16,7 +16,7 @@ declare const StyledButton: import("@stitches/react/types/styled-component").Sty
|
|
|
16
16
|
reducedMotion: string;
|
|
17
17
|
allowMotion: string;
|
|
18
18
|
hover: string;
|
|
19
|
-
}, import("@stitches
|
|
19
|
+
}, import("@atom-learning/stitches-react/types/css-util").CSS<{
|
|
20
20
|
sm: string;
|
|
21
21
|
md: string;
|
|
22
22
|
lg: string;
|
|
@@ -56,6 +56,18 @@ declare const StyledButton: import("@stitches/react/types/styled-component").Sty
|
|
|
56
56
|
blue1000: any;
|
|
57
57
|
blue1100: any;
|
|
58
58
|
blue1200: any;
|
|
59
|
+
pink100: any;
|
|
60
|
+
pink200: any;
|
|
61
|
+
pink300: any;
|
|
62
|
+
pink400: any;
|
|
63
|
+
pink500: any;
|
|
64
|
+
pink600: any;
|
|
65
|
+
pink700: any;
|
|
66
|
+
pink800: any;
|
|
67
|
+
pink900: any;
|
|
68
|
+
pink1000: any;
|
|
69
|
+
pink1100: any;
|
|
70
|
+
pink1200: any;
|
|
59
71
|
purple100: any;
|
|
60
72
|
purple200: any;
|
|
61
73
|
purple300: any;
|
|
@@ -200,26 +212,11 @@ declare const StyledButton: import("@stitches/react/types/styled-component").Sty
|
|
|
200
212
|
marsh1000: any;
|
|
201
213
|
marsh1100: any;
|
|
202
214
|
marsh1200: any;
|
|
203
|
-
tonal50: any;
|
|
204
|
-
tonal100: any;
|
|
205
|
-
tonal200: any;
|
|
206
|
-
tonal300: any;
|
|
207
|
-
tonal400: any;
|
|
208
|
-
tonal500: any;
|
|
209
|
-
tonal600: any;
|
|
210
215
|
alpha100: any;
|
|
211
216
|
alpha150: any;
|
|
212
217
|
alpha200: any;
|
|
213
218
|
alpha250: any;
|
|
214
219
|
alpha600: any;
|
|
215
|
-
brandRed: any;
|
|
216
|
-
brandRedAccent: any;
|
|
217
|
-
brandGreen: any;
|
|
218
|
-
brandGreenAccent: any;
|
|
219
|
-
brandPurple: any;
|
|
220
|
-
brandPurpleAccent: any;
|
|
221
|
-
brandYellow: any;
|
|
222
|
-
brandYellowAccent: any;
|
|
223
220
|
infoLight: any;
|
|
224
221
|
info: any;
|
|
225
222
|
infoMid: any;
|
|
@@ -320,59 +317,59 @@ declare const StyledButton: import("@stitches/react/types/styled-component").Sty
|
|
|
320
317
|
"1-1": any;
|
|
321
318
|
"3-4": any;
|
|
322
319
|
};
|
|
323
|
-
}, import("@stitches
|
|
324
|
-
bg: (value: import("@stitches
|
|
325
|
-
background: import("@stitches
|
|
320
|
+
}, import("@atom-learning/stitches-react/types/config").DefaultThemeMap, {
|
|
321
|
+
bg: (value: import("@atom-learning/stitches-react/types/css-util").WithPropertyValue<"background">) => {
|
|
322
|
+
background: import("@atom-learning/stitches-react/types/css-util").WithPropertyValue<"background">;
|
|
326
323
|
};
|
|
327
|
-
size: (value: string | number | import("@stitches
|
|
328
|
-
height: string | number | import("@stitches
|
|
329
|
-
width: string | number | import("@stitches
|
|
324
|
+
size: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">) => {
|
|
325
|
+
height: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">;
|
|
326
|
+
width: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">;
|
|
330
327
|
};
|
|
331
|
-
p: (value: string | number | import("@stitches
|
|
332
|
-
padding: string | number | import("@stitches
|
|
328
|
+
p: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
329
|
+
padding: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
333
330
|
};
|
|
334
|
-
pt: (value: string | number | import("@stitches
|
|
335
|
-
paddingTop: string | number | import("@stitches
|
|
331
|
+
pt: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
332
|
+
paddingTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
336
333
|
};
|
|
337
|
-
pr: (value: string | number | import("@stitches
|
|
338
|
-
paddingRight: string | number | import("@stitches
|
|
334
|
+
pr: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
335
|
+
paddingRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
339
336
|
};
|
|
340
|
-
pb: (value: string | number | import("@stitches
|
|
341
|
-
paddingBottom: string | number | import("@stitches
|
|
337
|
+
pb: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
338
|
+
paddingBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
342
339
|
};
|
|
343
|
-
pl: (value: string | number | import("@stitches
|
|
344
|
-
paddingLeft: string | number | import("@stitches
|
|
340
|
+
pl: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
341
|
+
paddingLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
345
342
|
};
|
|
346
|
-
px: (value: string | number | import("@stitches
|
|
347
|
-
paddingLeft: string | number | import("@stitches
|
|
348
|
-
paddingRight: string | number | import("@stitches
|
|
343
|
+
px: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
344
|
+
paddingLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
345
|
+
paddingRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
349
346
|
};
|
|
350
|
-
py: (value: string | number | import("@stitches
|
|
351
|
-
paddingTop: string | number | import("@stitches
|
|
352
|
-
paddingBottom: string | number | import("@stitches
|
|
347
|
+
py: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
348
|
+
paddingTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
349
|
+
paddingBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
353
350
|
};
|
|
354
|
-
m: (value: string | number | import("@stitches
|
|
355
|
-
margin: string | number | import("@stitches
|
|
351
|
+
m: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
352
|
+
margin: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
356
353
|
};
|
|
357
|
-
mt: (value: string | number | import("@stitches
|
|
358
|
-
marginTop: string | number | import("@stitches
|
|
354
|
+
mt: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
355
|
+
marginTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
359
356
|
};
|
|
360
|
-
mr: (value: string | number | import("@stitches
|
|
361
|
-
marginRight: string | number | import("@stitches
|
|
357
|
+
mr: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
358
|
+
marginRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
362
359
|
};
|
|
363
|
-
mb: (value: string | number | import("@stitches
|
|
364
|
-
marginBottom: string | number | import("@stitches
|
|
360
|
+
mb: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
361
|
+
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
365
362
|
};
|
|
366
|
-
ml: (value: string | number | import("@stitches
|
|
367
|
-
marginLeft: string | number | import("@stitches
|
|
363
|
+
ml: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
364
|
+
marginLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
368
365
|
};
|
|
369
|
-
mx: (value: string | number | import("@stitches
|
|
370
|
-
marginLeft: string | number | import("@stitches
|
|
371
|
-
marginRight: string | number | import("@stitches
|
|
366
|
+
mx: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
367
|
+
marginLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
368
|
+
marginRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
372
369
|
};
|
|
373
|
-
my: (value: string | number | import("@stitches
|
|
374
|
-
marginTop: string | number | import("@stitches
|
|
375
|
-
marginBottom: string | number | import("@stitches
|
|
370
|
+
my: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
371
|
+
marginTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
372
|
+
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
376
373
|
};
|
|
377
374
|
}>>;
|
|
378
375
|
declare type ActionIconProps = Override<React.ComponentProps<typeof StyledButton>, VariantProps<typeof StyledButton> & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import u from"invariant";import*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
|