@gospore/theme 1.0.72 → 1.0.74

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/style.css CHANGED
@@ -1 +1 @@
1
- html,body,p,div,h1,h2,h3,h4,h5,h6,ul,ol,dl,img,pre,form,fieldset{margin:0;padding:0}img,fieldset{border:0}body,html,#app{height:100%;width:100%}body{background-color:#fff;color:#091e42;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:23px}input,select,textarea,button{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:25px}p,ul,ol,dl,h1,h2,h3,h4,h5,h6,blockquote,pre,form,table{margin:16px 0 0}a{color:#0052cc;text-decoration:none;border-radius:2px;cursor:pointer}a:hover{color:#0065ff;text-decoration:underline}a:active{color:#052fad}h1{font-size:2.07142857em;font-style:normal;line-height:32 / 29;color:#172b4d;font-weight:600;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] h1{color:#b8c7e0}h1:first-child{margin-top:0}h2{font-size:1.71428571em;font-style:normal;line-height:28 / 24;color:#172b4d;font-weight:500;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] h2{color:#b8c7e0}h2:first-child{margin-top:0}h3{font-size:1.42857143em;font-style:normal;line-height:24 / 20;color:#172b4d;font-weight:500;letter-spacing:-.008em;margin-top:28px}[dark-mode=true] h3{color:#b8c7e0}h3:first-child{margin-top:0}h4{font-size:1.14285714em;font-style:normal;line-height:20 / 16;color:#172b4d;font-weight:600;letter-spacing:-.006em;margin-top:24px}[dark-mode=true] h4{color:#b8c7e0}h4:first-child{margin-top:0}h5{font-size:1em;font-style:normal;line-height:16 / 14;color:#172b4d;font-weight:600;letter-spacing:-.003em;margin-top:16px}[dark-mode=true] h5{color:#b8c7e0}h5:first-child{margin-top:0}h6{font-size:.85714286em;font-style:normal;line-height:16 / 12;color:#172b4d;font-weight:600;margin-top:20px;text-transform:uppercase}[dark-mode=true] h6{color:#b8c7e0}h6:first-child{margin-top:0}hr{background-color:#dfe1e6;height:2px;border-style:none;margin:40px 0}ul,ol,dl{padding-left:40px}dd,dd+dt,li+li{margin-top:4px}ul ul:not(:first-child),ol ul:not(:first-child),ul ol:not(:first-child),ol ol:not(:first-child){margin-top:4px}p:first-child,ul:first-child,ol:first-child,dl:first-child,h1:first-child,h2:first-child,h3:first-child,h4:first-child,h5:first-child,h6:first-child,blockquote:first-child,pre:first-child,form:first-child,table:first-child{margin-top:0}:focus{outline:none;box-shadow:0 0 0 2px #4c9aff}[data-whatintent=mouse] :focus{outline:none;box-shadow:none}pre{font-family:SFMono-Medium,SF Mono,Segoe UI Mono,Roboto Mono,Ubuntu Mono,Menlo,Consolas,Courier,monospace;white-space:pre-wrap;padding:8px 16px;border-radius:5px;background:#f4f5f7;font-size:.8rem;overflow-x:auto}blockquote{white-space:pre-wrap;border-left:3px solid #dfe1e6;padding-left:8px;font-style:italic}p code{font-family:SFMono-Medium,SF Mono,Segoe UI Mono,Roboto Mono,Ubuntu Mono,Menlo,Consolas,Courier,monospace;padding:0 8px;border-radius:3px;background:#dfe1e6}table{border-collapse:collapse;width:100%}thead,tbody,tfoot{border-bottom:2px solid #dfe1e6}td,th{border:none;padding:4px 8px;text-align:left}th{font-size:.78571429em;font-style:normal;line-height:16 / 11;color:#6b778c;font-weight:700;margin-top:16px;line-height:inherit}[dark-mode=true] th{color:#8c9cb8}th:first-child{margin-top:0}td:first-child,th:first-child{padding-left:0}td:last-child,th:last-child{padding-right:0}tr{transition:background .1s ease-out,box-shadow .15s cubic-bezier(.47,.03,.49,1.38)}tbody tr:hover{background-color:#f4f5f7}caption{font-size:1.42857143em;font-style:normal;line-height:24 / 20;color:#172b4d;font-weight:500;letter-spacing:-.008em;margin-top:28px;margin-bottom:8px;text-align:left}[dark-mode=true] caption{color:#b8c7e0}caption:first-child{margin-top:0}[dark-mode=true] body{background-color:#1b2638;color:#b8c7e0}[dark-mode=true] h1,[dark-mode=true] h2,[dark-mode=true] h3,[dark-mode=true] h4,[dark-mode=true] h5{color:#b8c7e0}[dark-mode=true] h6{color:#8c9cb8}[dark-mode=true] a{color:#4c9aff}[dark-mode=true] a:hover{color:#2684ff}[dark-mode=true] a:active{color:#4c9aff}[dark-mode=true] hr{background-color:#3b475c}[dark-mode=true] pre{background:#283447}[dark-mode=true] p code{background:#3b475c}[dark-mode=true] blockquote{border-left:3px solid #3b475c}[dark-mode=true] thead,[dark-mode=true] tbody,[dark-mode=true] tfoot{border-bottom:2px solid #3b475c}[dark-mode=true] tbody tr:hover{background-color:#283447}.heading-900{font-size:2.5em;font-style:normal;line-height:40 / 35;color:#172b4d;font-weight:500;letter-spacing:-.01em;margin-top:52px}[dark-mode=true] .heading-900{color:#b8c7e0}.heading-900:first-child{margin-top:0}.heading-800{font-size:2.07142857em;font-style:normal;line-height:32 / 29;color:#172b4d;font-weight:600;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] .heading-800{color:#b8c7e0}.heading-800:first-child{margin-top:0}.heading-700{font-size:1.71428571em;font-style:normal;line-height:28 / 24;color:#172b4d;font-weight:500;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] .heading-700{color:#b8c7e0}.heading-700:first-child{margin-top:0}.heading-600{font-size:1.42857143em;font-style:normal;line-height:24 / 20;color:#172b4d;font-weight:500;letter-spacing:-.008em;margin-top:28px}[dark-mode=true] .heading-600{color:#b8c7e0}.heading-600:first-child{margin-top:0}.heading-500{font-size:1.14285714em;font-style:normal;line-height:20 / 16;color:#172b4d;font-weight:600;letter-spacing:-.006em;margin-top:24px}[dark-mode=true] .heading-500{color:#b8c7e0}.heading-500:first-child{margin-top:0}.heading-400{font-size:1em;font-style:normal;line-height:16 / 14;color:#172b4d;font-weight:600;letter-spacing:-.003em;margin-top:16px}[dark-mode=true] .heading-400{color:#b8c7e0}.heading-400:first-child{margin-top:0}.heading-300{font-size:.85714286em;font-style:normal;line-height:16 / 12;color:#172b4d;font-weight:600;margin-top:20px;text-transform:uppercase}[dark-mode=true] .heading-300{color:#b8c7e0}.heading-300:first-child{margin-top:0}.heading-200{font-size:.85714286em;font-style:normal;line-height:16 / 12;color:#6b778c;font-weight:600;margin-top:16px}[dark-mode=true] .heading-200{color:#8c9cb8}.heading-200:first-child{margin-top:0}.heading-100{font-size:.78571429em;font-style:normal;line-height:16 / 11;color:#6b778c;font-weight:700;margin-top:16px}[dark-mode=true] .heading-100{color:#8c9cb8}.heading-100:first-child{margin-top:0}.text-caption{font-size:12px;font-weight:400;color:#7a869a}.text-caption-bold{font-size:12px;font-weight:600;color:#091e42}.text-prominent{font-size:14px;font-weight:600;color:#091e42}.error{color:#ff5630}[dark-mode=true] .text-caption{color:#7988a3}[dark-mode=true] .text-caption-bold,[dark-mode=true] .text-prominent{color:#b8c7e0}[dark-mode=true] .error{color:#ff5630}
1
+ html,body,p,div,h1,h2,h3,h4,h5,h6,ul,ol,dl,img,pre,form,fieldset{margin:0;padding:0}img,fieldset{border:0}body,html,#app{height:100%;width:100%}body{background-color:#fff;color:#091e42;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:23px}input,select,textarea,button{font-family:inherit;font-size:inherit;font-weight:inherit;line-height:25px}p,ul,ol,dl,h1,h2,h3,h4,h5,h6,blockquote,pre,form,table{margin:16px 0 0}a{color:#0052cc;text-decoration:none;border-radius:2px;cursor:pointer}a:hover{color:#0065ff;text-decoration:underline}a:active{color:#052fad}h1{font-size:2.07142857em;font-style:normal;line-height:1.10344828em;color:#172b4d;font-weight:600;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] h1{color:#b8c7e0}h1:first-child{margin-top:0}h2{font-size:1.71428571em;font-style:normal;line-height:1.16666667em;color:#172b4d;font-weight:500;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] h2{color:#b8c7e0}h2:first-child{margin-top:0}h3{font-size:1.42857143em;font-style:normal;line-height:1.2em;color:#172b4d;font-weight:500;letter-spacing:-.008em;margin-top:28px}[dark-mode=true] h3{color:#b8c7e0}h3:first-child{margin-top:0}h4{font-size:1.14285714em;font-style:normal;line-height:1.25em;color:#172b4d;font-weight:600;letter-spacing:-.006em;margin-top:24px}[dark-mode=true] h4{color:#b8c7e0}h4:first-child{margin-top:0}h5{font-size:1em;font-style:normal;line-height:1.14285714em;color:#172b4d;font-weight:600;letter-spacing:-.003em;margin-top:16px}[dark-mode=true] h5{color:#b8c7e0}h5:first-child{margin-top:0}h6{font-size:.85714286em;font-style:normal;line-height:1.33333333em;color:#172b4d;font-weight:600;margin-top:20px;text-transform:uppercase}[dark-mode=true] h6{color:#b8c7e0}h6:first-child{margin-top:0}hr{background-color:#dfe1e6;height:2px;border-style:none;margin:40px 0}ul,ol,dl{padding-left:40px}dd,dd+dt,li+li{margin-top:4px}ul ul:not(:first-child),ol ul:not(:first-child),ul ol:not(:first-child),ol ol:not(:first-child){margin-top:4px}p:first-child,ul:first-child,ol:first-child,dl:first-child,h1:first-child,h2:first-child,h3:first-child,h4:first-child,h5:first-child,h6:first-child,blockquote:first-child,pre:first-child,form:first-child,table:first-child{margin-top:0}:focus{outline:none;box-shadow:0 0 0 2px #4c9aff}[data-whatintent=mouse] :focus{outline:none;box-shadow:none}pre{font-family:SFMono-Medium,SF Mono,Segoe UI Mono,Roboto Mono,Ubuntu Mono,Menlo,Consolas,Courier,monospace;white-space:pre-wrap;padding:8px 16px;border-radius:5px;background:#f4f5f7;font-size:.8rem;overflow-x:auto}blockquote{white-space:pre-wrap;border-left:3px solid #dfe1e6;padding-left:8px;font-style:italic}p code{font-family:SFMono-Medium,SF Mono,Segoe UI Mono,Roboto Mono,Ubuntu Mono,Menlo,Consolas,Courier,monospace;padding:0 8px;border-radius:3px;background:#dfe1e6}table{border-collapse:collapse;width:100%}thead,tbody,tfoot{border-bottom:2px solid #dfe1e6}td,th{border:none;padding:4px 8px;text-align:left}th{font-size:.78571429em;font-style:normal;line-height:1.45454545em;color:#6b778c;font-weight:700;margin-top:16px;line-height:inherit}[dark-mode=true] th{color:#8c9cb8}th:first-child{margin-top:0}td:first-child,th:first-child{padding-left:0}td:last-child,th:last-child{padding-right:0}tr{transition:background .1s ease-out,box-shadow .15s cubic-bezier(.47,.03,.49,1.38)}tbody tr:hover{background-color:#f4f5f7}caption{font-size:1.42857143em;font-style:normal;line-height:1.2em;color:#172b4d;font-weight:500;letter-spacing:-.008em;margin-top:28px;margin-bottom:8px;text-align:left}[dark-mode=true] caption{color:#b8c7e0}caption:first-child{margin-top:0}[dark-mode=true] body{background-color:#1b2638;color:#b8c7e0}[dark-mode=true] h1,[dark-mode=true] h2,[dark-mode=true] h3,[dark-mode=true] h4,[dark-mode=true] h5{color:#b8c7e0}[dark-mode=true] h6{color:#8c9cb8}[dark-mode=true] a{color:#4c9aff}[dark-mode=true] a:hover{color:#2684ff}[dark-mode=true] a:active{color:#4c9aff}[dark-mode=true] hr{background-color:#3b475c}[dark-mode=true] pre{background:#283447}[dark-mode=true] p code{background:#3b475c}[dark-mode=true] blockquote{border-left:3px solid #3b475c}[dark-mode=true] thead,[dark-mode=true] tbody,[dark-mode=true] tfoot{border-bottom:2px solid #3b475c}[dark-mode=true] tbody tr:hover{background-color:#283447}.heading-900{font-size:2.5em;font-style:normal;line-height:1.14285714em;color:#172b4d;font-weight:500;letter-spacing:-.01em;margin-top:52px}[dark-mode=true] .heading-900{color:#b8c7e0}.heading-900:first-child{margin-top:0}.heading-800{font-size:2.07142857em;font-style:normal;line-height:1.10344828em;color:#172b4d;font-weight:600;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] .heading-800{color:#b8c7e0}.heading-800:first-child{margin-top:0}.heading-700{font-size:1.71428571em;font-style:normal;line-height:1.16666667em;color:#172b4d;font-weight:500;letter-spacing:-.01em;margin-top:40px}[dark-mode=true] .heading-700{color:#b8c7e0}.heading-700:first-child{margin-top:0}.heading-600{font-size:1.42857143em;font-style:normal;line-height:1.2em;color:#172b4d;font-weight:500;letter-spacing:-.008em;margin-top:28px}[dark-mode=true] .heading-600{color:#b8c7e0}.heading-600:first-child{margin-top:0}.heading-500{font-size:1.14285714em;font-style:normal;line-height:1.25em;color:#172b4d;font-weight:600;letter-spacing:-.006em;margin-top:24px}[dark-mode=true] .heading-500{color:#b8c7e0}.heading-500:first-child{margin-top:0}.heading-400{font-size:1em;font-style:normal;line-height:1.14285714em;color:#172b4d;font-weight:600;letter-spacing:-.003em;margin-top:16px}[dark-mode=true] .heading-400{color:#b8c7e0}.heading-400:first-child{margin-top:0}.heading-300{font-size:.85714286em;font-style:normal;line-height:1.33333333em;color:#172b4d;font-weight:600;margin-top:20px;text-transform:uppercase}[dark-mode=true] .heading-300{color:#b8c7e0}.heading-300:first-child{margin-top:0}.heading-200{font-size:.85714286em;font-style:normal;line-height:1.33333333em;color:#6b778c;font-weight:600;margin-top:16px}[dark-mode=true] .heading-200{color:#8c9cb8}.heading-200:first-child{margin-top:0}.heading-100{font-size:.78571429em;font-style:normal;line-height:1.45454545em;color:#6b778c;font-weight:700;margin-top:16px}[dark-mode=true] .heading-100{color:#8c9cb8}.heading-100:first-child{margin-top:0}.text-caption{font-size:12px;font-weight:400;color:#7a869a}.text-caption-bold{font-size:12px;font-weight:600;color:#091e42}.text-prominent{font-size:14px;font-weight:600;color:#091e42}.error{color:#ff5630}[dark-mode=true] .text-caption{color:#7988a3}[dark-mode=true] .text-caption-bold,[dark-mode=true] .text-prominent{color:#b8c7e0}[dark-mode=true] .error{color:#ff5630}
package/dist/theme.es.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { openBlock, createElementBlock, renderSlot } from "vue";
1
2
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
2
3
  var whatInput = { exports: {} };
3
4
  /**
@@ -307,65 +308,14 @@ var whatInput = { exports: {} };
307
308
  });
308
309
  })(whatInput);
309
310
  var index = "";
310
- var render = function() {
311
- var _vm = this;
312
- var _h = _vm.$createElement;
313
- var _c = _vm._self._c || _h;
314
- return _c("div", { staticClass: "theme" }, [_vm._t("default")], 2);
315
- };
316
- var staticRenderFns = [];
317
- function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
318
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
319
- if (render2) {
320
- options.render = render2;
321
- options.staticRenderFns = staticRenderFns2;
322
- options._compiled = true;
323
- }
324
- if (functionalTemplate) {
325
- options.functional = true;
311
+ var _export_sfc = (sfc, props) => {
312
+ const target = sfc.__vccOpts || sfc;
313
+ for (const [key, val] of props) {
314
+ target[key] = val;
326
315
  }
327
- if (scopeId) {
328
- options._scopeId = "data-v-" + scopeId;
329
- }
330
- var hook;
331
- if (moduleIdentifier) {
332
- hook = function(context) {
333
- context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
334
- if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
335
- context = __VUE_SSR_CONTEXT__;
336
- }
337
- if (injectStyles) {
338
- injectStyles.call(this, context);
339
- }
340
- if (context && context._registeredComponents) {
341
- context._registeredComponents.add(moduleIdentifier);
342
- }
343
- };
344
- options._ssrRegister = hook;
345
- } else if (injectStyles) {
346
- hook = shadowMode ? function() {
347
- injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
348
- } : injectStyles;
349
- }
350
- if (hook) {
351
- if (options.functional) {
352
- options._injectStyles = hook;
353
- var originalRender = options.render;
354
- options.render = function renderWithStyleInjection(h, context) {
355
- hook.call(context);
356
- return originalRender(h, context);
357
- };
358
- } else {
359
- var existing = options.beforeCreate;
360
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
361
- }
362
- }
363
- return {
364
- exports: scriptExports,
365
- options
366
- };
367
- }
368
- const __vue2_script = {
316
+ return target;
317
+ };
318
+ const _sfc_main = {
369
319
  name: "Theme",
370
320
  provide() {
371
321
  return {
@@ -395,7 +345,7 @@ const __vue2_script = {
395
345
  colorSchemeMeta.setAttribute("content", "light dark");
396
346
  document.getElementsByTagName("head")[0].appendChild(colorSchemeMeta);
397
347
  },
398
- beforeDestroy() {
348
+ beforeUnmount() {
399
349
  window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change", this.updateDarkMode);
400
350
  },
401
351
  methods: {
@@ -407,16 +357,13 @@ const __vue2_script = {
407
357
  }
408
358
  }
409
359
  };
410
- const __cssModules = {};
411
- var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
412
- function __vue2_injectStyles(context) {
413
- for (let o in __cssModules) {
414
- this[o] = __cssModules[o];
415
- }
360
+ const _hoisted_1 = { class: "theme" };
361
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
362
+ return openBlock(), createElementBlock("div", _hoisted_1, [
363
+ renderSlot(_ctx.$slots, "default")
364
+ ]);
416
365
  }
417
- var Theme = /* @__PURE__ */ function() {
418
- return __component__.exports;
419
- }();
366
+ var Theme = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
420
367
  const B900 = "hsl(225, 90%, 16%)";
421
368
  const B600 = "#061f80";
422
369
  const B500 = "hsl(225, 94%, 35%)";
package/dist/theme.umd.js CHANGED
@@ -1,6 +1,6 @@
1
- (function(t,N){typeof exports=="object"&&typeof module!="undefined"?N(exports):typeof define=="function"&&define.amd?define(["exports"],N):(t=typeof globalThis!="undefined"?globalThis:t||self,N(t.theme={}))})(this,function(t){"use strict";var N=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},K={exports:{}};/**
1
+ (function(t,f){typeof exports=="object"&&typeof module!="undefined"?f(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],f):(t=typeof globalThis!="undefined"?globalThis:t||self,f(t.theme={},t.Vue))})(this,function(t,f){"use strict";var A=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},K={exports:{}};/**
2
2
  * what-input - A global utility for tracking the current input method (mouse, keyboard or touch).
3
3
  * @version v5.2.10
4
4
  * @link https://github.com/ten1seven/what-input
5
5
  * @license MIT
6
- */(function(s,m){(function(w,r){s.exports=r()})(N,function(){return function(p){var w={};function r(c){if(w[c])return w[c].exports;var a=w[c]={exports:{},id:c,loaded:!1};return p[c].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}return r.m=p,r.c=w,r.p="",r(0)}([function(p,w){p.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,a="initial",d=a,u=Date.now(),l="false",S=["button","input","select","textarea"],h=[],f=[16,17,18,91,93],g=[],y={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},b=!1,E={x:null,y:null},Me={2:"touch",3:"touch",4:"mouse"},B=!1;try{var be=Object.defineProperty({},"passive",{get:function(){B=!0}});window.addEventListener("test",null,be)}catch{}var Ee=function(){y[A()]="mouse",ke()},ke=function(){var e=B?{passive:!0}:!1;document.addEventListener("DOMContentLoaded",Le),window.PointerEvent?(window.addEventListener("pointerdown",v),window.addEventListener("pointermove",k)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",v),window.addEventListener("MSPointerMove",k)):(window.addEventListener("mousedown",v),window.addEventListener("mousemove",k),"ontouchstart"in window&&(window.addEventListener("touchstart",v,e),window.addEventListener("touchend",v))),window.addEventListener(A(),k,e),window.addEventListener("keydown",v),window.addEventListener("keyup",v),window.addEventListener("focusin",Se),window.addEventListener("focusout",R)},Le=function(){if(l=!(r.getAttribute("data-whatpersist")||document.body.getAttribute("data-whatpersist")==="false"),l)try{window.sessionStorage.getItem("what-input")&&(a=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(d=window.sessionStorage.getItem("what-intent"))}catch{}_("input"),_("intent")},v=function(e){var n=e.which,i=y[e.type];i==="pointer"&&(i=D(e));var Be=!g.length&&f.indexOf(n)===-1,Re=g.length&&g.indexOf(n)!==-1,T=i==="keyboard"&&n&&(Be||Re)||i==="mouse"||i==="touch";if(I(i)&&(T=!1),T&&a!==i&&(a=i,C("input",a),_("input")),T&&d!==i){var M=document.activeElement,De=M&&M.nodeName&&(S.indexOf(M.nodeName.toLowerCase())===-1||M.nodeName.toLowerCase()==="button"&&!Pe(M,"form"));De&&(d=i,C("intent",d),_("intent"))}},_=function(e){r.setAttribute("data-what"+e,e==="input"?a:d),Ce(e)},k=function(e){var n=y[e.type];n==="pointer"&&(n=D(e)),Oe(e),(!b&&!I(n)||b&&e.type==="wheel"||e.type==="mousewheel"||e.type==="DOMMouseScroll")&&d!==n&&(d=n,C("intent",d),_("intent"))},Se=function(e){if(!e.target.nodeName){R();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(" ",","))},R=function(){c=null,r.removeAttribute("data-whatelement"),r.removeAttribute("data-whatclasses")},C=function(e,n){if(l)try{window.sessionStorage.setItem("what-"+e,n)}catch{}},D=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"&&a==="touch"&&n-u<200;return u=n,i},A=function(){var e=null;return"onwheel"in document.createElement("div")?e="wheel":e=document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",e},Ce=function(e){for(var n=0,i=h.length;n<i;n++)h[n].type===e&&h[n].fn.call(void 0,e==="input"?a:d)},Te=function(e){for(var n=0,i=h.length;n<i;n++)if(h[n].fn===e)return n},Oe=function(e){E.x!==e.screenX||E.y!==e.screenY?(b=!1,E.x=e.screenX,E.y=e.screenY):b=!0},Pe=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&&Ee(),{ask:function(e){return e==="intent"?d:a},element:function(){return c},ignoreKeys:function(e){f=e},specificKeys:function(e){g=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 Ie="",U=function(){var s=this,m=s.$createElement,p=s._self._c||m;return p("div",{staticClass:"theme"},[s._t("default")],2)},$=[];function Y(s,m,p,w,r,c,a,d){var u=typeof s=="function"?s.options:s;m&&(u.render=m,u.staticRenderFns=p,u._compiled=!0),w&&(u.functional=!0),c&&(u._scopeId="data-v-"+c);var l;if(a?(l=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(f=__VUE_SSR_CONTEXT__),r&&r.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=d?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var S=u.render;u.render=function(g,y){return l.call(y),S(g,y)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:s,options:u}}const j={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 s=document.createElement("meta");s.name="color-scheme",s.setAttribute("content","light dark"),document.getElementsByTagName("head")[0].appendChild(s)},beforeDestroy(){window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",this.updateDarkMode)},methods:{updateDarkMode(s){!s||(this.theme.darkMode=s.matches)}}},O={};var F=Y(j,U,$,!1,X,null,null,null);function X(s){for(let m in O)this[m]=O[m]}var G=function(){return F.exports}();const V="hsl(225, 90%, 16%)",W="#061f80",L="hsl(225, 94%, 35%)",q="#06c",z="hsl(210, 100%, 50%)",H="hsl(210, 100%, 93%)",J="hsl(225, 100%, 96%)",Q="hsl(12, 91%, 46%)",Z="hsl(11, 100%, 59%)",x="hsl(40, 100%, 50%)",ee="hsl(46, 100%, 50%)",te="hsl(120, 100%, 25%)",ne="hsl(0, 0%, 0%)",oe="hsl(218, 76%, 15%)",ie="hsla(0,0%,10%,.9)",re="hsla(0,0%,10%,.6)",se="hsl(218, 20%, 39%)",ae="hsl(218, 17%, 44%)",ue="hsl(218, 14%, 49%)",ce="hsl(218, 14%, 54%)",de="hsl(218, 13%, 59%)",le="hsl(218, 13%, 64%)",fe="hsl(217, 13%, 69%)",he="hsl(223, 12%, 89%)",pe="hsl(228, 14%, 93%)",me="hsl(210, 7%, 95%)",we="hsl(220, 16%, 96%)",ve="hsl(210, 25%, 98%)",ge="hsl(0, 0%, 98%)",P="hsl(0, 0%, 100%)",ye=L,Ne=L,_e=P;t.B100=J,t.B200=H,t.B300=z,t.B400=q,t.B500=L,t.B600=W,t.B900=V,t.G500=te,t.N0=P,t.N10=ve,t.N100=ce,t.N1000=ne,t.N20=we,t.N200=ue,t.N25=me,t.N30=pe,t.N300=ae,t.N40=he,t.N400=se,t.N5=ge,t.N500=re,t.N70=fe,t.N80=le,t.N800=ie,t.N90=de,t.N900=oe,t.R300=Z,t.R400=Q,t.Y200=ee,t.Y300=x,t.default=G,t.primary1=ye,t.primary2=Ne,t.primary3=_e,Object.defineProperty(t,"__esModule",{value:!0}),t[Symbol.toStringTag]="Module"});
6
+ */(function(a,E){(function(l,r){a.exports=r()})(A,function(){return function(u){var l={};function r(c){if(l[c])return l[c].exports;var s=l[c]={exports:{},id:c,loaded:!1};return u[c].call(s.exports,s,s.exports,r),s.loaded=!0,s.exports}return r.m=u,r.c=l,r.p="",r(0)}([function(u,l){u.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",d=s,O=Date.now(),b="false",ye=["button","input","select","textarea"],h=[],_=[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},Ne={2:"touch",3:"touch",4:"mouse"},B=!1;try{var Me=Object.defineProperty({},"passive",{get:function(){B=!0}});window.addEventListener("test",null,Me)}catch{}var Ee=function(){k[D()]="mouse",be()},be=function(){var e=B?{passive:!0}:!1;document.addEventListener("DOMContentLoaded",ke),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",Le),window.addEventListener("focusout",P)},ke=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")&&(d=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 Be=!v.length&&_.indexOf(n)===-1,Pe=v.length&&v.indexOf(n)!==-1,S=i==="keyboard"&&n&&(Be||Pe)||i==="mouse"||i==="touch";if(I(i)&&(S=!1),S&&s!==i&&(s=i,L("input",s),m("input")),S&&d!==i){var w=document.activeElement,Ce=w&&w.nodeName&&(ye.indexOf(w.nodeName.toLowerCase())===-1||w.nodeName.toLowerCase()==="button"&&!_e(w,"form"));Ce&&(d=i,L("intent",d),m("intent"))}},m=function(e){r.setAttribute("data-what"+e,e==="input"?s:d),Se(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")&&d!==n&&(d=n,L("intent",d),m("intent"))},Le=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"?Ne[e.pointerType]:e.pointerType==="pen"?"touch":e.pointerType},I=function(e){var n=Date.now(),i=e==="mouse"&&s==="touch"&&n-O<200;return O=n,i},D=function(){var e=null;return"onwheel"in document.createElement("div")?e="wheel":e=document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",e},Se=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:d)},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},_e=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&&Ee(),{ask:function(e){return e==="intent"?d:s},element:function(){return c},ignoreKeys:function(e){_=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 Ie="",R=(a,E)=>{const u=a.__vccOpts||a;for(const[l,r]of E)u[l]=r;return u};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,u,l,r,c){return f.openBlock(),f.createElementBlock("div",j,[f.renderSlot(a.$slots,"default")])}var $=R(U,[["render",Y]]);const G="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="hsl(0, 0%, 0%)",ee="hsl(218, 76%, 15%)",te="hsla(0,0%,10%,.9)",ne="hsla(0,0%,10%,.6)",oe="hsl(218, 20%, 39%)",ie="hsl(218, 17%, 44%)",re="hsl(218, 14%, 49%)",se="hsl(218, 14%, 54%)",ae="hsl(218, 13%, 59%)",ce="hsl(218, 13%, 64%)",de="hsl(217, 13%, 69%)",ue="hsl(223, 12%, 89%)",le="hsl(228, 14%, 93%)",fe="hsl(210, 7%, 95%)",he="hsl(220, 16%, 96%)",pe="hsl(210, 25%, 98%)",me="hsl(0, 0%, 98%)",T="hsl(0, 0%, 100%)",we=M,ve=M,ge=T;t.B100=X,t.B200=W,t.B300=V,t.B400=F,t.B500=M,t.B600=q,t.B900=G,t.G500=Z,t.N0=T,t.N10=pe,t.N100=se,t.N1000=x,t.N20=he,t.N200=re,t.N25=fe,t.N30=le,t.N300=ie,t.N40=ue,t.N400=oe,t.N5=me,t.N500=ne,t.N70=de,t.N80=ce,t.N800=te,t.N90=ae,t.N900=ee,t.R300=H,t.R400=z,t.Y200=Q,t.Y300=J,t.default=$,t.primary1=we,t.primary2=ve,t.primary3=ge,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.72",
3
+ "version": "1.0.74",
4
4
  "description": "",
5
5
  "author": "Gospore",
6
6
  "files": [
@@ -21,9 +21,8 @@
21
21
  "what-input": "^5.2.10"
22
22
  },
23
23
  "devDependencies": {
24
- "@vitejs/plugin-vue": "^1.10.2",
25
- "vite": "^2.7.13",
26
- "vite-plugin-vue2": "^1.9.3"
24
+ "@vitejs/plugin-vue": "^2.2.2",
25
+ "vite": "^2.8.4"
27
26
  },
28
- "gitHead": "1f65c1dc8db832baabb5fbc2e70f17b4ab016a15"
27
+ "gitHead": "a0f4d44bb60e2ba12e595b941ba4904eea9c7ab3"
29
28
  }