@rubenlangeweg/mero-ui 0.0.0-stage → 0.7.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 +71 -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 +42 -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 +75 -0
- package/agent-docs/components/calendar.md +105 -0
- package/agent-docs/components/card.md +26 -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.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 +34 -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 +24 -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 +38 -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 +35 -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 +22 -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 +38 -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 +78 -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/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 +28 -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 +31 -0
- package/agent-docs/components/tabs.md +65 -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 +26 -0
- package/agent-docs/components/validator.md +26 -0
- package/agent-docs/components/widget.md +24 -0
- package/agent-docs/components/window-mockup.md +24 -0
- package/agent-docs/llms-components.txt +5881 -0
- package/agent-docs/llms-full.txt +6110 -0
- package/agent-docs/llms-patterns.txt +230 -0
- package/agent-docs/llms.txt +261 -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 +146 -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 +223 -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 +73 -0
- package/ui/mero-live.js +120 -0
- package/ui/mero-workspace.css +152 -0
- package/ui/mero-workspace.js +590 -0
- package/ui/mero.css +922 -0
- package/ui/mero.js +868 -0
- package/ui/studio-lamp.webp +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Progress Bar
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Feedback
|
|
4
|
+
|
|
5
|
+
Report measurable progress toward completion.
|
|
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
|
+
<div class="mero-measure-label"><label class="mero-label" for="demo-progress">Uploading assets</label><span class="mero-description" aria-hidden="true">68%</span></div>
|
|
24
|
+
<progress class="mero-progress" id="demo-progress" max="100" value="68">68%</progress>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
````
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Progress Circle
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Feedback
|
|
4
|
+
|
|
5
|
+
Show a completion value in a compact circular display.
|
|
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
|
+
<span class="mero-progress-circle" style="--mero-value:70" role="progressbar"
|
|
22
|
+
aria-label="Import progress" aria-valuemin="0" aria-valuemax="100" aria-valuenow="70">70%</span>
|
|
23
|
+
````
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Prompt Input
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Conversation
|
|
4
|
+
|
|
5
|
+
Collect a question and submit it to a server-rendered response endpoint.
|
|
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
|
+
<section class="mero-chat" aria-label="Dispatch assistant demo">
|
|
25
|
+
<header class="mero-chat-head"><strong>Dispatch assistant</strong><span>Local demo</span></header>
|
|
26
|
+
<div class="mero-chat-history" role="log" aria-label="Conversation" aria-relevant="additions"></div>
|
|
27
|
+
<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">
|
|
28
|
+
<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>
|
|
29
|
+
<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>
|
|
30
|
+
</form>
|
|
31
|
+
</section>
|
|
32
|
+
````
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Prompt Suggestion
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Conversation
|
|
4
|
+
|
|
5
|
+
Choose a suggested prompt, edit it, then send it.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<link rel="stylesheet" href="/mero-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
|
+
<section class="mero-chat" aria-label="Dispatch assistant demo">
|
|
25
|
+
<header class="mero-chat-head"><strong>Dispatch assistant</strong><span>Local demo</span></header>
|
|
26
|
+
<div class="mero-chat-history" role="log" aria-label="Conversation" aria-relevant="additions"></div>
|
|
27
|
+
<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">
|
|
28
|
+
<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>
|
|
29
|
+
<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>
|
|
30
|
+
</form>
|
|
31
|
+
</section>
|
|
32
|
+
````
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Radar Chart
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Charts
|
|
4
|
+
|
|
5
|
+
Compare profiles across axes that use the same units.
|
|
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="radar">
|
|
28
|
+
<figcaption><strong>Collection shipping targets</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 390 200" role="group" aria-label="Collection shipping targets"><desc>Use the arrow keys to explore values. Open the data table for all values.</desc><polygon class="mero-plot-grid" fill="none" points="195,78.55 216.45,100 195,121.45 173.55,100"/><polygon class="mero-plot-grid" fill="none" points="195,57.1 237.9,100 195,142.9 152.1,100"/><polygon class="mero-plot-grid" fill="none" points="195,35 260,100 195,165 130,100"/><text class="mero-plot-axis" x="195" y="23" text-anchor="middle">Lighting</text><text class="mero-plot-axis" x="276" y="104" text-anchor="start">Furniture</text><text class="mero-plot-axis" x="195" y="185" text-anchor="middle">Objects</text><text class="mero-plot-axis" x="114" y="104" text-anchor="end">Textiles</text><polygon class="mero-plot-radar mero-plot-tone-0" points="195,35 245.9,100 195,135.57 172.31,100"/><g class="mero-plot-point mero-plot-tone-0" tabindex="0" role="img" aria-label="Lighting · Shipped: 106" data-mero-series="0" data-mero-plot-value="Lighting · Shipped: 106"><circle cx="195" cy="35" r="4"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Furniture · Shipped: 83" data-mero-series="0" data-mero-plot-value="Furniture · Shipped: 83"><circle cx="245.9" cy="100" r="4"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Objects · Shipped: 58" data-mero-series="0" data-mero-plot-value="Objects · Shipped: 58"><circle cx="195" cy="135.57" r="4"/></g><g class="mero-plot-point mero-plot-tone-0" tabindex="-1" role="img" aria-label="Textiles · Shipped: 37" data-mero-series="0" data-mero-plot-value="Textiles · Shipped: 37"><circle cx="172.31" cy="100" r="4"/></g><polygon class="mero-plot-radar mero-plot-tone-1" points="195,36.84 245.28,100 195,139.86 172.92,100"/><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Lighting · Planned: 103" data-mero-series="1" data-mero-plot-value="Lighting · Planned: 103"><circle cx="195" cy="36.84" r="4"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Furniture · Planned: 82" data-mero-series="1" data-mero-plot-value="Furniture · Planned: 82"><circle cx="245.28" cy="100" r="4"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Objects · Planned: 65" data-mero-series="1" data-mero-plot-value="Objects · Planned: 65"><circle cx="195" cy="139.86" r="4"/></g><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Textiles · Planned: 36" data-mero-series="1" data-mero-plot-value="Textiles · Planned: 36"><circle cx="172.92" cy="100" r="4"/></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>Collection shipping targets</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">Lighting</th><td>106</td><td>103</td></tr><tr><th scope="row">Furniture</th><td>83</td><td>82</td></tr><tr><th scope="row">Objects</th><td>58</td><td>65</td></tr><tr><th scope="row">Textiles</th><td>37</td><td>36</td></tr></tbody></table></div></details>
|
|
35
|
+
</figure>
|
|
36
|
+
````
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Radial Chart
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Charts
|
|
4
|
+
|
|
5
|
+
Compare categories as concentric rings against the largest category.
|
|
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="radial">
|
|
28
|
+
<figcaption><strong>Collection volume</strong><span>Studio dispatch · sample week</span></figcaption>
|
|
29
|
+
<ul class="mero-plot-legend" aria-label="Categories"><li><i class="mero-plot-tone-0" aria-hidden="true"></i>Lighting</li><li><i class="mero-plot-tone-1" aria-hidden="true"></i>Furniture</li><li><i class="mero-plot-tone-2" aria-hidden="true"></i>Objects</li><li><i class="mero-plot-tone-3" aria-hidden="true"></i>Textiles</li></ul>
|
|
30
|
+
<svg viewBox="0 0 330 170" role="group" aria-label="Collection volume"><desc>Use the arrow keys to explore values. Open the data table for all values.</desc><circle class="mero-plot-track" cx="165" cy="85" r="70.25" pathLength="100" fill="none" stroke-width="11.9"/><g class="mero-plot-point mero-plot-tone-0" tabindex="0" role="img" aria-label="Lighting · Shipped: 106" data-mero-series="0" data-mero-plot-value="Lighting · Shipped: 106"><circle cx="165" cy="85" r="70.25" pathLength="100" fill="none" stroke-width="11.9" stroke="currentColor" stroke-linecap="butt" transform="rotate(-90 165 85)" stroke-dasharray="100 100"/></g><circle class="mero-plot-track" cx="165" cy="85" r="52.75" pathLength="100" fill="none" stroke-width="11.9"/><g class="mero-plot-point mero-plot-tone-1" tabindex="-1" role="img" aria-label="Furniture · Shipped: 83" data-mero-series="0" data-mero-plot-value="Furniture · Shipped: 83"><circle cx="165" cy="85" r="52.75" pathLength="100" fill="none" stroke-width="11.9" stroke="currentColor" stroke-linecap="butt" transform="rotate(-90 165 85)" stroke-dasharray="78.3 100"/></g><circle class="mero-plot-track" cx="165" cy="85" r="35.25" pathLength="100" fill="none" stroke-width="11.9"/><g class="mero-plot-point mero-plot-tone-2" tabindex="-1" role="img" aria-label="Objects · Shipped: 58" data-mero-series="0" data-mero-plot-value="Objects · Shipped: 58"><circle cx="165" cy="85" r="35.25" pathLength="100" fill="none" stroke-width="11.9" stroke="currentColor" stroke-linecap="butt" transform="rotate(-90 165 85)" stroke-dasharray="54.72 100"/></g><circle class="mero-plot-track" cx="165" cy="85" r="17.75" pathLength="100" fill="none" stroke-width="11.9"/><g class="mero-plot-point mero-plot-tone-3" tabindex="-1" role="img" aria-label="Textiles · Shipped: 37" data-mero-series="0" data-mero-plot-value="Textiles · Shipped: 37"><circle cx="165" cy="85" r="17.75" pathLength="100" fill="none" stroke-width="11.9" stroke="currentColor" stroke-linecap="butt" transform="rotate(-90 165 85)" stroke-dasharray="34.91 100"/></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>Collection volume</caption><thead><tr><th scope="col">Category</th><th scope="col">Shipped</th></tr></thead>
|
|
34
|
+
<tbody><tr><th scope="row">Lighting</th><td>106</td></tr><tr><th scope="row">Furniture</th><td>83</td></tr><tr><th scope="row">Objects</th><td>58</td></tr><tr><th scope="row">Textiles</th><td>37</td></tr></tbody></table></div></details>
|
|
35
|
+
</figure>
|
|
36
|
+
````
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Radio Button Group
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Workspace forms
|
|
4
|
+
|
|
5
|
+
Choose one release schedule with labelled option cards.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<link rel="stylesheet" href="/mero-workspace.css">
|
|
16
|
+
<script defer src="/mero.js"></script>
|
|
17
|
+
<script defer src="/mero-workspace.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Template
|
|
21
|
+
|
|
22
|
+
````html
|
|
23
|
+
<form class="mero-ws-cardform"><fieldset class="mero-ws-choices">
|
|
24
|
+
<legend>Release schedule</legend>
|
|
25
|
+
<label class="mero-ws-choice"><input class="mero-radio" type="radio" name="schedule" value="manual" checked><span><strong>Manual</strong><small>Publish when the collection is ready</small></span></label>
|
|
26
|
+
<label class="mero-ws-choice"><input class="mero-radio" type="radio" name="schedule" value="scheduled"><span><strong>Scheduled</strong><small>Use the workspace calendar</small></span></label>
|
|
27
|
+
</fieldset></form>
|
|
28
|
+
````
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Radio Group
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Forms
|
|
4
|
+
|
|
5
|
+
Choose exactly one option from a labeled set.
|
|
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
|
+
<fieldset class="mero-fieldset" data-mero-radio-group>
|
|
22
|
+
<legend class="mero-label">Visibility</legend>
|
|
23
|
+
<div class="mero-radio-group">
|
|
24
|
+
<label><input class="mero-radio" type="radio" name="demo-visibility" value="private" checked> Private</label>
|
|
25
|
+
<label><input class="mero-radio" type="radio" name="demo-visibility" value="team"> Team</label>
|
|
26
|
+
<label><input class="mero-radio" type="radio" name="demo-visibility" value="public"> Public</label>
|
|
27
|
+
</div>
|
|
28
|
+
</fieldset>
|
|
29
|
+
````
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Range Calendar
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Date and time
|
|
4
|
+
|
|
5
|
+
Build a range with two native calendar controls.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
This example uses two independent picker surfaces.
|
|
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
|
+
<fieldset class="mero-fieldset mero-date-range">
|
|
25
|
+
<legend class="mero-label">Release window</legend>
|
|
26
|
+
<div class="mero-date-range-fields">
|
|
27
|
+
<div class="mero-field">
|
|
28
|
+
<label class="mero-label" for="demo-range-calendar-start">Start date</label>
|
|
29
|
+
<input class="mero-input" id="demo-range-calendar-start" type="date" name="start">
|
|
30
|
+
|
|
31
|
+
</div>
|
|
32
|
+
<div class="mero-field">
|
|
33
|
+
<label class="mero-label" for="demo-range-calendar-end">End date</label>
|
|
34
|
+
<input class="mero-input" id="demo-range-calendar-end" type="date" name="end">
|
|
35
|
+
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</fieldset>
|
|
39
|
+
</div>
|
|
40
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Rating
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Interaction feedback
|
|
4
|
+
|
|
5
|
+
Choose a labelled score using native radio controls.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
When adding this fieldset to an existing form, give each independent rating its own field name.
|
|
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
|
+
<form><fieldset class="mero-rating"><legend>Rate the delivery</legend><span class="mero-rating-options"><label><input type="radio" name="delivery-rating" value="1" aria-label="1 star"><span aria-hidden="true">★</span></label><label><input type="radio" name="delivery-rating" value="2" aria-label="2 stars"><span aria-hidden="true">★</span></label><label><input type="radio" name="delivery-rating" value="3" aria-label="3 stars"><span aria-hidden="true">★</span></label><label><input type="radio" name="delivery-rating" value="4" aria-label="4 stars" checked><span aria-hidden="true">★</span></label><label><input type="radio" name="delivery-rating" value="5" aria-label="5 stars"><span aria-hidden="true">★</span></label></span></fieldset></form>
|
|
26
|
+
````
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Resizable
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Workspace tools
|
|
4
|
+
|
|
5
|
+
Resize two adjacent panels by dragging the divider or using the arrow keys.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Home and End choose the minimum and maximum panel widths.
|
|
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="/mero.js"></script>
|
|
19
|
+
<script defer src="/mero-workspace.js"></script>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Template
|
|
23
|
+
|
|
24
|
+
````html
|
|
25
|
+
<div class="mero-ws-split" data-mero-ws-split>
|
|
26
|
+
<section id="lighting-collection"><small>Collection</small><h2>Lighting</h2><p>Pendant lights<br>Table lamps<br>Wall lights</p></section>
|
|
27
|
+
<div class="mero-ws-split-handle" role="separator" aria-label="Resize collection and details" aria-controls="lighting-collection" aria-orientation="vertical" aria-valuemin="20" aria-valuemax="80" aria-valuenow="40" tabindex="0"></div>
|
|
28
|
+
<section><small>Selected item</small><h2>Arc Task Lamp</h2><p>Adjust the divider to change the space available to each panel.</p></section>
|
|
29
|
+
</div>
|
|
30
|
+
````
|
|
31
|
+
|
|
32
|
+
## Adaptive
|
|
33
|
+
|
|
34
|
+
The divider learns where you usually release it and snaps to that width. Recent drags count more.
|
|
35
|
+
|
|
36
|
+
For a precise width, hold the divider still when it snaps, then keep dragging. Arrow keys move one pixel at a time. Hold Shift for ten pixels. Add data-mero-ws-snap to enable snapping. Give each divider its own data-mero-ws-snap-key to remember its width and recent stops across reloads and HTMX swaps in this tab.
|
|
37
|
+
|
|
38
|
+
Page assets
|
|
39
|
+
|
|
40
|
+
```html
|
|
41
|
+
<link rel="stylesheet" href="/mero.css">
|
|
42
|
+
<link rel="stylesheet" href="/mero-workspace.css">
|
|
43
|
+
<script defer src="/mero.js"></script>
|
|
44
|
+
<script defer src="/mero-workspace.js"></script>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Template
|
|
48
|
+
|
|
49
|
+
````html
|
|
50
|
+
<div class="mero-ws-split" data-mero-ws-split data-mero-ws-snap data-mero-ws-snap-key="catalog-collection">
|
|
51
|
+
<section id="lighting-collection"><small>Collection</small><h2>Lighting</h2><p>Pendant lights<br>Table lamps<br>Wall lights</p></section>
|
|
52
|
+
<div class="mero-ws-split-handle" role="separator" aria-label="Resize collection and details" aria-controls="lighting-collection" aria-orientation="vertical" aria-valuemin="20" aria-valuemax="80" aria-valuenow="40" tabindex="0"></div>
|
|
53
|
+
<section><small>Selected item</small><h2>Arc Task Lamp</h2><p>Drag the divider and release it near the same width three times. On the next pass, feel where it catches.</p></section>
|
|
54
|
+
</div>
|
|
55
|
+
````
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Rich Text Editor
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Workspace forms
|
|
4
|
+
|
|
5
|
+
Edit a short description with bold and italic text and preview the submitted result.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
The server receives text runs with bold and italic flags and escapes their contents. Pasted content is plain text.
|
|
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-editor" data-mero-ws-editor hx-post="/demo/workspace/preview" hx-target="find output">
|
|
27
|
+
<div class="mero-ws-editor-tools" role="group" aria-label="Text formatting" hidden>
|
|
28
|
+
<button type="button" data-format="bold" aria-label="Bold" aria-pressed="false"><b>B</b></button>
|
|
29
|
+
<button type="button" data-format="italic" aria-label="Italic" aria-pressed="false"><i>I</i></button>
|
|
30
|
+
</div>
|
|
31
|
+
<textarea class="mero-input" name="body" aria-label="Product description" maxlength="4000">A lamp for the quiet hours.</textarea>
|
|
32
|
+
<button class="mero-button mero-button-sm mero-button-secondary" type="submit">Preview description</button>
|
|
33
|
+
<output class="mero-ws-rich-preview" aria-live="polite"></output>
|
|
34
|
+
</form>
|
|
35
|
+
````
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Scroll Shadow
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Utilities
|
|
4
|
+
|
|
5
|
+
Expose a scrollable region with a visual cue that more content is available.
|
|
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-scroll-shadow" role="region" aria-label="Recent releases" tabindex="0" style="height:8rem">
|
|
22
|
+
<ul class="mero-stack">
|
|
23
|
+
<li>v1.5.0 • New components</li>
|
|
24
|
+
<li>v1.4.3 • Performance improvements</li>
|
|
25
|
+
<li>v1.4.2 • Navigation polish</li>
|
|
26
|
+
<li>v1.4.1 • Field states</li>
|
|
27
|
+
<li>v1.4.0 • Release tooling</li>
|
|
28
|
+
<li>v1.3.0 • Initial catalog</li>
|
|
29
|
+
</ul>
|
|
30
|
+
</div>
|
|
31
|
+
````
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Search Field
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Forms
|
|
4
|
+
|
|
5
|
+
Use a native search field with the platform’s clear affordance.
|
|
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-search">Find a component</label>
|
|
24
|
+
<input class="mero-input" id="demo-search" type="search" name="q" placeholder="Buttons, drawers, tabs…">
|
|
25
|
+
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
````
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Segment
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Workspace navigation
|
|
4
|
+
|
|
5
|
+
Choose one display density in a compact segmented control.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<link rel="stylesheet" href="/mero-workspace.css">
|
|
16
|
+
<script defer src="/mero.js"></script>
|
|
17
|
+
<script defer src="/mero-workspace.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Template
|
|
21
|
+
|
|
22
|
+
````html
|
|
23
|
+
<form><fieldset class="mero-ws-segment"><legend class="mero-ws-sr">Preview density</legend>
|
|
24
|
+
<label><input name="density" type="radio" value="compact">Compact</label>
|
|
25
|
+
<label><input name="density" type="radio" value="regular" checked>Regular</label>
|
|
26
|
+
<label><input name="density" type="radio" value="spacious">Spacious</label>
|
|
27
|
+
</fieldset></form>
|
|
28
|
+
````
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Select
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Pickers
|
|
4
|
+
|
|
5
|
+
Choose one of a fixed set of values using the platform’s picker.
|
|
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-select">Role</label>
|
|
24
|
+
<select class="mero-select" id="demo-select" name="role">
|
|
25
|
+
<option value="viewer">Viewer</option>
|
|
26
|
+
<option value="editor">Editor</option>
|
|
27
|
+
<option value="admin">Admin</option>
|
|
28
|
+
</select>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Separator
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Layout
|
|
4
|
+
|
|
5
|
+
Separate related content sections using a semantic rule.
|
|
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-stack">
|
|
22
|
+
<strong>Account</strong>
|
|
23
|
+
<hr class="mero-separator">
|
|
24
|
+
<span class="mero-description">Managed by Studio North.</span>
|
|
25
|
+
</div>
|
|
26
|
+
````
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Sheet
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Overlays
|
|
4
|
+
|
|
5
|
+
Present concise secondary content from the bottom edge.
|
|
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
|
+
<button class="mero-button mero-button-primary" type="button" data-mero-open="demo-sheet">Open sheet</button>
|
|
23
|
+
<dialog class="mero-dialog mero-sheet" id="demo-sheet" aria-labelledby="demo-sheet-title" aria-describedby="demo-sheet-description">
|
|
24
|
+
<div class="mero-dialog-body">
|
|
25
|
+
<h2 class="mero-dialog-title" id="demo-sheet-title">Choose a workspace</h2>
|
|
26
|
+
<p class="mero-description" id="demo-sheet-description">Your current workspace is Studio North.</p>
|
|
27
|
+
<div class="mero-dialog-footer">
|
|
28
|
+
<button class="mero-button mero-button-secondary" type="button" data-mero-close autofocus>Done</button>
|
|
29
|
+
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</dialog>
|
|
33
|
+
</div>
|
|
34
|
+
````
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Sidebar
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Workspace navigation
|
|
4
|
+
|
|
5
|
+
Navigate the workspace from a side rail that becomes a drawer at narrow widths.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Page assets
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<link rel="stylesheet" href="/mero.css">
|
|
15
|
+
<link rel="stylesheet" href="/mero-workspace.css">
|
|
16
|
+
<script defer src="/mero.js"></script>
|
|
17
|
+
<script defer src="/mero-workspace.js"></script>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Template
|
|
21
|
+
|
|
22
|
+
````html
|
|
23
|
+
<section class="mero-ws-shell" data-mero-ws-shell aria-label="Studio workspace">
|
|
24
|
+
<aside class="mero-ws-side"><strong>Studio North</strong><nav aria-label="Workspace sidebar"><a href="/layouts/dashboard">Overview</a><a href="/layouts/dashboard?view=inventory">Inventory</a><a href="/layouts/dashboard?view=settings">Settings</a></nav></aside>
|
|
25
|
+
<div class="mero-ws-shell-main">
|
|
26
|
+
<button class="mero-button mero-button-sm mero-button-secondary mero-ws-mobile-nav" type="button" data-mero-ws-open>Open navigation</button>
|
|
27
|
+
<header><small>Studio North</small><h2>Workspace</h2></header>
|
|
28
|
+
<div class="mero-ws-summary"><span class="mero-ws-dot"></span><div><strong>Spring collection</strong><small>Photography approved</small></div></div>
|
|
29
|
+
<a class="mero-link" href="/layouts/dashboard?view=inventory">Open inventory →</a>
|
|
30
|
+
</div>
|
|
31
|
+
<dialog class="mero-dialog mero-ws-drawer" aria-label="Workspace navigation"><div class="mero-dialog-body">
|
|
32
|
+
<button class="mero-button mero-button-sm mero-button-secondary" type="button" data-mero-close autofocus>Close navigation</button>
|
|
33
|
+
<nav aria-label="Mobile workspace"><a href="/layouts/dashboard">Overview</a><a href="/layouts/dashboard?view=inventory">Inventory</a><a href="/layouts/dashboard?view=settings">Settings</a></nav>
|
|
34
|
+
</div></dialog>
|
|
35
|
+
</section>
|
|
36
|
+
````
|