@nikkory/vibe-engine 4.0.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 (333) hide show
  1. package/PUBLISH-GUIDE.md +250 -0
  2. package/README.md +1267 -0
  3. package/bin/vibe.js +22 -0
  4. package/dist/adapters/index.d.ts +19 -0
  5. package/dist/browser.d.ts +25 -0
  6. package/dist/browser.js +15083 -0
  7. package/dist/browser.mjs +15000 -0
  8. package/dist/cli/batch-command.d.ts +142 -0
  9. package/dist/cli/generate-command.d.ts +119 -0
  10. package/dist/cli/index.d.ts +34 -0
  11. package/dist/constants/ComponentTypes.d.ts +65 -0
  12. package/dist/constants/DesignSystems.d.ts +64 -0
  13. package/dist/constants/Frameworks.d.ts +71 -0
  14. package/dist/constants/Tiers.d.ts +72 -0
  15. package/dist/constants/index.d.ts +10 -0
  16. package/dist/converters/index.d.ts +12 -0
  17. package/dist/converters/section-converter.d.ts +176 -0
  18. package/dist/index.d.ts +58 -0
  19. package/dist/index.js +19819 -0
  20. package/dist/index.mjs +19496 -0
  21. package/dist/resolution/basic/groups-basic.d.ts +80 -0
  22. package/dist/resolution/basic/index.d.ts +21 -0
  23. package/dist/resolution/basic/intents-basic.d.ts +195 -0
  24. package/dist/resolution/basic/presets-basic.d.ts +96 -0
  25. package/dist/resolution/basic/resolver-basic.d.ts +127 -0
  26. package/dist/resolution/basic/shorthands-basic.d.ts +88 -0
  27. package/dist/resolution/core/groups-core.d.ts +160 -0
  28. package/dist/resolution/core/index.d.ts +21 -0
  29. package/dist/resolution/core/intents-core.d.ts +355 -0
  30. package/dist/resolution/core/presets-core.d.ts +160 -0
  31. package/dist/resolution/core/resolver-core.d.ts +207 -0
  32. package/dist/resolution/core/shorthands-core.d.ts +144 -0
  33. package/dist/resolution/core/types-core.d.ts +167 -0
  34. package/dist/resolution/debugger.d.ts +183 -0
  35. package/dist/resolution/demo.d.ts +57 -0
  36. package/dist/resolution/enterprise/index.d.ts +22 -0
  37. package/dist/resolution/enterprise/metrics.d.ts +152 -0
  38. package/dist/resolution/enterprise/resolver-enterprise.d.ts +108 -0
  39. package/dist/resolution/examples.d.ts +486 -0
  40. package/dist/resolution/groups/experience-group.d.ts +197 -0
  41. package/dist/resolution/groups/index.d.ts +196 -0
  42. package/dist/resolution/groups/layout-group.d.ts +192 -0
  43. package/dist/resolution/groups/motion-group.d.ts +127 -0
  44. package/dist/resolution/groups/visual-group.d.ts +146 -0
  45. package/dist/resolution/index.d.ts +41 -0
  46. package/dist/resolution/intents/button-intents.d.ts +231 -0
  47. package/dist/resolution/intents/card-intents.d.ts +177 -0
  48. package/dist/resolution/intents/feedback-intents.d.ts +222 -0
  49. package/dist/resolution/intents/index.d.ts +189 -0
  50. package/dist/resolution/intents/input-intents.d.ts +231 -0
  51. package/dist/resolution/intents/mood-modifiers.d.ts +154 -0
  52. package/dist/resolution/performance.d.ts +264 -0
  53. package/dist/resolution/presets/button-presets.d.ts +243 -0
  54. package/dist/resolution/presets/card-presets.d.ts +216 -0
  55. package/dist/resolution/presets/data-display-presets.d.ts +290 -0
  56. package/dist/resolution/presets/feedback-presets.d.ts +335 -0
  57. package/dist/resolution/presets/form-presets.d.ts +308 -0
  58. package/dist/resolution/presets/index.d.ts +22 -0
  59. package/dist/resolution/presets/input-presets.d.ts +207 -0
  60. package/dist/resolution/presets/nav-presets.d.ts +235 -0
  61. package/dist/resolution/presets/overlay-presets.d.ts +216 -0
  62. package/dist/resolution/presets/preset-registry.d.ts +212 -0
  63. package/dist/resolution/resolveProps.d.ts +235 -0
  64. package/dist/resolution/shorthand/feel-mappings.d.ts +140 -0
  65. package/dist/resolution/shorthand/index.d.ts +172 -0
  66. package/dist/resolution/shorthand/look-mappings.d.ts +107 -0
  67. package/dist/resolution/shorthand/spacing-mappings.d.ts +164 -0
  68. package/dist/resolution/shorthand/surface-mappings.d.ts +139 -0
  69. package/dist/resolution/standard/groups-standard.d.ts +98 -0
  70. package/dist/resolution/standard/index.d.ts +28 -0
  71. package/dist/resolution/standard/intents-standard.d.ts +232 -0
  72. package/dist/resolution/standard/presets-standard.d.ts +123 -0
  73. package/dist/resolution/standard/resolver-standard.d.ts +204 -0
  74. package/dist/resolution/standard/shorthands-standard.d.ts +98 -0
  75. package/dist/resolution/standard/validators.d.ts +141 -0
  76. package/dist/resolution/types.d.ts +461 -0
  77. package/dist/resolution/validators/factor24-validator.d.ts +418 -0
  78. package/dist/resolution/validators/index.d.ts +14 -0
  79. package/dist/scripts/generate-react-library.d.ts +15 -0
  80. package/dist/scripts/write-react-library.d.ts +18 -0
  81. package/dist/storage/cloud-sync.d.ts +182 -0
  82. package/dist/storage/index.d.ts +69 -0
  83. package/dist/storage/local-storage.d.ts +131 -0
  84. package/dist/storage/section-storage.d.ts +191 -0
  85. package/dist/styling/StyleGenerator.d.ts +76 -0
  86. package/dist/styling/TokenStyleResolver.d.ts +163 -0
  87. package/dist/styling/factor-migration.d.ts +192 -0
  88. package/dist/styling/factor-validators.d.ts +327 -0
  89. package/dist/styling/factors-1-6.d.ts +674 -0
  90. package/dist/styling/factors-12-16.d.ts +700 -0
  91. package/dist/styling/factors-17-24.d.ts +668 -0
  92. package/dist/styling/factors-all.d.ts +348 -0
  93. package/dist/styling/factors.d.ts +291 -0
  94. package/dist/styling/index.d.ts +31 -0
  95. package/dist/styling/types.d.ts +400 -0
  96. package/dist/tokens/schema.d.ts +486 -0
  97. package/dist/types/Option.d.ts +178 -0
  98. package/dist/types/Result.d.ts +148 -0
  99. package/dist/types/algorithm-engine.types.d.ts +298 -0
  100. package/dist/types/granularity/base.types.d.ts +268 -0
  101. package/dist/types/granularity/config.types.d.ts +177 -0
  102. package/dist/types/granularity/factors.types.d.ts +194 -0
  103. package/dist/types/granularity/index.d.ts +57 -0
  104. package/dist/types/granularity/slot.types.d.ts +128 -0
  105. package/dist/types/granularity/template.types.d.ts +179 -0
  106. package/dist/types/granularity-levels/atom.config.d.ts +151 -0
  107. package/dist/types/granularity-levels/component.config.d.ts +175 -0
  108. package/dist/types/granularity-levels/index.d.ts +47 -0
  109. package/dist/types/granularity-levels/layout.config.d.ts +278 -0
  110. package/dist/types/granularity-levels/page.config.d.ts +210 -0
  111. package/dist/types/granularity-levels/section.config.d.ts +188 -0
  112. package/dist/types/granularity-levels/template.config.d.ts +340 -0
  113. package/dist/types/index.d.ts +152 -0
  114. package/dist/types/section-slot.types.d.ts +169 -0
  115. package/dist/types/section-storage.types.d.ts +298 -0
  116. package/dist/types/section-template.types.d.ts +170 -0
  117. package/dist/types/section.types.d.ts +326 -0
  118. package/dist/ui-studio/ComponentGenerator.d.ts +219 -0
  119. package/dist/ui-studio/composition/FactorPropagator.d.ts +268 -0
  120. package/dist/ui-studio/composition/PageGenerator.d.ts +176 -0
  121. package/dist/ui-studio/composition/SectionGenerator.d.ts +312 -0
  122. package/dist/ui-studio/composition/SlotResolver.d.ts +295 -0
  123. package/dist/ui-studio/composition/section-orchestrator.d.ts +306 -0
  124. package/dist/ui-studio/granularity/FactorCascade.d.ts +328 -0
  125. package/dist/ui-studio/granularity/GranularityGenerator.d.ts +266 -0
  126. package/dist/ui-studio/granularity/RecursiveGenerator.d.ts +328 -0
  127. package/dist/ui-studio/index.d.ts +94 -0
  128. package/dist/ui-studio/matrix/ClassMapper.d.ts +128 -0
  129. package/dist/ui-studio/matrix/MatrixResolver.d.ts +203 -0
  130. package/dist/ui-studio/matrix/types.d.ts +96 -0
  131. package/dist/ui-studio/presets/IndustryDetector.d.ts +183 -0
  132. package/dist/ui-studio/presets/component-registry.d.ts +213 -0
  133. package/dist/ui-studio/presets/factor-registry.d.ts +364 -0
  134. package/dist/ui-studio/presets/granularity-registry.d.ts +252 -0
  135. package/dist/ui-studio/presets/index.d.ts +32 -0
  136. package/dist/ui-studio/presets/industries.d.ts +143 -0
  137. package/dist/ui-studio/presets/layout-registry.d.ts +21 -0
  138. package/dist/ui-studio/presets/matrix-groups.d.ts +195 -0
  139. package/dist/ui-studio/presets/page-registry.d.ts +24 -0
  140. package/dist/ui-studio/presets/registry.constants.d.ts +69 -0
  141. package/dist/ui-studio/presets/registry.types.d.ts +166 -0
  142. package/dist/ui-studio/presets/section-defaults.d.ts +175 -0
  143. package/dist/ui-studio/presets/section-registry.d.ts +83 -0
  144. package/dist/ui-studio/presets/section-registry.defaults.d.ts +106 -0
  145. package/dist/ui-studio/presets/section-registry.helpers.d.ts +112 -0
  146. package/dist/ui-studio/presets/section-registry.types.d.ts +181 -0
  147. package/dist/ui-studio/presets/template-registry.d.ts +23 -0
  148. package/dist/ui-studio/presets/variants.d.ts +1038 -0
  149. package/dist/ui-studio/registries/components-registry.d.ts +193 -0
  150. package/dist/ui-studio/registries/design-systems-registry.d.ts +153 -0
  151. package/dist/ui-studio/registries/factors-registry.d.ts +145 -0
  152. package/dist/ui-studio/registries/tiers-registry.d.ts +150 -0
  153. package/dist/ui-studio/resolution/FactorResolver.d.ts +201 -0
  154. package/dist/ui-studio/templates/TestGenerator.d.ts +55 -0
  155. package/dist/ui-studio/templates/TierGenerator.d.ts +153 -0
  156. package/dist/ui-studio/templates/TypesGenerator.d.ts +51 -0
  157. package/dist/ui-studio/types/granularity/base.types.d.ts +268 -0
  158. package/dist/ui-studio/types/granularity/config.types.d.ts +177 -0
  159. package/dist/ui-studio/types/granularity/factors.types.d.ts +194 -0
  160. package/dist/ui-studio/types/granularity/index.d.ts +57 -0
  161. package/dist/ui-studio/types/granularity/slot.types.d.ts +128 -0
  162. package/dist/ui-studio/types/granularity/template.types.d.ts +179 -0
  163. package/dist/ui-studio/types/granularity-levels/atom.config.d.ts +151 -0
  164. package/dist/ui-studio/types/granularity-levels/component.config.d.ts +175 -0
  165. package/dist/ui-studio/types/granularity-levels/index.d.ts +47 -0
  166. package/dist/ui-studio/types/granularity-levels/layout.config.d.ts +278 -0
  167. package/dist/ui-studio/types/granularity-levels/page.config.d.ts +210 -0
  168. package/dist/ui-studio/types/granularity-levels/section.config.d.ts +188 -0
  169. package/dist/ui-studio/types/granularity-levels/template.config.d.ts +340 -0
  170. package/dist/ui-studio/types.d.ts +323 -0
  171. package/dist/utils/CodeUtils.d.ts +103 -0
  172. package/dist/utils/GenerateComponentValidator.d.ts +35 -0
  173. package/dist/utils/Logger.d.ts +101 -0
  174. package/dist/utils/StringUtils.d.ts +120 -0
  175. package/dist/utils/ValidationUtils.d.ts +71 -0
  176. package/dist/utils/errors/BaseError.d.ts +23 -0
  177. package/dist/utils/errors/GenerationError.d.ts +14 -0
  178. package/dist/utils/errors/TemplateNotFoundError.d.ts +13 -0
  179. package/dist/utils/errors/ValidationError.d.ts +13 -0
  180. package/dist/utils/errors/index.d.ts +12 -0
  181. package/dist/utils/factor-resolver.d.ts +294 -0
  182. package/dist/utils/granularity-helpers.d.ts +359 -0
  183. package/dist/utils/index.d.ts +20 -0
  184. package/dist/utils/performance.d.ts +26 -0
  185. package/dist/utils/stringify.d.ts +28 -0
  186. package/dist/validators/component-validator.d.ts +86 -0
  187. package/dist/validators/design-system-validator.d.ts +95 -0
  188. package/dist/validators/factor-validator.d.ts +101 -0
  189. package/dist/validators/index.d.ts +263 -0
  190. package/dist/validators/section-validator.d.ts +120 -0
  191. package/dist/validators/slot-validator.d.ts +161 -0
  192. package/dist/validators/tier-validator.d.ts +102 -0
  193. package/package.json +67 -0
  194. package/tests/16-factor-integration.test.d.ts +14 -0
  195. package/tests/16-factor-visual.test.d.ts +14 -0
  196. package/tests/5-level-integration.test.d.ts +14 -0
  197. package/tests/CodeUtils.test.d.ts +7 -0
  198. package/tests/DesignSystems.test.d.ts +7 -0
  199. package/tests/GenerateComponentValidator.test.d.ts +7 -0
  200. package/tests/Logger.test.d.ts +7 -0
  201. package/tests/StringUtils.test.d.ts +7 -0
  202. package/tests/StyleGenerator.test.d.ts +13 -0
  203. package/tests/Tiers.test.d.ts +7 -0
  204. package/tests/TokenRegistry.test.d.ts +14 -0
  205. package/tests/TokenStyleResolver.test.d.ts +13 -0
  206. package/tests/ValidationUtils.test.d.ts +7 -0
  207. package/tests/_pending_fix/Accordion.test.d.ts +13 -0
  208. package/tests/_pending_fix/Alert.test.d.ts +13 -0
  209. package/tests/_pending_fix/AlertDialog.test.d.ts +13 -0
  210. package/tests/_pending_fix/AspectRatio.test.d.ts +13 -0
  211. package/tests/_pending_fix/Autocomplete.test.d.ts +13 -0
  212. package/tests/_pending_fix/Avatar.test.d.ts +13 -0
  213. package/tests/_pending_fix/Badge.test.d.ts +13 -0
  214. package/tests/_pending_fix/Banner.test.d.ts +13 -0
  215. package/tests/_pending_fix/Box.test.d.ts +13 -0
  216. package/tests/_pending_fix/Breadcrumb.test.d.ts +13 -0
  217. package/tests/_pending_fix/Callout.test.d.ts +13 -0
  218. package/tests/_pending_fix/Card.test.d.ts +13 -0
  219. package/tests/_pending_fix/Center.test.d.ts +13 -0
  220. package/tests/_pending_fix/Checkbox.test.d.ts +13 -0
  221. package/tests/_pending_fix/Chip.test.d.ts +13 -0
  222. package/tests/_pending_fix/ColorPicker.test.d.ts +13 -0
  223. package/tests/_pending_fix/Combobox.test.d.ts +13 -0
  224. package/tests/_pending_fix/CommandPalette.test.d.ts +13 -0
  225. package/tests/_pending_fix/ConfirmationModal.test.d.ts +13 -0
  226. package/tests/_pending_fix/Container.test.d.ts +13 -0
  227. package/tests/_pending_fix/DataTable.test.d.ts +13 -0
  228. package/tests/_pending_fix/DatePicker.test.d.ts +13 -0
  229. package/tests/_pending_fix/DateRangePicker.test.d.ts +13 -0
  230. package/tests/_pending_fix/DateTimePicker.test.d.ts +13 -0
  231. package/tests/_pending_fix/Divider.test.d.ts +13 -0
  232. package/tests/_pending_fix/Drawer.test.d.ts +13 -0
  233. package/tests/_pending_fix/Dropdown.test.d.ts +13 -0
  234. package/tests/_pending_fix/EmptyState.test.d.ts +13 -0
  235. package/tests/_pending_fix/ErrorState.test.d.ts +13 -0
  236. package/tests/_pending_fix/FileDropzone.test.d.ts +13 -0
  237. package/tests/_pending_fix/FileUpload.test.d.ts +13 -0
  238. package/tests/_pending_fix/Flex.test.d.ts +13 -0
  239. package/tests/_pending_fix/Grid.test.d.ts +13 -0
  240. package/tests/_pending_fix/GridItem.test.d.ts +13 -0
  241. package/tests/_pending_fix/HStack.test.d.ts +13 -0
  242. package/tests/_pending_fix/Input.test.d.ts +13 -0
  243. package/tests/_pending_fix/InputCurrency.test.d.ts +13 -0
  244. package/tests/_pending_fix/InputGroup.test.d.ts +13 -0
  245. package/tests/_pending_fix/InputOTP.test.d.ts +13 -0
  246. package/tests/_pending_fix/InputPassword.test.d.ts +13 -0
  247. package/tests/_pending_fix/InputPhone.test.d.ts +13 -0
  248. package/tests/_pending_fix/InputSearch.test.d.ts +13 -0
  249. package/tests/_pending_fix/Link.test.d.ts +13 -0
  250. package/tests/_pending_fix/List.test.d.ts +13 -0
  251. package/tests/_pending_fix/LoadingOverlay.test.d.ts +13 -0
  252. package/tests/_pending_fix/Menu.test.d.ts +13 -0
  253. package/tests/_pending_fix/Modal.test.d.ts +13 -0
  254. package/tests/_pending_fix/MultiSelect.test.d.ts +13 -0
  255. package/tests/_pending_fix/NavGroup.test.d.ts +13 -0
  256. package/tests/_pending_fix/NavItem.test.d.ts +13 -0
  257. package/tests/_pending_fix/NavLink.test.d.ts +13 -0
  258. package/tests/_pending_fix/Navbar.test.d.ts +13 -0
  259. package/tests/_pending_fix/Notification.test.d.ts +13 -0
  260. package/tests/_pending_fix/NotificationBadge.test.d.ts +13 -0
  261. package/tests/_pending_fix/NumberInput.test.d.ts +13 -0
  262. package/tests/_pending_fix/Pagination.test.d.ts +13 -0
  263. package/tests/_pending_fix/Popover.test.d.ts +13 -0
  264. package/tests/_pending_fix/Progress.test.d.ts +13 -0
  265. package/tests/_pending_fix/ProgressCircle.test.d.ts +13 -0
  266. package/tests/_pending_fix/ProgressSteps.test.d.ts +13 -0
  267. package/tests/_pending_fix/Radio.test.d.ts +13 -0
  268. package/tests/_pending_fix/RangeSlider.test.d.ts +13 -0
  269. package/tests/_pending_fix/ResizablePanel.test.d.ts +13 -0
  270. package/tests/_pending_fix/ResultState.test.d.ts +13 -0
  271. package/tests/_pending_fix/ScrollArea.test.d.ts +13 -0
  272. package/tests/_pending_fix/Select.test.d.ts +14 -0
  273. package/tests/_pending_fix/Sheet.test.d.ts +13 -0
  274. package/tests/_pending_fix/Sidebar.test.d.ts +13 -0
  275. package/tests/_pending_fix/SimpleGrid.test.d.ts +13 -0
  276. package/tests/_pending_fix/Skeleton.test.d.ts +13 -0
  277. package/tests/_pending_fix/Slider.test.d.ts +13 -0
  278. package/tests/_pending_fix/Spacer.test.d.ts +13 -0
  279. package/tests/_pending_fix/Spinner.test.d.ts +13 -0
  280. package/tests/_pending_fix/Stack.test.d.ts +13 -0
  281. package/tests/_pending_fix/Stat.test.d.ts +13 -0
  282. package/tests/_pending_fix/Stepper.test.d.ts +14 -0
  283. package/tests/_pending_fix/Switch.test.d.ts +13 -0
  284. package/tests/_pending_fix/Table.test.d.ts +13 -0
  285. package/tests/_pending_fix/Tabs.test.d.ts +13 -0
  286. package/tests/_pending_fix/Textarea.test.d.ts +13 -0
  287. package/tests/_pending_fix/Timeline.test.d.ts +13 -0
  288. package/tests/_pending_fix/Toast.test.d.ts +14 -0
  289. package/tests/_pending_fix/Tooltip.test.d.ts +14 -0
  290. package/tests/_pending_fix/VStack.test.d.ts +13 -0
  291. package/tests/alert.test.d.ts +13 -0
  292. package/tests/badge.test.d.ts +13 -0
  293. package/tests/benchmarks/factor-resolution.bench.d.ts +41 -0
  294. package/tests/button.test.d.ts +16 -0
  295. package/tests/card.test.d.ts +19 -0
  296. package/tests/checkbox.test.d.ts +13 -0
  297. package/tests/component-16-factor-types.test.d.ts +13 -0
  298. package/tests/component-5level-integration.test.d.ts +14 -0
  299. package/tests/component-registry-ui.test.d.ts +13 -0
  300. package/tests/e2e/16-factor-visual.test.d.ts +14 -0
  301. package/tests/edge-cases.test.d.ts +14 -0
  302. package/tests/factor-17-24-integration.test.d.ts +14 -0
  303. package/tests/factor-17-24-performance.test.d.ts +14 -0
  304. package/tests/factor-validators.test.d.ts +13 -0
  305. package/tests/factors-1-6.test.d.ts +13 -0
  306. package/tests/factors-12-16.test.d.ts +13 -0
  307. package/tests/factors-17-24.test.d.ts +21 -0
  308. package/tests/factors-all.test.d.ts +13 -0
  309. package/tests/factors-registry.test.d.ts +11 -0
  310. package/tests/factors.test.d.ts +13 -0
  311. package/tests/granularity-types.test.d.ts +18 -0
  312. package/tests/groups.test.d.ts +14 -0
  313. package/tests/input.test.d.ts +16 -0
  314. package/tests/intents.test.d.ts +14 -0
  315. package/tests/memory-leak.test.d.ts +14 -0
  316. package/tests/modal.test.d.ts +19 -0
  317. package/tests/presets.test.d.ts +14 -0
  318. package/tests/radio.test.d.ts +13 -0
  319. package/tests/resolution-intents.test.d.ts +13 -0
  320. package/tests/resolution-presets.test.d.ts +13 -0
  321. package/tests/resolveProps.test.d.ts +14 -0
  322. package/tests/section-integration.test.d.ts +16 -0
  323. package/tests/section-types.test.d.ts +11 -0
  324. package/tests/setup.d.ts +13 -0
  325. package/tests/shorthands.test.d.ts +14 -0
  326. package/tests/switch.test.d.ts +13 -0
  327. package/tests/tabs.test.d.ts +13 -0
  328. package/tests/tiers-registry.test.d.ts +11 -0
  329. package/tests/useComponentStyles.test.d.ts +11 -0
  330. package/tests/useFactors.test.d.ts +13 -0
  331. package/tests/validators-invalid-input.test.d.ts +13 -0
  332. package/tsup.config.d.ts +11 -0
  333. package/vitest.config.d.ts +3 -0
@@ -0,0 +1,252 @@
1
+ /**
2
+ * Granularity Registry - Unified Registry for All Granularity Levels
3
+ *
4
+ * This module consolidates section/page/layout/template registries
5
+ * into a unified query interface. Instead of separate registries,
6
+ * use `getRegistryFor(level)` to query definitions at any level.
7
+ *
8
+ * @packageDocumentation
9
+ * @module presets/granularity-registry
10
+ * @since 4.0.0
11
+ *
12
+ * Powered by Nikkory
13
+ */
14
+ import type { RegistryLayoutDefinition, RegistryPageDefinition, RegistrySectionDefinition, RegistryTemplateDefinition } from './registry.types';
15
+ import type { GranularityLevel } from '../types/granularity';
16
+ /**
17
+ * Union type of all registry definition types
18
+ *
19
+ * @category types
20
+ * @since 4.0.0
21
+ *
22
+ * Powered by Nikkory
23
+ */
24
+ export type RegistryDefinition = RegistrySectionDefinition | RegistryLayoutDefinition | RegistryPageDefinition | RegistryTemplateDefinition;
25
+ /**
26
+ * Map of granularity levels to their registry types
27
+ *
28
+ * @category types
29
+ * @since 4.0.0
30
+ *
31
+ * Powered by Nikkory
32
+ */
33
+ export type RegistryForLevel<L extends GranularityLevel> = L extends 'section' ? RegistrySectionDefinition : L extends 'page' ? RegistryPageDefinition : L extends 'layout' ? RegistryLayoutDefinition : L extends 'template' ? RegistryTemplateDefinition : never;
34
+ /**
35
+ * Get the registry array for a specific granularity level
36
+ *
37
+ * This consolidates access to all registries through a single function.
38
+ *
39
+ * @category utils
40
+ * @since 4.0.0
41
+ *
42
+ * @param level - The granularity level
43
+ * @returns Array of registry definitions for that level
44
+ *
45
+ * @example
46
+ * ```typescript
47
+ * const sections = getRegistryFor('section');
48
+ * const pages = getRegistryFor('page');
49
+ * const layouts = getRegistryFor('layout');
50
+ * const templates = getRegistryFor('template');
51
+ * ```
52
+ *
53
+ * Powered by Nikkory
54
+ */
55
+ export declare function getRegistryFor<L extends GranularityLevel>(level: L): readonly RegistryForLevel<L>[];
56
+ /**
57
+ * Get a specific definition by ID from a registry
58
+ *
59
+ * @category utils
60
+ * @since 4.0.0
61
+ *
62
+ * @param level - The granularity level
63
+ * @param id - The definition ID
64
+ * @returns The definition or undefined if not found
65
+ *
66
+ * @example
67
+ * ```typescript
68
+ * const heroSection = getDefinitionById('section', 'hero');
69
+ * const landingPage = getDefinitionById('page', 'landing');
70
+ * ```
71
+ *
72
+ * Powered by Nikkory
73
+ */
74
+ export declare function getDefinitionById<L extends GranularityLevel>(level: L, id: string): RegistryForLevel<L> | undefined;
75
+ /**
76
+ * Get all definition IDs for a granularity level
77
+ *
78
+ * @category utils
79
+ * @since 4.0.0
80
+ *
81
+ * @param level - The granularity level
82
+ * @returns Array of all IDs in that registry
83
+ *
84
+ * @example
85
+ * ```typescript
86
+ * const sectionIds = getDefinitionIds('section');
87
+ * console.log(sectionIds); // ['hero', 'features', 'pricing', ...]
88
+ * ```
89
+ *
90
+ * Powered by Nikkory
91
+ */
92
+ export declare function getDefinitionIds(level: GranularityLevel): readonly string[];
93
+ /**
94
+ * Check if a definition ID exists in a registry
95
+ *
96
+ * @category utils
97
+ * @since 4.0.0
98
+ *
99
+ * @param level - The granularity level
100
+ * @param id - The definition ID to check
101
+ * @returns True if the ID exists
102
+ *
103
+ * @example
104
+ * ```typescript
105
+ * isValidDefinitionId('section', 'hero'); // true
106
+ * isValidDefinitionId('section', 'invalid'); // false
107
+ * ```
108
+ *
109
+ * Powered by Nikkory
110
+ */
111
+ export declare function isValidDefinitionId(level: GranularityLevel, id: string): boolean;
112
+ /**
113
+ * Filter definitions by category
114
+ *
115
+ * @category utils
116
+ * @since 4.0.0
117
+ *
118
+ * @param level - The granularity level
119
+ * @param category - The category to filter by
120
+ * @returns Filtered definitions
121
+ *
122
+ * @example
123
+ * ```typescript
124
+ * const heroSections = filterByCategory('section', 'hero');
125
+ * const authPages = filterByCategory('page', 'auth');
126
+ * ```
127
+ *
128
+ * Powered by Nikkory
129
+ */
130
+ export declare function filterByCategory<L extends GranularityLevel>(level: L, category: string): readonly RegistryForLevel<L>[];
131
+ /**
132
+ * Filter definitions by status
133
+ *
134
+ * @category utils
135
+ * @since 4.0.0
136
+ *
137
+ * @param level - The granularity level
138
+ * @param status - The status to filter by
139
+ * @returns Filtered definitions
140
+ *
141
+ * @example
142
+ * ```typescript
143
+ * const stableSections = filterByStatus('section', 'stable');
144
+ * const betaPages = filterByStatus('page', 'beta');
145
+ * ```
146
+ *
147
+ * Powered by Nikkory
148
+ */
149
+ export declare function filterByStatus<L extends GranularityLevel>(level: L, status: 'stable' | 'beta' | 'planned'): readonly RegistryForLevel<L>[];
150
+ /**
151
+ * Search definitions by name or description
152
+ *
153
+ * @category utils
154
+ * @since 4.0.0
155
+ *
156
+ * @param level - The granularity level
157
+ * @param query - The search query
158
+ * @returns Matching definitions
159
+ *
160
+ * @example
161
+ * ```typescript
162
+ * const results = searchDefinitions('section', 'pricing');
163
+ * const authResults = searchDefinitions('page', 'auth');
164
+ * ```
165
+ *
166
+ * Powered by Nikkory
167
+ */
168
+ export declare function searchDefinitions<L extends GranularityLevel>(level: L, query: string): readonly RegistryForLevel<L>[];
169
+ /**
170
+ * Get statistics for a registry
171
+ *
172
+ * @category utils
173
+ * @since 4.0.0
174
+ *
175
+ * @param level - The granularity level
176
+ * @returns Statistics object
177
+ *
178
+ * @example
179
+ * ```typescript
180
+ * const stats = getRegistryStats('section');
181
+ * console.log(stats.total); // 27
182
+ * console.log(stats.byStatus.stable); // 20
183
+ * ```
184
+ *
185
+ * Powered by Nikkory
186
+ */
187
+ export declare function getRegistryStats(level: GranularityLevel): {
188
+ readonly total: number;
189
+ readonly byStatus: Record<string, number>;
190
+ readonly byCategory: Record<string, number>;
191
+ };
192
+ /**
193
+ * Get combined statistics across all registries
194
+ *
195
+ * @category utils
196
+ * @since 4.0.0
197
+ *
198
+ * @returns Combined statistics
199
+ *
200
+ * @example
201
+ * ```typescript
202
+ * const allStats = getAllRegistryStats();
203
+ * console.log(allStats.section.total); // 27
204
+ * console.log(allStats.page.total); // 31
205
+ * ```
206
+ *
207
+ * Powered by Nikkory
208
+ */
209
+ export declare function getAllRegistryStats(): Record<GranularityLevel, ReturnType<typeof getRegistryStats>>;
210
+ /**
211
+ * Get count of definitions per level
212
+ *
213
+ * @category utils
214
+ * @since 4.0.0
215
+ *
216
+ * @returns Object with counts per level
217
+ *
218
+ * @example
219
+ * ```typescript
220
+ * const counts = getDefinitionCounts();
221
+ * console.log(counts);
222
+ * // {
223
+ * // template: 20,
224
+ * // layout: 10,
225
+ * // page: 31,
226
+ * // section: 27,
227
+ * // component: 0,
228
+ * // atom: 0
229
+ * // }
230
+ * ```
231
+ *
232
+ * Powered by Nikkory
233
+ */
234
+ export declare function getDefinitionCounts(): Record<GranularityLevel, number>;
235
+ /**
236
+ * Get total count across all registries
237
+ *
238
+ * @category utils
239
+ * @since 4.0.0
240
+ *
241
+ * @returns Total number of definitions
242
+ *
243
+ * @example
244
+ * ```typescript
245
+ * const total = getTotalDefinitionCount();
246
+ * console.log(total); // 88
247
+ * ```
248
+ *
249
+ * Powered by Nikkory
250
+ */
251
+ export declare function getTotalDefinitionCount(): number;
252
+ //# sourceMappingURL=granularity-registry.d.ts.map
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Presets Module - Barrel Exports
3
+ *
4
+ * @packageDocumentation
5
+ * @module presets
6
+ * @since 4.0.0
7
+ *
8
+ * Powered by Nikkory
9
+ */
10
+ export { ALL_COMPONENTS, COMPONENT_REGISTRY, getAllComponentIds, getComponent, isValidComponentId, getComponentsByCategory, getComponentsByStatus, getComponentsByPhase, getStableComponents, getPlannedComponents, searchComponents, getComponentDependencies, getComponentDependents, getRegistryStats, getPopularComponents, getNewComponents, searchUIComponents, getComponentsByDesignSystem, getComponentsByTier, getComponentsByIcon, getAllIcons, getAllEmojis, getComponentsGroupedByCategory, getUIStats, } from './component-registry';
11
+ export type { ComponentId, ComponentCategory, ComponentComplexity, ComponentStatus, RegistryComponentDefinition, ComponentDefinition, } from './component-registry';
12
+ export type { BaseSectionDefinition, SectionCategoryDefaults } from './section-registry.types';
13
+ export { SECTION_CATEGORY_ICONS, SECTION_CATEGORY_EMOJIS, SECTION_CATEGORY_DEFAULTS, getCategoryDefaults, getCategoryIcon, getCategoryEmoji, getAllSectionCategories, } from './section-registry.defaults';
14
+ export { withSectionDefaults, withSectionDefaultsArray, validateBaseSectionDefinition, validateBaseSectionDefinitions, isBaseSectionDefinition, isRegistrySectionDefinition, } from './section-registry.helpers';
15
+ export { ALL_SECTIONS } from './section-registry';
16
+ export { ALL_LAYOUTS } from './layout-registry';
17
+ export { ALL_PAGES } from './page-registry';
18
+ export { ALL_TEMPLATES } from './template-registry';
19
+ export * from './registry.types';
20
+ export * from './registry.constants';
21
+ export { INDUSTRY_PRESETS, getIndustryIds, getIndustryPreset, getPresetsByCategory, getPresetsByTier, getPresetsByDesignSystem, financePreset, healthcarePreset, ecommercePreset, saasPreset, educationPreset, gamingPreset, socialPreset, governmentPreset, creativePreset, realEstatePreset, travelPreset, foodPreset, fitnessPreset, newsPreset, nonprofitPreset, } from './industries';
22
+ export { IndustryDetector, detectIndustry, detectMultipleIndustries, getIndustryRecommendation, getRecommendationFromInput, getAvailableIndustries, getIndustriesByCategory, searchIndustries, isValidIndustry, getAggregatedDesignSystems, } from './IndustryDetector';
23
+ export type { IndustryCategory, DesignSystemId, ColorPaletteId, TierRecommendation, IndustryPreset, } from './industries';
24
+ export type { DetectionConfidence, DetectionResult, AlternativeMatch, IndustryRecommendation, } from './IndustryDetector';
25
+ export { MATRIX_GROUPS, getMatrixGroupIds, getMatrixGroup, getGroupsByCategory, getCommonBundles, getGroupsByComponent, calculateBundleSize, getRecommendedGroupsForIndustry, validateMatrixGroup, validateAllMatrixGroups, getStableComponentsInGroup, getAvailableComponentsInGroup, createMatrixGroup, formGroup, feedbackGroup, navigationGroup, dataDisplayGroup, overlayGroup, actionGroup, dateTimeGroup, mediaGroup, utilityGroup, starterBundle, dashboardBundle, ecommerceBundle, formHeavyBundle, contentRichBundle, mobileFirstBundle, } from './matrix-groups';
26
+ export type { MatrixGroup, MatrixGroupCategory } from './matrix-groups';
27
+ export * from './variants';
28
+ export * from './section-defaults';
29
+ export { FACTOR_REGISTRY, colorPrimaryFactor, colorSecondaryFactor, typographyScaleFactor, borderRadiusFactor, shadowStyleFactor, themeModeFactor, iconStyleFactor, surfaceStyleFactor, spacingScaleFactor, containerWidthFactor, gridColumnsFactor, gapSizeFactor, alignmentFactor, layoutTypeFactor, aspectRatioFactor, animationDurationFactor, animationEasingFactor, hoverEffectFactor, loadingStyleFactor, breakpointStrategyFactor, mobileBehaviorFactor, touchTargetSizeFactor, focusStyleFactor, reducedMotionFactor, getFactorById, getFactorsByCategory, getAllFactorIds, isValidFactorId, getFactorRegistryStats, } from './factor-registry';
30
+ export { getRegistryFor, getDefinitionById, getDefinitionIds, isValidDefinitionId, filterByCategory, filterByStatus, searchDefinitions, getRegistryStats as getGranularityRegistryStats, getAllRegistryStats, getDefinitionCounts, getTotalDefinitionCount, } from './granularity-registry';
31
+ export type { RegistryDefinition, RegistryForLevel } from './granularity-registry';
32
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,143 @@
1
+ /**
2
+ * Industry Presets
3
+ *
4
+ * Pre-configured design system recommendations for different industries.
5
+ * Each preset includes recommended design systems, color palettes, and component configurations.
6
+ *
7
+ * @packageDocumentation
8
+ * @module presets/industries
9
+ * @since 2.0.0
10
+ *
11
+ * Powered by Nikkory
12
+ */
13
+ /**
14
+ * Industry category types.
15
+ */
16
+ export type IndustryCategory = 'technology' | 'finance' | 'healthcare' | 'education' | 'retail' | 'entertainment' | 'government' | 'creative';
17
+ /**
18
+ * Design system identifiers.
19
+ */
20
+ export type DesignSystemId = 'material-design' | 'ios-hig' | 'glassmorphism' | 'neumorphism' | 'brutalism' | 'minimalism' | 'cyberpunk' | 'flat' | 'retro';
21
+ /**
22
+ * Color palette identifiers.
23
+ */
24
+ export type ColorPaletteId = 'trust' | 'professional' | 'vibrant' | 'calm' | 'bold' | 'elegant' | 'playful' | 'corporate' | 'tech' | 'nature' | 'warm' | 'cool';
25
+ /**
26
+ * Component tier recommendations.
27
+ */
28
+ export type TierRecommendation = 'basic' | 'standard' | 'enterprise';
29
+ /**
30
+ * Industry preset configuration.
31
+ */
32
+ export interface IndustryPreset {
33
+ /** Unique identifier */
34
+ readonly id: string;
35
+ /** Display name */
36
+ readonly name: string;
37
+ /** Category */
38
+ readonly category: IndustryCategory;
39
+ /** Description */
40
+ readonly description: string;
41
+ /** Alternative names/keywords for detection */
42
+ readonly aliases: readonly string[];
43
+ /** Recommended design systems (in order of preference) */
44
+ readonly designSystems: readonly DesignSystemId[];
45
+ /** Recommended color palettes */
46
+ readonly colorPalettes: readonly ColorPaletteId[];
47
+ /** Recommended component tier */
48
+ readonly recommendedTier: TierRecommendation;
49
+ /** Special requirements or considerations */
50
+ readonly requirements: readonly string[];
51
+ /** Accessibility priority level (1-5, 5 being highest) */
52
+ readonly accessibilityPriority: number;
53
+ /** Typical use cases */
54
+ readonly useCases: readonly string[];
55
+ /** Component priorities for this industry */
56
+ readonly componentPriorities: readonly string[];
57
+ }
58
+ /**
59
+ * Finance/Banking industry preset.
60
+ */
61
+ export declare const financePreset: IndustryPreset;
62
+ /**
63
+ * Healthcare industry preset.
64
+ */
65
+ export declare const healthcarePreset: IndustryPreset;
66
+ /**
67
+ * E-commerce/Retail industry preset.
68
+ */
69
+ export declare const ecommercePreset: IndustryPreset;
70
+ /**
71
+ * SaaS/Technology industry preset.
72
+ */
73
+ export declare const saasPreset: IndustryPreset;
74
+ /**
75
+ * Education industry preset.
76
+ */
77
+ export declare const educationPreset: IndustryPreset;
78
+ /**
79
+ * Gaming/Entertainment industry preset.
80
+ */
81
+ export declare const gamingPreset: IndustryPreset;
82
+ /**
83
+ * Social/Community industry preset.
84
+ */
85
+ export declare const socialPreset: IndustryPreset;
86
+ /**
87
+ * Government/Public Sector industry preset.
88
+ */
89
+ export declare const governmentPreset: IndustryPreset;
90
+ /**
91
+ * Creative/Design industry preset.
92
+ */
93
+ export declare const creativePreset: IndustryPreset;
94
+ /**
95
+ * Real Estate industry preset.
96
+ */
97
+ export declare const realEstatePreset: IndustryPreset;
98
+ /**
99
+ * Travel/Hospitality industry preset.
100
+ */
101
+ export declare const travelPreset: IndustryPreset;
102
+ /**
103
+ * Food/Restaurant industry preset.
104
+ */
105
+ export declare const foodPreset: IndustryPreset;
106
+ /**
107
+ * Fitness/Sports industry preset.
108
+ */
109
+ export declare const fitnessPreset: IndustryPreset;
110
+ /**
111
+ * News/Media industry preset.
112
+ */
113
+ export declare const newsPreset: IndustryPreset;
114
+ /**
115
+ * Non-profit/Charity industry preset.
116
+ */
117
+ export declare const nonprofitPreset: IndustryPreset;
118
+ /**
119
+ * All industry presets indexed by ID.
120
+ */
121
+ export declare const INDUSTRY_PRESETS: Record<string, IndustryPreset>;
122
+ /**
123
+ * Get all industry preset IDs.
124
+ */
125
+ export declare function getIndustryIds(): string[];
126
+ /**
127
+ * Get industry preset by ID.
128
+ */
129
+ export declare function getIndustryPreset(id: string): IndustryPreset | undefined;
130
+ /**
131
+ * Get presets by category.
132
+ */
133
+ export declare function getPresetsByCategory(category: IndustryCategory): IndustryPreset[];
134
+ /**
135
+ * Get presets by recommended tier.
136
+ */
137
+ export declare function getPresetsByTier(tier: TierRecommendation): IndustryPreset[];
138
+ /**
139
+ * Get presets that recommend a specific design system.
140
+ */
141
+ export declare function getPresetsByDesignSystem(designSystem: DesignSystemId): IndustryPreset[];
142
+ export default INDUSTRY_PRESETS;
143
+ //# sourceMappingURL=industries.d.ts.map
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Layout Registry - 10 Layout Definitions
3
+ * @packageDocumentation
4
+ * @module presets/layout-registry
5
+ * @since 4.0.0
6
+ *
7
+ * Powered by Nikkory
8
+ */
9
+ import type { RegistryLayoutDefinition } from './registry.types';
10
+ /**
11
+ * All layout definitions (10 total)
12
+ *
13
+ * Categories:
14
+ * - Standard (4): Basic layouts with header/footer
15
+ * - Dashboard (3): Admin/app layouts
16
+ * - Landing (2): Marketing page layouts
17
+ * - Blog (1): Blog-specific layout
18
+ */
19
+ export declare const ALL_LAYOUTS: readonly RegistryLayoutDefinition[];
20
+ export type { RegistryLayoutDefinition };
21
+ //# sourceMappingURL=layout-registry.d.ts.map
@@ -0,0 +1,195 @@
1
+ /**
2
+ * Matrix Groups
3
+ *
4
+ * Component grouping strategies for different use cases and industries.
5
+ * Each matrix group defines which components should be bundled together
6
+ * and any special configuration for that group.
7
+ *
8
+ * @packageDocumentation
9
+ * @module presets/matrix-groups
10
+ * @since 2.0.0
11
+ *
12
+ * Powered by Nikkory
13
+ */
14
+ import { type ComponentId } from './component-registry';
15
+ import type { DesignSystemId, TierRecommendation } from './industries';
16
+ export type { ComponentId };
17
+ /**
18
+ * Matrix group category types.
19
+ */
20
+ export type MatrixGroupCategory = 'form' | 'feedback' | 'navigation' | 'data-display' | 'overlay' | 'layout' | 'media' | 'utility';
21
+ /**
22
+ * Special token overrides for matrix groups.
23
+ */
24
+ export interface MatrixGroupTokens {
25
+ /** Border radius override */
26
+ readonly borderRadius?: string;
27
+ /** Primary color override */
28
+ readonly primaryColor?: string;
29
+ /** Animation duration multiplier */
30
+ readonly animationMultiplier?: number;
31
+ /** Focus ring style */
32
+ readonly focusRingStyle?: 'solid' | 'dashed' | 'double' | 'none';
33
+ /** Shadow intensity */
34
+ readonly shadowIntensity?: 'none' | 'subtle' | 'medium' | 'strong';
35
+ }
36
+ /**
37
+ * Matrix group configuration.
38
+ */
39
+ export interface MatrixGroup {
40
+ /** Unique identifier */
41
+ readonly id: string;
42
+ /** Display name */
43
+ readonly name: string;
44
+ /** Category */
45
+ readonly category: MatrixGroupCategory;
46
+ /** Description */
47
+ readonly description: string;
48
+ /** Components included in this group */
49
+ readonly components: readonly ComponentId[];
50
+ /** Recommended design systems */
51
+ readonly recommendedDesignSystems: readonly DesignSystemId[];
52
+ /** Default tier for this group */
53
+ readonly defaultTier: TierRecommendation;
54
+ /** Special token overrides for this group */
55
+ readonly specialTokens?: MatrixGroupTokens;
56
+ /** Dependencies on other groups */
57
+ readonly dependencies?: readonly string[];
58
+ /** Bundle size estimate in KB */
59
+ readonly bundleSizeKb: number;
60
+ /** Whether this group is commonly used together */
61
+ readonly isCommonBundle: boolean;
62
+ }
63
+ /**
64
+ * Form Components Matrix Group.
65
+ * Essential form input components.
66
+ */
67
+ export declare const formGroup: MatrixGroup;
68
+ /**
69
+ * Feedback Components Matrix Group.
70
+ * Components for user feedback and notifications.
71
+ */
72
+ export declare const feedbackGroup: MatrixGroup;
73
+ /**
74
+ * Navigation Components Matrix Group.
75
+ * Components for app navigation.
76
+ */
77
+ export declare const navigationGroup: MatrixGroup;
78
+ /**
79
+ * Data Display Components Matrix Group.
80
+ * Components for displaying data and content.
81
+ */
82
+ export declare const dataDisplayGroup: MatrixGroup;
83
+ /**
84
+ * Overlay Components Matrix Group.
85
+ * Components that overlay the main content.
86
+ */
87
+ export declare const overlayGroup: MatrixGroup;
88
+ /**
89
+ * Action Components Matrix Group.
90
+ * Core action/interaction components.
91
+ */
92
+ export declare const actionGroup: MatrixGroup;
93
+ /**
94
+ * Date/Time Components Matrix Group.
95
+ * Components for date and time selection.
96
+ */
97
+ export declare const dateTimeGroup: MatrixGroup;
98
+ /**
99
+ * Media Components Matrix Group.
100
+ * Components for media content display.
101
+ */
102
+ export declare const mediaGroup: MatrixGroup;
103
+ /**
104
+ * Utility Components Matrix Group.
105
+ * Utility and layout components.
106
+ */
107
+ export declare const utilityGroup: MatrixGroup;
108
+ /**
109
+ * Starter Bundle - Essential components for any app.
110
+ */
111
+ export declare const starterBundle: MatrixGroup;
112
+ /**
113
+ * Dashboard Bundle - Components for admin dashboards.
114
+ */
115
+ export declare const dashboardBundle: MatrixGroup;
116
+ /**
117
+ * E-commerce Bundle - Components for online stores.
118
+ */
119
+ export declare const ecommerceBundle: MatrixGroup;
120
+ /**
121
+ * Form-heavy Bundle - For applications with complex forms.
122
+ */
123
+ export declare const formHeavyBundle: MatrixGroup;
124
+ /**
125
+ * Content-rich Bundle - For content-heavy websites.
126
+ */
127
+ export declare const contentRichBundle: MatrixGroup;
128
+ /**
129
+ * Mobile-first Bundle - Optimized for mobile apps.
130
+ */
131
+ export declare const mobileFirstBundle: MatrixGroup;
132
+ /**
133
+ * All matrix groups indexed by ID.
134
+ */
135
+ export declare const MATRIX_GROUPS: Record<string, MatrixGroup>;
136
+ /**
137
+ * Get all matrix group IDs.
138
+ */
139
+ export declare function getMatrixGroupIds(): string[];
140
+ /**
141
+ * Get matrix group by ID.
142
+ */
143
+ export declare function getMatrixGroup(id: string): MatrixGroup | undefined;
144
+ /**
145
+ * Get groups by category.
146
+ */
147
+ export declare function getGroupsByCategory(category: MatrixGroupCategory): MatrixGroup[];
148
+ /**
149
+ * Get common bundles only.
150
+ */
151
+ export declare function getCommonBundles(): MatrixGroup[];
152
+ /**
153
+ * Get groups that contain a specific component.
154
+ */
155
+ export declare function getGroupsByComponent(componentId: ComponentId): MatrixGroup[];
156
+ /**
157
+ * Calculate total bundle size for selected groups.
158
+ */
159
+ export declare function calculateBundleSize(groupIds: string[]): number;
160
+ /**
161
+ * Get recommended groups for an industry.
162
+ */
163
+ export declare function getRecommendedGroupsForIndustry(industryId: string): MatrixGroup[];
164
+ /**
165
+ * Validate that all components in a matrix group exist in the registry.
166
+ * Use this when adding new matrix groups to ensure consistency.
167
+ */
168
+ export declare function validateMatrixGroup(group: MatrixGroup): {
169
+ valid: boolean;
170
+ invalidComponents: string[];
171
+ };
172
+ /**
173
+ * Validate all matrix groups.
174
+ * Returns groups with invalid components.
175
+ */
176
+ export declare function validateAllMatrixGroups(): Record<string, string[]>;
177
+ /**
178
+ * Get only stable components from a matrix group.
179
+ * Filters out planned/alpha components.
180
+ */
181
+ export declare function getStableComponentsInGroup(groupId: string): string[];
182
+ /**
183
+ * Get available components for a matrix group.
184
+ * Only returns components that are currently stable/implemented.
185
+ */
186
+ export declare function getAvailableComponentsInGroup(groupId: string): string[];
187
+ /**
188
+ * Create a custom matrix group.
189
+ * Validates components against the registry.
190
+ */
191
+ export declare function createMatrixGroup(config: Omit<MatrixGroup, 'bundleSizeKb'> & {
192
+ bundleSizeKb?: number;
193
+ }): MatrixGroup;
194
+ export default MATRIX_GROUPS;
195
+ //# sourceMappingURL=matrix-groups.d.ts.map
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Page Registry - SINGLE SOURCE OF TRUTH
3
+ * @packageDocumentation
4
+ * @module presets/page-registry
5
+ * @since 4.0.0
6
+ *
7
+ * Powered by Nikkory
8
+ */
9
+ import type { RegistryPageDefinition } from './registry.types';
10
+ /**
11
+ * All page definitions (30 pages across 7 categories)
12
+ *
13
+ * Categories:
14
+ * - Marketing (8): landing, about, services, features, blog-home, contact, pricing, careers
15
+ * - E-commerce (6): product-list, product-detail, cart, checkout, order-confirmation, account
16
+ * - SaaS (5): home, pricing, features, dashboard, docs
17
+ * - Portfolio (3): home, project-detail, contact
18
+ * - Blog (3): home, post, category
19
+ * - Docs (3): home, article, search
20
+ * - App (2): dashboard, settings
21
+ */
22
+ export declare const ALL_PAGES: readonly RegistryPageDefinition[];
23
+ export type { RegistryPageDefinition };
24
+ //# sourceMappingURL=page-registry.d.ts.map