vuetify-swatches 1.3.6 → 1.3.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 +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/src/components/VSwatches.vue.d.ts +159 -0
- package/dist/{index.d.ts → src/index.d.ts} +3 -4
- package/dist/style.css +2 -3
- package/package.json +28 -35
- package/src/components/VSwatches.vue +1 -3
- package/dist/Meta.d.ts +0 -4
- package/dist/Meta.d.ts.map +0 -1
- package/dist/Meta.js +0 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -9
- package/dist/interfaces/MetaInterface.d.ts +0 -8
- package/dist/interfaces/MetaInterface.d.ts.map +0 -1
- package/dist/interfaces/MetaInterface.js +0 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|

|
|
11
11
|
|
|
12
|
-
This
|
|
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
package/dist/index.iife.js
CHANGED
package/dist/index.umd.js
CHANGED
|
@@ -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://next.vuetifyjs.com/en/components/buttons/#variant}
|
|
33
|
+
*/
|
|
34
|
+
variant: {
|
|
35
|
+
type: PropType<"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://next.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://next.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://next.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://next.vuetifyjs.com/en/components/buttons/#variant}
|
|
104
|
+
*/
|
|
105
|
+
variant: {
|
|
106
|
+
type: PropType<"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://next.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://next.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://next.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: "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;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import VSwatches from '
|
|
2
|
-
declare const installVSwatches: (app: any) => any;
|
|
3
|
-
export { VSwatches as default, installVSwatches as install };
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import VSwatches from './components/VSwatches.vue';
|
|
2
|
+
declare const installVSwatches: (app: any) => any;
|
|
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.
|
|
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),
|
|
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.
|
|
4
|
+
"version": "1.3.8",
|
|
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,45 +55,44 @@
|
|
|
55
55
|
"src/components/VSwatches.vue"
|
|
56
56
|
],
|
|
57
57
|
"engines": {
|
|
58
|
-
"node": ">=18.
|
|
58
|
+
"node": ">=18.15.0",
|
|
59
59
|
"yarn": ">=1.22.19"
|
|
60
60
|
},
|
|
61
|
-
"packageManager": "yarn@3.
|
|
61
|
+
"packageManager": "yarn@3.4.1",
|
|
62
62
|
"sideEffects": false,
|
|
63
63
|
"scripts": {
|
|
64
64
|
"dev": "vite",
|
|
65
65
|
"clean": "rimraf node_modules/.vite",
|
|
66
66
|
"type-check": "tsc --noEmit --composite false",
|
|
67
|
-
"build": "run-p type-check build-only
|
|
67
|
+
"build": "run-p type-check build-only",
|
|
68
68
|
"build:analyze": "vite build --mode=analyze",
|
|
69
69
|
"build:clean": "rimraf dist docs",
|
|
70
70
|
"build:docs": "vite build --mode=docs",
|
|
71
71
|
"build-only": "vite build",
|
|
72
|
-
"build-declaration": "tsc -p tsconfig.app.json --composite false --declaration --declarationMap",
|
|
73
72
|
"lint": "eslint . --fix --cache --cache-location ./node_modules/.vite/vite-plugin-eslint && prettier . --write",
|
|
74
73
|
"preview": "vite preview --mode=docs",
|
|
75
74
|
"prepare": "husky install",
|
|
76
75
|
"version": "auto-changelog -p && git add CHANGELOG.md"
|
|
77
76
|
},
|
|
78
77
|
"peerDependencies": {
|
|
79
|
-
"vue": "^3.2.
|
|
80
|
-
"vuetify": "^3.1.
|
|
78
|
+
"vue": "^3.2.47",
|
|
79
|
+
"vuetify": "^3.1.5"
|
|
81
80
|
},
|
|
82
81
|
"devDependencies": {
|
|
83
|
-
"@codemirror/lang-
|
|
84
|
-
"@types/node": "^18.
|
|
85
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
86
|
-
"@typescript-eslint/parser": "^5.
|
|
82
|
+
"@codemirror/lang-vue": "^0.1.1",
|
|
83
|
+
"@types/node": "^18.15.0",
|
|
84
|
+
"@typescript-eslint/eslint-plugin": "^5.54.1",
|
|
85
|
+
"@typescript-eslint/parser": "^5.54.1",
|
|
87
86
|
"@vitejs/plugin-vue": "^4.0.0",
|
|
88
|
-
"@vue/eslint-config-prettier": "^7.
|
|
87
|
+
"@vue/eslint-config-prettier": "^7.1.0",
|
|
89
88
|
"@vue/tsconfig": "^0.1.3",
|
|
90
|
-
"eslint": "^8.
|
|
89
|
+
"eslint": "^8.35.0",
|
|
91
90
|
"eslint-config-google": "^0.14.0",
|
|
92
|
-
"eslint-config-prettier": "^8.
|
|
91
|
+
"eslint-config-prettier": "^8.7.0",
|
|
93
92
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
94
93
|
"eslint-import-resolver-typescript": "^3.5.3",
|
|
95
94
|
"eslint-plugin-import": "^2.27.5",
|
|
96
|
-
"eslint-plugin-jsdoc": "^
|
|
95
|
+
"eslint-plugin-jsdoc": "^40.0.1",
|
|
97
96
|
"eslint-plugin-prettier": "^4.2.1",
|
|
98
97
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
99
98
|
"eslint-plugin-vue": "^9.9.0",
|
|
@@ -101,30 +100,23 @@
|
|
|
101
100
|
"eslint-plugin-vuetify": "^2.0.0-beta.2",
|
|
102
101
|
"eslint-plugin-yaml": "^0.5.0",
|
|
103
102
|
"husky": "^8.0.3",
|
|
104
|
-
"lint-staged": "^13.
|
|
103
|
+
"lint-staged": "^13.2.0",
|
|
105
104
|
"npm-run-all": "^4.1.5",
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"rimraf": "^4.1.2",
|
|
105
|
+
"prettier": "^2.8.4",
|
|
106
|
+
"rimraf": "^4.4.0",
|
|
109
107
|
"rollup-plugin-visualizer": "^5.9.0",
|
|
110
|
-
"sass": "^1.58.
|
|
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",
|
|
108
|
+
"sass": "^1.58.3",
|
|
118
109
|
"typescript": "^4.9.5",
|
|
119
|
-
"vite": "^4.1.
|
|
110
|
+
"vite": "^4.1.4",
|
|
120
111
|
"vite-plugin-banner": "^0.7.0",
|
|
121
|
-
"vite-plugin-checker": "^0.5.
|
|
112
|
+
"vite-plugin-checker": "^0.5.6",
|
|
113
|
+
"vite-plugin-dts": "^2.1.0",
|
|
122
114
|
"vite-plugin-vuetify": "^1.0.2",
|
|
123
115
|
"vue": "^3.2.47",
|
|
124
|
-
"vue-codemirror6": "1.1.
|
|
116
|
+
"vue-codemirror6": "^1.1.12",
|
|
125
117
|
"vue-eslint-parser": "^9.1.0",
|
|
126
|
-
"vue-tsc": "^1.0
|
|
127
|
-
"vuetify": "^3.
|
|
118
|
+
"vue-tsc": "^1.2.0",
|
|
119
|
+
"vuetify": "^3.1.8"
|
|
128
120
|
},
|
|
129
121
|
"husky": {
|
|
130
122
|
"hooks": {
|
|
@@ -137,6 +129,7 @@
|
|
|
137
129
|
"*": "prettier -w -u"
|
|
138
130
|
},
|
|
139
131
|
"resolutions": {
|
|
140
|
-
"json5": "^2.2.3"
|
|
132
|
+
"json5": "^2.2.3",
|
|
133
|
+
"http-cache-semantics": "^4.1.1"
|
|
141
134
|
}
|
|
142
135
|
}
|
|
@@ -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
|
-
|
|
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
package/dist/Meta.d.ts.map
DELETED
|
@@ -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
package/dist/index.d.ts.map
DELETED
|
@@ -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 +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 {};
|