@rubenlangeweg/mero-ui 1.0.0 → 1.2.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 (220) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +2 -2
  3. package/agent-docs/components/accordion.md +1 -1
  4. package/agent-docs/components/action-bar.md +2 -2
  5. package/agent-docs/components/action-button.md +1 -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 +42 -3
  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 +1 -1
  21. package/agent-docs/components/calendar.md +67 -66
  22. package/agent-docs/components/card.md +1 -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 +5 -5
  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 +1 -1
  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 +1 -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 +55 -3
  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 +1 -1
  76. package/agent-docs/components/file-drop-zone.md +34 -0
  77. package/agent-docs/components/file-field.md +55 -0
  78. package/agent-docs/components/file-input.md +1 -1
  79. package/agent-docs/components/file-tree.md +1 -1
  80. package/agent-docs/components/filter-chips.md +1 -1
  81. package/agent-docs/components/floating-toc.md +1 -1
  82. package/agent-docs/components/footer.md +1 -1
  83. package/agent-docs/components/form.md +1 -1
  84. package/agent-docs/components/hero.md +1 -1
  85. package/agent-docs/components/holo-card.md +1 -1
  86. package/agent-docs/components/hover-card.md +1 -1
  87. package/agent-docs/components/hover-gallery.md +1 -1
  88. package/agent-docs/components/indicator.md +1 -1
  89. package/agent-docs/components/inline-select.md +1 -1
  90. package/agent-docs/components/input-group.md +1 -1
  91. package/agent-docs/components/input-otp.md +1 -1
  92. package/agent-docs/components/input.md +1 -1
  93. package/agent-docs/components/item-card-group.md +1 -1
  94. package/agent-docs/components/item-card.md +1 -1
  95. package/agent-docs/components/join.md +1 -1
  96. package/agent-docs/components/joined-filter.md +1 -1
  97. package/agent-docs/components/kanban.md +1 -1
  98. package/agent-docs/components/kbd.md +1 -1
  99. package/agent-docs/components/kpi-group.md +1 -1
  100. package/agent-docs/components/kpi.md +1 -1
  101. package/agent-docs/components/label.md +1 -1
  102. package/agent-docs/components/line-chart.md +1 -1
  103. package/agent-docs/components/link.md +1 -1
  104. package/agent-docs/components/list-box.md +1 -1
  105. package/agent-docs/components/list-view.md +1 -1
  106. package/agent-docs/components/live-progress.md +1 -1
  107. package/agent-docs/components/map.md +1 -1
  108. package/agent-docs/components/markdown.md +1 -1
  109. package/agent-docs/components/mask.md +1 -1
  110. package/agent-docs/components/megamenu.md +1 -1
  111. package/agent-docs/components/menu-button.md +1 -1
  112. package/agent-docs/components/menu.md +1 -1
  113. package/agent-docs/components/meter.md +1 -1
  114. package/agent-docs/components/modal.md +45 -1
  115. package/agent-docs/components/native-select.md +1 -1
  116. package/agent-docs/components/navbar.md +1 -1
  117. package/agent-docs/components/number-field.md +1 -1
  118. package/agent-docs/components/number-stepper.md +1 -1
  119. package/agent-docs/components/number-value.md +1 -1
  120. package/agent-docs/components/page-header.md +2 -2
  121. package/agent-docs/components/pagination.md +1 -1
  122. package/agent-docs/components/phone-mockup.md +1 -1
  123. package/agent-docs/components/pie-chart.md +1 -1
  124. package/agent-docs/components/popover.md +1 -1
  125. package/agent-docs/components/pressable-feedback.md +1 -1
  126. package/agent-docs/components/progress-bar.md +1 -1
  127. package/agent-docs/components/progress-circle.md +1 -1
  128. package/agent-docs/components/prompt-input.md +1 -1
  129. package/agent-docs/components/prompt-suggestion.md +1 -1
  130. package/agent-docs/components/radar-chart.md +1 -1
  131. package/agent-docs/components/radial-chart.md +1 -1
  132. package/agent-docs/components/radio-button-group.md +1 -1
  133. package/agent-docs/components/radio-group.md +1 -1
  134. package/agent-docs/components/range-calendar.md +1 -1
  135. package/agent-docs/components/rating.md +1 -1
  136. package/agent-docs/components/reorder-rows.md +114 -0
  137. package/agent-docs/components/resizable.md +1 -1
  138. package/agent-docs/components/rich-text-editor.md +1 -1
  139. package/agent-docs/components/scroll-shadow.md +1 -1
  140. package/agent-docs/components/search-field.md +1 -1
  141. package/agent-docs/components/segment.md +1 -1
  142. package/agent-docs/components/select.md +1 -1
  143. package/agent-docs/components/separator.md +1 -1
  144. package/agent-docs/components/sheet.md +1 -1
  145. package/agent-docs/components/sidebar.md +6 -3
  146. package/agent-docs/components/skeleton.md +1 -1
  147. package/agent-docs/components/slider.md +1 -1
  148. package/agent-docs/components/sortable-table.md +1 -1
  149. package/agent-docs/components/spinner.md +1 -1
  150. package/agent-docs/components/stack.md +1 -1
  151. package/agent-docs/components/status.md +1 -1
  152. package/agent-docs/components/stepper.md +1 -1
  153. package/agent-docs/components/surface.md +1 -1
  154. package/agent-docs/components/swap.md +1 -1
  155. package/agent-docs/components/switch.md +1 -1
  156. package/agent-docs/components/table.md +1 -1
  157. package/agent-docs/components/tabs.md +1 -1
  158. package/agent-docs/components/tag-group.md +1 -1
  159. package/agent-docs/components/text-area.md +1 -1
  160. package/agent-docs/components/text-field.md +1 -1
  161. package/agent-docs/components/text-rotate.md +1 -1
  162. package/agent-docs/components/text-shimmer.md +1 -1
  163. package/agent-docs/components/theme-controller.md +1 -1
  164. package/agent-docs/components/time-field.md +1 -1
  165. package/agent-docs/components/timeline.md +1 -1
  166. package/agent-docs/components/toast.md +1 -1
  167. package/agent-docs/components/toggle-button-group.md +1 -1
  168. package/agent-docs/components/toggle-button.md +1 -1
  169. package/agent-docs/components/toolbar.md +1 -1
  170. package/agent-docs/components/tooltip.md +1 -1
  171. package/agent-docs/components/trend-chip.md +1 -1
  172. package/agent-docs/components/typed-confirmation.md +1 -1
  173. package/agent-docs/components/typography.md +1 -1
  174. package/agent-docs/components/validator.md +1 -1
  175. package/agent-docs/components/visually-hidden.md +1 -1
  176. package/agent-docs/components/widget.md +1 -1
  177. package/agent-docs/components/window-mockup.md +1 -1
  178. package/agent-docs/llms-components.txt +589 -250
  179. package/agent-docs/llms-full.txt +617 -256
  180. package/agent-docs/llms-patterns.txt +29 -7
  181. package/agent-docs/llms.txt +4 -1
  182. package/dist/manifest.json +108 -108
  183. package/dist/ui/mero-collections.min.css +2 -2
  184. package/dist/ui/mero-collections.min.js +2 -2
  185. package/dist/ui/mero-composition.min.css +2 -2
  186. package/dist/ui/mero-composition.min.js +1 -1
  187. package/dist/ui/mero-forms.min.js +2 -2
  188. package/dist/ui/mero-gallery.min.css +2 -2
  189. package/dist/ui/mero-gallery.min.js +1 -1
  190. package/dist/ui/mero-insights.min.css +2 -2
  191. package/dist/ui/mero-insights.min.js +1 -1
  192. package/dist/ui/mero-layouts.min.css +2 -2
  193. package/dist/ui/mero-live.min.js +1 -1
  194. package/dist/ui/mero-themes.min.css +2 -2
  195. package/dist/ui/mero-workspace.min.css +3 -3
  196. package/dist/ui/mero-workspace.min.js +2 -2
  197. package/dist/ui/mero.min.css +3 -3
  198. package/dist/ui/mero.min.js +2 -2
  199. package/package.json +1 -1
  200. package/ui/insight-charts.d.ts +1 -1
  201. package/ui/insight-charts.mjs +1 -1
  202. package/ui/insight-markdown.d.ts +1 -1
  203. package/ui/insight-markdown.mjs +1 -1
  204. package/ui/mero-collections.css +1 -1
  205. package/ui/mero-collections.js +120 -12
  206. package/ui/mero-composition.css +1 -1
  207. package/ui/mero-composition.js +1 -1
  208. package/ui/mero-forms.js +174 -17
  209. package/ui/mero-gallery.css +1 -1
  210. package/ui/mero-gallery.js +1 -1
  211. package/ui/mero-insights.css +1 -1
  212. package/ui/mero-insights.js +1 -1
  213. package/ui/mero-layouts.css +1 -1
  214. package/ui/mero-live.js +1 -1
  215. package/ui/mero-themes.css +1 -1
  216. package/ui/mero-workspace.css +4 -2
  217. package/ui/mero-workspace.js +14 -4
  218. package/ui/mero.css +92 -3
  219. package/ui/mero.d.ts +17 -1
  220. package/ui/mero.js +84 -12
@@ -1,4 +1,4 @@
1
- # Mero UI 1.0.0 integration patterns
1
+ # Mero UI 1.2.0 integration patterns
2
2
 
3
3
  ## Install a component
4
4
 
@@ -26,7 +26,7 @@ event.detail: `{ value, option } or { values, added, removed, option }`. On a li
26
26
 
27
27
  ### mero:tab
28
28
 
29
- Fires on the newly selected tab when a person changes the tab with a click, an arrow key, Home or End, after the tabs and panels are updated. It does not fire for the tab selected at load, or when the selected tab is chosen again.
29
+ Fires on the newly selected tab when a person changes the tab with a click, an arrow key, Home or End, or a script calls `MeroUI.selectTab` without `silent`, after the tabs and panels are updated. It does not fire for the tab selected at load, or when the selected tab is chosen again.
30
30
 
31
31
  event.detail: `{ tab, panel }`. `tab` is the selected tab. `panel` is the element its `aria-controls` names, or `null` when there is none.
32
32
 
@@ -86,6 +86,12 @@ Fires on a card after it moves to another lane. Requires `mero-collections.js`.
86
86
 
87
87
  event.detail: `{ card, from, to }`. `from` and `to` are the lanes’ `data-lane` values.
88
88
 
89
+ ### mero:reorder
90
+
91
+ Fires on a row of a `data-mero-reorder` list after it moves up or down by Alt+Up Arrow, Alt+Down Arrow or a `data-mero-reorder-move` control. Moves past the first or last row do nothing and fire nothing. To save each move, set `hx-trigger="mero:reorder"` and `hx-sync="this:queue last"` on the enclosing form; without `queue last`, moves made while a save is in flight can leave the server one move behind. Requires `mero-collections.js`.
92
+
93
+ event.detail: `{ id, row, from, to, order }`. `id` is the row’s `data-mero-reorder-id` and `row` is the row element. `from` and `to` are its zero-based indexes before and after the move. `order` is the array of every row’s `data-mero-reorder-id` in the new order.
94
+
89
95
  ### mero:reaction
90
96
 
91
97
  Fires on a reaction button after its count and pressed state change. Requires `mero-insights.js`.
@@ -133,6 +139,10 @@ Sets up tabs, listboxes, comboboxes, auto-opening dialogs, and—when loaded—`
133
139
 
134
140
  Tears down Mero state inside `root` before removing it outside htmx: stops and aborts `data-mero-live` polls, clears tracked tooltips and closes any open row preview in `root`.
135
141
 
142
+ ### MeroUI.selectTab(tab, { focus, silent })
143
+
144
+ Selects a tab inside `data-mero-tabs` the way a person choosing it would, without a synthetic click: updates the tabs and panels, then fires `mero:tab` if the selection changed. Set `focus: true` to move focus to the tab, or `silent: true` to skip the event, for example when restoring a tab after a swap. Returns whether the selection changed. Does nothing and returns `false` for a disabled tab, a tab outside `data-mero-tabs` or one outside the current document.
145
+
136
146
  ### MeroUI.configure({ messages, locale, dialogBackdrop })
137
147
 
138
148
  Configures runtime strings (`messages`), default formatting locale (`locale`, or `"document"` / `"browser"`) and backdrop light-dismiss scope (`dialogBackdrop`: `"mero-only"` by default, or `"all"`). Returns the resolved configuration snapshot.
@@ -142,7 +152,7 @@ Configures runtime strings (`messages`), default formatting locale (`locale`, or
142
152
  ### Core · mero.js
143
153
 
144
154
  - `data-mero-open` — On a button. The value is the ID of the `<dialog>` to open as a modal.
145
- - `data-mero-close` — On a control inside a dialog. Closes it. The value becomes the dialog’s `returnValue`.
155
+ - `data-mero-close` — On a control inside a dialog. Closes it. The value becomes the dialog’s `returnValue`. A submit button still submits its form, including one named by `form=`, unless the effective method is `dialog`: the button’s `formmethod` when set, otherwise the form’s `method`. So `formmethod="dialog"` in a POST form only closes, and `formmethod="post"` in a `method="dialog"` form submits.
146
156
  - `data-mero-autoopen` — On a dialog. Opens it as soon as it is on the page or swapped in.
147
157
  - `data-mero-static` — On a dialog. A click on the backdrop does not close it.
148
158
  - `data-mero-dialog` — On a dialog without `.mero-dialog`. Opts the dialog into backdrop light-dismiss under the default `dialogBackdrop: "mero-only"` mode.
@@ -168,7 +178,7 @@ Configures runtime strings (`messages`), default formatting locale (`locale`, or
168
178
  - `data-mero-active` (set by Mero) — On the option highlighted with the keyboard.
169
179
  - `data-mero-combo-pending` (set by Mero) — On the combobox input while a request for options is in flight.
170
180
  - `data-mero-combo-error` (set by Mero) — On the combobox input after a request for options failed.
171
- - `data-mero-combo-dismissed` (set by Mero) — On the combobox input after Escape. Dismissal clears the active option and blocks late responses. Arrow Down requests fresh options when the server has yet to confirm the current query.
181
+ - `data-mero-combo-dismissed` (set by Mero) — On the combobox input after Escape. Dismissal clears the active option and keeps results closed through late responses and swaps inside the combo, until the person types or presses Arrow Down. Arrow Down requests fresh options when the server has yet to confirm the current query.
172
182
  - `data-mero-error` (set by Mero) — On the combobox status element while it shows an error.
173
183
  - `data-mero-tooltip-below` (set by Mero) — On a tooltip placed below its anchor because there is no room above.
174
184
  - `data-mero-tooltip-dismissed` (set by Mero) — On a tooltip closed with Escape, until the pointer and focus leave it.
@@ -181,6 +191,9 @@ Configures runtime strings (`messages`), default formatting locale (`locale`, or
181
191
  - `data-mero-restore-focus` — On a list container. After Back to this page, focuses the link in it that was opened. Links are matched by `href`.
182
192
  - `data-mero-copy-target` — On a button. A selector for an input, textarea or element whose value or text the button copies, then confirms with a “Copied” notification. When the browser blocks clipboard access, Mero selects the text instead. Prefer it for secrets. See the [Button](components/button.md) Copy to clipboard variant.
183
193
  - `data-mero-copy-message` — With `data-mero-copy` or `data-mero-copy-target`. Replaces the “Copied” notification.
194
+ - `data-mero-drop` — On a `.mero-drop-zone` around one file input. Dropping files anywhere on it fills that input, whatever its `name` (only the first file unless it has `multiple`), and fires `input` and `change`. Mero sets `data-dragging` on the zone while files are over it. A disabled input, or one inside a disabled fieldset, ignores drops. Without scripts the native input shows inside the zone with its own file name. See the [File Drop Zone](components/file-drop-zone.md).
195
+ - `data-mero-drop-ready` (set by Mero) — On a `data-mero-drop` zone once `MeroUI.init` has run. The stylesheet then lays the file input over the whole zone, so a click or a drop anywhere reaches it.
196
+ - `data-mero-file-name` — Inside a `data-mero-drop` zone or a `.mero-field`. Mero writes the names of the files chosen in that file input, separated by commas, and empties it when the input's form resets. Hidden while empty. Add `aria-live="polite"` to announce the change. See the [File Field](components/file-field.md).
184
197
  - `data-mero-time` — On a `<time datetime>`. Rewrites its text in the resolved locale and reader’s time zone: `absolute` (date and time), `date`, `time` or `relative` (“5 minutes ago”, refreshed every minute, with the full date in `title`). Follows a differing `[lang]` ancestor automatically, or `data-mero-locale` / `MeroUI.configure({ locale })`. Render the UTC time as its text for readers without scripts. See the [Typography](components/typography.md) Local time variant.
185
198
  - `data-mero-locale` — On a `<time data-mero-time>`, a `data-mero-live` region or an ancestor. Overrides the BCP-47 locale used to format dates and times, or accepts `document` (follow `[lang]`) or `browser` (always use the browser locale).
186
199
  - `data-mero-shortcut` — On a control. A single key such as `/` or `n`, or a two-key sequence such as `g r`, that focuses a field or clicks anything else. Ignored while typing in a field, in a menu, list, tab list, grid or combobox, with Ctrl, Cmd or Alt held, and outside an open modal dialog. Mero sets `aria-keyshortcuts` for single keys. See the [Kbd](components/kbd.md) Keyboard shortcuts variant.
@@ -200,7 +213,8 @@ Configures runtime strings (`messages`), default formatting locale (`locale`, or
200
213
  - `data-mero-confirm-reason` — On the optional reason field. Add `required` to require a non-empty, trimmed value.
201
214
  - `data-mero-confirm-submit` — On the danger submit button. Render it disabled until the phrase and any required reason are ready.
202
215
  - `data-mero-confirm-hint` — A polite status in the form explaining what still needs to be entered. Associate it with the input and the confirm button.
203
- - `data-mero-form` — On a form that htmx submits. Disables its submit buttons and marks editable fields and multi-select containers `inert` while the request runs (without affecting submitted form data; pass `data-mero-form="keep-editable"` for composers that preserve mid-flight drafts), swaps in the replacement form on HTTP 422 and focuses the first invalid field. Reports the outcome like `data-mero-action`: the submitter gets `data-mero-action-state`, the form fires `mero:action`, and `Mero-Action-Outcome` and `Mero-Action-Message` override the state and the error text. A `mero:form-saved` trigger only acts on a succeeded outcome. A succeeded `Mero-Action-Message` shows as a toast.
216
+ - `data-mero-form` — On a form that htmx submits. Disables its submit buttons and marks editable fields and multi-select containers `inert` while the request runs (without affecting submitted form data; pass `data-mero-form="keep-editable"` for composers that preserve mid-flight drafts), keeps a surrounding dialog open by disabling its `data-mero-close` buttons and ignoring Escape and backdrop clicks until the request settles, swaps in the replacement form on HTTP 422 and focuses the first invalid field. Reports the outcome like `data-mero-action`: the submitter gets `data-mero-action-state`, the form fires `mero:action`, and `Mero-Action-Outcome` and `Mero-Action-Message` override the state and the error text. A `mero:form-saved` trigger only acts on a succeeded outcome. A succeeded `Mero-Action-Message` shows as a toast.
217
+ - `data-mero-lock` — On the wrapper of a host widget inside a `data-mero-form`, such as a rich-text editor with its own toolbar. Mero makes the whole wrapper `inert`, `type="button"` controls and any modal dialog open inside it included, while the form’s request runs and releases it when the request settles. Ignored with `data-mero-form="keep-editable"`.
204
218
  - `data-mero-clear-passwords` — On a `data-mero-form`. Empties its password fields after every response, whatever the outcome, and in the replacement form after a 422.
205
219
  - `data-mero-action` — On a button outside a form that makes an htmx request. Shows its outcome and ignores clicks while the request runs. `Mero-Action-Outcome` and `Mero-Action-Message` response headers override the state and the text.
206
220
  - `data-mero-action-state` (set by Mero) — On a `data-mero-action` button, or on the button that submitted a `data-mero-form` (the form itself when there is none): `pending`, then `succeeded` (2xx), `rejected` (4xx other than 408) or `unknown` (anything else, including network errors, timeouts and a request aborted after it was sent). A request cancelled before it was sent clears the state.
@@ -246,11 +260,19 @@ Configures runtime strings (`messages`), default formatting locale (`locale`, or
246
260
 
247
261
  ### Collections · mero-collections.js
248
262
 
249
- - `data-mero-grid` — Root of a data grid. Keeps the select-all checkbox, the selection count and the bulk action bar in step with the row checkboxes.
250
- - `data-mero-grid-focus` — On the grid in a server response. Names what to focus after the swap: `field`, `cancel`, `invalid`, `add`, `search`, `filter`, `sort-name`, `sort-status`, or `edit-ID` and `delete-ID` for that row’s Actions button. Mero removes it once used.
263
+ - `data-mero-grid` — Root of a data grid. Keeps select-all, the selection count and the bulk action bar in step with enabled `input[type=checkbox][name=row]` controls. Disabled rows, including those inside disabled fieldsets, are neither counted nor changed by select-all or Clear.
264
+ - `data-mero-grid-focus` — On the grid in a server response. Focuses the enabled control with a matching `data-mero-grid-focus-key` after the swap. Legacy recipe keys still work: `field`, `cancel`, `invalid`, `add`, `search` (input named q), `filter`, `sort-name`, `sort-status`, or `edit-ID` and `delete-ID` for that row’s Actions button. IDs may be UUIDs or other nonempty strings. If the target is missing or disabled, focus falls back to `data-mero-focus-fallback` and then `data-grid-add`. Mero removes the attribute once processed.
265
+ - `data-mero-grid-focus-key` — On a focusable control inside a grid. An application-defined exact key, unique within that grid. Takes precedence over legacy recipe keys; use it for arbitrary search fields, sort controls and row actions.
266
+ - `data-mero-grid-revision` — On the grid. Its current numeric, monotonically increasing revision. Responses with a lower revision are not swapped. Render the updated revision on the replacement grid element (for example with `outerHTML` or `outerMorph`) so the revision stays in step with the rendered content. If absent or blank, the legacy `data-inventory-revision` value is used.
267
+ - `data-mero-grid-revision-header` — On the grid. Response header carrying its numeric revision, such as `Assets-Revision`. Defaults to the legacy `Inventory-Revision` header. Responses without a valid numeric value in this header are not revision-checked. This guards stale rendering; the server must still enforce write conflicts.
251
268
  - `data-mero-agenda` — Root of an agenda. Restores focus after a swap from its `data-agenda-focus` value, and swaps an error response only on HTTP 422.
252
269
  - `data-mero-load-superseded` (set by Mero) — On a grid or agenda mount when the person acted before its first refresh returned. That refresh is then discarded.
253
270
  - `data-mero-kanban` — Root of a board. Cards move between its `data-lane` columns by drag or by the Move to menu, and fire `mero:kanban-move`.
271
+ - `data-mero-reorder` — On a `<tbody>` or a List View whose rows carry `data-mero-reorder-id`. With focus anywhere in a row, outside a field or open menu, Alt+Up Arrow and Alt+Down Arrow move the row one place. Focus stays where it was, a polite status announces the new position (message `reorderMoved`, “{label} moved to position {position} of {count}”) and the row fires `mero:reorder`. Put a hidden input with the row’s ID in each row and the enclosing form submits the rows in their new order. In a `data-mero-dirty` form a move counts as a change, and while a `data-mero-form` request is pending its rows do not move unless the form is `keep-editable`. See [Reorder Rows](components/reorder-rows.md).
272
+ - `data-mero-reorder-id` — On each direct child of a `data-mero-reorder` list that can move. Its value is the row’s ID in `event.detail.order`.
273
+ - `data-mero-reorder-label` — Optional, on a `data-mero-reorder-id` row. The name the move announcement uses. Without it Mero uses the text of the row header, else of the first `strong`, else of the row, leaving out `data-mero-cell-label` text.
274
+ - `data-mero-reorder-move` — `up` or `down`, on a menu item or button inside a `data-mero-reorder-id` row. Moves the row one place. A menu item returns focus to its menu button in the moved row. Mero sets `aria-disabled="true"` on Move up in the first row and Move down in the last.
275
+ - `data-mero-reorder-status` — On a polite status element, such as `<p class="mero-sr-only" role="status">`, near a `data-mero-reorder` list. Receives the move announcement; Mero uses the nearest one. Without one, moves are not announced.
254
276
  - `data-mero-hover-card` — Around a trigger and its preview panel. Opens the panel on hover or focus.
255
277
  - `data-mero-toc` — Root of a floating table of contents. Its links scroll the content and mark the current section.
256
278
  - `data-mero-place-map` — Root of a map. Choosing a `data-place` pin shows the matching `data-place-detail`.
@@ -357,7 +379,7 @@ What a browser test proves about Mero next to Alpine. It runs Alpine 3.14.8, the
357
379
 
358
380
  # Carousel
359
381
 
360
- Mero UI 1.0.0 · Media galleries
382
+ Mero UI 1.2.0 · Media galleries
361
383
 
362
384
  Browse product photography with native scroll snap, thumbnails and keyboard controls.
363
385
 
@@ -434,7 +456,7 @@ Template
434
456
 
435
457
  # Hover Gallery
436
458
 
437
- Mero UI 1.0.0 · Media galleries
459
+ Mero UI 1.2.0 · Media galleries
438
460
 
439
461
  Explore the shade, base and profile of a product with a pointer, touch or keyboard.
440
462
 
@@ -511,7 +533,7 @@ Template
511
533
 
512
534
  # Image Diff
513
535
 
514
- Mero UI 1.0.0 · Media galleries
536
+ Mero UI 1.2.0 · Media galleries
515
537
 
516
538
  Reveal two finishes at the same position using an accessible comparison slider.
517
539
 
@@ -553,7 +575,7 @@ Template
553
575
 
554
576
  # Holo Card
555
577
 
556
- Mero UI 1.0.0 · Media galleries
578
+ Mero UI 1.2.0 · Media galleries
557
579
 
558
580
  Catch a material sample in a shifting foil reflection.
559
581
 
@@ -585,7 +607,7 @@ Template
585
607
 
586
608
  # Data Grid
587
609
 
588
- Mero UI 1.0.0 · Studio collections
610
+ Mero UI 1.2.0 · Studio collections
589
611
 
590
612
  Search, sort, select and edit products in a server-rendered collection.
591
613
 
@@ -606,7 +628,7 @@ Page assets
606
628
  Template
607
629
 
608
630
  ````html
609
- <div class="mero-grid-mount" hx-get="/demo/collections/grid" hx-trigger="load" hx-swap="innerHTML"><section class="mero-collection" data-mero-grid data-mero-scope data-inventory-revision="0" hx-target:inherited="closest [data-mero-grid]" hx-swap:inherited="outerHTML" hx-sync:inherited="closest [data-mero-grid]:drop" hx-include:inherited="closest [data-mero-grid]" hx-params="q,filter,sort,row,returnFocus">
631
+ <div class="mero-grid-mount" hx-get="/demo/collections/grid" hx-trigger="load" hx-swap="innerHTML"><section class="mero-collection" data-mero-grid data-mero-scope data-mero-grid-revision="0" data-mero-grid-revision-header="Inventory-Revision" hx-target:inherited="closest [data-mero-grid]" hx-swap:inherited="outerHTML" hx-sync:inherited="closest [data-mero-grid]:drop" hx-include:inherited="closest [data-mero-grid]" hx-params="q,filter,sort,row,returnFocus">
610
632
  <input type="hidden" name="revision" value="0">
611
633
  <div class="mero-collection-head"><div><h2>Studio inventory</h2><p>Product catalog</p></div><button type="button" class="mero-button mero-button-primary mero-button-sm" data-grid-add hx-get="/demo/collections/grid/new">Add product</button></div>
612
634
  <form class="mero-collection-filters" role="search" hx-get="/demo/collections/grid" hx-vals='{"returnFocus":"search"}'>
@@ -644,7 +666,7 @@ Page assets
644
666
  Template
645
667
 
646
668
  ````html
647
- <div class="mero-grid-mount" hx-get="/demo/collections/grid?row=1&amp;row=2" hx-trigger="load" hx-swap="innerHTML"><section class="mero-collection" data-mero-grid data-mero-scope data-inventory-revision="0" hx-target:inherited="closest [data-mero-grid]" hx-swap:inherited="outerHTML" hx-sync:inherited="closest [data-mero-grid]:drop" hx-include:inherited="closest [data-mero-grid]" hx-params="q,filter,sort,row,returnFocus">
669
+ <div class="mero-grid-mount" hx-get="/demo/collections/grid?row=1&amp;row=2" hx-trigger="load" hx-swap="innerHTML"><section class="mero-collection" data-mero-grid data-mero-scope data-mero-grid-revision="0" data-mero-grid-revision-header="Inventory-Revision" hx-target:inherited="closest [data-mero-grid]" hx-swap:inherited="outerHTML" hx-sync:inherited="closest [data-mero-grid]:drop" hx-include:inherited="closest [data-mero-grid]" hx-params="q,filter,sort,row,returnFocus">
648
670
  <input type="hidden" name="revision" value="0">
649
671
  <div class="mero-collection-head"><div><h2>Studio inventory</h2><p>Product catalog</p></div><button type="button" class="mero-button mero-button-primary mero-button-sm" data-grid-add hx-get="/demo/collections/grid/new">Add product</button></div>
650
672
  <form class="mero-collection-filters" role="search" hx-get="/demo/collections/grid" hx-vals='{"returnFocus":"search"}'>
@@ -682,7 +704,7 @@ Page assets
682
704
  Template
683
705
 
684
706
  ````html
685
- <div class="mero-grid-mount" hx-get="/demo/collections/grid?filter=Draft" hx-trigger="load" hx-swap="innerHTML"><section class="mero-collection" data-mero-grid data-mero-scope data-inventory-revision="0" hx-target:inherited="closest [data-mero-grid]" hx-swap:inherited="outerHTML" hx-sync:inherited="closest [data-mero-grid]:drop" hx-include:inherited="closest [data-mero-grid]" hx-params="q,filter,sort,row,returnFocus">
707
+ <div class="mero-grid-mount" hx-get="/demo/collections/grid?filter=Draft" hx-trigger="load" hx-swap="innerHTML"><section class="mero-collection" data-mero-grid data-mero-scope data-mero-grid-revision="0" data-mero-grid-revision-header="Inventory-Revision" hx-target:inherited="closest [data-mero-grid]" hx-swap:inherited="outerHTML" hx-sync:inherited="closest [data-mero-grid]:drop" hx-include:inherited="closest [data-mero-grid]" hx-params="q,filter,sort,row,returnFocus">
686
708
  <input type="hidden" name="revision" value="0">
687
709
  <div class="mero-collection-head"><div><h2>Studio inventory</h2><p>Product catalog</p></div><button type="button" class="mero-button mero-button-primary mero-button-sm" data-grid-add hx-get="/demo/collections/grid/new">Add product</button></div>
688
710
  <form class="mero-collection-filters" role="search" hx-get="/demo/collections/grid" hx-vals='{"returnFocus":"search"}'>
@@ -720,7 +742,7 @@ Page assets
720
742
  Template
721
743
 
722
744
  ````html
723
- <div class="mero-grid-mount" hx-get="/demo/collections/grid?q=No+such+SKU" hx-trigger="load" hx-swap="innerHTML"><section class="mero-collection" data-mero-grid data-mero-scope data-inventory-revision="0" hx-target:inherited="closest [data-mero-grid]" hx-swap:inherited="outerHTML" hx-sync:inherited="closest [data-mero-grid]:drop" hx-include:inherited="closest [data-mero-grid]" hx-params="q,filter,sort,row,returnFocus">
745
+ <div class="mero-grid-mount" hx-get="/demo/collections/grid?q=No+such+SKU" hx-trigger="load" hx-swap="innerHTML"><section class="mero-collection" data-mero-grid data-mero-scope data-mero-grid-revision="0" data-mero-grid-revision-header="Inventory-Revision" hx-target:inherited="closest [data-mero-grid]" hx-swap:inherited="outerHTML" hx-sync:inherited="closest [data-mero-grid]:drop" hx-include:inherited="closest [data-mero-grid]" hx-params="q,filter,sort,row,returnFocus">
724
746
  <input type="hidden" name="revision" value="0">
725
747
  <div class="mero-collection-head"><div><h2>Studio inventory</h2><p>Product catalog</p></div><button type="button" class="mero-button mero-button-primary mero-button-sm" data-grid-add hx-get="/demo/collections/grid/new">Add product</button></div>
726
748
  <form class="mero-collection-filters" role="search" hx-get="/demo/collections/grid" hx-vals='{"returnFocus":"search"}'>
@@ -743,7 +765,7 @@ Template
743
765
 
744
766
  # Action Bar
745
767
 
746
- Mero UI 1.0.0 · Studio collections
768
+ Mero UI 1.2.0 · Studio collections
747
769
 
748
770
  Select records and apply one status change to the selection.
749
771
 
@@ -764,7 +786,7 @@ Page assets
764
786
  Template
765
787
 
766
788
  ````html
767
- <div class="mero-grid-mount" hx-get="/demo/collections/grid?row=1&amp;row=2" hx-trigger="load" hx-swap="innerHTML"><section class="mero-collection" data-mero-grid data-mero-scope data-inventory-revision="0" hx-target:inherited="closest [data-mero-grid]" hx-swap:inherited="outerHTML" hx-sync:inherited="closest [data-mero-grid]:drop" hx-include:inherited="closest [data-mero-grid]" hx-params="q,filter,sort,row,returnFocus">
789
+ <div class="mero-grid-mount" hx-get="/demo/collections/grid?row=1&amp;row=2" hx-trigger="load" hx-swap="innerHTML"><section class="mero-collection" data-mero-grid data-mero-scope data-mero-grid-revision="0" data-mero-grid-revision-header="Inventory-Revision" hx-target:inherited="closest [data-mero-grid]" hx-swap:inherited="outerHTML" hx-sync:inherited="closest [data-mero-grid]:drop" hx-include:inherited="closest [data-mero-grid]" hx-params="q,filter,sort,row,returnFocus">
768
790
  <input type="hidden" name="revision" value="0">
769
791
  <div class="mero-collection-head"><div><h2>Studio inventory</h2><p>Product catalog</p></div><button type="button" class="mero-button mero-button-primary mero-button-sm" data-grid-add hx-get="/demo/collections/grid/new">Add product</button></div>
770
792
  <form class="mero-collection-filters" role="search" hx-get="/demo/collections/grid" hx-vals='{"returnFocus":"search"}'>
@@ -787,7 +809,7 @@ Template
787
809
 
788
810
  # Agenda
789
811
 
790
- Mero UI 1.0.0 · Studio collections
812
+ Mero UI 1.2.0 · Studio collections
791
813
 
792
814
  Browse daily bookings and add a timed event.
793
815
 
@@ -824,7 +846,7 @@ Template
824
846
 
825
847
  # File Tree
826
848
 
827
- Mero UI 1.0.0 · Studio collections
849
+ Mero UI 1.2.0 · Studio collections
828
850
 
829
851
  Expand folders and preview a selected file with native disclosure controls.
830
852
 
@@ -847,7 +869,7 @@ Template
847
869
 
848
870
  # Floating TOC
849
871
 
850
- Mero UI 1.0.0 · Studio collections
872
+ Mero UI 1.2.0 · Studio collections
851
873
 
852
874
  Navigate to sections with an index that follows the reading position.
853
875
 
@@ -870,7 +892,7 @@ Template
870
892
 
871
893
  # Hover Card
872
894
 
873
- Mero UI 1.0.0 · Studio collections
895
+ Mero UI 1.2.0 · Studio collections
874
896
 
875
897
  Preview a contributor on hover, focus or tap.
876
898
 
@@ -895,7 +917,7 @@ Template
895
917
 
896
918
  # Item Card
897
919
 
898
- Mero UI 1.0.0 · Studio collections
920
+ Mero UI 1.2.0 · Studio collections
899
921
 
900
922
  Give a related destination an identity, title and supporting detail.
901
923
 
@@ -918,7 +940,7 @@ Template
918
940
 
919
941
  # Item Card Group
920
942
 
921
- Mero UI 1.0.0 · Studio collections
943
+ Mero UI 1.2.0 · Studio collections
922
944
 
923
945
  Arrange related destinations into a responsive group.
924
946
 
@@ -941,7 +963,7 @@ Template
941
963
 
942
964
  # Kanban
943
965
 
944
- Mero UI 1.0.0 · Studio collections
966
+ Mero UI 1.2.0 · Studio collections
945
967
 
946
968
  Move a card between stages with a drag or its Move to menu.
947
969
 
@@ -964,9 +986,122 @@ Template
964
986
  <section class="mero-kanban" data-mero-kanban aria-label="Release board"><div class="mero-kanban-lanes"><section class="mero-kanban-lane" data-lane="Queued"><h2>Queued<span data-lane-count>1</span></h2><div data-lane-cards><article class="mero-kanban-card" draggable="true"><small>Production</small><strong>Validate finishes</strong><label>Move to<select class="mero-select" data-kanban-move aria-label="Move Validate finishes"><option value="Queued" selected>Queued</option><option value="In progress">In progress</option><option value="Ready">Ready</option></select></label></article></div></section><section class="mero-kanban-lane" data-lane="In progress"><h2>In progress<span data-lane-count>1</span></h2><div data-lane-cards><article class="mero-kanban-card" draggable="true"><small>Packaging</small><strong>Approve label proof</strong><label>Move to<select class="mero-select" data-kanban-move aria-label="Move Approve label proof"><option value="Queued">Queued</option><option value="In progress" selected>In progress</option><option value="Ready">Ready</option></select></label></article></div></section><section class="mero-kanban-lane" data-lane="Ready"><h2>Ready<span data-lane-count>1</span></h2><div data-lane-cards><article class="mero-kanban-card" draggable="true"><small>Outreach</small><strong>Send sample kit</strong><label>Move to<select class="mero-select" data-kanban-move aria-label="Move Send sample kit"><option value="Queued">Queued</option><option value="In progress">In progress</option><option value="Ready" selected>Ready</option></select></label></article></div></section></div><output role="status" class="mero-collection-sr"></output></section>
965
987
  ````
966
988
 
989
+ # Reorder Rows
990
+
991
+ Mero UI 1.2.0 · Studio collections
992
+
993
+ Change the order of table or list rows from the keyboard and save it with a form.
994
+
995
+ ## Default
996
+
997
+ Put data-mero-reorder on the tbody or List View and data-mero-reorder-id on each row. Choose Move up or Move down in a row’s Actions menu, or press Alt+Up Arrow or Alt+Down Arrow with focus anywhere in the row. Focus stays on the moved row and the data-mero-reorder-status region announces the new position, such as “French moved to position 2 of 4”. Mero marks Move up in the first row and Move down in the last as aria-disabled. Each row carries a hidden input with its ID, so submitting the form posts the rows in their new order. The bubbling mero:reorder event carries the new order in event.detail.order; set hx-trigger to mero:reorder and hx-sync to this:queue last on the form to save every move, so moves made while a save is in flight end with one request carrying the latest order. Pointer drag is not included.
998
+
999
+ Page assets
1000
+
1001
+ ```html
1002
+ <link rel="stylesheet" href="/mero.css">
1003
+ <link rel="stylesheet" href="/mero-collections.css">
1004
+ <script defer src="/vendor/htmx.min.js"></script>
1005
+ <script defer src="/mero.js"></script>
1006
+ <script defer src="/mero-collections.js"></script>
1007
+ ```
1008
+
1009
+ Template
1010
+
1011
+ ````html
1012
+ <form class="mero-stack" method="post" action="/demo/collections/order" hx-post="/demo/collections/order" hx-target="#reorder-result" hx-swap="innerHTML">
1013
+ <div class="mero-table-wrap">
1014
+ <table class="mero-table">
1015
+ <caption>Content languages</caption>
1016
+ <thead><tr><th scope="col">Language</th><th scope="col">Code</th><th scope="col">Actions</th></tr></thead>
1017
+ <tbody data-mero-reorder>
1018
+ <tr data-mero-reorder-id="en">
1019
+ <th scope="row">English<input type="hidden" name="order" value="en"></th>
1020
+ <td><code>en</code></td>
1021
+ <td>
1022
+ <button class="mero-button mero-button-ghost mero-button-sm" id="language-en-actions" type="button" popovertarget="language-en-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for English" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown">Actions</button>
1023
+ <div class="mero-popover mero-menu" id="language-en-menu" popover role="menu" aria-label="English actions">
1024
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="up" aria-keyshortcuts="Alt+ArrowUp">Move up</button>
1025
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="down" aria-keyshortcuts="Alt+ArrowDown">Move down</button>
1026
+ </div>
1027
+ </td>
1028
+ </tr>
1029
+ <tr data-mero-reorder-id="de">
1030
+ <th scope="row">German<input type="hidden" name="order" value="de"></th>
1031
+ <td><code>de</code></td>
1032
+ <td>
1033
+ <button class="mero-button mero-button-ghost mero-button-sm" id="language-de-actions" type="button" popovertarget="language-de-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for German" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown">Actions</button>
1034
+ <div class="mero-popover mero-menu" id="language-de-menu" popover role="menu" aria-label="German actions">
1035
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="up" aria-keyshortcuts="Alt+ArrowUp">Move up</button>
1036
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="down" aria-keyshortcuts="Alt+ArrowDown">Move down</button>
1037
+ </div>
1038
+ </td>
1039
+ </tr>
1040
+ <tr data-mero-reorder-id="fr">
1041
+ <th scope="row">French<input type="hidden" name="order" value="fr"></th>
1042
+ <td><code>fr</code></td>
1043
+ <td>
1044
+ <button class="mero-button mero-button-ghost mero-button-sm" id="language-fr-actions" type="button" popovertarget="language-fr-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for French" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown">Actions</button>
1045
+ <div class="mero-popover mero-menu" id="language-fr-menu" popover role="menu" aria-label="French actions">
1046
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="up" aria-keyshortcuts="Alt+ArrowUp">Move up</button>
1047
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="down" aria-keyshortcuts="Alt+ArrowDown">Move down</button>
1048
+ </div>
1049
+ </td>
1050
+ </tr>
1051
+ <tr data-mero-reorder-id="nl">
1052
+ <th scope="row">Dutch<input type="hidden" name="order" value="nl"></th>
1053
+ <td><code>nl</code></td>
1054
+ <td>
1055
+ <button class="mero-button mero-button-ghost mero-button-sm" id="language-nl-actions" type="button" popovertarget="language-nl-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for Dutch" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown">Actions</button>
1056
+ <div class="mero-popover mero-menu" id="language-nl-menu" popover role="menu" aria-label="Dutch actions">
1057
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="up" aria-keyshortcuts="Alt+ArrowUp">Move up</button>
1058
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="down" aria-keyshortcuts="Alt+ArrowDown">Move down</button>
1059
+ </div>
1060
+ </td>
1061
+ </tr>
1062
+ </tbody>
1063
+ </table>
1064
+ </div>
1065
+ <p class="mero-sr-only" role="status" data-mero-reorder-status></p>
1066
+ <button class="mero-button mero-button-primary" type="submit">Save order</button>
1067
+ <div class="mero-form-status" id="reorder-result" role="status"></div>
1068
+ </form>
1069
+ ````
1070
+
1071
+ ## List View
1072
+
1073
+ Reorder List View rows with Alt+Arrow keys and save each move.
1074
+
1075
+ With a row link focused, Alt+Up Arrow or Alt+Down Arrow moves it. The form’s hx-trigger is mero:reorder, so each move posts the hidden inputs in their new order. hx-sync="this:queue last" makes moves made during a save send the latest order once that save ends.
1076
+
1077
+ Page assets
1078
+
1079
+ ```html
1080
+ <link rel="stylesheet" href="/mero.css">
1081
+ <link rel="stylesheet" href="/mero-collections.css">
1082
+ <script defer src="/vendor/htmx.min.js"></script>
1083
+ <script defer src="/mero.js"></script>
1084
+ <script defer src="/mero-collections.js"></script>
1085
+ ```
1086
+
1087
+ Template
1088
+
1089
+ ````html
1090
+ <form class="mero-stack" method="post" action="/demo/collections/order" hx-post="/demo/collections/order" hx-trigger="mero:reorder" hx-sync="this:queue last" hx-target="#reorder-list-result" hx-swap="innerHTML">
1091
+ <section class="mero-list-view" aria-label="Content languages" data-mero-reorder>
1092
+ <a href="/components/reorder-rows" data-mero-reorder-id="en" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span><strong>English</strong><small>en</small></span><input type="hidden" name="order" value="en"><span aria-hidden="true">→</span></a>
1093
+ <a href="/components/reorder-rows" data-mero-reorder-id="de" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span><strong>German</strong><small>de</small></span><input type="hidden" name="order" value="de"><span aria-hidden="true">→</span></a>
1094
+ <a href="/components/reorder-rows" data-mero-reorder-id="fr" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span><strong>French</strong><small>fr</small></span><input type="hidden" name="order" value="fr"><span aria-hidden="true">→</span></a>
1095
+ <a href="/components/reorder-rows" data-mero-reorder-id="nl" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span><strong>Dutch</strong><small>nl</small></span><input type="hidden" name="order" value="nl"><span aria-hidden="true">→</span></a>
1096
+ </section>
1097
+ <p class="mero-sr-only" role="status" data-mero-reorder-status></p>
1098
+ <div class="mero-form-status" id="reorder-list-result" role="status"></div>
1099
+ </form>
1100
+ ````
1101
+
967
1102
  # List View
968
1103
 
969
- Mero UI 1.0.0 · Studio collections
1104
+ Mero UI 1.2.0 · Studio collections
970
1105
 
971
1106
  Browse structured destinations in a compact keyboard-accessible list.
972
1107
 
@@ -989,7 +1124,7 @@ Template
989
1124
 
990
1125
  # Map
991
1126
 
992
- Mero UI 1.0.0 · Studio collections
1127
+ Mero UI 1.2.0 · Studio collections
993
1128
 
994
1129
  Choose a location on a self-contained campus map and read its address.
995
1130
 
@@ -1014,7 +1149,7 @@ Template
1014
1149
 
1015
1150
  # Timeline
1016
1151
 
1017
- Mero UI 1.0.0 · Studio collections
1152
+ Mero UI 1.2.0 · Studio collections
1018
1153
 
1019
1154
  Present milestones in order and identify the current step.
1020
1155
 
@@ -1037,7 +1172,7 @@ Template
1037
1172
 
1038
1173
  # Widget
1039
1174
 
1040
- Mero UI 1.0.0 · Studio collections
1175
+ Mero UI 1.2.0 · Studio collections
1041
1176
 
1042
1177
  Use a dashboard panel to track a checklist and its progress.
1043
1178
 
@@ -1060,7 +1195,7 @@ Template
1060
1195
 
1061
1196
  # Cell Color Picker
1062
1197
 
1063
- Mero UI 1.0.0 · Workspace forms
1198
+ Mero UI 1.2.0 · Workspace forms
1064
1199
 
1065
1200
  Change one preference and receive inline confirmation from the server.
1066
1201
 
@@ -1091,7 +1226,7 @@ Template
1091
1226
 
1092
1227
  # Cell Select
1093
1228
 
1094
- Mero UI 1.0.0 · Workspace forms
1229
+ Mero UI 1.2.0 · Workspace forms
1095
1230
 
1096
1231
  Change one preference and receive inline confirmation from the server.
1097
1232
 
@@ -1122,7 +1257,7 @@ Template
1122
1257
 
1123
1258
  # Cell Slider
1124
1259
 
1125
- Mero UI 1.0.0 · Workspace forms
1260
+ Mero UI 1.2.0 · Workspace forms
1126
1261
 
1127
1262
  Change one preference and receive inline confirmation from the server.
1128
1263
 
@@ -1153,7 +1288,7 @@ Template
1153
1288
 
1154
1289
  # Cell Switch
1155
1290
 
1156
- Mero UI 1.0.0 · Workspace forms
1291
+ Mero UI 1.2.0 · Workspace forms
1157
1292
 
1158
1293
  Change one preference and receive inline confirmation from the server.
1159
1294
 
@@ -1184,7 +1319,7 @@ Template
1184
1319
 
1185
1320
  # Checkbox Button Group
1186
1321
 
1187
- Mero UI 1.0.0 · Workspace forms
1322
+ Mero UI 1.2.0 · Workspace forms
1188
1323
 
1189
1324
  Select several release channels using native checkboxes.
1190
1325
 
@@ -1212,7 +1347,7 @@ Template
1212
1347
 
1213
1348
  # Radio Button Group
1214
1349
 
1215
- Mero UI 1.0.0 · Workspace forms
1350
+ Mero UI 1.2.0 · Workspace forms
1216
1351
 
1217
1352
  Choose one release schedule with labelled option cards.
1218
1353
 
@@ -1239,7 +1374,7 @@ Template
1239
1374
 
1240
1375
  # Native Select
1241
1376
 
1242
- Mero UI 1.0.0 · Workspace forms
1377
+ Mero UI 1.2.0 · Workspace forms
1243
1378
 
1244
1379
  Choose a workspace from labelled option groups.
1245
1380
 
@@ -1264,7 +1399,7 @@ Template
1264
1399
 
1265
1400
  # Inline Select
1266
1401
 
1267
- Mero UI 1.0.0 · Workspace forms
1402
+ Mero UI 1.2.0 · Workspace forms
1268
1403
 
1269
1404
  Change an audience within the sentence that describes it.
1270
1405
 
@@ -1289,7 +1424,7 @@ Template
1289
1424
 
1290
1425
  # Number Stepper
1291
1426
 
1292
- Mero UI 1.0.0 · Workspace forms
1427
+ Mero UI 1.2.0 · Workspace forms
1293
1428
 
1294
1429
  Change a bounded quantity with the keyboard or step buttons.
1295
1430
 
@@ -1319,7 +1454,7 @@ Template
1319
1454
 
1320
1455
  # File Input
1321
1456
 
1322
- Mero UI 1.0.0 · Workspace forms
1457
+ Mero UI 1.2.0 · Workspace forms
1323
1458
 
1324
1459
  Choose a local product image and validate it on the server.
1325
1460
 
@@ -1350,7 +1485,7 @@ Template
1350
1485
 
1351
1486
  # Drop Zone
1352
1487
 
1353
- Mero UI 1.0.0 · Workspace forms
1488
+ Mero UI 1.2.0 · Workspace forms
1354
1489
 
1355
1490
  Drop an image or use the native file picker and check the file.
1356
1491
 
@@ -1383,7 +1518,7 @@ Template
1383
1518
 
1384
1519
  # Rich Text Editor
1385
1520
 
1386
- Mero UI 1.0.0 · Workspace forms
1521
+ Mero UI 1.2.0 · Workspace forms
1387
1522
 
1388
1523
  Edit a short description with bold and italic text and preview the submitted result.
1389
1524
 
@@ -1417,7 +1552,7 @@ Template
1417
1552
 
1418
1553
  # Joined Filter
1419
1554
 
1420
- Mero UI 1.0.0 · Workspace forms
1555
+ Mero UI 1.2.0 · Workspace forms
1421
1556
 
1422
1557
  Search and filter releases with one server request.
1423
1558
 
@@ -1444,12 +1579,14 @@ Template
1444
1579
 
1445
1580
  # App Layout
1446
1581
 
1447
- Mero UI 1.0.0 · Workspace navigation
1582
+ Mero UI 1.2.0 · Workspace navigation
1448
1583
 
1449
1584
  A responsive workspace with a sidebar, content area and mobile navigation drawer.
1450
1585
 
1451
1586
  ## Default
1452
1587
 
1588
+ Give each page one h1 and decide where it lives: in the header bar at the top of the content, as here, or in a Page Header in the content, as in the Page Header in content variant, but not both. A title in the header bar is the h1 only when the page has no Page Header. The sidebar's workspace name is not a heading, because the sidebar is hidden at narrow widths. Keep the mero-skip-link as the shell's first focusable element so keyboard users can pass the navigation. It stays hidden until it receives keyboard focus. Its href names the id of the content region, which has tabindex="-1" so following the link moves focus there. When the shell is the whole page, make that region the page's main element, keeping its id and tabindex. To localise the label, change the link text in your template, for example to Naar inhoud; Mero adds no text of its own.
1589
+
1453
1590
  Page assets
1454
1591
 
1455
1592
  ```html
@@ -1463,10 +1600,11 @@ Template
1463
1600
 
1464
1601
  ````html
1465
1602
  <section class="mero-ws-shell" data-mero-ws-shell aria-label="Studio workspace">
1603
+ <a class="mero-skip-link" href="#workspace-main">Skip to content</a>
1466
1604
  <aside class="mero-ws-side"><strong>Studio North</strong><nav aria-label="Workspace sidebar"><a href="/layouts/dashboard">Overview</a><a href="/layouts/dashboard?view=inventory">Inventory</a><a href="/layouts/dashboard?view=settings">Settings</a></nav></aside>
1467
- <div class="mero-ws-shell-main">
1605
+ <div class="mero-ws-shell-main" id="workspace-main" tabindex="-1">
1468
1606
  <button class="mero-button mero-button-sm mero-button-secondary mero-ws-mobile-nav" type="button" data-mero-ws-open>Open navigation</button>
1469
- <header><small>Studio North</small><h2>Release room</h2></header>
1607
+ <header><small>Studio North</small><h1>Release room</h1></header>
1470
1608
  <div class="mero-ws-summary"><span class="mero-ws-dot"></span><div><strong>Spring collection</strong><small>Photography approved</small></div></div>
1471
1609
  <a class="mero-link" href="/layouts/dashboard?view=inventory">Open inventory →</a>
1472
1610
  </div>
@@ -1477,14 +1615,52 @@ Template
1477
1615
  </section>
1478
1616
  ````
1479
1617
 
1618
+ ## Page Header in content
1619
+
1620
+ Open the content with a Page Header that holds the page's h1, its description and actions.
1621
+
1622
+ When the content starts with a Page Header, its h1 is the page title. A title the header bar still shows is plain text, such as strong, not a heading, so the page keeps one h1.
1623
+
1624
+ Page assets
1625
+
1626
+ ```html
1627
+ <link rel="stylesheet" href="/mero.css">
1628
+ <link rel="stylesheet" href="/mero-workspace.css">
1629
+ <script defer src="/mero.js"></script>
1630
+ <script defer src="/mero-workspace.js"></script>
1631
+ ```
1632
+
1633
+ Template
1634
+
1635
+ ````html
1636
+ <section class="mero-ws-shell" data-mero-ws-shell aria-label="Studio workspace">
1637
+ <a class="mero-skip-link" href="#workspace-main">Skip to content</a>
1638
+ <aside class="mero-ws-side"><strong>Studio North</strong><nav aria-label="Workspace sidebar"><a href="/layouts/dashboard">Overview</a><a href="/layouts/dashboard?view=inventory">Inventory</a><a href="/layouts/dashboard?view=settings">Settings</a></nav></aside>
1639
+ <div class="mero-ws-shell-main" id="workspace-main" tabindex="-1">
1640
+ <button class="mero-button mero-button-sm mero-button-secondary mero-ws-mobile-nav" type="button" data-mero-ws-open>Open navigation</button>
1641
+ <header><small>Studio North</small><strong>Release room</strong></header>
1642
+ <header class="mero-page-head">
1643
+ <div><h1>Spring collection</h1><p>Photography approved · 12 products</p></div>
1644
+ <div class="mero-page-head-actions"><a class="mero-button mero-button-sm mero-button-primary" href="/layouts/dashboard?view=inventory">Open inventory</a></div>
1645
+ </header>
1646
+ </div>
1647
+ <dialog class="mero-dialog mero-ws-drawer" aria-label="Workspace navigation"><div class="mero-dialog-body">
1648
+ <button class="mero-button mero-button-sm mero-button-secondary" type="button" data-mero-close autofocus>Close navigation</button>
1649
+ <nav aria-label="Mobile workspace"><a href="/layouts/dashboard">Overview</a><a href="/layouts/dashboard?view=inventory">Inventory</a><a href="/layouts/dashboard?view=settings">Settings</a></nav>
1650
+ </div></dialog>
1651
+ </section>
1652
+ ````
1653
+
1480
1654
  # Sidebar
1481
1655
 
1482
- Mero UI 1.0.0 · Workspace navigation
1656
+ Mero UI 1.2.0 · Workspace navigation
1483
1657
 
1484
1658
  Navigate the workspace from a side rail that becomes a drawer at narrow widths.
1485
1659
 
1486
1660
  ## Default
1487
1661
 
1662
+ Keep the mero-skip-link as the shell's first focusable element so keyboard users can pass the navigation. It stays hidden until it receives keyboard focus. Its href names the id of the content region, which has tabindex="-1" so following the link moves focus there. When the shell is the whole page, make that region the page's main element, keeping its id and tabindex. To localise the label, change the link text in your template, for example to Naar inhoud; Mero adds no text of its own.
1663
+
1488
1664
  Page assets
1489
1665
 
1490
1666
  ```html
@@ -1498,10 +1674,11 @@ Template
1498
1674
 
1499
1675
  ````html
1500
1676
  <section class="mero-ws-shell" data-mero-ws-shell aria-label="Studio workspace">
1677
+ <a class="mero-skip-link" href="#workspace-main">Skip to content</a>
1501
1678
  <aside class="mero-ws-side"><strong>Studio North</strong><nav aria-label="Workspace sidebar"><a href="/layouts/dashboard">Overview</a><a href="/layouts/dashboard?view=inventory">Inventory</a><a href="/layouts/dashboard?view=settings">Settings</a></nav></aside>
1502
- <div class="mero-ws-shell-main">
1679
+ <div class="mero-ws-shell-main" id="workspace-main" tabindex="-1">
1503
1680
  <button class="mero-button mero-button-sm mero-button-secondary mero-ws-mobile-nav" type="button" data-mero-ws-open>Open navigation</button>
1504
- <header><small>Studio North</small><h2>Workspace</h2></header>
1681
+ <header><small>Studio North</small><h1>Workspace</h1></header>
1505
1682
  <div class="mero-ws-summary"><span class="mero-ws-dot"></span><div><strong>Spring collection</strong><small>Photography approved</small></div></div>
1506
1683
  <a class="mero-link" href="/layouts/dashboard?view=inventory">Open inventory →</a>
1507
1684
  </div>
@@ -1514,7 +1691,7 @@ Template
1514
1691
 
1515
1692
  # Navbar
1516
1693
 
1517
- Mero UI 1.0.0 · Workspace navigation
1694
+ Mero UI 1.2.0 · Workspace navigation
1518
1695
 
1519
1696
  Place the workspace name and destinations in a wrapping top bar.
1520
1697
 
@@ -1537,7 +1714,7 @@ Template
1537
1714
 
1538
1715
  # Command
1539
1716
 
1540
- Mero UI 1.0.0 · Workspace navigation
1717
+ Mero UI 1.2.0 · Workspace navigation
1541
1718
 
1542
1719
  Search local destinations and actions, then use the arrows and Enter to execute.
1543
1720
 
@@ -1577,7 +1754,7 @@ Template
1577
1754
 
1578
1755
  # Context Menu
1579
1756
 
1580
- Mero UI 1.0.0 · Workspace navigation
1757
+ Mero UI 1.2.0 · Workspace navigation
1581
1758
 
1582
1759
  Open item actions with the visible button, a secondary click, or Shift F10.
1583
1760
 
@@ -1607,7 +1784,7 @@ Template
1607
1784
 
1608
1785
  # Segment
1609
1786
 
1610
- Mero UI 1.0.0 · Workspace navigation
1787
+ Mero UI 1.2.0 · Workspace navigation
1611
1788
 
1612
1789
  Choose one display density in a compact segmented control.
1613
1790
 
@@ -1634,7 +1811,7 @@ Template
1634
1811
 
1635
1812
  # Stepper
1636
1813
 
1637
- Mero UI 1.0.0 · Workspace navigation
1814
+ Mero UI 1.2.0 · Workspace navigation
1638
1815
 
1639
1816
  Move through validated project details and review the values before submitting.
1640
1817
 
@@ -1665,7 +1842,7 @@ Template
1665
1842
 
1666
1843
  # Dock
1667
1844
 
1668
- Mero UI 1.0.0 · Workspace navigation
1845
+ Mero UI 1.2.0 · Workspace navigation
1669
1846
 
1670
1847
  Group frequently used workspace destinations in a compact navigation dock.
1671
1848
 
@@ -1690,7 +1867,7 @@ Template
1690
1867
 
1691
1868
  # Megamenu
1692
1869
 
1693
- Mero UI 1.0.0 · Workspace navigation
1870
+ Mero UI 1.2.0 · Workspace navigation
1694
1871
 
1695
1872
  Explore grouped destinations from a native disclosure.
1696
1873
 
@@ -1715,7 +1892,7 @@ Template
1715
1892
 
1716
1893
  # Floating Action Button
1717
1894
 
1718
- Mero UI 1.0.0 · Workspace navigation
1895
+ Mero UI 1.2.0 · Workspace navigation
1719
1896
 
1720
1897
  Reveal a small set of workspace shortcuts.
1721
1898
 
@@ -1740,7 +1917,7 @@ Template
1740
1917
 
1741
1918
  # Resizable
1742
1919
 
1743
- Mero UI 1.0.0 · Workspace tools
1920
+ Mero UI 1.2.0 · Workspace tools
1744
1921
 
1745
1922
  Resize two adjacent panels by dragging the divider or using the arrow keys.
1746
1923
 
@@ -1794,7 +1971,7 @@ Template
1794
1971
 
1795
1972
  # Emoji Picker
1796
1973
 
1797
- Mero UI 1.0.0 · Workspace tools
1974
+ Mero UI 1.2.0 · Workspace tools
1798
1975
 
1799
1976
  Search named reactions and submit the selected emoji as a form value.
1800
1977
 
@@ -1824,7 +2001,7 @@ Template
1824
2001
 
1825
2002
  # Area Chart
1826
2003
 
1827
- Mero UI 1.0.0 · Charts
2004
+ Mero UI 1.2.0 · Charts
1828
2005
 
1829
2006
  Show the volume and shape of a series over time.
1830
2007
 
@@ -1859,7 +2036,7 @@ Template
1859
2036
 
1860
2037
  # Bar Chart
1861
2038
 
1862
- Mero UI 1.0.0 · Charts
2039
+ Mero UI 1.2.0 · Charts
1863
2040
 
1864
2041
  Compare adjacent categories on a shared linear scale.
1865
2042
 
@@ -1894,7 +2071,7 @@ Template
1894
2071
 
1895
2072
  # Chart Tooltip
1896
2073
 
1897
- Mero UI 1.0.0 · Charts
2074
+ Mero UI 1.2.0 · Charts
1898
2075
 
1899
2076
  Inspect the active data point using a pointer or keyboard.
1900
2077
 
@@ -1929,7 +2106,7 @@ Template
1929
2106
 
1930
2107
  # Composed Chart
1931
2108
 
1932
- Mero UI 1.0.0 · Charts
2109
+ Mero UI 1.2.0 · Charts
1933
2110
 
1934
2111
  Compare actual volume with its target using columns and a line.
1935
2112
 
@@ -1964,7 +2141,7 @@ Template
1964
2141
 
1965
2142
  # Line Chart
1966
2143
 
1967
- Mero UI 1.0.0 · Charts
2144
+ Mero UI 1.2.0 · Charts
1968
2145
 
1969
2146
  Trace changes across a reporting period.
1970
2147
 
@@ -2027,7 +2204,7 @@ Template
2027
2204
 
2028
2205
  # Pie Chart
2029
2206
 
2030
- Mero UI 1.0.0 · Charts
2207
+ Mero UI 1.2.0 · Charts
2031
2208
 
2032
2209
  See how each collection contributes to total volume.
2033
2210
 
@@ -2062,7 +2239,7 @@ Template
2062
2239
 
2063
2240
  # Radar Chart
2064
2241
 
2065
- Mero UI 1.0.0 · Charts
2242
+ Mero UI 1.2.0 · Charts
2066
2243
 
2067
2244
  Compare profiles across axes that use the same units.
2068
2245
 
@@ -2097,7 +2274,7 @@ Template
2097
2274
 
2098
2275
  # Radial Chart
2099
2276
 
2100
- Mero UI 1.0.0 · Charts
2277
+ Mero UI 1.2.0 · Charts
2101
2278
 
2102
2279
  Compare categories as concentric rings against the largest category.
2103
2280
 
@@ -2132,7 +2309,7 @@ Template
2132
2309
 
2133
2310
  # KPI
2134
2311
 
2135
- Mero UI 1.0.0 · Metrics
2312
+ Mero UI 1.2.0 · Metrics
2136
2313
 
2137
2314
  Pair an exact figure with the reporting period it describes.
2138
2315
 
@@ -2155,7 +2332,7 @@ Template
2155
2332
 
2156
2333
  # KPI Group
2157
2334
 
2158
- Mero UI 1.0.0 · Metrics
2335
+ Mero UI 1.2.0 · Metrics
2159
2336
 
2160
2337
  Keep related measures on a common reporting period.
2161
2338
 
@@ -2178,7 +2355,7 @@ Template
2178
2355
 
2179
2356
  # Emoji Reaction Button
2180
2357
 
2181
- Mero UI 1.0.0 · Interaction feedback
2358
+ Mero UI 1.2.0 · Interaction feedback
2182
2359
 
2183
2360
  Add or remove a reaction while keeping its count visible.
2184
2361
 
@@ -2203,7 +2380,7 @@ Template
2203
2380
 
2204
2381
  # Number Value
2205
2382
 
2206
- Mero UI 1.0.0 · Interaction feedback
2383
+ Mero UI 1.2.0 · Interaction feedback
2207
2384
 
2208
2385
  Display a localized number with its machine-readable value.
2209
2386
 
@@ -2228,7 +2405,7 @@ Template
2228
2405
 
2229
2406
  # Pressable Feedback
2230
2407
 
2231
- Mero UI 1.0.0 · Interaction feedback
2408
+ Mero UI 1.2.0 · Interaction feedback
2232
2409
 
2233
2410
  Give a press a tactile response and keep its selected state visible.
2234
2411
 
@@ -2251,7 +2428,7 @@ Template
2251
2428
 
2252
2429
  # Rating
2253
2430
 
2254
- Mero UI 1.0.0 · Interaction feedback
2431
+ Mero UI 1.2.0 · Interaction feedback
2255
2432
 
2256
2433
  Choose a labelled score using native radio controls.
2257
2434
 
@@ -2276,7 +2453,7 @@ Template
2276
2453
 
2277
2454
  # Trend Chip
2278
2455
 
2279
- Mero UI 1.0.0 · Interaction feedback
2456
+ Mero UI 1.2.0 · Interaction feedback
2280
2457
 
2281
2458
  Label the direction and magnitude of a change.
2282
2459
 
@@ -2299,7 +2476,7 @@ Template
2299
2476
 
2300
2477
  # Chain Of Thought
2301
2478
 
2302
- Mero UI 1.0.0 · Conversation
2479
+ Mero UI 1.2.0 · Conversation
2303
2480
 
2304
2481
  Display a disclosure of observable execution steps for a report.
2305
2482
 
@@ -2324,7 +2501,7 @@ Template
2324
2501
 
2325
2502
  # Chat Attachment
2326
2503
 
2327
- Mero UI 1.0.0 · Conversation
2504
+ Mero UI 1.2.0 · Conversation
2328
2505
 
2329
2506
  Display a named file and provide a working download.
2330
2507
 
@@ -2349,7 +2526,7 @@ Template
2349
2526
 
2350
2527
  # Chat Conversation
2351
2528
 
2352
- Mero UI 1.0.0 · Conversation
2529
+ Mero UI 1.2.0 · Conversation
2353
2530
 
2354
2531
  Keep messages, controls and a composer in one scoped conversation.
2355
2532
 
@@ -2409,7 +2586,7 @@ Template
2409
2586
 
2410
2587
  # Chat List View
2411
2588
 
2412
- Mero UI 1.0.0 · Conversation
2589
+ Mero UI 1.2.0 · Conversation
2413
2590
 
2414
2591
  Open a conversation returned by the server.
2415
2592
 
@@ -2433,7 +2610,7 @@ Template
2433
2610
 
2434
2611
  # Chat Loader
2435
2612
 
2436
- Mero UI 1.0.0 · Conversation
2613
+ Mero UI 1.2.0 · Conversation
2437
2614
 
2438
2615
  Show a concise status while a response is being prepared.
2439
2616
 
@@ -2456,7 +2633,7 @@ Template
2456
2633
 
2457
2634
  # Chat Message
2458
2635
 
2459
- Mero UI 1.0.0 · Conversation
2636
+ Mero UI 1.2.0 · Conversation
2460
2637
 
2461
2638
  Distinguish the sender and keep the message readable after a swap.
2462
2639
 
@@ -2479,7 +2656,7 @@ Template
2479
2656
 
2480
2657
  # Chat Message Actions
2481
2658
 
2482
- Mero UI 1.0.0 · Conversation
2659
+ Mero UI 1.2.0 · Conversation
2483
2660
 
2484
2661
  Copy a reply or mark it as helpful.
2485
2662
 
@@ -2503,7 +2680,7 @@ Template
2503
2680
 
2504
2681
  # Chat Source
2505
2682
 
2506
- Mero UI 1.0.0 · Conversation
2683
+ Mero UI 1.2.0 · Conversation
2507
2684
 
2508
2685
  Open the exact data behind a generated summary.
2509
2686
 
@@ -2526,7 +2703,7 @@ Template
2526
2703
 
2527
2704
  # Chat Tool
2528
2705
 
2529
- Mero UI 1.0.0 · Conversation
2706
+ Mero UI 1.2.0 · Conversation
2530
2707
 
2531
2708
  Disclose the inputs and output of an application action.
2532
2709
 
@@ -2566,7 +2743,7 @@ Template
2566
2743
 
2567
2744
  # Code Block
2568
2745
 
2569
- Mero UI 1.0.0 · Conversation
2746
+ Mero UI 1.2.0 · Conversation
2570
2747
 
2571
2748
  Show a file caption, selectable code and a copy control.
2572
2749
 
@@ -2589,7 +2766,7 @@ Template
2589
2766
 
2590
2767
  # Markdown
2591
2768
 
2592
- Mero UI 1.0.0 · Conversation
2769
+ Mero UI 1.2.0 · Conversation
2593
2770
 
2594
2771
  Render a small safe subset of Markdown into semantic HTML.
2595
2772
 
@@ -2624,7 +2801,7 @@ Template
2624
2801
 
2625
2802
  # Prompt Input
2626
2803
 
2627
- Mero UI 1.0.0 · Conversation
2804
+ Mero UI 1.2.0 · Conversation
2628
2805
 
2629
2806
  Collect a question and submit it to a server-rendered response endpoint.
2630
2807
 
@@ -2655,7 +2832,7 @@ Template
2655
2832
 
2656
2833
  # Prompt Suggestion
2657
2834
 
2658
- Mero UI 1.0.0 · Conversation
2835
+ Mero UI 1.2.0 · Conversation
2659
2836
 
2660
2837
  Choose a suggested prompt, edit it, then send it.
2661
2838
 
@@ -2686,7 +2863,7 @@ Template
2686
2863
 
2687
2864
  # Text Shimmer
2688
2865
 
2689
- Mero UI 1.0.0 · Conversation
2866
+ Mero UI 1.2.0 · Conversation
2690
2867
 
2691
2868
  Indicate work in progress with a moving highlight across readable text.
2692
2869
 
@@ -2709,7 +2886,7 @@ Template
2709
2886
 
2710
2887
  # Button
2711
2888
 
2712
- Mero UI 1.0.0 · Buttons
2889
+ Mero UI 1.2.0 · Buttons
2713
2890
 
2714
2891
  Trigger an action with a consistent hierarchy of visual emphasis.
2715
2892
 
@@ -2814,7 +2991,7 @@ Template
2814
2991
 
2815
2992
  # Action Button
2816
2993
 
2817
- Mero UI 1.0.0 · Buttons
2994
+ Mero UI 1.2.0 · Buttons
2818
2995
 
2819
2996
  Run a server action and report whether it succeeded, was refused or has an unknown result.
2820
2997
 
@@ -2886,7 +3063,7 @@ Template
2886
3063
 
2887
3064
  # Button Group
2888
3065
 
2889
- Mero UI 1.0.0 · Buttons
3066
+ Mero UI 1.2.0 · Buttons
2890
3067
 
2891
3068
  Keep related actions together while preserving each button’s own label and focus.
2892
3069
 
@@ -2911,7 +3088,7 @@ Template
2911
3088
 
2912
3089
  # Close Button
2913
3090
 
2914
- Mero UI 1.0.0 · Buttons
3091
+ Mero UI 1.2.0 · Buttons
2915
3092
 
2916
3093
  Give a dialog an icon-only close action with an accessible name.
2917
3094
 
@@ -2943,7 +3120,7 @@ Template
2943
3120
 
2944
3121
  # Toggle Button
2945
3122
 
2946
- Mero UI 1.0.0 · Buttons
3123
+ Mero UI 1.2.0 · Buttons
2947
3124
 
2948
3125
  Represent a persistent on or off state with a pressed button.
2949
3126
 
@@ -2966,7 +3143,7 @@ Template
2966
3143
 
2967
3144
  # Toggle Button Group
2968
3145
 
2969
- Mero UI 1.0.0 · Buttons
3146
+ Mero UI 1.2.0 · Buttons
2970
3147
 
2971
3148
  Select one presentation mode from a connected set of controls.
2972
3149
 
@@ -2996,7 +3173,7 @@ Template
2996
3173
 
2997
3174
  # Checkbox
2998
3175
 
2999
- Mero UI 1.0.0 · Forms
3176
+ Mero UI 1.2.0 · Forms
3000
3177
 
3001
3178
  Include an independent binary choice in a form.
3002
3179
 
@@ -3020,7 +3197,7 @@ Template
3020
3197
 
3021
3198
  # Checkbox Group
3022
3199
 
3023
- Mero UI 1.0.0 · Forms
3200
+ Mero UI 1.2.0 · Forms
3024
3201
 
3025
3202
  Group related independent choices with a fieldset and legend.
3026
3203
 
@@ -3048,7 +3225,7 @@ Template
3048
3225
 
3049
3226
  # Description
3050
3227
 
3051
- Mero UI 1.0.0 · Forms
3228
+ Mero UI 1.2.0 · Forms
3052
3229
 
3053
3230
  Connect persistent help text to a control.
3054
3231
 
@@ -3075,7 +3252,7 @@ Template
3075
3252
 
3076
3253
  # Error Message
3077
3254
 
3078
- Mero UI 1.0.0 · Forms
3255
+ Mero UI 1.2.0 · Forms
3079
3256
 
3080
3257
  Present a form-level failure where the user can act on it.
3081
3258
 
@@ -3099,7 +3276,7 @@ Template
3099
3276
 
3100
3277
  # Field Error
3101
3278
 
3102
- Mero UI 1.0.0 · Forms
3279
+ Mero UI 1.2.0 · Forms
3103
3280
 
3104
3281
  Associate a validation error with the field that needs attention.
3105
3282
 
@@ -3128,7 +3305,7 @@ Template
3128
3305
 
3129
3306
  # Fieldset
3130
3307
 
3131
- Mero UI 1.0.0 · Forms
3308
+ Mero UI 1.2.0 · Forms
3132
3309
 
3133
3310
  Add a shared label to a related set of form controls.
3134
3311
 
@@ -3207,9 +3384,96 @@ Template
3207
3384
  </div>
3208
3385
  ````
3209
3386
 
3387
+ # File Drop Zone
3388
+
3389
+ Mero UI 1.2.0 · Forms
3390
+
3391
+ Drop files on a large target or click it to use the native file picker.
3392
+
3393
+ ## Default
3394
+
3395
+ Put the field in a plain <form method="post" enctype="multipart/form-data">. Without scripts the native file input shows inside the zone with its own file name, and the form submits as usual. With mero.js the input covers the whole zone, and a drop anywhere on a data-mero-drop zone fills its file input, whatever its name, and fires change. The zone gets data-dragging while files are over it, and data-mero-file-name lists the chosen files. Add multiple to accept several files. Your server still checks the type and size.
3396
+
3397
+ Page assets
3398
+
3399
+ ```html
3400
+ <link rel="stylesheet" href="/mero.css">
3401
+ <script defer src="/mero.js"></script>
3402
+ ```
3403
+
3404
+ Template
3405
+
3406
+ ````html
3407
+ <div class="mero-scope" data-mero-scope>
3408
+ <div class="mero-field">
3409
+ <label class="mero-label" for="demo-drop-zone">Import contacts</label>
3410
+ <div class="mero-drop-zone" data-mero-drop>
3411
+ <input class="mero-file" id="demo-drop-zone" name="import" type="file" accept=".csv,.xlsx" aria-describedby="demo-drop-zone-hint">
3412
+ <p aria-hidden="true"><strong>Drop a CSV or XLSX file</strong></p>
3413
+ <p id="demo-drop-zone-hint">or click to choose one, up to 5 MB</p>
3414
+ <span data-mero-file-name aria-live="polite"></span>
3415
+ </div>
3416
+ </div>
3417
+ </div>
3418
+ ````
3419
+
3420
+ # File Field
3421
+
3422
+ Mero UI 1.2.0 · Forms
3423
+
3424
+ Choose a file with a native file input styled like Mero buttons.
3425
+
3426
+ ## Default
3427
+
3428
+ Use it in a plain <form method="post" enctype="multipart/form-data">. The browser shows the chosen file name next to the button. For your own echo, such as a list of several files, put an element with data-mero-file-name in the same mero-field.
3429
+
3430
+ Page assets
3431
+
3432
+ ```html
3433
+ <link rel="stylesheet" href="/mero.css">
3434
+ <script defer src="/mero.js"></script>
3435
+ ```
3436
+
3437
+ Template
3438
+
3439
+ ````html
3440
+ <div class="mero-scope" data-mero-scope>
3441
+ <div class="mero-field">
3442
+ <label class="mero-label" for="demo-file-field">Favicon</label>
3443
+ <input class="mero-file" id="demo-file-field" name="favicon" type="file" accept="image/png,image/svg+xml" aria-describedby="demo-file-field-hint">
3444
+ <p class="mero-description" id="demo-file-field-hint">PNG or SVG, at least 512 px square.</p>
3445
+ </div>
3446
+ </div>
3447
+ ````
3448
+
3449
+ ## Error
3450
+
3451
+ Ask for a different file after the server rejected the last one.
3452
+
3453
+ Render aria-invalid and the error from your server. The browser cannot keep the rejected file, so the person chooses it again.
3454
+
3455
+ Page assets
3456
+
3457
+ ```html
3458
+ <link rel="stylesheet" href="/mero.css">
3459
+ <script defer src="/mero.js"></script>
3460
+ ```
3461
+
3462
+ Template
3463
+
3464
+ ````html
3465
+ <div class="mero-scope" data-mero-scope>
3466
+ <div class="mero-field">
3467
+ <label class="mero-label" for="demo-file-error">Watermark</label>
3468
+ <input class="mero-file" id="demo-file-error" name="watermark" type="file" accept="image/png" aria-invalid="true" aria-describedby="demo-file-error-message">
3469
+ <p class="mero-field-error" id="demo-file-error-message">The watermark must be a PNG under 1 MB.</p>
3470
+ </div>
3471
+ </div>
3472
+ ````
3473
+
3210
3474
  # Form
3211
3475
 
3212
- Mero UI 1.0.0 · Forms
3476
+ Mero UI 1.2.0 · Forms
3213
3477
 
3214
3478
  Submit native fields to the server and render an HTML response in place.
3215
3479
 
@@ -3397,7 +3661,7 @@ Template
3397
3661
 
3398
3662
  # Input
3399
3663
 
3400
- Mero UI 1.0.0 · Forms
3664
+ Mero UI 1.2.0 · Forms
3401
3665
 
3402
3666
  A styled native input with browser validation and autocomplete.
3403
3667
 
@@ -3424,7 +3688,7 @@ Template
3424
3688
 
3425
3689
  # Input Group
3426
3690
 
3427
- Mero UI 1.0.0 · Forms
3691
+ Mero UI 1.2.0 · Forms
3428
3692
 
3429
3693
  Combine a control and contextual prefix with a single outline.
3430
3694
 
@@ -3453,7 +3717,7 @@ Template
3453
3717
 
3454
3718
  # Input OTP
3455
3719
 
3456
- Mero UI 1.0.0 · Forms
3720
+ Mero UI 1.2.0 · Forms
3457
3721
 
3458
3722
  Collect a six-digit code in one input with mobile autofill.
3459
3723
 
@@ -3482,7 +3746,7 @@ Template
3482
3746
 
3483
3747
  # Label
3484
3748
 
3485
- Mero UI 1.0.0 · Forms
3749
+ Mero UI 1.2.0 · Forms
3486
3750
 
3487
3751
  Name an input and expand its activation area.
3488
3752
 
@@ -3509,7 +3773,7 @@ Template
3509
3773
 
3510
3774
  # Number Field
3511
3775
 
3512
- Mero UI 1.0.0 · Forms
3776
+ Mero UI 1.2.0 · Forms
3513
3777
 
3514
3778
  Set numeric bounds and increments for a native field.
3515
3779
 
@@ -3536,7 +3800,7 @@ Template
3536
3800
 
3537
3801
  # Radio Group
3538
3802
 
3539
- Mero UI 1.0.0 · Forms
3803
+ Mero UI 1.2.0 · Forms
3540
3804
 
3541
3805
  Choose exactly one option from a labeled set.
3542
3806
 
@@ -3564,7 +3828,7 @@ Template
3564
3828
 
3565
3829
  # Search Field
3566
3830
 
3567
- Mero UI 1.0.0 · Forms
3831
+ Mero UI 1.2.0 · Forms
3568
3832
 
3569
3833
  Use a native search field with the platform’s clear affordance.
3570
3834
 
@@ -3633,7 +3897,7 @@ Template
3633
3897
 
3634
3898
  # Text Area
3635
3899
 
3636
- Mero UI 1.0.0 · Forms
3900
+ Mero UI 1.2.0 · Forms
3637
3901
 
3638
3902
  Let users edit multiple lines of text with an optional autosizing surface.
3639
3903
 
@@ -3659,7 +3923,7 @@ Template
3659
3923
 
3660
3924
  # Text Field
3661
3925
 
3662
- Mero UI 1.0.0 · Forms
3926
+ Mero UI 1.2.0 · Forms
3663
3927
 
3664
3928
  Compose a label, input, and hint into a reusable form field.
3665
3929
 
@@ -3686,7 +3950,7 @@ Template
3686
3950
 
3687
3951
  # Calendar
3688
3952
 
3689
- Mero UI 1.0.0 · Date and time
3953
+ Mero UI 1.2.0 · Date and time
3690
3954
 
3691
3955
  Navigate months and choose a day on an inline calendar rendered by the server.
3692
3956
 
@@ -3709,79 +3973,80 @@ Template
3709
3973
  <div id="demo-calendar" class="mero-calendar">
3710
3974
  <div class="mero-toolbar">
3711
3975
  <button class="mero-button mero-button-sm mero-button-ghost mero-button-icon" type="button" id="calendar-prev"
3712
- aria-label="Previous month" hx-get="/demo/catalog/calendar?month=2026-10" hx-target="closest .mero-calendar" hx-swap="outerHTML">‹</button>
3713
- <strong id="demo-calendar-month">November 2026</strong>
3976
+ aria-label="Previous month" hx-get="/demo/catalog/calendar?month=2026-11" hx-target="closest .mero-calendar" hx-swap="outerHTML">‹</button>
3977
+ <strong id="demo-calendar-month">December 2026</strong>
3714
3978
  <button class="mero-button mero-button-sm mero-button-ghost mero-button-icon" type="button" id="calendar-next"
3715
- aria-label="Next month" hx-get="/demo/catalog/calendar?month=2026-12" hx-target="closest .mero-calendar" hx-swap="outerHTML">›</button>
3979
+ aria-label="Next month" hx-get="/demo/catalog/calendar?month=2027-01" hx-target="closest .mero-calendar" hx-swap="outerHTML">›</button>
3716
3980
  </div>
3717
3981
  <table class="mero-calendar-table" aria-labelledby="demo-calendar-month">
3718
3982
  <thead><tr><th scope="col">Mon</th><th scope="col">Tue</th><th scope="col">Wed</th><th scope="col">Thu</th><th scope="col">Fri</th><th scope="col">Sat</th><th scope="col">Sun</th></tr></thead>
3719
- <tbody><tr><td></td><td></td><td></td><td></td><td></td><td></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3720
- id="calendar-day-1" aria-label="Sunday, November 1, 2026" aria-pressed="false"
3721
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-01" hx-target="closest .mero-calendar" hx-swap="outerHTML">1</button></td></tr>
3983
+ <tbody><tr><td></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3984
+ id="calendar-day-1" aria-label="Tuesday, December 1, 2026" aria-pressed="false"
3985
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-01" hx-target="closest .mero-calendar" hx-swap="outerHTML">1</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3986
+ id="calendar-day-2" aria-label="Wednesday, December 2, 2026" aria-pressed="false" aria-current="date"
3987
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-02" hx-target="closest .mero-calendar" hx-swap="outerHTML">2</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3988
+ id="calendar-day-3" aria-label="Thursday, December 3, 2026" aria-pressed="false"
3989
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-03" hx-target="closest .mero-calendar" hx-swap="outerHTML">3</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3990
+ id="calendar-day-4" aria-label="Friday, December 4, 2026" aria-pressed="false"
3991
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-04" hx-target="closest .mero-calendar" hx-swap="outerHTML">4</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3992
+ id="calendar-day-5" aria-label="Saturday, December 5, 2026" aria-pressed="false"
3993
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-05" hx-target="closest .mero-calendar" hx-swap="outerHTML">5</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3994
+ id="calendar-day-6" aria-label="Sunday, December 6, 2026" aria-pressed="false"
3995
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-06" hx-target="closest .mero-calendar" hx-swap="outerHTML">6</button></td></tr>
3722
3996
  <tr><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3723
- id="calendar-day-2" aria-label="Monday, November 2, 2026" aria-pressed="false"
3724
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-02" hx-target="closest .mero-calendar" hx-swap="outerHTML">2</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3725
- id="calendar-day-3" aria-label="Tuesday, November 3, 2026" aria-pressed="false"
3726
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-03" hx-target="closest .mero-calendar" hx-swap="outerHTML">3</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3727
- id="calendar-day-4" aria-label="Wednesday, November 4, 2026" aria-pressed="false"
3728
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-04" hx-target="closest .mero-calendar" hx-swap="outerHTML">4</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3729
- id="calendar-day-5" aria-label="Thursday, November 5, 2026" aria-pressed="false"
3730
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-05" hx-target="closest .mero-calendar" hx-swap="outerHTML">5</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3731
- id="calendar-day-6" aria-label="Friday, November 6, 2026" aria-pressed="false"
3732
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-06" hx-target="closest .mero-calendar" hx-swap="outerHTML">6</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3733
- id="calendar-day-7" aria-label="Saturday, November 7, 2026" aria-pressed="false"
3734
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-07" hx-target="closest .mero-calendar" hx-swap="outerHTML">7</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3735
- id="calendar-day-8" aria-label="Sunday, November 8, 2026" aria-pressed="false"
3736
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-08" hx-target="closest .mero-calendar" hx-swap="outerHTML">8</button></td></tr>
3997
+ id="calendar-day-7" aria-label="Monday, December 7, 2026" aria-pressed="false"
3998
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-07" hx-target="closest .mero-calendar" hx-swap="outerHTML">7</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3999
+ id="calendar-day-8" aria-label="Tuesday, December 8, 2026" aria-pressed="false"
4000
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-08" hx-target="closest .mero-calendar" hx-swap="outerHTML">8</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4001
+ id="calendar-day-9" aria-label="Wednesday, December 9, 2026" aria-pressed="false"
4002
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-09" hx-target="closest .mero-calendar" hx-swap="outerHTML">9</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4003
+ id="calendar-day-10" aria-label="Thursday, December 10, 2026" aria-pressed="false"
4004
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-10" hx-target="closest .mero-calendar" hx-swap="outerHTML">10</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4005
+ id="calendar-day-11" aria-label="Friday, December 11, 2026" aria-pressed="false"
4006
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-11" hx-target="closest .mero-calendar" hx-swap="outerHTML">11</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4007
+ id="calendar-day-12" aria-label="Saturday, December 12, 2026" aria-pressed="false"
4008
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-12" hx-target="closest .mero-calendar" hx-swap="outerHTML">12</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4009
+ id="calendar-day-13" aria-label="Sunday, December 13, 2026" aria-pressed="false"
4010
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-13" hx-target="closest .mero-calendar" hx-swap="outerHTML">13</button></td></tr>
3737
4011
  <tr><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3738
- id="calendar-day-9" aria-label="Monday, November 9, 2026" aria-pressed="false"
3739
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-09" hx-target="closest .mero-calendar" hx-swap="outerHTML">9</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3740
- id="calendar-day-10" aria-label="Tuesday, November 10, 2026" aria-pressed="false"
3741
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-10" hx-target="closest .mero-calendar" hx-swap="outerHTML">10</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3742
- id="calendar-day-11" aria-label="Wednesday, November 11, 2026" aria-pressed="false"
3743
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-11" hx-target="closest .mero-calendar" hx-swap="outerHTML">11</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3744
- id="calendar-day-12" aria-label="Thursday, November 12, 2026" aria-pressed="false"
3745
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-12" hx-target="closest .mero-calendar" hx-swap="outerHTML">12</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3746
- id="calendar-day-13" aria-label="Friday, November 13, 2026" aria-pressed="false"
3747
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-13" hx-target="closest .mero-calendar" hx-swap="outerHTML">13</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3748
- id="calendar-day-14" aria-label="Saturday, November 14, 2026" aria-pressed="false"
3749
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-14" hx-target="closest .mero-calendar" hx-swap="outerHTML">14</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3750
- id="calendar-day-15" aria-label="Sunday, November 15, 2026" aria-pressed="false"
3751
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-15" hx-target="closest .mero-calendar" hx-swap="outerHTML">15</button></td></tr>
4012
+ id="calendar-day-14" aria-label="Monday, December 14, 2026" aria-pressed="false"
4013
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-14" hx-target="closest .mero-calendar" hx-swap="outerHTML">14</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4014
+ id="calendar-day-15" aria-label="Tuesday, December 15, 2026" aria-pressed="false"
4015
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-15" hx-target="closest .mero-calendar" hx-swap="outerHTML">15</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4016
+ id="calendar-day-16" aria-label="Wednesday, December 16, 2026" aria-pressed="false"
4017
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-16" hx-target="closest .mero-calendar" hx-swap="outerHTML">16</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4018
+ id="calendar-day-17" aria-label="Thursday, December 17, 2026" aria-pressed="false"
4019
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-17" hx-target="closest .mero-calendar" hx-swap="outerHTML">17</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4020
+ id="calendar-day-18" aria-label="Friday, December 18, 2026" aria-pressed="false"
4021
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-18" hx-target="closest .mero-calendar" hx-swap="outerHTML">18</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4022
+ id="calendar-day-19" aria-label="Saturday, December 19, 2026" aria-pressed="false"
4023
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-19" hx-target="closest .mero-calendar" hx-swap="outerHTML">19</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4024
+ id="calendar-day-20" aria-label="Sunday, December 20, 2026" aria-pressed="false"
4025
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-20" hx-target="closest .mero-calendar" hx-swap="outerHTML">20</button></td></tr>
3752
4026
  <tr><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3753
- id="calendar-day-16" aria-label="Monday, November 16, 2026" aria-pressed="false"
3754
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-16" hx-target="closest .mero-calendar" hx-swap="outerHTML">16</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3755
- id="calendar-day-17" aria-label="Tuesday, November 17, 2026" aria-pressed="false"
3756
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-17" hx-target="closest .mero-calendar" hx-swap="outerHTML">17</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3757
- id="calendar-day-18" aria-label="Wednesday, November 18, 2026" aria-pressed="false"
3758
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-18" hx-target="closest .mero-calendar" hx-swap="outerHTML">18</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3759
- id="calendar-day-19" aria-label="Thursday, November 19, 2026" aria-pressed="false"
3760
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-19" hx-target="closest .mero-calendar" hx-swap="outerHTML">19</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3761
- id="calendar-day-20" aria-label="Friday, November 20, 2026" aria-pressed="false"
3762
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-20" hx-target="closest .mero-calendar" hx-swap="outerHTML">20</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3763
- id="calendar-day-21" aria-label="Saturday, November 21, 2026" aria-pressed="false"
3764
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-21" hx-target="closest .mero-calendar" hx-swap="outerHTML">21</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3765
- id="calendar-day-22" aria-label="Sunday, November 22, 2026" aria-pressed="false"
3766
- 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>
4027
+ id="calendar-day-21" aria-label="Monday, December 21, 2026" aria-pressed="false"
4028
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-21" hx-target="closest .mero-calendar" hx-swap="outerHTML">21</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4029
+ id="calendar-day-22" aria-label="Tuesday, December 22, 2026" aria-pressed="false"
4030
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-22" hx-target="closest .mero-calendar" hx-swap="outerHTML">22</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4031
+ id="calendar-day-23" aria-label="Wednesday, December 23, 2026" aria-pressed="false"
4032
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-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"
4033
+ id="calendar-day-24" aria-label="Thursday, December 24, 2026" aria-pressed="false"
4034
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-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"
4035
+ id="calendar-day-25" aria-label="Friday, December 25, 2026" aria-pressed="false"
4036
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-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"
4037
+ id="calendar-day-26" aria-label="Saturday, December 26, 2026" aria-pressed="false"
4038
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-26" hx-target="closest .mero-calendar" hx-swap="outerHTML">26</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4039
+ id="calendar-day-27" aria-label="Sunday, December 27, 2026" aria-pressed="false"
4040
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-27" hx-target="closest .mero-calendar" hx-swap="outerHTML">27</button></td></tr>
3767
4041
  <tr><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3768
- id="calendar-day-23" aria-label="Monday, November 23, 2026" aria-pressed="false"
3769
- 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"
3770
- id="calendar-day-24" aria-label="Tuesday, November 24, 2026" aria-pressed="false"
3771
- 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"
3772
- id="calendar-day-25" aria-label="Wednesday, November 25, 2026" aria-pressed="false"
3773
- 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"
3774
- id="calendar-day-26" aria-label="Thursday, November 26, 2026" aria-pressed="false"
3775
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-26" hx-target="closest .mero-calendar" hx-swap="outerHTML">26</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3776
- id="calendar-day-27" aria-label="Friday, November 27, 2026" aria-pressed="false" aria-current="date"
3777
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-27" hx-target="closest .mero-calendar" hx-swap="outerHTML">27</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3778
- id="calendar-day-28" aria-label="Saturday, November 28, 2026" aria-pressed="false"
3779
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-28" hx-target="closest .mero-calendar" hx-swap="outerHTML">28</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3780
- id="calendar-day-29" aria-label="Sunday, November 29, 2026" aria-pressed="false"
3781
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-29" hx-target="closest .mero-calendar" hx-swap="outerHTML">29</button></td></tr>
3782
- <tr><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3783
- id="calendar-day-30" aria-label="Monday, November 30, 2026" aria-pressed="false"
3784
- hx-get="/demo/catalog/calendar?month=2026-11&amp;selected=2026-11-30" hx-target="closest .mero-calendar" hx-swap="outerHTML">30</button></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></tbody>
4042
+ id="calendar-day-28" aria-label="Monday, December 28, 2026" aria-pressed="false"
4043
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-28" hx-target="closest .mero-calendar" hx-swap="outerHTML">28</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4044
+ id="calendar-day-29" aria-label="Tuesday, December 29, 2026" aria-pressed="false"
4045
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-29" hx-target="closest .mero-calendar" hx-swap="outerHTML">29</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4046
+ id="calendar-day-30" aria-label="Wednesday, December 30, 2026" aria-pressed="false"
4047
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-30" hx-target="closest .mero-calendar" hx-swap="outerHTML">30</button></td><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
4048
+ id="calendar-day-31" aria-label="Thursday, December 31, 2026" aria-pressed="false"
4049
+ hx-get="/demo/catalog/calendar?month=2026-12&amp;selected=2026-12-31" hx-target="closest .mero-calendar" hx-swap="outerHTML">31</button></td><td></td><td></td><td></td></tr></tbody>
3785
4050
  </table>
3786
4051
  <p class="mero-description" role="status">Choose a day.</p>
3787
4052
  </div>
@@ -3790,7 +4055,7 @@ Template
3790
4055
 
3791
4056
  # Date Field
3792
4057
 
3793
- Mero UI 1.0.0 · Date and time
4058
+ Mero UI 1.2.0 · Date and time
3794
4059
 
3795
4060
  Enter a calendar date in the system’s preferred format.
3796
4061
 
@@ -3817,7 +4082,7 @@ Template
3817
4082
 
3818
4083
  # Date Picker
3819
4084
 
3820
- Mero UI 1.0.0 · Date and time
4085
+ Mero UI 1.2.0 · Date and time
3821
4086
 
3822
4087
  Choose a date with the browser’s calendar picker and native constraints.
3823
4088
 
@@ -3846,7 +4111,7 @@ Template
3846
4111
 
3847
4112
  # Date Range Picker
3848
4113
 
3849
- Mero UI 1.0.0 · Date and time
4114
+ Mero UI 1.2.0 · Date and time
3850
4115
 
3851
4116
  Collect the start and end dates of a range.
3852
4117
 
@@ -3885,7 +4150,7 @@ Template
3885
4150
 
3886
4151
  # Range Calendar
3887
4152
 
3888
- Mero UI 1.0.0 · Date and time
4153
+ Mero UI 1.2.0 · Date and time
3889
4154
 
3890
4155
  Build a range with two native calendar controls.
3891
4156
 
@@ -3924,7 +4189,7 @@ Template
3924
4189
 
3925
4190
  # Time Field
3926
4191
 
3927
- Mero UI 1.0.0 · Date and time
4192
+ Mero UI 1.2.0 · Date and time
3928
4193
 
3929
4194
  Choose a wall-clock time without a timezone conversion.
3930
4195
 
@@ -3953,7 +4218,7 @@ Template
3953
4218
 
3954
4219
  # Accordion
3955
4220
 
3956
- Mero UI 1.0.0 · Navigation
4221
+ Mero UI 1.2.0 · Navigation
3957
4222
 
3958
4223
  Disclose one section at a time using grouped native details.
3959
4224
 
@@ -3983,7 +4248,7 @@ Template
3983
4248
 
3984
4249
  # Breadcrumbs
3985
4250
 
3986
- Mero UI 1.0.0 · Navigation
4251
+ Mero UI 1.2.0 · Navigation
3987
4252
 
3988
4253
  Show the user’s current location and its parent pages.
3989
4254
 
@@ -4010,7 +4275,7 @@ Template
4010
4275
 
4011
4276
  # Disclosure
4012
4277
 
4013
- Mero UI 1.0.0 · Navigation
4278
+ Mero UI 1.2.0 · Navigation
4014
4279
 
4015
4280
  Reveal a single block of supplementary information.
4016
4281
 
@@ -4034,7 +4299,7 @@ Template
4034
4299
 
4035
4300
  # Disclosure Group
4036
4301
 
4037
- Mero UI 1.0.0 · Navigation
4302
+ Mero UI 1.2.0 · Navigation
4038
4303
 
4039
4304
  Present a collection of independently expandable sections.
4040
4305
 
@@ -4064,7 +4329,7 @@ Template
4064
4329
 
4065
4330
  # Link
4066
4331
 
4067
- Mero UI 1.0.0 · Navigation
4332
+ Mero UI 1.2.0 · Navigation
4068
4333
 
4069
4334
  Navigate to a real URL with native link semantics.
4070
4335
 
@@ -4085,7 +4350,7 @@ Template
4085
4350
 
4086
4351
  # Pagination
4087
4352
 
4088
- Mero UI 1.0.0 · Navigation
4353
+ Mero UI 1.2.0 · Navigation
4089
4354
 
4090
4355
  Navigate between result pages with server-rendered fragments.
4091
4356
 
@@ -4124,7 +4389,7 @@ Template
4124
4389
 
4125
4390
  # Tabs
4126
4391
 
4127
- Mero UI 1.0.0 · Navigation
4392
+ Mero UI 1.2.0 · Navigation
4128
4393
 
4129
4394
  Switch between labeled panels with mouse or arrow keys.
4130
4395
 
@@ -4211,7 +4476,7 @@ Template
4211
4476
 
4212
4477
  # Alert Dialog
4213
4478
 
4214
- Mero UI 1.0.0 · Overlays
4479
+ Mero UI 1.2.0 · Overlays
4215
4480
 
4216
4481
  Ask for confirmation on a decision that calls for attention.
4217
4482
 
@@ -4246,7 +4511,7 @@ Template
4246
4511
 
4247
4512
  # Typed Confirmation
4248
4513
 
4249
- Mero UI 1.0.0 · Overlays
4514
+ Mero UI 1.2.0 · Overlays
4250
4515
 
4251
4516
  Require an exact phrase before submitting a destructive action.
4252
4517
 
@@ -4405,7 +4670,7 @@ Template
4405
4670
 
4406
4671
  # Drawer
4407
4672
 
4408
- Mero UI 1.0.0 · Overlays
4673
+ Mero UI 1.2.0 · Overlays
4409
4674
 
4410
4675
  Open a full-height edge panel for work that benefits from more room.
4411
4676
 
@@ -4520,12 +4785,14 @@ Template
4520
4785
 
4521
4786
  # Modal
4522
4787
 
4523
- Mero UI 1.0.0 · Overlays
4788
+ Mero UI 1.2.0 · Overlays
4524
4789
 
4525
4790
  Open a centered, named dialog with native focus containment.
4526
4791
 
4527
4792
  ## Default
4528
4793
 
4794
+ The dialog is 28rem wide and keeps a 1.5rem gutter on narrow screens. Add mero-dialog-wide for 44rem, the width of a sheet, or set --mero-dialog-size on the dialog for another width; the gutter stays.
4795
+
4529
4796
  Page assets
4530
4797
 
4531
4798
  ```html
@@ -4551,9 +4818,51 @@ Template
4551
4818
  </div>
4552
4819
  ````
4553
4820
 
4821
+ ## Wide
4822
+
4823
+ Give side-by-side content more room in a centered dialog.
4824
+
4825
+ Add mero-dialog-wide to a mero-dialog for 44rem. For another width, set --mero-dialog-size on the dialog itself, for example --mero-dialog-size: 36rem. Narrow screens keep Mero's 1.5rem gutter either way, so don't restate it in your own inline-size.
4826
+
4827
+ Page assets
4828
+
4829
+ ```html
4830
+ <link rel="stylesheet" href="/mero.css">
4831
+ <script defer src="/mero.js"></script>
4832
+ ```
4833
+
4834
+ Template
4835
+
4836
+ ````html
4837
+ <div class="mero-scope" data-mero-scope>
4838
+ <button class="mero-button mero-button-primary" type="button" data-mero-open="demo-wide-dialog">Restore changes</button>
4839
+ <dialog class="mero-dialog mero-dialog-wide" id="demo-wide-dialog" aria-labelledby="demo-wide-dialog-title" aria-describedby="demo-wide-dialog-description">
4840
+ <div class="mero-dialog-body mero-stack">
4841
+ <div>
4842
+ <h2 class="mero-dialog-title" id="demo-wide-dialog-title">Restore changes</h2>
4843
+ <p class="mero-description" id="demo-wide-dialog-description">Compare each field before you restore it.</p>
4844
+ </div>
4845
+ <div class="mero-table-wrap">
4846
+ <table class="mero-table mero-table-compact">
4847
+ <thead><tr><th scope="col">Field</th><th scope="col">Recorded</th><th scope="col">Current</th><th scope="col">Restore to</th></tr></thead>
4848
+ <tbody>
4849
+ <tr><th scope="row">Name</th><td>Studio North</td><td>Studio North East</td><td>Studio North</td></tr>
4850
+ <tr><th scope="row">Region</th><td>Amsterdam</td><td>Rotterdam</td><td>Amsterdam</td></tr>
4851
+ </tbody>
4852
+ </table>
4853
+ </div>
4854
+ <div class="mero-dialog-footer">
4855
+ <button class="mero-button mero-button-secondary" type="button" data-mero-close autofocus>Cancel</button>
4856
+ <button class="mero-button mero-button-primary" type="button" data-mero-close>Restore</button>
4857
+ </div>
4858
+ </div>
4859
+ </dialog>
4860
+ </div>
4861
+ ````
4862
+
4554
4863
  # Command Menu
4555
4864
 
4556
- Mero UI 1.0.0 · Overlays
4865
+ Mero UI 1.2.0 · Overlays
4557
4866
 
4558
4867
  Press Cmd or Ctrl K to search pages and actions returned by your server.
4559
4868
 
@@ -4598,7 +4907,7 @@ Template
4598
4907
 
4599
4908
  # Popover
4600
4909
 
4601
- Mero UI 1.0.0 · Overlays
4910
+ Mero UI 1.2.0 · Overlays
4602
4911
 
4603
4912
  Display contextual information using the browser’s top layer.
4604
4913
 
@@ -4627,7 +4936,7 @@ Template
4627
4936
 
4628
4937
  # Sheet
4629
4938
 
4630
- Mero UI 1.0.0 · Overlays
4939
+ Mero UI 1.2.0 · Overlays
4631
4940
 
4632
4941
  Present concise secondary content from the bottom edge.
4633
4942
 
@@ -4660,7 +4969,7 @@ Template
4660
4969
 
4661
4970
  # Toast
4662
4971
 
4663
- Mero UI 1.0.0 · Overlays
4972
+ Mero UI 1.2.0 · Overlays
4664
4973
 
4665
4974
  Announce a completed action without interrupting the current task.
4666
4975
 
@@ -4681,7 +4990,7 @@ Template
4681
4990
 
4682
4991
  # Tooltip
4683
4992
 
4684
- Mero UI 1.0.0 · Overlays
4993
+ Mero UI 1.2.0 · Overlays
4685
4994
 
4686
4995
  Show a brief hint on pointer hover or keyboard focus.
4687
4996
 
@@ -4707,7 +5016,7 @@ Template
4707
5016
 
4708
5017
  # Dropdown
4709
5018
 
4710
- Mero UI 1.0.0 · Collections
5019
+ Mero UI 1.2.0 · Collections
4711
5020
 
4712
5021
  Open a compact list of actions or destinations.
4713
5022
 
@@ -4737,7 +5046,7 @@ Template
4737
5046
 
4738
5047
  # Menu Button
4739
5048
 
4740
- Mero UI 1.0.0 · Collections
5049
+ Mero UI 1.2.0 · Collections
4741
5050
 
4742
5051
  Open row actions and move through them with the arrow keys.
4743
5052
 
@@ -4848,7 +5157,7 @@ Template
4848
5157
 
4849
5158
  # List Box
4850
5159
 
4851
- Mero UI 1.0.0 · Collections
5160
+ Mero UI 1.2.0 · Collections
4852
5161
 
4853
5162
  Present a selectable collection with arrow-key navigation.
4854
5163
 
@@ -4877,7 +5186,7 @@ Template
4877
5186
 
4878
5187
  # Tag Group
4879
5188
 
4880
- Mero UI 1.0.0 · Collections
5189
+ Mero UI 1.2.0 · Collections
4881
5190
 
4882
5191
  Display a small, labeled collection of metadata tags.
4883
5192
 
@@ -4902,7 +5211,7 @@ Template
4902
5211
 
4903
5212
  # Slider
4904
5213
 
4905
- Mero UI 1.0.0 · Controls
5214
+ Mero UI 1.2.0 · Controls
4906
5215
 
4907
5216
  Choose a value from a bounded range.
4908
5217
 
@@ -4928,7 +5237,7 @@ Template
4928
5237
 
4929
5238
  # Switch
4930
5239
 
4931
- Mero UI 1.0.0 · Controls
5240
+ Mero UI 1.2.0 · Controls
4932
5241
 
4933
5242
  Toggle one setting with a checkbox-backed switch.
4934
5243
 
@@ -5002,7 +5311,7 @@ Template
5002
5311
 
5003
5312
  # Alert
5004
5313
 
5005
- Mero UI 1.0.0 · Feedback
5314
+ Mero UI 1.2.0 · Feedback
5006
5315
 
5007
5316
  Place status or guidance alongside the content it describes.
5008
5317
 
@@ -5026,13 +5335,13 @@ Template
5026
5335
 
5027
5336
  # Empty State
5028
5337
 
5029
- Mero UI 1.0.0 · Feedback
5338
+ Mero UI 1.2.0 · Feedback
5030
5339
 
5031
5340
  Explain an empty result and give the user a relevant next action.
5032
5341
 
5033
5342
  ## Default
5034
5343
 
5035
- 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.
5344
+ 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. It draws a magnifier for an empty or unmatched result. Add mero-empty-glyph-lock when access is refused, or mero-empty-glyph-warning when something failed.
5036
5345
 
5037
5346
  Page assets
5038
5347
 
@@ -5058,7 +5367,7 @@ Template
5058
5367
 
5059
5368
  Explain why a filtered list is empty and how to widen it.
5060
5369
 
5061
- 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.
5370
+ 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. It draws a magnifier for an empty or unmatched result. Add mero-empty-glyph-lock when access is refused, or mero-empty-glyph-warning when something failed.
5062
5371
 
5063
5372
  Page assets
5064
5373
 
@@ -5079,9 +5388,61 @@ Template
5079
5388
  </div>
5080
5389
  ````
5081
5390
 
5391
+ ## Access refused
5392
+
5393
+ Explain a refused page (403) with a lock glyph.
5394
+
5395
+ 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. It draws a magnifier for an empty or unmatched result. Add mero-empty-glyph-lock when access is refused, or mero-empty-glyph-warning when something failed.
5396
+
5397
+ Page assets
5398
+
5399
+ ```html
5400
+ <link rel="stylesheet" href="/mero.css">
5401
+ <script defer src="/mero.js"></script>
5402
+ ```
5403
+
5404
+ Template
5405
+
5406
+ ````html
5407
+ <div class="mero-scope" data-mero-scope>
5408
+ <section class="mero-empty-state" aria-labelledby="empty-access-title">
5409
+ <span class="mero-empty-glyph mero-empty-glyph-lock" aria-hidden="true"></span>
5410
+ <h2 id="empty-access-title">Only administrators can open this page</h2>
5411
+ <p>You are signed in as a viewer. Ask an administrator of this workspace for access.</p>
5412
+ <a class="mero-button mero-button-outline mero-button-sm" href="/components/page-header">Back to overview</a>
5413
+ </section>
5414
+ </div>
5415
+ ````
5416
+
5417
+ ## Failure
5418
+
5419
+ Explain a failed load (500) with a warning glyph.
5420
+
5421
+ 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. It draws a magnifier for an empty or unmatched result. Add mero-empty-glyph-lock when access is refused, or mero-empty-glyph-warning when something failed.
5422
+
5423
+ Page assets
5424
+
5425
+ ```html
5426
+ <link rel="stylesheet" href="/mero.css">
5427
+ <script defer src="/mero.js"></script>
5428
+ ```
5429
+
5430
+ Template
5431
+
5432
+ ````html
5433
+ <div class="mero-scope" data-mero-scope>
5434
+ <section class="mero-empty-state" aria-labelledby="empty-failure-title">
5435
+ <span class="mero-empty-glyph mero-empty-glyph-warning" aria-hidden="true"></span>
5436
+ <h2 id="empty-failure-title">The releases could not be loaded</h2>
5437
+ <p>The server returned an error. Try again in a moment.</p>
5438
+ <a class="mero-button mero-button-outline mero-button-sm" href="/components/empty-state">Try again</a>
5439
+ </section>
5440
+ </div>
5441
+ ````
5442
+
5082
5443
  # Meter
5083
5444
 
5084
- Mero UI 1.0.0 · Feedback
5445
+ Mero UI 1.2.0 · Feedback
5085
5446
 
5086
5447
  Show a measurement between known bounds.
5087
5448
 
@@ -5108,7 +5469,7 @@ Template
5108
5469
 
5109
5470
  # Live Progress
5110
5471
 
5111
- Mero UI 1.0.0 · Feedback
5472
+ Mero UI 1.2.0 · Feedback
5112
5473
 
5113
5474
  Follow a deployment through to its final status.
5114
5475
 
@@ -5178,7 +5539,7 @@ Template
5178
5539
 
5179
5540
  # Progress Bar
5180
5541
 
5181
- Mero UI 1.0.0 · Feedback
5542
+ Mero UI 1.2.0 · Feedback
5182
5543
 
5183
5544
  Report measurable progress toward completion.
5184
5545
 
@@ -5204,7 +5565,7 @@ Template
5204
5565
 
5205
5566
  # Progress Circle
5206
5567
 
5207
- Mero UI 1.0.0 · Feedback
5568
+ Mero UI 1.2.0 · Feedback
5208
5569
 
5209
5570
  Show a completion value in a compact circular display.
5210
5571
 
@@ -5226,7 +5587,7 @@ Template
5226
5587
 
5227
5588
  # Skeleton
5228
5589
 
5229
- Mero UI 1.0.0 · Feedback
5590
+ Mero UI 1.2.0 · Feedback
5230
5591
 
5231
5592
  Reserve space for content while its HTML is loading.
5232
5593
 
@@ -5251,7 +5612,7 @@ Template
5251
5612
 
5252
5613
  # Spinner
5253
5614
 
5254
- Mero UI 1.0.0 · Feedback
5615
+ Mero UI 1.2.0 · Feedback
5255
5616
 
5256
5617
  Indicate that work is underway when the completion time is unknown.
5257
5618
 
@@ -5275,7 +5636,7 @@ Template
5275
5636
 
5276
5637
  # Card
5277
5638
 
5278
- Mero UI 1.0.0 · Layout
5639
+ Mero UI 1.2.0 · Layout
5279
5640
 
5280
5641
  Group related content and an action into one compact surface.
5281
5642
 
@@ -5355,13 +5716,13 @@ Template
5355
5716
 
5356
5717
  # Page Header
5357
5718
 
5358
- Mero UI 1.0.0 · Layout
5719
+ Mero UI 1.2.0 · Layout
5359
5720
 
5360
5721
  Open a page with its title, a short description and the page’s main actions.
5361
5722
 
5362
5723
  ## Default
5363
5724
 
5364
- 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.
5725
+ Use one per page, with the page’s h1. A page has one h1: in an app shell it is either the header bar’s title or this Page Header, not both. When the content starts with a Page Header, a title the header bar still shows is plain text, not a heading. App Layout shows both arrangements: the Default variant puts the h1 in the header bar, and the Page Header in content variant puts it here. 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.
5365
5726
 
5366
5727
  Page assets
5367
5728
 
@@ -5423,7 +5784,7 @@ Template
5423
5784
 
5424
5785
  # Separator
5425
5786
 
5426
- Mero UI 1.0.0 · Layout
5787
+ Mero UI 1.2.0 · Layout
5427
5788
 
5428
5789
  Separate related content sections using a semantic rule.
5429
5790
 
@@ -5448,7 +5809,7 @@ Template
5448
5809
 
5449
5810
  # Surface
5450
5811
 
5451
- Mero UI 1.0.0 · Layout
5812
+ Mero UI 1.2.0 · Layout
5452
5813
 
5453
5814
  Give related content a tonal background with shared theme tokens.
5454
5815
 
@@ -5472,7 +5833,7 @@ Template
5472
5833
 
5473
5834
  # Toolbar
5474
5835
 
5475
- Mero UI 1.0.0 · Layout
5836
+ Mero UI 1.2.0 · Layout
5476
5837
 
5477
5838
  Keep nearby actions aligned and grouped by purpose.
5478
5839
 
@@ -5499,7 +5860,7 @@ Template
5499
5860
 
5500
5861
  # Avatar
5501
5862
 
5502
- Mero UI 1.0.0 · Media
5863
+ Mero UI 1.2.0 · Media
5503
5864
 
5504
5865
  Represent a person with initials and an accessible name.
5505
5866
 
@@ -5523,7 +5884,7 @@ Template
5523
5884
 
5524
5885
  # Avatar Group
5525
5886
 
5526
- Mero UI 1.0.0 · Media
5887
+ Mero UI 1.2.0 · Media
5527
5888
 
5528
5889
  Show a compact cluster of people associated with a workspace.
5529
5890
 
@@ -5548,7 +5909,7 @@ Template
5548
5909
 
5549
5910
  # Autocomplete
5550
5911
 
5551
- Mero UI 1.0.0 · Pickers
5912
+ Mero UI 1.2.0 · Pickers
5552
5913
 
5553
5914
  Request matching options from the server as a user types.
5554
5915
 
@@ -5628,7 +5989,7 @@ Template
5628
5989
 
5629
5990
  # Combo Box
5630
5991
 
5631
- Mero UI 1.0.0 · Pickers
5992
+ Mero UI 1.2.0 · Pickers
5632
5993
 
5633
5994
  Filter and select from suggestions already on the page.
5634
5995
 
@@ -5708,7 +6069,7 @@ Template
5708
6069
 
5709
6070
  # Select
5710
6071
 
5711
- Mero UI 1.0.0 · Pickers
6072
+ Mero UI 1.2.0 · Pickers
5712
6073
 
5713
6074
  Choose one of a fixed set of values using the platform’s picker.
5714
6075
 
@@ -5738,7 +6099,7 @@ Template
5738
6099
 
5739
6100
  # Kbd
5740
6101
 
5741
- Mero UI 1.0.0 · Typography
6102
+ Mero UI 1.2.0 · Typography
5742
6103
 
5743
6104
  Format a keyboard shortcut with native semantics.
5744
6105
 
@@ -5790,7 +6151,7 @@ Template
5790
6151
 
5791
6152
  # Typography
5792
6153
 
5793
- Mero UI 1.0.0 · Typography
6154
+ Mero UI 1.2.0 · Typography
5794
6155
 
5795
6156
  Apply the type scale to semantic content.
5796
6157
 
@@ -5838,7 +6199,7 @@ Template
5838
6199
 
5839
6200
  # Badge
5840
6201
 
5841
- Mero UI 1.0.0 · Data display
6202
+ Mero UI 1.2.0 · Data display
5842
6203
 
5843
6204
  Label a status using text and a semantic tone.
5844
6205
 
@@ -5863,7 +6224,7 @@ Template
5863
6224
 
5864
6225
  # Chip
5865
6226
 
5866
- Mero UI 1.0.0 · Data display
6227
+ Mero UI 1.2.0 · Data display
5867
6228
 
5868
6229
  Display a lightweight label for an attribute or filter value.
5869
6230
 
@@ -5884,7 +6245,7 @@ Template
5884
6245
 
5885
6246
  # Description List
5886
6247
 
5887
- Mero UI 1.0.0 · Data display
6248
+ Mero UI 1.2.0 · Data display
5888
6249
 
5889
6250
  Show a record’s fields as label and value pairs.
5890
6251
 
@@ -5913,7 +6274,7 @@ Template
5913
6274
 
5914
6275
  # Table
5915
6276
 
5916
- Mero UI 1.0.0 · Data display
6277
+ Mero UI 1.2.0 · Data display
5917
6278
 
5918
6279
  Show comparable records in a native table with column headers.
5919
6280
 
@@ -6000,7 +6361,7 @@ Template
6000
6361
 
6001
6362
  # Sortable Table
6002
6363
 
6003
- Mero UI 1.0.0 · Data display
6364
+ Mero UI 1.2.0 · Data display
6004
6365
 
6005
6366
  Sort server-rendered rows from the column headers and open a row from anywhere in it.
6006
6367
 
@@ -6302,7 +6663,7 @@ Template
6302
6663
 
6303
6664
  # Filter Chips
6304
6665
 
6305
- Mero UI 1.0.0 · Data display
6666
+ Mero UI 1.2.0 · Data display
6306
6667
 
6307
6668
  Add filters from a menu, see them as chips and remove them one at a time. The URL keeps the state.
6308
6669
 
@@ -6450,7 +6811,7 @@ Template
6450
6811
 
6451
6812
  # Color Area
6452
6813
 
6453
- Mero UI 1.0.0 · Colors
6814
+ Mero UI 1.2.0 · Colors
6454
6815
 
6455
6816
  Open a browser-managed color surface and submit the selected color.
6456
6817
 
@@ -6479,7 +6840,7 @@ Template
6479
6840
 
6480
6841
  # Color Field
6481
6842
 
6482
- Mero UI 1.0.0 · Colors
6843
+ Mero UI 1.2.0 · Colors
6483
6844
 
6484
6845
  Enter a six-digit hex value directly in a text field.
6485
6846
 
@@ -6508,7 +6869,7 @@ Template
6508
6869
 
6509
6870
  # Color Picker
6510
6871
 
6511
- Mero UI 1.0.0 · Colors
6872
+ Mero UI 1.2.0 · Colors
6512
6873
 
6513
6874
  Choose a color using the native picker UI.
6514
6875
 
@@ -6535,7 +6896,7 @@ Template
6535
6896
 
6536
6897
  # Color Slider
6537
6898
 
6538
- Mero UI 1.0.0 · Colors
6899
+ Mero UI 1.2.0 · Colors
6539
6900
 
6540
6901
  Adjust a hue along the color spectrum.
6541
6902
 
@@ -6565,7 +6926,7 @@ Template
6565
6926
 
6566
6927
  # Color Swatch
6567
6928
 
6568
- Mero UI 1.0.0 · Colors
6929
+ Mero UI 1.2.0 · Colors
6569
6930
 
6570
6931
  Show a color with its human-readable label.
6571
6932
 
@@ -6590,7 +6951,7 @@ Template
6590
6951
 
6591
6952
  # Scroll Shadow
6592
6953
 
6593
- Mero UI 1.0.0 · Utilities
6954
+ Mero UI 1.2.0 · Utilities
6594
6955
 
6595
6956
  Expose a scrollable region with a visual cue that more content is available.
6596
6957
 
@@ -6620,7 +6981,7 @@ Template
6620
6981
 
6621
6982
  # Visually Hidden
6622
6983
 
6623
- Mero UI 1.0.0 · Utilities
6984
+ Mero UI 1.2.0 · Utilities
6624
6985
 
6625
6986
  Give screen readers context that the visible text leaves implied.
6626
6987
 
@@ -6646,7 +7007,7 @@ Template
6646
7007
 
6647
7008
  # Join
6648
7009
 
6649
- Mero UI 1.0.0 · Composition
7010
+ Mero UI 1.2.0 · Composition
6650
7011
 
6651
7012
  Connect related controls with a shared outline.
6652
7013
 
@@ -6669,7 +7030,7 @@ Template
6669
7030
 
6670
7031
  # Menu
6671
7032
 
6672
- Mero UI 1.0.0 · Composition
7033
+ Mero UI 1.2.0 · Composition
6673
7034
 
6674
7035
  Group destinations with an active page and section labels.
6675
7036
 
@@ -6692,7 +7053,7 @@ Template
6692
7053
 
6693
7054
  # Hero
6694
7055
 
6695
- Mero UI 1.0.0 · Composition
7056
+ Mero UI 1.2.0 · Composition
6696
7057
 
6697
7058
  Pair a product introduction with a single destination.
6698
7059
 
@@ -6717,7 +7078,7 @@ Template
6717
7078
 
6718
7079
  # Footer
6719
7080
 
6720
- Mero UI 1.0.0 · Composition
7081
+ Mero UI 1.2.0 · Composition
6721
7082
 
6722
7083
  Close a workspace with a small group of navigation links.
6723
7084
 
@@ -6740,7 +7101,7 @@ Template
6740
7101
 
6741
7102
  # Theme Controller
6742
7103
 
6743
- Mero UI 1.0.0 · Composition
7104
+ Mero UI 1.2.0 · Composition
6744
7105
 
6745
7106
  Set a theme inside one section of a page.
6746
7107
 
@@ -6763,7 +7124,7 @@ Template
6763
7124
 
6764
7125
  # Validator
6765
7126
 
6766
- Mero UI 1.0.0 · Composition
7127
+ Mero UI 1.2.0 · Composition
6767
7128
 
6768
7129
  Show a native field constraint and its correction with zero JavaScript.
6769
7130
 
@@ -6809,7 +7170,7 @@ Template
6809
7170
 
6810
7171
  # Aura
6811
7172
 
6812
- Mero UI 1.0.0 · Display utilities
7173
+ Mero UI 1.2.0 · Display utilities
6813
7174
 
6814
7175
  Frame an interactive surface with a subtle moving highlight.
6815
7176
 
@@ -6832,7 +7193,7 @@ Template
6832
7193
 
6833
7194
  # Countdown
6834
7195
 
6835
- Mero UI 1.0.0 · Display utilities
7196
+ Mero UI 1.2.0 · Display utilities
6836
7197
 
6837
7198
  Show the time remaining until the next daily shipping cutoff.
6838
7199
 
@@ -6857,7 +7218,7 @@ Template
6857
7218
 
6858
7219
  # Indicator
6859
7220
 
6860
- Mero UI 1.0.0 · Display utilities
7221
+ Mero UI 1.2.0 · Display utilities
6861
7222
 
6862
7223
  Anchor a quantity to an icon or action.
6863
7224
 
@@ -6880,7 +7241,7 @@ Template
6880
7241
 
6881
7242
  # Mask
6882
7243
 
6883
- Mero UI 1.0.0 · Display utilities
7244
+ Mero UI 1.2.0 · Display utilities
6884
7245
 
6885
7246
  Crop an image while keeping its alternative text.
6886
7247
 
@@ -6905,7 +7266,7 @@ Template
6905
7266
 
6906
7267
  # Stack
6907
7268
 
6908
- Mero UI 1.0.0 · Display utilities
7269
+ Mero UI 1.2.0 · Display utilities
6909
7270
 
6910
7271
  Layer related previews while keeping the current item legible.
6911
7272
 
@@ -6930,7 +7291,7 @@ Template
6930
7291
 
6931
7292
  # Status
6932
7293
 
6933
- Mero UI 1.0.0 · Display utilities
7294
+ Mero UI 1.2.0 · Display utilities
6934
7295
 
6935
7296
  Show system status with a label and a visual marker.
6936
7297
 
@@ -6953,7 +7314,7 @@ Template
6953
7314
 
6954
7315
  # Swap
6955
7316
 
6956
- Mero UI 1.0.0 · Display utilities
7317
+ Mero UI 1.2.0 · Display utilities
6957
7318
 
6958
7319
  Switch between two labels or icons on a native control.
6959
7320
 
@@ -6976,7 +7337,7 @@ Template
6976
7337
 
6977
7338
  # Text Rotate
6978
7339
 
6979
- Mero UI 1.0.0 · Display utilities
7340
+ Mero UI 1.2.0 · Display utilities
6980
7341
 
6981
7342
  Rotate through short messages with explicit playback controls.
6982
7343
 
@@ -6999,7 +7360,7 @@ Template
6999
7360
 
7000
7361
  # Browser Mockup
7001
7362
 
7002
- Mero UI 1.0.0 · Mockups
7363
+ Mero UI 1.2.0 · Mockups
7003
7364
 
7004
7365
  Present a site preview inside a compact browser frame.
7005
7366
 
@@ -7024,7 +7385,7 @@ Template
7024
7385
 
7025
7386
  # Phone Mockup
7026
7387
 
7027
- Mero UI 1.0.0 · Mockups
7388
+ Mero UI 1.2.0 · Mockups
7028
7389
 
7029
7390
  Frame a mobile product screen.
7030
7391
 
@@ -7049,7 +7410,7 @@ Template
7049
7410
 
7050
7411
  # Window Mockup
7051
7412
 
7052
- Mero UI 1.0.0 · Mockups
7413
+ Mero UI 1.2.0 · Mockups
7053
7414
 
7054
7415
  Place a desktop tool inside a labelled window.
7055
7416
 
@@ -7072,7 +7433,7 @@ Template
7072
7433
 
7073
7434
  # Code Mockup
7074
7435
 
7075
- Mero UI 1.0.0 · Mockups
7436
+ Mero UI 1.2.0 · Mockups
7076
7437
 
7077
7438
  Present a terminal command and its output.
7078
7439