@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,75 @@
|
|
|
1
|
+
# Switch
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Controls
|
|
4
|
+
|
|
5
|
+
Toggle one setting with a checkbox-backed switch.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Native form submission includes this setting when selected.
|
|
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
|
+
<label class="mero-row">
|
|
24
|
+
<input class="mero-switch" type="checkbox" role="switch" name="preview" value="on" checked>
|
|
25
|
+
Enable preview
|
|
26
|
+
</label>
|
|
27
|
+
````
|
|
28
|
+
|
|
29
|
+
## Notification preference
|
|
30
|
+
|
|
31
|
+
Native form submission includes this setting when selected.
|
|
32
|
+
|
|
33
|
+
Page assets
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<link rel="stylesheet" href="/mero.css">
|
|
37
|
+
<script defer src="/mero.js"></script>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Template
|
|
41
|
+
|
|
42
|
+
````html
|
|
43
|
+
<div class="mero-scope" data-mero-scope>
|
|
44
|
+
<label class="mero-setting-switch">
|
|
45
|
+
<span><strong id="stock-alerts-label">Stock alerts</strong><small id="stock-alerts-hint">Notify me when an item falls below five units.</small></span>
|
|
46
|
+
<input class="mero-switch" type="checkbox" role="switch" name="stock-alerts"
|
|
47
|
+
aria-labelledby="stock-alerts-label" aria-describedby="stock-alerts-hint" checked>
|
|
48
|
+
</label>
|
|
49
|
+
</div>
|
|
50
|
+
````
|
|
51
|
+
|
|
52
|
+
## Managed preference
|
|
53
|
+
|
|
54
|
+
Show a workspace policy with its saved value and the reason it is locked.
|
|
55
|
+
|
|
56
|
+
Disabled inputs are omitted from form submissions. Apply the workspace policy on the server.
|
|
57
|
+
|
|
58
|
+
Page assets
|
|
59
|
+
|
|
60
|
+
```html
|
|
61
|
+
<link rel="stylesheet" href="/mero.css">
|
|
62
|
+
<script defer src="/mero.js"></script>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Template
|
|
66
|
+
|
|
67
|
+
````html
|
|
68
|
+
<div class="mero-scope" data-mero-scope>
|
|
69
|
+
<label class="mero-setting-switch">
|
|
70
|
+
<span><strong id="sign-in-alerts-label">Sign-in alerts</strong><small id="sign-in-alerts-hint">Required by your workspace administrator.</small></span>
|
|
71
|
+
<input class="mero-switch" type="checkbox" role="switch" name="sign-in-alerts"
|
|
72
|
+
aria-labelledby="sign-in-alerts-label" aria-describedby="sign-in-alerts-hint" checked disabled>
|
|
73
|
+
</label>
|
|
74
|
+
</div>
|
|
75
|
+
````
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Table
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Data display
|
|
4
|
+
|
|
5
|
+
Show comparable records in a native table with column headers.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Use scope on the headers. The wrapper scrolls a wide table sideways instead of widening the page.
|
|
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-table-wrap">
|
|
24
|
+
<table class="mero-table">
|
|
25
|
+
<caption>Workspace releases</caption>
|
|
26
|
+
<thead><tr><th scope="col">Version</th><th scope="col">Environment</th><th scope="col">Status</th></tr></thead>
|
|
27
|
+
<tbody>
|
|
28
|
+
<tr><td>v1.3.0</td><td>Production</td><td><span class="mero-badge mero-badge-success">Live</span></td></tr>
|
|
29
|
+
<tr><td>v1.4.0</td><td>Staging</td><td><span class="mero-badge mero-badge-warning">Review</span></td></tr>
|
|
30
|
+
</tbody>
|
|
31
|
+
</table>
|
|
32
|
+
</div>
|
|
33
|
+
````
|
|
34
|
+
|
|
35
|
+
## Cards on phones
|
|
36
|
+
|
|
37
|
+
Show rows as labelled cards on phones, with numbers aligned for comparison.
|
|
38
|
+
|
|
39
|
+
Add mero-table-cards to the wrapper for cards below 768 px, keep the table roles so screen readers still navigate rows and cells, and start each cell with its data-mero-cell-label. Put data-mero-card-hidden on a column's header and cells to leave it out of the cards. Give numeric headers and cells mero-table-num so they end-align with tabular figures in the table; in a card the value follows its label.
|
|
40
|
+
|
|
41
|
+
Page assets
|
|
42
|
+
|
|
43
|
+
```html
|
|
44
|
+
<link rel="stylesheet" href="/mero.css">
|
|
45
|
+
<script defer src="/mero.js"></script>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Template
|
|
49
|
+
|
|
50
|
+
````html
|
|
51
|
+
<div class="mero-table-wrap mero-table-cards">
|
|
52
|
+
<table class="mero-table" role="table">
|
|
53
|
+
<caption>Environments</caption>
|
|
54
|
+
<thead role="rowgroup">
|
|
55
|
+
<tr role="row">
|
|
56
|
+
<th role="columnheader" scope="col">Environment</th>
|
|
57
|
+
<th role="columnheader" scope="col" data-mero-card-hidden>Region</th>
|
|
58
|
+
<th role="columnheader" scope="col">Status</th>
|
|
59
|
+
<th role="columnheader" scope="col" class="mero-table-num">Deploys</th>
|
|
60
|
+
<th role="columnheader" scope="col" class="mero-table-num">Error rate</th>
|
|
61
|
+
</tr>
|
|
62
|
+
</thead>
|
|
63
|
+
<tbody role="rowgroup">
|
|
64
|
+
<tr role="row">
|
|
65
|
+
<th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Environment</span>acme-production</th>
|
|
66
|
+
<td role="cell" data-mero-card-hidden><span data-mero-cell-label aria-hidden="true">Region</span>Europe West</td>
|
|
67
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Live</span></td>
|
|
68
|
+
<td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Deploys</span>1,284</td>
|
|
69
|
+
<td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Error rate</span>0.02%</td>
|
|
70
|
+
</tr>
|
|
71
|
+
<tr role="row">
|
|
72
|
+
<th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Environment</span>acme-staging</th>
|
|
73
|
+
<td role="cell" data-mero-card-hidden><span data-mero-cell-label aria-hidden="true">Region</span>Europe West</td>
|
|
74
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-warning">Review</span></td>
|
|
75
|
+
<td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Deploys</span>96</td>
|
|
76
|
+
<td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Error rate</span>1.40%</td>
|
|
77
|
+
</tr>
|
|
78
|
+
<tr role="row">
|
|
79
|
+
<th role="rowheader" scope="row"><span data-mero-cell-label aria-hidden="true">Environment</span>globex-production</th>
|
|
80
|
+
<td role="cell" data-mero-card-hidden><span data-mero-cell-label aria-hidden="true">Region</span>US East</td>
|
|
81
|
+
<td role="cell"><span data-mero-cell-label aria-hidden="true">Status</span><span class="mero-badge mero-badge-success">Live</span></td>
|
|
82
|
+
<td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Deploys</span>12</td>
|
|
83
|
+
<td role="cell" class="mero-table-num"><span data-mero-cell-label aria-hidden="true">Error rate</span>0.00%</td>
|
|
84
|
+
</tr>
|
|
85
|
+
</tbody>
|
|
86
|
+
</table>
|
|
87
|
+
</div>
|
|
88
|
+
````
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Tabs
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Navigation
|
|
4
|
+
|
|
5
|
+
Switch between labeled panels with mouse or arrow keys.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Use arrow keys to change tabs. Home and End select the first and last tabs.
|
|
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-tabs" data-mero-tabs>
|
|
24
|
+
<div class="mero-tabs-list" role="tablist" aria-label="Workspace settings">
|
|
25
|
+
<button class="mero-tab" type="button" role="tab" id="demo-tab-overview"
|
|
26
|
+
aria-selected="true" aria-controls="demo-panel-overview">Overview</button>
|
|
27
|
+
<button class="mero-tab" type="button" role="tab" id="demo-tab-access"
|
|
28
|
+
aria-selected="false" aria-controls="demo-panel-access" tabindex="-1">Access</button>
|
|
29
|
+
<button class="mero-tab" type="button" role="tab" id="demo-tab-history"
|
|
30
|
+
aria-selected="false" aria-controls="demo-panel-history" tabindex="-1">History</button>
|
|
31
|
+
</div>
|
|
32
|
+
<div role="tabpanel" id="demo-panel-overview" aria-labelledby="demo-tab-overview" tabindex="0">The workspace is ready for changes.</div>
|
|
33
|
+
<div role="tabpanel" id="demo-panel-access" aria-labelledby="demo-tab-access" tabindex="0" hidden>Only invited collaborators have access.</div>
|
|
34
|
+
<div role="tabpanel" id="demo-panel-history" aria-labelledby="demo-tab-history" tabindex="0" hidden>Last deployment completed successfully.</div>
|
|
35
|
+
</div>
|
|
36
|
+
````
|
|
37
|
+
|
|
38
|
+
## Vertical settings
|
|
39
|
+
|
|
40
|
+
Use arrow keys to change tabs. Home and End select the first and last tabs.
|
|
41
|
+
|
|
42
|
+
Page assets
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<link rel="stylesheet" href="/mero.css">
|
|
46
|
+
<script defer src="/mero.js"></script>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Template
|
|
50
|
+
|
|
51
|
+
````html
|
|
52
|
+
<div class="mero-tabs mero-tabs-vertical" data-mero-tabs>
|
|
53
|
+
<div class="mero-tabs-list" role="tablist" aria-label="Account settings" aria-orientation="vertical">
|
|
54
|
+
<button class="mero-tab" type="button" role="tab" id="settings-tab-profile"
|
|
55
|
+
aria-selected="true" aria-controls="settings-panel-profile">Profile</button>
|
|
56
|
+
<button class="mero-tab" type="button" role="tab" id="settings-tab-security"
|
|
57
|
+
aria-selected="false" aria-controls="settings-panel-security" tabindex="-1">Security</button>
|
|
58
|
+
<button class="mero-tab" type="button" role="tab" id="settings-tab-mail"
|
|
59
|
+
aria-selected="false" aria-controls="settings-panel-mail" tabindex="-1">Notifications</button>
|
|
60
|
+
</div>
|
|
61
|
+
<div role="tabpanel" id="settings-panel-profile" aria-labelledby="settings-tab-profile" tabindex="0">Update your display name and contact details.</div>
|
|
62
|
+
<div role="tabpanel" id="settings-panel-security" aria-labelledby="settings-tab-security" tabindex="0" hidden>Manage sign-in methods and active sessions.</div>
|
|
63
|
+
<div role="tabpanel" id="settings-panel-mail" aria-labelledby="settings-tab-mail" tabindex="0" hidden>Choose which updates reach your inbox.</div>
|
|
64
|
+
</div>
|
|
65
|
+
````
|
|
66
|
+
|
|
67
|
+
## Link tabs
|
|
68
|
+
|
|
69
|
+
Switch between views of one page that the URL keeps.
|
|
70
|
+
|
|
71
|
+
Use links in a nav when each tab is its own URL, such as a filtered view of a list. The server puts aria-current=page on the current link. Tab and Enter work as on any link, so there is no tablist role, no arrow-key handling and no script. Add a mero-tab-count after the label for an optional count; it is read with the label. The tabs wrap on narrow screens.
|
|
72
|
+
|
|
73
|
+
Page assets
|
|
74
|
+
|
|
75
|
+
```html
|
|
76
|
+
<link rel="stylesheet" href="/mero.css">
|
|
77
|
+
<script defer src="/mero.js"></script>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Template
|
|
81
|
+
|
|
82
|
+
````html
|
|
83
|
+
<nav class="mero-tabs-list" aria-label="Operation views">
|
|
84
|
+
<a class="mero-tab" href="?view=attention" aria-current="page">Needs attention <span class="mero-tab-count">3</span></a>
|
|
85
|
+
<a class="mero-tab" href="?view=active">In progress <span class="mero-tab-count">12</span></a>
|
|
86
|
+
<a class="mero-tab" href="?view=closed">Completed</a>
|
|
87
|
+
</nav>
|
|
88
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Tag Group
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Collections
|
|
4
|
+
|
|
5
|
+
Display a small, labeled collection of metadata tags.
|
|
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
|
+
<ul class="mero-tag-group mero-row" aria-label="Topics">
|
|
22
|
+
<li class="mero-chip">Accessibility</li>
|
|
23
|
+
<li class="mero-chip">Forms</li>
|
|
24
|
+
<li class="mero-chip">Motion</li>
|
|
25
|
+
</ul>
|
|
26
|
+
````
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Text Area
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Forms
|
|
4
|
+
|
|
5
|
+
Let users edit multiple lines of text with an optional autosizing surface.
|
|
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-textarea">Release summary</label>
|
|
24
|
+
<textarea class="mero-textarea mero-textarea-autosize" id="demo-textarea" name="summary" rows="3" placeholder="What changed?"></textarea>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
````
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Text Field
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Forms
|
|
4
|
+
|
|
5
|
+
Compose a label, input, and hint into a reusable form field.
|
|
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-text-field">Repository name</label>
|
|
24
|
+
<input class="mero-input" id="demo-text-field" type="text" aria-describedby="demo-text-field-hint" name="repository" required maxlength="64" placeholder="mero-ui">
|
|
25
|
+
<p class="mero-description" id="demo-text-field-hint">This name is visible in the workspace.</p>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Text Rotate
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Display utilities
|
|
4
|
+
|
|
5
|
+
Rotate through short messages with explicit playback controls.
|
|
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
|
+
<div class="mero-text-cycle" data-mero-text-cycle><span>Studio finishes</span><strong data-cycle-item>Soft ivory</strong><strong data-cycle-item hidden>Warm sand</strong><strong data-cycle-item hidden>Graphite</strong><button type="button" class="mero-button mero-button-sm" data-cycle-next>Next finish</button><button type="button" class="mero-button mero-button-sm" data-cycle-play aria-pressed="false">Auto rotate</button></div>
|
|
24
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Text Shimmer
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Conversation
|
|
4
|
+
|
|
5
|
+
Indicate work in progress with a moving highlight across readable text.
|
|
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
|
+
<p class="mero-text-shimmer" role="status">Preparing shipment summary…</p>
|
|
24
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Theme Controller
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Composition
|
|
4
|
+
|
|
5
|
+
Set a theme inside one section of a page.
|
|
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
|
+
<section class="mero-theme-sample" data-mero-theme-scope data-theme="light"><label>Appearance <select class="mero-select" data-mero-theme-picker><option value="light">Daylight</option><option value="dark">After hours</option></select></label><article class="mero-card"><h2 class="mero-card-title">Studio workspace</h2><p class="mero-card-description">The appearance applies to this workspace.</p></article></section>
|
|
24
|
+
````
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Time Field
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Date and time
|
|
4
|
+
|
|
5
|
+
Choose a wall-clock time without a timezone conversion.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Store the intended timezone separately when scheduling an event.
|
|
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-time">Publish time</label>
|
|
26
|
+
<input class="mero-input" id="demo-time" type="time" name="time" step="60" value="09:30">
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Timeline
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Studio collections
|
|
4
|
+
|
|
5
|
+
Present milestones in order and identify the current step.
|
|
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
|
+
<ol class="mero-collection-timeline" aria-label="Production timeline"><li><time>09:10</time><div><strong>Final sample approved</strong><p>Mara signed off the graphite finish.</p></div></li><li><time>11:25</time><div><strong>Production started</strong><p>Atelier 01 received the first work order.</p></div></li><li aria-current="step"><time>14:00</time><div><strong>Dispatch planned</strong><p>Shipment is waiting on packaging.</p></div></li></ol>
|
|
24
|
+
````
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Toast
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Overlays
|
|
4
|
+
|
|
5
|
+
Announce a completed action without interrupting the current task.
|
|
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
|
+
<button class="mero-button mero-button-secondary" type="button" data-mero-toast="Changes saved" data-mero-tone="success">Show confirmation</button>
|
|
22
|
+
````
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Toggle Button Group
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Buttons
|
|
4
|
+
|
|
5
|
+
Select one presentation mode from a connected set of controls.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Native radio controls provide one selection per group and arrow-key navigation.
|
|
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
|
+
<fieldset class="mero-toggle-fieldset" data-mero-radio-group>
|
|
24
|
+
<legend class="mero-label">View as</legend>
|
|
25
|
+
<div class="mero-toggle-button-group">
|
|
26
|
+
<label><input type="radio" name="demo-view" value="list" checked>List</label>
|
|
27
|
+
<label><input type="radio" name="demo-view" value="grid">Grid</label>
|
|
28
|
+
<label><input type="radio" name="demo-view" value="compact">Compact</label>
|
|
29
|
+
</div>
|
|
30
|
+
</fieldset>
|
|
31
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Toggle Button
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Buttons
|
|
4
|
+
|
|
5
|
+
Represent a persistent on or off state with a pressed button.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Keep the visible label stable so assistive technology can announce the pressed state.
|
|
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
|
+
<button class="mero-button mero-button-outline" type="button" aria-pressed="false" data-mero-toggle>Pin item</button>
|
|
24
|
+
````
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Toolbar
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Layout
|
|
4
|
+
|
|
5
|
+
Keep nearby actions aligned and grouped by purpose.
|
|
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-toolbar" role="group" aria-label="Project actions">
|
|
22
|
+
<strong>Projects</strong>
|
|
23
|
+
<div class="mero-row">
|
|
24
|
+
<button class="mero-button mero-button-sm mero-button-outline" type="button" data-mero-toast="Export requested">Export</button>
|
|
25
|
+
<a class="mero-button mero-button-sm mero-button-primary" href="/playground">Open playground</a>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
````
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Tooltip
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Overlays
|
|
4
|
+
|
|
5
|
+
Show a brief hint on pointer hover or keyboard focus.
|
|
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
|
+
<span class="mero-tooltip">
|
|
23
|
+
<button class="mero-button mero-button-outline mero-button-icon" type="button" aria-label="Publish information" aria-describedby="demo-tooltip">?</button>
|
|
24
|
+
<span class="mero-tooltip-content" id="demo-tooltip" role="tooltip">Publishing updates the current workspace.</span>
|
|
25
|
+
</span>
|
|
26
|
+
</div>
|
|
27
|
+
````
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Trend Chip
|
|
2
|
+
|
|
3
|
+
Mero UI 0.8.0 · Interaction feedback
|
|
4
|
+
|
|
5
|
+
Label the direction and magnitude of a change.
|
|
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-insight-trends"><span>Orders <span class="mero-trend" data-direction="up"><span aria-hidden="true">↗</span> +8.4%<span class="mero-insight-sr"> change in orders</span></span></span><span>Returns <span class="mero-trend" data-direction="down"><span aria-hidden="true">↘</span> -1.2%<span class="mero-insight-sr"> change in returns</span></span></span><span>Leads <span class="mero-trend" data-direction="flat"><span aria-hidden="true">→</span> 0%<span class="mero-insight-sr"> change in leads</span></span></span></div>
|
|
24
|
+
````
|