@abgov/web-components 1.0.0-alpha.121 → 1.0.0-alpha.123

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.
@@ -1427,20 +1427,20 @@ function create_fragment$D(ctx) {
1427
1427
  div = element("div");
1428
1428
  slot = element("slot");
1429
1429
  this.c = noop;
1430
- set_style(div, "--alignment", "flex-" + /*alignment*/ ctx[1]);
1431
- set_style(div, "--gap-size", /*gap*/ ctx[0] === "small" ? "0.5rem" : "1.25rem");
1430
+ set_style(div, "--alignment", /*_alignment*/ ctx[1]);
1431
+ set_style(div, "--gap-size", /*gap*/ ctx[0] === "relaxed" ? "1rem" : "0.75rem");
1432
1432
  },
1433
1433
  m(target, anchor) {
1434
1434
  insert(target, div, anchor);
1435
1435
  append(div, slot);
1436
1436
  },
1437
1437
  p(ctx, [dirty]) {
1438
- if (dirty & /*alignment*/ 2) {
1439
- set_style(div, "--alignment", "flex-" + /*alignment*/ ctx[1]);
1438
+ if (dirty & /*_alignment*/ 2) {
1439
+ set_style(div, "--alignment", /*_alignment*/ ctx[1]);
1440
1440
  }
1441
1441
 
1442
1442
  if (dirty & /*gap*/ 1) {
1443
- set_style(div, "--gap-size", /*gap*/ ctx[0] === "small" ? "0.5rem" : "1.25rem");
1443
+ set_style(div, "--gap-size", /*gap*/ ctx[0] === "relaxed" ? "1rem" : "0.75rem");
1444
1444
  }
1445
1445
  },
1446
1446
  i: noop,
@@ -1452,15 +1452,45 @@ function create_fragment$D(ctx) {
1452
1452
  }
1453
1453
 
1454
1454
  function instance$y($$self, $$props, $$invalidate) {
1455
- let { gap = "medium" } = $$props;
1455
+ let _alignment;
1456
1456
  let { alignment } = $$props;
1457
+ let { gap = "relaxed" } = $$props;
1458
+ const BUTTON_ALIGNMENTS = ["start", "end", "center"];
1459
+ const GAP = ["relaxed", "compact"];
1460
+
1461
+ // type check functions
1462
+ function isButtonAlignment(value) {
1463
+ return BUTTON_ALIGNMENTS.includes(value);
1464
+ }
1465
+
1466
+ function isGap(value) {
1467
+ return GAP.includes(value);
1468
+ }
1469
+
1470
+ onMount(() => {
1471
+ if (!isButtonAlignment(alignment)) {
1472
+ console.error("Invalid button group alignment");
1473
+ }
1474
+
1475
+ if (!isGap(gap)) {
1476
+ console.error("Invalid button group gap");
1477
+ }
1478
+ });
1457
1479
 
1458
1480
  $$self.$$set = $$props => {
1481
+ if ('alignment' in $$props) $$invalidate(2, alignment = $$props.alignment);
1459
1482
  if ('gap' in $$props) $$invalidate(0, gap = $$props.gap);
1460
- if ('alignment' in $$props) $$invalidate(1, alignment = $$props.alignment);
1461
1483
  };
1462
1484
 
1463
- return [gap, alignment];
1485
+ $$self.$$.update = () => {
1486
+ if ($$self.$$.dirty & /*alignment*/ 4) {
1487
+ $$invalidate(1, _alignment = alignment === "start"
1488
+ ? "flex-start"
1489
+ : alignment === "center" ? "center" : "flex-end");
1490
+ }
1491
+ };
1492
+
1493
+ return [gap, _alignment, alignment];
1464
1494
  }
1465
1495
 
1466
1496
  class ButtonGroup extends SvelteElement {
@@ -1478,7 +1508,7 @@ class ButtonGroup extends SvelteElement {
1478
1508
  instance$y,
1479
1509
  create_fragment$D,
1480
1510
  safe_not_equal,
1481
- { gap: 0, alignment: 1 },
1511
+ { alignment: 2, gap: 0 },
1482
1512
  null
1483
1513
  );
1484
1514
 
@@ -1495,24 +1525,24 @@ class ButtonGroup extends SvelteElement {
1495
1525
  }
1496
1526
 
1497
1527
  static get observedAttributes() {
1498
- return ["gap", "alignment"];
1528
+ return ["alignment", "gap"];
1499
1529
  }
1500
1530
 
1501
- get gap() {
1502
- return this.$$.ctx[0];
1531
+ get alignment() {
1532
+ return this.$$.ctx[2];
1503
1533
  }
1504
1534
 
1505
- set gap(gap) {
1506
- this.$$set({ gap });
1535
+ set alignment(alignment) {
1536
+ this.$$set({ alignment });
1507
1537
  flush();
1508
1538
  }
1509
1539
 
1510
- get alignment() {
1511
- return this.$$.ctx[1];
1540
+ get gap() {
1541
+ return this.$$.ctx[0];
1512
1542
  }
1513
1543
 
1514
- set alignment(alignment) {
1515
- this.$$set({ alignment });
1544
+ set gap(gap) {
1545
+ this.$$set({ gap });
1516
1546
  flush();
1517
1547
  }
1518
1548
  }
@@ -3424,7 +3454,7 @@ function create_if_block_3$4(ctx) {
3424
3454
  let goa_spinner;
3425
3455
  let t;
3426
3456
  let div_class_value;
3427
- let if_block = /*message*/ ctx[0] && create_if_block_4$1(ctx);
3457
+ let if_block = /*message*/ ctx[0] && create_if_block_4$2(ctx);
3428
3458
 
3429
3459
  return {
3430
3460
  c() {
@@ -3456,7 +3486,7 @@ function create_if_block_3$4(ctx) {
3456
3486
  if (if_block) {
3457
3487
  if_block.p(ctx, dirty);
3458
3488
  } else {
3459
- if_block = create_if_block_4$1(ctx);
3489
+ if_block = create_if_block_4$2(ctx);
3460
3490
  if_block.c();
3461
3491
  if_block.m(div, null);
3462
3492
  }
@@ -3567,7 +3597,7 @@ function create_if_block_1$6(ctx) {
3567
3597
  }
3568
3598
 
3569
3599
  // (41:6) {#if message}
3570
- function create_if_block_4$1(ctx) {
3600
+ function create_if_block_4$2(ctx) {
3571
3601
  let div;
3572
3602
  let t;
3573
3603
 
@@ -6117,20 +6147,30 @@ function create_if_block_3$3(ctx) {
6117
6147
  // (36:2) {#if error}
6118
6148
  function create_if_block_1$5(ctx) {
6119
6149
  let div;
6120
- let t;
6150
+ let goa_icon;
6151
+ let t0;
6152
+ let t1;
6121
6153
 
6122
6154
  return {
6123
6155
  c() {
6124
6156
  div = element("div");
6125
- t = text(/*error*/ ctx[2]);
6157
+ goa_icon = element("goa-icon");
6158
+ t0 = space();
6159
+ t1 = text(/*error*/ ctx[2]);
6160
+ set_custom_element_data(goa_icon, "type", "warning");
6161
+ set_custom_element_data(goa_icon, "size", "small");
6162
+ set_custom_element_data(goa_icon, "theme", "filled");
6163
+ set_style(goa_icon, "pointer-events", "none");
6126
6164
  attr(div, "class", "error-msg");
6127
6165
  },
6128
6166
  m(target, anchor) {
6129
6167
  insert(target, div, anchor);
6130
- append(div, t);
6168
+ append(div, goa_icon);
6169
+ append(div, t0);
6170
+ append(div, t1);
6131
6171
  },
6132
6172
  p(ctx, dirty) {
6133
- if (dirty & /*error*/ 4) set_data(t, /*error*/ ctx[2]);
6173
+ if (dirty & /*error*/ 4) set_data(t1, /*error*/ ctx[2]);
6134
6174
  },
6135
6175
  d(detaching) {
6136
6176
  if (detaching) detach(div);
@@ -6138,7 +6178,7 @@ function create_if_block_1$5(ctx) {
6138
6178
  };
6139
6179
  }
6140
6180
 
6141
- // (39:2) {#if helptext}
6181
+ // (42:2) {#if helptext}
6142
6182
  function create_if_block$8(ctx) {
6143
6183
  let div;
6144
6184
  let t;
@@ -6280,7 +6320,7 @@ function instance$h($$self, $$props, $$invalidate) {
6280
6320
  class FormItem extends SvelteElement {
6281
6321
  constructor(options) {
6282
6322
  super();
6283
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}*{box-sizing:border-box}.label{display:block;font-weight:var(--fw-bold);color:var(--goa-color-text);font-size:var(--fs-base);padding:0.5rem 0}.label em{color:var(--color-gray-600);font-weight:var(--fw-regular);font-size:var(--fs-sm);line-height:var(--lh-sm);font-style:normal}.form-item-input{margin-bottom:0.25rem}.help-msg{font-size:var(--fs-sm);color:var(--goa-color-text);margin-right:56px}.error-msg{font-size:var(--fs-sm);color:var(--goa-color-interactive--error);margin-bottom:0.25rem}</style>`;
6323
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}*{box-sizing:border-box}.label{display:block;font-weight:var(--fw-bold);color:var(--goa-color-text);font-size:var(--fs-base);padding:0.5rem 0}.label em{color:var(--color-gray-600);font-weight:var(--fw-regular);font-size:var(--fs-sm);line-height:var(--lh-sm);font-style:normal}.form-item-input{margin-bottom:0.25rem}.help-msg{font-size:var(--fs-sm);color:var(--goa-color-text);margin-right:56px}.error-msg{display:inline-flex;gap:0.25rem;font-size:var(--fs-sm);color:var(--goa-color-interactive--error);margin-bottom:0.25rem}</style>`;
6284
6324
 
6285
6325
  init(
6286
6326
  this,
@@ -6502,7 +6542,7 @@ function create_fragment$h(ctx) {
6502
6542
  set_custom_element_data(goa_icon, "size", /*size*/ ctx[1]);
6503
6543
  set_custom_element_data(goa_icon, "theme", /*theme*/ ctx[2]);
6504
6544
  set_custom_element_data(goa_icon, "inverted", /*isInverted*/ ctx[5]);
6505
- set_style(button, "--size", /*_size*/ ctx[6]);
6545
+ set_style(button, "--pading-size", /*_paddingSize*/ ctx[6]);
6506
6546
  attr(button, "title", /*title*/ ctx[3]);
6507
6547
  button.disabled = /*isDisabled*/ ctx[7];
6508
6548
  attr(button, "class", /*css*/ ctx[8]);
@@ -6538,8 +6578,8 @@ function create_fragment$h(ctx) {
6538
6578
  set_custom_element_data(goa_icon, "inverted", /*isInverted*/ ctx[5]);
6539
6579
  }
6540
6580
 
6541
- if (dirty & /*_size*/ 64) {
6542
- set_style(button, "--size", /*_size*/ ctx[6]);
6581
+ if (dirty & /*_paddingSize*/ 64) {
6582
+ set_style(button, "--pading-size", /*_paddingSize*/ ctx[6]);
6543
6583
  }
6544
6584
 
6545
6585
  if (dirty & /*title*/ 8) {
@@ -6576,7 +6616,7 @@ function instance$f($$self, $$props, $$invalidate) {
6576
6616
  let css;
6577
6617
  let isDisabled;
6578
6618
  let isInverted;
6579
- let _size;
6619
+ let _paddingSize;
6580
6620
  let { icon } = $$props;
6581
6621
  let { size = "medium" } = $$props;
6582
6622
  let { theme = "outline" } = $$props;
@@ -6612,10 +6652,10 @@ function instance$f($$self, $$props, $$invalidate) {
6612
6652
  }
6613
6653
 
6614
6654
  if ($$self.$$.dirty & /*size*/ 2) {
6615
- $$invalidate(6, _size = ({
6616
- small: "1rem",
6617
- medium: "1rem",
6618
- large: "2rem"
6655
+ $$invalidate(6, _paddingSize = ({
6656
+ small: "0.25rem",
6657
+ medium: "0.25rem",
6658
+ large: "0.5rem"
6619
6659
  })[size]);
6620
6660
  }
6621
6661
  };
@@ -6627,7 +6667,7 @@ function instance$f($$self, $$props, $$invalidate) {
6627
6667
  title,
6628
6668
  testId,
6629
6669
  isInverted,
6630
- _size,
6670
+ _paddingSize,
6631
6671
  isDisabled,
6632
6672
  css,
6633
6673
  variant,
@@ -6639,7 +6679,7 @@ function instance$f($$self, $$props, $$invalidate) {
6639
6679
  class IconButton extends SvelteElement {
6640
6680
  constructor(options) {
6641
6681
  super();
6642
- this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--font-family)}button,button *{box-sizing:border-box}button{display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;background:transparent;cursor:pointer;border:none;padding:0 0.75rem}.color{border-radius:0.5rem;padding:calc(var(--size) / 4);color:var(--goa-color-interactive);fill:var(--goa-color-interactive);cursor:pointer;transition:background-color 100ms ease-in, transform 100ms ease-in}.nocolor{border-radius:0.5rem;padding:calc(var(--size) / 4)}button:hover{background-color:var(--color-gray-100);border-color:var(--color-gray-100);color:var(--goa-color-interactive--hover);outline:none}button:focus,button:active{background-color:var(--color-gray-100);border-color:var(--goa-color-interactive--active);color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);outline:none}.color.inverted:hover{background-color:var(--goa-color-primary-dark)}button:disabled{pointer-events:none;opacity:0.5;transform:none;cursor:default}button:disabled:hover{background-color:transparent}</style>`;
6682
+ this.shadowRoot.innerHTML = `<style>:host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--font-family)}button,button *{box-sizing:border-box}button{display:inline-flex;align-items:center;box-sizing:border-box;justify-content:center;background:transparent;cursor:pointer;border:none;border-radius:0.5rem;padding:var(--pading-size)}.color,.dark{color:var(--goa-color-interactive);fill:var(--goa-color-interactive);cursor:pointer;transition:background-color 100ms ease-in, transform 100ms ease-in}.dark:not(.inverted){color:unset}button:hover{background-color:var(--color-gray-100);border-color:var(--color-gray-100);color:var(--goa-color-interactive--hover);outline:none}button:focus,button:active{background-color:var(--color-gray-100);border-color:var(--goa-color-interactive--active);color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);outline:none}.color.inverted:hover{background-color:var(--goa-color-primary-dark)}button:disabled{pointer-events:none;opacity:0.5;transform:none;cursor:default}button:disabled:hover{background-color:transparent}button.dark:hover{background-color:rgba(0, 0, 0, 0.3)}button.dark:focus,button.dark:active{background-color:rgba(0, 0, 0, 0.3);box-shadow:0 0 0 3px var(--color-white)}</style>`;
6643
6683
 
6644
6684
  init(
6645
6685
  this,
@@ -7047,7 +7087,7 @@ customElements.define("goa-icon", Icon);
7047
7087
 
7048
7088
  /* libs/web-components/src/components/input/Input.svelte generated by Svelte v3.51.0 */
7049
7089
 
7050
- function create_if_block_4(ctx) {
7090
+ function create_if_block_4$1(ctx) {
7051
7091
  let div;
7052
7092
  let t;
7053
7093
 
@@ -7201,7 +7241,7 @@ function create_fragment$f(ctx) {
7201
7241
  let div1_style_value;
7202
7242
  let mounted;
7203
7243
  let dispose;
7204
- let if_block0 = /*prefix*/ ctx[14] && create_if_block_4(ctx);
7244
+ let if_block0 = /*prefix*/ ctx[14] && create_if_block_4$1(ctx);
7205
7245
  let if_block1 = /*leadingicon*/ ctx[5] && create_if_block_3$2(ctx);
7206
7246
  let if_block2 = /*trailingicon*/ ctx[6] && !/*handlesTrailingIconClick*/ ctx[20] && create_if_block_2$3(ctx);
7207
7247
  let if_block3 = /*trailingicon*/ ctx[6] && /*handlesTrailingIconClick*/ ctx[20] && create_if_block_1$4(ctx);
@@ -7283,7 +7323,7 @@ function create_fragment$f(ctx) {
7283
7323
  if (if_block0) {
7284
7324
  if_block0.p(ctx, dirty);
7285
7325
  } else {
7286
- if_block0 = create_if_block_4(ctx);
7326
+ if_block0 = create_if_block_4$1(ctx);
7287
7327
  if_block0.c();
7288
7328
  if_block0.m(div0, t0);
7289
7329
  }
@@ -8187,88 +8227,98 @@ customElements.define("goa-microsite-header", MicrositeHeader);
8187
8227
 
8188
8228
  function create_if_block$4(ctx) {
8189
8229
  let goa_focus_trap;
8190
- let div4;
8230
+ let div5;
8191
8231
  let div0;
8192
8232
  let t0;
8193
- let div3;
8233
+ let div4;
8194
8234
  let t1;
8235
+ let div3;
8195
8236
  let t2;
8196
- let div1;
8197
8237
  let t3;
8198
- let slot0;
8238
+ let div1;
8199
8239
  let t4;
8240
+ let slot0;
8241
+ let t5;
8200
8242
  let div2;
8201
- let div3_intro;
8202
- let div3_outro;
8203
- let div4_style_value;
8204
- let noscroll_action;
8205
8243
  let div4_intro;
8206
8244
  let div4_outro;
8245
+ let div5_style_value;
8246
+ let noscroll_action;
8247
+ let div5_intro;
8248
+ let div5_outro;
8207
8249
  let current;
8208
8250
  let mounted;
8209
8251
  let dispose;
8210
- let if_block0 = /*heading*/ ctx[0] && create_if_block_3(ctx);
8211
- let if_block1 = /*isClosable*/ ctx[3] && create_if_block_2$1(ctx);
8252
+ let if_block0 = /*type*/ ctx[4] === "callout" && create_if_block_4(ctx);
8253
+ let if_block1 = /*heading*/ ctx[1] && create_if_block_3(ctx);
8254
+ let if_block2 = /*isClosable*/ ctx[5] && create_if_block_2$1(ctx);
8212
8255
 
8213
8256
  function select_block_type(ctx, dirty) {
8214
8257
  return create_if_block_1$2;
8215
8258
  }
8216
8259
 
8217
8260
  let current_block_type = select_block_type();
8218
- let if_block2 = current_block_type(ctx);
8261
+ let if_block3 = current_block_type(ctx);
8219
8262
 
8220
8263
  return {
8221
8264
  c() {
8222
8265
  goa_focus_trap = element("goa-focus-trap");
8223
- div4 = element("div");
8266
+ div5 = element("div");
8224
8267
  div0 = element("div");
8225
8268
  t0 = space();
8226
- div3 = element("div");
8269
+ div4 = element("div");
8227
8270
  if (if_block0) if_block0.c();
8228
8271
  t1 = space();
8272
+ div3 = element("div");
8229
8273
  if (if_block1) if_block1.c();
8230
8274
  t2 = space();
8231
- div1 = element("div");
8232
- if_block2.c();
8275
+ if (if_block2) if_block2.c();
8233
8276
  t3 = space();
8234
- slot0 = element("slot");
8277
+ div1 = element("div");
8278
+ if_block3.c();
8235
8279
  t4 = space();
8280
+ slot0 = element("slot");
8281
+ t5 = space();
8236
8282
  div2 = element("div");
8237
8283
  div2.innerHTML = `<slot name="actions"></slot>`;
8238
8284
  attr(div0, "data-testid", "modal-overlay");
8239
8285
  attr(div0, "class", "modal-overlay");
8240
8286
  attr(div1, "data-testid", "modal-content");
8241
8287
  attr(div1, "class", "modal-content");
8242
- attr(div2, "data-testid", "modal-actions");
8243
8288
  attr(div2, "class", "modal-actions");
8244
- attr(div3, "class", "modal-pane");
8245
- attr(div4, "data-testid", "modal");
8246
- attr(div4, "class", "modal");
8247
- attr(div4, "style", div4_style_value = "" + ((/*width*/ ctx[2] && `--width: ${/*width*/ ctx[2]};`) + ";"));
8248
- set_custom_element_data(goa_focus_trap, "active", /*open*/ ctx[1]);
8289
+ attr(div2, "data-testid", "modal-actions");
8290
+ attr(div3, "class", "content");
8291
+ attr(div4, "class", "modal-pane");
8292
+ attr(div5, "data-testid", "modal");
8293
+ attr(div5, "class", "modal");
8294
+ attr(div5, "style", div5_style_value = "" + ((/*width*/ ctx[3] && `--width: ${/*width*/ ctx[3]};`) + ";"));
8295
+ set_custom_element_data(goa_focus_trap, "active", /*open*/ ctx[2]);
8249
8296
  },
8250
8297
  m(target, anchor) {
8251
8298
  insert(target, goa_focus_trap, anchor);
8252
- append(goa_focus_trap, div4);
8253
- append(div4, div0);
8254
- append(div4, t0);
8299
+ append(goa_focus_trap, div5);
8300
+ append(div5, div0);
8301
+ append(div5, t0);
8302
+ append(div5, div4);
8303
+ if (if_block0) if_block0.m(div4, null);
8304
+ append(div4, t1);
8255
8305
  append(div4, div3);
8256
- if (if_block0) if_block0.m(div3, null);
8257
- append(div3, t1);
8258
8306
  if (if_block1) if_block1.m(div3, null);
8259
8307
  append(div3, t2);
8308
+ if (if_block2) if_block2.m(div3, null);
8309
+ append(div3, t3);
8260
8310
  append(div3, div1);
8261
- if_block2.m(div1, null);
8262
- append(div1, t3);
8311
+ if_block3.m(div1, null);
8312
+ append(div1, t4);
8263
8313
  append(div1, slot0);
8264
- append(div3, t4);
8314
+ append(div3, t5);
8265
8315
  append(div3, div2);
8266
8316
  current = true;
8267
8317
 
8268
8318
  if (!mounted) {
8269
8319
  dispose = [
8270
- listen(div0, "click", /*close*/ ctx[6]),
8271
- action_destroyer(noscroll_action = noscroll.call(null, div4, { enable: /*isOpen*/ ctx[5] }))
8320
+ listen(div0, "click", /*close*/ ctx[9]),
8321
+ action_destroyer(noscroll_action = noscroll.call(null, div5, { enable: /*isOpen*/ ctx[8] }))
8272
8322
  ];
8273
8323
 
8274
8324
  mounted = true;
@@ -8277,24 +8327,24 @@ function create_if_block$4(ctx) {
8277
8327
  p(new_ctx, dirty) {
8278
8328
  ctx = new_ctx;
8279
8329
 
8280
- if (/*heading*/ ctx[0]) {
8330
+ if (/*type*/ ctx[4] === "callout") {
8281
8331
  if (if_block0) {
8282
8332
  if_block0.p(ctx, dirty);
8283
8333
  } else {
8284
- if_block0 = create_if_block_3(ctx);
8334
+ if_block0 = create_if_block_4(ctx);
8285
8335
  if_block0.c();
8286
- if_block0.m(div3, t1);
8336
+ if_block0.m(div4, t1);
8287
8337
  }
8288
8338
  } else if (if_block0) {
8289
8339
  if_block0.d(1);
8290
8340
  if_block0 = null;
8291
8341
  }
8292
8342
 
8293
- if (/*isClosable*/ ctx[3]) {
8343
+ if (/*heading*/ ctx[1]) {
8294
8344
  if (if_block1) {
8295
8345
  if_block1.p(ctx, dirty);
8296
8346
  } else {
8297
- if_block1 = create_if_block_2$1(ctx);
8347
+ if_block1 = create_if_block_3(ctx);
8298
8348
  if_block1.c();
8299
8349
  if_block1.m(div3, t2);
8300
8350
  }
@@ -8303,52 +8353,65 @@ function create_if_block$4(ctx) {
8303
8353
  if_block1 = null;
8304
8354
  }
8305
8355
 
8306
- if (!current || dirty & /*width*/ 4 && div4_style_value !== (div4_style_value = "" + ((/*width*/ ctx[2] && `--width: ${/*width*/ ctx[2]};`) + ";"))) {
8307
- attr(div4, "style", div4_style_value);
8356
+ if (/*isClosable*/ ctx[5]) {
8357
+ if (if_block2) {
8358
+ if_block2.p(ctx, dirty);
8359
+ } else {
8360
+ if_block2 = create_if_block_2$1(ctx);
8361
+ if_block2.c();
8362
+ if_block2.m(div3, t3);
8363
+ }
8364
+ } else if (if_block2) {
8365
+ if_block2.d(1);
8366
+ if_block2 = null;
8367
+ }
8368
+
8369
+ if (!current || dirty & /*width*/ 8 && div5_style_value !== (div5_style_value = "" + ((/*width*/ ctx[3] && `--width: ${/*width*/ ctx[3]};`) + ";"))) {
8370
+ attr(div5, "style", div5_style_value);
8308
8371
  }
8309
8372
 
8310
- if (noscroll_action && is_function(noscroll_action.update) && dirty & /*isOpen*/ 32) noscroll_action.update.call(null, { enable: /*isOpen*/ ctx[5] });
8373
+ if (noscroll_action && is_function(noscroll_action.update) && dirty & /*isOpen*/ 256) noscroll_action.update.call(null, { enable: /*isOpen*/ ctx[8] });
8311
8374
 
8312
- if (!current || dirty & /*open*/ 2) {
8313
- set_custom_element_data(goa_focus_trap, "active", /*open*/ ctx[1]);
8375
+ if (!current || dirty & /*open*/ 4) {
8376
+ set_custom_element_data(goa_focus_trap, "active", /*open*/ ctx[2]);
8314
8377
  }
8315
8378
  },
8316
8379
  i(local) {
8317
8380
  if (current) return;
8318
8381
 
8319
8382
  add_render_callback(() => {
8320
- if (div3_outro) div3_outro.end(1);
8383
+ if (div4_outro) div4_outro.end(1);
8321
8384
 
8322
- div3_intro = create_in_transition(div3, fly, {
8323
- duration: /*_transitionTime*/ ctx[4],
8385
+ div4_intro = create_in_transition(div4, fly, {
8386
+ duration: /*_transitionTime*/ ctx[7],
8324
8387
  y: 200
8325
8388
  });
8326
8389
 
8327
- div3_intro.start();
8390
+ div4_intro.start();
8328
8391
  });
8329
8392
 
8330
8393
  add_render_callback(() => {
8331
- if (div4_outro) div4_outro.end(1);
8332
- div4_intro = create_in_transition(div4, fade, { duration: /*_transitionTime*/ ctx[4] });
8333
- div4_intro.start();
8394
+ if (div5_outro) div5_outro.end(1);
8395
+ div5_intro = create_in_transition(div5, fade, { duration: /*_transitionTime*/ ctx[7] });
8396
+ div5_intro.start();
8334
8397
  });
8335
8398
 
8336
8399
  current = true;
8337
8400
  },
8338
8401
  o(local) {
8339
- if (div3_intro) div3_intro.invalidate();
8402
+ if (div4_intro) div4_intro.invalidate();
8340
8403
 
8341
- div3_outro = create_out_transition(div3, fly, {
8342
- delay: /*_transitionTime*/ ctx[4],
8343
- duration: /*_transitionTime*/ ctx[4],
8404
+ div4_outro = create_out_transition(div4, fly, {
8405
+ delay: /*_transitionTime*/ ctx[7],
8406
+ duration: /*_transitionTime*/ ctx[7],
8344
8407
  y: -100
8345
8408
  });
8346
8409
 
8347
- if (div4_intro) div4_intro.invalidate();
8410
+ if (div5_intro) div5_intro.invalidate();
8348
8411
 
8349
- div4_outro = create_out_transition(div4, fade, {
8350
- delay: /*_transitionTime*/ ctx[4],
8351
- duration: /*_transitionTime*/ ctx[4]
8412
+ div5_outro = create_out_transition(div5, fade, {
8413
+ delay: /*_transitionTime*/ ctx[7],
8414
+ duration: /*_transitionTime*/ ctx[7]
8352
8415
  });
8353
8416
 
8354
8417
  current = false;
@@ -8357,16 +8420,61 @@ function create_if_block$4(ctx) {
8357
8420
  if (detaching) detach(goa_focus_trap);
8358
8421
  if (if_block0) if_block0.d();
8359
8422
  if (if_block1) if_block1.d();
8360
- if_block2.d();
8361
- if (detaching && div3_outro) div3_outro.end();
8423
+ if (if_block2) if_block2.d();
8424
+ if_block3.d();
8362
8425
  if (detaching && div4_outro) div4_outro.end();
8426
+ if (detaching && div5_outro) div5_outro.end();
8363
8427
  mounted = false;
8364
8428
  run_all(dispose);
8365
8429
  }
8366
8430
  };
8367
8431
  }
8368
8432
 
8369
- // (53:8) {#if heading}
8433
+ // (79:6) {#if type === "callout"}
8434
+ function create_if_block_4(ctx) {
8435
+ let div;
8436
+ let goa_icon;
8437
+ let goa_icon_inverted_value;
8438
+ let div_class_value;
8439
+
8440
+ return {
8441
+ c() {
8442
+ div = element("div");
8443
+ goa_icon = element("goa-icon");
8444
+ set_custom_element_data(goa_icon, "type", /*iconType*/ ctx[6]);
8445
+
8446
+ set_custom_element_data(goa_icon, "inverted", goa_icon_inverted_value = /*calloutvariant*/ ctx[0] === "important"
8447
+ ? "false"
8448
+ : "true");
8449
+
8450
+ attr(div, "class", div_class_value = "callout-bar " + /*calloutvariant*/ ctx[0]);
8451
+ },
8452
+ m(target, anchor) {
8453
+ insert(target, div, anchor);
8454
+ append(div, goa_icon);
8455
+ },
8456
+ p(ctx, dirty) {
8457
+ if (dirty & /*iconType*/ 64) {
8458
+ set_custom_element_data(goa_icon, "type", /*iconType*/ ctx[6]);
8459
+ }
8460
+
8461
+ if (dirty & /*calloutvariant*/ 1 && goa_icon_inverted_value !== (goa_icon_inverted_value = /*calloutvariant*/ ctx[0] === "important"
8462
+ ? "false"
8463
+ : "true")) {
8464
+ set_custom_element_data(goa_icon, "inverted", goa_icon_inverted_value);
8465
+ }
8466
+
8467
+ if (dirty & /*calloutvariant*/ 1 && div_class_value !== (div_class_value = "callout-bar " + /*calloutvariant*/ ctx[0])) {
8468
+ attr(div, "class", div_class_value);
8469
+ }
8470
+ },
8471
+ d(detaching) {
8472
+ if (detaching) detach(div);
8473
+ }
8474
+ };
8475
+ }
8476
+
8477
+ // (85:8) {#if heading}
8370
8478
  function create_if_block_3(ctx) {
8371
8479
  let div;
8372
8480
  let t;
@@ -8374,7 +8482,7 @@ function create_if_block_3(ctx) {
8374
8482
  return {
8375
8483
  c() {
8376
8484
  div = element("div");
8377
- t = text(/*heading*/ ctx[0]);
8485
+ t = text(/*heading*/ ctx[1]);
8378
8486
  attr(div, "data-testid", "modal-title");
8379
8487
  attr(div, "class", "modal-title");
8380
8488
  },
@@ -8383,7 +8491,7 @@ function create_if_block_3(ctx) {
8383
8491
  append(div, t);
8384
8492
  },
8385
8493
  p(ctx, dirty) {
8386
- if (dirty & /*heading*/ 1) set_data(t, /*heading*/ ctx[0]);
8494
+ if (dirty & /*heading*/ 2) set_data(t, /*heading*/ ctx[1]);
8387
8495
  },
8388
8496
  d(detaching) {
8389
8497
  if (detaching) detach(div);
@@ -8391,7 +8499,7 @@ function create_if_block_3(ctx) {
8391
8499
  };
8392
8500
  }
8393
8501
 
8394
- // (56:8) {#if isClosable}
8502
+ // (88:8) {#if isClosable}
8395
8503
  function create_if_block_2$1(ctx) {
8396
8504
  let div;
8397
8505
  let goa_icon_button;
@@ -8404,6 +8512,7 @@ function create_if_block_2$1(ctx) {
8404
8512
  goa_icon_button = element("goa-icon-button");
8405
8513
  set_custom_element_data(goa_icon_button, "data-testid", "modal-close-button");
8406
8514
  set_custom_element_data(goa_icon_button, "icon", "close");
8515
+ set_custom_element_data(goa_icon_button, "variant", "nocolor");
8407
8516
  attr(div, "class", "modal-close");
8408
8517
  },
8409
8518
  m(target, anchor) {
@@ -8411,7 +8520,7 @@ function create_if_block_2$1(ctx) {
8411
8520
  append(div, goa_icon_button);
8412
8521
 
8413
8522
  if (!mounted) {
8414
- dispose = listen(goa_icon_button, "click", /*close*/ ctx[6]);
8523
+ dispose = listen(goa_icon_button, "click", /*close*/ ctx[9]);
8415
8524
  mounted = true;
8416
8525
  }
8417
8526
  },
@@ -8424,7 +8533,7 @@ function create_if_block_2$1(ctx) {
8424
8533
  };
8425
8534
  }
8426
8535
 
8427
- // (67:10) {#if isScrollable}
8536
+ // (100:10) {#if isScrollable}
8428
8537
  function create_if_block_1$2(ctx) {
8429
8538
  let goa_scrollable;
8430
8539
 
@@ -8434,7 +8543,6 @@ function create_if_block_1$2(ctx) {
8434
8543
  goa_scrollable.innerHTML = `<slot></slot>`;
8435
8544
  set_custom_element_data(goa_scrollable, "direction", "vertical");
8436
8545
  set_custom_element_data(goa_scrollable, "height", "50");
8437
- set_custom_element_data(goa_scrollable, "hpadding", "1.75");
8438
8546
  },
8439
8547
  m(target, anchor) {
8440
8548
  insert(target, goa_scrollable, anchor);
@@ -8448,7 +8556,7 @@ function create_if_block_1$2(ctx) {
8448
8556
  function create_fragment$d(ctx) {
8449
8557
  let if_block_anchor;
8450
8558
  let current;
8451
- let if_block = /*isOpen*/ ctx[5] && create_if_block$4(ctx);
8559
+ let if_block = /*isOpen*/ ctx[8] && create_if_block$4(ctx);
8452
8560
 
8453
8561
  return {
8454
8562
  c() {
@@ -8462,11 +8570,11 @@ function create_fragment$d(ctx) {
8462
8570
  current = true;
8463
8571
  },
8464
8572
  p(ctx, [dirty]) {
8465
- if (/*isOpen*/ ctx[5]) {
8573
+ if (/*isOpen*/ ctx[8]) {
8466
8574
  if (if_block) {
8467
8575
  if_block.p(ctx, dirty);
8468
8576
 
8469
- if (dirty & /*isOpen*/ 32) {
8577
+ if (dirty & /*isOpen*/ 256) {
8470
8578
  transition_in(if_block, 1);
8471
8579
  }
8472
8580
  } else {
@@ -8505,11 +8613,21 @@ function instance$b($$self, $$props, $$invalidate) {
8505
8613
  let isClosable;
8506
8614
  let isOpen;
8507
8615
  let _transitionTime;
8616
+ let iconType;
8617
+ const CALLOUT_VARIANT = ["emergency", "important", "information", "success", "event"];
8618
+
8619
+ // type check function
8620
+ function isCalloutVariantType(value) {
8621
+ return CALLOUT_VARIANT.includes(value);
8622
+ }
8623
+
8508
8624
  let { heading = "" } = $$props;
8509
8625
  let { closable = "false" } = $$props;
8510
8626
  let { open = "false" } = $$props;
8511
8627
  let { transition = "none" } = $$props;
8512
8628
  let { width = "" } = $$props;
8629
+ let { type = "default" } = $$props;
8630
+ let { calloutvariant } = $$props;
8513
8631
 
8514
8632
  function close(e) {
8515
8633
  if (!isClosable) {
@@ -8520,35 +8638,59 @@ function instance$b($$self, $$props, $$invalidate) {
8520
8638
  e.stopPropagation();
8521
8639
  }
8522
8640
 
8641
+ onMount(() => {
8642
+ if (type === "callout" && !isCalloutVariantType(calloutvariant)) {
8643
+ $$invalidate(0, calloutvariant = "");
8644
+ throw "Invalid callout variant";
8645
+ }
8646
+ });
8647
+
8523
8648
  $$self.$$set = $$props => {
8524
- if ('heading' in $$props) $$invalidate(0, heading = $$props.heading);
8525
- if ('closable' in $$props) $$invalidate(7, closable = $$props.closable);
8526
- if ('open' in $$props) $$invalidate(1, open = $$props.open);
8527
- if ('transition' in $$props) $$invalidate(8, transition = $$props.transition);
8528
- if ('width' in $$props) $$invalidate(2, width = $$props.width);
8649
+ if ('heading' in $$props) $$invalidate(1, heading = $$props.heading);
8650
+ if ('closable' in $$props) $$invalidate(10, closable = $$props.closable);
8651
+ if ('open' in $$props) $$invalidate(2, open = $$props.open);
8652
+ if ('transition' in $$props) $$invalidate(11, transition = $$props.transition);
8653
+ if ('width' in $$props) $$invalidate(3, width = $$props.width);
8654
+ if ('type' in $$props) $$invalidate(4, type = $$props.type);
8655
+ if ('calloutvariant' in $$props) $$invalidate(0, calloutvariant = $$props.calloutvariant);
8529
8656
  };
8530
8657
 
8531
8658
  $$self.$$.update = () => {
8532
- if ($$self.$$.dirty & /*closable*/ 128) {
8533
- $$invalidate(3, isClosable = toBoolean(closable));
8659
+ if ($$self.$$.dirty & /*closable*/ 1024) {
8660
+ $$invalidate(5, isClosable = toBoolean(closable));
8534
8661
  }
8535
8662
 
8536
- if ($$self.$$.dirty & /*open*/ 2) {
8537
- $$invalidate(5, isOpen = toBoolean(open));
8663
+ if ($$self.$$.dirty & /*open*/ 4) {
8664
+ $$invalidate(8, isOpen = toBoolean(open));
8538
8665
  }
8539
8666
 
8540
- if ($$self.$$.dirty & /*transition*/ 256) {
8541
- $$invalidate(4, _transitionTime = transition === "none"
8667
+ if ($$self.$$.dirty & /*transition*/ 2048) {
8668
+ $$invalidate(7, _transitionTime = transition === "none"
8542
8669
  ? 0
8543
8670
  : transition === "slow" ? 400 : 200);
8544
8671
  }
8672
+
8673
+ if ($$self.$$.dirty & /*calloutvariant*/ 1) {
8674
+ $$invalidate(6, iconType = calloutvariant === "emergency"
8675
+ ? "warning"
8676
+ : calloutvariant === "important"
8677
+ ? "alert-circle"
8678
+ : calloutvariant === "information"
8679
+ ? "information-circle"
8680
+ : calloutvariant === "success"
8681
+ ? "checkmark-circle"
8682
+ : calloutvariant === "event" ? "calendar" : "");
8683
+ }
8545
8684
  };
8546
8685
 
8547
8686
  return [
8687
+ calloutvariant,
8548
8688
  heading,
8549
8689
  open,
8550
8690
  width,
8691
+ type,
8551
8692
  isClosable,
8693
+ iconType,
8552
8694
  _transitionTime,
8553
8695
  isOpen,
8554
8696
  close,
@@ -8560,7 +8702,7 @@ function instance$b($$self, $$props, $$invalidate) {
8560
8702
  class Modal extends SvelteElement {
8561
8703
  constructor(options) {
8562
8704
  super();
8563
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.modal{font-family:var(--font-family);position:fixed;inset:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:90%;margin:1rem;box-shadow:var(--shadow-2);border-radius:4px;max-height:90%}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch);max-height:80%}}.modal-actions{text-align:right;padding:0 1.75rem;margin:1.75rem 0;flex:1 1 auto}.modal-close{position:absolute;top:1rem;right:1rem}.modal-title{font-size:var(--fs-xl);padding-bottom:1rem;padding:0 1.75rem;margin:1.75rem 0;margin-right:40px;flex:0 0 auto}</style>`;
8705
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.modal{font-family:var(--font-family);position:fixed;inset:0;display:flex;align-items:center;justify-content:center;height:100vh;width:100%;z-index:100}.modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.2);z-index:1000}.emergency{background-color:var(--goa-color-status-emergency)}.important{background-color:var(--goa-color-status-warning)}.information{background-color:var(--goa-color-status-info)}.event{background-color:var(--goa-color-status-info)}.success{background-color:var(--goa-color-status-success)}.callout-bar{flex:0 0 3rem;text-align:center;padding-top:2rem}.content{flex:1 1 auto;width:100%;margin:2rem 2rem}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:90%;display:flex;margin:1rem;box-shadow:var(--shadow-2);border-radius:4px;max-height:90%}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch);max-height:80%}}.modal-actions{margin:1.5rem 0 0}.modal-actions:empty{margin:0}.modal-close{position:absolute;top:2rem;right:2rem}.modal-title{font-size:var(--fs-xl);margin:0 0 1.5rem;margin-right:40px;flex:0 0 auto}.modal-content{line-height:1.75rem}</style>`;
8564
8706
 
8565
8707
  init(
8566
8708
  this,
@@ -8573,11 +8715,13 @@ class Modal extends SvelteElement {
8573
8715
  create_fragment$d,
8574
8716
  safe_not_equal,
8575
8717
  {
8576
- heading: 0,
8577
- closable: 7,
8578
- open: 1,
8579
- transition: 8,
8580
- width: 2
8718
+ heading: 1,
8719
+ closable: 10,
8720
+ open: 2,
8721
+ transition: 11,
8722
+ width: 3,
8723
+ type: 4,
8724
+ calloutvariant: 0
8581
8725
  },
8582
8726
  null
8583
8727
  );
@@ -8595,11 +8739,19 @@ class Modal extends SvelteElement {
8595
8739
  }
8596
8740
 
8597
8741
  static get observedAttributes() {
8598
- return ["heading", "closable", "open", "transition", "width"];
8742
+ return [
8743
+ "heading",
8744
+ "closable",
8745
+ "open",
8746
+ "transition",
8747
+ "width",
8748
+ "type",
8749
+ "calloutvariant"
8750
+ ];
8599
8751
  }
8600
8752
 
8601
8753
  get heading() {
8602
- return this.$$.ctx[0];
8754
+ return this.$$.ctx[1];
8603
8755
  }
8604
8756
 
8605
8757
  set heading(heading) {
@@ -8608,7 +8760,7 @@ class Modal extends SvelteElement {
8608
8760
  }
8609
8761
 
8610
8762
  get closable() {
8611
- return this.$$.ctx[7];
8763
+ return this.$$.ctx[10];
8612
8764
  }
8613
8765
 
8614
8766
  set closable(closable) {
@@ -8617,7 +8769,7 @@ class Modal extends SvelteElement {
8617
8769
  }
8618
8770
 
8619
8771
  get open() {
8620
- return this.$$.ctx[1];
8772
+ return this.$$.ctx[2];
8621
8773
  }
8622
8774
 
8623
8775
  set open(open) {
@@ -8626,7 +8778,7 @@ class Modal extends SvelteElement {
8626
8778
  }
8627
8779
 
8628
8780
  get transition() {
8629
- return this.$$.ctx[8];
8781
+ return this.$$.ctx[11];
8630
8782
  }
8631
8783
 
8632
8784
  set transition(transition) {
@@ -8635,13 +8787,31 @@ class Modal extends SvelteElement {
8635
8787
  }
8636
8788
 
8637
8789
  get width() {
8638
- return this.$$.ctx[2];
8790
+ return this.$$.ctx[3];
8639
8791
  }
8640
8792
 
8641
8793
  set width(width) {
8642
8794
  this.$$set({ width });
8643
8795
  flush();
8644
8796
  }
8797
+
8798
+ get type() {
8799
+ return this.$$.ctx[4];
8800
+ }
8801
+
8802
+ set type(type) {
8803
+ this.$$set({ type });
8804
+ flush();
8805
+ }
8806
+
8807
+ get calloutvariant() {
8808
+ return this.$$.ctx[0];
8809
+ }
8810
+
8811
+ set calloutvariant(calloutvariant) {
8812
+ this.$$set({ calloutvariant });
8813
+ flush();
8814
+ }
8645
8815
  }
8646
8816
 
8647
8817
  customElements.define("goa-modal", Modal);
@@ -8652,11 +8822,13 @@ function create_if_block$3(ctx) {
8652
8822
  let div3;
8653
8823
  let div0;
8654
8824
  let goa_icon;
8825
+ let goa_icon_inverted_value;
8655
8826
  let t0;
8656
8827
  let div1;
8657
8828
  let t1;
8658
8829
  let div2;
8659
8830
  let goa_icon_button;
8831
+ let goa_icon_button_inverted_value;
8660
8832
  let div3_class_value;
8661
8833
  let div3_transition;
8662
8834
  let current;
@@ -8675,11 +8847,12 @@ function create_if_block$3(ctx) {
8675
8847
  div2 = element("div");
8676
8848
  goa_icon_button = element("goa-icon-button");
8677
8849
  set_custom_element_data(goa_icon, "type", /*iconType*/ ctx[2]);
8678
- set_custom_element_data(goa_icon, "inverted", "");
8850
+ set_custom_element_data(goa_icon, "inverted", goa_icon_inverted_value = /*type*/ ctx[0] === "important" ? "false" : "true");
8679
8851
  attr(div0, "class", "icon");
8680
8852
  attr(div1, "class", "content");
8681
8853
  set_custom_element_data(goa_icon_button, "icon", "close");
8682
- set_custom_element_data(goa_icon_button, "inverted", "");
8854
+ set_custom_element_data(goa_icon_button, "variant", "dark");
8855
+ set_custom_element_data(goa_icon_button, "inverted", goa_icon_button_inverted_value = /*type*/ ctx[0] === "important" ? "false" : "true");
8683
8856
  attr(div2, "class", "close");
8684
8857
  attr(div3, "class", div3_class_value = "notification " + /*type*/ ctx[0]);
8685
8858
  },
@@ -8704,6 +8877,14 @@ function create_if_block$3(ctx) {
8704
8877
  set_custom_element_data(goa_icon, "type", /*iconType*/ ctx[2]);
8705
8878
  }
8706
8879
 
8880
+ if (!current || dirty & /*type*/ 1 && goa_icon_inverted_value !== (goa_icon_inverted_value = /*type*/ ctx[0] === "important" ? "false" : "true")) {
8881
+ set_custom_element_data(goa_icon, "inverted", goa_icon_inverted_value);
8882
+ }
8883
+
8884
+ if (!current || dirty & /*type*/ 1 && goa_icon_button_inverted_value !== (goa_icon_button_inverted_value = /*type*/ ctx[0] === "important" ? "false" : "true")) {
8885
+ set_custom_element_data(goa_icon_button, "inverted", goa_icon_button_inverted_value);
8886
+ }
8887
+
8707
8888
  if (!current || dirty & /*type*/ 1 && div3_class_value !== (div3_class_value = "notification " + /*type*/ ctx[0])) {
8708
8889
  attr(div3, "class", div3_class_value);
8709
8890
  }
@@ -8790,9 +8971,22 @@ function create_fragment$c(ctx) {
8790
8971
 
8791
8972
  function instance$a($$self, $$props, $$invalidate) {
8792
8973
  let iconType;
8793
- let { type } = $$props;
8974
+ let { type = "" } = $$props;
8975
+ const NOTIFICATION_TYPES = ["emergency", "important", "information", "event"];
8976
+
8977
+ // type check function
8978
+ function isNotificationType(value) {
8979
+ return NOTIFICATION_TYPES.includes(value);
8980
+ }
8981
+
8794
8982
  let show = true;
8795
8983
 
8984
+ onMount(() => {
8985
+ if (!isNotificationType(type)) {
8986
+ console.error("Invalid notification type");
8987
+ }
8988
+ });
8989
+
8796
8990
  function close() {
8797
8991
  $$invalidate(1, show = false);
8798
8992
  }
@@ -8805,11 +8999,11 @@ function instance$a($$self, $$props, $$invalidate) {
8805
8999
  if ($$self.$$.dirty & /*type*/ 1) {
8806
9000
  $$invalidate(2, iconType = type === "emergency"
8807
9001
  ? "warning"
8808
- : type === "caution"
9002
+ : type === "important"
8809
9003
  ? "alert-circle"
8810
9004
  : type === "information"
8811
9005
  ? "information-circle"
8812
- : "calendar");
9006
+ : type === "event" ? "calendar" : "");
8813
9007
  }
8814
9008
  };
8815
9009
 
@@ -8819,7 +9013,7 @@ function instance$a($$self, $$props, $$invalidate) {
8819
9013
  class Notification extends SvelteElement {
8820
9014
  constructor(options) {
8821
9015
  super();
8822
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.notification{padding:1.5rem;display:flex;align-items:center;gap:1rem;border-radius:3px}.emergency{background-color:var(--goa-color-status-emergency);color:var(--color-white)}.caution{background-color:var(--goa-color-status-warning)}.information{background-color:var(--goa-color-status-info);color:var(--color-white)}.event{background-color:var(--goa-color-status-success);color:var(--color-white)}.icon{flex:0 0 auto;align-self:flex-start}.content{flex:1 1 auto}.close{flex:0 0 auto;align-self:flex-start}</style>`;
9016
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.notification{padding:1.5rem;display:flex;gap:1rem;border-radius:3px}.emergency{background-color:var(--goa-color-status-emergency);color:var(--color-white)}.important{background-color:var(--goa-color-status-warning)}.information{background-color:var(--goa-color-status-info);color:var(--color-white)}.event{background-color:var(--goa-color-status-success);color:var(--color-white)}.icon{flex:0 0 auto}.content{flex:1 1 auto}::slotted(a){color:unset !important;outline:unset !important}.close{flex:0 0 auto}</style>`;
8823
9017
 
8824
9018
  init(
8825
9019
  this,