@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.
@@ -1253,7 +1253,7 @@
1253
1253
  } // (12:2) {#if url}
1254
1254
 
1255
1255
 
1256
- function create_if_block$i(ctx) {
1256
+ function create_if_block$j(ctx) {
1257
1257
  let a;
1258
1258
  let img0;
1259
1259
  let img0_src_value;
@@ -1328,7 +1328,7 @@
1328
1328
  function select_block_type(ctx, dirty) {
1329
1329
  if (
1330
1330
  /*url*/
1331
- ctx[1]) return create_if_block$i;
1331
+ ctx[1]) return create_if_block$j;
1332
1332
  return create_else_block$4;
1333
1333
  }
1334
1334
 
@@ -1411,7 +1411,7 @@
1411
1411
  class AppHeader extends SvelteElement {
1412
1412
  constructor(options) {
1413
1413
  super();
1414
- 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>`;
1414
+ 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>`;
1415
1415
  init(this, {
1416
1416
  target: this.shadowRoot,
1417
1417
  props: attribute_to_object(this.attributes),
@@ -1545,7 +1545,7 @@
1545
1545
  } // (46:2) {#if content}
1546
1546
 
1547
1547
 
1548
- function create_if_block$h(ctx) {
1548
+ function create_if_block$i(ctx) {
1549
1549
  let div;
1550
1550
  let t;
1551
1551
  return {
@@ -1593,7 +1593,7 @@
1593
1593
  let if_block0 = current_block_type(ctx);
1594
1594
  let if_block1 =
1595
1595
  /*content*/
1596
- ctx[2] && create_if_block$h(ctx);
1596
+ ctx[2] && create_if_block$i(ctx);
1597
1597
  return {
1598
1598
  c() {
1599
1599
  div = element("div");
@@ -1641,7 +1641,7 @@
1641
1641
  if (if_block1) {
1642
1642
  if_block1.p(ctx, dirty);
1643
1643
  } else {
1644
- if_block1 = create_if_block$h(ctx);
1644
+ if_block1 = create_if_block$i(ctx);
1645
1645
  if_block1.c();
1646
1646
  if_block1.m(div, null);
1647
1647
  }
@@ -1901,7 +1901,7 @@
1901
1901
  } // (55:2) {#if type === "start"}
1902
1902
 
1903
1903
 
1904
- function create_if_block$g(ctx) {
1904
+ function create_if_block$h(ctx) {
1905
1905
  let div;
1906
1906
  let t;
1907
1907
  let goa_icon;
@@ -2031,7 +2031,7 @@
2031
2031
  function select_block_type(ctx, dirty) {
2032
2032
  if (
2033
2033
  /*type*/
2034
- ctx[0] === "start") return create_if_block$g;
2034
+ ctx[0] === "start") return create_if_block$h;
2035
2035
  return create_else_block$2;
2036
2036
  }
2037
2037
 
@@ -2256,7 +2256,7 @@
2256
2256
  constructor(options) {
2257
2257
  super();
2258
2258
  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,
2259
- 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>`;
2259
+ 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>`;
2260
2260
  init(this, {
2261
2261
  target: this.shadowRoot,
2262
2262
  props: attribute_to_object(this.attributes),
@@ -2502,6 +2502,37 @@
2502
2502
  customElements.define("goa-button-group", ButtonGroup);
2503
2503
  /* libs/web-components/src/components/callout/Callout.svelte generated by Svelte v3.49.0 */
2504
2504
 
2505
+ function create_if_block$g(ctx) {
2506
+ let h3;
2507
+ let t;
2508
+ return {
2509
+ c() {
2510
+ h3 = element("h3");
2511
+ t = text(
2512
+ /*heading*/
2513
+ ctx[1]);
2514
+ },
2515
+
2516
+ m(target, anchor) {
2517
+ insert(target, h3, anchor);
2518
+ append(h3, t);
2519
+ },
2520
+
2521
+ p(ctx, dirty) {
2522
+ if (dirty &
2523
+ /*heading*/
2524
+ 2) set_data(t,
2525
+ /*heading*/
2526
+ ctx[1]);
2527
+ },
2528
+
2529
+ d(detaching) {
2530
+ if (detaching) detach(h3);
2531
+ }
2532
+
2533
+ };
2534
+ }
2535
+
2505
2536
  function create_fragment$z(ctx) {
2506
2537
  let div;
2507
2538
  let span0;
@@ -2510,10 +2541,11 @@
2510
2541
  let span0_class_value;
2511
2542
  let t0;
2512
2543
  let span1;
2513
- let h3;
2514
2544
  let t1;
2515
- let t2;
2516
2545
  let slot;
2546
+ let if_block =
2547
+ /*heading*/
2548
+ ctx[1] && create_if_block$g(ctx);
2517
2549
  return {
2518
2550
  c() {
2519
2551
  div = element("div");
@@ -2521,11 +2553,8 @@
2521
2553
  goa_icon = element("goa-icon");
2522
2554
  t0 = space();
2523
2555
  span1 = element("span");
2524
- h3 = element("h3");
2525
- t1 = text(
2526
- /*heading*/
2527
- ctx[1]);
2528
- t2 = space();
2556
+ if (if_block) if_block.c();
2557
+ t1 = space();
2529
2558
  slot = element("slot");
2530
2559
  this.c = noop;
2531
2560
  set_custom_element_data(goa_icon, "type",
@@ -2550,9 +2579,8 @@
2550
2579
  append(span0, goa_icon);
2551
2580
  append(div, t0);
2552
2581
  append(div, span1);
2553
- append(span1, h3);
2554
- append(h3, t1);
2555
- append(span1, t2);
2582
+ if (if_block) if_block.m(span1, null);
2583
+ append(span1, t1);
2556
2584
  append(span1, slot);
2557
2585
  },
2558
2586
 
@@ -2581,11 +2609,20 @@
2581
2609
  attr(span0, "class", span0_class_value);
2582
2610
  }
2583
2611
 
2584
- if (dirty &
2585
- /*heading*/
2586
- 2) set_data(t1,
2612
+ if (
2587
2613
  /*heading*/
2588
- ctx[1]);
2614
+ ctx[1]) {
2615
+ if (if_block) {
2616
+ if_block.p(ctx, dirty);
2617
+ } else {
2618
+ if_block = create_if_block$g(ctx);
2619
+ if_block.c();
2620
+ if_block.m(span1, t1);
2621
+ }
2622
+ } else if (if_block) {
2623
+ if_block.d(1);
2624
+ if_block = null;
2625
+ }
2589
2626
 
2590
2627
  if (dirty &
2591
2628
  /*testid*/
@@ -2601,6 +2638,7 @@
2601
2638
 
2602
2639
  d(detaching) {
2603
2640
  if (detaching) detach(div);
2641
+ if (if_block) if_block.d();
2604
2642
  }
2605
2643
 
2606
2644
  };
@@ -8502,10 +8540,10 @@
8502
8540
  function select_block_type(ctx, dirty) {
8503
8541
  if (
8504
8542
  /*fullscreen*/
8505
- ctx[4]) return 0;
8543
+ ctx[3]) return 0;
8506
8544
  if (
8507
8545
  /*inline*/
8508
- ctx[5]) return 1;
8546
+ ctx[4]) return 1;
8509
8547
  return -1;
8510
8548
  }
8511
8549
 
@@ -8583,39 +8621,35 @@
8583
8621
  }
8584
8622
 
8585
8623
  };
8586
- } // (39:19)
8624
+ } // (38:19)
8587
8625
 
8588
8626
 
8589
8627
  function create_if_block_3$1(ctx) {
8590
8628
  let div;
8591
8629
  let goa_spinner;
8592
- let goa_spinner_progress_value;
8593
8630
  let t;
8594
8631
  let div_class_value;
8595
8632
  let if_block =
8596
8633
  /*message*/
8597
- ctx[1] && create_if_block_4(ctx);
8634
+ ctx[0] && create_if_block_4(ctx);
8598
8635
  return {
8599
8636
  c() {
8600
8637
  div = element("div");
8601
8638
  goa_spinner = element("goa-spinner");
8602
8639
  t = space();
8603
8640
  if (if_block) if_block.c();
8604
- set_custom_element_data(goa_spinner, "type",
8605
- /*type*/
8606
- ctx[0]);
8607
8641
  set_custom_element_data(goa_spinner, "size",
8608
8642
  /*spinnerSize*/
8609
- ctx[3]);
8610
- set_custom_element_data(goa_spinner, "progress", goa_spinner_progress_value =
8643
+ ctx[2]);
8644
+ set_custom_element_data(goa_spinner, "progress",
8611
8645
  /*progress*/
8612
- ctx[2] || 0);
8646
+ ctx[1]);
8613
8647
  attr(div, "class", div_class_value = "spinner-" +
8614
8648
  /*spinnerSize*/
8615
- ctx[3]);
8649
+ ctx[2]);
8616
8650
  toggle_class(div, "inline",
8617
8651
  /*inline*/
8618
- ctx[5]);
8652
+ ctx[4]);
8619
8653
  },
8620
8654
 
8621
8655
  m(target, anchor) {
@@ -8626,33 +8660,25 @@
8626
8660
  },
8627
8661
 
8628
8662
  p(ctx, dirty) {
8629
- if (dirty &
8630
- /*type*/
8631
- 1) {
8632
- set_custom_element_data(goa_spinner, "type",
8633
- /*type*/
8634
- ctx[0]);
8635
- }
8636
-
8637
8663
  if (dirty &
8638
8664
  /*spinnerSize*/
8639
- 8) {
8665
+ 4) {
8640
8666
  set_custom_element_data(goa_spinner, "size",
8641
8667
  /*spinnerSize*/
8642
- ctx[3]);
8668
+ ctx[2]);
8643
8669
  }
8644
8670
 
8645
8671
  if (dirty &
8646
8672
  /*progress*/
8647
- 4 && goa_spinner_progress_value !== (goa_spinner_progress_value =
8648
- /*progress*/
8649
- ctx[2] || 0)) {
8650
- set_custom_element_data(goa_spinner, "progress", goa_spinner_progress_value);
8673
+ 2) {
8674
+ set_custom_element_data(goa_spinner, "progress",
8675
+ /*progress*/
8676
+ ctx[1]);
8651
8677
  }
8652
8678
 
8653
8679
  if (
8654
8680
  /*message*/
8655
- ctx[1]) {
8681
+ ctx[0]) {
8656
8682
  if (if_block) {
8657
8683
  if_block.p(ctx, dirty);
8658
8684
  } else {
@@ -8667,18 +8693,18 @@
8667
8693
 
8668
8694
  if (dirty &
8669
8695
  /*spinnerSize*/
8670
- 8 && div_class_value !== (div_class_value = "spinner-" +
8696
+ 4 && div_class_value !== (div_class_value = "spinner-" +
8671
8697
  /*spinnerSize*/
8672
- ctx[3])) {
8698
+ ctx[2])) {
8673
8699
  attr(div, "class", div_class_value);
8674
8700
  }
8675
8701
 
8676
8702
  if (dirty &
8677
8703
  /*spinnerSize, inline*/
8678
- 40) {
8704
+ 20) {
8679
8705
  toggle_class(div, "inline",
8680
8706
  /*inline*/
8681
- ctx[5]);
8707
+ ctx[4]);
8682
8708
  }
8683
8709
  },
8684
8710
 
@@ -8691,13 +8717,12 @@
8691
8717
  }
8692
8718
 
8693
8719
  };
8694
- } // (28:2) {#if fullscreen}
8720
+ } // (27:2) {#if fullscreen}
8695
8721
 
8696
8722
 
8697
8723
  function create_if_block_1$4(ctx) {
8698
8724
  let div;
8699
8725
  let goa_spinner;
8700
- let goa_spinner_progress_value;
8701
8726
  let t;
8702
8727
  let div_transition;
8703
8728
  let current;
@@ -8705,25 +8730,22 @@
8705
8730
  let dispose;
8706
8731
  let if_block =
8707
8732
  /*message*/
8708
- ctx[1] && create_if_block_2$3(ctx);
8733
+ ctx[0] && create_if_block_2$3(ctx);
8709
8734
  return {
8710
8735
  c() {
8711
8736
  div = element("div");
8712
8737
  goa_spinner = element("goa-spinner");
8713
8738
  t = space();
8714
8739
  if (if_block) if_block.c();
8715
- set_custom_element_data(goa_spinner, "type",
8716
- /*type*/
8717
- ctx[0]);
8718
8740
  set_custom_element_data(goa_spinner, "size",
8719
8741
  /*spinnerSize*/
8720
- ctx[3]);
8721
- set_custom_element_data(goa_spinner, "progress", goa_spinner_progress_value =
8742
+ ctx[2]);
8743
+ set_custom_element_data(goa_spinner, "progress",
8722
8744
  /*progress*/
8723
- ctx[2] || 0);
8745
+ ctx[1]);
8724
8746
  toggle_class(div, "fullscreen",
8725
8747
  /*fullscreen*/
8726
- ctx[4]);
8748
+ ctx[3]);
8727
8749
  },
8728
8750
 
8729
8751
  m(target, anchor) {
@@ -8742,33 +8764,25 @@
8742
8764
  },
8743
8765
 
8744
8766
  p(ctx, dirty) {
8745
- if (!current || dirty &
8746
- /*type*/
8747
- 1) {
8748
- set_custom_element_data(goa_spinner, "type",
8749
- /*type*/
8750
- ctx[0]);
8751
- }
8752
-
8753
8767
  if (!current || dirty &
8754
8768
  /*spinnerSize*/
8755
- 8) {
8769
+ 4) {
8756
8770
  set_custom_element_data(goa_spinner, "size",
8757
8771
  /*spinnerSize*/
8758
- ctx[3]);
8772
+ ctx[2]);
8759
8773
  }
8760
8774
 
8761
8775
  if (!current || dirty &
8762
8776
  /*progress*/
8763
- 4 && goa_spinner_progress_value !== (goa_spinner_progress_value =
8764
- /*progress*/
8765
- ctx[2] || 0)) {
8766
- set_custom_element_data(goa_spinner, "progress", goa_spinner_progress_value);
8777
+ 2) {
8778
+ set_custom_element_data(goa_spinner, "progress",
8779
+ /*progress*/
8780
+ ctx[1]);
8767
8781
  }
8768
8782
 
8769
8783
  if (
8770
8784
  /*message*/
8771
- ctx[1]) {
8785
+ ctx[0]) {
8772
8786
  if (if_block) {
8773
8787
  if_block.p(ctx, dirty);
8774
8788
  } else {
@@ -8783,10 +8797,10 @@
8783
8797
 
8784
8798
  if (dirty &
8785
8799
  /*fullscreen*/
8786
- 16) {
8800
+ 8) {
8787
8801
  toggle_class(div, "fullscreen",
8788
8802
  /*fullscreen*/
8789
- ctx[4]);
8803
+ ctx[3]);
8790
8804
  }
8791
8805
  },
8792
8806
 
@@ -8818,7 +8832,7 @@
8818
8832
  }
8819
8833
 
8820
8834
  };
8821
- } // (42:6) {#if message}
8835
+ } // (41:6) {#if message}
8822
8836
 
8823
8837
 
8824
8838
  function create_if_block_4(ctx) {
@@ -8829,7 +8843,7 @@
8829
8843
  div = element("div");
8830
8844
  t = text(
8831
8845
  /*message*/
8832
- ctx[1]);
8846
+ ctx[0]);
8833
8847
  attr(div, "class", "message");
8834
8848
  },
8835
8849
 
@@ -8841,9 +8855,9 @@
8841
8855
  p(ctx, dirty) {
8842
8856
  if (dirty &
8843
8857
  /*message*/
8844
- 2) set_data(t,
8858
+ 1) set_data(t,
8845
8859
  /*message*/
8846
- ctx[1]);
8860
+ ctx[0]);
8847
8861
  },
8848
8862
 
8849
8863
  d(detaching) {
@@ -8851,7 +8865,7 @@
8851
8865
  }
8852
8866
 
8853
8867
  };
8854
- } // (35:6) {#if message}
8868
+ } // (34:6) {#if message}
8855
8869
 
8856
8870
 
8857
8871
  function create_if_block_2$3(ctx) {
@@ -8862,7 +8876,7 @@
8862
8876
  div = element("div");
8863
8877
  t = text(
8864
8878
  /*message*/
8865
- ctx[1]);
8879
+ ctx[0]);
8866
8880
  attr(div, "class", "message");
8867
8881
  },
8868
8882
 
@@ -8874,9 +8888,9 @@
8874
8888
  p(ctx, dirty) {
8875
8889
  if (dirty &
8876
8890
  /*message*/
8877
- 2) set_data(t,
8891
+ 1) set_data(t,
8878
8892
  /*message*/
8879
- ctx[1]);
8893
+ ctx[0]);
8880
8894
  },
8881
8895
 
8882
8896
  d(detaching) {
@@ -8891,7 +8905,7 @@
8891
8905
  let current;
8892
8906
  let if_block =
8893
8907
  /*isVisible*/
8894
- ctx[6] && create_if_block$7(ctx);
8908
+ ctx[5] && create_if_block$7(ctx);
8895
8909
  return {
8896
8910
  c() {
8897
8911
  if (if_block) if_block.c();
@@ -8908,13 +8922,13 @@
8908
8922
  p(ctx, [dirty]) {
8909
8923
  if (
8910
8924
  /*isVisible*/
8911
- ctx[6]) {
8925
+ ctx[5]) {
8912
8926
  if (if_block) {
8913
8927
  if_block.p(ctx, dirty);
8914
8928
 
8915
8929
  if (dirty &
8916
8930
  /*isVisible*/
8917
- 64) {
8931
+ 32) {
8918
8932
  transition_in(if_block, 1);
8919
8933
  }
8920
8934
  } else {
@@ -8953,9 +8967,6 @@
8953
8967
 
8954
8968
  function instance$e($$self, $$props, $$invalidate) {
8955
8969
  let isVisible;
8956
- let {
8957
- type = "infinite"
8958
- } = $$props;
8959
8970
  let {
8960
8971
  variant = "inline"
8961
8972
  } = $$props;
@@ -8966,7 +8977,7 @@
8966
8977
  message = ""
8967
8978
  } = $$props;
8968
8979
  let {
8969
- progress = 0
8980
+ progress = -1
8970
8981
  } = $$props;
8971
8982
  let {
8972
8983
  visible = "false"
@@ -8975,30 +8986,29 @@
8975
8986
  let fullscreen;
8976
8987
  let inline;
8977
8988
  onMount(_async(function () {
8978
- $$invalidate(3, spinnerSize = size === "small" ? "large" : "xlarge");
8979
- $$invalidate(4, fullscreen = variant === "fullscreen");
8980
- $$invalidate(5, inline = variant === "inline");
8989
+ $$invalidate(2, spinnerSize = size === "small" ? "large" : "xlarge");
8990
+ $$invalidate(3, fullscreen = variant === "fullscreen");
8991
+ $$invalidate(4, inline = variant === "inline");
8981
8992
  return _await();
8982
8993
  }));
8983
8994
 
8984
8995
  $$self.$$set = $$props => {
8985
- if ('type' in $$props) $$invalidate(0, type = $$props.type);
8986
- if ('variant' in $$props) $$invalidate(7, variant = $$props.variant);
8987
- if ('size' in $$props) $$invalidate(8, size = $$props.size);
8988
- if ('message' in $$props) $$invalidate(1, message = $$props.message);
8989
- if ('progress' in $$props) $$invalidate(2, progress = $$props.progress);
8990
- if ('visible' in $$props) $$invalidate(9, visible = $$props.visible);
8996
+ if ('variant' in $$props) $$invalidate(6, variant = $$props.variant);
8997
+ if ('size' in $$props) $$invalidate(7, size = $$props.size);
8998
+ if ('message' in $$props) $$invalidate(0, message = $$props.message);
8999
+ if ('progress' in $$props) $$invalidate(1, progress = $$props.progress);
9000
+ if ('visible' in $$props) $$invalidate(8, visible = $$props.visible);
8991
9001
  };
8992
9002
 
8993
9003
  $$self.$$.update = () => {
8994
9004
  if ($$self.$$.dirty &
8995
9005
  /*visible*/
8996
- 512) {
8997
- $$invalidate(6, isVisible = toBoolean(visible));
9006
+ 256) {
9007
+ $$invalidate(5, isVisible = toBoolean(visible));
8998
9008
  }
8999
9009
  };
9000
9010
 
9001
- return [type, message, progress, spinnerSize, fullscreen, inline, isVisible, variant, size, visible];
9011
+ return [message, progress, spinnerSize, fullscreen, inline, isVisible, variant, size, visible];
9002
9012
  }
9003
9013
 
9004
9014
  class CircularProgress extends SvelteElement {
@@ -9010,12 +9020,11 @@
9010
9020
  props: attribute_to_object(this.attributes),
9011
9021
  customElement: true
9012
9022
  }, instance$e, create_fragment$f, safe_not_equal, {
9013
- type: 0,
9014
- variant: 7,
9015
- size: 8,
9016
- message: 1,
9017
- progress: 2,
9018
- visible: 9
9023
+ variant: 6,
9024
+ size: 7,
9025
+ message: 0,
9026
+ progress: 1,
9027
+ visible: 8
9019
9028
  }, null);
9020
9029
 
9021
9030
  if (options) {
@@ -9031,22 +9040,11 @@
9031
9040
  }
9032
9041
 
9033
9042
  static get observedAttributes() {
9034
- return ["type", "variant", "size", "message", "progress", "visible"];
9035
- }
9036
-
9037
- get type() {
9038
- return this.$$.ctx[0];
9039
- }
9040
-
9041
- set type(type) {
9042
- this.$$set({
9043
- type
9044
- });
9045
- flush();
9043
+ return ["variant", "size", "message", "progress", "visible"];
9046
9044
  }
9047
9045
 
9048
9046
  get variant() {
9049
- return this.$$.ctx[7];
9047
+ return this.$$.ctx[6];
9050
9048
  }
9051
9049
 
9052
9050
  set variant(variant) {
@@ -9057,7 +9055,7 @@
9057
9055
  }
9058
9056
 
9059
9057
  get size() {
9060
- return this.$$.ctx[8];
9058
+ return this.$$.ctx[7];
9061
9059
  }
9062
9060
 
9063
9061
  set size(size) {
@@ -9068,7 +9066,7 @@
9068
9066
  }
9069
9067
 
9070
9068
  get message() {
9071
- return this.$$.ctx[1];
9069
+ return this.$$.ctx[0];
9072
9070
  }
9073
9071
 
9074
9072
  set message(message) {
@@ -9079,7 +9077,7 @@
9079
9077
  }
9080
9078
 
9081
9079
  get progress() {
9082
- return this.$$.ctx[2];
9080
+ return this.$$.ctx[1];
9083
9081
  }
9084
9082
 
9085
9083
  set progress(progress) {
@@ -9090,7 +9088,7 @@
9090
9088
  }
9091
9089
 
9092
9090
  get visible() {
9093
- return this.$$.ctx[9];
9091
+ return this.$$.ctx[8];
9094
9092
  }
9095
9093
 
9096
9094
  set visible(visible) {
@@ -9884,7 +9882,7 @@
9884
9882
  }
9885
9883
 
9886
9884
  };
9887
- } // (42:2) {#if ["alpha", "beta"].includes(level)}
9885
+ } // (34:2) {#if ["alpha", "beta"].includes(level)}
9888
9886
 
9889
9887
 
9890
9888
  function create_if_block_1$3(ctx) {
@@ -9911,7 +9909,7 @@
9911
9909
  t2 = text("This is a new ");
9912
9910
  a = element("a");
9913
9911
  a.textContent = "Alberta Government";
9914
- t4 = text("\n service\n ");
9912
+ t4 = text(" service\n ");
9915
9913
  if (if_block) if_block.c();
9916
9914
  attr(div0, "data-testid", "level");
9917
9915
  attr(div0, "class", div0_class_value = "service-level service-level--" +
@@ -9972,7 +9970,7 @@
9972
9970
  }
9973
9971
 
9974
9972
  };
9975
- } // (52:6) {#if feedbackurl}
9973
+ } // (43:6) {#if feedbackurl}
9976
9974
 
9977
9975
 
9978
9976
  function create_if_block_2$2(ctx) {
@@ -10014,7 +10012,7 @@
10014
10012
  }
10015
10013
 
10016
10014
  };
10017
- } // (60:2) {#if version}
10015
+ } // (49:2) {#if version}
10018
10016
 
10019
10017
 
10020
10018
  function create_if_block$6(ctx) {
@@ -10182,7 +10180,7 @@
10182
10180
  class MicrositeHeader extends SvelteElement {
10183
10181
  constructor(options) {
10184
10182
  super();
10185
- 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>`;
10183
+ 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>`;
10186
10184
  init(this, {
10187
10185
  target: this.shadowRoot,
10188
10186
  props: attribute_to_object(this.attributes),
@@ -11054,7 +11052,7 @@
11054
11052
  attr(path, "stroke-linecap", "round");
11055
11053
  attr(svg, "class", svg_class_value = `spinner-${
11056
11054
  /*type*/
11057
- ctx[1]}`);
11055
+ ctx[2]}`);
11058
11056
  attr(svg, "fill", "none");
11059
11057
  attr(svg, "viewBox", svg_viewBox_value = "0 0 " +
11060
11058
  /*diameter*/
@@ -11069,7 +11067,7 @@
11069
11067
  ctx[5]);
11070
11068
  attr(svg, "data-testid",
11071
11069
  /*testid*/
11072
- ctx[2]);
11070
+ ctx[1]);
11073
11071
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
11074
11072
  },
11075
11073
 
@@ -11150,9 +11148,9 @@
11150
11148
 
11151
11149
  if (dirty &
11152
11150
  /*type*/
11153
- 2 && svg_class_value !== (svg_class_value = `spinner-${
11151
+ 4 && svg_class_value !== (svg_class_value = `spinner-${
11154
11152
  /*type*/
11155
- ctx[1]}`)) {
11153
+ ctx[2]}`)) {
11156
11154
  attr(svg, "class", svg_class_value);
11157
11155
  }
11158
11156
 
@@ -11184,10 +11182,10 @@
11184
11182
 
11185
11183
  if (dirty &
11186
11184
  /*testid*/
11187
- 4) {
11185
+ 2) {
11188
11186
  attr(svg, "data-testid",
11189
11187
  /*testid*/
11190
- ctx[2]);
11188
+ ctx[1]);
11191
11189
  }
11192
11190
  },
11193
11191
 
@@ -11257,14 +11255,12 @@
11257
11255
  invert = false
11258
11256
  } = $$props;
11259
11257
  let {
11260
- type = "infinite"
11261
- } = $$props;
11262
- let {
11263
- progress = "0"
11258
+ progress = -1
11264
11259
  } = $$props;
11265
11260
  let {
11266
11261
  testid = ""
11267
11262
  } = $$props;
11263
+ let type = "infinite";
11268
11264
 
11269
11265
  const _progress = tweened(0, {
11270
11266
  duration: 500,
@@ -11301,9 +11297,8 @@
11301
11297
  $$self.$$set = $$props => {
11302
11298
  if ('size' in $$props) $$invalidate(10, size = $$props.size);
11303
11299
  if ('invert' in $$props) $$invalidate(0, invert = $$props.invert);
11304
- if ('type' in $$props) $$invalidate(1, type = $$props.type);
11305
11300
  if ('progress' in $$props) $$invalidate(11, progress = $$props.progress);
11306
- if ('testid' in $$props) $$invalidate(2, testid = $$props.testid);
11301
+ if ('testid' in $$props) $$invalidate(1, testid = $$props.testid);
11307
11302
  };
11308
11303
 
11309
11304
  $$self.$$.update = () => {
@@ -11312,7 +11307,16 @@
11312
11307
  2048) {
11313
11308
  // Reactive
11314
11309
  {
11315
- _progress.set(parseFloat(progress));
11310
+ // Typescript recognizes `progress` as a number, but once compiled, due to it being a web component, progress is a string.
11311
+ // This line makes both sides happy.
11312
+ const p = parseFloat(progress + '');
11313
+
11314
+ if (p >= 0) {
11315
+ _progress.set(p || 1); // start at 1 to prevent incorrect arc calculations
11316
+
11317
+
11318
+ $$invalidate(2, type = "progress");
11319
+ }
11316
11320
  }
11317
11321
  }
11318
11322
 
@@ -11352,12 +11356,12 @@
11352
11356
 
11353
11357
  if ($$self.$$.dirty &
11354
11358
  /*type, pathRadius, progress*/
11355
- 6146) {
11359
+ 6148) {
11356
11360
  $$invalidate(6, ready = type === "infinite" ? pathRadius : pathRadius && progress);
11357
11361
  }
11358
11362
  };
11359
11363
 
11360
- return [invert, type, testid, radius, strokewidth, diameter, ready, $_progress, _progress, getArc, size, progress, pathRadius];
11364
+ return [invert, testid, type, radius, strokewidth, diameter, ready, $_progress, _progress, getArc, size, progress, pathRadius];
11361
11365
  }
11362
11366
 
11363
11367
  class Spinner extends SvelteElement {
@@ -11371,9 +11375,8 @@
11371
11375
  }, instance$8, create_fragment$9, safe_not_equal, {
11372
11376
  size: 10,
11373
11377
  invert: 0,
11374
- type: 1,
11375
11378
  progress: 11,
11376
- testid: 2
11379
+ testid: 1
11377
11380
  }, null);
11378
11381
 
11379
11382
  if (options) {
@@ -11389,7 +11392,7 @@
11389
11392
  }
11390
11393
 
11391
11394
  static get observedAttributes() {
11392
- return ["size", "invert", "type", "progress", "testid"];
11395
+ return ["size", "invert", "progress", "testid"];
11393
11396
  }
11394
11397
 
11395
11398
  get size() {
@@ -11414,17 +11417,6 @@
11414
11417
  flush();
11415
11418
  }
11416
11419
 
11417
- get type() {
11418
- return this.$$.ctx[1];
11419
- }
11420
-
11421
- set type(type) {
11422
- this.$$set({
11423
- type
11424
- });
11425
- flush();
11426
- }
11427
-
11428
11420
  get progress() {
11429
11421
  return this.$$.ctx[11];
11430
11422
  }
@@ -11437,7 +11429,7 @@
11437
11429
  }
11438
11430
 
11439
11431
  get testid() {
11440
- return this.$$.ctx[2];
11432
+ return this.$$.ctx[1];
11441
11433
  }
11442
11434
 
11443
11435
  set testid(testid) {
@@ -12033,7 +12025,9 @@
12033
12025
  return {
12034
12026
  c() {
12035
12027
  div = element("div");
12036
- div.innerHTML = `<slot></slot>`;
12028
+ div.innerHTML = `<slot></slot>
12029
+
12030
+ <span tabindex="0"></span>`;
12037
12031
  this.c = noop;
12038
12032
  },
12039
12033
 
@@ -14014,14 +14008,12 @@
14014
14008
  };
14015
14009
 
14016
14010
  var GoACircularProgress = function GoACircularProgress(_a) {
14017
- var type = _a.type,
14018
- visible = _a.visible,
14011
+ var visible = _a.visible,
14019
14012
  message = _a.message,
14020
14013
  progress = _a.progress,
14021
14014
  variant = _a.variant,
14022
14015
  size = _a.size;
14023
14016
  return jsxRuntime.jsx("goa-circular-progress", {
14024
- type: type,
14025
14017
  visible: visible ? "true" : "false",
14026
14018
  message: message,
14027
14019
  progress: progress,