sunpeak 0.1.4 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -1,4 +1,5 @@
1
1
  /* src/styles/themes.css */
2
+ @layer properties;
2
3
  .sp-antialiased {
3
4
  -webkit-font-smoothing: antialiased;
4
5
  -moz-osx-font-smoothing: grayscale;
@@ -191,6 +192,375 @@
191
192
  .sp-text-tertiary {
192
193
  color: var(--sp-color-text-tertiary);
193
194
  }
195
+ .absolute {
196
+ position: absolute;
197
+ }
198
+ .fixed {
199
+ position: fixed;
200
+ }
201
+ .relative {
202
+ position: relative;
203
+ }
204
+ .container {
205
+ width: 100%;
206
+ }
207
+ .mx-auto {
208
+ margin-inline: auto;
209
+ }
210
+ .contents {
211
+ display: contents;
212
+ }
213
+ .flex {
214
+ display: flex;
215
+ }
216
+ .grid {
217
+ display: grid;
218
+ }
219
+ .hidden {
220
+ display: none;
221
+ }
222
+ .inline {
223
+ display: inline;
224
+ }
225
+ .aspect-square {
226
+ aspect-ratio: 1 / 1;
227
+ }
228
+ .w-full {
229
+ width: 100%;
230
+ }
231
+ .max-w-\[var\(--thread-content-max-width\)\] {
232
+ max-width: var(--thread-content-max-width);
233
+ }
234
+ .max-w-full {
235
+ max-width: 100%;
236
+ }
237
+ .flex-1 {
238
+ flex: 1;
239
+ }
240
+ .grow {
241
+ flex-grow: 1;
242
+ }
243
+ .resize {
244
+ resize: both;
245
+ }
246
+ .flex-col {
247
+ flex-direction: column;
248
+ }
249
+ .items-end {
250
+ align-items: flex-end;
251
+ }
252
+ .overflow-hidden {
253
+ overflow: hidden;
254
+ }
255
+ .border {
256
+ border-style: var(--tw-border-style);
257
+ border-width: 1px;
258
+ }
259
+ .text-start {
260
+ text-align: start;
261
+ }
262
+ .break-words {
263
+ overflow-wrap: break-word;
264
+ }
265
+ .whitespace-normal {
266
+ white-space: normal;
267
+ }
268
+ .transition {
269
+ transition-property:
270
+ color,
271
+ background-color,
272
+ border-color,
273
+ outline-color,
274
+ text-decoration-color,
275
+ fill,
276
+ stroke,
277
+ --tw-gradient-from,
278
+ --tw-gradient-via,
279
+ --tw-gradient-to,
280
+ opacity,
281
+ box-shadow,
282
+ transform,
283
+ translate,
284
+ scale,
285
+ rotate,
286
+ filter,
287
+ backdrop-filter,
288
+ display,
289
+ content-visibility,
290
+ overlay,
291
+ pointer-events;
292
+ transition-timing-function: var(--tw-ease, ease);
293
+ transition-duration: var(--tw-duration, 0s);
294
+ }
295
+ .\[--thread-content-max-width\:40rem\] {
296
+ --thread-content-max-width: 40rem;
297
+ }
298
+ .first\:pt-\[1px\] {
299
+ &:first-child {
300
+ padding-top: 1px;
301
+ }
302
+ }
303
+ .empty\:hidden {
304
+ &:empty {
305
+ display: none;
306
+ }
307
+ }
308
+ .chatgpt-simulator {
309
+ min-height: 100vh;
310
+ display: flex;
311
+ font-family: var(--sp-font-family);
312
+ }
313
+ .chatgpt-simulator--light {
314
+ background-color: var(--sp-light-color-bg-primary);
315
+ color: var(--sp-light-color-text-primary);
316
+ }
317
+ .chatgpt-simulator--light .chatgpt-simulator__sidebar {
318
+ background-color: var(--sp-light-color-bg-tertiary);
319
+ border-right: 1px solid var(--sp-light-color-border);
320
+ }
321
+ .chatgpt-simulator--light .chatgpt-simulator__message--user .chatgpt-simulator__message-content {
322
+ background-color: var(--sp-light-color-bg-tertiary);
323
+ color: var(--sp-light-color-text-primary);
324
+ }
325
+ .chatgpt-simulator--dark {
326
+ background-color: var(--sp-dark-color-bg-primary);
327
+ color: var(--sp-dark-color-text-primary);
328
+ }
329
+ .chatgpt-simulator--dark .chatgpt-simulator__sidebar {
330
+ background-color: var(--sp-dark-color-bg-secondary);
331
+ border-right: 1px solid var(--sp-dark-color-border);
332
+ }
333
+ .chatgpt-simulator--dark .chatgpt-simulator__sidebar select {
334
+ background-color: var(--sp-dark-color-bg-tertiary);
335
+ color: var(--sp-dark-color-text-primary);
336
+ border-color: var(--sp-dark-color-border);
337
+ }
338
+ .chatgpt-simulator--dark .chatgpt-simulator__message--user .chatgpt-simulator__message-content {
339
+ background-color: var(--sp-dark-color-bg-tertiary);
340
+ color: var(--sp-dark-color-text-primary);
341
+ }
342
+ .chatgpt-simulator__sidebar {
343
+ width: 250px;
344
+ min-width: 250px;
345
+ padding: var(--sp-spacing-5);
346
+ display: flex;
347
+ flex-direction: column;
348
+ gap: var(--sp-spacing-5);
349
+ overflow-y: auto;
350
+ }
351
+ .chatgpt-simulator__sidebar-header h2 {
352
+ margin: 0;
353
+ font-size: var(--sp-font-size-lg);
354
+ font-weight: var(--sp-font-weight-semibold);
355
+ }
356
+ .chatgpt-simulator__control-group {
357
+ display: flex;
358
+ flex-direction: column;
359
+ gap: var(--sp-spacing-4);
360
+ }
361
+ .chatgpt-simulator__control-group label {
362
+ display: flex;
363
+ flex-direction: column;
364
+ gap: var(--sp-spacing-2);
365
+ font-size: var(--sp-font-size-xs);
366
+ font-weight: var(--sp-font-weight-medium);
367
+ }
368
+ .chatgpt-simulator__control-group select {
369
+ padding: var(--sp-spacing-2) var(--sp-spacing-3);
370
+ border-radius: var(--sp-radius-sm);
371
+ border: 1px solid var(--sp-light-color-border);
372
+ font-size: var(--sp-font-size-sm);
373
+ background-color: var(--sp-light-color-bg-primary);
374
+ color: var(--sp-light-color-text-primary);
375
+ cursor: pointer;
376
+ width: 100%;
377
+ }
378
+ .chatgpt-simulator__control-group select:focus {
379
+ outline: 2px solid var(--sp-info);
380
+ outline-offset: 2px;
381
+ }
382
+ .chatgpt-simulator__main {
383
+ flex: 1;
384
+ display: flex;
385
+ flex-direction: column;
386
+ margin: 0 auto;
387
+ overflow-y: auto;
388
+ padding: var(--sp-spacing-4) 0 var(--sp-spacing-4) var(--sp-spacing-6);
389
+ position: relative;
390
+ }
391
+ .chatgpt-simulator[data-display-mode=fullscreen] .chatgpt-simulator__main {
392
+ padding: 0;
393
+ height: 100vh;
394
+ }
395
+ .chatgpt-simulator__header h1 {
396
+ margin: 0 0 var(--sp-spacing-4) 0;
397
+ font-size: var(--sp-font-size-xl);
398
+ font-weight: var(--sp-font-weight-semibold);
399
+ color: inherit;
400
+ }
401
+ .chatgpt-simulator__close-button {
402
+ position: absolute;
403
+ top: var(--sp-spacing-4);
404
+ left: var(--sp-spacing-4);
405
+ width: 40px;
406
+ height: 40px;
407
+ border-radius: 50%;
408
+ border: none;
409
+ display: flex;
410
+ align-items: center;
411
+ justify-content: center;
412
+ cursor: pointer;
413
+ z-index: 10;
414
+ transition: background-color 0.2s ease;
415
+ }
416
+ .chatgpt-simulator--light .chatgpt-simulator__close-button {
417
+ background-color: var(--sp-light-color-bg-secondary);
418
+ color: var(--sp-light-color-text-primary);
419
+ }
420
+ .chatgpt-simulator--light .chatgpt-simulator__close-button:hover {
421
+ background-color: var(--sp-light-color-bg-tertiary);
422
+ }
423
+ .chatgpt-simulator--dark .chatgpt-simulator__close-button {
424
+ background-color: var(--sp-dark-color-bg-tertiary);
425
+ color: var(--sp-dark-color-text-primary);
426
+ }
427
+ .chatgpt-simulator--dark .chatgpt-simulator__close-button:hover {
428
+ background-color: var(--sp-dark-color-bg-secondary);
429
+ }
430
+ .chatgpt-simulator__fullscreen-content {
431
+ flex: 1;
432
+ display: flex;
433
+ flex-direction: column;
434
+ width: 100%;
435
+ height: 100%;
436
+ overflow-y: auto;
437
+ padding-bottom: 80px;
438
+ }
439
+ .chatgpt-simulator__input-container {
440
+ position: absolute;
441
+ bottom: 0;
442
+ left: 0;
443
+ right: 0;
444
+ padding: var(--sp-spacing-4) var(--sp-spacing-6);
445
+ display: flex;
446
+ justify-content: center;
447
+ pointer-events: none;
448
+ }
449
+ .chatgpt-simulator__input-container input {
450
+ pointer-events: auto;
451
+ }
452
+ .chatgpt-simulator__input {
453
+ width: 100%;
454
+ max-width: 800px;
455
+ padding: var(--sp-spacing-3) var(--sp-spacing-4);
456
+ font-size: var(--sp-font-size-base);
457
+ font-family: var(--sp-font-family);
458
+ border-radius: var(--sp-radius-2xl);
459
+ border: 1px solid;
460
+ outline: none;
461
+ transition: border-color 0.2s ease;
462
+ }
463
+ .chatgpt-simulator--light .chatgpt-simulator__input {
464
+ background-color: var(--sp-light-color-bg-tertiary);
465
+ border-color: var(--sp-light-color-border-subtle);
466
+ color: var(--sp-light-color-text-primary);
467
+ }
468
+ .chatgpt-simulator--light .chatgpt-simulator__input::-moz-placeholder {
469
+ color: var(--sp-light-color-text-tertiary);
470
+ }
471
+ .chatgpt-simulator--light .chatgpt-simulator__input::placeholder {
472
+ color: var(--sp-light-color-text-tertiary);
473
+ }
474
+ .chatgpt-simulator--dark .chatgpt-simulator__input {
475
+ background-color: var(--sp-dark-color-bg-tertiary);
476
+ border-color: var(--sp-dark-color-border-subtle);
477
+ color: var(--sp-dark-color-text-primary);
478
+ }
479
+ .chatgpt-simulator--dark .chatgpt-simulator__input::-moz-placeholder {
480
+ color: var(--sp-dark-color-text-tertiary);
481
+ }
482
+ .chatgpt-simulator--dark .chatgpt-simulator__input::placeholder {
483
+ color: var(--sp-dark-color-text-tertiary);
484
+ }
485
+ .chatgpt-simulator__input:disabled {
486
+ cursor: not-allowed;
487
+ opacity: 0.6;
488
+ }
489
+ .chatgpt-simulator__message {
490
+ display: flex;
491
+ align-items: flex-start;
492
+ }
493
+ .chatgpt-simulator__message--user {
494
+ justify-content: flex-end;
495
+ margin-left: auto;
496
+ margin-right: var(--sp-spacing-6);
497
+ max-width: 70%;
498
+ }
499
+ .chatgpt-simulator__message--assistant {
500
+ max-width: 100%;
501
+ }
502
+ .chatgpt-simulator__message-content {
503
+ flex: 1;
504
+ padding: var(--sp-spacing-2) var(--sp-spacing-4);
505
+ border-radius: var(--sp-radius-2xl);
506
+ line-height: var(--sp-line-height-normal);
507
+ font-size: var(--sp-font-size-base);
508
+ overflow: hidden;
509
+ min-width: 100px;
510
+ }
511
+ .chatgpt-simulator__message--user .chatgpt-simulator__message-content {
512
+ flex: 0 1 auto;
513
+ max-width: none;
514
+ }
515
+ .chatgpt-simulator__message--assistant .chatgpt-simulator__message-content {
516
+ background: transparent;
517
+ padding: 0;
518
+ flex: 1;
519
+ min-width: 0;
520
+ }
521
+ .chatgpt-simulator__app-title {
522
+ color: var(--sp-color-text-secondary);
523
+ display: flex;
524
+ align-items: center;
525
+ gap: var(--sp-spacing-2);
526
+ margin-top: var(--sp-spacing-2);
527
+ font-size: var(--sp-font-size-sm);
528
+ font-weight: var(--sp-font-weight-medium);
529
+ opacity: 0.7;
530
+ }
531
+ .chatgpt-simulator__app-icon {
532
+ font-size: var(--sp-font-size-base);
533
+ line-height: 1;
534
+ }
535
+ .chatgpt-simulator__app-name {
536
+ line-height: 1;
537
+ }
538
+ .chatgpt-simulator__component-slot {
539
+ overflow: hidden;
540
+ min-width: 300px;
541
+ max-width: 100%;
542
+ }
543
+ @media (max-width: 768px) {
544
+ .chatgpt-simulator {
545
+ flex-direction: column;
546
+ }
547
+ .chatgpt-simulator__sidebar {
548
+ width: 100%;
549
+ min-width: unset;
550
+ border-right: none;
551
+ border-bottom: 1px solid var(--sp-light-color-border);
552
+ padding: var(--sp-spacing-4);
553
+ }
554
+ .chatgpt-simulator--dark .chatgpt-simulator__sidebar {
555
+ border-bottom-color: var(--sp-dark-color-border);
556
+ }
557
+ .chatgpt-simulator__message--user {
558
+ max-width: 85%;
559
+ }
560
+ .chatgpt-simulator__component-slot {
561
+ min-width: 200px;
562
+ }
563
+ }
194
564
  :root {
195
565
  --sp-font-family:
196
566
  -apple-system,
@@ -340,5 +710,16 @@
340
710
  --sp-color-border: var(--sp-dark-color-border);
341
711
  --sp-color-border-subtle: var(--sp-dark-color-border-subtle);
342
712
  }
713
+ @property --tw-border-style { syntax: "*"; inherits: false; initial-value: solid; }
714
+ @layer properties {
715
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
716
+ *,
717
+ ::before,
718
+ ::after,
719
+ ::backdrop {
720
+ --tw-border-style: solid;
721
+ }
722
+ }
723
+ }
343
724
  /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
344
725
  /*# sourceMappingURL=themes.css.map */