@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.
- package/README.md +8 -0
- package/dist/ai/audit/auditLogger.cjs +2 -0
- package/dist/ai/audit/auditLogger.js +2 -0
- package/dist/ai/examples/trees.example.cjs +1 -0
- package/dist/ai/examples/trees.example.js +1 -0
- package/dist/ai/examples/validation-run.example.cjs +1 -0
- package/dist/ai/examples/validation-run.example.js +1 -0
- package/dist/ai/index.cjs +1 -0
- package/dist/ai/index.js +1 -0
- package/dist/ai/manifest/components.manifest.cjs +1 -0
- package/dist/ai/manifest/components.manifest.js +1 -0
- package/dist/ai/manifest/governance.manifest.cjs +1 -0
- package/dist/ai/manifest/governance.manifest.js +1 -0
- package/dist/ai/manifest/layout.manifest.cjs +1 -0
- package/dist/ai/manifest/layout.manifest.js +1 -0
- package/dist/ai/manifest/patterns.manifest.cjs +1 -0
- package/dist/ai/manifest/patterns.manifest.js +1 -0
- package/dist/ai/manifest/system.manifest.cjs +1 -0
- package/dist/ai/manifest/system.manifest.js +1 -0
- package/dist/ai/manifest/tokens.intent.manifest.cjs +1 -0
- package/dist/ai/manifest/tokens.intent.manifest.js +1 -0
- package/dist/ai/policies/policy.engine.cjs +1 -0
- package/dist/ai/policies/policy.engine.js +1 -0
- package/dist/ai/policies/rules/accessibility.rules.cjs +1 -0
- package/dist/ai/policies/rules/accessibility.rules.js +1 -0
- package/dist/ai/policies/rules/action.rules.cjs +1 -0
- package/dist/ai/policies/rules/action.rules.js +1 -0
- package/dist/ai/policies/rules/composition.rules.cjs +1 -0
- package/dist/ai/policies/rules/composition.rules.js +1 -0
- package/dist/ai/policies/rules/spacing.rules.cjs +1 -0
- package/dist/ai/policies/rules/spacing.rules.js +1 -0
- package/dist/ai/telemetry/usageMetrics.cjs +1 -0
- package/dist/ai/telemetry/usageMetrics.js +1 -0
- package/dist/ai/validation/driftDetection.cjs +1 -0
- package/dist/ai/validation/driftDetection.js +1 -0
- package/dist/ai/validation/schemaValidation.cjs +1 -0
- package/dist/ai/validation/schemaValidation.js +1 -0
- package/dist/ai/validation/validateAIOutput.cjs +1 -0
- package/dist/ai/validation/validateAIOutput.js +1 -0
- package/dist/ai/validation/validateTree.cjs +1 -0
- package/dist/ai/validation/validateTree.js +1 -0
- package/dist/components/Accordion/Accordion.spec.cjs +1 -0
- package/dist/components/Accordion/Accordion.spec.js +1 -0
- package/dist/components/ActionMenu/ActionMenu.spec.cjs +1 -0
- package/dist/components/ActionMenu/ActionMenu.spec.js +1 -0
- package/dist/components/Avatar/Avatar.spec.cjs +1 -0
- package/dist/components/Avatar/Avatar.spec.js +1 -0
- package/dist/components/Badge/Badge.spec.cjs +1 -0
- package/dist/components/Badge/Badge.spec.js +1 -0
- package/dist/components/Branding/Branding.spec.cjs +1 -0
- package/dist/components/Branding/Branding.spec.js +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.spec.cjs +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.spec.js +1 -0
- package/dist/components/Button/Button.spec.cjs +1 -0
- package/dist/components/Button/Button.spec.js +1 -0
- package/dist/components/Calendar/Calendar.spec.cjs +1 -0
- package/dist/components/Calendar/Calendar.spec.js +1 -0
- package/dist/components/Card/Card.spec.cjs +1 -0
- package/dist/components/Card/Card.spec.js +1 -0
- package/dist/components/Checkbox/Checkbox.spec.cjs +1 -0
- package/dist/components/Checkbox/Checkbox.spec.js +1 -0
- package/dist/components/Chip/Chip.spec.cjs +1 -0
- package/dist/components/Chip/Chip.spec.js +1 -0
- package/dist/components/Code/Code.spec.cjs +1 -0
- package/dist/components/Code/Code.spec.js +1 -0
- package/dist/components/Container/Container.spec.cjs +1 -0
- package/dist/components/Container/Container.spec.js +1 -0
- package/dist/components/Datepicker/Datepicker.spec.cjs +1 -0
- package/dist/components/Datepicker/Datepicker.spec.js +1 -0
- package/dist/components/Dialog/Dialog.spec.cjs +1 -0
- package/dist/components/Dialog/Dialog.spec.js +1 -0
- package/dist/components/Divider/Divider.spec.cjs +1 -0
- package/dist/components/Divider/Divider.spec.js +1 -0
- package/dist/components/DotStatus/DotStatus.spec.cjs +1 -0
- package/dist/components/DotStatus/DotStatus.spec.js +1 -0
- package/dist/components/Dropdown/Dropdown.spec.cjs +1 -0
- package/dist/components/Dropdown/Dropdown.spec.js +1 -0
- package/dist/components/EmptyState/EmptyState.spec.cjs +1 -0
- package/dist/components/EmptyState/EmptyState.spec.js +1 -0
- package/dist/components/EventCard/EventCard.spec.cjs +1 -0
- package/dist/components/EventCard/EventCard.spec.js +1 -0
- package/dist/components/Field/Field.spec.cjs +1 -0
- package/dist/components/Field/Field.spec.js +1 -0
- package/dist/components/FileUpload/FileUpload.spec.cjs +1 -0
- package/dist/components/FileUpload/FileUpload.spec.js +1 -0
- package/dist/components/Flex/Flex.spec.cjs +1 -0
- package/dist/components/Flex/Flex.spec.js +1 -0
- package/dist/components/Icon/Icon.spec.cjs +1 -0
- package/dist/components/Icon/Icon.spec.js +1 -0
- package/dist/components/ImageAspect/ImageAspect.spec.cjs +1 -0
- package/dist/components/ImageAspect/ImageAspect.spec.js +1 -0
- package/dist/components/Key/Key.spec.cjs +1 -0
- package/dist/components/Key/Key.spec.js +1 -0
- package/dist/components/Menu/Menu.spec.cjs +1 -0
- package/dist/components/Menu/Menu.spec.js +1 -0
- package/dist/components/MicroCalendar/MicroCalendar.spec.cjs +1 -0
- package/dist/components/MicroCalendar/MicroCalendar.spec.js +1 -0
- package/dist/components/Modal/Modal.spec.cjs +1 -0
- package/dist/components/Modal/Modal.spec.js +1 -0
- package/dist/components/Pagination/Pagination.spec.cjs +1 -0
- package/dist/components/Pagination/Pagination.spec.js +1 -0
- package/dist/components/PillToggle/PillToggle.spec.cjs +1 -0
- package/dist/components/PillToggle/PillToggle.spec.js +1 -0
- package/dist/components/Playground/Playground.spec.cjs +1 -0
- package/dist/components/Playground/Playground.spec.js +1 -0
- package/dist/components/ProgressCircle/ProgressCircle.spec.cjs +1 -0
- package/dist/components/ProgressCircle/ProgressCircle.spec.js +1 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.spec.cjs +1 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.spec.js +1 -0
- package/dist/components/Radio/Radio.spec.cjs +1 -0
- package/dist/components/Radio/Radio.spec.js +1 -0
- package/dist/components/Slider/Slider.spec.cjs +1 -0
- package/dist/components/Slider/Slider.spec.js +1 -0
- package/dist/components/Status/Status.spec.cjs +1 -0
- package/dist/components/Status/Status.spec.js +1 -0
- package/dist/components/Steps/Steps.spec.cjs +1 -0
- package/dist/components/Steps/Steps.spec.js +1 -0
- package/dist/components/Table/Table.spec.cjs +1 -0
- package/dist/components/Table/Table.spec.js +1 -0
- package/dist/components/Tabs/Tabs.spec.cjs +1 -0
- package/dist/components/Tabs/Tabs.spec.js +1 -0
- package/dist/components/Tag/Tag.spec.cjs +1 -0
- package/dist/components/Tag/Tag.spec.js +1 -0
- package/dist/components/Text/Text.spec.cjs +1 -1
- package/dist/components/Text/Text.spec.js +1 -1
- package/dist/components/TextInput/TextInput.spec.cjs +1 -0
- package/dist/components/TextInput/TextInput.spec.js +1 -0
- package/dist/components/Textarea/Textarea.spec.cjs +1 -0
- package/dist/components/Textarea/Textarea.spec.js +1 -0
- package/dist/components/Toast/Toast.spec.cjs +1 -0
- package/dist/components/Toast/Toast.spec.js +1 -0
- package/dist/components/Toggle/Toggle.spec.cjs +1 -0
- package/dist/components/Toggle/Toggle.spec.js +1 -0
- package/dist/components/Tooltip/Tooltip.spec.cjs +1 -0
- package/dist/components/Tooltip/Tooltip.spec.js +1 -0
- package/dist/design-system/ai/audit/audit.types.d.ts +22 -0
- package/dist/design-system/ai/audit/auditLogger.d.ts +2 -0
- package/dist/design-system/ai/examples/trees.example.d.ts +3 -0
- package/dist/design-system/ai/examples/validation-run.example.d.ts +3 -0
- package/dist/design-system/ai/index.d.ts +39 -0
- package/dist/design-system/ai/manifest/components.manifest.d.ts +2 -0
- package/dist/design-system/ai/manifest/governance.manifest.d.ts +5 -0
- package/dist/design-system/ai/manifest/layout.manifest.d.ts +2 -0
- package/dist/design-system/ai/manifest/patterns.manifest.d.ts +2 -0
- package/dist/design-system/ai/manifest/system.manifest.d.ts +3 -0
- package/dist/design-system/ai/manifest/tokens.intent.manifest.d.ts +2 -0
- package/dist/design-system/ai/manifest/types.d.ts +133 -0
- package/dist/design-system/ai/policies/policy.engine.d.ts +3 -0
- package/dist/design-system/ai/policies/policy.types.d.ts +14 -0
- package/dist/design-system/ai/policies/rules/accessibility.rules.d.ts +2 -0
- package/dist/design-system/ai/policies/rules/action.rules.d.ts +2 -0
- package/dist/design-system/ai/policies/rules/composition.rules.d.ts +2 -0
- package/dist/design-system/ai/policies/rules/spacing.rules.d.ts +2 -0
- package/dist/design-system/ai/telemetry/usageMetrics.d.ts +9 -0
- package/dist/design-system/ai/validation/driftDetection.d.ts +3 -0
- package/dist/design-system/ai/validation/schemaValidation.d.ts +7 -0
- package/dist/design-system/ai/validation/validateAIOutput.d.ts +12 -0
- package/dist/design-system/ai/validation/validateTree.d.ts +2 -0
- package/dist/design-system/components/Accordion/Accordion.spec.d.ts +4 -0
- package/dist/design-system/components/ActionMenu/ActionMenu.spec.d.ts +4 -0
- package/dist/design-system/components/Avatar/Avatar.spec.d.ts +6 -0
- package/dist/design-system/components/Badge/Badge.spec.d.ts +12 -0
- package/dist/design-system/components/Branding/Branding.spec.d.ts +6 -0
- package/dist/design-system/components/Breadcrumb/Breadcrumb.spec.d.ts +4 -0
- package/dist/design-system/components/Button/Button.spec.d.ts +12 -0
- package/dist/design-system/components/Calendar/Calendar.spec.d.ts +4 -0
- package/dist/design-system/components/Card/Card.spec.d.ts +4 -0
- package/dist/design-system/components/Checkbox/Checkbox.spec.d.ts +4 -0
- package/dist/design-system/components/Chip/Chip.spec.d.ts +13 -0
- package/dist/design-system/components/Code/Code.spec.d.ts +10 -0
- package/dist/design-system/components/Container/Container.spec.d.ts +2 -0
- package/dist/design-system/components/Datepicker/Datepicker.spec.d.ts +6 -0
- package/dist/design-system/components/Dialog/Dialog.spec.d.ts +8 -0
- package/dist/design-system/components/Divider/Divider.spec.d.ts +10 -0
- package/dist/design-system/components/DotStatus/DotStatus.spec.d.ts +10 -0
- package/dist/design-system/components/Dropdown/Dropdown.spec.d.ts +12 -0
- package/dist/design-system/components/EmptyState/EmptyState.spec.d.ts +2 -0
- package/dist/design-system/components/EventCard/EventCard.spec.d.ts +8 -0
- package/dist/design-system/components/Field/Field.spec.d.ts +4 -0
- package/dist/design-system/components/FileUpload/FileUpload.spec.d.ts +6 -0
- package/dist/design-system/components/Flex/Flex.spec.d.ts +2 -0
- package/dist/design-system/components/Icon/Icon.spec.d.ts +6 -0
- package/dist/design-system/components/ImageAspect/ImageAspect.spec.d.ts +8 -0
- package/dist/design-system/components/Key/Key.spec.d.ts +8 -0
- package/dist/design-system/components/Menu/Menu.spec.d.ts +6 -0
- package/dist/design-system/components/MicroCalendar/MicroCalendar.spec.d.ts +4 -0
- package/dist/design-system/components/Modal/Modal.spec.d.ts +8 -0
- package/dist/design-system/components/Pagination/Pagination.spec.d.ts +6 -0
- package/dist/design-system/components/PillToggle/PillToggle.spec.d.ts +6 -0
- package/dist/design-system/components/Playground/Playground.spec.d.ts +6 -0
- package/dist/design-system/components/ProgressCircle/ProgressCircle.spec.d.ts +10 -0
- package/dist/design-system/components/ProgressIndicator/ProgressIndicator.spec.d.ts +10 -0
- package/dist/design-system/components/Radio/Radio.spec.d.ts +4 -0
- package/dist/design-system/components/Slider/Slider.spec.d.ts +4 -0
- package/dist/design-system/components/Status/Status.spec.d.ts +11 -0
- package/dist/design-system/components/Steps/Steps.spec.d.ts +11 -0
- package/dist/design-system/components/Table/Table.spec.d.ts +4 -0
- package/dist/design-system/components/Tabs/Tabs.spec.d.ts +7 -0
- package/dist/design-system/components/Tag/Tag.spec.d.ts +13 -0
- package/dist/design-system/components/TextInput/TextInput.spec.d.ts +12 -0
- package/dist/design-system/components/Textarea/Textarea.spec.d.ts +10 -0
- package/dist/design-system/components/Toast/Toast.spec.d.ts +8 -0
- package/dist/design-system/components/Toggle/Toggle.spec.d.ts +8 -0
- package/dist/design-system/components/Tooltip/Tooltip.spec.d.ts +8 -0
- package/dist/design-system/tokens/runtime/color.d.ts +40 -0
- package/dist/design-system/tokens/runtime/generateCss.d.ts +2 -0
- package/dist/design-system/tokens/runtime/index.d.ts +476 -0
- package/dist/design-system/tokens/runtime/motion.d.ts +14 -0
- package/dist/design-system/tokens/runtime/radius.d.ts +14 -0
- package/dist/design-system/tokens/runtime/shadow.d.ts +22 -0
- package/dist/design-system/tokens/runtime/spacing.d.ts +21 -0
- package/dist/design-system/tokens/runtime/types.d.ts +21 -0
- package/dist/design-system/tokens/runtime/typography.d.ts +87 -0
- package/dist/design-system/version.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +1 -0
- package/dist/tokens/runtime/color.cjs +1 -0
- package/dist/tokens/runtime/color.js +1 -0
- package/dist/tokens/runtime/index.cjs +1 -0
- package/dist/tokens/runtime/index.js +1 -0
- package/dist/tokens/runtime/radius.cjs +1 -0
- package/dist/tokens/runtime/radius.js +1 -0
- package/dist/tokens/runtime/spacing.cjs +1 -0
- package/dist/tokens/runtime/spacing.js +1 -0
- package/dist/version.cjs +1 -0
- package/dist/version.js +1 -0
- 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,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,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,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,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,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,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,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,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,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,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
|
+
};
|