@rubenlangeweg/mero-ui 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +2 -2
  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 +42 -3
  10. package/agent-docs/components/area-chart.md +1 -1
  11. package/agent-docs/components/aura.md +1 -1
  12. package/agent-docs/components/autocomplete.md +1 -1
  13. package/agent-docs/components/avatar-group.md +1 -1
  14. package/agent-docs/components/avatar.md +1 -1
  15. package/agent-docs/components/badge.md +1 -1
  16. package/agent-docs/components/bar-chart.md +1 -1
  17. package/agent-docs/components/breadcrumbs.md +1 -1
  18. package/agent-docs/components/browser-mockup.md +1 -1
  19. package/agent-docs/components/button-group.md +1 -1
  20. package/agent-docs/components/button.md +1 -1
  21. package/agent-docs/components/calendar.md +67 -66
  22. package/agent-docs/components/card.md +1 -1
  23. package/agent-docs/components/carousel.md +1 -1
  24. package/agent-docs/components/cell-color-picker.md +1 -1
  25. package/agent-docs/components/cell-select.md +1 -1
  26. package/agent-docs/components/cell-slider.md +1 -1
  27. package/agent-docs/components/cell-switch.md +1 -1
  28. package/agent-docs/components/chain-of-thought.md +1 -1
  29. package/agent-docs/components/chart-tooltip.md +1 -1
  30. package/agent-docs/components/chat-attachment.md +1 -1
  31. package/agent-docs/components/chat-conversation.md +1 -1
  32. package/agent-docs/components/chat-list-view.md +1 -1
  33. package/agent-docs/components/chat-loader.md +1 -1
  34. package/agent-docs/components/chat-message-actions.md +1 -1
  35. package/agent-docs/components/chat-message.md +1 -1
  36. package/agent-docs/components/chat-source.md +1 -1
  37. package/agent-docs/components/chat-tool.md +1 -1
  38. package/agent-docs/components/checkbox-button-group.md +1 -1
  39. package/agent-docs/components/checkbox-group.md +1 -1
  40. package/agent-docs/components/checkbox.md +1 -1
  41. package/agent-docs/components/chip.md +1 -1
  42. package/agent-docs/components/close-button.md +1 -1
  43. package/agent-docs/components/code-block.md +1 -1
  44. package/agent-docs/components/code-mockup.md +1 -1
  45. package/agent-docs/components/color-area.md +1 -1
  46. package/agent-docs/components/color-field.md +1 -1
  47. package/agent-docs/components/color-picker.md +1 -1
  48. package/agent-docs/components/color-slider.md +1 -1
  49. package/agent-docs/components/color-swatch.md +1 -1
  50. package/agent-docs/components/combo-box.md +1 -1
  51. package/agent-docs/components/command-menu.md +1 -1
  52. package/agent-docs/components/command.md +1 -1
  53. package/agent-docs/components/composed-chart.md +1 -1
  54. package/agent-docs/components/context-menu.md +1 -1
  55. package/agent-docs/components/countdown.md +1 -1
  56. package/agent-docs/components/data-grid.md +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 +55 -3
  72. package/agent-docs/components/error-message.md +1 -1
  73. package/agent-docs/components/fab.md +1 -1
  74. package/agent-docs/components/field-error.md +1 -1
  75. package/agent-docs/components/fieldset.md +1 -1
  76. package/agent-docs/components/file-drop-zone.md +34 -0
  77. package/agent-docs/components/file-field.md +55 -0
  78. package/agent-docs/components/file-input.md +1 -1
  79. package/agent-docs/components/file-tree.md +1 -1
  80. package/agent-docs/components/filter-chips.md +1 -1
  81. package/agent-docs/components/floating-toc.md +1 -1
  82. package/agent-docs/components/footer.md +1 -1
  83. package/agent-docs/components/form.md +1 -1
  84. package/agent-docs/components/hero.md +1 -1
  85. package/agent-docs/components/holo-card.md +1 -1
  86. package/agent-docs/components/hover-card.md +1 -1
  87. package/agent-docs/components/hover-gallery.md +1 -1
  88. package/agent-docs/components/indicator.md +1 -1
  89. package/agent-docs/components/inline-select.md +1 -1
  90. package/agent-docs/components/input-group.md +1 -1
  91. package/agent-docs/components/input-otp.md +1 -1
  92. package/agent-docs/components/input.md +1 -1
  93. package/agent-docs/components/item-card-group.md +1 -1
  94. package/agent-docs/components/item-card.md +1 -1
  95. package/agent-docs/components/join.md +1 -1
  96. package/agent-docs/components/joined-filter.md +1 -1
  97. package/agent-docs/components/kanban.md +1 -1
  98. package/agent-docs/components/kbd.md +1 -1
  99. package/agent-docs/components/kpi-group.md +1 -1
  100. package/agent-docs/components/kpi.md +1 -1
  101. package/agent-docs/components/label.md +1 -1
  102. package/agent-docs/components/line-chart.md +1 -1
  103. package/agent-docs/components/link.md +1 -1
  104. package/agent-docs/components/list-box.md +1 -1
  105. package/agent-docs/components/list-view.md +1 -1
  106. package/agent-docs/components/live-progress.md +1 -1
  107. package/agent-docs/components/map.md +1 -1
  108. package/agent-docs/components/markdown.md +1 -1
  109. package/agent-docs/components/mask.md +1 -1
  110. package/agent-docs/components/megamenu.md +1 -1
  111. package/agent-docs/components/menu-button.md +1 -1
  112. package/agent-docs/components/menu.md +1 -1
  113. package/agent-docs/components/meter.md +1 -1
  114. package/agent-docs/components/modal.md +45 -1
  115. package/agent-docs/components/native-select.md +1 -1
  116. package/agent-docs/components/navbar.md +1 -1
  117. package/agent-docs/components/number-field.md +1 -1
  118. package/agent-docs/components/number-stepper.md +1 -1
  119. package/agent-docs/components/number-value.md +1 -1
  120. package/agent-docs/components/page-header.md +2 -2
  121. package/agent-docs/components/pagination.md +1 -1
  122. package/agent-docs/components/phone-mockup.md +1 -1
  123. package/agent-docs/components/pie-chart.md +1 -1
  124. package/agent-docs/components/popover.md +1 -1
  125. package/agent-docs/components/pressable-feedback.md +1 -1
  126. package/agent-docs/components/progress-bar.md +1 -1
  127. package/agent-docs/components/progress-circle.md +1 -1
  128. package/agent-docs/components/prompt-input.md +1 -1
  129. package/agent-docs/components/prompt-suggestion.md +1 -1
  130. package/agent-docs/components/radar-chart.md +1 -1
  131. package/agent-docs/components/radial-chart.md +1 -1
  132. package/agent-docs/components/radio-button-group.md +1 -1
  133. package/agent-docs/components/radio-group.md +1 -1
  134. package/agent-docs/components/range-calendar.md +1 -1
  135. package/agent-docs/components/rating.md +1 -1
  136. package/agent-docs/components/reorder-rows.md +114 -0
  137. package/agent-docs/components/resizable.md +1 -1
  138. package/agent-docs/components/rich-text-editor.md +1 -1
  139. package/agent-docs/components/scroll-shadow.md +1 -1
  140. package/agent-docs/components/search-field.md +1 -1
  141. package/agent-docs/components/segment.md +1 -1
  142. package/agent-docs/components/select.md +1 -1
  143. package/agent-docs/components/separator.md +1 -1
  144. package/agent-docs/components/sheet.md +1 -1
  145. package/agent-docs/components/sidebar.md +6 -3
  146. package/agent-docs/components/skeleton.md +1 -1
  147. package/agent-docs/components/slider.md +1 -1
  148. package/agent-docs/components/sortable-table.md +1 -1
  149. package/agent-docs/components/spinner.md +1 -1
  150. package/agent-docs/components/stack.md +1 -1
  151. package/agent-docs/components/status.md +1 -1
  152. package/agent-docs/components/stepper.md +1 -1
  153. package/agent-docs/components/surface.md +1 -1
  154. package/agent-docs/components/swap.md +1 -1
  155. package/agent-docs/components/switch.md +1 -1
  156. package/agent-docs/components/table.md +1 -1
  157. package/agent-docs/components/tabs.md +1 -1
  158. package/agent-docs/components/tag-group.md +1 -1
  159. package/agent-docs/components/text-area.md +1 -1
  160. package/agent-docs/components/text-field.md +1 -1
  161. package/agent-docs/components/text-rotate.md +1 -1
  162. package/agent-docs/components/text-shimmer.md +1 -1
  163. package/agent-docs/components/theme-controller.md +1 -1
  164. package/agent-docs/components/time-field.md +1 -1
  165. package/agent-docs/components/timeline.md +1 -1
  166. package/agent-docs/components/toast.md +1 -1
  167. package/agent-docs/components/toggle-button-group.md +1 -1
  168. package/agent-docs/components/toggle-button.md +1 -1
  169. package/agent-docs/components/toolbar.md +1 -1
  170. package/agent-docs/components/tooltip.md +1 -1
  171. package/agent-docs/components/trend-chip.md +1 -1
  172. package/agent-docs/components/typed-confirmation.md +1 -1
  173. package/agent-docs/components/typography.md +1 -1
  174. package/agent-docs/components/validator.md +1 -1
  175. package/agent-docs/components/visually-hidden.md +1 -1
  176. package/agent-docs/components/widget.md +1 -1
  177. package/agent-docs/components/window-mockup.md +1 -1
  178. package/agent-docs/llms-components.txt +584 -245
  179. package/agent-docs/llms-full.txt +607 -249
  180. package/agent-docs/llms-patterns.txt +24 -5
  181. package/agent-docs/llms.txt +4 -1
  182. package/dist/manifest.json +108 -108
  183. package/dist/ui/mero-collections.min.css +2 -2
  184. package/dist/ui/mero-collections.min.js +2 -2
  185. package/dist/ui/mero-composition.min.css +2 -2
  186. package/dist/ui/mero-composition.min.js +1 -1
  187. package/dist/ui/mero-forms.min.js +2 -2
  188. package/dist/ui/mero-gallery.min.css +2 -2
  189. package/dist/ui/mero-gallery.min.js +1 -1
  190. package/dist/ui/mero-insights.min.css +2 -2
  191. package/dist/ui/mero-insights.min.js +1 -1
  192. package/dist/ui/mero-layouts.min.css +2 -2
  193. package/dist/ui/mero-live.min.js +1 -1
  194. package/dist/ui/mero-themes.min.css +2 -2
  195. package/dist/ui/mero-workspace.min.css +3 -3
  196. package/dist/ui/mero-workspace.min.js +2 -2
  197. package/dist/ui/mero.min.css +3 -3
  198. package/dist/ui/mero.min.js +2 -2
  199. package/package.json +1 -1
  200. package/ui/insight-charts.d.ts +1 -1
  201. package/ui/insight-charts.mjs +1 -1
  202. package/ui/insight-markdown.d.ts +1 -1
  203. package/ui/insight-markdown.mjs +1 -1
  204. package/ui/mero-collections.css +1 -1
  205. package/ui/mero-collections.js +67 -1
  206. package/ui/mero-composition.css +1 -1
  207. package/ui/mero-composition.js +1 -1
  208. package/ui/mero-forms.js +174 -17
  209. package/ui/mero-gallery.css +1 -1
  210. package/ui/mero-gallery.js +1 -1
  211. package/ui/mero-insights.css +1 -1
  212. package/ui/mero-insights.js +1 -1
  213. package/ui/mero-layouts.css +1 -1
  214. package/ui/mero-live.js +1 -1
  215. package/ui/mero-themes.css +1 -1
  216. package/ui/mero-workspace.css +4 -2
  217. package/ui/mero-workspace.js +14 -4
  218. package/ui/mero.css +92 -3
  219. package/ui/mero.d.ts +17 -1
  220. package/ui/mero.js +84 -12
@@ -1,6 +1,6 @@
1
1
  # Input
2
2
 
3
- Mero UI 1.1.0 · Forms
3
+ Mero UI 1.2.0 · Forms
4
4
 
5
5
  A styled native input with browser validation and autocomplete.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Item Card Group
2
2
 
3
- Mero UI 1.1.0 · Studio collections
3
+ Mero UI 1.2.0 · Studio collections
4
4
 
5
5
  Arrange related destinations into a responsive group.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Item Card
2
2
 
3
- Mero UI 1.1.0 · Studio collections
3
+ Mero UI 1.2.0 · Studio collections
4
4
 
5
5
  Give a related destination an identity, title and supporting detail.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Join
2
2
 
3
- Mero UI 1.1.0 · Composition
3
+ Mero UI 1.2.0 · Composition
4
4
 
5
5
  Connect related controls with a shared outline.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Joined Filter
2
2
 
3
- Mero UI 1.1.0 · Workspace forms
3
+ Mero UI 1.2.0 · Workspace forms
4
4
 
5
5
  Search and filter releases with one server request.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Kanban
2
2
 
3
- Mero UI 1.1.0 · Studio collections
3
+ Mero UI 1.2.0 · Studio collections
4
4
 
5
5
  Move a card between stages with a drag or its Move to menu.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Kbd
2
2
 
3
- Mero UI 1.1.0 · Typography
3
+ Mero UI 1.2.0 · Typography
4
4
 
5
5
  Format a keyboard shortcut with native semantics.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # KPI Group
2
2
 
3
- Mero UI 1.1.0 · Metrics
3
+ Mero UI 1.2.0 · Metrics
4
4
 
5
5
  Keep related measures on a common reporting period.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # KPI
2
2
 
3
- Mero UI 1.1.0 · Metrics
3
+ Mero UI 1.2.0 · Metrics
4
4
 
5
5
  Pair an exact figure with the reporting period it describes.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Label
2
2
 
3
- Mero UI 1.1.0 · Forms
3
+ Mero UI 1.2.0 · Forms
4
4
 
5
5
  Name an input and expand its activation area.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Line Chart
2
2
 
3
- Mero UI 1.1.0 · Charts
3
+ Mero UI 1.2.0 · Charts
4
4
 
5
5
  Trace changes across a reporting period.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Link
2
2
 
3
- Mero UI 1.1.0 · Navigation
3
+ Mero UI 1.2.0 · Navigation
4
4
 
5
5
  Navigate to a real URL with native link semantics.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # List Box
2
2
 
3
- Mero UI 1.1.0 · Collections
3
+ Mero UI 1.2.0 · Collections
4
4
 
5
5
  Present a selectable collection with arrow-key navigation.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # List View
2
2
 
3
- Mero UI 1.1.0 · Studio collections
3
+ Mero UI 1.2.0 · Studio collections
4
4
 
5
5
  Browse structured destinations in a compact keyboard-accessible list.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Live Progress
2
2
 
3
- Mero UI 1.1.0 · Feedback
3
+ Mero UI 1.2.0 · Feedback
4
4
 
5
5
  Follow a deployment through to its final status.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Map
2
2
 
3
- Mero UI 1.1.0 · Studio collections
3
+ Mero UI 1.2.0 · Studio collections
4
4
 
5
5
  Choose a location on a self-contained campus map and read its address.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Markdown
2
2
 
3
- Mero UI 1.1.0 · Conversation
3
+ Mero UI 1.2.0 · Conversation
4
4
 
5
5
  Render a small safe subset of Markdown into semantic HTML.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Mask
2
2
 
3
- Mero UI 1.1.0 · Display utilities
3
+ Mero UI 1.2.0 · Display utilities
4
4
 
5
5
  Crop an image while keeping its alternative text.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Megamenu
2
2
 
3
- Mero UI 1.1.0 · Workspace navigation
3
+ Mero UI 1.2.0 · Workspace navigation
4
4
 
5
5
  Explore grouped destinations from a native disclosure.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Menu Button
2
2
 
3
- Mero UI 1.1.0 · Collections
3
+ Mero UI 1.2.0 · Collections
4
4
 
5
5
  Open row actions and move through them with the arrow keys.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Menu
2
2
 
3
- Mero UI 1.1.0 · Composition
3
+ Mero UI 1.2.0 · Composition
4
4
 
5
5
  Group destinations with an active page and section labels.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Meter
2
2
 
3
- Mero UI 1.1.0 · Feedback
3
+ Mero UI 1.2.0 · Feedback
4
4
 
5
5
  Show a measurement between known bounds.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Modal
2
2
 
3
- Mero UI 1.1.0 · Overlays
3
+ Mero UI 1.2.0 · Overlays
4
4
 
5
5
  Open a centered, named dialog with native focus containment.
6
6
 
@@ -8,6 +8,8 @@ Open a centered, named dialog with native focus containment.
8
8
 
9
9
  ## Default
10
10
 
11
+ The dialog is 28rem wide and keeps a 1.5rem gutter on narrow screens. Add mero-dialog-wide for 44rem, the width of a sheet, or set --mero-dialog-size on the dialog for another width; the gutter stays.
12
+
11
13
  Page assets
12
14
 
13
15
  ```html
@@ -32,3 +34,45 @@ Template
32
34
  </dialog>
33
35
  </div>
34
36
  ````
37
+
38
+ ## Wide
39
+
40
+ Give side-by-side content more room in a centered dialog.
41
+
42
+ Add mero-dialog-wide to a mero-dialog for 44rem. For another width, set --mero-dialog-size on the dialog itself, for example --mero-dialog-size: 36rem. Narrow screens keep Mero's 1.5rem gutter either way, so don't restate it in your own inline-size.
43
+
44
+ Page assets
45
+
46
+ ```html
47
+ <link rel="stylesheet" href="/mero.css">
48
+ <script defer src="/mero.js"></script>
49
+ ```
50
+
51
+ Template
52
+
53
+ ````html
54
+ <div class="mero-scope" data-mero-scope>
55
+ <button class="mero-button mero-button-primary" type="button" data-mero-open="demo-wide-dialog">Restore changes</button>
56
+ <dialog class="mero-dialog mero-dialog-wide" id="demo-wide-dialog" aria-labelledby="demo-wide-dialog-title" aria-describedby="demo-wide-dialog-description">
57
+ <div class="mero-dialog-body mero-stack">
58
+ <div>
59
+ <h2 class="mero-dialog-title" id="demo-wide-dialog-title">Restore changes</h2>
60
+ <p class="mero-description" id="demo-wide-dialog-description">Compare each field before you restore it.</p>
61
+ </div>
62
+ <div class="mero-table-wrap">
63
+ <table class="mero-table mero-table-compact">
64
+ <thead><tr><th scope="col">Field</th><th scope="col">Recorded</th><th scope="col">Current</th><th scope="col">Restore to</th></tr></thead>
65
+ <tbody>
66
+ <tr><th scope="row">Name</th><td>Studio North</td><td>Studio North East</td><td>Studio North</td></tr>
67
+ <tr><th scope="row">Region</th><td>Amsterdam</td><td>Rotterdam</td><td>Amsterdam</td></tr>
68
+ </tbody>
69
+ </table>
70
+ </div>
71
+ <div class="mero-dialog-footer">
72
+ <button class="mero-button mero-button-secondary" type="button" data-mero-close autofocus>Cancel</button>
73
+ <button class="mero-button mero-button-primary" type="button" data-mero-close>Restore</button>
74
+ </div>
75
+ </div>
76
+ </dialog>
77
+ </div>
78
+ ````
@@ -1,6 +1,6 @@
1
1
  # Native Select
2
2
 
3
- Mero UI 1.1.0 · Workspace forms
3
+ Mero UI 1.2.0 · Workspace forms
4
4
 
5
5
  Choose a workspace from labelled option groups.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Navbar
2
2
 
3
- Mero UI 1.1.0 · Workspace navigation
3
+ Mero UI 1.2.0 · Workspace navigation
4
4
 
5
5
  Place the workspace name and destinations in a wrapping top bar.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Number Field
2
2
 
3
- Mero UI 1.1.0 · Forms
3
+ Mero UI 1.2.0 · Forms
4
4
 
5
5
  Set numeric bounds and increments for a native field.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Number Stepper
2
2
 
3
- Mero UI 1.1.0 · Workspace forms
3
+ Mero UI 1.2.0 · Workspace forms
4
4
 
5
5
  Change a bounded quantity with the keyboard or step buttons.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Number Value
2
2
 
3
- Mero UI 1.1.0 · Interaction feedback
3
+ Mero UI 1.2.0 · Interaction feedback
4
4
 
5
5
  Display a localized number with its machine-readable value.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Page Header
2
2
 
3
- Mero UI 1.1.0 · Layout
3
+ Mero UI 1.2.0 · Layout
4
4
 
5
5
  Open a page with its title, a short description and the page’s main actions.
6
6
 
@@ -8,7 +8,7 @@ Open a page with its title, a short description and the page’s main actions.
8
8
 
9
9
  ## Default
10
10
 
11
- Use one per page, with the page’s h1. The description is a p inside the heading block. Actions sit at the end of the first row and wrap under the heading below 768 px. The layouts module uses the same class for its app pages.
11
+ Use one per page, with the page’s h1. A page has one h1: in an app shell it is either the header bar’s title or this Page Header, not both. When the content starts with a Page Header, a title the header bar still shows is plain text, not a heading. App Layout shows both arrangements: the Default variant puts the h1 in the header bar, and the Page Header in content variant puts it here. The description is a p inside the heading block. Actions sit at the end of the first row and wrap under the heading below 768 px. The layouts module uses the same class for its app pages.
12
12
 
13
13
  Page assets
14
14
 
@@ -1,6 +1,6 @@
1
1
  # Pagination
2
2
 
3
- Mero UI 1.1.0 · Navigation
3
+ Mero UI 1.2.0 · Navigation
4
4
 
5
5
  Navigate between result pages with server-rendered fragments.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Phone Mockup
2
2
 
3
- Mero UI 1.1.0 · Mockups
3
+ Mero UI 1.2.0 · Mockups
4
4
 
5
5
  Frame a mobile product screen.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Pie Chart
2
2
 
3
- Mero UI 1.1.0 · Charts
3
+ Mero UI 1.2.0 · Charts
4
4
 
5
5
  See how each collection contributes to total volume.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Popover
2
2
 
3
- Mero UI 1.1.0 · Overlays
3
+ Mero UI 1.2.0 · Overlays
4
4
 
5
5
  Display contextual information using the browser’s top layer.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Pressable Feedback
2
2
 
3
- Mero UI 1.1.0 · Interaction feedback
3
+ Mero UI 1.2.0 · Interaction feedback
4
4
 
5
5
  Give a press a tactile response and keep its selected state visible.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Progress Bar
2
2
 
3
- Mero UI 1.1.0 · Feedback
3
+ Mero UI 1.2.0 · Feedback
4
4
 
5
5
  Report measurable progress toward completion.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Progress Circle
2
2
 
3
- Mero UI 1.1.0 · Feedback
3
+ Mero UI 1.2.0 · Feedback
4
4
 
5
5
  Show a completion value in a compact circular display.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Prompt Input
2
2
 
3
- Mero UI 1.1.0 · Conversation
3
+ Mero UI 1.2.0 · Conversation
4
4
 
5
5
  Collect a question and submit it to a server-rendered response endpoint.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Prompt Suggestion
2
2
 
3
- Mero UI 1.1.0 · Conversation
3
+ Mero UI 1.2.0 · Conversation
4
4
 
5
5
  Choose a suggested prompt, edit it, then send it.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Radar Chart
2
2
 
3
- Mero UI 1.1.0 · Charts
3
+ Mero UI 1.2.0 · Charts
4
4
 
5
5
  Compare profiles across axes that use the same units.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Radial Chart
2
2
 
3
- Mero UI 1.1.0 · Charts
3
+ Mero UI 1.2.0 · Charts
4
4
 
5
5
  Compare categories as concentric rings against the largest category.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Radio Button Group
2
2
 
3
- Mero UI 1.1.0 · Workspace forms
3
+ Mero UI 1.2.0 · Workspace forms
4
4
 
5
5
  Choose one release schedule with labelled option cards.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Radio Group
2
2
 
3
- Mero UI 1.1.0 · Forms
3
+ Mero UI 1.2.0 · Forms
4
4
 
5
5
  Choose exactly one option from a labeled set.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Range Calendar
2
2
 
3
- Mero UI 1.1.0 · Date and time
3
+ Mero UI 1.2.0 · Date and time
4
4
 
5
5
  Build a range with two native calendar controls.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Rating
2
2
 
3
- Mero UI 1.1.0 · Interaction feedback
3
+ Mero UI 1.2.0 · Interaction feedback
4
4
 
5
5
  Choose a labelled score using native radio controls.
6
6
 
@@ -0,0 +1,114 @@
1
+ # Reorder Rows
2
+
3
+ Mero UI 1.2.0 · Studio collections
4
+
5
+ Change the order of table or list rows from the keyboard and save it with a form.
6
+
7
+ [Integration patterns and API reference](../llms-patterns.txt)
8
+
9
+ ## Default
10
+
11
+ Put data-mero-reorder on the tbody or List View and data-mero-reorder-id on each row. Choose Move up or Move down in a row’s Actions menu, or press Alt+Up Arrow or Alt+Down Arrow with focus anywhere in the row. Focus stays on the moved row and the data-mero-reorder-status region announces the new position, such as “French moved to position 2 of 4”. Mero marks Move up in the first row and Move down in the last as aria-disabled. Each row carries a hidden input with its ID, so submitting the form posts the rows in their new order. The bubbling mero:reorder event carries the new order in event.detail.order; set hx-trigger to mero:reorder and hx-sync to this:queue last on the form to save every move, so moves made while a save is in flight end with one request carrying the latest order. Pointer drag is not included.
12
+
13
+ Page assets
14
+
15
+ ```html
16
+ <link rel="stylesheet" href="/mero.css">
17
+ <link rel="stylesheet" href="/mero-collections.css">
18
+ <script defer src="/vendor/htmx.min.js"></script>
19
+ <script defer src="/mero.js"></script>
20
+ <script defer src="/mero-collections.js"></script>
21
+ ```
22
+
23
+ Template
24
+
25
+ ````html
26
+ <form class="mero-stack" method="post" action="/demo/collections/order" hx-post="/demo/collections/order" hx-target="#reorder-result" hx-swap="innerHTML">
27
+ <div class="mero-table-wrap">
28
+ <table class="mero-table">
29
+ <caption>Content languages</caption>
30
+ <thead><tr><th scope="col">Language</th><th scope="col">Code</th><th scope="col">Actions</th></tr></thead>
31
+ <tbody data-mero-reorder>
32
+ <tr data-mero-reorder-id="en">
33
+ <th scope="row">English<input type="hidden" name="order" value="en"></th>
34
+ <td><code>en</code></td>
35
+ <td>
36
+ <button class="mero-button mero-button-ghost mero-button-sm" id="language-en-actions" type="button" popovertarget="language-en-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for English" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown">Actions</button>
37
+ <div class="mero-popover mero-menu" id="language-en-menu" popover role="menu" aria-label="English actions">
38
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="up" aria-keyshortcuts="Alt+ArrowUp">Move up</button>
39
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="down" aria-keyshortcuts="Alt+ArrowDown">Move down</button>
40
+ </div>
41
+ </td>
42
+ </tr>
43
+ <tr data-mero-reorder-id="de">
44
+ <th scope="row">German<input type="hidden" name="order" value="de"></th>
45
+ <td><code>de</code></td>
46
+ <td>
47
+ <button class="mero-button mero-button-ghost mero-button-sm" id="language-de-actions" type="button" popovertarget="language-de-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for German" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown">Actions</button>
48
+ <div class="mero-popover mero-menu" id="language-de-menu" popover role="menu" aria-label="German actions">
49
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="up" aria-keyshortcuts="Alt+ArrowUp">Move up</button>
50
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="down" aria-keyshortcuts="Alt+ArrowDown">Move down</button>
51
+ </div>
52
+ </td>
53
+ </tr>
54
+ <tr data-mero-reorder-id="fr">
55
+ <th scope="row">French<input type="hidden" name="order" value="fr"></th>
56
+ <td><code>fr</code></td>
57
+ <td>
58
+ <button class="mero-button mero-button-ghost mero-button-sm" id="language-fr-actions" type="button" popovertarget="language-fr-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for French" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown">Actions</button>
59
+ <div class="mero-popover mero-menu" id="language-fr-menu" popover role="menu" aria-label="French actions">
60
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="up" aria-keyshortcuts="Alt+ArrowUp">Move up</button>
61
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="down" aria-keyshortcuts="Alt+ArrowDown">Move down</button>
62
+ </div>
63
+ </td>
64
+ </tr>
65
+ <tr data-mero-reorder-id="nl">
66
+ <th scope="row">Dutch<input type="hidden" name="order" value="nl"></th>
67
+ <td><code>nl</code></td>
68
+ <td>
69
+ <button class="mero-button mero-button-ghost mero-button-sm" id="language-nl-actions" type="button" popovertarget="language-nl-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for Dutch" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown">Actions</button>
70
+ <div class="mero-popover mero-menu" id="language-nl-menu" popover role="menu" aria-label="Dutch actions">
71
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="up" aria-keyshortcuts="Alt+ArrowUp">Move up</button>
72
+ <button class="mero-menu-item" type="button" role="menuitem" data-mero-reorder-move="down" aria-keyshortcuts="Alt+ArrowDown">Move down</button>
73
+ </div>
74
+ </td>
75
+ </tr>
76
+ </tbody>
77
+ </table>
78
+ </div>
79
+ <p class="mero-sr-only" role="status" data-mero-reorder-status></p>
80
+ <button class="mero-button mero-button-primary" type="submit">Save order</button>
81
+ <div class="mero-form-status" id="reorder-result" role="status"></div>
82
+ </form>
83
+ ````
84
+
85
+ ## List View
86
+
87
+ Reorder List View rows with Alt+Arrow keys and save each move.
88
+
89
+ With a row link focused, Alt+Up Arrow or Alt+Down Arrow moves it. The form’s hx-trigger is mero:reorder, so each move posts the hidden inputs in their new order. hx-sync="this:queue last" makes moves made during a save send the latest order once that save ends.
90
+
91
+ Page assets
92
+
93
+ ```html
94
+ <link rel="stylesheet" href="/mero.css">
95
+ <link rel="stylesheet" href="/mero-collections.css">
96
+ <script defer src="/vendor/htmx.min.js"></script>
97
+ <script defer src="/mero.js"></script>
98
+ <script defer src="/mero-collections.js"></script>
99
+ ```
100
+
101
+ Template
102
+
103
+ ````html
104
+ <form class="mero-stack" method="post" action="/demo/collections/order" hx-post="/demo/collections/order" hx-trigger="mero:reorder" hx-sync="this:queue last" hx-target="#reorder-list-result" hx-swap="innerHTML">
105
+ <section class="mero-list-view" aria-label="Content languages" data-mero-reorder>
106
+ <a href="/components/reorder-rows" data-mero-reorder-id="en" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span><strong>English</strong><small>en</small></span><input type="hidden" name="order" value="en"><span aria-hidden="true">→</span></a>
107
+ <a href="/components/reorder-rows" data-mero-reorder-id="de" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span><strong>German</strong><small>de</small></span><input type="hidden" name="order" value="de"><span aria-hidden="true">→</span></a>
108
+ <a href="/components/reorder-rows" data-mero-reorder-id="fr" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span><strong>French</strong><small>fr</small></span><input type="hidden" name="order" value="fr"><span aria-hidden="true">→</span></a>
109
+ <a href="/components/reorder-rows" data-mero-reorder-id="nl" aria-keyshortcuts="Alt+ArrowUp Alt+ArrowDown"><span><strong>Dutch</strong><small>nl</small></span><input type="hidden" name="order" value="nl"><span aria-hidden="true">→</span></a>
110
+ </section>
111
+ <p class="mero-sr-only" role="status" data-mero-reorder-status></p>
112
+ <div class="mero-form-status" id="reorder-list-result" role="status"></div>
113
+ </form>
114
+ ````
@@ -1,6 +1,6 @@
1
1
  # Resizable
2
2
 
3
- Mero UI 1.1.0 · Workspace tools
3
+ Mero UI 1.2.0 · Workspace tools
4
4
 
5
5
  Resize two adjacent panels by dragging the divider or using the arrow keys.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Rich Text Editor
2
2
 
3
- Mero UI 1.1.0 · Workspace forms
3
+ Mero UI 1.2.0 · Workspace forms
4
4
 
5
5
  Edit a short description with bold and italic text and preview the submitted result.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Scroll Shadow
2
2
 
3
- Mero UI 1.1.0 · Utilities
3
+ Mero UI 1.2.0 · Utilities
4
4
 
5
5
  Expose a scrollable region with a visual cue that more content is available.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Search Field
2
2
 
3
- Mero UI 1.1.0 · Forms
3
+ Mero UI 1.2.0 · Forms
4
4
 
5
5
  Use a native search field with the platform’s clear affordance.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Segment
2
2
 
3
- Mero UI 1.1.0 · Workspace navigation
3
+ Mero UI 1.2.0 · Workspace navigation
4
4
 
5
5
  Choose one display density in a compact segmented control.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Select
2
2
 
3
- Mero UI 1.1.0 · Pickers
3
+ Mero UI 1.2.0 · Pickers
4
4
 
5
5
  Choose one of a fixed set of values using the platform’s picker.
6
6