vuetify-swatches 1.3.8 → 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/dist/index.es.js +7 -7
- package/dist/index.iife.js +7 -7
- package/dist/index.umd.js +7 -7
- package/dist/src/components/VSwatches.vue.d.ts +11 -11
- package/dist/src/index.d.ts +1 -1
- package/package.json +20 -21
- package/src/components/VSwatches.vue +7 -7
package/dist/index.es.js
CHANGED
|
@@ -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://
|
|
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://
|
|
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://
|
|
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://
|
|
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.
|
|
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
|
-
|
|
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", "
|
|
133
|
+
}, 1032, ["border", "class", "color", "disabled", "elevation", "height", "value", "variant", "width"]);
|
|
134
134
|
}), 128))
|
|
135
135
|
]);
|
|
136
136
|
}), 128))
|
package/dist/index.iife.js
CHANGED
|
@@ -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://
|
|
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://
|
|
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://
|
|
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://
|
|
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.
|
|
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
|
-
|
|
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", "
|
|
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
|
@@ -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://
|
|
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://
|
|
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://
|
|
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://
|
|
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.
|
|
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
|
-
|
|
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", "
|
|
140
|
+
}, 1032, ["border", "class", "color", "disabled", "elevation", "height", "value", "variant", "width"]);
|
|
141
141
|
}), 128))
|
|
142
142
|
]);
|
|
143
143
|
}), 128))
|
|
@@ -29,10 +29,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
29
29
|
/**
|
|
30
30
|
* The variant prop gives you easy access to several different button styles..
|
|
31
31
|
*
|
|
32
|
-
* @see {@link https://
|
|
32
|
+
* @see {@link https://vuetifyjs.com/en/components/buttons/#variant}
|
|
33
33
|
*/
|
|
34
34
|
variant: {
|
|
35
|
-
type: PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain"
|
|
35
|
+
type: PropType<NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">>;
|
|
36
36
|
default: undefined;
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
@@ -47,7 +47,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
47
47
|
/**
|
|
48
48
|
* Applies a large border radius on the button.
|
|
49
49
|
*
|
|
50
|
-
* @see {@link https://
|
|
50
|
+
* @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
|
|
51
51
|
*/
|
|
52
52
|
rounded: {
|
|
53
53
|
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
@@ -56,7 +56,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
56
56
|
/**
|
|
57
57
|
* Applies border styles to component.
|
|
58
58
|
*
|
|
59
|
-
* @see {@link https://
|
|
59
|
+
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-border}
|
|
60
60
|
*/
|
|
61
61
|
border: {
|
|
62
62
|
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
@@ -65,7 +65,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
65
65
|
/**
|
|
66
66
|
* Designates an elevation applied to the component between 0 and 24.
|
|
67
67
|
*
|
|
68
|
-
* @see {@link https://
|
|
68
|
+
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
|
|
69
69
|
*/
|
|
70
70
|
elevation: {
|
|
71
71
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -100,10 +100,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
100
100
|
/**
|
|
101
101
|
* The variant prop gives you easy access to several different button styles..
|
|
102
102
|
*
|
|
103
|
-
* @see {@link https://
|
|
103
|
+
* @see {@link https://vuetifyjs.com/en/components/buttons/#variant}
|
|
104
104
|
*/
|
|
105
105
|
variant: {
|
|
106
|
-
type: PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain"
|
|
106
|
+
type: PropType<NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">>;
|
|
107
107
|
default: undefined;
|
|
108
108
|
};
|
|
109
109
|
/**
|
|
@@ -118,7 +118,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
118
118
|
/**
|
|
119
119
|
* Applies a large border radius on the button.
|
|
120
120
|
*
|
|
121
|
-
* @see {@link https://
|
|
121
|
+
* @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
|
|
122
122
|
*/
|
|
123
123
|
rounded: {
|
|
124
124
|
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
@@ -127,7 +127,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
127
127
|
/**
|
|
128
128
|
* Applies border styles to component.
|
|
129
129
|
*
|
|
130
|
-
* @see {@link https://
|
|
130
|
+
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-border}
|
|
131
131
|
*/
|
|
132
132
|
border: {
|
|
133
133
|
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
@@ -136,7 +136,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
136
136
|
/**
|
|
137
137
|
* Designates an elevation applied to the component between 0 and 24.
|
|
138
138
|
*
|
|
139
|
-
* @see {@link https://
|
|
139
|
+
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
|
|
140
140
|
*/
|
|
141
141
|
elevation: {
|
|
142
142
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -150,7 +150,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
150
150
|
size: string;
|
|
151
151
|
icon: string;
|
|
152
152
|
iconSize: string;
|
|
153
|
-
variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain"
|
|
153
|
+
variant: NonNullable<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
|
|
154
154
|
disabled: boolean;
|
|
155
155
|
rounded: string | number | boolean;
|
|
156
156
|
border: string | number | boolean;
|
package/dist/src/index.d.ts
CHANGED
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.
|
|
4
|
+
"version": "1.3.9",
|
|
5
5
|
"description": "Color Swatch component for Vuetify3.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"vuejs",
|
|
@@ -55,10 +55,9 @@
|
|
|
55
55
|
"src/components/VSwatches.vue"
|
|
56
56
|
],
|
|
57
57
|
"engines": {
|
|
58
|
-
"node": ">=18.15.0",
|
|
59
58
|
"yarn": ">=1.22.19"
|
|
60
59
|
},
|
|
61
|
-
"packageManager": "yarn@3.
|
|
60
|
+
"packageManager": "yarn@3.5.0",
|
|
62
61
|
"sideEffects": false,
|
|
63
62
|
"scripts": {
|
|
64
63
|
"dev": "vite",
|
|
@@ -75,48 +74,48 @@
|
|
|
75
74
|
"version": "auto-changelog -p && git add CHANGELOG.md"
|
|
76
75
|
},
|
|
77
76
|
"peerDependencies": {
|
|
78
|
-
"vue": "^3.2
|
|
79
|
-
"vuetify": "^3.1.
|
|
77
|
+
"vue": "^3.2",
|
|
78
|
+
"vuetify": "^3.1.11"
|
|
80
79
|
},
|
|
81
80
|
"devDependencies": {
|
|
82
81
|
"@codemirror/lang-vue": "^0.1.1",
|
|
83
|
-
"@types/node": "^18.15.
|
|
84
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
85
|
-
"@typescript-eslint/parser": "^5.
|
|
86
|
-
"@vitejs/plugin-vue": "^4.
|
|
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",
|
|
87
86
|
"@vue/eslint-config-prettier": "^7.1.0",
|
|
88
87
|
"@vue/tsconfig": "^0.1.3",
|
|
89
|
-
"eslint": "^8.
|
|
90
|
-
"eslint-config-
|
|
91
|
-
"eslint-config-prettier": "^8.7.0",
|
|
88
|
+
"eslint": "^8.36.0",
|
|
89
|
+
"eslint-config-standard-with-typescript": "latest",
|
|
92
90
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
93
91
|
"eslint-import-resolver-typescript": "^3.5.3",
|
|
92
|
+
"eslint-plugin-html": "^7.1.0",
|
|
94
93
|
"eslint-plugin-import": "^2.27.5",
|
|
95
|
-
"eslint-plugin-
|
|
96
|
-
"eslint-plugin-
|
|
94
|
+
"eslint-plugin-n": "^15.6.1",
|
|
95
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
97
96
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
98
|
-
"eslint-plugin-vue": "
|
|
97
|
+
"eslint-plugin-vue": "latest",
|
|
99
98
|
"eslint-plugin-vuejs-accessibility": "^2.1.0",
|
|
100
99
|
"eslint-plugin-vuetify": "^2.0.0-beta.2",
|
|
101
100
|
"eslint-plugin-yaml": "^0.5.0",
|
|
102
101
|
"husky": "^8.0.3",
|
|
103
102
|
"lint-staged": "^13.2.0",
|
|
104
103
|
"npm-run-all": "^4.1.5",
|
|
105
|
-
"prettier": "^2.8.
|
|
106
|
-
"rimraf": "^4.4.
|
|
104
|
+
"prettier": "^2.8.6",
|
|
105
|
+
"rimraf": "^4.4.1",
|
|
107
106
|
"rollup-plugin-visualizer": "^5.9.0",
|
|
108
|
-
"sass": "^1.
|
|
107
|
+
"sass": "^1.59.3",
|
|
109
108
|
"typescript": "^4.9.5",
|
|
110
|
-
"vite": "^4.1
|
|
109
|
+
"vite": "^4.2.1",
|
|
111
110
|
"vite-plugin-banner": "^0.7.0",
|
|
112
111
|
"vite-plugin-checker": "^0.5.6",
|
|
113
112
|
"vite-plugin-dts": "^2.1.0",
|
|
114
113
|
"vite-plugin-vuetify": "^1.0.2",
|
|
115
114
|
"vue": "^3.2.47",
|
|
116
|
-
"vue-codemirror6": "^1.1.
|
|
115
|
+
"vue-codemirror6": "^1.1.16",
|
|
117
116
|
"vue-eslint-parser": "^9.1.0",
|
|
118
117
|
"vue-tsc": "^1.2.0",
|
|
119
|
-
"vuetify": "^3.1.
|
|
118
|
+
"vuetify": "^3.1.11"
|
|
120
119
|
},
|
|
121
120
|
"husky": {
|
|
122
121
|
"hooks": {
|
|
@@ -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://
|
|
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://
|
|
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://
|
|
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://
|
|
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).
|
|
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
|
-
:
|
|
116
|
+
:value="color"
|
|
117
117
|
:variant="props.variant"
|
|
118
118
|
:width="props.size"
|
|
119
119
|
min-width="auto"
|