@rubenlangeweg/mero-ui 0.0.0-stage → 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.
- package/CHANGELOG.md +86 -0
- package/LICENSE +21 -0
- package/README.md +141 -2
- package/agent-docs/components/accordion.md +31 -0
- package/agent-docs/components/action-bar.md +45 -0
- package/agent-docs/components/action-button.md +73 -0
- package/agent-docs/components/agenda.md +38 -0
- package/agent-docs/components/alert-dialog.md +36 -0
- package/agent-docs/components/alert.md +25 -0
- package/agent-docs/components/app-layout.md +36 -0
- package/agent-docs/components/area-chart.md +36 -0
- package/agent-docs/components/aura.md +24 -0
- package/agent-docs/components/autocomplete.md +81 -0
- package/agent-docs/components/avatar-group.md +26 -0
- package/agent-docs/components/avatar.md +25 -0
- package/agent-docs/components/badge.md +26 -0
- package/agent-docs/components/bar-chart.md +36 -0
- package/agent-docs/components/breadcrumbs.md +28 -0
- package/agent-docs/components/browser-mockup.md +26 -0
- package/agent-docs/components/button-group.md +26 -0
- package/agent-docs/components/button.md +106 -0
- package/agent-docs/components/calendar.md +105 -0
- package/agent-docs/components/card.md +81 -0
- package/agent-docs/components/carousel.md +78 -0
- package/agent-docs/components/cell-color-picker.md +32 -0
- package/agent-docs/components/cell-select.md +32 -0
- package/agent-docs/components/cell-slider.md +32 -0
- package/agent-docs/components/cell-switch.md +32 -0
- package/agent-docs/components/chain-of-thought.md +26 -0
- package/agent-docs/components/chart-tooltip.md +36 -0
- package/agent-docs/components/chat-attachment.md +26 -0
- package/agent-docs/components/chat-conversation.md +61 -0
- package/agent-docs/components/chat-list-view.md +25 -0
- package/agent-docs/components/chat-loader.md +24 -0
- package/agent-docs/components/chat-message-actions.md +25 -0
- package/agent-docs/components/chat-message.md +24 -0
- package/agent-docs/components/chat-source.md +24 -0
- package/agent-docs/components/chat-tool.md +41 -0
- package/agent-docs/components/checkbox-button-group.md +29 -0
- package/agent-docs/components/checkbox-group.md +29 -0
- package/agent-docs/components/checkbox.md +25 -0
- package/agent-docs/components/chip.md +22 -0
- package/agent-docs/components/close-button.md +33 -0
- package/agent-docs/components/code-block.md +24 -0
- package/agent-docs/components/code-mockup.md +25 -0
- package/agent-docs/components/color-area.md +30 -0
- package/agent-docs/components/color-field.md +30 -0
- package/agent-docs/components/color-picker.md +28 -0
- package/agent-docs/components/color-slider.md +31 -0
- package/agent-docs/components/color-swatch.md +26 -0
- package/agent-docs/components/combo-box.md +41 -0
- package/agent-docs/components/command-menu.md +46 -0
- package/agent-docs/components/command.md +38 -0
- package/agent-docs/components/composed-chart.md +36 -0
- package/agent-docs/components/context-menu.md +31 -0
- package/agent-docs/components/countdown.md +26 -0
- package/agent-docs/components/data-grid.md +159 -0
- package/agent-docs/components/date-field.md +28 -0
- package/agent-docs/components/date-picker.md +30 -0
- package/agent-docs/components/date-range-picker.md +40 -0
- package/agent-docs/components/description-list.md +30 -0
- package/agent-docs/components/description.md +28 -0
- package/agent-docs/components/diff.md +43 -0
- package/agent-docs/components/disclosure-group.md +31 -0
- package/agent-docs/components/disclosure.md +25 -0
- package/agent-docs/components/dock.md +26 -0
- package/agent-docs/components/drawer.md +116 -0
- package/agent-docs/components/drop-zone.md +34 -0
- package/agent-docs/components/dropdown.md +31 -0
- package/agent-docs/components/emoji-picker.md +31 -0
- package/agent-docs/components/emoji-reaction-button.md +26 -0
- package/agent-docs/components/empty-state.md +56 -0
- package/agent-docs/components/error-message.md +25 -0
- package/agent-docs/components/fab.md +26 -0
- package/agent-docs/components/field-error.md +30 -0
- package/agent-docs/components/fieldset.md +82 -0
- package/agent-docs/components/file-input.md +32 -0
- package/agent-docs/components/file-tree.md +24 -0
- package/agent-docs/components/filter-chips.md +149 -0
- package/agent-docs/components/floating-toc.md +24 -0
- package/agent-docs/components/footer.md +24 -0
- package/agent-docs/components/form.md +189 -0
- package/agent-docs/components/hero.md +26 -0
- package/agent-docs/components/holo-card.md +33 -0
- package/agent-docs/components/hover-card.md +26 -0
- package/agent-docs/components/hover-gallery.md +78 -0
- package/agent-docs/components/indicator.md +24 -0
- package/agent-docs/components/inline-select.md +26 -0
- package/agent-docs/components/input-group.md +30 -0
- package/agent-docs/components/input-otp.md +30 -0
- package/agent-docs/components/input.md +28 -0
- package/agent-docs/components/item-card-group.md +24 -0
- package/agent-docs/components/item-card.md +24 -0
- package/agent-docs/components/join.md +24 -0
- package/agent-docs/components/joined-filter.md +28 -0
- package/agent-docs/components/kanban.md +26 -0
- package/agent-docs/components/kbd.md +53 -0
- package/agent-docs/components/kpi-group.md +24 -0
- package/agent-docs/components/kpi.md +24 -0
- package/agent-docs/components/label.md +28 -0
- package/agent-docs/components/line-chart.md +64 -0
- package/agent-docs/components/link.md +22 -0
- package/agent-docs/components/list-box.md +30 -0
- package/agent-docs/components/list-view.md +24 -0
- package/agent-docs/components/live-progress.md +71 -0
- package/agent-docs/components/map.md +26 -0
- package/agent-docs/components/markdown.md +36 -0
- package/agent-docs/components/mask.md +26 -0
- package/agent-docs/components/megamenu.md +26 -0
- package/agent-docs/components/menu-button.md +112 -0
- package/agent-docs/components/menu.md +24 -0
- package/agent-docs/components/meter.md +28 -0
- package/agent-docs/components/modal.md +34 -0
- package/agent-docs/components/native-select.md +26 -0
- package/agent-docs/components/navbar.md +24 -0
- package/agent-docs/components/number-field.md +28 -0
- package/agent-docs/components/number-stepper.md +31 -0
- package/agent-docs/components/number-value.md +26 -0
- package/agent-docs/components/page-header.md +69 -0
- package/agent-docs/components/pagination.md +40 -0
- package/agent-docs/components/phone-mockup.md +26 -0
- package/agent-docs/components/pie-chart.md +36 -0
- package/agent-docs/components/popover.md +30 -0
- package/agent-docs/components/pressable-feedback.md +24 -0
- package/agent-docs/components/progress-bar.md +27 -0
- package/agent-docs/components/progress-circle.md +23 -0
- package/agent-docs/components/prompt-input.md +32 -0
- package/agent-docs/components/prompt-suggestion.md +32 -0
- package/agent-docs/components/radar-chart.md +36 -0
- package/agent-docs/components/radial-chart.md +36 -0
- package/agent-docs/components/radio-button-group.md +28 -0
- package/agent-docs/components/radio-group.md +29 -0
- package/agent-docs/components/range-calendar.md +40 -0
- package/agent-docs/components/rating.md +26 -0
- package/agent-docs/components/resizable.md +55 -0
- package/agent-docs/components/rich-text-editor.md +35 -0
- package/agent-docs/components/scroll-shadow.md +31 -0
- package/agent-docs/components/search-field.md +70 -0
- package/agent-docs/components/segment.md +28 -0
- package/agent-docs/components/select.md +31 -0
- package/agent-docs/components/separator.md +26 -0
- package/agent-docs/components/sheet.md +34 -0
- package/agent-docs/components/sidebar.md +36 -0
- package/agent-docs/components/skeleton.md +26 -0
- package/agent-docs/components/slider.md +27 -0
- package/agent-docs/components/sortable-table.md +303 -0
- package/agent-docs/components/spinner.md +25 -0
- package/agent-docs/components/stack.md +26 -0
- package/agent-docs/components/status.md +24 -0
- package/agent-docs/components/stepper.md +32 -0
- package/agent-docs/components/surface.md +25 -0
- package/agent-docs/components/swap.md +24 -0
- package/agent-docs/components/switch.md +75 -0
- package/agent-docs/components/table.md +88 -0
- package/agent-docs/components/tabs.md +88 -0
- package/agent-docs/components/tag-group.md +26 -0
- package/agent-docs/components/text-area.md +27 -0
- package/agent-docs/components/text-field.md +28 -0
- package/agent-docs/components/text-rotate.md +24 -0
- package/agent-docs/components/text-shimmer.md +24 -0
- package/agent-docs/components/theme-controller.md +24 -0
- package/agent-docs/components/time-field.md +30 -0
- package/agent-docs/components/timeline.md +24 -0
- package/agent-docs/components/toast.md +22 -0
- package/agent-docs/components/toggle-button-group.md +31 -0
- package/agent-docs/components/toggle-button.md +24 -0
- package/agent-docs/components/toolbar.md +28 -0
- package/agent-docs/components/tooltip.md +27 -0
- package/agent-docs/components/trend-chip.md +24 -0
- package/agent-docs/components/typed-confirmation.md +160 -0
- package/agent-docs/components/typography.md +49 -0
- package/agent-docs/components/validator.md +26 -0
- package/agent-docs/components/visually-hidden.md +27 -0
- package/agent-docs/components/widget.md +24 -0
- package/agent-docs/components/window-mockup.md +24 -0
- package/agent-docs/llms-components.txt +6676 -0
- package/agent-docs/llms-full.txt +6925 -0
- package/agent-docs/llms-patterns.txt +250 -0
- package/agent-docs/llms.txt +264 -0
- package/package.json +48 -4
- package/ui/insight-charts.mjs +124 -0
- package/ui/insight-markdown.mjs +46 -0
- package/ui/mero-collections.css +140 -0
- package/ui/mero-collections.js +272 -0
- package/ui/mero-composition.css +342 -0
- package/ui/mero-composition.js +79 -0
- package/ui/mero-forms.js +611 -0
- package/ui/mero-gallery.css +122 -0
- package/ui/mero-gallery.js +193 -0
- package/ui/mero-insights.css +168 -0
- package/ui/mero-insights.js +188 -0
- package/ui/mero-inventory.css +182 -0
- package/ui/mero-inventory.js +56 -0
- package/ui/mero-layouts.css +70 -0
- package/ui/mero-live.js +141 -0
- package/ui/mero-workspace.css +152 -0
- package/ui/mero-workspace.js +590 -0
- package/ui/mero.css +1021 -0
- package/ui/mero.js +1068 -0
- package/ui/studio-lamp.webp +0 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Filter Chips
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Data display
|
|
4
|
+
|
|
5
|
+
Add filters from a menu, see them as chips and remove them one at a time. The URL keeps the state.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Choose + Filter to add one. Each chip and Clear all are ordinary links to the URL without that filter. The server reads status and category from the query string, so the view survives reload, sharing and Back. The menu uses the Menu Button keyboard pattern. Below 768 px, the same filters apply to the labelled cards.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
18
|
+
<script defer src="/mero.js"></script>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Template
|
|
22
|
+
|
|
23
|
+
````html
|
|
24
|
+
<div class="mero-scope" data-mero-scope>
|
|
25
|
+
<section class="mero-records" data-mero-records data-mero-restore-focus hx-target:inherited="this" hx-select:inherited="[data-mero-records]" hx-swap:inherited="outerHTML show:none" hx-sync:inherited="this:replace">
|
|
26
|
+
<div class="mero-filter-bar" hx-boost:inherited="true">
|
|
27
|
+
<button class="mero-button mero-button-outline mero-button-sm" type="button" id="records-filter-add" popovertarget="records-filter-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Add filter" aria-describedby="records-count" data-mero-focus-fallback><span aria-hidden="true">+</span> Filter</button>
|
|
28
|
+
<div class="mero-popover mero-menu" id="records-filter-menu" popover role="menu" aria-label="Add filter">
|
|
29
|
+
<a class="mero-menu-item" role="menuitem" href="?status=Active">Status is Active</a>
|
|
30
|
+
<a class="mero-menu-item" role="menuitem" href="?status=Draft">Status is Draft</a>
|
|
31
|
+
<a class="mero-menu-item" role="menuitem" href="?status=Archived">Status is Archived</a>
|
|
32
|
+
<a class="mero-menu-item" role="menuitem" href="?category=Furniture">Category is Furniture</a>
|
|
33
|
+
<a class="mero-menu-item" role="menuitem" href="?category=Lighting">Category is Lighting</a>
|
|
34
|
+
<a class="mero-menu-item" role="menuitem" href="?category=Objects">Category is Objects</a>
|
|
35
|
+
<a class="mero-menu-item" role="menuitem" href="?category=Textiles">Category is Textiles</a>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="mero-table-wrap mero-table-cards">
|
|
39
|
+
<table class="mero-table mero-table-compact" role="table" aria-labelledby="records-count">
|
|
40
|
+
<caption id="records-count">Studio products · 8 of 8<span class="mero-table-sort-label" aria-hidden="true">Sort by</span></caption>
|
|
41
|
+
<thead role="rowgroup" hx-boost:inherited="true"><tr role="row">
|
|
42
|
+
<th role="columnheader" scope="col" aria-sort="ascending"><a id="records-sort-name" href="?sort=-name">Product <span aria-hidden="true">↑</span></a></th>
|
|
43
|
+
<th role="columnheader" scope="col"><a id="records-sort-category" href="?sort=category">Category</a></th>
|
|
44
|
+
<th role="columnheader" scope="col"><a id="records-sort-status" href="?sort=status">Status</a></th>
|
|
45
|
+
<th role="columnheader" scope="col">Actions</th>
|
|
46
|
+
</tr></thead>
|
|
47
|
+
<tbody role="rowgroup">
|
|
48
|
+
<tr role="row">
|
|
49
|
+
<th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Product</span><a class="mero-row-link" href="?sort=name&open=1">Arc Task Lamp</a></th>
|
|
50
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Category</span>Lighting</td>
|
|
51
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Active</span></td>
|
|
52
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Actions</span>
|
|
53
|
+
<button class="mero-button mero-button-ghost mero-button-sm" id="records-1-actions" type="button" popovertarget="records-1-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for Arc Task Lamp">Actions</button>
|
|
54
|
+
<div class="mero-popover mero-menu" id="records-1-menu" popover role="menu" aria-label="Arc Task Lamp actions">
|
|
55
|
+
<a class="mero-menu-item" role="menuitem" href="?sort=name&open=1">Open details</a>
|
|
56
|
+
<a class="mero-menu-item" role="menuitem" href="/components/data-grid">Edit in inventory</a>
|
|
57
|
+
</div>
|
|
58
|
+
</td>
|
|
59
|
+
</tr>
|
|
60
|
+
<tr role="row">
|
|
61
|
+
<th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Product</span><a class="mero-row-link" href="?sort=name&open=7">Ash Lounge Chair</a></th>
|
|
62
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Category</span>Furniture</td>
|
|
63
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge">Archived</span></td>
|
|
64
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Actions</span>
|
|
65
|
+
<button class="mero-button mero-button-ghost mero-button-sm" id="records-7-actions" type="button" popovertarget="records-7-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for Ash Lounge Chair">Actions</button>
|
|
66
|
+
<div class="mero-popover mero-menu" id="records-7-menu" popover role="menu" aria-label="Ash Lounge Chair actions">
|
|
67
|
+
<a class="mero-menu-item" role="menuitem" href="?sort=name&open=7">Open details</a>
|
|
68
|
+
<a class="mero-menu-item" role="menuitem" href="/components/data-grid">Edit in inventory</a>
|
|
69
|
+
</div>
|
|
70
|
+
</td>
|
|
71
|
+
</tr>
|
|
72
|
+
<tr role="row">
|
|
73
|
+
<th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Product</span><a class="mero-row-link" href="?sort=name&open=8">Brass Candle Holder</a></th>
|
|
74
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Category</span>Objects</td>
|
|
75
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Active</span></td>
|
|
76
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Actions</span>
|
|
77
|
+
<button class="mero-button mero-button-ghost mero-button-sm" id="records-8-actions" type="button" popovertarget="records-8-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for Brass Candle Holder">Actions</button>
|
|
78
|
+
<div class="mero-popover mero-menu" id="records-8-menu" popover role="menu" aria-label="Brass Candle Holder actions">
|
|
79
|
+
<a class="mero-menu-item" role="menuitem" href="?sort=name&open=8">Open details</a>
|
|
80
|
+
<a class="mero-menu-item" role="menuitem" href="/components/data-grid">Edit in inventory</a>
|
|
81
|
+
</div>
|
|
82
|
+
</td>
|
|
83
|
+
</tr>
|
|
84
|
+
<tr role="row">
|
|
85
|
+
<th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Product</span><a class="mero-row-link" href="?sort=name&open=2">Halo Pendant</a></th>
|
|
86
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Category</span>Lighting</td>
|
|
87
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-warning">Draft</span></td>
|
|
88
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Actions</span>
|
|
89
|
+
<button class="mero-button mero-button-ghost mero-button-sm" id="records-2-actions" type="button" popovertarget="records-2-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for Halo Pendant">Actions</button>
|
|
90
|
+
<div class="mero-popover mero-menu" id="records-2-menu" popover role="menu" aria-label="Halo Pendant actions">
|
|
91
|
+
<a class="mero-menu-item" role="menuitem" href="?sort=name&open=2">Open details</a>
|
|
92
|
+
<a class="mero-menu-item" role="menuitem" href="/components/data-grid">Edit in inventory</a>
|
|
93
|
+
</div>
|
|
94
|
+
</td>
|
|
95
|
+
</tr>
|
|
96
|
+
<tr role="row">
|
|
97
|
+
<th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Product</span><a class="mero-row-link" href="?sort=name&open=6">Linen Cushion</a></th>
|
|
98
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Category</span>Textiles</td>
|
|
99
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-warning">Draft</span></td>
|
|
100
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Actions</span>
|
|
101
|
+
<button class="mero-button mero-button-ghost mero-button-sm" id="records-6-actions" type="button" popovertarget="records-6-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for Linen Cushion">Actions</button>
|
|
102
|
+
<div class="mero-popover mero-menu" id="records-6-menu" popover role="menu" aria-label="Linen Cushion actions">
|
|
103
|
+
<a class="mero-menu-item" role="menuitem" href="?sort=name&open=6">Open details</a>
|
|
104
|
+
<a class="mero-menu-item" role="menuitem" href="/components/data-grid">Edit in inventory</a>
|
|
105
|
+
</div>
|
|
106
|
+
</td>
|
|
107
|
+
</tr>
|
|
108
|
+
<tr role="row">
|
|
109
|
+
<th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Product</span><a class="mero-row-link" href="?sort=name&open=3">Oak Side Table</a></th>
|
|
110
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Category</span>Furniture</td>
|
|
111
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Active</span></td>
|
|
112
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Actions</span>
|
|
113
|
+
<button class="mero-button mero-button-ghost mero-button-sm" id="records-3-actions" type="button" popovertarget="records-3-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for Oak Side Table">Actions</button>
|
|
114
|
+
<div class="mero-popover mero-menu" id="records-3-menu" popover role="menu" aria-label="Oak Side Table actions">
|
|
115
|
+
<a class="mero-menu-item" role="menuitem" href="?sort=name&open=3">Open details</a>
|
|
116
|
+
<a class="mero-menu-item" role="menuitem" href="/components/data-grid">Edit in inventory</a>
|
|
117
|
+
</div>
|
|
118
|
+
</td>
|
|
119
|
+
</tr>
|
|
120
|
+
<tr role="row">
|
|
121
|
+
<th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Product</span><a class="mero-row-link" href="?sort=name&open=5">Stone Vase</a></th>
|
|
122
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Category</span>Objects</td>
|
|
123
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Active</span></td>
|
|
124
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Actions</span>
|
|
125
|
+
<button class="mero-button mero-button-ghost mero-button-sm" id="records-5-actions" type="button" popovertarget="records-5-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for Stone Vase">Actions</button>
|
|
126
|
+
<div class="mero-popover mero-menu" id="records-5-menu" popover role="menu" aria-label="Stone Vase actions">
|
|
127
|
+
<a class="mero-menu-item" role="menuitem" href="?sort=name&open=5">Open details</a>
|
|
128
|
+
<a class="mero-menu-item" role="menuitem" href="/components/data-grid">Edit in inventory</a>
|
|
129
|
+
</div>
|
|
130
|
+
</td>
|
|
131
|
+
</tr>
|
|
132
|
+
<tr role="row">
|
|
133
|
+
<th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Product</span><a class="mero-row-link" href="?sort=name&open=4">Woven Throw</a></th>
|
|
134
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Category</span>Textiles</td>
|
|
135
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge">Archived</span></td>
|
|
136
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Actions</span>
|
|
137
|
+
<button class="mero-button mero-button-ghost mero-button-sm" id="records-4-actions" type="button" popovertarget="records-4-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Actions for Woven Throw">Actions</button>
|
|
138
|
+
<div class="mero-popover mero-menu" id="records-4-menu" popover role="menu" aria-label="Woven Throw actions">
|
|
139
|
+
<a class="mero-menu-item" role="menuitem" href="?sort=name&open=4">Open details</a>
|
|
140
|
+
<a class="mero-menu-item" role="menuitem" href="/components/data-grid">Edit in inventory</a>
|
|
141
|
+
</div>
|
|
142
|
+
</td>
|
|
143
|
+
</tr>
|
|
144
|
+
</tbody>
|
|
145
|
+
</table>
|
|
146
|
+
</div>
|
|
147
|
+
</section>
|
|
148
|
+
</div>
|
|
149
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Floating TOC
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Studio collections
|
|
4
|
+
|
|
5
|
+
Navigate to sections with an index that follows the reading position.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<link rel="stylesheet" href="/mero-collections.css">
|
|
16
|
+
<script defer src="/mero.js"></script>
|
|
17
|
+
<script defer src="/mero-collections.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Template
|
|
21
|
+
|
|
22
|
+
````html
|
|
23
|
+
<div class="mero-toc" data-mero-toc><nav aria-label="Product guide contents"><button type="button" data-toc-link="0" aria-current="location">Materials</button><button type="button" data-toc-link="1">Assembly</button><button type="button" data-toc-link="2">Care</button></nav><div class="mero-toc-scroll" tabindex="0" aria-label="Product guide"><section data-toc-section="0"><h2 tabindex="-1">Materials</h2><p>Powder-coated steel, brushed brass and low-gloss enamel. Check a sample under daylight before ordering.</p></section><section data-toc-section="1"><h2 tabindex="-1">Assembly</h2><p>Place the base on a flat surface. Align the threaded stem and turn until the joint is hand-tight.</p></section><section data-toc-section="2"><h2 tabindex="-1">Care</h2><p>Wipe the shade with a soft, dry cloth. Let the fixture cool before replacing the bulb.</p></section></div></div>
|
|
24
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Footer
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Composition
|
|
4
|
+
|
|
5
|
+
Close a workspace with a small group of navigation links.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<link rel="stylesheet" href="/mero-composition.css">
|
|
16
|
+
<script defer src="/mero.js"></script>
|
|
17
|
+
<script defer src="/mero-composition.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Template
|
|
21
|
+
|
|
22
|
+
````html
|
|
23
|
+
<footer class="mero-footer-nav"><strong>Studio</strong><nav aria-label="Studio footer"><a href="/components">Library</a><a href="/layouts">Layouts</a><a href="/start">Docs</a></nav></footer>
|
|
24
|
+
````
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
# Form
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Forms
|
|
4
|
+
|
|
5
|
+
Submit native fields to the server and render an HTML response in place.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
This demo uses a read-only GET. Use POST for changes and keep validation on the server.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
18
|
+
<script defer src="/mero.js"></script>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Template
|
|
22
|
+
|
|
23
|
+
````html
|
|
24
|
+
<div class="mero-scope" data-mero-scope>
|
|
25
|
+
<form class="mero-stack" action="/demo/catalog/form" method="get"
|
|
26
|
+
hx-get="/demo/catalog/form" hx-target="#catalog-form-result" hx-swap="innerHTML">
|
|
27
|
+
<div class="mero-field">
|
|
28
|
+
<label class="mero-label" for="demo-form-name">Name</label>
|
|
29
|
+
<input class="mero-input" id="demo-form-name" name="name" autocomplete="given-name" required maxlength="80" placeholder="Taylor">
|
|
30
|
+
</div>
|
|
31
|
+
<button class="mero-button mero-button-primary" type="submit">Send to server</button>
|
|
32
|
+
<div class="mero-form-status" id="catalog-form-result" role="status"></div>
|
|
33
|
+
</form>
|
|
34
|
+
</div>
|
|
35
|
+
````
|
|
36
|
+
|
|
37
|
+
## One-time credential
|
|
38
|
+
|
|
39
|
+
Create an API token and keep the page until the person has copied it.
|
|
40
|
+
|
|
41
|
+
While the request runs, and while the token is shown, Mero cancels boosted navigation and requests that would replace the token, undoes Back and asks before the page unloads. The token is cleared on I copied it, when a surrounding dialog closes and when the page is hidden. Render the secret only in this response, never in a page the server can send again.
|
|
42
|
+
|
|
43
|
+
Page assets
|
|
44
|
+
|
|
45
|
+
```html
|
|
46
|
+
<link rel="stylesheet" href="/mero.css">
|
|
47
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
48
|
+
<script defer src="/mero.js"></script>
|
|
49
|
+
<script defer src="/mero-forms.js"></script>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Template
|
|
53
|
+
|
|
54
|
+
````html
|
|
55
|
+
<div class="mero-scope" data-mero-scope>
|
|
56
|
+
<div class="mero-stack">
|
|
57
|
+
<form class="mero-stack" method="post" action="/demo/catalog/form-credential" hx-post="/demo/catalog/form-credential"
|
|
58
|
+
hx-target="#api-token-secret" data-mero-form data-mero-hold="Wait for the new token. Leaving now would lose it.">
|
|
59
|
+
<div class="mero-field">
|
|
60
|
+
<label class="mero-label" for="api-token-name">Token name</label>
|
|
61
|
+
<input class="mero-input" id="api-token-name" name="name" required maxlength="40" value="Deploy bot">
|
|
62
|
+
</div>
|
|
63
|
+
<p class="mero-field-error" data-mero-form-error role="alert" hidden></p>
|
|
64
|
+
<div class="mero-row">
|
|
65
|
+
<button class="mero-button mero-button-primary" type="submit" id="api-token-create">
|
|
66
|
+
<span class="mero-button-label">Create token</span>
|
|
67
|
+
<span class="mero-indicator mero-spinner" aria-hidden="true"></span>
|
|
68
|
+
</button>
|
|
69
|
+
</div>
|
|
70
|
+
</form>
|
|
71
|
+
<div class="mero-stack" id="api-token-secret" data-mero-ephemeral
|
|
72
|
+
data-mero-hold="Copy the token before you leave. It is shown only once."></div>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
````
|
|
76
|
+
|
|
77
|
+
## Action outcome
|
|
78
|
+
|
|
79
|
+
Rotate a key and report whether it succeeded, was refused or has an unknown result.
|
|
80
|
+
|
|
81
|
+
The submit button gets data-mero-action-state. A 2xx response must contain data-mero-action-expect, otherwise the outcome is unknown and nothing is swapped. An unknown outcome reveals the data-mero-action-unknown panel and never closes the dialog or shows success, including a request aborted after it was sent. data-mero-clear-passwords empties password fields after every response. A retry resubmits the same form, so keep the idempotency key in the markup.
|
|
82
|
+
|
|
83
|
+
Page assets
|
|
84
|
+
|
|
85
|
+
```html
|
|
86
|
+
<link rel="stylesheet" href="/mero.css">
|
|
87
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
88
|
+
<script defer src="/mero.js"></script>
|
|
89
|
+
<script defer src="/mero-forms.js"></script>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Template
|
|
93
|
+
|
|
94
|
+
````html
|
|
95
|
+
<div class="mero-scope" data-mero-scope>
|
|
96
|
+
<form class="mero-stack" method="post" action="/demo/catalog/form-outcome" hx-post="/demo/catalog/form-outcome"
|
|
97
|
+
hx-target="#rotate-key-result" hx-headers='{"Idempotency-Key":"rotate-demo-7f3a"}'
|
|
98
|
+
data-mero-form data-mero-clear-passwords data-mero-action-expect="[data-rotated-key]" data-mero-action-unknown="#rotate-key-unknown">
|
|
99
|
+
<div class="mero-field">
|
|
100
|
+
<label class="mero-label" for="rotate-key-outcome">Simulated server response</label>
|
|
101
|
+
<select class="mero-select" id="rotate-key-outcome" name="outcome">
|
|
102
|
+
<option value="succeeded">Key rotated</option>
|
|
103
|
+
<option value="rejected">Refused: wrong password</option>
|
|
104
|
+
<option value="unknown">Gateway timeout</option>
|
|
105
|
+
<option value="incomplete">200 without the new key</option>
|
|
106
|
+
</select>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="mero-field">
|
|
109
|
+
<label class="mero-label" for="rotate-key-password">Your password</label>
|
|
110
|
+
<input class="mero-input" id="rotate-key-password" name="password" type="password" autocomplete="current-password" required>
|
|
111
|
+
</div>
|
|
112
|
+
<p class="mero-field-error" data-mero-form-error role="alert" hidden></p>
|
|
113
|
+
<div id="rotate-key-unknown" hidden>
|
|
114
|
+
<div class="mero-alert mero-alert-warning">
|
|
115
|
+
<strong class="mero-alert-title">The key may have rotated</strong>
|
|
116
|
+
<p>Check the key list before you try again. A retry sends the same request ID, so the server will not rotate twice.</p>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="mero-row">
|
|
120
|
+
<button class="mero-button mero-button-primary" type="submit">
|
|
121
|
+
<span class="mero-button-label">Rotate signing key</span>
|
|
122
|
+
<span class="mero-indicator mero-spinner" aria-hidden="true"></span>
|
|
123
|
+
</button>
|
|
124
|
+
</div>
|
|
125
|
+
<div class="mero-form-status" id="rotate-key-result" role="status"></div>
|
|
126
|
+
</form>
|
|
127
|
+
</div>
|
|
128
|
+
````
|
|
129
|
+
|
|
130
|
+
## Two columns
|
|
131
|
+
|
|
132
|
+
Arrange a longer form in two columns that stack on small screens.
|
|
133
|
+
|
|
134
|
+
Put fields in a mero-form-grid. Fields fill two columns in source order, which is also the tab order, and add mero-field-wide to a field that needs the whole row, such as a text area. The grid stacks below 768 px and in containers too narrow for two fields, such as a dialog. Use a fieldset with a legend to name each group of fields.
|
|
135
|
+
|
|
136
|
+
Page assets
|
|
137
|
+
|
|
138
|
+
```html
|
|
139
|
+
<link rel="stylesheet" href="/mero.css">
|
|
140
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
141
|
+
<script defer src="/mero.js"></script>
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Template
|
|
145
|
+
|
|
146
|
+
````html
|
|
147
|
+
<div class="mero-scope" data-mero-scope>
|
|
148
|
+
<form class="mero-form" action="/demo/catalog/form" method="get" style="inline-size:min(100%,40rem)"
|
|
149
|
+
hx-get="/demo/catalog/form" hx-target="#catalog-form-grid-result" hx-swap="innerHTML">
|
|
150
|
+
<fieldset class="mero-fieldset">
|
|
151
|
+
<legend class="mero-label">Profile</legend>
|
|
152
|
+
<div class="mero-form-grid">
|
|
153
|
+
<div class="mero-field">
|
|
154
|
+
<label class="mero-label" for="demo-grid-name">Name</label>
|
|
155
|
+
<input class="mero-input" id="demo-grid-name" name="name" autocomplete="given-name" required maxlength="80" placeholder="Taylor">
|
|
156
|
+
</div>
|
|
157
|
+
<div class="mero-field">
|
|
158
|
+
<label class="mero-label" for="demo-grid-email">Email</label>
|
|
159
|
+
<input class="mero-input" id="demo-grid-email" name="email" type="email" autocomplete="email" aria-describedby="demo-grid-email-hint">
|
|
160
|
+
<p class="mero-description" id="demo-grid-email-hint">Used for release notifications.</p>
|
|
161
|
+
</div>
|
|
162
|
+
<div class="mero-field">
|
|
163
|
+
<label class="mero-label" for="demo-grid-team">Team</label>
|
|
164
|
+
<select class="mero-select" id="demo-grid-team" name="team">
|
|
165
|
+
<option>Platform</option>
|
|
166
|
+
<option>Design</option>
|
|
167
|
+
<option>Support</option>
|
|
168
|
+
</select>
|
|
169
|
+
</div>
|
|
170
|
+
<div class="mero-field">
|
|
171
|
+
<label class="mero-label" for="demo-grid-region">Region</label>
|
|
172
|
+
<select class="mero-select" id="demo-grid-region" name="region">
|
|
173
|
+
<option>Europe West</option>
|
|
174
|
+
<option>US East</option>
|
|
175
|
+
</select>
|
|
176
|
+
</div>
|
|
177
|
+
<div class="mero-field mero-field-wide">
|
|
178
|
+
<label class="mero-label" for="demo-grid-notes">Notes</label>
|
|
179
|
+
<textarea class="mero-textarea" id="demo-grid-notes" name="notes" rows="3"></textarea>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
</fieldset>
|
|
183
|
+
<div class="mero-row">
|
|
184
|
+
<button class="mero-button mero-button-primary" type="submit">Save profile</button>
|
|
185
|
+
</div>
|
|
186
|
+
<div class="mero-form-status" id="catalog-form-grid-result" role="status"></div>
|
|
187
|
+
</form>
|
|
188
|
+
</div>
|
|
189
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Hero
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Composition
|
|
4
|
+
|
|
5
|
+
Pair a product introduction with a single destination.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Serve studio-lamp.webp for the sample image.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<link rel="stylesheet" href="/mero-composition.css">
|
|
18
|
+
<script defer src="/mero.js"></script>
|
|
19
|
+
<script defer src="/mero-composition.js"></script>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Template
|
|
23
|
+
|
|
24
|
+
````html
|
|
25
|
+
<section class="mero-editorial-hero"><div><small>Studio lighting</small><h2>Arc Task Lamp</h2><p>Soft enamel and brushed metal for the desktop.</p><a class="mero-button" href="/components/carousel">View finishes</a></div><img src="/studio-lamp.webp" width="1120" height="747" alt="Arc Task Lamp in warm ivory" loading="lazy"></section>
|
|
26
|
+
````
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Holo Card
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Media galleries
|
|
4
|
+
|
|
5
|
+
Catch a material sample in a shifting foil reflection.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Tilt follows a fine pointer. Reduced motion keeps the swatch still. The link works with keyboard and touch.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<link rel="stylesheet" href="/mero-gallery.css">
|
|
18
|
+
<script defer src="/mero.js"></script>
|
|
19
|
+
<script defer src="/mero-gallery.js"></script>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Template
|
|
23
|
+
|
|
24
|
+
````html
|
|
25
|
+
<mero-holo-card>
|
|
26
|
+
<a href="/components/carousel" class="mero-foil">
|
|
27
|
+
<span class="mero-foil-ink" aria-hidden="true"></span>
|
|
28
|
+
<span class="mero-foil-top"><span>Studio materials</span><span aria-hidden="true">↗</span></span>
|
|
29
|
+
<span class="mero-foil-title">Brushed nickel</span>
|
|
30
|
+
<span class="mero-foil-meta">Arc collection · Finish gallery</span>
|
|
31
|
+
</a>
|
|
32
|
+
</mero-holo-card>
|
|
33
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Hover Card
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Studio collections
|
|
4
|
+
|
|
5
|
+
Preview a contributor on hover, focus or tap.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Tab into the card for its action. Escape dismisses it.
|
|
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="/mero.js"></script>
|
|
19
|
+
<script defer src="/mero-collections.js"></script>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Template
|
|
23
|
+
|
|
24
|
+
````html
|
|
25
|
+
<div class="mero-hover-card" data-mero-hover-card><button class="mero-hover-trigger" type="button" aria-expanded="false"><span class="mero-collection-monogram" aria-hidden="true">ML</span>Mara Lind</button><aside class="mero-hover-content" popover="manual" hidden><strong>Mara Lind</strong><small>Materials designer · Studio North</small><p>Owns finish sampling and supplier sign-off for the Arc collection.</p><a class="mero-link" href="/components/agenda">View studio agenda</a></aside></div>
|
|
26
|
+
````
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Hover Gallery
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Media galleries
|
|
4
|
+
|
|
5
|
+
Explore the shade, base and profile of a product with a pointer, touch or keyboard.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
On a mouse, hover a thumbnail to preview it. Tap or select a thumbnail with the keyboard for the same view.
|
|
12
|
+
|
|
13
|
+
Serve studio-lamp.webp for the sample image.
|
|
14
|
+
|
|
15
|
+
Page assets
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<link rel="stylesheet" href="/mero.css">
|
|
19
|
+
<link rel="stylesheet" href="/mero-gallery.css">
|
|
20
|
+
<script defer src="/mero.js"></script>
|
|
21
|
+
<script defer src="/mero-gallery.js"></script>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Template
|
|
25
|
+
|
|
26
|
+
````html
|
|
27
|
+
<mero-gallery class="mero-media-card" role="region" aria-label="Product details" aria-roledescription="carousel" data-mero-hover-preview>
|
|
28
|
+
<ol class="mero-gallery-track" tabindex="0" aria-label="Product photographs">
|
|
29
|
+
<li data-mero-slide="profile" data-label="Profile">
|
|
30
|
+
<span class="mero-lamp-photo" data-finish="ivory" data-view="profile">
|
|
31
|
+
<img src="/studio-lamp.webp" alt="Arc Task Lamp, Profile" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
32
|
+
</span>
|
|
33
|
+
</li>
|
|
34
|
+
<li data-mero-slide="shade" data-label="Enamel detail">
|
|
35
|
+
<span class="mero-lamp-photo" data-finish="sand" data-view="shade">
|
|
36
|
+
<img src="/studio-lamp.webp" alt="Arc Task Lamp, Enamel detail" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
37
|
+
</span>
|
|
38
|
+
</li>
|
|
39
|
+
<li data-mero-slide="base" data-label="Brushed base">
|
|
40
|
+
<span class="mero-lamp-photo" data-finish="graphite" data-view="base">
|
|
41
|
+
<img src="/studio-lamp.webp" alt="Arc Task Lamp, Brushed base" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
42
|
+
</span>
|
|
43
|
+
</li>
|
|
44
|
+
</ol>
|
|
45
|
+
<div class="mero-media-caption">
|
|
46
|
+
<div><strong>Arc Task Lamp</strong><output data-mero-gallery-label aria-live="polite">Profile</output></div>
|
|
47
|
+
<div class="mero-gallery-arrows">
|
|
48
|
+
<button type="button" data-mero-prev aria-label="Previous image" aria-disabled="true"><span aria-hidden="true">←</span></button>
|
|
49
|
+
<button type="button" data-mero-next aria-label="Next image"><span aria-hidden="true">→</span></button>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<form class="mero-gallery-choices">
|
|
53
|
+
<fieldset><legend>View</legend>
|
|
54
|
+
<label>
|
|
55
|
+
<input type="radio" name="view" data-mero-gallery-choice value="profile" checked>
|
|
56
|
+
<span class="mero-gallery-thumb"><span class="mero-lamp-photo" data-finish="ivory" data-view="profile">
|
|
57
|
+
<img src="/studio-lamp.webp" alt="" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
58
|
+
</span></span>
|
|
59
|
+
<span>Profile</span>
|
|
60
|
+
</label>
|
|
61
|
+
<label>
|
|
62
|
+
<input type="radio" name="view" data-mero-gallery-choice value="shade">
|
|
63
|
+
<span class="mero-gallery-thumb"><span class="mero-lamp-photo" data-finish="sand" data-view="shade">
|
|
64
|
+
<img src="/studio-lamp.webp" alt="" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
65
|
+
</span></span>
|
|
66
|
+
<span>Enamel detail</span>
|
|
67
|
+
</label>
|
|
68
|
+
<label>
|
|
69
|
+
<input type="radio" name="view" data-mero-gallery-choice value="base">
|
|
70
|
+
<span class="mero-gallery-thumb"><span class="mero-lamp-photo" data-finish="graphite" data-view="base">
|
|
71
|
+
<img src="/studio-lamp.webp" alt="" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
72
|
+
</span></span>
|
|
73
|
+
<span>Brushed base</span>
|
|
74
|
+
</label>
|
|
75
|
+
</fieldset>
|
|
76
|
+
</form>
|
|
77
|
+
</mero-gallery>
|
|
78
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Indicator
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Display utilities
|
|
4
|
+
|
|
5
|
+
Anchor a quantity to an icon or action.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<link rel="stylesheet" href="/mero-composition.css">
|
|
16
|
+
<script defer src="/mero.js"></script>
|
|
17
|
+
<script defer src="/mero-composition.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Template
|
|
21
|
+
|
|
22
|
+
````html
|
|
23
|
+
<a class="mero-indicator-anchor mero-button" href="/layouts/dashboard?view=inventory" aria-label="Inventory 3 updates">Inventory <span class="mero-corner-count" aria-hidden="true">3</span></a>
|
|
24
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Inline Select
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Workspace forms
|
|
4
|
+
|
|
5
|
+
Change an audience within the sentence that describes it.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<link rel="stylesheet" href="/mero-workspace.css">
|
|
16
|
+
<script defer src="/mero.js"></script>
|
|
17
|
+
<script defer src="/mero-workspace.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Template
|
|
21
|
+
|
|
22
|
+
````html
|
|
23
|
+
<label class="mero-ws-inline">Publish to
|
|
24
|
+
<select class="mero-select mero-ws-inline-select" name="audience"><option>Team only</option><option>Everyone</option><option>Just me</option></select>
|
|
25
|
+
</label>
|
|
26
|
+
````
|