vuetify-swatches 1.6.2 → 1.7.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022-2023 Masashi Yoshikawa
3
+ Copyright (c) 2022-2024 Masashi Yoshikawa
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.es.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * @author Logue <logue@hotmail.co.jp>
6
6
  * @copyright 2022-2024 By Masashi Yoshikawa All rights reserved.
7
7
  * @license MIT
8
- * @version 1.6.2
8
+ * @version 1.7.3
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
@@ -107,6 +107,7 @@ var _ = /* @__PURE__ */ g({
107
107
  }
108
108
  },
109
109
  emits: {
110
+ // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
110
111
  "update:modelValue": (t) => !0
111
112
  },
112
113
  setup(t, { emit: m }) {
@@ -5,7 +5,7 @@
5
5
  * @author Logue <logue@hotmail.co.jp>
6
6
  * @copyright 2022-2024 By Masashi Yoshikawa All rights reserved.
7
7
  * @license MIT
8
- * @version 1.6.2
8
+ * @version 1.7.3
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
package/dist/index.umd.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * @author Logue <logue@hotmail.co.jp>
6
6
  * @copyright 2022-2024 By Masashi Yoshikawa All rights reserved.
7
7
  * @license MIT
8
- * @version 1.6.2
8
+ * @version 1.7.3
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
@@ -0,0 +1,4 @@
1
+ import { default as MetaInterface } from './interfaces/MetaInterface';
2
+ declare const meta: MetaInterface;
3
+ export default meta;
4
+ //# sourceMappingURL=Meta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Meta.d.ts","sourceRoot":"","sources":["../../src/Meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAC;AAG1D,QAAA,MAAM,IAAI,EAAE,aAGX,CAAC;AACF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,161 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ /** Model value */
4
+ modelValue: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ /** Swatch colors */
9
+ swatches: {
10
+ type: PropType<string[] | string[][] | Record<string, string[]>>;
11
+ default: () => string[][];
12
+ };
13
+ /** Swatch size */
14
+ size: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ /** Selected icon */
19
+ icon: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ /** selected icon size */
24
+ iconSize: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ /**
29
+ * The variant prop gives you easy access to several different button styles..
30
+ *
31
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#variant}
32
+ */
33
+ variant: {
34
+ type: PropType<NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">>;
35
+ default: undefined;
36
+ };
37
+ /**
38
+ * Removes the ability to click or target the component.
39
+ *
40
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-disabled}
41
+ */
42
+ disabled: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ /**
47
+ * Applies a large border radius on the button.
48
+ *
49
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
50
+ */
51
+ rounded: {
52
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
53
+ default: undefined;
54
+ };
55
+ /**
56
+ * Applies border styles to component.
57
+ *
58
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-border}
59
+ */
60
+ border: {
61
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
62
+ default: boolean;
63
+ };
64
+ /**
65
+ * Designates an elevation applied to the component between 0 and 24.
66
+ *
67
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
68
+ */
69
+ elevation: {
70
+ type: (StringConstructor | NumberConstructor)[];
71
+ default: undefined;
72
+ };
73
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
74
+ "update:modelValue": (_value: string) => void;
75
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
76
+ /** Model value */
77
+ modelValue: {
78
+ type: StringConstructor;
79
+ default: string;
80
+ };
81
+ /** Swatch colors */
82
+ swatches: {
83
+ type: PropType<string[] | string[][] | Record<string, string[]>>;
84
+ default: () => string[][];
85
+ };
86
+ /** Swatch size */
87
+ size: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ /** Selected icon */
92
+ icon: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ /** selected icon size */
97
+ iconSize: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ };
101
+ /**
102
+ * The variant prop gives you easy access to several different button styles..
103
+ *
104
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#variant}
105
+ */
106
+ variant: {
107
+ type: PropType<NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">>;
108
+ default: undefined;
109
+ };
110
+ /**
111
+ * Removes the ability to click or target the component.
112
+ *
113
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-disabled}
114
+ */
115
+ disabled: {
116
+ type: BooleanConstructor;
117
+ default: boolean;
118
+ };
119
+ /**
120
+ * Applies a large border radius on the button.
121
+ *
122
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
123
+ */
124
+ rounded: {
125
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
126
+ default: undefined;
127
+ };
128
+ /**
129
+ * Applies border styles to component.
130
+ *
131
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-border}
132
+ */
133
+ border: {
134
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
135
+ default: boolean;
136
+ };
137
+ /**
138
+ * Designates an elevation applied to the component between 0 and 24.
139
+ *
140
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
141
+ */
142
+ elevation: {
143
+ type: (StringConstructor | NumberConstructor)[];
144
+ default: undefined;
145
+ };
146
+ }>> & Readonly<{
147
+ "onUpdate:modelValue"?: ((_value: string) => any) | undefined;
148
+ }>, {
149
+ modelValue: string;
150
+ swatches: string[] | Record<string, string[]> | string[][];
151
+ size: string;
152
+ icon: string;
153
+ iconSize: string;
154
+ variant: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
155
+ disabled: boolean;
156
+ rounded: string | number | boolean;
157
+ border: string | number | boolean;
158
+ elevation: string | number;
159
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
160
+ export default _default;
161
+ //# sourceMappingURL=VSwatches.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VSwatches.vue.d.ts","sourceRoot":"","sources":["../../../src/components/VSwatches.vue"],"names":[],"mappings":"AAmMA,uBAAuB;AACvB,OAAO,EAAc,KAAK,QAAQ,EAAuB,MAAM,KAAK,CAAC;;IA4anE,kBAAkB;;;;;IAElB,oBAAoB;;cAEH,QAAQ,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;;;IA0B3E,kBAAkB;;;;;IAKlB,oBAAoB;;;;;IAKpB,yBAAyB;;;;;IAKzB;;;;OAIG;;cAEe,QAAQ,CACtB,WAAW,CAAC,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,CAAC,CAC3E;;;IAGH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;;;;IAvFH,kBAAkB;;;;;IAElB,oBAAoB;;cAEH,QAAQ,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;;;IA0B3E,kBAAkB;;;;;IAKlB,oBAAoB;;;;;IAKpB,yBAAyB;;;;;IAKzB;;;;OAIG;;cAEe,QAAQ,CACtB,WAAW,CAAC,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,CAAC,CAC3E;;;IAGH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;IAKH;;;;OAIG;;;;;;;;;;;;;;;;;;;AA9FL,wBAoGG"}
@@ -1,3 +1,4 @@
1
- import VSwatches from './components/VSwatches.vue';
1
+ import { default as VSwatches } from './components/VSwatches.vue';
2
2
  declare const installVSwatches: (app: any) => void;
3
3
  export { VSwatches as default, installVSwatches as install };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,4BAA4B,CAAC;AAGnD,QAAA,MAAM,gBAAgB,QAAS,GAAG,KAAG,IACE,CAAC;AAExC,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ /** Build information meta data */
2
+ export default interface MetaInterface {
3
+ /** Version */
4
+ version: string;
5
+ /** Build date */
6
+ date: string;
7
+ }
8
+ //# sourceMappingURL=MetaInterface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetaInterface.d.ts","sourceRoot":"","sources":["../../../src/interfaces/MetaInterface.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,MAAM,CAAC,OAAO,WAAW,aAAa;IACpC,cAAc;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;CACd"}
package/dist/style.css CHANGED
@@ -5,7 +5,7 @@
5
5
  * @author Logue <logue@hotmail.co.jp>
6
6
  * @copyright 2022-2024 By Masashi Yoshikawa All rights reserved.
7
7
  * @license MIT
8
- * @version 1.6.2
8
+ * @version 1.7.3
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.6.2",
4
+ "version": "1.7.3",
5
5
  "description": "Color Swatch component for Vuetify3.",
6
6
  "keywords": [
7
7
  "vuejs",
@@ -36,7 +36,7 @@
36
36
  "module": "dist/index.es.js",
37
37
  "jsdelivr": "dist/index.iife.js",
38
38
  "unpkg": "dist/index.iife.js",
39
- "types": "dist/index.d.ts",
39
+ "types": "dist/src/index.d.ts",
40
40
  "style": "dist/style.css",
41
41
  "browser": {
42
42
  "./sfc": "./src/components/VSwatches.vue"
@@ -47,7 +47,7 @@
47
47
  "require": "./dist/index.umd.js",
48
48
  "jsdelivr": "./dist/index.iife.js",
49
49
  "unpkg": "./dist/index.iife.js",
50
- "types": "./dist/index.d.ts"
50
+ "types": "./dist/src/index.d.ts"
51
51
  },
52
52
  "./dist/style.css": {
53
53
  "import": "./dist/style.css",
@@ -61,9 +61,9 @@
61
61
  "src/components/VSwatches.vue"
62
62
  ],
63
63
  "engines": {
64
- "yarn": ">=1.22.19"
64
+ "pnpm": ">=9.12.3"
65
65
  },
66
- "packageManager": "yarn@4.1.0",
66
+ "packageManager": "pnpm@9.12.3",
67
67
  "sideEffects": false,
68
68
  "scripts": {
69
69
  "dev": "vite",
@@ -76,52 +76,47 @@
76
76
  "build-only": "vite build",
77
77
  "lint": "eslint . --fix --cache --cache-location ./node_modules/.vite/vite-plugin-eslint && prettier . --write",
78
78
  "preview": "vite preview --mode=docs",
79
- "prepare": "husky install",
79
+ "prepare": "husky",
80
80
  "version": "auto-changelog -p && git add CHANGELOG.md"
81
81
  },
82
82
  "peerDependencies": {
83
- "vuetify": "^3.5.6"
83
+ "vuetify": "^3.7.2"
84
84
  },
85
85
  "devDependencies": {
86
- "@codemirror/lang-vue": "0.1.2",
87
- "@tsconfig/node-lts": "^20.1.1",
88
- "@types/node": "^20.11.21",
89
- "@typescript-eslint/eslint-plugin": "^7.1.0",
90
- "@typescript-eslint/parser": "^7.1.0",
91
- "@vitejs/plugin-vue": "^5.0.4",
92
- "@vue/eslint-config-prettier": "^9.0.0",
86
+ "@codemirror/lang-vue": "0.1.3",
87
+ "@eslint/js": "^9.14.0",
88
+ "@tsconfig/node-lts": "^22.0.0",
89
+ "@types/node": "^22.9.0",
90
+ "@vitejs/plugin-vue": "^5.1.4",
91
+ "@vue/eslint-config-prettier": "^10.1.0",
93
92
  "@vue/tsconfig": "^0.5.1",
94
- "eslint": "^8.57.0",
95
- "eslint-config-standard-with-typescript": "^43.0.1",
93
+ "eslint": "^9.14.0",
96
94
  "eslint-import-resolver-alias": "^1.1.2",
97
- "eslint-import-resolver-typescript": "^3.6.1",
98
- "eslint-plugin-html": "^8.0.0",
99
- "eslint-plugin-import": "^2.29.1",
100
- "eslint-plugin-n": "^16.6.2",
101
- "eslint-plugin-promise": "^6.1.1",
102
- "eslint-plugin-tsdoc": "^0.2.17",
103
- "eslint-plugin-vue": "^9.22.0",
104
- "eslint-plugin-vuejs-accessibility": "^2.2.1",
105
- "eslint-plugin-vuetify": "^2.1.1",
106
- "eslint-plugin-yaml": "^0.5.0",
107
- "husky": "^9.0.11",
108
- "lint-staged": "^15.2.2",
95
+ "eslint-import-resolver-typescript": "^3.6.3",
96
+ "eslint-plugin-import": "^2.31.0",
97
+ "eslint-plugin-tsdoc": "^0.3.0",
98
+ "eslint-plugin-vue": "^9.30.0",
99
+ "eslint-plugin-vuejs-accessibility": "^2.4.1",
100
+ "eslint-plugin-vuetify": "^2.4.0",
101
+ "eslint-plugin-yaml": "^1.0.3",
102
+ "husky": "^9.1.6",
103
+ "lint-staged": "^15.2.10",
109
104
  "npm-run-all": "^4.1.5",
110
- "prettier": "^3.2.5",
111
- "rimraf": "^5.0.5",
105
+ "prettier": "^3.3.3",
106
+ "rimraf": "^6.0.1",
112
107
  "rollup-plugin-visualizer": "^5.12.0",
113
- "sass": "^1.71.1",
114
- "typescript": "^5.3.3",
115
- "vite": "^5.1.4",
116
- "vite-plugin-banner": "^0.7.1",
117
- "vite-plugin-checker": "^0.6.4",
118
- "vite-plugin-dts": "^3.7.3",
119
- "vite-plugin-vuetify": "^2.0.1",
120
- "vue": "^3.4.20",
121
- "vue-codemirror6": "^1.2.5",
122
- "vue-eslint-parser": "^9.4.2",
123
- "vue-tsc": "^1.8.27",
124
- "vuetify": "^3.5.6"
108
+ "sass": "^1.80.6",
109
+ "typescript": "5.6.3",
110
+ "typescript-eslint": "^8.13.0",
111
+ "vite": "^5.4.10",
112
+ "vite-plugin-banner": "^0.8.0",
113
+ "vite-plugin-checker": "^0.8.0",
114
+ "vite-plugin-dts": "^4.3.0",
115
+ "vite-plugin-vuetify": "^2.0.4",
116
+ "vue": "^3.5.12",
117
+ "vue-codemirror6": "^1.3.7",
118
+ "vue-eslint-parser": "^9.4.3",
119
+ "vue-tsc": "^2.1.10"
125
120
  },
126
121
  "husky": {
127
122
  "hooks": {
@@ -134,9 +129,7 @@
134
129
  "*": "prettier -w -u"
135
130
  },
136
131
  "resolutions": {
137
- "http-cache-semantics": "^4.1.1",
138
- "json5": "^2.2.3",
139
- "semver": "^7.5.2",
140
- "yaml": "^2.2.2"
132
+ "json5": ">=2.2.3",
133
+ "yaml": ">=2.3.2"
141
134
  }
142
135
  }
@@ -7,7 +7,8 @@ import colors from 'vuetify/util/colors';
7
7
 
8
8
  /** Emits */
9
9
  const emits = defineEmits({
10
- 'update:modelValue': (value: string) => true,
10
+ // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
11
+ 'update:modelValue': (_value: string) => true,
11
12
  });
12
13
 
13
14
  /** Props */