@mich8060/unified-design-system 0.2.21 → 0.2.23
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/examples/training.examples.cjs +1 -1
- package/dist/ai/examples/training.examples.js +1 -1
- package/dist/ai/examples/trees.example.cjs +1 -1
- package/dist/ai/examples/trees.example.js +1 -1
- package/dist/ai/manifest/components.manifest.cjs +1 -1
- package/dist/ai/manifest/components.manifest.js +1 -1
- package/dist/ai/manifest/composition.manifest.cjs +1 -1
- package/dist/ai/manifest/composition.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 +0 -90
- package/dist/ai/prompts/figma-make.prompt.md +1 -0
- package/dist/ai/prompts/starter.prompt.md +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.cjs +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Flex/Flex.cjs +1 -1
- package/dist/components/Flex/Flex.js +1 -1
- package/dist/components/Menu/Menu.cjs +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/design-system/components/Flex/Flex.types.d.ts +2 -1
- package/dist/design-system/figma-make/index.d.ts +0 -1
- package/dist/design-system/generated/component-api.d.ts +12 -36
- package/dist/design-system/index.d.ts +0 -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/style.css +1 -1
- package/package.json +1 -7
- package/dist/components/Card/Card.cjs +0 -1
- package/dist/components/Card/Card.js +0 -1
- package/dist/design-system/components/Card/Card.d.ts +0 -13
- package/dist/design-system/components/Card/Card.types.d.ts +0 -8
- package/dist/design-system/components/Card/index.d.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),d=require("react"),p=require("react-router-dom");;/* empty css */const o=[{path:"/app-shell",label:"Application"},{path:"/border-radius",label:"Border Radius"},{path:"/colors",label:"Colors"},{path:"/flex",label:"Flex Layout"},{path:"/icons",label:"Icons"},{path:"/shadows",label:"Shadows"},{path:"/spacing",label:"Spacing"},{path:"/figma-variables",label:"Design Tokens"},{path:"/typography",label:"Typography"},{path:"/utilities",label:"Utility Classes"},{path:"/vertical-rhythm",label:"Vertical Rhythm"}],u=[{path:"/accordion",label:"Accordion"},{path:"/action-menu",label:"Action Menu"},{path:"/avatar",label:"Avatar"},{path:"/badge",label:"Badge"},{path:"/branding",label:"Branding"},{path:"/breadcrumb",label:"Breadcrumb"},{path:"/buttons",label:"Buttons"},{path:"/calendar",label:"Calendar"},{path:"/datepicker",label:"Datepicker"},{path:"/checkbox",label:"Checkbox"},{path:"/chip",label:"Chip"},{path:"/divider",label:"Divider"},{path:"/dot-status",label:"Dot Status"},{path:"/dropdown",label:"Dropdown"},{path:"/event-card",label:"Event Card"},{path:"/field",label:"Field"},{path:"/file-upload",label:"File Upload"},{path:"/image-aspect",label:"Image Aspect"},{path:"/input",label:"Text Input"},{path:"/key",label:"Key"},{path:"/progress-indicator",label:"Progress Indicator"},{path:"/progress-circle",label:"Progress Circle"},{path:"/radio",label:"Radio"},{path:"/slider",label:"Slider"},{path:"/status",label:"Status"},{path:"/steps",label:"Steps"},{path:"/table",label:"Table"},{path:"/tabs",label:"Tabs"},{path:"/tag",label:"Tag"},{path:"/textarea",label:"Textarea"},{path:"/toast",label:"Toast"},{path:"/toggle",label:"Toggle"},{path:"/tooltip",label:"Tooltip"}],m=[{path:"/menu",label:"Menu"}];function g({items:c}){var i;const r=d.useContext(p.UNSAFE_LocationContext),_=!!r,n=((i=r==null?void 0:r.location)==null?void 0:i.pathname)??(typeof window<"u"?window.location.pathname:"/");if(c&&c.length>0){const e=c.slice(0,5);return a.jsx("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:a.jsx("ol",{className:"breadcrumb__list",children:e.map((l,h)=>{const b=h===e.length-1,x=l.href&&(l.href.startsWith("http://")||l.href.startsWith("https://"));return a.jsxs(d.Fragment,{children:[a.jsx("li",{className:`breadcrumb__item ${b?"breadcrumb__item--current":""}`,children:l.href&&!b?x?a.jsx("a",{href:l.href,className:"breadcrumb__link",target:"_blank",rel:"noopener noreferrer",children:a.jsx("span",{className:"breadcrumb__text",children:l.label})}):_?a.jsx(p.Link,{to:l.href,className:"breadcrumb__link",children:a.jsx("span",{className:"breadcrumb__text",children:l.label})}):a.jsx("a",{href:l.href,className:"breadcrumb__link",children:a.jsx("span",{className:"breadcrumb__text",children:l.label})}):a.jsx("span",{className:"breadcrumb__text",children:l.label})}),!b&&a.jsx("li",{className:"breadcrumb__item",children:a.jsx("span",{className:"breadcrumb__separator","aria-hidden":"true",children:"/"})})]},h)})})})}if(n==="/")return null;const t=[...o,...u,...m].find(e=>n===e.path||n.startsWith(e.path+"/"));if(!t)return null;let s="Design System";return o.some(e=>e.path===t.path)?s="Foundations":u.some(e=>e.path===t.path)?s="Components":m.some(e=>e.path===t.path)&&(s="Patterns"),a.jsx("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:a.jsxs("ol",{className:"breadcrumb__list",children:[a.jsx("li",{className:"breadcrumb__item",children:a.jsx("span",{className:"breadcrumb__text",children:"Unified Design System"})}),a.jsx("li",{className:"breadcrumb__item",children:a.jsx("span",{className:"breadcrumb__separator","aria-hidden":"true",children:"/"})}),a.jsx("li",{className:"breadcrumb__item",children:a.jsx("span",{className:"breadcrumb__text",children:s})}),a.jsx("li",{className:"breadcrumb__item",children:a.jsx("span",{className:"breadcrumb__separator","aria-hidden":"true",children:"/"})}),a.jsx("li",{className:"breadcrumb__item breadcrumb__item--current",children:a.jsx("span",{className:"breadcrumb__text",children:t.label})})]})})}exports.default=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a,jsxs as
|
|
1
|
+
import{jsx as a,jsxs as p}from"react/jsx-runtime";import d from"react";import{UNSAFE_LocationContext as f,Link as g}from"react-router-dom";/* empty css */const o=[{path:"/app-shell",label:"Application"},{path:"/border-radius",label:"Border Radius"},{path:"/colors",label:"Colors"},{path:"/flex",label:"Flex Layout"},{path:"/icons",label:"Icons"},{path:"/shadows",label:"Shadows"},{path:"/spacing",label:"Spacing"},{path:"/figma-variables",label:"Design Tokens"},{path:"/typography",label:"Typography"},{path:"/utilities",label:"Utility Classes"},{path:"/vertical-rhythm",label:"Vertical Rhythm"}],m=[{path:"/accordion",label:"Accordion"},{path:"/action-menu",label:"Action Menu"},{path:"/avatar",label:"Avatar"},{path:"/badge",label:"Badge"},{path:"/branding",label:"Branding"},{path:"/breadcrumb",label:"Breadcrumb"},{path:"/buttons",label:"Buttons"},{path:"/calendar",label:"Calendar"},{path:"/datepicker",label:"Datepicker"},{path:"/checkbox",label:"Checkbox"},{path:"/chip",label:"Chip"},{path:"/divider",label:"Divider"},{path:"/dot-status",label:"Dot Status"},{path:"/dropdown",label:"Dropdown"},{path:"/event-card",label:"Event Card"},{path:"/field",label:"Field"},{path:"/file-upload",label:"File Upload"},{path:"/image-aspect",label:"Image Aspect"},{path:"/input",label:"Text Input"},{path:"/key",label:"Key"},{path:"/progress-indicator",label:"Progress Indicator"},{path:"/progress-circle",label:"Progress Circle"},{path:"/radio",label:"Radio"},{path:"/slider",label:"Slider"},{path:"/status",label:"Status"},{path:"/steps",label:"Steps"},{path:"/table",label:"Table"},{path:"/tabs",label:"Tabs"},{path:"/tag",label:"Tag"},{path:"/textarea",label:"Textarea"},{path:"/toast",label:"Toast"},{path:"/toggle",label:"Toggle"},{path:"/tooltip",label:"Tooltip"}],u=[{path:"/menu",label:"Menu"}];function k({items:c}){var i;const t=d.useContext(f),_=!!t,n=((i=t==null?void 0:t.location)==null?void 0:i.pathname)??(typeof window<"u"?window.location.pathname:"/");if(c&&c.length>0){const e=c.slice(0,5);return a("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:a("ol",{className:"breadcrumb__list",children:e.map((l,h)=>{const b=h===e.length-1,N=l.href&&(l.href.startsWith("http://")||l.href.startsWith("https://"));return p(d.Fragment,{children:[a("li",{className:`breadcrumb__item ${b?"breadcrumb__item--current":""}`,children:l.href&&!b?N?a("a",{href:l.href,className:"breadcrumb__link",target:"_blank",rel:"noopener noreferrer",children:a("span",{className:"breadcrumb__text",children:l.label})}):_?a(g,{to:l.href,className:"breadcrumb__link",children:a("span",{className:"breadcrumb__text",children:l.label})}):a("a",{href:l.href,className:"breadcrumb__link",children:a("span",{className:"breadcrumb__text",children:l.label})}):a("span",{className:"breadcrumb__text",children:l.label})}),!b&&a("li",{className:"breadcrumb__item",children:a("span",{className:"breadcrumb__separator","aria-hidden":"true",children:"/"})})]},h)})})})}if(n==="/")return null;const r=[...o,...m,...u].find(e=>n===e.path||n.startsWith(e.path+"/"));if(!r)return null;let s="Design System";return o.some(e=>e.path===r.path)?s="Foundations":m.some(e=>e.path===r.path)?s="Components":u.some(e=>e.path===r.path)&&(s="Patterns"),a("nav",{className:"breadcrumb","aria-label":"Breadcrumb",children:p("ol",{className:"breadcrumb__list",children:[a("li",{className:"breadcrumb__item",children:a("span",{className:"breadcrumb__text",children:"Unified Design System"})}),a("li",{className:"breadcrumb__item",children:a("span",{className:"breadcrumb__separator","aria-hidden":"true",children:"/"})}),a("li",{className:"breadcrumb__item",children:a("span",{className:"breadcrumb__text",children:s})}),a("li",{className:"breadcrumb__item",children:a("span",{className:"breadcrumb__separator","aria-hidden":"true",children:"/"})}),a("li",{className:"breadcrumb__item breadcrumb__item--current",children:a("span",{className:"breadcrumb__text",children:r.label})})]})})}export{k as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react/jsx-runtime"),h=require("react");;/* empty css */const v=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 G(e){var r;if(e==null)return;const i=String(e).trim();if(i==="auto")return;const t=((r=i.match(/^spacing-(\d+)$/))==null?void 0:r[1])??i;return v.has(t)?`var(--uds-spacing-${t})`:e}const j=h.forwardRef(function({as:i="div",direction:t="row",justifyContent:r,alignItems:l,wrap:s=!1,gap:o,fullWidth:f=!1,inline:c=!1,className:d,style:n,children:x,...p},m){const w=b(s),S=String(o).trim()==="auto"&&r==null,g=["ds-flex",`ds-flex--direction-${t}`,r&&`ds-flex--justify-${a(r)}`,l&&`ds-flex--align-${a(l)}`,`ds-flex--wrap-${a(w)}`,c&&"ds-flex--inline",f&&"ds-flex--full-width",S&&"ds-flex--gap-auto",d].filter(Boolean).join(" "),u={};return o!=null&&(n==null?void 0:n.gap)==null&&(u.gap=G(o)),f&&(n==null?void 0:n.width)==null&&(u.width="100%"),$.jsx(i,{ref:m,className:g,style:{...u,...n},...p,children:x})});exports.Flex=j;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as h}from"react/jsx-runtime";import g from"react";/* empty css */const v=new Set(["0","2","4","6","8","10","12","14","16","18","24","32","48","64","80"]);function G(n){return n===!0?"wrap":n===!1||n==null?"nowrap":n}function f(n){return n.replace(/\s+/g,"-")}function A(n){var o;if(n==null)return;const i=String(n).trim();if(i==="auto")return;const e=((o=i.match(/^spacing-(\d+)$/))==null?void 0:o[1])??i;return v.has(e)?`var(--uds-spacing-${e})`:n}const F=g.forwardRef(function({as:i="div",direction:e="row",justifyContent:o,alignItems:l,wrap:s=!1,gap:a,fullWidth:u=!1,inline:c=!1,className:d,style:r,children:x,...p},m){const w=G(s),S=String(a).trim()==="auto"&&o==null,$=["ds-flex",`ds-flex--direction-${e}`,o&&`ds-flex--justify-${f(o)}`,l&&`ds-flex--align-${f(l)}`,`ds-flex--wrap-${f(w)}`,c&&"ds-flex--inline",u&&"ds-flex--full-width",S&&"ds-flex--gap-auto",d].filter(Boolean).join(" "),t={};return a!=null&&(r==null?void 0:r.gap)==null&&(t.gap=A(a)),u&&(r==null?void 0:r.width)==null&&(t.width="100%"),h(i,{ref:m,className:$,style:{...t,...r},...p,children:x})});export{F as Flex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),n=require("react");;/* empty css */const A=require("react-router-dom"),p=require("../Icon/Icon.cjs"),te=require("../Avatar/Avatar.cjs"),b=require("../Button/Button.cjs"),le=require("../TextInput/TextInput.cjs"),P=require("../Branding/Branding.cjs"),ie=require("../Dropdown/Dropdown.cjs"),ce=require("../Toggle/Toggle.cjs"),re=require("../ActionMenu/ActionMenu.cjs"),ue=require("../Text/Text.cjs"),oe=t=>{if(typeof t!="object"||t===null)return!1;const l=t;return typeof l.label=="string"&&typeof l.path=="string"},de=t=>{if(typeof t!="object"||t===null)return!1;const l=t;return!(typeof l.label!="string"||typeof l.icon!="string"||l.path!==void 0&&typeof l.path!="string"||l.children!==void 0&&(!Array.isArray(l.children)||!l.children.every(oe)))},me=t=>t==="dark"?"dark":"light";function B({title:t,className:l="",navItems:q=[],brands:w=[],activeBrand:z,onBrandChange:S,activeMode:R,onModeChange:h,showBrand:F=!0,showSearch:G=!0,showBrandSwitcher:J=!0,showNav:U=!0,showModeToggle:V=!0,showUser:H=!0,userName:g="Jane Doe",userInitials:K="JD",userAvatarSrc:Q,accountMenuItems:y=[],identity:W="design-system",defaultExpanded:X=!0}){var O;const x=n.useContext(A.UNSAFE_LocationContext),N=!!x,d=((O=x==null?void 0:x.location)==null?void 0:O.pathname)??(typeof window<"u"?window.location.pathname:"/"),[I,k]=n.useState({}),[i,T]=n.useState(X),[v,Y]=n.useState(24),u=n.useMemo(()=>q.filter(de),[q]),C=n.useMemo(()=>w.filter(a=>typeof a=="string"),[w]),Z=typeof t=="string"?t:"Menu",M=typeof z=="string"?z:C[0],D=M==="default"?"design-system":M??W,m=me(R),ee=n.useMemo(()=>Array.isArray(y)?y:[],[y]);n.useEffect(()=>{if(u.length<=v)return;const a=()=>Y(u.length);if(typeof requestIdleCallback=="function"){const r=requestIdleCallback(a);return()=>cancelIdleCallback(r)}const s=window.setTimeout(a,50);return()=>window.clearTimeout(s)},[u.length,v]),n.useEffect(()=>{const a=u.filter(s=>Array.isArray(s.children)&&s.children.some(r=>d===r.path)).map(s=>s.label);a.length!==0&&k(s=>{let r=!1;const o={...s};return a.forEach(j=>{o[j]||(o[j]=!0,r=!0)}),r?o:s})},[u,d]);const $=n.useCallback(a=>{k(s=>({...s,[a]:!s[a]}))},[]),ae=n.useCallback(()=>T(a=>!a),[]),_=n.useCallback(()=>T(!0),[]),ne=n.useCallback(a=>{i||(a.preventDefault(),a.stopPropagation(),_())},[_,i]),E=n.useCallback(a=>{if(!i){_(),k(s=>({...s,[a]:!0}));return}$(a)},[_,i,$]),f=n.useCallback(()=>{i||_()},[_,i]),L=n.useCallback(a=>h==null?void 0:h(a),[h]),se=n.useMemo(()=>u.slice(0,v).map(a=>{const s=a.children??[],r=s.length>0,o=I[a.label],j=i&&o;return r?e.jsxs("div",{className:`uds-menu_nav__item uds-menu_nav__item--accordion${o?" uds-menu_nav__item--open":""}`,children:[e.jsxs("button",{type:"button",className:"uds-menu_nav__item-link",onClick:()=>E(a.label),title:a.label,children:[e.jsx("span",{className:"uds-menu_nav__item-icon",children:e.jsx(p.default,{name:a.icon,size:24,appearance:"duotone"})}),e.jsx("div",{className:"uds-menu_nav__item-label",children:a.label}),e.jsx("span",{className:`uds-menu_nav__item-caret${o?" uds-menu_nav__item-caret--open":""}`,children:e.jsx(p.default,{name:"CaretDown",size:16})})]}),j?e.jsx("div",{className:"uds-menu_nav__children uds-menu_nav__children--open",children:s.map(c=>N?e.jsx(A.Link,{className:`uds-menu_nav__child-link${d===c.path?" uds-menu_nav__child-link--active":""}`,to:c.path,onClick:f,title:c.label,children:c.label},c.path):e.jsx("a",{className:`uds-menu_nav__child-link${d===c.path?" uds-menu_nav__child-link--active":""}`,href:c.path,onClick:f,title:c.label,children:c.label},c.path))}):null]},a.label):e.jsx("div",{className:`uds-menu_nav__item${d===a.path?" uds-menu_nav__item--active":""}`,children:N?e.jsxs(A.Link,{className:"uds-menu_nav__item-link",to:a.path??"/",onClick:f,title:a.label,children:[e.jsx("span",{className:"uds-menu_nav__item-icon",children:e.jsx(p.default,{name:a.icon,size:24,appearance:"duotone"})}),e.jsx("div",{className:"uds-menu_nav__item-label",children:a.label})]}):e.jsxs("a",{className:"uds-menu_nav__item-link",href:a.path??"/",onClick:f,title:a.label,children:[e.jsx("span",{className:"uds-menu_nav__item-icon",children:e.jsx(p.default,{name:a.icon,size:24,appearance:"duotone"})}),e.jsx("div",{className:"uds-menu_nav__item-label",children:a.label})]})},a.path??a.label)}),[u,v,I,i,E,f,N,d]);return e.jsxs("aside",{className:`uds-menu${i?" uds-menu--expanded":""} ${l}`,"aria-label":Z,onClickCapture:ne,children:[F&&e.jsxs("div",{className:"uds-menu_brand",children:[e.jsx(b.default,{appearance:"text",icon:"List",size:"default",label:i?"Collapse menu":"Expand menu",layout:"icon-only","aria-label":i?"Collapse menu":"Expand menu",className:"uds-menu_brand__toggle",onClick:ae}),e.jsx("div",{className:"uds-menu_brand__symbol",children:e.jsx(P.default,{brand:D,symbol:!0})}),e.jsx("div",{className:"uds-menu_brand__full",children:e.jsx(P.default,{brand:D})})]}),G&&e.jsxs("div",{className:"uds-menu_search",children:[e.jsx(b.default,{appearance:"text",icon:"MagnifyingGlass",label:"Search",layout:"icon-only","aria-label":"Search",className:"uds-menu_search__button"}),e.jsx("div",{className:"uds-menu_search__field",children:e.jsx(le.default,{type:"text",placeholder:"Search",icon:"MagnifyingGlass",iconPosition:"right",className:"uds-menu_search__input",size:"compact"})})]}),J&&C.length>0&&S&&e.jsxs("div",{className:"uds-menu_brands",children:[e.jsx(b.default,{appearance:"text",icon:"PlusCircle",label:"Brand",layout:"icon-only","aria-label":"Switch brand",className:"uds-menu_brands__button"}),e.jsx("div",{className:"uds-menu_brands__dropdown",children:e.jsx(ie.default,{options:C.map(a=>({value:a,label:a})),value:M,onChange:a=>{typeof a=="string"&&S(a)},placeholder:"Select brand",placement:"bottom-start",size:"compact"})})]}),U&&e.jsx("nav",{className:"uds-menu_nav",children:se}),V&&h&&e.jsx("div",{className:"uds-menu_footer",children:e.jsxs("div",{className:"uds-menu_mode",children:[e.jsx(b.default,{appearance:"text",icon:m==="light"?"Sun":"Moon",label:m==="light"?"Light mode":"Dark mode",layout:"icon-only",size:"default","aria-label":"Toggle light/dark mode",className:"uds-menu_mode__button",onClick:()=>L(m==="light"?"dark":"light")}),e.jsxs("div",{className:"uds-menu_mode__controls",children:[e.jsx(p.default,{name:m==="light"?"Sun":"Moon",size:20,appearance:"duotone"}),e.jsx("span",{className:"uds-menu_mode__label",children:m==="light"?"Light":"Dark"}),e.jsx(ce.default,{checked:m==="dark",onChange:a=>L(a?"dark":"light"),className:"uds-menu_mode__toggle"})]})]})}),H&&e.jsxs("div",{className:"uds-menu_account",children:[e.jsx(te.default,{src:Q,initials:K,alt:g?`${g} avatar`:"User avatar",size:"default"}),i&&e.jsxs(e.Fragment,{children:[e.jsx(ue.Text,{as:"p",variant:"body-16",weight:"semibold",leading:"regular",className:"uds-menu_account__name",children:g}),e.jsx(re.default,{placement:"top-start",items:ee,trigger:e.jsx(b.default,{appearance:"text",icon:e.jsx(p.default,{name:"DotsThreeVertical",appearance:"bold"}),label:"Account Menu",layout:"icon-only","aria-label":"Account menu"})})]})]})]})}B.defaultProps={title:"Menu"};const _e=n.memo(B);exports.default=_e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as i,jsx as n,Fragment as
|
|
1
|
+
import{jsxs as i,jsx as n,Fragment as ce}from"react/jsx-runtime";import R,{useState as I,useMemo as k,useEffect as F,useCallback as u}from"react";/* empty css */import{UNSAFE_LocationContext as de,Link as G}from"react-router-dom";import h from"../Icon/Icon.js";import ue from"../Avatar/Avatar.js";import v from"../Button/Button.js";import me from"../TextInput/TextInput.js";import J from"../Branding/Branding.js";import _e from"../Dropdown/Dropdown.js";import pe from"../Toggle/Toggle.js";import he from"../ActionMenu/ActionMenu.js";import{Text as fe}from"../Text/Text.js";const be=t=>{if(typeof t!="object"||t===null)return!1;const l=t;return typeof l.label=="string"&&typeof l.path=="string"},ve=t=>{if(typeof t!="object"||t===null)return!1;const l=t;return!(typeof l.label!="string"||typeof l.icon!="string"||l.path!==void 0&&typeof l.path!="string"||l.children!==void 0&&(!Array.isArray(l.children)||!l.children.every(be)))},ge=t=>t==="dark"?"dark":"light";function U({title:t,className:l="",navItems:S=[],brands:D=[],activeBrand:$,onBrandChange:T,activeMode:V,onModeChange:f,showBrand:H=!0,showSearch:K=!0,showBrandSwitcher:Q=!0,showNav:W=!0,showModeToggle:X=!0,showUser:Y=!0,userName:C="Jane Doe",userInitials:Z="JD",userAvatarSrc:ee,accountMenuItems:A=[],identity:ne="design-system",defaultExpanded:ae=!0}){var q;const g=R.useContext(de),x=!!g,m=((q=g==null?void 0:g.location)==null?void 0:q.pathname)??(typeof window<"u"?window.location.pathname:"/"),[E,M]=I({}),[s,L]=I(ae),[N,te]=I(24),c=k(()=>S.filter(ve),[S]),w=k(()=>D.filter(e=>typeof e=="string"),[D]),le=typeof t=="string"?t:"Menu",z=typeof $=="string"?$:w[0],j=z==="default"?"design-system":z??ne,_=ge(V),se=k(()=>Array.isArray(A)?A:[],[A]);F(()=>{if(c.length<=N)return;const e=()=>te(c.length);if(typeof requestIdleCallback=="function"){const o=requestIdleCallback(e);return()=>cancelIdleCallback(o)}const a=window.setTimeout(e,50);return()=>window.clearTimeout(a)},[c.length,N]),F(()=>{const e=c.filter(a=>Array.isArray(a.children)&&a.children.some(o=>m===o.path)).map(a=>a.label);e.length!==0&&M(a=>{let o=!1;const d={...a};return e.forEach(y=>{d[y]||(d[y]=!0,o=!0)}),o?d:a})},[c,m]);const B=u(e=>{M(a=>({...a,[e]:!a[e]}))},[]),ie=u(()=>L(e=>!e),[]),p=u(()=>L(!0),[]),re=u(e=>{s||(e.preventDefault(),e.stopPropagation(),p())},[p,s]),O=u(e=>{if(!s){p(),M(a=>({...a,[e]:!0}));return}B(e)},[p,s,B]),b=u(()=>{s||p()},[p,s]),P=u(e=>f==null?void 0:f(e),[f]),oe=k(()=>c.slice(0,N).map(e=>{const a=e.children??[],o=a.length>0,d=E[e.label],y=s&&d;return o?i("div",{className:`uds-menu_nav__item uds-menu_nav__item--accordion${d?" uds-menu_nav__item--open":""}`,children:[i("button",{type:"button",className:"uds-menu_nav__item-link",onClick:()=>O(e.label),title:e.label,children:[n("span",{className:"uds-menu_nav__item-icon",children:n(h,{name:e.icon,size:24,appearance:"duotone"})}),n("div",{className:"uds-menu_nav__item-label",children:e.label}),n("span",{className:`uds-menu_nav__item-caret${d?" uds-menu_nav__item-caret--open":""}`,children:n(h,{name:"CaretDown",size:16})})]}),y?n("div",{className:"uds-menu_nav__children uds-menu_nav__children--open",children:a.map(r=>x?n(G,{className:`uds-menu_nav__child-link${m===r.path?" uds-menu_nav__child-link--active":""}`,to:r.path,onClick:b,title:r.label,children:r.label},r.path):n("a",{className:`uds-menu_nav__child-link${m===r.path?" uds-menu_nav__child-link--active":""}`,href:r.path,onClick:b,title:r.label,children:r.label},r.path))}):null]},e.label):n("div",{className:`uds-menu_nav__item${m===e.path?" uds-menu_nav__item--active":""}`,children:x?i(G,{className:"uds-menu_nav__item-link",to:e.path??"/",onClick:b,title:e.label,children:[n("span",{className:"uds-menu_nav__item-icon",children:n(h,{name:e.icon,size:24,appearance:"duotone"})}),n("div",{className:"uds-menu_nav__item-label",children:e.label})]}):i("a",{className:"uds-menu_nav__item-link",href:e.path??"/",onClick:b,title:e.label,children:[n("span",{className:"uds-menu_nav__item-icon",children:n(h,{name:e.icon,size:24,appearance:"duotone"})}),n("div",{className:"uds-menu_nav__item-label",children:e.label})]})},e.path??e.label)}),[c,N,E,s,O,b,x,m]);return i("aside",{className:`uds-menu${s?" uds-menu--expanded":""} ${l}`,"aria-label":le,onClickCapture:re,children:[H&&i("div",{className:"uds-menu_brand",children:[n(v,{appearance:"text",icon:"List",size:"default",label:s?"Collapse menu":"Expand menu",layout:"icon-only","aria-label":s?"Collapse menu":"Expand menu",className:"uds-menu_brand__toggle",onClick:ie}),n("div",{className:"uds-menu_brand__symbol",children:n(J,{brand:j,symbol:!0})}),n("div",{className:"uds-menu_brand__full",children:n(J,{brand:j})})]}),K&&i("div",{className:"uds-menu_search",children:[n(v,{appearance:"text",icon:"MagnifyingGlass",label:"Search",layout:"icon-only","aria-label":"Search",className:"uds-menu_search__button"}),n("div",{className:"uds-menu_search__field",children:n(me,{type:"text",placeholder:"Search",icon:"MagnifyingGlass",iconPosition:"right",className:"uds-menu_search__input",size:"compact"})})]}),Q&&w.length>0&&T&&i("div",{className:"uds-menu_brands",children:[n(v,{appearance:"text",icon:"PlusCircle",label:"Brand",layout:"icon-only","aria-label":"Switch brand",className:"uds-menu_brands__button"}),n("div",{className:"uds-menu_brands__dropdown",children:n(_e,{options:w.map(e=>({value:e,label:e})),value:z,onChange:e=>{typeof e=="string"&&T(e)},placeholder:"Select brand",placement:"bottom-start",size:"compact"})})]}),W&&n("nav",{className:"uds-menu_nav",children:oe}),X&&f&&n("div",{className:"uds-menu_footer",children:i("div",{className:"uds-menu_mode",children:[n(v,{appearance:"text",icon:_==="light"?"Sun":"Moon",label:_==="light"?"Light mode":"Dark mode",layout:"icon-only",size:"default","aria-label":"Toggle light/dark mode",className:"uds-menu_mode__button",onClick:()=>P(_==="light"?"dark":"light")}),i("div",{className:"uds-menu_mode__controls",children:[n(h,{name:_==="light"?"Sun":"Moon",size:20,appearance:"duotone"}),n("span",{className:"uds-menu_mode__label",children:_==="light"?"Light":"Dark"}),n(pe,{checked:_==="dark",onChange:e=>P(e?"dark":"light"),className:"uds-menu_mode__toggle"})]})]})}),Y&&i("div",{className:"uds-menu_account",children:[n(ue,{src:ee,initials:Z,alt:C?`${C} avatar`:"User avatar",size:"default"}),s&&i(ce,{children:[n(fe,{as:"p",variant:"body-16",weight:"semibold",leading:"regular",className:"uds-menu_account__name",children:C}),n(he,{placement:"top-start",items:se,trigger:n(v,{appearance:"text",icon:n(h,{name:"DotsThreeVertical",appearance:"bold"}),label:"Account Menu",layout:"icon-only","aria-label":"Account menu"})})]})]})]})}U.defaultProps={title:"Menu"};const Te=R.memo(U);export{Te as default};
|
|
@@ -5,13 +5,14 @@ export type FlexAlignItems = "stretch" | "flex-start" | "center" | "flex-end" |
|
|
|
5
5
|
export type FlexWrap = "nowrap" | "wrap" | "wrap-reverse";
|
|
6
6
|
export type FlexGapToken = "0" | "2" | "4" | "6" | "8" | "10" | "12" | "14" | "16" | "18" | "24" | "32" | "48" | "64" | "80";
|
|
7
7
|
export type FlexGapTokenName = `spacing-${FlexGapToken}`;
|
|
8
|
+
export type FlexGapSpecial = "auto";
|
|
8
9
|
export interface FlexProps extends React.HTMLAttributes<HTMLElement> {
|
|
9
10
|
as?: React.ElementType;
|
|
10
11
|
direction?: FlexDirection;
|
|
11
12
|
justifyContent?: FlexJustifyContent;
|
|
12
13
|
alignItems?: FlexAlignItems;
|
|
13
14
|
wrap?: boolean | FlexWrap;
|
|
14
|
-
gap?: FlexGapToken | FlexGapTokenName | number | string;
|
|
15
|
+
gap?: FlexGapToken | FlexGapTokenName | FlexGapSpecial | number | string;
|
|
15
16
|
fullWidth?: boolean;
|
|
16
17
|
inline?: boolean;
|
|
17
18
|
}
|
|
@@ -4,7 +4,6 @@ export { ActionMenu } from "../components/ActionMenu";
|
|
|
4
4
|
export { Avatar } from "../components/Avatar";
|
|
5
5
|
export { Badge } from "../components/Badge";
|
|
6
6
|
export { Button } from "../components/Button";
|
|
7
|
-
export { Card } from "../components/Card";
|
|
8
7
|
export { Checkbox } from "../components/Checkbox";
|
|
9
8
|
export { Checklist } from "../components/Checklist";
|
|
10
9
|
export { Code } from "../components/Code";
|
|
@@ -35,7 +35,7 @@ export declare const COMPONENT_API: {
|
|
|
35
35
|
};
|
|
36
36
|
readonly composition: {
|
|
37
37
|
readonly allowedChildren: readonly [];
|
|
38
|
-
readonly allowedParents: readonly ["
|
|
38
|
+
readonly allowedParents: readonly ["Menu", "Table"];
|
|
39
39
|
readonly disallowedChildren: readonly [];
|
|
40
40
|
};
|
|
41
41
|
readonly aliases: {
|
|
@@ -66,7 +66,7 @@ export declare const COMPONENT_API: {
|
|
|
66
66
|
};
|
|
67
67
|
readonly composition: {
|
|
68
68
|
readonly allowedChildren: readonly [];
|
|
69
|
-
readonly allowedParents: readonly ["
|
|
69
|
+
readonly allowedParents: readonly ["Table"];
|
|
70
70
|
readonly disallowedChildren: readonly [];
|
|
71
71
|
};
|
|
72
72
|
readonly aliases: {
|
|
@@ -208,7 +208,7 @@ export declare const COMPONENT_API: {
|
|
|
208
208
|
};
|
|
209
209
|
readonly composition: {
|
|
210
210
|
readonly allowedChildren: readonly [];
|
|
211
|
-
readonly allowedParents: readonly ["AppShell", "
|
|
211
|
+
readonly allowedParents: readonly ["AppShell", "Container", "Flex", "Modal", "Table", "Tabs"];
|
|
212
212
|
readonly disallowedChildren: readonly ["Button"];
|
|
213
213
|
};
|
|
214
214
|
readonly aliases: {
|
|
@@ -285,30 +285,6 @@ export declare const COMPONENT_API: {
|
|
|
285
285
|
};
|
|
286
286
|
readonly antiPatterns: readonly [];
|
|
287
287
|
};
|
|
288
|
-
readonly Card: {
|
|
289
|
-
readonly name: "Card";
|
|
290
|
-
readonly source: "src/design-system/components/Card/Card.spec.ts";
|
|
291
|
-
readonly props: {};
|
|
292
|
-
readonly defaults: {};
|
|
293
|
-
readonly states: readonly [];
|
|
294
|
-
readonly tokensUsed: readonly [];
|
|
295
|
-
readonly accessibility: {
|
|
296
|
-
readonly keyboard: readonly [];
|
|
297
|
-
};
|
|
298
|
-
readonly composition: {
|
|
299
|
-
readonly allowedChildren: readonly ["Text", "Flex", "Button", "Tag", "Status", "Table", "Divider", "Avatar", "ActionMenu", "Field"];
|
|
300
|
-
readonly allowedParents: readonly ["AppShell", "Container", "Tabs"];
|
|
301
|
-
readonly disallowedChildren: readonly [];
|
|
302
|
-
};
|
|
303
|
-
readonly aliases: {
|
|
304
|
-
readonly props: {};
|
|
305
|
-
};
|
|
306
|
-
readonly ambiguity: {
|
|
307
|
-
readonly propNameCollisions: readonly [];
|
|
308
|
-
readonly hadAliasNormalization: false;
|
|
309
|
-
};
|
|
310
|
-
readonly antiPatterns: readonly [];
|
|
311
|
-
};
|
|
312
288
|
readonly Checkbox: {
|
|
313
289
|
readonly name: "Checkbox";
|
|
314
290
|
readonly source: "src/design-system/components/Checkbox/Checkbox.spec.ts";
|
|
@@ -522,7 +498,7 @@ export declare const COMPONENT_API: {
|
|
|
522
498
|
readonly keyboard: readonly [];
|
|
523
499
|
};
|
|
524
500
|
readonly composition: {
|
|
525
|
-
readonly allowedChildren: readonly ["Flex", "
|
|
501
|
+
readonly allowedChildren: readonly ["Flex", "Table", "Text", "Button", "Field", "Divider", "Tag"];
|
|
526
502
|
readonly allowedParents: readonly ["AppShell", "root"];
|
|
527
503
|
readonly disallowedChildren: readonly [];
|
|
528
504
|
};
|
|
@@ -714,7 +690,7 @@ export declare const COMPONENT_API: {
|
|
|
714
690
|
};
|
|
715
691
|
readonly composition: {
|
|
716
692
|
readonly allowedChildren: readonly [];
|
|
717
|
-
readonly allowedParents: readonly ["
|
|
693
|
+
readonly allowedParents: readonly ["Container", "Modal"];
|
|
718
694
|
readonly disallowedChildren: readonly [];
|
|
719
695
|
};
|
|
720
696
|
readonly aliases: {
|
|
@@ -905,7 +881,7 @@ export declare const COMPONENT_API: {
|
|
|
905
881
|
};
|
|
906
882
|
readonly composition: {
|
|
907
883
|
readonly allowedChildren: readonly ["TextInput", "Input", "Dropdown", "Datepicker", "Textarea", "Checkbox", "Radio", "Toggle", "Slider", "FileUpload"];
|
|
908
|
-
readonly allowedParents: readonly ["
|
|
884
|
+
readonly allowedParents: readonly ["Container", "Modal", "Tabs"];
|
|
909
885
|
readonly disallowedChildren: readonly [];
|
|
910
886
|
};
|
|
911
887
|
readonly aliases: {
|
|
@@ -970,7 +946,7 @@ export declare const COMPONENT_API: {
|
|
|
970
946
|
};
|
|
971
947
|
readonly composition: {
|
|
972
948
|
readonly allowedChildren: readonly [];
|
|
973
|
-
readonly allowedParents: readonly ["AppShell", "
|
|
949
|
+
readonly allowedParents: readonly ["AppShell", "Container"];
|
|
974
950
|
readonly disallowedChildren: readonly [];
|
|
975
951
|
};
|
|
976
952
|
readonly aliases: {
|
|
@@ -1585,7 +1561,7 @@ export declare const COMPONENT_API: {
|
|
|
1585
1561
|
};
|
|
1586
1562
|
readonly composition: {
|
|
1587
1563
|
readonly allowedChildren: readonly [];
|
|
1588
|
-
readonly allowedParents: readonly ["
|
|
1564
|
+
readonly allowedParents: readonly ["Table"];
|
|
1589
1565
|
readonly disallowedChildren: readonly [];
|
|
1590
1566
|
};
|
|
1591
1567
|
readonly aliases: {
|
|
@@ -1651,7 +1627,7 @@ export declare const COMPONENT_API: {
|
|
|
1651
1627
|
};
|
|
1652
1628
|
readonly composition: {
|
|
1653
1629
|
readonly allowedChildren: readonly ["Tag", "Status", "Avatar", "Button", "ActionMenu", "ProgressIndicator", "DotStatus"];
|
|
1654
|
-
readonly allowedParents: readonly ["
|
|
1630
|
+
readonly allowedParents: readonly ["Container", "Tabs"];
|
|
1655
1631
|
readonly disallowedChildren: readonly ["Table"];
|
|
1656
1632
|
};
|
|
1657
1633
|
readonly aliases: {
|
|
@@ -1692,7 +1668,7 @@ export declare const COMPONENT_API: {
|
|
|
1692
1668
|
readonly keyboard: readonly [];
|
|
1693
1669
|
};
|
|
1694
1670
|
readonly composition: {
|
|
1695
|
-
readonly allowedChildren: readonly ["Text", "Tag", "Button", "
|
|
1671
|
+
readonly allowedChildren: readonly ["Text", "Tag", "Button", "Table", "Field"];
|
|
1696
1672
|
readonly allowedParents: readonly [];
|
|
1697
1673
|
readonly disallowedChildren: readonly [];
|
|
1698
1674
|
};
|
|
@@ -1742,7 +1718,7 @@ export declare const COMPONENT_API: {
|
|
|
1742
1718
|
};
|
|
1743
1719
|
readonly composition: {
|
|
1744
1720
|
readonly allowedChildren: readonly [];
|
|
1745
|
-
readonly allowedParents: readonly ["
|
|
1721
|
+
readonly allowedParents: readonly ["Container", "Modal", "Table", "Tabs"];
|
|
1746
1722
|
readonly disallowedChildren: readonly [];
|
|
1747
1723
|
};
|
|
1748
1724
|
readonly aliases: {
|
|
@@ -1789,7 +1765,7 @@ export declare const COMPONENT_API: {
|
|
|
1789
1765
|
};
|
|
1790
1766
|
readonly composition: {
|
|
1791
1767
|
readonly allowedChildren: readonly [];
|
|
1792
|
-
readonly allowedParents: readonly ["AppShell", "
|
|
1768
|
+
readonly allowedParents: readonly ["AppShell", "Container", "Flex", "Menu", "Modal", "Tabs"];
|
|
1793
1769
|
readonly disallowedChildren: readonly [];
|
|
1794
1770
|
};
|
|
1795
1771
|
readonly aliases: {
|
|
@@ -9,7 +9,6 @@ export * from "./components/ButtonGroup";
|
|
|
9
9
|
export * from "./components/Text";
|
|
10
10
|
export * from "./components/Button";
|
|
11
11
|
export * from "./components/Calendar";
|
|
12
|
-
export * from "./components/Card";
|
|
13
12
|
export * from "./components/Checkbox";
|
|
14
13
|
export * from "./components/CheckboxGroup";
|
|
15
14
|
export * from "./components/Chip";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../src/app-shell/AppShell.cjs"),r=require("../ai/validation/validateAIOutput.cjs"),u=require("../components/ActionMenu/ActionMenu.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../src/app-shell/AppShell.cjs"),r=require("../ai/validation/validateAIOutput.cjs"),u=require("../components/ActionMenu/ActionMenu.cjs"),n=require("../components/Avatar/Avatar.cjs"),a=require("../components/Badge/Badge.cjs"),i=require("../components/Button/Button.cjs"),o=require("../components/Checkbox/Checkbox.cjs"),c=require("../components/Code/Code.cjs"),l=require("../components/Divider/Divider.cjs"),s=require("../components/Field/Field.cjs"),d=require("../components/FileUpload/FileUpload.cjs"),T=require("../components/Pagination/Pagination.cjs"),q=require("../components/ProgressIndicator/ProgressIndicator.cjs"),p=require("../components/Slider/Slider.cjs"),f=require("../components/Status/Status.cjs"),I=require("../components/Steps/Steps.cjs"),m=require("../components/Table/Table.cjs"),h=require("../components/Tag/Tag.cjs"),g=require("../components/TextInput/TextInput.cjs"),A=require("../components/Textarea/Textarea.cjs"),S=require("../components/Toggle/Toggle.cjs"),M=require("../components/Tooltip/Tooltip.cjs"),C=require("../components/Checklist/Checklist.cjs"),P=require("../components/Container/Container.cjs"),D=require("../components/DateInput/DateInput.cjs"),R=require("../components/DateRangeInput/DateRangeInput.cjs"),x=require("../components/Dropdown/Dropdown.cjs"),O=require("../components/Flex/Flex.cjs"),_=require("../components/Icon/Icon.cjs"),b=require("../components/Menu/Menu.cjs"),v=require("../components/Modal/Modal.cjs"),F=require("../components/SearchInput/SearchInput.cjs"),N=require("../components/Tabs/Tabs.cjs"),k=require("../components/Text/Text.cjs"),e=require("../theme/ThemeProvider.cjs"),E=require("../components/TimeInput/TimeInput.cjs"),B=require("../components/Toolbar/Toolbar.cjs"),K=require("../theme/createBrand.cjs"),y=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=t.AppShell;exports.validateAIOutput=r.validateAIOutput;exports.ActionMenu=u.default;exports.Avatar=n.default;exports.Badge=a.default;exports.Button=i.default;exports.Checkbox=o.default;exports.Code=c.default;exports.Divider=l.default;exports.Field=s.default;exports.FileUpload=d.default;exports.Pagination=T.default;exports.ProgressIndicator=q.default;exports.Slider=p.default;exports.Status=f.default;exports.Steps=I.default;exports.Table=m.default;exports.Tag=h.default;exports.TextInput=g.default;exports.Textarea=A.default;exports.Toggle=S.default;exports.Tooltip=M.default;exports.Checklist=C.Checklist;exports.Container=P.Container;exports.DateInput=D.DateInput;exports.DateRangeInput=R.DateRangeInput;exports.Dropdown=x.default;exports.Flex=O.Flex;exports.Icon=_.default;exports.Menu=b.default;exports.Modal=v.default;exports.SearchInput=F.SearchInput;exports.Tabs=N.default;exports.Text=k.Text;exports.ThemeProvider=e.ThemeProvider;exports.useTheme=e.useTheme;exports.useThemeController=e.useThemeController;exports.TimeInput=E.TimeInput;exports.Toolbar=B.Toolbar;exports.createBrand=K.createBrand;exports.createTheme=y.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
|
|
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 u}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 C}from"../components/Field/Field.js";import{default as S}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 K}from"../components/Table/Table.js";import{default as G}from"../components/Tag/Tag.js";import{default as Y}from"../components/TextInput/TextInput.js";import{default as H}from"../components/Textarea/Textarea.js";import{default as q}from"../components/Toggle/Toggle.js";import{default as J}from"../components/Tooltip/Tooltip.js";import{Checklist as Q}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}from"../components/Flex/Flex.js";import{default as pe}from"../components/Icon/Icon.js";import{default as xe}from"../components/Menu/Menu.js";import{default as se}from"../components/Modal/Modal.js";import{SearchInput as ue}from"../components/SearchInput/SearchInput.js";import{default as ne}from"../components/Tabs/Tabs.js";import{Text as ce}from"../components/Text/Text.js";import{ThemeProvider as ge,useTheme as he,useThemeController as Ae}from"../theme/ThemeProvider.js";import{TimeInput as Ce}from"../components/TimeInput/TimeInput.js";import{Toolbar as Se}from"../components/Toolbar/Toolbar.js";import{createBrand as Re}from"../theme/createBrand.js";import{createTheme as Fe}from"../theme/createTheme.js";import{createUDSRuntimeHelperSDK as Oe}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,u as Badge,n as Button,c as Checkbox,Q 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,C as Field,S as FileUpload,ae as Flex,pe as Icon,xe as Menu,se as Modal,R as Pagination,F as ProgressIndicator,ue as SearchInput,O as Slider,k as Status,E as Steps,K as Table,ne as Tabs,G as Tag,ce as Text,Y as TextInput,H as Textarea,ge as ThemeProvider,Ce as TimeInput,q as Toggle,Se as Toolbar,J as Tooltip,Re as createBrand,Fe as createTheme,Oe as createUDSRuntimeHelperSDK,he as useTheme,Ae as useThemeController,p as validateAIOutput};
|