@adia-ai/web-components 0.6.4 → 0.6.7
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 +28 -0
- package/USAGE.md +100 -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/class.js +5 -4
- package/components/field/field.a2ui.json +9 -0
- package/components/field/field.css +10 -0
- package/components/field/field.d.ts +2 -0
- package/components/field/field.examples.md +29 -0
- package/components/field/field.test.js +43 -0
- package/components/field/field.yaml +11 -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/custom-elements.json +9012 -0
- package/package.json +7 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# segment — Examples
|
|
2
|
+
|
|
3
|
+
## basic
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<segmented-ui>
|
|
7
|
+
<segment-ui value="overview" text="Overview"></segment-ui>
|
|
8
|
+
<segment-ui value="features" text="Features"></segment-ui>
|
|
9
|
+
<segment-ui value="pricing" text="Pricing"></segment-ui>
|
|
10
|
+
</segmented-ui>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## text
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<segmented-ui>
|
|
17
|
+
<segment-ui value="d" text="Daily"></segment-ui>
|
|
18
|
+
<segment-ui value="w" text="Weekly"></segment-ui>
|
|
19
|
+
<segment-ui value="m" text="Monthly"></segment-ui>
|
|
20
|
+
<segment-ui value="y" text="Yearly"></segment-ui>
|
|
21
|
+
</segmented-ui>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## disabled
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<segmented-ui>
|
|
28
|
+
<segment-ui value="free" text="Free"></segment-ui>
|
|
29
|
+
<segment-ui value="pro" text="Pro"></segment-ui>
|
|
30
|
+
<segment-ui value="enterprise" text="Enterprise" disabled></segment-ui>
|
|
31
|
+
</segmented-ui>
|
|
32
|
+
```
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# segmented — Examples
|
|
2
|
+
|
|
3
|
+
## basic (3 segments)
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<segmented-ui>
|
|
7
|
+
<segment-ui value="daily" text="Daily"></segment-ui>
|
|
8
|
+
<segment-ui value="weekly" text="Weekly"></segment-ui>
|
|
9
|
+
<segment-ui value="monthly" text="Monthly"></segment-ui>
|
|
10
|
+
</segmented-ui>
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## pre-selected
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<segmented-ui value="weekly">
|
|
17
|
+
<segment-ui value="daily" text="Daily"></segment-ui>
|
|
18
|
+
<segment-ui value="weekly" text="Weekly"></segment-ui>
|
|
19
|
+
<segment-ui value="monthly" text="Monthly"></segment-ui>
|
|
20
|
+
</segmented-ui>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## disabled segment
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<segmented-ui value="list">
|
|
27
|
+
<segment-ui value="list" text="List"></segment-ui>
|
|
28
|
+
<segment-ui value="grid" text="Grid"></segment-ui>
|
|
29
|
+
<segment-ui value="kanban" text="Kanban" disabled></segment-ui>
|
|
30
|
+
</segmented-ui>
|
|
31
|
+
```
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# select — Examples
|
|
2
|
+
|
|
3
|
+
## basic
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<field-ui label="Fruit">
|
|
7
|
+
<select-ui placeholder="Pick a fruit">
|
|
8
|
+
<option value="apple">Apple</option>
|
|
9
|
+
<option value="banana">Banana</option>
|
|
10
|
+
<option value="cherry">Cherry</option>
|
|
11
|
+
<option value="dragonfruit">Dragonfruit</option>
|
|
12
|
+
</select-ui>
|
|
13
|
+
</field-ui>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## size
|
|
17
|
+
|
|
18
|
+
```html
|
|
19
|
+
<field-ui label="Small">
|
|
20
|
+
<select-ui size="sm" placeholder="Pick a fruit">
|
|
21
|
+
<option value="apple">Apple</option>
|
|
22
|
+
<option value="banana">Banana</option>
|
|
23
|
+
<option value="cherry">Cherry</option>
|
|
24
|
+
</select-ui>
|
|
25
|
+
</field-ui>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## grouped options
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
<field-ui label="Location">
|
|
32
|
+
<select-ui placeholder="Choose a city">
|
|
33
|
+
<optgroup label="North America">
|
|
34
|
+
<option value="nyc">New York</option>
|
|
35
|
+
<option value="sf">San Francisco</option>
|
|
36
|
+
<option value="toronto">Toronto</option>
|
|
37
|
+
</optgroup>
|
|
38
|
+
<optgroup label="Europe">
|
|
39
|
+
<option value="london">London</option>
|
|
40
|
+
<option value="paris">Paris</option>
|
|
41
|
+
<option value="berlin">Berlin</option>
|
|
42
|
+
</optgroup>
|
|
43
|
+
<optgroup label="Asia">
|
|
44
|
+
<option value="tokyo">Tokyo</option>
|
|
45
|
+
<option value="singapore">Singapore</option>
|
|
46
|
+
</optgroup>
|
|
47
|
+
</select-ui>
|
|
48
|
+
</field-ui>
|
|
49
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# skeleton — Examples
|
|
2
|
+
|
|
3
|
+
## width / height
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<skeleton-ui width="100px" height="1em"></skeleton-ui>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## radius
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<skeleton-ui width="120px" height="2em" radius="none"></skeleton-ui>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## static
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<skeleton-ui width="150px" height="1.5em"></skeleton-ui>
|
|
19
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# slider — Examples
|
|
2
|
+
|
|
3
|
+
## Sizes
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<slider-ui size="lg" value="60"></slider-ui>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## value (default)
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<slider-ui value="50"></slider-ui>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## label + value readout
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<field-ui label="Volume">
|
|
19
|
+
<slider-ui value="75"></slider-ui>
|
|
20
|
+
</field-ui>
|
|
21
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# stat — Examples
|
|
2
|
+
|
|
3
|
+
## Basic
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<stat-ui value="1,234" label="Total Users"></stat-ui>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## value
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<stat-ui value="1,234" label="Users"></stat-ui>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## label
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<stat-ui value="847" label="Active Users"></stat-ui>
|
|
19
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# step-progress — Examples
|
|
2
|
+
|
|
3
|
+
## value
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<step-progress-ui value="0" total="10" caption="Not started"></step-progress-ui>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## total
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<step-progress-ui value="3" total="3" caption="Short flow"></step-progress-ui>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## caption
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<step-progress-ui value="2" total="5"></step-progress-ui>
|
|
19
|
+
```
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# stepper — Examples
|
|
2
|
+
|
|
3
|
+
## Horizontal (default)
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<stepper-ui step="2">
|
|
7
|
+
<stepper-item-ui text="Account"></stepper-item-ui>
|
|
8
|
+
<stepper-item-ui text="Details"></stepper-item-ui>
|
|
9
|
+
<stepper-item-ui text="Review"></stepper-item-ui>
|
|
10
|
+
<stepper-item-ui text="Confirm"></stepper-item-ui>
|
|
11
|
+
</stepper-ui>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Vertical
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<stepper-ui orientation="vertical" step="1">
|
|
18
|
+
<stepper-item-ui text="Select plan" description="Choose your subscription"></stepper-item-ui>
|
|
19
|
+
<stepper-item-ui text="Payment" description="Enter payment details"></stepper-item-ui>
|
|
20
|
+
<stepper-item-ui text="Confirmation" description="Review and submit"></stepper-item-ui>
|
|
21
|
+
</stepper-ui>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Interactive
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<stepper-ui id="stepper-interactive" step="1">
|
|
28
|
+
<stepper-item-ui text="Step 1"></stepper-item-ui>
|
|
29
|
+
<stepper-item-ui text="Step 2"></stepper-item-ui>
|
|
30
|
+
<stepper-item-ui text="Step 3"></stepper-item-ui>
|
|
31
|
+
<stepper-item-ui text="Step 4"></stepper-item-ui>
|
|
32
|
+
</stepper-ui>
|
|
33
|
+
<div style="display:flex; gap:var(--a-space-2); margin-top:var(--a-space-3);">
|
|
34
|
+
<button-ui id="stepper-prev" text="Previous" variant="outline"></button-ui>
|
|
35
|
+
<button-ui id="stepper-next" text="Next" variant="primary"></button-ui>
|
|
36
|
+
</div>
|
|
37
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# stream — Examples
|
|
2
|
+
|
|
3
|
+
## basic
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<stream-ui>This is static content inside a stream element. Assign an AsyncIterable to the .tokens property to begin streaming.</stream-ui>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## hide-cursor
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<stream-ui streaming>Streaming with cursor...</stream-ui>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## pace
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<stream-ui>Pace is set programmatically when assigning .tokens. A value of 0 renders tokens immediately; higher values create a typewriter effect.</stream-ui>
|
|
19
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# swatch — Examples
|
|
2
|
+
|
|
3
|
+
## shapes
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<swatch-ui shape="dot" color="var(--a-data-0)" label="Revenue"></swatch-ui>
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## sizes
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<row-ui gap="3" align="center">
|
|
13
|
+
<swatch-ui shape="dot" size="sm" color="var(--a-data-0)" label="sm"></swatch-ui>
|
|
14
|
+
<swatch-ui shape="dot" size="md" color="var(--a-data-0)" label="md"></swatch-ui>
|
|
15
|
+
<swatch-ui shape="dot" size="lg" color="var(--a-data-0)" label="lg"></swatch-ui>
|
|
16
|
+
</row-ui>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## composition — chart-legend-ui
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<chart-legend-ui shape="dot" position="bottom" id="demo-legend-dot"></chart-legend-ui>
|
|
23
|
+
```
|
|
@@ -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
|
+
```
|