@sankhyatronics/sankhya-cms 0.1.4 → 0.1.6
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/custom-elements.json +997 -905
- package/dist/bento-grid/index.d.ts +5 -1
- package/dist/bento-grid/index.js +1 -1
- package/dist/carousel/index.d.ts +7 -2
- package/dist/carousel/index.js +1 -1
- package/dist/{chunk-OEX5FDMR.js → chunk-2JGWWXEI.js} +4 -2
- package/dist/chunk-2JGWWXEI.js.map +1 -0
- package/dist/{chunk-USNFT4DU.js → chunk-6H262SG6.js} +8 -6
- package/dist/chunk-6H262SG6.js.map +1 -0
- package/dist/{chunk-E52WO7R7.js → chunk-BQTDFQ4V.js} +5 -3
- package/dist/chunk-BQTDFQ4V.js.map +1 -0
- package/dist/{chunk-74MILER4.js → chunk-EMVHNAID.js} +5 -3
- package/dist/chunk-EMVHNAID.js.map +1 -0
- package/dist/{chunk-3ERKQNZT.js → chunk-HGJT24UG.js} +7 -5
- package/dist/chunk-HGJT24UG.js.map +1 -0
- package/dist/{chunk-MLF6L3KM.js → chunk-HGTC3LCW.js} +6 -4
- package/dist/chunk-HGTC3LCW.js.map +1 -0
- package/dist/{chunk-47RPYNFG.js → chunk-HPIQSECE.js} +10 -3
- package/dist/chunk-HPIQSECE.js.map +1 -0
- package/dist/{chunk-2VZFHTBC.js → chunk-MW43OS47.js} +5 -3
- package/dist/chunk-MW43OS47.js.map +1 -0
- package/dist/{chunk-N63TVWK3.js → chunk-NN3OCPDV.js} +23 -19
- package/dist/chunk-NN3OCPDV.js.map +1 -0
- package/dist/{chunk-KHPJ5FAJ.js → chunk-URC5XBTL.js} +32 -1
- package/dist/{chunk-KHPJ5FAJ.js.map → chunk-URC5XBTL.js.map} +1 -1
- package/dist/{chunk-IMACP7HN.js → chunk-UVNBZD7R.js} +5 -3
- package/dist/chunk-UVNBZD7R.js.map +1 -0
- package/dist/{chunk-5REZSZCK.js → chunk-VRRBMOUP.js} +5 -3
- package/dist/chunk-VRRBMOUP.js.map +1 -0
- package/dist/{chunk-S4ARRDAI.js → chunk-ZRXYWH6C.js} +5 -3
- package/dist/chunk-ZRXYWH6C.js.map +1 -0
- package/dist/cms-theme.css +11 -0
- package/dist/content-block/index.d.ts +2 -0
- package/dist/content-block/index.js +1 -1
- package/dist/cookie-consent/index.d.ts +2 -0
- package/dist/cookie-consent/index.js +1 -1
- package/dist/feature-split/index.d.ts +5 -1
- package/dist/feature-split/index.js +1 -1
- package/dist/features-section/index.d.ts +2 -0
- package/dist/features-section/index.js +1 -1
- package/dist/index.js +26 -26
- package/dist/items-accordion/index.d.ts +5 -1
- package/dist/items-accordion/index.js +1 -1
- package/dist/mega-menu/index.d.ts +1 -0
- package/dist/mega-menu/index.js +1 -1
- package/dist/menu-item/index.d.ts +4 -3
- package/dist/menu-item/index.js +1 -1
- package/dist/promo-banner/index.d.ts +3 -0
- package/dist/promo-banner/index.js +1 -1
- package/dist/section/index.d.ts +1 -0
- package/dist/section/index.js +1 -1
- package/dist/stats/index.d.ts +6 -1
- package/dist/stats/index.js +1 -1
- package/dist/testimonials/index.d.ts +1 -0
- package/dist/testimonials/index.js +1 -1
- package/package.json +4 -13
- package/dist/chunk-2VZFHTBC.js.map +0 -1
- package/dist/chunk-3ERKQNZT.js.map +0 -1
- package/dist/chunk-47RPYNFG.js.map +0 -1
- package/dist/chunk-5REZSZCK.js.map +0 -1
- package/dist/chunk-74MILER4.js.map +0 -1
- package/dist/chunk-E52WO7R7.js.map +0 -1
- package/dist/chunk-IMACP7HN.js.map +0 -1
- package/dist/chunk-MLF6L3KM.js.map +0 -1
- package/dist/chunk-N63TVWK3.js.map +0 -1
- package/dist/chunk-OEX5FDMR.js.map +0 -1
- package/dist/chunk-S4ARRDAI.js.map +0 -1
- package/dist/chunk-USNFT4DU.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
"kind": "class",
|
|
11
11
|
"description": "A responsive 4-column bento grid of icon/image cards. Items are set via the `items` property.",
|
|
12
12
|
"name": "BentoGrid",
|
|
13
|
+
"cssProperties": [
|
|
14
|
+
{
|
|
15
|
+
"description": "Overrides the block's padding.",
|
|
16
|
+
"name": "--st-bento-grid-padding"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
13
19
|
"members": [
|
|
14
20
|
{
|
|
15
21
|
"kind": "field",
|
|
@@ -249,7 +255,7 @@
|
|
|
249
255
|
"declarations": [
|
|
250
256
|
{
|
|
251
257
|
"kind": "class",
|
|
252
|
-
"description": "Cycles through its slotted children, one visible at a time, with optional autoplay, arrows and\ndot indicators. The incoming slide slides in from the travel direction (CSS keyframes in place\nof the source's framer-motion spring), or fades in with `transition=\"fade\"`. Autoplay pauses\nwhile hovered or focused and stops when the element is disconnected; a paused slide
|
|
258
|
+
"description": "Cycles through its slotted children, one visible at a time, with optional autoplay, arrows and\ndot indicators. The incoming slide slides in from the travel direction (CSS keyframes in place\nof the source's framer-motion spring), or fades in with `transition=\"fade\"`. Autoplay pauses\nwhile hovered (unless `pause-on-hover` is turned off, e.g. for a full-screen hero the pointer\nnearly always rests on) or focused, and stops when the element is disconnected; a paused slide\nkeeps the time it had left.\n\n`indicator-style=\"tabs\"` replaces the dots with a row of labelled tabs along the bottom, each\nwith a progress bar that fills while its slide is showing, plus a pause button — the tabbed hero\ncarousel layout (put `st-hero`s in it). Tab labels come from `tab-labels`, else each slide's\n`data-tab-label` attribute, else its `title`.",
|
|
253
259
|
"name": "Carousel",
|
|
254
260
|
"cssProperties": [
|
|
255
261
|
{
|
|
@@ -295,6 +301,16 @@
|
|
|
295
301
|
"description": "Autoplay delay in milliseconds.",
|
|
296
302
|
"attribute": "interval"
|
|
297
303
|
},
|
|
304
|
+
{
|
|
305
|
+
"kind": "field",
|
|
306
|
+
"name": "pauseOnHover",
|
|
307
|
+
"type": {
|
|
308
|
+
"text": "boolean"
|
|
309
|
+
},
|
|
310
|
+
"default": "true",
|
|
311
|
+
"description": "Pause autoplay while the pointer is over the carousel. Turn off for a hero that fills the\nscreen; the tabs' pause button and keyboard focus still pause it.",
|
|
312
|
+
"attribute": "pause-on-hover"
|
|
313
|
+
},
|
|
298
314
|
{
|
|
299
315
|
"kind": "field",
|
|
300
316
|
"name": "showArrows",
|
|
@@ -446,6 +462,11 @@
|
|
|
446
462
|
"name": "pause",
|
|
447
463
|
"privacy": "private"
|
|
448
464
|
},
|
|
465
|
+
{
|
|
466
|
+
"kind": "field",
|
|
467
|
+
"name": "pauseOnEnter",
|
|
468
|
+
"privacy": "private"
|
|
469
|
+
},
|
|
449
470
|
{
|
|
450
471
|
"kind": "field",
|
|
451
472
|
"name": "resume",
|
|
@@ -578,6 +599,15 @@
|
|
|
578
599
|
"description": "Autoplay delay in milliseconds.",
|
|
579
600
|
"fieldName": "interval"
|
|
580
601
|
},
|
|
602
|
+
{
|
|
603
|
+
"name": "pause-on-hover",
|
|
604
|
+
"type": {
|
|
605
|
+
"text": "boolean"
|
|
606
|
+
},
|
|
607
|
+
"default": "true",
|
|
608
|
+
"description": "Pause autoplay while the pointer is over the carousel. Turn off for a hero that fills the\nscreen; the tabs' pause button and keyboard focus still pause it.",
|
|
609
|
+
"fieldName": "pauseOnHover"
|
|
610
|
+
},
|
|
581
611
|
{
|
|
582
612
|
"name": "show-arrows",
|
|
583
613
|
"type": {
|
|
@@ -640,186 +670,6 @@
|
|
|
640
670
|
}
|
|
641
671
|
]
|
|
642
672
|
},
|
|
643
|
-
{
|
|
644
|
-
"kind": "javascript-module",
|
|
645
|
-
"path": "src/content-block/ContentBlock.ts",
|
|
646
|
-
"declarations": [
|
|
647
|
-
{
|
|
648
|
-
"kind": "class",
|
|
649
|
-
"description": "A long-form article section: centered title/subtitle, an optional featured image with caption,\r\nthen Markdown body text. Ports `SankhyaUI`'s React `ContentBlock`. The body comes from\r\n`content-src` (a Markdown URL, as in the source) or an inline `content` string (added so the\r\nblock works without a fetch); `content-src` wins when both are set.",
|
|
650
|
-
"name": "ContentBlock",
|
|
651
|
-
"members": [
|
|
652
|
-
{
|
|
653
|
-
"kind": "field",
|
|
654
|
-
"name": "title",
|
|
655
|
-
"type": {
|
|
656
|
-
"text": "string"
|
|
657
|
-
},
|
|
658
|
-
"default": "''",
|
|
659
|
-
"attribute": "title"
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
"kind": "field",
|
|
663
|
-
"name": "subtitle",
|
|
664
|
-
"type": {
|
|
665
|
-
"text": "string"
|
|
666
|
-
},
|
|
667
|
-
"default": "''",
|
|
668
|
-
"attribute": "subtitle"
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
"kind": "field",
|
|
672
|
-
"name": "contentSrc",
|
|
673
|
-
"type": {
|
|
674
|
-
"text": "string"
|
|
675
|
-
},
|
|
676
|
-
"default": "''",
|
|
677
|
-
"description": "URL of a Markdown file.",
|
|
678
|
-
"attribute": "content-src"
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
"kind": "field",
|
|
682
|
-
"name": "content",
|
|
683
|
-
"type": {
|
|
684
|
-
"text": "string"
|
|
685
|
-
},
|
|
686
|
-
"default": "''",
|
|
687
|
-
"description": "Inline Markdown, used when `content-src` is not set.",
|
|
688
|
-
"attribute": "content"
|
|
689
|
-
},
|
|
690
|
-
{
|
|
691
|
-
"kind": "field",
|
|
692
|
-
"name": "imageSrc",
|
|
693
|
-
"type": {
|
|
694
|
-
"text": "string"
|
|
695
|
-
},
|
|
696
|
-
"default": "''",
|
|
697
|
-
"attribute": "image-src"
|
|
698
|
-
},
|
|
699
|
-
{
|
|
700
|
-
"kind": "field",
|
|
701
|
-
"name": "imageAlt",
|
|
702
|
-
"type": {
|
|
703
|
-
"text": "string"
|
|
704
|
-
},
|
|
705
|
-
"default": "''",
|
|
706
|
-
"attribute": "image-alt"
|
|
707
|
-
},
|
|
708
|
-
{
|
|
709
|
-
"kind": "field",
|
|
710
|
-
"name": "imageCaption",
|
|
711
|
-
"type": {
|
|
712
|
-
"text": "string"
|
|
713
|
-
},
|
|
714
|
-
"default": "''",
|
|
715
|
-
"attribute": "image-caption"
|
|
716
|
-
},
|
|
717
|
-
{
|
|
718
|
-
"kind": "field",
|
|
719
|
-
"name": "inverted",
|
|
720
|
-
"type": {
|
|
721
|
-
"text": "boolean"
|
|
722
|
-
},
|
|
723
|
-
"default": "false",
|
|
724
|
-
"attribute": "inverted",
|
|
725
|
-
"reflects": true
|
|
726
|
-
}
|
|
727
|
-
],
|
|
728
|
-
"attributes": [
|
|
729
|
-
{
|
|
730
|
-
"name": "title",
|
|
731
|
-
"type": {
|
|
732
|
-
"text": "string"
|
|
733
|
-
},
|
|
734
|
-
"default": "''",
|
|
735
|
-
"fieldName": "title"
|
|
736
|
-
},
|
|
737
|
-
{
|
|
738
|
-
"name": "subtitle",
|
|
739
|
-
"type": {
|
|
740
|
-
"text": "string"
|
|
741
|
-
},
|
|
742
|
-
"default": "''",
|
|
743
|
-
"fieldName": "subtitle"
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
"name": "content-src",
|
|
747
|
-
"type": {
|
|
748
|
-
"text": "string"
|
|
749
|
-
},
|
|
750
|
-
"default": "''",
|
|
751
|
-
"description": "URL of a Markdown file.",
|
|
752
|
-
"fieldName": "contentSrc"
|
|
753
|
-
},
|
|
754
|
-
{
|
|
755
|
-
"name": "content",
|
|
756
|
-
"type": {
|
|
757
|
-
"text": "string"
|
|
758
|
-
},
|
|
759
|
-
"default": "''",
|
|
760
|
-
"description": "Inline Markdown, used when `content-src` is not set.",
|
|
761
|
-
"fieldName": "content"
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
"name": "image-src",
|
|
765
|
-
"type": {
|
|
766
|
-
"text": "string"
|
|
767
|
-
},
|
|
768
|
-
"default": "''",
|
|
769
|
-
"fieldName": "imageSrc"
|
|
770
|
-
},
|
|
771
|
-
{
|
|
772
|
-
"name": "image-alt",
|
|
773
|
-
"type": {
|
|
774
|
-
"text": "string"
|
|
775
|
-
},
|
|
776
|
-
"default": "''",
|
|
777
|
-
"fieldName": "imageAlt"
|
|
778
|
-
},
|
|
779
|
-
{
|
|
780
|
-
"name": "image-caption",
|
|
781
|
-
"type": {
|
|
782
|
-
"text": "string"
|
|
783
|
-
},
|
|
784
|
-
"default": "''",
|
|
785
|
-
"fieldName": "imageCaption"
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
"name": "inverted",
|
|
789
|
-
"type": {
|
|
790
|
-
"text": "boolean"
|
|
791
|
-
},
|
|
792
|
-
"default": "false",
|
|
793
|
-
"fieldName": "inverted"
|
|
794
|
-
}
|
|
795
|
-
],
|
|
796
|
-
"superclass": {
|
|
797
|
-
"name": "LitElement",
|
|
798
|
-
"package": "lit"
|
|
799
|
-
},
|
|
800
|
-
"tagName": "st-content-block",
|
|
801
|
-
"customElement": true
|
|
802
|
-
}
|
|
803
|
-
],
|
|
804
|
-
"exports": [
|
|
805
|
-
{
|
|
806
|
-
"kind": "js",
|
|
807
|
-
"name": "ContentBlock",
|
|
808
|
-
"declaration": {
|
|
809
|
-
"name": "ContentBlock",
|
|
810
|
-
"module": "src/content-block/ContentBlock.ts"
|
|
811
|
-
}
|
|
812
|
-
},
|
|
813
|
-
{
|
|
814
|
-
"kind": "custom-element-definition",
|
|
815
|
-
"name": "st-content-block",
|
|
816
|
-
"declaration": {
|
|
817
|
-
"name": "ContentBlock",
|
|
818
|
-
"module": "src/content-block/ContentBlock.ts"
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
]
|
|
822
|
-
},
|
|
823
673
|
{
|
|
824
674
|
"kind": "javascript-module",
|
|
825
675
|
"path": "src/cookie-consent/CookieConsent.ts",
|
|
@@ -828,6 +678,12 @@
|
|
|
828
678
|
"kind": "class",
|
|
829
679
|
"description": "Fixed bottom consent bar. The source read/wrote consent through a React `UserContext`; here the\r\nelement persists the choice itself in localStorage (`storage-key`, default the source's\r\n`sankhya_ui_cookie_consent`; storage errors are ignored) and renders nothing once a choice\r\nexists. Fires `cookie-consent-accept` / `cookie-consent-refuse` (detail `{ status }`). The\r\ndefault slot replaces the message text.",
|
|
830
680
|
"name": "CookieConsent",
|
|
681
|
+
"cssProperties": [
|
|
682
|
+
{
|
|
683
|
+
"description": "Overrides the bar's padding.",
|
|
684
|
+
"name": "--st-cookie-consent-padding"
|
|
685
|
+
}
|
|
686
|
+
],
|
|
831
687
|
"members": [
|
|
832
688
|
{
|
|
833
689
|
"kind": "field",
|
|
@@ -1005,74 +861,260 @@
|
|
|
1005
861
|
},
|
|
1006
862
|
{
|
|
1007
863
|
"kind": "javascript-module",
|
|
1008
|
-
"path": "src/
|
|
864
|
+
"path": "src/content-block/ContentBlock.ts",
|
|
1009
865
|
"declarations": [
|
|
1010
866
|
{
|
|
1011
867
|
"kind": "class",
|
|
1012
|
-
"description": "A
|
|
1013
|
-
"name": "
|
|
868
|
+
"description": "A long-form article section: centered title/subtitle, an optional featured image with caption,\r\nthen Markdown body text. Ports `SankhyaUI`'s React `ContentBlock`. The body comes from\r\n`content-src` (a Markdown URL, as in the source) or an inline `content` string (added so the\r\nblock works without a fetch); `content-src` wins when both are set.",
|
|
869
|
+
"name": "ContentBlock",
|
|
1014
870
|
"cssProperties": [
|
|
1015
871
|
{
|
|
1016
|
-
"description": "
|
|
1017
|
-
"name": "--st-
|
|
1018
|
-
},
|
|
1019
|
-
{
|
|
1020
|
-
"description": "Minimum space between a `mega` panel and the header's sides (default `1rem`).",
|
|
1021
|
-
"name": "--st-mega-menu-inset"
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
"description": "Space between the header and a `mega` panel (default `12px`).",
|
|
1025
|
-
"name": "--st-mega-menu-gap"
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
"description": "Corner radius of a `mega` panel (default `24px`).",
|
|
1029
|
-
"name": "--st-mega-menu-radius"
|
|
872
|
+
"description": "Overrides the block's padding.",
|
|
873
|
+
"name": "--st-content-block-padding"
|
|
1030
874
|
}
|
|
1031
875
|
],
|
|
1032
876
|
"members": [
|
|
1033
877
|
{
|
|
1034
878
|
"kind": "field",
|
|
1035
|
-
"name": "
|
|
879
|
+
"name": "title",
|
|
1036
880
|
"type": {
|
|
1037
|
-
"text": "
|
|
881
|
+
"text": "string"
|
|
1038
882
|
},
|
|
1039
|
-
"
|
|
1040
|
-
"
|
|
1041
|
-
"default": "null",
|
|
1042
|
-
"description": "The open dropdown, if any — the source's `DropdownContext.activeDropdown`."
|
|
883
|
+
"default": "''",
|
|
884
|
+
"attribute": "title"
|
|
1043
885
|
},
|
|
1044
886
|
{
|
|
1045
887
|
"kind": "field",
|
|
1046
|
-
"name": "
|
|
888
|
+
"name": "subtitle",
|
|
1047
889
|
"type": {
|
|
1048
890
|
"text": "string"
|
|
1049
891
|
},
|
|
1050
892
|
"default": "''",
|
|
1051
|
-
"
|
|
1052
|
-
"attribute": "label"
|
|
893
|
+
"attribute": "subtitle"
|
|
1053
894
|
},
|
|
1054
895
|
{
|
|
1055
896
|
"kind": "field",
|
|
1056
|
-
"name": "
|
|
897
|
+
"name": "contentSrc",
|
|
1057
898
|
"type": {
|
|
1058
899
|
"text": "string"
|
|
1059
900
|
},
|
|
1060
901
|
"default": "''",
|
|
1061
|
-
"description": "
|
|
1062
|
-
"attribute": "
|
|
902
|
+
"description": "URL of a Markdown file.",
|
|
903
|
+
"attribute": "content-src"
|
|
1063
904
|
},
|
|
1064
905
|
{
|
|
1065
906
|
"kind": "field",
|
|
1066
|
-
"name": "
|
|
907
|
+
"name": "content",
|
|
1067
908
|
"type": {
|
|
1068
|
-
"text": "
|
|
909
|
+
"text": "string"
|
|
1069
910
|
},
|
|
1070
|
-
"default": "'
|
|
1071
|
-
"
|
|
911
|
+
"default": "''",
|
|
912
|
+
"description": "Inline Markdown, used when `content-src` is not set.",
|
|
913
|
+
"attribute": "content"
|
|
1072
914
|
},
|
|
1073
915
|
{
|
|
1074
916
|
"kind": "field",
|
|
1075
|
-
"name": "
|
|
917
|
+
"name": "imageSrc",
|
|
918
|
+
"type": {
|
|
919
|
+
"text": "string"
|
|
920
|
+
},
|
|
921
|
+
"default": "''",
|
|
922
|
+
"attribute": "image-src"
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"kind": "field",
|
|
926
|
+
"name": "imageAlt",
|
|
927
|
+
"type": {
|
|
928
|
+
"text": "string"
|
|
929
|
+
},
|
|
930
|
+
"default": "''",
|
|
931
|
+
"attribute": "image-alt"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"kind": "field",
|
|
935
|
+
"name": "imageCaption",
|
|
936
|
+
"type": {
|
|
937
|
+
"text": "string"
|
|
938
|
+
},
|
|
939
|
+
"default": "''",
|
|
940
|
+
"attribute": "image-caption"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"kind": "field",
|
|
944
|
+
"name": "inverted",
|
|
945
|
+
"type": {
|
|
946
|
+
"text": "boolean"
|
|
947
|
+
},
|
|
948
|
+
"default": "false",
|
|
949
|
+
"attribute": "inverted",
|
|
950
|
+
"reflects": true
|
|
951
|
+
}
|
|
952
|
+
],
|
|
953
|
+
"attributes": [
|
|
954
|
+
{
|
|
955
|
+
"name": "title",
|
|
956
|
+
"type": {
|
|
957
|
+
"text": "string"
|
|
958
|
+
},
|
|
959
|
+
"default": "''",
|
|
960
|
+
"fieldName": "title"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"name": "subtitle",
|
|
964
|
+
"type": {
|
|
965
|
+
"text": "string"
|
|
966
|
+
},
|
|
967
|
+
"default": "''",
|
|
968
|
+
"fieldName": "subtitle"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"name": "content-src",
|
|
972
|
+
"type": {
|
|
973
|
+
"text": "string"
|
|
974
|
+
},
|
|
975
|
+
"default": "''",
|
|
976
|
+
"description": "URL of a Markdown file.",
|
|
977
|
+
"fieldName": "contentSrc"
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"name": "content",
|
|
981
|
+
"type": {
|
|
982
|
+
"text": "string"
|
|
983
|
+
},
|
|
984
|
+
"default": "''",
|
|
985
|
+
"description": "Inline Markdown, used when `content-src` is not set.",
|
|
986
|
+
"fieldName": "content"
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"name": "image-src",
|
|
990
|
+
"type": {
|
|
991
|
+
"text": "string"
|
|
992
|
+
},
|
|
993
|
+
"default": "''",
|
|
994
|
+
"fieldName": "imageSrc"
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"name": "image-alt",
|
|
998
|
+
"type": {
|
|
999
|
+
"text": "string"
|
|
1000
|
+
},
|
|
1001
|
+
"default": "''",
|
|
1002
|
+
"fieldName": "imageAlt"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"name": "image-caption",
|
|
1006
|
+
"type": {
|
|
1007
|
+
"text": "string"
|
|
1008
|
+
},
|
|
1009
|
+
"default": "''",
|
|
1010
|
+
"fieldName": "imageCaption"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"name": "inverted",
|
|
1014
|
+
"type": {
|
|
1015
|
+
"text": "boolean"
|
|
1016
|
+
},
|
|
1017
|
+
"default": "false",
|
|
1018
|
+
"fieldName": "inverted"
|
|
1019
|
+
}
|
|
1020
|
+
],
|
|
1021
|
+
"superclass": {
|
|
1022
|
+
"name": "LitElement",
|
|
1023
|
+
"package": "lit"
|
|
1024
|
+
},
|
|
1025
|
+
"tagName": "st-content-block",
|
|
1026
|
+
"customElement": true
|
|
1027
|
+
}
|
|
1028
|
+
],
|
|
1029
|
+
"exports": [
|
|
1030
|
+
{
|
|
1031
|
+
"kind": "js",
|
|
1032
|
+
"name": "ContentBlock",
|
|
1033
|
+
"declaration": {
|
|
1034
|
+
"name": "ContentBlock",
|
|
1035
|
+
"module": "src/content-block/ContentBlock.ts"
|
|
1036
|
+
}
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"kind": "custom-element-definition",
|
|
1040
|
+
"name": "st-content-block",
|
|
1041
|
+
"declaration": {
|
|
1042
|
+
"name": "ContentBlock",
|
|
1043
|
+
"module": "src/content-block/ContentBlock.ts"
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
]
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"kind": "javascript-module",
|
|
1050
|
+
"path": "src/dropdown/Dropdown.ts",
|
|
1051
|
+
"declarations": [
|
|
1052
|
+
{
|
|
1053
|
+
"kind": "class",
|
|
1054
|
+
"description": "A labeled trigger + slotted dropdown panel — nav menus (typically holding an `st-menu-grid`),\r\naction menus, anything \"click a trigger, show content under it\". A 1:1 port of `SankhyaUI`'s\r\nReact `Dropdown` (`SankhyaCMS/SankhyaUI/src/components/Dropdown`): same markup\r\n(`.menu` > `.menu-title` + `.menu-dropdown`), sizes, 0.3s slide/fade, and behavior —\r\n\r\n- only one dropdown is open at a time (the source's `DropdownProvider`, built in here, so no\r\n provider element is needed);\r\n- a mousedown outside, Escape, or a click inside the panel closes it;\r\n- an `href` trigger toggles the panel when it has content, and is a plain link when it doesn't;\r\n- `inline` opens the panel in the flow, the source's `.touch-device` layout.\r\n\r\nColors and the panel's surface come from the suite theme (the source left those to the\r\nconsumer's `className`/`itemGroupClassName` utility classes). Two source rules are left out\r\nbecause they break existing suite uses (`st-source-bar`'s site/library menus): the 100vw panel\r\nat <=768px (overflows the screen from wherever the trigger sits; the header uses `inline`\r\ninstead) and `overflow: hidden` on slotted children (clips their focus rings). Suite additions\r\nkept on top: `align`, `active`, `disabled`, `inline`, and the `dropdown-toggle` event — plus\r\n`mega` and `open-on-hover` for an okta.com-style mega menu (see `st-mega-menu`).",
|
|
1055
|
+
"name": "Dropdown",
|
|
1056
|
+
"cssProperties": [
|
|
1057
|
+
{
|
|
1058
|
+
"description": "Maximum width of a `mega` panel (default `1400px`).",
|
|
1059
|
+
"name": "--st-mega-menu-max-width"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"description": "Minimum space between a `mega` panel and the header's sides (default `1rem`).",
|
|
1063
|
+
"name": "--st-mega-menu-inset"
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"description": "Space between the header and a `mega` panel (default `12px`).",
|
|
1067
|
+
"name": "--st-mega-menu-gap"
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"description": "Corner radius of a `mega` panel (default `24px`).",
|
|
1071
|
+
"name": "--st-mega-menu-radius"
|
|
1072
|
+
}
|
|
1073
|
+
],
|
|
1074
|
+
"members": [
|
|
1075
|
+
{
|
|
1076
|
+
"kind": "field",
|
|
1077
|
+
"name": "openDropdown",
|
|
1078
|
+
"type": {
|
|
1079
|
+
"text": "Dropdown | null"
|
|
1080
|
+
},
|
|
1081
|
+
"privacy": "private",
|
|
1082
|
+
"static": true,
|
|
1083
|
+
"default": "null",
|
|
1084
|
+
"description": "The open dropdown, if any — the source's `DropdownContext.activeDropdown`."
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"kind": "field",
|
|
1088
|
+
"name": "label",
|
|
1089
|
+
"type": {
|
|
1090
|
+
"text": "string"
|
|
1091
|
+
},
|
|
1092
|
+
"default": "''",
|
|
1093
|
+
"description": "Trigger label text (source: `title`, renamed because `title` is the native tooltip\r\nattribute). Leave empty to show only `slot=\"icon\"`.",
|
|
1094
|
+
"attribute": "label"
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"kind": "field",
|
|
1098
|
+
"name": "href",
|
|
1099
|
+
"type": {
|
|
1100
|
+
"text": "string"
|
|
1101
|
+
},
|
|
1102
|
+
"default": "''",
|
|
1103
|
+
"description": "Renders the trigger as an `<a href>`. With panel content the click toggles the panel (as in\r\nthe source); with none it navigates.",
|
|
1104
|
+
"attribute": "href"
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"kind": "field",
|
|
1108
|
+
"name": "iconPosition",
|
|
1109
|
+
"type": {
|
|
1110
|
+
"text": "'left' | 'right'"
|
|
1111
|
+
},
|
|
1112
|
+
"default": "'left'",
|
|
1113
|
+
"attribute": "icon-position"
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
"kind": "field",
|
|
1117
|
+
"name": "iconSize",
|
|
1076
1118
|
"type": {
|
|
1077
1119
|
"text": "string"
|
|
1078
1120
|
},
|
|
@@ -1585,6 +1627,12 @@
|
|
|
1585
1627
|
"kind": "class",
|
|
1586
1628
|
"description": "A title/markdown-subtitle/feature-list block beside (or under) an image.",
|
|
1587
1629
|
"name": "FeatureSplit",
|
|
1630
|
+
"cssProperties": [
|
|
1631
|
+
{
|
|
1632
|
+
"description": "Overrides the block's padding.",
|
|
1633
|
+
"name": "--st-feature-split-padding"
|
|
1634
|
+
}
|
|
1635
|
+
],
|
|
1588
1636
|
"members": [
|
|
1589
1637
|
{
|
|
1590
1638
|
"kind": "field",
|
|
@@ -1923,6 +1971,12 @@
|
|
|
1923
1971
|
"kind": "class",
|
|
1924
1972
|
"description": "A titled grid of feature tiles. Ports `SankhyaUI`'s React `FeaturesSection`: tiles come from the\r\n`items` property, from slotted `st-feature-item` elements (the source's `children`), or both\r\n(slotted first). `columns` sets the grid width (default 2; one column below 768px). `inverted`\r\nis passed on to the `items` tiles; slotted tiles need their own `inverted` attribute.",
|
|
1925
1973
|
"name": "FeaturesSection",
|
|
1974
|
+
"cssProperties": [
|
|
1975
|
+
{
|
|
1976
|
+
"description": "Overrides the section's padding.",
|
|
1977
|
+
"name": "--st-features-section-padding"
|
|
1978
|
+
}
|
|
1979
|
+
],
|
|
1926
1980
|
"members": [
|
|
1927
1981
|
{
|
|
1928
1982
|
"kind": "field",
|
|
@@ -2324,32 +2378,12 @@
|
|
|
2324
2378
|
},
|
|
2325
2379
|
{
|
|
2326
2380
|
"kind": "javascript-module",
|
|
2327
|
-
"path": "src/
|
|
2381
|
+
"path": "src/header/Header.ts",
|
|
2328
2382
|
"declarations": [
|
|
2329
2383
|
{
|
|
2330
2384
|
"kind": "class",
|
|
2331
|
-
"description": "
|
|
2332
|
-
"name": "
|
|
2333
|
-
"cssProperties": [
|
|
2334
|
-
{
|
|
2335
|
-
"description": "Text colour over the image.",
|
|
2336
|
-
"name": "--st-hero-text-color"
|
|
2337
|
-
},
|
|
2338
|
-
{
|
|
2339
|
-
"description": "Minimum height when `size` is `large` (default `640px`).",
|
|
2340
|
-
"name": "--st-hero-min-height"
|
|
2341
|
-
}
|
|
2342
|
-
],
|
|
2343
|
-
"cssParts": [
|
|
2344
|
-
{
|
|
2345
|
-
"description": "The small label above the title.",
|
|
2346
|
-
"name": "eyebrow"
|
|
2347
|
-
},
|
|
2348
|
-
{
|
|
2349
|
-
"description": "The outlined second button.",
|
|
2350
|
-
"name": "secondary-action"
|
|
2351
|
-
}
|
|
2352
|
-
],
|
|
2385
|
+
"description": "The app-shell header bar — brand (image + title, or title alone) on the left, a `slot=\"menu\"`\r\nfor primary nav (e.g. `st-dropdown`/`st-menu-grid` mega-menus, or plain links) taking the\r\nmiddle, and a `slot=\"utility\"` for account/app-switcher/theme controls on the right. Ported\r\nfrom `SankhyaUI`'s React `Header` (a separate, unrelated marketing-site project) to this\r\npackage's Lit conventions and this workspace's actual needs — that source component takes an\r\n`imageSrc` logo with no text fallback, but none of this suite's apps has a logo image today, so\r\n`title` is the primary brand prop here and `brand-image-url` is optional, mirroring\r\n`st-app-header`'s own brand/title split (this component's slotted-menu/utility shape is a\r\ndeliberately different, more generic surface than `st-app-header`'s fixed nav-links/user-menu\r\nprops — pick whichever fits a given app's header).\r\n\r\nLayout follows the source's `Header.css`: the menu starts 4rem after the brand, the utility\r\ncontrols sit after a vertical divider, and below `BREAKPOINT_TABLET` (900px here; 768px in the\r\nsource) `menu`/`utility` collapse behind a hamburger toggle into a full-screen layer under the\r\ntoggle (closes on Escape or a click inside it), where the menu's `st-dropdown`s are switched to\r\n`inline` so they open in the flow — the same two slotted elements just get repositioned by CSS\r\n(`.mobile-panel`'s `display: contents` at desktop width vs. a real fixed-position box below\r\n`BREAKPOINT_TABLET`), rather than the slots being duplicated in the template, since a shadow\r\nroot can only ever assign a given light-DOM child to the *first* slot of a given name.\r\n\r\nAlso carries an optional built-in language switcher (`languages`/`currentLanguageCode`, fires\r\n`language-change`) — ported from `st-app-header`'s own implementation verbatim rather than\r\nrebuilt, since the source `Header`'s reference story shows an equivalent flag/language `Select`\r\nas a first-class header utility. Hidden entirely when `languages` has fewer than two entries.\r\nThis component has no translation logic itself; the consuming app owns what a language `code`\r\nmeans and which content it re-renders in response.",
|
|
2386
|
+
"name": "Header",
|
|
2353
2387
|
"members": [
|
|
2354
2388
|
{
|
|
2355
2389
|
"kind": "field",
|
|
@@ -2362,59 +2396,53 @@
|
|
|
2362
2396
|
},
|
|
2363
2397
|
{
|
|
2364
2398
|
"kind": "field",
|
|
2365
|
-
"name": "
|
|
2399
|
+
"name": "brandImageUrl",
|
|
2366
2400
|
"type": {
|
|
2367
2401
|
"text": "string"
|
|
2368
2402
|
},
|
|
2369
2403
|
"default": "''",
|
|
2370
|
-
"
|
|
2404
|
+
"description": "Optional logo image URL, shown before `title`. Omitted entirely when empty — none of this suite's apps has one today. Matches the source component's `imageSrc` (renamed here to pair with `title`/`logoHref`, since this component's only image use is the brand mark).",
|
|
2405
|
+
"attribute": "brand-image-url"
|
|
2371
2406
|
},
|
|
2372
2407
|
{
|
|
2373
2408
|
"kind": "field",
|
|
2374
|
-
"name": "
|
|
2409
|
+
"name": "altText",
|
|
2375
2410
|
"type": {
|
|
2376
2411
|
"text": "string"
|
|
2377
2412
|
},
|
|
2378
|
-
"default": "''",
|
|
2379
|
-
"
|
|
2413
|
+
"default": "'Logo'",
|
|
2414
|
+
"description": "`alt` text for the brand image — matches the source component's `altText` (default `'Logo'`).",
|
|
2415
|
+
"attribute": "alt-text"
|
|
2380
2416
|
},
|
|
2381
2417
|
{
|
|
2382
2418
|
"kind": "field",
|
|
2383
|
-
"name": "
|
|
2419
|
+
"name": "logoHref",
|
|
2384
2420
|
"type": {
|
|
2385
2421
|
"text": "string"
|
|
2386
2422
|
},
|
|
2387
2423
|
"default": "''",
|
|
2388
|
-
"
|
|
2424
|
+
"description": "Wraps the brand in an `<a>` when set (e.g. `/`); a plain non-link `<div>` otherwise.",
|
|
2425
|
+
"attribute": "logoHref"
|
|
2389
2426
|
},
|
|
2390
2427
|
{
|
|
2391
2428
|
"kind": "field",
|
|
2392
|
-
"name": "
|
|
2429
|
+
"name": "logoTarget",
|
|
2393
2430
|
"type": {
|
|
2394
2431
|
"text": "string"
|
|
2395
2432
|
},
|
|
2396
|
-
"default": "''",
|
|
2397
|
-
"
|
|
2398
|
-
|
|
2399
|
-
{
|
|
2400
|
-
"kind": "field",
|
|
2401
|
-
"name": "textAlignment",
|
|
2402
|
-
"type": {
|
|
2403
|
-
"text": "'left' | 'center' | 'right' | 'justify'"
|
|
2404
|
-
},
|
|
2405
|
-
"default": "'left'",
|
|
2406
|
-
"attribute": "text-alignment",
|
|
2407
|
-
"reflects": true
|
|
2433
|
+
"default": "'_self'",
|
|
2434
|
+
"description": "`target` for the brand `<a>` — matches the source component's `logoTarget` (default `_self`). No effect when `logoHref` isn't set.",
|
|
2435
|
+
"attribute": "logo-target"
|
|
2408
2436
|
},
|
|
2409
2437
|
{
|
|
2410
2438
|
"kind": "field",
|
|
2411
|
-
"name": "
|
|
2439
|
+
"name": "logoClassName",
|
|
2412
2440
|
"type": {
|
|
2413
|
-
"text": "
|
|
2441
|
+
"text": "string"
|
|
2414
2442
|
},
|
|
2415
|
-
"default": "'
|
|
2416
|
-
"
|
|
2417
|
-
"
|
|
2443
|
+
"default": "''",
|
|
2444
|
+
"description": "Extra class(es) appended to the brand link/div — matches the source component's `logoClassName`.",
|
|
2445
|
+
"attribute": "logo-class-name"
|
|
2418
2446
|
},
|
|
2419
2447
|
{
|
|
2420
2448
|
"kind": "field",
|
|
@@ -2423,618 +2451,653 @@
|
|
|
2423
2451
|
"text": "boolean"
|
|
2424
2452
|
},
|
|
2425
2453
|
"default": "false",
|
|
2454
|
+
"description": "Inverts the header's color roles (light-on-dark instead of dark-on-light) — matches the\r\nsource component's `inverted` (from its shared `BaseProps`).",
|
|
2426
2455
|
"attribute": "inverted",
|
|
2427
2456
|
"reflects": true
|
|
2428
2457
|
},
|
|
2429
2458
|
{
|
|
2430
2459
|
"kind": "field",
|
|
2431
|
-
"name": "
|
|
2460
|
+
"name": "sticky",
|
|
2432
2461
|
"type": {
|
|
2433
|
-
"text": "
|
|
2462
|
+
"text": "boolean"
|
|
2434
2463
|
},
|
|
2435
|
-
"default": "
|
|
2436
|
-
"attribute": "
|
|
2464
|
+
"default": "false",
|
|
2465
|
+
"attribute": "sticky",
|
|
2466
|
+
"reflects": true
|
|
2437
2467
|
},
|
|
2438
2468
|
{
|
|
2439
2469
|
"kind": "field",
|
|
2440
|
-
"name": "
|
|
2470
|
+
"name": "transparent",
|
|
2441
2471
|
"type": {
|
|
2442
|
-
"text": "
|
|
2472
|
+
"text": "boolean"
|
|
2443
2473
|
},
|
|
2444
|
-
"default": "
|
|
2445
|
-
"description": "
|
|
2446
|
-
"attribute": "
|
|
2474
|
+
"default": "false",
|
|
2475
|
+
"description": "Fixes the header over the top of the page and makes it see-through, with light text\r\n(`--st-header-transparent-color`), until the page scrolls past `scroll-threshold` — for a\r\nheader laid over a dark hero. It then takes its normal background and a shadow. The page\r\ncontent starts under it, so the first section should leave room for the 64px bar.",
|
|
2476
|
+
"attribute": "transparent",
|
|
2477
|
+
"reflects": true
|
|
2447
2478
|
},
|
|
2448
2479
|
{
|
|
2449
2480
|
"kind": "field",
|
|
2450
|
-
"name": "
|
|
2481
|
+
"name": "hideOnScroll",
|
|
2451
2482
|
"type": {
|
|
2452
|
-
"text": "
|
|
2483
|
+
"text": "boolean"
|
|
2453
2484
|
},
|
|
2454
|
-
"default": "
|
|
2455
|
-
"description": "
|
|
2456
|
-
"attribute": "
|
|
2485
|
+
"default": "false",
|
|
2486
|
+
"description": "Slides the header out of view while the page scrolls down and back in when it scrolls up.",
|
|
2487
|
+
"attribute": "hide-on-scroll",
|
|
2488
|
+
"reflects": true
|
|
2457
2489
|
},
|
|
2458
2490
|
{
|
|
2459
2491
|
"kind": "field",
|
|
2460
|
-
"name": "
|
|
2492
|
+
"name": "scrollThreshold",
|
|
2461
2493
|
"type": {
|
|
2462
|
-
"text": "
|
|
2494
|
+
"text": "number"
|
|
2463
2495
|
},
|
|
2464
|
-
"default": "
|
|
2465
|
-
"
|
|
2496
|
+
"default": "8",
|
|
2497
|
+
"description": "Scroll distance in px after which the header counts as `scrolled`.",
|
|
2498
|
+
"attribute": "scroll-threshold"
|
|
2466
2499
|
},
|
|
2467
2500
|
{
|
|
2468
2501
|
"kind": "field",
|
|
2469
|
-
"name": "
|
|
2502
|
+
"name": "scrolled",
|
|
2470
2503
|
"type": {
|
|
2471
|
-
"text": "
|
|
2504
|
+
"text": "boolean"
|
|
2472
2505
|
},
|
|
2473
|
-
"default": "
|
|
2474
|
-
"description": "
|
|
2475
|
-
"attribute": "
|
|
2506
|
+
"default": "false",
|
|
2507
|
+
"description": "True once the page has scrolled past `scroll-threshold`; reflected so pages can style `st-header[scrolled]`. Set by the header, never from outside.",
|
|
2508
|
+
"attribute": "scrolled",
|
|
2476
2509
|
"reflects": true
|
|
2477
2510
|
},
|
|
2478
2511
|
{
|
|
2479
2512
|
"kind": "field",
|
|
2480
|
-
"name": "
|
|
2513
|
+
"name": "scrollHidden",
|
|
2481
2514
|
"type": {
|
|
2482
|
-
"text": "
|
|
2515
|
+
"text": "boolean"
|
|
2483
2516
|
},
|
|
2484
|
-
"default": "
|
|
2485
|
-
"description": "
|
|
2486
|
-
"attribute": "
|
|
2517
|
+
"default": "false",
|
|
2518
|
+
"description": "True while `hide-on-scroll` has slid the header away. Set by the header, never from outside.",
|
|
2519
|
+
"attribute": "scroll-hidden",
|
|
2487
2520
|
"reflects": true
|
|
2488
2521
|
},
|
|
2489
2522
|
{
|
|
2490
2523
|
"kind": "field",
|
|
2491
|
-
"name": "
|
|
2524
|
+
"name": "lastScrollY",
|
|
2492
2525
|
"type": {
|
|
2493
|
-
"text": "
|
|
2526
|
+
"text": "number"
|
|
2494
2527
|
},
|
|
2495
|
-
"
|
|
2496
|
-
"
|
|
2497
|
-
"attribute": "overlay",
|
|
2498
|
-
"reflects": true
|
|
2528
|
+
"privacy": "private",
|
|
2529
|
+
"default": "0"
|
|
2499
2530
|
},
|
|
2500
2531
|
{
|
|
2501
2532
|
"kind": "field",
|
|
2502
|
-
"name": "
|
|
2503
|
-
"privacy": "private",
|
|
2504
|
-
"static": true,
|
|
2505
|
-
"default": "{ top: 'center top', left: 'left center', right: 'right center', bottom: 'center bottom', center: 'center center' }",
|
|
2533
|
+
"name": "scrollFrame",
|
|
2506
2534
|
"type": {
|
|
2507
|
-
"text": "
|
|
2508
|
-
}
|
|
2509
|
-
},
|
|
2510
|
-
{
|
|
2511
|
-
"kind": "method",
|
|
2512
|
-
"name": "emitAction",
|
|
2513
|
-
"privacy": "private",
|
|
2514
|
-
"return": {
|
|
2515
|
-
"type": {
|
|
2516
|
-
"text": "void"
|
|
2517
|
-
}
|
|
2535
|
+
"text": "number"
|
|
2518
2536
|
},
|
|
2519
|
-
"
|
|
2520
|
-
|
|
2521
|
-
"name": "event",
|
|
2522
|
-
"type": {
|
|
2523
|
-
"text": "MouseEvent"
|
|
2524
|
-
}
|
|
2525
|
-
},
|
|
2526
|
-
{
|
|
2527
|
-
"name": "href",
|
|
2528
|
-
"type": {
|
|
2529
|
-
"text": "string"
|
|
2530
|
-
}
|
|
2531
|
-
},
|
|
2532
|
-
{
|
|
2533
|
-
"name": "kind",
|
|
2534
|
-
"type": {
|
|
2535
|
-
"text": "'primary' | 'secondary'"
|
|
2536
|
-
}
|
|
2537
|
-
}
|
|
2538
|
-
]
|
|
2537
|
+
"privacy": "private",
|
|
2538
|
+
"default": "0"
|
|
2539
2539
|
},
|
|
2540
2540
|
{
|
|
2541
2541
|
"kind": "field",
|
|
2542
|
-
"name": "
|
|
2542
|
+
"name": "onScroll",
|
|
2543
2543
|
"privacy": "private"
|
|
2544
2544
|
},
|
|
2545
2545
|
{
|
|
2546
2546
|
"kind": "field",
|
|
2547
|
-
"name": "
|
|
2548
|
-
"privacy": "private"
|
|
2549
|
-
}
|
|
2550
|
-
],
|
|
2551
|
-
"events": [
|
|
2552
|
-
{
|
|
2553
|
-
"description": "Cancelable, before navigating. Detail `{ href, kind }`, `kind` being `primary` or `secondary`.",
|
|
2554
|
-
"name": "action"
|
|
2555
|
-
}
|
|
2556
|
-
],
|
|
2557
|
-
"attributes": [
|
|
2558
|
-
{
|
|
2559
|
-
"name": "title",
|
|
2547
|
+
"name": "languages",
|
|
2560
2548
|
"type": {
|
|
2561
|
-
"text": "string"
|
|
2549
|
+
"text": "{ code: string; label: string }[]"
|
|
2562
2550
|
},
|
|
2563
|
-
"default": "
|
|
2564
|
-
"
|
|
2551
|
+
"default": "[]",
|
|
2552
|
+
"description": "Language switcher options, e.g. `[{ code: 'en', label: 'English' }, ...]` — hidden entirely\r\nwhen empty or when only one language is offered (same convention as `st-app-header`'s\r\n`languages`, which this reuses verbatim). This component has no translation logic itself —\r\nselecting an option fires `language-change` (detail: `{ code }`), and the consuming app owns\r\nwhat `code` actually means and which content it re-renders."
|
|
2565
2553
|
},
|
|
2566
2554
|
{
|
|
2567
|
-
"
|
|
2555
|
+
"kind": "field",
|
|
2556
|
+
"name": "currentLanguageCode",
|
|
2568
2557
|
"type": {
|
|
2569
2558
|
"text": "string"
|
|
2570
2559
|
},
|
|
2571
2560
|
"default": "''",
|
|
2572
|
-
"
|
|
2561
|
+
"attribute": "current-language-code"
|
|
2573
2562
|
},
|
|
2574
2563
|
{
|
|
2575
|
-
"
|
|
2564
|
+
"kind": "field",
|
|
2565
|
+
"name": "languageMenuLabel",
|
|
2576
2566
|
"type": {
|
|
2577
2567
|
"text": "string"
|
|
2578
2568
|
},
|
|
2579
|
-
"default": "''",
|
|
2580
|
-
"
|
|
2569
|
+
"default": "'Language'",
|
|
2570
|
+
"attribute": "language-menu-label"
|
|
2581
2571
|
},
|
|
2582
2572
|
{
|
|
2583
|
-
"
|
|
2573
|
+
"kind": "field",
|
|
2574
|
+
"name": "mobileOpen",
|
|
2584
2575
|
"type": {
|
|
2585
|
-
"text": "
|
|
2576
|
+
"text": "boolean"
|
|
2586
2577
|
},
|
|
2587
|
-
"default": "
|
|
2588
|
-
"
|
|
2578
|
+
"default": "false",
|
|
2579
|
+
"description": "Internal open/closed state for the mobile nav overlay, reflected to an attribute purely so\r\nthe `:host([mobile-open])` CSS selector above can react to it — not meant to be set from\r\noutside.",
|
|
2580
|
+
"attribute": "mobile-open",
|
|
2581
|
+
"reflects": true
|
|
2589
2582
|
},
|
|
2590
2583
|
{
|
|
2591
|
-
"
|
|
2584
|
+
"kind": "field",
|
|
2585
|
+
"name": "compact",
|
|
2592
2586
|
"type": {
|
|
2593
|
-
"text": "
|
|
2587
|
+
"text": "boolean"
|
|
2594
2588
|
},
|
|
2595
|
-
"default": "
|
|
2596
|
-
"
|
|
2589
|
+
"default": "false",
|
|
2590
|
+
"description": "True while the menu doesn't fit the bar at the current width: the header then shows the same\r\nhamburger layout it uses on a narrow screen. Set by `evaluateFit`, never from outside.",
|
|
2591
|
+
"attribute": "compact",
|
|
2592
|
+
"reflects": true
|
|
2597
2593
|
},
|
|
2598
2594
|
{
|
|
2599
|
-
"
|
|
2595
|
+
"kind": "field",
|
|
2596
|
+
"name": "languageMenuOpen",
|
|
2600
2597
|
"type": {
|
|
2601
|
-
"text": "
|
|
2598
|
+
"text": "boolean"
|
|
2602
2599
|
},
|
|
2603
|
-
"
|
|
2604
|
-
"
|
|
2600
|
+
"privacy": "private",
|
|
2601
|
+
"default": "false"
|
|
2605
2602
|
},
|
|
2606
2603
|
{
|
|
2607
|
-
"
|
|
2604
|
+
"kind": "field",
|
|
2605
|
+
"name": "hasUtility",
|
|
2608
2606
|
"type": {
|
|
2609
|
-
"text": "
|
|
2607
|
+
"text": "boolean"
|
|
2610
2608
|
},
|
|
2611
|
-
"
|
|
2612
|
-
"
|
|
2609
|
+
"privacy": "private",
|
|
2610
|
+
"default": "false",
|
|
2611
|
+
"description": "Whether `slot=\"utility\"` has content — an empty utility row (and its divider) is hidden."
|
|
2613
2612
|
},
|
|
2614
2613
|
{
|
|
2615
|
-
"
|
|
2614
|
+
"kind": "field",
|
|
2615
|
+
"name": "resizeObserver",
|
|
2616
2616
|
"type": {
|
|
2617
|
-
"text": "
|
|
2617
|
+
"text": "ResizeObserver | undefined"
|
|
2618
2618
|
},
|
|
2619
|
-
"
|
|
2620
|
-
"fieldName": "inverted"
|
|
2619
|
+
"privacy": "private"
|
|
2621
2620
|
},
|
|
2622
2621
|
{
|
|
2623
|
-
"
|
|
2622
|
+
"kind": "field",
|
|
2623
|
+
"name": "narrowQuery",
|
|
2624
2624
|
"type": {
|
|
2625
|
-
"text": "
|
|
2625
|
+
"text": "MediaQueryList | undefined"
|
|
2626
2626
|
},
|
|
2627
|
-
"
|
|
2628
|
-
"
|
|
2627
|
+
"privacy": "private",
|
|
2628
|
+
"description": "Matches below BREAKPOINT_TABLET, where the hamburger layout is always on."
|
|
2629
2629
|
},
|
|
2630
2630
|
{
|
|
2631
|
-
"
|
|
2631
|
+
"kind": "field",
|
|
2632
|
+
"name": "inlinedDropdowns",
|
|
2633
|
+
"privacy": "private",
|
|
2634
|
+
"default": "new Set<HTMLElement & { inline: boolean; open: boolean }>()",
|
|
2635
|
+
"description": "The dropdowns this header switched to `inline` — only these are switched back, so a caller's\r\nown `inline` setting is left alone."
|
|
2636
|
+
},
|
|
2637
|
+
{
|
|
2638
|
+
"kind": "field",
|
|
2639
|
+
"name": "syncInlineDropdowns",
|
|
2640
|
+
"privacy": "private",
|
|
2641
|
+
"description": "While the hamburger layout is on, the dropdowns in the header open in the flow of the\r\nfull-screen panel instead of floating over it (SankhyaUI's touch-device layout)."
|
|
2642
|
+
},
|
|
2643
|
+
{
|
|
2644
|
+
"kind": "field",
|
|
2645
|
+
"name": "onUtilitySlotChange",
|
|
2646
|
+
"privacy": "private"
|
|
2647
|
+
},
|
|
2648
|
+
{
|
|
2649
|
+
"kind": "field",
|
|
2650
|
+
"name": "onMenuSlotChange",
|
|
2651
|
+
"privacy": "private"
|
|
2652
|
+
},
|
|
2653
|
+
{
|
|
2654
|
+
"kind": "field",
|
|
2655
|
+
"name": "collapsedAtWidth",
|
|
2632
2656
|
"type": {
|
|
2633
|
-
"text": "
|
|
2657
|
+
"text": "number"
|
|
2634
2658
|
},
|
|
2635
|
-
"
|
|
2636
|
-
"
|
|
2637
|
-
"
|
|
2659
|
+
"privacy": "private",
|
|
2660
|
+
"default": "0",
|
|
2661
|
+
"description": "The bar width at which the menu last overflowed — the bar only expands again once it is\r\nclearly wider than this, so it can't flip back and forth right at the threshold."
|
|
2638
2662
|
},
|
|
2639
2663
|
{
|
|
2640
|
-
"
|
|
2641
|
-
"
|
|
2642
|
-
|
|
2664
|
+
"kind": "field",
|
|
2665
|
+
"name": "evaluateFit",
|
|
2666
|
+
"privacy": "private",
|
|
2667
|
+
"description": "Collapses to the hamburger layout when the slotted menu overflows its row, and expands again\r\nonce there is room. The collapsed layout hides the menu, so the room it needs can't be\r\nmeasured then; the width remembered when it collapsed stands in for it."
|
|
2668
|
+
},
|
|
2669
|
+
{
|
|
2670
|
+
"kind": "method",
|
|
2671
|
+
"name": "menuOverflows",
|
|
2672
|
+
"privacy": "private",
|
|
2673
|
+
"return": {
|
|
2674
|
+
"type": {
|
|
2675
|
+
"text": "boolean"
|
|
2676
|
+
}
|
|
2643
2677
|
},
|
|
2644
|
-
"
|
|
2645
|
-
"description": "Label of an outlined second button next to the primary one.",
|
|
2646
|
-
"fieldName": "secondaryActionLabel"
|
|
2678
|
+
"description": "Whether the visible menu items reach past the right edge of the menu row. Measured from the\r\nitems' own boxes (the slotted elements and their direct children), not the row's scrollWidth:\r\na closed dropdown's absolutely positioned panel also counts towards scrollWidth, which would\r\nreport overflow at any width."
|
|
2647
2679
|
},
|
|
2648
2680
|
{
|
|
2649
|
-
"
|
|
2681
|
+
"kind": "field",
|
|
2682
|
+
"name": "lightDomObserver",
|
|
2650
2683
|
"type": {
|
|
2651
|
-
"text": "
|
|
2684
|
+
"text": "MutationObserver | undefined"
|
|
2652
2685
|
},
|
|
2653
|
-
"
|
|
2654
|
-
"fieldName": "secondaryHref"
|
|
2686
|
+
"privacy": "private"
|
|
2655
2687
|
},
|
|
2656
2688
|
{
|
|
2657
|
-
"
|
|
2658
|
-
"
|
|
2659
|
-
|
|
2689
|
+
"kind": "field",
|
|
2690
|
+
"name": "closeOnEscape",
|
|
2691
|
+
"privacy": "private"
|
|
2692
|
+
},
|
|
2693
|
+
{
|
|
2694
|
+
"kind": "field",
|
|
2695
|
+
"name": "closeLanguageMenuOnOutsideClick",
|
|
2696
|
+
"privacy": "private"
|
|
2697
|
+
},
|
|
2698
|
+
{
|
|
2699
|
+
"kind": "method",
|
|
2700
|
+
"name": "renderLanguageMenu",
|
|
2701
|
+
"privacy": "private"
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
"kind": "method",
|
|
2705
|
+
"name": "onLanguageSelect",
|
|
2706
|
+
"privacy": "private",
|
|
2707
|
+
"return": {
|
|
2708
|
+
"type": {
|
|
2709
|
+
"text": "void"
|
|
2710
|
+
}
|
|
2660
2711
|
},
|
|
2661
|
-
"
|
|
2662
|
-
|
|
2663
|
-
|
|
2712
|
+
"parameters": [
|
|
2713
|
+
{
|
|
2714
|
+
"name": "code",
|
|
2715
|
+
"type": {
|
|
2716
|
+
"text": "string"
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
]
|
|
2664
2720
|
},
|
|
2665
2721
|
{
|
|
2666
|
-
"
|
|
2667
|
-
"
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
"fieldName": "contentPosition"
|
|
2673
|
-
},
|
|
2722
|
+
"kind": "method",
|
|
2723
|
+
"name": "renderBrand",
|
|
2724
|
+
"privacy": "private"
|
|
2725
|
+
}
|
|
2726
|
+
],
|
|
2727
|
+
"events": [
|
|
2674
2728
|
{
|
|
2675
|
-
"name": "
|
|
2729
|
+
"name": "language-change",
|
|
2676
2730
|
"type": {
|
|
2677
|
-
"text": "
|
|
2678
|
-
}
|
|
2679
|
-
"default": "'even'",
|
|
2680
|
-
"description": "`even` darkens the whole image; `gradient` darkens behind the copy only; `none` shows the image as is.",
|
|
2681
|
-
"fieldName": "overlay"
|
|
2731
|
+
"text": "CustomEvent"
|
|
2732
|
+
}
|
|
2682
2733
|
}
|
|
2683
2734
|
],
|
|
2684
|
-
"
|
|
2685
|
-
"name": "LitElement",
|
|
2686
|
-
"package": "lit"
|
|
2687
|
-
},
|
|
2688
|
-
"tagName": "st-hero",
|
|
2689
|
-
"customElement": true
|
|
2690
|
-
}
|
|
2691
|
-
],
|
|
2692
|
-
"exports": [
|
|
2693
|
-
{
|
|
2694
|
-
"kind": "js",
|
|
2695
|
-
"name": "Hero",
|
|
2696
|
-
"declaration": {
|
|
2697
|
-
"name": "Hero",
|
|
2698
|
-
"module": "src/hero/Hero.ts"
|
|
2699
|
-
}
|
|
2700
|
-
},
|
|
2701
|
-
{
|
|
2702
|
-
"kind": "custom-element-definition",
|
|
2703
|
-
"name": "st-hero",
|
|
2704
|
-
"declaration": {
|
|
2705
|
-
"name": "Hero",
|
|
2706
|
-
"module": "src/hero/Hero.ts"
|
|
2707
|
-
}
|
|
2708
|
-
}
|
|
2709
|
-
]
|
|
2710
|
-
},
|
|
2711
|
-
{
|
|
2712
|
-
"kind": "javascript-module",
|
|
2713
|
-
"path": "src/header/Header.ts",
|
|
2714
|
-
"declarations": [
|
|
2715
|
-
{
|
|
2716
|
-
"kind": "class",
|
|
2717
|
-
"description": "The app-shell header bar — brand (image + title, or title alone) on the left, a `slot=\"menu\"`\r\nfor primary nav (e.g. `st-dropdown`/`st-menu-grid` mega-menus, or plain links) taking the\r\nmiddle, and a `slot=\"utility\"` for account/app-switcher/theme controls on the right. Ported\r\nfrom `SankhyaUI`'s React `Header` (a separate, unrelated marketing-site project) to this\r\npackage's Lit conventions and this workspace's actual needs — that source component takes an\r\n`imageSrc` logo with no text fallback, but none of this suite's apps has a logo image today, so\r\n`title` is the primary brand prop here and `brand-image-url` is optional, mirroring\r\n`st-app-header`'s own brand/title split (this component's slotted-menu/utility shape is a\r\ndeliberately different, more generic surface than `st-app-header`'s fixed nav-links/user-menu\r\nprops — pick whichever fits a given app's header).\r\n\r\nLayout follows the source's `Header.css`: the menu starts 4rem after the brand, the utility\r\ncontrols sit after a vertical divider, and below `BREAKPOINT_TABLET` (900px here; 768px in the\r\nsource) `menu`/`utility` collapse behind a hamburger toggle into a full-screen layer under the\r\ntoggle (closes on Escape or a click inside it), where the menu's `st-dropdown`s are switched to\r\n`inline` so they open in the flow — the same two slotted elements just get repositioned by CSS\r\n(`.mobile-panel`'s `display: contents` at desktop width vs. a real fixed-position box below\r\n`BREAKPOINT_TABLET`), rather than the slots being duplicated in the template, since a shadow\r\nroot can only ever assign a given light-DOM child to the *first* slot of a given name.\r\n\r\nAlso carries an optional built-in language switcher (`languages`/`currentLanguageCode`, fires\r\n`language-change`) — ported from `st-app-header`'s own implementation verbatim rather than\r\nrebuilt, since the source `Header`'s reference story shows an equivalent flag/language `Select`\r\nas a first-class header utility. Hidden entirely when `languages` has fewer than two entries.\r\nThis component has no translation logic itself; the consuming app owns what a language `code`\r\nmeans and which content it re-renders in response.",
|
|
2718
|
-
"name": "Header",
|
|
2719
|
-
"members": [
|
|
2735
|
+
"attributes": [
|
|
2720
2736
|
{
|
|
2721
|
-
"kind": "field",
|
|
2722
2737
|
"name": "title",
|
|
2723
2738
|
"type": {
|
|
2724
2739
|
"text": "string"
|
|
2725
2740
|
},
|
|
2726
2741
|
"default": "''",
|
|
2727
|
-
"
|
|
2742
|
+
"fieldName": "title"
|
|
2728
2743
|
},
|
|
2729
2744
|
{
|
|
2730
|
-
"
|
|
2731
|
-
"name": "brandImageUrl",
|
|
2745
|
+
"name": "brand-image-url",
|
|
2732
2746
|
"type": {
|
|
2733
2747
|
"text": "string"
|
|
2734
2748
|
},
|
|
2735
2749
|
"default": "''",
|
|
2736
2750
|
"description": "Optional logo image URL, shown before `title`. Omitted entirely when empty — none of this suite's apps has one today. Matches the source component's `imageSrc` (renamed here to pair with `title`/`logoHref`, since this component's only image use is the brand mark).",
|
|
2737
|
-
"
|
|
2751
|
+
"fieldName": "brandImageUrl"
|
|
2738
2752
|
},
|
|
2739
2753
|
{
|
|
2740
|
-
"
|
|
2741
|
-
"name": "altText",
|
|
2754
|
+
"name": "alt-text",
|
|
2742
2755
|
"type": {
|
|
2743
2756
|
"text": "string"
|
|
2744
2757
|
},
|
|
2745
2758
|
"default": "'Logo'",
|
|
2746
2759
|
"description": "`alt` text for the brand image — matches the source component's `altText` (default `'Logo'`).",
|
|
2747
|
-
"
|
|
2760
|
+
"fieldName": "altText"
|
|
2748
2761
|
},
|
|
2749
2762
|
{
|
|
2750
|
-
"kind": "field",
|
|
2751
2763
|
"name": "logoHref",
|
|
2752
2764
|
"type": {
|
|
2753
2765
|
"text": "string"
|
|
2754
2766
|
},
|
|
2755
2767
|
"default": "''",
|
|
2756
2768
|
"description": "Wraps the brand in an `<a>` when set (e.g. `/`); a plain non-link `<div>` otherwise.",
|
|
2757
|
-
"
|
|
2769
|
+
"fieldName": "logoHref"
|
|
2758
2770
|
},
|
|
2759
2771
|
{
|
|
2760
|
-
"
|
|
2761
|
-
"name": "logoTarget",
|
|
2772
|
+
"name": "logo-target",
|
|
2762
2773
|
"type": {
|
|
2763
2774
|
"text": "string"
|
|
2764
2775
|
},
|
|
2765
2776
|
"default": "'_self'",
|
|
2766
2777
|
"description": "`target` for the brand `<a>` — matches the source component's `logoTarget` (default `_self`). No effect when `logoHref` isn't set.",
|
|
2767
|
-
"
|
|
2778
|
+
"fieldName": "logoTarget"
|
|
2768
2779
|
},
|
|
2769
2780
|
{
|
|
2770
|
-
"
|
|
2771
|
-
"name": "logoClassName",
|
|
2781
|
+
"name": "logo-class-name",
|
|
2772
2782
|
"type": {
|
|
2773
2783
|
"text": "string"
|
|
2774
2784
|
},
|
|
2775
2785
|
"default": "''",
|
|
2776
2786
|
"description": "Extra class(es) appended to the brand link/div — matches the source component's `logoClassName`.",
|
|
2777
|
-
"
|
|
2787
|
+
"fieldName": "logoClassName"
|
|
2778
2788
|
},
|
|
2779
2789
|
{
|
|
2780
|
-
"kind": "field",
|
|
2781
2790
|
"name": "inverted",
|
|
2782
2791
|
"type": {
|
|
2783
2792
|
"text": "boolean"
|
|
2784
2793
|
},
|
|
2785
2794
|
"default": "false",
|
|
2786
2795
|
"description": "Inverts the header's color roles (light-on-dark instead of dark-on-light) — matches the\r\nsource component's `inverted` (from its shared `BaseProps`).",
|
|
2787
|
-
"
|
|
2788
|
-
"reflects": true
|
|
2796
|
+
"fieldName": "inverted"
|
|
2789
2797
|
},
|
|
2790
2798
|
{
|
|
2791
|
-
"kind": "field",
|
|
2792
2799
|
"name": "sticky",
|
|
2793
2800
|
"type": {
|
|
2794
2801
|
"text": "boolean"
|
|
2795
2802
|
},
|
|
2796
2803
|
"default": "false",
|
|
2797
|
-
"
|
|
2798
|
-
"reflects": true
|
|
2804
|
+
"fieldName": "sticky"
|
|
2799
2805
|
},
|
|
2800
2806
|
{
|
|
2801
|
-
"kind": "field",
|
|
2802
2807
|
"name": "transparent",
|
|
2803
2808
|
"type": {
|
|
2804
2809
|
"text": "boolean"
|
|
2805
2810
|
},
|
|
2806
2811
|
"default": "false",
|
|
2807
2812
|
"description": "Fixes the header over the top of the page and makes it see-through, with light text\r\n(`--st-header-transparent-color`), until the page scrolls past `scroll-threshold` — for a\r\nheader laid over a dark hero. It then takes its normal background and a shadow. The page\r\ncontent starts under it, so the first section should leave room for the 64px bar.",
|
|
2808
|
-
"
|
|
2809
|
-
"reflects": true
|
|
2813
|
+
"fieldName": "transparent"
|
|
2810
2814
|
},
|
|
2811
2815
|
{
|
|
2812
|
-
"
|
|
2813
|
-
"name": "hideOnScroll",
|
|
2816
|
+
"name": "hide-on-scroll",
|
|
2814
2817
|
"type": {
|
|
2815
2818
|
"text": "boolean"
|
|
2816
2819
|
},
|
|
2817
2820
|
"default": "false",
|
|
2818
2821
|
"description": "Slides the header out of view while the page scrolls down and back in when it scrolls up.",
|
|
2819
|
-
"
|
|
2820
|
-
"reflects": true
|
|
2822
|
+
"fieldName": "hideOnScroll"
|
|
2821
2823
|
},
|
|
2822
2824
|
{
|
|
2823
|
-
"
|
|
2824
|
-
"name": "scrollThreshold",
|
|
2825
|
+
"name": "scroll-threshold",
|
|
2825
2826
|
"type": {
|
|
2826
2827
|
"text": "number"
|
|
2827
2828
|
},
|
|
2828
2829
|
"default": "8",
|
|
2829
2830
|
"description": "Scroll distance in px after which the header counts as `scrolled`.",
|
|
2830
|
-
"
|
|
2831
|
+
"fieldName": "scrollThreshold"
|
|
2831
2832
|
},
|
|
2832
2833
|
{
|
|
2833
|
-
"kind": "field",
|
|
2834
2834
|
"name": "scrolled",
|
|
2835
2835
|
"type": {
|
|
2836
2836
|
"text": "boolean"
|
|
2837
2837
|
},
|
|
2838
2838
|
"default": "false",
|
|
2839
2839
|
"description": "True once the page has scrolled past `scroll-threshold`; reflected so pages can style `st-header[scrolled]`. Set by the header, never from outside.",
|
|
2840
|
-
"
|
|
2841
|
-
"reflects": true
|
|
2840
|
+
"fieldName": "scrolled"
|
|
2842
2841
|
},
|
|
2843
2842
|
{
|
|
2844
|
-
"
|
|
2845
|
-
"name": "scrollHidden",
|
|
2843
|
+
"name": "scroll-hidden",
|
|
2846
2844
|
"type": {
|
|
2847
2845
|
"text": "boolean"
|
|
2848
2846
|
},
|
|
2849
2847
|
"default": "false",
|
|
2850
2848
|
"description": "True while `hide-on-scroll` has slid the header away. Set by the header, never from outside.",
|
|
2851
|
-
"
|
|
2852
|
-
"reflects": true
|
|
2849
|
+
"fieldName": "scrollHidden"
|
|
2853
2850
|
},
|
|
2854
2851
|
{
|
|
2855
|
-
"
|
|
2856
|
-
"name": "lastScrollY",
|
|
2852
|
+
"name": "current-language-code",
|
|
2857
2853
|
"type": {
|
|
2858
|
-
"text": "
|
|
2854
|
+
"text": "string"
|
|
2859
2855
|
},
|
|
2860
|
-
"
|
|
2861
|
-
"
|
|
2856
|
+
"default": "''",
|
|
2857
|
+
"fieldName": "currentLanguageCode"
|
|
2862
2858
|
},
|
|
2863
2859
|
{
|
|
2864
|
-
"
|
|
2865
|
-
"name": "scrollFrame",
|
|
2860
|
+
"name": "language-menu-label",
|
|
2866
2861
|
"type": {
|
|
2867
|
-
"text": "
|
|
2862
|
+
"text": "string"
|
|
2868
2863
|
},
|
|
2869
|
-
"
|
|
2870
|
-
"
|
|
2864
|
+
"default": "'Language'",
|
|
2865
|
+
"fieldName": "languageMenuLabel"
|
|
2871
2866
|
},
|
|
2872
2867
|
{
|
|
2873
|
-
"
|
|
2874
|
-
"
|
|
2875
|
-
|
|
2868
|
+
"name": "mobile-open",
|
|
2869
|
+
"type": {
|
|
2870
|
+
"text": "boolean"
|
|
2871
|
+
},
|
|
2872
|
+
"default": "false",
|
|
2873
|
+
"description": "Internal open/closed state for the mobile nav overlay, reflected to an attribute purely so\r\nthe `:host([mobile-open])` CSS selector above can react to it — not meant to be set from\r\noutside.",
|
|
2874
|
+
"fieldName": "mobileOpen"
|
|
2875
|
+
},
|
|
2876
|
+
{
|
|
2877
|
+
"name": "compact",
|
|
2878
|
+
"type": {
|
|
2879
|
+
"text": "boolean"
|
|
2880
|
+
},
|
|
2881
|
+
"default": "false",
|
|
2882
|
+
"description": "True while the menu doesn't fit the bar at the current width: the header then shows the same\r\nhamburger layout it uses on a narrow screen. Set by `evaluateFit`, never from outside.",
|
|
2883
|
+
"fieldName": "compact"
|
|
2884
|
+
}
|
|
2885
|
+
],
|
|
2886
|
+
"superclass": {
|
|
2887
|
+
"name": "LitElement",
|
|
2888
|
+
"package": "lit"
|
|
2889
|
+
},
|
|
2890
|
+
"tagName": "st-header",
|
|
2891
|
+
"customElement": true
|
|
2892
|
+
}
|
|
2893
|
+
],
|
|
2894
|
+
"exports": [
|
|
2895
|
+
{
|
|
2896
|
+
"kind": "js",
|
|
2897
|
+
"name": "Header",
|
|
2898
|
+
"declaration": {
|
|
2899
|
+
"name": "Header",
|
|
2900
|
+
"module": "src/header/Header.ts"
|
|
2901
|
+
}
|
|
2902
|
+
},
|
|
2903
|
+
{
|
|
2904
|
+
"kind": "custom-element-definition",
|
|
2905
|
+
"name": "st-header",
|
|
2906
|
+
"declaration": {
|
|
2907
|
+
"name": "Header",
|
|
2908
|
+
"module": "src/header/Header.ts"
|
|
2909
|
+
}
|
|
2910
|
+
}
|
|
2911
|
+
]
|
|
2912
|
+
},
|
|
2913
|
+
{
|
|
2914
|
+
"kind": "javascript-module",
|
|
2915
|
+
"path": "src/hero/Hero.ts",
|
|
2916
|
+
"declarations": [
|
|
2917
|
+
{
|
|
2918
|
+
"kind": "class",
|
|
2919
|
+
"description": "Full-width hero banner: background image with a darkening overlay, optional eyebrow, title,\r\noptional subtitle and up to two call-to-action links. Port of `SankhyaUI`'s React `Hero`; the\r\nframer-motion entrance is redone as CSS keyframes (skipped under `prefers-reduced-motion`).\r\n\r\n`size`, `content-position` and `overlay=\"gradient\"` give the large editorial layout (copy on the\r\nlower left over a gradient that darkens towards it) used by enterprise marketing heroes; the\r\ndefaults keep the original centered banner. Put several heroes in an `st-carousel` with\r\n`indicator-style=\"tabs\"` for a tabbed hero carousel.",
|
|
2920
|
+
"name": "Hero",
|
|
2921
|
+
"cssProperties": [
|
|
2922
|
+
{
|
|
2923
|
+
"description": "Text colour over the image.",
|
|
2924
|
+
"name": "--st-hero-text-color"
|
|
2925
|
+
},
|
|
2926
|
+
{
|
|
2927
|
+
"description": "Minimum height when `size` is `large` (default `640px`).",
|
|
2928
|
+
"name": "--st-hero-min-height"
|
|
2929
|
+
}
|
|
2930
|
+
],
|
|
2931
|
+
"cssParts": [
|
|
2932
|
+
{
|
|
2933
|
+
"description": "The small label above the title.",
|
|
2934
|
+
"name": "eyebrow"
|
|
2876
2935
|
},
|
|
2936
|
+
{
|
|
2937
|
+
"description": "The outlined second button.",
|
|
2938
|
+
"name": "secondary-action"
|
|
2939
|
+
}
|
|
2940
|
+
],
|
|
2941
|
+
"members": [
|
|
2877
2942
|
{
|
|
2878
2943
|
"kind": "field",
|
|
2879
|
-
"name": "
|
|
2944
|
+
"name": "title",
|
|
2880
2945
|
"type": {
|
|
2881
|
-
"text": "
|
|
2946
|
+
"text": "string"
|
|
2882
2947
|
},
|
|
2883
|
-
"default": "
|
|
2884
|
-
"
|
|
2948
|
+
"default": "''",
|
|
2949
|
+
"attribute": "title"
|
|
2885
2950
|
},
|
|
2886
2951
|
{
|
|
2887
2952
|
"kind": "field",
|
|
2888
|
-
"name": "
|
|
2953
|
+
"name": "subtitle",
|
|
2889
2954
|
"type": {
|
|
2890
2955
|
"text": "string"
|
|
2891
2956
|
},
|
|
2892
2957
|
"default": "''",
|
|
2893
|
-
"attribute": "
|
|
2958
|
+
"attribute": "subtitle"
|
|
2894
2959
|
},
|
|
2895
2960
|
{
|
|
2896
2961
|
"kind": "field",
|
|
2897
|
-
"name": "
|
|
2962
|
+
"name": "imageSrc",
|
|
2898
2963
|
"type": {
|
|
2899
2964
|
"text": "string"
|
|
2900
2965
|
},
|
|
2901
|
-
"default": "'
|
|
2902
|
-
"attribute": "
|
|
2966
|
+
"default": "''",
|
|
2967
|
+
"attribute": "image-src"
|
|
2903
2968
|
},
|
|
2904
2969
|
{
|
|
2905
2970
|
"kind": "field",
|
|
2906
|
-
"name": "
|
|
2971
|
+
"name": "actionLabel",
|
|
2907
2972
|
"type": {
|
|
2908
|
-
"text": "
|
|
2973
|
+
"text": "string"
|
|
2909
2974
|
},
|
|
2910
|
-
"default": "
|
|
2911
|
-
"
|
|
2912
|
-
"attribute": "mobile-open",
|
|
2913
|
-
"reflects": true
|
|
2975
|
+
"default": "''",
|
|
2976
|
+
"attribute": "action-label"
|
|
2914
2977
|
},
|
|
2915
2978
|
{
|
|
2916
2979
|
"kind": "field",
|
|
2917
|
-
"name": "
|
|
2980
|
+
"name": "href",
|
|
2918
2981
|
"type": {
|
|
2919
|
-
"text": "
|
|
2982
|
+
"text": "string"
|
|
2920
2983
|
},
|
|
2921
|
-
"default": "
|
|
2922
|
-
"
|
|
2923
|
-
|
|
2984
|
+
"default": "''",
|
|
2985
|
+
"attribute": "href"
|
|
2986
|
+
},
|
|
2987
|
+
{
|
|
2988
|
+
"kind": "field",
|
|
2989
|
+
"name": "textAlignment",
|
|
2990
|
+
"type": {
|
|
2991
|
+
"text": "'left' | 'center' | 'right' | 'justify'"
|
|
2992
|
+
},
|
|
2993
|
+
"default": "'left'",
|
|
2994
|
+
"attribute": "text-alignment",
|
|
2924
2995
|
"reflects": true
|
|
2925
2996
|
},
|
|
2926
2997
|
{
|
|
2927
2998
|
"kind": "field",
|
|
2928
|
-
"name": "
|
|
2999
|
+
"name": "padding",
|
|
2929
3000
|
"type": {
|
|
2930
|
-
"text": "
|
|
3001
|
+
"text": "'none' | 'small' | 'medium' | 'large'"
|
|
2931
3002
|
},
|
|
2932
|
-
"
|
|
2933
|
-
"
|
|
3003
|
+
"default": "'none'",
|
|
3004
|
+
"attribute": "padding",
|
|
3005
|
+
"reflects": true
|
|
2934
3006
|
},
|
|
2935
3007
|
{
|
|
2936
3008
|
"kind": "field",
|
|
2937
|
-
"name": "
|
|
3009
|
+
"name": "inverted",
|
|
2938
3010
|
"type": {
|
|
2939
3011
|
"text": "boolean"
|
|
2940
3012
|
},
|
|
2941
|
-
"privacy": "private",
|
|
2942
3013
|
"default": "false",
|
|
2943
|
-
"
|
|
3014
|
+
"attribute": "inverted",
|
|
3015
|
+
"reflects": true
|
|
2944
3016
|
},
|
|
2945
3017
|
{
|
|
2946
3018
|
"kind": "field",
|
|
2947
|
-
"name": "
|
|
3019
|
+
"name": "focalPoint",
|
|
2948
3020
|
"type": {
|
|
2949
|
-
"text": "
|
|
3021
|
+
"text": "'top' | 'left' | 'right' | 'bottom' | 'center'"
|
|
2950
3022
|
},
|
|
2951
|
-
"
|
|
3023
|
+
"default": "'center'",
|
|
3024
|
+
"attribute": "focal-point"
|
|
2952
3025
|
},
|
|
2953
3026
|
{
|
|
2954
3027
|
"kind": "field",
|
|
2955
|
-
"name": "
|
|
3028
|
+
"name": "eyebrow",
|
|
2956
3029
|
"type": {
|
|
2957
|
-
"text": "
|
|
3030
|
+
"text": "string"
|
|
2958
3031
|
},
|
|
2959
|
-
"
|
|
2960
|
-
"description": "
|
|
2961
|
-
|
|
2962
|
-
{
|
|
2963
|
-
"kind": "field",
|
|
2964
|
-
"name": "inlinedDropdowns",
|
|
2965
|
-
"privacy": "private",
|
|
2966
|
-
"default": "new Set<HTMLElement & { inline: boolean; open: boolean }>()",
|
|
2967
|
-
"description": "The dropdowns this header switched to `inline` — only these are switched back, so a caller's\r\nown `inline` setting is left alone."
|
|
2968
|
-
},
|
|
2969
|
-
{
|
|
2970
|
-
"kind": "field",
|
|
2971
|
-
"name": "syncInlineDropdowns",
|
|
2972
|
-
"privacy": "private",
|
|
2973
|
-
"description": "While the hamburger layout is on, the dropdowns in the header open in the flow of the\r\nfull-screen panel instead of floating over it (SankhyaUI's touch-device layout)."
|
|
2974
|
-
},
|
|
2975
|
-
{
|
|
2976
|
-
"kind": "field",
|
|
2977
|
-
"name": "onUtilitySlotChange",
|
|
2978
|
-
"privacy": "private"
|
|
3032
|
+
"default": "''",
|
|
3033
|
+
"description": "Small uppercase label above the title (e.g. an event or product name).",
|
|
3034
|
+
"attribute": "eyebrow"
|
|
2979
3035
|
},
|
|
2980
3036
|
{
|
|
2981
3037
|
"kind": "field",
|
|
2982
|
-
"name": "
|
|
2983
|
-
"
|
|
3038
|
+
"name": "secondaryActionLabel",
|
|
3039
|
+
"type": {
|
|
3040
|
+
"text": "string"
|
|
3041
|
+
},
|
|
3042
|
+
"default": "''",
|
|
3043
|
+
"description": "Label of an outlined second button next to the primary one.",
|
|
3044
|
+
"attribute": "secondary-action-label"
|
|
2984
3045
|
},
|
|
2985
3046
|
{
|
|
2986
3047
|
"kind": "field",
|
|
2987
|
-
"name": "
|
|
3048
|
+
"name": "secondaryHref",
|
|
2988
3049
|
"type": {
|
|
2989
|
-
"text": "
|
|
3050
|
+
"text": "string"
|
|
2990
3051
|
},
|
|
2991
|
-
"
|
|
2992
|
-
"
|
|
2993
|
-
"description": "The bar width at which the menu last overflowed — the bar only expands again once it is\r\nclearly wider than this, so it can't flip back and forth right at the threshold."
|
|
3052
|
+
"default": "''",
|
|
3053
|
+
"attribute": "secondary-href"
|
|
2994
3054
|
},
|
|
2995
3055
|
{
|
|
2996
3056
|
"kind": "field",
|
|
2997
|
-
"name": "
|
|
2998
|
-
"
|
|
2999
|
-
|
|
3000
|
-
},
|
|
3001
|
-
{
|
|
3002
|
-
"kind": "method",
|
|
3003
|
-
"name": "menuOverflows",
|
|
3004
|
-
"privacy": "private",
|
|
3005
|
-
"return": {
|
|
3006
|
-
"type": {
|
|
3007
|
-
"text": "boolean"
|
|
3008
|
-
}
|
|
3057
|
+
"name": "size",
|
|
3058
|
+
"type": {
|
|
3059
|
+
"text": "'auto' | 'large' | 'full'"
|
|
3009
3060
|
},
|
|
3010
|
-
"
|
|
3061
|
+
"default": "'auto'",
|
|
3062
|
+
"description": "`auto` sizes to the content; `large` is a tall editorial hero (`--st-hero-min-height`); `full` fills the viewport.",
|
|
3063
|
+
"attribute": "size",
|
|
3064
|
+
"reflects": true
|
|
3011
3065
|
},
|
|
3012
3066
|
{
|
|
3013
3067
|
"kind": "field",
|
|
3014
|
-
"name": "
|
|
3068
|
+
"name": "contentPosition",
|
|
3015
3069
|
"type": {
|
|
3016
|
-
"text": "
|
|
3070
|
+
"text": "'center' | 'bottom'"
|
|
3017
3071
|
},
|
|
3018
|
-
"
|
|
3072
|
+
"default": "'center'",
|
|
3073
|
+
"description": "`center` keeps the copy in the middle; `bottom` puts it in the lower part of the hero, on the page container.",
|
|
3074
|
+
"attribute": "content-position",
|
|
3075
|
+
"reflects": true
|
|
3019
3076
|
},
|
|
3020
3077
|
{
|
|
3021
3078
|
"kind": "field",
|
|
3022
|
-
"name": "
|
|
3023
|
-
"
|
|
3079
|
+
"name": "overlay",
|
|
3080
|
+
"type": {
|
|
3081
|
+
"text": "'even' | 'gradient' | 'none'"
|
|
3082
|
+
},
|
|
3083
|
+
"default": "'even'",
|
|
3084
|
+
"description": "`even` darkens the whole image; `gradient` darkens behind the copy only; `none` shows the image as is.",
|
|
3085
|
+
"attribute": "overlay",
|
|
3086
|
+
"reflects": true
|
|
3024
3087
|
},
|
|
3025
3088
|
{
|
|
3026
3089
|
"kind": "field",
|
|
3027
|
-
"name": "
|
|
3028
|
-
"privacy": "private"
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
"
|
|
3032
|
-
|
|
3033
|
-
|
|
3090
|
+
"name": "positions",
|
|
3091
|
+
"privacy": "private",
|
|
3092
|
+
"static": true,
|
|
3093
|
+
"default": "{ top: 'center top', left: 'left center', right: 'right center', bottom: 'center bottom', center: 'center center' }",
|
|
3094
|
+
"type": {
|
|
3095
|
+
"text": "{\r\n top: 'center top',\r\n left: 'left center',\r\n right: 'right center',\r\n bottom: 'center bottom',\r\n center: 'center center'\r\n }"
|
|
3096
|
+
}
|
|
3034
3097
|
},
|
|
3035
3098
|
{
|
|
3036
3099
|
"kind": "method",
|
|
3037
|
-
"name": "
|
|
3100
|
+
"name": "emitAction",
|
|
3038
3101
|
"privacy": "private",
|
|
3039
3102
|
"return": {
|
|
3040
3103
|
"type": {
|
|
@@ -3043,25 +3106,40 @@
|
|
|
3043
3106
|
},
|
|
3044
3107
|
"parameters": [
|
|
3045
3108
|
{
|
|
3046
|
-
"name": "
|
|
3109
|
+
"name": "event",
|
|
3110
|
+
"type": {
|
|
3111
|
+
"text": "MouseEvent"
|
|
3112
|
+
}
|
|
3113
|
+
},
|
|
3114
|
+
{
|
|
3115
|
+
"name": "href",
|
|
3047
3116
|
"type": {
|
|
3048
3117
|
"text": "string"
|
|
3049
3118
|
}
|
|
3119
|
+
},
|
|
3120
|
+
{
|
|
3121
|
+
"name": "kind",
|
|
3122
|
+
"type": {
|
|
3123
|
+
"text": "'primary' | 'secondary'"
|
|
3124
|
+
}
|
|
3050
3125
|
}
|
|
3051
3126
|
]
|
|
3052
3127
|
},
|
|
3053
3128
|
{
|
|
3054
|
-
"kind": "
|
|
3055
|
-
"name": "
|
|
3129
|
+
"kind": "field",
|
|
3130
|
+
"name": "onClick",
|
|
3131
|
+
"privacy": "private"
|
|
3132
|
+
},
|
|
3133
|
+
{
|
|
3134
|
+
"kind": "field",
|
|
3135
|
+
"name": "onSecondaryClick",
|
|
3056
3136
|
"privacy": "private"
|
|
3057
3137
|
}
|
|
3058
3138
|
],
|
|
3059
3139
|
"events": [
|
|
3060
3140
|
{
|
|
3061
|
-
"
|
|
3062
|
-
"
|
|
3063
|
-
"text": "CustomEvent"
|
|
3064
|
-
}
|
|
3141
|
+
"description": "Cancelable, before navigating. Detail `{ href, kind }`, `kind` being `primary` or `secondary`.",
|
|
3142
|
+
"name": "action"
|
|
3065
3143
|
}
|
|
3066
3144
|
],
|
|
3067
3145
|
"attributes": [
|
|
@@ -3074,170 +3152,146 @@
|
|
|
3074
3152
|
"fieldName": "title"
|
|
3075
3153
|
},
|
|
3076
3154
|
{
|
|
3077
|
-
"name": "
|
|
3155
|
+
"name": "subtitle",
|
|
3078
3156
|
"type": {
|
|
3079
3157
|
"text": "string"
|
|
3080
3158
|
},
|
|
3081
3159
|
"default": "''",
|
|
3082
|
-
"
|
|
3083
|
-
"fieldName": "brandImageUrl"
|
|
3084
|
-
},
|
|
3085
|
-
{
|
|
3086
|
-
"name": "alt-text",
|
|
3087
|
-
"type": {
|
|
3088
|
-
"text": "string"
|
|
3089
|
-
},
|
|
3090
|
-
"default": "'Logo'",
|
|
3091
|
-
"description": "`alt` text for the brand image — matches the source component's `altText` (default `'Logo'`).",
|
|
3092
|
-
"fieldName": "altText"
|
|
3160
|
+
"fieldName": "subtitle"
|
|
3093
3161
|
},
|
|
3094
3162
|
{
|
|
3095
|
-
"name": "
|
|
3163
|
+
"name": "image-src",
|
|
3096
3164
|
"type": {
|
|
3097
3165
|
"text": "string"
|
|
3098
3166
|
},
|
|
3099
3167
|
"default": "''",
|
|
3100
|
-
"
|
|
3101
|
-
"fieldName": "logoHref"
|
|
3168
|
+
"fieldName": "imageSrc"
|
|
3102
3169
|
},
|
|
3103
3170
|
{
|
|
3104
|
-
"name": "
|
|
3171
|
+
"name": "action-label",
|
|
3105
3172
|
"type": {
|
|
3106
3173
|
"text": "string"
|
|
3107
3174
|
},
|
|
3108
|
-
"default": "'
|
|
3109
|
-
"
|
|
3110
|
-
"fieldName": "logoTarget"
|
|
3175
|
+
"default": "''",
|
|
3176
|
+
"fieldName": "actionLabel"
|
|
3111
3177
|
},
|
|
3112
3178
|
{
|
|
3113
|
-
"name": "
|
|
3179
|
+
"name": "href",
|
|
3114
3180
|
"type": {
|
|
3115
3181
|
"text": "string"
|
|
3116
3182
|
},
|
|
3117
3183
|
"default": "''",
|
|
3118
|
-
"
|
|
3119
|
-
"fieldName": "logoClassName"
|
|
3120
|
-
},
|
|
3121
|
-
{
|
|
3122
|
-
"name": "inverted",
|
|
3123
|
-
"type": {
|
|
3124
|
-
"text": "boolean"
|
|
3125
|
-
},
|
|
3126
|
-
"default": "false",
|
|
3127
|
-
"description": "Inverts the header's color roles (light-on-dark instead of dark-on-light) — matches the\r\nsource component's `inverted` (from its shared `BaseProps`).",
|
|
3128
|
-
"fieldName": "inverted"
|
|
3184
|
+
"fieldName": "href"
|
|
3129
3185
|
},
|
|
3130
3186
|
{
|
|
3131
|
-
"name": "
|
|
3187
|
+
"name": "text-alignment",
|
|
3132
3188
|
"type": {
|
|
3133
|
-
"text": "
|
|
3189
|
+
"text": "'left' | 'center' | 'right' | 'justify'"
|
|
3134
3190
|
},
|
|
3135
|
-
"default": "
|
|
3136
|
-
"fieldName": "
|
|
3191
|
+
"default": "'left'",
|
|
3192
|
+
"fieldName": "textAlignment"
|
|
3137
3193
|
},
|
|
3138
3194
|
{
|
|
3139
|
-
"name": "
|
|
3195
|
+
"name": "padding",
|
|
3140
3196
|
"type": {
|
|
3141
|
-
"text": "
|
|
3197
|
+
"text": "'none' | 'small' | 'medium' | 'large'"
|
|
3142
3198
|
},
|
|
3143
|
-
"default": "
|
|
3144
|
-
"
|
|
3145
|
-
"fieldName": "transparent"
|
|
3199
|
+
"default": "'none'",
|
|
3200
|
+
"fieldName": "padding"
|
|
3146
3201
|
},
|
|
3147
3202
|
{
|
|
3148
|
-
"name": "
|
|
3203
|
+
"name": "inverted",
|
|
3149
3204
|
"type": {
|
|
3150
3205
|
"text": "boolean"
|
|
3151
3206
|
},
|
|
3152
3207
|
"default": "false",
|
|
3153
|
-
"
|
|
3154
|
-
"fieldName": "hideOnScroll"
|
|
3208
|
+
"fieldName": "inverted"
|
|
3155
3209
|
},
|
|
3156
3210
|
{
|
|
3157
|
-
"name": "
|
|
3211
|
+
"name": "focal-point",
|
|
3158
3212
|
"type": {
|
|
3159
|
-
"text": "
|
|
3213
|
+
"text": "'top' | 'left' | 'right' | 'bottom' | 'center'"
|
|
3160
3214
|
},
|
|
3161
|
-
"default": "
|
|
3162
|
-
"
|
|
3163
|
-
"fieldName": "scrollThreshold"
|
|
3215
|
+
"default": "'center'",
|
|
3216
|
+
"fieldName": "focalPoint"
|
|
3164
3217
|
},
|
|
3165
3218
|
{
|
|
3166
|
-
"name": "
|
|
3219
|
+
"name": "eyebrow",
|
|
3167
3220
|
"type": {
|
|
3168
|
-
"text": "
|
|
3221
|
+
"text": "string"
|
|
3169
3222
|
},
|
|
3170
|
-
"default": "
|
|
3171
|
-
"description": "
|
|
3172
|
-
"fieldName": "
|
|
3223
|
+
"default": "''",
|
|
3224
|
+
"description": "Small uppercase label above the title (e.g. an event or product name).",
|
|
3225
|
+
"fieldName": "eyebrow"
|
|
3173
3226
|
},
|
|
3174
3227
|
{
|
|
3175
|
-
"name": "
|
|
3228
|
+
"name": "secondary-action-label",
|
|
3176
3229
|
"type": {
|
|
3177
|
-
"text": "
|
|
3230
|
+
"text": "string"
|
|
3178
3231
|
},
|
|
3179
|
-
"default": "
|
|
3180
|
-
"description": "
|
|
3181
|
-
"fieldName": "
|
|
3232
|
+
"default": "''",
|
|
3233
|
+
"description": "Label of an outlined second button next to the primary one.",
|
|
3234
|
+
"fieldName": "secondaryActionLabel"
|
|
3182
3235
|
},
|
|
3183
3236
|
{
|
|
3184
|
-
"name": "
|
|
3237
|
+
"name": "secondary-href",
|
|
3185
3238
|
"type": {
|
|
3186
3239
|
"text": "string"
|
|
3187
3240
|
},
|
|
3188
3241
|
"default": "''",
|
|
3189
|
-
"fieldName": "
|
|
3242
|
+
"fieldName": "secondaryHref"
|
|
3190
3243
|
},
|
|
3191
3244
|
{
|
|
3192
|
-
"name": "
|
|
3245
|
+
"name": "size",
|
|
3193
3246
|
"type": {
|
|
3194
|
-
"text": "
|
|
3195
|
-
},
|
|
3196
|
-
"default": "'
|
|
3197
|
-
"
|
|
3247
|
+
"text": "'auto' | 'large' | 'full'"
|
|
3248
|
+
},
|
|
3249
|
+
"default": "'auto'",
|
|
3250
|
+
"description": "`auto` sizes to the content; `large` is a tall editorial hero (`--st-hero-min-height`); `full` fills the viewport.",
|
|
3251
|
+
"fieldName": "size"
|
|
3198
3252
|
},
|
|
3199
3253
|
{
|
|
3200
|
-
"name": "
|
|
3254
|
+
"name": "content-position",
|
|
3201
3255
|
"type": {
|
|
3202
|
-
"text": "
|
|
3256
|
+
"text": "'center' | 'bottom'"
|
|
3203
3257
|
},
|
|
3204
|
-
"default": "
|
|
3205
|
-
"description": "
|
|
3206
|
-
"fieldName": "
|
|
3258
|
+
"default": "'center'",
|
|
3259
|
+
"description": "`center` keeps the copy in the middle; `bottom` puts it in the lower part of the hero, on the page container.",
|
|
3260
|
+
"fieldName": "contentPosition"
|
|
3207
3261
|
},
|
|
3208
3262
|
{
|
|
3209
|
-
"name": "
|
|
3263
|
+
"name": "overlay",
|
|
3210
3264
|
"type": {
|
|
3211
|
-
"text": "
|
|
3265
|
+
"text": "'even' | 'gradient' | 'none'"
|
|
3212
3266
|
},
|
|
3213
|
-
"default": "
|
|
3214
|
-
"description": "
|
|
3215
|
-
"fieldName": "
|
|
3267
|
+
"default": "'even'",
|
|
3268
|
+
"description": "`even` darkens the whole image; `gradient` darkens behind the copy only; `none` shows the image as is.",
|
|
3269
|
+
"fieldName": "overlay"
|
|
3216
3270
|
}
|
|
3217
3271
|
],
|
|
3218
3272
|
"superclass": {
|
|
3219
3273
|
"name": "LitElement",
|
|
3220
3274
|
"package": "lit"
|
|
3221
3275
|
},
|
|
3222
|
-
"tagName": "st-
|
|
3276
|
+
"tagName": "st-hero",
|
|
3223
3277
|
"customElement": true
|
|
3224
3278
|
}
|
|
3225
3279
|
],
|
|
3226
3280
|
"exports": [
|
|
3227
3281
|
{
|
|
3228
3282
|
"kind": "js",
|
|
3229
|
-
"name": "
|
|
3283
|
+
"name": "Hero",
|
|
3230
3284
|
"declaration": {
|
|
3231
|
-
"name": "
|
|
3232
|
-
"module": "src/
|
|
3285
|
+
"name": "Hero",
|
|
3286
|
+
"module": "src/hero/Hero.ts"
|
|
3233
3287
|
}
|
|
3234
3288
|
},
|
|
3235
3289
|
{
|
|
3236
3290
|
"kind": "custom-element-definition",
|
|
3237
|
-
"name": "st-
|
|
3291
|
+
"name": "st-hero",
|
|
3238
3292
|
"declaration": {
|
|
3239
|
-
"name": "
|
|
3240
|
-
"module": "src/
|
|
3293
|
+
"name": "Hero",
|
|
3294
|
+
"module": "src/hero/Hero.ts"
|
|
3241
3295
|
}
|
|
3242
3296
|
}
|
|
3243
3297
|
]
|
|
@@ -3326,6 +3380,12 @@
|
|
|
3326
3380
|
"kind": "class",
|
|
3327
3381
|
"description": "A vertical list of collapsible title/content rows; one open at a time unless `allow-multiple`.",
|
|
3328
3382
|
"name": "ItemsAccordion",
|
|
3383
|
+
"cssProperties": [
|
|
3384
|
+
{
|
|
3385
|
+
"description": "Overrides the block's padding.",
|
|
3386
|
+
"name": "--st-items-accordion-padding"
|
|
3387
|
+
}
|
|
3388
|
+
],
|
|
3329
3389
|
"members": [
|
|
3330
3390
|
{
|
|
3331
3391
|
"kind": "field",
|
|
@@ -3770,6 +3830,12 @@
|
|
|
3770
3830
|
"kind": "class",
|
|
3771
3831
|
"description": "One column (or one group within a column) of an `st-mega-menu`: a heading, an optional line of\ndescription, then its links stacked — usually `st-menu-item`s with `variant=\"link\"`. Nest\ncolumns to stack several headed groups in one column, as okta.com does.\n\n`variant=\"card\"` puts the column on a tinted rounded tile and `variant=\"accent\"` on a solid\naccent tile with light text; both suit a row of equal columns without intro or featured area.\n`cta-label` + `cta-href` add a pill button at the bottom of the column.\n\nThe heading (when `href` is set) and the button fire a *cancelable* `mega-menu-select` event\n(detail: `{ href }`) before navigating; a host doing client-side routing calls\n`event.preventDefault()` on it.",
|
|
3772
3832
|
"name": "MegaMenuColumn",
|
|
3833
|
+
"cssProperties": [
|
|
3834
|
+
{
|
|
3835
|
+
"description": "Overrides the padding of a `card`/`accent` column.",
|
|
3836
|
+
"name": "--st-mega-menu-column-padding"
|
|
3837
|
+
}
|
|
3838
|
+
],
|
|
3773
3839
|
"cssParts": [
|
|
3774
3840
|
{
|
|
3775
3841
|
"description": "The heading text or link.",
|
|
@@ -4565,23 +4631,23 @@
|
|
|
4565
4631
|
},
|
|
4566
4632
|
{
|
|
4567
4633
|
"kind": "javascript-module",
|
|
4568
|
-
"path": "src/
|
|
4634
|
+
"path": "src/promo-banner/PromoBanner.ts",
|
|
4569
4635
|
"declarations": [
|
|
4570
4636
|
{
|
|
4571
4637
|
"kind": "class",
|
|
4572
|
-
"description": "
|
|
4573
|
-
"name": "
|
|
4574
|
-
"
|
|
4638
|
+
"description": "Rounded call-to-action banner (title, subtitle, one outlined button) on a dark panel or a\r\nbackground image. Port of `SankhyaUI`'s React `PromoBanner`; the button fires an `action` event\r\n(detail `{ href }`, empty unless set) in place of `onAction`.",
|
|
4639
|
+
"name": "PromoBanner",
|
|
4640
|
+
"cssProperties": [
|
|
4575
4641
|
{
|
|
4576
|
-
"
|
|
4577
|
-
"name": "
|
|
4578
|
-
"type": {
|
|
4579
|
-
"text": "object"
|
|
4580
|
-
},
|
|
4581
|
-
"static": true,
|
|
4582
|
-
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true }",
|
|
4583
|
-
"description": "`focus()` on the element focuses its link, so `st-dropdown` can arrow-key between items."
|
|
4642
|
+
"description": "Overrides the banner's margin.",
|
|
4643
|
+
"name": "--st-promo-banner-margin"
|
|
4584
4644
|
},
|
|
4645
|
+
{
|
|
4646
|
+
"description": "Overrides the banner's padding.",
|
|
4647
|
+
"name": "--st-promo-banner-padding"
|
|
4648
|
+
}
|
|
4649
|
+
],
|
|
4650
|
+
"members": [
|
|
4585
4651
|
{
|
|
4586
4652
|
"kind": "field",
|
|
4587
4653
|
"name": "title",
|
|
@@ -4593,102 +4659,53 @@
|
|
|
4593
4659
|
},
|
|
4594
4660
|
{
|
|
4595
4661
|
"kind": "field",
|
|
4596
|
-
"name": "
|
|
4662
|
+
"name": "subtitle",
|
|
4597
4663
|
"type": {
|
|
4598
4664
|
"text": "string"
|
|
4599
4665
|
},
|
|
4600
4666
|
"default": "''",
|
|
4601
|
-
"attribute": "
|
|
4667
|
+
"attribute": "subtitle"
|
|
4602
4668
|
},
|
|
4603
4669
|
{
|
|
4604
4670
|
"kind": "field",
|
|
4605
|
-
"name": "
|
|
4671
|
+
"name": "actionLabel",
|
|
4606
4672
|
"type": {
|
|
4607
4673
|
"text": "string"
|
|
4608
4674
|
},
|
|
4609
4675
|
"default": "''",
|
|
4610
|
-
"attribute": "
|
|
4676
|
+
"attribute": "action-label"
|
|
4611
4677
|
},
|
|
4612
4678
|
{
|
|
4613
4679
|
"kind": "field",
|
|
4614
|
-
"name": "
|
|
4680
|
+
"name": "href",
|
|
4615
4681
|
"type": {
|
|
4616
4682
|
"text": "string"
|
|
4617
4683
|
},
|
|
4618
4684
|
"default": "''",
|
|
4619
|
-
"
|
|
4620
|
-
"attribute": "badge"
|
|
4621
|
-
},
|
|
4622
|
-
{
|
|
4623
|
-
"kind": "field",
|
|
4624
|
-
"name": "active",
|
|
4625
|
-
"type": {
|
|
4626
|
-
"text": "boolean"
|
|
4627
|
-
},
|
|
4628
|
-
"default": "false",
|
|
4629
|
-
"description": "Highlights this row as the current page (source: `isActive`).",
|
|
4630
|
-
"attribute": "active",
|
|
4631
|
-
"reflects": true
|
|
4632
|
-
},
|
|
4633
|
-
{
|
|
4634
|
-
"kind": "field",
|
|
4635
|
-
"name": "compact",
|
|
4636
|
-
"type": {
|
|
4637
|
-
"text": "boolean"
|
|
4638
|
-
},
|
|
4639
|
-
"default": "false",
|
|
4640
|
-
"attribute": "compact",
|
|
4641
|
-
"reflects": true
|
|
4642
|
-
},
|
|
4643
|
-
{
|
|
4644
|
-
"kind": "field",
|
|
4645
|
-
"name": "showDescription",
|
|
4646
|
-
"type": {
|
|
4647
|
-
"text": "boolean"
|
|
4648
|
-
},
|
|
4649
|
-
"default": "true",
|
|
4650
|
-
"description": "Suppresses the description even when `description` is set (source: `showDescription`, default `true`).",
|
|
4651
|
-
"attribute": "show-description"
|
|
4685
|
+
"attribute": "href"
|
|
4652
4686
|
},
|
|
4653
4687
|
{
|
|
4654
4688
|
"kind": "field",
|
|
4655
|
-
"name": "
|
|
4689
|
+
"name": "imageSrc",
|
|
4656
4690
|
"type": {
|
|
4657
4691
|
"text": "string"
|
|
4658
4692
|
},
|
|
4659
|
-
"default": "'
|
|
4660
|
-
"
|
|
4661
|
-
"attribute": "target"
|
|
4662
|
-
},
|
|
4663
|
-
{
|
|
4664
|
-
"kind": "field",
|
|
4665
|
-
"name": "variant",
|
|
4666
|
-
"type": {
|
|
4667
|
-
"text": "'default' | 'link'"
|
|
4668
|
-
},
|
|
4669
|
-
"default": "'default'",
|
|
4670
|
-
"description": "`default` (a row with a hover box) or `link` (a plain text link, as in `st-mega-menu-column`;\r\nmarked with an arrow when it opens a new tab).",
|
|
4671
|
-
"attribute": "variant",
|
|
4672
|
-
"reflects": true
|
|
4693
|
+
"default": "''",
|
|
4694
|
+
"attribute": "image-src"
|
|
4673
4695
|
},
|
|
4674
4696
|
{
|
|
4675
4697
|
"kind": "field",
|
|
4676
|
-
"name": "
|
|
4698
|
+
"name": "inverted",
|
|
4677
4699
|
"type": {
|
|
4678
4700
|
"text": "boolean"
|
|
4679
4701
|
},
|
|
4680
|
-
"privacy": "private",
|
|
4681
4702
|
"default": "false",
|
|
4682
|
-
"
|
|
4683
|
-
|
|
4684
|
-
{
|
|
4685
|
-
"kind": "field",
|
|
4686
|
-
"name": "onIconSlotChange",
|
|
4687
|
-
"privacy": "private"
|
|
4703
|
+
"attribute": "inverted",
|
|
4704
|
+
"reflects": true
|
|
4688
4705
|
},
|
|
4689
4706
|
{
|
|
4690
4707
|
"kind": "field",
|
|
4691
|
-
"name": "
|
|
4708
|
+
"name": "onAction",
|
|
4692
4709
|
"privacy": "private"
|
|
4693
4710
|
}
|
|
4694
4711
|
],
|
|
@@ -4702,169 +4719,199 @@
|
|
|
4702
4719
|
"fieldName": "title"
|
|
4703
4720
|
},
|
|
4704
4721
|
{
|
|
4705
|
-
"name": "
|
|
4722
|
+
"name": "subtitle",
|
|
4706
4723
|
"type": {
|
|
4707
4724
|
"text": "string"
|
|
4708
4725
|
},
|
|
4709
4726
|
"default": "''",
|
|
4710
|
-
"fieldName": "
|
|
4727
|
+
"fieldName": "subtitle"
|
|
4711
4728
|
},
|
|
4712
4729
|
{
|
|
4713
|
-
"name": "
|
|
4730
|
+
"name": "action-label",
|
|
4714
4731
|
"type": {
|
|
4715
4732
|
"text": "string"
|
|
4716
4733
|
},
|
|
4717
4734
|
"default": "''",
|
|
4718
|
-
"fieldName": "
|
|
4735
|
+
"fieldName": "actionLabel"
|
|
4719
4736
|
},
|
|
4720
4737
|
{
|
|
4721
|
-
"name": "
|
|
4738
|
+
"name": "href",
|
|
4722
4739
|
"type": {
|
|
4723
4740
|
"text": "string"
|
|
4724
4741
|
},
|
|
4725
4742
|
"default": "''",
|
|
4726
|
-
"
|
|
4727
|
-
"fieldName": "badge"
|
|
4743
|
+
"fieldName": "href"
|
|
4728
4744
|
},
|
|
4729
4745
|
{
|
|
4730
|
-
"name": "
|
|
4746
|
+
"name": "image-src",
|
|
4731
4747
|
"type": {
|
|
4732
|
-
"text": "
|
|
4748
|
+
"text": "string"
|
|
4733
4749
|
},
|
|
4734
|
-
"default": "
|
|
4735
|
-
"
|
|
4736
|
-
"fieldName": "active"
|
|
4750
|
+
"default": "''",
|
|
4751
|
+
"fieldName": "imageSrc"
|
|
4737
4752
|
},
|
|
4738
4753
|
{
|
|
4739
|
-
"name": "
|
|
4754
|
+
"name": "inverted",
|
|
4740
4755
|
"type": {
|
|
4741
4756
|
"text": "boolean"
|
|
4742
4757
|
},
|
|
4743
4758
|
"default": "false",
|
|
4744
|
-
"fieldName": "
|
|
4745
|
-
},
|
|
4746
|
-
{
|
|
4747
|
-
"name": "show-description",
|
|
4748
|
-
"type": {
|
|
4749
|
-
"text": "boolean"
|
|
4750
|
-
},
|
|
4751
|
-
"default": "true",
|
|
4752
|
-
"description": "Suppresses the description even when `description` is set (source: `showDescription`, default `true`).",
|
|
4753
|
-
"fieldName": "showDescription"
|
|
4754
|
-
},
|
|
4755
|
-
{
|
|
4756
|
-
"name": "target",
|
|
4757
|
-
"type": {
|
|
4758
|
-
"text": "string"
|
|
4759
|
-
},
|
|
4760
|
-
"default": "'_self'",
|
|
4761
|
-
"description": "`target` for the `<a>` (source default `_self`).",
|
|
4762
|
-
"fieldName": "target"
|
|
4763
|
-
},
|
|
4764
|
-
{
|
|
4765
|
-
"name": "variant",
|
|
4766
|
-
"type": {
|
|
4767
|
-
"text": "'default' | 'link'"
|
|
4768
|
-
},
|
|
4769
|
-
"default": "'default'",
|
|
4770
|
-
"description": "`default` (a row with a hover box) or `link` (a plain text link, as in `st-mega-menu-column`;\r\nmarked with an arrow when it opens a new tab).",
|
|
4771
|
-
"fieldName": "variant"
|
|
4759
|
+
"fieldName": "inverted"
|
|
4772
4760
|
}
|
|
4773
4761
|
],
|
|
4774
4762
|
"superclass": {
|
|
4775
4763
|
"name": "LitElement",
|
|
4776
4764
|
"package": "lit"
|
|
4777
4765
|
},
|
|
4778
|
-
"tagName": "st-
|
|
4766
|
+
"tagName": "st-promo-banner",
|
|
4779
4767
|
"customElement": true
|
|
4780
4768
|
}
|
|
4781
4769
|
],
|
|
4782
4770
|
"exports": [
|
|
4783
4771
|
{
|
|
4784
4772
|
"kind": "js",
|
|
4785
|
-
"name": "
|
|
4773
|
+
"name": "PromoBanner",
|
|
4786
4774
|
"declaration": {
|
|
4787
|
-
"name": "
|
|
4788
|
-
"module": "src/
|
|
4775
|
+
"name": "PromoBanner",
|
|
4776
|
+
"module": "src/promo-banner/PromoBanner.ts"
|
|
4789
4777
|
}
|
|
4790
4778
|
},
|
|
4791
4779
|
{
|
|
4792
4780
|
"kind": "custom-element-definition",
|
|
4793
|
-
"name": "st-
|
|
4781
|
+
"name": "st-promo-banner",
|
|
4794
4782
|
"declaration": {
|
|
4795
|
-
"name": "
|
|
4796
|
-
"module": "src/
|
|
4783
|
+
"name": "PromoBanner",
|
|
4784
|
+
"module": "src/promo-banner/PromoBanner.ts"
|
|
4797
4785
|
}
|
|
4798
4786
|
}
|
|
4799
4787
|
]
|
|
4800
4788
|
},
|
|
4801
4789
|
{
|
|
4802
4790
|
"kind": "javascript-module",
|
|
4803
|
-
"path": "src/
|
|
4791
|
+
"path": "src/menu-item/MenuItem.ts",
|
|
4804
4792
|
"declarations": [
|
|
4805
4793
|
{
|
|
4806
4794
|
"kind": "class",
|
|
4807
|
-
"description": "
|
|
4808
|
-
"name": "
|
|
4795
|
+
"description": "A single flat nav row — icon (`slot=\"icon\"`) + title + badge on one line, an optional\r\ndescription below — as opposed to `st-menu-grid-item`'s card for a multi-column grid. A 1:1\r\nport of `SankhyaUI`'s React `MenuItem` (`SankhyaCMS/SankhyaUI/src/components/Menu`): same\r\nmarkup and CSS, with its `motion` effects redone in CSS — nudges right and scales to 1.01 on\r\nhover / 0.99 while pressed, the icon tilts on hover, the badge pops in, the description fades\r\nin. Colors come from the suite theme rather than per-item utility classes.\r\n\r\nRenders a real `<a href>` but fires a *cancelable* `menu-item-select` event (detail: `{ href }`)\r\nbefore navigating — a host doing client-side routing calls `event.preventDefault()` on it (the\r\nsource used react-router's `Link` here; the suite apps have no router).",
|
|
4796
|
+
"name": "MenuItem",
|
|
4809
4797
|
"members": [
|
|
4798
|
+
{
|
|
4799
|
+
"kind": "field",
|
|
4800
|
+
"name": "shadowRootOptions",
|
|
4801
|
+
"type": {
|
|
4802
|
+
"text": "object"
|
|
4803
|
+
},
|
|
4804
|
+
"static": true,
|
|
4805
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true }",
|
|
4806
|
+
"description": "`focus()` on the element focuses its link, so `st-dropdown` can arrow-key between items."
|
|
4807
|
+
},
|
|
4810
4808
|
{
|
|
4811
4809
|
"kind": "field",
|
|
4812
4810
|
"name": "title",
|
|
4813
4811
|
"type": {
|
|
4814
4812
|
"text": "string"
|
|
4815
4813
|
},
|
|
4816
|
-
"default": "''",
|
|
4817
|
-
"attribute": "title"
|
|
4814
|
+
"default": "''",
|
|
4815
|
+
"attribute": "title"
|
|
4816
|
+
},
|
|
4817
|
+
{
|
|
4818
|
+
"kind": "field",
|
|
4819
|
+
"name": "href",
|
|
4820
|
+
"type": {
|
|
4821
|
+
"text": "string"
|
|
4822
|
+
},
|
|
4823
|
+
"default": "''",
|
|
4824
|
+
"attribute": "href"
|
|
4825
|
+
},
|
|
4826
|
+
{
|
|
4827
|
+
"kind": "field",
|
|
4828
|
+
"name": "description",
|
|
4829
|
+
"type": {
|
|
4830
|
+
"text": "string"
|
|
4831
|
+
},
|
|
4832
|
+
"default": "''",
|
|
4833
|
+
"attribute": "description"
|
|
4834
|
+
},
|
|
4835
|
+
{
|
|
4836
|
+
"kind": "field",
|
|
4837
|
+
"name": "badge",
|
|
4838
|
+
"type": {
|
|
4839
|
+
"text": "string"
|
|
4840
|
+
},
|
|
4841
|
+
"default": "''",
|
|
4842
|
+
"description": "Small trailing label, e.g. a count or \"New\"/\"Beta\" — omit for none.",
|
|
4843
|
+
"attribute": "badge"
|
|
4844
|
+
},
|
|
4845
|
+
{
|
|
4846
|
+
"kind": "field",
|
|
4847
|
+
"name": "active",
|
|
4848
|
+
"type": {
|
|
4849
|
+
"text": "boolean"
|
|
4850
|
+
},
|
|
4851
|
+
"default": "false",
|
|
4852
|
+
"description": "Highlights this row as the current page (source: `isActive`).",
|
|
4853
|
+
"attribute": "active",
|
|
4854
|
+
"reflects": true
|
|
4818
4855
|
},
|
|
4819
4856
|
{
|
|
4820
4857
|
"kind": "field",
|
|
4821
|
-
"name": "
|
|
4858
|
+
"name": "compact",
|
|
4822
4859
|
"type": {
|
|
4823
|
-
"text": "
|
|
4860
|
+
"text": "boolean"
|
|
4824
4861
|
},
|
|
4825
|
-
"default": "
|
|
4826
|
-
"attribute": "
|
|
4862
|
+
"default": "false",
|
|
4863
|
+
"attribute": "compact",
|
|
4864
|
+
"reflects": true
|
|
4827
4865
|
},
|
|
4828
4866
|
{
|
|
4829
4867
|
"kind": "field",
|
|
4830
|
-
"name": "
|
|
4868
|
+
"name": "showDescription",
|
|
4831
4869
|
"type": {
|
|
4832
|
-
"text": "
|
|
4870
|
+
"text": "boolean"
|
|
4833
4871
|
},
|
|
4834
|
-
"default": "
|
|
4835
|
-
"
|
|
4872
|
+
"default": "true",
|
|
4873
|
+
"description": "Suppresses the description even when `description` is set (source: `showDescription`, default `true`).",
|
|
4874
|
+
"attribute": "show-description"
|
|
4836
4875
|
},
|
|
4837
4876
|
{
|
|
4838
4877
|
"kind": "field",
|
|
4839
|
-
"name": "
|
|
4878
|
+
"name": "target",
|
|
4840
4879
|
"type": {
|
|
4841
4880
|
"text": "string"
|
|
4842
4881
|
},
|
|
4843
|
-
"default": "''",
|
|
4844
|
-
"
|
|
4882
|
+
"default": "'_self'",
|
|
4883
|
+
"description": "`target` for the `<a>` (source default `_self`).",
|
|
4884
|
+
"attribute": "target"
|
|
4845
4885
|
},
|
|
4846
4886
|
{
|
|
4847
4887
|
"kind": "field",
|
|
4848
|
-
"name": "
|
|
4888
|
+
"name": "variant",
|
|
4849
4889
|
"type": {
|
|
4850
|
-
"text": "
|
|
4890
|
+
"text": "'default' | 'link' | 'bar'"
|
|
4851
4891
|
},
|
|
4852
|
-
"default": "''",
|
|
4853
|
-
"
|
|
4892
|
+
"default": "'default'",
|
|
4893
|
+
"description": "`default` (a row with a hover box), `link` (a plain text link, as in `st-mega-menu-column`;\r\nmarked with an arrow when it opens a new tab) or `bar` (a top-level item in a header bar,\r\nshaped like a mega `st-dropdown`'s trigger pill so it lines up with the dropdowns beside it).",
|
|
4894
|
+
"attribute": "variant",
|
|
4895
|
+
"reflects": true
|
|
4854
4896
|
},
|
|
4855
4897
|
{
|
|
4856
4898
|
"kind": "field",
|
|
4857
|
-
"name": "
|
|
4899
|
+
"name": "hasIcon",
|
|
4858
4900
|
"type": {
|
|
4859
4901
|
"text": "boolean"
|
|
4860
4902
|
},
|
|
4903
|
+
"privacy": "private",
|
|
4861
4904
|
"default": "false",
|
|
4862
|
-
"
|
|
4863
|
-
"reflects": true
|
|
4905
|
+
"description": "Whether `slot=\"icon\"` has content, so an omitted icon leaves no empty box."
|
|
4864
4906
|
},
|
|
4865
4907
|
{
|
|
4866
4908
|
"kind": "field",
|
|
4867
|
-
"name": "
|
|
4909
|
+
"name": "onIconSlotChange",
|
|
4910
|
+
"privacy": "private"
|
|
4911
|
+
},
|
|
4912
|
+
{
|
|
4913
|
+
"kind": "field",
|
|
4914
|
+
"name": "onClick",
|
|
4868
4915
|
"privacy": "private"
|
|
4869
4916
|
}
|
|
4870
4917
|
],
|
|
@@ -4878,69 +4925,98 @@
|
|
|
4878
4925
|
"fieldName": "title"
|
|
4879
4926
|
},
|
|
4880
4927
|
{
|
|
4881
|
-
"name": "
|
|
4928
|
+
"name": "href",
|
|
4882
4929
|
"type": {
|
|
4883
4930
|
"text": "string"
|
|
4884
4931
|
},
|
|
4885
4932
|
"default": "''",
|
|
4886
|
-
"fieldName": "
|
|
4933
|
+
"fieldName": "href"
|
|
4887
4934
|
},
|
|
4888
4935
|
{
|
|
4889
|
-
"name": "
|
|
4936
|
+
"name": "description",
|
|
4890
4937
|
"type": {
|
|
4891
4938
|
"text": "string"
|
|
4892
4939
|
},
|
|
4893
4940
|
"default": "''",
|
|
4894
|
-
"fieldName": "
|
|
4941
|
+
"fieldName": "description"
|
|
4895
4942
|
},
|
|
4896
4943
|
{
|
|
4897
|
-
"name": "
|
|
4944
|
+
"name": "badge",
|
|
4898
4945
|
"type": {
|
|
4899
4946
|
"text": "string"
|
|
4900
4947
|
},
|
|
4901
4948
|
"default": "''",
|
|
4902
|
-
"
|
|
4949
|
+
"description": "Small trailing label, e.g. a count or \"New\"/\"Beta\" — omit for none.",
|
|
4950
|
+
"fieldName": "badge"
|
|
4903
4951
|
},
|
|
4904
4952
|
{
|
|
4905
|
-
"name": "
|
|
4953
|
+
"name": "active",
|
|
4906
4954
|
"type": {
|
|
4907
|
-
"text": "
|
|
4955
|
+
"text": "boolean"
|
|
4908
4956
|
},
|
|
4909
|
-
"default": "
|
|
4910
|
-
"
|
|
4957
|
+
"default": "false",
|
|
4958
|
+
"description": "Highlights this row as the current page (source: `isActive`).",
|
|
4959
|
+
"fieldName": "active"
|
|
4911
4960
|
},
|
|
4912
4961
|
{
|
|
4913
|
-
"name": "
|
|
4962
|
+
"name": "compact",
|
|
4914
4963
|
"type": {
|
|
4915
4964
|
"text": "boolean"
|
|
4916
4965
|
},
|
|
4917
4966
|
"default": "false",
|
|
4918
|
-
"fieldName": "
|
|
4967
|
+
"fieldName": "compact"
|
|
4968
|
+
},
|
|
4969
|
+
{
|
|
4970
|
+
"name": "show-description",
|
|
4971
|
+
"type": {
|
|
4972
|
+
"text": "boolean"
|
|
4973
|
+
},
|
|
4974
|
+
"default": "true",
|
|
4975
|
+
"description": "Suppresses the description even when `description` is set (source: `showDescription`, default `true`).",
|
|
4976
|
+
"fieldName": "showDescription"
|
|
4977
|
+
},
|
|
4978
|
+
{
|
|
4979
|
+
"name": "target",
|
|
4980
|
+
"type": {
|
|
4981
|
+
"text": "string"
|
|
4982
|
+
},
|
|
4983
|
+
"default": "'_self'",
|
|
4984
|
+
"description": "`target` for the `<a>` (source default `_self`).",
|
|
4985
|
+
"fieldName": "target"
|
|
4986
|
+
},
|
|
4987
|
+
{
|
|
4988
|
+
"name": "variant",
|
|
4989
|
+
"type": {
|
|
4990
|
+
"text": "'default' | 'link' | 'bar'"
|
|
4991
|
+
},
|
|
4992
|
+
"default": "'default'",
|
|
4993
|
+
"description": "`default` (a row with a hover box), `link` (a plain text link, as in `st-mega-menu-column`;\r\nmarked with an arrow when it opens a new tab) or `bar` (a top-level item in a header bar,\r\nshaped like a mega `st-dropdown`'s trigger pill so it lines up with the dropdowns beside it).",
|
|
4994
|
+
"fieldName": "variant"
|
|
4919
4995
|
}
|
|
4920
4996
|
],
|
|
4921
4997
|
"superclass": {
|
|
4922
4998
|
"name": "LitElement",
|
|
4923
4999
|
"package": "lit"
|
|
4924
5000
|
},
|
|
4925
|
-
"tagName": "st-
|
|
5001
|
+
"tagName": "st-menu-item",
|
|
4926
5002
|
"customElement": true
|
|
4927
5003
|
}
|
|
4928
5004
|
],
|
|
4929
5005
|
"exports": [
|
|
4930
5006
|
{
|
|
4931
5007
|
"kind": "js",
|
|
4932
|
-
"name": "
|
|
5008
|
+
"name": "MenuItem",
|
|
4933
5009
|
"declaration": {
|
|
4934
|
-
"name": "
|
|
4935
|
-
"module": "src/
|
|
5010
|
+
"name": "MenuItem",
|
|
5011
|
+
"module": "src/menu-item/MenuItem.ts"
|
|
4936
5012
|
}
|
|
4937
5013
|
},
|
|
4938
5014
|
{
|
|
4939
5015
|
"kind": "custom-element-definition",
|
|
4940
|
-
"name": "st-
|
|
5016
|
+
"name": "st-menu-item",
|
|
4941
5017
|
"declaration": {
|
|
4942
|
-
"name": "
|
|
4943
|
-
"module": "src/
|
|
5018
|
+
"name": "MenuItem",
|
|
5019
|
+
"module": "src/menu-item/MenuItem.ts"
|
|
4944
5020
|
}
|
|
4945
5021
|
}
|
|
4946
5022
|
]
|
|
@@ -4957,6 +5033,10 @@
|
|
|
4957
5033
|
{
|
|
4958
5034
|
"description": "Overrides the background colour picked by `background`.",
|
|
4959
5035
|
"name": "--st-section-bg"
|
|
5036
|
+
},
|
|
5037
|
+
{
|
|
5038
|
+
"description": "Overrides the left/right padding (not with `width=\"full\"`).",
|
|
5039
|
+
"name": "--st-section-padding-inline"
|
|
4960
5040
|
}
|
|
4961
5041
|
],
|
|
4962
5042
|
"cssParts": [
|
|
@@ -5157,6 +5237,77 @@
|
|
|
5157
5237
|
}
|
|
5158
5238
|
]
|
|
5159
5239
|
},
|
|
5240
|
+
{
|
|
5241
|
+
"kind": "javascript-module",
|
|
5242
|
+
"path": "src/stats/Stats.ts",
|
|
5243
|
+
"declarations": [
|
|
5244
|
+
{
|
|
5245
|
+
"kind": "class",
|
|
5246
|
+
"description": "Responsive grid of headline numbers with a label and optional description. Port of React `Stats`.\r\n`inverted` puts it on the dark band (`--st-cms-band-dark-bg`), which stays dark in the dark theme.",
|
|
5247
|
+
"name": "Stats",
|
|
5248
|
+
"cssProperties": [
|
|
5249
|
+
{
|
|
5250
|
+
"description": "Overrides the block's padding.",
|
|
5251
|
+
"name": "--st-stats-padding"
|
|
5252
|
+
}
|
|
5253
|
+
],
|
|
5254
|
+
"members": [
|
|
5255
|
+
{
|
|
5256
|
+
"kind": "field",
|
|
5257
|
+
"name": "items",
|
|
5258
|
+
"type": {
|
|
5259
|
+
"text": "StatItem[]"
|
|
5260
|
+
},
|
|
5261
|
+
"default": "[]"
|
|
5262
|
+
},
|
|
5263
|
+
{
|
|
5264
|
+
"kind": "field",
|
|
5265
|
+
"name": "inverted",
|
|
5266
|
+
"type": {
|
|
5267
|
+
"text": "boolean"
|
|
5268
|
+
},
|
|
5269
|
+
"default": "false",
|
|
5270
|
+
"attribute": "inverted",
|
|
5271
|
+
"reflects": true
|
|
5272
|
+
}
|
|
5273
|
+
],
|
|
5274
|
+
"attributes": [
|
|
5275
|
+
{
|
|
5276
|
+
"name": "inverted",
|
|
5277
|
+
"type": {
|
|
5278
|
+
"text": "boolean"
|
|
5279
|
+
},
|
|
5280
|
+
"default": "false",
|
|
5281
|
+
"fieldName": "inverted"
|
|
5282
|
+
}
|
|
5283
|
+
],
|
|
5284
|
+
"superclass": {
|
|
5285
|
+
"name": "LitElement",
|
|
5286
|
+
"package": "lit"
|
|
5287
|
+
},
|
|
5288
|
+
"tagName": "st-stats",
|
|
5289
|
+
"customElement": true
|
|
5290
|
+
}
|
|
5291
|
+
],
|
|
5292
|
+
"exports": [
|
|
5293
|
+
{
|
|
5294
|
+
"kind": "js",
|
|
5295
|
+
"name": "Stats",
|
|
5296
|
+
"declaration": {
|
|
5297
|
+
"name": "Stats",
|
|
5298
|
+
"module": "src/stats/Stats.ts"
|
|
5299
|
+
}
|
|
5300
|
+
},
|
|
5301
|
+
{
|
|
5302
|
+
"kind": "custom-element-definition",
|
|
5303
|
+
"name": "st-stats",
|
|
5304
|
+
"declaration": {
|
|
5305
|
+
"name": "Stats",
|
|
5306
|
+
"module": "src/stats/Stats.ts"
|
|
5307
|
+
}
|
|
5308
|
+
}
|
|
5309
|
+
]
|
|
5310
|
+
},
|
|
5160
5311
|
{
|
|
5161
5312
|
"kind": "javascript-module",
|
|
5162
5313
|
"path": "src/select/Select.ts",
|
|
@@ -5383,71 +5534,6 @@
|
|
|
5383
5534
|
}
|
|
5384
5535
|
]
|
|
5385
5536
|
},
|
|
5386
|
-
{
|
|
5387
|
-
"kind": "javascript-module",
|
|
5388
|
-
"path": "src/stats/Stats.ts",
|
|
5389
|
-
"declarations": [
|
|
5390
|
-
{
|
|
5391
|
-
"kind": "class",
|
|
5392
|
-
"description": "Responsive grid of headline numbers with a label and optional description. Port of React `Stats`.",
|
|
5393
|
-
"name": "Stats",
|
|
5394
|
-
"members": [
|
|
5395
|
-
{
|
|
5396
|
-
"kind": "field",
|
|
5397
|
-
"name": "items",
|
|
5398
|
-
"type": {
|
|
5399
|
-
"text": "StatItem[]"
|
|
5400
|
-
},
|
|
5401
|
-
"default": "[]"
|
|
5402
|
-
},
|
|
5403
|
-
{
|
|
5404
|
-
"kind": "field",
|
|
5405
|
-
"name": "inverted",
|
|
5406
|
-
"type": {
|
|
5407
|
-
"text": "boolean"
|
|
5408
|
-
},
|
|
5409
|
-
"default": "false",
|
|
5410
|
-
"attribute": "inverted",
|
|
5411
|
-
"reflects": true
|
|
5412
|
-
}
|
|
5413
|
-
],
|
|
5414
|
-
"attributes": [
|
|
5415
|
-
{
|
|
5416
|
-
"name": "inverted",
|
|
5417
|
-
"type": {
|
|
5418
|
-
"text": "boolean"
|
|
5419
|
-
},
|
|
5420
|
-
"default": "false",
|
|
5421
|
-
"fieldName": "inverted"
|
|
5422
|
-
}
|
|
5423
|
-
],
|
|
5424
|
-
"superclass": {
|
|
5425
|
-
"name": "LitElement",
|
|
5426
|
-
"package": "lit"
|
|
5427
|
-
},
|
|
5428
|
-
"tagName": "st-stats",
|
|
5429
|
-
"customElement": true
|
|
5430
|
-
}
|
|
5431
|
-
],
|
|
5432
|
-
"exports": [
|
|
5433
|
-
{
|
|
5434
|
-
"kind": "js",
|
|
5435
|
-
"name": "Stats",
|
|
5436
|
-
"declaration": {
|
|
5437
|
-
"name": "Stats",
|
|
5438
|
-
"module": "src/stats/Stats.ts"
|
|
5439
|
-
}
|
|
5440
|
-
},
|
|
5441
|
-
{
|
|
5442
|
-
"kind": "custom-element-definition",
|
|
5443
|
-
"name": "st-stats",
|
|
5444
|
-
"declaration": {
|
|
5445
|
-
"name": "Stats",
|
|
5446
|
-
"module": "src/stats/Stats.ts"
|
|
5447
|
-
}
|
|
5448
|
-
}
|
|
5449
|
-
]
|
|
5450
|
-
},
|
|
5451
5537
|
{
|
|
5452
5538
|
"kind": "javascript-module",
|
|
5453
5539
|
"path": "src/testimonials/Testimonials.ts",
|
|
@@ -5456,6 +5542,12 @@
|
|
|
5456
5542
|
"kind": "class",
|
|
5457
5543
|
"description": "Section heading plus customer quotes or stories. Port of React `Testimonials`.\n\nEach card shows whatever its item has: a cover image, the customer logo, a story headline, a\nquote with star rating, result metrics, the author and a \"See full story\" link. `layout=\"grid\"`\n(default) lays the cards out in a grid; `layout=\"carousel\"` puts them on one horizontally\nscrolling, snapping row with previous/next buttons next to the heading — the customer-story\ncarousel of enterprise marketing pages. `action-label`/`action-href` add a section-level link\n(e.g. \"Explore customer stories\").",
|
|
5458
5544
|
"name": "Testimonials",
|
|
5545
|
+
"cssProperties": [
|
|
5546
|
+
{
|
|
5547
|
+
"description": "Overrides the section's padding.",
|
|
5548
|
+
"name": "--st-testimonials-padding"
|
|
5549
|
+
}
|
|
5550
|
+
],
|
|
5459
5551
|
"members": [
|
|
5460
5552
|
{
|
|
5461
5553
|
"kind": "field",
|