vuetify-swatches 1.3.6 → 1.3.9

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,7 +9,7 @@
9
9
 
10
10
  ![demo](https://user-images.githubusercontent.com/480173/156681882-d3d5e868-ba9a-4a34-9e75-08272d39da64.gif)
11
11
 
12
- This branch is for vuetify3. Not usable for production, experimental use only.
12
+ This is for Vuetify3. Please use 1.0.x when using with Vuetify2.
13
13
 
14
14
  This project is a remake of [saintplay's vue-swatches](https://saintplay.github.io/vue-swatches/) with [Vuetify](https://vuetifyjs.com/).
15
15
 
@@ -134,4 +134,4 @@ Most props other than size and placement are the same as [v-btn](https://next.vu
134
134
 
135
135
  ## LICENSE
136
136
 
137
- [MIT](LICENSE)
137
+ ©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.3.6
8
+ * @version 1.3.8
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
@@ -54,7 +54,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
54
54
  /**
55
55
  * The variant prop gives you easy access to several different button styles..
56
56
  *
57
- * @see {@link https://next.vuetifyjs.com/en/components/buttons/#variant}
57
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#variant}
58
58
  */
59
59
  variant: {
60
60
  type: String,
@@ -69,19 +69,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
69
69
  /**
70
70
  * Applies a large border radius on the button.
71
71
  *
72
- * @see {@link https://next.vuetifyjs.com/en/components/buttons/#rounded}
72
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
73
73
  */
74
74
  rounded: { type: [String, Number, Boolean], default: void 0 },
75
75
  /**
76
76
  * Applies border styles to component.
77
77
  *
78
- * @see {@link https://next.vuetifyjs.com/en/api/v-btn/#props-border}
78
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-border}
79
79
  */
80
80
  border: { type: [String, Number, Boolean], default: false },
81
81
  /**
82
82
  * Designates an elevation applied to the component between 0 and 24.
83
83
  *
84
- * @see {@link https://next.vuetifyjs.com/en/api/v-btn/#props-elevation}
84
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
85
85
  */
86
86
  elevation: { type: [String, Number], default: void 0 }
87
87
  },
@@ -89,7 +89,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
89
89
  setup(__props, { emit: emits }) {
90
90
  const props = __props;
91
91
  const selected = ref(props.modelValue || colors.shades.white);
92
- const onSwatchClick = (e) => selected.value = e.target.dataset.value || colors.shades.white;
92
+ const onSwatchClick = (e) => selected.value = e.target.value || colors.shades.white;
93
93
  watch(
94
94
  () => selected.value,
95
95
  (s) => emits("update:modelValue", s)
@@ -111,7 +111,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
111
111
  disabled: props.disabled,
112
112
  elevation: props.elevation,
113
113
  height: props.size,
114
- "data-value": color,
114
+ value: color,
115
115
  variant: props.variant,
116
116
  width: props.size,
117
117
  "min-width": "auto",
@@ -130,7 +130,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
130
130
  }, 1032, ["size", "color"])) : createCommentVNode("", true)
131
131
  ]),
132
132
  _: 2
133
- }, 1032, ["border", "class", "color", "disabled", "elevation", "height", "data-value", "variant", "width"]);
133
+ }, 1032, ["border", "class", "color", "disabled", "elevation", "height", "value", "variant", "width"]);
134
134
  }), 128))
135
135
  ]);
136
136
  }), 128))
@@ -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.3.6
8
+ * @version 1.3.8
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
@@ -58,7 +58,7 @@ var VSwatches = (function (exports, vue, colors) {
58
58
  /**
59
59
  * The variant prop gives you easy access to several different button styles..
60
60
  *
61
- * @see {@link https://next.vuetifyjs.com/en/components/buttons/#variant}
61
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#variant}
62
62
  */
63
63
  variant: {
64
64
  type: String,
@@ -73,19 +73,19 @@ var VSwatches = (function (exports, vue, colors) {
73
73
  /**
74
74
  * Applies a large border radius on the button.
75
75
  *
76
- * @see {@link https://next.vuetifyjs.com/en/components/buttons/#rounded}
76
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
77
77
  */
78
78
  rounded: { type: [String, Number, Boolean], default: void 0 },
79
79
  /**
80
80
  * Applies border styles to component.
81
81
  *
82
- * @see {@link https://next.vuetifyjs.com/en/api/v-btn/#props-border}
82
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-border}
83
83
  */
84
84
  border: { type: [String, Number, Boolean], default: false },
85
85
  /**
86
86
  * Designates an elevation applied to the component between 0 and 24.
87
87
  *
88
- * @see {@link https://next.vuetifyjs.com/en/api/v-btn/#props-elevation}
88
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
89
89
  */
90
90
  elevation: { type: [String, Number], default: void 0 }
91
91
  },
@@ -93,7 +93,7 @@ var VSwatches = (function (exports, vue, colors) {
93
93
  setup(__props, { emit: emits }) {
94
94
  const props = __props;
95
95
  const selected = vue.ref(props.modelValue || colors__default["default"].shades.white);
96
- const onSwatchClick = (e) => selected.value = e.target.dataset.value || colors__default["default"].shades.white;
96
+ const onSwatchClick = (e) => selected.value = e.target.value || colors__default["default"].shades.white;
97
97
  vue.watch(
98
98
  () => selected.value,
99
99
  (s) => emits("update:modelValue", s)
@@ -115,7 +115,7 @@ var VSwatches = (function (exports, vue, colors) {
115
115
  disabled: props.disabled,
116
116
  elevation: props.elevation,
117
117
  height: props.size,
118
- "data-value": color,
118
+ value: color,
119
119
  variant: props.variant,
120
120
  width: props.size,
121
121
  "min-width": "auto",
@@ -134,7 +134,7 @@ var VSwatches = (function (exports, vue, colors) {
134
134
  }, 1032, ["size", "color"])) : vue.createCommentVNode("", true)
135
135
  ]),
136
136
  _: 2
137
- }, 1032, ["border", "class", "color", "disabled", "elevation", "height", "data-value", "variant", "width"]);
137
+ }, 1032, ["border", "class", "color", "disabled", "elevation", "height", "value", "variant", "width"]);
138
138
  }), 128))
139
139
  ]);
140
140
  }), 128))
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.3.6
8
+ * @version 1.3.8
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
@@ -61,7 +61,7 @@
61
61
  /**
62
62
  * The variant prop gives you easy access to several different button styles..
63
63
  *
64
- * @see {@link https://next.vuetifyjs.com/en/components/buttons/#variant}
64
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#variant}
65
65
  */
66
66
  variant: {
67
67
  type: String,
@@ -76,19 +76,19 @@
76
76
  /**
77
77
  * Applies a large border radius on the button.
78
78
  *
79
- * @see {@link https://next.vuetifyjs.com/en/components/buttons/#rounded}
79
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
80
80
  */
81
81
  rounded: { type: [String, Number, Boolean], default: void 0 },
82
82
  /**
83
83
  * Applies border styles to component.
84
84
  *
85
- * @see {@link https://next.vuetifyjs.com/en/api/v-btn/#props-border}
85
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-border}
86
86
  */
87
87
  border: { type: [String, Number, Boolean], default: false },
88
88
  /**
89
89
  * Designates an elevation applied to the component between 0 and 24.
90
90
  *
91
- * @see {@link https://next.vuetifyjs.com/en/api/v-btn/#props-elevation}
91
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
92
92
  */
93
93
  elevation: { type: [String, Number], default: void 0 }
94
94
  },
@@ -96,7 +96,7 @@
96
96
  setup(__props, { emit: emits }) {
97
97
  const props = __props;
98
98
  const selected = vue.ref(props.modelValue || colors__default["default"].shades.white);
99
- const onSwatchClick = (e) => selected.value = e.target.dataset.value || colors__default["default"].shades.white;
99
+ const onSwatchClick = (e) => selected.value = e.target.value || colors__default["default"].shades.white;
100
100
  vue.watch(
101
101
  () => selected.value,
102
102
  (s) => emits("update:modelValue", s)
@@ -118,7 +118,7 @@
118
118
  disabled: props.disabled,
119
119
  elevation: props.elevation,
120
120
  height: props.size,
121
- "data-value": color,
121
+ value: color,
122
122
  variant: props.variant,
123
123
  width: props.size,
124
124
  "min-width": "auto",
@@ -137,7 +137,7 @@
137
137
  }, 1032, ["size", "color"])) : vue.createCommentVNode("", true)
138
138
  ]),
139
139
  _: 2
140
- }, 1032, ["border", "class", "color", "disabled", "elevation", "height", "data-value", "variant", "width"]);
140
+ }, 1032, ["border", "class", "color", "disabled", "elevation", "height", "value", "variant", "width"]);
141
141
  }), 128))
142
142
  ]);
143
143
  }), 128))
@@ -0,0 +1,159 @@
1
+ import { type PropType } from 'vue';
2
+ /** Emits */
3
+ declare const _sfc_main: import("vue").DefineComponent<{
4
+ /** Model value */
5
+ modelValue: {
6
+ type: StringConstructor;
7
+ default: any;
8
+ };
9
+ /** Swatch colors */
10
+ swatches: {
11
+ type: PropType<string[] | string[][]>;
12
+ default: () => any[][];
13
+ };
14
+ /** Swatch size */
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
+ * The variant prop gives you easy access to several different button styles..
31
+ *
32
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#variant}
33
+ */
34
+ variant: {
35
+ type: PropType<NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">>;
36
+ default: undefined;
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: undefined;
46
+ };
47
+ /**
48
+ * Applies a large border radius on the button.
49
+ *
50
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
51
+ */
52
+ rounded: {
53
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
54
+ default: undefined;
55
+ };
56
+ /**
57
+ * Applies border styles to component.
58
+ *
59
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-border}
60
+ */
61
+ border: {
62
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
63
+ default: boolean;
64
+ };
65
+ /**
66
+ * Designates an elevation applied to the component between 0 and 24.
67
+ *
68
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
69
+ */
70
+ elevation: {
71
+ type: (StringConstructor | NumberConstructor)[];
72
+ default: undefined;
73
+ };
74
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
75
+ /** Model value */
76
+ modelValue: {
77
+ type: StringConstructor;
78
+ default: any;
79
+ };
80
+ /** Swatch colors */
81
+ swatches: {
82
+ type: PropType<string[] | string[][]>;
83
+ default: () => any[][];
84
+ };
85
+ /** Swatch size */
86
+ size: {
87
+ type: StringConstructor;
88
+ default: string;
89
+ };
90
+ /** Selected icon */
91
+ icon: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ /** selected icon size */
96
+ iconSize: {
97
+ type: StringConstructor;
98
+ default: string;
99
+ };
100
+ /**
101
+ * The variant prop gives you easy access to several different button styles..
102
+ *
103
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#variant}
104
+ */
105
+ variant: {
106
+ type: PropType<NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">>;
107
+ default: undefined;
108
+ };
109
+ /**
110
+ * Removes the ability to click or target the component.
111
+ *
112
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-disabled}
113
+ */
114
+ disabled: {
115
+ type: BooleanConstructor;
116
+ default: undefined;
117
+ };
118
+ /**
119
+ * Applies a large border radius on the button.
120
+ *
121
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
122
+ */
123
+ rounded: {
124
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
125
+ default: undefined;
126
+ };
127
+ /**
128
+ * Applies border styles to component.
129
+ *
130
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-border}
131
+ */
132
+ border: {
133
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
134
+ default: boolean;
135
+ };
136
+ /**
137
+ * Designates an elevation applied to the component between 0 and 24.
138
+ *
139
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
140
+ */
141
+ elevation: {
142
+ type: (StringConstructor | NumberConstructor)[];
143
+ default: undefined;
144
+ };
145
+ }>> & {
146
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
147
+ }, {
148
+ modelValue: string;
149
+ swatches: string[] | string[][];
150
+ size: string;
151
+ icon: string;
152
+ iconSize: string;
153
+ variant: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
154
+ disabled: boolean;
155
+ rounded: string | number | boolean;
156
+ border: string | number | boolean;
157
+ elevation: string | number;
158
+ }>;
159
+ export default _sfc_main;
@@ -0,0 +1,3 @@
1
+ import VSwatches from './components/VSwatches.vue';
2
+ declare const installVSwatches: (app: any) => void;
3
+ export { VSwatches as default, installVSwatches as install };
package/dist/style.css CHANGED
@@ -5,11 +5,10 @@
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.3.6
8
+ * @version 1.3.8
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
12
- /** if false, disabled buttons will be greyed out */
13
12
  .v-swatches div .v-btn {
14
13
  padding: 0 !important;
15
14
  margin: 0.1rem;
@@ -18,7 +17,7 @@
18
17
  filter: invert(100%) grayscale(100%) contrast(100);
19
18
  }
20
19
  .v-swatches div .v-btn.bg-trasparent {
21
- background: linear-gradient(to top left, transparent 0, transparent calc(50% - 0.1rem), #F44336 50%, transparent calc(50% + 0.1rem), transparent);
20
+ background: linear-gradient(to top left, transparent 0, transparent calc(50% - 0.1rem), rgb(var(--v-theme-error)) 50%, transparent calc(50% + 0.1rem), transparent);
22
21
  }
23
22
  .v-swatches div .v-btn.bg-trasparent .v-icon {
24
23
  filter: none;
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.3.6",
4
+ "version": "1.3.9",
5
5
  "description": "Color Swatch component for Vuetify3.",
6
6
  "keywords": [
7
7
  "vuejs",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "main": "dist/index.umd.js",
36
36
  "module": "dist/index.es.js",
37
- "types": "dist/index.d.ts",
37
+ "types": "dist/src/index.d.ts",
38
38
  "style": "dist/style.css",
39
39
  "browser": {
40
40
  "./sfc": "./src/components/VSwatches.vue"
@@ -43,7 +43,7 @@
43
43
  ".": {
44
44
  "import": "./dist/index.es.js",
45
45
  "require": "./dist/index.umd.js",
46
- "types": "./dist/index.d.ts"
46
+ "types": "./dist/src/index.d.ts"
47
47
  },
48
48
  "./dist/style.css": {
49
49
  "import": "./dist/style.css",
@@ -55,76 +55,67 @@
55
55
  "src/components/VSwatches.vue"
56
56
  ],
57
57
  "engines": {
58
- "node": ">=18.12.1",
59
58
  "yarn": ">=1.22.19"
60
59
  },
61
- "packageManager": "yarn@3.3.1",
60
+ "packageManager": "yarn@3.5.0",
62
61
  "sideEffects": false,
63
62
  "scripts": {
64
63
  "dev": "vite",
65
64
  "clean": "rimraf node_modules/.vite",
66
65
  "type-check": "tsc --noEmit --composite false",
67
- "build": "run-p type-check build-only build-declaration",
66
+ "build": "run-p type-check build-only",
68
67
  "build:analyze": "vite build --mode=analyze",
69
68
  "build:clean": "rimraf dist docs",
70
69
  "build:docs": "vite build --mode=docs",
71
70
  "build-only": "vite build",
72
- "build-declaration": "tsc -p tsconfig.app.json --composite false --declaration --declarationMap",
73
71
  "lint": "eslint . --fix --cache --cache-location ./node_modules/.vite/vite-plugin-eslint && prettier . --write",
74
72
  "preview": "vite preview --mode=docs",
75
73
  "prepare": "husky install",
76
74
  "version": "auto-changelog -p && git add CHANGELOG.md"
77
75
  },
78
76
  "peerDependencies": {
79
- "vue": "^3.2.45",
80
- "vuetify": "^3.1.3"
77
+ "vue": "^3.2",
78
+ "vuetify": "^3.1.11"
81
79
  },
82
80
  "devDependencies": {
83
- "@codemirror/lang-html": "6.1.0",
84
- "@types/node": "^18.11.18",
85
- "@typescript-eslint/eslint-plugin": "^5.50.0",
86
- "@typescript-eslint/parser": "^5.50.0",
87
- "@vitejs/plugin-vue": "^4.0.0",
88
- "@vue/eslint-config-prettier": "^7.0.0",
81
+ "@codemirror/lang-vue": "^0.1.1",
82
+ "@types/node": "^18.15.5",
83
+ "@typescript-eslint/eslint-plugin": "^5.56.0",
84
+ "@typescript-eslint/parser": "^5.56.0",
85
+ "@vitejs/plugin-vue": "^4.1.0",
86
+ "@vue/eslint-config-prettier": "^7.1.0",
89
87
  "@vue/tsconfig": "^0.1.3",
90
- "eslint": "^8.33.0",
91
- "eslint-config-google": "^0.14.0",
92
- "eslint-config-prettier": "^8.6.0",
88
+ "eslint": "^8.36.0",
89
+ "eslint-config-standard-with-typescript": "latest",
93
90
  "eslint-import-resolver-alias": "^1.1.2",
94
91
  "eslint-import-resolver-typescript": "^3.5.3",
92
+ "eslint-plugin-html": "^7.1.0",
95
93
  "eslint-plugin-import": "^2.27.5",
96
- "eslint-plugin-jsdoc": "^39.8.0",
97
- "eslint-plugin-prettier": "^4.2.1",
94
+ "eslint-plugin-n": "^15.6.1",
95
+ "eslint-plugin-promise": "^6.1.1",
98
96
  "eslint-plugin-tsdoc": "^0.2.17",
99
- "eslint-plugin-vue": "^9.9.0",
97
+ "eslint-plugin-vue": "latest",
100
98
  "eslint-plugin-vuejs-accessibility": "^2.1.0",
101
99
  "eslint-plugin-vuetify": "^2.0.0-beta.2",
102
100
  "eslint-plugin-yaml": "^0.5.0",
103
101
  "husky": "^8.0.3",
104
- "lint-staged": "^13.1.0",
102
+ "lint-staged": "^13.2.0",
105
103
  "npm-run-all": "^4.1.5",
106
- "postcss-html": "^1.5.0",
107
- "prettier": "^2.8.3",
108
- "rimraf": "^4.1.2",
104
+ "prettier": "^2.8.6",
105
+ "rimraf": "^4.4.1",
109
106
  "rollup-plugin-visualizer": "^5.9.0",
110
- "sass": "^1.58.0",
111
- "sass-loader": "^13.2.0",
112
- "stylelint": "^14.16.1",
113
- "stylelint-config-prettier": "^9.0.4",
114
- "stylelint-config-recommended-scss": "^8.0.0",
115
- "stylelint-config-recommended-vue": "^1.4.0",
116
- "stylelint-order": "^6.0.1",
117
- "stylelint-prettier": "^2.0.0",
107
+ "sass": "^1.59.3",
118
108
  "typescript": "^4.9.5",
119
- "vite": "^4.1.1",
109
+ "vite": "^4.2.1",
120
110
  "vite-plugin-banner": "^0.7.0",
121
- "vite-plugin-checker": "^0.5.5",
111
+ "vite-plugin-checker": "^0.5.6",
112
+ "vite-plugin-dts": "^2.1.0",
122
113
  "vite-plugin-vuetify": "^1.0.2",
123
114
  "vue": "^3.2.47",
124
- "vue-codemirror6": "1.1.10",
115
+ "vue-codemirror6": "^1.1.16",
125
116
  "vue-eslint-parser": "^9.1.0",
126
- "vue-tsc": "^1.0.24",
127
- "vuetify": "^3.0.4"
117
+ "vue-tsc": "^1.2.0",
118
+ "vuetify": "^3.1.11"
128
119
  },
129
120
  "husky": {
130
121
  "hooks": {
@@ -137,6 +128,7 @@
137
128
  "*": "prettier -w -u"
138
129
  },
139
130
  "resolutions": {
140
- "json5": "^2.2.3"
131
+ "json5": "^2.2.3",
132
+ "http-cache-semantics": "^4.1.1"
141
133
  }
142
134
  }
@@ -49,11 +49,11 @@ const props = defineProps({
49
49
  /**
50
50
  * The variant prop gives you easy access to several different button styles..
51
51
  *
52
- * @see {@link https://next.vuetifyjs.com/en/components/buttons/#variant}
52
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#variant}
53
53
  */
54
54
  variant: {
55
55
  type: String as PropType<
56
- 'flat' | 'text' | 'elevated' | 'tonal' | 'outlined' | 'plain'
56
+ NonNullable<'flat' | 'text' | 'elevated' | 'tonal' | 'outlined' | 'plain'>
57
57
  >,
58
58
  default: undefined,
59
59
  },
@@ -66,19 +66,19 @@ const props = defineProps({
66
66
  /**
67
67
  * Applies a large border radius on the button.
68
68
  *
69
- * @see {@link https://next.vuetifyjs.com/en/components/buttons/#rounded}
69
+ * @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
70
70
  */
71
71
  rounded: { type: [String, Number, Boolean], default: undefined },
72
72
  /**
73
73
  * Applies border styles to component.
74
74
  *
75
- * @see {@link https://next.vuetifyjs.com/en/api/v-btn/#props-border}
75
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-border}
76
76
  */
77
77
  border: { type: [String, Number, Boolean], default: false },
78
78
  /**
79
79
  * Designates an elevation applied to the component between 0 and 24.
80
80
  *
81
- * @see {@link https://next.vuetifyjs.com/en/api/v-btn/#props-elevation}
81
+ * @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
82
82
  */
83
83
  elevation: { type: [String, Number], default: undefined },
84
84
  });
@@ -93,7 +93,7 @@ const selected: Ref<string> = ref(props.modelValue || colors.shades.white);
93
93
  */
94
94
  const onSwatchClick = (e: Event) =>
95
95
  (selected.value =
96
- (e.target as HTMLButtonElement).dataset.value || colors.shades.white);
96
+ (e.target as HTMLButtonElement).value || colors.shades.white);
97
97
 
98
98
  watch(
99
99
  () => selected.value,
@@ -113,7 +113,7 @@ watch(
113
113
  :disabled="props.disabled"
114
114
  :elevation="props.elevation"
115
115
  :height="props.size"
116
- :data-value="color"
116
+ :value="color"
117
117
  :variant="props.variant"
118
118
  :width="props.size"
119
119
  min-width="auto"
@@ -132,8 +132,6 @@ watch(
132
132
  </template>
133
133
 
134
134
  <style lang="scss">
135
- @use 'vuetify/settings';
136
-
137
135
  .v-swatches {
138
136
  div {
139
137
  .v-btn {
@@ -149,7 +147,7 @@ watch(
149
147
  to top left,
150
148
  transparent 0,
151
149
  transparent calc(50% - 0.1rem),
152
- map-get(settings.$red, 'base') 50%,
150
+ rgb(var(--v-theme-error)) 50%,
153
151
  transparent calc(50% + 0.1rem),
154
152
  transparent
155
153
  );
package/dist/Meta.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import type MetaInterface from '@/interfaces/MetaInterface';
2
- declare const meta: MetaInterface;
3
- export default meta;
4
- //# sourceMappingURL=Meta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Meta.d.ts","sourceRoot":"","sources":["../src/Meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAC;AAG5D,QAAA,MAAM,IAAI,EAAE,aAGX,CAAC;AACF,eAAe,IAAI,CAAC"}
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.6',
4
- date: '2023-02-04T12:14:21.684Z',
5
- };
6
- export default meta;
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import VSwatches from '@/components/VSwatches.vue';
2
- declare const installVSwatches: (app: any) => any;
3
- export { VSwatches as default, installVSwatches as install };
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,4BAA4B,CAAC;AAEnD,QAAA,MAAM,gBAAgB,QAAS,GAAG,QAA0C,CAAC;AAE7E,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
package/dist/index.js DELETED
@@ -1,9 +0,0 @@
1
- import VSwatches from '@/components/VSwatches.vue';
2
- const installVSwatches = (app) => app.component('VSwatches', VSwatches);
3
- export { VSwatches as default, installVSwatches as install };
4
- // For CDN.
5
- // @ts-ignore
6
- if (typeof window !== 'undefined' && window.Vue) {
7
- // @ts-ignore
8
- window.Vue.use(VSwatches);
9
- }
@@ -1,8 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export {};