@prismora/elements 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +21 -2
- package/components.json +15600 -0
- package/custom-elements.json +56320 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +62 -0
- package/dist/catalog.d.ts +33 -0
- package/dist/catalog.js +803 -0
- package/dist/components/accordion.d.ts +31 -0
- package/dist/components/accordion.js +63 -0
- package/dist/components/alert.d.ts +27 -0
- package/dist/components/alert.js +40 -0
- package/dist/components/avatar-group.d.ts +23 -0
- package/dist/components/avatar-group.js +43 -0
- package/dist/components/avatar.d.ts +24 -0
- package/dist/components/avatar.js +43 -0
- package/dist/components/back-to-top.d.ts +32 -0
- package/dist/components/back-to-top.js +50 -0
- package/dist/components/badge.d.ts +17 -0
- package/dist/components/badge.js +20 -0
- package/dist/components/banner.d.ts +34 -0
- package/dist/components/banner.js +54 -0
- package/dist/components/breadcrumb.d.ts +42 -0
- package/dist/components/breadcrumb.js +63 -0
- package/dist/components/button-group.d.ts +14 -0
- package/dist/components/button-group.js +28 -0
- package/dist/components/button.d.ts +59 -0
- package/dist/components/button.js +162 -0
- package/dist/components/calendar.d.ts +48 -0
- package/dist/components/calendar.js +296 -0
- package/dist/components/card.d.ts +23 -0
- package/dist/components/card.js +44 -0
- package/dist/components/carousel.d.ts +41 -0
- package/dist/components/carousel.js +156 -0
- package/dist/components/cascader.d.ts +70 -0
- package/dist/components/cascader.js +220 -0
- package/dist/components/chart.d.ts +59 -0
- package/dist/components/chart.js +267 -0
- package/dist/components/chat.d.ts +98 -0
- package/dist/components/chat.js +134 -0
- package/dist/components/checkbox-group.d.ts +48 -0
- package/dist/components/checkbox-group.js +111 -0
- package/dist/components/checkbox.d.ts +23 -0
- package/dist/components/checkbox.js +70 -0
- package/dist/components/code-block.d.ts +46 -0
- package/dist/components/code-block.js +86 -0
- package/dist/components/color-picker.d.ts +46 -0
- package/dist/components/color-picker.js +292 -0
- package/dist/components/combobox.d.ts +89 -0
- package/dist/components/combobox.js +384 -0
- package/dist/components/command.d.ts +96 -0
- package/dist/components/command.js +289 -0
- package/dist/components/context-menu.d.ts +23 -0
- package/dist/components/context-menu.js +110 -0
- package/dist/components/copy-button.d.ts +33 -0
- package/dist/components/copy-button.js +62 -0
- package/dist/components/countdown.d.ts +36 -0
- package/dist/components/countdown.js +56 -0
- package/dist/components/data-table.d.ts +180 -0
- package/dist/components/data-table.js +1060 -0
- package/dist/components/date-picker.d.ts +47 -0
- package/dist/components/date-picker.js +267 -0
- package/dist/components/description-list.d.ts +38 -0
- package/dist/components/description-list.js +41 -0
- package/dist/components/dialog.d.ts +47 -0
- package/dist/components/dialog.js +189 -0
- package/dist/components/divider.d.ts +16 -0
- package/dist/components/divider.js +23 -0
- package/dist/components/drawer.d.ts +19 -0
- package/dist/components/drawer.js +27 -0
- package/dist/components/editor.d.ts +50 -0
- package/dist/components/editor.js +474 -0
- package/dist/components/empty-state.d.ts +24 -0
- package/dist/components/empty-state.js +27 -0
- package/dist/components/file-upload.d.ts +56 -0
- package/dist/components/file-upload.js +176 -0
- package/dist/components/form-control.d.ts +69 -0
- package/dist/components/form-control.js +134 -0
- package/dist/components/form.d.ts +38 -0
- package/dist/components/form.js +161 -0
- package/dist/components/format-number.d.ts +37 -0
- package/dist/components/format-number.js +86 -0
- package/dist/components/icon.d.ts +34 -0
- package/dist/components/icon.js +47 -0
- package/dist/components/image.d.ts +44 -0
- package/dist/components/image.js +53 -0
- package/dist/components/indicator.d.ts +41 -0
- package/dist/components/indicator.js +65 -0
- package/dist/components/inline-edit.d.ts +45 -0
- package/dist/components/inline-edit.js +129 -0
- package/dist/components/input.d.ts +55 -0
- package/dist/components/input.js +186 -0
- package/dist/components/kbd.d.ts +15 -0
- package/dist/components/kbd.js +18 -0
- package/dist/components/list.d.ts +68 -0
- package/dist/components/list.js +180 -0
- package/dist/components/menu.d.ts +22 -0
- package/dist/components/menu.js +182 -0
- package/dist/components/menubar.d.ts +20 -0
- package/dist/components/menubar.js +120 -0
- package/dist/components/meter.d.ts +38 -0
- package/dist/components/meter.js +48 -0
- package/dist/components/nav.d.ts +91 -0
- package/dist/components/nav.js +228 -0
- package/dist/components/number-input.d.ts +26 -0
- package/dist/components/number-input.js +70 -0
- package/dist/components/pagination.d.ts +44 -0
- package/dist/components/pagination.js +94 -0
- package/dist/components/pin-input.d.ts +25 -0
- package/dist/components/pin-input.js +128 -0
- package/dist/components/popover.d.ts +23 -0
- package/dist/components/popover.js +140 -0
- package/dist/components/progress.d.ts +26 -0
- package/dist/components/progress.js +66 -0
- package/dist/components/pull-refresh.d.ts +41 -0
- package/dist/components/pull-refresh.js +101 -0
- package/dist/components/qr-code.d.ts +33 -0
- package/dist/components/qr-code.js +54 -0
- package/dist/components/radio-group.d.ts +37 -0
- package/dist/components/radio-group.js +82 -0
- package/dist/components/range-slider.d.ts +46 -0
- package/dist/components/range-slider.js +95 -0
- package/dist/components/rating.d.ts +38 -0
- package/dist/components/rating.js +80 -0
- package/dist/components/relative-time.d.ts +31 -0
- package/dist/components/relative-time.js +51 -0
- package/dist/components/scheduler.d.ts +84 -0
- package/dist/components/scheduler.js +187 -0
- package/dist/components/segmented.d.ts +58 -0
- package/dist/components/segmented.js +129 -0
- package/dist/components/select.d.ts +62 -0
- package/dist/components/select.js +140 -0
- package/dist/components/share-button.d.ts +37 -0
- package/dist/components/share-button.js +60 -0
- package/dist/components/signature.d.ts +54 -0
- package/dist/components/signature.js +152 -0
- package/dist/components/skeleton.d.ts +21 -0
- package/dist/components/skeleton.js +26 -0
- package/dist/components/slider.d.ts +31 -0
- package/dist/components/slider.js +80 -0
- package/dist/components/sortable.d.ts +22 -0
- package/dist/components/sortable.js +196 -0
- package/dist/components/sparkline.d.ts +28 -0
- package/dist/components/sparkline.js +46 -0
- package/dist/components/spinner.d.ts +16 -0
- package/dist/components/spinner.js +22 -0
- package/dist/components/splitter.d.ts +28 -0
- package/dist/components/splitter.js +89 -0
- package/dist/components/stat.d.ts +28 -0
- package/dist/components/stat.js +33 -0
- package/dist/components/steps.d.ts +53 -0
- package/dist/components/steps.js +91 -0
- package/dist/components/switch.d.ts +12 -0
- package/dist/components/switch.js +18 -0
- package/dist/components/table.d.ts +58 -0
- package/dist/components/table.js +96 -0
- package/dist/components/tabs.d.ts +62 -0
- package/dist/components/tabs.js +310 -0
- package/dist/components/tag.d.ts +32 -0
- package/dist/components/tag.js +58 -0
- package/dist/components/textarea.d.ts +25 -0
- package/dist/components/textarea.js +56 -0
- package/dist/components/theme-switch.d.ts +51 -0
- package/dist/components/theme-switch.js +85 -0
- package/dist/components/time-picker.d.ts +39 -0
- package/dist/components/time-picker.js +257 -0
- package/dist/components/timeline.d.ts +38 -0
- package/dist/components/timeline.js +56 -0
- package/dist/components/toaster.d.ts +25 -0
- package/dist/components/toaster.js +44 -0
- package/dist/components/toggle-group.d.ts +70 -0
- package/dist/components/toggle-group.js +172 -0
- package/dist/components/toolbar.d.ts +23 -0
- package/dist/components/toolbar.js +81 -0
- package/dist/components/tooltip.d.ts +18 -0
- package/dist/components/tooltip.js +92 -0
- package/dist/components/tour.d.ts +41 -0
- package/dist/components/tour.js +197 -0
- package/dist/components/transfer.d.ts +57 -0
- package/dist/components/transfer.js +161 -0
- package/dist/components/tree-select.d.ts +66 -0
- package/dist/components/tree-select.js +282 -0
- package/dist/components/tree.d.ts +129 -0
- package/dist/components/tree.js +427 -0
- package/dist/components/virtual-list.d.ts +41 -0
- package/dist/components/virtual-list.js +77 -0
- package/dist/confirm.d.ts +21 -0
- package/dist/confirm.js +69 -0
- package/dist/count.d.ts +5 -0
- package/dist/count.js +12 -0
- package/dist/data-table/icons.d.ts +8 -0
- package/dist/data-table/icons.js +10 -0
- package/dist/data-table/logic.d.ts +33 -0
- package/dist/data-table/logic.js +141 -0
- package/dist/data-table/strings.d.ts +37 -0
- package/dist/data-table/strings.js +36 -0
- package/dist/data-table/types.d.ts +76 -0
- package/dist/data-table/types.js +1 -0
- package/dist/define.d.ts +2 -0
- package/dist/define.js +2 -0
- package/dist/field-validity.d.ts +42 -0
- package/dist/field-validity.js +58 -0
- package/dist/floating.d.ts +13 -0
- package/dist/floating.js +65 -0
- package/dist/highlight.d.ts +11 -0
- package/dist/highlight.js +103 -0
- package/dist/id.d.ts +2 -0
- package/dist/id.js +3 -0
- package/dist/index.d.ts +102 -0
- package/dist/index.js +102 -0
- package/dist/manifest.d.ts +51 -0
- package/dist/manifest.js +11 -0
- package/dist/named-icon.d.ts +8 -0
- package/dist/named-icon.js +8 -0
- package/dist/patterns/account.d.ts +6 -0
- package/dist/patterns/account.js +137 -0
- package/dist/patterns/app.d.ts +7 -0
- package/dist/patterns/app.js +351 -0
- package/dist/patterns/commerce.d.ts +4 -0
- package/dist/patterns/commerce.js +200 -0
- package/dist/patterns/flows.d.ts +3 -0
- package/dist/patterns/flows.js +100 -0
- package/dist/patterns/index.d.ts +9 -0
- package/dist/patterns/index.js +29 -0
- package/dist/patterns/marketing.d.ts +4 -0
- package/dist/patterns/marketing.js +173 -0
- package/dist/patterns/more.d.ts +15 -0
- package/dist/patterns/more.js +581 -0
- package/dist/patterns/shell.d.ts +9 -0
- package/dist/patterns/shell.js +48 -0
- package/dist/patterns/types.d.ts +19 -0
- package/dist/patterns/types.js +1 -0
- package/dist/position.d.ts +2 -0
- package/dist/position.js +33 -0
- package/dist/prismora.standalone.js +5222 -0
- package/dist/prismora.standalone.js.map +199 -0
- package/dist/qr.d.ts +14 -0
- package/dist/qr.js +258 -0
- package/dist/register.d.ts +8 -0
- package/dist/register.js +21 -0
- package/dist/registry.d.ts +203 -0
- package/dist/registry.js +203 -0
- package/dist/remote.d.ts +58 -0
- package/dist/remote.js +130 -0
- package/dist/sheet.d.ts +34 -0
- package/dist/sheet.js +153 -0
- package/dist/styles/accordion.d.ts +2 -0
- package/dist/styles/accordion.js +3 -0
- package/dist/styles/alert.d.ts +2 -0
- package/dist/styles/alert.js +3 -0
- package/dist/styles/avatar.d.ts +2 -0
- package/dist/styles/avatar.js +3 -0
- package/dist/styles/badge.d.ts +2 -0
- package/dist/styles/badge.js +3 -0
- package/dist/styles/banner.d.ts +2 -0
- package/dist/styles/banner.js +3 -0
- package/dist/styles/breadcrumb.d.ts +2 -0
- package/dist/styles/breadcrumb.js +3 -0
- package/dist/styles/button.d.ts +2 -0
- package/dist/styles/button.js +3 -0
- package/dist/styles/calendar.d.ts +2 -0
- package/dist/styles/calendar.js +3 -0
- package/dist/styles/card.d.ts +2 -0
- package/dist/styles/card.js +3 -0
- package/dist/styles/carousel.d.ts +2 -0
- package/dist/styles/carousel.js +3 -0
- package/dist/styles/chart.d.ts +2 -0
- package/dist/styles/chart.js +3 -0
- package/dist/styles/chat.d.ts +2 -0
- package/dist/styles/chat.js +3 -0
- package/dist/styles/checkbox.d.ts +2 -0
- package/dist/styles/checkbox.js +3 -0
- package/dist/styles/color-picker.d.ts +2 -0
- package/dist/styles/color-picker.js +3 -0
- package/dist/styles/combobox.d.ts +2 -0
- package/dist/styles/combobox.js +3 -0
- package/dist/styles/command.d.ts +2 -0
- package/dist/styles/command.js +3 -0
- package/dist/styles/data-table.d.ts +2 -0
- package/dist/styles/data-table.js +3 -0
- package/dist/styles/description-list.d.ts +2 -0
- package/dist/styles/description-list.js +3 -0
- package/dist/styles/dialog.d.ts +2 -0
- package/dist/styles/dialog.js +3 -0
- package/dist/styles/drawer.d.ts +2 -0
- package/dist/styles/drawer.js +3 -0
- package/dist/styles/editor.d.ts +2 -0
- package/dist/styles/editor.js +3 -0
- package/dist/styles/empty-state.d.ts +2 -0
- package/dist/styles/empty-state.js +3 -0
- package/dist/styles/extras.d.ts +2 -0
- package/dist/styles/extras.js +3 -0
- package/dist/styles/field.d.ts +2 -0
- package/dist/styles/field.js +3 -0
- package/dist/styles/file-upload.d.ts +2 -0
- package/dist/styles/file-upload.js +3 -0
- package/dist/styles/foundation.d.ts +2 -0
- package/dist/styles/foundation.js +3 -0
- package/dist/styles/helpers.d.ts +2 -0
- package/dist/styles/helpers.js +3 -0
- package/dist/styles/icon.d.ts +2 -0
- package/dist/styles/icon.js +3 -0
- package/dist/styles/image.d.ts +2 -0
- package/dist/styles/image.js +3 -0
- package/dist/styles/indicator.d.ts +2 -0
- package/dist/styles/indicator.js +3 -0
- package/dist/styles/input.d.ts +2 -0
- package/dist/styles/input.js +3 -0
- package/dist/styles/kbd.d.ts +2 -0
- package/dist/styles/kbd.js +3 -0
- package/dist/styles/list.d.ts +2 -0
- package/dist/styles/list.js +3 -0
- package/dist/styles/listbox.d.ts +2 -0
- package/dist/styles/listbox.js +3 -0
- package/dist/styles/meter.d.ts +2 -0
- package/dist/styles/meter.js +3 -0
- package/dist/styles/nav.d.ts +2 -0
- package/dist/styles/nav.js +3 -0
- package/dist/styles/number-input.d.ts +2 -0
- package/dist/styles/number-input.js +3 -0
- package/dist/styles/overlay.d.ts +2 -0
- package/dist/styles/overlay.js +3 -0
- package/dist/styles/pagination.d.ts +2 -0
- package/dist/styles/pagination.js +3 -0
- package/dist/styles/pickers.d.ts +2 -0
- package/dist/styles/pickers.js +3 -0
- package/dist/styles/pin-input.d.ts +2 -0
- package/dist/styles/pin-input.js +3 -0
- package/dist/styles/popover.d.ts +2 -0
- package/dist/styles/popover.js +3 -0
- package/dist/styles/progress.d.ts +2 -0
- package/dist/styles/progress.js +3 -0
- package/dist/styles/pull-refresh.d.ts +2 -0
- package/dist/styles/pull-refresh.js +3 -0
- package/dist/styles/range-slider.d.ts +2 -0
- package/dist/styles/range-slider.js +3 -0
- package/dist/styles/rating.d.ts +2 -0
- package/dist/styles/rating.js +3 -0
- package/dist/styles/scheduler.d.ts +2 -0
- package/dist/styles/scheduler.js +3 -0
- package/dist/styles/segmented.d.ts +2 -0
- package/dist/styles/segmented.js +3 -0
- package/dist/styles/select.d.ts +2 -0
- package/dist/styles/select.js +3 -0
- package/dist/styles/separator.d.ts +2 -0
- package/dist/styles/separator.js +3 -0
- package/dist/styles/sheet.d.ts +2 -0
- package/dist/styles/sheet.js +3 -0
- package/dist/styles/skeleton.d.ts +2 -0
- package/dist/styles/skeleton.js +3 -0
- package/dist/styles/slider.d.ts +2 -0
- package/dist/styles/slider.js +3 -0
- package/dist/styles/sortable.d.ts +2 -0
- package/dist/styles/sortable.js +3 -0
- package/dist/styles/spinner.d.ts +2 -0
- package/dist/styles/spinner.js +3 -0
- package/dist/styles/splitter.d.ts +2 -0
- package/dist/styles/splitter.js +3 -0
- package/dist/styles/stat.d.ts +2 -0
- package/dist/styles/stat.js +3 -0
- package/dist/styles/steps.d.ts +2 -0
- package/dist/styles/steps.js +3 -0
- package/dist/styles/surface.d.ts +2 -0
- package/dist/styles/surface.js +3 -0
- package/dist/styles/switch.d.ts +2 -0
- package/dist/styles/switch.js +3 -0
- package/dist/styles/table.d.ts +2 -0
- package/dist/styles/table.js +3 -0
- package/dist/styles/tabs.d.ts +2 -0
- package/dist/styles/tabs.js +3 -0
- package/dist/styles/tag.d.ts +2 -0
- package/dist/styles/tag.js +3 -0
- package/dist/styles/time-picker.d.ts +2 -0
- package/dist/styles/time-picker.js +3 -0
- package/dist/styles/timeline.d.ts +2 -0
- package/dist/styles/timeline.js +3 -0
- package/dist/styles/toast.d.ts +2 -0
- package/dist/styles/toast.js +3 -0
- package/dist/styles/toggle.d.ts +2 -0
- package/dist/styles/toggle.js +3 -0
- package/dist/styles/toolbar.d.ts +2 -0
- package/dist/styles/toolbar.js +3 -0
- package/dist/styles/tooltip.d.ts +2 -0
- package/dist/styles/tooltip.js +3 -0
- package/dist/styles/tree.d.ts +2 -0
- package/dist/styles/tree.js +3 -0
- package/dist/table-core.d.ts +75 -0
- package/dist/table-core.js +205 -0
- package/dist/toast.d.ts +42 -0
- package/dist/toast.js +206 -0
- package/dist/top-layer.d.ts +4 -0
- package/dist/top-layer.js +33 -0
- package/package.json +101 -4
|
@@ -0,0 +1,581 @@
|
|
|
1
|
+
/** Templates built on the data, chat, form and page-helper components. */
|
|
2
|
+
import { shell } from './shell.js';
|
|
3
|
+
export const analytics = {
|
|
4
|
+
id: 'analytics',
|
|
5
|
+
title: 'Traffic analytics',
|
|
6
|
+
category: 'Application',
|
|
7
|
+
app: true,
|
|
8
|
+
description: 'Visitors as line, bar and donut charts, KPI cards with sparklines, and a top pages table.',
|
|
9
|
+
html: shell('dashboard', `<div class="pm-cluster">
|
|
10
|
+
<div class="pm-stack" style="--pm-gap: var(--pm-space-1)">
|
|
11
|
+
<h1 class="pm-text-2xl pm-heading">Traffic</h1>
|
|
12
|
+
<p class="pm-text-sm pm-muted">Visits to your site in the last 7 days.</p>
|
|
13
|
+
</div>
|
|
14
|
+
<span class="pm-spacer"></span>
|
|
15
|
+
<pm-segmented label="Period" value="7d" size="sm">
|
|
16
|
+
<pm-segment value="24h">24 hours</pm-segment>
|
|
17
|
+
<pm-segment value="7d">7 days</pm-segment>
|
|
18
|
+
<pm-segment value="30d">30 days</pm-segment>
|
|
19
|
+
</pm-segmented>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="pm-grid" style="--pm-grid-min: 12rem">
|
|
22
|
+
<pm-card size="sm"><pm-stat label="Visitors" value="24,812" delta="+9.2%" trend="up" icon="users"><pm-sparkline values="31,34,33,38,36,41,44" label="Visitors, last 7 days" tone="success"></pm-sparkline></pm-stat></pm-card>
|
|
23
|
+
<pm-card size="sm"><pm-stat label="Sign-ups" value="1,046" delta="+4.1%" trend="up" icon="user-plus"><pm-sparkline values="12,14,13,13,15,16,17" label="Sign-ups, last 7 days" tone="success"></pm-sparkline></pm-stat></pm-card>
|
|
24
|
+
<pm-card size="sm"><pm-stat label="Bounce rate" value="38.4%" delta="-2.3 pt" trend="down" inverse icon="trending-down"><pm-sparkline values="44,43,41,42,40,39,38" label="Bounce rate, last 7 days" tone="success"></pm-sparkline></pm-stat></pm-card>
|
|
25
|
+
<pm-card size="sm"><pm-stat label="Avg. visit" value="3m 12s" delta="-0.8%" trend="down" icon="clock"><pm-sparkline values="20,21,19,20,19,19,18" label="Average visit, last 7 days" tone="danger"></pm-sparkline></pm-stat></pm-card>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="pm-split" data-side="end" style="--pm-side: 19rem; --pm-split-align: stretch">
|
|
28
|
+
<pm-card heading="New and returning visitors" description="Per day, this week">
|
|
29
|
+
<pm-chart type="line" label="New and returning visitors per day" labels="Mon,Tue,Wed,Thu,Fri,Sat,Sun"
|
|
30
|
+
series='[{"name":"New visitors","values":[3100,3400,3300,3800,3600,4100,4400]},{"name":"Returning","values":[1900,2100,2050,2300,2250,2400,2700]}]'></pm-chart>
|
|
31
|
+
</pm-card>
|
|
32
|
+
<pm-card heading="Where visits come from">
|
|
33
|
+
<pm-chart type="donut" label="Visits by source" labels="Search,Direct,Social,Referral" values="46,28,16,10" value-suffix="%"></pm-chart>
|
|
34
|
+
</pm-card>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="pm-split" data-side="end" style="--pm-side: 19rem">
|
|
37
|
+
<pm-card heading="Top pages">
|
|
38
|
+
<pm-table label="Top pages by views" striped
|
|
39
|
+
columns='[{"key":"page","label":"Page"},{"key":"views","label":"Views","type":"number","align":"end"},{"key":"time","label":"Avg. time","align":"end"}]'
|
|
40
|
+
rows='[{"page":"/pricing","views":8421,"time":"2m 40s"},{"page":"/docs/getting-started","views":6130,"time":"4m 05s"},{"page":"/","views":5902,"time":"1m 12s"},{"page":"/blog/one-seed","views":2377,"time":"5m 31s"}]'></pm-table>
|
|
41
|
+
</pm-card>
|
|
42
|
+
<pm-card heading="Visits by device">
|
|
43
|
+
<pm-chart type="bar" label="Visits by device" labels="Phone,Desktop,Tablet" values="13800,9400,1612" height="200"></pm-chart>
|
|
44
|
+
</pm-card>
|
|
45
|
+
</div>`, { search: 'Search pages…' }),
|
|
46
|
+
};
|
|
47
|
+
export const customer = {
|
|
48
|
+
id: 'customer',
|
|
49
|
+
title: 'Customer detail',
|
|
50
|
+
category: 'Application',
|
|
51
|
+
app: true,
|
|
52
|
+
description: 'One customer record: contact details, subscription and usage, recent orders, notes and an activity timeline.',
|
|
53
|
+
html: shell('orders', `<pm-breadcrumb label="Breadcrumb">
|
|
54
|
+
<pm-breadcrumb-item href="/orders">Customers</pm-breadcrumb-item>
|
|
55
|
+
<pm-breadcrumb-item current>Grace Hopper</pm-breadcrumb-item>
|
|
56
|
+
</pm-breadcrumb>
|
|
57
|
+
<div class="pm-cluster">
|
|
58
|
+
<pm-avatar name="Grace Hopper" size="lg"></pm-avatar>
|
|
59
|
+
<div class="pm-stack" style="--pm-gap: var(--pm-space-1)">
|
|
60
|
+
<h1 class="pm-text-2xl pm-heading">Grace Hopper</h1>
|
|
61
|
+
<p class="pm-text-sm pm-muted">Customer since March 2024 <pm-badge tone="success">Active</pm-badge></p>
|
|
62
|
+
</div>
|
|
63
|
+
<span class="pm-spacer"></span>
|
|
64
|
+
<pm-button size="sm" variant="outline" tone="neutral" icon-start="mail">Email</pm-button>
|
|
65
|
+
<pm-button size="sm" icon-start="plus">New order</pm-button>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="pm-split" style="--pm-side: 20rem">
|
|
68
|
+
<div class="pm-stack">
|
|
69
|
+
<pm-card heading="Details">
|
|
70
|
+
<pm-description-list layout="vertical" label="Customer details">
|
|
71
|
+
<pm-description-item label="Email">grace@example.com</pm-description-item>
|
|
72
|
+
<pm-description-item label="Phone">+1 555 010 2030</pm-description-item>
|
|
73
|
+
<pm-description-item label="Company">Compiler Works Ltd</pm-description-item>
|
|
74
|
+
<pm-description-item label="Address">12 Harbour Street, Arlington</pm-description-item>
|
|
75
|
+
</pm-description-list>
|
|
76
|
+
</pm-card>
|
|
77
|
+
<pm-card heading="Plan and usage">
|
|
78
|
+
<div class="pm-stack">
|
|
79
|
+
<pm-description-list label="Subscription">
|
|
80
|
+
<pm-description-item label="Plan">Business, yearly</pm-description-item>
|
|
81
|
+
<pm-description-item label="Renews">1 March 2027</pm-description-item>
|
|
82
|
+
</pm-description-list>
|
|
83
|
+
<pm-meter label="Seats" value="17" max="20" low="14" high="18" optimum="5" value-text="17 of 20 used"></pm-meter>
|
|
84
|
+
<pm-meter label="Storage" value="41" max="100" low="60" high="85" optimum="20" value-text="41 GB of 100 GB"></pm-meter>
|
|
85
|
+
</div>
|
|
86
|
+
</pm-card>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="pm-stack">
|
|
89
|
+
<div class="pm-grid" style="--pm-grid-min: 9rem">
|
|
90
|
+
<pm-card size="sm"><pm-stat size="sm" label="Lifetime value" value="$18,420"></pm-stat></pm-card>
|
|
91
|
+
<pm-card size="sm"><pm-stat size="sm" label="Orders" value="46"></pm-stat></pm-card>
|
|
92
|
+
<pm-card size="sm"><pm-stat size="sm" label="Open tickets" value="1"></pm-stat></pm-card>
|
|
93
|
+
</div>
|
|
94
|
+
<pm-card heading="Recent orders">
|
|
95
|
+
<pm-table label="Recent orders"
|
|
96
|
+
columns='[{"key":"id","label":"Order"},{"key":"date","label":"Date"},{"key":"status","label":"Status"},{"key":"total","label":"Total","type":"currency","align":"end"}]'
|
|
97
|
+
rows='[{"id":"#1042","date":"12 Nov","status":"Shipped","total":428},{"id":"#1017","date":"28 Oct","status":"Delivered","total":1290},{"id":"#0988","date":"3 Oct","status":"Delivered","total":76}]'></pm-table>
|
|
98
|
+
<pm-button slot="footer" variant="link" size="sm" href="/orders" icon-end="arrow-right">All orders</pm-button>
|
|
99
|
+
</pm-card>
|
|
100
|
+
<pm-card heading="Activity">
|
|
101
|
+
<pm-timeline label="Customer activity">
|
|
102
|
+
<pm-timeline-item heading="Order #1042 shipped" time="12 Nov, 14:20" icon="box" tone="success">Tracking number sent by email.</pm-timeline-item>
|
|
103
|
+
<pm-timeline-item heading="Asked about invoices" time="9 Nov, 09:41" icon="message-circle">Wanted invoices sent to the finance team as well.</pm-timeline-item>
|
|
104
|
+
<pm-timeline-item heading="Upgraded to Business" time="1 Mar, 11:02" icon="trending-up" tone="accent">From Team, yearly billing.</pm-timeline-item>
|
|
105
|
+
</pm-timeline>
|
|
106
|
+
</pm-card>
|
|
107
|
+
</div>
|
|
108
|
+
</div>`, { search: 'Search customers…' }),
|
|
109
|
+
};
|
|
110
|
+
export const billing = {
|
|
111
|
+
id: 'billing',
|
|
112
|
+
title: 'Billing and invoices',
|
|
113
|
+
category: 'Application',
|
|
114
|
+
app: true,
|
|
115
|
+
description: 'Current plan with usage meters, payment method, billing details and a list of past invoices to download.',
|
|
116
|
+
html: shell('settings', `<pm-banner tone="warning" icon="alert-triangle">Your card ending 4242 expires next month. <a href="/billing">Update payment method</a></pm-banner>
|
|
117
|
+
<div class="pm-stack" style="--pm-gap: var(--pm-space-1)">
|
|
118
|
+
<h1 class="pm-text-2xl pm-heading">Billing</h1>
|
|
119
|
+
<p class="pm-text-sm pm-muted">Manage your plan, payment method and invoices.</p>
|
|
120
|
+
</div>
|
|
121
|
+
<div class="pm-grid" style="--pm-grid-min: 18rem">
|
|
122
|
+
<pm-card heading="Business plan" description="$240 per month, billed yearly">
|
|
123
|
+
<div class="pm-stack">
|
|
124
|
+
<pm-meter label="Seats" value="17" max="20" low="14" high="18" optimum="5" value-text="17 of 20"></pm-meter>
|
|
125
|
+
<pm-meter label="Projects" value="34" max="100" value-text="34 of 100"></pm-meter>
|
|
126
|
+
<pm-meter label="API calls this month" value="912000" max="1000000" low="600000" high="900000" optimum="100000" value-text="912K of 1M"></pm-meter>
|
|
127
|
+
</div>
|
|
128
|
+
<pm-button slot="footer" size="sm" href="/pricing">Change plan</pm-button>
|
|
129
|
+
<pm-button slot="footer" size="sm" variant="ghost" tone="danger">Cancel plan</pm-button>
|
|
130
|
+
</pm-card>
|
|
131
|
+
<pm-card heading="Payment and details">
|
|
132
|
+
<pm-description-list divided label="Billing details">
|
|
133
|
+
<pm-description-item label="Card">Visa ending 4242 <pm-badge tone="warning">Expires 01/27</pm-badge></pm-description-item>
|
|
134
|
+
<pm-description-item label="Billing email">finance@example.com</pm-description-item>
|
|
135
|
+
<pm-description-item label="Company">Compiler Works Ltd</pm-description-item>
|
|
136
|
+
<pm-description-item label="Tax ID">GB 123 4567 89</pm-description-item>
|
|
137
|
+
<pm-description-item label="Next invoice">1 December 2026, $240.00</pm-description-item>
|
|
138
|
+
</pm-description-list>
|
|
139
|
+
<pm-button slot="footer" size="sm" variant="outline" tone="neutral" icon-start="credit-card">Update card</pm-button>
|
|
140
|
+
<pm-button slot="footer" size="sm" variant="outline" tone="neutral" icon-start="edit">Edit details</pm-button>
|
|
141
|
+
</pm-card>
|
|
142
|
+
</div>
|
|
143
|
+
<pm-card heading="Invoices">
|
|
144
|
+
<pm-table label="Invoices" striped
|
|
145
|
+
columns='[{"key":"id","label":"Invoice"},{"key":"date","label":"Date"},{"key":"status","label":"Status"},{"key":"amount","label":"Amount","type":"currency","align":"end"}]'
|
|
146
|
+
rows='[{"id":"INV-2026-11","date":"1 Nov 2026","status":"Paid","amount":240},{"id":"INV-2026-10","date":"1 Oct 2026","status":"Paid","amount":240},{"id":"INV-2026-09","date":"1 Sep 2026","status":"Paid","amount":240},{"id":"INV-2026-08","date":"1 Aug 2026","status":"Refunded","amount":240}]'></pm-table>
|
|
147
|
+
<pm-button slot="footer" size="sm" variant="outline" tone="neutral" icon-start="download">Download all</pm-button>
|
|
148
|
+
</pm-card>`),
|
|
149
|
+
};
|
|
150
|
+
export const team = {
|
|
151
|
+
id: 'team',
|
|
152
|
+
title: 'Team and roles',
|
|
153
|
+
category: 'Application',
|
|
154
|
+
app: true,
|
|
155
|
+
description: 'Members with roles and status, an invite form with validation and role cards, and pending invitations.',
|
|
156
|
+
html: shell('settings', `<div class="pm-cluster">
|
|
157
|
+
<div class="pm-stack" style="--pm-gap: var(--pm-space-1)">
|
|
158
|
+
<h1 class="pm-text-2xl pm-heading">Team</h1>
|
|
159
|
+
<p class="pm-text-sm pm-muted">17 of 20 seats used.</p>
|
|
160
|
+
</div>
|
|
161
|
+
<span class="pm-spacer"></span>
|
|
162
|
+
<pm-button size="sm" icon-start="user-plus" commandfor="invite" command="--open">Invite people</pm-button>
|
|
163
|
+
</div>
|
|
164
|
+
<pm-card heading="Members">
|
|
165
|
+
<pm-list label="Team members" divided>
|
|
166
|
+
<pm-list-item heading="Ada Lovelace" description="ada@example.com"><pm-avatar slot="start" name="Ada Lovelace" size="sm" status="online"></pm-avatar><pm-badge slot="end" tone="accent">Owner</pm-badge></pm-list-item>
|
|
167
|
+
<pm-list-item heading="Grace Hopper" description="grace@example.com"><pm-avatar slot="start" name="Grace Hopper" size="sm" status="online"></pm-avatar><pm-badge slot="end" tone="neutral">Admin</pm-badge></pm-list-item>
|
|
168
|
+
<pm-list-item heading="Alan Turing" description="alan@example.com"><pm-avatar slot="start" name="Alan Turing" size="sm"></pm-avatar><pm-badge slot="end" tone="neutral">Editor</pm-badge></pm-list-item>
|
|
169
|
+
<pm-list-item heading="Katherine Johnson" description="katherine@example.com"><pm-avatar slot="start" name="Katherine Johnson" size="sm"></pm-avatar><pm-badge slot="end" tone="neutral">Viewer</pm-badge></pm-list-item>
|
|
170
|
+
</pm-list>
|
|
171
|
+
</pm-card>
|
|
172
|
+
<pm-card heading="Pending invitations">
|
|
173
|
+
<pm-list label="Pending invitations" divided>
|
|
174
|
+
<pm-list-item heading="hedy@example.com" description="Invited 2 days ago as Editor"><pm-icon slot="start" name="mail"></pm-icon><pm-button slot="end" size="sm" variant="ghost">Resend</pm-button></pm-list-item>
|
|
175
|
+
<pm-list-item heading="linus@example.com" description="Invited 5 days ago as Viewer"><pm-icon slot="start" name="mail"></pm-icon><pm-button slot="end" size="sm" variant="ghost">Resend</pm-button></pm-list-item>
|
|
176
|
+
</pm-list>
|
|
177
|
+
</pm-card>
|
|
178
|
+
<pm-dialog id="invite" heading="Invite people" description="They get an email with a link to join.">
|
|
179
|
+
<pm-form>
|
|
180
|
+
<form class="pm-stack">
|
|
181
|
+
<pm-input label="Email address" name="email" type="email" required autocomplete="off" placeholder="name@company.com"></pm-input>
|
|
182
|
+
<pm-radio-group label="Role" name="role" value="editor" variant="card" required>
|
|
183
|
+
<pm-radio value="admin" description="Manage members and billing">Admin</pm-radio>
|
|
184
|
+
<pm-radio value="editor" description="Create and edit projects">Editor</pm-radio>
|
|
185
|
+
<pm-radio value="viewer" description="Read and comment only">Viewer</pm-radio>
|
|
186
|
+
</pm-radio-group>
|
|
187
|
+
<pm-textarea label="Message (optional)" name="message" rows="2"></pm-textarea>
|
|
188
|
+
<div class="pm-cluster" style="justify-content: flex-end">
|
|
189
|
+
<pm-button type="button" variant="outline" tone="neutral" commandfor="invite" command="--close">Cancel</pm-button>
|
|
190
|
+
<pm-button type="submit" icon-start="send">Send invite</pm-button>
|
|
191
|
+
</div>
|
|
192
|
+
</form>
|
|
193
|
+
</pm-form>
|
|
194
|
+
</pm-dialog>`),
|
|
195
|
+
};
|
|
196
|
+
export const chat = {
|
|
197
|
+
id: 'chat',
|
|
198
|
+
title: 'Team chat',
|
|
199
|
+
category: 'Application',
|
|
200
|
+
app: true,
|
|
201
|
+
description: 'Conversation list beside a message thread with avatars, delivery status, a typing indicator and a composer.',
|
|
202
|
+
html: shell('inbox', `<h1 class="pm-visually-hidden">Messages</h1>
|
|
203
|
+
<div class="pm-split" style="--pm-side: 18rem; --pm-split-min: 55%; --pm-split-align: stretch">
|
|
204
|
+
<pm-card size="sm" heading="Messages">
|
|
205
|
+
<pm-list label="Conversations" divided>
|
|
206
|
+
<pm-list-item heading="Grace Hopper" description="Great, thank you." interactive selected><pm-avatar slot="start" name="Grace Hopper" size="sm" status="online"></pm-avatar><span slot="end" class="pm-text-xs pm-muted">09:43</span></pm-list-item>
|
|
207
|
+
<pm-list-item heading="Design team" description="Alan: new icons are in" interactive><pm-indicator slot="start" count="3" label="{count} unread"><pm-avatar name="Design team" size="sm"></pm-avatar></pm-indicator><span slot="end" class="pm-text-xs pm-muted">08:12</span></pm-list-item>
|
|
208
|
+
<pm-list-item heading="Katherine Johnson" description="Numbers attached" interactive><pm-avatar slot="start" name="Katherine Johnson" size="sm"></pm-avatar><span slot="end" class="pm-text-xs pm-muted">Mon</span></pm-list-item>
|
|
209
|
+
</pm-list>
|
|
210
|
+
</pm-card>
|
|
211
|
+
<pm-card size="sm">
|
|
212
|
+
<div class="pm-stack" style="--pm-gap: var(--pm-space-3)">
|
|
213
|
+
<div class="pm-cluster">
|
|
214
|
+
<pm-avatar name="Grace Hopper" size="sm" status="online"></pm-avatar>
|
|
215
|
+
<div class="pm-stack" style="--pm-gap: 0"><span class="pm-weight-semibold">Grace Hopper</span><span class="pm-text-xs pm-muted">Online</span></div>
|
|
216
|
+
<span class="pm-spacer"></span>
|
|
217
|
+
<pm-button variant="ghost" tone="neutral" icon icon-start="phone" label="Call Grace"></pm-button>
|
|
218
|
+
<pm-button variant="ghost" tone="neutral" icon icon-start="more-horizontal" label="More"></pm-button>
|
|
219
|
+
</div>
|
|
220
|
+
<pm-chat label="Conversation with Grace Hopper" style="block-size: min(55dvh, 26rem)">
|
|
221
|
+
<span class="pm-chat-day">Today</span>
|
|
222
|
+
<pm-chat-message name="Grace" time="09:41"><pm-avatar slot="avatar" name="Grace Hopper" size="sm"></pm-avatar>Morning! Is the March invoice ready to send?</pm-chat-message>
|
|
223
|
+
<pm-chat-message from="me" time="09:42" status="Read">Almost. I am adding the last two line items now.</pm-chat-message>
|
|
224
|
+
<pm-chat-message name="Grace" time="09:43"><pm-avatar slot="avatar" name="Grace Hopper" size="sm"></pm-avatar>Great, thank you. Could you copy finance as well?</pm-chat-message>
|
|
225
|
+
<pm-chat-message from="me" time="09:44" status="Delivered">Will do. Sending in ten minutes.</pm-chat-message>
|
|
226
|
+
<pm-chat-message name="Grace" typing><pm-avatar slot="avatar" name="Grace Hopper" size="sm"></pm-avatar></pm-chat-message>
|
|
227
|
+
</pm-chat>
|
|
228
|
+
<pm-composer label="Message Grace" placeholder="Write a message">
|
|
229
|
+
<pm-button slot="start" variant="ghost" tone="neutral" size="sm" icon icon-start="paperclip" label="Attach a file"></pm-button>
|
|
230
|
+
</pm-composer>
|
|
231
|
+
</div>
|
|
232
|
+
</pm-card>
|
|
233
|
+
</div>`, { search: 'Search messages…' }),
|
|
234
|
+
};
|
|
235
|
+
export const assistant = {
|
|
236
|
+
id: 'assistant',
|
|
237
|
+
title: 'AI assistant',
|
|
238
|
+
category: 'Application',
|
|
239
|
+
app: true,
|
|
240
|
+
description: 'An AI chat screen: suggested prompts, a streaming answer with copy and feedback actions, and a composer with a stop button.',
|
|
241
|
+
html: shell('inbox', `<div class="pm-stack" style="max-inline-size: 46rem; margin-inline: auto; inline-size: 100%">
|
|
242
|
+
<div class="pm-cluster">
|
|
243
|
+
<h1 class="pm-text-xl pm-heading">Assistant</h1>
|
|
244
|
+
<pm-badge tone="accent">Beta</pm-badge>
|
|
245
|
+
<span class="pm-spacer"></span>
|
|
246
|
+
<pm-button size="sm" variant="outline" tone="neutral" icon-start="plus">New chat</pm-button>
|
|
247
|
+
</div>
|
|
248
|
+
<pm-chat label="Conversation with the assistant" style="block-size: min(58dvh, 30rem)">
|
|
249
|
+
<pm-chat-message from="me">Summarise last week's sales and tell me what changed.</pm-chat-message>
|
|
250
|
+
<pm-chat-message name="Assistant" variant="plain">
|
|
251
|
+
<pm-avatar slot="avatar" name="AI" size="sm"></pm-avatar>
|
|
252
|
+
<div class="pm-prose" data-size="sm" data-measure="none">
|
|
253
|
+
<p>Sales were <strong>$48,210</strong> last week, up 12% on the week before.</p>
|
|
254
|
+
<ul>
|
|
255
|
+
<li>Orders rose from 1,188 to 1,284, mostly from search traffic.</li>
|
|
256
|
+
<li>The Business plan made up 61% of revenue.</li>
|
|
257
|
+
<li>Refunds were slightly higher at 1.8%.</li>
|
|
258
|
+
</ul>
|
|
259
|
+
</div>
|
|
260
|
+
<pm-copy-button slot="actions" size="sm" variant="ghost" value="Sales were $48,210 last week, up 12% on the week before."></pm-copy-button>
|
|
261
|
+
<pm-button slot="actions" size="sm" variant="ghost" tone="neutral" icon icon-start="thumbs-up" label="Good answer"></pm-button>
|
|
262
|
+
<pm-button slot="actions" size="sm" variant="ghost" tone="neutral" icon icon-start="refresh" label="Try again"></pm-button>
|
|
263
|
+
</pm-chat-message>
|
|
264
|
+
<pm-chat-message from="me">Which countries drove the growth?</pm-chat-message>
|
|
265
|
+
<pm-chat-message name="Assistant" variant="plain" streaming>
|
|
266
|
+
<pm-avatar slot="avatar" name="AI" size="sm"></pm-avatar>
|
|
267
|
+
Most of the growth came from Germany and Brazil. Germany added
|
|
268
|
+
</pm-chat-message>
|
|
269
|
+
</pm-chat>
|
|
270
|
+
<pm-composer label="Ask the assistant" placeholder="Ask about your data" busy>
|
|
271
|
+
<div slot="top" class="pm-cluster">
|
|
272
|
+
<pm-button size="xs" variant="soft" tone="neutral">Compare with last month</pm-button>
|
|
273
|
+
<pm-button size="xs" variant="soft" tone="neutral">Show top products</pm-button>
|
|
274
|
+
<pm-button size="xs" variant="soft" tone="neutral">Draft a summary email</pm-button>
|
|
275
|
+
</div>
|
|
276
|
+
</pm-composer>
|
|
277
|
+
<p class="pm-caption pm-text-center">Answers can be wrong. Check important numbers against your reports.</p>
|
|
278
|
+
</div>`),
|
|
279
|
+
};
|
|
280
|
+
export const notifications = {
|
|
281
|
+
id: 'notifications',
|
|
282
|
+
title: 'Notifications',
|
|
283
|
+
category: 'Application',
|
|
284
|
+
app: true,
|
|
285
|
+
description: 'A notification centre grouped by day with unread markers, filters, mark-all-read and per-topic settings.',
|
|
286
|
+
html: shell('inbox', `<div class="pm-cluster">
|
|
287
|
+
<h1 class="pm-text-2xl pm-heading">Notifications</h1>
|
|
288
|
+
<pm-badge tone="accent">3 new</pm-badge>
|
|
289
|
+
<span class="pm-spacer"></span>
|
|
290
|
+
<pm-button size="sm" variant="outline" tone="neutral" icon-start="check">Mark all read</pm-button>
|
|
291
|
+
</div>
|
|
292
|
+
<pm-segmented label="Show" value="all" size="sm">
|
|
293
|
+
<pm-segment value="all">All</pm-segment>
|
|
294
|
+
<pm-segment value="unread">Unread</pm-segment>
|
|
295
|
+
<pm-segment value="mentions">Mentions</pm-segment>
|
|
296
|
+
</pm-segmented>
|
|
297
|
+
<div class="pm-split" data-side="end" style="--pm-side: 19rem">
|
|
298
|
+
<div class="pm-stack">
|
|
299
|
+
<h2 class="pm-eyebrow">Today</h2>
|
|
300
|
+
<pm-list label="Today" divided bordered>
|
|
301
|
+
<pm-list-item heading="Grace mentioned you in Roadmap" description="Can you confirm the launch date?" href="/inbox"><pm-indicator slot="start" dot label="Unread"><pm-avatar name="Grace Hopper" size="sm"></pm-avatar></pm-indicator><span slot="end" class="pm-text-xs pm-muted">9:41</span></pm-list-item>
|
|
302
|
+
<pm-list-item heading="Payment received" description="Invoice INV-2026-11, $240.00" href="/billing"><pm-indicator slot="start" dot label="Unread"><pm-icon name="credit-card"></pm-icon></pm-indicator><span slot="end" class="pm-text-xs pm-muted">8:02</span></pm-list-item>
|
|
303
|
+
<pm-list-item heading="Export finished" description="orders-november.csv is ready to download" href="/orders"><pm-indicator slot="start" dot label="Unread"><pm-icon name="download"></pm-icon></pm-indicator><span slot="end" class="pm-text-xs pm-muted">7:30</span></pm-list-item>
|
|
304
|
+
</pm-list>
|
|
305
|
+
<h2 class="pm-eyebrow">Earlier</h2>
|
|
306
|
+
<pm-list label="Earlier" divided bordered>
|
|
307
|
+
<pm-list-item heading="Alan joined the team" description="Added as Editor by Ada" href="/team"><pm-avatar slot="start" name="Alan Turing" size="sm"></pm-avatar><span slot="end" class="pm-text-xs pm-muted">Mon</span></pm-list-item>
|
|
308
|
+
<pm-list-item heading="New sign-in from Chrome on Windows" description="Lisbon, Portugal. Was this you?" href="/settings"><pm-icon slot="start" name="shield"></pm-icon><span slot="end" class="pm-text-xs pm-muted">Sun</span></pm-list-item>
|
|
309
|
+
</pm-list>
|
|
310
|
+
</div>
|
|
311
|
+
<pm-card heading="Notify me about">
|
|
312
|
+
<pm-checkbox-group label="Topics" hide-label name="topics" value="mentions,billing,security">
|
|
313
|
+
<pm-choice value="mentions">Mentions and replies</pm-choice>
|
|
314
|
+
<pm-choice value="billing">Billing and invoices</pm-choice>
|
|
315
|
+
<pm-choice value="security">Security alerts</pm-choice>
|
|
316
|
+
<pm-choice value="product">Product news</pm-choice>
|
|
317
|
+
</pm-checkbox-group>
|
|
318
|
+
<pm-button slot="footer" size="sm">Save</pm-button>
|
|
319
|
+
</pm-card>
|
|
320
|
+
</div>`),
|
|
321
|
+
};
|
|
322
|
+
export const cart = {
|
|
323
|
+
id: 'cart',
|
|
324
|
+
title: 'Shopping cart',
|
|
325
|
+
category: 'Commerce',
|
|
326
|
+
description: 'Cart lines with quantity steppers, a promo code, delivery choice cards and an order summary that stays in view.',
|
|
327
|
+
html: `<main class="pm-container pm-stack" style="--pm-gap: var(--pm-space-6); padding-block: var(--pm-space-8)">
|
|
328
|
+
<div class="pm-cluster">
|
|
329
|
+
<h1 class="pm-text-3xl pm-heading">Your cart</h1>
|
|
330
|
+
<pm-badge tone="neutral">3 items</pm-badge>
|
|
331
|
+
</div>
|
|
332
|
+
<div class="pm-split" data-side="end" style="--pm-side: 21rem">
|
|
333
|
+
<div class="pm-stack">
|
|
334
|
+
<pm-card>
|
|
335
|
+
<pm-list label="Cart items" divided>
|
|
336
|
+
<pm-list-item heading="Linen overshirt" description="Sand, size M">
|
|
337
|
+
<pm-image slot="start" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Crect width='4' height='4' fill='%23d9c7a8'/%3E%3C/svg%3E" alt="" ratio="1/1" style="inline-size: 4rem"></pm-image>
|
|
338
|
+
<div slot="end" class="pm-cluster"><pm-number-input label="Quantity of linen overshirt" hide-label value="1" min="1" max="9" size="sm" style="inline-size: 7rem"></pm-number-input><span class="pm-weight-semibold pm-tabular">$89.00</span></div>
|
|
339
|
+
</pm-list-item>
|
|
340
|
+
<pm-list-item heading="Canvas tote" description="Black">
|
|
341
|
+
<pm-image slot="start" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Crect width='4' height='4' fill='%232b2b33'/%3E%3C/svg%3E" alt="" ratio="1/1" style="inline-size: 4rem"></pm-image>
|
|
342
|
+
<div slot="end" class="pm-cluster"><pm-number-input label="Quantity of canvas tote" hide-label value="2" min="1" max="9" size="sm" style="inline-size: 7rem"></pm-number-input><span class="pm-weight-semibold pm-tabular">$48.00</span></div>
|
|
343
|
+
</pm-list-item>
|
|
344
|
+
</pm-list>
|
|
345
|
+
</pm-card>
|
|
346
|
+
<pm-radio-group label="Delivery" name="delivery" value="standard" variant="card">
|
|
347
|
+
<pm-radio value="standard" description="3 to 5 working days, free">Standard</pm-radio>
|
|
348
|
+
<pm-radio value="express" description="Next working day, $9.00">Express</pm-radio>
|
|
349
|
+
<pm-radio value="pickup" description="Ready in 2 hours, free">Collect in store</pm-radio>
|
|
350
|
+
</pm-radio-group>
|
|
351
|
+
</div>
|
|
352
|
+
<pm-card heading="Order summary">
|
|
353
|
+
<div class="pm-stack">
|
|
354
|
+
<pm-description-list label="Order summary">
|
|
355
|
+
<pm-description-item label="Subtotal">$137.00</pm-description-item>
|
|
356
|
+
<pm-description-item label="Delivery">Free</pm-description-item>
|
|
357
|
+
<pm-description-item label="Tax">$11.30</pm-description-item>
|
|
358
|
+
</pm-description-list>
|
|
359
|
+
<pm-divider></pm-divider>
|
|
360
|
+
<div class="pm-cluster pm-weight-bold pm-text-lg"><span>Total</span><span class="pm-spacer"></span><span class="pm-tabular">$148.30</span></div>
|
|
361
|
+
<form class="pm-cluster" style="flex-wrap: nowrap; align-items: end">
|
|
362
|
+
<pm-input label="Promo code" name="promo" size="sm" style="flex: 1"></pm-input>
|
|
363
|
+
<pm-button type="submit" size="sm" variant="outline" tone="neutral">Apply</pm-button>
|
|
364
|
+
</form>
|
|
365
|
+
</div>
|
|
366
|
+
<pm-button slot="footer" href="/checkout" icon-end="arrow-right" style="flex: 1">Checkout</pm-button>
|
|
367
|
+
</pm-card>
|
|
368
|
+
</div>
|
|
369
|
+
</main>`,
|
|
370
|
+
};
|
|
371
|
+
export const help = {
|
|
372
|
+
id: 'help',
|
|
373
|
+
title: 'Help centre',
|
|
374
|
+
category: 'Marketing',
|
|
375
|
+
description: 'Help centre home with search, topic cards, frequently asked questions as disclosures and a contact call to action.',
|
|
376
|
+
html: `<main class="pm-container pm-stack" style="--pm-gap: var(--pm-space-12); padding-block: var(--pm-space-12)">
|
|
377
|
+
<section class="pm-stack" style="align-items: center; text-align: center; --pm-gap: var(--pm-space-4)">
|
|
378
|
+
<span class="pm-eyebrow">Help centre</span>
|
|
379
|
+
<h1 class="pm-text-4xl pm-heading">How can we help?</h1>
|
|
380
|
+
<form class="pm-cluster" role="search" method="get" action="/search" style="justify-content: center; inline-size: min(100%, 32rem)">
|
|
381
|
+
<pm-input type="search" name="q" label="Search help articles" hide-label placeholder="Search articles…" icon-start="search" size="lg" style="flex: 1"></pm-input>
|
|
382
|
+
<pm-button type="submit" size="lg">Search</pm-button>
|
|
383
|
+
</form>
|
|
384
|
+
</section>
|
|
385
|
+
<section class="pm-stack" aria-labelledby="topics-title">
|
|
386
|
+
<h2 id="topics-title" class="pm-text-xl pm-heading">Browse by topic</h2>
|
|
387
|
+
<div class="pm-grid" style="--pm-grid-min: 15rem">
|
|
388
|
+
<pm-card size="sm" heading="Getting started" description="Set up your account and invite your team."><pm-icon name="zap" style="font-size: 1.5rem; color: var(--pm-color-accent-text)"></pm-icon><pm-button slot="footer" variant="link" size="sm" href="/help" icon-end="arrow-right">Getting started articles</pm-button></pm-card>
|
|
389
|
+
<pm-card size="sm" heading="Billing" description="Plans, invoices, refunds and tax."><pm-icon name="credit-card" style="font-size: 1.5rem; color: var(--pm-color-accent-text)"></pm-icon><pm-button slot="footer" variant="link" size="sm" href="/billing" icon-end="arrow-right">Billing articles</pm-button></pm-card>
|
|
390
|
+
<pm-card size="sm" heading="Account and security" description="Passwords, two-step sign-in and sessions."><pm-icon name="shield" style="font-size: 1.5rem; color: var(--pm-color-accent-text)"></pm-icon><pm-button slot="footer" variant="link" size="sm" href="/settings" icon-end="arrow-right">Account and security articles</pm-button></pm-card>
|
|
391
|
+
<pm-card size="sm" heading="Integrations" description="Connect the tools you already use."><pm-icon name="link" style="font-size: 1.5rem; color: var(--pm-color-accent-text)"></pm-icon><pm-button slot="footer" variant="link" size="sm" href="/help" icon-end="arrow-right">Integrations articles</pm-button></pm-card>
|
|
392
|
+
</div>
|
|
393
|
+
</section>
|
|
394
|
+
<section class="pm-stack" aria-labelledby="faq-title" style="max-inline-size: 46rem; margin-inline: auto; inline-size: 100%">
|
|
395
|
+
<h2 id="faq-title" class="pm-text-xl pm-heading">Frequently asked questions</h2>
|
|
396
|
+
<details class="pm-details" open><summary>How do I change my plan?</summary><p>Go to Billing, choose Change plan and pick a new one. Upgrades start straight away; downgrades start at the next renewal.</p></details>
|
|
397
|
+
<details class="pm-details"><summary>Can I get a refund?</summary><p>Yes, within 30 days of a payment. Open the invoice in Billing and choose Request refund.</p></details>
|
|
398
|
+
<details class="pm-details"><summary>How do I add or remove team members?</summary><p>Owners and admins can invite people and change roles on the Team page.</p></details>
|
|
399
|
+
<details class="pm-details"><summary>Where is my data stored?</summary><p>In the region you chose when creating the workspace. You can see it under Settings.</p></details>
|
|
400
|
+
</section>
|
|
401
|
+
<pm-card surface="gradient" style="text-align: center">
|
|
402
|
+
<div class="pm-stack" style="align-items: center">
|
|
403
|
+
<h2 class="pm-text-xl pm-heading">Still need help?</h2>
|
|
404
|
+
<p class="pm-muted">Our team replies within one working day.</p>
|
|
405
|
+
<pm-button href="/contact" icon-start="mail">Contact support</pm-button>
|
|
406
|
+
</div>
|
|
407
|
+
</pm-card>
|
|
408
|
+
</main>`,
|
|
409
|
+
};
|
|
410
|
+
export const contact = {
|
|
411
|
+
id: 'contact',
|
|
412
|
+
title: 'Contact form',
|
|
413
|
+
category: 'Marketing',
|
|
414
|
+
description: 'A contact page with a validated form (error summary, topic cards, masked phone field) beside other ways to reach the team.',
|
|
415
|
+
html: `<main class="pm-container pm-stack" style="--pm-gap: var(--pm-space-8); padding-block: var(--pm-space-12)">
|
|
416
|
+
<div class="pm-stack" style="--pm-gap: var(--pm-space-2)">
|
|
417
|
+
<span class="pm-eyebrow">Contact</span>
|
|
418
|
+
<h1 class="pm-text-4xl pm-heading">Talk to us</h1>
|
|
419
|
+
<p class="pm-lead">Tell us what you need and the right person will reply within one working day.</p>
|
|
420
|
+
</div>
|
|
421
|
+
<div class="pm-split" data-side="end" style="--pm-side: 19rem">
|
|
422
|
+
<pm-card>
|
|
423
|
+
<pm-form>
|
|
424
|
+
<form class="pm-stack">
|
|
425
|
+
<div class="pm-grid" style="--pm-grid-min: 14rem">
|
|
426
|
+
<pm-input label="Full name" name="name" autocomplete="name" required></pm-input>
|
|
427
|
+
<pm-input label="Work email" name="email" type="email" autocomplete="email" required></pm-input>
|
|
428
|
+
</div>
|
|
429
|
+
<pm-input label="Phone (optional)" name="phone" type="tel" autocomplete="tel" mask="(999) 999-9999" inputmode="numeric" placeholder="(555) 010-2030"></pm-input>
|
|
430
|
+
<pm-radio-group label="What is this about?" name="topic" value="sales" variant="card" required>
|
|
431
|
+
<pm-radio value="sales" description="Plans, pricing, demos">Sales</pm-radio>
|
|
432
|
+
<pm-radio value="support" description="Help with your account">Support</pm-radio>
|
|
433
|
+
<pm-radio value="other" description="Press, partnerships">Something else</pm-radio>
|
|
434
|
+
</pm-radio-group>
|
|
435
|
+
<pm-textarea label="Message" name="message" rows="5" required maxlength="2000" show-count></pm-textarea>
|
|
436
|
+
<pm-checkbox name="consent" required>I agree to be contacted about this request</pm-checkbox>
|
|
437
|
+
<pm-button type="submit" icon-start="send">Send message</pm-button>
|
|
438
|
+
</form>
|
|
439
|
+
</pm-form>
|
|
440
|
+
</pm-card>
|
|
441
|
+
<div class="pm-stack">
|
|
442
|
+
<pm-card size="sm" heading="Other ways to reach us">
|
|
443
|
+
<pm-description-list layout="vertical" label="Contact details">
|
|
444
|
+
<pm-description-item label="Email"><a href="mailto:hello@example.com">hello@example.com</a></pm-description-item>
|
|
445
|
+
<pm-description-item label="Phone"><a href="tel:+15550102030">+1 555 010 2030</a></pm-description-item>
|
|
446
|
+
<pm-description-item label="Hours">Monday to Friday, 9:00 to 18:00 UTC</pm-description-item>
|
|
447
|
+
</pm-description-list>
|
|
448
|
+
</pm-card>
|
|
449
|
+
<pm-card size="sm" heading="Looking for answers?" description="Most questions are covered in the help centre.">
|
|
450
|
+
<pm-button slot="footer" size="sm" variant="outline" tone="neutral" href="/help" icon-end="arrow-right">Help centre</pm-button>
|
|
451
|
+
</pm-card>
|
|
452
|
+
</div>
|
|
453
|
+
</div>
|
|
454
|
+
</main>`,
|
|
455
|
+
};
|
|
456
|
+
export const comingSoon = {
|
|
457
|
+
id: 'coming-soon',
|
|
458
|
+
title: 'Coming soon',
|
|
459
|
+
category: 'Marketing',
|
|
460
|
+
description: 'A launch page with a live countdown, an email sign-up with validation and a short list of what is coming.',
|
|
461
|
+
html: `<main class="pm-container pm-stack" style="--pm-gap: var(--pm-space-10); padding-block: var(--pm-space-16); align-items: center; text-align: center; min-block-size: 100dvh; justify-content: center">
|
|
462
|
+
<div class="pm-stack" style="align-items: center; --pm-gap: var(--pm-space-4)">
|
|
463
|
+
<pm-badge tone="accent" size="lg">Launching soon</pm-badge>
|
|
464
|
+
<h1 class="pm-display">Something <span class="pm-gradient-text">new</span> is on the way</h1>
|
|
465
|
+
<p class="pm-lead" style="max-inline-size: 34rem">A faster way to plan, build and ship together. Be the first to try it.</p>
|
|
466
|
+
</div>
|
|
467
|
+
<pm-countdown to="2030-01-01T00:00:00Z" label="Launch in"></pm-countdown>
|
|
468
|
+
<pm-form style="inline-size: min(100%, 28rem)">
|
|
469
|
+
<form class="pm-cluster" style="align-items: start">
|
|
470
|
+
<pm-input type="email" name="email" label="Email address" hide-label placeholder="you@example.com" autocomplete="email" required style="flex: 1 1 14rem"></pm-input>
|
|
471
|
+
<pm-button type="submit">Notify me</pm-button>
|
|
472
|
+
</form>
|
|
473
|
+
</pm-form>
|
|
474
|
+
<div class="pm-grid" style="--pm-grid-min: 13rem; inline-size: 100%; text-align: start">
|
|
475
|
+
<pm-card size="sm" heading="Plan" description="Roadmaps that update themselves."><pm-icon name="calendar" style="font-size: 1.5rem; color: var(--pm-color-accent-text)"></pm-icon></pm-card>
|
|
476
|
+
<pm-card size="sm" heading="Build" description="Boards, docs and reviews in one place."><pm-icon name="columns" style="font-size: 1.5rem; color: var(--pm-color-accent-text)"></pm-icon></pm-card>
|
|
477
|
+
<pm-card size="sm" heading="Ship" description="Release notes written for you."><pm-icon name="send" style="font-size: 1.5rem; color: var(--pm-color-accent-text)"></pm-icon></pm-card>
|
|
478
|
+
</div>
|
|
479
|
+
</main>`,
|
|
480
|
+
};
|
|
481
|
+
export const serverError = {
|
|
482
|
+
id: 'server-error',
|
|
483
|
+
title: 'Server error',
|
|
484
|
+
category: 'Marketing',
|
|
485
|
+
description: 'A calm 500 page: what happened, a retry button, a status link and an error reference to copy for support.',
|
|
486
|
+
html: `<main class="pm-container pm-stack" style="--pm-gap: var(--pm-space-5); padding-block: var(--pm-space-16); align-items: center; text-align: center; min-block-size: 100dvh; justify-content: center">
|
|
487
|
+
<p class="pm-display pm-gradient-text" aria-hidden="true">500</p>
|
|
488
|
+
<h1 class="pm-text-3xl pm-heading">Something went wrong on our side</h1>
|
|
489
|
+
<p class="pm-muted" style="max-inline-size: 32rem">Your work is safe. We have been told about the problem and are looking into it. Please try again in a moment.</p>
|
|
490
|
+
<div class="pm-cluster" style="justify-content: center">
|
|
491
|
+
<pm-button icon-start="refresh" href="/dashboard">Try again</pm-button>
|
|
492
|
+
<pm-button variant="outline" tone="neutral" href="/" icon-start="home">Go home</pm-button>
|
|
493
|
+
<pm-button variant="ghost" href="/help" icon-start="activity">System status</pm-button>
|
|
494
|
+
</div>
|
|
495
|
+
<pm-alert tone="neutral" heading="Error reference" style="text-align: start; inline-size: min(100%, 28rem)">
|
|
496
|
+
Quote this code if you contact support: <code>REQ-7F3A-91C2</code>
|
|
497
|
+
<pm-copy-button slot="actions" size="sm" variant="ghost" value="REQ-7F3A-91C2"></pm-copy-button>
|
|
498
|
+
</pm-alert>
|
|
499
|
+
</main>`,
|
|
500
|
+
};
|
|
501
|
+
export const changelog = {
|
|
502
|
+
id: 'changelog',
|
|
503
|
+
title: 'Changelog',
|
|
504
|
+
category: 'Marketing',
|
|
505
|
+
description: 'Release notes as a timeline with version badges, New / Improved / Fixed labels and an announcement banner.',
|
|
506
|
+
html: `<pm-banner tone="accent" icon="sparkles" dismissible>Version 2.4 is out with charts and a chat kit. <a href="/changelog">Read the notes</a></pm-banner>
|
|
507
|
+
<main class="pm-container pm-stack" style="--pm-gap: var(--pm-space-8); padding-block: var(--pm-space-12); max-inline-size: 46rem">
|
|
508
|
+
<div class="pm-stack" style="--pm-gap: var(--pm-space-2)">
|
|
509
|
+
<span class="pm-eyebrow">Changelog</span>
|
|
510
|
+
<h1 class="pm-text-4xl pm-heading">What's new</h1>
|
|
511
|
+
<p class="pm-lead">Every release, newest first.</p>
|
|
512
|
+
</div>
|
|
513
|
+
<pm-timeline label="Releases">
|
|
514
|
+
<pm-timeline-item heading="2.4: Charts and chat" time="18 November 2026" tone="accent" icon="sparkles">
|
|
515
|
+
<div class="pm-stack" style="--pm-gap: var(--pm-space-2)">
|
|
516
|
+
<p><pm-badge tone="success">New</pm-badge> Bar, line, area and donut charts that follow your theme.</p>
|
|
517
|
+
<p><pm-badge tone="success">New</pm-badge> Chat messages, typing indicator and a composer.</p>
|
|
518
|
+
<p><pm-badge tone="info">Improved</pm-badge> Forms list every problem in one summary.</p>
|
|
519
|
+
</div>
|
|
520
|
+
</pm-timeline-item>
|
|
521
|
+
<pm-timeline-item heading="2.3: Faster tables" time="2 October 2026" icon="zap">
|
|
522
|
+
<div class="pm-stack" style="--pm-gap: var(--pm-space-2)">
|
|
523
|
+
<p><pm-badge tone="info">Improved</pm-badge> Data tables render large lists twice as fast.</p>
|
|
524
|
+
<p><pm-badge tone="warning">Fixed</pm-badge> Column widths no longer jump while loading.</p>
|
|
525
|
+
</div>
|
|
526
|
+
</pm-timeline-item>
|
|
527
|
+
<pm-timeline-item heading="2.2: Phone layouts" time="21 August 2026" icon="phone">
|
|
528
|
+
<div class="pm-stack" style="--pm-gap: var(--pm-space-2)">
|
|
529
|
+
<p><pm-badge tone="success">New</pm-badge> Native-style sheets, tab bars and swipe actions on phones.</p>
|
|
530
|
+
<p><pm-badge tone="warning">Fixed</pm-badge> Date picker keyboard order in right-to-left languages.</p>
|
|
531
|
+
</div>
|
|
532
|
+
</pm-timeline-item>
|
|
533
|
+
</pm-timeline>
|
|
534
|
+
<pm-button variant="outline" tone="neutral" icon-start="clock" style="align-self: start">Older releases</pm-button>
|
|
535
|
+
</main>
|
|
536
|
+
<pm-back-to-top></pm-back-to-top>`,
|
|
537
|
+
};
|
|
538
|
+
export const survey = {
|
|
539
|
+
id: 'survey',
|
|
540
|
+
title: 'Feedback survey',
|
|
541
|
+
category: 'Flows',
|
|
542
|
+
description: 'A short survey in one validated form: rating, choice cards, a checkbox group with a limit, a comment box and consent.',
|
|
543
|
+
html: `<main class="pm-container pm-stack" style="--pm-gap: var(--pm-space-6); padding-block: var(--pm-space-10); max-inline-size: 40rem">
|
|
544
|
+
<div class="pm-stack" style="--pm-gap: var(--pm-space-2)">
|
|
545
|
+
<span class="pm-eyebrow">2 minutes</span>
|
|
546
|
+
<h1 class="pm-text-3xl pm-heading">How are we doing?</h1>
|
|
547
|
+
<p class="pm-muted">Your answers help us decide what to build next.</p>
|
|
548
|
+
</div>
|
|
549
|
+
<pm-steps current="0" label="Survey progress">
|
|
550
|
+
<pm-step label="Your experience"></pm-step>
|
|
551
|
+
<pm-step label="Review"></pm-step>
|
|
552
|
+
<pm-step label="Done"></pm-step>
|
|
553
|
+
</pm-steps>
|
|
554
|
+
<pm-card>
|
|
555
|
+
<pm-form>
|
|
556
|
+
<form class="pm-stack" style="--pm-gap: var(--pm-space-6)">
|
|
557
|
+
<pm-rating label="Overall, how satisfied are you?" name="rating" value="4" required></pm-rating>
|
|
558
|
+
<pm-radio-group label="How often do you use the product?" name="frequency" variant="card" required>
|
|
559
|
+
<pm-radio value="daily" description="Most working days">Daily</pm-radio>
|
|
560
|
+
<pm-radio value="weekly" description="A few times a week">Weekly</pm-radio>
|
|
561
|
+
<pm-radio value="rarely" description="Now and then">Rarely</pm-radio>
|
|
562
|
+
</pm-radio-group>
|
|
563
|
+
<pm-checkbox-group label="What matters most to you?" name="priorities" max="2" required hint="Choose up to two.">
|
|
564
|
+
<pm-choice value="speed">Speed</pm-choice>
|
|
565
|
+
<pm-choice value="design">Design</pm-choice>
|
|
566
|
+
<pm-choice value="integrations">Integrations</pm-choice>
|
|
567
|
+
<pm-choice value="support">Support</pm-choice>
|
|
568
|
+
<pm-choice value="price">Price</pm-choice>
|
|
569
|
+
</pm-checkbox-group>
|
|
570
|
+
<pm-slider label="How likely are you to recommend us?" name="nps" min="0" max="10" value="8" show-value></pm-slider>
|
|
571
|
+
<pm-textarea label="Anything else?" name="comment" rows="4" maxlength="500" show-count></pm-textarea>
|
|
572
|
+
<pm-checkbox name="contact">You may contact me about my answers</pm-checkbox>
|
|
573
|
+
<div class="pm-cluster" style="justify-content: space-between">
|
|
574
|
+
<pm-button type="reset" variant="ghost" tone="neutral">Clear</pm-button>
|
|
575
|
+
<pm-button type="submit" icon-end="arrow-right">Review answers</pm-button>
|
|
576
|
+
</div>
|
|
577
|
+
</form>
|
|
578
|
+
</pm-form>
|
|
579
|
+
</pm-card>
|
|
580
|
+
</main>`,
|
|
581
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* App shell shared by the application templates: sidebar, top bar, content. On phones the sidebar becomes the
|
|
3
|
+
* bottom tab bar (native mobile) or a drawer opened from the menu button (responsive web).
|
|
4
|
+
*/
|
|
5
|
+
export type ShellPage = 'dashboard' | 'orders' | 'inbox' | 'projects' | 'settings' | 'profile';
|
|
6
|
+
/** Wrap page content (markup inside `<main>`) in the app shell. */
|
|
7
|
+
export declare function shell(current: ShellPage, content: string, opts?: {
|
|
8
|
+
search?: string;
|
|
9
|
+
}): string;
|