efficient-shell 7.7.0 → 7.10.0

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.
Files changed (65) hide show
  1. package/README.md +1 -1
  2. package/dist/{Browser-56LX7FTE.js → Browser-VCRHLL3W.js} +15 -15
  3. package/dist/Calculator-HFF54RNH.js +29 -0
  4. package/dist/ConfirmDialog-6LAVAGDE.js +1 -0
  5. package/dist/{CurrencyConverter-ZXY7XNG6.js → CurrencyConverter-SAIDT4WN.js} +10 -10
  6. package/dist/{Documents-SVKR757H.js → Documents-OWPQE6D6.js} +11 -11
  7. package/dist/{Files-KSHU7ROB.js → Files-UCNAQWGM.js} +81 -81
  8. package/dist/{Notepad-5GT2GUCJ.js → Notepad-NNYMEU7M.js} +9 -9
  9. package/dist/PdfViewer-PHABUM7K.js +1 -0
  10. package/dist/{PomodoroTimer-GAGDQ4NF.js → PomodoroTimer-AV3YE2WJ.js} +50 -50
  11. package/dist/{Preview-YDCDW5NE.js → Preview-PWFREL75.js} +15 -15
  12. package/dist/Sidebar-3IB3YIWC.js +44 -0
  13. package/dist/{Spreadsheet-SYR23K4I.js → Spreadsheet-F5BXANOO.js} +11 -11
  14. package/dist/{Stock-LH5CR667.js → Stock-EP2SB76N.js} +7 -7
  15. package/dist/{Weather-MZGIPR2R.js → Weather-62FA6T6O.js} +13 -13
  16. package/dist/{WorldClock-DLB2RRLI.js → WorldClock-C3A6PZYM.js} +5 -5
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/ui-check.js +1 -1
  19. package/dist/brand.css +1 -1
  20. package/dist/{chunk-R2TPTM4O.js → chunk-7BX3JQBP.js} +6 -6
  21. package/dist/{chunk-2R5RTN5T.js → chunk-7HLTPMQV.js} +1 -1
  22. package/dist/chunk-B4XGJA3N.js +1 -0
  23. package/dist/{chunk-QUVE5JZZ.js → chunk-BQ7GR7H6.js} +1 -1
  24. package/dist/{chunk-OXTM3XZI.js → chunk-BXW5WAEX.js} +1 -1
  25. package/dist/{chunk-JKHXDQEI.js → chunk-FTJ2G343.js} +6 -6
  26. package/dist/{chunk-5TOLXFQ6.js → chunk-GGSG7HSD.js} +1 -1
  27. package/dist/{chunk-4JGNJYVL.js → chunk-ICN533ML.js} +8 -8
  28. package/dist/{chunk-HIRMYFOF.js → chunk-ITCBLL72.js} +2 -2
  29. package/dist/{chunk-WOEFPBQF.js → chunk-KBOYLXAT.js} +1 -1
  30. package/dist/{chunk-MSGBGLGI.js → chunk-KSLOSQKN.js} +20 -20
  31. package/dist/{chunk-N7JTY3LU.js → chunk-MFDZYZZX.js} +8 -8
  32. package/dist/{chunk-2ALIPI3D.js → chunk-NGUH7T5V.js} +1 -1
  33. package/dist/{chunk-CQ2DLPPS.js → chunk-SCJT2XXU.js} +1 -1
  34. package/dist/{chunk-6SCHK75C.js → chunk-THM35LAN.js} +60 -60
  35. package/dist/{chunk-43XFZY4K.js → chunk-UJL5J7GX.js} +4 -4
  36. package/dist/{chunk-CLFUF3BH.js → chunk-UZJ6RYMF.js} +4 -4
  37. package/dist/{chunk-TCYS67ND.js → chunk-W6BQVATM.js} +173 -173
  38. package/dist/{chunk-NODT4F2C.js → chunk-XN7CAWSZ.js} +2 -2
  39. package/dist/{chunk-KONXUO5I.js → chunk-Y56GRZ2Q.js} +1 -1
  40. package/dist/{chunk-PT4Z3KIA.js → chunk-YMWCZKUN.js} +8 -8
  41. package/dist/{chunk-M4MCXII7.js → chunk-Z2TTHY7G.js} +2 -2
  42. package/dist/{chunk-CJHT4VTF.js → chunk-ZGUQLVY4.js} +4 -2
  43. package/dist/{chunk-G4CTTSAR.js → chunk-ZRU5F2XT.js} +4 -4
  44. package/dist/icons/efficient-looks.js +16 -6
  45. package/dist/icons/efficient.d.ts +5 -3
  46. package/dist/icons/efficient.js +49 -46
  47. package/dist/icons/index.d.ts +1 -1
  48. package/dist/icons/index.js +1 -1
  49. package/dist/{index-BkBsXpfV.d.ts → index-Cevszdp8.d.ts} +14 -5
  50. package/dist/index.d.ts +2 -2
  51. package/dist/index.js +103 -106
  52. package/dist/map/index.js +9 -9
  53. package/dist/markdown/index.js +4 -4
  54. package/dist/page-tabs/index.js +5 -5
  55. package/dist/pdf/index.js +1 -1
  56. package/dist/telemetry/index.js +1 -1
  57. package/dist/ui/index.d.ts +1 -1
  58. package/dist/ui/index.js +1 -1
  59. package/dist/ui.css +3 -1
  60. package/package.json +1 -1
  61. package/dist/Calculator-GBKLJHM6.js +0 -29
  62. package/dist/ConfirmDialog-PS5BXNAT.js +0 -1
  63. package/dist/PdfViewer-YVAWFZVH.js +0 -1
  64. package/dist/Sidebar-IH6WUPKT.js +0 -44
  65. package/dist/chunk-BUGGBB5J.js +0 -1
@@ -1,9 +1,9 @@
1
- import{useCopyText as e,CopyGlyph as t}from"./chunk-CQ2DLPPS.js";import{PopupMenu as n,PopupMenuItem as r,PopupMenuDivider as l}from"./chunk-4JGNJYVL.js";import{useShellStrings as i}from"./chunk-QRCDQPJA.js";import{Icon as a}from"./chunk-CJHT4VTF.js";import{useState as o,useEffect as s,Fragment as c}from"react";import{jsxs as d,jsx as m,Fragment as u}from"react/jsx-runtime";var y="outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-500";function p(){/* @__PURE__ */
1
+ import{useCopyText as e,CopyGlyph as t}from"./chunk-SCJT2XXU.js";import{PopupMenu as n,PopupMenuItem as r,PopupMenuDivider as l}from"./chunk-ICN533ML.js";import{useShellStrings as i}from"./chunk-QRCDQPJA.js";import{Icon as a}from"./chunk-ZGUQLVY4.js";import{useState as o,useEffect as s,Fragment as c}from"react";import{jsxs as d,jsx as m,Fragment as u}from"react/jsx-runtime";var y="outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-500";function p(){/* @__PURE__ */
2
2
  return m(a,{name:"close",look:"mini","aria-hidden":"true",className:"size-3.5"})}function h({text:n,label:r,copiedLabel:l}){const{copied:i,copy:a}=e(n);/* @__PURE__ */
3
- return m("button",{type:"button",tabIndex:-1,"aria-label":i?l:r,title:i?l:r,onClick:a,className:"flex size-5 shrink-0 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-700 @max-[10rem]:hidden",children:/* @__PURE__ */m(t,{copied:i,className:"size-3.5"})})}function b({tabs:e,activeKey:t,idFor:a,panelMounted:b,onActivate:f,onClose:g,onCloseMany:x,label:k,className:v,activeClassName:N,end:w,onIconMenu:C,menuItems:j}){const $=i().pageTabs,[z,I]=o(null),D=e.length;s(()=>{if(!t)return;const e=document.getElementById(a(t,"tab"));e?.scrollIntoView?.({block:"nearest",inline:"nearest"})},[a,t,D]);const M=e.some(e=>e.key===t)?t:e[0]?.key,A=t=>{const n=e[(t+e.length)%e.length];n&&document.getElementById(a(n.key,"tab"))?.focus()},_=z?e.find(e=>e.key===z.key):void 0,L=_&&j?j(_.key):[],T=_?e.indexOf(_):-1,B=e=>e.some(e=>!e.pinned),E=e=>()=>{I(null),e()};/* @__PURE__ */
3
+ return m("button",{type:"button",tabIndex:-1,"aria-label":i?l:r,title:i?l:r,onClick:a,className:"flex size-5 shrink-0 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-700 @max-[10rem]:hidden",children:/* @__PURE__ */m(t,{copied:i,className:"size-3.5"})})}function b({tabs:e,activeKey:t,idFor:a,panelMounted:b,onActivate:f,onClose:g,onCloseMany:x,label:k,className:v,activeClassName:N,end:w,onIconMenu:C,menuItems:j}){const $=i().pageTabs,[I,z]=o(null),D=e.length;s(()=>{if(!t)return;const e=document.getElementById(a(t,"tab"));e?.scrollIntoView?.({block:"nearest",inline:"nearest"})},[a,t,D]);const M=e.some(e=>e.key===t)?t:e[0]?.key,A=t=>{const n=e[(t+e.length)%e.length];n&&document.getElementById(a(n.key,"tab"))?.focus()},_=I?e.find(e=>e.key===I.key):void 0,L=_&&j?j(_.key):[],B=_?e.indexOf(_):-1,E=e=>e.some(e=>!e.pinned),R=e=>()=>{z(null),e()};/* @__PURE__ */
4
4
  return d("div",{className:v??"relative flex h-10 shrink-0 items-end gap-3 bg-gray-100 px-3",children:[
5
5
  /* @__PURE__ */m("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 bottom-0 h-px bg-gray-200"}),
6
- /* @__PURE__ */m("div",{role:"tablist","aria-label":k,onKeyDown:t=>{const n=e.findIndex(e=>document.getElementById(a(e.key,"tab"))===t.target);if(!(n<0)){if("ArrowRight"===t.key)A(n+1);else if("ArrowLeft"===t.key)A(n-1);else if("Home"===t.key)A(0);else if("End"===t.key)A(e.length-1);else{if("Delete"!==t.key||e[n].pinned)return;g(e[n].key)}t.preventDefault()}},className:"flex min-w-0 flex-1 items-end overflow-x-auto overflow-y-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:e.map((n,r)=>{const l=n.key===t,i=!!n.dirty,o=n.icon,s=l?N??"z-[1] border-gray-200 bg-gray-50 text-gray-900":"border-transparent text-gray-600 hover:bg-gray-200/70 hover:text-gray-900",u=r>0&&!l&&e[r-1].key!==t,x={type:"button",role:"tab",id:a(n.key,"tab"),"aria-selected":l,"aria-controls":b?.(n.key)?a(n.key,"panel"):void 0,tabIndex:n.key===M?0:-1,title:n.title,onClick:()=>f(n.key)},k={onContextMenu:e=>((e,t)=>{e.preventDefault(),I({x:e.clientX,y:e.clientY,key:t.key})})(e,n),onAuxClick:e=>((e,t)=>{1!==e.button||t.pinned||(e.preventDefault(),g(t.key))})(e,n),onMouseDown:e=>{1===e.button&&e.preventDefault()}},v=o&&
6
+ /* @__PURE__ */m("div",{role:"tablist","aria-label":k,onKeyDown:t=>{const n=e.findIndex(e=>document.getElementById(a(e.key,"tab"))===t.target);if(!(n<0)){if("ArrowRight"===t.key)A(n+1);else if("ArrowLeft"===t.key)A(n-1);else if("Home"===t.key)A(0);else if("End"===t.key)A(e.length-1);else{if("Delete"!==t.key||e[n].pinned)return;g(e[n].key)}t.preventDefault()}},className:"flex min-w-0 flex-1 items-end overflow-x-auto overflow-y-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:e.map((n,r)=>{const l=n.key===t,i=!!n.dirty,o=n.icon,s=l?N??"z-[1] border-gray-200 bg-gray-50 text-gray-900":"border-transparent text-gray-600 hover:bg-gray-200/70 hover:text-gray-900",u=r>0&&!l&&e[r-1].key!==t,x={type:"button",role:"tab",id:a(n.key,"tab"),"aria-selected":l,"aria-controls":b?.(n.key)?a(n.key,"panel"):void 0,tabIndex:n.key===M?0:-1,title:n.title,onClick:()=>f(n.key)},k={onContextMenu:e=>((e,t)=>{e.preventDefault(),z({x:e.clientX,y:e.clientY,key:t.key})})(e,n),onAuxClick:e=>((e,t)=>{1!==e.button||t.pinned||(e.preventDefault(),g(t.key))})(e,n),onMouseDown:e=>{1===e.button&&e.preventDefault()}},v=o&&
7
7
  /* @__PURE__ */d("span",{className:"relative flex size-4 shrink-0 items-center justify-center text-gray-500 [&>svg]:size-4","aria-hidden":"true",children:[o,i&&!l&&!n.pinned&&
8
8
  /* @__PURE__ */m("span",{className:"absolute -right-1 -top-1 hidden size-2 rounded-full bg-gray-500 ring-2 ring-gray-100 @max-[6.5rem]:block @max-[6.5rem]:group-hover:hidden"})]}),w=l&&!!C&&!!o;return n.pinned?/* @__PURE__ */m("div",{role:"presentation",className:`group relative flex h-9 flex-none items-center justify-center rounded-t-md border border-b-0 transition-colors ${o?"w-10":""} ${s}`,...k,children:/* @__PURE__ */d("button",{...x,className:`flex h-full items-center justify-center rounded-t-md ${o?"w-full":"px-3"} ${y}`,children:[v,
9
9
  /* @__PURE__ */m("span",{className:o?"sr-only":"whitespace-nowrap text-sm",children:n.title})]})},n.key):/* @__PURE__ */d(c,{children:[u&&/* @__PURE__ */m("span",{"aria-hidden":"true",className:"mb-3 h-4 w-px shrink-0 self-end border-l border-gray-300"}),
@@ -12,10 +12,10 @@ return d("div",{className:v??"relative flex h-10 shrink-0 items-end gap-3 bg-gra
12
12
  /* @__PURE__ */d("button",{...x,className:`flex h-full min-w-0 flex-1 items-center gap-2 rounded-t-md pr-1 text-left ${w?"pl-2":"pl-3"} ${y} ${l?w?"":"@max-[5rem]:pl-3":"@max-[6.5rem]:pr-3 @max-[6.5rem]:group-hover:pr-1 @max-[4.5rem]:justify-center @max-[4.5rem]:px-0 @max-[4.5rem]:group-hover:pl-2"}`,children:[!w&&v,
13
13
  /* @__PURE__ */m("span",{className:"min-w-0 flex-1 overflow-hidden whitespace-nowrap [mask-image:linear-gradient(to_right,#000_calc(100%-1rem),transparent)] "+(o?l?"@max-[5rem]:sr-only":"@max-[4.5rem]:sr-only":""),children:n.title})]}),l&&n.copy&&/* @__PURE__ */m(h,{text:n.copy,label:$.copy(n.copy),copiedLabel:$.copied}),
14
14
  /* @__PURE__ */d("span",{className:"mr-2 flex size-5 shrink-0 items-center justify-center "+(l?"":"@max-[6.5rem]:hidden @max-[6.5rem]:group-hover:flex"),children:[i&&/* @__PURE__ */m("span",{role:"img","aria-label":$.unsaved,className:"size-2 rounded-full bg-gray-500 group-hover:hidden"}),
15
- /* @__PURE__ */m("button",{type:"button",tabIndex:-1,"aria-label":$.closeTab?.(n.title)??`${$.close} ${n.title}`,onClick:()=>g(n.key),className:"size-5 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-700 "+(i?"hidden group-hover:flex":l?"flex":"flex opacity-0 group-hover:opacity-100 focus-visible:opacity-100"),children:/* @__PURE__ */m(p,{})})]})]})]},n.key)})}),w&&/* @__PURE__ */m("div",{className:"flex shrink-0 items-center gap-2 self-center",children:w}),z&&_&&/* @__PURE__ */d(n,{portal:!0,style:{left:z.x,top:z.y},onClose:()=>I(null),children:[L.length>0&&/* @__PURE__ */d(u,{children:[L.map((e,t)=>/* @__PURE__ */d(r,{onClick:E(e.onSelect),children:[e.icon,e.label]},t)),
15
+ /* @__PURE__ */m("button",{type:"button",tabIndex:-1,"aria-label":$.closeTab?.(n.title)??`${$.close} ${n.title}`,onClick:()=>g(n.key),className:"size-5 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-700 "+(i?"hidden group-hover:flex":l?"flex":"flex opacity-0 group-hover:opacity-100 focus-visible:opacity-100"),children:/* @__PURE__ */m(p,{})})]})]})]},n.key)})}),w&&/* @__PURE__ */m("div",{className:"flex shrink-0 items-center gap-2 self-center",children:w}),I&&_&&/* @__PURE__ */d(n,{portal:!0,style:{left:I.x,top:I.y},onClose:()=>z(null),children:[L.length>0&&/* @__PURE__ */d(u,{children:[L.map((e,t)=>/* @__PURE__ */d(r,{onClick:R(e.onSelect),children:[e.icon,e.label]},t)),
16
16
  /* @__PURE__ */m(l,{})]}),
17
- /* @__PURE__ */m(r,{disabled:_.pinned,onClick:E(()=>g(_.key)),children:$.close}),
17
+ /* @__PURE__ */m(r,{disabled:_.pinned,onClick:R(()=>g(_.key)),children:$.close}),
18
18
  /* @__PURE__ */m(l,{}),
19
- /* @__PURE__ */m(r,{disabled:!B(e.filter(e=>e.key!==_.key)),onClick:E(()=>x("others",_.key)),children:$.closeOthers}),
20
- /* @__PURE__ */m(r,{disabled:!B(e.slice(T+1)),onClick:E(()=>x("right",_.key)),children:$.closeRight}),
21
- /* @__PURE__ */m(r,{disabled:!B(e),onClick:E(()=>x("all",null)),children:$.closeAll})]})]})}export{b as TabStrip};
19
+ /* @__PURE__ */m(r,{disabled:!E(e.filter(e=>e.key!==_.key)),onClick:R(()=>x("others",_.key)),children:$.closeOthers}),
20
+ /* @__PURE__ */m(r,{disabled:!E(e.slice(B+1)),onClick:R(()=>x("right",_.key)),children:$.closeRight}),
21
+ /* @__PURE__ */m(r,{disabled:!E(e),onClick:R(()=>x("all",null)),children:$.closeAll})]})]})}export{b as TabStrip};
@@ -1 +1 @@
1
- var r="aria-disabled:cursor-not-allowed aria-disabled:opacity-60",o="inline-flex items-center justify-center rounded-(--radius-control) font-medium transition-colors rosh-focus-ring focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-60 "+r,e={primary:"bg-blue-600 text-white shadow-sm hover:bg-blue-700 focus-visible:ring-[color:var(--rosh-focus-ring-strong)]",secondary:"border border-gray-300 bg-white text-gray-700 shadow-sm hover:bg-gray-50 focus-visible:ring-[color:var(--rosh-focus-ring)]","secondary-danger":"border border-red-300 bg-white text-red-600 shadow-sm hover:bg-red-50 focus-visible:ring-[color:var(--rosh-focus-ring-invalid)]",ghost:"text-gray-700 hover:bg-gray-100 focus-visible:ring-[color:var(--rosh-focus-ring)]","ghost-danger":"text-red-600 hover:bg-red-50 focus-visible:ring-[color:var(--rosh-focus-ring-invalid)]",danger:"bg-red-600 text-white shadow-sm hover:bg-red-700 focus-visible:ring-[color:var(--rosh-focus-ring-invalid-strong)]",warning:"bg-amber-700 text-white shadow-sm hover:bg-amber-800 focus-visible:ring-[color:var(--rosh-focus-ring-strong)]",link:"text-blue-600 underline-offset-4 hover:underline focus-visible:ring-[color:var(--rosh-focus-ring)]"},s={sm:"gap-1 h-6 px-2 text-xs",md:"gap-2 h-8 px-3 text-sm",lg:"gap-2 h-10 px-4 text-sm","touch-sm":"gap-1.5 h-11 px-4 text-base",touch:"gap-2 h-14 px-5 text-base","touch-lg":"gap-2 h-16 px-6 text-lg","touch-xl":"gap-3 h-20 px-8 text-2xl"},t="inline-flex items-center font-medium transition-colors rosh-focus-ring focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-60 "+r,i={sm:"gap-1 text-xs",md:"gap-2 text-sm",lg:"gap-2 text-sm","touch-sm":"gap-1.5 text-base",touch:"gap-2 text-base","touch-lg":"gap-2 text-lg","touch-xl":"gap-3 text-2xl"},a={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10","touch-sm":"h-11 w-11",touch:"h-14 w-14","touch-lg":"h-16 w-16","touch-xl":"h-20 w-20"},l="bg-blue-50 text-blue-700 hover:bg-blue-100 focus-visible:ring-[color:var(--rosh-focus-ring)]";function g({variant:r="primary",size:a="md",block:g=!1,pressed:n=!1,className:c=""}={}){const h="link"===r;return[h?t:o,n&&"secondary"===r?"border border-blue-200 bg-blue-50 text-blue-700 shadow-sm hover:bg-blue-100 focus-visible:ring-[color:var(--rosh-focus-ring)]":n&&"ghost"===r?l:e[r],h?i[a]:s[a],g?"w-full":"",c].filter(Boolean).join(" ")}function n({variant:r="ghost",size:s="md",pressed:t=!1,className:i=""}={}){return[o,!t||"ghost"!==r&&"secondary"!==r?e[r]:l,a[s],"shrink-0 p-0",i].filter(Boolean).join(" ")}export{g as buttonClasses,n as iconButtonClasses};
1
+ var r="aria-disabled:cursor-not-allowed aria-disabled:opacity-60",o="inline-flex items-center justify-center rounded-(--radius-control) font-medium transition-colors rosh-focus-ring focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-60 "+r,e={primary:"bg-blue-600 text-white shadow-sm hover:bg-blue-700 focus-visible:ring-[color:var(--rosh-focus-ring-strong)]",secondary:"border border-gray-300 bg-white text-gray-700 shadow-sm hover:bg-gray-50 focus-visible:ring-[color:var(--rosh-focus-ring)]","secondary-danger":"border border-red-300 bg-white text-red-600 shadow-sm hover:bg-red-50 focus-visible:ring-[color:var(--rosh-focus-ring-invalid)]",ghost:"text-gray-700 hover:bg-gray-100 focus-visible:ring-[color:var(--rosh-focus-ring)]","ghost-danger":"text-red-600 hover:bg-red-50 focus-visible:ring-[color:var(--rosh-focus-ring-invalid)]",danger:"bg-red-600 text-white shadow-sm hover:bg-red-700 focus-visible:ring-[color:var(--rosh-focus-ring-invalid-strong)]",warning:"bg-amber-700 text-white shadow-sm hover:bg-amber-800 focus-visible:ring-[color:var(--rosh-focus-ring-strong)]",link:"text-blue-600 underline-offset-4 hover:underline focus-visible:ring-[color:var(--rosh-focus-ring)]"},s={sm:"gap-1 h-6 px-2 text-xs",md:"gap-2 h-8 px-3 text-sm",lg:"gap-2 h-10 px-4 text-sm","touch-sm":"gap-2 h-11 px-4 text-base",touch:"gap-2 h-14 px-5 text-base","touch-lg":"gap-2 h-16 px-6 text-lg","touch-xl":"gap-3 h-20 px-8 text-2xl"},t="inline-flex items-center font-medium transition-colors rosh-focus-ring focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-60 "+r,i={sm:"gap-1 text-xs",md:"gap-2 text-sm",lg:"gap-2 text-sm","touch-sm":"gap-2 text-base",touch:"gap-2 text-base","touch-lg":"gap-2 text-lg","touch-xl":"gap-3 text-2xl"},a={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10","touch-sm":"h-11 w-11",touch:"h-14 w-14","touch-lg":"h-16 w-16","touch-xl":"h-20 w-20"},l="bg-blue-50 text-blue-700 hover:bg-blue-100 focus-visible:ring-[color:var(--rosh-focus-ring)]";function g({variant:r="primary",size:a="md",block:g=!1,pressed:n=!1,className:c=""}={}){const h="link"===r;return[h?t:o,n&&"secondary"===r?"border border-blue-200 bg-blue-50 text-blue-700 shadow-sm hover:bg-blue-100 focus-visible:ring-[color:var(--rosh-focus-ring)]":n&&"ghost"===r?l:e[r],h?i[a]:s[a],g?"w-full":"",c].filter(Boolean).join(" ")}function n({variant:r="ghost",size:s="md",pressed:t=!1,className:i=""}={}){return[o,!t||"ghost"!==r&&"secondary"!==r?e[r]:l,a[s],"shrink-0 p-0",i].filter(Boolean).join(" ")}export{g as buttonClasses,n as iconButtonClasses};
@@ -1,3 +1,3 @@
1
- import{useShellStrings as e}from"./chunk-QRCDQPJA.js";import{Icon as t}from"./chunk-CJHT4VTF.js";import{useState as r,useRef as o,useEffect as c,useCallback as i}from"react";import{jsx as n}from"react/jsx-runtime";function a(e){const[t,n]=r(!1),a=o(void 0);c(()=>()=>clearTimeout(a.current),[]);return{copied:t,copy:i(t=>{t?.stopPropagation(),navigator.clipboard?.writeText(e).then(()=>{n(!0),clearTimeout(a.current),a.current=setTimeout(()=>n(!1),1500)},()=>{})},[e])}}function u({copied:e,className:r="w-4 h-4"}){/* @__PURE__ */
1
+ import{useShellStrings as e}from"./chunk-QRCDQPJA.js";import{Icon as t}from"./chunk-ZGUQLVY4.js";import{useState as r,useRef as o,useEffect as c,useCallback as i}from"react";import{jsx as n}from"react/jsx-runtime";function a(e){const[t,n]=r(!1),a=o(void 0);c(()=>()=>clearTimeout(a.current),[]);return{copied:t,copy:i(t=>{t?.stopPropagation(),navigator.clipboard?.writeText(e).then(()=>{n(!0),clearTimeout(a.current),a.current=setTimeout(()=>n(!1),1500)},()=>{})},[e])}}function u({copied:e,className:r="w-4 h-4"}){/* @__PURE__ */
2
2
  return n(t,e?{name:"check",className:`${r} text-green-600`,"aria-hidden":"true"}:{name:"copy",className:r,"aria-hidden":"true"})}function m({text:t}){const{copied:r,copy:o}=a(t),c=e().copy;/* @__PURE__ */
3
3
  return n("button",{onClick:o,title:r?c.copiedValue:c.copyValue(t),className:"shrink-0 text-gray-400 hover:text-gray-600 transition-colors",children:/* @__PURE__ */n(u,{copied:r})})}export{m as CopyButton,u as CopyGlyph,a as useCopyText};