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,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
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/* Trace */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.trace {
|
|
4
|
+
border-block-end-style: solid;
|
|
5
|
+
border-block-end-width: 1px;
|
|
6
|
+
border-block-end-color: var(--border);
|
|
7
|
+
|
|
8
|
+
> summary {
|
|
9
|
+
padding-block: 0.5rem;
|
|
10
|
+
color: var(--muted-foreground);
|
|
11
|
+
font-size: var(--text-sm);
|
|
12
|
+
line-height: var(--text-sm--line-height);
|
|
13
|
+
transition-property: color;
|
|
14
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
15
|
+
transition-duration: 150ms;
|
|
16
|
+
|
|
17
|
+
&:hover {
|
|
18
|
+
color: var(--foreground);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:focus-visible {
|
|
22
|
+
border-radius: var(--radius-sm);
|
|
23
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&::after {
|
|
27
|
+
border-color: currentColor;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
> [data-slot='icon'] > svg {
|
|
31
|
+
width: 1rem;
|
|
32
|
+
height: 1rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
> [data-slot='title'] {
|
|
36
|
+
color: var(--foreground);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
> [data-slot='status'] {
|
|
40
|
+
border-radius: var(--radius-full);
|
|
41
|
+
background-color: var(--muted);
|
|
42
|
+
padding-inline: 0.375rem;
|
|
43
|
+
padding-block: 0.125rem;
|
|
44
|
+
color: var(--foreground);
|
|
45
|
+
font-size: var(--text-xs);
|
|
46
|
+
line-height: var(--text-xs--line-height);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
> [data-slot='status'][data-variant='error'] {
|
|
50
|
+
background-color: light-dark(
|
|
51
|
+
color-mix(in oklab, var(--destructive) 10%, transparent),
|
|
52
|
+
color-mix(in oklab, var(--destructive) 20%, transparent)
|
|
53
|
+
);
|
|
54
|
+
color: var(--destructive);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
> [data-slot='status'][data-variant='success'] {
|
|
58
|
+
background-color: color-mix(in oklab, var(--primary) 10%, transparent);
|
|
59
|
+
color: var(--foreground);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
> [data-slot='body'] {
|
|
64
|
+
padding-block-end: 0.5rem;
|
|
65
|
+
padding-inline-start: 1.5rem;
|
|
66
|
+
color: var(--muted-foreground);
|
|
67
|
+
font-size: var(--text-sm);
|
|
68
|
+
line-height: var(--text-sm--line-height);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[data-slot='source'] {
|
|
72
|
+
color: var(--foreground);
|
|
73
|
+
text-decoration-line: underline;
|
|
74
|
+
text-underline-offset: 3px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[data-slot='source']:hover {
|
|
78
|
+
color: var(--primary);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.trace {
|
|
82
|
+
border-block-end-color: color-mix(in oklab, var(--border) 70%, transparent);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|