vuetify-swatches 1.4.6 → 1.6.0

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
@@ -153,9 +153,6 @@ Most props other than size and placement are the same as [v-btn](https://vuetify
153
153
  </script>
154
154
  ```
155
155
 
156
- ```
157
-
158
156
  ## LICENSE
159
157
 
160
- ©2022-2023 by Logue. Licensed under the [MIT License](LICENSE).
161
- ```
158
+ ©2022-2024 by Logue. Licensed under the [MIT License](LICENSE).
package/dist/index.es.js CHANGED
@@ -3,47 +3,47 @@
3
3
  *
4
4
  * @description Color Swatch component for Vuetify3.
5
5
  * @author Logue <logue@hotmail.co.jp>
6
- * @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
6
+ * @copyright 2022-2024 By Masashi Yoshikawa All rights reserved.
7
7
  * @license MIT
8
- * @version 1.4.6
8
+ * @version 1.6.0
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
12
12
  import { defineComponent, ref, watch, onMounted, openBlock, createBlock, unref, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
13
13
  import { VSheet, VBtn, VIcon } from 'vuetify/components';
14
- import colors from 'vuetify/lib/util/colors.mjs';
14
+ import { shades, red, pink, purple, deepPurple, indigo, blue, lightBlue, cyan, teal, green, lightGreen, lime, yellow, amber, orange, deepOrange, brown, blueGrey, grey } from 'vuetify/lib/util/colors.mjs';
15
15
 
16
16
  var _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  __name: "VSwatches",
18
18
  props: {
19
19
  /** Model value */
20
- modelValue: { type: String, default: colors.shades.white },
20
+ modelValue: { type: String, default: shades.white },
21
21
  /** Swatch colors */
22
22
  swatches: {
23
23
  type: Array,
24
24
  default: () => [
25
- [colors.shades.black, colors.shades.white, colors.shades.transparent],
25
+ [shades.black, shades.white, shades.transparent],
26
26
  [
27
- colors.red.base,
28
- colors.pink.base,
29
- colors.purple.base,
30
- colors.deepPurple.base,
31
- colors.indigo.base,
32
- colors.blue.base,
33
- colors.lightBlue.base,
34
- colors.cyan.base
27
+ red.base,
28
+ pink.base,
29
+ purple.base,
30
+ deepPurple.base,
31
+ indigo.base,
32
+ blue.base,
33
+ lightBlue.base,
34
+ cyan.base
35
35
  ],
36
36
  [
37
- colors.teal.base,
38
- colors.green.base,
39
- colors.lightGreen.base,
40
- colors.lime.base,
41
- colors.yellow.base,
42
- colors.amber.base,
43
- colors.orange.base,
44
- colors.deepOrange.base
37
+ teal.base,
38
+ green.base,
39
+ lightGreen.base,
40
+ lime.base,
41
+ yellow.base,
42
+ amber.base,
43
+ orange.base,
44
+ deepOrange.base
45
45
  ],
46
- [colors.brown.base, colors.blueGrey.base, colors.grey.base]
46
+ [brown.base, blueGrey.base, grey.base]
47
47
  ]
48
48
  },
49
49
  /** Swatch size */
@@ -113,8 +113,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
113
113
  setup(__props, { emit: __emit }) {
114
114
  const emits = __emit;
115
115
  const props = __props;
116
- const selected = ref(colors.shades.white);
117
- const onSwatchClick = (e) => selected.value = e.target.value || colors.shades.white;
116
+ const selected = ref(shades.white);
117
+ const onSwatchClick = (e) => selected.value = e.target.value || shades.white;
118
118
  watch(
119
119
  () => selected.value,
120
120
  (s) => emits("update:modelValue", s)
@@ -133,7 +133,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
133
133
  return openBlock(), createBlock(unref(VBtn), {
134
134
  key: color,
135
135
  border: props.border,
136
- class: normalizeClass(color === unref(colors).shades.transparent ? "bg-trasparent" : ""),
136
+ class: normalizeClass(color === unref(shades).transparent ? "bg-trasparent" : ""),
137
137
  color,
138
138
  disabled: props.disabled,
139
139
  elevation: props.elevation,
@@ -148,7 +148,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
148
148
  color === __props.modelValue ? (openBlock(), createBlock(unref(VIcon), {
149
149
  key: 0,
150
150
  size: __props.iconSize,
151
- color: color !== unref(colors).shades.transparent ? color : void 0
151
+ color: color !== unref(shades).transparent ? color : void 0
152
152
  }, {
153
153
  default: withCtx(() => [
154
154
  createTextVNode(toDisplayString(props.icon), 1)
@@ -168,8 +168,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
168
168
  }
169
169
  });
170
170
 
171
- var VSwatches_vue_vue_type_style_index_0_lang = '';
172
-
173
171
  const installVSwatches = (app) => app.component("VSwatches", _sfc_main);
174
172
 
175
173
  export { _sfc_main as default, installVSwatches as install };
@@ -3,50 +3,46 @@
3
3
  *
4
4
  * @description Color Swatch component for Vuetify3.
5
5
  * @author Logue <logue@hotmail.co.jp>
6
- * @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
6
+ * @copyright 2022-2024 By Masashi Yoshikawa All rights reserved.
7
7
  * @license MIT
8
- * @version 1.4.6
8
+ * @version 1.6.0
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
12
- var VSwatches = (function (exports, vue, components, colors) {
12
+ var VSwatches = (function (exports, vue, components, colors_mjs) {
13
13
  'use strict';
14
14
 
15
- function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
16
-
17
- var colors__default = /*#__PURE__*/_interopDefaultCompat(colors);
18
-
19
15
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
20
16
  __name: "VSwatches",
21
17
  props: {
22
18
  /** Model value */
23
- modelValue: { type: String, default: colors__default["default"].shades.white },
19
+ modelValue: { type: String, default: colors_mjs.shades.white },
24
20
  /** Swatch colors */
25
21
  swatches: {
26
22
  type: Array,
27
23
  default: () => [
28
- [colors__default["default"].shades.black, colors__default["default"].shades.white, colors__default["default"].shades.transparent],
24
+ [colors_mjs.shades.black, colors_mjs.shades.white, colors_mjs.shades.transparent],
29
25
  [
30
- colors__default["default"].red.base,
31
- colors__default["default"].pink.base,
32
- colors__default["default"].purple.base,
33
- colors__default["default"].deepPurple.base,
34
- colors__default["default"].indigo.base,
35
- colors__default["default"].blue.base,
36
- colors__default["default"].lightBlue.base,
37
- colors__default["default"].cyan.base
26
+ colors_mjs.red.base,
27
+ colors_mjs.pink.base,
28
+ colors_mjs.purple.base,
29
+ colors_mjs.deepPurple.base,
30
+ colors_mjs.indigo.base,
31
+ colors_mjs.blue.base,
32
+ colors_mjs.lightBlue.base,
33
+ colors_mjs.cyan.base
38
34
  ],
39
35
  [
40
- colors__default["default"].teal.base,
41
- colors__default["default"].green.base,
42
- colors__default["default"].lightGreen.base,
43
- colors__default["default"].lime.base,
44
- colors__default["default"].yellow.base,
45
- colors__default["default"].amber.base,
46
- colors__default["default"].orange.base,
47
- colors__default["default"].deepOrange.base
36
+ colors_mjs.teal.base,
37
+ colors_mjs.green.base,
38
+ colors_mjs.lightGreen.base,
39
+ colors_mjs.lime.base,
40
+ colors_mjs.yellow.base,
41
+ colors_mjs.amber.base,
42
+ colors_mjs.orange.base,
43
+ colors_mjs.deepOrange.base
48
44
  ],
49
- [colors__default["default"].brown.base, colors__default["default"].blueGrey.base, colors__default["default"].grey.base]
45
+ [colors_mjs.brown.base, colors_mjs.blueGrey.base, colors_mjs.grey.base]
50
46
  ]
51
47
  },
52
48
  /** Swatch size */
@@ -116,8 +112,8 @@ var VSwatches = (function (exports, vue, components, colors) {
116
112
  setup(__props, { emit: __emit }) {
117
113
  const emits = __emit;
118
114
  const props = __props;
119
- const selected = vue.ref(colors__default["default"].shades.white);
120
- const onSwatchClick = (e) => selected.value = e.target.value || colors__default["default"].shades.white;
115
+ const selected = vue.ref(colors_mjs.shades.white);
116
+ const onSwatchClick = (e) => selected.value = e.target.value || colors_mjs.shades.white;
121
117
  vue.watch(
122
118
  () => selected.value,
123
119
  (s) => emits("update:modelValue", s)
@@ -136,7 +132,7 @@ var VSwatches = (function (exports, vue, components, colors) {
136
132
  return vue.openBlock(), vue.createBlock(vue.unref(components.VBtn), {
137
133
  key: color,
138
134
  border: props.border,
139
- class: vue.normalizeClass(color === vue.unref(colors__default["default"]).shades.transparent ? "bg-trasparent" : ""),
135
+ class: vue.normalizeClass(color === vue.unref(colors_mjs.shades).transparent ? "bg-trasparent" : ""),
140
136
  color,
141
137
  disabled: props.disabled,
142
138
  elevation: props.elevation,
@@ -151,7 +147,7 @@ var VSwatches = (function (exports, vue, components, colors) {
151
147
  color === __props.modelValue ? (vue.openBlock(), vue.createBlock(vue.unref(components.VIcon), {
152
148
  key: 0,
153
149
  size: __props.iconSize,
154
- color: color !== vue.unref(colors__default["default"]).shades.transparent ? color : void 0
150
+ color: color !== vue.unref(colors_mjs.shades).transparent ? color : void 0
155
151
  }, {
156
152
  default: vue.withCtx(() => [
157
153
  vue.createTextVNode(vue.toDisplayString(props.icon), 1)
@@ -171,8 +167,6 @@ var VSwatches = (function (exports, vue, components, colors) {
171
167
  }
172
168
  });
173
169
 
174
- var VSwatches_vue_vue_type_style_index_0_lang = '';
175
-
176
170
  const installVSwatches = (app) => app.component("VSwatches", _sfc_main);
177
171
 
178
172
  exports["default"] = _sfc_main;
package/dist/index.umd.js CHANGED
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * @description Color Swatch component for Vuetify3.
5
5
  * @author Logue <logue@hotmail.co.jp>
6
- * @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
6
+ * @copyright 2022-2024 By Masashi Yoshikawa All rights reserved.
7
7
  * @license MIT
8
- * @version 1.4.6
8
+ * @version 1.6.0
9
9
  * @see {@link https://github.com/logue/vuetify-swatches}
10
10
  */
11
11
 
@@ -13,43 +13,39 @@
13
13
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('vuetify/components'), require('vuetify/lib/util/colors.mjs')) :
14
14
  typeof define === 'function' && define.amd ? define(['exports', 'vue', 'vuetify/components', 'vuetify/lib/util/colors.mjs'], factory) :
15
15
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.VSwatches = {}, global.Vue, global["Vuetify/components"], global.colors));
16
- })(this, (function (exports, vue, components, colors) { 'use strict';
17
-
18
- function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
19
-
20
- var colors__default = /*#__PURE__*/_interopDefaultCompat(colors);
16
+ })(this, (function (exports, vue, components, colors_mjs) { 'use strict';
21
17
 
22
18
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
23
19
  __name: "VSwatches",
24
20
  props: {
25
21
  /** Model value */
26
- modelValue: { type: String, default: colors__default["default"].shades.white },
22
+ modelValue: { type: String, default: colors_mjs.shades.white },
27
23
  /** Swatch colors */
28
24
  swatches: {
29
25
  type: Array,
30
26
  default: () => [
31
- [colors__default["default"].shades.black, colors__default["default"].shades.white, colors__default["default"].shades.transparent],
27
+ [colors_mjs.shades.black, colors_mjs.shades.white, colors_mjs.shades.transparent],
32
28
  [
33
- colors__default["default"].red.base,
34
- colors__default["default"].pink.base,
35
- colors__default["default"].purple.base,
36
- colors__default["default"].deepPurple.base,
37
- colors__default["default"].indigo.base,
38
- colors__default["default"].blue.base,
39
- colors__default["default"].lightBlue.base,
40
- colors__default["default"].cyan.base
29
+ colors_mjs.red.base,
30
+ colors_mjs.pink.base,
31
+ colors_mjs.purple.base,
32
+ colors_mjs.deepPurple.base,
33
+ colors_mjs.indigo.base,
34
+ colors_mjs.blue.base,
35
+ colors_mjs.lightBlue.base,
36
+ colors_mjs.cyan.base
41
37
  ],
42
38
  [
43
- colors__default["default"].teal.base,
44
- colors__default["default"].green.base,
45
- colors__default["default"].lightGreen.base,
46
- colors__default["default"].lime.base,
47
- colors__default["default"].yellow.base,
48
- colors__default["default"].amber.base,
49
- colors__default["default"].orange.base,
50
- colors__default["default"].deepOrange.base
39
+ colors_mjs.teal.base,
40
+ colors_mjs.green.base,
41
+ colors_mjs.lightGreen.base,
42
+ colors_mjs.lime.base,
43
+ colors_mjs.yellow.base,
44
+ colors_mjs.amber.base,
45
+ colors_mjs.orange.base,
46
+ colors_mjs.deepOrange.base
51
47
  ],
52
- [colors__default["default"].brown.base, colors__default["default"].blueGrey.base, colors__default["default"].grey.base]
48
+ [colors_mjs.brown.base, colors_mjs.blueGrey.base, colors_mjs.grey.base]
53
49
  ]
54
50
  },
55
51
  /** Swatch size */
@@ -119,8 +115,8 @@
119
115
  setup(__props, { emit: __emit }) {
120
116
  const emits = __emit;
121
117
  const props = __props;
122
- const selected = vue.ref(colors__default["default"].shades.white);
123
- const onSwatchClick = (e) => selected.value = e.target.value || colors__default["default"].shades.white;
118
+ const selected = vue.ref(colors_mjs.shades.white);
119
+ const onSwatchClick = (e) => selected.value = e.target.value || colors_mjs.shades.white;
124
120
  vue.watch(
125
121
  () => selected.value,
126
122
  (s) => emits("update:modelValue", s)
@@ -139,7 +135,7 @@
139
135
  return vue.openBlock(), vue.createBlock(vue.unref(components.VBtn), {
140
136
  key: color,
141
137
  border: props.border,
142
- class: vue.normalizeClass(color === vue.unref(colors__default["default"]).shades.transparent ? "bg-trasparent" : ""),
138
+ class: vue.normalizeClass(color === vue.unref(colors_mjs.shades).transparent ? "bg-trasparent" : ""),
143
139
  color,
144
140
  disabled: props.disabled,
145
141
  elevation: props.elevation,
@@ -154,7 +150,7 @@
154
150
  color === __props.modelValue ? (vue.openBlock(), vue.createBlock(vue.unref(components.VIcon), {
155
151
  key: 0,
156
152
  size: __props.iconSize,
157
- color: color !== vue.unref(colors__default["default"]).shades.transparent ? color : void 0
153
+ color: color !== vue.unref(colors_mjs.shades).transparent ? color : void 0
158
154
  }, {
159
155
  default: vue.withCtx(() => [
160
156
  vue.createTextVNode(vue.toDisplayString(props.icon), 1)
@@ -174,8 +170,6 @@
174
170
  }
175
171
  });
176
172
 
177
- var VSwatches_vue_vue_type_style_index_0_lang = '';
178
-
179
173
  const installVSwatches = (app) => app.component("VSwatches", _sfc_main);
180
174
 
181
175
  exports["default"] = _sfc_main;
package/dist/style.css CHANGED
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * @description Color Swatch component for Vuetify3.
5
5
  * @author Logue <logue@hotmail.co.jp>
6
- * @copyright 2022-2023 By Masashi Yoshikawa All rights reserved.
6
+ * @copyright 2022-2024 By Masashi Yoshikawa All rights reserved.
7
7
  * @license MIT
8
- * @version 1.4.6
8
+ * @version 1.6.0
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.4.6",
4
+ "version": "1.6.0",
5
5
  "description": "Color Swatch component for Vuetify3.",
6
6
  "keywords": [
7
7
  "vuejs",
@@ -63,13 +63,13 @@
63
63
  "engines": {
64
64
  "yarn": ">=1.22.19"
65
65
  },
66
- "packageManager": "yarn@4.0.1",
66
+ "packageManager": "yarn@4.0.2",
67
67
  "sideEffects": false,
68
68
  "scripts": {
69
69
  "dev": "vite",
70
70
  "clean": "rimraf node_modules/.vite",
71
- "type-check": "tsc --noEmit --composite false",
72
- "build": "run-p type-check build-only",
71
+ "type-check": "vue-tsc --build --force",
72
+ "build": "run-p type-check \"build-only {@}\" --",
73
73
  "build:analyze": "vite build --mode=analyze",
74
74
  "build:clean": "rimraf dist docs",
75
75
  "build:docs": "vite build --mode=docs",
@@ -83,45 +83,45 @@
83
83
  "vuetify": "^3.3.15"
84
84
  },
85
85
  "devDependencies": {
86
- "@codemirror/lang-vue": "^0.1.2",
87
- "@tsconfig/node-lts": "^18.12.5",
88
- "@types/node": "^20.9.0",
89
- "@typescript-eslint/eslint-plugin": "^6.10.0",
90
- "@typescript-eslint/parser": "^6.10.0",
91
- "@vitejs/plugin-vue": "^4.4.0",
92
- "@vue/eslint-config-prettier": "^8.0.0",
93
- "@vue/tsconfig": "^0.4.0",
94
- "eslint": "^8.53.0",
95
- "eslint-config-standard-with-typescript": "^39.1.1",
86
+ "@codemirror/lang-vue": "0.1.2",
87
+ "@tsconfig/node-lts": "^20.1.1",
88
+ "@types/node": "^20.11.5",
89
+ "@typescript-eslint/eslint-plugin": "^6.19.1",
90
+ "@typescript-eslint/parser": "^6.19.1",
91
+ "@vitejs/plugin-vue": "^5.0.3",
92
+ "@vue/eslint-config-prettier": "^9.0.0",
93
+ "@vue/tsconfig": "^0.5.1",
94
+ "eslint": "^8.56.0",
95
+ "eslint-config-standard-with-typescript": "^43.0.1",
96
96
  "eslint-import-resolver-alias": "^1.1.2",
97
97
  "eslint-import-resolver-typescript": "^3.6.1",
98
98
  "eslint-plugin-html": "^7.1.0",
99
- "eslint-plugin-import": "^2.29.0",
100
- "eslint-plugin-n": "^16.3.0",
99
+ "eslint-plugin-import": "^2.29.1",
100
+ "eslint-plugin-n": "^16.6.2",
101
101
  "eslint-plugin-promise": "^6.1.1",
102
102
  "eslint-plugin-tsdoc": "^0.2.17",
103
- "eslint-plugin-vue": "^9.18.1",
104
- "eslint-plugin-vuejs-accessibility": "^2.2.0",
105
- "eslint-plugin-vuetify": "^2.0.5",
103
+ "eslint-plugin-vue": "^9.20.1",
104
+ "eslint-plugin-vuejs-accessibility": "^2.2.1",
105
+ "eslint-plugin-vuetify": "^2.1.1",
106
106
  "eslint-plugin-yaml": "^0.5.0",
107
107
  "husky": "^8.0.3",
108
- "lint-staged": "^15.0.2",
108
+ "lint-staged": "^15.2.0",
109
109
  "npm-run-all": "^4.1.5",
110
- "prettier": "^3.0.3",
110
+ "prettier": "^3.2.4",
111
111
  "rimraf": "^5.0.5",
112
- "rollup-plugin-visualizer": "^5.9.2",
113
- "sass": "^1.69.5",
114
- "typescript": "^5.2.2",
115
- "vite": "^4.5.0",
112
+ "rollup-plugin-visualizer": "^5.12.0",
113
+ "sass": "^1.70.0",
114
+ "typescript": "^5.3.3",
115
+ "vite": "^5.0.12",
116
116
  "vite-plugin-banner": "^0.7.1",
117
117
  "vite-plugin-checker": "^0.6.2",
118
- "vite-plugin-dts": "^3.6.3",
119
- "vite-plugin-vuetify": "^1.0.2",
120
- "vue": "^3.3.8",
121
- "vue-codemirror6": "^1.1.27",
122
- "vue-eslint-parser": "^9.3.2",
123
- "vue-tsc": "^1.8.22",
124
- "vuetify": "^3.3.23"
118
+ "vite-plugin-dts": "^3.7.1",
119
+ "vite-plugin-vuetify": "^2.0.1",
120
+ "vue": "^3.4.15",
121
+ "vue-codemirror6": "^1.2.3",
122
+ "vue-eslint-parser": "^9.4.1",
123
+ "vue-tsc": "^1.8.27",
124
+ "vuetify": "^3.5.1"
125
125
  },
126
126
  "husky": {
127
127
  "hooks": {
@@ -3,7 +3,28 @@
3
3
  import { ref, watch, type PropType, type Ref, onMounted } from 'vue';
4
4
 
5
5
  import { VBtn, VIcon, VSheet } from 'vuetify/components';
6
- import colors from 'vuetify/lib/util/colors.mjs';
6
+ import {
7
+ shades,
8
+ red,
9
+ pink,
10
+ purple,
11
+ deepPurple,
12
+ indigo,
13
+ blue,
14
+ lightBlue,
15
+ cyan,
16
+ teal,
17
+ green,
18
+ lightGreen,
19
+ lime,
20
+ yellow,
21
+ amber,
22
+ orange,
23
+ deepOrange,
24
+ brown,
25
+ blueGrey,
26
+ grey,
27
+ } from 'vuetify/lib/util/colors.mjs';
7
28
 
8
29
  /** Emits */
9
30
  const emits = defineEmits({
@@ -13,33 +34,33 @@ const emits = defineEmits({
13
34
  /** Props */
14
35
  const props = defineProps({
15
36
  /** Model value */
16
- modelValue: { type: String, default: colors.shades.white },
37
+ modelValue: { type: String, default: shades.white },
17
38
  /** Swatch colors */
18
39
  swatches: {
19
40
  type: Array as PropType<string[] | string[][] | Record<string, string[]>>,
20
41
  default: () => [
21
- [colors.shades.black, colors.shades.white, colors.shades.transparent],
42
+ [shades.black, shades.white, shades.transparent],
22
43
  [
23
- colors.red.base,
24
- colors.pink.base,
25
- colors.purple.base,
26
- colors.deepPurple.base,
27
- colors.indigo.base,
28
- colors.blue.base,
29
- colors.lightBlue.base,
30
- colors.cyan.base,
44
+ red.base,
45
+ pink.base,
46
+ purple.base,
47
+ deepPurple.base,
48
+ indigo.base,
49
+ blue.base,
50
+ lightBlue.base,
51
+ cyan.base,
31
52
  ],
32
53
  [
33
- colors.teal.base,
34
- colors.green.base,
35
- colors.lightGreen.base,
36
- colors.lime.base,
37
- colors.yellow.base,
38
- colors.amber.base,
39
- colors.orange.base,
40
- colors.deepOrange.base,
54
+ teal.base,
55
+ green.base,
56
+ lightGreen.base,
57
+ lime.base,
58
+ yellow.base,
59
+ amber.base,
60
+ orange.base,
61
+ deepOrange.base,
41
62
  ],
42
- [colors.brown.base, colors.blueGrey.base, colors.grey.base],
63
+ [brown.base, blueGrey.base, grey.base],
43
64
  ],
44
65
  },
45
66
  /** Swatch size */
@@ -107,7 +128,7 @@ const props = defineProps({
107
128
  });
108
129
 
109
130
  /** Selected Color */
110
- const selected: Ref<string> = ref(colors.shades.white);
131
+ const selected: Ref<string> = ref(shades.white);
111
132
 
112
133
  /**
113
134
  * Swatch button clicked handler
@@ -115,8 +136,7 @@ const selected: Ref<string> = ref(colors.shades.white);
115
136
  * @param e - Event
116
137
  */
117
138
  const onSwatchClick = (e: Event) =>
118
- (selected.value =
119
- (e.target as HTMLButtonElement).value || colors.shades.white);
139
+ (selected.value = (e.target as HTMLButtonElement).value || shades.white);
120
140
 
121
141
  watch(
122
142
  () => selected.value,
@@ -137,7 +157,7 @@ onMounted(() => {
137
157
  v-for="color in cols"
138
158
  :key="color"
139
159
  :border="props.border"
140
- :class="color === colors.shades.transparent ? 'bg-trasparent' : ''"
160
+ :class="color === shades.transparent ? 'bg-trasparent' : ''"
141
161
  :color="color"
142
162
  :disabled="props.disabled"
143
163
  :elevation="props.elevation"
@@ -151,7 +171,7 @@ onMounted(() => {
151
171
  <v-icon
152
172
  v-if="color === modelValue"
153
173
  :size="iconSize"
154
- :color="color !== colors.shades.transparent ? color : undefined"
174
+ :color="color !== shades.transparent ? color : undefined"
155
175
  >
156
176
  {{ props.icon }}
157
177
  </v-icon>