vuetify-swatches 1.0.7 → 1.0.8

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 CHANGED
@@ -9,14 +9,14 @@
9
9
 
10
10
  ![demo](https://user-images.githubusercontent.com/480173/156681882-d3d5e868-ba9a-4a34-9e75-08272d39da64.gif)
11
11
 
12
+ This is for Vuetify2. Use latest when using with Vuetify3.
13
+
12
14
  This project is a remake of [saintplay's vue-swatches](https://saintplay.github.io/vue-swatches/) with [Vuetify](https://vuetifyjs.com/).
13
15
 
14
16
  Unlike the original version, it provides a UI based on Vuetify, such as ripple effects and dark mode.
15
17
 
16
18
  This library is positioned as a complement to Vuetify and provides a minimal UI. Use the [Menu Component](https://vuetifyjs.com/components/menus/) if you want to display a pop-up menu, and the [Card component](https://vuetifyjs.com/components/cards/) if you want to display a palette.
17
19
 
18
- For Vuetify3, please use the [next branch](https://github.com/logue/vuetify-swatches/tree/next).
19
-
20
20
  ## Usage
21
21
 
22
22
  In this example, the selected color is assigned to `selected`.
@@ -148,4 +148,4 @@ export default Vue.extend({
148
148
 
149
149
  ## LICENSE
150
150
 
151
- [MIT](LICENSE)
151
+ ©2022-2023 by Logue. Licensed under the [MIT License](LICENSE).
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.0.7
8
+ * @version 1.0.8
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
@@ -23,7 +23,7 @@ var _sfc_main = defineComponent({
23
23
  },
24
24
  props: {
25
25
  /** Model value */
26
- modelValue: { type: String, default: "#ffffff" },
26
+ modelValue: { type: String, default: colors.shades.white },
27
27
  /** Swatch colors */
28
28
  swatches: {
29
29
  type: Array,
@@ -255,8 +255,8 @@ var __component__ = /* @__PURE__ */ normalizeComponent(
255
255
  var VSwatches = __component__.exports;
256
256
 
257
257
  const meta = {
258
- version: "1.0.7",
259
- date: "2023-02-15T10:53:18.492Z"
258
+ version: "1.0.8",
259
+ date: "2023-03-10T13:25:19.061Z"
260
260
  };
261
261
 
262
262
  const installVSwatches = (app) => app.component("VSwatches", VSwatches);
@@ -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.0.7
8
+ * @version 1.0.8
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
@@ -26,7 +26,7 @@ var VSwatches = (function (exports, lib, vueDemi, colors) {
26
26
  },
27
27
  props: {
28
28
  /** Model value */
29
- modelValue: { type: String, default: "#ffffff" },
29
+ modelValue: { type: String, default: colors__default["default"].shades.white },
30
30
  /** Swatch colors */
31
31
  swatches: {
32
32
  type: Array,
@@ -258,8 +258,8 @@ var VSwatches = (function (exports, lib, vueDemi, colors) {
258
258
  var VSwatches = __component__.exports;
259
259
 
260
260
  const meta = {
261
- version: "1.0.7",
262
- date: "2023-02-15T10:53:18.492Z"
261
+ version: "1.0.8",
262
+ date: "2023-03-10T13:25:19.061Z"
263
263
  };
264
264
 
265
265
  const installVSwatches = (app) => app.component("VSwatches", VSwatches);
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.0.7
8
+ * @version 1.0.8
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
@@ -29,7 +29,7 @@
29
29
  },
30
30
  props: {
31
31
  /** Model value */
32
- modelValue: { type: String, default: "#ffffff" },
32
+ modelValue: { type: String, default: colors__default["default"].shades.white },
33
33
  /** Swatch colors */
34
34
  swatches: {
35
35
  type: Array,
@@ -261,8 +261,8 @@
261
261
  var VSwatches = __component__.exports;
262
262
 
263
263
  const meta = {
264
- version: "1.0.7",
265
- date: "2023-02-15T10:53:18.492Z"
264
+ version: "1.0.8",
265
+ date: "2023-03-10T13:25:19.061Z"
266
266
  };
267
267
 
268
268
  const installVSwatches = (app) => app.component("VSwatches", VSwatches);
@@ -0,0 +1,3 @@
1
+ import type MetaInterface from './interfaces/MetaInterface';
2
+ declare const meta: MetaInterface;
3
+ export default meta;
@@ -0,0 +1,217 @@
1
+ import { type PropType, type Ref } from 'vue-demi';
2
+ /** Vuetify Swatches */
3
+ declare const _sfc_main: import("vue-demi").DefineComponent<{
4
+ /** Model value */
5
+ modelValue: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ /** Swatch colors */
10
+ swatches: {
11
+ type: PropType<string[] | string[][]>;
12
+ default: () => string[][];
13
+ };
14
+ /** Swatch sized */
15
+ size: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ /** Selected icon */
20
+ icon: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ /** selected icon size */
25
+ iconSize: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ /**
30
+ * Removes the button box shadow.
31
+ *
32
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#depressed}
33
+ */
34
+ depressed: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ /**
39
+ * Removes the ability to click or target the component.
40
+ *
41
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-disabled}
42
+ */
43
+ disabled: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ /**
48
+ * Designates an elevation applied to the component between 0 and 24.
49
+ *
50
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
51
+ */
52
+ elevation: {
53
+ type: (StringConstructor | NumberConstructor)[];
54
+ default: undefined;
55
+ };
56
+ /**
57
+ * Makes the background transparent and applies a thin border.
58
+ *
59
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#outlined}
60
+ */
61
+ outlined: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ /**
66
+ * Removes the default background change applied when hovering over the button.
67
+ *
68
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#plain}
69
+ */
70
+ plain: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ };
74
+ /**
75
+ * Raised buttons have a box shadow that increases when clicked. This is the default style.
76
+ *
77
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#raised}
78
+ */
79
+ raised: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ /**
84
+ * Applies a large border radius on the button.
85
+ *
86
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
87
+ */
88
+ rounded: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ /**
93
+ * Removes the component’s border-radius.
94
+ *
95
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#tile}
96
+ */
97
+ tile: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ }, {
102
+ checkedVisibilty: Ref<boolean>;
103
+ onSwatchClick: (e: PointerEvent) => void;
104
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue-demi").ExtractPropTypes<{
105
+ /** Model value */
106
+ modelValue: {
107
+ type: StringConstructor;
108
+ default: string;
109
+ };
110
+ /** Swatch colors */
111
+ swatches: {
112
+ type: PropType<string[] | string[][]>;
113
+ default: () => string[][];
114
+ };
115
+ /** Swatch sized */
116
+ size: {
117
+ type: StringConstructor;
118
+ default: string;
119
+ };
120
+ /** Selected icon */
121
+ icon: {
122
+ type: StringConstructor;
123
+ default: string;
124
+ };
125
+ /** selected icon size */
126
+ iconSize: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ };
130
+ /**
131
+ * Removes the button box shadow.
132
+ *
133
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#depressed}
134
+ */
135
+ depressed: {
136
+ type: BooleanConstructor;
137
+ default: boolean;
138
+ };
139
+ /**
140
+ * Removes the ability to click or target the component.
141
+ *
142
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-disabled}
143
+ */
144
+ disabled: {
145
+ type: BooleanConstructor;
146
+ default: boolean;
147
+ };
148
+ /**
149
+ * Designates an elevation applied to the component between 0 and 24.
150
+ *
151
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
152
+ */
153
+ elevation: {
154
+ type: (StringConstructor | NumberConstructor)[];
155
+ default: undefined;
156
+ };
157
+ /**
158
+ * Makes the background transparent and applies a thin border.
159
+ *
160
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#outlined}
161
+ */
162
+ outlined: {
163
+ type: BooleanConstructor;
164
+ default: boolean;
165
+ };
166
+ /**
167
+ * Removes the default background change applied when hovering over the button.
168
+ *
169
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#plain}
170
+ */
171
+ plain: {
172
+ type: BooleanConstructor;
173
+ default: boolean;
174
+ };
175
+ /**
176
+ * Raised buttons have a box shadow that increases when clicked. This is the default style.
177
+ *
178
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#raised}
179
+ */
180
+ raised: {
181
+ type: BooleanConstructor;
182
+ default: boolean;
183
+ };
184
+ /**
185
+ * Applies a large border radius on the button.
186
+ *
187
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
188
+ */
189
+ rounded: {
190
+ type: BooleanConstructor;
191
+ default: boolean;
192
+ };
193
+ /**
194
+ * Removes the component’s border-radius.
195
+ *
196
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#tile}
197
+ */
198
+ tile: {
199
+ type: BooleanConstructor;
200
+ default: boolean;
201
+ };
202
+ }>>, {
203
+ modelValue: string;
204
+ swatches: string[] | string[][];
205
+ size: string;
206
+ icon: string;
207
+ iconSize: string;
208
+ depressed: boolean;
209
+ disabled: boolean;
210
+ elevation: string | number;
211
+ outlined: boolean;
212
+ plain: boolean;
213
+ raised: boolean;
214
+ rounded: boolean;
215
+ tile: boolean;
216
+ }>;
217
+ export default _sfc_main;
@@ -1,4 +1,4 @@
1
- import VSwatches from '@/components/VSwatches.vue';
2
- import Meta from '@/Meta';
3
- declare const installVSwatches: (app: any) => any;
4
- export { VSwatches as default, installVSwatches as install, Meta };
1
+ import VSwatches from './components/VSwatches.vue';
2
+ import Meta from './Meta';
3
+ declare const installVSwatches: (app: any) => any;
4
+ export { VSwatches as default, installVSwatches as install, Meta };
@@ -1,7 +1,7 @@
1
- /** Build information meta data */
2
- export default interface MetaInterface {
3
- /** Version */
4
- version: string;
5
- /** Build date */
6
- date: string;
7
- }
1
+ /** Build information meta data */
2
+ export default interface MetaInterface {
3
+ /** Version */
4
+ version: string;
5
+ /** Build date */
6
+ date: string;
7
+ }
package/dist/style.css 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.0.7
8
+ * @version 1.0.8
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
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.0.7",
4
+ "version": "1.0.8",
5
5
  "license": "MIT",
6
6
  "description": "Color Swatch component for Vuetify.",
7
7
  "keywords": [
@@ -33,15 +33,16 @@
33
33
  },
34
34
  "main": "dist/index.umd.js",
35
35
  "module": "dist/index.es.js",
36
- "types": "dist/index.d.ts",
37
36
  "style": "dist/style.css",
37
+ "types": "dist/src/index.d.ts",
38
38
  "browser": {
39
39
  "sfc": "src/components/VSwatches.vue"
40
40
  },
41
41
  "exports": {
42
42
  ".": {
43
43
  "import": "./dist/index.es.js",
44
- "require": "./dist/index.umd.js"
44
+ "require": "./dist/index.umd.js",
45
+ "types": "./dist/src/index.d.ts"
45
46
  },
46
47
  "./dist/style.css": {
47
48
  "import": "./dist/style.css",
@@ -54,7 +55,7 @@
54
55
  ],
55
56
  "sideEffects": false,
56
57
  "engines": {
57
- "node": ">=18.14.0",
58
+ "node": ">=18.15.0",
58
59
  "yarn": ">=1.22.19"
59
60
  },
60
61
  "packageManager": "yarn@3.4.1",
@@ -89,45 +90,46 @@
89
90
  "devDependencies": {
90
91
  "@codemirror/lang-vue": "^0.1.1",
91
92
  "@types/lodash": "^4.14.191",
92
- "@types/node": "^18.13.0",
93
- "@typescript-eslint/eslint-plugin": "^5.52.0",
94
- "@typescript-eslint/parser": "^5.52.0",
93
+ "@types/node": "^18.15.0",
94
+ "@typescript-eslint/eslint-plugin": "^5.54.1",
95
+ "@typescript-eslint/parser": "^5.54.1",
95
96
  "@vitejs/plugin-vue2": "^2.2.0",
96
- "@vue/eslint-config-prettier": "^7.0.0",
97
+ "@vue/eslint-config-prettier": "^7.1.0",
97
98
  "@vue/tsconfig": "^0.1.3",
98
- "eslint": "^8.34.0",
99
+ "eslint": "^8.35.0",
99
100
  "eslint-config-google": "^0.14.0",
100
- "eslint-config-prettier": "^8.6.0",
101
+ "eslint-config-prettier": "^8.7.0",
101
102
  "eslint-import-resolver-alias": "^1.1.2",
102
103
  "eslint-import-resolver-typescript": "^3.5.3",
103
104
  "eslint-plugin-import": "^2.27.5",
104
- "eslint-plugin-jsdoc": "^40.0.0",
105
+ "eslint-plugin-jsdoc": "^40.0.1",
105
106
  "eslint-plugin-prettier": "^4.2.1",
106
107
  "eslint-plugin-tsdoc": "^0.2.17",
107
108
  "eslint-plugin-vue": "^9.9.0",
108
109
  "eslint-plugin-vuejs-accessibility": "^2.1.0",
109
110
  "eslint-plugin-vuetify": "^1.1.0",
110
111
  "husky": "^8.0.3",
111
- "lint-staged": "^13.1.2",
112
+ "lint-staged": "^13.2.0",
112
113
  "npm-run-all": "^4.1.5",
113
114
  "postcss-html": "^1.5.0",
114
115
  "prettier": "^2.8.4",
115
- "rimraf": "^4.1.2",
116
+ "rimraf": "^4.4.0",
116
117
  "rollup-plugin-visualizer": "^5.9.0",
117
118
  "sass": "1.32.12",
118
- "stylelint": "^15.1.0",
119
+ "stylelint": "^15.2.0",
119
120
  "stylelint-config-prettier": "^9.0.5",
120
121
  "stylelint-config-recommended-scss": "^9.0.1",
121
122
  "stylelint-config-recommended-vue": "^1.4.0",
122
123
  "typescript": "^4.9.5",
123
- "unplugin-vue-components": "^0.23.0",
124
- "vite": "^4.1.1",
124
+ "unplugin-vue-components": "^0.24.1",
125
+ "vite": "^4.1.4",
125
126
  "vite-plugin-banner": "^0.7.0",
126
- "vite-plugin-checker": "^0.5.5",
127
+ "vite-plugin-checker": "^0.5.6",
128
+ "vite-plugin-dts": "^2.1.0",
127
129
  "vue": "^2.7.13",
128
- "vue-codemirror6": "^1.1.11",
130
+ "vue-codemirror6": "^1.1.12",
129
131
  "vue-eslint-parser": "^9.1.0",
130
- "vue-tsc": "^1.0.24",
132
+ "vue-tsc": "^1.2.0",
131
133
  "vuetify": "^2.6.14"
132
134
  },
133
135
  "husky": {
@@ -53,7 +53,7 @@ export default defineComponent({
53
53
  },
54
54
  props: {
55
55
  /** Model value */
56
- modelValue: { type: String, default: '#ffffff' },
56
+ modelValue: { type: String, default: colors.shades.white },
57
57
  /** Swatch colors */
58
58
  swatches: {
59
59
  type: Array as PropType<string[] | string[][]>,
package/dist/Meta.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import type MetaInterface from '@/interfaces/MetaInterface';
2
- declare const meta: MetaInterface;
3
- export default meta;
package/dist/Meta.js DELETED
@@ -1,6 +0,0 @@
1
- // This file is auto-generated by the build system.
2
- const meta = {
3
- version: '1.0.7',
4
- date: '2023-02-15T10:55:52.738Z',
5
- };
6
- export default meta;
package/dist/index.js DELETED
@@ -1,10 +0,0 @@
1
- import VSwatches from '@/components/VSwatches.vue';
2
- import Meta from '@/Meta';
3
- const installVSwatches = (app) => app.component('VSwatches', VSwatches);
4
- export { VSwatches as default, installVSwatches as install, Meta };
5
- // For CDN.
6
- // @ts-ignore
7
- if (typeof window !== 'undefined' && window.Vue) {
8
- // @ts-ignore
9
- window.Vue.use(VSwatches);
10
- }
@@ -1 +0,0 @@
1
- export {};