@nanahoshi/mona-ui 0.34.0 → 0.36.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 (87) 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 +3 -3
  8. package/docs/api/i18n.md +71 -5
  9. package/docs/api/locales.md +14 -14
  10. package/docs/api/masked-text-box.md +137 -0
  11. package/docs/api/multi-select.md +3 -0
  12. package/docs/api/separator.md +23 -0
  13. package/docs/api/toolbar.md +81 -0
  14. package/docs/avatar.md +108 -6
  15. package/docs/badge.md +181 -0
  16. package/docs/masked-textbox.md +334 -0
  17. package/docs/multi-select.md +120 -0
  18. package/docs/separator.md +147 -0
  19. package/docs/sidebar-menus.md +1 -1
  20. package/docs/toolbar.md +327 -0
  21. package/fesm2022/nanahoshi-mona-ui-alert.mjs +422 -0
  22. package/fesm2022/nanahoshi-mona-ui-avatar.mjs +182 -3
  23. package/fesm2022/nanahoshi-mona-ui-badge.mjs +273 -0
  24. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +20 -1
  25. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +54 -15
  26. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +13 -1
  27. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +13 -1
  28. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +13 -1
  29. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +13 -1
  30. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +13 -1
  31. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +13 -1
  32. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +13 -1
  33. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +13 -1
  34. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +13 -1
  35. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +13 -1
  36. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +13 -1
  37. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +13 -1
  38. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +13 -1
  39. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +13 -1
  40. package/fesm2022/nanahoshi-mona-ui-masked-text-box.mjs +1302 -0
  41. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +112 -3
  42. package/fesm2022/nanahoshi-mona-ui-separator.mjs +165 -0
  43. package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +3 -3
  44. package/fesm2022/nanahoshi-mona-ui-toolbar.mjs +536 -0
  45. package/i18n/catalogs/en-US.messages.json +19 -1
  46. package/llms.txt +13 -3
  47. package/locales/ar-sa/ar-sa.messages.json +19 -1
  48. package/locales/de-de/de-de.messages.json +19 -1
  49. package/locales/es-es/es-es.messages.json +19 -1
  50. package/locales/fr-fr/fr-fr.messages.json +19 -1
  51. package/locales/id-id/id-id.messages.json +19 -1
  52. package/locales/it-it/it-it.messages.json +19 -1
  53. package/locales/ja-jp/ja-jp.messages.json +19 -1
  54. package/locales/ko-kr/ko-kr.messages.json +19 -1
  55. package/locales/pl-pl/pl-pl.messages.json +19 -1
  56. package/locales/pt-br/pt-br.messages.json +19 -1
  57. package/locales/ru-ru/ru-ru.messages.json +19 -1
  58. package/locales/tr-tr/tr-tr.messages.json +19 -1
  59. package/locales/zh-cn/zh-cn.messages.json +19 -1
  60. package/locales/zh-tw/zh-tw.messages.json +19 -1
  61. package/masked-text-box/package.json +4 -0
  62. package/package.json +21 -1
  63. package/separator/package.json +4 -0
  64. package/toolbar/package.json +4 -0
  65. package/types/nanahoshi-mona-ui-alert.d.ts +144 -0
  66. package/types/nanahoshi-mona-ui-avatar.d.ts +66 -0
  67. package/types/nanahoshi-mona-ui-badge.d.ts +82 -0
  68. package/types/nanahoshi-mona-ui-i18n.d.ts +44 -0
  69. package/types/nanahoshi-mona-ui-internal-list.d.ts +12 -0
  70. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +18 -0
  71. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +18 -0
  72. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +18 -0
  73. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +18 -0
  74. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +18 -0
  75. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +18 -0
  76. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +18 -0
  77. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +18 -0
  78. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +18 -0
  79. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +18 -0
  80. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +18 -0
  81. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +18 -0
  82. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +18 -0
  83. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +18 -0
  84. package/types/nanahoshi-mona-ui-masked-text-box.d.ts +391 -0
  85. package/types/nanahoshi-mona-ui-multi-select.d.ts +38 -0
  86. package/types/nanahoshi-mona-ui-separator.d.ts +66 -0
  87. package/types/nanahoshi-mona-ui-toolbar.d.ts +183 -0
@@ -1,6 +1,6 @@
1
1
  import { NgTemplateOutlet } from "@angular/common";
2
2
  import * as i0 from "@angular/core";
3
- import { Component, DestroyRef, Directive, ElementRef, Injectable, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, effect, forwardRef, inject, input, model, output, signal, untracked, viewChild } from "@angular/core";
3
+ import { Component, DestroyRef, Directive, ElementRef, Injectable, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, effect, forwardRef, inject, input, isDevMode, model, output, signal, untracked, viewChild } from "@angular/core";
4
4
  import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
5
5
  import { none } from "@mirei/ts-collections";
6
6
  import { CHIP_DEFAULT_MESSAGES, ChipComponent } from "@nanahoshi/mona-ui/chip";
@@ -51,7 +51,8 @@ function localizeNumber(value, options) {
51
51
  const MULTI_SELECT_DEFAULT_MESSAGES = {
52
52
  clear: "Clear",
53
53
  itemsCount: (count) => count === 1 ? `+ ${localizeNumber(count)} item` : `+ ${localizeNumber(count)} items`,
54
- removeMoreItems: (count) => count === 1 ? `Remove ${localizeNumber(count)} more item` : `Remove ${localizeNumber(count)} more items`
54
+ removeMoreItems: (count) => count === 1 ? `Remove ${localizeNumber(count)} more item` : `Remove ${localizeNumber(count)} more items`,
55
+ selectAll: "Select all"
55
56
  };
56
57
  var MultiSelectService = class MultiSelectService {
57
58
  constructor() {
@@ -147,6 +148,7 @@ var MultiSelectComponent = class MultiSelectComponent {
147
148
  #listService;
148
149
  #multiSelectService;
149
150
  #popupRef;
151
+ #navigatedByArrows;
150
152
  constructor() {
151
153
  this.#destroyRef = inject(DestroyRef);
152
154
  this.#dropdownService = inject(DropdownService);
@@ -162,6 +164,7 @@ var MultiSelectComponent = class MultiSelectComponent {
162
164
  this.#listService = inject(ListService);
163
165
  this.#multiSelectService = inject(MultiSelectService);
164
166
  this.#popupRef = this.#dropdownService.popupRef;
167
+ this.#navigatedByArrows = false;
165
168
  this.activeDescendant = computed(() => {
166
169
  const highlightedItem = this.#listService.highlightedItem();
167
170
  return highlightedItem ? highlightedItem.uid : null;
@@ -261,6 +264,10 @@ var MultiSelectComponent = class MultiSelectComponent {
261
264
  if (tagCount < 0) return itemCount;
262
265
  return tagCount;
263
266
  }, ...ngDevMode ? [{ debugName: "visibleTagCount" }] : /* istanbul ignore next */ []);
267
+ this.allowCustomValue = input(false, {
268
+ ...ngDevMode ? { debugName: "allowCustomValue" } : /* istanbul ignore next */ {},
269
+ transform: booleanAttribute
270
+ });
264
271
  this.ariaDescribedBy = input("", {
265
272
  ...ngDevMode ? { debugName: "ariaDescribedBy" } : /* istanbul ignore next */ {},
266
273
  alias: "aria-describedby"
@@ -316,6 +323,10 @@ var MultiSelectComponent = class MultiSelectComponent {
316
323
  ...ngDevMode ? { debugName: "showClearButton" } : /* istanbul ignore next */ {},
317
324
  transform: booleanAttribute
318
325
  });
326
+ this.showSelectAll = input(false, {
327
+ ...ngDevMode ? { debugName: "showSelectAll" } : /* istanbul ignore next */ {},
328
+ transform: booleanAttribute
329
+ });
319
330
  this.size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
320
331
  this.textField = input(...ngDevMode ? [void 0, { debugName: "textField" }] : /* istanbul ignore next */ []);
321
332
  this.touch = output();
@@ -328,6 +339,7 @@ var MultiSelectComponent = class MultiSelectComponent {
328
339
  alias: "class"
329
340
  });
330
341
  this.value = model([], ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
342
+ this.valueAdd = output();
331
343
  this.valueField = input(...ngDevMode ? [void 0, { debugName: "valueField" }] : /* istanbul ignore next */ []);
332
344
  this.valuePrimitive = input(false, {
333
345
  ...ngDevMode ? { debugName: "valuePrimitive" } : /* istanbul ignore next */ {},
@@ -337,6 +349,7 @@ var MultiSelectComponent = class MultiSelectComponent {
337
349
  this.initialize();
338
350
  this.setEventListeners();
339
351
  this.setSubscriptions();
352
+ this.warnIfCustomValueHasNoFilter();
340
353
  } });
341
354
  effect(() => {
342
355
  const popupTemplate = this.popupTemplate();
@@ -355,6 +368,29 @@ var MultiSelectComponent = class MultiSelectComponent {
355
368
  const checkboxVisible = this.checkboxes();
356
369
  untracked(() => this.#listService.setSelectableOptions({ checkboxes: checkboxVisible }));
357
370
  });
371
+ effect(() => {
372
+ const showSelectAll = this.showSelectAll();
373
+ const label = this.messages().selectAll;
374
+ untracked(() => {
375
+ this.#listService.selectAllEnabled.set(showSelectAll);
376
+ this.#listService.selectAllLabel.set(label);
377
+ });
378
+ });
379
+ effect((onCleanup) => {
380
+ const popupElement = this.#popupRef()?.overlayRef.overlayElement;
381
+ if (popupElement == null) return;
382
+ this.#navigatedByArrows = false;
383
+ const onKeydown = (event) => this.handlePopupKeydown(event);
384
+ const onInput = () => {
385
+ this.#navigatedByArrows = false;
386
+ };
387
+ popupElement.addEventListener("keydown", onKeydown, true);
388
+ popupElement.addEventListener("input", onInput, true);
389
+ onCleanup(() => {
390
+ popupElement.removeEventListener("keydown", onKeydown, true);
391
+ popupElement.removeEventListener("input", onInput, true);
392
+ });
393
+ });
358
394
  }
359
395
  focus(options) {
360
396
  this.#hostElementRef.nativeElement.focus(options);
@@ -399,6 +435,21 @@ var MultiSelectComponent = class MultiSelectComponent {
399
435
  this.#listService.clearSelections();
400
436
  this.focus();
401
437
  }
438
+ addCustomValue(input, text) {
439
+ const caseSensitive = this.#listService.filterableOptions().caseSensitive;
440
+ const match = this.#listService.getMatchingFilteredItem(text);
441
+ const matchText = match ? this.#listService.getItemText(match) : null;
442
+ const exact = matchText != null && (caseSensitive ? matchText === text : matchText.toLowerCase() === text.toLowerCase());
443
+ if (match && exact) {
444
+ if (!this.#listService.isSelected(match)) {
445
+ this.#listService.selectItem(match);
446
+ this.updateValue(this.getSelectedControlValues());
447
+ }
448
+ } else this.valueAdd.emit(text);
449
+ input.value = "";
450
+ input.dispatchEvent(new Event("input", { bubbles: true }));
451
+ if (this.autoClose()) this.#popupRef()?.close();
452
+ }
402
453
  getSelectedControlValues() {
403
454
  return this.selectedListItems().select((item) => {
404
455
  return this.valuePrimitive() ? this.#listService.getDataItemValue(item.data) : item.data;
@@ -411,6 +462,26 @@ var MultiSelectComponent = class MultiSelectComponent {
411
462
  }
412
463
  this.toggleHighlightedItem();
413
464
  }
465
+ handlePopupKeydown(event) {
466
+ if (event.key === "ArrowDown" || event.key === "ArrowUp") {
467
+ this.#navigatedByArrows = true;
468
+ return;
469
+ }
470
+ const input = event.target;
471
+ if (event.key !== "Enter" || event.isComposing || event.keyCode === 229 || !(input instanceof HTMLInputElement)) return;
472
+ const text = input.value.trim();
473
+ const highlightedItem = this.#listService.highlightedItem();
474
+ if (this.allowCustomValue() && text !== "" && !(this.#navigatedByArrows && highlightedItem != null)) {
475
+ event.preventDefault();
476
+ event.stopPropagation();
477
+ this.addCustomValue(input, text);
478
+ return;
479
+ }
480
+ if (highlightedItem == null) {
481
+ event.preventDefault();
482
+ event.stopPropagation();
483
+ }
484
+ }
414
485
  handlePopupPositionUpdate() {
415
486
  const popupRef = this.#popupRef();
416
487
  if (!popupRef) return;
@@ -475,6 +546,9 @@ var MultiSelectComponent = class MultiSelectComponent {
475
546
  updateValue(value) {
476
547
  this.value.set(value);
477
548
  }
549
+ warnIfCustomValueHasNoFilter() {
550
+ if (isDevMode() && this.allowCustomValue() && !this.#listService.filterableOptions().enabled) console.warn("[Mona MultiSelect] allowCustomValue needs monaDropDownFilterable: custom values are typed in its filter box.", this.#hostElementRef.nativeElement);
551
+ }
478
552
  static {
479
553
  this.ɵfac = i0.ɵɵngDeclareFactory({
480
554
  minVersion: "12.0.0",
@@ -493,6 +567,13 @@ var MultiSelectComponent = class MultiSelectComponent {
493
567
  isStandalone: true,
494
568
  selector: "mona-multi-select",
495
569
  inputs: {
570
+ allowCustomValue: {
571
+ classPropertyName: "allowCustomValue",
572
+ publicName: "allowCustomValue",
573
+ isSignal: true,
574
+ isRequired: false,
575
+ transformFunction: null
576
+ },
496
577
  ariaDescribedBy: {
497
578
  classPropertyName: "ariaDescribedBy",
498
579
  publicName: "aria-describedby",
@@ -619,6 +700,13 @@ var MultiSelectComponent = class MultiSelectComponent {
619
700
  isRequired: false,
620
701
  transformFunction: null
621
702
  },
703
+ showSelectAll: {
704
+ classPropertyName: "showSelectAll",
705
+ publicName: "showSelectAll",
706
+ isSignal: true,
707
+ isRequired: false,
708
+ transformFunction: null
709
+ },
622
710
  size: {
623
711
  classPropertyName: "size",
624
712
  publicName: "size",
@@ -675,7 +763,8 @@ var MultiSelectComponent = class MultiSelectComponent {
675
763
  open: "open",
676
764
  opened: "opened",
677
765
  touch: "touch",
678
- value: "valueChange"
766
+ value: "valueChange",
767
+ valueAdd: "valueAdd"
679
768
  },
680
769
  host: {
681
770
  listeners: { "focusout": "onFocusOut($event)" },
@@ -1013,6 +1102,14 @@ i0.ɵɵngDeclareClassMetadata({
1013
1102
  isSignal: true
1014
1103
  }]
1015
1104
  }],
1105
+ allowCustomValue: [{
1106
+ type: i0.Input,
1107
+ args: [{
1108
+ isSignal: true,
1109
+ alias: "allowCustomValue",
1110
+ required: false
1111
+ }]
1112
+ }],
1016
1113
  ariaDescribedBy: [{
1017
1114
  type: i0.Input,
1018
1115
  args: [{
@@ -1173,6 +1270,14 @@ i0.ɵɵngDeclareClassMetadata({
1173
1270
  required: false
1174
1271
  }]
1175
1272
  }],
1273
+ showSelectAll: [{
1274
+ type: i0.Input,
1275
+ args: [{
1276
+ isSignal: true,
1277
+ alias: "showSelectAll",
1278
+ required: false
1279
+ }]
1280
+ }],
1176
1281
  size: [{
1177
1282
  type: i0.Input,
1178
1283
  args: [{
@@ -1220,6 +1325,10 @@ i0.ɵɵngDeclareClassMetadata({
1220
1325
  type: i0.Output,
1221
1326
  args: ["valueChange"]
1222
1327
  }],
1328
+ valueAdd: [{
1329
+ type: i0.Output,
1330
+ args: ["valueAdd"]
1331
+ }],
1223
1332
  valueField: [{
1224
1333
  type: i0.Input,
1225
1334
  args: [{
@@ -0,0 +1,165 @@
1
+ import * as i0 from "@angular/core";
2
+ import { Component, booleanAttribute, computed, input } from "@angular/core";
3
+ import { classInputToClass } from "@nanahoshi/mona-ui/common";
4
+ import { twMerge } from "tailwind-merge";
5
+ import { cva } from "class-variance-authority";
6
+ const LINE_CLASSES = "bg-border forced-colors:bg-[CanvasText]";
7
+ const separatorThemeVariants = cva("shrink-0", {
8
+ variants: {
9
+ labelled: {
10
+ false: LINE_CLASSES,
11
+ true: "flex w-full items-center gap-3 text-xs text-muted-foreground"
12
+ },
13
+ orientation: {
14
+ horizontal: "",
15
+ vertical: ""
16
+ }
17
+ },
18
+ compoundVariants: [{
19
+ labelled: false,
20
+ orientation: "horizontal",
21
+ class: "block h-px w-full"
22
+ }, {
23
+ labelled: false,
24
+ orientation: "vertical",
25
+ class: "inline-block w-px self-stretch"
26
+ }],
27
+ defaultVariants: {
28
+ labelled: false,
29
+ orientation: "horizontal"
30
+ }
31
+ });
32
+ const SEPARATOR_LABEL_LINE_CLASSES = `h-px flex-1 ${LINE_CLASSES}`;
33
+ var SeparatorComponent = class SeparatorComponent {
34
+ constructor() {
35
+ this.baseClass = computed(() => twMerge(separatorThemeVariants({
36
+ labelled: this.labelled(),
37
+ orientation: this.labelled() ? "horizontal" : this.orientation()
38
+ }), this.userClass()), ...ngDevMode ? [{ debugName: "baseClass" }] : /* istanbul ignore next */ []);
39
+ this.labelled = computed(() => this.label() !== "", ...ngDevMode ? [{ debugName: "labelled" }] : /* istanbul ignore next */ []);
40
+ this.lineClass = SEPARATOR_LABEL_LINE_CLASSES;
41
+ this.role = computed(() => this.decorative() || this.labelled() ? null : "separator", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
42
+ this.decorative = input(false, {
43
+ ...ngDevMode ? { debugName: "decorative" } : /* istanbul ignore next */ {},
44
+ transform: booleanAttribute
45
+ });
46
+ this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
47
+ this.orientation = input("horizontal", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
48
+ this.userClass = input("", {
49
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
50
+ alias: "class",
51
+ transform: (value) => classInputToClass(value)
52
+ });
53
+ }
54
+ static {
55
+ this.ɵfac = i0.ɵɵngDeclareFactory({
56
+ minVersion: "12.0.0",
57
+ version: "22.2.6",
58
+ ngImport: i0,
59
+ type: SeparatorComponent,
60
+ deps: [],
61
+ target: i0.ɵɵFactoryTarget.Component
62
+ });
63
+ }
64
+ static {
65
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
66
+ minVersion: "17.0.0",
67
+ version: "22.2.6",
68
+ type: SeparatorComponent,
69
+ isStandalone: true,
70
+ selector: "mona-separator",
71
+ inputs: {
72
+ decorative: {
73
+ classPropertyName: "decorative",
74
+ publicName: "decorative",
75
+ isSignal: true,
76
+ isRequired: false,
77
+ transformFunction: null
78
+ },
79
+ label: {
80
+ classPropertyName: "label",
81
+ publicName: "label",
82
+ isSignal: true,
83
+ isRequired: false,
84
+ transformFunction: null
85
+ },
86
+ orientation: {
87
+ classPropertyName: "orientation",
88
+ publicName: "orientation",
89
+ isSignal: true,
90
+ isRequired: false,
91
+ transformFunction: null
92
+ },
93
+ userClass: {
94
+ classPropertyName: "userClass",
95
+ publicName: "class",
96
+ isSignal: true,
97
+ isRequired: false,
98
+ transformFunction: null
99
+ }
100
+ },
101
+ host: { properties: {
102
+ "attr.aria-orientation": "role() === 'separator' && orientation() === 'vertical' ? 'vertical' : null",
103
+ "attr.role": "role()",
104
+ "class": "baseClass()"
105
+ } },
106
+ ngImport: i0,
107
+ template: "@if (labelled()) {\n <span [class]=\"lineClass\" aria-hidden=\"true\"></span>\n <span>{{ label() }}</span>\n <span [class]=\"lineClass\" aria-hidden=\"true\"></span>\n}\n"
108
+ });
109
+ }
110
+ };
111
+ i0.ɵɵngDeclareClassMetadata({
112
+ minVersion: "12.0.0",
113
+ version: "22.2.6",
114
+ ngImport: i0,
115
+ type: SeparatorComponent,
116
+ decorators: [{
117
+ type: Component,
118
+ args: [{
119
+ selector: "mona-separator",
120
+ host: {
121
+ "[attr.aria-orientation]": "role() === 'separator' && orientation() === 'vertical' ? 'vertical' : null",
122
+ "[attr.role]": "role()",
123
+ "[class]": "baseClass()"
124
+ },
125
+ template: "@if (labelled()) {\n <span [class]=\"lineClass\" aria-hidden=\"true\"></span>\n <span>{{ label() }}</span>\n <span [class]=\"lineClass\" aria-hidden=\"true\"></span>\n}\n"
126
+ }]
127
+ }],
128
+ propDecorators: {
129
+ decorative: [{
130
+ type: i0.Input,
131
+ args: [{
132
+ isSignal: true,
133
+ alias: "decorative",
134
+ required: false
135
+ }]
136
+ }],
137
+ label: [{
138
+ type: i0.Input,
139
+ args: [{
140
+ isSignal: true,
141
+ alias: "label",
142
+ required: false
143
+ }]
144
+ }],
145
+ orientation: [{
146
+ type: i0.Input,
147
+ args: [{
148
+ isSignal: true,
149
+ alias: "orientation",
150
+ required: false
151
+ }]
152
+ }],
153
+ userClass: [{
154
+ type: i0.Input,
155
+ args: [{
156
+ isSignal: true,
157
+ alias: "class",
158
+ required: false
159
+ }]
160
+ }]
161
+ }
162
+ });
163
+ export { SeparatorComponent };
164
+
165
+ //# sourceMappingURL=nanahoshi-mona-ui-separator.mjs.map
@@ -10,6 +10,7 @@ import { TooltipDirective } from "@nanahoshi/mona-ui/tooltip";
10
10
  import { twMerge } from "tailwind-merge";
11
11
  import { isPlatformBrowser } from "@angular/common";
12
12
  import { cva } from "class-variance-authority";
13
+ import { BADGE_BASE_CLASSES } from "@nanahoshi/mona-ui/badge";
13
14
  import { SkeletonComponent } from "@nanahoshi/mona-ui/skeleton";
14
15
  import * as i1$1 from "@nanahoshi/mona-ui/text-box";
15
16
  import { TextBoxDirective } from "@nanahoshi/mona-ui/text-box";
@@ -613,9 +614,8 @@ const sidebarBackdropThemeVariants = cva(`
613
614
  false: "opacity-0 pointer-events-none"
614
615
  } } });
615
616
  const sidebarMenuBadgeThemeVariants = cva(`
616
- ms-auto flex items-center justify-center shrink-0
617
- min-w-5 h-5 px-1.5
618
- rounded-md text-xs font-medium tabular-nums
617
+ ${BADGE_BASE_CLASSES}
618
+ ms-auto h-5 min-w-5 px-1.5 rounded-md text-xs
619
619
  bg-(--color-sidebar-accent) text-(--color-sidebar-accent-foreground)
620
620
  pointer-events-none select-none
621
621
  `, { variants: { hidden: {