@speckle/ui-components 2.15.0 → 2.15.2-alpha1
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/InfiniteLoading.vue.d.ts +14 -16
- package/dist/components/SourceAppBadge.vue.d.ts +5 -6
- package/dist/components/common/Alert.vue.d.ts +23 -20
- package/dist/components/common/Badge.vue.d.ts +28 -34
- package/dist/components/common/loading/Bar.vue.d.ts +5 -6
- package/dist/components/common/steps/Bullet.vue.d.ts +23 -36
- package/dist/components/common/steps/Number.vue.d.ts +21 -32
- package/dist/components/common/text/Link.vue.d.ts +21 -11
- package/dist/components/form/Button.vue.d.ts +13 -4
- package/dist/components/form/CardButton.vue.d.ts +20 -15
- package/dist/components/form/Checkbox.vue.d.ts +10 -8
- package/dist/components/form/TextArea.vue.d.ts +96 -107
- package/dist/components/form/TextInput.vue.d.ts +41 -15
- package/dist/components/form/select/Base.vue.d.ts +48 -15
- package/dist/components/form/select/SourceApps.vue.d.ts +9 -7
- package/dist/components/global/ToastRenderer.vue.d.ts +9 -8
- package/dist/components/layout/Dialog.vue.d.ts +24 -21
- package/dist/components/layout/Disclosure.vue.d.ts +20 -18
- package/dist/components/layout/GridListToggle.vue.d.ts +11 -11
- package/dist/components/layout/Menu.vue.d.ts +32 -13
- package/dist/components/layout/Panel.vue.d.ts +15 -4
- package/dist/components/layout/Tabs.vue.d.ts +14 -6
- package/dist/composables/common/async.d.ts +28 -0
- package/dist/helpers/common/components.d.ts +2 -0
- package/dist/helpers/layout/components.d.ts +1 -0
- package/dist/helpers/testing.d.ts +1 -0
- package/dist/lib-utils.d.ts +9 -0
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.ts +3 -2
- package/dist/lib.js +1024 -992
- package/dist/main.d.ts +0 -0
- package/dist/stories/composables/toast.d.ts +23 -0
- package/dist/stories/helpers/storybook.d.ts +10 -0
- package/package.json +18 -18
- package/vite.config.ts +7 -2
|
@@ -1,35 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const
|
|
1
|
+
import { InfiniteLoaderState } from '../helpers/global/components';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
settings: {
|
|
4
|
-
type:
|
|
4
|
+
type: import("vue").PropType<{
|
|
5
5
|
target?: string | undefined;
|
|
6
6
|
distance?: number | undefined;
|
|
7
7
|
top?: boolean | undefined;
|
|
8
8
|
identifier?: any;
|
|
9
9
|
firstload?: boolean | undefined;
|
|
10
|
-
}
|
|
11
|
-
required: false;
|
|
10
|
+
}>;
|
|
12
11
|
};
|
|
13
12
|
allowRetry: {
|
|
14
|
-
type:
|
|
15
|
-
required: false;
|
|
13
|
+
type: import("vue").PropType<boolean>;
|
|
16
14
|
};
|
|
17
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
15
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
infinite: ($state: InfiniteLoaderState) => void;
|
|
17
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
18
|
settings: {
|
|
19
|
-
type:
|
|
19
|
+
type: import("vue").PropType<{
|
|
20
20
|
target?: string | undefined;
|
|
21
21
|
distance?: number | undefined;
|
|
22
22
|
top?: boolean | undefined;
|
|
23
23
|
identifier?: any;
|
|
24
24
|
firstload?: boolean | undefined;
|
|
25
|
-
}
|
|
26
|
-
required: false;
|
|
25
|
+
}>;
|
|
27
26
|
};
|
|
28
27
|
allowRetry: {
|
|
29
|
-
type:
|
|
30
|
-
required: false;
|
|
28
|
+
type: import("vue").PropType<boolean>;
|
|
31
29
|
};
|
|
32
30
|
}>> & {
|
|
33
|
-
onInfinite?: ((
|
|
34
|
-
}, {}>;
|
|
35
|
-
export default
|
|
31
|
+
onInfinite?: (($state: InfiniteLoaderState) => any) | undefined;
|
|
32
|
+
}, {}, {}>;
|
|
33
|
+
export default _default;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
1
|
import { SourceAppDefinition } from '@speckle/shared';
|
|
3
|
-
declare const
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
3
|
sourceApp: {
|
|
5
|
-
type:
|
|
4
|
+
type: import("vue").PropType<SourceAppDefinition>;
|
|
6
5
|
required: true;
|
|
7
6
|
};
|
|
8
7
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
8
|
sourceApp: {
|
|
10
|
-
type:
|
|
9
|
+
type: import("vue").PropType<SourceAppDefinition>;
|
|
11
10
|
required: true;
|
|
12
11
|
};
|
|
13
|
-
}>>, {}>;
|
|
14
|
-
export default
|
|
12
|
+
}>>, {}, {}>;
|
|
13
|
+
export default _default;
|
|
@@ -1,46 +1,49 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
1
|
type AlertColor = 'success' | 'danger' | 'warning' | 'info';
|
|
3
|
-
declare const
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
3
|
color: {
|
|
5
|
-
type:
|
|
6
|
-
required: false;
|
|
4
|
+
type: import("vue").PropType<AlertColor>;
|
|
7
5
|
default: string;
|
|
8
6
|
};
|
|
9
7
|
withDismiss: {
|
|
10
|
-
type:
|
|
11
|
-
required: false;
|
|
8
|
+
type: import("vue").PropType<boolean>;
|
|
12
9
|
};
|
|
13
10
|
actions: {
|
|
14
|
-
type:
|
|
11
|
+
type: import("vue").PropType<{
|
|
15
12
|
title: string;
|
|
16
13
|
url?: string | undefined;
|
|
17
14
|
onClick?: (() => void) | undefined;
|
|
18
15
|
externalUrl?: boolean | undefined;
|
|
19
|
-
}[]
|
|
20
|
-
required: false;
|
|
16
|
+
}[]>;
|
|
21
17
|
};
|
|
22
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
18
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
dismiss: () => void;
|
|
20
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
21
|
color: {
|
|
24
|
-
type:
|
|
25
|
-
required: false;
|
|
22
|
+
type: import("vue").PropType<AlertColor>;
|
|
26
23
|
default: string;
|
|
27
24
|
};
|
|
28
25
|
withDismiss: {
|
|
29
|
-
type:
|
|
30
|
-
required: false;
|
|
26
|
+
type: import("vue").PropType<boolean>;
|
|
31
27
|
};
|
|
32
28
|
actions: {
|
|
33
|
-
type:
|
|
29
|
+
type: import("vue").PropType<{
|
|
34
30
|
title: string;
|
|
35
31
|
url?: string | undefined;
|
|
36
32
|
onClick?: (() => void) | undefined;
|
|
37
33
|
externalUrl?: boolean | undefined;
|
|
38
|
-
}[]
|
|
39
|
-
required: false;
|
|
34
|
+
}[]>;
|
|
40
35
|
};
|
|
41
36
|
}>> & {
|
|
42
|
-
onDismiss?: ((
|
|
37
|
+
onDismiss?: (() => any) | undefined;
|
|
43
38
|
}, {
|
|
44
|
-
color: AlertColor
|
|
39
|
+
color: AlertColor;
|
|
40
|
+
}, {}>, {
|
|
41
|
+
title?(_: {}): any;
|
|
42
|
+
description?(_: {}): any;
|
|
45
43
|
}>;
|
|
46
|
-
export default
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -1,65 +1,59 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
1
|
import { ConcreteComponent } from 'vue';
|
|
3
2
|
type BadgeSize = 'base' | 'lg';
|
|
4
|
-
declare const
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
4
|
size: {
|
|
6
|
-
type:
|
|
7
|
-
required: false;
|
|
5
|
+
type: import("vue").PropType<BadgeSize>;
|
|
8
6
|
};
|
|
9
7
|
colorClasses: {
|
|
10
|
-
type:
|
|
11
|
-
required: false;
|
|
8
|
+
type: import("vue").PropType<string>;
|
|
12
9
|
};
|
|
13
10
|
dot: {
|
|
14
|
-
type:
|
|
15
|
-
required: false;
|
|
11
|
+
type: import("vue").PropType<boolean>;
|
|
16
12
|
};
|
|
17
13
|
dotIconColorClasses: {
|
|
18
|
-
type:
|
|
19
|
-
required: false;
|
|
14
|
+
type: import("vue").PropType<string>;
|
|
20
15
|
};
|
|
21
16
|
iconLeft: {
|
|
22
|
-
type:
|
|
23
|
-
required: false;
|
|
17
|
+
type: import("vue").PropType<ConcreteComponent>;
|
|
24
18
|
};
|
|
25
19
|
rounded: {
|
|
26
|
-
type:
|
|
27
|
-
required: false;
|
|
20
|
+
type: import("vue").PropType<boolean>;
|
|
28
21
|
};
|
|
29
22
|
clickableIcon: {
|
|
30
|
-
type:
|
|
31
|
-
required: false;
|
|
23
|
+
type: import("vue").PropType<boolean>;
|
|
32
24
|
};
|
|
33
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
25
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
"click-icon": (v: MouseEvent) => void;
|
|
27
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
28
|
size: {
|
|
35
|
-
type:
|
|
36
|
-
required: false;
|
|
29
|
+
type: import("vue").PropType<BadgeSize>;
|
|
37
30
|
};
|
|
38
31
|
colorClasses: {
|
|
39
|
-
type:
|
|
40
|
-
required: false;
|
|
32
|
+
type: import("vue").PropType<string>;
|
|
41
33
|
};
|
|
42
34
|
dot: {
|
|
43
|
-
type:
|
|
44
|
-
required: false;
|
|
35
|
+
type: import("vue").PropType<boolean>;
|
|
45
36
|
};
|
|
46
37
|
dotIconColorClasses: {
|
|
47
|
-
type:
|
|
48
|
-
required: false;
|
|
38
|
+
type: import("vue").PropType<string>;
|
|
49
39
|
};
|
|
50
40
|
iconLeft: {
|
|
51
|
-
type:
|
|
52
|
-
required: false;
|
|
41
|
+
type: import("vue").PropType<ConcreteComponent>;
|
|
53
42
|
};
|
|
54
43
|
rounded: {
|
|
55
|
-
type:
|
|
56
|
-
required: false;
|
|
44
|
+
type: import("vue").PropType<boolean>;
|
|
57
45
|
};
|
|
58
46
|
clickableIcon: {
|
|
59
|
-
type:
|
|
60
|
-
required: false;
|
|
47
|
+
type: import("vue").PropType<boolean>;
|
|
61
48
|
};
|
|
62
49
|
}>> & {
|
|
63
|
-
"onClick-icon"?: ((
|
|
64
|
-
}, {}
|
|
65
|
-
|
|
50
|
+
"onClick-icon"?: ((v: MouseEvent) => any) | undefined;
|
|
51
|
+
}, {}, {}>, {
|
|
52
|
+
default?(_: {}): any;
|
|
53
|
+
}>;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
2
|
loading: {
|
|
4
|
-
type:
|
|
3
|
+
type: import("vue").PropType<boolean>;
|
|
5
4
|
required: true;
|
|
6
5
|
};
|
|
7
6
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
7
|
loading: {
|
|
9
|
-
type:
|
|
8
|
+
type: import("vue").PropType<boolean>;
|
|
10
9
|
required: true;
|
|
11
10
|
};
|
|
12
|
-
}>>, {}>;
|
|
13
|
-
export default
|
|
11
|
+
}>>, {}, {}>;
|
|
12
|
+
export default _default;
|
|
@@ -1,74 +1,61 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
1
|
import { StepsPadding } from '../../../composables/common/steps';
|
|
3
2
|
import { BulletStepType, HorizontalOrVertical } from '../../../helpers/common/components';
|
|
4
3
|
import { TailwindBreakpoints } from '../../../helpers/tailwind';
|
|
5
|
-
declare const
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
5
|
ariaLabel: {
|
|
7
|
-
type:
|
|
8
|
-
required: false;
|
|
6
|
+
type: import("vue").PropType<string>;
|
|
9
7
|
};
|
|
10
8
|
basic: {
|
|
11
|
-
type:
|
|
12
|
-
required: false;
|
|
9
|
+
type: import("vue").PropType<boolean>;
|
|
13
10
|
};
|
|
14
11
|
orientation: {
|
|
15
|
-
type:
|
|
16
|
-
required: false;
|
|
12
|
+
type: import("vue").PropType<HorizontalOrVertical>;
|
|
17
13
|
};
|
|
18
14
|
steps: {
|
|
19
|
-
type:
|
|
15
|
+
type: import("vue").PropType<BulletStepType[]>;
|
|
20
16
|
required: true;
|
|
21
17
|
};
|
|
22
18
|
modelValue: {
|
|
23
|
-
type:
|
|
24
|
-
required: false;
|
|
19
|
+
type: import("vue").PropType<number>;
|
|
25
20
|
};
|
|
26
21
|
goVerticalBelow: {
|
|
27
|
-
type:
|
|
28
|
-
required: false;
|
|
22
|
+
type: import("vue").PropType<TailwindBreakpoints>;
|
|
29
23
|
};
|
|
30
24
|
nonInteractive: {
|
|
31
|
-
type:
|
|
32
|
-
required: false;
|
|
25
|
+
type: import("vue").PropType<boolean>;
|
|
33
26
|
};
|
|
34
27
|
stepsPadding: {
|
|
35
|
-
type:
|
|
36
|
-
required: false;
|
|
28
|
+
type: import("vue").PropType<StepsPadding>;
|
|
37
29
|
};
|
|
38
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
30
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
"update:modelValue": (val: number) => void;
|
|
32
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
33
|
ariaLabel: {
|
|
40
|
-
type:
|
|
41
|
-
required: false;
|
|
34
|
+
type: import("vue").PropType<string>;
|
|
42
35
|
};
|
|
43
36
|
basic: {
|
|
44
|
-
type:
|
|
45
|
-
required: false;
|
|
37
|
+
type: import("vue").PropType<boolean>;
|
|
46
38
|
};
|
|
47
39
|
orientation: {
|
|
48
|
-
type:
|
|
49
|
-
required: false;
|
|
40
|
+
type: import("vue").PropType<HorizontalOrVertical>;
|
|
50
41
|
};
|
|
51
42
|
steps: {
|
|
52
|
-
type:
|
|
43
|
+
type: import("vue").PropType<BulletStepType[]>;
|
|
53
44
|
required: true;
|
|
54
45
|
};
|
|
55
46
|
modelValue: {
|
|
56
|
-
type:
|
|
57
|
-
required: false;
|
|
47
|
+
type: import("vue").PropType<number>;
|
|
58
48
|
};
|
|
59
49
|
goVerticalBelow: {
|
|
60
|
-
type:
|
|
61
|
-
required: false;
|
|
50
|
+
type: import("vue").PropType<TailwindBreakpoints>;
|
|
62
51
|
};
|
|
63
52
|
nonInteractive: {
|
|
64
|
-
type:
|
|
65
|
-
required: false;
|
|
53
|
+
type: import("vue").PropType<boolean>;
|
|
66
54
|
};
|
|
67
55
|
stepsPadding: {
|
|
68
|
-
type:
|
|
69
|
-
required: false;
|
|
56
|
+
type: import("vue").PropType<StepsPadding>;
|
|
70
57
|
};
|
|
71
58
|
}>> & {
|
|
72
|
-
"onUpdate:modelValue"?: ((
|
|
73
|
-
}, {}>;
|
|
74
|
-
export default
|
|
59
|
+
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
60
|
+
}, {}, {}>;
|
|
61
|
+
export default _default;
|
|
@@ -1,66 +1,55 @@
|
|
|
1
|
-
import type { PropType as __PropType } from 'vue';
|
|
2
1
|
import { StepsPadding } from '../../../composables/common/steps';
|
|
3
2
|
import { HorizontalOrVertical, NumberStepType } from '../../../helpers/common/components';
|
|
4
3
|
import { TailwindBreakpoints } from '../../../helpers/tailwind';
|
|
5
|
-
declare const
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
5
|
ariaLabel: {
|
|
7
|
-
type:
|
|
8
|
-
required: false;
|
|
6
|
+
type: import("vue").PropType<string>;
|
|
9
7
|
};
|
|
10
8
|
orientation: {
|
|
11
|
-
type:
|
|
12
|
-
required: false;
|
|
9
|
+
type: import("vue").PropType<HorizontalOrVertical>;
|
|
13
10
|
};
|
|
14
11
|
steps: {
|
|
15
|
-
type:
|
|
12
|
+
type: import("vue").PropType<NumberStepType[]>;
|
|
16
13
|
required: true;
|
|
17
14
|
};
|
|
18
15
|
modelValue: {
|
|
19
|
-
type:
|
|
20
|
-
required: false;
|
|
16
|
+
type: import("vue").PropType<number>;
|
|
21
17
|
};
|
|
22
18
|
goVerticalBelow: {
|
|
23
|
-
type:
|
|
24
|
-
required: false;
|
|
19
|
+
type: import("vue").PropType<TailwindBreakpoints>;
|
|
25
20
|
};
|
|
26
21
|
nonInteractive: {
|
|
27
|
-
type:
|
|
28
|
-
required: false;
|
|
22
|
+
type: import("vue").PropType<boolean>;
|
|
29
23
|
};
|
|
30
24
|
stepsPadding: {
|
|
31
|
-
type:
|
|
32
|
-
required: false;
|
|
25
|
+
type: import("vue").PropType<StepsPadding>;
|
|
33
26
|
};
|
|
34
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
27
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
"update:modelValue": (val: number) => void;
|
|
29
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
30
|
ariaLabel: {
|
|
36
|
-
type:
|
|
37
|
-
required: false;
|
|
31
|
+
type: import("vue").PropType<string>;
|
|
38
32
|
};
|
|
39
33
|
orientation: {
|
|
40
|
-
type:
|
|
41
|
-
required: false;
|
|
34
|
+
type: import("vue").PropType<HorizontalOrVertical>;
|
|
42
35
|
};
|
|
43
36
|
steps: {
|
|
44
|
-
type:
|
|
37
|
+
type: import("vue").PropType<NumberStepType[]>;
|
|
45
38
|
required: true;
|
|
46
39
|
};
|
|
47
40
|
modelValue: {
|
|
48
|
-
type:
|
|
49
|
-
required: false;
|
|
41
|
+
type: import("vue").PropType<number>;
|
|
50
42
|
};
|
|
51
43
|
goVerticalBelow: {
|
|
52
|
-
type:
|
|
53
|
-
required: false;
|
|
44
|
+
type: import("vue").PropType<TailwindBreakpoints>;
|
|
54
45
|
};
|
|
55
46
|
nonInteractive: {
|
|
56
|
-
type:
|
|
57
|
-
required: false;
|
|
47
|
+
type: import("vue").PropType<boolean>;
|
|
58
48
|
};
|
|
59
49
|
stepsPadding: {
|
|
60
|
-
type:
|
|
61
|
-
required: false;
|
|
50
|
+
type: import("vue").PropType<StepsPadding>;
|
|
62
51
|
};
|
|
63
52
|
}>> & {
|
|
64
|
-
"onUpdate:modelValue"?: ((
|
|
65
|
-
}, {}>;
|
|
66
|
-
export default
|
|
53
|
+
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
54
|
+
}, {}, {}>;
|
|
55
|
+
export default _default;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
import { Nullable, Optional } from '@speckle/shared';
|
|
3
|
+
import { PropComponentType } from '../../../helpers/common/components';
|
|
3
4
|
type LinkSize = 'xs' | 'sm' | 'base' | 'lg' | 'xl';
|
|
4
|
-
declare const
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
6
|
to: {
|
|
6
7
|
type: PropType<Optional<string>>;
|
|
7
8
|
required: false;
|
|
@@ -29,14 +30,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
29
30
|
* Add icon to the left from the text
|
|
30
31
|
*/
|
|
31
32
|
iconLeft: {
|
|
32
|
-
type: PropType<Nullable<
|
|
33
|
+
type: PropType<Nullable<PropComponentType>>;
|
|
33
34
|
default: null;
|
|
34
35
|
};
|
|
35
36
|
/**
|
|
36
37
|
* Add icon to the right from the text
|
|
37
38
|
*/
|
|
38
39
|
iconRight: {
|
|
39
|
-
type: PropType<Nullable<
|
|
40
|
+
type: PropType<Nullable<PropComponentType>>;
|
|
40
41
|
default: null;
|
|
41
42
|
};
|
|
42
43
|
/**
|
|
@@ -46,7 +47,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
46
47
|
type: BooleanConstructor;
|
|
47
48
|
default: boolean;
|
|
48
49
|
};
|
|
49
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
50
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
click: (val: MouseEvent) => void;
|
|
52
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
53
|
to: {
|
|
51
54
|
type: PropType<Optional<string>>;
|
|
52
55
|
required: false;
|
|
@@ -74,14 +77,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
74
77
|
* Add icon to the left from the text
|
|
75
78
|
*/
|
|
76
79
|
iconLeft: {
|
|
77
|
-
type: PropType<Nullable<
|
|
80
|
+
type: PropType<Nullable<PropComponentType>>;
|
|
78
81
|
default: null;
|
|
79
82
|
};
|
|
80
83
|
/**
|
|
81
84
|
* Add icon to the right from the text
|
|
82
85
|
*/
|
|
83
86
|
iconRight: {
|
|
84
|
-
type: PropType<Nullable<
|
|
87
|
+
type: PropType<Nullable<PropComponentType>>;
|
|
85
88
|
default: null;
|
|
86
89
|
};
|
|
87
90
|
/**
|
|
@@ -92,15 +95,22 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
92
95
|
default: boolean;
|
|
93
96
|
};
|
|
94
97
|
}>> & {
|
|
95
|
-
onClick?: ((
|
|
98
|
+
onClick?: ((val: MouseEvent) => any) | undefined;
|
|
96
99
|
}, {
|
|
97
100
|
to: Optional<string>;
|
|
98
101
|
size: LinkSize;
|
|
99
102
|
external: Optional<boolean>;
|
|
100
103
|
disabled: Optional<boolean>;
|
|
101
|
-
iconLeft: Nullable<
|
|
102
|
-
iconRight: Nullable<
|
|
104
|
+
iconLeft: Nullable<PropComponentType>;
|
|
105
|
+
iconRight: Nullable<PropComponentType>;
|
|
103
106
|
hideText: boolean;
|
|
104
107
|
foregroundLink: boolean;
|
|
108
|
+
}, {}>, {
|
|
109
|
+
default?(_: {}): any;
|
|
105
110
|
}>;
|
|
106
|
-
export default
|
|
111
|
+
export default _default;
|
|
112
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
113
|
+
new (): {
|
|
114
|
+
$slots: S;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
@@ -2,7 +2,7 @@ import { ConcreteComponent, PropType } from 'vue';
|
|
|
2
2
|
import { Nullable, Optional } from '@speckle/shared';
|
|
3
3
|
type FormButtonSize = 'xs' | 'sm' | 'base' | 'lg' | 'xl';
|
|
4
4
|
type FormButtonColor = 'default' | 'invert' | 'danger' | 'warning' | 'success' | 'card' | 'secondary' | 'info';
|
|
5
|
-
declare const
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
6
6
|
/**
|
|
7
7
|
* URL to which to navigate - can be a relative (app) path or an absolute link for an external URL
|
|
8
8
|
*/
|
|
@@ -125,7 +125,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
125
125
|
type: BooleanConstructor;
|
|
126
126
|
default: boolean;
|
|
127
127
|
};
|
|
128
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
128
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
129
|
+
click: (val: MouseEvent) => void;
|
|
130
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
129
131
|
/**
|
|
130
132
|
* URL to which to navigate - can be a relative (app) path or an absolute link for an external URL
|
|
131
133
|
*/
|
|
@@ -249,7 +251,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
249
251
|
default: boolean;
|
|
250
252
|
};
|
|
251
253
|
}>> & {
|
|
252
|
-
onClick?: ((
|
|
254
|
+
onClick?: ((val: MouseEvent) => any) | undefined;
|
|
253
255
|
}, {
|
|
254
256
|
to: Optional<string>;
|
|
255
257
|
size: FormButtonSize;
|
|
@@ -267,5 +269,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
267
269
|
hideText: boolean;
|
|
268
270
|
linkComponent: Nullable<ConcreteComponent>;
|
|
269
271
|
loading: boolean;
|
|
272
|
+
}, {}>, {
|
|
273
|
+
default?(_: {}): any;
|
|
270
274
|
}>;
|
|
271
|
-
export default
|
|
275
|
+
export default _default;
|
|
276
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
277
|
+
new (): {
|
|
278
|
+
$slots: S;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _sfc_main: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
2
|
disabled: {
|
|
4
|
-
type:
|
|
5
|
-
required: false;
|
|
3
|
+
type: import("vue").PropType<boolean>;
|
|
6
4
|
};
|
|
7
5
|
modelValue: {
|
|
8
|
-
type:
|
|
9
|
-
required: false;
|
|
6
|
+
type: import("vue").PropType<boolean>;
|
|
10
7
|
};
|
|
11
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
8
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (v: boolean) => void;
|
|
10
|
+
click: (v: MouseEvent) => void;
|
|
11
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
12
|
disabled: {
|
|
13
|
-
type:
|
|
14
|
-
required: false;
|
|
13
|
+
type: import("vue").PropType<boolean>;
|
|
15
14
|
};
|
|
16
15
|
modelValue: {
|
|
17
|
-
type:
|
|
18
|
-
required: false;
|
|
16
|
+
type: import("vue").PropType<boolean>;
|
|
19
17
|
};
|
|
20
18
|
}>> & {
|
|
21
|
-
onClick?: ((
|
|
22
|
-
"onUpdate:modelValue"?: ((
|
|
23
|
-
}, {}
|
|
24
|
-
|
|
19
|
+
onClick?: ((v: MouseEvent) => any) | undefined;
|
|
20
|
+
"onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
|
|
21
|
+
}, {}, {}>, {
|
|
22
|
+
default?(_: {}): any;
|
|
23
|
+
}>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|