@speckle/ui-components 2.18.4 → 2.18.6
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/dist/components/common/text/Link.vue.d.ts +9 -0
- package/dist/components/form/Button.vue.d.ts +16 -1
- package/dist/components/layout/Table.vue.d.ts +10 -2
- package/dist/helpers/form/button.d.ts +2 -0
- package/dist/helpers/global/toast.d.ts +5 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.js +1439 -1397
- package/dist/lib.js.map +1 -1
- package/dist/stories/composables/toast.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/postcss.config.js +2 -2
|
@@ -47,6 +47,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
47
47
|
type: BooleanConstructor;
|
|
48
48
|
default: boolean;
|
|
49
49
|
};
|
|
50
|
+
noUnderline: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
50
54
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
55
|
click: (val: MouseEvent) => void;
|
|
52
56
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -94,6 +98,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
94
98
|
type: BooleanConstructor;
|
|
95
99
|
default: boolean;
|
|
96
100
|
};
|
|
101
|
+
noUnderline: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
97
105
|
}>> & {
|
|
98
106
|
onClick?: ((val: MouseEvent) => any) | undefined;
|
|
99
107
|
}, {
|
|
@@ -105,6 +113,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
105
113
|
iconRight: Nullable<PropAnyComponent>;
|
|
106
114
|
hideText: boolean;
|
|
107
115
|
foregroundLink: boolean;
|
|
116
|
+
noUnderline: boolean;
|
|
108
117
|
}, {}>, {
|
|
109
118
|
default?(_: {}): any;
|
|
110
119
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import type { PropAnyComponent } from '../../helpers/common/components';
|
|
3
3
|
import type { Nullable, Optional } from '@speckle/shared';
|
|
4
|
+
import type { FormButtonColor, FormButtonTextColor } from '../../helpers/form/button';
|
|
4
5
|
type FormButtonSize = 'xs' | 'sm' | 'base' | 'lg' | 'xl';
|
|
5
|
-
type FormButtonColor = 'default' | 'invert' | 'danger' | 'warning' | 'success' | 'card' | 'secondary' | 'info';
|
|
6
6
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
7
7
|
/**
|
|
8
8
|
* URL to which to navigate - can be a relative (app) path or an absolute link for an external URL
|
|
@@ -65,6 +65,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
65
65
|
type: PropType<FormButtonColor>;
|
|
66
66
|
default: string;
|
|
67
67
|
};
|
|
68
|
+
/**
|
|
69
|
+
* Text color, only used when color=secondary
|
|
70
|
+
*/
|
|
71
|
+
textColor: {
|
|
72
|
+
type: PropType<FormButtonTextColor>;
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
68
75
|
/**
|
|
69
76
|
* Whether the target location should be forcefully treated as an external URL
|
|
70
77
|
* (for relative paths this will likely cause a redirect)
|
|
@@ -190,6 +197,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
190
197
|
type: PropType<FormButtonColor>;
|
|
191
198
|
default: string;
|
|
192
199
|
};
|
|
200
|
+
/**
|
|
201
|
+
* Text color, only used when color=secondary
|
|
202
|
+
*/
|
|
203
|
+
textColor: {
|
|
204
|
+
type: PropType<FormButtonTextColor>;
|
|
205
|
+
default: string;
|
|
206
|
+
};
|
|
193
207
|
/**
|
|
194
208
|
* Whether the target location should be forcefully treated as an external URL
|
|
195
209
|
* (for relative paths this will likely cause a redirect)
|
|
@@ -262,6 +276,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
262
276
|
text: boolean;
|
|
263
277
|
link: boolean;
|
|
264
278
|
color: FormButtonColor;
|
|
279
|
+
textColor: FormButtonTextColor;
|
|
265
280
|
external: Optional<boolean>;
|
|
266
281
|
disabled: Optional<boolean>;
|
|
267
282
|
submit: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PropAnyComponent } from '../../helpers/common/components';
|
|
2
|
+
import type { FormButtonTextColor } from '../../helpers/form/button';
|
|
2
3
|
export type TableColumn<I> = {
|
|
3
4
|
id: I;
|
|
4
5
|
header: string;
|
|
@@ -7,8 +8,9 @@ export type TableColumn<I> = {
|
|
|
7
8
|
export interface RowButton<T = unknown> {
|
|
8
9
|
icon: PropAnyComponent;
|
|
9
10
|
label: string;
|
|
10
|
-
action: (item: T) => void;
|
|
11
|
-
class
|
|
11
|
+
action: (item: T) => void | string;
|
|
12
|
+
class?: string;
|
|
13
|
+
textColor?: FormButtonTextColor;
|
|
12
14
|
}
|
|
13
15
|
declare const _default: <T extends {
|
|
14
16
|
id: string;
|
|
@@ -18,6 +20,7 @@ declare const _default: <T extends {
|
|
|
18
20
|
columns: TableColumn<C>[];
|
|
19
21
|
overflowCells?: boolean | undefined;
|
|
20
22
|
onRowClick?: ((item: T) => void) | undefined;
|
|
23
|
+
rowItemsAlign?: "center" | "stretch" | undefined;
|
|
21
24
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
22
25
|
attrs: any;
|
|
23
26
|
slots: Partial<Record<NonNullable<C>, (_: {
|
|
@@ -31,6 +34,7 @@ declare const _default: <T extends {
|
|
|
31
34
|
columns: TableColumn<C>[];
|
|
32
35
|
overflowCells?: boolean | undefined;
|
|
33
36
|
onRowClick?: ((item: T) => void) | undefined;
|
|
37
|
+
rowItemsAlign?: "center" | "stretch" | undefined;
|
|
34
38
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
35
39
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
36
40
|
attrs: any;
|
|
@@ -48,6 +52,7 @@ declare const _default: <T extends {
|
|
|
48
52
|
columns: TableColumn<C>[];
|
|
49
53
|
overflowCells?: boolean | undefined;
|
|
50
54
|
onRowClick?: ((item: T) => void) | undefined;
|
|
55
|
+
rowItemsAlign?: "center" | "stretch" | undefined;
|
|
51
56
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
52
57
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
53
58
|
attrs: any;
|
|
@@ -58,3 +63,6 @@ declare const _default: <T extends {
|
|
|
58
63
|
} | undefined;
|
|
59
64
|
};
|
|
60
65
|
export default _default;
|
|
66
|
+
type __VLS_Prettify<T> = {
|
|
67
|
+
[K in keyof T]: T[K];
|
|
68
|
+
} & {};
|