@atom-learning/components 2.28.0 → 2.29.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -31
- package/dist/color-scheme/dist/ColorScheme.js +1 -0
- package/dist/color-scheme/dist/blue.json.js +1 -0
- package/dist/color-scheme/dist/generateAlphaColors.js +1 -0
- package/dist/color-scheme/dist/slate.json.js +1 -0
- package/dist/color-scheme/dist/stitches.colorscheme.config.js +1 -0
- package/dist/components/accordion/AccordionTrigger.d.ts +5 -4
- package/dist/components/tabs/Tabs.d.ts +7 -276
- package/dist/components/tabs/TabsContent.d.ts +267 -0
- package/dist/components/tabs/{TabTrigger.d.ts → TabsTrigger.d.ts} +3 -6
- package/dist/components/tabs/TabsTriggerList.d.ts +5 -9
- package/dist/docgen.json +1 -1
- package/dist/docs/Accordion.mdx +56 -7
- package/dist/docs/Tabs.mdx +31 -57
- package/dist/index.cjs.js +1 -1
- package/dist/{components → lib/src/components}/accordion/Accordion.js +0 -0
- package/dist/lib/src/components/accordion/AccordionContent.js +1 -0
- package/dist/lib/src/components/accordion/AccordionItem.js +1 -0
- package/dist/lib/src/components/accordion/AccordionTrigger.js +1 -0
- package/dist/{components → lib/src/components}/action-icon/ActionIcon.constants.js +0 -0
- package/dist/{components → lib/src/components}/action-icon/ActionIcon.js +0 -0
- package/dist/{components → lib/src/components}/alert-dialog/AlertDialog.js +0 -0
- package/dist/{components → lib/src/components}/alert-dialog/AlertDialogContent.js +1 -1
- package/dist/{components → lib/src/components}/alert-dialog/alert-context/AlertContext.js +0 -0
- package/dist/{components → lib/src/components}/alert-dialog/alert-context/AlertDialog.js +0 -0
- package/dist/{components → lib/src/components}/alert-dialog/alert-context/reducer.js +0 -0
- package/dist/{components → lib/src/components}/avatar/Avatar.js +1 -1
- package/dist/{components → lib/src/components}/avatar/AvatarIcon.js +0 -0
- package/dist/{components → lib/src/components}/avatar/AvatarImage.js +0 -0
- package/dist/{components → lib/src/components}/avatar/AvatarInitial.js +0 -0
- package/dist/{components → lib/src/components}/avatar/AvatarPlaceholder.js +0 -0
- package/dist/{components → lib/src/components}/badge/Badge.js +0 -0
- package/dist/{components → lib/src/components}/box/Box.js +0 -0
- package/dist/{components → lib/src/components}/button/Button.js +1 -1
- package/dist/{components → lib/src/components}/calendar/Calendar.js +1 -1
- package/dist/{components → lib/src/components}/calendar/Day.js +0 -0
- package/dist/{components → lib/src/components}/calendar/constants.js +0 -0
- package/dist/{components → lib/src/components}/carousel/Carousel.js +0 -0
- package/dist/{components → lib/src/components}/carousel/CarouselArrows.js +1 -1
- package/dist/{components → lib/src/components}/carousel/CarouselPagination.js +0 -0
- package/dist/lib/src/components/carousel/CarouselSlide.js +1 -0
- package/dist/{components → lib/src/components}/carousel/CarouselSlider.js +0 -0
- package/dist/{components → lib/src/components}/checkbox/Checkbox.js +0 -0
- package/dist/{components → lib/src/components}/checkbox-field/CheckboxField.js +1 -1
- package/dist/{components → lib/src/components}/chip/Chip.js +1 -1
- package/dist/lib/src/components/chip/ChipGroup.js +1 -0
- package/dist/{components → lib/src/components}/chip-dismissible-group/ChipDismissibleGroupItem.js +0 -0
- package/dist/{components → lib/src/components}/chip-dismissible-group/ChipDismissibleGroupRoot.js +1 -1
- package/dist/{components → lib/src/components}/chip-dismissible-group/index.js +0 -0
- package/dist/{components → lib/src/components}/chip-toggle-group/ChipToggleGroupItem.js +0 -0
- package/dist/{components → lib/src/components}/chip-toggle-group/ChipToggleGroupRoot.js +0 -0
- package/dist/{components → lib/src/components}/chip-toggle-group/index.js +0 -0
- package/dist/{components → lib/src/components}/combobox/Combobox.js +0 -0
- package/dist/{components → lib/src/components}/combobox/ComboboxInput.js +0 -0
- package/dist/{components → lib/src/components}/combobox/ComboboxList.js +0 -0
- package/dist/{components → lib/src/components}/combobox/ComboboxOption.js +0 -0
- package/dist/{components → lib/src/components}/combobox/ComboboxPopover.js +0 -0
- package/dist/{components → lib/src/components}/data-table/DataTable.js +1 -1
- package/dist/{components → lib/src/components}/data-table/DataTable.types.js +0 -0
- package/dist/lib/src/components/data-table/DataTableBody.js +1 -0
- package/dist/{components → lib/src/components}/data-table/DataTableContext.js +0 -0
- package/dist/lib/src/components/data-table/DataTableDataCell.js +1 -0
- package/dist/{components → lib/src/components}/data-table/DataTableError.js +0 -0
- package/dist/{components → lib/src/components}/data-table/DataTableGlobalFilter.js +0 -0
- package/dist/{components → lib/src/components}/data-table/DataTableHead.js +0 -0
- package/dist/{components → lib/src/components}/data-table/DataTableHeaderCell.js +0 -0
- package/dist/{components → lib/src/components}/data-table/DataTableLoading.js +0 -0
- package/dist/{components → lib/src/components}/data-table/DataTableRow.js +1 -1
- package/dist/{components → lib/src/components}/data-table/DataTableTable.js +0 -0
- package/dist/{components → lib/src/components}/data-table/drag-and-drop/DragAndDropContainer.js +0 -0
- package/dist/{components → lib/src/components}/data-table/drag-and-drop/DragAndDropTable.js +0 -0
- package/dist/{components → lib/src/components}/data-table/drag-and-drop/DragAndDropTableBody.js +0 -0
- package/dist/{components → lib/src/components}/data-table/drag-and-drop/DraggableRow.js +0 -0
- package/dist/{components → lib/src/components}/data-table/drag-and-drop/Handle.js +1 -1
- package/dist/{components → lib/src/components}/data-table/getNewAsyncData.js +0 -0
- package/dist/{components → lib/src/components}/data-table/pagination/Pagination.js +0 -0
- package/dist/{components → lib/src/components}/data-table/pagination/PaginationButtons.js +0 -0
- package/dist/{components → lib/src/components}/data-table/usePagination.js +0 -0
- package/dist/{components → lib/src/components}/data-table/useSorting.js +0 -0
- package/dist/{components → lib/src/components}/date-field/DateField.js +0 -0
- package/dist/{components → lib/src/components}/date-input/DateInput.js +0 -0
- package/dist/{components → lib/src/components}/date-input/constants.js +0 -0
- package/dist/{components → lib/src/components}/date-input/use-date.js +0 -0
- package/dist/{components → lib/src/components}/dialog/Dialog.js +0 -0
- package/dist/{components → lib/src/components}/dialog/DialogBackground.js +0 -0
- package/dist/{components → lib/src/components}/dialog/DialogClose.js +0 -0
- package/dist/{components → lib/src/components}/dialog/DialogContent.js +1 -1
- package/dist/lib/src/components/dismissible/DismissibleRoot.js +1 -0
- package/dist/lib/src/components/dismissible/DismissibleTrigger.js +1 -0
- package/dist/{components → lib/src/components}/dismissible/index.js +0 -0
- package/dist/{components → lib/src/components}/dismissible-group/DismissibleGroupItem.js +0 -0
- package/dist/{components → lib/src/components}/dismissible-group/DismissibleGroupRoot.js +0 -0
- package/dist/{components → lib/src/components}/dismissible-group/index.js +0 -0
- package/dist/{components → lib/src/components}/divider/Divider.js +0 -0
- package/dist/{components → lib/src/components}/dropdown-menu/DropdownMenu.js +0 -0
- package/dist/{components → lib/src/components}/dropdown-menu/DropdownMenuContent.js +0 -0
- package/dist/{components → lib/src/components}/dropdown-menu/DropdownMenuItem.js +0 -0
- package/dist/lib/src/components/dropdown-menu/DropdownMenuLinkItem.js +1 -0
- package/dist/{components → lib/src/components}/dropdown-menu/DropdownMenuSeparator.js +0 -0
- package/dist/{components → lib/src/components}/dropdown-menu/DropdownMenuTrigger.js +0 -0
- package/dist/{components → lib/src/components}/empty-state/EmptyState.js +0 -0
- package/dist/{components → lib/src/components}/empty-state/EmptyStateBody.js +0 -0
- package/dist/{components → lib/src/components}/empty-state/EmptyStateImage.js +0 -0
- package/dist/{components → lib/src/components}/empty-state/EmptyStateTitle.js +0 -0
- package/dist/lib/src/components/field-wrapper/FieldDescription.js +1 -0
- package/dist/{components → lib/src/components}/field-wrapper/FieldWrapper.js +0 -0
- package/dist/{components → lib/src/components}/field-wrapper/InlineFieldWrapper.js +1 -1
- package/dist/lib/src/components/file-input/FileInput.js +1 -0
- package/dist/{components → lib/src/components}/flex/Flex.js +0 -0
- package/dist/{components → lib/src/components}/form/Form.js +0 -0
- package/dist/{components → lib/src/components}/form/Form.types.js +0 -0
- package/dist/{components → lib/src/components}/form/useFieldError.js +0 -0
- package/dist/{components → lib/src/components}/grid/Grid.js +1 -1
- package/dist/{components → lib/src/components}/heading/Heading.js +0 -0
- package/dist/{components → lib/src/components}/icon/Icon.js +1 -1
- package/dist/{components → lib/src/components}/image/Image.js +0 -0
- package/dist/{components → lib/src/components}/inline-message/InlineMessage.config.js +0 -0
- package/dist/{components → lib/src/components}/inline-message/InlineMessage.js +1 -1
- package/dist/{components → lib/src/components}/input/Input.js +0 -0
- package/dist/{components → lib/src/components}/input-field/InputField.js +0 -0
- package/dist/{components → lib/src/components}/label/Label.js +1 -1
- package/dist/{components → lib/src/components}/link/Link.js +1 -1
- package/dist/{components → lib/src/components}/list/List.js +0 -0
- package/dist/{components → lib/src/components}/loader/Loader.js +0 -0
- package/dist/{components → lib/src/components}/markdown-content/MarkdownContent.js +0 -0
- package/dist/{components → lib/src/components}/markdown-content/components/MarkdownCode.js +0 -0
- package/dist/lib/src/components/markdown-content/components/MarkdownEmphasis.js +1 -0
- package/dist/lib/src/components/markdown-content/components/MarkdownHeading.js +1 -0
- package/dist/lib/src/components/markdown-content/components/MarkdownImage.js +1 -0
- package/dist/{components → lib/src/components}/markdown-content/components/MarkdownInlineCode.js +1 -1
- package/dist/lib/src/components/markdown-content/components/MarkdownLink.js +1 -0
- package/dist/{components → lib/src/components}/markdown-content/components/MarkdownList.js +0 -0
- package/dist/lib/src/components/markdown-content/components/MarkdownListItem.js +1 -0
- package/dist/lib/src/components/markdown-content/components/MarkdownParagraph.js +1 -0
- package/dist/lib/src/components/markdown-content/components/MarkdownStrong.js +1 -0
- package/dist/{components → lib/src/components}/markdown-content/components/MarkdownText.js +0 -0
- package/dist/lib/src/components/markdown-content/components/MarkdownThematicBreak.js +1 -0
- package/dist/{components → lib/src/components}/navigation/NavigationMenu.js +0 -0
- package/dist/{components → lib/src/components}/navigation/NavigationMenu.styles.js +0 -0
- package/dist/{components → lib/src/components}/navigation/NavigationMenuContext.js +0 -0
- package/dist/{components → lib/src/components}/navigation/NavigationMenuDropdown.js +0 -0
- package/dist/lib/src/components/navigation/NavigationMenuDropdownContent.js +1 -0
- package/dist/{components → lib/src/components}/navigation/NavigationMenuDropdownItem.js +0 -0
- package/dist/{components → lib/src/components}/navigation/NavigationMenuDropdownTrigger.js +0 -0
- package/dist/{components → lib/src/components}/navigation/NavigationMenuLink.js +1 -1
- package/dist/{components → lib/src/components}/notification-badge/NotificationBadge.js +1 -1
- package/dist/lib/src/components/number-input/NumberInput.js +1 -0
- package/dist/{components → lib/src/components}/number-input/NumberInputStepper.js +0 -0
- package/dist/{components → lib/src/components}/number-input-field/NumberInputField.js +1 -1
- package/dist/{components → lib/src/components}/password-field/PasswordField.js +0 -0
- package/dist/{components → lib/src/components}/password-input/PasswordInput.js +0 -0
- package/dist/{components → lib/src/components}/popover/Popover.js +0 -0
- package/dist/{components → lib/src/components}/popover/PopoverContent.js +1 -1
- package/dist/{components → lib/src/components}/progress-bar/ProgressBar.js +0 -0
- package/dist/{components → lib/src/components}/radio-button/RadioButton.js +1 -1
- package/dist/{components → lib/src/components}/radio-button/RadioButtonGroup.js +0 -0
- package/dist/{components → lib/src/components}/radio-button-field/RadioButtonField.js +1 -1
- package/dist/{components → lib/src/components}/radio-button-field/RadioField.js +1 -1
- package/dist/{components → lib/src/components}/radio-card/RadioCard.js +0 -0
- package/dist/lib/src/components/radio-card/RadioCardGroup.js +1 -0
- package/dist/{components → lib/src/components}/search-field/SearchField.js +0 -0
- package/dist/{components → lib/src/components}/search-input/SearchInput.js +1 -1
- package/dist/{components → lib/src/components}/select/Select.js +0 -0
- package/dist/lib/src/components/select-field/SelectField.js +1 -0
- package/dist/{components → lib/src/components}/sidedrawer/Sidedrawer.js +0 -0
- package/dist/{components → lib/src/components}/sidedrawer/Sidedrawer.styles.js +0 -0
- package/dist/{components → lib/src/components}/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.js +1 -1
- package/dist/{components → lib/src/components}/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.js +0 -0
- package/dist/{components → lib/src/components}/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.js +0 -0
- package/dist/{components → lib/src/components}/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.js +0 -0
- package/dist/{components → lib/src/components}/sidedrawer/SidedrawerBody.js +0 -0
- package/dist/{components → lib/src/components}/sidedrawer/SidedrawerClose.js +0 -0
- package/dist/{components → lib/src/components}/sidedrawer/SidedrawerContent.js +1 -1
- package/dist/{components → lib/src/components}/sidedrawer/SidedrawerFooter.js +0 -0
- package/dist/{components → lib/src/components}/sidedrawer/SidedrawerHeader.js +0 -0
- package/dist/{components → lib/src/components}/sidedrawer/SidedrawerItem.js +0 -0
- package/dist/{components → lib/src/components}/sidedrawer/SidedrawerOverlay.js +0 -0
- package/dist/{components → lib/src/components}/sidedrawer/SidedrawerTrigger.js +0 -0
- package/dist/{components → lib/src/components}/slider/Slider.js +0 -0
- package/dist/{components → lib/src/components}/slider/SliderSteps.js +0 -0
- package/dist/{components → lib/src/components}/slider/SliderValue.js +0 -0
- package/dist/{components → lib/src/components}/slider-field/SliderField.js +1 -1
- package/dist/{components → lib/src/components}/stack/Stack.js +0 -0
- package/dist/{components → lib/src/components}/stack-content/StackContent.js +1 -1
- package/dist/{components → lib/src/components}/stepper/Stepper.js +0 -0
- package/dist/{components → lib/src/components}/stepper/StepperStepBack.js +1 -1
- package/dist/{components → lib/src/components}/stepper/StepperStepBullet.js +0 -0
- package/dist/{components → lib/src/components}/stepper/StepperStepContainer.js +0 -0
- package/dist/{components → lib/src/components}/stepper/StepperStepForward.js +0 -0
- package/dist/{components → lib/src/components}/stepper/StepperStepLabel.js +0 -0
- package/dist/{components → lib/src/components}/stepper/StepperSteps.js +0 -0
- package/dist/{components → lib/src/components}/stepper/stepper-context/StepperContext.js +0 -0
- package/dist/{components → lib/src/components}/stepper/types.js +0 -0
- package/dist/{components → lib/src/components}/switch/Switch.js +0 -0
- package/dist/{components → lib/src/components}/table/Table.js +0 -0
- package/dist/{components → lib/src/components}/table/TableBody.js +0 -0
- package/dist/{components → lib/src/components}/table/TableCell.js +0 -0
- package/dist/{components → lib/src/components}/table/TableFooter.js +0 -0
- package/dist/{components → lib/src/components}/table/TableFooterCell.js +0 -0
- package/dist/{components → lib/src/components}/table/TableHeader.js +1 -1
- package/dist/{components → lib/src/components}/table/TableHeaderCell.js +0 -0
- package/dist/lib/src/components/table/TableRow.js +1 -0
- package/dist/lib/src/components/tabs/Tabs.js +1 -0
- package/dist/lib/src/components/tabs/TabsContent.js +1 -0
- package/dist/lib/src/components/tabs/TabsTrigger.js +1 -0
- package/dist/lib/src/components/tabs/TabsTriggerList.js +1 -0
- package/dist/{components → lib/src/components}/text/Text.js +0 -0
- package/dist/{components → lib/src/components}/textarea/Textarea.js +0 -0
- package/dist/{components → lib/src/components}/textarea-field/TextareaField.js +0 -0
- package/dist/{components → lib/src/components}/toast/Toast.js +1 -1
- package/dist/{components → lib/src/components}/toast/ToastProvider.js +1 -1
- package/dist/lib/src/components/toggle-group/ToggleGroupButton.js +1 -0
- package/dist/{components → lib/src/components}/toggle-group/ToggleGroupItem.js +0 -0
- package/dist/{components → lib/src/components}/toggle-group/ToggleGroupRoot.js +0 -0
- package/dist/{components → lib/src/components}/toggle-group/index.js +0 -0
- package/dist/{components → lib/src/components}/tooltip/Tooltip.js +0 -0
- package/dist/{components → lib/src/components}/tooltip/TooltipContent.js +1 -1
- package/dist/{components → lib/src/components}/top-bar/TopBar.js +0 -0
- package/dist/{components → lib/src/components}/top-bar/TopBarActionIcon.js +0 -0
- package/dist/{components → lib/src/components}/top-bar/TopBarBrand.js +0 -0
- package/dist/{components → lib/src/components}/video/Video.js +1 -1
- package/dist/{constants → lib/src/constants}/zIndices.js +0 -0
- package/dist/{index.js → lib/src/index.js} +0 -0
- package/dist/{stitches.js → lib/src/stitches.js} +0 -0
- package/dist/{utilities → lib/src/utilities}/create-theme-variants/createThemeVariants.js +0 -0
- package/dist/{utilities → lib/src/utilities}/css-wrapper/CSSWrapper.js +0 -0
- package/dist/lib/src/utilities/hooks/useCallbackRef.js +1 -0
- package/dist/{utilities → lib/src/utilities}/hooks/useIsMountedRef.js +0 -0
- package/dist/{utilities → lib/src/utilities}/hooks/useScrollPosition.js +0 -0
- package/dist/{utilities → lib/src/utilities}/optionally-visually-hidden-container/OptionallyVisuallyHiddenContainer.js +0 -0
- package/dist/{utilities → lib/src/utilities}/override-stitches-variant-value/overrideStitchesVariantValue.js +0 -0
- package/dist/{utilities → lib/src/utilities}/style/capsize.js +0 -0
- package/dist/{utilities → lib/src/utilities}/style/encode-background-icon.js +0 -0
- package/dist/{utilities → lib/src/utilities}/style/focus-visible-style-block.js +0 -0
- package/dist/{utilities → lib/src/utilities}/style/keyframe-animations.js +0 -0
- package/package.json +5 -5
- package/dist/components/accordion/AccordionContent.js +0 -1
- package/dist/components/accordion/AccordionItem.js +0 -1
- package/dist/components/accordion/AccordionTrigger.js +0 -1
- package/dist/components/carousel/CarouselSlide.js +0 -1
- package/dist/components/chip/ChipGroup.js +0 -1
- package/dist/components/data-table/DataTableBody.js +0 -1
- package/dist/components/data-table/DataTableDataCell.js +0 -1
- package/dist/components/dismissible/DismissibleRoot.js +0 -1
- package/dist/components/dismissible/DismissibleTrigger.js +0 -1
- package/dist/components/dropdown-menu/DropdownMenuLinkItem.js +0 -1
- package/dist/components/field-wrapper/FieldDescription.js +0 -1
- package/dist/components/file-input/FileInput.js +0 -1
- package/dist/components/markdown-content/components/MarkdownEmphasis.js +0 -1
- package/dist/components/markdown-content/components/MarkdownHeading.js +0 -1
- package/dist/components/markdown-content/components/MarkdownImage.js +0 -1
- package/dist/components/markdown-content/components/MarkdownLink.js +0 -1
- package/dist/components/markdown-content/components/MarkdownListItem.js +0 -1
- package/dist/components/markdown-content/components/MarkdownParagraph.js +0 -1
- package/dist/components/markdown-content/components/MarkdownStrong.js +0 -1
- package/dist/components/markdown-content/components/MarkdownThematicBreak.js +0 -1
- package/dist/components/navigation/NavigationMenuDropdownContent.js +0 -1
- package/dist/components/number-input/NumberInput.js +0 -1
- package/dist/components/radio-card/RadioCardGroup.js +0 -1
- package/dist/components/select-field/SelectField.js +0 -1
- package/dist/components/table/TableRow.js +0 -1
- package/dist/components/tabs/TabTrigger.js +0 -1
- package/dist/components/tabs/Tabs.js +0 -1
- package/dist/components/tabs/TabsTriggerList.js +0 -1
- package/dist/components/tabs/utils.d.ts +0 -2
- package/dist/components/tabs/utils.js +0 -1
- package/dist/components/toggle-group/ToggleGroupButton.js +0 -1
- package/dist/utilities/hooks/useCallbackRef.js +0 -1
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Close as r}from"@atom-learning/icons";import{Content as l,Arrow as p,Close as h}from"@radix-ui/react-popover";import*as e from"react";import{POPOVER_Z_INDEX as c}from"../../constants/zIndices.js";import{styled as t}from"../../stitches.js";import{ActionIcon as f}from"../action-icon/ActionIcon.js";import{Icon as
|
|
1
|
+
import{Close as r}from"@atom-learning/icons";import{Content as l,Arrow as p,Close as h}from"@radix-ui/react-popover";import*as e from"react";import{POPOVER_Z_INDEX as c}from"../../constants/zIndices.js";import{styled as t}from"../../stitches.js";import{ActionIcon as f}from"../action-icon/ActionIcon.js";import{Icon as $}from"../icon/Icon.js";import{slideDownAndFade as x,slideLeftAndFade as g,slideUpAndFade as w,slideRightAndFade as z}from"../../utilities/style/keyframe-animations.js";const b=t(l,{bg:"white",borderRadius:"$1",boxShadow:"$2",maxWidth:"90vw",p:"$sizes$2",pr:"$6",position:"relative",zIndex:c,"@allowMotion":{animationDuration:"75ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",'&[data-state="open"]':{'&[data-side="top"]':{animationName:x},'&[data-side="right"]':{animationName:g},'&[data-side="bottom"]':{animationName:w},'&[data-side="left"]':{animationName:z}}},variants:{size:{sm:{maxWidth:"200px"},md:{maxWidth:"400px"},lg:{maxWidth:"600px"}}}}),C=t(p,{fill:"white",zIndex:1,'[data-align="end"] &':{mr:"$sizes$2"},'[data-align="start"] &':{ml:"$sizes$2"}}),u=({children:i,side:o="top",sideOffset:a=8,closePopoverText:s="Close popover",showCloseButton:n=!0,size:m="md",...d})=>e.createElement(b,{size:m,side:o,sideOffset:a,...d},n&&e.createElement(f,{as:h,css:{position:"absolute",right:"$0",top:"$0"},label:s,size:"md",theme:"neutral"},e.createElement($,{is:r})),i,e.createElement(C,{width:16,height:8}));export{u as PopoverContent};
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as o from"@radix-ui/react-radio-group";import*as r from"react";import{styled as
|
|
1
|
+
import*as o from"@radix-ui/react-radio-group";import*as r from"react";import{styled as e}from"../../stitches.js";const n=e(o.Item,{alignItems:"center",appearance:"none",backgroundColor:"transparent",border:"1px solid $tonal400",borderRadius:"$round",color:"white",cursor:"pointer",display:"flex",justifyContent:"center",p:0,size:"$1",transition:"all 50ms ease-out","&:focus":{outline:"2px solid $primary",outlineOffset:"1px"},'&[data-state="checked"]':{backgroundColor:"$primary",borderColor:"$primary"},"&[disabled]":{backgroundColor:"$tonal100",borderColor:"$tonal400",color:"$tonal400",cursor:"not-allowed"}}),l=e(o.Indicator,{size:"6px",borderRadius:"$round",backgroundColor:"currentcolor",position:"absolute"}),t=a=>r.createElement(n,{...a},r.createElement(l,null));t.displayName="RadioButton";export{t as RadioButton};
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{useFormContext as F,Controller as g}from"react-hook-form";import{Description as C}from"../field-wrapper/FieldDescription.js";import"../form/Form.js";import{useFieldError as V}from"../form/useFieldError.js";import{Label as b}from"../label/Label.js";import"../radio-button/RadioButton.js";import{RadioButtonGroup as h}from"../radio-button/RadioButtonGroup.js";import{InlineMessage as v}from"../inline-message/InlineMessage.js";import{styled as B}from"../../stitches.js";import{RadioField as R}from"./RadioField.js";const
|
|
1
|
+
import*as e from"react";import{useFormContext as F,Controller as g}from"react-hook-form";import{Description as C}from"../field-wrapper/FieldDescription.js";import"../form/Form.js";import{useFieldError as V}from"../form/useFieldError.js";import{Label as b}from"../label/Label.js";import"../radio-button/RadioButton.js";import{RadioButtonGroup as h}from"../radio-button/RadioButtonGroup.js";import{InlineMessage as v}from"../inline-message/InlineMessage.js";import{styled as B}from"../../stitches.js";import{RadioField as R}from"./RadioField.js";const $=B("fieldset",{all:"unset"}),r=({children:s,css:d,direction:u="column",defaultValue:t,description:l,label:c,name:n,validation:o,onValueChange:a})=>{const{control:p}=F(),{error:m}=V(n);return e.createElement($,{css:d},e.createElement(b,{as:"legend",css:{p:0,mb:"$3"},required:Boolean(o==null?void 0:o.required)},c),l&&e.createElement(C,{css:{mb:"$3"}},l),e.createElement(g,{control:p,name:n,rules:o,defaultValue:t,render:({onChange:f,value:E})=>e.createElement(h,{direction:u,defaultValue:t,onValueChange:i=>{f(i),a==null||a(i)},value:E},s)}),m&&e.createElement(v,{css:{mt:"$2"}},m))};r.Item=R,r.displayName="RadioButtonField";export{r as RadioButtonField};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import"../field-wrapper/FieldWrapper.js";import{InlineFieldWrapper as
|
|
1
|
+
import*as e from"react";import"../field-wrapper/FieldWrapper.js";import{InlineFieldWrapper as t}from"../field-wrapper/InlineFieldWrapper.js";import{RadioButton as m}from"../radio-button/RadioButton.js";import"../radio-button/RadioButtonGroup.js";const o=({css:a,label:i,value:l,...r})=>e.createElement(t,{css:a,label:i},e.createElement(m,{value:l,...r}));o.displayName="RadioField";export{o as RadioField};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as d from"@radix-ui/react-radio-group";import*as e from"react";import{Stack as p}from"../stack/Stack.js";import{RadioCard as c}from"./RadioCard.js";const f=({css:t,children:r,size:o,isFullWidth:l,align:a,gap:s="3",justify:m,...n})=>e.createElement(d.Root,{...n},e.createElement(p,{direction:"row",justify:m,gap:s,css:t},e.Children.map(r,i=>e.isValidElement(i)&&(i==null?void 0:i.type)===c?e.cloneElement(i,{size:o,isFullWidth:l,align:a}):i)));export{f as RadioCardGroup};
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Search as
|
|
1
|
+
import{Search as z,Close as y}from"@atom-learning/icons";import*as t from"react";import{ActionIcon as H}from"../action-icon/ActionIcon.js";import{Box as I}from"../box/Box.js";import{Icon as l}from"../icon/Icon.js";import{Input as k}from"../input/Input.js";import{styled as p}from"../../stitches.js";import{useCallbackRef as L}from"../../utilities/hooks/useCallbackRef.js";var $=(e=>(e.SEARCH="SEARCH",e.CLEAR="CLEAR",e))($||{});const x=p(l,{color:"$tonal300",position:"absolute",pointerEvents:"none",variants:{size:{sm:{top:"$2",right:"$2",size:"$1"},md:{top:10,right:10,size:20}}}}),O=p(k,{'&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, & input[type="search"]::-webkit-search-results-decoration':{display:"none"}}),u=t.forwardRef(({size:e="md",css:m,value:n,clearText:E="Clear",onChange:a,...h},b)=>{const[i,f]=L(),[v,C]=t.useState(n||""),[d,R]=t.useState(n?"CLEAR":"SEARCH");t.useImperativeHandle(b,()=>i.current);const A=()=>{var r,c;const o=i.current;if(!o)return;const s=(r=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))==null?void 0:r.set;(c=s==null?void 0:s.call)==null||c.call(s,o,"");const w=new Event("input",{bubbles:!0});o.dispatchEvent(w),o.focus()},S=r=>{C(r.target.value),R(r.target.value?"CLEAR":"SEARCH"),a==null||a(r)},g=()=>d==="SEARCH"?t.createElement(x,{is:z,size:e,css:{size:e=="sm"?"$1":20}}):t.createElement(H,{label:E,theme:"neutral",size:e,css:{position:"absolute",top:"0",right:"$1"},onClick:A},t.createElement(l,{is:y}));return t.createElement(I,{css:{position:"relative",...m}},t.createElement(O,{ref:f,size:e,type:"search",...h,value:v,onChange:S,css:{pr:e==="sm"?"$5":"$6"}}),g())});u.displayName="SearchInput";export{u as SearchInput};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as t from"react";import{useFormContext as u}from"react-hook-form";import{FieldWrapper as F}from"../field-wrapper/FieldWrapper.js";import"../field-wrapper/InlineFieldWrapper.js";import"../form/Form.js";import{useFieldError as b}from"../form/useFieldError.js";import{Select as h}from"../select/Select.js";const l=({css:m=void 0,children:d,name:e,label:p,validation:r,prompt:a,description:n,hideLabel:s,...c})=>{const{register:o}=u(),{error:i}=b(e),f=r?o(r):o;return t.createElement(F,{css:m,description:n,error:i,fieldId:e,label:p,prompt:a,required:Boolean(r==null?void 0:r.required),hideLabel:s},t.createElement(h,{name:e,id:e,...c,ref:f,...i&&{state:"error"}},d))};l.displayName="SelectField";export{l as SelectField};
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"react";import{Content as i}from"@radix-ui/react-accordion";import{Box as n}from"../../box/Box.js";import{keyframes as
|
|
1
|
+
import t from"react";import{Content as i}from"@radix-ui/react-accordion";import{Box as n}from"../../box/Box.js";import{keyframes as o,styled as m}from"../../../stitches.js";const c=o({from:{height:0},to:{height:"var(--radix-accordion-content-height)"}}),d=o({from:{height:"var(--radix-accordion-content-height)"},to:{height:0}}),h=m(i,{bg:"white",overflow:"hidden","@allowMotion":{'&[data-state="open"]':{animation:`${c} 300ms ease-out`},'&[data-state="closed"]':{animation:`${d} 300ms ease-out`}}}),s=({children:e,...a})=>t.createElement(h,{...a},t.Children.map(e,r=>t.createElement(n,{css:{"> a":{px:"$6"},"> button":{px:"$6"}}},r)));export{s as SidedrawerAccordionContent};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Content as a,Portal as i}from"@radix-ui/react-dialog";import
|
|
1
|
+
import{Content as a,Portal as i}from"@radix-ui/react-dialog";import e from"react";import{MAX_Z_INDEX as r}from"../../constants/zIndices.js";import{styled as n}from"../../stitches.js";import{SidedrawerOverlay as d}from"./SidedrawerOverlay.js";import{slideInLeft as l,slideOutLeft as m}from"../../utilities/style/keyframe-animations.js";const s=n(a,{bg:"white",boxShadow:"$2",display:"flex",flexDirection:"column",position:"fixed",top:0,left:0,height:"100%",maxWidth:"304px",width:"100%",zIndex:r,"@allowMotion":{'&[data-state="open"]':{animation:`${l} 250ms ease-out`},'&[data-state="closed"]':{animation:`${m} 250ms ease-out`}}}),f=({children:t,...o})=>e.createElement(i,null,e.createElement(d,{"data-testid":"sidedrawer_overlay"}),e.createElement(s,{role:"navigation",...o},t));export{f as SidedrawerContent};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{useFormContext as x,Controller as E}from"react-hook-form";import{FieldWrapper as V}from"../field-wrapper/FieldWrapper.js";import"../field-wrapper/InlineFieldWrapper.js";import{Slider as l}from"../slider/Slider.js";const
|
|
1
|
+
import e from"react";import{useFormContext as x,Controller as E}from"react-hook-form";import{FieldWrapper as V}from"../field-wrapper/FieldWrapper.js";import"../field-wrapper/InlineFieldWrapper.js";import{Slider as l}from"../slider/Slider.js";const n=({css:u,label:i,name:t,defaultValue:a,outputLabel:p,min:r=0,max:m=100,steps:d=[],...s})=>{const{control:c}=x();return e.createElement(V,{css:u,fieldId:t,label:i},e.createElement(E,{control:c,name:t,defaultValue:a,render:({onChange:f,value:o})=>e.createElement(l,{name:t,defaultValue:a,onValueChange:f,value:o,min:r,max:m,...s},e.createElement(l.Steps,{min:r,max:m,steps:d}),e.createElement(l.Value,{value:o||a,outputLabel:p}))}))};n.displayName="SliderField";export{n as SliderField};
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as t from"react";import{styled as r}from"../../stitches.js";import{StyledDivider as e}from"../divider/Divider.js";import{StyledHeading as d}from"../heading/Heading.js";import{StyledImage as a}from"../image/Image.js";import{StyledList as l}from"../list/List.js";import{StyledText as c}from"../text/Text.js";const f=r("div",{"& > *":{"&:not(:first-child)":{mt:"$5"},"&:not(:last-child)":{mb:"$5"}},[`& > ${d}`]:{maxWidth:"65ch"},[`& > ${c}`]:{maxWidth:"75ch"},[`& > ${l}`]:{maxWidth:"75ch"},[`& > ${e}`]:{my:"$5"},[`& > ${a}`]:{display:"block","&:not(:first-child)":{mt:"$6"},"&:not(:last-child)":{mb:"$6"}}}),
|
|
1
|
+
import*as t from"react";import{styled as r}from"../../stitches.js";import{StyledDivider as e}from"../divider/Divider.js";import{StyledHeading as d}from"../heading/Heading.js";import{StyledImage as a}from"../image/Image.js";import{StyledList as l}from"../list/List.js";import{StyledText as c}from"../text/Text.js";const f=r("div",{"& > *":{"&:not(:first-child)":{mt:"$5"},"&:not(:last-child)":{mb:"$5"}},[`& > ${d}`]:{maxWidth:"65ch"},[`& > ${c}`]:{maxWidth:"75ch"},[`& > ${l}`]:{maxWidth:"75ch"},[`& > ${e}`]:{my:"$5"},[`& > ${a}`]:{display:"block","&:not(:first-child)":{mt:"$6"},"&:not(:last-child)":{mb:"$6"}}}),o=t.forwardRef((m,i)=>t.createElement(f,{ref:i,...m}));o.displayName="StackContent";export{o as StackContent};
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as i from"react";import{Button as n}from"../button/Button.js";import{useStepper as a}from"./stepper-context/StepperContext.js";const l=({label:e,children:
|
|
1
|
+
import*as i from"react";import{Button as n}from"../button/Button.js";import{useStepper as a}from"./stepper-context/StepperContext.js";const l=({label:e,children:t,...r})=>{const{activeStep:o,goToPreviousStep:p}=a();return i.createElement(n,{size:"sm",appearance:"outline",...r,disabled:o===0,onClick:p},t||(e==null?void 0:e(o)))};export{l as StepperStepBack};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from"react";import{styled as l}from"../../stitches.js";import{TableHeaderCell as e}from"./TableHeaderCell.js";const r={PRIMARY:"primary",PRIMARY_DARK:"primaryDark",LIGHT:"light"},i=l("thead",{variants:{theme:{[r.PRIMARY]:{[`${e}`]:{bg:"$primary"}},[r.PRIMARY_DARK]:{[`${e}`]:{bg:"$primaryDark"}},[r.LIGHT]:{[`${e}`]:{bg:"$tonal50",color:"$tonal600"}}}}}),a=({theme:t="primaryDark",...m})=>o.createElement(i,{theme:t,...m});a.displayName="TableHeader";export{r as TABLE_HEADER_THEMES,a as TableHeader};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";import{styled as l}from"../../stitches.js";const o=l("tr",{bg:"unset"}),r=e.forwardRef((t,a)=>e.createElement(o,{...t,ref:a}));r.displayName="TableRow";export{o as StyledRow,r as TableRow};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Root as e}from"@radix-ui/react-tabs";import*as i from"react";import{styled as m}from"../../stitches.js";import{TabsTriggerList as s}from"./TabsTriggerList.js";import{TabsTrigger as a}from"./TabsTrigger.js";import{TabsContent as g}from"./TabsContent.js";const T=m(e),r=({children:o,...t})=>i.createElement(T,{...t},o);r.TriggerList=s,r.Trigger=a,r.Content=g,r.displayName="Tabs";export{r as Tabs};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Content as o}from"@radix-ui/react-tabs";import{styled as t}from"../../stitches.js";const n=t(o,{flexGrow:1,fontFamily:"$body"}),r=n;export{r as TabsContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Trigger as i}from"@radix-ui/react-tabs";import*as e from"react";import{styled as a}from"../../stitches.js";import{Text as n}from"../text/Text.js";import{focusVisibleStyleBlock as c}from"../../utilities/style/focus-visible-style-block.js";const s=a(i,{background:"none",border:"none",cursor:"pointer",flexShrink:0,p:"$4",userSelect:"none",borderBottom:"2px solid transparent",'&[data-state="active"]':{color:"$interactive1",fontWeight:600,letterSpacing:"-0.005em",borderColor:"currentColor"},"&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{"&:hover, &:focus-visible":{color:"$interactive2",bg:"$accentA1"},"&:active":{color:"$interactive3"},"&:focus-visible":{...c()}}}),r=({children:o,...t})=>e.createElement(s,{asChild:!0,...t},e.createElement(n,{size:"sm",as:"span"},o));r.displayName="TabsTrigger";export{r as TabsTrigger};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{List as r}from"@radix-ui/react-tabs";import i from"react";import{styled as s}from"../../stitches.js";import{ColorScheme as a}from"../../../../color-scheme/dist/ColorScheme.js";const m=s(r,{flexShrink:0,display:"flex",borderBottom:"1px solid $base3",width:"max-content"}),c=({children:e,colorScheme:t={},...o})=>i.createElement(a,{as:m,base:"slate",accent:"blue",interactive:"hiContrast1",...t,...o},e);export{c as TabsTriggerList};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Error as g,Close as
|
|
1
|
+
import{Error as g,Close as $}from"@atom-learning/icons";import*as t from"react";import{toast as h}from"react-hot-toast";import{keyframes as a,styled as i}from"../../stitches.js";import{ActionIcon as v}from"../action-icon/ActionIcon.js";import{Icon as s}from"../icon/Icon.js";import{Loader as y}from"../loader/Loader.js";import{Text as w}from"../text/Text.js";const n=400,x=a({"0%":{transform:"translate3d(0,-100%,0)",opacity:0},"100%":{transform:"translate3d(0,0,0)",opacity:1}}),E=a({"0%":{transform:"translate3d(0,0,0)",opacity:1},"100%":{transform:"translate3d(0,-100%,0)",opacity:0}}),k=i("div",{position:"absolute",width:"100%",variants:{visible:{true:{"@allowMotion":{animation:`${x} 250ms cubic-bezier(0.22, 1, 0.36, 1)`}},false:{opacity:0,"@allowMotion":{animation:`${E} 250ms cubic-bezier(0.22, 1, 0.36, 1)`}}}}}),I=i("div",{pointerEvents:"auto",alignItems:"center",borderRadius:"$0",boxShadow:"$1",boxSizing:"border-box",color:"white",display:"flex",minHeight:"$5",pl:"$4",position:"relative",pr:"$6",py:"$4",transition:"background-color 50ms ease-out",width:"100%","@sm":{width:n},"@allowMotion":{transition:"background-color 50ms ease-out, transform 150ms ease-out"},variants:{status:{blank:{bg:"$primary"},error:{bg:"$danger"},loading:{bg:"$primary"},success:{bg:"$success"}}}}),T=t.memo(({ariaLive:l,height:m,id:e,message:c,role:p,type:o="blank",visible:d,calculateOffset:u,updateHeight:b})=>{const f=u(e,{reverseOrder:!0,margin:8});return t.createElement(k,{visible:d},t.createElement(I,{ref:r=>{r&&m===void 0&&b(e,r.getBoundingClientRect().height)},status:o,role:p,"aria-live":l,style:{transform:`translateY(${f}px)`}},o==="error"&&t.createElement(s,{size:"sm",css:{mr:"$3",flex:"0 0 auto"},is:g}),t.createElement(w,null,c),o==="loading"?t.createElement(y,{css:{flex:"0 0 auto",ml:"auto"}}):t.createElement(v,{css:{position:"absolute",top:"$2",right:"$2",color:"white","&:hover,&:focus":{color:"white",opacity:.5}},label:"Close alert",onClick:()=>h.dismiss(e)},t.createElement(s,{is:$}))))});export{n as TOAST_WIDTH,T as Toast};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as t from"react";import{useToaster as p}from"react-hot-toast";import{default as
|
|
1
|
+
import*as t from"react";import{useToaster as p}from"react-hot-toast";import{default as _}from"react-hot-toast";import{styled as c}from"../../stitches.js";import{TOAST_WIDTH as d,Toast as f}from"./Toast.js";import{MAX_Z_INDEX as u}from"../../constants/zIndices.js";const T=c("div",{left:"$2",position:"fixed",top:"$2",right:"$2",zIndex:u,"@sm":{top:"$3",right:"auto",left:`calc(50% - ${d/2}px)`}}),o=({children:a})=>{const{toasts:r,handlers:s}=p(),{startPause:i,endPause:m,calculateOffset:n,updateHeight:l}=s;return t.createElement(t.Fragment,null,t.createElement(T,{onMouseEnter:i,onMouseLeave:m},r.map(e=>t.createElement(f,{key:e.id,calculateOffset:n,updateHeight:l,...e}))),a)};o.displayName="ToastProvider";export{o as ToastProvider,_ as toast};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as n from"react";import{styled as g}from"../../stitches.js";import{StyledIcon as f,Icon as r}from"../icon/Icon.js";import{StyledItem as h}from"./ToggleGroupItem.js";const t={sm:"32px",md:"40px",lg:"48px"},$={sm:"$4",md:"$5",lg:"$5"},u={sm:"$2",md:"$3",lg:"$3"},l=i=>({fontSize:`$${i}`,px:$[i],minHeight:t[i],"& > *:not(:last-child)":{mr:u[i]}}),d=g(h,{flexGrow:1,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,lineHeight:1,py:"$1",[`& ${f}`]:{flexShrink:0},variants:{size:{sm:l("sm"),md:l("md"),lg:l("lg")},isIconOnly:{true:{}}},compoundVariants:[{isIconOnly:!0,size:"sm",css:{minWidth:t.sm,p:0}},{isIconOnly:!0,size:"md",css:{minWidth:t.md,p:0}},{isIconOnly:!0,size:"lg",css:{minWidth:t.lg,p:0}}]}),x=n.forwardRef(({size:i="md",children:p,...c},a)=>{var o;const s=n.Children.toArray(p),m=s.length<=1,y=m&&n.isValidElement(s[0])&&((o=s[0])==null?void 0:o.type)===r;return n.createElement(d,{ref:a,size:i,isIconOnly:y,...c},s.map(e=>!m&&typeof e=="string"?n.createElement("span",{key:e},e):n.isValidElement(e)&&(e==null?void 0:e.type)===r?n.cloneElement(e,{...e.props,size:i}):e))});export{d as StyledButton,x as ToggleGroupButton};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Content as m,Arrow as l}from"@radix-ui/react-tooltip";import*as
|
|
1
|
+
import{Content as m,Arrow as l}from"@radix-ui/react-tooltip";import*as a from"react";import{TOOLTIP_Z_INDEX as r}from"../../constants/zIndices.js";import{styled as t}from"../../stitches.js";import{slideDownAndFade as s,slideLeftAndFade as p,slideUpAndFade as f,slideRightAndFade as c}from"../../utilities/style/keyframe-animations.js";const h=t(m,{backgroundColor:"$tonal500",borderRadius:"$0",boxShadow:"$0",color:"white",fontFamily:"$body",fontSize:"$sm",lineHeight:1.5,whiteSpace:"normal",px:"$3",py:"$2",zIndex:r,"@allowMotion":{animationDuration:"75ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",'&[data-state="delayed-open"]':{'&[data-side="top"]':{animationName:s},'&[data-side="right"]':{animationName:p},'&[data-side="bottom"]':{animationName:f},'&[data-side="left"]':{animationName:c}}},variants:{size:{sm:{maxWidth:"100px"},md:{maxWidth:"250px"},lg:{maxWidth:"400px"}}}}),x=t(l,{fill:"$tonal500",'[data-align="end"] &':{mr:"$2"},'[data-align="start"] &':{ml:"$2"}}),$=({children:i,side:e="top",sideOffset:o=4,size:n="md",...d})=>a.createElement(h,{side:e,sideOffset:o,size:n,...d},i,a.createElement(x,null));export{$ as TooltipContent};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import m from"react-player/vimeo";import{Box as p}from"../box/Box.js";import{styled as a}from"../../stitches.js";import{CSSWrapper as l}from"../../utilities/css-wrapper/CSSWrapper.js";const f=a(m,{}),o=e.forwardRef(({id:
|
|
1
|
+
import*as e from"react";import m from"react-player/vimeo";import{Box as p}from"../box/Box.js";import{styled as a}from"../../stitches.js";import{CSSWrapper as l}from"../../utilities/css-wrapper/CSSWrapper.js";const f=a(m,{}),o=e.forwardRef(({id:r,ratio:t=9/16,css:i,...s},d)=>e.createElement(l,{css:i},e.createElement(p,{css:{borderRadius:"$0",position:"relative",paddingTop:`${t*100}%`,overflow:"hidden",height:0,width:"100%"}},e.createElement(f,{...s,role:"figure",url:`https://player.vimeo.com/video/${r}`,height:"100%",width:"100%",css:{position:"absolute",top:0,left:0},ref:d}))));o.displayName="Video";export{o as Video};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as n from"react";const s=()=>{const e=n.useRef(null),o=n.useCallback(r=>{r&&(e.current=r)},[]);return[e,o]};export{s as useCallbackRef};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
|
-
"version": "2.
|
|
7
|
+
"version": "2.29.1-beta.0",
|
|
8
8
|
"description": "",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist"
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"size-limit": [
|
|
44
44
|
{
|
|
45
45
|
"limit": "10kb",
|
|
46
|
-
"path": "dist/index.js",
|
|
46
|
+
"path": "dist/lib/src/index.js",
|
|
47
47
|
"import": "{ Box }"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"limit": "16kb",
|
|
51
|
-
"path": "dist/index.js",
|
|
51
|
+
"path": "dist/lib/src/index.js",
|
|
52
52
|
"import": "{ Button }"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"limit": "75kb",
|
|
56
|
-
"path": "dist/index.js",
|
|
56
|
+
"path": "dist/lib/src/index.js",
|
|
57
57
|
"import": "{ useAlert, AlertProvider }"
|
|
58
58
|
}
|
|
59
59
|
],
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"husky": {
|
|
172
172
|
"hooks": {
|
|
173
173
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
174
|
-
"pre-commit": "bash scripts/prevent-commit.sh && lint-staged"
|
|
174
|
+
"pre-commit": "bash ../scripts/prevent-commit.sh && lint-staged"
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
177
|
"commitlint": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Content as i}from"@radix-ui/react-accordion";import t from"react";import{keyframes as e,styled as n}from"../../stitches.js";import{CSSWrapper as c}from"../../utilities/css-wrapper/CSSWrapper.js";const d=e({from:{height:0},to:{height:"var(--radix-accordion-content-height)"}}),m=e({from:{height:"var(--radix-accordion-content-height)"},to:{height:0}}),s=n(i,{border:0,width:"100%",bg:"#fff",'&[data-state="open"]':{borderRadius:"0 0 $0 $0"},"@allowMotion":{'&[data-state="open"]':{animation:`${d} 300ms ease-out`},'&[data-state="closed"]':{animation:`${m} 300ms ease-out`}}}),h=({children:o,css:a,...r})=>t.createElement(s,{...r},t.createElement(c,{css:a},o));export{h as AccordionContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Item as r}from"@radix-ui/react-accordion";import m from"react";import{styled as d}from"../../stitches.js";const l=d(r,{width:"100%",overflow:"hidden","&:not(:last-child)":{mb:"$1"}}),i=({children:t,value:e,...o})=>m.createElement(l,{value:e,...o},t);export{i as AccordionItem};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ChevronDown as s}from"@atom-learning/icons";import{Trigger as l}from"@radix-ui/react-accordion";import{darken as r}from"color2k";import n from"react";import{styled as i,theme as f}from"../../stitches.js";import{Icon as d}from"../icon/Icon.js";const a=(t,e,o,m="#fff")=>({bg:t,color:m,"&[disabled]":{bg:"$tonal100",cursor:"not-allowed",color:"$tonal400"},"&:not([disabled]):hover":{bg:e},"&:not([disabled]):active":{bg:o}}),p=i(d,{transition:"transform 300ms",'[data-state="open"] > &':{transform:"rotate(180deg)"},'[data-state="closed"] > &':{transform:"rotate(0deg)"}}),c=i(l,{border:0,py:"$3",px:"$4",width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",'&[data-state="open"]':{borderRadius:"$0 $0 0 0"},'&[data-state="closed"]':{borderRadius:"$0"},variants:{theme:{primaryDark:a("$primaryDark",r(f.colors.primaryDark.value,.1),r(f.colors.primaryDark.value,.15)),light:a("#fff",r("#fff",.1),r("#fff",.15),"$tonal600"),tonal:a("$tonal100",r("#fff",.1),r("#fff",.15),"$tonal500")}}}),g=({theme:t="primaryDark",children:e,...o})=>n.createElement(c,{theme:t,...o},e,n.createElement(p,{is:s}));export{g as AccordionTrigger};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Slide as r}from"pure-react-carousel";import*as e from"react";import{Box as m}from"../box/Box.js";import{styled as i}from"../../stitches.js";const l=i(r,{}),s=({children:t,...o})=>e.createElement(l,{...o,tag:"div"},e.createElement(m,{css:{px:"$3"}},t));export{s as CarouselSlide};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as r from"react";import{Stack as a}from"../stack/Stack.js";const p=r.forwardRef(({gap:o=2,...t},e)=>r.createElement(a,{ref:e,direction:"row",gap:o,align:!1,...t}));export{p as ChipGroup};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as t from"react";import{Table as m}from"../table/Table.js";import{useDataTable as p}from"./DataTableContext.js";import{DataTable as i}from"./DataTable.js";const l=({striped:r=!1,...o})=>{const{getRowModel:a}=p();return t.createElement(m.Body,{...o,striped:r},a().rows.map(e=>t.createElement(i.Row,{row:e,key:e.id})))};export{l as DataTableBody};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as l from"react";import{Table as t}from"../table/Table.js";import{flexRender as o}from"@tanstack/react-table";const m=({cell:e})=>l.createElement(t.Cell,{key:e.id},o(e.column.columnDef.cell,e.getContext()));export{m as DataTableDataCell};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{Slot as c}from"@radix-ui/react-slot";const r=e.createContext({isDismissed:!1,setIsDismissed:()=>null}),n=({children:t,disabled:s})=>{const[i,l]=e.useState(!1),o=e.useMemo(()=>({disabled:s,isDismissed:i,setIsDismissed:l}),[s,i]);return e.createElement(r.Provider,{value:o},t)},u=({asChild:t=!1,value:s,onDismiss:i,...l})=>{const o=e.useContext(r),{isDismissed:d,disabled:a}=o;if(e.useEffect(()=>{d&&(i==null||i(s))},[d]),d)return null;const m={...a&&{["data-disabled"]:""},...l};return e.createElement(t?c:"div",{...m})},b=({disabled:t=!1,...s})=>e.createElement(n,{disabled:t},e.createElement(u,{...s}));export{b as DismissibleRoot,r as DismissibleRootContext,n as DismissibleRootProvider};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as t from"react";import{Slot as m}from"@radix-ui/react-slot";import{DismissibleRootContext as l}from"./DismissibleRoot.js";const b=s=>t.createElement("button",{type:"button",...s},"Dismiss"),a=({asChild:s=!1,...i})=>{const e=t.useContext(l);if(e===void 0)throw new Error("Dismissible.Trigger can only be used within a Dismissible.Item");const{setIsDismissed:o,disabled:r}=e,n={disabled:r,onClick:()=>{o(!0)},...i};return t.createElement(s?m:b,{...n})};export{a as DismissibleTrigger};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"react";import{styled as n}from"../../stitches.js";import{DropdownMenuItem as m}from"./DropdownMenuItem.js";const i=n("a",{textDecoration:"none"}),l=({children:t,href:o,...r})=>e.createElement(m,{...r,asChild:!0},e.createElement(i,{href:o,role:"menuitem"},t));export{l as DropdownMenuLinkItem};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{Text as r}from"../text/Text.js";const s=({children:t,css:o})=>e.createElement(r,{size:"sm",css:{color:"$tonal300",maxWidth:"80ch",...o}},t);export{s as Description};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Upload as c}from"@atom-learning/icons";import*as e from"react";import{Button as s}from"../button/Button.js";import{Icon as u}from"../icon/Icon.js";const t=({accept:l,children:i,multiple:n=!1,onFileSelect:o,...r})=>{const p=a=>{const{files:m}=a.target;o(m)};return e.createElement(s,{as:"label",...r},e.createElement(u,{is:c}),i,e.createElement("input",{type:"file",onChange:p,accept:l,multiple:n,hidden:!0}))};t.displayName="FileInput";export{t as FileInput};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as l from"react";import{styled as n}from"../../../stitches.js";const o=n("em",{fontStyle:"italic"}),a=({node:t,handleNode:r})=>{var e;return l.createElement(o,null,(e=t.children)==null?void 0:e.map(r))};export{a as MarkdownEmphasis,o as StyledMarkdownEmphasis};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as i from"react";import{Heading as d}from"../../heading/Heading.js";const o=e=>{switch(e){case 1:return{size:"xl",as:"h1"};case 2:return{size:"lg",as:"h2"};case 3:return{size:"md",as:"h3"};case 4:return{size:"sm",as:"h4"};case 5:return{size:"xs",as:"h5"};default:return{size:"xs",as:"h6"}}},c=({node:e,handleNode:r,...a})=>{var s;const{as:t,size:n}=o(e.depth);return i.createElement(d,{as:t,size:n,...a},(s=e.children)==null?void 0:s.map(r))};export{c as MarkdownHeading};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{Image as o}from"../../image/Image.js";const m=({node:r,css:a})=>{var t;return e.createElement(o,{src:r.url,alt:(t=r.alt)!=null?t:void 0,css:a})};export{m as MarkdownImage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as l from"react";import{Link as i}from"../../link/Link.js";const n=({node:e,handleNode:o})=>{var r,t;return l.createElement(i,{title:(r=e.title)!=null?r:void 0,href:e.url},(t=e.children)==null?void 0:t.map(o))};export{n as MarkdownLink};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as o from"react";import{List as n}from"../../list/List.js";const m=({node:e,handleNode:r})=>{var t;return o.createElement(n.Item,null,(t=e.children)==null?void 0:t.map(r))};export{m as MarkdownListItem};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as t from"react";import{Text as n}from"../../text/Text.js";const d=({node:e,handleNode:a,...o})=>{var r;return t.createElement(n,{...o},(r=e.children)==null?void 0:r.map(a))};export{d as MarkdownParagraph};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as r from"react";import{styled as e}from"../../../stitches.js";const d=e("strong",{fontWeight:600}),l=({node:t,handleNode:n})=>{var o;return r.createElement(d,null,(o=t.children)==null?void 0:o.map(n))};export{l as MarkdownStrong};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as t from"react";import{Divider as e}from"../../divider/Divider.js";const o=({css:r})=>t.createElement(e,{css:{width:"100%",...r}});export{o as MarkdownThematicBreak};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as r from"@radix-ui/react-navigation-menu";import t from"react";import{styled as e}from"../../stitches.js";const i=e("ul",{listStyle:"none",m:0,p:0}),l=e(r.Content,{p:"$3",bg:"white",mt:"4px",boxShadow:"$1",borderRadius:"$1"}),o=({children:n})=>t.createElement(l,null,t.createElement(i,null,n));o.displayName="NavigationMenuDropdownContent";export{o as NavigationMenuDropdownContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Minus as B,Plus as $}from"@atom-learning/icons";import*as t from"react";import{Flex as F}from"../flex/Flex.js";import{Input as H}from"../input/Input.js";import{NumberInputStepper as x}from"./NumberInputStepper.js";const N=t.forwardRef((g,k)=>{const{name:E,min:o=0,max:l=Number.MAX_SAFE_INTEGER,step:s=1,initialValue:y=0,disabled:u=!1,readonly:m=!1,size:v="md",onChange:C,stepperButtonLabels:T,disabledTooltipContent:A,css:I,...L}=g,[r,M]=t.useState(y),i=t.useRef(null);t.useImperativeHandle(k,()=>i.current);const w={increment:"increment",decrement:"decrement",...T},R={decrement:`Cannot enter values below ${o}`,increment:`Cannot enter values above ${l}`,...A},d=r>=l,c=r<=o,p=t.useCallback(e=>Math.min(Math.max(e,o),l),[l,o]),a=t.useCallback(e=>{M(e),C==null||C(Number(e))},[C]),z=t.useCallback(e=>{const n=e.target.value.replace(/\D/g,"");a(n)},[a]),b=t.useCallback(()=>{var e;if(d||m)return;(e=i==null?void 0:i.current)==null||e.focus();let n;r===""?n=s:n=Number(r)+s,a(p(n))},[p,d,m,s,a,r]),f=t.useCallback(()=>{var e;if(c||m)return;(e=i==null?void 0:i.current)==null||e.focus();let n;r===""?n=o:n=Number(r)-s,a(p(n))},[p,c,m,o,s,a,r]),D=t.useCallback(e=>{if(e.nativeEvent.isComposing)return;const n=e.key,h={ArrowUp:b,ArrowRight:b,ArrowDown:f,ArrowLeft:f,Home:()=>a(o),End:()=>a(l)}[n];h&&(e.preventDefault(),h(e))},[b,f,a,o,l]),S={name:E,type:"number",value:r,...L,onChange:z,onKeyDown:D,size:v,css:{borderRadius:"0px",width:"$6","&:disabled":{opacity:.3,pointerEvents:"none"}},ref:i,readOnly:m,disabled:u,"aria-valuemin":o,"aria-valuemax":l,"aria-valuenow":Number(r),role:"spinbutton"};return t.createElement(F,{css:I},t.createElement(x,{onClick:f,icon:B,css:{borderRight:"none",borderTopRightRadius:"0px",borderBottomRightRadius:"0px"},size:v,disabled:c||u,showTooltip:c&&!u,disabledTooltipContent:R.decrement,label:w.decrement}),t.createElement(H,{...S}),t.createElement(x,{onClick:b,icon:$,css:{borderLeft:"none",borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px"},size:v,disabled:d||u,showTooltip:d&&!u,disabledTooltipContent:R.increment,label:w.increment}))});N.displayName="NumberInput";export{N as NumberInput};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as d from"@radix-ui/react-radio-group";import*as t from"react";import{Stack as p}from"../stack/Stack.js";import{RadioCard as c}from"./RadioCard.js";const f=({css:e,children:r,size:l,isFullWidth:o,align:a,gap:s="3",justify:m,...n})=>t.createElement(d.Root,{...n},t.createElement(p,{direction:"row",justify:m,gap:s,css:e},t.Children.map(r,i=>t.isValidElement(i)&&(i==null?void 0:i.type)===c?t.cloneElement(i,{size:l,isFullWidth:o,align:a}):i)));export{f as RadioCardGroup};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as i from"react";import{useFormContext as u}from"react-hook-form";import{FieldWrapper as F}from"../field-wrapper/FieldWrapper.js";import"../field-wrapper/InlineFieldWrapper.js";import"../form/Form.js";import{useFieldError as b}from"../form/useFieldError.js";import{Select as h}from"../select/Select.js";const l=({css:m=void 0,children:d,name:e,label:p,validation:r,prompt:a,description:n,hideLabel:s,...c})=>{const{register:o}=u(),{error:t}=b(e),f=r?o(r):o;return i.createElement(F,{css:m,description:n,error:t,fieldId:e,label:p,prompt:a,required:Boolean(r==null?void 0:r.required),hideLabel:s},i.createElement(h,{name:e,id:e,...c,ref:f,...t&&{state:"error"}},d))};l.displayName="SelectField";export{l as SelectField};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{styled as l}from"../../stitches.js";const t=l("tr",{bg:"unset"}),o=e.forwardRef((r,a)=>e.createElement(t,{...r,ref:a}));o.displayName="TableRow";export{t as StyledRow,o as TableRow};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Trigger as l}from"@radix-ui/react-tabs";import{opacify as o}from"color2k";import*as n from"react";import{styled as s,theme as e}from"../../stitches.js";const c=s(l,{background:"none",border:"none",cursor:"pointer",flexShrink:0,fontFamily:"$body",p:"$4",height:"$5",userSelect:"none",transition:"0.3s",variants:{theme:{light:{'&[data-state="active"]':{color:"$primary",fontWeight:600,letterSpacing:"-0.005em",boxShadow:"inset 0 -2px 0 0 currentColor"},'&[data-state="inactive"]':{color:"$tonal500"},"&:not([data-disabled]):hover":{color:"$primary",bg:o(e.colors.primary.value,-.9)},"&:not([data-disabled]):active":{color:"$primary",bg:o(e.colors.primary.value,-.8),boxShadow:"none"},"&[data-disabled],&[data-disabled]:hover":{color:"$tonal200",cursor:"not-allowed"}},dark:{color:"white",'&[data-state="active"]':{fontWeight:600,letterSpacing:"-0.005em",boxShadow:"inset 0 -2px 0 0 currentColor"},"&:not([data-disabled]):hover":{bg:o("white",-.8)},"&:not([data-disabled]):active":{bg:o("white",-.7),boxShadow:"none"},"&[data-disabled],&[data-disabled]:hover":{color:"$tonal200",cursor:"not-allowed"}}}}}),a=({children:t,theme:r,disabled:i=!1,...d})=>n.createElement(c,{disabled:i,theme:r,...d},t);a.displayName="TabTrigger";export{a as TabTrigger};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Root as l,Content as n}from"@radix-ui/react-tabs";import*as p from"react";import{styled as e}from"../../stitches.js";import{TriggerListWrapper as o}from"./TabsTriggerList.js";import{TabTrigger as s}from"./TabTrigger.js";import{passPropsToChildren as g}from"./utils.js";const h=e(l,{display:"flex",flexDirection:"column",variants:{theme:{light:{color:"$primary"},dark:{color:"white"}}}}),i=e(n,{flexGrow:1,fontFamily:"$body",variants:{theme:{light:{color:"$textForeground"},dark:{bg:"$primaryDark",color:"white"}}}}),r=({theme:t="light",children:m,...a})=>p.createElement(h,{theme:t,...a},g(m,{theme:t},[o,i]));r.TriggerList=o,r.Trigger=s,r.Content=i,r.displayName="Tabs";export{r as Tabs};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ChevronLeft as P,ChevronRight as R}from"@atom-learning/icons";import{List as _}from"@radix-ui/react-tabs";import{opacify as y}from"color2k";import o,{useRef as F,useState as f,useCallback as J,useEffect as k}from"react";import{debounce as K}from"throttle-debounce";import{ActionIcon as M}from"../action-icon/ActionIcon.js";import{Flex as X}from"../flex/Flex.js";import{Icon as W}from"../icon/Icon.js";import{theme as j,styled as x}from"../../stitches.js";import{TabTrigger as L}from"./TabTrigger.js";import{passPropsToChildren as C}from"./utils.js";const q=y("white",-.2),G=y(j.colors.primaryDark.value,-.2),T=x(M,{position:"absolute",transition:"all 125ms",variants:{theme:{light:{bg:`${q} !important`},dark:{bg:`${G} !important`,color:"currentColor !important"}},visible:{true:{opacity:1,visibility:"visible",pointerEvents:"all"},false:{opacity:0,visibility:"hidden",pointerEvents:"none"}}}}),S=x(_,{flexShrink:0,display:"flex",width:"100%",overflowX:"auto","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",variants:{theme:{light:{borderBottom:"1px solid $tonal300"},dark:{bg:"$primaryDark",borderBottom:"1px solid $tonal200"}},appearance:{uppercase:{"& button":{textTransform:"uppercase"}}}}}),H=({children:h,theme:i,appearance:d,enableTabScrolling:$,scrollPercentage:z=10,...b})=>{const s=F(null),[u,a]=f(!1),[v,c]=f(!1),[D,I]=f(),g=J(t=>{const e=s.current;if(e){const{scrollWidth:l,scrollLeft:n,offsetWidth:m}=e,E=Math.round(l*(z/100));let p=n;if(t==="right"){const r=n+E;p=r+m<=l?r:l-m}else{const r=n-E;p=r>0?r:0}e.scroll({left:p,behavior:"smooth"}),setTimeout(()=>{const{scrollWidth:r,scrollLeft:w,offsetWidth:A}=e,B=r-(w+A);w===0?(a(!1),c(!0)):B<5?(c(!1),a(!0)):(a(!0),c(!0))},500)}},[]);return k(()=>{const t=K(500,()=>{I(window.innerWidth)});return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[]),k(()=>{var t;const e=s.current;if(e){const{offsetWidth:l,scrollWidth:n}=e,m=n>l;(t=e.scroll)==null||t.call(e,{left:0}),a(!1),c(m)}},[D]),u||v||$?o.createElement(X,{css:{position:"relative"}},o.createElement(T,{size:"lg",label:"Scroll Left",theme:i,onClick:()=>g("left"),visible:u,css:{left:0}},o.createElement(W,{is:P})),o.createElement(S,{...b,ref:s,appearance:d,theme:i},C(h,{theme:i},[L])),o.createElement(T,{size:"lg",label:"Scroll right",theme:i,onClick:()=>g("right"),visible:v,css:{right:0}},o.createElement(W,{is:R}))):o.createElement(S,{theme:i,...b,appearance:d,ref:s},C(h,{theme:i},[L]))};export{H as TriggerListWrapper};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import n from"react";const i=(o,t,e=[])=>n.Children.map(o,l=>n.isValidElement(l)&&e.includes(l==null?void 0:l.type)?n.cloneElement(l,{...t}):l);export{i as passPropsToChildren};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as n from"react";import{styled as g}from"../../stitches.js";import{StyledIcon as f,Icon as r}from"../icon/Icon.js";import{StyledItem as h}from"./ToggleGroupItem.js";const s={sm:"32px",md:"40px",lg:"48px"},u={sm:"$4",md:"$5",lg:"$5"},x={sm:"$2",md:"$3",lg:"$3"},l=i=>({fontSize:`$${i}`,px:u[i],minHeight:s[i],"& > *:not(:last-child)":{mr:x[i]}}),d=g(h,{flexGrow:1,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,lineHeight:1,py:"$1",[`& ${f}`]:{flexShrink:0},variants:{size:{sm:l("sm"),md:l("md"),lg:l("lg")},isIconOnly:{true:{}}},compoundVariants:[{isIconOnly:!0,size:"sm",css:{minWidth:s.sm,p:0}},{isIconOnly:!0,size:"md",css:{minWidth:s.md,p:0}},{isIconOnly:!0,size:"lg",css:{minWidth:s.lg,p:0}}]}),I=n.forwardRef(({size:i="md",children:p,...c},a)=>{var m;const t=n.Children.toArray(p),o=t.length<=1,y=o&&n.isValidElement(t[0])&&((m=t[0])==null?void 0:m.type)===r;return n.createElement(d,{ref:a,size:i,isIconOnly:y,...c},t.map(e=>!o&&typeof e=="string"?n.createElement("span",{key:e},e):n.isValidElement(e)&&(e==null?void 0:e.type)===r?n.cloneElement(e,{...e.props,size:i}):e))});export{d as StyledButton,I as ToggleGroupButton};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as t from"react";const s=()=>{const e=t.useRef(null),n=t.useCallback(r=>{r&&(e.current=r)},[]);return[e,n]};export{s as useCallbackRef};
|