loseta 0.8.0 → 0.10.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/package.json +1 -1
- package/registry/components/attachment.css +84 -0
- package/registry/components/bubble.css +92 -0
- package/registry/components/calendar.css +57 -0
- package/registry/components/carousel.css +95 -0
- package/registry/components/chart.css +65 -0
- package/registry/components/marker.css +47 -0
- package/registry/components/message-scroller.css +56 -0
- package/registry/components/message.css +61 -0
- package/registry/components/questionnaire.css +92 -0
- package/registry/components/resizable.css +51 -0
- package/registry/components/sidebar.css +39 -0
- package/registry/components/toast.css +47 -0
- package/registry/components/trace.css +78 -0
- package/registry/examples/attachment.html +41 -0
- package/registry/examples/bubble.html +21 -0
- package/registry/examples/calendar.html +60 -0
- package/registry/examples/carousel.html +49 -0
- package/registry/examples/chart.html +39 -0
- package/registry/examples/marker.html +14 -0
- package/registry/examples/message-scroller.html +54 -0
- package/registry/examples/message.html +31 -0
- package/registry/examples/questionnaire.html +66 -0
- package/registry/examples/resizable.html +23 -0
- package/registry/examples/sidebar.html +31 -0
- package/registry/examples/toast.html +17 -0
- package/registry/examples/trace.html +42 -0
- package/registry/registry.json +418 -1
- package/registry/styles/nova/attachment.css +176 -0
- package/registry/styles/nova/bubble.css +147 -0
- package/registry/styles/nova/calendar.css +78 -0
- package/registry/styles/nova/carousel.css +55 -0
- package/registry/styles/nova/chart.css +42 -0
- package/registry/styles/nova/marker.css +35 -0
- package/registry/styles/nova/message-scroller.css +47 -0
- package/registry/styles/nova/message.css +39 -0
- package/registry/styles/nova/questionnaire.css +141 -0
- package/registry/styles/nova/resizable.css +33 -0
- package/registry/styles/nova/sidebar.css +98 -0
- package/registry/styles/nova/toast.css +62 -0
- package/registry/styles/nova/trace.css +85 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* Sidebar */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.sidebar {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
width: var(--sidebar-width, 16rem);
|
|
7
|
+
height: 100%;
|
|
8
|
+
|
|
9
|
+
> header,
|
|
10
|
+
> footer {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
> section {
|
|
16
|
+
flex: 1 1 auto;
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
nav ul {
|
|
21
|
+
margin: 0;
|
|
22
|
+
list-style-type: none;
|
|
23
|
+
padding: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
nav a {
|
|
27
|
+
display: flex;
|
|
28
|
+
width: 100%;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: 0.5rem;
|
|
31
|
+
outline-style: none;
|
|
32
|
+
|
|
33
|
+
@media (forced-colors: active) {
|
|
34
|
+
outline: 2px solid transparent;
|
|
35
|
+
outline-offset: 2px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* Toast */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.toaster {
|
|
4
|
+
position: fixed;
|
|
5
|
+
inset-block-end: 0;
|
|
6
|
+
inset-inline-end: 0;
|
|
7
|
+
z-index: 50;
|
|
8
|
+
display: flex;
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
flex-direction: column-reverse;
|
|
11
|
+
gap: 0.5rem;
|
|
12
|
+
padding: 1rem;
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.toast {
|
|
17
|
+
display: flex;
|
|
18
|
+
width: 22rem;
|
|
19
|
+
max-width: calc(100vw - 2rem);
|
|
20
|
+
align-items: flex-start;
|
|
21
|
+
gap: 0.75rem;
|
|
22
|
+
pointer-events: auto;
|
|
23
|
+
|
|
24
|
+
> section {
|
|
25
|
+
flex: 1 1 auto;
|
|
26
|
+
min-width: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-slot='title'],
|
|
30
|
+
[data-slot='description'] {
|
|
31
|
+
display: block;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[data-slot='close'] {
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
outline-style: none;
|
|
40
|
+
|
|
41
|
+
@media (forced-colors: active) {
|
|
42
|
+
outline: 2px solid transparent;
|
|
43
|
+
outline-offset: 2px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* Trace */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.trace {
|
|
4
|
+
display: block;
|
|
5
|
+
|
|
6
|
+
> summary {
|
|
7
|
+
display: flex;
|
|
8
|
+
width: 100%;
|
|
9
|
+
min-width: 0;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 0.5rem;
|
|
12
|
+
list-style-type: none;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
outline-style: none;
|
|
15
|
+
|
|
16
|
+
&::-webkit-details-marker {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&::after {
|
|
21
|
+
width: 0.375rem;
|
|
22
|
+
height: 0.375rem;
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
border-inline-end-style: solid;
|
|
25
|
+
border-inline-end-width: 1px;
|
|
26
|
+
border-block-end-style: solid;
|
|
27
|
+
border-block-end-width: 1px;
|
|
28
|
+
content: '';
|
|
29
|
+
rotate: -45deg;
|
|
30
|
+
transition-property: rotate;
|
|
31
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
32
|
+
transition-duration: 150ms;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media (forced-colors: active) {
|
|
36
|
+
outline: 2px solid transparent;
|
|
37
|
+
outline-offset: 2px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&[open] > summary::after {
|
|
42
|
+
rotate: 45deg;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
> summary > [data-slot='icon'] {
|
|
46
|
+
display: inline-flex;
|
|
47
|
+
width: 1rem;
|
|
48
|
+
height: 1rem;
|
|
49
|
+
flex-shrink: 0;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
> summary > [data-slot='title'] {
|
|
55
|
+
min-width: 0;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
> summary > [data-slot='status'] {
|
|
62
|
+
flex-shrink: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
> [data-slot='body'] {
|
|
66
|
+
display: flex;
|
|
67
|
+
min-width: 0;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
gap: 0.5rem;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-slot='source'] {
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
gap: 0.25rem;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<!-- States -->
|
|
2
|
+
<div style="display: flex; flex-direction: column; gap: 0.75rem; max-width: 24rem">
|
|
3
|
+
<div class="attachment">
|
|
4
|
+
<div data-slot="media"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/></svg></div>
|
|
5
|
+
<div data-slot="content">
|
|
6
|
+
<span data-slot="title">report.pdf</span>
|
|
7
|
+
<span data-slot="description">PDF · 2.4 MB</span>
|
|
8
|
+
</div>
|
|
9
|
+
<div data-slot="actions">
|
|
10
|
+
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" aria-label="Remove report.pdf">×</button>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="attachment" aria-busy="true">
|
|
14
|
+
<div data-slot="media"><span class="spinner" data-size="sm"></span></div>
|
|
15
|
+
<div data-slot="content">
|
|
16
|
+
<span data-slot="title">sales-dashboard.csv</span>
|
|
17
|
+
<span data-slot="description">Uploading · 64%</span>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="attachment">
|
|
21
|
+
<div data-slot="media"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/></svg></div>
|
|
22
|
+
<div data-slot="content">
|
|
23
|
+
<span data-slot="title">workspace.zip</span>
|
|
24
|
+
<span data-slot="description" role="alert">Upload failed. The file is larger than 10 MB.</span>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<!-- Media -->
|
|
30
|
+
<div class="attachment" data-orientation="vertical">
|
|
31
|
+
<div data-slot="media">
|
|
32
|
+
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%2394a3b8'/%3E%3Cstop offset='1' stop-color='%23e2e8f0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='90' fill='url(%23g)'/%3E%3Ctext x='80' y='49' text-anchor='middle' font-family='sans-serif' font-size='12' fill='%23334155'%3E16:9%3C/text%3E%3C/svg%3E" alt="Workspace preview">
|
|
33
|
+
</div>
|
|
34
|
+
<div data-slot="content">
|
|
35
|
+
<span data-slot="title">cover.png</span>
|
|
36
|
+
<span data-slot="description">PNG · 840 KB</span>
|
|
37
|
+
</div>
|
|
38
|
+
<div data-slot="actions">
|
|
39
|
+
<button type="button" class="btn" data-variant="secondary" data-size="icon-xs" aria-label="Remove cover.png">×</button>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- Variants -->
|
|
2
|
+
<div style="display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start">
|
|
3
|
+
<div class="bubble"><div data-slot="content">Default</div></div>
|
|
4
|
+
<div class="bubble" data-variant="secondary"><div data-slot="content">Secondary</div></div>
|
|
5
|
+
<div class="bubble" data-variant="muted"><div data-slot="content">Muted</div></div>
|
|
6
|
+
<div class="bubble" data-variant="tinted"><div data-slot="content">Tinted</div></div>
|
|
7
|
+
<div class="bubble" data-variant="outline"><div data-slot="content">Outline</div></div>
|
|
8
|
+
<div class="bubble" data-variant="ghost"><div data-slot="content">Ghost content</div></div>
|
|
9
|
+
<div class="bubble" data-variant="destructive"><div data-slot="content">Something went wrong.</div></div>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<!-- Reactions -->
|
|
13
|
+
<div style="display: flex; flex-direction: column; gap: 2rem; padding-block: 1rem; max-width: 22rem">
|
|
14
|
+
<div class="bubble" data-variant="muted" data-align="start">
|
|
15
|
+
<div data-slot="content">The install failure came from an out-of-date lockfile.</div>
|
|
16
|
+
<div data-slot="reactions">
|
|
17
|
+
<button type="button" data-slot="reaction" aria-pressed="true" aria-label="Helpful, 2 reactions">👍 <span>2</span></button>
|
|
18
|
+
<button type="button" data-slot="reaction" aria-pressed="false" aria-label="Celebrate, 0 reactions">🎉</button>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<div class="calendar">
|
|
3
|
+
<header>
|
|
4
|
+
<button type="button" aria-label="Previous month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg></button>
|
|
5
|
+
<span data-slot="title" aria-live="polite">February 2026</span>
|
|
6
|
+
<button type="button" aria-label="Next month"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></button>
|
|
7
|
+
</header>
|
|
8
|
+
<table role="grid">
|
|
9
|
+
<caption class="sr-only">February 2026</caption>
|
|
10
|
+
<thead>
|
|
11
|
+
<tr>
|
|
12
|
+
<th scope="col"><abbr title="Sunday">Su</abbr></th>
|
|
13
|
+
<th scope="col"><abbr title="Monday">Mo</abbr></th>
|
|
14
|
+
<th scope="col"><abbr title="Tuesday">Tu</abbr></th>
|
|
15
|
+
<th scope="col"><abbr title="Wednesday">We</abbr></th>
|
|
16
|
+
<th scope="col"><abbr title="Thursday">Th</abbr></th>
|
|
17
|
+
<th scope="col"><abbr title="Friday">Fr</abbr></th>
|
|
18
|
+
<th scope="col"><abbr title="Saturday">Sa</abbr></th>
|
|
19
|
+
</tr>
|
|
20
|
+
</thead>
|
|
21
|
+
<tbody>
|
|
22
|
+
<tr>
|
|
23
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 1, 2026">1</button></td>
|
|
24
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 2, 2026">2</button></td>
|
|
25
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 3, 2026">3</button></td>
|
|
26
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 4, 2026">4</button></td>
|
|
27
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 5, 2026">5</button></td>
|
|
28
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 6, 2026">6</button></td>
|
|
29
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 7, 2026">7</button></td>
|
|
30
|
+
</tr>
|
|
31
|
+
<tr>
|
|
32
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 8, 2026">8</button></td>
|
|
33
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 9, 2026">9</button></td>
|
|
34
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 10, 2026">10</button></td>
|
|
35
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 11, 2026">11</button></td>
|
|
36
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 12, 2026">12</button></td>
|
|
37
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 13, 2026">13</button></td>
|
|
38
|
+
<td role="gridcell" aria-selected="true"><button type="button" aria-label="February 14, 2026">14</button></td>
|
|
39
|
+
</tr>
|
|
40
|
+
<tr>
|
|
41
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 15, 2026">15</button></td>
|
|
42
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 16, 2026">16</button></td>
|
|
43
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 17, 2026">17</button></td>
|
|
44
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 18, 2026">18</button></td>
|
|
45
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 19, 2026">19</button></td>
|
|
46
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 20, 2026">20</button></td>
|
|
47
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 21, 2026">21</button></td>
|
|
48
|
+
</tr>
|
|
49
|
+
<tr>
|
|
50
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 22, 2026">22</button></td>
|
|
51
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 23, 2026">23</button></td>
|
|
52
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 24, 2026">24</button></td>
|
|
53
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 25, 2026">25</button></td>
|
|
54
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 26, 2026">26</button></td>
|
|
55
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 27, 2026">27</button></td>
|
|
56
|
+
<td role="gridcell" aria-selected="false"><button type="button" aria-label="February 28, 2026">28</button></td>
|
|
57
|
+
</tr>
|
|
58
|
+
</tbody>
|
|
59
|
+
</table>
|
|
60
|
+
</div>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<section class="carousel" data-orientation="horizontal" aria-roledescription="carousel" aria-label="Featured components">
|
|
3
|
+
<div class="carousel-viewport" tabindex="0">
|
|
4
|
+
<div class="carousel-track">
|
|
5
|
+
<div class="carousel-item" role="group" aria-roledescription="slide" aria-label="1 of 3">
|
|
6
|
+
<div class="card">
|
|
7
|
+
<header>
|
|
8
|
+
<h3 data-slot="title">Accordion</h3>
|
|
9
|
+
<p data-slot="description">Disclosure patterns</p>
|
|
10
|
+
</header>
|
|
11
|
+
<section>
|
|
12
|
+
<p>Native details and summary with exclusive groups.</p>
|
|
13
|
+
</section>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="carousel-item" role="group" aria-roledescription="slide" aria-label="2 of 3">
|
|
17
|
+
<div class="card">
|
|
18
|
+
<header>
|
|
19
|
+
<h3 data-slot="title">Avatar</h3>
|
|
20
|
+
<p data-slot="description">Identity at a glance</p>
|
|
21
|
+
</header>
|
|
22
|
+
<section>
|
|
23
|
+
<p>Images, fallback initials, badges and overlapping groups.</p>
|
|
24
|
+
</section>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="carousel-item" role="group" aria-roledescription="slide" aria-label="3 of 3">
|
|
28
|
+
<div class="card">
|
|
29
|
+
<header>
|
|
30
|
+
<h3 data-slot="title">Breadcrumb</h3>
|
|
31
|
+
<p data-slot="description">Navigation context</p>
|
|
32
|
+
</header>
|
|
33
|
+
<section>
|
|
34
|
+
<p>Ordered links with a current page and collapsed paths.</p>
|
|
35
|
+
</section>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="carousel-controls">
|
|
41
|
+
<button type="button" class="carousel-button" aria-label="Previous slide"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg></button>
|
|
42
|
+
<div class="carousel-indicators" role="group" aria-label="Slides">
|
|
43
|
+
<button type="button" class="carousel-indicator" aria-label="Go to slide 1" aria-current="true"></button>
|
|
44
|
+
<button type="button" class="carousel-indicator" aria-label="Go to slide 2"></button>
|
|
45
|
+
<button type="button" class="carousel-indicator" aria-label="Go to slide 3"></button>
|
|
46
|
+
</div>
|
|
47
|
+
<button type="button" class="carousel-button" aria-label="Next slide"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></button>
|
|
48
|
+
</div>
|
|
49
|
+
</section>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<div class="card">
|
|
3
|
+
<header>
|
|
4
|
+
<h3 data-slot="title">Monthly revenue</h3>
|
|
5
|
+
<p data-slot="description">January to June 2026</p>
|
|
6
|
+
</header>
|
|
7
|
+
<section>
|
|
8
|
+
<div class="chart">
|
|
9
|
+
<div data-slot="plot">
|
|
10
|
+
<svg viewBox="0 0 320 160" role="img" aria-label="Revenue and costs by month">
|
|
11
|
+
<g style="fill: var(--chart-1)">
|
|
12
|
+
<rect x="20" y="80" width="16" height="60" rx="4" />
|
|
13
|
+
<rect x="68" y="50" width="16" height="90" rx="4" />
|
|
14
|
+
<rect x="116" y="70" width="16" height="70" rx="4" />
|
|
15
|
+
<rect x="164" y="30" width="16" height="110" rx="4" />
|
|
16
|
+
<rect x="212" y="60" width="16" height="80" rx="4" />
|
|
17
|
+
<rect x="260" y="40" width="16" height="100" rx="4" />
|
|
18
|
+
</g>
|
|
19
|
+
<g style="fill: var(--chart-2)">
|
|
20
|
+
<rect x="40" y="110" width="16" height="30" rx="4" />
|
|
21
|
+
<rect x="88" y="100" width="16" height="40" rx="4" />
|
|
22
|
+
<rect x="136" y="105" width="16" height="35" rx="4" />
|
|
23
|
+
<rect x="184" y="90" width="16" height="50" rx="4" />
|
|
24
|
+
<rect x="232" y="95" width="16" height="45" rx="4" />
|
|
25
|
+
<rect x="280" y="85" width="16" height="55" rx="4" />
|
|
26
|
+
</g>
|
|
27
|
+
</svg>
|
|
28
|
+
<div data-slot="tooltip" style="inset-block-start: 2.5rem; inset-inline-start: 38%">
|
|
29
|
+
<span data-slot="title">March</span>
|
|
30
|
+
<span data-slot="description">$12,400 revenue</span>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div data-slot="legend">
|
|
34
|
+
<span data-slot="legend-item" data-series="1"><span data-slot="swatch"></span>Revenue</span>
|
|
35
|
+
<span data-slot="legend-item" data-series="2"><span data-slot="swatch"></span>Costs</span>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</section>
|
|
39
|
+
</div>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Variants -->
|
|
2
|
+
<div style="display: flex; flex-direction: column; gap: 1rem">
|
|
3
|
+
<div class="marker">
|
|
4
|
+
<span data-slot="icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg></span>
|
|
5
|
+
<span data-slot="content">Assistant is thinking…</span>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="marker" data-variant="separator">
|
|
8
|
+
<span data-slot="content">Today</span>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="marker" data-variant="border">
|
|
11
|
+
<span data-slot="icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/></svg></span>
|
|
12
|
+
<span data-slot="content">Searched 3 sources · <a href="#">View sources</a></span>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<div class="message-scroller" style="height: 22rem">
|
|
3
|
+
<div class="message-scroller-viewport" tabindex="0" role="log" aria-label="Conversation">
|
|
4
|
+
<div data-slot="content">
|
|
5
|
+
<div class="marker" data-variant="separator">
|
|
6
|
+
<span data-slot="content">Today</span>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="message" data-align="start">
|
|
9
|
+
<div data-slot="avatar"><span class="avatar" data-size="sm"><span data-slot="fallback">CN</span></span></div>
|
|
10
|
+
<div data-slot="content">
|
|
11
|
+
<div data-slot="header">shadcn</div>
|
|
12
|
+
<div class="bubble" data-variant="muted"><div data-slot="content">I checked the registry build.</div></div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="message" data-align="end">
|
|
16
|
+
<div data-slot="avatar"><span class="avatar" data-size="sm"><span data-slot="fallback">YO</span></span></div>
|
|
17
|
+
<div data-slot="content">
|
|
18
|
+
<div class="bubble"><div data-slot="content">Did the docs bundle pick up the new files?</div></div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="message" data-align="start">
|
|
22
|
+
<div data-slot="avatar"><span class="avatar" data-size="sm"><span data-slot="fallback">CN</span></span></div>
|
|
23
|
+
<div data-slot="content">
|
|
24
|
+
<div class="bubble" data-variant="muted"><div data-slot="content">Yes. The experimental bundle imports the base and Nova files.</div></div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="message" data-align="end">
|
|
28
|
+
<div data-slot="avatar"><span class="avatar" data-size="sm"><span data-slot="fallback">YO</span></span></div>
|
|
29
|
+
<div data-slot="content">
|
|
30
|
+
<div class="bubble"><div data-slot="content">Great. Run the registry validator before the browser suite.</div></div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="message" data-align="start">
|
|
34
|
+
<div data-slot="avatar"><span class="avatar" data-size="sm"><span data-slot="fallback">CN</span></span></div>
|
|
35
|
+
<div data-slot="content">
|
|
36
|
+
<div class="bubble" data-variant="muted"><div data-slot="content">Both are green. The chat components are ready for review.</div></div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="message" data-align="end">
|
|
40
|
+
<div data-slot="avatar"><span class="avatar" data-size="sm"><span data-slot="fallback">YO</span></span></div>
|
|
41
|
+
<div data-slot="content">
|
|
42
|
+
<div class="bubble"><div data-slot="content">Then this scroller needs enough history to prove the jump button.</div></div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
<div class="message" data-align="start">
|
|
46
|
+
<div data-slot="avatar"><span class="avatar" data-size="sm"><span data-slot="fallback">CN</span></span></div>
|
|
47
|
+
<div data-slot="content">
|
|
48
|
+
<div class="bubble" data-variant="muted"><div data-slot="content">Scroll up and the jump button appears; it returns you here.</div></div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
<button type="button" data-slot="jump" aria-label="Jump to latest"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14"/><path d="m19 12-7 7-7-7"/></svg></button>
|
|
54
|
+
</div>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!-- Conversation -->
|
|
2
|
+
<div class="message-group" role="log" aria-label="Conversation">
|
|
3
|
+
<article class="message" data-align="start">
|
|
4
|
+
<div data-slot="avatar">
|
|
5
|
+
<span class="avatar" data-size="sm">
|
|
6
|
+
<span data-slot="fallback">CN</span>
|
|
7
|
+
</span>
|
|
8
|
+
</div>
|
|
9
|
+
<div data-slot="content">
|
|
10
|
+
<div data-slot="header">shadcn</div>
|
|
11
|
+
<div class="bubble" data-variant="muted">
|
|
12
|
+
<div data-slot="content">How can I help you today?</div>
|
|
13
|
+
</div>
|
|
14
|
+
<div data-slot="footer">10:42 AM</div>
|
|
15
|
+
</div>
|
|
16
|
+
</article>
|
|
17
|
+
<article class="message" data-align="end">
|
|
18
|
+
<div data-slot="avatar">
|
|
19
|
+
<span class="avatar" data-size="sm">
|
|
20
|
+
<span data-slot="fallback">YO</span>
|
|
21
|
+
</span>
|
|
22
|
+
</div>
|
|
23
|
+
<div data-slot="content">
|
|
24
|
+
<div data-slot="header">You</div>
|
|
25
|
+
<div class="bubble">
|
|
26
|
+
<div data-slot="content">Add a calendar and a date picker to the docs.</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div data-slot="footer">Delivered</div>
|
|
29
|
+
</div>
|
|
30
|
+
</article>
|
|
31
|
+
</div>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<!-- Steps -->
|
|
2
|
+
<div class="questionnaire">
|
|
3
|
+
<div data-slot="progress">
|
|
4
|
+
<span data-slot="progress-label" id="questionnaire-progress" aria-live="polite">Question 1 of 2</span>
|
|
5
|
+
<progress aria-labelledby="questionnaire-progress" value="1" max="2">1 of 2</progress>
|
|
6
|
+
</div>
|
|
7
|
+
<fieldset data-slot="item" aria-current="step">
|
|
8
|
+
<legend>What should the agent build next?</legend>
|
|
9
|
+
<p data-slot="description">Choose a direction or describe another task.</p>
|
|
10
|
+
<div data-slot="choices">
|
|
11
|
+
<label class="questionnaire-choice">
|
|
12
|
+
<input type="radio" name="direction" value="timeline" checked>
|
|
13
|
+
<span data-slot="text">
|
|
14
|
+
<span data-slot="label">Tool call timeline</span>
|
|
15
|
+
<span data-slot="description">Show what the agent ran and what came back.</span>
|
|
16
|
+
</span>
|
|
17
|
+
</label>
|
|
18
|
+
<label class="questionnaire-choice">
|
|
19
|
+
<input type="radio" name="direction" value="checkpoints">
|
|
20
|
+
<span data-slot="text">
|
|
21
|
+
<span data-slot="label">Approval checkpoints</span>
|
|
22
|
+
<span data-slot="description">Ask before sensitive or destructive actions.</span>
|
|
23
|
+
</span>
|
|
24
|
+
</label>
|
|
25
|
+
<label class="questionnaire-choice">
|
|
26
|
+
<input type="radio" name="direction" value="handoffs">
|
|
27
|
+
<span data-slot="text">
|
|
28
|
+
<span data-slot="label">Sub-agent handoffs</span>
|
|
29
|
+
<span data-slot="description">Make delegated work and results easier to follow.</span>
|
|
30
|
+
</span>
|
|
31
|
+
</label>
|
|
32
|
+
<input type="text" data-slot="input" name="other" aria-label="Another answer" placeholder="Type another answer…">
|
|
33
|
+
</div>
|
|
34
|
+
</fieldset>
|
|
35
|
+
<fieldset data-slot="item" hidden>
|
|
36
|
+
<legend>What context should the agent inspect?</legend>
|
|
37
|
+
<p data-slot="description">Select every source that may affect the implementation.</p>
|
|
38
|
+
<div data-slot="choices">
|
|
39
|
+
<label class="questionnaire-choice">
|
|
40
|
+
<input type="checkbox" name="context" value="files">
|
|
41
|
+
<span data-slot="text">
|
|
42
|
+
<span data-slot="label">Relevant source files</span>
|
|
43
|
+
<span data-slot="description">Components, styles and tests touched by the change.</span>
|
|
44
|
+
</span>
|
|
45
|
+
</label>
|
|
46
|
+
<label class="questionnaire-choice">
|
|
47
|
+
<input type="checkbox" name="context" value="tests" checked>
|
|
48
|
+
<span data-slot="text">
|
|
49
|
+
<span data-slot="label">Existing tests</span>
|
|
50
|
+
<span data-slot="description">Unit and browser coverage for the affected area.</span>
|
|
51
|
+
</span>
|
|
52
|
+
</label>
|
|
53
|
+
<label class="questionnaire-choice">
|
|
54
|
+
<input type="checkbox" name="context" value="history">
|
|
55
|
+
<span data-slot="text">
|
|
56
|
+
<span data-slot="label">Recent commit history</span>
|
|
57
|
+
<span data-slot="description">Changes that explain the current behavior.</span>
|
|
58
|
+
</span>
|
|
59
|
+
</label>
|
|
60
|
+
</div>
|
|
61
|
+
</fieldset>
|
|
62
|
+
<div data-slot="actions">
|
|
63
|
+
<button type="button" class="btn" data-variant="outline" disabled>Previous</button>
|
|
64
|
+
<button type="button" class="btn">Next</button>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!-- Horizontal -->
|
|
2
|
+
<div class="resizable" data-orientation="horizontal" style="height: 12rem">
|
|
3
|
+
<div class="resizable-panel">
|
|
4
|
+
<p><strong>Panel one</strong></p>
|
|
5
|
+
<p>Drag the handle or use the arrow keys in your application.</p>
|
|
6
|
+
</div>
|
|
7
|
+
<div data-slot="handle" role="separator" aria-orientation="vertical" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" tabindex="0"></div>
|
|
8
|
+
<div class="resizable-panel" style="--panel-size: 2">
|
|
9
|
+
<p><strong>Panel two</strong></p>
|
|
10
|
+
<p>Set --panel-size to change the initial flex ratio.</p>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<!-- Vertical -->
|
|
15
|
+
<div class="resizable" data-orientation="vertical" style="height: 14rem">
|
|
16
|
+
<div class="resizable-panel">
|
|
17
|
+
<p><strong>Top panel</strong></p>
|
|
18
|
+
</div>
|
|
19
|
+
<div data-slot="handle" role="separator" aria-orientation="horizontal" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" tabindex="0"></div>
|
|
20
|
+
<div class="resizable-panel">
|
|
21
|
+
<p><strong>Bottom panel</strong></p>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<aside class="sidebar" aria-label="Sidebar" style="height: 22rem">
|
|
3
|
+
<header>
|
|
4
|
+
<span data-slot="brand">loseta</span>
|
|
5
|
+
</header>
|
|
6
|
+
<section>
|
|
7
|
+
<nav aria-label="Documentation">
|
|
8
|
+
<ul>
|
|
9
|
+
<li><a href="#" aria-current="page">Overview</a></li>
|
|
10
|
+
<li><a href="#">Installation</a></li>
|
|
11
|
+
<li>
|
|
12
|
+
<details class="collapsible" open>
|
|
13
|
+
<summary>
|
|
14
|
+
Components
|
|
15
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
|
|
16
|
+
</summary>
|
|
17
|
+
<ul>
|
|
18
|
+
<li><a href="#">Button</a></li>
|
|
19
|
+
<li><a href="#">Card</a></li>
|
|
20
|
+
<li><a href="#">Field</a></li>
|
|
21
|
+
</ul>
|
|
22
|
+
</details>
|
|
23
|
+
</li>
|
|
24
|
+
<li><a href="#">Styles</a></li>
|
|
25
|
+
</ul>
|
|
26
|
+
</nav>
|
|
27
|
+
</section>
|
|
28
|
+
<footer>
|
|
29
|
+
<span>v0.10.0</span>
|
|
30
|
+
</footer>
|
|
31
|
+
</aside>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<div style="display: flex; flex-direction: column; gap: 0.5rem; max-width: 22rem">
|
|
3
|
+
<div class="toast" role="status">
|
|
4
|
+
<section>
|
|
5
|
+
<p data-slot="title">Saved</p>
|
|
6
|
+
<p data-slot="description">Your changes have been saved.</p>
|
|
7
|
+
</section>
|
|
8
|
+
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" data-slot="close" aria-label="Dismiss">×</button>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="toast" data-variant="destructive" role="alert">
|
|
11
|
+
<section>
|
|
12
|
+
<p data-slot="title">Upload failed</p>
|
|
13
|
+
<p data-slot="description">The file is larger than 10 MB.</p>
|
|
14
|
+
</section>
|
|
15
|
+
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" data-slot="close" aria-label="Dismiss">×</button>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|