@wpic/ui 0.3.16 → 0.4.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/CHANGELOG.md +23 -0
- package/COMPONENTS.md +635 -0
- package/dist/components/WAlert.vue.d.ts +7 -7
- package/dist/components/WBadge.vue.d.ts +12 -3
- package/dist/components/WBanner.vue.d.ts +21 -2
- package/dist/components/WTag.vue.d.ts +22 -4
- package/dist/components/semantic/styles.d.ts +153 -0
- package/dist/index.d.ts +1 -0
- package/dist/wpic-ui.cjs +61 -61
- package/dist/wpic-ui.css +1 -1
- package/dist/wpic-ui.js +3380 -3342
- package/package.json +7 -3
|
@@ -1,13 +1,32 @@
|
|
|
1
1
|
import { Component } from 'vue';
|
|
2
|
+
import { WTheme } from './semantic/styles';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
variant?: 'info' | 'warning' | 'error' | 'success';
|
|
4
5
|
icon?: Component;
|
|
6
|
+
title?: string;
|
|
7
|
+
lead?: string;
|
|
8
|
+
dismissible?: boolean;
|
|
9
|
+
dismissLabel?: string;
|
|
10
|
+
theme?: WTheme;
|
|
5
11
|
};
|
|
6
|
-
declare var __VLS_5: {};
|
|
12
|
+
declare var __VLS_5: {}, __VLS_11: {}, __VLS_13: {};
|
|
7
13
|
type __VLS_Slots = {} & {
|
|
8
14
|
default?: (props: typeof __VLS_5) => any;
|
|
15
|
+
} & {
|
|
16
|
+
default?: (props: typeof __VLS_11) => any;
|
|
17
|
+
} & {
|
|
18
|
+
actions?: (props: typeof __VLS_13) => any;
|
|
9
19
|
};
|
|
10
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
close: () => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
onClose?: (() => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
variant: "info" | "warning" | "error" | "success";
|
|
26
|
+
theme: WTheme;
|
|
27
|
+
dismissible: boolean;
|
|
28
|
+
dismissLabel: string;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
30
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
31
|
export default _default;
|
|
13
32
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,23 +1,41 @@
|
|
|
1
1
|
import { PopoverOption } from './WOptionPopover.vue';
|
|
2
|
+
import { WTheme, WSemanticVariant } from './semantic/styles';
|
|
2
3
|
type __VLS_Props = {
|
|
3
|
-
variant?: 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info' | 'overlay' | 'teal' | 'meta';
|
|
4
|
+
variant?: 'default' | 'neutral' | 'primary' | 'success' | 'warning' | 'error' | 'info' | 'overlay' | 'teal' | 'meta';
|
|
4
5
|
size?: 'sm' | 'md';
|
|
6
|
+
theme?: WTheme;
|
|
7
|
+
/** Controlled selection via v-model:checked. Checkable takes precedence over editable. */
|
|
8
|
+
checkable?: boolean;
|
|
9
|
+
checked?: boolean;
|
|
10
|
+
checkedVariant?: WSemanticVariant;
|
|
11
|
+
uncheckedAppearance?: 'normal' | 'muted';
|
|
12
|
+
disabled?: boolean;
|
|
5
13
|
editable?: boolean;
|
|
6
14
|
modelValue?: string | null;
|
|
7
15
|
options?: PopoverOption[];
|
|
8
16
|
removable?: boolean;
|
|
17
|
+
removeLabel?: string;
|
|
9
18
|
};
|
|
10
|
-
declare var
|
|
19
|
+
declare var __VLS_19: {};
|
|
11
20
|
type __VLS_Slots = {} & {
|
|
12
|
-
default?: (props: typeof
|
|
21
|
+
default?: (props: typeof __VLS_19) => any;
|
|
13
22
|
};
|
|
14
23
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
24
|
"update:modelValue": (value: string) => any;
|
|
25
|
+
"update:checked": (value: boolean) => any;
|
|
16
26
|
remove: () => any;
|
|
17
27
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
28
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
29
|
+
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
19
30
|
onRemove?: (() => any) | undefined;
|
|
20
|
-
}>, {
|
|
31
|
+
}>, {
|
|
32
|
+
variant: "default" | "neutral" | "primary" | "success" | "warning" | "error" | "info" | "overlay" | "teal" | "meta";
|
|
33
|
+
size: "sm" | "md";
|
|
34
|
+
theme: WTheme;
|
|
35
|
+
checkedVariant: WSemanticVariant;
|
|
36
|
+
uncheckedAppearance: "normal" | "muted";
|
|
37
|
+
removeLabel: string;
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
39
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
22
40
|
export default _default;
|
|
23
41
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/** Shared, compiled Tailwind palettes. Explicit themes also support side-by-side previews. */
|
|
2
|
+
export type WTheme = 'auto' | 'light' | 'dark';
|
|
3
|
+
export type WSemanticVariant = 'neutral' | 'info' | 'warning' | 'success' | 'error';
|
|
4
|
+
export type ThemeClasses = Record<WTheme, string>;
|
|
5
|
+
export declare function themed(classes: ThemeClasses, theme?: WTheme): string;
|
|
6
|
+
export declare const bannerStyles: {
|
|
7
|
+
neutral: {
|
|
8
|
+
light: string;
|
|
9
|
+
dark: string;
|
|
10
|
+
auto: string;
|
|
11
|
+
};
|
|
12
|
+
info: {
|
|
13
|
+
light: string;
|
|
14
|
+
dark: string;
|
|
15
|
+
auto: string;
|
|
16
|
+
};
|
|
17
|
+
warning: {
|
|
18
|
+
light: string;
|
|
19
|
+
dark: string;
|
|
20
|
+
auto: string;
|
|
21
|
+
};
|
|
22
|
+
success: {
|
|
23
|
+
light: string;
|
|
24
|
+
dark: string;
|
|
25
|
+
auto: string;
|
|
26
|
+
};
|
|
27
|
+
error: {
|
|
28
|
+
light: string;
|
|
29
|
+
dark: string;
|
|
30
|
+
auto: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const iconStyles: {
|
|
34
|
+
neutral: {
|
|
35
|
+
light: string;
|
|
36
|
+
dark: string;
|
|
37
|
+
auto: string;
|
|
38
|
+
};
|
|
39
|
+
info: {
|
|
40
|
+
light: string;
|
|
41
|
+
dark: string;
|
|
42
|
+
auto: string;
|
|
43
|
+
};
|
|
44
|
+
warning: {
|
|
45
|
+
light: string;
|
|
46
|
+
dark: string;
|
|
47
|
+
auto: string;
|
|
48
|
+
};
|
|
49
|
+
success: {
|
|
50
|
+
light: string;
|
|
51
|
+
dark: string;
|
|
52
|
+
auto: string;
|
|
53
|
+
};
|
|
54
|
+
error: {
|
|
55
|
+
light: string;
|
|
56
|
+
dark: string;
|
|
57
|
+
auto: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare const badgeStyles: {
|
|
61
|
+
neutral: {
|
|
62
|
+
light: string;
|
|
63
|
+
dark: string;
|
|
64
|
+
auto: string;
|
|
65
|
+
};
|
|
66
|
+
info: {
|
|
67
|
+
light: string;
|
|
68
|
+
dark: string;
|
|
69
|
+
auto: string;
|
|
70
|
+
};
|
|
71
|
+
warning: {
|
|
72
|
+
light: string;
|
|
73
|
+
dark: string;
|
|
74
|
+
auto: string;
|
|
75
|
+
};
|
|
76
|
+
success: {
|
|
77
|
+
light: string;
|
|
78
|
+
dark: string;
|
|
79
|
+
auto: string;
|
|
80
|
+
};
|
|
81
|
+
error: {
|
|
82
|
+
light: string;
|
|
83
|
+
dark: string;
|
|
84
|
+
auto: string;
|
|
85
|
+
};
|
|
86
|
+
primary: {
|
|
87
|
+
light: string;
|
|
88
|
+
dark: string;
|
|
89
|
+
auto: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
export declare const tagStyles: {
|
|
93
|
+
neutral: {
|
|
94
|
+
light: string;
|
|
95
|
+
dark: string;
|
|
96
|
+
auto: string;
|
|
97
|
+
};
|
|
98
|
+
info: {
|
|
99
|
+
light: string;
|
|
100
|
+
dark: string;
|
|
101
|
+
auto: string;
|
|
102
|
+
};
|
|
103
|
+
warning: {
|
|
104
|
+
light: string;
|
|
105
|
+
dark: string;
|
|
106
|
+
auto: string;
|
|
107
|
+
};
|
|
108
|
+
success: {
|
|
109
|
+
light: string;
|
|
110
|
+
dark: string;
|
|
111
|
+
auto: string;
|
|
112
|
+
};
|
|
113
|
+
error: {
|
|
114
|
+
light: string;
|
|
115
|
+
dark: string;
|
|
116
|
+
auto: string;
|
|
117
|
+
};
|
|
118
|
+
primary: {
|
|
119
|
+
light: string;
|
|
120
|
+
dark: string;
|
|
121
|
+
auto: string;
|
|
122
|
+
};
|
|
123
|
+
teal: {
|
|
124
|
+
light: string;
|
|
125
|
+
dark: string;
|
|
126
|
+
auto: string;
|
|
127
|
+
};
|
|
128
|
+
overlay: {
|
|
129
|
+
light: string;
|
|
130
|
+
dark: string;
|
|
131
|
+
auto: string;
|
|
132
|
+
};
|
|
133
|
+
meta: {
|
|
134
|
+
light: string;
|
|
135
|
+
dark: string;
|
|
136
|
+
auto: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
export declare const selectedNeutral: {
|
|
140
|
+
light: string;
|
|
141
|
+
dark: string;
|
|
142
|
+
auto: string;
|
|
143
|
+
};
|
|
144
|
+
export declare const mutedTag: {
|
|
145
|
+
light: string;
|
|
146
|
+
dark: string;
|
|
147
|
+
auto: string;
|
|
148
|
+
};
|
|
149
|
+
export declare const close: {
|
|
150
|
+
light: string;
|
|
151
|
+
dark: string;
|
|
152
|
+
auto: string;
|
|
153
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -80,3 +80,4 @@ export { default as WSegmentedControl } from './components/WSegmentedControl.vue
|
|
|
80
80
|
export type { WSegmentedControlOption } from './components/WSegmentedControl.vue';
|
|
81
81
|
export { default as MarketplaceIcon } from './components/icons/MarketplaceIcon.vue';
|
|
82
82
|
export { default as ProviderLogo } from './components/icons/ProviderLogo.vue';
|
|
83
|
+
export type { WTheme, WSemanticVariant } from './components/semantic/styles';
|