@mich8060/unified-design-system 0.2.34 → 0.2.36
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 +7 -1
- package/dist/ai/examples/admin-users-table-uds.jsonl +5 -0
- package/dist/ai/examples/calendar-events-layout-uds.jsonl +5 -0
- package/dist/ai/examples/dashboard-statistics-uds.jsonl +5 -0
- package/dist/ai/examples/dataset.index.json +42 -0
- package/dist/ai/examples/kanban-board-uds.jsonl +5 -0
- package/dist/ai/examples/settings-preferences-uds.jsonl +5 -0
- package/dist/ai/examples/signin-flow-uds.jsonl +9 -0
- package/dist/ai/examples/training.examples.cjs +1 -1
- package/dist/ai/examples/training.examples.js +1 -1
- package/dist/ai/examples/uds-governed-training.jsonl +5 -0
- package/dist/ai/figma-make.contract.json +11 -1
- package/dist/ai/figma-make.md +53 -7
- package/dist/ai/layout/architecture.json +39 -0
- package/dist/ai/manifest/composition.manifest.cjs +1 -1
- package/dist/ai/manifest/composition.manifest.js +1 -1
- package/dist/ai/manifest/intent-mappings.manifest.cjs +1 -1
- package/dist/ai/manifest/intent-mappings.manifest.js +1 -1
- package/dist/ai/manifest/patterns.manifest.cjs +1 -1
- package/dist/ai/manifest/patterns.manifest.js +1 -1
- package/dist/ai/manifest.json +538 -66
- package/dist/ai/navigation/brand-menus.json +7 -0
- package/dist/ai/policies/policy.engine.cjs +1 -1
- package/dist/ai/policies/policy.engine.js +1 -1
- package/dist/ai/policies/rules/pattern-structure.rules.cjs +1 -0
- package/dist/ai/policies/rules/pattern-structure.rules.js +1 -0
- package/dist/ai/policies/rules/props.rules.cjs +1 -1
- package/dist/ai/policies/rules/props.rules.js +1 -1
- package/dist/ai/prompts/figma-make.prompt.md +7 -0
- package/dist/ai/prompts/system.prompt.md +4 -1
- package/dist/ai/schemas/ai-output.schema.json +1 -0
- package/dist/ai/templates/layouts.json +5 -0
- package/dist/ai/tokens/catalog.json +72 -0
- package/dist/ai/validation/validateAIOutput.cjs +1 -1
- package/dist/ai/validation/validateAIOutput.js +1 -1
- package/dist/app-shell/AppShell.d.ts +4 -0
- package/dist/components/ActionMenu/ActionMenu.cjs +1 -1
- package/dist/components/ActionMenu/ActionMenu.js +1 -1
- package/dist/components/Dropdown/Dropdown.cjs +1 -1
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Layout/Layout.cjs +1 -0
- package/dist/components/Layout/Layout.js +1 -0
- package/dist/components/Link/Link.cjs +1 -0
- package/dist/components/Link/Link.js +1 -0
- package/dist/components/Menu/Menu.cjs +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/ProvidersCard/ProvidersCard.cjs +1 -1
- package/dist/components/ProvidersCard/ProvidersCard.js +1 -1
- package/dist/components/SectionHeader/SectionHeader.cjs +1 -1
- package/dist/components/SectionHeader/SectionHeader.js +1 -1
- package/dist/design-system/ai/examples/training.examples.d.ts +1 -0
- package/dist/design-system/ai/manifest/intent-mappings.manifest.d.ts +1 -1
- package/dist/design-system/ai/policies/policy.engine.d.ts +3 -1
- package/dist/design-system/ai/policies/policy.types.d.ts +1 -0
- package/dist/design-system/ai/policies/rules/pattern-structure.rules.d.ts +2 -0
- package/dist/design-system/components/ActionMenu/ActionMenu.d.ts +1 -1
- package/dist/design-system/components/ActionMenu/ActionMenu.types.d.ts +3 -0
- package/dist/design-system/components/Dropdown/Dropdown.d.ts +1 -2
- package/dist/design-system/components/Dropdown/Dropdown.types.d.ts +0 -1
- package/dist/design-system/components/Flex/index.d.ts +2 -2
- package/dist/design-system/components/Layout/Layout.d.ts +16 -0
- package/dist/design-system/components/{Flex/Flex.types.d.ts → Layout/Layout.types.d.ts} +2 -6
- package/dist/design-system/components/Layout/index.d.ts +3 -0
- package/dist/design-system/components/Link/Link.d.ts +4 -0
- package/dist/design-system/components/Link/Link.types.d.ts +8 -0
- package/dist/design-system/components/Link/index.d.ts +3 -0
- package/dist/design-system/constants.d.ts +1 -1
- package/dist/design-system/figma-make/index.d.ts +1 -1
- package/dist/design-system/generated/component-api.d.ts +111 -16
- package/dist/design-system/index.d.ts +2 -1
- package/dist/design-system/version.d.ts +1 -1
- package/dist/figma-make/index.cjs +1 -1
- package/dist/figma-make/index.js +1 -1
- package/dist/generated/component-api.cjs +1 -1
- package/dist/generated/component-api.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/src/app-shell/AppShell.cjs +1 -1
- package/dist/src/app-shell/AppShell.js +1 -1
- package/dist/style.css +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/package.json +15 -2
- package/dist/components/Flex/Flex.cjs +0 -1
- package/dist/components/Flex/Flex.js +0 -1
- package/dist/design-system/components/Flex/Flex.d.ts +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css */const r=require("../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css */const r=require("../Layout/Layout.cjs"),l=require("../Text/Text.cjs"),m=require("../Status/Status.cjs"),f=require("../Tag/Tag.cjs"),b=require("../Divider/Divider.cjs"),y=require("../Button/Button.cjs"),s=a=>a!=null&&a!==!1&&a!=="";function q({name:a,specialty:t,location:i,availability:w,startDate:d,statusLabel:o,statusVariant:x="green",avatarSrc:F,avatarInitials:T,tags:c=[],primaryAction:g,secondaryAction:u,className:p="",...j}){const h=g??e.jsx(y.default,{label:"Request Assignment",appearance:"ghost"}),v=["uds-providers-card",p].filter(Boolean).join(" ");return e.jsx("div",{className:v,...j,children:e.jsxs(r.Flex,{direction:"column",gap:"16",children:[e.jsxs(r.Flex,{className:"uds-providers-card__header",alignItems:"flex-start",justifyContent:"space-between",gap:"12",wrap:!0,children:[e.jsx(r.Flex,{className:"uds-providers-card__identity",alignItems:"flex-start",justifyContent:"flex-start",gap:"10",children:e.jsxs(r.Flex,{direction:"column",gap:"2",children:[e.jsx(l.Text,{as:"h3",variant:"body-16",weight:"bold",leading:"regular",children:a}),s(t)?e.jsx(l.Text,{as:"p",variant:"body-14",leading:"regular",style:{color:"var(--uds-text-secondary)"},children:t}):null,s(i)?e.jsx(l.Text,{as:"p",variant:"body-14",leading:"regular",children:i}):null,s(d)?e.jsxs(l.Text,{as:"p",variant:"body-14",leading:"regular",children:[e.jsx("strong",{children:"Start Date:"})," ",d]}):null]})}),s(o)?e.jsx(m.default,{label:o,variant:x}):null]}),c.length>0?e.jsxs(r.Flex,{className:"uds-providers-card__tags",direction:"column",gap:"8",wrap:!0,children:[e.jsx(l.Text,{as:"p",variant:"body-14",weight:"bold",leading:"regular",children:"Provider progress:"}),e.jsx(r.Flex,{direction:"row",gap:"8",wrap:!0,children:c.map(n=>e.jsx(f.default,{label:n.label,color:"neutral",solid:!0,appearance:"icon-left",icon:"CircleDashed"},`${n.label}-${n.color??"default"}`))})]}):null,e.jsxs(r.Flex,{direction:"column",gap:"8",children:[e.jsx(b.default,{}),e.jsxs(r.Flex,{className:"uds-providers-card__actions",alignItems:"center",gap:"8",wrap:!0,children:[h,u||null]})]})]})})}exports.ProvidersCard=q;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r,jsxs as a}from"react/jsx-runtime";/* empty css */import{Flex as e}from"../
|
|
1
|
+
import{jsx as r,jsxs as a}from"react/jsx-runtime";/* empty css */import{Flex as e}from"../Layout/Layout.js";import{Text as i}from"../Text/Text.js";import y from"../Status/Status.js";import x from"../Tag/Tag.js";import w from"../Divider/Divider.js";import _ from"../Button/Button.js";const n=l=>l!=null&&l!==!1&&l!=="";function A({name:l,specialty:o,location:d,availability:N,startDate:s,statusLabel:c,statusVariant:m="green",avatarSrc:j,avatarInitials:C,tags:p=[],primaryAction:g,secondaryAction:u,className:h="",...f}){const v=g??r(_,{label:"Request Assignment",appearance:"ghost"}),b=["uds-providers-card",h].filter(Boolean).join(" ");return r("div",{className:b,...f,children:a(e,{direction:"column",gap:"16",children:[a(e,{className:"uds-providers-card__header",alignItems:"flex-start",justifyContent:"space-between",gap:"12",wrap:!0,children:[r(e,{className:"uds-providers-card__identity",alignItems:"flex-start",justifyContent:"flex-start",gap:"10",children:a(e,{direction:"column",gap:"2",children:[r(i,{as:"h3",variant:"body-16",weight:"bold",leading:"regular",children:l}),n(o)?r(i,{as:"p",variant:"body-14",leading:"regular",style:{color:"var(--uds-text-secondary)"},children:o}):null,n(d)?r(i,{as:"p",variant:"body-14",leading:"regular",children:d}):null,n(s)?a(i,{as:"p",variant:"body-14",leading:"regular",children:[r("strong",{children:"Start Date:"})," ",s]}):null]})}),n(c)?r(y,{label:c,variant:m}):null]}),p.length>0?a(e,{className:"uds-providers-card__tags",direction:"column",gap:"8",wrap:!0,children:[r(i,{as:"p",variant:"body-14",weight:"bold",leading:"regular",children:"Provider progress:"}),r(e,{direction:"row",gap:"8",wrap:!0,children:p.map(t=>r(x,{label:t.label,color:"neutral",solid:!0,appearance:"icon-left",icon:"CircleDashed"},`${t.label}-${t.color??"default"}`))})]}):null,a(e,{direction:"column",gap:"8",children:[r(w,{}),a(e,{className:"uds-providers-card__actions",alignItems:"center",gap:"8",wrap:!0,children:[v,u||null]})]})]})})}export{A as ProvidersCard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css */const s=require("../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css */const s=require("../Layout/Layout.cjs"),a=require("../Text/Text.cjs");function h({eyebrow:n,title:l,description:r,meta:i,actions:t,divider:d=!1,className:c="",...u}){const o=["uds-section-header",d&&"uds-section-header--with-divider",c].filter(Boolean).join(" ");return e.jsxs("div",{className:o,...u,children:[e.jsxs(s.Flex,{direction:"column",gap:"2",className:"uds-section-header__content",children:[n?e.jsx(a.Text,{as:"span",variant:"body-12",weight:"semibold",leading:"regular",className:"uds-section-header__eyebrow",children:n}):null,e.jsx(a.Text,{as:"h2",variant:"heading-24",weight:"medium",leading:"regular",children:l}),r?e.jsx(a.Text,{as:"p",variant:"body-16",leading:"regular",className:"uds-section-header__description",children:r}):null,i?e.jsx(s.Flex,{alignItems:"center",gap:"8",wrap:!0,className:"uds-section-header__meta",children:i}):null]}),t?e.jsx(s.Flex,{alignItems:"center",gap:"8",wrap:!0,className:"uds-section-header__actions",children:t}):null]})}exports.SectionHeader=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as d,jsx as e}from"react/jsx-runtime";/* empty css */import{Flex as a}from"../
|
|
1
|
+
import{jsxs as d,jsx as e}from"react/jsx-runtime";/* empty css */import{Flex as a}from"../Layout/Layout.js";import{Text as r}from"../Text/Text.js";function N({eyebrow:i,title:t,description:n,meta:s,actions:l,divider:c=!1,className:o="",...m}){const u=["uds-section-header",c&&"uds-section-header--with-divider",o].filter(Boolean).join(" ");return d("div",{className:u,...m,children:[d(a,{direction:"column",gap:"2",className:"uds-section-header__content",children:[i?e(r,{as:"span",variant:"body-12",weight:"semibold",leading:"regular",className:"uds-section-header__eyebrow",children:i}):null,e(r,{as:"h2",variant:"heading-24",weight:"medium",leading:"regular",children:t}),n?e(r,{as:"p",variant:"body-16",leading:"regular",className:"uds-section-header__description",children:n}):null,s?e(a,{alignItems:"center",gap:"8",wrap:!0,className:"uds-section-header__meta",children:s}):null]}),l?e(a,{alignItems:"center",gap:"8",wrap:!0,className:"uds-section-header__actions",children:l}):null]})}export{N as SectionHeader};
|
|
@@ -22,7 +22,7 @@ export declare const IntentComponentMappings: {
|
|
|
22
22
|
readonly notes: "Default section wrapper: transparent surface with 24px padding.";
|
|
23
23
|
};
|
|
24
24
|
readonly contentStack: {
|
|
25
|
-
readonly component: "
|
|
25
|
+
readonly component: "Layout";
|
|
26
26
|
readonly props: {
|
|
27
27
|
readonly direction: "column";
|
|
28
28
|
readonly gap: "--uds-spacing-16";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { GovernanceConfig, UINodeTree } from "../manifest/types";
|
|
2
2
|
import type { PolicyViolation } from "./policy.types";
|
|
3
|
-
export declare function runPolicyEngine(tree: UINodeTree, governanceConfig?: GovernanceConfig
|
|
3
|
+
export declare function runPolicyEngine(tree: UINodeTree, governanceConfig?: GovernanceConfig, options?: {
|
|
4
|
+
patternId?: string;
|
|
5
|
+
}): PolicyViolation[];
|
|
@@ -12,4 +12,4 @@ import type { ActionMenuProps } from "./ActionMenu.types";
|
|
|
12
12
|
* @param {string} menuClassName - Additional CSS classes for the menu panel
|
|
13
13
|
* @param {object} props - Additional props
|
|
14
14
|
*/
|
|
15
|
-
export default function ActionMenu({ trigger, items, placement, fullWidth, disabled, onOpenChange, className, menuClassName, ...props }: ActionMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default function ActionMenu({ trigger, items, placement, variant, searchPlaceholder, noResultsText, fullWidth, disabled, onOpenChange, className, menuClassName, ...props }: ActionMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,6 +3,9 @@ export interface ActionMenuProps extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
3
3
|
trigger?: unknown;
|
|
4
4
|
items?: unknown[];
|
|
5
5
|
placement?: string;
|
|
6
|
+
variant?: "default" | "autosuggest" | "search";
|
|
7
|
+
searchPlaceholder?: string;
|
|
8
|
+
noResultsText?: string;
|
|
6
9
|
fullWidth?: boolean;
|
|
7
10
|
disabled?: boolean;
|
|
8
11
|
onOpenChange?: (...args: unknown[]) => void;
|
|
@@ -14,11 +14,10 @@ import type { DropdownProps } from "./Dropdown.types";
|
|
|
14
14
|
* @param {string} size - Size variant: 'compact' or 'default' (default: 'default')
|
|
15
15
|
* @param {string} state - Visual state: 'default', 'focused', 'error', 'disabled'
|
|
16
16
|
* @param {string} id - Unique identifier for the dropdown
|
|
17
|
-
* @param {string} label - Label text for the dropdown
|
|
18
17
|
* @param {string} className - Additional CSS classes
|
|
19
18
|
* @param {boolean} disabled - Whether the dropdown is disabled
|
|
20
19
|
* @param {object} props - Additional props to pass to the trigger button
|
|
21
20
|
*/
|
|
22
|
-
declare function Dropdown({ options, value, onChange, placeholder, size, state, placement, id,
|
|
21
|
+
declare function Dropdown({ options, value, onChange, placeholder, size, state, placement, id, className, disabled, ...props }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
23
22
|
declare const _default: React.MemoExoticComponent<typeof Dropdown>;
|
|
24
23
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Flex } from "
|
|
2
|
-
export type { FlexProps, FlexItemProps } from "
|
|
1
|
+
export { Layout, Flex } from "../Layout";
|
|
2
|
+
export type { FlexProps, FlexItemProps } from "../Layout";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./_layout.scss";
|
|
3
|
+
import type { FlexItemProps, FlexProps } from "./Layout.types";
|
|
4
|
+
declare const LayoutBase: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLElement>>;
|
|
5
|
+
declare const FlexFill: React.ForwardRefExoticComponent<FlexItemProps & React.RefAttributes<HTMLElement>>;
|
|
6
|
+
type FlexCompound = typeof LayoutBase & {
|
|
7
|
+
Fill: typeof FlexFill;
|
|
8
|
+
Full: typeof FlexFill;
|
|
9
|
+
};
|
|
10
|
+
type LayoutCompound = typeof LayoutBase & {
|
|
11
|
+
Fill: typeof FlexFill;
|
|
12
|
+
Full: typeof FlexFill;
|
|
13
|
+
};
|
|
14
|
+
export declare const Layout: LayoutCompound;
|
|
15
|
+
export declare const Flex: FlexCompound;
|
|
16
|
+
export {};
|
|
@@ -3,6 +3,7 @@ export type FlexDirection = "row" | "column";
|
|
|
3
3
|
export type FlexJustifyContent = "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly";
|
|
4
4
|
export type FlexAlignItems = "stretch" | "flex-start" | "center" | "flex-end" | "baseline";
|
|
5
5
|
export type FlexWrap = "nowrap" | "wrap" | "wrap-reverse";
|
|
6
|
+
export type FlexAppearance = "full" | "equal" | "right" | "left";
|
|
6
7
|
export type FlexGapToken = "0" | "2" | "4" | "6" | "8" | "10" | "12" | "14" | "16" | "18" | "24" | "32" | "48" | "64" | "80";
|
|
7
8
|
export type FlexGapTokenName = `spacing-${FlexGapToken}`;
|
|
8
9
|
export type FlexGapSpecial = "auto";
|
|
@@ -11,16 +12,11 @@ export interface FlexProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
11
12
|
direction?: FlexDirection;
|
|
12
13
|
justifyContent?: FlexJustifyContent;
|
|
13
14
|
alignItems?: FlexAlignItems;
|
|
14
|
-
|
|
15
|
-
bottom?: boolean;
|
|
16
|
-
left?: boolean;
|
|
17
|
-
right?: boolean;
|
|
15
|
+
appearance?: FlexAppearance;
|
|
18
16
|
itemsPerRow?: number;
|
|
19
|
-
ItemsPerRow?: number;
|
|
20
17
|
wrap?: boolean | FlexWrap;
|
|
21
18
|
gap?: FlexGapToken | FlexGapTokenName | FlexGapSpecial | number | string;
|
|
22
19
|
fullWidth?: boolean;
|
|
23
|
-
span?: boolean;
|
|
24
20
|
inline?: boolean;
|
|
25
21
|
}
|
|
26
22
|
export interface FlexItemProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import "./_link.scss";
|
|
2
|
+
import type { LinkProps } from "./Link.types";
|
|
3
|
+
export declare function Link({ appearance, underline, disabled, className, target, rel, href, onClick, tabIndex, children, ...rest }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default Link;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AnchorHTMLAttributes } from "react";
|
|
2
|
+
export type LinkAppearance = "primary" | "secondary";
|
|
3
|
+
export type LinkUnderline = "always" | "hover" | "none";
|
|
4
|
+
export interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "color"> {
|
|
5
|
+
appearance?: LinkAppearance;
|
|
6
|
+
underline?: LinkUnderline;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ButtonAppearance, ButtonLayout, ButtonSize } from "./components/Button/Button.types";
|
|
2
|
-
import type { FlexAlignItems, FlexDirection, FlexGapToken, FlexJustifyContent, FlexWrap } from "./components/
|
|
2
|
+
import type { FlexAlignItems, FlexDirection, FlexGapToken, FlexJustifyContent, FlexWrap } from "./components/Layout/Layout.types";
|
|
3
3
|
import type { IconAppearance } from "./components/Icon/Icon.types";
|
|
4
4
|
import type { TextLeading, TextVariant, TextWeight } from "./components/Text/Text.types";
|
|
5
5
|
import type { TextInputIconPosition, TextInputSize, TextInputState } from "./components/TextInput/TextInput.types";
|
|
@@ -14,7 +14,7 @@ export { Divider } from "../components/Divider";
|
|
|
14
14
|
export { Dropdown } from "../components/Dropdown";
|
|
15
15
|
export { Field } from "../components/Field";
|
|
16
16
|
export { FileUpload } from "../components/FileUpload";
|
|
17
|
-
export { Flex } from "../components/
|
|
17
|
+
export { Layout, Flex } from "../components/Layout";
|
|
18
18
|
export { Icon } from "../components/Icon";
|
|
19
19
|
export { Menu } from "../components/Menu";
|
|
20
20
|
export { Modal } from "../components/Modal";
|
|
@@ -47,6 +47,47 @@ export declare const COMPONENT_API: {
|
|
|
47
47
|
};
|
|
48
48
|
readonly antiPatterns: readonly [];
|
|
49
49
|
};
|
|
50
|
+
readonly AppShell: {
|
|
51
|
+
readonly name: "AppShell";
|
|
52
|
+
readonly source: "src/design-system/components/AppShell/AppShell.spec.ts";
|
|
53
|
+
readonly tier: 1;
|
|
54
|
+
readonly purpose: "Top-level application shell that composes menu, content, and main regions for consistent page architecture.";
|
|
55
|
+
readonly props: {
|
|
56
|
+
readonly brand: {
|
|
57
|
+
readonly type: "enum";
|
|
58
|
+
readonly values: readonly ["default", "comphealth", "weatherby", "connect", "locumsmart", "modio", "gms", "wireframe"];
|
|
59
|
+
readonly default: "default";
|
|
60
|
+
};
|
|
61
|
+
readonly theme: {
|
|
62
|
+
readonly type: "enum";
|
|
63
|
+
readonly values: readonly ["light", "dark"];
|
|
64
|
+
readonly default: "light";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
readonly defaults: {
|
|
68
|
+
readonly brand: "default";
|
|
69
|
+
readonly theme: "light";
|
|
70
|
+
};
|
|
71
|
+
readonly states: readonly ["default"];
|
|
72
|
+
readonly tokensUsed: readonly ["--uds-surface-primary", "--uds-text-primary", "--uds-border-primary", "--uds-spacing-24"];
|
|
73
|
+
readonly accessibility: {
|
|
74
|
+
readonly role: "application";
|
|
75
|
+
readonly keyboard: readonly ["Tab"];
|
|
76
|
+
};
|
|
77
|
+
readonly composition: {
|
|
78
|
+
readonly allowedChildren: readonly ["Menu", "Container", "Layout", "Text", "Button"];
|
|
79
|
+
readonly allowedParents: readonly [];
|
|
80
|
+
readonly disallowedChildren: readonly [];
|
|
81
|
+
};
|
|
82
|
+
readonly aliases: {
|
|
83
|
+
readonly props: {};
|
|
84
|
+
};
|
|
85
|
+
readonly ambiguity: {
|
|
86
|
+
readonly propNameCollisions: readonly [];
|
|
87
|
+
readonly hadAliasNormalization: false;
|
|
88
|
+
};
|
|
89
|
+
readonly antiPatterns: readonly [];
|
|
90
|
+
};
|
|
50
91
|
readonly Avatar: {
|
|
51
92
|
readonly name: "Avatar";
|
|
52
93
|
readonly source: "src/design-system/components/Avatar/Avatar.spec.ts";
|
|
@@ -208,7 +249,7 @@ export declare const COMPONENT_API: {
|
|
|
208
249
|
};
|
|
209
250
|
readonly composition: {
|
|
210
251
|
readonly allowedChildren: readonly [];
|
|
211
|
-
readonly allowedParents: readonly ["AppShell", "Container", "
|
|
252
|
+
readonly allowedParents: readonly ["AppShell", "Container", "Layout", "Modal", "Table", "Tabs"];
|
|
212
253
|
readonly disallowedChildren: readonly ["Button"];
|
|
213
254
|
};
|
|
214
255
|
readonly aliases: {
|
|
@@ -510,7 +551,7 @@ export declare const COMPONENT_API: {
|
|
|
510
551
|
readonly keyboard: readonly [];
|
|
511
552
|
};
|
|
512
553
|
readonly composition: {
|
|
513
|
-
readonly allowedChildren: readonly ["
|
|
554
|
+
readonly allowedChildren: readonly ["Layout", "Table", "Text", "Button", "Field", "Divider", "Tag"];
|
|
514
555
|
readonly allowedParents: readonly ["AppShell", "root"];
|
|
515
556
|
readonly disallowedChildren: readonly [];
|
|
516
557
|
};
|
|
@@ -939,31 +980,45 @@ export declare const COMPONENT_API: {
|
|
|
939
980
|
readonly Flex: {
|
|
940
981
|
readonly name: "Flex";
|
|
941
982
|
readonly source: "src/design-system/components/Flex/Flex.spec.ts";
|
|
942
|
-
readonly tier:
|
|
943
|
-
readonly purpose: "Creates token-driven flexbox layouts with controlled direction, alignment, wrapping, and
|
|
983
|
+
readonly tier: 1;
|
|
984
|
+
readonly purpose: "Creates token-driven flexbox layouts with controlled direction, alignment, wrapping, and spacing.";
|
|
944
985
|
readonly props: {
|
|
945
|
-
readonly
|
|
946
|
-
readonly type: "
|
|
947
|
-
readonly
|
|
986
|
+
readonly direction: {
|
|
987
|
+
readonly type: "enum";
|
|
988
|
+
readonly values: readonly ["row", "column"];
|
|
989
|
+
readonly default: "row";
|
|
948
990
|
};
|
|
949
|
-
readonly
|
|
950
|
-
readonly type: "
|
|
951
|
-
readonly
|
|
991
|
+
readonly justifyContent: {
|
|
992
|
+
readonly type: "enum";
|
|
993
|
+
readonly values: readonly ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"];
|
|
994
|
+
readonly default: "flex-start";
|
|
995
|
+
};
|
|
996
|
+
readonly alignItems: {
|
|
997
|
+
readonly type: "enum";
|
|
998
|
+
readonly values: readonly ["stretch", "flex-start", "center", "flex-end", "baseline"];
|
|
999
|
+
readonly default: "stretch";
|
|
1000
|
+
};
|
|
1001
|
+
readonly wrap: {
|
|
1002
|
+
readonly type: "enum";
|
|
1003
|
+
readonly values: readonly ["nowrap", "wrap", "wrap-reverse"];
|
|
1004
|
+
readonly default: "nowrap";
|
|
952
1005
|
};
|
|
953
1006
|
};
|
|
954
1007
|
readonly defaults: {
|
|
955
|
-
readonly
|
|
956
|
-
readonly
|
|
1008
|
+
readonly direction: "row";
|
|
1009
|
+
readonly justifyContent: "flex-start";
|
|
1010
|
+
readonly alignItems: "stretch";
|
|
1011
|
+
readonly wrap: "nowrap";
|
|
957
1012
|
};
|
|
958
1013
|
readonly states: readonly ["default"];
|
|
959
|
-
readonly tokensUsed: readonly [];
|
|
1014
|
+
readonly tokensUsed: readonly ["--uds-gap-*", "--uds-spacing-*"];
|
|
960
1015
|
readonly accessibility: {
|
|
961
1016
|
readonly role: "generic";
|
|
962
|
-
readonly keyboard: readonly [];
|
|
1017
|
+
readonly keyboard: readonly ["Tab"];
|
|
963
1018
|
};
|
|
964
1019
|
readonly composition: {
|
|
965
1020
|
readonly allowedChildren: readonly [];
|
|
966
|
-
readonly allowedParents: readonly [
|
|
1021
|
+
readonly allowedParents: readonly [];
|
|
967
1022
|
readonly disallowedChildren: readonly [];
|
|
968
1023
|
};
|
|
969
1024
|
readonly aliases: {
|
|
@@ -1073,6 +1128,46 @@ export declare const COMPONENT_API: {
|
|
|
1073
1128
|
};
|
|
1074
1129
|
readonly antiPatterns: readonly [];
|
|
1075
1130
|
};
|
|
1131
|
+
readonly Layout: {
|
|
1132
|
+
readonly name: "Layout";
|
|
1133
|
+
readonly source: "src/design-system/components/Layout/Layout.spec.ts";
|
|
1134
|
+
readonly tier: 2;
|
|
1135
|
+
readonly purpose: "Creates token-driven flexbox layouts with controlled direction, alignment, wrapping, and width behavior.";
|
|
1136
|
+
readonly props: {
|
|
1137
|
+
readonly fullWidth: {
|
|
1138
|
+
readonly type: "boolean";
|
|
1139
|
+
readonly default: false;
|
|
1140
|
+
};
|
|
1141
|
+
readonly appearance: {
|
|
1142
|
+
readonly type: "enum";
|
|
1143
|
+
readonly values: readonly ["full", "equal", "right", "left"];
|
|
1144
|
+
readonly default: "full";
|
|
1145
|
+
};
|
|
1146
|
+
};
|
|
1147
|
+
readonly defaults: {
|
|
1148
|
+
readonly fullWidth: false;
|
|
1149
|
+
readonly appearance: "full";
|
|
1150
|
+
};
|
|
1151
|
+
readonly states: readonly ["default"];
|
|
1152
|
+
readonly tokensUsed: readonly [];
|
|
1153
|
+
readonly accessibility: {
|
|
1154
|
+
readonly role: "generic";
|
|
1155
|
+
readonly keyboard: readonly [];
|
|
1156
|
+
};
|
|
1157
|
+
readonly composition: {
|
|
1158
|
+
readonly allowedChildren: readonly [];
|
|
1159
|
+
readonly allowedParents: readonly ["AppShell", "Container"];
|
|
1160
|
+
readonly disallowedChildren: readonly [];
|
|
1161
|
+
};
|
|
1162
|
+
readonly aliases: {
|
|
1163
|
+
readonly props: {};
|
|
1164
|
+
};
|
|
1165
|
+
readonly ambiguity: {
|
|
1166
|
+
readonly propNameCollisions: readonly [];
|
|
1167
|
+
readonly hadAliasNormalization: false;
|
|
1168
|
+
};
|
|
1169
|
+
readonly antiPatterns: readonly [];
|
|
1170
|
+
};
|
|
1076
1171
|
readonly Menu: {
|
|
1077
1172
|
readonly name: "Menu";
|
|
1078
1173
|
readonly source: "src/design-system/components/Menu/Menu.spec.ts";
|
|
@@ -1858,7 +1953,7 @@ export declare const COMPONENT_API: {
|
|
|
1858
1953
|
};
|
|
1859
1954
|
readonly composition: {
|
|
1860
1955
|
readonly allowedChildren: readonly [];
|
|
1861
|
-
readonly allowedParents: readonly ["AppShell", "Container", "
|
|
1956
|
+
readonly allowedParents: readonly ["AppShell", "Container", "Layout", "Menu", "Modal", "Tabs"];
|
|
1862
1957
|
readonly disallowedChildren: readonly [];
|
|
1863
1958
|
};
|
|
1864
1959
|
readonly aliases: {
|
|
@@ -27,7 +27,8 @@ export * from "./components/EmptyState";
|
|
|
27
27
|
export * from "./components/EventCard";
|
|
28
28
|
export * from "./components/Field";
|
|
29
29
|
export * from "./components/FileUpload";
|
|
30
|
-
export * from "./components/
|
|
30
|
+
export * from "./components/Layout";
|
|
31
|
+
export * from "./components/Link";
|
|
31
32
|
export * from "./components/Icon";
|
|
32
33
|
export * from "./components/ImageAspect";
|
|
33
34
|
export * from "./components/Key";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const UDS_RUNTIME_VERSION = "0.2.
|
|
1
|
+
export declare const UDS_RUNTIME_VERSION = "0.2.35";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../src/app-shell/AppShell.cjs"),u=require("../ai/validation/validateAIOutput.cjs"),o=require("../components/ActionMenu/ActionMenu.cjs"),a=require("../components/Avatar/Avatar.cjs"),n=require("../components/Badge/Badge.cjs"),i=require("../components/Button/Button.cjs"),l=require("../components/Checkbox/Checkbox.cjs"),c=require("../components/Code/Code.cjs"),s=require("../components/Divider/Divider.cjs"),d=require("../components/Field/Field.cjs"),T=require("../components/FileUpload/FileUpload.cjs"),q=require("../components/Pagination/Pagination.cjs"),p=require("../components/ProgressIndicator/ProgressIndicator.cjs"),f=require("../components/Slider/Slider.cjs"),I=require("../components/Status/Status.cjs"),m=require("../components/Steps/Steps.cjs"),h=require("../components/Table/Table.cjs"),S=require("../components/Tag/Tag.cjs"),g=require("../components/TextInput/TextInput.cjs"),A=require("../components/Textarea/Textarea.cjs"),M=require("../components/Toggle/Toggle.cjs"),C=require("../components/Tooltip/Tooltip.cjs"),P=require("../components/Checklist/Checklist.cjs"),D=require("../components/Container/Container.cjs"),R=require("../components/DateInput/DateInput.cjs"),O=require("../components/DateRangeInput/DateRangeInput.cjs"),_=require("../components/Dropdown/Dropdown.cjs"),t=require("../components/Layout/Layout.cjs"),b=require("../components/Icon/Icon.cjs"),v=require("../components/Menu/Menu.cjs"),x=require("../components/Modal/Modal.cjs"),F=require("../components/ScrollView/ScrollView.cjs"),N=require("../components/SearchInput/SearchInput.cjs"),k=require("../components/Tabs/Tabs.cjs"),E=require("../components/Text/Text.cjs"),e=require("../theme/ThemeProvider.cjs"),y=require("../components/TimeInput/TimeInput.cjs"),B=require("../components/Toolbar/Toolbar.cjs"),K=require("../theme/createBrand.cjs"),w=require("../theme/createTheme.cjs"),G=require("../ai/sdk/runtime-sdk.cjs"),U="@mich8060/unified-design-system/ai/figma-make",Y="@mich8060/unified-design-system/ai/prompts/figma-make";exports.AppShell=r.AppShell;exports.validateAIOutput=u.validateAIOutput;exports.ActionMenu=o.default;exports.Avatar=a.default;exports.Badge=n.default;exports.Button=i.default;exports.Checkbox=l.default;exports.Code=c.default;exports.Divider=s.default;exports.Field=d.default;exports.FileUpload=T.default;exports.Pagination=q.default;exports.ProgressIndicator=p.default;exports.Slider=f.default;exports.Status=I.default;exports.Steps=m.default;exports.Table=h.default;exports.Tag=S.default;exports.TextInput=g.default;exports.Textarea=A.default;exports.Toggle=M.default;exports.Tooltip=C.default;exports.Checklist=P.Checklist;exports.Container=D.Container;exports.DateInput=R.DateInput;exports.DateRangeInput=O.DateRangeInput;exports.Dropdown=_.default;exports.Flex=t.Flex;exports.Layout=t.Layout;exports.Icon=b.default;exports.Menu=v.default;exports.Modal=x.default;exports.ScrollView=F.ScrollView;exports.SearchInput=N.SearchInput;exports.Tabs=k.default;exports.Text=E.Text;exports.ThemeProvider=e.ThemeProvider;exports.useTheme=e.useTheme;exports.useThemeController=e.useThemeController;exports.TimeInput=y.TimeInput;exports.Toolbar=B.Toolbar;exports.createBrand=K.createBrand;exports.createTheme=w.createTheme;exports.createUDSRuntimeHelperSDK=G.createUDSRuntimeHelperSDK;exports.FIGMA_MAKE_CONTRACT_ENTRYPOINT=U;exports.FIGMA_MAKE_PROMPT_ENTRYPOINT=Y;
|
package/dist/figma-make/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{AppShell as a}from"../src/app-shell/AppShell.js";import{validateAIOutput as p}from"../ai/validation/validateAIOutput.js";import{default as x}from"../components/ActionMenu/ActionMenu.js";import{default as s}from"../components/Avatar/Avatar.js";import{default as
|
|
1
|
+
import{AppShell as a}from"../src/app-shell/AppShell.js";import{validateAIOutput as p}from"../ai/validation/validateAIOutput.js";import{default as x}from"../components/ActionMenu/ActionMenu.js";import{default as s}from"../components/Avatar/Avatar.js";import{default as d}from"../components/Badge/Badge.js";import{default as n}from"../components/Button/Button.js";import{default as c}from"../components/Checkbox/Checkbox.js";import{default as g}from"../components/Code/Code.js";import{default as A}from"../components/Divider/Divider.js";import{default as S}from"../components/Field/Field.js";import{default as P}from"../components/FileUpload/FileUpload.js";import{default as R}from"../components/Pagination/Pagination.js";import{default as F}from"../components/ProgressIndicator/ProgressIndicator.js";import{default as O}from"../components/Slider/Slider.js";import{default as k}from"../components/Status/Status.js";import{default as E}from"../components/Steps/Steps.js";import{default as B}from"../components/Table/Table.js";import{default as w}from"../components/Tag/Tag.js";import{default as U}from"../components/TextInput/TextInput.js";import{default as H}from"../components/Textarea/Textarea.js";import{default as V}from"../components/Toggle/Toggle.js";import{default as q}from"../components/Tooltip/Tooltip.js";import{Checklist as J}from"../components/Checklist/Checklist.js";import{Container as W}from"../components/Container/Container.js";import{DateInput as Z}from"../components/DateInput/DateInput.js";import{DateRangeInput as ee}from"../components/DateRangeInput/DateRangeInput.js";import{default as re}from"../components/Dropdown/Dropdown.js";import{Flex as ae,Layout as fe}from"../components/Layout/Layout.js";import{default as me}from"../components/Icon/Icon.js";import{default as le}from"../components/Menu/Menu.js";import{default as ue}from"../components/Modal/Modal.js";import{ScrollView as ie}from"../components/ScrollView/ScrollView.js";import{SearchInput as Te}from"../components/SearchInput/SearchInput.js";import{default as Ie}from"../components/Tabs/Tabs.js";import{Text as he}from"../components/Text/Text.js";import{ThemeProvider as Me,useTheme as Se,useThemeController as Ce}from"../theme/ThemeProvider.js";import{TimeInput as De}from"../components/TimeInput/TimeInput.js";import{Toolbar as _e}from"../components/Toolbar/Toolbar.js";import{createBrand as Ne}from"../theme/createBrand.js";import{createTheme as be}from"../theme/createTheme.js";import{createUDSRuntimeHelperSDK as ve}from"../ai/sdk/runtime-sdk.js";const e="@mich8060/unified-design-system/ai/figma-make",o="@mich8060/unified-design-system/ai/prompts/figma-make";export{x as ActionMenu,a as AppShell,s as Avatar,d as Badge,n as Button,c as Checkbox,J as Checklist,g as Code,W as Container,Z as DateInput,ee as DateRangeInput,A as Divider,re as Dropdown,e as FIGMA_MAKE_CONTRACT_ENTRYPOINT,o as FIGMA_MAKE_PROMPT_ENTRYPOINT,S as Field,P as FileUpload,ae as Flex,me as Icon,fe as Layout,le as Menu,ue as Modal,R as Pagination,F as ProgressIndicator,ie as ScrollView,Te as SearchInput,O as Slider,k as Status,E as Steps,B as Table,Ie as Tabs,w as Tag,he as Text,U as TextInput,H as Textarea,Me as ThemeProvider,De as TimeInput,V as Toggle,_e as Toolbar,q as Tooltip,Ne as createBrand,be as createTheme,ve as createUDSRuntimeHelperSDK,Se as useTheme,Ce as useThemeController,p as validateAIOutput};
|