@semantic-components/ui 0.57.0 → 0.61.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.
@@ -1,11 +0,0 @@
1
- ::-webkit-scrollbar {
2
- @apply w-2.5 h-2.5;
3
- }
4
-
5
- ::-webkit-scrollbar-track {
6
- @apply bg-transparent;
7
- }
8
-
9
- ::-webkit-scrollbar-thumb {
10
- @apply rounded-full bg-border border-[1px] border-transparent border-solid bg-clip-padding;
11
- }
package/shiki-styles.css DELETED
@@ -1,3 +0,0 @@
1
- pre.shiki {
2
- @apply p-6 rounded-md overflow-auto border-1;
3
- }
package/tiptap-styles.css DELETED
@@ -1,72 +0,0 @@
1
- /* tiptap-styles.css */
2
-
3
- /* Base styles for the editor content */
4
- .ProseMirror {
5
- @apply text-base text-foreground;
6
- }
7
-
8
- /* Placeholder */
9
- .ProseMirror p.is-editor-empty:first-child::before {
10
- content: attr(data-placeholder);
11
- @apply text-muted-foreground float-left h-0 pointer-events-none;
12
- }
13
-
14
- /* Headings */
15
- .ProseMirror h1 {
16
- @apply text-3xl font-bold mt-6 mb-4;
17
- }
18
-
19
- .ProseMirror h2 {
20
- @apply text-2xl font-bold mt-5 mb-3;
21
- }
22
-
23
- .ProseMirror h3 {
24
- @apply text-xl font-bold mt-4 mb-2;
25
- }
26
-
27
- /* Paragraphs and spacing */
28
- .ProseMirror p {
29
- @apply my-2;
30
- }
31
-
32
- /* Lists */
33
- .ProseMirror ul {
34
- @apply list-disc pl-6 my-2;
35
- }
36
-
37
- .ProseMirror ol {
38
- @apply list-decimal pl-6 my-2;
39
- }
40
-
41
- /* Block quotes */
42
- .ProseMirror blockquote {
43
- @apply border-l-4 border-muted pl-4 italic my-4;
44
- }
45
-
46
- /* Code blocks */
47
- .ProseMirror pre {
48
- @apply bg-muted p-2 rounded my-2 text-sm font-mono;
49
- }
50
-
51
- .ProseMirror code {
52
- @apply bg-muted px-1 py-0.5 rounded text-sm font-mono;
53
- }
54
-
55
- /* Table styles */
56
- .ProseMirror table {
57
- @apply border-collapse w-full my-4;
58
- }
59
-
60
- .ProseMirror th {
61
- @apply border border-border bg-muted font-bold p-2;
62
- }
63
-
64
- .ProseMirror td {
65
- @apply border border-border p-2;
66
- }
67
-
68
- /* Dark mode adjustments - these will be applied when dark mode is active */
69
- .dark .ProseMirror pre,
70
- .dark .ProseMirror code {
71
- @apply bg-muted text-muted-foreground;
72
- }
@@ -1,304 +0,0 @@
1
- .prose {
2
- --prose-color: var(--color-gray-700);
3
- --prose-heading-color: var(--color-gray-950);
4
- --prose-strong-color: var(--color-gray-950);
5
- --prose-link-color: var(--color-gray-950);
6
- --prose-code-color: var(--color-gray-950);
7
- --prose-marker-color: color-mix(in oklab, var(--color-gray-700) 25%, transparent);
8
- --prose-link-underline-color: var(--color-sky-400);
9
- --prose-th-borders: var(--color-gray-300);
10
- --prose-td-borders: var(--color-gray-200);
11
- --prose-hr-color: color-mix(in oklab, var(--color-gray-950) 5%, transparent);
12
- --prose-blockquote-border-color: var(--color-gray-300);
13
-
14
- &:where(.dark, .dark *) {
15
- --prose-color: var(--color-gray-300);
16
- --prose-heading-color: var(--color-white);
17
- --prose-strong-color: var(--color-white);
18
- --prose-link-color: var(--color-white);
19
- --prose-code-color: var(--color-white);
20
- --prose-marker-color: color-mix(in oklab, var(--color-gray-300) 35%, transparent);
21
- --prose-link-underline-color: var(--color-sky-400);
22
- --prose-th-borders: var(--color-gray-600);
23
- --prose-td-borders: var(--color-gray-700);
24
- --prose-hr-color: color-mix(in oklab, var(--color-white) 10%, transparent);
25
- --prose-blockquote-border-color: var(--color-gray-600);
26
- }
27
- @media (prefers-color-scheme: dark) {
28
- &:where(.system, .system *) {
29
- --prose-color: var(--color-gray-300);
30
- --prose-heading-color: var(--color-white);
31
- --prose-strong-color: var(--color-white);
32
- --prose-link-color: var(--color-white);
33
- --prose-code-color: var(--color-white);
34
- --prose-marker-color: color-mix(in oklab, var(--color-gray-300) 35%, transparent);
35
- --prose-link-underline-color: var(--color-sky-400);
36
- --prose-th-borders: var(--color-gray-600);
37
- --prose-td-borders: var(--color-gray-700);
38
- --prose-hr-color: color-mix(in oklab, var(--color-white) 10%, transparent);
39
- --prose-blockquote-border-color: var(--color-gray-600);
40
- }
41
- }
42
-
43
- color: var(--prose-color);
44
- font-size: var(--text-sm);
45
- line-height: 2;
46
-
47
- *:where(:not(.not-prose, .not-prose *)) + *:where(:not(.not-prose, .not-prose *)) {
48
- margin-top: calc(var(--spacing) * 6);
49
- }
50
-
51
- h2:where(:not(.not-prose, .not-prose *)) {
52
- font-size: var(--text-lg);
53
- line-height: calc(28 / 18);
54
- letter-spacing: -0.025em;
55
- color: var(--prose-code-color);
56
- font-weight: var(--font-weight-semibold);
57
- margin-top: calc(var(--spacing) * 20);
58
- }
59
-
60
- h2:has(+ h3):where(:not(.not-prose, .not-prose *)) {
61
- font-size: var(--text-xs);
62
- line-height: 2;
63
- font-weight: var(--font-weight-medium);
64
- font-family: var(--font-mono);
65
- font-variant-ligatures: none;
66
- letter-spacing: 0.1em;
67
- color: var(--prose-color);
68
- text-transform: uppercase;
69
- }
70
-
71
- h3:where(:not(.not-prose, .not-prose *)) {
72
- font-size: var(--text-base);
73
- line-height: calc(28 / 18);
74
- color: var(--prose-heading-color);
75
- font-weight: var(--font-weight-semibold);
76
- margin-top: calc(var(--spacing) * 16);
77
- }
78
-
79
- h2 + h3:where(:not(.not-prose, .not-prose *)) {
80
- margin-top: calc(var(--spacing) * 6);
81
- }
82
-
83
- h4:where(:not(.not-prose, .not-prose *)) {
84
- font-size: var(--text-sm);
85
- line-height: calc(28 / 14);
86
- color: var(--prose-heading-color);
87
- font-weight: var(--font-weight-semibold);
88
- margin-top: calc(var(--spacing) * 12);
89
- }
90
-
91
- :is(h2, h3, h4):where(:not(.not-prose, .not-prose *)) {
92
- scroll-margin-top: calc(var(--spacing) * 32);
93
- @variant lg {
94
- scroll-margin-top: calc(var(--spacing) * 18);
95
- }
96
- }
97
-
98
- ul:where(:not(.not-prose, .not-prose *)) {
99
- padding-left: calc(var(--spacing) * 6);
100
- list-style-type: square;
101
- }
102
-
103
- ul li:where(:not(.not-prose, .not-prose *)) {
104
- padding-left: calc(var(--spacing) * 3);
105
- }
106
-
107
- ul li + li:where(:not(.not-prose, .not-prose *)) {
108
- margin-top: calc(var(--spacing) * 4);
109
- }
110
-
111
- ul li:where(:not(.not-prose, .not-prose *))::marker {
112
- color: var(--prose-marker-color);
113
- }
114
-
115
- a:not(:where(:is(h2, h3, h4) *)):where(:not(.not-prose, .not-prose *)) {
116
- color: var(--prose-link-color);
117
- font-weight: var(--font-weight-semibold);
118
- text-decoration: underline;
119
- text-underline-offset: 3px;
120
- text-decoration-color: var(--prose-link-underline-color);
121
- text-decoration-thickness: 1px;
122
- & code {
123
- font-weight: var(--font-weight-semibold);
124
- }
125
- }
126
-
127
- a:hover:where(:not(.not-prose, .not-prose *)) {
128
- text-decoration-thickness: 2px;
129
- }
130
-
131
- strong:where(:not(.not-prose, .not-prose *)) {
132
- color: var(--prose-strong-color);
133
- font-weight: var(--font-weight-semibold);
134
- }
135
-
136
- code:where(:not(.not-prose, .not-prose *)) {
137
- font-variant-ligatures: none;
138
- font-family: var(--font-mono);
139
- font-weight: var(--font-weight-medium);
140
- color: var(--prose-code-color);
141
- }
142
-
143
- :where(h2, h3, h4) code:where(:not(.not-prose, .not-prose *)) {
144
- font-weight: var(--font-weight-semibold);
145
- }
146
-
147
- code:where(:not(.not-prose, .not-prose *))::before,
148
- code:where(:not(.not-prose, .not-prose *))::after {
149
- display: inline;
150
- content: '`';
151
- }
152
-
153
- pre:where(:not(.not-prose, .not-prose *)) {
154
- margin-top: calc(var(--spacing) * 4);
155
- margin-bottom: calc(var(--spacing) * 10);
156
- }
157
-
158
- pre code * + *:where(:not(.not-prose, .not-prose *)) {
159
- margin-top: 0;
160
- }
161
-
162
- pre code:where(:not(.not-prose, .not-prose *))::before,
163
- pre code:where(:not(.not-prose, .not-prose *))::after {
164
- content: none;
165
- }
166
-
167
- pre code:where(:not(.not-prose, .not-prose *)) {
168
- font-variant-ligatures: none;
169
- font-family: var(--font-mono);
170
- font-size: var(--text-sm);
171
- line-height: 2;
172
- }
173
-
174
- table:where(:not(.not-prose, .not-prose *)) {
175
- width: 100%;
176
- table-layout: auto;
177
- margin-top: 2em;
178
- margin-bottom: 2em;
179
- font-size: var(--text-sm);
180
- line-height: 1.4;
181
- }
182
-
183
- thead:where(:not(.not-prose, .not-prose *)) {
184
- border-bottom-width: 1px;
185
- border-bottom-color: var(--prose-th-borders);
186
- }
187
-
188
- thead th:where(:not(.not-prose, .not-prose *)) {
189
- color: var(--prose-heading-color);
190
- font-weight: 600;
191
- vertical-align: bottom;
192
- padding-inline-end: 0.6em;
193
- padding-bottom: 0.8em;
194
- padding-inline-start: 0.6em;
195
- }
196
-
197
- thead th:first-child:where(:not(.not-prose, .not-prose *)) {
198
- padding-inline-start: 0;
199
- }
200
-
201
- thead th:last-child:where(:not(.not-prose, .not-prose *)) {
202
- padding-inline-end: 0;
203
- }
204
-
205
- tbody tr:where(:not(.not-prose, .not-prose *)) {
206
- border-bottom-width: 1px;
207
- border-bottom-color: var(--prose-td-borders);
208
- }
209
-
210
- tbody tr:last-child:where(:not(.not-prose, .not-prose *)) {
211
- border-bottom-width: 0;
212
- }
213
-
214
- tbody td:where(:not(.not-prose, .not-prose *)) {
215
- vertical-align: baseline;
216
- }
217
-
218
- tfoot:where(:not(.not-prose, .not-prose *)) {
219
- border-top-width: 1px;
220
- border-top-color: var(--prose-th-borders);
221
- }
222
-
223
- tfoot td:where(:not(.not-prose, .not-prose *)) {
224
- vertical-align: top;
225
- }
226
-
227
- tbody td:where(:not(.not-prose, .not-prose *)),
228
- tfoot td:where(:not(.not-prose, .not-prose *)) {
229
- padding-top: 0.8em;
230
- padding-inline-end: 0.6em;
231
- padding-bottom: 0.8em;
232
- padding-inline-start: 0.6em;
233
- }
234
-
235
- tbody td:first-child:where(:not(.not-prose, .not-prose *)),
236
- tfoot td:first-child:where(:not(.not-prose, .not-prose *)) {
237
- padding-inline-start: 0;
238
- }
239
-
240
- tbody td:last-child:where(:not(.not-prose, .not-prose *)),
241
- tfoot td:last-child:where(:not(.not-prose, .not-prose *)) {
242
- padding-inline-end: 0;
243
- }
244
-
245
- th:where(:not(.not-prose, .not-prose *)),
246
- td:where(:not(.not-prose, .not-prose *)) {
247
- text-align: start;
248
- }
249
-
250
- td code:where(:not(.not-prose, .not-prose *)) {
251
- font-size: 0.8125rem;
252
- }
253
-
254
- hr:where(:not(.not-prose, .not-prose *)) {
255
- border-color: var(--prose-hr-color);
256
- margin-block: --spacing(16);
257
- & + h2 {
258
- margin-top: --spacing(16);
259
- }
260
- }
261
-
262
- blockquote {
263
- font-style: italic;
264
- border-inline-start-width: 0.25rem;
265
- border-inline-start-color: var(--prose-blockquote-border-color);
266
- padding-inline-start: calc(var(--spacing) * 4);
267
- }
268
-
269
- blockquote p:first-of-type::before {
270
- content: open-quote;
271
- }
272
-
273
- blockquote p:last-of-type::after {
274
- content: close-quote;
275
- }
276
-
277
- figure:where(:not(.not-prose, .not-prose *)) {
278
- figcaption:where(:not(.not-prose, .not-prose *)) {
279
- margin-top: calc(var(--spacing) * 3);
280
- text-align: center;
281
- font-size: var(--text-sm);
282
- line-height: var(--text-sm--line-height);
283
- font-style: italic;
284
- color: color-mix(in oklab, var(--prose-color) 75%, transparent);
285
- }
286
- }
287
-
288
- :first-child:where(:not(.not-prose, .not-prose *)) {
289
- margin-top: 0;
290
- }
291
-
292
- :last-child:where(:not(.not-prose, .not-prose *)) {
293
- margin-bottom: 0;
294
- }
295
- }
296
-
297
- .prose-blog {
298
- img:where(:not(.not-prose, .not-prose *)) {
299
- @media (max-width: theme(--breakpoint-sm)) {
300
- margin-inline: calc(var(--spacing) * -4);
301
- max-width: calc(100% + calc(var(--spacing) * 8));
302
- }
303
- }
304
- }