@solostylist/ui-kit 1.0.168 → 1.0.170

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 (31) hide show
  1. package/dist/ContentCopy-7nFBtjhs.js +11 -0
  2. package/dist/main.d.ts +4 -0
  3. package/dist/main.js +110 -102
  4. package/dist/s-ai-tool-bar/s-ai-tool-bar.js +2 -2
  5. package/dist/s-blur-text/s-blur-text.js +1 -1
  6. package/dist/s-breadcrumbs/s-breadcrumbs.js +2 -2
  7. package/dist/s-category-card/s-category-card.js +2 -2
  8. package/dist/s-code-block/index.d.ts +2 -0
  9. package/dist/s-code-block/index.js +4 -0
  10. package/dist/s-code-block/package.json +5 -0
  11. package/dist/s-code-block/s-code-block.d.ts +36 -0
  12. package/dist/s-code-block/s-code-block.js +1061 -0
  13. package/dist/s-copyable-text/s-copyable-text.js +17 -21
  14. package/dist/s-gradient-icon/s-gradient-icon.js +2 -2
  15. package/dist/s-scroll-reveal/s-scroll-reveal.js +2 -2
  16. package/dist/s-scroll-velocity/index.d.ts +6 -0
  17. package/dist/s-scroll-velocity/index.js +8 -0
  18. package/dist/s-scroll-velocity/package.json +5 -0
  19. package/dist/s-scroll-velocity/s-scroll-velocity.d.ts +24 -0
  20. package/dist/s-scroll-velocity/s-scroll-velocity.js +22 -0
  21. package/dist/s-scroll-velocity/scroll-velocity-container.d.ts +20 -0
  22. package/dist/s-scroll-velocity/scroll-velocity-container.js +40 -0
  23. package/dist/s-scroll-velocity/scroll-velocity-row.d.ts +27 -0
  24. package/dist/s-scroll-velocity/scroll-velocity-row.js +131 -0
  25. package/dist/s-stripe/s-stripe.js +2 -2
  26. package/dist/s-two-pane-layout/index.js +1 -1
  27. package/dist/s-two-pane-layout/s-two-pane-layout.js +2 -2
  28. package/dist/s-zoom-image/index.js +1 -1
  29. package/dist/s-zoom-image/s-zoom-image.js +2 -2
  30. package/dist/theme/theme-primitives.js +1 -1
  31. package/package.json +17 -3
@@ -0,0 +1,1061 @@
1
+ import { j as e } from "../jsx-runtime-OVHDjVDe.js";
2
+ import { useState as u } from "react";
3
+ import { useColorScheme as g, Box as b, IconButton as k } from "@mui/material";
4
+ import { Prism as m } from "react-syntax-highlighter";
5
+ import { C as f, a as w } from "../ContentCopy-7nFBtjhs.js";
6
+ const v = {
7
+ 'code[class*="language-"]': {
8
+ background: "hsl(220, 13%, 18%)",
9
+ color: "hsl(220, 14%, 71%)",
10
+ textShadow: "0 1px rgba(0, 0, 0, 0.3)",
11
+ fontFamily: '"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',
12
+ direction: "ltr",
13
+ textAlign: "left",
14
+ whiteSpace: "pre",
15
+ wordSpacing: "normal",
16
+ wordBreak: "normal",
17
+ lineHeight: "1.5",
18
+ MozTabSize: "2",
19
+ OTabSize: "2",
20
+ tabSize: "2",
21
+ WebkitHyphens: "none",
22
+ MozHyphens: "none",
23
+ msHyphens: "none",
24
+ hyphens: "none"
25
+ },
26
+ 'pre[class*="language-"]': {
27
+ background: "hsl(220, 13%, 18%)",
28
+ color: "hsl(220, 14%, 71%)",
29
+ textShadow: "0 1px rgba(0, 0, 0, 0.3)",
30
+ fontFamily: '"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',
31
+ direction: "ltr",
32
+ textAlign: "left",
33
+ whiteSpace: "pre",
34
+ wordSpacing: "normal",
35
+ wordBreak: "normal",
36
+ lineHeight: "1.5",
37
+ MozTabSize: "2",
38
+ OTabSize: "2",
39
+ tabSize: "2",
40
+ WebkitHyphens: "none",
41
+ MozHyphens: "none",
42
+ msHyphens: "none",
43
+ hyphens: "none",
44
+ padding: "1em",
45
+ margin: "0.5em 0",
46
+ overflow: "auto",
47
+ borderRadius: "0.3em"
48
+ },
49
+ 'code[class*="language-"]::-moz-selection': {
50
+ background: "hsl(220, 13%, 28%)",
51
+ color: "inherit",
52
+ textShadow: "none"
53
+ },
54
+ 'code[class*="language-"] *::-moz-selection': {
55
+ background: "hsl(220, 13%, 28%)",
56
+ color: "inherit",
57
+ textShadow: "none"
58
+ },
59
+ 'pre[class*="language-"] *::-moz-selection': {
60
+ background: "hsl(220, 13%, 28%)",
61
+ color: "inherit",
62
+ textShadow: "none"
63
+ },
64
+ 'code[class*="language-"]::selection': {
65
+ background: "hsl(220, 13%, 28%)",
66
+ color: "inherit",
67
+ textShadow: "none"
68
+ },
69
+ 'code[class*="language-"] *::selection': {
70
+ background: "hsl(220, 13%, 28%)",
71
+ color: "inherit",
72
+ textShadow: "none"
73
+ },
74
+ 'pre[class*="language-"] *::selection': {
75
+ background: "hsl(220, 13%, 28%)",
76
+ color: "inherit",
77
+ textShadow: "none"
78
+ },
79
+ ':not(pre) > code[class*="language-"]': {
80
+ padding: "0.2em 0.3em",
81
+ borderRadius: "0.3em",
82
+ whiteSpace: "normal"
83
+ },
84
+ comment: {
85
+ color: "hsl(220, 10%, 40%)",
86
+ fontStyle: "italic"
87
+ },
88
+ prolog: {
89
+ color: "hsl(220, 10%, 40%)"
90
+ },
91
+ cdata: {
92
+ color: "hsl(220, 10%, 40%)"
93
+ },
94
+ doctype: {
95
+ color: "hsl(220, 14%, 71%)"
96
+ },
97
+ punctuation: {
98
+ color: "hsl(220, 14%, 71%)"
99
+ },
100
+ entity: {
101
+ color: "hsl(220, 14%, 71%)",
102
+ cursor: "help"
103
+ },
104
+ "attr-name": {
105
+ color: "hsl(29, 54%, 61%)"
106
+ },
107
+ "class-name": {
108
+ color: "hsl(29, 54%, 61%)"
109
+ },
110
+ boolean: {
111
+ color: "hsl(29, 54%, 61%)"
112
+ },
113
+ constant: {
114
+ color: "hsl(29, 54%, 61%)"
115
+ },
116
+ number: {
117
+ color: "hsl(29, 54%, 61%)"
118
+ },
119
+ atrule: {
120
+ color: "hsl(29, 54%, 61%)"
121
+ },
122
+ keyword: {
123
+ color: "hsl(286, 60%, 67%)"
124
+ },
125
+ property: {
126
+ color: "hsl(355, 65%, 65%)"
127
+ },
128
+ tag: {
129
+ color: "hsl(355, 65%, 65%)"
130
+ },
131
+ symbol: {
132
+ color: "hsl(355, 65%, 65%)"
133
+ },
134
+ deleted: {
135
+ color: "hsl(355, 65%, 65%)"
136
+ },
137
+ important: {
138
+ color: "hsl(355, 65%, 65%)"
139
+ },
140
+ selector: {
141
+ color: "hsl(95, 38%, 62%)"
142
+ },
143
+ string: {
144
+ color: "hsl(95, 38%, 62%)"
145
+ },
146
+ char: {
147
+ color: "hsl(95, 38%, 62%)"
148
+ },
149
+ builtin: {
150
+ color: "hsl(95, 38%, 62%)"
151
+ },
152
+ inserted: {
153
+ color: "hsl(95, 38%, 62%)"
154
+ },
155
+ regex: {
156
+ color: "hsl(95, 38%, 62%)"
157
+ },
158
+ "attr-value": {
159
+ color: "hsl(95, 38%, 62%)"
160
+ },
161
+ "attr-value > .token.punctuation": {
162
+ color: "hsl(95, 38%, 62%)"
163
+ },
164
+ variable: {
165
+ color: "hsl(207, 82%, 66%)"
166
+ },
167
+ operator: {
168
+ color: "hsl(207, 82%, 66%)"
169
+ },
170
+ function: {
171
+ color: "hsl(207, 82%, 66%)"
172
+ },
173
+ url: {
174
+ color: "hsl(187, 47%, 55%)"
175
+ },
176
+ "attr-value > .token.punctuation.attr-equals": {
177
+ color: "hsl(220, 14%, 71%)"
178
+ },
179
+ "special-attr > .token.attr-value > .token.value.css": {
180
+ color: "hsl(220, 14%, 71%)"
181
+ },
182
+ ".language-css .token.selector": {
183
+ color: "hsl(355, 65%, 65%)"
184
+ },
185
+ ".language-css .token.property": {
186
+ color: "hsl(220, 14%, 71%)"
187
+ },
188
+ ".language-css .token.function": {
189
+ color: "hsl(187, 47%, 55%)"
190
+ },
191
+ ".language-css .token.url > .token.function": {
192
+ color: "hsl(187, 47%, 55%)"
193
+ },
194
+ ".language-css .token.url > .token.string.url": {
195
+ color: "hsl(95, 38%, 62%)"
196
+ },
197
+ ".language-css .token.important": {
198
+ color: "hsl(286, 60%, 67%)"
199
+ },
200
+ ".language-css .token.atrule .token.rule": {
201
+ color: "hsl(286, 60%, 67%)"
202
+ },
203
+ ".language-javascript .token.operator": {
204
+ color: "hsl(286, 60%, 67%)"
205
+ },
206
+ ".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation": {
207
+ color: "hsl(5, 48%, 51%)"
208
+ },
209
+ ".language-json .token.operator": {
210
+ color: "hsl(220, 14%, 71%)"
211
+ },
212
+ ".language-json .token.null.keyword": {
213
+ color: "hsl(29, 54%, 61%)"
214
+ },
215
+ ".language-markdown .token.url": {
216
+ color: "hsl(220, 14%, 71%)"
217
+ },
218
+ ".language-markdown .token.url > .token.operator": {
219
+ color: "hsl(220, 14%, 71%)"
220
+ },
221
+ ".language-markdown .token.url-reference.url > .token.string": {
222
+ color: "hsl(220, 14%, 71%)"
223
+ },
224
+ ".language-markdown .token.url > .token.content": {
225
+ color: "hsl(207, 82%, 66%)"
226
+ },
227
+ ".language-markdown .token.url > .token.url": {
228
+ color: "hsl(187, 47%, 55%)"
229
+ },
230
+ ".language-markdown .token.url-reference.url": {
231
+ color: "hsl(187, 47%, 55%)"
232
+ },
233
+ ".language-markdown .token.blockquote.punctuation": {
234
+ color: "hsl(220, 10%, 40%)",
235
+ fontStyle: "italic"
236
+ },
237
+ ".language-markdown .token.hr.punctuation": {
238
+ color: "hsl(220, 10%, 40%)",
239
+ fontStyle: "italic"
240
+ },
241
+ ".language-markdown .token.code-snippet": {
242
+ color: "hsl(95, 38%, 62%)"
243
+ },
244
+ ".language-markdown .token.bold .token.content": {
245
+ color: "hsl(29, 54%, 61%)"
246
+ },
247
+ ".language-markdown .token.italic .token.content": {
248
+ color: "hsl(286, 60%, 67%)"
249
+ },
250
+ ".language-markdown .token.strike .token.content": {
251
+ color: "hsl(355, 65%, 65%)"
252
+ },
253
+ ".language-markdown .token.strike .token.punctuation": {
254
+ color: "hsl(355, 65%, 65%)"
255
+ },
256
+ ".language-markdown .token.list.punctuation": {
257
+ color: "hsl(355, 65%, 65%)"
258
+ },
259
+ ".language-markdown .token.title.important > .token.punctuation": {
260
+ color: "hsl(355, 65%, 65%)"
261
+ },
262
+ bold: {
263
+ fontWeight: "bold"
264
+ },
265
+ italic: {
266
+ fontStyle: "italic"
267
+ },
268
+ namespace: {
269
+ Opacity: "0.8"
270
+ },
271
+ "token.tab:not(:empty):before": {
272
+ color: "hsla(220, 14%, 71%, 0.15)",
273
+ textShadow: "none"
274
+ },
275
+ "token.cr:before": {
276
+ color: "hsla(220, 14%, 71%, 0.15)",
277
+ textShadow: "none"
278
+ },
279
+ "token.lf:before": {
280
+ color: "hsla(220, 14%, 71%, 0.15)",
281
+ textShadow: "none"
282
+ },
283
+ "token.space:before": {
284
+ color: "hsla(220, 14%, 71%, 0.15)",
285
+ textShadow: "none"
286
+ },
287
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item": {
288
+ marginRight: "0.4em"
289
+ },
290
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button": {
291
+ background: "hsl(220, 13%, 26%)",
292
+ color: "hsl(220, 9%, 55%)",
293
+ padding: "0.1em 0.4em",
294
+ borderRadius: "0.3em"
295
+ },
296
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a": {
297
+ background: "hsl(220, 13%, 26%)",
298
+ color: "hsl(220, 9%, 55%)",
299
+ padding: "0.1em 0.4em",
300
+ borderRadius: "0.3em"
301
+ },
302
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span": {
303
+ background: "hsl(220, 13%, 26%)",
304
+ color: "hsl(220, 9%, 55%)",
305
+ padding: "0.1em 0.4em",
306
+ borderRadius: "0.3em"
307
+ },
308
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover": {
309
+ background: "hsl(220, 13%, 28%)",
310
+ color: "hsl(220, 14%, 71%)"
311
+ },
312
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus": {
313
+ background: "hsl(220, 13%, 28%)",
314
+ color: "hsl(220, 14%, 71%)"
315
+ },
316
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover": {
317
+ background: "hsl(220, 13%, 28%)",
318
+ color: "hsl(220, 14%, 71%)"
319
+ },
320
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus": {
321
+ background: "hsl(220, 13%, 28%)",
322
+ color: "hsl(220, 14%, 71%)"
323
+ },
324
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover": {
325
+ background: "hsl(220, 13%, 28%)",
326
+ color: "hsl(220, 14%, 71%)"
327
+ },
328
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus": {
329
+ background: "hsl(220, 13%, 28%)",
330
+ color: "hsl(220, 14%, 71%)"
331
+ },
332
+ ".line-highlight.line-highlight": {
333
+ background: "hsla(220, 100%, 80%, 0.04)"
334
+ },
335
+ ".line-highlight.line-highlight:before": {
336
+ background: "hsl(220, 13%, 26%)",
337
+ color: "hsl(220, 14%, 71%)",
338
+ padding: "0.1em 0.6em",
339
+ borderRadius: "0.3em",
340
+ boxShadow: "0 2px 0 0 rgba(0, 0, 0, 0.2)"
341
+ },
342
+ ".line-highlight.line-highlight[data-end]:after": {
343
+ background: "hsl(220, 13%, 26%)",
344
+ color: "hsl(220, 14%, 71%)",
345
+ padding: "0.1em 0.6em",
346
+ borderRadius: "0.3em",
347
+ boxShadow: "0 2px 0 0 rgba(0, 0, 0, 0.2)"
348
+ },
349
+ "pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before": {
350
+ backgroundColor: "hsla(220, 100%, 80%, 0.04)"
351
+ },
352
+ ".line-numbers.line-numbers .line-numbers-rows": {
353
+ borderRightColor: "hsla(220, 14%, 71%, 0.15)"
354
+ },
355
+ ".command-line .command-line-prompt": {
356
+ borderRightColor: "hsla(220, 14%, 71%, 0.15)"
357
+ },
358
+ ".line-numbers .line-numbers-rows > span:before": {
359
+ color: "hsl(220, 14%, 45%)"
360
+ },
361
+ ".command-line .command-line-prompt > span:before": {
362
+ color: "hsl(220, 14%, 45%)"
363
+ },
364
+ ".rainbow-braces .token.token.punctuation.brace-level-1": {
365
+ color: "hsl(355, 65%, 65%)"
366
+ },
367
+ ".rainbow-braces .token.token.punctuation.brace-level-5": {
368
+ color: "hsl(355, 65%, 65%)"
369
+ },
370
+ ".rainbow-braces .token.token.punctuation.brace-level-9": {
371
+ color: "hsl(355, 65%, 65%)"
372
+ },
373
+ ".rainbow-braces .token.token.punctuation.brace-level-2": {
374
+ color: "hsl(95, 38%, 62%)"
375
+ },
376
+ ".rainbow-braces .token.token.punctuation.brace-level-6": {
377
+ color: "hsl(95, 38%, 62%)"
378
+ },
379
+ ".rainbow-braces .token.token.punctuation.brace-level-10": {
380
+ color: "hsl(95, 38%, 62%)"
381
+ },
382
+ ".rainbow-braces .token.token.punctuation.brace-level-3": {
383
+ color: "hsl(207, 82%, 66%)"
384
+ },
385
+ ".rainbow-braces .token.token.punctuation.brace-level-7": {
386
+ color: "hsl(207, 82%, 66%)"
387
+ },
388
+ ".rainbow-braces .token.token.punctuation.brace-level-11": {
389
+ color: "hsl(207, 82%, 66%)"
390
+ },
391
+ ".rainbow-braces .token.token.punctuation.brace-level-4": {
392
+ color: "hsl(286, 60%, 67%)"
393
+ },
394
+ ".rainbow-braces .token.token.punctuation.brace-level-8": {
395
+ color: "hsl(286, 60%, 67%)"
396
+ },
397
+ ".rainbow-braces .token.token.punctuation.brace-level-12": {
398
+ color: "hsl(286, 60%, 67%)"
399
+ },
400
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix)": {
401
+ backgroundColor: "hsla(353, 100%, 66%, 0.15)"
402
+ },
403
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix)": {
404
+ backgroundColor: "hsla(353, 100%, 66%, 0.15)"
405
+ },
406
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection": {
407
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
408
+ },
409
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection": {
410
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
411
+ },
412
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection": {
413
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
414
+ },
415
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection": {
416
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
417
+ },
418
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection": {
419
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
420
+ },
421
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection": {
422
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
423
+ },
424
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection": {
425
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
426
+ },
427
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection": {
428
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
429
+ },
430
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix)": {
431
+ backgroundColor: "hsla(137, 100%, 55%, 0.15)"
432
+ },
433
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix)": {
434
+ backgroundColor: "hsla(137, 100%, 55%, 0.15)"
435
+ },
436
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection": {
437
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
438
+ },
439
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection": {
440
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
441
+ },
442
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection": {
443
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
444
+ },
445
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection": {
446
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
447
+ },
448
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection": {
449
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
450
+ },
451
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection": {
452
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
453
+ },
454
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection": {
455
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
456
+ },
457
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection": {
458
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
459
+ },
460
+ ".prism-previewer.prism-previewer:before": {
461
+ borderColor: "hsl(224, 13%, 17%)"
462
+ },
463
+ ".prism-previewer-gradient.prism-previewer-gradient div": {
464
+ borderColor: "hsl(224, 13%, 17%)",
465
+ borderRadius: "0.3em"
466
+ },
467
+ ".prism-previewer-color.prism-previewer-color:before": {
468
+ borderRadius: "0.3em"
469
+ },
470
+ ".prism-previewer-easing.prism-previewer-easing:before": {
471
+ borderRadius: "0.3em"
472
+ },
473
+ ".prism-previewer.prism-previewer:after": {
474
+ borderTopColor: "hsl(224, 13%, 17%)"
475
+ },
476
+ ".prism-previewer-flipped.prism-previewer-flipped.after": {
477
+ borderBottomColor: "hsl(224, 13%, 17%)"
478
+ },
479
+ ".prism-previewer-angle.prism-previewer-angle:before": {
480
+ background: "hsl(219, 13%, 22%)"
481
+ },
482
+ ".prism-previewer-time.prism-previewer-time:before": {
483
+ background: "hsl(219, 13%, 22%)"
484
+ },
485
+ ".prism-previewer-easing.prism-previewer-easing": {
486
+ background: "hsl(219, 13%, 22%)"
487
+ },
488
+ ".prism-previewer-angle.prism-previewer-angle circle": {
489
+ stroke: "hsl(220, 14%, 71%)",
490
+ strokeOpacity: "1"
491
+ },
492
+ ".prism-previewer-time.prism-previewer-time circle": {
493
+ stroke: "hsl(220, 14%, 71%)",
494
+ strokeOpacity: "1"
495
+ },
496
+ ".prism-previewer-easing.prism-previewer-easing circle": {
497
+ stroke: "hsl(220, 14%, 71%)",
498
+ fill: "transparent"
499
+ },
500
+ ".prism-previewer-easing.prism-previewer-easing path": {
501
+ stroke: "hsl(220, 14%, 71%)"
502
+ },
503
+ ".prism-previewer-easing.prism-previewer-easing line": {
504
+ stroke: "hsl(220, 14%, 71%)"
505
+ }
506
+ }, y = {
507
+ 'code[class*="language-"]': {
508
+ background: "hsl(230, 1%, 98%)",
509
+ color: "hsl(230, 8%, 24%)",
510
+ fontFamily: '"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',
511
+ direction: "ltr",
512
+ textAlign: "left",
513
+ whiteSpace: "pre",
514
+ wordSpacing: "normal",
515
+ wordBreak: "normal",
516
+ lineHeight: "1.5",
517
+ MozTabSize: "2",
518
+ OTabSize: "2",
519
+ tabSize: "2",
520
+ WebkitHyphens: "none",
521
+ MozHyphens: "none",
522
+ msHyphens: "none",
523
+ hyphens: "none"
524
+ },
525
+ 'pre[class*="language-"]': {
526
+ background: "hsl(230, 1%, 98%)",
527
+ color: "hsl(230, 8%, 24%)",
528
+ fontFamily: '"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',
529
+ direction: "ltr",
530
+ textAlign: "left",
531
+ whiteSpace: "pre",
532
+ wordSpacing: "normal",
533
+ wordBreak: "normal",
534
+ lineHeight: "1.5",
535
+ MozTabSize: "2",
536
+ OTabSize: "2",
537
+ tabSize: "2",
538
+ WebkitHyphens: "none",
539
+ MozHyphens: "none",
540
+ msHyphens: "none",
541
+ hyphens: "none",
542
+ padding: "1em",
543
+ margin: "0.5em 0",
544
+ overflow: "auto",
545
+ borderRadius: "0.3em"
546
+ },
547
+ 'code[class*="language-"]::-moz-selection': {
548
+ background: "hsl(230, 1%, 90%)",
549
+ color: "inherit"
550
+ },
551
+ 'code[class*="language-"] *::-moz-selection': {
552
+ background: "hsl(230, 1%, 90%)",
553
+ color: "inherit"
554
+ },
555
+ 'pre[class*="language-"] *::-moz-selection': {
556
+ background: "hsl(230, 1%, 90%)",
557
+ color: "inherit"
558
+ },
559
+ 'code[class*="language-"]::selection': {
560
+ background: "hsl(230, 1%, 90%)",
561
+ color: "inherit"
562
+ },
563
+ 'code[class*="language-"] *::selection': {
564
+ background: "hsl(230, 1%, 90%)",
565
+ color: "inherit"
566
+ },
567
+ 'pre[class*="language-"] *::selection': {
568
+ background: "hsl(230, 1%, 90%)",
569
+ color: "inherit"
570
+ },
571
+ ':not(pre) > code[class*="language-"]': {
572
+ padding: "0.2em 0.3em",
573
+ borderRadius: "0.3em",
574
+ whiteSpace: "normal"
575
+ },
576
+ comment: {
577
+ color: "hsl(230, 4%, 64%)",
578
+ fontStyle: "italic"
579
+ },
580
+ prolog: {
581
+ color: "hsl(230, 4%, 64%)"
582
+ },
583
+ cdata: {
584
+ color: "hsl(230, 4%, 64%)"
585
+ },
586
+ doctype: {
587
+ color: "hsl(230, 8%, 24%)"
588
+ },
589
+ punctuation: {
590
+ color: "hsl(230, 8%, 24%)"
591
+ },
592
+ entity: {
593
+ color: "hsl(230, 8%, 24%)",
594
+ cursor: "help"
595
+ },
596
+ "attr-name": {
597
+ color: "hsl(35, 99%, 36%)"
598
+ },
599
+ "class-name": {
600
+ color: "hsl(35, 99%, 36%)"
601
+ },
602
+ boolean: {
603
+ color: "hsl(35, 99%, 36%)"
604
+ },
605
+ constant: {
606
+ color: "hsl(35, 99%, 36%)"
607
+ },
608
+ number: {
609
+ color: "hsl(35, 99%, 36%)"
610
+ },
611
+ atrule: {
612
+ color: "hsl(35, 99%, 36%)"
613
+ },
614
+ keyword: {
615
+ color: "hsl(301, 63%, 40%)"
616
+ },
617
+ property: {
618
+ color: "hsl(5, 74%, 59%)"
619
+ },
620
+ tag: {
621
+ color: "hsl(5, 74%, 59%)"
622
+ },
623
+ symbol: {
624
+ color: "hsl(5, 74%, 59%)"
625
+ },
626
+ deleted: {
627
+ color: "hsl(5, 74%, 59%)"
628
+ },
629
+ important: {
630
+ color: "hsl(5, 74%, 59%)"
631
+ },
632
+ selector: {
633
+ color: "hsl(119, 34%, 47%)"
634
+ },
635
+ string: {
636
+ color: "hsl(119, 34%, 47%)"
637
+ },
638
+ char: {
639
+ color: "hsl(119, 34%, 47%)"
640
+ },
641
+ builtin: {
642
+ color: "hsl(119, 34%, 47%)"
643
+ },
644
+ inserted: {
645
+ color: "hsl(119, 34%, 47%)"
646
+ },
647
+ regex: {
648
+ color: "hsl(119, 34%, 47%)"
649
+ },
650
+ "attr-value": {
651
+ color: "hsl(119, 34%, 47%)"
652
+ },
653
+ "attr-value > .token.punctuation": {
654
+ color: "hsl(119, 34%, 47%)"
655
+ },
656
+ variable: {
657
+ color: "hsl(221, 87%, 60%)"
658
+ },
659
+ operator: {
660
+ color: "hsl(221, 87%, 60%)"
661
+ },
662
+ function: {
663
+ color: "hsl(221, 87%, 60%)"
664
+ },
665
+ url: {
666
+ color: "hsl(198, 99%, 37%)"
667
+ },
668
+ "attr-value > .token.punctuation.attr-equals": {
669
+ color: "hsl(230, 8%, 24%)"
670
+ },
671
+ "special-attr > .token.attr-value > .token.value.css": {
672
+ color: "hsl(230, 8%, 24%)"
673
+ },
674
+ ".language-css .token.selector": {
675
+ color: "hsl(5, 74%, 59%)"
676
+ },
677
+ ".language-css .token.property": {
678
+ color: "hsl(230, 8%, 24%)"
679
+ },
680
+ ".language-css .token.function": {
681
+ color: "hsl(198, 99%, 37%)"
682
+ },
683
+ ".language-css .token.url > .token.function": {
684
+ color: "hsl(198, 99%, 37%)"
685
+ },
686
+ ".language-css .token.url > .token.string.url": {
687
+ color: "hsl(119, 34%, 47%)"
688
+ },
689
+ ".language-css .token.important": {
690
+ color: "hsl(301, 63%, 40%)"
691
+ },
692
+ ".language-css .token.atrule .token.rule": {
693
+ color: "hsl(301, 63%, 40%)"
694
+ },
695
+ ".language-javascript .token.operator": {
696
+ color: "hsl(301, 63%, 40%)"
697
+ },
698
+ ".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation": {
699
+ color: "hsl(344, 84%, 43%)"
700
+ },
701
+ ".language-json .token.operator": {
702
+ color: "hsl(230, 8%, 24%)"
703
+ },
704
+ ".language-json .token.null.keyword": {
705
+ color: "hsl(35, 99%, 36%)"
706
+ },
707
+ ".language-markdown .token.url": {
708
+ color: "hsl(230, 8%, 24%)"
709
+ },
710
+ ".language-markdown .token.url > .token.operator": {
711
+ color: "hsl(230, 8%, 24%)"
712
+ },
713
+ ".language-markdown .token.url-reference.url > .token.string": {
714
+ color: "hsl(230, 8%, 24%)"
715
+ },
716
+ ".language-markdown .token.url > .token.content": {
717
+ color: "hsl(221, 87%, 60%)"
718
+ },
719
+ ".language-markdown .token.url > .token.url": {
720
+ color: "hsl(198, 99%, 37%)"
721
+ },
722
+ ".language-markdown .token.url-reference.url": {
723
+ color: "hsl(198, 99%, 37%)"
724
+ },
725
+ ".language-markdown .token.blockquote.punctuation": {
726
+ color: "hsl(230, 4%, 64%)",
727
+ fontStyle: "italic"
728
+ },
729
+ ".language-markdown .token.hr.punctuation": {
730
+ color: "hsl(230, 4%, 64%)",
731
+ fontStyle: "italic"
732
+ },
733
+ ".language-markdown .token.code-snippet": {
734
+ color: "hsl(119, 34%, 47%)"
735
+ },
736
+ ".language-markdown .token.bold .token.content": {
737
+ color: "hsl(35, 99%, 36%)"
738
+ },
739
+ ".language-markdown .token.italic .token.content": {
740
+ color: "hsl(301, 63%, 40%)"
741
+ },
742
+ ".language-markdown .token.strike .token.content": {
743
+ color: "hsl(5, 74%, 59%)"
744
+ },
745
+ ".language-markdown .token.strike .token.punctuation": {
746
+ color: "hsl(5, 74%, 59%)"
747
+ },
748
+ ".language-markdown .token.list.punctuation": {
749
+ color: "hsl(5, 74%, 59%)"
750
+ },
751
+ ".language-markdown .token.title.important > .token.punctuation": {
752
+ color: "hsl(5, 74%, 59%)"
753
+ },
754
+ bold: {
755
+ fontWeight: "bold"
756
+ },
757
+ italic: {
758
+ fontStyle: "italic"
759
+ },
760
+ namespace: {
761
+ Opacity: "0.8"
762
+ },
763
+ "token.tab:not(:empty):before": {
764
+ color: "hsla(230, 8%, 24%, 0.2)"
765
+ },
766
+ "token.cr:before": {
767
+ color: "hsla(230, 8%, 24%, 0.2)"
768
+ },
769
+ "token.lf:before": {
770
+ color: "hsla(230, 8%, 24%, 0.2)"
771
+ },
772
+ "token.space:before": {
773
+ color: "hsla(230, 8%, 24%, 0.2)"
774
+ },
775
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item": {
776
+ marginRight: "0.4em"
777
+ },
778
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button": {
779
+ background: "hsl(230, 1%, 90%)",
780
+ color: "hsl(230, 6%, 44%)",
781
+ padding: "0.1em 0.4em",
782
+ borderRadius: "0.3em"
783
+ },
784
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a": {
785
+ background: "hsl(230, 1%, 90%)",
786
+ color: "hsl(230, 6%, 44%)",
787
+ padding: "0.1em 0.4em",
788
+ borderRadius: "0.3em"
789
+ },
790
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span": {
791
+ background: "hsl(230, 1%, 90%)",
792
+ color: "hsl(230, 6%, 44%)",
793
+ padding: "0.1em 0.4em",
794
+ borderRadius: "0.3em"
795
+ },
796
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover": {
797
+ background: "hsl(230, 1%, 78%)",
798
+ color: "hsl(230, 8%, 24%)"
799
+ },
800
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus": {
801
+ background: "hsl(230, 1%, 78%)",
802
+ color: "hsl(230, 8%, 24%)"
803
+ },
804
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover": {
805
+ background: "hsl(230, 1%, 78%)",
806
+ color: "hsl(230, 8%, 24%)"
807
+ },
808
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus": {
809
+ background: "hsl(230, 1%, 78%)",
810
+ color: "hsl(230, 8%, 24%)"
811
+ },
812
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover": {
813
+ background: "hsl(230, 1%, 78%)",
814
+ color: "hsl(230, 8%, 24%)"
815
+ },
816
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus": {
817
+ background: "hsl(230, 1%, 78%)",
818
+ color: "hsl(230, 8%, 24%)"
819
+ },
820
+ ".line-highlight.line-highlight": {
821
+ background: "hsla(230, 8%, 24%, 0.05)"
822
+ },
823
+ ".line-highlight.line-highlight:before": {
824
+ background: "hsl(230, 1%, 90%)",
825
+ color: "hsl(230, 8%, 24%)",
826
+ padding: "0.1em 0.6em",
827
+ borderRadius: "0.3em",
828
+ boxShadow: "0 2px 0 0 rgba(0, 0, 0, 0.2)"
829
+ },
830
+ ".line-highlight.line-highlight[data-end]:after": {
831
+ background: "hsl(230, 1%, 90%)",
832
+ color: "hsl(230, 8%, 24%)",
833
+ padding: "0.1em 0.6em",
834
+ borderRadius: "0.3em",
835
+ boxShadow: "0 2px 0 0 rgba(0, 0, 0, 0.2)"
836
+ },
837
+ "pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before": {
838
+ backgroundColor: "hsla(230, 8%, 24%, 0.05)"
839
+ },
840
+ ".line-numbers.line-numbers .line-numbers-rows": {
841
+ borderRightColor: "hsla(230, 8%, 24%, 0.2)"
842
+ },
843
+ ".command-line .command-line-prompt": {
844
+ borderRightColor: "hsla(230, 8%, 24%, 0.2)"
845
+ },
846
+ ".line-numbers .line-numbers-rows > span:before": {
847
+ color: "hsl(230, 1%, 62%)"
848
+ },
849
+ ".command-line .command-line-prompt > span:before": {
850
+ color: "hsl(230, 1%, 62%)"
851
+ },
852
+ ".rainbow-braces .token.token.punctuation.brace-level-1": {
853
+ color: "hsl(5, 74%, 59%)"
854
+ },
855
+ ".rainbow-braces .token.token.punctuation.brace-level-5": {
856
+ color: "hsl(5, 74%, 59%)"
857
+ },
858
+ ".rainbow-braces .token.token.punctuation.brace-level-9": {
859
+ color: "hsl(5, 74%, 59%)"
860
+ },
861
+ ".rainbow-braces .token.token.punctuation.brace-level-2": {
862
+ color: "hsl(119, 34%, 47%)"
863
+ },
864
+ ".rainbow-braces .token.token.punctuation.brace-level-6": {
865
+ color: "hsl(119, 34%, 47%)"
866
+ },
867
+ ".rainbow-braces .token.token.punctuation.brace-level-10": {
868
+ color: "hsl(119, 34%, 47%)"
869
+ },
870
+ ".rainbow-braces .token.token.punctuation.brace-level-3": {
871
+ color: "hsl(221, 87%, 60%)"
872
+ },
873
+ ".rainbow-braces .token.token.punctuation.brace-level-7": {
874
+ color: "hsl(221, 87%, 60%)"
875
+ },
876
+ ".rainbow-braces .token.token.punctuation.brace-level-11": {
877
+ color: "hsl(221, 87%, 60%)"
878
+ },
879
+ ".rainbow-braces .token.token.punctuation.brace-level-4": {
880
+ color: "hsl(301, 63%, 40%)"
881
+ },
882
+ ".rainbow-braces .token.token.punctuation.brace-level-8": {
883
+ color: "hsl(301, 63%, 40%)"
884
+ },
885
+ ".rainbow-braces .token.token.punctuation.brace-level-12": {
886
+ color: "hsl(301, 63%, 40%)"
887
+ },
888
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix)": {
889
+ backgroundColor: "hsla(353, 100%, 66%, 0.15)"
890
+ },
891
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix)": {
892
+ backgroundColor: "hsla(353, 100%, 66%, 0.15)"
893
+ },
894
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection": {
895
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
896
+ },
897
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection": {
898
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
899
+ },
900
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection": {
901
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
902
+ },
903
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection": {
904
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
905
+ },
906
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection": {
907
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
908
+ },
909
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection": {
910
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
911
+ },
912
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection": {
913
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
914
+ },
915
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection": {
916
+ backgroundColor: "hsla(353, 95%, 66%, 0.25)"
917
+ },
918
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix)": {
919
+ backgroundColor: "hsla(137, 100%, 55%, 0.15)"
920
+ },
921
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix)": {
922
+ backgroundColor: "hsla(137, 100%, 55%, 0.15)"
923
+ },
924
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection": {
925
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
926
+ },
927
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection": {
928
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
929
+ },
930
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection": {
931
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
932
+ },
933
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection": {
934
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
935
+ },
936
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection": {
937
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
938
+ },
939
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection": {
940
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
941
+ },
942
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection": {
943
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
944
+ },
945
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection": {
946
+ backgroundColor: "hsla(135, 73%, 55%, 0.25)"
947
+ },
948
+ ".prism-previewer.prism-previewer:before": {
949
+ borderColor: "hsl(0, 0, 95%)"
950
+ },
951
+ ".prism-previewer-gradient.prism-previewer-gradient div": {
952
+ borderColor: "hsl(0, 0, 95%)",
953
+ borderRadius: "0.3em"
954
+ },
955
+ ".prism-previewer-color.prism-previewer-color:before": {
956
+ borderRadius: "0.3em"
957
+ },
958
+ ".prism-previewer-easing.prism-previewer-easing:before": {
959
+ borderRadius: "0.3em"
960
+ },
961
+ ".prism-previewer.prism-previewer:after": {
962
+ borderTopColor: "hsl(0, 0, 95%)"
963
+ },
964
+ ".prism-previewer-flipped.prism-previewer-flipped.after": {
965
+ borderBottomColor: "hsl(0, 0, 95%)"
966
+ },
967
+ ".prism-previewer-angle.prism-previewer-angle:before": {
968
+ background: "hsl(0, 0%, 100%)"
969
+ },
970
+ ".prism-previewer-time.prism-previewer-time:before": {
971
+ background: "hsl(0, 0%, 100%)"
972
+ },
973
+ ".prism-previewer-easing.prism-previewer-easing": {
974
+ background: "hsl(0, 0%, 100%)"
975
+ },
976
+ ".prism-previewer-angle.prism-previewer-angle circle": {
977
+ stroke: "hsl(230, 8%, 24%)",
978
+ strokeOpacity: "1"
979
+ },
980
+ ".prism-previewer-time.prism-previewer-time circle": {
981
+ stroke: "hsl(230, 8%, 24%)",
982
+ strokeOpacity: "1"
983
+ },
984
+ ".prism-previewer-easing.prism-previewer-easing circle": {
985
+ stroke: "hsl(230, 8%, 24%)",
986
+ fill: "transparent"
987
+ },
988
+ ".prism-previewer-easing.prism-previewer-easing path": {
989
+ stroke: "hsl(230, 8%, 24%)"
990
+ },
991
+ ".prism-previewer-easing.prism-previewer-easing line": {
992
+ stroke: "hsl(230, 8%, 24%)"
993
+ }
994
+ }, l = ({
995
+ code: o,
996
+ language: a = "typescript",
997
+ showLineNumbers: i = !0,
998
+ showCopyButton: s = !0,
999
+ customStyle: c,
1000
+ onCopied: r
1001
+ }) => {
1002
+ const [n, t] = u(!1), { mode: h } = g(), d = async () => {
1003
+ if (o)
1004
+ try {
1005
+ await navigator.clipboard.writeText(o), t(!0), setTimeout(() => t(!1), 2e3), r == null || r();
1006
+ } catch (p) {
1007
+ console.error("Failed to copy code:", p);
1008
+ }
1009
+ };
1010
+ return o ? /* @__PURE__ */ e.jsxs(b, { sx: { position: "relative", width: "100%" }, children: [
1011
+ s && /* @__PURE__ */ e.jsx(
1012
+ k,
1013
+ {
1014
+ onClick: d,
1015
+ size: "small",
1016
+ sx: {
1017
+ position: "absolute",
1018
+ top: 8,
1019
+ right: 8,
1020
+ zIndex: 1,
1021
+ color: n ? "success.main" : "text.primary",
1022
+ backdropFilter: "blur(8px)"
1023
+ },
1024
+ children: n ? /* @__PURE__ */ e.jsx(f, { fontSize: "small" }) : /* @__PURE__ */ e.jsx(w, { fontSize: "small" })
1025
+ }
1026
+ ),
1027
+ /* @__PURE__ */ e.jsx(
1028
+ m,
1029
+ {
1030
+ language: a,
1031
+ style: h === "dark" ? v : y,
1032
+ showLineNumbers: i,
1033
+ customStyle: {
1034
+ margin: 0,
1035
+ borderRadius: "var(--s-shape-borderRadius)",
1036
+ fontSize: "0.875rem",
1037
+ backgroundColor: "var(--s-palette-background-paper)",
1038
+ border: "1px solid",
1039
+ borderColor: "var(--s-palette-divider)",
1040
+ ...c
1041
+ },
1042
+ wrapLines: !0,
1043
+ wrapLongLines: !0,
1044
+ children: o
1045
+ }
1046
+ )
1047
+ ] }) : null;
1048
+ };
1049
+ l.displayName = "SCodeBlock";
1050
+ try {
1051
+ l.displayName = "SCodeBlock", l.__docgenInfo = { description: "A code block component with syntax highlighting and built-in copy-to-clipboard functionality.", displayName: "SCodeBlock", props: { code: { defaultValue: null, description: "The code content to display and copy", name: "code", required: !0, type: { name: "string" } }, language: { defaultValue: { value: "typescript" }, description: "Programming language for syntax highlighting", name: "language", required: !1, type: { name: "string" } }, showLineNumbers: { defaultValue: { value: "true" }, description: "Whether to show line numbers", name: "showLineNumbers", required: !1, type: { name: "boolean" } }, showCopyButton: { defaultValue: { value: "true" }, description: "Whether to show copy button", name: "showCopyButton", required: !1, type: { name: "boolean" } }, customStyle: { defaultValue: null, description: "Custom style for the code block", name: "customStyle", required: !1, type: { name: "CSSProperties" } }, onCopied: { defaultValue: null, description: "Callback function triggered after code is successfully copied", name: "onCopied", required: !1, type: { name: "(() => void)" } } } };
1052
+ } catch {
1053
+ }
1054
+ try {
1055
+ scodeblock.displayName = "scodeblock", scodeblock.__docgenInfo = { description: "A code block component with syntax highlighting and built-in copy-to-clipboard functionality.", displayName: "scodeblock", props: { code: { defaultValue: null, description: "The code content to display and copy", name: "code", required: !0, type: { name: "string" } }, language: { defaultValue: { value: "typescript" }, description: "Programming language for syntax highlighting", name: "language", required: !1, type: { name: "string" } }, showLineNumbers: { defaultValue: { value: "true" }, description: "Whether to show line numbers", name: "showLineNumbers", required: !1, type: { name: "boolean" } }, showCopyButton: { defaultValue: { value: "true" }, description: "Whether to show copy button", name: "showCopyButton", required: !1, type: { name: "boolean" } }, customStyle: { defaultValue: null, description: "Custom style for the code block", name: "customStyle", required: !1, type: { name: "CSSProperties" } }, onCopied: { defaultValue: null, description: "Callback function triggered after code is successfully copied", name: "onCopied", required: !1, type: { name: "(() => void)" } } } };
1056
+ } catch {
1057
+ }
1058
+ export {
1059
+ l as SCodeBlock,
1060
+ l as default
1061
+ };