@rubenlangeweg/mero-ui 0.7.0 → 0.9.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 (198) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +25 -4
  3. package/agent-docs/components/accordion.md +1 -1
  4. package/agent-docs/components/action-bar.md +1 -1
  5. package/agent-docs/components/action-button.md +32 -1
  6. package/agent-docs/components/agenda.md +1 -1
  7. package/agent-docs/components/alert-dialog.md +1 -1
  8. package/agent-docs/components/alert.md +1 -1
  9. package/agent-docs/components/app-layout.md +1 -1
  10. package/agent-docs/components/area-chart.md +1 -1
  11. package/agent-docs/components/aura.md +1 -1
  12. package/agent-docs/components/autocomplete.md +1 -1
  13. package/agent-docs/components/avatar-group.md +1 -1
  14. package/agent-docs/components/avatar.md +1 -1
  15. package/agent-docs/components/badge.md +1 -1
  16. package/agent-docs/components/bar-chart.md +1 -1
  17. package/agent-docs/components/breadcrumbs.md +1 -1
  18. package/agent-docs/components/browser-mockup.md +1 -1
  19. package/agent-docs/components/button-group.md +1 -1
  20. package/agent-docs/components/button.md +32 -1
  21. package/agent-docs/components/calendar.md +3 -3
  22. package/agent-docs/components/card.md +56 -1
  23. package/agent-docs/components/carousel.md +1 -1
  24. package/agent-docs/components/cell-color-picker.md +1 -1
  25. package/agent-docs/components/cell-select.md +1 -1
  26. package/agent-docs/components/cell-slider.md +1 -1
  27. package/agent-docs/components/cell-switch.md +1 -1
  28. package/agent-docs/components/chain-of-thought.md +1 -1
  29. package/agent-docs/components/chart-tooltip.md +1 -1
  30. package/agent-docs/components/chat-attachment.md +1 -1
  31. package/agent-docs/components/chat-conversation.md +1 -1
  32. package/agent-docs/components/chat-list-view.md +1 -1
  33. package/agent-docs/components/chat-loader.md +1 -1
  34. package/agent-docs/components/chat-message-actions.md +1 -1
  35. package/agent-docs/components/chat-message.md +1 -1
  36. package/agent-docs/components/chat-source.md +1 -1
  37. package/agent-docs/components/chat-tool.md +1 -1
  38. package/agent-docs/components/checkbox-button-group.md +1 -1
  39. package/agent-docs/components/checkbox-group.md +1 -1
  40. package/agent-docs/components/checkbox.md +1 -1
  41. package/agent-docs/components/chip.md +1 -1
  42. package/agent-docs/components/close-button.md +1 -1
  43. package/agent-docs/components/code-block.md +1 -1
  44. package/agent-docs/components/code-mockup.md +1 -1
  45. package/agent-docs/components/color-area.md +1 -1
  46. package/agent-docs/components/color-field.md +1 -1
  47. package/agent-docs/components/color-picker.md +1 -1
  48. package/agent-docs/components/color-slider.md +1 -1
  49. package/agent-docs/components/color-swatch.md +1 -1
  50. package/agent-docs/components/combo-box.md +1 -1
  51. package/agent-docs/components/command-menu.md +1 -1
  52. package/agent-docs/components/command.md +1 -1
  53. package/agent-docs/components/composed-chart.md +1 -1
  54. package/agent-docs/components/context-menu.md +1 -1
  55. package/agent-docs/components/countdown.md +1 -1
  56. package/agent-docs/components/data-grid.md +1 -1
  57. package/agent-docs/components/date-field.md +1 -1
  58. package/agent-docs/components/date-picker.md +1 -1
  59. package/agent-docs/components/date-range-picker.md +1 -1
  60. package/agent-docs/components/description-list.md +30 -0
  61. package/agent-docs/components/description.md +1 -1
  62. package/agent-docs/components/diff.md +1 -1
  63. package/agent-docs/components/disclosure-group.md +1 -1
  64. package/agent-docs/components/disclosure.md +1 -1
  65. package/agent-docs/components/dock.md +1 -1
  66. package/agent-docs/components/drawer.md +83 -1
  67. package/agent-docs/components/drop-zone.md +1 -1
  68. package/agent-docs/components/dropdown.md +1 -1
  69. package/agent-docs/components/emoji-picker.md +1 -1
  70. package/agent-docs/components/emoji-reaction-button.md +1 -1
  71. package/agent-docs/components/empty-state.md +36 -4
  72. package/agent-docs/components/error-message.md +1 -1
  73. package/agent-docs/components/fab.md +1 -1
  74. package/agent-docs/components/field-error.md +1 -1
  75. package/agent-docs/components/fieldset.md +45 -1
  76. package/agent-docs/components/file-input.md +1 -1
  77. package/agent-docs/components/file-tree.md +1 -1
  78. package/agent-docs/components/filter-chips.md +1 -1
  79. package/agent-docs/components/floating-toc.md +1 -1
  80. package/agent-docs/components/footer.md +1 -1
  81. package/agent-docs/components/form.md +155 -1
  82. package/agent-docs/components/hero.md +1 -1
  83. package/agent-docs/components/holo-card.md +1 -1
  84. package/agent-docs/components/hover-card.md +1 -1
  85. package/agent-docs/components/hover-gallery.md +1 -1
  86. package/agent-docs/components/indicator.md +1 -1
  87. package/agent-docs/components/inline-select.md +1 -1
  88. package/agent-docs/components/input-group.md +1 -1
  89. package/agent-docs/components/input-otp.md +1 -1
  90. package/agent-docs/components/input.md +1 -1
  91. package/agent-docs/components/item-card-group.md +1 -1
  92. package/agent-docs/components/item-card.md +1 -1
  93. package/agent-docs/components/join.md +1 -1
  94. package/agent-docs/components/joined-filter.md +1 -1
  95. package/agent-docs/components/kanban.md +1 -1
  96. package/agent-docs/components/kbd.md +32 -1
  97. package/agent-docs/components/kpi-group.md +1 -1
  98. package/agent-docs/components/kpi.md +1 -1
  99. package/agent-docs/components/label.md +1 -1
  100. package/agent-docs/components/line-chart.md +1 -1
  101. package/agent-docs/components/link.md +1 -1
  102. package/agent-docs/components/list-box.md +1 -1
  103. package/agent-docs/components/list-view.md +1 -1
  104. package/agent-docs/components/live-progress.md +34 -1
  105. package/agent-docs/components/map.md +1 -1
  106. package/agent-docs/components/markdown.md +1 -1
  107. package/agent-docs/components/mask.md +1 -1
  108. package/agent-docs/components/megamenu.md +1 -1
  109. package/agent-docs/components/menu-button.md +35 -1
  110. package/agent-docs/components/menu.md +1 -1
  111. package/agent-docs/components/meter.md +1 -1
  112. package/agent-docs/components/modal.md +1 -1
  113. package/agent-docs/components/native-select.md +1 -1
  114. package/agent-docs/components/navbar.md +1 -1
  115. package/agent-docs/components/number-field.md +1 -1
  116. package/agent-docs/components/number-stepper.md +1 -1
  117. package/agent-docs/components/number-value.md +1 -1
  118. package/agent-docs/components/page-header.md +69 -0
  119. package/agent-docs/components/pagination.md +1 -1
  120. package/agent-docs/components/phone-mockup.md +1 -1
  121. package/agent-docs/components/pie-chart.md +1 -1
  122. package/agent-docs/components/popover.md +1 -1
  123. package/agent-docs/components/pressable-feedback.md +1 -1
  124. package/agent-docs/components/progress-bar.md +1 -1
  125. package/agent-docs/components/progress-circle.md +1 -1
  126. package/agent-docs/components/prompt-input.md +1 -1
  127. package/agent-docs/components/prompt-suggestion.md +1 -1
  128. package/agent-docs/components/radar-chart.md +1 -1
  129. package/agent-docs/components/radial-chart.md +1 -1
  130. package/agent-docs/components/radio-button-group.md +1 -1
  131. package/agent-docs/components/radio-group.md +1 -1
  132. package/agent-docs/components/range-calendar.md +1 -1
  133. package/agent-docs/components/rating.md +1 -1
  134. package/agent-docs/components/resizable.md +1 -1
  135. package/agent-docs/components/rich-text-editor.md +1 -1
  136. package/agent-docs/components/scroll-shadow.md +1 -1
  137. package/agent-docs/components/search-field.md +43 -1
  138. package/agent-docs/components/segment.md +1 -1
  139. package/agent-docs/components/select.md +1 -1
  140. package/agent-docs/components/separator.md +1 -1
  141. package/agent-docs/components/sheet.md +1 -1
  142. package/agent-docs/components/sidebar.md +1 -1
  143. package/agent-docs/components/skeleton.md +1 -1
  144. package/agent-docs/components/slider.md +1 -1
  145. package/agent-docs/components/sortable-table.md +1 -1
  146. package/agent-docs/components/spinner.md +1 -1
  147. package/agent-docs/components/stack.md +1 -1
  148. package/agent-docs/components/status.md +1 -1
  149. package/agent-docs/components/stepper.md +1 -1
  150. package/agent-docs/components/surface.md +1 -1
  151. package/agent-docs/components/swap.md +1 -1
  152. package/agent-docs/components/switch.md +1 -1
  153. package/agent-docs/components/table.md +58 -1
  154. package/agent-docs/components/tabs.md +24 -1
  155. package/agent-docs/components/tag-group.md +1 -1
  156. package/agent-docs/components/text-area.md +1 -1
  157. package/agent-docs/components/text-field.md +1 -1
  158. package/agent-docs/components/text-rotate.md +1 -1
  159. package/agent-docs/components/text-shimmer.md +1 -1
  160. package/agent-docs/components/theme-controller.md +1 -1
  161. package/agent-docs/components/time-field.md +1 -1
  162. package/agent-docs/components/timeline.md +1 -1
  163. package/agent-docs/components/toast.md +1 -1
  164. package/agent-docs/components/toggle-button-group.md +1 -1
  165. package/agent-docs/components/toggle-button.md +1 -1
  166. package/agent-docs/components/toolbar.md +1 -1
  167. package/agent-docs/components/tooltip.md +1 -1
  168. package/agent-docs/components/trend-chip.md +1 -1
  169. package/agent-docs/components/typed-confirmation.md +1 -1
  170. package/agent-docs/components/typography.md +24 -1
  171. package/agent-docs/components/validator.md +1 -1
  172. package/agent-docs/components/visually-hidden.md +27 -0
  173. package/agent-docs/components/widget.md +1 -1
  174. package/agent-docs/components/window-mockup.md +1 -1
  175. package/agent-docs/llms-components.txt +989 -194
  176. package/agent-docs/llms-full.txt +1079 -206
  177. package/agent-docs/llms-patterns.txt +91 -13
  178. package/agent-docs/llms.txt +5 -2
  179. package/package.json +4 -1
  180. package/ui/insight-charts.mjs +1 -1
  181. package/ui/insight-markdown.mjs +1 -1
  182. package/ui/mero-collections.css +1 -7
  183. package/ui/mero-collections.js +1 -1
  184. package/ui/mero-composition.css +1 -1
  185. package/ui/mero-composition.js +1 -1
  186. package/ui/mero-forms.js +415 -27
  187. package/ui/mero-gallery.css +1 -1
  188. package/ui/mero-gallery.js +1 -1
  189. package/ui/mero-insights.css +1 -1
  190. package/ui/mero-insights.js +1 -1
  191. package/ui/mero-inventory.css +1 -1
  192. package/ui/mero-inventory.js +1 -1
  193. package/ui/mero-layouts.css +1 -4
  194. package/ui/mero-live.js +25 -4
  195. package/ui/mero-workspace.css +1 -1
  196. package/ui/mero-workspace.js +1 -1
  197. package/ui/mero.css +104 -5
  198. package/ui/mero.js +220 -8
@@ -1,8 +1,8 @@
1
- # Mero UI 0.7.0 component templates
1
+ # Mero UI 0.9.0 component templates
2
2
 
3
3
  # Carousel
4
4
 
5
- Mero UI 0.7.0 · Media galleries
5
+ Mero UI 0.9.0 · Media galleries
6
6
 
7
7
  Browse product photography with native scroll snap, thumbnails and keyboard controls.
8
8
 
@@ -79,7 +79,7 @@ Template
79
79
 
80
80
  # Hover Gallery
81
81
 
82
- Mero UI 0.7.0 · Media galleries
82
+ Mero UI 0.9.0 · Media galleries
83
83
 
84
84
  Explore the shade, base and profile of a product with a pointer, touch or keyboard.
85
85
 
@@ -156,7 +156,7 @@ Template
156
156
 
157
157
  # Image Diff
158
158
 
159
- Mero UI 0.7.0 · Media galleries
159
+ Mero UI 0.9.0 · Media galleries
160
160
 
161
161
  Reveal two finishes at the same position using an accessible comparison slider.
162
162
 
@@ -198,7 +198,7 @@ Template
198
198
 
199
199
  # Holo Card
200
200
 
201
- Mero UI 0.7.0 · Media galleries
201
+ Mero UI 0.9.0 · Media galleries
202
202
 
203
203
  Catch a material sample in a shifting foil reflection.
204
204
 
@@ -230,7 +230,7 @@ Template
230
230
 
231
231
  # Data Grid
232
232
 
233
- Mero UI 0.7.0 · Studio collections
233
+ Mero UI 0.9.0 · Studio collections
234
234
 
235
235
  Search, sort, select and edit products in a server-rendered collection.
236
236
 
@@ -388,7 +388,7 @@ Template
388
388
 
389
389
  # Action Bar
390
390
 
391
- Mero UI 0.7.0 · Studio collections
391
+ Mero UI 0.9.0 · Studio collections
392
392
 
393
393
  Select records and apply one status change to the selection.
394
394
 
@@ -432,7 +432,7 @@ Template
432
432
 
433
433
  # Agenda
434
434
 
435
- Mero UI 0.7.0 · Studio collections
435
+ Mero UI 0.9.0 · Studio collections
436
436
 
437
437
  Browse daily bookings and add a timed event.
438
438
 
@@ -467,32 +467,9 @@ Template
467
467
  </section></div>
468
468
  ````
469
469
 
470
- # Empty State
471
-
472
- Mero UI 0.7.0 · Studio collections
473
-
474
- Explain an empty result and give the user a relevant next action.
475
-
476
- ## Default
477
-
478
- Page assets
479
-
480
- ```html
481
- <link rel="stylesheet" href="/mero.css">
482
- <link rel="stylesheet" href="/mero-collections.css">
483
- <script defer src="/mero.js"></script>
484
- <script defer src="/mero-collections.js"></script>
485
- ```
486
-
487
- Template
488
-
489
- ````html
490
- <section class="mero-collection-empty"><div class="mero-empty-state"><span class="mero-empty-glyph" aria-hidden="true"></span><strong>No products in this collection</strong><p>Add the first product to start tracking inventory.</p></div><a class="mero-button mero-button-primary mero-button-sm" href="/components/data-grid">Open inventory</a></section>
491
- ````
492
-
493
470
  # File Tree
494
471
 
495
- Mero UI 0.7.0 · Studio collections
472
+ Mero UI 0.9.0 · Studio collections
496
473
 
497
474
  Expand folders and preview a selected file with native disclosure controls.
498
475
 
@@ -515,7 +492,7 @@ Template
515
492
 
516
493
  # Floating TOC
517
494
 
518
- Mero UI 0.7.0 · Studio collections
495
+ Mero UI 0.9.0 · Studio collections
519
496
 
520
497
  Navigate to sections with an index that follows the reading position.
521
498
 
@@ -538,7 +515,7 @@ Template
538
515
 
539
516
  # Hover Card
540
517
 
541
- Mero UI 0.7.0 · Studio collections
518
+ Mero UI 0.9.0 · Studio collections
542
519
 
543
520
  Preview a contributor on hover, focus or tap.
544
521
 
@@ -563,7 +540,7 @@ Template
563
540
 
564
541
  # Item Card
565
542
 
566
- Mero UI 0.7.0 · Studio collections
543
+ Mero UI 0.9.0 · Studio collections
567
544
 
568
545
  Give a related destination an identity, title and supporting detail.
569
546
 
@@ -586,7 +563,7 @@ Template
586
563
 
587
564
  # Item Card Group
588
565
 
589
- Mero UI 0.7.0 · Studio collections
566
+ Mero UI 0.9.0 · Studio collections
590
567
 
591
568
  Arrange related destinations into a responsive group.
592
569
 
@@ -609,7 +586,7 @@ Template
609
586
 
610
587
  # Kanban
611
588
 
612
- Mero UI 0.7.0 · Studio collections
589
+ Mero UI 0.9.0 · Studio collections
613
590
 
614
591
  Move a card between stages with a drag or its Move to menu.
615
592
 
@@ -634,7 +611,7 @@ Template
634
611
 
635
612
  # List View
636
613
 
637
- Mero UI 0.7.0 · Studio collections
614
+ Mero UI 0.9.0 · Studio collections
638
615
 
639
616
  Browse structured destinations in a compact keyboard-accessible list.
640
617
 
@@ -657,7 +634,7 @@ Template
657
634
 
658
635
  # Map
659
636
 
660
- Mero UI 0.7.0 · Studio collections
637
+ Mero UI 0.9.0 · Studio collections
661
638
 
662
639
  Choose a location on a self-contained campus map and read its address.
663
640
 
@@ -682,7 +659,7 @@ Template
682
659
 
683
660
  # Timeline
684
661
 
685
- Mero UI 0.7.0 · Studio collections
662
+ Mero UI 0.9.0 · Studio collections
686
663
 
687
664
  Present milestones in order and identify the current step.
688
665
 
@@ -705,7 +682,7 @@ Template
705
682
 
706
683
  # Widget
707
684
 
708
- Mero UI 0.7.0 · Studio collections
685
+ Mero UI 0.9.0 · Studio collections
709
686
 
710
687
  Use a dashboard panel to track a checklist and its progress.
711
688
 
@@ -728,7 +705,7 @@ Template
728
705
 
729
706
  # Cell Color Picker
730
707
 
731
- Mero UI 0.7.0 · Workspace forms
708
+ Mero UI 0.9.0 · Workspace forms
732
709
 
733
710
  Change one preference and receive inline confirmation from the server.
734
711
 
@@ -759,7 +736,7 @@ Template
759
736
 
760
737
  # Cell Select
761
738
 
762
- Mero UI 0.7.0 · Workspace forms
739
+ Mero UI 0.9.0 · Workspace forms
763
740
 
764
741
  Change one preference and receive inline confirmation from the server.
765
742
 
@@ -790,7 +767,7 @@ Template
790
767
 
791
768
  # Cell Slider
792
769
 
793
- Mero UI 0.7.0 · Workspace forms
770
+ Mero UI 0.9.0 · Workspace forms
794
771
 
795
772
  Change one preference and receive inline confirmation from the server.
796
773
 
@@ -821,7 +798,7 @@ Template
821
798
 
822
799
  # Cell Switch
823
800
 
824
- Mero UI 0.7.0 · Workspace forms
801
+ Mero UI 0.9.0 · Workspace forms
825
802
 
826
803
  Change one preference and receive inline confirmation from the server.
827
804
 
@@ -852,7 +829,7 @@ Template
852
829
 
853
830
  # Checkbox Button Group
854
831
 
855
- Mero UI 0.7.0 · Workspace forms
832
+ Mero UI 0.9.0 · Workspace forms
856
833
 
857
834
  Select several release channels using native checkboxes.
858
835
 
@@ -880,7 +857,7 @@ Template
880
857
 
881
858
  # Radio Button Group
882
859
 
883
- Mero UI 0.7.0 · Workspace forms
860
+ Mero UI 0.9.0 · Workspace forms
884
861
 
885
862
  Choose one release schedule with labelled option cards.
886
863
 
@@ -907,7 +884,7 @@ Template
907
884
 
908
885
  # Native Select
909
886
 
910
- Mero UI 0.7.0 · Workspace forms
887
+ Mero UI 0.9.0 · Workspace forms
911
888
 
912
889
  Choose a workspace from labelled option groups.
913
890
 
@@ -932,7 +909,7 @@ Template
932
909
 
933
910
  # Inline Select
934
911
 
935
- Mero UI 0.7.0 · Workspace forms
912
+ Mero UI 0.9.0 · Workspace forms
936
913
 
937
914
  Change an audience within the sentence that describes it.
938
915
 
@@ -957,7 +934,7 @@ Template
957
934
 
958
935
  # Number Stepper
959
936
 
960
- Mero UI 0.7.0 · Workspace forms
937
+ Mero UI 0.9.0 · Workspace forms
961
938
 
962
939
  Change a bounded quantity with the keyboard or step buttons.
963
940
 
@@ -987,7 +964,7 @@ Template
987
964
 
988
965
  # File Input
989
966
 
990
- Mero UI 0.7.0 · Workspace forms
967
+ Mero UI 0.9.0 · Workspace forms
991
968
 
992
969
  Choose a local product image and validate it on the server.
993
970
 
@@ -1018,7 +995,7 @@ Template
1018
995
 
1019
996
  # Drop Zone
1020
997
 
1021
- Mero UI 0.7.0 · Workspace forms
998
+ Mero UI 0.9.0 · Workspace forms
1022
999
 
1023
1000
  Drop an image or use the native file picker and check the file.
1024
1001
 
@@ -1051,7 +1028,7 @@ Template
1051
1028
 
1052
1029
  # Rich Text Editor
1053
1030
 
1054
- Mero UI 0.7.0 · Workspace forms
1031
+ Mero UI 0.9.0 · Workspace forms
1055
1032
 
1056
1033
  Edit a short description with bold and italic text and preview the submitted result.
1057
1034
 
@@ -1085,7 +1062,7 @@ Template
1085
1062
 
1086
1063
  # Joined Filter
1087
1064
 
1088
- Mero UI 0.7.0 · Workspace forms
1065
+ Mero UI 0.9.0 · Workspace forms
1089
1066
 
1090
1067
  Search and filter releases with one server request.
1091
1068
 
@@ -1112,7 +1089,7 @@ Template
1112
1089
 
1113
1090
  # App Layout
1114
1091
 
1115
- Mero UI 0.7.0 · Workspace navigation
1092
+ Mero UI 0.9.0 · Workspace navigation
1116
1093
 
1117
1094
  A responsive workspace with a sidebar, content area and mobile navigation drawer.
1118
1095
 
@@ -1147,7 +1124,7 @@ Template
1147
1124
 
1148
1125
  # Sidebar
1149
1126
 
1150
- Mero UI 0.7.0 · Workspace navigation
1127
+ Mero UI 0.9.0 · Workspace navigation
1151
1128
 
1152
1129
  Navigate the workspace from a side rail that becomes a drawer at narrow widths.
1153
1130
 
@@ -1182,7 +1159,7 @@ Template
1182
1159
 
1183
1160
  # Navbar
1184
1161
 
1185
- Mero UI 0.7.0 · Workspace navigation
1162
+ Mero UI 0.9.0 · Workspace navigation
1186
1163
 
1187
1164
  Place the workspace name and destinations in a wrapping top bar.
1188
1165
 
@@ -1205,7 +1182,7 @@ Template
1205
1182
 
1206
1183
  # Command
1207
1184
 
1208
- Mero UI 0.7.0 · Workspace navigation
1185
+ Mero UI 0.9.0 · Workspace navigation
1209
1186
 
1210
1187
  Search destinations and actions, then use the arrows and Enter to execute.
1211
1188
 
@@ -1242,7 +1219,7 @@ Template
1242
1219
 
1243
1220
  # Context Menu
1244
1221
 
1245
- Mero UI 0.7.0 · Workspace navigation
1222
+ Mero UI 0.9.0 · Workspace navigation
1246
1223
 
1247
1224
  Open item actions with the visible button, a secondary click, or Shift F10.
1248
1225
 
@@ -1272,7 +1249,7 @@ Template
1272
1249
 
1273
1250
  # Segment
1274
1251
 
1275
- Mero UI 0.7.0 · Workspace navigation
1252
+ Mero UI 0.9.0 · Workspace navigation
1276
1253
 
1277
1254
  Choose one display density in a compact segmented control.
1278
1255
 
@@ -1299,7 +1276,7 @@ Template
1299
1276
 
1300
1277
  # Stepper
1301
1278
 
1302
- Mero UI 0.7.0 · Workspace navigation
1279
+ Mero UI 0.9.0 · Workspace navigation
1303
1280
 
1304
1281
  Move through validated project details and review the values before submitting.
1305
1282
 
@@ -1330,7 +1307,7 @@ Template
1330
1307
 
1331
1308
  # Dock
1332
1309
 
1333
- Mero UI 0.7.0 · Workspace navigation
1310
+ Mero UI 0.9.0 · Workspace navigation
1334
1311
 
1335
1312
  Group frequently used workspace destinations in a compact navigation dock.
1336
1313
 
@@ -1355,7 +1332,7 @@ Template
1355
1332
 
1356
1333
  # Megamenu
1357
1334
 
1358
- Mero UI 0.7.0 · Workspace navigation
1335
+ Mero UI 0.9.0 · Workspace navigation
1359
1336
 
1360
1337
  Explore grouped destinations from a native disclosure.
1361
1338
 
@@ -1380,7 +1357,7 @@ Template
1380
1357
 
1381
1358
  # Floating Action Button
1382
1359
 
1383
- Mero UI 0.7.0 · Workspace navigation
1360
+ Mero UI 0.9.0 · Workspace navigation
1384
1361
 
1385
1362
  Reveal a small set of workspace shortcuts.
1386
1363
 
@@ -1405,7 +1382,7 @@ Template
1405
1382
 
1406
1383
  # Resizable
1407
1384
 
1408
- Mero UI 0.7.0 · Workspace tools
1385
+ Mero UI 0.9.0 · Workspace tools
1409
1386
 
1410
1387
  Resize two adjacent panels by dragging the divider or using the arrow keys.
1411
1388
 
@@ -1459,7 +1436,7 @@ Template
1459
1436
 
1460
1437
  # Emoji Picker
1461
1438
 
1462
- Mero UI 0.7.0 · Workspace tools
1439
+ Mero UI 0.9.0 · Workspace tools
1463
1440
 
1464
1441
  Search named reactions and submit the selected emoji as a form value.
1465
1442
 
@@ -1489,7 +1466,7 @@ Template
1489
1466
 
1490
1467
  # Area Chart
1491
1468
 
1492
- Mero UI 0.7.0 · Charts
1469
+ Mero UI 0.9.0 · Charts
1493
1470
 
1494
1471
  Show the volume and shape of a series over time.
1495
1472
 
@@ -1524,7 +1501,7 @@ Template
1524
1501
 
1525
1502
  # Bar Chart
1526
1503
 
1527
- Mero UI 0.7.0 · Charts
1504
+ Mero UI 0.9.0 · Charts
1528
1505
 
1529
1506
  Compare adjacent categories on a shared linear scale.
1530
1507
 
@@ -1559,7 +1536,7 @@ Template
1559
1536
 
1560
1537
  # Chart Tooltip
1561
1538
 
1562
- Mero UI 0.7.0 · Charts
1539
+ Mero UI 0.9.0 · Charts
1563
1540
 
1564
1541
  Inspect the active data point using a pointer or keyboard.
1565
1542
 
@@ -1594,7 +1571,7 @@ Template
1594
1571
 
1595
1572
  # Composed Chart
1596
1573
 
1597
- Mero UI 0.7.0 · Charts
1574
+ Mero UI 0.9.0 · Charts
1598
1575
 
1599
1576
  Compare actual volume with its target using columns and a line.
1600
1577
 
@@ -1629,7 +1606,7 @@ Template
1629
1606
 
1630
1607
  # Line Chart
1631
1608
 
1632
- Mero UI 0.7.0 · Charts
1609
+ Mero UI 0.9.0 · Charts
1633
1610
 
1634
1611
  Trace changes across a reporting period.
1635
1612
 
@@ -1692,7 +1669,7 @@ Template
1692
1669
 
1693
1670
  # Pie Chart
1694
1671
 
1695
- Mero UI 0.7.0 · Charts
1672
+ Mero UI 0.9.0 · Charts
1696
1673
 
1697
1674
  See how each collection contributes to total volume.
1698
1675
 
@@ -1727,7 +1704,7 @@ Template
1727
1704
 
1728
1705
  # Radar Chart
1729
1706
 
1730
- Mero UI 0.7.0 · Charts
1707
+ Mero UI 0.9.0 · Charts
1731
1708
 
1732
1709
  Compare profiles across axes that use the same units.
1733
1710
 
@@ -1762,7 +1739,7 @@ Template
1762
1739
 
1763
1740
  # Radial Chart
1764
1741
 
1765
- Mero UI 0.7.0 · Charts
1742
+ Mero UI 0.9.0 · Charts
1766
1743
 
1767
1744
  Compare categories as concentric rings against the largest category.
1768
1745
 
@@ -1797,7 +1774,7 @@ Template
1797
1774
 
1798
1775
  # KPI
1799
1776
 
1800
- Mero UI 0.7.0 · Metrics
1777
+ Mero UI 0.9.0 · Metrics
1801
1778
 
1802
1779
  Pair an exact figure with the reporting period it describes.
1803
1780
 
@@ -1820,7 +1797,7 @@ Template
1820
1797
 
1821
1798
  # KPI Group
1822
1799
 
1823
- Mero UI 0.7.0 · Metrics
1800
+ Mero UI 0.9.0 · Metrics
1824
1801
 
1825
1802
  Keep related measures on a common reporting period.
1826
1803
 
@@ -1843,7 +1820,7 @@ Template
1843
1820
 
1844
1821
  # Emoji Reaction Button
1845
1822
 
1846
- Mero UI 0.7.0 · Interaction feedback
1823
+ Mero UI 0.9.0 · Interaction feedback
1847
1824
 
1848
1825
  Add or remove a reaction while keeping its count visible.
1849
1826
 
@@ -1868,7 +1845,7 @@ Template
1868
1845
 
1869
1846
  # Number Value
1870
1847
 
1871
- Mero UI 0.7.0 · Interaction feedback
1848
+ Mero UI 0.9.0 · Interaction feedback
1872
1849
 
1873
1850
  Display a localized number with its machine-readable value.
1874
1851
 
@@ -1893,7 +1870,7 @@ Template
1893
1870
 
1894
1871
  # Pressable Feedback
1895
1872
 
1896
- Mero UI 0.7.0 · Interaction feedback
1873
+ Mero UI 0.9.0 · Interaction feedback
1897
1874
 
1898
1875
  Give a press a tactile response and keep its selected state visible.
1899
1876
 
@@ -1916,7 +1893,7 @@ Template
1916
1893
 
1917
1894
  # Rating
1918
1895
 
1919
- Mero UI 0.7.0 · Interaction feedback
1896
+ Mero UI 0.9.0 · Interaction feedback
1920
1897
 
1921
1898
  Choose a labelled score using native radio controls.
1922
1899
 
@@ -1941,7 +1918,7 @@ Template
1941
1918
 
1942
1919
  # Trend Chip
1943
1920
 
1944
- Mero UI 0.7.0 · Interaction feedback
1921
+ Mero UI 0.9.0 · Interaction feedback
1945
1922
 
1946
1923
  Label the direction and magnitude of a change.
1947
1924
 
@@ -1964,7 +1941,7 @@ Template
1964
1941
 
1965
1942
  # Chain Of Thought
1966
1943
 
1967
- Mero UI 0.7.0 · Conversation
1944
+ Mero UI 0.9.0 · Conversation
1968
1945
 
1969
1946
  Display a disclosure of observable execution steps for a report.
1970
1947
 
@@ -1989,7 +1966,7 @@ Template
1989
1966
 
1990
1967
  # Chat Attachment
1991
1968
 
1992
- Mero UI 0.7.0 · Conversation
1969
+ Mero UI 0.9.0 · Conversation
1993
1970
 
1994
1971
  Display a named file and provide a working download.
1995
1972
 
@@ -2014,7 +1991,7 @@ Template
2014
1991
 
2015
1992
  # Chat Conversation
2016
1993
 
2017
- Mero UI 0.7.0 · Conversation
1994
+ Mero UI 0.9.0 · Conversation
2018
1995
 
2019
1996
  Keep messages, controls and a composer in one scoped conversation.
2020
1997
 
@@ -2074,7 +2051,7 @@ Template
2074
2051
 
2075
2052
  # Chat List View
2076
2053
 
2077
- Mero UI 0.7.0 · Conversation
2054
+ Mero UI 0.9.0 · Conversation
2078
2055
 
2079
2056
  Open a conversation returned by the server.
2080
2057
 
@@ -2098,7 +2075,7 @@ Template
2098
2075
 
2099
2076
  # Chat Loader
2100
2077
 
2101
- Mero UI 0.7.0 · Conversation
2078
+ Mero UI 0.9.0 · Conversation
2102
2079
 
2103
2080
  Show a concise status while a response is being prepared.
2104
2081
 
@@ -2121,7 +2098,7 @@ Template
2121
2098
 
2122
2099
  # Chat Message
2123
2100
 
2124
- Mero UI 0.7.0 · Conversation
2101
+ Mero UI 0.9.0 · Conversation
2125
2102
 
2126
2103
  Distinguish the sender and keep the message readable after a swap.
2127
2104
 
@@ -2144,7 +2121,7 @@ Template
2144
2121
 
2145
2122
  # Chat Message Actions
2146
2123
 
2147
- Mero UI 0.7.0 · Conversation
2124
+ Mero UI 0.9.0 · Conversation
2148
2125
 
2149
2126
  Copy a reply or mark it as helpful.
2150
2127
 
@@ -2168,7 +2145,7 @@ Template
2168
2145
 
2169
2146
  # Chat Source
2170
2147
 
2171
- Mero UI 0.7.0 · Conversation
2148
+ Mero UI 0.9.0 · Conversation
2172
2149
 
2173
2150
  Open the exact data behind a generated summary.
2174
2151
 
@@ -2191,7 +2168,7 @@ Template
2191
2168
 
2192
2169
  # Chat Tool
2193
2170
 
2194
- Mero UI 0.7.0 · Conversation
2171
+ Mero UI 0.9.0 · Conversation
2195
2172
 
2196
2173
  Disclose the inputs and output of an application action.
2197
2174
 
@@ -2231,7 +2208,7 @@ Template
2231
2208
 
2232
2209
  # Code Block
2233
2210
 
2234
- Mero UI 0.7.0 · Conversation
2211
+ Mero UI 0.9.0 · Conversation
2235
2212
 
2236
2213
  Show a file caption, selectable code and a copy control.
2237
2214
 
@@ -2254,7 +2231,7 @@ Template
2254
2231
 
2255
2232
  # Markdown
2256
2233
 
2257
- Mero UI 0.7.0 · Conversation
2234
+ Mero UI 0.9.0 · Conversation
2258
2235
 
2259
2236
  Render a small safe subset of Markdown into semantic HTML.
2260
2237
 
@@ -2289,7 +2266,7 @@ Template
2289
2266
 
2290
2267
  # Prompt Input
2291
2268
 
2292
- Mero UI 0.7.0 · Conversation
2269
+ Mero UI 0.9.0 · Conversation
2293
2270
 
2294
2271
  Collect a question and submit it to a server-rendered response endpoint.
2295
2272
 
@@ -2320,7 +2297,7 @@ Template
2320
2297
 
2321
2298
  # Prompt Suggestion
2322
2299
 
2323
- Mero UI 0.7.0 · Conversation
2300
+ Mero UI 0.9.0 · Conversation
2324
2301
 
2325
2302
  Choose a suggested prompt, edit it, then send it.
2326
2303
 
@@ -2351,7 +2328,7 @@ Template
2351
2328
 
2352
2329
  # Text Shimmer
2353
2330
 
2354
- Mero UI 0.7.0 · Conversation
2331
+ Mero UI 0.9.0 · Conversation
2355
2332
 
2356
2333
  Indicate work in progress with a moving highlight across readable text.
2357
2334
 
@@ -2374,7 +2351,7 @@ Template
2374
2351
 
2375
2352
  # Button
2376
2353
 
2377
- Mero UI 0.7.0 · Buttons
2354
+ Mero UI 0.9.0 · Buttons
2378
2355
 
2379
2356
  Trigger an action with a consistent hierarchy of visual emphasis.
2380
2357
 
@@ -2397,6 +2374,37 @@ Template
2397
2374
  </div>
2398
2375
  ````
2399
2376
 
2377
+ ## Copy to clipboard
2378
+
2379
+ Copy an ID or a field’s value and confirm it with a notification.
2380
+
2381
+ data-mero-copy holds the text to copy. data-mero-copy-target names an input, textarea or element whose value or text to copy, which suits secrets, because nothing is repeated in the markup and the text can be selected when the browser blocks clipboard access. data-mero-copy-message replaces the “Copied” notification. The label stays the same, so an aria-label keeps working.
2382
+
2383
+ Page assets
2384
+
2385
+ ```html
2386
+ <link rel="stylesheet" href="/mero.css">
2387
+ <script defer src="/mero.js"></script>
2388
+ ```
2389
+
2390
+ Template
2391
+
2392
+ ````html
2393
+ <div class="mero-scope" data-mero-scope>
2394
+ <div class="mero-stack">
2395
+ <div class="mero-field">
2396
+ <label class="mero-label" for="copy-demo-key">Publishable key</label>
2397
+ <div class="mero-input-group">
2398
+ <input class="mero-input" id="copy-demo-key" value="pk_live_51HcX2eDeploy" readonly>
2399
+ <button class="mero-button mero-button-ghost mero-button-sm" type="button" data-mero-copy-target="#copy-demo-key" aria-label="Copy publishable key">Copy</button>
2400
+ </div>
2401
+ </div>
2402
+ <p class="mero-row">Environment <code>env_7f3a91</code>
2403
+ <button class="mero-button mero-button-ghost mero-button-sm" type="button" data-mero-copy="env_7f3a91" aria-label="Copy environment ID">Copy</button></p>
2404
+ </div>
2405
+ </div>
2406
+ ````
2407
+
2400
2408
  ## Compact actions
2401
2409
 
2402
2410
  Page assets
@@ -2448,7 +2456,7 @@ Template
2448
2456
 
2449
2457
  # Action Button
2450
2458
 
2451
- Mero UI 0.7.0 · Buttons
2459
+ Mero UI 0.9.0 · Buttons
2452
2460
 
2453
2461
  Run a server action and report whether it succeeded, was refused or has an unknown result.
2454
2462
 
@@ -2487,9 +2495,40 @@ Template
2487
2495
  </div>
2488
2496
  ````
2489
2497
 
2498
+ ## Re-read after unknown
2499
+
2500
+ Read the current state again after an unknown outcome, without repeating the action.
2501
+
2502
+ This endpoint restarts the export and then answers 504, as a gateway timeout would. data-mero-action-reread names the region to read again: Mero GETs the current page, morphs that region and shows the unknown message again. It never re-sends the POST. A response for another page, an error or a page without the region is dropped.
2503
+
2504
+ Page assets
2505
+
2506
+ ```html
2507
+ <link rel="stylesheet" href="/mero.css">
2508
+ <script defer src="/vendor/htmx.min.js"></script>
2509
+ <script defer src="/mero.js"></script>
2510
+ <script defer src="/mero-forms.js"></script>
2511
+ ```
2512
+
2513
+ Template
2514
+
2515
+ ````html
2516
+
2517
+ <section class="mero-stack" id="export-run" aria-labelledby="export-run-title">
2518
+ <h2 class="mero-label" id="export-run-title">Nightly export</h2>
2519
+ <p class="mero-description" data-export-restarts>Not restarted yet</p>
2520
+ <span class="mero-row">
2521
+ <button class="mero-button mero-button-secondary" type="button" id="export-run-restart" hx-post="/demo/catalog/action-button?outcome=lost" hx-swap="none"
2522
+ data-mero-action data-mero-action-reread="#export-run">
2523
+ <span class="mero-button-label">Restart export</span><span class="mero-indicator mero-spinner" aria-hidden="true"></span></button>
2524
+ <span class="mero-action-status" data-mero-action-status role="status"></span>
2525
+ </span>
2526
+ </section>
2527
+ ````
2528
+
2490
2529
  # Button Group
2491
2530
 
2492
- Mero UI 0.7.0 · Buttons
2531
+ Mero UI 0.9.0 · Buttons
2493
2532
 
2494
2533
  Keep related actions together while preserving each button’s own label and focus.
2495
2534
 
@@ -2514,7 +2553,7 @@ Template
2514
2553
 
2515
2554
  # Close Button
2516
2555
 
2517
- Mero UI 0.7.0 · Buttons
2556
+ Mero UI 0.9.0 · Buttons
2518
2557
 
2519
2558
  Give a dialog an icon-only close action with an accessible name.
2520
2559
 
@@ -2546,7 +2585,7 @@ Template
2546
2585
 
2547
2586
  # Toggle Button
2548
2587
 
2549
- Mero UI 0.7.0 · Buttons
2588
+ Mero UI 0.9.0 · Buttons
2550
2589
 
2551
2590
  Represent a persistent on or off state with a pressed button.
2552
2591
 
@@ -2569,7 +2608,7 @@ Template
2569
2608
 
2570
2609
  # Toggle Button Group
2571
2610
 
2572
- Mero UI 0.7.0 · Buttons
2611
+ Mero UI 0.9.0 · Buttons
2573
2612
 
2574
2613
  Select one presentation mode from a connected set of controls.
2575
2614
 
@@ -2599,7 +2638,7 @@ Template
2599
2638
 
2600
2639
  # Checkbox
2601
2640
 
2602
- Mero UI 0.7.0 · Forms
2641
+ Mero UI 0.9.0 · Forms
2603
2642
 
2604
2643
  Include an independent binary choice in a form.
2605
2644
 
@@ -2623,7 +2662,7 @@ Template
2623
2662
 
2624
2663
  # Checkbox Group
2625
2664
 
2626
- Mero UI 0.7.0 · Forms
2665
+ Mero UI 0.9.0 · Forms
2627
2666
 
2628
2667
  Group related independent choices with a fieldset and legend.
2629
2668
 
@@ -2651,7 +2690,7 @@ Template
2651
2690
 
2652
2691
  # Description
2653
2692
 
2654
- Mero UI 0.7.0 · Forms
2693
+ Mero UI 0.9.0 · Forms
2655
2694
 
2656
2695
  Connect persistent help text to a control.
2657
2696
 
@@ -2678,7 +2717,7 @@ Template
2678
2717
 
2679
2718
  # Error Message
2680
2719
 
2681
- Mero UI 0.7.0 · Forms
2720
+ Mero UI 0.9.0 · Forms
2682
2721
 
2683
2722
  Present a form-level failure where the user can act on it.
2684
2723
 
@@ -2702,7 +2741,7 @@ Template
2702
2741
 
2703
2742
  # Field Error
2704
2743
 
2705
- Mero UI 0.7.0 · Forms
2744
+ Mero UI 0.9.0 · Forms
2706
2745
 
2707
2746
  Associate a validation error with the field that needs attention.
2708
2747
 
@@ -2731,7 +2770,7 @@ Template
2731
2770
 
2732
2771
  # Fieldset
2733
2772
 
2734
- Mero UI 0.7.0 · Forms
2773
+ Mero UI 0.9.0 · Forms
2735
2774
 
2736
2775
  Add a shared label to a related set of form controls.
2737
2776
 
@@ -2766,9 +2805,53 @@ Template
2766
2805
  </div>
2767
2806
  ````
2768
2807
 
2808
+ ## Conditional fields
2809
+
2810
+ Show fields for the chosen option and enable Apply only after a change.
2811
+
2812
+ data-mero-show-when names a field and the values that show the branch. A hidden branch is disabled, so its required fields neither block nor join the submission. Use a fieldset so its controls keep their own disabled state. data-mero-dirty keeps the submit buttons disabled until a field differs from the value the server rendered, and again after it is changed back. Render both states on the server so the form is right before scripts run.
2813
+
2814
+ Page assets
2815
+
2816
+ ```html
2817
+ <link rel="stylesheet" href="/mero.css">
2818
+ <script defer src="/vendor/htmx.min.js"></script>
2819
+ <script defer src="/mero.js"></script>
2820
+ <script defer src="/mero-forms.js"></script>
2821
+ ```
2822
+
2823
+ Template
2824
+
2825
+ ````html
2826
+ <div class="mero-scope" data-mero-scope>
2827
+ <form class="mero-stack" action="/demo/stock-summary" method="get" hx-get="/demo/stock-summary" hx-target="find output"
2828
+ data-mero-form data-mero-dirty>
2829
+ <fieldset class="mero-fieldset">
2830
+ <legend class="mero-label">Owner</legend>
2831
+ <div class="mero-radio-group">
2832
+ <label><input class="mero-radio" type="radio" name="owner" value="me" checked> Only me</label>
2833
+ <label><input class="mero-radio" type="radio" name="owner" value="team"> A team</label>
2834
+ <label><input class="mero-radio" type="radio" name="owner" value="org"> The organisation</label>
2835
+ </div>
2836
+ </fieldset>
2837
+ <fieldset class="mero-fieldset" data-mero-show-when="owner=team org" hidden disabled>
2838
+ <legend class="mero-label">Sharing</legend>
2839
+ <div class="mero-field">
2840
+ <label class="mero-label" for="branch-demo-team">Team name</label>
2841
+ <input class="mero-input" id="branch-demo-team" name="team" required>
2842
+ </div>
2843
+ </fieldset>
2844
+ <div class="mero-row">
2845
+ <button class="mero-button mero-button-primary" type="submit" disabled>Apply</button>
2846
+ <output class="mero-description mero-form-status" aria-live="polite"></output>
2847
+ </div>
2848
+ </form>
2849
+ </div>
2850
+ ````
2851
+
2769
2852
  # Form
2770
2853
 
2771
- Mero UI 0.7.0 · Forms
2854
+ Mero UI 0.9.0 · Forms
2772
2855
 
2773
2856
  Submit native fields to the server and render an HTML response in place.
2774
2857
 
@@ -2800,9 +2883,163 @@ Template
2800
2883
  </div>
2801
2884
  ````
2802
2885
 
2886
+ ## One-time credential
2887
+
2888
+ Create an API token and keep the page until the person has copied it.
2889
+
2890
+ While the request runs, and while the token is shown, Mero cancels boosted navigation and requests that would replace the token, undoes Back and asks before the page unloads. The token is cleared on I copied it, when a surrounding dialog closes and when the page is hidden. Render the secret only in this response, never in a page the server can send again.
2891
+
2892
+ Page assets
2893
+
2894
+ ```html
2895
+ <link rel="stylesheet" href="/mero.css">
2896
+ <script defer src="/vendor/htmx.min.js"></script>
2897
+ <script defer src="/mero.js"></script>
2898
+ <script defer src="/mero-forms.js"></script>
2899
+ ```
2900
+
2901
+ Template
2902
+
2903
+ ````html
2904
+ <div class="mero-scope" data-mero-scope>
2905
+ <div class="mero-stack">
2906
+ <form class="mero-stack" method="post" action="/demo/catalog/form-credential" hx-post="/demo/catalog/form-credential"
2907
+ hx-target="#api-token-secret" data-mero-form data-mero-hold="Wait for the new token. Leaving now would lose it.">
2908
+ <div class="mero-field">
2909
+ <label class="mero-label" for="api-token-name">Token name</label>
2910
+ <input class="mero-input" id="api-token-name" name="name" required maxlength="40" value="Deploy bot">
2911
+ </div>
2912
+ <p class="mero-field-error" data-mero-form-error role="alert" hidden></p>
2913
+ <div class="mero-row">
2914
+ <button class="mero-button mero-button-primary" type="submit" id="api-token-create">
2915
+ <span class="mero-button-label">Create token</span>
2916
+ <span class="mero-indicator mero-spinner" aria-hidden="true"></span>
2917
+ </button>
2918
+ </div>
2919
+ </form>
2920
+ <div class="mero-stack" id="api-token-secret" data-mero-ephemeral
2921
+ data-mero-hold="Copy the token before you leave. It is shown only once."></div>
2922
+ </div>
2923
+ </div>
2924
+ ````
2925
+
2926
+ ## Action outcome
2927
+
2928
+ Rotate a key and report whether it succeeded, was refused or has an unknown result.
2929
+
2930
+ The submit button gets data-mero-action-state. A 2xx response must contain data-mero-action-expect, otherwise the outcome is unknown and nothing is swapped. An unknown outcome reveals the data-mero-action-unknown panel and never closes the dialog or shows success, including a request aborted after it was sent. data-mero-clear-passwords empties password fields after every response. A retry resubmits the same form, so keep the idempotency key in the markup.
2931
+
2932
+ Page assets
2933
+
2934
+ ```html
2935
+ <link rel="stylesheet" href="/mero.css">
2936
+ <script defer src="/vendor/htmx.min.js"></script>
2937
+ <script defer src="/mero.js"></script>
2938
+ <script defer src="/mero-forms.js"></script>
2939
+ ```
2940
+
2941
+ Template
2942
+
2943
+ ````html
2944
+ <div class="mero-scope" data-mero-scope>
2945
+ <form class="mero-stack" method="post" action="/demo/catalog/form-outcome" hx-post="/demo/catalog/form-outcome"
2946
+ hx-target="#rotate-key-result" hx-headers='{"Idempotency-Key":"rotate-demo-7f3a"}'
2947
+ data-mero-form data-mero-clear-passwords data-mero-action-expect="[data-rotated-key]" data-mero-action-unknown="#rotate-key-unknown">
2948
+ <div class="mero-field">
2949
+ <label class="mero-label" for="rotate-key-outcome">Simulated server response</label>
2950
+ <select class="mero-select" id="rotate-key-outcome" name="outcome">
2951
+ <option value="succeeded">Key rotated</option>
2952
+ <option value="rejected">Refused: wrong password</option>
2953
+ <option value="unknown">Gateway timeout</option>
2954
+ <option value="incomplete">200 without the new key</option>
2955
+ </select>
2956
+ </div>
2957
+ <div class="mero-field">
2958
+ <label class="mero-label" for="rotate-key-password">Your password</label>
2959
+ <input class="mero-input" id="rotate-key-password" name="password" type="password" autocomplete="current-password" required>
2960
+ </div>
2961
+ <p class="mero-field-error" data-mero-form-error role="alert" hidden></p>
2962
+ <div id="rotate-key-unknown" hidden>
2963
+ <div class="mero-alert mero-alert-warning">
2964
+ <strong class="mero-alert-title">The key may have rotated</strong>
2965
+ <p>Check the key list before you try again. A retry sends the same request ID, so the server will not rotate twice.</p>
2966
+ </div>
2967
+ </div>
2968
+ <div class="mero-row">
2969
+ <button class="mero-button mero-button-primary" type="submit">
2970
+ <span class="mero-button-label">Rotate signing key</span>
2971
+ <span class="mero-indicator mero-spinner" aria-hidden="true"></span>
2972
+ </button>
2973
+ </div>
2974
+ <div class="mero-form-status" id="rotate-key-result" role="status"></div>
2975
+ </form>
2976
+ </div>
2977
+ ````
2978
+
2979
+ ## Two columns
2980
+
2981
+ Arrange a longer form in two columns that stack on small screens.
2982
+
2983
+ Put fields in a mero-form-grid. Fields fill two columns in source order, which is also the tab order, and add mero-field-wide to a field that needs the whole row, such as a text area. The grid stacks below 768 px and in containers too narrow for two fields, such as a dialog. Use a fieldset with a legend to name each group of fields.
2984
+
2985
+ Page assets
2986
+
2987
+ ```html
2988
+ <link rel="stylesheet" href="/mero.css">
2989
+ <script defer src="/vendor/htmx.min.js"></script>
2990
+ <script defer src="/mero.js"></script>
2991
+ ```
2992
+
2993
+ Template
2994
+
2995
+ ````html
2996
+ <div class="mero-scope" data-mero-scope>
2997
+ <form class="mero-form" action="/demo/catalog/form" method="get" style="inline-size:min(100%,40rem)"
2998
+ hx-get="/demo/catalog/form" hx-target="#catalog-form-grid-result" hx-swap="innerHTML">
2999
+ <fieldset class="mero-fieldset">
3000
+ <legend class="mero-label">Profile</legend>
3001
+ <div class="mero-form-grid">
3002
+ <div class="mero-field">
3003
+ <label class="mero-label" for="demo-grid-name">Name</label>
3004
+ <input class="mero-input" id="demo-grid-name" name="name" autocomplete="given-name" required maxlength="80" placeholder="Taylor">
3005
+ </div>
3006
+ <div class="mero-field">
3007
+ <label class="mero-label" for="demo-grid-email">Email</label>
3008
+ <input class="mero-input" id="demo-grid-email" name="email" type="email" autocomplete="email" aria-describedby="demo-grid-email-hint">
3009
+ <p class="mero-description" id="demo-grid-email-hint">Used for release notifications.</p>
3010
+ </div>
3011
+ <div class="mero-field">
3012
+ <label class="mero-label" for="demo-grid-team">Team</label>
3013
+ <select class="mero-select" id="demo-grid-team" name="team">
3014
+ <option>Platform</option>
3015
+ <option>Design</option>
3016
+ <option>Support</option>
3017
+ </select>
3018
+ </div>
3019
+ <div class="mero-field">
3020
+ <label class="mero-label" for="demo-grid-region">Region</label>
3021
+ <select class="mero-select" id="demo-grid-region" name="region">
3022
+ <option>Europe West</option>
3023
+ <option>US East</option>
3024
+ </select>
3025
+ </div>
3026
+ <div class="mero-field mero-field-wide">
3027
+ <label class="mero-label" for="demo-grid-notes">Notes</label>
3028
+ <textarea class="mero-textarea" id="demo-grid-notes" name="notes" rows="3"></textarea>
3029
+ </div>
3030
+ </div>
3031
+ </fieldset>
3032
+ <div class="mero-row">
3033
+ <button class="mero-button mero-button-primary" type="submit">Save profile</button>
3034
+ </div>
3035
+ <div class="mero-form-status" id="catalog-form-grid-result" role="status"></div>
3036
+ </form>
3037
+ </div>
3038
+ ````
3039
+
2803
3040
  # Input
2804
3041
 
2805
- Mero UI 0.7.0 · Forms
3042
+ Mero UI 0.9.0 · Forms
2806
3043
 
2807
3044
  A styled native input with browser validation and autocomplete.
2808
3045
 
@@ -2829,7 +3066,7 @@ Template
2829
3066
 
2830
3067
  # Input Group
2831
3068
 
2832
- Mero UI 0.7.0 · Forms
3069
+ Mero UI 0.9.0 · Forms
2833
3070
 
2834
3071
  Combine a control and contextual prefix with a single outline.
2835
3072
 
@@ -2858,7 +3095,7 @@ Template
2858
3095
 
2859
3096
  # Input OTP
2860
3097
 
2861
- Mero UI 0.7.0 · Forms
3098
+ Mero UI 0.9.0 · Forms
2862
3099
 
2863
3100
  Collect a six-digit code in one input with mobile autofill.
2864
3101
 
@@ -2887,7 +3124,7 @@ Template
2887
3124
 
2888
3125
  # Label
2889
3126
 
2890
- Mero UI 0.7.0 · Forms
3127
+ Mero UI 0.9.0 · Forms
2891
3128
 
2892
3129
  Name an input and expand its activation area.
2893
3130
 
@@ -2914,7 +3151,7 @@ Template
2914
3151
 
2915
3152
  # Number Field
2916
3153
 
2917
- Mero UI 0.7.0 · Forms
3154
+ Mero UI 0.9.0 · Forms
2918
3155
 
2919
3156
  Set numeric bounds and increments for a native field.
2920
3157
 
@@ -2941,7 +3178,7 @@ Template
2941
3178
 
2942
3179
  # Radio Group
2943
3180
 
2944
- Mero UI 0.7.0 · Forms
3181
+ Mero UI 0.9.0 · Forms
2945
3182
 
2946
3183
  Choose exactly one option from a labeled set.
2947
3184
 
@@ -2969,7 +3206,7 @@ Template
2969
3206
 
2970
3207
  # Search Field
2971
3208
 
2972
- Mero UI 0.7.0 · Forms
3209
+ Mero UI 0.9.0 · Forms
2973
3210
 
2974
3211
  Use a native search field with the platform’s clear affordance.
2975
3212
 
@@ -2994,9 +3231,51 @@ Template
2994
3231
  </div>
2995
3232
  ````
2996
3233
 
3234
+ ## Filtered list
3235
+
3236
+ Filter a list as you type without losing it when the server fails.
3237
+
3238
+ Choose Archived to see a failed read: the list keeps its previous results, the error explains why and the status select returns to the filter the list shows. Mero also skips a 2xx response without the hx-select region, and loads a redirected response without it as a full page, such as a login page after the session expired.
3239
+
3240
+ Page assets
3241
+
3242
+ ```html
3243
+ <link rel="stylesheet" href="/mero.css">
3244
+ <script defer src="/vendor/htmx.min.js"></script>
3245
+ <script defer src="/mero.js"></script>
3246
+ <script defer src="/mero-forms.js"></script>
3247
+ ```
3248
+
3249
+ Template
3250
+
3251
+ ````html
3252
+ <div class="mero-scope" data-mero-scope>
3253
+ <form class="mero-stack" role="search" action="/demo/catalog/search-results" method="get" data-mero-search
3254
+ hx-get="/demo/catalog/search-results" hx-trigger="input delay:250ms, submit" hx-sync="this:replace"
3255
+ hx-target="#search-demo-results" hx-select="#search-demo-results" hx-swap="outerHTML">
3256
+ <div class="mero-field">
3257
+ <label class="mero-label" for="search-demo-q">Search projects</label>
3258
+ <input class="mero-input" id="search-demo-q" type="search" name="q" autocomplete="off">
3259
+
3260
+ </div>
3261
+ <div class="mero-field">
3262
+ <label class="mero-label" for="search-demo-status">Status</label>
3263
+ <select class="mero-select" id="search-demo-status" name="status">
3264
+ <option value="" selected>Any status</option>
3265
+ <option value="active">Active</option>
3266
+ <option value="paused">Paused</option>
3267
+ <option value="archived">Archived (simulated server error)</option>
3268
+ </select>
3269
+ </div>
3270
+ <p class="mero-field-error" data-mero-search-error role="alert" hidden></p>
3271
+ </form>
3272
+ <ul class="mero-stack" id="search-demo-results" aria-label="Projects"><li>Atlas <span class="mero-badge">active</span></li><li>Beacon <span class="mero-badge">paused</span></li><li>Cobalt <span class="mero-badge">active</span></li><li>Delta <span class="mero-badge">archived</span></li><li>Ember <span class="mero-badge">active</span></li></ul>
3273
+ </div>
3274
+ ````
3275
+
2997
3276
  # Text Area
2998
3277
 
2999
- Mero UI 0.7.0 · Forms
3278
+ Mero UI 0.9.0 · Forms
3000
3279
 
3001
3280
  Let users edit multiple lines of text with an optional autosizing surface.
3002
3281
 
@@ -3022,7 +3301,7 @@ Template
3022
3301
 
3023
3302
  # Text Field
3024
3303
 
3025
- Mero UI 0.7.0 · Forms
3304
+ Mero UI 0.9.0 · Forms
3026
3305
 
3027
3306
  Compose a label, input, and hint into a reusable form field.
3028
3307
 
@@ -3049,7 +3328,7 @@ Template
3049
3328
 
3050
3329
  # Calendar
3051
3330
 
3052
- Mero UI 0.7.0 · Date and time
3331
+ Mero UI 0.9.0 · Date and time
3053
3332
 
3054
3333
  Navigate months and choose a day on an inline calendar rendered by the server.
3055
3334
 
@@ -3128,9 +3407,9 @@ Template
3128
3407
  id="calendar-day-22" aria-label="Sunday, November 22, 2026" aria-pressed="false"
3129
3408
  hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-22" hx-target="closest .mero-calendar" hx-swap="outerHTML">22</button></td></tr>
3130
3409
  <tr><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3131
- id="calendar-day-23" aria-label="Monday, November 23, 2026" aria-pressed="false" aria-current="date"
3410
+ id="calendar-day-23" aria-label="Monday, November 23, 2026" aria-pressed="false"
3132
3411
  hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-23" hx-target="closest .mero-calendar" hx-swap="outerHTML">23</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3133
- id="calendar-day-24" aria-label="Tuesday, November 24, 2026" aria-pressed="false"
3412
+ id="calendar-day-24" aria-label="Tuesday, November 24, 2026" aria-pressed="false" aria-current="date"
3134
3413
  hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-24" hx-target="closest .mero-calendar" hx-swap="outerHTML">24</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3135
3414
  id="calendar-day-25" aria-label="Wednesday, November 25, 2026" aria-pressed="false"
3136
3415
  hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-25" hx-target="closest .mero-calendar" hx-swap="outerHTML">25</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
@@ -3153,7 +3432,7 @@ Template
3153
3432
 
3154
3433
  # Date Field
3155
3434
 
3156
- Mero UI 0.7.0 · Date and time
3435
+ Mero UI 0.9.0 · Date and time
3157
3436
 
3158
3437
  Enter a calendar date in the system’s preferred format.
3159
3438
 
@@ -3180,7 +3459,7 @@ Template
3180
3459
 
3181
3460
  # Date Picker
3182
3461
 
3183
- Mero UI 0.7.0 · Date and time
3462
+ Mero UI 0.9.0 · Date and time
3184
3463
 
3185
3464
  Choose a date with the browser’s calendar picker and native constraints.
3186
3465
 
@@ -3209,7 +3488,7 @@ Template
3209
3488
 
3210
3489
  # Date Range Picker
3211
3490
 
3212
- Mero UI 0.7.0 · Date and time
3491
+ Mero UI 0.9.0 · Date and time
3213
3492
 
3214
3493
  Collect the start and end dates of a range.
3215
3494
 
@@ -3248,7 +3527,7 @@ Template
3248
3527
 
3249
3528
  # Range Calendar
3250
3529
 
3251
- Mero UI 0.7.0 · Date and time
3530
+ Mero UI 0.9.0 · Date and time
3252
3531
 
3253
3532
  Build a range with two native calendar controls.
3254
3533
 
@@ -3287,7 +3566,7 @@ Template
3287
3566
 
3288
3567
  # Time Field
3289
3568
 
3290
- Mero UI 0.7.0 · Date and time
3569
+ Mero UI 0.9.0 · Date and time
3291
3570
 
3292
3571
  Choose a wall-clock time without a timezone conversion.
3293
3572
 
@@ -3316,7 +3595,7 @@ Template
3316
3595
 
3317
3596
  # Accordion
3318
3597
 
3319
- Mero UI 0.7.0 · Navigation
3598
+ Mero UI 0.9.0 · Navigation
3320
3599
 
3321
3600
  Disclose one section at a time using grouped native details.
3322
3601
 
@@ -3346,7 +3625,7 @@ Template
3346
3625
 
3347
3626
  # Breadcrumbs
3348
3627
 
3349
- Mero UI 0.7.0 · Navigation
3628
+ Mero UI 0.9.0 · Navigation
3350
3629
 
3351
3630
  Show the user’s current location and its parent pages.
3352
3631
 
@@ -3373,7 +3652,7 @@ Template
3373
3652
 
3374
3653
  # Disclosure
3375
3654
 
3376
- Mero UI 0.7.0 · Navigation
3655
+ Mero UI 0.9.0 · Navigation
3377
3656
 
3378
3657
  Reveal a single block of supplementary information.
3379
3658
 
@@ -3397,7 +3676,7 @@ Template
3397
3676
 
3398
3677
  # Disclosure Group
3399
3678
 
3400
- Mero UI 0.7.0 · Navigation
3679
+ Mero UI 0.9.0 · Navigation
3401
3680
 
3402
3681
  Present a collection of independently expandable sections.
3403
3682
 
@@ -3427,7 +3706,7 @@ Template
3427
3706
 
3428
3707
  # Link
3429
3708
 
3430
- Mero UI 0.7.0 · Navigation
3709
+ Mero UI 0.9.0 · Navigation
3431
3710
 
3432
3711
  Navigate to a real URL with native link semantics.
3433
3712
 
@@ -3448,7 +3727,7 @@ Template
3448
3727
 
3449
3728
  # Pagination
3450
3729
 
3451
- Mero UI 0.7.0 · Navigation
3730
+ Mero UI 0.9.0 · Navigation
3452
3731
 
3453
3732
  Navigate between result pages with server-rendered fragments.
3454
3733
 
@@ -3487,7 +3766,7 @@ Template
3487
3766
 
3488
3767
  # Tabs
3489
3768
 
3490
- Mero UI 0.7.0 · Navigation
3769
+ Mero UI 0.9.0 · Navigation
3491
3770
 
3492
3771
  Switch between labeled panels with mouse or arrow keys.
3493
3772
 
@@ -3549,9 +3828,32 @@ Template
3549
3828
  </div>
3550
3829
  ````
3551
3830
 
3831
+ ## Link tabs
3832
+
3833
+ Switch between views of one page that the URL keeps.
3834
+
3835
+ Use links in a nav when each tab is its own URL, such as a filtered view of a list. The server puts aria-current=page on the current link. Tab and Enter work as on any link, so there is no tablist role, no arrow-key handling and no script. Add a mero-tab-count after the label for an optional count; it is read with the label. The tabs wrap on narrow screens.
3836
+
3837
+ Page assets
3838
+
3839
+ ```html
3840
+ <link rel="stylesheet" href="/mero.css">
3841
+ <script defer src="/mero.js"></script>
3842
+ ```
3843
+
3844
+ Template
3845
+
3846
+ ````html
3847
+ <nav class="mero-tabs-list" aria-label="Operation views">
3848
+ <a class="mero-tab" href="?view=attention" aria-current="page">Needs attention <span class="mero-tab-count">3</span></a>
3849
+ <a class="mero-tab" href="?view=active">In progress <span class="mero-tab-count">12</span></a>
3850
+ <a class="mero-tab" href="?view=closed">Completed</a>
3851
+ </nav>
3852
+ ````
3853
+
3552
3854
  # Alert Dialog
3553
3855
 
3554
- Mero UI 0.7.0 · Overlays
3856
+ Mero UI 0.9.0 · Overlays
3555
3857
 
3556
3858
  Ask for confirmation on a decision that calls for attention.
3557
3859
 
@@ -3586,7 +3888,7 @@ Template
3586
3888
 
3587
3889
  # Typed Confirmation
3588
3890
 
3589
- Mero UI 0.7.0 · Overlays
3891
+ Mero UI 0.9.0 · Overlays
3590
3892
 
3591
3893
  Require an exact phrase before submitting a destructive action.
3592
3894
 
@@ -3745,12 +4047,14 @@ Template
3745
4047
 
3746
4048
  # Drawer
3747
4049
 
3748
- Mero UI 0.7.0 · Overlays
4050
+ Mero UI 0.9.0 · Overlays
3749
4051
 
3750
4052
  Open a full-height edge panel for work that benefits from more room.
3751
4053
 
3752
4054
  ## Default
3753
4055
 
4056
+ The drawer opens from the inline end. Add mero-drawer-start to open it from the start edge.
4057
+
3754
4058
  Page assets
3755
4059
 
3756
4060
  ```html
@@ -3776,9 +4080,89 @@ Template
3776
4080
  </div>
3777
4081
  ````
3778
4082
 
4083
+ ## Start edge
4084
+
4085
+ Open app navigation from the start edge on small screens.
4086
+
4087
+ Add mero-drawer-start to a mero-drawer. It slides in from the left, or from the right in RTL, and rounds its inline-end corners. Give it a visible close button so touch users don't have to find the backdrop; Escape and the backdrop also close it, and focus returns to the opener.
4088
+
4089
+ Page assets
4090
+
4091
+ ```html
4092
+ <link rel="stylesheet" href="/mero.css">
4093
+ <script defer src="/mero.js"></script>
4094
+ ```
4095
+
4096
+ Template
4097
+
4098
+ ````html
4099
+ <div class="mero-scope" data-mero-scope>
4100
+ <button class="mero-button mero-button-outline" type="button" data-mero-open="demo-nav-drawer">Menu</button>
4101
+ <dialog class="mero-dialog mero-drawer mero-drawer-start" id="demo-nav-drawer" aria-labelledby="demo-nav-drawer-title">
4102
+ <div class="mero-dialog-body">
4103
+ <div class="mero-dialog-header">
4104
+ <h2 class="mero-dialog-title" id="demo-nav-drawer-title">Navigation</h2>
4105
+ <button class="mero-button mero-close-button" type="button" aria-label="Close navigation" data-mero-close><span class="mero-dismiss-mark" aria-hidden="true"></span></button>
4106
+ </div>
4107
+ <nav aria-label="Main">
4108
+ <ul class="mero-stack">
4109
+ <li><a class="mero-link" href="/components" aria-current="page">Components</a></li>
4110
+ <li><a class="mero-link" href="/layouts">Layouts</a></li>
4111
+ <li><a class="mero-link" href="/start">Quick start</a></li>
4112
+ </ul>
4113
+ </nav>
4114
+ </div>
4115
+ </dialog>
4116
+ </div>
4117
+ ````
4118
+
4119
+ ## Boosted navigation
4120
+
4121
+ Navigate from a drawer with boosted links that swap only the page region.
4122
+
4123
+ data-mero-boost names the region every boosted page must contain. The newest boosted GET wins and older ones are aborted, never a boosted form that changes data. A response without the region, such as a login page, or a failed GET becomes a full page load. Open dialogs close, and focus moves to the new region unless the person moved it during the load. This demo keeps the URL; in your app, let boosted links push it.
4124
+
4125
+ Page assets
4126
+
4127
+ ```html
4128
+ <link rel="stylesheet" href="/mero.css">
4129
+ <script defer src="/vendor/htmx.min.js"></script>
4130
+ <script defer src="/mero.js"></script>
4131
+ ```
4132
+
4133
+ Template
4134
+
4135
+ ````html
4136
+ <div class="mero-scope" data-mero-scope>
4137
+ <div class="mero-stack" hx-boost:inherited="true" hx-select:inherited="#boost-demo-main" hx-target:inherited="#boost-demo-main"
4138
+ hx-swap:inherited="outerHTML" hx-push-url:inherited="false" data-mero-boost="#boost-demo-main">
4139
+ <button class="mero-button mero-button-outline" type="button" data-mero-open="boost-demo-drawer">Open navigation</button>
4140
+ <dialog class="mero-dialog mero-drawer" id="boost-demo-drawer" aria-labelledby="boost-demo-drawer-title">
4141
+ <div class="mero-dialog-body">
4142
+ <div class="mero-dialog-header">
4143
+ <h2 class="mero-dialog-title" id="boost-demo-drawer-title">Navigation</h2>
4144
+ <button class="mero-button mero-close-button" type="button" aria-label="Close navigation" data-mero-close><span class="mero-dismiss-mark" aria-hidden="true"></span></button>
4145
+ </div>
4146
+ <nav aria-label="Sections">
4147
+ <ul class="mero-stack">
4148
+ <li><a class="mero-link" href="/demo/catalog/boost-page?page=overview">Overview</a></li>
4149
+ <li><a class="mero-link" href="/demo/catalog/boost-page?page=reports">Reports</a></li>
4150
+ <li><a class="mero-link" href="/demo/catalog/boost-page?page=settings">Settings</a></li>
4151
+ </ul>
4152
+ </nav>
4153
+ </div>
4154
+ </dialog>
4155
+ <section class="mero-card" id="boost-demo-main" aria-labelledby="boost-demo-title">
4156
+ <h2 class="mero-card-title" id="boost-demo-title">Overview</h2>
4157
+ <p class="mero-description">Three deployments ran today. All of them succeeded.</p>
4158
+ </section>
4159
+ </div>
4160
+ </div>
4161
+ ````
4162
+
3779
4163
  # Modal
3780
4164
 
3781
- Mero UI 0.7.0 · Overlays
4165
+ Mero UI 0.9.0 · Overlays
3782
4166
 
3783
4167
  Open a centered, named dialog with native focus containment.
3784
4168
 
@@ -3811,7 +4195,7 @@ Template
3811
4195
 
3812
4196
  # Command Menu
3813
4197
 
3814
- Mero UI 0.7.0 · Overlays
4198
+ Mero UI 0.9.0 · Overlays
3815
4199
 
3816
4200
  Press Cmd or Ctrl K to search pages and actions returned by your server.
3817
4201
 
@@ -3856,7 +4240,7 @@ Template
3856
4240
 
3857
4241
  # Popover
3858
4242
 
3859
- Mero UI 0.7.0 · Overlays
4243
+ Mero UI 0.9.0 · Overlays
3860
4244
 
3861
4245
  Display contextual information using the browser’s top layer.
3862
4246
 
@@ -3885,7 +4269,7 @@ Template
3885
4269
 
3886
4270
  # Sheet
3887
4271
 
3888
- Mero UI 0.7.0 · Overlays
4272
+ Mero UI 0.9.0 · Overlays
3889
4273
 
3890
4274
  Present concise secondary content from the bottom edge.
3891
4275
 
@@ -3918,7 +4302,7 @@ Template
3918
4302
 
3919
4303
  # Toast
3920
4304
 
3921
- Mero UI 0.7.0 · Overlays
4305
+ Mero UI 0.9.0 · Overlays
3922
4306
 
3923
4307
  Announce a completed action without interrupting the current task.
3924
4308
 
@@ -3939,7 +4323,7 @@ Template
3939
4323
 
3940
4324
  # Tooltip
3941
4325
 
3942
- Mero UI 0.7.0 · Overlays
4326
+ Mero UI 0.9.0 · Overlays
3943
4327
 
3944
4328
  Show a brief hint on pointer hover or keyboard focus.
3945
4329
 
@@ -3965,7 +4349,7 @@ Template
3965
4349
 
3966
4350
  # Dropdown
3967
4351
 
3968
- Mero UI 0.7.0 · Collections
4352
+ Mero UI 0.9.0 · Collections
3969
4353
 
3970
4354
  Open a compact list of actions or destinations.
3971
4355
 
@@ -3995,7 +4379,7 @@ Template
3995
4379
 
3996
4380
  # Menu Button
3997
4381
 
3998
- Mero UI 0.7.0 · Collections
4382
+ Mero UI 0.9.0 · Collections
3999
4383
 
4000
4384
  Open row actions and move through them with the arrow keys.
4001
4385
 
@@ -4070,9 +4454,43 @@ Template
4070
4454
  </div>
4071
4455
  ````
4072
4456
 
4457
+ ## Groups and danger
4458
+
4459
+ Label groups of actions with a visible heading and set a destructive action apart.
4460
+
4461
+ Give each group role=group and aria-labelledby its mero-menu-heading. The heading is aria-hidden, so screen readers announce it once as the group name, and arrow keys and typeahead skip it. Use mero-menu-item-danger for an action that destroys data, after a separator, and name the action in its text because forced-colors mode drops the colour. Let it open a confirmation instead of acting immediately.
4462
+
4463
+ Page assets
4464
+
4465
+ ```html
4466
+ <link rel="stylesheet" href="/mero.css">
4467
+ <script defer src="/mero.js"></script>
4468
+ ```
4469
+
4470
+ Template
4471
+
4472
+ ````html
4473
+ <div class="mero-scope" data-mero-scope>
4474
+ <button class="mero-button mero-button-outline mero-button-sm" type="button" popovertarget="environment-menu" aria-haspopup="menu" aria-controls="environment-menu" aria-expanded="false">Environment actions</button>
4475
+ <div class="mero-popover mero-menu" id="environment-menu" popover role="menu" aria-label="acme-production actions">
4476
+ <div role="group" aria-labelledby="environment-menu-lifecycle">
4477
+ <div class="mero-menu-heading" id="environment-menu-lifecycle" aria-hidden="true">Lifecycle</div>
4478
+ <button class="mero-menu-item" role="menuitem" type="button" data-mero-toast="Deploy started">Deploy release</button>
4479
+ <button class="mero-menu-item" role="menuitem" type="button" data-mero-toast="Suspend requested">Suspend</button>
4480
+ </div>
4481
+ <div role="group" aria-labelledby="environment-menu-access">
4482
+ <div class="mero-menu-heading" id="environment-menu-access" aria-hidden="true">Access</div>
4483
+ <a class="mero-menu-item" role="menuitem" href="/components/typed-confirmation">Grant support access</a>
4484
+ </div>
4485
+ <hr class="mero-separator">
4486
+ <a class="mero-menu-item mero-menu-item-danger" role="menuitem" href="/components/typed-confirmation">Delete environment…</a>
4487
+ </div>
4488
+ </div>
4489
+ ````
4490
+
4073
4491
  # List Box
4074
4492
 
4075
- Mero UI 0.7.0 · Collections
4493
+ Mero UI 0.9.0 · Collections
4076
4494
 
4077
4495
  Present a selectable collection with arrow-key navigation.
4078
4496
 
@@ -4101,7 +4519,7 @@ Template
4101
4519
 
4102
4520
  # Tag Group
4103
4521
 
4104
- Mero UI 0.7.0 · Collections
4522
+ Mero UI 0.9.0 · Collections
4105
4523
 
4106
4524
  Display a small, labeled collection of metadata tags.
4107
4525
 
@@ -4126,7 +4544,7 @@ Template
4126
4544
 
4127
4545
  # Slider
4128
4546
 
4129
- Mero UI 0.7.0 · Controls
4547
+ Mero UI 0.9.0 · Controls
4130
4548
 
4131
4549
  Choose a value from a bounded range.
4132
4550
 
@@ -4152,7 +4570,7 @@ Template
4152
4570
 
4153
4571
  # Switch
4154
4572
 
4155
- Mero UI 0.7.0 · Controls
4573
+ Mero UI 0.9.0 · Controls
4156
4574
 
4157
4575
  Toggle one setting with a checkbox-backed switch.
4158
4576
 
@@ -4226,7 +4644,7 @@ Template
4226
4644
 
4227
4645
  # Alert
4228
4646
 
4229
- Mero UI 0.7.0 · Feedback
4647
+ Mero UI 0.9.0 · Feedback
4230
4648
 
4231
4649
  Place status or guidance alongside the content it describes.
4232
4650
 
@@ -4248,9 +4666,64 @@ Template
4248
4666
  </div>
4249
4667
  ````
4250
4668
 
4669
+ # Empty State
4670
+
4671
+ Mero UI 0.9.0 · Feedback
4672
+
4673
+ Explain an empty result and give the user a relevant next action.
4674
+
4675
+ ## Default
4676
+
4677
+ Use a heading at the level the page needs, so the empty result appears in the heading outline. Inside a table cell or a list, where a heading would break the outline, use strong instead. Put one action after the description, or several in a mero-row. The glyph is decorative and hidden from screen readers.
4678
+
4679
+ Page assets
4680
+
4681
+ ```html
4682
+ <link rel="stylesheet" href="/mero.css">
4683
+ <script defer src="/mero.js"></script>
4684
+ ```
4685
+
4686
+ Template
4687
+
4688
+ ````html
4689
+ <div class="mero-scope" data-mero-scope>
4690
+ <section class="mero-empty-state" aria-labelledby="empty-environments-title">
4691
+ <span class="mero-empty-glyph" aria-hidden="true"></span>
4692
+ <h2 id="empty-environments-title">No environments yet</h2>
4693
+ <p>Create the first environment to deploy a release to it.</p>
4694
+ <a class="mero-button mero-button-primary mero-button-sm" href="/components/form">New environment</a>
4695
+ </section>
4696
+ </div>
4697
+ ````
4698
+
4699
+ ## No matches
4700
+
4701
+ Explain why a filtered list is empty and how to widen it.
4702
+
4703
+ Use a heading at the level the page needs, so the empty result appears in the heading outline. Inside a table cell or a list, where a heading would break the outline, use strong instead. Put one action after the description, or several in a mero-row. The glyph is decorative and hidden from screen readers.
4704
+
4705
+ Page assets
4706
+
4707
+ ```html
4708
+ <link rel="stylesheet" href="/mero.css">
4709
+ <script defer src="/mero.js"></script>
4710
+ ```
4711
+
4712
+ Template
4713
+
4714
+ ````html
4715
+ <div class="mero-empty-state">
4716
+ <strong>No operations match these filters</strong>
4717
+ <p>Remove a filter or search for another environment.</p>
4718
+ <div class="mero-row">
4719
+ <a class="mero-button mero-button-outline mero-button-sm" href="/components/filter-chips">Clear filters</a>
4720
+ </div>
4721
+ </div>
4722
+ ````
4723
+
4251
4724
  # Meter
4252
4725
 
4253
- Mero UI 0.7.0 · Feedback
4726
+ Mero UI 0.9.0 · Feedback
4254
4727
 
4255
4728
  Show a measurement between known bounds.
4256
4729
 
@@ -4277,7 +4750,7 @@ Template
4277
4750
 
4278
4751
  # Live Progress
4279
4752
 
4280
- Mero UI 0.7.0 · Feedback
4753
+ Mero UI 0.9.0 · Feedback
4281
4754
 
4282
4755
  Follow a deployment through to its final status.
4283
4756
 
@@ -4312,9 +4785,42 @@ Template
4312
4785
  </div>
4313
4786
  ````
4314
4787
 
4788
+ ## Stale status
4789
+
4790
+ Keep showing the last confirmed status, with its time, while reads fail.
4791
+
4792
+ This demo endpoint fails every read after the first. data-mero-live-error fills {time} with the time of the last good read, in the browser's locale. data-mero-live-follow hands an error response with HX-Redirect, HX-Location or HX-Refresh to htmx and stops polling, so an expired session answered with 401 and HX-Redirect: /login goes to the login page instead of retrying forever.
4793
+
4794
+ Page assets
4795
+
4796
+ ```html
4797
+ <link rel="stylesheet" href="/mero.css">
4798
+ <script defer src="/vendor/htmx.min.js"></script>
4799
+ <script defer src="/mero.js"></script>
4800
+ <script defer src="/mero-live.js"></script>
4801
+ ```
4802
+
4803
+ Template
4804
+
4805
+ ````html
4806
+ <div class="mero-scope" data-mero-scope>
4807
+ <section class="mero-card mero-live" aria-labelledby="stale-deployment-title" tabindex="-1" data-mero-live="3000" data-mero-live-follow
4808
+ hx-get="/demo/catalog/live-progress?outage=1" hx-trigger="mero:refresh"
4809
+ hx-target="find [data-mero-live-status]" hx-swap="innerHTML" hx-include="find input">
4810
+ <h2 class="mero-card-title" id="stale-deployment-title">Production deployment</h2>
4811
+ <div class="mero-live-status" data-mero-live-status role="status" aria-atomic="true">
4812
+ <span class="mero-badge mero-badge-dot">Queued</span>
4813
+ <input type="hidden" name="started" value="">
4814
+ </div>
4815
+ <p class="mero-form-status" role="status" data-mero-live-error="Couldn't refresh. This is the status from {time}. Retrying…"></p>
4816
+ <button type="button" class="mero-button mero-button-secondary" data-mero-live-retry hidden>Retry now</button>
4817
+ </section>
4818
+ </div>
4819
+ ````
4820
+
4315
4821
  # Progress Bar
4316
4822
 
4317
- Mero UI 0.7.0 · Feedback
4823
+ Mero UI 0.9.0 · Feedback
4318
4824
 
4319
4825
  Report measurable progress toward completion.
4320
4826
 
@@ -4340,7 +4846,7 @@ Template
4340
4846
 
4341
4847
  # Progress Circle
4342
4848
 
4343
- Mero UI 0.7.0 · Feedback
4849
+ Mero UI 0.9.0 · Feedback
4344
4850
 
4345
4851
  Show a completion value in a compact circular display.
4346
4852
 
@@ -4362,7 +4868,7 @@ Template
4362
4868
 
4363
4869
  # Skeleton
4364
4870
 
4365
- Mero UI 0.7.0 · Feedback
4871
+ Mero UI 0.9.0 · Feedback
4366
4872
 
4367
4873
  Reserve space for content while its HTML is loading.
4368
4874
 
@@ -4387,7 +4893,7 @@ Template
4387
4893
 
4388
4894
  # Spinner
4389
4895
 
4390
- Mero UI 0.7.0 · Feedback
4896
+ Mero UI 0.9.0 · Feedback
4391
4897
 
4392
4898
  Indicate that work is underway when the completion time is unknown.
4393
4899
 
@@ -4411,12 +4917,14 @@ Template
4411
4917
 
4412
4918
  # Card
4413
4919
 
4414
- Mero UI 0.7.0 · Layout
4920
+ Mero UI 0.9.0 · Layout
4415
4921
 
4416
4922
  Group related content and an action into one compact surface.
4417
4923
 
4418
4924
  ## Default
4419
4925
 
4926
+ Put a title and optional description in mero-card-header. Use a section with aria-labelledby on the title when the card is a page region.
4927
+
4420
4928
  Page assets
4421
4929
 
4422
4930
  ```html
@@ -4434,9 +4942,130 @@ Template
4434
4942
  </article>
4435
4943
  ````
4436
4944
 
4945
+ ## Header actions and table
4946
+
4947
+ Give a card actions at the end of its header and let a table reach its edges.
4948
+
4949
+ Put actions in mero-card-actions as the header's last child; they stay at the inline end and wrap under the title on narrow cards. Wrap a table in mero-card-flush so its rows and borders run to the card's edges while the first and last cells keep the card's padding. Below 768 px, a mero-table-cards table inside the flush body returns to the card padding and shows labelled cards. If you change the card padding, set --mero-panel-padding instead so the flush body follows.
4950
+
4951
+ Page assets
4952
+
4953
+ ```html
4954
+ <link rel="stylesheet" href="/mero.css">
4955
+ <script defer src="/mero.js"></script>
4956
+ ```
4957
+
4958
+ Template
4959
+
4960
+ ````html
4961
+ <div class="mero-scope" data-mero-scope>
4962
+ <section class="mero-card" aria-labelledby="card-releases-title">
4963
+ <header class="mero-card-header">
4964
+ <h2 class="mero-card-title" id="card-releases-title">Recent releases</h2>
4965
+ <div class="mero-card-actions">
4966
+ <a class="mero-button mero-button-ghost mero-button-sm" href="/components/sortable-table">View all</a>
4967
+ <button class="mero-button mero-button-outline mero-button-sm" type="button" data-mero-toast="Release draft created">New release</button>
4968
+ </div>
4969
+ </header>
4970
+ <div class="mero-card-flush">
4971
+ <div class="mero-table-wrap mero-table-cards">
4972
+ <table class="mero-table" role="table" aria-labelledby="card-releases-title">
4973
+ <thead role="rowgroup"><tr role="row"><th role="columnheader" scope="col">Version</th><th role="columnheader" scope="col">Environment</th><th role="columnheader" scope="col">Status</th></tr></thead>
4974
+ <tbody role="rowgroup">
4975
+ <tr role="row">
4976
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Version</span><a class="mero-link" href="/components/sortable-table">v1.4.0</a></th>
4977
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Environment</span>Staging</td>
4978
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-warning">Review</span></td>
4979
+ </tr>
4980
+ <tr role="row">
4981
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Version</span><a class="mero-link" href="/components/sortable-table">v1.3.0</a></th>
4982
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Environment</span>Production</td>
4983
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Live</span></td>
4984
+ </tr>
4985
+ <tr role="row">
4986
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Version</span><a class="mero-link" href="/components/sortable-table">v1.2.2</a></th>
4987
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Environment</span>Production</td>
4988
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge">Retired</span></td>
4989
+ </tr>
4990
+ </tbody>
4991
+ </table>
4992
+ </div>
4993
+ </div>
4994
+ </section>
4995
+ </div>
4996
+ ````
4997
+
4998
+ # Page Header
4999
+
5000
+ Mero UI 0.9.0 · Layout
5001
+
5002
+ Open a page with its title, a short description and the page’s main actions.
5003
+
5004
+ ## Default
5005
+
5006
+ Use one per page, with the page’s h1. The description is a p inside the heading block. Actions sit at the end of the first row and wrap under the heading below 768 px. The layouts module uses the same class for its app pages.
5007
+
5008
+ Page assets
5009
+
5010
+ ```html
5011
+ <link rel="stylesheet" href="/mero.css">
5012
+ <script defer src="/mero.js"></script>
5013
+ ```
5014
+
5015
+ Template
5016
+
5017
+ ````html
5018
+ <header class="mero-page-head">
5019
+ <div>
5020
+ <h1>Environments</h1>
5021
+ <p>Every customer environment and the release it runs.</p>
5022
+ </div>
5023
+ <div class="mero-page-head-actions">
5024
+ <a class="mero-button mero-button-primary" href="/components/form">New environment</a>
5025
+ </div>
5026
+ </header>
5027
+ ````
5028
+
5029
+ ## Record
5030
+
5031
+ Show where a record sits, its current status and what you can do with it.
5032
+
5033
+ Put Breadcrumbs first; they take the whole first row. Wrap the h1 and its status badge in mero-page-head-title so the badge follows the title and wraps with it. Keep the badge outside the h1 so the heading’s name stays the record’s name. The meta line is the p after the title row.
5034
+
5035
+ Page assets
5036
+
5037
+ ```html
5038
+ <link rel="stylesheet" href="/mero.css">
5039
+ <script defer src="/mero.js"></script>
5040
+ ```
5041
+
5042
+ Template
5043
+
5044
+ ````html
5045
+ <header class="mero-page-head">
5046
+ <nav class="mero-breadcrumbs" aria-label="Breadcrumb">
5047
+ <ol>
5048
+ <li><a href="/components">Environments</a></li>
5049
+ <li aria-current="page">acme-production</li>
5050
+ </ol>
5051
+ </nav>
5052
+ <div>
5053
+ <div class="mero-page-head-title">
5054
+ <h1>acme-production</h1>
5055
+ <span class="mero-badge mero-badge-success">Live</span>
5056
+ </div>
5057
+ <p>Acme Corporation · Europe West · Updated 4 minutes ago</p>
5058
+ </div>
5059
+ <div class="mero-page-head-actions">
5060
+ <button class="mero-button mero-button-outline" type="button" data-mero-toast="Suspend requested">Suspend</button>
5061
+ <a class="mero-button mero-button-primary" href="/components/typed-confirmation">Deploy release</a>
5062
+ </div>
5063
+ </header>
5064
+ ````
5065
+
4437
5066
  # Separator
4438
5067
 
4439
- Mero UI 0.7.0 · Layout
5068
+ Mero UI 0.9.0 · Layout
4440
5069
 
4441
5070
  Separate related content sections using a semantic rule.
4442
5071
 
@@ -4461,7 +5090,7 @@ Template
4461
5090
 
4462
5091
  # Surface
4463
5092
 
4464
- Mero UI 0.7.0 · Layout
5093
+ Mero UI 0.9.0 · Layout
4465
5094
 
4466
5095
  Give related content a tonal background with shared theme tokens.
4467
5096
 
@@ -4485,7 +5114,7 @@ Template
4485
5114
 
4486
5115
  # Toolbar
4487
5116
 
4488
- Mero UI 0.7.0 · Layout
5117
+ Mero UI 0.9.0 · Layout
4489
5118
 
4490
5119
  Keep nearby actions aligned and grouped by purpose.
4491
5120
 
@@ -4512,7 +5141,7 @@ Template
4512
5141
 
4513
5142
  # Avatar
4514
5143
 
4515
- Mero UI 0.7.0 · Media
5144
+ Mero UI 0.9.0 · Media
4516
5145
 
4517
5146
  Represent a person with initials and an accessible name.
4518
5147
 
@@ -4536,7 +5165,7 @@ Template
4536
5165
 
4537
5166
  # Avatar Group
4538
5167
 
4539
- Mero UI 0.7.0 · Media
5168
+ Mero UI 0.9.0 · Media
4540
5169
 
4541
5170
  Show a compact cluster of people associated with a workspace.
4542
5171
 
@@ -4561,7 +5190,7 @@ Template
4561
5190
 
4562
5191
  # Autocomplete
4563
5192
 
4564
- Mero UI 0.7.0 · Pickers
5193
+ Mero UI 0.9.0 · Pickers
4565
5194
 
4566
5195
  Request matching options from the server as a user types.
4567
5196
 
@@ -4641,7 +5270,7 @@ Template
4641
5270
 
4642
5271
  # Combo Box
4643
5272
 
4644
- Mero UI 0.7.0 · Pickers
5273
+ Mero UI 0.9.0 · Pickers
4645
5274
 
4646
5275
  Filter and select from suggestions already on the page.
4647
5276
 
@@ -4681,7 +5310,7 @@ Template
4681
5310
 
4682
5311
  # Select
4683
5312
 
4684
- Mero UI 0.7.0 · Pickers
5313
+ Mero UI 0.9.0 · Pickers
4685
5314
 
4686
5315
  Choose one of a fixed set of values using the platform’s picker.
4687
5316
 
@@ -4711,7 +5340,7 @@ Template
4711
5340
 
4712
5341
  # Kbd
4713
5342
 
4714
- Mero UI 0.7.0 · Typography
5343
+ Mero UI 0.9.0 · Typography
4715
5344
 
4716
5345
  Format a keyboard shortcut with native semantics.
4717
5346
 
@@ -4730,9 +5359,40 @@ Template
4730
5359
  <p class="mero-text">Use <kbd class="mero-kbd">Tab</kbd> to move to the next control.</p>
4731
5360
  ````
4732
5361
 
5362
+ ## Keyboard shortcuts
5363
+
5364
+ Act on single keys and two-key sequences, with a switch to turn them off.
5365
+
5366
+ Shortcuts are ignored while the person types in a field, works in a menu, list, tab list or grid, or holds Ctrl, Cmd or Alt. A field takes focus; anything else is clicked. A two-key sequence such as g r must be finished within 1.5 seconds. WCAG 2.1.4 requires a way to turn single-key shortcuts off: the data-mero-shortcuts-toggle control does that for every page in this browser, and Mero updates aria-keyshortcuts to match.
5367
+
5368
+ Page assets
5369
+
5370
+ ```html
5371
+ <link rel="stylesheet" href="/mero.css">
5372
+ <script defer src="/mero.js"></script>
5373
+ ```
5374
+
5375
+ Template
5376
+
5377
+ ````html
5378
+ <div class="mero-scope" data-mero-scope>
5379
+ <div class="mero-stack">
5380
+ <div class="mero-field">
5381
+ <label class="mero-label" for="shortcut-demo-search">Search <kbd class="mero-kbd">/</kbd></label>
5382
+ <input class="mero-input" id="shortcut-demo-search" type="search" data-mero-shortcut="/">
5383
+ </div>
5384
+ <div class="mero-row">
5385
+ <button class="mero-button mero-button-secondary" type="button" data-mero-shortcut="n" data-mero-toast="New draft started">New draft <kbd class="mero-kbd">N</kbd></button>
5386
+ <button class="mero-button mero-button-secondary" type="button" data-mero-shortcut="g r" data-mero-toast="Opened reports">Reports <kbd class="mero-kbd">G</kbd> <kbd class="mero-kbd">R</kbd></button>
5387
+ </div>
5388
+ <label class="mero-row"><input class="mero-checkbox" type="checkbox" data-mero-shortcuts-toggle checked> Single-key shortcuts</label>
5389
+ </div>
5390
+ </div>
5391
+ ````
5392
+
4733
5393
  # Typography
4734
5394
 
4735
- Mero UI 0.7.0 · Typography
5395
+ Mero UI 0.9.0 · Typography
4736
5396
 
4737
5397
  Apply the type scale to semantic content.
4738
5398
 
@@ -4755,9 +5415,32 @@ Template
4755
5415
  </article>
4756
5416
  ````
4757
5417
 
5418
+ ## Local time
5419
+
5420
+ Show server timestamps in the reader’s locale and time zone.
5421
+
5422
+ Render the UTC time as text so the page reads correctly without scripts. Mero rewrites the text from datetime: absolute shows the date and time, date and time show one part, and relative shows how long ago or until, refreshed every minute, with the full date in the title. After a swap or morph Mero formats the new elements again.
5423
+
5424
+ Page assets
5425
+
5426
+ ```html
5427
+ <link rel="stylesheet" href="/mero.css">
5428
+ <script defer src="/mero.js"></script>
5429
+ ```
5430
+
5431
+ Template
5432
+
5433
+ ````html
5434
+ <dl class="mero-stack">
5435
+ <div><dt class="mero-label">Deployed</dt><dd><time datetime="2026-11-23T09:41:00Z" data-mero-time="relative">2026-11-23 09:41 UTC</time></dd></div>
5436
+ <div><dt class="mero-label">Created</dt><dd><time datetime="2026-11-21T16:05:00Z" data-mero-time="absolute">2026-11-21 16:05 UTC</time></dd></div>
5437
+ <div><dt class="mero-label">Expires</dt><dd><time datetime="2026-12-23T00:00:00Z" data-mero-time="date">2026-12-23 UTC</time></dd></div>
5438
+ </dl>
5439
+ ````
5440
+
4758
5441
  # Badge
4759
5442
 
4760
- Mero UI 0.7.0 · Data display
5443
+ Mero UI 0.9.0 · Data display
4761
5444
 
4762
5445
  Label a status using text and a semantic tone.
4763
5446
 
@@ -4782,7 +5465,7 @@ Template
4782
5465
 
4783
5466
  # Chip
4784
5467
 
4785
- Mero UI 0.7.0 · Data display
5468
+ Mero UI 0.9.0 · Data display
4786
5469
 
4787
5470
  Display a lightweight label for an attribute or filter value.
4788
5471
 
@@ -4801,14 +5484,45 @@ Template
4801
5484
  <span class="mero-chip">Europe West</span>
4802
5485
  ````
4803
5486
 
5487
+ # Description List
5488
+
5489
+ Mero UI 0.9.0 · Data display
5490
+
5491
+ Show a record’s fields as label and value pairs.
5492
+
5493
+ ## Default
5494
+
5495
+ Wrap each dt and its dd in a div. Labels and values share a row from 768 px and stack below it. Put identifiers, hashes and keys in code for a monospace value; long values wrap instead of widening the page. Values can hold badges, links and other inline components.
5496
+
5497
+ Page assets
5498
+
5499
+ ```html
5500
+ <link rel="stylesheet" href="/mero.css">
5501
+ <script defer src="/mero.js"></script>
5502
+ ```
5503
+
5504
+ Template
5505
+
5506
+ ````html
5507
+ <dl class="mero-description-list">
5508
+ <div><dt>Environment</dt><dd>Production</dd></div>
5509
+ <div><dt>Status</dt><dd><span class="mero-badge mero-badge-success">Live</span></dd></div>
5510
+ <div><dt>Release</dt><dd><code>rel_01HZX3K9Q4F7WM2D8B6N</code></dd></div>
5511
+ <div><dt>Region</dt><dd>Europe West</dd></div>
5512
+ <div><dt>Owner</dt><dd><a class="mero-link" href="/components/sortable-table">Studio North</a></dd></div>
5513
+ </dl>
5514
+ ````
5515
+
4804
5516
  # Table
4805
5517
 
4806
- Mero UI 0.7.0 · Data display
5518
+ Mero UI 0.9.0 · Data display
4807
5519
 
4808
5520
  Show comparable records in a native table with column headers.
4809
5521
 
4810
5522
  ## Default
4811
5523
 
5524
+ Use scope on the headers. The wrapper scrolls a wide table sideways instead of widening the page.
5525
+
4812
5526
  Page assets
4813
5527
 
4814
5528
  ```html
@@ -4831,9 +5545,64 @@ Template
4831
5545
  </div>
4832
5546
  ````
4833
5547
 
5548
+ ## Cards on phones
5549
+
5550
+ Show rows as labelled cards on phones, with numbers aligned for comparison.
5551
+
5552
+ Add mero-table-cards to the wrapper for cards below 768 px, keep the table roles so screen readers still navigate rows and cells, and start each cell with its data-mero-cell-label. Put data-mero-card-hidden on a column's header and cells to leave it out of the cards. Give numeric headers and cells mero-table-num so they end-align with tabular figures in the table; in a card the value follows its label.
5553
+
5554
+ Page assets
5555
+
5556
+ ```html
5557
+ <link rel="stylesheet" href="/mero.css">
5558
+ <script defer src="/mero.js"></script>
5559
+ ```
5560
+
5561
+ Template
5562
+
5563
+ ````html
5564
+ <div class="mero-table-wrap mero-table-cards">
5565
+ <table class="mero-table" role="table">
5566
+ <caption>Environments</caption>
5567
+ <thead role="rowgroup">
5568
+ <tr role="row">
5569
+ <th role="columnheader" scope="col">Environment</th>
5570
+ <th role="columnheader" scope="col" data-mero-card-hidden>Region</th>
5571
+ <th role="columnheader" scope="col">Status</th>
5572
+ <th role="columnheader" scope="col" class="mero-table-num">Deploys</th>
5573
+ <th role="columnheader" scope="col" class="mero-table-num">Error rate</th>
5574
+ </tr>
5575
+ </thead>
5576
+ <tbody role="rowgroup">
5577
+ <tr role="row">
5578
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Environment</span>acme-production</th>
5579
+ <td role="cell" data-mero-card-hidden><span data-mero-cell-label aria-hidden="true">Region</span>Europe West</td>
5580
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Live</span></td>
5581
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Deploys</span>1,284</td>
5582
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Error rate</span>0.02%</td>
5583
+ </tr>
5584
+ <tr role="row">
5585
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Environment</span>acme-staging</th>
5586
+ <td role="cell" data-mero-card-hidden><span data-mero-cell-label aria-hidden="true">Region</span>Europe West</td>
5587
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-warning">Review</span></td>
5588
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Deploys</span>96</td>
5589
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Error rate</span>1.40%</td>
5590
+ </tr>
5591
+ <tr role="row">
5592
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Environment</span>globex-production</th>
5593
+ <td role="cell" data-mero-card-hidden><span data-mero-cell-label aria-hidden="true">Region</span>US East</td>
5594
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Live</span></td>
5595
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Deploys</span>12</td>
5596
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Error rate</span>0.00%</td>
5597
+ </tr>
5598
+ </tbody>
5599
+ </table>
5600
+ </div>
5601
+ ````
5602
+
4834
5603
  # Sortable Table
4835
5604
 
4836
- Mero UI 0.7.0 · Data display
5605
+ Mero UI 0.9.0 · Data display
4837
5606
 
4838
5607
  Sort server-rendered rows from the column headers and open a row from anywhere in it.
4839
5608
 
@@ -5135,7 +5904,7 @@ Template
5135
5904
 
5136
5905
  # Filter Chips
5137
5906
 
5138
- Mero UI 0.7.0 · Data display
5907
+ Mero UI 0.9.0 · Data display
5139
5908
 
5140
5909
  Add filters from a menu, see them as chips and remove them one at a time. The URL keeps the state.
5141
5910
 
@@ -5283,7 +6052,7 @@ Template
5283
6052
 
5284
6053
  # Color Area
5285
6054
 
5286
- Mero UI 0.7.0 · Colors
6055
+ Mero UI 0.9.0 · Colors
5287
6056
 
5288
6057
  Open a browser-managed color surface and submit the selected color.
5289
6058
 
@@ -5312,7 +6081,7 @@ Template
5312
6081
 
5313
6082
  # Color Field
5314
6083
 
5315
- Mero UI 0.7.0 · Colors
6084
+ Mero UI 0.9.0 · Colors
5316
6085
 
5317
6086
  Enter a six-digit hex value directly in a text field.
5318
6087
 
@@ -5341,7 +6110,7 @@ Template
5341
6110
 
5342
6111
  # Color Picker
5343
6112
 
5344
- Mero UI 0.7.0 · Colors
6113
+ Mero UI 0.9.0 · Colors
5345
6114
 
5346
6115
  Choose a color using the native picker UI.
5347
6116
 
@@ -5368,7 +6137,7 @@ Template
5368
6137
 
5369
6138
  # Color Slider
5370
6139
 
5371
- Mero UI 0.7.0 · Colors
6140
+ Mero UI 0.9.0 · Colors
5372
6141
 
5373
6142
  Adjust a hue along the color spectrum.
5374
6143
 
@@ -5398,7 +6167,7 @@ Template
5398
6167
 
5399
6168
  # Color Swatch
5400
6169
 
5401
- Mero UI 0.7.0 · Colors
6170
+ Mero UI 0.9.0 · Colors
5402
6171
 
5403
6172
  Show a color with its human-readable label.
5404
6173
 
@@ -5423,7 +6192,7 @@ Template
5423
6192
 
5424
6193
  # Scroll Shadow
5425
6194
 
5426
- Mero UI 0.7.0 · Utilities
6195
+ Mero UI 0.9.0 · Utilities
5427
6196
 
5428
6197
  Expose a scrollable region with a visual cue that more content is available.
5429
6198
 
@@ -5451,9 +6220,35 @@ Template
5451
6220
  </div>
5452
6221
  ````
5453
6222
 
6223
+ # Visually Hidden
6224
+
6225
+ Mero UI 0.9.0 · Utilities
6226
+
6227
+ Give screen readers context that the visible text leaves implied.
6228
+
6229
+ ## Default
6230
+
6231
+ Put the hidden words inside the element they describe, with a leading space, so the accessible name reads as one phrase: Copy release ID. The text stays in the accessibility tree and in copied text, takes no space and never widens a scrolling container. Don't hide focusable elements this way.
6232
+
6233
+ Page assets
6234
+
6235
+ ```html
6236
+ <link rel="stylesheet" href="/mero.css">
6237
+ <script defer src="/mero.js"></script>
6238
+ ```
6239
+
6240
+ Template
6241
+
6242
+ ````html
6243
+ <div class="mero-row">
6244
+ <button class="mero-button mero-button-outline mero-button-sm" type="button" data-mero-toast="Release ID copied">Copy<span class="mero-sr-only"> release ID</span></button>
6245
+ <span class="mero-badge mero-badge-warning">3<span class="mero-sr-only"> environments need attention</span></span>
6246
+ </div>
6247
+ ````
6248
+
5454
6249
  # Join
5455
6250
 
5456
- Mero UI 0.7.0 · Composition
6251
+ Mero UI 0.9.0 · Composition
5457
6252
 
5458
6253
  Connect related controls with a shared outline.
5459
6254
 
@@ -5476,7 +6271,7 @@ Template
5476
6271
 
5477
6272
  # Menu
5478
6273
 
5479
- Mero UI 0.7.0 · Composition
6274
+ Mero UI 0.9.0 · Composition
5480
6275
 
5481
6276
  Group destinations with an active page and section labels.
5482
6277
 
@@ -5499,7 +6294,7 @@ Template
5499
6294
 
5500
6295
  # Hero
5501
6296
 
5502
- Mero UI 0.7.0 · Composition
6297
+ Mero UI 0.9.0 · Composition
5503
6298
 
5504
6299
  Pair a product introduction with a single destination.
5505
6300
 
@@ -5524,7 +6319,7 @@ Template
5524
6319
 
5525
6320
  # Footer
5526
6321
 
5527
- Mero UI 0.7.0 · Composition
6322
+ Mero UI 0.9.0 · Composition
5528
6323
 
5529
6324
  Close a workspace with a small group of navigation links.
5530
6325
 
@@ -5547,7 +6342,7 @@ Template
5547
6342
 
5548
6343
  # Theme Controller
5549
6344
 
5550
- Mero UI 0.7.0 · Composition
6345
+ Mero UI 0.9.0 · Composition
5551
6346
 
5552
6347
  Set a theme inside one section of a page.
5553
6348
 
@@ -5570,7 +6365,7 @@ Template
5570
6365
 
5571
6366
  # Validator
5572
6367
 
5573
- Mero UI 0.7.0 · Composition
6368
+ Mero UI 0.9.0 · Composition
5574
6369
 
5575
6370
  Show a native field constraint and its correction.
5576
6371
 
@@ -5595,7 +6390,7 @@ Template
5595
6390
 
5596
6391
  # Aura
5597
6392
 
5598
- Mero UI 0.7.0 · Display utilities
6393
+ Mero UI 0.9.0 · Display utilities
5599
6394
 
5600
6395
  Frame an interactive surface with a subtle moving highlight.
5601
6396
 
@@ -5618,7 +6413,7 @@ Template
5618
6413
 
5619
6414
  # Countdown
5620
6415
 
5621
- Mero UI 0.7.0 · Display utilities
6416
+ Mero UI 0.9.0 · Display utilities
5622
6417
 
5623
6418
  Show the time remaining until the next daily shipping cutoff.
5624
6419
 
@@ -5643,7 +6438,7 @@ Template
5643
6438
 
5644
6439
  # Indicator
5645
6440
 
5646
- Mero UI 0.7.0 · Display utilities
6441
+ Mero UI 0.9.0 · Display utilities
5647
6442
 
5648
6443
  Anchor a quantity to an icon or action.
5649
6444
 
@@ -5666,7 +6461,7 @@ Template
5666
6461
 
5667
6462
  # Mask
5668
6463
 
5669
- Mero UI 0.7.0 · Display utilities
6464
+ Mero UI 0.9.0 · Display utilities
5670
6465
 
5671
6466
  Crop an image while keeping its alternative text.
5672
6467
 
@@ -5691,7 +6486,7 @@ Template
5691
6486
 
5692
6487
  # Stack
5693
6488
 
5694
- Mero UI 0.7.0 · Display utilities
6489
+ Mero UI 0.9.0 · Display utilities
5695
6490
 
5696
6491
  Layer related previews while keeping the current item legible.
5697
6492
 
@@ -5716,7 +6511,7 @@ Template
5716
6511
 
5717
6512
  # Status
5718
6513
 
5719
- Mero UI 0.7.0 · Display utilities
6514
+ Mero UI 0.9.0 · Display utilities
5720
6515
 
5721
6516
  Show system status with a label and a visual marker.
5722
6517
 
@@ -5739,7 +6534,7 @@ Template
5739
6534
 
5740
6535
  # Swap
5741
6536
 
5742
- Mero UI 0.7.0 · Display utilities
6537
+ Mero UI 0.9.0 · Display utilities
5743
6538
 
5744
6539
  Switch between two labels or icons on a native control.
5745
6540
 
@@ -5762,7 +6557,7 @@ Template
5762
6557
 
5763
6558
  # Text Rotate
5764
6559
 
5765
- Mero UI 0.7.0 · Display utilities
6560
+ Mero UI 0.9.0 · Display utilities
5766
6561
 
5767
6562
  Rotate through short messages with explicit playback controls.
5768
6563
 
@@ -5785,7 +6580,7 @@ Template
5785
6580
 
5786
6581
  # Browser Mockup
5787
6582
 
5788
- Mero UI 0.7.0 · Mockups
6583
+ Mero UI 0.9.0 · Mockups
5789
6584
 
5790
6585
  Present a site preview inside a compact browser frame.
5791
6586
 
@@ -5810,7 +6605,7 @@ Template
5810
6605
 
5811
6606
  # Phone Mockup
5812
6607
 
5813
- Mero UI 0.7.0 · Mockups
6608
+ Mero UI 0.9.0 · Mockups
5814
6609
 
5815
6610
  Frame a mobile product screen.
5816
6611
 
@@ -5835,7 +6630,7 @@ Template
5835
6630
 
5836
6631
  # Window Mockup
5837
6632
 
5838
- Mero UI 0.7.0 · Mockups
6633
+ Mero UI 0.9.0 · Mockups
5839
6634
 
5840
6635
  Place a desktop tool inside a labelled window.
5841
6636
 
@@ -5858,7 +6653,7 @@ Template
5858
6653
 
5859
6654
  # Code Mockup
5860
6655
 
5861
- Mero UI 0.7.0 · Mockups
6656
+ Mero UI 0.9.0 · Mockups
5862
6657
 
5863
6658
  Present a terminal command and its output.
5864
6659