@abgov/react-components 4.0.0-alpha.23 → 4.0.0-alpha.26

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.
@@ -1197,7 +1197,7 @@ function create_else_block$4(ctx) {
1197
1197
  } // (12:2) {#if url}
1198
1198
 
1199
1199
 
1200
- function create_if_block$i(ctx) {
1200
+ function create_if_block$j(ctx) {
1201
1201
  let a;
1202
1202
  let img0;
1203
1203
  let img0_src_value;
@@ -1272,7 +1272,7 @@ function create_fragment$D(ctx) {
1272
1272
  function select_block_type(ctx, dirty) {
1273
1273
  if (
1274
1274
  /*url*/
1275
- ctx[1]) return create_if_block$i;
1275
+ ctx[1]) return create_if_block$j;
1276
1276
  return create_else_block$4;
1277
1277
  }
1278
1278
 
@@ -1355,7 +1355,7 @@ function instance$y($$self, $$props, $$invalidate) {
1355
1355
  class AppHeader extends SvelteElement {
1356
1356
  constructor(options) {
1357
1357
  super();
1358
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.app-header{display:flex;align-items:center;justify-content:space-between;margin:0 auto;padding:1rem 0.5rem;border-bottom:1px solid var(--color-gray-100)}.app-link{display:flex;align-items:center;text-decoration:none;color:inherit}.title{margin-left:0.5rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.image-desktop{display:none}.image-mobile{display:block}@media(min-width: 768px){.image-desktop{display:block}.image-mobile{display:none}.title{margin-left:1.75rem}.image-desktop{display:block}.image-mobile{display:none}}</style>`;
1358
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.app-header{display:flex;align-items:center;justify-content:space-between;margin:0 auto;padding:1rem 1.5rem;border-bottom:1px solid var(--color-gray-100)}@media(max-width: 640px){.app-header{padding:1rem 1rem}}.app-link{display:flex;align-items:center;text-decoration:none;color:inherit}.title{margin-left:0.5rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.image-desktop{display:none}.image-mobile{display:block}@media(min-width: 768px){.image-desktop{display:block}.image-mobile{display:none}.title{margin-left:1.75rem}.image-desktop{display:block}.image-mobile{display:none}}</style>`;
1359
1359
  init(this, {
1360
1360
  target: this.shadowRoot,
1361
1361
  props: attribute_to_object(this.attributes),
@@ -1489,7 +1489,7 @@ function create_if_block_1$b(ctx) {
1489
1489
  } // (46:2) {#if content}
1490
1490
 
1491
1491
 
1492
- function create_if_block$h(ctx) {
1492
+ function create_if_block$i(ctx) {
1493
1493
  let div;
1494
1494
  let t;
1495
1495
  return {
@@ -1537,7 +1537,7 @@ function create_fragment$C(ctx) {
1537
1537
  let if_block0 = current_block_type(ctx);
1538
1538
  let if_block1 =
1539
1539
  /*content*/
1540
- ctx[2] && create_if_block$h(ctx);
1540
+ ctx[2] && create_if_block$i(ctx);
1541
1541
  return {
1542
1542
  c() {
1543
1543
  div = element("div");
@@ -1585,7 +1585,7 @@ function create_fragment$C(ctx) {
1585
1585
  if (if_block1) {
1586
1586
  if_block1.p(ctx, dirty);
1587
1587
  } else {
1588
- if_block1 = create_if_block$h(ctx);
1588
+ if_block1 = create_if_block$i(ctx);
1589
1589
  if_block1.c();
1590
1590
  if_block1.m(div, null);
1591
1591
  }
@@ -1845,7 +1845,7 @@ function create_else_block$2(ctx) {
1845
1845
  } // (55:2) {#if type === "start"}
1846
1846
 
1847
1847
 
1848
- function create_if_block$g(ctx) {
1848
+ function create_if_block$h(ctx) {
1849
1849
  let div;
1850
1850
  let t;
1851
1851
  let goa_icon;
@@ -1975,7 +1975,7 @@ function create_fragment$B(ctx) {
1975
1975
  function select_block_type(ctx, dirty) {
1976
1976
  if (
1977
1977
  /*type*/
1978
- ctx[0] === "start") return create_if_block$g;
1978
+ ctx[0] === "start") return create_if_block$h;
1979
1979
  return create_else_block$2;
1980
1980
  }
1981
1981
 
@@ -2200,7 +2200,7 @@ class Button extends SvelteElement {
2200
2200
  constructor(options) {
2201
2201
  super();
2202
2202
  this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}@media(max-width: 480px){:host{width:100%}button{width:100%}}button{display:flex;box-sizing:border-box;border-radius:0.25rem;border:2px solid var(--goa-color-interactive);box-sizing:border-box;cursor:pointer;font-family:var(--font-family);font-size:var(--fs-lg);font-weight:400;height:var(--button-height);letter-spacing:0.5px;line-height:100%;padding:0 0.75rem;gap:0.5rem;align-items:center;justify-content:center;transition:transform 0.1s ease-in-out, background-color 0.2s ease-in-out,
2203
- border-color 0.2s ease-in-out}.text{padding-bottom:var(--font-valign-fix)}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--fs-base)}button.start{height:var(--button-height-tall);font-weight:var(--fw-bold)}button.start,button.primary{border:2px solid var(--goa-color-interactive);background:var(--goa-color-interactive);color:var(--goa-color-text-light)}button.start:hover,button.primary:hover{border-color:var(--goa-color-interactive--hover);background:var(--goa-color-interactive--hover)}button.start:focus,button.start:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive--focus);border-color:var(--goa-color-interactive--active);background:var(--goa-color-interactive--active);outline:none}button.secondary{border:2px solid var(--goa-color-interactive);background:var(--color-white);color:var(--goa-color-interactive)}button.secondary:hover{border-color:var(--goa-color-interactive--hover);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);background:var(--color-gray-100);outline:none}button.tertiary{border:1px solid transparent;background:var(--color-white);color:var(--goa-color-interactive);text-decoration:underline}button.tertiary:hover{border-color:var(--color-gray-100);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--color-gray-100);background:var(--color-gray-100);color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);outline:none}.primary.danger{color:var(--color-white);background:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency)}.primary.danger:hover{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.primary.danger:focus,.primary.danger:active{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.secondary.danger{color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);background:var(--color-white)}.secondary.danger:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.secondary.danger:focus,.secondary.danger:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.danger{color:var(--goa-color-status-emergency);border-color:var(--color-gray-200);background:var(--color-white)}.tertiary.danger:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.danger:focus,.tertiary.danger:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}</style>`;
2203
+ border-color 0.2s ease-in-out}.text{padding-bottom:var(--font-valign-fix)}button:disabled{pointer-events:none;opacity:0.5}button.compact{height:var(--button-height-compact);font-size:var(--fs-base)}button.start{height:var(--button-height-tall);font-weight:var(--fw-bold)}button.start,button.primary{border:2px solid var(--goa-color-interactive);background:var(--goa-color-interactive);color:var(--goa-color-text-light)}button.start:hover,button.primary:hover{border-color:var(--goa-color-interactive--hover);background:var(--goa-color-interactive--hover)}button.start:focus,button.start:active,button.primary:focus,button.primary:active{box-shadow:0 0 0 3px var(--goa-color-interactive--focus);border-color:var(--goa-color-interactive--active);background:var(--goa-color-interactive--active);outline:none}button.secondary{border:2px solid var(--goa-color-interactive);background:var(--color-white);color:var(--goa-color-interactive)}button.secondary:hover{border-color:var(--goa-color-interactive--hover);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.secondary:focus,button.secondary:active{border-color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);background:var(--color-gray-100);outline:none}button.tertiary{border:1px solid transparent;background:transparent;color:var(--goa-color-interactive);text-decoration:underline}button.tertiary:hover{border-color:var(--color-gray-100);color:var(--goa-color-interactive--hover);background:var(--color-gray-100)}button.tertiary:focus,button.tertiary:active{border-color:var(--color-gray-100);background:var(--color-gray-100);color:var(--goa-color-interactive--active);box-shadow:0 0 0 3px var(--goa-color-interactive--focus);outline:none}.primary.danger{color:var(--color-white);background:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency)}.primary.danger:hover{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.primary.danger:focus,.primary.danger:active{background:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark)}.secondary.danger{color:var(--goa-color-status-emergency);border-color:var(--goa-color-status-emergency);background:var(--color-white)}.secondary.danger:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.secondary.danger:focus,.secondary.danger:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.danger{color:var(--goa-color-status-emergency);border-color:var(--color-gray-200);background:var(--color-white)}.tertiary.danger:hover{border-color:var(--goa-color-status-emergency-dark);color:var(--goa-color-status-emergency-dark);background:var(--color-white)}.tertiary.danger:focus,.tertiary.danger:active{color:var(--goa-color-status-emergency-dark);border-color:var(--goa-color-status-emergency-dark);background:var(--color-white)}</style>`;
2204
2204
  init(this, {
2205
2205
  target: this.shadowRoot,
2206
2206
  props: attribute_to_object(this.attributes),
@@ -2446,6 +2446,37 @@ class ButtonGroup extends SvelteElement {
2446
2446
  customElements.define("goa-button-group", ButtonGroup);
2447
2447
  /* libs/web-components/src/components/callout/Callout.svelte generated by Svelte v3.49.0 */
2448
2448
 
2449
+ function create_if_block$g(ctx) {
2450
+ let h3;
2451
+ let t;
2452
+ return {
2453
+ c() {
2454
+ h3 = element("h3");
2455
+ t = text(
2456
+ /*heading*/
2457
+ ctx[1]);
2458
+ },
2459
+
2460
+ m(target, anchor) {
2461
+ insert(target, h3, anchor);
2462
+ append(h3, t);
2463
+ },
2464
+
2465
+ p(ctx, dirty) {
2466
+ if (dirty &
2467
+ /*heading*/
2468
+ 2) set_data(t,
2469
+ /*heading*/
2470
+ ctx[1]);
2471
+ },
2472
+
2473
+ d(detaching) {
2474
+ if (detaching) detach(h3);
2475
+ }
2476
+
2477
+ };
2478
+ }
2479
+
2449
2480
  function create_fragment$z(ctx) {
2450
2481
  let div;
2451
2482
  let span0;
@@ -2454,10 +2485,11 @@ function create_fragment$z(ctx) {
2454
2485
  let span0_class_value;
2455
2486
  let t0;
2456
2487
  let span1;
2457
- let h3;
2458
2488
  let t1;
2459
- let t2;
2460
2489
  let slot;
2490
+ let if_block =
2491
+ /*heading*/
2492
+ ctx[1] && create_if_block$g(ctx);
2461
2493
  return {
2462
2494
  c() {
2463
2495
  div = element("div");
@@ -2465,11 +2497,8 @@ function create_fragment$z(ctx) {
2465
2497
  goa_icon = element("goa-icon");
2466
2498
  t0 = space();
2467
2499
  span1 = element("span");
2468
- h3 = element("h3");
2469
- t1 = text(
2470
- /*heading*/
2471
- ctx[1]);
2472
- t2 = space();
2500
+ if (if_block) if_block.c();
2501
+ t1 = space();
2473
2502
  slot = element("slot");
2474
2503
  this.c = noop;
2475
2504
  set_custom_element_data(goa_icon, "type",
@@ -2494,9 +2523,8 @@ function create_fragment$z(ctx) {
2494
2523
  append(span0, goa_icon);
2495
2524
  append(div, t0);
2496
2525
  append(div, span1);
2497
- append(span1, h3);
2498
- append(h3, t1);
2499
- append(span1, t2);
2526
+ if (if_block) if_block.m(span1, null);
2527
+ append(span1, t1);
2500
2528
  append(span1, slot);
2501
2529
  },
2502
2530
 
@@ -2525,11 +2553,20 @@ function create_fragment$z(ctx) {
2525
2553
  attr(span0, "class", span0_class_value);
2526
2554
  }
2527
2555
 
2528
- if (dirty &
2529
- /*heading*/
2530
- 2) set_data(t1,
2556
+ if (
2531
2557
  /*heading*/
2532
- ctx[1]);
2558
+ ctx[1]) {
2559
+ if (if_block) {
2560
+ if_block.p(ctx, dirty);
2561
+ } else {
2562
+ if_block = create_if_block$g(ctx);
2563
+ if_block.c();
2564
+ if_block.m(span1, t1);
2565
+ }
2566
+ } else if (if_block) {
2567
+ if_block.d(1);
2568
+ if_block = null;
2569
+ }
2533
2570
 
2534
2571
  if (dirty &
2535
2572
  /*testid*/
@@ -2545,6 +2582,7 @@ function create_fragment$z(ctx) {
2545
2582
 
2546
2583
  d(detaching) {
2547
2584
  if (detaching) detach(div);
2585
+ if (if_block) if_block.d();
2548
2586
  }
2549
2587
 
2550
2588
  };
@@ -8459,10 +8497,10 @@ function create_if_block$7(ctx) {
8459
8497
  function select_block_type(ctx, dirty) {
8460
8498
  if (
8461
8499
  /*fullscreen*/
8462
- ctx[4]) return 0;
8500
+ ctx[3]) return 0;
8463
8501
  if (
8464
8502
  /*inline*/
8465
- ctx[5]) return 1;
8503
+ ctx[4]) return 1;
8466
8504
  return -1;
8467
8505
  }
8468
8506
 
@@ -8540,39 +8578,35 @@ function create_if_block$7(ctx) {
8540
8578
  }
8541
8579
 
8542
8580
  };
8543
- } // (39:19)
8581
+ } // (38:19)
8544
8582
 
8545
8583
 
8546
8584
  function create_if_block_3$1(ctx) {
8547
8585
  let div;
8548
8586
  let goa_spinner;
8549
- let goa_spinner_progress_value;
8550
8587
  let t;
8551
8588
  let div_class_value;
8552
8589
  let if_block =
8553
8590
  /*message*/
8554
- ctx[1] && create_if_block_4(ctx);
8591
+ ctx[0] && create_if_block_4(ctx);
8555
8592
  return {
8556
8593
  c() {
8557
8594
  div = element("div");
8558
8595
  goa_spinner = element("goa-spinner");
8559
8596
  t = space();
8560
8597
  if (if_block) if_block.c();
8561
- set_custom_element_data(goa_spinner, "type",
8562
- /*type*/
8563
- ctx[0]);
8564
8598
  set_custom_element_data(goa_spinner, "size",
8565
8599
  /*spinnerSize*/
8566
- ctx[3]);
8567
- set_custom_element_data(goa_spinner, "progress", goa_spinner_progress_value =
8600
+ ctx[2]);
8601
+ set_custom_element_data(goa_spinner, "progress",
8568
8602
  /*progress*/
8569
- ctx[2] || 0);
8603
+ ctx[1]);
8570
8604
  attr(div, "class", div_class_value = "spinner-" +
8571
8605
  /*spinnerSize*/
8572
- ctx[3]);
8606
+ ctx[2]);
8573
8607
  toggle_class(div, "inline",
8574
8608
  /*inline*/
8575
- ctx[5]);
8609
+ ctx[4]);
8576
8610
  },
8577
8611
 
8578
8612
  m(target, anchor) {
@@ -8583,33 +8617,25 @@ function create_if_block_3$1(ctx) {
8583
8617
  },
8584
8618
 
8585
8619
  p(ctx, dirty) {
8586
- if (dirty &
8587
- /*type*/
8588
- 1) {
8589
- set_custom_element_data(goa_spinner, "type",
8590
- /*type*/
8591
- ctx[0]);
8592
- }
8593
-
8594
8620
  if (dirty &
8595
8621
  /*spinnerSize*/
8596
- 8) {
8622
+ 4) {
8597
8623
  set_custom_element_data(goa_spinner, "size",
8598
8624
  /*spinnerSize*/
8599
- ctx[3]);
8625
+ ctx[2]);
8600
8626
  }
8601
8627
 
8602
8628
  if (dirty &
8603
8629
  /*progress*/
8604
- 4 && goa_spinner_progress_value !== (goa_spinner_progress_value =
8605
- /*progress*/
8606
- ctx[2] || 0)) {
8607
- set_custom_element_data(goa_spinner, "progress", goa_spinner_progress_value);
8630
+ 2) {
8631
+ set_custom_element_data(goa_spinner, "progress",
8632
+ /*progress*/
8633
+ ctx[1]);
8608
8634
  }
8609
8635
 
8610
8636
  if (
8611
8637
  /*message*/
8612
- ctx[1]) {
8638
+ ctx[0]) {
8613
8639
  if (if_block) {
8614
8640
  if_block.p(ctx, dirty);
8615
8641
  } else {
@@ -8624,18 +8650,18 @@ function create_if_block_3$1(ctx) {
8624
8650
 
8625
8651
  if (dirty &
8626
8652
  /*spinnerSize*/
8627
- 8 && div_class_value !== (div_class_value = "spinner-" +
8653
+ 4 && div_class_value !== (div_class_value = "spinner-" +
8628
8654
  /*spinnerSize*/
8629
- ctx[3])) {
8655
+ ctx[2])) {
8630
8656
  attr(div, "class", div_class_value);
8631
8657
  }
8632
8658
 
8633
8659
  if (dirty &
8634
8660
  /*spinnerSize, inline*/
8635
- 40) {
8661
+ 20) {
8636
8662
  toggle_class(div, "inline",
8637
8663
  /*inline*/
8638
- ctx[5]);
8664
+ ctx[4]);
8639
8665
  }
8640
8666
  },
8641
8667
 
@@ -8648,13 +8674,12 @@ function create_if_block_3$1(ctx) {
8648
8674
  }
8649
8675
 
8650
8676
  };
8651
- } // (28:2) {#if fullscreen}
8677
+ } // (27:2) {#if fullscreen}
8652
8678
 
8653
8679
 
8654
8680
  function create_if_block_1$4(ctx) {
8655
8681
  let div;
8656
8682
  let goa_spinner;
8657
- let goa_spinner_progress_value;
8658
8683
  let t;
8659
8684
  let div_transition;
8660
8685
  let current;
@@ -8662,25 +8687,22 @@ function create_if_block_1$4(ctx) {
8662
8687
  let dispose;
8663
8688
  let if_block =
8664
8689
  /*message*/
8665
- ctx[1] && create_if_block_2$3(ctx);
8690
+ ctx[0] && create_if_block_2$3(ctx);
8666
8691
  return {
8667
8692
  c() {
8668
8693
  div = element("div");
8669
8694
  goa_spinner = element("goa-spinner");
8670
8695
  t = space();
8671
8696
  if (if_block) if_block.c();
8672
- set_custom_element_data(goa_spinner, "type",
8673
- /*type*/
8674
- ctx[0]);
8675
8697
  set_custom_element_data(goa_spinner, "size",
8676
8698
  /*spinnerSize*/
8677
- ctx[3]);
8678
- set_custom_element_data(goa_spinner, "progress", goa_spinner_progress_value =
8699
+ ctx[2]);
8700
+ set_custom_element_data(goa_spinner, "progress",
8679
8701
  /*progress*/
8680
- ctx[2] || 0);
8702
+ ctx[1]);
8681
8703
  toggle_class(div, "fullscreen",
8682
8704
  /*fullscreen*/
8683
- ctx[4]);
8705
+ ctx[3]);
8684
8706
  },
8685
8707
 
8686
8708
  m(target, anchor) {
@@ -8699,33 +8721,25 @@ function create_if_block_1$4(ctx) {
8699
8721
  },
8700
8722
 
8701
8723
  p(ctx, dirty) {
8702
- if (!current || dirty &
8703
- /*type*/
8704
- 1) {
8705
- set_custom_element_data(goa_spinner, "type",
8706
- /*type*/
8707
- ctx[0]);
8708
- }
8709
-
8710
8724
  if (!current || dirty &
8711
8725
  /*spinnerSize*/
8712
- 8) {
8726
+ 4) {
8713
8727
  set_custom_element_data(goa_spinner, "size",
8714
8728
  /*spinnerSize*/
8715
- ctx[3]);
8729
+ ctx[2]);
8716
8730
  }
8717
8731
 
8718
8732
  if (!current || dirty &
8719
8733
  /*progress*/
8720
- 4 && goa_spinner_progress_value !== (goa_spinner_progress_value =
8721
- /*progress*/
8722
- ctx[2] || 0)) {
8723
- set_custom_element_data(goa_spinner, "progress", goa_spinner_progress_value);
8734
+ 2) {
8735
+ set_custom_element_data(goa_spinner, "progress",
8736
+ /*progress*/
8737
+ ctx[1]);
8724
8738
  }
8725
8739
 
8726
8740
  if (
8727
8741
  /*message*/
8728
- ctx[1]) {
8742
+ ctx[0]) {
8729
8743
  if (if_block) {
8730
8744
  if_block.p(ctx, dirty);
8731
8745
  } else {
@@ -8740,10 +8754,10 @@ function create_if_block_1$4(ctx) {
8740
8754
 
8741
8755
  if (dirty &
8742
8756
  /*fullscreen*/
8743
- 16) {
8757
+ 8) {
8744
8758
  toggle_class(div, "fullscreen",
8745
8759
  /*fullscreen*/
8746
- ctx[4]);
8760
+ ctx[3]);
8747
8761
  }
8748
8762
  },
8749
8763
 
@@ -8775,7 +8789,7 @@ function create_if_block_1$4(ctx) {
8775
8789
  }
8776
8790
 
8777
8791
  };
8778
- } // (42:6) {#if message}
8792
+ } // (41:6) {#if message}
8779
8793
 
8780
8794
 
8781
8795
  function create_if_block_4(ctx) {
@@ -8786,7 +8800,7 @@ function create_if_block_4(ctx) {
8786
8800
  div = element("div");
8787
8801
  t = text(
8788
8802
  /*message*/
8789
- ctx[1]);
8803
+ ctx[0]);
8790
8804
  attr(div, "class", "message");
8791
8805
  },
8792
8806
 
@@ -8798,9 +8812,9 @@ function create_if_block_4(ctx) {
8798
8812
  p(ctx, dirty) {
8799
8813
  if (dirty &
8800
8814
  /*message*/
8801
- 2) set_data(t,
8815
+ 1) set_data(t,
8802
8816
  /*message*/
8803
- ctx[1]);
8817
+ ctx[0]);
8804
8818
  },
8805
8819
 
8806
8820
  d(detaching) {
@@ -8808,7 +8822,7 @@ function create_if_block_4(ctx) {
8808
8822
  }
8809
8823
 
8810
8824
  };
8811
- } // (35:6) {#if message}
8825
+ } // (34:6) {#if message}
8812
8826
 
8813
8827
 
8814
8828
  function create_if_block_2$3(ctx) {
@@ -8819,7 +8833,7 @@ function create_if_block_2$3(ctx) {
8819
8833
  div = element("div");
8820
8834
  t = text(
8821
8835
  /*message*/
8822
- ctx[1]);
8836
+ ctx[0]);
8823
8837
  attr(div, "class", "message");
8824
8838
  },
8825
8839
 
@@ -8831,9 +8845,9 @@ function create_if_block_2$3(ctx) {
8831
8845
  p(ctx, dirty) {
8832
8846
  if (dirty &
8833
8847
  /*message*/
8834
- 2) set_data(t,
8848
+ 1) set_data(t,
8835
8849
  /*message*/
8836
- ctx[1]);
8850
+ ctx[0]);
8837
8851
  },
8838
8852
 
8839
8853
  d(detaching) {
@@ -8848,7 +8862,7 @@ function create_fragment$f(ctx) {
8848
8862
  let current;
8849
8863
  let if_block =
8850
8864
  /*isVisible*/
8851
- ctx[6] && create_if_block$7(ctx);
8865
+ ctx[5] && create_if_block$7(ctx);
8852
8866
  return {
8853
8867
  c() {
8854
8868
  if (if_block) if_block.c();
@@ -8865,13 +8879,13 @@ function create_fragment$f(ctx) {
8865
8879
  p(ctx, [dirty]) {
8866
8880
  if (
8867
8881
  /*isVisible*/
8868
- ctx[6]) {
8882
+ ctx[5]) {
8869
8883
  if (if_block) {
8870
8884
  if_block.p(ctx, dirty);
8871
8885
 
8872
8886
  if (dirty &
8873
8887
  /*isVisible*/
8874
- 64) {
8888
+ 32) {
8875
8889
  transition_in(if_block, 1);
8876
8890
  }
8877
8891
  } else {
@@ -8910,9 +8924,6 @@ function create_fragment$f(ctx) {
8910
8924
 
8911
8925
  function instance$e($$self, $$props, $$invalidate) {
8912
8926
  let isVisible;
8913
- let {
8914
- type = "infinite"
8915
- } = $$props;
8916
8927
  let {
8917
8928
  variant = "inline"
8918
8929
  } = $$props;
@@ -8923,7 +8934,7 @@ function instance$e($$self, $$props, $$invalidate) {
8923
8934
  message = ""
8924
8935
  } = $$props;
8925
8936
  let {
8926
- progress = 0
8937
+ progress = -1
8927
8938
  } = $$props;
8928
8939
  let {
8929
8940
  visible = "false"
@@ -8932,29 +8943,28 @@ function instance$e($$self, $$props, $$invalidate) {
8932
8943
  let fullscreen;
8933
8944
  let inline;
8934
8945
  onMount(async () => {
8935
- $$invalidate(3, spinnerSize = size === "small" ? "large" : "xlarge");
8936
- $$invalidate(4, fullscreen = variant === "fullscreen");
8937
- $$invalidate(5, inline = variant === "inline");
8946
+ $$invalidate(2, spinnerSize = size === "small" ? "large" : "xlarge");
8947
+ $$invalidate(3, fullscreen = variant === "fullscreen");
8948
+ $$invalidate(4, inline = variant === "inline");
8938
8949
  });
8939
8950
 
8940
8951
  $$self.$$set = $$props => {
8941
- if ('type' in $$props) $$invalidate(0, type = $$props.type);
8942
- if ('variant' in $$props) $$invalidate(7, variant = $$props.variant);
8943
- if ('size' in $$props) $$invalidate(8, size = $$props.size);
8944
- if ('message' in $$props) $$invalidate(1, message = $$props.message);
8945
- if ('progress' in $$props) $$invalidate(2, progress = $$props.progress);
8946
- if ('visible' in $$props) $$invalidate(9, visible = $$props.visible);
8952
+ if ('variant' in $$props) $$invalidate(6, variant = $$props.variant);
8953
+ if ('size' in $$props) $$invalidate(7, size = $$props.size);
8954
+ if ('message' in $$props) $$invalidate(0, message = $$props.message);
8955
+ if ('progress' in $$props) $$invalidate(1, progress = $$props.progress);
8956
+ if ('visible' in $$props) $$invalidate(8, visible = $$props.visible);
8947
8957
  };
8948
8958
 
8949
8959
  $$self.$$.update = () => {
8950
8960
  if ($$self.$$.dirty &
8951
8961
  /*visible*/
8952
- 512) {
8953
- $$invalidate(6, isVisible = toBoolean(visible));
8962
+ 256) {
8963
+ $$invalidate(5, isVisible = toBoolean(visible));
8954
8964
  }
8955
8965
  };
8956
8966
 
8957
- return [type, message, progress, spinnerSize, fullscreen, inline, isVisible, variant, size, visible];
8967
+ return [message, progress, spinnerSize, fullscreen, inline, isVisible, variant, size, visible];
8958
8968
  }
8959
8969
 
8960
8970
  class CircularProgress extends SvelteElement {
@@ -8966,12 +8976,11 @@ class CircularProgress extends SvelteElement {
8966
8976
  props: attribute_to_object(this.attributes),
8967
8977
  customElement: true
8968
8978
  }, instance$e, create_fragment$f, safe_not_equal, {
8969
- type: 0,
8970
- variant: 7,
8971
- size: 8,
8972
- message: 1,
8973
- progress: 2,
8974
- visible: 9
8979
+ variant: 6,
8980
+ size: 7,
8981
+ message: 0,
8982
+ progress: 1,
8983
+ visible: 8
8975
8984
  }, null);
8976
8985
 
8977
8986
  if (options) {
@@ -8987,22 +8996,11 @@ class CircularProgress extends SvelteElement {
8987
8996
  }
8988
8997
 
8989
8998
  static get observedAttributes() {
8990
- return ["type", "variant", "size", "message", "progress", "visible"];
8991
- }
8992
-
8993
- get type() {
8994
- return this.$$.ctx[0];
8995
- }
8996
-
8997
- set type(type) {
8998
- this.$$set({
8999
- type
9000
- });
9001
- flush();
8999
+ return ["variant", "size", "message", "progress", "visible"];
9002
9000
  }
9003
9001
 
9004
9002
  get variant() {
9005
- return this.$$.ctx[7];
9003
+ return this.$$.ctx[6];
9006
9004
  }
9007
9005
 
9008
9006
  set variant(variant) {
@@ -9013,7 +9011,7 @@ class CircularProgress extends SvelteElement {
9013
9011
  }
9014
9012
 
9015
9013
  get size() {
9016
- return this.$$.ctx[8];
9014
+ return this.$$.ctx[7];
9017
9015
  }
9018
9016
 
9019
9017
  set size(size) {
@@ -9024,7 +9022,7 @@ class CircularProgress extends SvelteElement {
9024
9022
  }
9025
9023
 
9026
9024
  get message() {
9027
- return this.$$.ctx[1];
9025
+ return this.$$.ctx[0];
9028
9026
  }
9029
9027
 
9030
9028
  set message(message) {
@@ -9035,7 +9033,7 @@ class CircularProgress extends SvelteElement {
9035
9033
  }
9036
9034
 
9037
9035
  get progress() {
9038
- return this.$$.ctx[2];
9036
+ return this.$$.ctx[1];
9039
9037
  }
9040
9038
 
9041
9039
  set progress(progress) {
@@ -9046,7 +9044,7 @@ class CircularProgress extends SvelteElement {
9046
9044
  }
9047
9045
 
9048
9046
  get visible() {
9049
- return this.$$.ctx[9];
9047
+ return this.$$.ctx[8];
9050
9048
  }
9051
9049
 
9052
9050
  set visible(visible) {
@@ -9838,7 +9836,7 @@ function create_if_block_3(ctx) {
9838
9836
  }
9839
9837
 
9840
9838
  };
9841
- } // (42:2) {#if ["alpha", "beta"].includes(level)}
9839
+ } // (34:2) {#if ["alpha", "beta"].includes(level)}
9842
9840
 
9843
9841
 
9844
9842
  function create_if_block_1$3(ctx) {
@@ -9865,7 +9863,7 @@ function create_if_block_1$3(ctx) {
9865
9863
  t2 = text("This is a new ");
9866
9864
  a = element("a");
9867
9865
  a.textContent = "Alberta Government";
9868
- t4 = text("\n service\n ");
9866
+ t4 = text(" service\n ");
9869
9867
  if (if_block) if_block.c();
9870
9868
  attr(div0, "data-testid", "level");
9871
9869
  attr(div0, "class", div0_class_value = "service-level service-level--" +
@@ -9926,7 +9924,7 @@ function create_if_block_1$3(ctx) {
9926
9924
  }
9927
9925
 
9928
9926
  };
9929
- } // (52:6) {#if feedbackurl}
9927
+ } // (43:6) {#if feedbackurl}
9930
9928
 
9931
9929
 
9932
9930
  function create_if_block_2$2(ctx) {
@@ -9968,7 +9966,7 @@ function create_if_block_2$2(ctx) {
9968
9966
  }
9969
9967
 
9970
9968
  };
9971
- } // (60:2) {#if version}
9969
+ } // (49:2) {#if version}
9972
9970
 
9973
9971
 
9974
9972
  function create_if_block$6(ctx) {
@@ -10136,7 +10134,7 @@ function instance$a($$self, $$props, $$invalidate) {
10136
10134
  class MicrositeHeader extends SvelteElement {
10137
10135
  constructor(options) {
10138
10136
  super();
10139
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}a{color:var(--goa-color-interactive);cursor:pointer}a:hover{color:var(--goa-color-interactive--hover)}a:focus{outline-width:thin;outline-style:solid;outline-color:var(--goa-color-interactive--hover);outline-offset:0px}.goa-official-site-header{display:flex;font-size:var(--fs-xs);background-color:var(--color-gray-100);align-items:center;justify-content:space-between;height:2.5rem;padding:0 0.5rem;gap:0.5rem}.spacer{flex:1 1 auto}.version{color:var(--goa-color-600)}.service-level{font-weight:bold;padding:0 0.5rem;height:1.5rem;display:flex;align-items:center}.service-level--alpha{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.service-level--beta{background-color:var(--goa-color-brand);color:var(--goa-color-text-light)}.service-level--live{padding:0}.site-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--goa-color-text)}</style>`;
10137
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}a{color:var(--goa-color-interactive);cursor:pointer}a:hover{color:var(--goa-color-interactive--hover)}a:focus{outline-width:thin;outline-style:solid;outline-color:var(--goa-color-interactive--hover);outline-offset:0px}.goa-official-site-header{display:flex;font-size:var(--fs-sm);background-color:var(--color-gray-100);align-items:center;justify-content:space-between;padding:0.5rem 1.5rem}@media(max-width: 640px){.goa-official-site-header{padding:0.5rem 1rem;align-items:start}}.spacer{flex:1 1 auto}.version{color:var(--goa-color-text-secondary);padding-left:1rem;line-height:1.25rem}.service-level{font-weight:bold;padding:0.25rem;display:flex;margin-right:1rem;line-height:initial}.service-level--alpha{background-color:var(--goa-color-status-warning);color:var(--goa-color-text)}.service-level--beta{background-color:var(--goa-color-brand);color:var(--goa-color-text-light)}.service-level--live{padding:0}.site-text{color:var(--goa-color-text);line-height:1.25rem}</style>`;
10140
10138
  init(this, {
10141
10139
  target: this.shadowRoot,
10142
10140
  props: attribute_to_object(this.attributes),
@@ -11008,7 +11006,7 @@ function create_if_block$4(ctx) {
11008
11006
  attr(path, "stroke-linecap", "round");
11009
11007
  attr(svg, "class", svg_class_value = `spinner-${
11010
11008
  /*type*/
11011
- ctx[1]}`);
11009
+ ctx[2]}`);
11012
11010
  attr(svg, "fill", "none");
11013
11011
  attr(svg, "viewBox", svg_viewBox_value = "0 0 " +
11014
11012
  /*diameter*/
@@ -11023,7 +11021,7 @@ function create_if_block$4(ctx) {
11023
11021
  ctx[5]);
11024
11022
  attr(svg, "data-testid",
11025
11023
  /*testid*/
11026
- ctx[2]);
11024
+ ctx[1]);
11027
11025
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
11028
11026
  },
11029
11027
 
@@ -11104,9 +11102,9 @@ function create_if_block$4(ctx) {
11104
11102
 
11105
11103
  if (dirty &
11106
11104
  /*type*/
11107
- 2 && svg_class_value !== (svg_class_value = `spinner-${
11105
+ 4 && svg_class_value !== (svg_class_value = `spinner-${
11108
11106
  /*type*/
11109
- ctx[1]}`)) {
11107
+ ctx[2]}`)) {
11110
11108
  attr(svg, "class", svg_class_value);
11111
11109
  }
11112
11110
 
@@ -11138,10 +11136,10 @@ function create_if_block$4(ctx) {
11138
11136
 
11139
11137
  if (dirty &
11140
11138
  /*testid*/
11141
- 4) {
11139
+ 2) {
11142
11140
  attr(svg, "data-testid",
11143
11141
  /*testid*/
11144
- ctx[2]);
11142
+ ctx[1]);
11145
11143
  }
11146
11144
  },
11147
11145
 
@@ -11211,14 +11209,12 @@ function instance$8($$self, $$props, $$invalidate) {
11211
11209
  invert = false
11212
11210
  } = $$props;
11213
11211
  let {
11214
- type = "infinite"
11215
- } = $$props;
11216
- let {
11217
- progress = "0"
11212
+ progress = -1
11218
11213
  } = $$props;
11219
11214
  let {
11220
11215
  testid = ""
11221
11216
  } = $$props;
11217
+ let type = "infinite";
11222
11218
 
11223
11219
  const _progress = tweened(0, {
11224
11220
  duration: 500,
@@ -11255,9 +11251,8 @@ function instance$8($$self, $$props, $$invalidate) {
11255
11251
  $$self.$$set = $$props => {
11256
11252
  if ('size' in $$props) $$invalidate(10, size = $$props.size);
11257
11253
  if ('invert' in $$props) $$invalidate(0, invert = $$props.invert);
11258
- if ('type' in $$props) $$invalidate(1, type = $$props.type);
11259
11254
  if ('progress' in $$props) $$invalidate(11, progress = $$props.progress);
11260
- if ('testid' in $$props) $$invalidate(2, testid = $$props.testid);
11255
+ if ('testid' in $$props) $$invalidate(1, testid = $$props.testid);
11261
11256
  };
11262
11257
 
11263
11258
  $$self.$$.update = () => {
@@ -11266,7 +11261,16 @@ function instance$8($$self, $$props, $$invalidate) {
11266
11261
  2048) {
11267
11262
  // Reactive
11268
11263
  {
11269
- _progress.set(parseFloat(progress));
11264
+ // Typescript recognizes `progress` as a number, but once compiled, due to it being a web component, progress is a string.
11265
+ // This line makes both sides happy.
11266
+ const p = parseFloat(progress + '');
11267
+
11268
+ if (p >= 0) {
11269
+ _progress.set(p || 1); // start at 1 to prevent incorrect arc calculations
11270
+
11271
+
11272
+ $$invalidate(2, type = "progress");
11273
+ }
11270
11274
  }
11271
11275
  }
11272
11276
 
@@ -11306,12 +11310,12 @@ function instance$8($$self, $$props, $$invalidate) {
11306
11310
 
11307
11311
  if ($$self.$$.dirty &
11308
11312
  /*type, pathRadius, progress*/
11309
- 6146) {
11313
+ 6148) {
11310
11314
  $$invalidate(6, ready = type === "infinite" ? pathRadius : pathRadius && progress);
11311
11315
  }
11312
11316
  };
11313
11317
 
11314
- return [invert, type, testid, radius, strokewidth, diameter, ready, $_progress, _progress, getArc, size, progress, pathRadius];
11318
+ return [invert, testid, type, radius, strokewidth, diameter, ready, $_progress, _progress, getArc, size, progress, pathRadius];
11315
11319
  }
11316
11320
 
11317
11321
  class Spinner extends SvelteElement {
@@ -11325,9 +11329,8 @@ class Spinner extends SvelteElement {
11325
11329
  }, instance$8, create_fragment$9, safe_not_equal, {
11326
11330
  size: 10,
11327
11331
  invert: 0,
11328
- type: 1,
11329
11332
  progress: 11,
11330
- testid: 2
11333
+ testid: 1
11331
11334
  }, null);
11332
11335
 
11333
11336
  if (options) {
@@ -11343,7 +11346,7 @@ class Spinner extends SvelteElement {
11343
11346
  }
11344
11347
 
11345
11348
  static get observedAttributes() {
11346
- return ["size", "invert", "type", "progress", "testid"];
11349
+ return ["size", "invert", "progress", "testid"];
11347
11350
  }
11348
11351
 
11349
11352
  get size() {
@@ -11368,17 +11371,6 @@ class Spinner extends SvelteElement {
11368
11371
  flush();
11369
11372
  }
11370
11373
 
11371
- get type() {
11372
- return this.$$.ctx[1];
11373
- }
11374
-
11375
- set type(type) {
11376
- this.$$set({
11377
- type
11378
- });
11379
- flush();
11380
- }
11381
-
11382
11374
  get progress() {
11383
11375
  return this.$$.ctx[11];
11384
11376
  }
@@ -11391,7 +11383,7 @@ class Spinner extends SvelteElement {
11391
11383
  }
11392
11384
 
11393
11385
  get testid() {
11394
- return this.$$.ctx[2];
11386
+ return this.$$.ctx[1];
11395
11387
  }
11396
11388
 
11397
11389
  set testid(testid) {
@@ -11987,7 +11979,9 @@ function create_fragment$7(ctx) {
11987
11979
  return {
11988
11980
  c() {
11989
11981
  div = element("div");
11990
- div.innerHTML = `<slot></slot>`;
11982
+ div.innerHTML = `<slot></slot>
11983
+
11984
+ <span tabindex="0"></span>`;
11991
11985
  this.c = noop;
11992
11986
  },
11993
11987
 
@@ -13956,7 +13950,6 @@ const GoAChip = ({
13956
13950
  };
13957
13951
 
13958
13952
  const GoACircularProgress = ({
13959
- type,
13960
13953
  visible,
13961
13954
  message,
13962
13955
  progress,
@@ -13964,7 +13957,6 @@ const GoACircularProgress = ({
13964
13957
  size
13965
13958
  }) => {
13966
13959
  return jsx("goa-circular-progress", {
13967
- type: type,
13968
13960
  visible: visible ? "true" : "false",
13969
13961
  message: message,
13970
13962
  progress: progress,