@lytjs/plugin-theme 5.0.0 → 5.0.1

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/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var p=Object.defineProperty;var H=Object.getOwnPropertyDescriptor;var K=Object.getOwnPropertyNames;var Q=Object.prototype.hasOwnProperty;var z=(o,n)=>{for(var g in n)p(o,g,{get:n[g],enumerable:!0})},B=(o,n,g,f)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of K(n))!Q.call(o,l)&&l!==g&&p(o,l,{get:()=>n[l],enumerable:!(f=H(n,l))||f.enumerable});return o};var R=o=>B(p({},"__esModule",{value:!0}),o);var G={};z(G,{BUILT_IN_THEMES:()=>w,createTheme:()=>q});module.exports=R(G);var w={light:{"--bg":"#ffffff","--bg-secondary":"#f5f5f5","--text":"#333333","--text-secondary":"#666666","--text-muted":"#999999","--primary":"#42b883","--primary-hover":"#3aa876","--secondary":"#35495e","--success":"#10b981","--warning":"#f59e0b","--error":"#ef4444","--info":"#3b82f6","--border":"#e5e7eb","--shadow":"rgba(0, 0, 0, 0.1)"},dark:{"--bg":"#1a1a1a","--bg-secondary":"#2d2d2d","--text":"#e5e5e5","--text-secondary":"#a3a3a3","--text-muted":"#737373","--primary":"#42b883","--primary-hover":"#3aa876","--secondary":"#94a3b8","--success":"#10b981","--warning":"#f59e0b","--error":"#ef4444","--info":"#3b82f6","--border":"#404040","--shadow":"rgba(0, 0, 0, 0.3)"}};function y(){return typeof document=="undefined"?null:document.documentElement}function U(o){return(...n)=>{}}function q(o={}){let{default:n="light",storageKey:g="lyt_theme",themes:f={},onChange:l,autoDetect:$=!0,useDataAttribute:k=!0,cssPrefix:u="--lyt-",debug:C=!1}=o,s=U(C),a={...w,...f},c=n,d={};function x(){try{let e=localStorage.getItem(g);if(e&&a[e])return e}catch(e){}return null}function E(e){try{localStorage.setItem(g,e)}catch(t){}}function P(){var e;return typeof window=="undefined"?"light":(e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches?"dark":"light"}function O(e){if(typeof window=="undefined"||!window.matchMedia)return()=>{};let t=window.matchMedia("(prefers-color-scheme: dark)");function r(i){e(i.matches?"dark":"light")}return t.addEventListener("change",r),()=>t.removeEventListener("change",r)}function h(e){let t=y();if(!t)return;let r=a[e];if(!r){s(`theme '${e}' not found`);return}s(`applying theme '${e}'`,r),Object.entries(r).forEach(([i,v])=>{let T=i.startsWith("--")?i:`${u}${i}`;t.style.setProperty(T,v)}),Object.entries(d).forEach(([i,v])=>{let T=i.startsWith("--")?i:`${u}${i}`;t.style.setProperty(T,v)}),k&&t.setAttribute("data-theme",e),t.style.setProperty("color-scheme",e==="dark"?"dark":"light")}function m(e){if(!a[e]){s(`theme '${e}' not found, available:`,Object.keys(a));return}let t=c;t!==e&&(c=e,h(e),E(e),l&&l(e,t),s(`theme changed from '${t}' to '${e}'`))}function V(){let e=Object.keys(a),r=(e.indexOf(c)+1)%e.length;m(e[r])}function S(){m(n)}function j(){return Object.keys(a)}function I(e,t){a[e]=t,s(`added/updated theme '${e}'`,t),c===e&&h(e)}function L(e){if(e===n){s("cannot remove default theme");return}delete a[e],c===e&&m(n),s(`removed theme '${e}'`)}function M(){return a[c]||null}function A(e){return a[e]||null}function D(e,t){let r=e.startsWith("--")?e:`${u}${e}`;d[r]=t;let i=y();i&&i.style.setProperty(r,t),s(`set variable '${r}' = '${t}'`)}function W(e){let t=e.startsWith("--")?e:`${u}${e}`;delete d[t];let r=y();r&&r.style.removeProperty(t),s(`cleared variable '${t}'`)}function _(){let e=y();Object.keys(d).forEach(t=>{e&&e.style.removeProperty(t)}),Object.keys(d).forEach(t=>delete d[t]),h(c),s("cleared all dynamic variables")}function F(){let e=x();if(!e&&$){let t=P();e=a[t]?t:n}e||(e=n),s(`initializing with theme '${e}'`),c=e,h(e)}F();let b={install(e,t){e.config=e.config||{},e.config.globalProperties=e.config.globalProperties||{},e.config.globalProperties.$theme=b,typeof e.provide=="function"&&e.provide("theme",b)},get current(){return c},set:m,toggle:V,reset:S,list:j,addTheme:I,removeTheme:L,getConfig:M,getConfigFor:A,setVariable:D,clearVariable:W,clearVariables:_,getSystemPreference:P,watchSystemPreference:O};return b}
1
+ "use strict";var p=Object.defineProperty;var H=Object.getOwnPropertyDescriptor;var K=Object.getOwnPropertyNames;var Q=Object.prototype.hasOwnProperty;var z=(r,n)=>{for(var g in n)p(r,g,{get:n[g],enumerable:!0})},B=(r,n,g,d)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of K(n))!Q.call(r,l)&&l!==g&&p(r,l,{get:()=>n[l],enumerable:!(d=H(n,l))||d.enumerable});return r};var R=r=>B(p({},"__esModule",{value:!0}),r);var G={};z(G,{BUILT_IN_THEMES:()=>w,createTheme:()=>q});module.exports=R(G);var w={light:{"--bg":"#ffffff","--bg-secondary":"#f5f5f5","--text":"#333333","--text-secondary":"#666666","--text-muted":"#999999","--primary":"#42b883","--primary-hover":"#3aa876","--secondary":"#35495e","--success":"#10b981","--warning":"#f59e0b","--error":"#ef4444","--info":"#3b82f6","--border":"#e5e7eb","--shadow":"rgba(0, 0, 0, 0.1)"},dark:{"--bg":"#1a1a1a","--bg-secondary":"#2d2d2d","--text":"#e5e5e5","--text-secondary":"#a3a3a3","--text-muted":"#737373","--primary":"#42b883","--primary-hover":"#3aa876","--secondary":"#94a3b8","--success":"#10b981","--warning":"#f59e0b","--error":"#ef4444","--info":"#3b82f6","--border":"#404040","--shadow":"rgba(0, 0, 0, 0.3)"}};function y(){if(typeof document=="undefined")return null;let r=document.documentElement;return!r||!r.style||typeof r.style.setProperty!="function"?null:r}function U(r){return(...n)=>{}}function q(r={}){let{default:n="light",storageKey:g="lyt_theme",themes:d={},onChange:l,autoDetect:$=!0,useDataAttribute:k=!0,cssPrefix:u="--lyt-",debug:C=!1}=r,s=U(C),a={...w,...d},c=n,f={};function x(){try{let e=localStorage.getItem(g);if(e&&a[e])return e}catch(e){}return null}function E(e){try{localStorage.setItem(g,e)}catch(t){}}function P(){var e;return typeof window=="undefined"?"light":(e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches?"dark":"light"}function O(e){if(typeof window=="undefined"||!window.matchMedia)return()=>{};let t=window.matchMedia("(prefers-color-scheme: dark)");function i(o){e(o.matches?"dark":"light")}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)}function h(e){let t=y();if(!t)return;let i=a[e];if(!i){s(`theme '${e}' not found`);return}s(`applying theme '${e}'`,i),Object.entries(i).forEach(([o,v])=>{let T=o.startsWith("--")?o:`${u}${o}`;t.style.setProperty(T,v)}),Object.entries(f).forEach(([o,v])=>{let T=o.startsWith("--")?o:`${u}${o}`;t.style.setProperty(T,v)}),k&&t.setAttribute("data-theme",e),t.style.setProperty("color-scheme",e==="dark"?"dark":"light")}function m(e){if(!a[e]){s(`theme '${e}' not found, available:`,Object.keys(a));return}let t=c;t!==e&&(c=e,h(e),E(e),l&&l(e,t),s(`theme changed from '${t}' to '${e}'`))}function V(){let e=Object.keys(a),i=(e.indexOf(c)+1)%e.length;m(e[i])}function S(){m(n)}function j(){return Object.keys(a)}function I(e,t){a[e]=t,s(`added/updated theme '${e}'`,t),c===e&&h(e)}function L(e){if(e===n){s("cannot remove default theme");return}delete a[e],c===e&&m(n),s(`removed theme '${e}'`)}function M(){return a[c]||null}function A(e){return a[e]||null}function D(e,t){let i=e.startsWith("--")?e:`${u}${e}`;f[i]=t;let o=y();o&&o.style.setProperty(i,t),s(`set variable '${i}' = '${t}'`)}function W(e){let t=e.startsWith("--")?e:`${u}${e}`;delete f[t];let i=y();i&&i.style.removeProperty(t),s(`cleared variable '${t}'`)}function _(){let e=y();Object.keys(f).forEach(t=>{e&&e.style.removeProperty(t)}),Object.keys(f).forEach(t=>delete f[t]),h(c),s("cleared all dynamic variables")}function F(){let e=x();if(!e&&$){let t=P();e=a[t]?t:n}e||(e=n),s(`initializing with theme '${e}'`),c=e,h(e)}F();let b={install(e,t){e.config=e.config||{},e.config.globalProperties=e.config.globalProperties||{},e.config.globalProperties.$theme=b,typeof e.provide=="function"&&e.provide("theme",b)},get current(){return c},set:m,toggle:V,reset:S,list:j,addTheme:I,removeTheme:L,getConfig:M,getConfigFor:A,setVariable:D,clearVariable:W,clearVariables:_,getSystemPreference:P,watchSystemPreference:O};return b}
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- var _={light:{"--bg":"#ffffff","--bg-secondary":"#f5f5f5","--text":"#333333","--text-secondary":"#666666","--text-muted":"#999999","--primary":"#42b883","--primary-hover":"#3aa876","--secondary":"#35495e","--success":"#10b981","--warning":"#f59e0b","--error":"#ef4444","--info":"#3b82f6","--border":"#e5e7eb","--shadow":"rgba(0, 0, 0, 0.1)"},dark:{"--bg":"#1a1a1a","--bg-secondary":"#2d2d2d","--text":"#e5e5e5","--text-secondary":"#a3a3a3","--text-muted":"#737373","--primary":"#42b883","--primary-hover":"#3aa876","--secondary":"#94a3b8","--success":"#10b981","--warning":"#f59e0b","--error":"#ef4444","--info":"#3b82f6","--border":"#404040","--shadow":"rgba(0, 0, 0, 0.3)"}};function f(){return typeof document=="undefined"?null:document.documentElement}function F(u){return(...a)=>{}}function H(u={}){let{default:a="light",storageKey:b="lyt_theme",themes:p={},onChange:v,autoDetect:P=!0,useDataAttribute:w=!0,cssPrefix:l="--lyt-",debug:$=!1}=u,i=F($),o={..._,...p},s=a,c={};function k(){try{let e=localStorage.getItem(b);if(e&&o[e])return e}catch(e){}return null}function C(e){try{localStorage.setItem(b,e)}catch(t){}}function T(){var e;return typeof window=="undefined"?"light":(e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches?"dark":"light"}function x(e){if(typeof window=="undefined"||!window.matchMedia)return()=>{};let t=window.matchMedia("(prefers-color-scheme: dark)");function n(r){e(r.matches?"dark":"light")}return t.addEventListener("change",n),()=>t.removeEventListener("change",n)}function g(e){let t=f();if(!t)return;let n=o[e];if(!n){i(`theme '${e}' not found`);return}i(`applying theme '${e}'`,n),Object.entries(n).forEach(([r,m])=>{let y=r.startsWith("--")?r:`${l}${r}`;t.style.setProperty(y,m)}),Object.entries(c).forEach(([r,m])=>{let y=r.startsWith("--")?r:`${l}${r}`;t.style.setProperty(y,m)}),w&&t.setAttribute("data-theme",e),t.style.setProperty("color-scheme",e==="dark"?"dark":"light")}function d(e){if(!o[e]){i(`theme '${e}' not found, available:`,Object.keys(o));return}let t=s;t!==e&&(s=e,g(e),C(e),v&&v(e,t),i(`theme changed from '${t}' to '${e}'`))}function E(){let e=Object.keys(o),n=(e.indexOf(s)+1)%e.length;d(e[n])}function O(){d(a)}function V(){return Object.keys(o)}function S(e,t){o[e]=t,i(`added/updated theme '${e}'`,t),s===e&&g(e)}function j(e){if(e===a){i("cannot remove default theme");return}delete o[e],s===e&&d(a),i(`removed theme '${e}'`)}function I(){return o[s]||null}function L(e){return o[e]||null}function M(e,t){let n=e.startsWith("--")?e:`${l}${e}`;c[n]=t;let r=f();r&&r.style.setProperty(n,t),i(`set variable '${n}' = '${t}'`)}function A(e){let t=e.startsWith("--")?e:`${l}${e}`;delete c[t];let n=f();n&&n.style.removeProperty(t),i(`cleared variable '${t}'`)}function D(){let e=f();Object.keys(c).forEach(t=>{e&&e.style.removeProperty(t)}),Object.keys(c).forEach(t=>delete c[t]),g(s),i("cleared all dynamic variables")}function W(){let e=k();if(!e&&P){let t=T();e=o[t]?t:a}e||(e=a),i(`initializing with theme '${e}'`),s=e,g(e)}W();let h={install(e,t){e.config=e.config||{},e.config.globalProperties=e.config.globalProperties||{},e.config.globalProperties.$theme=h,typeof e.provide=="function"&&e.provide("theme",h)},get current(){return s},set:d,toggle:E,reset:O,list:V,addTheme:S,removeTheme:j,getConfig:I,getConfigFor:L,setVariable:M,clearVariable:A,clearVariables:D,getSystemPreference:T,watchSystemPreference:x};return h}export{_ as BUILT_IN_THEMES,H as createTheme};
1
+ var _={light:{"--bg":"#ffffff","--bg-secondary":"#f5f5f5","--text":"#333333","--text-secondary":"#666666","--text-muted":"#999999","--primary":"#42b883","--primary-hover":"#3aa876","--secondary":"#35495e","--success":"#10b981","--warning":"#f59e0b","--error":"#ef4444","--info":"#3b82f6","--border":"#e5e7eb","--shadow":"rgba(0, 0, 0, 0.1)"},dark:{"--bg":"#1a1a1a","--bg-secondary":"#2d2d2d","--text":"#e5e5e5","--text-secondary":"#a3a3a3","--text-muted":"#737373","--primary":"#42b883","--primary-hover":"#3aa876","--secondary":"#94a3b8","--success":"#10b981","--warning":"#f59e0b","--error":"#ef4444","--info":"#3b82f6","--border":"#404040","--shadow":"rgba(0, 0, 0, 0.3)"}};function u(){if(typeof document=="undefined")return null;let a=document.documentElement;return!a||!a.style||typeof a.style.setProperty!="function"?null:a}function F(a){return(...c)=>{}}function H(a={}){let{default:c="light",storageKey:b="lyt_theme",themes:p={},onChange:v,autoDetect:P=!0,useDataAttribute:w=!0,cssPrefix:g="--lyt-",debug:$=!1}=a,i=F($),o={..._,...p},s=c,l={};function k(){try{let e=localStorage.getItem(b);if(e&&o[e])return e}catch(e){}return null}function C(e){try{localStorage.setItem(b,e)}catch(t){}}function T(){var e;return typeof window=="undefined"?"light":(e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches?"dark":"light"}function x(e){if(typeof window=="undefined"||!window.matchMedia)return()=>{};let t=window.matchMedia("(prefers-color-scheme: dark)");function n(r){e(r.matches?"dark":"light")}return t.addEventListener("change",n),()=>t.removeEventListener("change",n)}function f(e){let t=u();if(!t)return;let n=o[e];if(!n){i(`theme '${e}' not found`);return}i(`applying theme '${e}'`,n),Object.entries(n).forEach(([r,m])=>{let y=r.startsWith("--")?r:`${g}${r}`;t.style.setProperty(y,m)}),Object.entries(l).forEach(([r,m])=>{let y=r.startsWith("--")?r:`${g}${r}`;t.style.setProperty(y,m)}),w&&t.setAttribute("data-theme",e),t.style.setProperty("color-scheme",e==="dark"?"dark":"light")}function d(e){if(!o[e]){i(`theme '${e}' not found, available:`,Object.keys(o));return}let t=s;t!==e&&(s=e,f(e),C(e),v&&v(e,t),i(`theme changed from '${t}' to '${e}'`))}function E(){let e=Object.keys(o),n=(e.indexOf(s)+1)%e.length;d(e[n])}function O(){d(c)}function V(){return Object.keys(o)}function S(e,t){o[e]=t,i(`added/updated theme '${e}'`,t),s===e&&f(e)}function j(e){if(e===c){i("cannot remove default theme");return}delete o[e],s===e&&d(c),i(`removed theme '${e}'`)}function I(){return o[s]||null}function L(e){return o[e]||null}function M(e,t){let n=e.startsWith("--")?e:`${g}${e}`;l[n]=t;let r=u();r&&r.style.setProperty(n,t),i(`set variable '${n}' = '${t}'`)}function A(e){let t=e.startsWith("--")?e:`${g}${e}`;delete l[t];let n=u();n&&n.style.removeProperty(t),i(`cleared variable '${t}'`)}function D(){let e=u();Object.keys(l).forEach(t=>{e&&e.style.removeProperty(t)}),Object.keys(l).forEach(t=>delete l[t]),f(s),i("cleared all dynamic variables")}function W(){let e=k();if(!e&&P){let t=T();e=o[t]?t:c}e||(e=c),i(`initializing with theme '${e}'`),s=e,f(e)}W();let h={install(e,t){e.config=e.config||{},e.config.globalProperties=e.config.globalProperties||{},e.config.globalProperties.$theme=h,typeof e.provide=="function"&&e.provide("theme",h)},get current(){return s},set:d,toggle:E,reset:O,list:V,addTheme:S,removeTheme:j,getConfig:I,getConfigFor:L,setVariable:M,clearVariable:A,clearVariables:D,getSystemPreference:T,watchSystemPreference:x};return h}export{_ as BUILT_IN_THEMES,H as createTheme};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAmBA,WAAW;AACX,UAAU,WAAW;IACnB,gBAAgB;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB;AAED,eAAe;AACf,UAAU,YAAY;IACpB,sBAAsB;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa;IACb,MAAM,CAAC,EAAE;Q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O,GAAG,MAAM,CAAA;IACvC,eAAe;IACf,qBAAqB,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,KAAK,IAAI,GAAG,MAAM,IAAI,CAAA;CAC/E;AAID,QAAA,MAAM,eAAe,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;CAiClD,CAAA;AA4BD;;;;GAIG;AACH,iBAAS,WAAW,CAAC,OAAO,GAAE,YAAiB,GAAG,WAAW,CA2S5D;AAED,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAA;AACvC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lytjs/plugin-theme",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "Lyt.js 主题切换插件 - 支持亮色/暗色主题和自定义主题",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",