vue-pancake-icons 2.1.5 → 2.1.6

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/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "vue-pancake-icons",
3
3
  "private": false,
4
- "version": "2.1.5",
4
+ "version": "2.1.6",
5
5
  "files": [
6
- "dist"
6
+ "dist/*",
7
+ "src/*",
8
+ "public/*",
9
+ "*.json",
10
+ "*.js"
7
11
  ],
8
12
  "main": "./dist/vue-pancake-icons.umd.js",
9
13
  "module": "./dist/vue-pancake-icons.es.js",
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/src/App.vue ADDED
@@ -0,0 +1,33 @@
1
+ <script setup>
2
+ // This starter template is using Vue 3 <script setup> SFCs
3
+ // Check out https://vuejs.org/api/sfc-script-setup.html#script-setup
4
+ import HelloWorld from './components/HelloWorld.vue'
5
+ </script>
6
+
7
+ <template>
8
+ <div>
9
+ <a href="https://vitejs.dev" target="_blank">
10
+ <img src="/vite.svg" class="logo" alt="Vite logo" />
11
+ </a>
12
+ <a href="https://vuejs.org/" target="_blank">
13
+ <img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
14
+ </a>
15
+ </div>
16
+ <HelloWorld msg="Vite + Vue" />
17
+ </template>
18
+
19
+ <style scoped>
20
+ .logo {
21
+ height: 6em;
22
+ padding: 1.5em;
23
+ will-change: filter;
24
+ }
25
+
26
+ .logo:hover {
27
+ filter: drop-shadow(0 0 2em #646cffaa);
28
+ }
29
+
30
+ .logo.vue:hover {
31
+ filter: drop-shadow(0 0 2em #42b883aa);
32
+ }
33
+ </style>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
@@ -0,0 +1,34 @@
1
+ <script setup>
2
+
3
+ </script>
4
+
5
+ <template>
6
+ rrr
7
+ <h1>{{ msg }}</h1>
8
+
9
+ <div class="card">
10
+ <button type="button" @click="count++">count is {{ count }}</button>
11
+ <p>
12
+ Edit
13
+ <code>components/HelloWorld.vue</code> to test HMR
14
+ </p>
15
+ </div>
16
+
17
+ <p>
18
+ Check out
19
+ <a href="https://vuejs.org/guide/quick-start.html#local" target="_blank">create-vue</a>, the official Vue + Vite
20
+ starter
21
+ </p>
22
+ <p>
23
+ Install
24
+ <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>
25
+ in your IDE for a better DX
26
+ </p>
27
+ <p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
28
+ </template>
29
+
30
+ <style scoped>
31
+ .read-the-docs {
32
+ color: #888;
33
+ }
34
+ </style>
@@ -0,0 +1,9 @@
1
+ <script>
2
+ export default {
3
+ name: "IconTest"
4
+ }
5
+ </script>
6
+
7
+ <template>
8
+ Test icon
9
+ </template>
@@ -0,0 +1,7 @@
1
+ import HelloWorld from "./HelloWorld.vue"
2
+ import IconTest from "./IconTest.vue"
3
+
4
+ export default {
5
+ IconTest,
6
+ HelloWorld,
7
+ }
package/src/install.js ADDED
@@ -0,0 +1,17 @@
1
+ import * as components from "./components"
2
+
3
+ const VuePancakeIcons = {
4
+ install(Vue) {
5
+ for (let props in components) {
6
+ const component = components[props]
7
+ console.log(component, "rrr")
8
+ Vue.component(component.name, component)
9
+ }
10
+ }
11
+ }
12
+
13
+ if (typeof window !== 'undefined' && window.Vue) {
14
+ window.Vue.use(VuePancakeIcons);
15
+ }
16
+
17
+ export default VuePancakeIcons
package/src/main.js ADDED
@@ -0,0 +1,5 @@
1
+ import { createApp } from 'vue'
2
+ import './style.css'
3
+ import App from './App.vue'
4
+
5
+ createApp(App).mount('#app')
package/src/style.css ADDED
@@ -0,0 +1,90 @@
1
+ :root {
2
+ font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
3
+ font-size: 16px;
4
+ line-height: 24px;
5
+ font-weight: 400;
6
+
7
+ color-scheme: light dark;
8
+ color: rgba(255, 255, 255, 0.87);
9
+ background-color: #242424;
10
+
11
+ font-synthesis: none;
12
+ text-rendering: optimizeLegibility;
13
+ -webkit-font-smoothing: antialiased;
14
+ -moz-osx-font-smoothing: grayscale;
15
+ -webkit-text-size-adjust: 100%;
16
+ }
17
+
18
+ a {
19
+ font-weight: 500;
20
+ color: #646cff;
21
+ text-decoration: inherit;
22
+ }
23
+ a:hover {
24
+ color: #535bf2;
25
+ }
26
+
27
+ a {
28
+ font-weight: 500;
29
+ color: #646cff;
30
+ text-decoration: inherit;
31
+ }
32
+ a:hover {
33
+ color: #535bf2;
34
+ }
35
+
36
+ body {
37
+ margin: 0;
38
+ display: flex;
39
+ place-items: center;
40
+ min-width: 320px;
41
+ min-height: 100vh;
42
+ }
43
+
44
+ h1 {
45
+ font-size: 3.2em;
46
+ line-height: 1.1;
47
+ }
48
+
49
+ button {
50
+ border-radius: 8px;
51
+ border: 1px solid transparent;
52
+ padding: 0.6em 1.2em;
53
+ font-size: 1em;
54
+ font-weight: 500;
55
+ font-family: inherit;
56
+ background-color: #1a1a1a;
57
+ cursor: pointer;
58
+ transition: border-color 0.25s;
59
+ }
60
+ button:hover {
61
+ border-color: #646cff;
62
+ }
63
+ button:focus,
64
+ button:focus-visible {
65
+ outline: 4px auto -webkit-focus-ring-color;
66
+ }
67
+
68
+ .card {
69
+ padding: 2em;
70
+ }
71
+
72
+ #app {
73
+ max-width: 1280px;
74
+ margin: 0 auto;
75
+ padding: 2rem;
76
+ text-align: center;
77
+ }
78
+
79
+ @media (prefers-color-scheme: light) {
80
+ :root {
81
+ color: #213547;
82
+ background-color: #ffffff;
83
+ }
84
+ a:hover {
85
+ color: #747bff;
86
+ }
87
+ button {
88
+ background-color: #f9f9f9;
89
+ }
90
+ }
package/vite.config.js ADDED
@@ -0,0 +1,27 @@
1
+ import { defineConfig } from 'vite'
2
+ import vue from '@vitejs/plugin-vue'
3
+ import path from 'path'
4
+ // https://vitejs.dev/config/
5
+ export default defineConfig({
6
+ build: {
7
+ commonjsOptions: {
8
+ esmExternals: true
9
+ },
10
+ lib: {
11
+ entry: path.resolve(__dirname, 'src/install.js'),
12
+ name: 'VuePancakeIcons',
13
+ fileName: (format) => `vue-pancake-icons.${format}.js`,
14
+ },
15
+ rollupOptions: {
16
+ external: ['vue'],
17
+ output: {
18
+ // Provide global variables to use in the UMD build
19
+ // Add external deps here
20
+ globals: {
21
+ vue: 'Vue',
22
+ },
23
+ },
24
+ },
25
+ },
26
+ plugins: [vue()],
27
+ })