diff --git a/assets/Alert.stories-clncL-v0.js b/assets/Alert.stories-mmhfstRR.js similarity index 98% rename from assets/Alert.stories-clncL-v0.js rename to assets/Alert.stories-mmhfstRR.js index 4a7914c0..f148472d 100644 --- a/assets/Alert.stories-clncL-v0.js +++ b/assets/Alert.stories-mmhfstRR.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DoxjgJx5.js";import{B as u}from"./Button-DrAMl4OR.js";import{c as _}from"./index-C2KoGaFq.js";import{r as C}from"./index-Cu9bd8lq.js";import{S as b}from"./error-YokBWoNX.js";import{S as w}from"./close-D55JIkKE.js";import{T as p}from"./Text-BrcN_buA.js";import{I as A}from"./IconButton-j0Nfr_Qv.js";import"./UnstyledButton-CUaD5tB8.js";import"./Typography-BcgMUEGb.js";import"./IndicatorIcon-iinDG_Nf.js";const q=t=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",className:"cpd-icon",...t,children:e.jsx("path",{d:"m10.6 13.8-2.15-2.15a.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275.948.948 0 0 0-.275.7.95.95 0 0 0 .275.7L9.9 15.9c.2.2.433.3.7.3.267 0 .5-.1.7-.3l5.65-5.65a.948.948 0 0 0 .275-.7.948.948 0 0 0-.275-.7.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275L10.6 13.8ZM12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2a9.74 9.74 0 0 1 3.9.788 10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})}),j=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",className:"cpd-icon",...t,children:[e.jsx("path",{d:"M11.287 7.287A.968.968 0 0 1 12 7c.283 0 .52.096.713.287.191.192.287.43.287.713s-.096.52-.287.713A.968.968 0 0 1 12 9a.968.968 0 0 1-.713-.287A.967.967 0 0 1 11 8c0-.283.096-.52.287-.713Zm0 4A.968.968 0 0 1 12 11c.283 0 .52.096.713.287.191.192.287.43.287.713v4a.97.97 0 0 1-.287.712A.968.968 0 0 1 12 17a.968.968 0 0 1-.713-.288A.968.968 0 0 1 11 16v-4c0-.283.096-.52.287-.713Z"}),e.jsx("path",{fillRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2 0a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z",clipRule:"evenodd"})]}),S="_alert_1bz08_19",N="_content_1bz08_46",B="_title_1bz08_57",z="_icon_1bz08_57",T="_actions_1bz08_73",s={alert:S,content:N,"text-content":"_text-content_1bz08_53",title:B,icon:z,actions:T},l=({type:t,title:g,children:h,className:x,actions:m,onClose:d,...f})=>{const v=_(s.alert,x),y=C.useCallback(c=>{switch(t){case"critical":return e.jsx(b,{...c});case"info":return e.jsx(j,{...c});case"success":return e.jsx(q,{...c})}},[t]);return e.jsxs("div",{...f,className:v,"data-type":t,children:[y({width:24,height:24,className:s.icon,"aria-hidden":!0}),e.jsxs("div",{className:s.content,children:[e.jsxs("div",{className:s["text-content"],children:[e.jsx(p,{size:"md",weight:"semibold",children:g}),e.jsx(p,{size:"sm",weight:"regular",children:h})]}),m&&e.jsx("div",{className:s.actions,children:m})]}),d&&e.jsx(A,{onClick:d,"aria-label":"Close",role:"button",className:s.close,children:e.jsx(w,{})})]})};try{l.displayName="Alert",l.__docgenInfo={description:"An alert component component that is dismissable when passing an `onClose`\nproperty.",displayName:"Alert",props:{type:{defaultValue:null,description:"The type of alert",name:"type",required:!0,type:{name:"enum",value:[{value:'"success"'},{value:'"critical"'},{value:'"info"'}]}},title:{defaultValue:null,description:"The headline of the alert.",name:"title",required:!0,type:{name:"string"}},className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},actions:{defaultValue:null,description:`Actions that will be displayed to the right of the content +import{j as e}from"./jsx-runtime-DoxjgJx5.js";import{B as u}from"./Button-DrAMl4OR.js";import{c as _}from"./index-C2KoGaFq.js";import{r as C}from"./index-Cu9bd8lq.js";import{S as b}from"./error-YokBWoNX.js";import{S as w}from"./close-D55JIkKE.js";import{T as p}from"./Text-DCibjNNg.js";import{I as A}from"./IconButton-j0Nfr_Qv.js";import"./UnstyledButton-CUaD5tB8.js";import"./Typography-D-74lRMS.js";import"./IndicatorIcon-iinDG_Nf.js";const q=t=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",className:"cpd-icon",...t,children:e.jsx("path",{d:"m10.6 13.8-2.15-2.15a.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275.948.948 0 0 0-.275.7.95.95 0 0 0 .275.7L9.9 15.9c.2.2.433.3.7.3.267 0 .5-.1.7-.3l5.65-5.65a.948.948 0 0 0 .275-.7.948.948 0 0 0-.275-.7.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275L10.6 13.8ZM12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2a9.74 9.74 0 0 1 3.9.788 10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})}),j=t=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",className:"cpd-icon",...t,children:[e.jsx("path",{d:"M11.287 7.287A.968.968 0 0 1 12 7c.283 0 .52.096.713.287.191.192.287.43.287.713s-.096.52-.287.713A.968.968 0 0 1 12 9a.968.968 0 0 1-.713-.287A.967.967 0 0 1 11 8c0-.283.096-.52.287-.713Zm0 4A.968.968 0 0 1 12 11c.283 0 .52.096.713.287.191.192.287.43.287.713v4a.97.97 0 0 1-.287.712A.968.968 0 0 1 12 17a.968.968 0 0 1-.713-.288A.968.968 0 0 1 11 16v-4c0-.283.096-.52.287-.713Z"}),e.jsx("path",{fillRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2 0a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z",clipRule:"evenodd"})]}),S="_alert_1bz08_19",N="_content_1bz08_46",B="_title_1bz08_57",z="_icon_1bz08_57",T="_actions_1bz08_73",s={alert:S,content:N,"text-content":"_text-content_1bz08_53",title:B,icon:z,actions:T},l=({type:t,title:g,children:h,className:x,actions:m,onClose:d,...f})=>{const v=_(s.alert,x),y=C.useCallback(c=>{switch(t){case"critical":return e.jsx(b,{...c});case"info":return e.jsx(j,{...c});case"success":return e.jsx(q,{...c})}},[t]);return e.jsxs("div",{...f,className:v,"data-type":t,children:[y({width:24,height:24,className:s.icon,"aria-hidden":!0}),e.jsxs("div",{className:s.content,children:[e.jsxs("div",{className:s["text-content"],children:[e.jsx(p,{size:"md",weight:"semibold",children:g}),e.jsx(p,{size:"sm",weight:"regular",children:h})]}),m&&e.jsx("div",{className:s.actions,children:m})]}),d&&e.jsx(A,{onClick:d,"aria-label":"Close",role:"button",className:s.close,children:e.jsx(w,{})})]})};try{l.displayName="Alert",l.__docgenInfo={description:"An alert component component that is dismissable when passing an `onClose`\nproperty.",displayName:"Alert",props:{type:{defaultValue:null,description:"The type of alert",name:"type",required:!0,type:{name:"enum",value:[{value:'"success"'},{value:'"critical"'},{value:'"info"'}]}},title:{defaultValue:null,description:"The headline of the alert.",name:"title",required:!0,type:{name:"string"}},className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},actions:{defaultValue:null,description:`Actions that will be displayed to the right of the content Wraps and stacks actions under content when alert's size is <=600px eg \`\`\` diff --git a/assets/Badge.stories-BLX6a74q.js b/assets/Badge.stories-GdEuLM3u.js similarity index 95% rename from assets/Badge.stories-BLX6a74q.js rename to assets/Badge.stories-GdEuLM3u.js index 79c7142d..46c6aa6e 100644 --- a/assets/Badge.stories-BLX6a74q.js +++ b/assets/Badge.stories-GdEuLM3u.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DoxjgJx5.js";import{c as o}from"./index-C2KoGaFq.js";import{T as c}from"./Typography-BcgMUEGb.js";import"./index-Cu9bd8lq.js";const i="_badge_qipht_17",l={badge:i},a=({children:t,kind:n="default",className:d})=>{const r=o(l.badge,d);return e.jsx(c,{as:"span",size:"sm",weight:"medium",className:r,"data-kind":n,children:t})};try{a.displayName="Badge",a.__docgenInfo={description:"A Badge component.",displayName:"Badge",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},kind:{defaultValue:{value:"default"},description:"The type of badge.",name:"kind",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"success"'},{value:'"critical"'}]}}}}}catch{}const B={title:"Badge",component:a,argTypes:{},args:{}},m=()=>e.jsxs(e.Fragment,{children:[e.jsx(a,{kind:"success",children:"Trusted"})," ",e.jsx(a,{kind:"critical",children:"Not trusted"})," ",e.jsx(a,{kind:"default",children:"Public room"})]}),s=m.bind({});s.args={};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`() => <> +import{j as e}from"./jsx-runtime-DoxjgJx5.js";import{c as o}from"./index-C2KoGaFq.js";import{T as c}from"./Typography-D-74lRMS.js";import"./index-Cu9bd8lq.js";const i="_badge_qipht_17",l={badge:i},a=({children:t,kind:n="default",className:d})=>{const r=o(l.badge,d);return e.jsx(c,{as:"span",size:"sm",weight:"medium",className:r,"data-kind":n,children:t})};try{a.displayName="Badge",a.__docgenInfo={description:"A Badge component.",displayName:"Badge",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},kind:{defaultValue:{value:"default"},description:"The type of badge.",name:"kind",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"success"'},{value:'"critical"'}]}}}}}catch{}const B={title:"Badge",component:a,argTypes:{},args:{}},m=()=>e.jsxs(e.Fragment,{children:[e.jsx(a,{kind:"success",children:"Trusted"})," ",e.jsx(a,{kind:"critical",children:"Not trusted"})," ",e.jsx(a,{kind:"default",children:"Public room"})]}),s=m.bind({});s.args={};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`() => <> Trusted   Not trusted diff --git a/assets/Color-PRSJMWNM-BEeqgdpE.js b/assets/Color-PRSJMWNM-Dc914bmM.js similarity index 99% rename from assets/Color-PRSJMWNM-BEeqgdpE.js rename to assets/Color-PRSJMWNM-Dc914bmM.js index 5055df87..17d1a14c 100644 --- a/assets/Color-PRSJMWNM-BEeqgdpE.js +++ b/assets/Color-PRSJMWNM-Dc914bmM.js @@ -1 +1 @@ -import{n as C,d as ue,T as Me,F as Ce,M as $e,g as Oe}from"./DocsRenderer-K4EAMTCU-Bh-bDDp5.js";import{a as h,r as m,g as fe}from"./index-Cu9bd8lq.js";import{_ as Ne,i as J,a as Ie}from"./_getPrototype-DpRPMK__.js";import"./iframe-CE9hY0S1.js";import"../sb-preview/runtime.js";import"./react-18-DoKVqUy3.js";import"./index-MTP5U5xA.js";import"./index-icJLasaE.js";import"./index-B7y3mIek.js";import"./index-tFWdirwu.js";import"./index-CZs6vfAl.js";import"./index-DXimoRZY.js";import"./index-DrFu-skq.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var I=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,s.current)):E(!1)},S=function(){return E(!1)};function E(p){var b=c.current,k=V(o.current),y=p?k.addEventListener:k.removeEventListener;y(b?"touchmove":"mousemove",w),y(b?"touchend":"mouseup",S)}return[function(p){var b=p.nativeEvent,k=o.current;if(k&&(re(b),!function(R,T){return T&&!F(R)}(b,c.current)&&k)){if(F(b)){c.current=!0;var y=b.changedTouches||[];y.length&&(s.current=y[0].identifier)}k.focus(),a(ne(k,b,s.current)),E(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),l({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},E]},[l,a]),d=i[0],f=i[1],g=i[2];return m.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),H=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=H(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},x=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?x(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?x(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:x(e.h),s:x(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:x(o/2),a:x(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),l=r*(1-n),s=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),i=a%6;return{r:x(255*[r,s,l,l,c,r][i]),g:x(255*[c,r,r,s,l,l][i]),b:x(255*[l,l,c,r,r,s][i]),a:x(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(x(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),l=a-Math.min(t,n,r),s=l?a===t?(n-r)/l:a===n?2+(r-t)/l:4+(t-n)/l:0;return{h:x(60*(s<0?s+6:s)),s:x(a?l/a*100:0),v:x(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=H(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:I(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:I(t.s+100*o.left,0,100),v:I(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(t.s)+"%, Brightness "+x(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],l=o[1],s=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,s.current.color)){var i=e.toHsva(t);s.current={hsva:i,color:t},l(i)}},[t,e]),m.useEffect(function(){var i;ve(a,s.current.hsva)||e.equal(i=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:i},r(i))},[a,e,r]);var c=m.useCallback(function(i){l(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var qe=typeof window<"u"?m.useLayoutEffect:m.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var c=ye(n,o,a),i=c[0],d=c[1],f=H(["react-colorful",t]);return h.createElement("div",$({},l,{ref:s,className:f}),h.createElement(be,{hsva:i,onChange:d}),h.createElement(me,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=H(["react-colorful__alpha",t]),l=x(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(s){r({a:s.left})},onKey:function(s){r({a:I(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var c=ye(n,o,a),i=c[0],d=c[1],f=H(["react-colorful",t]);return h.createElement("div",$({},l,{ref:s,className:f}),h.createElement(be,{hsva:i,onChange:d}),h.createElement(me,{hue:i.h,onChange:d}),h.createElement(Ke,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:B,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const z=Ye,ke={};for(const e of Object.keys(z))ke[z[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),l=a-o;let s,c;a===o?s=0:t===a?s=(n-r)/l:n===a?s=2+(r-t)/l:r===a&&(s=4+(t-n)/l),s=Math.min(s*60,360),s<0&&(s+=360);const i=(o+a)/2;return a===o?c=0:i<=.5?c=l/(a+o):c=l/(2-a-o),[s,c*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const l=e[0]/255,s=e[1]/255,c=e[2]/255,i=Math.max(l,s,c),d=i-Math.min(l,s,c),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(l),n=f(s),r=f(c),l===i?o=r-n:s===i?o=1/3+t-r:c===i&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,i*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,l=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[a*100,l*100,s*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(z)){const a=z[o],l=Je(e,a);l.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,l=t*.0193+n*.1192+r*.9505;return[o*100,a*100,l*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,l=500*(n-r),s=200*(r-o);return[a,l,s]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,l;if(n===0)return l=r*255,[l,l,l];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,c=[0,0,0];for(let i=0;i<3;i++)a=t+1/3*-(i-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(o-s)*6*a:2*a<1?l=o:3*a<2?l=s+(o-s)*(2/3-a)*6:l=s,c[i]=l*255;return c};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const l=(r+n)/2,s=r===0?2*o/(a+o):2*n/(r+n);return[t,s*100,l*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),l=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,l];case 1:return[s,r,l];case 2:return[l,r,c];case 3:return[l,s,r];case 4:return[c,l,r];case 5:return[r,l,s]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,l;l=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,l/=2,[t,a*100,l*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const l=Math.floor(6*t),s=1-r;a=6*t-l,l&1&&(a=1-a);const c=n+a*(s-n);let i,d,f;switch(l){default:case 6:case 0:i=s,d=c,f=n;break;case 1:i=c,d=s,f=n;break;case 2:i=n,d=s,f=c;break;case 3:i=n,d=c,f=s;break;case 4:i=c,d=n,f=s;break;case 5:i=s,d=n,f=c;break}return[i*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),l=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[a*255,l*255,s*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,l;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,l=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),[o*255,a*255,l*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),l=200*(n-r);return[o,a,l]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,l;a=(t+16)/116,o=n/500+a,l=a-r/200;const s=a**3,c=o**3,i=l**3;return a=s>.008856?s:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,l=i>.008856?i:(l-16/116)/7.787,o*=95.047,a*=100,l*=108.883,[o,a,l]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const l=Math.sqrt(n*n+r*r);return[t,l,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),l=n*Math.sin(o);return[t,a,l]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(l+=60),l};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,l=r&255;return[o,a,l]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),l=o-a;let s,c;return l<1?s=a/(1-l):s=0,l<=0?c=0:o===t?c=(n-r)/l%6:o===n?c=2+(r-t)/l:c=4+(t-n)/l,c/=6,c%=1,[c*360,l*100,s*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,l=a%1,s=1-l;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return c=(1-n)*r,[(n*o[0]+c)*255,(n*o[1]+c)*255,(n*o[2]+c)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const W=_e;function Qe(){const e={},t=Object.keys(W);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function lt(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,l=0;l{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=lt(o),O[e][r].raw=at(o)})});var st=O;const _=fe(st);var ct=Ne,it=function(){return ct.Date.now()},ut=it,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,le=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return le;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?le:+e}var Mt=Et,Ct=J,D=ut,se=Mt,$t="Expected a function",Ot=Math.max,Nt=Math.min;function It(e,t,n){var r,o,a,l,s,c,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=se(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ot(se(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function w(v){var M=r,j=o;return r=o=void 0,i=v,l=e.apply(j,M),l}function S(v){return i=v,s=setTimeout(b,t),d?w(v):l}function E(v){var M=v-c,j=v-i,te=t-M;return f?Nt(te,a-j):te}function p(v){var M=v-c,j=v-i;return c===void 0||M>=t||M<0||f&&j>=a}function b(){var v=D();if(p(v))return k(v);s=setTimeout(b,E(v))}function k(v){return s=void 0,g&&r?w(v):(r=o=void 0,l)}function y(){s!==void 0&&clearTimeout(s),i=0,r=c=o=s=void 0}function R(){return s===void 0?l:k(D())}function T(){var v=D(),M=p(v);if(r=arguments,o=this,c=v,M){if(s===void 0)return S(c);if(f)return clearTimeout(s),s=setTimeout(b,t),w(c)}return s===void 0&&(s=setTimeout(b,t)),l}return T.cancel=y,T.flush=R,T}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=C.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Lt=C(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),qt=C.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=C(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=C.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=C.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ce=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...n,style:{...t,backgroundImage:r}})},Kt=C(Ce.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=C($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ie=e=>{let t=e?.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},N=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[l,s,c,i]=ie(e),[d,f,g]=_.rgb.hsl([l,s,c])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([l,s,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${_.rgb.hex([l,s,c]).toLowerCase()}`}}if(Ut.test(e)){let[l,s,c,i]=ie(e),[d,f,g]=_.hsl.rgb([l,s,c])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([l,s,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${_.hsl.hex([l,s,c]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!t?.valid)return q[n];if(n!=="hex")return t?.[n]||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,l]=r[1].split("");return`#${o}${o}${a}${a}${l}${l}`},Zt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>N(n)),[l,s]=m.useState(o?.colorSpace||"hex");m.useEffect(()=>{let f=e||"",g=N(f);r(f),a(g),s(g?.colorSpace||"hex")},[e]);let c=m.useMemo(()=>Qt(n,o,l).toLowerCase(),[n,o,l]),i=m.useCallback(f=>{let g=N(f),w=g?.value||f||"";r(w),w===""&&(a(void 0),t(void 0)),g&&(a(g),s(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(l)+1;f>=L.length&&(f=0),s(L[f]);let g=o?.[L[f]]||"";r(g),t(g)},[o,l,t]);return{value:n,realValue:c,updateValue:i,color:o,colorSpace:l,cycleColorSpace:d}},X=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=m.useState(t?.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(s=>typeof s=="string"?N(s):s.title?{...N(s.color),keyword:s.title}:N(s.color)).concat(r).filter(Boolean).slice(-27),[e,r]),l=m.useCallback(s=>{s?.valid&&(a.some(c=>X(c[n])===X(s[n]))||o(c=>c.concat(s)))},[n,a]);return{presets:a,addPreset:l}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:l=!1,argType:s})=>{let c=m.useCallback(Ht(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:w,cycleColorSpace:S}=Zt(t,c),{presets:E,addPreset:p}=en(a,g,w),b=Jt[w],k=!!s?.table?.readonly;return h.createElement(Pt,{"aria-readonly":k},h.createElement(Lt,{startOpen:l,trigger:k?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(qt,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),E.length>0&&h.createElement(Wt,null,E.map((y,R)=>h.createElement(ue,{key:`${y.value}-${R}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:y.keyword||y.value})},h.createElement(ce,{value:y[w],active:g&&X(y[w])===X(g[w]),onClick:()=>f(y.value)})))))},h.createElement(ce,{value:d,style:{margin:4}})),h.createElement(Kt,{id:Oe(e),value:i,onChange:y=>f(y.target.value),onFocus:y=>y.target.select(),readOnly:k,placeholder:"Choose color..."}),i?h.createElement(Vt,{onClick:S}):null)},bn=tn;export{tn as ColorControl,bn as default}; +import{n as C,d as ue,T as Me,F as Ce,M as $e,g as Oe}from"./DocsRenderer-K4EAMTCU-CYg_3s1h.js";import{a as h,r as m,g as fe}from"./index-Cu9bd8lq.js";import{_ as Ne,i as J,a as Ie}from"./_getPrototype-DpRPMK__.js";import"./iframe-CdhHfPBR.js";import"../sb-preview/runtime.js";import"./react-18-DoKVqUy3.js";import"./index-MTP5U5xA.js";import"./index-icJLasaE.js";import"./index-B7y3mIek.js";import"./index-tFWdirwu.js";import"./index-CZs6vfAl.js";import"./index-DXimoRZY.js";import"./index-DrFu-skq.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=m.useRef(e),n=m.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var I=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,s.current)):E(!1)},S=function(){return E(!1)};function E(p){var b=c.current,k=V(o.current),y=p?k.addEventListener:k.removeEventListener;y(b?"touchmove":"mousemove",w),y(b?"touchend":"mouseup",S)}return[function(p){var b=p.nativeEvent,k=o.current;if(k&&(re(b),!function(R,T){return T&&!F(R)}(b,c.current)&&k)){if(F(b)){c.current=!0;var y=b.changedTouches||[];y.length&&(s.current=y[0].identifier)}k.focus(),a(ne(k,b,s.current)),E(!0)}},function(p){var b=p.which||p.keyCode;b<37||b>40||(p.preventDefault(),l({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},E]},[l,a]),d=i[0],f=i[1],g=i[2];return m.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),H=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=H(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},x=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?x(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?x(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:x(e.h),s:x(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:x(o/2),a:x(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},B=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),l=r*(1-n),s=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),i=a%6;return{r:x(255*[r,s,l,l,c,r][i]),g:x(255*[c,r,r,s,l,l][i]),b:x(255*[l,l,c,r,r,s][i]),a:x(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},P=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?P(x(255*o)):"";return"#"+P(t)+P(n)+P(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),l=a-Math.min(t,n,r),s=l?a===t?(n-r)/l:a===n?2+(r-t)/l:4+(t-n)/l:0;return{h:x(60*(s<0?s+6:s)),s:x(a?l/a*100:0),v:x(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=H(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:I(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":x(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:I(t.s+100*o.left,0,100),v:I(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+x(t.s)+"%, Brightness "+x(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=m.useState(function(){return e.toHsva(t)}),a=o[0],l=o[1],s=m.useRef({color:t,hsva:a});m.useEffect(function(){if(!e.equal(t,s.current.color)){var i=e.toHsva(t);s.current={hsva:i,color:t},l(i)}},[t,e]),m.useEffect(function(){var i;ve(a,s.current.hsva)||e.equal(i=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:i},r(i))},[a,e,r]);var c=m.useCallback(function(i){l(function(d){return Object.assign({},d,i)})},[]);return[a,c]}var qe=typeof window<"u"?m.useLayoutEffect:m.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var c=ye(n,o,a),i=c[0],d=c[1],f=H(["react-colorful",t]);return h.createElement("div",$({},l,{ref:s,className:f}),h.createElement(be,{hsva:i,onChange:d}),h.createElement(me,{hue:i.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+B(Object.assign({},n,{a:0}))+", "+B(Object.assign({},n,{a:1}))+")"},a=H(["react-colorful__alpha",t]),l=x(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(s){r({a:s.left})},onKey:function(s){r({a:I(n.a+s.left)})},"aria-label":"Alpha","aria-valuetext":l+"%","aria-valuenow":l,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:B(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,l=Q(e,["className","colorModel","color","onChange"]),s=m.useRef(null);xe(s);var c=ye(n,o,a),i=c[0],d=c[1],f=H(["react-colorful",t]);return h.createElement("div",$({},l,{ref:s,className:f}),h.createElement(be,{hsva:i,onChange:d}),h.createElement(me,{hue:i.h,onChange:d}),h.createElement(Ke,{hsva:i,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:B,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const z=Ye,ke={};for(const e of Object.keys(z))ke[z[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),l=a-o;let s,c;a===o?s=0:t===a?s=(n-r)/l:n===a?s=2+(r-t)/l:r===a&&(s=4+(t-n)/l),s=Math.min(s*60,360),s<0&&(s+=360);const i=(o+a)/2;return a===o?c=0:i<=.5?c=l/(a+o):c=l/(2-a-o),[s,c*100,i*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const l=e[0]/255,s=e[1]/255,c=e[2]/255,i=Math.max(l,s,c),d=i-Math.min(l,s,c),f=function(g){return(i-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/i,t=f(l),n=f(s),r=f(c),l===i?o=r-n:s===i?o=1/3+t-r:c===i&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,i*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,l=(1-n-o)/(1-o)||0,s=(1-r-o)/(1-o)||0;return[a*100,l*100,s*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(z)){const a=z[o],l=Je(e,a);l.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,l=t*.0193+n*.1192+r*.9505;return[o*100,a*100,l*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,l=500*(n-r),s=200*(r-o);return[a,l,s]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,l;if(n===0)return l=r*255,[l,l,l];r<.5?o=r*(1+n):o=r+n-r*n;const s=2*r-o,c=[0,0,0];for(let i=0;i<3;i++)a=t+1/3*-(i-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(o-s)*6*a:2*a<1?l=o:3*a<2?l=s+(o-s)*(2/3-a)*6:l=s,c[i]=l*255;return c};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const l=(r+n)/2,s=r===0?2*o/(a+o):2*n/(r+n);return[t,s*100,l*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),l=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,c,l];case 1:return[s,r,l];case 2:return[l,r,c];case 3:return[l,s,r];case 4:return[c,l,r];case 5:return[r,l,s]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,l;l=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,l/=2,[t,a*100,l*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const l=Math.floor(6*t),s=1-r;a=6*t-l,l&1&&(a=1-a);const c=n+a*(s-n);let i,d,f;switch(l){default:case 6:case 0:i=s,d=c,f=n;break;case 1:i=c,d=s,f=n;break;case 2:i=n,d=s,f=c;break;case 3:i=n,d=c,f=s;break;case 4:i=c,d=n,f=s;break;case 5:i=s,d=n,f=c;break}return[i*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),l=1-Math.min(1,n*(1-o)+o),s=1-Math.min(1,r*(1-o)+o);return[a*255,l*255,s*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,l;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,l=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),l=Math.min(Math.max(0,l),1),[o*255,a*255,l*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),l=200*(n-r);return[o,a,l]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,l;a=(t+16)/116,o=n/500+a,l=a-r/200;const s=a**3,c=o**3,i=l**3;return a=s>.008856?s:(a-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,l=i>.008856?i:(l-16/116)/7.787,o*=95.047,a*=100,l*=108.883,[o,a,l]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const l=Math.sqrt(n*n+r*r);return[t,l,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),l=n*Math.sin(o);return[t,a,l]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(l+=60),l};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(s=>s+s).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,l=r&255;return[o,a,l]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),l=o-a;let s,c;return l<1?s=a/(1-l):s=0,l<=0?c=0:o===t?c=(n-r)/l%6:o===n?c=2+(r-t)/l:c=4+(t-n)/l,c/=6,c%=1,[c*360,l*100,s*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,l=a%1,s=1-l;let c=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=l,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=l;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=l,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return c=(1-n)*r,[(n*o[0]+c)*255,(n*o[1]+c)*255,(n*o[2]+c)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const W=_e;function Qe(){const e={},t=Object.keys(W);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function lt(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,l=0;l{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=lt(o),O[e][r].raw=at(o)})});var st=O;const _=fe(st);var ct=Ne,it=function(){return ct.Date.now()},ut=it,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,le=NaN,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return le;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?le:+e}var Mt=Et,Ct=J,D=ut,se=Mt,$t="Expected a function",Ot=Math.max,Nt=Math.min;function It(e,t,n){var r,o,a,l,s,c,i=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=se(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Ot(se(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function w(v){var M=r,j=o;return r=o=void 0,i=v,l=e.apply(j,M),l}function S(v){return i=v,s=setTimeout(b,t),d?w(v):l}function E(v){var M=v-c,j=v-i,te=t-M;return f?Nt(te,a-j):te}function p(v){var M=v-c,j=v-i;return c===void 0||M>=t||M<0||f&&j>=a}function b(){var v=D();if(p(v))return k(v);s=setTimeout(b,E(v))}function k(v){return s=void 0,g&&r?w(v):(r=o=void 0,l)}function y(){s!==void 0&&clearTimeout(s),i=0,r=c=o=s=void 0}function R(){return s===void 0?l:k(D())}function T(){var v=D(),M=p(v);if(r=arguments,o=this,c=v,M){if(s===void 0)return S(c);if(f)return clearTimeout(s),s=setTimeout(b,t),w(c)}return s===void 0&&(s=setTimeout(b,t)),l}return T.cancel=y,T.flush=R,T}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=C.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),Lt=C(ue)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),qt=C.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=C(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=C.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=C.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ce=({value:e,style:t,...n})=>{let r=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...n,style:{...t,backgroundImage:r}})},Kt=C(Ce.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=C($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),L=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},q={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ie=e=>{let t=e?.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},N=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[l,s,c,i]=ie(e),[d,f,g]=_.rgb.hsl([l,s,c])||[0,0,0];return{valid:t,value:e,keyword:_.rgb.keyword([l,s,c]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${i})`,hex:`#${_.rgb.hex([l,s,c]).toLowerCase()}`}}if(Ut.test(e)){let[l,s,c,i]=ie(e),[d,f,g]=_.hsl.rgb([l,s,c])||[0,0,0];return{valid:t,value:e,keyword:_.hsl.keyword([l,s,c]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${i})`,hsl:e,hex:`#${_.hsl.hex([l,s,c]).toLowerCase()}`}}let n=e.replace("#",""),r=_.keyword.rgb(n)||_.hex.rgb(n),o=_.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{_.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:_.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!t?.valid)return q[n];if(n!=="hex")return t?.[n]||q[n];if(!t.hex.startsWith("#"))try{return`#${_.keyword.hex(t.hex)}`}catch{return q.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:q.hex;let[o,a,l]=r[1].split("");return`#${o}${o}${a}${a}${l}${l}`},Zt=(e,t)=>{let[n,r]=m.useState(e||""),[o,a]=m.useState(()=>N(n)),[l,s]=m.useState(o?.colorSpace||"hex");m.useEffect(()=>{let f=e||"",g=N(f);r(f),a(g),s(g?.colorSpace||"hex")},[e]);let c=m.useMemo(()=>Qt(n,o,l).toLowerCase(),[n,o,l]),i=m.useCallback(f=>{let g=N(f),w=g?.value||f||"";r(w),w===""&&(a(void 0),t(void 0)),g&&(a(g),s(g.colorSpace),t(g.value))},[t]),d=m.useCallback(()=>{let f=L.indexOf(l)+1;f>=L.length&&(f=0),s(L[f]);let g=o?.[L[f]]||"";r(g),t(g)},[o,l,t]);return{value:n,realValue:c,updateValue:i,color:o,colorSpace:l,cycleColorSpace:d}},X=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=m.useState(t?.valid?[t]:[]);m.useEffect(()=>{t===void 0&&o([])},[t]);let a=m.useMemo(()=>(e||[]).map(s=>typeof s=="string"?N(s):s.title?{...N(s.color),keyword:s.title}:N(s.color)).concat(r).filter(Boolean).slice(-27),[e,r]),l=m.useCallback(s=>{s?.valid&&(a.some(c=>X(c[n])===X(s[n]))||o(c=>c.concat(s)))},[n,a]);return{presets:a,addPreset:l}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:l=!1,argType:s})=>{let c=m.useCallback(Ht(n,200),[n]),{value:i,realValue:d,updateValue:f,color:g,colorSpace:w,cycleColorSpace:S}=Zt(t,c),{presets:E,addPreset:p}=en(a,g,w),b=Jt[w],k=!!s?.table?.readonly;return h.createElement(Pt,{"aria-readonly":k},h.createElement(Lt,{startOpen:l,trigger:k?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p(g),tooltip:h.createElement(qt,null,h.createElement(b,{color:d==="transparent"?"#000000":d,onChange:f,onFocus:r,onBlur:o}),E.length>0&&h.createElement(Wt,null,E.map((y,R)=>h.createElement(ue,{key:`${y.value}-${R}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:y.keyword||y.value})},h.createElement(ce,{value:y[w],active:g&&X(y[w])===X(g[w]),onClick:()=>f(y.value)})))))},h.createElement(ce,{value:d,style:{margin:4}})),h.createElement(Kt,{id:Oe(e),value:i,onChange:y=>f(y.target.value),onFocus:y=>y.target.select(),readOnly:k,placeholder:"Choose color..."}),i?h.createElement(Vt,{onClick:S}):null)},bn=tn;export{tn as ColorControl,bn as default}; diff --git a/assets/ContextMenu.stories-DMK2bnkY.js b/assets/ContextMenu.stories-D9DDl3C5.js similarity index 96% rename from assets/ContextMenu.stories-DMK2bnkY.js rename to assets/ContextMenu.stories-D9DDl3C5.js index 1c90f7dd..6dc4727a 100644 --- a/assets/ContextMenu.stories-DMK2bnkY.js +++ b/assets/ContextMenu.stories-D9DDl3C5.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-DoxjgJx5.js";import{S as j}from"./user-profile-CB1AInEY.js";import{S as R,a as w,b as O}from"./leave-ZJppWO3C.js";import{r as t}from"./index-Cu9bd8lq.js";import{_ as b}from"./index-icJLasaE.js";import{$ as E,a as x}from"./index-tFWdirwu.js";import{$ as k}from"./index-CZs6vfAl.js";import{$ as y,a as T,b as A,c as N,d as F,e as D,J as $}from"./index-DPxQQZIb.js";import{$ as U}from"./index-B7y3mIek.js";import{F as z}from"./FloatingMenu-Eb22vTDs.js";import{c as q}from"./index-C2KoGaFq.js";import{d as V,D as W,g as L}from"./DrawerMenu-BJRINQC3.js";import{a as G,M as C}from"./MenuItem-D2IOP9Gc.js";import{S as J}from"./Separator-6D3uspFz.js";import"./index-MTP5U5xA.js";import"./useId-D5m2XpUu.js";import"./Text-BrcN_buA.js";import"./Typography-BcgMUEGb.js";import"./floating-ui.react-C9uQe9t5.js";const P="ContextMenu",[X,Pe]=E(P,[y]),h=y(),[B,I]=X(P),Y=e=>{const{__scopeContextMenu:o,children:i,onOpenChange:r,dir:u,modal:p=!0}=e,[l,a]=t.useState(!1),c=h(o),m=U(r),s=t.useCallback(f=>{a(f),m(f)},[m]);return t.createElement(B,{scope:o,open:l,onOpenChange:s,modal:p},t.createElement(T,b({},c,{dir:u,open:l,onOpenChange:s,modal:p}),i))},H="ContextMenuTrigger",K=t.forwardRef((e,o)=>{const{__scopeContextMenu:i,disabled:r=!1,...u}=e,p=I(H,i),l=h(i),a=t.useRef({x:0,y:0}),c=t.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...a.current})}),m=t.useRef(0),s=t.useCallback(()=>window.clearTimeout(m.current),[]),f=d=>{a.current={x:d.clientX,y:d.clientY},p.onOpenChange(!0)};return t.useEffect(()=>s,[s]),t.useEffect(()=>void(r&&s()),[r,s]),t.createElement(t.Fragment,null,t.createElement(D,b({},l,{virtualRef:c})),t.createElement(k.span,b({"data-state":p.open?"open":"closed","data-disabled":r?"":void 0},u,{ref:o,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:x(e.onContextMenu,d=>{s(),f(d),d.preventDefault()}),onPointerDown:r?e.onPointerDown:x(e.onPointerDown,v(d=>{s(),m.current=window.setTimeout(()=>f(d),700)})),onPointerMove:r?e.onPointerMove:x(e.onPointerMove,v(s)),onPointerCancel:r?e.onPointerCancel:x(e.onPointerCancel,v(s)),onPointerUp:r?e.onPointerUp:x(e.onPointerUp,v(s))})))}),Q=e=>{const{__scopeContextMenu:o,...i}=e,r=h(o);return t.createElement(A,b({},r,i))},Z="ContextMenuContent",ee=t.forwardRef((e,o)=>{const{__scopeContextMenu:i,...r}=e,u=I(Z,i),p=h(i),l=t.useRef(!1);return t.createElement(N,b({},p,r,{ref:o,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:a=>{var c;(c=e.onCloseAutoFocus)===null||c===void 0||c.call(e,a),!a.defaultPrevented&&l.current&&a.preventDefault(),l.current=!1},onInteractOutside:a=>{var c;(c=e.onInteractOutside)===null||c===void 0||c.call(e,a),!a.defaultPrevented&&!u.modal&&(l.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),te=t.forwardRef((e,o)=>{const{__scopeContextMenu:i,...r}=e,u=h(i);return t.createElement(F,b({},u,r,{ref:o}))});function v(e){return o=>o.pointerType!=="mouse"?e(o):void 0}const S=Y,ne=K,oe=Q,re=ee,ae=({onSelect:e,children:o})=>n.jsx(te,{onSelect:e??void 0,asChild:!0,children:o}),M=({title:e,onOpenChange:o,trigger:i,hasAccessibleAlternative:r,children:u})=>{const[p,l]=t.useState(!1),a=t.useCallback(_=>{l(_),o?.(_)},[l,o]),c=L(),m=c==="android"||c==="ios",s=t.useMemo(()=>({MenuItemWrapper:m?null:ae,onOpenChange:a}),[a]),f=n.jsx(G.Provider,{value:s,children:u}),d=n.jsx(ne,{"aria-haspopup":"menu",tabIndex:r?void 0:0,asChild:!0,children:i});return m?n.jsxs(n.Fragment,{children:[n.jsx(S,{onOpenChange:a,children:d}),n.jsx($.Root,{open:p,onOpenChange:a,children:n.jsxs($.Portal,{children:[n.jsx($.Overlay,{className:q(V.bg)}),n.jsx($.Content,{asChild:!0,children:n.jsx(W,{title:e,children:f})})]})})]}):n.jsxs(S,{onOpenChange:a,children:[d,n.jsx(oe,{children:n.jsx(re,{asChild:!0,children:n.jsx(z,{title:e,children:f})})})]})};try{M.displayName="ContextMenu",M.__docgenInfo={description:"A menu opened by right-clicking or long-pressing another UI element.",displayName:"ContextMenu",props:{title:{defaultValue:null,description:"The menu title.",name:"title",required:!0,type:{name:"string"}},onOpenChange:{defaultValue:null,description:"Event handler called when the open state of the menu changes.",name:"onOpenChange",required:!1,type:{name:"((open: boolean) => void)"}},trigger:{defaultValue:null,description:`The trigger that can be right-clicked or long-pressed to open the menu. +import{j as n}from"./jsx-runtime-DoxjgJx5.js";import{S as j}from"./user-profile-CB1AInEY.js";import{S as R,a as w,b as O}from"./leave-ZJppWO3C.js";import{r as t}from"./index-Cu9bd8lq.js";import{_ as b}from"./index-icJLasaE.js";import{$ as E,a as x}from"./index-tFWdirwu.js";import{$ as k}from"./index-CZs6vfAl.js";import{$ as y,a as T,b as A,c as N,d as F,e as D,J as $}from"./index-DPxQQZIb.js";import{$ as U}from"./index-B7y3mIek.js";import{F as z}from"./FloatingMenu-BxFYcaYT.js";import{c as q}from"./index-C2KoGaFq.js";import{d as V,D as W,g as L}from"./DrawerMenu-BJRINQC3.js";import{a as G,M as C}from"./MenuItem-Dv7SCHqT.js";import{S as J}from"./Separator-6D3uspFz.js";import"./index-MTP5U5xA.js";import"./useId-D5m2XpUu.js";import"./Text-DCibjNNg.js";import"./Typography-D-74lRMS.js";import"./floating-ui.react-C9uQe9t5.js";const P="ContextMenu",[X,Pe]=E(P,[y]),h=y(),[B,I]=X(P),Y=e=>{const{__scopeContextMenu:o,children:i,onOpenChange:r,dir:u,modal:p=!0}=e,[l,a]=t.useState(!1),c=h(o),m=U(r),s=t.useCallback(f=>{a(f),m(f)},[m]);return t.createElement(B,{scope:o,open:l,onOpenChange:s,modal:p},t.createElement(T,b({},c,{dir:u,open:l,onOpenChange:s,modal:p}),i))},H="ContextMenuTrigger",K=t.forwardRef((e,o)=>{const{__scopeContextMenu:i,disabled:r=!1,...u}=e,p=I(H,i),l=h(i),a=t.useRef({x:0,y:0}),c=t.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...a.current})}),m=t.useRef(0),s=t.useCallback(()=>window.clearTimeout(m.current),[]),f=d=>{a.current={x:d.clientX,y:d.clientY},p.onOpenChange(!0)};return t.useEffect(()=>s,[s]),t.useEffect(()=>void(r&&s()),[r,s]),t.createElement(t.Fragment,null,t.createElement(D,b({},l,{virtualRef:c})),t.createElement(k.span,b({"data-state":p.open?"open":"closed","data-disabled":r?"":void 0},u,{ref:o,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:x(e.onContextMenu,d=>{s(),f(d),d.preventDefault()}),onPointerDown:r?e.onPointerDown:x(e.onPointerDown,v(d=>{s(),m.current=window.setTimeout(()=>f(d),700)})),onPointerMove:r?e.onPointerMove:x(e.onPointerMove,v(s)),onPointerCancel:r?e.onPointerCancel:x(e.onPointerCancel,v(s)),onPointerUp:r?e.onPointerUp:x(e.onPointerUp,v(s))})))}),Q=e=>{const{__scopeContextMenu:o,...i}=e,r=h(o);return t.createElement(A,b({},r,i))},Z="ContextMenuContent",ee=t.forwardRef((e,o)=>{const{__scopeContextMenu:i,...r}=e,u=I(Z,i),p=h(i),l=t.useRef(!1);return t.createElement(N,b({},p,r,{ref:o,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:a=>{var c;(c=e.onCloseAutoFocus)===null||c===void 0||c.call(e,a),!a.defaultPrevented&&l.current&&a.preventDefault(),l.current=!1},onInteractOutside:a=>{var c;(c=e.onInteractOutside)===null||c===void 0||c.call(e,a),!a.defaultPrevented&&!u.modal&&(l.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),te=t.forwardRef((e,o)=>{const{__scopeContextMenu:i,...r}=e,u=h(i);return t.createElement(F,b({},u,r,{ref:o}))});function v(e){return o=>o.pointerType!=="mouse"?e(o):void 0}const S=Y,ne=K,oe=Q,re=ee,ae=({onSelect:e,children:o})=>n.jsx(te,{onSelect:e??void 0,asChild:!0,children:o}),M=({title:e,onOpenChange:o,trigger:i,hasAccessibleAlternative:r,children:u})=>{const[p,l]=t.useState(!1),a=t.useCallback(_=>{l(_),o?.(_)},[l,o]),c=L(),m=c==="android"||c==="ios",s=t.useMemo(()=>({MenuItemWrapper:m?null:ae,onOpenChange:a}),[a]),f=n.jsx(G.Provider,{value:s,children:u}),d=n.jsx(ne,{"aria-haspopup":"menu",tabIndex:r?void 0:0,asChild:!0,children:i});return m?n.jsxs(n.Fragment,{children:[n.jsx(S,{onOpenChange:a,children:d}),n.jsx($.Root,{open:p,onOpenChange:a,children:n.jsxs($.Portal,{children:[n.jsx($.Overlay,{className:q(V.bg)}),n.jsx($.Content,{asChild:!0,children:n.jsx(W,{title:e,children:f})})]})})]}):n.jsxs(S,{onOpenChange:a,children:[d,n.jsx(oe,{children:n.jsx(re,{asChild:!0,children:n.jsx(z,{title:e,children:f})})})]})};try{M.displayName="ContextMenu",M.__docgenInfo={description:"A menu opened by right-clicking or long-pressing another UI element.",displayName:"ContextMenu",props:{title:{defaultValue:null,description:"The menu title.",name:"title",required:!0,type:{name:"string"}},onOpenChange:{defaultValue:null,description:"Event handler called when the open state of the menu changes.",name:"onOpenChange",required:!1,type:{name:"((open: boolean) => void)"}},trigger:{defaultValue:null,description:`The trigger that can be right-clicked or long-pressed to open the menu. This must be a component that accepts a ref and spreads props. https://www.radix-ui.com/primitives/docs/guides/composition`,name:"trigger",required:!0,type:{name:"ReactNode"}},hasAccessibleAlternative:{defaultValue:null,description:`Whether the functionality of this menu is available through some other keyboard-accessible means. Preferably this should be true, because context diff --git a/assets/DocsRenderer-K4EAMTCU-Bh-bDDp5.js b/assets/DocsRenderer-K4EAMTCU-CYg_3s1h.js similarity index 99% rename from assets/DocsRenderer-K4EAMTCU-Bh-bDDp5.js rename to assets/DocsRenderer-K4EAMTCU-CYg_3s1h.js index 00dc6cf2..fde1b51b 100644 --- a/assets/DocsRenderer-K4EAMTCU-Bh-bDDp5.js +++ b/assets/DocsRenderer-K4EAMTCU-CYg_3s1h.js @@ -1,5 +1,5 @@ -const __vite__fileDeps=["./syntaxhighlighter-BP7B2CQK-CRDHli4q.js","./iframe-CE9hY0S1.js","./index-Cu9bd8lq.js","./react-18-DoKVqUy3.js","./index-MTP5U5xA.js","./index-icJLasaE.js","./index-B7y3mIek.js","./index-tFWdirwu.js","./index-CZs6vfAl.js","./index-DXimoRZY.js","./_getPrototype-DpRPMK__.js","./index-DrFu-skq.js","./formatter-2WMMO6ZP-B-Thn2J9.js","./WithTooltip-KJL26V4Q-l6Mv7tUg.js","./Color-PRSJMWNM-BEeqgdpE.js","./index-DtGqrCZN.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{_ as vt}from"./iframe-CE9hY0S1.js";import{r as o,R as El,g as Sn,a as u,c as Zn}from"./index-Cu9bd8lq.js";import{r as nd,u as ad}from"./react-18-DoKVqUy3.js";import{r as f0,R as od}from"./index-MTP5U5xA.js";import{$ as h0}from"./index-icJLasaE.js";import{m as ld,n as id,D as sd,l as cd,o as dd,k as ud,g as pd,i as fd}from"./index-B7y3mIek.js";import{O as g0,P as hd}from"./index-DXimoRZY.js";import{q as m0,r as gd,s as v0,t as md,i as Cn,v as vd,w as bd,x as yd,c as b0,y as y0,z as wd,A as w0,B as xd,C as Ed,D as Sd,E as Cd,F as Rd,G as Id,H as x0,I as Ad,J as _d,K as E0,_ as kd,L as Od,M as Td,N as so,d as S0,O as C0,P as R0,Q as Md,R as $d,U as Ld,e as zd,S as Sl,j as Jn}from"./_getPrototype-DpRPMK__.js";import{d as Bd}from"./index-DrFu-skq.js";var Be=e=>`control-${e.replace(/\s+/g,"-")}`,Rn=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:Pd}=__STORYBOOK_MODULE_GLOBAL__,{logger:Hd}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Fd=Object.create,I0=Object.defineProperty,jd=Object.getOwnPropertyDescriptor,A0=Object.getOwnPropertyNames,Nd=Object.getPrototypeOf,Dd=Object.prototype.hasOwnProperty,co=(e,t)=>function(){return t||(0,e[A0(e)[0]])((t={exports:{}}).exports,t),t.exports},Vd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of A0(t))!Dd.call(e,a)&&a!==r&&I0(e,a,{get:()=>t[a],enumerable:!(n=jd(t,a))||n.enumerable});return e},_0=(e,t,r)=>(r=e!=null?Fd(Nd(e)):{},Vd(!e||!e.__esModule?I0(r,"default",{value:e,enumerable:!0}):r,e));function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var t=1;ti.map(i=>__vite__fileDeps[i]); +import{_ as vt}from"./iframe-CdhHfPBR.js";import{r as o,R as El,g as Sn,a as u,c as Zn}from"./index-Cu9bd8lq.js";import{r as nd,u as ad}from"./react-18-DoKVqUy3.js";import{r as f0,R as od}from"./index-MTP5U5xA.js";import{$ as h0}from"./index-icJLasaE.js";import{m as ld,n as id,D as sd,l as cd,o as dd,k as ud,g as pd,i as fd}from"./index-B7y3mIek.js";import{O as g0,P as hd}from"./index-DXimoRZY.js";import{q as m0,r as gd,s as v0,t as md,i as Cn,v as vd,w as bd,x as yd,c as b0,y as y0,z as wd,A as w0,B as xd,C as Ed,D as Sd,E as Cd,F as Rd,G as Id,H as x0,I as Ad,J as _d,K as E0,_ as kd,L as Od,M as Td,N as so,d as S0,O as C0,P as R0,Q as Md,R as $d,U as Ld,e as zd,S as Sl,j as Jn}from"./_getPrototype-DpRPMK__.js";import{d as Bd}from"./index-DrFu-skq.js";var Be=e=>`control-${e.replace(/\s+/g,"-")}`,Rn=e=>`set-${e.replace(/\s+/g,"-")}`;const{global:Pd}=__STORYBOOK_MODULE_GLOBAL__,{logger:Hd}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Fd=Object.create,I0=Object.defineProperty,jd=Object.getOwnPropertyDescriptor,A0=Object.getOwnPropertyNames,Nd=Object.getPrototypeOf,Dd=Object.prototype.hasOwnProperty,co=(e,t)=>function(){return t||(0,e[A0(e)[0]])((t={exports:{}}).exports,t),t.exports},Vd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of A0(t))!Dd.call(e,a)&&a!==r&&I0(e,a,{get:()=>t[a],enumerable:!(n=jd(t,a))||n.enumerable});return e},_0=(e,t,r)=>(r=e!=null?Fd(Nd(e)):{},Vd(!e||!e.__esModule?I0(r,"default",{value:e,enumerable:!0}):r,e));function bt(){return bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?a-1:0),i=1;i=0&&a<1?(c=l,s=i):a>=1&&a<2?(c=i,s=l):a>=2&&a<3?(s=l,d=i):a>=3&&a<4?(s=i,d=l):a>=4&&a<5?(c=i,d=l):a>=5&&a<6&&(c=l,d=i);var p=r-l/2,h=c+p,v=s+p,f=d+p;return n(h,v,f)}var pi={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function u3(e){if(typeof e!="string")return e;var t=e.toLowerCase();return pi[t]?"#"+pi[t]:e}var p3=/^#[a-fA-F0-9]{6}$/,f3=/^#[a-fA-F0-9]{8}$/,h3=/^#[a-fA-F0-9]{3}$/,g3=/^#[a-fA-F0-9]{4}$/,ua=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,m3=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,v3=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,b3=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function No(e){if(typeof e!="string")throw new Ze(3);var t=u3(e);if(t.match(p3))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(f3)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(h3))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(g3)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=ua.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=m3.exec(t.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var i=v3.exec(t);if(i){var c=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,p="rgb("+$r(c,s,d)+")",h=ua.exec(p);if(!h)throw new Ze(4,t,p);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10)}}var v=b3.exec(t.substring(0,50));if(v){var f=parseInt(""+v[1],10),g=parseInt(""+v[2],10)/100,m=parseInt(""+v[3],10)/100,x="rgb("+$r(f,g,m)+")",b=ua.exec(x);if(!b)throw new Ze(4,t,x);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+v[4])>1?parseFloat(""+v[4])/100:parseFloat(""+v[4])}}throw new Ze(5)}function y3(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),l=Math.min(t,r,n),i=(a+l)/2;if(a===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var c,s=a-l,d=i>.5?s/(2-a-l):s/(a+l);switch(a){case t:c=(r-n)/s+(r=1?bn(e,t,r):"rgba("+$r(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?bn(e.hue,e.saturation,e.lightness):"rgba("+$r(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ze(2)}function Ga(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return qa("#"+At(e)+At(t)+At(r));if(typeof e=="object"&&t===void 0&&r===void 0)return qa("#"+At(e.red)+At(e.green)+At(e.blue));throw new Ze(6)}function yn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=No(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Ga(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Ga(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ze(7)}var C3=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},R3=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},I3=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},A3=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function ec(e){if(typeof e!="object")throw new Ze(8);if(R3(e))return yn(e);if(C3(e))return Ga(e);if(A3(e))return S3(e);if(I3(e))return E3(e);throw new Ze(8)}function tc(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):tc(e,t,n)}}function Do(e){return tc(e,e.length,[])}function Vo(e,t,r){return Math.max(e,Math.min(t,r))}function _3(e,t){if(t==="transparent")return t;var r=Qs(t);return ec(G({},r,{lightness:Vo(0,1,r.lightness-parseFloat(e))}))}var k3=Do(_3),Yt=k3;function O3(e,t){if(t==="transparent")return t;var r=Qs(t);return ec(G({},r,{lightness:Vo(0,1,r.lightness+parseFloat(e))}))}var T3=Do(O3),fi=T3;function M3(e,t){if(t==="transparent")return t;var r=No(t),n=typeof r.alpha=="number"?r.alpha:1,a=G({},r,{alpha:Vo(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return yn(a)}var $3=Do(M3),Ae=$3,ir=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),dt=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Ae(.1,e.color.defaultText):Ae(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),re=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),jt={margin:"16px 0"},L3=({href:e,...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return u.createElement("a",{href:r,target:n,...t})},rc=A(L3)(re,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),nc=A.blockquote(re,jt,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),z3=e=>typeof e=="string",B3=/[\n\r]/g,P3=A.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),dt),H3=A(To)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),Uo=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=o.Children.toArray(t);return a.filter(z3).some(l=>l.match(B3))?u.createElement(H3,{bordered:!0,copyable:!0,language:n?.[1]??"text",format:!1,...r},t):u.createElement(P3,{...r,className:e},a)},ac=A.div(re),oc=A.dl(re,jt,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),lc=A.h1(re,ir,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),Wo=A.h2(re,ir,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),qo=A.h3(re,ir,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),ic=A.h4(re,ir,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),sc=A.h5(re,ir,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),cc=A.h6(re,ir,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),dc=A.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),uc=A.img({maxWidth:"100%"}),pc=A.li(re,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":dt({theme:e})})),F3={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},fc=A.ol(re,jt,F3,{listStyle:"decimal"}),hc=A.p(re,jt,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":dt({theme:e})})),gc=A.pre(re,jt,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),mc=A.span(re,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),vc=A.table(re,jt,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),bc=A.title(dt),j3={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},yc=A.ul(re,jt,j3,{listStyle:"disc"}),Go=A.div(re),wc={h1:e=>u.createElement(lc,{...te(e,"h1")}),h2:e=>u.createElement(Wo,{...te(e,"h2")}),h3:e=>u.createElement(qo,{...te(e,"h3")}),h4:e=>u.createElement(ic,{...te(e,"h4")}),h5:e=>u.createElement(sc,{...te(e,"h5")}),h6:e=>u.createElement(cc,{...te(e,"h6")}),pre:e=>u.createElement(gc,{...te(e,"pre")}),a:e=>u.createElement(rc,{...te(e,"a")}),hr:e=>u.createElement(dc,{...te(e,"hr")}),dl:e=>u.createElement(oc,{...te(e,"dl")}),blockquote:e=>u.createElement(nc,{...te(e,"blockquote")}),table:e=>u.createElement(vc,{...te(e,"table")}),img:e=>u.createElement(uc,{...te(e,"img")}),div:e=>u.createElement(ac,{...te(e,"div")}),span:e=>u.createElement(mc,{...te(e,"span")}),li:e=>u.createElement(pc,{...te(e,"li")}),ul:e=>u.createElement(yc,{...te(e,"ul")}),ol:e=>u.createElement(fc,{...te(e,"ol")}),p:e=>u.createElement(hc,{...te(e,"p")}),code:e=>u.createElement(Uo,{...te(e,"code")}),tt:e=>u.createElement(bc,{...te(e,"tt")}),resetwrapper:e=>u.createElement(Go,{...te(e,"resetwrapper")})},N3=A.div(({theme:e})=>({display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:e.typography.weight.bold}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ae(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ae(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.color.dark,background:e.color.mediumlight,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ae(.9,e.color.dark)}`:"none"};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ae(.9,e.color.positiveText)}`:"none"};default:return{}}}),D3=({...e})=>u.createElement(N3,{...e}),V3=0,U3=e=>e.button===V3&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,W3=(e,t)=>{U3(e)&&(e.preventDefault(),t(e))},q3=A.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),G3=A.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Yt(.07,e.color.secondary),"svg path:not([fill])":{fill:Yt(.07,e.color.secondary)}},"&:active":{color:Yt(.1,e.color.secondary),"svg path:not([fill])":{fill:Yt(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),zt=({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:a=!1,className:l=void 0,style:i=void 0,...c})=>u.createElement(G3,{...c,onClick:r&&e?s=>W3(s,r):r,className:l},u.createElement(q3,{withArrow:n,containsIcon:a},t,n&&u.createElement(Fo,null))),Y3=A.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"&&e.color.darkest}})),Bt=[],nr=null,K3=o.lazy(async()=>{let{SyntaxHighlighter:e}=await vt(()=>import("./syntaxhighlighter-BP7B2CQK-CRDHli4q.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);return Bt.length>0&&(Bt.forEach(t=>{e.registerLanguage(...t)}),Bt=[]),nr===null&&(nr=e),{default:t=>u.createElement(e,{...t})}}),X3=o.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([vt(()=>import("./syntaxhighlighter-BP7B2CQK-CRDHli4q.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),vt(()=>import("./formatter-2WMMO6ZP-B-Thn2J9.js"),__vite__mapDeps([12,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)]);return Bt.length>0&&(Bt.forEach(r=>{e.registerLanguage(...r)}),Bt=[]),nr===null&&(nr=e),{default:r=>u.createElement(e,{...r,formatter:t})}}),Fn=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},e.format!==!1?u.createElement(X3,{...e}):u.createElement(K3,{...e}));Fn.registerLanguage=(...e)=>{if(nr!==null){nr.registerLanguage(...e);return}Bt.push(e)};var xc={};p5(xc,{Actions:()=>a7,CloseButton:()=>Rc,Col:()=>Ac,Container:()=>Cc,Content:()=>e7,Description:()=>n7,Error:()=>o7,ErrorWrapper:()=>_c,Header:()=>t7,Overlay:()=>Sc,Row:()=>Ic,Title:()=>r7});var xt=o.forwardRef(({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:a="medium",disabled:l=!1,active:i=!1,onClick:c,...s},d)=>{let p="button";s.isLink&&(p="a"),e&&(p=h0);let h=n,v=r,[f,g]=o.useState(!1),m=x=>{c&&c(x),t!=="none"&&g(!0)};if(o.useEffect(()=>{let x=setTimeout(()=>{f&&g(!1)},1e3);return()=>clearTimeout(x)},[f]),s.primary&&(h="solid",v="medium"),(s.secondary||s.tertiary||s.gray||s.outline||s.inForm)&&(h="outline",v="medium"),s.small||s.isLink||s.primary||s.secondary||s.tertiary||s.gray||s.outline||s.inForm||s.containsIcon){let x=u.Children.toArray(s.children).filter(b=>typeof b=="string"&&b!=="");Zs(`Use of deprecated props in the button ${x.length>0?`"${x.join(" ")}"`:"component"} detected, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-ui-and-props-for-button-and-iconbutton-components`)}return u.createElement(Z3,{as:p,ref:d,variant:h,size:v,padding:a,disabled:l,active:i,animating:f,animation:t,onClick:m,...s})});xt.displayName="Button";var Z3=A("button",{shouldForwardProp:e=>po(e)})(({theme:e,variant:t,size:r,disabled:n,active:a,animating:l,animation:i,padding:c})=>({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:c==="small"&&r==="small"?"0 7px":c==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&a?e.background.hoverable:"transparent",...t==="ghost"?{".sb-bar &":{background:a?Ae(.9,e.barTextColor):"transparent",color:a?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:Ae(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:Ae(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${yn(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&a?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?Ae(.86,e.color.secondary):e.base==="light"?Yt(.02,s):fi(.03,s)})()},"&:active":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?Yt(.02,s):fi(.03,s)})()},"&:focus":{boxShadow:`${yn(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:l&&i!=="none"?`${e.animation[i]} 1000ms ease-out`:""}})),mt=o.forwardRef(({padding:e="small",variant:t="ghost",...r},n)=>u.createElement(xt,{padding:e,variant:t,ref:n,...r}));mt.displayName="IconButton";var Ec=st({from:{opacity:0},to:{opacity:1}}),J3=st({from:{maxHeight:0},to:{}}),Q3=st({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),Sc=A.div({backgroundColor:"rgba(27, 28, 29, 0.2)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${Ec} 200ms`}),Cc=A.div(({theme:e,width:t,height:r})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"rgba(255, 255, 255, 0.05) 0 0 0 1px inset, rgba(14, 18, 22, 0.35) 0px 10px 38px -10px",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"hidden",zIndex:11,animation:`${Q3} 200ms`,"&:focus-visible":{outline:"none"}})),Rc=e=>u.createElement(cd,{asChild:!0},u.createElement(mt,{...e},u.createElement(Us,null))),e7=A.div({display:"flex",flexDirection:"column",margin:16,gap:16}),Ic=A.div({display:"flex",justifyContent:"space-between",gap:16}),Ac=A.div({display:"flex",flexDirection:"column",gap:4}),t7=e=>u.createElement(Ic,null,u.createElement(Ac,{...e}),u.createElement(Rc,null)),r7=A(ld)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),n7=A(id)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),a7=A.div({display:"flex",flexDirection:"row-reverse",gap:8}),_c=A.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${J3} 300ms, ${Ec} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),o7=({children:e,...t})=>u.createElement(_c,{...t},u.createElement("div",null,e));function l7({children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:a=s=>s.preventDefault(),className:l,container:i,...c}){return u.createElement(dd,{...c},u.createElement(ud,{container:i},u.createElement(pd,{asChild:!0},u.createElement(Sc,null)),u.createElement(fd,{asChild:!0,onInteractOutside:a,onEscapeKeyDown:n},u.createElement(Cc,{className:l,width:t,height:r},e))))}var i7=Object.assign(l7,xc,{Dialog:sd}),s7=e=>typeof e=="number"?e:Number(e),c7=A.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Ha}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Ha}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),d7=({col:e,row:t,outer:r,children:n,...a})=>{let l=s7(typeof r=="number"||!r?r:e||t);return u.createElement(c7,{col:e,row:t,outer:l,...a},n)},u7=A.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),p7=A.div(),f7=A.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),h7=({children:e,...t})=>{let[r,n]=o.Children.toArray(e);return u.createElement(f7,{...t},u.createElement(u7,null,r),n&&u.createElement(p7,null,n))};function g7(e,t){var r=o.useRef(null),n=o.useRef(null);n.current=t;var a=o.useRef(null);o.useEffect(function(){l()});var l=o.useCallback(function(){var i=a.current,c=n.current,s=i||(c?c instanceof Element?c:c.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return o.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),o.useCallback(function(i){a.current=i,l()},[l])}function hi(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function kc(e){e===void 0&&(e={});var t=e.onResize,r=o.useRef(void 0);r.current=t;var n=e.round||Math.round,a=o.useRef(),l=o.useState({width:void 0,height:void 0}),i=l[0],c=l[1],s=o.useRef(!1);o.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var d=o.useRef({width:void 0,height:void 0}),p=g7(o.useCallback(function(h){return(!a.current||a.current.box!==e.box||a.current.round!==n)&&(a.current={box:e.box,round:n,instance:new ResizeObserver(function(v){var f=v[0],g=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",m=hi(f,g,"inlineSize"),x=hi(f,g,"blockSize"),b=m?n(m):void 0,E=x?n(x):void 0;if(d.current.width!==b||d.current.height!==E){var y={width:b,height:E};d.current.width=b,d.current.height=E,r.current?r.current(y):s.current||c(y)}})}),a.current.instance.observe(h,{box:e.box}),function(){a.current&&a.current.instance.unobserve(h)}},[e.box,n]),e.ref);return o.useMemo(function(){return{ref:p,width:i.width,height:i.height}},[p,i.width,i.height])}var m7=A.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function v7({scale:e,children:t}){let r=o.useRef(null),[n,a]=o.useState(0),l=o.useCallback(({height:i})=>{i&&a(i/e)},[e]);return o.useEffect(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[e]),kc({ref:r,onResize:l}),u.createElement(m7,{scale:e,elementHeight:n},u.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var b7=class extends o.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:r}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),r!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return u.createElement(u.Fragment,null,e)}},Oc={Element:v7,IFrame:b7},{document:y7}=n3,w7=A.strong(({theme:e})=>({color:e.color.orange})),x7=A.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),gi=A.em(({theme:e})=>({color:e.textMutedColor})),E7=/(Error): (.*)\n/,S7=/at (?:(.*) )?\(?(.+)\)?/,C7=/([^@]+)?(?:\/<)?@(.+)?/,R7=/([^@]+)?@(.+)?/,Tc=({error:e})=>{if(!e)return u.createElement(o.Fragment,null,"This error has no stack or message");if(!e.stack)return u.createElement(o.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message} +`};function c3(){for(var e=arguments.length,t=new Array(e),r=0;r1?a-1:0),i=1;i=0&&a<1?(c=l,s=i):a>=1&&a<2?(c=i,s=l):a>=2&&a<3?(s=l,d=i):a>=3&&a<4?(s=i,d=l):a>=4&&a<5?(c=i,d=l):a>=5&&a<6&&(c=l,d=i);var p=r-l/2,h=c+p,v=s+p,f=d+p;return n(h,v,f)}var pi={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function u3(e){if(typeof e!="string")return e;var t=e.toLowerCase();return pi[t]?"#"+pi[t]:e}var p3=/^#[a-fA-F0-9]{6}$/,f3=/^#[a-fA-F0-9]{8}$/,h3=/^#[a-fA-F0-9]{3}$/,g3=/^#[a-fA-F0-9]{4}$/,ua=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,m3=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,v3=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,b3=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function No(e){if(typeof e!="string")throw new Ze(3);var t=u3(e);if(t.match(p3))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(f3)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(h3))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(g3)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=ua.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var l=m3.exec(t.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var i=v3.exec(t);if(i){var c=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,d=parseInt(""+i[3],10)/100,p="rgb("+$r(c,s,d)+")",h=ua.exec(p);if(!h)throw new Ze(4,t,p);return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10)}}var v=b3.exec(t.substring(0,50));if(v){var f=parseInt(""+v[1],10),g=parseInt(""+v[2],10)/100,m=parseInt(""+v[3],10)/100,x="rgb("+$r(f,g,m)+")",b=ua.exec(x);if(!b)throw new Ze(4,t,x);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+v[4])>1?parseFloat(""+v[4])/100:parseFloat(""+v[4])}}throw new Ze(5)}function y3(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),l=Math.min(t,r,n),i=(a+l)/2;if(a===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var c,s=a-l,d=i>.5?s/(2-a-l):s/(a+l);switch(a){case t:c=(r-n)/s+(r=1?bn(e,t,r):"rgba("+$r(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?bn(e.hue,e.saturation,e.lightness):"rgba("+$r(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ze(2)}function Ga(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return qa("#"+At(e)+At(t)+At(r));if(typeof e=="object"&&t===void 0&&r===void 0)return qa("#"+At(e.red)+At(e.green)+At(e.blue));throw new Ze(6)}function yn(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=No(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Ga(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Ga(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ze(7)}var C3=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},R3=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},I3=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},A3=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function ec(e){if(typeof e!="object")throw new Ze(8);if(R3(e))return yn(e);if(C3(e))return Ga(e);if(A3(e))return S3(e);if(I3(e))return E3(e);throw new Ze(8)}function tc(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):tc(e,t,n)}}function Do(e){return tc(e,e.length,[])}function Vo(e,t,r){return Math.max(e,Math.min(t,r))}function _3(e,t){if(t==="transparent")return t;var r=Qs(t);return ec(G({},r,{lightness:Vo(0,1,r.lightness-parseFloat(e))}))}var k3=Do(_3),Yt=k3;function O3(e,t){if(t==="transparent")return t;var r=Qs(t);return ec(G({},r,{lightness:Vo(0,1,r.lightness+parseFloat(e))}))}var T3=Do(O3),fi=T3;function M3(e,t){if(t==="transparent")return t;var r=No(t),n=typeof r.alpha=="number"?r.alpha:1,a=G({},r,{alpha:Vo(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return yn(a)}var $3=Do(M3),Ae=$3,ir=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),dt=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?Ae(.1,e.color.defaultText):Ae(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),re=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),jt={margin:"16px 0"},L3=({href:e,...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return u.createElement("a",{href:r,target:n,...t})},rc=A(L3)(re,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),nc=A.blockquote(re,jt,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),z3=e=>typeof e=="string",B3=/[\n\r]/g,P3=A.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),dt),H3=A(To)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),Uo=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=o.Children.toArray(t);return a.filter(z3).some(l=>l.match(B3))?u.createElement(H3,{bordered:!0,copyable:!0,language:n?.[1]??"text",format:!1,...r},t):u.createElement(P3,{...r,className:e},a)},ac=A.div(re),oc=A.dl(re,jt,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),lc=A.h1(re,ir,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),Wo=A.h2(re,ir,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),qo=A.h3(re,ir,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),ic=A.h4(re,ir,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),sc=A.h5(re,ir,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),cc=A.h6(re,ir,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),dc=A.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),uc=A.img({maxWidth:"100%"}),pc=A.li(re,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":dt({theme:e})})),F3={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},fc=A.ol(re,jt,F3,{listStyle:"decimal"}),hc=A.p(re,jt,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":dt({theme:e})})),gc=A.pre(re,jt,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),mc=A.span(re,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),vc=A.table(re,jt,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),bc=A.title(dt),j3={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},yc=A.ul(re,jt,j3,{listStyle:"disc"}),Go=A.div(re),wc={h1:e=>u.createElement(lc,{...te(e,"h1")}),h2:e=>u.createElement(Wo,{...te(e,"h2")}),h3:e=>u.createElement(qo,{...te(e,"h3")}),h4:e=>u.createElement(ic,{...te(e,"h4")}),h5:e=>u.createElement(sc,{...te(e,"h5")}),h6:e=>u.createElement(cc,{...te(e,"h6")}),pre:e=>u.createElement(gc,{...te(e,"pre")}),a:e=>u.createElement(rc,{...te(e,"a")}),hr:e=>u.createElement(dc,{...te(e,"hr")}),dl:e=>u.createElement(oc,{...te(e,"dl")}),blockquote:e=>u.createElement(nc,{...te(e,"blockquote")}),table:e=>u.createElement(vc,{...te(e,"table")}),img:e=>u.createElement(uc,{...te(e,"img")}),div:e=>u.createElement(ac,{...te(e,"div")}),span:e=>u.createElement(mc,{...te(e,"span")}),li:e=>u.createElement(pc,{...te(e,"li")}),ul:e=>u.createElement(yc,{...te(e,"ul")}),ol:e=>u.createElement(fc,{...te(e,"ol")}),p:e=>u.createElement(hc,{...te(e,"p")}),code:e=>u.createElement(Uo,{...te(e,"code")}),tt:e=>u.createElement(bc,{...te(e,"tt")}),resetwrapper:e=>u.createElement(Go,{...te(e,"resetwrapper")})},N3=A.div(({theme:e})=>({display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:e.typography.weight.bold}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ae(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ae(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.color.dark,background:e.color.mediumlight,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ae(.9,e.color.dark)}`:"none"};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${Ae(.9,e.color.positiveText)}`:"none"};default:return{}}}),D3=({...e})=>u.createElement(N3,{...e}),V3=0,U3=e=>e.button===V3&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,W3=(e,t)=>{U3(e)&&(e.preventDefault(),t(e))},q3=A.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),G3=A.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Yt(.07,e.color.secondary),"svg path:not([fill])":{fill:Yt(.07,e.color.secondary)}},"&:active":{color:Yt(.1,e.color.secondary),"svg path:not([fill])":{fill:Yt(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),zt=({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:a=!1,className:l=void 0,style:i=void 0,...c})=>u.createElement(G3,{...c,onClick:r&&e?s=>W3(s,r):r,className:l},u.createElement(q3,{withArrow:n,containsIcon:a},t,n&&u.createElement(Fo,null))),Y3=A.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"&&e.color.darkest}})),Bt=[],nr=null,K3=o.lazy(async()=>{let{SyntaxHighlighter:e}=await vt(()=>import("./syntaxhighlighter-BP7B2CQK-C4OGtK3J.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);return Bt.length>0&&(Bt.forEach(t=>{e.registerLanguage(...t)}),Bt=[]),nr===null&&(nr=e),{default:t=>u.createElement(e,{...t})}}),X3=o.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([vt(()=>import("./syntaxhighlighter-BP7B2CQK-C4OGtK3J.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),vt(()=>import("./formatter-2WMMO6ZP-Ced-PlHl.js"),__vite__mapDeps([12,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)]);return Bt.length>0&&(Bt.forEach(r=>{e.registerLanguage(...r)}),Bt=[]),nr===null&&(nr=e),{default:r=>u.createElement(e,{...r,formatter:t})}}),Fn=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},e.format!==!1?u.createElement(X3,{...e}):u.createElement(K3,{...e}));Fn.registerLanguage=(...e)=>{if(nr!==null){nr.registerLanguage(...e);return}Bt.push(e)};var xc={};p5(xc,{Actions:()=>a7,CloseButton:()=>Rc,Col:()=>Ac,Container:()=>Cc,Content:()=>e7,Description:()=>n7,Error:()=>o7,ErrorWrapper:()=>_c,Header:()=>t7,Overlay:()=>Sc,Row:()=>Ic,Title:()=>r7});var xt=o.forwardRef(({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:a="medium",disabled:l=!1,active:i=!1,onClick:c,...s},d)=>{let p="button";s.isLink&&(p="a"),e&&(p=h0);let h=n,v=r,[f,g]=o.useState(!1),m=x=>{c&&c(x),t!=="none"&&g(!0)};if(o.useEffect(()=>{let x=setTimeout(()=>{f&&g(!1)},1e3);return()=>clearTimeout(x)},[f]),s.primary&&(h="solid",v="medium"),(s.secondary||s.tertiary||s.gray||s.outline||s.inForm)&&(h="outline",v="medium"),s.small||s.isLink||s.primary||s.secondary||s.tertiary||s.gray||s.outline||s.inForm||s.containsIcon){let x=u.Children.toArray(s.children).filter(b=>typeof b=="string"&&b!=="");Zs(`Use of deprecated props in the button ${x.length>0?`"${x.join(" ")}"`:"component"} detected, see the migration notes at https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#new-ui-and-props-for-button-and-iconbutton-components`)}return u.createElement(Z3,{as:p,ref:d,variant:h,size:v,padding:a,disabled:l,active:i,animating:f,animation:t,onClick:m,...s})});xt.displayName="Button";var Z3=A("button",{shouldForwardProp:e=>po(e)})(({theme:e,variant:t,size:r,disabled:n,active:a,animating:l,animation:i,padding:c})=>({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:c==="small"&&r==="small"?"0 7px":c==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&a?e.background.hoverable:"transparent",...t==="ghost"?{".sb-bar &":{background:a?Ae(.9,e.barTextColor):"transparent",color:a?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:Ae(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:Ae(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${yn(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&a?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?Ae(.86,e.color.secondary):e.base==="light"?Yt(.02,s):fi(.03,s)})()},"&:active":{color:t==="ghost"?e.color.secondary:null,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?Yt(.02,s):fi(.03,s)})()},"&:focus":{boxShadow:`${yn(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:l&&i!=="none"?`${e.animation[i]} 1000ms ease-out`:""}})),mt=o.forwardRef(({padding:e="small",variant:t="ghost",...r},n)=>u.createElement(xt,{padding:e,variant:t,ref:n,...r}));mt.displayName="IconButton";var Ec=st({from:{opacity:0},to:{opacity:1}}),J3=st({from:{maxHeight:0},to:{}}),Q3=st({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),Sc=A.div({backgroundColor:"rgba(27, 28, 29, 0.2)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${Ec} 200ms`}),Cc=A.div(({theme:e,width:t,height:r})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"rgba(255, 255, 255, 0.05) 0 0 0 1px inset, rgba(14, 18, 22, 0.35) 0px 10px 38px -10px",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"hidden",zIndex:11,animation:`${Q3} 200ms`,"&:focus-visible":{outline:"none"}})),Rc=e=>u.createElement(cd,{asChild:!0},u.createElement(mt,{...e},u.createElement(Us,null))),e7=A.div({display:"flex",flexDirection:"column",margin:16,gap:16}),Ic=A.div({display:"flex",justifyContent:"space-between",gap:16}),Ac=A.div({display:"flex",flexDirection:"column",gap:4}),t7=e=>u.createElement(Ic,null,u.createElement(Ac,{...e}),u.createElement(Rc,null)),r7=A(ld)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),n7=A(id)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),a7=A.div({display:"flex",flexDirection:"row-reverse",gap:8}),_c=A.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${J3} 300ms, ${Ec} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),o7=({children:e,...t})=>u.createElement(_c,{...t},u.createElement("div",null,e));function l7({children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:a=s=>s.preventDefault(),className:l,container:i,...c}){return u.createElement(dd,{...c},u.createElement(ud,{container:i},u.createElement(pd,{asChild:!0},u.createElement(Sc,null)),u.createElement(fd,{asChild:!0,onInteractOutside:a,onEscapeKeyDown:n},u.createElement(Cc,{className:l,width:t,height:r},e))))}var i7=Object.assign(l7,xc,{Dialog:sd}),s7=e=>typeof e=="number"?e:Number(e),c7=A.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Ha}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Ha}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),d7=({col:e,row:t,outer:r,children:n,...a})=>{let l=s7(typeof r=="number"||!r?r:e||t);return u.createElement(c7,{col:e,row:t,outer:l,...a},n)},u7=A.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),p7=A.div(),f7=A.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),h7=({children:e,...t})=>{let[r,n]=o.Children.toArray(e);return u.createElement(f7,{...t},u.createElement(u7,null,r),n&&u.createElement(p7,null,n))};function g7(e,t){var r=o.useRef(null),n=o.useRef(null);n.current=t;var a=o.useRef(null);o.useEffect(function(){l()});var l=o.useCallback(function(){var i=a.current,c=n.current,s=i||(c?c instanceof Element?c:c.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return o.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),o.useCallback(function(i){a.current=i,l()},[l])}function hi(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function kc(e){e===void 0&&(e={});var t=e.onResize,r=o.useRef(void 0);r.current=t;var n=e.round||Math.round,a=o.useRef(),l=o.useState({width:void 0,height:void 0}),i=l[0],c=l[1],s=o.useRef(!1);o.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var d=o.useRef({width:void 0,height:void 0}),p=g7(o.useCallback(function(h){return(!a.current||a.current.box!==e.box||a.current.round!==n)&&(a.current={box:e.box,round:n,instance:new ResizeObserver(function(v){var f=v[0],g=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",m=hi(f,g,"inlineSize"),x=hi(f,g,"blockSize"),b=m?n(m):void 0,E=x?n(x):void 0;if(d.current.width!==b||d.current.height!==E){var y={width:b,height:E};d.current.width=b,d.current.height=E,r.current?r.current(y):s.current||c(y)}})}),a.current.instance.observe(h,{box:e.box}),function(){a.current&&a.current.instance.unobserve(h)}},[e.box,n]),e.ref);return o.useMemo(function(){return{ref:p,width:i.width,height:i.height}},[p,i.width,i.height])}var m7=A.div(({scale:e=1,elementHeight:t})=>({height:t||"auto",transformOrigin:"top left",transform:`scale(${1/e})`}));function v7({scale:e,children:t}){let r=o.useRef(null),[n,a]=o.useState(0),l=o.useCallback(({height:i})=>{i&&a(i/e)},[e]);return o.useEffect(()=>{r.current&&a(r.current.getBoundingClientRect().height)},[e]),kc({ref:r,onResize:l}),u.createElement(m7,{scale:e,elementHeight:n},u.createElement("div",{ref:r,className:"innerZoomElementWrapper"},t))}var b7=class extends o.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:e}=this.props;this.iframe=e.current}shouldComponentUpdate(e){let{scale:t,active:r}=this.props;return t!==e.scale&&this.setIframeInnerZoom(e.scale),r!==e.active&&this.iframe.setAttribute("data-is-storybook",e.active?"true":"false"),e.children.props.src!==this.props.children.props.src}setIframeInnerZoom(e){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}catch{this.setIframeZoom(e)}}setIframeZoom(e){Object.assign(this.iframe.style,{width:`${e*100}%`,height:`${e*100}%`,transform:`scale(${1/e})`,transformOrigin:"top left"})}render(){let{children:e}=this.props;return u.createElement(u.Fragment,null,e)}},Oc={Element:v7,IFrame:b7},{document:y7}=n3,w7=A.strong(({theme:e})=>({color:e.color.orange})),x7=A.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),gi=A.em(({theme:e})=>({color:e.textMutedColor})),E7=/(Error): (.*)\n/,S7=/at (?:(.*) )?\(?(.+)\)?/,C7=/([^@]+)?(?:\/<)?@(.+)?/,R7=/([^@]+)?@(.+)?/,Tc=({error:e})=>{if(!e)return u.createElement(o.Fragment,null,"This error has no stack or message");if(!e.stack)return u.createElement(o.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message} -${t}`);let r=t.match(E7);if(!r)return u.createElement(o.Fragment,null,t);let[,n,a]=r,l=t.split(/\n/).slice(1),[,...i]=l.map(c=>{let s=c.match(S7)||c.match(C7)||c.match(R7);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(y7.location.origin,"")}:null}).filter(Boolean);return u.createElement(o.Fragment,null,u.createElement("span",null,n),": ",u.createElement(w7,null,a),u.createElement("br",null),i.map((c,s)=>c.name?u.createElement(o.Fragment,{key:s}," ","at ",u.createElement(x7,null,c.name)," (",u.createElement(gi,null,c.location),")",u.createElement("br",null)):u.createElement(o.Fragment,{key:s}," ","at ",u.createElement(gi,null,c.location),u.createElement("br",null))))},I7=A.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),A7=A.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),_7=({label:e,children:t,...r})=>u.createElement(I7,{...r},e?u.createElement(A7,null,u.createElement("span",null,e)):null,t),k7=o.useLayoutEffect,O7=k7,T7=function(e){var t=o.useRef(e);return O7(function(){t.current=e}),t},mi=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},M7=function(e,t){var r=o.useRef();return o.useCallback(function(n){e.current=n,r.current&&mi(r.current,null),r.current=t,t&&mi(t,n)},[t])},$7=M7,bi={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},L7=function(e){Object.keys(bi).forEach(function(t){e.style.setProperty(t,bi[t],"important")})},yi=L7,be=null,wi=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function z7(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),be||(be=document.createElement("textarea"),be.setAttribute("tabindex","-1"),be.setAttribute("aria-hidden","true"),yi(be)),be.parentNode===null&&document.body.appendChild(be);var a=e.paddingSize,l=e.borderSize,i=e.sizingStyle,c=i.boxSizing;Object.keys(i).forEach(function(v){var f=v;be.style[f]=i[f]}),yi(be),be.value=t;var s=wi(be,e);be.value=t,s=wi(be,e),be.value="x";var d=be.scrollHeight-a,p=d*r;c==="border-box"&&(p=p+a+l),s=Math.max(p,s);var h=d*n;return c==="border-box"&&(h=h+a+l),s=Math.min(h,s),[s,d]}var xi=function(){},B7=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},P7=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],H7=!!document.documentElement.currentStyle,F7=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=B7(P7,t),n=r.boxSizing;if(n==="")return null;H7&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var a=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),l=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:l}},j7=F7;function Mc(e,t,r){var n=T7(r);o.useLayoutEffect(function(){var a=function(l){return n.current(l)};if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}var N7=function(e){Mc(window,"resize",e)},D7=function(e){Mc(document.fonts,"loadingdone",e)},V7=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],U7=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,a=e.minRows,l=e.onChange,i=l===void 0?xi:l,c=e.onHeightChange,s=c===void 0?xi:c,d=xo(e,V7),p=d.value!==void 0,h=o.useRef(null),v=$7(h,t),f=o.useRef(0),g=o.useRef(),m=function(){var b=h.current,E=r&&g.current?g.current:j7(b);if(E){g.current=E;var y=z7(E,b.value||b.placeholder||"x",a,n),w=y[0],S=y[1];f.current!==w&&(f.current=w,b.style.setProperty("height",w+"px","important"),s(w,{rowHeight:S}))}},x=function(b){p||m(),i(b)};return o.useLayoutEffect(m),N7(m),D7(m),o.createElement("textarea",G({},d,{onChange:x,ref:v}))},W7=o.forwardRef(U7),q7={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Yo=({theme:e})=>({...q7,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),Ko=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},$c=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},Xo=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},G7=Object.assign(A(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return u.createElement("input",{...n,ref:a})}))(Yo,Ko,$c,Xo,{minHeight:32}),{displayName:"Input"}),Y7=Object.assign(A(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return u.createElement("select",{...n,ref:a})}))(Yo,Ko,Xo,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),K7=Object.assign(A(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return u.createElement(W7,{...n,ref:a})}))(Yo,Ko,$c,Xo,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),sr=Object.assign(A.form({boxSizing:"border-box",width:"100%"}),{Field:_7,Input:G7,Select:Y7,Textarea:K7,Button:xt}),X7=o.lazy(()=>vt(()=>import("./WithTooltip-KJL26V4Q-l6Mv7tUg.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url).then(e=>({default:e.WithTooltip}))),Z7=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},u.createElement(X7,{...e})),J7=o.lazy(()=>vt(()=>import("./WithTooltip-KJL26V4Q-l6Mv7tUg.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),Lc=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},u.createElement(J7,{...e})),Q7=A.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),eb=A.span(),tb=A.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),rb=A.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),nb=A.div({padding:15,width:280,boxSizing:"border-box"}),ab=({title:e,desc:t,links:r})=>u.createElement(nb,null,u.createElement(rb,null,e&&u.createElement(Q7,null,e),t&&u.createElement(eb,null,t)),r&&u.createElement(tb,null,r.map(({title:n,...a})=>u.createElement(zt,{...a,key:n},n)))),ob=A.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),lb=({note:e,...t})=>u.createElement(ob,{...t},e),ib=A(({active:e,loading:t,disabled:r,...n})=>u.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:Ae(.7,t.color.defaultText)}:{}),sb=A.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),cb=A.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),db=A.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),ub=A.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),pb=A.a(({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}}),({disabled:e})=>e?{cursor:"not-allowed"}:{}),fb=Ht(100)((e,t,r)=>{let n={};return e&&Object.assign(n,{onClick:e}),t&&Object.assign(n,{href:t}),r&&t&&Object.assign(n,{to:t,as:r}),n}),hb=({loading:e=!1,title:t=u.createElement("span",null,"Loading state"),center:r=null,right:n=null,active:a=!1,disabled:l=!1,isIndented:i,href:c=null,onClick:s=null,icon:d,LinkWrapper:p=null,...h})=>{let v=fb(s,c,p),f={active:a,disabled:l};return u.createElement(pb,{...f,...h,...v},d&&u.createElement(ub,{...f},d),t||r?u.createElement(cb,{isIndented:!d&&i},t&&u.createElement(ib,{...f,loading:e},t),r&&u.createElement(db,{...f},r)):null,n&&u.createElement(sb,{...f},n))},zc=hb,gb=A.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),mb=e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:a,...l}=e,{title:i,href:c,active:s}=l,d=o.useCallback(h=>{r(h,l)},[r]),p=!!r;return u.createElement(zc,{title:i,active:s,href:c,id:`list-item-${n}`,LinkWrapper:t,isIndented:a,...l,...p?{onClick:d}:{}})},Bc=({links:e,LinkWrapper:t=null})=>{let r=e.some(n=>n.icon);return u.createElement(gb,null,e.map(({isGatsby:n,...a})=>u.createElement(mb,{key:a.id,LinkWrapper:n?t:null,isIndented:r,...a})))},vb=e=>typeof e.props.href=="string",bb=e=>typeof e.props.href!="string";function yb({children:e,...t},r){let n={props:t,ref:r};if(vb(n))return u.createElement("a",{ref:n.ref,...n.props},e);if(bb(n))return u.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var Pc=o.forwardRef(yb);Pc.displayName="ButtonOrLink";var Vr=A(Pc,{shouldForwardProp:po})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}});Vr.displayName="TabButton";var wb=A.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),xb=A.div(()=>({marginTop:6,padding:7,height:28})),Eb=()=>u.createElement(xb,null,u.createElement(wb,null)),Ya=A.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{});Ya.displayName="Side";var Sb=({children:e,className:t,scrollable:r})=>r?u.createElement(Pn,{vertical:!1,className:t},e):u.createElement("div",{className:t},e),Zo=A(Sb)(({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});Zo.displayName="Bar";var Cb=A.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),jn=({children:e,backgroundColor:t,className:r,...n})=>{let[a,l]=o.Children.toArray(e);return u.createElement(Zo,{className:`sb-bar ${r}`,...n},u.createElement(Cb,{bgColor:t},u.createElement(Ya,{scrollable:n.scrollable,left:!0},a),l?u.createElement(Ya,{right:!0},l):null))};jn.displayName="FlexBar";var Hc=A.div(({active:e})=>e?{display:"block"}:{display:"none"}),Rb=e=>o.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:a}})=>{let l=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:typeof l=="function"?l:({active:i})=>u.createElement(Hc,{active:i,role:"tabpanel"},l)}}),Ib=A.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),Ab=A(Vr)(({active:e,theme:t,preActive:r})=>` +${t}`);let r=t.match(E7);if(!r)return u.createElement(o.Fragment,null,t);let[,n,a]=r,l=t.split(/\n/).slice(1),[,...i]=l.map(c=>{let s=c.match(S7)||c.match(C7)||c.match(R7);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(y7.location.origin,"")}:null}).filter(Boolean);return u.createElement(o.Fragment,null,u.createElement("span",null,n),": ",u.createElement(w7,null,a),u.createElement("br",null),i.map((c,s)=>c.name?u.createElement(o.Fragment,{key:s}," ","at ",u.createElement(x7,null,c.name)," (",u.createElement(gi,null,c.location),")",u.createElement("br",null)):u.createElement(o.Fragment,{key:s}," ","at ",u.createElement(gi,null,c.location),u.createElement("br",null))))},I7=A.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),A7=A.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),_7=({label:e,children:t,...r})=>u.createElement(I7,{...r},e?u.createElement(A7,null,u.createElement("span",null,e)):null,t),k7=o.useLayoutEffect,O7=k7,T7=function(e){var t=o.useRef(e);return O7(function(){t.current=e}),t},mi=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},M7=function(e,t){var r=o.useRef();return o.useCallback(function(n){e.current=n,r.current&&mi(r.current,null),r.current=t,t&&mi(t,n)},[t])},$7=M7,bi={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},L7=function(e){Object.keys(bi).forEach(function(t){e.style.setProperty(t,bi[t],"important")})},yi=L7,be=null,wi=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function z7(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),be||(be=document.createElement("textarea"),be.setAttribute("tabindex","-1"),be.setAttribute("aria-hidden","true"),yi(be)),be.parentNode===null&&document.body.appendChild(be);var a=e.paddingSize,l=e.borderSize,i=e.sizingStyle,c=i.boxSizing;Object.keys(i).forEach(function(v){var f=v;be.style[f]=i[f]}),yi(be),be.value=t;var s=wi(be,e);be.value=t,s=wi(be,e),be.value="x";var d=be.scrollHeight-a,p=d*r;c==="border-box"&&(p=p+a+l),s=Math.max(p,s);var h=d*n;return c==="border-box"&&(h=h+a+l),s=Math.min(h,s),[s,d]}var xi=function(){},B7=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},P7=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],H7=!!document.documentElement.currentStyle,F7=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=B7(P7,t),n=r.boxSizing;if(n==="")return null;H7&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var a=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),l=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:l}},j7=F7;function Mc(e,t,r){var n=T7(r);o.useLayoutEffect(function(){var a=function(l){return n.current(l)};if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}var N7=function(e){Mc(window,"resize",e)},D7=function(e){Mc(document.fonts,"loadingdone",e)},V7=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],U7=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,a=e.minRows,l=e.onChange,i=l===void 0?xi:l,c=e.onHeightChange,s=c===void 0?xi:c,d=xo(e,V7),p=d.value!==void 0,h=o.useRef(null),v=$7(h,t),f=o.useRef(0),g=o.useRef(),m=function(){var b=h.current,E=r&&g.current?g.current:j7(b);if(E){g.current=E;var y=z7(E,b.value||b.placeholder||"x",a,n),w=y[0],S=y[1];f.current!==w&&(f.current=w,b.style.setProperty("height",w+"px","important"),s(w,{rowHeight:S}))}},x=function(b){p||m(),i(b)};return o.useLayoutEffect(m),N7(m),D7(m),o.createElement("textarea",G({},d,{onChange:x,ref:v}))},W7=o.forwardRef(U7),q7={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Yo=({theme:e})=>({...q7,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),Ko=({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},$c=({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},Xo=({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},G7=Object.assign(A(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return u.createElement("input",{...n,ref:a})}))(Yo,Ko,$c,Xo,{minHeight:32}),{displayName:"Input"}),Y7=Object.assign(A(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return u.createElement("select",{...n,ref:a})}))(Yo,Ko,Xo,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),K7=Object.assign(A(o.forwardRef(function({size:e,valid:t,align:r,...n},a){return u.createElement(W7,{...n,ref:a})}))(Yo,Ko,$c,Xo,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),sr=Object.assign(A.form({boxSizing:"border-box",width:"100%"}),{Field:_7,Input:G7,Select:Y7,Textarea:K7,Button:xt}),X7=o.lazy(()=>vt(()=>import("./WithTooltip-KJL26V4Q-BnSrsFAJ.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url).then(e=>({default:e.WithTooltip}))),Z7=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},u.createElement(X7,{...e})),J7=o.lazy(()=>vt(()=>import("./WithTooltip-KJL26V4Q-BnSrsFAJ.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url).then(e=>({default:e.WithTooltipPure}))),Lc=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},u.createElement(J7,{...e})),Q7=A.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),eb=A.span(),tb=A.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),rb=A.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),nb=A.div({padding:15,width:280,boxSizing:"border-box"}),ab=({title:e,desc:t,links:r})=>u.createElement(nb,null,u.createElement(rb,null,e&&u.createElement(Q7,null,e),t&&u.createElement(eb,null,t)),r&&u.createElement(tb,null,r.map(({title:n,...a})=>u.createElement(zt,{...a,key:n},n)))),ob=A.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),lb=({note:e,...t})=>u.createElement(ob,{...t},e),ib=A(({active:e,loading:t,disabled:r,...n})=>u.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:Ae(.7,t.color.defaultText)}:{}),sb=A.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),cb=A.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),db=A.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),ub=A.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),pb=A.a(({theme:e})=>({fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}}),({disabled:e})=>e?{cursor:"not-allowed"}:{}),fb=Ht(100)((e,t,r)=>{let n={};return e&&Object.assign(n,{onClick:e}),t&&Object.assign(n,{href:t}),r&&t&&Object.assign(n,{to:t,as:r}),n}),hb=({loading:e=!1,title:t=u.createElement("span",null,"Loading state"),center:r=null,right:n=null,active:a=!1,disabled:l=!1,isIndented:i,href:c=null,onClick:s=null,icon:d,LinkWrapper:p=null,...h})=>{let v=fb(s,c,p),f={active:a,disabled:l};return u.createElement(pb,{...f,...h,...v},d&&u.createElement(ub,{...f},d),t||r?u.createElement(cb,{isIndented:!d&&i},t&&u.createElement(ib,{...f,loading:e},t),r&&u.createElement(db,{...f},r)):null,n&&u.createElement(sb,{...f},n))},zc=hb,gb=A.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme:e})=>({borderRadius:e.appBorderRadius})),mb=e=>{let{LinkWrapper:t,onClick:r,id:n,isIndented:a,...l}=e,{title:i,href:c,active:s}=l,d=o.useCallback(h=>{r(h,l)},[r]),p=!!r;return u.createElement(zc,{title:i,active:s,href:c,id:`list-item-${n}`,LinkWrapper:t,isIndented:a,...l,...p?{onClick:d}:{}})},Bc=({links:e,LinkWrapper:t=null})=>{let r=e.some(n=>n.icon);return u.createElement(gb,null,e.map(({isGatsby:n,...a})=>u.createElement(mb,{key:a.id,LinkWrapper:n?t:null,isIndented:r,...a})))},vb=e=>typeof e.props.href=="string",bb=e=>typeof e.props.href!="string";function yb({children:e,...t},r){let n={props:t,ref:r};if(vb(n))return u.createElement("a",{ref:n.ref,...n.props},e);if(bb(n))return u.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var Pc=o.forwardRef(yb);Pc.displayName="ButtonOrLink";var Vr=A(Pc,{shouldForwardProp:po})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}});Vr.displayName="TabButton";var wb=A.div(({theme:e})=>({width:14,height:14,backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),xb=A.div(()=>({marginTop:6,padding:7,height:28})),Eb=()=>u.createElement(xb,null,u.createElement(wb,null)),Ya=A.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{marginLeft:30,"& > *":{marginRight:4}}:{});Ya.displayName="Side";var Sb=({children:e,className:t,scrollable:r})=>r?u.createElement(Pn,{vertical:!1,className:t},e):u.createElement("div",{className:t},e),Zo=A(Sb)(({theme:e,scrollable:t=!0})=>({color:e.barTextColor,width:"100%",height:40,flexShrink:0,overflow:t?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});Zo.displayName="Bar";var Cb=A.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),jn=({children:e,backgroundColor:t,className:r,...n})=>{let[a,l]=o.Children.toArray(e);return u.createElement(Zo,{className:`sb-bar ${r}`,...n},u.createElement(Cb,{bgColor:t},u.createElement(Ya,{scrollable:n.scrollable,left:!0},a),l?u.createElement(Ya,{right:!0},l):null))};jn.displayName="FlexBar";var Hc=A.div(({active:e})=>e?{display:"block"}:{display:"none"}),Rb=e=>o.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:a}})=>{let l=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:typeof l=="function"?l:({active:i})=>u.createElement(Hc,{active:i,role:"tabpanel"},l)}}),Ib=A.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),Ab=A(Vr)(({active:e,theme:t,preActive:r})=>` color: ${r||e?t.barSelectedColor:t.barTextColor}; .addon-collapsible-icon { color: ${r||e?t.barSelectedColor:t.barTextColor}; @@ -458,7 +458,7 @@ ${t}`);let r=t.match(E7);if(!r)return u.createElement(o.Fragment,null,t);let[,n, ${We(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${kt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${kt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${lt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),W1=A.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),oI=A(W1)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),lI=A.div({display:"flex",alignItems:"center",width:"100%"});function iI(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var sI=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:l=1,onBlur:i,onFocus:c,argType:s})=>{let d=f=>{r(bR(f.target.value))},p=t!==void 0,h=o.useMemo(()=>iI(l),[l]),v=!!s?.table?.readonly;return u.createElement(lI,{"aria-readonly":v},u.createElement(W1,null,n),u.createElement(aI,{id:Be(e),type:"range",disabled:v,onChange:d,name:e,value:t,min:n,max:a,step:l,onFocus:c,onBlur:i}),u.createElement(oI,{numberOFDecimalsPlaces:h,max:a},p?t.toFixed(h):"--"," / ",a))},cI=A.label({display:"flex"}),dI=A.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),uI=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:l,argType:i})=>{let c=f=>{r(f.target.value)},s=!!i?.table?.readonly,[d,p]=o.useState(!1),h=o.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return u.createElement(xt,{variant:"outline",size:"medium",disabled:s,id:Rn(e),onClick:h},"Set string");let v=typeof t=="string";return u.createElement(cI,null,u.createElement(sr.Textarea,{id:Be(e),maxLength:l,onChange:c,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:v?null:"error",name:e,value:v?t:"",onFocus:n,onBlur:a}),l&&u.createElement(dI,{isMaxed:t?.length===l},t?.length??0," / ",l))},pI=A(sr.Input)({padding:10});function fI(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var hI=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{let l=o.useRef(null),i=a?.control?.readOnly;function c(s){if(!s.target.files)return;let d=Array.from(s.target.files).map(p=>URL.createObjectURL(p));e(d),fI(n)}return o.useEffect(()=>{n==null&&l.current&&(l.current.value=null)},[n,t]),u.createElement(pI,{ref:l,id:Be(t),type:"file",name:t,multiple:!0,disabled:i,onChange:c,accept:r,size:"flex"})},gI=o.lazy(()=>vt(()=>import("./Color-PRSJMWNM-BEeqgdpE.js"),__vite__mapDeps([14,2,10,1,3,4,5,6,7,8,9,11]),import.meta.url)),mI=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},u.createElement(gI,{...e})),vI={array:d0,object:d0,boolean:dR,color:mI,date:mR,number:wR,check:qt,"inline-check":qt,radio:qt,"inline-radio":qt,select:qt,"multi-select":qt,range:sI,text:uI,file:hI},u0=()=>u.createElement(u.Fragment,null,"-"),bI=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:a,control:l}=e,[i,c]=o.useState(!1),[s,d]=o.useState({value:t});o.useEffect(()=>{i||d({value:t})},[i,t]);let p=o.useCallback(m=>(d({value:m}),r({[a]:m}),m),[r,a]),h=o.useCallback(()=>c(!1),[]),v=o.useCallback(()=>c(!0),[]);if(!l||l.disable){let m=l?.disable!==!0&&e?.type?.name!=="function";return n&&m?u.createElement(zt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):u.createElement(u0,null)}let f={name:a,argType:e,value:s.value,onChange:p,onBlur:h,onFocus:v},g=vI[l.type]||u0;return u.createElement(g,{...f,...l,controlType:l.type})},yI=A.span({fontWeight:"bold"}),wI=A.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),xI=A.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...dt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),EI=A.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ee(.1,e.color.defaultText):ee(.2,e.color.defaultText),marginTop:t?4:0})),SI=A.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ee(.1,e.color.defaultText):ee(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),CI=A.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),RI=e=>e&&{summary:typeof e=="string"?e:e.name},Qr=e=>{let[t,r]=o.useState(!1),{row:n,updateArgs:a,compact:l,expandable:i,initialExpandedArgs:c}=e,{name:s,description:d}=n,p=n.table||{},h=p.type||RI(n.type),v=p.defaultValue||n.defaultValue,f=n.type?.required,g=d!=null&&d!=="";return u.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},u.createElement(CI,{expandable:i},u.createElement(yI,null,s),f?u.createElement(wI,{title:"Required"},"*"):null),l?null:u.createElement("td",null,g&&u.createElement(xI,null,u.createElement(f1,null,d)),p.jsDocTags!=null?u.createElement(u.Fragment,null,u.createElement(SI,{hasDescription:g},u.createElement(Aa,{value:h,initialExpandedArgs:c})),u.createElement(ZC,{tags:p.jsDocTags})):u.createElement(EI,{hasDescription:g},u.createElement(Aa,{value:h,initialExpandedArgs:c}))),l?null:u.createElement("td",null,u.createElement(Aa,{value:v,initialExpandedArgs:c})),a?u.createElement("td",null,u.createElement(bI,{...e,isHovered:t})):null)},II=A(Ys)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ee(.25,e.color.defaultText):ee(.3,e.color.defaultText),border:"none",display:"inline-block"})),AI=A(Fo)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ee(.25,e.color.defaultText):ee(.3,e.color.defaultText),border:"none",display:"inline-block"})),_I=A.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),kI=A.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?ee(.4,e.color.defaultText):ee(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),OI=A.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),TI=A.td(()=>({position:"relative"})),MI=A.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${kt(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),p0=A.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),ka=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[l,i]=o.useState(n),c=e==="subsection"?OI:kI,s=r?.length||0,d=e==="subsection"?`${s} item${s!==1?"s":""}`:"",p=`${l?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return u.createElement(u.Fragment,null,u.createElement(MI,{title:p},u.createElement(c,{colSpan:1},u.createElement(p0,{onClick:h=>i(!l),tabIndex:0},p),u.createElement(_I,null,l?u.createElement(II,null):u.createElement(AI,null),t)),u.createElement(TI,{colSpan:a-1},u.createElement(p0,{onClick:h=>i(!l),tabIndex:-1,style:{outline:"none"}},p),l?null:d)),l?r:null)},en=A.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),fe=A.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ie=A.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),he=[2,4,2,2],$I=()=>u.createElement(u.Fragment,null,u.createElement(en,null,u.createElement(fe,{numColumn:he[0]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[1]},u.createElement(ie,{width:"30%"})),u.createElement(fe,{numColumn:he[2]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[3]},u.createElement(ie,{width:"60%"}))),u.createElement(en,null,u.createElement(fe,{numColumn:he[0]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[1]},u.createElement(ie,{width:"80%"}),u.createElement(ie,{width:"30%"})),u.createElement(fe,{numColumn:he[2]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[3]},u.createElement(ie,{width:"60%"}))),u.createElement(en,null,u.createElement(fe,{numColumn:he[0]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[1]},u.createElement(ie,{width:"80%"}),u.createElement(ie,{width:"30%"})),u.createElement(fe,{numColumn:he[2]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[3]},u.createElement(ie,{width:"60%"}))),u.createElement(en,null,u.createElement(fe,{numColumn:he[0]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[1]},u.createElement(ie,{width:"80%"}),u.createElement(ie,{width:"30%"})),u.createElement(fe,{numColumn:he[2]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[3]},u.createElement(ie,{width:"60%"})))),LI=A.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),zI=A.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),BI=A.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),PI=({inAddonPanel:e})=>{let[t,r]=o.useState(!0);return o.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:u.createElement(LI,{inAddonPanel:e},u.createElement(Jo,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:u.createElement(u.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:u.createElement(zI,null,e&&u.createElement(u.Fragment,null,u.createElement(zt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},u.createElement(Vs,null)," Watch 5m video"),u.createElement(BI,null),u.createElement(zt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},u.createElement(vn,null)," Read docs")),!e&&u.createElement(zt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},u.createElement(vn,null)," Learn how to set that up"))}))},HI=A.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?ee(.25,e.color.defaultText):ee(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),FI=A(mt)(({theme:e})=>({margin:"-4px -12px -4px 0"})),jI=A.span({display:"flex",justifyContent:"space-between"}),NI={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||e.name.localeCompare(t.name),none:void 0},DI=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([l,i])=>{let{category:c,subcategory:s}=i?.table||{};if(c){let d=r.sections[c]||{ungrouped:[],subsections:{}};if(!s)d.ungrouped.push({key:l,...i});else{let p=d.subsections[s]||[];p.push({key:l,...i}),d.subsections[s]=p}r.sections[c]=d}else if(s){let d=r.ungroupedSubsections[s]||[];d.push({key:l,...i}),r.ungroupedSubsections[s]=d}else r.ungrouped.push({key:l,...i})});let n=NI[t],a=l=>n?Object.keys(l).reduce((i,c)=>({...i,[c]:l[c].sort(n)}),{}):l;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((l,i)=>({...l,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},VI=(e,t,r)=>{try{return hd(e,t,r)}catch(n){return wC.warn(n.message),!1}},oo=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:l,sort:i="none",isLoading:c}=e;if("error"in e){let{error:E}=e;return u.createElement(_1,null,E," ",u.createElement(zt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},u.createElement(vn,null)," Read the docs"))}if(c)return u.createElement($I,null);let{rows:s,args:d,globals:p}="rows"in e&&e,h=DI(R6(s,E=>!E?.table?.disable&&VI(E,d||{},p||{})),i),v=h.ungrouped.length===0,f=Object.entries(h.sections).length===0,g=Object.entries(h.ungroupedSubsections).length===0;if(v&&f&&g)return u.createElement(PI,{inAddonPanel:a});let m=1;t&&(m+=1),n||(m+=2);let x=Object.keys(h.sections).length>0,b={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:l};return u.createElement(Go,null,u.createElement(HI,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},u.createElement("thead",{className:"docblock-argstable-head"},u.createElement("tr",null,u.createElement("th",null,u.createElement("span",null,"Name")),n?null:u.createElement("th",null,u.createElement("span",null,"Description")),n?null:u.createElement("th",null,u.createElement("span",null,"Default")),t?u.createElement("th",null,u.createElement(jI,null,"Control"," ",!c&&r&&u.createElement(FI,{onClick:()=>r(),title:"Reset controls"},u.createElement(Xs,{"aria-hidden":!0})))):null)),u.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(E=>u.createElement(Qr,{key:E.key,row:E,arg:d&&d[E.key],...b})),Object.entries(h.ungroupedSubsections).map(([E,y])=>u.createElement(ka,{key:E,label:E,level:"subsection",colSpan:m},y.map(w=>u.createElement(Qr,{key:w.key,row:w,arg:d&&d[w.key],expandable:x,...b})))),Object.entries(h.sections).map(([E,y])=>u.createElement(ka,{key:E,label:E,level:"section",colSpan:m},y.ungrouped.map(w=>u.createElement(Qr,{key:w.key,row:w,arg:d&&d[w.key],...b})),Object.entries(y.subsections).map(([w,S])=>u.createElement(ka,{key:w,label:w,level:"subsection",colSpan:m},S.map(C=>u.createElement(Qr,{key:C.key,row:C,arg:d&&d[C.key],expandable:x,...b})))))))))},UI=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?u.createElement(oo,{...r[0][1],...t}):u.createElement(tl,null,r.map((n,a)=>{let[l,i]=n,c=`prop_table_div_${l}`,s="div",d=a===0?t:{sort:t.sort};return u.createElement(s,{key:c,id:c,title:l},({active:p})=>p?u.createElement(oo,{key:`prop_table_${l}`,...i,...d}):null)}))};A.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ee(.4,e.color.defaultText):ee(.6,e.color.defaultText)}));A.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});A.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});A.div(re,({theme:e})=>({...Gn(e),margin:"25px 0 40px",padding:"30px 20px"}));A.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));A.div(({theme:e})=>({color:e.base==="light"?ee(.2,e.color.defaultText):ee(.6,e.color.defaultText)}));A.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});A.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ee(.4,e.color.defaultText):ee(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));A.div({display:"flex",flexDirection:"row"});A.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));A.div(({theme:e})=>({...Gn(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));A.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});A.div({flex:1,display:"flex",flexDirection:"row"});A.div({display:"flex",alignItems:"flex-start"});A.div({flex:"0 0 30%"});A.div({flex:1});A.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ee(.4,e.color.defaultText):ee(.6,e.color.defaultText)}));A.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));A.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));A.div(({theme:e})=>({...Gn(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));A.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});A.div({display:"flex",flexFlow:"row wrap"});var WI=e=>`anchor--${e}`,qI=({storyId:e,children:t})=>u.createElement("div",{id:WI(e),className:"sb-anchor"},t);_e&&_e.__DOCS_CONTEXT__===void 0&&(_e.__DOCS_CONTEXT__=o.createContext(null),_e.__DOCS_CONTEXT__.displayName="DocsContext");var rt=_e?_e.__DOCS_CONTEXT__:o.createContext(null),Nt=(e,t)=>o.useContext(rt).resolveOf(e,t),GI=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),YI=e=>{if(e)return typeof e=="string"?e.includes("-")?GI(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function KI(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function q1(e){return fC(e,{allowFunction:!1})}var G1=o.createContext({sources:{}}),Y1="--unknown--",XI=({children:e,channel:t})=>{let[r,n]=o.useState({});return o.useEffect(()=>{let a=(l,i=null,c=!1)=>{let{id:s,args:d=void 0,source:p,format:h}=typeof l=="string"?{id:l,source:i,format:c}:l,v=d?q1(d):Y1;n(f=>({...f,[s]:{...f[s],[v]:{code:p,format:h}}}))};return t.on(Sl,a),()=>t.off(Sl,a)},[]),u.createElement(G1.Provider,{value:{sources:r}},e)},ZI=(e,t,r)=>{let{sources:n}=r,a=n?.[e];return a?.[q1(t)]||a?.[Y1]||{code:""}},JI=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{let{__isArgsStory:a}=t.parameters,l=t.parameters.docs?.source||{},i=r||l.type||Jn.AUTO;if(l.code!==void 0)return l.code;let c=i===Jn.DYNAMIC||i===Jn.AUTO&&e&&a?e:l.originalSource||"";return(n??l.transform)?.(c,t)||c},QI=(e,t,r)=>{let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let l=n?.parameters?.docs?.source||{},{code:i}=e,c=e.format??l.format,s=e.language??l.language??"jsx",d=e.dark??l.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:c,language:s,dark:d};let p=t.getStoryContext(n),h=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,v=ZI(n.id,h,r);return c=v.format??n.parameters.docs?.source?.format??!1,{code:JI({snippet:v.code,storyContext:{...p,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:c,language:s,dark:d}};function eA(e,t){let r=tA([e],t);return r&&r[0]}function tA(e,t){let[r,n]=o.useState({});return o.useEffect(()=>{Promise.all(e.map(async a=>{let l=await t.loadStory(a);n(i=>i[a]===l?i:{...i,[a]:l})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var rA=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},nA=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,l=a.story||{};if(a.disable)return null;if(e.inline??l.inline??!1){let c=e.height??l.height,s=e.autoplay??l.autoplay??!1;return{story:t,inline:!0,height:c,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??l.height??l.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},aA=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=o.useContext(rt),r=rA(e,t),n=eA(r,t);if(!n)return u.createElement(T1,null);let a=nA(e,n,t);return a?u.createElement(VC,{...a}):null},oA=e=>{let t=o.useContext(rt),r=o.useContext(G1),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:l}=Nt(n||"story",["story"]),i=QI({...a,...n&&{of:n}},t,r),c=e.layout??l.parameters.layout??l.parameters.docs?.canvas?.layout??"padded",s=e.withToolbar??l.parameters.docs?.canvas?.withToolbar??!1,d=e.additionalActions??l.parameters.docs?.canvas?.additionalActions,p=e.sourceState??l.parameters.docs?.canvas?.sourceState??"hidden",h=e.className??l.parameters.docs?.canvas?.className;return u.createElement(M1,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:s,additionalActions:d,className:h,layout:c},u.createElement(aA,{of:n||l.moduleExport,meta:e.meta,...e.story}))},lA=(e,t)=>{let r=t.getStoryContext(e),[n,a]=o.useState(r.globals);return o.useEffect(()=>{let l=i=>{a(i.globals)};return t.channel.on(Qi,l),()=>t.channel.off(Qi,l)},[t.channel]),[n]},iA=(e,t)=>{let r=sA(e,t);if(!r)throw new Error("No result when story was defined");return r},sA=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,l]=o.useState(r.args);o.useEffect(()=>{let s=d=>{d.storyId===n&&l(d.args)};return t.channel.on(e0,s),()=>t.channel.off(e0,s)},[n,t.channel]);let i=o.useCallback(s=>t.channel.emit(xC,{storyId:n,updatedArgs:s}),[n,t.channel]),c=o.useCallback(s=>t.channel.emit(EC,{storyId:n,argNames:s}),[n,t.channel]);return e&&[a,i,c]};function cA(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var dA=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=o.useContext(rt),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:l,component:i,subcomponents:c}=n,s=a.docs?.controls||{},d=e.include??s.include,p=e.exclude??s.exclude,h=e.sort??s.sort,[v,f,g]=iA(n,r),[m]=lA(n,r),x=Ji(l,d,p);if(!(c&&Object.keys(c).length>0))return Object.keys(x).length>0||Object.keys(v).length>0?u.createElement(oo,{rows:x,sort:h,args:v,globals:m,updateArgs:f,resetArgs:g}):null;let b=YI(i),E=Object.fromEntries(Object.entries(c).map(([w,S])=>[w,{rows:Ji(cA(S,a),d,p),sort:h}])),y={[b]:{rows:x,sort:h},...E};return u.createElement(UI,{tabs:y,sort:h,args:v,globals:m,updateArgs:f,resetArgs:g})},{document:K1}=_e,X1=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return u.createElement(Uo,null,t);let n=e&&e.split("-");return u.createElement(k1,{language:n&&n[1]||"text",format:!1,code:t,...r})};function ml(e,t){e.channel.emit(SC,t)}var lo=Nc.a,uA=({hash:e,children:t})=>{let r=o.useContext(rt);return u.createElement(lo,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);K1.getElementById(a)&&ml(r,e)}},t)},Z1=e=>{let{href:t,target:r,children:n,...a}=e,l=o.useContext(rt);return!t||r==="_blank"||/^https?:\/\//.test(t)?u.createElement(lo,{...e}):t.startsWith("#")?u.createElement(uA,{hash:t},n):u.createElement(lo,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),ml(l,i.currentTarget.getAttribute("href")))},target:r,...a},n)},J1=["h1","h2","h3","h4","h5","h6"],pA=J1.reduce((e,t)=>({...e,[t]:A(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),fA=A.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),hA=({as:e,id:t,children:r,...n})=>{let a=o.useContext(rt),l=pA[e],i=`#${t}`;return u.createElement(l,{id:t,...n},u.createElement(fA,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:c=>{K1.getElementById(t)&&ml(a,i)}},u.createElement(Gs,null)),r)},vl=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return u.createElement(hA,{as:t,id:r,...a},n);let l=t,{as:i,...c}=e;return u.createElement(l,{...te(c,t)})},Q1=J1.reduce((e,t)=>({...e,[t]:r=>u.createElement(vl,{as:t,...r})}),{}),gA=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(Bd`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' + ${kt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${lt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),W1=A.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),oI=A(W1)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),lI=A.div({display:"flex",alignItems:"center",width:"100%"});function iI(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var sI=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:l=1,onBlur:i,onFocus:c,argType:s})=>{let d=f=>{r(bR(f.target.value))},p=t!==void 0,h=o.useMemo(()=>iI(l),[l]),v=!!s?.table?.readonly;return u.createElement(lI,{"aria-readonly":v},u.createElement(W1,null,n),u.createElement(aI,{id:Be(e),type:"range",disabled:v,onChange:d,name:e,value:t,min:n,max:a,step:l,onFocus:c,onBlur:i}),u.createElement(oI,{numberOFDecimalsPlaces:h,max:a},p?t.toFixed(h):"--"," / ",a))},cI=A.label({display:"flex"}),dI=A.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),uI=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:l,argType:i})=>{let c=f=>{r(f.target.value)},s=!!i?.table?.readonly,[d,p]=o.useState(!1),h=o.useCallback(()=>{r(""),p(!0)},[p]);if(t===void 0)return u.createElement(xt,{variant:"outline",size:"medium",disabled:s,id:Rn(e),onClick:h},"Set string");let v=typeof t=="string";return u.createElement(cI,null,u.createElement(sr.Textarea,{id:Be(e),maxLength:l,onChange:c,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:d,valid:v?null:"error",name:e,value:v?t:"",onFocus:n,onBlur:a}),l&&u.createElement(dI,{isMaxed:t?.length===l},t?.length??0," / ",l))},pI=A(sr.Input)({padding:10});function fI(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var hI=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{let l=o.useRef(null),i=a?.control?.readOnly;function c(s){if(!s.target.files)return;let d=Array.from(s.target.files).map(p=>URL.createObjectURL(p));e(d),fI(n)}return o.useEffect(()=>{n==null&&l.current&&(l.current.value=null)},[n,t]),u.createElement(pI,{ref:l,id:Be(t),type:"file",name:t,multiple:!0,disabled:i,onChange:c,accept:r,size:"flex"})},gI=o.lazy(()=>vt(()=>import("./Color-PRSJMWNM-Dc914bmM.js"),__vite__mapDeps([14,2,10,1,3,4,5,6,7,8,9,11]),import.meta.url)),mI=e=>u.createElement(o.Suspense,{fallback:u.createElement("div",null)},u.createElement(gI,{...e})),vI={array:d0,object:d0,boolean:dR,color:mI,date:mR,number:wR,check:qt,"inline-check":qt,radio:qt,"inline-radio":qt,select:qt,"multi-select":qt,range:sI,text:uI,file:hI},u0=()=>u.createElement(u.Fragment,null,"-"),bI=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:a,control:l}=e,[i,c]=o.useState(!1),[s,d]=o.useState({value:t});o.useEffect(()=>{i||d({value:t})},[i,t]);let p=o.useCallback(m=>(d({value:m}),r({[a]:m}),m),[r,a]),h=o.useCallback(()=>c(!1),[]),v=o.useCallback(()=>c(!0),[]);if(!l||l.disable){let m=l?.disable!==!0&&e?.type?.name!=="function";return n&&m?u.createElement(zt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):u.createElement(u0,null)}let f={name:a,argType:e,value:s.value,onChange:p,onBlur:h,onFocus:v},g=vI[l.type]||u0;return u.createElement(g,{...f,...l,controlType:l.type})},yI=A.span({fontWeight:"bold"}),wI=A.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),xI=A.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...dt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),EI=A.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ee(.1,e.color.defaultText):ee(.2,e.color.defaultText),marginTop:t?4:0})),SI=A.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ee(.1,e.color.defaultText):ee(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),CI=A.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),RI=e=>e&&{summary:typeof e=="string"?e:e.name},Qr=e=>{let[t,r]=o.useState(!1),{row:n,updateArgs:a,compact:l,expandable:i,initialExpandedArgs:c}=e,{name:s,description:d}=n,p=n.table||{},h=p.type||RI(n.type),v=p.defaultValue||n.defaultValue,f=n.type?.required,g=d!=null&&d!=="";return u.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},u.createElement(CI,{expandable:i},u.createElement(yI,null,s),f?u.createElement(wI,{title:"Required"},"*"):null),l?null:u.createElement("td",null,g&&u.createElement(xI,null,u.createElement(f1,null,d)),p.jsDocTags!=null?u.createElement(u.Fragment,null,u.createElement(SI,{hasDescription:g},u.createElement(Aa,{value:h,initialExpandedArgs:c})),u.createElement(ZC,{tags:p.jsDocTags})):u.createElement(EI,{hasDescription:g},u.createElement(Aa,{value:h,initialExpandedArgs:c}))),l?null:u.createElement("td",null,u.createElement(Aa,{value:v,initialExpandedArgs:c})),a?u.createElement("td",null,u.createElement(bI,{...e,isHovered:t})):null)},II=A(Ys)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ee(.25,e.color.defaultText):ee(.3,e.color.defaultText),border:"none",display:"inline-block"})),AI=A(Fo)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ee(.25,e.color.defaultText):ee(.3,e.color.defaultText),border:"none",display:"inline-block"})),_I=A.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),kI=A.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?ee(.4,e.color.defaultText):ee(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),OI=A.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),TI=A.td(()=>({position:"relative"})),MI=A.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${kt(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),p0=A.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),ka=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[l,i]=o.useState(n),c=e==="subsection"?OI:kI,s=r?.length||0,d=e==="subsection"?`${s} item${s!==1?"s":""}`:"",p=`${l?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return u.createElement(u.Fragment,null,u.createElement(MI,{title:p},u.createElement(c,{colSpan:1},u.createElement(p0,{onClick:h=>i(!l),tabIndex:0},p),u.createElement(_I,null,l?u.createElement(II,null):u.createElement(AI,null),t)),u.createElement(TI,{colSpan:a-1},u.createElement(p0,{onClick:h=>i(!l),tabIndex:-1,style:{outline:"none"}},p),l?null:d)),l?r:null)},en=A.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),fe=A.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),ie=A.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),he=[2,4,2,2],$I=()=>u.createElement(u.Fragment,null,u.createElement(en,null,u.createElement(fe,{numColumn:he[0]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[1]},u.createElement(ie,{width:"30%"})),u.createElement(fe,{numColumn:he[2]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[3]},u.createElement(ie,{width:"60%"}))),u.createElement(en,null,u.createElement(fe,{numColumn:he[0]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[1]},u.createElement(ie,{width:"80%"}),u.createElement(ie,{width:"30%"})),u.createElement(fe,{numColumn:he[2]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[3]},u.createElement(ie,{width:"60%"}))),u.createElement(en,null,u.createElement(fe,{numColumn:he[0]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[1]},u.createElement(ie,{width:"80%"}),u.createElement(ie,{width:"30%"})),u.createElement(fe,{numColumn:he[2]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[3]},u.createElement(ie,{width:"60%"}))),u.createElement(en,null,u.createElement(fe,{numColumn:he[0]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[1]},u.createElement(ie,{width:"80%"}),u.createElement(ie,{width:"30%"})),u.createElement(fe,{numColumn:he[2]},u.createElement(ie,{width:"60%"})),u.createElement(fe,{numColumn:he[3]},u.createElement(ie,{width:"60%"})))),LI=A.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),zI=A.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),BI=A.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),PI=({inAddonPanel:e})=>{let[t,r]=o.useState(!0);return o.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:u.createElement(LI,{inAddonPanel:e},u.createElement(Jo,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:u.createElement(u.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:u.createElement(zI,null,e&&u.createElement(u.Fragment,null,u.createElement(zt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},u.createElement(Vs,null)," Watch 5m video"),u.createElement(BI,null),u.createElement(zt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},u.createElement(vn,null)," Read docs")),!e&&u.createElement(zt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},u.createElement(vn,null)," Learn how to set that up"))}))},HI=A.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?ee(.25,e.color.defaultText):ee(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),FI=A(mt)(({theme:e})=>({margin:"-4px -12px -4px 0"})),jI=A.span({display:"flex",justifyContent:"space-between"}),NI={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||e.name.localeCompare(t.name),none:void 0},DI=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([l,i])=>{let{category:c,subcategory:s}=i?.table||{};if(c){let d=r.sections[c]||{ungrouped:[],subsections:{}};if(!s)d.ungrouped.push({key:l,...i});else{let p=d.subsections[s]||[];p.push({key:l,...i}),d.subsections[s]=p}r.sections[c]=d}else if(s){let d=r.ungroupedSubsections[s]||[];d.push({key:l,...i}),r.ungroupedSubsections[s]=d}else r.ungrouped.push({key:l,...i})});let n=NI[t],a=l=>n?Object.keys(l).reduce((i,c)=>({...i,[c]:l[c].sort(n)}),{}):l;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((l,i)=>({...l,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},VI=(e,t,r)=>{try{return hd(e,t,r)}catch(n){return wC.warn(n.message),!1}},oo=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:l,sort:i="none",isLoading:c}=e;if("error"in e){let{error:E}=e;return u.createElement(_1,null,E," ",u.createElement(zt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},u.createElement(vn,null)," Read the docs"))}if(c)return u.createElement($I,null);let{rows:s,args:d,globals:p}="rows"in e&&e,h=DI(R6(s,E=>!E?.table?.disable&&VI(E,d||{},p||{})),i),v=h.ungrouped.length===0,f=Object.entries(h.sections).length===0,g=Object.entries(h.ungroupedSubsections).length===0;if(v&&f&&g)return u.createElement(PI,{inAddonPanel:a});let m=1;t&&(m+=1),n||(m+=2);let x=Object.keys(h.sections).length>0,b={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:l};return u.createElement(Go,null,u.createElement(HI,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},u.createElement("thead",{className:"docblock-argstable-head"},u.createElement("tr",null,u.createElement("th",null,u.createElement("span",null,"Name")),n?null:u.createElement("th",null,u.createElement("span",null,"Description")),n?null:u.createElement("th",null,u.createElement("span",null,"Default")),t?u.createElement("th",null,u.createElement(jI,null,"Control"," ",!c&&r&&u.createElement(FI,{onClick:()=>r(),title:"Reset controls"},u.createElement(Xs,{"aria-hidden":!0})))):null)),u.createElement("tbody",{className:"docblock-argstable-body"},h.ungrouped.map(E=>u.createElement(Qr,{key:E.key,row:E,arg:d&&d[E.key],...b})),Object.entries(h.ungroupedSubsections).map(([E,y])=>u.createElement(ka,{key:E,label:E,level:"subsection",colSpan:m},y.map(w=>u.createElement(Qr,{key:w.key,row:w,arg:d&&d[w.key],expandable:x,...b})))),Object.entries(h.sections).map(([E,y])=>u.createElement(ka,{key:E,label:E,level:"section",colSpan:m},y.ungrouped.map(w=>u.createElement(Qr,{key:w.key,row:w,arg:d&&d[w.key],...b})),Object.entries(y.subsections).map(([w,S])=>u.createElement(ka,{key:w,label:w,level:"subsection",colSpan:m},S.map(C=>u.createElement(Qr,{key:C.key,row:C,arg:d&&d[C.key],expandable:x,...b})))))))))},UI=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?u.createElement(oo,{...r[0][1],...t}):u.createElement(tl,null,r.map((n,a)=>{let[l,i]=n,c=`prop_table_div_${l}`,s="div",d=a===0?t:{sort:t.sort};return u.createElement(s,{key:c,id:c,title:l},({active:p})=>p?u.createElement(oo,{key:`prop_table_${l}`,...i,...d}):null)}))};A.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ee(.4,e.color.defaultText):ee(.6,e.color.defaultText)}));A.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});A.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});A.div(re,({theme:e})=>({...Gn(e),margin:"25px 0 40px",padding:"30px 20px"}));A.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));A.div(({theme:e})=>({color:e.base==="light"?ee(.2,e.color.defaultText):ee(.6,e.color.defaultText)}));A.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});A.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ee(.4,e.color.defaultText):ee(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));A.div({display:"flex",flexDirection:"row"});A.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));A.div(({theme:e})=>({...Gn(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));A.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});A.div({flex:1,display:"flex",flexDirection:"row"});A.div({display:"flex",alignItems:"flex-start"});A.div({flex:"0 0 30%"});A.div({flex:1});A.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ee(.4,e.color.defaultText):ee(.6,e.color.defaultText)}));A.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));A.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));A.div(({theme:e})=>({...Gn(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));A.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});A.div({display:"flex",flexFlow:"row wrap"});var WI=e=>`anchor--${e}`,qI=({storyId:e,children:t})=>u.createElement("div",{id:WI(e),className:"sb-anchor"},t);_e&&_e.__DOCS_CONTEXT__===void 0&&(_e.__DOCS_CONTEXT__=o.createContext(null),_e.__DOCS_CONTEXT__.displayName="DocsContext");var rt=_e?_e.__DOCS_CONTEXT__:o.createContext(null),Nt=(e,t)=>o.useContext(rt).resolveOf(e,t),GI=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),YI=e=>{if(e)return typeof e=="string"?e.includes("-")?GI(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function KI(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function q1(e){return fC(e,{allowFunction:!1})}var G1=o.createContext({sources:{}}),Y1="--unknown--",XI=({children:e,channel:t})=>{let[r,n]=o.useState({});return o.useEffect(()=>{let a=(l,i=null,c=!1)=>{let{id:s,args:d=void 0,source:p,format:h}=typeof l=="string"?{id:l,source:i,format:c}:l,v=d?q1(d):Y1;n(f=>({...f,[s]:{...f[s],[v]:{code:p,format:h}}}))};return t.on(Sl,a),()=>t.off(Sl,a)},[]),u.createElement(G1.Provider,{value:{sources:r}},e)},ZI=(e,t,r)=>{let{sources:n}=r,a=n?.[e];return a?.[q1(t)]||a?.[Y1]||{code:""}},JI=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{let{__isArgsStory:a}=t.parameters,l=t.parameters.docs?.source||{},i=r||l.type||Jn.AUTO;if(l.code!==void 0)return l.code;let c=i===Jn.DYNAMIC||i===Jn.AUTO&&e&&a?e:l.originalSource||"";return(n??l.transform)?.(c,t)||c},QI=(e,t,r)=>{let n,{of:a}=e;if("of"in e&&a===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(a)n=t.resolveOf(a,["story"]).story;else try{n=t.storyById()}catch{}let l=n?.parameters?.docs?.source||{},{code:i}=e,c=e.format??l.format,s=e.language??l.language??"jsx",d=e.dark??l.dark??!1;if(!i&&!n)return{error:"Oh no! The source is not available."};if(i)return{code:i,format:c,language:s,dark:d};let p=t.getStoryContext(n),h=e.__forceInitialArgs?p.initialArgs:p.unmappedArgs,v=ZI(n.id,h,r);return c=v.format??n.parameters.docs?.source?.format??!1,{code:JI({snippet:v.code,storyContext:{...p,args:h},typeFromProps:e.type,transformFromProps:e.transform}),format:c,language:s,dark:d}};function eA(e,t){let r=tA([e],t);return r&&r[0]}function tA(e,t){let[r,n]=o.useState({});return o.useEffect(()=>{Promise.all(e.map(async a=>{let l=await t.loadStory(a);n(i=>i[a]===l?i:{...i,[a]:l})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var rA=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},nA=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,l=a.story||{};if(a.disable)return null;if(e.inline??l.inline??!1){let c=e.height??l.height,s=e.autoplay??l.autoplay??!1;return{story:t,inline:!0,height:c,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??l.height??l.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},aA=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=o.useContext(rt),r=rA(e,t),n=eA(r,t);if(!n)return u.createElement(T1,null);let a=nA(e,n,t);return a?u.createElement(VC,{...a}):null},oA=e=>{let t=o.useContext(rt),r=o.useContext(G1),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:l}=Nt(n||"story",["story"]),i=QI({...a,...n&&{of:n}},t,r),c=e.layout??l.parameters.layout??l.parameters.docs?.canvas?.layout??"padded",s=e.withToolbar??l.parameters.docs?.canvas?.withToolbar??!1,d=e.additionalActions??l.parameters.docs?.canvas?.additionalActions,p=e.sourceState??l.parameters.docs?.canvas?.sourceState??"hidden",h=e.className??l.parameters.docs?.canvas?.className;return u.createElement(M1,{withSource:p==="none"?void 0:i,isExpanded:p==="shown",withToolbar:s,additionalActions:d,className:h,layout:c},u.createElement(aA,{of:n||l.moduleExport,meta:e.meta,...e.story}))},lA=(e,t)=>{let r=t.getStoryContext(e),[n,a]=o.useState(r.globals);return o.useEffect(()=>{let l=i=>{a(i.globals)};return t.channel.on(Qi,l),()=>t.channel.off(Qi,l)},[t.channel]),[n]},iA=(e,t)=>{let r=sA(e,t);if(!r)throw new Error("No result when story was defined");return r},sA=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,l]=o.useState(r.args);o.useEffect(()=>{let s=d=>{d.storyId===n&&l(d.args)};return t.channel.on(e0,s),()=>t.channel.off(e0,s)},[n,t.channel]);let i=o.useCallback(s=>t.channel.emit(xC,{storyId:n,updatedArgs:s}),[n,t.channel]),c=o.useCallback(s=>t.channel.emit(EC,{storyId:n,argNames:s}),[n,t.channel]);return e&&[a,i,c]};function cA(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var dA=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=o.useContext(rt),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:a,argTypes:l,component:i,subcomponents:c}=n,s=a.docs?.controls||{},d=e.include??s.include,p=e.exclude??s.exclude,h=e.sort??s.sort,[v,f,g]=iA(n,r),[m]=lA(n,r),x=Ji(l,d,p);if(!(c&&Object.keys(c).length>0))return Object.keys(x).length>0||Object.keys(v).length>0?u.createElement(oo,{rows:x,sort:h,args:v,globals:m,updateArgs:f,resetArgs:g}):null;let b=YI(i),E=Object.fromEntries(Object.entries(c).map(([w,S])=>[w,{rows:Ji(cA(S,a),d,p),sort:h}])),y={[b]:{rows:x,sort:h},...E};return u.createElement(UI,{tabs:y,sort:h,args:v,globals:m,updateArgs:f,resetArgs:g})},{document:K1}=_e,X1=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return u.createElement(Uo,null,t);let n=e&&e.split("-");return u.createElement(k1,{language:n&&n[1]||"text",format:!1,code:t,...r})};function ml(e,t){e.channel.emit(SC,t)}var lo=Nc.a,uA=({hash:e,children:t})=>{let r=o.useContext(rt);return u.createElement(lo,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);K1.getElementById(a)&&ml(r,e)}},t)},Z1=e=>{let{href:t,target:r,children:n,...a}=e,l=o.useContext(rt);return!t||r==="_blank"||/^https?:\/\//.test(t)?u.createElement(lo,{...e}):t.startsWith("#")?u.createElement(uA,{hash:t},n):u.createElement(lo,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),ml(l,i.currentTarget.getAttribute("href")))},target:r,...a},n)},J1=["h1","h2","h3","h4","h5","h6"],pA=J1.reduce((e,t)=>({...e,[t]:A(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),fA=A.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),hA=({as:e,id:t,children:r,...n})=>{let a=o.useContext(rt),l=pA[e],i=`#${t}`;return u.createElement(l,{id:t,...n},u.createElement(fA,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:c=>{K1.getElementById(t)&&ml(a,i)}},u.createElement(Gs,null)),r)},vl=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return u.createElement(hA,{as:t,id:r,...a},n);let l=t,{as:i,...c}=e;return u.createElement(l,{...te(c,t)})},Q1=J1.reduce((e,t)=>({...e,[t]:r=>u.createElement(vl,{as:t,...r})}),{}),gA=e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(Bd`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' This is often caused by not wrapping the child in a template string. This is invalid: diff --git a/assets/DrawerMenu.stories-CbqYlzn6.js b/assets/DrawerMenu.stories-DQqPoW3e.js similarity index 88% rename from assets/DrawerMenu.stories-CbqYlzn6.js rename to assets/DrawerMenu.stories-DQqPoW3e.js index 7a455183..f143c453 100644 --- a/assets/DrawerMenu.stories-CbqYlzn6.js +++ b/assets/DrawerMenu.stories-DQqPoW3e.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DoxjgJx5.js";import{S as a}from"./user-profile-CB1AInEY.js";import{S as s,a as i,b as c}from"./leave-ZJppWO3C.js";import{D as t,d as l}from"./DrawerMenu-BJRINQC3.js";import{M as r}from"./MenuItem-D2IOP9Gc.js";import{S as m}from"./Separator-6D3uspFz.js";import"./index-Cu9bd8lq.js";import"./index-C2KoGaFq.js";import"./Text-BrcN_buA.js";import"./Typography-BcgMUEGb.js";import"./index-icJLasaE.js";import"./index-CZs6vfAl.js";import"./index-MTP5U5xA.js";import"./floating-ui.react-C9uQe9t5.js";const P={title:"Menu/DrawerMenu",component:t,argTypes:{},args:{}},p=n=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:l.bg}),e.jsxs(t,{...n,title:"Settings",children:[e.jsx(r,{Icon:a,label:"Profile",onSelect:()=>{}}),e.jsx(r,{Icon:s,label:"Notifications",onSelect:()=>{}}),e.jsx(r,{Icon:i,label:"Feedback",onSelect:()=>{}}),e.jsx(m,{}),e.jsx(r,{kind:"critical",Icon:c,label:"Sign out",onSelect:()=>{}})]})]}),o=p.bind({});o.args={};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`args => <> +import{j as e}from"./jsx-runtime-DoxjgJx5.js";import{S as a}from"./user-profile-CB1AInEY.js";import{S as s,a as i,b as c}from"./leave-ZJppWO3C.js";import{D as t,d as l}from"./DrawerMenu-BJRINQC3.js";import{M as r}from"./MenuItem-Dv7SCHqT.js";import{S as m}from"./Separator-6D3uspFz.js";import"./index-Cu9bd8lq.js";import"./index-C2KoGaFq.js";import"./Text-DCibjNNg.js";import"./Typography-D-74lRMS.js";import"./index-icJLasaE.js";import"./index-CZs6vfAl.js";import"./index-MTP5U5xA.js";import"./floating-ui.react-C9uQe9t5.js";const P={title:"Menu/DrawerMenu",component:t,argTypes:{},args:{}},p=n=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:l.bg}),e.jsxs(t,{...n,title:"Settings",children:[e.jsx(r,{Icon:a,label:"Profile",onSelect:()=>{}}),e.jsx(r,{Icon:s,label:"Notifications",onSelect:()=>{}}),e.jsx(r,{Icon:i,label:"Feedback",onSelect:()=>{}}),e.jsx(m,{}),e.jsx(r,{kind:"critical",Icon:c,label:"Sign out",onSelect:()=>{}})]})]}),o=p.bind({});o.args={};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`args => <>
{}} /> diff --git a/assets/FloatingMenu-Eb22vTDs.js b/assets/FloatingMenu-BxFYcaYT.js similarity index 95% rename from assets/FloatingMenu-Eb22vTDs.js rename to assets/FloatingMenu-BxFYcaYT.js index e7c54fa1..3b749980 100644 --- a/assets/FloatingMenu-Eb22vTDs.js +++ b/assets/FloatingMenu-BxFYcaYT.js @@ -1 +1 @@ -import{j as a}from"./jsx-runtime-DoxjgJx5.js";import{c as u}from"./index-C2KoGaFq.js";import{r as m}from"./index-Cu9bd8lq.js";import{u as c}from"./useId-D5m2XpUu.js";import{T as _}from"./Text-BrcN_buA.js";const p="_menu_1x5h1_17",f="_title_1x5h1_83",i={menu:p,"slide-in":"_slide-in_1x5h1_1","slide-out":"_slide-out_1x5h1_1","fade-in":"_fade-in_1x5h1_1","fade-out":"_fade-out_1x5h1_1",title:f},h=({title:e,id:t})=>a.jsx(_,{as:"h3",id:t,className:i.title,size:"sm",weight:"semibold",children:e}),s=m.forwardRef(({title:e,showTitle:t=!0,className:n,children:r,...o},d)=>{const l=c();return a.jsxs("div",{role:"menu",ref:d,"aria-label":t?void 0:e,"aria-labelledby":t?l:void 0,className:u(n,i.menu),...o,children:[t&&a.jsx(h,{title:e,id:l}),r]})});s.displayName="FloatingMenu";try{s.displayName="FloatingMenu",s.__docgenInfo={description:"A menu in a floating box, as commonly seen on desktop.",displayName:"FloatingMenu",props:{title:{defaultValue:null,description:"The menu title.",name:"title",required:!0,type:{name:"string"}},showTitle:{defaultValue:{value:"true"},description:"Whether to show the title. If false, the title will be hidden but still used as a label for screen readers.",name:"showTitle",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"The CSS class.",name:"className",required:!1,type:{name:"string"}},children:{defaultValue:null,description:"The menu contents.",name:"children",required:!0,type:{name:"ReactNode"}}}}}catch{}export{s as F}; +import{j as a}from"./jsx-runtime-DoxjgJx5.js";import{c as u}from"./index-C2KoGaFq.js";import{r as m}from"./index-Cu9bd8lq.js";import{u as c}from"./useId-D5m2XpUu.js";import{T as _}from"./Text-DCibjNNg.js";const p="_menu_1x5h1_17",f="_title_1x5h1_83",i={menu:p,"slide-in":"_slide-in_1x5h1_1","slide-out":"_slide-out_1x5h1_1","fade-in":"_fade-in_1x5h1_1","fade-out":"_fade-out_1x5h1_1",title:f},h=({title:e,id:t})=>a.jsx(_,{as:"h3",id:t,className:i.title,size:"sm",weight:"semibold",children:e}),s=m.forwardRef(({title:e,showTitle:t=!0,className:n,children:r,...o},d)=>{const l=c();return a.jsxs("div",{role:"menu",ref:d,"aria-label":t?void 0:e,"aria-labelledby":t?l:void 0,className:u(n,i.menu),...o,children:[t&&a.jsx(h,{title:e,id:l}),r]})});s.displayName="FloatingMenu";try{s.displayName="FloatingMenu",s.__docgenInfo={description:"A menu in a floating box, as commonly seen on desktop.",displayName:"FloatingMenu",props:{title:{defaultValue:null,description:"The menu title.",name:"title",required:!0,type:{name:"string"}},showTitle:{defaultValue:{value:"true"},description:"Whether to show the title. If false, the title will be hidden but still used as a label for screen readers.",name:"showTitle",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"The CSS class.",name:"className",required:!1,type:{name:"string"}},children:{defaultValue:null,description:"The menu contents.",name:"children",required:!0,type:{name:"ReactNode"}}}}}catch{}export{s as F}; diff --git a/assets/FloatingMenu.stories-BLRowm5L.js b/assets/FloatingMenu.stories-Df4_7zLq.js similarity index 84% rename from assets/FloatingMenu.stories-BLRowm5L.js rename to assets/FloatingMenu.stories-Df4_7zLq.js index 514c2e94..913264fd 100644 --- a/assets/FloatingMenu.stories-BLRowm5L.js +++ b/assets/FloatingMenu.stories-Df4_7zLq.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DoxjgJx5.js";import{S as a}from"./user-profile-CB1AInEY.js";import{S as r,a as s,b as l}from"./leave-ZJppWO3C.js";import{F as n}from"./FloatingMenu-Eb22vTDs.js";import{M as t}from"./MenuItem-D2IOP9Gc.js";import{S as c}from"./Separator-6D3uspFz.js";import"./index-Cu9bd8lq.js";import"./index-C2KoGaFq.js";import"./useId-D5m2XpUu.js";import"./Text-BrcN_buA.js";import"./Typography-BcgMUEGb.js";import"./index-icJLasaE.js";import"./index-CZs6vfAl.js";import"./index-MTP5U5xA.js";import"./floating-ui.react-C9uQe9t5.js";const C={title:"Menu/FloatingMenu",component:n,argTypes:{},args:{}},m=i=>o.jsxs(n,{...i,title:"Settings",children:[o.jsx(t,{Icon:a,label:"Profile",onSelect:()=>{}}),o.jsx(t,{Icon:r,label:"Notificationsnotificationsnotifications",onSelect:()=>{}}),o.jsx(t,{Icon:s,label:"Feedback",onSelect:()=>{}}),o.jsx(c,{}),o.jsx(t,{kind:"critical",Icon:l,label:"Sign out",onSelect:()=>{}})]}),e=m.bind({});e.args={};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`args => +import{j as o}from"./jsx-runtime-DoxjgJx5.js";import{S as a}from"./user-profile-CB1AInEY.js";import{S as r,a as s,b as l}from"./leave-ZJppWO3C.js";import{F as n}from"./FloatingMenu-BxFYcaYT.js";import{M as t}from"./MenuItem-Dv7SCHqT.js";import{S as c}from"./Separator-6D3uspFz.js";import"./index-Cu9bd8lq.js";import"./index-C2KoGaFq.js";import"./useId-D5m2XpUu.js";import"./Text-DCibjNNg.js";import"./Typography-D-74lRMS.js";import"./index-icJLasaE.js";import"./index-CZs6vfAl.js";import"./index-MTP5U5xA.js";import"./floating-ui.react-C9uQe9t5.js";const C={title:"Menu/FloatingMenu",component:n,argTypes:{},args:{}},m=i=>o.jsxs(n,{...i,title:"Settings",children:[o.jsx(t,{Icon:a,label:"Profile",onSelect:()=>{}}),o.jsx(t,{Icon:r,label:"Notificationsnotificationsnotifications",onSelect:()=>{}}),o.jsx(t,{Icon:s,label:"Feedback",onSelect:()=>{}}),o.jsx(c,{}),o.jsx(t,{kind:"critical",Icon:l,label:"Sign out",onSelect:()=>{}})]}),e=m.bind({});e.args={};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`args => {}} /> {/* Extra long label to demonstrate word breaking */} {}} /> diff --git a/assets/Form.stories-CZwG15B1.js b/assets/Form.stories-DXf-futa.js similarity index 98% rename from assets/Form.stories-CZwG15B1.js rename to assets/Form.stories-DXf-futa.js index 9e4f2b7e..ab266d85 100644 --- a/assets/Form.stories-CZwG15B1.js +++ b/assets/Form.stories-DXf-futa.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DoxjgJx5.js";import"./Action-DyM_p9RG.js";import{a as j}from"./Password-D4Wdgeua.js";import{a as u}from"./Text-BTQEANK3.js";import{a as h}from"./MFA-C1Z6qH6F.js";import{a as g}from"./Checkbox-BH99jySy.js";import{a as x}from"./Radio-DdGWwLbw.js";import{a as f}from"./Toggle-CfFDn7Ov.js";import"./EditInPlace-CcsKLZdT.js";import{R as C,F as d,L as a,E as t,H as m,I as n,S as E}from"./Submit-LOGOVFq6.js";import"./index-Cu9bd8lq.js";import"./index-C2KoGaFq.js";import"./useId-D5m2XpUu.js";import"./index-8DUk24eR.js";import"./index-icJLasaE.js";import"./index-tFWdirwu.js";import"./index-CZs6vfAl.js";import"./index-MTP5U5xA.js";import"./Tooltip-CzfwCewK.js";import"./floating-ui.react-C9uQe9t5.js";import"./visibility-on-BrkRTjSX.js";import"./check-CXsFGzWm.js";import"./close-D55JIkKE.js";import"./error-YokBWoNX.js";import"./InlineSpinner-BZBYCXgP.js";import"./Button-DrAMl4OR.js";import"./UnstyledButton-CUaD5tB8.js";const I=({disabled:s,invalid:r,readOnly:o})=>e.jsxs(C,{children:[e.jsxs(d,{serverInvalid:r,name:"mxid",children:[e.jsx(a,{children:"Username"}),e.jsx(u,{disabled:s,readOnly:o,defaultValue:"Hello world!"}),r?e.jsx(t,{children:"Error message."}):e.jsx(m,{children:"Help message."})]}),e.jsxs(d,{serverInvalid:r,name:"password",children:[e.jsx(a,{children:"Password"}),e.jsx(j,{disabled:s,readOnly:o,defaultValue:"sup3rS3cur3p4ssw0rd!"}),r?e.jsx(t,{children:"Error message."}):e.jsx(m,{children:"Help message."})]}),e.jsxs(d,{serverInvalid:r,name:"mfa",children:[e.jsx(a,{children:"MFA"}),e.jsx(h,{disabled:s,readOnly:o,defaultValue:"123"}),r?e.jsx(t,{children:"Error message."}):e.jsx(m,{children:"Help message."})]}),e.jsxs(n,{serverInvalid:r,name:"remember",control:e.jsx(g,{disabled:s,readOnly:o,defaultChecked:!0}),children:[e.jsx(a,{children:"Remember me"}),r?e.jsx(t,{children:"Error message."}):e.jsx(m,{children:"Help message."})]}),e.jsxs(n,{serverInvalid:r,name:"radio",control:e.jsx(x,{disabled:s,readOnly:o,defaultChecked:!0}),children:[e.jsx(a,{children:"Option 1"}),r?e.jsx(t,{children:"Error message."}):e.jsx(m,{children:"Help message."})]}),e.jsxs(n,{serverInvalid:r,name:"radio",control:e.jsx(x,{disabled:s,readOnly:o,defaultChecked:!0}),children:[e.jsx(a,{children:"Option 2"}),r?e.jsx(t,{children:"Error message."}):e.jsx(m,{children:"Help message."})]}),e.jsxs(n,{serverInvalid:r,name:"toggle",control:e.jsx(f,{disabled:s,readOnly:o,defaultChecked:!0}),children:[e.jsx(a,{children:"Toggle"}),r?e.jsx(t,{children:"Error message."}):e.jsx(m,{children:"Help message."})]}),e.jsx(E,{disabled:s,children:"Submit"})]}),W={title:"Form/Kitchen Sink",component:I,argTypes:{disabled:{type:"boolean"},readOnly:{type:"boolean"},invalid:{type:"boolean"}},args:{disabled:!1,readOnly:!1,invalid:!1}},l={},c={args:{disabled:!0}},i={args:{readOnly:!0}},p={args:{invalid:!0}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:"{}",...l.parameters?.docs?.source}}};c.parameters={...c.parameters,docs:{...c.parameters?.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-DoxjgJx5.js";import"./Action-DyM_p9RG.js";import{a as j}from"./Password-D4Wdgeua.js";import{a as u}from"./Text-BTQEANK3.js";import{a as h}from"./MFA-C1Z6qH6F.js";import{a as g}from"./Checkbox-BH99jySy.js";import{a as x}from"./Radio-DdGWwLbw.js";import{a as f}from"./Toggle-CfFDn7Ov.js";import"./EditInPlace-CcsKLZdT.js";import{R as C,F as d,L as a,E as t,H as m,I as n,S as E}from"./Submit-KZDJKqs8.js";import"./index-Cu9bd8lq.js";import"./index-C2KoGaFq.js";import"./useId-D5m2XpUu.js";import"./index-8DUk24eR.js";import"./index-icJLasaE.js";import"./index-tFWdirwu.js";import"./index-CZs6vfAl.js";import"./index-MTP5U5xA.js";import"./Tooltip-CzfwCewK.js";import"./floating-ui.react-C9uQe9t5.js";import"./visibility-on-BrkRTjSX.js";import"./check-CXsFGzWm.js";import"./close-D55JIkKE.js";import"./error-YokBWoNX.js";import"./InlineSpinner-BZBYCXgP.js";import"./Button-DrAMl4OR.js";import"./UnstyledButton-CUaD5tB8.js";const I=({disabled:s,invalid:r,readOnly:o})=>e.jsxs(C,{children:[e.jsxs(d,{serverInvalid:r,name:"mxid",children:[e.jsx(a,{children:"Username"}),e.jsx(u,{disabled:s,readOnly:o,defaultValue:"Hello world!"}),r?e.jsx(t,{children:"Error message."}):e.jsx(m,{children:"Help message."})]}),e.jsxs(d,{serverInvalid:r,name:"password",children:[e.jsx(a,{children:"Password"}),e.jsx(j,{disabled:s,readOnly:o,defaultValue:"sup3rS3cur3p4ssw0rd!"}),r?e.jsx(t,{children:"Error message."}):e.jsx(m,{children:"Help message."})]}),e.jsxs(d,{serverInvalid:r,name:"mfa",children:[e.jsx(a,{children:"MFA"}),e.jsx(h,{disabled:s,readOnly:o,defaultValue:"123"}),r?e.jsx(t,{children:"Error message."}):e.jsx(m,{children:"Help message."})]}),e.jsxs(n,{serverInvalid:r,name:"remember",control:e.jsx(g,{disabled:s,readOnly:o,defaultChecked:!0}),children:[e.jsx(a,{children:"Remember me"}),r?e.jsx(t,{children:"Error message."}):e.jsx(m,{children:"Help message."})]}),e.jsxs(n,{serverInvalid:r,name:"radio",control:e.jsx(x,{disabled:s,readOnly:o,defaultChecked:!0}),children:[e.jsx(a,{children:"Option 1"}),r?e.jsx(t,{children:"Error message."}):e.jsx(m,{children:"Help message."})]}),e.jsxs(n,{serverInvalid:r,name:"radio",control:e.jsx(x,{disabled:s,readOnly:o,defaultChecked:!0}),children:[e.jsx(a,{children:"Option 2"}),r?e.jsx(t,{children:"Error message."}):e.jsx(m,{children:"Help message."})]}),e.jsxs(n,{serverInvalid:r,name:"toggle",control:e.jsx(f,{disabled:s,readOnly:o,defaultChecked:!0}),children:[e.jsx(a,{children:"Toggle"}),r?e.jsx(t,{children:"Error message."}):e.jsx(m,{children:"Help message."})]}),e.jsx(E,{disabled:s,children:"Submit"})]}),W={title:"Form/Kitchen Sink",component:I,argTypes:{disabled:{type:"boolean"},readOnly:{type:"boolean"},invalid:{type:"boolean"}},args:{disabled:!1,readOnly:!1,invalid:!1}},l={},c={args:{disabled:!0}},i={args:{readOnly:!0}},p={args:{invalid:!0}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:"{}",...l.parameters?.docs?.source}}};c.parameters={...c.parameters,docs:{...c.parameters?.docs,source:{originalSource:`{ args: { disabled: true } diff --git a/assets/Glass.stories-BJoOYATA.js b/assets/Glass.stories-D90RlBK7.js similarity index 93% rename from assets/Glass.stories-BJoOYATA.js rename to assets/Glass.stories-D90RlBK7.js index de5b3e7c..5187670b 100644 --- a/assets/Glass.stories-BJoOYATA.js +++ b/assets/Glass.stories-D90RlBK7.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DoxjgJx5.js";import{r as a}from"./index-Cu9bd8lq.js";import{c as i}from"./index-C2KoGaFq.js";import{T as c}from"./Text-BrcN_buA.js";import"./Typography-BcgMUEGb.js";const d="_glass_1x9g9_17",p={glass:d},n=a.forwardRef(({children:t,className:r,...o},l)=>e.jsx("div",{ref:l,className:i(r,p.glass),...o,children:a.Children.only(t)}));n.displayName="Glass";try{n.displayName="Glass",n.__docgenInfo={description:"Adds a border of glass around a child component.",displayName:"Glass",props:{children:{defaultValue:null,description:"The child component.",name:"children",required:!0,type:{name:"ReactNode"}},className:{defaultValue:null,description:"The CSS class.",name:"className",required:!1,type:{name:"string"}}}}}catch{}const h={title:"Glass",component:n,tags:["autodocs"],argTypes:{},args:{}},g=t=>e.jsx("div",{style:{background:"url('/images/__test__/kitten2.jpg')",backgroundSize:"cover",inlineSize:"fit-content",blockSize:"fit-content",padding:16},children:e.jsx(n,{style:{inlineSize:250,blockSize:150},...t,children:e.jsx("div",{style:{background:"var(--cpd-color-bg-canvas-default)",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(c,{style:{textAlign:"center"},children:"Your content here"})})})}),s=g.bind({});s.args={};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`args => +import{j as e}from"./jsx-runtime-DoxjgJx5.js";import{r as a}from"./index-Cu9bd8lq.js";import{c as i}from"./index-C2KoGaFq.js";import{T as c}from"./Text-DCibjNNg.js";import"./Typography-D-74lRMS.js";const d="_glass_1x9g9_17",p={glass:d},n=a.forwardRef(({children:t,className:r,...o},l)=>e.jsx("div",{ref:l,className:i(r,p.glass),...o,children:a.Children.only(t)}));n.displayName="Glass";try{n.displayName="Glass",n.__docgenInfo={description:"Adds a border of glass around a child component.",displayName:"Glass",props:{children:{defaultValue:null,description:"The child component.",name:"children",required:!0,type:{name:"ReactNode"}},className:{defaultValue:null,description:"The CSS class.",name:"className",required:!1,type:{name:"string"}}}}}catch{}const h={title:"Glass",component:n,tags:["autodocs"],argTypes:{},args:{}},g=t=>e.jsx("div",{style:{background:"url('/images/__test__/kitten2.jpg')",backgroundSize:"cover",inlineSize:"fit-content",blockSize:"fit-content",padding:16},children:e.jsx(n,{style:{inlineSize:250,blockSize:150},...t,children:e.jsx("div",{style:{background:"var(--cpd-color-bg-canvas-default)",display:"flex",alignItems:"center",justifyContent:"center"},children:e.jsx(c,{style:{textAlign:"center"},children:"Your content here"})})})}),s=g.bind({});s.args={};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`args => // Use an image as the background to really show off the glass effect
t.jsx(m,{as:e,type:"heading",...g,children:n}),s=({children:e,...n})=>t.jsx(r,{as:"h1",weight:"semibold",size:"xl",...n,children:e}),a=({children:e,...n})=>t.jsx(r,{as:"h2",weight:"semibold",size:"lg",...n,children:e}),i=({children:e,...n})=>t.jsx(r,{as:"h3",weight:"semibold",size:"md",...n,children:e}),d=({children:e,...n})=>t.jsx(r,{as:"h4",weight:"semibold",size:"sm",...n,children:e}),p=({children:e,...n})=>t.jsx(l,{as:"h5",weight:"semibold",size:"lg",...n,children:e}),c=({children:e,...n})=>t.jsx(l,{as:"h6",weight:"semibold",size:"md",...n,children:e});try{r.displayName="Heading",r.__docgenInfo={description:"A heading component.",displayName:"Heading",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'}]}}}}}catch{}try{s.displayName="H1",s.__docgenInfo={description:"A Heading level-1 styled component. Underlying HTML element can be changed\nusign the `as` property.",displayName:"H1",props:{}}}catch{}try{a.displayName="H2",a.__docgenInfo={description:"A Heading level-2 styled component. Underlying HTML element can be changed\nusign the `as` property.",displayName:"H2",props:{}}}catch{}try{i.displayName="H3",i.__docgenInfo={description:"A Heading level-3 styled component. Underlying HTML element can be changed\nusign the `as` property.",displayName:"H3",props:{}}}catch{}try{d.displayName="H4",d.__docgenInfo={description:"A Heading level-4 styled component. Underlying HTML element can be changed\nusign the `as` property.",displayName:"H4",props:{}}}catch{}try{p.displayName="H5",p.__docgenInfo={description:"A Heading level-5 styled component. Underlying HTML element can be changed\nusign the `as` property.",displayName:"H5",props:{}}}catch{}try{c.displayName="H6",c.__docgenInfo={description:"A Heading level-6 styled component. Underlying HTML element can be changed\nusign the `as` property.",displayName:"H6",props:{}}}catch{}const b={title:"Typography",component:r,argTypes:{size:{options:["sm","md","lg","xl"],control:{type:"inline-radio"}},weight:{options:["regular","medium","semibold"],control:{type:"inline-radio"}}}},_=e=>t.jsx(r,{size:e.size,weight:e.weight,children:"The quick brown fox jumps over the lazy dog"}),o=_.bind({});o.args={size:"md",weight:"regular"};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`args => +import{j as t}from"./jsx-runtime-DoxjgJx5.js";import{T as m}from"./Typography-D-74lRMS.js";import{T as l}from"./Text-DCibjNNg.js";import"./index-Cu9bd8lq.js";import"./index-C2KoGaFq.js";const r=({as:e="h1",children:n,...g})=>t.jsx(m,{as:e,type:"heading",...g,children:n}),s=({children:e,...n})=>t.jsx(r,{as:"h1",weight:"semibold",size:"xl",...n,children:e}),a=({children:e,...n})=>t.jsx(r,{as:"h2",weight:"semibold",size:"lg",...n,children:e}),i=({children:e,...n})=>t.jsx(r,{as:"h3",weight:"semibold",size:"md",...n,children:e}),d=({children:e,...n})=>t.jsx(r,{as:"h4",weight:"semibold",size:"sm",...n,children:e}),p=({children:e,...n})=>t.jsx(l,{as:"h5",weight:"semibold",size:"lg",...n,children:e}),c=({children:e,...n})=>t.jsx(l,{as:"h6",weight:"semibold",size:"md",...n,children:e});try{r.displayName="Heading",r.__docgenInfo={description:"A heading component.",displayName:"Heading",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'},{value:'"md"'},{value:'"xl"'}]}}}}}catch{}try{s.displayName="H1",s.__docgenInfo={description:"A Heading level-1 styled component. Underlying HTML element can be changed\nusign the `as` property.",displayName:"H1",props:{}}}catch{}try{a.displayName="H2",a.__docgenInfo={description:"A Heading level-2 styled component. Underlying HTML element can be changed\nusign the `as` property.",displayName:"H2",props:{}}}catch{}try{i.displayName="H3",i.__docgenInfo={description:"A Heading level-3 styled component. Underlying HTML element can be changed\nusign the `as` property.",displayName:"H3",props:{}}}catch{}try{d.displayName="H4",d.__docgenInfo={description:"A Heading level-4 styled component. Underlying HTML element can be changed\nusign the `as` property.",displayName:"H4",props:{}}}catch{}try{p.displayName="H5",p.__docgenInfo={description:"A Heading level-5 styled component. Underlying HTML element can be changed\nusign the `as` property.",displayName:"H5",props:{}}}catch{}try{c.displayName="H6",c.__docgenInfo={description:"A Heading level-6 styled component. Underlying HTML element can be changed\nusign the `as` property.",displayName:"H6",props:{}}}catch{}const b={title:"Typography",component:r,argTypes:{size:{options:["sm","md","lg","xl"],control:{type:"inline-radio"}},weight:{options:["regular","medium","semibold"],control:{type:"inline-radio"}}}},_=e=>t.jsx(r,{size:e.size,weight:e.weight,children:"The quick brown fox jumps over the lazy dog"}),o=_.bind({});o.args={size:"md",weight:"regular"};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`args => The quick brown fox jumps over the lazy dog `,...o.parameters?.docs?.source}}};const z=["Heading"];export{o as Heading,z as __namedExportsOrder,b as default}; diff --git a/assets/Link.stories-DAxydskD.js b/assets/Link.stories-DaewFxQ9.js similarity index 88% rename from assets/Link.stories-DAxydskD.js rename to assets/Link.stories-DaewFxQ9.js index 6d7184eb..af2f4d82 100644 --- a/assets/Link.stories-DAxydskD.js +++ b/assets/Link.stories-DaewFxQ9.js @@ -1 +1 @@ -import{j as n}from"./jsx-runtime-DoxjgJx5.js";import{r as l}from"./index-Cu9bd8lq.js";import{c as p}from"./index-C2KoGaFq.js";const m="_link_1mzip_17",d={link:m},r=l.forwardRef(function({children:s,className:o,kind:t="primary",...i},c){return n.jsx("a",{ref:c,...i,rel:"noreferrer noopener",className:p(d.link,o),"data-kind":t,children:s})});try{r.displayName="Link",r.__docgenInfo={description:"A link component.",displayName:"Link",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},kind:{defaultValue:{value:"primary"},description:"The type of link.",name:"kind",required:!1,type:{name:"enum",value:[{value:'"critical"'},{value:'"primary"'}]}}}}}catch{}const y={title:"Link",component:r,tags:["autodocs"],argTypes:{},args:{}},u=a=>n.jsx(r,{...a,children:"Text link"}),e=u.bind({});e.args={};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:"args => Text link",...e.parameters?.docs?.source}}};const g=["Round"];export{e as Round,g as __namedExportsOrder,y as default}; +import{j as n}from"./jsx-runtime-DoxjgJx5.js";import{r as l}from"./index-Cu9bd8lq.js";import{c as p}from"./index-C2KoGaFq.js";const m="_link_1mzip_17",d={link:m},r=l.forwardRef(function({children:s,className:o,kind:t="primary",...i},c){return n.jsx("a",{ref:c,...i,rel:"noreferrer noopener",className:p(d.link,o),"data-kind":t,children:s})});try{r.displayName="Link",r.__docgenInfo={description:"A link component.",displayName:"Link",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},kind:{defaultValue:{value:"primary"},description:"The type of link.",name:"kind",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"critical"'}]}}}}}catch{}const y={title:"Link",component:r,tags:["autodocs"],argTypes:{},args:{}},u=a=>n.jsx(r,{...a,children:"Text link"}),e=u.bind({});e.args={};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:"args => Text link",...e.parameters?.docs?.source}}};const g=["Round"];export{e as Round,g as __namedExportsOrder,y as default}; diff --git a/assets/Menu.stories-BwLLVcOL.js b/assets/Menu.stories-8XUpxvNI.js similarity index 95% rename from assets/Menu.stories-BwLLVcOL.js rename to assets/Menu.stories-8XUpxvNI.js index 3ef0026e..3f94de22 100644 --- a/assets/Menu.stories-BwLLVcOL.js +++ b/assets/Menu.stories-8XUpxvNI.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-DoxjgJx5.js";import{r as i}from"./index-Cu9bd8lq.js";import{S as D}from"./user-profile-CB1AInEY.js";import{S as O,a as T,b as j}from"./leave-ZJppWO3C.js";import{_ as m,b as P}from"./index-icJLasaE.js";import{$ as E,b as I,a as w}from"./index-tFWdirwu.js";import{a as N}from"./index-B7y3mIek.js";import{$ as R}from"./index-CZs6vfAl.js";import{$ as _,a as k,e as q,b as A,c as F,d as V,J as g}from"./index-DPxQQZIb.js";import{F as B}from"./FloatingMenu-Eb22vTDs.js";import{c as W}from"./index-C2KoGaFq.js";import{d as U,D as K,g as L}from"./DrawerMenu-BJRINQC3.js";import{a as G,M as x}from"./MenuItem-D2IOP9Gc.js";import{S as J}from"./Separator-6D3uspFz.js";import{B as z}from"./Button-DrAMl4OR.js";import"./index-MTP5U5xA.js";import"./useId-D5m2XpUu.js";import"./Text-BrcN_buA.js";import"./Typography-BcgMUEGb.js";import"./floating-ui.react-C9uQe9t5.js";import"./UnstyledButton-CUaD5tB8.js";const S="DropdownMenu",[H,Te]=E(S,[_]),$=_(),[Q,y]=H(S),X=e=>{const{__scopeDropdownMenu:r,children:a,dir:t,open:c,defaultOpen:s,onOpenChange:d,modal:o=!0}=e,l=$(r),u=i.useRef(null),[f=!1,p]=N({prop:c,defaultProp:s,onChange:d});return i.createElement(Q,{scope:r,triggerId:I(),triggerRef:u,contentId:I(),open:f,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(v=>!v),[p]),modal:o},i.createElement(k,m({},l,{open:f,onOpenChange:p,dir:t,modal:o}),a))},Y="DropdownMenuTrigger",Z=i.forwardRef((e,r)=>{const{__scopeDropdownMenu:a,disabled:t=!1,...c}=e,s=y(Y,a),d=$(a);return i.createElement(q,m({asChild:!0},d),i.createElement(R.button,m({type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":t?"":void 0,disabled:t},c,{ref:P(r,s.triggerRef),onPointerDown:w(e.onPointerDown,o=>{!t&&o.button===0&&o.ctrlKey===!1&&(s.onOpenToggle(),s.open||o.preventDefault())}),onKeyDown:w(e.onKeyDown,o=>{t||(["Enter"," "].includes(o.key)&&s.onOpenToggle(),o.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(o.key)&&o.preventDefault())})})))}),ee=e=>{const{__scopeDropdownMenu:r,...a}=e,t=$(r);return i.createElement(A,m({},t,a))},ne="DropdownMenuContent",te=i.forwardRef((e,r)=>{const{__scopeDropdownMenu:a,...t}=e,c=y(ne,a),s=$(a),d=i.useRef(!1);return i.createElement(F,m({id:c.contentId,"aria-labelledby":c.triggerId},s,t,{ref:r,onCloseAutoFocus:w(e.onCloseAutoFocus,o=>{var l;d.current||(l=c.triggerRef.current)===null||l===void 0||l.focus(),d.current=!1,o.preventDefault()}),onInteractOutside:w(e.onInteractOutside,o=>{const l=o.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,f=l.button===2||u;(!c.modal||f)&&(d.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),oe=i.forwardRef((e,r)=>{const{__scopeDropdownMenu:a,...t}=e,c=$(a);return i.createElement(V,m({},c,t,{ref:r}))}),re=X,ae=Z,se=ee,ie=te,ce=({onSelect:e,children:r})=>n.jsx(oe,{onSelect:e??void 0,asChild:!0,children:r}),M=({title:e,showTitle:r=!0,open:a,onOpenChange:t,trigger:c,children:s,side:d="bottom",align:o="center"})=>{const l=L(),u=l==="android"||l==="ios",f=i.useMemo(()=>({MenuItemWrapper:u?null:ce,onOpenChange:t}),[t]),p=n.jsx(G.Provider,{value:f,children:s});return u?n.jsxs(g.Root,{open:a,onOpenChange:t,children:[n.jsx(g.Trigger,{asChild:!0,children:c}),n.jsxs(g.Portal,{children:[n.jsx(g.Overlay,{className:W(U.bg)}),n.jsx(g.Content,{asChild:!0,children:n.jsx(K,{title:e,children:p})})]})]}):n.jsxs(re,{open:a,onOpenChange:t,children:[n.jsx(ae,{asChild:!0,children:c}),n.jsx(se,{children:n.jsx(ie,{asChild:!0,side:d,align:o,sideOffset:8,onCloseAutoFocus:v=>{v.preventDefault()},children:n.jsx(B,{title:e,showTitle:r,children:p})})})]})};try{M.displayName="Menu",M.__docgenInfo={description:"A menu opened by pressing a button.",displayName:"Menu",props:{title:{defaultValue:null,description:"The menu title. This can be hidden with `showTitle={false}` in which case it will only\nbe a label for screen readers.",name:"title",required:!0,type:{name:"string"}},showTitle:{defaultValue:{value:"true"},description:"Controls whether the title is displayed (see `title` prop). Titles are only displayed on\nweb: on mobile, this parameter is ignored.",name:"showTitle",required:!1,type:{name:"boolean"}},open:{defaultValue:null,description:"Whether the menu is open.",name:"open",required:!0,type:{name:"boolean"}},onOpenChange:{defaultValue:null,description:`Event handler called when the open state of the menu changes. This includes +import{j as n}from"./jsx-runtime-DoxjgJx5.js";import{r as i}from"./index-Cu9bd8lq.js";import{S as D}from"./user-profile-CB1AInEY.js";import{S as O,a as T,b as j}from"./leave-ZJppWO3C.js";import{_ as m,b as P}from"./index-icJLasaE.js";import{$ as E,b as I,a as w}from"./index-tFWdirwu.js";import{a as N}from"./index-B7y3mIek.js";import{$ as R}from"./index-CZs6vfAl.js";import{$ as _,a as k,e as q,b as A,c as F,d as V,J as g}from"./index-DPxQQZIb.js";import{F as B}from"./FloatingMenu-BxFYcaYT.js";import{c as W}from"./index-C2KoGaFq.js";import{d as U,D as K,g as L}from"./DrawerMenu-BJRINQC3.js";import{a as G,M as x}from"./MenuItem-Dv7SCHqT.js";import{S as J}from"./Separator-6D3uspFz.js";import{B as z}from"./Button-DrAMl4OR.js";import"./index-MTP5U5xA.js";import"./useId-D5m2XpUu.js";import"./Text-DCibjNNg.js";import"./Typography-D-74lRMS.js";import"./floating-ui.react-C9uQe9t5.js";import"./UnstyledButton-CUaD5tB8.js";const S="DropdownMenu",[H,Te]=E(S,[_]),$=_(),[Q,y]=H(S),X=e=>{const{__scopeDropdownMenu:r,children:a,dir:t,open:c,defaultOpen:s,onOpenChange:d,modal:o=!0}=e,l=$(r),u=i.useRef(null),[f=!1,p]=N({prop:c,defaultProp:s,onChange:d});return i.createElement(Q,{scope:r,triggerId:I(),triggerRef:u,contentId:I(),open:f,onOpenChange:p,onOpenToggle:i.useCallback(()=>p(v=>!v),[p]),modal:o},i.createElement(k,m({},l,{open:f,onOpenChange:p,dir:t,modal:o}),a))},Y="DropdownMenuTrigger",Z=i.forwardRef((e,r)=>{const{__scopeDropdownMenu:a,disabled:t=!1,...c}=e,s=y(Y,a),d=$(a);return i.createElement(q,m({asChild:!0},d),i.createElement(R.button,m({type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":t?"":void 0,disabled:t},c,{ref:P(r,s.triggerRef),onPointerDown:w(e.onPointerDown,o=>{!t&&o.button===0&&o.ctrlKey===!1&&(s.onOpenToggle(),s.open||o.preventDefault())}),onKeyDown:w(e.onKeyDown,o=>{t||(["Enter"," "].includes(o.key)&&s.onOpenToggle(),o.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(o.key)&&o.preventDefault())})})))}),ee=e=>{const{__scopeDropdownMenu:r,...a}=e,t=$(r);return i.createElement(A,m({},t,a))},ne="DropdownMenuContent",te=i.forwardRef((e,r)=>{const{__scopeDropdownMenu:a,...t}=e,c=y(ne,a),s=$(a),d=i.useRef(!1);return i.createElement(F,m({id:c.contentId,"aria-labelledby":c.triggerId},s,t,{ref:r,onCloseAutoFocus:w(e.onCloseAutoFocus,o=>{var l;d.current||(l=c.triggerRef.current)===null||l===void 0||l.focus(),d.current=!1,o.preventDefault()}),onInteractOutside:w(e.onInteractOutside,o=>{const l=o.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,f=l.button===2||u;(!c.modal||f)&&(d.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),oe=i.forwardRef((e,r)=>{const{__scopeDropdownMenu:a,...t}=e,c=$(a);return i.createElement(V,m({},c,t,{ref:r}))}),re=X,ae=Z,se=ee,ie=te,ce=({onSelect:e,children:r})=>n.jsx(oe,{onSelect:e??void 0,asChild:!0,children:r}),M=({title:e,showTitle:r=!0,open:a,onOpenChange:t,trigger:c,children:s,side:d="bottom",align:o="center"})=>{const l=L(),u=l==="android"||l==="ios",f=i.useMemo(()=>({MenuItemWrapper:u?null:ce,onOpenChange:t}),[t]),p=n.jsx(G.Provider,{value:f,children:s});return u?n.jsxs(g.Root,{open:a,onOpenChange:t,children:[n.jsx(g.Trigger,{asChild:!0,children:c}),n.jsxs(g.Portal,{children:[n.jsx(g.Overlay,{className:W(U.bg)}),n.jsx(g.Content,{asChild:!0,children:n.jsx(K,{title:e,children:p})})]})]}):n.jsxs(re,{open:a,onOpenChange:t,children:[n.jsx(ae,{asChild:!0,children:c}),n.jsx(se,{children:n.jsx(ie,{asChild:!0,side:d,align:o,sideOffset:8,onCloseAutoFocus:v=>{v.preventDefault()},children:n.jsx(B,{title:e,showTitle:r,children:p})})})]})};try{M.displayName="Menu",M.__docgenInfo={description:"A menu opened by pressing a button.",displayName:"Menu",props:{title:{defaultValue:null,description:"The menu title. This can be hidden with `showTitle={false}` in which case it will only\nbe a label for screen readers.",name:"title",required:!0,type:{name:"string"}},showTitle:{defaultValue:{value:"true"},description:"Controls whether the title is displayed (see `title` prop). Titles are only displayed on\nweb: on mobile, this parameter is ignored.",name:"showTitle",required:!1,type:{name:"boolean"}},open:{defaultValue:null,description:"Whether the menu is open.",name:"open",required:!0,type:{name:"boolean"}},onOpenChange:{defaultValue:null,description:`Event handler called when the open state of the menu changes. This includes anything like clicking the trigger, selecting a menu item, or dismissing the menu with the mouse or keyboard.`,name:"onOpenChange",required:!0,type:{name:"(open: boolean) => void"}},trigger:{defaultValue:null,description:`The button that opens the menu. This must be a component that accepts a ref and spreads props. diff --git a/assets/MenuItem-D2IOP9Gc.js b/assets/MenuItem-Dv7SCHqT.js similarity index 93% rename from assets/MenuItem-D2IOP9Gc.js rename to assets/MenuItem-Dv7SCHqT.js index 5a69bbac..470fff05 100644 --- a/assets/MenuItem-D2IOP9Gc.js +++ b/assets/MenuItem-Dv7SCHqT.js @@ -1,4 +1,4 @@ -import{j as n}from"./jsx-runtime-DoxjgJx5.js";import{c as N}from"./index-C2KoGaFq.js";import{r as l}from"./index-Cu9bd8lq.js";import{T as M}from"./Text-BrcN_buA.js";import{$ as I}from"./index-icJLasaE.js";const u=l.createContext(null);try{u.displayName="MenuContext",u.__docgenInfo={description:`A React context providing information about the menu in which a given -component resides.`,displayName:"MenuContext",props:{}}}catch{}const V="_item_1gwvj_17",E="_interactive_1gwvj_36",T="_icon_1gwvj_44",k="_label_1gwvj_53",q="_disabled_1gwvj_119",e={item:V,interactive:E,"no-label":"_no-label_1gwvj_40",icon:T,label:k,"nav-hint":"_nav-hint_1gwvj_60",disabled:q},R=a=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",className:"cpd-icon",...a,children:n.jsx("path",{d:"M8.7 17.3a.948.948 0 0 1-.275-.7.95.95 0 0 1 .275-.7l3.9-3.9-3.9-3.9a.948.948 0 0 1-.275-.7.95.95 0 0 1 .275-.7.948.948 0 0 1 .7-.275.95.95 0 0 1 .7.275l4.6 4.6c.1.1.17.208.213.325.041.117.062.242.062.375s-.02.258-.063.375a.876.876 0 0 1-.212.325l-4.6 4.6a.948.948 0 0 1-.7.275.948.948 0 0 1-.7-.275Z"})}),p=({as:a,className:h,Icon:o,label:s,labelProps:v,onSelect:t,kind:b="primary",children:f,onClick:_,disabled:c,...g})=>{const r=a??"button",i=l.useContext(u),y=l.useCallback(C=>{if(_?.(C),t!==null&&i?.MenuItemWrapper==null){const d=new CustomEvent("menu.itemSelect",{bubbles:!0,cancelable:!0});t(d),d.defaultPrevented||i?.onOpenChange(!1)}},[i,t]),x=l.isValidElement(o),w=o,j=o,m=n.jsxs(r,{role:"menuitem",...g,className:N(h,e.item,{[e.interactive]:t!==null,[e["no-label"]]:s===null,[e.disabled]:c}),"data-kind":b,onClick:y,disabled:c,children:[x?n.jsx(I,{className:e.icon,children:w}):n.jsx(j,{width:24,height:24,className:e.icon,"aria-hidden":!0}),s!==null&&n.jsx(M,{className:e.label,size:"md",weight:"medium",as:"span",...v,children:s}),(r==="button"||r==="a")&&n.jsx(R,{width:8,height:24,className:e["nav-hint"],"aria-hidden":!0,viewBox:"8 0 8 24"}),f]});return i?.MenuItemWrapper==null||t===null?m:n.jsx(i.MenuItemWrapper,{onSelect:t,children:m})};try{p.displayName="MenuItem",p.__docgenInfo={description:"An item within a menu, acting either as a navigation button, or simply a\ncontainer for other interactive elements.\nMust be used within a compound Menu or other `menu` or `menubar` aria role subtree.",displayName:"MenuItem",props:{as:{defaultValue:{value:"button"},description:"The element type of this menu item.",name:"as",required:!1,type:{name:"enum",value:[{value:'"button"'},{value:'"a"'},{value:'"div"'},{value:'"label"'}]}},className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},Icon:{defaultValue:null,description:"The icon to show on this menu item.\nWhen `Icon` is a ReactNode, it should spread the props",name:"Icon",required:!0,type:{name:"ReactNode | ComponentType>"}},label:{defaultValue:null,description:"The label to show on this menu item.",name:"label",required:!0,type:{name:"string | null"}},labelProps:{defaultValue:null,description:"Additional properties to pass to the Text label component.",name:"labelProps",required:!1,type:{name:'Omit; type?: "heading" | "body"; weight?: "medium" | "bold" | "regular" | "semibold" | undefined; size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined; className?: string | undefined; } & Omit<...> & { ...; }, "type"> & { ...; }, "ref"> | undefined'}},onSelect:{defaultValue:null,description:`Event callback for when the item is selected via mouse, touch, or keyboard. +import{j as n}from"./jsx-runtime-DoxjgJx5.js";import{c as N}from"./index-C2KoGaFq.js";import{r as l}from"./index-Cu9bd8lq.js";import{T as M}from"./Text-DCibjNNg.js";import{$ as I}from"./index-icJLasaE.js";const u=l.createContext(null);try{u.displayName="MenuContext",u.__docgenInfo={description:`A React context providing information about the menu in which a given +component resides.`,displayName:"MenuContext",props:{}}}catch{}const V="_item_1gwvj_17",E="_interactive_1gwvj_36",T="_icon_1gwvj_44",k="_label_1gwvj_53",q="_disabled_1gwvj_119",e={item:V,interactive:E,"no-label":"_no-label_1gwvj_40",icon:T,label:k,"nav-hint":"_nav-hint_1gwvj_60",disabled:q},R=a=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",className:"cpd-icon",...a,children:n.jsx("path",{d:"M8.7 17.3a.948.948 0 0 1-.275-.7.95.95 0 0 1 .275-.7l3.9-3.9-3.9-3.9a.948.948 0 0 1-.275-.7.95.95 0 0 1 .275-.7.948.948 0 0 1 .7-.275.95.95 0 0 1 .7.275l4.6 4.6c.1.1.17.208.213.325.041.117.062.242.062.375s-.02.258-.063.375a.876.876 0 0 1-.212.325l-4.6 4.6a.948.948 0 0 1-.7.275.948.948 0 0 1-.7-.275Z"})}),p=({as:a,className:h,Icon:o,label:s,labelProps:v,onSelect:t,kind:b="primary",children:f,onClick:_,disabled:c,...g})=>{const r=a??"button",i=l.useContext(u),y=l.useCallback(C=>{if(_?.(C),t!==null&&i?.MenuItemWrapper==null){const d=new CustomEvent("menu.itemSelect",{bubbles:!0,cancelable:!0});t(d),d.defaultPrevented||i?.onOpenChange(!1)}},[i,t]),x=l.isValidElement(o),w=o,j=o,m=n.jsxs(r,{role:"menuitem",...g,className:N(h,e.item,{[e.interactive]:t!==null,[e["no-label"]]:s===null,[e.disabled]:c}),"data-kind":b,onClick:y,disabled:c,children:[x?n.jsx(I,{className:e.icon,children:w}):n.jsx(j,{width:24,height:24,className:e.icon,"aria-hidden":!0}),s!==null&&n.jsx(M,{className:e.label,size:"md",weight:"medium",as:"span",...v,children:s}),(r==="button"||r==="a")&&n.jsx(R,{width:8,height:24,className:e["nav-hint"],"aria-hidden":!0,viewBox:"8 0 8 24"}),f]});return i?.MenuItemWrapper==null||t===null?m:n.jsx(i.MenuItemWrapper,{onSelect:t,children:m})};try{p.displayName="MenuItem",p.__docgenInfo={description:"An item within a menu, acting either as a navigation button, or simply a\ncontainer for other interactive elements.\nMust be used within a compound Menu or other `menu` or `menubar` aria role subtree.",displayName:"MenuItem",props:{as:{defaultValue:{value:"button"},description:"The element type of this menu item.",name:"as",required:!1,type:{name:"enum",value:[{value:'"button"'},{value:'"a"'},{value:'"div"'},{value:'"label"'}]}},className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},Icon:{defaultValue:null,description:"The icon to show on this menu item.\nWhen `Icon` is a ReactNode, it should spread the props",name:"Icon",required:!0,type:{name:"ReactNode | ComponentType>"}},label:{defaultValue:null,description:"The label to show on this menu item.",name:"label",required:!0,type:{name:"string | null"}},labelProps:{defaultValue:null,description:"Additional properties to pass to the Text label component.",name:"labelProps",required:!1,type:{name:'Omit; type?: "heading" | "body"; weight?: "medium" | "bold" | "regular" | "semibold" | undefined; size?: "sm" | "lg" | "xs" | "md" | "xl" | undefined; className?: string | undefined; } & Omit<...> & { ...; }, "type"> & { ...; }, "ref"> | undefined'}},onSelect:{defaultValue:null,description:`Event callback for when the item is selected via mouse, touch, or keyboard. Calling event.preventDefault in this handler will prevent the menu from -being dismissed.`,name:"onSelect",required:!0,type:{name:"((e: Event) => void) | null"}},kind:{defaultValue:{value:"primary"},description:"The color variant of the menu item.",name:"kind",required:!1,type:{name:"enum",value:[{value:'"critical"'},{value:'"primary"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}}}}}catch{}export{p as M,u as a}; +being dismissed.`,name:"onSelect",required:!0,type:{name:"((e: Event) => void) | null"}},kind:{defaultValue:{value:"primary"},description:"The color variant of the menu item.",name:"kind",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"critical"'}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}}}}}catch{}export{p as M,u as a}; diff --git a/assets/MenuItem.stories-Beletagi.js b/assets/MenuItem.stories-BpMqnH62.js similarity index 96% rename from assets/MenuItem.stories-Beletagi.js rename to assets/MenuItem.stories-BpMqnH62.js index a26df657..79c2245b 100644 --- a/assets/MenuItem.stories-Beletagi.js +++ b/assets/MenuItem.stories-BpMqnH62.js @@ -1,4 +1,4 @@ -import{j as e}from"./jsx-runtime-DoxjgJx5.js";import{S as g}from"./extensions-Crvwpr_j.js";import{S as p}from"./chat-Ce9sY079.js";import"./index-Cu9bd8lq.js";import{M as d}from"./MenuItem-D2IOP9Gc.js";import{T as u}from"./Text-BrcN_buA.js";import"./index-C2KoGaFq.js";import"./index-icJLasaE.js";import"./Typography-BcgMUEGb.js";const h=r=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",className:"cpd-icon",...r,children:[e.jsx("path",{d:"M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-2 0a2 2 0 1 0-4 0 2 2 0 0 0 4 0Z"}),e.jsx("path",{d:"M11.312 2h1.376A2.312 2.312 0 0 1 15 4.312v.247l.002.003c.01.014.031.033.064.047.03.013.056.013.07.01h.002l.177-.177a2.312 2.312 0 0 1 3.27 0l.973.974a2.312 2.312 0 0 1 0 3.269l-.177.177v.003a.134.134 0 0 0 .01.07.153.153 0 0 0 .047.063l.003.002h.247A2.312 2.312 0 0 1 22 11.312v1.376A2.312 2.312 0 0 1 19.688 15h-.247l-.003.002a.152.152 0 0 0-.047.064.134.134 0 0 0-.01.07v.002l.177.177a2.312 2.312 0 0 1 0 3.27l-.974.973a2.312 2.312 0 0 1-3.269 0l-.177-.177h-.003a.134.134 0 0 0-.07.01.152.152 0 0 0-.063.047l-.002.003v.247A2.312 2.312 0 0 1 12.688 22h-1.376A2.312 2.312 0 0 1 9 19.688v-.247l-.002-.003a.153.153 0 0 0-.064-.047.134.134 0 0 0-.07-.01h-.002l-.177.177a2.312 2.312 0 0 1-3.27 0l-.973-.974a2.312 2.312 0 0 1 0-3.269l.177-.177v-.003a.135.135 0 0 0-.01-.07.152.152 0 0 0-.047-.063L4.559 15h-.247A2.312 2.312 0 0 1 2 12.688v-1.376A2.312 2.312 0 0 1 4.312 9h.247l.003-.002a.153.153 0 0 0 .047-.064.135.135 0 0 0 .01-.07v-.002l-.177-.177a2.312 2.312 0 0 1 0-3.27l.974-.973a2.312 2.312 0 0 1 3.269 0l.177.177h.003a.135.135 0 0 0 .07-.01.153.153 0 0 0 .063-.047L9 4.559v-.247A2.312 2.312 0 0 1 11.312 2ZM11 4.312v.257c0 .893-.59 1.593-1.299 1.887-.716.297-1.622.21-2.248-.418l-.182-.182a.312.312 0 0 0-.441 0l-.974.974a.312.312 0 0 0 0 .44l.182.183c.627.626.715 1.531.418 2.248C6.162 10.41 5.462 11 4.569 11h-.257a.312.312 0 0 0-.312.312v1.376c0 .172.14.312.312.312h.257c.893 0 1.593.59 1.887 1.299.297.716.21 1.622-.418 2.248l-.182.182a.312.312 0 0 0 0 .441l.974.973a.31.31 0 0 0 .44 0l.183-.181c.626-.627 1.532-.715 2.248-.418.709.294 1.299.994 1.299 1.887v.257c0 .172.14.312.312.312h1.376c.172 0 .312-.14.312-.312v-.257c0-.893.59-1.593 1.299-1.887.716-.297 1.622-.21 2.248.418l.182.181c.122.122.32.122.441 0l.973-.973a.312.312 0 0 0 0-.44l-.181-.183c-.627-.627-.715-1.532-.418-2.248.294-.709.994-1.299 1.887-1.299h.257c.172 0 .312-.14.312-.312v-1.376a.312.312 0 0 0-.312-.312h-.257c-.893 0-1.593-.59-1.887-1.299-.297-.717-.21-1.622.418-2.248l.181-.182a.312.312 0 0 0 0-.441l-.973-.974a.312.312 0 0 0-.44 0l-.183.182c-.627.627-1.532.715-2.248.418C13.59 6.162 13 5.462 13 4.569v-.257A.312.312 0 0 0 12.688 4h-1.376a.312.312 0 0 0-.312.312Z"})]}),w={title:"Menu/MenuItem",component:d,tags:["autodocs"],argTypes:{onClick:{action:"clicked!"}},args:{label:"Menu item",children:e.jsx(u,{as:"span",size:"sm",children:"99"}),Icon:p},decorators:[r=>e.jsx("div",{style:{width:300},children:e.jsx(r,{})})]},n={render:()=>e.jsxs("div",{style:{width:300},children:[e.jsx(d,{Icon:p,label:"First item",onSelect:()=>{},children:e.jsx(u,{as:"span",size:"sm",children:"99"})}),e.jsx(d,{Icon:g,label:"Second item with a name that's quite long",onSelect:()=>{}}),e.jsx(d,{Icon:h,label:null,onSelect:()=>{},children:e.jsx(u,{as:"span",size:"sm",children:"Third item without a label"})})]})},a={args:{kind:"primary"}},s={args:{kind:"critical"}},o={args:{...a.args,disabled:!0}},t={args:{...s.args,disabled:!0}};function b(r){return e.jsx("div",{style:{height:24,width:48,backgroundColor:"teal"},...r})}const i={args:{...a.args,Icon:e.jsx(b,{})}},l={args:{...a.args,label:void 0}},c={args:{...a.args,label:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."}},m={args:{...a.args,label:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, empor incididunt ut labore et dolore magna aliqua.",children:e.jsx(u,{as:"span",size:"sm",children:"Longer children too"})}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{ +import{j as e}from"./jsx-runtime-DoxjgJx5.js";import{S as g}from"./extensions-Crvwpr_j.js";import{S as p}from"./chat-Ce9sY079.js";import"./index-Cu9bd8lq.js";import{M as d}from"./MenuItem-Dv7SCHqT.js";import{T as u}from"./Text-DCibjNNg.js";import"./index-C2KoGaFq.js";import"./index-icJLasaE.js";import"./Typography-D-74lRMS.js";const h=r=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",className:"cpd-icon",...r,children:[e.jsx("path",{d:"M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-2 0a2 2 0 1 0-4 0 2 2 0 0 0 4 0Z"}),e.jsx("path",{d:"M11.312 2h1.376A2.312 2.312 0 0 1 15 4.312v.247l.002.003c.01.014.031.033.064.047.03.013.056.013.07.01h.002l.177-.177a2.312 2.312 0 0 1 3.27 0l.973.974a2.312 2.312 0 0 1 0 3.269l-.177.177v.003a.134.134 0 0 0 .01.07.153.153 0 0 0 .047.063l.003.002h.247A2.312 2.312 0 0 1 22 11.312v1.376A2.312 2.312 0 0 1 19.688 15h-.247l-.003.002a.152.152 0 0 0-.047.064.134.134 0 0 0-.01.07v.002l.177.177a2.312 2.312 0 0 1 0 3.27l-.974.973a2.312 2.312 0 0 1-3.269 0l-.177-.177h-.003a.134.134 0 0 0-.07.01.152.152 0 0 0-.063.047l-.002.003v.247A2.312 2.312 0 0 1 12.688 22h-1.376A2.312 2.312 0 0 1 9 19.688v-.247l-.002-.003a.153.153 0 0 0-.064-.047.134.134 0 0 0-.07-.01h-.002l-.177.177a2.312 2.312 0 0 1-3.27 0l-.973-.974a2.312 2.312 0 0 1 0-3.269l.177-.177v-.003a.135.135 0 0 0-.01-.07.152.152 0 0 0-.047-.063L4.559 15h-.247A2.312 2.312 0 0 1 2 12.688v-1.376A2.312 2.312 0 0 1 4.312 9h.247l.003-.002a.153.153 0 0 0 .047-.064.135.135 0 0 0 .01-.07v-.002l-.177-.177a2.312 2.312 0 0 1 0-3.27l.974-.973a2.312 2.312 0 0 1 3.269 0l.177.177h.003a.135.135 0 0 0 .07-.01.153.153 0 0 0 .063-.047L9 4.559v-.247A2.312 2.312 0 0 1 11.312 2ZM11 4.312v.257c0 .893-.59 1.593-1.299 1.887-.716.297-1.622.21-2.248-.418l-.182-.182a.312.312 0 0 0-.441 0l-.974.974a.312.312 0 0 0 0 .44l.182.183c.627.626.715 1.531.418 2.248C6.162 10.41 5.462 11 4.569 11h-.257a.312.312 0 0 0-.312.312v1.376c0 .172.14.312.312.312h.257c.893 0 1.593.59 1.887 1.299.297.716.21 1.622-.418 2.248l-.182.182a.312.312 0 0 0 0 .441l.974.973a.31.31 0 0 0 .44 0l.183-.181c.626-.627 1.532-.715 2.248-.418.709.294 1.299.994 1.299 1.887v.257c0 .172.14.312.312.312h1.376c.172 0 .312-.14.312-.312v-.257c0-.893.59-1.593 1.299-1.887.716-.297 1.622-.21 2.248.418l.182.181c.122.122.32.122.441 0l.973-.973a.312.312 0 0 0 0-.44l-.181-.183c-.627-.627-.715-1.532-.418-2.248.294-.709.994-1.299 1.887-1.299h.257c.172 0 .312-.14.312-.312v-1.376a.312.312 0 0 0-.312-.312h-.257c-.893 0-1.593-.59-1.887-1.299-.297-.717-.21-1.622.418-2.248l.181-.182a.312.312 0 0 0 0-.441l-.973-.974a.312.312 0 0 0-.44 0l-.183.182c-.627.627-1.532.715-2.248.418C13.59 6.162 13 5.462 13 4.569v-.257A.312.312 0 0 0 12.688 4h-1.376a.312.312 0 0 0-.312.312Z"})]}),w={title:"Menu/MenuItem",component:d,tags:["autodocs"],argTypes:{onClick:{action:"clicked!"}},args:{label:"Menu item",children:e.jsx(u,{as:"span",size:"sm",children:"99"}),Icon:p},decorators:[r=>e.jsx("div",{style:{width:300},children:e.jsx(r,{})})]},n={render:()=>e.jsxs("div",{style:{width:300},children:[e.jsx(d,{Icon:p,label:"First item",onSelect:()=>{},children:e.jsx(u,{as:"span",size:"sm",children:"99"})}),e.jsx(d,{Icon:g,label:"Second item with a name that's quite long",onSelect:()=>{}}),e.jsx(d,{Icon:h,label:null,onSelect:()=>{},children:e.jsx(u,{as:"span",size:"sm",children:"Third item without a label"})})]})},a={args:{kind:"primary"}},s={args:{kind:"critical"}},o={args:{...a.args,disabled:!0}},t={args:{...s.args,disabled:!0}};function b(r){return e.jsx("div",{style:{height:24,width:48,backgroundColor:"teal"},...r})}const i={args:{...a.args,Icon:e.jsx(b,{})}},l={args:{...a.args,label:void 0}},c={args:{...a.args,label:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."}},m={args:{...a.args,label:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, empor incididunt ut labore et dolore magna aliqua.",children:e.jsx(u,{as:"span",size:"sm",children:"Longer children too"})}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{ render: () =>
diff --git a/assets/ReleaseAnnouncement.stories-Dmoi7IZ4.js b/assets/ReleaseAnnouncement.stories-C7aCNla7.js similarity index 98% rename from assets/ReleaseAnnouncement.stories-Dmoi7IZ4.js rename to assets/ReleaseAnnouncement.stories-C7aCNla7.js index e5e321da..8147841b 100644 --- a/assets/ReleaseAnnouncement.stories-Dmoi7IZ4.js +++ b/assets/ReleaseAnnouncement.stories-C7aCNla7.js @@ -1,4 +1,4 @@ -import{j as o}from"./jsx-runtime-DoxjgJx5.js";import{r}from"./index-Cu9bd8lq.js";import{B as C}from"./Button-DrAMl4OR.js";import"./IconButton-j0Nfr_Qv.js";import{a as R,b as T,i as k,j,c as O,o as V,s as q,d as B,l as E,u as F,F as I,m as M,k as N}from"./floating-ui.react-C9uQe9t5.js";import{T as A}from"./Text-BrcN_buA.js";import"./index-C2KoGaFq.js";import"./UnstyledButton-CUaD5tB8.js";import"./IndicatorIcon-iinDG_Nf.js";import"./index-MTP5U5xA.js";import"./Typography-BcgMUEGb.js";const L="_content_1oa1y_17",S="_header_1oa1y_46",P="_description_1oa1y_52",H="_button_1oa1y_57",z="_arrow_1oa1y_62",c={content:L,header:S,description:P,button:H,arrow:z},w=r.createContext(null);function g(){const e=r.useContext(w);if(e==null)throw new Error("ReleaseAnnouncement components must be wrapped in ");return e}function f({open:e,header:n,description:a,closeLabel:t,placement:m,onClick:u}){const v=R(),_=R(),d=r.useRef(null),h=T({placement:m,open:e,whileElementsMounted:O,middleware:[V(16),q({limiter:E({offset:50})}),B({element:d})]}),y=k(h.context),x=j([y]);return r.useMemo(()=>({open:e,...h,...x,labelId:v,descriptionId:_,header:n,description:a,closeLabel:t,onClick:u,arrowRef:d}),[e,y,x,h,v,_,n,a,t,u,d])}try{f.displayName="useReleaseAnnouncement",f.__docgenInfo={description:"This hook provides the necessary props to create a release announcement.",displayName:"useReleaseAnnouncement",props:{open:{defaultValue:null,description:"Whether the release announcement is open.",name:"open",required:!0,type:{name:"boolean"}},header:{defaultValue:null,description:"The header of the release announcement.",name:"header",required:!0,type:{name:"string"}},description:{defaultValue:null,description:"The description of the release announcement.",name:"description",required:!0,type:{name:"string"}},closeLabel:{defaultValue:null,description:"The label of the close button.",name:"closeLabel",required:!0,type:{name:"string"}},placement:{defaultValue:null,description:"The placement of the release announcement.",name:"placement",required:!0,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"bottom"'},{value:'"top"'},{value:'"left-end"'},{value:'"left-start"'},{value:'"right-end"'},{value:'"right-start"'},{value:'"bottom-end"'},{value:'"bottom-start"'},{value:'"top-end"'},{value:'"top-start"'}]}},onClick:{defaultValue:null,description:"The event handler for the close button.",name:"onClick",required:!0,type:{name:"MouseEventHandler"}}}}}catch{}function p({children:e,placement:n="right",...a}){const t=f({placement:n,...a});return o.jsxs(w.Provider,{value:t,children:[o.jsx(D,{children:e}),o.jsx(W,{children:o.jsx(K,{})})]})}function D({children:e}){const n=g(),a=e?.ref,t=F([n.refs.setReference,a]);if(!r.isValidElement(e))throw new Error("ReleaseAnnouncement anchor must be a single valid React element");return r.cloneElement(e,n.getReferenceProps({ref:t,...e.props,...n.open&&{"aria-describedby":n.getFloatingProps().id}}))}function W({children:e}){const{context:n,arrowRef:a,...t}=g();return n.open?o.jsx(I,{children:o.jsx(M,{context:n,modal:!1,children:o.jsxs("div",{ref:t.refs.setFloating,style:t.floatingStyles,"aria-labelledby":t.labelId,"aria-describedby":t.descriptionId,...t.getFloatingProps(),className:c.content,children:[o.jsx(N,{ref:a,context:n,width:20,height:12,className:c.arrow}),e]})})}):null}function K(){const{labelId:e,descriptionId:n,header:a,description:t,closeLabel:m,onClick:u}=g();return o.jsxs(o.Fragment,{children:[o.jsx(A,{as:"h3",id:e,className:c.header,size:"lg",weight:"semibold",children:a}),o.jsx(A,{as:"span",id:n,className:c.description,size:"sm",weight:"regular",children:t}),o.jsx(C,{size:"sm",kind:"secondary",className:c.button,onClick:u,children:m})]})}try{p.displayName="ReleaseAnnouncement",p.__docgenInfo={description:`The ReleaseAnnouncement component purpose is to inform the user of a new available feature. +import{j as o}from"./jsx-runtime-DoxjgJx5.js";import{r}from"./index-Cu9bd8lq.js";import{B as C}from"./Button-DrAMl4OR.js";import"./IconButton-j0Nfr_Qv.js";import{a as R,b as T,i as k,j,c as O,o as V,s as q,d as B,l as E,u as F,F as I,m as M,k as N}from"./floating-ui.react-C9uQe9t5.js";import{T as A}from"./Text-DCibjNNg.js";import"./index-C2KoGaFq.js";import"./UnstyledButton-CUaD5tB8.js";import"./IndicatorIcon-iinDG_Nf.js";import"./index-MTP5U5xA.js";import"./Typography-D-74lRMS.js";const L="_content_1oa1y_17",S="_header_1oa1y_46",P="_description_1oa1y_52",H="_button_1oa1y_57",z="_arrow_1oa1y_62",c={content:L,header:S,description:P,button:H,arrow:z},w=r.createContext(null);function g(){const e=r.useContext(w);if(e==null)throw new Error("ReleaseAnnouncement components must be wrapped in ");return e}function f({open:e,header:n,description:a,closeLabel:t,placement:m,onClick:u}){const v=R(),_=R(),d=r.useRef(null),h=T({placement:m,open:e,whileElementsMounted:O,middleware:[V(16),q({limiter:E({offset:50})}),B({element:d})]}),y=k(h.context),x=j([y]);return r.useMemo(()=>({open:e,...h,...x,labelId:v,descriptionId:_,header:n,description:a,closeLabel:t,onClick:u,arrowRef:d}),[e,y,x,h,v,_,n,a,t,u,d])}try{f.displayName="useReleaseAnnouncement",f.__docgenInfo={description:"This hook provides the necessary props to create a release announcement.",displayName:"useReleaseAnnouncement",props:{open:{defaultValue:null,description:"Whether the release announcement is open.",name:"open",required:!0,type:{name:"boolean"}},header:{defaultValue:null,description:"The header of the release announcement.",name:"header",required:!0,type:{name:"string"}},description:{defaultValue:null,description:"The description of the release announcement.",name:"description",required:!0,type:{name:"string"}},closeLabel:{defaultValue:null,description:"The label of the close button.",name:"closeLabel",required:!0,type:{name:"string"}},placement:{defaultValue:null,description:"The placement of the release announcement.",name:"placement",required:!0,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"bottom"'},{value:'"top"'},{value:'"left-end"'},{value:'"left-start"'},{value:'"right-end"'},{value:'"right-start"'},{value:'"bottom-end"'},{value:'"bottom-start"'},{value:'"top-end"'},{value:'"top-start"'}]}},onClick:{defaultValue:null,description:"The event handler for the close button.",name:"onClick",required:!0,type:{name:"MouseEventHandler"}}}}}catch{}function p({children:e,placement:n="right",...a}){const t=f({placement:n,...a});return o.jsxs(w.Provider,{value:t,children:[o.jsx(D,{children:e}),o.jsx(W,{children:o.jsx(K,{})})]})}function D({children:e}){const n=g(),a=e?.ref,t=F([n.refs.setReference,a]);if(!r.isValidElement(e))throw new Error("ReleaseAnnouncement anchor must be a single valid React element");return r.cloneElement(e,n.getReferenceProps({ref:t,...e.props,...n.open&&{"aria-describedby":n.getFloatingProps().id}}))}function W({children:e}){const{context:n,arrowRef:a,...t}=g();return n.open?o.jsx(I,{children:o.jsx(M,{context:n,modal:!1,children:o.jsxs("div",{ref:t.refs.setFloating,style:t.floatingStyles,"aria-labelledby":t.labelId,"aria-describedby":t.descriptionId,...t.getFloatingProps(),className:c.content,children:[o.jsx(N,{ref:a,context:n,width:20,height:12,className:c.arrow}),e]})})}):null}function K(){const{labelId:e,descriptionId:n,header:a,description:t,closeLabel:m,onClick:u}=g();return o.jsxs(o.Fragment,{children:[o.jsx(A,{as:"h3",id:e,className:c.header,size:"lg",weight:"semibold",children:a}),o.jsx(A,{as:"span",id:n,className:c.description,size:"sm",weight:"regular",children:t}),o.jsx(C,{size:"sm",kind:"secondary",className:c.button,onClick:u,children:m})]})}try{p.displayName="ReleaseAnnouncement",p.__docgenInfo={description:`The ReleaseAnnouncement component purpose is to inform the user of a new available feature. This component is a floating component that will appear next to an anchor.`,displayName:"ReleaseAnnouncement",props:{placement:{defaultValue:{value:"right"},description:"The placement of the component",name:"placement",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'},{value:'"bottom"'},{value:'"top"'},{value:'"left-end"'},{value:'"left-start"'},{value:'"right-end"'},{value:'"right-start"'},{value:'"bottom-end"'},{value:'"bottom-start"'},{value:'"top-end"'},{value:'"top-start"'}]}},open:{defaultValue:null,description:"Whether the release announcement is open.",name:"open",required:!0,type:{name:"boolean"}},onClick:{defaultValue:null,description:"The event handler for the close button.",name:"onClick",required:!0,type:{name:"MouseEventHandler"}},header:{defaultValue:null,description:"The header of the release announcement.",name:"header",required:!0,type:{name:"string"}},description:{defaultValue:null,description:"The description of the release announcement.",name:"description",required:!0,type:{name:"string"}},closeLabel:{defaultValue:null,description:"The label of the close button.",name:"closeLabel",required:!0,type:{name:"string"}}}}}catch{}const oe={title:"Release Announcement",component:p,tags:["autodocs"],argTypes:{},args:{header:"Notifications have moved",description:"From now on, click the icon here to view your notifications.",placement:"right",closeLabel:"Ok"}},b=e=>{const[n,a]=r.useState(!0);return o.jsx(p,{...e,open:n,onClick:()=>a(!1),children:o.jsx(C,{onClick:()=>a(t=>!t),children:"Open menu"})})},s=b.bind({});s.args={};const l=b.bind({});l.args={header:"A multi line header which is taking multiple lines",description:"A multi line description which is taking multiple lines. The OK button should be vertically centred."};const i=b.bind({});i.args={placement:"bottom"};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`args => { const [open, setOpen] = useState(true); return setOpen(false)}> diff --git a/assets/Search.stories-BLO8Alj9.js b/assets/Search.stories-lwSifXn5.js similarity index 97% rename from assets/Search.stories-BLO8Alj9.js rename to assets/Search.stories-lwSifXn5.js index 06fd3bb7..bbbdf7a6 100644 --- a/assets/Search.stories-BLO8Alj9.js +++ b/assets/Search.stories-lwSifXn5.js @@ -1,3 +1,3 @@ -import{j as e}from"./jsx-runtime-DoxjgJx5.js";import{c as p}from"./index-C2KoGaFq.js";import"./Action-DyM_p9RG.js";import"./Password-D4Wdgeua.js";import"./Text-BTQEANK3.js";import"./MFA-C1Z6qH6F.js";import"./Checkbox-BH99jySy.js";import"./Radio-DdGWwLbw.js";import"./Toggle-CfFDn7Ov.js";import"./EditInPlace-CcsKLZdT.js";import{F as l,L as d}from"./Submit-LOGOVFq6.js";import"./index-Cu9bd8lq.js";import{u as h}from"./useId-D5m2XpUu.js";import{a as u}from"./index-8DUk24eR.js";import"./Tooltip-CzfwCewK.js";import"./floating-ui.react-C9uQe9t5.js";import"./index-MTP5U5xA.js";import"./visibility-on-BrkRTjSX.js";import"./check-CXsFGzWm.js";import"./close-D55JIkKE.js";import"./error-YokBWoNX.js";import"./InlineSpinner-BZBYCXgP.js";import"./Button-DrAMl4OR.js";import"./UnstyledButton-CUaD5tB8.js";import"./index-icJLasaE.js";import"./index-tFWdirwu.js";import"./index-CZs6vfAl.js";const g="_search_qztja_17",_="_icon_qztja_46",f="_input_qztja_61",s={search:g,icon:_,input:f},x=r=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",className:"cpd-icon",...r,children:e.jsx("path",{d:"M15.05 16.463a7.5 7.5 0 1 1 1.414-1.414l3.243 3.244a1 1 0 0 1-1.414 1.414l-3.244-3.244ZM16 10.5a5.5 5.5 0 1 0-11 0 5.5 5.5 0 0 0 11 0Z"})}),t=({className:r,onChange:i,placeholder:c="Search…",name:o})=>{const m=p(s.search,r),n=h();return e.jsx(l,{name:o,asChild:!0,children:e.jsxs(d,{className:m,htmlFor:n,children:[e.jsx(x,{className:s.icon,width:20,height:20}),e.jsx("input",{id:n,name:o,type:"search",placeholder:c,onChange:i,className:s.input})]})})};try{t.displayName="Search",t.__docgenInfo={description:"A standalone search component",displayName:"Search",props:{className:{defaultValue:null,description:"The CSS class name",name:"className",required:!1,type:{name:"string"}},placeholder:{defaultValue:{value:"Search…"},description:"The input placeholder.",name:"placeholder",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"The field name.",name:"name",required:!0,type:{name:"string"}},onChange:{defaultValue:null,description:"Event handler called when the search changes.",name:"onChange",required:!1,type:{name:"((e: ChangeEvent) => void)"}}}}}catch{}const K={title:"Search",component:t,tags:["autodocs"],argTypes:{},args:{}},S=r=>e.jsx(u,{children:e.jsx(t,{...r})}),a=S.bind({});a.args={};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`args =>
+import{j as e}from"./jsx-runtime-DoxjgJx5.js";import{c as p}from"./index-C2KoGaFq.js";import"./Action-DyM_p9RG.js";import"./Password-D4Wdgeua.js";import"./Text-BTQEANK3.js";import"./MFA-C1Z6qH6F.js";import"./Checkbox-BH99jySy.js";import"./Radio-DdGWwLbw.js";import"./Toggle-CfFDn7Ov.js";import"./EditInPlace-CcsKLZdT.js";import{F as l,L as d}from"./Submit-KZDJKqs8.js";import"./index-Cu9bd8lq.js";import{u as h}from"./useId-D5m2XpUu.js";import{a as u}from"./index-8DUk24eR.js";import"./Tooltip-CzfwCewK.js";import"./floating-ui.react-C9uQe9t5.js";import"./index-MTP5U5xA.js";import"./visibility-on-BrkRTjSX.js";import"./check-CXsFGzWm.js";import"./close-D55JIkKE.js";import"./error-YokBWoNX.js";import"./InlineSpinner-BZBYCXgP.js";import"./Button-DrAMl4OR.js";import"./UnstyledButton-CUaD5tB8.js";import"./index-icJLasaE.js";import"./index-tFWdirwu.js";import"./index-CZs6vfAl.js";const g="_search_qztja_17",_="_icon_qztja_46",f="_input_qztja_61",s={search:g,icon:_,input:f},x=r=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",className:"cpd-icon",...r,children:e.jsx("path",{d:"M15.05 16.463a7.5 7.5 0 1 1 1.414-1.414l3.243 3.244a1 1 0 0 1-1.414 1.414l-3.244-3.244ZM16 10.5a5.5 5.5 0 1 0-11 0 5.5 5.5 0 0 0 11 0Z"})}),t=({className:r,onChange:i,placeholder:c="Search…",name:o})=>{const m=p(s.search,r),n=h();return e.jsx(l,{name:o,asChild:!0,children:e.jsxs(d,{className:m,htmlFor:n,children:[e.jsx(x,{className:s.icon,width:20,height:20}),e.jsx("input",{id:n,name:o,type:"search",placeholder:c,onChange:i,className:s.input})]})})};try{t.displayName="Search",t.__docgenInfo={description:"A standalone search component",displayName:"Search",props:{className:{defaultValue:null,description:"The CSS class name",name:"className",required:!1,type:{name:"string"}},placeholder:{defaultValue:{value:"Search…"},description:"The input placeholder.",name:"placeholder",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"The field name.",name:"name",required:!0,type:{name:"string"}},onChange:{defaultValue:null,description:"Event handler called when the search changes.",name:"onChange",required:!1,type:{name:"((e: ChangeEvent) => void)"}}}}}catch{}const K={title:"Search",component:t,tags:["autodocs"],argTypes:{},args:{}},S=r=>e.jsx(u,{children:e.jsx(t,{...r})}),a=S.bind({});a.args={};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`args => `,...a.parameters?.docs?.source}}};const P=["Search"];export{a as Search,P as __namedExportsOrder,K as default}; diff --git a/assets/Submit-LOGOVFq6.js b/assets/Submit-KZDJKqs8.js similarity index 93% rename from assets/Submit-LOGOVFq6.js rename to assets/Submit-KZDJKqs8.js index 23b780b7..372782ac 100644 --- a/assets/Submit-LOGOVFq6.js +++ b/assets/Submit-KZDJKqs8.js @@ -1,6 +1,6 @@ import{j as l}from"./jsx-runtime-DoxjgJx5.js";import{r as o}from"./index-Cu9bd8lq.js";import{b as N,c as y,d as x,e as h,f as v}from"./index-8DUk24eR.js";import{c as i}from"./index-C2KoGaFq.js";import{S as w}from"./error-YokBWoNX.js";import{B as S}from"./Button-DrAMl4OR.js";const C="_root_148br_24",V="_field_148br_34",q="_label_148br_67",R="_message_148br_98",n={root:C,field:V,"inline-field":"_inline-field_148br_40","inline-field-body":"_inline-field-body_148br_46","inline-field-control":"_inline-field-control_148br_52",label:q,message:R,"help-message":"_help-message_148br_104","error-message":"_error-message_148br_108"},c=o.forwardRef(function({children:s,...e},t){const r=i(n.root,e.className);return l.jsx(N,{ref:t,...e,className:r,children:s})});try{c.displayName="Root",c.__docgenInfo={description:`Thin wrapper around Radix UI Root component https://www.radix-ui.com/docs/primitives/components/form#root`,displayName:"Root",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const m=o.forwardRef(function({children:s,...e},t){const r=i(n.field,e.className);return l.jsx(y,{ref:t,...e,className:r,children:s})});try{m.displayName="Field",m.__docgenInfo={description:`Thin wrapper around Radix UI Field component https://www.radix-ui.com/docs/primitives/components/form#field`,displayName:"Field",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const u=o.forwardRef(function({className:s,control:e,children:t,...r},d){const g=i(n["inline-field"],s);return l.jsxs(y,{ref:d,...r,className:g,children:[l.jsx("div",{className:n["inline-field-control"],children:e}),l.jsx("div",{className:n["inline-field-body"],children:t})]})});try{u.displayName="InlineField",u.__docgenInfo={description:"",displayName:"InlineField",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}},control:{defaultValue:null,description:"The checkbox/radio control to render alongside the rest of the field.",name:"control",required:!0,type:{name:"ReactElement>"}}}}}catch{}const p=o.forwardRef(function({children:s,...e},t){const r=i(n.label,e.className);return l.jsx(x,{ref:t,...e,className:r,children:s})});try{p.displayName="Label",p.__docgenInfo={description:`Thin wrapper around Radix UI Label component -https://www.radix-ui.com/docs/primitives/components/form#label`,displayName:"Label",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const f=o.forwardRef(function({children:s,className:e,...t},r){const d=i(n.message,n["error-message"],e);return l.jsxs(h,{ref:r,...t,className:d,children:[l.jsx(w,{}),s]})}),_=o.forwardRef(function({children:s,className:e,...t},r){const d=i(n.message,n["help-message"],e);return l.jsx(h,{ref:r,...t,className:d,children:s})});try{f.displayName="ErrorMessage",f.__docgenInfo={description:"An error message to display below a form control.",displayName:"ErrorMessage",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{_.displayName="HelpMessage",_.__docgenInfo={description:"A help message to display below a form control.",displayName:"HelpMessage",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const b=o.forwardRef(function(s,e){return l.jsx(v,{asChild:!0,children:l.jsx(S,{type:"submit",ref:e,...s})})});try{b.displayName="Submit",b.__docgenInfo={description:"A stylised submit button for forms.",displayName:"Submit",props:{size:{defaultValue:null,description:"The t-shirt size of the button.",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},disabled:{defaultValue:null,description:"Note that disabled attribute is not added to buttons, so that disabled buttons are discoverable by keyboard.\n`aria-disabled` attribute is used to indicate button is disabled.\nEvent handlers are not passed to disabled buttons (onClick, onSubmit, etc.)",name:"disabled",required:!1,type:{name:"boolean"}},Icon:{defaultValue:null,description:"An icon to display within the button.",name:"Icon",required:!1,type:{name:"ComponentType>"}},kind:{defaultValue:null,description:`The type of button. +https://www.radix-ui.com/docs/primitives/components/form#label`,displayName:"Label",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const f=o.forwardRef(function({children:s,className:e,...t},r){const d=i(n.message,n["error-message"],e);return l.jsxs(h,{ref:r,...t,className:d,children:[l.jsx(w,{}),s]})}),_=o.forwardRef(function({children:s,className:e,...t},r){const d=i(n.message,n["help-message"],e);return l.jsx(h,{ref:r,...t,className:d,children:s})});try{f.displayName="ErrorMessage",f.__docgenInfo={description:"An error message to display below a form control.",displayName:"ErrorMessage",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}try{_.displayName="HelpMessage",_.__docgenInfo={description:"A help message to display below a form control.",displayName:"HelpMessage",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},asChild:{defaultValue:null,description:"",name:"asChild",required:!1,type:{name:"boolean"}}}}}catch{}const b=o.forwardRef(function(s,e){return l.jsx(v,{asChild:!0,children:l.jsx(S,{type:"submit",ref:e,...s})})});try{b.displayName="Submit",b.__docgenInfo={description:"A stylised submit button for forms.",displayName:"Submit",props:{size:{defaultValue:null,description:"The t-shirt size of the button.",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'}]}},disabled:{defaultValue:null,description:"Note that disabled attribute is not added to buttons, so that disabled buttons are discoverable by keyboard.\n`aria-disabled` attribute is used to indicate button is disabled.\nEvent handlers are not passed to disabled buttons (onClick, onSubmit, etc.)",name:"disabled",required:!1,type:{name:"boolean"}},kind:{defaultValue:null,description:`The type of button. Note: "destructive" is deprecated, please use the destructive prop in -conjunction with another button kind.`,name:"kind",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"destructive"'}]}},destructive:{defaultValue:{value:"false"},description:"Whether this button triggers a destructive action.",name:"destructive",required:!1,type:{name:"boolean"}}}}}catch{}export{f as E,m as F,_ as H,u as I,p as L,c as R,b as S}; +conjunction with another button kind.`,name:"kind",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"destructive"'}]}},destructive:{defaultValue:{value:"false"},description:"Whether this button triggers a destructive action.",name:"destructive",required:!1,type:{name:"boolean"}},Icon:{defaultValue:null,description:"An icon to display within the button.",name:"Icon",required:!1,type:{name:"ComponentType>"}}}}}catch{}export{f as E,m as F,_ as H,u as I,p as L,c as R,b as S}; diff --git a/assets/Text-BrcN_buA.js b/assets/Text-DCibjNNg.js similarity index 70% rename from assets/Text-BrcN_buA.js rename to assets/Text-DCibjNNg.js index 513fa2e9..f105f943 100644 --- a/assets/Text-BrcN_buA.js +++ b/assets/Text-DCibjNNg.js @@ -1 +1 @@ -import{j as p}from"./jsx-runtime-DoxjgJx5.js";import{T as n}from"./Typography-BcgMUEGb.js";const a=({as:e="p",children:t,...r})=>p.jsx(n,{as:e,type:"body",...r,children:t});try{a.displayName="Text",a.__docgenInfo={description:"A text component. Underlying HTML element can be changed using the `as`\nproperty. Will default to be a paragraph.",displayName:"Text",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'}]}}}}}catch{}export{a as T}; +import{j as p}from"./jsx-runtime-DoxjgJx5.js";import{T as n}from"./Typography-D-74lRMS.js";const a=({as:e="p",children:t,...r})=>p.jsx(n,{as:e,type:"body",...r,children:t});try{a.displayName="Text",a.__docgenInfo={description:"A text component. Underlying HTML element can be changed using the `as`\nproperty. Will default to be a paragraph.",displayName:"Text",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'},{value:'"xs"'},{value:'"md"'}]}}}}}catch{}export{a as T}; diff --git a/assets/Text.stories-y5kTSo8T.js b/assets/Text.stories-Be_URqJs.js similarity index 78% rename from assets/Text.stories-y5kTSo8T.js rename to assets/Text.stories-Be_URqJs.js index 5999b936..4148df98 100644 --- a/assets/Text.stories-y5kTSo8T.js +++ b/assets/Text.stories-Be_URqJs.js @@ -1,4 +1,4 @@ -import{T as o}from"./Text-BrcN_buA.js";import"./jsx-runtime-DoxjgJx5.js";import"./index-Cu9bd8lq.js";import"./Typography-BcgMUEGb.js";import"./index-C2KoGaFq.js";const p={title:"Typography",component:o,argTypes:{size:{options:["xs","sm","md","lg"],control:{type:"inline-radio"}},weight:{options:["regular","medium","semibold"],control:{type:"inline-radio"}},children:{type:"string"}},args:{children:"The quick brown fox jumps over the lazy dog",size:"md",weight:"regular"}},r={},e={args:{children:"-> 1x2x3"}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:"{}",...r.parameters?.docs?.source}}};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{ +import{T as o}from"./Text-DCibjNNg.js";import"./jsx-runtime-DoxjgJx5.js";import"./index-Cu9bd8lq.js";import"./Typography-D-74lRMS.js";import"./index-C2KoGaFq.js";const p={title:"Typography",component:o,argTypes:{size:{options:["xs","sm","md","lg"],control:{type:"inline-radio"}},weight:{options:["regular","medium","semibold"],control:{type:"inline-radio"}},children:{type:"string"}},args:{children:"The quick brown fox jumps over the lazy dog",size:"md",weight:"regular"}},r={},e={args:{children:"-> 1x2x3"}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:"{}",...r.parameters?.docs?.source}}};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`{ args: { children: "-> 1x2x3" } diff --git a/assets/ToggleMenuItem.stories-DFsJRKrk.js b/assets/ToggleMenuItem.stories-CzawZtl_.js similarity index 94% rename from assets/ToggleMenuItem.stories-DFsJRKrk.js rename to assets/ToggleMenuItem.stories-CzawZtl_.js index 324b0182..28375d2d 100644 --- a/assets/ToggleMenuItem.stories-DFsJRKrk.js +++ b/assets/ToggleMenuItem.stories-CzawZtl_.js @@ -1,4 +1,4 @@ -import{j as t}from"./jsx-runtime-DoxjgJx5.js";import{S as u}from"./extensions-Crvwpr_j.js";import{S as d}from"./chat-Ce9sY079.js";import{r as p}from"./index-Cu9bd8lq.js";import{M as g}from"./MenuItem-D2IOP9Gc.js";import{T as h}from"./Toggle-CfFDn7Ov.js";import{u as I}from"./useId-D5m2XpUu.js";import"./index-C2KoGaFq.js";import"./Text-BrcN_buA.js";import"./Typography-BcgMUEGb.js";import"./index-icJLasaE.js";import"./index-8DUk24eR.js";import"./index-tFWdirwu.js";import"./index-CZs6vfAl.js";import"./index-MTP5U5xA.js";const o=p.forwardRef(function({className:i,Icon:s,label:l,onSelect:m,...r},c){const a=I();return t.jsx(g,{as:"div",role:"menuitemcheckbox",className:i,Icon:s,label:l,labelProps:{as:"label",htmlFor:a},onSelect:m,"aria-checked":r.checked,children:t.jsx(h,{id:a,ref:c,...r})})});try{o.displayName="ToggleMenuItem",o.__docgenInfo={description:"A menu item with a toggle control. Clicking anywhere on the surface will\nactivate the toggle.\nMust be used within a compound Menu or other `menu` or `menubar` aria role subtree.",displayName:"ToggleMenuItem",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},onSelect:{defaultValue:null,description:`Event callback for when the item is selected via mouse, touch, or keyboard. +import{j as t}from"./jsx-runtime-DoxjgJx5.js";import{S as u}from"./extensions-Crvwpr_j.js";import{S as d}from"./chat-Ce9sY079.js";import{r as p}from"./index-Cu9bd8lq.js";import{M as g}from"./MenuItem-Dv7SCHqT.js";import{T as h}from"./Toggle-CfFDn7Ov.js";import{u as I}from"./useId-D5m2XpUu.js";import"./index-C2KoGaFq.js";import"./Text-DCibjNNg.js";import"./Typography-D-74lRMS.js";import"./index-icJLasaE.js";import"./index-8DUk24eR.js";import"./index-tFWdirwu.js";import"./index-CZs6vfAl.js";import"./index-MTP5U5xA.js";const o=p.forwardRef(function({className:i,Icon:s,label:l,onSelect:m,...r},c){const a=I();return t.jsx(g,{as:"div",role:"menuitemcheckbox",className:i,Icon:s,label:l,labelProps:{as:"label",htmlFor:a},onSelect:m,"aria-checked":r.checked,children:t.jsx(h,{id:a,ref:c,...r})})});try{o.displayName="ToggleMenuItem",o.__docgenInfo={description:"A menu item with a toggle control. Clicking anywhere on the surface will\nactivate the toggle.\nMust be used within a compound Menu or other `menu` or `menubar` aria role subtree.",displayName:"ToggleMenuItem",props:{className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}},onSelect:{defaultValue:null,description:`Event callback for when the item is selected via mouse, touch, or keyboard. Calling event.preventDefault in this handler will prevent the menu from being dismissed.`,name:"onSelect",required:!0,type:{name:"((e: Event) => void) | null"}},label:{defaultValue:null,description:"The label to show on this menu item.",name:"label",required:!0,type:{name:"string | null"}},Icon:{defaultValue:null,description:"The icon to show on this menu item.\nWhen `Icon` is a ReactNode, it should spread the props",name:"Icon",required:!0,type:{name:"ReactNode | ComponentType>"}}}}}catch{}const V={title:"Menu/ToggleMenuItem",component:o,tags:["autodocs"],argTypes:{},args:{}},f=n=>t.jsxs("div",{style:{width:300},children:[t.jsx(o,{...n,Icon:d,label:"First item"}),t.jsx(o,{...n,Icon:u,label:"Second item with a name that's quite long"})]}),e=f.bind({});e.args={};e.parameters={...e.parameters,docs:{...e.parameters?.docs,source:{originalSource:`args =>
{const r=e||"p";return i.jsx(r,{...s,className:y(d.typography,d[`font-${n}-${t}-${l}`],m),children:a})};try{o.displayName="Typography",o.__docgenInfo={description:"",displayName:"Typography",props:{as:{defaultValue:{value:'"p"'},description:"The HTML tag.",name:"as",required:!1,type:{name:"ElementType"}},type:{defaultValue:{value:"body"},description:"The type of content.",name:"type",required:!1,type:{name:"enum",value:[{value:'"heading"'},{value:'"body"'}]}},weight:{defaultValue:{value:"regular"},description:"The font weight.",name:"weight",required:!1,type:{name:"enum",value:[{value:'"medium"'},{value:'"bold"'},{value:'"regular"'},{value:'"semibold"'}]}},size:{defaultValue:{value:"md"},description:"The t-shirt size of the content.",name:"size",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"sm"'},{value:'"md"'},{value:'"lg"'},{value:'"xl"'}]}},className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}}}}}catch{}export{o as T}; +import{j as i}from"./jsx-runtime-DoxjgJx5.js";import{c as y}from"./index-C2KoGaFq.js";const _="_typography_yh5dq_162",d={"font-body-xs-regular":"_font-body-xs-regular_yh5dq_21","font-body-xs-semibold":"_font-body-xs-semibold_yh5dq_26","font-body-xs-medium":"_font-body-xs-medium_yh5dq_31","font-body-sm-regular":"_font-body-sm-regular_yh5dq_40","font-body-sm-semibold":"_font-body-sm-semibold_yh5dq_45","font-body-sm-medium":"_font-body-sm-medium_yh5dq_50","font-body-md-regular":"_font-body-md-regular_yh5dq_59","font-body-md-semibold":"_font-body-md-semibold_yh5dq_64","font-body-md-medium":"_font-body-md-medium_yh5dq_69","font-body-lg-regular":"_font-body-lg-regular_yh5dq_78","font-body-lg-semibold":"_font-body-lg-semibold_yh5dq_83","font-body-lg-medium":"_font-body-lg-medium_yh5dq_88","font-heading-sm-regular":"_font-heading-sm-regular_yh5dq_97","font-heading-sm-semibold":"_font-heading-sm-semibold_yh5dq_102","font-heading-sm-medium":"_font-heading-sm-medium_yh5dq_107","font-heading-md-regular":"_font-heading-md-regular_yh5dq_116","font-heading-md-semibold":"_font-heading-md-semibold_yh5dq_121","font-heading-lg-regular":"_font-heading-lg-regular_yh5dq_130","font-heading-lg-semibold":"_font-heading-lg-semibold_yh5dq_135","font-heading-xl-regular":"_font-heading-xl-regular_yh5dq_144","font-heading-xl-semibold":"_font-heading-xl-semibold_yh5dq_149",typography:_},o=({as:e,children:a,type:n="body",weight:l="regular",size:t="md",className:m,...s})=>{const r=e||"p";return i.jsx(r,{...s,className:y(d.typography,d[`font-${n}-${t}-${l}`],m),children:a})};try{o.displayName="Typography",o.__docgenInfo={description:"",displayName:"Typography",props:{as:{defaultValue:{value:'"p"'},description:"The HTML tag.",name:"as",required:!1,type:{name:"ElementType"}},type:{defaultValue:{value:"body"},description:"The type of content.",name:"type",required:!1,type:{name:"enum",value:[{value:'"heading"'},{value:'"body"'}]}},weight:{defaultValue:{value:"regular"},description:"The font weight.",name:"weight",required:!1,type:{name:"enum",value:[{value:'"medium"'},{value:'"bold"'},{value:'"regular"'},{value:'"semibold"'}]}},size:{defaultValue:{value:"md"},description:"The t-shirt size of the content.",name:"size",required:!1,type:{name:"enum",value:[{value:'"sm"'},{value:'"lg"'},{value:'"xs"'},{value:'"md"'},{value:'"xl"'}]}},className:{defaultValue:null,description:"The CSS class name.",name:"className",required:!1,type:{name:"string"}}}}}catch{}export{o as T}; diff --git a/assets/WithTooltip-KJL26V4Q-l6Mv7tUg.js b/assets/WithTooltip-KJL26V4Q-BnSrsFAJ.js similarity index 73% rename from assets/WithTooltip-KJL26V4Q-l6Mv7tUg.js rename to assets/WithTooltip-KJL26V4Q-BnSrsFAJ.js index e75c6dba..72b4e315 100644 --- a/assets/WithTooltip-KJL26V4Q-l6Mv7tUg.js +++ b/assets/WithTooltip-KJL26V4Q-BnSrsFAJ.js @@ -1 +1 @@ -import{W as f,W as u,b as x}from"./DocsRenderer-K4EAMTCU-Bh-bDDp5.js";import"./iframe-CE9hY0S1.js";import"../sb-preview/runtime.js";import"./index-Cu9bd8lq.js";import"./react-18-DoKVqUy3.js";import"./index-MTP5U5xA.js";import"./index-icJLasaE.js";import"./index-B7y3mIek.js";import"./index-tFWdirwu.js";import"./index-CZs6vfAl.js";import"./index-DXimoRZY.js";import"./_getPrototype-DpRPMK__.js";import"./index-DrFu-skq.js";export{f as WithToolTipState,u as WithTooltip,x as WithTooltipPure}; +import{W as f,W as u,b as x}from"./DocsRenderer-K4EAMTCU-CYg_3s1h.js";import"./iframe-CdhHfPBR.js";import"../sb-preview/runtime.js";import"./index-Cu9bd8lq.js";import"./react-18-DoKVqUy3.js";import"./index-MTP5U5xA.js";import"./index-icJLasaE.js";import"./index-B7y3mIek.js";import"./index-tFWdirwu.js";import"./index-CZs6vfAl.js";import"./index-DXimoRZY.js";import"./_getPrototype-DpRPMK__.js";import"./index-DrFu-skq.js";export{f as WithToolTipState,u as WithTooltip,x as WithTooltipPure}; diff --git a/assets/formatter-2WMMO6ZP-B-Thn2J9.js b/assets/formatter-2WMMO6ZP-Ced-PlHl.js similarity index 99% rename from assets/formatter-2WMMO6ZP-B-Thn2J9.js rename to assets/formatter-2WMMO6ZP-Ced-PlHl.js index 44f49c67..b25239ec 100644 --- a/assets/formatter-2WMMO6ZP-B-Thn2J9.js +++ b/assets/formatter-2WMMO6ZP-Ced-PlHl.js @@ -1,4 +1,4 @@ -import{m as Xi}from"./DocsRenderer-K4EAMTCU-Bh-bDDp5.js";import"./iframe-CE9hY0S1.js";import"../sb-preview/runtime.js";import"./index-Cu9bd8lq.js";import"./react-18-DoKVqUy3.js";import"./index-MTP5U5xA.js";import"./index-icJLasaE.js";import"./index-B7y3mIek.js";import"./index-tFWdirwu.js";import"./index-CZs6vfAl.js";import"./index-DXimoRZY.js";import"./_getPrototype-DpRPMK__.js";import"./index-DrFu-skq.js";var Qi=Object.defineProperty,cu=(e,t)=>{for(var r in t)Qi(e,r,{get:t[r],enumerable:!0})},pu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},se=(e,t,r)=>(pu(e,t,"read from private field"),t.get(e)),Zi=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},ea=(e,t,r,n)=>(pu(e,t,"write to private field"),t.set(e,r),r),hu={};cu(hu,{languages:()=>jl,options:()=>Wl,parsers:()=>zu,printers:()=>Vl});var ta=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},O=ta,_r="string",Br="array",xr="cursor",_t="indent",Bt="align",Tr="trim",Je="group",xt="fill",Tt="if-break",Lt="indent-if-break",Lr="line-suffix",Nr="line-suffix-boundary",be="line",qr="label",Nt="break-parent",du=new Set([xr,_t,Bt,Tr,Je,xt,Tt,Lt,Lr,Nr,be,qr,Nt]);function ra(e){if(typeof e=="string")return _r;if(Array.isArray(e))return Br;if(!e)return;let{type:t}=e;if(du.has(t))return t}var Pr=ra,na=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function ua(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +import{m as Xi}from"./DocsRenderer-K4EAMTCU-CYg_3s1h.js";import"./iframe-CdhHfPBR.js";import"../sb-preview/runtime.js";import"./index-Cu9bd8lq.js";import"./react-18-DoKVqUy3.js";import"./index-MTP5U5xA.js";import"./index-icJLasaE.js";import"./index-B7y3mIek.js";import"./index-tFWdirwu.js";import"./index-CZs6vfAl.js";import"./index-DXimoRZY.js";import"./_getPrototype-DpRPMK__.js";import"./index-DrFu-skq.js";var Qi=Object.defineProperty,cu=(e,t)=>{for(var r in t)Qi(e,r,{get:t[r],enumerable:!0})},pu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},se=(e,t,r)=>(pu(e,t,"read from private field"),t.get(e)),Zi=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},ea=(e,t,r,n)=>(pu(e,t,"write to private field"),t.set(e,r),r),hu={};cu(hu,{languages:()=>jl,options:()=>Wl,parsers:()=>zu,printers:()=>Vl});var ta=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},O=ta,_r="string",Br="array",xr="cursor",_t="indent",Bt="align",Tr="trim",Je="group",xt="fill",Tt="if-break",Lt="indent-if-break",Lr="line-suffix",Nr="line-suffix-boundary",be="line",qr="label",Nt="break-parent",du=new Set([xr,_t,Bt,Tr,Je,xt,Tt,Lt,Lr,Nr,be,qr,Nt]);function ra(e){if(typeof e=="string")return _r;if(Array.isArray(e))return Br;if(!e)return;let{type:t}=e;if(du.has(t))return t}var Pr=ra,na=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function ua(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', Expected it to be 'string' or 'object'.`;if(Pr(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=na([...du].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'. Expected it to be ${n}.`}var ia=class extends Error{name="InvalidDocError";constructor(e){super(ua(e)),this.doc=e}},Du=ia,aa=()=>{},sa=aa;function we(e){return{type:_t,contents:e}}function fu(e,t){return{type:Bt,contents:t,n:e}}function q(e,t={}){return sa(t.expandedStates),{type:Je,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function oa(e){return fu(Number.NEGATIVE_INFINITY,e)}function la(e){return fu({type:"root"},e)}function mu(e){return{type:xt,parts:e}}function Et(e,t="",r={}){return{type:Tt,breakContents:e,flatContents:t,groupId:r.groupId}}function ca(e,t){return{type:Lt,contents:e,groupId:t.groupId,negate:t.negate}}var Qe={type:Nt},pa={type:be,hard:!0},ha={type:be,hard:!0,literal:!0},L={type:be},I={type:be,soft:!0},A=[pa,Qe],da=[ha,Qe];function Ze(e,t){let r=[];for(let n=0;n{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},qt=Da;function Ir(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let a=u(i);return r.set(i,a),a}function u(i){switch(Pr(i)){case Br:return t(i.map(n));case xt:return t({...i,parts:i.parts.map(n)});case Tt:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Je:{let{expandedStates:a,contents:s}=i;return a?(a=a.map(n),s=a[0]):s=n(s),t({...i,contents:s,expandedStates:a})}case Bt:case _t:case Lt:case qr:case Lr:return t({...i,contents:n(i.contents)});case _r:case xr:case Tr:case Nr:case be:case Nt:return t(i);default:throw new Du(i)}}}function fa(e){switch(Pr(e)){case xt:if(e.parts.every(t=>t===""))return"";break;case Je:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Je&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Bt:case _t:case Lt:case Lr:if(!e.contents)return"";break;case Tt:if(!e.flatContents&&!e.breakContents)return"";break;case Br:{let t=[];for(let r of e){if(!r)continue;let[n,...u]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof qt(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case _r:case xr:case Tr:case Nr:case be:case qr:case Nt:break;default:throw new Du(e)}return e}function ma(e){return Ir(e,t=>fa(t))}function G(e,t=da){return Ir(e,r=>typeof r=="string"?Ze(t,r.split(` `)):r)}var ga=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},Ca=ga,ot="'",ln='"';function Fa(e,t){let r=t===!0||t===ot?ot:ln,n=r===ot?ln:ot,u=0,i=0;for(let a of e)a===r?u++:a===n&&i++;return u>i?n:r}var va=Fa;function ya(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var U,Ea=class{constructor(e){Zi(this,U,void 0),ea(this,U,new Set(e))}getLeadingWhitespaceCount(e){let t=se(this,U),r=0;for(let n=0;n=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return se(this,U).has(e.charAt(0))}hasTrailingWhitespace(e){return se(this,U).has(qt(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${ya([...se(this,U)].join(""))}]+`,n=new RegExp(t?`(${r})`:r);return e.split(n)}hasWhitespaceCharacter(e){let t=se(this,U);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=se(this,U);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=se(this,U);return Array.prototype.every.call(e,r=>t.has(r))}};U=new WeakMap;var ba=Ea,wa=[" ",` diff --git a/assets/iframe-CE9hY0S1.js b/assets/iframe-CdhHfPBR.js similarity index 81% rename from assets/iframe-CE9hY0S1.js rename to assets/iframe-CdhHfPBR.js index 5c1f6de1..1cf5d946 100644 --- a/assets/iframe-CE9hY0S1.js +++ b/assets/iframe-CdhHfPBR.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./Alert.stories-clncL-v0.js","./jsx-runtime-DoxjgJx5.js","./index-Cu9bd8lq.js","./Button-DrAMl4OR.js","./index-C2KoGaFq.js","./UnstyledButton-CUaD5tB8.js","./Button-B77mvcuQ.css","./error-YokBWoNX.js","./close-D55JIkKE.js","./Text-BrcN_buA.js","./Typography-BcgMUEGb.js","./Typography-CfvbYAu4.css","./IconButton-j0Nfr_Qv.js","./IndicatorIcon-iinDG_Nf.js","./IndicatorIcon-QYRvKTDR.css","./IconButton-BR4mjKMm.css","./Alert-CdCLBpDg.css","./Avatar.stories-C2nZE1XQ.js","./Avatar-D_h5K73j.js","./Avatar-C-OTxRZn.css","./AvatarStack.stories-Dp1_CGHD.js","./Badge.stories-BLX6a74q.js","./Badge-8qM5UjWT.css","./Button.stories-BTvqYoQI.js","./index-DRe3e4pb.js","./index-CVRyq5ci.js","./visibility-on-BrkRTjSX.js","./IconButton.stories-BIwyRNMz.js","./user-profile-CB1AInEY.js","./Action.stories-CEzex-yN.js","./chat-Ce9sY079.js","./check-CXsFGzWm.js","./Action-DyM_p9RG.js","./Text-BTQEANK3.js","./index-8DUk24eR.js","./index-icJLasaE.js","./index-tFWdirwu.js","./index-CZs6vfAl.js","./index-MTP5U5xA.js","./Text-eTlBFuSe.css","./useId-D5m2XpUu.js","./Tooltip-CzfwCewK.js","./floating-ui.react-C9uQe9t5.js","./Tooltip-7uRTK6fW.css","./Action-BCJ2_vsV.css","./Checkbox.stories-CSzNc10-.js","./Checkbox-BH99jySy.js","./Checkbox-C6phXg9v.css","./EditInPlace.stories-DSaFFsxm.js","./EditInPlace-CcsKLZdT.js","./InlineSpinner-BZBYCXgP.js","./InlineSpinner-D3NIwA_H.css","./EditInPlace-yPU976Dk.css","./MFA.stories-DUTKrvlj.js","./MFA-C1Z6qH6F.js","./MFA-DE5RR2Vr.css","./Password.stories-DJZ-3y1O.js","./Password-D4Wdgeua.js","./Radio.stories-BrQSsBlF.js","./Radio-DdGWwLbw.js","./Radio-COtHnm0C.css","./Text.stories-CcYlNlb5.js","./Toggle.stories-BQPrWceB.js","./Toggle-CfFDn7Ov.js","./Toggle-BxfNLRoj.css","./Form.stories-CZwG15B1.js","./Submit-LOGOVFq6.js","./Submit-Dv4Cxvmt.css","./Glass.stories-BJoOYATA.js","./Glass-BiF3lt7L.css","./Icon.stories-BeD7cMOU.js","./IndicatorIcon.stories-D8G0qloJ.js","./InlineSpinner.stories-CuUZaHUD.js","./Link.stories-DAxydskD.js","./Link-COi2doS4.css","./ContextMenu.stories-DMK2bnkY.js","./leave-ZJppWO3C.js","./index-DPxQQZIb.js","./index-B7y3mIek.js","./FloatingMenu-Eb22vTDs.js","./FloatingMenu-DpTpmI5z.css","./DrawerMenu-BJRINQC3.js","./DrawerMenu-DRle46ZL.css","./MenuItem-D2IOP9Gc.js","./MenuItem-i-QS5Uoi.css","./Separator-6D3uspFz.js","./Separator-BJXoghAv.css","./DrawerMenu.stories-CbqYlzn6.js","./FloatingMenu.stories-BLRowm5L.js","./Menu.stories-BwLLVcOL.js","./MenuItem.stories-Beletagi.js","./extensions-Crvwpr_j.js","./ToggleMenuItem.stories-DFsJRKrk.js","./ReleaseAnnouncement.stories-Dmoi7IZ4.js","./ReleaseAnnouncement-DOxWiBH2.css","./Search.stories-BLO8Alj9.js","./Search-D1SCc-Zy.css","./Separator.stories-CWRHzd0n.js","./Toast.stories-5gSgBvJt.js","./Toast-OmC1UN0x.css","./Tooltip.stories-DX03kbtv.js","./Heading.stories-B3FZSQ8Z.js","./Text.stories-y5kTSo8T.js","./entry-preview-RtwQF_NP.js","./react-18-DoKVqUy3.js","./entry-preview-docs-XxRUZN73.js","./_getPrototype-DpRPMK__.js","./index-DrFu-skq.js","./preview-TCN6m6T-.js","./index-DXimoRZY.js","./preview-B63p-W8V.js","./preview-BAz7FMXc.js","./preview-BKCN0mOr.js","./preview-Ca2ZsTwH.js","./preview-DDsK8yWV.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import"../sb-preview/runtime.js";(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))c(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const e of r.addedNodes)e.tagName==="LINK"&&e.rel==="modulepreload"&&c(e)}).observe(document,{childList:!0,subtree:!0});function m(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function c(o){if(o.ep)return;o.ep=!0;const r=m(o);fetch(o.href,r)}})();const R="modulepreload",T=function(_,i){return new URL(_,i).href},d={},t=function(i,m,c){let o=Promise.resolve();if(m&&m.length>0){const r=document.getElementsByTagName("link"),e=document.querySelector("meta[property=csp-nonce]"),E=e?.nonce||e?.getAttribute("nonce");o=Promise.all(m.map(s=>{if(s=T(s,c),s in d)return;d[s]=!0;const a=s.endsWith(".css"),O=a?'[rel="stylesheet"]':"";if(!!c)for(let p=r.length-1;p>=0;p--){const u=r[p];if(u.href===s&&(!a||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${O}`))return;const n=document.createElement("link");if(n.rel=a?"stylesheet":R,a||(n.as="script",n.crossOrigin=""),n.href=s,E&&n.setAttribute("nonce",E),document.head.appendChild(n),a)return new Promise((p,u)=>{n.addEventListener("load",p),n.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${s}`)))})}))}return o.then(()=>i()).catch(r=>{const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=r,window.dispatchEvent(e),!e.defaultPrevented)throw r})},{createBrowserChannel:P}=__STORYBOOK_MODULE_CHANNELS__,{addons:I}=__STORYBOOK_MODULE_PREVIEW_API__,l=P({page:"preview"});I.setChannel(l);window.__STORYBOOK_ADDONS_CHANNEL__=l;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=l);const A={"./src/components/Alert/Alert.stories.tsx":async()=>t(()=>import("./Alert.stories-clncL-v0.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),"./src/components/Avatar/Avatar.stories.tsx":async()=>t(()=>import("./Avatar.stories-C2nZE1XQ.js"),__vite__mapDeps([17,1,2,18,4,19]),import.meta.url),"./src/components/Avatar/AvatarStack.stories.tsx":async()=>t(()=>import("./AvatarStack.stories-Dp1_CGHD.js"),__vite__mapDeps([20,1,2,4,18,19]),import.meta.url),"./src/components/Badge/Badge.stories.tsx":async()=>t(()=>import("./Badge.stories-BLX6a74q.js"),__vite__mapDeps([21,1,2,4,10,11,22]),import.meta.url),"./src/components/Button/Button.stories.tsx":async()=>t(()=>import("./Button.stories-BTvqYoQI.js"),__vite__mapDeps([23,24,25,3,1,2,4,5,6,26]),import.meta.url),"./src/components/Button/IconButton/IconButton.stories.tsx":async()=>t(()=>import("./IconButton.stories-BIwyRNMz.js"),__vite__mapDeps([27,1,2,24,25,12,4,5,13,14,15,28]),import.meta.url),"./src/components/Form/Controls/Action/Action.stories.tsx":async()=>t(()=>import("./Action.stories-CEzex-yN.js"),__vite__mapDeps([29,1,2,30,31,8,32,4,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url),"./src/components/Form/Controls/Checkbox/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-CSzNc10-.js"),__vite__mapDeps([45,1,2,46,4,31,34,35,36,37,38,47]),import.meta.url),"./src/components/Form/Controls/EditInPlace/EditInPlace.stories.tsx":async()=>t(()=>import("./EditInPlace.stories-DSaFFsxm.js"),__vite__mapDeps([48,1,2,49,4,33,34,35,36,37,38,39,40,31,8,7,50,51,52]),import.meta.url),"./src/components/Form/Controls/MFA/MFA.stories.tsx":async()=>t(()=>import("./MFA.stories-DUTKrvlj.js"),__vite__mapDeps([53,1,2,54,4,34,35,36,37,38,55]),import.meta.url),"./src/components/Form/Controls/Password/Password.stories.tsx":async()=>t(()=>import("./Password.stories-DJZ-3y1O.js"),__vite__mapDeps([56,1,2,57,34,35,36,37,38,32,4,33,39,40,41,42,43,44,26,24,25]),import.meta.url),"./src/components/Form/Controls/Radio/Radio.stories.tsx":async()=>t(()=>import("./Radio.stories-BrQSsBlF.js"),__vite__mapDeps([58,1,2,59,4,34,35,36,37,38,60]),import.meta.url),"./src/components/Form/Controls/Text/Text.stories.tsx":async()=>t(()=>import("./Text.stories-CcYlNlb5.js"),__vite__mapDeps([61,1,2,33,34,35,36,37,38,4,39]),import.meta.url),"./src/components/Form/Controls/Toggle/Toggle.stories.tsx":async()=>t(()=>import("./Toggle.stories-BQPrWceB.js"),__vite__mapDeps([62,63,1,2,4,34,35,36,37,38,64]),import.meta.url),"./src/components/Form/Form.stories.tsx":async()=>t(()=>import("./Form.stories-CZwG15B1.js"),__vite__mapDeps([65,1,2,32,4,33,34,35,36,37,38,39,40,41,42,43,44,57,26,54,55,46,31,47,59,60,63,64,49,8,7,50,51,52,66,3,5,6,67]),import.meta.url),"./src/components/Glass/Glass.stories.tsx":async()=>t(()=>import("./Glass.stories-BJoOYATA.js"),__vite__mapDeps([68,1,2,4,9,10,11,69]),import.meta.url),"./src/components/Icon/Icon.stories.tsx":async()=>t(()=>import("./Icon.stories-BeD7cMOU.js"),__vite__mapDeps([70,1,2]),import.meta.url),"./src/components/Icon/IndicatorIcon/IndicatorIcon.stories.tsx":async()=>t(()=>import("./IndicatorIcon.stories-D8G0qloJ.js"),__vite__mapDeps([71,1,2,24,25,13,4,14]),import.meta.url),"./src/components/InlineSpinner/InlineSpinner.stories.tsx":async()=>t(()=>import("./InlineSpinner.stories-CuUZaHUD.js"),__vite__mapDeps([72,50,1,2,51]),import.meta.url),"./src/components/Link/Link.stories.tsx":async()=>t(()=>import("./Link.stories-DAxydskD.js"),__vite__mapDeps([73,1,2,4,74]),import.meta.url),"./src/components/Menu/ContextMenu.stories.tsx":async()=>t(()=>import("./ContextMenu.stories-DMK2bnkY.js"),__vite__mapDeps([75,1,2,28,76,35,36,37,38,77,78,79,4,40,9,10,11,80,81,82,83,84,85,42,86]),import.meta.url),"./src/components/Menu/DrawerMenu.stories.tsx":async()=>t(()=>import("./DrawerMenu.stories-CbqYlzn6.js"),__vite__mapDeps([87,1,2,28,76,81,4,82,83,9,10,11,35,84,85,37,38,42,86]),import.meta.url),"./src/components/Menu/FloatingMenu.stories.tsx":async()=>t(()=>import("./FloatingMenu.stories-BLRowm5L.js"),__vite__mapDeps([88,1,2,28,76,79,4,40,9,10,11,80,83,35,84,85,37,38,42,86]),import.meta.url),"./src/components/Menu/Menu.stories.tsx":async()=>t(()=>import("./Menu.stories-BwLLVcOL.js"),__vite__mapDeps([89,1,2,28,76,35,36,78,37,38,77,79,4,40,9,10,11,80,81,82,83,84,85,42,86,3,5,6]),import.meta.url),"./src/components/Menu/MenuItem.stories.tsx":async()=>t(()=>import("./MenuItem.stories-Beletagi.js"),__vite__mapDeps([90,1,2,91,30,83,4,9,10,11,35,84]),import.meta.url),"./src/components/Menu/ToggleMenuItem.stories.tsx":async()=>t(()=>import("./ToggleMenuItem.stories-DFsJRKrk.js"),__vite__mapDeps([92,1,2,91,30,83,4,9,10,11,35,84,63,34,36,37,38,64,40]),import.meta.url),"./src/components/ReleaseAnnouncement/ReleaseAnnouncement.stories.tsx":async()=>t(()=>import("./ReleaseAnnouncement.stories-Dmoi7IZ4.js"),__vite__mapDeps([93,1,2,3,4,5,6,12,13,14,15,42,38,9,10,11,94]),import.meta.url),"./src/components/Search/Search.stories.tsx":async()=>t(()=>import("./Search.stories-BLO8Alj9.js"),__vite__mapDeps([95,1,2,4,32,33,34,35,36,37,38,39,40,41,42,43,44,57,26,54,55,46,31,47,59,60,63,64,49,8,7,50,51,52,66,3,5,6,67,96]),import.meta.url),"./src/components/Separator/Separator.stories.tsx":async()=>t(()=>import("./Separator.stories-CWRHzd0n.js"),__vite__mapDeps([97,85,1,2,4,35,37,38,42,86]),import.meta.url),"./src/components/Toast/Toast.stories.tsx":async()=>t(()=>import("./Toast.stories-5gSgBvJt.js"),__vite__mapDeps([98,1,2,4,99]),import.meta.url),"./src/components/Tooltip/Tooltip.stories.tsx":async()=>t(()=>import("./Tooltip.stories-DX03kbtv.js"),__vite__mapDeps([100,1,2,41,42,38,4,43,3,5,6,12,13,14,15,28]),import.meta.url),"./src/components/Typography/Heading.stories.tsx":async()=>t(()=>import("./Heading.stories-B3FZSQ8Z.js"),__vite__mapDeps([101,1,2,10,4,11,9]),import.meta.url),"./src/components/Typography/Text.stories.tsx":async()=>t(()=>import("./Text.stories-y5kTSo8T.js"),__vite__mapDeps([102,9,1,2,10,4,11]),import.meta.url)};async function v(_){return A[_]()}const{composeConfigs:L,PreviewWeb:y,ClientApi:x}=__STORYBOOK_MODULE_PREVIEW_API__,D=async()=>{const _=await Promise.all([t(()=>import("./entry-preview-RtwQF_NP.js"),__vite__mapDeps([103,2,104,38]),import.meta.url),t(()=>import("./entry-preview-docs-XxRUZN73.js"),__vite__mapDeps([105,106,2,107]),import.meta.url),t(()=>import("./preview-TCN6m6T-.js"),__vite__mapDeps([108,109]),import.meta.url),t(()=>import("./preview-cdaExB86.js"),[],import.meta.url),t(()=>import("./preview-Eqv3HFO8.js"),[],import.meta.url),t(()=>import("./preview-B63p-W8V.js"),__vite__mapDeps([110,107]),import.meta.url),t(()=>import("./preview-B4GcaC1c.js"),[],import.meta.url),t(()=>import("./preview-sVLxC_Lr.js"),[],import.meta.url),t(()=>import("./preview-BAz7FMXc.js"),__vite__mapDeps([111,107]),import.meta.url),t(()=>import("./preview-4Up_z4Em.js"),[],import.meta.url),t(()=>import("./preview-BKCN0mOr.js"),__vite__mapDeps([112,25]),import.meta.url),t(()=>import("./preview-DF-d5FoE.js"),[],import.meta.url),t(()=>import("./preview-Ca2ZsTwH.js"),__vite__mapDeps([113,2,114]),import.meta.url)]);return L(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new y(v,D);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; +const __vite__fileDeps=["./Alert.stories-mmhfstRR.js","./jsx-runtime-DoxjgJx5.js","./index-Cu9bd8lq.js","./Button-DrAMl4OR.js","./index-C2KoGaFq.js","./UnstyledButton-CUaD5tB8.js","./Button-B77mvcuQ.css","./error-YokBWoNX.js","./close-D55JIkKE.js","./Text-DCibjNNg.js","./Typography-D-74lRMS.js","./Typography-CfvbYAu4.css","./IconButton-j0Nfr_Qv.js","./IndicatorIcon-iinDG_Nf.js","./IndicatorIcon-QYRvKTDR.css","./IconButton-BR4mjKMm.css","./Alert-CdCLBpDg.css","./Avatar.stories-C2nZE1XQ.js","./Avatar-D_h5K73j.js","./Avatar-C-OTxRZn.css","./AvatarStack.stories-Dp1_CGHD.js","./Badge.stories-GdEuLM3u.js","./Badge-8qM5UjWT.css","./Button.stories-BTvqYoQI.js","./index-DRe3e4pb.js","./index-CVRyq5ci.js","./visibility-on-BrkRTjSX.js","./IconButton.stories-BIwyRNMz.js","./user-profile-CB1AInEY.js","./Action.stories-CEzex-yN.js","./chat-Ce9sY079.js","./check-CXsFGzWm.js","./Action-DyM_p9RG.js","./Text-BTQEANK3.js","./index-8DUk24eR.js","./index-icJLasaE.js","./index-tFWdirwu.js","./index-CZs6vfAl.js","./index-MTP5U5xA.js","./Text-eTlBFuSe.css","./useId-D5m2XpUu.js","./Tooltip-CzfwCewK.js","./floating-ui.react-C9uQe9t5.js","./Tooltip-7uRTK6fW.css","./Action-BCJ2_vsV.css","./Checkbox.stories-CSzNc10-.js","./Checkbox-BH99jySy.js","./Checkbox-C6phXg9v.css","./EditInPlace.stories-DSaFFsxm.js","./EditInPlace-CcsKLZdT.js","./InlineSpinner-BZBYCXgP.js","./InlineSpinner-D3NIwA_H.css","./EditInPlace-yPU976Dk.css","./MFA.stories-DUTKrvlj.js","./MFA-C1Z6qH6F.js","./MFA-DE5RR2Vr.css","./Password.stories-DJZ-3y1O.js","./Password-D4Wdgeua.js","./Radio.stories-BrQSsBlF.js","./Radio-DdGWwLbw.js","./Radio-COtHnm0C.css","./Text.stories-CcYlNlb5.js","./Toggle.stories-BQPrWceB.js","./Toggle-CfFDn7Ov.js","./Toggle-BxfNLRoj.css","./Form.stories-DXf-futa.js","./Submit-KZDJKqs8.js","./Submit-Dv4Cxvmt.css","./Glass.stories-D90RlBK7.js","./Glass-BiF3lt7L.css","./Icon.stories-BeD7cMOU.js","./IndicatorIcon.stories-D8G0qloJ.js","./InlineSpinner.stories-CuUZaHUD.js","./Link.stories-DaewFxQ9.js","./Link-COi2doS4.css","./ContextMenu.stories-D9DDl3C5.js","./leave-ZJppWO3C.js","./index-DPxQQZIb.js","./index-B7y3mIek.js","./FloatingMenu-BxFYcaYT.js","./FloatingMenu-DpTpmI5z.css","./DrawerMenu-BJRINQC3.js","./DrawerMenu-DRle46ZL.css","./MenuItem-Dv7SCHqT.js","./MenuItem-i-QS5Uoi.css","./Separator-6D3uspFz.js","./Separator-BJXoghAv.css","./DrawerMenu.stories-DQqPoW3e.js","./FloatingMenu.stories-Df4_7zLq.js","./Menu.stories-8XUpxvNI.js","./MenuItem.stories-BpMqnH62.js","./extensions-Crvwpr_j.js","./ToggleMenuItem.stories-CzawZtl_.js","./ReleaseAnnouncement.stories-C7aCNla7.js","./ReleaseAnnouncement-DOxWiBH2.css","./Search.stories-lwSifXn5.js","./Search-D1SCc-Zy.css","./Separator.stories-CWRHzd0n.js","./Toast.stories-5gSgBvJt.js","./Toast-OmC1UN0x.css","./Tooltip.stories-DX03kbtv.js","./Heading.stories-JZiutTCa.js","./Text.stories-Be_URqJs.js","./entry-preview-RtwQF_NP.js","./react-18-DoKVqUy3.js","./entry-preview-docs-XxRUZN73.js","./_getPrototype-DpRPMK__.js","./index-DrFu-skq.js","./preview-TCN6m6T-.js","./index-DXimoRZY.js","./preview-B63p-W8V.js","./preview-BAz7FMXc.js","./preview-BKCN0mOr.js","./preview-Ca2ZsTwH.js","./preview-DDsK8yWV.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import"../sb-preview/runtime.js";(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))c(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const e of r.addedNodes)e.tagName==="LINK"&&e.rel==="modulepreload"&&c(e)}).observe(document,{childList:!0,subtree:!0});function m(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function c(o){if(o.ep)return;o.ep=!0;const r=m(o);fetch(o.href,r)}})();const R="modulepreload",T=function(_,i){return new URL(_,i).href},d={},t=function(i,m,c){let o=Promise.resolve();if(m&&m.length>0){const r=document.getElementsByTagName("link"),e=document.querySelector("meta[property=csp-nonce]"),E=e?.nonce||e?.getAttribute("nonce");o=Promise.all(m.map(s=>{if(s=T(s,c),s in d)return;d[s]=!0;const a=s.endsWith(".css"),O=a?'[rel="stylesheet"]':"";if(!!c)for(let p=r.length-1;p>=0;p--){const u=r[p];if(u.href===s&&(!a||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${O}`))return;const n=document.createElement("link");if(n.rel=a?"stylesheet":R,a||(n.as="script",n.crossOrigin=""),n.href=s,E&&n.setAttribute("nonce",E),document.head.appendChild(n),a)return new Promise((p,u)=>{n.addEventListener("load",p),n.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${s}`)))})}))}return o.then(()=>i()).catch(r=>{const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=r,window.dispatchEvent(e),!e.defaultPrevented)throw r})},{createBrowserChannel:P}=__STORYBOOK_MODULE_CHANNELS__,{addons:I}=__STORYBOOK_MODULE_PREVIEW_API__,l=P({page:"preview"});I.setChannel(l);window.__STORYBOOK_ADDONS_CHANNEL__=l;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=l);const A={"./src/components/Alert/Alert.stories.tsx":async()=>t(()=>import("./Alert.stories-mmhfstRR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),"./src/components/Avatar/Avatar.stories.tsx":async()=>t(()=>import("./Avatar.stories-C2nZE1XQ.js"),__vite__mapDeps([17,1,2,18,4,19]),import.meta.url),"./src/components/Avatar/AvatarStack.stories.tsx":async()=>t(()=>import("./AvatarStack.stories-Dp1_CGHD.js"),__vite__mapDeps([20,1,2,4,18,19]),import.meta.url),"./src/components/Badge/Badge.stories.tsx":async()=>t(()=>import("./Badge.stories-GdEuLM3u.js"),__vite__mapDeps([21,1,2,4,10,11,22]),import.meta.url),"./src/components/Button/Button.stories.tsx":async()=>t(()=>import("./Button.stories-BTvqYoQI.js"),__vite__mapDeps([23,24,25,3,1,2,4,5,6,26]),import.meta.url),"./src/components/Button/IconButton/IconButton.stories.tsx":async()=>t(()=>import("./IconButton.stories-BIwyRNMz.js"),__vite__mapDeps([27,1,2,24,25,12,4,5,13,14,15,28]),import.meta.url),"./src/components/Form/Controls/Action/Action.stories.tsx":async()=>t(()=>import("./Action.stories-CEzex-yN.js"),__vite__mapDeps([29,1,2,30,31,8,32,4,33,34,35,36,37,38,39,40,41,42,43,44]),import.meta.url),"./src/components/Form/Controls/Checkbox/Checkbox.stories.tsx":async()=>t(()=>import("./Checkbox.stories-CSzNc10-.js"),__vite__mapDeps([45,1,2,46,4,31,34,35,36,37,38,47]),import.meta.url),"./src/components/Form/Controls/EditInPlace/EditInPlace.stories.tsx":async()=>t(()=>import("./EditInPlace.stories-DSaFFsxm.js"),__vite__mapDeps([48,1,2,49,4,33,34,35,36,37,38,39,40,31,8,7,50,51,52]),import.meta.url),"./src/components/Form/Controls/MFA/MFA.stories.tsx":async()=>t(()=>import("./MFA.stories-DUTKrvlj.js"),__vite__mapDeps([53,1,2,54,4,34,35,36,37,38,55]),import.meta.url),"./src/components/Form/Controls/Password/Password.stories.tsx":async()=>t(()=>import("./Password.stories-DJZ-3y1O.js"),__vite__mapDeps([56,1,2,57,34,35,36,37,38,32,4,33,39,40,41,42,43,44,26,24,25]),import.meta.url),"./src/components/Form/Controls/Radio/Radio.stories.tsx":async()=>t(()=>import("./Radio.stories-BrQSsBlF.js"),__vite__mapDeps([58,1,2,59,4,34,35,36,37,38,60]),import.meta.url),"./src/components/Form/Controls/Text/Text.stories.tsx":async()=>t(()=>import("./Text.stories-CcYlNlb5.js"),__vite__mapDeps([61,1,2,33,34,35,36,37,38,4,39]),import.meta.url),"./src/components/Form/Controls/Toggle/Toggle.stories.tsx":async()=>t(()=>import("./Toggle.stories-BQPrWceB.js"),__vite__mapDeps([62,63,1,2,4,34,35,36,37,38,64]),import.meta.url),"./src/components/Form/Form.stories.tsx":async()=>t(()=>import("./Form.stories-DXf-futa.js"),__vite__mapDeps([65,1,2,32,4,33,34,35,36,37,38,39,40,41,42,43,44,57,26,54,55,46,31,47,59,60,63,64,49,8,7,50,51,52,66,3,5,6,67]),import.meta.url),"./src/components/Glass/Glass.stories.tsx":async()=>t(()=>import("./Glass.stories-D90RlBK7.js"),__vite__mapDeps([68,1,2,4,9,10,11,69]),import.meta.url),"./src/components/Icon/Icon.stories.tsx":async()=>t(()=>import("./Icon.stories-BeD7cMOU.js"),__vite__mapDeps([70,1,2]),import.meta.url),"./src/components/Icon/IndicatorIcon/IndicatorIcon.stories.tsx":async()=>t(()=>import("./IndicatorIcon.stories-D8G0qloJ.js"),__vite__mapDeps([71,1,2,24,25,13,4,14]),import.meta.url),"./src/components/InlineSpinner/InlineSpinner.stories.tsx":async()=>t(()=>import("./InlineSpinner.stories-CuUZaHUD.js"),__vite__mapDeps([72,50,1,2,51]),import.meta.url),"./src/components/Link/Link.stories.tsx":async()=>t(()=>import("./Link.stories-DaewFxQ9.js"),__vite__mapDeps([73,1,2,4,74]),import.meta.url),"./src/components/Menu/ContextMenu.stories.tsx":async()=>t(()=>import("./ContextMenu.stories-D9DDl3C5.js"),__vite__mapDeps([75,1,2,28,76,35,36,37,38,77,78,79,4,40,9,10,11,80,81,82,83,84,85,42,86]),import.meta.url),"./src/components/Menu/DrawerMenu.stories.tsx":async()=>t(()=>import("./DrawerMenu.stories-DQqPoW3e.js"),__vite__mapDeps([87,1,2,28,76,81,4,82,83,9,10,11,35,84,85,37,38,42,86]),import.meta.url),"./src/components/Menu/FloatingMenu.stories.tsx":async()=>t(()=>import("./FloatingMenu.stories-Df4_7zLq.js"),__vite__mapDeps([88,1,2,28,76,79,4,40,9,10,11,80,83,35,84,85,37,38,42,86]),import.meta.url),"./src/components/Menu/Menu.stories.tsx":async()=>t(()=>import("./Menu.stories-8XUpxvNI.js"),__vite__mapDeps([89,1,2,28,76,35,36,78,37,38,77,79,4,40,9,10,11,80,81,82,83,84,85,42,86,3,5,6]),import.meta.url),"./src/components/Menu/MenuItem.stories.tsx":async()=>t(()=>import("./MenuItem.stories-BpMqnH62.js"),__vite__mapDeps([90,1,2,91,30,83,4,9,10,11,35,84]),import.meta.url),"./src/components/Menu/ToggleMenuItem.stories.tsx":async()=>t(()=>import("./ToggleMenuItem.stories-CzawZtl_.js"),__vite__mapDeps([92,1,2,91,30,83,4,9,10,11,35,84,63,34,36,37,38,64,40]),import.meta.url),"./src/components/ReleaseAnnouncement/ReleaseAnnouncement.stories.tsx":async()=>t(()=>import("./ReleaseAnnouncement.stories-C7aCNla7.js"),__vite__mapDeps([93,1,2,3,4,5,6,12,13,14,15,42,38,9,10,11,94]),import.meta.url),"./src/components/Search/Search.stories.tsx":async()=>t(()=>import("./Search.stories-lwSifXn5.js"),__vite__mapDeps([95,1,2,4,32,33,34,35,36,37,38,39,40,41,42,43,44,57,26,54,55,46,31,47,59,60,63,64,49,8,7,50,51,52,66,3,5,6,67,96]),import.meta.url),"./src/components/Separator/Separator.stories.tsx":async()=>t(()=>import("./Separator.stories-CWRHzd0n.js"),__vite__mapDeps([97,85,1,2,4,35,37,38,42,86]),import.meta.url),"./src/components/Toast/Toast.stories.tsx":async()=>t(()=>import("./Toast.stories-5gSgBvJt.js"),__vite__mapDeps([98,1,2,4,99]),import.meta.url),"./src/components/Tooltip/Tooltip.stories.tsx":async()=>t(()=>import("./Tooltip.stories-DX03kbtv.js"),__vite__mapDeps([100,1,2,41,42,38,4,43,3,5,6,12,13,14,15,28]),import.meta.url),"./src/components/Typography/Heading.stories.tsx":async()=>t(()=>import("./Heading.stories-JZiutTCa.js"),__vite__mapDeps([101,1,2,10,4,11,9]),import.meta.url),"./src/components/Typography/Text.stories.tsx":async()=>t(()=>import("./Text.stories-Be_URqJs.js"),__vite__mapDeps([102,9,1,2,10,4,11]),import.meta.url)};async function v(_){return A[_]()}const{composeConfigs:L,PreviewWeb:y,ClientApi:x}=__STORYBOOK_MODULE_PREVIEW_API__,D=async()=>{const _=await Promise.all([t(()=>import("./entry-preview-RtwQF_NP.js"),__vite__mapDeps([103,2,104,38]),import.meta.url),t(()=>import("./entry-preview-docs-XxRUZN73.js"),__vite__mapDeps([105,106,2,107]),import.meta.url),t(()=>import("./preview-TCN6m6T-.js"),__vite__mapDeps([108,109]),import.meta.url),t(()=>import("./preview-CqHp2ixe.js"),[],import.meta.url),t(()=>import("./preview-Eqv3HFO8.js"),[],import.meta.url),t(()=>import("./preview-B63p-W8V.js"),__vite__mapDeps([110,107]),import.meta.url),t(()=>import("./preview-B4GcaC1c.js"),[],import.meta.url),t(()=>import("./preview-sVLxC_Lr.js"),[],import.meta.url),t(()=>import("./preview-BAz7FMXc.js"),__vite__mapDeps([111,107]),import.meta.url),t(()=>import("./preview-4Up_z4Em.js"),[],import.meta.url),t(()=>import("./preview-BKCN0mOr.js"),__vite__mapDeps([112,25]),import.meta.url),t(()=>import("./preview-DF-d5FoE.js"),[],import.meta.url),t(()=>import("./preview-Ca2ZsTwH.js"),__vite__mapDeps([113,2,114]),import.meta.url)]);return L(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new y(v,D);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _}; diff --git a/assets/preview-cdaExB86.js b/assets/preview-CqHp2ixe.js similarity index 71% rename from assets/preview-cdaExB86.js rename to assets/preview-CqHp2ixe.js index 8a489f38..47479a29 100644 --- a/assets/preview-cdaExB86.js +++ b/assets/preview-CqHp2ixe.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["./DocsRenderer-K4EAMTCU-Bh-bDDp5.js","./iframe-CE9hY0S1.js","./index-Cu9bd8lq.js","./react-18-DoKVqUy3.js","./index-MTP5U5xA.js","./index-icJLasaE.js","./index-B7y3mIek.js","./index-tFWdirwu.js","./index-CZs6vfAl.js","./index-DXimoRZY.js","./_getPrototype-DpRPMK__.js","./index-DrFu-skq.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{_ as a}from"./iframe-CE9hY0S1.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),n={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-K4EAMTCU-Bh-bDDp5.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(r=>_[r]).length===0&&!e.parameters.docs?.disable}}};export{n as parameters}; +const __vite__fileDeps=["./DocsRenderer-K4EAMTCU-CYg_3s1h.js","./iframe-CdhHfPBR.js","./index-Cu9bd8lq.js","./react-18-DoKVqUy3.js","./index-MTP5U5xA.js","./index-icJLasaE.js","./index-B7y3mIek.js","./index-tFWdirwu.js","./index-CZs6vfAl.js","./index-DXimoRZY.js","./_getPrototype-DpRPMK__.js","./index-DrFu-skq.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{_ as a}from"./iframe-CdhHfPBR.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),n={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-K4EAMTCU-CYg_3s1h.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(r=>_[r]).length===0&&!e.parameters.docs?.disable}}};export{n as parameters}; diff --git a/assets/syntaxhighlighter-BP7B2CQK-CRDHli4q.js b/assets/syntaxhighlighter-BP7B2CQK-C4OGtK3J.js similarity index 88% rename from assets/syntaxhighlighter-BP7B2CQK-CRDHli4q.js rename to assets/syntaxhighlighter-BP7B2CQK-C4OGtK3J.js index 4d00c097..7f2230dc 100644 --- a/assets/syntaxhighlighter-BP7B2CQK-CRDHli4q.js +++ b/assets/syntaxhighlighter-BP7B2CQK-C4OGtK3J.js @@ -1 +1 @@ -import{S as l,c as f,s as h,a as x}from"./DocsRenderer-K4EAMTCU-Bh-bDDp5.js";import"./iframe-CE9hY0S1.js";import"../sb-preview/runtime.js";import"./index-Cu9bd8lq.js";import"./react-18-DoKVqUy3.js";import"./index-MTP5U5xA.js";import"./index-icJLasaE.js";import"./index-B7y3mIek.js";import"./index-tFWdirwu.js";import"./index-CZs6vfAl.js";import"./index-DXimoRZY.js";import"./_getPrototype-DpRPMK__.js";import"./index-DrFu-skq.js";export{l as SyntaxHighlighter,f as createCopyToClipboardFunction,h as default,x as supportedLanguages}; +import{S as l,c as f,s as h,a as x}from"./DocsRenderer-K4EAMTCU-CYg_3s1h.js";import"./iframe-CdhHfPBR.js";import"../sb-preview/runtime.js";import"./index-Cu9bd8lq.js";import"./react-18-DoKVqUy3.js";import"./index-MTP5U5xA.js";import"./index-icJLasaE.js";import"./index-B7y3mIek.js";import"./index-tFWdirwu.js";import"./index-CZs6vfAl.js";import"./index-DXimoRZY.js";import"./_getPrototype-DpRPMK__.js";import"./index-DrFu-skq.js";export{l as SyntaxHighlighter,f as createCopyToClipboardFunction,h as default,x as supportedLanguages}; diff --git a/iframe.html b/iframe.html index a7b8bc81..04aae64b 100644 --- a/iframe.html +++ b/iframe.html @@ -509,7 +509,7 @@ window.global = window; - + diff --git a/project.json b/project.json index 1625fa69..9766bfab 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1718789360258,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"packageManager":{"type":"yarn","version":"1.22.22"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.1.1","storybookVersionSpecifier":"^8.1.1","language":"typescript","storybookPackages":{"@storybook/addon-a11y":{"version":"8.1.1"},"@storybook/manager-api":{"version":"8.1.1"},"@storybook/react":{"version":"8.1.1"},"@storybook/react-vite":{"version":"8.1.1"},"@storybook/test":{"version":"8.1.1"},"eslint-plugin-storybook":{"version":"0.6.14"},"storybook":{"version":"8.1.1"}},"addons":{"@storybook/addon-links":{"version":"8.1.1"},"@storybook/addon-essentials":{"version":"8.1.1"},"@storybook/addon-interactions":{"version":"8.1.1"},"@storybook/addon-designs":{"version":"8.0.1"},"@storybook/addon-themes":{"version":"8.1.1"}}} +{"generatedAt":1718789986813,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"packageManager":{"type":"yarn","version":"1.22.22"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.1.1","storybookVersionSpecifier":"^8.1.1","language":"typescript","storybookPackages":{"@storybook/addon-a11y":{"version":"8.1.1"},"@storybook/manager-api":{"version":"8.1.1"},"@storybook/react":{"version":"8.1.1"},"@storybook/react-vite":{"version":"8.1.1"},"@storybook/test":{"version":"8.1.1"},"eslint-plugin-storybook":{"version":"0.6.14"},"storybook":{"version":"8.1.1"}},"addons":{"@storybook/addon-links":{"version":"8.1.1"},"@storybook/addon-essentials":{"version":"8.1.1"},"@storybook/addon-interactions":{"version":"8.1.1"},"@storybook/addon-designs":{"version":"8.0.1"},"@storybook/addon-themes":{"version":"8.1.1"}}}