@cscfi/csc-ui 4.0.0-rc.2 → 4.0.0-rc.3

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.
Files changed (46) hide show
  1. package/dist/csc-ui.js +6496 -6443
  2. package/dist/custom-elements.json +579 -23
  3. package/dist/docs/c-button/usage.md +15 -2
  4. package/dist/docs/c-card/usage.md +2 -2
  5. package/dist/docs/c-checkbox/usage.md +1 -1
  6. package/dist/docs/c-icon-button/usage.md +3 -2
  7. package/dist/docs/c-link/usage.md +1 -1
  8. package/dist/docs/c-loader/usage.md +3 -2
  9. package/dist/docs/c-otp-input/usage.md +1 -1
  10. package/dist/docs/c-radio-group/usage.md +1 -1
  11. package/dist/docs/c-side-navigation/usage.md +6 -6
  12. package/dist/docs/c-side-navigation-item/usage.md +1 -1
  13. package/dist/docs/c-slider/usage.md +10 -3
  14. package/dist/docs/c-spinner/usage.md +2 -2
  15. package/dist/docs/c-sub-navigation-item/usage.md +1 -1
  16. package/dist/docs/c-toasts/usage.md +7 -3
  17. package/dist/vscode.css-custom-data.json +12 -12
  18. package/dist/vscode.html-custom-data.json +178 -46
  19. package/dist/web-types.json +2090 -496
  20. package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +9 -0
  21. package/dist-types/components/c-button/CButton.vue.d.ts +22 -4
  22. package/dist-types/components/c-card/CCard.vue.d.ts +8 -0
  23. package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +8 -0
  24. package/dist-types/components/c-color-picker/CColorPicker.vue.d.ts +9 -0
  25. package/dist-types/components/c-date-picker/CDatePicker.vue.d.ts +9 -0
  26. package/dist-types/components/c-file-upload/CFileUpload.vue.d.ts +9 -0
  27. package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +23 -4
  28. package/dist-types/components/c-loader/CLoader.vue.d.ts +7 -0
  29. package/dist-types/components/c-number-field/CNumberField.vue.d.ts +9 -0
  30. package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +8 -0
  31. package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +8 -0
  32. package/dist-types/components/c-select/CSelect.vue.d.ts +9 -0
  33. package/dist-types/components/c-side-navigation-item/CSideNavigationItem.vue.d.ts +16 -0
  34. package/dist-types/components/c-slider/CSlider.vue.d.ts +8 -0
  35. package/dist-types/components/c-spinner/CSpinner.vue.d.ts +7 -0
  36. package/dist-types/components/c-step/CStep.vue.d.ts +1 -1
  37. package/dist-types/components/c-sub-navigation-item/CSubNavigationItem.vue.d.ts +9 -0
  38. package/dist-types/components/c-text-field/CTextField.vue.d.ts +9 -0
  39. package/dist-types/components/c-time-picker/CTimePicker.vue.d.ts +9 -0
  40. package/dist-types/components/c-toasts/CToasts.vue.d.ts +26 -0
  41. package/dist-types/components/c-tree-select/CTreeSelect.vue.d.ts +9 -0
  42. package/dist-types/index.d.ts +3 -3
  43. package/dist-types/shared/appDefaults.d.ts +8 -1
  44. package/dist-types/shared/buttonAppearance.d.ts +20 -0
  45. package/dist-types/tag-name-map.d.ts +281 -70
  46. package/package.json +1 -1
@@ -93,8 +93,16 @@ interface CAutocompleteProps {
93
93
  * Hide the hint and error messages
94
94
  *
95
95
  * @defaultable false
96
+ * @deprecated Use `hide-message`.
96
97
  */
97
98
  hideDetails?: boolean;
99
+ /**
100
+ * Hide the message line — the hint and error messages under the field —
101
+ * and the room it keeps.
102
+ *
103
+ * @defaultable false
104
+ */
105
+ hideMessage?: boolean;
98
106
  /**
99
107
  * Hint text for the input
100
108
  *
@@ -206,6 +214,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CAutoc
206
214
  size: CFieldSize;
207
215
  texts: CAutocompleteTexts;
208
216
  hideDetails: boolean;
217
+ hideMessage: boolean;
209
218
  labelOnTop: boolean;
210
219
  shadow: boolean;
211
220
  clearable: boolean;
@@ -1,3 +1,8 @@
1
+ /**
2
+ * How strongly a button reads: `filled` for the main action, then
3
+ * `outlined`, `ghost` and `text`, each lighter than the last.
4
+ */
5
+ export type CButtonAppearance = 'filled' | 'ghost' | 'outlined' | 'text';
1
6
  /**
2
7
  * Size of the button.
3
8
  */
@@ -15,6 +20,12 @@ interface CButtonProps {
15
20
  * `c-button-group` on its slotted buttons.
16
21
  */
17
22
  active?: boolean;
23
+ /**
24
+ * The button's look: `filled` (unless set) for the main action of a view;
25
+ * `outlined` (a primary outline, no fill), `ghost` (a light primary tint)
26
+ * or `text` (no fill or outline) for lower emphasis.
27
+ */
28
+ appearance?: CButtonAppearance;
18
29
  /**
19
30
  * Be a tab of a tablist: `role="tab"`, with `active` as `aria-selected`
20
31
  * instead of `aria-pressed`. c-tab-buttons sets it on its buttons.
@@ -23,8 +34,8 @@ interface CButtonProps {
23
34
  */
24
35
  asTab?: boolean;
25
36
  /**
26
- * Danger appearance for a destructive action: the filled button in the error
27
- * colour; no effect on `outlined`, `ghost` or `text`.
37
+ * Danger look for a destructive action: the filled button in the error
38
+ * colour; no effect on the `outlined`, `ghost` or `text` appearance.
28
39
  */
29
40
  danger?: boolean;
30
41
  /**
@@ -38,6 +49,8 @@ interface CButtonProps {
38
49
  fit?: boolean;
39
50
  /**
40
51
  * Ghost appearance: primary text on a light primary tint, for lower emphasis.
52
+ *
53
+ * @deprecated Use `appearance="ghost"`.
41
54
  */
42
55
  ghost?: boolean;
43
56
  /**
@@ -49,8 +62,8 @@ interface CButtonProps {
49
62
  href?: string;
50
63
  /**
51
64
  * Inverted colours for a fixed dark or brand-coloured backdrop: the
52
- * `inverse-*` family, the same in both theme modes. Combines with the other
53
- * appearances.
65
+ * `inverse-*` family, the same in both theme modes. Combines with every
66
+ * appearance.
54
67
  */
55
68
  inverted?: boolean;
56
69
  /**
@@ -72,6 +85,8 @@ interface CButtonProps {
72
85
  /**
73
86
  * Outlined appearance: a primary outline and text with no fill, for lower
74
87
  * emphasis.
88
+ *
89
+ * @deprecated Use `appearance="outlined"`.
75
90
  */
76
91
  outlined?: boolean;
77
92
  /**
@@ -88,6 +103,8 @@ interface CButtonProps {
88
103
  target?: string;
89
104
  /**
90
105
  * Text appearance: primary text with no fill or outline, the lightest look.
106
+ *
107
+ * @deprecated Use `appearance="text"`.
91
108
  */
92
109
  text?: boolean;
93
110
  /**
@@ -115,6 +132,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CButto
115
132
  href: string;
116
133
  target: string;
117
134
  active: boolean;
135
+ appearance: CButtonAppearance;
118
136
  asTab: boolean;
119
137
  danger: boolean;
120
138
  ghost: boolean;
@@ -2,8 +2,15 @@ interface CCardProps {
2
2
  /**
3
3
  * Shows a toggle button in the card's top-right corner that puts the card
4
4
  * in the browser's fullscreen mode and back.
5
+ *
6
+ * @deprecated Use `show-fullscreen`.
5
7
  */
6
8
  fullscreen?: boolean;
9
+ /**
10
+ * Show a toggle button in the card's top-right corner that puts the card
11
+ * in the browser's fullscreen mode and back.
12
+ */
13
+ showFullscreen?: boolean;
7
14
  }
8
15
  declare var __VLS_1: {};
9
16
  type __VLS_Slots = {} & {
@@ -14,6 +21,7 @@ declare const __VLS_base: import("vue").DefineComponent<CCardProps, {
14
21
  exitFullscreen: () => Promise<void>;
15
22
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CCardProps> & Readonly<{}>, {
16
23
  fullscreen: boolean;
24
+ showFullscreen: boolean;
17
25
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
26
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
27
  declare const _default: typeof __VLS_export;
@@ -22,8 +22,15 @@ interface CCheckboxProps {
22
22
  falseValue?: boolean | number | string;
23
23
  /**
24
24
  * Hide the hint and error messages
25
+ *
26
+ * @deprecated Use `hide-message`.
25
27
  */
26
28
  hideDetails?: boolean;
29
+ /**
30
+ * Hide the message line — the hint and error messages under the field —
31
+ * and the room it keeps.
32
+ */
33
+ hideMessage?: boolean;
27
34
  /**
28
35
  * Hint text for the checkbox
29
36
  *
@@ -82,6 +89,7 @@ declare const __VLS_base: import("vue").DefineComponent<CCheckboxProps, {
82
89
  name: string;
83
90
  value: string | number | boolean;
84
91
  hideDetails: boolean;
92
+ hideMessage: boolean;
85
93
  disabled: boolean;
86
94
  errorMessage: string;
87
95
  hint: string;
@@ -84,8 +84,16 @@ interface CColorPickerProps {
84
84
  * Hide the hint and error messages
85
85
  *
86
86
  * @defaultable false
87
+ * @deprecated Use `hide-message`.
87
88
  */
88
89
  hideDetails?: boolean;
90
+ /**
91
+ * Hide the message line — the hint and error messages under the field —
92
+ * and the room it keeps.
93
+ *
94
+ * @defaultable false
95
+ */
96
+ hideMessage?: boolean;
89
97
  /**
90
98
  * Hint text for the field
91
99
  *
@@ -174,6 +182,7 @@ declare const __VLS_export: import("vue").DefineComponent<CColorPickerProps, {
174
182
  size: CFieldSize;
175
183
  texts: CColorPickerTexts;
176
184
  hideDetails: boolean;
185
+ hideMessage: boolean;
177
186
  labelOnTop: boolean;
178
187
  shadow: boolean;
179
188
  alpha: boolean;
@@ -133,8 +133,16 @@ interface CDatePickerProps {
133
133
  * Hide the hint and error messages
134
134
  *
135
135
  * @defaultable false
136
+ * @deprecated Use `hide-message`.
136
137
  */
137
138
  hideDetails?: boolean;
139
+ /**
140
+ * Hide the message line — the hint and error messages under the field —
141
+ * and the room it keeps.
142
+ *
143
+ * @defaultable false
144
+ */
145
+ hideMessage?: boolean;
138
146
  /**
139
147
  * Hint text for the field
140
148
  *
@@ -257,6 +265,7 @@ declare const __VLS_export: import("vue").DefineComponent<CDatePickerProps, {
257
265
  size: CFieldSize;
258
266
  texts: CDatePickerTexts;
259
267
  hideDetails: boolean;
268
+ hideMessage: boolean;
260
269
  labelOnTop: boolean;
261
270
  shadow: boolean;
262
271
  format: string;
@@ -116,8 +116,16 @@ interface CFileUploadProps {
116
116
  * Hide the hint and error messages
117
117
  *
118
118
  * @defaultable false
119
+ * @deprecated Use `hide-message`.
119
120
  */
120
121
  hideDetails?: boolean;
122
+ /**
123
+ * Hide the message line — the hint and error messages under the field —
124
+ * and the room it keeps.
125
+ *
126
+ * @defaultable false
127
+ */
128
+ hideMessage?: boolean;
121
129
  /**
122
130
  * Hint text under the drop zone — the place to name the accepted types and limits
123
131
  *
@@ -192,6 +200,7 @@ declare const __VLS_export: import("vue").DefineComponent<CFileUploadProps, {
192
200
  size: CFieldSize;
193
201
  texts: CFileUploadTexts;
194
202
  hideDetails: boolean;
203
+ hideMessage: boolean;
195
204
  compact: boolean;
196
205
  disabled: boolean;
197
206
  errorMessage: string;
@@ -1,17 +1,29 @@
1
+ /**
2
+ * How strongly an icon button reads: `filled` for the main action, then
3
+ * `outlined`, `ghost` and `text`, each lighter than the last — `c-button`'s
4
+ * appearances.
5
+ */
6
+ export type CIconButtonAppearance = 'filled' | 'ghost' | 'outlined' | 'text';
1
7
  /**
2
8
  * Size of the icon button. `small` and `x-small` render progressively more
3
9
  * compact buttons; omitting the attribute renders the default size.
4
10
  */
5
11
  export type CIconButtonSize = 'default' | 'small' | 'x-small';
6
12
  interface CIconButtonProps {
13
+ /**
14
+ * The button's look: `filled` (unless set) for the main action; `outlined`
15
+ * (a primary outline, no fill), `ghost` (a light primary tint) or `text`
16
+ * (no fill or outline) for lower emphasis.
17
+ */
18
+ appearance?: CIconButtonAppearance;
7
19
  /**
8
20
  * Count shown in a bubble at the button's top-right corner; hidden while
9
21
  * `null` or empty, so `0` still shows.
10
22
  */
11
23
  badge?: null | number | string;
12
24
  /**
13
- * Danger appearance for a destructive action: the filled button in the error
14
- * colour; no effect on `outlined`, `ghost` or `text`.
25
+ * Danger look for a destructive action: the filled button in the error
26
+ * colour; no effect on the `outlined`, `ghost` or `text` appearance.
15
27
  */
16
28
  danger?: boolean;
17
29
  /**
@@ -20,12 +32,14 @@ interface CIconButtonProps {
20
32
  disabled?: boolean;
21
33
  /**
22
34
  * Ghost appearance: a light primary tint, for lower emphasis.
35
+ *
36
+ * @deprecated Use `appearance="ghost"`.
23
37
  */
24
38
  ghost?: boolean;
25
39
  /**
26
40
  * Inverted colours for a fixed dark or brand-coloured backdrop: the
27
- * `inverse-*` family, the same in both theme modes. Combines with the other
28
- * appearances.
41
+ * `inverse-*` family, the same in both theme modes. Combines with every
42
+ * appearance.
29
43
  */
30
44
  inverted?: boolean;
31
45
  /**
@@ -35,6 +49,8 @@ interface CIconButtonProps {
35
49
  loading?: boolean;
36
50
  /**
37
51
  * Outlined appearance: a primary outline with no fill, for lower emphasis.
52
+ *
53
+ * @deprecated Use `appearance="outlined"`.
38
54
  */
39
55
  outlined?: boolean;
40
56
  /**
@@ -50,6 +66,8 @@ interface CIconButtonProps {
50
66
  size?: CIconButtonSize;
51
67
  /**
52
68
  * Text appearance: no fill or outline, the lightest look.
69
+ *
70
+ * @deprecated Use `appearance="text"`.
53
71
  */
54
72
  text?: boolean;
55
73
  }
@@ -62,6 +80,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CIconB
62
80
  size: CIconButtonSize;
63
81
  disabled: boolean;
64
82
  loading: boolean;
83
+ appearance: CIconButtonAppearance;
65
84
  danger: boolean;
66
85
  ghost: boolean;
67
86
  inverted: boolean;
@@ -14,8 +14,14 @@ interface CLoaderProps {
14
14
  * The spinner's diameter in pixels.
15
15
  */
16
16
  size?: number;
17
+ /**
18
+ * The spinner's stroke thickness in pixels: 4 unless set.
19
+ */
20
+ thickness?: number;
17
21
  /**
18
22
  * The spinner's stroke width in pixels.
23
+ *
24
+ * @deprecated Use `thickness`.
19
25
  */
20
26
  width?: number;
21
27
  }
@@ -28,6 +34,7 @@ declare const __VLS_base: import("vue").DefineComponent<CLoaderProps, {}, {}, {}
28
34
  size: number;
29
35
  contentDelay: number;
30
36
  hide: boolean;
37
+ thickness: number;
31
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
39
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
40
  declare const _default: typeof __VLS_export;
@@ -47,8 +47,16 @@ interface CNumberFieldProps {
47
47
  * Hide the hint and error messages
48
48
  *
49
49
  * @defaultable false
50
+ * @deprecated Use `hide-message`.
50
51
  */
51
52
  hideDetails?: boolean;
53
+ /**
54
+ * Hide the message line — the hint and error messages under the field —
55
+ * and the room it keeps.
56
+ *
57
+ * @defaultable false
58
+ */
59
+ hideMessage?: boolean;
52
60
  /**
53
61
  * Hint text for the field
54
62
  *
@@ -142,6 +150,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CNumbe
142
150
  size: CFieldSize;
143
151
  texts: CNumberFieldTexts;
144
152
  hideDetails: boolean;
153
+ hideMessage: boolean;
145
154
  labelOnTop: boolean;
146
155
  shadow: boolean;
147
156
  decimalSeparator: string;
@@ -11,8 +11,15 @@ interface COtpInputProps {
11
11
  errorMessage?: string;
12
12
  /**
13
13
  * Hide the hint and error messages
14
+ *
15
+ * @deprecated Use `hide-message`.
14
16
  */
15
17
  hideDetails?: boolean;
18
+ /**
19
+ * Hide the message line — the hint and error messages under the field —
20
+ * and the room it keeps.
21
+ */
22
+ hideMessage?: boolean;
16
23
  /**
17
24
  * Hint text for the input
18
25
  *
@@ -58,6 +65,7 @@ declare const __VLS_base: import("vue").DefineComponent<COtpInputProps, {
58
65
  length: number;
59
66
  value: string;
60
67
  hideDetails: boolean;
68
+ hideMessage: boolean;
61
69
  errorMessage: string;
62
70
  hint: string;
63
71
  required: boolean;
@@ -11,8 +11,15 @@ interface CRadioGroupProps {
11
11
  errorMessage?: string;
12
12
  /**
13
13
  * Hide the hint and error messages
14
+ *
15
+ * @deprecated Use `hide-message`.
14
16
  */
15
17
  hideDetails?: boolean;
18
+ /**
19
+ * Hide the message line — the hint and error messages under the field —
20
+ * and the room it keeps.
21
+ */
22
+ hideMessage?: boolean;
16
23
  /**
17
24
  * Hint text for the input
18
25
  *
@@ -58,6 +65,7 @@ declare const __VLS_base: import("vue").DefineComponent<CRadioGroupProps, {
58
65
  value: null | string;
59
66
  inline: boolean;
60
67
  hideDetails: boolean;
68
+ hideMessage: boolean;
61
69
  disabled: boolean;
62
70
  errorMessage: string;
63
71
  hint: string;
@@ -50,8 +50,16 @@ interface CSelectProps {
50
50
  * Hide the hint and error messages
51
51
  *
52
52
  * @defaultable false
53
+ * @deprecated Use `hide-message`.
53
54
  */
54
55
  hideDetails?: boolean;
56
+ /**
57
+ * Hide the message line — the hint and error messages under the field —
58
+ * and the room it keeps.
59
+ *
60
+ * @defaultable false
61
+ */
62
+ hideMessage?: boolean;
55
63
  /**
56
64
  * Hint text for the input
57
65
  *
@@ -163,6 +171,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CSelec
163
171
  size: CFieldSize;
164
172
  texts: CSelectTexts;
165
173
  hideDetails: boolean;
174
+ hideMessage: boolean;
166
175
  labelOnTop: boolean;
167
176
  shadow: boolean;
168
177
  clearable: boolean;
@@ -2,6 +2,8 @@ interface CSideNavigationItemProps {
2
2
  /**
3
3
  * On an item without sub-items, mark the current page
4
4
  * (`aria-current="page"`); on a parent, expand its sub-items.
5
+ *
6
+ * @deprecated Use `current` on an item without sub-items and `expanded` on a parent.
5
7
  */
6
8
  active?: boolean;
7
9
  /**
@@ -11,6 +13,18 @@ interface CSideNavigationItemProps {
11
13
  * @internal
12
14
  */
13
15
  collapsed?: boolean;
16
+ /**
17
+ * Mark the item as the page shown (`aria-current="page"`), on an item
18
+ * without sub-items. Bind it from the page your router or the URL shows:
19
+ * the navigation never sets it.
20
+ */
21
+ current?: boolean;
22
+ /**
23
+ * Show a parent item's sub-items. The navigation sets it as parents open
24
+ * and close, collapsing the other top-level parents; set it to open one
25
+ * initially.
26
+ */
27
+ expanded?: boolean;
14
28
  /**
15
29
  * URL that makes the item a real link; without it the item is a button.
16
30
  *
@@ -42,12 +56,14 @@ type __VLS_Slots = {} & {
42
56
  'sub-item'?: (props: typeof __VLS_16) => any;
43
57
  };
44
58
  declare const __VLS_base: import("vue").DefineComponent<CSideNavigationItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CSideNavigationItemProps> & Readonly<{}>, {
59
+ expanded: boolean;
45
60
  value: string;
46
61
  loading: boolean;
47
62
  href: string;
48
63
  target: string;
49
64
  active: boolean;
50
65
  collapsed: boolean;
66
+ current: boolean;
51
67
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
52
68
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
53
69
  declare const _default: typeof __VLS_export;
@@ -17,6 +17,8 @@ interface CSliderProps {
17
17
  /**
18
18
  * Write a number under the track at each tick mark position, `segments`
19
19
  * apart, formatted like the value bubble's; shown with or without `ticks`
20
+ *
21
+ * @deprecated Use `tick-labels`.
20
22
  */
21
23
  labels?: boolean;
22
24
  /** The largest value. */
@@ -34,6 +36,11 @@ interface CSliderProps {
34
36
  segments?: number;
35
37
  /** Step between values. */
36
38
  step?: number;
39
+ /**
40
+ * Write a number under the track at each tick mark position, `segments`
41
+ * apart, formatted like the value bubble's; shown with or without `ticks`
42
+ */
43
+ tickLabels?: boolean;
37
44
  /** Draw tick marks along the track, `segments` apart. */
38
45
  ticks?: boolean;
39
46
  /**
@@ -58,6 +65,7 @@ declare const __VLS_export: import("vue").DefineComponent<CSliderProps, {
58
65
  disableTooltip: boolean;
59
66
  labels: boolean;
60
67
  segments: number;
68
+ tickLabels: boolean;
61
69
  ticks: boolean;
62
70
  unit: string;
63
71
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -10,8 +10,14 @@ interface CSpinnerProps {
10
10
  * Diameter in pixels.
11
11
  */
12
12
  size?: number;
13
+ /**
14
+ * Stroke thickness in pixels: 2 unless set.
15
+ */
16
+ thickness?: number;
13
17
  /**
14
18
  * Stroke width in pixels.
19
+ *
20
+ * @deprecated Use `thickness`.
15
21
  */
16
22
  width?: number;
17
23
  }
@@ -19,6 +25,7 @@ declare const __VLS_export: import("vue").DefineComponent<CSpinnerProps, {}, {},
19
25
  width: number;
20
26
  size: number;
21
27
  color: string;
28
+ thickness: number;
22
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
30
  declare const _default: typeof __VLS_export;
24
31
  export default _default;
@@ -19,8 +19,8 @@ type __VLS_Slots = {} & {
19
19
  default?: (props: typeof __VLS_1) => any;
20
20
  };
21
21
  declare const __VLS_base: import("vue").DefineComponent<CStepProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CStepProps> & Readonly<{}>, {
22
- complete: boolean;
23
22
  current: boolean;
23
+ complete: boolean;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
26
  declare const _default: typeof __VLS_export;
@@ -2,6 +2,8 @@ interface CSubNavigationItemProps {
2
2
  /**
3
3
  * Mark the sub-item as the current page (`aria-current="page"`); set `active`
4
4
  * on its parent item too, so the parent is expanded.
5
+ *
6
+ * @deprecated Use `current`.
5
7
  */
6
8
  active?: boolean;
7
9
  /**
@@ -11,6 +13,12 @@ interface CSubNavigationItemProps {
11
13
  * @internal
12
14
  */
13
15
  collapsed?: boolean;
16
+ /**
17
+ * Mark the sub-item as the page shown (`aria-current="page"`), and set
18
+ * `expanded` on its parent item so the parent is open. Bind it from the
19
+ * page your router or the URL shows: the navigation never sets it.
20
+ */
21
+ current?: boolean;
14
22
  /**
15
23
  * URL that makes the sub-item a real link; without it the sub-item is a
16
24
  * button.
@@ -48,6 +56,7 @@ declare const __VLS_base: import("vue").DefineComponent<CSubNavigationItemProps,
48
56
  target: string;
49
57
  active: boolean;
50
58
  collapsed: boolean;
59
+ current: boolean;
51
60
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
52
61
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
53
62
  declare const _default: typeof __VLS_export;
@@ -49,8 +49,16 @@ interface CTextFieldProps {
49
49
  * Hide the hint and error messages
50
50
  *
51
51
  * @defaultable false
52
+ * @deprecated Use `hide-message`.
52
53
  */
53
54
  hideDetails?: boolean;
55
+ /**
56
+ * Hide the message line — the hint and error messages under the field —
57
+ * and the room it keeps.
58
+ *
59
+ * @defaultable false
60
+ */
61
+ hideMessage?: boolean;
54
62
  /**
55
63
  * Hint text for the input
56
64
  *
@@ -167,6 +175,7 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CTextF
167
175
  rows: number;
168
176
  size: CFieldSize;
169
177
  hideDetails: boolean;
178
+ hideMessage: boolean;
170
179
  labelOnTop: boolean;
171
180
  shadow: boolean;
172
181
  step: null | number;
@@ -79,8 +79,16 @@ interface CTimePickerProps {
79
79
  * Hide the hint and error messages
80
80
  *
81
81
  * @defaultable false
82
+ * @deprecated Use `hide-message`.
82
83
  */
83
84
  hideDetails?: boolean;
85
+ /**
86
+ * Hide the message line — the hint and error messages under the field —
87
+ * and the room it keeps.
88
+ *
89
+ * @defaultable false
90
+ */
91
+ hideMessage?: boolean;
84
92
  /**
85
93
  * Hint text for the field
86
94
  *
@@ -188,6 +196,7 @@ declare const __VLS_export: import("vue").DefineComponent<CTimePickerProps, {
188
196
  size: CFieldSize;
189
197
  texts: CTimePickerTexts;
190
198
  hideDetails: boolean;
199
+ hideMessage: boolean;
191
200
  labelOnTop: boolean;
192
201
  shadow: boolean;
193
202
  format: string;
@@ -3,6 +3,11 @@ import type { CToastMessage } from '../../types';
3
3
  * Horizontal placement of the toast stack.
4
4
  */
5
5
  export type CToastsHorizontal = 'center' | 'left' | 'right';
6
+ /**
7
+ * Where the toast stack sits: the edge it is anchored to, then its
8
+ * alignment along it — `start` is the left, `end` the right — or centred.
9
+ */
10
+ export type CToastsPosition = 'bottom-end' | 'bottom-start' | 'bottom' | 'top-end' | 'top-start' | 'top';
6
11
  /**
7
12
  * Vertical placement of the toast stack.
8
13
  */
@@ -12,15 +17,34 @@ interface CToastsProps {
12
17
  * Places the stack in its nearest positioned ancestor instead of the
13
18
  * viewport, for in-container notifications. Such a stack is not
14
19
  * guaranteed to paint above an open modal.
20
+ *
21
+ * @deprecated Use `contained`.
15
22
  */
16
23
  absolute?: boolean;
24
+ /**
25
+ * Keep the stack inside its nearest positioned ancestor instead of the
26
+ * viewport, for in-container notifications. Such a stack is not
27
+ * guaranteed to paint above an open modal.
28
+ */
29
+ contained?: boolean;
17
30
  /**
18
31
  * Where the stack sits across the viewport, or across its container
19
32
  * under `absolute`.
33
+ *
34
+ * @deprecated Use `position`.
20
35
  */
21
36
  horizontal?: CToastsHorizontal;
37
+ /**
38
+ * Where the stack sits in the viewport, or in its container when
39
+ * `contained`: `bottom` (unless set), `bottom-start`, `bottom-end`,
40
+ * `top`, `top-start` or `top-end`. Toasts slide in from the top or bottom
41
+ * edge.
42
+ */
43
+ position?: CToastsPosition;
22
44
  /**
23
45
  * The edge the stack is anchored to; toasts slide in from it.
46
+ *
47
+ * @deprecated Use `position`.
24
48
  */
25
49
  vertical?: CToastsVertical;
26
50
  }
@@ -33,6 +57,8 @@ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CToast
33
57
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CToastsProps> & Readonly<{}>, {
34
58
  absolute: boolean;
35
59
  vertical: CToastsVertical;
60
+ position: CToastsPosition;
61
+ contained: boolean;
36
62
  horizontal: CToastsHorizontal;
37
63
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
38
64
  default?: (props: {}) => any;