loseta 0.7.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/README.md +2 -2
- 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/combobox.css +42 -0
- package/registry/components/command.css +20 -0
- package/registry/components/resizable.css +51 -0
- package/registry/components/select.css +47 -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/combobox.html +28 -0
- package/registry/examples/command.html +44 -0
- package/registry/examples/resizable.html +23 -0
- package/registry/examples/select.html +50 -0
- package/registry/examples/sidebar.html +31 -0
- package/registry/examples/toast.html +17 -0
- package/registry/primitives/listbox.css +82 -0
- package/registry/registry.json +321 -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/combobox.css +59 -0
- package/registry/styles/nova/command.css +19 -0
- package/registry/styles/nova/primitives/listbox.css +71 -0
- package/registry/styles/nova/resizable.css +33 -0
- package/registry/styles/nova/select.css +71 -0
- package/registry/styles/nova/sidebar.css +98 -0
- package/registry/styles/nova/toast.css +62 -0
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ registry/
|
|
|
38
38
|
reset.css # preflight-style reset
|
|
39
39
|
base.css # element defaults
|
|
40
40
|
utilities.css # sr-only
|
|
41
|
-
primitives/ # shared popover, menu and dialog shells
|
|
41
|
+
primitives/ # shared popover, listbox, menu and dialog shells
|
|
42
42
|
components/ # structural CSS per component
|
|
43
43
|
styles/ # visual CSS per declared style
|
|
44
44
|
examples/ # example markup used by `add --html`
|
|
@@ -85,7 +85,7 @@ The registry is validated for:
|
|
|
85
85
|
- dependency resolution and cycles,
|
|
86
86
|
- `@layer` wrapping,
|
|
87
87
|
- one complete style file per declared style for every stable component and primitive,
|
|
88
|
-
- exactly one Nova style file for every experimental component,
|
|
88
|
+
- exactly one Nova style file for every experimental component and primitive,
|
|
89
89
|
- valid `styles/<name>/` paths and no unreferenced style files,
|
|
90
90
|
- forbidden Tailwind/legacy patterns,
|
|
91
91
|
- CSS parseability with Lightning CSS.
|
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,42 @@
|
|
|
1
|
+
/* Combobox */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.combobox {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
|
|
9
|
+
> input {
|
|
10
|
+
width: 100%;
|
|
11
|
+
min-width: 0;
|
|
12
|
+
outline-style: none;
|
|
13
|
+
-webkit-user-select: text;
|
|
14
|
+
user-select: text;
|
|
15
|
+
|
|
16
|
+
&::placeholder {
|
|
17
|
+
color: var(--muted-foreground);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:disabled {
|
|
21
|
+
pointer-events: none;
|
|
22
|
+
cursor: not-allowed;
|
|
23
|
+
opacity: 50%;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
> [data-slot='clear'] {
|
|
28
|
+
position: absolute;
|
|
29
|
+
inset-inline-end: 0.25rem;
|
|
30
|
+
inset-block-start: 0.25rem;
|
|
31
|
+
z-index: 1;
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
> [data-popover] {
|
|
38
|
+
width: 100%;
|
|
39
|
+
min-width: 8rem;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* Command */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.command {
|
|
4
|
+
display: flex;
|
|
5
|
+
width: 100%;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 0.5rem;
|
|
8
|
+
|
|
9
|
+
> [role='listbox'] {
|
|
10
|
+
max-height: 20rem;
|
|
11
|
+
overflow-y: auto;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
[data-slot='shortcut'] {
|
|
15
|
+
margin-inline-start: auto;
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
text-align: end;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -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,47 @@
|
|
|
1
|
+
/* Select */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.select {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
|
|
9
|
+
> button {
|
|
10
|
+
display: flex;
|
|
11
|
+
width: 100%;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
gap: 0.5rem;
|
|
15
|
+
outline-style: none;
|
|
16
|
+
-webkit-user-select: none;
|
|
17
|
+
user-select: none;
|
|
18
|
+
|
|
19
|
+
@media (forced-colors: active) {
|
|
20
|
+
outline: 2px solid transparent;
|
|
21
|
+
outline-offset: 2px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:disabled {
|
|
25
|
+
pointer-events: none;
|
|
26
|
+
opacity: 50%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
> svg {
|
|
30
|
+
pointer-events: none;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
transition-property: rotate;
|
|
33
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
34
|
+
transition-duration: 150ms;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&[aria-expanded='true'] > svg {
|
|
38
|
+
rotate: 180deg;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
> [data-popover] {
|
|
43
|
+
width: 100%;
|
|
44
|
+
min-width: 8rem;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -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,28 @@
|
|
|
1
|
+
<!-- Single -->
|
|
2
|
+
<div class="combobox">
|
|
3
|
+
<input role="combobox" aria-expanded="false" aria-controls="combobox-fruit-panel" aria-autocomplete="list" placeholder="Search fruit..." aria-label="Search fruit">
|
|
4
|
+
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" data-slot="clear" aria-label="Clear">×</button>
|
|
5
|
+
<div data-popover data-side="bottom" aria-hidden="true" id="combobox-fruit-panel">
|
|
6
|
+
<div role="listbox" aria-label="Fruit">
|
|
7
|
+
<div role="option" aria-selected="false"><span data-slot="text">Apple</span></div>
|
|
8
|
+
<div role="option" aria-selected="false"><span data-slot="text">Banana</span></div>
|
|
9
|
+
<div role="option" aria-selected="false"><span data-slot="text">Orange</span></div>
|
|
10
|
+
<div role="option" aria-selected="false"><span data-slot="text">Pineapple</span></div>
|
|
11
|
+
<div data-slot="empty" hidden>No fruit found.</div>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<!-- Multiple -->
|
|
17
|
+
<div class="combobox">
|
|
18
|
+
<input role="combobox" aria-expanded="false" aria-controls="combobox-tag-panel" aria-autocomplete="list" placeholder="Search tags..." aria-label="Search tags">
|
|
19
|
+
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" data-slot="clear" aria-label="Clear">×</button>
|
|
20
|
+
<div data-popover data-side="bottom" aria-hidden="true" id="combobox-tag-panel">
|
|
21
|
+
<div role="listbox" aria-label="Tags" aria-multiselectable="true">
|
|
22
|
+
<div role="option" aria-selected="true"><span data-slot="text">Design</span></div>
|
|
23
|
+
<div role="option" aria-selected="false"><span data-slot="text">Engineering</span></div>
|
|
24
|
+
<div role="option" aria-selected="true"><span data-slot="text">Docs</span></div>
|
|
25
|
+
<div data-slot="empty" hidden>No tags found.</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|