@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,81 @@
|
|
|
1
|
+
# Card
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Layout
|
|
4
|
+
|
|
5
|
+
Group related content and an action into one compact surface.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Put a title and optional description in mero-card-header. Use a section with aria-labelledby on the title when the card is a page region.
|
|
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
|
+
<article class="mero-card mero-stack">
|
|
24
|
+
<strong>Starter workspace</strong>
|
|
25
|
+
<p class="mero-description">A place to plan and ship the next release.</p>
|
|
26
|
+
<a class="mero-button mero-button-secondary" href="/playground">Open playground</a>
|
|
27
|
+
</article>
|
|
28
|
+
````
|
|
29
|
+
|
|
30
|
+
## Header actions and table
|
|
31
|
+
|
|
32
|
+
Give a card actions at the end of its header and let a table reach its edges.
|
|
33
|
+
|
|
34
|
+
Put actions in mero-card-actions as the header's last child; they stay at the inline end and wrap under the title on narrow cards. Wrap a table in mero-card-flush so its rows and borders run to the card's edges while the first and last cells keep the card's padding. Below 768 px, a mero-table-cards table inside the flush body returns to the card padding and shows labelled cards. If you change the card padding, set --mero-panel-padding instead so the flush body follows.
|
|
35
|
+
|
|
36
|
+
Page assets
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<link rel="stylesheet" href="/mero.css">
|
|
40
|
+
<script defer src="/mero.js"></script>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Template
|
|
44
|
+
|
|
45
|
+
````html
|
|
46
|
+
<div class="mero-scope" data-mero-scope>
|
|
47
|
+
<section class="mero-card" aria-labelledby="card-releases-title">
|
|
48
|
+
<header class="mero-card-header">
|
|
49
|
+
<h2 class="mero-card-title" id="card-releases-title">Recent releases</h2>
|
|
50
|
+
<div class="mero-card-actions">
|
|
51
|
+
<a class="mero-button mero-button-ghost mero-button-sm" href="/components/sortable-table">View all</a>
|
|
52
|
+
<button class="mero-button mero-button-outline mero-button-sm" type="button" data-mero-toast="Release draft created">New release</button>
|
|
53
|
+
</div>
|
|
54
|
+
</header>
|
|
55
|
+
<div class="mero-card-flush">
|
|
56
|
+
<div class="mero-table-wrap mero-table-cards">
|
|
57
|
+
<table class="mero-table" role="table" aria-labelledby="card-releases-title">
|
|
58
|
+
<thead role="rowgroup"><tr role="row"><th role="columnheader" scope="col">Version</th><th role="columnheader" scope="col">Environment</th><th role="columnheader" scope="col">Status</th></tr></thead>
|
|
59
|
+
<tbody role="rowgroup">
|
|
60
|
+
<tr role="row">
|
|
61
|
+
<th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Version</span><a class="mero-link" href="/components/sortable-table">v1.4.0</a></th>
|
|
62
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Environment</span>Staging</td>
|
|
63
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-warning">Review</span></td>
|
|
64
|
+
</tr>
|
|
65
|
+
<tr role="row">
|
|
66
|
+
<th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Version</span><a class="mero-link" href="/components/sortable-table">v1.3.0</a></th>
|
|
67
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Environment</span>Production</td>
|
|
68
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Live</span></td>
|
|
69
|
+
</tr>
|
|
70
|
+
<tr role="row">
|
|
71
|
+
<th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Version</span><a class="mero-link" href="/components/sortable-table">v1.2.2</a></th>
|
|
72
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Environment</span>Production</td>
|
|
73
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge">Retired</span></td>
|
|
74
|
+
</tr>
|
|
75
|
+
</tbody>
|
|
76
|
+
</table>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</section>
|
|
80
|
+
</div>
|
|
81
|
+
````
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Carousel
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Media galleries
|
|
4
|
+
|
|
5
|
+
Browse product photography with native scroll snap, thumbnails and keyboard controls.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Use the arrow keys, Home or End on the strip. Touch and trackpad use native scrolling. For your own photographs, place an img in each slide and give it a descriptive alt.
|
|
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 finishes" aria-roledescription="carousel">
|
|
28
|
+
<ol class="mero-gallery-track" tabindex="0" aria-label="Product photographs">
|
|
29
|
+
<li data-mero-slide="ivory" data-label="Soft ivory">
|
|
30
|
+
<span class="mero-lamp-photo" data-finish="ivory" data-view="profile">
|
|
31
|
+
<img src="/studio-lamp.webp" alt="Arc Task Lamp, Soft ivory" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
32
|
+
</span>
|
|
33
|
+
</li>
|
|
34
|
+
<li data-mero-slide="sand" data-label="Warm sand">
|
|
35
|
+
<span class="mero-lamp-photo" data-finish="sand" data-view="profile">
|
|
36
|
+
<img src="/studio-lamp.webp" alt="Arc Task Lamp, Warm sand" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
37
|
+
</span>
|
|
38
|
+
</li>
|
|
39
|
+
<li data-mero-slide="graphite" data-label="Graphite">
|
|
40
|
+
<span class="mero-lamp-photo" data-finish="graphite" data-view="profile">
|
|
41
|
+
<img src="/studio-lamp.webp" alt="Arc Task Lamp, Graphite" 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">Soft ivory</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>Finish</legend>
|
|
54
|
+
<label>
|
|
55
|
+
<input type="radio" name="view" data-mero-gallery-choice value="ivory" 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>Soft ivory</span>
|
|
60
|
+
</label>
|
|
61
|
+
<label>
|
|
62
|
+
<input type="radio" name="view" data-mero-gallery-choice value="sand">
|
|
63
|
+
<span class="mero-gallery-thumb"><span class="mero-lamp-photo" data-finish="sand" data-view="profile">
|
|
64
|
+
<img src="/studio-lamp.webp" alt="" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
65
|
+
</span></span>
|
|
66
|
+
<span>Warm sand</span>
|
|
67
|
+
</label>
|
|
68
|
+
<label>
|
|
69
|
+
<input type="radio" name="view" data-mero-gallery-choice value="graphite">
|
|
70
|
+
<span class="mero-gallery-thumb"><span class="mero-lamp-photo" data-finish="graphite" data-view="profile">
|
|
71
|
+
<img src="/studio-lamp.webp" alt="" width="1120" height="747" loading="lazy" decoding="async" draggable="false">
|
|
72
|
+
</span></span>
|
|
73
|
+
<span>Graphite</span>
|
|
74
|
+
</label>
|
|
75
|
+
</fieldset>
|
|
76
|
+
</form>
|
|
77
|
+
</mero-gallery>
|
|
78
|
+
````
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Cell Color Picker
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Workspace forms
|
|
4
|
+
|
|
5
|
+
Change one preference and receive inline confirmation from the server.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
The local endpoint validates the value and returns a status fragment. Persist it in your own settings handler.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<link rel="stylesheet" href="/mero-workspace.css">
|
|
18
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
19
|
+
<script defer src="/mero.js"></script>
|
|
20
|
+
<script defer src="/mero-workspace.js"></script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Template
|
|
24
|
+
|
|
25
|
+
````html
|
|
26
|
+
<form class="mero-ws-cell" hx-post="/demo/workspace/cell/color" hx-trigger="change" hx-target="find output" hx-sync="this:replace">
|
|
27
|
+
<label class="mero-ws-cell-row"><span><strong>Workspace accent</strong><small>Used for team labels and highlights.</small></span>
|
|
28
|
+
<input class="mero-ws-color" type="color" name="value" value="#56846f" aria-label="Workspace accent">
|
|
29
|
+
</label>
|
|
30
|
+
<output role="status" class="mero-ws-status"></output>
|
|
31
|
+
</form>
|
|
32
|
+
````
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Cell Select
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Workspace forms
|
|
4
|
+
|
|
5
|
+
Change one preference and receive inline confirmation from the server.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
The local endpoint validates the value and returns a status fragment. Persist it in your own settings handler.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<link rel="stylesheet" href="/mero-workspace.css">
|
|
18
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
19
|
+
<script defer src="/mero.js"></script>
|
|
20
|
+
<script defer src="/mero-workspace.js"></script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Template
|
|
24
|
+
|
|
25
|
+
````html
|
|
26
|
+
<form class="mero-ws-cell" hx-post="/demo/workspace/cell/select" hx-trigger="change" hx-target="find output" hx-sync="this:replace">
|
|
27
|
+
<label class="mero-ws-cell-row"><span><strong>Start of week</strong><small>The first day in your planning calendar.</small></span>
|
|
28
|
+
<select class="mero-select" name="value" aria-label="Start of week"><option>Monday</option><option>Sunday</option><option>Saturday</option></select>
|
|
29
|
+
</label>
|
|
30
|
+
<output role="status" class="mero-ws-status"></output>
|
|
31
|
+
</form>
|
|
32
|
+
````
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Cell Slider
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Workspace forms
|
|
4
|
+
|
|
5
|
+
Change one preference and receive inline confirmation from the server.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
The local endpoint validates the value and returns a status fragment. Persist it in your own settings handler.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<link rel="stylesheet" href="/mero-workspace.css">
|
|
18
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
19
|
+
<script defer src="/mero.js"></script>
|
|
20
|
+
<script defer src="/mero-workspace.js"></script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Template
|
|
24
|
+
|
|
25
|
+
````html
|
|
26
|
+
<form class="mero-ws-cell" hx-post="/demo/workspace/cell/slider" hx-trigger="change" hx-target="find output" hx-sync="this:replace">
|
|
27
|
+
<label class="mero-ws-cell-row"><span><strong>Preview size</strong><small>Scale the thumbnails in your library.</small></span>
|
|
28
|
+
<input class="mero-slider" type="range" name="value" min="60" max="120" step="5" value="80" aria-label="Preview size">
|
|
29
|
+
</label>
|
|
30
|
+
<output role="status" class="mero-ws-status"></output>
|
|
31
|
+
</form>
|
|
32
|
+
````
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Cell Switch
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Workspace forms
|
|
4
|
+
|
|
5
|
+
Change one preference and receive inline confirmation from the server.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
The local endpoint validates the value and returns a status fragment. Persist it in your own settings handler.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<link rel="stylesheet" href="/mero-workspace.css">
|
|
18
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
19
|
+
<script defer src="/mero.js"></script>
|
|
20
|
+
<script defer src="/mero-workspace.js"></script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Template
|
|
24
|
+
|
|
25
|
+
````html
|
|
26
|
+
<form class="mero-ws-cell" hx-post="/demo/workspace/cell/switch" hx-trigger="change" hx-target="find output" hx-sync="this:replace">
|
|
27
|
+
<label class="mero-ws-cell-row"><span><strong>Release notifications</strong><small>Receive an update when a release is ready.</small></span>
|
|
28
|
+
<input class="mero-switch" type="checkbox" role="switch" name="value" value="on" aria-label="Release notifications" checked>
|
|
29
|
+
</label>
|
|
30
|
+
<output role="status" class="mero-ws-status"></output>
|
|
31
|
+
</form>
|
|
32
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Chain Of Thought
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Conversation
|
|
4
|
+
|
|
5
|
+
Display a disclosure of observable execution steps for a report.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Populate this component with public tool activity from your application.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<link rel="stylesheet" href="/mero-insights.css">
|
|
18
|
+
<script defer src="/mero.js"></script>
|
|
19
|
+
<script defer src="/mero-insights.js"></script>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Template
|
|
23
|
+
|
|
24
|
+
````html
|
|
25
|
+
<details class="mero-chat-disclosure" open><summary>Report activity <span>Complete</span></summary><ol class="mero-chat-steps"><li>Read the weekly ledger <small>7 daily entries</small></li><li>Group shipments by collection <small>4 collections</small></li><li>Calculate weekly total <small>284 units</small></li></ol></details>
|
|
26
|
+
````
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Chart Tooltip
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Charts
|
|
4
|
+
|
|
5
|
+
Inspect the active data point using a pointer or keyboard.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
Optional server helper: `ui/insight-charts.mjs`.
|
|
10
|
+
|
|
11
|
+
## Default
|
|
12
|
+
|
|
13
|
+
The SVG and data table share one dataset. Tab into the chart once. Arrow left and right inspect categories. Arrow up and down change series. The next Tab reaches the data table. The optional insight-charts.mjs helper renders this HTML on your server.
|
|
14
|
+
|
|
15
|
+
Page assets
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<link rel="stylesheet" href="/mero.css">
|
|
19
|
+
<link rel="stylesheet" href="/mero-insights.css">
|
|
20
|
+
<script defer src="/mero.js"></script>
|
|
21
|
+
<script defer src="/mero-insights.js"></script>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Template
|
|
25
|
+
|
|
26
|
+
````html
|
|
27
|
+
<figure class="mero-plot" data-mero-chart="line">
|
|
28
|
+
<figcaption><strong>Dispatch detail</strong><span>Studio dispatch · sample week</span></figcaption>
|
|
29
|
+
<ul class="mero-plot-legend" aria-label="Series"><li><i class="mero-plot-tone-0" aria-hidden="true"></i>Shipped</li><li><i class="mero-plot-tone-1" aria-hidden="true"></i>Planned</li></ul>
|
|
30
|
+
<svg viewBox="0 0 495 188" role="group" aria-label="Dispatch detail"><desc>Use the arrow keys to explore values. Open the data table for all values.</desc><line class="mero-plot-grid" x1="42" x2="480" y1="155" y2="155"/><text class="mero-plot-axis" x="35" y="159" text-anchor="end">0</text><line class="mero-plot-grid" x1="42" x2="480" y1="85.5" y2="85.5"/><text class="mero-plot-axis" x="35" y="89.5" text-anchor="end">28</text><line class="mero-plot-grid" x1="42" x2="480" y1="16" y2="16"/><text class="mero-plot-axis" x="35" y="20" text-anchor="end">56</text><text class="mero-plot-axis" x="73.29" y="179" text-anchor="middle">Mon</text><text class="mero-plot-axis" x="135.86" y="179" text-anchor="middle">Tue</text><text class="mero-plot-axis" x="198.43" y="179" text-anchor="middle">Wed</text><text class="mero-plot-axis" x="261" y="179" text-anchor="middle">Thu</text><text class="mero-plot-axis" x="323.57" y="179" text-anchor="middle">Fri</text><text class="mero-plot-axis" x="386.14" y="179" text-anchor="middle">Sat</text><text class="mero-plot-axis" x="448.71" y="179" text-anchor="middle">Sun</text><polyline class="mero-plot-line mero-plot-tone-0" points="73.29,75.57 135.86,58.2 198.43,73.09 261,40.82 323.57,16 386.14,60.68 448.71,55.71"/><polyline class="mero-plot-line mero-plot-tone-1" points="73.29,68.13 135.86,53.23 198.43,75.57 261,35.86 323.57,25.93 386.14,65.64 448.71,50.75"/><g class="mero-plot-point mero-plot-tone-0" tabindex="0" role="img" aria-label="Mon · Shipped: 32" data-mero-series="0" data-mero-plot-value="Mon · Shipped: 32"><circle cx="73.29" cy="75.57" r="9" fill="transparent"/><circle class="mero-plot-dot" cx="73.29" cy="75.57" r="3.8"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Tue · Shipped: 39" data-mero-series="0" data-mero-plot-value="Tue · Shipped: 39"><circle cx="135.86" cy="58.2" r="9" fill="transparent"/><circle class="mero-plot-dot" cx="135.86" cy="58.2" r="3.8"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Wed · Shipped: 33" data-mero-series="0" data-mero-plot-value="Wed · Shipped: 33"><circle cx="198.43" cy="73.09" r="9" fill="transparent"/><circle class="mero-plot-dot" cx="198.43" cy="73.09" r="3.8"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Thu · Shipped: 46" data-mero-series="0" data-mero-plot-value="Thu · Shipped: 46"><circle cx="261" cy="40.82" r="9" fill="transparent"/><circle class="mero-plot-dot" cx="261" cy="40.82" r="3.8"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Fri · Shipped: 56" data-mero-series="0" data-mero-plot-value="Fri · Shipped: 56"><circle cx="323.57" cy="16" r="9" fill="transparent"/><circle class="mero-plot-dot" cx="323.57" cy="16" r="3.8"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Sat · Shipped: 38" data-mero-series="0" data-mero-plot-value="Sat · Shipped: 38"><circle cx="386.14" cy="60.68" r="9" fill="transparent"/><circle class="mero-plot-dot" cx="386.14" cy="60.68" r="3.8"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Sun · Shipped: 40" data-mero-series="0" data-mero-plot-value="Sun · Shipped: 40"><circle cx="448.71" cy="55.71" r="9" fill="transparent"/><circle class="mero-plot-dot" cx="448.71" cy="55.71" r="3.8"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Mon · Planned: 35" data-mero-series="1" data-mero-plot-value="Mon · Planned: 35"><circle cx="73.29" cy="68.13" r="9" fill="transparent"/><circle class="mero-plot-dot" cx="73.29" cy="68.13" r="3.8"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Tue · Planned: 41" data-mero-series="1" data-mero-plot-value="Tue · Planned: 41"><circle cx="135.86" cy="53.23" r="9" fill="transparent"/><circle class="mero-plot-dot" cx="135.86" cy="53.23" r="3.8"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Wed · Planned: 32" data-mero-series="1" data-mero-plot-value="Wed · Planned: 32"><circle cx="198.43" cy="75.57" r="9" fill="transparent"/><circle class="mero-plot-dot" cx="198.43" cy="75.57" r="3.8"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Thu · Planned: 48" data-mero-series="1" data-mero-plot-value="Thu · Planned: 48"><circle cx="261" cy="35.86" r="9" fill="transparent"/><circle class="mero-plot-dot" cx="261" cy="35.86" r="3.8"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Fri · Planned: 52" data-mero-series="1" data-mero-plot-value="Fri · Planned: 52"><circle cx="323.57" cy="25.93" r="9" fill="transparent"/><circle class="mero-plot-dot" cx="323.57" cy="25.93" r="3.8"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Sat · Planned: 36" data-mero-series="1" data-mero-plot-value="Sat · Planned: 36"><circle cx="386.14" cy="65.64" r="9" fill="transparent"/><circle class="mero-plot-dot" cx="386.14" cy="65.64" r="3.8"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Sun · Planned: 42" data-mero-series="1" data-mero-plot-value="Sun · Planned: 42"><circle cx="448.71" cy="50.75" r="9" fill="transparent"/><circle class="mero-plot-dot" cx="448.71" cy="50.75" r="3.8"/></g></svg>
|
|
31
|
+
<span class="mero-plot-tooltip" data-mero-plot-tooltip aria-hidden="true" hidden></span>
|
|
32
|
+
<div class="mero-plot-readout" data-mero-plot-readout>Inspect a point or use the arrow keys</div>
|
|
33
|
+
<details class="mero-plot-data"><summary>View chart data</summary><div><table class="mero-table"><caption>Dispatch detail</caption><thead><tr><th scope="col">Category</th><th scope="col">Shipped</th><th scope="col">Planned</th></tr></thead>
|
|
34
|
+
<tbody><tr><th scope="row">Mon</th><td>32</td><td>35</td></tr><tr><th scope="row">Tue</th><td>39</td><td>41</td></tr><tr><th scope="row">Wed</th><td>33</td><td>32</td></tr><tr><th scope="row">Thu</th><td>46</td><td>48</td></tr><tr><th scope="row">Fri</th><td>56</td><td>52</td></tr><tr><th scope="row">Sat</th><td>38</td><td>36</td></tr><tr><th scope="row">Sun</th><td>40</td><td>42</td></tr></tbody></table></div></details>
|
|
35
|
+
</figure>
|
|
36
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Chat Attachment
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Conversation
|
|
4
|
+
|
|
5
|
+
Display a named file and provide a working download.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
The example serves an actual CSV from the local demo endpoint.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<link rel="stylesheet" href="/mero-insights.css">
|
|
18
|
+
<script defer src="/mero.js"></script>
|
|
19
|
+
<script defer src="/mero-insights.js"></script>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Template
|
|
23
|
+
|
|
24
|
+
````html
|
|
25
|
+
<a class="mero-chat-file" href="/demo/insights/dispatch.csv" download="dispatch.csv"><span aria-hidden="true">↧</span><span><strong>dispatch.csv</strong><small>Weekly shipment ledger · CSV</small></span></a>
|
|
26
|
+
````
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Chat Conversation
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Conversation
|
|
4
|
+
|
|
5
|
+
Keep messages, controls and a composer in one scoped conversation.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Replies come from a deterministic local shipment fixture. The endpoint returns two message articles.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<link rel="stylesheet" href="/mero-insights.css">
|
|
18
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
19
|
+
<script defer src="/mero.js"></script>
|
|
20
|
+
<script defer src="/mero-insights.js"></script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Template
|
|
24
|
+
|
|
25
|
+
````html
|
|
26
|
+
<section class="mero-chat" aria-label="Dispatch assistant demo">
|
|
27
|
+
<header class="mero-chat-head"><strong>Dispatch assistant</strong><span>Local demo</span></header>
|
|
28
|
+
<div class="mero-chat-history" role="log" aria-label="Conversation" aria-relevant="additions"><article class="mero-chat-message" data-role="user"><header>You</header><div data-mero-message-text><p>Summarize this week.</p></div></article><article class="mero-chat-message" data-role="assistant"><header>Studio</header><div data-mero-message-text><div class="mero-markdown"><p>Studio shipped <strong>284 units</strong> this week against a plan of 286. Fri was the busiest day with 56 units.</p></div></div><div class="mero-chat-actions" role="group" aria-label="Message actions"><button class="mero-insight-link" type="button" data-mero-copy>Copy message</button><button class="mero-insight-link" type="button" data-mero-pressable aria-pressed="false">Helpful</button></div></article></div>
|
|
29
|
+
<form class="mero-chat-compose" data-mero-compose method="post" action="/demo/insights/reply" hx-post="/demo/insights/reply" hx-target="previous .mero-chat-history" hx-swap="beforeend" hx-sync="this:drop">
|
|
30
|
+
<div class="mero-chat-actions" role="group" aria-label="Suggested questions"><button class="mero-suggestion" type="button" data-mero-suggest>Summarize this week</button><button class="mero-suggestion" type="button" data-mero-suggest>Which day shipped most?</button><button class="mero-suggestion" type="button" data-mero-suggest>Show the collection mix</button></div><label><span class="mero-insight-sr">Your question</span><textarea class="mero-input" name="message" placeholder="Ask about this week’s dispatches…" rows="2" required maxlength="1000"></textarea></label>
|
|
31
|
+
<div class="mero-chat-compose-foot"><span data-mero-chat-status role="status"></span><button type="submit" class="mero-button mero-button-primary mero-button-sm">Send <span aria-hidden="true">↑</span></button></div>
|
|
32
|
+
</form>
|
|
33
|
+
</section>
|
|
34
|
+
````
|
|
35
|
+
|
|
36
|
+
## Empty conversation
|
|
37
|
+
|
|
38
|
+
Replies come from a deterministic local shipment fixture. The endpoint returns two message articles.
|
|
39
|
+
|
|
40
|
+
Page assets
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<link rel="stylesheet" href="/mero.css">
|
|
44
|
+
<link rel="stylesheet" href="/mero-insights.css">
|
|
45
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
46
|
+
<script defer src="/mero.js"></script>
|
|
47
|
+
<script defer src="/mero-insights.js"></script>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Template
|
|
51
|
+
|
|
52
|
+
````html
|
|
53
|
+
<section class="mero-chat" aria-label="Dispatch assistant demo">
|
|
54
|
+
<header class="mero-chat-head"><strong>Dispatch assistant</strong><span>Local demo</span></header>
|
|
55
|
+
<div class="mero-chat-history" role="log" aria-label="Conversation" aria-relevant="additions"></div>
|
|
56
|
+
<form class="mero-chat-compose" data-mero-compose method="post" action="/demo/insights/reply" hx-post="/demo/insights/reply" hx-target="previous .mero-chat-history" hx-swap="beforeend" hx-sync="this:drop">
|
|
57
|
+
<div class="mero-chat-actions" role="group" aria-label="Suggested questions"><button class="mero-suggestion" type="button" data-mero-suggest>Summarize this week</button><button class="mero-suggestion" type="button" data-mero-suggest>Which day shipped most?</button><button class="mero-suggestion" type="button" data-mero-suggest>Show the collection mix</button></div><label><span class="mero-insight-sr">Your question</span><textarea class="mero-input" name="message" placeholder="Ask about this week’s dispatches…" rows="2" required maxlength="1000"></textarea></label>
|
|
58
|
+
<div class="mero-chat-compose-foot"><span data-mero-chat-status role="status"></span><button type="submit" class="mero-button mero-button-primary mero-button-sm">Send <span aria-hidden="true">↑</span></button></div>
|
|
59
|
+
</form>
|
|
60
|
+
</section>
|
|
61
|
+
````
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Chat List View
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Conversation
|
|
4
|
+
|
|
5
|
+
Open a conversation returned by the server.
|
|
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-insights.css">
|
|
16
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
17
|
+
<script defer src="/mero.js"></script>
|
|
18
|
+
<script defer src="/mero-insights.js"></script>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Template
|
|
22
|
+
|
|
23
|
+
````html
|
|
24
|
+
<div class="mero-chat-inbox"><nav aria-label="Dispatch conversations"><a href="/demo/insights/thread?topic=weekly" data-mero-topic="weekly" aria-current="true" hx-get="/demo/insights/thread?topic=weekly" hx-target="next .mero-chat-thread" hx-swap="innerHTML" hx-sync="closest nav:replace">Weekly dispatches</a><a href="/demo/insights/thread?topic=peak" data-mero-topic="peak" hx-get="/demo/insights/thread?topic=peak" hx-target="next .mero-chat-thread" hx-swap="innerHTML" hx-sync="closest nav:replace">Peak capacity</a><a href="/demo/insights/thread?topic=mix" data-mero-topic="mix" hx-get="/demo/insights/thread?topic=mix" hx-target="next .mero-chat-thread" hx-swap="innerHTML" hx-sync="closest nav:replace">Collection mix</a></nav><section class="mero-chat-thread" aria-label="Selected conversation" aria-live="polite"><div data-mero-current-topic="weekly"><h2>Weekly dispatches</h2><article class="mero-chat-message" data-role="assistant"><header>Studio</header><div data-mero-message-text><div class="mero-markdown"><p>Studio shipped <strong>284 units</strong> this week against a plan of 286. Fri was the busiest day with 56 units.</p></div></div></article></div></section><div class="mero-insight-status" data-mero-report-status role="status"></div></div>
|
|
25
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Chat Loader
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Conversation
|
|
4
|
+
|
|
5
|
+
Show a concise status while a response is being prepared.
|
|
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-insights.css">
|
|
16
|
+
<script defer src="/mero.js"></script>
|
|
17
|
+
<script defer src="/mero-insights.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Template
|
|
21
|
+
|
|
22
|
+
````html
|
|
23
|
+
<div class="mero-chat-loader" role="status"><span aria-hidden="true"><i></i><i></i><i></i></span> Preparing report</div>
|
|
24
|
+
````
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Chat Message Actions
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Conversation
|
|
4
|
+
|
|
5
|
+
Copy a reply or mark it as helpful.
|
|
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-insights.css">
|
|
16
|
+
<script defer src="/mero.js"></script>
|
|
17
|
+
<script defer src="/mero-insights.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Template
|
|
21
|
+
|
|
22
|
+
````html
|
|
23
|
+
<article class="mero-chat-message" data-role="assistant"><header>Studio</header><div data-mero-message-text><div class="mero-markdown"><p>Weekly dispatches by collection:</p>
|
|
24
|
+
<ul><li><strong>Lighting</strong> · 106 units</li><li><strong>Furniture</strong> · 83 units</li><li><strong>Objects</strong> · 58 units</li><li><strong>Textiles</strong> · 37 units</li></ul></div></div><div class="mero-chat-actions" role="group" aria-label="Message actions"><button class="mero-insight-link" type="button" data-mero-copy>Copy message</button><button class="mero-insight-link" type="button" data-mero-pressable aria-pressed="false">Helpful</button></div></article>
|
|
25
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Chat Message
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Conversation
|
|
4
|
+
|
|
5
|
+
Distinguish the sender and keep the message readable after a swap.
|
|
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-insights.css">
|
|
16
|
+
<script defer src="/mero.js"></script>
|
|
17
|
+
<script defer src="/mero-insights.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Template
|
|
21
|
+
|
|
22
|
+
````html
|
|
23
|
+
<div class="mero-chat-history"><article class="mero-chat-message" data-role="user"><header>You</header><div data-mero-message-text><p>Which day shipped most?</p></div></article><article class="mero-chat-message" data-role="assistant"><header>Studio</header><div data-mero-message-text><div class="mero-markdown"><p>The busiest day was <strong>Fri</strong>, with <strong>56 units</strong> dispatched against a plan of 52.</p></div></div></article></div>
|
|
24
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Chat Source
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Conversation
|
|
4
|
+
|
|
5
|
+
Open the exact data behind a generated summary.
|
|
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-insights.css">
|
|
16
|
+
<script defer src="/mero.js"></script>
|
|
17
|
+
<script defer src="/mero-insights.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Template
|
|
21
|
+
|
|
22
|
+
````html
|
|
23
|
+
<details class="mero-chat-disclosure"><summary>Shipment ledger <span>7 entries</span></summary><table class="mero-table"><thead><tr><th scope="col">Day</th><th scope="col">Shipped</th><th scope="col">Planned</th></tr></thead><tbody><tr><th scope="row">Mon</th><td>32</td><td>35</td></tr><tr><th scope="row">Tue</th><td>39</td><td>41</td></tr><tr><th scope="row">Wed</th><td>33</td><td>32</td></tr><tr><th scope="row">Thu</th><td>46</td><td>48</td></tr><tr><th scope="row">Fri</th><td>56</td><td>52</td></tr><tr><th scope="row">Sat</th><td>38</td><td>36</td></tr><tr><th scope="row">Sun</th><td>40</td><td>42</td></tr></tbody></table></details>
|
|
24
|
+
````
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Chat Tool
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Conversation
|
|
4
|
+
|
|
5
|
+
Disclose the inputs and output of an application 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-insights.css">
|
|
16
|
+
<script defer src="/mero.js"></script>
|
|
17
|
+
<script defer src="/mero-insights.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Template
|
|
21
|
+
|
|
22
|
+
````html
|
|
23
|
+
<details class="mero-chat-disclosure"><summary>Calculate dispatch totals <span>Completed</span></summary><dl class="mero-tool-result"><dt>Input</dt><dd>7 daily shipment totals</dd><dt>Result</dt><dd>284 units shipped</dd></dl></details>
|
|
24
|
+
````
|
|
25
|
+
|
|
26
|
+
## Failed run
|
|
27
|
+
|
|
28
|
+
Page assets
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
<link rel="stylesheet" href="/mero.css">
|
|
32
|
+
<link rel="stylesheet" href="/mero-insights.css">
|
|
33
|
+
<script defer src="/mero.js"></script>
|
|
34
|
+
<script defer src="/mero-insights.js"></script>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Template
|
|
38
|
+
|
|
39
|
+
````html
|
|
40
|
+
<details class="mero-chat-disclosure" open><summary>Calculate dispatch totals <span>Failed</span></summary><p role="status">The ledger could not be read. Check that the selected report still exists.</p></details>
|
|
41
|
+
````
|