@genesislcap/foundation-zero 14.91.1 → 14.91.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +94 -94
- package/dist/dts/error-banner/error-banner.stories.d.ts.map +1 -1
- package/dist/dts/error-banner/error-banner.template.d.ts.map +1 -1
- package/dist/dts/error-dialog/error-dialog.stories.d.ts.map +1 -1
- package/dist/dts/snackbar/snackbar.stories.d.ts.map +1 -1
- package/dist/dts/snackbar/snackbar.template.d.ts.map +1 -1
- package/dist/esm/error-banner/error-banner.stories.js +31 -3
- package/dist/esm/error-banner/error-banner.template.js +14 -3
- package/dist/esm/error-dialog/error-dialog.stories.js +27 -1
- package/dist/esm/snackbar/snackbar.stories.js +55 -2
- package/dist/esm/snackbar/snackbar.template.js +8 -2
- package/package.json +7 -7
|
@@ -786,51 +786,42 @@
|
|
|
786
786
|
},
|
|
787
787
|
{
|
|
788
788
|
"kind": "javascript-module",
|
|
789
|
-
"path": "src/
|
|
790
|
-
"declarations": [
|
|
789
|
+
"path": "src/_config/index.ts",
|
|
790
|
+
"declarations": [],
|
|
791
|
+
"exports": [
|
|
791
792
|
{
|
|
792
|
-
"kind": "
|
|
793
|
-
"name": "
|
|
794
|
-
"
|
|
795
|
-
"
|
|
796
|
-
|
|
797
|
-
|
|
793
|
+
"kind": "js",
|
|
794
|
+
"name": "*",
|
|
795
|
+
"declaration": {
|
|
796
|
+
"name": "*",
|
|
797
|
+
"package": "./styles"
|
|
798
|
+
}
|
|
798
799
|
},
|
|
799
|
-
{
|
|
800
|
-
"kind": "variable",
|
|
801
|
-
"name": "Primary",
|
|
802
|
-
"type": {
|
|
803
|
-
"text": "StoryObj"
|
|
804
|
-
},
|
|
805
|
-
"default": "{\n render: () => html`\n <zero-accordion>\n <zero-accordion-item slot=\"item\" id=\"accordion-1\">\n Accordion one content\n <div slot=\"heading\">Accordion one</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-2\">\n Accordion two content\n <div slot=\"heading\">Accordion two</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-3\">\n Accordion three content\n <div slot=\"heading\">Accordion three</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-4\">\n Accordion four content\n <div slot=\"heading\">Accordion four</div>\n </zero-accordion-item>\n </zero-accordion>\n `,\n}"
|
|
806
|
-
}
|
|
807
|
-
],
|
|
808
|
-
"exports": [
|
|
809
800
|
{
|
|
810
801
|
"kind": "js",
|
|
811
|
-
"name": "
|
|
802
|
+
"name": "*",
|
|
812
803
|
"declaration": {
|
|
813
|
-
"name": "
|
|
814
|
-
"
|
|
804
|
+
"name": "*",
|
|
805
|
+
"package": "./tokens"
|
|
815
806
|
}
|
|
816
807
|
},
|
|
817
808
|
{
|
|
818
809
|
"kind": "js",
|
|
819
|
-
"name": "
|
|
810
|
+
"name": "*",
|
|
820
811
|
"declaration": {
|
|
821
|
-
"name": "
|
|
822
|
-
"
|
|
812
|
+
"name": "*",
|
|
813
|
+
"package": "./values"
|
|
823
814
|
}
|
|
824
815
|
}
|
|
825
816
|
]
|
|
826
817
|
},
|
|
827
818
|
{
|
|
828
819
|
"kind": "javascript-module",
|
|
829
|
-
"path": "src/accordion/accordion.styles.ts",
|
|
820
|
+
"path": "src/accordion-item/accordion-item.styles.ts",
|
|
830
821
|
"declarations": [
|
|
831
822
|
{
|
|
832
823
|
"kind": "function",
|
|
833
|
-
"name": "
|
|
824
|
+
"name": "zeroAccordionItemStyles",
|
|
834
825
|
"return": {
|
|
835
826
|
"type": {
|
|
836
827
|
"text": "ElementStyles"
|
|
@@ -855,24 +846,24 @@
|
|
|
855
846
|
"exports": [
|
|
856
847
|
{
|
|
857
848
|
"kind": "js",
|
|
858
|
-
"name": "
|
|
849
|
+
"name": "zeroAccordionItemStyles",
|
|
859
850
|
"declaration": {
|
|
860
|
-
"name": "
|
|
861
|
-
"module": "src/accordion/accordion.styles.ts"
|
|
851
|
+
"name": "zeroAccordionItemStyles",
|
|
852
|
+
"module": "src/accordion-item/accordion-item.styles.ts"
|
|
862
853
|
}
|
|
863
854
|
}
|
|
864
855
|
]
|
|
865
856
|
},
|
|
866
857
|
{
|
|
867
858
|
"kind": "javascript-module",
|
|
868
|
-
"path": "src/accordion/accordion.template.ts",
|
|
859
|
+
"path": "src/accordion-item/accordion-item.template.ts",
|
|
869
860
|
"declarations": [
|
|
870
861
|
{
|
|
871
862
|
"kind": "function",
|
|
872
|
-
"name": "
|
|
863
|
+
"name": "zeroAccordionItemTemplate",
|
|
873
864
|
"return": {
|
|
874
865
|
"type": {
|
|
875
|
-
"text": "ViewTemplate<
|
|
866
|
+
"text": "ViewTemplate<AccordionItem>"
|
|
876
867
|
}
|
|
877
868
|
},
|
|
878
869
|
"parameters": [
|
|
@@ -894,24 +885,24 @@
|
|
|
894
885
|
"exports": [
|
|
895
886
|
{
|
|
896
887
|
"kind": "js",
|
|
897
|
-
"name": "
|
|
888
|
+
"name": "zeroAccordionItemTemplate",
|
|
898
889
|
"declaration": {
|
|
899
|
-
"name": "
|
|
900
|
-
"module": "src/accordion/accordion.template.ts"
|
|
890
|
+
"name": "zeroAccordionItemTemplate",
|
|
891
|
+
"module": "src/accordion-item/accordion-item.template.ts"
|
|
901
892
|
}
|
|
902
893
|
}
|
|
903
894
|
]
|
|
904
895
|
},
|
|
905
896
|
{
|
|
906
897
|
"kind": "javascript-module",
|
|
907
|
-
"path": "src/accordion/accordion.ts",
|
|
898
|
+
"path": "src/accordion-item/accordion-item.ts",
|
|
908
899
|
"declarations": [
|
|
909
900
|
{
|
|
910
901
|
"kind": "class",
|
|
911
902
|
"description": "",
|
|
912
|
-
"name": "
|
|
903
|
+
"name": "AccordionItem",
|
|
913
904
|
"superclass": {
|
|
914
|
-
"name": "
|
|
905
|
+
"name": "FoundationAccordionItem",
|
|
915
906
|
"package": "@genesislcap/foundation-ui"
|
|
916
907
|
},
|
|
917
908
|
"tagName": "%%prefix%%-card",
|
|
@@ -919,31 +910,31 @@
|
|
|
919
910
|
},
|
|
920
911
|
{
|
|
921
912
|
"kind": "variable",
|
|
922
|
-
"name": "
|
|
913
|
+
"name": "zeroAccordionItem"
|
|
923
914
|
}
|
|
924
915
|
],
|
|
925
916
|
"exports": [
|
|
926
917
|
{
|
|
927
918
|
"kind": "js",
|
|
928
|
-
"name": "
|
|
919
|
+
"name": "AccordionItem",
|
|
929
920
|
"declaration": {
|
|
930
|
-
"name": "
|
|
931
|
-
"module": "src/accordion/accordion.ts"
|
|
921
|
+
"name": "AccordionItem",
|
|
922
|
+
"module": "src/accordion-item/accordion-item.ts"
|
|
932
923
|
}
|
|
933
924
|
},
|
|
934
925
|
{
|
|
935
926
|
"kind": "js",
|
|
936
|
-
"name": "
|
|
927
|
+
"name": "zeroAccordionItem",
|
|
937
928
|
"declaration": {
|
|
938
|
-
"name": "
|
|
939
|
-
"module": "src/accordion/accordion.ts"
|
|
929
|
+
"name": "zeroAccordionItem",
|
|
930
|
+
"module": "src/accordion-item/accordion-item.ts"
|
|
940
931
|
}
|
|
941
932
|
}
|
|
942
933
|
]
|
|
943
934
|
},
|
|
944
935
|
{
|
|
945
936
|
"kind": "javascript-module",
|
|
946
|
-
"path": "src/accordion/index.ts",
|
|
937
|
+
"path": "src/accordion-item/index.ts",
|
|
947
938
|
"declarations": [],
|
|
948
939
|
"exports": [
|
|
949
940
|
{
|
|
@@ -951,7 +942,7 @@
|
|
|
951
942
|
"name": "*",
|
|
952
943
|
"declaration": {
|
|
953
944
|
"name": "*",
|
|
954
|
-
"package": "./accordion"
|
|
945
|
+
"package": "./accordion-item"
|
|
955
946
|
}
|
|
956
947
|
},
|
|
957
948
|
{
|
|
@@ -959,7 +950,7 @@
|
|
|
959
950
|
"name": "*",
|
|
960
951
|
"declaration": {
|
|
961
952
|
"name": "*",
|
|
962
|
-
"package": "./accordion.styles"
|
|
953
|
+
"package": "./accordion-item.styles"
|
|
963
954
|
}
|
|
964
955
|
},
|
|
965
956
|
{
|
|
@@ -967,49 +958,58 @@
|
|
|
967
958
|
"name": "*",
|
|
968
959
|
"declaration": {
|
|
969
960
|
"name": "*",
|
|
970
|
-
"package": "./accordion.template"
|
|
961
|
+
"package": "./accordion-item.template"
|
|
971
962
|
}
|
|
972
963
|
}
|
|
973
964
|
]
|
|
974
965
|
},
|
|
975
966
|
{
|
|
976
967
|
"kind": "javascript-module",
|
|
977
|
-
"path": "src/
|
|
978
|
-
"declarations": [
|
|
979
|
-
"exports": [
|
|
968
|
+
"path": "src/accordion/accordion.stories.ts",
|
|
969
|
+
"declarations": [
|
|
980
970
|
{
|
|
981
|
-
"kind": "
|
|
982
|
-
"name": "
|
|
983
|
-
"
|
|
984
|
-
"
|
|
985
|
-
|
|
986
|
-
}
|
|
971
|
+
"kind": "variable",
|
|
972
|
+
"name": "meta",
|
|
973
|
+
"type": {
|
|
974
|
+
"text": "Meta"
|
|
975
|
+
},
|
|
976
|
+
"default": "{\n title: 'Accordion',\n component: 'zero-accordion',\n}"
|
|
987
977
|
},
|
|
978
|
+
{
|
|
979
|
+
"kind": "variable",
|
|
980
|
+
"name": "Primary",
|
|
981
|
+
"type": {
|
|
982
|
+
"text": "StoryObj"
|
|
983
|
+
},
|
|
984
|
+
"default": "{\n render: () => html`\n <zero-accordion>\n <zero-accordion-item slot=\"item\" id=\"accordion-1\">\n Accordion one content\n <div slot=\"heading\">Accordion one</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-2\">\n Accordion two content\n <div slot=\"heading\">Accordion two</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-3\">\n Accordion three content\n <div slot=\"heading\">Accordion three</div>\n </zero-accordion-item>\n <zero-accordion-item slot=\"item\" id=\"accordion-4\">\n Accordion four content\n <div slot=\"heading\">Accordion four</div>\n </zero-accordion-item>\n </zero-accordion>\n `,\n}"
|
|
985
|
+
}
|
|
986
|
+
],
|
|
987
|
+
"exports": [
|
|
988
988
|
{
|
|
989
989
|
"kind": "js",
|
|
990
|
-
"name": "
|
|
990
|
+
"name": "default",
|
|
991
991
|
"declaration": {
|
|
992
|
-
"name": "
|
|
993
|
-
"
|
|
992
|
+
"name": "meta",
|
|
993
|
+
"module": "src/accordion/accordion.stories.ts"
|
|
994
994
|
}
|
|
995
995
|
},
|
|
996
996
|
{
|
|
997
997
|
"kind": "js",
|
|
998
|
-
"name": "
|
|
998
|
+
"name": "Primary",
|
|
999
999
|
"declaration": {
|
|
1000
|
-
"name": "
|
|
1001
|
-
"
|
|
1000
|
+
"name": "Primary",
|
|
1001
|
+
"module": "src/accordion/accordion.stories.ts"
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
]
|
|
1005
1005
|
},
|
|
1006
1006
|
{
|
|
1007
1007
|
"kind": "javascript-module",
|
|
1008
|
-
"path": "src/accordion
|
|
1008
|
+
"path": "src/accordion/accordion.styles.ts",
|
|
1009
1009
|
"declarations": [
|
|
1010
1010
|
{
|
|
1011
1011
|
"kind": "function",
|
|
1012
|
-
"name": "
|
|
1012
|
+
"name": "zeroAccordionStyles",
|
|
1013
1013
|
"return": {
|
|
1014
1014
|
"type": {
|
|
1015
1015
|
"text": "ElementStyles"
|
|
@@ -1034,24 +1034,24 @@
|
|
|
1034
1034
|
"exports": [
|
|
1035
1035
|
{
|
|
1036
1036
|
"kind": "js",
|
|
1037
|
-
"name": "
|
|
1037
|
+
"name": "zeroAccordionStyles",
|
|
1038
1038
|
"declaration": {
|
|
1039
|
-
"name": "
|
|
1040
|
-
"module": "src/accordion
|
|
1039
|
+
"name": "zeroAccordionStyles",
|
|
1040
|
+
"module": "src/accordion/accordion.styles.ts"
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
1043
|
]
|
|
1044
1044
|
},
|
|
1045
1045
|
{
|
|
1046
1046
|
"kind": "javascript-module",
|
|
1047
|
-
"path": "src/accordion
|
|
1047
|
+
"path": "src/accordion/accordion.template.ts",
|
|
1048
1048
|
"declarations": [
|
|
1049
1049
|
{
|
|
1050
1050
|
"kind": "function",
|
|
1051
|
-
"name": "
|
|
1051
|
+
"name": "zeroAccordionTemplate",
|
|
1052
1052
|
"return": {
|
|
1053
1053
|
"type": {
|
|
1054
|
-
"text": "ViewTemplate<
|
|
1054
|
+
"text": "ViewTemplate<Accordion>"
|
|
1055
1055
|
}
|
|
1056
1056
|
},
|
|
1057
1057
|
"parameters": [
|
|
@@ -1073,24 +1073,24 @@
|
|
|
1073
1073
|
"exports": [
|
|
1074
1074
|
{
|
|
1075
1075
|
"kind": "js",
|
|
1076
|
-
"name": "
|
|
1076
|
+
"name": "zeroAccordionTemplate",
|
|
1077
1077
|
"declaration": {
|
|
1078
|
-
"name": "
|
|
1079
|
-
"module": "src/accordion
|
|
1078
|
+
"name": "zeroAccordionTemplate",
|
|
1079
|
+
"module": "src/accordion/accordion.template.ts"
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
1082
|
]
|
|
1083
1083
|
},
|
|
1084
1084
|
{
|
|
1085
1085
|
"kind": "javascript-module",
|
|
1086
|
-
"path": "src/accordion
|
|
1086
|
+
"path": "src/accordion/accordion.ts",
|
|
1087
1087
|
"declarations": [
|
|
1088
1088
|
{
|
|
1089
1089
|
"kind": "class",
|
|
1090
1090
|
"description": "",
|
|
1091
|
-
"name": "
|
|
1091
|
+
"name": "Accordion",
|
|
1092
1092
|
"superclass": {
|
|
1093
|
-
"name": "
|
|
1093
|
+
"name": "FoundationAccordion",
|
|
1094
1094
|
"package": "@genesislcap/foundation-ui"
|
|
1095
1095
|
},
|
|
1096
1096
|
"tagName": "%%prefix%%-card",
|
|
@@ -1098,31 +1098,31 @@
|
|
|
1098
1098
|
},
|
|
1099
1099
|
{
|
|
1100
1100
|
"kind": "variable",
|
|
1101
|
-
"name": "
|
|
1101
|
+
"name": "zeroAccordion"
|
|
1102
1102
|
}
|
|
1103
1103
|
],
|
|
1104
1104
|
"exports": [
|
|
1105
1105
|
{
|
|
1106
1106
|
"kind": "js",
|
|
1107
|
-
"name": "
|
|
1107
|
+
"name": "Accordion",
|
|
1108
1108
|
"declaration": {
|
|
1109
|
-
"name": "
|
|
1110
|
-
"module": "src/accordion
|
|
1109
|
+
"name": "Accordion",
|
|
1110
|
+
"module": "src/accordion/accordion.ts"
|
|
1111
1111
|
}
|
|
1112
1112
|
},
|
|
1113
1113
|
{
|
|
1114
1114
|
"kind": "js",
|
|
1115
|
-
"name": "
|
|
1115
|
+
"name": "zeroAccordion",
|
|
1116
1116
|
"declaration": {
|
|
1117
|
-
"name": "
|
|
1118
|
-
"module": "src/accordion
|
|
1117
|
+
"name": "zeroAccordion",
|
|
1118
|
+
"module": "src/accordion/accordion.ts"
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
1121
|
]
|
|
1122
1122
|
},
|
|
1123
1123
|
{
|
|
1124
1124
|
"kind": "javascript-module",
|
|
1125
|
-
"path": "src/accordion
|
|
1125
|
+
"path": "src/accordion/index.ts",
|
|
1126
1126
|
"declarations": [],
|
|
1127
1127
|
"exports": [
|
|
1128
1128
|
{
|
|
@@ -1130,7 +1130,7 @@
|
|
|
1130
1130
|
"name": "*",
|
|
1131
1131
|
"declaration": {
|
|
1132
1132
|
"name": "*",
|
|
1133
|
-
"package": "./accordion
|
|
1133
|
+
"package": "./accordion"
|
|
1134
1134
|
}
|
|
1135
1135
|
},
|
|
1136
1136
|
{
|
|
@@ -1138,7 +1138,7 @@
|
|
|
1138
1138
|
"name": "*",
|
|
1139
1139
|
"declaration": {
|
|
1140
1140
|
"name": "*",
|
|
1141
|
-
"package": "./accordion
|
|
1141
|
+
"package": "./accordion.styles"
|
|
1142
1142
|
}
|
|
1143
1143
|
},
|
|
1144
1144
|
{
|
|
@@ -1146,7 +1146,7 @@
|
|
|
1146
1146
|
"name": "*",
|
|
1147
1147
|
"declaration": {
|
|
1148
1148
|
"name": "*",
|
|
1149
|
-
"package": "./accordion
|
|
1149
|
+
"package": "./accordion.template"
|
|
1150
1150
|
}
|
|
1151
1151
|
}
|
|
1152
1152
|
]
|
|
@@ -5828,7 +5828,7 @@
|
|
|
5828
5828
|
"type": {
|
|
5829
5829
|
"text": "StoryObj"
|
|
5830
5830
|
},
|
|
5831
|
-
"default": "{\n args: {\n errorText: 'Lorem ipsum dolor sit amet consectetur adipisicing elit.',\n },\n render: ({ errorText }) => html`\n <div id=\"zero-banner\" style=\"width: 100%;\">\n <zero-button @click=\"${() => showError(errorText)}\">Show Zero Error Banner</zero-button>\n </div>\n `,\n}"
|
|
5831
|
+
"default": "{\n args: {\n errorText: 'Lorem ipsum dolor sit amet consectetur adipisicing elit.',\n notifyText: 'Lorem ipsum dolor sit amet consectetur adipisicing elit.',\n },\n render: ({ errorText, notifyText }) => html`\n <div id=\"zero-banner\" style=\"width: 100%;\">\n <zero-button @click=\"${() => showError(errorText)}\">Show Zero Error Banner</zero-button>\n <zero-button @click=\"${() => showNotify(notifyText)}\">\n Show Zero Error Banner - Notification\n </zero-button>\n </div>\n `,\n}"
|
|
5832
5832
|
}
|
|
5833
5833
|
],
|
|
5834
5834
|
"exports": [
|
|
@@ -5860,7 +5860,7 @@
|
|
|
5860
5860
|
"type": {
|
|
5861
5861
|
"text": "ViewTemplate<ErrorBanner>"
|
|
5862
5862
|
},
|
|
5863
|
-
"default": "html`\n <zero-banner ${ref('banner')}>\n <div slot=\"content\">\n <div
|
|
5863
|
+
"default": "html`\n <zero-banner ${ref('banner')}>\n <div slot=\"content\">\n <div>\n ${(x) => x.error?.errorDetails || x.notification?.body || 'Place holder for error message'}\n </div>\n </div>\n\n <zero-button slot=\"action\" appearance=\"lightweight\" @click=${(x) => x.dismiss()}>\n ${(x) =>\n x.error?.config?.banner?.dismissingAction?.label ||\n x.notification?.config?.banner?.dismissingAction?.label ||\n 'Ignore'}\n </zero-button>\n\n ${repeat(\n (x) =>\n x.error?.config?.banner.confirmingActions ||\n x.notification?.config?.banner.confirmingActions,\n html`\n <zero-button\n slot=\"action\"\n appearance=\"lightweight\"\n @click=${(x, c) => {\n x?.action();\n c.parent.dismiss();\n }}\n >\n ${(x) => x.label}\n </zero-button>\n `,\n )}\n </zero-banner>\n`"
|
|
5864
5864
|
}
|
|
5865
5865
|
],
|
|
5866
5866
|
"exports": [
|
|
@@ -6266,7 +6266,7 @@
|
|
|
6266
6266
|
"type": {
|
|
6267
6267
|
"text": "StoryObj"
|
|
6268
6268
|
},
|
|
6269
|
-
"default": "{\n args: {\n errorText:\n 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet',\n },\n render: ({ errorText }) => html`\n <zero-button @click=\"${() => showDialog(errorText)}\">Show Zero Dialog</zero-button>\n <div id=\"error-dialog-container\"></div>\n `,\n}"
|
|
6269
|
+
"default": "{\n args: {\n errorText:\n 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet',\n notifyText:\n 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet',\n },\n render: ({ errorText, notifyText }) => html`\n <zero-button @click=\"${() => showDialog(errorText)}\">Show Zero Dialog</zero-button>\n <zero-button @click=\"${() => showDialogNotify(notifyText)}\">\n Show Zero Dialog - Notification\n </zero-button>\n <div id=\"error-dialog-container\"></div>\n `,\n}"
|
|
6270
6270
|
}
|
|
6271
6271
|
],
|
|
6272
6272
|
"exports": [
|
|
@@ -12676,7 +12676,7 @@
|
|
|
12676
12676
|
"type": {
|
|
12677
12677
|
"text": "StoryObj"
|
|
12678
12678
|
},
|
|
12679
|
-
"default": "{\n args: {\n errorText: 'Lorem ipsum dolor sit amet consectetur adipisicing elit.',\n },\n render: ({ errorText }) => html`\n <div id=\"zero-snackbar\" style=\"width: 100%;\">\n <zero-button @click=\"${() => showError(errorText)}\">Show Zero Snackbar</zero-button>\n </div>\n `,\n}"
|
|
12679
|
+
"default": "{\n args: {\n errorText: 'Lorem ipsum dolor sit amet consectetur adipisicing elit.',\n notificationText: 'Lorem ipsum dolor sit amet consectetur adipisicing elit.',\n },\n render: ({ errorText, notificationText }) => html`\n <div id=\"zero-snackbar\" style=\"width: 100%;\">\n <zero-button @click=\"${() => showError(errorText)}\">Show Zero Snackbar</zero-button>\n <zero-button @click=\"${() => showNotification(notificationText)}\">\n Show Zero Snackbar - Notification\n </zero-button>\n </div>\n `,\n}"
|
|
12680
12680
|
}
|
|
12681
12681
|
],
|
|
12682
12682
|
"exports": [
|
|
@@ -12729,7 +12729,7 @@
|
|
|
12729
12729
|
"type": {
|
|
12730
12730
|
"text": "ViewTemplate<Snackbar>"
|
|
12731
12731
|
},
|
|
12732
|
-
"default": "html`\n <div class=\"snackbar ${(x) => x.deleteAnimation}\" ${ref('snackbar')}>\n <div part=\"content\" class=\"content\">\n <div
|
|
12732
|
+
"default": "html`\n <div class=\"snackbar ${(x) => x.deleteAnimation}\" ${ref('snackbar')}>\n <div part=\"content\" class=\"content\">\n <div>\n ${(x) => x.error?.errorDetails || x.notification?.body || 'Place holder for error message'}\n </div>\n </div>\n <div part=\"action\" class=\"action\">\n ${repeat(\n (x) =>\n x.error?.config?.snackbar?.confirmingActions ||\n x.notification?.config?.snackbar?.confirmingActions,\n html`\n <zero-button\n slot=\"action\"\n appearance=\"lightweight\"\n @click=${(x, c) => {\n x?.action();\n c.parent?.dismiss();\n }}\n >\n ${(x) => x.label}\n </zero-button>\n `,\n )}\n </div>\n </div>\n`"
|
|
12733
12733
|
}
|
|
12734
12734
|
],
|
|
12735
12735
|
"exports": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-banner.stories.d.ts","sourceRoot":"","sources":["../../../src/error-banner/error-banner.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"error-banner.stories.d.ts","sourceRoot":"","sources":["../../../src/error-banner/error-banner.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;AAsDpB,eAAO,MAAM,OAAO,EAAE,QAarB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-banner.template.d.ts","sourceRoot":"","sources":["../../../src/error-banner/error-banner.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"error-banner.template.d.ts","sourceRoot":"","sources":["../../../src/error-banner/error-banner.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,WAAW,CAiC7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-dialog.stories.d.ts","sourceRoot":"","sources":["../../../src/error-dialog/error-dialog.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"error-dialog.stories.d.ts","sourceRoot":"","sources":["../../../src/error-dialog/error-dialog.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;AAgDpB,eAAO,MAAM,OAAO,EAAE,QAcrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snackbar.stories.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"snackbar.stories.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;AAgFpB,eAAO,MAAM,OAAO,EAAE,QAarB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snackbar.template.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"snackbar.template.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,QAAQ,CA2BvD,CAAC"}
|
|
@@ -16,8 +16,32 @@ const showError = (errorText) => {
|
|
|
16
16
|
title: 'Error Title',
|
|
17
17
|
errorDetails: `${errorText} ID - ${Math.random()}`,
|
|
18
18
|
config: {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
banner: {
|
|
20
|
+
confirmingActions: [
|
|
21
|
+
{
|
|
22
|
+
label: 'Action',
|
|
23
|
+
action: () => {
|
|
24
|
+
alert('Action in progress');
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
const showNotify = (notifyText) => {
|
|
33
|
+
var _a;
|
|
34
|
+
let errorBanner = document.querySelector('#js-error-banner');
|
|
35
|
+
if (!errorBanner) {
|
|
36
|
+
errorBanner = document.createElement('zero-error-banner');
|
|
37
|
+
errorBanner.id = 'js-error-banner';
|
|
38
|
+
(_a = document.querySelector('#zero-banner')) === null || _a === void 0 ? void 0 : _a.appendChild(errorBanner);
|
|
39
|
+
}
|
|
40
|
+
errorBanner.notification = {
|
|
41
|
+
title: 'Notify Title',
|
|
42
|
+
body: `${notifyText} ID - notify - ${Math.random()}`,
|
|
43
|
+
config: {
|
|
44
|
+
banner: {
|
|
21
45
|
confirmingActions: [
|
|
22
46
|
{
|
|
23
47
|
label: 'Action',
|
|
@@ -33,10 +57,14 @@ const showError = (errorText) => {
|
|
|
33
57
|
export const Primary = {
|
|
34
58
|
args: {
|
|
35
59
|
errorText: 'Lorem ipsum dolor sit amet consectetur adipisicing elit.',
|
|
60
|
+
notifyText: 'Lorem ipsum dolor sit amet consectetur adipisicing elit.',
|
|
36
61
|
},
|
|
37
|
-
render: ({ errorText }) => html `
|
|
62
|
+
render: ({ errorText, notifyText }) => html `
|
|
38
63
|
<div id="zero-banner" style="width: 100%;">
|
|
39
64
|
<zero-button @click="${() => showError(errorText)}">Show Zero Error Banner</zero-button>
|
|
65
|
+
<zero-button @click="${() => showNotify(notifyText)}">
|
|
66
|
+
Show Zero Error Banner - Notification
|
|
67
|
+
</zero-button>
|
|
40
68
|
</div>
|
|
41
69
|
`,
|
|
42
70
|
};
|
|
@@ -2,14 +2,25 @@ import { html, ref, repeat } from '@microsoft/fast-element';
|
|
|
2
2
|
export const zeroErrorBannerTemplate = html `
|
|
3
3
|
<zero-banner ${ref('banner')}>
|
|
4
4
|
<div slot="content">
|
|
5
|
-
<div
|
|
5
|
+
<div>
|
|
6
|
+
${(x) => { var _a, _b; return ((_a = x.error) === null || _a === void 0 ? void 0 : _a.errorDetails) || ((_b = x.notification) === null || _b === void 0 ? void 0 : _b.body) || 'Place holder for error message'; }}
|
|
7
|
+
</div>
|
|
6
8
|
</div>
|
|
7
9
|
|
|
8
10
|
<zero-button slot="action" appearance="lightweight" @click=${(x) => x.dismiss()}>
|
|
9
|
-
${(x) => {
|
|
11
|
+
${(x) => {
|
|
12
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
13
|
+
return ((_d = (_c = (_b = (_a = x.error) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.banner) === null || _c === void 0 ? void 0 : _c.dismissingAction) === null || _d === void 0 ? void 0 : _d.label) ||
|
|
14
|
+
((_h = (_g = (_f = (_e = x.notification) === null || _e === void 0 ? void 0 : _e.config) === null || _f === void 0 ? void 0 : _f.banner) === null || _g === void 0 ? void 0 : _g.dismissingAction) === null || _h === void 0 ? void 0 : _h.label) ||
|
|
15
|
+
'Ignore';
|
|
16
|
+
}}
|
|
10
17
|
</zero-button>
|
|
11
18
|
|
|
12
|
-
${repeat((x) => {
|
|
19
|
+
${repeat((x) => {
|
|
20
|
+
var _a, _b, _c, _d;
|
|
21
|
+
return ((_b = (_a = x.error) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.banner.confirmingActions) ||
|
|
22
|
+
((_d = (_c = x.notification) === null || _c === void 0 ? void 0 : _c.config) === null || _d === void 0 ? void 0 : _d.banner.confirmingActions);
|
|
23
|
+
}, html `
|
|
13
24
|
<zero-button
|
|
14
25
|
slot="action"
|
|
15
26
|
appearance="lightweight"
|
|
@@ -26,12 +26,38 @@ const showDialog = (errorText) => {
|
|
|
26
26
|
};
|
|
27
27
|
dialog.show();
|
|
28
28
|
};
|
|
29
|
+
const showDialogNotify = (notifyText) => {
|
|
30
|
+
const dialog = document.createElement('zero-error-dialog');
|
|
31
|
+
const container = document.getElementById('error-dialog-container');
|
|
32
|
+
container.appendChild(dialog);
|
|
33
|
+
dialog.notification = {
|
|
34
|
+
title: 'Notify Title',
|
|
35
|
+
body: `${notifyText} ID - notify - ${Math.random()}`,
|
|
36
|
+
config: {
|
|
37
|
+
dialog: {
|
|
38
|
+
confirmingActions: [
|
|
39
|
+
{
|
|
40
|
+
label: 'Action',
|
|
41
|
+
action: () => {
|
|
42
|
+
alert('Action in progress');
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
dialog.show();
|
|
50
|
+
};
|
|
29
51
|
export const Primary = {
|
|
30
52
|
args: {
|
|
31
53
|
errorText: 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet',
|
|
54
|
+
notifyText: 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Lorem ipsum dolor sit amet',
|
|
32
55
|
},
|
|
33
|
-
render: ({ errorText }) => html `
|
|
56
|
+
render: ({ errorText, notifyText }) => html `
|
|
34
57
|
<zero-button @click="${() => showDialog(errorText)}">Show Zero Dialog</zero-button>
|
|
58
|
+
<zero-button @click="${() => showDialogNotify(notifyText)}">
|
|
59
|
+
Show Zero Dialog - Notification
|
|
60
|
+
</zero-button>
|
|
35
61
|
<div id="error-dialog-container"></div>
|
|
36
62
|
`,
|
|
37
63
|
};
|
|
@@ -5,13 +5,19 @@ const meta = {
|
|
|
5
5
|
};
|
|
6
6
|
export default meta;
|
|
7
7
|
const showError = (errorText) => {
|
|
8
|
-
var _a;
|
|
8
|
+
var _a, _b;
|
|
9
9
|
let snackbar = document.querySelector('#js-snackbar');
|
|
10
|
+
let snackbarNotify = document.querySelector('#js-snackbar-notify');
|
|
10
11
|
if (!snackbar) {
|
|
11
12
|
snackbar = document.createElement('zero-snackbar');
|
|
12
13
|
snackbar.id = 'js-snackbar';
|
|
13
14
|
(_a = document.querySelector('#zero-snackbar')) === null || _a === void 0 ? void 0 : _a.appendChild(snackbar);
|
|
14
15
|
}
|
|
16
|
+
if (!snackbarNotify) {
|
|
17
|
+
snackbarNotify = document.createElement('zero-snackbar');
|
|
18
|
+
snackbarNotify.id = 'js-snackbar-notify';
|
|
19
|
+
(_b = document.querySelector('#zero-snackbar')) === null || _b === void 0 ? void 0 : _b.appendChild(snackbar);
|
|
20
|
+
}
|
|
15
21
|
snackbar.error = {
|
|
16
22
|
title: 'Error Title',
|
|
17
23
|
errorDetails: `${errorText} ID - ${Math.random()}`,
|
|
@@ -29,14 +35,61 @@ const showError = (errorText) => {
|
|
|
29
35
|
},
|
|
30
36
|
},
|
|
31
37
|
};
|
|
38
|
+
snackbar.notification = {
|
|
39
|
+
title: 'Notification Title',
|
|
40
|
+
body: `${errorText} ID - ${Math.random()}`,
|
|
41
|
+
config: {
|
|
42
|
+
snackbar: {
|
|
43
|
+
type: 'error',
|
|
44
|
+
confirmingActions: [
|
|
45
|
+
{
|
|
46
|
+
label: 'Action',
|
|
47
|
+
action: () => {
|
|
48
|
+
alert('Action in progress');
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
const showNotification = (notoficationText) => {
|
|
57
|
+
var _a;
|
|
58
|
+
let snackbarNotify = document.querySelector('#js-snackbar-notify');
|
|
59
|
+
if (!snackbarNotify) {
|
|
60
|
+
snackbarNotify = document.createElement('zero-snackbar');
|
|
61
|
+
snackbarNotify.id = 'js-snackbar-notify';
|
|
62
|
+
(_a = document.querySelector('#zero-snackbar')) === null || _a === void 0 ? void 0 : _a.appendChild(snackbarNotify);
|
|
63
|
+
}
|
|
64
|
+
snackbarNotify.notification = {
|
|
65
|
+
title: 'Notification Title',
|
|
66
|
+
body: `${notoficationText} ID - Notify - ${Math.random()}`,
|
|
67
|
+
config: {
|
|
68
|
+
snackbar: {
|
|
69
|
+
type: 'error',
|
|
70
|
+
confirmingActions: [
|
|
71
|
+
{
|
|
72
|
+
label: 'Action',
|
|
73
|
+
action: () => {
|
|
74
|
+
alert('Action in progress');
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
};
|
|
32
81
|
};
|
|
33
82
|
export const Primary = {
|
|
34
83
|
args: {
|
|
35
84
|
errorText: 'Lorem ipsum dolor sit amet consectetur adipisicing elit.',
|
|
85
|
+
notificationText: 'Lorem ipsum dolor sit amet consectetur adipisicing elit.',
|
|
36
86
|
},
|
|
37
|
-
render: ({ errorText }) => html `
|
|
87
|
+
render: ({ errorText, notificationText }) => html `
|
|
38
88
|
<div id="zero-snackbar" style="width: 100%;">
|
|
39
89
|
<zero-button @click="${() => showError(errorText)}">Show Zero Snackbar</zero-button>
|
|
90
|
+
<zero-button @click="${() => showNotification(notificationText)}">
|
|
91
|
+
Show Zero Snackbar - Notification
|
|
92
|
+
</zero-button>
|
|
40
93
|
</div>
|
|
41
94
|
`,
|
|
42
95
|
};
|
|
@@ -2,10 +2,16 @@ import { html, ref, repeat } from '@microsoft/fast-element';
|
|
|
2
2
|
export const zeroSnackbarTemplate = html `
|
|
3
3
|
<div class="snackbar ${(x) => x.deleteAnimation}" ${ref('snackbar')}>
|
|
4
4
|
<div part="content" class="content">
|
|
5
|
-
<div
|
|
5
|
+
<div>
|
|
6
|
+
${(x) => { var _a, _b; return ((_a = x.error) === null || _a === void 0 ? void 0 : _a.errorDetails) || ((_b = x.notification) === null || _b === void 0 ? void 0 : _b.body) || 'Place holder for error message'; }}
|
|
7
|
+
</div>
|
|
6
8
|
</div>
|
|
7
9
|
<div part="action" class="action">
|
|
8
|
-
${repeat((x) => {
|
|
10
|
+
${repeat((x) => {
|
|
11
|
+
var _a, _b, _c, _d, _e, _f;
|
|
12
|
+
return ((_c = (_b = (_a = x.error) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.snackbar) === null || _c === void 0 ? void 0 : _c.confirmingActions) ||
|
|
13
|
+
((_f = (_e = (_d = x.notification) === null || _d === void 0 ? void 0 : _d.config) === null || _e === void 0 ? void 0 : _e.snackbar) === null || _f === void 0 ? void 0 : _f.confirmingActions);
|
|
14
|
+
}, html `
|
|
9
15
|
<zero-button
|
|
10
16
|
slot="action"
|
|
11
17
|
appearance="lightweight"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-zero",
|
|
3
3
|
"description": "Genesis Foundation Zero Design System",
|
|
4
|
-
"version": "14.91.
|
|
4
|
+
"version": "14.91.3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"storybook": "storybook dev -p 6006"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@genesislcap/genx": "14.91.
|
|
68
|
+
"@genesislcap/genx": "14.91.3",
|
|
69
69
|
"@storybook/addon-essentials": "^7.1.0",
|
|
70
70
|
"@storybook/addon-links": "^7.1.0",
|
|
71
71
|
"@storybook/addons": "^7.1.0",
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
"storybook": "^7.1.0"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@genesislcap/foundation-comms": "14.91.
|
|
82
|
-
"@genesislcap/foundation-logger": "14.91.
|
|
83
|
-
"@genesislcap/foundation-ui": "14.91.
|
|
84
|
-
"@genesislcap/foundation-utils": "14.91.
|
|
81
|
+
"@genesislcap/foundation-comms": "14.91.3",
|
|
82
|
+
"@genesislcap/foundation-logger": "14.91.3",
|
|
83
|
+
"@genesislcap/foundation-ui": "14.91.3",
|
|
84
|
+
"@genesislcap/foundation-utils": "14.91.3",
|
|
85
85
|
"@microsoft/fast-colors": "^5.1.4",
|
|
86
86
|
"@microsoft/fast-components": "^2.21.3",
|
|
87
87
|
"@microsoft/fast-element": "^1.7.0",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"access": "public"
|
|
99
99
|
},
|
|
100
100
|
"customElements": "dist/custom-elements.json",
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "2f484055c4e70f74ded4d74e6cd4a3b8184c6a39"
|
|
102
102
|
}
|