@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.
Files changed (450) hide show
  1. package/README.md +63 -14
  2. package/data/docs/route-manifest.json +10913 -0
  3. package/data/docs/routes/components-accessibility-visually-hidden.json +388 -0
  4. package/data/docs/routes/components-accessibility.json +34 -0
  5. package/data/docs/routes/components-buttons-button.json +715 -0
  6. package/data/docs/routes/components-buttons-icon-button.json +852 -0
  7. package/data/docs/routes/components-buttons-icon-toggle-button.json +594 -0
  8. package/data/docs/routes/components-buttons-split-button.json +670 -0
  9. package/data/docs/routes/components-buttons-toggle-button-group.json +722 -0
  10. package/data/docs/routes/components-buttons-toggle-button.json +689 -0
  11. package/data/docs/routes/components-buttons.json +36 -0
  12. package/data/docs/routes/components-data-display-badge.json +555 -0
  13. package/data/docs/routes/components-data-display-card.json +338 -0
  14. package/data/docs/routes/components-data-display-data-table.json +855 -0
  15. package/data/docs/routes/components-data-display-draggable-list.json +596 -0
  16. package/data/docs/routes/components-data-display-table.json +472 -0
  17. package/data/docs/routes/components-data-display-tag-group.json +535 -0
  18. package/data/docs/routes/components-data-display.json +34 -0
  19. package/data/docs/routes/components-feedback-alert.json +696 -0
  20. package/data/docs/routes/components-feedback-dialog.json +682 -0
  21. package/data/docs/routes/components-feedback-drawer.json +600 -0
  22. package/data/docs/routes/components-feedback-loading-spinner.json +415 -0
  23. package/data/docs/routes/components-feedback-progress-bar.json +661 -0
  24. package/data/docs/routes/components-feedback-toast.json +1040 -0
  25. package/data/docs/routes/components-feedback-tooltip.json +510 -0
  26. package/data/docs/routes/components-feedback.json +34 -0
  27. package/data/docs/routes/components-forms-field-errors.json +557 -0
  28. package/data/docs/routes/components-forms-form-field.json +848 -0
  29. package/data/docs/routes/components-forms-group.json +427 -0
  30. package/data/docs/routes/components-forms-localized-field.json +770 -0
  31. package/data/docs/routes/components-forms.json +37 -0
  32. package/data/docs/routes/components-inputs-calendar.json +611 -0
  33. package/data/docs/routes/components-inputs-checkbox.json +774 -0
  34. package/data/docs/routes/components-inputs-combo-box.json +761 -0
  35. package/data/docs/routes/components-inputs-date-input.json +628 -0
  36. package/data/docs/routes/components-inputs-date-picker.json +709 -0
  37. package/data/docs/routes/components-inputs-date-range-picker.json +599 -0
  38. package/data/docs/routes/components-inputs-money-input.json +721 -0
  39. package/data/docs/routes/components-inputs-multiline-text-input.json +611 -0
  40. package/data/docs/routes/components-inputs-number-input.json +647 -0
  41. package/data/docs/routes/components-inputs-password-input.json +576 -0
  42. package/data/docs/routes/components-inputs-radio-input.json +583 -0
  43. package/data/docs/routes/components-inputs-range-calendar.json +607 -0
  44. package/data/docs/routes/components-inputs-rich-text-input.json +599 -0
  45. package/data/docs/routes/components-inputs-scoped-search-input.json +570 -0
  46. package/data/docs/routes/components-inputs-search-input.json +588 -0
  47. package/data/docs/routes/components-inputs-select-input.json +960 -0
  48. package/data/docs/routes/components-inputs-switch.json +720 -0
  49. package/data/docs/routes/components-inputs-text-input.json +566 -0
  50. package/data/docs/routes/components-inputs-time-input.json +775 -0
  51. package/data/docs/routes/components-inputs.json +34 -0
  52. package/data/docs/routes/components-layout-box.json +501 -0
  53. package/data/docs/routes/components-layout-defaultpage.json +748 -0
  54. package/data/docs/routes/components-layout-flex.json +587 -0
  55. package/data/docs/routes/components-layout-grid.json +393 -0
  56. package/data/docs/routes/components-layout-modalpage.json +716 -0
  57. package/data/docs/routes/components-layout-pagecontent.json +673 -0
  58. package/data/docs/routes/components-layout-separator.json +461 -0
  59. package/data/docs/routes/components-layout-simple-grid.json +519 -0
  60. package/data/docs/routes/components-layout-spacer.json +573 -0
  61. package/data/docs/routes/components-layout-stack.json +481 -0
  62. package/data/docs/routes/components-layout.json +34 -0
  63. package/data/docs/routes/components-media-avatar.json +427 -0
  64. package/data/docs/routes/components-media-icon.json +663 -0
  65. package/data/docs/routes/components-media-image.json +511 -0
  66. package/data/docs/routes/components-media-inline-svg.json +586 -0
  67. package/data/docs/routes/components-media.json +34 -0
  68. package/data/docs/routes/components-navigation-accordion.json +643 -0
  69. package/data/docs/routes/components-navigation-collapsible-motion.json +628 -0
  70. package/data/docs/routes/components-navigation-link.json +554 -0
  71. package/data/docs/routes/components-navigation-menu.json +546 -0
  72. package/data/docs/routes/components-navigation-pagination.json +502 -0
  73. package/data/docs/routes/components-navigation-steps.json +629 -0
  74. package/data/docs/routes/components-navigation-tabnav.json +546 -0
  75. package/data/docs/routes/components-navigation-tabs.json +635 -0
  76. package/data/docs/routes/components-navigation-toolbar.json +549 -0
  77. package/data/docs/routes/components-navigation.json +34 -0
  78. package/data/docs/routes/components-typography-code.json +39 -0
  79. package/data/docs/routes/components-typography-heading.json +402 -0
  80. package/data/docs/routes/components-typography-kbd.json +399 -0
  81. package/data/docs/routes/components-typography-list.json +593 -0
  82. package/data/docs/routes/components-typography-text.json +444 -0
  83. package/data/docs/routes/components-typography.json +34 -0
  84. package/data/docs/routes/components-utilities-nimbus-i18n-provider.json +295 -0
  85. package/data/docs/routes/components-utilities-nimbus-provider.json +663 -0
  86. package/data/docs/routes/components-utilities.json +34 -0
  87. package/data/docs/routes/components.json +33 -0
  88. package/data/docs/routes/home-contribute-adrs-adr0001-consumer-component-apis.json +314 -0
  89. package/data/docs/routes/home-contribute-adrs-adr0002-compound-component-extraction.json +160 -0
  90. package/data/docs/routes/home-contribute-adrs-adr0003-component-lifecycle-states.json +460 -0
  91. package/data/docs/routes/home-contribute-adrs.json +205 -0
  92. package/data/docs/routes/home-contribute-development-setup.json +213 -0
  93. package/data/docs/routes/home-contribute-stats.json +36 -0
  94. package/data/docs/routes/home-contribute.json +36 -0
  95. package/data/docs/routes/home-design-tokens-aspect-ratios.json +36 -0
  96. package/data/docs/routes/home-design-tokens-borders.json +35 -0
  97. package/data/docs/routes/home-design-tokens-colors.json +157 -0
  98. package/data/docs/routes/home-design-tokens-other-animations.json +119 -0
  99. package/data/docs/routes/home-design-tokens-other-blurs.json +36 -0
  100. package/data/docs/routes/home-design-tokens-other-breakpoints.json +61 -0
  101. package/data/docs/routes/home-design-tokens-other-cursors.json +36 -0
  102. package/data/docs/routes/home-design-tokens-other-z-indices.json +39 -0
  103. package/data/docs/routes/home-design-tokens-other.json +35 -0
  104. package/data/docs/routes/home-design-tokens-radii.json +59 -0
  105. package/data/docs/routes/home-design-tokens-shadows.json +57 -0
  106. package/data/docs/routes/home-design-tokens-sizes.json +137 -0
  107. package/data/docs/routes/home-design-tokens-spacing.json +36 -0
  108. package/data/docs/routes/home-design-tokens-typography.json +184 -0
  109. package/data/docs/routes/home-design-tokens.json +34 -0
  110. package/data/docs/routes/home-getting-started-core-concepts.json +301 -0
  111. package/data/docs/routes/home-getting-started-installation.json +621 -0
  112. package/data/docs/routes/home-getting-started-mcp-server-overview.json +139 -0
  113. package/data/docs/routes/home-getting-started-mcp-server-setup.json +316 -0
  114. package/data/docs/routes/home-getting-started-release-process.json +294 -0
  115. package/data/docs/routes/home-getting-started-testing-setup.json +296 -0
  116. package/data/docs/routes/home-playground-markdown.json +638 -0
  117. package/data/docs/routes/home-playground-toc.json +169 -0
  118. package/data/docs/routes/home-playground.json +34 -0
  119. package/data/docs/routes/home-style-props-background.json +236 -0
  120. package/data/docs/routes/home-style-props-border.json +310 -0
  121. package/data/docs/routes/home-style-props-display.json +120 -0
  122. package/data/docs/routes/home-style-props-effects.json +116 -0
  123. package/data/docs/routes/home-style-props-filters.json +396 -0
  124. package/data/docs/routes/home-style-props-flex-and-grid.json +496 -0
  125. package/data/docs/routes/home-style-props-interactivity.json +356 -0
  126. package/data/docs/routes/home-style-props-layout.json +422 -0
  127. package/data/docs/routes/home-style-props-list.json +116 -0
  128. package/data/docs/routes/home-style-props-sizing.json +244 -0
  129. package/data/docs/routes/home-style-props-spacing.json +228 -0
  130. package/data/docs/routes/home-style-props-svg.json +96 -0
  131. package/data/docs/routes/home-style-props-tables.json +116 -0
  132. package/data/docs/routes/home-style-props-transforms.json +216 -0
  133. package/data/docs/routes/home-style-props-transitions.json +216 -0
  134. package/data/docs/routes/home-style-props-typography.json +536 -0
  135. package/data/docs/routes/home-style-props.json +33 -0
  136. package/data/docs/routes/home.json +32 -0
  137. package/data/docs/routes/hooks-usecopytoclipboard.json +76 -0
  138. package/data/docs/routes/hooks-usehotkeys.json +117 -0
  139. package/data/docs/routes/hooks.json +33 -0
  140. package/data/docs/routes/icons.json +32 -0
  141. package/data/docs/routes/patterns-fields-date-range-picker-field.json +393 -0
  142. package/data/docs/routes/patterns-fields-money-input-field.json +415 -0
  143. package/data/docs/routes/patterns-fields-multiline-text-input-field.json +404 -0
  144. package/data/docs/routes/patterns-fields-number-input-field.json +470 -0
  145. package/data/docs/routes/patterns-fields-password-input-field.json +319 -0
  146. package/data/docs/routes/patterns-fields-search-input-field.json +382 -0
  147. package/data/docs/routes/patterns-fields-text-input-field.json +404 -0
  148. package/data/docs/routes/patterns-fields.json +78 -0
  149. package/data/docs/routes/patterns.json +34 -0
  150. package/data/docs/search-index.json +1 -0
  151. package/data/docs/types/Accordion.json +12 -0
  152. package/data/docs/types/AccordionContent.json +286 -0
  153. package/data/docs/types/AccordionHeader.json +891 -0
  154. package/data/docs/types/AccordionHeaderRightContent.json +27 -0
  155. package/data/docs/types/AccordionItem.json +242 -0
  156. package/data/docs/types/AccordionRoot.json +162 -0
  157. package/data/docs/types/Alert.json +12 -0
  158. package/data/docs/types/AlertActions.json +11 -0
  159. package/data/docs/types/AlertDescription.json +118 -0
  160. package/data/docs/types/AlertDismissButton.json +937 -0
  161. package/data/docs/types/AlertRoot.json +42 -0
  162. package/data/docs/types/AlertTitle.json +118 -0
  163. package/data/docs/types/Avatar.json +125 -0
  164. package/data/docs/types/Badge.json +64 -0
  165. package/data/docs/types/Body.json +67 -0
  166. package/data/docs/types/Box.json +85 -0
  167. package/data/docs/types/Button.json +1015 -0
  168. package/data/docs/types/Calendar.json +565 -0
  169. package/data/docs/types/Caption.json +67 -0
  170. package/data/docs/types/Card.json +12 -0
  171. package/data/docs/types/CardContent.json +27 -0
  172. package/data/docs/types/CardHeader.json +27 -0
  173. package/data/docs/types/CardRoot.json +106 -0
  174. package/data/docs/types/Cell.json +227 -0
  175. package/data/docs/types/Checkbox.json +897 -0
  176. package/data/docs/types/Code.json +112 -0
  177. package/data/docs/types/CollapsibleMotionContent.json +35 -0
  178. package/data/docs/types/CollapsibleMotionRoot.json +99 -0
  179. package/data/docs/types/CollapsibleMotionTrigger.json +71 -0
  180. package/data/docs/types/Column.json +101 -0
  181. package/data/docs/types/ColumnGroup.json +101 -0
  182. package/data/docs/types/ColumnHeader.json +193 -0
  183. package/data/docs/types/ComboBoxListBox.json +751 -0
  184. package/data/docs/types/ComboBoxOption.json +672 -0
  185. package/data/docs/types/ComboBoxPopover.json +786 -0
  186. package/data/docs/types/ComboBoxRoot.json +747 -0
  187. package/data/docs/types/ComboBoxSection.json +277 -0
  188. package/data/docs/types/ComboBoxTrigger.json +70 -0
  189. package/data/docs/types/Content.json +33 -0
  190. package/data/docs/types/DataTable.json +596 -0
  191. package/data/docs/types/DataTableBody.json +223 -0
  192. package/data/docs/types/DataTableFooter.json +27 -0
  193. package/data/docs/types/DataTableHeader.json +269 -0
  194. package/data/docs/types/DataTableManager.json +11 -0
  195. package/data/docs/types/DataTableRoot.json +590 -0
  196. package/data/docs/types/DataTableTable.json +271 -0
  197. package/data/docs/types/DateInput.json +792 -0
  198. package/data/docs/types/DatePicker.json +700 -0
  199. package/data/docs/types/DateRangePicker.json +936 -0
  200. package/data/docs/types/DateRangePickerField.json +1047 -0
  201. package/data/docs/types/DefaultPage.json +12 -0
  202. package/data/docs/types/DefaultPageActions.json +27 -0
  203. package/data/docs/types/DefaultPageBackLink.json +213 -0
  204. package/data/docs/types/DefaultPageContent.json +27 -0
  205. package/data/docs/types/DefaultPageFooter.json +27 -0
  206. package/data/docs/types/DefaultPageHeader.json +27 -0
  207. package/data/docs/types/DefaultPageRoot.json +106 -0
  208. package/data/docs/types/DefaultPageSubtitle.json +27 -0
  209. package/data/docs/types/DefaultPageTabNav.json +28 -0
  210. package/data/docs/types/DefaultPageTitle.json +27 -0
  211. package/data/docs/types/DialogBody.json +27 -0
  212. package/data/docs/types/DialogCloseTrigger.json +939 -0
  213. package/data/docs/types/DialogContent.json +27 -0
  214. package/data/docs/types/DialogFooter.json +27 -0
  215. package/data/docs/types/DialogHeader.json +27 -0
  216. package/data/docs/types/DialogRoot.json +138 -0
  217. package/data/docs/types/DialogTitle.json +27 -0
  218. package/data/docs/types/DialogTrigger.json +80 -0
  219. package/data/docs/types/DraggableList.json +12 -0
  220. package/data/docs/types/DraggableListField.json +894 -0
  221. package/data/docs/types/DraggableListItem.json +574 -0
  222. package/data/docs/types/DraggableListRoot.json +745 -0
  223. package/data/docs/types/Drawer.json +12 -0
  224. package/data/docs/types/DrawerBody.json +27 -0
  225. package/data/docs/types/DrawerCloseTrigger.json +939 -0
  226. package/data/docs/types/DrawerContent.json +27 -0
  227. package/data/docs/types/DrawerFooter.json +27 -0
  228. package/data/docs/types/DrawerHeader.json +27 -0
  229. package/data/docs/types/DrawerRoot.json +142 -0
  230. package/data/docs/types/DrawerTitle.json +27 -0
  231. package/data/docs/types/DrawerTrigger.json +80 -0
  232. package/data/docs/types/FieldErrors.getBuiltInMessage.json +11 -0
  233. package/data/docs/types/FieldErrors.getCustomMessage.json +9 -0
  234. package/data/docs/types/FieldErrors.json +109 -0
  235. package/data/docs/types/Flex.json +238 -0
  236. package/data/docs/types/Footer.json +67 -0
  237. package/data/docs/types/FormFieldDescription.json +11 -0
  238. package/data/docs/types/FormFieldError.json +11 -0
  239. package/data/docs/types/FormFieldInfoBox.json +27 -0
  240. package/data/docs/types/FormFieldInput.json +11 -0
  241. package/data/docs/types/FormFieldLabel.json +11 -0
  242. package/data/docs/types/FormFieldRoot.json +148 -0
  243. package/data/docs/types/Grid.json +253 -0
  244. package/data/docs/types/GridProps.json +11 -0
  245. package/data/docs/types/Group.json +143 -0
  246. package/data/docs/types/Header.json +67 -0
  247. package/data/docs/types/Heading.json +109 -0
  248. package/data/docs/types/Icon.json +112 -0
  249. package/data/docs/types/IconButton.json +1019 -0
  250. package/data/docs/types/IconToggleButton.json +787 -0
  251. package/data/docs/types/Image.json +373 -0
  252. package/data/docs/types/Indicator.json +67 -0
  253. package/data/docs/types/InlineSvg.json +98 -0
  254. package/data/docs/types/Item.json +67 -0
  255. package/data/docs/types/Kbd.json +118 -0
  256. package/data/docs/types/Link.json +380 -0
  257. package/data/docs/types/List.json +12 -0
  258. package/data/docs/types/ListIndicator.json +70 -0
  259. package/data/docs/types/ListItem.json +70 -0
  260. package/data/docs/types/ListRoot.json +124 -0
  261. package/data/docs/types/LoadingSpinner.json +87 -0
  262. package/data/docs/types/LocalizedField.json +460 -0
  263. package/data/docs/types/LocalizedStringFormatter.json +9 -0
  264. package/data/docs/types/MakeElementFocusable.json +196 -0
  265. package/data/docs/types/MenuContent.json +111 -0
  266. package/data/docs/types/MenuItem.json +671 -0
  267. package/data/docs/types/MenuRoot.json +670 -0
  268. package/data/docs/types/MenuSection.json +364 -0
  269. package/data/docs/types/MenuSubmenu.json +111 -0
  270. package/data/docs/types/MenuSubmenuTrigger.json +67 -0
  271. package/data/docs/types/MenuTrigger.json +906 -0
  272. package/data/docs/types/ModalPage.json +12 -0
  273. package/data/docs/types/ModalPageActions.json +27 -0
  274. package/data/docs/types/ModalPageContent.json +27 -0
  275. package/data/docs/types/ModalPageFooter.json +27 -0
  276. package/data/docs/types/ModalPageHeader.json +27 -0
  277. package/data/docs/types/ModalPageRoot.json +87 -0
  278. package/data/docs/types/ModalPageSubtitle.json +27 -0
  279. package/data/docs/types/ModalPageTabNav.json +28 -0
  280. package/data/docs/types/ModalPageTitle.json +27 -0
  281. package/data/docs/types/ModalPageTopBar.json +57 -0
  282. package/data/docs/types/MoneyInput.isEmpty.json +40 -0
  283. package/data/docs/types/MoneyInput.json +282 -0
  284. package/data/docs/types/MoneyInputField.json +379 -0
  285. package/data/docs/types/MoneyInputFieldProps.json +9 -0
  286. package/data/docs/types/MultilineTextInput.json +1194 -0
  287. package/data/docs/types/MultilineTextInputField.json +1269 -0
  288. package/data/docs/types/MultilineTextInputFieldProps.json +9 -0
  289. package/data/docs/types/NimbusI18nProvider.json +42 -0
  290. package/data/docs/types/NimbusI18nProviderProps.json +9 -0
  291. package/data/docs/types/NimbusProvider.json +270 -0
  292. package/data/docs/types/NumberInput.json +952 -0
  293. package/data/docs/types/NumberInputField.json +1004 -0
  294. package/data/docs/types/NumberInputFieldProps.json +9 -0
  295. package/data/docs/types/PageContent.json +11 -0
  296. package/data/docs/types/PageContentColumn.json +99 -0
  297. package/data/docs/types/PageContentRoot.json +114 -0
  298. package/data/docs/types/Pagination.json +159 -0
  299. package/data/docs/types/PasswordInput.json +1120 -0
  300. package/data/docs/types/PasswordInputField.json +1216 -0
  301. package/data/docs/types/PasswordInputFieldProps.json +9 -0
  302. package/data/docs/types/ProgressBar.json +280 -0
  303. package/data/docs/types/RadioInputOption.json +550 -0
  304. package/data/docs/types/RadioInputRoot.json +514 -0
  305. package/data/docs/types/RangeCalendar.json +618 -0
  306. package/data/docs/types/RichTextInput.json +134 -0
  307. package/data/docs/types/Root.json +122 -0
  308. package/data/docs/types/Row.json +67 -0
  309. package/data/docs/types/ScopedSearchInput.isEmpty.json +40 -0
  310. package/data/docs/types/ScopedSearchInput.json +253 -0
  311. package/data/docs/types/ScrollArea.json +82 -0
  312. package/data/docs/types/SearchInput.json +1165 -0
  313. package/data/docs/types/SearchInputField.json +1240 -0
  314. package/data/docs/types/Select.json +12 -0
  315. package/data/docs/types/SelectOption.json +572 -0
  316. package/data/docs/types/SelectOptionGroup.json +215 -0
  317. package/data/docs/types/SelectOptions.json +693 -0
  318. package/data/docs/types/SelectRoot.json +926 -0
  319. package/data/docs/types/Separator.json +65 -0
  320. package/data/docs/types/SimpleGrid.json +291 -0
  321. package/data/docs/types/Spacer.json +27 -0
  322. package/data/docs/types/SpacerProps.json +9 -0
  323. package/data/docs/types/SplitButton.json +203 -0
  324. package/data/docs/types/Stack.json +144 -0
  325. package/data/docs/types/Steps.json +12 -0
  326. package/data/docs/types/StepsChangeDetails.json +9 -0
  327. package/data/docs/types/StepsCompletedContent.json +28 -0
  328. package/data/docs/types/StepsCompletedContentProps.json +9 -0
  329. package/data/docs/types/StepsContent.json +43 -0
  330. package/data/docs/types/StepsContentProps.json +9 -0
  331. package/data/docs/types/StepsDescription.json +28 -0
  332. package/data/docs/types/StepsDescriptionProps.json +9 -0
  333. package/data/docs/types/StepsIndicator.json +28 -0
  334. package/data/docs/types/StepsIndicatorProps.json +9 -0
  335. package/data/docs/types/StepsItem.json +43 -0
  336. package/data/docs/types/StepsItemProps.json +9 -0
  337. package/data/docs/types/StepsList.json +28 -0
  338. package/data/docs/types/StepsListProps.json +9 -0
  339. package/data/docs/types/StepsNextTrigger.json +62 -0
  340. package/data/docs/types/StepsNextTriggerProps.json +9 -0
  341. package/data/docs/types/StepsNumber.json +28 -0
  342. package/data/docs/types/StepsNumberProps.json +9 -0
  343. package/data/docs/types/StepsPrevTrigger.json +62 -0
  344. package/data/docs/types/StepsPrevTriggerProps.json +9 -0
  345. package/data/docs/types/StepsRoot.json +183 -0
  346. package/data/docs/types/StepsRootProps.json +11 -0
  347. package/data/docs/types/StepsSeparator.json +28 -0
  348. package/data/docs/types/StepsSeparatorProps.json +9 -0
  349. package/data/docs/types/StepsStatus.json +57 -0
  350. package/data/docs/types/StepsStatusProps.json +9 -0
  351. package/data/docs/types/StepsTitle.json +28 -0
  352. package/data/docs/types/StepsTitleProps.json +9 -0
  353. package/data/docs/types/StepsTrigger.json +47 -0
  354. package/data/docs/types/StepsTriggerProps.json +9 -0
  355. package/data/docs/types/Switch.json +371 -0
  356. package/data/docs/types/TabListProps.json +9 -0
  357. package/data/docs/types/TabNav.json +12 -0
  358. package/data/docs/types/TabNavItem.json +300 -0
  359. package/data/docs/types/TabNavItemProps.json +9 -0
  360. package/data/docs/types/TabNavProps.json +9 -0
  361. package/data/docs/types/TabNavRoot.json +80 -0
  362. package/data/docs/types/TabPanelProps.json +9 -0
  363. package/data/docs/types/TabPanelsProps.json +9 -0
  364. package/data/docs/types/TabProps.json +9 -0
  365. package/data/docs/types/Table.json +9 -0
  366. package/data/docs/types/TableBody.json +67 -0
  367. package/data/docs/types/TableBodyProps.json +9 -0
  368. package/data/docs/types/TableCaption.json +67 -0
  369. package/data/docs/types/TableCaptionProps.json +9 -0
  370. package/data/docs/types/TableCell.json +227 -0
  371. package/data/docs/types/TableCellProps.json +9 -0
  372. package/data/docs/types/TableColumn.json +101 -0
  373. package/data/docs/types/TableColumnGroup.json +101 -0
  374. package/data/docs/types/TableColumnGroupProps.json +9 -0
  375. package/data/docs/types/TableColumnHeader.json +193 -0
  376. package/data/docs/types/TableColumnHeaderProps.json +9 -0
  377. package/data/docs/types/TableColumnProps.json +9 -0
  378. package/data/docs/types/TableFooter.json +67 -0
  379. package/data/docs/types/TableFooterProps.json +9 -0
  380. package/data/docs/types/TableHeader.json +67 -0
  381. package/data/docs/types/TableHeaderProps.json +9 -0
  382. package/data/docs/types/TableRoot.json +365 -0
  383. package/data/docs/types/TableRootProps.json +12 -0
  384. package/data/docs/types/TableRow.json +67 -0
  385. package/data/docs/types/TableRowProps.json +9 -0
  386. package/data/docs/types/TableScrollArea.json +82 -0
  387. package/data/docs/types/TableScrollAreaProps.json +9 -0
  388. package/data/docs/types/Tabs.json +12 -0
  389. package/data/docs/types/TabsList.json +110 -0
  390. package/data/docs/types/TabsPanel.json +112 -0
  391. package/data/docs/types/TabsPanels.json +108 -0
  392. package/data/docs/types/TabsRoot.json +211 -0
  393. package/data/docs/types/TabsTab.json +174 -0
  394. package/data/docs/types/TagGroup.json +12 -0
  395. package/data/docs/types/TagGroupRoot.json +306 -0
  396. package/data/docs/types/TagGroupTag.json +595 -0
  397. package/data/docs/types/TagGroupTagList.json +166 -0
  398. package/data/docs/types/Text.json +119 -0
  399. package/data/docs/types/TextInput.json +1156 -0
  400. package/data/docs/types/TextInputField.json +1263 -0
  401. package/data/docs/types/TimeInput.json +752 -0
  402. package/data/docs/types/ToastAction.json +9 -0
  403. package/data/docs/types/ToastManagerApi.json +9 -0
  404. package/data/docs/types/ToastOptions.json +9 -0
  405. package/data/docs/types/ToastOutlet.json +12 -0
  406. package/data/docs/types/ToastPlacement.json +9 -0
  407. package/data/docs/types/ToastPromiseOptions.json +9 -0
  408. package/data/docs/types/ToastType.json +9 -0
  409. package/data/docs/types/ToastVariant.json +9 -0
  410. package/data/docs/types/ToggleButton.json +789 -0
  411. package/data/docs/types/ToggleButtonGroup.json +9 -0
  412. package/data/docs/types/ToggleButtonGroupButton.json +331 -0
  413. package/data/docs/types/ToggleButtonGroupRoot.json +269 -0
  414. package/data/docs/types/Toolbar.json +176 -0
  415. package/data/docs/types/Tooltip.json +12 -0
  416. package/data/docs/types/TooltipContent.json +372 -0
  417. package/data/docs/types/TooltipRoot.json +179 -0
  418. package/data/docs/types/Trigger.json +69 -0
  419. package/data/docs/types/VisuallyHidden.json +93 -0
  420. package/data/docs/types/__object.json +12 -0
  421. package/data/docs/types/filters.json +11 -0
  422. package/data/docs/types/manifest.json +278 -0
  423. package/data/docs/types/toast.json +234 -0
  424. package/data/docs/types/useColorMode.json +13 -0
  425. package/data/docs/types/useColorModeValue.json +13 -0
  426. package/data/docs/types/useColorScheme.json +12 -0
  427. package/data/docs/types/useLocalizedStringFormatter.json +14 -0
  428. package/data/icons.json +21940 -0
  429. package/data/tokens.json +40061 -0
  430. package/dist/index.js +2516 -17
  431. package/package.json +25 -6
  432. package/dist/data-loader.d.ts +0 -102
  433. package/dist/data-loader.js +0 -104
  434. package/dist/index.d.ts +0 -13
  435. package/dist/server.d.ts +0 -9
  436. package/dist/server.js +0 -22
  437. package/dist/server.spec.d.ts +0 -1
  438. package/dist/server.spec.js +0 -69
  439. package/dist/tools/list-components.d.ts +0 -9
  440. package/dist/tools/list-components.js +0 -42
  441. package/dist/types.d.ts +0 -28
  442. package/dist/types.js +0 -4
  443. package/src/data-loader.ts +0 -226
  444. package/src/index.ts +0 -29
  445. package/src/server.spec.ts +0 -86
  446. package/src/server.ts +0 -28
  447. package/src/tools/list-components.ts +0 -49
  448. package/src/types.ts +0 -31
  449. package/tsconfig.json +0 -14
  450. package/vitest.config.ts +0 -9
@@ -0,0 +1,294 @@
1
+ {
2
+ "meta": {
3
+ "id": "Home-Release-Process",
4
+ "title": "Release Process",
5
+ "description": "How Nimbus releases work and how to stay informed",
6
+ "order": 4,
7
+ "repoPath": "packages/nimbus/src/docs/release.mdx",
8
+ "menu": [
9
+ "Home",
10
+ "Getting Started",
11
+ "Release Process"
12
+ ],
13
+ "route": "home/getting-started/release-process",
14
+ "tags": [
15
+ "releases",
16
+ "versioning",
17
+ "upgrades",
18
+ "support"
19
+ ],
20
+ "toc": [
21
+ {
22
+ "value": "Release Cadence",
23
+ "href": "#release-cadence",
24
+ "depth": 2,
25
+ "numbering": [
26
+ 1,
27
+ 1
28
+ ],
29
+ "parent": "root"
30
+ },
31
+ {
32
+ "value": "How to Stay Informed",
33
+ "href": "#how-to-stay-informed",
34
+ "depth": 2,
35
+ "numbering": [
36
+ 1,
37
+ 2
38
+ ],
39
+ "parent": "root"
40
+ },
41
+ {
42
+ "value": "Communication Channels",
43
+ "href": "#communication-channels",
44
+ "depth": 3,
45
+ "numbering": [
46
+ 1,
47
+ 2,
48
+ 1
49
+ ],
50
+ "parent": "root"
51
+ },
52
+ {
53
+ "value": "Announcement Format",
54
+ "href": "#announcement-format",
55
+ "depth": 3,
56
+ "numbering": [
57
+ 1,
58
+ 2,
59
+ 2
60
+ ],
61
+ "parent": "root"
62
+ },
63
+ {
64
+ "value": "If Something Goes Wrong",
65
+ "href": "#if-something-goes-wrong",
66
+ "depth": 3,
67
+ "numbering": [
68
+ 1,
69
+ 2,
70
+ 3
71
+ ],
72
+ "parent": "root"
73
+ },
74
+ {
75
+ "value": "Getting Support",
76
+ "href": "#getting-support",
77
+ "depth": 2,
78
+ "numbering": [
79
+ 1,
80
+ 3
81
+ ],
82
+ "parent": "root"
83
+ },
84
+ {
85
+ "value": "Self-Service Resources",
86
+ "href": "#self-service-resources",
87
+ "depth": 3,
88
+ "numbering": [
89
+ 1,
90
+ 3,
91
+ 1
92
+ ],
93
+ "parent": "root"
94
+ },
95
+ {
96
+ "value": "Asking for Help",
97
+ "href": "#asking-for-help",
98
+ "depth": 3,
99
+ "numbering": [
100
+ 1,
101
+ 3,
102
+ 2
103
+ ],
104
+ "parent": "root"
105
+ },
106
+ {
107
+ "value": "What We Can Help With",
108
+ "href": "#what-we-can-help-with",
109
+ "depth": 3,
110
+ "numbering": [
111
+ 1,
112
+ 3,
113
+ 3
114
+ ],
115
+ "parent": "root"
116
+ },
117
+ {
118
+ "value": "What We Can't Help With",
119
+ "href": "#what-we-cant-help-with",
120
+ "depth": 3,
121
+ "numbering": [
122
+ 1,
123
+ 3,
124
+ 4
125
+ ],
126
+ "parent": "root"
127
+ },
128
+ {
129
+ "value": "Documentation Standards",
130
+ "href": "#documentation-standards",
131
+ "depth": 2,
132
+ "numbering": [
133
+ 1,
134
+ 4
135
+ ],
136
+ "parent": "root"
137
+ },
138
+ {
139
+ "value": "Questions?",
140
+ "href": "#questions",
141
+ "depth": 2,
142
+ "numbering": [
143
+ 1,
144
+ 5
145
+ ],
146
+ "parent": "root"
147
+ }
148
+ ],
149
+ "icon": "NewReleases",
150
+ "layout": "app-frame",
151
+ "tabs": [
152
+ {
153
+ "key": "overview",
154
+ "title": "Overview",
155
+ "order": 0
156
+ }
157
+ ]
158
+ },
159
+ "mdx": "\n# Release Process\n\nThis page explains how Nimbus releases work, what to expect from each release\ntype, and how to stay informed about changes that may affect your application.\n\n## Release Cadence\n\nNimbus follows [Semantic Versioning](https://semver.org/):\n\n| Release Type | Frequency | Contents |\n| ----------------- | ------------ | ---------------------------------- |\n| **Major (X.0.0)** | As needed | Breaking changes, major features |\n| **Minor (x.Y.0)** | As needed | New features, non-breaking changes |\n| **Patch (x.x.Z)** | As needed | Bug fixes, security patches |\n\nWe release when there's something to release. Deprecation warnings include\nspecific sunset dates so you can plan ahead.\n\n## How to Stay Informed\n\n### Communication Channels\n\n| Channel | What You'll Find |\n| ------------------------------------------------------------------------------ | ------------------------------------ |\n| [**Changelog**](https://github.com/commercetools/nimbus/releases) | Release announcements, changelog |\n| [**GitHub Issues**](https://github.com/commercetools/nimbus/issues) | Bug reports, feature requests |\n| [**GitHub Discussions**](https://github.com/commercetools/nimbus/discussions) | Questions, major release Q&A |\n| **#ask-nimbus-anything** (Slack) | General questions |\n\n### Announcement Format\n\nAll release announcements follow a consistent format:\n\n- Version number and release type\n- Summary of changes (3-5 bullet points)\n- Link to full changelog\n- Migration guide (if applicable)\n- Thread for questions\n\n### If Something Goes Wrong\n\nIf a release introduces a critical issue:\n\n1. We'll create a [GitHub issue](https://github.com/commercetools/nimbus/issues) documenting the problem\n2. We'll publish a patch that reverts the problematic changes\n3. We'll communicate in #ask-nimbus-anything linking to the issue\n\n## Getting Support\n\n### Self-Service Resources\n\nMost questions can be answered through our documentation:\n\n- **Component documentation** — Usage examples and API reference\n- **Storybook** — Interactive examples and visual testing\n- **Changelog** — Detailed list of all changes\n- **Migration guides** — Step-by-step upgrade instructions\n\n### Asking for Help\n\nIf you can't find what you need in the docs:\n\n1. **Search GitHub Issues and Discussions** — Your question may have been answered before\n2. **File an Issue or start a Discussion** — We aim to respond within 24 hours\n3. **Internal developers**: also try #ask-nimbus-anything for quick questions\n\n### What We Can Help With\n\n- Clarifying documentation or API behavior\n- Debugging issues with Nimbus components\n- Migration guidance for breaking changes\n- Feature requests and feedback\n\n### What We Can't Help With\n\n- Updating your application code for you\n- Debugging issues in your application unrelated to Nimbus\n- Guaranteeing specific timelines for feature requests (though we do consider\n urgency when planning our roadmap)\n\n## Documentation Standards\n\nWe maintain documentation alongside code changes:\n\n| Change Type | Documentation Provided |\n| ---------------- | --------------------------------------------------- |\n| New component | Full docs (examples, API reference) before release |\n| New prop/feature | Updated component docs in the same release |\n| Deprecation | Deprecation notice with timeline and migration path |\n| Breaking change | Migration guide with before/after examples |\n| Bug fix | Changelog entry |\n\n## Questions?\n\n- **Questions & discussions**: [GitHub Discussions](https://github.com/commercetools/nimbus/discussions)\n- **Bugs & feature requests**: [GitHub Issues](https://github.com/commercetools/nimbus/issues)\n- **Internal quick questions**: #ask-nimbus-anything\n",
160
+ "views": {
161
+ "overview": {
162
+ "mdx": "\n# Release Process\n\nThis page explains how Nimbus releases work, what to expect from each release\ntype, and how to stay informed about changes that may affect your application.\n\n## Release Cadence\n\nNimbus follows [Semantic Versioning](https://semver.org/):\n\n| Release Type | Frequency | Contents |\n| ----------------- | ------------ | ---------------------------------- |\n| **Major (X.0.0)** | As needed | Breaking changes, major features |\n| **Minor (x.Y.0)** | As needed | New features, non-breaking changes |\n| **Patch (x.x.Z)** | As needed | Bug fixes, security patches |\n\nWe release when there's something to release. Deprecation warnings include\nspecific sunset dates so you can plan ahead.\n\n## How to Stay Informed\n\n### Communication Channels\n\n| Channel | What You'll Find |\n| ------------------------------------------------------------------------------ | ------------------------------------ |\n| [**Changelog**](https://github.com/commercetools/nimbus/releases) | Release announcements, changelog |\n| [**GitHub Issues**](https://github.com/commercetools/nimbus/issues) | Bug reports, feature requests |\n| [**GitHub Discussions**](https://github.com/commercetools/nimbus/discussions) | Questions, major release Q&A |\n| **#ask-nimbus-anything** (Slack) | General questions |\n\n### Announcement Format\n\nAll release announcements follow a consistent format:\n\n- Version number and release type\n- Summary of changes (3-5 bullet points)\n- Link to full changelog\n- Migration guide (if applicable)\n- Thread for questions\n\n### If Something Goes Wrong\n\nIf a release introduces a critical issue:\n\n1. We'll create a [GitHub issue](https://github.com/commercetools/nimbus/issues) documenting the problem\n2. We'll publish a patch that reverts the problematic changes\n3. We'll communicate in #ask-nimbus-anything linking to the issue\n\n## Getting Support\n\n### Self-Service Resources\n\nMost questions can be answered through our documentation:\n\n- **Component documentation** — Usage examples and API reference\n- **Storybook** — Interactive examples and visual testing\n- **Changelog** — Detailed list of all changes\n- **Migration guides** — Step-by-step upgrade instructions\n\n### Asking for Help\n\nIf you can't find what you need in the docs:\n\n1. **Search GitHub Issues and Discussions** — Your question may have been answered before\n2. **File an Issue or start a Discussion** — We aim to respond within 24 hours\n3. **Internal developers**: also try #ask-nimbus-anything for quick questions\n\n### What We Can Help With\n\n- Clarifying documentation or API behavior\n- Debugging issues with Nimbus components\n- Migration guidance for breaking changes\n- Feature requests and feedback\n\n### What We Can't Help With\n\n- Updating your application code for you\n- Debugging issues in your application unrelated to Nimbus\n- Guaranteeing specific timelines for feature requests (though we do consider\n urgency when planning our roadmap)\n\n## Documentation Standards\n\nWe maintain documentation alongside code changes:\n\n| Change Type | Documentation Provided |\n| ---------------- | --------------------------------------------------- |\n| New component | Full docs (examples, API reference) before release |\n| New prop/feature | Updated component docs in the same release |\n| Deprecation | Deprecation notice with timeline and migration path |\n| Breaking change | Migration guide with before/after examples |\n| Bug fix | Changelog entry |\n\n## Questions?\n\n- **Questions & discussions**: [GitHub Discussions](https://github.com/commercetools/nimbus/discussions)\n- **Bugs & feature requests**: [GitHub Issues](https://github.com/commercetools/nimbus/issues)\n- **Internal quick questions**: #ask-nimbus-anything\n",
163
+ "toc": [
164
+ {
165
+ "value": "Release Cadence",
166
+ "href": "#release-cadence",
167
+ "depth": 2,
168
+ "numbering": [
169
+ 1,
170
+ 1
171
+ ],
172
+ "parent": "root"
173
+ },
174
+ {
175
+ "value": "How to Stay Informed",
176
+ "href": "#how-to-stay-informed",
177
+ "depth": 2,
178
+ "numbering": [
179
+ 1,
180
+ 2
181
+ ],
182
+ "parent": "root"
183
+ },
184
+ {
185
+ "value": "Communication Channels",
186
+ "href": "#communication-channels",
187
+ "depth": 3,
188
+ "numbering": [
189
+ 1,
190
+ 2,
191
+ 1
192
+ ],
193
+ "parent": "root"
194
+ },
195
+ {
196
+ "value": "Announcement Format",
197
+ "href": "#announcement-format",
198
+ "depth": 3,
199
+ "numbering": [
200
+ 1,
201
+ 2,
202
+ 2
203
+ ],
204
+ "parent": "root"
205
+ },
206
+ {
207
+ "value": "If Something Goes Wrong",
208
+ "href": "#if-something-goes-wrong",
209
+ "depth": 3,
210
+ "numbering": [
211
+ 1,
212
+ 2,
213
+ 3
214
+ ],
215
+ "parent": "root"
216
+ },
217
+ {
218
+ "value": "Getting Support",
219
+ "href": "#getting-support",
220
+ "depth": 2,
221
+ "numbering": [
222
+ 1,
223
+ 3
224
+ ],
225
+ "parent": "root"
226
+ },
227
+ {
228
+ "value": "Self-Service Resources",
229
+ "href": "#self-service-resources",
230
+ "depth": 3,
231
+ "numbering": [
232
+ 1,
233
+ 3,
234
+ 1
235
+ ],
236
+ "parent": "root"
237
+ },
238
+ {
239
+ "value": "Asking for Help",
240
+ "href": "#asking-for-help",
241
+ "depth": 3,
242
+ "numbering": [
243
+ 1,
244
+ 3,
245
+ 2
246
+ ],
247
+ "parent": "root"
248
+ },
249
+ {
250
+ "value": "What We Can Help With",
251
+ "href": "#what-we-can-help-with",
252
+ "depth": 3,
253
+ "numbering": [
254
+ 1,
255
+ 3,
256
+ 3
257
+ ],
258
+ "parent": "root"
259
+ },
260
+ {
261
+ "value": "What We Can't Help With",
262
+ "href": "#what-we-cant-help-with",
263
+ "depth": 3,
264
+ "numbering": [
265
+ 1,
266
+ 3,
267
+ 4
268
+ ],
269
+ "parent": "root"
270
+ },
271
+ {
272
+ "value": "Documentation Standards",
273
+ "href": "#documentation-standards",
274
+ "depth": 2,
275
+ "numbering": [
276
+ 1,
277
+ 4
278
+ ],
279
+ "parent": "root"
280
+ },
281
+ {
282
+ "value": "Questions?",
283
+ "href": "#questions",
284
+ "depth": 2,
285
+ "numbering": [
286
+ 1,
287
+ 5
288
+ ],
289
+ "parent": "root"
290
+ }
291
+ ]
292
+ }
293
+ }
294
+ }
@@ -0,0 +1,296 @@
1
+ {
2
+ "meta": {
3
+ "id": "Home-Testing-Setup",
4
+ "title": "Testing Setup",
5
+ "description": "Configure Jest or Vitest to test Nimbus components",
6
+ "order": 1.6,
7
+ "repoPath": "packages/nimbus/src/docs/home-testing-setup.mdx",
8
+ "menu": [
9
+ "Home",
10
+ "Getting Started",
11
+ "Testing Setup"
12
+ ],
13
+ "route": "home/getting-started/testing-setup",
14
+ "tags": [
15
+ "guide",
16
+ "testing",
17
+ "jest",
18
+ "vitest"
19
+ ],
20
+ "toc": [
21
+ {
22
+ "value": "Why JSDOM Polyfills?",
23
+ "href": "#why-jsdom-polyfills",
24
+ "depth": 2,
25
+ "numbering": [
26
+ 1,
27
+ 1
28
+ ],
29
+ "parent": "root"
30
+ },
31
+ {
32
+ "value": "Jest Setup",
33
+ "href": "#jest-setup",
34
+ "depth": 2,
35
+ "numbering": [
36
+ 1,
37
+ 2
38
+ ],
39
+ "parent": "root"
40
+ },
41
+ {
42
+ "value": "1. Add Polyfills to Setup Files",
43
+ "href": "#1-add-polyfills-to-setup-files",
44
+ "depth": 3,
45
+ "numbering": [
46
+ 1,
47
+ 2,
48
+ 1
49
+ ],
50
+ "parent": "root"
51
+ },
52
+ {
53
+ "value": "Complete Example",
54
+ "href": "#complete-example",
55
+ "depth": 3,
56
+ "numbering": [
57
+ 1,
58
+ 2,
59
+ 2
60
+ ],
61
+ "parent": "root"
62
+ },
63
+ {
64
+ "value": "2. Write Tests",
65
+ "href": "#2-write-tests",
66
+ "depth": 3,
67
+ "numbering": [
68
+ 1,
69
+ 2,
70
+ 3
71
+ ],
72
+ "parent": "root"
73
+ },
74
+ {
75
+ "value": "Vitest Setup",
76
+ "href": "#vitest-setup",
77
+ "depth": 2,
78
+ "numbering": [
79
+ 1,
80
+ 3
81
+ ],
82
+ "parent": "root"
83
+ },
84
+ {
85
+ "value": "1. Add Polyfills to Setup Files",
86
+ "href": "#1-add-polyfills-to-setup-files-1",
87
+ "depth": 3,
88
+ "numbering": [
89
+ 1,
90
+ 3,
91
+ 1
92
+ ],
93
+ "parent": "root"
94
+ },
95
+ {
96
+ "value": "Complete Example",
97
+ "href": "#complete-example-1",
98
+ "depth": 3,
99
+ "numbering": [
100
+ 1,
101
+ 3,
102
+ 2
103
+ ],
104
+ "parent": "root"
105
+ },
106
+ {
107
+ "value": "2. Write Tests",
108
+ "href": "#2-write-tests-1",
109
+ "depth": 3,
110
+ "numbering": [
111
+ 1,
112
+ 3,
113
+ 3
114
+ ],
115
+ "parent": "root"
116
+ },
117
+ {
118
+ "value": "Testing Best Practices",
119
+ "href": "#testing-best-practices",
120
+ "depth": 2,
121
+ "numbering": [
122
+ 1,
123
+ 4
124
+ ],
125
+ "parent": "root"
126
+ },
127
+ {
128
+ "value": "Always Use NimbusProvider",
129
+ "href": "#always-use-nimbusprovider",
130
+ "depth": 3,
131
+ "numbering": [
132
+ 1,
133
+ 4,
134
+ 1
135
+ ],
136
+ "parent": "root"
137
+ },
138
+ {
139
+ "value": "Create a Test Utility",
140
+ "href": "#create-a-test-utility",
141
+ "depth": 3,
142
+ "numbering": [
143
+ 1,
144
+ 4,
145
+ 2
146
+ ],
147
+ "parent": "root"
148
+ }
149
+ ],
150
+ "icon": "Science",
151
+ "layout": "app-frame",
152
+ "tabs": [
153
+ {
154
+ "key": "overview",
155
+ "title": "Overview",
156
+ "order": 0
157
+ }
158
+ ]
159
+ },
160
+ "mdx": "\n# Testing Setup\n\nNimbus components require specific polyfills to work in JSDOM test environments (Jest, Vitest). This guide shows you how to configure your test runner to work with Nimbus.\n\n## Why JSDOM Polyfills?\n\nJSDOM is a headless browser environment used by Jest and Vitest. It doesn't include all browser APIs that Chakra UI and React Aria (which Nimbus is built on) depend on. Nimbus provides polyfills for these missing APIs.\n\nThe polyfills include:\n- `structuredClone` - Required by Chakra UI for theme configuration\n- `window.matchMedia` - Required for responsive design and color mode\n- `ResizeObserver` - Required for responsive components\n- `IntersectionObserver` - Required for lazy loading and viewport tracking\n- `Element.prototype.scrollTo/scrollIntoView` - Required for focus management\n- `requestAnimationFrame` - Required for animations and transitions\n\n## Jest Setup\n\n### 1. Add Polyfills to Setup Files\n\nAdd Nimbus polyfills to your Jest configuration's `setupFiles` array:\n\n```javascript\n// jest.config.js\nmodule.exports = {\n setupFiles: [\n '@commercetools/nimbus/setup-jsdom-polyfills'\n ]\n};\n```\n\n### Complete Example\n\n```javascript\n// jest.config.js\nmodule.exports = {\n testEnvironment: 'jsdom',\n setupFiles: [\n // Add Nimbus polyfills BEFORE other setup files\n '@commercetools/nimbus/setup-jsdom-polyfills'\n ],\n setupFilesAfterEnv: [\n '@testing-library/jest-dom',\n ],\n moduleNameMapper: {\n '\\\\.(css|less|scss|sass)$': 'identity-obj-proxy',\n },\n};\n```\n\n### 2. Write Tests\n\nWith the polyfills configured, you can test Nimbus components:\n\n```typescript\n// button.test.tsx\nimport { render, screen } from '@testing-library/react';\nimport { NimbusProvider } from '@commercetools/nimbus';\nimport { Button } from '@commercetools/nimbus';\n\ndescribe('Button', () => {\n it('renders button text', () => {\n render(\n <NimbusProvider>\n <Button>Click me</Button>\n </NimbusProvider>\n );\n\n expect(screen.getByRole('button', { name: 'Click me' })).toBeInTheDocument();\n });\n});\n```\n\n> [!IMPORTANT] \n> Always wrap your components in `<NimbusProvider>` when testing, just like in your application.\n\n## Vitest Setup\n\n### 1. Add Polyfills to Setup Files\n\nAdd Nimbus polyfills to your Vitest configuration:\n\n```typescript\n// vitest.config.ts\nimport { defineConfig } from 'vitest/config';\n\nexport default defineConfig({\n test: {\n environment: 'jsdom',\n setupFiles: [\n '@commercetools/nimbus/setup-jsdom-polyfills'\n ],\n },\n});\n```\n\n### Complete Example\n\n```typescript\n// vitest.config.ts\nimport { defineConfig } from 'vitest/config';\nimport react from '@vitejs/plugin-react';\n\nexport default defineConfig({\n plugins: [react()],\n test: {\n environment: 'jsdom',\n setupFiles: [\n // Add Nimbus polyfills\n '@commercetools/nimbus/setup-jsdom-polyfills',\n // Add other setup files\n './test/setup.ts',\n ],\n globals: true,\n },\n});\n```\n\n### 2. Write Tests\n\n```typescript\n// button.test.tsx\nimport { render, screen } from '@testing-library/react';\nimport { describe, it, expect } from 'vitest';\nimport { NimbusProvider } from '@commercetools/nimbus';\nimport { Button } from '@commercetools/nimbus';\n\ndescribe('Button', () => {\n it('renders button text', () => {\n render(\n <NimbusProvider>\n <Button>Click me</Button>\n </NimbusProvider>\n );\n\n expect(screen.getByRole('button', { name: 'Click me' })).toBeInTheDocument();\n });\n});\n```\n\n## Testing Best Practices\n\n### Always Use NimbusProvider\n\nWrap your test components in `NimbusProvider`:\n\n```typescript\n// ✅ Correct\nrender(\n <NimbusProvider>\n <YourComponent />\n </NimbusProvider>\n);\n\n// ❌ Incorrect - will cause errors\nrender(<YourComponent />);\n```\n\n### Create a Test Utility\n\nFor convenience, create a custom render function:\n\n```typescript\n// test-utils.tsx\nimport { render, RenderOptions } from '@testing-library/react';\nimport { NimbusProvider } from '@commercetools/nimbus';\nimport { ReactElement } from 'react';\n\nexport function renderWithNimbus(\n ui: ReactElement,\n options?: RenderOptions\n) {\n return render(ui, {\n wrapper: ({ children }) => <NimbusProvider>{children}</NimbusProvider>,\n ...options,\n });\n}\n\n// Usage in tests\nimport { renderWithNimbus } from './test-utils';\n\nrenderWithNimbus(<Button>Click me</Button>);\n```\n",
161
+ "views": {
162
+ "overview": {
163
+ "mdx": "\n# Testing Setup\n\nNimbus components require specific polyfills to work in JSDOM test environments (Jest, Vitest). This guide shows you how to configure your test runner to work with Nimbus.\n\n## Why JSDOM Polyfills?\n\nJSDOM is a headless browser environment used by Jest and Vitest. It doesn't include all browser APIs that Chakra UI and React Aria (which Nimbus is built on) depend on. Nimbus provides polyfills for these missing APIs.\n\nThe polyfills include:\n- `structuredClone` - Required by Chakra UI for theme configuration\n- `window.matchMedia` - Required for responsive design and color mode\n- `ResizeObserver` - Required for responsive components\n- `IntersectionObserver` - Required for lazy loading and viewport tracking\n- `Element.prototype.scrollTo/scrollIntoView` - Required for focus management\n- `requestAnimationFrame` - Required for animations and transitions\n\n## Jest Setup\n\n### 1. Add Polyfills to Setup Files\n\nAdd Nimbus polyfills to your Jest configuration's `setupFiles` array:\n\n```javascript\n// jest.config.js\nmodule.exports = {\n setupFiles: [\n '@commercetools/nimbus/setup-jsdom-polyfills'\n ]\n};\n```\n\n### Complete Example\n\n```javascript\n// jest.config.js\nmodule.exports = {\n testEnvironment: 'jsdom',\n setupFiles: [\n // Add Nimbus polyfills BEFORE other setup files\n '@commercetools/nimbus/setup-jsdom-polyfills'\n ],\n setupFilesAfterEnv: [\n '@testing-library/jest-dom',\n ],\n moduleNameMapper: {\n '\\\\.(css|less|scss|sass)$': 'identity-obj-proxy',\n },\n};\n```\n\n### 2. Write Tests\n\nWith the polyfills configured, you can test Nimbus components:\n\n```typescript\n// button.test.tsx\nimport { render, screen } from '@testing-library/react';\nimport { NimbusProvider } from '@commercetools/nimbus';\nimport { Button } from '@commercetools/nimbus';\n\ndescribe('Button', () => {\n it('renders button text', () => {\n render(\n <NimbusProvider>\n <Button>Click me</Button>\n </NimbusProvider>\n );\n\n expect(screen.getByRole('button', { name: 'Click me' })).toBeInTheDocument();\n });\n});\n```\n\n> [!IMPORTANT] \n> Always wrap your components in `<NimbusProvider>` when testing, just like in your application.\n\n## Vitest Setup\n\n### 1. Add Polyfills to Setup Files\n\nAdd Nimbus polyfills to your Vitest configuration:\n\n```typescript\n// vitest.config.ts\nimport { defineConfig } from 'vitest/config';\n\nexport default defineConfig({\n test: {\n environment: 'jsdom',\n setupFiles: [\n '@commercetools/nimbus/setup-jsdom-polyfills'\n ],\n },\n});\n```\n\n### Complete Example\n\n```typescript\n// vitest.config.ts\nimport { defineConfig } from 'vitest/config';\nimport react from '@vitejs/plugin-react';\n\nexport default defineConfig({\n plugins: [react()],\n test: {\n environment: 'jsdom',\n setupFiles: [\n // Add Nimbus polyfills\n '@commercetools/nimbus/setup-jsdom-polyfills',\n // Add other setup files\n './test/setup.ts',\n ],\n globals: true,\n },\n});\n```\n\n### 2. Write Tests\n\n```typescript\n// button.test.tsx\nimport { render, screen } from '@testing-library/react';\nimport { describe, it, expect } from 'vitest';\nimport { NimbusProvider } from '@commercetools/nimbus';\nimport { Button } from '@commercetools/nimbus';\n\ndescribe('Button', () => {\n it('renders button text', () => {\n render(\n <NimbusProvider>\n <Button>Click me</Button>\n </NimbusProvider>\n );\n\n expect(screen.getByRole('button', { name: 'Click me' })).toBeInTheDocument();\n });\n});\n```\n\n## Testing Best Practices\n\n### Always Use NimbusProvider\n\nWrap your test components in `NimbusProvider`:\n\n```typescript\n// ✅ Correct\nrender(\n <NimbusProvider>\n <YourComponent />\n </NimbusProvider>\n);\n\n// ❌ Incorrect - will cause errors\nrender(<YourComponent />);\n```\n\n### Create a Test Utility\n\nFor convenience, create a custom render function:\n\n```typescript\n// test-utils.tsx\nimport { render, RenderOptions } from '@testing-library/react';\nimport { NimbusProvider } from '@commercetools/nimbus';\nimport { ReactElement } from 'react';\n\nexport function renderWithNimbus(\n ui: ReactElement,\n options?: RenderOptions\n) {\n return render(ui, {\n wrapper: ({ children }) => <NimbusProvider>{children}</NimbusProvider>,\n ...options,\n });\n}\n\n// Usage in tests\nimport { renderWithNimbus } from './test-utils';\n\nrenderWithNimbus(<Button>Click me</Button>);\n```\n",
164
+ "toc": [
165
+ {
166
+ "value": "Why JSDOM Polyfills?",
167
+ "href": "#why-jsdom-polyfills",
168
+ "depth": 2,
169
+ "numbering": [
170
+ 1,
171
+ 1
172
+ ],
173
+ "parent": "root"
174
+ },
175
+ {
176
+ "value": "Jest Setup",
177
+ "href": "#jest-setup",
178
+ "depth": 2,
179
+ "numbering": [
180
+ 1,
181
+ 2
182
+ ],
183
+ "parent": "root"
184
+ },
185
+ {
186
+ "value": "1. Add Polyfills to Setup Files",
187
+ "href": "#1-add-polyfills-to-setup-files",
188
+ "depth": 3,
189
+ "numbering": [
190
+ 1,
191
+ 2,
192
+ 1
193
+ ],
194
+ "parent": "root"
195
+ },
196
+ {
197
+ "value": "Complete Example",
198
+ "href": "#complete-example",
199
+ "depth": 3,
200
+ "numbering": [
201
+ 1,
202
+ 2,
203
+ 2
204
+ ],
205
+ "parent": "root"
206
+ },
207
+ {
208
+ "value": "2. Write Tests",
209
+ "href": "#2-write-tests",
210
+ "depth": 3,
211
+ "numbering": [
212
+ 1,
213
+ 2,
214
+ 3
215
+ ],
216
+ "parent": "root"
217
+ },
218
+ {
219
+ "value": "Vitest Setup",
220
+ "href": "#vitest-setup",
221
+ "depth": 2,
222
+ "numbering": [
223
+ 1,
224
+ 3
225
+ ],
226
+ "parent": "root"
227
+ },
228
+ {
229
+ "value": "1. Add Polyfills to Setup Files",
230
+ "href": "#1-add-polyfills-to-setup-files-1",
231
+ "depth": 3,
232
+ "numbering": [
233
+ 1,
234
+ 3,
235
+ 1
236
+ ],
237
+ "parent": "root"
238
+ },
239
+ {
240
+ "value": "Complete Example",
241
+ "href": "#complete-example-1",
242
+ "depth": 3,
243
+ "numbering": [
244
+ 1,
245
+ 3,
246
+ 2
247
+ ],
248
+ "parent": "root"
249
+ },
250
+ {
251
+ "value": "2. Write Tests",
252
+ "href": "#2-write-tests-1",
253
+ "depth": 3,
254
+ "numbering": [
255
+ 1,
256
+ 3,
257
+ 3
258
+ ],
259
+ "parent": "root"
260
+ },
261
+ {
262
+ "value": "Testing Best Practices",
263
+ "href": "#testing-best-practices",
264
+ "depth": 2,
265
+ "numbering": [
266
+ 1,
267
+ 4
268
+ ],
269
+ "parent": "root"
270
+ },
271
+ {
272
+ "value": "Always Use NimbusProvider",
273
+ "href": "#always-use-nimbusprovider",
274
+ "depth": 3,
275
+ "numbering": [
276
+ 1,
277
+ 4,
278
+ 1
279
+ ],
280
+ "parent": "root"
281
+ },
282
+ {
283
+ "value": "Create a Test Utility",
284
+ "href": "#create-a-test-utility",
285
+ "depth": 3,
286
+ "numbering": [
287
+ 1,
288
+ 4,
289
+ 2
290
+ ],
291
+ "parent": "root"
292
+ }
293
+ ]
294
+ }
295
+ }
296
+ }