efficient-shell 14.1.1 → 14.2.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 (59) hide show
  1. package/dist/{Browser-GIEQUIBI.js → Browser-PL2P7EIZ.js} +16 -16
  2. package/dist/Calculator-WMYHPFPA.js +29 -0
  3. package/dist/{CurrencyConverter-FXWM3DBQ.js → CurrencyConverter-3B7YXRLL.js} +5 -5
  4. package/dist/Files-F3H7Z75F.js +141 -0
  5. package/dist/Notepad-EEULMM65.js +24 -0
  6. package/dist/{PomodoroTimer-RPGWT26T.js → PomodoroTimer-RZSYRTLV.js} +8 -8
  7. package/dist/{Preview-OBI4WD6A.js → Preview-DUJIVUKT.js} +12 -12
  8. package/dist/{Stock-TUPZORQN.js → Stock-FHC5TFGK.js} +3 -3
  9. package/dist/{Weather-URCO6JML.js → Weather-LYX5G6CZ.js} +20 -20
  10. package/dist/WorldClock-MULNQEIS.js +32 -0
  11. package/dist/apps/index.js +1 -1
  12. package/dist/bin/browser-check.js +1 -1
  13. package/dist/bin/media-host-check.js +1 -1
  14. package/dist/bin/ui-check.js +1 -1
  15. package/dist/{chunk-XLPUIGMO.js → chunk-3QRCPC7V.js} +1 -1
  16. package/dist/chunk-4K32E3AO.js +1 -0
  17. package/dist/{chunk-G2A74XGO.js → chunk-6GRTHDQC.js} +1 -1
  18. package/dist/chunk-H56OE6Q5.js +92 -0
  19. package/dist/chunk-JBZ4WNI3.js +1 -0
  20. package/dist/{chunk-PI2W6MML.js → chunk-NGFBYHDM.js} +1 -1
  21. package/dist/chunk-QYRBRJDN.js +1 -0
  22. package/dist/chunk-RRVQT6RE.js +1 -0
  23. package/dist/{chunk-GTZML3V3.js → chunk-SFP5RZNY.js} +1 -1
  24. package/dist/{chunk-K3LSKG6L.js → chunk-UYZJT3AS.js} +3 -3
  25. package/dist/chunk-YPXONNBV.js +1 -0
  26. package/dist/chunk-YYGA4Y6E.js +1 -0
  27. package/dist/format/index.d.ts +1 -0
  28. package/dist/format/index.js +1 -1
  29. package/dist/hooks/useTheme.js +1 -1
  30. package/dist/icons/brands.node.js +1 -1
  31. package/dist/icons/efficient-glyphs.js +1 -1
  32. package/dist/icons/efficient-looks.js +1 -1
  33. package/dist/icons/efficient.js +1 -1
  34. package/dist/icons/looks/map.js +1 -1
  35. package/dist/icons/payment.js +1 -1
  36. package/dist/icons/sets.js +1 -1
  37. package/dist/index.d.ts +3 -1
  38. package/dist/index.js +662 -662
  39. package/dist/motion/entrance.js +1 -1
  40. package/dist/routine-index.json +1 -1
  41. package/dist/telemetry/index.js +1 -1
  42. package/dist/ui/index.d.ts +1 -0
  43. package/dist/ui/index.js +1 -1
  44. package/dist/utils/parseOption.d.ts +23 -0
  45. package/dist/utils/parseOption.js +1 -0
  46. package/dist/value-index.json +1 -1
  47. package/dist/version.js +1 -1
  48. package/package.json +1 -1
  49. package/dist/Calculator-7CY2CRGB.js +0 -29
  50. package/dist/Files-DZWY256Z.js +0 -141
  51. package/dist/Notepad-CDTN6MHV.js +0 -24
  52. package/dist/WorldClock-EBBUWG5L.js +0 -32
  53. package/dist/chunk-6IP4Q3AT.js +0 -92
  54. package/dist/chunk-CSMFF6LM.js +0 -1
  55. package/dist/chunk-M3HBGN5K.js +0 -1
  56. package/dist/chunk-N4FUMDAI.js +0 -1
  57. package/dist/chunk-S4RFJTGR.js +0 -1
  58. package/dist/chunk-ZSEB7XW4.js +0 -1
  59. /package/dist/{chunk-7UCZAUAU.js → chunk-PF6RXLWQ.js} +0 -0
@@ -1 +0,0 @@
1
- import{loadIconSet as t,iconSetFor as e}from"./chunk-VQCKMT5F.js";import{hexToRgb as n}from"./chunk-S6OB6HJB.js";import{useShellPrefs as o}from"./chunk-POBVGDZP.js";import{setIconSet as c}from"./chunk-J75ZT2JQ.js";import{useSyncExternalStore as r,useEffect as s}from"react";function u(){return"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null}function m(t){const e=u();return e?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):()=>{}}function a(){return u()?.matches??!1}function l(){return!1}function i(t){const e=parseInt(t.slice(1,3),16)/255,n=parseInt(t.slice(3,5),16)/255,o=parseInt(t.slice(5,7),16)/255,c=Math.max(e,n,o),r=Math.min(e,n,o);let s=0,u=0;const m=(c+r)/2;if(c!==r){const t=c-r;u=m>.5?t/(2-c-r):t/(c+r),s=c===e?((n-o)/t+(n<o?6:0))/6:c===n?((o-e)/t+2)/6:((e-n)/t+4)/6}return[360*s,100*u,100*m]}function d(t,e,n){n/=100;const o=(e/=100)*Math.min(n,1-n),c=e=>{const c=(e+t/30)%12;return n-o*Math.max(Math.min(c-3,9-c,1),-1)},r=t=>Math.round(255*t).toString(16).padStart(2,"0");return`#${r(c(0))}${r(c(8))}${r(c(4))}`}function h(t){const e=t||"system";return"system"===e?a()?"dark":"light":e}function f(t){const e=document.documentElement;if(t&&/^#[0-9a-fA-F]{6}$/.test(t)){const[n,o,c]=i(t);e.setAttribute("data-custom-accent","true"),e.style.setProperty("--accent-600",t),e.style.setProperty("--accent-700",d(n,o,Math.max(c-10,5))),e.style.setProperty("--accent-500",d(n,o,Math.min(c+10,95))),e.style.setProperty("--accent-400",d(n,o,Math.min(c+20,95))),e.style.setProperty("--accent-300",d(n,Math.min(o+10,100),Math.min(c+30,92))),e.style.setProperty("--accent-200",d(n,Math.min(o+15,100),Math.min(c+38,94))),e.style.setProperty("--accent-100",d(n,Math.min(o+20,100),Math.min(c+42,96))),e.style.setProperty("--accent-50",d(n,Math.min(o+20,100),Math.min(c+46,98)))}else e.removeAttribute("data-custom-accent"),["--accent-600","--accent-700","--accent-500","--accent-400","--accent-300","--accent-200","--accent-100","--accent-50"].forEach(t=>e.style.removeProperty(t))}function y(t,e,o,c,r){const s=document.documentElement;if(t){const t=(t,e)=>{const o=n(e);o?s.style.setProperty(t,`${o.r} ${o.g} ${o.b}`):s.style.removeProperty(t)};if(e&&s.style.setProperty("--custom-bg-color",e),o&&(t("--window-header-rgb",o),t("--window-footer-rgb",o)),c&&t("--window-content-rgb",c),r){s.style.setProperty("--custom-button-color",r);const[t,e,n]=i(r);s.style.setProperty("--custom-button-hover",d(t,e,Math.max(n-10,5)))}}else["--custom-bg-color","--custom-button-color","--custom-button-hover"].forEach(t=>s.style.removeProperty(t))}var p=["square","soft","round"];function _(t){return"square"===t||"round"===t?t:"soft"}var b={pink:"round",grey:"square"};function M(t,e,n){return n?"square"===e||"round"===e?e:"soft":b[t]??"soft"}function P(t){const e=_(t);"soft"===e?document.documentElement.removeAttribute("data-corners"):document.documentElement.setAttribute("data-corners",e)}function g(e){const n="string"==typeof e&&e?e:null;c(n),n&&t(n),n?document.documentElement.setAttribute("data-icon-set",n):document.documentElement.removeAttribute("data-icon-set")}function v(t){const n=!!t.accent_color;"corners"in t&&P(M(h(t.theme),t.corners,n)),"icon_set"in t&&g(e(h(t.theme),t.icon_set,n)),document.documentElement.setAttribute("data-theme",h(t.theme)),f(t.accent_color??null),y(t.accent_color??null,t.custom_bg_color??null,t.custom_title_color??null,t.custom_window_color??null,t.custom_button_color??null)}function w(){const{prefs:t}=o(),n=r(m,a,l),c=t.theme||"system",u=t.accent_color||null,i=t.custom_bg_color||null,d=t.custom_title_color||null,h=t.custom_window_color||null,p=t.custom_button_color||null,_=t.corners,b="string"==typeof t.icon_set&&t.icon_set?t.icon_set:null,v="system"===c?n?"dark":"light":c,w=M(v,_,!!u);s(()=>(document.documentElement.setAttribute("data-theme",v),()=>document.documentElement.removeAttribute("data-theme")),[v]),s(()=>(P(w),()=>document.documentElement.removeAttribute("data-corners")),[w]);const E=e(v,b,!!u);return s(()=>(g(E),()=>g(null)),[E]),s(()=>{f(u)},[u]),s(()=>{y(u,i,d,h,p)},[u,i,d,h,p]),{theme:c,resolved:v,corners:w,iconSet:b}}export{p as CORNERS,b as CORNERS_FOR_THEME,P as applyCorners,g as applyIconSet,v as applyThemePrefs,M as cornersFor,_ as resolveCorners,h as resolveTheme,w as useTheme};
@@ -1 +0,0 @@
1
- import{motionSeconds as t}from"./chunk-AIJ3G6BD.js";var e=["none","fade","rise","scale","glide","bounce","flip","reveal","spin"],n=["glide","bounce","flip","reveal"],r=["top","bottom","left","right"],o="bottom",i="data-motion-entrance",a="--motion-entrance-duration",d="--motion-entrance-delay",s="data-motion-from",u="data-motion-state";function c(i,a,d,s){const u=e.includes(i)?i:"none",c=(t=>n.includes(t))(u)?r.includes(a)?a:o:null;return{kind:u,from:c,duration:t("entrance","duration",d),delay:t("entrance","delay",s)}}function f(t){if("none"===t.kind)return{attrs:{},style:{}};const e={[i]:t.kind};t.from&&(e[s]=t.from);const n={},r=c("fade");return t.duration!==r.duration&&(n[a]=`${t.duration}s`),t.delay!==r.delay&&(n[d]=`${t.delay}s`),{attrs:e,style:n}}function l(t){const e=()=>{};if("undefined"==typeof IntersectionObserver)return e;if(!t.getAttribute(i))return e;const n=window.innerHeight||document.documentElement.clientHeight;if(t.getBoundingClientRect().top<n)return e;t.setAttribute(u,"armed");const r=new IntersectionObserver(e=>{for(const n of e)if(n.isIntersecting){r.disconnect(),m(t);break}},{threshold:0});return r.observe(t),()=>{r.disconnect(),t.removeAttribute(u)}}function m(t){if(!t.getAttribute(i))return;t.removeAttribute(u),t.offsetWidth,t.setAttribute(u,"play");const e=n=>{n.target===t&&(t.removeAttribute(u),t.removeEventListener("animationend",e))};t.addEventListener("animationend",e)}export{i as ENTRANCE_ATTR,d as ENTRANCE_DELAY_VAR,a as ENTRANCE_DURATION_VAR,r as ENTRANCE_FROM,s as ENTRANCE_FROM_ATTR,o as ENTRANCE_FROM_DEFAULT,e as ENTRANCE_KINDS,n as ENTRANCE_KINDS_WITH_FROM,u as ENTRANCE_STATE_ATTR,l as armEntrance,f as entranceAttrs,m as playEntrance,c as readEntrance};
File without changes