@adia-ai/web-components 0.6.6 → 0.6.8
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 +30 -0
- package/USAGE.md +286 -5
- package/bin/doc.mjs +379 -0
- package/components/accordion/accordion.examples.md +49 -0
- package/components/action-list/action-list.examples.md +33 -0
- package/components/agent-artifact/agent-artifact.examples.md +28 -0
- package/components/agent-feedback-bar/agent-feedback-bar.examples.md +24 -0
- package/components/agent-questions/agent-questions.examples.md +13 -0
- package/components/agent-reasoning/agent-reasoning.examples.md +28 -0
- package/components/agent-suggestions/agent-suggestions.examples.md +19 -0
- package/components/agent-trace/agent-trace.examples.md +19 -0
- package/components/alert/alert.examples.md +19 -0
- package/components/aside/aside.examples.md +38 -0
- package/components/avatar/avatar.examples.md +19 -0
- package/components/badge/badge.examples.md +19 -0
- package/components/block/block.examples.md +29 -0
- package/components/breadcrumb/breadcrumb.examples.md +32 -0
- package/components/button/button.examples.md +19 -0
- package/components/calendar-picker/calendar-picker.examples.md +23 -0
- package/components/canvas/canvas.examples.md +49 -0
- package/components/card/card.examples.md +25 -0
- package/components/chart/chart.examples.md +19 -0
- package/components/chart-legend/chart-legend.examples.md +22 -0
- package/components/chat-thread/chat-thread.examples.md +35 -0
- package/components/check/check.examples.md +19 -0
- package/components/code/code.examples.md +31 -0
- package/components/col/col.examples.md +11 -0
- package/components/color-input/color-input.examples.md +19 -0
- package/components/color-picker/color-picker.examples.md +19 -0
- package/components/command/command.examples.md +58 -0
- package/components/demo-toggle/demo-toggle.examples.md +19 -0
- package/components/description-list/description-list.examples.md +37 -0
- package/components/divider/divider.examples.md +31 -0
- package/components/drawer/drawer.examples.md +63 -0
- package/components/embed/embed.examples.md +19 -0
- package/components/empty-state/empty-state.examples.md +21 -0
- package/components/feed/feed.examples.md +19 -0
- package/components/field/field.examples.md +29 -0
- package/components/fields/fields.examples.md +58 -0
- package/components/footer/footer.examples.md +18 -0
- package/components/grid/grid.examples.md +21 -0
- package/components/header/header.examples.md +32 -0
- package/components/heatmap/heatmap.examples.md +19 -0
- package/components/icon/icon.examples.md +19 -0
- package/components/image/image.examples.md +19 -0
- package/components/input/input.examples.md +21 -0
- package/components/inspector/inspector.examples.md +27 -0
- package/components/kbd/kbd.examples.md +29 -0
- package/components/link/link.examples.md +25 -0
- package/components/list/list.examples.md +33 -0
- package/components/menu/menu.examples.md +37 -0
- package/components/modal/modal.examples.md +43 -0
- package/components/nav/nav.examples.md +39 -0
- package/components/nav-group/nav-group.examples.md +35 -0
- package/components/nav-item/nav-item.examples.md +25 -0
- package/components/noodles/noodles.examples.md +30 -0
- package/components/option-card/option-card.examples.md +47 -0
- package/components/otp-input/otp-input.examples.md +19 -0
- package/components/page/page.examples.md +46 -0
- package/components/pagination/pagination.examples.md +19 -0
- package/components/pane/pane.examples.md +40 -0
- package/components/pipeline-status/pipeline-status.examples.md +19 -0
- package/components/popover/popover.examples.md +34 -0
- package/components/progress/progress.examples.md +19 -0
- package/components/progress-row/progress-row.examples.md +19 -0
- package/components/radio/radio.examples.md +19 -0
- package/components/range/range.examples.md +19 -0
- package/components/rating/rating.examples.md +19 -0
- package/components/richtext/richtext.examples.md +19 -0
- package/components/row/row.examples.md +11 -0
- package/components/search/search.examples.md +19 -0
- package/components/section/section.examples.md +37 -0
- package/components/segment/segment.examples.md +32 -0
- package/components/segmented/segmented.examples.md +31 -0
- package/components/select/select.examples.md +49 -0
- package/components/skeleton/skeleton.examples.md +19 -0
- package/components/slider/slider.examples.md +21 -0
- package/components/stack/stack.examples.md +10 -0
- package/components/stat/stat.examples.md +19 -0
- package/components/step-progress/step-progress.examples.md +19 -0
- package/components/stepper/stepper.examples.md +37 -0
- package/components/stream/stream.examples.md +19 -0
- package/components/swatch/swatch.examples.md +23 -0
- package/components/swiper/swiper.examples.md +139 -0
- package/components/switch/switch.examples.md +19 -0
- package/components/table/table.examples.md +19 -0
- package/components/table-toolbar/table-toolbar.examples.md +12 -0
- package/components/tabs/tabs.examples.md +49 -0
- package/components/tag/tag.examples.md +19 -0
- package/components/text/text.examples.md +19 -0
- package/components/textarea/textarea.examples.md +23 -0
- package/components/timeline/timeline.examples.md +35 -0
- package/components/toast/toast.examples.md +19 -0
- package/components/toggle-group/toggle-group.examples.md +33 -0
- package/components/toggle-scheme/toggle-scheme.examples.md +19 -0
- package/components/toolbar/toolbar.examples.md +46 -0
- package/components/tooltip/tooltip.examples.md +25 -0
- package/components/tree/tree.examples.md +57 -0
- package/components/upload/upload.examples.md +19 -0
- package/core/template.js +236 -7
- package/core/template.test.js +294 -0
- package/custom-elements.json +9012 -0
- package/package.json +7 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# swiper — Examples
|
|
2
|
+
|
|
3
|
+
## basic
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<swiper-ui aria-label="Product gallery">
|
|
7
|
+
<card-ui variant="outlined">
|
|
8
|
+
<img src="https://picsum.photos/seed/swiper1/800/360" alt="Mountain landscape" style="width:100%; height:200px; object-fit:cover;">
|
|
9
|
+
<section>
|
|
10
|
+
<col-ui gap="1">
|
|
11
|
+
<text-ui strong>Mountain Retreat</text-ui>
|
|
12
|
+
<text-ui color="subtle">Escape to the peaks with panoramic alpine views and fresh mountain air.</text-ui>
|
|
13
|
+
</col-ui>
|
|
14
|
+
</section>
|
|
15
|
+
</card-ui>
|
|
16
|
+
<card-ui variant="outlined">
|
|
17
|
+
<img src="https://picsum.photos/seed/swiper2/800/360" alt="Ocean sunset" style="width:100%; height:200px; object-fit:cover;">
|
|
18
|
+
<section>
|
|
19
|
+
<col-ui gap="1">
|
|
20
|
+
<text-ui strong>Coastal Paradise</text-ui>
|
|
21
|
+
<text-ui color="subtle">White sand beaches, turquoise waters, and stunning sunsets every evening.</text-ui>
|
|
22
|
+
</col-ui>
|
|
23
|
+
</section>
|
|
24
|
+
</card-ui>
|
|
25
|
+
<card-ui variant="outlined">
|
|
26
|
+
<img src="https://picsum.photos/seed/swiper3/800/360" alt="Forest path" style="width:100%; height:200px; object-fit:cover;">
|
|
27
|
+
<section>
|
|
28
|
+
<col-ui gap="1">
|
|
29
|
+
<text-ui strong>Forest Lodge</text-ui>
|
|
30
|
+
<text-ui color="subtle">Secluded cabins surrounded by ancient redwoods and winding trails.</text-ui>
|
|
31
|
+
</col-ui>
|
|
32
|
+
</section>
|
|
33
|
+
</card-ui>
|
|
34
|
+
<card-ui variant="outlined">
|
|
35
|
+
<img src="https://picsum.photos/seed/swiper4/800/360" alt="City skyline" style="width:100%; height:200px; object-fit:cover;">
|
|
36
|
+
<section>
|
|
37
|
+
<col-ui gap="1">
|
|
38
|
+
<text-ui strong>Urban Explorer</text-ui>
|
|
39
|
+
<text-ui color="subtle">Boutique hotels in the heart of the city with rooftop skyline views.</text-ui>
|
|
40
|
+
</col-ui>
|
|
41
|
+
</section>
|
|
42
|
+
</card-ui>
|
|
43
|
+
</swiper-ui>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## slides-per-view
|
|
47
|
+
|
|
48
|
+
```html
|
|
49
|
+
<swiper-ui slides-per-view="3" gap="4" aria-label="Feature cards">
|
|
50
|
+
<card-ui variant="outlined">
|
|
51
|
+
<section>
|
|
52
|
+
<col-ui gap="2">
|
|
53
|
+
<icon-ui name="lightning" color="primary"></icon-ui>
|
|
54
|
+
<text-ui strong>Fast</text-ui>
|
|
55
|
+
<text-ui color="subtle">Sub-ms renders</text-ui>
|
|
56
|
+
</col-ui>
|
|
57
|
+
</section>
|
|
58
|
+
</card-ui>
|
|
59
|
+
<card-ui variant="outlined">
|
|
60
|
+
<section>
|
|
61
|
+
<col-ui gap="2">
|
|
62
|
+
<icon-ui name="paint-brush" color="accent"></icon-ui>
|
|
63
|
+
<text-ui strong>Themeable</text-ui>
|
|
64
|
+
<text-ui color="subtle">Design tokens</text-ui>
|
|
65
|
+
</col-ui>
|
|
66
|
+
</section>
|
|
67
|
+
</card-ui>
|
|
68
|
+
<card-ui variant="outlined">
|
|
69
|
+
<section>
|
|
70
|
+
<col-ui gap="2">
|
|
71
|
+
<icon-ui name="wheelchair" color="success"></icon-ui>
|
|
72
|
+
<text-ui strong>Accessible</text-ui>
|
|
73
|
+
<text-ui color="subtle">ARIA built-in</text-ui>
|
|
74
|
+
</col-ui>
|
|
75
|
+
</section>
|
|
76
|
+
</card-ui>
|
|
77
|
+
<card-ui variant="outlined">
|
|
78
|
+
<section>
|
|
79
|
+
<col-ui gap="2">
|
|
80
|
+
<icon-ui name="code" color="warning"></icon-ui>
|
|
81
|
+
<text-ui strong>Simple</text-ui>
|
|
82
|
+
<text-ui color="subtle">Light DOM</text-ui>
|
|
83
|
+
</col-ui>
|
|
84
|
+
</section>
|
|
85
|
+
</card-ui>
|
|
86
|
+
<card-ui variant="outlined">
|
|
87
|
+
<section>
|
|
88
|
+
<col-ui gap="2">
|
|
89
|
+
<icon-ui name="devices" color="danger"></icon-ui>
|
|
90
|
+
<text-ui strong>Responsive</text-ui>
|
|
91
|
+
<text-ui color="subtle">Container queries</text-ui>
|
|
92
|
+
</col-ui>
|
|
93
|
+
</section>
|
|
94
|
+
</card-ui>
|
|
95
|
+
</swiper-ui>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## peek
|
|
99
|
+
|
|
100
|
+
```html
|
|
101
|
+
<swiper-ui slides-per-view="2" peek gap="4" aria-label="Peek demo">
|
|
102
|
+
<card-ui>
|
|
103
|
+
<section>
|
|
104
|
+
<col-ui gap="2" align="center">
|
|
105
|
+
<avatar-ui text="Jordan Lee" size="lg"></avatar-ui>
|
|
106
|
+
<text-ui strong>Jordan Lee</text-ui>
|
|
107
|
+
<text-ui color="subtle">Engineer</text-ui>
|
|
108
|
+
</col-ui>
|
|
109
|
+
</section>
|
|
110
|
+
</card-ui>
|
|
111
|
+
<card-ui>
|
|
112
|
+
<section>
|
|
113
|
+
<col-ui gap="2" align="center">
|
|
114
|
+
<avatar-ui text="Emma Davis" size="lg"></avatar-ui>
|
|
115
|
+
<text-ui strong>Emma Davis</text-ui>
|
|
116
|
+
<text-ui color="subtle">Designer</text-ui>
|
|
117
|
+
</col-ui>
|
|
118
|
+
</section>
|
|
119
|
+
</card-ui>
|
|
120
|
+
<card-ui>
|
|
121
|
+
<section>
|
|
122
|
+
<col-ui gap="2" align="center">
|
|
123
|
+
<avatar-ui text="Tom Wright" size="lg"></avatar-ui>
|
|
124
|
+
<text-ui strong>Tom Wright</text-ui>
|
|
125
|
+
<text-ui color="subtle">DevOps</text-ui>
|
|
126
|
+
</col-ui>
|
|
127
|
+
</section>
|
|
128
|
+
</card-ui>
|
|
129
|
+
<card-ui>
|
|
130
|
+
<section>
|
|
131
|
+
<col-ui gap="2" align="center">
|
|
132
|
+
<avatar-ui text="Lisa Chang" size="lg"></avatar-ui>
|
|
133
|
+
<text-ui strong>Lisa Chang</text-ui>
|
|
134
|
+
<text-ui color="subtle">Staff Eng</text-ui>
|
|
135
|
+
</col-ui>
|
|
136
|
+
</section>
|
|
137
|
+
</card-ui>
|
|
138
|
+
</swiper-ui>
|
|
139
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# switch — Examples
|
|
2
|
+
|
|
3
|
+
## checked
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<switch-ui label="Off"></switch-ui>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## size
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<switch-ui label="Small" size="sm" checked></switch-ui>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## disabled
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<switch-ui label="Disabled Off" disabled></switch-ui>
|
|
19
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# table — Examples
|
|
2
|
+
|
|
3
|
+
## sortable
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<table-ui id="api-sortable" sortable></table-ui>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## selectable
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<table-ui id="api-selectable" selectable></table-ui>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## expandable
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<table-ui id="api-expandable" expandable></table-ui>
|
|
19
|
+
```
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# table-toolbar — Examples
|
|
2
|
+
|
|
3
|
+
## Wiring
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<table-toolbar-ui for="members" text="All employees" count="32"></table-toolbar-ui>
|
|
7
|
+
<card-ui>
|
|
8
|
+
<section-ui bleed>
|
|
9
|
+
<table-ui id="members" sortable raw>…</table-ui>
|
|
10
|
+
</section-ui>
|
|
11
|
+
</card-ui>
|
|
12
|
+
```
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# tabs — Examples
|
|
2
|
+
|
|
3
|
+
## basic
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tabs-ui value="overview">
|
|
7
|
+
<tab-ui value="overview" text="Overview">
|
|
8
|
+
<p>This is the overview panel. It provides a high-level summary of the feature.</p>
|
|
9
|
+
</tab-ui>
|
|
10
|
+
<tab-ui value="details" text="Details">
|
|
11
|
+
<p>This panel contains detailed specifications and technical information.</p>
|
|
12
|
+
</tab-ui>
|
|
13
|
+
<tab-ui value="changelog" text="Changelog">
|
|
14
|
+
<p>Version history and recent changes are listed here.</p>
|
|
15
|
+
</tab-ui>
|
|
16
|
+
</tabs-ui>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## with icons
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<tabs-ui value="profile">
|
|
23
|
+
<tab-ui value="profile" text="Profile" icon="user">
|
|
24
|
+
<p>Edit your profile information, display name, and avatar.</p>
|
|
25
|
+
</tab-ui>
|
|
26
|
+
<tab-ui value="settings" text="Settings" icon="gear">
|
|
27
|
+
<p>Configure your account preferences, notifications, and privacy.</p>
|
|
28
|
+
</tab-ui>
|
|
29
|
+
<tab-ui value="billing" text="Billing" icon="credit-card">
|
|
30
|
+
<p>Manage your subscription, payment methods, and invoices.</p>
|
|
31
|
+
</tab-ui>
|
|
32
|
+
</tabs-ui>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## disabled tab
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<tabs-ui value="active">
|
|
39
|
+
<tab-ui value="active" text="Active">
|
|
40
|
+
<p>This tab is active and selectable.</p>
|
|
41
|
+
</tab-ui>
|
|
42
|
+
<tab-ui value="also-active" text="Also Active">
|
|
43
|
+
<p>This tab is also selectable.</p>
|
|
44
|
+
</tab-ui>
|
|
45
|
+
<tab-ui value="locked" text="Locked" disabled>
|
|
46
|
+
<p>This content is locked.</p>
|
|
47
|
+
</tab-ui>
|
|
48
|
+
</tabs-ui>
|
|
49
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# tag — Examples
|
|
2
|
+
|
|
3
|
+
## variant
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tag-ui text="Default"></tag-ui>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## size
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<tag-ui text="Small" size="sm"></tag-ui>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## removable
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<tag-ui text="Removable" removable></tag-ui>
|
|
19
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# text — Examples
|
|
2
|
+
|
|
3
|
+
## Type Scale
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<text-ui variant="kicker">Kicker — Eyebrow / Overline</text-ui>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Supplementary Type Scale
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<text-ui variant="subsection">Subsection — a sub-grouping inside a heading section</text-ui>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Page Context
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<text-ui variant="kicker">Getting Started</text-ui>
|
|
19
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# textarea — Examples
|
|
2
|
+
|
|
3
|
+
## label
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<field-ui label="Description">
|
|
7
|
+
<textarea-ui placeholder="Enter a description..."></textarea-ui>
|
|
8
|
+
</field-ui>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## placeholder
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<textarea-ui placeholder="Write your message here..."></textarea-ui>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## rows
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<field-ui label="Compact (2 rows)">
|
|
21
|
+
<textarea-ui placeholder="Short input..." rows="2"></textarea-ui>
|
|
22
|
+
</field-ui>
|
|
23
|
+
```
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# timeline — Examples
|
|
2
|
+
|
|
3
|
+
## Vertical Timeline
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<timeline-ui>
|
|
7
|
+
<timeline-item-ui text="Order placed" time="2h ago" status="completed"></timeline-item-ui>
|
|
8
|
+
<timeline-item-ui text="Payment confirmed" time="1h ago" status="completed"></timeline-item-ui>
|
|
9
|
+
<timeline-item-ui text="Processing" status="active"></timeline-item-ui>
|
|
10
|
+
<timeline-item-ui text="Shipped"></timeline-item-ui>
|
|
11
|
+
<timeline-item-ui text="Delivered"></timeline-item-ui>
|
|
12
|
+
</timeline-ui>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## With Icons
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<timeline-ui>
|
|
19
|
+
<timeline-item-ui text="Created" description="Issue opened" icon="plus" status="completed"></timeline-item-ui>
|
|
20
|
+
<timeline-item-ui text="In Review" description="PR submitted" icon="eye" status="active"></timeline-item-ui>
|
|
21
|
+
<timeline-item-ui text="Merged" icon="git-merge"></timeline-item-ui>
|
|
22
|
+
<timeline-item-ui text="Deployed" icon="rocket"></timeline-item-ui>
|
|
23
|
+
</timeline-ui>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Horizontal
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<timeline-ui orientation="horizontal">
|
|
30
|
+
<timeline-item-ui text="Draft" status="completed"></timeline-item-ui>
|
|
31
|
+
<timeline-item-ui text="Review" status="active"></timeline-item-ui>
|
|
32
|
+
<timeline-item-ui text="Approved"></timeline-item-ui>
|
|
33
|
+
<timeline-item-ui text="Published"></timeline-item-ui>
|
|
34
|
+
</timeline-ui>
|
|
35
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# toast — Examples
|
|
2
|
+
|
|
3
|
+
## text
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<toast-ui text="Changes saved successfully." variant="success" duration="0" position="top-right"></toast-ui>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## variant
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<button-ui text="Default" variant="outline" size="sm" onclick="customElements.whenDefined('toast-ui').then(()=>customElements.get('toast-ui').show({text:'Default notification',variant:'default'}))"></button-ui>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## position
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<button-ui text="Top Left" variant="outline" size="sm" onclick="customElements.whenDefined('toast-ui').then(()=>customElements.get('toast-ui').show({text:'Top left',variant:'info',position:'top-left'}))"></button-ui>
|
|
19
|
+
```
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# toggle-group — Examples
|
|
2
|
+
|
|
3
|
+
## icon group
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<toggle-group-ui value="bold">
|
|
7
|
+
<toggle-option-ui value="bold" icon="text-b"></toggle-option-ui>
|
|
8
|
+
<toggle-option-ui value="italic" icon="text-italic"></toggle-option-ui>
|
|
9
|
+
<toggle-option-ui value="underline" icon="text-underline"></toggle-option-ui>
|
|
10
|
+
</toggle-group-ui>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## text group
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<toggle-group-ui value="week">
|
|
17
|
+
<toggle-option-ui value="day" text="Day"></toggle-option-ui>
|
|
18
|
+
<toggle-option-ui value="week" text="Week"></toggle-option-ui>
|
|
19
|
+
<toggle-option-ui value="month" text="Month"></toggle-option-ui>
|
|
20
|
+
<toggle-option-ui value="year" text="Year"></toggle-option-ui>
|
|
21
|
+
</toggle-group-ui>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## single select
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<toggle-group-ui value="left" single>
|
|
28
|
+
<toggle-option-ui value="left" icon="text-align-left"></toggle-option-ui>
|
|
29
|
+
<toggle-option-ui value="center" icon="text-align-center"></toggle-option-ui>
|
|
30
|
+
<toggle-option-ui value="right" icon="text-align-right"></toggle-option-ui>
|
|
31
|
+
<toggle-option-ui value="justify" icon="text-align-justify"></toggle-option-ui>
|
|
32
|
+
</toggle-group-ui>
|
|
33
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# toggle-scheme — Examples
|
|
2
|
+
|
|
3
|
+
## default
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<toggle-scheme-ui></toggle-scheme-ui>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## variant
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<toggle-scheme-ui variant="ghost"></toggle-scheme-ui>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## size
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<toggle-scheme-ui size="sm"></toggle-scheme-ui>
|
|
19
|
+
```
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# toolbar — Examples
|
|
2
|
+
|
|
3
|
+
## basic
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<toolbar-ui bordered>
|
|
7
|
+
<button-ui icon="text-b" variant="ghost" size="sm"></button-ui>
|
|
8
|
+
<button-ui icon="text-italic" variant="ghost" size="sm"></button-ui>
|
|
9
|
+
<button-ui icon="text-underline" variant="ghost" size="sm"></button-ui>
|
|
10
|
+
<button-ui icon="text-strikethrough" variant="ghost" size="sm"></button-ui>
|
|
11
|
+
</toolbar-ui>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## bordered
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<toolbar-ui>
|
|
18
|
+
<button-ui icon="arrow-left" variant="ghost" size="sm"></button-ui>
|
|
19
|
+
<button-ui icon="arrow-right" variant="ghost" size="sm"></button-ui>
|
|
20
|
+
<divider-ui vertical></divider-ui>
|
|
21
|
+
<button-ui icon="arrow-clockwise" variant="ghost" size="sm"></button-ui>
|
|
22
|
+
</toolbar-ui>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## with dividers
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<toolbar-ui>
|
|
29
|
+
<toolbar-group-ui>
|
|
30
|
+
<button-ui icon="text-b" variant="ghost" size="sm"></button-ui>
|
|
31
|
+
<button-ui icon="text-italic" variant="ghost" size="sm"></button-ui>
|
|
32
|
+
<button-ui icon="text-underline" variant="ghost" size="sm"></button-ui>
|
|
33
|
+
</toolbar-group-ui>
|
|
34
|
+
<divider-ui vertical></divider-ui>
|
|
35
|
+
<toolbar-group-ui>
|
|
36
|
+
<button-ui icon="text-align-left" variant="ghost" size="sm"></button-ui>
|
|
37
|
+
<button-ui icon="text-align-center" variant="ghost" size="sm"></button-ui>
|
|
38
|
+
<button-ui icon="text-align-right" variant="ghost" size="sm"></button-ui>
|
|
39
|
+
</toolbar-group-ui>
|
|
40
|
+
<divider-ui vertical></divider-ui>
|
|
41
|
+
<toolbar-group-ui>
|
|
42
|
+
<button-ui icon="list-bullets" variant="ghost" size="sm"></button-ui>
|
|
43
|
+
<button-ui icon="list-numbers" variant="ghost" size="sm"></button-ui>
|
|
44
|
+
</toolbar-group-ui>
|
|
45
|
+
</toolbar-ui>
|
|
46
|
+
```
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# tooltip — Examples
|
|
2
|
+
|
|
3
|
+
## text
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tooltip-ui text="Save your changes">
|
|
7
|
+
<button-ui text="Save" variant="primary"></button-ui>
|
|
8
|
+
</tooltip-ui>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## placement
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<tooltip-ui text="Appears on top" placement="top">
|
|
15
|
+
<button-ui text="Top" variant="outline"></button-ui>
|
|
16
|
+
</tooltip-ui>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## delay
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<tooltip-ui text="Instant tooltip" delay="0">
|
|
23
|
+
<button-ui text="No Delay" variant="outline"></button-ui>
|
|
24
|
+
</tooltip-ui>
|
|
25
|
+
```
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# tree — Examples
|
|
2
|
+
|
|
3
|
+
## nested items
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<tree-ui>
|
|
7
|
+
<tree-item-ui text="src" icon="folder">
|
|
8
|
+
<tree-item-ui text="components" icon="folder">
|
|
9
|
+
<tree-item-ui text="button.js" icon="file"></tree-item-ui>
|
|
10
|
+
<tree-item-ui text="input.js" icon="file"></tree-item-ui>
|
|
11
|
+
<tree-item-ui text="modal.js" icon="file"></tree-item-ui>
|
|
12
|
+
</tree-item-ui>
|
|
13
|
+
<tree-item-ui text="styles" icon="folder">
|
|
14
|
+
<tree-item-ui text="tokens.css" icon="file"></tree-item-ui>
|
|
15
|
+
<tree-item-ui text="styles.css" icon="file"></tree-item-ui>
|
|
16
|
+
</tree-item-ui>
|
|
17
|
+
<tree-item-ui text="index.js" icon="file"></tree-item-ui>
|
|
18
|
+
</tree-item-ui>
|
|
19
|
+
</tree-ui>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## selection
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<tree-ui>
|
|
26
|
+
<tree-item-ui text="Dashboard" icon="chart-bar"></tree-item-ui>
|
|
27
|
+
<tree-item-ui text="Settings" icon="gear">
|
|
28
|
+
<tree-item-ui text="General" icon="sliders"></tree-item-ui>
|
|
29
|
+
<tree-item-ui text="Security" icon="lock"></tree-item-ui>
|
|
30
|
+
<tree-item-ui text="Notifications" icon="bell"></tree-item-ui>
|
|
31
|
+
</tree-item-ui>
|
|
32
|
+
<tree-item-ui text="Profile" icon="user"></tree-item-ui>
|
|
33
|
+
<tree-item-ui text="Help" icon="question"></tree-item-ui>
|
|
34
|
+
</tree-ui>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## expand / collapse
|
|
38
|
+
|
|
39
|
+
```html
|
|
40
|
+
<tree-ui>
|
|
41
|
+
<tree-item-ui text="Page" icon="browser" open>
|
|
42
|
+
<tree-item-ui text="Header" icon="layout">
|
|
43
|
+
<tree-item-ui text="Logo" icon="image"></tree-item-ui>
|
|
44
|
+
<tree-item-ui text="Navigation" icon="list"></tree-item-ui>
|
|
45
|
+
</tree-item-ui>
|
|
46
|
+
<tree-item-ui text="Hero Section" icon="image" open>
|
|
47
|
+
<tree-item-ui text="Title" icon="text-aa"></tree-item-ui>
|
|
48
|
+
<tree-item-ui text="Subtitle" icon="text-aa"></tree-item-ui>
|
|
49
|
+
<tree-item-ui text="CTA Button" icon="cursor-click"></tree-item-ui>
|
|
50
|
+
</tree-item-ui>
|
|
51
|
+
<tree-item-ui text="Footer" icon="layout">
|
|
52
|
+
<tree-item-ui text="Links" icon="link"></tree-item-ui>
|
|
53
|
+
<tree-item-ui text="Copyright" icon="text-aa"></tree-item-ui>
|
|
54
|
+
</tree-item-ui>
|
|
55
|
+
</tree-item-ui>
|
|
56
|
+
</tree-ui>
|
|
57
|
+
```
|