@atom-learning/components 4.0.0-beta.1 → 4.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/Accordion.d.ts +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/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-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 +649 -682
- 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/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/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/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-field/InputField.d.ts +2 -2
- 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/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/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/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/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 +423 -447
- 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 +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/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/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/package.json +26 -15
|
@@ -3,7 +3,7 @@ import { FieldElementWrapperProps } from '../../components/field-wrapper';
|
|
|
3
3
|
import { RadioButtonGroup } from '../../components/radio-button';
|
|
4
4
|
declare type RadioButtonFieldProps = React.ComponentProps<typeof RadioButtonGroup> & FieldElementWrapperProps;
|
|
5
5
|
export declare const RadioButtonField: {
|
|
6
|
-
({ children, css, direction, defaultValue, value, description, label, name, validation, onValueChange, ...remainingProps }: RadioButtonFieldProps): JSX.Element;
|
|
6
|
+
({ children, css, direction, defaultValue, value, description, label, name, validation, onValueChange, ...remainingProps }: RadioButtonFieldProps): React.JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
} & {
|
|
9
9
|
Item: {
|
|
@@ -13,7 +13,7 @@ export declare const RadioButtonField: {
|
|
|
13
13
|
error?: string | undefined;
|
|
14
14
|
label: string;
|
|
15
15
|
validation?: import("../../components/form").ValidationOptions | undefined;
|
|
16
|
-
} & Omit<Omit<import("@radix-ui/react-radio-group").RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "size" | "css"> & import("@stitches
|
|
16
|
+
} & Omit<Omit<import("@radix-ui/react-radio-group").RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "size" | "css"> & import("@atom-learning/stitches-react/types/styled-component").TransformProps<{
|
|
17
17
|
size?: "md" | "lg" | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
sm: string;
|
|
@@ -24,7 +24,7 @@ export declare const RadioButtonField: {
|
|
|
24
24
|
allowMotion: string;
|
|
25
25
|
hover: string;
|
|
26
26
|
}> & {
|
|
27
|
-
css?: import("@stitches
|
|
27
|
+
css?: import("@atom-learning/stitches-react/types/css-util").CSS<{
|
|
28
28
|
sm: string;
|
|
29
29
|
md: string;
|
|
30
30
|
lg: string;
|
|
@@ -64,6 +64,18 @@ export declare const RadioButtonField: {
|
|
|
64
64
|
blue1000: any;
|
|
65
65
|
blue1100: any;
|
|
66
66
|
blue1200: any;
|
|
67
|
+
pink100: any;
|
|
68
|
+
pink200: any;
|
|
69
|
+
pink300: any;
|
|
70
|
+
pink400: any;
|
|
71
|
+
pink500: any;
|
|
72
|
+
pink600: any;
|
|
73
|
+
pink700: any;
|
|
74
|
+
pink800: any;
|
|
75
|
+
pink900: any;
|
|
76
|
+
pink1000: any;
|
|
77
|
+
pink1100: any;
|
|
78
|
+
pink1200: any;
|
|
67
79
|
purple100: any;
|
|
68
80
|
purple200: any;
|
|
69
81
|
purple300: any;
|
|
@@ -208,26 +220,11 @@ export declare const RadioButtonField: {
|
|
|
208
220
|
marsh1000: any;
|
|
209
221
|
marsh1100: any;
|
|
210
222
|
marsh1200: any;
|
|
211
|
-
tonal50: any;
|
|
212
|
-
tonal100: any;
|
|
213
|
-
tonal200: any;
|
|
214
|
-
tonal300: any;
|
|
215
|
-
tonal400: any;
|
|
216
|
-
tonal500: any;
|
|
217
|
-
tonal600: any;
|
|
218
223
|
alpha100: any;
|
|
219
224
|
alpha150: any;
|
|
220
225
|
alpha200: any;
|
|
221
226
|
alpha250: any;
|
|
222
227
|
alpha600: any;
|
|
223
|
-
brandRed: any;
|
|
224
|
-
brandRedAccent: any;
|
|
225
|
-
brandGreen: any;
|
|
226
|
-
brandGreenAccent: any;
|
|
227
|
-
brandPurple: any;
|
|
228
|
-
brandPurpleAccent: any;
|
|
229
|
-
brandYellow: any;
|
|
230
|
-
brandYellowAccent: any;
|
|
231
228
|
infoLight: any;
|
|
232
229
|
info: any;
|
|
233
230
|
infoMid: any;
|
|
@@ -328,66 +325,66 @@ export declare const RadioButtonField: {
|
|
|
328
325
|
"1-1": any;
|
|
329
326
|
"3-4": any;
|
|
330
327
|
};
|
|
331
|
-
}, import("@stitches
|
|
332
|
-
bg: (value: import("@stitches
|
|
333
|
-
background: import("@stitches
|
|
328
|
+
}, import("@atom-learning/stitches-react/types/config").DefaultThemeMap, {
|
|
329
|
+
bg: (value: import("@atom-learning/stitches-react/types/css-util").WithPropertyValue<"background">) => {
|
|
330
|
+
background: import("@atom-learning/stitches-react/types/css-util").WithPropertyValue<"background">;
|
|
334
331
|
};
|
|
335
|
-
size: (value: string | number | import("@stitches
|
|
336
|
-
height: string | number | import("@stitches
|
|
337
|
-
width: string | number | import("@stitches
|
|
332
|
+
size: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">) => {
|
|
333
|
+
height: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">;
|
|
334
|
+
width: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">;
|
|
338
335
|
};
|
|
339
|
-
p: (value: string | number | import("@stitches
|
|
340
|
-
padding: string | number | import("@stitches
|
|
336
|
+
p: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
337
|
+
padding: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
341
338
|
};
|
|
342
|
-
pt: (value: string | number | import("@stitches
|
|
343
|
-
paddingTop: string | number | import("@stitches
|
|
339
|
+
pt: (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">;
|
|
344
341
|
};
|
|
345
|
-
pr: (value: string | number | import("@stitches
|
|
346
|
-
paddingRight: string | number | import("@stitches
|
|
342
|
+
pr: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
343
|
+
paddingRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
347
344
|
};
|
|
348
|
-
pb: (value: string | number | import("@stitches
|
|
349
|
-
paddingBottom: string | number | import("@stitches
|
|
345
|
+
pb: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
346
|
+
paddingBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
350
347
|
};
|
|
351
|
-
pl: (value: string | number | import("@stitches
|
|
352
|
-
paddingLeft: string | number | import("@stitches
|
|
348
|
+
pl: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
349
|
+
paddingLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
353
350
|
};
|
|
354
|
-
px: (value: string | number | import("@stitches
|
|
355
|
-
paddingLeft: string | number | import("@stitches
|
|
356
|
-
paddingRight: string | number | import("@stitches
|
|
351
|
+
px: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
352
|
+
paddingLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
353
|
+
paddingRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
357
354
|
};
|
|
358
|
-
py: (value: string | number | import("@stitches
|
|
359
|
-
paddingTop: string | number | import("@stitches
|
|
360
|
-
paddingBottom: string | number | import("@stitches
|
|
355
|
+
py: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
356
|
+
paddingTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
357
|
+
paddingBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
361
358
|
};
|
|
362
|
-
m: (value: string | number | import("@stitches
|
|
363
|
-
margin: string | number | import("@stitches
|
|
359
|
+
m: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
360
|
+
margin: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
364
361
|
};
|
|
365
|
-
mt: (value: string | number | import("@stitches
|
|
366
|
-
marginTop: string | number | import("@stitches
|
|
362
|
+
mt: (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">;
|
|
367
364
|
};
|
|
368
|
-
mr: (value: string | number | import("@stitches
|
|
369
|
-
marginRight: string | number | import("@stitches
|
|
365
|
+
mr: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
366
|
+
marginRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
370
367
|
};
|
|
371
|
-
mb: (value: string | number | import("@stitches
|
|
372
|
-
marginBottom: string | number | import("@stitches
|
|
368
|
+
mb: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
369
|
+
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
373
370
|
};
|
|
374
|
-
ml: (value: string | number | import("@stitches
|
|
375
|
-
marginLeft: string | number | import("@stitches
|
|
371
|
+
ml: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
372
|
+
marginLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
376
373
|
};
|
|
377
|
-
mx: (value: string | number | import("@stitches
|
|
378
|
-
marginLeft: string | number | import("@stitches
|
|
379
|
-
marginRight: string | number | import("@stitches
|
|
374
|
+
mx: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
375
|
+
marginLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
376
|
+
marginRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
380
377
|
};
|
|
381
|
-
my: (value: string | number | import("@stitches
|
|
382
|
-
marginTop: string | number | import("@stitches
|
|
383
|
-
marginBottom: string | number | import("@stitches
|
|
378
|
+
my: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
379
|
+
marginTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
380
|
+
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
384
381
|
};
|
|
385
382
|
}> | undefined;
|
|
386
383
|
}, "aria-label" | "as"> & {
|
|
387
384
|
as?: undefined;
|
|
388
385
|
} & {
|
|
389
386
|
'aria-label'?: string | undefined;
|
|
390
|
-
}): JSX.Element;
|
|
387
|
+
}): React.JSX.Element;
|
|
391
388
|
displayName: string;
|
|
392
389
|
};
|
|
393
390
|
};
|
|
@@ -10,7 +10,7 @@ declare type RadioFieldProps = {
|
|
|
10
10
|
validation?: ValidationOptions;
|
|
11
11
|
} & React.ComponentProps<typeof RadioButton>;
|
|
12
12
|
export declare const RadioField: {
|
|
13
|
-
({ css, label, value, ...remainingProps }: RadioFieldProps): JSX.Element;
|
|
13
|
+
({ css, label, value, ...remainingProps }: RadioFieldProps): React.JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as RadioGroup from '@radix-ui/react-radio-group';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
export declare const StyledRadioCard: import("@stitches
|
|
3
|
+
export declare const StyledRadioCard: import("@atom-learning/stitches-react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<RadioGroup.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>, {
|
|
4
4
|
align?: "left" | "right" | undefined;
|
|
5
5
|
size?: "md" | "lg" | undefined;
|
|
6
6
|
isFullWidth?: boolean | "true" | "false" | undefined;
|
|
@@ -12,7 +12,7 @@ export declare const StyledRadioCard: import("@stitches/react/types/styled-compo
|
|
|
12
12
|
reducedMotion: string;
|
|
13
13
|
allowMotion: string;
|
|
14
14
|
hover: string;
|
|
15
|
-
}, import("@stitches
|
|
15
|
+
}, import("@atom-learning/stitches-react/types/css-util").CSS<{
|
|
16
16
|
sm: string;
|
|
17
17
|
md: string;
|
|
18
18
|
lg: string;
|
|
@@ -52,6 +52,18 @@ export declare const StyledRadioCard: import("@stitches/react/types/styled-compo
|
|
|
52
52
|
blue1000: any;
|
|
53
53
|
blue1100: any;
|
|
54
54
|
blue1200: any;
|
|
55
|
+
pink100: any;
|
|
56
|
+
pink200: any;
|
|
57
|
+
pink300: any;
|
|
58
|
+
pink400: any;
|
|
59
|
+
pink500: any;
|
|
60
|
+
pink600: any;
|
|
61
|
+
pink700: any;
|
|
62
|
+
pink800: any;
|
|
63
|
+
pink900: any;
|
|
64
|
+
pink1000: any;
|
|
65
|
+
pink1100: any;
|
|
66
|
+
pink1200: any;
|
|
55
67
|
purple100: any;
|
|
56
68
|
purple200: any;
|
|
57
69
|
purple300: any;
|
|
@@ -196,26 +208,11 @@ export declare const StyledRadioCard: import("@stitches/react/types/styled-compo
|
|
|
196
208
|
marsh1000: any;
|
|
197
209
|
marsh1100: any;
|
|
198
210
|
marsh1200: any;
|
|
199
|
-
tonal50: any;
|
|
200
|
-
tonal100: any;
|
|
201
|
-
tonal200: any;
|
|
202
|
-
tonal300: any;
|
|
203
|
-
tonal400: any;
|
|
204
|
-
tonal500: any;
|
|
205
|
-
tonal600: any;
|
|
206
211
|
alpha100: any;
|
|
207
212
|
alpha150: any;
|
|
208
213
|
alpha200: any;
|
|
209
214
|
alpha250: any;
|
|
210
215
|
alpha600: any;
|
|
211
|
-
brandRed: any;
|
|
212
|
-
brandRedAccent: any;
|
|
213
|
-
brandGreen: any;
|
|
214
|
-
brandGreenAccent: any;
|
|
215
|
-
brandPurple: any;
|
|
216
|
-
brandPurpleAccent: any;
|
|
217
|
-
brandYellow: any;
|
|
218
|
-
brandYellowAccent: any;
|
|
219
216
|
infoLight: any;
|
|
220
217
|
info: any;
|
|
221
218
|
infoMid: any;
|
|
@@ -316,61 +313,61 @@ export declare const StyledRadioCard: import("@stitches/react/types/styled-compo
|
|
|
316
313
|
"1-1": any;
|
|
317
314
|
"3-4": any;
|
|
318
315
|
};
|
|
319
|
-
}, import("@stitches
|
|
320
|
-
bg: (value: import("@stitches
|
|
321
|
-
background: import("@stitches
|
|
316
|
+
}, import("@atom-learning/stitches-react/types/config").DefaultThemeMap, {
|
|
317
|
+
bg: (value: import("@atom-learning/stitches-react/types/css-util").WithPropertyValue<"background">) => {
|
|
318
|
+
background: import("@atom-learning/stitches-react/types/css-util").WithPropertyValue<"background">;
|
|
322
319
|
};
|
|
323
|
-
size: (value: string | number | import("@stitches
|
|
324
|
-
height: string | number | import("@stitches
|
|
325
|
-
width: string | number | import("@stitches
|
|
320
|
+
size: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">) => {
|
|
321
|
+
height: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">;
|
|
322
|
+
width: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"size">;
|
|
326
323
|
};
|
|
327
|
-
p: (value: string | number | import("@stitches
|
|
328
|
-
padding: string | number | import("@stitches
|
|
324
|
+
p: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
325
|
+
padding: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
329
326
|
};
|
|
330
|
-
pt: (value: string | number | import("@stitches
|
|
331
|
-
paddingTop: string | number | import("@stitches
|
|
327
|
+
pt: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
328
|
+
paddingTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
332
329
|
};
|
|
333
|
-
pr: (value: string | number | import("@stitches
|
|
334
|
-
paddingRight: string | number | import("@stitches
|
|
330
|
+
pr: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
331
|
+
paddingRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
335
332
|
};
|
|
336
|
-
pb: (value: string | number | import("@stitches
|
|
337
|
-
paddingBottom: string | number | import("@stitches
|
|
333
|
+
pb: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
334
|
+
paddingBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
338
335
|
};
|
|
339
|
-
pl: (value: string | number | import("@stitches
|
|
340
|
-
paddingLeft: string | number | import("@stitches
|
|
336
|
+
pl: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
337
|
+
paddingLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
341
338
|
};
|
|
342
|
-
px: (value: string | number | import("@stitches
|
|
343
|
-
paddingLeft: string | number | import("@stitches
|
|
344
|
-
paddingRight: string | number | import("@stitches
|
|
339
|
+
px: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
340
|
+
paddingLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
341
|
+
paddingRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
345
342
|
};
|
|
346
|
-
py: (value: string | number | import("@stitches
|
|
347
|
-
paddingTop: string | number | import("@stitches
|
|
348
|
-
paddingBottom: string | number | import("@stitches
|
|
343
|
+
py: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
344
|
+
paddingTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
345
|
+
paddingBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
349
346
|
};
|
|
350
|
-
m: (value: string | number | import("@stitches
|
|
351
|
-
margin: string | number | import("@stitches
|
|
347
|
+
m: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
348
|
+
margin: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
352
349
|
};
|
|
353
|
-
mt: (value: string | number | import("@stitches
|
|
354
|
-
marginTop: string | number | import("@stitches
|
|
350
|
+
mt: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
351
|
+
marginTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
355
352
|
};
|
|
356
|
-
mr: (value: string | number | import("@stitches
|
|
357
|
-
marginRight: string | number | import("@stitches
|
|
353
|
+
mr: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
354
|
+
marginRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
358
355
|
};
|
|
359
|
-
mb: (value: string | number | import("@stitches
|
|
360
|
-
marginBottom: string | number | import("@stitches
|
|
356
|
+
mb: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
357
|
+
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
361
358
|
};
|
|
362
|
-
ml: (value: string | number | import("@stitches
|
|
363
|
-
marginLeft: string | number | import("@stitches
|
|
359
|
+
ml: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
360
|
+
marginLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
364
361
|
};
|
|
365
|
-
mx: (value: string | number | import("@stitches
|
|
366
|
-
marginLeft: string | number | import("@stitches
|
|
367
|
-
marginRight: string | number | import("@stitches
|
|
362
|
+
mx: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
363
|
+
marginLeft: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
364
|
+
marginRight: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
368
365
|
};
|
|
369
|
-
my: (value: string | number | import("@stitches
|
|
370
|
-
marginTop: string | number | import("@stitches
|
|
371
|
-
marginBottom: string | number | import("@stitches
|
|
366
|
+
my: (value: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">) => {
|
|
367
|
+
marginTop: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
368
|
+
marginBottom: string | number | import("@atom-learning/stitches-react/types/css-util").WithScaleValue<"space">;
|
|
372
369
|
};
|
|
373
370
|
}>>;
|
|
374
371
|
declare type RadioCardProps = React.ComponentProps<typeof StyledRadioCard>;
|
|
375
|
-
export declare const RadioCard: ({ children, isFullWidth, size, align, ...rest }: RadioCardProps) => JSX.Element;
|
|
372
|
+
export declare const RadioCard: ({ children, isFullWidth, size, align, ...rest }: RadioCardProps) => React.JSX.Element;
|
|
376
373
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as l from"@radix-ui/react-radio-group";import*as e from"react";import{styled as t}from"../../stitches.js";import{Box as d}from"../box/Box.js";const o=t(l.Item,{alignItems:"center",bg:"white",border:"1px solid $
|
|
1
|
+
import*as l from"@radix-ui/react-radio-group";import*as e from"react";import{styled as t}from"../../stitches.js";import{Box as d}from"../box/Box.js";const o=t(l.Item,{alignItems:"center",bg:"white",border:"1px solid $grey600",borderRadius:"$0",cursor:"pointer",display:"flex",textAlign:"left",'&[data-state="checked"]':{outline:"2px solid $primary800",outlineOffset:"-2px"},variants:{align:{left:{flexDirection:"row"},right:{flexDirection:"row-reverse"}},size:{md:{px:"$4",py:"$3"},lg:{px:"$5",py:"$4"}},isFullWidth:{true:{width:"100%"},false:{width:"max-content"}}}}),c=t("div",{alignItems:"center",appearance:"none",backgroundColor:"transparent",border:"1px solid $grey900",borderRadius:"$round",display:"flex",flexShrink:0,justifyContent:"center",p:0,size:"$1",transition:"all 50ms ease-out",'[data-state="checked"] &':{backgroundColor:"$primary800",borderColor:"$primary800"},variants:{containerIsFullWidth:{true:{},false:{}},align:{left:{mr:"$4"},right:{}}},compoundVariants:[{containerIsFullWidth:!0,align:"right",css:{ml:"auto"}},{containerIsFullWidth:!1,align:"right",css:{ml:"$4"}}]}),p=t(l.Indicator,{backgroundColor:"white",borderRadius:"$round",position:"absolute",size:"6px"}),u=({children:a,isFullWidth:r=!1,size:n="md",align:i="left",...s})=>e.createElement(o,{...s,align:i,isFullWidth:r,size:n},e.createElement(c,{align:i,containerIsFullWidth:r},e.createElement(p,null)),e.createElement(d,null,a));export{u as RadioCard,o as StyledRadioCard};
|
|
2
2
|
//# sourceMappingURL=RadioCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioCard.js","sources":["../../../src/components/radio-card/RadioCard.tsx"],"sourcesContent":["import * as RadioGroup from '@radix-ui/react-radio-group'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Box } from '../box/Box'\n\nexport const StyledRadioCard = styled(RadioGroup.Item, {\n alignItems: 'center',\n bg: 'white',\n border: '1px solid $
|
|
1
|
+
{"version":3,"file":"RadioCard.js","sources":["../../../src/components/radio-card/RadioCard.tsx"],"sourcesContent":["import * as RadioGroup from '@radix-ui/react-radio-group'\nimport * as React from 'react'\n\nimport { styled } from '~/stitches'\n\nimport { Box } from '../box/Box'\n\nexport const StyledRadioCard = styled(RadioGroup.Item, {\n alignItems: 'center',\n bg: 'white',\n border: '1px solid $grey600',\n borderRadius: '$0',\n cursor: 'pointer',\n display: 'flex',\n textAlign: 'left',\n '&[data-state=\"checked\"]': {\n outline: '2px solid $primary800',\n outlineOffset: '-2px'\n },\n variants: {\n align: {\n left: { flexDirection: 'row' },\n right: { flexDirection: 'row-reverse' }\n },\n size: {\n md: { px: '$4', py: '$3' },\n lg: { px: '$5', py: '$4' }\n },\n isFullWidth: {\n true: { width: '100%' },\n false: { width: 'max-content' }\n }\n }\n})\n\nconst RadioButton = styled('div', {\n alignItems: 'center',\n appearance: 'none',\n backgroundColor: 'transparent',\n border: '1px solid $grey900',\n borderRadius: '$round',\n display: 'flex',\n flexShrink: 0,\n justifyContent: 'center',\n p: 0,\n size: '$1',\n transition: 'all 50ms ease-out',\n '[data-state=\"checked\"] &': {\n backgroundColor: '$primary800',\n borderColor: '$primary800'\n },\n variants: {\n containerIsFullWidth: {\n true: {},\n false: {}\n },\n align: {\n left: { mr: '$4' },\n right: {}\n }\n },\n\n compoundVariants: [\n {\n containerIsFullWidth: true,\n align: 'right',\n css: { ml: 'auto' }\n },\n {\n containerIsFullWidth: false,\n align: 'right',\n css: { ml: '$4' }\n }\n ]\n})\n\nconst Indicator = styled(RadioGroup.Indicator, {\n backgroundColor: 'white',\n borderRadius: '$round',\n position: 'absolute',\n size: '6px'\n})\n\ntype RadioCardProps = React.ComponentProps<typeof StyledRadioCard>\n\nexport const RadioCard = ({\n children,\n isFullWidth = false,\n size = 'md',\n align = 'left',\n ...rest\n}: RadioCardProps) => (\n <StyledRadioCard\n {...rest}\n align={align}\n isFullWidth={isFullWidth}\n size={size}\n >\n <RadioButton align={align} containerIsFullWidth={isFullWidth}>\n <Indicator />\n </RadioButton>\n <Box>{children}</Box>\n </StyledRadioCard>\n)\n"],"names":["StyledRadioCard","styled","RadioGroup","RadioButton","Indicator","RadioCard","children","isFullWidth","size","align","rest","React","Box"],"mappings":"qJAOa,MAAAA,EAAkBC,EAAOC,EAAW,KAAM,CACrD,WAAY,SACZ,GAAI,QACJ,OAAQ,qBACR,aAAc,KACd,OAAQ,UACR,QAAS,OACT,UAAW,OACX,0BAA2B,CACzB,QAAS,wBACT,cAAe,MACjB,EACA,SAAU,CACR,MAAO,CACL,KAAM,CAAE,cAAe,KAAM,EAC7B,MAAO,CAAE,cAAe,aAAc,CACxC,EACA,KAAM,CACJ,GAAI,CAAE,GAAI,KAAM,GAAI,IAAK,EACzB,GAAI,CAAE,GAAI,KAAM,GAAI,IAAK,CAC3B,EACA,YAAa,CACX,KAAM,CAAE,MAAO,MAAO,EACtB,MAAO,CAAE,MAAO,aAAc,CAChC,CACF,CACF,CAAC,EAEKC,EAAcF,EAAO,MAAO,CAChC,WAAY,SACZ,WAAY,OACZ,gBAAiB,cACjB,OAAQ,qBACR,aAAc,SACd,QAAS,OACT,WAAY,EACZ,eAAgB,SAChB,EAAG,EACH,KAAM,KACN,WAAY,oBACZ,2BAA4B,CAC1B,gBAAiB,cACjB,YAAa,aACf,EACA,SAAU,CACR,qBAAsB,CACpB,KAAM,CAAA,EACN,MAAO,EACT,EACA,MAAO,CACL,KAAM,CAAE,GAAI,IAAK,EACjB,MAAO,CACT,CAAA,CACF,EAEA,iBAAkB,CAChB,CACE,qBAAsB,GACtB,MAAO,QACP,IAAK,CAAE,GAAI,MAAO,CACpB,EACA,CACE,qBAAsB,GACtB,MAAO,QACP,IAAK,CAAE,GAAI,IAAK,CAClB,CACF,CACF,CAAC,EAEKG,EAAYH,EAAOC,EAAW,UAAW,CAC7C,gBAAiB,QACjB,aAAc,SACd,SAAU,WACV,KAAM,KACR,CAAC,EAIYG,EAAY,CAAC,CACxB,SAAAC,EACA,YAAAC,EAAc,GACd,KAAAC,EAAO,KACP,MAAAC,EAAQ,UACLC,CACL,IACEC,EAAA,cAACX,GACE,GAAGU,EACJ,MAAOD,EACP,YAAaF,EACb,KAAMC,CAAAA,EAENG,EAAA,cAACR,EAAA,CAAY,MAAOM,EAAO,qBAAsBF,CAC/CI,EAAAA,EAAA,cAACP,EAAA,IAAU,CACb,EACAO,EAAA,cAACC,EAAA,KAAKN,CAAS,CACjB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import type { VariantProps } from '@atom-learning/stitches-react';
|
|
1
2
|
import * as RadioGroup from '@radix-ui/react-radio-group';
|
|
2
|
-
import type { VariantProps } from '@stitches/react';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import type { Override } from '../../utilities';
|
|
5
5
|
import { Flex } from '../flex';
|
|
6
6
|
import { StyledRadioCard } from './RadioCard';
|
|
7
7
|
declare type RadioCardGroupProps = Override<Pick<React.ComponentProps<typeof Flex>, 'justify' | 'gap' | 'css'> & VariantProps<typeof StyledRadioCard>, React.ComponentProps<typeof RadioGroup.Root>>;
|
|
8
|
-
export declare const RadioCardGroup: ({ css, children, size, isFullWidth, align, gap, justify, ...rest }: RadioCardGroupProps) => JSX.Element;
|
|
8
|
+
export declare const RadioCardGroup: ({ css, children, size, isFullWidth, align, gap, justify, ...rest }: RadioCardGroupProps) => React.JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioCardGroup.js","sources":["../../../src/components/radio-card/RadioCardGroup.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"RadioCardGroup.js","sources":["../../../src/components/radio-card/RadioCardGroup.tsx"],"sourcesContent":["import type { VariantProps } from '@atom-learning/stitches-react'\nimport * as RadioGroup from '@radix-ui/react-radio-group'\nimport * as React from 'react'\n\nimport type { Override } from '~/utilities'\n\nimport { Flex } from '../flex'\nimport { RadioCard, StyledRadioCard } from './RadioCard'\n\ntype RadioCardGroupProps = Override<\n Pick<React.ComponentProps<typeof Flex>, 'justify' | 'gap' | 'css'> &\n VariantProps<typeof StyledRadioCard>,\n React.ComponentProps<typeof RadioGroup.Root>\n>\n\nexport const RadioCardGroup = ({\n css,\n children,\n size,\n isFullWidth,\n align,\n gap = '3',\n justify,\n ...rest\n}: RadioCardGroupProps) => (\n <RadioGroup.Root {...rest}>\n <Flex direction=\"row\" justify={justify} gap={gap} wrap=\"wrap\" css={css}>\n {React.Children.map(children, (child) => {\n if (React.isValidElement(child) && child?.type === RadioCard) {\n return React.cloneElement(child, { size, isFullWidth, align })\n }\n return child\n })}\n </Flex>\n </RadioGroup.Root>\n)\n"],"names":["RadioCardGroup","css","children","size","isFullWidth","align","gap","justify","rest","React","RadioGroup","Flex","child","RadioCard"],"mappings":"8JAeaA,EAAiB,CAAC,CAC7B,IAAAC,EACA,SAAAC,EACA,KAAAC,EACA,YAAAC,EACA,MAAAC,EACA,IAAAC,EAAM,IACN,QAAAC,KACGC,CACL,IACEC,EAAA,cAACC,EAAW,KAAX,CAAiB,GAAGF,CAAAA,EACnBC,EAAA,cAACE,EAAA,CAAK,UAAU,MAAM,QAASJ,EAAS,IAAKD,EAAK,KAAK,OAAO,IAAKL,GAChEQ,EAAM,SAAS,IAAIP,EAAWU,GACzBH,EAAM,eAAeG,CAAK,IAAKA,GAAA,YAAAA,EAAO,QAASC,EAC1CJ,EAAM,aAAaG,EAAO,CAAE,KAAAT,EAAM,YAAAC,EAAa,MAAAC,CAAM,CAAC,EAExDO,CACR,CACH,CACF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { FieldElementWrapperProps } from '../../components/field-wrapper';
|
|
3
3
|
import { SearchInputProps } from '../../components/search-input';
|
|
4
4
|
declare type SearchFieldProps = SearchInputProps & FieldElementWrapperProps;
|
|
5
5
|
export declare const SearchField: {
|
|
6
|
-
({ css, hideLabel, label, name, validation, prompt, description, ...remainingProps }: SearchFieldProps): JSX.Element;
|
|
6
|
+
({ css, hideLabel, label, name, validation, prompt, description, ...remainingProps }: SearchFieldProps): React.JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Search as I,Close as $}from"@atom-learning/icons";import*as e from"react";import{ActionIcon as k}from"../action-icon/ActionIcon.js";import{Box as L}from"../box/Box.js";import{Icon as f}from"../icon/Icon.js";import{Input as x}from"../input/Input.js";import{styled as h}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{getFieldIconSize as M}from"../../utilities/style/get-icon-size.js";import{useCallbackRef as N}from"../../utilities/hooks/useCallbackRef.js";var O=(t=>(t.SEARCH="SEARCH",t.CLEAR="CLEAR",t))(O||{});const T=h(f,{color:"$
|
|
1
|
+
import{Search as I,Close as $}from"@atom-learning/icons";import*as e from"react";import{ActionIcon as k}from"../action-icon/ActionIcon.js";import{Box as L}from"../box/Box.js";import{Icon as f}from"../icon/Icon.js";import{Input as x}from"../input/Input.js";import{styled as h}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{getFieldIconSize as M}from"../../utilities/style/get-icon-size.js";import{useCallbackRef as N}from"../../utilities/hooks/useCallbackRef.js";var O=(t=>(t.SEARCH="SEARCH",t.CLEAR="CLEAR",t))(O||{});const T=h(f,{color:"$grey700",position:"absolute",pointerEvents:"none",variants:{size:{sm:{right:"$2",size:"$1"},md:{right:10,size:20},lg:{right:10,size:20}}}}),V=h(x,{'&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, & input[type="search"]::-webkit-search-results-decoration':{display:"none"}}),E=e.forwardRef(({size:t="md",css:C,value:n,defaultValue:l="",onValueChange:s,clearText:b="Clear",onChange:c,...d},v)=>{const[m,R]=N(),[g,u]=e.useState(l),[A,p]=e.useState(l?"CLEAR":"SEARCH");e.useEffect(()=>{typeof n>"u"||(u(n),p(n?"CLEAR":"SEARCH"))},[n]);const S=e.useMemo(()=>M(t),[t]);e.useImperativeHandle(v,()=>m.current);const z=()=>{var r,o;const a=m.current;if(!a)return;const i=(r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:r.set;(o=i==null?void 0:i.call)==null||o.call(i,a,"");const H=new Event("input",{bubbles:!0});a.dispatchEvent(H),a.focus(),s==null||s("")},w=r=>{c==null||c(r);const o=r.target.value;u(o),s==null||s(o),p(o?"CLEAR":"SEARCH")},y=()=>A==="SEARCH"?e.createElement(T,{is:I,size:t,css:{size:t=="sm"?"$1":20,top:"50%",transform:"translateY(-50%)"}}):e.createElement(k,{label:b,theme:"neutral",size:S,css:{position:"absolute",top:"50%",transform:"translateY(-50%)",right:"$1"},onClick:z},e.createElement(f,{is:$}));return e.createElement(L,{css:{position:"relative",height:"max-content",...C}},e.createElement(V,{ref:R,size:t,type:"search",...d,value:g,onChange:w,css:{pr:t==="sm"?"$5":"$6"}}),y())});E.displayName="SearchInput";export{E as SearchInput};
|
|
2
2
|
//# sourceMappingURL=SearchInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.js","sources":["../../../src/components/search-input/SearchInput.tsx"],"sourcesContent":["import { Close, Search } from '@atom-learning/icons'\nimport * as React from 'react'\n\nimport { ActionIcon } from '~/components/action-icon'\nimport { Box } from '~/components/box/'\nimport { Icon } from '~/components/icon/'\nimport { Input } from '~/components/input/'\nimport { CSS, styled } from '~/stitches'\nimport { getFieldIconSize } from '~/utilities'\nimport { useCallbackRef } from '~/utilities/hooks/useCallbackRef'\n\nexport type SearchInputProps = React.ComponentProps<typeof Input> & {\n size?: 'sm' | 'md' | 'lg'\n css?: CSS\n value?: string\n defaultValue?: string\n onValueChange?: (newValue: string) => void\n clearText?: string\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void\n}\n\nenum INPUT_ICON {\n SEARCH = 'SEARCH',\n CLEAR = 'CLEAR'\n}\n\nconst StyledIcon = styled(Icon, {\n color: '$
|
|
1
|
+
{"version":3,"file":"SearchInput.js","sources":["../../../src/components/search-input/SearchInput.tsx"],"sourcesContent":["import { Close, Search } from '@atom-learning/icons'\nimport * as React from 'react'\n\nimport { ActionIcon } from '~/components/action-icon'\nimport { Box } from '~/components/box/'\nimport { Icon } from '~/components/icon/'\nimport { Input } from '~/components/input/'\nimport { CSS, styled } from '~/stitches'\nimport { getFieldIconSize } from '~/utilities'\nimport { useCallbackRef } from '~/utilities/hooks/useCallbackRef'\n\nexport type SearchInputProps = React.ComponentProps<typeof Input> & {\n size?: 'sm' | 'md' | 'lg'\n css?: CSS\n value?: string\n defaultValue?: string\n onValueChange?: (newValue: string) => void\n clearText?: string\n onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void\n}\n\nenum INPUT_ICON {\n SEARCH = 'SEARCH',\n CLEAR = 'CLEAR'\n}\n\nconst StyledIcon = styled(Icon, {\n color: '$grey700',\n position: 'absolute',\n pointerEvents: 'none',\n variants: {\n size: {\n sm: {\n right: '$2',\n size: '$1'\n },\n md: {\n right: 10,\n size: 20\n },\n lg: {\n right: 10,\n size: 20\n }\n }\n }\n})\n\nconst StyledSearchInput = styled(Input, {\n '&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, & input[type=\"search\"]::-webkit-search-results-decoration':\n {\n display: 'none'\n }\n})\n\nexport const SearchInput: React.ForwardRefExoticComponent<SearchInputProps> =\n React.forwardRef(\n (\n {\n size = 'md',\n css,\n value,\n defaultValue = '',\n onValueChange,\n clearText = 'Clear',\n onChange,\n ...remainingProps\n },\n ref\n ) => {\n const [inputElRef, setInputElRef] = useCallbackRef()\n const [innerValue, setInnerValue] = React.useState(defaultValue)\n const [activeIcon, setActiveIcon] = React.useState<INPUT_ICON>(\n defaultValue ? INPUT_ICON.CLEAR : INPUT_ICON.SEARCH\n )\n React.useEffect(() => {\n if (typeof value === 'undefined') return\n setInnerValue(value)\n setActiveIcon(value ? INPUT_ICON.CLEAR : INPUT_ICON.SEARCH)\n }, [value])\n\n const iconSize = React.useMemo(() => getFieldIconSize(size), [size])\n\n React.useImperativeHandle(\n ref,\n () => inputElRef.current as HTMLInputElement\n )\n\n const handleClear = () => {\n const inputEl = inputElRef.current\n if (!inputEl) return\n\n // https://stackoverflow.com/a/46012210\n const nativeInputValueSetter = Object.getOwnPropertyDescriptor(\n window.HTMLInputElement.prototype,\n 'value'\n )?.set\n nativeInputValueSetter?.call?.(inputEl, '')\n const ev2 = new Event('input', {\n bubbles: true\n })\n inputEl.dispatchEvent(ev2)\n inputEl.focus()\n onValueChange?.('')\n }\n\n const handleOnChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(event)\n\n const newValue = event.target.value\n setInnerValue(newValue)\n onValueChange?.(newValue)\n setActiveIcon(newValue ? INPUT_ICON.CLEAR : INPUT_ICON.SEARCH)\n }\n\n const getIcon = () => {\n if (activeIcon === INPUT_ICON.SEARCH)\n return (\n <StyledIcon\n is={Search}\n size={size}\n css={{\n size: size == 'sm' ? '$1' : 20,\n top: '50%',\n transform: 'translateY(-50%)'\n }}\n />\n )\n\n return (\n <ActionIcon\n label={clearText}\n theme=\"neutral\"\n size={iconSize}\n css={{\n position: 'absolute',\n top: '50%',\n transform: 'translateY(-50%)',\n right: '$1'\n }}\n onClick={handleClear}\n >\n <Icon is={Close} />\n </ActionIcon>\n )\n }\n\n return (\n <Box css={{ position: 'relative', height: 'max-content', ...css }}>\n <StyledSearchInput\n ref={setInputElRef}\n size={size}\n type=\"search\"\n {...remainingProps}\n value={innerValue}\n onChange={handleOnChange}\n css={{ pr: size === 'sm' ? '$5' : '$6' }}\n />\n {getIcon()}\n </Box>\n )\n }\n )\n\nSearchInput.displayName = 'SearchInput'\n"],"names":["INPUT_ICON","StyledIcon","styled","Icon","StyledSearchInput","Input","SearchInput","React","size","css","value","defaultValue","onValueChange","clearText","onChange","remainingProps","ref","inputElRef","setInputElRef","useCallbackRef","innerValue","setInnerValue","activeIcon","setActiveIcon","iconSize","getFieldIconSize","handleClear","_a","_b","inputEl","nativeInputValueSetter","ev2","handleOnChange","event","newValue","getIcon","Search","ActionIcon","Close","Box"],"mappings":"snBAqBA,IAAKA,GACHA,IAAAA,EAAA,OAAS,SACTA,EAAA,MAAQ,QAFLA,IAAAA,GAAA,CAAA,CAKL,EAAA,MAAMC,EAAaC,EAAOC,EAAM,CAC9B,MAAO,WACP,SAAU,WACV,cAAe,OACf,SAAU,CACR,KAAM,CACJ,GAAI,CACF,MAAO,KACP,KAAM,IACR,EACA,GAAI,CACF,MAAO,GACP,KAAM,EACR,EACA,GAAI,CACF,MAAO,GACP,KAAM,EACR,CACF,CACF,CACF,CAAC,EAEKC,EAAoBF,EAAOG,EAAO,CACtC,6JACE,CACE,QAAS,MACX,CACJ,CAAC,EAEYC,EACXC,EAAM,WACJ,CACE,CACE,KAAAC,EAAO,KACP,IAAAC,EACA,MAAAC,EACA,aAAAC,EAAe,GACf,cAAAC,EACA,UAAAC,EAAY,QACZ,SAAAC,KACGC,CACL,EACAC,IACG,CACH,KAAM,CAACC,EAAYC,CAAa,EAAIC,IAC9B,CAACC,EAAYC,CAAa,EAAId,EAAM,SAASI,CAAY,EACzD,CAACW,EAAYC,CAAa,EAAIhB,EAAM,SACxCI,EAAe,QAAmB,QACpC,EACAJ,EAAM,UAAU,IAAM,CAChB,OAAOG,EAAU,MACrBW,EAAcX,CAAK,EACnBa,EAAcb,EAAQ,QAAmB,QAAiB,EAC5D,EAAG,CAACA,CAAK,CAAC,EAEV,MAAMc,EAAWjB,EAAM,QAAQ,IAAMkB,EAAiBjB,CAAI,EAAG,CAACA,CAAI,CAAC,EAEnED,EAAM,oBACJS,EACA,IAAMC,EAAW,OACnB,EAEA,MAAMS,EAAc,IAAM,CAxFhC,IAAAC,EAAAC,EAyFQ,MAAMC,EAAUZ,EAAW,QAC3B,GAAI,CAACY,EAAS,OAGd,MAAMC,GAAyBH,EAAA,OAAO,yBACpC,OAAO,iBAAiB,UACxB,OACF,IAH+B,YAAAA,EAG5B,KACHC,EAAAE,GAAA,KAAA,OAAAA,EAAwB,OAAxB,MAAAF,EAAA,KAAAE,EAA+BD,EAAS,EACxC,EAAA,MAAME,EAAM,IAAI,MAAM,QAAS,CAC7B,QAAS,EACX,CAAC,EACDF,EAAQ,cAAcE,CAAG,EACzBF,EAAQ,QACRjB,GAAA,MAAAA,EAAgB,EAClB,CAAA,EAEMoB,EAAkBC,GAA+C,CACrEnB,GAAA,MAAAA,EAAWmB,GAEX,MAAMC,EAAWD,EAAM,OAAO,MAC9BZ,EAAca,CAAQ,EACtBtB,GAAA,MAAAA,EAAgBsB,GAChBX,EAAcW,EAAW,QAAmB,QAAiB,CAC/D,EAEMC,EAAU,IACVb,IAAe,SAEff,EAAA,cAACN,EAAA,CACC,GAAImC,EACJ,KAAM5B,EACN,IAAK,CACH,KAAMA,GAAQ,KAAO,KAAO,GAC5B,IAAK,MACL,UAAW,kBACb,CACF,CAAA,EAIFD,EAAA,cAAC8B,EAAA,CACC,MAAOxB,EACP,MAAM,UACN,KAAMW,EACN,IAAK,CACH,SAAU,WACV,IAAK,MACL,UAAW,mBACX,MAAO,IACT,EACA,QAASE,CAETnB,EAAAA,EAAA,cAACJ,EAAA,CAAK,GAAImC,CAAO,CAAA,CACnB,EAIJ,OACE/B,EAAA,cAACgC,EAAA,CAAI,IAAK,CAAE,SAAU,WAAY,OAAQ,cAAe,GAAG9B,CAAI,CAAA,EAC9DF,EAAA,cAACH,EAAA,CACC,IAAKc,EACL,KAAMV,EACN,KAAK,SACJ,GAAGO,EACJ,MAAOK,EACP,SAAUY,EACV,IAAK,CAAE,GAAIxB,IAAS,KAAO,KAAO,IAAK,CAAA,CACzC,EACC2B,EACH,CAAA,CAEJ,CACF,EAEF7B,EAAY,YAAc"}
|