@mich8060/unified-design-system 0.2.10 → 0.2.13

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 (228) hide show
  1. package/README.md +8 -0
  2. package/dist/ai/audit/auditLogger.cjs +2 -0
  3. package/dist/ai/audit/auditLogger.js +2 -0
  4. package/dist/ai/examples/trees.example.cjs +1 -0
  5. package/dist/ai/examples/trees.example.js +1 -0
  6. package/dist/ai/examples/validation-run.example.cjs +1 -0
  7. package/dist/ai/examples/validation-run.example.js +1 -0
  8. package/dist/ai/index.cjs +1 -0
  9. package/dist/ai/index.js +1 -0
  10. package/dist/ai/manifest/components.manifest.cjs +1 -0
  11. package/dist/ai/manifest/components.manifest.js +1 -0
  12. package/dist/ai/manifest/governance.manifest.cjs +1 -0
  13. package/dist/ai/manifest/governance.manifest.js +1 -0
  14. package/dist/ai/manifest/layout.manifest.cjs +1 -0
  15. package/dist/ai/manifest/layout.manifest.js +1 -0
  16. package/dist/ai/manifest/patterns.manifest.cjs +1 -0
  17. package/dist/ai/manifest/patterns.manifest.js +1 -0
  18. package/dist/ai/manifest/system.manifest.cjs +1 -0
  19. package/dist/ai/manifest/system.manifest.js +1 -0
  20. package/dist/ai/manifest/tokens.intent.manifest.cjs +1 -0
  21. package/dist/ai/manifest/tokens.intent.manifest.js +1 -0
  22. package/dist/ai/policies/policy.engine.cjs +1 -0
  23. package/dist/ai/policies/policy.engine.js +1 -0
  24. package/dist/ai/policies/rules/accessibility.rules.cjs +1 -0
  25. package/dist/ai/policies/rules/accessibility.rules.js +1 -0
  26. package/dist/ai/policies/rules/action.rules.cjs +1 -0
  27. package/dist/ai/policies/rules/action.rules.js +1 -0
  28. package/dist/ai/policies/rules/composition.rules.cjs +1 -0
  29. package/dist/ai/policies/rules/composition.rules.js +1 -0
  30. package/dist/ai/policies/rules/spacing.rules.cjs +1 -0
  31. package/dist/ai/policies/rules/spacing.rules.js +1 -0
  32. package/dist/ai/telemetry/usageMetrics.cjs +1 -0
  33. package/dist/ai/telemetry/usageMetrics.js +1 -0
  34. package/dist/ai/validation/driftDetection.cjs +1 -0
  35. package/dist/ai/validation/driftDetection.js +1 -0
  36. package/dist/ai/validation/schemaValidation.cjs +1 -0
  37. package/dist/ai/validation/schemaValidation.js +1 -0
  38. package/dist/ai/validation/validateAIOutput.cjs +1 -0
  39. package/dist/ai/validation/validateAIOutput.js +1 -0
  40. package/dist/ai/validation/validateTree.cjs +1 -0
  41. package/dist/ai/validation/validateTree.js +1 -0
  42. package/dist/components/Accordion/Accordion.spec.cjs +1 -0
  43. package/dist/components/Accordion/Accordion.spec.js +1 -0
  44. package/dist/components/ActionMenu/ActionMenu.spec.cjs +1 -0
  45. package/dist/components/ActionMenu/ActionMenu.spec.js +1 -0
  46. package/dist/components/Avatar/Avatar.spec.cjs +1 -0
  47. package/dist/components/Avatar/Avatar.spec.js +1 -0
  48. package/dist/components/Badge/Badge.spec.cjs +1 -0
  49. package/dist/components/Badge/Badge.spec.js +1 -0
  50. package/dist/components/Branding/Branding.spec.cjs +1 -0
  51. package/dist/components/Branding/Branding.spec.js +1 -0
  52. package/dist/components/Breadcrumb/Breadcrumb.spec.cjs +1 -0
  53. package/dist/components/Breadcrumb/Breadcrumb.spec.js +1 -0
  54. package/dist/components/Button/Button.spec.cjs +1 -0
  55. package/dist/components/Button/Button.spec.js +1 -0
  56. package/dist/components/Calendar/Calendar.spec.cjs +1 -0
  57. package/dist/components/Calendar/Calendar.spec.js +1 -0
  58. package/dist/components/Card/Card.spec.cjs +1 -0
  59. package/dist/components/Card/Card.spec.js +1 -0
  60. package/dist/components/Checkbox/Checkbox.spec.cjs +1 -0
  61. package/dist/components/Checkbox/Checkbox.spec.js +1 -0
  62. package/dist/components/Chip/Chip.spec.cjs +1 -0
  63. package/dist/components/Chip/Chip.spec.js +1 -0
  64. package/dist/components/Code/Code.spec.cjs +1 -0
  65. package/dist/components/Code/Code.spec.js +1 -0
  66. package/dist/components/Container/Container.spec.cjs +1 -0
  67. package/dist/components/Container/Container.spec.js +1 -0
  68. package/dist/components/Datepicker/Datepicker.spec.cjs +1 -0
  69. package/dist/components/Datepicker/Datepicker.spec.js +1 -0
  70. package/dist/components/Dialog/Dialog.spec.cjs +1 -0
  71. package/dist/components/Dialog/Dialog.spec.js +1 -0
  72. package/dist/components/Divider/Divider.spec.cjs +1 -0
  73. package/dist/components/Divider/Divider.spec.js +1 -0
  74. package/dist/components/DotStatus/DotStatus.spec.cjs +1 -0
  75. package/dist/components/DotStatus/DotStatus.spec.js +1 -0
  76. package/dist/components/Dropdown/Dropdown.spec.cjs +1 -0
  77. package/dist/components/Dropdown/Dropdown.spec.js +1 -0
  78. package/dist/components/EmptyState/EmptyState.spec.cjs +1 -0
  79. package/dist/components/EmptyState/EmptyState.spec.js +1 -0
  80. package/dist/components/EventCard/EventCard.spec.cjs +1 -0
  81. package/dist/components/EventCard/EventCard.spec.js +1 -0
  82. package/dist/components/Field/Field.spec.cjs +1 -0
  83. package/dist/components/Field/Field.spec.js +1 -0
  84. package/dist/components/FileUpload/FileUpload.spec.cjs +1 -0
  85. package/dist/components/FileUpload/FileUpload.spec.js +1 -0
  86. package/dist/components/Flex/Flex.spec.cjs +1 -0
  87. package/dist/components/Flex/Flex.spec.js +1 -0
  88. package/dist/components/Icon/Icon.spec.cjs +1 -0
  89. package/dist/components/Icon/Icon.spec.js +1 -0
  90. package/dist/components/ImageAspect/ImageAspect.spec.cjs +1 -0
  91. package/dist/components/ImageAspect/ImageAspect.spec.js +1 -0
  92. package/dist/components/Key/Key.spec.cjs +1 -0
  93. package/dist/components/Key/Key.spec.js +1 -0
  94. package/dist/components/Menu/Menu.spec.cjs +1 -0
  95. package/dist/components/Menu/Menu.spec.js +1 -0
  96. package/dist/components/MicroCalendar/MicroCalendar.spec.cjs +1 -0
  97. package/dist/components/MicroCalendar/MicroCalendar.spec.js +1 -0
  98. package/dist/components/Modal/Modal.spec.cjs +1 -0
  99. package/dist/components/Modal/Modal.spec.js +1 -0
  100. package/dist/components/Pagination/Pagination.spec.cjs +1 -0
  101. package/dist/components/Pagination/Pagination.spec.js +1 -0
  102. package/dist/components/PillToggle/PillToggle.spec.cjs +1 -0
  103. package/dist/components/PillToggle/PillToggle.spec.js +1 -0
  104. package/dist/components/Playground/Playground.spec.cjs +1 -0
  105. package/dist/components/Playground/Playground.spec.js +1 -0
  106. package/dist/components/ProgressCircle/ProgressCircle.spec.cjs +1 -0
  107. package/dist/components/ProgressCircle/ProgressCircle.spec.js +1 -0
  108. package/dist/components/ProgressIndicator/ProgressIndicator.spec.cjs +1 -0
  109. package/dist/components/ProgressIndicator/ProgressIndicator.spec.js +1 -0
  110. package/dist/components/Radio/Radio.spec.cjs +1 -0
  111. package/dist/components/Radio/Radio.spec.js +1 -0
  112. package/dist/components/Slider/Slider.spec.cjs +1 -0
  113. package/dist/components/Slider/Slider.spec.js +1 -0
  114. package/dist/components/Status/Status.spec.cjs +1 -0
  115. package/dist/components/Status/Status.spec.js +1 -0
  116. package/dist/components/Steps/Steps.spec.cjs +1 -0
  117. package/dist/components/Steps/Steps.spec.js +1 -0
  118. package/dist/components/Table/Table.spec.cjs +1 -0
  119. package/dist/components/Table/Table.spec.js +1 -0
  120. package/dist/components/Tabs/Tabs.spec.cjs +1 -0
  121. package/dist/components/Tabs/Tabs.spec.js +1 -0
  122. package/dist/components/Tag/Tag.spec.cjs +1 -0
  123. package/dist/components/Tag/Tag.spec.js +1 -0
  124. package/dist/components/Text/Text.spec.cjs +1 -1
  125. package/dist/components/Text/Text.spec.js +1 -1
  126. package/dist/components/TextInput/TextInput.spec.cjs +1 -0
  127. package/dist/components/TextInput/TextInput.spec.js +1 -0
  128. package/dist/components/Textarea/Textarea.spec.cjs +1 -0
  129. package/dist/components/Textarea/Textarea.spec.js +1 -0
  130. package/dist/components/Toast/Toast.spec.cjs +1 -0
  131. package/dist/components/Toast/Toast.spec.js +1 -0
  132. package/dist/components/Toggle/Toggle.spec.cjs +1 -0
  133. package/dist/components/Toggle/Toggle.spec.js +1 -0
  134. package/dist/components/Tooltip/Tooltip.spec.cjs +1 -0
  135. package/dist/components/Tooltip/Tooltip.spec.js +1 -0
  136. package/dist/design-system/ai/audit/audit.types.d.ts +22 -0
  137. package/dist/design-system/ai/audit/auditLogger.d.ts +2 -0
  138. package/dist/design-system/ai/examples/trees.example.d.ts +3 -0
  139. package/dist/design-system/ai/examples/validation-run.example.d.ts +3 -0
  140. package/dist/design-system/ai/index.d.ts +39 -0
  141. package/dist/design-system/ai/manifest/components.manifest.d.ts +2 -0
  142. package/dist/design-system/ai/manifest/governance.manifest.d.ts +5 -0
  143. package/dist/design-system/ai/manifest/layout.manifest.d.ts +2 -0
  144. package/dist/design-system/ai/manifest/patterns.manifest.d.ts +2 -0
  145. package/dist/design-system/ai/manifest/system.manifest.d.ts +3 -0
  146. package/dist/design-system/ai/manifest/tokens.intent.manifest.d.ts +2 -0
  147. package/dist/design-system/ai/manifest/types.d.ts +133 -0
  148. package/dist/design-system/ai/policies/policy.engine.d.ts +3 -0
  149. package/dist/design-system/ai/policies/policy.types.d.ts +14 -0
  150. package/dist/design-system/ai/policies/rules/accessibility.rules.d.ts +2 -0
  151. package/dist/design-system/ai/policies/rules/action.rules.d.ts +2 -0
  152. package/dist/design-system/ai/policies/rules/composition.rules.d.ts +2 -0
  153. package/dist/design-system/ai/policies/rules/spacing.rules.d.ts +2 -0
  154. package/dist/design-system/ai/telemetry/usageMetrics.d.ts +9 -0
  155. package/dist/design-system/ai/validation/driftDetection.d.ts +3 -0
  156. package/dist/design-system/ai/validation/schemaValidation.d.ts +7 -0
  157. package/dist/design-system/ai/validation/validateAIOutput.d.ts +12 -0
  158. package/dist/design-system/ai/validation/validateTree.d.ts +2 -0
  159. package/dist/design-system/components/Accordion/Accordion.spec.d.ts +4 -0
  160. package/dist/design-system/components/ActionMenu/ActionMenu.spec.d.ts +4 -0
  161. package/dist/design-system/components/Avatar/Avatar.spec.d.ts +6 -0
  162. package/dist/design-system/components/Badge/Badge.spec.d.ts +12 -0
  163. package/dist/design-system/components/Branding/Branding.spec.d.ts +6 -0
  164. package/dist/design-system/components/Breadcrumb/Breadcrumb.spec.d.ts +4 -0
  165. package/dist/design-system/components/Button/Button.spec.d.ts +12 -0
  166. package/dist/design-system/components/Calendar/Calendar.spec.d.ts +4 -0
  167. package/dist/design-system/components/Card/Card.spec.d.ts +4 -0
  168. package/dist/design-system/components/Checkbox/Checkbox.spec.d.ts +4 -0
  169. package/dist/design-system/components/Chip/Chip.spec.d.ts +13 -0
  170. package/dist/design-system/components/Code/Code.spec.d.ts +10 -0
  171. package/dist/design-system/components/Container/Container.spec.d.ts +2 -0
  172. package/dist/design-system/components/Datepicker/Datepicker.spec.d.ts +6 -0
  173. package/dist/design-system/components/Dialog/Dialog.spec.d.ts +8 -0
  174. package/dist/design-system/components/Divider/Divider.spec.d.ts +10 -0
  175. package/dist/design-system/components/DotStatus/DotStatus.spec.d.ts +10 -0
  176. package/dist/design-system/components/Dropdown/Dropdown.spec.d.ts +12 -0
  177. package/dist/design-system/components/EmptyState/EmptyState.spec.d.ts +2 -0
  178. package/dist/design-system/components/EventCard/EventCard.spec.d.ts +8 -0
  179. package/dist/design-system/components/Field/Field.spec.d.ts +4 -0
  180. package/dist/design-system/components/FileUpload/FileUpload.spec.d.ts +6 -0
  181. package/dist/design-system/components/Flex/Flex.spec.d.ts +2 -0
  182. package/dist/design-system/components/Icon/Icon.spec.d.ts +6 -0
  183. package/dist/design-system/components/ImageAspect/ImageAspect.spec.d.ts +8 -0
  184. package/dist/design-system/components/Key/Key.spec.d.ts +8 -0
  185. package/dist/design-system/components/Menu/Menu.spec.d.ts +6 -0
  186. package/dist/design-system/components/MicroCalendar/MicroCalendar.spec.d.ts +4 -0
  187. package/dist/design-system/components/Modal/Modal.spec.d.ts +8 -0
  188. package/dist/design-system/components/Pagination/Pagination.spec.d.ts +6 -0
  189. package/dist/design-system/components/PillToggle/PillToggle.spec.d.ts +6 -0
  190. package/dist/design-system/components/Playground/Playground.spec.d.ts +6 -0
  191. package/dist/design-system/components/ProgressCircle/ProgressCircle.spec.d.ts +10 -0
  192. package/dist/design-system/components/ProgressIndicator/ProgressIndicator.spec.d.ts +10 -0
  193. package/dist/design-system/components/Radio/Radio.spec.d.ts +4 -0
  194. package/dist/design-system/components/Slider/Slider.spec.d.ts +4 -0
  195. package/dist/design-system/components/Status/Status.spec.d.ts +11 -0
  196. package/dist/design-system/components/Steps/Steps.spec.d.ts +11 -0
  197. package/dist/design-system/components/Table/Table.spec.d.ts +4 -0
  198. package/dist/design-system/components/Tabs/Tabs.spec.d.ts +7 -0
  199. package/dist/design-system/components/Tag/Tag.spec.d.ts +13 -0
  200. package/dist/design-system/components/TextInput/TextInput.spec.d.ts +12 -0
  201. package/dist/design-system/components/Textarea/Textarea.spec.d.ts +10 -0
  202. package/dist/design-system/components/Toast/Toast.spec.d.ts +8 -0
  203. package/dist/design-system/components/Toggle/Toggle.spec.d.ts +8 -0
  204. package/dist/design-system/components/Tooltip/Tooltip.spec.d.ts +8 -0
  205. package/dist/design-system/tokens/runtime/color.d.ts +40 -0
  206. package/dist/design-system/tokens/runtime/generateCss.d.ts +2 -0
  207. package/dist/design-system/tokens/runtime/index.d.ts +476 -0
  208. package/dist/design-system/tokens/runtime/motion.d.ts +14 -0
  209. package/dist/design-system/tokens/runtime/radius.d.ts +14 -0
  210. package/dist/design-system/tokens/runtime/shadow.d.ts +22 -0
  211. package/dist/design-system/tokens/runtime/spacing.d.ts +21 -0
  212. package/dist/design-system/tokens/runtime/types.d.ts +21 -0
  213. package/dist/design-system/tokens/runtime/typography.d.ts +87 -0
  214. package/dist/design-system/version.d.ts +1 -0
  215. package/dist/style.css +1 -1
  216. package/dist/tokens/index.d.ts +1 -0
  217. package/dist/tokens/index.js +1 -0
  218. package/dist/tokens/runtime/color.cjs +1 -0
  219. package/dist/tokens/runtime/color.js +1 -0
  220. package/dist/tokens/runtime/index.cjs +1 -0
  221. package/dist/tokens/runtime/index.js +1 -0
  222. package/dist/tokens/runtime/radius.cjs +1 -0
  223. package/dist/tokens/runtime/radius.js +1 -0
  224. package/dist/tokens/runtime/spacing.cjs +1 -0
  225. package/dist/tokens/runtime/spacing.js +1 -0
  226. package/dist/version.cjs +1 -0
  227. package/dist/version.js +1 -0
  228. package/package.json +59 -3
@@ -0,0 +1 @@
1
+ const a={allowedVariants:{},defaults:{variant:"default"}};export{a as PaginationSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={allowedVariants:{},defaults:{label:"Label States"}};exports.PillToggleSpec=e;
@@ -0,0 +1 @@
1
+ const l={allowedVariants:{},defaults:{label:"Label States"}};export{l as PillToggleSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={allowedVariants:{},defaults:{title:"Playground"}};exports.PlaygroundSpec=e;
@@ -0,0 +1 @@
1
+ const a={allowedVariants:{},defaults:{title:"Playground"}};export{a as PlaygroundSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={allowedVariants:{size:["xxs","xs","sm","md","lg"],shape:["circle","half-circle"]},defaults:{size:"md",shape:"circle"}};exports.ProgressCircleSpec=e;
@@ -0,0 +1 @@
1
+ const e={allowedVariants:{size:["xxs","xs","sm","md","lg"],shape:["circle","half-circle"]},defaults:{size:"md",shape:"circle"}};export{e as ProgressCircleSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={allowedVariants:{variant:["default","blue","green","success","orange","warning","red","error","purple"],size:["small","medium","large"]},defaults:{variant:"default",size:"medium"}};exports.ProgressIndicatorSpec=e;
@@ -0,0 +1 @@
1
+ const e={allowedVariants:{variant:["default","blue","green","success","orange","warning","red","error","purple"],size:["small","medium","large"]},defaults:{variant:"default",size:"medium"}};export{e as ProgressIndicatorSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={allowedVariants:{},defaults:{}};exports.RadioSpec=e;
@@ -0,0 +1 @@
1
+ const a={allowedVariants:{},defaults:{}};export{a as RadioSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={allowedVariants:{},defaults:{}};exports.SliderSpec=e;
@@ -0,0 +1 @@
1
+ const e={allowedVariants:{},defaults:{}};export{e as SliderSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a={allowedVariants:{appearance:["light-gray","white"],shape:["pill","rounded"]},defaults:{variant:"blue",appearance:"light-gray",shape:"pill"}};exports.StatusSpec=a;
@@ -0,0 +1 @@
1
+ const a={allowedVariants:{appearance:["light-gray","white"],shape:["pill","rounded"]},defaults:{variant:"blue",appearance:"light-gray",shape:"pill"}};export{a as StatusSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={allowedVariants:{orientation:["horizontal","vertical"],status:["complete","active","incomplete","disabled","error","warning"],size:["default","compact"]},defaults:{orientation:"horizontal",size:"default"}};exports.StepsSpec=e;
@@ -0,0 +1 @@
1
+ const t={allowedVariants:{orientation:["horizontal","vertical"],status:["complete","active","incomplete","disabled","error","warning"],size:["default","compact"]},defaults:{orientation:"horizontal",size:"default"}};export{t as StepsSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={allowedVariants:{},defaults:{}};exports.TableSpec=e;
@@ -0,0 +1 @@
1
+ const a={allowedVariants:{},defaults:{}};export{a as TableSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={allowedVariants:{},defaults:{appearance:"underline",tagVariant:"red"}};exports.TabsSpec=e;
@@ -0,0 +1 @@
1
+ const a={allowedVariants:{},defaults:{appearance:"underline",tagVariant:"red"}};export{a as TabsSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={allowedVariants:{appearance:["label-only","icon-left"],size:["compact","default"],color:["transparent","neutral","red","orange","yellow","emerald","green","sky","cyan","blue","indigo","purple","fuchsia","magenta","inverse"]},defaults:{label:"Label",appearance:"label-only",size:"compact",color:"transparent"}};exports.TagSpec=e;
@@ -0,0 +1 @@
1
+ const e={allowedVariants:{appearance:["label-only","icon-left"],size:["compact","default"],color:["transparent","neutral","red","orange","yellow","emerald","green","sky","cyan","blue","indigo","purple","fuchsia","magenta","inverse"]},defaults:{label:"Label",appearance:"label-only",size:"compact",color:"transparent"}};export{e as TagSpec};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={variants:{weight:{default:"regular"},leading:{default:"regular"}}};exports.TextSpec=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"Text",tier:2,purpose:"Applies UDS typography variants with governed weight and leading options while preserving semantic tags via `as`.",variants:{variant:{type:"enum",values:["display-128","display-96","display-72","display-60","display-48","display-36","heading-32","heading-28","heading-24","body-20","body-16","body-14","body-12"],default:"body-16"},weight:{type:"enum",values:["regular","medium","semibold","bold"],default:"regular"},leading:{type:"enum",values:["tight","regular","loose"],default:"regular"}},states:["default"],tokensUsed:["--uds-font-family","--uds-font-size-*","--uds-line-*","--uds-font-weight*","--uds-type-*"],accessibility:{role:"text",keyboard:[]},antiPatterns:["Do not set font-size/line-height directly on consumer elements; use Text variant + leading.","Do not reintroduce tailwind-like typography utilities that bypass semantic tokens."]};exports.TextSpec=e;
@@ -1 +1 @@
1
- const e={variants:{weight:{default:"regular"},leading:{default:"regular"}}};export{e as TextSpec};
1
+ const e={name:"Text",tier:2,purpose:"Applies UDS typography variants with governed weight and leading options while preserving semantic tags via `as`.",variants:{variant:{type:"enum",values:["display-128","display-96","display-72","display-60","display-48","display-36","heading-32","heading-28","heading-24","body-20","body-16","body-14","body-12"],default:"body-16"},weight:{type:"enum",values:["regular","medium","semibold","bold"],default:"regular"},leading:{type:"enum",values:["tight","regular","loose"],default:"regular"}},states:["default"],tokensUsed:["--uds-font-family","--uds-font-size-*","--uds-line-*","--uds-font-weight*","--uds-type-*"],accessibility:{role:"text",keyboard:[]},antiPatterns:["Do not set font-size/line-height directly on consumer elements; use Text variant + leading.","Do not reintroduce tailwind-like typography utilities that bypass semantic tokens."]};export{e as TextSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={allowedVariants:{size:["compact","default"],state:["default","focused","error","disabled"]},defaults:{type:"text",size:"default",state:"default",iconPosition:"right"}};exports.TextInputSpec=t;
@@ -0,0 +1 @@
1
+ const t={allowedVariants:{size:["compact","default"],state:["default","focused","error","disabled"]},defaults:{type:"text",size:"default",state:"default",iconPosition:"right"}};export{t as TextInputSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={allowedVariants:{size:["compact","default"],state:["default","focused","error","disabled"]},defaults:{size:"default",state:"default"}};exports.TextareaSpec=e;
@@ -0,0 +1 @@
1
+ const e={allowedVariants:{size:["compact","default"],state:["default","focused","error","disabled"]},defaults:{size:"default",state:"default"}};export{e as TextareaSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a={allowedVariants:{variant:["success","error","warning","info"]},defaults:{variant:"info"}};exports.ToastSpec=a;
@@ -0,0 +1 @@
1
+ const a={allowedVariants:{variant:["success","error","warning","info"]},defaults:{variant:"info"}};export{a as ToastSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={allowedVariants:{size:["large","small"]},defaults:{size:"large"}};exports.ToggleSpec=e;
@@ -0,0 +1 @@
1
+ const e={allowedVariants:{size:["large","small"]},defaults:{size:"large"}};export{e as ToggleSpec};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={allowedVariants:{placement:["top","bottom","left","right"]},defaults:{placement:"top"}};exports.TooltipSpec=t;
@@ -0,0 +1 @@
1
+ const t={allowedVariants:{placement:["top","bottom","left","right"]},defaults:{placement:"top"}};export{t as TooltipSpec};
@@ -0,0 +1,22 @@
1
+ export interface AuditEvent {
2
+ timestamp: string;
3
+ model: string;
4
+ promptHash: string;
5
+ udsVersion: string;
6
+ manifestVersion: string;
7
+ policyVersion: string;
8
+ componentsUsed: string[];
9
+ tokensUsed: string[];
10
+ violationsCount: number;
11
+ validationStatus: "pass" | "fail";
12
+ }
13
+ export type AuditTransport = {
14
+ type: "console";
15
+ } | {
16
+ type: "file";
17
+ filePath?: string;
18
+ append: (line: string, filePath?: string) => void | Promise<void>;
19
+ } | {
20
+ type: "custom";
21
+ handler: (event: AuditEvent) => void | Promise<void>;
22
+ };
@@ -0,0 +1,2 @@
1
+ import type { AuditEvent, AuditTransport } from "./audit.types";
2
+ export declare function logAIGeneration(event: AuditEvent, transport?: AuditTransport): Promise<void>;
@@ -0,0 +1,3 @@
1
+ import type { UINodeTree } from "../manifest/types";
2
+ export declare const ValidAuthFormTree: UINodeTree;
3
+ export declare const InvalidPrimaryActionTree: UINodeTree;
@@ -0,0 +1,3 @@
1
+ import type { UINodeTree } from "../manifest/types";
2
+ export declare const StrictModeFailureTree: UINodeTree;
3
+ export declare const strictModeFailureExample: import("..").AIValidationResult;
@@ -0,0 +1,39 @@
1
+ import { ComponentRegistry } from "./manifest/components.manifest";
2
+ import { getVersionLineage, UDSGovernance } from "./manifest/governance.manifest";
3
+ import { LayoutRules } from "./manifest/layout.manifest";
4
+ import { PatternRegistry } from "./manifest/patterns.manifest";
5
+ import { UDSManifest, UDS_AI_MANIFEST } from "./manifest/system.manifest";
6
+ import { TokenIntentMap } from "./manifest/tokens.intent.manifest";
7
+ export { UDSManifest, UDS_AI_MANIFEST };
8
+ export { ComponentRegistry, PatternRegistry, LayoutRules, TokenIntentMap, UDSGovernance, getVersionLineage };
9
+ export { runPolicyEngine } from "./policies/policy.engine";
10
+ export { validateTree } from "./validation/validateTree";
11
+ export { validateAIOutput } from "./validation/validateAIOutput";
12
+ export { validateSchema } from "./validation/schemaValidation";
13
+ export { detectDrift } from "./validation/driftDetection";
14
+ export { logAIGeneration } from "./audit/auditLogger";
15
+ export { recordUsageMetric, getUsageMetrics, resetUsageMetrics } from "./telemetry/usageMetrics";
16
+ export { ValidAuthFormTree, InvalidPrimaryActionTree } from "./examples/trees.example";
17
+ export { StrictModeFailureTree, strictModeFailureExample } from "./examples/validation-run.example";
18
+ export declare const AI_COMPONENT_METADATA: import(".").ComponentRegistryType;
19
+ export declare const BUTTON_METADATA: import(".").ComponentMetadata;
20
+ export declare const TABLE_METADATA: import(".").ComponentMetadata;
21
+ export declare const FIELD_METADATA: import(".").ComponentMetadata;
22
+ export declare const MODAL_METADATA: import(".").ComponentMetadata;
23
+ export declare const UDS_FLOW_PATTERNS: import(".").FlowPattern[];
24
+ export declare const UDS_TOKEN_INTENTS: {
25
+ intent: string;
26
+ tokens: unknown[];
27
+ guidance: string;
28
+ }[];
29
+ export declare const UDS_LAYOUT_RULES: {
30
+ id: string;
31
+ rule: string;
32
+ rationale: string;
33
+ }[];
34
+ export declare const UDS_GLOBAL_ANTI_PATTERNS: string[];
35
+ export type { ComponentManifestItem as ComponentMetadata, ComponentRegistryType, LayoutManifestRules, PatternManifestItem as FlowPattern, PatternRegistryType, TokenIntentMapType as TokenIntentItem, UDSManifestType as AIManifest, UINodeTree, ValidationError, ValidationResult, GovernanceConfig, VersionLineage, } from "./manifest/types";
36
+ export type { PolicyViolation } from "./policies/policy.types";
37
+ export type { AuditEvent, AuditTransport } from "./audit/audit.types";
38
+ export type { AIValidationResult } from "./validation/validateAIOutput";
39
+ export type { UsageMetric } from "./telemetry/usageMetrics";
@@ -0,0 +1,2 @@
1
+ import type { ComponentRegistryType } from "./types";
2
+ export declare const ComponentRegistry: ComponentRegistryType;
@@ -0,0 +1,5 @@
1
+ import type { GovernanceConfig, VersionLineage } from "./types";
2
+ export declare const AI_MANIFEST_VERSION = "1.0.0";
3
+ export declare const AI_POLICY_VERSION = "1.0.0";
4
+ export declare const UDSGovernance: GovernanceConfig;
5
+ export declare function getVersionLineage(): VersionLineage;
@@ -0,0 +1,2 @@
1
+ import type { LayoutManifestRules } from "./types";
2
+ export declare const LayoutRules: LayoutManifestRules;
@@ -0,0 +1,2 @@
1
+ import type { PatternRegistryType } from "./types";
2
+ export declare const PatternRegistry: PatternRegistryType;
@@ -0,0 +1,3 @@
1
+ import type { UDSManifestType } from "./types";
2
+ export declare const UDSManifest: UDSManifestType;
3
+ export declare const UDS_AI_MANIFEST: UDSManifestType;
@@ -0,0 +1,2 @@
1
+ import type { TokenIntentMapType } from "./types";
2
+ export declare const TokenIntentMap: TokenIntentMapType;
@@ -0,0 +1,133 @@
1
+ export interface ManifestGovernance {
2
+ maxPrimaryActionsPerSection: number;
3
+ spacingUnit: number;
4
+ defaultRadius: string;
5
+ }
6
+ export interface ComponentSlotMeta {
7
+ required: boolean;
8
+ description?: string;
9
+ }
10
+ export interface ComponentManifestItem {
11
+ name: string;
12
+ category: string;
13
+ intent: string;
14
+ priority?: string;
15
+ variants: string[];
16
+ sizes?: string[];
17
+ slots?: Record<string, ComponentSlotMeta>;
18
+ usage: {
19
+ preferredContexts: string[];
20
+ maxPerSection?: number;
21
+ };
22
+ constraints?: {
23
+ onlyOnePrimaryPerSection?: boolean;
24
+ allowedChildren?: string[];
25
+ disallowedChildren?: string[];
26
+ };
27
+ accessibility?: {
28
+ role: string;
29
+ keyboardSupport: string[];
30
+ };
31
+ tokenDependencies: string[];
32
+ }
33
+ export type ComponentRegistryType = Record<string, ComponentManifestItem>;
34
+ export interface PatternStructureNode {
35
+ type: string;
36
+ role?: string;
37
+ props?: Record<string, unknown>;
38
+ }
39
+ export interface PatternManifestItem {
40
+ name: string;
41
+ layout: "vertical" | "horizontal" | "grid";
42
+ requiredComponents: string[];
43
+ structure: PatternStructureNode[];
44
+ spacing: string;
45
+ widthConstraint?: string;
46
+ rules?: Record<string, unknown>;
47
+ }
48
+ export type PatternRegistryType = Record<string, PatternManifestItem>;
49
+ export interface LayoutManifestRules {
50
+ spacingSystem: {
51
+ unit: number;
52
+ allowedTokens: string[];
53
+ defaultToken: string;
54
+ };
55
+ verticalRhythm: {
56
+ sectionGapToken: string;
57
+ contentGapToken: string;
58
+ compactGapToken: string;
59
+ };
60
+ allowedComposition: Record<string, string[]>;
61
+ disallowedNesting: Array<{
62
+ parent: string;
63
+ child: string;
64
+ }>;
65
+ maxWidth: {
66
+ content: string;
67
+ form: string;
68
+ dialog: string;
69
+ };
70
+ actionPlacement: {
71
+ primaryActionPosition: "end";
72
+ secondaryActionPosition: "start" | "end";
73
+ maxPrimaryActionsPerSection: number;
74
+ };
75
+ }
76
+ export interface TokenIntentMapType {
77
+ surface: Record<string, string>;
78
+ action: Record<string, string>;
79
+ text: Record<string, string>;
80
+ border: Record<string, string>;
81
+ state: Record<string, string>;
82
+ }
83
+ export interface UDSManifestType {
84
+ version: string;
85
+ tokenVersion: string;
86
+ components: ComponentRegistryType;
87
+ patterns: PatternRegistryType;
88
+ layout: LayoutManifestRules;
89
+ tokens: TokenIntentMapType;
90
+ governance: ManifestGovernance;
91
+ }
92
+ export interface ValidationError {
93
+ code: "MAX_PRIMARY_ACTIONS" | "INVALID_COMPOSITION" | "INVALID_SPACING_TOKEN" | "DISALLOWED_NESTING";
94
+ path: string;
95
+ message: string;
96
+ meta?: Record<string, unknown>;
97
+ }
98
+ export interface ValidationResult {
99
+ valid: boolean;
100
+ errors: ValidationError[];
101
+ }
102
+ export interface UINodeTree {
103
+ type: string;
104
+ props?: Record<string, unknown>;
105
+ children?: UINodeTree[];
106
+ }
107
+ export interface GovernanceConfig {
108
+ systemVersion: string;
109
+ tokenVersion: string;
110
+ manifestVersion: string;
111
+ policyVersion: string;
112
+ enforcement: {
113
+ strictMode: boolean;
114
+ allowAdHocValues: boolean;
115
+ allowInlineStyles: boolean;
116
+ allowUnknownComponents: boolean;
117
+ };
118
+ limits: {
119
+ maxPrimaryActionsPerSection: number;
120
+ maxActionsPerToolbar: number;
121
+ maxNestingDepth: number;
122
+ };
123
+ compliance: {
124
+ accessibilityStandard: string;
125
+ spacingUnit: number;
126
+ };
127
+ }
128
+ export interface VersionLineage {
129
+ udsVersion: string;
130
+ tokenVersion: string;
131
+ manifestVersion: string;
132
+ policyVersion: string;
133
+ }
@@ -0,0 +1,3 @@
1
+ import type { GovernanceConfig, UINodeTree } from "../manifest/types";
2
+ import type { PolicyViolation } from "./policy.types";
3
+ export declare function runPolicyEngine(tree: UINodeTree, governanceConfig?: GovernanceConfig): PolicyViolation[];
@@ -0,0 +1,14 @@
1
+ import type { GovernanceConfig, UINodeTree } from "../manifest/types";
2
+ export interface PolicyViolation {
3
+ severity: "error" | "warning";
4
+ code: string;
5
+ message: string;
6
+ path: string;
7
+ component?: string;
8
+ token?: string;
9
+ }
10
+ export interface PolicyRuleContext {
11
+ tree: UINodeTree;
12
+ governanceConfig: GovernanceConfig;
13
+ }
14
+ export type PolicyRule = (context: PolicyRuleContext) => PolicyViolation[];
@@ -0,0 +1,2 @@
1
+ import type { PolicyRule } from "../policy.types";
2
+ export declare const enforceAccessibilityRule: PolicyRule;
@@ -0,0 +1,2 @@
1
+ import type { PolicyRule } from "../policy.types";
2
+ export declare const enforcePrimaryActionLimitRule: PolicyRule;
@@ -0,0 +1,2 @@
1
+ import type { PolicyRule } from "../policy.types";
2
+ export declare const enforceCompositionRule: PolicyRule;
@@ -0,0 +1,2 @@
1
+ import type { PolicyRule } from "../policy.types";
2
+ export declare const enforceSpacingTokenRule: PolicyRule;
@@ -0,0 +1,9 @@
1
+ export interface UsageMetric {
2
+ metricType: "component_used" | "rule_violation" | "token_override" | "strict_mode_failure";
3
+ name: string;
4
+ value?: number;
5
+ timestamp?: string;
6
+ }
7
+ export declare function recordUsageMetric(metric: UsageMetric): void;
8
+ export declare function getUsageMetrics(): Record<string, number>;
9
+ export declare function resetUsageMetrics(): void;
@@ -0,0 +1,3 @@
1
+ import type { UINodeTree } from "../manifest/types";
2
+ import type { PolicyViolation } from "../policies/policy.types";
3
+ export declare function detectDrift(tree: UINodeTree): PolicyViolation[];
@@ -0,0 +1,7 @@
1
+ import type { UINodeTree } from "../manifest/types";
2
+ import type { PolicyViolation } from "../policies/policy.types";
3
+ export declare function validateSchema(output: unknown): {
4
+ valid: boolean;
5
+ violations: PolicyViolation[];
6
+ tree?: UINodeTree;
7
+ };
@@ -0,0 +1,12 @@
1
+ import type { GovernanceConfig, VersionLineage } from "../manifest/types";
2
+ import type { PolicyViolation } from "../policies/policy.types";
3
+ export interface AIValidationResult {
4
+ status: "pass" | "fail";
5
+ violations: PolicyViolation[];
6
+ warnings: PolicyViolation[];
7
+ governanceVersionUsed: string;
8
+ manifestVersionUsed: string;
9
+ timestamp: string;
10
+ versionLineage: VersionLineage;
11
+ }
12
+ export declare function validateAIOutput(output: unknown, governanceConfig?: GovernanceConfig): AIValidationResult;
@@ -0,0 +1,2 @@
1
+ import type { UINodeTree, ValidationResult } from "../manifest/types";
2
+ export declare function validateTree(tree: UINodeTree): ValidationResult;
@@ -0,0 +1,4 @@
1
+ export declare const AccordionSpec: {
2
+ readonly allowedVariants: {};
3
+ readonly defaults: {};
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare const ActionMenuSpec: {
2
+ readonly allowedVariants: {};
3
+ readonly defaults: {};
4
+ };
@@ -0,0 +1,6 @@
1
+ export declare const AvatarSpec: {
2
+ readonly allowedVariants: {};
3
+ readonly defaults: {
4
+ readonly size: "default";
5
+ };
6
+ };
@@ -0,0 +1,12 @@
1
+ export declare const BadgeSpec: {
2
+ readonly allowedVariants: {
3
+ readonly variant: readonly ["blue", "cyan", "green", "magenta", "indigo", "rose", "neutral", "orange", "purple", "red", "sky", "yellow", "inverse", "lime"];
4
+ readonly appearance: readonly ["solid", "outlined"];
5
+ readonly rounded: readonly ["true", "false"];
6
+ };
7
+ readonly defaults: {
8
+ readonly variant: "red";
9
+ readonly appearance: "solid";
10
+ readonly rounded: "true";
11
+ };
12
+ };
@@ -0,0 +1,6 @@
1
+ export declare const BrandingSpec: {
2
+ readonly allowedVariants: {};
3
+ readonly defaults: {
4
+ readonly size: "default";
5
+ };
6
+ };
@@ -0,0 +1,4 @@
1
+ export declare const BreadcrumbSpec: {
2
+ readonly allowedVariants: {};
3
+ readonly defaults: {};
4
+ };
@@ -0,0 +1,12 @@
1
+ export declare const ButtonSpec: {
2
+ readonly allowedVariants: {
3
+ readonly layout: readonly ["label-only", "icon-left", "icon-right", "icon-only", "only"];
4
+ readonly appearance: readonly ["primary", "soft", "outline", "text", "ghost", "disabled", "destructive"];
5
+ readonly size: readonly ["large", "default", "small", "xsmall"];
6
+ };
7
+ readonly defaults: {
8
+ readonly appearance: "primary";
9
+ readonly layout: "label-only";
10
+ readonly size: "default";
11
+ };
12
+ };
@@ -0,0 +1,4 @@
1
+ export declare const CalendarSpec: {
2
+ readonly allowedVariants: {};
3
+ readonly defaults: {};
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare const CardSpec: {
2
+ readonly allowedVariants: {};
3
+ readonly defaults: {};
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare const CheckboxSpec: {
2
+ readonly allowedVariants: {};
3
+ readonly defaults: {};
4
+ };
@@ -0,0 +1,13 @@
1
+ export declare const ChipSpec: {
2
+ readonly allowedVariants: {
3
+ readonly appearance: readonly ["outline", "primary"];
4
+ readonly shape: readonly ["pill", "rounded"];
5
+ readonly iconplacement: readonly ["both", "left", "right", "none"];
6
+ };
7
+ readonly defaults: {
8
+ readonly appearance: "outline";
9
+ readonly shape: "pill";
10
+ readonly iconPlacement: "none";
11
+ readonly badgeVariant: "red";
12
+ };
13
+ };
@@ -0,0 +1,10 @@
1
+ export declare const CodeSpec: {
2
+ readonly allowedVariants: {
3
+ readonly language: readonly ["markup", "css", "clike", "javascript", "typescript", "tsx", "jsx", "json", "bash", "sql"];
4
+ readonly inline: readonly [true, false];
5
+ };
6
+ readonly defaults: {
7
+ readonly language: "javascript";
8
+ readonly inline: false;
9
+ };
10
+ };
@@ -0,0 +1,2 @@
1
+ import type { ComponentSpec } from "../../specs/spec.types";
2
+ export declare const ContainerSpec: ComponentSpec;
@@ -0,0 +1,6 @@
1
+ export declare const DatepickerSpec: {
2
+ readonly allowedVariants: {};
3
+ readonly defaults: {
4
+ readonly size: "desktop";
5
+ };
6
+ };
@@ -0,0 +1,8 @@
1
+ export declare const DialogSpec: {
2
+ readonly allowedVariants: {};
3
+ readonly defaults: {
4
+ readonly intent: "info";
5
+ readonly confirmLabel: "Confirm";
6
+ readonly cancelLabel: "Cancel";
7
+ };
8
+ };
@@ -0,0 +1,10 @@
1
+ export declare const DividerSpec: {
2
+ readonly allowedVariants: {
3
+ readonly alignment: readonly ["left", "center", "right"];
4
+ readonly variant: readonly ["line", "solid"];
5
+ };
6
+ readonly defaults: {
7
+ readonly variant: "line";
8
+ readonly alignment: "center";
9
+ };
10
+ };
@@ -0,0 +1,10 @@
1
+ export declare const DotStatusSpec: {
2
+ readonly allowedVariants: {
3
+ readonly variant: readonly ["light-gray", "red", "orange", "yellow", "light-green", "green", "blue", "dark-blue", "teal", "purple", "pink", "magenta", "dark-red", "dark-gray"];
4
+ readonly size: readonly ["small", "medium", "large"];
5
+ };
6
+ readonly defaults: {
7
+ readonly variant: "blue";
8
+ readonly size: "medium";
9
+ };
10
+ };