loseta 0.13.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.
Files changed (115) hide show
  1. package/README.md +2 -1
  2. package/dist/commands/add.js +4 -2
  3. package/dist/commands/add.js.map +1 -1
  4. package/dist/commands/list.js +7 -2
  5. package/dist/commands/list.js.map +1 -1
  6. package/package.json +1 -1
  7. package/registry/examples/message-scroller.html +1 -1
  8. package/registry/examples/sidebar.html +1 -1
  9. package/registry/registry.json +646 -16
  10. package/registry/styles/luma/attachment.css +176 -0
  11. package/registry/styles/luma/bubble.css +147 -0
  12. package/registry/styles/luma/calendar.css +78 -0
  13. package/registry/styles/luma/carousel.css +63 -0
  14. package/registry/styles/luma/chart.css +51 -0
  15. package/registry/styles/luma/combobox.css +59 -0
  16. package/registry/styles/luma/command.css +21 -0
  17. package/registry/styles/luma/marker.css +35 -0
  18. package/registry/styles/luma/message-scroller.css +47 -0
  19. package/registry/styles/luma/message.css +39 -0
  20. package/registry/styles/luma/primitives/listbox.css +71 -0
  21. package/registry/styles/luma/questionnaire.css +141 -0
  22. package/registry/styles/luma/resizable.css +34 -0
  23. package/registry/styles/luma/select.css +75 -0
  24. package/registry/styles/luma/trace.css +85 -0
  25. package/registry/styles/lyra/attachment.css +176 -0
  26. package/registry/styles/lyra/bubble.css +147 -0
  27. package/registry/styles/lyra/calendar.css +78 -0
  28. package/registry/styles/lyra/carousel.css +63 -0
  29. package/registry/styles/lyra/chart.css +51 -0
  30. package/registry/styles/lyra/combobox.css +59 -0
  31. package/registry/styles/lyra/command.css +21 -0
  32. package/registry/styles/lyra/marker.css +35 -0
  33. package/registry/styles/lyra/message-scroller.css +47 -0
  34. package/registry/styles/lyra/message.css +39 -0
  35. package/registry/styles/lyra/primitives/listbox.css +71 -0
  36. package/registry/styles/lyra/questionnaire.css +141 -0
  37. package/registry/styles/lyra/resizable.css +34 -0
  38. package/registry/styles/lyra/select.css +75 -0
  39. package/registry/styles/lyra/trace.css +85 -0
  40. package/registry/styles/maia/attachment.css +176 -0
  41. package/registry/styles/maia/bubble.css +147 -0
  42. package/registry/styles/maia/calendar.css +78 -0
  43. package/registry/styles/maia/carousel.css +63 -0
  44. package/registry/styles/maia/chart.css +51 -0
  45. package/registry/styles/maia/combobox.css +59 -0
  46. package/registry/styles/maia/command.css +21 -0
  47. package/registry/styles/maia/marker.css +35 -0
  48. package/registry/styles/maia/message-scroller.css +47 -0
  49. package/registry/styles/maia/message.css +39 -0
  50. package/registry/styles/maia/primitives/listbox.css +71 -0
  51. package/registry/styles/maia/questionnaire.css +141 -0
  52. package/registry/styles/maia/resizable.css +34 -0
  53. package/registry/styles/maia/select.css +75 -0
  54. package/registry/styles/maia/trace.css +85 -0
  55. package/registry/styles/mira/attachment.css +176 -0
  56. package/registry/styles/mira/bubble.css +147 -0
  57. package/registry/styles/mira/calendar.css +78 -0
  58. package/registry/styles/mira/carousel.css +63 -0
  59. package/registry/styles/mira/chart.css +51 -0
  60. package/registry/styles/mira/combobox.css +59 -0
  61. package/registry/styles/mira/command.css +21 -0
  62. package/registry/styles/mira/marker.css +35 -0
  63. package/registry/styles/mira/message-scroller.css +47 -0
  64. package/registry/styles/mira/message.css +39 -0
  65. package/registry/styles/mira/primitives/listbox.css +71 -0
  66. package/registry/styles/mira/questionnaire.css +141 -0
  67. package/registry/styles/mira/resizable.css +34 -0
  68. package/registry/styles/mira/select.css +75 -0
  69. package/registry/styles/mira/trace.css +85 -0
  70. package/registry/styles/nova/select.css +4 -0
  71. package/registry/styles/rhea/attachment.css +176 -0
  72. package/registry/styles/rhea/bubble.css +147 -0
  73. package/registry/styles/rhea/calendar.css +78 -0
  74. package/registry/styles/rhea/carousel.css +63 -0
  75. package/registry/styles/rhea/chart.css +51 -0
  76. package/registry/styles/rhea/combobox.css +59 -0
  77. package/registry/styles/rhea/command.css +21 -0
  78. package/registry/styles/rhea/marker.css +35 -0
  79. package/registry/styles/rhea/message-scroller.css +47 -0
  80. package/registry/styles/rhea/message.css +39 -0
  81. package/registry/styles/rhea/primitives/listbox.css +71 -0
  82. package/registry/styles/rhea/questionnaire.css +141 -0
  83. package/registry/styles/rhea/resizable.css +34 -0
  84. package/registry/styles/rhea/select.css +75 -0
  85. package/registry/styles/rhea/trace.css +85 -0
  86. package/registry/styles/sera/attachment.css +176 -0
  87. package/registry/styles/sera/bubble.css +147 -0
  88. package/registry/styles/sera/calendar.css +82 -0
  89. package/registry/styles/sera/carousel.css +63 -0
  90. package/registry/styles/sera/chart.css +51 -0
  91. package/registry/styles/sera/combobox.css +60 -0
  92. package/registry/styles/sera/command.css +21 -0
  93. package/registry/styles/sera/marker.css +35 -0
  94. package/registry/styles/sera/message-scroller.css +47 -0
  95. package/registry/styles/sera/message.css +39 -0
  96. package/registry/styles/sera/primitives/listbox.css +71 -0
  97. package/registry/styles/sera/questionnaire.css +147 -0
  98. package/registry/styles/sera/resizable.css +34 -0
  99. package/registry/styles/sera/select.css +76 -0
  100. package/registry/styles/sera/trace.css +87 -0
  101. package/registry/styles/vega/attachment.css +176 -0
  102. package/registry/styles/vega/bubble.css +147 -0
  103. package/registry/styles/vega/calendar.css +78 -0
  104. package/registry/styles/vega/carousel.css +63 -0
  105. package/registry/styles/vega/chart.css +51 -0
  106. package/registry/styles/vega/combobox.css +59 -0
  107. package/registry/styles/vega/command.css +21 -0
  108. package/registry/styles/vega/marker.css +35 -0
  109. package/registry/styles/vega/message-scroller.css +47 -0
  110. package/registry/styles/vega/message.css +39 -0
  111. package/registry/styles/vega/primitives/listbox.css +71 -0
  112. package/registry/styles/vega/questionnaire.css +141 -0
  113. package/registry/styles/vega/resizable.css +34 -0
  114. package/registry/styles/vega/select.css +75 -0
  115. package/registry/styles/vega/trace.css +85 -0
@@ -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,71 @@
1
+ /* Listbox primitive */
2
+ @layer loseta.style {
3
+ [data-popover]:has(> [role='listbox']) {
4
+ gap: 0;
5
+ width: 100%;
6
+ overflow-x: hidden;
7
+ overflow-y: auto;
8
+ border-radius: var(--radius-3xl);
9
+ background-color: var(--popover);
10
+ padding: 0.375rem;
11
+ color: var(--popover-foreground);
12
+ box-shadow: 0 0 0 1px color-mix(in oklab, var(--foreground) 10%, transparent), var(--shadow-lg);
13
+ transition-duration: 100ms;
14
+ }
15
+
16
+ [role='listbox'] {
17
+ & [role='option'] {
18
+ gap: 0.625rem;
19
+ border-radius: var(--radius-2xl);
20
+ padding-inline: 0.75rem;
21
+ padding-inline-end: 2rem;
22
+ padding-block: 0.5rem;
23
+ font-size: var(--text-sm);
24
+ line-height: var(--text-sm--line-height);
25
+
26
+ & svg {
27
+ width: 1rem;
28
+ height: 1rem;
29
+ }
30
+
31
+ &[aria-selected='true'] {
32
+ font-weight: 500;
33
+ }
34
+
35
+ &:hover:not([aria-disabled='true']):not(:disabled),
36
+ &[data-highlighted] {
37
+ background-color: var(--accent);
38
+ color: var(--accent-foreground);
39
+ }
40
+
41
+ &[aria-disabled='true'] {
42
+ color: var(--muted-foreground);
43
+ }
44
+ }
45
+
46
+ & [data-slot='indicator'] {
47
+ position: absolute;
48
+ inset-inline-end: 0.75rem;
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ }
53
+
54
+ & [data-slot='label'] {
55
+ padding-inline: 0.75rem;
56
+ padding-block: 0.5rem;
57
+ font-size: var(--text-xs);
58
+ line-height: var(--text-xs--line-height);
59
+ font-weight: 500;
60
+ color: var(--muted-foreground);
61
+ }
62
+
63
+ & [data-slot='empty'] {
64
+ padding-inline: 0.75rem;
65
+ padding-block: 0.75rem;
66
+ font-size: var(--text-sm);
67
+ line-height: var(--text-sm--line-height);
68
+ color: var(--muted-foreground);
69
+ }
70
+ }
71
+ }
@@ -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,34 @@
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-4xl);
8
+ background-color: var(--background);
9
+
10
+ > .resizable-panel {
11
+ padding: 1.25rem;
12
+ font-size: var(--text-sm);
13
+ line-height: var(--text-sm--line-height);
14
+ }
15
+
16
+ > [data-slot='handle'] {
17
+ flex-basis: 0.75rem;
18
+ background-color: var(--background);
19
+
20
+ &::before {
21
+ background-color: var(--border);
22
+ }
23
+
24
+ &:hover::before,
25
+ &:focus-visible::before {
26
+ background-color: var(--ring);
27
+ }
28
+
29
+ &:focus-visible {
30
+ box-shadow: inset 0 0 0 1px var(--ring);
31
+ }
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,75 @@
1
+ /* Select */
2
+ @layer loseta.style {
3
+ .select {
4
+ > button {
5
+ height: 2.25rem;
6
+ border-style: solid;
7
+ border-width: 1px;
8
+ border-color: var(--input);
9
+ border-radius: var(--radius-3xl);
10
+ background-color: light-dark(
11
+ transparent,
12
+ color-mix(in oklab, var(--input) 30%, transparent)
13
+ );
14
+ padding-inline: 0.75rem;
15
+ font-size: var(--text-sm);
16
+ line-height: var(--text-sm--line-height);
17
+ font-weight: 400;
18
+ text-align: start;
19
+ transition-property: color, background-color, border-color, box-shadow;
20
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
21
+ transition-duration: 150ms;
22
+
23
+ &:hover {
24
+ background-color: light-dark(
25
+ var(--muted),
26
+ color-mix(in oklab, var(--input) 50%, transparent)
27
+ );
28
+ }
29
+
30
+ &:focus-visible {
31
+ border-color: var(--ring);
32
+ box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
33
+ }
34
+
35
+ &[aria-invalid='true'] {
36
+ border-color: light-dark(
37
+ var(--destructive),
38
+ color-mix(in oklab, var(--destructive) 50%, transparent)
39
+ );
40
+ box-shadow: 0 0 0 3px light-dark(
41
+ color-mix(in oklab, var(--destructive) 20%, transparent),
42
+ color-mix(in oklab, var(--destructive) 40%, transparent)
43
+ );
44
+ }
45
+
46
+ > svg {
47
+ width: 1rem;
48
+ height: 1rem;
49
+ color: var(--muted-foreground);
50
+ }
51
+ }
52
+
53
+ &[data-size='sm'] > button {
54
+ height: 2rem;
55
+ font-size: var(--text-xs);
56
+ line-height: var(--text-xs--line-height);
57
+ }
58
+
59
+ [data-slot='value'] {
60
+ flex: 1 1 auto;
61
+ overflow: hidden;
62
+ text-align: start;
63
+ text-overflow: ellipsis;
64
+ white-space: nowrap;
65
+ }
66
+
67
+ [data-slot='value'][data-placeholder] {
68
+ color: var(--muted-foreground);
69
+ }
70
+
71
+ &:is(:hover, :focus-visible, [aria-expanded='true']) [data-slot='value'][data-placeholder] {
72
+ color: var(--foreground);
73
+ }
74
+ }
75
+ }
@@ -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
+ }
@@ -0,0 +1,176 @@
1
+ /* Attachment */
2
+ @layer loseta.style {
3
+ .attachment {
4
+ border-color: var(--border);
5
+ border-radius: 0;
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: 0;
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-xs);
65
+ line-height: var(--text-xs--line-height);
66
+
67
+ &:has(> [data-slot='content']) {
68
+ padding-inline: 0.5rem;
69
+ padding-block: 0.375rem;
70
+ }
71
+
72
+ &:has(> [data-slot='media']) {
73
+ padding: 0.375rem;
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: 0;
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: 0;
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: 0;
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
+ }