@hazem3500/palette 0.9.148 → 0.9.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accent-picker-B5LQWAPK.js → accent-picker-AZMAAXUQ.js} +1 -1
- package/dist/{account-tokens-ZMRW3JYS.js → account-tokens-7MLWWJ5M.js} +1 -1
- package/dist/{chunk-5MFM5GPR.js → chunk-7AZHRTDG.js} +1 -1
- package/dist/{chunk-BKIUQ7QJ.js → chunk-BJZRFYGE.js} +1 -1
- package/dist/{chunk-MKWOTTCN.js → chunk-F3EKFOCG.js} +1 -1
- package/dist/chunk-FQXDOYYW.js +1 -0
- package/dist/{chunk-I2SQONE2.js → chunk-JZQVHG5W.js} +1 -1
- package/dist/{chunk-A75MS3NI.js → chunk-WILZOQC2.js} +1 -1
- package/dist/chunk-WWMQITEG.js +1 -0
- package/dist/{color-editor-BRURQZA7.js → color-editor-MJ37L42Y.js} +1 -1
- package/dist/css-value-parts.d.ts +5 -0
- package/dist/{design-comment-A433M6JL.js → design-comment-Z44WKYNX.js} +1 -1
- package/dist/{design-export-5QM7HHRT.js → design-export-VSGVI6TL.js} +1 -1
- package/dist/{design-geometry-XO6RM4YB.js → design-geometry-LFYYREHW.js} +1 -1
- package/dist/design-mode.js +1 -1
- package/dist/design-panel-3KSRAHPL.js +1 -0
- package/dist/design-panel-styles.d.ts +1 -1
- package/dist/design-panel.d.ts +2 -0
- package/dist/field-controls-U3WH6AB4.js +1 -0
- package/dist/{frame-iframe-ZLYVQEQD.js → frame-iframe-SVAQVLKW.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{inline-text-editor-RSHGHTFR.js → inline-text-editor-7PS5PNIX.js} +1 -1
- package/dist/node.mjs +1 -1
- package/dist/{onboarding-2TITOWW3.js → onboarding-CICQPGJ2.js} +1 -1
- package/dist/{pin-groups-J24YDQIU.js → pin-groups-JEVNDEQT.js} +1 -1
- package/dist/{pin-move-HKUATGE2.js → pin-move-36NKPUY7.js} +1 -1
- package/dist/{react-props-panel-IUOMUL2Z.js → react-props-panel-S6MOWQ3Q.js} +1 -1
- package/dist/react.js +1 -1
- package/dist/server.js +1 -1
- package/dist/setup.js +1 -1
- package/dist/{shortcut-help-M45D4PUL.js → shortcut-help-G4MSN5XL.js} +1 -1
- package/dist/{snapshot-annotate-DMJKY2I6.js → snapshot-annotate-CYDIBNCW.js} +1 -1
- package/dist/{thread-snapshot-PQJ6QIUN.js → thread-snapshot-JNDVIHVP.js} +1 -1
- package/dist/{token-custom-QUDSPT6I.js → token-custom-M27ZLIKP.js} +1 -1
- package/dist/{token-page-LLR4EMEC.js → token-page-JZTTTGDT.js} +1 -1
- package/dist/{token-picker-76CU4ZP5.js → token-picker-POK6RFTF.js} +1 -1
- package/dist/{toolbar-runtime-RKA2HVCZ.js → toolbar-runtime-F7J2FZO6.js} +1 -1
- package/package.json +1 -1
- package/server/setup-client.txt +61 -59
- package/dist/chunk-KIVVWQD7.js +0 -1
- package/dist/chunk-QALADLZS.js +0 -1
- package/dist/design-panel-GU2SWV33.js +0 -1
- package/dist/field-controls-4AIIXPNQ.js +0 -1
package/dist/chunk-KIVVWQD7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e,t=!1){let i=[],s=0,l=0,r="",n=!1;for(let a=0;a<e.length;a++){let o=e[a];n?n=!1:"\\"!==o?r?o===r&&(r=""):'"'!==o&&"'"!==o?("("===o&&l++,")"===o&&l--,!l&&(t?","===o:/\s/.test(o))&&(e.slice(s,a).trim()&&i.push(e.slice(s,a).trim()),s=a+1)):r=o:n=!0}return e.slice(s).trim()&&i.push(e.slice(s).trim()),i}function t(t){let i=e(t,!0)[0];if(!i)return t;let s=/^(['"])([\s\S]*)\1$/.exec(i);return(s?s[2]:i.replace(/\s+/g," ")).replace(/\\(.)/g,"$1")}var i=/^(serif|sans-serif|monospace|cursive|fantasy|system-ui|ui-(serif|sans-serif|monospace|rounded)|math|emoji|fangsong)$/i;function s(s,l,r){let n=[...s.matchAll(/var\(\s*(--[\w-]+)\s*(,)?/g)].find(e=>!e[2]&&!r(e[1]).trim())?.[1],a=e(l,!0)[0]??"",o=s&&s!==l?`${s} → ${l}`:l;return n?{label:`${n} unresolved`,note:"",title:`${s} does not resolve; the text renders with ${l}`}:{label:t(l),note:i.test(a)?"generic":"",title:o}}var l=/^\s*((?:(?:italic|oblique|normal|small-caps|bold|bolder|lighter|[1-9]00)\s+)*)([+-]?(?:\d*\.)?\d+[a-z%]*)(?:\s*\/\s*((?:\d*\.)?\d+[a-z%]*|normal))?(?:\s+([\s\S]+?))?\s*$/i;function r(e){let t=l.exec(e);if(!t)return;let i=t[1].trim().split(/\s+/).filter(Boolean);return{style:i.filter(e=>/^(italic|oblique|small-caps)$/i.test(e)).join(" "),weight:i.find(e=>/^(bold|bolder|lighter|[1-9]00)$/i.test(e))??"",size:t[2],lineHeight:t[3]??"",family:t[4]??""}}function n(e){return[e.style,e.weight,e.size+(e.lineHeight?`/${e.lineHeight}`:""),e.family].filter(Boolean).join(" ")}export{e as a,t as b,s as c,r as d,n as e};
|
package/dist/chunk-QALADLZS.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e,t){let o=t&&/^#[0-9a-f]{6}$/i.test(t)?t:c,r=[1,3,5].map(e=>{let t=parseInt(o.slice(e,e+2),16)/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}),n=.2126*r[0]+.7152*r[1]+.0722*r[2];e.style.backgroundColor=o,e.style.color=n>.179?"#161616":"#ffffff",e.style.setProperty("--reviewer-accent",o),e.style.setProperty("--reviewer-ink",n>.179?"#161616":"#ffffff")}function t(e,t){e.ownerDocument.defaultView?.addEventListener("keydown",t=>{"Escape"===t.key&&t.composedPath().includes(e)&&t.preventDefault()},{capture:!0,signal:t})}function o(e,t,o,r){let n=e.getRootNode();document.addEventListener(t,o,r),b(t,o,r),n.addEventListener(t,e=>w(e,n)&&o(e),r)}function r(e,t="",o){let r=document.createElement(e);return t&&(r.className=t),void 0!==o&&(r.textContent=o),r}function n(e){let t=f.get(e);if(!t){let o=document.createElement("div");o.innerHTML=u[e],t=o.querySelector("svg"),f.set(e,t)}return t.cloneNode(!0)}function i(e,t,o="icon",i){let a=r("button",o);return a.type="button",a.title=e,a.setAttribute("aria-label",e),i?a.append(n(i)):a.textContent=e,a.addEventListener("click",t),a}function a(e){let t=Math.max(0,Math.floor((Date.now()-e)/6e4));return t?t<60?`${t}m`:t<1440?`${Math.floor(t/60)}h`:`${Math.floor(t/1440)}d`:"Just now"}function s(e){let t=e.avatarUrl;if(t?.startsWith("data:image/jpeg;base64,"))return t;try{return t||=e.verified?C?.({id:e.id,name:e.name}):"","https:"==new URL(t).protocol?t:void 0}catch{}}function l(t){let o=r("span","avatar",m(t.name));e(o,t.accentColor);let n=s(t);if(n){let e=r("img");e.alt="",e.referrerPolicy="no-referrer",e.loading="lazy",e.decoding="async",e.addEventListener("error",()=>e.remove(),{once:!0}),e.src=n,o.append(e)}return o}function h(){let e=r("img","google-logo");return e.src="data:image/webp;base64,UklGRjQFAABXRUJQVlA4WAoAAAAQAAAAJwAAJwAAQUxQSI0CAAABoHTbtmk7X9Da+8S2bScl207NSdEqOSnZtm3btm3b5vfdszFbu2fj3ohg4EgKE84C2NCD8w/kQEBEWWr3nnv1t/5+dnq3qhmIWEB+MEZUc+a1P4hDI46fl8ZWJDIXT7bBLglACKW1lkIC+LeiEhH3rXkWh2bGhooSX4elIOYyTvXuQgvthwD2lCbm8jv+QqhgX69U3BDfahnDbOIOv10IaZcuNQAthTJ3W7Iz5jj6MzoN5gsCsb+hkdA6xNYMdswo3yPLlwr/HRjavFLpKq1HnNIQAuvTEHfwtRzm/RWwsTpZSNnkBLA2reOkgJrFlDJ8fO4aUc8Z4zxF3Jm6wnlnluIwpOm/rRn3zILMVmFuchuFWhkk/G1IKX0tRG7Mj/bQEkP9TcTcS56bRixxNT13nJYQGv6LYiXRi1JQUuhn7BU+FCZu8915/szZHsyaW3+JFR9lzMHQKiSA+TehDJvrZHKejEkPhDz9BVprSIxw2gJIeKDx1jCdtAE/bkQBfMF816jYm9eJnbII8AcnHDcqQty26f9/+Wbia8wwhakNEuI3a+ECForcgTI23XKb/SJwJeoXP6r8hvGWf+rQfGM6PP3HLKSkOUZREtdyuPr5X0NK6XFTUJ0/Shk2zzsfPHA4PKDiD2DqTdjENW+Q+GLOG2ecB5yo7kNIs6ATKe35NT8TNtV05MpO/A9SI+IgbEs80oOHLj34/9DwlpXLVmk+YOsnWNUIrE0ZUcCprqEv2taX8F8IAEJZpTwpQsyvV8qhV1YhEt8aEPfon3bqn40Qv9sQ9+mp1D5AS4mXTSlIVp+l1MC2EhQkpfdKGF/yXDtGPOn/R+ze8pYpXGKU0P/ol/5xeX7/hnmIyNE+BABWUDgggAIAAPAOAJ0BKigAKAA+kTaYSKWioiEx0zwAsBIJbA21pDlcXfF9i+WboN9gPBWTF9CGOv+3exTxOemJ5gP1g/WD2dv2A9z28QfsB7AH7Hel97Gv7g+lM0V8ADqragG6Ogz0vxlCvZPUjEDSZ2op9gUkBcEOWCdrwbhOk59dAQKVoLQAAP3NAMEgkvVs9kbfXAegM5bkBPSXN1k2jH7J2Plxn1FO7s7IlpA3cU5ArC1OFra/mIXhFWVEMUqqsnfjfxVKSGrDsmVkICTyo2YIBjdFNBNYVopRGc06QBr8cZ+nKNW6hC7dUUR75TB1+9Sgp0K1L92yxK521mI+N543Hzgbh12IHJUQvKc76HivhKZu3w9qMAnJgNmwFL9xorCon8h3MUJUfI8dDsL5ZfUZnEuAdn+3NAoxK5e4mp9cNUjZJqQM1F5fpnWgQwaFQ+CTxS+09EqonIu8b4+geceUXX1o7SqN0WZnD8X0a/nLGc8ReHiq6TrfmYGxNYuc+RfsuT2eGflhA/eNO7QhaTIWlHi2ciPL60gHhP2pAcC7AR9iGzyjHZUQIMjs7iYRTGONVBSEtSK14cDgj654kNy/0BcnIfzOzcAF/zE3ecnV9IzmyucJi89BshKRxwHzEXG2tG+Awv+yh3FMhpA1P1acth8YbM0Cc9iuNOe0ey8z40UQFNWi/s+AKsRslRpuyUXRa9A9wYQrDRglZ2Yw2GbOHSJkBThgt5YlyZNeSYJe+0174VXupofopvOuBCZXJ5SfN37x2FOB89X32mkFNZOmgKJjrkzLEYp3bgZX0Zke/UAQtn7cnF6HzSA0/X1/y74SOaLSXGk+bNr5NwH/sZbVdf0IAAA=",e.alt="",e.width=e.height=18,e}function d(e,t,o){let r=!1,n=t=>{let o=e.getBoundingClientRect();return t.target===e&&(t.clientX<o.left||t.clientX>o.right||t.clientY<o.top||t.clientY>o.bottom)};e.addEventListener("pointerdown",e=>r=n(e),{signal:o}),e.addEventListener("click",e=>r&&n(e)&&t(),{signal:o})}var c,u,p,k,g,v,w,f,m,C,A;import{i as x,j as M,t as b}from"./chunk-GAHDL7C2.js";c="#c8b5f4",u={chevron:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg>',edit:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M11 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 22 5.12 22 6.8 22h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.72 20 18.88 20 17.2V13M8 16h1.675c.489 0 .733 0 .963-.055.204-.05.4-.13.579-.24.201-.123.374-.296.72-.642L21.5 5.5a2.121 2.121 0 0 0-3-3l-9.563 9.563c-.346.346-.519.519-.642.72a2 2 0 0 0-.24.579c-.055.23-.055.474-.055.963V16Z"></path></svg>',trash:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M16 6v-.8c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 2 13.92 2 12.8 2h-1.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C8 3.52 8 4.08 8 5.2V6m2 5.5v5m4-5v5M3 6h18m-2 0v11.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C5 19.72 5 18.88 5 17.2V6"></path></svg>',info:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 16v-4m0-4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"></path></svg>',more:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm7 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path></svg>',person:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"></path></svg>',search:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m21 21-3.5-3.5m2.5-6a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0Z"></path></svg>',plus:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14m-7-7h14"></path></svg>',comment:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.094 11.229A8.01 8.01 0 0 1 6 10c0-4.418 3.605-8 8.053-8 4.447 0 8.052 3.582 8.052 8a7.94 7.94 0 0 1-.52 2.835c-.07.182-.105.274-.12.345a.897.897 0 0 0-.024.194c-.002.073.008.153.028.314l.403 3.27c.043.355.065.532.006.66a.5.5 0 0 1-.257.252c-.13.055-.306.03-.66-.022l-3.184-.467c-.167-.024-.25-.037-.326-.036a.898.898 0 0 0-.2.021 2.989 2.989 0 0 0-.358.122 8.174 8.174 0 0 1-4.07.42M7.632 22C10.597 22 13 19.538 13 16.5S10.597 11 7.632 11c-2.965 0-5.369 2.462-5.369 5.5 0 .61.097 1.198.277 1.747.075.232.113.348.126.427.013.083.015.13.01.213-.005.08-.025.17-.065.351L2 22l2.995-.409c.163-.022.245-.034.316-.033.076 0 .115.005.19.02.07.013.173.05.381.123a5.246 5.246 0 0 0 1.75.299Z"></path></svg>',copy:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 15c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C2 13.398 2 12.932 2 12V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C3.52 2 4.08 2 5.2 2H12c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C15 3.602 15 4.068 15 5m-2.8 17h6.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-6.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 9 19.92 9 18.8 9h-6.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C9 10.52 9 11.08 9 12.2v6.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C10.52 22 11.08 22 12.2 22Z"></path></svg>',pointer:'<svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path transform="translate(24 0) scale(-1 1)" d="M3.41345 10.7445C2.81811 10.513 2.52043 10.3972 2.43353 10.2304C2.35819 10.0858 2.35809 9.91354 2.43326 9.76886C2.51997 9.60195 2.8175 9.48584 3.41258 9.25361L20.3003 2.66327C20.8375 2.45364 21.1061 2.34883 21.2777 2.40616C21.4268 2.45596 21.5437 2.57292 21.5935 2.72197C21.6509 2.8936 21.5461 3.16219 21.3364 3.69937L14.7461 20.5871C14.5139 21.1822 14.3977 21.4797 14.2308 21.5664C14.0862 21.6416 13.9139 21.6415 13.7693 21.5662C13.6025 21.4793 13.4867 21.1816 13.2552 20.5862L10.6271 13.8282C10.5801 13.7074 10.5566 13.647 10.5203 13.5961C10.4881 13.551 10.4487 13.5115 10.4036 13.4794C10.3527 13.4431 10.2923 13.4196 10.1715 13.3726L3.41345 10.7445Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',expand:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 3v18M7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3Z"></path></svg>',close:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M18 6 6 18M6 6l12 12"></path></svg>',check:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg>',arrow:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 19V5m0 0-7 7m7-7 7 7"></path></svg>',link:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12.708 18.364-1.415 1.414a5 5 0 1 1-7.07-7.07l1.413-1.415m12.728 1.414 1.415-1.414a5 5 0 0 0-7.071-7.071l-1.415 1.414M8.5 15.5l7-7"></path></svg>',code:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m17 17 5-5-5-5M7 7l-5 5 5 5m7-14-4 18"></path></svg>',smile:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>',tag:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 8h.01M2 5.2v4.475c0 .489 0 .733.055.963.05.204.13.4.24.579.123.201.296.374.642.72l7.669 7.669c1.188 1.188 1.782 1.782 2.467 2.004a3 3 0 0 0 1.854 0c.685-.222 1.28-.816 2.467-2.004l2.212-2.212c1.188-1.188 1.782-1.782 2.004-2.467a3 3 0 0 0 0-1.854c-.222-.685-.816-1.28-2.004-2.467l-7.669-7.669c-.346-.346-.519-.519-.72-.642a2.001 2.001 0 0 0-.579-.24C10.409 2 10.165 2 9.676 2H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 3.52 2 4.08 2 5.2ZM8.5 8a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"></path></svg>',design:'<svg viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M2 12c0 5.523 4.477 10 10 10a3 3 0 0 0 3-3v-.5c0-.464 0-.697.026-.892a3 3 0 0 1 2.582-2.582c.195-.026.428-.026.892-.026h.5a3 3 0 0 0 3-3c0-5.523-4.477-10-10-10S2 6.477 2 12Z"></path><path d="M7 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm9-4a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-6-1a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path></svg>'},p=()=>matchMedia("(prefers-reduced-motion: reduce)").matches,k=e=>M(e)&&(e.matches("input,textarea,select")||e.isContentEditable),g=e=>x(e)&&(e.isContentEditable||"textarea"===e.localName||"input"===e.localName&&/^(text|search|number|url|email|tel|password)$/.test(e.type)&&!e.readOnly&&!e.matches("[data-scrub]:not([data-editing])")||e.matches('[aria-expanded="true"]:is(select,[role=combobox])')||!!e.closest('[contenteditable]:not([contenteditable="false"]),[role=textbox],[role=searchbox],[role=listbox]')),v="pointerdown mousedown touchstart touchmove touchend click wheel focusin focusout keydown keyup keypress".split(" "),w=(e,t)=>t instanceof ShadowRoot&&t.host.hasAttribute("data-isolate")&&(!e.type.startsWith("key")||k(e.composedPath()[0])),f=new Map,m=e=>e.trim().split(/\s+/).slice(0,2).map(e=>e[0]).join("").toUpperCase(),A=e=>{C=e};export{c as a,e as b,u as c,p as d,g as e,v as f,w as g,t as h,o as i,r as j,n as k,i as l,m,a as n,A as o,s as p,l as q,h as r,d as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,b as t,d as n}from"./chunk-I2SQONE2.js";import"./chunk-KIVVWQD7.js";import{d as o}from"./chunk-4FX5IS2U.js";import"./chunk-XOMOONGK.js";var r=0;var i='.design-inspector__controls>*+*{border-top:1px solid #ffffff0d}.design-group{--palette-inset:12px;padding:0 var(--palette-inset) 10px}.design-section>.design-group{padding-bottom:12px}.design-group summary{cursor:pointer;display:flex;align-items:center;gap:4px;height:36px;color:#e9e6e1;font-size:11px;font-weight:600;list-style:none}.design-group summary::-webkit-details-marker{display:none}.design-group summary:after{content:"";width:5px;height:5px;margin:-2px 0 0 3px;border:solid #77736f;border-width:0 1.2px 1.2px 0;rotate:45deg;opacity:0;transition:opacity .12s,rotate .2s var(--ease-smooth-out)}.design-group:not([open]) summary:after{rotate:-45deg;margin:0 0 0 2px}.design-group summary:is(:hover,:focus-visible):after,.design-group:not([open]) summary:after{opacity:1}.design-group summary:focus-visible{outline-offset:-2px;border-radius:6px}.design-section{position:relative;--palette-inset:12px}.design-section__title{display:flex;align-items:center;height:36px;padding:0 var(--palette-inset);color:#898680;font-size:11px;font-weight:600}.design-section__tools{position:absolute;z-index:1;top:6px;right:calc(var(--palette-inset) - 4px);display:flex;gap:2px}.design-section__tools button{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;color:#898680;font-size:16px;line-height:1}.design-section__tools button:hover{background:#ffffff12;color:#f1efeb}.design-text-edit{font-size:0!important}.design-text-edit:before{content:"T";font:600 13px/1 Georgia,Times New Roman,serif}.design-text-edit[aria-label^=Finish]{background:#bda6ef33;color:#e6dcfb!important}.design-text-edit:disabled{opacity:.35;cursor:default}.design-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 8px}.design-field{position:relative;--lead:4px;min-width:0;height:28px;display:flex;align-items:center;border-radius:6px;background:#ffffff0a;color:#898680;transition:box-shadow .12s var(--ease-smooth-out)}.design-field:hover{box-shadow:inset 0 0 0 1px #ffffff1c}.design-field:focus-within{box-shadow:inset 0 0 0 1px #bda6ef}.design-field:has([aria-invalid=true]){box-shadow:inset 0 0 0 1px #fda29b}.design-field[data-wide]{grid-column:1/-1}.design-field:has(.design-field__glyph){--lead:22px}.design-field--color{--lead:26px}.design-field>input:not([type=color]),.design-field>select{flex:1;box-sizing:border-box;width:100%;min-width:0;height:100%;margin:0;padding:0 8px;border:0;border-radius:6px;outline:0;box-shadow:none;background:none;color:#f1efeb;font:inherit;font-size:11px;font-variant-numeric:tabular-nums;text-overflow:ellipsis}.design-field input[type=number]{appearance:textfield;-moz-appearance:textfield}.design-field input::-webkit-inner-spin-button{appearance:none}.design-field__glyph{flex:none;display:grid;place-items:center;width:22px;height:100%;margin-right:-6px;color:#77736f;font-size:10px;font-weight:600;cursor:ew-resize;user-select:none;touch-action:none}.design-field__glyph:hover{color:#e9e6e1}.design-field__glyph svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.1}.design-field input[type=color]{flex:none;width:16px;height:16px;margin:0 -2px 0 6px;padding:0;border:0;border-radius:4px;box-shadow:inset 0 0 0 1px #ffffff26;background:none;cursor:pointer}.design-field input[type=color]::-webkit-color-swatch-wrapper{padding:0}.design-field input[type=color]::-webkit-color-swatch{border:0;border-radius:4px;box-shadow:inset 0 0 0 1px #ffffff26}.design-field input[type=color]::-moz-color-swatch{border:0;border-radius:4px}\n',l=[{property:"width",label:"Width",kind:"size",glyph:"W"},{property:"height",label:"Height",kind:"size",glyph:"H"},{property:"padding",label:"Padding",kind:"length",glyph:"M1.5 1.5h9v9h-9zM4.5 4.5h3v3h-3z",max:200},{property:"gap",label:"Gap",kind:"length",glyph:"M1.5 1.5h3v9h-3zM7.5 1.5h3v9h-3z",max:200},{property:"margin",label:"Margin",kind:"length",glyph:"M4 4h4v4H4zM1 3V1h2m6 0h2v2m0 6v2H9m-6 0H1V9",max:200},{property:"border-radius",label:"Corner radius",kind:"length",glyph:"M1.5 10.5V6A4.5 4.5 0 0 1 6 1.5h4.5",max:96},{property:"display",label:"Layout",kind:"select",values:["block","flex","grid","inline-flex","inline-grid"]},{property:"font-family",label:"Font family",kind:"text",wide:!0,placeholder:"system-ui, sans-serif"},{property:"font-size",label:"Font size",kind:"length",wide:!0,glyph:"M2 3V1.5h8V3M6 1.5v9m-1.5 0h3",min:1,max:160},{property:"line-height",label:"Line height",kind:"text",glyph:"M1 1.5h10M1 10.5h10M3.5 8.5 6 3l2.5 5.5",placeholder:"1.4 or 24px"},{property:"letter-spacing",label:"Letter spacing",kind:"text",glyph:"M1 2.5v7M11 2.5v7M3.5 9.5 6 2.5l2.5 7M4.4 7h3.2",placeholder:"0 or 0.02em"},{property:"font-weight",label:"Weight",kind:"select",values:["300","400","500","600","700","800"]},{property:"text-align",label:"Alignment",kind:"select",values:["left","center","right","justify"]},{property:"color",label:"Text color",kind:"color",wide:!0},{property:"background-color",label:"Fill",kind:"color",wide:!0},{property:"border-width",label:"Border width",kind:"length",glyph:"M1 2.5h10M1 6h10M1 9.5h10",max:24},{property:"border-style",label:"Border style",kind:"select",values:["none","solid","dashed","dotted"]},{property:"border-color",label:"Border color",kind:"color"},{property:"fill",label:"Fill",kind:"color",wide:!0},{property:"stroke",label:"Stroke",kind:"color",wide:!0},{property:"opacity",label:"Layer opacity",kind:"text",glyph:"M6 1.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9v9",min:0,max:1,step:.01,placeholder:"0–1"},{property:"box-shadow",label:"Shadow",kind:"text",wide:!0},{property:"stroke-width",label:"Stroke width",kind:"length",min:0,max:24}],a=import("./select-menu-OZVNHZ73.js").catch(()=>null),d=import("./live-colors-D426RBEC.js").catch(()=>null),p=import("./field-controls-4AIIXPNQ.js").catch(()=>null),s=["font-family","font-size","line-height","letter-spacing","font-weight","text-align","color"];function c(e){let t=e.match(/^rgba\(.*,\s*([\d.]+)\)$/)?.[1];return void 0===t?/^rgb\(/.test(e)?o(e):e||"transparent":Number(t)?e:"transparent"}function g(e,t,n){let o=(n||getComputedStyle(t).getPropertyValue(e.property)).trim();if("color"===e.kind)return c(o);if("length"===e.kind||"size"===e.kind){let t=o.match(/^(-?\d+(?:\.\d+)?)px$/);return t?String(Math.round(10*Number(t[1]))/10):"size"===e.kind?o||"auto":"0"}return o}function u(t,i){let{element:l}=i,a=document.createElement("div");a.className=`design-field design-field--${t.kind}`,a.dataset.fieldProperty=t.property,a.toggleAttribute("data-wide",!!t.wide);let d="select"===t.kind?document.createElement("select"):document.createElement("input");if(d instanceof HTMLSelectElement)for(let e of t.values??[]){let t=document.createElement("option");t.value=t.textContent=e,d.append(t)}else d.type="length"===t.kind?"number":"text",d.autocomplete="off",d.spellcheck=!1,d.placeholder=t.placeholder??"","length"===t.kind&&(d.min=String(t.min??0),d.max=String(t.max??1e3),d.setAttribute("inputmode","decimal"));let p=function(e,t,n,o=!1){n.dataset.fieldLabel=t.label,o||(n.style.marginTop="20px");let i=document.createElement("label");return i.className="design-field__label",o||(i.style.cssText="position:absolute;inset:auto 0 calc(100% + 4px);color:#b5b1ab;font-size:10px;line-height:14px;white-space:normal;overflow-wrap:anywhere;cursor:default"),e.id||="palette-field-"+ ++r,i.htmlFor=e.id,i.textContent=t.label,i}(d,t,a);a.append(p),d.dataset.property=t.property,d.setAttribute("aria-label",t.label);let s=()=>{let e=g(t,l);d instanceof HTMLSelectElement&&![...d.options].some(t=>t.value===e)&&d.prepend(new Option(e,e)),d.value=e;let n=a.querySelector('input[type="color"]');n&&(n.value=o(e))};s();let c=()=>i.begin(d,t.property),u=()=>f(()=>{i.apply(d,t.property,n(t,d)),i.commit(d,t.property,!1)}),h=()=>f(()=>i.commit(d,t.property));if(d.addEventListener("focus",c),d.addEventListener("input",u),d.addEventListener("change",h),d.addEventListener("blur",h),"color"===t.kind){let e=document.createElement("input");e.type="color",e.setAttribute("aria-label",`${t.label} picker`);let n=()=>{e.value=o(d.value)};n(),e.addEventListener("pointerdown",c),e.addEventListener("focus",c),e.addEventListener("input",()=>{d.value=e.value,u()}),e.addEventListener("change",h),d.addEventListener("input",n),a.append(e)}if(t.glyph){let e=e=>{let n=d.value.trim().match(/^(-?\d*\.?\d+)([a-z%]*)$/i),o=n?n[2]:"text"===t.kind?"px":"",r=n?Number(n[1]):parseFloat(getComputedStyle(l).getPropertyValue(t.property))||0,i=Math.round(100*(r+e*(t.step??("text"!==t.kind||o?1:.1))))/100;("text"!==t.kind||t.max)&&(i=Math.min(t.max??1e4,Math.max(t.min??0,i))),d.value=`${i}${o}`,u()},n=document.createElement("span");n.className="design-field__glyph",n.setAttribute("aria-hidden","true"),n.title=`${t.label} · drag to adjust`,t.glyph.length>1?n.innerHTML=`<svg viewBox="0 0 12 12"><path d="${t.glyph}"/></svg>`:n.textContent=t.glyph,p.style.cssText+=";cursor:ew-resize;user-select:none;touch-action:none";for(let t of[n,p])t.addEventListener("pointerdown",n=>{if(n.button)return;n.preventDefault(),c(),t.setPointerCapture?.(n.pointerId);let o=n.clientX,r=t=>{let n=Math.trunc((t.clientX-o)/2);n&&(o+=2*n,e(n*(t.shiftKey?10:1)))},i=()=>{t.removeEventListener("pointermove",r),h()};t.addEventListener("pointermove",r),t.addEventListener("pointerup",i,{once:!0}),t.addEventListener("pointercancel",i,{once:!0})});d.addEventListener("keydown",t=>{"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),e(("ArrowUp"===t.key?1:-1)*(t.shiftKey?10:1)))}),a.append(n)}d instanceof HTMLInputElement&&d.addEventListener("keydown",e=>{"Enter"===e.key&&d.blur()}),a.addEventListener("keydown",e=>{if("Escape"!==e.key)return;let n=e.target===d;if(!i.cancel)return n&&d.blur();e.preventDefault(),e.stopImmediatePropagation(),i.cancel(d,t.property),s(),n&&d.blur(),queueMicrotask(()=>{"custom"!==a.dataset.tokenMode&&a.querySelector(".design-token-binding select")?.focus()})}),a.append(d);let f=e(d,t,i,s);return a}function h(e,t,n,o=[]){let r=document.createElement("section");r.className="design-section";let i=document.createElement("div");if(i.className="design-section__tools",i.append(...o),!n){let e=document.createElement("span");return e.className="design-section__title",e.textContent=t,r.append(e,i),r}let a=document.createElement("details");a.className="design-group",a.open=!e.collapsed.has(t);let d=document.createElement("summary");d.textContent=t;let p=document.createElement("div");p.className="design-grid";for(let t of n){let n=l.find(e=>e.property===t);p.append(u("http://www.w3.org/2000/svg"===e.element.namespaceURI&&"color"===t?{...n,label:"Color"}:n,e))}return a.append(d,p),a.addEventListener("toggle",()=>{a.isConnected&&(a.open?e.collapsed.delete(t):e.collapsed.add(t))}),r.append(i,a),r}function f(e,t){let n=[...e.querySelectorAll(".design-field--color")];n.length&&d.then(e=>e?.liveColors(n,t,g))}function m(e,t){let{element:n,changed:o}=t;a.then(n=>n?.attach(e,t.element,t.reserved)),p.then(n=>n?.enhance(e,t.element));let r=getComputedStyle(n);if("http://www.w3.org/2000/svg"===n.namespaceURI)return e.append(h(t,"Layout","svg"===n.localName?["width","height","display"]:["display"]),h(t,"Appearance",["color","fill","stroke","stroke-width"])),f(e,n);let i=e=>e.some(e=>o?.has(e)),l=!!n.textContent?.trim()||/(?:^|;)\s*(?:color|font|line-height|text-align)/.test(n.getAttribute("style")??"")||i(s),d=/flex|grid/.test(r.display)||i(["gap"]),g="transparent"!==c(r.backgroundColor)||i(["background-color"]),u=["top","right","bottom","left"].some(e=>parseFloat(r.getPropertyValue(`border-${e}-width`))>0&&"none"!==r.getPropertyValue(`border-${e}-style`))||i(["border","border-width","border-style","border-color"]),m=r.boxShadow&&"none"!==r.boxShadow||i(["box-shadow"]),b=(n,o,r,i)=>function(e,t,n){let o=document.createElement("button");return o.type="button",o.title=e,o.setAttribute("aria-label",e),o.textContent=t,o.addEventListener("click",n),o}(`Add ${n}`,"+",()=>{let n=document.createElement("input");t.begin(n,o),t.apply(n,o,r),t.commit(n,o),t.rerender(),e.querySelector(`[data-property="${i}"]`)?.focus()});e.append(h(t,"Layout",["width","height","padding",...d?["gap"]:[],"margin",...u?[]:["border-radius"],"display"])),l&&e.append(h(t,"Typography",s,[t.editText])),e.append(g?h(t,"Fill",["background-color"]):h(t,"Fill",null,[b("fill","background-color","#ffffff","background-color")]),u?h(t,"Border",["border-width","border-radius","border-style","border-color"]):h(t,"Border",null,[b("border","border","1px solid","border-width")]),h(t,"Effects",m?["opacity","box-shadow"]:["opacity"],m?[]:[b("shadow","box-shadow","0 1px 3px rgba(0, 0, 0, 0.12)","box-shadow")])),f(e,n)}export{i as designPanelStyles,u as fieldControl,l as fields,m as renderPanel,t as syncFields,o as toHex,g as valueFor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e}from"./chunk-4FX5IS2U.js";import"./chunk-XOMOONGK.js";var t={"text-align":{left:"M1.5 2.5h9M1.5 5h6M1.5 7.5h9M1.5 10h6",center:"M1.5 2.5h9M3 5h6M1.5 7.5h9M3 10h6",right:"M1.5 2.5h9M4.5 5h6M1.5 7.5h9M4.5 10h6",justify:"M1.5 2.5h9M1.5 5h9M1.5 7.5h9M1.5 10h9"},"border-style":{none:"M3 3l6 6M9 3 3 9",solid:"M1.5 6h9",dashed:"M1.5 6h2M5 6h2M8.5 6h2",dotted:"M2 6h.01M4.67 6h.01M7.33 6h.01M10 6h.01"}},n=new Set(["font-size","line-height","letter-spacing","gap","border-width","padding","margin","border-radius"]),i=new WeakSet,d=globalThis.ResizeObserver&&new ResizeObserver(e=>{for(let{target:t}of e)t.closest(".design-field")?.style.setProperty("--chip",`${t.offsetWidth}px`)});function o(e,t){let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value");Object.defineProperty(e,"value",{configurable:!0,get:()=>n.get.call(e),set:i=>{n.set.call(e,i),t()}}),e.addEventListener("input",t),t()}function a(e,a){let l=e.getRootNode();if((l instanceof ShadowRoot||l===document)&&!i.has(l)){i.add(l);let e=document.createElement("style");e.textContent=".design-segments{display:flex;flex:1;gap:2px;min-width:0;height:100%;box-sizing:border-box;padding:2px}.design-field:has(>.design-segments)>select{display:none}.design-field:has(>.design-token-binding)>.design-segments{margin-right:24px}.design-segments button{flex:1;display:grid;place-items:center;min-width:0;padding:0;border:0;border-radius:4px;background:none;color:#898680;font:inherit;font-size:10px;cursor:pointer}.design-segments button:hover{color:#f1efeb}.design-segments button[aria-checked=true]{background:#ffffff1a;color:#f1efeb}.design-segments button:focus-visible{outline:1px solid #bda6ef;outline-offset:-1px}.design-segments svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round}.design-field__unit{flex:none;padding-right:8px;color:#77736f;font-size:10px;pointer-events:none}.design-field__unit:empty{display:none}.design-field.design-field:has(>.design-field__unit:not(:empty))>input[data-property]{padding-right:2px}.design-field:has(>.design-token-binding)>.design-field__unit{margin-right:20px}.design-field:is([data-token-mode=token],[data-token-mode=connected])>.design-field__unit{visibility:hidden}.design-field:has(>.design-token-binding>.design-token-off:not([hidden]))>.design-field__unit{margin-right:30px}.design-field.design-field[data-inline-token]:is([data-token-mode=token],[data-token-mode=connected])>:is([data-property],.design-field__unit){visibility:visible}.design-field.design-field[data-inline-token]:is([data-token-mode=token],[data-token-mode=connected])>.design-field__unit{display:block;margin-right:calc(var(--chip,50%) + 30px)}.design-field.design-field[data-inline-token]:is([data-token-mode=token],[data-token-mode=connected]) .design-token-chip{left:auto;width:max-content;max-width:50%;box-sizing:border-box;overflow:clip;overflow-clip-margin:content-box}.design-field.design-field[data-inline-token]:is([data-token-mode=token],[data-token-mode=connected]) .design-token-binding select{left:auto;width:var(--chip,50%)}.design-token-chip__verb{display:contents}.design-field[data-inline-token] .design-token-chip__verb{display:none}.design-field.design-field[data-inline-token]:is([data-token-mode=token],[data-token-mode=connected])>input[data-property]{padding-right:2px}.design-field[data-inline-token]>.palette-tokens:not([data-custom])>.palette-tokens__head,.design-field[data-inline-token] .palette-custom__body>.palette-typed:not(.palette-typed__advanced){display:none}",(l instanceof ShadowRoot?l:document.head).append(e)}for(let i of e.querySelectorAll(".design-field[data-field-property]")){if(i.dataset.enhanced)continue;i.dataset.enhanced="";let e=i.dataset.fieldProperty,l=i.querySelector(":scope > [data-property]");if(!l)continue;if(l instanceof HTMLSelectElement&&"font-weight"===e)for(let e of l.options)e.style.fontWeight=e.value;l instanceof HTMLSelectElement&&t[e]&&s(i,l,a,t[e]);let r=n.has(e);if(!(l instanceof HTMLInputElement)||!r&&!/design-field--(length|size)/.test(i.className))continue;let g=document.createElement("span");g.className="design-field__unit",g.setAttribute("aria-hidden","true"),l.after(g);let p=()=>{r&&!i.querySelector(":scope > .palette-tokens")&&i.toggleAttribute("data-inline-token",!/\s/.test(getComputedStyle(a).getPropertyValue(e).trim()))},c=()=>{let e=i.querySelector(".design-token-chip");e&&d?.observe(e)};r&&new MutationObserver(()=>{c(),p()}).observe(i,{childList:!0}),c(),o(l,()=>{g.textContent="line-height"!==e&&/^-?\d*\.?\d+$/.test(l.value.trim())?"px":"",p()})}}function s(t,n,i,d){let a=document.createElement("div");a.className="design-segments",a.setAttribute("role","radiogroup"),a.setAttribute("aria-label",n.getAttribute("aria-label")??"");let s,l=()=>{let e=s;s=void 0,e?.()},r=[...n.options].filter(e=>d[e.value]).map(t=>{let o=document.createElement("button");return o.type="button",o.setAttribute("role","radio"),o.value=t.value,o.title=t.label,o.setAttribute("aria-label",t.label),o.innerHTML=`<svg viewBox="0 0 12 12" aria-hidden="true"><path d="${d[t.value]}"/></svg>`,o.addEventListener("pointerenter",()=>{l(),n.value!==t.value&&(s=e(i,n.dataset.property,t.value))}),o.addEventListener("pointerleave",l),o.addEventListener("click",()=>g(t.value)),o}),g=e=>{l(),n.value!==e&&(n.dispatchEvent(new Event("focus")),n.value=e,n.dispatchEvent(new Event("input",{bubbles:!0})),n.dispatchEvent(new Event("change",{bubbles:!0})))};a.addEventListener("keydown",e=>{let t={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1}[e.key];if("Escape"===e.key&&s)return l(),void e.stopPropagation();if(!t)return;e.preventDefault();let n=(Math.max(0,r.findIndex(e=>"true"===e.getAttribute("aria-checked")))+t+r.length)%r.length;g(r[n].value),r[n].focus()}),a.append(...r),n.after(a),o(n,()=>{let e={start:"left",end:"right"}[n.value]??n.value,t=r.findIndex(t=>t.value===e);r.forEach((e,n)=>{e.setAttribute("aria-checked",String(n===t)),e.tabIndex=n===Math.max(t,0)?0:-1})})}export{a as enhance};
|