@rubenlangeweg/mero-ui 0.9.0 → 1.0.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 (221) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +30 -12
  3. package/agent-docs/components/accordion.md +1 -1
  4. package/agent-docs/components/action-bar.md +1 -1
  5. package/agent-docs/components/action-button.md +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 +1 -1
  10. package/agent-docs/components/area-chart.md +1 -1
  11. package/agent-docs/components/aura.md +1 -1
  12. package/agent-docs/components/autocomplete.md +1 -1
  13. package/agent-docs/components/avatar-group.md +1 -1
  14. package/agent-docs/components/avatar.md +1 -1
  15. package/agent-docs/components/badge.md +1 -1
  16. package/agent-docs/components/bar-chart.md +1 -1
  17. package/agent-docs/components/breadcrumbs.md +1 -1
  18. package/agent-docs/components/browser-mockup.md +1 -1
  19. package/agent-docs/components/button-group.md +1 -1
  20. package/agent-docs/components/button.md +1 -1
  21. package/agent-docs/components/calendar.md +3 -3
  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 +41 -1
  51. package/agent-docs/components/command-menu.md +1 -1
  52. package/agent-docs/components/command.md +16 -13
  53. package/agent-docs/components/composed-chart.md +1 -1
  54. package/agent-docs/components/context-menu.md +1 -1
  55. package/agent-docs/components/countdown.md +1 -1
  56. package/agent-docs/components/data-grid.md +1 -1
  57. package/agent-docs/components/date-field.md +1 -1
  58. package/agent-docs/components/date-picker.md +1 -1
  59. package/agent-docs/components/date-range-picker.md +1 -1
  60. package/agent-docs/components/description-list.md +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 +1 -1
  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-input.md +1 -1
  77. package/agent-docs/components/file-tree.md +1 -1
  78. package/agent-docs/components/filter-chips.md +1 -1
  79. package/agent-docs/components/floating-toc.md +1 -1
  80. package/agent-docs/components/footer.md +1 -1
  81. package/agent-docs/components/form.md +1 -1
  82. package/agent-docs/components/hero.md +1 -1
  83. package/agent-docs/components/holo-card.md +1 -1
  84. package/agent-docs/components/hover-card.md +1 -1
  85. package/agent-docs/components/hover-gallery.md +1 -1
  86. package/agent-docs/components/indicator.md +1 -1
  87. package/agent-docs/components/inline-select.md +1 -1
  88. package/agent-docs/components/input-group.md +1 -1
  89. package/agent-docs/components/input-otp.md +1 -1
  90. package/agent-docs/components/input.md +1 -1
  91. package/agent-docs/components/item-card-group.md +1 -1
  92. package/agent-docs/components/item-card.md +1 -1
  93. package/agent-docs/components/join.md +1 -1
  94. package/agent-docs/components/joined-filter.md +1 -1
  95. package/agent-docs/components/kanban.md +1 -1
  96. package/agent-docs/components/kbd.md +1 -1
  97. package/agent-docs/components/kpi-group.md +1 -1
  98. package/agent-docs/components/kpi.md +1 -1
  99. package/agent-docs/components/label.md +1 -1
  100. package/agent-docs/components/line-chart.md +1 -1
  101. package/agent-docs/components/link.md +1 -1
  102. package/agent-docs/components/list-box.md +1 -1
  103. package/agent-docs/components/list-view.md +1 -1
  104. package/agent-docs/components/live-progress.md +1 -1
  105. package/agent-docs/components/map.md +1 -1
  106. package/agent-docs/components/markdown.md +1 -1
  107. package/agent-docs/components/mask.md +1 -1
  108. package/agent-docs/components/megamenu.md +1 -1
  109. package/agent-docs/components/menu-button.md +1 -1
  110. package/agent-docs/components/menu.md +1 -1
  111. package/agent-docs/components/meter.md +1 -1
  112. package/agent-docs/components/modal.md +1 -1
  113. package/agent-docs/components/native-select.md +1 -1
  114. package/agent-docs/components/navbar.md +1 -1
  115. package/agent-docs/components/number-field.md +1 -1
  116. package/agent-docs/components/number-stepper.md +1 -1
  117. package/agent-docs/components/number-value.md +1 -1
  118. package/agent-docs/components/page-header.md +1 -1
  119. package/agent-docs/components/pagination.md +1 -1
  120. package/agent-docs/components/phone-mockup.md +1 -1
  121. package/agent-docs/components/pie-chart.md +1 -1
  122. package/agent-docs/components/popover.md +1 -1
  123. package/agent-docs/components/pressable-feedback.md +1 -1
  124. package/agent-docs/components/progress-bar.md +1 -1
  125. package/agent-docs/components/progress-circle.md +1 -1
  126. package/agent-docs/components/prompt-input.md +1 -1
  127. package/agent-docs/components/prompt-suggestion.md +1 -1
  128. package/agent-docs/components/radar-chart.md +1 -1
  129. package/agent-docs/components/radial-chart.md +1 -1
  130. package/agent-docs/components/radio-button-group.md +1 -1
  131. package/agent-docs/components/radio-group.md +1 -1
  132. package/agent-docs/components/range-calendar.md +1 -1
  133. package/agent-docs/components/rating.md +1 -1
  134. package/agent-docs/components/resizable.md +1 -1
  135. package/agent-docs/components/rich-text-editor.md +1 -1
  136. package/agent-docs/components/scroll-shadow.md +1 -1
  137. package/agent-docs/components/search-field.md +1 -1
  138. package/agent-docs/components/segment.md +1 -1
  139. package/agent-docs/components/select.md +1 -1
  140. package/agent-docs/components/separator.md +1 -1
  141. package/agent-docs/components/sheet.md +1 -1
  142. package/agent-docs/components/sidebar.md +1 -1
  143. package/agent-docs/components/skeleton.md +1 -1
  144. package/agent-docs/components/slider.md +1 -1
  145. package/agent-docs/components/sortable-table.md +1 -1
  146. package/agent-docs/components/spinner.md +1 -1
  147. package/agent-docs/components/stack.md +1 -1
  148. package/agent-docs/components/status.md +1 -1
  149. package/agent-docs/components/stepper.md +1 -1
  150. package/agent-docs/components/surface.md +1 -1
  151. package/agent-docs/components/swap.md +1 -1
  152. package/agent-docs/components/switch.md +1 -1
  153. package/agent-docs/components/table.md +1 -1
  154. package/agent-docs/components/tabs.md +1 -1
  155. package/agent-docs/components/tag-group.md +1 -1
  156. package/agent-docs/components/text-area.md +1 -1
  157. package/agent-docs/components/text-field.md +1 -1
  158. package/agent-docs/components/text-rotate.md +1 -1
  159. package/agent-docs/components/text-shimmer.md +1 -1
  160. package/agent-docs/components/theme-controller.md +1 -1
  161. package/agent-docs/components/time-field.md +1 -1
  162. package/agent-docs/components/timeline.md +1 -1
  163. package/agent-docs/components/toast.md +1 -1
  164. package/agent-docs/components/toggle-button-group.md +1 -1
  165. package/agent-docs/components/toggle-button.md +1 -1
  166. package/agent-docs/components/toolbar.md +1 -1
  167. package/agent-docs/components/tooltip.md +1 -1
  168. package/agent-docs/components/trend-chip.md +1 -1
  169. package/agent-docs/components/typed-confirmation.md +1 -1
  170. package/agent-docs/components/typography.md +1 -1
  171. package/agent-docs/components/validator.md +25 -4
  172. package/agent-docs/components/visually-hidden.md +1 -1
  173. package/agent-docs/components/widget.md +1 -1
  174. package/agent-docs/components/window-mockup.md +1 -1
  175. package/agent-docs/llms-components.txt +254 -190
  176. package/agent-docs/llms-full.txt +327 -215
  177. package/agent-docs/llms-patterns.txt +74 -26
  178. package/agent-docs/llms.txt +3 -3
  179. package/bin/mero-ui.mjs +505 -0
  180. package/dist/manifest.json +230 -0
  181. package/dist/ui/mero-collections.min.css +3 -0
  182. package/dist/ui/mero-collections.min.js +2 -0
  183. package/dist/ui/mero-composition.min.css +3 -0
  184. package/dist/ui/mero-composition.min.js +2 -0
  185. package/dist/ui/mero-forms.min.js +2 -0
  186. package/dist/ui/mero-gallery.min.css +3 -0
  187. package/dist/ui/mero-gallery.min.js +2 -0
  188. package/dist/ui/mero-insights.min.css +3 -0
  189. package/dist/ui/mero-insights.min.js +2 -0
  190. package/dist/ui/mero-layouts.min.css +3 -0
  191. package/dist/ui/mero-live.min.js +2 -0
  192. package/dist/ui/mero-themes.min.css +3 -0
  193. package/dist/ui/mero-workspace.min.css +3 -0
  194. package/dist/ui/mero-workspace.min.js +4 -0
  195. package/dist/ui/mero.min.css +3 -0
  196. package/dist/ui/mero.min.js +2 -0
  197. package/package.json +24 -5
  198. package/ui/insight-charts.d.ts +20 -0
  199. package/ui/insight-charts.mjs +1 -1
  200. package/ui/insight-markdown.d.ts +2 -0
  201. package/ui/insight-markdown.mjs +2 -2
  202. package/ui/mero-collections.css +3 -1
  203. package/ui/mero-collections.js +1 -1
  204. package/ui/mero-composition.css +3 -1
  205. package/ui/mero-composition.js +1 -11
  206. package/ui/mero-forms.js +383 -71
  207. package/ui/mero-gallery.css +4 -16
  208. package/ui/mero-gallery.js +1 -1
  209. package/ui/mero-insights.css +3 -1
  210. package/ui/mero-insights.js +2 -2
  211. package/ui/mero-layouts.css +3 -1
  212. package/ui/mero-live.js +68 -10
  213. package/ui/mero-themes.css +186 -0
  214. package/ui/mero-workspace.css +7 -6
  215. package/ui/mero-workspace.js +7 -26
  216. package/ui/mero.css +104 -16
  217. package/ui/mero.d.ts +162 -0
  218. package/ui/mero.js +440 -61
  219. package/ui/mero-inventory.css +0 -182
  220. package/ui/mero-inventory.js +0 -56
  221. package/ui/studio-lamp.webp +0 -0
@@ -1,4 +1,4 @@
1
- # Mero UI 0.9.0 integration patterns
1
+ # Mero UI 1.0.0 integration patterns
2
2
 
3
3
  ## Install a component
4
4
 
@@ -10,9 +10,9 @@ Replace demonstration URLs with your routes and render user data with your templ
10
10
 
11
11
  For a validating data-mero-form, return the filled form with HTTP 422 and mark the invalid field. For Typed Confirmation, keep the original form on a successful save using the response headers under mero:form-saved below.
12
12
 
13
- ## Apply a theme
13
+ ## Apply a theme and coexist with Tailwind CSS v4
14
14
 
15
- Load your --mero-* token overrides after mero.css. Set data-theme="light" or data-theme="dark" on the document or section. Check both themes and keyboard focus after the fragment changes.
15
+ Load optional ui/mero-themes.css after mero.css for composable presets (cobalt, fern, clay, editorial) and structural modifiers (compact, flat, crisp) alongside light, dark or auto on data-theme (e.g. data-theme="cobalt dark compact"), or override --mero-* tokens including --mero-border-width and --mero-depth. For zero-JS constraint validation hints, add .mero-validator on an input/select/textarea with a sibling .mero-validator-hint. When using Tailwind CSS v4 alongside Mero, declare `@layer theme, base, mero, components, utilities;` before importing Tailwind and mero.css.
16
16
 
17
17
  ## Events Mero sends
18
18
 
@@ -20,9 +20,9 @@ Events bubble to the document.
20
20
 
21
21
  ### mero:selection
22
22
 
23
- Fires on the `data-mero-listbox` element when a person chooses an option.
23
+ Fires on a `data-mero-listbox` when a person chooses an option, or on a `data-mero-multiselect` when a chip is added or removed.
24
24
 
25
- event.detail: `{ value, option }`. `value` is the option’s `data-value`, or its text when that is absent. `option` is the chosen element.
25
+ event.detail: `{ value, option } or { values, added, removed, option }`. On a listbox, `value` is the option’s `data-value` or trimmed text. On a multi-select, `values` is the array of selected values and `added` / `removed` name the change.
26
26
 
27
27
  ### mero:tab
28
28
 
@@ -36,15 +36,45 @@ Fires on a `data-mero-toggle` button after a click flips its `aria-pressed`.
36
36
 
37
37
  event.detail: `{ pressed }`. `pressed` is the new state, a boolean.
38
38
 
39
+ ### mero:select
40
+
41
+ Fires on a combobox input after a person selects an option and Mero writes the value and fires `change`.
42
+
43
+ event.detail: `{ value, label, option }`. `value` is the option’s `data-value` or trimmed text, `label` is its trimmed text and `option` is the chosen element.
44
+
45
+ ### mero:dialog
46
+
47
+ Fires on a `<dialog>` when Mero opens it and when any `<dialog>` closes.
48
+
49
+ event.detail: `{ open, dialog, returnValue }`. `open` is a boolean, `dialog` is the dialog element and `returnValue` is the dialog’s return value on close (empty string on open).
50
+
51
+ ### mero:peek
52
+
53
+ Fires on the `data-mero-peek` region when the row preview opens, moves to another row or closes (or on `document` if the region was removed). Swaps that keep the same row open do not repeat the event.
54
+
55
+ event.detail: `{ open, key, href, link, panel }`. `open` is a boolean, `key` is the row’s ID or link `href`, and `href`, `link` and `panel` are set while open and `null` on close.
56
+
57
+ ### mero:dirty
58
+
59
+ Fires on a `form[data-mero-dirty]` when its dirty state changes between clean and modified. Does not fire at load or from `MeroUI.init()`. Requires `mero-forms.js`.
60
+
61
+ event.detail: `{ dirty, form }`. `dirty` is a boolean and `form` is the form element.
62
+
63
+ ### mero:boost-unmatched
64
+
65
+ Fires on a boosted non-GET element (or on `document` when detached) when the server’s response does not contain the `data-mero-boost` region. Mero cancels the swap and keeps the current page instead of navigating to the action URL with GET.
66
+
67
+ event.detail: `{ source, status, method, url, text, response }`. `source` is the requesting element, `status` is the HTTP status code (or 0), `method` is the uppercase HTTP method, `url` is the final response or action URL, `text` is the raw response body and `response` is the htmx response object.
68
+
39
69
  ### mero:query
40
70
 
41
- Fires on a remote combobox input when it needs fresh options, for example an arrow key after a failed request. Add it to `hx-trigger` next to `input`. To follow the option a person chooses, listen for the native `change` event on the input, which bubbles; the value is `event.target.value`.
71
+ Fires on a remote combobox input when it needs fresh options, for example an arrow key after a failed request. Add it to `hx-trigger` next to `input`. To follow the option a person chooses, listen for `mero:select` or the native `change` event on the input, both of which bubble.
42
72
 
43
73
  ### mero:action
44
74
 
45
75
  Fires on a `data-mero-action` button or a `data-mero-form` when its request starts and when it ends, or on the document when a swap removed the element. Requires `mero-forms.js`.
46
76
 
47
- event.detail: `{ state, status, message }`. `state` is `pending`, `succeeded`, `rejected` or `unknown`. `status` and `message` are set once the request ends. `status` is 0 when no response arrived.
77
+ event.detail: `{ state, status, message, source, id }`. `state` is `pending`, `succeeded`, `rejected` or `unknown`. `source` is the originating form or button (even when detached by a swap) and `id` is its `id` or `null`. `status` and `message` are set once the request ends; `status` is 0 when no response arrived.
48
78
 
49
79
  ### mero:refresh
50
80
 
@@ -87,9 +117,9 @@ HX-Trigger: {"mero:form-saved":{"message":"Saved"}}
87
117
 
88
118
  Opens a `<dialog>` as a modal. Pass the element or its ID. Focus returns to `trigger` on close, by default the element focused when you call it.
89
119
 
90
- ### MeroUI.close(dialog, { focus, value })
120
+ ### MeroUI.close(dialog, { focus, value, preserveToasts })
91
121
 
92
- Closes an open dialog. `focus` overrides where focus returns. `value` becomes the dialog’s `returnValue`.
122
+ Closes an open dialog. `focus` overrides where focus returns. `value` becomes the dialog’s `returnValue`. Set `preserveToasts: true` to move live toasts inside the dialog to `document.body` instead of removing them.
93
123
 
94
124
  ### MeroUI.toast(message, { tone, duration, trigger })
95
125
 
@@ -97,7 +127,15 @@ Shows a notification. `tone` is `accent`, `success`, `warning` or `danger`. `dur
97
127
 
98
128
  ### MeroUI.init(root)
99
129
 
100
- Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero calls it for every htmx swap. Call it yourself for markup you insert another way.
130
+ Sets up tabs, listboxes, comboboxes, auto-opening dialogs, and—when loaded—`mero-forms.js` state helpers (`data-mero-dirty`, `data-mero-show-when`, `data-mero-confirm`) and `mero-live.js` polling inside `root`. Mero calls it for every htmx swap. Call it yourself for markup you insert another way.
131
+
132
+ ### MeroUI.cleanup(root)
133
+
134
+ 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
+
136
+ ### MeroUI.configure({ messages, locale, dialogBackdrop })
137
+
138
+ 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.
101
139
 
102
140
  ## Component attributes
103
141
 
@@ -107,6 +145,7 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
107
145
  - `data-mero-close` — On a control inside a dialog. Closes it. The value becomes the dialog’s `returnValue`.
108
146
  - `data-mero-autoopen` — On a dialog. Opens it as soon as it is on the page or swapped in.
109
147
  - `data-mero-static` — On a dialog. A click on the backdrop does not close it.
148
+ - `data-mero-dialog` — On a dialog without `.mero-dialog`. Opts the dialog into backdrop light-dismiss under the default `dialogBackdrop: "mero-only"` mode.
110
149
  - `data-mero-toast` — On a button. Shows the value as a notification on click.
111
150
  - `data-mero-tone` — With `data-mero-toast`. One of `accent`, `success`, `warning` or `danger`.
112
151
  - `data-mero-toggle` — On a button. Flips `aria-pressed` on click.
@@ -121,6 +160,10 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
121
160
  - `data-mero-combo` — Root of a combobox. Wraps the `role="combobox"` input and its options.
122
161
  - `data-mero-combo-remote` — On the combobox root when the options come from your server. Mero then leaves filtering to the response.
123
162
  - `data-mero-combo-status` — Inside a combobox. The element that receives loading and error text.
163
+ - `data-mero-multiselect` — With `data-mero-combo`. Turns a combobox into a multi-select tag picker whose selected chips submit as hidden inputs and emit `mero:selection`. See the [Combo Box](components/combo-box.md) Multi-select variant.
164
+ - `data-mero-multiselect-chips` — Inside a `data-mero-multiselect`. The list element holding selected `.mero-chip` items and their hidden inputs.
165
+ - `data-mero-multiselect-name` — On a `data-mero-multiselect`. The field `name` used for generated hidden inputs.
166
+ - `data-mero-multiselect-remove` — On a chip’s remove button inside `data-mero-multiselect`. Removes the chip, updates `aria-selected` and moves focus to a neighbour or the combobox input.
124
167
  - `data-mero-empty-option` — On the option to show when nothing matches. It cannot be selected.
125
168
  - `data-mero-active` (set by Mero) — On the option highlighted with the keyboard.
126
169
  - `data-mero-combo-pending` (set by Mero) — On the combobox input while a request for options is in flight.
@@ -131,19 +174,21 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
131
174
  - `data-mero-tooltip-dismissed` (set by Mero) — On a tooltip closed with Escape, until the pointer and focus leave it.
132
175
  - `data-mero-cell-label` — On an `aria-hidden="true"` span inside a table cell. Copy its column heading here for the card layout. Add `mero-table-cards` to the table wrapper for cards below 768 px, or `mero-table-cards-wide` for 1024 px. See the [Sortable Table](components/sortable-table.md) for the table roles and sort links.
133
176
  - `data-mero-card-hidden` — On a `th` or `td` in a `mero-table-cards` table. Hides that column in the card layout below 768 px, or 1024 px with `mero-table-cards-wide`. Put it on the column's header and on each of its cells. See the [Table](components/table?variant=Cards%20on%20phones.md).
134
- - `data-mero-command` — On a `<dialog>` holding a remote combobox. Cmd or Ctrl K opens it with an empty query, and choosing an option runs that option’s link, `hx-*` request or toast. Give the shortcut to one command menu per page, including the workspace Command. Group server results with `role="group"` and `aria-labelledby` pointing to a visible heading. Give each option a unique ID. Up and Down cross groups, Home and End reach the first and last result, and the status counts selectable options. Omit empty groups and return one disabled “No results” option when nothing matches.
177
+ - `data-mero-command` — On a `<dialog>` holding a local or remote combobox. Cmd or Ctrl K opens it with an empty query (skipping dialogs inside `[inert]` or `[hidden]` ancestors), and choosing an option runs that option’s link, `hx-*` request, copy action or toast. Give the shortcut to one command menu per page. Group server results with `role="group"` and `aria-labelledby` pointing to a visible heading. Give each option a unique ID. Up and Down cross groups, Home and End reach the first and last result, and the status counts selectable options. Omit empty groups and return one disabled “No results” option when nothing matches.
135
178
  - `data-mero-peek` — Around a table wrapper whose rows have a `.mero-row-link`. With a row link focused, Space shows the row’s `data-mero-peek-body` template in a Preview panel beside the table, or in a bottom sheet below 768 px. While it is open, Up and Down Arrow move between rows and the panel follows focus. Space or Escape closes it and focuses the row. See the [Sortable Table](components/sortable-table.md) Row peek variant.
136
179
  - `data-mero-peek-body` — On a `<template>` inside a row of a `data-mero-peek` table. Holds the server-rendered preview for that row. Give the row a stable `id` so the preview follows it through swaps; otherwise Mero matches the row link’s `href`.
137
180
  - `data-mero-peek-close` (set by Mero) — On the Close button of the Preview panel Mero adds.
138
181
  - `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`.
139
182
  - `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.
140
183
  - `data-mero-copy-message` — With `data-mero-copy` or `data-mero-copy-target`. Replaces the “Copied” notification.
141
- - `data-mero-time` — On a `<time datetime>`. Rewrites its text in the reader’s locale and time zone: `absolute` (date and time), `date`, `time` or `relative` (“5 minutes ago”, refreshed every minute, with the full date in `title`). Render the UTC time as its text for readers without scripts. See the [Typography](components/typography.md) Local time variant.
184
+ - `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
+ - `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).
142
186
  - `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.
143
187
  - `data-mero-shortcuts-toggle` — On a checkbox, switch, `menuitemcheckbox` or button. Turns single-key shortcuts off and on for every page in this browser, as WCAG 2.1.4 requires, and removes `aria-keyshortcuts` while they are off. Mero keeps its checked or pressed state in step.
144
188
  - `data-mero-focus-fallback` — On one focusable element inside an htmx swap target, or inside a `data-mero-restore-focus` container. When a swap or morph removes the focused element and leaves focus on the page body, Mero focuses the same element if it survived, else the element with its ID, else this fallback. Mero only acts when focus was inside the target as the swap began, never after the person moved focus elsewhere, and a server `autofocus` wins.
145
189
  - `data-mero-focus-manual` — On an htmx swap target, or an ancestor. Mero leaves focus after swaps inside it to your own code.
146
- - `data-mero-boost` — On an element with `hx-boost:inherited`, such as `<body>`. A selector for the region every boosted page contains. The newest boosted GET wins and older ones are aborted; boosted forms that change data are never aborted. A response without the region and without `HX-Redirect`, `HX-Location` or `HX-Refresh`, or a GET that fails without a response, becomes a full page load. When a boosted page swaps in, open dialogs other than static and alert dialogs close, and focus moves to the region unless htmx `autofocus` placed it or the person moved it during the load. See the [Drawer](components/drawer.md) Boosted navigation variant.
190
+ - `data-mero-boost` — On an element with `hx-boost:inherited`, such as `<body>`. A selector for the region every boosted page contains. Guards both boosted requests and declarative `hx-get` requests whose target is or contains the region (unless opted out with `data-mero-boost-ignore`), automatically selecting the region from full-page answers when the control omits `hx-select`. The newest GET wins and older ones are aborted; boosted forms that change data are never aborted. A guarded GET response without the region and without `HX-Redirect`, `HX-Location` or `HX-Refresh`, or a GET that fails without a response, becomes a full page load. A boosted non-GET response without the region cancels the swap, leaves the page intact and fires `mero:boost-unmatched` instead of issuing a GET to the action URL. When a guarded page swaps in, open dialogs other than static and alert dialogs close, and focus moves to the region unless htmx `autofocus` placed it or the person moved it during the load. See the [Drawer](components/drawer.md) Boosted navigation variant.
191
+ - `data-mero-boost-ignore` — On a control or ancestor inside a `data-mero-boost` container. Opts declarative `hx-get` fragment requests targeting the boosted region out of the boost guard, automatic region selection, dialog closing and full-load fallback.
147
192
  - `data-mero-pending` — On any element. Shows a `.mero-indicator` inside it, as `.htmx-request` does.
148
193
  - `data-mero-request` — With a pending state. Sets a progress cursor on the element.
149
194
 
@@ -155,7 +200,7 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
155
200
  - `data-mero-confirm-reason` — On the optional reason field. Add `required` to require a non-empty, trimmed value.
156
201
  - `data-mero-confirm-submit` — On the danger submit button. Render it disabled until the phrase and any required reason are ready.
157
202
  - `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.
158
- - `data-mero-form` — On a form that htmx submits. Disables its submit buttons while the request runs, 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.
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.
159
204
  - `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.
160
205
  - `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.
161
206
  - `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.
@@ -168,8 +213,12 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
168
213
  - `data-mero-form-error` — Inside the form. Receives the message when a request fails with a status other than 422. Send your own text in a `Mero-Form-Error` response header.
169
214
  - `data-mero-return-focus` — On the form. Selector for the element to focus after `mero:form-saved`.
170
215
  - `data-mero-fallback-focus` — On the form. Selector to focus when the return-focus element is gone.
171
- - `data-mero-show-when` — On a branch inside a form, ideally a `<fieldset>`. `field=value other` shows the branch while the form’s field has one of the values and hides and disables it otherwise, so its fields neither validate nor submit. Render the right state on the server too. See the [Fieldset](components/fieldset.md) Conditional fields variant.
172
- - `data-mero-dirty` — On a form. Keeps its submit buttons disabled until a field differs from the value the server rendered, and again once every field is back to that value.
216
+ - `data-mero-show-when` — On a branch inside a form, ideally a `<fieldset>`. `field=value other` shows the branch while the form’s field has one of the values (or `field!=value other` when it has none of them) and hides and disables it otherwise, so its fields neither validate nor submit. Render the right state on the server too. See the [Fieldset](components/fieldset.md) Conditional fields variant.
217
+ - `data-mero-show-when-keep-enabled` — With `data-mero-show-when`. Hides the branch visually without disabling its controls, so hidden fields still submit.
218
+ - `data-mero-dirty` — On a form. Keeps its submit buttons disabled until a field or `data-mero-multiselect` differs from the value the server rendered, emits `mero:dirty` on transitions, and resets its baseline after `mero:form-saved` when the form stays in the page.
219
+ - `data-mero-dirty-guard` — With `data-mero-dirty`. Prompts before boosted navigation or page unload while the form has unsaved edits. Optional value overrides the confirmation message.
220
+ - `data-mero-conflict-swap` — On a `data-mero-form`. Allows HTTP 409 responses to swap a conflict or merge replacement form (like HTTP 422) without overwriting the form error banner.
221
+ - `data-mero-conflict-focus` — On a control inside a swapped 409 conflict form. Receives focus automatically after the swap, ahead of `aria-invalid`.
173
222
  - `data-mero-close-all` — On a form in a nested dialog. A save closes the parent dialogs too.
174
223
  - `data-mero-hold` — Keeps the page while something the person cannot get back is on its way or on screen. On a `data-mero-form` or `data-mero-action` button it holds while the request is pending. On a `data-mero-ephemeral` element it holds while the element has content. While held, Mero cancels boosted navigation, history restores and requests whose target is the body or contains the held element, undoes Back to another htmx history entry and asks before the page unloads. Requests from controls inside the held content still run. The value is the warning shown as a toast; empty uses a generic text. See the [Form](components/form.md) One-time credential variant.
175
224
  - `data-mero-ephemeral` — On the element that receives a one-time secret, such as a new API token. Mero empties it when its dialog closes, when a `data-mero-ephemeral-dismiss` button inside it is activated, and when the page is hidden, so the back-forward cache cannot show it again. Add `data-mero-hold` to keep the page while it has content.
@@ -231,8 +280,7 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
231
280
  ### Workspace · mero-workspace.js
232
281
 
233
282
  - `data-mero-ws-shell` — Root of an app shell. A `data-mero-ws-open` button inside opens its dialog.
234
- - `data-mero-ws-open` — On a button inside a shell, command menu or emoji picker. Opens that component’s dialog.
235
- - `data-mero-ws-command` — Root of a command menu. Cmd or Ctrl and K opens it, and typing filters its actions.
283
+ - `data-mero-ws-open` — On a button inside a shell or emoji picker. Opens that component’s dialog.
236
284
  - `data-mero-ws-emoji` — Root of an emoji picker. Choosing an emoji fills its hidden input and closes the dialog.
237
285
  - `data-mero-ws-context` — Root of a context menu. A right click, the menu key or Shift and F10 on a row opens its `role="menu"`.
238
286
  - `data-mero-ws-context-open` — On the button that opens the same context menu.
@@ -259,7 +307,6 @@ Sets up tabs, listboxes, comboboxes and auto-opening dialogs inside `root`. Mero
259
307
  - `data-mero-theme-scope` — On a section. Receives the theme chosen in the picker inside it.
260
308
  - `data-mero-theme-picker` — On a select or radio. Its value becomes the scope’s `data-theme`.
261
309
  - `data-mero-cutoff-hour` — Around a `<time>`. Counts down to that hour, 0 to 23 in UTC.
262
- - `data-mero-check-form` — On the catalog’s validation demo form. It reports a fixed message and is not meant for your app.
263
310
 
264
311
  ## State Mero owns
265
312
 
@@ -276,7 +323,7 @@ The native and ARIA state Mero writes besides the attributes marked set by Mero
276
323
  - Shortcuts (mero.js) — `aria-keyshortcuts` on a `data-mero-shortcut` element. On a `data-mero-shortcuts-toggle`: `checked` on a checkbox, otherwise `aria-checked` or `aria-pressed`.
277
324
  - Radio group (mero.js) — For a `data-mero-radio-group` outside a form: the `form` attribute on each radio, pointing at a hidden form Mero adds, and `checked` on the selected radio.
278
325
  - Toast and peek (mero.js) — Mero creates these elements and sets their `role`, `aria-label`, `aria-live` and `aria-hidden`.
279
- - Form (mero-forms.js) — On a `data-mero-form` while its request runs: `aria-busy` on the form and `disabled` on its submit buttons. `hidden` on its `data-mero-form-error` element and on a `data-mero-action-unknown` panel. With `data-mero-clear-passwords`: the value of its password inputs, cleared when the request ends unless it was cancelled.
326
+ - Form (mero-forms.js) — On a `data-mero-form` while its request runs: `aria-busy` on the form, `disabled` on its submit buttons and `inert` on its editable fields, reset buttons and multi-select containers (restored when the request ends if the form survives). `hidden` on its `data-mero-form-error` element and on a `data-mero-action-unknown` panel. With `data-mero-clear-passwords`: the value of its password inputs, cleared when the request ends unless it was cancelled.
280
327
  - Action button (mero-forms.js) — On a `data-mero-action` button while its request runs: `aria-busy` and `aria-disabled`. `hidden` on a `data-mero-action-unknown` panel, and `hidden` and `data-tone` on `data-mero-action-status`. `aria-busy` on the region a `data-mero-action-reread` selector names, while Mero reads it again. That is the selected region, not the button, form or ancestor that carries the attribute, and it applies to a `data-mero-form` too.
281
328
  - Typed confirmation (mero-forms.js) — `disabled` on `data-mero-confirm-submit`. The value of `data-mero-confirm-input`, cleared when its dialog closes.
282
329
  - Show-when (mero-forms.js) — `hidden` on the branch, and `disabled` on a fieldset branch and on the controls inside a branch.
@@ -293,6 +340,7 @@ The `Mero-*` HTTP headers. Your server sends the response headers. Mero sends th
293
340
  - `Mero-Action-Message` (response, mero-forms.js) — Text to show for the outcome of a `data-mero-action` or `data-mero-form` request.
294
341
  - `Mero-Form-Error` (response, mero-forms.js) — Fallback text for a failed request. A form shows it when there is no `Mero-Action-Message` and no `data-mero-action-unknown` text, and never for a 422 without `Mero-Action-Outcome`, where the replacement form shows its own errors. A search shows it when `data-mero-search-error` has no value.
295
342
  - `Mero-Live` (response, mero-live.js) — `done` on the final successful read of a `data-mero-live` region. Polling stops.
343
+ - `Mero-Live-Interval` (response, mero-live.js) — Positive interval in milliseconds returned on a successful `data-mero-live` read to adjust subsequent polling cadence.
296
344
  - `Mero-Reread` (request, mero-forms.js) — A number Mero sends with the GET that reads again the region a `data-mero-action-reread` selector names.
297
345
 
298
346
  ## With Alpine or your own scripts
@@ -300,16 +348,16 @@ The `Mero-*` HTTP headers. Your server sends the response headers. Mero sends th
300
348
  What a browser test proves about Mero next to Alpine. It runs Alpine 3.14.8, the oldest version tested, and Alpine 3.17.5, with htmx 4.0.2 and its `hx-alpine-compat` extension loaded straight after htmx. Other Alpine versions and setups without the extension are not tested. The events are listed under “Events Mero sends”.
301
349
 
302
350
  - Script order — With Mero and Alpine both loaded as deferred scripts, either order works.
303
- - Listen, do not read — Put `x-on:mero:selection`, `x-on:mero:tab` or `x-on:mero:toggle` on an `x-data` ancestor of the component. The event arrives after Mero has written the state, so the listener sees the new state. Mero selecting a tab or flipping a toggle inside an `x-data` root leaves Alpine’s own state alone.
304
- - mero:action — For a form that stays in the page, or that a 422 response replaces with another `data-mero-form`, a listener on an ancestor hears both the pending and the final event. When the swap removes the form and leaves no replacement `data-mero-form`, the final event fires on the document. An ancestor listener misses it. Use `@mero:action.window` on an Alpine component or a native listener on `document`. The detail is `{ state }` while pending and `{ state, status, message }` at the end. It does not say which form or button it came from, and a window or document listener hears every action on the page, so it cannot tell which one settled once the element is gone. Tested with `data-mero-form`.
305
- - Combobox — Use `x-model.lazy` on the combobox input. Choosing an option fires `change` and no `input` event.
306
- - Writing a field value — A script that sets an input’s value fires no event. Dispatch a bubbling `change` on the input afterwards, or `data-mero-dirty` and `data-mero-show-when` keep their old state.
307
- - htmx swaps — After an `innerHTML` swap into an `x-data` element, and after an `outerMorph` swap of one with `hx-alpine-compat` loaded, the Alpine state survives, Alpine binds the new children and Mero sets up the tabs in the new content.
308
- - Markup Alpine inserts — Mero does not set up tabs that `x-if` inserts. Call `MeroUI.init(el)` on the inserted element. A second call changes nothing.
351
+ - Listen, do not read — Put `x-on:mero:selection`, `x-on:mero:tab`, `x-on:mero:toggle`, `x-on:mero:select`, `x-on:mero:dialog` or `x-on:mero:dirty` on an `x-data` ancestor of the component. Each event arrives after Mero has written the state, so the listener sees the new state. Mero selecting a tab or flipping a toggle inside an `x-data` root leaves Alpine’s own state alone.
352
+ - mero:action — For a form or `data-mero-action` button that stays in the page, or a form that a 422 response replaces with another `data-mero-form`, a listener on an ancestor hears both the pending and the final event. When the swap removes the element and leaves no replacement, the final event fires on the document; use `@mero:action.window` on an Alpine component or a native listener on `document`. The detail is `{ state, source, id }` while pending and `{ state, status, message, source, id }` at the end, so a window listener can identify which form or button settled by `id` or `source` even after removal. Tested with `data-mero-form` and `data-mero-action` across succeeded, rejected and unknown outcomes.
353
+ - Combobox — Use `@mero:select` or `x-model.lazy` on the combobox input. Choosing an option fires `change` and `mero:select`, and never fires a synthetic `input` event (so remote comboboxes do not trigger a redundant server search).
354
+ - Writing a field value — A script that sets an input’s value fires no event. Dispatch a bubbling `change` on the input afterwards, or `data-mero-dirty`, `mero:dirty` and `data-mero-show-when` keep their old state.
355
+ - htmx swaps — After an `innerHTML` swap into an `x-data` element, and after an `innerMorph` or `outerMorph` swap of one with `hx-alpine-compat` loaded, the Alpine state survives, Alpine binds the new children and Mero sets up the tabs in the new content.
356
+ - Markup Alpine inserts or removes — Mero does not watch `x-if` or `x-teleport` insertions automatically. Call `MeroUI.init(el)` on the inserted element to set up tabs, `mero-forms.js` state helpers (`data-mero-dirty`, `data-mero-show-when`, `data-mero-confirm`) and `mero-live.js` polling (`mero-live.js` also invokes `htmx.process()` on an unprocessed live region; call `htmx.process(el)` explicitly for any other manually inserted `hx-*` controls). Repeated calls do not duplicate setup and reconcile state that changed between calls. Call `MeroUI.cleanup(el)` before removing a subtree with a `data-mero-live` region so pending polls stop immediately.
309
357
 
310
358
  # Carousel
311
359
 
312
- Mero UI 0.9.0 · Media galleries
360
+ Mero UI 1.0.0 · Media galleries
313
361
 
314
362
  Browse product photography with native scroll snap, thumbnails and keyboard controls.
315
363
 
@@ -386,7 +434,7 @@ Template
386
434
 
387
435
  # Hover Gallery
388
436
 
389
- Mero UI 0.9.0 · Media galleries
437
+ Mero UI 1.0.0 · Media galleries
390
438
 
391
439
  Explore the shade, base and profile of a product with a pointer, touch or keyboard.
392
440
 
@@ -463,7 +511,7 @@ Template
463
511
 
464
512
  # Image Diff
465
513
 
466
- Mero UI 0.9.0 · Media galleries
514
+ Mero UI 1.0.0 · Media galleries
467
515
 
468
516
  Reveal two finishes at the same position using an accessible comparison slider.
469
517
 
@@ -505,7 +553,7 @@ Template
505
553
 
506
554
  # Holo Card
507
555
 
508
- Mero UI 0.9.0 · Media galleries
556
+ Mero UI 1.0.0 · Media galleries
509
557
 
510
558
  Catch a material sample in a shifting foil reflection.
511
559
 
@@ -537,7 +585,7 @@ Template
537
585
 
538
586
  # Data Grid
539
587
 
540
- Mero UI 0.9.0 · Studio collections
588
+ Mero UI 1.0.0 · Studio collections
541
589
 
542
590
  Search, sort, select and edit products in a server-rendered collection.
543
591
 
@@ -695,7 +743,7 @@ Template
695
743
 
696
744
  # Action Bar
697
745
 
698
- Mero UI 0.9.0 · Studio collections
746
+ Mero UI 1.0.0 · Studio collections
699
747
 
700
748
  Select records and apply one status change to the selection.
701
749
 
@@ -739,7 +787,7 @@ Template
739
787
 
740
788
  # Agenda
741
789
 
742
- Mero UI 0.9.0 · Studio collections
790
+ Mero UI 1.0.0 · Studio collections
743
791
 
744
792
  Browse daily bookings and add a timed event.
745
793
 
@@ -776,7 +824,7 @@ Template
776
824
 
777
825
  # File Tree
778
826
 
779
- Mero UI 0.9.0 · Studio collections
827
+ Mero UI 1.0.0 · Studio collections
780
828
 
781
829
  Expand folders and preview a selected file with native disclosure controls.
782
830
 
@@ -799,7 +847,7 @@ Template
799
847
 
800
848
  # Floating TOC
801
849
 
802
- Mero UI 0.9.0 · Studio collections
850
+ Mero UI 1.0.0 · Studio collections
803
851
 
804
852
  Navigate to sections with an index that follows the reading position.
805
853
 
@@ -822,7 +870,7 @@ Template
822
870
 
823
871
  # Hover Card
824
872
 
825
- Mero UI 0.9.0 · Studio collections
873
+ Mero UI 1.0.0 · Studio collections
826
874
 
827
875
  Preview a contributor on hover, focus or tap.
828
876
 
@@ -847,7 +895,7 @@ Template
847
895
 
848
896
  # Item Card
849
897
 
850
- Mero UI 0.9.0 · Studio collections
898
+ Mero UI 1.0.0 · Studio collections
851
899
 
852
900
  Give a related destination an identity, title and supporting detail.
853
901
 
@@ -870,7 +918,7 @@ Template
870
918
 
871
919
  # Item Card Group
872
920
 
873
- Mero UI 0.9.0 · Studio collections
921
+ Mero UI 1.0.0 · Studio collections
874
922
 
875
923
  Arrange related destinations into a responsive group.
876
924
 
@@ -893,7 +941,7 @@ Template
893
941
 
894
942
  # Kanban
895
943
 
896
- Mero UI 0.9.0 · Studio collections
944
+ Mero UI 1.0.0 · Studio collections
897
945
 
898
946
  Move a card between stages with a drag or its Move to menu.
899
947
 
@@ -918,7 +966,7 @@ Template
918
966
 
919
967
  # List View
920
968
 
921
- Mero UI 0.9.0 · Studio collections
969
+ Mero UI 1.0.0 · Studio collections
922
970
 
923
971
  Browse structured destinations in a compact keyboard-accessible list.
924
972
 
@@ -941,7 +989,7 @@ Template
941
989
 
942
990
  # Map
943
991
 
944
- Mero UI 0.9.0 · Studio collections
992
+ Mero UI 1.0.0 · Studio collections
945
993
 
946
994
  Choose a location on a self-contained campus map and read its address.
947
995
 
@@ -966,7 +1014,7 @@ Template
966
1014
 
967
1015
  # Timeline
968
1016
 
969
- Mero UI 0.9.0 · Studio collections
1017
+ Mero UI 1.0.0 · Studio collections
970
1018
 
971
1019
  Present milestones in order and identify the current step.
972
1020
 
@@ -989,7 +1037,7 @@ Template
989
1037
 
990
1038
  # Widget
991
1039
 
992
- Mero UI 0.9.0 · Studio collections
1040
+ Mero UI 1.0.0 · Studio collections
993
1041
 
994
1042
  Use a dashboard panel to track a checklist and its progress.
995
1043
 
@@ -1012,7 +1060,7 @@ Template
1012
1060
 
1013
1061
  # Cell Color Picker
1014
1062
 
1015
- Mero UI 0.9.0 · Workspace forms
1063
+ Mero UI 1.0.0 · Workspace forms
1016
1064
 
1017
1065
  Change one preference and receive inline confirmation from the server.
1018
1066
 
@@ -1043,7 +1091,7 @@ Template
1043
1091
 
1044
1092
  # Cell Select
1045
1093
 
1046
- Mero UI 0.9.0 · Workspace forms
1094
+ Mero UI 1.0.0 · Workspace forms
1047
1095
 
1048
1096
  Change one preference and receive inline confirmation from the server.
1049
1097
 
@@ -1074,7 +1122,7 @@ Template
1074
1122
 
1075
1123
  # Cell Slider
1076
1124
 
1077
- Mero UI 0.9.0 · Workspace forms
1125
+ Mero UI 1.0.0 · Workspace forms
1078
1126
 
1079
1127
  Change one preference and receive inline confirmation from the server.
1080
1128
 
@@ -1105,7 +1153,7 @@ Template
1105
1153
 
1106
1154
  # Cell Switch
1107
1155
 
1108
- Mero UI 0.9.0 · Workspace forms
1156
+ Mero UI 1.0.0 · Workspace forms
1109
1157
 
1110
1158
  Change one preference and receive inline confirmation from the server.
1111
1159
 
@@ -1136,7 +1184,7 @@ Template
1136
1184
 
1137
1185
  # Checkbox Button Group
1138
1186
 
1139
- Mero UI 0.9.0 · Workspace forms
1187
+ Mero UI 1.0.0 · Workspace forms
1140
1188
 
1141
1189
  Select several release channels using native checkboxes.
1142
1190
 
@@ -1164,7 +1212,7 @@ Template
1164
1212
 
1165
1213
  # Radio Button Group
1166
1214
 
1167
- Mero UI 0.9.0 · Workspace forms
1215
+ Mero UI 1.0.0 · Workspace forms
1168
1216
 
1169
1217
  Choose one release schedule with labelled option cards.
1170
1218
 
@@ -1191,7 +1239,7 @@ Template
1191
1239
 
1192
1240
  # Native Select
1193
1241
 
1194
- Mero UI 0.9.0 · Workspace forms
1242
+ Mero UI 1.0.0 · Workspace forms
1195
1243
 
1196
1244
  Choose a workspace from labelled option groups.
1197
1245
 
@@ -1216,7 +1264,7 @@ Template
1216
1264
 
1217
1265
  # Inline Select
1218
1266
 
1219
- Mero UI 0.9.0 · Workspace forms
1267
+ Mero UI 1.0.0 · Workspace forms
1220
1268
 
1221
1269
  Change an audience within the sentence that describes it.
1222
1270
 
@@ -1241,7 +1289,7 @@ Template
1241
1289
 
1242
1290
  # Number Stepper
1243
1291
 
1244
- Mero UI 0.9.0 · Workspace forms
1292
+ Mero UI 1.0.0 · Workspace forms
1245
1293
 
1246
1294
  Change a bounded quantity with the keyboard or step buttons.
1247
1295
 
@@ -1271,7 +1319,7 @@ Template
1271
1319
 
1272
1320
  # File Input
1273
1321
 
1274
- Mero UI 0.9.0 · Workspace forms
1322
+ Mero UI 1.0.0 · Workspace forms
1275
1323
 
1276
1324
  Choose a local product image and validate it on the server.
1277
1325
 
@@ -1302,7 +1350,7 @@ Template
1302
1350
 
1303
1351
  # Drop Zone
1304
1352
 
1305
- Mero UI 0.9.0 · Workspace forms
1353
+ Mero UI 1.0.0 · Workspace forms
1306
1354
 
1307
1355
  Drop an image or use the native file picker and check the file.
1308
1356
 
@@ -1335,7 +1383,7 @@ Template
1335
1383
 
1336
1384
  # Rich Text Editor
1337
1385
 
1338
- Mero UI 0.9.0 · Workspace forms
1386
+ Mero UI 1.0.0 · Workspace forms
1339
1387
 
1340
1388
  Edit a short description with bold and italic text and preview the submitted result.
1341
1389
 
@@ -1369,7 +1417,7 @@ Template
1369
1417
 
1370
1418
  # Joined Filter
1371
1419
 
1372
- Mero UI 0.9.0 · Workspace forms
1420
+ Mero UI 1.0.0 · Workspace forms
1373
1421
 
1374
1422
  Search and filter releases with one server request.
1375
1423
 
@@ -1396,7 +1444,7 @@ Template
1396
1444
 
1397
1445
  # App Layout
1398
1446
 
1399
- Mero UI 0.9.0 · Workspace navigation
1447
+ Mero UI 1.0.0 · Workspace navigation
1400
1448
 
1401
1449
  A responsive workspace with a sidebar, content area and mobile navigation drawer.
1402
1450
 
@@ -1431,7 +1479,7 @@ Template
1431
1479
 
1432
1480
  # Sidebar
1433
1481
 
1434
- Mero UI 0.9.0 · Workspace navigation
1482
+ Mero UI 1.0.0 · Workspace navigation
1435
1483
 
1436
1484
  Navigate the workspace from a side rail that becomes a drawer at narrow widths.
1437
1485
 
@@ -1466,7 +1514,7 @@ Template
1466
1514
 
1467
1515
  # Navbar
1468
1516
 
1469
- Mero UI 0.9.0 · Workspace navigation
1517
+ Mero UI 1.0.0 · Workspace navigation
1470
1518
 
1471
1519
  Place the workspace name and destinations in a wrapping top bar.
1472
1520
 
@@ -1489,13 +1537,13 @@ Template
1489
1537
 
1490
1538
  # Command
1491
1539
 
1492
- Mero UI 0.9.0 · Workspace navigation
1540
+ Mero UI 1.0.0 · Workspace navigation
1493
1541
 
1494
- Search destinations and actions, then use the arrows and Enter to execute.
1542
+ Search local destinations and actions, then use the arrows and Enter to execute.
1495
1543
 
1496
1544
  ## Default
1497
1545
 
1498
- Click the trigger or press Cmd/Ctrl K. Escape returns focus to where you were working.
1546
+ Built on core dialog[data-mero-command] with local data-mero-combo filtering. Click the trigger or press Cmd/Ctrl K. Escape closes the results, then the dialog, and returns focus to where you were working.
1499
1547
 
1500
1548
  Page assets
1501
1549
 
@@ -1509,24 +1557,27 @@ Page assets
1509
1557
  Template
1510
1558
 
1511
1559
  ````html
1512
- <section class="mero-ws-command" data-mero-ws-command>
1513
- <button class="mero-ws-launch" type="button" data-mero-ws-open><span>Search commands</span><kbd>⌘ / Ctrl K</kbd></button>
1514
- <dialog class="mero-dialog mero-ws-command-dialog" aria-label="Workspace commands">
1515
- <div class="mero-ws-command-head"><input type="search" data-command-search placeholder="Search pages and actions…" aria-label="Search commands" autofocus><button type="button" data-mero-close aria-label="Close commands"><svg class="mero-ws-icon" aria-hidden="true" focusable="false" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m6 6 12 12M18 6 6 18"/></svg></button></div>
1516
- <div class="mero-ws-command-items">
1517
- <a href="/layouts/dashboard?view=inventory"><strong>Open inventory</strong><small>Workspace</small></a>
1518
- <a href="/layouts/dashboard?view=settings"><strong>Workspace settings</strong><small>Workspace</small></a>
1519
- <button type="button" data-command-copy><strong>Copy page link</strong><small>Action</small></button>
1560
+ <section class="mero-ws-command">
1561
+ <button class="mero-ws-launch" type="button" data-mero-open="ws-commands" aria-keyshortcuts="Meta+K Control+K"><span>Search commands</span><kbd>⌘ / Ctrl K</kbd></button>
1562
+ <dialog class="mero-dialog mero-command" id="ws-commands" data-mero-command aria-label="Workspace commands">
1563
+ <div class="mero-combo" data-mero-combo>
1564
+ <input class="mero-input" type="search" role="combobox" aria-label="Search commands" aria-expanded="false"
1565
+ aria-controls="ws-commands-options" aria-autocomplete="list" autocomplete="off" placeholder="Search pages and actions…" autofocus>
1566
+ <div class="mero-listbox mero-combo-list" id="ws-commands-options" role="listbox" aria-label="Workspace commands" hidden>
1567
+ <a id="ws-cmd-inventory" role="option" tabindex="-1" href="/layouts/dashboard?view=inventory">Open inventory</a>
1568
+ <a id="ws-cmd-settings" role="option" tabindex="-1" href="/layouts/dashboard?view=settings">Workspace settings</a>
1569
+ <button id="ws-cmd-copy" role="option" tabindex="-1" type="button" data-mero-copy="studio-north" data-mero-copy-message="Workspace ID copied.">Copy workspace ID</button>
1570
+ <div role="option" aria-disabled="true" data-mero-empty-option hidden>No matching commands</div>
1571
+ </div>
1572
+ <span class="mero-description" data-mero-combo-status role="status"></span>
1520
1573
  </div>
1521
- <p class="mero-ws-command-empty" hidden>No matching commands</p>
1522
1574
  </dialog>
1523
- <output class="mero-ws-status" role="status"></output>
1524
1575
  </section>
1525
1576
  ````
1526
1577
 
1527
1578
  # Context Menu
1528
1579
 
1529
- Mero UI 0.9.0 · Workspace navigation
1580
+ Mero UI 1.0.0 · Workspace navigation
1530
1581
 
1531
1582
  Open item actions with the visible button, a secondary click, or Shift F10.
1532
1583
 
@@ -1556,7 +1607,7 @@ Template
1556
1607
 
1557
1608
  # Segment
1558
1609
 
1559
- Mero UI 0.9.0 · Workspace navigation
1610
+ Mero UI 1.0.0 · Workspace navigation
1560
1611
 
1561
1612
  Choose one display density in a compact segmented control.
1562
1613
 
@@ -1583,7 +1634,7 @@ Template
1583
1634
 
1584
1635
  # Stepper
1585
1636
 
1586
- Mero UI 0.9.0 · Workspace navigation
1637
+ Mero UI 1.0.0 · Workspace navigation
1587
1638
 
1588
1639
  Move through validated project details and review the values before submitting.
1589
1640
 
@@ -1614,7 +1665,7 @@ Template
1614
1665
 
1615
1666
  # Dock
1616
1667
 
1617
- Mero UI 0.9.0 · Workspace navigation
1668
+ Mero UI 1.0.0 · Workspace navigation
1618
1669
 
1619
1670
  Group frequently used workspace destinations in a compact navigation dock.
1620
1671
 
@@ -1639,7 +1690,7 @@ Template
1639
1690
 
1640
1691
  # Megamenu
1641
1692
 
1642
- Mero UI 0.9.0 · Workspace navigation
1693
+ Mero UI 1.0.0 · Workspace navigation
1643
1694
 
1644
1695
  Explore grouped destinations from a native disclosure.
1645
1696
 
@@ -1664,7 +1715,7 @@ Template
1664
1715
 
1665
1716
  # Floating Action Button
1666
1717
 
1667
- Mero UI 0.9.0 · Workspace navigation
1718
+ Mero UI 1.0.0 · Workspace navigation
1668
1719
 
1669
1720
  Reveal a small set of workspace shortcuts.
1670
1721
 
@@ -1689,7 +1740,7 @@ Template
1689
1740
 
1690
1741
  # Resizable
1691
1742
 
1692
- Mero UI 0.9.0 · Workspace tools
1743
+ Mero UI 1.0.0 · Workspace tools
1693
1744
 
1694
1745
  Resize two adjacent panels by dragging the divider or using the arrow keys.
1695
1746
 
@@ -1743,7 +1794,7 @@ Template
1743
1794
 
1744
1795
  # Emoji Picker
1745
1796
 
1746
- Mero UI 0.9.0 · Workspace tools
1797
+ Mero UI 1.0.0 · Workspace tools
1747
1798
 
1748
1799
  Search named reactions and submit the selected emoji as a form value.
1749
1800
 
@@ -1773,7 +1824,7 @@ Template
1773
1824
 
1774
1825
  # Area Chart
1775
1826
 
1776
- Mero UI 0.9.0 · Charts
1827
+ Mero UI 1.0.0 · Charts
1777
1828
 
1778
1829
  Show the volume and shape of a series over time.
1779
1830
 
@@ -1808,7 +1859,7 @@ Template
1808
1859
 
1809
1860
  # Bar Chart
1810
1861
 
1811
- Mero UI 0.9.0 · Charts
1862
+ Mero UI 1.0.0 · Charts
1812
1863
 
1813
1864
  Compare adjacent categories on a shared linear scale.
1814
1865
 
@@ -1843,7 +1894,7 @@ Template
1843
1894
 
1844
1895
  # Chart Tooltip
1845
1896
 
1846
- Mero UI 0.9.0 · Charts
1897
+ Mero UI 1.0.0 · Charts
1847
1898
 
1848
1899
  Inspect the active data point using a pointer or keyboard.
1849
1900
 
@@ -1878,7 +1929,7 @@ Template
1878
1929
 
1879
1930
  # Composed Chart
1880
1931
 
1881
- Mero UI 0.9.0 · Charts
1932
+ Mero UI 1.0.0 · Charts
1882
1933
 
1883
1934
  Compare actual volume with its target using columns and a line.
1884
1935
 
@@ -1913,7 +1964,7 @@ Template
1913
1964
 
1914
1965
  # Line Chart
1915
1966
 
1916
- Mero UI 0.9.0 · Charts
1967
+ Mero UI 1.0.0 · Charts
1917
1968
 
1918
1969
  Trace changes across a reporting period.
1919
1970
 
@@ -1976,7 +2027,7 @@ Template
1976
2027
 
1977
2028
  # Pie Chart
1978
2029
 
1979
- Mero UI 0.9.0 · Charts
2030
+ Mero UI 1.0.0 · Charts
1980
2031
 
1981
2032
  See how each collection contributes to total volume.
1982
2033
 
@@ -2011,7 +2062,7 @@ Template
2011
2062
 
2012
2063
  # Radar Chart
2013
2064
 
2014
- Mero UI 0.9.0 · Charts
2065
+ Mero UI 1.0.0 · Charts
2015
2066
 
2016
2067
  Compare profiles across axes that use the same units.
2017
2068
 
@@ -2046,7 +2097,7 @@ Template
2046
2097
 
2047
2098
  # Radial Chart
2048
2099
 
2049
- Mero UI 0.9.0 · Charts
2100
+ Mero UI 1.0.0 · Charts
2050
2101
 
2051
2102
  Compare categories as concentric rings against the largest category.
2052
2103
 
@@ -2081,7 +2132,7 @@ Template
2081
2132
 
2082
2133
  # KPI
2083
2134
 
2084
- Mero UI 0.9.0 · Metrics
2135
+ Mero UI 1.0.0 · Metrics
2085
2136
 
2086
2137
  Pair an exact figure with the reporting period it describes.
2087
2138
 
@@ -2104,7 +2155,7 @@ Template
2104
2155
 
2105
2156
  # KPI Group
2106
2157
 
2107
- Mero UI 0.9.0 · Metrics
2158
+ Mero UI 1.0.0 · Metrics
2108
2159
 
2109
2160
  Keep related measures on a common reporting period.
2110
2161
 
@@ -2127,7 +2178,7 @@ Template
2127
2178
 
2128
2179
  # Emoji Reaction Button
2129
2180
 
2130
- Mero UI 0.9.0 · Interaction feedback
2181
+ Mero UI 1.0.0 · Interaction feedback
2131
2182
 
2132
2183
  Add or remove a reaction while keeping its count visible.
2133
2184
 
@@ -2152,7 +2203,7 @@ Template
2152
2203
 
2153
2204
  # Number Value
2154
2205
 
2155
- Mero UI 0.9.0 · Interaction feedback
2206
+ Mero UI 1.0.0 · Interaction feedback
2156
2207
 
2157
2208
  Display a localized number with its machine-readable value.
2158
2209
 
@@ -2177,7 +2228,7 @@ Template
2177
2228
 
2178
2229
  # Pressable Feedback
2179
2230
 
2180
- Mero UI 0.9.0 · Interaction feedback
2231
+ Mero UI 1.0.0 · Interaction feedback
2181
2232
 
2182
2233
  Give a press a tactile response and keep its selected state visible.
2183
2234
 
@@ -2200,7 +2251,7 @@ Template
2200
2251
 
2201
2252
  # Rating
2202
2253
 
2203
- Mero UI 0.9.0 · Interaction feedback
2254
+ Mero UI 1.0.0 · Interaction feedback
2204
2255
 
2205
2256
  Choose a labelled score using native radio controls.
2206
2257
 
@@ -2225,7 +2276,7 @@ Template
2225
2276
 
2226
2277
  # Trend Chip
2227
2278
 
2228
- Mero UI 0.9.0 · Interaction feedback
2279
+ Mero UI 1.0.0 · Interaction feedback
2229
2280
 
2230
2281
  Label the direction and magnitude of a change.
2231
2282
 
@@ -2248,7 +2299,7 @@ Template
2248
2299
 
2249
2300
  # Chain Of Thought
2250
2301
 
2251
- Mero UI 0.9.0 · Conversation
2302
+ Mero UI 1.0.0 · Conversation
2252
2303
 
2253
2304
  Display a disclosure of observable execution steps for a report.
2254
2305
 
@@ -2273,7 +2324,7 @@ Template
2273
2324
 
2274
2325
  # Chat Attachment
2275
2326
 
2276
- Mero UI 0.9.0 · Conversation
2327
+ Mero UI 1.0.0 · Conversation
2277
2328
 
2278
2329
  Display a named file and provide a working download.
2279
2330
 
@@ -2298,7 +2349,7 @@ Template
2298
2349
 
2299
2350
  # Chat Conversation
2300
2351
 
2301
- Mero UI 0.9.0 · Conversation
2352
+ Mero UI 1.0.0 · Conversation
2302
2353
 
2303
2354
  Keep messages, controls and a composer in one scoped conversation.
2304
2355
 
@@ -2358,7 +2409,7 @@ Template
2358
2409
 
2359
2410
  # Chat List View
2360
2411
 
2361
- Mero UI 0.9.0 · Conversation
2412
+ Mero UI 1.0.0 · Conversation
2362
2413
 
2363
2414
  Open a conversation returned by the server.
2364
2415
 
@@ -2382,7 +2433,7 @@ Template
2382
2433
 
2383
2434
  # Chat Loader
2384
2435
 
2385
- Mero UI 0.9.0 · Conversation
2436
+ Mero UI 1.0.0 · Conversation
2386
2437
 
2387
2438
  Show a concise status while a response is being prepared.
2388
2439
 
@@ -2405,7 +2456,7 @@ Template
2405
2456
 
2406
2457
  # Chat Message
2407
2458
 
2408
- Mero UI 0.9.0 · Conversation
2459
+ Mero UI 1.0.0 · Conversation
2409
2460
 
2410
2461
  Distinguish the sender and keep the message readable after a swap.
2411
2462
 
@@ -2428,7 +2479,7 @@ Template
2428
2479
 
2429
2480
  # Chat Message Actions
2430
2481
 
2431
- Mero UI 0.9.0 · Conversation
2482
+ Mero UI 1.0.0 · Conversation
2432
2483
 
2433
2484
  Copy a reply or mark it as helpful.
2434
2485
 
@@ -2452,7 +2503,7 @@ Template
2452
2503
 
2453
2504
  # Chat Source
2454
2505
 
2455
- Mero UI 0.9.0 · Conversation
2506
+ Mero UI 1.0.0 · Conversation
2456
2507
 
2457
2508
  Open the exact data behind a generated summary.
2458
2509
 
@@ -2475,7 +2526,7 @@ Template
2475
2526
 
2476
2527
  # Chat Tool
2477
2528
 
2478
- Mero UI 0.9.0 · Conversation
2529
+ Mero UI 1.0.0 · Conversation
2479
2530
 
2480
2531
  Disclose the inputs and output of an application action.
2481
2532
 
@@ -2515,7 +2566,7 @@ Template
2515
2566
 
2516
2567
  # Code Block
2517
2568
 
2518
- Mero UI 0.9.0 · Conversation
2569
+ Mero UI 1.0.0 · Conversation
2519
2570
 
2520
2571
  Show a file caption, selectable code and a copy control.
2521
2572
 
@@ -2538,7 +2589,7 @@ Template
2538
2589
 
2539
2590
  # Markdown
2540
2591
 
2541
- Mero UI 0.9.0 · Conversation
2592
+ Mero UI 1.0.0 · Conversation
2542
2593
 
2543
2594
  Render a small safe subset of Markdown into semantic HTML.
2544
2595
 
@@ -2573,7 +2624,7 @@ Template
2573
2624
 
2574
2625
  # Prompt Input
2575
2626
 
2576
- Mero UI 0.9.0 · Conversation
2627
+ Mero UI 1.0.0 · Conversation
2577
2628
 
2578
2629
  Collect a question and submit it to a server-rendered response endpoint.
2579
2630
 
@@ -2604,7 +2655,7 @@ Template
2604
2655
 
2605
2656
  # Prompt Suggestion
2606
2657
 
2607
- Mero UI 0.9.0 · Conversation
2658
+ Mero UI 1.0.0 · Conversation
2608
2659
 
2609
2660
  Choose a suggested prompt, edit it, then send it.
2610
2661
 
@@ -2635,7 +2686,7 @@ Template
2635
2686
 
2636
2687
  # Text Shimmer
2637
2688
 
2638
- Mero UI 0.9.0 · Conversation
2689
+ Mero UI 1.0.0 · Conversation
2639
2690
 
2640
2691
  Indicate work in progress with a moving highlight across readable text.
2641
2692
 
@@ -2658,7 +2709,7 @@ Template
2658
2709
 
2659
2710
  # Button
2660
2711
 
2661
- Mero UI 0.9.0 · Buttons
2712
+ Mero UI 1.0.0 · Buttons
2662
2713
 
2663
2714
  Trigger an action with a consistent hierarchy of visual emphasis.
2664
2715
 
@@ -2763,7 +2814,7 @@ Template
2763
2814
 
2764
2815
  # Action Button
2765
2816
 
2766
- Mero UI 0.9.0 · Buttons
2817
+ Mero UI 1.0.0 · Buttons
2767
2818
 
2768
2819
  Run a server action and report whether it succeeded, was refused or has an unknown result.
2769
2820
 
@@ -2835,7 +2886,7 @@ Template
2835
2886
 
2836
2887
  # Button Group
2837
2888
 
2838
- Mero UI 0.9.0 · Buttons
2889
+ Mero UI 1.0.0 · Buttons
2839
2890
 
2840
2891
  Keep related actions together while preserving each button’s own label and focus.
2841
2892
 
@@ -2860,7 +2911,7 @@ Template
2860
2911
 
2861
2912
  # Close Button
2862
2913
 
2863
- Mero UI 0.9.0 · Buttons
2914
+ Mero UI 1.0.0 · Buttons
2864
2915
 
2865
2916
  Give a dialog an icon-only close action with an accessible name.
2866
2917
 
@@ -2892,7 +2943,7 @@ Template
2892
2943
 
2893
2944
  # Toggle Button
2894
2945
 
2895
- Mero UI 0.9.0 · Buttons
2946
+ Mero UI 1.0.0 · Buttons
2896
2947
 
2897
2948
  Represent a persistent on or off state with a pressed button.
2898
2949
 
@@ -2915,7 +2966,7 @@ Template
2915
2966
 
2916
2967
  # Toggle Button Group
2917
2968
 
2918
- Mero UI 0.9.0 · Buttons
2969
+ Mero UI 1.0.0 · Buttons
2919
2970
 
2920
2971
  Select one presentation mode from a connected set of controls.
2921
2972
 
@@ -2945,7 +2996,7 @@ Template
2945
2996
 
2946
2997
  # Checkbox
2947
2998
 
2948
- Mero UI 0.9.0 · Forms
2999
+ Mero UI 1.0.0 · Forms
2949
3000
 
2950
3001
  Include an independent binary choice in a form.
2951
3002
 
@@ -2969,7 +3020,7 @@ Template
2969
3020
 
2970
3021
  # Checkbox Group
2971
3022
 
2972
- Mero UI 0.9.0 · Forms
3023
+ Mero UI 1.0.0 · Forms
2973
3024
 
2974
3025
  Group related independent choices with a fieldset and legend.
2975
3026
 
@@ -2997,7 +3048,7 @@ Template
2997
3048
 
2998
3049
  # Description
2999
3050
 
3000
- Mero UI 0.9.0 · Forms
3051
+ Mero UI 1.0.0 · Forms
3001
3052
 
3002
3053
  Connect persistent help text to a control.
3003
3054
 
@@ -3024,7 +3075,7 @@ Template
3024
3075
 
3025
3076
  # Error Message
3026
3077
 
3027
- Mero UI 0.9.0 · Forms
3078
+ Mero UI 1.0.0 · Forms
3028
3079
 
3029
3080
  Present a form-level failure where the user can act on it.
3030
3081
 
@@ -3048,7 +3099,7 @@ Template
3048
3099
 
3049
3100
  # Field Error
3050
3101
 
3051
- Mero UI 0.9.0 · Forms
3102
+ Mero UI 1.0.0 · Forms
3052
3103
 
3053
3104
  Associate a validation error with the field that needs attention.
3054
3105
 
@@ -3077,7 +3128,7 @@ Template
3077
3128
 
3078
3129
  # Fieldset
3079
3130
 
3080
- Mero UI 0.9.0 · Forms
3131
+ Mero UI 1.0.0 · Forms
3081
3132
 
3082
3133
  Add a shared label to a related set of form controls.
3083
3134
 
@@ -3158,7 +3209,7 @@ Template
3158
3209
 
3159
3210
  # Form
3160
3211
 
3161
- Mero UI 0.9.0 · Forms
3212
+ Mero UI 1.0.0 · Forms
3162
3213
 
3163
3214
  Submit native fields to the server and render an HTML response in place.
3164
3215
 
@@ -3346,7 +3397,7 @@ Template
3346
3397
 
3347
3398
  # Input
3348
3399
 
3349
- Mero UI 0.9.0 · Forms
3400
+ Mero UI 1.0.0 · Forms
3350
3401
 
3351
3402
  A styled native input with browser validation and autocomplete.
3352
3403
 
@@ -3373,7 +3424,7 @@ Template
3373
3424
 
3374
3425
  # Input Group
3375
3426
 
3376
- Mero UI 0.9.0 · Forms
3427
+ Mero UI 1.0.0 · Forms
3377
3428
 
3378
3429
  Combine a control and contextual prefix with a single outline.
3379
3430
 
@@ -3402,7 +3453,7 @@ Template
3402
3453
 
3403
3454
  # Input OTP
3404
3455
 
3405
- Mero UI 0.9.0 · Forms
3456
+ Mero UI 1.0.0 · Forms
3406
3457
 
3407
3458
  Collect a six-digit code in one input with mobile autofill.
3408
3459
 
@@ -3431,7 +3482,7 @@ Template
3431
3482
 
3432
3483
  # Label
3433
3484
 
3434
- Mero UI 0.9.0 · Forms
3485
+ Mero UI 1.0.0 · Forms
3435
3486
 
3436
3487
  Name an input and expand its activation area.
3437
3488
 
@@ -3458,7 +3509,7 @@ Template
3458
3509
 
3459
3510
  # Number Field
3460
3511
 
3461
- Mero UI 0.9.0 · Forms
3512
+ Mero UI 1.0.0 · Forms
3462
3513
 
3463
3514
  Set numeric bounds and increments for a native field.
3464
3515
 
@@ -3485,7 +3536,7 @@ Template
3485
3536
 
3486
3537
  # Radio Group
3487
3538
 
3488
- Mero UI 0.9.0 · Forms
3539
+ Mero UI 1.0.0 · Forms
3489
3540
 
3490
3541
  Choose exactly one option from a labeled set.
3491
3542
 
@@ -3513,7 +3564,7 @@ Template
3513
3564
 
3514
3565
  # Search Field
3515
3566
 
3516
- Mero UI 0.9.0 · Forms
3567
+ Mero UI 1.0.0 · Forms
3517
3568
 
3518
3569
  Use a native search field with the platform’s clear affordance.
3519
3570
 
@@ -3582,7 +3633,7 @@ Template
3582
3633
 
3583
3634
  # Text Area
3584
3635
 
3585
- Mero UI 0.9.0 · Forms
3636
+ Mero UI 1.0.0 · Forms
3586
3637
 
3587
3638
  Let users edit multiple lines of text with an optional autosizing surface.
3588
3639
 
@@ -3608,7 +3659,7 @@ Template
3608
3659
 
3609
3660
  # Text Field
3610
3661
 
3611
- Mero UI 0.9.0 · Forms
3662
+ Mero UI 1.0.0 · Forms
3612
3663
 
3613
3664
  Compose a label, input, and hint into a reusable form field.
3614
3665
 
@@ -3635,7 +3686,7 @@ Template
3635
3686
 
3636
3687
  # Calendar
3637
3688
 
3638
- Mero UI 0.9.0 · Date and time
3689
+ Mero UI 1.0.0 · Date and time
3639
3690
 
3640
3691
  Navigate months and choose a day on an inline calendar rendered by the server.
3641
3692
 
@@ -3716,13 +3767,13 @@ Template
3716
3767
  <tr><td><button class="mero-button mero-button-sm mero-calendar-day mero-button-ghost" type="button"
3717
3768
  id="calendar-day-23" aria-label="Monday, November 23, 2026" aria-pressed="false"
3718
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"
3719
- id="calendar-day-24" aria-label="Tuesday, November 24, 2026" aria-pressed="false" aria-current="date"
3770
+ id="calendar-day-24" aria-label="Tuesday, November 24, 2026" aria-pressed="false"
3720
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"
3721
3772
  id="calendar-day-25" aria-label="Wednesday, November 25, 2026" aria-pressed="false"
3722
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"
3723
3774
  id="calendar-day-26" aria-label="Thursday, November 26, 2026" aria-pressed="false"
3724
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"
3725
- id="calendar-day-27" aria-label="Friday, November 27, 2026" aria-pressed="false"
3776
+ id="calendar-day-27" aria-label="Friday, November 27, 2026" aria-pressed="false" aria-current="date"
3726
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"
3727
3778
  id="calendar-day-28" aria-label="Saturday, November 28, 2026" aria-pressed="false"
3728
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"
@@ -3739,7 +3790,7 @@ Template
3739
3790
 
3740
3791
  # Date Field
3741
3792
 
3742
- Mero UI 0.9.0 · Date and time
3793
+ Mero UI 1.0.0 · Date and time
3743
3794
 
3744
3795
  Enter a calendar date in the system’s preferred format.
3745
3796
 
@@ -3766,7 +3817,7 @@ Template
3766
3817
 
3767
3818
  # Date Picker
3768
3819
 
3769
- Mero UI 0.9.0 · Date and time
3820
+ Mero UI 1.0.0 · Date and time
3770
3821
 
3771
3822
  Choose a date with the browser’s calendar picker and native constraints.
3772
3823
 
@@ -3795,7 +3846,7 @@ Template
3795
3846
 
3796
3847
  # Date Range Picker
3797
3848
 
3798
- Mero UI 0.9.0 · Date and time
3849
+ Mero UI 1.0.0 · Date and time
3799
3850
 
3800
3851
  Collect the start and end dates of a range.
3801
3852
 
@@ -3834,7 +3885,7 @@ Template
3834
3885
 
3835
3886
  # Range Calendar
3836
3887
 
3837
- Mero UI 0.9.0 · Date and time
3888
+ Mero UI 1.0.0 · Date and time
3838
3889
 
3839
3890
  Build a range with two native calendar controls.
3840
3891
 
@@ -3873,7 +3924,7 @@ Template
3873
3924
 
3874
3925
  # Time Field
3875
3926
 
3876
- Mero UI 0.9.0 · Date and time
3927
+ Mero UI 1.0.0 · Date and time
3877
3928
 
3878
3929
  Choose a wall-clock time without a timezone conversion.
3879
3930
 
@@ -3902,7 +3953,7 @@ Template
3902
3953
 
3903
3954
  # Accordion
3904
3955
 
3905
- Mero UI 0.9.0 · Navigation
3956
+ Mero UI 1.0.0 · Navigation
3906
3957
 
3907
3958
  Disclose one section at a time using grouped native details.
3908
3959
 
@@ -3932,7 +3983,7 @@ Template
3932
3983
 
3933
3984
  # Breadcrumbs
3934
3985
 
3935
- Mero UI 0.9.0 · Navigation
3986
+ Mero UI 1.0.0 · Navigation
3936
3987
 
3937
3988
  Show the user’s current location and its parent pages.
3938
3989
 
@@ -3959,7 +4010,7 @@ Template
3959
4010
 
3960
4011
  # Disclosure
3961
4012
 
3962
- Mero UI 0.9.0 · Navigation
4013
+ Mero UI 1.0.0 · Navigation
3963
4014
 
3964
4015
  Reveal a single block of supplementary information.
3965
4016
 
@@ -3983,7 +4034,7 @@ Template
3983
4034
 
3984
4035
  # Disclosure Group
3985
4036
 
3986
- Mero UI 0.9.0 · Navigation
4037
+ Mero UI 1.0.0 · Navigation
3987
4038
 
3988
4039
  Present a collection of independently expandable sections.
3989
4040
 
@@ -4013,7 +4064,7 @@ Template
4013
4064
 
4014
4065
  # Link
4015
4066
 
4016
- Mero UI 0.9.0 · Navigation
4067
+ Mero UI 1.0.0 · Navigation
4017
4068
 
4018
4069
  Navigate to a real URL with native link semantics.
4019
4070
 
@@ -4034,7 +4085,7 @@ Template
4034
4085
 
4035
4086
  # Pagination
4036
4087
 
4037
- Mero UI 0.9.0 · Navigation
4088
+ Mero UI 1.0.0 · Navigation
4038
4089
 
4039
4090
  Navigate between result pages with server-rendered fragments.
4040
4091
 
@@ -4073,7 +4124,7 @@ Template
4073
4124
 
4074
4125
  # Tabs
4075
4126
 
4076
- Mero UI 0.9.0 · Navigation
4127
+ Mero UI 1.0.0 · Navigation
4077
4128
 
4078
4129
  Switch between labeled panels with mouse or arrow keys.
4079
4130
 
@@ -4160,7 +4211,7 @@ Template
4160
4211
 
4161
4212
  # Alert Dialog
4162
4213
 
4163
- Mero UI 0.9.0 · Overlays
4214
+ Mero UI 1.0.0 · Overlays
4164
4215
 
4165
4216
  Ask for confirmation on a decision that calls for attention.
4166
4217
 
@@ -4195,7 +4246,7 @@ Template
4195
4246
 
4196
4247
  # Typed Confirmation
4197
4248
 
4198
- Mero UI 0.9.0 · Overlays
4249
+ Mero UI 1.0.0 · Overlays
4199
4250
 
4200
4251
  Require an exact phrase before submitting a destructive action.
4201
4252
 
@@ -4354,7 +4405,7 @@ Template
4354
4405
 
4355
4406
  # Drawer
4356
4407
 
4357
- Mero UI 0.9.0 · Overlays
4408
+ Mero UI 1.0.0 · Overlays
4358
4409
 
4359
4410
  Open a full-height edge panel for work that benefits from more room.
4360
4411
 
@@ -4469,7 +4520,7 @@ Template
4469
4520
 
4470
4521
  # Modal
4471
4522
 
4472
- Mero UI 0.9.0 · Overlays
4523
+ Mero UI 1.0.0 · Overlays
4473
4524
 
4474
4525
  Open a centered, named dialog with native focus containment.
4475
4526
 
@@ -4502,7 +4553,7 @@ Template
4502
4553
 
4503
4554
  # Command Menu
4504
4555
 
4505
- Mero UI 0.9.0 · Overlays
4556
+ Mero UI 1.0.0 · Overlays
4506
4557
 
4507
4558
  Press Cmd or Ctrl K to search pages and actions returned by your server.
4508
4559
 
@@ -4547,7 +4598,7 @@ Template
4547
4598
 
4548
4599
  # Popover
4549
4600
 
4550
- Mero UI 0.9.0 · Overlays
4601
+ Mero UI 1.0.0 · Overlays
4551
4602
 
4552
4603
  Display contextual information using the browser’s top layer.
4553
4604
 
@@ -4576,7 +4627,7 @@ Template
4576
4627
 
4577
4628
  # Sheet
4578
4629
 
4579
- Mero UI 0.9.0 · Overlays
4630
+ Mero UI 1.0.0 · Overlays
4580
4631
 
4581
4632
  Present concise secondary content from the bottom edge.
4582
4633
 
@@ -4609,7 +4660,7 @@ Template
4609
4660
 
4610
4661
  # Toast
4611
4662
 
4612
- Mero UI 0.9.0 · Overlays
4663
+ Mero UI 1.0.0 · Overlays
4613
4664
 
4614
4665
  Announce a completed action without interrupting the current task.
4615
4666
 
@@ -4630,7 +4681,7 @@ Template
4630
4681
 
4631
4682
  # Tooltip
4632
4683
 
4633
- Mero UI 0.9.0 · Overlays
4684
+ Mero UI 1.0.0 · Overlays
4634
4685
 
4635
4686
  Show a brief hint on pointer hover or keyboard focus.
4636
4687
 
@@ -4656,7 +4707,7 @@ Template
4656
4707
 
4657
4708
  # Dropdown
4658
4709
 
4659
- Mero UI 0.9.0 · Collections
4710
+ Mero UI 1.0.0 · Collections
4660
4711
 
4661
4712
  Open a compact list of actions or destinations.
4662
4713
 
@@ -4686,7 +4737,7 @@ Template
4686
4737
 
4687
4738
  # Menu Button
4688
4739
 
4689
- Mero UI 0.9.0 · Collections
4740
+ Mero UI 1.0.0 · Collections
4690
4741
 
4691
4742
  Open row actions and move through them with the arrow keys.
4692
4743
 
@@ -4797,7 +4848,7 @@ Template
4797
4848
 
4798
4849
  # List Box
4799
4850
 
4800
- Mero UI 0.9.0 · Collections
4851
+ Mero UI 1.0.0 · Collections
4801
4852
 
4802
4853
  Present a selectable collection with arrow-key navigation.
4803
4854
 
@@ -4826,7 +4877,7 @@ Template
4826
4877
 
4827
4878
  # Tag Group
4828
4879
 
4829
- Mero UI 0.9.0 · Collections
4880
+ Mero UI 1.0.0 · Collections
4830
4881
 
4831
4882
  Display a small, labeled collection of metadata tags.
4832
4883
 
@@ -4851,7 +4902,7 @@ Template
4851
4902
 
4852
4903
  # Slider
4853
4904
 
4854
- Mero UI 0.9.0 · Controls
4905
+ Mero UI 1.0.0 · Controls
4855
4906
 
4856
4907
  Choose a value from a bounded range.
4857
4908
 
@@ -4877,7 +4928,7 @@ Template
4877
4928
 
4878
4929
  # Switch
4879
4930
 
4880
- Mero UI 0.9.0 · Controls
4931
+ Mero UI 1.0.0 · Controls
4881
4932
 
4882
4933
  Toggle one setting with a checkbox-backed switch.
4883
4934
 
@@ -4951,7 +5002,7 @@ Template
4951
5002
 
4952
5003
  # Alert
4953
5004
 
4954
- Mero UI 0.9.0 · Feedback
5005
+ Mero UI 1.0.0 · Feedback
4955
5006
 
4956
5007
  Place status or guidance alongside the content it describes.
4957
5008
 
@@ -4975,7 +5026,7 @@ Template
4975
5026
 
4976
5027
  # Empty State
4977
5028
 
4978
- Mero UI 0.9.0 · Feedback
5029
+ Mero UI 1.0.0 · Feedback
4979
5030
 
4980
5031
  Explain an empty result and give the user a relevant next action.
4981
5032
 
@@ -5030,7 +5081,7 @@ Template
5030
5081
 
5031
5082
  # Meter
5032
5083
 
5033
- Mero UI 0.9.0 · Feedback
5084
+ Mero UI 1.0.0 · Feedback
5034
5085
 
5035
5086
  Show a measurement between known bounds.
5036
5087
 
@@ -5057,7 +5108,7 @@ Template
5057
5108
 
5058
5109
  # Live Progress
5059
5110
 
5060
- Mero UI 0.9.0 · Feedback
5111
+ Mero UI 1.0.0 · Feedback
5061
5112
 
5062
5113
  Follow a deployment through to its final status.
5063
5114
 
@@ -5127,7 +5178,7 @@ Template
5127
5178
 
5128
5179
  # Progress Bar
5129
5180
 
5130
- Mero UI 0.9.0 · Feedback
5181
+ Mero UI 1.0.0 · Feedback
5131
5182
 
5132
5183
  Report measurable progress toward completion.
5133
5184
 
@@ -5153,7 +5204,7 @@ Template
5153
5204
 
5154
5205
  # Progress Circle
5155
5206
 
5156
- Mero UI 0.9.0 · Feedback
5207
+ Mero UI 1.0.0 · Feedback
5157
5208
 
5158
5209
  Show a completion value in a compact circular display.
5159
5210
 
@@ -5175,7 +5226,7 @@ Template
5175
5226
 
5176
5227
  # Skeleton
5177
5228
 
5178
- Mero UI 0.9.0 · Feedback
5229
+ Mero UI 1.0.0 · Feedback
5179
5230
 
5180
5231
  Reserve space for content while its HTML is loading.
5181
5232
 
@@ -5200,7 +5251,7 @@ Template
5200
5251
 
5201
5252
  # Spinner
5202
5253
 
5203
- Mero UI 0.9.0 · Feedback
5254
+ Mero UI 1.0.0 · Feedback
5204
5255
 
5205
5256
  Indicate that work is underway when the completion time is unknown.
5206
5257
 
@@ -5224,7 +5275,7 @@ Template
5224
5275
 
5225
5276
  # Card
5226
5277
 
5227
- Mero UI 0.9.0 · Layout
5278
+ Mero UI 1.0.0 · Layout
5228
5279
 
5229
5280
  Group related content and an action into one compact surface.
5230
5281
 
@@ -5304,7 +5355,7 @@ Template
5304
5355
 
5305
5356
  # Page Header
5306
5357
 
5307
- Mero UI 0.9.0 · Layout
5358
+ Mero UI 1.0.0 · Layout
5308
5359
 
5309
5360
  Open a page with its title, a short description and the page’s main actions.
5310
5361
 
@@ -5372,7 +5423,7 @@ Template
5372
5423
 
5373
5424
  # Separator
5374
5425
 
5375
- Mero UI 0.9.0 · Layout
5426
+ Mero UI 1.0.0 · Layout
5376
5427
 
5377
5428
  Separate related content sections using a semantic rule.
5378
5429
 
@@ -5397,7 +5448,7 @@ Template
5397
5448
 
5398
5449
  # Surface
5399
5450
 
5400
- Mero UI 0.9.0 · Layout
5451
+ Mero UI 1.0.0 · Layout
5401
5452
 
5402
5453
  Give related content a tonal background with shared theme tokens.
5403
5454
 
@@ -5421,7 +5472,7 @@ Template
5421
5472
 
5422
5473
  # Toolbar
5423
5474
 
5424
- Mero UI 0.9.0 · Layout
5475
+ Mero UI 1.0.0 · Layout
5425
5476
 
5426
5477
  Keep nearby actions aligned and grouped by purpose.
5427
5478
 
@@ -5448,7 +5499,7 @@ Template
5448
5499
 
5449
5500
  # Avatar
5450
5501
 
5451
- Mero UI 0.9.0 · Media
5502
+ Mero UI 1.0.0 · Media
5452
5503
 
5453
5504
  Represent a person with initials and an accessible name.
5454
5505
 
@@ -5472,7 +5523,7 @@ Template
5472
5523
 
5473
5524
  # Avatar Group
5474
5525
 
5475
- Mero UI 0.9.0 · Media
5526
+ Mero UI 1.0.0 · Media
5476
5527
 
5477
5528
  Show a compact cluster of people associated with a workspace.
5478
5529
 
@@ -5497,7 +5548,7 @@ Template
5497
5548
 
5498
5549
  # Autocomplete
5499
5550
 
5500
- Mero UI 0.9.0 · Pickers
5551
+ Mero UI 1.0.0 · Pickers
5501
5552
 
5502
5553
  Request matching options from the server as a user types.
5503
5554
 
@@ -5577,7 +5628,7 @@ Template
5577
5628
 
5578
5629
  # Combo Box
5579
5630
 
5580
- Mero UI 0.9.0 · Pickers
5631
+ Mero UI 1.0.0 · Pickers
5581
5632
 
5582
5633
  Filter and select from suggestions already on the page.
5583
5634
 
@@ -5615,9 +5666,49 @@ Template
5615
5666
  </div>
5616
5667
  ````
5617
5668
 
5669
+ ## Multi-select
5670
+
5671
+ Select multiple options as removable chips that submit as named hidden fields.
5672
+
5673
+ Type to filter, press Enter to toggle options, Backspace on an empty input to remove the last chip, or listen to mero:selection for changes.
5674
+
5675
+ Page assets
5676
+
5677
+ ```html
5678
+ <link rel="stylesheet" href="/mero.css">
5679
+ <script defer src="/mero.js"></script>
5680
+ ```
5681
+
5682
+ Template
5683
+
5684
+ ````html
5685
+ <div class="mero-scope" data-mero-scope>
5686
+ <div class="mero-field">
5687
+ <label class="mero-label" for="demo-multiselect">Channels</label>
5688
+ <div class="mero-multiselect" data-mero-multiselect data-mero-combo data-mero-multiselect-name="channels">
5689
+ <div class="mero-multiselect-control">
5690
+ <ul class="mero-tag-group mero-multiselect-chips" data-mero-multiselect-chips>
5691
+ <li class="mero-chip" data-value="webshop">Webshop<input type="hidden" name="channels" value="webshop"><button type="button" aria-label="Remove Webshop" data-mero-multiselect-remove>×</button></li>
5692
+ </ul>
5693
+ <input class="mero-multiselect-input" id="demo-multiselect" type="text" role="combobox"
5694
+ aria-expanded="false" aria-controls="demo-multiselect-options" aria-autocomplete="list"
5695
+ autocomplete="off" placeholder="Add channel…">
5696
+ </div>
5697
+ <ul class="mero-listbox mero-combo-list" id="demo-multiselect-options" role="listbox" aria-label="Channels" aria-multiselectable="true" hidden>
5698
+ <li class="mero-option" id="demo-multiselect-webshop" role="option" data-value="webshop" aria-selected="true">Webshop</li>
5699
+ <li class="mero-option" id="demo-multiselect-wholesale" role="option" data-value="wholesale" aria-selected="false">Wholesale</li>
5700
+ <li class="mero-option" id="demo-multiselect-retail" role="option" data-value="retail" aria-selected="false">Retail</li>
5701
+ <li class="mero-option" role="option" aria-disabled="true" data-mero-empty-option hidden>No matches</li>
5702
+ </ul>
5703
+ <span class="mero-description" data-mero-combo-status role="status"></span>
5704
+ </div>
5705
+ </div>
5706
+ </div>
5707
+ ````
5708
+
5618
5709
  # Select
5619
5710
 
5620
- Mero UI 0.9.0 · Pickers
5711
+ Mero UI 1.0.0 · Pickers
5621
5712
 
5622
5713
  Choose one of a fixed set of values using the platform’s picker.
5623
5714
 
@@ -5647,7 +5738,7 @@ Template
5647
5738
 
5648
5739
  # Kbd
5649
5740
 
5650
- Mero UI 0.9.0 · Typography
5741
+ Mero UI 1.0.0 · Typography
5651
5742
 
5652
5743
  Format a keyboard shortcut with native semantics.
5653
5744
 
@@ -5699,7 +5790,7 @@ Template
5699
5790
 
5700
5791
  # Typography
5701
5792
 
5702
- Mero UI 0.9.0 · Typography
5793
+ Mero UI 1.0.0 · Typography
5703
5794
 
5704
5795
  Apply the type scale to semantic content.
5705
5796
 
@@ -5747,7 +5838,7 @@ Template
5747
5838
 
5748
5839
  # Badge
5749
5840
 
5750
- Mero UI 0.9.0 · Data display
5841
+ Mero UI 1.0.0 · Data display
5751
5842
 
5752
5843
  Label a status using text and a semantic tone.
5753
5844
 
@@ -5772,7 +5863,7 @@ Template
5772
5863
 
5773
5864
  # Chip
5774
5865
 
5775
- Mero UI 0.9.0 · Data display
5866
+ Mero UI 1.0.0 · Data display
5776
5867
 
5777
5868
  Display a lightweight label for an attribute or filter value.
5778
5869
 
@@ -5793,7 +5884,7 @@ Template
5793
5884
 
5794
5885
  # Description List
5795
5886
 
5796
- Mero UI 0.9.0 · Data display
5887
+ Mero UI 1.0.0 · Data display
5797
5888
 
5798
5889
  Show a record’s fields as label and value pairs.
5799
5890
 
@@ -5822,7 +5913,7 @@ Template
5822
5913
 
5823
5914
  # Table
5824
5915
 
5825
- Mero UI 0.9.0 · Data display
5916
+ Mero UI 1.0.0 · Data display
5826
5917
 
5827
5918
  Show comparable records in a native table with column headers.
5828
5919
 
@@ -5909,7 +6000,7 @@ Template
5909
6000
 
5910
6001
  # Sortable Table
5911
6002
 
5912
- Mero UI 0.9.0 · Data display
6003
+ Mero UI 1.0.0 · Data display
5913
6004
 
5914
6005
  Sort server-rendered rows from the column headers and open a row from anywhere in it.
5915
6006
 
@@ -6211,7 +6302,7 @@ Template
6211
6302
 
6212
6303
  # Filter Chips
6213
6304
 
6214
- Mero UI 0.9.0 · Data display
6305
+ Mero UI 1.0.0 · Data display
6215
6306
 
6216
6307
  Add filters from a menu, see them as chips and remove them one at a time. The URL keeps the state.
6217
6308
 
@@ -6359,7 +6450,7 @@ Template
6359
6450
 
6360
6451
  # Color Area
6361
6452
 
6362
- Mero UI 0.9.0 · Colors
6453
+ Mero UI 1.0.0 · Colors
6363
6454
 
6364
6455
  Open a browser-managed color surface and submit the selected color.
6365
6456
 
@@ -6388,7 +6479,7 @@ Template
6388
6479
 
6389
6480
  # Color Field
6390
6481
 
6391
- Mero UI 0.9.0 · Colors
6482
+ Mero UI 1.0.0 · Colors
6392
6483
 
6393
6484
  Enter a six-digit hex value directly in a text field.
6394
6485
 
@@ -6417,7 +6508,7 @@ Template
6417
6508
 
6418
6509
  # Color Picker
6419
6510
 
6420
- Mero UI 0.9.0 · Colors
6511
+ Mero UI 1.0.0 · Colors
6421
6512
 
6422
6513
  Choose a color using the native picker UI.
6423
6514
 
@@ -6444,7 +6535,7 @@ Template
6444
6535
 
6445
6536
  # Color Slider
6446
6537
 
6447
- Mero UI 0.9.0 · Colors
6538
+ Mero UI 1.0.0 · Colors
6448
6539
 
6449
6540
  Adjust a hue along the color spectrum.
6450
6541
 
@@ -6474,7 +6565,7 @@ Template
6474
6565
 
6475
6566
  # Color Swatch
6476
6567
 
6477
- Mero UI 0.9.0 · Colors
6568
+ Mero UI 1.0.0 · Colors
6478
6569
 
6479
6570
  Show a color with its human-readable label.
6480
6571
 
@@ -6499,7 +6590,7 @@ Template
6499
6590
 
6500
6591
  # Scroll Shadow
6501
6592
 
6502
- Mero UI 0.9.0 · Utilities
6593
+ Mero UI 1.0.0 · Utilities
6503
6594
 
6504
6595
  Expose a scrollable region with a visual cue that more content is available.
6505
6596
 
@@ -6529,7 +6620,7 @@ Template
6529
6620
 
6530
6621
  # Visually Hidden
6531
6622
 
6532
- Mero UI 0.9.0 · Utilities
6623
+ Mero UI 1.0.0 · Utilities
6533
6624
 
6534
6625
  Give screen readers context that the visible text leaves implied.
6535
6626
 
@@ -6555,7 +6646,7 @@ Template
6555
6646
 
6556
6647
  # Join
6557
6648
 
6558
- Mero UI 0.9.0 · Composition
6649
+ Mero UI 1.0.0 · Composition
6559
6650
 
6560
6651
  Connect related controls with a shared outline.
6561
6652
 
@@ -6578,7 +6669,7 @@ Template
6578
6669
 
6579
6670
  # Menu
6580
6671
 
6581
- Mero UI 0.9.0 · Composition
6672
+ Mero UI 1.0.0 · Composition
6582
6673
 
6583
6674
  Group destinations with an active page and section labels.
6584
6675
 
@@ -6601,7 +6692,7 @@ Template
6601
6692
 
6602
6693
  # Hero
6603
6694
 
6604
- Mero UI 0.9.0 · Composition
6695
+ Mero UI 1.0.0 · Composition
6605
6696
 
6606
6697
  Pair a product introduction with a single destination.
6607
6698
 
@@ -6626,7 +6717,7 @@ Template
6626
6717
 
6627
6718
  # Footer
6628
6719
 
6629
- Mero UI 0.9.0 · Composition
6720
+ Mero UI 1.0.0 · Composition
6630
6721
 
6631
6722
  Close a workspace with a small group of navigation links.
6632
6723
 
@@ -6649,7 +6740,7 @@ Template
6649
6740
 
6650
6741
  # Theme Controller
6651
6742
 
6652
- Mero UI 0.9.0 · Composition
6743
+ Mero UI 1.0.0 · Composition
6653
6744
 
6654
6745
  Set a theme inside one section of a page.
6655
6746
 
@@ -6672,13 +6763,34 @@ Template
6672
6763
 
6673
6764
  # Validator
6674
6765
 
6675
- Mero UI 0.9.0 · Composition
6766
+ Mero UI 1.0.0 · Composition
6676
6767
 
6677
- Show a native field constraint and its correction.
6768
+ Show a native field constraint and its correction with zero JavaScript.
6678
6769
 
6679
6770
  ## Default
6680
6771
 
6681
- This checks the format locally. Use the inventory form to enforce a unique SKU on the server.
6772
+ Pure CSS :user-invalid and :user-valid styling keeps .mero-validator-hint hidden until interaction or a server HTTP 422 aria-invalid="true" response. Place the field inside any form or data-mero-form.
6773
+
6774
+ Page assets
6775
+
6776
+ ```html
6777
+ <link rel="stylesheet" href="/mero.css">
6778
+ <link rel="stylesheet" href="/mero-composition.css">
6779
+ <script defer src="/mero.js"></script>
6780
+ <script defer src="/mero-composition.js"></script>
6781
+ ```
6782
+
6783
+ Template
6784
+
6785
+ ````html
6786
+ <div class="mero-field"><label class="mero-label" for="val-sku">Catalog SKU</label><input id="val-sku" class="mero-input mero-validator" name="sku" required pattern="[A-Z]{2}-[0-9]{4}" placeholder="RL-2040" aria-describedby="val-sku-hint"><p id="val-sku-hint" class="mero-validator-hint">Use two uppercase letters, a hyphen and four digits (e.g. RL-2040).</p></div>
6787
+ ````
6788
+
6789
+ ## Server 422 state
6790
+
6791
+ A server-returned validation error sets aria-invalid="true", revealing .mero-validator-hint immediately on load or after an HTMX 422 swap.
6792
+
6793
+ Pure CSS :user-invalid and :user-valid styling keeps .mero-validator-hint hidden until interaction or a server HTTP 422 aria-invalid="true" response. Place the field inside any form or data-mero-form.
6682
6794
 
6683
6795
  Page assets
6684
6796
 
@@ -6692,12 +6804,12 @@ Page assets
6692
6804
  Template
6693
6805
 
6694
6806
  ````html
6695
- <form class="mero-validation-example" data-mero-check-form><label class="mero-label">Catalog SKU<input class="mero-input" name="sku" required pattern="[A-Z]{2}-[0-9]{4}" placeholder="RL-2040"></label><small>Use two uppercase letters, a hyphen and four digits.</small><button class="mero-button" type="submit">Check SKU</button><output role="status"></output></form>
6807
+ <div class="mero-field"><label class="mero-label" for="val-sku-err">Catalog SKU</label><input id="val-sku-err" class="mero-input mero-validator" name="sku" value="bad-sku" required pattern="[A-Z]{2}-[0-9]{4}" aria-invalid="true" aria-describedby="val-sku-err-hint"><p id="val-sku-err-hint" class="mero-validator-hint">Use two uppercase letters, a hyphen and four digits (e.g. RL-2040).</p></div>
6696
6808
  ````
6697
6809
 
6698
6810
  # Aura
6699
6811
 
6700
- Mero UI 0.9.0 · Display utilities
6812
+ Mero UI 1.0.0 · Display utilities
6701
6813
 
6702
6814
  Frame an interactive surface with a subtle moving highlight.
6703
6815
 
@@ -6720,7 +6832,7 @@ Template
6720
6832
 
6721
6833
  # Countdown
6722
6834
 
6723
- Mero UI 0.9.0 · Display utilities
6835
+ Mero UI 1.0.0 · Display utilities
6724
6836
 
6725
6837
  Show the time remaining until the next daily shipping cutoff.
6726
6838
 
@@ -6745,7 +6857,7 @@ Template
6745
6857
 
6746
6858
  # Indicator
6747
6859
 
6748
- Mero UI 0.9.0 · Display utilities
6860
+ Mero UI 1.0.0 · Display utilities
6749
6861
 
6750
6862
  Anchor a quantity to an icon or action.
6751
6863
 
@@ -6768,7 +6880,7 @@ Template
6768
6880
 
6769
6881
  # Mask
6770
6882
 
6771
- Mero UI 0.9.0 · Display utilities
6883
+ Mero UI 1.0.0 · Display utilities
6772
6884
 
6773
6885
  Crop an image while keeping its alternative text.
6774
6886
 
@@ -6793,7 +6905,7 @@ Template
6793
6905
 
6794
6906
  # Stack
6795
6907
 
6796
- Mero UI 0.9.0 · Display utilities
6908
+ Mero UI 1.0.0 · Display utilities
6797
6909
 
6798
6910
  Layer related previews while keeping the current item legible.
6799
6911
 
@@ -6818,7 +6930,7 @@ Template
6818
6930
 
6819
6931
  # Status
6820
6932
 
6821
- Mero UI 0.9.0 · Display utilities
6933
+ Mero UI 1.0.0 · Display utilities
6822
6934
 
6823
6935
  Show system status with a label and a visual marker.
6824
6936
 
@@ -6841,7 +6953,7 @@ Template
6841
6953
 
6842
6954
  # Swap
6843
6955
 
6844
- Mero UI 0.9.0 · Display utilities
6956
+ Mero UI 1.0.0 · Display utilities
6845
6957
 
6846
6958
  Switch between two labels or icons on a native control.
6847
6959
 
@@ -6864,7 +6976,7 @@ Template
6864
6976
 
6865
6977
  # Text Rotate
6866
6978
 
6867
- Mero UI 0.9.0 · Display utilities
6979
+ Mero UI 1.0.0 · Display utilities
6868
6980
 
6869
6981
  Rotate through short messages with explicit playback controls.
6870
6982
 
@@ -6887,7 +6999,7 @@ Template
6887
6999
 
6888
7000
  # Browser Mockup
6889
7001
 
6890
- Mero UI 0.9.0 · Mockups
7002
+ Mero UI 1.0.0 · Mockups
6891
7003
 
6892
7004
  Present a site preview inside a compact browser frame.
6893
7005
 
@@ -6912,7 +7024,7 @@ Template
6912
7024
 
6913
7025
  # Phone Mockup
6914
7026
 
6915
- Mero UI 0.9.0 · Mockups
7027
+ Mero UI 1.0.0 · Mockups
6916
7028
 
6917
7029
  Frame a mobile product screen.
6918
7030
 
@@ -6937,7 +7049,7 @@ Template
6937
7049
 
6938
7050
  # Window Mockup
6939
7051
 
6940
- Mero UI 0.9.0 · Mockups
7052
+ Mero UI 1.0.0 · Mockups
6941
7053
 
6942
7054
  Place a desktop tool inside a labelled window.
6943
7055
 
@@ -6960,7 +7072,7 @@ Template
6960
7072
 
6961
7073
  # Code Mockup
6962
7074
 
6963
- Mero UI 0.9.0 · Mockups
7075
+ Mero UI 1.0.0 · Mockups
6964
7076
 
6965
7077
  Present a terminal command and its output.
6966
7078