loseta 0.14.0 → 0.15.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 -1
- package/dist/commands/add.js +4 -2
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/list.js +7 -2
- package/dist/commands/list.js.map +1 -1
- package/package.json +1 -1
- package/registry/examples/message-scroller.html +1 -1
- package/registry/examples/sidebar.html +1 -1
- package/registry/registry.json +302 -8
- package/registry/styles/luma/attachment.css +176 -0
- package/registry/styles/luma/bubble.css +147 -0
- package/registry/styles/luma/marker.css +35 -0
- package/registry/styles/luma/message-scroller.css +47 -0
- package/registry/styles/luma/message.css +39 -0
- package/registry/styles/luma/questionnaire.css +141 -0
- package/registry/styles/luma/trace.css +85 -0
- package/registry/styles/lyra/attachment.css +176 -0
- package/registry/styles/lyra/bubble.css +147 -0
- package/registry/styles/lyra/marker.css +35 -0
- package/registry/styles/lyra/message-scroller.css +47 -0
- package/registry/styles/lyra/message.css +39 -0
- package/registry/styles/lyra/questionnaire.css +141 -0
- package/registry/styles/lyra/trace.css +85 -0
- package/registry/styles/maia/attachment.css +176 -0
- package/registry/styles/maia/bubble.css +147 -0
- package/registry/styles/maia/marker.css +35 -0
- package/registry/styles/maia/message-scroller.css +47 -0
- package/registry/styles/maia/message.css +39 -0
- package/registry/styles/maia/questionnaire.css +141 -0
- package/registry/styles/maia/trace.css +85 -0
- package/registry/styles/mira/attachment.css +176 -0
- package/registry/styles/mira/bubble.css +147 -0
- package/registry/styles/mira/marker.css +35 -0
- package/registry/styles/mira/message-scroller.css +47 -0
- package/registry/styles/mira/message.css +39 -0
- package/registry/styles/mira/questionnaire.css +141 -0
- package/registry/styles/mira/trace.css +85 -0
- package/registry/styles/rhea/attachment.css +176 -0
- package/registry/styles/rhea/bubble.css +147 -0
- package/registry/styles/rhea/marker.css +35 -0
- package/registry/styles/rhea/message-scroller.css +47 -0
- package/registry/styles/rhea/message.css +39 -0
- package/registry/styles/rhea/questionnaire.css +141 -0
- package/registry/styles/rhea/trace.css +85 -0
- package/registry/styles/sera/attachment.css +176 -0
- package/registry/styles/sera/bubble.css +147 -0
- package/registry/styles/sera/marker.css +35 -0
- package/registry/styles/sera/message-scroller.css +47 -0
- package/registry/styles/sera/message.css +39 -0
- package/registry/styles/sera/questionnaire.css +147 -0
- package/registry/styles/sera/trace.css +87 -0
- package/registry/styles/vega/attachment.css +176 -0
- package/registry/styles/vega/bubble.css +147 -0
- package/registry/styles/vega/marker.css +35 -0
- package/registry/styles/vega/message-scroller.css +47 -0
- package/registry/styles/vega/message.css +39 -0
- package/registry/styles/vega/questionnaire.css +141 -0
- package/registry/styles/vega/trace.css +85 -0
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/* Attachment */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.attachment {
|
|
4
|
+
border-color: var(--border);
|
|
5
|
+
border-radius: var(--radius-4xl);
|
|
6
|
+
background-color: var(--card);
|
|
7
|
+
color: var(--card-foreground);
|
|
8
|
+
transition-property: color, background-color, border-color, box-shadow;
|
|
9
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
10
|
+
transition-duration: 150ms;
|
|
11
|
+
|
|
12
|
+
&:has(> :is(a, button, [data-slot='trigger'])):hover {
|
|
13
|
+
background-color: color-mix(in oklab, var(--muted) 50%, var(--card));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:focus-within {
|
|
17
|
+
box-shadow: 0 0 0 1px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:has([role='alert']) {
|
|
21
|
+
border-color: light-dark(
|
|
22
|
+
color-mix(in oklab, var(--destructive) 30%, transparent),
|
|
23
|
+
color-mix(in oklab, var(--destructive) 40%, transparent)
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&[aria-busy='true'] > [data-slot='media'] {
|
|
28
|
+
opacity: 60%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
> [data-slot='media'] {
|
|
32
|
+
border-radius: var(--radius-2xl);
|
|
33
|
+
background-color: var(--muted);
|
|
34
|
+
color: var(--foreground);
|
|
35
|
+
|
|
36
|
+
> svg {
|
|
37
|
+
width: 1rem;
|
|
38
|
+
height: 1rem;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
> [data-slot='content'] {
|
|
43
|
+
line-height: 1.25;
|
|
44
|
+
|
|
45
|
+
> [data-slot='title'] {
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
> [data-slot='description'] {
|
|
50
|
+
margin-block-start: 0.125rem;
|
|
51
|
+
color: var(--muted-foreground);
|
|
52
|
+
font-size: var(--text-xs);
|
|
53
|
+
line-height: var(--text-xs--line-height);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
> [role='alert'] {
|
|
57
|
+
color: var(--destructive);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:not([data-size]),
|
|
62
|
+
&[data-size='default'] {
|
|
63
|
+
gap: 0.5rem;
|
|
64
|
+
font-size: var(--text-sm);
|
|
65
|
+
line-height: var(--text-sm--line-height);
|
|
66
|
+
|
|
67
|
+
&:has(> [data-slot='content']) {
|
|
68
|
+
padding-inline: 0.875rem;
|
|
69
|
+
padding-block: 0.625rem;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:has(> [data-slot='media']) {
|
|
73
|
+
padding: 0.625rem;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
> [data-slot='media'] {
|
|
77
|
+
width: 2.75rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&[data-orientation='vertical'] > [data-slot='media'] {
|
|
81
|
+
width: 100%;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&[data-size='sm'] {
|
|
86
|
+
gap: 0.625rem;
|
|
87
|
+
font-size: var(--text-xs);
|
|
88
|
+
line-height: var(--text-xs--line-height);
|
|
89
|
+
|
|
90
|
+
&:has(> [data-slot='content']) {
|
|
91
|
+
padding-inline: 0.75rem;
|
|
92
|
+
padding-block: 0.5rem;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:has(> [data-slot='media']) {
|
|
96
|
+
padding: 0.625rem;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
> [data-slot='media'] {
|
|
100
|
+
width: 2.25rem;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&[data-orientation='vertical'] > [data-slot='media'] {
|
|
104
|
+
width: 100%;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
> [data-slot='content'] > [data-slot='description'] {
|
|
108
|
+
font-size: var(--text-xs);
|
|
109
|
+
line-height: var(--text-xs--line-height);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&[data-size='xs'] {
|
|
114
|
+
gap: 0.375rem;
|
|
115
|
+
border-radius: var(--radius-2xl);
|
|
116
|
+
font-size: var(--text-xs);
|
|
117
|
+
line-height: var(--text-xs--line-height);
|
|
118
|
+
|
|
119
|
+
&:has(> [data-slot='content']) {
|
|
120
|
+
padding-inline: 0.5rem;
|
|
121
|
+
padding-block: 0.375rem;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&:has(> [data-slot='media']) {
|
|
125
|
+
padding: 0.5rem;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
> [data-slot='media'] {
|
|
129
|
+
width: 2rem;
|
|
130
|
+
border-radius: var(--radius-xl);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&[data-orientation='vertical'] > [data-slot='media'] {
|
|
134
|
+
width: 100%;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
> [data-slot='content'] > [data-slot='description'] {
|
|
138
|
+
font-size: var(--text-xs);
|
|
139
|
+
line-height: var(--text-xs--line-height);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:not([data-orientation]),
|
|
144
|
+
&[data-orientation='horizontal'] {
|
|
145
|
+
min-width: 10rem;
|
|
146
|
+
align-items: center;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&[data-orientation='vertical'] {
|
|
150
|
+
> [data-slot='media'] {
|
|
151
|
+
width: 100%;
|
|
152
|
+
border-radius: var(--radius-2xl);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
> [data-slot='content'] {
|
|
156
|
+
padding-inline: 0.25rem;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
> [data-slot='actions'] {
|
|
160
|
+
gap: 0.25rem;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&[aria-busy='true'] > [data-slot='content'] > [data-slot='title'] {
|
|
165
|
+
color: var(--muted-foreground);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&:has([role='alert']) > [data-slot='media'] {
|
|
169
|
+
background-color: light-dark(
|
|
170
|
+
color-mix(in oklab, var(--destructive) 10%, transparent),
|
|
171
|
+
color-mix(in oklab, var(--destructive) 20%, transparent)
|
|
172
|
+
);
|
|
173
|
+
color: var(--destructive);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/* Bubble */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.bubble {
|
|
4
|
+
> [data-slot='content'] {
|
|
5
|
+
border-radius: var(--radius-4xl);
|
|
6
|
+
padding-inline: 0.875rem;
|
|
7
|
+
padding-block: 0.625rem;
|
|
8
|
+
font-size: var(--text-sm);
|
|
9
|
+
line-height: 1.625;
|
|
10
|
+
transition-property: color, background-color, border-color, box-shadow;
|
|
11
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
12
|
+
transition-duration: 150ms;
|
|
13
|
+
|
|
14
|
+
&:is(a, button) {
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:is(a, button):focus-visible {
|
|
19
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:not([data-variant]),
|
|
24
|
+
&[data-variant='default'] {
|
|
25
|
+
> [data-slot='content'] {
|
|
26
|
+
background-color: var(--primary);
|
|
27
|
+
color: var(--primary-foreground);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
> [data-slot='content']:is(a, button):hover {
|
|
31
|
+
background-color: color-mix(in oklab, var(--primary) 85%, var(--background));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[data-variant='secondary'] {
|
|
36
|
+
> [data-slot='content'] {
|
|
37
|
+
background-color: var(--secondary);
|
|
38
|
+
color: var(--secondary-foreground);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
> [data-slot='content']:is(a, button):hover {
|
|
42
|
+
background-color: color-mix(in oklab, var(--secondary) 95%, var(--foreground));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[data-variant='muted'] {
|
|
47
|
+
> [data-slot='content'] {
|
|
48
|
+
background-color: var(--muted);
|
|
49
|
+
color: var(--foreground);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
> [data-slot='content']:is(a, button):hover {
|
|
53
|
+
background-color: color-mix(in oklab, var(--muted) 95%, var(--foreground));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&[data-variant='tinted'] {
|
|
58
|
+
> [data-slot='content'] {
|
|
59
|
+
background-color: light-dark(
|
|
60
|
+
color-mix(in oklab, var(--primary) 8%, var(--background)),
|
|
61
|
+
color-mix(in oklab, var(--primary) 18%, var(--background))
|
|
62
|
+
);
|
|
63
|
+
color: var(--foreground);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
> [data-slot='content']:is(a, button):hover {
|
|
67
|
+
background-color: light-dark(
|
|
68
|
+
color-mix(in oklab, var(--primary) 12%, var(--background)),
|
|
69
|
+
color-mix(in oklab, var(--primary) 24%, var(--background))
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&[data-variant='outline'] {
|
|
75
|
+
> [data-slot='content'] {
|
|
76
|
+
border-color: var(--border);
|
|
77
|
+
background-color: var(--background);
|
|
78
|
+
color: var(--foreground);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
> [data-slot='content']:is(a, button):hover {
|
|
82
|
+
background-color: var(--muted);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&[data-variant='ghost'] {
|
|
87
|
+
> [data-slot='content'] {
|
|
88
|
+
border-radius: 0;
|
|
89
|
+
background-color: transparent;
|
|
90
|
+
padding: 0;
|
|
91
|
+
color: var(--foreground);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
> [data-slot='content']:is(a, button):hover {
|
|
95
|
+
background-color: var(--muted);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&[data-variant='destructive'] {
|
|
100
|
+
> [data-slot='content'] {
|
|
101
|
+
background-color: light-dark(
|
|
102
|
+
color-mix(in oklab, var(--destructive) 10%, transparent),
|
|
103
|
+
color-mix(in oklab, var(--destructive) 20%, transparent)
|
|
104
|
+
);
|
|
105
|
+
color: var(--destructive);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
> [data-slot='content']:is(a, button):hover {
|
|
109
|
+
background-color: light-dark(
|
|
110
|
+
color-mix(in oklab, var(--destructive) 20%, transparent),
|
|
111
|
+
color-mix(in oklab, var(--destructive) 30%, transparent)
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
> [data-slot='reactions'] {
|
|
117
|
+
border-radius: var(--radius-full);
|
|
118
|
+
background-color: var(--muted);
|
|
119
|
+
padding-inline: 0.5rem;
|
|
120
|
+
padding-block: 0.25rem;
|
|
121
|
+
color: var(--foreground);
|
|
122
|
+
box-shadow: 0 0 0 3px var(--background);
|
|
123
|
+
font-size: var(--text-sm);
|
|
124
|
+
line-height: var(--text-sm--line-height);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
[data-slot='reaction'] {
|
|
128
|
+
padding-inline: 0.375rem;
|
|
129
|
+
padding-block: 0.125rem;
|
|
130
|
+
background-color: transparent;
|
|
131
|
+
color: inherit;
|
|
132
|
+
|
|
133
|
+
&:hover {
|
|
134
|
+
background-color: color-mix(in oklab, var(--foreground) 8%, transparent);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&[aria-pressed='true'] {
|
|
138
|
+
background-color: color-mix(in oklab, var(--primary) 15%, transparent);
|
|
139
|
+
color: var(--primary);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&:focus-visible {
|
|
143
|
+
box-shadow: 0 0 0 2px var(--ring);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* Marker */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.marker {
|
|
4
|
+
color: var(--muted-foreground);
|
|
5
|
+
font-size: var(--text-sm);
|
|
6
|
+
line-height: var(--text-sm--line-height);
|
|
7
|
+
|
|
8
|
+
> [data-slot='icon'] > svg {
|
|
9
|
+
width: 1rem;
|
|
10
|
+
height: 1rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
> [data-slot='content'] {
|
|
14
|
+
:is(a) {
|
|
15
|
+
text-decoration-line: underline;
|
|
16
|
+
text-underline-offset: 3px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:is(a):hover {
|
|
20
|
+
color: var(--foreground);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&[data-variant='separator'] {
|
|
25
|
+
&::before,
|
|
26
|
+
&::after {
|
|
27
|
+
background-color: var(--border);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&[data-variant='border'] {
|
|
32
|
+
border-block-end-color: var(--border);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* Message Scroller */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.message-scroller {
|
|
4
|
+
height: 100%;
|
|
5
|
+
border-style: solid;
|
|
6
|
+
border-width: 1px;
|
|
7
|
+
border-color: var(--border);
|
|
8
|
+
border-radius: var(--radius-4xl);
|
|
9
|
+
background-color: var(--background);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.message-scroller-viewport {
|
|
13
|
+
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
|
14
|
+
padding: 1.25rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.message-scroller [data-slot='content'] {
|
|
18
|
+
gap: 1.25rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.message-scroller [data-slot='jump'] {
|
|
22
|
+
width: 2.25rem;
|
|
23
|
+
height: 2.25rem;
|
|
24
|
+
border-color: var(--border);
|
|
25
|
+
border-radius: var(--radius-full);
|
|
26
|
+
background-color: var(--background);
|
|
27
|
+
color: var(--foreground);
|
|
28
|
+
box-shadow: var(--shadow-lg);
|
|
29
|
+
transition-property: color, background-color, border-color, box-shadow;
|
|
30
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
31
|
+
transition-duration: 150ms;
|
|
32
|
+
|
|
33
|
+
&:hover {
|
|
34
|
+
background-color: var(--muted);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:focus-visible {
|
|
38
|
+
border-color: var(--ring);
|
|
39
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
> svg {
|
|
43
|
+
width: 1rem;
|
|
44
|
+
height: 1rem;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* Message */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.message {
|
|
4
|
+
gap: 0.625rem;
|
|
5
|
+
font-size: var(--text-sm);
|
|
6
|
+
line-height: var(--text-sm--line-height);
|
|
7
|
+
|
|
8
|
+
> [data-slot='content'] {
|
|
9
|
+
gap: 0.75rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
[data-slot='header'],
|
|
13
|
+
[data-slot='footer'] {
|
|
14
|
+
padding-inline: 1rem;
|
|
15
|
+
color: var(--muted-foreground);
|
|
16
|
+
font-size: var(--text-xs);
|
|
17
|
+
line-height: var(--text-xs--line-height);
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:has(.bubble[data-variant='ghost']) [data-slot='header'],
|
|
22
|
+
&:has(.bubble[data-variant='ghost']) [data-slot='footer'] {
|
|
23
|
+
padding-inline: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
> [data-slot='avatar'] {
|
|
27
|
+
min-width: 2.25rem;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
border-radius: var(--radius-full);
|
|
30
|
+
background-color: var(--muted);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
> [data-slot='avatar'] > :is(img, svg) {
|
|
34
|
+
width: 2.25rem;
|
|
35
|
+
height: 2.25rem;
|
|
36
|
+
object-fit: cover;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/* Questionnaire */
|
|
2
|
+
@layer loseta.style {
|
|
3
|
+
.questionnaire {
|
|
4
|
+
> [data-slot='progress'] {
|
|
5
|
+
color: var(--muted-foreground);
|
|
6
|
+
font-size: var(--text-xs);
|
|
7
|
+
line-height: var(--text-xs--line-height);
|
|
8
|
+
|
|
9
|
+
> progress {
|
|
10
|
+
block-size: 0.5rem;
|
|
11
|
+
border-radius: var(--radius-full);
|
|
12
|
+
background-color: color-mix(in oklab, var(--primary) 20%, transparent);
|
|
13
|
+
|
|
14
|
+
&::-webkit-progress-bar {
|
|
15
|
+
border-radius: inherit;
|
|
16
|
+
background-color: transparent;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&::-webkit-progress-value {
|
|
20
|
+
border-radius: inherit;
|
|
21
|
+
background-color: var(--primary);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&::-moz-progress-bar {
|
|
25
|
+
border-radius: inherit;
|
|
26
|
+
background-color: var(--primary);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
[data-slot='item'] {
|
|
32
|
+
> legend {
|
|
33
|
+
font-size: var(--text-lg);
|
|
34
|
+
line-height: var(--text-lg--line-height);
|
|
35
|
+
font-weight: 600;
|
|
36
|
+
text-wrap: balance;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
> [data-slot='description'] {
|
|
40
|
+
margin: 0;
|
|
41
|
+
color: var(--muted-foreground);
|
|
42
|
+
font-size: var(--text-sm);
|
|
43
|
+
line-height: var(--text-sm--line-height);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.questionnaire-choice {
|
|
48
|
+
border-color: var(--border);
|
|
49
|
+
border-radius: var(--radius-3xl);
|
|
50
|
+
background-color: var(--background);
|
|
51
|
+
padding: 0.875rem;
|
|
52
|
+
transition-property: color, background-color, border-color, box-shadow;
|
|
53
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
54
|
+
transition-duration: 150ms;
|
|
55
|
+
|
|
56
|
+
&:hover {
|
|
57
|
+
background-color: color-mix(in oklab, var(--muted) 50%, var(--background));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:has(input:checked) {
|
|
61
|
+
border-color: var(--ring);
|
|
62
|
+
background-color: color-mix(in oklab, var(--primary) 5%, var(--background));
|
|
63
|
+
|
|
64
|
+
[data-slot='description'] {
|
|
65
|
+
color: var(--foreground);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:focus-within {
|
|
70
|
+
border-color: var(--ring);
|
|
71
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
> input {
|
|
75
|
+
width: 1rem;
|
|
76
|
+
height: 1rem;
|
|
77
|
+
accent-color: var(--primary);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-slot='label'] {
|
|
81
|
+
font-size: var(--text-sm);
|
|
82
|
+
line-height: var(--text-sm--line-height);
|
|
83
|
+
font-weight: 500;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[data-slot='description'] {
|
|
87
|
+
color: var(--muted-foreground);
|
|
88
|
+
font-size: var(--text-sm);
|
|
89
|
+
line-height: var(--text-sm--line-height);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
> [data-slot='item'] > [data-slot='description'] {
|
|
94
|
+
font-size: var(--text-sm);
|
|
95
|
+
line-height: var(--text-sm--line-height);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
[data-slot='input'] {
|
|
99
|
+
border-style: solid;
|
|
100
|
+
border-width: 1px;
|
|
101
|
+
border-color: var(--input);
|
|
102
|
+
border-radius: var(--radius-3xl);
|
|
103
|
+
background-color: transparent;
|
|
104
|
+
padding-inline: 0.75rem;
|
|
105
|
+
padding-block: 0.625rem;
|
|
106
|
+
color: var(--foreground);
|
|
107
|
+
font-size: var(--text-sm);
|
|
108
|
+
line-height: var(--text-sm--line-height);
|
|
109
|
+
outline-style: none;
|
|
110
|
+
|
|
111
|
+
&::placeholder {
|
|
112
|
+
color: var(--muted-foreground);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&:focus-visible {
|
|
116
|
+
border-color: var(--ring);
|
|
117
|
+
box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&[aria-invalid='true'] {
|
|
121
|
+
border-color: var(--destructive);
|
|
122
|
+
box-shadow: 0 0 0 3px
|
|
123
|
+
color-mix(in oklab, var(--destructive) 20%, transparent);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
[data-slot='actions'] {
|
|
128
|
+
border-block-start-style: solid;
|
|
129
|
+
border-block-start-width: 1px;
|
|
130
|
+
border-block-start-color: var(--border);
|
|
131
|
+
padding-block-start: 1.25rem;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[data-slot='error'] {
|
|
135
|
+
color: var(--destructive);
|
|
136
|
+
font-size: var(--text-sm);
|
|
137
|
+
line-height: var(--text-sm--line-height);
|
|
138
|
+
font-weight: 500;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -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.625rem;
|
|
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-full);
|
|
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.5rem;
|
|
43
|
+
padding-block: 0.25rem;
|
|
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.75rem;
|
|
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
|
+
}
|