@commercetools/nimbus-mcp 0.1.0 → 2.10.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 +10913 -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-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 +82 -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 +278 -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,587 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"id": "Components-Flex",
|
|
4
|
+
"title": "Flex",
|
|
5
|
+
"exportName": "Flex",
|
|
6
|
+
"description": "Flex is a layout component that provides a convenient way to create flexible layouts based on CSS Flexbox. It's based on the Chakra UI Flex component and supports all style props for rapid UI development.",
|
|
7
|
+
"lifecycleState": "Stable",
|
|
8
|
+
"order": 999,
|
|
9
|
+
"repoPath": "packages/nimbus/src/components/flex/flex.mdx",
|
|
10
|
+
"menu": [
|
|
11
|
+
"Components",
|
|
12
|
+
"Layout",
|
|
13
|
+
"Flex"
|
|
14
|
+
],
|
|
15
|
+
"route": "components/layout/flex",
|
|
16
|
+
"tags": [
|
|
17
|
+
"component",
|
|
18
|
+
"flex",
|
|
19
|
+
"flexbox",
|
|
20
|
+
"layout"
|
|
21
|
+
],
|
|
22
|
+
"toc": [
|
|
23
|
+
{
|
|
24
|
+
"value": "Overview",
|
|
25
|
+
"href": "#overview",
|
|
26
|
+
"depth": 2,
|
|
27
|
+
"numbering": [
|
|
28
|
+
1,
|
|
29
|
+
1
|
|
30
|
+
],
|
|
31
|
+
"parent": "root"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"value": "Key features",
|
|
35
|
+
"href": "#key-features",
|
|
36
|
+
"depth": 3,
|
|
37
|
+
"numbering": [
|
|
38
|
+
1,
|
|
39
|
+
1,
|
|
40
|
+
1
|
|
41
|
+
],
|
|
42
|
+
"parent": "root"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"value": "Resources",
|
|
46
|
+
"href": "#resources",
|
|
47
|
+
"depth": 3,
|
|
48
|
+
"numbering": [
|
|
49
|
+
1,
|
|
50
|
+
1,
|
|
51
|
+
2
|
|
52
|
+
],
|
|
53
|
+
"parent": "root"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"value": "Usage",
|
|
57
|
+
"href": "#usage",
|
|
58
|
+
"depth": 2,
|
|
59
|
+
"numbering": [
|
|
60
|
+
1,
|
|
61
|
+
2
|
|
62
|
+
],
|
|
63
|
+
"parent": "root"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"value": "Import",
|
|
67
|
+
"href": "#import",
|
|
68
|
+
"depth": 3,
|
|
69
|
+
"numbering": [
|
|
70
|
+
1,
|
|
71
|
+
2,
|
|
72
|
+
1
|
|
73
|
+
],
|
|
74
|
+
"parent": "root"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"value": "Basic usage",
|
|
78
|
+
"href": "#basic-usage",
|
|
79
|
+
"depth": 3,
|
|
80
|
+
"numbering": [
|
|
81
|
+
1,
|
|
82
|
+
2,
|
|
83
|
+
2
|
|
84
|
+
],
|
|
85
|
+
"parent": "root"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"value": "Direction",
|
|
89
|
+
"href": "#direction",
|
|
90
|
+
"depth": 3,
|
|
91
|
+
"numbering": [
|
|
92
|
+
1,
|
|
93
|
+
2,
|
|
94
|
+
3
|
|
95
|
+
],
|
|
96
|
+
"parent": "root"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"value": "Alignment",
|
|
100
|
+
"href": "#alignment",
|
|
101
|
+
"depth": 3,
|
|
102
|
+
"numbering": [
|
|
103
|
+
1,
|
|
104
|
+
2,
|
|
105
|
+
4
|
|
106
|
+
],
|
|
107
|
+
"parent": "root"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"value": "Wrapping",
|
|
111
|
+
"href": "#wrapping",
|
|
112
|
+
"depth": 3,
|
|
113
|
+
"numbering": [
|
|
114
|
+
1,
|
|
115
|
+
2,
|
|
116
|
+
5
|
|
117
|
+
],
|
|
118
|
+
"parent": "root"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"value": "Flexible items",
|
|
122
|
+
"href": "#flexible-items",
|
|
123
|
+
"depth": 3,
|
|
124
|
+
"numbering": [
|
|
125
|
+
1,
|
|
126
|
+
2,
|
|
127
|
+
6
|
|
128
|
+
],
|
|
129
|
+
"parent": "root"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"value": "Centering content",
|
|
133
|
+
"href": "#centering-content",
|
|
134
|
+
"depth": 3,
|
|
135
|
+
"numbering": [
|
|
136
|
+
1,
|
|
137
|
+
2,
|
|
138
|
+
7
|
|
139
|
+
],
|
|
140
|
+
"parent": "root"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"value": "With asChild",
|
|
144
|
+
"href": "#with-aschild",
|
|
145
|
+
"depth": 3,
|
|
146
|
+
"numbering": [
|
|
147
|
+
1,
|
|
148
|
+
2,
|
|
149
|
+
8
|
|
150
|
+
],
|
|
151
|
+
"parent": "root"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"layout": "app-frame",
|
|
155
|
+
"tabs": [
|
|
156
|
+
{
|
|
157
|
+
"key": "overview",
|
|
158
|
+
"title": "Overview",
|
|
159
|
+
"order": 0
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"key": "guidelines",
|
|
163
|
+
"title": "Guidelines",
|
|
164
|
+
"order": 2
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"key": "dev",
|
|
168
|
+
"title": "Implementation",
|
|
169
|
+
"order": 3
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"key": "a11y",
|
|
173
|
+
"title": "Accessibility",
|
|
174
|
+
"order": 4
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
"mdx": "\n## Overview\n\nThe Flex component is essentially a Box component with `display: flex` applied\nby default. It provides an intuitive API for creating flexible layouts and\nsupports all flexbox properties.\n\n### Key features\n\n- **Flexbox by default**: Automatically applies `display: flex`\n- **Style props**: Supports all Chakra UI style props for rapid development\n- **Responsive design**: Easily create responsive layouts with responsive props\n- **Semantic HTML**: Can render as any HTML element using the `as` prop\n\n### Resources\n\nLearn more about CSS Flexbox and the underlying implementation:\n\n[Chakra UI Flex](https://chakra-ui.com/docs/components/flex)\n[CSS Flexbox Guide](https://css-tricks.com/snippets/css/a-guide-to-flexbox/)\n\n## Usage\n\n### Import\n\n```jsx\nimport { Flex } from \"@commercetools/nimbus\";\n```\n\n### Basic usage\n\n```jsx live\nconst App = () => (\n <Flex gap=\"400\">\n <Box p=\"400\" bg=\"primary.7\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 2\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 3\n </Box>\n </Flex>\n);\n```\n\n### Direction\n\nControl the direction of flex items using the `direction` prop:\n\n```jsx live\nconst App = () => (\n <Stack gap=\"600\">\n <Stack gap=\"200\">\n <Text fontWeight=\"500\">Horizontal (row):</Text>\n <Flex direction=\"row\" gap=\"400\">\n <Box p=\"400\" bg=\"primary.7\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 2\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 3\n </Box>\n </Flex>\n </Stack>\n <Stack gap=\"200\">\n <Text fontWeight=\"500\">Vertical (column):</Text>\n <Flex direction=\"column\" gap=\"400\">\n <Box p=\"400\" bg=\"primary.7\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 2\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 3\n </Box>\n </Flex>\n </Stack>\n </Stack>\n);\n```\n\n### Alignment\n\nControl alignment of flex items using `alignItems` and `justifyContent`:\n\n```jsx live\nconst App = () => (\n <Flex\n direction=\"row\"\n gap=\"400\"\n alignItems=\"center\"\n justifyContent=\"space-between\"\n p=\"400\"\n bg=\"neutral.2\"\n >\n <Box p=\"400\" bg=\"primary.7\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 2\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 3\n </Box>\n </Flex>\n);\n```\n\n### Wrapping\n\nControl how flex items wrap using the `wrap` prop:\n\n```jsx live\nconst App = () => (\n <Flex wrap=\"wrap\" gap=\"400\" maxWidth=\"600px\">\n <Box p=\"400\" bg=\"primary.7\" minWidth=\"150px\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\" minWidth=\"150px\">\n Item 2\n </Box>\n <Box p=\"400\" bg=\"primary.7\" minWidth=\"150px\">\n Item 3\n </Box>\n <Box p=\"400\" bg=\"primary.7\" minWidth=\"150px\">\n Item 4\n </Box>\n <Box p=\"400\" bg=\"primary.7\" minWidth=\"150px\">\n Item 5\n </Box>\n </Flex>\n);\n```\n\n### Flexible items\n\nControl how individual items grow and shrink using flex properties:\n\n```jsx live\nconst App = () => (\n <Flex gap=\"400\">\n <Box p=\"400\" bg=\"primary.7\" flex=\"1\">\n Flexible item (flex: 1)\n </Box>\n <Box p=\"400\" bg=\"positive.7\">\n Fixed width item\n </Box>\n <Box p=\"400\" bg=\"primary.7\" flex=\"2\">\n More flexible item (flex: 2)\n </Box>\n </Flex>\n);\n```\n\n### Centering content\n\nA common use case is centering content both horizontally and vertically:\n\n```jsx live\nconst App = () => (\n <Flex\n alignItems=\"center\"\n justifyContent=\"center\"\n height=\"200px\"\n bg=\"neutral.2\"\n >\n <Box p=\"400\" bg=\"primary.7\">\n Centered content\n </Box>\n </Flex>\n);\n```\n\n### With asChild\n\nUse the `asChild` prop to apply Flex styles to any child element while\nmaintaining the child's functionality:\n\n```jsx live\nconst App = () => (\n <Flex gap=\"400\" p=\"400\" bg=\"neutral.2\" asChild>\n <section>\n <Box p=\"400\" bg=\"primary.7\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 2\n </Box>\n </section>\n </Flex>\n);\n```\n",
|
|
179
|
+
"views": {
|
|
180
|
+
"overview": {
|
|
181
|
+
"mdx": "\n## Overview\n\nThe Flex component is essentially a Box component with `display: flex` applied\nby default. It provides an intuitive API for creating flexible layouts and\nsupports all flexbox properties.\n\n### Key features\n\n- **Flexbox by default**: Automatically applies `display: flex`\n- **Style props**: Supports all Chakra UI style props for rapid development\n- **Responsive design**: Easily create responsive layouts with responsive props\n- **Semantic HTML**: Can render as any HTML element using the `as` prop\n\n### Resources\n\nLearn more about CSS Flexbox and the underlying implementation:\n\n[Chakra UI Flex](https://chakra-ui.com/docs/components/flex)\n[CSS Flexbox Guide](https://css-tricks.com/snippets/css/a-guide-to-flexbox/)\n\n## Usage\n\n### Import\n\n```jsx\nimport { Flex } from \"@commercetools/nimbus\";\n```\n\n### Basic usage\n\n```jsx live\nconst App = () => (\n <Flex gap=\"400\">\n <Box p=\"400\" bg=\"primary.7\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 2\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 3\n </Box>\n </Flex>\n);\n```\n\n### Direction\n\nControl the direction of flex items using the `direction` prop:\n\n```jsx live\nconst App = () => (\n <Stack gap=\"600\">\n <Stack gap=\"200\">\n <Text fontWeight=\"500\">Horizontal (row):</Text>\n <Flex direction=\"row\" gap=\"400\">\n <Box p=\"400\" bg=\"primary.7\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 2\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 3\n </Box>\n </Flex>\n </Stack>\n <Stack gap=\"200\">\n <Text fontWeight=\"500\">Vertical (column):</Text>\n <Flex direction=\"column\" gap=\"400\">\n <Box p=\"400\" bg=\"primary.7\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 2\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 3\n </Box>\n </Flex>\n </Stack>\n </Stack>\n);\n```\n\n### Alignment\n\nControl alignment of flex items using `alignItems` and `justifyContent`:\n\n```jsx live\nconst App = () => (\n <Flex\n direction=\"row\"\n gap=\"400\"\n alignItems=\"center\"\n justifyContent=\"space-between\"\n p=\"400\"\n bg=\"neutral.2\"\n >\n <Box p=\"400\" bg=\"primary.7\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 2\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 3\n </Box>\n </Flex>\n);\n```\n\n### Wrapping\n\nControl how flex items wrap using the `wrap` prop:\n\n```jsx live\nconst App = () => (\n <Flex wrap=\"wrap\" gap=\"400\" maxWidth=\"600px\">\n <Box p=\"400\" bg=\"primary.7\" minWidth=\"150px\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\" minWidth=\"150px\">\n Item 2\n </Box>\n <Box p=\"400\" bg=\"primary.7\" minWidth=\"150px\">\n Item 3\n </Box>\n <Box p=\"400\" bg=\"primary.7\" minWidth=\"150px\">\n Item 4\n </Box>\n <Box p=\"400\" bg=\"primary.7\" minWidth=\"150px\">\n Item 5\n </Box>\n </Flex>\n);\n```\n\n### Flexible items\n\nControl how individual items grow and shrink using flex properties:\n\n```jsx live\nconst App = () => (\n <Flex gap=\"400\">\n <Box p=\"400\" bg=\"primary.7\" flex=\"1\">\n Flexible item (flex: 1)\n </Box>\n <Box p=\"400\" bg=\"positive.7\">\n Fixed width item\n </Box>\n <Box p=\"400\" bg=\"primary.7\" flex=\"2\">\n More flexible item (flex: 2)\n </Box>\n </Flex>\n);\n```\n\n### Centering content\n\nA common use case is centering content both horizontally and vertically:\n\n```jsx live\nconst App = () => (\n <Flex\n alignItems=\"center\"\n justifyContent=\"center\"\n height=\"200px\"\n bg=\"neutral.2\"\n >\n <Box p=\"400\" bg=\"primary.7\">\n Centered content\n </Box>\n </Flex>\n);\n```\n\n### With asChild\n\nUse the `asChild` prop to apply Flex styles to any child element while\nmaintaining the child's functionality:\n\n```jsx live\nconst App = () => (\n <Flex gap=\"400\" p=\"400\" bg=\"neutral.2\" asChild>\n <section>\n <Box p=\"400\" bg=\"primary.7\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\">\n Item 2\n </Box>\n </section>\n </Flex>\n);\n```\n",
|
|
182
|
+
"toc": [
|
|
183
|
+
{
|
|
184
|
+
"value": "Overview",
|
|
185
|
+
"href": "#overview",
|
|
186
|
+
"depth": 2,
|
|
187
|
+
"numbering": [
|
|
188
|
+
1,
|
|
189
|
+
1
|
|
190
|
+
],
|
|
191
|
+
"parent": "root"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"value": "Key features",
|
|
195
|
+
"href": "#key-features",
|
|
196
|
+
"depth": 3,
|
|
197
|
+
"numbering": [
|
|
198
|
+
1,
|
|
199
|
+
1,
|
|
200
|
+
1
|
|
201
|
+
],
|
|
202
|
+
"parent": "root"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"value": "Resources",
|
|
206
|
+
"href": "#resources",
|
|
207
|
+
"depth": 3,
|
|
208
|
+
"numbering": [
|
|
209
|
+
1,
|
|
210
|
+
1,
|
|
211
|
+
2
|
|
212
|
+
],
|
|
213
|
+
"parent": "root"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"value": "Usage",
|
|
217
|
+
"href": "#usage",
|
|
218
|
+
"depth": 2,
|
|
219
|
+
"numbering": [
|
|
220
|
+
1,
|
|
221
|
+
2
|
|
222
|
+
],
|
|
223
|
+
"parent": "root"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"value": "Import",
|
|
227
|
+
"href": "#import",
|
|
228
|
+
"depth": 3,
|
|
229
|
+
"numbering": [
|
|
230
|
+
1,
|
|
231
|
+
2,
|
|
232
|
+
1
|
|
233
|
+
],
|
|
234
|
+
"parent": "root"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"value": "Basic usage",
|
|
238
|
+
"href": "#basic-usage",
|
|
239
|
+
"depth": 3,
|
|
240
|
+
"numbering": [
|
|
241
|
+
1,
|
|
242
|
+
2,
|
|
243
|
+
2
|
|
244
|
+
],
|
|
245
|
+
"parent": "root"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"value": "Direction",
|
|
249
|
+
"href": "#direction",
|
|
250
|
+
"depth": 3,
|
|
251
|
+
"numbering": [
|
|
252
|
+
1,
|
|
253
|
+
2,
|
|
254
|
+
3
|
|
255
|
+
],
|
|
256
|
+
"parent": "root"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"value": "Alignment",
|
|
260
|
+
"href": "#alignment",
|
|
261
|
+
"depth": 3,
|
|
262
|
+
"numbering": [
|
|
263
|
+
1,
|
|
264
|
+
2,
|
|
265
|
+
4
|
|
266
|
+
],
|
|
267
|
+
"parent": "root"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"value": "Wrapping",
|
|
271
|
+
"href": "#wrapping",
|
|
272
|
+
"depth": 3,
|
|
273
|
+
"numbering": [
|
|
274
|
+
1,
|
|
275
|
+
2,
|
|
276
|
+
5
|
|
277
|
+
],
|
|
278
|
+
"parent": "root"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"value": "Flexible items",
|
|
282
|
+
"href": "#flexible-items",
|
|
283
|
+
"depth": 3,
|
|
284
|
+
"numbering": [
|
|
285
|
+
1,
|
|
286
|
+
2,
|
|
287
|
+
6
|
|
288
|
+
],
|
|
289
|
+
"parent": "root"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"value": "Centering content",
|
|
293
|
+
"href": "#centering-content",
|
|
294
|
+
"depth": 3,
|
|
295
|
+
"numbering": [
|
|
296
|
+
1,
|
|
297
|
+
2,
|
|
298
|
+
7
|
|
299
|
+
],
|
|
300
|
+
"parent": "root"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"value": "With asChild",
|
|
304
|
+
"href": "#with-aschild",
|
|
305
|
+
"depth": 3,
|
|
306
|
+
"numbering": [
|
|
307
|
+
1,
|
|
308
|
+
2,
|
|
309
|
+
8
|
|
310
|
+
],
|
|
311
|
+
"parent": "root"
|
|
312
|
+
}
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
"a11y": {
|
|
316
|
+
"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 <Flex as=\"nav\" gap=\"400\" p=\"400\">\n <Box as=\"a\" href=\"#\" p=\"200\">\n Home\n </Box>\n <Box as=\"a\" href=\"#\" p=\"200\">\n About\n </Box>\n <Box as=\"a\" href=\"#\" p=\"200\">\n Contact\n </Box>\n </Flex>\n);\n```\n\n### Accessibility standards\n\n- **Use semantic HTML**: Choose appropriate HTML elements with the `as` prop\n- **Maintain reading order**: Ensure visual order matches DOM order for screen\n readers\n- **Avoid layout-only divs**: When possible, apply flex styles to semantic\n elements\n",
|
|
317
|
+
"toc": [
|
|
318
|
+
{
|
|
319
|
+
"value": "Accessibility",
|
|
320
|
+
"href": "#accessibility",
|
|
321
|
+
"depth": 2,
|
|
322
|
+
"numbering": [
|
|
323
|
+
1,
|
|
324
|
+
1
|
|
325
|
+
],
|
|
326
|
+
"parent": "root"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"value": "Accessibility standards",
|
|
330
|
+
"href": "#accessibility-standards",
|
|
331
|
+
"depth": 3,
|
|
332
|
+
"numbering": [
|
|
333
|
+
1,
|
|
334
|
+
1,
|
|
335
|
+
1
|
|
336
|
+
],
|
|
337
|
+
"parent": "root"
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
},
|
|
341
|
+
"dev": {
|
|
342
|
+
"mdx": "\n## Getting started\n\n### Import\n\n```tsx\nimport { Flex, type FlexProps } from '@commercetools/nimbus';\n```\n\n### Basic usage\n\nThe Flex component applies `display: flex` to create flexible layouts. By default, items are arranged horizontally in a single row:\n\n```jsx live-dev\nconst App = () => (\n <Flex gap=\"400\">\n <Box p=\"400\" bg=\"primary.7\" borderRadius=\"200\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\" borderRadius=\"200\">\n Item 2\n </Box>\n <Box p=\"400\" bg=\"primary.7\" borderRadius=\"200\">\n Item 3\n </Box>\n </Flex>\n)\n```\n\n## Usage examples\n\n### Direction control\n\nUse the `direction` prop to arrange items horizontally or vertically:\n\n```jsx live-dev\nconst App = () => (\n <Stack direction=\"column\" gap=\"600\">\n <Box>\n <Text fontWeight=\"600\" mb=\"200\">Row (horizontal):</Text>\n <Flex direction=\"row\" gap=\"400\" bg=\"neutral.3\" p=\"400\" borderRadius=\"200\">\n <Box p=\"400\" bg=\"primary.7\" borderRadius=\"200\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\" borderRadius=\"200\">\n Item 2\n </Box>\n <Box p=\"400\" bg=\"primary.7\" borderRadius=\"200\">\n Item 3\n </Box>\n </Flex>\n </Box>\n\n <Box>\n <Text fontWeight=\"600\" mb=\"200\">Column (vertical):</Text>\n <Flex direction=\"column\" gap=\"400\" bg=\"neutral.3\" p=\"400\" borderRadius=\"200\">\n <Box p=\"400\" bg=\"info.7\" borderRadius=\"200\">\n Item 1\n </Box>\n <Box p=\"400\" bg=\"info.7\" borderRadius=\"200\">\n Item 2\n </Box>\n <Box p=\"400\" bg=\"info.7\" borderRadius=\"200\">\n Item 3\n </Box>\n </Flex>\n </Box>\n </Stack>\n)\n```\n\n### Alignment control\n\nUse `alignItems` and `justifyContent` to control how items are positioned:\n\n```jsx live-dev\nconst App = () => (\n <Stack direction=\"column\" gap=\"600\">\n <Box>\n <Text fontWeight=\"600\" mb=\"200\">Align items to center:</Text>\n <Flex direction=\"row\" gap=\"400\" alignItems=\"center\" bg=\"neutral.3\" p=\"400\" borderRadius=\"200\" height=\"1600\">\n <Box p=\"200\" bg=\"primary.7\" borderRadius=\"200\">Short</Box>\n <Box p=\"400\" bg=\"primary.7\" borderRadius=\"200\">\n <Text>Taller</Text>\n <Text>Content</Text>\n </Box>\n <Box p=\"200\" bg=\"primary.7\" borderRadius=\"200\">Short</Box>\n </Flex>\n </Box>\n\n <Box>\n <Text fontWeight=\"600\" mb=\"200\">Justify content with space-between:</Text>\n <Flex direction=\"row\" gap=\"400\" justifyContent=\"space-between\" bg=\"neutral.3\" p=\"400\" borderRadius=\"200\">\n <Box p=\"400\" bg=\"info.7\" borderRadius=\"200\">Start</Box>\n <Box p=\"400\" bg=\"info.7\" borderRadius=\"200\">Middle</Box>\n <Box p=\"400\" bg=\"info.7\" borderRadius=\"200\">End</Box>\n </Flex>\n </Box>\n\n <Box>\n <Text fontWeight=\"600\" mb=\"200\">Center both axes:</Text>\n <Flex direction=\"row\" alignItems=\"center\" justifyContent=\"center\" bg=\"neutral.3\" p=\"600\" borderRadius=\"200\" height=\"2000\">\n <Box p=\"400\" bg=\"positive.7\" borderRadius=\"200\">\n Centered\n </Box>\n </Flex>\n </Box>\n </Stack>\n)\n```\n\n### Item flexibility\n\nControl how items grow and shrink using flex properties:\n\n```jsx live-dev\nconst App = () => (\n <Stack direction=\"column\" gap=\"400\">\n <Box>\n <Text fontWeight=\"600\" mb=\"200\">Items with different flex values:</Text>\n <Flex direction=\"row\" gap=\"400\" bg=\"neutral.3\" p=\"400\" borderRadius=\"200\">\n <Box p=\"400\" bg=\"primary.7\" borderRadius=\"200\" flex=\"1\">\n Flex: 1\n </Box>\n <Box p=\"400\" bg=\"primary.7\" borderRadius=\"200\">\n Fixed width\n </Box>\n <Box p=\"400\" bg=\"primary.7\" borderRadius=\"200\" flex=\"2\">\n Flex: 2\n </Box>\n </Flex>\n </Box>\n\n <Box>\n <Text fontWeight=\"600\" mb=\"200\">No grow (minWidth constraint):</Text>\n <Flex direction=\"row\" gap=\"400\" bg=\"neutral.3\" p=\"400\" borderRadius=\"200\">\n <Box p=\"400\" bg=\"info.7\" borderRadius=\"200\" minWidth=\"1200\">\n Fixed min width\n </Box>\n <Box p=\"400\" bg=\"info.7\" borderRadius=\"200\" minWidth=\"1200\">\n Fixed min width\n </Box>\n <Box p=\"400\" bg=\"info.7\" borderRadius=\"200\" minWidth=\"1200\">\n Fixed min width\n </Box>\n </Flex>\n </Box>\n </Stack>\n)\n```\n\n### Wrapping behavior\n\nControl how items wrap when they exceed available space:\n\n```jsx live-dev\nconst App = () => (\n <Stack direction=\"column\" gap=\"600\">\n <Box>\n <Text fontWeight=\"600\" mb=\"200\">Wrap enabled:</Text>\n <Flex wrap=\"wrap\" gap=\"400\" bg=\"neutral.3\" p=\"400\" borderRadius=\"200\">\n {Array.from({ length: 6 }, (_, i) => (\n <Box key={i} p=\"400\" bg=\"primary.7\" borderRadius=\"200\" minWidth=\"2000\">\n Item {i + 1}\n </Box>\n ))}\n </Flex>\n </Box>\n\n <Box>\n <Text fontWeight=\"600\" mb=\"200\">No wrap (overflow):</Text>\n <Flex wrap=\"nowrap\" gap=\"400\" bg=\"neutral.3\" p=\"400\" borderRadius=\"200\" overflow=\"auto\">\n {Array.from({ length: 6 }, (_, i) => (\n <Box key={i} p=\"400\" bg=\"info.7\" borderRadius=\"200\" minWidth=\"2000\">\n Item {i + 1}\n </Box>\n ))}\n </Flex>\n </Box>\n </Stack>\n)\n```\n\n### Responsive layouts\n\nUse responsive prop values to change layout based on viewport size:\n\n```jsx live-dev\nconst App = () => (\n <Flex\n direction={{ base: \"column\", md: \"row\" }}\n gap={{ base: \"300\", md: \"600\" }}\n alignItems={{ base: \"stretch\", md: \"center\" }}\n >\n <Box p=\"600\" bg=\"primary.7\" borderRadius=\"200\" flex=\"1\">\n <Text fontWeight=\"600\" mb=\"200\">Card 1</Text>\n <Text fontSize=\"sm\">Stacks vertically on mobile, horizontally on desktop</Text>\n </Box>\n <Box p=\"600\" bg=\"primary.7\" borderRadius=\"200\" flex=\"1\">\n <Text fontWeight=\"600\" mb=\"200\">Card 2</Text>\n <Text fontSize=\"sm\">Resize the window to see the layout change</Text>\n </Box>\n <Box p=\"600\" bg=\"primary.7\" borderRadius=\"200\" flex=\"1\">\n <Text fontWeight=\"600\" mb=\"200\">Card 3</Text>\n <Text fontSize=\"sm\">Gap also adjusts responsively</Text>\n </Box>\n </Flex>\n)\n```\n\n## Component requirements\n\n### Usage context\n\nFlex should be used when you need to:\n- Arrange items in one direction (row or column) with flexible sizing\n- Create dynamic layouts where items grow or shrink based on available space\n- Build responsive navigation bars, button groups, or form layouts\n- Align items with precise control over spacing and distribution\n\nFor two-dimensional grid layouts, consider using the `Grid` component. For simple vertical or horizontal stacking with consistent spacing, consider using `Stack` for a more semantic API.\n\n## Accessibility\n\nFlex is a layout component and does not have inherent accessibility requirements. However:\n\n- Ensure child elements have appropriate accessibility attributes\n- Use semantic HTML elements within Flex when appropriate\n- Consider reading order when using `row-reverse` or `column-reverse` directions\n- Test keyboard navigation flows through flex-arranged 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-flex\";\n\nexport const Example = () => (\n <Flex id={PERSISTENT_ID} direction=\"row\" gap=\"400\">\n {/* children */}\n </Flex>\n);\n```\n\n#### Keyboard navigation\n\nFlex is a non-interactive layout component and does not support keyboard navigation by default. Keyboard navigation is determined by the interactive child elements contained within the Flex.\n\n## API reference\n\nThe component supports all [Style Props](/home/style-props) with `display=\"flex\"` applied by default.\n\n## Common patterns\n\n### Centered content\n\nCreate a container that centers content both horizontally and vertically:\n\n```jsx live-dev\nconst App = () => (\n <Flex\n direction=\"column\"\n alignItems=\"center\"\n justifyContent=\"center\"\n height=\"3000\"\n gap=\"400\"\n bg=\"neutral.2\"\n borderRadius=\"200\"\n >\n <Box p=\"600\" bg=\"primary.7\" borderRadius=\"200\" textAlign=\"center\">\n <Text fontWeight=\"600\" fontSize=\"lg\" mb=\"200\">Centered Content</Text>\n <Text fontSize=\"sm\">This content is centered on both axes</Text>\n </Box>\n </Flex>\n)\n```\n\n### Space-between layout\n\nDistribute items with space between them:\n\n```jsx live-dev\nconst App = () => (\n <Flex\n direction=\"row\"\n justifyContent=\"space-between\"\n alignItems=\"center\"\n gap=\"400\"\n p=\"400\"\n bg=\"neutral.2\"\n borderRadius=\"200\"\n >\n <Text fontWeight=\"600\">Logo</Text>\n <Flex direction=\"row\" gap=\"200\">\n <Button size=\"xs\" variant=\"ghost\">Home</Button>\n <Button size=\"xs\" variant=\"ghost\">About</Button>\n <Button size=\"xs\" variant=\"outline\">Sign In</Button>\n </Flex>\n </Flex>\n)\n```\n\n### Flexible vs fixed items\n\nMix flexible and fixed-width items:\n\n```jsx live-dev\nconst App = () => (\n <Stack direction=\"column\" gap=\"400\">\n <Box>\n <Text fontWeight=\"400\" mb=\"100\">Sidebar layout:</Text>\n <Flex direction=\"row\" gap=\"200\" bg=\"neutral.3\" p=\"200\" borderRadius=\"100\" height=\"3200\">\n <Box p=\"400\" bg=\"info.7\" borderRadius=\"200\" width=\"2400\" flexShrink=\"0\">\n Sidebar\n </Box>\n <Flex direction=\"column\" gap=\"300\" flex=\"1\" bg=\"primary.7\" p=\"400\" borderRadius=\"200\">\n <Text fontWeight=\"600\">Main Content</Text>\n <Text fontSize=\"sm\">This content grows to fill available space</Text>\n </Flex>\n </Flex>\n </Box>\n\n <Box>\n <Text fontWeight=\"600\" mb=\"200\">Header with flexible content:</Text>\n <Flex direction=\"row\" gap=\"400\" alignItems=\"center\" bg=\"neutral.3\" p=\"300\" borderRadius=\"200\">\n <Box p=\"300\" bg=\"neutral.6\" borderRadius=\"100\" flexShrink=\"0\">\n Logo\n </Box>\n <Flex direction=\"column\" gap=\"100\" flex=\"1\">\n <Text fontWeight=\"600\" fontSize=\"sm\">Flexible section</Text>\n <Text fontSize=\"xs\" color=\"neutral.11\">Grows with available space</Text>\n </Flex>\n <Button size=\"xs\" flexShrink=\"0\">Action</Button>\n </Flex>\n </Box>\n </Stack>\n)\n```\n\n## Resources\n\n- [Box Component](/components/layout/box)\n- [Stack Component](/components/layout/stack)\n",
|
|
343
|
+
"toc": [
|
|
344
|
+
{
|
|
345
|
+
"value": "Getting started",
|
|
346
|
+
"href": "#getting-started",
|
|
347
|
+
"depth": 2,
|
|
348
|
+
"numbering": [
|
|
349
|
+
1,
|
|
350
|
+
1
|
|
351
|
+
],
|
|
352
|
+
"parent": "root"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"value": "Import",
|
|
356
|
+
"href": "#import",
|
|
357
|
+
"depth": 3,
|
|
358
|
+
"numbering": [
|
|
359
|
+
1,
|
|
360
|
+
1,
|
|
361
|
+
1
|
|
362
|
+
],
|
|
363
|
+
"parent": "root"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"value": "Basic usage",
|
|
367
|
+
"href": "#basic-usage",
|
|
368
|
+
"depth": 3,
|
|
369
|
+
"numbering": [
|
|
370
|
+
1,
|
|
371
|
+
1,
|
|
372
|
+
2
|
|
373
|
+
],
|
|
374
|
+
"parent": "root"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"value": "Usage examples",
|
|
378
|
+
"href": "#usage-examples",
|
|
379
|
+
"depth": 2,
|
|
380
|
+
"numbering": [
|
|
381
|
+
1,
|
|
382
|
+
2
|
|
383
|
+
],
|
|
384
|
+
"parent": "root"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"value": "Direction control",
|
|
388
|
+
"href": "#direction-control",
|
|
389
|
+
"depth": 3,
|
|
390
|
+
"numbering": [
|
|
391
|
+
1,
|
|
392
|
+
2,
|
|
393
|
+
1
|
|
394
|
+
],
|
|
395
|
+
"parent": "root"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"value": "Alignment control",
|
|
399
|
+
"href": "#alignment-control",
|
|
400
|
+
"depth": 3,
|
|
401
|
+
"numbering": [
|
|
402
|
+
1,
|
|
403
|
+
2,
|
|
404
|
+
2
|
|
405
|
+
],
|
|
406
|
+
"parent": "root"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"value": "Item flexibility",
|
|
410
|
+
"href": "#item-flexibility",
|
|
411
|
+
"depth": 3,
|
|
412
|
+
"numbering": [
|
|
413
|
+
1,
|
|
414
|
+
2,
|
|
415
|
+
3
|
|
416
|
+
],
|
|
417
|
+
"parent": "root"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"value": "Wrapping behavior",
|
|
421
|
+
"href": "#wrapping-behavior",
|
|
422
|
+
"depth": 3,
|
|
423
|
+
"numbering": [
|
|
424
|
+
1,
|
|
425
|
+
2,
|
|
426
|
+
4
|
|
427
|
+
],
|
|
428
|
+
"parent": "root"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"value": "Responsive layouts",
|
|
432
|
+
"href": "#responsive-layouts",
|
|
433
|
+
"depth": 3,
|
|
434
|
+
"numbering": [
|
|
435
|
+
1,
|
|
436
|
+
2,
|
|
437
|
+
5
|
|
438
|
+
],
|
|
439
|
+
"parent": "root"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"value": "Component requirements",
|
|
443
|
+
"href": "#component-requirements",
|
|
444
|
+
"depth": 2,
|
|
445
|
+
"numbering": [
|
|
446
|
+
1,
|
|
447
|
+
3
|
|
448
|
+
],
|
|
449
|
+
"parent": "root"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"value": "Usage context",
|
|
453
|
+
"href": "#usage-context",
|
|
454
|
+
"depth": 3,
|
|
455
|
+
"numbering": [
|
|
456
|
+
1,
|
|
457
|
+
3,
|
|
458
|
+
1
|
|
459
|
+
],
|
|
460
|
+
"parent": "root"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"value": "Accessibility",
|
|
464
|
+
"href": "#accessibility",
|
|
465
|
+
"depth": 2,
|
|
466
|
+
"numbering": [
|
|
467
|
+
1,
|
|
468
|
+
4
|
|
469
|
+
],
|
|
470
|
+
"parent": "root"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"value": "Keyboard navigation",
|
|
474
|
+
"href": "#keyboard-navigation",
|
|
475
|
+
"depth": 4,
|
|
476
|
+
"numbering": [
|
|
477
|
+
1,
|
|
478
|
+
4,
|
|
479
|
+
1,
|
|
480
|
+
1
|
|
481
|
+
],
|
|
482
|
+
"parent": "root"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"value": "API reference",
|
|
486
|
+
"href": "#api-reference",
|
|
487
|
+
"depth": 2,
|
|
488
|
+
"numbering": [
|
|
489
|
+
1,
|
|
490
|
+
5
|
|
491
|
+
],
|
|
492
|
+
"parent": "root"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"value": "Common patterns",
|
|
496
|
+
"href": "#common-patterns",
|
|
497
|
+
"depth": 2,
|
|
498
|
+
"numbering": [
|
|
499
|
+
1,
|
|
500
|
+
6
|
|
501
|
+
],
|
|
502
|
+
"parent": "root"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"value": "Centered content",
|
|
506
|
+
"href": "#centered-content",
|
|
507
|
+
"depth": 3,
|
|
508
|
+
"numbering": [
|
|
509
|
+
1,
|
|
510
|
+
6,
|
|
511
|
+
1
|
|
512
|
+
],
|
|
513
|
+
"parent": "root"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"value": "Space-between layout",
|
|
517
|
+
"href": "#space-between-layout",
|
|
518
|
+
"depth": 3,
|
|
519
|
+
"numbering": [
|
|
520
|
+
1,
|
|
521
|
+
6,
|
|
522
|
+
2
|
|
523
|
+
],
|
|
524
|
+
"parent": "root"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"value": "Flexible vs fixed items",
|
|
528
|
+
"href": "#flexible-vs-fixed-items",
|
|
529
|
+
"depth": 3,
|
|
530
|
+
"numbering": [
|
|
531
|
+
1,
|
|
532
|
+
6,
|
|
533
|
+
3
|
|
534
|
+
],
|
|
535
|
+
"parent": "root"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"value": "Resources",
|
|
539
|
+
"href": "#resources",
|
|
540
|
+
"depth": 2,
|
|
541
|
+
"numbering": [
|
|
542
|
+
1,
|
|
543
|
+
7
|
|
544
|
+
],
|
|
545
|
+
"parent": "root"
|
|
546
|
+
}
|
|
547
|
+
]
|
|
548
|
+
},
|
|
549
|
+
"guidelines": {
|
|
550
|
+
"mdx": "\n## Guidelines\n\nUse the Flex component strategically to create flexible and responsive layouts.\n\n### Best practices\n\n- **Use for flexible layouts**: Flex is ideal when you need items to grow,\n shrink, or align dynamically\n- **Consider Stack first**: For simple vertical or horizontal stacking with\n consistent spacing, Stack may be simpler\n- **Leverage responsive props**: Use responsive values for direction, alignment,\n and other properties\n- **Combine with other layout components**: Flex works well with Box, Stack, and\n Grid for complex layouts\n\n### When to use\n\n> [!TIP]\\\n> When to use\n\n- **Dynamic layouts**: When items need to grow or shrink based on available\n space\n- **Complex alignment**: When you need precise control over item alignment\n- **Responsive designs**: When layout needs to change based on viewport size\n- **Flexible spacing**: When items should distribute space dynamically\n\n> [!CAUTION]\\\n> When not to use\n\n- **Simple stacking**: Use Stack instead for basic vertical/horizontal layouts\n with consistent spacing\n- **Grid layouts**: Use Grid for two-dimensional layouts with rows and columns\n- **Static layouts**: Use Box when flexbox features aren't needed\n",
|
|
551
|
+
"toc": [
|
|
552
|
+
{
|
|
553
|
+
"value": "Guidelines",
|
|
554
|
+
"href": "#guidelines",
|
|
555
|
+
"depth": 2,
|
|
556
|
+
"numbering": [
|
|
557
|
+
1,
|
|
558
|
+
1
|
|
559
|
+
],
|
|
560
|
+
"parent": "root"
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"value": "Best practices",
|
|
564
|
+
"href": "#best-practices",
|
|
565
|
+
"depth": 3,
|
|
566
|
+
"numbering": [
|
|
567
|
+
1,
|
|
568
|
+
1,
|
|
569
|
+
1
|
|
570
|
+
],
|
|
571
|
+
"parent": "root"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"value": "When to use",
|
|
575
|
+
"href": "#when-to-use",
|
|
576
|
+
"depth": 3,
|
|
577
|
+
"numbering": [
|
|
578
|
+
1,
|
|
579
|
+
1,
|
|
580
|
+
2
|
|
581
|
+
],
|
|
582
|
+
"parent": "root"
|
|
583
|
+
}
|
|
584
|
+
]
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|