@mich8060/unified-design-system 0.2.30 → 0.2.32
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/dist/ai/discovery.json +2 -0
- package/dist/ai/figma-make.contract.json +2 -1
- package/dist/ai/figma-make.md +1 -1
- package/dist/ai/prompts/figma-make.prompt.md +1 -0
- package/dist/ai/prompts/starter.prompt.md +1 -0
- package/dist/ai/prompts/system.prompt.md +2 -0
- package/dist/components/Flex/Flex.cjs +1 -1
- package/dist/components/Flex/Flex.js +1 -1
- package/dist/design-system/components/Flex/Flex.types.d.ts +4 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/ai/discovery.json
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"@mich8060/unified-design-system/ai/manifest.json",
|
|
8
8
|
"@mich8060/unified-design-system/ai/schema",
|
|
9
9
|
"@mich8060/unified-design-system/ai/icons",
|
|
10
|
+
"@mich8060/unified-design-system/ai/icons.json",
|
|
10
11
|
"@mich8060/unified-design-system/ai/figma-make.json",
|
|
11
12
|
"@mich8060/unified-design-system/ai/figma-make",
|
|
12
13
|
"@mich8060/unified-design-system/ai/prompts/figma-make",
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
"contractManifest": "@mich8060/unified-design-system/ai/manifest.json",
|
|
25
26
|
"schema": "@mich8060/unified-design-system/ai/schema",
|
|
26
27
|
"iconCatalog": "@mich8060/unified-design-system/ai/icons",
|
|
28
|
+
"iconCatalogJson": "@mich8060/unified-design-system/ai/icons.json",
|
|
27
29
|
"figmaMakeContractJson": "@mich8060/unified-design-system/ai/figma-make.json",
|
|
28
30
|
"figmaMakeContract": "@mich8060/unified-design-system/ai/figma-make",
|
|
29
31
|
"figmaMakePrompt": "@mich8060/unified-design-system/ai/prompts/figma-make",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"Token-driven styling with governed UDS tokens.",
|
|
9
9
|
"No Tailwind utilities or className-based utility styling.",
|
|
10
10
|
"Use governed component composition rules and layout templates.",
|
|
11
|
-
"
|
|
11
|
+
"Load icon options from the UDS icon catalog before assigning icon props."
|
|
12
12
|
],
|
|
13
13
|
"hardConstraints": {
|
|
14
14
|
"allowedImports": [
|
|
@@ -183,6 +183,7 @@
|
|
|
183
183
|
"manifest": "@mich8060/unified-design-system/ai/manifest.json",
|
|
184
184
|
"schema": "@mich8060/unified-design-system/ai/schema",
|
|
185
185
|
"icons": "@mich8060/unified-design-system/ai/icons",
|
|
186
|
+
"iconsJson": "@mich8060/unified-design-system/ai/icons.json",
|
|
186
187
|
"templates": "@mich8060/unified-design-system/ai/templates",
|
|
187
188
|
"validation": "@mich8060/unified-design-system/ai/validation",
|
|
188
189
|
"adapter": "@mich8060/unified-design-system/figma-make"
|
package/dist/ai/figma-make.md
CHANGED
|
@@ -49,7 +49,7 @@ Use this contract when generating interfaces from Figma Make into code for `@mic
|
|
|
49
49
|
|
|
50
50
|
## Icon Guidance
|
|
51
51
|
|
|
52
|
-
- Choose icon names only from `@mich8060/unified-design-system/ai/icons
|
|
52
|
+
- Choose icon names only from `@mich8060/unified-design-system/ai/icons` (alias: `@mich8060/unified-design-system/ai/icons.json`).
|
|
53
53
|
- Prefer intent-aligned icons from catalog `recommendedByIntent`.
|
|
54
54
|
|
|
55
55
|
## Brand Navigation Guidance
|
|
@@ -7,6 +7,7 @@ Hard requirements:
|
|
|
7
7
|
- Do not use Tailwind classes or utility CSS.
|
|
8
8
|
- Do not use ad-hoc `className` styling.
|
|
9
9
|
- Ensure app root is wrapped in `BrowserRouter` (or `RouterProvider`) before rendering route-aware UDS components.
|
|
10
|
+
- Load icons from `@mich8060/unified-design-system/ai/icons` (alias `@mich8060/unified-design-system/ai/icons.json`) before assigning icon props.
|
|
10
11
|
- Do not create custom CSS variables.
|
|
11
12
|
- Use only `--uds-*` variables or hardcoded literals.
|
|
12
13
|
- Use canonical prop names only (reject Ant-style aliases like `Menu.items`, `Flex.vertical`, `Button.type`).
|
|
@@ -12,6 +12,7 @@ Hard rules:
|
|
|
12
12
|
- Never use Tailwind classes/utilities.
|
|
13
13
|
- Never invent CSS variables. Use `--uds-*` tokens or hardcoded literals.
|
|
14
14
|
- Prefer canonical props from the AI manifest and component contracts.
|
|
15
|
+
- Load icon options from `@mich8060/unified-design-system/ai/icons` (alias: `@mich8060/unified-design-system/ai/icons.json`) before assigning any icon prop.
|
|
15
16
|
- Default `Container` to `appearance=\"transparent\"` and `padding=\"large\"` (24px) unless overridden by explicit requirements.
|
|
16
17
|
|
|
17
18
|
Required layout scaffold:
|
|
@@ -5,6 +5,7 @@ Contract discovery order:
|
|
|
5
5
|
- `@mich8060/unified-design-system/ai/manifest.json`
|
|
6
6
|
- `@mich8060/unified-design-system/ai/schema`
|
|
7
7
|
- `@mich8060/unified-design-system/ai/icons`
|
|
8
|
+
- `@mich8060/unified-design-system/ai/icons.json`
|
|
8
9
|
- `@mich8060/unified-design-system/ai/navigation`
|
|
9
10
|
- `@mich8060/unified-design-system/ai/templates`
|
|
10
11
|
|
|
@@ -15,6 +16,7 @@ Hard constraints:
|
|
|
15
16
|
- Use semantic token intents from `ai/manifest/tokens.intent.manifest.ts`.
|
|
16
17
|
- Resolve UI intents using `ai/manifest/intent-mappings.manifest.ts` before freeform composition.
|
|
17
18
|
- Respect governance limits from `ai/manifest/governance.manifest.ts`.
|
|
19
|
+
- Load icon options from `@mich8060/unified-design-system/ai/icons` (or `@mich8060/unified-design-system/ai/icons.json`) before choosing icons.
|
|
18
20
|
- Use icon names from the icon catalog (`ai/icons/catalog.json`) when adding icons.
|
|
19
21
|
- Maximum one primary button per section.
|
|
20
22
|
- No raw HTML tags.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),p=require("react");;/* empty css */const z=new Set(["0","2","4","6","8","10","12","14","16","18","24","32","48","64","80"]);function N(e){return e===!0?"wrap":e===!1||e==null?"nowrap":e}function a(e){return e.replace(/\s+/g,"-")}function T(e,n){if(e)return"flex-start";if(n)return"flex-end"}function E(e,n){if(e)return"flex-start";if(n)return"flex-end"}function K(e){var l;if(e==null)return;const n=String(e).trim();if(n==="auto")return;const t=((l=n.match(/^spacing-(\d+)$/))==null?void 0:l[1])??n;return z.has(t)?`var(--uds-spacing-${t})`:e}const L=p.forwardRef(function({as:n="div",direction:t="row",justifyContent:l,alignItems:o,top:s=!1,bottom:u=!1,left:F=!1,right:S=!1,wrap:h=!1,gap:i,fullWidth:c=!1,span:j=!1,inline:A=!1,className:$,style:r,children:R,...b},B){const G=N(h),_=String(i).trim()==="auto",d=T(s,u),x=E(F,S),m=l??(t==="row"?x:d),v=o??(t==="row"?d:x),q=["uds-flex",`uds-flex--direction-${t}`,m&&`uds-flex--justify-${a(m)}`,v&&`uds-flex--align-${a(v)}`,`uds-flex--wrap-${a(G)}`,A&&"uds-flex--inline",c&&"uds-flex--full-width",j&&"uds-flex--span",_&&"uds-flex--gap-auto",$].filter(Boolean).join(" "),f={};return i!=null&&(r==null?void 0:r.gap)==null&&(f.gap=K(i)),c&&(r==null?void 0:r.width)==null&&(f.width="100%"),g.jsx(n,{ref:B,className:q,style:{...f,...r},...b,children:R})}),O=p.forwardRef(function({as:n="div",className:t,children:l,...o},s){const u=["uds-flex__full",t].filter(Boolean).join(" ");return g.jsx(n,{ref:s,className:u,...o,children:l})}),w=L;w.Full=O;exports.Flex=w;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as v}from"react/jsx-runtime";import w from"react";/* empty css */const N=new Set(["0","2","4","6","8","10","12","14","16","18","24","32","48","64","80"]);function b(e){return e===!0?"wrap":e===!1||e==null?"nowrap":e}function a(e){return e.replace(/\s+/g,"-")}function E(e,n){if(e)return"flex-start";if(n)return"flex-end"}function K(e,n){if(e)return"flex-start";if(n)return"flex-end"}function L(e){var o;if(e==null)return;const n=String(e).trim();if(n==="auto")return;const t=((o=n.match(/^spacing-(\d+)$/))==null?void 0:o[1])??n;return N.has(t)?`var(--uds-spacing-${t})`:e}const T=w.forwardRef(function({as:n="div",direction:t="row",justifyContent:o,alignItems:l,top:f=!1,bottom:s=!1,left:g=!1,right:F=!1,wrap:h=!1,gap:u,fullWidth:c=!1,span:A=!1,inline:S=!1,className:$,style:r,children:j,...B},G){const R=b(h),_=String(u).trim()==="auto",d=E(f,s),x=K(g,F),m=o??(t==="row"?x:d),p=l??(t==="row"?d:x),z=["uds-flex",`uds-flex--direction-${t}`,m&&`uds-flex--justify-${a(m)}`,p&&`uds-flex--align-${a(p)}`,`uds-flex--wrap-${a(R)}`,S&&"uds-flex--inline",c&&"uds-flex--full-width",A&&"uds-flex--span",_&&"uds-flex--gap-auto",$].filter(Boolean).join(" "),i={};return u!=null&&(r==null?void 0:r.gap)==null&&(i.gap=L(u)),c&&(r==null?void 0:r.width)==null&&(i.width="100%"),v(n,{ref:G,className:z,style:{...i,...r},...B,children:j})}),V=w.forwardRef(function({as:n="div",className:t,children:o,...l},f){const s=["uds-flex__full",t].filter(Boolean).join(" ");return v(n,{ref:f,className:s,...l,children:o})}),k=T;k.Full=V;export{k as Flex};
|
|
@@ -11,6 +11,10 @@ export interface FlexProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
11
11
|
direction?: FlexDirection;
|
|
12
12
|
justifyContent?: FlexJustifyContent;
|
|
13
13
|
alignItems?: FlexAlignItems;
|
|
14
|
+
top?: boolean;
|
|
15
|
+
bottom?: boolean;
|
|
16
|
+
left?: boolean;
|
|
17
|
+
right?: boolean;
|
|
14
18
|
wrap?: boolean | FlexWrap;
|
|
15
19
|
gap?: FlexGapToken | FlexGapTokenName | FlexGapSpecial | number | string;
|
|
16
20
|
fullWidth?: boolean;
|