@nanahoshi/mona-ui 0.45.0 → 0.46.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.
- package/THIRD_PARTY_NOTICES.md +34 -0
- package/alert/package.json +3 -2
- package/auto-complete/package.json +3 -2
- package/avatar/package.json +3 -2
- package/badge/package.json +3 -2
- package/breadcrumb/package.json +3 -2
- package/button/package.json +3 -2
- package/button-group/package.json +3 -2
- package/calendar/package.json +3 -2
- package/card/package.json +3 -2
- package/chart/package.json +3 -2
- package/chat/package.json +3 -2
- package/check-box/package.json +3 -2
- package/chip/package.json +3 -2
- package/circular-progress-bar/package.json +3 -2
- package/collapsible/package.json +3 -2
- package/color-gradient/package.json +3 -2
- package/color-palette/package.json +3 -2
- package/color-picker/package.json +3 -2
- package/combo-box/package.json +3 -2
- package/command/package.json +3 -2
- package/common/package.json +3 -2
- package/contextmenu/package.json +3 -2
- package/date-input/package.json +3 -2
- package/date-picker/package.json +3 -2
- package/date-range-picker/package.json +3 -2
- package/datetime-picker/package.json +3 -2
- package/dialog/package.json +3 -2
- package/docs/api/index.json +1 -1
- package/docs/api/theme.json +1 -1
- package/docs/api/theme.md +14 -6
- package/docs/installation.md +1 -1
- package/docs/manifest.json +1 -1
- package/docs/theming-built-in-themes.md +25 -12
- package/docs/theming-custom-themes.md +19 -0
- package/docs/theming.md +2 -1
- package/dropdown-button/package.json +3 -2
- package/dropdown-list/package.json +3 -2
- package/dropdown-tree/package.json +3 -2
- package/dropdowns/package.json +3 -2
- package/editor/package.json +3 -2
- package/expansion-panel/package.json +3 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-colgroup.component-DpszxgFY.mjs → grid-colgroup.component-B4jx10Yi.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-CpvzAcX8.mjs → grid-footer-row.component-CVUltI39.mjs} +12 -12
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-tRmEWiQR.mjs → grid-list.component-Cv1KB5VQ.mjs} +14 -14
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-eET6dh2Q.mjs → grid-row.component-BauMmps5.mjs} +42 -42
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-8h2EMexB.mjs → grid-virtual-list.component-DNjoZfHq.mjs} +10 -10
- package/fesm2022/{nanahoshi-mona-ui-grid-grid.styles-wAf6jsT9.mjs → grid.styles-BJHVTT_v.mjs} +27 -27
- package/fesm2022/nanahoshi-mona-ui-alert.mjs +9 -9
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +15 -15
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +7 -7
- package/fesm2022/nanahoshi-mona-ui-badge.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +15 -15
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +7 -7
- package/fesm2022/nanahoshi-mona-ui-button.mjs +9 -9
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +32 -32
- package/fesm2022/nanahoshi-mona-ui-card.mjs +25 -25
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +170 -170
- package/fesm2022/nanahoshi-mona-ui-chat.mjs +19 -19
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +12 -12
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +9 -9
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +7 -7
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +9 -9
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +13 -13
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +5 -5
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +20 -20
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +15 -15
- package/fesm2022/nanahoshi-mona-ui-command.mjs +48 -48
- package/fesm2022/nanahoshi-mona-ui-common.mjs +12 -12
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +37 -37
- package/fesm2022/nanahoshi-mona-ui-date-input.mjs +14 -14
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +16 -16
- package/fesm2022/nanahoshi-mona-ui-date-range-picker.mjs +16 -16
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +20 -20
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +33 -33
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +38 -38
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +16 -16
- package/fesm2022/nanahoshi-mona-ui-dropdown-tree.mjs +12 -12
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +68 -68
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +100 -100
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +18 -18
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +8 -8
- package/fesm2022/nanahoshi-mona-ui-file-upload.mjs +6 -6
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +19 -19
- package/fesm2022/nanahoshi-mona-ui-form-field.mjs +14 -14
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +154 -154
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +7 -7
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +6 -6
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +4 -4
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +35 -35
- package/fesm2022/nanahoshi-mona-ui-internal-live-announcer.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +39 -39
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +4 -4
- package/fesm2022/nanahoshi-mona-ui-kanban.mjs +17 -17
- package/fesm2022/nanahoshi-mona-ui-label.mjs +8 -8
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +20 -20
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +38 -38
- package/fesm2022/nanahoshi-mona-ui-locales.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-masked-text-box.mjs +13 -13
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +51 -51
- package/fesm2022/nanahoshi-mona-ui-multi-select-tree.mjs +9 -9
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +26 -26
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +18 -18
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +20 -20
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +11 -11
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +22 -22
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +14 -14
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +145 -64
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +19 -19
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +6 -6
- package/fesm2022/nanahoshi-mona-ui-qr-code.mjs +4 -4
- package/fesm2022/nanahoshi-mona-ui-query.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +16 -16
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +14 -14
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +15 -15
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +8 -8
- package/fesm2022/nanahoshi-mona-ui-separator.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +9 -9
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +85 -85
- package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +31 -31
- package/fesm2022/nanahoshi-mona-ui-sortable.mjs +16 -16
- package/fesm2022/nanahoshi-mona-ui-sparkline.mjs +4 -4
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +10 -10
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +44 -44
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +21 -21
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +19 -19
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +17 -17
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +26 -26
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +6 -6
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +19 -19
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +302 -58
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +15 -15
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +14 -14
- package/fesm2022/nanahoshi-mona-ui-timeline.mjs +17 -17
- package/fesm2022/nanahoshi-mona-ui-toolbar.mjs +8 -8
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +13 -13
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +27 -27
- package/fesm2022/nanahoshi-mona-ui-window.mjs +40 -40
- package/fesm2022/nanahoshi-mona-ui.mjs +2 -0
- package/fieldset/package.json +3 -2
- package/file-upload/package.json +3 -2
- package/filter/package.json +3 -2
- package/form-field/package.json +3 -2
- package/grid/package.json +3 -2
- package/i18n/icu/package.json +3 -2
- package/i18n/package.json +3 -2
- package/internal/filter-input/package.json +3 -2
- package/internal/indicator-icon/package.json +3 -2
- package/internal/list/package.json +3 -2
- package/internal/live-announcer/package.json +3 -2
- package/internal/package.json +3 -2
- package/internal/popup-menu/package.json +3 -2
- package/internal/tree/package.json +3 -2
- package/kanban/package.json +3 -2
- package/label/package.json +3 -2
- package/list/package.json +3 -2
- package/list-box/package.json +3 -2
- package/list-view/package.json +3 -2
- package/llms.txt +2 -2
- package/locales/ar-sa/package.json +3 -2
- package/locales/de-de/package.json +3 -2
- package/locales/es-es/package.json +3 -2
- package/locales/fr-fr/package.json +3 -2
- package/locales/id-id/package.json +3 -2
- package/locales/it-it/package.json +3 -2
- package/locales/ja-jp/package.json +3 -2
- package/locales/ko-kr/package.json +3 -2
- package/locales/package.json +3 -2
- package/locales/pl-pl/package.json +3 -2
- package/locales/pt-br/package.json +3 -2
- package/locales/ru-ru/package.json +3 -2
- package/locales/tr-tr/package.json +3 -2
- package/locales/zh-cn/package.json +3 -2
- package/locales/zh-tw/package.json +3 -2
- package/masked-text-box/package.json +3 -2
- package/menubar/package.json +3 -2
- package/multi-select/package.json +3 -2
- package/multi-select-tree/package.json +3 -2
- package/notification/package.json +3 -2
- package/numeric-text-box/package.json +3 -2
- package/otp-input/package.json +3 -2
- package/package.json +170 -169
- package/pager/package.json +3 -2
- package/placeholder/package.json +3 -2
- package/popover/package.json +3 -2
- package/popup/package.json +3 -2
- package/popup-menu/package.json +3 -2
- package/progress-bar/package.json +3 -2
- package/qr-code/package.json +3 -2
- package/query/package.json +3 -2
- package/radio-button/package.json +3 -2
- package/rating/package.json +3 -2
- package/scroll-view/package.json +3 -2
- package/segmented/package.json +3 -2
- package/separator/package.json +3 -2
- package/sheet/package.json +3 -2
- package/sidebar/package.json +3 -2
- package/skeleton/package.json +3 -2
- package/slider/package.json +3 -2
- package/sortable/package.json +3 -2
- package/sparkline/package.json +3 -2
- package/spinner/package.json +3 -2
- package/split-button/package.json +3 -2
- package/splitter/package.json +3 -2
- package/stepper/package.json +3 -2
- package/switch/package.json +3 -2
- package/tabs/package.json +3 -2
- package/text-area/package.json +3 -2
- package/text-box/package.json +3 -2
- package/theme/package.json +3 -2
- package/time-picker/package.json +3 -2
- package/time-selector/package.json +3 -2
- package/timeline/package.json +3 -2
- package/toolbar/package.json +3 -2
- package/tooltip/package.json +3 -2
- package/tree-view/package.json +3 -2
- package/types/nanahoshi-mona-ui-alert.d.ts +2 -2
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +9 -9
- package/types/nanahoshi-mona-ui-badge.d.ts +7 -7
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +2 -2
- package/types/nanahoshi-mona-ui-button-group.d.ts +9 -9
- package/types/nanahoshi-mona-ui-button.d.ts +15 -15
- package/types/nanahoshi-mona-ui-calendar.d.ts +9 -9
- package/types/nanahoshi-mona-ui-card.d.ts +5 -5
- package/types/nanahoshi-mona-ui-chart.d.ts +7 -7
- package/types/nanahoshi-mona-ui-chat.d.ts +2 -2
- package/types/nanahoshi-mona-ui-check-box.d.ts +7 -7
- package/types/nanahoshi-mona-ui-chip.d.ts +9 -9
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +1 -1
- package/types/nanahoshi-mona-ui-collapsible.d.ts +2 -2
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +7 -7
- package/types/nanahoshi-mona-ui-color-palette.d.ts +6 -6
- package/types/nanahoshi-mona-ui-color-picker.d.ts +9 -9
- package/types/nanahoshi-mona-ui-combo-box.d.ts +10 -10
- package/types/nanahoshi-mona-ui-command.d.ts +2 -2
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +2 -2
- package/types/nanahoshi-mona-ui-date-input.d.ts +7 -7
- package/types/nanahoshi-mona-ui-date-picker.d.ts +12 -12
- package/types/nanahoshi-mona-ui-date-range-picker.d.ts +12 -12
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +13 -13
- package/types/nanahoshi-mona-ui-dialog.d.ts +8 -8
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +4 -4
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +9 -9
- package/types/nanahoshi-mona-ui-dropdown-tree.d.ts +9 -9
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +9 -9
- package/types/nanahoshi-mona-ui-editor.d.ts +3 -3
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +4 -4
- package/types/nanahoshi-mona-ui-fieldset.d.ts +4 -4
- package/types/nanahoshi-mona-ui-file-upload.d.ts +1 -1
- package/types/nanahoshi-mona-ui-filter.d.ts +8 -8
- package/types/nanahoshi-mona-ui-grid.d.ts +50 -49
- package/types/nanahoshi-mona-ui-i18n.d.ts +2 -2
- package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +1 -1
- package/types/nanahoshi-mona-ui-internal-list.d.ts +5 -5
- package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +1 -1
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +2 -2
- package/types/nanahoshi-mona-ui-internal.d.ts +2 -2
- package/types/nanahoshi-mona-ui-kanban.d.ts +2 -2
- package/types/nanahoshi-mona-ui-list-box.d.ts +7 -7
- package/types/nanahoshi-mona-ui-list-view.d.ts +9 -9
- package/types/nanahoshi-mona-ui-locales.d.ts +1 -1
- package/types/nanahoshi-mona-ui-masked-text-box.d.ts +6 -6
- package/types/nanahoshi-mona-ui-menubar.d.ts +8 -8
- package/types/nanahoshi-mona-ui-multi-select-tree.d.ts +8 -8
- package/types/nanahoshi-mona-ui-multi-select.d.ts +11 -11
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +9 -9
- package/types/nanahoshi-mona-ui-otp-input.d.ts +7 -7
- package/types/nanahoshi-mona-ui-pager.d.ts +7 -7
- package/types/nanahoshi-mona-ui-placeholder.d.ts +2 -2
- package/types/nanahoshi-mona-ui-popover.d.ts +5 -5
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +9 -9
- package/types/nanahoshi-mona-ui-popup.d.ts +4 -4
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +5 -5
- package/types/nanahoshi-mona-ui-qr-code.d.ts +1 -1
- package/types/nanahoshi-mona-ui-radio-button.d.ts +8 -8
- package/types/nanahoshi-mona-ui-rating.d.ts +10 -10
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +6 -6
- package/types/nanahoshi-mona-ui-segmented.d.ts +9 -9
- package/types/nanahoshi-mona-ui-separator.d.ts +1 -1
- package/types/nanahoshi-mona-ui-sheet.d.ts +4 -4
- package/types/nanahoshi-mona-ui-sidebar.d.ts +5 -5
- package/types/nanahoshi-mona-ui-skeleton.d.ts +3 -3
- package/types/nanahoshi-mona-ui-slider.d.ts +8 -8
- package/types/nanahoshi-mona-ui-sortable.d.ts +2 -2
- package/types/nanahoshi-mona-ui-sparkline.d.ts +1 -1
- package/types/nanahoshi-mona-ui-spinner.d.ts +6 -6
- package/types/nanahoshi-mona-ui-split-button.d.ts +10 -10
- package/types/nanahoshi-mona-ui-splitter.d.ts +3 -3
- package/types/nanahoshi-mona-ui-stepper.d.ts +6 -6
- package/types/nanahoshi-mona-ui-switch.d.ts +7 -7
- package/types/nanahoshi-mona-ui-tabs.d.ts +13 -13
- package/types/nanahoshi-mona-ui-text-area.d.ts +4 -4
- package/types/nanahoshi-mona-ui-text-box.d.ts +9 -9
- package/types/nanahoshi-mona-ui-theme.d.ts +107 -37
- package/types/nanahoshi-mona-ui-time-picker.d.ts +12 -12
- package/types/nanahoshi-mona-ui-time-selector.d.ts +8 -8
- package/types/nanahoshi-mona-ui-toolbar.d.ts +3 -3
- package/types/nanahoshi-mona-ui-tooltip.d.ts +6 -6
- package/types/nanahoshi-mona-ui-tree-view.d.ts +2 -2
- package/types/nanahoshi-mona-ui-window.d.ts +7 -7
- package/types/nanahoshi-mona-ui.d.ts +2 -1
- package/window/package.json +3 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Built-in Themes
|
|
2
2
|
|
|
3
|
-
> Mona, Luna and
|
|
3
|
+
> Mona, Luna, Anna and Rena side by side, and when to use each one.
|
|
4
4
|
|
|
5
|
-
Mona UI comes with
|
|
5
|
+
Mona UI comes with four themes: Mona, Luna, Anna and Rena. Each one is complete, from colors and shadows to corner radii, motion and materials, and is tested for WCAG AA contrast.
|
|
6
6
|
|
|
7
7
|
The previews below are real components, each drawn in its own theme, whatever theme this site is in. Hover, click and tab through them to see each theme's states.
|
|
8
8
|
|
|
@@ -42,21 +42,34 @@ Anna Dark has charcoal surfaces, near-black borders and a solid violet for selec
|
|
|
42
42
|
|
|
43
43
|
Anna Light has soft gray surfaces and off-white controls that darken gently on hover. Selection is a violet tint rather than a solid fill, so secondary text in a selected row stays readable. The deep violet stands out well on the light surface, so it draws slider ranges, switches and the rest as it is.
|
|
44
44
|
|
|
45
|
+
## Rena
|
|
46
|
+
|
|
47
|
+
Rena takes its colors from Tailwind CSS's default palette: cool grays with an indigo primary. Rena Light puts white panels on a very light, cool gray page, and Rena Dark puts slightly lighter panels on a deep blue-gray page. Controls cast a small, crisp shadow, and menus and popups a larger, softer one. Animations are quick, at 150 ms and 200 ms.
|
|
48
|
+
|
|
49
|
+
```typescript
|
|
50
|
+
provideThemeOptions({ initialTheme: { name: "rena", variant: "system" } });
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Where the other themes draw a soft, translucent halo around a focused or invalid control, Rena draws a solid line: the control's border takes the focus color, with a 1 px ring of the same color around it. [Custom Themes](theming-custom-themes.md#focus-rings) shows how a theme of your own can do the same.
|
|
54
|
+
|
|
55
|
+
Selection is an indigo tint in both variants. Main actions keep the same indigo in Rena Dark, under white text, but on its own it would be hard to see against the dark surface. So where a color alone shows a value, as in slider ranges, progress bars, switches, radio buttons, tabs and steps, and where the primary color is text, Rena Dark uses a lighter indigo instead.
|
|
56
|
+
|
|
45
57
|
## Compare the Themes
|
|
46
58
|
|
|
47
|
-
| | Mona | Luna | Anna |
|
|
48
|
-
| ------------- | --------------------------------------- | --------------------------------------- | ------------------------------------ |
|
|
49
|
-
| Variants | Light, dark | Light, dark | Light, dark |
|
|
50
|
-
| Primary color | Near-black in light, near-white in dark | Blue | Deep violet |
|
|
51
|
-
| Selection | Gray tint | Blue tint | Violet tint in light, violet in dark |
|
|
52
|
-
| Materials | Opaque | Translucent glass, or opaque if reduced | Opaque |
|
|
53
|
-
| Shadows | Subtle | Soft and wide | None on controls |
|
|
54
|
-
|
|
|
55
|
-
|
|
|
59
|
+
| | Mona | Luna | Anna | Rena |
|
|
60
|
+
| ------------- | --------------------------------------- | --------------------------------------- | ------------------------------------ | ----------------- |
|
|
61
|
+
| Variants | Light, dark | Light, dark | Light, dark | Light, dark |
|
|
62
|
+
| Primary color | Near-black in light, near-white in dark | Blue | Deep violet | Indigo |
|
|
63
|
+
| Selection | Gray tint | Blue tint | Violet tint in light, violet in dark | Indigo tint |
|
|
64
|
+
| Materials | Opaque | Translucent glass, or opaque if reduced | Opaque | Opaque |
|
|
65
|
+
| Shadows | Subtle | Soft and wide | None on controls | Small and crisp |
|
|
66
|
+
| Focus ring | Soft halo | Soft halo | Soft halo | Solid line |
|
|
67
|
+
| Motion | 200 ms and 300 ms | 180 ms and 320 ms | 150 ms | 150 ms and 200 ms |
|
|
68
|
+
| Corner radii | 4, 6 and 8 px | 4, 6 and 8 px | 4, 6 and 8 px | 4, 6 and 8 px |
|
|
56
69
|
|
|
57
70
|
## Start from a Built-in Theme
|
|
58
71
|
|
|
59
|
-
The themes are exported, as `monaTheme`, `lunaTheme` and `
|
|
72
|
+
The themes are exported, as `monaTheme`, `lunaTheme`, `annaTheme` and `renaTheme`, and together as `builtInThemes`, so you can read their tokens or build on them:
|
|
60
73
|
|
|
61
74
|
```typescript
|
|
62
75
|
import { monaTheme } from "@nanahoshi/mona-ui/theme";
|
|
@@ -114,6 +114,24 @@ custom: {
|
|
|
114
114
|
}
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
+
### Focus Rings
|
|
118
|
+
|
|
119
|
+
A focused control's border takes `--color-focus-indicator`, with a ring of the same color around it. An invalid control does the same in `--color-error`. Two variables shape the ring, and a theme sets them in `custom`:
|
|
120
|
+
|
|
121
|
+
- `--mona-focus-ring-width` is how wide the ring is. It falls back to `2px`.
|
|
122
|
+
- `--mona-focus-ring-opacity` is how strong the ring's color is, as a percentage. It falls back to `35%`, a soft halo.
|
|
123
|
+
|
|
124
|
+
For a solid line, as Rena draws, make the ring narrower and opaque. With the border, it reads as one 2 px line:
|
|
125
|
+
|
|
126
|
+
```typescript
|
|
127
|
+
custom: {
|
|
128
|
+
"--mona-focus-ring-width": "1px",
|
|
129
|
+
"--mona-focus-ring-opacity": "100%"
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
The ring and a control's shadow are drawn together, as one `box-shadow`. So for no shadow, write `0 0 #0000`, as Anna does for its flat controls, not `none`: a shadow token set to `none` hides the ring of every control that uses it.
|
|
134
|
+
|
|
117
135
|
### Contrast Borders
|
|
118
136
|
|
|
119
137
|
`--color-border-control-contrast` and `--color-border-control-contrast-hover` are the only optional colors. When the user asks for more contrast, the theme service uses them in place of `--color-border-control` and `--color-border-control-hover`, for fields, buttons, chips, chart gridlines and everything else that shares those borders. Give them at least 3:1 against `--color-input-background`. A theme without them keeps its usual borders.
|
|
@@ -133,6 +151,7 @@ In development, custom themes and overrides are also checked, and each problem l
|
|
|
133
151
|
|
|
134
152
|
- A value that isn't a color.
|
|
135
153
|
- A custom variable whose name doesn't start with `--`.
|
|
154
|
+
- A shadow set to `none`, which hides the [focus ring](#focus-rings). Use `0 0 #0000` for no shadow.
|
|
136
155
|
- A pair below the contrast WCAG AA asks for:
|
|
137
156
|
- 4.5:1 for `--color-foreground` and `--color-muted-foreground` on `--color-surface`, `--color-input-foreground` on `--color-input-background`, and `--color-primary-foreground` on `--color-primary`.
|
|
138
157
|
- 3:1 for `--color-focus-indicator` and `--color-selected-border` on `--color-surface`, and for the contrast borders on `--color-input-background`, when the theme sets them.
|
package/docs/theming.md
CHANGED
|
@@ -30,6 +30,7 @@ Most themes have a light and a dark variant. The theme and the variant together,
|
|
|
30
30
|
| Mona | Light, dark | Neutral grays, with color kept for status. The default. |
|
|
31
31
|
| Luna | Light, dark | Clean surfaces with a blue primary, and translucent glass on controls and overlays. |
|
|
32
32
|
| Anna | Light, dark | Graphite grays with a deep violet primary, and flat controls a shade lighter. |
|
|
33
|
+
| Rena | Light, dark | Tailwind CSS's cool grays and indigo, with crisp shadows and a solid focus ring. |
|
|
33
34
|
|
|
34
35
|
[Built-in Themes](theming-built-in-themes.md) shows each one side by side, with real components.
|
|
35
36
|
|
|
@@ -315,5 +316,5 @@ Provided in root. It's created by any theme provider at startup, or by the first
|
|
|
315
316
|
- **Selections:** `ThemeName`, `ThemeVariant`, `ThemeVariantPreference`, `ThemePreference`, `ThemeSelection`, `ThemeAvailability`.
|
|
316
317
|
- **Definitions:** `ThemeProfile`, `ThemeFamilyRegistration`, `ThemeOverrideRegistration`, `ThemeOptions`, `ThemeColorPaletteRegistration`, `ThemeColorPaletteSeeds`.
|
|
317
318
|
- **Extending:** `ThemeStrategy`, `ThemeStorage`, `DefaultThemeStrategy`, `LocalStorageThemeStorage`.
|
|
318
|
-
- **Built-in themes:** `monaTheme`, `lunaTheme`, `annaTheme`, `builtInThemes`.
|
|
319
|
+
- **Built-in themes:** `monaTheme`, `lunaTheme`, `annaTheme`, `renaTheme`, `builtInThemes`.
|
|
319
320
|
- **Helpers:** `generateThemeColorPalette`, `flattenThemeProfile`, `createSidebarColorRoles`.
|
package/dropdowns/package.json
CHANGED
package/editor/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as GridService } from "./
|
|
1
|
+
import { q as GridService } from "./grid.styles-BJHVTT_v.mjs";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import { Component, inject } from "@angular/core";
|
|
4
4
|
import { take } from "rxjs";
|
|
@@ -40,7 +40,7 @@ var GridColgroupComponent = class GridColgroupComponent {
|
|
|
40
40
|
static {
|
|
41
41
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
42
42
|
minVersion: "12.0.0",
|
|
43
|
-
version: "22.
|
|
43
|
+
version: "22.3.0",
|
|
44
44
|
ngImport: i0,
|
|
45
45
|
type: GridColgroupComponent,
|
|
46
46
|
deps: [],
|
|
@@ -50,7 +50,7 @@ var GridColgroupComponent = class GridColgroupComponent {
|
|
|
50
50
|
static {
|
|
51
51
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
52
52
|
minVersion: "17.0.0",
|
|
53
|
-
version: "22.
|
|
53
|
+
version: "22.3.0",
|
|
54
54
|
type: GridColgroupComponent,
|
|
55
55
|
isStandalone: true,
|
|
56
56
|
selector: "colgroup[monaGridColgroup]",
|
|
@@ -61,7 +61,7 @@ var GridColgroupComponent = class GridColgroupComponent {
|
|
|
61
61
|
};
|
|
62
62
|
i0.ɵɵngDeclareClassMetadata({
|
|
63
63
|
minVersion: "12.0.0",
|
|
64
|
-
version: "22.
|
|
64
|
+
version: "22.3.0",
|
|
65
65
|
ngImport: i0,
|
|
66
66
|
type: GridColgroupComponent,
|
|
67
67
|
decorators: [{
|
|
@@ -74,4 +74,4 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
74
74
|
});
|
|
75
75
|
export { removeGridRow as n, GridColgroupComponent as t };
|
|
76
76
|
|
|
77
|
-
//# sourceMappingURL=
|
|
77
|
+
//# sourceMappingURL=grid-colgroup.component-B4jx10Yi.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { H as GridLogicalCellDirective, K as GridLockedCellDirective, h as gridFooterTableRowThemeVariants, m as gridFooterTableCellThemeVariants, q as GridService } from "./
|
|
1
|
+
import { H as GridLogicalCellDirective, K as GridLockedCellDirective, h as gridFooterTableRowThemeVariants, m as gridFooterTableCellThemeVariants, q as GridService } from "./grid.styles-BJHVTT_v.mjs";
|
|
2
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
import { Component, Directive, computed, inject, input } from "@angular/core";
|
|
4
|
-
import { NgTemplateOutlet } from "@angular/common";
|
|
5
5
|
import { ImmutableDictionary } from "@mirei/ts-collections";
|
|
6
6
|
var GridFooterTableCellDirective = class GridFooterTableCellDirective {
|
|
7
7
|
constructor() {
|
|
@@ -19,7 +19,7 @@ var GridFooterTableCellDirective = class GridFooterTableCellDirective {
|
|
|
19
19
|
static {
|
|
20
20
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
21
21
|
minVersion: "12.0.0",
|
|
22
|
-
version: "22.
|
|
22
|
+
version: "22.3.0",
|
|
23
23
|
ngImport: i0,
|
|
24
24
|
type: GridFooterTableCellDirective,
|
|
25
25
|
deps: [],
|
|
@@ -29,7 +29,7 @@ var GridFooterTableCellDirective = class GridFooterTableCellDirective {
|
|
|
29
29
|
static {
|
|
30
30
|
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
31
31
|
minVersion: "17.1.0",
|
|
32
|
-
version: "22.
|
|
32
|
+
version: "22.3.0",
|
|
33
33
|
type: GridFooterTableCellDirective,
|
|
34
34
|
isStandalone: true,
|
|
35
35
|
selector: "td[monaGridFooterTableCell]",
|
|
@@ -70,7 +70,7 @@ var GridFooterTableCellDirective = class GridFooterTableCellDirective {
|
|
|
70
70
|
};
|
|
71
71
|
i0.ɵɵngDeclareClassMetadata({
|
|
72
72
|
minVersion: "12.0.0",
|
|
73
|
-
version: "22.
|
|
73
|
+
version: "22.3.0",
|
|
74
74
|
ngImport: i0,
|
|
75
75
|
type: GridFooterTableCellDirective,
|
|
76
76
|
decorators: [{
|
|
@@ -170,7 +170,7 @@ var GridFooterCellComponent = class GridFooterCellComponent {
|
|
|
170
170
|
static {
|
|
171
171
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
172
172
|
minVersion: "12.0.0",
|
|
173
|
-
version: "22.
|
|
173
|
+
version: "22.3.0",
|
|
174
174
|
ngImport: i0,
|
|
175
175
|
type: GridFooterCellComponent,
|
|
176
176
|
deps: [],
|
|
@@ -180,7 +180,7 @@ var GridFooterCellComponent = class GridFooterCellComponent {
|
|
|
180
180
|
static {
|
|
181
181
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
182
182
|
minVersion: "17.0.0",
|
|
183
|
-
version: "22.
|
|
183
|
+
version: "22.3.0",
|
|
184
184
|
type: GridFooterCellComponent,
|
|
185
185
|
isStandalone: true,
|
|
186
186
|
selector: "mona-grid-footer-cell",
|
|
@@ -232,7 +232,7 @@ var GridFooterCellComponent = class GridFooterCellComponent {
|
|
|
232
232
|
};
|
|
233
233
|
i0.ɵɵngDeclareClassMetadata({
|
|
234
234
|
minVersion: "12.0.0",
|
|
235
|
-
version: "22.
|
|
235
|
+
version: "22.3.0",
|
|
236
236
|
ngImport: i0,
|
|
237
237
|
type: GridFooterCellComponent,
|
|
238
238
|
decorators: [{
|
|
@@ -290,7 +290,7 @@ var GridFooterRowComponent = class GridFooterRowComponent {
|
|
|
290
290
|
static {
|
|
291
291
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
292
292
|
minVersion: "12.0.0",
|
|
293
|
-
version: "22.
|
|
293
|
+
version: "22.3.0",
|
|
294
294
|
ngImport: i0,
|
|
295
295
|
type: GridFooterRowComponent,
|
|
296
296
|
deps: [],
|
|
@@ -300,7 +300,7 @@ var GridFooterRowComponent = class GridFooterRowComponent {
|
|
|
300
300
|
static {
|
|
301
301
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
302
302
|
minVersion: "17.0.0",
|
|
303
|
-
version: "22.
|
|
303
|
+
version: "22.3.0",
|
|
304
304
|
type: GridFooterRowComponent,
|
|
305
305
|
isStandalone: true,
|
|
306
306
|
selector: "tr[monaGridFooterRow]",
|
|
@@ -416,7 +416,7 @@ var GridFooterRowComponent = class GridFooterRowComponent {
|
|
|
416
416
|
};
|
|
417
417
|
i0.ɵɵngDeclareClassMetadata({
|
|
418
418
|
minVersion: "12.0.0",
|
|
419
|
-
version: "22.
|
|
419
|
+
version: "22.3.0",
|
|
420
420
|
ngImport: i0,
|
|
421
421
|
type: GridFooterRowComponent,
|
|
422
422
|
decorators: [{
|
|
@@ -483,4 +483,4 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
483
483
|
});
|
|
484
484
|
export { GridFooterRowComponent };
|
|
485
485
|
|
|
486
|
-
//# sourceMappingURL=
|
|
486
|
+
//# sourceMappingURL=grid-footer-row.component-CVUltI39.mjs.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { I as gridRowDragPreviewThemeVariants, K as GridLockedCellDirective, P as gridListTableThemeVariants, j as gridListBaseThemeVariants, q as GridService } from "./
|
|
2
|
-
import { i as GridCellDirective, n as GridGroupRowComponent, r as GridAddRowComponent, t as GridRowComponent } from "./
|
|
3
|
-
import { t as GridColgroupComponent } from "./
|
|
4
|
-
import { GridFooterRowComponent } from "./
|
|
1
|
+
import { I as gridRowDragPreviewThemeVariants, K as GridLockedCellDirective, P as gridListTableThemeVariants, j as gridListBaseThemeVariants, q as GridService } from "./grid.styles-BJHVTT_v.mjs";
|
|
2
|
+
import { i as GridCellDirective, n as GridGroupRowComponent, r as GridAddRowComponent, t as GridRowComponent } from "./grid-row.component-BauMmps5.mjs";
|
|
3
|
+
import { t as GridColgroupComponent } from "./grid-colgroup.component-B4jx10Yi.mjs";
|
|
4
|
+
import { GridFooterRowComponent } from "./grid-footer-row.component-CVUltI39.mjs";
|
|
5
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
import { Component, DestroyRef, ElementRef, afterNextRender, afterRenderEffect, computed, effect, inject, input, untracked, viewChild } from "@angular/core";
|
|
7
|
-
import {
|
|
8
|
-
import { ImmutableList } from "@mirei/ts-collections";
|
|
8
|
+
import { LucideGripVertical } from "@lucide/angular";
|
|
9
9
|
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
10
|
+
import { ImmutableList } from "@mirei/ts-collections";
|
|
10
11
|
import { ContextMenuComponent } from "@nanahoshi/mona-ui/contextmenu";
|
|
11
12
|
import { CdkDrag, CdkDragPreview, CdkDropList } from "@angular/cdk/drag-drop";
|
|
12
|
-
import { LucideGripVertical } from "@lucide/angular";
|
|
13
13
|
var GridDetailRowComponent = class GridDetailRowComponent {
|
|
14
14
|
constructor() {
|
|
15
15
|
this.contentColIndex = computed(() => this.gridService.layout().filter((layoutColumn) => layoutColumn.kind !== "column").length + 1, ...ngDevMode ? [{ debugName: "contentColIndex" }] : /* istanbul ignore next */ []);
|
|
@@ -22,7 +22,7 @@ var GridDetailRowComponent = class GridDetailRowComponent {
|
|
|
22
22
|
static {
|
|
23
23
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
24
24
|
minVersion: "12.0.0",
|
|
25
|
-
version: "22.
|
|
25
|
+
version: "22.3.0",
|
|
26
26
|
ngImport: i0,
|
|
27
27
|
type: GridDetailRowComponent,
|
|
28
28
|
deps: [],
|
|
@@ -32,7 +32,7 @@ var GridDetailRowComponent = class GridDetailRowComponent {
|
|
|
32
32
|
static {
|
|
33
33
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
34
34
|
minVersion: "17.0.0",
|
|
35
|
-
version: "22.
|
|
35
|
+
version: "22.3.0",
|
|
36
36
|
type: GridDetailRowComponent,
|
|
37
37
|
isStandalone: true,
|
|
38
38
|
selector: "tr[monaGridDetailRow]",
|
|
@@ -99,7 +99,7 @@ var GridDetailRowComponent = class GridDetailRowComponent {
|
|
|
99
99
|
};
|
|
100
100
|
i0.ɵɵngDeclareClassMetadata({
|
|
101
101
|
minVersion: "12.0.0",
|
|
102
|
-
version: "22.
|
|
102
|
+
version: "22.3.0",
|
|
103
103
|
ngImport: i0,
|
|
104
104
|
type: GridDetailRowComponent,
|
|
105
105
|
decorators: [{
|
|
@@ -261,7 +261,7 @@ var GridListComponent = class GridListComponent {
|
|
|
261
261
|
static {
|
|
262
262
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
263
263
|
minVersion: "12.0.0",
|
|
264
|
-
version: "22.
|
|
264
|
+
version: "22.3.0",
|
|
265
265
|
ngImport: i0,
|
|
266
266
|
type: GridListComponent,
|
|
267
267
|
deps: [],
|
|
@@ -271,7 +271,7 @@ var GridListComponent = class GridListComponent {
|
|
|
271
271
|
static {
|
|
272
272
|
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
273
273
|
minVersion: "17.0.0",
|
|
274
|
-
version: "22.
|
|
274
|
+
version: "22.3.0",
|
|
275
275
|
type: GridListComponent,
|
|
276
276
|
isStandalone: true,
|
|
277
277
|
selector: "mona-grid-list",
|
|
@@ -429,7 +429,7 @@ var GridListComponent = class GridListComponent {
|
|
|
429
429
|
};
|
|
430
430
|
i0.ɵɵngDeclareClassMetadata({
|
|
431
431
|
minVersion: "12.0.0",
|
|
432
|
-
version: "22.
|
|
432
|
+
version: "22.3.0",
|
|
433
433
|
ngImport: i0,
|
|
434
434
|
type: GridListComponent,
|
|
435
435
|
decorators: [{
|
|
@@ -471,4 +471,4 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
471
471
|
});
|
|
472
472
|
export { GridListComponent };
|
|
473
473
|
|
|
474
|
-
//# sourceMappingURL=
|
|
474
|
+
//# sourceMappingURL=grid-list.component-Cv1KB5VQ.mjs.map
|