@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,30 @@
|
|
|
1
|
+
# Color Area
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Colors
|
|
4
|
+
|
|
5
|
+
Open a browser-managed color surface and submit the selected color.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
The platform owns the color area and keyboard behavior. Its available controls depend on the browser.
|
|
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-color-area">Accent color</label>
|
|
26
|
+
<input class="mero-input" id="demo-color-area" type="color" name="accent" value="#b9a5ff">
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
````
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Color Field
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Colors
|
|
4
|
+
|
|
5
|
+
Enter a six-digit hex value directly in a text field.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Validate the format again when the form reaches the server.
|
|
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-color-field">Hex color</label>
|
|
26
|
+
<input class="mero-input" id="demo-color-field" type="text" aria-describedby="demo-color-field-hint" name="color" pattern="#[0-9a-fA-F]{6}" maxlength="7" value="#b9a5ff">
|
|
27
|
+
<p class="mero-description" id="demo-color-field-hint">Use # followed by six hexadecimal digits.</p>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
````
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Color Picker
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Colors
|
|
4
|
+
|
|
5
|
+
Choose a color using the native picker UI.
|
|
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-color-picker">Theme accent</label>
|
|
24
|
+
<input class="mero-input" id="demo-color-picker" type="color" name="color" value="#85b8ff">
|
|
25
|
+
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
````
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Color Slider
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Colors
|
|
4
|
+
|
|
5
|
+
Adjust a hue along the color spectrum.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
The submitted value is the hue. Combine it with saturation and lightness in your app.
|
|
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-hue">Hue</label>
|
|
26
|
+
<input class="mero-slider mero-color-slider" id="demo-hue" name="hue"
|
|
27
|
+
type="range" min="0" max="359" step="1" value="255" aria-describedby="demo-hue-help">
|
|
28
|
+
<p class="mero-description" id="demo-hue-help">0° to 359°</p>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Color Swatch
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Colors
|
|
4
|
+
|
|
5
|
+
Show a color with its human-readable label.
|
|
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-row">
|
|
22
|
+
<span class="mero-swatch" aria-hidden="true"
|
|
23
|
+
style="display:inline-block;width:2rem;height:2rem;border-radius:0.45rem;background:#b9a5ff"></span>
|
|
24
|
+
<span>Mero violet <code>#B9A5FF</code></span>
|
|
25
|
+
</div>
|
|
26
|
+
````
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Combo Box
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Pickers
|
|
4
|
+
|
|
5
|
+
Filter and select from suggestions already on the page.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Type to filter. Use the arrow keys and Enter to select an option. A named input submits the chosen text.
|
|
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-combo-box">Workspace</label>
|
|
26
|
+
<div class="mero-combo" data-mero-combo>
|
|
27
|
+
<input class="mero-input" id="demo-combo-box" name="q" type="text" role="combobox"
|
|
28
|
+
aria-expanded="false" aria-controls="demo-combo-box-options" aria-autocomplete="list"
|
|
29
|
+
autocomplete="off" placeholder="Find a workspace…">
|
|
30
|
+
<ul class="mero-listbox mero-combo-list" id="demo-combo-box-options" role="listbox" aria-label="Workspaces" hidden>
|
|
31
|
+
<li class="mero-option" id="demo-combo-box-atlas" role="option" aria-selected="false">Atlas</li>
|
|
32
|
+
<li class="mero-option" id="demo-combo-box-beacon" role="option" aria-selected="false">Beacon</li>
|
|
33
|
+
<li class="mero-option" id="demo-combo-box-cobalt" role="option" aria-selected="false">Cobalt</li>
|
|
34
|
+
<li class="mero-option" id="demo-combo-box-drift" role="option" aria-selected="false">Drift</li>
|
|
35
|
+
<li class="mero-option" role="option" aria-disabled="true" data-mero-empty-option hidden>No matches</li>
|
|
36
|
+
</ul>
|
|
37
|
+
<span class="mero-description" data-mero-combo-status role="status"></span>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
````
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Command Menu
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Overlays
|
|
4
|
+
|
|
5
|
+
Press Cmd or Ctrl K to search pages and actions returned by your server.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Return each group with a visible heading and a unique ID for every option. Omit empty groups. For an empty search result, return one disabled option with the text “No results”. Arrow keys move across groups. Home and End reach the first and last result. Enter follows the link or runs the action. Escape closes the results, then the dialog, and returns focus to the opener. Give the shortcut to one command menu per page.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<script defer src="/vendor/htmx.min.js"></script>
|
|
18
|
+
<script defer src="/mero.js"></script>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Template
|
|
22
|
+
|
|
23
|
+
````html
|
|
24
|
+
<div class="mero-scope" data-mero-scope>
|
|
25
|
+
<button class="mero-button mero-button-outline" type="button" data-mero-open="demo-command" aria-keyshortcuts="Meta+K Control+K">Search commands <kbd class="mero-kbd">Ctrl K</kbd></button>
|
|
26
|
+
<dialog class="mero-dialog mero-command" id="demo-command" data-mero-command aria-label="Commands">
|
|
27
|
+
<div class="mero-combo" data-mero-combo data-mero-combo-remote>
|
|
28
|
+
<input class="mero-input" name="q" type="text" role="combobox" aria-label="Search commands" aria-expanded="false"
|
|
29
|
+
aria-controls="demo-command-options" aria-autocomplete="list" autocomplete="off" placeholder="Search pages and actions…" autofocus
|
|
30
|
+
hx-get="/demo/catalog/command-menu" hx-trigger="input changed delay:150ms, mero:query"
|
|
31
|
+
hx-target="next [role=listbox]" hx-swap="innerHTML" hx-sync="this:replace">
|
|
32
|
+
<div class="mero-listbox mero-combo-list" id="demo-command-options" role="listbox" aria-label="Commands" hidden>
|
|
33
|
+
<div role="group" aria-labelledby="cmd-group-pages">
|
|
34
|
+
<h3 class="mero-command-heading" aria-hidden="true" id="cmd-group-pages">Pages</h3>
|
|
35
|
+
<a class="mero-option" role="option" aria-selected="false" tabindex="-1" id="cmd-button" href="/components/button">Button</a>
|
|
36
|
+
</div>
|
|
37
|
+
<div role="group" aria-labelledby="cmd-group-actions">
|
|
38
|
+
<h3 class="mero-command-heading" aria-hidden="true" id="cmd-group-actions">Actions</h3>
|
|
39
|
+
<div class="mero-option" role="option" aria-selected="false" id="cmd-export" data-mero-toast="Export requested">Export catalog</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
<span class="mero-description" data-mero-combo-status role="status"></span>
|
|
43
|
+
</div>
|
|
44
|
+
</dialog>
|
|
45
|
+
</div>
|
|
46
|
+
````
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Command
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Workspace navigation
|
|
4
|
+
|
|
5
|
+
Search destinations and actions, then use the arrows and Enter to execute.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
Click the trigger or press Cmd/Ctrl K. Escape returns focus to where you were working.
|
|
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
|
+
<section class="mero-ws-command" data-mero-ws-command>
|
|
26
|
+
<button class="mero-ws-launch" type="button" data-mero-ws-open><span>Search commands</span><kbd>⌘ / Ctrl K</kbd></button>
|
|
27
|
+
<dialog class="mero-dialog mero-ws-command-dialog" aria-label="Workspace commands">
|
|
28
|
+
<div class="mero-ws-command-head"><input type="search" data-command-search placeholder="Search pages and actions…" aria-label="Search commands" autofocus><button type="button" data-mero-close aria-label="Close commands"><svg class="mero-ws-icon" aria-hidden="true" focusable="false" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="m6 6 12 12M18 6 6 18"/></svg></button></div>
|
|
29
|
+
<div class="mero-ws-command-items">
|
|
30
|
+
<a href="/layouts/dashboard?view=inventory"><strong>Open inventory</strong><small>Workspace</small></a>
|
|
31
|
+
<a href="/layouts/dashboard?view=settings"><strong>Workspace settings</strong><small>Workspace</small></a>
|
|
32
|
+
<button type="button" data-command-copy><strong>Copy page link</strong><small>Action</small></button>
|
|
33
|
+
</div>
|
|
34
|
+
<p class="mero-ws-command-empty" hidden>No matching commands</p>
|
|
35
|
+
</dialog>
|
|
36
|
+
<output class="mero-ws-status" role="status"></output>
|
|
37
|
+
</section>
|
|
38
|
+
````
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Composed Chart
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Charts
|
|
4
|
+
|
|
5
|
+
Compare actual volume with its target using columns and a line.
|
|
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="composed">
|
|
28
|
+
<figcaption><strong>Actual against plan</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="Actual against plan"><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><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"><rect x="56.41" y="75.57" width="33.75" height="79.43" rx="2"/></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"><rect x="118.98" y="58.2" width="33.75" height="96.8" rx="2"/></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"><rect x="181.55" y="73.09" width="33.75" height="81.91" rx="2"/></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"><rect x="244.12" y="40.82" width="33.75" height="114.18" rx="2"/></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"><rect x="306.7" y="16" width="33.75" height="139" rx="2"/></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"><rect x="369.27" y="60.68" width="33.75" height="94.32" rx="2"/></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"><rect x="431.84" y="55.71" width="33.75" height="99.29" rx="2"/></g><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-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>Actual against plan</caption><thead><tr><th scope="col">Category</th><th scope="col">Shipped</th><th scope="col">Planned</th></tr></thead>
|
|
34
|
+
<tbody><tr><th scope="row">Mon</th><td>32</td><td>35</td></tr><tr><th scope="row">Tue</th><td>39</td><td>41</td></tr><tr><th scope="row">Wed</th><td>33</td><td>32</td></tr><tr><th scope="row">Thu</th><td>46</td><td>48</td></tr><tr><th scope="row">Fri</th><td>56</td><td>52</td></tr><tr><th scope="row">Sat</th><td>38</td><td>36</td></tr><tr><th scope="row">Sun</th><td>40</td><td>42</td></tr></tbody></table></div></details>
|
|
35
|
+
</figure>
|
|
36
|
+
````
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Context Menu
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Workspace navigation
|
|
4
|
+
|
|
5
|
+
Open item actions with the visible button, a secondary click, or Shift F10.
|
|
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-context" data-mero-ws-context>
|
|
24
|
+
<div class="mero-ws-context-row" tabindex="0" aria-label="Product sheet. Press Shift F10 for actions"><span><strong>Product sheet</strong><small>Studio documents</small></span><button class="mero-button mero-button-sm mero-button-secondary" type="button" data-mero-ws-context-open aria-haspopup="menu" aria-expanded="false">Actions</button></div>
|
|
25
|
+
<div class="mero-ws-menu" role="menu" aria-label="Product sheet actions" hidden>
|
|
26
|
+
<button role="menuitem" tabindex="-1" type="button" data-mero-ws-action="pin">Pin document</button>
|
|
27
|
+
<a role="menuitem" tabindex="-1" href="/layouts/dashboard?view=inventory">Open inventory</a>
|
|
28
|
+
</div>
|
|
29
|
+
<output class="mero-ws-status" role="status"></output>
|
|
30
|
+
</section>
|
|
31
|
+
````
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Countdown
|
|
2
|
+
|
|
3
|
+
Mero UI 0.7.0 · Display utilities
|
|
4
|
+
|
|
5
|
+
Show the time remaining until the next daily shipping cutoff.
|
|
6
|
+
|
|
7
|
+
[Integration patterns and API reference](../llms-patterns.txt)
|
|
8
|
+
|
|
9
|
+
## Default
|
|
10
|
+
|
|
11
|
+
The display follows the next daily cutoff in UTC. Tick updates stay out of live announcements.
|
|
12
|
+
|
|
13
|
+
Page assets
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<link rel="stylesheet" href="/mero.css">
|
|
17
|
+
<link rel="stylesheet" href="/mero-composition.css">
|
|
18
|
+
<script defer src="/mero.js"></script>
|
|
19
|
+
<script defer src="/mero-composition.js"></script>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Template
|
|
23
|
+
|
|
24
|
+
````html
|
|
25
|
+
<div class="mero-countdown" data-mero-cutoff-hour="16"><span>Next shipping cutoff · 16:00 UTC</span><time>16:00 UTC</time></div>
|
|
26
|
+
````
|