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 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 '@/components/VSwatches.vue';
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 '@/components/VSwatches.vue';
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 { Vue } from 'vue-property-decorator';
2
- /** Swatch */
3
- export default class VSwatches extends Vue {
4
- /** チェックアイコンの表示制御 */
5
- checkedVisibilty: boolean;
6
- /** カラー一覧 */
7
- palette: string[] | string[][];
8
- /** 親コンポーネントからのバインディング */
9
- selected: string;
10
- /** ボタンの大きさ */
11
- readonly size: string;
12
- /** 使用するアイコン */
13
- readonly icon: string;
14
- /** アイコンサイズ */
15
- readonly iconSize: string;
16
- /**
17
- * ボタンがクリックされた
18
- *
19
- * @param e - イベント
20
- */
21
- onSwatchClick(e: Event): void;
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,EAA6B,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAaxE,aAAa;AACb,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,GAAG;IACxC,oBAAoB;IACpB,gBAAgB,UAAS;IAEzB,YAAY;IA4BZ,OAAO,EAAG,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,CAAC;IAEhC,yBAAyB;IAEzB,QAAQ,EAAG,MAAM,CAAC;IAElB,cAAc;IAEd,QAAQ,CAAC,IAAI,EAAG,MAAM,CAAC;IAEvB,eAAe;IAEf,QAAQ,CAAC,IAAI,EAAG,MAAM,CAAC;IAEvB,cAAc;IAEd,QAAQ,CAAC,QAAQ,EAAG,MAAM,CAAC;IAE3B;;;;OAIG;IACH,aAAa,CAAC,CAAC,EAAE,KAAK;CAQvB"}
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
- import * as namedExports from './index.esm';
2
- declare const _default: typeof import("./components/VSwatches.vue").default & import("vue").PluginObject<any> & typeof namedExports;
3
- export default _default;
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAkB,KAAK,YAAY,MAAM,aAAa,CAAC;;AASvD,wBAC0C"}
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"}