@nanahoshi/mona-ui 0.34.0 → 0.35.0

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 (80) hide show
  1. package/alert/package.json +4 -0
  2. package/badge/package.json +4 -0
  3. package/docs/alert.md +219 -0
  4. package/docs/api/alert.md +78 -0
  5. package/docs/api/avatar.md +25 -0
  6. package/docs/api/badge.md +24 -0
  7. package/docs/api/common.md +2 -2
  8. package/docs/api/i18n.md +45 -0
  9. package/docs/api/locales.md +14 -14
  10. package/docs/api/multi-select.md +2 -0
  11. package/docs/api/separator.md +23 -0
  12. package/docs/api/toolbar.md +81 -0
  13. package/docs/avatar.md +108 -6
  14. package/docs/badge.md +181 -0
  15. package/docs/multi-select.md +54 -0
  16. package/docs/separator.md +147 -0
  17. package/docs/sidebar-menus.md +1 -1
  18. package/docs/toolbar.md +327 -0
  19. package/fesm2022/nanahoshi-mona-ui-alert.mjs +422 -0
  20. package/fesm2022/nanahoshi-mona-ui-avatar.mjs +182 -3
  21. package/fesm2022/nanahoshi-mona-ui-badge.mjs +273 -0
  22. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +10 -0
  23. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +3 -0
  24. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +3 -0
  25. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +3 -0
  26. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +3 -0
  27. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +3 -0
  28. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +3 -0
  29. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +3 -0
  30. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +3 -0
  31. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +3 -0
  32. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +3 -0
  33. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +3 -0
  34. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +3 -0
  35. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +3 -0
  36. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +3 -0
  37. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +83 -2
  38. package/fesm2022/nanahoshi-mona-ui-separator.mjs +165 -0
  39. package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +3 -3
  40. package/fesm2022/nanahoshi-mona-ui-toolbar.mjs +536 -0
  41. package/i18n/catalogs/en-US.messages.json +9 -0
  42. package/llms.txt +11 -3
  43. package/locales/ar-sa/ar-sa.messages.json +9 -0
  44. package/locales/de-de/de-de.messages.json +9 -0
  45. package/locales/es-es/es-es.messages.json +9 -0
  46. package/locales/fr-fr/fr-fr.messages.json +9 -0
  47. package/locales/id-id/id-id.messages.json +9 -0
  48. package/locales/it-it/it-it.messages.json +9 -0
  49. package/locales/ja-jp/ja-jp.messages.json +9 -0
  50. package/locales/ko-kr/ko-kr.messages.json +9 -0
  51. package/locales/pl-pl/pl-pl.messages.json +9 -0
  52. package/locales/pt-br/pt-br.messages.json +9 -0
  53. package/locales/ru-ru/ru-ru.messages.json +9 -0
  54. package/locales/tr-tr/tr-tr.messages.json +9 -0
  55. package/locales/zh-cn/zh-cn.messages.json +9 -0
  56. package/locales/zh-tw/zh-tw.messages.json +9 -0
  57. package/package.json +17 -1
  58. package/separator/package.json +4 -0
  59. package/toolbar/package.json +4 -0
  60. package/types/nanahoshi-mona-ui-alert.d.ts +144 -0
  61. package/types/nanahoshi-mona-ui-avatar.d.ts +66 -0
  62. package/types/nanahoshi-mona-ui-badge.d.ts +82 -0
  63. package/types/nanahoshi-mona-ui-i18n.d.ts +24 -0
  64. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +9 -0
  65. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +9 -0
  66. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +9 -0
  67. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +9 -0
  68. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +9 -0
  69. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +9 -0
  70. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +9 -0
  71. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +9 -0
  72. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +9 -0
  73. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +9 -0
  74. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +9 -0
  75. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +9 -0
  76. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +9 -0
  77. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +9 -0
  78. package/types/nanahoshi-mona-ui-multi-select.d.ts +27 -0
  79. package/types/nanahoshi-mona-ui-separator.d.ts +66 -0
  80. package/types/nanahoshi-mona-ui-toolbar.d.ts +183 -0
@@ -1,7 +1,13 @@
1
1
  {
2
+ "alert": {
3
+ "dismissLabel": "{title, select, undefined {Descartar aviso} other {Descartar {title}}}"
4
+ },
2
5
  "autoComplete": {
3
6
  "clear": "Limpiar"
4
7
  },
8
+ "avatar": {
9
+ "moreLabel": "{count} más"
10
+ },
5
11
  "breadcrumb": {
6
12
  "breadcrumb": "Ruta de navegación",
7
13
  "showFullPath": "Mostrar la ruta completa"
@@ -560,6 +566,9 @@
560
566
  "set": "Establecer",
561
567
  "timeSelector": "Selector de hora"
562
568
  },
569
+ "toolbar": {
570
+ "moreLabel": "Más"
571
+ },
563
572
  "treeView": {
564
573
  "collapse": "Contraer",
565
574
  "expand": "Expandir",
@@ -1,7 +1,13 @@
1
1
  {
2
+ "alert": {
3
+ "dismissLabel": "{title, select, undefined {Fermer l’alerte} other {Fermer {title}}}"
4
+ },
2
5
  "autoComplete": {
3
6
  "clear": "Effacer"
4
7
  },
8
+ "avatar": {
9
+ "moreLabel": "{count, plural, =1 {# autre} other {# autres}}"
10
+ },
5
11
  "breadcrumb": {
6
12
  "breadcrumb": "Fil d’Ariane",
7
13
  "showFullPath": "Afficher le chemin complet"
@@ -560,6 +566,9 @@
560
566
  "set": "Valider",
561
567
  "timeSelector": "Sélecteur d’heure"
562
568
  },
569
+ "toolbar": {
570
+ "moreLabel": "Plus"
571
+ },
563
572
  "treeView": {
564
573
  "collapse": "Réduire",
565
574
  "expand": "Développer",
@@ -1,7 +1,13 @@
1
1
  {
2
+ "alert": {
3
+ "dismissLabel": "{title, select, undefined {Tutup peringatan} other {Tutup {title}}}"
4
+ },
2
5
  "autoComplete": {
3
6
  "clear": "Bersihkan"
4
7
  },
8
+ "avatar": {
9
+ "moreLabel": "{count} lainnya"
10
+ },
5
11
  "breadcrumb": {
6
12
  "breadcrumb": "Navigasi remah roti",
7
13
  "showFullPath": "Tampilkan jalur lengkap"
@@ -560,6 +566,9 @@
560
566
  "set": "Atur",
561
567
  "timeSelector": "Pemilih waktu"
562
568
  },
569
+ "toolbar": {
570
+ "moreLabel": "Lainnya"
571
+ },
563
572
  "treeView": {
564
573
  "collapse": "Ciutkan",
565
574
  "expand": "Perluas",
@@ -1,7 +1,13 @@
1
1
  {
2
+ "alert": {
3
+ "dismissLabel": "{title, select, undefined {Chiudi avviso} other {Chiudi {title}}}"
4
+ },
2
5
  "autoComplete": {
3
6
  "clear": "Cancella"
4
7
  },
8
+ "avatar": {
9
+ "moreLabel": "{count, plural, =1 {un altro} other {altri #}}"
10
+ },
5
11
  "breadcrumb": {
6
12
  "breadcrumb": "Percorso di navigazione",
7
13
  "showFullPath": "Mostra il percorso completo"
@@ -560,6 +566,9 @@
560
566
  "set": "Imposta",
561
567
  "timeSelector": "Selettore ora"
562
568
  },
569
+ "toolbar": {
570
+ "moreLabel": "Altro"
571
+ },
563
572
  "treeView": {
564
573
  "collapse": "Comprimi",
565
574
  "expand": "Espandi",
@@ -1,7 +1,13 @@
1
1
  {
2
+ "alert": {
3
+ "dismissLabel": "{title, select, undefined {閉じる} other {{title}を閉じる}}"
4
+ },
2
5
  "autoComplete": {
3
6
  "clear": "クリア"
4
7
  },
8
+ "avatar": {
9
+ "moreLabel": "ほか{count}"
10
+ },
5
11
  "breadcrumb": {
6
12
  "breadcrumb": "パンくずリスト",
7
13
  "showFullPath": "パス全体を表示"
@@ -560,6 +566,9 @@
560
566
  "set": "設定",
561
567
  "timeSelector": "時刻選択"
562
568
  },
569
+ "toolbar": {
570
+ "moreLabel": "その他"
571
+ },
563
572
  "treeView": {
564
573
  "collapse": "折りたたむ",
565
574
  "expand": "展開",
@@ -1,7 +1,13 @@
1
1
  {
2
+ "alert": {
3
+ "dismissLabel": "{title, select, undefined {닫기} other {{title} 닫기}}"
4
+ },
2
5
  "autoComplete": {
3
6
  "clear": "지우기"
4
7
  },
8
+ "avatar": {
9
+ "moreLabel": "외 {count}"
10
+ },
5
11
  "breadcrumb": {
6
12
  "breadcrumb": "이동 경로",
7
13
  "showFullPath": "전체 경로 표시"
@@ -560,6 +566,9 @@
560
566
  "set": "설정",
561
567
  "timeSelector": "시간 선택기"
562
568
  },
569
+ "toolbar": {
570
+ "moreLabel": "더 보기"
571
+ },
563
572
  "treeView": {
564
573
  "collapse": "축소",
565
574
  "expand": "확장",
@@ -1,7 +1,13 @@
1
1
  {
2
+ "alert": {
3
+ "dismissLabel": "{title, select, undefined {Zamknij alert} other {Zamknij: {title}}}"
4
+ },
2
5
  "autoComplete": {
3
6
  "clear": "Wyczyść"
4
7
  },
8
+ "avatar": {
9
+ "moreLabel": "jeszcze {count}"
10
+ },
5
11
  "breadcrumb": {
6
12
  "breadcrumb": "Ścieżka nawigacyjna",
7
13
  "showFullPath": "Pokaż pełną ścieżkę"
@@ -560,6 +566,9 @@
560
566
  "set": "Ustaw",
561
567
  "timeSelector": "Selektor godziny"
562
568
  },
569
+ "toolbar": {
570
+ "moreLabel": "Więcej"
571
+ },
563
572
  "treeView": {
564
573
  "collapse": "Zwiń",
565
574
  "expand": "Rozwiń",
@@ -1,7 +1,13 @@
1
1
  {
2
+ "alert": {
3
+ "dismissLabel": "{title, select, undefined {Fechar alerta} other {Fechar {title}}}"
4
+ },
2
5
  "autoComplete": {
3
6
  "clear": "Limpar"
4
7
  },
8
+ "avatar": {
9
+ "moreLabel": "mais {count}"
10
+ },
5
11
  "breadcrumb": {
6
12
  "breadcrumb": "Trilha de navegação",
7
13
  "showFullPath": "Mostrar caminho completo"
@@ -560,6 +566,9 @@
560
566
  "set": "Definir",
561
567
  "timeSelector": "Seletor de hora"
562
568
  },
569
+ "toolbar": {
570
+ "moreLabel": "Mais"
571
+ },
563
572
  "treeView": {
564
573
  "collapse": "Recolher",
565
574
  "expand": "Expandir",
@@ -1,7 +1,13 @@
1
1
  {
2
+ "alert": {
3
+ "dismissLabel": "{title, select, undefined {Закрыть уведомление} other {Закрыть: {title}}}"
4
+ },
2
5
  "autoComplete": {
3
6
  "clear": "Очистить"
4
7
  },
8
+ "avatar": {
9
+ "moreLabel": "ещё {count}"
10
+ },
5
11
  "breadcrumb": {
6
12
  "breadcrumb": "Навигационная цепочка",
7
13
  "showFullPath": "Показать полный путь"
@@ -560,6 +566,9 @@
560
566
  "set": "Установить",
561
567
  "timeSelector": "Выбор времени"
562
568
  },
569
+ "toolbar": {
570
+ "moreLabel": "Ещё"
571
+ },
563
572
  "treeView": {
564
573
  "collapse": "Свернуть",
565
574
  "expand": "Развернуть",
@@ -1,7 +1,13 @@
1
1
  {
2
+ "alert": {
3
+ "dismissLabel": "{title, select, undefined {Uyarıyı kapat} other {Kapat: {title}}}"
4
+ },
2
5
  "autoComplete": {
3
6
  "clear": "Temizle"
4
7
  },
8
+ "avatar": {
9
+ "moreLabel": "{count} daha"
10
+ },
5
11
  "breadcrumb": {
6
12
  "breadcrumb": "İçerik haritası",
7
13
  "showFullPath": "Tam yolu göster"
@@ -560,6 +566,9 @@
560
566
  "set": "Ayarla",
561
567
  "timeSelector": "Saat seçici"
562
568
  },
569
+ "toolbar": {
570
+ "moreLabel": "Diğer"
571
+ },
563
572
  "treeView": {
564
573
  "collapse": "Daralt",
565
574
  "expand": "Genişlet",
@@ -1,7 +1,13 @@
1
1
  {
2
+ "alert": {
3
+ "dismissLabel": "{title, select, undefined {关闭提示} other {关闭{title}}}"
4
+ },
2
5
  "autoComplete": {
3
6
  "clear": "清除"
4
7
  },
8
+ "avatar": {
9
+ "moreLabel": "还有 {count} 个"
10
+ },
5
11
  "breadcrumb": {
6
12
  "breadcrumb": "面包屑导航",
7
13
  "showFullPath": "显示完整路径"
@@ -560,6 +566,9 @@
560
566
  "set": "设置",
561
567
  "timeSelector": "时间选择器"
562
568
  },
569
+ "toolbar": {
570
+ "moreLabel": "更多"
571
+ },
563
572
  "treeView": {
564
573
  "collapse": "折叠",
565
574
  "expand": "展开",
@@ -1,7 +1,13 @@
1
1
  {
2
+ "alert": {
3
+ "dismissLabel": "{title, select, undefined {關閉提示} other {關閉{title}}}"
4
+ },
2
5
  "autoComplete": {
3
6
  "clear": "清除"
4
7
  },
8
+ "avatar": {
9
+ "moreLabel": "還有 {count} 個"
10
+ },
5
11
  "breadcrumb": {
6
12
  "breadcrumb": "階層連結導航",
7
13
  "showFullPath": "顯示完整路徑"
@@ -560,6 +566,9 @@
560
566
  "set": "設定",
561
567
  "timeSelector": "時間選取器"
562
568
  },
569
+ "toolbar": {
570
+ "moreLabel": "更多"
571
+ },
563
572
  "treeView": {
564
573
  "collapse": "摺疊",
565
574
  "expand": "展開",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanahoshi/mona-ui",
3
- "version": "0.34.0",
3
+ "version": "0.35.0",
4
4
  "description": "A very light Angular UI framework",
5
5
  "author": "Nanahoshi",
6
6
  "repository": {
@@ -18,6 +18,10 @@
18
18
  "types": "./types/nanahoshi-mona-ui.d.ts",
19
19
  "default": "./fesm2022/nanahoshi-mona-ui.mjs"
20
20
  },
21
+ "./alert": {
22
+ "types": "./types/nanahoshi-mona-ui-alert.d.ts",
23
+ "default": "./fesm2022/nanahoshi-mona-ui-alert.mjs"
24
+ },
21
25
  "./auto-complete": {
22
26
  "types": "./types/nanahoshi-mona-ui-auto-complete.d.ts",
23
27
  "default": "./fesm2022/nanahoshi-mona-ui-auto-complete.mjs"
@@ -26,6 +30,10 @@
26
30
  "types": "./types/nanahoshi-mona-ui-avatar.d.ts",
27
31
  "default": "./fesm2022/nanahoshi-mona-ui-avatar.mjs"
28
32
  },
33
+ "./badge": {
34
+ "types": "./types/nanahoshi-mona-ui-badge.d.ts",
35
+ "default": "./fesm2022/nanahoshi-mona-ui-badge.mjs"
36
+ },
29
37
  "./breadcrumb": {
30
38
  "types": "./types/nanahoshi-mona-ui-breadcrumb.d.ts",
31
39
  "default": "./fesm2022/nanahoshi-mona-ui-breadcrumb.mjs"
@@ -334,6 +342,10 @@
334
342
  "types": "./types/nanahoshi-mona-ui-segmented.d.ts",
335
343
  "default": "./fesm2022/nanahoshi-mona-ui-segmented.mjs"
336
344
  },
345
+ "./separator": {
346
+ "types": "./types/nanahoshi-mona-ui-separator.d.ts",
347
+ "default": "./fesm2022/nanahoshi-mona-ui-separator.mjs"
348
+ },
337
349
  "./sheet": {
338
350
  "types": "./types/nanahoshi-mona-ui-sheet.d.ts",
339
351
  "default": "./fesm2022/nanahoshi-mona-ui-sheet.mjs"
@@ -394,6 +406,10 @@
394
406
  "types": "./types/nanahoshi-mona-ui-time-selector.d.ts",
395
407
  "default": "./fesm2022/nanahoshi-mona-ui-time-selector.mjs"
396
408
  },
409
+ "./toolbar": {
410
+ "types": "./types/nanahoshi-mona-ui-toolbar.d.ts",
411
+ "default": "./fesm2022/nanahoshi-mona-ui-toolbar.mjs"
412
+ },
397
413
  "./tooltip": {
398
414
  "types": "./types/nanahoshi-mona-ui-tooltip.d.ts",
399
415
  "default": "./fesm2022/nanahoshi-mona-ui-tooltip.mjs"
@@ -0,0 +1,4 @@
1
+ {
2
+ "module": "../fesm2022/nanahoshi-mona-ui-separator.mjs",
3
+ "typings": "../types/nanahoshi-mona-ui-separator.d.ts"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "module": "../fesm2022/nanahoshi-mona-ui-toolbar.mjs",
3
+ "typings": "../types/nanahoshi-mona-ui-toolbar.d.ts"
4
+ }
@@ -0,0 +1,144 @@
1
+ import { MonaAlertMessages } from "@nanahoshi/mona-ui/i18n";
2
+ import * as i0 from "@angular/core";
3
+ import { ElementRef, TemplateRef } from "@angular/core";
4
+ import { ClassInputType } from "@nanahoshi/mona-ui/common";
5
+ import { VariantProps } from "class-variance-authority";
6
+ export declare const ALERT_DEFAULT_MESSAGES: MonaAlertMessages;
7
+ /** How an alert is read aloud when it's shown: not at all, after what's being read, or at once. */
8
+ type AlertAnnouncement = "assertive" | "off" | "polite";
9
+ /**
10
+ * A message that stays on the page, such as a failed payment above a form or a notice above a table, tinted by what it
11
+ * means and marked with an icon. It can have a title, actions and a dismiss button, and it can be announced when it's
12
+ * shown.
13
+ */
14
+ export declare class AlertComponent {
15
+ #private;
16
+ protected readonly baseClass: import("@angular/core").Signal<string>;
17
+ protected readonly bodyClass = "flex min-w-0 flex-1 flex-col gap-1 leading-5";
18
+ protected readonly descriptionElement: import("@angular/core").Signal<ElementRef<HTMLElement>>;
19
+ protected readonly dismissClass = "-my-1.5 -me-2 shrink-0 text-current";
20
+ protected readonly iconClass = "flex h-5 shrink-0 items-center [&>svg]:size-4";
21
+ protected readonly iconTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
22
+ protected readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaAlertMessages>;
23
+ protected readonly titleClass = "font-semibold";
24
+ protected readonly titleElement: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
25
+ /**
26
+ * @description Reads the alert's title and text aloud once, when the alert is shown. Use it for an alert that appears
27
+ * because of something the user did, such as a failed save: `assertive` interrupts, for something that needs
28
+ * attention now, and `polite` waits for a pause. Leave it `off` for an alert that's part of the page when it loads.
29
+ * @default "off"
30
+ */
31
+ readonly announce: import("@angular/core").InputSignal<AlertAnnouncement>;
32
+ /**
33
+ * @description Emitted when the dismiss button is activated, with the click event. The alert doesn't hide itself:
34
+ * remove it in your handler, and move focus to where the user can carry on, since the button goes with it.
35
+ */
36
+ readonly dismiss: import("@angular/core").OutputEmitterRef<Event>;
37
+ /**
38
+ * @description Name of the dismiss button, in place of the localized "Dismiss", followed by the title when there is
39
+ * one.
40
+ * @default ""
41
+ */
42
+ readonly dismissLabel: import("@angular/core").InputSignal<string>;
43
+ /**
44
+ * @description Shows a button in the alert's corner that emits `dismiss`.
45
+ * @default false
46
+ */
47
+ readonly dismissible: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
48
+ /**
49
+ * @description What the alert means, which sets its tint, border and icon. Say it in the text too, since color and
50
+ * shape alone don't reach everyone.
51
+ * @default "info"
52
+ */
53
+ readonly look: import("@angular/core").InputSignal<"error" | "info" | "neutral" | "success" | "warning" | null | undefined>;
54
+ /**
55
+ * @description Shows the look's icon before the text. A `monaAlertIconTemplate` replaces the icon.
56
+ * @default true
57
+ */
58
+ readonly showIcon: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
59
+ /**
60
+ * @description A short heading above the text, in bold. It also names the dismiss button.
61
+ * @default ""
62
+ */
63
+ readonly title: import("@angular/core").InputSignal<string>;
64
+ /**
65
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
66
+ * @default ""
67
+ */
68
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
69
+ constructor();
70
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertComponent, never>;
71
+ static ɵcmp: i0.ɵɵComponentDeclaration<AlertComponent, "mona-alert", never, {
72
+ "announce": {
73
+ "alias": "announce";
74
+ "required": false;
75
+ "isSignal": true;
76
+ };
77
+ "dismissLabel": {
78
+ "alias": "dismissLabel";
79
+ "required": false;
80
+ "isSignal": true;
81
+ };
82
+ "dismissible": {
83
+ "alias": "dismissible";
84
+ "required": false;
85
+ "isSignal": true;
86
+ };
87
+ "look": {
88
+ "alias": "look";
89
+ "required": false;
90
+ "isSignal": true;
91
+ };
92
+ "showIcon": {
93
+ "alias": "showIcon";
94
+ "required": false;
95
+ "isSignal": true;
96
+ };
97
+ "title": {
98
+ "alias": "title";
99
+ "required": false;
100
+ "isSignal": true;
101
+ };
102
+ "userClass": {
103
+ "alias": "class";
104
+ "required": false;
105
+ "isSignal": true;
106
+ };
107
+ }, {
108
+ "dismiss": "dismiss";
109
+ }, ["iconTemplate"], ["*", "[monaAlertActions]"], true, never>;
110
+ }
111
+ /**
112
+ * @description Marks an element inside `<mona-alert>` as its row of actions, such as a Retry button. The alert places it
113
+ * below its text, and it lays out its buttons in a wrapping row.
114
+ */
115
+ export declare class AlertActionsDirective {
116
+ protected readonly baseClass: import("@angular/core").Signal<string>;
117
+ /**
118
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
119
+ * @default ""
120
+ */
121
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
122
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertActionsDirective, never>;
123
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AlertActionsDirective, "[monaAlertActions]", never, {
124
+ "userClass": {
125
+ "alias": "class";
126
+ "required": false;
127
+ "isSignal": true;
128
+ };
129
+ }, {}, never, never, true, never>;
130
+ }
131
+ /**
132
+ * @description Apply to an `<ng-template>` directly inside `<mona-alert>` to draw the alert's icon in place of the one
133
+ * its look shows. The template receives no context, and what it renders is hidden from assistive technology, like the
134
+ * default icon.
135
+ */
136
+ export declare class AlertIconTemplateDirective {
137
+ static ɵfac: i0.ɵɵFactoryDeclaration<AlertIconTemplateDirective, never>;
138
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AlertIconTemplateDirective, "ng-template[monaAlertIconTemplate]", never, {}, {}, never, never, true, never>;
139
+ }
140
+ declare const alertThemeVariants: (props?: ({
141
+ look?: "error" | "info" | "neutral" | "success" | "warning" | null | undefined;
142
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
143
+ type AlertVariantProps = VariantProps<typeof alertThemeVariants>;
144
+ export type { AlertAnnouncement, AlertVariantProps };
@@ -1,4 +1,8 @@
1
+ import { MonaAvatarMessages } from "@nanahoshi/mona-ui/i18n";
1
2
  import * as i0 from "@angular/core";
3
+ import { Signal } from "@angular/core";
4
+ import { ClassInputType } from "@nanahoshi/mona-ui/common";
5
+ export declare const AVATAR_DEFAULT_MESSAGES: MonaAvatarMessages;
2
6
  export declare class AvatarComponent {
3
7
  #private;
4
8
  protected readonly avatarLabelStyles: import("@angular/core").Signal<{
@@ -719,4 +723,66 @@ export declare class AvatarComponent {
719
723
  "isSignal": true;
720
724
  };
721
725
  }, {}, never, ["*"], true, never>;
726
+ }
727
+ /**
728
+ * Stacks `mona-avatar`s in an overlapping row, such as the members of a project. Past `max`, the rest collapse into one
729
+ * item that counts them, as in "+3".
730
+ */
731
+ export declare class AvatarGroupComponent {
732
+ #private;
733
+ protected readonly avatars: Signal<readonly AvatarComponent[]>;
734
+ protected readonly baseClass: Signal<string>;
735
+ protected readonly collapsedCount: Signal<number>;
736
+ protected readonly messages: Signal<import("@nanahoshi/mona-ui/i18n").MonaAvatarMessages>;
737
+ protected readonly moreClass = "\n inline-flex items-center justify-center overflow-hidden\n border-solid border-border bg-secondary text-secondary-foreground\n font-semibold tabular-nums leading-none select-none\n";
738
+ /** The count looks like the avatars it stands for: their size, shape and border. */
739
+ protected readonly moreStyles: Signal<{
740
+ borderRadius: string;
741
+ borderWidth: string;
742
+ fontSize: string;
743
+ height: string;
744
+ width: string;
745
+ }>;
746
+ protected readonly moreText: Signal<string>;
747
+ protected readonly overlap: Signal<string>;
748
+ /**
749
+ * @description Accessible name of the group, such as "Project members". The group is read as one, with each avatar's
750
+ * name inside it.
751
+ * @default ""
752
+ */
753
+ readonly ariaLabel: import("@angular/core").InputSignal<string>;
754
+ /**
755
+ * @description How many avatars to show. The rest collapse into one item that counts them, named such as "3 more".
756
+ * Without it, every avatar shows.
757
+ * @default null
758
+ */
759
+ readonly max: import("@angular/core").InputSignalWithTransform<number | null, string | number | null | undefined>;
760
+ /**
761
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
762
+ * @default ""
763
+ */
764
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
765
+ /**
766
+ * Whether an avatar is past `max`, and so hidden.
767
+ * @hidden
768
+ */
769
+ isCollapsed(avatar: unknown): Signal<boolean>;
770
+ static ɵfac: i0.ɵɵFactoryDeclaration<AvatarGroupComponent, never>;
771
+ static ɵcmp: i0.ɵɵComponentDeclaration<AvatarGroupComponent, "mona-avatar-group", never, {
772
+ "ariaLabel": {
773
+ "alias": "aria-label";
774
+ "required": false;
775
+ "isSignal": true;
776
+ };
777
+ "max": {
778
+ "alias": "max";
779
+ "required": false;
780
+ "isSignal": true;
781
+ };
782
+ "userClass": {
783
+ "alias": "class";
784
+ "required": false;
785
+ "isSignal": true;
786
+ };
787
+ }, {}, ["avatars"], ["*"], true, never>;
722
788
  }
@@ -0,0 +1,82 @@
1
+ import { ClassInputType } from "@nanahoshi/mona-ui/common";
2
+ import { VariantProps } from "class-variance-authority";
3
+ import { VariantInputs } from "@nanahoshi/mona-ui/internal";
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * The shape every badge shares, the sidebar's included. The transparent border keeps the badge's edge in forced colors,
7
+ * where its fill doesn't paint.
8
+ * @hidden
9
+ */
10
+ export declare const BADGE_BASE_CLASSES = "\n inline-flex w-fit shrink-0 items-center justify-center gap-1 whitespace-nowrap\n border border-transparent font-medium tabular-nums\n forced-colors:border-[CanvasText]\n [&>svg]:pointer-events-none [&>svg]:shrink-0\n";
11
+ declare const badgeThemeVariants: (props?: ({
12
+ fill?: "outline" | "solid" | "subtle" | null | undefined;
13
+ look?: "error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined;
14
+ rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
15
+ size?: "large" | "medium" | "small" | null | undefined;
16
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
17
+ type BadgeVariantProps = VariantProps<typeof badgeThemeVariants>;
18
+ type BadgeVariantInputs = VariantInputs<BadgeVariantProps>;
19
+ /**
20
+ * @description
21
+ * A short count or status, such as `12` or `Draft`, drawn as a small filled or outlined label. It adds no role, so its text
22
+ * reads as part of what's around it.
23
+ */
24
+ export declare class BadgeDirective implements BadgeVariantInputs {
25
+ protected readonly baseClass: import("@angular/core").Signal<string>;
26
+ /**
27
+ * @description How the badge is drawn: `solid` fills it with the look's color, `subtle` with a light tint of it, and
28
+ * `outline` draws only its border.
29
+ * @default "solid"
30
+ */
31
+ readonly fill: import("@angular/core").InputSignal<"outline" | "solid" | "subtle" | null | undefined>;
32
+ /**
33
+ * @description The badge's color role. Pick it for what the badge means, such as `error` for a failed state, and say
34
+ * that in its text too, since color alone doesn't reach everyone.
35
+ * @default "secondary"
36
+ */
37
+ readonly look: import("@angular/core").InputSignal<"error" | "info" | "primary" | "secondary" | "success" | "warning" | null | undefined>;
38
+ /**
39
+ * @description Border-radius preset. `full` makes a pill, and a round dot for a single digit.
40
+ * @default "medium"
41
+ */
42
+ readonly rounded: import("@angular/core").InputSignal<"full" | "large" | "medium" | "none" | "small" | null | undefined>;
43
+ /**
44
+ * @description Size preset controlling the badge's height, padding, text and icon size.
45
+ * @default "medium"
46
+ */
47
+ readonly size: import("@angular/core").InputSignal<"large" | "medium" | "small" | null | undefined>;
48
+ /**
49
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`.
50
+ * @default ""
51
+ */
52
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<BadgeDirective, never>;
54
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BadgeDirective, "[monaBadge]", never, {
55
+ "fill": {
56
+ "alias": "fill";
57
+ "required": false;
58
+ "isSignal": true;
59
+ };
60
+ "look": {
61
+ "alias": "look";
62
+ "required": false;
63
+ "isSignal": true;
64
+ };
65
+ "rounded": {
66
+ "alias": "rounded";
67
+ "required": false;
68
+ "isSignal": true;
69
+ };
70
+ "size": {
71
+ "alias": "size";
72
+ "required": false;
73
+ "isSignal": true;
74
+ };
75
+ "userClass": {
76
+ "alias": "class";
77
+ "required": false;
78
+ "isSignal": true;
79
+ };
80
+ }, {}, never, never, true, never>;
81
+ }
82
+ export type { BadgeVariantProps };