loseta 0.8.0 → 0.9.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/calendar.css +57 -0
- package/registry/components/carousel.css +95 -0
- package/registry/components/chart.css +65 -0
- package/registry/components/resizable.css +51 -0
- package/registry/components/sidebar.css +39 -0
- package/registry/components/toast.css +47 -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/resizable.html +23 -0
- package/registry/examples/sidebar.html +31 -0
- package/registry/examples/toast.html +17 -0
- package/registry/registry.json +192 -1
- 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/resizable.css +33 -0
- package/registry/styles/nova/sidebar.css +98 -0
- package/registry/styles/nova/toast.css +62 -0
package/package.json
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* Calendar */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.calendar {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
|
|
7
|
+
> header {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
> header > button {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
outline-style: none;
|
|
18
|
+
|
|
19
|
+
@media (forced-colors: active) {
|
|
20
|
+
outline: 2px solid transparent;
|
|
21
|
+
outline-offset: 2px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
table {
|
|
26
|
+
width: 100%;
|
|
27
|
+
table-layout: fixed;
|
|
28
|
+
border-collapse: collapse;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
th {
|
|
32
|
+
font-weight: 400;
|
|
33
|
+
text-align: center;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
td {
|
|
37
|
+
padding: 0;
|
|
38
|
+
text-align: center;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
td > button {
|
|
42
|
+
display: inline-flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
outline-style: none;
|
|
46
|
+
|
|
47
|
+
@media (forced-colors: active) {
|
|
48
|
+
outline: 2px solid transparent;
|
|
49
|
+
outline-offset: 2px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[aria-disabled='true'] {
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/* Carousel */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.carousel {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 0.75rem;
|
|
8
|
+
|
|
9
|
+
> .carousel-viewport {
|
|
10
|
+
overflow-x: auto;
|
|
11
|
+
overflow-y: hidden;
|
|
12
|
+
scroll-snap-type: x mandatory;
|
|
13
|
+
scrollbar-width: none;
|
|
14
|
+
|
|
15
|
+
&::-webkit-scrollbar {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
> .carousel-viewport > .carousel-track {
|
|
21
|
+
display: flex;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.carousel-item {
|
|
25
|
+
flex: 0 0 100%;
|
|
26
|
+
min-width: 0;
|
|
27
|
+
scroll-snap-align: start;
|
|
28
|
+
scroll-snap-stop: always;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&[data-orientation='vertical'] {
|
|
32
|
+
> .carousel-viewport {
|
|
33
|
+
overflow-x: hidden;
|
|
34
|
+
overflow-y: auto;
|
|
35
|
+
scroll-snap-type: y mandatory;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.carousel-track {
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.carousel-item {
|
|
43
|
+
flex-basis: 100%;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.carousel-controls {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
gap: 0.5rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.carousel-button {
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
outline-style: none;
|
|
59
|
+
|
|
60
|
+
@media (forced-colors: active) {
|
|
61
|
+
outline: 2px solid transparent;
|
|
62
|
+
outline-offset: 2px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.carousel-indicators {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
gap: 0.25rem;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.carousel-indicator {
|
|
73
|
+
position: relative;
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
width: 1.5rem;
|
|
76
|
+
height: 1.5rem;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
outline-style: none;
|
|
80
|
+
|
|
81
|
+
@media (forced-colors: active) {
|
|
82
|
+
outline: 2px solid transparent;
|
|
83
|
+
outline-offset: 2px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&::before {
|
|
87
|
+
width: 0.5rem;
|
|
88
|
+
height: 0.5rem;
|
|
89
|
+
border-radius: var(--radius-full);
|
|
90
|
+
background-color: currentColor;
|
|
91
|
+
content: '';
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* Chart */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.chart {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 0.75rem;
|
|
8
|
+
|
|
9
|
+
> [data-slot='plot'] {
|
|
10
|
+
position: relative;
|
|
11
|
+
width: 100%;
|
|
12
|
+
|
|
13
|
+
> :is(svg, canvas) {
|
|
14
|
+
display: block;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
> [data-slot='legend'] {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-wrap: wrap;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 0.75rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[data-slot='legend-item'] {
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: 0.375rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-slot='swatch'] {
|
|
34
|
+
width: 0.5rem;
|
|
35
|
+
height: 0.5rem;
|
|
36
|
+
border-radius: var(--radius-full);
|
|
37
|
+
background-color: var(--chart-color, var(--primary));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
[data-slot='tooltip'] {
|
|
41
|
+
position: absolute;
|
|
42
|
+
z-index: 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[data-series='1'] {
|
|
46
|
+
--chart-color: var(--chart-1);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
[data-series='2'] {
|
|
50
|
+
--chart-color: var(--chart-2);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-series='3'] {
|
|
54
|
+
--chart-color: var(--chart-3);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-series='4'] {
|
|
58
|
+
--chart-color: var(--chart-4);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[data-series='5'] {
|
|
62
|
+
--chart-color: var(--chart-5);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* Resizable */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.resizable {
|
|
4
|
+
display: flex;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
|
|
9
|
+
&[data-orientation='vertical'] {
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
> .resizable-panel {
|
|
14
|
+
flex: var(--panel-size, 1) 1 0;
|
|
15
|
+
min-width: 0;
|
|
16
|
+
min-height: 0;
|
|
17
|
+
overflow: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
> [data-slot='handle'] {
|
|
21
|
+
position: relative;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex: 0 0 0.5rem;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
touch-action: none;
|
|
27
|
+
cursor: col-resize;
|
|
28
|
+
outline-style: none;
|
|
29
|
+
|
|
30
|
+
@media (forced-colors: active) {
|
|
31
|
+
outline: 2px solid transparent;
|
|
32
|
+
outline-offset: 2px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&::before {
|
|
36
|
+
width: 1px;
|
|
37
|
+
height: 100%;
|
|
38
|
+
content: '';
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&[data-orientation='vertical'] > [data-slot='handle'] {
|
|
43
|
+
cursor: row-resize;
|
|
44
|
+
|
|
45
|
+
&::before {
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 1px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -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,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,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.9.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>
|
package/registry/registry.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./schema.json",
|
|
3
3
|
"name": "loseta",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"styles": [
|
|
6
6
|
{
|
|
7
7
|
"name": "nova",
|
|
@@ -2941,6 +2941,197 @@
|
|
|
2941
2941
|
"examples": [
|
|
2942
2942
|
"examples/command.html"
|
|
2943
2943
|
]
|
|
2944
|
+
},
|
|
2945
|
+
{
|
|
2946
|
+
"name": "calendar",
|
|
2947
|
+
"type": "component",
|
|
2948
|
+
"status": "experimental",
|
|
2949
|
+
"title": "Calendar",
|
|
2950
|
+
"description": "A native month grid for date selection.",
|
|
2951
|
+
"docs": "/docs/components/calendar",
|
|
2952
|
+
"root": [
|
|
2953
|
+
".calendar"
|
|
2954
|
+
],
|
|
2955
|
+
"registryDependencies": [],
|
|
2956
|
+
"optionalDependencies": [],
|
|
2957
|
+
"files": [
|
|
2958
|
+
{
|
|
2959
|
+
"path": "components/calendar.css",
|
|
2960
|
+
"target": "components/calendar.css",
|
|
2961
|
+
"role": "base",
|
|
2962
|
+
"layer": "loseta.components"
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
"path": "styles/nova/calendar.css",
|
|
2966
|
+
"target": "styles/nova/calendar.css",
|
|
2967
|
+
"role": "style",
|
|
2968
|
+
"layer": "loseta.style"
|
|
2969
|
+
}
|
|
2970
|
+
],
|
|
2971
|
+
"examples": [
|
|
2972
|
+
"examples/calendar.html"
|
|
2973
|
+
]
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
"name": "carousel",
|
|
2977
|
+
"type": "component",
|
|
2978
|
+
"status": "experimental",
|
|
2979
|
+
"title": "Carousel",
|
|
2980
|
+
"description": "A scroll-snap carousel with controls and indicators.",
|
|
2981
|
+
"docs": "/docs/components/carousel",
|
|
2982
|
+
"root": [
|
|
2983
|
+
".carousel"
|
|
2984
|
+
],
|
|
2985
|
+
"registryDependencies": [],
|
|
2986
|
+
"optionalDependencies": [
|
|
2987
|
+
"card"
|
|
2988
|
+
],
|
|
2989
|
+
"files": [
|
|
2990
|
+
{
|
|
2991
|
+
"path": "components/carousel.css",
|
|
2992
|
+
"target": "components/carousel.css",
|
|
2993
|
+
"role": "base",
|
|
2994
|
+
"layer": "loseta.components"
|
|
2995
|
+
},
|
|
2996
|
+
{
|
|
2997
|
+
"path": "styles/nova/carousel.css",
|
|
2998
|
+
"target": "styles/nova/carousel.css",
|
|
2999
|
+
"role": "style",
|
|
3000
|
+
"layer": "loseta.style"
|
|
3001
|
+
}
|
|
3002
|
+
],
|
|
3003
|
+
"examples": [
|
|
3004
|
+
"examples/carousel.html"
|
|
3005
|
+
]
|
|
3006
|
+
},
|
|
3007
|
+
{
|
|
3008
|
+
"name": "chart",
|
|
3009
|
+
"type": "component",
|
|
3010
|
+
"status": "experimental",
|
|
3011
|
+
"title": "Chart",
|
|
3012
|
+
"description": "Chart chrome for legends and tooltips with series color tokens.",
|
|
3013
|
+
"docs": "/docs/components/chart",
|
|
3014
|
+
"root": [
|
|
3015
|
+
".chart"
|
|
3016
|
+
],
|
|
3017
|
+
"registryDependencies": [],
|
|
3018
|
+
"optionalDependencies": [
|
|
3019
|
+
"card"
|
|
3020
|
+
],
|
|
3021
|
+
"files": [
|
|
3022
|
+
{
|
|
3023
|
+
"path": "components/chart.css",
|
|
3024
|
+
"target": "components/chart.css",
|
|
3025
|
+
"role": "base",
|
|
3026
|
+
"layer": "loseta.components"
|
|
3027
|
+
},
|
|
3028
|
+
{
|
|
3029
|
+
"path": "styles/nova/chart.css",
|
|
3030
|
+
"target": "styles/nova/chart.css",
|
|
3031
|
+
"role": "style",
|
|
3032
|
+
"layer": "loseta.style"
|
|
3033
|
+
}
|
|
3034
|
+
],
|
|
3035
|
+
"examples": [
|
|
3036
|
+
"examples/chart.html"
|
|
3037
|
+
]
|
|
3038
|
+
},
|
|
3039
|
+
{
|
|
3040
|
+
"name": "resizable",
|
|
3041
|
+
"type": "component",
|
|
3042
|
+
"status": "experimental",
|
|
3043
|
+
"title": "Resizable",
|
|
3044
|
+
"description": "A flex layout with draggable separator handles.",
|
|
3045
|
+
"docs": "/docs/components/resizable",
|
|
3046
|
+
"root": [
|
|
3047
|
+
".resizable"
|
|
3048
|
+
],
|
|
3049
|
+
"registryDependencies": [],
|
|
3050
|
+
"optionalDependencies": [],
|
|
3051
|
+
"files": [
|
|
3052
|
+
{
|
|
3053
|
+
"path": "components/resizable.css",
|
|
3054
|
+
"target": "components/resizable.css",
|
|
3055
|
+
"role": "base",
|
|
3056
|
+
"layer": "loseta.components"
|
|
3057
|
+
},
|
|
3058
|
+
{
|
|
3059
|
+
"path": "styles/nova/resizable.css",
|
|
3060
|
+
"target": "styles/nova/resizable.css",
|
|
3061
|
+
"role": "style",
|
|
3062
|
+
"layer": "loseta.style"
|
|
3063
|
+
}
|
|
3064
|
+
],
|
|
3065
|
+
"examples": [
|
|
3066
|
+
"examples/resizable.html"
|
|
3067
|
+
]
|
|
3068
|
+
},
|
|
3069
|
+
{
|
|
3070
|
+
"name": "sidebar",
|
|
3071
|
+
"type": "component",
|
|
3072
|
+
"status": "experimental",
|
|
3073
|
+
"title": "Sidebar",
|
|
3074
|
+
"description": "A composed sidebar shell for navigation and footer content.",
|
|
3075
|
+
"docs": "/docs/components/sidebar",
|
|
3076
|
+
"root": [
|
|
3077
|
+
".sidebar"
|
|
3078
|
+
],
|
|
3079
|
+
"registryDependencies": [
|
|
3080
|
+
"collapsible"
|
|
3081
|
+
],
|
|
3082
|
+
"optionalDependencies": [
|
|
3083
|
+
"sheet"
|
|
3084
|
+
],
|
|
3085
|
+
"files": [
|
|
3086
|
+
{
|
|
3087
|
+
"path": "components/sidebar.css",
|
|
3088
|
+
"target": "components/sidebar.css",
|
|
3089
|
+
"role": "base",
|
|
3090
|
+
"layer": "loseta.components"
|
|
3091
|
+
},
|
|
3092
|
+
{
|
|
3093
|
+
"path": "styles/nova/sidebar.css",
|
|
3094
|
+
"target": "styles/nova/sidebar.css",
|
|
3095
|
+
"role": "style",
|
|
3096
|
+
"layer": "loseta.style"
|
|
3097
|
+
}
|
|
3098
|
+
],
|
|
3099
|
+
"examples": [
|
|
3100
|
+
"examples/sidebar.html"
|
|
3101
|
+
]
|
|
3102
|
+
},
|
|
3103
|
+
{
|
|
3104
|
+
"name": "toast",
|
|
3105
|
+
"type": "component",
|
|
3106
|
+
"status": "experimental",
|
|
3107
|
+
"title": "Toast",
|
|
3108
|
+
"description": "A fixed stack of transient notifications.",
|
|
3109
|
+
"docs": "/docs/components/toast",
|
|
3110
|
+
"root": [
|
|
3111
|
+
".toaster",
|
|
3112
|
+
".toast"
|
|
3113
|
+
],
|
|
3114
|
+
"registryDependencies": [],
|
|
3115
|
+
"optionalDependencies": [
|
|
3116
|
+
"button"
|
|
3117
|
+
],
|
|
3118
|
+
"files": [
|
|
3119
|
+
{
|
|
3120
|
+
"path": "components/toast.css",
|
|
3121
|
+
"target": "components/toast.css",
|
|
3122
|
+
"role": "base",
|
|
3123
|
+
"layer": "loseta.components"
|
|
3124
|
+
},
|
|
3125
|
+
{
|
|
3126
|
+
"path": "styles/nova/toast.css",
|
|
3127
|
+
"target": "styles/nova/toast.css",
|
|
3128
|
+
"role": "style",
|
|
3129
|
+
"layer": "loseta.style"
|
|
3130
|
+
}
|
|
3131
|
+
],
|
|
3132
|
+
"examples": [
|
|
3133
|
+
"examples/toast.html"
|
|
3134
|
+
]
|
|
2944
3135
|
}
|
|
2945
3136
|
]
|
|
2946
3137
|
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* Calendar */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.calendar {
|
|
4
|
+
width: 18rem;
|
|
5
|
+
gap: 0.5rem;
|
|
6
|
+
|
|
7
|
+
> header {
|
|
8
|
+
gap: 0.5rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
> header > button {
|
|
12
|
+
width: 1.75rem;
|
|
13
|
+
height: 1.75rem;
|
|
14
|
+
border-radius: var(--radius-md);
|
|
15
|
+
color: var(--muted-foreground);
|
|
16
|
+
|
|
17
|
+
&:hover {
|
|
18
|
+
background-color: var(--muted);
|
|
19
|
+
color: var(--foreground);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:focus-visible {
|
|
23
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
> svg {
|
|
27
|
+
width: 1rem;
|
|
28
|
+
height: 1rem;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
[data-slot='title'] {
|
|
33
|
+
font-size: var(--text-sm);
|
|
34
|
+
line-height: var(--text-sm--line-height);
|
|
35
|
+
font-weight: 500;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
th {
|
|
39
|
+
padding-block: 0.25rem;
|
|
40
|
+
font-size: var(--text-xs);
|
|
41
|
+
line-height: var(--text-xs--line-height);
|
|
42
|
+
color: var(--muted-foreground);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
td > button {
|
|
46
|
+
width: 2rem;
|
|
47
|
+
height: 2rem;
|
|
48
|
+
border-radius: var(--radius-md);
|
|
49
|
+
font-size: var(--text-sm);
|
|
50
|
+
line-height: var(--text-sm--line-height);
|
|
51
|
+
transition-property: color, background-color, box-shadow;
|
|
52
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
53
|
+
transition-duration: 150ms;
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
background-color: var(--muted);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:focus-visible {
|
|
60
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&[aria-disabled='true'] {
|
|
64
|
+
opacity: 50%;
|
|
65
|
+
color: var(--muted-foreground);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
td[aria-selected='true'] > button {
|
|
70
|
+
background-color: var(--primary);
|
|
71
|
+
color: var(--primary-foreground);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
td > button[aria-current='date'] {
|
|
75
|
+
box-shadow: inset 0 0 0 1px var(--ring);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* Carousel */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.carousel {
|
|
4
|
+
.carousel-viewport {
|
|
5
|
+
border-radius: var(--radius-lg);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.carousel-button {
|
|
9
|
+
width: 2rem;
|
|
10
|
+
height: 2rem;
|
|
11
|
+
border-style: solid;
|
|
12
|
+
border-width: 1px;
|
|
13
|
+
border-color: var(--border);
|
|
14
|
+
border-radius: var(--radius-md);
|
|
15
|
+
color: var(--muted-foreground);
|
|
16
|
+
transition-property: color, background-color, border-color, box-shadow;
|
|
17
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
18
|
+
transition-duration: 150ms;
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
background-color: var(--muted);
|
|
22
|
+
color: var(--foreground);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:focus-visible {
|
|
26
|
+
border-color: var(--ring);
|
|
27
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
> svg {
|
|
31
|
+
width: 1rem;
|
|
32
|
+
height: 1rem;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.carousel-indicator {
|
|
37
|
+
color: var(--muted-foreground);
|
|
38
|
+
transition-property: color;
|
|
39
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
40
|
+
transition-duration: 150ms;
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
color: var(--foreground);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:focus-visible {
|
|
47
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&[aria-current='true'] {
|
|
51
|
+
color: var(--primary);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* Chart */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.chart {
|
|
4
|
+
> [data-slot='plot'] {
|
|
5
|
+
aspect-ratio: 16 / 9;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
> [data-slot='legend'] {
|
|
9
|
+
font-size: var(--text-xs);
|
|
10
|
+
line-height: var(--text-xs--line-height);
|
|
11
|
+
color: var(--muted-foreground);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[data-slot='legend-item'] {
|
|
15
|
+
color: var(--muted-foreground);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
[data-slot='tooltip'] {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
gap: 0.125rem;
|
|
22
|
+
border-style: solid;
|
|
23
|
+
border-width: 1px;
|
|
24
|
+
border-color: var(--border);
|
|
25
|
+
border-radius: var(--radius-md);
|
|
26
|
+
background-color: var(--popover);
|
|
27
|
+
padding: 0.375rem 0.5rem;
|
|
28
|
+
color: var(--popover-foreground);
|
|
29
|
+
box-shadow: var(--shadow-md);
|
|
30
|
+
font-size: var(--text-xs);
|
|
31
|
+
line-height: var(--text-xs--line-height);
|
|
32
|
+
|
|
33
|
+
[data-slot='title'] {
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[data-slot='description'] {
|
|
38
|
+
color: var(--muted-foreground);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* Resizable */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.resizable {
|
|
4
|
+
border-style: solid;
|
|
5
|
+
border-width: 1px;
|
|
6
|
+
border-color: var(--border);
|
|
7
|
+
border-radius: var(--radius-lg);
|
|
8
|
+
background-color: var(--background);
|
|
9
|
+
|
|
10
|
+
> .resizable-panel {
|
|
11
|
+
padding: 1rem;
|
|
12
|
+
font-size: var(--text-sm);
|
|
13
|
+
line-height: var(--text-sm--line-height);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
> [data-slot='handle'] {
|
|
17
|
+
background-color: var(--background);
|
|
18
|
+
|
|
19
|
+
&::before {
|
|
20
|
+
background-color: var(--border);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:hover::before,
|
|
24
|
+
&:focus-visible::before {
|
|
25
|
+
background-color: var(--ring);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:focus-visible {
|
|
29
|
+
box-shadow: inset 0 0 0 1px var(--ring);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* Sidebar */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.sidebar {
|
|
4
|
+
border-inline-end-style: solid;
|
|
5
|
+
border-inline-end-width: 1px;
|
|
6
|
+
border-inline-end-color: var(--sidebar-border);
|
|
7
|
+
background-color: var(--sidebar);
|
|
8
|
+
color: var(--sidebar-foreground);
|
|
9
|
+
|
|
10
|
+
> header,
|
|
11
|
+
> footer {
|
|
12
|
+
min-height: 3rem;
|
|
13
|
+
padding-inline: 0.75rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
> header {
|
|
17
|
+
border-block-end-style: solid;
|
|
18
|
+
border-block-end-width: 1px;
|
|
19
|
+
border-block-end-color: var(--sidebar-border);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
> footer {
|
|
23
|
+
border-block-start-style: solid;
|
|
24
|
+
border-block-start-width: 1px;
|
|
25
|
+
border-block-start-color: var(--sidebar-border);
|
|
26
|
+
font-size: var(--text-xs);
|
|
27
|
+
line-height: var(--text-xs--line-height);
|
|
28
|
+
color: var(--muted-foreground);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
> section {
|
|
32
|
+
padding: 0.5rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-slot='brand'] {
|
|
36
|
+
font-size: var(--text-sm);
|
|
37
|
+
line-height: var(--text-sm--line-height);
|
|
38
|
+
font-weight: 600;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
nav a {
|
|
42
|
+
height: 2rem;
|
|
43
|
+
border-radius: var(--radius-md);
|
|
44
|
+
padding-inline: 0.5rem;
|
|
45
|
+
font-size: var(--text-sm);
|
|
46
|
+
line-height: var(--text-sm--line-height);
|
|
47
|
+
transition-property: color, background-color, box-shadow;
|
|
48
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
49
|
+
transition-duration: 150ms;
|
|
50
|
+
|
|
51
|
+
&:hover {
|
|
52
|
+
background-color: var(--sidebar-accent);
|
|
53
|
+
color: var(--sidebar-accent-foreground);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&[aria-current='page'] {
|
|
57
|
+
background-color: var(--sidebar-accent);
|
|
58
|
+
color: var(--sidebar-accent-foreground);
|
|
59
|
+
font-weight: 500;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:focus-visible {
|
|
63
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--sidebar-ring) 50%, transparent);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.collapsible > summary {
|
|
68
|
+
height: 2rem;
|
|
69
|
+
border-width: 0;
|
|
70
|
+
border-radius: var(--radius-md);
|
|
71
|
+
padding-inline: 0.5rem;
|
|
72
|
+
padding-block: 0;
|
|
73
|
+
font-size: var(--text-sm);
|
|
74
|
+
line-height: var(--text-sm--line-height);
|
|
75
|
+
|
|
76
|
+
&:hover {
|
|
77
|
+
background-color: var(--sidebar-accent);
|
|
78
|
+
color: var(--sidebar-accent-foreground);
|
|
79
|
+
text-decoration-line: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:focus-visible {
|
|
83
|
+
border-color: transparent;
|
|
84
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--sidebar-ring) 50%, transparent);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.collapsible > :not(summary) {
|
|
89
|
+
padding-block-start: 0.25rem;
|
|
90
|
+
font-size: var(--text-sm);
|
|
91
|
+
line-height: var(--text-sm--line-height);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
nav ul ul {
|
|
95
|
+
padding-inline-start: 0.75rem;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* Toast */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.toast {
|
|
4
|
+
border-style: solid;
|
|
5
|
+
border-width: 1px;
|
|
6
|
+
border-color: var(--border);
|
|
7
|
+
border-radius: var(--radius-lg);
|
|
8
|
+
background-color: var(--popover);
|
|
9
|
+
padding: 0.75rem 1rem;
|
|
10
|
+
color: var(--popover-foreground);
|
|
11
|
+
box-shadow: var(--shadow-md);
|
|
12
|
+
font-size: var(--text-sm);
|
|
13
|
+
line-height: var(--text-sm--line-height);
|
|
14
|
+
|
|
15
|
+
[data-slot='title'] {
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
[data-slot='description'] {
|
|
20
|
+
color: var(--muted-foreground);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
[data-slot='close'] {
|
|
24
|
+
width: 1.5rem;
|
|
25
|
+
height: 1.5rem;
|
|
26
|
+
border-radius: min(var(--radius-md), 10px);
|
|
27
|
+
color: var(--muted-foreground);
|
|
28
|
+
|
|
29
|
+
&:hover {
|
|
30
|
+
background-color: var(--muted);
|
|
31
|
+
color: var(--foreground);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:focus-visible {
|
|
35
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&[data-variant='destructive'] {
|
|
40
|
+
border-color: light-dark(
|
|
41
|
+
color-mix(in oklab, var(--destructive) 40%, transparent),
|
|
42
|
+
color-mix(in oklab, var(--destructive) 50%, transparent)
|
|
43
|
+
);
|
|
44
|
+
background-color: light-dark(
|
|
45
|
+
color-mix(in oklab, var(--destructive) 10%, transparent),
|
|
46
|
+
color-mix(in oklab, var(--destructive) 20%, transparent)
|
|
47
|
+
);
|
|
48
|
+
color: var(--destructive);
|
|
49
|
+
|
|
50
|
+
[data-slot='description'] {
|
|
51
|
+
color: light-dark(
|
|
52
|
+
color-mix(in oklab, var(--destructive) 80%, var(--foreground)),
|
|
53
|
+
var(--destructive)
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-slot='close'] {
|
|
58
|
+
color: var(--destructive);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|