@genesislcap/foundation-ui 14.329.0 → 14.330.0

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.
@@ -1257,158 +1257,7 @@
1257
1257
  },
1258
1258
  {
1259
1259
  "kind": "javascript-module",
1260
- "path": "src/accordion/accordion.styles.ts",
1261
- "declarations": [
1262
- {
1263
- "kind": "function",
1264
- "name": "foundationAccordionStyles",
1265
- "return": {
1266
- "type": {
1267
- "text": "ElementStyles"
1268
- }
1269
- },
1270
- "parameters": [
1271
- {
1272
- "name": "context",
1273
- "type": {
1274
- "text": "ElementDefinitionContext"
1275
- }
1276
- },
1277
- {
1278
- "name": "definition",
1279
- "type": {
1280
- "text": "FoundationElementDefinition"
1281
- }
1282
- }
1283
- ]
1284
- }
1285
- ],
1286
- "exports": [
1287
- {
1288
- "kind": "js",
1289
- "name": "foundationAccordionStyles",
1290
- "declaration": {
1291
- "name": "foundationAccordionStyles",
1292
- "module": "src/accordion/accordion.styles.ts"
1293
- }
1294
- }
1295
- ]
1296
- },
1297
- {
1298
- "kind": "javascript-module",
1299
- "path": "src/accordion/accordion.template.ts",
1300
- "declarations": [
1301
- {
1302
- "kind": "function",
1303
- "name": "foundationAccordionTemplate",
1304
- "return": {
1305
- "type": {
1306
- "text": "ViewTemplate<Accordion>"
1307
- }
1308
- },
1309
- "parameters": [
1310
- {
1311
- "name": "context",
1312
- "type": {
1313
- "text": "ElementDefinitionContext"
1314
- }
1315
- },
1316
- {
1317
- "name": "definition",
1318
- "type": {
1319
- "text": "FoundationElementDefinition"
1320
- }
1321
- }
1322
- ]
1323
- }
1324
- ],
1325
- "exports": [
1326
- {
1327
- "kind": "js",
1328
- "name": "foundationAccordionTemplate",
1329
- "declaration": {
1330
- "name": "foundationAccordionTemplate",
1331
- "module": "src/accordion/accordion.template.ts"
1332
- }
1333
- }
1334
- ]
1335
- },
1336
- {
1337
- "kind": "javascript-module",
1338
- "path": "src/accordion/accordion.ts",
1339
- "declarations": [
1340
- {
1341
- "kind": "class",
1342
- "description": "",
1343
- "name": "Accordion",
1344
- "superclass": {
1345
- "name": "FASTAccordion",
1346
- "package": "@microsoft/fast-foundation"
1347
- },
1348
- "tagName": "%%prefix%%-accordion",
1349
- "customElement": true
1350
- },
1351
- {
1352
- "kind": "variable",
1353
- "name": "foundationAccordionShadowOptions",
1354
- "type": {
1355
- "text": "ShadowRootInit"
1356
- },
1357
- "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
1358
- },
1359
- {
1360
- "kind": "variable",
1361
- "name": "defaultAccordionConfig",
1362
- "type": {
1363
- "text": "object"
1364
- },
1365
- "default": "{}"
1366
- },
1367
- {
1368
- "kind": "variable",
1369
- "name": "foundationAccordion",
1370
- "description": "The Foundation Accordion",
1371
- "privacy": "public"
1372
- }
1373
- ],
1374
- "exports": [
1375
- {
1376
- "kind": "js",
1377
- "name": "Accordion",
1378
- "declaration": {
1379
- "name": "Accordion",
1380
- "module": "src/accordion/accordion.ts"
1381
- }
1382
- },
1383
- {
1384
- "kind": "js",
1385
- "name": "foundationAccordionShadowOptions",
1386
- "declaration": {
1387
- "name": "foundationAccordionShadowOptions",
1388
- "module": "src/accordion/accordion.ts"
1389
- }
1390
- },
1391
- {
1392
- "kind": "js",
1393
- "name": "defaultAccordionConfig",
1394
- "declaration": {
1395
- "name": "defaultAccordionConfig",
1396
- "module": "src/accordion/accordion.ts"
1397
- }
1398
- },
1399
- {
1400
- "kind": "js",
1401
- "name": "foundationAccordion",
1402
- "declaration": {
1403
- "name": "foundationAccordion",
1404
- "module": "src/accordion/accordion.ts"
1405
- }
1406
- }
1407
- ]
1408
- },
1409
- {
1410
- "kind": "javascript-module",
1411
- "path": "src/accordion/index.ts",
1260
+ "path": "src/_config/index.ts",
1412
1261
  "declarations": [],
1413
1262
  "exports": [
1414
1263
  {
@@ -1416,7 +1265,7 @@
1416
1265
  "name": "*",
1417
1266
  "declaration": {
1418
1267
  "name": "*",
1419
- "package": "./accordion.template"
1268
+ "package": "./styles"
1420
1269
  }
1421
1270
  },
1422
1271
  {
@@ -1424,7 +1273,7 @@
1424
1273
  "name": "*",
1425
1274
  "declaration": {
1426
1275
  "name": "*",
1427
- "package": "./accordion.styles"
1276
+ "package": "./tokens"
1428
1277
  }
1429
1278
  },
1430
1279
  {
@@ -1432,7 +1281,7 @@
1432
1281
  "name": "*",
1433
1282
  "declaration": {
1434
1283
  "name": "*",
1435
- "package": "./accordion"
1284
+ "package": "./values"
1436
1285
  }
1437
1286
  }
1438
1287
  ]
@@ -1831,37 +1680,6 @@
1831
1680
  }
1832
1681
  ]
1833
1682
  },
1834
- {
1835
- "kind": "javascript-module",
1836
- "path": "src/_config/index.ts",
1837
- "declarations": [],
1838
- "exports": [
1839
- {
1840
- "kind": "js",
1841
- "name": "*",
1842
- "declaration": {
1843
- "name": "*",
1844
- "package": "./styles"
1845
- }
1846
- },
1847
- {
1848
- "kind": "js",
1849
- "name": "*",
1850
- "declaration": {
1851
- "name": "*",
1852
- "package": "./tokens"
1853
- }
1854
- },
1855
- {
1856
- "kind": "js",
1857
- "name": "*",
1858
- "declaration": {
1859
- "name": "*",
1860
- "package": "./values"
1861
- }
1862
- }
1863
- ]
1864
- },
1865
1683
  {
1866
1684
  "kind": "javascript-module",
1867
1685
  "path": "src/actions-menu/actions-menu.styles.ts",
@@ -2941,6 +2759,188 @@
2941
2759
  }
2942
2760
  ]
2943
2761
  },
2762
+ {
2763
+ "kind": "javascript-module",
2764
+ "path": "src/accordion/accordion.styles.ts",
2765
+ "declarations": [
2766
+ {
2767
+ "kind": "function",
2768
+ "name": "foundationAccordionStyles",
2769
+ "return": {
2770
+ "type": {
2771
+ "text": "ElementStyles"
2772
+ }
2773
+ },
2774
+ "parameters": [
2775
+ {
2776
+ "name": "context",
2777
+ "type": {
2778
+ "text": "ElementDefinitionContext"
2779
+ }
2780
+ },
2781
+ {
2782
+ "name": "definition",
2783
+ "type": {
2784
+ "text": "FoundationElementDefinition"
2785
+ }
2786
+ }
2787
+ ]
2788
+ }
2789
+ ],
2790
+ "exports": [
2791
+ {
2792
+ "kind": "js",
2793
+ "name": "foundationAccordionStyles",
2794
+ "declaration": {
2795
+ "name": "foundationAccordionStyles",
2796
+ "module": "src/accordion/accordion.styles.ts"
2797
+ }
2798
+ }
2799
+ ]
2800
+ },
2801
+ {
2802
+ "kind": "javascript-module",
2803
+ "path": "src/accordion/accordion.template.ts",
2804
+ "declarations": [
2805
+ {
2806
+ "kind": "function",
2807
+ "name": "foundationAccordionTemplate",
2808
+ "return": {
2809
+ "type": {
2810
+ "text": "ViewTemplate<Accordion>"
2811
+ }
2812
+ },
2813
+ "parameters": [
2814
+ {
2815
+ "name": "context",
2816
+ "type": {
2817
+ "text": "ElementDefinitionContext"
2818
+ }
2819
+ },
2820
+ {
2821
+ "name": "definition",
2822
+ "type": {
2823
+ "text": "FoundationElementDefinition"
2824
+ }
2825
+ }
2826
+ ]
2827
+ }
2828
+ ],
2829
+ "exports": [
2830
+ {
2831
+ "kind": "js",
2832
+ "name": "foundationAccordionTemplate",
2833
+ "declaration": {
2834
+ "name": "foundationAccordionTemplate",
2835
+ "module": "src/accordion/accordion.template.ts"
2836
+ }
2837
+ }
2838
+ ]
2839
+ },
2840
+ {
2841
+ "kind": "javascript-module",
2842
+ "path": "src/accordion/accordion.ts",
2843
+ "declarations": [
2844
+ {
2845
+ "kind": "class",
2846
+ "description": "",
2847
+ "name": "Accordion",
2848
+ "superclass": {
2849
+ "name": "FASTAccordion",
2850
+ "package": "@microsoft/fast-foundation"
2851
+ },
2852
+ "tagName": "%%prefix%%-accordion",
2853
+ "customElement": true
2854
+ },
2855
+ {
2856
+ "kind": "variable",
2857
+ "name": "foundationAccordionShadowOptions",
2858
+ "type": {
2859
+ "text": "ShadowRootInit"
2860
+ },
2861
+ "default": "{\n delegatesFocus: true,\n mode: 'open',\n}"
2862
+ },
2863
+ {
2864
+ "kind": "variable",
2865
+ "name": "defaultAccordionConfig",
2866
+ "type": {
2867
+ "text": "object"
2868
+ },
2869
+ "default": "{}"
2870
+ },
2871
+ {
2872
+ "kind": "variable",
2873
+ "name": "foundationAccordion",
2874
+ "description": "The Foundation Accordion",
2875
+ "privacy": "public"
2876
+ }
2877
+ ],
2878
+ "exports": [
2879
+ {
2880
+ "kind": "js",
2881
+ "name": "Accordion",
2882
+ "declaration": {
2883
+ "name": "Accordion",
2884
+ "module": "src/accordion/accordion.ts"
2885
+ }
2886
+ },
2887
+ {
2888
+ "kind": "js",
2889
+ "name": "foundationAccordionShadowOptions",
2890
+ "declaration": {
2891
+ "name": "foundationAccordionShadowOptions",
2892
+ "module": "src/accordion/accordion.ts"
2893
+ }
2894
+ },
2895
+ {
2896
+ "kind": "js",
2897
+ "name": "defaultAccordionConfig",
2898
+ "declaration": {
2899
+ "name": "defaultAccordionConfig",
2900
+ "module": "src/accordion/accordion.ts"
2901
+ }
2902
+ },
2903
+ {
2904
+ "kind": "js",
2905
+ "name": "foundationAccordion",
2906
+ "declaration": {
2907
+ "name": "foundationAccordion",
2908
+ "module": "src/accordion/accordion.ts"
2909
+ }
2910
+ }
2911
+ ]
2912
+ },
2913
+ {
2914
+ "kind": "javascript-module",
2915
+ "path": "src/accordion/index.ts",
2916
+ "declarations": [],
2917
+ "exports": [
2918
+ {
2919
+ "kind": "js",
2920
+ "name": "*",
2921
+ "declaration": {
2922
+ "name": "*",
2923
+ "package": "./accordion.template"
2924
+ }
2925
+ },
2926
+ {
2927
+ "kind": "js",
2928
+ "name": "*",
2929
+ "declaration": {
2930
+ "name": "*",
2931
+ "package": "./accordion.styles"
2932
+ }
2933
+ },
2934
+ {
2935
+ "kind": "js",
2936
+ "name": "*",
2937
+ "declaration": {
2938
+ "name": "*",
2939
+ "package": "./accordion"
2940
+ }
2941
+ }
2942
+ ]
2943
+ },
2944
2944
  {
2945
2945
  "kind": "javascript-module",
2946
2946
  "path": "src/anchored-region/anchor-region.template.ts",
@@ -45970,7 +45970,7 @@
45970
45970
  "type": {
45971
45971
  "text": "ElementStyles"
45972
45972
  },
45973
- "default": "css`\n @keyframes append-animate {\n from {\n transform: translateX(100%);\n opacity: 0%;\n }\n\n to {\n transform: translateX(0%);\n opacity: 100%;\n }\n }\n\n @keyframes delete-animate {\n from {\n transform: translateX(0%);\n opacity: 100%;\n }\n\n to {\n transform: translateX(100%);\n opacity: 0%;\n }\n }\n\n :host {\n --toast-min-width: 356px;\n --toast-min-height: 128px;\n --toast-max-width: 356px;\n --toast-max-height: 272px;\n }\n\n .toast {\n animation: append-animate 0.3s linear;\n max-width: var(--toast-max-width);\n min-width: var(--toast-min-width);\n background-color: var(--fill-color);\n border-radius: calc(var(--control-corner-radius) * 1px);\n border-width: thin;\n border-color: var(--neutral-fill-rest);\n box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);\n display: flex;\n position: relative;\n flex-direction: row;\n padding: 8px 8px 8px 15px;\n margin: 5px;\n }\n\n .toast-delete {\n animation: delete-animate 0.3s linear;\n opacity: 0%;\n }\n\n .toast::after {\n content: '';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 5px;\n height: calc(100% - 10px);\n width: 4px;\n border-radius: 2px;\n background-color: red;\n }\n\n .content-wrapper {\n height: fit-content;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n }\n\n .bottom {\n width: 70%;\n }\n\n .top {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n }\n\n .content {\n width: 85%;\n font-size: 12px;\n overflow-wrap: break-word;\n }\n\n ::slotted(*) {\n white-space: pre-line;\n }\n\n .date {\n color: var(--neutral-foreground-hint);\n font-size: 12px;\n margin: 0 0 5px;\n }\n\n .close-icon svg {\n cursor: pointer;\n }\n`"
45973
+ "default": "css`\n @keyframes append-animate {\n from {\n transform: translateX(100%);\n opacity: 0%;\n }\n\n to {\n transform: translateX(0%);\n opacity: 100%;\n }\n }\n\n @keyframes delete-animate {\n from {\n transform: translateX(0%);\n opacity: 100%;\n }\n\n to {\n transform: translateX(100%);\n opacity: 0%;\n }\n }\n\n :host {\n --toast-min-width: 356px;\n --toast-min-height: 128px;\n --toast-max-width: 356px;\n --toast-max-height: 272px;\n }\n\n .toast {\n animation: append-animate 0.3s linear;\n max-width: var(--toast-max-width);\n min-width: var(--toast-min-width);\n background-color: var(--fill-color);\n border-radius: calc(var(--control-corner-radius) * 1px);\n border-width: thin;\n border-color: var(--neutral-fill-rest);\n box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);\n display: flex;\n position: relative;\n flex-direction: row;\n padding: 8px 8px 8px 15px;\n margin: 5px;\n }\n\n .toast-delete {\n animation: delete-animate 0.3s linear;\n opacity: 0%;\n }\n\n .toast::after {\n content: '';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n left: 5px;\n height: calc(100% - 10px);\n width: 4px;\n border-radius: 2px;\n background-color: red;\n }\n\n .content-wrapper {\n height: fit-content;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n }\n\n .bottom {\n width: 70%;\n }\n\n .top {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n }\n\n .content {\n width: 85%;\n font-size: 12px;\n overflow-wrap: break-word;\n }\n\n ::slotted(*) {\n white-space: pre-line;\n }\n\n .date {\n color: var(--neutral-foreground-hint);\n font-size: 12px;\n margin: 0 0 5px;\n }\n\n .notification-icon {\n margin-right: 6px;\n }\n\n .close-icon {\n cursor: pointer;\n margin-left: auto;\n color: #879ba6;\n }\n`"
45974
45974
  }
45975
45975
  ],
45976
45976
  "exports": [
@@ -45988,16 +45988,36 @@
45988
45988
  "kind": "javascript-module",
45989
45989
  "path": "src/toast/toast.template.ts",
45990
45990
  "declarations": [
45991
+ {
45992
+ "kind": "function",
45993
+ "name": "getPrefixedToast",
45994
+ "return": {
45995
+ "type": {
45996
+ "text": "ViewTemplate<Toast>"
45997
+ }
45998
+ },
45999
+ "parameters": [
46000
+ {
46001
+ "name": "prefix",
46002
+ "default": "'zero'"
46003
+ }
46004
+ ]
46005
+ },
45991
46006
  {
45992
46007
  "kind": "variable",
45993
46008
  "name": "foundationToastTemplate",
45994
- "type": {
45995
- "text": "ViewTemplate<Toast>"
45996
- },
45997
- "default": "html`\n <div role=\"alert\" aria-live=\"polite\" class=\"toast ${(x) => x.deleteAnimation}\" ${ref('toast')}>\n <div class=\"content-wrapper\">\n <div part=\"top\" class=\"top\">\n <slot name=\"top\"></slot>\n <div class=\"close-icon\" @click=${(x) => x.close()}>${closeIcon()}</div>\n </div>\n <div part=\"content\" class=\"content\">\n <slot name=\"content\"></slot>\n </div>\n <div part=\"date\" class=\"date\">\n <slot name=\"date\"></slot>\n </div>\n <div part=\"bottom\" class=\"bottom\">\n <slot name=\"bottom\"></slot>\n </div>\n </div>\n </div>\n`"
46009
+ "default": "html<Icon>`\n ${(x) => getPrefixedToast(getPrefix(x))}\n`"
45998
46010
  }
45999
46011
  ],
46000
46012
  "exports": [
46013
+ {
46014
+ "kind": "js",
46015
+ "name": "getPrefixedToast",
46016
+ "declaration": {
46017
+ "name": "getPrefixedToast",
46018
+ "module": "src/toast/toast.template.ts"
46019
+ }
46020
+ },
46001
46021
  {
46002
46022
  "kind": "js",
46003
46023
  "name": "foundationToastTemplate",
@@ -46065,6 +46085,13 @@
46065
46085
  },
46066
46086
  "default": "false"
46067
46087
  },
46088
+ {
46089
+ "kind": "field",
46090
+ "name": "notificationIcon",
46091
+ "type": {
46092
+ "text": "string"
46093
+ }
46094
+ },
46068
46095
  {
46069
46096
  "kind": "method",
46070
46097
  "name": "close",
@@ -46199,6 +46226,13 @@
46199
46226
  },
46200
46227
  "default": "false",
46201
46228
  "fieldName": "autoClose"
46229
+ },
46230
+ {
46231
+ "name": "notification-icon",
46232
+ "type": {
46233
+ "text": "string"
46234
+ },
46235
+ "fieldName": "notificationIcon"
46202
46236
  }
46203
46237
  ],
46204
46238
  "superclass": {
@@ -311,12 +311,12 @@ export declare const baseComponents: {
311
311
  foundationToast: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
312
312
  baseName: string;
313
313
  styles: import("@microsoft/fast-element").ElementStyles;
314
- template: import("@microsoft/fast-element").ViewTemplate<import("./toast").Toast, any>;
314
+ template: import("@microsoft/fast-element").ViewTemplate<import("./icon").Icon, any>;
315
315
  shadowOptions: ShadowRootInit;
316
316
  }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
317
317
  baseName: string;
318
318
  styles: import("@microsoft/fast-element").ElementStyles;
319
- template: import("@microsoft/fast-element").ViewTemplate<import("./toast").Toast, any>;
319
+ template: import("@microsoft/fast-element").ViewTemplate<import("./icon").Icon, any>;
320
320
  shadowOptions: ShadowRootInit;
321
321
  }, typeof import("./toast").Toast>;
322
322
  foundationToolbar: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./toolbar").Toolbar>;
@@ -9,6 +9,7 @@ export declare class Toast extends FoundationElement {
9
9
  deleteAnimation: string;
10
10
  closeTimeout: number;
11
11
  autoClose: boolean;
12
+ notificationIcon: string;
12
13
  connectedCallback(): void;
13
14
  /**
14
15
  * Remove the toast from display.
@@ -25,12 +26,12 @@ export declare class Toast extends FoundationElement {
25
26
  export declare const foundationToast: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
26
27
  baseName: string;
27
28
  styles: import("@microsoft/fast-element").ElementStyles;
28
- template: import("@microsoft/fast-element").ViewTemplate<Toast, any>;
29
+ template: import("@microsoft/fast-element").ViewTemplate<import("..").Icon, any>;
29
30
  shadowOptions: ShadowRootInit;
30
31
  }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
31
32
  baseName: string;
32
33
  styles: import("@microsoft/fast-element").ElementStyles;
33
- template: import("@microsoft/fast-element").ViewTemplate<Toast, any>;
34
+ template: import("@microsoft/fast-element").ViewTemplate<import("..").Icon, any>;
34
35
  shadowOptions: ShadowRootInit;
35
36
  }, typeof Toast>;
36
37
  //# sourceMappingURL=toast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/toast/toast.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAK/D,eAAO,MAAM,4BAA4B,EAAE,cAG1C,CAAC;AAEF,eAAO,MAAM,kBAAkB,IAAK,CAAC;AAErC;;GAEG;AACH,qBAAa,KAAM,SAAQ,iBAAiB;IACnC,KAAK,EAAE,WAAW,CAAC;IACd,eAAe,SAAM;IAEK,YAAY,EAAE,MAAM,CAAS;IAChC,SAAS,EAAE,OAAO,CAAS;IAE9D,iBAAiB;IAajB;;OAEG;IACI,KAAK;CAGb;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;gBAM1B,CAAC"}
1
+ {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/toast/toast.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAK/D,eAAO,MAAM,4BAA4B,EAAE,cAG1C,CAAC;AAEF,eAAO,MAAM,kBAAkB,IAAK,CAAC;AAErC;;GAEG;AACH,qBAAa,KAAM,SAAQ,iBAAiB;IACnC,KAAK,EAAE,WAAW,CAAC;IACd,eAAe,SAAM;IAEK,YAAY,EAAE,MAAM,CAAS;IAChC,SAAS,EAAE,OAAO,CAAS;IACpB,gBAAgB,EAAE,MAAM,CAAC;IAEnE,iBAAiB;IAajB;;OAEG;IACI,KAAK;CAGb;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;gBAM1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"toast.styles.d.ts","sourceRoot":"","sources":["../../../src/toast/toast.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,eAAO,MAAM,qBAAqB,EAAE,aAyGnC,CAAC"}
1
+ {"version":3,"file":"toast.styles.d.ts","sourceRoot":"","sources":["../../../src/toast/toast.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,eAAO,MAAM,qBAAqB,EAAE,aA+GnC,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import type { ViewTemplate } from '@microsoft/fast-element';
2
+ import { Icon } from '../icon';
2
3
  import type { Toast } from './toast';
3
- export declare const foundationToastTemplate: ViewTemplate<Toast>;
4
+ export declare const getPrefixedToast: (prefix?: string) => ViewTemplate<Toast>;
5
+ export declare const foundationToastTemplate: ViewTemplate<Icon, any>;
4
6
  //# sourceMappingURL=toast.template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toast.template.d.ts","sourceRoot":"","sources":["../../../src/toast/toast.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,KAAK,CAkBvD,CAAC"}
1
+ {"version":3,"file":"toast.template.d.ts","sourceRoot":"","sources":["../../../src/toast/toast.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKrC,eAAO,MAAM,gBAAgB,GAAI,eAAe,KAAG,YAAY,CAAC,KAAK,CAwBpE,CAAC;AAEF,eAAO,MAAM,uBAAuB,yBAEnC,CAAC"}
@@ -47,6 +47,9 @@ __decorate([
47
47
  __decorate([
48
48
  attr({ attribute: 'auto-close' })
49
49
  ], Toast.prototype, "autoClose", void 0);
50
+ __decorate([
51
+ attr({ attribute: 'notification-icon' })
52
+ ], Toast.prototype, "notificationIcon", void 0);
50
53
  /**
51
54
  * The Foundation Toast
52
55
  *
@@ -101,7 +101,13 @@ export const foundationToastStyles = css `
101
101
  margin: 0 0 5px;
102
102
  }
103
103
 
104
- .close-icon svg {
104
+ .notification-icon {
105
+ margin-right: 6px;
106
+ }
107
+
108
+ .close-icon {
105
109
  cursor: pointer;
110
+ margin-left: auto;
111
+ color: #879ba6;
106
112
  }
107
113
  `;
@@ -1,11 +1,15 @@
1
- import { html, ref } from '@microsoft/fast-element';
2
- import { closeIcon } from '../_common/icons';
3
- export const foundationToastTemplate = html `
1
+ import { html, ref, when } from '@microsoft/fast-element';
2
+ import { getPrefix } from '../utils';
3
+ const closeIcon = (prefix = 'zero') => html `<${prefix}-icon class="close-icon" size="lg" name="xmark"></prefix-icon>`;
4
+ export const getPrefixedToast = (prefix = 'zero') => html `
4
5
  <div role="alert" aria-live="polite" class="toast ${(x) => x.deleteAnimation}" ${ref('toast')}>
5
6
  <div class="content-wrapper">
6
7
  <div part="top" class="top">
8
+ ${when((x) => x.notificationIcon, html `
9
+ <${prefix}-icon class="notification-icon" name="${(x) => x.notificationIcon}" size="lg"></prefix-icon>
10
+ `)}
7
11
  <slot name="top"></slot>
8
- <div class="close-icon" @click=${(x) => x.close()}>${closeIcon()}</div>
12
+ <div class="close-icon" @click=${(x) => x.close()}>${closeIcon(prefix)}</div>
9
13
  </div>
10
14
  <div part="content" class="content">
11
15
  <slot name="content"></slot>
@@ -19,3 +23,6 @@ export const foundationToastTemplate = html `
19
23
  </div>
20
24
  </div>
21
25
  `;
26
+ export const foundationToastTemplate = html `
27
+ ${(x) => getPrefixedToast(getPrefix(x))}
28
+ `;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-ui",
3
3
  "description": "Genesis Foundation UI",
4
- "version": "14.329.0",
4
+ "version": "14.330.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -83,13 +83,13 @@
83
83
  }
84
84
  },
85
85
  "devDependencies": {
86
- "@genesislcap/foundation-testing": "14.329.0",
87
- "@genesislcap/genx": "14.329.0",
88
- "@genesislcap/rollup-builder": "14.329.0",
89
- "@genesislcap/ts-builder": "14.329.0",
90
- "@genesislcap/uvu-playwright-builder": "14.329.0",
91
- "@genesislcap/vite-builder": "14.329.0",
92
- "@genesislcap/webpack-builder": "14.329.0",
86
+ "@genesislcap/foundation-testing": "14.330.0",
87
+ "@genesislcap/genx": "14.330.0",
88
+ "@genesislcap/rollup-builder": "14.330.0",
89
+ "@genesislcap/ts-builder": "14.330.0",
90
+ "@genesislcap/uvu-playwright-builder": "14.330.0",
91
+ "@genesislcap/vite-builder": "14.330.0",
92
+ "@genesislcap/webpack-builder": "14.330.0",
93
93
  "copyfiles": "^2.4.1"
94
94
  },
95
95
  "dependencies": {
@@ -98,15 +98,15 @@
98
98
  "@fortawesome/free-regular-svg-icons": "^6.2.1",
99
99
  "@fortawesome/free-solid-svg-icons": "^6.2.1",
100
100
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
101
- "@genesislcap/expression-builder": "14.329.0",
102
- "@genesislcap/foundation-comms": "14.329.0",
103
- "@genesislcap/foundation-criteria": "14.329.0",
104
- "@genesislcap/foundation-errors": "14.329.0",
105
- "@genesislcap/foundation-events": "14.329.0",
106
- "@genesislcap/foundation-logger": "14.329.0",
107
- "@genesislcap/foundation-notifications": "14.329.0",
108
- "@genesislcap/foundation-user": "14.329.0",
109
- "@genesislcap/foundation-utils": "14.329.0",
101
+ "@genesislcap/expression-builder": "14.330.0",
102
+ "@genesislcap/foundation-comms": "14.330.0",
103
+ "@genesislcap/foundation-criteria": "14.330.0",
104
+ "@genesislcap/foundation-errors": "14.330.0",
105
+ "@genesislcap/foundation-events": "14.330.0",
106
+ "@genesislcap/foundation-logger": "14.330.0",
107
+ "@genesislcap/foundation-notifications": "14.330.0",
108
+ "@genesislcap/foundation-user": "14.330.0",
109
+ "@genesislcap/foundation-utils": "14.330.0",
110
110
  "@microsoft/fast-colors": "5.3.1",
111
111
  "@microsoft/fast-components": "2.30.6",
112
112
  "@microsoft/fast-element": "1.14.0",
@@ -128,5 +128,5 @@
128
128
  "access": "public"
129
129
  },
130
130
  "customElements": "dist/custom-elements.json",
131
- "gitHead": "b3e477f5cd4531384935f255ac3ab9aab22ed77c"
131
+ "gitHead": "f6f09dc864888890f952e2208aa606e01eea5bce"
132
132
  }