mn-angular-lib 2.0.34 → 2.0.35

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 (52) hide show
  1. package/fesm2022/mn-angular-lib-alert.mjs +515 -527
  2. package/fesm2022/mn-angular-lib-alert.mjs.map +1 -1
  3. package/fesm2022/mn-angular-lib-bottom-sheet.mjs +264 -357
  4. package/fesm2022/mn-angular-lib-bottom-sheet.mjs.map +1 -1
  5. package/fesm2022/mn-angular-lib-button.mjs +819 -382
  6. package/fesm2022/mn-angular-lib-button.mjs.map +1 -1
  7. package/fesm2022/mn-angular-lib-calendar-core.mjs +240 -365
  8. package/fesm2022/mn-angular-lib-calendar-core.mjs.map +1 -1
  9. package/fesm2022/mn-angular-lib-calendar.mjs +1691 -1545
  10. package/fesm2022/mn-angular-lib-calendar.mjs.map +1 -1
  11. package/fesm2022/mn-angular-lib-collection.mjs +2367 -2796
  12. package/fesm2022/mn-angular-lib-collection.mjs.map +1 -1
  13. package/fesm2022/mn-angular-lib-core.mjs +693 -1241
  14. package/fesm2022/mn-angular-lib-core.mjs.map +1 -1
  15. package/fesm2022/mn-angular-lib-display.mjs +679 -712
  16. package/fesm2022/mn-angular-lib-display.mjs.map +1 -1
  17. package/fesm2022/mn-angular-lib-forms.mjs +3671 -4647
  18. package/fesm2022/mn-angular-lib-forms.mjs.map +1 -1
  19. package/fesm2022/mn-angular-lib-keyboard.mjs +221 -190
  20. package/fesm2022/mn-angular-lib-keyboard.mjs.map +1 -1
  21. package/fesm2022/mn-angular-lib-modal-core.mjs +711 -896
  22. package/fesm2022/mn-angular-lib-modal-core.mjs.map +1 -1
  23. package/fesm2022/mn-angular-lib-modal-ui.mjs +2089 -2035
  24. package/fesm2022/mn-angular-lib-modal-ui.mjs.map +1 -1
  25. package/fesm2022/mn-angular-lib-modal.mjs +76 -121
  26. package/fesm2022/mn-angular-lib-modal.mjs.map +1 -1
  27. package/fesm2022/mn-angular-lib-rich-text-editor.mjs +289 -277
  28. package/fesm2022/mn-angular-lib-rich-text-editor.mjs.map +1 -1
  29. package/fesm2022/mn-angular-lib-segmented.mjs +189 -241
  30. package/fesm2022/mn-angular-lib-segmented.mjs.map +1 -1
  31. package/fesm2022/mn-angular-lib-tab.mjs +409 -642
  32. package/fesm2022/mn-angular-lib-tab.mjs.map +1 -1
  33. package/fesm2022/mn-angular-lib.mjs +16 -29
  34. package/package.json +1 -1
  35. package/types/mn-angular-lib-alert.d.ts +239 -241
  36. package/types/mn-angular-lib-bottom-sheet.d.ts +190 -150
  37. package/types/mn-angular-lib-button.d.ts +319 -317
  38. package/types/mn-angular-lib-calendar-core.d.ts +199 -209
  39. package/types/mn-angular-lib-calendar.d.ts +656 -511
  40. package/types/mn-angular-lib-collection.d.ts +1649 -1585
  41. package/types/mn-angular-lib-core.d.ts +524 -535
  42. package/types/mn-angular-lib-display.d.ts +946 -886
  43. package/types/mn-angular-lib-forms.d.ts +3012 -3013
  44. package/types/mn-angular-lib-keyboard.d.ts +125 -85
  45. package/types/mn-angular-lib-modal-core.d.ts +978 -994
  46. package/types/mn-angular-lib-modal-ui.d.ts +541 -493
  47. package/types/mn-angular-lib-modal.d.ts +24 -27
  48. package/types/mn-angular-lib-rich-text-editor.d.ts +131 -98
  49. package/types/mn-angular-lib-segmented.d.ts +354 -341
  50. package/types/mn-angular-lib-tab.d.ts +345 -336
  51. package/types/mn-angular-lib.d.ts +16 -16
  52. package/fesm2022/mn-angular-lib.mjs.map +0 -1
@@ -1,11 +1,7 @@
1
- import * as tailwind_variants from 'tailwind-variants';
2
- import { VariantProps } from 'tailwind-variants';
3
- import * as tailwind_merge from 'tailwind-merge';
4
- import * as i0 from '@angular/core';
5
- import { EventEmitter, OnChanges, OnInit } from '@angular/core';
6
- import * as _lucide_angular from '@lucide/angular';
7
- import { SafeHtml } from '@angular/platform-browser';
8
-
1
+ import { VariantProps } from "tailwind-variants";
2
+ import * as i0 from "@angular/core";
3
+ import { EventEmitter, OnChanges, OnInit } from "@angular/core";
4
+ import { SafeHtml } from "@angular/platform-browser";
9
5
  /**
10
6
  * Styling for {@link MnCard}, as tailwind-variants slots: `root` is the card element
11
7
  * itself, `accent` the optional bar along its top edge, `header` the heading row and
@@ -16,384 +12,382 @@ import { SafeHtml } from '@angular/platform-browser';
16
12
  * page background) and falls back to `base-100` otherwise, the same fallback device
17
13
  * `mnBadge` uses for its `-text` tokens.
18
14
  */
19
- declare const mnCardVariants: tailwind_variants.TVReturnType<{
20
- /**
21
- * Inner padding, and with it the gap between the card's children: a tile needs
22
- * less air than a section card, and a section card that had to say `gap-4` on
23
- * every use would drift.
24
- */
25
- padding: {
26
- sm: {
27
- root: string;
28
- };
29
- md: {
30
- root: string;
31
- };
32
- lg: {
33
- root: string;
34
- };
35
- };
36
- /** How the children flow: stacked (the default) or on one line, centred. */
37
- layout: {
38
- column: {
39
- root: string;
40
- };
41
- row: {
42
- root: string;
43
- };
44
- };
45
- /**
46
- * Hover response. None by default: a hover promises that a click does something, and
47
- * most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
48
- * destination and belongs on a card that is a link or a button; it brings the matching
49
- * keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
50
- * kept for a consumer that already asks for it.
51
- */
52
- hover: {
53
- none: {};
54
- shadow: {
55
- root: string;
56
- };
57
- lift: {
58
- root: string;
59
- };
60
- };
61
- /**
62
- * Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
63
- * defines them (a short rise-in, delayed per card through
64
- * {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
65
- * never see it. Off by default: a rise belongs to a card that is one of a list, so a
66
- * page's static cards do not all move at once.
67
- */
68
- enter: {
69
- none: {};
70
- rise: {
71
- root: string;
72
- };
73
- };
74
- /** Corner rounding, in mn-button's radius tokens. */
75
- borderRadius: {
76
- none: {
77
- root: string;
78
- };
79
- xs: {
80
- root: string;
81
- };
82
- sm: {
83
- root: string;
84
- };
85
- md: {
86
- root: string;
87
- };
88
- lg: {
89
- root: string;
90
- };
91
- xl: {
92
- root: string;
93
- };
94
- two_xl: {
95
- root: string;
96
- };
97
- three_xl: {
98
- root: string;
99
- };
100
- four_xl: {
101
- root: string;
102
- };
103
- };
104
- /**
105
- * Colour of the accent bar and of the heading's icon chip: the same palette as
106
- * mn-button and the icon chip. What the colour *means* (a kind, a status, a
107
- * module) is the consumer's choice; the card only renders it.
108
- */
109
- color: {
110
- primary: {
111
- accent: string;
112
- };
113
- secondary: {
114
- accent: string;
115
- };
116
- accent: {
117
- accent: string;
118
- };
119
- success: {
120
- accent: string;
121
- };
122
- warning: {
123
- accent: string;
124
- };
125
- danger: {
126
- accent: string;
127
- };
128
- gray: {
129
- accent: string;
130
- };
15
+ export declare const mnCardVariants: import("tailwind-variants").TVReturnType<{
16
+ /**
17
+ * Inner padding, and with it the gap between the card's children: a tile needs
18
+ * less air than a section card, and a section card that had to say `gap-4` on
19
+ * every use would drift.
20
+ */
21
+ padding: {
22
+ sm: {
23
+ root: string;
131
24
  };
25
+ md: {
26
+ root: string;
27
+ };
28
+ lg: {
29
+ root: string;
30
+ };
31
+ };
32
+ /** How the children flow: stacked (the default) or on one line, centred. */
33
+ layout: {
34
+ column: {
35
+ root: string;
36
+ };
37
+ row: {
38
+ root: string;
39
+ };
40
+ };
41
+ /**
42
+ * Hover response. None by default: a hover promises that a click does something, and
43
+ * most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
44
+ * destination and belongs on a card that is a link or a button; it brings the matching
45
+ * keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
46
+ * kept for a consumer that already asks for it.
47
+ */
48
+ hover: {
49
+ none: {};
50
+ shadow: {
51
+ root: string;
52
+ };
53
+ lift: {
54
+ root: string;
55
+ };
56
+ };
57
+ /**
58
+ * Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
59
+ * defines them (a short rise-in, delayed per card through
60
+ * {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
61
+ * never see it. Off by default: a rise belongs to a card that is one of a list, so a
62
+ * page's static cards do not all move at once.
63
+ */
64
+ enter: {
65
+ none: {};
66
+ rise: {
67
+ root: string;
68
+ };
69
+ };
70
+ /** Corner rounding, in mn-button's radius tokens. */
71
+ borderRadius: {
72
+ none: {
73
+ root: string;
74
+ };
75
+ xs: {
76
+ root: string;
77
+ };
78
+ sm: {
79
+ root: string;
80
+ };
81
+ md: {
82
+ root: string;
83
+ };
84
+ lg: {
85
+ root: string;
86
+ };
87
+ xl: {
88
+ root: string;
89
+ };
90
+ two_xl: {
91
+ root: string;
92
+ };
93
+ three_xl: {
94
+ root: string;
95
+ };
96
+ four_xl: {
97
+ root: string;
98
+ };
99
+ };
100
+ /**
101
+ * Colour of the accent bar and of the heading's icon chip: the same palette as
102
+ * mn-button and the icon chip. What the colour *means* (a kind, a status, a
103
+ * module) is the consumer's choice; the card only renders it.
104
+ */
105
+ color: {
106
+ primary: {
107
+ accent: string;
108
+ };
109
+ secondary: {
110
+ accent: string;
111
+ };
112
+ accent: {
113
+ accent: string;
114
+ };
115
+ success: {
116
+ accent: string;
117
+ };
118
+ warning: {
119
+ accent: string;
120
+ };
121
+ danger: {
122
+ accent: string;
123
+ };
124
+ gray: {
125
+ accent: string;
126
+ };
127
+ };
132
128
  }, {
133
- root: string;
134
- accent: string;
135
- header: string;
136
- title: string;
129
+ root: string;
130
+ accent: string;
131
+ header: string;
132
+ title: string;
137
133
  }, undefined, {
138
- /**
139
- * Inner padding, and with it the gap between the card's children: a tile needs
140
- * less air than a section card, and a section card that had to say `gap-4` on
141
- * every use would drift.
142
- */
143
- padding: {
144
- sm: {
145
- root: string;
146
- };
147
- md: {
148
- root: string;
149
- };
150
- lg: {
151
- root: string;
152
- };
153
- };
154
- /** How the children flow: stacked (the default) or on one line, centred. */
155
- layout: {
156
- column: {
157
- root: string;
158
- };
159
- row: {
160
- root: string;
161
- };
162
- };
163
- /**
164
- * Hover response. None by default: a hover promises that a click does something, and
165
- * most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
166
- * destination and belongs on a card that is a link or a button; it brings the matching
167
- * keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
168
- * kept for a consumer that already asks for it.
169
- */
170
- hover: {
171
- none: {};
172
- shadow: {
173
- root: string;
174
- };
175
- lift: {
176
- root: string;
177
- };
178
- };
179
- /**
180
- * Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
181
- * defines them (a short rise-in, delayed per card through
182
- * {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
183
- * never see it. Off by default: a rise belongs to a card that is one of a list, so a
184
- * page's static cards do not all move at once.
185
- */
186
- enter: {
187
- none: {};
188
- rise: {
189
- root: string;
190
- };
191
- };
192
- /** Corner rounding, in mn-button's radius tokens. */
193
- borderRadius: {
194
- none: {
195
- root: string;
196
- };
197
- xs: {
198
- root: string;
199
- };
200
- sm: {
201
- root: string;
202
- };
203
- md: {
204
- root: string;
205
- };
206
- lg: {
207
- root: string;
208
- };
209
- xl: {
210
- root: string;
211
- };
212
- two_xl: {
213
- root: string;
214
- };
215
- three_xl: {
216
- root: string;
217
- };
218
- four_xl: {
219
- root: string;
220
- };
221
- };
222
- /**
223
- * Colour of the accent bar and of the heading's icon chip: the same palette as
224
- * mn-button and the icon chip. What the colour *means* (a kind, a status, a
225
- * module) is the consumer's choice; the card only renders it.
226
- */
227
- color: {
228
- primary: {
229
- accent: string;
230
- };
231
- secondary: {
232
- accent: string;
233
- };
234
- accent: {
235
- accent: string;
236
- };
237
- success: {
238
- accent: string;
239
- };
240
- warning: {
241
- accent: string;
242
- };
243
- danger: {
244
- accent: string;
245
- };
246
- gray: {
247
- accent: string;
248
- };
134
+ /**
135
+ * Inner padding, and with it the gap between the card's children: a tile needs
136
+ * less air than a section card, and a section card that had to say `gap-4` on
137
+ * every use would drift.
138
+ */
139
+ padding: {
140
+ sm: {
141
+ root: string;
142
+ };
143
+ md: {
144
+ root: string;
249
145
  };
146
+ lg: {
147
+ root: string;
148
+ };
149
+ };
150
+ /** How the children flow: stacked (the default) or on one line, centred. */
151
+ layout: {
152
+ column: {
153
+ root: string;
154
+ };
155
+ row: {
156
+ root: string;
157
+ };
158
+ };
159
+ /**
160
+ * Hover response. None by default: a hover promises that a click does something, and
161
+ * most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
162
+ * destination and belongs on a card that is a link or a button; it brings the matching
163
+ * keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
164
+ * kept for a consumer that already asks for it.
165
+ */
166
+ hover: {
167
+ none: {};
168
+ shadow: {
169
+ root: string;
170
+ };
171
+ lift: {
172
+ root: string;
173
+ };
174
+ };
175
+ /**
176
+ * Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
177
+ * defines them (a short rise-in, delayed per card through
178
+ * {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
179
+ * never see it. Off by default: a rise belongs to a card that is one of a list, so a
180
+ * page's static cards do not all move at once.
181
+ */
182
+ enter: {
183
+ none: {};
184
+ rise: {
185
+ root: string;
186
+ };
187
+ };
188
+ /** Corner rounding, in mn-button's radius tokens. */
189
+ borderRadius: {
190
+ none: {
191
+ root: string;
192
+ };
193
+ xs: {
194
+ root: string;
195
+ };
196
+ sm: {
197
+ root: string;
198
+ };
199
+ md: {
200
+ root: string;
201
+ };
202
+ lg: {
203
+ root: string;
204
+ };
205
+ xl: {
206
+ root: string;
207
+ };
208
+ two_xl: {
209
+ root: string;
210
+ };
211
+ three_xl: {
212
+ root: string;
213
+ };
214
+ four_xl: {
215
+ root: string;
216
+ };
217
+ };
218
+ /**
219
+ * Colour of the accent bar and of the heading's icon chip: the same palette as
220
+ * mn-button and the icon chip. What the colour *means* (a kind, a status, a
221
+ * module) is the consumer's choice; the card only renders it.
222
+ */
223
+ color: {
224
+ primary: {
225
+ accent: string;
226
+ };
227
+ secondary: {
228
+ accent: string;
229
+ };
230
+ accent: {
231
+ accent: string;
232
+ };
233
+ success: {
234
+ accent: string;
235
+ };
236
+ warning: {
237
+ accent: string;
238
+ };
239
+ danger: {
240
+ accent: string;
241
+ };
242
+ gray: {
243
+ accent: string;
244
+ };
245
+ };
250
246
  }, {
251
- root: string;
252
- accent: string;
253
- header: string;
254
- title: string;
255
- }, tailwind_variants.TVReturnType<{
256
- /**
257
- * Inner padding, and with it the gap between the card's children: a tile needs
258
- * less air than a section card, and a section card that had to say `gap-4` on
259
- * every use would drift.
260
- */
261
- padding: {
262
- sm: {
263
- root: string;
264
- };
265
- md: {
266
- root: string;
267
- };
268
- lg: {
269
- root: string;
270
- };
271
- };
272
- /** How the children flow: stacked (the default) or on one line, centred. */
273
- layout: {
274
- column: {
275
- root: string;
276
- };
277
- row: {
278
- root: string;
279
- };
280
- };
281
- /**
282
- * Hover response. None by default: a hover promises that a click does something, and
283
- * most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
284
- * destination and belongs on a card that is a link or a button; it brings the matching
285
- * keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
286
- * kept for a consumer that already asks for it.
287
- */
288
- hover: {
289
- none: {};
290
- shadow: {
291
- root: string;
292
- };
293
- lift: {
294
- root: string;
295
- };
296
- };
297
- /**
298
- * Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
299
- * defines them (a short rise-in, delayed per card through
300
- * {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
301
- * never see it. Off by default: a rise belongs to a card that is one of a list, so a
302
- * page's static cards do not all move at once.
303
- */
304
- enter: {
305
- none: {};
306
- rise: {
307
- root: string;
308
- };
309
- };
310
- /** Corner rounding, in mn-button's radius tokens. */
311
- borderRadius: {
312
- none: {
313
- root: string;
314
- };
315
- xs: {
316
- root: string;
317
- };
318
- sm: {
319
- root: string;
320
- };
321
- md: {
322
- root: string;
323
- };
324
- lg: {
325
- root: string;
326
- };
327
- xl: {
328
- root: string;
329
- };
330
- two_xl: {
331
- root: string;
332
- };
333
- three_xl: {
334
- root: string;
335
- };
336
- four_xl: {
337
- root: string;
338
- };
339
- };
340
- /**
341
- * Colour of the accent bar and of the heading's icon chip: the same palette as
342
- * mn-button and the icon chip. What the colour *means* (a kind, a status, a
343
- * module) is the consumer's choice; the card only renders it.
344
- */
345
- color: {
346
- primary: {
347
- accent: string;
348
- };
349
- secondary: {
350
- accent: string;
351
- };
352
- accent: {
353
- accent: string;
354
- };
355
- success: {
356
- accent: string;
357
- };
358
- warning: {
359
- accent: string;
360
- };
361
- danger: {
362
- accent: string;
363
- };
364
- gray: {
365
- accent: string;
366
- };
247
+ root: string;
248
+ accent: string;
249
+ header: string;
250
+ title: string;
251
+ }, import("tailwind-variants").TVReturnTypeLike<{
252
+ /**
253
+ * Inner padding, and with it the gap between the card's children: a tile needs
254
+ * less air than a section card, and a section card that had to say `gap-4` on
255
+ * every use would drift.
256
+ */
257
+ padding: {
258
+ sm: {
259
+ root: string;
260
+ };
261
+ md: {
262
+ root: string;
367
263
  };
264
+ lg: {
265
+ root: string;
266
+ };
267
+ };
268
+ /** How the children flow: stacked (the default) or on one line, centred. */
269
+ layout: {
270
+ column: {
271
+ root: string;
272
+ };
273
+ row: {
274
+ root: string;
275
+ };
276
+ };
277
+ /**
278
+ * Hover response. None by default: a hover promises that a click does something, and
279
+ * most cards are settings, forms or facts that do nothing when clicked. `lift` promises a
280
+ * destination and belongs on a card that is a link or a button; it brings the matching
281
+ * keyboard focus ring, so a card that answers the pointer also answers Tab. `shadow` is
282
+ * kept for a consumer that already asks for it.
283
+ */
284
+ hover: {
285
+ none: {};
286
+ shadow: {
287
+ root: string;
288
+ };
289
+ lift: {
290
+ root: string;
291
+ };
292
+ };
293
+ /**
294
+ * Entrance. `rise` plays the consumer's `--animate-rise` keyframes when its theme
295
+ * defines them (a short rise-in, delayed per card through
296
+ * {@link MnCard.enterDelayMs}) and is a no-op otherwise; reduced-motion users
297
+ * never see it. Off by default: a rise belongs to a card that is one of a list, so a
298
+ * page's static cards do not all move at once.
299
+ */
300
+ enter: {
301
+ none: {};
302
+ rise: {
303
+ root: string;
304
+ };
305
+ };
306
+ /** Corner rounding, in mn-button's radius tokens. */
307
+ borderRadius: {
308
+ none: {
309
+ root: string;
310
+ };
311
+ xs: {
312
+ root: string;
313
+ };
314
+ sm: {
315
+ root: string;
316
+ };
317
+ md: {
318
+ root: string;
319
+ };
320
+ lg: {
321
+ root: string;
322
+ };
323
+ xl: {
324
+ root: string;
325
+ };
326
+ two_xl: {
327
+ root: string;
328
+ };
329
+ three_xl: {
330
+ root: string;
331
+ };
332
+ four_xl: {
333
+ root: string;
334
+ };
335
+ };
336
+ /**
337
+ * Colour of the accent bar and of the heading's icon chip: the same palette as
338
+ * mn-button and the icon chip. What the colour *means* (a kind, a status, a
339
+ * module) is the consumer's choice; the card only renders it.
340
+ */
341
+ color: {
342
+ primary: {
343
+ accent: string;
344
+ };
345
+ secondary: {
346
+ accent: string;
347
+ };
348
+ accent: {
349
+ accent: string;
350
+ };
351
+ success: {
352
+ accent: string;
353
+ };
354
+ warning: {
355
+ accent: string;
356
+ };
357
+ danger: {
358
+ accent: string;
359
+ };
360
+ gray: {
361
+ accent: string;
362
+ };
363
+ };
368
364
  }, {
369
- root: string;
370
- accent: string;
371
- header: string;
372
- title: string;
373
- }, undefined, unknown, unknown, undefined>>;
374
- type MnCardVariants = VariantProps<typeof mnCardVariants>;
375
-
365
+ root: string;
366
+ accent: string;
367
+ header: string;
368
+ title: string;
369
+ }>>;
370
+ export type MnCardVariants = VariantProps<typeof mnCardVariants>;
376
371
  /**
377
372
  * Configuration of one {@link MnCard}. Every field is optional; the defaults give the
378
373
  * compact stacked tile that does not react to the pointer, which is what most cards are.
379
374
  */
380
- type MnCardTypes = {
381
- /** Inner padding and child gap. `sm` for tiles, `md` for section cards, `lg` for hero cards. */
382
- padding: MnCardVariants['padding'];
383
- /** Stacked children (`column`, the default) or one centred line (`row`). */
384
- layout: MnCardVariants['layout'];
385
- /** Hover response: `none` (default), `lift` for a card that is a link or a button, or `shadow`. */
386
- hover: MnCardVariants['hover'];
387
- /** Entrance animation: `none` (default) or `rise` (needs the consumer's `--animate-rise`). */
388
- enter: MnCardVariants['enter'];
389
- /** Corner rounding. Defaults to `two_xl`. */
390
- borderRadius: MnCardVariants['borderRadius'];
391
- /** Colour of the accent bar and the heading's icon chip. Defaults to `primary`. */
392
- color: MnCardVariants['color'];
393
- /** Whether to draw the accent bar along the top edge. Defaults to false. */
394
- accent: boolean;
375
+ export type MnCardTypes = {
376
+ /** Inner padding and child gap. `sm` for tiles, `md` for section cards, `lg` for hero cards. */
377
+ padding: MnCardVariants['padding'];
378
+ /** Stacked children (`column`, the default) or one centred line (`row`). */
379
+ layout: MnCardVariants['layout'];
380
+ /** Hover response: `none` (default), `lift` for a card that is a link or a button, or `shadow`. */
381
+ hover: MnCardVariants['hover'];
382
+ /** Entrance animation: `none` (default) or `rise` (needs the consumer's `--animate-rise`). */
383
+ enter: MnCardVariants['enter'];
384
+ /** Corner rounding. Defaults to `two_xl`. */
385
+ borderRadius: MnCardVariants['borderRadius'];
386
+ /** Colour of the accent bar and the heading's icon chip. Defaults to `primary`. */
387
+ color: MnCardVariants['color'];
388
+ /** Whether to draw the accent bar along the top edge. Defaults to false. */
389
+ accent: boolean;
395
390
  };
396
-
397
391
  /**
398
392
  * The card: a rounded surface with a hairline border, a hover response and an
399
393
  * optional accent bar along its top edge. The body is whatever the consumer projects,
@@ -424,96 +418,117 @@ type MnCardTypes = {
424
418
  * The other members of the family build on this shell: {@link MnStatTile} for one
425
419
  * figure at a glance, and {@link MnProportionBar} for the bar inside a card.
426
420
  */
427
- declare class MnCard {
428
- /** Padding, layout, hover, entrance, radius, colour and accent; see {@link MnCardTypes}. */
429
- data: Partial<MnCardTypes>;
430
- /**
431
- * Section title, as a translation key or a literal. When set, the header row with
432
- * the icon chip and `h2` renders above the body. Deliberately not called `title`: a
433
- * static `title="..."` on the host would also become a browser tooltip.
434
- */
435
- heading?: string;
436
- /**
437
- * Delay before the entrance animation starts, in milliseconds, so a row of cards
438
- * can rise one after another. Ignored when {@link MnCardTypes.enter} is `none`.
439
- */
440
- enterDelayMs: number;
441
- /** Resolved slot classes for the current configuration. */
442
- get styles(): {
443
- root: (slotProps?: ({
444
- color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
445
- padding?: "md" | "sm" | "lg" | undefined;
446
- layout?: "column" | "row" | undefined;
447
- hover?: "none" | "shadow" | "lift" | undefined;
448
- enter?: "none" | "rise" | undefined;
449
- borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
450
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
451
- accent: (slotProps?: ({
452
- color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
453
- padding?: "md" | "sm" | "lg" | undefined;
454
- layout?: "column" | "row" | undefined;
455
- hover?: "none" | "shadow" | "lift" | undefined;
456
- enter?: "none" | "rise" | undefined;
457
- borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
458
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
459
- header: (slotProps?: ({
460
- color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
461
- padding?: "md" | "sm" | "lg" | undefined;
462
- layout?: "column" | "row" | undefined;
463
- hover?: "none" | "shadow" | "lift" | undefined;
464
- enter?: "none" | "rise" | undefined;
465
- borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
466
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
467
- title: (slotProps?: ({
468
- color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
469
- padding?: "md" | "sm" | "lg" | undefined;
470
- layout?: "column" | "row" | undefined;
471
- hover?: "none" | "shadow" | "lift" | undefined;
472
- enter?: "none" | "rise" | undefined;
473
- borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
474
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
475
- } & {
476
- root: (slotProps?: ({
477
- color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
478
- padding?: "md" | "sm" | "lg" | undefined;
479
- layout?: "column" | "row" | undefined;
480
- hover?: "none" | "shadow" | "lift" | undefined;
481
- enter?: "none" | "rise" | undefined;
482
- borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
483
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
484
- accent: (slotProps?: ({
485
- color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
486
- padding?: "md" | "sm" | "lg" | undefined;
487
- layout?: "column" | "row" | undefined;
488
- hover?: "none" | "shadow" | "lift" | undefined;
489
- enter?: "none" | "rise" | undefined;
490
- borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
491
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
492
- header: (slotProps?: ({
493
- color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
494
- padding?: "md" | "sm" | "lg" | undefined;
495
- layout?: "column" | "row" | undefined;
496
- hover?: "none" | "shadow" | "lift" | undefined;
497
- enter?: "none" | "rise" | undefined;
498
- borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
499
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
500
- title: (slotProps?: ({
501
- color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
502
- padding?: "md" | "sm" | "lg" | undefined;
503
- layout?: "column" | "row" | undefined;
504
- hover?: "none" | "shadow" | "lift" | undefined;
505
- enter?: "none" | "rise" | undefined;
506
- borderRadius?: "md" | "xs" | "sm" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
507
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
508
- } & {};
509
- /** The card element's own classes; the consumer's static classes merge with them. */
510
- get hostClasses(): string;
511
- /** Staggers the entrance per card. */
512
- get animationDelay(): string;
513
- static ɵfac: i0.ɵɵFactoryDeclaration<MnCard, never>;
514
- static ɵcmp: i0.ɵɵComponentDeclaration<MnCard, "mn-card, [mnCard]", never, { "data": { "alias": "data"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "enterDelayMs": { "alias": "enterDelayMs"; "required": false; }; }, {}, never, ["[cardIcon]", "[cardHeaderEnd]", "*"], true, never>;
421
+ export declare class MnCard {
422
+ /** Padding, layout, hover, entrance, radius, colour and accent; see {@link MnCardTypes}. */
423
+ data: Partial<MnCardTypes>;
424
+ /**
425
+ * Section title, as a translation key or a literal. When set, the header row with
426
+ * the icon chip and `h2` renders above the body. Deliberately not called `title`: a
427
+ * static `title="..."` on the host would also become a browser tooltip.
428
+ */
429
+ heading?: string;
430
+ /**
431
+ * Delay before the entrance animation starts, in milliseconds, so a row of cards
432
+ * can rise one after another. Ignored when {@link MnCardTypes.enter} is `none`.
433
+ */
434
+ enterDelayMs: number;
435
+ /** Resolved slot classes for the current configuration. */
436
+ get styles(): {
437
+ root: (slotProps?: ({
438
+ color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
439
+ padding?: "sm" | "md" | "lg" | undefined;
440
+ layout?: "column" | "row" | undefined;
441
+ hover?: "none" | "shadow" | "lift" | undefined;
442
+ enter?: "none" | "rise" | undefined;
443
+ borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
444
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
445
+ accent: (slotProps?: ({
446
+ color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
447
+ padding?: "sm" | "md" | "lg" | undefined;
448
+ layout?: "column" | "row" | undefined;
449
+ hover?: "none" | "shadow" | "lift" | undefined;
450
+ enter?: "none" | "rise" | undefined;
451
+ borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
452
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
453
+ header: (slotProps?: ({
454
+ color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
455
+ padding?: "sm" | "md" | "lg" | undefined;
456
+ layout?: "column" | "row" | undefined;
457
+ hover?: "none" | "shadow" | "lift" | undefined;
458
+ enter?: "none" | "rise" | undefined;
459
+ borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
460
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
461
+ title: (slotProps?: ({
462
+ color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
463
+ padding?: "sm" | "md" | "lg" | undefined;
464
+ layout?: "column" | "row" | undefined;
465
+ hover?: "none" | "shadow" | "lift" | undefined;
466
+ enter?: "none" | "rise" | undefined;
467
+ borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
468
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
469
+ } & {
470
+ root: (slotProps?: ({
471
+ color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
472
+ padding?: "sm" | "md" | "lg" | undefined;
473
+ layout?: "column" | "row" | undefined;
474
+ hover?: "none" | "shadow" | "lift" | undefined;
475
+ enter?: "none" | "rise" | undefined;
476
+ borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
477
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
478
+ accent: (slotProps?: ({
479
+ color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
480
+ padding?: "sm" | "md" | "lg" | undefined;
481
+ layout?: "column" | "row" | undefined;
482
+ hover?: "none" | "shadow" | "lift" | undefined;
483
+ enter?: "none" | "rise" | undefined;
484
+ borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
485
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
486
+ header: (slotProps?: ({
487
+ color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
488
+ padding?: "sm" | "md" | "lg" | undefined;
489
+ layout?: "column" | "row" | undefined;
490
+ hover?: "none" | "shadow" | "lift" | undefined;
491
+ enter?: "none" | "rise" | undefined;
492
+ borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
493
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
494
+ title: (slotProps?: ({
495
+ color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
496
+ padding?: "sm" | "md" | "lg" | undefined;
497
+ layout?: "column" | "row" | undefined;
498
+ hover?: "none" | "shadow" | "lift" | undefined;
499
+ enter?: "none" | "rise" | undefined;
500
+ borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
501
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
502
+ } & {
503
+ base: (slotProps?: ({
504
+ color?: "primary" | "secondary" | "accent" | "success" | "warning" | "danger" | "gray" | undefined;
505
+ padding?: "sm" | "md" | "lg" | undefined;
506
+ layout?: "column" | "row" | undefined;
507
+ hover?: "none" | "shadow" | "lift" | undefined;
508
+ enter?: "none" | "rise" | undefined;
509
+ borderRadius?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "two_xl" | "three_xl" | "four_xl" | undefined;
510
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
511
+ };
512
+ /** The card element's own classes; the consumer's static classes merge with them. */
513
+ get hostClasses(): string;
514
+ /** Staggers the entrance per card. */
515
+ get animationDelay(): string;
516
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnCard, never>;
517
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnCard, "mn-card, [mnCard]", never, {
518
+ "data": {
519
+ "alias": "data";
520
+ "required": false;
521
+ };
522
+ "heading": {
523
+ "alias": "heading";
524
+ "required": false;
525
+ };
526
+ "enterDelayMs": {
527
+ "alias": "enterDelayMs";
528
+ "required": false;
529
+ };
530
+ }, {}, never, ["[cardIcon]", "[cardHeaderEnd]", "*"], true, never>;
515
531
  }
516
-
517
532
  /**
518
533
  * Styling for {@link MnIconChip}: one 10% wash of the colour behind an icon drawn in
519
534
  * the consumer's `--color-<colour>-text` token when it defines one (the shade it uses
@@ -521,80 +536,78 @@ declare class MnCard {
521
536
  * same device `mnBadge` uses. The radius grows with the box so the corner reads the
522
537
  * same at every size.
523
538
  */
524
- declare const mnIconChipVariants: tailwind_variants.TVReturnType<{
525
- /**
526
- * `xs` for compact rows and inline labels, `sm` for list rows, `md` for section-card headers
527
- * and stat tiles, `lg` for page headers, `xl` for a lone hero or empty-state icon.
528
- */
529
- size: {
530
- xs: string;
531
- sm: string;
532
- md: string;
533
- lg: string;
534
- xl: string;
535
- };
536
- color: {
537
- primary: string;
538
- secondary: string;
539
- accent: string;
540
- success: string;
541
- warning: string;
542
- danger: string;
543
- gray: string;
544
- };
539
+ export declare const mnIconChipVariants: import("tailwind-variants").TVReturnType<{
540
+ /**
541
+ * `xs` for compact rows and inline labels, `sm` for list rows, `md` for section-card headers
542
+ * and stat tiles, `lg` for page headers, `xl` for a lone hero or empty-state icon.
543
+ */
544
+ size: {
545
+ xs: "h-8 w-8 rounded-lg";
546
+ sm: "h-9 w-9 rounded-lg";
547
+ md: "h-10 w-10 rounded-xl";
548
+ lg: "h-12 w-12 rounded-2xl";
549
+ xl: "h-14 w-14 rounded-2xl";
550
+ };
551
+ color: {
552
+ primary: "bg-primary/10 text-(--color-primary-text,var(--color-primary))";
553
+ secondary: "bg-secondary/10 text-(--color-secondary-text,var(--color-secondary))";
554
+ accent: "bg-accent/10 text-(--color-accent-text,var(--color-accent))";
555
+ success: "bg-success/10 text-(--color-success-text,var(--color-success))";
556
+ warning: "bg-warning/10 text-(--color-warning-text,var(--color-warning))";
557
+ danger: "bg-error/10 text-(--color-error-text,var(--color-error))";
558
+ gray: "bg-base-content/10 text-base-content/70";
559
+ };
545
560
  }, undefined, "inline-flex shrink-0 items-center justify-center", {
546
- /**
547
- * `xs` for compact rows and inline labels, `sm` for list rows, `md` for section-card headers
548
- * and stat tiles, `lg` for page headers, `xl` for a lone hero or empty-state icon.
549
- */
550
- size: {
551
- xs: string;
552
- sm: string;
553
- md: string;
554
- lg: string;
555
- xl: string;
556
- };
557
- color: {
558
- primary: string;
559
- secondary: string;
560
- accent: string;
561
- success: string;
562
- warning: string;
563
- danger: string;
564
- gray: string;
565
- };
566
- }, undefined, tailwind_variants.TVReturnType<{
567
- /**
568
- * `xs` for compact rows and inline labels, `sm` for list rows, `md` for section-card headers
569
- * and stat tiles, `lg` for page headers, `xl` for a lone hero or empty-state icon.
570
- */
571
- size: {
572
- xs: string;
573
- sm: string;
574
- md: string;
575
- lg: string;
576
- xl: string;
577
- };
578
- color: {
579
- primary: string;
580
- secondary: string;
581
- accent: string;
582
- success: string;
583
- warning: string;
584
- danger: string;
585
- gray: string;
586
- };
587
- }, undefined, "inline-flex shrink-0 items-center justify-center", unknown, unknown, undefined>>;
588
- type MnIconChipVariants = VariantProps<typeof mnIconChipVariants>;
589
-
561
+ /**
562
+ * `xs` for compact rows and inline labels, `sm` for list rows, `md` for section-card headers
563
+ * and stat tiles, `lg` for page headers, `xl` for a lone hero or empty-state icon.
564
+ */
565
+ size: {
566
+ xs: "h-8 w-8 rounded-lg";
567
+ sm: "h-9 w-9 rounded-lg";
568
+ md: "h-10 w-10 rounded-xl";
569
+ lg: "h-12 w-12 rounded-2xl";
570
+ xl: "h-14 w-14 rounded-2xl";
571
+ };
572
+ color: {
573
+ primary: "bg-primary/10 text-(--color-primary-text,var(--color-primary))";
574
+ secondary: "bg-secondary/10 text-(--color-secondary-text,var(--color-secondary))";
575
+ accent: "bg-accent/10 text-(--color-accent-text,var(--color-accent))";
576
+ success: "bg-success/10 text-(--color-success-text,var(--color-success))";
577
+ warning: "bg-warning/10 text-(--color-warning-text,var(--color-warning))";
578
+ danger: "bg-error/10 text-(--color-error-text,var(--color-error))";
579
+ gray: "bg-base-content/10 text-base-content/70";
580
+ };
581
+ }, undefined, import("tailwind-variants").TVReturnTypeLike<{
582
+ /**
583
+ * `xs` for compact rows and inline labels, `sm` for list rows, `md` for section-card headers
584
+ * and stat tiles, `lg` for page headers, `xl` for a lone hero or empty-state icon.
585
+ */
586
+ size: {
587
+ xs: "h-8 w-8 rounded-lg";
588
+ sm: "h-9 w-9 rounded-lg";
589
+ md: "h-10 w-10 rounded-xl";
590
+ lg: "h-12 w-12 rounded-2xl";
591
+ xl: "h-14 w-14 rounded-2xl";
592
+ };
593
+ color: {
594
+ primary: "bg-primary/10 text-(--color-primary-text,var(--color-primary))";
595
+ secondary: "bg-secondary/10 text-(--color-secondary-text,var(--color-secondary))";
596
+ accent: "bg-accent/10 text-(--color-accent-text,var(--color-accent))";
597
+ success: "bg-success/10 text-(--color-success-text,var(--color-success))";
598
+ warning: "bg-warning/10 text-(--color-warning-text,var(--color-warning))";
599
+ danger: "bg-error/10 text-(--color-error-text,var(--color-error))";
600
+ gray: "bg-base-content/10 text-base-content/70";
601
+ };
602
+ }, undefined>>;
603
+ export type MnIconChipVariants = VariantProps<typeof mnIconChipVariants>;
590
604
  /** Configuration of one {@link MnIconChip}. Both fields are optional. */
591
- type MnIconChipTypes = {
592
- /** Box size. Defaults to `md`. */
593
- size: MnIconChipVariants['size'];
594
- /** Colour of the wash and the icon. Defaults to `primary`. */
595
- color: MnIconChipVariants['color'];
605
+ export type MnIconChipTypes = {
606
+ /** Box size. Defaults to `md`. */
607
+ size: MnIconChipVariants['size'];
608
+ /** Colour of the wash and the icon. Defaults to `primary`. */
609
+ color: MnIconChipVariants['color'];
596
610
  };
597
-
598
611
  /**
599
612
  * The tinted square that carries an icon in front of a card title, a stat or a list
600
613
  * row: the one place a colour says "what kind of thing this is". Project the icon as
@@ -609,19 +622,23 @@ type MnIconChipTypes = {
609
622
  * </mn-icon-chip>
610
623
  * ```
611
624
  */
612
- declare class MnIconChip {
613
- /** Size and colour; see {@link MnIconChipTypes}. */
614
- data: Partial<MnIconChipTypes>;
615
- /** The chip's own classes; the consumer's static classes merge with them. */
616
- get hostClasses(): string;
617
- static ɵfac: i0.ɵɵFactoryDeclaration<MnIconChip, never>;
618
- static ɵcmp: i0.ɵɵComponentDeclaration<MnIconChip, "mn-icon-chip", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, ["*"], true, never>;
625
+ export declare class MnIconChip {
626
+ /** Size and colour; see {@link MnIconChipTypes}. */
627
+ data: Partial<MnIconChipTypes>;
628
+ /** The chip's own classes; the consumer's static classes merge with them. */
629
+ get hostClasses(): string;
630
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnIconChip, never>;
631
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnIconChip, "mn-icon-chip", never, {
632
+ "data": {
633
+ "alias": "data";
634
+ "required": false;
635
+ };
636
+ }, {}, never, ["*"], true, never>;
619
637
  }
620
-
621
638
  /** Configuration of one {@link MnStatTile}. */
622
- type MnStatTileTypes = {
623
- /** Colour of the chip; the number itself stays in the base text colour. Defaults to `primary`. */
624
- color: MnIconChipVariants['color'];
639
+ export type MnStatTileTypes = {
640
+ /** Colour of the chip; the number itself stays in the base text colour. Defaults to `primary`. */
641
+ color: MnIconChipVariants['color'];
625
642
  };
626
643
  /**
627
644
  * One fact at a glance: a tinted icon chip, a muted label and a large tabular number,
@@ -639,49 +656,64 @@ type MnStatTileTypes = {
639
656
  * </div>
640
657
  * ```
641
658
  */
642
- declare class MnStatTile {
643
- /** Caption under the number, as a translation key or a literal. */
644
- label: string;
645
- /** The figure, already formatted for display. */
646
- value: string | number;
647
- /**
648
- * The figure has not arrived yet: a skeleton takes the number's place, the trailing slot is
649
- * held back and the tile is marked busy. Label and icon stay, so nothing moves when it lands.
650
- */
651
- loading: boolean;
652
- /** Colour of the chip; see {@link MnStatTileTypes}. */
653
- data: Partial<MnStatTileTypes>;
654
- /** Grows to share its row and never forces the row wider than its siblings. */
655
- readonly hostClasses = "flex flex-1 basis-40 min-w-0";
656
- static ɵfac: i0.ɵɵFactoryDeclaration<MnStatTile, never>;
657
- static ɵcmp: i0.ɵɵComponentDeclaration<MnStatTile, "mn-stat-tile", never, { "label": { "alias": "label"; "required": true; }; "value": { "alias": "value"; "required": true; }; "loading": { "alias": "loading"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, ["*", "[trailing]"], true, never>;
659
+ export declare class MnStatTile {
660
+ /** Caption under the number, as a translation key or a literal. */
661
+ label: string;
662
+ /** The figure, already formatted for display. */
663
+ value: string | number;
664
+ /**
665
+ * The figure has not arrived yet: a skeleton takes the number's place, the trailing slot is
666
+ * held back and the tile is marked busy. Label and icon stay, so nothing moves when it lands.
667
+ */
668
+ loading: boolean;
669
+ /** Colour of the chip; see {@link MnStatTileTypes}. */
670
+ data: Partial<MnStatTileTypes>;
671
+ /** Grows to share its row and never forces the row wider than its siblings. */
672
+ readonly hostClasses = "flex flex-1 basis-40 min-w-0";
673
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnStatTile, never>;
674
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnStatTile, "mn-stat-tile", never, {
675
+ "label": {
676
+ "alias": "label";
677
+ "required": true;
678
+ };
679
+ "value": {
680
+ "alias": "value";
681
+ "required": true;
682
+ };
683
+ "loading": {
684
+ "alias": "loading";
685
+ "required": false;
686
+ };
687
+ "data": {
688
+ "alias": "data";
689
+ "required": false;
690
+ };
691
+ }, {}, never, ["*", "[trailing]"], true, never>;
658
692
  }
659
-
660
693
  /** One coloured run of a {@link MnProportionBar}: how much of the whole it covers, and in which colour. */
661
- type MnProportionSegment = {
662
- /** Amount in the same unit as the other segments and the total. */
663
- value: number;
664
- /** Colour of this run; `gray` for the part that has no answer yet. */
665
- color: NonNullable<MnIconChipVariants['color']>;
666
- /**
667
- * Draw the run as a pale tint of its colour instead of solid. For a part that is on its way but
668
- * not there yet, next to a solid run of the same colour: spots asked about but not answered,
669
- * payments announced but not received.
670
- */
671
- soft?: boolean;
694
+ export type MnProportionSegment = {
695
+ /** Amount in the same unit as the other segments and the total. */
696
+ value: number;
697
+ /** Colour of this run; `gray` for the part that has no answer yet. */
698
+ color: NonNullable<MnIconChipVariants['color']>;
699
+ /**
700
+ * Draw the run as a pale tint of its colour instead of solid. For a part that is on its way but
701
+ * not there yet, next to a solid run of the same colour: spots asked about but not answered,
702
+ * payments announced but not received.
703
+ */
704
+ soft?: boolean;
672
705
  };
673
706
  /** Configuration of one {@link MnProportionBar}. */
674
- type MnProportionBarTypes = {
675
- /** Track thickness: `sm` inside dense rows, `md` (default) under a section title. */
676
- height: 'sm' | 'md';
707
+ export type MnProportionBarTypes = {
708
+ /** Track thickness: `sm` inside dense rows, `md` (default) under a section title. */
709
+ height: 'sm' | 'md';
677
710
  };
678
-
679
711
  /** A segment resolved to a rendered width. */
680
- type MnRenderedProportionSegment = {
681
- /** Percentage of the track this run covers. */
682
- widthPct: number;
683
- /** Fill class for the run. */
684
- fillClass: string;
712
+ export type MnRenderedProportionSegment = {
713
+ /** Percentage of the track this run covers. */
714
+ widthPct: number;
715
+ /** Fill class for the run. */
716
+ fillClass: string;
685
717
  };
686
718
  /**
687
719
  * The proportional bar every turnout, budget, capacity and collection figure draws:
@@ -705,36 +737,56 @@ type MnRenderedProportionSegment = {
705
737
  * </mn-proportion-bar>
706
738
  * ```
707
739
  */
708
- declare class MnProportionBar {
709
- /** The coloured runs, in draw order from the left. */
710
- segments: MnProportionSegment[];
711
- /** The whole the segments are measured against; defaults to their sum. */
712
- total?: number | null;
713
- /** Accessible name for the bar as a whole, as a translation key or a literal. */
714
- ariaLabel: string;
715
- /**
716
- * `{{name}}` interpolation values for {@link ariaLabel}, so a name that quotes the figures
717
- * ("3 of 8 places filled") can still be passed as a key and translated here, in the active
718
- * locale, rather than as a sentence the caller translated up front. A `count` selects the
719
- * plural wording like any other `translate` call.
720
- */
721
- ariaLabelParams?: Record<string, string | number>;
722
- /** Track thickness; see {@link MnProportionBarTypes}. */
723
- data: Partial<MnProportionBarTypes>;
724
- /** Resolves the accessible name against the app's bundle. */
725
- private readonly lang;
726
- /** The translated accessible name. */
727
- get label(): string;
728
- /** Every class on the track element. */
729
- get trackClass(): string;
730
- /** The denominator actually used: the explicit total when positive, else the segment sum. */
731
- private get denominator();
732
- /** Segments with a width, empty ones dropped. */
733
- get rendered(): MnRenderedProportionSegment[];
734
- static ɵfac: i0.ɵɵFactoryDeclaration<MnProportionBar, never>;
735
- static ɵcmp: i0.ɵɵComponentDeclaration<MnProportionBar, "mn-proportion-bar", never, { "segments": { "alias": "segments"; "required": true; }; "total": { "alias": "total"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": true; }; "ariaLabelParams": { "alias": "ariaLabelParams"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
740
+ export declare class MnProportionBar {
741
+ /** The coloured runs, in draw order from the left. */
742
+ segments: MnProportionSegment[];
743
+ /** The whole the segments are measured against; defaults to their sum. */
744
+ total?: number | null;
745
+ /** Accessible name for the bar as a whole, as a translation key or a literal. */
746
+ ariaLabel: string;
747
+ /**
748
+ * `{{name}}` interpolation values for {@link ariaLabel}, so a name that quotes the figures
749
+ * ("3 of 8 places filled") can still be passed as a key and translated here, in the active
750
+ * locale, rather than as a sentence the caller translated up front. A `count` selects the
751
+ * plural wording like any other `translate` call.
752
+ */
753
+ ariaLabelParams?: Record<string, string | number>;
754
+ /** Track thickness; see {@link MnProportionBarTypes}. */
755
+ data: Partial<MnProportionBarTypes>;
756
+ /** Resolves the accessible name against the app's bundle. */
757
+ private readonly lang;
758
+ /** The translated accessible name. */
759
+ get label(): string;
760
+ /** Every class on the track element. */
761
+ get trackClass(): string;
762
+ /** The denominator actually used: the explicit total when positive, else the segment sum. */
763
+ private get denominator();
764
+ /** Segments with a width, empty ones dropped. */
765
+ get rendered(): MnRenderedProportionSegment[];
766
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnProportionBar, never>;
767
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnProportionBar, "mn-proportion-bar", never, {
768
+ "segments": {
769
+ "alias": "segments";
770
+ "required": true;
771
+ };
772
+ "total": {
773
+ "alias": "total";
774
+ "required": false;
775
+ };
776
+ "ariaLabel": {
777
+ "alias": "ariaLabel";
778
+ "required": true;
779
+ };
780
+ "ariaLabelParams": {
781
+ "alias": "ariaLabelParams";
782
+ "required": false;
783
+ };
784
+ "data": {
785
+ "alias": "data";
786
+ "required": false;
787
+ };
788
+ }, {}, never, never, true, never>;
736
789
  }
737
-
738
790
  /**
739
791
  * A single crumb in the breadcrumb trail.
740
792
  *
@@ -743,13 +795,13 @@ declare class MnProportionBar {
743
795
  * {@link onClick}. The library stays router-agnostic — an app wires SPA
744
796
  * navigation through `onClick`/`crumbClick`, or lets the `href` anchor navigate.
745
797
  */
746
- type MnBreadcrumbItem = {
747
- /** Translation key or literal label for the crumb. */
748
- label: string;
749
- /** Optional link target; when set the crumb renders as an `<a href>`. */
750
- href?: string;
751
- /** Optional callback invoked on click (fires alongside `crumbClick`). */
752
- onClick?: () => void;
798
+ export type MnBreadcrumbItem = {
799
+ /** Translation key or literal label for the crumb. */
800
+ label: string;
801
+ /** Optional link target; when set the crumb renders as an `<a href>`. */
802
+ href?: string;
803
+ /** Optional callback invoked on click (fires alongside `crumbClick`). */
804
+ onClick?: () => void;
753
805
  };
754
806
  /**
755
807
  * Data source for {@link MnBreadcrumbs}.
@@ -759,26 +811,25 @@ type MnBreadcrumbItem = {
759
811
  * component degrades to a single "Back" control: it navigates to
760
812
  * {@link backHref} when given, otherwise steps back through browser history.
761
813
  */
762
- type MnBreadcrumbsData = {
763
- /** Ordered crumbs root → current. Empty ⇒ the "Back" fallback renders instead. */
764
- items: MnBreadcrumbItem[];
765
- /** Fallback "Back" target. Set ⇒ renders `<a href>`; unset ⇒ `history.back()`. */
766
- backHref?: string;
767
- /** Translation key or literal for the "Back" label. Defaults to `'back'`. */
768
- backLabel?: string;
769
- /** Visual scale. Defaults to `'md'`. */
770
- size?: 'sm' | 'md';
771
- /**
772
- * What the trail does on a narrow screen (below `sm`). Defaults to `'parent'`:
773
- * the crumbs give way to the parent crumb alone, drawn as a back control,
774
- * because a hierarchy read on a phone is a way up rather than a map, and an
775
- * uncollapsed trail wraps over three lines above the title it belongs to.
776
- * `'never'` keeps every crumb at every width, for a page where the trail
777
- * itself is the content.
778
- */
779
- collapse?: 'parent' | 'never';
814
+ export type MnBreadcrumbsData = {
815
+ /** Ordered crumbs root → current. Empty ⇒ the "Back" fallback renders instead. */
816
+ items: MnBreadcrumbItem[];
817
+ /** Fallback "Back" target. Set ⇒ renders `<a href>`; unset ⇒ `history.back()`. */
818
+ backHref?: string;
819
+ /** Translation key or literal for the "Back" label. Defaults to `'back'`. */
820
+ backLabel?: string;
821
+ /** Visual scale. Defaults to `'md'`. */
822
+ size?: 'sm' | 'md';
823
+ /**
824
+ * What the trail does on a narrow screen (below `sm`). Defaults to `'parent'`:
825
+ * the crumbs give way to the parent crumb alone, drawn as a back control,
826
+ * because a hierarchy read on a phone is a way up rather than a map, and an
827
+ * uncollapsed trail wraps over three lines above the title it belongs to.
828
+ * `'never'` keeps every crumb at every width, for a page where the trail
829
+ * itself is the content.
830
+ */
831
+ collapse?: 'parent' | 'never';
780
832
  };
781
-
782
833
  /**
783
834
  * A flexible breadcrumb trail.
784
835
  *
@@ -798,122 +849,134 @@ type MnBreadcrumbsData = {
798
849
  * otherwise clicks emit outputs for the app to handle. Only the Back fallback
799
850
  * with no `href` reaches for `history.back()`.
800
851
  */
801
- declare class MnBreadcrumbs {
802
- /** Lucide icons the template renders. */
803
- protected readonly icons: Record<"ChevronLeft" | "ChevronRight", _lucide_angular.LucideIconData>;
804
- /** Trail crumbs and Back-fallback configuration. */
805
- data: MnBreadcrumbsData;
806
- /** Emits the crumb that was clicked (non-current crumbs only). */
807
- crumbClick: EventEmitter<MnBreadcrumbItem>;
808
- /** Emits when the fallback "Back" control is activated. */
809
- back: EventEmitter<void>;
810
- /** Conventional key an app defines to translate the Back control's label. */
811
- private static readonly BACK_LABEL_KEY;
812
- /** Conventional key an app defines to name the navigation landmark. */
813
- private static readonly NAV_LABEL_KEY;
814
- /** Resolves this component's own labels against the app's bundle. */
815
- private readonly lang;
816
- /** Resolved tailwind-variants slot functions for the current size. */
817
- get styles(): {
818
- root: (slotProps?: ({
819
- size?: "md" | "sm" | undefined;
820
- collapsible?: boolean | undefined;
821
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
822
- list: (slotProps?: ({
823
- size?: "md" | "sm" | undefined;
824
- collapsible?: boolean | undefined;
825
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
826
- link: (slotProps?: ({
827
- size?: "md" | "sm" | undefined;
828
- collapsible?: boolean | undefined;
829
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
830
- current: (slotProps?: ({
831
- size?: "md" | "sm" | undefined;
832
- collapsible?: boolean | undefined;
833
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
834
- separator: (slotProps?: ({
835
- size?: "md" | "sm" | undefined;
836
- collapsible?: boolean | undefined;
837
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
838
- back: (slotProps?: ({
839
- size?: "md" | "sm" | undefined;
840
- collapsible?: boolean | undefined;
841
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
842
- collapsed: (slotProps?: ({
843
- size?: "md" | "sm" | undefined;
844
- collapsible?: boolean | undefined;
845
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
846
- } & {
847
- root: (slotProps?: ({
848
- size?: "md" | "sm" | undefined;
849
- collapsible?: boolean | undefined;
850
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
851
- list: (slotProps?: ({
852
- size?: "md" | "sm" | undefined;
853
- collapsible?: boolean | undefined;
854
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
855
- link: (slotProps?: ({
856
- size?: "md" | "sm" | undefined;
857
- collapsible?: boolean | undefined;
858
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
859
- current: (slotProps?: ({
860
- size?: "md" | "sm" | undefined;
861
- collapsible?: boolean | undefined;
862
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
863
- separator: (slotProps?: ({
864
- size?: "md" | "sm" | undefined;
865
- collapsible?: boolean | undefined;
866
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
867
- back: (slotProps?: ({
868
- size?: "md" | "sm" | undefined;
869
- collapsible?: boolean | undefined;
870
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
871
- collapsed: (slotProps?: ({
872
- size?: "md" | "sm" | undefined;
873
- collapsible?: boolean | undefined;
874
- } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
875
- } & {};
876
- /** Whether the parent crumb replaces the trail below `sm`. */
877
- get collapsesToParent(): boolean;
878
- /**
879
- * The crumb one level above the current page, or `null` when the trail stays
880
- * whole: a single crumb has nowhere to go up to, and `'never'` asks for every
881
- * crumb at every width.
882
- */
883
- get parentCrumb(): MnBreadcrumbItem | null;
884
- /**
885
- * Accessible name of the `<nav>` landmark.
886
- *
887
- * A landmark's name is announced verbatim, so leaving it as a hardcoded English
888
- * "Breadcrumb" put one English word into every page of a translated app — in the
889
- * one place only screen-reader users hear.
890
- */
891
- get navLabel(): string;
892
- /** Whether a linkable trail should render (vs the Back fallback). */
893
- get hasTrail(): boolean;
894
- /**
895
- * Text of the Back control, already translated.
896
- *
897
- * `data.backLabel` is a key (or a literal, which `translate` passes through
898
- * unchanged). Without one this falls back to the conventional key and then to
899
- * English — never to a raw key: the old default was the bare key `'back'`, which
900
- * the template's translate pipe echoed as lowercase "back" in every app that had
901
- * not happened to define it.
902
- */
903
- get backLabel(): string;
904
- /** The last crumb is the current page and is rendered as plain text. */
905
- isCurrent(index: number): boolean;
906
- /** Runs a crumb's own callback and notifies listeners of the click. */
907
- onCrumb(item: MnBreadcrumbItem): void;
908
- /**
909
- * Fallback Back action. Always emits `back` for listeners; when no `backHref`
910
- * anchor is carrying the navigation, steps back through browser history.
911
- */
912
- onBack(): void;
913
- static ɵfac: i0.ɵɵFactoryDeclaration<MnBreadcrumbs, never>;
914
- static ɵcmp: i0.ɵɵComponentDeclaration<MnBreadcrumbs, "mn-breadcrumbs", never, { "data": { "alias": "data"; "required": false; }; }, { "crumbClick": "crumbClick"; "back": "back"; }, never, never, true, never>;
852
+ export declare class MnBreadcrumbs {
853
+ /** Lucide icons the template renders. */
854
+ protected readonly icons: Record<"ChevronLeft" | "ChevronRight", import("@lucide/angular").LucideIconData>;
855
+ /** Trail crumbs and Back-fallback configuration. */
856
+ data: MnBreadcrumbsData;
857
+ /** Emits the crumb that was clicked (non-current crumbs only). */
858
+ crumbClick: EventEmitter<MnBreadcrumbItem>;
859
+ /** Emits when the fallback "Back" control is activated. */
860
+ back: EventEmitter<void>;
861
+ /** Conventional key an app defines to translate the Back control's label. */
862
+ private static readonly BACK_LABEL_KEY;
863
+ /** Conventional key an app defines to name the navigation landmark. */
864
+ private static readonly NAV_LABEL_KEY;
865
+ /** Resolves this component's own labels against the app's bundle. */
866
+ private readonly lang;
867
+ /** Resolved tailwind-variants slot functions for the current size. */
868
+ get styles(): {
869
+ root: (slotProps?: ({
870
+ size?: "sm" | "md" | undefined;
871
+ collapsible?: boolean | undefined;
872
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
873
+ list: (slotProps?: ({
874
+ size?: "sm" | "md" | undefined;
875
+ collapsible?: boolean | undefined;
876
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
877
+ link: (slotProps?: ({
878
+ size?: "sm" | "md" | undefined;
879
+ collapsible?: boolean | undefined;
880
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
881
+ current: (slotProps?: ({
882
+ size?: "sm" | "md" | undefined;
883
+ collapsible?: boolean | undefined;
884
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
885
+ separator: (slotProps?: ({
886
+ size?: "sm" | "md" | undefined;
887
+ collapsible?: boolean | undefined;
888
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
889
+ back: (slotProps?: ({
890
+ size?: "sm" | "md" | undefined;
891
+ collapsible?: boolean | undefined;
892
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
893
+ collapsed: (slotProps?: ({
894
+ size?: "sm" | "md" | undefined;
895
+ collapsible?: boolean | undefined;
896
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
897
+ } & {
898
+ root: (slotProps?: ({
899
+ size?: "sm" | "md" | undefined;
900
+ collapsible?: boolean | undefined;
901
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
902
+ list: (slotProps?: ({
903
+ size?: "sm" | "md" | undefined;
904
+ collapsible?: boolean | undefined;
905
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
906
+ link: (slotProps?: ({
907
+ size?: "sm" | "md" | undefined;
908
+ collapsible?: boolean | undefined;
909
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
910
+ current: (slotProps?: ({
911
+ size?: "sm" | "md" | undefined;
912
+ collapsible?: boolean | undefined;
913
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
914
+ separator: (slotProps?: ({
915
+ size?: "sm" | "md" | undefined;
916
+ collapsible?: boolean | undefined;
917
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
918
+ back: (slotProps?: ({
919
+ size?: "sm" | "md" | undefined;
920
+ collapsible?: boolean | undefined;
921
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
922
+ collapsed: (slotProps?: ({
923
+ size?: "sm" | "md" | undefined;
924
+ collapsible?: boolean | undefined;
925
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
926
+ } & {
927
+ base: (slotProps?: ({
928
+ size?: "sm" | "md" | undefined;
929
+ collapsible?: boolean | undefined;
930
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
931
+ };
932
+ /** Whether the parent crumb replaces the trail below `sm`. */
933
+ get collapsesToParent(): boolean;
934
+ /**
935
+ * The crumb one level above the current page, or `null` when the trail stays
936
+ * whole: a single crumb has nowhere to go up to, and `'never'` asks for every
937
+ * crumb at every width.
938
+ */
939
+ get parentCrumb(): MnBreadcrumbItem | null;
940
+ /**
941
+ * Accessible name of the `<nav>` landmark.
942
+ *
943
+ * A landmark's name is announced verbatim, so leaving it as a hardcoded English
944
+ * "Breadcrumb" put one English word into every page of a translated app — in the
945
+ * one place only screen-reader users hear.
946
+ */
947
+ get navLabel(): string;
948
+ /** Whether a linkable trail should render (vs the Back fallback). */
949
+ get hasTrail(): boolean;
950
+ /**
951
+ * Text of the Back control, already translated.
952
+ *
953
+ * `data.backLabel` is a key (or a literal, which `translate` passes through
954
+ * unchanged). Without one this falls back to the conventional key and then to
955
+ * English — never to a raw key: the old default was the bare key `'back'`, which
956
+ * the template's translate pipe echoed as lowercase "back" in every app that had
957
+ * not happened to define it.
958
+ */
959
+ get backLabel(): string;
960
+ /** The last crumb is the current page and is rendered as plain text. */
961
+ isCurrent(index: number): boolean;
962
+ /** Runs a crumb's own callback and notifies listeners of the click. */
963
+ onCrumb(item: MnBreadcrumbItem): void;
964
+ /**
965
+ * Fallback Back action. Always emits `back` for listeners; when no `backHref`
966
+ * anchor is carrying the navigation, steps back through browser history.
967
+ */
968
+ onBack(): void;
969
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnBreadcrumbs, never>;
970
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnBreadcrumbs, "mn-breadcrumbs", never, {
971
+ "data": {
972
+ "alias": "data";
973
+ "required": false;
974
+ };
975
+ }, {
976
+ "crumbClick": "crumbClick";
977
+ "back": "back";
978
+ }, never, never, true, never>;
915
979
  }
916
-
917
980
  /**
918
981
  * Styling for {@link MnBreadcrumbs}, expressed as tailwind-variants slots so the
919
982
  * template can pull one class string per role. Theme tokens only, so the trail
@@ -926,147 +989,144 @@ declare class MnBreadcrumbs {
926
989
  * control replaces the trail on a phone, where it is the only way up, so it
927
990
  * takes a full 44px.
928
991
  */
929
- declare const mnBreadcrumbsVariants: tailwind_variants.TVReturnType<{
930
- size: {
931
- sm: {
932
- root: string;
933
- list: string;
934
- };
935
- md: {
936
- root: string;
937
- list: string;
938
- };
939
- };
940
- /** Whether the parent crumb takes the trail's place below `sm`. */
941
- collapsible: {
942
- true: {
943
- list: string;
944
- };
945
- false: {};
992
+ export declare const mnBreadcrumbsVariants: import("tailwind-variants").TVReturnType<{
993
+ size: {
994
+ sm: {
995
+ root: string;
996
+ list: string;
997
+ };
998
+ md: {
999
+ root: string;
1000
+ list: string;
946
1001
  };
1002
+ };
1003
+ /** Whether the parent crumb takes the trail's place below `sm`. */
1004
+ collapsible: {
1005
+ true: {
1006
+ list: string;
1007
+ };
1008
+ false: {};
1009
+ };
947
1010
  }, {
948
- root: string;
949
- list: string;
950
- link: string;
951
- current: string;
952
- separator: string;
953
- back: string;
954
- collapsed: string;
1011
+ root: string;
1012
+ list: string;
1013
+ link: string;
1014
+ current: string;
1015
+ separator: string;
1016
+ back: string;
1017
+ collapsed: string;
955
1018
  }, undefined, {
956
- size: {
957
- sm: {
958
- root: string;
959
- list: string;
960
- };
961
- md: {
962
- root: string;
963
- list: string;
964
- };
965
- };
966
- /** Whether the parent crumb takes the trail's place below `sm`. */
967
- collapsible: {
968
- true: {
969
- list: string;
970
- };
971
- false: {};
1019
+ size: {
1020
+ sm: {
1021
+ root: string;
1022
+ list: string;
972
1023
  };
973
- }, {
974
- root: string;
975
- list: string;
976
- link: string;
977
- current: string;
978
- separator: string;
979
- back: string;
980
- collapsed: string;
981
- }, tailwind_variants.TVReturnType<{
982
- size: {
983
- sm: {
984
- root: string;
985
- list: string;
986
- };
987
- md: {
988
- root: string;
989
- list: string;
990
- };
991
- };
992
- /** Whether the parent crumb takes the trail's place below `sm`. */
993
- collapsible: {
994
- true: {
995
- list: string;
996
- };
997
- false: {};
1024
+ md: {
1025
+ root: string;
1026
+ list: string;
1027
+ };
1028
+ };
1029
+ /** Whether the parent crumb takes the trail's place below `sm`. */
1030
+ collapsible: {
1031
+ true: {
1032
+ list: string;
998
1033
  };
1034
+ false: {};
1035
+ };
999
1036
  }, {
1000
- root: string;
1001
- list: string;
1002
- link: string;
1003
- current: string;
1004
- separator: string;
1005
- back: string;
1006
- collapsed: string;
1007
- }, undefined, unknown, unknown, undefined>>;
1008
- type MnBreadcrumbsVariants = VariantProps<typeof mnBreadcrumbsVariants>;
1009
-
1010
- declare const mnIconVariants: tailwind_variants.TVReturnType<{
1011
- color: {
1012
- current: string;
1013
- primary: string;
1014
- secondary: string;
1015
- danger: string;
1016
- warning: string;
1017
- success: string;
1018
- accent: string;
1037
+ root: string;
1038
+ list: string;
1039
+ link: string;
1040
+ current: string;
1041
+ separator: string;
1042
+ back: string;
1043
+ collapsed: string;
1044
+ }, import("tailwind-variants").TVReturnTypeLike<{
1045
+ size: {
1046
+ sm: {
1047
+ root: string;
1048
+ list: string;
1019
1049
  };
1050
+ md: {
1051
+ root: string;
1052
+ list: string;
1053
+ };
1054
+ };
1055
+ /** Whether the parent crumb takes the trail's place below `sm`. */
1056
+ collapsible: {
1057
+ true: {
1058
+ list: string;
1059
+ };
1060
+ false: {};
1061
+ };
1062
+ }, {
1063
+ root: string;
1064
+ list: string;
1065
+ link: string;
1066
+ current: string;
1067
+ separator: string;
1068
+ back: string;
1069
+ collapsed: string;
1070
+ }>>;
1071
+ export type MnBreadcrumbsVariants = VariantProps<typeof mnBreadcrumbsVariants>;
1072
+ export declare const mnIconVariants: import("tailwind-variants").TVReturnType<{
1073
+ color: {
1074
+ current: "text-current";
1075
+ primary: "text-primary";
1076
+ secondary: "text-secondary";
1077
+ danger: "text-error";
1078
+ warning: "text-warning";
1079
+ success: "text-success";
1080
+ accent: "text-accent";
1081
+ };
1020
1082
  }, undefined, "inline-flex shrink-0", {
1021
- color: {
1022
- current: string;
1023
- primary: string;
1024
- secondary: string;
1025
- danger: string;
1026
- warning: string;
1027
- success: string;
1028
- accent: string;
1029
- };
1030
- }, undefined, tailwind_variants.TVReturnType<{
1031
- color: {
1032
- current: string;
1033
- primary: string;
1034
- secondary: string;
1035
- danger: string;
1036
- warning: string;
1037
- success: string;
1038
- accent: string;
1039
- };
1040
- }, undefined, "inline-flex shrink-0", unknown, unknown, undefined>>;
1041
- type MnIconVariants = VariantProps<typeof mnIconVariants>;
1042
-
1043
- type MnIconTypes = {
1044
- name: string;
1045
- size: number;
1046
- color: MnIconVariants['color'];
1083
+ color: {
1084
+ current: "text-current";
1085
+ primary: "text-primary";
1086
+ secondary: "text-secondary";
1087
+ danger: "text-error";
1088
+ warning: "text-warning";
1089
+ success: "text-success";
1090
+ accent: "text-accent";
1091
+ };
1092
+ }, undefined, import("tailwind-variants").TVReturnTypeLike<{
1093
+ color: {
1094
+ current: "text-current";
1095
+ primary: "text-primary";
1096
+ secondary: "text-secondary";
1097
+ danger: "text-error";
1098
+ warning: "text-warning";
1099
+ success: "text-success";
1100
+ accent: "text-accent";
1101
+ };
1102
+ }, undefined>>;
1103
+ export type MnIconVariants = VariantProps<typeof mnIconVariants>;
1104
+ export type MnIconTypes = {
1105
+ name: string;
1106
+ size: number;
1107
+ color: MnIconVariants['color'];
1047
1108
  };
1048
-
1049
- declare class MnIcon implements OnChanges, OnInit {
1050
- data: Partial<MnIconTypes>;
1051
- private sanitizer;
1052
- private el;
1053
- svgContent: SafeHtml;
1054
- get iconSize(): number;
1055
- get hostClasses(): string;
1056
- private resolvedName;
1057
- ngOnInit(): void;
1058
- ngOnChanges(): void;
1059
- private updateContent;
1060
- static ɵfac: i0.ɵɵFactoryDeclaration<MnIcon, never>;
1061
- static ɵcmp: i0.ɵɵComponentDeclaration<MnIcon, "mn-icon", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
1062
- }
1063
-
1064
- declare const MN_ICON_MAP: Record<string, string>;
1065
-
1066
- declare class MnIconAttributes {
1067
- static ɵfac: i0.ɵɵFactoryDeclaration<MnIconAttributes, never>;
1068
- static ɵdir: i0.ɵɵDirectiveDeclaration<MnIconAttributes, "mn-icon[mnIconPistol]", never, {}, {}, never, never, true, never>;
1109
+ export declare class MnIcon implements OnChanges, OnInit {
1110
+ data: Partial<MnIconTypes>;
1111
+ private sanitizer;
1112
+ private el;
1113
+ svgContent: SafeHtml;
1114
+ get iconSize(): number;
1115
+ get hostClasses(): string;
1116
+ private resolvedName;
1117
+ ngOnInit(): void;
1118
+ ngOnChanges(): void;
1119
+ private updateContent;
1120
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnIcon, never>;
1121
+ static ɵcmp: i0.ɵɵComponentDeclaration<MnIcon, "mn-icon", never, {
1122
+ "data": {
1123
+ "alias": "data";
1124
+ "required": false;
1125
+ };
1126
+ }, {}, never, never, true, never>;
1069
1127
  }
1070
-
1071
- export { MN_ICON_MAP, MnBreadcrumbs, MnCard, MnIcon, MnIconAttributes, MnIconChip, MnProportionBar, MnStatTile, mnBreadcrumbsVariants, mnCardVariants, mnIconChipVariants, mnIconVariants };
1072
- export type { MnBreadcrumbItem, MnBreadcrumbsData, MnBreadcrumbsVariants, MnCardTypes, MnCardVariants, MnIconChipTypes, MnIconChipVariants, MnIconTypes, MnIconVariants, MnProportionBarTypes, MnProportionSegment, MnRenderedProportionSegment, MnStatTileTypes };
1128
+ export declare const MN_ICON_MAP: Record<string, string>;
1129
+ export declare class MnIconAttributes {
1130
+ static ɵfac: i0.ɵɵFactoryDeclaration<MnIconAttributes, never>;
1131
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MnIconAttributes, "mn-icon[mnIconPistol]", never, {}, {}, never, never, true, never>;
1132
+ }