@speckle/ui-components 2.19.6 → 2.20.2

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,294 +1,157 @@
1
- import type { PropType } from 'vue';
2
1
  import type { PropAnyComponent } from '../../helpers/common/components';
3
- import type { Nullable, Optional } from '@speckle/shared';
4
- import type { FormButtonColor, FormButtonTextColor } from '../../helpers/form/button';
5
- type FormButtonSize = 'xs' | 'sm' | 'base' | 'lg' | 'xl';
6
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ import type { Nullable } from '@speckle/shared';
3
+ import type { FormButtonStyle, FormButtonSize } from '../../helpers/form/button';
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
7
5
  /**
8
6
  * URL to which to navigate - can be a relative (app) path or an absolute link for an external URL
9
7
  */
10
- to: {
11
- type: PropType<Optional<string>>;
12
- required: false;
13
- default: undefined;
14
- };
8
+ to?: string | undefined;
15
9
  /**
16
- * Choose from one of many button sizes
10
+ * Choose from one of 3 button sizes
17
11
  */
18
- size: {
19
- type: PropType<FormButtonSize>;
20
- default: string;
21
- };
12
+ size?: FormButtonSize | undefined;
22
13
  /**
23
14
  * If set, will make the button take up all available space horizontally
24
15
  */
25
- fullWidth: {
26
- type: BooleanConstructor;
27
- default: boolean;
28
- };
29
- /**
30
- * Will outline the button.
31
- */
32
- outlined: {
33
- type: BooleanConstructor;
34
- default: boolean;
35
- };
36
- /**
37
- * Will apply a rounded class.
38
- */
39
- rounded: {
40
- type: BooleanConstructor;
41
- default: boolean;
42
- };
16
+ fullWidth?: boolean | undefined;
43
17
  /**
44
18
  * Similar to "link", but without an underline and possibly in different colors
45
19
  */
46
- text: {
47
- type: BooleanConstructor;
48
- default: boolean;
49
- };
20
+ text?: boolean | undefined;
50
21
  /**
51
22
  * Will remove paddings and background. Use for links.
52
23
  */
53
- link: {
54
- type: BooleanConstructor;
55
- default: boolean;
56
- };
24
+ link?: boolean | undefined;
57
25
  /**
58
- * Colors:
59
- * default: the default primary blue.
60
- * invert: for when you want to use this button on a primary background.
61
- * danger: for dangerous actions (e.g. deletions).
62
- * warning: for less dangerous actions (e.g. archival).
26
+ * color:
27
+ * primary: the default primary blue.
28
+ * outline: foundation background and outline
29
+ * subtle: no styling
63
30
  */
64
- color: {
65
- type: PropType<FormButtonColor>;
66
- default: string;
67
- };
31
+ color?: FormButtonStyle | undefined;
68
32
  /**
69
- * Text color, only used when color=secondary
33
+ * Should rounded-full be added?:
70
34
  */
71
- textColor: {
72
- type: PropType<FormButtonTextColor>;
73
- default: string;
74
- };
35
+ rounded?: boolean | undefined;
75
36
  /**
76
37
  * Whether the target location should be forcefully treated as an external URL
77
38
  * (for relative paths this will likely cause a redirect)
78
39
  */
79
- external: {
80
- type: PropType<Optional<boolean>>;
81
- required: false;
82
- default: undefined;
83
- };
40
+ external?: boolean | undefined;
84
41
  /**
85
42
  * Whether to disable the button so that it can't be pressed
86
43
  */
87
- disabled: {
88
- type: PropType<Optional<boolean>>;
89
- required: false;
90
- default: undefined;
91
- };
44
+ disabled?: boolean | undefined;
92
45
  /**
93
46
  * If set, will have type set to "submit" to enable it to submit any parent forms
94
47
  */
95
- submit: {
96
- type: BooleanConstructor;
97
- default: boolean;
98
- };
48
+ submit?: boolean | undefined;
99
49
  /**
100
50
  * Add icon to the left from the text
101
51
  */
102
- iconLeft: {
103
- type: PropType<Nullable<PropAnyComponent>>;
104
- default: null;
105
- };
52
+ iconLeft?: Nullable<PropAnyComponent> | undefined;
106
53
  /**
107
54
  * Add icon to the right from the text
108
55
  */
109
- iconRight: {
110
- type: PropType<Nullable<PropAnyComponent>>;
111
- default: null;
112
- };
56
+ iconRight?: Nullable<PropAnyComponent> | undefined;
113
57
  /**
114
58
  * Hide default slot (when you want to show icons only)
115
59
  */
116
- hideText: {
117
- type: BooleanConstructor;
118
- default: boolean;
119
- };
60
+ hideText?: boolean | undefined;
120
61
  /**
121
62
  * Customize component to be used when rendering links.
122
63
  *
123
64
  * The component will try to dynamically resolve NuxtLink and RouterLink and use those, if this is set to null.
124
65
  */
125
- linkComponent: {
126
- type: PropType<Nullable<PropAnyComponent>>;
127
- default: null;
128
- };
66
+ linkComponent?: Nullable<PropAnyComponent> | undefined;
129
67
  /**
130
68
  * Disables the button and shows a spinning loader
131
69
  */
132
- loading: {
133
- type: BooleanConstructor;
134
- default: boolean;
135
- };
136
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
+ loading?: boolean | undefined;
71
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
137
72
  click: (val: MouseEvent) => void;
138
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
73
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
139
74
  /**
140
75
  * URL to which to navigate - can be a relative (app) path or an absolute link for an external URL
141
76
  */
142
- to: {
143
- type: PropType<Optional<string>>;
144
- required: false;
145
- default: undefined;
146
- };
77
+ to?: string | undefined;
147
78
  /**
148
- * Choose from one of many button sizes
79
+ * Choose from one of 3 button sizes
149
80
  */
150
- size: {
151
- type: PropType<FormButtonSize>;
152
- default: string;
153
- };
81
+ size?: FormButtonSize | undefined;
154
82
  /**
155
83
  * If set, will make the button take up all available space horizontally
156
84
  */
157
- fullWidth: {
158
- type: BooleanConstructor;
159
- default: boolean;
160
- };
161
- /**
162
- * Will outline the button.
163
- */
164
- outlined: {
165
- type: BooleanConstructor;
166
- default: boolean;
167
- };
168
- /**
169
- * Will apply a rounded class.
170
- */
171
- rounded: {
172
- type: BooleanConstructor;
173
- default: boolean;
174
- };
85
+ fullWidth?: boolean | undefined;
175
86
  /**
176
87
  * Similar to "link", but without an underline and possibly in different colors
177
88
  */
178
- text: {
179
- type: BooleanConstructor;
180
- default: boolean;
181
- };
89
+ text?: boolean | undefined;
182
90
  /**
183
91
  * Will remove paddings and background. Use for links.
184
92
  */
185
- link: {
186
- type: BooleanConstructor;
187
- default: boolean;
188
- };
93
+ link?: boolean | undefined;
189
94
  /**
190
- * Colors:
191
- * default: the default primary blue.
192
- * invert: for when you want to use this button on a primary background.
193
- * danger: for dangerous actions (e.g. deletions).
194
- * warning: for less dangerous actions (e.g. archival).
95
+ * color:
96
+ * primary: the default primary blue.
97
+ * outline: foundation background and outline
98
+ * subtle: no styling
195
99
  */
196
- color: {
197
- type: PropType<FormButtonColor>;
198
- default: string;
199
- };
100
+ color?: FormButtonStyle | undefined;
200
101
  /**
201
- * Text color, only used when color=secondary
102
+ * Should rounded-full be added?:
202
103
  */
203
- textColor: {
204
- type: PropType<FormButtonTextColor>;
205
- default: string;
206
- };
104
+ rounded?: boolean | undefined;
207
105
  /**
208
106
  * Whether the target location should be forcefully treated as an external URL
209
107
  * (for relative paths this will likely cause a redirect)
210
108
  */
211
- external: {
212
- type: PropType<Optional<boolean>>;
213
- required: false;
214
- default: undefined;
215
- };
109
+ external?: boolean | undefined;
216
110
  /**
217
111
  * Whether to disable the button so that it can't be pressed
218
112
  */
219
- disabled: {
220
- type: PropType<Optional<boolean>>;
221
- required: false;
222
- default: undefined;
223
- };
113
+ disabled?: boolean | undefined;
224
114
  /**
225
115
  * If set, will have type set to "submit" to enable it to submit any parent forms
226
116
  */
227
- submit: {
228
- type: BooleanConstructor;
229
- default: boolean;
230
- };
117
+ submit?: boolean | undefined;
231
118
  /**
232
119
  * Add icon to the left from the text
233
120
  */
234
- iconLeft: {
235
- type: PropType<Nullable<PropAnyComponent>>;
236
- default: null;
237
- };
121
+ iconLeft?: Nullable<PropAnyComponent> | undefined;
238
122
  /**
239
123
  * Add icon to the right from the text
240
124
  */
241
- iconRight: {
242
- type: PropType<Nullable<PropAnyComponent>>;
243
- default: null;
244
- };
125
+ iconRight?: Nullable<PropAnyComponent> | undefined;
245
126
  /**
246
127
  * Hide default slot (when you want to show icons only)
247
128
  */
248
- hideText: {
249
- type: BooleanConstructor;
250
- default: boolean;
251
- };
129
+ hideText?: boolean | undefined;
252
130
  /**
253
131
  * Customize component to be used when rendering links.
254
132
  *
255
133
  * The component will try to dynamically resolve NuxtLink and RouterLink and use those, if this is set to null.
256
134
  */
257
- linkComponent: {
258
- type: PropType<Nullable<PropAnyComponent>>;
259
- default: null;
260
- };
135
+ linkComponent?: Nullable<PropAnyComponent> | undefined;
261
136
  /**
262
137
  * Disables the button and shows a spinning loader
263
138
  */
264
- loading: {
265
- type: BooleanConstructor;
266
- default: boolean;
267
- };
268
- }>> & {
139
+ loading?: boolean | undefined;
140
+ }>>> & {
269
141
  onClick?: ((val: MouseEvent) => any) | undefined;
270
- }, {
271
- to: Optional<string>;
272
- size: FormButtonSize;
273
- fullWidth: boolean;
274
- outlined: boolean;
275
- rounded: boolean;
276
- text: boolean;
277
- link: boolean;
278
- color: FormButtonColor;
279
- textColor: FormButtonTextColor;
280
- external: Optional<boolean>;
281
- disabled: Optional<boolean>;
282
- submit: boolean;
283
- iconLeft: Nullable<PropAnyComponent>;
284
- iconRight: Nullable<PropAnyComponent>;
285
- hideText: boolean;
286
- linkComponent: Nullable<PropAnyComponent>;
287
- loading: boolean;
288
- }, {}>, {
142
+ }, {}, {}>, {
289
143
  default?(_: {}): any;
290
144
  }>;
291
145
  export default _default;
146
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
147
+ type __VLS_TypePropsToRuntimeProps<T> = {
148
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
149
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
150
+ } : {
151
+ type: import('vue').PropType<T[K]>;
152
+ required: true;
153
+ };
154
+ };
292
155
  type __VLS_WithTemplateSlots<T, S> = T & {
293
156
  new (): {
294
157
  $slots: S;
@@ -183,10 +183,10 @@ declare const _default: import("vue").DefineComponent<{
183
183
  }, {
184
184
  disabled: boolean;
185
185
  id: Optional<string>;
186
- value: Optional<string | true>;
187
186
  description: Optional<string>;
188
187
  label: Optional<string>;
189
188
  modelValue: false | ValueType;
189
+ value: Optional<string | true>;
190
190
  inlineDescription: boolean;
191
191
  rules: RuleExpression<ValueType>;
192
192
  validateOnMount: boolean;
@@ -197,11 +197,11 @@ declare const _default: import("vue").DefineComponent<{
197
197
  }, {
198
198
  disabled: boolean;
199
199
  id: Optional<string>;
200
- value: Optional<string | true>;
201
200
  description: Optional<string>;
202
201
  label: Optional<string>;
203
202
  icon: ConcreteComponent;
204
203
  modelValue: false | ValueType;
204
+ value: Optional<string | true>;
205
205
  inlineDescription: boolean;
206
206
  rules: RuleExpression<ValueType>;
207
207
  validateOnMount: boolean;
@@ -4,6 +4,7 @@ import type { Optional } from '@speckle/shared';
4
4
  import type { PropAnyComponent } from '../../helpers/common/components';
5
5
  type InputSize = 'sm' | 'base' | 'lg' | 'xl';
6
6
  type InputColor = 'page' | 'foundation' | 'transparent';
7
+ type LabelPosition = 'top' | 'left';
7
8
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
8
9
  /**
9
10
  * Input "type" value (changes behaviour & look)
@@ -115,14 +116,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
115
116
  type: BooleanConstructor;
116
117
  default: boolean;
117
118
  };
118
- fullWidth: {
119
- type: BooleanConstructor;
120
- default: boolean;
121
- };
122
119
  inputClasses: {
123
120
  type: StringConstructor;
124
121
  default: null;
125
122
  };
123
+ fullWidth: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
126
127
  hideErrorMessage: {
127
128
  type: BooleanConstructor;
128
129
  default: boolean;
@@ -135,6 +136,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
135
136
  type: PropType<InputColor>;
136
137
  default: string;
137
138
  };
139
+ labelPosition: {
140
+ type: PropType<LabelPosition>;
141
+ default: string;
142
+ };
138
143
  }, {
139
144
  focus: () => void;
140
145
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -261,14 +266,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
261
266
  type: BooleanConstructor;
262
267
  default: boolean;
263
268
  };
264
- fullWidth: {
265
- type: BooleanConstructor;
266
- default: boolean;
267
- };
268
269
  inputClasses: {
269
270
  type: StringConstructor;
270
271
  default: null;
271
272
  };
273
+ fullWidth: {
274
+ type: BooleanConstructor;
275
+ default: boolean;
276
+ };
272
277
  hideErrorMessage: {
273
278
  type: BooleanConstructor;
274
279
  default: boolean;
@@ -281,6 +286,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
281
286
  type: PropType<InputColor>;
282
287
  default: string;
283
288
  };
289
+ labelPosition: {
290
+ type: PropType<LabelPosition>;
291
+ default: string;
292
+ };
284
293
  }>> & {
285
294
  onFocus?: (() => any) | undefined;
286
295
  onBlur?: (() => any) | undefined;
@@ -299,8 +308,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
299
308
  fullWidth: boolean;
300
309
  color: InputColor;
301
310
  disabled: boolean;
302
- type: string;
303
311
  placeholder: Optional<string>;
312
+ type: string;
304
313
  label: Optional<string>;
305
314
  customIcon: Optional<PropAnyComponent>;
306
315
  modelValue: string;
@@ -316,6 +325,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
316
325
  hideErrorMessage: boolean;
317
326
  inputClasses: string;
318
327
  wrapperClasses: string;
328
+ labelPosition: LabelPosition;
319
329
  }, {}>, {
320
330
  "input-right"?(_: {}): any;
321
331
  }>;
@@ -4,8 +4,8 @@ import type { RuleExpression } from 'vee-validate';
4
4
  declare const _default: <SingleItem extends string | number | Record<string, unknown>>(__VLS_props: {
5
5
  disabled?: Optional<boolean>;
6
6
  readonly placeholder?: string | undefined;
7
- search?: boolean | undefined;
8
7
  readonly label: string;
8
+ search?: boolean | undefined;
9
9
  readonly name: string;
10
10
  modelValue?: ([{
11
11
  type: PropType<SingleItem | SingleItem[] | undefined>;
@@ -60,8 +60,8 @@ declare const _default: <SingleItem extends string | number | Record<string, unk
60
60
  props: {
61
61
  disabled?: Optional<boolean>;
62
62
  readonly placeholder?: string | undefined;
63
- search?: boolean | undefined;
64
63
  readonly label: string;
64
+ search?: boolean | undefined;
65
65
  readonly name: string;
66
66
  modelValue?: ([{
67
67
  type: PropType<SingleItem | SingleItem[] | undefined>;
@@ -120,8 +120,8 @@ declare const _default: <SingleItem extends string | number | Record<string, unk
120
120
  props: {
121
121
  disabled?: Optional<boolean>;
122
122
  readonly placeholder?: string | undefined;
123
- search?: boolean | undefined;
124
123
  readonly label: string;
124
+ search?: boolean | undefined;
125
125
  readonly name: string;
126
126
  modelValue?: ([{
127
127
  type: PropType<SingleItem | SingleItem[] | undefined>;
@@ -1,9 +1,12 @@
1
1
  import { type LayoutDialogButton } from '../../lib';
2
2
  type MaxWidthValue = 'sm' | 'md' | 'lg' | 'xl';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ type FullscreenValues = 'mobile' | 'desktop' | 'all' | 'none';
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
5
  open: boolean;
5
6
  maxWidth?: MaxWidthValue | undefined;
7
+ fullscreen?: FullscreenValues | undefined;
6
8
  hideCloser?: boolean | undefined;
9
+ showBackButton?: boolean | undefined;
7
10
  /**
8
11
  * Prevent modal from closing when the user clicks outside of the modal or presses Esc
9
12
  */
@@ -18,13 +21,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
18
21
  * If set, the modal will be wrapped in a form element and the `onSubmit` callback will be invoked when the user submits the form
19
22
  */
20
23
  onSubmit?: ((e: SubmitEvent) => void) | undefined;
24
+ }>, {
25
+ fullscreen: string;
21
26
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
27
  "update:open": (v: boolean) => void;
23
28
  "fully-closed": () => void;
24
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
29
+ back: () => void;
30
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
25
31
  open: boolean;
26
32
  maxWidth?: MaxWidthValue | undefined;
33
+ fullscreen?: FullscreenValues | undefined;
27
34
  hideCloser?: boolean | undefined;
35
+ showBackButton?: boolean | undefined;
28
36
  /**
29
37
  * Prevent modal from closing when the user clicks outside of the modal or presses Esc
30
38
  */
@@ -39,10 +47,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
39
47
  * If set, the modal will be wrapped in a form element and the `onSubmit` callback will be invoked when the user submits the form
40
48
  */
41
49
  onSubmit?: ((e: SubmitEvent) => void) | undefined;
50
+ }>, {
51
+ fullscreen: string;
42
52
  }>>> & {
43
53
  "onUpdate:open"?: ((v: boolean) => any) | undefined;
44
54
  "onFully-closed"?: (() => any) | undefined;
45
- }, {}, {}>, {
55
+ onBack?: (() => any) | undefined;
56
+ }, {
57
+ fullscreen: FullscreenValues;
58
+ }, {}>, {
46
59
  header?(_: {}): any;
47
60
  default?(_: {}): any;
48
61
  buttons?(_: {}): any;
@@ -57,6 +70,14 @@ type __VLS_TypePropsToRuntimeProps<T> = {
57
70
  required: true;
58
71
  };
59
72
  };
73
+ type __VLS_WithDefaults<P, D> = {
74
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
75
+ default: D[K];
76
+ }> : P[K];
77
+ };
78
+ type __VLS_Prettify<T> = {
79
+ [K in keyof T]: T[K];
80
+ } & {};
60
81
  type __VLS_WithTemplateSlots<T, S> = T & {
61
82
  new (): {
62
83
  $slots: S;
@@ -1,7 +1,7 @@
1
1
  import type { PropType } from 'vue';
2
2
  import type { PropAnyComponent } from '../../helpers/common/components';
3
+ import type { FormButtonStyle } from '../../helpers/form/button';
3
4
  type TitleColor = 'default' | 'danger' | 'warning' | 'success' | 'secondary' | 'info';
4
- type FormButtonColor = 'default' | 'invert' | 'danger' | 'warning' | 'success' | 'card' | 'secondary' | 'info';
5
5
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
6
6
  title: StringConstructor;
7
7
  borderT: BooleanConstructor;
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
15
15
  expandContent?: boolean | undefined;
16
16
  text: string;
17
17
  to?: string | undefined;
18
- color: FormButtonColor;
18
+ color: FormButtonStyle;
19
19
  iconRight?: PropAnyComponent | undefined;
20
20
  onClick?: (() => void) | undefined;
21
21
  } | undefined;
@@ -41,7 +41,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
41
41
  expandContent?: boolean | undefined;
42
42
  text: string;
43
43
  to?: string | undefined;
44
- color: FormButtonColor;
44
+ color: FormButtonStyle;
45
45
  iconRight?: PropAnyComponent | undefined;
46
46
  onClick?: (() => void) | undefined;
47
47
  } | undefined;
@@ -1,5 +1,4 @@
1
1
  import type { PropAnyComponent } from '../../helpers/common/components';
2
- import type { FormButtonTextColor } from '../../helpers/form/button';
3
2
  export type TableColumn<I> = {
4
3
  id: I;
5
4
  header: string;
@@ -10,7 +9,6 @@ export interface RowButton<T = unknown> {
10
9
  label: string;
11
10
  action: (item: T) => void | string;
12
11
  class?: string;
13
- textColor?: FormButtonTextColor;
14
12
  }
15
13
  declare const _default: <T extends {
16
14
  id: string;
@@ -1,13 +1,17 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
2
  label: string;
3
- to: string;
3
+ to?: string | undefined;
4
4
  tag?: string | undefined;
5
5
  external?: boolean | undefined;
6
+ disabled?: boolean | undefined;
7
+ tooltipText?: string | undefined;
6
8
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
9
  label: string;
8
- to: string;
10
+ to?: string | undefined;
9
11
  tag?: string | undefined;
10
12
  external?: boolean | undefined;
13
+ disabled?: boolean | undefined;
14
+ tooltipText?: string | undefined;
11
15
  }>>>, {}, {}>, {
12
16
  icon?(_: {}): any;
13
17
  default?(_: {}): any;
@@ -12,8 +12,8 @@ export declare function useAvatarSizeClasses(params: {
12
12
  size?: UserAvatarSize;
13
13
  }>;
14
14
  }): {
15
- heightClasses: import("vue").ComputedRef<"h-8" | "h-10" | "h-14" | "h-6" | "h-5" | "h-32" | "h-60">;
16
- widthClasses: import("vue").ComputedRef<"w-5" | "w-6" | "w-10" | "w-14" | "w-32" | "w-60" | "w-8">;
15
+ heightClasses: import("vue").ComputedRef<"h-8" | "h-6" | "h-10" | "h-14" | "h-5" | "h-32" | "h-60">;
16
+ widthClasses: import("vue").ComputedRef<"w-6" | "w-10" | "w-8" | "w-5" | "w-14" | "w-32" | "w-60">;
17
17
  sizeClasses: import("vue").ComputedRef<string>;
18
18
  iconClasses: import("vue").ComputedRef<"w-5 h-5" | "w-3 h-3" | "w-8 h-8" | "w-10 h-10" | "w-20 h-20" | "w-4 h-4">;
19
19
  };
@@ -1,2 +1,2 @@
1
- export type FormButtonColor = 'default' | 'invert' | 'danger' | 'warning' | 'success' | 'card' | 'secondary' | 'info';
2
- export type FormButtonTextColor = 'default' | 'primary' | 'warning' | 'success' | 'danger' | 'info';
1
+ export type FormButtonStyle = 'primary' | 'outline' | 'subtle' | 'danger';
2
+ export type FormButtonSize = 'sm' | 'base' | 'lg';
@@ -40,4 +40,5 @@ export type LayoutDialogButton = {
40
40
  */
41
41
  id?: string;
42
42
  };
43
+ export type LayoutTableColours = 'primary' | 'outline' | 'subtle' | 'danger';
43
44
  export {};
@@ -12,7 +12,7 @@ export declare function markClassesUsed(classes: string[]): void;
12
12
  */
13
13
  export declare enum TailwindBreakpoints {
14
14
  sm = 640,
15
- md = 746,
15
+ md = 768,
16
16
  lg = 1024,
17
17
  xl = 1280,
18
18
  '2xl' = 1536