@atom-learning/components 2.28.1-beta.0 → 2.28.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 +7 -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/{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 +1 -1
- 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/{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 +0 -0
- package/dist/{lib/src/components → components}/badge/Badge.js +0 -0
- package/dist/{lib/src/components → components}/box/Box.js +0 -0
- package/dist/{lib/src/components → components}/button/Button.js +1 -1
- package/dist/{lib/src/components → components}/calendar/Calendar.js +1 -1
- 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 +1 -1
- package/dist/{lib/src/components → components}/carousel/CarouselPagination.js +0 -0
- package/dist/components/carousel/CarouselSlide.js +1 -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 +1 -1
- package/dist/{lib/src/components → components}/chip/Chip.js +1 -1
- package/dist/components/chip/ChipGroup.js +1 -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 +1 -1
- package/dist/{lib/src/components → components}/chip-dismissible-group/index.js +0 -0
- package/dist/{lib/src/components → components}/chip-toggle-group/ChipToggleGroupItem.js +0 -0
- package/dist/{lib/src/components → components}/chip-toggle-group/ChipToggleGroupRoot.js +0 -0
- 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/{lib/src/components → components}/data-table/DataTable.js +1 -1
- package/dist/{lib/src/components → components}/data-table/DataTable.types.js +0 -0
- package/dist/components/data-table/DataTableBody.js +1 -0
- package/dist/{lib/src/components → components}/data-table/DataTableContext.js +0 -0
- package/dist/components/data-table/DataTableDataCell.js +1 -0
- package/dist/{lib/src/components → components}/data-table/DataTableError.js +0 -0
- package/dist/{lib/src/components → components}/data-table/DataTableGlobalFilter.js +0 -0
- package/dist/{lib/src/components → components}/data-table/DataTableHead.js +0 -0
- package/dist/{lib/src/components → components}/data-table/DataTableHeaderCell.js +0 -0
- package/dist/{lib/src/components → components}/data-table/DataTableLoading.js +0 -0
- package/dist/{lib/src/components → components}/data-table/DataTableRow.js +1 -1
- package/dist/{lib/src/components → components}/data-table/DataTableTable.js +0 -0
- package/dist/{lib/src/components → components}/data-table/drag-and-drop/DragAndDropContainer.js +0 -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/{lib/src/components → components}/data-table/drag-and-drop/DraggableRow.js +0 -0
- package/dist/{lib/src/components → components}/data-table/drag-and-drop/Handle.js +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/{lib/src/components → components}/data-table/usePagination.js +0 -0
- 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/{lib/src/components → components}/date-input/DateInput.js +0 -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 +1 -1
- package/dist/components/dismissible/DismissibleRoot.js +1 -0
- package/dist/components/dismissible/DismissibleTrigger.js +1 -0
- package/dist/{lib/src/components → components}/dismissible/index.js +0 -0
- package/dist/{lib/src/components → components}/dismissible-group/DismissibleGroupItem.js +0 -0
- package/dist/{lib/src/components → components}/dismissible-group/DismissibleGroupRoot.js +0 -0
- package/dist/{lib/src/components → components}/dismissible-group/index.js +0 -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/components/dropdown-menu/DropdownMenuLinkItem.js +1 -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/components/field-wrapper/FieldDescription.js +1 -0
- package/dist/{lib/src/components → components}/field-wrapper/FieldWrapper.js +0 -0
- package/dist/{lib/src/components → components}/field-wrapper/InlineFieldWrapper.js +1 -1
- package/dist/components/file-input/FileInput.js +1 -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 +1 -1
- package/dist/{lib/src/components → components}/heading/Heading.js +0 -0
- package/dist/{lib/src/components → components}/icon/Icon.js +1 -1
- package/dist/{lib/src/components → components}/image/Image.js +0 -0
- package/dist/{lib/src/components → components}/inline-message/InlineMessage.config.js +0 -0
- package/dist/{lib/src/components → components}/inline-message/InlineMessage.js +1 -1
- 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 +1 -1
- package/dist/{lib/src/components → components}/link/Link.js +1 -1
- 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/components/markdown-content/components/MarkdownEmphasis.js +1 -0
- package/dist/components/markdown-content/components/MarkdownHeading.js +1 -0
- package/dist/components/markdown-content/components/MarkdownImage.js +1 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownInlineCode.js +1 -1
- package/dist/components/markdown-content/components/MarkdownLink.js +1 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownList.js +0 -0
- package/dist/components/markdown-content/components/MarkdownListItem.js +1 -0
- package/dist/components/markdown-content/components/MarkdownParagraph.js +1 -0
- package/dist/components/markdown-content/components/MarkdownStrong.js +1 -0
- package/dist/{lib/src/components → components}/markdown-content/components/MarkdownText.js +0 -0
- package/dist/components/markdown-content/components/MarkdownThematicBreak.js +1 -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/{lib/src/components → components}/navigation/NavigationMenuDropdownTrigger.js +0 -0
- package/dist/{lib/src/components → components}/navigation/NavigationMenuLink.js +1 -1
- package/dist/{lib/src/components → components}/notification-badge/NotificationBadge.js +1 -1
- package/dist/components/number-input/NumberInput.js +1 -0
- package/dist/{lib/src/components → components}/number-input/NumberInputStepper.js +0 -0
- package/dist/{lib/src/components → components}/number-input-field/NumberInputField.js +1 -1
- 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 +1 -1
- package/dist/{lib/src/components → components}/progress-bar/ProgressBar.js +0 -0
- package/dist/{lib/src/components → components}/radio-button/RadioButton.js +1 -1
- 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 +1 -1
- package/dist/{lib/src/components → components}/radio-card/RadioCard.js +0 -0
- package/dist/components/radio-card/RadioCardGroup.js +1 -0
- package/dist/{lib/src/components → components}/search-field/SearchField.js +0 -0
- package/dist/{lib/src/components → components}/search-input/SearchInput.js +1 -1
- package/dist/{lib/src/components → components}/select/Select.js +0 -0
- package/dist/components/select-field/SelectField.js +1 -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/{lib/src/components → components}/sidedrawer/SidedrawerAccordion/SidedrawerAccordionTrigger.js +0 -0
- package/dist/{lib/src/components → components}/sidedrawer/SidedrawerBody.js +0 -0
- package/dist/{lib/src/components → components}/sidedrawer/SidedrawerClose.js +0 -0
- package/dist/{lib/src/components → components}/sidedrawer/SidedrawerContent.js +1 -1
- 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 +0 -0
- 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 +1 -1
- package/dist/{lib/src/components → components}/stack/Stack.js +0 -0
- package/dist/{lib/src/components → components}/stack-content/StackContent.js +1 -1
- package/dist/{lib/src/components → components}/stepper/Stepper.js +0 -0
- package/dist/{lib/src/components → components}/stepper/StepperStepBack.js +1 -1
- 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 +1 -1
- package/dist/{lib/src/components → components}/table/TableHeaderCell.js +0 -0
- package/dist/components/table/TableRow.js +1 -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 +1 -1
- package/dist/{lib/src/components → components}/toast/ToastProvider.js +1 -1
- 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 +0 -0
- 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 +1 -1
- 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 +1 -1
- 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/Tabs.mdx +57 -31
- package/dist/index.cjs.js +1 -1
- package/dist/{lib/src/index.js → index.js} +0 -0
- package/dist/{lib/src/stitches.js → stitches.js} +0 -0
- 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/utilities/hooks/useCallbackRef.js +1 -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/{lib/src/utilities → utilities}/optionally-visually-hidden-container/OptionallyVisuallyHiddenContainer.js +0 -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 -6
- 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/carousel/CarouselSlide.js +0 -1
- package/dist/lib/src/components/chip/ChipGroup.js +0 -1
- package/dist/lib/src/components/data-table/DataTableBody.js +0 -1
- package/dist/lib/src/components/data-table/DataTableDataCell.js +0 -1
- package/dist/lib/src/components/dismissible/DismissibleRoot.js +0 -1
- package/dist/lib/src/components/dismissible/DismissibleTrigger.js +0 -1
- package/dist/lib/src/components/dropdown-menu/DropdownMenuLinkItem.js +0 -1
- package/dist/lib/src/components/field-wrapper/FieldDescription.js +0 -1
- package/dist/lib/src/components/file-input/FileInput.js +0 -1
- package/dist/lib/src/components/list/List.js +0 -1
- package/dist/lib/src/components/markdown-content/components/MarkdownEmphasis.js +0 -1
- package/dist/lib/src/components/markdown-content/components/MarkdownHeading.js +0 -1
- package/dist/lib/src/components/markdown-content/components/MarkdownImage.js +0 -1
- package/dist/lib/src/components/markdown-content/components/MarkdownLink.js +0 -1
- package/dist/lib/src/components/markdown-content/components/MarkdownListItem.js +0 -1
- package/dist/lib/src/components/markdown-content/components/MarkdownParagraph.js +0 -1
- package/dist/lib/src/components/markdown-content/components/MarkdownStrong.js +0 -1
- package/dist/lib/src/components/markdown-content/components/MarkdownThematicBreak.js +0 -1
- package/dist/lib/src/components/navigation/NavigationMenuDropdownContent.js +0 -1
- package/dist/lib/src/components/number-input/NumberInput.js +0 -1
- package/dist/lib/src/components/radio-card/RadioCardGroup.js +0 -1
- package/dist/lib/src/components/select-field/SelectField.js +0 -1
- package/dist/lib/src/components/table/TableRow.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/hooks/useCallbackRef.js +0 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
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};
|
|
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.28.1
|
|
7
|
+
"version": "2.28.1",
|
|
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/
|
|
46
|
+
"path": "dist/index.js",
|
|
47
47
|
"import": "{ Box }"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"limit": "16kb",
|
|
51
|
-
"path": "dist/
|
|
51
|
+
"path": "dist/index.js",
|
|
52
52
|
"import": "{ Button }"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"limit": "75kb",
|
|
56
|
-
"path": "dist/
|
|
56
|
+
"path": "dist/index.js",
|
|
57
57
|
"import": "{ useAlert, AlertProvider }"
|
|
58
58
|
}
|
|
59
59
|
],
|
|
@@ -126,7 +126,6 @@
|
|
|
126
126
|
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
|
127
127
|
},
|
|
128
128
|
"dependencies": {
|
|
129
|
-
"@atom-learning/color-scheme": "0.0.0-semantically-released",
|
|
130
129
|
"@atom-learning/theme": "1.1.1",
|
|
131
130
|
"@dnd-kit/core": "^6.0.5",
|
|
132
131
|
"@dnd-kit/modifiers": "^6.0.0",
|
|
@@ -172,7 +171,7 @@
|
|
|
172
171
|
"husky": {
|
|
173
172
|
"hooks": {
|
|
174
173
|
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
175
|
-
"pre-commit": "bash
|
|
174
|
+
"pre-commit": "bash scripts/prevent-commit.sh && lint-staged"
|
|
176
175
|
}
|
|
177
176
|
},
|
|
178
177
|
"commitlint": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as a from"react";import{styled as l,colorSchemes as e}from"./stitches.colorscheme.config.js";const f=l("div"),o=a.forwardRef(({base:r="",accent:t="",interactive:c="",className:s,...m},n)=>{const i=[s,e[`interactive-${c}`],e[`accent-${t}`],e[`base-${r}`]].filter(Boolean).join(" ");return a.createElement(f,{ref:n,className:i,...m})});o.displayName="ColorScheme";export{o as ColorScheme};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e="#F3F8FF",l="#E5F1FF",u="#D6EAFF",b="#C2DEFF",F="#B3D4FA",a="#057AFF",s="#0F67F5",D="#194DCC",A="#102DA3",E="#15235E",r={blue1:e,blue2:l,blue3:u,blue4:b,blue5:F,blue6:a,blue7:s,blue8:D,blue9:A,blue10:E};export{e as blue1,E as blue10,l as blue2,u as blue3,b as blue4,F as blue5,a as blue6,s as blue7,D as blue8,A as blue9,r as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{parseToRgba as $}from"color2k";const f=[255,255,255,1],t=[.05,.1,.15,.2,.27,.35,.5,.7,.8,.95],e=a=>Math.round(Math.max(Math.min(a,255),0)),u=(a,h)=>{const n={};return Object.entries(h).forEach(([M,i],o)=>{const[p,b,g]=$(i),[r,s,c]=f,m=[e((p-r)/t[o]+r),e((b-s)/t[o]+s),e((g-c)/t[o]+c),t[o]];n[`${a}A${o+1}`]=`rgba(${m.join(",")})`}),n};export{u as generateAlphaColors};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a="#F6F6F6",s="#EBEBEB",e="#E0E0E0",t="#CECECE",l="#C2C2C2",C="#757575",E="#545454",F="#333333",B="#1F1F1F",r="#1C1C1C",v={slate1:a,slate2:s,slate3:e,slate4:t,slate5:l,slate6:C,slate7:E,slate8:F,slate9:B,slate10:r};export{v as default,a as slate1,r as slate10,s as slate2,e as slate3,t as slate4,l as slate5,C as slate6,E as slate7,F as slate8,B as slate9};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createStitches as u}from"@stitches/react";import i from"./blue.json.js";import n from"./slate.json.js";import{generateAlphaColors as s}from"./generateAlphaColors.js";const t={},$=(c,a)=>{const e={};for(let o=1;o<=10;o++)e[`${c}${o}`]=`$${a}${o}`,e[`${c}A${o}`]=`$${a}A${o}`;return e},{styled:h,createTheme:r}=u({theme:{colors:{background:"white",foreground:n.slate9,foreground6plus:"white",...i,...s("blue",i),...n,...s("slate",n)}}});t["interactive-loContrast1"]=r("interactive-loContrast1",{colors:{interactiveForeground:"$foreground",interactive1:"white",interactive2:"$accent1",interactive3:"$accent2"}}),t["interactive-loContrast2"]=r("interactive-loContrast2",{colors:{interactiveForeground:"$foreground",interactive1:"$accent1",interactive2:"$accent2",interactive3:"$accent3"}}),t["interactive-hiContrast1"]=r("interactive-hiContrast1",{colors:{interactiveForeground:"$foreground6plus",interactive1:"$accent7",interactive2:"$accent8",interactive3:"$accent9"}}),t["interactive-hiContrast2"]=r("interactive-hiContrast2",{colors:{interactiveForeground:"$foreground6plus",interactive1:"$accent8",interactive2:"$accent9",interactive3:"$accent10"}});const l={slate:"slate"},f=()=>{Object.entries(l).forEach(([c,a])=>{const e=`base-${c}`;t[e]=r(e,{colors:$("base",a)})})},v={slate:"slate",blue:"blue"},d=()=>{Object.entries(v).forEach(([c,a])=>{const e=`accent-${c}`;t[e]=r(e,{colors:$("accent",a)})})};f(),d();export{v as accents,l as bases,t as colorSchemes,r as createTheme,h as styled};
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const TabsContent: import("@stitches/react/types/styled-component").StyledComponent<import("react").ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsContentProps & import("react").RefAttributes<HTMLDivElement>>, {}, {
|
|
3
|
-
sm: string;
|
|
4
|
-
md: string;
|
|
5
|
-
lg: string;
|
|
6
|
-
xl: string;
|
|
7
|
-
reducedMotion: string;
|
|
8
|
-
allowMotion: string;
|
|
9
|
-
hover: string;
|
|
10
|
-
}, import("@stitches/react/types/css-util").CSS<{
|
|
11
|
-
sm: string;
|
|
12
|
-
md: string;
|
|
13
|
-
lg: string;
|
|
14
|
-
xl: string;
|
|
15
|
-
reducedMotion: string;
|
|
16
|
-
allowMotion: string;
|
|
17
|
-
hover: string;
|
|
18
|
-
}, {
|
|
19
|
-
colors: {
|
|
20
|
-
textForeground: any;
|
|
21
|
-
textSubtle: any;
|
|
22
|
-
textPlaceholder: any;
|
|
23
|
-
background: any;
|
|
24
|
-
backgroundAccent: any;
|
|
25
|
-
tonal50: any;
|
|
26
|
-
tonal100: any;
|
|
27
|
-
tonal200: any;
|
|
28
|
-
tonal300: any;
|
|
29
|
-
tonal400: any;
|
|
30
|
-
tonal500: any;
|
|
31
|
-
tonal600: any;
|
|
32
|
-
alpha100: any;
|
|
33
|
-
alpha150: any;
|
|
34
|
-
alpha200: any;
|
|
35
|
-
alpha250: any;
|
|
36
|
-
alpha600: any;
|
|
37
|
-
primaryLight: any;
|
|
38
|
-
primary: any;
|
|
39
|
-
primaryMid: any;
|
|
40
|
-
primaryDark: any;
|
|
41
|
-
secondary: any;
|
|
42
|
-
brandRed: any;
|
|
43
|
-
brandRedAccent: any;
|
|
44
|
-
brandGreen: any;
|
|
45
|
-
brandGreenAccent: any;
|
|
46
|
-
brandPurple: any;
|
|
47
|
-
brandPurpleAccent: any;
|
|
48
|
-
brandYellow: any;
|
|
49
|
-
brandYellowAccent: any;
|
|
50
|
-
successLight: any;
|
|
51
|
-
success: any;
|
|
52
|
-
successMid: any;
|
|
53
|
-
successDark: any;
|
|
54
|
-
dangerLight: any;
|
|
55
|
-
danger: any;
|
|
56
|
-
dangerMid: any;
|
|
57
|
-
dangerDark: any;
|
|
58
|
-
warningLight: any;
|
|
59
|
-
warning: any;
|
|
60
|
-
warningMid: any;
|
|
61
|
-
warningDark: any;
|
|
62
|
-
warningText: any;
|
|
63
|
-
subjectEnglish: any;
|
|
64
|
-
subjectMaths: any;
|
|
65
|
-
subjectScience: any;
|
|
66
|
-
subjectVerbalReasoning: any;
|
|
67
|
-
subjectNonVerbalReasoning: any;
|
|
68
|
-
subjectCreativeWriting: any;
|
|
69
|
-
subjectExamSkills: any;
|
|
70
|
-
};
|
|
71
|
-
space: {
|
|
72
|
-
"0": any;
|
|
73
|
-
"1": any;
|
|
74
|
-
"2": any;
|
|
75
|
-
"3": any;
|
|
76
|
-
"4": any;
|
|
77
|
-
"5": any;
|
|
78
|
-
"6": any;
|
|
79
|
-
"7": any;
|
|
80
|
-
"8": any;
|
|
81
|
-
"9": any;
|
|
82
|
-
};
|
|
83
|
-
fontSizes: {
|
|
84
|
-
xs: any;
|
|
85
|
-
sm: any;
|
|
86
|
-
md: any;
|
|
87
|
-
lg: any;
|
|
88
|
-
xl: any;
|
|
89
|
-
"2xl": any;
|
|
90
|
-
"3xl": any;
|
|
91
|
-
"4xl": any;
|
|
92
|
-
};
|
|
93
|
-
fonts: {
|
|
94
|
-
sans: any;
|
|
95
|
-
mono: any;
|
|
96
|
-
display: any;
|
|
97
|
-
body: any;
|
|
98
|
-
};
|
|
99
|
-
sizes: {
|
|
100
|
-
"0": any;
|
|
101
|
-
"1": any;
|
|
102
|
-
"2": any;
|
|
103
|
-
"3": any;
|
|
104
|
-
"4": any;
|
|
105
|
-
"5": any;
|
|
106
|
-
"6": any;
|
|
107
|
-
"7": any;
|
|
108
|
-
"8": any;
|
|
109
|
-
};
|
|
110
|
-
radii: {
|
|
111
|
-
"0": any;
|
|
112
|
-
"1": any;
|
|
113
|
-
"2": any;
|
|
114
|
-
"3": any;
|
|
115
|
-
round: any;
|
|
116
|
-
};
|
|
117
|
-
shadows: {
|
|
118
|
-
"0": any;
|
|
119
|
-
"1": any;
|
|
120
|
-
"2": any;
|
|
121
|
-
"3": any;
|
|
122
|
-
};
|
|
123
|
-
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
124
|
-
bg: (value: {
|
|
125
|
-
readonly [$$PropertyValue]: "background";
|
|
126
|
-
}) => {
|
|
127
|
-
background: {
|
|
128
|
-
readonly [$$PropertyValue]: "background";
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
inset: (value: string | number | {
|
|
132
|
-
readonly [$$ScaleValue]: "space";
|
|
133
|
-
}) => {
|
|
134
|
-
top: string | number | {
|
|
135
|
-
readonly [$$ScaleValue]: "space";
|
|
136
|
-
};
|
|
137
|
-
right: string | number | {
|
|
138
|
-
readonly [$$ScaleValue]: "space";
|
|
139
|
-
};
|
|
140
|
-
bottom: string | number | {
|
|
141
|
-
readonly [$$ScaleValue]: "space";
|
|
142
|
-
};
|
|
143
|
-
left: string | number | {
|
|
144
|
-
readonly [$$ScaleValue]: "space";
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
size: (value: string | number | {
|
|
148
|
-
readonly [$$ScaleValue]: "size";
|
|
149
|
-
}) => {
|
|
150
|
-
height: string | number | {
|
|
151
|
-
readonly [$$ScaleValue]: "size";
|
|
152
|
-
};
|
|
153
|
-
width: string | number | {
|
|
154
|
-
readonly [$$ScaleValue]: "size";
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
p: (value: string | number | {
|
|
158
|
-
readonly [$$ScaleValue]: "space";
|
|
159
|
-
}) => {
|
|
160
|
-
padding: string | number | {
|
|
161
|
-
readonly [$$ScaleValue]: "space";
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
pt: (value: string | number | {
|
|
165
|
-
readonly [$$ScaleValue]: "space";
|
|
166
|
-
}) => {
|
|
167
|
-
paddingTop: string | number | {
|
|
168
|
-
readonly [$$ScaleValue]: "space";
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
pr: (value: string | number | {
|
|
172
|
-
readonly [$$ScaleValue]: "space";
|
|
173
|
-
}) => {
|
|
174
|
-
paddingRight: string | number | {
|
|
175
|
-
readonly [$$ScaleValue]: "space";
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
pb: (value: string | number | {
|
|
179
|
-
readonly [$$ScaleValue]: "space";
|
|
180
|
-
}) => {
|
|
181
|
-
paddingBottom: string | number | {
|
|
182
|
-
readonly [$$ScaleValue]: "space";
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
pl: (value: string | number | {
|
|
186
|
-
readonly [$$ScaleValue]: "space";
|
|
187
|
-
}) => {
|
|
188
|
-
paddingLeft: string | number | {
|
|
189
|
-
readonly [$$ScaleValue]: "space";
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
px: (value: string | number | {
|
|
193
|
-
readonly [$$ScaleValue]: "space";
|
|
194
|
-
}) => {
|
|
195
|
-
paddingLeft: string | number | {
|
|
196
|
-
readonly [$$ScaleValue]: "space";
|
|
197
|
-
};
|
|
198
|
-
paddingRight: string | number | {
|
|
199
|
-
readonly [$$ScaleValue]: "space";
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
py: (value: string | number | {
|
|
203
|
-
readonly [$$ScaleValue]: "space";
|
|
204
|
-
}) => {
|
|
205
|
-
paddingTop: string | number | {
|
|
206
|
-
readonly [$$ScaleValue]: "space";
|
|
207
|
-
};
|
|
208
|
-
paddingBottom: string | number | {
|
|
209
|
-
readonly [$$ScaleValue]: "space";
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
m: (value: string | number | {
|
|
213
|
-
readonly [$$ScaleValue]: "space";
|
|
214
|
-
}) => {
|
|
215
|
-
margin: string | number | {
|
|
216
|
-
readonly [$$ScaleValue]: "space";
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
mt: (value: string | number | {
|
|
220
|
-
readonly [$$ScaleValue]: "space";
|
|
221
|
-
}) => {
|
|
222
|
-
marginTop: string | number | {
|
|
223
|
-
readonly [$$ScaleValue]: "space";
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
mr: (value: string | number | {
|
|
227
|
-
readonly [$$ScaleValue]: "space";
|
|
228
|
-
}) => {
|
|
229
|
-
marginRight: string | number | {
|
|
230
|
-
readonly [$$ScaleValue]: "space";
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
mb: (value: string | number | {
|
|
234
|
-
readonly [$$ScaleValue]: "space";
|
|
235
|
-
}) => {
|
|
236
|
-
marginBottom: string | number | {
|
|
237
|
-
readonly [$$ScaleValue]: "space";
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
ml: (value: string | number | {
|
|
241
|
-
readonly [$$ScaleValue]: "space";
|
|
242
|
-
}) => {
|
|
243
|
-
marginLeft: string | number | {
|
|
244
|
-
readonly [$$ScaleValue]: "space";
|
|
245
|
-
};
|
|
246
|
-
};
|
|
247
|
-
mx: (value: string | number | {
|
|
248
|
-
readonly [$$ScaleValue]: "space";
|
|
249
|
-
}) => {
|
|
250
|
-
marginLeft: string | number | {
|
|
251
|
-
readonly [$$ScaleValue]: "space";
|
|
252
|
-
};
|
|
253
|
-
marginRight: string | number | {
|
|
254
|
-
readonly [$$ScaleValue]: "space";
|
|
255
|
-
};
|
|
256
|
-
};
|
|
257
|
-
my: (value: string | number | {
|
|
258
|
-
readonly [$$ScaleValue]: "space";
|
|
259
|
-
}) => {
|
|
260
|
-
marginTop: string | number | {
|
|
261
|
-
readonly [$$ScaleValue]: "space";
|
|
262
|
-
};
|
|
263
|
-
marginBottom: string | number | {
|
|
264
|
-
readonly [$$ScaleValue]: "space";
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
}>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Content as n}from"@radix-ui/react-accordion";import t from"react";import{keyframes as o,styled as i}from"../../stitches.js";import{CSSWrapper as d}from"../../utilities/css-wrapper/CSSWrapper.js";const c=o({from:{height:0},to:{height:"var(--radix-accordion-content-height)"}}),s=o({from:{height:"var(--radix-accordion-content-height)"},to:{height:0}}),m=i(n,{border:0,width:"100%",bg:"$background",overflow:"hidden",'&[data-state="open"]':{borderRadius:"0 0 $0 $0"},"@allowMotion":{'&[data-state="open"]':{animation:`${c} 300ms ease-out`},'&[data-state="closed"]':{animation:`${s} 300ms ease-out`}}}),h=({children:e,css:r,...a})=>t.createElement(m,{...a},t.createElement(d,{css:r},e));export{h as AccordionContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Item as m}from"@radix-ui/react-accordion";import r from"react";import{styled as l}from"../../stitches.js";const c=l(m,{width:"100%","&:not(:last-child)":{mb:"$1"}}),i=({children:t,value:o,...e})=>r.createElement(c,{value:o,...e},t);export{i as AccordionItem};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ChevronDown as i}from"@atom-learning/icons";import{Trigger as s}from"@radix-ui/react-accordion";import e from"react";import{styled as t}from"../../stitches.js";import{Icon as n}from"../icon/Icon.js";import{ColorScheme as c}from"../../../../color-scheme/dist/ColorScheme.js";import{focusVisibleStyleBlock as d}from"../../utilities/style/focus-visible-style-block.js";const l=t(n,{transition:"transform 300ms",'[data-state="open"] > &':{transform:"rotate(180deg)"},'[data-state="closed"] > &':{transform:"rotate(0deg)"}}),m=t(s,{border:0,py:"$3",px:"$4",width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",bg:"$interactive2",color:"$interactiveForeground","&[data-disabled]":{opacity:.3,cursor:"not-allowed"},"&:not([data-disabled])":{"&:active, &:hover, &:focus-visible":{bg:"$interactive3"},"&:focus-visible":{...d()}},'&[data-state="open"]':{borderRadius:"$0 $0 0 0"},'&[data-state="closed"]':{borderRadius:"$0"}}),f=({children:o,colorScheme:r={},...a})=>e.createElement(c,{as:m,accent:"slate",interactive:"loContrast1",...r,...a},o,e.createElement(l,{is:i}));export{f as AccordionTrigger};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Slide as t}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(t,{}),s=({children:o,...r})=>e.createElement(l,{...r,tag:"div"},e.createElement(m,{css:{px:"$3"}},o));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,...e},t)=>r.createElement(a,{ref:t,direction:"row",gap:o,align:!1,...e}));export{p as ChipGroup};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as o 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,...t})=>{const{getRowModel:a}=p();return o.createElement(m.Body,{...t,striped:r},a().rows.map(e=>o.createElement(i.Row,{row:e,key:e.id})))};export{l as DataTableBody};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as l from"react";import{Table as o}from"../table/Table.js";import{flexRender as t}from"@tanstack/react-table";const m=({cell:e})=>l.createElement(o.Cell,{key:e.id},t(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:i,disabled:s})=>{const[t,o]=e.useState(!1),l=e.useMemo(()=>({disabled:s,isDismissed:t,setIsDismissed:o}),[s,t]);return e.createElement(r.Provider,{value:l},i)},u=({asChild:i=!1,value:s,onDismiss:t,...o})=>{const l=e.useContext(r),{isDismissed:d,disabled:a}=l;if(e.useEffect(()=>{d&&(t==null||t(s))},[d]),d)return null;const m={...a&&{["data-disabled"]:""},...o};return e.createElement(i?c:"div",{...m})},b=({disabled:i=!1,...s})=>e.createElement(n,{disabled:i},e.createElement(u,{...s}));export{b as DismissibleRoot,r as DismissibleRootContext,n as DismissibleRootProvider};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{Slot as m}from"@radix-ui/react-slot";import{DismissibleRootContext as l}from"./DismissibleRoot.js";const b=s=>e.createElement("button",{type:"button",...s},"Dismiss"),a=({asChild:s=!1,...t})=>{const i=e.useContext(l);if(i===void 0)throw new Error("Dismissible.Trigger can only be used within a Dismissible.Item");const{setIsDismissed:o,disabled:r}=i,n={disabled:r,onClick:()=>{o(!0)},...t};return e.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:o,href:t,...r})=>e.createElement(m,{...r,asChild:!0},e.createElement(i,{href:t,role:"menuitem"},o));export{l as DropdownMenuLinkItem};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{Text as r}from"../text/Text.js";const s=({children:o,css:t})=>e.createElement(r,{size:"sm",css:{color:"$tonal300",maxWidth:"80ch",...t}},o);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:o,multiple:i=!1,onFileSelect:n,...r})=>{const p=a=>{const{files:m}=a.target;n(m)};return e.createElement(s,{as:"label",...r},e.createElement(u,{is:c}),o,e.createElement("input",{type:"file",onChange:p,accept:l,multiple:i,hidden:!0}))};t.displayName="FileInput";export{t as FileInput};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{styled as l}from"../../stitches.js";import{textVariants as d}from"../text/Text.js";const t=l("li",{}),o=l("ul",{fontFamily:"$body",m:"unset",p:"unset",[`& > ${t}`]:{"&:not(:last-child)":{mb:"$2"},"&:last-child":{mb:0}},variants:{...d,as:{ol:{pl:"$4",listStyle:"decimal",[`& > ${t}`]:{pl:"$1","&::marker":{fontSize:"$sm",fontWeight:"bold"}}},ul:{pl:"$3",[`& > ${t}`]:{pl:"$2","&::marker":{content:"\u2022",fontWeight:"bold"}}}}}}),i=e.forwardRef(({size:r="md",noCapsize:s=!0,ordered:a,...m},n)=>e.createElement(o,{ref:n,as:a?"ol":"ul",size:r,noCapsize:s,...m}));i.Item=t;export{i as List,t as StyledLi,o as StyledList};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as l from"react";import{styled as n}from"../../../stitches.js";const o=n("em",{fontStyle:"italic"}),a=({node:r,handleNode:t})=>{var e;return l.createElement(o,null,(e=r.children)==null?void 0:e.map(t))};export{a as MarkdownEmphasis,o as StyledMarkdownEmphasis};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as i from"react";import{Heading as o}from"../../heading/Heading.js";const d=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}=d(e.depth);return i.createElement(o,{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 t}from"../../image/Image.js";const m=({node:r,css:a})=>{var o;return e.createElement(t,{src:r.url,alt:(o=r.alt)!=null?o: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:t})=>{var r,o;return l.createElement(i,{title:(r=e.title)!=null?r:void 0,href:e.url},(o=e.children)==null?void 0:o.map(t))};export{n as MarkdownLink};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as r from"react";import{List as n}from"../../list/List.js";const m=({node:t,handleNode:o})=>{var e;return r.createElement(n.Item,null,(e=t.children)==null?void 0:e.map(o))};export{m as MarkdownListItem};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as n from"react";import{Text as t}from"../../text/Text.js";const d=({node:e,handleNode:o,...a})=>{var r;return n.createElement(t,{...a},(r=e.children)==null?void 0:r.map(o))};export{d as MarkdownParagraph};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as t from"react";import{styled as e}from"../../../stitches.js";const d=e("strong",{fontWeight:600}),l=({node:n,handleNode:r})=>{var o;return t.createElement(d,null,(o=n.children)==null?void 0:o.map(r))};export{l as MarkdownStrong};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{Divider as o}from"../../divider/Divider.js";const t=({css:r})=>e.createElement(o,{css:{width:"100%",...r}});export{t as MarkdownThematicBreak};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as r from"@radix-ui/react-navigation-menu";import t from"react";import{styled as o}from"../../stitches.js";const i=o("ul",{listStyle:"none",m:0,p:0}),l=o(r.Content,{p:"$3",bg:"white",mt:"4px",boxShadow:"$1",borderRadius:"$1"}),e=({children:n})=>t.createElement(l,null,t.createElement(i,null,n));e.displayName="NavigationMenuDropdownContent";export{e as NavigationMenuDropdownContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Minus as $,Plus as B}from"@atom-learning/icons";import*as n 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=n.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]=n.useState(y),i=n.useRef(null);n.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=n.useCallback(e=>Math.min(Math.max(e,o),l),[l,o]),a=n.useCallback(e=>{M(e),C==null||C(Number(e))},[C]),z=n.useCallback(e=>{const t=e.target.value.replace(/\D/g,"");a(t)},[a]),b=n.useCallback(()=>{var e;if(d||m)return;(e=i==null?void 0:i.current)==null||e.focus();let t;r===""?t=s:t=Number(r)+s,a(p(t))},[p,d,m,s,a,r]),f=n.useCallback(()=>{var e;if(c||m)return;(e=i==null?void 0:i.current)==null||e.focus();let t;r===""?t=o:t=Number(r)-s,a(p(t))},[p,c,m,o,s,a,r]),D=n.useCallback(e=>{if(e.nativeEvent.isComposing)return;const t=e.key,h={ArrowUp:b,ArrowRight:b,ArrowDown:f,ArrowLeft:f,Home:()=>a(o),End:()=>a(l)}[t];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 n.createElement(F,{css:I},n.createElement(x,{onClick:f,icon:$,css:{borderRight:"none",borderTopRightRadius:"0px",borderBottomRightRadius:"0px"},size:v,disabled:c||u,showTooltip:c&&!u,disabledTooltipContent:R.decrement,label:w.decrement}),n.createElement(H,{...S}),n.createElement(x,{onClick:b,icon:B,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 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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -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 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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|