@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.
Files changed (305) hide show
  1. package/THIRD_PARTY_NOTICES.md +34 -0
  2. package/alert/package.json +3 -2
  3. package/auto-complete/package.json +3 -2
  4. package/avatar/package.json +3 -2
  5. package/badge/package.json +3 -2
  6. package/breadcrumb/package.json +3 -2
  7. package/button/package.json +3 -2
  8. package/button-group/package.json +3 -2
  9. package/calendar/package.json +3 -2
  10. package/card/package.json +3 -2
  11. package/chart/package.json +3 -2
  12. package/chat/package.json +3 -2
  13. package/check-box/package.json +3 -2
  14. package/chip/package.json +3 -2
  15. package/circular-progress-bar/package.json +3 -2
  16. package/collapsible/package.json +3 -2
  17. package/color-gradient/package.json +3 -2
  18. package/color-palette/package.json +3 -2
  19. package/color-picker/package.json +3 -2
  20. package/combo-box/package.json +3 -2
  21. package/command/package.json +3 -2
  22. package/common/package.json +3 -2
  23. package/contextmenu/package.json +3 -2
  24. package/date-input/package.json +3 -2
  25. package/date-picker/package.json +3 -2
  26. package/date-range-picker/package.json +3 -2
  27. package/datetime-picker/package.json +3 -2
  28. package/dialog/package.json +3 -2
  29. package/docs/api/index.json +1 -1
  30. package/docs/api/theme.json +1 -1
  31. package/docs/api/theme.md +14 -6
  32. package/docs/installation.md +1 -1
  33. package/docs/manifest.json +1 -1
  34. package/docs/theming-built-in-themes.md +25 -12
  35. package/docs/theming-custom-themes.md +19 -0
  36. package/docs/theming.md +2 -1
  37. package/dropdown-button/package.json +3 -2
  38. package/dropdown-list/package.json +3 -2
  39. package/dropdown-tree/package.json +3 -2
  40. package/dropdowns/package.json +3 -2
  41. package/editor/package.json +3 -2
  42. package/expansion-panel/package.json +3 -2
  43. package/fesm2022/{nanahoshi-mona-ui-grid-grid-colgroup.component-DpszxgFY.mjs → grid-colgroup.component-B4jx10Yi.mjs} +5 -5
  44. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-CpvzAcX8.mjs → grid-footer-row.component-CVUltI39.mjs} +12 -12
  45. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-tRmEWiQR.mjs → grid-list.component-Cv1KB5VQ.mjs} +14 -14
  46. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-eET6dh2Q.mjs → grid-row.component-BauMmps5.mjs} +42 -42
  47. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-8h2EMexB.mjs → grid-virtual-list.component-DNjoZfHq.mjs} +10 -10
  48. package/fesm2022/{nanahoshi-mona-ui-grid-grid.styles-wAf6jsT9.mjs → grid.styles-BJHVTT_v.mjs} +27 -27
  49. package/fesm2022/nanahoshi-mona-ui-alert.mjs +9 -9
  50. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +15 -15
  51. package/fesm2022/nanahoshi-mona-ui-avatar.mjs +7 -7
  52. package/fesm2022/nanahoshi-mona-ui-badge.mjs +3 -3
  53. package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +15 -15
  54. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +7 -7
  55. package/fesm2022/nanahoshi-mona-ui-button.mjs +9 -9
  56. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +32 -32
  57. package/fesm2022/nanahoshi-mona-ui-card.mjs +25 -25
  58. package/fesm2022/nanahoshi-mona-ui-chart.mjs +170 -170
  59. package/fesm2022/nanahoshi-mona-ui-chat.mjs +19 -19
  60. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +12 -12
  61. package/fesm2022/nanahoshi-mona-ui-chip.mjs +9 -9
  62. package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +7 -7
  63. package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +9 -9
  64. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +13 -13
  65. package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +5 -5
  66. package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +20 -20
  67. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +15 -15
  68. package/fesm2022/nanahoshi-mona-ui-command.mjs +48 -48
  69. package/fesm2022/nanahoshi-mona-ui-common.mjs +12 -12
  70. package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +37 -37
  71. package/fesm2022/nanahoshi-mona-ui-date-input.mjs +14 -14
  72. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +16 -16
  73. package/fesm2022/nanahoshi-mona-ui-date-range-picker.mjs +16 -16
  74. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +20 -20
  75. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +33 -33
  76. package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +38 -38
  77. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +16 -16
  78. package/fesm2022/nanahoshi-mona-ui-dropdown-tree.mjs +12 -12
  79. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +68 -68
  80. package/fesm2022/nanahoshi-mona-ui-editor.mjs +100 -100
  81. package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +18 -18
  82. package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +8 -8
  83. package/fesm2022/nanahoshi-mona-ui-file-upload.mjs +6 -6
  84. package/fesm2022/nanahoshi-mona-ui-filter.mjs +19 -19
  85. package/fesm2022/nanahoshi-mona-ui-form-field.mjs +14 -14
  86. package/fesm2022/nanahoshi-mona-ui-grid.mjs +154 -154
  87. package/fesm2022/nanahoshi-mona-ui-i18n.mjs +7 -7
  88. package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +6 -6
  89. package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +4 -4
  90. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +35 -35
  91. package/fesm2022/nanahoshi-mona-ui-internal-live-announcer.mjs +1 -1
  92. package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +1 -1
  93. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +39 -39
  94. package/fesm2022/nanahoshi-mona-ui-internal.mjs +4 -4
  95. package/fesm2022/nanahoshi-mona-ui-kanban.mjs +17 -17
  96. package/fesm2022/nanahoshi-mona-ui-label.mjs +8 -8
  97. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +20 -20
  98. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +38 -38
  99. package/fesm2022/nanahoshi-mona-ui-locales.mjs +1 -1
  100. package/fesm2022/nanahoshi-mona-ui-masked-text-box.mjs +13 -13
  101. package/fesm2022/nanahoshi-mona-ui-menubar.mjs +51 -51
  102. package/fesm2022/nanahoshi-mona-ui-multi-select-tree.mjs +9 -9
  103. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +26 -26
  104. package/fesm2022/nanahoshi-mona-ui-notification.mjs +18 -18
  105. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +20 -20
  106. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +11 -11
  107. package/fesm2022/nanahoshi-mona-ui-pager.mjs +22 -22
  108. package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +3 -3
  109. package/fesm2022/nanahoshi-mona-ui-popover.mjs +14 -14
  110. package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +145 -64
  111. package/fesm2022/nanahoshi-mona-ui-popup.mjs +19 -19
  112. package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +6 -6
  113. package/fesm2022/nanahoshi-mona-ui-qr-code.mjs +4 -4
  114. package/fesm2022/nanahoshi-mona-ui-query.mjs +1 -1
  115. package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +16 -16
  116. package/fesm2022/nanahoshi-mona-ui-rating.mjs +14 -14
  117. package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +15 -15
  118. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +8 -8
  119. package/fesm2022/nanahoshi-mona-ui-separator.mjs +3 -3
  120. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +9 -9
  121. package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +85 -85
  122. package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +3 -3
  123. package/fesm2022/nanahoshi-mona-ui-slider.mjs +31 -31
  124. package/fesm2022/nanahoshi-mona-ui-sortable.mjs +16 -16
  125. package/fesm2022/nanahoshi-mona-ui-sparkline.mjs +4 -4
  126. package/fesm2022/nanahoshi-mona-ui-spinner.mjs +10 -10
  127. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +44 -44
  128. package/fesm2022/nanahoshi-mona-ui-splitter.mjs +21 -21
  129. package/fesm2022/nanahoshi-mona-ui-stepper.mjs +19 -19
  130. package/fesm2022/nanahoshi-mona-ui-switch.mjs +17 -17
  131. package/fesm2022/nanahoshi-mona-ui-tabs.mjs +26 -26
  132. package/fesm2022/nanahoshi-mona-ui-text-area.mjs +6 -6
  133. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +19 -19
  134. package/fesm2022/nanahoshi-mona-ui-theme.mjs +302 -58
  135. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +15 -15
  136. package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +14 -14
  137. package/fesm2022/nanahoshi-mona-ui-timeline.mjs +17 -17
  138. package/fesm2022/nanahoshi-mona-ui-toolbar.mjs +8 -8
  139. package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +13 -13
  140. package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +27 -27
  141. package/fesm2022/nanahoshi-mona-ui-window.mjs +40 -40
  142. package/fesm2022/nanahoshi-mona-ui.mjs +2 -0
  143. package/fieldset/package.json +3 -2
  144. package/file-upload/package.json +3 -2
  145. package/filter/package.json +3 -2
  146. package/form-field/package.json +3 -2
  147. package/grid/package.json +3 -2
  148. package/i18n/icu/package.json +3 -2
  149. package/i18n/package.json +3 -2
  150. package/internal/filter-input/package.json +3 -2
  151. package/internal/indicator-icon/package.json +3 -2
  152. package/internal/list/package.json +3 -2
  153. package/internal/live-announcer/package.json +3 -2
  154. package/internal/package.json +3 -2
  155. package/internal/popup-menu/package.json +3 -2
  156. package/internal/tree/package.json +3 -2
  157. package/kanban/package.json +3 -2
  158. package/label/package.json +3 -2
  159. package/list/package.json +3 -2
  160. package/list-box/package.json +3 -2
  161. package/list-view/package.json +3 -2
  162. package/llms.txt +2 -2
  163. package/locales/ar-sa/package.json +3 -2
  164. package/locales/de-de/package.json +3 -2
  165. package/locales/es-es/package.json +3 -2
  166. package/locales/fr-fr/package.json +3 -2
  167. package/locales/id-id/package.json +3 -2
  168. package/locales/it-it/package.json +3 -2
  169. package/locales/ja-jp/package.json +3 -2
  170. package/locales/ko-kr/package.json +3 -2
  171. package/locales/package.json +3 -2
  172. package/locales/pl-pl/package.json +3 -2
  173. package/locales/pt-br/package.json +3 -2
  174. package/locales/ru-ru/package.json +3 -2
  175. package/locales/tr-tr/package.json +3 -2
  176. package/locales/zh-cn/package.json +3 -2
  177. package/locales/zh-tw/package.json +3 -2
  178. package/masked-text-box/package.json +3 -2
  179. package/menubar/package.json +3 -2
  180. package/multi-select/package.json +3 -2
  181. package/multi-select-tree/package.json +3 -2
  182. package/notification/package.json +3 -2
  183. package/numeric-text-box/package.json +3 -2
  184. package/otp-input/package.json +3 -2
  185. package/package.json +170 -169
  186. package/pager/package.json +3 -2
  187. package/placeholder/package.json +3 -2
  188. package/popover/package.json +3 -2
  189. package/popup/package.json +3 -2
  190. package/popup-menu/package.json +3 -2
  191. package/progress-bar/package.json +3 -2
  192. package/qr-code/package.json +3 -2
  193. package/query/package.json +3 -2
  194. package/radio-button/package.json +3 -2
  195. package/rating/package.json +3 -2
  196. package/scroll-view/package.json +3 -2
  197. package/segmented/package.json +3 -2
  198. package/separator/package.json +3 -2
  199. package/sheet/package.json +3 -2
  200. package/sidebar/package.json +3 -2
  201. package/skeleton/package.json +3 -2
  202. package/slider/package.json +3 -2
  203. package/sortable/package.json +3 -2
  204. package/sparkline/package.json +3 -2
  205. package/spinner/package.json +3 -2
  206. package/split-button/package.json +3 -2
  207. package/splitter/package.json +3 -2
  208. package/stepper/package.json +3 -2
  209. package/switch/package.json +3 -2
  210. package/tabs/package.json +3 -2
  211. package/text-area/package.json +3 -2
  212. package/text-box/package.json +3 -2
  213. package/theme/package.json +3 -2
  214. package/time-picker/package.json +3 -2
  215. package/time-selector/package.json +3 -2
  216. package/timeline/package.json +3 -2
  217. package/toolbar/package.json +3 -2
  218. package/tooltip/package.json +3 -2
  219. package/tree-view/package.json +3 -2
  220. package/types/nanahoshi-mona-ui-alert.d.ts +2 -2
  221. package/types/nanahoshi-mona-ui-auto-complete.d.ts +9 -9
  222. package/types/nanahoshi-mona-ui-badge.d.ts +7 -7
  223. package/types/nanahoshi-mona-ui-breadcrumb.d.ts +2 -2
  224. package/types/nanahoshi-mona-ui-button-group.d.ts +9 -9
  225. package/types/nanahoshi-mona-ui-button.d.ts +15 -15
  226. package/types/nanahoshi-mona-ui-calendar.d.ts +9 -9
  227. package/types/nanahoshi-mona-ui-card.d.ts +5 -5
  228. package/types/nanahoshi-mona-ui-chart.d.ts +7 -7
  229. package/types/nanahoshi-mona-ui-chat.d.ts +2 -2
  230. package/types/nanahoshi-mona-ui-check-box.d.ts +7 -7
  231. package/types/nanahoshi-mona-ui-chip.d.ts +9 -9
  232. package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +1 -1
  233. package/types/nanahoshi-mona-ui-collapsible.d.ts +2 -2
  234. package/types/nanahoshi-mona-ui-color-gradient.d.ts +7 -7
  235. package/types/nanahoshi-mona-ui-color-palette.d.ts +6 -6
  236. package/types/nanahoshi-mona-ui-color-picker.d.ts +9 -9
  237. package/types/nanahoshi-mona-ui-combo-box.d.ts +10 -10
  238. package/types/nanahoshi-mona-ui-command.d.ts +2 -2
  239. package/types/nanahoshi-mona-ui-contextmenu.d.ts +2 -2
  240. package/types/nanahoshi-mona-ui-date-input.d.ts +7 -7
  241. package/types/nanahoshi-mona-ui-date-picker.d.ts +12 -12
  242. package/types/nanahoshi-mona-ui-date-range-picker.d.ts +12 -12
  243. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +13 -13
  244. package/types/nanahoshi-mona-ui-dialog.d.ts +8 -8
  245. package/types/nanahoshi-mona-ui-dropdown-button.d.ts +4 -4
  246. package/types/nanahoshi-mona-ui-dropdown-list.d.ts +9 -9
  247. package/types/nanahoshi-mona-ui-dropdown-tree.d.ts +9 -9
  248. package/types/nanahoshi-mona-ui-dropdowns.d.ts +9 -9
  249. package/types/nanahoshi-mona-ui-editor.d.ts +3 -3
  250. package/types/nanahoshi-mona-ui-expansion-panel.d.ts +4 -4
  251. package/types/nanahoshi-mona-ui-fieldset.d.ts +4 -4
  252. package/types/nanahoshi-mona-ui-file-upload.d.ts +1 -1
  253. package/types/nanahoshi-mona-ui-filter.d.ts +8 -8
  254. package/types/nanahoshi-mona-ui-grid.d.ts +50 -49
  255. package/types/nanahoshi-mona-ui-i18n.d.ts +2 -2
  256. package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +1 -1
  257. package/types/nanahoshi-mona-ui-internal-list.d.ts +5 -5
  258. package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +1 -1
  259. package/types/nanahoshi-mona-ui-internal-tree.d.ts +2 -2
  260. package/types/nanahoshi-mona-ui-internal.d.ts +2 -2
  261. package/types/nanahoshi-mona-ui-kanban.d.ts +2 -2
  262. package/types/nanahoshi-mona-ui-list-box.d.ts +7 -7
  263. package/types/nanahoshi-mona-ui-list-view.d.ts +9 -9
  264. package/types/nanahoshi-mona-ui-locales.d.ts +1 -1
  265. package/types/nanahoshi-mona-ui-masked-text-box.d.ts +6 -6
  266. package/types/nanahoshi-mona-ui-menubar.d.ts +8 -8
  267. package/types/nanahoshi-mona-ui-multi-select-tree.d.ts +8 -8
  268. package/types/nanahoshi-mona-ui-multi-select.d.ts +11 -11
  269. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +9 -9
  270. package/types/nanahoshi-mona-ui-otp-input.d.ts +7 -7
  271. package/types/nanahoshi-mona-ui-pager.d.ts +7 -7
  272. package/types/nanahoshi-mona-ui-placeholder.d.ts +2 -2
  273. package/types/nanahoshi-mona-ui-popover.d.ts +5 -5
  274. package/types/nanahoshi-mona-ui-popup-menu.d.ts +9 -9
  275. package/types/nanahoshi-mona-ui-popup.d.ts +4 -4
  276. package/types/nanahoshi-mona-ui-progress-bar.d.ts +5 -5
  277. package/types/nanahoshi-mona-ui-qr-code.d.ts +1 -1
  278. package/types/nanahoshi-mona-ui-radio-button.d.ts +8 -8
  279. package/types/nanahoshi-mona-ui-rating.d.ts +10 -10
  280. package/types/nanahoshi-mona-ui-scroll-view.d.ts +6 -6
  281. package/types/nanahoshi-mona-ui-segmented.d.ts +9 -9
  282. package/types/nanahoshi-mona-ui-separator.d.ts +1 -1
  283. package/types/nanahoshi-mona-ui-sheet.d.ts +4 -4
  284. package/types/nanahoshi-mona-ui-sidebar.d.ts +5 -5
  285. package/types/nanahoshi-mona-ui-skeleton.d.ts +3 -3
  286. package/types/nanahoshi-mona-ui-slider.d.ts +8 -8
  287. package/types/nanahoshi-mona-ui-sortable.d.ts +2 -2
  288. package/types/nanahoshi-mona-ui-sparkline.d.ts +1 -1
  289. package/types/nanahoshi-mona-ui-spinner.d.ts +6 -6
  290. package/types/nanahoshi-mona-ui-split-button.d.ts +10 -10
  291. package/types/nanahoshi-mona-ui-splitter.d.ts +3 -3
  292. package/types/nanahoshi-mona-ui-stepper.d.ts +6 -6
  293. package/types/nanahoshi-mona-ui-switch.d.ts +7 -7
  294. package/types/nanahoshi-mona-ui-tabs.d.ts +13 -13
  295. package/types/nanahoshi-mona-ui-text-area.d.ts +4 -4
  296. package/types/nanahoshi-mona-ui-text-box.d.ts +9 -9
  297. package/types/nanahoshi-mona-ui-theme.d.ts +107 -37
  298. package/types/nanahoshi-mona-ui-time-picker.d.ts +12 -12
  299. package/types/nanahoshi-mona-ui-time-selector.d.ts +8 -8
  300. package/types/nanahoshi-mona-ui-toolbar.d.ts +3 -3
  301. package/types/nanahoshi-mona-ui-tooltip.d.ts +6 -6
  302. package/types/nanahoshi-mona-ui-tree-view.d.ts +2 -2
  303. package/types/nanahoshi-mona-ui-window.d.ts +7 -7
  304. package/types/nanahoshi-mona-ui.d.ts +2 -1
  305. package/window/package.json +3 -2
@@ -1,8 +1,8 @@
1
1
  # Built-in Themes
2
2
 
3
- > Mona, Luna and Anna side by side, and when to use each one.
3
+ > Mona, Luna, Anna and Rena side by side, and when to use each one.
4
4
 
5
- Mona UI comes with three themes: Mona, Luna and Anna. Each one is complete, from colors and shadows to corner radii, motion and materials, and is tested for WCAG AA contrast.
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
- | Motion | 200 ms and 300 ms | 180 ms and 320 ms | 150 ms |
55
- | Corner radii | 4, 6 and 8 px | 4, 6 and 8 px | 4, 6 and 8 px |
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 `annaTheme`, and together as `builtInThemes`, so you can read their tokens or build on them:
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`.
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "module": "../fesm2022/nanahoshi-mona-ui-dropdown-button.mjs",
3
- "typings": "../types/nanahoshi-mona-ui-dropdown-button.d.ts"
4
- }
3
+ "typings": "../types/nanahoshi-mona-ui-dropdown-button.d.ts",
4
+ "types": "../types/nanahoshi-mona-ui-dropdown-button.d.ts"
5
+ }
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "module": "../fesm2022/nanahoshi-mona-ui-dropdown-list.mjs",
3
- "typings": "../types/nanahoshi-mona-ui-dropdown-list.d.ts"
4
- }
3
+ "typings": "../types/nanahoshi-mona-ui-dropdown-list.d.ts",
4
+ "types": "../types/nanahoshi-mona-ui-dropdown-list.d.ts"
5
+ }
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "module": "../fesm2022/nanahoshi-mona-ui-dropdown-tree.mjs",
3
- "typings": "../types/nanahoshi-mona-ui-dropdown-tree.d.ts"
4
- }
3
+ "typings": "../types/nanahoshi-mona-ui-dropdown-tree.d.ts",
4
+ "types": "../types/nanahoshi-mona-ui-dropdown-tree.d.ts"
5
+ }
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "module": "../fesm2022/nanahoshi-mona-ui-dropdowns.mjs",
3
- "typings": "../types/nanahoshi-mona-ui-dropdowns.d.ts"
4
- }
3
+ "typings": "../types/nanahoshi-mona-ui-dropdowns.d.ts",
4
+ "types": "../types/nanahoshi-mona-ui-dropdowns.d.ts"
5
+ }
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "module": "../fesm2022/nanahoshi-mona-ui-editor.mjs",
3
- "typings": "../types/nanahoshi-mona-ui-editor.d.ts"
4
- }
3
+ "typings": "../types/nanahoshi-mona-ui-editor.d.ts",
4
+ "types": "../types/nanahoshi-mona-ui-editor.d.ts"
5
+ }
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "module": "../fesm2022/nanahoshi-mona-ui-expansion-panel.mjs",
3
- "typings": "../types/nanahoshi-mona-ui-expansion-panel.d.ts"
4
- }
3
+ "typings": "../types/nanahoshi-mona-ui-expansion-panel.d.ts",
4
+ "types": "../types/nanahoshi-mona-ui-expansion-panel.d.ts"
5
+ }
@@ -1,4 +1,4 @@
1
- import { q as GridService } from "./nanahoshi-mona-ui-grid-grid.styles-wAf6jsT9.mjs";
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.2.6",
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.2.6",
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.2.6",
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=nanahoshi-mona-ui-grid-grid-colgroup.component-DpszxgFY.mjs.map
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 "./nanahoshi-mona-ui-grid-grid.styles-wAf6jsT9.mjs";
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.2.6",
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.2.6",
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.2.6",
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.2.6",
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.2.6",
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.2.6",
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.2.6",
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.2.6",
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.2.6",
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=nanahoshi-mona-ui-grid-grid-footer-row.component-CpvzAcX8.mjs.map
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 "./nanahoshi-mona-ui-grid-grid.styles-wAf6jsT9.mjs";
2
- import { i as GridCellDirective, n as GridGroupRowComponent, r as GridAddRowComponent, t as GridRowComponent } from "./nanahoshi-mona-ui-grid-grid-row.component-eET6dh2Q.mjs";
3
- import { t as GridColgroupComponent } from "./nanahoshi-mona-ui-grid-grid-colgroup.component-DpszxgFY.mjs";
4
- import { GridFooterRowComponent } from "./nanahoshi-mona-ui-grid-grid-footer-row.component-CpvzAcX8.mjs";
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 { NgTemplateOutlet } from "@angular/common";
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.2.6",
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.2.6",
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.2.6",
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.2.6",
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.2.6",
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.2.6",
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=nanahoshi-mona-ui-grid-grid-list.component-tRmEWiQR.mjs.map
474
+ //# sourceMappingURL=grid-list.component-Cv1KB5VQ.mjs.map