@commercetools/nimbus-mcp 0.1.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -14
- package/data/docs/route-manifest.json +10998 -0
- package/data/docs/routes/components-accessibility-visually-hidden.json +388 -0
- package/data/docs/routes/components-accessibility.json +34 -0
- package/data/docs/routes/components-buttons-button.json +715 -0
- package/data/docs/routes/components-buttons-icon-button.json +852 -0
- package/data/docs/routes/components-buttons-icon-toggle-button.json +594 -0
- package/data/docs/routes/components-buttons-split-button.json +670 -0
- package/data/docs/routes/components-buttons-toggle-button-group.json +722 -0
- package/data/docs/routes/components-buttons-toggle-button.json +689 -0
- package/data/docs/routes/components-buttons.json +36 -0
- package/data/docs/routes/components-data-display-badge.json +555 -0
- package/data/docs/routes/components-data-display-card.json +338 -0
- package/data/docs/routes/components-data-display-data-table.json +855 -0
- package/data/docs/routes/components-data-display-draggable-list.json +596 -0
- package/data/docs/routes/components-data-display-table.json +472 -0
- package/data/docs/routes/components-data-display-tag-group.json +535 -0
- package/data/docs/routes/components-data-display.json +34 -0
- package/data/docs/routes/components-feedback-alert.json +696 -0
- package/data/docs/routes/components-feedback-dialog.json +682 -0
- package/data/docs/routes/components-feedback-drawer.json +600 -0
- package/data/docs/routes/components-feedback-loading-spinner.json +415 -0
- package/data/docs/routes/components-feedback-progress-bar.json +661 -0
- package/data/docs/routes/components-feedback-toast.json +1040 -0
- package/data/docs/routes/components-feedback-tooltip.json +510 -0
- package/data/docs/routes/components-feedback.json +34 -0
- package/data/docs/routes/components-forms-field-errors.json +557 -0
- package/data/docs/routes/components-forms-form-field.json +848 -0
- package/data/docs/routes/components-forms-group.json +427 -0
- package/data/docs/routes/components-forms-localized-field.json +770 -0
- package/data/docs/routes/components-forms.json +37 -0
- package/data/docs/routes/components-inputs-calendar.json +611 -0
- package/data/docs/routes/components-inputs-checkbox.json +774 -0
- package/data/docs/routes/components-inputs-combo-box.json +761 -0
- package/data/docs/routes/components-inputs-date-input.json +628 -0
- package/data/docs/routes/components-inputs-date-picker.json +709 -0
- package/data/docs/routes/components-inputs-date-range-picker.json +599 -0
- package/data/docs/routes/components-inputs-money-input.json +721 -0
- package/data/docs/routes/components-inputs-multiline-text-input.json +611 -0
- package/data/docs/routes/components-inputs-number-input.json +647 -0
- package/data/docs/routes/components-inputs-password-input.json +576 -0
- package/data/docs/routes/components-inputs-radio-input.json +583 -0
- package/data/docs/routes/components-inputs-range-calendar.json +607 -0
- package/data/docs/routes/components-inputs-rich-text-input.json +599 -0
- package/data/docs/routes/components-inputs-scoped-search-input.json +570 -0
- package/data/docs/routes/components-inputs-search-input.json +588 -0
- package/data/docs/routes/components-inputs-select-input.json +960 -0
- package/data/docs/routes/components-inputs-switch.json +720 -0
- package/data/docs/routes/components-inputs-text-input.json +566 -0
- package/data/docs/routes/components-inputs-time-input.json +775 -0
- package/data/docs/routes/components-inputs.json +34 -0
- package/data/docs/routes/components-layout-box.json +501 -0
- package/data/docs/routes/components-layout-defaultpage.json +748 -0
- package/data/docs/routes/components-layout-flex.json +587 -0
- package/data/docs/routes/components-layout-grid.json +393 -0
- package/data/docs/routes/components-layout-modalpage.json +716 -0
- package/data/docs/routes/components-layout-pagecontent.json +673 -0
- package/data/docs/routes/components-layout-scrollarea.json +428 -0
- package/data/docs/routes/components-layout-separator.json +461 -0
- package/data/docs/routes/components-layout-simple-grid.json +519 -0
- package/data/docs/routes/components-layout-spacer.json +573 -0
- package/data/docs/routes/components-layout-stack.json +481 -0
- package/data/docs/routes/components-layout.json +34 -0
- package/data/docs/routes/components-media-avatar.json +427 -0
- package/data/docs/routes/components-media-icon.json +663 -0
- package/data/docs/routes/components-media-image.json +511 -0
- package/data/docs/routes/components-media-inline-svg.json +586 -0
- package/data/docs/routes/components-media.json +34 -0
- package/data/docs/routes/components-navigation-accordion.json +643 -0
- package/data/docs/routes/components-navigation-collapsible-motion.json +628 -0
- package/data/docs/routes/components-navigation-link.json +554 -0
- package/data/docs/routes/components-navigation-menu.json +546 -0
- package/data/docs/routes/components-navigation-pagination.json +502 -0
- package/data/docs/routes/components-navigation-steps.json +629 -0
- package/data/docs/routes/components-navigation-tabnav.json +546 -0
- package/data/docs/routes/components-navigation-tabs.json +635 -0
- package/data/docs/routes/components-navigation-toolbar.json +549 -0
- package/data/docs/routes/components-navigation.json +34 -0
- package/data/docs/routes/components-typography-code.json +39 -0
- package/data/docs/routes/components-typography-heading.json +402 -0
- package/data/docs/routes/components-typography-kbd.json +399 -0
- package/data/docs/routes/components-typography-list.json +593 -0
- package/data/docs/routes/components-typography-text.json +444 -0
- package/data/docs/routes/components-typography.json +34 -0
- package/data/docs/routes/components-utilities-nimbus-i18n-provider.json +295 -0
- package/data/docs/routes/components-utilities-nimbus-provider.json +663 -0
- package/data/docs/routes/components-utilities.json +34 -0
- package/data/docs/routes/components.json +33 -0
- package/data/docs/routes/home-contribute-adrs-adr0001-consumer-component-apis.json +314 -0
- package/data/docs/routes/home-contribute-adrs-adr0002-compound-component-extraction.json +160 -0
- package/data/docs/routes/home-contribute-adrs-adr0003-component-lifecycle-states.json +460 -0
- package/data/docs/routes/home-contribute-adrs.json +205 -0
- package/data/docs/routes/home-contribute-development-setup.json +213 -0
- package/data/docs/routes/home-contribute-stats.json +36 -0
- package/data/docs/routes/home-contribute.json +36 -0
- package/data/docs/routes/home-design-tokens-aspect-ratios.json +36 -0
- package/data/docs/routes/home-design-tokens-borders.json +35 -0
- package/data/docs/routes/home-design-tokens-colors.json +157 -0
- package/data/docs/routes/home-design-tokens-other-animations.json +119 -0
- package/data/docs/routes/home-design-tokens-other-blurs.json +36 -0
- package/data/docs/routes/home-design-tokens-other-breakpoints.json +61 -0
- package/data/docs/routes/home-design-tokens-other-cursors.json +36 -0
- package/data/docs/routes/home-design-tokens-other-z-indices.json +39 -0
- package/data/docs/routes/home-design-tokens-other.json +35 -0
- package/data/docs/routes/home-design-tokens-radii.json +59 -0
- package/data/docs/routes/home-design-tokens-shadows.json +57 -0
- package/data/docs/routes/home-design-tokens-sizes.json +137 -0
- package/data/docs/routes/home-design-tokens-spacing.json +36 -0
- package/data/docs/routes/home-design-tokens-typography.json +184 -0
- package/data/docs/routes/home-design-tokens.json +34 -0
- package/data/docs/routes/home-getting-started-core-concepts.json +301 -0
- package/data/docs/routes/home-getting-started-installation.json +621 -0
- package/data/docs/routes/home-getting-started-mcp-server-overview.json +139 -0
- package/data/docs/routes/home-getting-started-mcp-server-setup.json +316 -0
- package/data/docs/routes/home-getting-started-release-process.json +294 -0
- package/data/docs/routes/home-getting-started-testing-setup.json +296 -0
- package/data/docs/routes/home-playground-markdown.json +638 -0
- package/data/docs/routes/home-playground-toc.json +169 -0
- package/data/docs/routes/home-playground.json +34 -0
- package/data/docs/routes/home-style-props-background.json +236 -0
- package/data/docs/routes/home-style-props-border.json +310 -0
- package/data/docs/routes/home-style-props-display.json +120 -0
- package/data/docs/routes/home-style-props-effects.json +116 -0
- package/data/docs/routes/home-style-props-filters.json +396 -0
- package/data/docs/routes/home-style-props-flex-and-grid.json +496 -0
- package/data/docs/routes/home-style-props-interactivity.json +356 -0
- package/data/docs/routes/home-style-props-layout.json +422 -0
- package/data/docs/routes/home-style-props-list.json +116 -0
- package/data/docs/routes/home-style-props-sizing.json +244 -0
- package/data/docs/routes/home-style-props-spacing.json +228 -0
- package/data/docs/routes/home-style-props-svg.json +96 -0
- package/data/docs/routes/home-style-props-tables.json +116 -0
- package/data/docs/routes/home-style-props-transforms.json +216 -0
- package/data/docs/routes/home-style-props-transitions.json +216 -0
- package/data/docs/routes/home-style-props-typography.json +536 -0
- package/data/docs/routes/home-style-props.json +33 -0
- package/data/docs/routes/home.json +32 -0
- package/data/docs/routes/hooks-usecopytoclipboard.json +76 -0
- package/data/docs/routes/hooks-usehotkeys.json +117 -0
- package/data/docs/routes/hooks.json +33 -0
- package/data/docs/routes/icons.json +32 -0
- package/data/docs/routes/patterns-fields-date-range-picker-field.json +393 -0
- package/data/docs/routes/patterns-fields-money-input-field.json +415 -0
- package/data/docs/routes/patterns-fields-multiline-text-input-field.json +404 -0
- package/data/docs/routes/patterns-fields-number-input-field.json +470 -0
- package/data/docs/routes/patterns-fields-password-input-field.json +319 -0
- package/data/docs/routes/patterns-fields-search-input-field.json +382 -0
- package/data/docs/routes/patterns-fields-text-input-field.json +404 -0
- package/data/docs/routes/patterns-fields.json +78 -0
- package/data/docs/routes/patterns.json +34 -0
- package/data/docs/search-index.json +1 -0
- package/data/docs/types/Accordion.json +12 -0
- package/data/docs/types/AccordionContent.json +286 -0
- package/data/docs/types/AccordionHeader.json +891 -0
- package/data/docs/types/AccordionHeaderRightContent.json +27 -0
- package/data/docs/types/AccordionItem.json +242 -0
- package/data/docs/types/AccordionRoot.json +162 -0
- package/data/docs/types/Alert.json +12 -0
- package/data/docs/types/AlertActions.json +11 -0
- package/data/docs/types/AlertDescription.json +118 -0
- package/data/docs/types/AlertDismissButton.json +937 -0
- package/data/docs/types/AlertRoot.json +42 -0
- package/data/docs/types/AlertTitle.json +118 -0
- package/data/docs/types/Avatar.json +125 -0
- package/data/docs/types/Badge.json +64 -0
- package/data/docs/types/Body.json +67 -0
- package/data/docs/types/Box.json +85 -0
- package/data/docs/types/Button.json +1015 -0
- package/data/docs/types/Calendar.json +565 -0
- package/data/docs/types/Caption.json +67 -0
- package/data/docs/types/Card.json +12 -0
- package/data/docs/types/CardContent.json +27 -0
- package/data/docs/types/CardHeader.json +27 -0
- package/data/docs/types/CardRoot.json +106 -0
- package/data/docs/types/Cell.json +227 -0
- package/data/docs/types/Checkbox.json +897 -0
- package/data/docs/types/Code.json +112 -0
- package/data/docs/types/CollapsibleMotionContent.json +35 -0
- package/data/docs/types/CollapsibleMotionRoot.json +99 -0
- package/data/docs/types/CollapsibleMotionTrigger.json +71 -0
- package/data/docs/types/Column.json +101 -0
- package/data/docs/types/ColumnGroup.json +101 -0
- package/data/docs/types/ColumnHeader.json +193 -0
- package/data/docs/types/ComboBoxListBox.json +751 -0
- package/data/docs/types/ComboBoxOption.json +672 -0
- package/data/docs/types/ComboBoxPopover.json +786 -0
- package/data/docs/types/ComboBoxRoot.json +747 -0
- package/data/docs/types/ComboBoxSection.json +277 -0
- package/data/docs/types/ComboBoxTrigger.json +70 -0
- package/data/docs/types/Content.json +33 -0
- package/data/docs/types/DataTable.json +596 -0
- package/data/docs/types/DataTableBody.json +223 -0
- package/data/docs/types/DataTableFooter.json +27 -0
- package/data/docs/types/DataTableHeader.json +269 -0
- package/data/docs/types/DataTableManager.json +11 -0
- package/data/docs/types/DataTableRoot.json +590 -0
- package/data/docs/types/DataTableTable.json +271 -0
- package/data/docs/types/DateInput.json +792 -0
- package/data/docs/types/DatePicker.json +700 -0
- package/data/docs/types/DateRangePicker.json +936 -0
- package/data/docs/types/DateRangePickerField.json +1047 -0
- package/data/docs/types/DefaultPage.json +12 -0
- package/data/docs/types/DefaultPageActions.json +27 -0
- package/data/docs/types/DefaultPageBackLink.json +213 -0
- package/data/docs/types/DefaultPageContent.json +27 -0
- package/data/docs/types/DefaultPageFooter.json +27 -0
- package/data/docs/types/DefaultPageHeader.json +27 -0
- package/data/docs/types/DefaultPageRoot.json +106 -0
- package/data/docs/types/DefaultPageSubtitle.json +27 -0
- package/data/docs/types/DefaultPageTabNav.json +28 -0
- package/data/docs/types/DefaultPageTitle.json +27 -0
- package/data/docs/types/DialogBody.json +27 -0
- package/data/docs/types/DialogCloseTrigger.json +939 -0
- package/data/docs/types/DialogContent.json +27 -0
- package/data/docs/types/DialogFooter.json +27 -0
- package/data/docs/types/DialogHeader.json +27 -0
- package/data/docs/types/DialogRoot.json +138 -0
- package/data/docs/types/DialogTitle.json +27 -0
- package/data/docs/types/DialogTrigger.json +80 -0
- package/data/docs/types/DraggableList.json +12 -0
- package/data/docs/types/DraggableListField.json +894 -0
- package/data/docs/types/DraggableListItem.json +574 -0
- package/data/docs/types/DraggableListRoot.json +745 -0
- package/data/docs/types/Drawer.json +12 -0
- package/data/docs/types/DrawerBody.json +27 -0
- package/data/docs/types/DrawerCloseTrigger.json +939 -0
- package/data/docs/types/DrawerContent.json +27 -0
- package/data/docs/types/DrawerFooter.json +27 -0
- package/data/docs/types/DrawerHeader.json +27 -0
- package/data/docs/types/DrawerRoot.json +142 -0
- package/data/docs/types/DrawerTitle.json +27 -0
- package/data/docs/types/DrawerTrigger.json +80 -0
- package/data/docs/types/FieldErrors.getBuiltInMessage.json +11 -0
- package/data/docs/types/FieldErrors.getCustomMessage.json +9 -0
- package/data/docs/types/FieldErrors.json +109 -0
- package/data/docs/types/Flex.json +238 -0
- package/data/docs/types/Footer.json +67 -0
- package/data/docs/types/FormFieldDescription.json +11 -0
- package/data/docs/types/FormFieldError.json +11 -0
- package/data/docs/types/FormFieldInfoBox.json +27 -0
- package/data/docs/types/FormFieldInput.json +11 -0
- package/data/docs/types/FormFieldLabel.json +11 -0
- package/data/docs/types/FormFieldRoot.json +148 -0
- package/data/docs/types/Grid.json +253 -0
- package/data/docs/types/GridProps.json +11 -0
- package/data/docs/types/Group.json +143 -0
- package/data/docs/types/Header.json +67 -0
- package/data/docs/types/Heading.json +109 -0
- package/data/docs/types/Icon.json +112 -0
- package/data/docs/types/IconButton.json +1019 -0
- package/data/docs/types/IconToggleButton.json +787 -0
- package/data/docs/types/Image.json +373 -0
- package/data/docs/types/Indicator.json +67 -0
- package/data/docs/types/InlineSvg.json +98 -0
- package/data/docs/types/Item.json +67 -0
- package/data/docs/types/Kbd.json +118 -0
- package/data/docs/types/Link.json +380 -0
- package/data/docs/types/List.json +12 -0
- package/data/docs/types/ListIndicator.json +70 -0
- package/data/docs/types/ListItem.json +70 -0
- package/data/docs/types/ListRoot.json +124 -0
- package/data/docs/types/LoadingSpinner.json +87 -0
- package/data/docs/types/LocalizedField.json +460 -0
- package/data/docs/types/LocalizedStringFormatter.json +9 -0
- package/data/docs/types/MakeElementFocusable.json +196 -0
- package/data/docs/types/MenuContent.json +111 -0
- package/data/docs/types/MenuItem.json +671 -0
- package/data/docs/types/MenuRoot.json +670 -0
- package/data/docs/types/MenuSection.json +364 -0
- package/data/docs/types/MenuSubmenu.json +111 -0
- package/data/docs/types/MenuSubmenuTrigger.json +67 -0
- package/data/docs/types/MenuTrigger.json +906 -0
- package/data/docs/types/ModalPage.json +12 -0
- package/data/docs/types/ModalPageActions.json +27 -0
- package/data/docs/types/ModalPageContent.json +27 -0
- package/data/docs/types/ModalPageFooter.json +27 -0
- package/data/docs/types/ModalPageHeader.json +27 -0
- package/data/docs/types/ModalPageRoot.json +87 -0
- package/data/docs/types/ModalPageSubtitle.json +27 -0
- package/data/docs/types/ModalPageTabNav.json +28 -0
- package/data/docs/types/ModalPageTitle.json +27 -0
- package/data/docs/types/ModalPageTopBar.json +57 -0
- package/data/docs/types/MoneyInput.isEmpty.json +40 -0
- package/data/docs/types/MoneyInput.json +282 -0
- package/data/docs/types/MoneyInputField.json +379 -0
- package/data/docs/types/MoneyInputFieldProps.json +9 -0
- package/data/docs/types/MultilineTextInput.json +1194 -0
- package/data/docs/types/MultilineTextInputField.json +1269 -0
- package/data/docs/types/MultilineTextInputFieldProps.json +9 -0
- package/data/docs/types/NimbusI18nProvider.json +42 -0
- package/data/docs/types/NimbusI18nProviderProps.json +9 -0
- package/data/docs/types/NimbusProvider.json +270 -0
- package/data/docs/types/NumberInput.json +952 -0
- package/data/docs/types/NumberInputField.json +1004 -0
- package/data/docs/types/NumberInputFieldProps.json +9 -0
- package/data/docs/types/PageContent.json +11 -0
- package/data/docs/types/PageContentColumn.json +99 -0
- package/data/docs/types/PageContentRoot.json +114 -0
- package/data/docs/types/Pagination.json +159 -0
- package/data/docs/types/PasswordInput.json +1120 -0
- package/data/docs/types/PasswordInputField.json +1216 -0
- package/data/docs/types/PasswordInputFieldProps.json +9 -0
- package/data/docs/types/ProgressBar.json +280 -0
- package/data/docs/types/RadioInputOption.json +550 -0
- package/data/docs/types/RadioInputRoot.json +514 -0
- package/data/docs/types/RangeCalendar.json +618 -0
- package/data/docs/types/RichTextInput.json +134 -0
- package/data/docs/types/Root.json +122 -0
- package/data/docs/types/Row.json +67 -0
- package/data/docs/types/ScopedSearchInput.isEmpty.json +40 -0
- package/data/docs/types/ScopedSearchInput.json +253 -0
- package/data/docs/types/ScrollArea.json +179 -0
- package/data/docs/types/ScrollAreaElementIds.json +9 -0
- package/data/docs/types/ScrollAreaProps.json +9 -0
- package/data/docs/types/SearchInput.json +1165 -0
- package/data/docs/types/SearchInputField.json +1240 -0
- package/data/docs/types/Select.json +12 -0
- package/data/docs/types/SelectOption.json +572 -0
- package/data/docs/types/SelectOptionGroup.json +215 -0
- package/data/docs/types/SelectOptions.json +693 -0
- package/data/docs/types/SelectRoot.json +926 -0
- package/data/docs/types/Separator.json +65 -0
- package/data/docs/types/SimpleGrid.json +291 -0
- package/data/docs/types/Spacer.json +27 -0
- package/data/docs/types/SpacerProps.json +9 -0
- package/data/docs/types/SplitButton.json +203 -0
- package/data/docs/types/Stack.json +144 -0
- package/data/docs/types/Steps.json +12 -0
- package/data/docs/types/StepsChangeDetails.json +9 -0
- package/data/docs/types/StepsCompletedContent.json +28 -0
- package/data/docs/types/StepsCompletedContentProps.json +9 -0
- package/data/docs/types/StepsContent.json +43 -0
- package/data/docs/types/StepsContentProps.json +9 -0
- package/data/docs/types/StepsDescription.json +28 -0
- package/data/docs/types/StepsDescriptionProps.json +9 -0
- package/data/docs/types/StepsIndicator.json +28 -0
- package/data/docs/types/StepsIndicatorProps.json +9 -0
- package/data/docs/types/StepsItem.json +43 -0
- package/data/docs/types/StepsItemProps.json +9 -0
- package/data/docs/types/StepsList.json +28 -0
- package/data/docs/types/StepsListProps.json +9 -0
- package/data/docs/types/StepsNextTrigger.json +62 -0
- package/data/docs/types/StepsNextTriggerProps.json +9 -0
- package/data/docs/types/StepsNumber.json +28 -0
- package/data/docs/types/StepsNumberProps.json +9 -0
- package/data/docs/types/StepsPrevTrigger.json +62 -0
- package/data/docs/types/StepsPrevTriggerProps.json +9 -0
- package/data/docs/types/StepsRoot.json +183 -0
- package/data/docs/types/StepsRootProps.json +11 -0
- package/data/docs/types/StepsSeparator.json +28 -0
- package/data/docs/types/StepsSeparatorProps.json +9 -0
- package/data/docs/types/StepsStatus.json +57 -0
- package/data/docs/types/StepsStatusProps.json +9 -0
- package/data/docs/types/StepsTitle.json +28 -0
- package/data/docs/types/StepsTitleProps.json +9 -0
- package/data/docs/types/StepsTrigger.json +47 -0
- package/data/docs/types/StepsTriggerProps.json +9 -0
- package/data/docs/types/Switch.json +371 -0
- package/data/docs/types/TabListProps.json +9 -0
- package/data/docs/types/TabNav.json +12 -0
- package/data/docs/types/TabNavItem.json +300 -0
- package/data/docs/types/TabNavItemProps.json +9 -0
- package/data/docs/types/TabNavProps.json +9 -0
- package/data/docs/types/TabNavRoot.json +80 -0
- package/data/docs/types/TabPanelProps.json +9 -0
- package/data/docs/types/TabPanelsProps.json +9 -0
- package/data/docs/types/TabProps.json +9 -0
- package/data/docs/types/Table.json +9 -0
- package/data/docs/types/TableBody.json +67 -0
- package/data/docs/types/TableBodyProps.json +9 -0
- package/data/docs/types/TableCaption.json +67 -0
- package/data/docs/types/TableCaptionProps.json +9 -0
- package/data/docs/types/TableCell.json +227 -0
- package/data/docs/types/TableCellProps.json +9 -0
- package/data/docs/types/TableColumn.json +101 -0
- package/data/docs/types/TableColumnGroup.json +101 -0
- package/data/docs/types/TableColumnGroupProps.json +9 -0
- package/data/docs/types/TableColumnHeader.json +193 -0
- package/data/docs/types/TableColumnHeaderProps.json +9 -0
- package/data/docs/types/TableColumnProps.json +9 -0
- package/data/docs/types/TableFooter.json +67 -0
- package/data/docs/types/TableFooterProps.json +9 -0
- package/data/docs/types/TableHeader.json +67 -0
- package/data/docs/types/TableHeaderProps.json +9 -0
- package/data/docs/types/TableRoot.json +365 -0
- package/data/docs/types/TableRootProps.json +12 -0
- package/data/docs/types/TableRow.json +67 -0
- package/data/docs/types/TableRowProps.json +9 -0
- package/data/docs/types/TableScrollArea.json +82 -0
- package/data/docs/types/TableScrollAreaProps.json +9 -0
- package/data/docs/types/Tabs.json +12 -0
- package/data/docs/types/TabsList.json +110 -0
- package/data/docs/types/TabsPanel.json +112 -0
- package/data/docs/types/TabsPanels.json +108 -0
- package/data/docs/types/TabsRoot.json +211 -0
- package/data/docs/types/TabsTab.json +174 -0
- package/data/docs/types/TagGroup.json +12 -0
- package/data/docs/types/TagGroupRoot.json +306 -0
- package/data/docs/types/TagGroupTag.json +595 -0
- package/data/docs/types/TagGroupTagList.json +166 -0
- package/data/docs/types/Text.json +119 -0
- package/data/docs/types/TextInput.json +1156 -0
- package/data/docs/types/TextInputField.json +1263 -0
- package/data/docs/types/TimeInput.json +752 -0
- package/data/docs/types/ToastAction.json +9 -0
- package/data/docs/types/ToastManagerApi.json +9 -0
- package/data/docs/types/ToastOptions.json +9 -0
- package/data/docs/types/ToastOutlet.json +12 -0
- package/data/docs/types/ToastPlacement.json +9 -0
- package/data/docs/types/ToastPromiseOptions.json +9 -0
- package/data/docs/types/ToastType.json +9 -0
- package/data/docs/types/ToastVariant.json +9 -0
- package/data/docs/types/ToggleButton.json +789 -0
- package/data/docs/types/ToggleButtonGroup.json +9 -0
- package/data/docs/types/ToggleButtonGroupButton.json +331 -0
- package/data/docs/types/ToggleButtonGroupRoot.json +269 -0
- package/data/docs/types/Toolbar.json +176 -0
- package/data/docs/types/Tooltip.json +12 -0
- package/data/docs/types/TooltipContent.json +372 -0
- package/data/docs/types/TooltipRoot.json +179 -0
- package/data/docs/types/Trigger.json +69 -0
- package/data/docs/types/VisuallyHidden.json +93 -0
- package/data/docs/types/__object.json +12 -0
- package/data/docs/types/filters.json +11 -0
- package/data/docs/types/manifest.json +280 -0
- package/data/docs/types/toast.json +234 -0
- package/data/docs/types/useColorMode.json +13 -0
- package/data/docs/types/useColorModeValue.json +13 -0
- package/data/docs/types/useColorScheme.json +12 -0
- package/data/docs/types/useLocalizedStringFormatter.json +14 -0
- package/data/icons.json +21940 -0
- package/data/tokens.json +40061 -0
- package/dist/index.js +2516 -17
- package/package.json +25 -6
- package/dist/data-loader.d.ts +0 -102
- package/dist/data-loader.js +0 -104
- package/dist/index.d.ts +0 -13
- package/dist/server.d.ts +0 -9
- package/dist/server.js +0 -22
- package/dist/server.spec.d.ts +0 -1
- package/dist/server.spec.js +0 -69
- package/dist/tools/list-components.d.ts +0 -9
- package/dist/tools/list-components.js +0 -42
- package/dist/types.d.ts +0 -28
- package/dist/types.js +0 -4
- package/src/data-loader.ts +0 -226
- package/src/index.ts +0 -29
- package/src/server.spec.ts +0 -86
- package/src/server.ts +0 -28
- package/src/tools/list-components.ts +0 -49
- package/src/types.ts +0 -31
- package/tsconfig.json +0 -14
- package/vitest.config.ts +0 -9
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"id": "Components-Separator",
|
|
4
|
+
"title": "Separator",
|
|
5
|
+
"exportName": "Separator",
|
|
6
|
+
"description": "A separator is a visual or semantic line that groups and divides content, establishing rhythm and hierarchy within a layout.",
|
|
7
|
+
"lifecycleState": "Stable",
|
|
8
|
+
"order": 999,
|
|
9
|
+
"repoPath": "packages/nimbus/src/components/separator/separator.mdx",
|
|
10
|
+
"menu": [
|
|
11
|
+
"Components",
|
|
12
|
+
"Layout",
|
|
13
|
+
"Separator"
|
|
14
|
+
],
|
|
15
|
+
"route": "components/layout/separator",
|
|
16
|
+
"tags": [
|
|
17
|
+
"component",
|
|
18
|
+
"divider",
|
|
19
|
+
"separator",
|
|
20
|
+
"line",
|
|
21
|
+
"section"
|
|
22
|
+
],
|
|
23
|
+
"toc": [
|
|
24
|
+
{
|
|
25
|
+
"value": "Overview",
|
|
26
|
+
"href": "#overview",
|
|
27
|
+
"depth": 2,
|
|
28
|
+
"numbering": [
|
|
29
|
+
1,
|
|
30
|
+
1
|
|
31
|
+
],
|
|
32
|
+
"parent": "root"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"value": "Resources",
|
|
36
|
+
"href": "#resources",
|
|
37
|
+
"depth": 3,
|
|
38
|
+
"numbering": [
|
|
39
|
+
1,
|
|
40
|
+
1,
|
|
41
|
+
1
|
|
42
|
+
],
|
|
43
|
+
"parent": "root"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"value": "Variables",
|
|
47
|
+
"href": "#variables",
|
|
48
|
+
"depth": 2,
|
|
49
|
+
"numbering": [
|
|
50
|
+
1,
|
|
51
|
+
2
|
|
52
|
+
],
|
|
53
|
+
"parent": "root"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"value": "Label options",
|
|
57
|
+
"href": "#label-options",
|
|
58
|
+
"depth": 3,
|
|
59
|
+
"numbering": [
|
|
60
|
+
1,
|
|
61
|
+
2,
|
|
62
|
+
1
|
|
63
|
+
],
|
|
64
|
+
"parent": "root"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"value": "Horizontal",
|
|
68
|
+
"href": "#horizontal",
|
|
69
|
+
"depth": 4,
|
|
70
|
+
"numbering": [
|
|
71
|
+
1,
|
|
72
|
+
2,
|
|
73
|
+
1,
|
|
74
|
+
1
|
|
75
|
+
],
|
|
76
|
+
"parent": "root"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"value": "Vertical",
|
|
80
|
+
"href": "#vertical",
|
|
81
|
+
"depth": 4,
|
|
82
|
+
"numbering": [
|
|
83
|
+
1,
|
|
84
|
+
2,
|
|
85
|
+
1,
|
|
86
|
+
2
|
|
87
|
+
],
|
|
88
|
+
"parent": "root"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"value": "Supports radix colors",
|
|
92
|
+
"href": "#supports-radix-colors",
|
|
93
|
+
"depth": 4,
|
|
94
|
+
"numbering": [
|
|
95
|
+
1,
|
|
96
|
+
2,
|
|
97
|
+
1,
|
|
98
|
+
3
|
|
99
|
+
],
|
|
100
|
+
"parent": "root"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"layout": "app-frame",
|
|
104
|
+
"tabs": [
|
|
105
|
+
{
|
|
106
|
+
"key": "overview",
|
|
107
|
+
"title": "Overview",
|
|
108
|
+
"order": 0
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"key": "guidelines",
|
|
112
|
+
"title": "Guidelines",
|
|
113
|
+
"order": 2
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"key": "dev",
|
|
117
|
+
"title": "Implementation",
|
|
118
|
+
"order": 3
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"key": "a11y",
|
|
122
|
+
"title": "Accessibility",
|
|
123
|
+
"order": 4
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"mdx": "\n## Overview\n\nSeparators enhance clarity by visually breaking up content. They can be\nhorizontal or vertical.\n\n### Resources\n\nDeep dive into implementation details and access the Nimbus design library.\n\n[Figma library](https://www.figma.com/design/AvtPX6g7OGGCRvNlatGOIY/NIMBUS-design-system?node-id=6041-25167)\n\n## Variables\n\nGet familiar with the features.\n\n### Label options\n\n#### Horizontal\n\nHorizontal separators can be used to divide content or tools. It can span the\nentire page width or small areas.\n\n```jsx live\nconst App = () => (\n <Box width=\"1600\">\n <Separator />\n </Box>\n)\n```\n\n#### Vertical\n\nVertical separators can be used to divide columns of content or tools.\n\n```jsx live\nconst App = () => (\n <Box height=\"1600\">\n <Separator orientation=\"vertical\" />\n </Box>\n)\n```\n\n#### Supports radix colors\n\nThe default color is `neutral` but can be customized with supported token\ncolors.\n\n```jsx live\nconst App = () => {\n const customColors = ['slate', 'positive', 'teal', 'pink', 'mint'];\n\n return (\n <Flex height=\"1600\" flexDirection=\"horizontal\" gap=\"200\">\n {customColors.map((color) => (\n <Separator key={color} orientation=\"vertical\" colorPalette={color} />\n ))}\n </Flex>\n );\n}\n```\n",
|
|
128
|
+
"views": {
|
|
129
|
+
"overview": {
|
|
130
|
+
"mdx": "\n## Overview\n\nSeparators enhance clarity by visually breaking up content. They can be\nhorizontal or vertical.\n\n### Resources\n\nDeep dive into implementation details and access the Nimbus design library.\n\n[Figma library](https://www.figma.com/design/AvtPX6g7OGGCRvNlatGOIY/NIMBUS-design-system?node-id=6041-25167)\n\n## Variables\n\nGet familiar with the features.\n\n### Label options\n\n#### Horizontal\n\nHorizontal separators can be used to divide content or tools. It can span the\nentire page width or small areas.\n\n```jsx live\nconst App = () => (\n <Box width=\"1600\">\n <Separator />\n </Box>\n)\n```\n\n#### Vertical\n\nVertical separators can be used to divide columns of content or tools.\n\n```jsx live\nconst App = () => (\n <Box height=\"1600\">\n <Separator orientation=\"vertical\" />\n </Box>\n)\n```\n\n#### Supports radix colors\n\nThe default color is `neutral` but can be customized with supported token\ncolors.\n\n```jsx live\nconst App = () => {\n const customColors = ['slate', 'positive', 'teal', 'pink', 'mint'];\n\n return (\n <Flex height=\"1600\" flexDirection=\"horizontal\" gap=\"200\">\n {customColors.map((color) => (\n <Separator key={color} orientation=\"vertical\" colorPalette={color} />\n ))}\n </Flex>\n );\n}\n```\n",
|
|
131
|
+
"toc": [
|
|
132
|
+
{
|
|
133
|
+
"value": "Overview",
|
|
134
|
+
"href": "#overview",
|
|
135
|
+
"depth": 2,
|
|
136
|
+
"numbering": [
|
|
137
|
+
1,
|
|
138
|
+
1
|
|
139
|
+
],
|
|
140
|
+
"parent": "root"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"value": "Resources",
|
|
144
|
+
"href": "#resources",
|
|
145
|
+
"depth": 3,
|
|
146
|
+
"numbering": [
|
|
147
|
+
1,
|
|
148
|
+
1,
|
|
149
|
+
1
|
|
150
|
+
],
|
|
151
|
+
"parent": "root"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"value": "Variables",
|
|
155
|
+
"href": "#variables",
|
|
156
|
+
"depth": 2,
|
|
157
|
+
"numbering": [
|
|
158
|
+
1,
|
|
159
|
+
2
|
|
160
|
+
],
|
|
161
|
+
"parent": "root"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"value": "Label options",
|
|
165
|
+
"href": "#label-options",
|
|
166
|
+
"depth": 3,
|
|
167
|
+
"numbering": [
|
|
168
|
+
1,
|
|
169
|
+
2,
|
|
170
|
+
1
|
|
171
|
+
],
|
|
172
|
+
"parent": "root"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"value": "Horizontal",
|
|
176
|
+
"href": "#horizontal",
|
|
177
|
+
"depth": 4,
|
|
178
|
+
"numbering": [
|
|
179
|
+
1,
|
|
180
|
+
2,
|
|
181
|
+
1,
|
|
182
|
+
1
|
|
183
|
+
],
|
|
184
|
+
"parent": "root"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"value": "Vertical",
|
|
188
|
+
"href": "#vertical",
|
|
189
|
+
"depth": 4,
|
|
190
|
+
"numbering": [
|
|
191
|
+
1,
|
|
192
|
+
2,
|
|
193
|
+
1,
|
|
194
|
+
2
|
|
195
|
+
],
|
|
196
|
+
"parent": "root"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"value": "Supports radix colors",
|
|
200
|
+
"href": "#supports-radix-colors",
|
|
201
|
+
"depth": 4,
|
|
202
|
+
"numbering": [
|
|
203
|
+
1,
|
|
204
|
+
2,
|
|
205
|
+
1,
|
|
206
|
+
3
|
|
207
|
+
],
|
|
208
|
+
"parent": "root"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"a11y": {
|
|
213
|
+
"mdx": "\n## Accessibility\n\nAccessibility ensures that digital content and functionality are usable by\neveryone, including people with disabilities, by addressing visual, auditory,\ncognitive, and physical limitations.\n\n```jsx live\nconst App = () => (\n <Box width=\"1600\">\n <Separator />\n </Box>\n)\n```\n\n### Accessibility standards\n\n- **Role attribute:** The component applies `role=\"separator\"` to define it as a\n non-focusable, decorative divider.\n- **Semantic separation:** Ensure separators genuinely aid in content\n organization for all users, including those relying on assistive technologies.\n- **Visual contrast:** While decorative, ensure the separator has sufficient\n contrast against its background to be perceivable by users with low vision,\n aligning with WCAG 2.1 1.4.11 for non-text contrast (3:1 contrast ratio).\n",
|
|
214
|
+
"toc": [
|
|
215
|
+
{
|
|
216
|
+
"value": "Accessibility",
|
|
217
|
+
"href": "#accessibility",
|
|
218
|
+
"depth": 2,
|
|
219
|
+
"numbering": [
|
|
220
|
+
1,
|
|
221
|
+
1
|
|
222
|
+
],
|
|
223
|
+
"parent": "root"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"value": "Accessibility standards",
|
|
227
|
+
"href": "#accessibility-standards",
|
|
228
|
+
"depth": 3,
|
|
229
|
+
"numbering": [
|
|
230
|
+
1,
|
|
231
|
+
1,
|
|
232
|
+
1
|
|
233
|
+
],
|
|
234
|
+
"parent": "root"
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
},
|
|
238
|
+
"dev": {
|
|
239
|
+
"mdx": "\n## Getting started\n\n### Import\n\n```tsx\nimport { Separator, type SeparatorProps } from '@commercetools/nimbus';\n```\n\n### Basic usage\n\nThe simplest implementation uses the default horizontal orientation:\n\n```jsx live-dev\nconst App = () => (\n <Box>\n <Box p=\"400\">Content above the separator</Box>\n <Separator />\n <Box p=\"400\">Content below the separator</Box>\n </Box>\n)\n```\n\n## Usage examples\n\n### Orientation options\n\nThe Separator supports both horizontal and vertical orientations to divide content in different layouts:\n\n```jsx live-dev\nconst App = () => (\n <Stack direction=\"column\" gap=\"600\">\n <Box>\n <Text fontSize=\"sm\" mb=\"300\">Horizontal separator (default)</Text>\n <Box p=\"300\">Content above</Box>\n <Separator orientation=\"horizontal\" />\n <Box p=\"300\">Content below</Box>\n </Box>\n\n <Box>\n <Text fontSize=\"sm\" mb=\"300\">Vertical separator</Text>\n <Stack direction=\"row\" height=\"100px\" alignItems=\"center\">\n <Box p=\"300\">Content left</Box>\n <Separator orientation=\"vertical\" />\n <Box p=\"300\">Content right</Box>\n </Stack>\n </Box>\n </Stack>\n)\n```\n\n**Orientation differences:**\n- `orientation=\"horizontal\"`: Creates a full-width horizontal divider (default)\n- `orientation=\"vertical\"`: Creates a full-height vertical divider (requires parent with defined height)\n\n## Component requirements\n\n## Accessibility\n\nThe Separator component handles accessibility requirements internally using React Aria:\n\n- Automatically applies `role=\"separator\"` for screen readers\n- Sets `aria-orientation` when orientation is `\"vertical\"` (horizontal is the default and doesn't require explicit ARIA)\n- Non-focusable by default (separators are presentational elements)\n\nIf your use case requires tracking and analytics for this component, it is good practice to add a **persistent**, **unique** id to the component:\n\n```tsx\nconst PERSISTENT_ID = \"example-separator\";\n\nexport const Example = () => (\n <Separator id={PERSISTENT_ID} />\n);\n```\n\n#### Keyboard navigation\n\nThe Separator component is a presentational element and does not support keyboard interaction. It exists solely to provide visual division between content sections.\n\n## API reference\n\n<PropsTable id=\"Separator\" />\n\n## Common patterns\n\n### Dividing form sections\n\nUse horizontal separators to visually group related form fields:\n\n```jsx live-dev\nconst App = () => (\n <Stack direction=\"column\" gap=\"400\" width=\"400px\">\n <Box>\n <Text fontSize=\"md\" fontWeight=\"500\" mb=\"200\">Personal Information</Text>\n <Text fontSize=\"sm\" color=\"neutral.11\">Enter your basic details</Text>\n </Box>\n\n <Separator />\n\n <Box>\n <Text fontSize=\"md\" fontWeight=\"500\" mb=\"200\">Contact Details</Text>\n <Text fontSize=\"sm\" color=\"neutral.11\">How can we reach you?</Text>\n </Box>\n\n <Separator />\n\n <Box>\n <Text fontSize=\"md\" fontWeight=\"500\" mb=\"200\">Preferences</Text>\n <Text fontSize=\"sm\" color=\"neutral.11\">Customize your experience</Text>\n </Box>\n </Stack>\n)\n```\n\n### Toolbar dividers\n\nUse vertical separators within toolbars to organize actions into logical groups:\n\n```jsx live-dev\nconst App = () => (\n <Toolbar aria-label=\"Text formatting\">\n <ToggleButtonGroup.Root selectionMode=\"multiple\" defaultSelectedKeys={[\"bold\"]}>\n <IconToggleButton id=\"bold\" size=\"xs\" variant=\"ghost\" aria-label=\"Bold\">\n <Icons.FormatBold />\n </IconToggleButton>\n <IconToggleButton id=\"italic\" size=\"xs\" variant=\"ghost\" aria-label=\"Italic\">\n <Icons.FormatItalic />\n </IconToggleButton>\n <IconToggleButton id=\"underline\" size=\"xs\" variant=\"ghost\" aria-label=\"Underline\">\n <Icons.FormatUnderlined />\n </IconToggleButton>\n </ToggleButtonGroup.Root>\n\n <Separator orientation=\"vertical\" />\n\n <ToggleButtonGroup.Root selectionMode=\"single\" defaultSelectedKeys={[\"left\"]}>\n <IconToggleButton id=\"left\" size=\"xs\" variant=\"ghost\" aria-label=\"Align Left\">\n <Icons.FormatAlignLeft />\n </IconToggleButton>\n <IconToggleButton id=\"center\" size=\"xs\" variant=\"ghost\" aria-label=\"Align Center\">\n <Icons.FormatAlignCenter />\n </IconToggleButton>\n <IconToggleButton id=\"right\" size=\"xs\" variant=\"ghost\" aria-label=\"Align Right\">\n <Icons.FormatAlignRight />\n </IconToggleButton>\n </ToggleButtonGroup.Root>\n\n <Separator orientation=\"vertical\" />\n\n <ToggleButtonGroup.Root selectionMode=\"single\">\n <IconToggleButton id=\"bulleted\" size=\"xs\" variant=\"ghost\" aria-label=\"Bulleted List\">\n <Icons.FormatListBulleted />\n </IconToggleButton>\n <IconToggleButton id=\"numbered\" size=\"xs\" variant=\"ghost\" aria-label=\"Numbered List\">\n <Icons.FormatListNumbered />\n </IconToggleButton>\n </ToggleButtonGroup.Root>\n </Toolbar>\n)\n```\n\n## Testing your implementation\n\nThese examples demonstrate how to test your implementation when using Separator within your application. As the component's internal functionality is already tested by Nimbus, these patterns help you verify your integration and application-specific logic.\n\n### Basic Rendering Tests\n\nVerify the Separator component renders with expected accessibility attributes\n\n```tsx\nimport { describe, it, expect } from \"vitest\";\nimport { render, screen } from \"@testing-library/react\";\nimport { Separator, Box, NimbusProvider } from \"@commercetools/nimbus\";\n\ndescribe(\"Separator - Basic rendering\", () => {\n it(\"renders with separator role\", () => {\n render(\n <NimbusProvider>\n <Separator data-testid=\"separator-test\" />\n </NimbusProvider>\n );\n\n const separator = screen.getByTestId(\"separator-test\");\n expect(separator).toHaveAttribute(\"role\", \"separator\");\n });\n\n it(\"renders horizontal separator by default\", () => {\n render(\n <NimbusProvider>\n <Separator data-testid=\"separator-horizontal\" />\n </NimbusProvider>\n );\n\n const separator = screen.getByTestId(\"separator-horizontal\");\n // Horizontal is default, so aria-orientation is not set\n expect(separator).not.toHaveAttribute(\"aria-orientation\");\n });\n\n it(\"renders vertical separator with aria-orientation\", () => {\n render(\n <NimbusProvider>\n <Separator orientation=\"vertical\" data-testid=\"separator-vertical\" />\n </NimbusProvider>\n );\n\n const separator = screen.getByTestId(\"separator-vertical\");\n expect(separator).toHaveAttribute(\"aria-orientation\", \"vertical\");\n });\n});\n```\n\n### Layout Integration Tests\n\nTest Separator integration with common layout patterns\n\n```tsx\nimport { describe, it, expect } from \"vitest\";\nimport { render, screen } from \"@testing-library/react\";\nimport { Separator, Box, NimbusProvider } from \"@commercetools/nimbus\";\n\ndescribe(\"Separator - Layout integration\", () => {\n it(\"renders within content sections\", () => {\n render(\n <NimbusProvider>\n <Box>\n <Box data-testid=\"content-above\">Content above</Box>\n <Separator data-testid=\"separator-divider\" />\n <Box data-testid=\"content-below\">Content below</Box>\n </Box>\n </NimbusProvider>\n );\n\n expect(screen.getByTestId(\"content-above\")).toBeInTheDocument();\n expect(screen.getByTestId(\"separator-divider\")).toBeInTheDocument();\n expect(screen.getByTestId(\"content-below\")).toBeInTheDocument();\n });\n});\n```\n\n### Accessibility Tests\n\nVerify accessibility attributes and non-interactive behavior\n\n```tsx\nimport { describe, it, expect } from \"vitest\";\nimport { render, screen } from \"@testing-library/react\";\nimport { Separator, Box, NimbusProvider } from \"@commercetools/nimbus\";\n\ndescribe(\"Separator - Accessibility\", () => {\n it(\"is not focusable\", () => {\n render(\n <NimbusProvider>\n <Separator data-testid=\"separator-non-focusable\" />\n </NimbusProvider>\n );\n\n const separator = screen.getByTestId(\"separator-non-focusable\");\n // Separators are presentational and should not be in the tab order\n expect(separator).not.toHaveAttribute(\"tabindex\");\n });\n\n it(\"supports custom id for analytics\", () => {\n const PERSISTENT_ID = \"analytics-separator\";\n\n render(\n <NimbusProvider>\n <Separator id={PERSISTENT_ID} />\n </NimbusProvider>\n );\n\n const separator = screen.getByRole(\"separator\");\n expect(separator).toHaveAttribute(\"id\", PERSISTENT_ID);\n });\n});\n```\n\n\n## Resources\n\n- [Storybook](https://nimbus-storybook.vercel.app/?path=/docs/components-separator--docs)\n- [React Aria Separator](https://react-spectrum.adobe.com/react-aria/useSeparator.html)\n",
|
|
240
|
+
"toc": [
|
|
241
|
+
{
|
|
242
|
+
"value": "Getting started",
|
|
243
|
+
"href": "#getting-started",
|
|
244
|
+
"depth": 2,
|
|
245
|
+
"numbering": [
|
|
246
|
+
1,
|
|
247
|
+
1
|
|
248
|
+
],
|
|
249
|
+
"parent": "root"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"value": "Import",
|
|
253
|
+
"href": "#import",
|
|
254
|
+
"depth": 3,
|
|
255
|
+
"numbering": [
|
|
256
|
+
1,
|
|
257
|
+
1,
|
|
258
|
+
1
|
|
259
|
+
],
|
|
260
|
+
"parent": "root"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"value": "Basic usage",
|
|
264
|
+
"href": "#basic-usage",
|
|
265
|
+
"depth": 3,
|
|
266
|
+
"numbering": [
|
|
267
|
+
1,
|
|
268
|
+
1,
|
|
269
|
+
2
|
|
270
|
+
],
|
|
271
|
+
"parent": "root"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"value": "Usage examples",
|
|
275
|
+
"href": "#usage-examples",
|
|
276
|
+
"depth": 2,
|
|
277
|
+
"numbering": [
|
|
278
|
+
1,
|
|
279
|
+
2
|
|
280
|
+
],
|
|
281
|
+
"parent": "root"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"value": "Orientation options",
|
|
285
|
+
"href": "#orientation-options",
|
|
286
|
+
"depth": 3,
|
|
287
|
+
"numbering": [
|
|
288
|
+
1,
|
|
289
|
+
2,
|
|
290
|
+
1
|
|
291
|
+
],
|
|
292
|
+
"parent": "root"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"value": "Component requirements",
|
|
296
|
+
"href": "#component-requirements",
|
|
297
|
+
"depth": 2,
|
|
298
|
+
"numbering": [
|
|
299
|
+
1,
|
|
300
|
+
3
|
|
301
|
+
],
|
|
302
|
+
"parent": "root"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"value": "Accessibility",
|
|
306
|
+
"href": "#accessibility",
|
|
307
|
+
"depth": 2,
|
|
308
|
+
"numbering": [
|
|
309
|
+
1,
|
|
310
|
+
4
|
|
311
|
+
],
|
|
312
|
+
"parent": "root"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"value": "Keyboard navigation",
|
|
316
|
+
"href": "#keyboard-navigation",
|
|
317
|
+
"depth": 4,
|
|
318
|
+
"numbering": [
|
|
319
|
+
1,
|
|
320
|
+
4,
|
|
321
|
+
1,
|
|
322
|
+
1
|
|
323
|
+
],
|
|
324
|
+
"parent": "root"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"value": "API reference",
|
|
328
|
+
"href": "#api-reference",
|
|
329
|
+
"depth": 2,
|
|
330
|
+
"numbering": [
|
|
331
|
+
1,
|
|
332
|
+
5
|
|
333
|
+
],
|
|
334
|
+
"parent": "root"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"value": "Common patterns",
|
|
338
|
+
"href": "#common-patterns",
|
|
339
|
+
"depth": 2,
|
|
340
|
+
"numbering": [
|
|
341
|
+
1,
|
|
342
|
+
6
|
|
343
|
+
],
|
|
344
|
+
"parent": "root"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"value": "Dividing form sections",
|
|
348
|
+
"href": "#dividing-form-sections",
|
|
349
|
+
"depth": 3,
|
|
350
|
+
"numbering": [
|
|
351
|
+
1,
|
|
352
|
+
6,
|
|
353
|
+
1
|
|
354
|
+
],
|
|
355
|
+
"parent": "root"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"value": "Toolbar dividers",
|
|
359
|
+
"href": "#toolbar-dividers",
|
|
360
|
+
"depth": 3,
|
|
361
|
+
"numbering": [
|
|
362
|
+
1,
|
|
363
|
+
6,
|
|
364
|
+
2
|
|
365
|
+
],
|
|
366
|
+
"parent": "root"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"value": "Testing your implementation",
|
|
370
|
+
"href": "#testing-your-implementation",
|
|
371
|
+
"depth": 2,
|
|
372
|
+
"numbering": [
|
|
373
|
+
1,
|
|
374
|
+
7
|
|
375
|
+
],
|
|
376
|
+
"parent": "root"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"value": "Basic Rendering Tests",
|
|
380
|
+
"href": "#basic-rendering-tests",
|
|
381
|
+
"depth": 3,
|
|
382
|
+
"numbering": [
|
|
383
|
+
1,
|
|
384
|
+
7,
|
|
385
|
+
1
|
|
386
|
+
],
|
|
387
|
+
"parent": "root"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"value": "Layout Integration Tests",
|
|
391
|
+
"href": "#layout-integration-tests",
|
|
392
|
+
"depth": 3,
|
|
393
|
+
"numbering": [
|
|
394
|
+
1,
|
|
395
|
+
7,
|
|
396
|
+
2
|
|
397
|
+
],
|
|
398
|
+
"parent": "root"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"value": "Accessibility Tests",
|
|
402
|
+
"href": "#accessibility-tests",
|
|
403
|
+
"depth": 3,
|
|
404
|
+
"numbering": [
|
|
405
|
+
1,
|
|
406
|
+
7,
|
|
407
|
+
3
|
|
408
|
+
],
|
|
409
|
+
"parent": "root"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"value": "Resources",
|
|
413
|
+
"href": "#resources",
|
|
414
|
+
"depth": 2,
|
|
415
|
+
"numbering": [
|
|
416
|
+
1,
|
|
417
|
+
8
|
|
418
|
+
],
|
|
419
|
+
"parent": "root"
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
},
|
|
423
|
+
"guidelines": {
|
|
424
|
+
"mdx": "\n## Guidelines\n\nDesign guidelines offer a set of standardized rules and recommendations that\nensure consistency, usability, and accessibility across all design elements and\ninteractions.\n\n### Best practices\n\n- **Be subtle:** Separators should be noticeable but not visually jarring.\n- **Prioritize white space:** Use separators only when white space alone is\n insufficient to define content groups.\n- **Use sparingly:** Overuse of separators creates visual noise and diminishes\n their impact.\n- **Place logically:** Position separators to reinforce content relationships\n and hierarchy.\n\n### Usage\n\nSeparators help organize content and guide the user's eye.\n\n> [!TIP]\\\n> When to use\n\n- Separate distinct sections of content on a page.\n- Divide items in a list, especially when items are similar.\n- Group related components within a panel or dialog.\n- Separate elements in a toolbar or navigation menu.\n- Indicate where content might expand or collapse.\n\n> [!CAUTION]\\\n> When not to use\n\n- Separate individual items when white space provides sufficient visual\n distinction.\n- Overuse within a small area, which can lead to visual clutter.\n- As a primary decorative element.\n- When a component already has inherent visual separation (e.g., card borders).\n",
|
|
425
|
+
"toc": [
|
|
426
|
+
{
|
|
427
|
+
"value": "Guidelines",
|
|
428
|
+
"href": "#guidelines",
|
|
429
|
+
"depth": 2,
|
|
430
|
+
"numbering": [
|
|
431
|
+
1,
|
|
432
|
+
1
|
|
433
|
+
],
|
|
434
|
+
"parent": "root"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"value": "Best practices",
|
|
438
|
+
"href": "#best-practices",
|
|
439
|
+
"depth": 3,
|
|
440
|
+
"numbering": [
|
|
441
|
+
1,
|
|
442
|
+
1,
|
|
443
|
+
1
|
|
444
|
+
],
|
|
445
|
+
"parent": "root"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"value": "Usage",
|
|
449
|
+
"href": "#usage",
|
|
450
|
+
"depth": 3,
|
|
451
|
+
"numbering": [
|
|
452
|
+
1,
|
|
453
|
+
1,
|
|
454
|
+
2
|
|
455
|
+
],
|
|
456
|
+
"parent": "root"
|
|
457
|
+
}
|
|
458
|
+
]
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|