@citizenplane/pimp 17.0.3 → 17.0.4
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.
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { Colors, Sizes } from '../constants';
|
|
2
|
-
type BadgeSizes = Extract<Sizes, '2xs' | 'xs' | 'sm' | 'md'>;
|
|
3
|
-
type BadgeVariants = 'outline' | 'soft' | 'solid';
|
|
4
1
|
interface Props {
|
|
5
|
-
color?:
|
|
2
|
+
color?: 'neutral' | 'accent' | 'error' | 'warning' | 'success' | 'blue' | 'pink' | 'magenta' | 'yellow' | 'white';
|
|
6
3
|
disabled?: boolean;
|
|
7
4
|
isClearable?: boolean;
|
|
8
5
|
isSquare?: boolean;
|
|
9
6
|
label?: string;
|
|
10
7
|
leadingIcon?: string;
|
|
11
|
-
size?:
|
|
8
|
+
size?: '2xs' | 'xs' | 'sm' | 'md';
|
|
12
9
|
trailingIcon?: string;
|
|
13
|
-
variant?:
|
|
10
|
+
variant?: 'outline' | 'soft' | 'solid';
|
|
14
11
|
}
|
|
15
12
|
declare function __VLS_template(): {
|
|
16
13
|
attrs: Partial<{}>;
|
|
@@ -29,9 +26,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
29
26
|
onOnClear?: (() => any) | undefined;
|
|
30
27
|
}>, {
|
|
31
28
|
label: string;
|
|
32
|
-
size:
|
|
33
|
-
variant:
|
|
34
|
-
color:
|
|
29
|
+
size: "2xs" | "xs" | "sm" | "md";
|
|
30
|
+
variant: "outline" | "soft" | "solid";
|
|
31
|
+
color: "neutral" | "accent" | "error" | "warning" | "success" | "blue" | "pink" | "magenta" | "yellow" | "white";
|
|
35
32
|
isClearable: boolean;
|
|
36
33
|
leadingIcon: string;
|
|
37
34
|
trailingIcon: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CpBadge.vue.d.ts","sourceRoot":"","sources":["../../src/components/CpBadge.v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AC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
package/package.json
CHANGED
|
@@ -18,22 +18,18 @@
|
|
|
18
18
|
<script setup lang="ts">
|
|
19
19
|
import { computed, useSlots } from 'vue'
|
|
20
20
|
|
|
21
|
-
import type { Colors, Sizes } from '@/constants'
|
|
22
21
|
import { capitalizeFirstLetter } from '@/helpers'
|
|
23
22
|
|
|
24
|
-
type BadgeSizes = Extract<Sizes, '2xs' | 'xs' | 'sm' | 'md'>
|
|
25
|
-
type BadgeVariants = 'outline' | 'soft' | 'solid'
|
|
26
|
-
|
|
27
23
|
interface Props {
|
|
28
|
-
color?:
|
|
24
|
+
color?: 'neutral' | 'accent' | 'error' | 'warning' | 'success' | 'blue' | 'pink' | 'magenta' | 'yellow' | 'white'
|
|
29
25
|
disabled?: boolean
|
|
30
26
|
isClearable?: boolean
|
|
31
27
|
isSquare?: boolean
|
|
32
28
|
label?: string
|
|
33
29
|
leadingIcon?: string
|
|
34
|
-
size?:
|
|
30
|
+
size?: '2xs' | 'xs' | 'sm' | 'md'
|
|
35
31
|
trailingIcon?: string
|
|
36
|
-
variant?:
|
|
32
|
+
variant?: 'outline' | 'soft' | 'solid'
|
|
37
33
|
}
|
|
38
34
|
|
|
39
35
|
const props = withDefaults(defineProps<Props>(), {
|