@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,30 @@
|
|
|
1
|
+
# Input Group
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Forms
|
|
4
|
+
|
|
5
|
+
Combine a control and contextual prefix with a single outline.
|
|
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
|
+
<script defer src="/mero.js"></script>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Template
|
|
19
|
+
|
|
20
|
+
````html
|
|
21
|
+
<div class="mero-scope" data-mero-scope>
|
|
22
|
+
<div class="mero-field">
|
|
23
|
+
<label class="mero-label" for="demo-input-group">Project URL</label>
|
|
24
|
+
<div class="mero-input-group">
|
|
25
|
+
<span class="mero-input-prefix" id="demo-project-prefix">mero.example/</span>
|
|
26
|
+
<input class="mero-input" id="demo-input-group" aria-describedby="demo-project-prefix" name="project" placeholder="my-project">
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
````
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Input OTP
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Forms
|
|
4
|
+
|
|
5
|
+
Collect a six-digit code in one input with mobile autofill.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
A single field supports paste and full-code autofill.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<script defer src="/mero.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Template
|
|
21
|
+
|
|
22
|
+
````html
|
|
23
|
+
<div class="mero-scope" data-mero-scope>
|
|
24
|
+
<div class="mero-field">
|
|
25
|
+
<label class="mero-label" for="demo-otp">Verification code</label>
|
|
26
|
+
<input class="mero-input mero-input-otp" id="demo-otp" type="text" aria-describedby="demo-otp-hint" name="otp" inputmode="numeric" autocomplete="one-time-code" pattern="[0-9]{6}" maxlength="6" placeholder="000000">
|
|
27
|
+
<p class="mero-description" id="demo-otp-hint">Enter the six digits from your authenticator.</p>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
````
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Input
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Forms
|
|
4
|
+
|
|
5
|
+
A styled native input with browser validation and autocomplete.
|
|
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
|
+
<script defer src="/mero.js"></script>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Template
|
|
19
|
+
|
|
20
|
+
````html
|
|
21
|
+
<div class="mero-scope" data-mero-scope>
|
|
22
|
+
<div class="mero-field">
|
|
23
|
+
<label class="mero-label" for="demo-input">Email address</label>
|
|
24
|
+
<input class="mero-input" id="demo-input" type="email" name="email" autocomplete="email" placeholder="you@example.com">
|
|
25
|
+
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Item Card Group
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Studio collections
|
|
4
|
+
|
|
5
|
+
Arrange related destinations into a responsive group.
|
|
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-item-card-group"><a class="mero-item-card" href="/components/data-grid"><span class="mero-collection-monogram" aria-hidden="true">AR</span><span><strong>Arc collection</strong><small>Lighting and furniture</small></span><span class="mero-item-arrow" aria-hidden="true">↗</span></a><a class="mero-item-card" href="/components/agenda"><span class="mero-collection-monogram" aria-hidden="true">FM</span><span><strong>Forma studio</strong><small>Objects and materials</small></span><span class="mero-item-arrow" aria-hidden="true">↗</span></a><a class="mero-item-card" href="/components/list-view"><span class="mero-collection-monogram" aria-hidden="true">DN</span><span><strong>Dune textiles</strong><small>Finishes and inventory</small></span><span class="mero-item-arrow" aria-hidden="true">↗</span></a></div>
|
|
24
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Item Card
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Studio collections
|
|
4
|
+
|
|
5
|
+
Give a related destination an identity, title and supporting detail.
|
|
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
|
+
<a class="mero-item-card" href="/components/data-grid"><span class="mero-collection-monogram" aria-hidden="true">AR</span><span><strong>Arc collection</strong><small>Lighting and furniture</small></span><span class="mero-item-arrow" aria-hidden="true">↗</span></a>
|
|
24
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Join
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Composition
|
|
4
|
+
|
|
5
|
+
Connect related controls with a shared outline.
|
|
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
|
+
<form class="mero-join" role="search" action="/components"><input class="mero-input" type="search" name="q" aria-label="Find a component" placeholder="Search the library"><button class="mero-button mero-button-primary">Search</button></form>
|
|
24
|
+
````
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Joined Filter
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Workspace forms
|
|
4
|
+
|
|
5
|
+
Search and filter releases with one server request.
|
|
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="/vendor/htmx.min.js"></script>
|
|
17
|
+
<script defer src="/mero.js"></script>
|
|
18
|
+
<script defer src="/mero-workspace.js"></script>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Template
|
|
22
|
+
|
|
23
|
+
````html
|
|
24
|
+
<form class="mero-ws-filter" hx-get="/demo/workspace/filter" hx-target="find output" hx-sync="this:replace">
|
|
25
|
+
<div class="mero-ws-join"><input type="search" name="q" class="mero-input" placeholder="Find a product" aria-label="Search products"><select name="status" class="mero-select" aria-label="Filter by status"><option value="">All states</option><option>Draft</option><option>Ready</option></select><button class="mero-button mero-button-sm mero-button-primary" type="submit">Filter</button></div>
|
|
26
|
+
<output class="mero-ws-results" aria-live="polite"><span><strong>Arc Task Lamp</strong> <small>Ready</small></span><span><strong>Studio stool</strong> <small>Draft</small></span><span><strong>Field notebook</strong> <small>Ready</small></span></output>
|
|
27
|
+
</form>
|
|
28
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Kanban
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Studio collections
|
|
4
|
+
|
|
5
|
+
Move a card between stages with a drag or its Move to menu.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Tap a card’s Move to menu and choose a stage. On a keyboard, Tab to the same menu and type R for Ready. The card moves, both lane counts update and focus stays on the menu. The bubbling mero:kanban-move event carries the card element and the from and to lane names in event.detail. Reloading resets this board.
|
|
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
|
+
<section class="mero-kanban" data-mero-kanban aria-label="Release board"><div class="mero-kanban-lanes"><section class="mero-kanban-lane" data-lane="Queued"><h2>Queued<span data-lane-count>1</span></h2><div data-lane-cards><article class="mero-kanban-card" draggable="true"><small>Production</small><strong>Validate finishes</strong><label>Move to<select class="mero-select" data-kanban-move aria-label="Move Validate finishes"><option value="Queued" selected>Queued</option><option value="In progress">In progress</option><option value="Ready">Ready</option></select></label></article></div></section><section class="mero-kanban-lane" data-lane="In progress"><h2>In progress<span data-lane-count>1</span></h2><div data-lane-cards><article class="mero-kanban-card" draggable="true"><small>Packaging</small><strong>Approve label proof</strong><label>Move to<select class="mero-select" data-kanban-move aria-label="Move Approve label proof"><option value="Queued">Queued</option><option value="In progress" selected>In progress</option><option value="Ready">Ready</option></select></label></article></div></section><section class="mero-kanban-lane" data-lane="Ready"><h2>Ready<span data-lane-count>1</span></h2><div data-lane-cards><article class="mero-kanban-card" draggable="true"><small>Outreach</small><strong>Send sample kit</strong><label>Move to<select class="mero-select" data-kanban-move aria-label="Move Send sample kit"><option value="Queued">Queued</option><option value="In progress">In progress</option><option value="Ready" selected>Ready</option></select></label></article></div></section></div><output role="status" class="mero-collection-sr"></output></section>
|
|
26
|
+
````
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Kbd
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Typography
|
|
4
|
+
|
|
5
|
+
Format a keyboard shortcut with native semantics.
|
|
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
|
+
<script defer src="/mero.js"></script>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Template
|
|
19
|
+
|
|
20
|
+
````html
|
|
21
|
+
<p class="mero-text">Use <kbd class="mero-kbd">Tab</kbd> to move to the next control.</p>
|
|
22
|
+
````
|
|
23
|
+
|
|
24
|
+
## Keyboard shortcuts
|
|
25
|
+
|
|
26
|
+
Act on single keys and two-key sequences, with a switch to turn them off.
|
|
27
|
+
|
|
28
|
+
Shortcuts are ignored while the person types in a field, works in a menu, list, tab list or grid, or holds Ctrl, Cmd or Alt. A field takes focus; anything else is clicked. A two-key sequence such as g r must be finished within 1.5 seconds. WCAG 2.1.4 requires a way to turn single-key shortcuts off: the data-mero-shortcuts-toggle control does that for every page in this browser, and Mero updates aria-keyshortcuts to match.
|
|
29
|
+
|
|
30
|
+
Page assets
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<link rel="stylesheet" href="/mero.css">
|
|
34
|
+
<script defer src="/mero.js"></script>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Template
|
|
38
|
+
|
|
39
|
+
````html
|
|
40
|
+
<div class="mero-scope" data-mero-scope>
|
|
41
|
+
<div class="mero-stack">
|
|
42
|
+
<div class="mero-field">
|
|
43
|
+
<label class="mero-label" for="shortcut-demo-search">Search <kbd class="mero-kbd">/</kbd></label>
|
|
44
|
+
<input class="mero-input" id="shortcut-demo-search" type="search" data-mero-shortcut="/">
|
|
45
|
+
</div>
|
|
46
|
+
<div class="mero-row">
|
|
47
|
+
<button class="mero-button mero-button-secondary" type="button" data-mero-shortcut="n" data-mero-toast="New draft started">New draft <kbd class="mero-kbd">N</kbd></button>
|
|
48
|
+
<button class="mero-button mero-button-secondary" type="button" data-mero-shortcut="g r" data-mero-toast="Opened reports">Reports <kbd class="mero-kbd">G</kbd> <kbd class="mero-kbd">R</kbd></button>
|
|
49
|
+
</div>
|
|
50
|
+
<label class="mero-row"><input class="mero-checkbox" type="checkbox" data-mero-shortcuts-toggle checked> Single-key shortcuts</label>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# KPI Group
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Metrics
|
|
4
|
+
|
|
5
|
+
Keep related measures on a common reporting period.
|
|
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
|
+
<dl class="mero-insight-metrics"><div class="mero-insight-metric"><dt>Dispatched</dt><dd><strong>284</strong><span>units this week</span></dd></div><div class="mero-insight-metric"><dt>Planned</dt><dd><strong>286</strong><span>units this week</span></dd></div><div class="mero-insight-metric"><dt>Peak day</dt><dd><strong>56</strong><span>units on Fri</span></dd></div></dl>
|
|
24
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# KPI
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Metrics
|
|
4
|
+
|
|
5
|
+
Pair an exact figure with the reporting period it describes.
|
|
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
|
+
<dl class="mero-insight-metrics"><div class="mero-insight-metric"><dt>Dispatched</dt><dd><strong>284</strong><span>units this week</span></dd></div></dl>
|
|
24
|
+
````
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Label
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Forms
|
|
4
|
+
|
|
5
|
+
Name an input and expand its activation area.
|
|
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
|
+
<script defer src="/mero.js"></script>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Template
|
|
19
|
+
|
|
20
|
+
````html
|
|
21
|
+
<div class="mero-scope" data-mero-scope>
|
|
22
|
+
<div class="mero-field">
|
|
23
|
+
<label class="mero-label" for="demo-label">Display name</label>
|
|
24
|
+
<input class="mero-input" id="demo-label" type="text" name="displayName" placeholder="Your name">
|
|
25
|
+
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
````
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Line Chart
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Charts
|
|
4
|
+
|
|
5
|
+
Trace changes across a reporting period.
|
|
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 pace</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 pace"><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 pace</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
|
+
````
|
|
37
|
+
|
|
38
|
+
## Period picker
|
|
39
|
+
|
|
40
|
+
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.
|
|
41
|
+
|
|
42
|
+
Page assets
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<link rel="stylesheet" href="/mero.css">
|
|
46
|
+
<link rel="stylesheet" href="/mero-insights.css">
|
|
47
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
48
|
+
<script defer src="/mero.js"></script>
|
|
49
|
+
<script defer src="/mero-insights.js"></script>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Template
|
|
53
|
+
|
|
54
|
+
````html
|
|
55
|
+
<div class="mero-report-period"><form hx-get="/demo/insights/chart" hx-target="next .mero-plot" hx-swap="outerHTML" hx-sync="this:replace"><label>Reporting period <select name="period" class="mero-select"><option value="week">Full week</option><option value="recent">Last three days</option></select></label><button class="mero-button" type="submit">Apply</button></form><div class="mero-insight-status" data-mero-report-status role="status"></div><figure class="mero-plot" data-mero-chart="line">
|
|
56
|
+
<figcaption><strong>Dispatch pace</strong><span>Monday to Sunday</span></figcaption>
|
|
57
|
+
<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>
|
|
58
|
+
<svg viewBox="0 0 495 188" role="group" aria-label="Dispatch pace"><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>
|
|
59
|
+
<span class="mero-plot-tooltip" data-mero-plot-tooltip aria-hidden="true" hidden></span>
|
|
60
|
+
<div class="mero-plot-readout" data-mero-plot-readout>Inspect a point or use the arrow keys</div>
|
|
61
|
+
<details class="mero-plot-data"><summary>View chart data</summary><div><table class="mero-table"><caption>Dispatch pace</caption><thead><tr><th scope="col">Category</th><th scope="col">Shipped</th><th scope="col">Planned</th></tr></thead>
|
|
62
|
+
<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>
|
|
63
|
+
</figure></div>
|
|
64
|
+
````
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Link
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Navigation
|
|
4
|
+
|
|
5
|
+
Navigate to a real URL with native link semantics.
|
|
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
|
+
<script defer src="/mero.js"></script>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Template
|
|
19
|
+
|
|
20
|
+
````html
|
|
21
|
+
<a class="mero-link" href="/start">Read the quickstart</a>
|
|
22
|
+
````
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# List Box
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Collections
|
|
4
|
+
|
|
5
|
+
Present a selectable collection with arrow-key navigation.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Selection state is written to aria-selected. Use a native select if the form needs a submitted value.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<script defer src="/mero.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Template
|
|
21
|
+
|
|
22
|
+
````html
|
|
23
|
+
<div class="mero-scope" data-mero-scope>
|
|
24
|
+
<ul class="mero-listbox" role="listbox" aria-label="Workspace" data-mero-listbox>
|
|
25
|
+
<li class="mero-option" id="listbox-atlas" role="option" aria-selected="true" tabindex="0">Atlas</li>
|
|
26
|
+
<li class="mero-option" id="listbox-beacon" role="option" aria-selected="false" tabindex="-1">Beacon</li>
|
|
27
|
+
<li class="mero-option" id="listbox-cobalt" role="option" aria-selected="false" tabindex="-1">Cobalt</li>
|
|
28
|
+
</ul>
|
|
29
|
+
</div>
|
|
30
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# List View
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Studio collections
|
|
4
|
+
|
|
5
|
+
Browse structured destinations in a compact keyboard-accessible list.
|
|
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
|
+
<section class="mero-list-view" aria-label="Catalog resources"><a href="/components/widget"><span><strong>Release checklist</strong><small>Publish a collection</small></span><span aria-hidden="true">→</span></a><a href="/components/file-tree"><span><strong>Asset files</strong><small>Browse packaging artwork</small></span><span aria-hidden="true">→</span></a><a href="/components/map"><span><strong>Studio map</strong><small>Find a location</small></span><span aria-hidden="true">→</span></a></section>
|
|
24
|
+
````
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Live Progress
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Feedback
|
|
4
|
+
|
|
5
|
+
Follow a deployment through to its final status.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Return an HTML fragment with the current status. Send Mero-Live: done with the final status to stop polling. A failed read keeps the last status and offers a retry. Polling pauses in background tabs and refreshes when the tab becomes visible. The hidden started field drives this demo. In your app, point hx-get at the operation and omit that field and hx-include.
|
|
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
|
+
<script defer src="/mero-live.js"></script>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Template
|
|
23
|
+
|
|
24
|
+
````html
|
|
25
|
+
<div class="mero-scope" data-mero-scope>
|
|
26
|
+
<section class="mero-card mero-live" aria-labelledby="deployment-title" tabindex="-1" data-mero-live="3000"
|
|
27
|
+
hx-get="/demo/catalog/live-progress" hx-trigger="mero:refresh"
|
|
28
|
+
hx-target="find [data-mero-live-status]" hx-swap="innerHTML" hx-include="find input">
|
|
29
|
+
<h2 class="mero-card-title" id="deployment-title">Production deployment</h2>
|
|
30
|
+
<div class="mero-live-status" data-mero-live-status role="status" aria-atomic="true">
|
|
31
|
+
<span class="mero-badge mero-badge-dot">Queued</span>
|
|
32
|
+
<input type="hidden" name="started" value="">
|
|
33
|
+
</div>
|
|
34
|
+
<p class="mero-form-status" role="status" data-mero-live-error></p>
|
|
35
|
+
<button type="button" class="mero-button mero-button-secondary" data-mero-live-retry hidden>Retry now</button>
|
|
36
|
+
</section>
|
|
37
|
+
</div>
|
|
38
|
+
````
|
|
39
|
+
|
|
40
|
+
## Stale status
|
|
41
|
+
|
|
42
|
+
Keep showing the last confirmed status, with its time, while reads fail.
|
|
43
|
+
|
|
44
|
+
This demo endpoint fails every read after the first. data-mero-live-error fills {time} with the time of the last good read, in the browser's locale. data-mero-live-follow hands an error response with HX-Redirect, HX-Location or HX-Refresh to htmx and stops polling, so an expired session answered with 401 and HX-Redirect: /login goes to the login page instead of retrying forever.
|
|
45
|
+
|
|
46
|
+
Page assets
|
|
47
|
+
|
|
48
|
+
```html
|
|
49
|
+
<link rel="stylesheet" href="/mero.css">
|
|
50
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
51
|
+
<script defer src="/mero.js"></script>
|
|
52
|
+
<script defer src="/mero-live.js"></script>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Template
|
|
56
|
+
|
|
57
|
+
````html
|
|
58
|
+
<div class="mero-scope" data-mero-scope>
|
|
59
|
+
<section class="mero-card mero-live" aria-labelledby="stale-deployment-title" tabindex="-1" data-mero-live="3000" data-mero-live-follow
|
|
60
|
+
hx-get="/demo/catalog/live-progress?outage=1" hx-trigger="mero:refresh"
|
|
61
|
+
hx-target="find [data-mero-live-status]" hx-swap="innerHTML" hx-include="find input">
|
|
62
|
+
<h2 class="mero-card-title" id="stale-deployment-title">Production deployment</h2>
|
|
63
|
+
<div class="mero-live-status" data-mero-live-status role="status" aria-atomic="true">
|
|
64
|
+
<span class="mero-badge mero-badge-dot">Queued</span>
|
|
65
|
+
<input type="hidden" name="started" value="">
|
|
66
|
+
</div>
|
|
67
|
+
<p class="mero-form-status" role="status" data-mero-live-error="Couldn't refresh. This is the status from {time}. Retrying…"></p>
|
|
68
|
+
<button type="button" class="mero-button mero-button-secondary" data-mero-live-retry hidden>Retry now</button>
|
|
69
|
+
</section>
|
|
70
|
+
</div>
|
|
71
|
+
````
|