@rubenlangeweg/mero-ui 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +4 -4
  3. package/agent-docs/components/accordion.md +1 -1
  4. package/agent-docs/components/action-bar.md +1 -1
  5. package/agent-docs/components/action-button.md +32 -1
  6. package/agent-docs/components/agenda.md +1 -1
  7. package/agent-docs/components/alert-dialog.md +1 -1
  8. package/agent-docs/components/alert.md +1 -1
  9. package/agent-docs/components/app-layout.md +1 -1
  10. package/agent-docs/components/area-chart.md +1 -1
  11. package/agent-docs/components/aura.md +1 -1
  12. package/agent-docs/components/autocomplete.md +1 -1
  13. package/agent-docs/components/avatar-group.md +1 -1
  14. package/agent-docs/components/avatar.md +1 -1
  15. package/agent-docs/components/badge.md +1 -1
  16. package/agent-docs/components/bar-chart.md +1 -1
  17. package/agent-docs/components/breadcrumbs.md +1 -1
  18. package/agent-docs/components/browser-mockup.md +1 -1
  19. package/agent-docs/components/button-group.md +1 -1
  20. package/agent-docs/components/button.md +32 -1
  21. package/agent-docs/components/calendar.md +1 -1
  22. package/agent-docs/components/card.md +56 -1
  23. package/agent-docs/components/carousel.md +1 -1
  24. package/agent-docs/components/cell-color-picker.md +1 -1
  25. package/agent-docs/components/cell-select.md +1 -1
  26. package/agent-docs/components/cell-slider.md +1 -1
  27. package/agent-docs/components/cell-switch.md +1 -1
  28. package/agent-docs/components/chain-of-thought.md +1 -1
  29. package/agent-docs/components/chart-tooltip.md +1 -1
  30. package/agent-docs/components/chat-attachment.md +1 -1
  31. package/agent-docs/components/chat-conversation.md +1 -1
  32. package/agent-docs/components/chat-list-view.md +1 -1
  33. package/agent-docs/components/chat-loader.md +1 -1
  34. package/agent-docs/components/chat-message-actions.md +1 -1
  35. package/agent-docs/components/chat-message.md +1 -1
  36. package/agent-docs/components/chat-source.md +1 -1
  37. package/agent-docs/components/chat-tool.md +1 -1
  38. package/agent-docs/components/checkbox-button-group.md +1 -1
  39. package/agent-docs/components/checkbox-group.md +1 -1
  40. package/agent-docs/components/checkbox.md +1 -1
  41. package/agent-docs/components/chip.md +1 -1
  42. package/agent-docs/components/close-button.md +1 -1
  43. package/agent-docs/components/code-block.md +1 -1
  44. package/agent-docs/components/code-mockup.md +1 -1
  45. package/agent-docs/components/color-area.md +1 -1
  46. package/agent-docs/components/color-field.md +1 -1
  47. package/agent-docs/components/color-picker.md +1 -1
  48. package/agent-docs/components/color-slider.md +1 -1
  49. package/agent-docs/components/color-swatch.md +1 -1
  50. package/agent-docs/components/combo-box.md +1 -1
  51. package/agent-docs/components/command-menu.md +1 -1
  52. package/agent-docs/components/command.md +1 -1
  53. package/agent-docs/components/composed-chart.md +1 -1
  54. package/agent-docs/components/context-menu.md +1 -1
  55. package/agent-docs/components/countdown.md +1 -1
  56. package/agent-docs/components/data-grid.md +1 -1
  57. package/agent-docs/components/date-field.md +1 -1
  58. package/agent-docs/components/date-picker.md +1 -1
  59. package/agent-docs/components/date-range-picker.md +1 -1
  60. package/agent-docs/components/description-list.md +30 -0
  61. package/agent-docs/components/description.md +1 -1
  62. package/agent-docs/components/diff.md +1 -1
  63. package/agent-docs/components/disclosure-group.md +1 -1
  64. package/agent-docs/components/disclosure.md +1 -1
  65. package/agent-docs/components/dock.md +1 -1
  66. package/agent-docs/components/drawer.md +83 -1
  67. package/agent-docs/components/drop-zone.md +1 -1
  68. package/agent-docs/components/dropdown.md +1 -1
  69. package/agent-docs/components/emoji-picker.md +1 -1
  70. package/agent-docs/components/emoji-reaction-button.md +1 -1
  71. package/agent-docs/components/empty-state.md +36 -4
  72. package/agent-docs/components/error-message.md +1 -1
  73. package/agent-docs/components/fab.md +1 -1
  74. package/agent-docs/components/field-error.md +1 -1
  75. package/agent-docs/components/fieldset.md +45 -1
  76. package/agent-docs/components/file-input.md +1 -1
  77. package/agent-docs/components/file-tree.md +1 -1
  78. package/agent-docs/components/filter-chips.md +1 -1
  79. package/agent-docs/components/floating-toc.md +1 -1
  80. package/agent-docs/components/footer.md +1 -1
  81. package/agent-docs/components/form.md +155 -1
  82. package/agent-docs/components/hero.md +1 -1
  83. package/agent-docs/components/holo-card.md +1 -1
  84. package/agent-docs/components/hover-card.md +1 -1
  85. package/agent-docs/components/hover-gallery.md +1 -1
  86. package/agent-docs/components/indicator.md +1 -1
  87. package/agent-docs/components/inline-select.md +1 -1
  88. package/agent-docs/components/input-group.md +1 -1
  89. package/agent-docs/components/input-otp.md +1 -1
  90. package/agent-docs/components/input.md +1 -1
  91. package/agent-docs/components/item-card-group.md +1 -1
  92. package/agent-docs/components/item-card.md +1 -1
  93. package/agent-docs/components/join.md +1 -1
  94. package/agent-docs/components/joined-filter.md +1 -1
  95. package/agent-docs/components/kanban.md +1 -1
  96. package/agent-docs/components/kbd.md +32 -1
  97. package/agent-docs/components/kpi-group.md +1 -1
  98. package/agent-docs/components/kpi.md +1 -1
  99. package/agent-docs/components/label.md +1 -1
  100. package/agent-docs/components/line-chart.md +1 -1
  101. package/agent-docs/components/link.md +1 -1
  102. package/agent-docs/components/list-box.md +1 -1
  103. package/agent-docs/components/list-view.md +1 -1
  104. package/agent-docs/components/live-progress.md +34 -1
  105. package/agent-docs/components/map.md +1 -1
  106. package/agent-docs/components/markdown.md +1 -1
  107. package/agent-docs/components/mask.md +1 -1
  108. package/agent-docs/components/megamenu.md +1 -1
  109. package/agent-docs/components/menu-button.md +35 -1
  110. package/agent-docs/components/menu.md +1 -1
  111. package/agent-docs/components/meter.md +1 -1
  112. package/agent-docs/components/modal.md +1 -1
  113. package/agent-docs/components/native-select.md +1 -1
  114. package/agent-docs/components/navbar.md +1 -1
  115. package/agent-docs/components/number-field.md +1 -1
  116. package/agent-docs/components/number-stepper.md +1 -1
  117. package/agent-docs/components/number-value.md +1 -1
  118. package/agent-docs/components/page-header.md +69 -0
  119. package/agent-docs/components/pagination.md +1 -1
  120. package/agent-docs/components/phone-mockup.md +1 -1
  121. package/agent-docs/components/pie-chart.md +1 -1
  122. package/agent-docs/components/popover.md +1 -1
  123. package/agent-docs/components/pressable-feedback.md +1 -1
  124. package/agent-docs/components/progress-bar.md +1 -1
  125. package/agent-docs/components/progress-circle.md +1 -1
  126. package/agent-docs/components/prompt-input.md +1 -1
  127. package/agent-docs/components/prompt-suggestion.md +1 -1
  128. package/agent-docs/components/radar-chart.md +1 -1
  129. package/agent-docs/components/radial-chart.md +1 -1
  130. package/agent-docs/components/radio-button-group.md +1 -1
  131. package/agent-docs/components/radio-group.md +1 -1
  132. package/agent-docs/components/range-calendar.md +1 -1
  133. package/agent-docs/components/rating.md +1 -1
  134. package/agent-docs/components/resizable.md +1 -1
  135. package/agent-docs/components/rich-text-editor.md +1 -1
  136. package/agent-docs/components/scroll-shadow.md +1 -1
  137. package/agent-docs/components/search-field.md +43 -1
  138. package/agent-docs/components/segment.md +1 -1
  139. package/agent-docs/components/select.md +1 -1
  140. package/agent-docs/components/separator.md +1 -1
  141. package/agent-docs/components/sheet.md +1 -1
  142. package/agent-docs/components/sidebar.md +1 -1
  143. package/agent-docs/components/skeleton.md +1 -1
  144. package/agent-docs/components/slider.md +1 -1
  145. package/agent-docs/components/sortable-table.md +1 -1
  146. package/agent-docs/components/spinner.md +1 -1
  147. package/agent-docs/components/stack.md +1 -1
  148. package/agent-docs/components/status.md +1 -1
  149. package/agent-docs/components/stepper.md +1 -1
  150. package/agent-docs/components/surface.md +1 -1
  151. package/agent-docs/components/swap.md +1 -1
  152. package/agent-docs/components/switch.md +1 -1
  153. package/agent-docs/components/table.md +58 -1
  154. package/agent-docs/components/tabs.md +24 -1
  155. package/agent-docs/components/tag-group.md +1 -1
  156. package/agent-docs/components/text-area.md +1 -1
  157. package/agent-docs/components/text-field.md +1 -1
  158. package/agent-docs/components/text-rotate.md +1 -1
  159. package/agent-docs/components/text-shimmer.md +1 -1
  160. package/agent-docs/components/theme-controller.md +1 -1
  161. package/agent-docs/components/time-field.md +1 -1
  162. package/agent-docs/components/timeline.md +1 -1
  163. package/agent-docs/components/toast.md +1 -1
  164. package/agent-docs/components/toggle-button-group.md +1 -1
  165. package/agent-docs/components/toggle-button.md +1 -1
  166. package/agent-docs/components/toolbar.md +1 -1
  167. package/agent-docs/components/tooltip.md +1 -1
  168. package/agent-docs/components/trend-chip.md +1 -1
  169. package/agent-docs/components/typed-confirmation.md +1 -1
  170. package/agent-docs/components/typography.md +24 -1
  171. package/agent-docs/components/validator.md +1 -1
  172. package/agent-docs/components/visually-hidden.md +27 -0
  173. package/agent-docs/components/widget.md +1 -1
  174. package/agent-docs/components/window-mockup.md +1 -1
  175. package/agent-docs/llms-components.txt +987 -192
  176. package/agent-docs/llms-full.txt +1016 -201
  177. package/agent-docs/llms-patterns.txt +30 -10
  178. package/agent-docs/llms.txt +5 -2
  179. package/package.json +1 -1
  180. package/ui/insight-charts.mjs +1 -1
  181. package/ui/insight-markdown.mjs +1 -1
  182. package/ui/mero-collections.css +1 -7
  183. package/ui/mero-collections.js +1 -1
  184. package/ui/mero-composition.css +1 -1
  185. package/ui/mero-composition.js +1 -1
  186. package/ui/mero-forms.js +415 -27
  187. package/ui/mero-gallery.css +1 -1
  188. package/ui/mero-gallery.js +1 -1
  189. package/ui/mero-insights.css +1 -1
  190. package/ui/mero-insights.js +1 -1
  191. package/ui/mero-inventory.css +1 -1
  192. package/ui/mero-inventory.js +1 -1
  193. package/ui/mero-layouts.css +1 -4
  194. package/ui/mero-live.js +25 -4
  195. package/ui/mero-workspace.css +1 -1
  196. package/ui/mero-workspace.js +1 -1
  197. package/ui/mero.css +104 -5
  198. package/ui/mero.js +202 -2
@@ -1,6 +1,6 @@
1
1
  # Search Field
2
2
 
3
- Mero UI 0.7.0 · Forms
3
+ Mero UI 0.8.0 · Forms
4
4
 
5
5
  Use a native search field with the platform’s clear affordance.
6
6
 
@@ -26,3 +26,45 @@ Template
26
26
  </div>
27
27
  </div>
28
28
  ````
29
+
30
+ ## Filtered list
31
+
32
+ Filter a list as you type without losing it when the server fails.
33
+
34
+ Choose Archived to see a failed read: the list keeps its previous results, the error explains why and the status select returns to the filter the list shows. Mero also skips a 2xx response without the hx-select region, and loads a redirected response without it as a full page, such as a login page after the session expired.
35
+
36
+ Page assets
37
+
38
+ ```html
39
+ <link rel="stylesheet" href="/mero.css">
40
+ <script defer src="/vendor/htmx.min.js"></script>
41
+ <script defer src="/mero.js"></script>
42
+ <script defer src="/mero-forms.js"></script>
43
+ ```
44
+
45
+ Template
46
+
47
+ ````html
48
+ <div class="mero-scope" data-mero-scope>
49
+ <form class="mero-stack" role="search" action="/demo/catalog/search-results" method="get" data-mero-search
50
+ hx-get="/demo/catalog/search-results" hx-trigger="input delay:250ms, submit" hx-sync="this:replace"
51
+ hx-target="#search-demo-results" hx-select="#search-demo-results" hx-swap="outerHTML">
52
+ <div class="mero-field">
53
+ <label class="mero-label" for="search-demo-q">Search projects</label>
54
+ <input class="mero-input" id="search-demo-q" type="search" name="q" autocomplete="off">
55
+
56
+ </div>
57
+ <div class="mero-field">
58
+ <label class="mero-label" for="search-demo-status">Status</label>
59
+ <select class="mero-select" id="search-demo-status" name="status">
60
+ <option value="" selected>Any status</option>
61
+ <option value="active">Active</option>
62
+ <option value="paused">Paused</option>
63
+ <option value="archived">Archived (simulated server error)</option>
64
+ </select>
65
+ </div>
66
+ <p class="mero-field-error" data-mero-search-error role="alert" hidden></p>
67
+ </form>
68
+ <ul class="mero-stack" id="search-demo-results" aria-label="Projects"><li>Atlas <span class="mero-badge">active</span></li><li>Beacon <span class="mero-badge">paused</span></li><li>Cobalt <span class="mero-badge">active</span></li><li>Delta <span class="mero-badge">archived</span></li><li>Ember <span class="mero-badge">active</span></li></ul>
69
+ </div>
70
+ ````
@@ -1,6 +1,6 @@
1
1
  # Segment
2
2
 
3
- Mero UI 0.7.0 · Workspace navigation
3
+ Mero UI 0.8.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 0.7.0 · Pickers
3
+ Mero UI 0.8.0 · Pickers
4
4
 
5
5
  Choose one of a fixed set of values using the platform’s picker.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Separator
2
2
 
3
- Mero UI 0.7.0 · Layout
3
+ Mero UI 0.8.0 · Layout
4
4
 
5
5
  Separate related content sections using a semantic rule.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Sheet
2
2
 
3
- Mero UI 0.7.0 · Overlays
3
+ Mero UI 0.8.0 · Overlays
4
4
 
5
5
  Present concise secondary content from the bottom edge.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Sidebar
2
2
 
3
- Mero UI 0.7.0 · Workspace navigation
3
+ Mero UI 0.8.0 · Workspace navigation
4
4
 
5
5
  Navigate the workspace from a side rail that becomes a drawer at narrow widths.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Skeleton
2
2
 
3
- Mero UI 0.7.0 · Feedback
3
+ Mero UI 0.8.0 · Feedback
4
4
 
5
5
  Reserve space for content while its HTML is loading.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Slider
2
2
 
3
- Mero UI 0.7.0 · Controls
3
+ Mero UI 0.8.0 · Controls
4
4
 
5
5
  Choose a value from a bounded range.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Sortable Table
2
2
 
3
- Mero UI 0.7.0 · Data display
3
+ Mero UI 0.8.0 · Data display
4
4
 
5
5
  Sort server-rendered rows from the column headers and open a row from anywhere in it.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Spinner
2
2
 
3
- Mero UI 0.7.0 · Feedback
3
+ Mero UI 0.8.0 · Feedback
4
4
 
5
5
  Indicate that work is underway when the completion time is unknown.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Stack
2
2
 
3
- Mero UI 0.7.0 · Display utilities
3
+ Mero UI 0.8.0 · Display utilities
4
4
 
5
5
  Layer related previews while keeping the current item legible.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Status
2
2
 
3
- Mero UI 0.7.0 · Display utilities
3
+ Mero UI 0.8.0 · Display utilities
4
4
 
5
5
  Show system status with a label and a visual marker.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Stepper
2
2
 
3
- Mero UI 0.7.0 · Workspace navigation
3
+ Mero UI 0.8.0 · Workspace navigation
4
4
 
5
5
  Move through validated project details and review the values before submitting.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Surface
2
2
 
3
- Mero UI 0.7.0 · Layout
3
+ Mero UI 0.8.0 · Layout
4
4
 
5
5
  Give related content a tonal background with shared theme tokens.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Swap
2
2
 
3
- Mero UI 0.7.0 · Display utilities
3
+ Mero UI 0.8.0 · Display utilities
4
4
 
5
5
  Switch between two labels or icons on a native control.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Switch
2
2
 
3
- Mero UI 0.7.0 · Controls
3
+ Mero UI 0.8.0 · Controls
4
4
 
5
5
  Toggle one setting with a checkbox-backed switch.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Table
2
2
 
3
- Mero UI 0.7.0 · Data display
3
+ Mero UI 0.8.0 · Data display
4
4
 
5
5
  Show comparable records in a native table with column headers.
6
6
 
@@ -8,6 +8,8 @@ Show comparable records in a native table with column headers.
8
8
 
9
9
  ## Default
10
10
 
11
+ Use scope on the headers. The wrapper scrolls a wide table sideways instead of widening the page.
12
+
11
13
  Page assets
12
14
 
13
15
  ```html
@@ -29,3 +31,58 @@ Template
29
31
  </table>
30
32
  </div>
31
33
  ````
34
+
35
+ ## Cards on phones
36
+
37
+ Show rows as labelled cards on phones, with numbers aligned for comparison.
38
+
39
+ Add mero-table-cards to the wrapper for cards below 768 px, keep the table roles so screen readers still navigate rows and cells, and start each cell with its data-mero-cell-label. Put data-mero-card-hidden on a column's header and cells to leave it out of the cards. Give numeric headers and cells mero-table-num so they end-align with tabular figures in the table; in a card the value follows its label.
40
+
41
+ Page assets
42
+
43
+ ```html
44
+ <link rel="stylesheet" href="/mero.css">
45
+ <script defer src="/mero.js"></script>
46
+ ```
47
+
48
+ Template
49
+
50
+ ````html
51
+ <div class="mero-table-wrap mero-table-cards">
52
+ <table class="mero-table" role="table">
53
+ <caption>Environments</caption>
54
+ <thead role="rowgroup">
55
+ <tr role="row">
56
+ <th role="columnheader" scope="col">Environment</th>
57
+ <th role="columnheader" scope="col" data-mero-card-hidden>Region</th>
58
+ <th role="columnheader" scope="col">Status</th>
59
+ <th role="columnheader" scope="col" class="mero-table-num">Deploys</th>
60
+ <th role="columnheader" scope="col" class="mero-table-num">Error rate</th>
61
+ </tr>
62
+ </thead>
63
+ <tbody role="rowgroup">
64
+ <tr role="row">
65
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Environment</span>acme-production</th>
66
+ <td role="cell" data-mero-card-hidden><span data-mero-cell-label aria-hidden="true">Region</span>Europe West</td>
67
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Live</span></td>
68
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Deploys</span>1,284</td>
69
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Error rate</span>0.02%</td>
70
+ </tr>
71
+ <tr role="row">
72
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Environment</span>acme-staging</th>
73
+ <td role="cell" data-mero-card-hidden><span data-mero-cell-label aria-hidden="true">Region</span>Europe West</td>
74
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-warning">Review</span></td>
75
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Deploys</span>96</td>
76
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Error rate</span>1.40%</td>
77
+ </tr>
78
+ <tr role="row">
79
+ <th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Environment</span>globex-production</th>
80
+ <td role="cell" data-mero-card-hidden><span data-mero-cell-label aria-hidden="true">Region</span>US East</td>
81
+ <td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Live</span></td>
82
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Deploys</span>12</td>
83
+ <td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Error rate</span>0.00%</td>
84
+ </tr>
85
+ </tbody>
86
+ </table>
87
+ </div>
88
+ ````
@@ -1,6 +1,6 @@
1
1
  # Tabs
2
2
 
3
- Mero UI 0.7.0 · Navigation
3
+ Mero UI 0.8.0 · Navigation
4
4
 
5
5
  Switch between labeled panels with mouse or arrow keys.
6
6
 
@@ -63,3 +63,26 @@ Template
63
63
  <div role="tabpanel" id="settings-panel-mail" aria-labelledby="settings-tab-mail" tabindex="0" hidden>Choose which updates reach your inbox.</div>
64
64
  </div>
65
65
  ````
66
+
67
+ ## Link tabs
68
+
69
+ Switch between views of one page that the URL keeps.
70
+
71
+ Use links in a nav when each tab is its own URL, such as a filtered view of a list. The server puts aria-current=page on the current link. Tab and Enter work as on any link, so there is no tablist role, no arrow-key handling and no script. Add a mero-tab-count after the label for an optional count; it is read with the label. The tabs wrap on narrow screens.
72
+
73
+ Page assets
74
+
75
+ ```html
76
+ <link rel="stylesheet" href="/mero.css">
77
+ <script defer src="/mero.js"></script>
78
+ ```
79
+
80
+ Template
81
+
82
+ ````html
83
+ <nav class="mero-tabs-list" aria-label="Operation views">
84
+ <a class="mero-tab" href="?view=attention" aria-current="page">Needs attention <span class="mero-tab-count">3</span></a>
85
+ <a class="mero-tab" href="?view=active">In progress <span class="mero-tab-count">12</span></a>
86
+ <a class="mero-tab" href="?view=closed">Completed</a>
87
+ </nav>
88
+ ````
@@ -1,6 +1,6 @@
1
1
  # Tag Group
2
2
 
3
- Mero UI 0.7.0 · Collections
3
+ Mero UI 0.8.0 · Collections
4
4
 
5
5
  Display a small, labeled collection of metadata tags.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Text Area
2
2
 
3
- Mero UI 0.7.0 · Forms
3
+ Mero UI 0.8.0 · Forms
4
4
 
5
5
  Let users edit multiple lines of text with an optional autosizing surface.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Text Field
2
2
 
3
- Mero UI 0.7.0 · Forms
3
+ Mero UI 0.8.0 · Forms
4
4
 
5
5
  Compose a label, input, and hint into a reusable form field.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Text Rotate
2
2
 
3
- Mero UI 0.7.0 · Display utilities
3
+ Mero UI 0.8.0 · Display utilities
4
4
 
5
5
  Rotate through short messages with explicit playback controls.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Text Shimmer
2
2
 
3
- Mero UI 0.7.0 · Conversation
3
+ Mero UI 0.8.0 · Conversation
4
4
 
5
5
  Indicate work in progress with a moving highlight across readable text.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Theme Controller
2
2
 
3
- Mero UI 0.7.0 · Composition
3
+ Mero UI 0.8.0 · Composition
4
4
 
5
5
  Set a theme inside one section of a page.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Time Field
2
2
 
3
- Mero UI 0.7.0 · Date and time
3
+ Mero UI 0.8.0 · Date and time
4
4
 
5
5
  Choose a wall-clock time without a timezone conversion.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Timeline
2
2
 
3
- Mero UI 0.7.0 · Studio collections
3
+ Mero UI 0.8.0 · Studio collections
4
4
 
5
5
  Present milestones in order and identify the current step.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Toast
2
2
 
3
- Mero UI 0.7.0 · Overlays
3
+ Mero UI 0.8.0 · Overlays
4
4
 
5
5
  Announce a completed action without interrupting the current task.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Toggle Button Group
2
2
 
3
- Mero UI 0.7.0 · Buttons
3
+ Mero UI 0.8.0 · Buttons
4
4
 
5
5
  Select one presentation mode from a connected set of controls.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Toggle Button
2
2
 
3
- Mero UI 0.7.0 · Buttons
3
+ Mero UI 0.8.0 · Buttons
4
4
 
5
5
  Represent a persistent on or off state with a pressed button.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Toolbar
2
2
 
3
- Mero UI 0.7.0 · Layout
3
+ Mero UI 0.8.0 · Layout
4
4
 
5
5
  Keep nearby actions aligned and grouped by purpose.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Tooltip
2
2
 
3
- Mero UI 0.7.0 · Overlays
3
+ Mero UI 0.8.0 · Overlays
4
4
 
5
5
  Show a brief hint on pointer hover or keyboard focus.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Trend Chip
2
2
 
3
- Mero UI 0.7.0 · Interaction feedback
3
+ Mero UI 0.8.0 · Interaction feedback
4
4
 
5
5
  Label the direction and magnitude of a change.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Typed Confirmation
2
2
 
3
- Mero UI 0.7.0 · Overlays
3
+ Mero UI 0.8.0 · Overlays
4
4
 
5
5
  Require an exact phrase before submitting a destructive action.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Typography
2
2
 
3
- Mero UI 0.7.0 · Typography
3
+ Mero UI 0.8.0 · Typography
4
4
 
5
5
  Apply the type scale to semantic content.
6
6
 
@@ -24,3 +24,26 @@ Template
24
24
  <p class="mero-description">Published by the platform team.</p>
25
25
  </article>
26
26
  ````
27
+
28
+ ## Local time
29
+
30
+ Show server timestamps in the reader’s locale and time zone.
31
+
32
+ Render the UTC time as text so the page reads correctly without scripts. Mero rewrites the text from datetime: absolute shows the date and time, date and time show one part, and relative shows how long ago or until, refreshed every minute, with the full date in the title. After a swap or morph Mero formats the new elements again.
33
+
34
+ Page assets
35
+
36
+ ```html
37
+ <link rel="stylesheet" href="/mero.css">
38
+ <script defer src="/mero.js"></script>
39
+ ```
40
+
41
+ Template
42
+
43
+ ````html
44
+ <dl class="mero-stack">
45
+ <div><dt class="mero-label">Deployed</dt><dd><time datetime="2026-11-23T09:41:00Z" data-mero-time="relative">2026-11-23 09:41 UTC</time></dd></div>
46
+ <div><dt class="mero-label">Created</dt><dd><time datetime="2026-11-21T16:05:00Z" data-mero-time="absolute">2026-11-21 16:05 UTC</time></dd></div>
47
+ <div><dt class="mero-label">Expires</dt><dd><time datetime="2026-12-23T00:00:00Z" data-mero-time="date">2026-12-23 UTC</time></dd></div>
48
+ </dl>
49
+ ````
@@ -1,6 +1,6 @@
1
1
  # Validator
2
2
 
3
- Mero UI 0.7.0 · Composition
3
+ Mero UI 0.8.0 · Composition
4
4
 
5
5
  Show a native field constraint and its correction.
6
6
 
@@ -0,0 +1,27 @@
1
+ # Visually Hidden
2
+
3
+ Mero UI 0.8.0 · Utilities
4
+
5
+ Give screen readers context that the visible text leaves implied.
6
+
7
+ [Integration patterns and API reference](../llms-patterns.txt)
8
+
9
+ ## Default
10
+
11
+ Put the hidden words inside the element they describe, with a leading space, so the accessible name reads as one phrase: Copy release ID. The text stays in the accessibility tree and in copied text, takes no space and never widens a scrolling container. Don't hide focusable elements this way.
12
+
13
+ Page assets
14
+
15
+ ```html
16
+ <link rel="stylesheet" href="/mero.css">
17
+ <script defer src="/mero.js"></script>
18
+ ```
19
+
20
+ Template
21
+
22
+ ````html
23
+ <div class="mero-row">
24
+ <button class="mero-button mero-button-outline mero-button-sm" type="button" data-mero-toast="Release ID copied">Copy<span class="mero-sr-only"> release ID</span></button>
25
+ <span class="mero-badge mero-badge-warning">3<span class="mero-sr-only"> environments need attention</span></span>
26
+ </div>
27
+ ````
@@ -1,6 +1,6 @@
1
1
  # Widget
2
2
 
3
- Mero UI 0.7.0 · Studio collections
3
+ Mero UI 0.8.0 · Studio collections
4
4
 
5
5
  Use a dashboard panel to track a checklist and its progress.
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Window Mockup
2
2
 
3
- Mero UI 0.7.0 · Mockups
3
+ Mero UI 0.8.0 · Mockups
4
4
 
5
5
  Place a desktop tool inside a labelled window.
6
6