@histoire/app 0.17.5 → 0.17.8

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 (57) hide show
  1. package/dist/bundled/App.vue2.js +1 -1
  2. package/dist/bundled/assets/histoire-text-dark.svg.js +1 -1
  3. package/dist/bundled/assets/histoire-text.svg.js +1 -1
  4. package/dist/bundled/assets/histoire.svg.js +1 -1
  5. package/dist/bundled/components/app/AppHeader.vue2.js +1 -1
  6. package/dist/bundled/components/app/AppLogo.vue2.js +1 -1
  7. package/dist/bundled/components/app/Breadcrumb.vue2.js +1 -1
  8. package/dist/bundled/components/app/Breadcrumb.vue3.js +1 -4
  9. package/dist/bundled/components/app/InitialLoading.vue2.js +1 -1
  10. package/dist/bundled/components/app/MobileOverlay.vue2.js +2 -1
  11. package/dist/bundled/components/base/BaseCheckbox.vue2.js +2 -1
  12. package/dist/bundled/components/base/BaseEmpty.vue.js +1 -1
  13. package/dist/bundled/components/base/BaseEmpty.vue2.js +1 -4
  14. package/dist/bundled/components/base/BaseIcon.vue3.js +1 -4
  15. package/dist/bundled/components/base/BaseListItem.vue2.js +2 -1
  16. package/dist/bundled/components/base/BaseListItemLink.vue.js +1 -1
  17. package/dist/bundled/components/base/BaseOverflowTab.vue.js +1 -1
  18. package/dist/bundled/components/base/BaseSelect.vue2.js +2 -1
  19. package/dist/bundled/components/base/BaseSplitPane.vue2.js +2 -1
  20. package/dist/bundled/components/base/BaseSplitPane.vue3.js +1 -4
  21. package/dist/bundled/components/base/BaseTab.vue.js +1 -1
  22. package/dist/bundled/components/base/BaseTag.vue.js +1 -1
  23. package/dist/bundled/components/command/CommandPrompts.vue2.js +2 -1
  24. package/dist/bundled/components/command/CommandPromptsModal.vue2.js +3 -2
  25. package/dist/bundled/components/command/PromptSelect.vue2.js +3 -2
  26. package/dist/bundled/components/command/PromptText.vue2.js +3 -2
  27. package/dist/bundled/components/misc/HatchedPattern.vue2.js +1 -4
  28. package/dist/bundled/components/panel/StoryDocs.vue2.js +2 -1
  29. package/dist/bundled/components/panel/StorySourceCode.vue3.js +1 -4
  30. package/dist/bundled/components/search/SearchItem.vue2.js +3 -2
  31. package/dist/bundled/components/search/SearchItem.vue3.js +1 -4
  32. package/dist/bundled/components/search/SearchLoading.vue2.js +1 -1
  33. package/dist/bundled/components/search/SearchModal.vue2.js +3 -2
  34. package/dist/bundled/components/search/SearchPane.vue2.js +3 -2
  35. package/dist/bundled/components/story/GenericMountStory.vue2.js +1 -1
  36. package/dist/bundled/components/story/StoryResponsivePreview.vue2.js +1 -1
  37. package/dist/bundled/components/story/StoryResponsivePreview.vue3.js +1 -4
  38. package/dist/bundled/components/story/StoryVariantGridItem.vue2.js +3 -2
  39. package/dist/bundled/components/story/StoryVariantGridItem.vue3.js +1 -4
  40. package/dist/bundled/components/story/StoryVariantListItem.vue2.js +1 -1
  41. package/dist/bundled/components/story/StoryVariantListItem.vue3.js +1 -4
  42. package/dist/bundled/components/story/StoryVariantSingle.vue3.js +1 -4
  43. package/dist/bundled/components/story/StoryViewer.vue3.js +1 -4
  44. package/dist/bundled/components/toolbar/ToolbarBackground.vue3.js +1 -4
  45. package/dist/bundled/components/tree/StoryGroup.vue2.js +1 -1
  46. package/dist/bundled/components/tree/StoryList.vue2.js +1 -1
  47. package/dist/bundled/components/tree/StoryListFolder.vue2.js +2 -2
  48. package/dist/bundled/components/tree/StoryListFolder.vue3.js +1 -4
  49. package/dist/bundled/components/tree/StoryListItem.vue2.js +2 -2
  50. package/dist/bundled/components/tree/StoryListItem.vue3.js +1 -4
  51. package/dist/bundled/node_modules/.pnpm/flexsearch@0.7.21/node_modules/flexsearch/dist/module/lang/latin/simple.js +1 -1
  52. package/dist/bundled/sandbox.js +1 -1
  53. package/dist/bundled/style.css +22 -22
  54. package/dist/bundled/util/sandbox.js +2 -1
  55. package/dist/style.css +139 -93
  56. package/package.json +14 -14
  57. package/src/app/util/sandbox.ts +2 -1
package/dist/style.css CHANGED
@@ -575,12 +575,12 @@ body {
575
575
  max-width:65ch;
576
576
  }
577
577
 
578
- .htw-prose :where(p):not(:where([class~="htw-not-prose"] *)){
578
+ .htw-prose :where(p):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
579
579
  margin-top:1.25em;
580
580
  margin-bottom:1.25em
581
581
  }
582
582
 
583
- .htw-prose :where([class~="lead"]):not(:where([class~="htw-not-prose"] *)){
583
+ .htw-prose :where([class~="lead"]):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
584
584
  color:var(--tw-prose-lead);
585
585
  font-size:1.25em;
586
586
  line-height:1.6;
@@ -588,100 +588,106 @@ body {
588
588
  margin-bottom:1.2em
589
589
  }
590
590
 
591
- .htw-prose :where(a):not(:where([class~="htw-not-prose"] *)){
591
+ .htw-prose :where(a):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
592
592
  color:rgb(var(--_histoire-color-primary-500));
593
593
  text-decoration:none;
594
594
  font-weight:500;
595
595
  }
596
596
 
597
- .htw-prose :where(a):not(:where([class~="htw-not-prose"] *)):hover{
597
+ .htw-prose :where(a):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)):hover{
598
598
  text-decoration:underline
599
599
  }
600
600
 
601
- .htw-prose :where(strong):not(:where([class~="htw-not-prose"] *)){
601
+ .htw-prose :where(strong):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
602
602
  color:var(--tw-prose-bold);
603
603
  font-weight:600
604
604
  }
605
605
 
606
- .htw-prose :where(a strong):not(:where([class~="htw-not-prose"] *)){
606
+ .htw-prose :where(a strong):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
607
607
  color:inherit
608
608
  }
609
609
 
610
- .htw-prose :where(blockquote strong):not(:where([class~="htw-not-prose"] *)){
610
+ .htw-prose :where(blockquote strong):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
611
611
  color:inherit
612
612
  }
613
613
 
614
- .htw-prose :where(thead th strong):not(:where([class~="htw-not-prose"] *)){
614
+ .htw-prose :where(thead th strong):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
615
615
  color:inherit
616
616
  }
617
617
 
618
- .htw-prose :where(ol):not(:where([class~="htw-not-prose"] *)){
618
+ .htw-prose :where(ol):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
619
619
  list-style-type:decimal;
620
620
  margin-top:1.25em;
621
621
  margin-bottom:1.25em;
622
622
  padding-left:1.625em
623
623
  }
624
624
 
625
- .htw-prose :where(ol[type="A"]):not(:where([class~="htw-not-prose"] *)){
625
+ .htw-prose :where(ol[type="A"]):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
626
626
  list-style-type:upper-alpha
627
627
  }
628
628
 
629
- .htw-prose :where(ol[type="a"]):not(:where([class~="htw-not-prose"] *)){
629
+ .htw-prose :where(ol[type="a"]):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
630
630
  list-style-type:lower-alpha
631
631
  }
632
632
 
633
- .htw-prose :where(ol[type="A" s]):not(:where([class~="htw-not-prose"] *)){
633
+ .htw-prose :where(ol[type="A" s]):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
634
634
  list-style-type:upper-alpha
635
635
  }
636
636
 
637
- .htw-prose :where(ol[type="a" s]):not(:where([class~="htw-not-prose"] *)){
637
+ .htw-prose :where(ol[type="a" s]):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
638
638
  list-style-type:lower-alpha
639
639
  }
640
640
 
641
- .htw-prose :where(ol[type="I"]):not(:where([class~="htw-not-prose"] *)){
641
+ .htw-prose :where(ol[type="I"]):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
642
642
  list-style-type:upper-roman
643
643
  }
644
644
 
645
- .htw-prose :where(ol[type="i"]):not(:where([class~="htw-not-prose"] *)){
645
+ .htw-prose :where(ol[type="i"]):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
646
646
  list-style-type:lower-roman
647
647
  }
648
648
 
649
- .htw-prose :where(ol[type="I" s]):not(:where([class~="htw-not-prose"] *)){
649
+ .htw-prose :where(ol[type="I" s]):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
650
650
  list-style-type:upper-roman
651
651
  }
652
652
 
653
- .htw-prose :where(ol[type="i" s]):not(:where([class~="htw-not-prose"] *)){
653
+ .htw-prose :where(ol[type="i" s]):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
654
654
  list-style-type:lower-roman
655
655
  }
656
656
 
657
- .htw-prose :where(ol[type="1"]):not(:where([class~="htw-not-prose"] *)){
657
+ .htw-prose :where(ol[type="1"]):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
658
658
  list-style-type:decimal
659
659
  }
660
660
 
661
- .htw-prose :where(ul):not(:where([class~="htw-not-prose"] *)){
661
+ .htw-prose :where(ul):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
662
662
  list-style-type:disc;
663
663
  margin-top:1.25em;
664
664
  margin-bottom:1.25em;
665
665
  padding-left:1.625em
666
666
  }
667
667
 
668
- .htw-prose :where(ol > li):not(:where([class~="htw-not-prose"] *))::marker{
668
+ .htw-prose :where(ol > li):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *))::marker{
669
669
  font-weight:400;
670
670
  color:var(--tw-prose-counters)
671
671
  }
672
672
 
673
- .htw-prose :where(ul > li):not(:where([class~="htw-not-prose"] *))::marker{
673
+ .htw-prose :where(ul > li):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *))::marker{
674
674
  color:var(--tw-prose-bullets)
675
675
  }
676
676
 
677
- .htw-prose :where(hr):not(:where([class~="htw-not-prose"] *)){
677
+ .htw-prose :where(dt):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
678
+ color:var(--tw-prose-headings);
679
+ font-weight:600;
680
+ margin-top:1.25em
681
+ }
682
+
683
+ .htw-prose :where(hr):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
678
684
  border-color:var(--tw-prose-hr);
679
685
  border-top-width:1px;
680
686
  margin-top:3em;
681
687
  margin-bottom:3em
682
688
  }
683
689
 
684
- .htw-prose :where(blockquote):not(:where([class~="htw-not-prose"] *)){
690
+ .htw-prose :where(blockquote):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
685
691
  font-weight:500;
686
692
  font-style:italic;
687
693
  color:var(--tw-prose-quotes);
@@ -697,27 +703,27 @@ body {
697
703
  padding:.25rem .375rem;
698
704
  }
699
705
 
700
- .htw-prose :where(blockquote):not(:where([class~="htw-not-prose"] *)) p:first-child{
706
+ .htw-prose :where(blockquote):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)) p:first-child{
701
707
  margin-top:0
702
708
  }
703
709
 
704
- .htw-prose :where(blockquote):not(:where([class~="htw-not-prose"] *)) p:last-child{
710
+ .htw-prose :where(blockquote):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)) p:last-child{
705
711
  margin-bottom:0
706
712
  }
707
713
 
708
- .htw-dark .htw-prose :where(blockquote):not(:where([class~="htw-not-prose"] *)){
714
+ .htw-dark .htw-prose :where(blockquote):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
709
715
  background-color:rgb(var(--_histoire-color-gray-750))
710
716
  }
711
717
 
712
- .htw-prose :where(blockquote p:first-of-type):not(:where([class~="htw-not-prose"] *))::before{
718
+ .htw-prose :where(blockquote p:first-of-type):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *))::before{
713
719
  content:open-quote
714
720
  }
715
721
 
716
- .htw-prose :where(blockquote p:last-of-type):not(:where([class~="htw-not-prose"] *))::after{
722
+ .htw-prose :where(blockquote p:last-of-type):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *))::after{
717
723
  content:close-quote
718
724
  }
719
725
 
720
- .htw-prose :where(h1):not(:where([class~="htw-not-prose"] *)){
726
+ .htw-prose :where(h1):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
721
727
  color:var(--tw-prose-headings);
722
728
  font-weight:800;
723
729
  font-size:2.25em;
@@ -726,12 +732,12 @@ body {
726
732
  line-height:1.1111111
727
733
  }
728
734
 
729
- .htw-prose :where(h1 strong):not(:where([class~="htw-not-prose"] *)){
735
+ .htw-prose :where(h1 strong):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
730
736
  font-weight:900;
731
737
  color:inherit
732
738
  }
733
739
 
734
- .htw-prose :where(h2):not(:where([class~="htw-not-prose"] *)){
740
+ .htw-prose :where(h2):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
735
741
  color:var(--tw-prose-headings);
736
742
  font-weight:700;
737
743
  font-size:1.5em;
@@ -740,12 +746,12 @@ body {
740
746
  line-height:1.3333333
741
747
  }
742
748
 
743
- .htw-prose :where(h2 strong):not(:where([class~="htw-not-prose"] *)){
749
+ .htw-prose :where(h2 strong):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
744
750
  font-weight:800;
745
751
  color:inherit
746
752
  }
747
753
 
748
- .htw-prose :where(h3):not(:where([class~="htw-not-prose"] *)){
754
+ .htw-prose :where(h3):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
749
755
  color:var(--tw-prose-headings);
750
756
  font-weight:600;
751
757
  font-size:1.25em;
@@ -754,12 +760,12 @@ body {
754
760
  line-height:1.6
755
761
  }
756
762
 
757
- .htw-prose :where(h3 strong):not(:where([class~="htw-not-prose"] *)){
763
+ .htw-prose :where(h3 strong):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
758
764
  font-weight:700;
759
765
  color:inherit
760
766
  }
761
767
 
762
- .htw-prose :where(h4):not(:where([class~="htw-not-prose"] *)){
768
+ .htw-prose :where(h4):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
763
769
  color:var(--tw-prose-headings);
764
770
  font-weight:600;
765
771
  margin-top:1.5em;
@@ -767,29 +773,36 @@ body {
767
773
  line-height:1.5
768
774
  }
769
775
 
770
- .htw-prose :where(h4 strong):not(:where([class~="htw-not-prose"] *)){
776
+ .htw-prose :where(h4 strong):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
771
777
  font-weight:700;
772
778
  color:inherit
773
779
  }
774
780
 
775
- .htw-prose :where(img):not(:where([class~="htw-not-prose"] *)){
781
+ .htw-prose :where(img):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
776
782
  margin-top:2em;
777
783
  margin-bottom:2em
778
784
  }
779
785
 
780
- .htw-prose :where(figure > *):not(:where([class~="htw-not-prose"] *)){
781
- margin-top:0;
782
- margin-bottom:0
786
+ .htw-prose :where(picture):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
787
+ display:block;
788
+ margin-top:2em;
789
+ margin-bottom:2em
783
790
  }
784
791
 
785
- .htw-prose :where(figcaption):not(:where([class~="htw-not-prose"] *)){
786
- color:var(--tw-prose-captions);
792
+ .htw-prose :where(kbd):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
793
+ font-weight:500;
794
+ font-family:inherit;
795
+ color:var(--tw-prose-kbd);
796
+ box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);
787
797
  font-size:0.875em;
788
- line-height:1.4285714;
789
- margin-top:0.8571429em
798
+ border-radius:0.3125rem;
799
+ padding-top:0.1875em;
800
+ padding-right:0.375em;
801
+ padding-bottom:0.1875em;
802
+ padding-left:0.375em
790
803
  }
791
804
 
792
- .htw-prose :where(code):not(:where([class~="htw-not-prose"] *)){
805
+ .htw-prose :where(code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
793
806
  color:var(--tw-prose-code);
794
807
  font-weight:normal;
795
808
  font-size:0.8rem;
@@ -798,49 +811,49 @@ body {
798
811
  border-radius:0.25rem;
799
812
  }
800
813
 
801
- .htw-prose :where(code):not(:where([class~="htw-not-prose"] *))::before, .htw-prose :where(code):not(:where([class~="htw-not-prose"] *))::after{
814
+ .htw-prose :where(code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *))::before, .htw-prose :where(code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *))::after{
802
815
  display:none
803
816
  }
804
817
 
805
- .htw-prose :where(code):not(:where([class~="htw-not-prose"] *))::before{
818
+ .htw-prose :where(code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *))::before{
806
819
  content:"`"
807
820
  }
808
821
 
809
- .htw-prose :where(code):not(:where([class~="htw-not-prose"] *))::after{
822
+ .htw-prose :where(code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *))::after{
810
823
  content:"`"
811
824
  }
812
825
 
813
- .htw-prose :where(a code):not(:where([class~="htw-not-prose"] *)){
826
+ .htw-prose :where(a code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
814
827
  color:inherit
815
828
  }
816
829
 
817
- .htw-prose :where(h1 code):not(:where([class~="htw-not-prose"] *)){
830
+ .htw-prose :where(h1 code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
818
831
  color:inherit
819
832
  }
820
833
 
821
- .htw-prose :where(h2 code):not(:where([class~="htw-not-prose"] *)){
834
+ .htw-prose :where(h2 code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
822
835
  color:inherit;
823
836
  font-size:0.875em
824
837
  }
825
838
 
826
- .htw-prose :where(h3 code):not(:where([class~="htw-not-prose"] *)){
839
+ .htw-prose :where(h3 code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
827
840
  color:inherit;
828
841
  font-size:0.9em
829
842
  }
830
843
 
831
- .htw-prose :where(h4 code):not(:where([class~="htw-not-prose"] *)){
844
+ .htw-prose :where(h4 code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
832
845
  color:inherit
833
846
  }
834
847
 
835
- .htw-prose :where(blockquote code):not(:where([class~="htw-not-prose"] *)){
848
+ .htw-prose :where(blockquote code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
836
849
  color:inherit
837
850
  }
838
851
 
839
- .htw-prose :where(thead th code):not(:where([class~="htw-not-prose"] *)){
852
+ .htw-prose :where(thead th code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
840
853
  color:inherit
841
854
  }
842
855
 
843
- .htw-prose :where(pre):not(:where([class~="htw-not-prose"] *)){
856
+ .htw-prose :where(pre):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
844
857
  color:var(--tw-prose-pre-code);
845
858
  background-color:var(--tw-prose-pre-bg);
846
859
  overflow-x:auto;
@@ -856,7 +869,7 @@ body {
856
869
  padding-left:1.1428571em
857
870
  }
858
871
 
859
- .htw-prose :where(pre code):not(:where([class~="htw-not-prose"] *)){
872
+ .htw-prose :where(pre code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
860
873
  background-color:transparent;
861
874
  border-width:0;
862
875
  border-radius:0;
@@ -868,15 +881,15 @@ body {
868
881
  line-height:inherit
869
882
  }
870
883
 
871
- .htw-prose :where(pre code):not(:where([class~="htw-not-prose"] *))::before{
884
+ .htw-prose :where(pre code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *))::before{
872
885
  content:none
873
886
  }
874
887
 
875
- .htw-prose :where(pre code):not(:where([class~="htw-not-prose"] *))::after{
888
+ .htw-prose :where(pre code):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *))::after{
876
889
  content:none
877
890
  }
878
891
 
879
- .htw-prose :where(table):not(:where([class~="htw-not-prose"] *)){
892
+ .htw-prose :where(table):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
880
893
  width:100%;
881
894
  table-layout:auto;
882
895
  text-align:left;
@@ -886,12 +899,12 @@ body {
886
899
  line-height:1.7142857
887
900
  }
888
901
 
889
- .htw-prose :where(thead):not(:where([class~="htw-not-prose"] *)){
902
+ .htw-prose :where(thead):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
890
903
  border-bottom-width:1px;
891
904
  border-bottom-color:var(--tw-prose-th-borders)
892
905
  }
893
906
 
894
- .htw-prose :where(thead th):not(:where([class~="htw-not-prose"] *)){
907
+ .htw-prose :where(thead th):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
895
908
  color:var(--tw-prose-headings);
896
909
  font-weight:600;
897
910
  vertical-align:bottom;
@@ -900,28 +913,40 @@ body {
900
913
  padding-left:0.5714286em
901
914
  }
902
915
 
903
- .htw-prose :where(tbody tr):not(:where([class~="htw-not-prose"] *)){
916
+ .htw-prose :where(tbody tr):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
904
917
  border-bottom-width:1px;
905
918
  border-bottom-color:var(--tw-prose-td-borders)
906
919
  }
907
920
 
908
- .htw-prose :where(tbody tr:last-child):not(:where([class~="htw-not-prose"] *)){
921
+ .htw-prose :where(tbody tr:last-child):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
909
922
  border-bottom-width:0
910
923
  }
911
924
 
912
- .htw-prose :where(tbody td):not(:where([class~="htw-not-prose"] *)){
925
+ .htw-prose :where(tbody td):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
913
926
  vertical-align:baseline
914
927
  }
915
928
 
916
- .htw-prose :where(tfoot):not(:where([class~="htw-not-prose"] *)){
929
+ .htw-prose :where(tfoot):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
917
930
  border-top-width:1px;
918
931
  border-top-color:var(--tw-prose-th-borders)
919
932
  }
920
933
 
921
- .htw-prose :where(tfoot td):not(:where([class~="htw-not-prose"] *)){
934
+ .htw-prose :where(tfoot td):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
922
935
  vertical-align:top
923
936
  }
924
937
 
938
+ .htw-prose :where(figure > *):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
939
+ margin-top:0;
940
+ margin-bottom:0
941
+ }
942
+
943
+ .htw-prose :where(figcaption):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
944
+ color:var(--tw-prose-captions);
945
+ font-size:0.875em;
946
+ line-height:1.4285714;
947
+ margin-top:0.8571429em
948
+ }
949
+
925
950
  .htw-prose{
926
951
  --tw-prose-body:#374151;
927
952
  --tw-prose-headings:#111827;
@@ -934,6 +959,8 @@ body {
934
959
  --tw-prose-quotes:#111827;
935
960
  --tw-prose-quote-borders:#e5e7eb;
936
961
  --tw-prose-captions:#6b7280;
962
+ --tw-prose-kbd:#111827;
963
+ --tw-prose-kbd-shadows:17 24 39;
937
964
  --tw-prose-code:#111827;
938
965
  --tw-prose-pre-code:#e5e7eb;
939
966
  --tw-prose-pre-bg:#1f2937;
@@ -950,6 +977,8 @@ body {
950
977
  --tw-prose-invert-quotes:#f3f4f6;
951
978
  --tw-prose-invert-quote-borders:rgb(var(--_histoire-color-gray-800));
952
979
  --tw-prose-invert-captions:#9ca3af;
980
+ --tw-prose-invert-kbd:#fff;
981
+ --tw-prose-invert-kbd-shadows:255 255 255;
953
982
  --tw-prose-invert-code:#fff;
954
983
  --tw-prose-invert-pre-code:#d1d5db;
955
984
  --tw-prose-invert-pre-bg:rgb(0 0 0 / 50%);
@@ -959,107 +988,122 @@ body {
959
988
  line-height:1.75
960
989
  }
961
990
 
962
- .htw-prose :where(video):not(:where([class~="htw-not-prose"] *)){
963
- margin-top:2em;
964
- margin-bottom:2em
991
+ .htw-prose :where(picture > img):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
992
+ margin-top:0;
993
+ margin-bottom:0
965
994
  }
966
995
 
967
- .htw-prose :where(figure):not(:where([class~="htw-not-prose"] *)){
996
+ .htw-prose :where(video):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
968
997
  margin-top:2em;
969
998
  margin-bottom:2em
970
999
  }
971
1000
 
972
- .htw-prose :where(li):not(:where([class~="htw-not-prose"] *)){
1001
+ .htw-prose :where(li):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
973
1002
  margin-top:0.1rem;
974
1003
  margin-bottom:0.1rem
975
1004
  }
976
1005
 
977
- .htw-prose :where(ol > li):not(:where([class~="htw-not-prose"] *)){
1006
+ .htw-prose :where(ol > li):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
978
1007
  padding-left:0.375em
979
1008
  }
980
1009
 
981
- .htw-prose :where(ul > li):not(:where([class~="htw-not-prose"] *)){
1010
+ .htw-prose :where(ul > li):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
982
1011
  padding-left:0.375em
983
1012
  }
984
1013
 
985
- .htw-prose :where(.htw-prose > ul > li p):not(:where([class~="htw-not-prose"] *)){
1014
+ .htw-prose :where(.htw-prose > ul > li p):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
986
1015
  margin-top:0.75em;
987
1016
  margin-bottom:0.75em
988
1017
  }
989
1018
 
990
- .htw-prose :where(.htw-prose > ul > li > *:first-child):not(:where([class~="htw-not-prose"] *)){
1019
+ .htw-prose :where(.htw-prose > ul > li > *:first-child):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
991
1020
  margin-top:1.25em
992
1021
  }
993
1022
 
994
- .htw-prose :where(.htw-prose > ul > li > *:last-child):not(:where([class~="htw-not-prose"] *)){
1023
+ .htw-prose :where(.htw-prose > ul > li > *:last-child):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
995
1024
  margin-bottom:1.25em
996
1025
  }
997
1026
 
998
- .htw-prose :where(.htw-prose > ol > li > *:first-child):not(:where([class~="htw-not-prose"] *)){
1027
+ .htw-prose :where(.htw-prose > ol > li > *:first-child):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
999
1028
  margin-top:1.25em
1000
1029
  }
1001
1030
 
1002
- .htw-prose :where(.htw-prose > ol > li > *:last-child):not(:where([class~="htw-not-prose"] *)){
1031
+ .htw-prose :where(.htw-prose > ol > li > *:last-child):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1003
1032
  margin-bottom:1.25em
1004
1033
  }
1005
1034
 
1006
- .htw-prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="htw-not-prose"] *)){
1035
+ .htw-prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1007
1036
  margin-top:0.75em;
1008
1037
  margin-bottom:0.75em
1009
1038
  }
1010
1039
 
1011
- .htw-prose :where(hr + *):not(:where([class~="htw-not-prose"] *)){
1040
+ .htw-prose :where(dl):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1041
+ margin-top:1.25em;
1042
+ margin-bottom:1.25em
1043
+ }
1044
+
1045
+ .htw-prose :where(dd):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1046
+ margin-top:0.5em;
1047
+ padding-left:1.625em
1048
+ }
1049
+
1050
+ .htw-prose :where(hr + *):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1012
1051
  margin-top:0
1013
1052
  }
1014
1053
 
1015
- .htw-prose :where(h2 + *):not(:where([class~="htw-not-prose"] *)){
1054
+ .htw-prose :where(h2 + *):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1016
1055
  margin-top:0
1017
1056
  }
1018
1057
 
1019
- .htw-prose :where(h3 + *):not(:where([class~="htw-not-prose"] *)){
1058
+ .htw-prose :where(h3 + *):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1020
1059
  margin-top:0
1021
1060
  }
1022
1061
 
1023
- .htw-prose :where(h4 + *):not(:where([class~="htw-not-prose"] *)){
1062
+ .htw-prose :where(h4 + *):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1024
1063
  margin-top:0
1025
1064
  }
1026
1065
 
1027
- .htw-prose :where(thead th:first-child):not(:where([class~="htw-not-prose"] *)){
1066
+ .htw-prose :where(thead th:first-child):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1028
1067
  padding-left:0
1029
1068
  }
1030
1069
 
1031
- .htw-prose :where(thead th:last-child):not(:where([class~="htw-not-prose"] *)){
1070
+ .htw-prose :where(thead th:last-child):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1032
1071
  padding-right:0
1033
1072
  }
1034
1073
 
1035
- .htw-prose :where(tbody td, tfoot td):not(:where([class~="htw-not-prose"] *)){
1074
+ .htw-prose :where(tbody td, tfoot td):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1036
1075
  padding-top:0.5714286em;
1037
1076
  padding-right:0.5714286em;
1038
1077
  padding-bottom:0.5714286em;
1039
1078
  padding-left:0.5714286em
1040
1079
  }
1041
1080
 
1042
- .htw-prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="htw-not-prose"] *)){
1081
+ .htw-prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1043
1082
  padding-left:0
1044
1083
  }
1045
1084
 
1046
- .htw-prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="htw-not-prose"] *)){
1085
+ .htw-prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1047
1086
  padding-right:0
1048
1087
  }
1049
1088
 
1050
- .htw-prose :where(.htw-prose > :first-child):not(:where([class~="htw-not-prose"] *)){
1089
+ .htw-prose :where(figure):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1090
+ margin-top:2em;
1091
+ margin-bottom:2em
1092
+ }
1093
+
1094
+ .htw-prose :where(.htw-prose > :first-child):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1051
1095
  margin-top:0
1052
1096
  }
1053
1097
 
1054
- .htw-prose :where(.htw-prose > :last-child):not(:where([class~="htw-not-prose"] *)){
1098
+ .htw-prose :where(.htw-prose > :last-child):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1055
1099
  margin-bottom:0
1056
1100
  }
1057
1101
 
1058
- .htw-prose :where(h1, h2, h3, h4, th):not(:where([class~="htw-not-prose"] *)){
1102
+ .htw-prose :where(h1, h2, h3, h4, th):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)){
1059
1103
  margin-bottom:0.75rem;
1060
1104
  }
1061
1105
 
1062
- .htw-prose :where(h1, h2, h3, h4, th):not(:where([class~="htw-not-prose"] *)):not(:first-child){
1106
+ .htw-prose :where(h1, h2, h3, h4, th):not(:where([class~="htw-not-prose"],[class~="htw-not-prose"] *)):not(:first-child){
1063
1107
  margin-top:1.25rem
1064
1108
  }
1065
1109
 
@@ -2400,6 +2444,8 @@ body {
2400
2444
  --tw-prose-quotes:var(--tw-prose-invert-quotes);
2401
2445
  --tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);
2402
2446
  --tw-prose-captions:var(--tw-prose-invert-captions);
2447
+ --tw-prose-kbd:var(--tw-prose-invert-kbd);
2448
+ --tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);
2403
2449
  --tw-prose-code:var(--tw-prose-invert-code);
2404
2450
  --tw-prose-pre-code:var(--tw-prose-invert-pre-code);
2405
2451
  --tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@histoire/app",
3
- "version": "0.17.5",
3
+ "version": "0.17.8",
4
4
  "description": "Pre-bundled UI for Histoire",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -24,30 +24,30 @@
24
24
  },
25
25
  "types": "./src/index.ts",
26
26
  "dependencies": {
27
- "@types/flexsearch": "^0.7.3",
27
+ "@types/flexsearch": "^0.7.6",
28
28
  "flexsearch": "0.7.21",
29
29
  "shiki-es": "^0.2.0",
30
- "@histoire/controls": "^0.17.4",
31
- "@histoire/shared": "^0.17.5",
32
- "@histoire/vendors": "^0.17.4"
30
+ "@histoire/controls": "^0.17.8",
31
+ "@histoire/shared": "^0.17.8",
32
+ "@histoire/vendors": "^0.17.8"
33
33
  },
34
34
  "devDependencies": {
35
- "@tailwindcss/typography": "^0.5.9",
35
+ "@tailwindcss/typography": "^0.5.10",
36
36
  "@types/fs-extra": "^9.0.13",
37
- "@types/node": "^17.0.45",
38
- "@vitejs/plugin-vue": "^4.2.3",
39
- "autoprefixer": "^10.4.15",
37
+ "@types/node": "^18.11.9",
38
+ "@vitejs/plugin-vue": "^4.5.0",
39
+ "autoprefixer": "^10.4.16",
40
40
  "chokidar": "^3.5.3",
41
41
  "concurrently": "^7.6.0",
42
42
  "fs-extra": "^10.1.0",
43
43
  "globby": "^13.2.2",
44
- "pathe": "^0.2.0",
45
- "postcss": "^8.4.27",
44
+ "pathe": "^1.1.1",
45
+ "postcss": "^8.4.31",
46
46
  "postcss-import": "^14.1.0",
47
- "tailwindcss": "^3.3.3",
47
+ "tailwindcss": "^3.3.5",
48
48
  "typescript": "^4.9.5",
49
- "vite": "^4.5.0",
50
- "vue": "^3.3.4"
49
+ "vite": "^5.0.7",
50
+ "vue": "^3.3.8"
51
51
  },
52
52
  "scripts": {
53
53
  "build": "rimraf dist && vite build && pnpm run build:css && node ./scripts/copy.mjs",
@@ -6,5 +6,6 @@ export function getSandboxUrl (story: Story, variant: Variant) {
6
6
  const url = new URLSearchParams()
7
7
  url.append('storyId', story.id)
8
8
  url.append('variantId', variant.id)
9
- return `${base}__sandbox.html?${url.toString()}`
9
+ const baseUrl = base === '/' ? base : base + '/'
10
+ return `${baseUrl}__sandbox.html?${url.toString()}`
10
11
  }