@gospore/theme 1.0.79 → 1.0.81
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/theme.es.js +2 -1
- package/dist/theme.umd.js +1 -1
- package/package.json +2 -2
package/dist/theme.es.js
CHANGED
|
@@ -376,6 +376,7 @@ const R300 = "hsl(11, 100%, 59%)";
|
|
|
376
376
|
const Y300 = "hsl(40, 100%, 50%)";
|
|
377
377
|
const Y200 = "hsl(46, 100%, 50%)";
|
|
378
378
|
const G500 = "hsl(120, 100%, 25%)";
|
|
379
|
+
const G300 = "#36b37e";
|
|
379
380
|
const N1000 = "hsl(0, 0%, 0%)";
|
|
380
381
|
const N900 = "hsl(218, 76%, 15%)";
|
|
381
382
|
const N800 = "hsla(0,0%,10%,.9)";
|
|
@@ -397,4 +398,4 @@ const N0 = "hsl(0, 0%, 100%)";
|
|
|
397
398
|
const primary1 = B500;
|
|
398
399
|
const primary2 = B500;
|
|
399
400
|
const primary3 = N0;
|
|
400
|
-
export { B100, B200, B300, B400, B500, B600, B900, G500, N0, N10, N100, N1000, N20, N200, N25, N30, N300, N40, N400, N5, N500, N70, N80, N800, N90, N900, R300, R400, Y200, Y300, Theme as default, primary1, primary2, primary3 };
|
|
401
|
+
export { B100, B200, B300, B400, B500, B600, B900, G300, G500, N0, N10, N100, N1000, N20, N200, N25, N30, N300, N40, N400, N5, N500, N70, N80, N800, N90, N900, R300, R400, Y200, Y300, Theme as default, primary1, primary2, primary3 };
|
package/dist/theme.umd.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @version v5.2.10
|
|
4
4
|
* @link https://github.com/ten1seven/what-input
|
|
5
5
|
* @license MIT
|
|
6
|
-
*/(function(a,E){(function(l,r){a.exports=r()})(A,function(){return function(d){var l={};function r(c){if(l[c])return l[c].exports;var s=l[c]={exports:{},id:c,loaded:!1};return d[c].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}return r.m=d,r.c=l,r.p="",r(0)}([function(d,l){d.exports=function(){if(typeof document=="undefined"||typeof window=="undefined")return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var r=document.documentElement,c=null,s="initial",u=s,T=Date.now(),b="false",
|
|
6
|
+
*/(function(a,E){(function(l,r){a.exports=r()})(A,function(){return function(d){var l={};function r(c){if(l[c])return l[c].exports;var s=l[c]={exports:{},id:c,loaded:!1};return d[c].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}return r.m=d,r.c=l,r.p="",r(0)}([function(d,l){d.exports=function(){if(typeof document=="undefined"||typeof window=="undefined")return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var r=document.documentElement,c=null,s="initial",u=s,T=Date.now(),b="false",Ne=["button","input","select","textarea"],h=[],O=[16,17,18,91,93],v=[],k={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},g=!1,y={x:null,y:null},Me={2:"touch",3:"touch",4:"mouse"},B=!1;try{var Ee=Object.defineProperty({},"passive",{get:function(){B=!0}});window.addEventListener("test",null,Ee)}catch{}var be=function(){k[D()]="mouse",ke()},ke=function(){var e=B?{passive:!0}:!1;document.addEventListener("DOMContentLoaded",Le),window.PointerEvent?(window.addEventListener("pointerdown",p),window.addEventListener("pointermove",N)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",p),window.addEventListener("MSPointerMove",N)):(window.addEventListener("mousedown",p),window.addEventListener("mousemove",N),"ontouchstart"in window&&(window.addEventListener("touchstart",p,e),window.addEventListener("touchend",p))),window.addEventListener(D(),N,e),window.addEventListener("keydown",p),window.addEventListener("keyup",p),window.addEventListener("focusin",Se),window.addEventListener("focusout",P)},Le=function(){if(b=!(r.getAttribute("data-whatpersist")||document.body.getAttribute("data-whatpersist")==="false"),b)try{window.sessionStorage.getItem("what-input")&&(s=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(u=window.sessionStorage.getItem("what-intent"))}catch{}m("input"),m("intent")},p=function(e){var n=e.which,i=k[e.type];i==="pointer"&&(i=C(e));var Pe=!v.length&&O.indexOf(n)===-1,Ce=v.length&&v.indexOf(n)!==-1,S=i==="keyboard"&&n&&(Pe||Ce)||i==="mouse"||i==="touch";if(I(i)&&(S=!1),S&&s!==i&&(s=i,L("input",s),m("input")),S&&u!==i){var w=document.activeElement,Ie=w&&w.nodeName&&(Ne.indexOf(w.nodeName.toLowerCase())===-1||w.nodeName.toLowerCase()==="button"&&!Be(w,"form"));Ie&&(u=i,L("intent",u),m("intent"))}},m=function(e){r.setAttribute("data-what"+e,e==="input"?s:u),_e(e)},N=function(e){var n=k[e.type];n==="pointer"&&(n=C(e)),Oe(e),(!g&&!I(n)||g&&e.type==="wheel"||e.type==="mousewheel"||e.type==="DOMMouseScroll")&&u!==n&&(u=n,L("intent",u),m("intent"))},Se=function(e){if(!e.target.nodeName){P();return}c=e.target.nodeName.toLowerCase(),r.setAttribute("data-whatelement",c),e.target.classList&&e.target.classList.length&&r.setAttribute("data-whatclasses",e.target.classList.toString().replace(" ",","))},P=function(){c=null,r.removeAttribute("data-whatelement"),r.removeAttribute("data-whatclasses")},L=function(e,n){if(b)try{window.sessionStorage.setItem("what-"+e,n)}catch{}},C=function(e){return typeof e.pointerType=="number"?Me[e.pointerType]:e.pointerType==="pen"?"touch":e.pointerType},I=function(e){var n=Date.now(),i=e==="mouse"&&s==="touch"&&n-T<200;return T=n,i},D=function(){var e=null;return"onwheel"in document.createElement("div")?e="wheel":e=document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",e},_e=function(e){for(var n=0,i=h.length;n<i;n++)h[n].type===e&&h[n].fn.call(void 0,e==="input"?s:u)},Te=function(e){for(var n=0,i=h.length;n<i;n++)if(h[n].fn===e)return n},Oe=function(e){y.x!==e.screenX||y.y!==e.screenY?(g=!1,y.x=e.screenX,y.y=e.screenY):g=!0},Be=function(e,n){var i=window.Element.prototype;if(i.matches||(i.matches=i.msMatchesSelector||i.webkitMatchesSelector),i.closest)return e.closest(n);do{if(e.matches(n))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null};return"addEventListener"in window&&Array.prototype.indexOf&&be(),{ask:function(e){return e==="intent"?u:s},element:function(){return c},ignoreKeys:function(e){O=e},specificKeys:function(e){v=e},registerOnChange:function(e,n){h.push({fn:e,type:n||"input"})},unRegisterOnChange:function(e){var n=Te(e);(n||n===0)&&h.splice(n,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])})})(K);var De="",R=(a,E)=>{const d=a.__vccOpts||a;for(const[l,r]of E)d[l]=r;return d};const U={name:"Theme",provide(){return{theme:this.theme}},data(){return{theme:{darkMode:window.matchMedia("(prefers-color-scheme: dark)").matches}}},watch:{theme:{handler(){document.documentElement.setAttribute("dark-mode",this.theme.darkMode)},deep:!0,immediate:!0}},created(){window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",this.updateDarkMode);var a=document.createElement("meta");a.name="color-scheme",a.setAttribute("content","light dark"),document.getElementsByTagName("head")[0].appendChild(a)},beforeUnmount(){window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",this.updateDarkMode)},methods:{updateDarkMode(a){!a||(this.theme.darkMode=a.matches)}}},j={class:"theme"};function Y(a,E,d,l,r,c){return f.openBlock(),f.createElementBlock("div",j,[f.renderSlot(a.$slots,"default")])}var G=R(U,[["render",Y]]);const $="hsl(225, 90%, 16%)",q="#061f80",M="hsl(225, 94%, 35%)",F="#06c",V="hsl(210, 100%, 50%)",W="hsl(210, 100%, 93%)",X="hsl(225, 100%, 96%)",z="hsl(12, 91%, 46%)",H="hsl(11, 100%, 59%)",J="hsl(40, 100%, 50%)",Q="hsl(46, 100%, 50%)",Z="hsl(120, 100%, 25%)",x="#36b37e",ee="hsl(0, 0%, 0%)",te="hsl(218, 76%, 15%)",ne="hsla(0,0%,10%,.9)",oe="hsla(0,0%,10%,.6)",ie="hsl(218, 20%, 39%)",re="hsl(218, 17%, 44%)",se="hsl(218, 14%, 49%)",ae="hsl(218, 14%, 54%)",ce="hsl(218, 13%, 59%)",ue="hsl(218, 13%, 64%)",de="hsl(217, 13%, 69%)",le="hsl(223, 12%, 89%)",fe="hsl(228, 14%, 93%)",he="hsl(210, 7%, 95%)",pe="hsl(220, 16%, 96%)",me="hsl(210, 25%, 98%)",we="hsl(0, 0%, 98%)",_="hsl(0, 0%, 100%)",ve=M,ge=M,ye=_;t.B100=X,t.B200=W,t.B300=V,t.B400=F,t.B500=M,t.B600=q,t.B900=$,t.G300=x,t.G500=Z,t.N0=_,t.N10=me,t.N100=ae,t.N1000=ee,t.N20=pe,t.N200=se,t.N25=he,t.N30=fe,t.N300=re,t.N40=le,t.N400=ie,t.N5=we,t.N500=oe,t.N70=de,t.N80=ue,t.N800=ne,t.N90=ce,t.N900=te,t.R300=H,t.R400=z,t.Y200=Q,t.Y300=J,t.default=G,t.primary1=ve,t.primary2=ge,t.primary3=ye,Object.defineProperty(t,"__esModule",{value:!0}),t[Symbol.toStringTag]="Module"});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gospore/theme",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.81",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Gospore",
|
|
6
6
|
"files": [
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@vitejs/plugin-vue": "^2.2.2",
|
|
25
25
|
"vite": "^2.8.4"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "6a183512c85e5bc73016f8472519c22ea3fef7c2"
|
|
28
28
|
}
|