vuetify-swatches 2.1.1 → 2.3.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.ja.md +7 -41
- package/README.md +7 -41
- package/dist/components/SwatchButton.vue.d.ts +19 -34
- package/dist/components/VSwatches.vue.d.ts +21 -78
- package/dist/index.cjs.js +9 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +105 -103
- package/dist/index.iife.js +9 -10
- package/dist/index.umd.js +9 -10
- package/dist/presets/advanced.js +1 -2
- package/dist/presets/basic.js +1 -2
- package/dist/style.css +2 -0
- package/dist/{interfaces/MetaInterface.d.ts → types/Meta.d.ts} +3 -2
- package/package.json +86 -106
- package/src/components/VSwatches.vue +104 -183
- package/dist/Meta.d.ts +0 -3
- package/dist/presets/src/Meta.d.ts +0 -3
- package/dist/presets/src/components/SwatchButton.vue.d.ts +0 -36
- package/dist/presets/src/components/VSwatches.vue.d.ts +0 -81
- package/dist/presets/src/index.d.ts +0 -3
- package/dist/presets/src/interfaces/MetaInterface.d.ts +0 -7
- package/dist/vuetify-swatches.css +0 -13
package/README.ja.md
CHANGED
|
@@ -35,6 +35,7 @@ pnpm add vuetify-swatches
|
|
|
35
35
|
```vue
|
|
36
36
|
<script setup lang="ts">
|
|
37
37
|
import { ref, type Ref } from 'vue';
|
|
38
|
+
|
|
38
39
|
import VSwatches from 'vuetify-swatches';
|
|
39
40
|
import { basicPalette } from 'vuetify-swatches/presets/basic';
|
|
40
41
|
|
|
@@ -56,8 +57,8 @@ const selected: Ref<string> = ref('#ffffff');
|
|
|
56
57
|
- `advancedPalette`: 色バリエーションが豊富な拡張パレット
|
|
57
58
|
|
|
58
59
|
```ts
|
|
59
|
-
import { basicPalette } from 'vuetify-swatches/presets/basic';
|
|
60
60
|
import { advancedPalette } from 'vuetify-swatches/presets/advanced';
|
|
61
|
+
import { basicPalette } from 'vuetify-swatches/presets/basic';
|
|
61
62
|
```
|
|
62
63
|
|
|
63
64
|
## カスタムパレット
|
|
@@ -67,49 +68,14 @@ import { advancedPalette } from 'vuetify-swatches/presets/advanced';
|
|
|
67
68
|
```vue
|
|
68
69
|
<script setup lang="ts">
|
|
69
70
|
import { ref, type Ref } from 'vue';
|
|
71
|
+
|
|
70
72
|
import VSwatches from 'vuetify-swatches';
|
|
71
73
|
|
|
72
74
|
const customPalette: Ref<string[][]> = ref([
|
|
73
|
-
[
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
'#b7ffb7',
|
|
78
|
-
'#b7ffff',
|
|
79
|
-
'#b7b7ff',
|
|
80
|
-
'#ffb7ff',
|
|
81
|
-
'#ffffff',
|
|
82
|
-
],
|
|
83
|
-
[
|
|
84
|
-
'#ff5555',
|
|
85
|
-
'#ffa555',
|
|
86
|
-
'#ffff55',
|
|
87
|
-
'#55ff55',
|
|
88
|
-
'#55ffff',
|
|
89
|
-
'#5555ff',
|
|
90
|
-
'#ff55ff',
|
|
91
|
-
'#aaaaaa',
|
|
92
|
-
],
|
|
93
|
-
[
|
|
94
|
-
'#ff0000',
|
|
95
|
-
'#ff7f00',
|
|
96
|
-
'#ffff00',
|
|
97
|
-
'#00ff00',
|
|
98
|
-
'#00ffff',
|
|
99
|
-
'#0000ff',
|
|
100
|
-
'#ff00ff',
|
|
101
|
-
'#555555',
|
|
102
|
-
],
|
|
103
|
-
[
|
|
104
|
-
'#7f0000',
|
|
105
|
-
'#7f4c00',
|
|
106
|
-
'#7f7f00',
|
|
107
|
-
'#007f00',
|
|
108
|
-
'#007f7f',
|
|
109
|
-
'#00007f',
|
|
110
|
-
'#7f007f',
|
|
111
|
-
'#000000',
|
|
112
|
-
],
|
|
75
|
+
['#ffb7b7', '#ffdbb7', '#ffffb7', '#b7ffb7', '#b7ffff', '#b7b7ff', '#ffb7ff', '#ffffff'],
|
|
76
|
+
['#ff5555', '#ffa555', '#ffff55', '#55ff55', '#55ffff', '#5555ff', '#ff55ff', '#aaaaaa'],
|
|
77
|
+
['#ff0000', '#ff7f00', '#ffff00', '#00ff00', '#00ffff', '#0000ff', '#ff00ff', '#555555'],
|
|
78
|
+
['#7f0000', '#7f4c00', '#7f7f00', '#007f00', '#007f7f', '#00007f', '#7f007f', '#000000']
|
|
113
79
|
]);
|
|
114
80
|
|
|
115
81
|
const selected: Ref<string> = ref('#ffffff');
|
package/README.md
CHANGED
|
@@ -34,6 +34,7 @@ pnpm add vuetify-swatches
|
|
|
34
34
|
```vue
|
|
35
35
|
<script setup lang="ts">
|
|
36
36
|
import { ref, type Ref } from 'vue';
|
|
37
|
+
|
|
37
38
|
import VSwatches from 'vuetify-swatches';
|
|
38
39
|
import { basicPalette } from 'vuetify-swatches/presets/basic';
|
|
39
40
|
|
|
@@ -55,8 +56,8 @@ const selected: Ref<string> = ref('#ffffff');
|
|
|
55
56
|
- `advancedPalette`: larger palette with many color variations
|
|
56
57
|
|
|
57
58
|
```ts
|
|
58
|
-
import { basicPalette } from 'vuetify-swatches/presets/basic';
|
|
59
59
|
import { advancedPalette } from 'vuetify-swatches/presets/advanced';
|
|
60
|
+
import { basicPalette } from 'vuetify-swatches/presets/basic';
|
|
60
61
|
```
|
|
61
62
|
|
|
62
63
|
## Custom Palette
|
|
@@ -66,49 +67,14 @@ You can pass your own nested color array to `swatches`.
|
|
|
66
67
|
```vue
|
|
67
68
|
<script setup lang="ts">
|
|
68
69
|
import { ref, type Ref } from 'vue';
|
|
70
|
+
|
|
69
71
|
import VSwatches from 'vuetify-swatches';
|
|
70
72
|
|
|
71
73
|
const customPalette: Ref<string[][]> = ref([
|
|
72
|
-
[
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
'#b7ffb7',
|
|
77
|
-
'#b7ffff',
|
|
78
|
-
'#b7b7ff',
|
|
79
|
-
'#ffb7ff',
|
|
80
|
-
'#ffffff',
|
|
81
|
-
],
|
|
82
|
-
[
|
|
83
|
-
'#ff5555',
|
|
84
|
-
'#ffa555',
|
|
85
|
-
'#ffff55',
|
|
86
|
-
'#55ff55',
|
|
87
|
-
'#55ffff',
|
|
88
|
-
'#5555ff',
|
|
89
|
-
'#ff55ff',
|
|
90
|
-
'#aaaaaa',
|
|
91
|
-
],
|
|
92
|
-
[
|
|
93
|
-
'#ff0000',
|
|
94
|
-
'#ff7f00',
|
|
95
|
-
'#ffff00',
|
|
96
|
-
'#00ff00',
|
|
97
|
-
'#00ffff',
|
|
98
|
-
'#0000ff',
|
|
99
|
-
'#ff00ff',
|
|
100
|
-
'#555555',
|
|
101
|
-
],
|
|
102
|
-
[
|
|
103
|
-
'#7f0000',
|
|
104
|
-
'#7f4c00',
|
|
105
|
-
'#7f7f00',
|
|
106
|
-
'#007f00',
|
|
107
|
-
'#007f7f',
|
|
108
|
-
'#00007f',
|
|
109
|
-
'#7f007f',
|
|
110
|
-
'#000000',
|
|
111
|
-
],
|
|
74
|
+
['#ffb7b7', '#ffdbb7', '#ffffb7', '#b7ffb7', '#b7ffff', '#b7b7ff', '#ffb7ff', '#ffffff'],
|
|
75
|
+
['#ff5555', '#ffa555', '#ffff55', '#55ff55', '#55ffff', '#5555ff', '#ff55ff', '#aaaaaa'],
|
|
76
|
+
['#ff0000', '#ff7f00', '#ffff00', '#00ff00', '#00ffff', '#0000ff', '#ff00ff', '#555555'],
|
|
77
|
+
['#7f0000', '#7f4c00', '#7f7f00', '#007f00', '#007f7f', '#00007f', '#7f007f', '#000000']
|
|
112
78
|
]);
|
|
113
79
|
|
|
114
80
|
const selected: Ref<string> = ref('#ffffff');
|
|
@@ -1,36 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
tooltipLocation: Anchor;
|
|
16
|
-
}
|
|
17
|
-
declare const __VLS_export: import('vue').DefineComponent<Partial<Props>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
-
click: () => any;
|
|
19
|
-
}, string, import('vue').PublicProps, Readonly<Partial<Props>> & Readonly<{
|
|
20
|
-
onClick?: (() => any) | undefined;
|
|
21
|
-
}>, {
|
|
22
|
-
color: string;
|
|
23
|
-
isSelected: boolean;
|
|
24
|
-
size: string;
|
|
25
|
-
icon: string;
|
|
26
|
-
iconSize: string;
|
|
27
|
-
variant: Variant;
|
|
28
|
-
disabled: boolean;
|
|
29
|
-
rounded: string | number | boolean;
|
|
30
|
-
border: string | number | boolean;
|
|
31
|
-
elevation: string | number;
|
|
32
|
-
tooltip: boolean;
|
|
33
|
-
tooltipLocation: Anchor;
|
|
34
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
1
|
+
import { SwatchButtonProps } from '../types/SwatchButtonProps.d.ts';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<Partial<SwatchButtonProps> & {
|
|
4
|
+
onClick?: (() => any) | undefined;
|
|
5
|
+
}> & (typeof globalThis extends {
|
|
6
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
7
|
+
} ? P : {});
|
|
8
|
+
expose: (exposed: {}) => void;
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {};
|
|
11
|
+
emit: (evt: "click") => void;
|
|
12
|
+
}>) => import('vue').VNode & {
|
|
13
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
14
|
+
};
|
|
35
15
|
declare const _default: typeof __VLS_export;
|
|
36
16
|
export default _default;
|
|
17
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
18
|
+
[K in keyof T]: T[K];
|
|
19
|
+
} : {
|
|
20
|
+
[K in keyof T as K]: T[K];
|
|
21
|
+
}) & {};
|
|
@@ -1,81 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
icon?: string;
|
|
18
|
-
/** Selected icon size */
|
|
19
|
-
iconSize?: string;
|
|
20
|
-
/** Display swatches in a single row */
|
|
21
|
-
inline?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* The variant prop gives you easy access to several different button styles.
|
|
24
|
-
* @see {@link https://vuetifyjs.com/en/components/buttons/#variant}
|
|
25
|
-
*/
|
|
26
|
-
variant?: Variant;
|
|
27
|
-
/**
|
|
28
|
-
* Removes the ability to click or target the component.
|
|
29
|
-
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-disabled}
|
|
30
|
-
*/
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Applies a large border radius on the button.
|
|
34
|
-
* @see {@link https://vuetifyjs.com/en/components/buttons/#rounded}
|
|
35
|
-
*/
|
|
36
|
-
rounded?: string | number | boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Applies border styles to component.
|
|
39
|
-
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-border}
|
|
40
|
-
*/
|
|
41
|
-
border?: string | number | boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Designates an elevation applied to the component between 0 and 24.
|
|
44
|
-
* @see {@link https://vuetifyjs.com/en/api/v-btn/#props-elevation}
|
|
45
|
-
*/
|
|
46
|
-
elevation?: string | number;
|
|
47
|
-
/** Swap cols and rows */
|
|
48
|
-
transpose?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Tooltip
|
|
51
|
-
* @see {@link https://vuetifyjs.com/en/components/tooltips/}
|
|
52
|
-
*/
|
|
53
|
-
tooltip?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Tooltip location
|
|
56
|
-
* @see {@link https://vuetifyjs.com/en/components/tooltips/#props-location}
|
|
57
|
-
*/
|
|
58
|
-
tooltipLocation?: Anchor;
|
|
1
|
+
import { VSwatchesProps } from '../types/VSwatchesProps.d.ts';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<(Partial<Omit<VSwatchesProps, "modelValue">> & {
|
|
4
|
+
/** Selected Color */
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
}) & {
|
|
7
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
|
+
}> & (typeof globalThis extends {
|
|
9
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
10
|
+
} ? P : {});
|
|
11
|
+
expose: (exposed: {}) => void;
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: {};
|
|
14
|
+
emit: (event: "update:modelValue", value: string) => void;
|
|
15
|
+
}>) => import('vue').VNode & {
|
|
16
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
59
17
|
};
|
|
60
|
-
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
61
|
-
"update:modelValue": (value: string) => any;
|
|
62
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
63
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
64
|
-
}>, {
|
|
65
|
-
size: string;
|
|
66
|
-
icon: string;
|
|
67
|
-
iconSize: string;
|
|
68
|
-
variant: Variant;
|
|
69
|
-
disabled: boolean;
|
|
70
|
-
rounded: string | number | boolean;
|
|
71
|
-
border: string | number | boolean;
|
|
72
|
-
elevation: string | number;
|
|
73
|
-
tooltip: boolean;
|
|
74
|
-
tooltipLocation: Anchor;
|
|
75
|
-
modelValue: string;
|
|
76
|
-
swatches: SwatchesProp;
|
|
77
|
-
inline: boolean;
|
|
78
|
-
transpose: boolean;
|
|
79
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
80
18
|
declare const _default: typeof __VLS_export;
|
|
81
19
|
export default _default;
|
|
20
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
21
|
+
[K in keyof T]: T[K];
|
|
22
|
+
} : {
|
|
23
|
+
[K in keyof T as K]: T[K];
|
|
24
|
+
}) & {};
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
2
|
+
* vuetify-swatches
|
|
3
|
+
*
|
|
4
|
+
* @description Color Swatch component for Vuetify3.
|
|
5
|
+
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
+
* @license MIT
|
|
7
|
+
* @version 2.3.0
|
|
8
|
+
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
9
|
+
*/
|
|
11
10
|
|
|
12
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(
|
|
11
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&(s=n(i,c),t(e,c,{get:s&&s.get&&!s.configurable?s.get:()=>i[c],enumerable:!s||s.enumerable}));return e},s=(n,r,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));let c=require("vue"),l=require("vuetify/components"),u=require("vuetify/util/colors");u=s(u,1);function d(...e){let t=0;for(let n=0;n<e.length;n++)e[n].length>t&&(t=e[n].length);let n=e.length,r=Array(t);for(let i=0;i<t;++i){let t=Array(n);for(let r=0;r<n;++r)t[r]=e[r][i];r[i]=t}return r}var f=(0,c.defineComponent)({__name:`SwatchButton`,props:{color:{},isSelected:{type:Boolean,default:!1},size:{default:`2rem`},icon:{default:`mdi-checkbox-marked-circle`},iconSize:{default:`1rem`},variant:{},disabled:{type:Boolean,default:!1},rounded:{type:[String,Number,Boolean]},border:{type:[String,Number,Boolean],default:!1},elevation:{},tooltip:{type:Boolean,default:!1},tooltipLocation:{default:`end`}},emits:[`click`],setup(e,{emit:t}){let n=t;return(t,r)=>e.color?((0,c.openBlock)(),(0,c.createBlock)((0,c.unref)(l.VTooltip),{key:0,disabled:!e.tooltip,location:e.tooltipLocation,text:e.color},{activator:(0,c.withCtx)(({props:t})=>[(0,c.createVNode)((0,c.unref)(l.VBtn),(0,c.mergeProps)(t,{class:[`p-0`,e.color===(0,c.unref)(u.default).shades.transparent?`bg-transparent`:``],width:e.size,height:e.size,border:e.border,color:e.color,disabled:e.disabled,elevation:e.elevation,variant:e.variant,"min-width":`auto`,onClick:r[0]||=e=>n(`click`)}),{default:(0,c.withCtx)(()=>[e.isSelected?((0,c.openBlock)(),(0,c.createBlock)((0,c.unref)(l.VIcon),{key:0,size:e.iconSize,color:e.color===(0,c.unref)(u.default).shades.transparent?void 0:e.color,icon:e.icon},null,8,[`size`,`color`,`icon`])):(0,c.createCommentVNode)(``,!0)]),_:1},16,[`class`,`width`,`height`,`border`,`color`,`disabled`,`elevation`,`variant`])]),_:1},8,[`disabled`,`location`,`text`])):((0,c.openBlock)(),(0,c.createBlock)((0,c.unref)(l.VBtn),{key:1,class:`p-0`,width:e.size,height:e.size,"min-width":`auto`,variant:`text`,disabled:``},null,8,[`width`,`height`]))}}),p=((e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n})((0,c.defineComponent)({__name:`VSwatches`,props:(0,c.mergeModels)({swatches:{default:()=>[]},size:{default:`2rem`},icon:{default:`mdi-checkbox-marked-circle`},iconSize:{default:`1rem`},inline:{type:Boolean,default:!1},variant:{},disabled:{type:Boolean,default:!1},rounded:{type:[String,Number,Boolean]},border:{type:[String,Number,Boolean],default:!1},elevation:{},transpose:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!1},tooltipLocation:{}},{modelValue:{default:u.default.shades.white},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=(0,c.useModel)(e,`modelValue`),n=(0,c.computed)(()=>r(e.swatches,e.inline,e.transpose));function r(e,t,n){let r=Array.isArray(e)?i(e)?e:e.length>0?[e]:[]:Object.values(e);return t?[r.flat()]:n?d(...r):r}function i(e){return Array.isArray(e)&&e.every(Array.isArray)}return(r,i)=>((0,c.openBlock)(),(0,c.createBlock)((0,c.unref)(l.VItemGroup),{modelValue:t.value,"onUpdate:modelValue":i[0]||=e=>t.value=e,class:(0,c.normalizeClass)([`v-swatches`,{"d-inline":e.inline}]),mandatory:``},{default:(0,c.withCtx)(()=>[e.inline?((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,{key:0},(0,c.renderList)(n.value[0],t=>((0,c.openBlock)(),(0,c.createBlock)((0,c.unref)(l.VItem),{key:t,value:t},{default:(0,c.withCtx)(({isSelected:n,toggle:r})=>[(0,c.createVNode)(f,{border:e.border,color:t,disabled:e.disabled,elevation:e.elevation,"icon-size":e.iconSize,icon:e.icon,"is-selected":n,rounded:e.rounded,size:e.size,"tooltip-location":e.tooltipLocation,tooltip:e.tooltip,variant:e.variant,onClick:r},null,8,[`border`,`color`,`disabled`,`elevation`,`icon-size`,`icon`,`is-selected`,`rounded`,`size`,`tooltip-location`,`tooltip`,`variant`,`onClick`])]),_:2},1032,[`value`]))),128)):((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,{key:1},(0,c.renderList)(n.value,(t,n)=>((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:n},[((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(t,t=>((0,c.openBlock)(),(0,c.createBlock)((0,c.unref)(l.VItem),{key:t,value:t},{default:(0,c.withCtx)(({isSelected:n,toggle:r})=>[(0,c.createVNode)(f,{border:e.border,color:t,disabled:e.disabled,elevation:e.elevation,"icon-size":e.iconSize,icon:e.icon,"is-selected":n,rounded:e.rounded,size:e.size,"tooltip-location":e.tooltipLocation,tooltip:e.tooltip,variant:e.variant,onClick:r},null,8,[`border`,`color`,`disabled`,`elevation`,`icon-size`,`icon`,`is-selected`,`rounded`,`size`,`tooltip-location`,`tooltip`,`variant`,`onClick`])]),_:2},1032,[`value`]))),128))]))),128))]),_:1},8,[`modelValue`,`class`]))}}),[[`__scopeId`,`data-v-4f87df5e`]]),m={version:`2.3.0`,date:`2026-12-04T04:36:23.789Z`},h=e=>e.component(`VSwatches`,p);exports.Meta=m,exports.default=p,exports.install=h;
|
package/dist/index.d.ts
CHANGED