@wikicasa-dev/utilities 0.0.2 → 0.0.3
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/main.d.ts +1 -0
- package/dist/utilities.js +5 -25
- package/dist/utilities.umd.cjs +1 -17
- package/package.json +1 -1
- package/dist/counter.d.ts +0 -1
- package/dist/style.css +0 -1
package/dist/main.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ciao(): void;
|
package/dist/utilities.js
CHANGED
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let M = 0;
|
|
4
|
-
const N = (L) => {
|
|
5
|
-
M = L, j.innerHTML = `count is ${M}`;
|
|
6
|
-
};
|
|
7
|
-
j.addEventListener("click", () => N(M + 1)), N(0);
|
|
1
|
+
function o() {
|
|
2
|
+
console.log("CIAO");
|
|
8
3
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<img src="${u}" class="logo" alt="Vite logo" />
|
|
13
|
-
</a>
|
|
14
|
-
<a href="https://www.typescriptlang.org/" target="_blank">
|
|
15
|
-
<img src="${t}" class="logo vanilla" alt="TypeScript logo" />
|
|
16
|
-
</a>
|
|
17
|
-
<h1>Vite + TypeScript</h1>
|
|
18
|
-
<div class="card">
|
|
19
|
-
<button id="counter" type="button"></button>
|
|
20
|
-
</div>
|
|
21
|
-
<p class="read-the-docs">
|
|
22
|
-
Click on the Vite and TypeScript logos to learn more
|
|
23
|
-
</p>
|
|
24
|
-
</div>
|
|
25
|
-
`;
|
|
26
|
-
y(document.querySelector("#counter"));
|
|
4
|
+
export {
|
|
5
|
+
o as ciao
|
|
6
|
+
};
|
package/dist/utilities.umd.cjs
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
<div>
|
|
3
|
-
<a href="https://vitejs.dev" target="_blank">
|
|
4
|
-
<img src="${u}" class="logo" alt="Vite logo" />
|
|
5
|
-
</a>
|
|
6
|
-
<a href="https://www.typescriptlang.org/" target="_blank">
|
|
7
|
-
<img src="${L}" class="logo vanilla" alt="TypeScript logo" />
|
|
8
|
-
</a>
|
|
9
|
-
<h1>Vite + TypeScript</h1>
|
|
10
|
-
<div class="card">
|
|
11
|
-
<button id="counter" type="button"></button>
|
|
12
|
-
</div>
|
|
13
|
-
<p class="read-the-docs">
|
|
14
|
-
Click on the Vite and TypeScript logos to learn more
|
|
15
|
-
</p>
|
|
16
|
-
</div>
|
|
17
|
-
`,y(document.querySelector("#counter"))});
|
|
1
|
+
(function(e,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e.utilities={}))})(this,function(e){"use strict";function i(){console.log("CIAO")}e.ciao=i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
package/dist/counter.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function setupCounter(element: HTMLButtonElement): void;
|
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}#app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}.logo{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vanilla:hover{filter:drop-shadow(0 0 2em #3178c6aa)}.card{padding:2em}.read-the-docs{color:#888}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}
|