@atom-learning/components 2.29.1-beta.0 → 2.29.1
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 +10 -0
- package/dist/{lib/src/components → components}/accordion/Accordion.js +0 -0
- package/dist/components/accordion/AccordionContent.js +1 -0
- package/dist/components/accordion/AccordionItem.js +1 -0
- package/dist/components/accordion/AccordionTrigger.d.ts +4 -5
- package/dist/components/accordion/AccordionTrigger.js +1 -0
- package/dist/{lib/src/components → components}/action-icon/ActionIcon.constants.js +0 -0
- package/dist/components/action-icon/ActionIcon.d.ts +44 -44
- package/dist/{lib/src/components → components}/action-icon/ActionIcon.js +0 -0
- package/dist/{lib/src/components → components}/alert-dialog/AlertDialog.js +0 -0
- package/dist/{lib/src/components → components}/alert-dialog/AlertDialogContent.js +0 -0
- package/dist/{lib/src/components → components}/alert-dialog/alert-context/AlertContext.js +0 -0
- package/dist/{lib/src/components → components}/alert-dialog/alert-context/AlertDialog.js +0 -0
- package/dist/{lib/src/components → components}/alert-dialog/alert-context/reducer.js +0 -0
- package/dist/components/avatar/Avatar.d.ts +2 -2
- package/dist/{lib/src/components → components}/avatar/Avatar.js +1 -1
- package/dist/{lib/src/components → components}/avatar/AvatarIcon.js +0 -0
- package/dist/{lib/src/components → components}/avatar/AvatarImage.js +0 -0
- package/dist/{lib/src/components → components}/avatar/AvatarInitial.js +0 -0
- package/dist/{lib/src/components → components}/avatar/AvatarPlaceholder.js +1 -1
- package/dist/{lib/src/components → components}/badge/Badge.js +1 -1
- package/dist/{lib/src/components → components}/box/Box.js +0 -0
- package/dist/components/button/Button.d.ts +44 -45
- package/dist/components/button/Button.js +1 -0
- package/dist/components/calendar/Calendar.js +1 -0
- package/dist/{lib/src/components → components}/calendar/Day.js +0 -0
- package/dist/{lib/src/components → components}/calendar/constants.js +0 -0
- package/dist/{lib/src/components → components}/carousel/Carousel.js +0 -0
- package/dist/{lib/src/components → components}/carousel/CarouselArrows.js +0 -0
- package/dist/{lib/src/components → components}/carousel/CarouselPagination.js +0 -0
- package/dist/{lib/src/components → components}/carousel/CarouselSlide.js +0 -0
- package/dist/{lib/src/components → components}/carousel/CarouselSlider.js +0 -0
- package/dist/{lib/src/components → components}/checkbox/Checkbox.js +0 -0
- package/dist/{lib/src/components → components}/checkbox-field/CheckboxField.js +0 -0
- package/dist/{lib/src/components → components}/chip/Chip.js +0 -0
- package/dist/{lib/src/components → components}/chip/ChipGroup.js +0 -0
- package/dist/{lib/src/components → components}/chip-dismissible-group/ChipDismissibleGroupItem.js +0 -0
- package/dist/{lib/src/components → components}/chip-dismissible-group/ChipDismissibleGroupRoot.js +0 -0
- package/dist/{lib/src/components → components}/chip-dismissible-group/index.js +0 -0
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.d.ts +1 -1
- package/dist/components/chip-toggle-group/ChipToggleGroupItem.js +1 -0
- package/dist/{lib/src/components → components}/chip-toggle-group/ChipToggleGroupRoot.js +1 -1
- package/dist/{lib/src/components → components}/chip-toggle-group/index.js +0 -0
- package/dist/{lib/src/components → components}/combobox/Combobox.js +0 -0
- package/dist/{lib/src/components → components}/combobox/ComboboxInput.js +0 -0
- package/dist/{lib/src/components → components}/combobox/ComboboxList.js +0 -0
- package/dist/{lib/src/components → components}/combobox/ComboboxOption.js +0 -0
- package/dist/{lib/src/components → components}/combobox/ComboboxPopover.js +0 -0
- package/dist/components/data-table/DataTable.js +1 -0
- package/dist/components/data-table/DataTable.types.d.ts +1 -2
- package/dist/{lib/src/components → components}/data-table/DataTable.types.js +0 -0
- package/dist/{lib/src/components → components}/data-table/DataTableBody.js +0 -0
- package/dist/components/data-table/DataTableContext.d.ts +1 -1
- package/dist/{lib/src/components → components}/data-table/DataTableContext.js +1 -1
- package/dist/components/data-table/DataTableDataCell.d.ts +1 -1
- package/dist/components/data-table/DataTableDataCell.js +1 -0
- package/dist/{lib/src/components → components}/data-table/DataTableError.js +0 -0
- package/dist/components/data-table/DataTableGlobalFilter.js +1 -0
- package/dist/{lib/src/components → components}/data-table/DataTableHead.js +0 -0
- package/dist/{lib/src/components → components}/data-table/DataTableHeaderCell.js +1 -1
- package/dist/{lib/src/components → components}/data-table/DataTableLoading.js +0 -0
- package/dist/{lib/src/components → components}/data-table/DataTableRow.js +0 -0
- package/dist/{lib/src/components → components}/data-table/DataTableTable.js +0 -0
- package/dist/components/data-table/drag-and-drop/DragAndDropContainer.d.ts +4 -1
- package/dist/components/data-table/drag-and-drop/DragAndDropContainer.js +1 -0
- package/dist/{lib/src/components → components}/data-table/drag-and-drop/DragAndDropTable.js +0 -0
- package/dist/{lib/src/components → components}/data-table/drag-and-drop/DragAndDropTableBody.js +0 -0
- package/dist/components/data-table/drag-and-drop/DraggableRow.js +1 -0
- package/dist/components/data-table/drag-and-drop/Handle.d.ts +1 -1
- package/dist/components/data-table/drag-and-drop/Handle.js +1 -0
- package/dist/components/data-table/drag-and-drop/index.d.ts +1 -1
- package/dist/{lib/src/components → components}/data-table/getNewAsyncData.js +0 -0
- package/dist/{lib/src/components → components}/data-table/pagination/Pagination.js +0 -0
- package/dist/{lib/src/components → components}/data-table/pagination/PaginationButtons.js +0 -0
- package/dist/components/data-table/usePagination.d.ts +1 -1
- package/dist/{lib/src/components → components}/data-table/usePagination.js +0 -0
- package/dist/components/data-table/useSorting.d.ts +1 -1
- package/dist/{lib/src/components → components}/data-table/useSorting.js +0 -0
- package/dist/{lib/src/components → components}/date-field/DateField.js +0 -0
- package/dist/components/date-input/DateInput.js +1 -0
- package/dist/{lib/src/components → components}/date-input/constants.js +0 -0
- package/dist/{lib/src/components → components}/date-input/use-date.js +0 -0
- package/dist/{lib/src/components → components}/dialog/Dialog.js +0 -0
- package/dist/{lib/src/components → components}/dialog/DialogBackground.js +0 -0
- package/dist/{lib/src/components → components}/dialog/DialogClose.js +0 -0
- package/dist/{lib/src/components → components}/dialog/DialogContent.js +0 -0
- package/dist/{lib/src/components → components}/dismissible/DismissibleRoot.js +1 -1
- package/dist/{lib/src/components → components}/dismissible/DismissibleTrigger.js +1 -1
- package/dist/{lib/src/components → components}/dismissible/index.js +0 -0
- package/dist/components/dismissible-group/DismissibleGroupItem.js +1 -0
- package/dist/{lib/src/components → components}/dismissible-group/DismissibleGroupRoot.js +0 -0
- package/dist/components/dismissible-group/index.d.ts +1 -1
- package/dist/components/dismissible-group/index.js +1 -0
- package/dist/{lib/src/components → components}/divider/Divider.js +0 -0
- package/dist/{lib/src/components → components}/dropdown-menu/DropdownMenu.js +0 -0
- package/dist/{lib/src/components → components}/dropdown-menu/DropdownMenuContent.js +0 -0
- package/dist/{lib/src/components → components}/dropdown-menu/DropdownMenuItem.js +0 -0
- package/dist/{lib/src/components → components}/dropdown-menu/DropdownMenuLinkItem.js +0 -0
- package/dist/{lib/src/components → components}/dropdown-menu/DropdownMenuSeparator.js +0 -0
- package/dist/{lib/src/components → components}/dropdown-menu/DropdownMenuTrigger.js +0 -0
- package/dist/{lib/src/components → components}/empty-state/EmptyState.js +0 -0
- package/dist/{lib/src/components → components}/empty-state/EmptyStateBody.js +0 -0
- package/dist/{lib/src/components → components}/empty-state/EmptyStateImage.js +0 -0
- package/dist/{lib/src/components → components}/empty-state/EmptyStateTitle.js +0 -0
- package/dist/{lib/src/components → components}/field-wrapper/FieldDescription.js +0 -0
- package/dist/components/field-wrapper/FieldWrapper.js +1 -0
- package/dist/{lib/src/components → components}/field-wrapper/InlineFieldWrapper.js +1 -1
- package/dist/{lib/src/components → components}/file-input/FileInput.js +0 -0
- package/dist/{lib/src/components → components}/flex/Flex.js +0 -0
- package/dist/{lib/src/components → components}/form/Form.js +0 -0
- package/dist/{lib/src/components → components}/form/Form.types.js +0 -0
- package/dist/{lib/src/components → components}/form/useFieldError.js +0 -0
- package/dist/{lib/src/components → components}/grid/Grid.js +0 -0
- package/dist/{lib/src/components → components}/heading/Heading.js +0 -0
- package/dist/{lib/src/components → components}/icon/Icon.js +0 -0
- package/dist/{lib/src/components → components}/image/Image.js +0 -0
- package/dist/components/inline-message/InlineMessage.config.d.ts +2 -2
- package/dist/{lib/src/components → components}/inline-message/InlineMessage.config.js +0 -0
- package/dist/components/inline-message/InlineMessage.js +1 -0
- package/dist/{lib/src/components → components}/input/Input.js +0 -0
- package/dist/{lib/src/components → components}/input-field/InputField.js +0 -0
- package/dist/{lib/src/components → components}/label/Label.js +0 -0
- package/dist/{lib/src/components → components}/link/Link.js +0 -0
- package/dist/components/list/List.d.ts +1 -0
- package/dist/components/list/List.js +1 -0
- package/dist/{lib/src/components → components}/loader/Loader.js +0 -0
- package/dist/{lib/src/components → components}/markdown-content/MarkdownContent.js +0 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownCode.js +0 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownEmphasis.js +0 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownHeading.js +0 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownImage.js +0 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownInlineCode.js +0 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownLink.js +0 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownList.js +0 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownListItem.js +0 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownParagraph.js +0 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownStrong.js +0 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownText.js +0 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownThematicBreak.js +0 -0
- package/dist/{lib/src/components → components}/navigation/NavigationMenu.js +0 -0
- package/dist/{lib/src/components → components}/navigation/NavigationMenu.styles.js +0 -0
- package/dist/{lib/src/components → components}/navigation/NavigationMenuContext.js +0 -0
- package/dist/{lib/src/components → components}/navigation/NavigationMenuDropdown.js +0 -0
- package/dist/components/navigation/NavigationMenuDropdownContent.js +1 -0
- package/dist/{lib/src/components → components}/navigation/NavigationMenuDropdownItem.js +0 -0
- package/dist/components/navigation/NavigationMenuDropdownTrigger.js +1 -0
- package/dist/{lib/src/components → components}/navigation/NavigationMenuLink.js +0 -0
- package/dist/components/navigation/preventHover.d.ts +1 -0
- package/dist/components/navigation/preventHover.js +1 -0
- package/dist/{lib/src/components → components}/notification-badge/NotificationBadge.js +0 -0
- package/dist/{lib/src/components → components}/number-input/NumberInput.js +0 -0
- package/dist/components/number-input/NumberInputStepper.js +1 -0
- package/dist/{lib/src/components → components}/number-input-field/NumberInputField.js +0 -0
- package/dist/{lib/src/components → components}/password-field/PasswordField.js +0 -0
- package/dist/{lib/src/components → components}/password-input/PasswordInput.js +0 -0
- package/dist/{lib/src/components → components}/popover/Popover.js +0 -0
- package/dist/{lib/src/components → components}/popover/PopoverContent.js +0 -0
- package/dist/{lib/src/components → components}/progress-bar/ProgressBar.js +0 -0
- package/dist/{lib/src/components → components}/radio-button/RadioButton.js +0 -0
- package/dist/{lib/src/components → components}/radio-button/RadioButtonGroup.js +0 -0
- package/dist/{lib/src/components → components}/radio-button-field/RadioButtonField.js +1 -1
- package/dist/{lib/src/components → components}/radio-button-field/RadioField.js +0 -0
- package/dist/{lib/src/components → components}/radio-card/RadioCard.js +0 -0
- package/dist/components/radio-card/RadioCardGroup.d.ts +2 -2
- package/dist/{lib/src/components → components}/radio-card/RadioCardGroup.js +0 -0
- package/dist/{lib/src/components → components}/search-field/SearchField.js +0 -0
- package/dist/{lib/src/components → components}/search-input/SearchInput.js +0 -0
- package/dist/{lib/src/components → components}/select/Select.js +0 -0
- package/dist/{lib/src/components → components}/select-field/SelectField.js +0 -0
- package/dist/{lib/src/components → components}/sidedrawer/Sidedrawer.js +0 -0
- package/dist/{lib/src/components → components}/sidedrawer/Sidedrawer.styles.js +0 -0
- package/dist/{lib/src/components → components}/sidedrawer/SidedrawerAccordion/SidedrawerAccordionContent.js +1 -1
- package/dist/{lib/src/components → components}/sidedrawer/SidedrawerAccordion/SidedrawerAccordionItem.js +0 -0
- package/dist/{lib/src/components → components}/sidedrawer/SidedrawerAccordion/SidedrawerAccordionRoot.js +0 -0
- package/dist/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.js +1 -0
- package/dist/{lib/src/components → components}/sidedrawer/SidedrawerBody.js +0 -0
- package/dist/components/sidedrawer/SidedrawerClose.js +1 -0
- package/dist/{lib/src/components → components}/sidedrawer/SidedrawerContent.js +0 -0
- package/dist/{lib/src/components → components}/sidedrawer/SidedrawerFooter.js +0 -0
- package/dist/{lib/src/components → components}/sidedrawer/SidedrawerHeader.js +0 -0
- package/dist/{lib/src/components → components}/sidedrawer/SidedrawerItem.js +0 -0
- package/dist/{lib/src/components → components}/sidedrawer/SidedrawerOverlay.js +1 -1
- package/dist/{lib/src/components → components}/sidedrawer/SidedrawerTrigger.js +0 -0
- package/dist/{lib/src/components → components}/slider/Slider.js +0 -0
- package/dist/{lib/src/components → components}/slider/SliderSteps.js +0 -0
- package/dist/{lib/src/components → components}/slider/SliderValue.js +0 -0
- package/dist/{lib/src/components → components}/slider-field/SliderField.js +0 -0
- package/dist/{lib/src/components → components}/stack/Stack.js +0 -0
- package/dist/{lib/src/components → components}/stack-content/StackContent.js +0 -0
- package/dist/{lib/src/components → components}/stepper/Stepper.js +0 -0
- package/dist/{lib/src/components → components}/stepper/StepperStepBack.js +0 -0
- package/dist/{lib/src/components → components}/stepper/StepperStepBullet.js +0 -0
- package/dist/{lib/src/components → components}/stepper/StepperStepContainer.js +0 -0
- package/dist/{lib/src/components → components}/stepper/StepperStepForward.js +0 -0
- package/dist/{lib/src/components → components}/stepper/StepperStepLabel.js +0 -0
- package/dist/{lib/src/components → components}/stepper/StepperSteps.js +0 -0
- package/dist/{lib/src/components → components}/stepper/stepper-context/StepperContext.js +0 -0
- package/dist/{lib/src/components → components}/stepper/types.js +0 -0
- package/dist/{lib/src/components → components}/switch/Switch.js +0 -0
- package/dist/{lib/src/components → components}/table/Table.js +0 -0
- package/dist/{lib/src/components → components}/table/TableBody.js +0 -0
- package/dist/{lib/src/components → components}/table/TableCell.js +0 -0
- package/dist/{lib/src/components → components}/table/TableFooter.js +0 -0
- package/dist/{lib/src/components → components}/table/TableFooterCell.js +0 -0
- package/dist/{lib/src/components → components}/table/TableHeader.js +0 -0
- package/dist/{lib/src/components → components}/table/TableHeaderCell.js +0 -0
- package/dist/{lib/src/components → components}/table/TableRow.js +0 -0
- package/dist/components/tabs/{TabsTrigger.d.ts → TabTrigger.d.ts} +6 -3
- package/dist/components/tabs/TabTrigger.js +1 -0
- package/dist/components/tabs/Tabs.d.ts +276 -7
- package/dist/components/tabs/Tabs.js +1 -0
- package/dist/components/tabs/TabsTriggerList.d.ts +9 -5
- package/dist/components/tabs/TabsTriggerList.js +1 -0
- package/dist/components/tabs/utils.d.ts +2 -0
- package/dist/components/tabs/utils.js +1 -0
- package/dist/{lib/src/components → components}/text/Text.js +0 -0
- package/dist/{lib/src/components → components}/textarea/Textarea.js +0 -0
- package/dist/{lib/src/components → components}/textarea-field/TextareaField.js +0 -0
- package/dist/{lib/src/components → components}/toast/Toast.js +0 -0
- package/dist/{lib/src/components → components}/toast/ToastProvider.js +0 -0
- package/dist/components/toggle-group/ToggleGroupButton.js +1 -0
- package/dist/{lib/src/components → components}/toggle-group/ToggleGroupItem.js +0 -0
- package/dist/{lib/src/components → components}/toggle-group/ToggleGroupRoot.js +1 -1
- package/dist/{lib/src/components → components}/toggle-group/index.js +0 -0
- package/dist/{lib/src/components → components}/tooltip/Tooltip.js +0 -0
- package/dist/{lib/src/components → components}/tooltip/TooltipContent.js +0 -0
- package/dist/{lib/src/components → components}/top-bar/TopBar.js +0 -0
- package/dist/{lib/src/components → components}/top-bar/TopBarActionIcon.js +0 -0
- package/dist/{lib/src/components → components}/top-bar/TopBarBrand.js +0 -0
- package/dist/{lib/src/components → components}/video/Video.js +0 -0
- package/dist/{lib/src/constants → constants}/zIndices.js +0 -0
- package/dist/docgen.json +1 -1
- package/dist/docs/Accordion.mdx +7 -56
- package/dist/docs/Badge.mdx +1 -1
- package/dist/docs/Button.mdx +0 -8
- package/dist/docs/Tabs.mdx +57 -31
- package/dist/docs/ToggleGroup.mdx +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/{lib/src/index.js → index.js} +0 -0
- package/dist/stitches.d.ts +338 -338
- package/dist/{lib/src/stitches.js → stitches.js} +1 -1
- package/dist/{lib/src/utilities → utilities}/create-theme-variants/createThemeVariants.js +0 -0
- package/dist/{lib/src/utilities → utilities}/css-wrapper/CSSWrapper.js +0 -0
- package/dist/{lib/src/utilities → utilities}/hooks/useCallbackRef.js +0 -0
- package/dist/{lib/src/utilities → utilities}/hooks/useIsMountedRef.js +0 -0
- package/dist/{lib/src/utilities → utilities}/hooks/useScrollPosition.js +0 -0
- package/dist/utilities/optionally-visually-hidden-container/OptionallyVisuallyHiddenContainer.js +1 -0
- package/dist/{lib/src/utilities → utilities}/override-stitches-variant-value/overrideStitchesVariantValue.js +0 -0
- package/dist/{lib/src/utilities → utilities}/style/capsize.js +0 -0
- package/dist/{lib/src/utilities → utilities}/style/encode-background-icon.js +0 -0
- package/dist/{lib/src/utilities → utilities}/style/focus-visible-style-block.js +0 -0
- package/dist/{lib/src/utilities → utilities}/style/keyframe-animations.js +0 -0
- package/package.json +5 -5
- package/dist/color-scheme/dist/ColorScheme.js +0 -1
- package/dist/color-scheme/dist/blue.json.js +0 -1
- package/dist/color-scheme/dist/generateAlphaColors.js +0 -1
- package/dist/color-scheme/dist/slate.json.js +0 -1
- package/dist/color-scheme/dist/stitches.colorscheme.config.js +0 -1
- package/dist/components/tabs/TabsContent.d.ts +0 -267
- package/dist/lib/src/components/accordion/AccordionContent.js +0 -1
- package/dist/lib/src/components/accordion/AccordionItem.js +0 -1
- package/dist/lib/src/components/accordion/AccordionTrigger.js +0 -1
- package/dist/lib/src/components/button/Button.js +0 -1
- package/dist/lib/src/components/calendar/Calendar.js +0 -1
- package/dist/lib/src/components/chip-toggle-group/ChipToggleGroupItem.js +0 -1
- package/dist/lib/src/components/data-table/DataTable.js +0 -1
- package/dist/lib/src/components/data-table/DataTableDataCell.js +0 -1
- package/dist/lib/src/components/data-table/DataTableGlobalFilter.js +0 -1
- package/dist/lib/src/components/data-table/drag-and-drop/DragAndDropContainer.js +0 -1
- package/dist/lib/src/components/data-table/drag-and-drop/DraggableRow.js +0 -1
- package/dist/lib/src/components/data-table/drag-and-drop/Handle.js +0 -1
- package/dist/lib/src/components/date-input/DateInput.js +0 -1
- package/dist/lib/src/components/dismissible-group/DismissibleGroupItem.js +0 -1
- package/dist/lib/src/components/dismissible-group/index.js +0 -1
- package/dist/lib/src/components/field-wrapper/FieldWrapper.js +0 -1
- package/dist/lib/src/components/inline-message/InlineMessage.js +0 -1
- package/dist/lib/src/components/list/List.js +0 -1
- package/dist/lib/src/components/navigation/NavigationMenuDropdownContent.js +0 -1
- package/dist/lib/src/components/navigation/NavigationMenuDropdownTrigger.js +0 -1
- package/dist/lib/src/components/number-input/NumberInputStepper.js +0 -1
- package/dist/lib/src/components/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.js +0 -1
- package/dist/lib/src/components/sidedrawer/SidedrawerClose.js +0 -1
- package/dist/lib/src/components/tabs/Tabs.js +0 -1
- package/dist/lib/src/components/tabs/TabsContent.js +0 -1
- package/dist/lib/src/components/tabs/TabsTrigger.js +0 -1
- package/dist/lib/src/components/tabs/TabsTriggerList.js +0 -1
- package/dist/lib/src/components/toggle-group/ToggleGroupButton.js +0 -1
- package/dist/lib/src/utilities/optionally-visually-hidden-container/OptionallyVisuallyHiddenContainer.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [2.29.1](https://github.com/Atom-Learning/components/compare/v2.29.0...v2.29.1) (2023-01-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* reinstated changes that should be here ([25adbf3](https://github.com/Atom-Learning/components/commit/25adbf342a4a9366e06d573cc7c4ecacc36d5265))
|
|
7
|
+
* remove hide prop from popovercontent ([3feb90e](https://github.com/Atom-Learning/components/commit/3feb90e15b80ff2b8b6e5141b6feb2d591d154f1))
|
|
8
|
+
* remove incorrect prop from DateInput ([865055f](https://github.com/Atom-Learning/components/commit/865055f2b829e468b534b3d883462f641aa7acef))
|
|
9
|
+
* snapshots ([f47b5e2](https://github.com/Atom-Learning/components/commit/f47b5e2967e0162aa16056f0aa8cb71fd66549e7))
|
|
10
|
+
|
|
1
11
|
# [1.4.0](https://github.com/Atom-Learning/components/compare/v1.3.0...v1.4.0) (2022-04-11)
|
|
2
12
|
|
|
3
13
|
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Content as i}from"@radix-ui/react-accordion";import t from"react";import{keyframes as o,styled as n}from"../../stitches.js";import{CSSWrapper as c}from"../../utilities/css-wrapper/CSSWrapper.js";const d=o({from:{height:0},to:{height:"var(--radix-accordion-content-height)"}}),m=o({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:e,css:a,...r})=>t.createElement(s,{...r},t.createElement(c,{css:a},e));export{h as AccordionContent};
|
|
@@ -0,0 +1 @@
|
|
|
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:o,value:t,...e})=>m.createElement(l,{value:t,...e},o);export{i as AccordionItem};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare const StyledTrigger: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/react-accordion").AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>, {
|
|
3
|
+
theme?: "primaryDark" | "light" | "tonal" | undefined;
|
|
4
|
+
}, {
|
|
4
5
|
sm: string;
|
|
5
6
|
md: string;
|
|
6
7
|
lg: string;
|
|
@@ -266,8 +267,6 @@ declare const StyledTrigger: import("@stitches/react/types/styled-component").St
|
|
|
266
267
|
};
|
|
267
268
|
};
|
|
268
269
|
}>>;
|
|
269
|
-
declare type AccordionTriggerProps = React.ComponentProps<typeof StyledTrigger
|
|
270
|
-
colorScheme?: typeof ColorScheme;
|
|
271
|
-
};
|
|
270
|
+
declare type AccordionTriggerProps = React.ComponentProps<typeof StyledTrigger>;
|
|
272
271
|
export declare const AccordionTrigger: React.FC<AccordionTriggerProps>;
|
|
273
272
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { VariantProps } from '@stitches/react';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { NavigatorActions } from '../../types';
|
|
4
4
|
import { Override } from '../../utilities';
|
|
@@ -130,150 +130,150 @@ declare const StyledButton: import("@stitches/react/types/styled-component").Sty
|
|
|
130
130
|
};
|
|
131
131
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
132
132
|
bg: (value: {
|
|
133
|
-
readonly [
|
|
133
|
+
readonly [$$PropertyValue]: "background";
|
|
134
134
|
}) => {
|
|
135
135
|
background: {
|
|
136
|
-
readonly [
|
|
136
|
+
readonly [$$PropertyValue]: "background";
|
|
137
137
|
};
|
|
138
138
|
};
|
|
139
139
|
inset: (value: string | number | {
|
|
140
|
-
readonly [
|
|
140
|
+
readonly [$$ScaleValue]: "space";
|
|
141
141
|
}) => {
|
|
142
142
|
top: string | number | {
|
|
143
|
-
readonly [
|
|
143
|
+
readonly [$$ScaleValue]: "space";
|
|
144
144
|
};
|
|
145
145
|
right: string | number | {
|
|
146
|
-
readonly [
|
|
146
|
+
readonly [$$ScaleValue]: "space";
|
|
147
147
|
};
|
|
148
148
|
bottom: string | number | {
|
|
149
|
-
readonly [
|
|
149
|
+
readonly [$$ScaleValue]: "space";
|
|
150
150
|
};
|
|
151
151
|
left: string | number | {
|
|
152
|
-
readonly [
|
|
152
|
+
readonly [$$ScaleValue]: "space";
|
|
153
153
|
};
|
|
154
154
|
};
|
|
155
155
|
size: (value: string | number | {
|
|
156
|
-
readonly [
|
|
156
|
+
readonly [$$ScaleValue]: "size";
|
|
157
157
|
}) => {
|
|
158
158
|
height: string | number | {
|
|
159
|
-
readonly [
|
|
159
|
+
readonly [$$ScaleValue]: "size";
|
|
160
160
|
};
|
|
161
161
|
width: string | number | {
|
|
162
|
-
readonly [
|
|
162
|
+
readonly [$$ScaleValue]: "size";
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
165
|
p: (value: string | number | {
|
|
166
|
-
readonly [
|
|
166
|
+
readonly [$$ScaleValue]: "space";
|
|
167
167
|
}) => {
|
|
168
168
|
padding: string | number | {
|
|
169
|
-
readonly [
|
|
169
|
+
readonly [$$ScaleValue]: "space";
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
172
|
pt: (value: string | number | {
|
|
173
|
-
readonly [
|
|
173
|
+
readonly [$$ScaleValue]: "space";
|
|
174
174
|
}) => {
|
|
175
175
|
paddingTop: string | number | {
|
|
176
|
-
readonly [
|
|
176
|
+
readonly [$$ScaleValue]: "space";
|
|
177
177
|
};
|
|
178
178
|
};
|
|
179
179
|
pr: (value: string | number | {
|
|
180
|
-
readonly [
|
|
180
|
+
readonly [$$ScaleValue]: "space";
|
|
181
181
|
}) => {
|
|
182
182
|
paddingRight: string | number | {
|
|
183
|
-
readonly [
|
|
183
|
+
readonly [$$ScaleValue]: "space";
|
|
184
184
|
};
|
|
185
185
|
};
|
|
186
186
|
pb: (value: string | number | {
|
|
187
|
-
readonly [
|
|
187
|
+
readonly [$$ScaleValue]: "space";
|
|
188
188
|
}) => {
|
|
189
189
|
paddingBottom: string | number | {
|
|
190
|
-
readonly [
|
|
190
|
+
readonly [$$ScaleValue]: "space";
|
|
191
191
|
};
|
|
192
192
|
};
|
|
193
193
|
pl: (value: string | number | {
|
|
194
|
-
readonly [
|
|
194
|
+
readonly [$$ScaleValue]: "space";
|
|
195
195
|
}) => {
|
|
196
196
|
paddingLeft: string | number | {
|
|
197
|
-
readonly [
|
|
197
|
+
readonly [$$ScaleValue]: "space";
|
|
198
198
|
};
|
|
199
199
|
};
|
|
200
200
|
px: (value: string | number | {
|
|
201
|
-
readonly [
|
|
201
|
+
readonly [$$ScaleValue]: "space";
|
|
202
202
|
}) => {
|
|
203
203
|
paddingLeft: string | number | {
|
|
204
|
-
readonly [
|
|
204
|
+
readonly [$$ScaleValue]: "space";
|
|
205
205
|
};
|
|
206
206
|
paddingRight: string | number | {
|
|
207
|
-
readonly [
|
|
207
|
+
readonly [$$ScaleValue]: "space";
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
210
|
py: (value: string | number | {
|
|
211
|
-
readonly [
|
|
211
|
+
readonly [$$ScaleValue]: "space";
|
|
212
212
|
}) => {
|
|
213
213
|
paddingTop: string | number | {
|
|
214
|
-
readonly [
|
|
214
|
+
readonly [$$ScaleValue]: "space";
|
|
215
215
|
};
|
|
216
216
|
paddingBottom: string | number | {
|
|
217
|
-
readonly [
|
|
217
|
+
readonly [$$ScaleValue]: "space";
|
|
218
218
|
};
|
|
219
219
|
};
|
|
220
220
|
m: (value: string | number | {
|
|
221
|
-
readonly [
|
|
221
|
+
readonly [$$ScaleValue]: "space";
|
|
222
222
|
}) => {
|
|
223
223
|
margin: string | number | {
|
|
224
|
-
readonly [
|
|
224
|
+
readonly [$$ScaleValue]: "space";
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
227
|
mt: (value: string | number | {
|
|
228
|
-
readonly [
|
|
228
|
+
readonly [$$ScaleValue]: "space";
|
|
229
229
|
}) => {
|
|
230
230
|
marginTop: string | number | {
|
|
231
|
-
readonly [
|
|
231
|
+
readonly [$$ScaleValue]: "space";
|
|
232
232
|
};
|
|
233
233
|
};
|
|
234
234
|
mr: (value: string | number | {
|
|
235
|
-
readonly [
|
|
235
|
+
readonly [$$ScaleValue]: "space";
|
|
236
236
|
}) => {
|
|
237
237
|
marginRight: string | number | {
|
|
238
|
-
readonly [
|
|
238
|
+
readonly [$$ScaleValue]: "space";
|
|
239
239
|
};
|
|
240
240
|
};
|
|
241
241
|
mb: (value: string | number | {
|
|
242
|
-
readonly [
|
|
242
|
+
readonly [$$ScaleValue]: "space";
|
|
243
243
|
}) => {
|
|
244
244
|
marginBottom: string | number | {
|
|
245
|
-
readonly [
|
|
245
|
+
readonly [$$ScaleValue]: "space";
|
|
246
246
|
};
|
|
247
247
|
};
|
|
248
248
|
ml: (value: string | number | {
|
|
249
|
-
readonly [
|
|
249
|
+
readonly [$$ScaleValue]: "space";
|
|
250
250
|
}) => {
|
|
251
251
|
marginLeft: string | number | {
|
|
252
|
-
readonly [
|
|
252
|
+
readonly [$$ScaleValue]: "space";
|
|
253
253
|
};
|
|
254
254
|
};
|
|
255
255
|
mx: (value: string | number | {
|
|
256
|
-
readonly [
|
|
256
|
+
readonly [$$ScaleValue]: "space";
|
|
257
257
|
}) => {
|
|
258
258
|
marginLeft: string | number | {
|
|
259
|
-
readonly [
|
|
259
|
+
readonly [$$ScaleValue]: "space";
|
|
260
260
|
};
|
|
261
261
|
marginRight: string | number | {
|
|
262
|
-
readonly [
|
|
262
|
+
readonly [$$ScaleValue]: "space";
|
|
263
263
|
};
|
|
264
264
|
};
|
|
265
265
|
my: (value: string | number | {
|
|
266
|
-
readonly [
|
|
266
|
+
readonly [$$ScaleValue]: "space";
|
|
267
267
|
}) => {
|
|
268
268
|
marginTop: string | number | {
|
|
269
|
-
readonly [
|
|
269
|
+
readonly [$$ScaleValue]: "space";
|
|
270
270
|
};
|
|
271
271
|
marginBottom: string | number | {
|
|
272
|
-
readonly [
|
|
272
|
+
readonly [$$ScaleValue]: "space";
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
275
|
}>>;
|
|
276
|
-
declare type ActionIconProps = Override<React.ComponentProps<typeof StyledButton>,
|
|
276
|
+
declare type ActionIconProps = Override<React.ComponentProps<typeof StyledButton>, VariantProps<typeof StyledButton> & {
|
|
277
277
|
as?: string | React.ReactNode;
|
|
278
278
|
children: React.ReactNode;
|
|
279
279
|
label: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { AvatarPlaceholder } from './AvatarPlaceholder';
|
|
3
2
|
import { AvatarIcon } from './AvatarIcon';
|
|
4
|
-
import { AvatarInitial } from './AvatarInitial';
|
|
5
3
|
import { AvatarImage } from './AvatarImage';
|
|
4
|
+
import { AvatarInitial } from './AvatarInitial';
|
|
5
|
+
import { AvatarPlaceholder } from './AvatarPlaceholder';
|
|
6
6
|
declare const StyledDiv: import("@stitches/react/types/styled-component").StyledComponent<"div", {
|
|
7
7
|
size?: "sm" | "md" | "lg" | "xl" | "xs" | "xxl" | undefined;
|
|
8
8
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as o from"react";import{styled as n}from"../../stitches.js";import{
|
|
1
|
+
import*as o from"react";import{styled as n}from"../../stitches.js";import{AvatarIcon as v}from"./AvatarIcon.js";import{AvatarImage as u}from"./AvatarImage.js";import{AvatarInitial as b}from"./AvatarInitial.js";import{AvatarPlaceholder as p}from"./AvatarPlaceholder.js";import{focusVisibleStyleBlock as z}from"../../utilities/style/focus-visible-style-block.js";const s={display:"flex",justifyContent:"center",alignItems:"center",color:"$tonal400",borderRadius:"$round",border:"2px solid $tonal100",backgroundColor:"$white",overflow:"hidden",variants:{size:{xs:{size:"$2"},sm:{size:"$3"},md:{size:"$4"},lg:{size:"$5"},xl:{size:"$6"},xxl:{size:"$7"}}}},f=n("div",s),$=n("button",{all:"unset",...s,"&:not([disabled])":{"&:hover":{borderColor:"$tonal400",backgroundColor:"$tonal50"},"&:active":{borderColor:"$primary",backgroundColor:"$tonal100"},"&:focus-visible":z()},"&[disabled]":{opacity:"30%",cursor:"not-allowed"}}),d=o.createContext({name:void 0,size:"lg"}),m=({children:a,name:e,size:i})=>{const t=o.useMemo(()=>({name:e,size:i}),[e,i]);return o.createElement(d.Provider,{value:t},a)},c=({children:a,size:e="lg",name:i,disabled:t=!1,onClick:l})=>o.createElement(m,{name:i,size:e},l?o.createElement($,{size:e,disabled:t,onClick:t?void 0:l,css:{cursor:t?"auto":"pointer"}},a):o.createElement(f,{size:e},a)),r=c;r.Image=u,r.Initial=b,r.Placeholder=p,r.Icon=v,r.displayName="Avatar";export{r as Avatar,c as AvatarRoot,d as AvatarRootContext,m as AvatarRootProvider};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{User as o}from"@atom-learning/icons";import*as e from"react";import{Box as r}from"../box/Box.js";import{Icon as t}from"../icon/Icon.js";const s=()=>e.createElement(r,{css:{position:"relative",size:"100%"}},e.createElement(t,{is:o,css:{size:"100%"}}));export{s as AvatarPlaceholder};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as t from"react";import{styled as m}from"../../stitches.js";import{Box as l}from"../box/Box.js";import{Flex as a}from"../flex/Flex.js";import{Icon as
|
|
1
|
+
import*as t from"react";import{styled as m}from"../../stitches.js";import{Box as l}from"../box/Box.js";import{Flex as a}from"../flex/Flex.js";import{Icon as c}from"../icon/Icon.js";const d=m(a,{justifyContent:"center",alignItems:"center",borderRadius:"$0",minWidth:0,border:"1px solid #FFFFFF",fontFamily:"$body","& > *:not(:last-child)":{mr:"$1"},variants:{theme:{success:{bg:"$successLight",color:"$successMid"},warning:{bg:"$warningLight",color:"$warningText"},danger:{bg:"$dangerLight",color:"$dangerMid"},neutral:{bg:"$tonal50",color:"$tonal400"},info:{bg:"$primaryLight",color:"$primaryMid"}},size:{xs:{fontSize:"$sm",px:"$1",height:"$2"},sm:{fontSize:"$md",px:"$1",height:"$3"},md:{fontSize:"$md",px:"$2",height:"$4"}}}}),i=({theme:r="info",size:o="sm",children:n,...s})=>t.createElement(d,{role:"status",theme:r,size:o,...s},t.Children.map(n,e=>{if(typeof e=="string"||typeof e=="number")return t.createElement(l,{css:{whiteSpace:"nowrap",overflowX:"hidden",textOverflow:"ellipsis",py:"$0"}},e);if(t.isValidElement(e)&&e.type===c)return t.cloneElement(e,{size:"sm",css:{...e.props.css,flexShrink:0}})}));i.displayName="Badge";export{i as Badge};
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type { VariantProps } from '@stitches/react';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { NavigatorActions } from '../../types';
|
|
4
4
|
import { Override } from '../../utilities';
|
|
@@ -8,7 +8,6 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
8
8
|
size?: "sm" | "md" | "lg" | undefined;
|
|
9
9
|
isLoading?: boolean | "true" | undefined;
|
|
10
10
|
fullWidth?: boolean | "true" | "false" | undefined;
|
|
11
|
-
isRounded?: boolean | "true" | undefined;
|
|
12
11
|
}, {
|
|
13
12
|
sm: string;
|
|
14
13
|
md: string;
|
|
@@ -132,150 +131,150 @@ export declare const StyledButton: import("@stitches/react/types/styled-componen
|
|
|
132
131
|
};
|
|
133
132
|
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
134
133
|
bg: (value: {
|
|
135
|
-
readonly [
|
|
134
|
+
readonly [$$PropertyValue]: "background";
|
|
136
135
|
}) => {
|
|
137
136
|
background: {
|
|
138
|
-
readonly [
|
|
137
|
+
readonly [$$PropertyValue]: "background";
|
|
139
138
|
};
|
|
140
139
|
};
|
|
141
140
|
inset: (value: string | number | {
|
|
142
|
-
readonly [
|
|
141
|
+
readonly [$$ScaleValue]: "space";
|
|
143
142
|
}) => {
|
|
144
143
|
top: string | number | {
|
|
145
|
-
readonly [
|
|
144
|
+
readonly [$$ScaleValue]: "space";
|
|
146
145
|
};
|
|
147
146
|
right: string | number | {
|
|
148
|
-
readonly [
|
|
147
|
+
readonly [$$ScaleValue]: "space";
|
|
149
148
|
};
|
|
150
149
|
bottom: string | number | {
|
|
151
|
-
readonly [
|
|
150
|
+
readonly [$$ScaleValue]: "space";
|
|
152
151
|
};
|
|
153
152
|
left: string | number | {
|
|
154
|
-
readonly [
|
|
153
|
+
readonly [$$ScaleValue]: "space";
|
|
155
154
|
};
|
|
156
155
|
};
|
|
157
156
|
size: (value: string | number | {
|
|
158
|
-
readonly [
|
|
157
|
+
readonly [$$ScaleValue]: "size";
|
|
159
158
|
}) => {
|
|
160
159
|
height: string | number | {
|
|
161
|
-
readonly [
|
|
160
|
+
readonly [$$ScaleValue]: "size";
|
|
162
161
|
};
|
|
163
162
|
width: string | number | {
|
|
164
|
-
readonly [
|
|
163
|
+
readonly [$$ScaleValue]: "size";
|
|
165
164
|
};
|
|
166
165
|
};
|
|
167
166
|
p: (value: string | number | {
|
|
168
|
-
readonly [
|
|
167
|
+
readonly [$$ScaleValue]: "space";
|
|
169
168
|
}) => {
|
|
170
169
|
padding: string | number | {
|
|
171
|
-
readonly [
|
|
170
|
+
readonly [$$ScaleValue]: "space";
|
|
172
171
|
};
|
|
173
172
|
};
|
|
174
173
|
pt: (value: string | number | {
|
|
175
|
-
readonly [
|
|
174
|
+
readonly [$$ScaleValue]: "space";
|
|
176
175
|
}) => {
|
|
177
176
|
paddingTop: string | number | {
|
|
178
|
-
readonly [
|
|
177
|
+
readonly [$$ScaleValue]: "space";
|
|
179
178
|
};
|
|
180
179
|
};
|
|
181
180
|
pr: (value: string | number | {
|
|
182
|
-
readonly [
|
|
181
|
+
readonly [$$ScaleValue]: "space";
|
|
183
182
|
}) => {
|
|
184
183
|
paddingRight: string | number | {
|
|
185
|
-
readonly [
|
|
184
|
+
readonly [$$ScaleValue]: "space";
|
|
186
185
|
};
|
|
187
186
|
};
|
|
188
187
|
pb: (value: string | number | {
|
|
189
|
-
readonly [
|
|
188
|
+
readonly [$$ScaleValue]: "space";
|
|
190
189
|
}) => {
|
|
191
190
|
paddingBottom: string | number | {
|
|
192
|
-
readonly [
|
|
191
|
+
readonly [$$ScaleValue]: "space";
|
|
193
192
|
};
|
|
194
193
|
};
|
|
195
194
|
pl: (value: string | number | {
|
|
196
|
-
readonly [
|
|
195
|
+
readonly [$$ScaleValue]: "space";
|
|
197
196
|
}) => {
|
|
198
197
|
paddingLeft: string | number | {
|
|
199
|
-
readonly [
|
|
198
|
+
readonly [$$ScaleValue]: "space";
|
|
200
199
|
};
|
|
201
200
|
};
|
|
202
201
|
px: (value: string | number | {
|
|
203
|
-
readonly [
|
|
202
|
+
readonly [$$ScaleValue]: "space";
|
|
204
203
|
}) => {
|
|
205
204
|
paddingLeft: string | number | {
|
|
206
|
-
readonly [
|
|
205
|
+
readonly [$$ScaleValue]: "space";
|
|
207
206
|
};
|
|
208
207
|
paddingRight: string | number | {
|
|
209
|
-
readonly [
|
|
208
|
+
readonly [$$ScaleValue]: "space";
|
|
210
209
|
};
|
|
211
210
|
};
|
|
212
211
|
py: (value: string | number | {
|
|
213
|
-
readonly [
|
|
212
|
+
readonly [$$ScaleValue]: "space";
|
|
214
213
|
}) => {
|
|
215
214
|
paddingTop: string | number | {
|
|
216
|
-
readonly [
|
|
215
|
+
readonly [$$ScaleValue]: "space";
|
|
217
216
|
};
|
|
218
217
|
paddingBottom: string | number | {
|
|
219
|
-
readonly [
|
|
218
|
+
readonly [$$ScaleValue]: "space";
|
|
220
219
|
};
|
|
221
220
|
};
|
|
222
221
|
m: (value: string | number | {
|
|
223
|
-
readonly [
|
|
222
|
+
readonly [$$ScaleValue]: "space";
|
|
224
223
|
}) => {
|
|
225
224
|
margin: string | number | {
|
|
226
|
-
readonly [
|
|
225
|
+
readonly [$$ScaleValue]: "space";
|
|
227
226
|
};
|
|
228
227
|
};
|
|
229
228
|
mt: (value: string | number | {
|
|
230
|
-
readonly [
|
|
229
|
+
readonly [$$ScaleValue]: "space";
|
|
231
230
|
}) => {
|
|
232
231
|
marginTop: string | number | {
|
|
233
|
-
readonly [
|
|
232
|
+
readonly [$$ScaleValue]: "space";
|
|
234
233
|
};
|
|
235
234
|
};
|
|
236
235
|
mr: (value: string | number | {
|
|
237
|
-
readonly [
|
|
236
|
+
readonly [$$ScaleValue]: "space";
|
|
238
237
|
}) => {
|
|
239
238
|
marginRight: string | number | {
|
|
240
|
-
readonly [
|
|
239
|
+
readonly [$$ScaleValue]: "space";
|
|
241
240
|
};
|
|
242
241
|
};
|
|
243
242
|
mb: (value: string | number | {
|
|
244
|
-
readonly [
|
|
243
|
+
readonly [$$ScaleValue]: "space";
|
|
245
244
|
}) => {
|
|
246
245
|
marginBottom: string | number | {
|
|
247
|
-
readonly [
|
|
246
|
+
readonly [$$ScaleValue]: "space";
|
|
248
247
|
};
|
|
249
248
|
};
|
|
250
249
|
ml: (value: string | number | {
|
|
251
|
-
readonly [
|
|
250
|
+
readonly [$$ScaleValue]: "space";
|
|
252
251
|
}) => {
|
|
253
252
|
marginLeft: string | number | {
|
|
254
|
-
readonly [
|
|
253
|
+
readonly [$$ScaleValue]: "space";
|
|
255
254
|
};
|
|
256
255
|
};
|
|
257
256
|
mx: (value: string | number | {
|
|
258
|
-
readonly [
|
|
257
|
+
readonly [$$ScaleValue]: "space";
|
|
259
258
|
}) => {
|
|
260
259
|
marginLeft: string | number | {
|
|
261
|
-
readonly [
|
|
260
|
+
readonly [$$ScaleValue]: "space";
|
|
262
261
|
};
|
|
263
262
|
marginRight: string | number | {
|
|
264
|
-
readonly [
|
|
263
|
+
readonly [$$ScaleValue]: "space";
|
|
265
264
|
};
|
|
266
265
|
};
|
|
267
266
|
my: (value: string | number | {
|
|
268
|
-
readonly [
|
|
267
|
+
readonly [$$ScaleValue]: "space";
|
|
269
268
|
}) => {
|
|
270
269
|
marginTop: string | number | {
|
|
271
|
-
readonly [
|
|
270
|
+
readonly [$$ScaleValue]: "space";
|
|
272
271
|
};
|
|
273
272
|
marginBottom: string | number | {
|
|
274
|
-
readonly [
|
|
273
|
+
readonly [$$ScaleValue]: "space";
|
|
275
274
|
};
|
|
276
275
|
};
|
|
277
276
|
}>>;
|
|
278
|
-
declare type ButtonProps = Override<React.ComponentProps<typeof StyledButton>,
|
|
277
|
+
declare type ButtonProps = Override<React.ComponentProps<typeof StyledButton>, VariantProps<typeof StyledButton> & {
|
|
279
278
|
as?: React.ComponentType | React.ElementType;
|
|
280
279
|
children: React.ReactNode;
|
|
281
280
|
isLoading?: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{darken as i,opacify as s}from"color2k";import*as o from"react";import{Box as b}from"../box/Box.js";import{Icon as w}from"../icon/Icon.js";import{Loader as k}from"../loader/Loader.js";import{styled as v,theme as l}from"../../stitches.js";const d=(e,r,a)=>({border:"1px solid",borderColor:"currentColor",color:e,"&[disabled]":{borderColor:"$tonal400",color:"$tonal400",cursor:"not-allowed"},"&:not([disabled]):hover, &:not([disabled]):focus":{textDecoration:"none",color:r},"&:not([disabled]):active":{color:a}}),n=(e,r,a,t="white")=>({bg:e,color:t,"&[disabled]":{bg:"$tonal100",color:"$tonal400",cursor:"not-allowed"},"&:not([disabled]):hover, &:not([disabled]):focus":{bg:r,color:t},"&:not([disabled]):active":{bg:a}}),p=v("button",{alignItems:"center",bg:"unset",border:"unset",borderRadius:"$0",cursor:"pointer",display:"flex",fontFamily:"$body",fontWeight:600,justifyContent:"center",p:"unset",textDecoration:"none",transition:"all 100ms ease-out",whiteSpace:"nowrap",width:"max-content",variants:{theme:{primary:{},secondary:{},success:{},warning:{},danger:{},neutral:{}},appearance:{solid:{},outline:{}},size:{sm:{fontSize:"$sm",lineHeight:1.53,height:"$3",px:"$4"},md:{fontSize:"$md",lineHeight:1.5,height:"$4",px:"$5"},lg:{fontSize:"$lg",lineHeight:1.5,height:"$5",px:"$5"}},isLoading:{true:{cursor:"not-allowed",opacity:.6,pointerEvents:"none"}},fullWidth:{false:{width:"max-content"},true:{width:"100%"}}},compoundVariants:[{theme:"primary",appearance:"solid",css:n("$primary","$primaryMid","$primaryDark")},{theme:"secondary",appearance:"solid",css:n("$primaryDark",i(l.colors.primaryDark.value,.1),i(l.colors.primaryDark.value,.15))},{theme:"success",appearance:"solid",css:n("$success","$successMid","$successDark")},{theme:"warning",appearance:"solid",css:n("$warning","$warningMid","$warningDark","$tonal500")},{theme:"danger",appearance:"solid",css:n("$danger","$dangerMid","$dangerDark")},{theme:"neutral",appearance:"solid",css:n("white",s("white",-.1),s("white",-.25),"$primary")},{theme:"primary",appearance:"outline",css:d("$primary","$primaryMid","$primaryDark")},{theme:"neutral",appearance:"outline",css:d("white",s("white",-.2),s("white",-.35))},{theme:"secondary",appearance:"outline",css:d("$primaryDark",i(l.colors.primaryDark.value,.1),i(l.colors.primaryDark.value,.15))}]}),D=({isLoading:e,children:r})=>o.createElement(o.Fragment,null,o.createElement(k,{css:{opacity:e?1:0,position:"absolute",transition:"opacity 150ms"}}),o.createElement(b,{as:"span",css:e?{opacity:0,transition:"opacity 150ms"}:{}},r)),x=e=>{switch(e){case"lg":return 22;case"md":return 20;case"sm":default:return 16}},m=(e,r)=>o.Children.map(e,(a,t)=>(a==null?void 0:a.type)===w?o.cloneElement(a,{css:{[t===0?"mr":"ml"]:r==="sm"?"$2":"$3",size:x(r),...a.props.css?a.props.css:{}}}):a),u=o.forwardRef(({children:e,isLoading:r,onClick:a,href:t,appearance:h="solid",size:c="md",theme:y="primary",type:g="button",...$},f)=>o.createElement(p,{isLoading:r||!1,onClick:r?void 0:a,appearance:h,size:c,theme:y,...$,...t?{as:"a",href:t,onClick:void 0}:{},...t?{}:{type:g},ref:f},typeof r=="boolean"?o.createElement(D,{isLoading:r},m(e,c)):m(e,c)));u.displayName="Button";export{u as Button,p as StyledButton};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ChevronLeft as q,ChevronRight as H}from"@atom-learning/icons";import{useDayzed as J}from"dayzed";import*as e from"react";import{ActionIcon as x}from"../action-icon/ActionIcon.js";import{Box as h}from"../box/Box.js";import{Button as C}from"../button/Button.js";import{Flex as Y}from"../flex/Flex.js";import{Icon as w}from"../icon/Icon.js";import{Text as K}from"../text/Text.js";import{styled as F}from"../../stitches.js";import{monthNamesShort as Q,weekdayNamesShort as V,DEFAULT_LABELS as X}from"./constants.js";import{Day as Z}from"./Day.js";const g=F("div",{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gridGap:"$1 $2"}),ee=F(C,{color:"$tonal600",p:"$3",width:"$6",variants:{selected:{false:{color:"$tonal600 !important",fontWeight:"400","&:hover":{bg:"$tonal100 !important",color:"$tonal600 !important"},"&[disabled]":{bg:"white !important"}}}}}),te=(i,c)=>{const u=i.slice(0,c);return i.slice(c).concat(u)},S=({css:i,refDateSelected:c,refDateToday:u,firstDayOfWeek:f=0,monthNames:N=Q,weekdayNames:T=V,labels:y=X,date:n=new Date,minDate:l,maxDate:m,setYear:A,...L})=>{const[a,E]=e.useState(!1),[s,k]=e.useState(n==null?void 0:n.getFullYear()),O=t=>{const r=n;r.setFullYear(t),A(r),E(!1)},W=l&&s-16<=l.getFullYear(),z=m&&s>=m.getFullYear(),B=Array.from({length:16},(t,r)=>{const o=s-r;return m&&o>m.getFullYear()||l&&o<l.getFullYear()?0:o}),{calendars:d,getBackProps:I,getForwardProps:M,getDateProps:G}=J({firstDayOfWeek:f,showOutsideDays:!0,date:n,minDate:l,maxDate:m,...L});return d.length?e.createElement(h,{css:{position:"relative",width:"min-content",mt:"-$1",...i}},e.createElement(Y,{css:{position:"absolute",top:0,right:"-$1"}},e.createElement(x,{label:y[a?"previousYear":"previous"],theme:"neutral",size:"md",...!a&&I({calendars:d}),...a&&{onClick:()=>k(s-16)},disabled:a&&W},e.createElement(w,{is:q})),e.createElement(x,{label:y[a?"nextYear":"next"],theme:"neutral",size:"md",...!a&&M({calendars:d}),...a&&{onClick:()=>k(s+16)},disabled:a&&z},e.createElement(w,{is:H}))),a&&e.createElement(g,{css:{gridTemplateColumns:"repeat(4, 1fr)",pt:"$7",direction:"rtl",gridGap:"$3 $1"}},B.map((t,r)=>{const o=t===n.getFullYear();return t?e.createElement(ee,{key:`${t}${r}`,theme:o?"primary":"neutral",onClick:()=>O(t),selected:o},t):e.createElement(h,{key:r,css:{width:"$6",height:"$4"}})})),!a&&d.map(({month:t,year:r,weeks:o})=>e.createElement(h,{key:`${t}${r}`},e.createElement(Y,{css:{height:"$4",alignItems:"center",mb:"$4"}},e.createElement(C,{theme:"neutral",css:{px:"0",color:"$tonal600"},onClick:()=>E(!0)},N[t]," ",r)),e.createElement(g,{css:{mb:"$3"}},te(T,f).map(p=>e.createElement(K,{as:"span",size:"sm",key:`${t}${r}${p}`,css:{fontWeight:600,textAlign:"center"}},p))),e.createElement(g,null,o.map((p,P)=>p.map(($,j)=>{const D=`${t}${r}${P}${j}`;if(!$)return e.createElement("div",{key:D});const{date:R,selected:b,today:v,prevMonth:U,nextMonth:_}=$;return e.createElement(Z,{isOutsideMonth:U||_,isSelected:b,isToday:v,key:D,ref:b?c:v?u:null,...G({dateObj:$}),type:"button"},R.getDate())})))))):null};S.displayName="Calendar";export{S as Calendar};
|
|
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
|
package/dist/{lib/src/components → components}/chip-dismissible-group/ChipDismissibleGroupItem.js
RENAMED
|
File without changes
|
package/dist/{lib/src/components → components}/chip-dismissible-group/ChipDismissibleGroupRoot.js
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import * as ToggleGroup from '@radix-ui/react-toggle-group';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
declare const StyledChipToggleGroupItem: import("@stitches/react/types/styled-component").StyledComponent<React.ForwardRefExoticComponent<import("../chip/Chip").TChipRootProps> & {
|
|
4
4
|
Content: ({ children, ...rest }: {
|
|
5
5
|
[x: string]: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ok as i}from"@atom-learning/icons";import*as m from"@radix-ui/react-toggle-group";import*as o from"react";import{Chip as t}from"../chip/Chip.js";import"../chip/ChipGroup.js";import{Icon as s}from"../icon/Icon.js";import{styled as r}from"../../stitches.js";import{focusVisibleStyleBlock as c}from"../../utilities/style/focus-visible-style-block.js";const e=r(s,{display:"none"}),p=r(t,{"&:not([disabled])":{cursor:"pointer","&:hover":{bg:"$tonal100",color:"$tonal600",borderColor:"currentColor"},"&:focus-visible":{...c()},'&[data-state="on"]':{"&:hover":{bg:"$white",color:"$primaryDark"}}},'&[data-state="off"]':{color:"$tonal400",bg:"$tonal50",borderColor:"$tonal200"},'&[data-state="on"]':{[`& ${e}`]:{display:"block"}}}),d=({size:l="md",children:a,...n})=>o.createElement(m.Item,{...n,asChild:!0},o.createElement(p,{asWorkaround:"button"},o.createElement(e,{is:i,size:l==="lg"?"md":"sm"}),o.createElement(t.Content,null,a)));export{d as ChipToggleGroupItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"@radix-ui/react-toggle-group";import*as o from"react";import"../chip/Chip.js";import{ChipGroup as i}from"../chip/ChipGroup.js";const
|
|
1
|
+
import*as e from"@radix-ui/react-toggle-group";import*as o from"react";import"../chip/Chip.js";import{ChipGroup as i}from"../chip/ChipGroup.js";const p=o.forwardRef((r,t)=>o.createElement(i,{ref:t,as:e.Root,orientation:"horizontal",...r}));export{p as ChipToggleGroupRoot};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as r from"react";import{DataTableBody as t}from"./DataTableBody.js";import{DataTableProvider as e}from"./DataTableContext.js";import{DataTableDataCell as m}from"./DataTableDataCell.js";import{DataTableError as l}from"./DataTableError.js";import{DataTableGlobalFilter as i}from"./DataTableGlobalFilter.js";import{DataTableHead as p}from"./DataTableHead.js";import{DataTableHeaderCell as b}from"./DataTableHeaderCell.js";import{DataTableLoading as D}from"./DataTableLoading.js";import{DataTableRow as T}from"./DataTableRow.js";import{DataTableTable as f}from"./DataTableTable.js";import"./drag-and-drop/DragAndDropContainer.js";import"@dnd-kit/sortable";import"@dnd-kit/utilities";import"@tanstack/react-table";import"../table/Table.js";import"./drag-and-drop/Handle.js";import{DragAndDropTable as d}from"./drag-and-drop/DragAndDropTable.js";import{Pagination as n}from"./pagination/Pagination.js";const a=o=>r.createElement(e,{...o});a.Body=t,a.DataCell=m,a.DragAndDropTable=d,a.Head=p,a.HeaderCell=b,a.Pagination=n,a.Row=T,a.GlobalFilter=i,a.Table=f,a.Loading=D,a.Error=l;export{a as DataTable};
|