vuetify-swatches 0.0.2 → 0.0.5
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 +10 -2
- package/dist/components/VSwatches.vue.d.ts +63 -22
- package/dist/components/VSwatches.vue.d.ts.map +1 -1
- package/dist/index.d.ts +13 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/style.css +1 -5
- package/dist/v-swatches.es.js +179 -0
- package/dist/v-swatches.umd.js +8 -0
- package/package.json +50 -33
- package/src/components/VSwatches.vue +90 -69
- package/dist/VSwatches.es.js +0 -3144
- package/dist/VSwatches.umd.js +0 -33
- package/dist/index.esm.d.ts +0 -6
- package/dist/index.esm.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ In this example, the selected color is assigned to `selected`.
|
|
|
26
26
|
<script>
|
|
27
27
|
import Vue from 'vue';
|
|
28
28
|
|
|
29
|
-
import VSwatches from '
|
|
29
|
+
import VSwatches from 'vuetify-swatches';
|
|
30
30
|
|
|
31
31
|
export default Vue.extend({
|
|
32
32
|
data() {
|
|
@@ -36,6 +36,10 @@ export default Vue.extend({
|
|
|
36
36
|
},
|
|
37
37
|
});
|
|
38
38
|
</script>
|
|
39
|
+
|
|
40
|
+
<style>
|
|
41
|
+
@import 'vuetify-swatches/dist/style.css';
|
|
42
|
+
</style>
|
|
39
43
|
```
|
|
40
44
|
|
|
41
45
|
The method of specifying `swatches` is the same as [nested-color of Vue Swatches](https://saintplay.github.io/vue-swatches/examples/#nested-colors).
|
|
@@ -59,7 +63,7 @@ If you want to make the color palette appear when you click it, combine it with
|
|
|
59
63
|
<script>
|
|
60
64
|
import Vue from 'vue';
|
|
61
65
|
|
|
62
|
-
import VSwatches from '
|
|
66
|
+
import VSwatches from 'vuetify-swatches';
|
|
63
67
|
|
|
64
68
|
export default Vue.extend({
|
|
65
69
|
data() {
|
|
@@ -111,6 +115,10 @@ export default Vue.extend({
|
|
|
111
115
|
},
|
|
112
116
|
});
|
|
113
117
|
</script>
|
|
118
|
+
|
|
119
|
+
<style>
|
|
120
|
+
@import 'vuetify-swatches/dist/style.css';
|
|
121
|
+
</style>
|
|
114
122
|
```
|
|
115
123
|
|
|
116
124
|
### Options
|
|
@@ -1,23 +1,64 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
1
|
+
import { type Ref } from 'vue-demi';
|
|
2
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
3
|
+
checkedVisibilty: Ref<boolean>;
|
|
4
|
+
palette: Ref<string[] | string[][]>;
|
|
5
|
+
selected: Ref<string>;
|
|
6
|
+
onSwatchClick: (e: Event) => void;
|
|
7
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
8
|
+
/** Model value */
|
|
9
|
+
modelValue: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
/** Swatch colors */
|
|
14
|
+
swatches: {
|
|
15
|
+
type: () => string[] | string[][];
|
|
16
|
+
default: () => string[][];
|
|
17
|
+
};
|
|
18
|
+
/** Swatch sized */
|
|
19
|
+
size: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
/** selected icon */
|
|
24
|
+
icon: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
/** selected icon size */
|
|
29
|
+
iconSize: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
modelValue: string;
|
|
35
|
+
swatches: string[] | string[][];
|
|
36
|
+
size: string;
|
|
37
|
+
icon: string;
|
|
38
|
+
iconSize: string;
|
|
39
|
+
} & {}> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
40
|
+
modelValue: string;
|
|
41
|
+
swatches: string[] | string[][];
|
|
42
|
+
size: string;
|
|
43
|
+
icon: string;
|
|
44
|
+
iconSize: string;
|
|
45
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
46
|
+
checkedVisibilty: Ref<boolean>;
|
|
47
|
+
palette: Ref<string[] | string[][]>;
|
|
48
|
+
selected: Ref<string>;
|
|
49
|
+
onSwatchClick: (e: Event) => void;
|
|
50
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
51
|
+
modelValue: string;
|
|
52
|
+
swatches: string[] | string[][];
|
|
53
|
+
size: string;
|
|
54
|
+
icon: string;
|
|
55
|
+
iconSize: string;
|
|
56
|
+
} & {}, {
|
|
57
|
+
swatches: string[] | string[][];
|
|
58
|
+
size: string;
|
|
59
|
+
icon: string;
|
|
60
|
+
iconSize: string;
|
|
61
|
+
}, true>);
|
|
62
|
+
/** Vuetify Swatches */
|
|
63
|
+
export default _default;
|
|
23
64
|
//# sourceMappingURL=VSwatches.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VSwatches.vue.d.ts","sourceRoot":"","sources":["../../src/components/VSwatches.vue.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"VSwatches.vue.d.ts","sourceRoot":"","sources":["../../src/components/VSwatches.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAA2C,KAAK,GAAG,EAAE,MAAM,UAAU,CAAC;;;;;uBAgF/C,KAAK;;IA3D/B,kBAAkB;;;;;IAElB,oBAAoB;;oBAEG,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE;;;IA0B5C,mBAAmB;;;;;IAEnB,oBAAoB;;;;;IAEpB,yBAAyB;;;;;;;;;;;;;;;;;;;;;uBAyBC,KAAK;;;;;;;;;;;;;AA3EnC,uBAAuB;AACvB,wBA0FG"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Vuetify Swatches Component
|
|
3
|
+
*
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @author Logue {@link logue@hotmail.co.jp}
|
|
6
|
+
* @copyright 2022 Masashi Yoshikawa {@link https://logue.dev/} All rights reserved.
|
|
7
|
+
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
8
|
+
*/
|
|
9
|
+
import VSwatches from './components/VSwatches.vue';
|
|
10
|
+
import { App } from 'vue-demi';
|
|
11
|
+
declare const installVSwatches: (app: App) => void;
|
|
12
|
+
export { VSwatches, installVSwatches as install };
|
|
13
|
+
export default VSwatches;
|
|
4
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,SAAS,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAW,GAAG,EAAE,MAAM,UAAU,CAAC;AAIxC,QAAA,MAAM,gBAAgB,QAAS,GAAG,SAEjC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC;AAClD,eAAe,SAAS,CAAC"}
|