vuetify-swatches 1.4.1 → 1.4.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/README.md +24 -0
- package/dist/index.es.js +1 -4
- package/dist/index.iife.js +1 -4
- package/dist/index.umd.js +1 -4
- package/dist/style.css +3 -1
- package/package.json +29 -25
- package/src/components/VSwatches.vue +3 -1
package/README.md
CHANGED
|
@@ -132,6 +132,30 @@ Most props other than size and placement are the same as [v-btn](https://next.vu
|
|
|
132
132
|
|
|
133
133
|
[^1] Available variants are: elevated(default), flat, tonal, outlined, text, and plain.
|
|
134
134
|
|
|
135
|
+
### CDN Usage
|
|
136
|
+
|
|
137
|
+
```html
|
|
138
|
+
<!-- Vue core -->
|
|
139
|
+
<script src="https://cdn.jsdelivr.net/npm/vue@3.3.4/dist/vue.global.js"></script>
|
|
140
|
+
<script src="https://cdn.jsdelivr.net/npm/vuetify@3.3.14/dist/vuetify.min.js"></script>
|
|
141
|
+
<link
|
|
142
|
+
rel="stylesheet"
|
|
143
|
+
href="https://cdn.jsdelivr.net/npm/vuetify@3.3.14/dist/vuetify.min.js"
|
|
144
|
+
/>
|
|
145
|
+
<!-- Markdown wasm -->
|
|
146
|
+
<script src="https://cdn.jsdelivr.net/npm/vuetify-swatches@1.4.3/dist/index.iife.min.js"></script>
|
|
147
|
+
<script>
|
|
148
|
+
const { createApp } = Vue;
|
|
149
|
+
const { createVuetify } = Vuetify;
|
|
150
|
+
|
|
151
|
+
const app = createApp();
|
|
152
|
+
app.use(vuetify).component(VSwatches).mount('#app');
|
|
153
|
+
</script>
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
|
|
135
158
|
## LICENSE
|
|
136
159
|
|
|
137
160
|
©2022-2023 by Logue. Licensed under the [MIT License](LICENSE).
|
|
161
|
+
```
|
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
6
|
* @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 1.4.
|
|
8
|
+
* @version 1.4.3
|
|
9
9
|
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -170,8 +170,5 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
170
170
|
var VSwatches_vue_vue_type_style_index_0_lang = '';
|
|
171
171
|
|
|
172
172
|
const installVSwatches = (app) => app.component("VSwatches", _sfc_main);
|
|
173
|
-
if (typeof window !== "undefined" && window.Vue) {
|
|
174
|
-
window.Vue.use(_sfc_main);
|
|
175
|
-
}
|
|
176
173
|
|
|
177
174
|
export { _sfc_main as default, installVSwatches as install };
|
package/dist/index.iife.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
6
|
* @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 1.4.
|
|
8
|
+
* @version 1.4.3
|
|
9
9
|
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -173,9 +173,6 @@ var VSwatches = (function (exports, vue, components, colors) {
|
|
|
173
173
|
var VSwatches_vue_vue_type_style_index_0_lang = '';
|
|
174
174
|
|
|
175
175
|
const installVSwatches = (app) => app.component("VSwatches", _sfc_main);
|
|
176
|
-
if (typeof window !== "undefined" && window.Vue) {
|
|
177
|
-
window.Vue.use(_sfc_main);
|
|
178
|
-
}
|
|
179
176
|
|
|
180
177
|
exports["default"] = _sfc_main;
|
|
181
178
|
exports.install = installVSwatches;
|
package/dist/index.umd.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
6
|
* @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 1.4.
|
|
8
|
+
* @version 1.4.3
|
|
9
9
|
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -176,9 +176,6 @@
|
|
|
176
176
|
var VSwatches_vue_vue_type_style_index_0_lang = '';
|
|
177
177
|
|
|
178
178
|
const installVSwatches = (app) => app.component("VSwatches", _sfc_main);
|
|
179
|
-
if (typeof window !== "undefined" && window.Vue) {
|
|
180
|
-
window.Vue.use(_sfc_main);
|
|
181
|
-
}
|
|
182
179
|
|
|
183
180
|
exports["default"] = _sfc_main;
|
|
184
181
|
exports.install = installVSwatches;
|
package/dist/style.css
CHANGED
|
@@ -5,13 +5,15 @@
|
|
|
5
5
|
* @author Logue <logue@hotmail.co.jp>
|
|
6
6
|
* @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version 1.4.
|
|
8
|
+
* @version 1.4.3
|
|
9
9
|
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
.v-swatches div .v-btn {
|
|
13
13
|
padding: 0 !important;
|
|
14
14
|
margin: 0.1rem;
|
|
15
|
+
/** Reverse checkd mark color */
|
|
16
|
+
/** Add Slash */
|
|
15
17
|
}
|
|
16
18
|
.v-swatches div .v-btn .v-icon {
|
|
17
19
|
filter: invert(100%) grayscale(100%) contrast(100);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "vuetify-swatches",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.3",
|
|
5
5
|
"description": "Color Swatch component for Vuetify3.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vuejs",
|
|
@@ -34,7 +34,9 @@
|
|
|
34
34
|
},
|
|
35
35
|
"main": "dist/index.umd.js",
|
|
36
36
|
"module": "dist/index.es.js",
|
|
37
|
-
"
|
|
37
|
+
"jsdelivr": "dist/index.iife.js",
|
|
38
|
+
"unpkg": "dist/index.iife.js",
|
|
39
|
+
"types": "dist/src/index.d.ts",
|
|
38
40
|
"style": "dist/style.css",
|
|
39
41
|
"browser": {
|
|
40
42
|
"./sfc": "./src/components/VSwatches.vue"
|
|
@@ -43,7 +45,9 @@
|
|
|
43
45
|
".": {
|
|
44
46
|
"import": "./dist/index.es.js",
|
|
45
47
|
"require": "./dist/index.umd.js",
|
|
46
|
-
"
|
|
48
|
+
"jsdelivr": "./dist/index.iife.js",
|
|
49
|
+
"unpkg": "./dist/index.iife.js",
|
|
50
|
+
"types": "./dist/src/index.d.ts"
|
|
47
51
|
},
|
|
48
52
|
"./dist/style.css": {
|
|
49
53
|
"import": "./dist/style.css",
|
|
@@ -57,7 +61,7 @@
|
|
|
57
61
|
"engines": {
|
|
58
62
|
"yarn": ">=1.22.19"
|
|
59
63
|
},
|
|
60
|
-
"packageManager": "yarn@3.6.
|
|
64
|
+
"packageManager": "yarn@3.6.3",
|
|
61
65
|
"sideEffects": false,
|
|
62
66
|
"scripts": {
|
|
63
67
|
"dev": "vite",
|
|
@@ -74,48 +78,48 @@
|
|
|
74
78
|
"version": "auto-changelog -p && git add CHANGELOG.md"
|
|
75
79
|
},
|
|
76
80
|
"peerDependencies": {
|
|
77
|
-
"vuetify": "^3.3.
|
|
81
|
+
"vuetify": "^3.3.12"
|
|
78
82
|
},
|
|
79
83
|
"devDependencies": {
|
|
80
84
|
"@codemirror/lang-vue": "^0.1.2",
|
|
81
|
-
"@tsconfig/node-lts": "^18.12.
|
|
82
|
-
"@types/node": "^20.
|
|
83
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
84
|
-
"@typescript-eslint/parser": "^6.
|
|
85
|
-
"@vitejs/plugin-vue": "^4.
|
|
85
|
+
"@tsconfig/node-lts": "^18.12.4",
|
|
86
|
+
"@types/node": "^20.5.6",
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
88
|
+
"@typescript-eslint/parser": "^6.4.1",
|
|
89
|
+
"@vitejs/plugin-vue": "^4.3.3",
|
|
86
90
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
87
91
|
"@vue/tsconfig": "^0.4.0",
|
|
88
|
-
"eslint": "^8.
|
|
89
|
-
"eslint-config-standard-with-typescript": "^
|
|
92
|
+
"eslint": "^8.48.0",
|
|
93
|
+
"eslint-config-standard-with-typescript": "^38.0.0",
|
|
90
94
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
91
|
-
"eslint-import-resolver-typescript": "^3.
|
|
95
|
+
"eslint-import-resolver-typescript": "^3.6.0",
|
|
92
96
|
"eslint-plugin-html": "^7.1.0",
|
|
93
|
-
"eslint-plugin-import": "^2.28.
|
|
94
|
-
"eslint-plugin-n": "^16.0.
|
|
97
|
+
"eslint-plugin-import": "^2.28.1",
|
|
98
|
+
"eslint-plugin-n": "^16.0.2",
|
|
95
99
|
"eslint-plugin-promise": "^6.1.1",
|
|
96
100
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
97
|
-
"eslint-plugin-vue": "^9.
|
|
98
|
-
"eslint-plugin-vuejs-accessibility": "^2.
|
|
101
|
+
"eslint-plugin-vue": "^9.17.0",
|
|
102
|
+
"eslint-plugin-vuejs-accessibility": "^2.2.0",
|
|
99
103
|
"eslint-plugin-vuetify": "^2.0.5",
|
|
100
104
|
"eslint-plugin-yaml": "^0.5.0",
|
|
101
105
|
"husky": "^8.0.3",
|
|
102
|
-
"lint-staged": "^
|
|
106
|
+
"lint-staged": "^14.0.1",
|
|
103
107
|
"npm-run-all": "^4.1.5",
|
|
104
|
-
"prettier": "^3.0.
|
|
108
|
+
"prettier": "^3.0.2",
|
|
105
109
|
"rimraf": "^5.0.1",
|
|
106
110
|
"rollup-plugin-visualizer": "^5.9.2",
|
|
107
|
-
"sass": "^1.
|
|
108
|
-
"typescript": "^5.
|
|
109
|
-
"vite": "^4.4.
|
|
111
|
+
"sass": "^1.66.1",
|
|
112
|
+
"typescript": "^5.2.2",
|
|
113
|
+
"vite": "^4.4.9",
|
|
110
114
|
"vite-plugin-banner": "^0.7.0",
|
|
111
|
-
"vite-plugin-checker": "^0.6.
|
|
112
|
-
"vite-plugin-dts": "^3.
|
|
115
|
+
"vite-plugin-checker": "^0.6.2",
|
|
116
|
+
"vite-plugin-dts": "^3.5.2",
|
|
113
117
|
"vite-plugin-vuetify": "^1.0.2",
|
|
114
118
|
"vue": "^3.3.4",
|
|
115
119
|
"vue-codemirror6": "^1.1.24",
|
|
116
120
|
"vue-eslint-parser": "^9.3.1",
|
|
117
121
|
"vue-tsc": "^1.8.8",
|
|
118
|
-
"vuetify": "^3.3.
|
|
122
|
+
"vuetify": "^3.3.14"
|
|
119
123
|
},
|
|
120
124
|
"husky": {
|
|
121
125
|
"hooks": {
|
|
@@ -16,7 +16,7 @@ const props = defineProps({
|
|
|
16
16
|
modelValue: { type: String, default: colors.shades.white },
|
|
17
17
|
/** Swatch colors */
|
|
18
18
|
swatches: {
|
|
19
|
-
type: Array as PropType<string[] | string[][]
|
|
19
|
+
type: Array as PropType<string[] | string[][] | Record<string, string[]>>,
|
|
20
20
|
default: () => [
|
|
21
21
|
[colors.shades.black, colors.shades.white, colors.shades.transparent],
|
|
22
22
|
[
|
|
@@ -167,10 +167,12 @@ onMounted(() => {
|
|
|
167
167
|
padding: 0 !important;
|
|
168
168
|
margin: 0.1rem;
|
|
169
169
|
|
|
170
|
+
/** Reverse checkd mark color */
|
|
170
171
|
.v-icon {
|
|
171
172
|
filter: invert(100%) grayscale(100%) contrast(100);
|
|
172
173
|
}
|
|
173
174
|
|
|
175
|
+
/** Add Slash */
|
|
174
176
|
&.bg-trasparent {
|
|
175
177
|
background: linear-gradient(
|
|
176
178
|
to top left,
|