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
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { Variant } from 'vuetify/lib/composables/variant.d.ts';
|
|
2
|
-
import { Anchor } from 'vuetify/lib/util/index.d.ts';
|
|
3
|
-
/** Swatches prop type */
|
|
4
|
-
type SwatchesProp = (string | undefined)[] | (string | undefined)[][] | Record<string, (string | undefined)[]> | readonly (string | undefined)[] | readonly (readonly (string | undefined)[])[];
|
|
5
|
-
/** Props */
|
|
6
|
-
type __VLS_Props = {
|
|
7
|
-
/** Model value */
|
|
8
|
-
modelValue?: string;
|
|
9
|
-
/** Swatch colors */
|
|
10
|
-
swatches?: SwatchesProp;
|
|
11
|
-
/** Swatch size */
|
|
12
|
-
size?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Selected icon
|
|
15
|
-
* @see {@link https://vuetifyjs.com/en/components/icons/#usage}
|
|
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;
|
|
59
|
-
};
|
|
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
|
-
declare const _default: typeof __VLS_export;
|
|
81
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* vuetify-swatches
|
|
3
|
-
*
|
|
4
|
-
* @description Color Swatch component for Vuetify3.
|
|
5
|
-
* @author Logue <logue@hotmail.co.jp>
|
|
6
|
-
* @copyright 2022-2026 By Masashi Yoshikawa All rights reserved.
|
|
7
|
-
* @license MIT
|
|
8
|
-
* @version 2.1.1
|
|
9
|
-
* @see {@link https://github.com/logue/vuetify-swatches}
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
.v-swatches .v-btn{margin:.1rem}.v-swatches .v-btn .v-icon{filter:invert()grayscale()contrast(100)}.v-swatches .v-btn.bg-transparent{background:linear-gradient(to top left, transparent 0, transparent calc(50% - .1rem), rgb(var(--v-theme-error)) 50%, transparent calc(50% + .1rem), transparent)}.v-swatches .v-btn.bg-transparent .v-icon{filter:none}
|
|
13
|
-
/*$vite$:1*/
|