@happyvertical/smrt-playground 0.60.15 → 0.60.17
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/svelte/PlaygroundHost.svelte +339 -345
- package/package.json +2 -2
|
@@ -333,10 +333,10 @@ function selectEntry(entry: ResolvedSmrtPlaygroundEntry) {
|
|
|
333
333
|
{#snippet entryButton(entry: ResolvedSmrtPlaygroundEntry)}
|
|
334
334
|
<button
|
|
335
335
|
type="button"
|
|
336
|
-
class:
|
|
336
|
+
class:smrt-playground-host__active={entry.qualifiedId === selectedEntry?.qualifiedId}
|
|
337
337
|
aria-pressed={entry.qualifiedId === selectedEntry?.qualifiedId}
|
|
338
338
|
data-playground-entry={entry.qualifiedId}
|
|
339
|
-
onclick={() => selectEntry(entry)}
|
|
339
|
+
onclick={() => selectEntry(entry)} data-smrt-part="trigger"
|
|
340
340
|
>
|
|
341
341
|
{entry.title}
|
|
342
342
|
</button>
|
|
@@ -344,38 +344,38 @@ function selectEntry(entry: ResolvedSmrtPlaygroundEntry) {
|
|
|
344
344
|
|
|
345
345
|
{#snippet playgroundShell()}
|
|
346
346
|
<div
|
|
347
|
-
class="playground-
|
|
348
|
-
class:playground-
|
|
347
|
+
class="smrt-playground-host__root"
|
|
348
|
+
class:smrt-playground-host__root-embedded={embedded}
|
|
349
349
|
data-hydrated={isHydrated ? 'true' : 'false'} data-smrt-component="PlaygroundHost"
|
|
350
350
|
>
|
|
351
351
|
{#if !embedded}
|
|
352
|
-
<aside class="
|
|
353
|
-
<header class="
|
|
354
|
-
<span class="
|
|
352
|
+
<aside class="smrt-playground-host__catalog-nav" data-smrt-part="nav">
|
|
353
|
+
<header class="smrt-playground-host__brand" data-smrt-part="label">
|
|
354
|
+
<span class="smrt-playground-host__brand-mark" data-smrt-part="icon" aria-hidden="true">S</span>
|
|
355
355
|
<div>
|
|
356
356
|
<h1>{title}</h1>
|
|
357
357
|
<p>{subtitle}</p>
|
|
358
358
|
</div>
|
|
359
359
|
</header>
|
|
360
360
|
|
|
361
|
-
<label class="
|
|
361
|
+
<label class="smrt-playground-host__search" data-smrt-part="search">
|
|
362
362
|
<span>Find a component</span>
|
|
363
363
|
<input bind:value={searchTerm} placeholder="Search" />
|
|
364
364
|
</label>
|
|
365
365
|
|
|
366
|
-
<div class="
|
|
366
|
+
<div class="smrt-playground-host__catalog-scroll" data-smrt-part="body" data-testid="playground-modules">
|
|
367
367
|
{#if filteredModules.length === 0}
|
|
368
|
-
<div class="
|
|
368
|
+
<div class="smrt-playground-host__empty" data-smrt-part="empty">
|
|
369
369
|
<strong>No components found</strong>
|
|
370
370
|
<p>Try another component, package, or tag.</p>
|
|
371
371
|
</div>
|
|
372
372
|
{:else}
|
|
373
373
|
<nav aria-label="Component catalog" data-testid="playground-entries">
|
|
374
374
|
{#if filteredFoundation}
|
|
375
|
-
<section class="
|
|
375
|
+
<section class="smrt-playground-host__foundation-catalog" data-smrt-part="list">
|
|
376
376
|
<button
|
|
377
377
|
type="button"
|
|
378
|
-
class="
|
|
378
|
+
class="smrt-playground-host__foundation-heading" data-smrt-part="label"
|
|
379
379
|
data-playground-module={filteredFoundation.packageName}
|
|
380
380
|
onclick={() => selectModule(filteredFoundation.packageName)}
|
|
381
381
|
>
|
|
@@ -384,7 +384,7 @@ function selectEntry(entry: ResolvedSmrtPlaygroundEntry) {
|
|
|
384
384
|
</button>
|
|
385
385
|
|
|
386
386
|
{#each foundationGroups as [group, entries]}
|
|
387
|
-
<section class="
|
|
387
|
+
<section class="smrt-playground-host__nav-group" data-smrt-part="group">
|
|
388
388
|
<h2>{group}</h2>
|
|
389
389
|
{#each entries as entry (entry.qualifiedId)}
|
|
390
390
|
{@render entryButton(entry)}
|
|
@@ -395,7 +395,7 @@ function selectEntry(entry: ResolvedSmrtPlaygroundEntry) {
|
|
|
395
395
|
{/if}
|
|
396
396
|
|
|
397
397
|
{#if filteredPackageModules.length > 0}
|
|
398
|
-
<section class="
|
|
398
|
+
<section class="smrt-playground-host__package-groups" data-smrt-part="list">
|
|
399
399
|
<h2>Package components</h2>
|
|
400
400
|
{#each filteredPackageModules as module (module.packageName)}
|
|
401
401
|
<details open={module.packageName === selectedModule?.packageName}>
|
|
@@ -422,31 +422,31 @@ function selectEntry(entry: ResolvedSmrtPlaygroundEntry) {
|
|
|
422
422
|
{/if}
|
|
423
423
|
</div>
|
|
424
424
|
|
|
425
|
-
<footer class="
|
|
425
|
+
<footer class="smrt-playground-host__theme-controls" data-smrt-part="actions" data-testid="playground-theme-controls">
|
|
426
426
|
<ThemeSwitcher variant="select" label="Theme" />
|
|
427
427
|
<ColorSchemeToggle />
|
|
428
428
|
</footer>
|
|
429
429
|
</aside>
|
|
430
430
|
{/if}
|
|
431
431
|
|
|
432
|
-
<svelte:element this={embedded ? 'div' : 'main'} class="workspace">
|
|
432
|
+
<svelte:element this={embedded ? 'div' : 'main'} class="smrt-playground-host__workspace" data-smrt-part="workspace">
|
|
433
433
|
{#if selectedModule}
|
|
434
|
-
<header class="
|
|
435
|
-
<div class="
|
|
434
|
+
<header class="smrt-playground-host__workspace-header" data-smrt-part="header">
|
|
435
|
+
<div class="smrt-playground-host__breadcrumbs" data-smrt-part="nav">
|
|
436
436
|
<span data-testid="playground-selected-module">{selectedModule.displayName}</span>
|
|
437
437
|
<i aria-hidden="true">/</i>
|
|
438
438
|
<strong>{selectedEntry?.title ?? 'Overview'}</strong>
|
|
439
439
|
</div>
|
|
440
440
|
|
|
441
441
|
{#if selectedEntry && selectedEntry.availableModes.length > 1}
|
|
442
|
-
<div class="
|
|
442
|
+
<div class="smrt-playground-host__mode-control" data-smrt-part="control" role="group" aria-label="Preview mode">
|
|
443
443
|
{#each selectedEntry.availableModes as mode}
|
|
444
444
|
<button
|
|
445
445
|
type="button"
|
|
446
|
-
class:
|
|
446
|
+
class:smrt-playground-host__active={mode === selectedMode}
|
|
447
447
|
aria-pressed={mode === selectedMode}
|
|
448
448
|
data-playground-mode={mode}
|
|
449
|
-
onclick={() => (selectedMode = mode)}
|
|
449
|
+
onclick={() => (selectedMode = mode)} data-smrt-part="trigger"
|
|
450
450
|
>
|
|
451
451
|
{mode}
|
|
452
452
|
</button>
|
|
@@ -456,28 +456,28 @@ function selectEntry(entry: ResolvedSmrtPlaygroundEntry) {
|
|
|
456
456
|
</header>
|
|
457
457
|
|
|
458
458
|
{#if selectedEntry}
|
|
459
|
-
<div class="
|
|
459
|
+
<div class="smrt-playground-host__preview-heading" data-smrt-part="label">
|
|
460
460
|
<p data-testid="playground-selected-package">{selectedModule.packageName}</p>
|
|
461
461
|
<h2 data-testid="playground-preview-title">{selectedEntry.title}</h2>
|
|
462
462
|
{#if selectedEntry.description}
|
|
463
463
|
<span>{selectedEntry.description}</span>
|
|
464
464
|
{/if}
|
|
465
465
|
{#if selectedModeConfig?.description}
|
|
466
|
-
<span class="
|
|
466
|
+
<span class="smrt-playground-host__mode-description" data-smrt-part="description">{selectedModeConfig.description}</span>
|
|
467
467
|
{/if}
|
|
468
468
|
</div>
|
|
469
469
|
|
|
470
|
-
<section class="
|
|
471
|
-
<div class="
|
|
470
|
+
<section class="smrt-playground-host__preview-panel" data-smrt-part="panel" data-testid="playground-preview-panel">
|
|
471
|
+
<div class="smrt-playground-host__preview-stage" data-smrt-part="panel" data-testid="playground-preview-stage">
|
|
472
472
|
{#if PreviewComponent && previewComponentEntryId === selectedEntry.qualifiedId}
|
|
473
473
|
<PreviewComponent {...selectedProps} />
|
|
474
474
|
{:else if previewIsLoading}
|
|
475
|
-
<div class="
|
|
476
|
-
<span class="
|
|
475
|
+
<div class="smrt-playground-host__preview-state" data-smrt-part="status">
|
|
476
|
+
<span class="smrt-playground-host__loader" data-smrt-part="progress" aria-hidden="true"></span>
|
|
477
477
|
<p>Loading {selectedEntry.title}…</p>
|
|
478
478
|
</div>
|
|
479
479
|
{:else}
|
|
480
|
-
<div class="
|
|
480
|
+
<div class="smrt-playground-host__preview-state" data-smrt-part="status">
|
|
481
481
|
<strong>Preview unavailable</strong>
|
|
482
482
|
<p>{previewLoadError ?? 'Select a component to begin.'}</p>
|
|
483
483
|
</div>
|
|
@@ -485,7 +485,7 @@ function selectEntry(entry: ResolvedSmrtPlaygroundEntry) {
|
|
|
485
485
|
</div>
|
|
486
486
|
</section>
|
|
487
487
|
{:else}
|
|
488
|
-
<section class="
|
|
488
|
+
<section class="smrt-playground-host__landing" data-smrt-part="body" data-testid="playground-package-landing">
|
|
489
489
|
<header>
|
|
490
490
|
<p data-testid="playground-selected-package">{selectedModule.packageName}</p>
|
|
491
491
|
<h2>{selectedModule.displayName}</h2>
|
|
@@ -495,7 +495,7 @@ function selectEntry(entry: ResolvedSmrtPlaygroundEntry) {
|
|
|
495
495
|
<small>{selectedModule.entries.length} component{selectedModule.entries.length === 1 ? '' : 's'}</small>
|
|
496
496
|
</header>
|
|
497
497
|
|
|
498
|
-
<div class="
|
|
498
|
+
<div class="smrt-playground-host__package-index" data-smrt-part="list">
|
|
499
499
|
<h3>Components</h3>
|
|
500
500
|
{#each selectedModule.entries as entry (entry.qualifiedId)}
|
|
501
501
|
<button
|
|
@@ -503,19 +503,19 @@ function selectEntry(entry: ResolvedSmrtPlaygroundEntry) {
|
|
|
503
503
|
data-playground-landing-entry={entry.qualifiedId}
|
|
504
504
|
onclick={() => selectEntry(entry)}
|
|
505
505
|
>
|
|
506
|
-
<span class="
|
|
506
|
+
<span class="smrt-playground-host__index-copy" data-smrt-part="body">
|
|
507
507
|
<strong>{entry.title}</strong>
|
|
508
508
|
<small>{entry.description ?? entry.id}</small>
|
|
509
509
|
</span>
|
|
510
|
-
<span class="
|
|
511
|
-
<span class="
|
|
510
|
+
<span class="smrt-playground-host__index-modes" data-smrt-part="meta">{entry.availableModes.join(' · ')}</span>
|
|
511
|
+
<span class="smrt-playground-host__index-arrow" data-smrt-part="indicator" aria-hidden="true">→</span>
|
|
512
512
|
</button>
|
|
513
513
|
{/each}
|
|
514
514
|
</div>
|
|
515
515
|
</section>
|
|
516
516
|
{/if}
|
|
517
517
|
{:else}
|
|
518
|
-
<div class="
|
|
518
|
+
<div class="smrt-playground-host__preview-state smrt-playground-host__full-height" data-smrt-part="status">
|
|
519
519
|
<strong>No playground modules discovered</strong>
|
|
520
520
|
<p>The shared host is ready, but nothing exports playground entries yet.</p>
|
|
521
521
|
</div>
|
|
@@ -534,40 +534,24 @@ function selectEntry(entry: ResolvedSmrtPlaygroundEntry) {
|
|
|
534
534
|
|
|
535
535
|
<style>
|
|
536
536
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
537
|
-
@layer smrt.
|
|
537
|
+
@layer smrt.structure {
|
|
538
538
|
:global(body) {
|
|
539
539
|
margin: 0;
|
|
540
540
|
min-height: 100vh;
|
|
541
541
|
}
|
|
542
|
-
|
|
543
542
|
:global(*) {
|
|
544
543
|
box-sizing: border-box;
|
|
545
544
|
}
|
|
546
|
-
|
|
547
|
-
.playground-shell {
|
|
545
|
+
.smrt-playground-host__root {
|
|
548
546
|
display: grid;
|
|
549
547
|
grid-template-columns: 17rem minmax(0, 1fr);
|
|
550
548
|
min-height: 100vh;
|
|
551
|
-
background: var(--smrt-color-background);
|
|
552
|
-
color: var(--smrt-color-on-background);
|
|
553
|
-
font-family: var(--smrt-font-family);
|
|
554
549
|
}
|
|
555
|
-
|
|
556
|
-
.playground-shell--embedded {
|
|
550
|
+
.smrt-playground-host__root-embedded {
|
|
557
551
|
grid-template-columns: 1fr;
|
|
558
552
|
min-height: 0;
|
|
559
553
|
}
|
|
560
|
-
|
|
561
|
-
button,
|
|
562
|
-
input {
|
|
563
|
-
font: inherit;
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
button {
|
|
567
|
-
color: inherit;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
.catalog-nav {
|
|
554
|
+
.smrt-playground-host__catalog-nav {
|
|
571
555
|
position: sticky;
|
|
572
556
|
top: 0;
|
|
573
557
|
display: flex;
|
|
@@ -576,510 +560,520 @@ function selectEntry(entry: ResolvedSmrtPlaygroundEntry) {
|
|
|
576
560
|
gap: 1.4rem;
|
|
577
561
|
padding: 1.25rem;
|
|
578
562
|
overflow: hidden;
|
|
579
|
-
border-right: var(--smrt-hairline);
|
|
580
|
-
background: var(--smrt-color-surface-container-low);
|
|
581
|
-
color: var(--smrt-color-on-surface);
|
|
582
563
|
}
|
|
583
|
-
|
|
584
|
-
.brand {
|
|
564
|
+
.smrt-playground-host__brand {
|
|
585
565
|
display: flex;
|
|
586
566
|
min-width: 0;
|
|
587
567
|
align-items: center;
|
|
588
568
|
gap: 0.75rem;
|
|
589
569
|
}
|
|
590
|
-
|
|
591
|
-
.brand__mark {
|
|
570
|
+
.smrt-playground-host__brand-mark {
|
|
592
571
|
display: grid;
|
|
593
572
|
width: 2rem;
|
|
594
573
|
height: 2rem;
|
|
595
574
|
flex: 0 0 auto;
|
|
596
575
|
place-items: center;
|
|
597
|
-
border-radius: 0.55rem;
|
|
598
|
-
background: var(--smrt-color-primary);
|
|
599
|
-
color: var(--smrt-color-on-primary);
|
|
600
|
-
font-weight: 700;
|
|
601
576
|
}
|
|
602
|
-
|
|
603
|
-
.brand > div {
|
|
577
|
+
.smrt-playground-host__brand > div {
|
|
604
578
|
min-width: 0;
|
|
605
579
|
}
|
|
606
|
-
|
|
607
|
-
.brand h1 {
|
|
580
|
+
.smrt-playground-host__brand h1 {
|
|
608
581
|
margin: 0;
|
|
609
582
|
overflow: hidden;
|
|
610
|
-
font-size: 0.9rem;
|
|
611
|
-
letter-spacing: 0.035em;
|
|
612
583
|
text-overflow: ellipsis;
|
|
613
584
|
white-space: nowrap;
|
|
614
585
|
}
|
|
615
|
-
|
|
616
|
-
.brand p {
|
|
586
|
+
.smrt-playground-host__brand p {
|
|
617
587
|
margin: 0.12rem 0 0;
|
|
618
588
|
overflow: hidden;
|
|
619
|
-
color: var(--smrt-color-on-surface-variant);
|
|
620
|
-
font-size: 0.72rem;
|
|
621
589
|
text-overflow: ellipsis;
|
|
622
590
|
white-space: nowrap;
|
|
623
591
|
}
|
|
624
|
-
|
|
625
|
-
.search-field {
|
|
592
|
+
.smrt-playground-host__search {
|
|
626
593
|
display: grid;
|
|
627
594
|
gap: 0.4rem;
|
|
628
595
|
}
|
|
629
|
-
|
|
630
|
-
.search-field span {
|
|
631
|
-
color: var(--smrt-color-on-surface-variant);
|
|
632
|
-
font-size: 0.72rem;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
.search-field input {
|
|
596
|
+
.smrt-playground-host__search input {
|
|
636
597
|
width: 100%;
|
|
637
598
|
padding: 0.65rem 0.75rem;
|
|
638
|
-
border: var(--smrt-hairline);
|
|
639
|
-
border-radius: 0.55rem;
|
|
640
|
-
background: var(--smrt-color-surface);
|
|
641
|
-
color: var(--smrt-color-on-surface);
|
|
642
599
|
}
|
|
643
|
-
|
|
644
|
-
.catalog-scroll {
|
|
600
|
+
.smrt-playground-host__catalog-scroll {
|
|
645
601
|
flex: 1;
|
|
646
602
|
min-height: 0;
|
|
647
603
|
overflow-y: auto;
|
|
648
|
-
scrollbar-width: thin;
|
|
649
604
|
}
|
|
650
|
-
|
|
651
|
-
.catalog
|
|
652
|
-
.
|
|
653
|
-
.
|
|
654
|
-
.package-groups {
|
|
605
|
+
.smrt-playground-host__catalog-scroll nav,
|
|
606
|
+
.smrt-playground-host__foundation-catalog,
|
|
607
|
+
.smrt-playground-host__nav-group,
|
|
608
|
+
.smrt-playground-host__package-groups {
|
|
655
609
|
display: grid;
|
|
656
610
|
}
|
|
657
|
-
|
|
658
|
-
.catalog-scroll nav {
|
|
611
|
+
.smrt-playground-host__catalog-scroll nav {
|
|
659
612
|
gap: 1.15rem;
|
|
660
613
|
}
|
|
661
|
-
|
|
662
|
-
.foundation-catalog {
|
|
614
|
+
.smrt-playground-host__foundation-catalog {
|
|
663
615
|
gap: 0.95rem;
|
|
664
616
|
}
|
|
665
|
-
|
|
666
|
-
.
|
|
667
|
-
.nav-group button,
|
|
617
|
+
.smrt-playground-host__foundation-heading,
|
|
618
|
+
.smrt-playground-host__nav-group button,
|
|
668
619
|
details button {
|
|
669
620
|
width: 100%;
|
|
670
|
-
border: 0;
|
|
671
|
-
background: transparent;
|
|
672
|
-
text-align: left;
|
|
673
621
|
cursor: pointer;
|
|
674
622
|
}
|
|
675
|
-
|
|
676
|
-
.foundation-heading {
|
|
623
|
+
.smrt-playground-host__foundation-heading {
|
|
677
624
|
display: flex;
|
|
678
625
|
align-items: center;
|
|
679
626
|
justify-content: space-between;
|
|
680
627
|
padding: 0 0 0.7rem;
|
|
681
|
-
border-bottom: var(--smrt-hairline);
|
|
682
|
-
font-size: 0.82rem;
|
|
683
|
-
font-weight: 650;
|
|
684
628
|
}
|
|
685
|
-
|
|
686
|
-
.foundation-heading small,
|
|
687
|
-
details summary small {
|
|
688
|
-
color: var(--smrt-color-on-surface-variant);
|
|
689
|
-
font-size: 0.7rem;
|
|
690
|
-
font-weight: 500;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
.nav-group {
|
|
629
|
+
.smrt-playground-host__nav-group {
|
|
694
630
|
gap: 0.12rem;
|
|
695
631
|
}
|
|
696
|
-
|
|
697
|
-
.
|
|
698
|
-
.package-groups > h2 {
|
|
632
|
+
.smrt-playground-host__nav-group h2,
|
|
633
|
+
.smrt-playground-host__package-groups > h2 {
|
|
699
634
|
margin: 0 0 0.35rem;
|
|
700
|
-
color: var(--smrt-color-on-surface-variant);
|
|
701
|
-
font-size: 0.66rem;
|
|
702
|
-
font-weight: 600;
|
|
703
|
-
letter-spacing: 0.08em;
|
|
704
|
-
text-transform: uppercase;
|
|
705
635
|
}
|
|
706
|
-
|
|
707
|
-
.nav-group button,
|
|
636
|
+
.smrt-playground-host__nav-group button,
|
|
708
637
|
details button {
|
|
709
638
|
padding: 0.52rem 0.6rem;
|
|
710
|
-
border-radius: 0.45rem;
|
|
711
|
-
font-size: 0.82rem;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
.nav-group button:hover,
|
|
715
|
-
.nav-group button.active,
|
|
716
|
-
details button:hover,
|
|
717
|
-
details button.active {
|
|
718
|
-
background: var(--smrt-color-secondary-container);
|
|
719
|
-
color: var(--smrt-color-on-secondary-container);
|
|
720
639
|
}
|
|
721
|
-
|
|
722
|
-
.package-groups {
|
|
640
|
+
.smrt-playground-host__package-groups {
|
|
723
641
|
gap: 0.15rem;
|
|
724
642
|
padding-top: 0.4rem;
|
|
725
643
|
}
|
|
726
|
-
|
|
727
644
|
details summary {
|
|
728
645
|
display: flex;
|
|
729
646
|
align-items: center;
|
|
730
647
|
justify-content: space-between;
|
|
731
648
|
padding: 0.58rem 0.3rem;
|
|
732
649
|
cursor: pointer;
|
|
733
|
-
font-size: 0.82rem;
|
|
734
650
|
list-style: none;
|
|
735
651
|
}
|
|
736
|
-
|
|
737
652
|
details summary::-webkit-details-marker {
|
|
738
653
|
display: none;
|
|
739
654
|
}
|
|
740
|
-
|
|
741
655
|
details > div {
|
|
742
656
|
padding-left: 0.45rem;
|
|
743
657
|
}
|
|
744
|
-
|
|
745
|
-
.theme-controls {
|
|
658
|
+
.smrt-playground-host__theme-controls {
|
|
746
659
|
display: flex;
|
|
747
660
|
align-items: end;
|
|
748
661
|
gap: 0.5rem;
|
|
749
662
|
padding-top: 0.8rem;
|
|
750
|
-
border-top: var(--smrt-hairline);
|
|
751
663
|
}
|
|
752
|
-
|
|
753
|
-
.theme-controls :global(.smrt-theme-switcher__label) {
|
|
664
|
+
.smrt-playground-host__theme-controls :global(:where([data-smrt-component="ThemeSwitcher"]) > [data-smrt-part="label"]) {
|
|
754
665
|
display: none;
|
|
755
666
|
}
|
|
756
|
-
|
|
757
|
-
.theme-controls :global(.smrt-theme-switcher__select) {
|
|
667
|
+
.smrt-playground-host__theme-controls :global(:where([data-smrt-component="ThemeSwitcher"]) > [data-smrt-part="trigger"]:where(select)) {
|
|
758
668
|
min-width: 7rem;
|
|
759
669
|
padding-block: 0.48rem;
|
|
760
670
|
}
|
|
761
|
-
|
|
762
|
-
.workspace {
|
|
671
|
+
.smrt-playground-host__workspace {
|
|
763
672
|
display: grid;
|
|
764
673
|
min-width: 0;
|
|
765
674
|
align-content: start;
|
|
766
675
|
gap: 1.25rem;
|
|
767
676
|
padding: 1.25rem clamp(1.25rem, 3vw, 3rem) 3rem;
|
|
768
677
|
}
|
|
769
|
-
|
|
770
|
-
.playground-shell--embedded .workspace {
|
|
678
|
+
.smrt-playground-host__root-embedded .smrt-playground-host__workspace {
|
|
771
679
|
padding: 0;
|
|
772
680
|
}
|
|
773
|
-
|
|
774
|
-
.workspace-header {
|
|
681
|
+
.smrt-playground-host__workspace-header {
|
|
775
682
|
display: flex;
|
|
776
683
|
min-height: 2.75rem;
|
|
777
684
|
align-items: center;
|
|
778
685
|
justify-content: space-between;
|
|
779
686
|
gap: 1rem;
|
|
780
|
-
border-bottom: var(--smrt-hairline);
|
|
781
687
|
}
|
|
782
|
-
|
|
783
|
-
.breadcrumbs {
|
|
688
|
+
.smrt-playground-host__breadcrumbs {
|
|
784
689
|
display: flex;
|
|
785
690
|
min-width: 0;
|
|
786
691
|
gap: 0.55rem;
|
|
787
|
-
color: var(--smrt-color-on-surface-variant);
|
|
788
|
-
font-size: 0.76rem;
|
|
789
692
|
}
|
|
790
|
-
|
|
791
|
-
.
|
|
792
|
-
.breadcrumbs strong {
|
|
693
|
+
.smrt-playground-host__breadcrumbs span,
|
|
694
|
+
.smrt-playground-host__breadcrumbs strong {
|
|
793
695
|
overflow: hidden;
|
|
794
696
|
text-overflow: ellipsis;
|
|
795
697
|
white-space: nowrap;
|
|
796
698
|
}
|
|
797
|
-
|
|
798
|
-
.breadcrumbs i {
|
|
799
|
-
opacity: 0.5;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
.breadcrumbs strong {
|
|
803
|
-
color: var(--smrt-color-on-surface);
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
.mode-control {
|
|
699
|
+
.smrt-playground-host__mode-control {
|
|
807
700
|
display: flex;
|
|
808
701
|
flex: 0 0 auto;
|
|
809
702
|
gap: 0.25rem;
|
|
810
703
|
padding: 0.2rem;
|
|
811
|
-
border-radius: 999px;
|
|
812
|
-
background: var(--smrt-color-surface-container);
|
|
813
704
|
}
|
|
814
|
-
|
|
815
|
-
.mode-control button {
|
|
705
|
+
.smrt-playground-host__mode-control button {
|
|
816
706
|
padding: 0.4rem 0.7rem;
|
|
817
|
-
border: 0;
|
|
818
|
-
border-radius: 999px;
|
|
819
|
-
background: transparent;
|
|
820
|
-
color: var(--smrt-color-on-surface-variant);
|
|
821
707
|
cursor: pointer;
|
|
822
|
-
font-size: 0.72rem;
|
|
823
|
-
text-transform: capitalize;
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
.mode-control button.active {
|
|
827
|
-
background: var(--smrt-color-surface);
|
|
828
|
-
color: var(--smrt-color-on-surface);
|
|
829
|
-
box-shadow: var(--smrt-elevation-1);
|
|
830
708
|
}
|
|
831
|
-
|
|
832
|
-
.package-landing {
|
|
709
|
+
.smrt-playground-host__landing {
|
|
833
710
|
width: min(68rem, 100%);
|
|
834
711
|
padding: clamp(1.5rem, 4vw, 3.5rem) 0 2rem;
|
|
835
712
|
}
|
|
836
|
-
|
|
837
|
-
.package-landing > header {
|
|
713
|
+
.smrt-playground-host__landing > header {
|
|
838
714
|
position: relative;
|
|
839
715
|
display: grid;
|
|
840
716
|
gap: 0.55rem;
|
|
841
717
|
padding-bottom: clamp(1.75rem, 4vw, 3rem);
|
|
842
|
-
border-bottom: var(--smrt-hairline);
|
|
843
718
|
}
|
|
844
|
-
|
|
845
|
-
.package-landing > header p {
|
|
719
|
+
.smrt-playground-host__landing > header p {
|
|
846
720
|
margin: 0;
|
|
847
|
-
color: var(--smrt-color-primary);
|
|
848
|
-
font-size: 0.68rem;
|
|
849
|
-
letter-spacing: 0.08em;
|
|
850
|
-
text-transform: none;
|
|
851
721
|
}
|
|
852
|
-
|
|
853
|
-
.package-landing > header h2 {
|
|
722
|
+
.smrt-playground-host__landing > header h2 {
|
|
854
723
|
max-width: 48rem;
|
|
855
724
|
margin: 0;
|
|
856
|
-
font-size: clamp(2rem, 5vw, 4rem);
|
|
857
|
-
font-weight: 520;
|
|
858
|
-
letter-spacing: -0.045em;
|
|
859
|
-
line-height: 1;
|
|
860
725
|
}
|
|
861
|
-
|
|
862
|
-
.package-landing > header span {
|
|
726
|
+
.smrt-playground-host__landing > header span {
|
|
863
727
|
max-width: 42rem;
|
|
864
|
-
color: var(--smrt-color-on-surface-variant);
|
|
865
|
-
line-height: 1.55;
|
|
866
728
|
}
|
|
867
|
-
|
|
868
|
-
.package-landing > header > small {
|
|
729
|
+
.smrt-playground-host__landing > header > small {
|
|
869
730
|
position: absolute;
|
|
870
731
|
right: 0;
|
|
871
732
|
bottom: 1rem;
|
|
872
|
-
color: var(--smrt-color-on-surface-variant);
|
|
873
|
-
font-size: 0.75rem;
|
|
874
733
|
}
|
|
875
|
-
|
|
876
|
-
.package-index {
|
|
734
|
+
.smrt-playground-host__package-index {
|
|
877
735
|
padding-top: 2rem;
|
|
878
736
|
}
|
|
879
|
-
|
|
880
|
-
.package-index > h3 {
|
|
737
|
+
.smrt-playground-host__package-index > h3 {
|
|
881
738
|
margin: 0 0 0.65rem;
|
|
882
|
-
color: var(--smrt-color-on-surface-variant);
|
|
883
|
-
font-size: 0.68rem;
|
|
884
|
-
font-weight: 600;
|
|
885
|
-
letter-spacing: 0.08em;
|
|
886
|
-
text-transform: uppercase;
|
|
887
739
|
}
|
|
888
|
-
|
|
889
|
-
.package-index > button {
|
|
740
|
+
.smrt-playground-host__package-index > button {
|
|
890
741
|
display: grid;
|
|
891
742
|
width: 100%;
|
|
892
743
|
grid-template-columns: minmax(0, 1fr) auto 1.5rem;
|
|
893
744
|
align-items: center;
|
|
894
745
|
gap: 1.25rem;
|
|
895
746
|
padding: 1.15rem 0;
|
|
896
|
-
border: 0;
|
|
897
|
-
border-bottom: var(--smrt-hairline);
|
|
898
|
-
background: transparent;
|
|
899
|
-
text-align: left;
|
|
900
747
|
cursor: pointer;
|
|
901
748
|
}
|
|
902
|
-
|
|
903
|
-
.package-index__copy {
|
|
749
|
+
.smrt-playground-host__index-copy {
|
|
904
750
|
display: grid;
|
|
905
751
|
min-width: 0;
|
|
906
752
|
gap: 0.25rem;
|
|
907
753
|
}
|
|
908
|
-
|
|
909
|
-
.package-index__copy strong {
|
|
910
|
-
font-size: 0.95rem;
|
|
911
|
-
font-weight: 600;
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
.package-index__copy small,
|
|
915
|
-
.package-index__modes {
|
|
916
|
-
color: var(--smrt-color-on-surface-variant);
|
|
917
|
-
font-size: 0.76rem;
|
|
918
|
-
line-height: 1.4;
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
.package-index__modes {
|
|
922
|
-
text-transform: capitalize;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
.package-index__arrow {
|
|
926
|
-
color: var(--smrt-color-primary);
|
|
927
|
-
transition: transform 140ms ease;
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
.package-index > button:hover .package-index__copy strong,
|
|
931
|
-
.package-index > button:focus-visible .package-index__copy strong {
|
|
932
|
-
color: var(--smrt-color-primary);
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
.package-index > button:hover .package-index__arrow,
|
|
936
|
-
.package-index > button:focus-visible .package-index__arrow {
|
|
937
|
-
transform: translateX(0.2rem);
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
.preview-heading {
|
|
754
|
+
.smrt-playground-host__preview-heading {
|
|
941
755
|
padding: 1rem 0 0.25rem;
|
|
942
756
|
}
|
|
943
|
-
|
|
944
|
-
.preview-heading p {
|
|
757
|
+
.smrt-playground-host__preview-heading p {
|
|
945
758
|
margin: 0 0 0.35rem;
|
|
946
|
-
color: var(--smrt-color-primary);
|
|
947
|
-
font-size: 0.68rem;
|
|
948
|
-
letter-spacing: 0.08em;
|
|
949
|
-
text-transform: none;
|
|
950
759
|
}
|
|
951
|
-
|
|
952
|
-
.preview-heading h2 {
|
|
760
|
+
.smrt-playground-host__preview-heading h2 {
|
|
953
761
|
margin: 0;
|
|
954
|
-
font-size: clamp(1.45rem, 2.6vw, 2.15rem);
|
|
955
|
-
font-weight: 550;
|
|
956
|
-
letter-spacing: -0.025em;
|
|
957
762
|
}
|
|
958
|
-
|
|
959
|
-
.preview-heading span {
|
|
763
|
+
.smrt-playground-host__preview-heading span {
|
|
960
764
|
display: block;
|
|
961
765
|
max-width: 48rem;
|
|
962
766
|
margin-top: 0.45rem;
|
|
963
|
-
color: var(--smrt-color-on-surface-variant);
|
|
964
|
-
line-height: 1.5;
|
|
965
767
|
}
|
|
966
|
-
|
|
967
|
-
.preview-heading .mode-description {
|
|
968
|
-
font-size: 0.85rem;
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
.preview-panel {
|
|
768
|
+
.smrt-playground-host__preview-panel {
|
|
972
769
|
min-width: 0;
|
|
973
770
|
}
|
|
974
|
-
|
|
975
|
-
.preview-stage {
|
|
771
|
+
.smrt-playground-host__preview-stage {
|
|
976
772
|
min-width: 0;
|
|
977
773
|
min-height: 30rem;
|
|
978
774
|
padding: clamp(1rem, 2.2vw, 2rem);
|
|
979
775
|
overflow: auto;
|
|
980
|
-
border: var(--smrt-hairline);
|
|
981
|
-
border-radius: 1rem;
|
|
982
|
-
background: var(--smrt-color-surface);
|
|
983
|
-
color: var(--smrt-color-on-surface);
|
|
984
776
|
}
|
|
985
|
-
|
|
986
|
-
.preview-state {
|
|
777
|
+
.smrt-playground-host__preview-state {
|
|
987
778
|
display: grid;
|
|
988
779
|
min-height: 25rem;
|
|
989
780
|
place-content: center;
|
|
990
781
|
justify-items: center;
|
|
991
782
|
padding: 1rem;
|
|
992
|
-
color: var(--smrt-color-on-surface-variant);
|
|
993
|
-
text-align: center;
|
|
994
783
|
}
|
|
995
|
-
|
|
996
|
-
.
|
|
997
|
-
.empty-state p {
|
|
784
|
+
.smrt-playground-host__preview-state p,
|
|
785
|
+
.smrt-playground-host__empty p {
|
|
998
786
|
margin: 0.4rem 0 0;
|
|
999
|
-
line-height: 1.5;
|
|
1000
787
|
}
|
|
1001
|
-
|
|
1002
|
-
.full-height {
|
|
788
|
+
.smrt-playground-host__full-height {
|
|
1003
789
|
min-height: 60vh;
|
|
1004
790
|
}
|
|
1005
|
-
|
|
1006
|
-
.empty-state {
|
|
791
|
+
.smrt-playground-host__empty {
|
|
1007
792
|
padding: 1rem 0.25rem;
|
|
1008
|
-
color: var(--smrt-color-on-surface-variant);
|
|
1009
793
|
}
|
|
1010
|
-
|
|
1011
|
-
.loader {
|
|
794
|
+
.smrt-playground-host__loader {
|
|
1012
795
|
width: 1.25rem;
|
|
1013
796
|
height: 1.25rem;
|
|
1014
|
-
border: 2px solid var(--smrt-color-outline-variant);
|
|
1015
|
-
border-top-color: var(--smrt-color-primary);
|
|
1016
|
-
border-radius: 50%;
|
|
1017
|
-
animation: spin 0.8s linear infinite;
|
|
1018
797
|
}
|
|
1019
|
-
|
|
1020
|
-
@keyframes spin {
|
|
1021
|
-
to {
|
|
1022
|
-
transform: rotate(360deg);
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
798
|
@media (max-width: 900px) {
|
|
1027
|
-
.playground-
|
|
799
|
+
.smrt-playground-host__root {
|
|
1028
800
|
grid-template-columns: 1fr;
|
|
1029
801
|
}
|
|
1030
|
-
|
|
1031
|
-
.catalog-nav {
|
|
802
|
+
.smrt-playground-host__catalog-nav {
|
|
1032
803
|
position: static;
|
|
1033
804
|
height: auto;
|
|
1034
|
-
border-right: 0;
|
|
1035
|
-
border-bottom: var(--smrt-hairline);
|
|
1036
805
|
}
|
|
1037
|
-
|
|
1038
|
-
.catalog-scroll {
|
|
806
|
+
.smrt-playground-host__catalog-scroll {
|
|
1039
807
|
max-height: 18rem;
|
|
1040
808
|
}
|
|
1041
|
-
|
|
1042
|
-
.catalog-scroll nav {
|
|
809
|
+
.smrt-playground-host__catalog-scroll nav {
|
|
1043
810
|
grid-template-columns: 1fr;
|
|
1044
811
|
}
|
|
1045
812
|
}
|
|
1046
|
-
|
|
1047
813
|
@media (max-width: 600px) {
|
|
1048
|
-
.
|
|
814
|
+
.smrt-playground-host__theme-controls :global([data-smrt-component="ThemeSwitcher"]) {
|
|
1049
815
|
display: none;
|
|
1050
816
|
}
|
|
1051
|
-
|
|
1052
|
-
.workspace-header {
|
|
817
|
+
.smrt-playground-host__workspace-header {
|
|
1053
818
|
align-items: flex-start;
|
|
1054
819
|
}
|
|
1055
|
-
|
|
1056
|
-
.breadcrumbs {
|
|
820
|
+
.smrt-playground-host__breadcrumbs {
|
|
1057
821
|
display: grid;
|
|
1058
822
|
gap: 0.15rem;
|
|
1059
823
|
}
|
|
1060
|
-
|
|
1061
|
-
.breadcrumbs i {
|
|
824
|
+
.smrt-playground-host__breadcrumbs i {
|
|
1062
825
|
display: none;
|
|
1063
826
|
}
|
|
1064
|
-
|
|
1065
|
-
.package-landing > header > small {
|
|
827
|
+
.smrt-playground-host__landing > header > small {
|
|
1066
828
|
position: static;
|
|
1067
829
|
margin-top: 0.35rem;
|
|
1068
830
|
}
|
|
1069
|
-
|
|
1070
|
-
.package-index > button {
|
|
831
|
+
.smrt-playground-host__package-index > button {
|
|
1071
832
|
grid-template-columns: minmax(0, 1fr) 1.5rem;
|
|
1072
833
|
}
|
|
1073
|
-
|
|
1074
|
-
.package-index__modes {
|
|
834
|
+
.smrt-playground-host__index-modes {
|
|
1075
835
|
display: none;
|
|
1076
836
|
}
|
|
1077
837
|
}
|
|
838
|
+
}
|
|
1078
839
|
|
|
840
|
+
@layer smrt.theme {
|
|
841
|
+
.smrt-playground-host__root {
|
|
842
|
+
background: var(--smrt-color-background);
|
|
843
|
+
color: var(--smrt-color-on-background);
|
|
844
|
+
font-family: var(--smrt-font-family);
|
|
845
|
+
}
|
|
846
|
+
button,
|
|
847
|
+
input {
|
|
848
|
+
font: inherit;
|
|
849
|
+
}
|
|
850
|
+
button {
|
|
851
|
+
color: inherit;
|
|
852
|
+
}
|
|
853
|
+
.smrt-playground-host__catalog-nav {
|
|
854
|
+
border-right: var(--smrt-hairline);
|
|
855
|
+
background: var(--smrt-color-surface-container-low);
|
|
856
|
+
color: var(--smrt-color-on-surface);
|
|
857
|
+
}
|
|
858
|
+
.smrt-playground-host__brand-mark {
|
|
859
|
+
border-radius: 0.55rem;
|
|
860
|
+
background: var(--smrt-color-primary);
|
|
861
|
+
color: var(--smrt-color-on-primary);
|
|
862
|
+
font-weight: 700;
|
|
863
|
+
}
|
|
864
|
+
.smrt-playground-host__brand h1 {
|
|
865
|
+
font-size: 0.9rem;
|
|
866
|
+
letter-spacing: 0.035em;
|
|
867
|
+
}
|
|
868
|
+
.smrt-playground-host__brand p {
|
|
869
|
+
color: var(--smrt-color-on-surface-variant);
|
|
870
|
+
font-size: 0.72rem;
|
|
871
|
+
}
|
|
872
|
+
.smrt-playground-host__search span {
|
|
873
|
+
color: var(--smrt-color-on-surface-variant);
|
|
874
|
+
font-size: 0.72rem;
|
|
875
|
+
}
|
|
876
|
+
.smrt-playground-host__search input {
|
|
877
|
+
border: var(--smrt-hairline);
|
|
878
|
+
border-radius: 0.55rem;
|
|
879
|
+
background: var(--smrt-color-surface);
|
|
880
|
+
color: var(--smrt-color-on-surface);
|
|
881
|
+
}
|
|
882
|
+
.smrt-playground-host__catalog-scroll {
|
|
883
|
+
scrollbar-width: thin;
|
|
884
|
+
}
|
|
885
|
+
.smrt-playground-host__foundation-heading,
|
|
886
|
+
.smrt-playground-host__nav-group button,
|
|
887
|
+
details button {
|
|
888
|
+
border: 0;
|
|
889
|
+
background: transparent;
|
|
890
|
+
text-align: left;
|
|
891
|
+
}
|
|
892
|
+
.smrt-playground-host__foundation-heading {
|
|
893
|
+
border-bottom: var(--smrt-hairline);
|
|
894
|
+
font-size: 0.82rem;
|
|
895
|
+
font-weight: 650;
|
|
896
|
+
}
|
|
897
|
+
.smrt-playground-host__foundation-heading small,
|
|
898
|
+
details summary small {
|
|
899
|
+
color: var(--smrt-color-on-surface-variant);
|
|
900
|
+
font-size: 0.7rem;
|
|
901
|
+
font-weight: 500;
|
|
902
|
+
}
|
|
903
|
+
.smrt-playground-host__nav-group h2,
|
|
904
|
+
.smrt-playground-host__package-groups > h2 {
|
|
905
|
+
color: var(--smrt-color-on-surface-variant);
|
|
906
|
+
font-size: 0.66rem;
|
|
907
|
+
font-weight: 600;
|
|
908
|
+
letter-spacing: 0.08em;
|
|
909
|
+
text-transform: uppercase;
|
|
910
|
+
}
|
|
911
|
+
.smrt-playground-host__nav-group button,
|
|
912
|
+
details button {
|
|
913
|
+
border-radius: 0.45rem;
|
|
914
|
+
font-size: 0.82rem;
|
|
915
|
+
}
|
|
916
|
+
.smrt-playground-host__nav-group button:hover,
|
|
917
|
+
.smrt-playground-host__nav-group button.smrt-playground-host__active,
|
|
918
|
+
details button:hover,
|
|
919
|
+
details button.smrt-playground-host__active {
|
|
920
|
+
background: var(--smrt-color-secondary-container);
|
|
921
|
+
color: var(--smrt-color-on-secondary-container);
|
|
922
|
+
}
|
|
923
|
+
details summary {
|
|
924
|
+
font-size: 0.82rem;
|
|
925
|
+
}
|
|
926
|
+
.smrt-playground-host__theme-controls {
|
|
927
|
+
border-top: var(--smrt-hairline);
|
|
928
|
+
}
|
|
929
|
+
.smrt-playground-host__workspace-header {
|
|
930
|
+
border-bottom: var(--smrt-hairline);
|
|
931
|
+
}
|
|
932
|
+
.smrt-playground-host__breadcrumbs {
|
|
933
|
+
color: var(--smrt-color-on-surface-variant);
|
|
934
|
+
font-size: 0.76rem;
|
|
935
|
+
}
|
|
936
|
+
.smrt-playground-host__breadcrumbs i {
|
|
937
|
+
opacity: 0.5;
|
|
938
|
+
}
|
|
939
|
+
.smrt-playground-host__breadcrumbs strong {
|
|
940
|
+
color: var(--smrt-color-on-surface);
|
|
941
|
+
}
|
|
942
|
+
.smrt-playground-host__mode-control {
|
|
943
|
+
border-radius: 999px;
|
|
944
|
+
background: var(--smrt-color-surface-container);
|
|
945
|
+
}
|
|
946
|
+
.smrt-playground-host__mode-control button {
|
|
947
|
+
border: 0;
|
|
948
|
+
border-radius: 999px;
|
|
949
|
+
background: transparent;
|
|
950
|
+
color: var(--smrt-color-on-surface-variant);
|
|
951
|
+
font-size: 0.72rem;
|
|
952
|
+
text-transform: capitalize;
|
|
953
|
+
}
|
|
954
|
+
.smrt-playground-host__mode-control button.smrt-playground-host__active {
|
|
955
|
+
background: var(--smrt-color-surface);
|
|
956
|
+
color: var(--smrt-color-on-surface);
|
|
957
|
+
box-shadow: var(--smrt-elevation-1);
|
|
958
|
+
}
|
|
959
|
+
.smrt-playground-host__landing > header {
|
|
960
|
+
border-bottom: var(--smrt-hairline);
|
|
961
|
+
}
|
|
962
|
+
.smrt-playground-host__landing > header p {
|
|
963
|
+
color: var(--smrt-color-primary);
|
|
964
|
+
font-size: 0.68rem;
|
|
965
|
+
letter-spacing: 0.08em;
|
|
966
|
+
text-transform: none;
|
|
967
|
+
}
|
|
968
|
+
.smrt-playground-host__landing > header h2 {
|
|
969
|
+
font-size: clamp(2rem, 5vw, 4rem);
|
|
970
|
+
font-weight: 520;
|
|
971
|
+
letter-spacing: -0.045em;
|
|
972
|
+
line-height: 1;
|
|
973
|
+
}
|
|
974
|
+
.smrt-playground-host__landing > header span {
|
|
975
|
+
color: var(--smrt-color-on-surface-variant);
|
|
976
|
+
line-height: 1.55;
|
|
977
|
+
}
|
|
978
|
+
.smrt-playground-host__landing > header > small {
|
|
979
|
+
color: var(--smrt-color-on-surface-variant);
|
|
980
|
+
font-size: 0.75rem;
|
|
981
|
+
}
|
|
982
|
+
.smrt-playground-host__package-index > h3 {
|
|
983
|
+
color: var(--smrt-color-on-surface-variant);
|
|
984
|
+
font-size: 0.68rem;
|
|
985
|
+
font-weight: 600;
|
|
986
|
+
letter-spacing: 0.08em;
|
|
987
|
+
text-transform: uppercase;
|
|
988
|
+
}
|
|
989
|
+
.smrt-playground-host__package-index > button {
|
|
990
|
+
border: 0;
|
|
991
|
+
border-bottom: var(--smrt-hairline);
|
|
992
|
+
background: transparent;
|
|
993
|
+
text-align: left;
|
|
994
|
+
}
|
|
995
|
+
.smrt-playground-host__index-copy strong {
|
|
996
|
+
font-size: 0.95rem;
|
|
997
|
+
font-weight: 600;
|
|
998
|
+
}
|
|
999
|
+
.smrt-playground-host__index-copy small,
|
|
1000
|
+
.smrt-playground-host__index-modes {
|
|
1001
|
+
color: var(--smrt-color-on-surface-variant);
|
|
1002
|
+
font-size: 0.76rem;
|
|
1003
|
+
line-height: 1.4;
|
|
1004
|
+
}
|
|
1005
|
+
.smrt-playground-host__index-modes {
|
|
1006
|
+
text-transform: capitalize;
|
|
1007
|
+
}
|
|
1008
|
+
.smrt-playground-host__index-arrow {
|
|
1009
|
+
color: var(--smrt-color-primary);
|
|
1010
|
+
transition: transform 140ms ease;
|
|
1011
|
+
}
|
|
1012
|
+
.smrt-playground-host__package-index > button:hover .smrt-playground-host__index-copy strong,
|
|
1013
|
+
.smrt-playground-host__package-index > button:focus-visible .smrt-playground-host__index-copy strong {
|
|
1014
|
+
color: var(--smrt-color-primary);
|
|
1015
|
+
}
|
|
1016
|
+
.smrt-playground-host__package-index > button:hover .smrt-playground-host__index-arrow,
|
|
1017
|
+
.smrt-playground-host__package-index > button:focus-visible .smrt-playground-host__index-arrow {
|
|
1018
|
+
transform: translateX(0.2rem);
|
|
1019
|
+
}
|
|
1020
|
+
.smrt-playground-host__preview-heading p {
|
|
1021
|
+
color: var(--smrt-color-primary);
|
|
1022
|
+
font-size: 0.68rem;
|
|
1023
|
+
letter-spacing: 0.08em;
|
|
1024
|
+
text-transform: none;
|
|
1025
|
+
}
|
|
1026
|
+
.smrt-playground-host__preview-heading h2 {
|
|
1027
|
+
font-size: clamp(1.45rem, 2.6vw, 2.15rem);
|
|
1028
|
+
font-weight: 550;
|
|
1029
|
+
letter-spacing: -0.025em;
|
|
1030
|
+
}
|
|
1031
|
+
.smrt-playground-host__preview-heading span {
|
|
1032
|
+
color: var(--smrt-color-on-surface-variant);
|
|
1033
|
+
line-height: 1.5;
|
|
1034
|
+
}
|
|
1035
|
+
.smrt-playground-host__preview-heading .smrt-playground-host__mode-description {
|
|
1036
|
+
font-size: 0.85rem;
|
|
1037
|
+
}
|
|
1038
|
+
.smrt-playground-host__preview-stage {
|
|
1039
|
+
border: var(--smrt-hairline);
|
|
1040
|
+
border-radius: 1rem;
|
|
1041
|
+
background: var(--smrt-color-surface);
|
|
1042
|
+
color: var(--smrt-color-on-surface);
|
|
1043
|
+
}
|
|
1044
|
+
.smrt-playground-host__preview-state {
|
|
1045
|
+
color: var(--smrt-color-on-surface-variant);
|
|
1046
|
+
text-align: center;
|
|
1047
|
+
}
|
|
1048
|
+
.smrt-playground-host__preview-state p,
|
|
1049
|
+
.smrt-playground-host__empty p {
|
|
1050
|
+
line-height: 1.5;
|
|
1051
|
+
}
|
|
1052
|
+
.smrt-playground-host__empty {
|
|
1053
|
+
color: var(--smrt-color-on-surface-variant);
|
|
1054
|
+
}
|
|
1055
|
+
.smrt-playground-host__loader {
|
|
1056
|
+
border: 2px solid var(--smrt-color-outline-variant);
|
|
1057
|
+
border-top-color: var(--smrt-color-primary);
|
|
1058
|
+
border-radius: 50%;
|
|
1059
|
+
animation: spin 0.8s linear infinite;
|
|
1060
|
+
}
|
|
1061
|
+
@keyframes spin {
|
|
1062
|
+
to {
|
|
1063
|
+
transform: rotate(360deg);
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
@media (max-width: 900px) {
|
|
1067
|
+
.smrt-playground-host__catalog-nav {
|
|
1068
|
+
border-right: 0;
|
|
1069
|
+
border-bottom: var(--smrt-hairline);
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1079
1072
|
@media (prefers-reduced-motion: reduce) {
|
|
1080
|
-
.
|
|
1073
|
+
.smrt-playground-host__loader {
|
|
1081
1074
|
animation: none;
|
|
1082
1075
|
}
|
|
1083
1076
|
}
|
|
1084
1077
|
}
|
|
1078
|
+
|
|
1085
1079
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-playground",
|
|
3
|
-
"version": "0.60.
|
|
3
|
+
"version": "0.60.17",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"description": "Shared playground discovery, runtime, and host components for SMRT UI packages",
|
|
6
6
|
"type": "module",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@happyvertical/smrt-ui": "0.60.
|
|
32
|
+
"@happyvertical/smrt-ui": "0.60.17",
|
|
33
33
|
"tinyglobby": "0.2.17",
|
|
34
34
|
"tsx": "^4.23.13"
|
|
35
35
|
},
|