loseta 0.9.0 → 0.11.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.
Files changed (75) hide show
  1. package/README.md +1 -0
  2. package/package.json +1 -1
  3. package/registry/components/attachment.css +84 -0
  4. package/registry/components/bubble.css +92 -0
  5. package/registry/components/marker.css +47 -0
  6. package/registry/components/message-scroller.css +56 -0
  7. package/registry/components/message.css +61 -0
  8. package/registry/components/questionnaire.css +92 -0
  9. package/registry/components/trace.css +78 -0
  10. package/registry/examples/attachment.html +41 -0
  11. package/registry/examples/bubble.html +21 -0
  12. package/registry/examples/marker.html +14 -0
  13. package/registry/examples/message-scroller.html +54 -0
  14. package/registry/examples/message.html +31 -0
  15. package/registry/examples/questionnaire.html +66 -0
  16. package/registry/examples/sidebar.html +1 -1
  17. package/registry/examples/trace.html +42 -0
  18. package/registry/registry.json +528 -8
  19. package/registry/styles/luma/aspect-ratio.css +6 -0
  20. package/registry/styles/luma/avatar.css +89 -0
  21. package/registry/styles/luma/progress.css +67 -0
  22. package/registry/styles/luma/separator.css +14 -0
  23. package/registry/styles/luma/spinner.css +35 -0
  24. package/registry/styles/luma/toggle-group.css +48 -0
  25. package/registry/styles/luma/toggle.css +128 -0
  26. package/registry/styles/lyra/aspect-ratio.css +6 -0
  27. package/registry/styles/lyra/avatar.css +89 -0
  28. package/registry/styles/lyra/progress.css +67 -0
  29. package/registry/styles/lyra/separator.css +14 -0
  30. package/registry/styles/lyra/spinner.css +35 -0
  31. package/registry/styles/lyra/toggle-group.css +48 -0
  32. package/registry/styles/lyra/toggle.css +126 -0
  33. package/registry/styles/maia/aspect-ratio.css +6 -0
  34. package/registry/styles/maia/avatar.css +89 -0
  35. package/registry/styles/maia/progress.css +67 -0
  36. package/registry/styles/maia/separator.css +14 -0
  37. package/registry/styles/maia/spinner.css +35 -0
  38. package/registry/styles/maia/toggle-group.css +48 -0
  39. package/registry/styles/maia/toggle.css +128 -0
  40. package/registry/styles/mira/aspect-ratio.css +6 -0
  41. package/registry/styles/mira/avatar.css +89 -0
  42. package/registry/styles/mira/progress.css +67 -0
  43. package/registry/styles/mira/separator.css +14 -0
  44. package/registry/styles/mira/spinner.css +35 -0
  45. package/registry/styles/mira/toggle-group.css +48 -0
  46. package/registry/styles/mira/toggle.css +128 -0
  47. package/registry/styles/nova/attachment.css +176 -0
  48. package/registry/styles/nova/bubble.css +147 -0
  49. package/registry/styles/nova/marker.css +35 -0
  50. package/registry/styles/nova/message-scroller.css +47 -0
  51. package/registry/styles/nova/message.css +39 -0
  52. package/registry/styles/nova/questionnaire.css +141 -0
  53. package/registry/styles/nova/toggle.css +12 -0
  54. package/registry/styles/nova/trace.css +85 -0
  55. package/registry/styles/rhea/aspect-ratio.css +6 -0
  56. package/registry/styles/rhea/avatar.css +89 -0
  57. package/registry/styles/rhea/progress.css +67 -0
  58. package/registry/styles/rhea/separator.css +14 -0
  59. package/registry/styles/rhea/spinner.css +35 -0
  60. package/registry/styles/rhea/toggle-group.css +48 -0
  61. package/registry/styles/rhea/toggle.css +128 -0
  62. package/registry/styles/sera/aspect-ratio.css +6 -0
  63. package/registry/styles/sera/avatar.css +89 -0
  64. package/registry/styles/sera/progress.css +67 -0
  65. package/registry/styles/sera/separator.css +14 -0
  66. package/registry/styles/sera/spinner.css +35 -0
  67. package/registry/styles/sera/toggle-group.css +48 -0
  68. package/registry/styles/sera/toggle.css +128 -0
  69. package/registry/styles/vega/aspect-ratio.css +6 -0
  70. package/registry/styles/vega/avatar.css +89 -0
  71. package/registry/styles/vega/progress.css +67 -0
  72. package/registry/styles/vega/separator.css +14 -0
  73. package/registry/styles/vega/spinner.css +35 -0
  74. package/registry/styles/vega/toggle-group.css +48 -0
  75. package/registry/styles/vega/toggle.css +128 -0
@@ -0,0 +1,35 @@
1
+ /* Spinner */
2
+ @layer loseta.style {
3
+ .spinner {
4
+ width: 1rem;
5
+ height: 1rem;
6
+ border-style: solid;
7
+ border-width: 2px;
8
+ border-color: color-mix(in oklab, currentColor 25%, transparent);
9
+ border-block-start-color: currentColor;
10
+ border-radius: var(--radius-full);
11
+ animation: loseta-spin 0.75s linear infinite;
12
+
13
+ @media (prefers-reduced-motion: reduce) {
14
+ animation-duration: 1.5s;
15
+ }
16
+
17
+ &[data-size='sm'] {
18
+ width: 0.75rem;
19
+ height: 0.75rem;
20
+ border-width: 1.5px;
21
+ }
22
+
23
+ &[data-size='lg'] {
24
+ width: 1.5rem;
25
+ height: 1.5rem;
26
+ border-width: 2.5px;
27
+ }
28
+ }
29
+
30
+ @keyframes loseta-spin {
31
+ to {
32
+ rotate: 360deg;
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,48 @@
1
+ /* Toggle Group */
2
+ @layer loseta.style {
3
+ .toggle-group {
4
+ gap: 0.125rem;
5
+
6
+ &[data-spacing='joined'] {
7
+ gap: 0;
8
+
9
+ > .toggle {
10
+ border-radius: 0;
11
+ }
12
+ }
13
+ }
14
+
15
+ .toggle-group[data-spacing='joined']:not([data-orientation='vertical'])
16
+ > .toggle:not(:first-child) {
17
+ border-inline-start-width: 0;
18
+ }
19
+
20
+ .toggle-group[data-spacing='joined'][data-orientation='vertical']
21
+ > .toggle:not(:first-child) {
22
+ border-block-start-width: 0;
23
+ }
24
+
25
+ .toggle-group[data-spacing='joined']:not([data-orientation='vertical'])
26
+ > .toggle:first-child {
27
+ border-start-start-radius: var(--radius-md);
28
+ border-end-start-radius: var(--radius-md);
29
+ }
30
+
31
+ .toggle-group[data-spacing='joined']:not([data-orientation='vertical'])
32
+ > .toggle:last-child {
33
+ border-start-end-radius: var(--radius-md);
34
+ border-end-end-radius: var(--radius-md);
35
+ }
36
+
37
+ .toggle-group[data-spacing='joined'][data-orientation='vertical']
38
+ > .toggle:first-child {
39
+ border-start-start-radius: var(--radius-md);
40
+ border-start-end-radius: var(--radius-md);
41
+ }
42
+
43
+ .toggle-group[data-spacing='joined'][data-orientation='vertical']
44
+ > .toggle:last-child {
45
+ border-end-start-radius: var(--radius-md);
46
+ border-end-end-radius: var(--radius-md);
47
+ }
48
+ }
@@ -0,0 +1,128 @@
1
+ /* Toggle */
2
+ @layer loseta.style {
3
+ .toggle {
4
+ block-size: 1.75rem;
5
+ min-inline-size: 1.75rem;
6
+ gap: 0.25rem;
7
+ border-style: solid;
8
+ border-width: 1px;
9
+ border-color: transparent;
10
+ border-radius: var(--radius-md);
11
+ background-color: transparent;
12
+ padding-inline: 0.5rem;
13
+ color: inherit;
14
+ font-size: var(--text-xs);
15
+ line-height: var(--text-xs--line-height);
16
+ font-weight: 500;
17
+
18
+ > svg {
19
+ width: 1rem;
20
+ height: 1rem;
21
+ }
22
+
23
+ &:hover {
24
+ background-color: var(--muted);
25
+ color: var(--muted-foreground);
26
+ }
27
+
28
+ &[aria-pressed='true'] {
29
+ background-color: var(--accent);
30
+ color: var(--accent-foreground);
31
+ }
32
+
33
+ &[aria-pressed='true']:hover {
34
+ background-color: var(--accent);
35
+ color: var(--accent-foreground);
36
+ }
37
+
38
+ &:focus-visible {
39
+ border-color: var(--ring);
40
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
41
+ }
42
+
43
+ &[aria-invalid='true'] {
44
+ border-color: light-dark(
45
+ var(--destructive),
46
+ color-mix(in oklab, var(--destructive) 50%, transparent)
47
+ );
48
+ box-shadow: 0 0 0 3px light-dark(
49
+ color-mix(in oklab, var(--destructive) 20%, transparent),
50
+ color-mix(in oklab, var(--destructive) 40%, transparent)
51
+ );
52
+ }
53
+
54
+ &[data-size='sm'] {
55
+ block-size: 1.5rem;
56
+ min-inline-size: 1.5rem;
57
+ border-radius: var(--radius-sm);
58
+ padding-inline: 0.375rem;
59
+ font-size: var(--text-xs);
60
+ line-height: var(--text-xs--line-height);
61
+ }
62
+
63
+ &[data-size='lg'] {
64
+ block-size: 2rem;
65
+ min-inline-size: 2rem;
66
+ border-radius: var(--radius-md);
67
+ padding-inline: 0.5rem;
68
+ }
69
+
70
+ &[data-variant='outline'] {
71
+ border-color: light-dark(var(--border), var(--input));
72
+ background-color: light-dark(
73
+ var(--background),
74
+ color-mix(in oklab, var(--input) 30%, transparent)
75
+ );
76
+ box-shadow: var(--shadow-xs);
77
+
78
+ &:hover {
79
+ background-color: var(--accent);
80
+ color: var(--accent-foreground);
81
+ }
82
+ }
83
+
84
+ &[data-variant='outline'][aria-pressed='true'] {
85
+ background-color: var(--accent);
86
+ color: var(--accent-foreground);
87
+ }
88
+ }
89
+
90
+ .toggle:where(.toggle-group[data-size='sm'] > .toggle:not([data-size])) {
91
+ block-size: 1.5rem;
92
+ min-inline-size: 1.5rem;
93
+ border-radius: var(--radius-sm);
94
+ padding-inline: 0.375rem;
95
+ font-size: var(--text-xs);
96
+ line-height: var(--text-xs--line-height);
97
+ }
98
+
99
+ .toggle:where(.toggle-group[data-size='lg'] > .toggle:not([data-size])) {
100
+ block-size: 2rem;
101
+ min-inline-size: 2rem;
102
+ border-radius: var(--radius-md);
103
+ padding-inline: 0.5rem;
104
+ }
105
+
106
+ .toggle:where(.toggle-group[data-variant='outline'] > .toggle:not([data-variant])) {
107
+ border-color: light-dark(var(--border), var(--input));
108
+ background-color: light-dark(
109
+ var(--background),
110
+ color-mix(in oklab, var(--input) 30%, transparent)
111
+ );
112
+ box-shadow: var(--shadow-xs);
113
+ }
114
+
115
+ .toggle:where(
116
+ .toggle-group[data-variant='outline'] > .toggle:not([data-variant])
117
+ ):hover {
118
+ background-color: var(--accent);
119
+ color: var(--accent-foreground);
120
+ }
121
+
122
+ .toggle:where(
123
+ .toggle-group[data-variant='outline'] > .toggle:not([data-variant])
124
+ )[aria-pressed='true'] {
125
+ background-color: var(--accent);
126
+ color: var(--accent-foreground);
127
+ }
128
+ }
@@ -0,0 +1,176 @@
1
+ /* Attachment */
2
+ @layer loseta.style {
3
+ .attachment {
4
+ border-color: var(--border);
5
+ border-radius: var(--radius-xl);
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-lg);
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.625rem;
69
+ padding-block: 0.5rem;
70
+ }
71
+
72
+ &:has(> [data-slot='media']) {
73
+ padding: 0.5rem;
74
+ }
75
+
76
+ > [data-slot='media'] {
77
+ width: 2.5rem;
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.5rem;
92
+ padding-block: 0.375rem;
93
+ }
94
+
95
+ &:has(> [data-slot='media']) {
96
+ padding: 0.375rem;
97
+ }
98
+
99
+ > [data-slot='media'] {
100
+ width: 2rem;
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-lg);
116
+ font-size: var(--text-xs);
117
+ line-height: var(--text-xs--line-height);
118
+
119
+ &:has(> [data-slot='content']) {
120
+ padding-inline: 0.375rem;
121
+ padding-block: 0.25rem;
122
+ }
123
+
124
+ &:has(> [data-slot='media']) {
125
+ padding: 0.25rem;
126
+ }
127
+
128
+ > [data-slot='media'] {
129
+ width: 1.75rem;
130
+ border-radius: var(--radius-md);
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-lg);
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-xl);
6
+ padding-inline: 0.75rem;
7
+ padding-block: 0.5rem;
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.375rem;
120
+ padding-block: 0.125rem;
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.25rem;
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-lg);
9
+ background-color: var(--background);
10
+ }
11
+
12
+ .message-scroller-viewport {
13
+ scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
14
+ padding: 1rem;
15
+ }
16
+
17
+ .message-scroller [data-slot='content'] {
18
+ gap: 1rem;
19
+ }
20
+
21
+ .message-scroller [data-slot='jump'] {
22
+ width: 2rem;
23
+ height: 2rem;
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-md);
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.5rem;
5
+ font-size: var(--text-sm);
6
+ line-height: var(--text-sm--line-height);
7
+
8
+ > [data-slot='content'] {
9
+ gap: 0.625rem;
10
+ }
11
+
12
+ [data-slot='header'],
13
+ [data-slot='footer'] {
14
+ padding-inline: 0.75rem;
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: 2rem;
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: 2rem;
35
+ height: 2rem;
36
+ object-fit: cover;
37
+ }
38
+ }
39
+ }