@abgov/react-components 4.0.0-alpha.115 → 4.0.0-alpha.117

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.
@@ -1562,7 +1562,7 @@
1562
1562
  customElements.define("goa-accordion", Accordion);
1563
1563
  /* libs/web-components/src/components/app-header/AppHeader.svelte generated by Svelte v3.51.0 */
1564
1564
 
1565
- function create_else_block$5(ctx) {
1565
+ function create_else_block$6(ctx) {
1566
1566
  let div;
1567
1567
  let img0;
1568
1568
  let img0_src_value;
@@ -1697,7 +1697,7 @@
1697
1697
  if (
1698
1698
  /*url*/
1699
1699
  ctx[1]) return create_if_block$j;
1700
- return create_else_block$5;
1700
+ return create_else_block$6;
1701
1701
  }
1702
1702
 
1703
1703
  let current_block_type = select_block_type(ctx);
@@ -1874,7 +1874,7 @@
1874
1874
  customElements.define("goa-app-header", AppHeader);
1875
1875
  /* libs/web-components/src/components/badge/Badge.svelte generated by Svelte v3.51.0 */
1876
1876
 
1877
- function create_else_block$4(ctx) {
1877
+ function create_else_block$5(ctx) {
1878
1878
  let div;
1879
1879
  return {
1880
1880
  c() {
@@ -1972,7 +1972,7 @@
1972
1972
  if (
1973
1973
  /*showIcon*/
1974
1974
  ctx[7]) return create_if_block_1$a;
1975
- return create_else_block$4;
1975
+ return create_else_block$5;
1976
1976
  }
1977
1977
 
1978
1978
  let current_block_type = select_block_type(ctx);
@@ -2524,7 +2524,7 @@
2524
2524
  customElements.define("goa-block", Block);
2525
2525
  /* libs/web-components/src/components/button/Button.svelte generated by Svelte v3.51.0 */
2526
2526
 
2527
- function create_else_block$3(ctx) {
2527
+ function create_else_block$4(ctx) {
2528
2528
  let t0;
2529
2529
  let span;
2530
2530
  let t1;
@@ -2733,7 +2733,7 @@
2733
2733
  if (
2734
2734
  /*type*/
2735
2735
  ctx[0] === "start") return create_if_block$h;
2736
- return create_else_block$3;
2736
+ return create_else_block$4;
2737
2737
  }
2738
2738
 
2739
2739
  let current_block_type = select_block_type(ctx);
@@ -5362,12 +5362,9 @@
5362
5362
  }
5363
5363
 
5364
5364
  const scrollbarWidth = calculateScrollbarWidth();
5365
-
5366
- if (scrollbarWidth > 0) {
5367
- toggledScrolling = true;
5368
- document.body.style.overflow = "hidden";
5369
- document.body.style.paddingRight = scrollbarWidth + "px";
5370
- }
5365
+ toggledScrolling = true;
5366
+ document.body.style.overflow = "hidden";
5367
+ document.body.style.paddingRight = scrollbarWidth + "px";
5371
5368
  }
5372
5369
 
5373
5370
  function isScrollable() {
@@ -5524,7 +5521,7 @@
5524
5521
  let div_class_value;
5525
5522
  let if_block =
5526
5523
  /*message*/
5527
- ctx[0] && create_if_block_4$2(ctx);
5524
+ ctx[0] && create_if_block_4$1(ctx);
5528
5525
  return {
5529
5526
  c() {
5530
5527
  div = element("div");
@@ -5575,7 +5572,7 @@
5575
5572
  if (if_block) {
5576
5573
  if_block.p(ctx, dirty);
5577
5574
  } else {
5578
- if_block = create_if_block_4$2(ctx);
5575
+ if_block = create_if_block_4$1(ctx);
5579
5576
  if_block.c();
5580
5577
  if_block.m(div, null);
5581
5578
  }
@@ -5728,7 +5725,7 @@
5728
5725
  } // (46:6) {#if message}
5729
5726
 
5730
5727
 
5731
- function create_if_block_4$2(ctx) {
5728
+ function create_if_block_4$1(ctx) {
5732
5729
  let div;
5733
5730
  let t;
5734
5731
  return {
@@ -6738,7 +6735,7 @@
6738
6735
  } // (256:2) {:else}
6739
6736
 
6740
6737
 
6741
- function create_else_block$2(ctx) {
6738
+ function create_else_block$3(ctx) {
6742
6739
  let t0;
6743
6740
  let goa_input;
6744
6741
  let goa_input_arialabel_value;
@@ -7439,7 +7436,7 @@
7439
7436
  if (
7440
7437
  /*_native*/
7441
7438
  ctx[22]) return create_if_block$c;
7442
- return create_else_block$2;
7439
+ return create_else_block$3;
7443
7440
  }
7444
7441
 
7445
7442
  let current_block_type = select_block_type(ctx);
@@ -8187,7 +8184,6 @@
8187
8184
 
8188
8185
  <span tabindex="0"></span>`;
8189
8186
  this.c = noop;
8190
- attr(div, "id", "root");
8191
8187
  },
8192
8188
 
8193
8189
  m(target, anchor) {
@@ -8246,7 +8242,7 @@
8246
8242
  } = $$props;
8247
8243
  let ignoreFocusChanges = false;
8248
8244
  let lastFocus;
8249
- let element;
8245
+ let rootEl;
8250
8246
  let hasListeners = false;
8251
8247
 
8252
8248
  function removeListeners() {
@@ -8332,8 +8328,8 @@
8332
8328
 
8333
8329
  try {
8334
8330
  ignoreFocusChanges = true;
8335
- element.focus();
8336
- } catch (e) {} finally {
8331
+ element && element.focus();
8332
+ } finally {
8337
8333
  ignoreFocusChanges = false;
8338
8334
  }
8339
8335
 
@@ -8344,7 +8340,7 @@
8344
8340
  var _a;
8345
8341
 
8346
8342
  if (ignoreFocusChanges) return;
8347
- const slotElements = (_a = element.firstChild) === null || _a === void 0 ? void 0 : _a.assignedElements();
8343
+ const slotElements = (_a = rootEl.firstChild) === null || _a === void 0 ? void 0 : _a.assignedElements();
8348
8344
  if (!(slotElements === null || slotElements === void 0 ? void 0 : slotElements.length)) return;
8349
8345
  const contentRootElement = slotElements[0];
8350
8346
 
@@ -8364,8 +8360,8 @@
8364
8360
 
8365
8361
  function div_binding($$value) {
8366
8362
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
8367
- element = $$value;
8368
- $$invalidate(0, element);
8363
+ rootEl = $$value;
8364
+ $$invalidate(0, rootEl);
8369
8365
  });
8370
8366
  }
8371
8367
 
@@ -8397,13 +8393,13 @@
8397
8393
  }
8398
8394
  };
8399
8395
 
8400
- return [element, active, hasListeners, isActive, div_binding];
8396
+ return [rootEl, active, hasListeners, isActive, div_binding];
8401
8397
  }
8402
8398
 
8403
8399
  class FocusTrap extends SvelteElement {
8404
8400
  constructor(options) {
8405
8401
  super();
8406
- this.shadowRoot.innerHTML = `<style>#root{display:inline}</style>`;
8402
+ this.shadowRoot.innerHTML = `<style>div{display:inline}</style>`;
8407
8403
  init(this, {
8408
8404
  target: this.shadowRoot,
8409
8405
  props: attribute_to_object(this.attributes),
@@ -10998,7 +10994,7 @@
10998
10994
  customElements.define("goa-icon", Icon);
10999
10995
  /* libs/web-components/src/components/input/Input.svelte generated by Svelte v3.51.0 */
11000
10996
 
11001
- function create_if_block_4$1(ctx) {
10997
+ function create_if_block_4(ctx) {
11002
10998
  let div;
11003
10999
  let t;
11004
11000
  return {
@@ -11209,7 +11205,7 @@
11209
11205
  let dispose;
11210
11206
  let if_block0 =
11211
11207
  /*prefix*/
11212
- ctx[14] && create_if_block_4$1(ctx);
11208
+ ctx[14] && create_if_block_4(ctx);
11213
11209
  let if_block1 =
11214
11210
  /*leadingicon*/
11215
11211
  ctx[5] && create_if_block_3$2(ctx);
@@ -11366,7 +11362,7 @@
11366
11362
  if (if_block0) {
11367
11363
  if_block0.p(ctx, dirty);
11368
11364
  } else {
11369
- if_block0 = create_if_block_4$1(ctx);
11365
+ if_block0 = create_if_block_4(ctx);
11370
11366
  if_block0.c();
11371
11367
  if_block0.m(div2, t0);
11372
11368
  }
@@ -12580,80 +12576,87 @@
12580
12576
 
12581
12577
  function create_if_block$5(ctx) {
12582
12578
  let goa_focus_trap;
12583
- let div5;
12579
+ let div6;
12584
12580
  let div0;
12585
12581
  let t0;
12586
- let div4;
12582
+ let div5;
12587
12583
  let t1;
12588
- let div3;
12584
+ let div4;
12585
+ let header;
12586
+ let div1;
12589
12587
  let t2;
12590
12588
  let t3;
12591
- let div1;
12592
- let t4;
12593
- let slot0;
12594
- let t5;
12595
12589
  let div2;
12596
- let div4_intro;
12597
- let div4_outro;
12598
- let div5_style_value;
12599
- let noscroll_action;
12590
+ let goa_scrollable;
12591
+ let t4;
12592
+ let div3;
12600
12593
  let div5_intro;
12601
12594
  let div5_outro;
12595
+ let div6_style_value;
12596
+ let noscroll_action;
12597
+ let div6_intro;
12598
+ let div6_outro;
12602
12599
  let current;
12603
12600
  let mounted;
12604
12601
  let dispose;
12605
12602
  let if_block0 =
12606
12603
  /*calloutvariant*/
12607
- ctx[3] !== null && create_if_block_4(ctx);
12608
- let if_block1 =
12609
- /*heading*/
12610
- ctx[0] && create_if_block_3(ctx);
12611
- let if_block2 =
12612
- /*isClosable*/
12613
- ctx[4] && create_if_block_2$1(ctx);
12604
+ ctx[3] !== null && create_if_block_3(ctx);
12614
12605
 
12615
12606
  function select_block_type(ctx, dirty) {
12616
- return create_if_block_1$1;
12607
+ if (
12608
+ /*heading*/
12609
+ ctx[0]) return create_if_block_2$1;
12610
+ return create_else_block$2;
12617
12611
  }
12618
12612
 
12619
- let current_block_type = select_block_type();
12620
- let if_block3 = current_block_type(ctx);
12613
+ let current_block_type = select_block_type(ctx);
12614
+ let if_block1 = current_block_type(ctx);
12615
+ let if_block2 =
12616
+ /*_isClosable*/
12617
+ ctx[7] && create_if_block_1$1(ctx);
12621
12618
  return {
12622
12619
  c() {
12623
12620
  goa_focus_trap = element("goa-focus-trap");
12624
- div5 = element("div");
12621
+ div6 = element("div");
12625
12622
  div0 = element("div");
12626
12623
  t0 = space();
12627
- div4 = element("div");
12624
+ div5 = element("div");
12628
12625
  if (if_block0) if_block0.c();
12629
12626
  t1 = space();
12630
- div3 = element("div");
12631
- if (if_block1) if_block1.c();
12627
+ div4 = element("div");
12628
+ header = element("header");
12629
+ div1 = element("div");
12630
+ if_block1.c();
12632
12631
  t2 = space();
12633
12632
  if (if_block2) if_block2.c();
12634
12633
  t3 = space();
12635
- div1 = element("div");
12636
- if_block3.c();
12637
- t4 = space();
12638
- slot0 = element("slot");
12639
- t5 = space();
12640
12634
  div2 = element("div");
12641
- div2.innerHTML = `<slot name="actions"></slot>`;
12635
+ goa_scrollable = element("goa-scrollable");
12636
+ goa_scrollable.innerHTML = `<slot></slot>`;
12637
+ t4 = space();
12638
+ div3 = element("div");
12639
+ div3.innerHTML = `<slot name="actions"></slot>`;
12642
12640
  attr(div0, "data-testid", "modal-overlay");
12643
12641
  attr(div0, "class", "modal-overlay");
12644
- attr(div1, "data-testid", "modal-content");
12645
- attr(div1, "class", "modal-content");
12646
- attr(div2, "class", "modal-actions");
12647
- attr(div2, "data-testid", "modal-actions");
12648
- attr(div3, "class", "content");
12649
- attr(div4, "class", "modal-pane");
12650
- attr(div5, "data-testid", "modal");
12651
- attr(div5, "class", "modal");
12652
- attr(div5, "style", div5_style_value = "" + ((
12642
+ attr(div1, "data-testid", "modal-title");
12643
+ attr(div1, "class", "modal-title");
12644
+ set_custom_element_data(goa_scrollable, "direction", "vertical");
12645
+ set_custom_element_data(goa_scrollable, "hpadding", "1.9rem");
12646
+ set_custom_element_data(goa_scrollable, "maxheight", "70vh");
12647
+ attr(div2, "data-testid", "modal-content");
12648
+ attr(div2, "class", "modal-content");
12649
+ attr(div3, "class", "modal-actions");
12650
+ attr(div3, "data-testid", "modal-actions");
12651
+ attr(div4, "class", "content");
12652
+ attr(div5, "class", "modal-pane");
12653
+ attr(div6, "data-testid", "modal");
12654
+ attr(div6, "class", "modal");
12655
+ attr(div6, "style", div6_style_value =
12653
12656
  /*width*/
12654
12657
  ctx[2] && `--width: ${
12655
12658
  /*width*/
12656
- ctx[2]};`) + ";"));
12659
+ ctx[2]};`);
12657
12660
  set_custom_element_data(goa_focus_trap, "active",
12658
12661
  /*open*/
12659
12662
  ctx[1]);
@@ -12661,32 +12664,40 @@
12661
12664
 
12662
12665
  m(target, anchor) {
12663
12666
  insert(target, goa_focus_trap, anchor);
12664
- append(goa_focus_trap, div5);
12665
- append(div5, div0);
12666
- append(div5, t0);
12667
+ append(goa_focus_trap, div6);
12668
+ append(div6, div0);
12669
+ append(div6, t0);
12670
+ append(div6, div5);
12671
+ if (if_block0) if_block0.m(div5, null);
12672
+ append(div5, t1);
12667
12673
  append(div5, div4);
12668
- if (if_block0) if_block0.m(div4, null);
12669
- append(div4, t1);
12674
+ append(div4, header);
12675
+ append(header, div1);
12676
+ if_block1.m(div1, null);
12677
+ append(header, t2);
12678
+ if (if_block2) if_block2.m(header, null);
12679
+ append(div4, t3);
12680
+ append(div4, div2);
12681
+ append(div2, goa_scrollable);
12682
+ /*goa_scrollable_binding*/
12683
+
12684
+ ctx[14](goa_scrollable);
12685
+ /*div2_binding*/
12686
+
12687
+ ctx[15](div2);
12688
+ append(div4, t4);
12670
12689
  append(div4, div3);
12671
- if (if_block1) if_block1.m(div3, null);
12672
- append(div3, t2);
12673
- if (if_block2) if_block2.m(div3, null);
12674
- append(div3, t3);
12675
- append(div3, div1);
12676
- if_block3.m(div1, null);
12677
- append(div1, t4);
12678
- append(div1, slot0);
12679
- append(div3, t5);
12680
- append(div3, div2);
12681
12690
  current = true;
12682
12691
 
12683
12692
  if (!mounted) {
12684
12693
  dispose = [listen(div0, "click",
12685
12694
  /*close*/
12686
- ctx[8]), action_destroyer(noscroll_action = noscroll.call(null, div5, {
12695
+ ctx[10]), listen(goa_scrollable, "_scroll",
12696
+ /*handleScroll*/
12697
+ ctx[11]), action_destroyer(noscroll_action = noscroll.call(null, div6, {
12687
12698
  enable:
12688
- /*isOpen*/
12689
- ctx[7]
12699
+ /*_isOpen*/
12700
+ ctx[6]
12690
12701
  }))];
12691
12702
  mounted = true;
12692
12703
  }
@@ -12701,39 +12712,36 @@
12701
12712
  if (if_block0) {
12702
12713
  if_block0.p(ctx, dirty);
12703
12714
  } else {
12704
- if_block0 = create_if_block_4(ctx);
12715
+ if_block0 = create_if_block_3(ctx);
12705
12716
  if_block0.c();
12706
- if_block0.m(div4, t1);
12717
+ if_block0.m(div5, t1);
12707
12718
  }
12708
12719
  } else if (if_block0) {
12709
12720
  if_block0.d(1);
12710
12721
  if_block0 = null;
12711
12722
  }
12712
12723
 
12713
- if (
12714
- /*heading*/
12715
- ctx[0]) {
12724
+ if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block1) {
12725
+ if_block1.p(ctx, dirty);
12726
+ } else {
12727
+ if_block1.d(1);
12728
+ if_block1 = current_block_type(ctx);
12729
+
12716
12730
  if (if_block1) {
12717
- if_block1.p(ctx, dirty);
12718
- } else {
12719
- if_block1 = create_if_block_3(ctx);
12720
12731
  if_block1.c();
12721
- if_block1.m(div3, t2);
12732
+ if_block1.m(div1, null);
12722
12733
  }
12723
- } else if (if_block1) {
12724
- if_block1.d(1);
12725
- if_block1 = null;
12726
12734
  }
12727
12735
 
12728
12736
  if (
12729
- /*isClosable*/
12730
- ctx[4]) {
12737
+ /*_isClosable*/
12738
+ ctx[7]) {
12731
12739
  if (if_block2) {
12732
12740
  if_block2.p(ctx, dirty);
12733
12741
  } else {
12734
- if_block2 = create_if_block_2$1(ctx);
12742
+ if_block2 = create_if_block_1$1(ctx);
12735
12743
  if_block2.c();
12736
- if_block2.m(div3, t3);
12744
+ if_block2.m(header, null);
12737
12745
  }
12738
12746
  } else if (if_block2) {
12739
12747
  if_block2.d(1);
@@ -12742,20 +12750,20 @@
12742
12750
 
12743
12751
  if (!current || dirty &
12744
12752
  /*width*/
12745
- 4 && div5_style_value !== (div5_style_value = "" + ((
12753
+ 4 && div6_style_value !== (div6_style_value =
12746
12754
  /*width*/
12747
12755
  ctx[2] && `--width: ${
12748
12756
  /*width*/
12749
- ctx[2]};`) + ";"))) {
12750
- attr(div5, "style", div5_style_value);
12757
+ ctx[2]};`)) {
12758
+ attr(div6, "style", div6_style_value);
12751
12759
  }
12752
12760
 
12753
12761
  if (noscroll_action && is_function(noscroll_action.update) && dirty &
12754
- /*isOpen*/
12755
- 128) noscroll_action.update.call(null, {
12762
+ /*_isOpen*/
12763
+ 64) noscroll_action.update.call(null, {
12756
12764
  enable:
12757
- /*isOpen*/
12758
- ctx[7]
12765
+ /*_isOpen*/
12766
+ ctx[6]
12759
12767
  });
12760
12768
 
12761
12769
  if (!current || dirty &
@@ -12770,46 +12778,46 @@
12770
12778
  i(local) {
12771
12779
  if (current) return;
12772
12780
  add_render_callback(() => {
12773
- if (div4_outro) div4_outro.end(1);
12774
- div4_intro = create_in_transition(div4, fly, {
12781
+ if (div5_outro) div5_outro.end(1);
12782
+ div5_intro = create_in_transition(div5, fly, {
12775
12783
  duration:
12776
12784
  /*_transitionTime*/
12777
- ctx[6],
12785
+ ctx[9],
12778
12786
  y: 200
12779
12787
  });
12780
- div4_intro.start();
12788
+ div5_intro.start();
12781
12789
  });
12782
12790
  add_render_callback(() => {
12783
- if (div5_outro) div5_outro.end(1);
12784
- div5_intro = create_in_transition(div5, fade, {
12791
+ if (div6_outro) div6_outro.end(1);
12792
+ div6_intro = create_in_transition(div6, fade, {
12785
12793
  duration:
12786
12794
  /*_transitionTime*/
12787
- ctx[6]
12795
+ ctx[9]
12788
12796
  });
12789
- div5_intro.start();
12797
+ div6_intro.start();
12790
12798
  });
12791
12799
  current = true;
12792
12800
  },
12793
12801
 
12794
12802
  o(local) {
12795
- if (div4_intro) div4_intro.invalidate();
12796
- div4_outro = create_out_transition(div4, fly, {
12803
+ if (div5_intro) div5_intro.invalidate();
12804
+ div5_outro = create_out_transition(div5, fly, {
12797
12805
  delay:
12798
12806
  /*_transitionTime*/
12799
- ctx[6],
12807
+ ctx[9],
12800
12808
  duration:
12801
12809
  /*_transitionTime*/
12802
- ctx[6],
12810
+ ctx[9],
12803
12811
  y: -100
12804
12812
  });
12805
- if (div5_intro) div5_intro.invalidate();
12806
- div5_outro = create_out_transition(div5, fade, {
12813
+ if (div6_intro) div6_intro.invalidate();
12814
+ div6_outro = create_out_transition(div6, fade, {
12807
12815
  delay:
12808
12816
  /*_transitionTime*/
12809
- ctx[6],
12817
+ ctx[9],
12810
12818
  duration:
12811
12819
  /*_transitionTime*/
12812
- ctx[6]
12820
+ ctx[9]
12813
12821
  });
12814
12822
  current = false;
12815
12823
  },
@@ -12817,20 +12825,25 @@
12817
12825
  d(detaching) {
12818
12826
  if (detaching) detach(goa_focus_trap);
12819
12827
  if (if_block0) if_block0.d();
12820
- if (if_block1) if_block1.d();
12828
+ if_block1.d();
12821
12829
  if (if_block2) if_block2.d();
12822
- if_block3.d();
12823
- if (detaching && div4_outro) div4_outro.end();
12830
+ /*goa_scrollable_binding*/
12831
+
12832
+ ctx[14](null);
12833
+ /*div2_binding*/
12834
+
12835
+ ctx[15](null);
12824
12836
  if (detaching && div5_outro) div5_outro.end();
12837
+ if (detaching && div6_outro) div6_outro.end();
12825
12838
  mounted = false;
12826
12839
  run_all(dispose);
12827
12840
  }
12828
12841
 
12829
12842
  };
12830
- } // (67:8) {#if calloutvariant !== null}
12843
+ } // (102:8) {#if calloutvariant !== null}
12831
12844
 
12832
12845
 
12833
- function create_if_block_4(ctx) {
12846
+ function create_if_block_3(ctx) {
12834
12847
  let div;
12835
12848
  let goa_icon;
12836
12849
  let goa_icon_inverted_value;
@@ -12840,8 +12853,8 @@
12840
12853
  div = element("div");
12841
12854
  goa_icon = element("goa-icon");
12842
12855
  set_custom_element_data(goa_icon, "type",
12843
- /*iconType*/
12844
- ctx[5]);
12856
+ /*_iconType*/
12857
+ ctx[8]);
12845
12858
  set_custom_element_data(goa_icon, "inverted", goa_icon_inverted_value =
12846
12859
  /*calloutvariant*/
12847
12860
  ctx[3] === "important" ? "false" : "true");
@@ -12857,11 +12870,11 @@
12857
12870
 
12858
12871
  p(ctx, dirty) {
12859
12872
  if (dirty &
12860
- /*iconType*/
12861
- 32) {
12873
+ /*_iconType*/
12874
+ 256) {
12862
12875
  set_custom_element_data(goa_icon, "type",
12863
- /*iconType*/
12864
- ctx[5]);
12876
+ /*_iconType*/
12877
+ ctx[8]);
12865
12878
  }
12866
12879
 
12867
12880
  if (dirty &
@@ -12886,25 +12899,42 @@
12886
12899
  }
12887
12900
 
12888
12901
  };
12889
- } // (76:10) {#if heading}
12902
+ } // (115:14) {:else}
12890
12903
 
12891
12904
 
12892
- function create_if_block_3(ctx) {
12893
- let div;
12905
+ function create_else_block$2(ctx) {
12906
+ let slot;
12907
+ return {
12908
+ c() {
12909
+ slot = element("slot");
12910
+ attr(slot, "name", "heading");
12911
+ },
12912
+
12913
+ m(target, anchor) {
12914
+ insert(target, slot, anchor);
12915
+ },
12916
+
12917
+ p: noop,
12918
+
12919
+ d(detaching) {
12920
+ if (detaching) detach(slot);
12921
+ }
12922
+
12923
+ };
12924
+ } // (113:14) {#if heading}
12925
+
12926
+
12927
+ function create_if_block_2$1(ctx) {
12894
12928
  let t;
12895
12929
  return {
12896
12930
  c() {
12897
- div = element("div");
12898
12931
  t = text(
12899
12932
  /*heading*/
12900
12933
  ctx[0]);
12901
- attr(div, "data-testid", "modal-title");
12902
- attr(div, "class", "modal-title");
12903
12934
  },
12904
12935
 
12905
12936
  m(target, anchor) {
12906
- insert(target, div, anchor);
12907
- append(div, t);
12937
+ insert(target, t, anchor);
12908
12938
  },
12909
12939
 
12910
12940
  p(ctx, dirty) {
@@ -12916,14 +12946,14 @@
12916
12946
  },
12917
12947
 
12918
12948
  d(detaching) {
12919
- if (detaching) detach(div);
12949
+ if (detaching) detach(t);
12920
12950
  }
12921
12951
 
12922
12952
  };
12923
- } // (79:10) {#if isClosable}
12953
+ } // (119:12) {#if _isClosable}
12924
12954
 
12925
12955
 
12926
- function create_if_block_2$1(ctx) {
12956
+ function create_if_block_1$1(ctx) {
12927
12957
  let div;
12928
12958
  let goa_icon_button;
12929
12959
  let mounted;
@@ -12945,7 +12975,7 @@
12945
12975
  if (!mounted) {
12946
12976
  dispose = listen(goa_icon_button, "click",
12947
12977
  /*close*/
12948
- ctx[8]);
12978
+ ctx[10]);
12949
12979
  mounted = true;
12950
12980
  }
12951
12981
  },
@@ -12958,28 +12988,6 @@
12958
12988
  dispose();
12959
12989
  }
12960
12990
 
12961
- };
12962
- } // (91:12) {#if isScrollable}
12963
-
12964
-
12965
- function create_if_block_1$1(ctx) {
12966
- let goa_scrollable;
12967
- return {
12968
- c() {
12969
- goa_scrollable = element("goa-scrollable");
12970
- goa_scrollable.innerHTML = `<slot></slot>`;
12971
- set_custom_element_data(goa_scrollable, "direction", "vertical");
12972
- set_custom_element_data(goa_scrollable, "height", "50");
12973
- },
12974
-
12975
- m(target, anchor) {
12976
- insert(target, goa_scrollable, anchor);
12977
- },
12978
-
12979
- d(detaching) {
12980
- if (detaching) detach(goa_scrollable);
12981
- }
12982
-
12983
12991
  };
12984
12992
  }
12985
12993
 
@@ -12987,8 +12995,8 @@
12987
12995
  let if_block_anchor;
12988
12996
  let current;
12989
12997
  let if_block =
12990
- /*isOpen*/
12991
- ctx[7] && create_if_block$5(ctx);
12998
+ /*_isOpen*/
12999
+ ctx[6] && create_if_block$5(ctx);
12992
13000
  return {
12993
13001
  c() {
12994
13002
  if (if_block) if_block.c();
@@ -13004,14 +13012,14 @@
13004
13012
 
13005
13013
  p(ctx, [dirty]) {
13006
13014
  if (
13007
- /*isOpen*/
13008
- ctx[7]) {
13015
+ /*_isOpen*/
13016
+ ctx[6]) {
13009
13017
  if (if_block) {
13010
13018
  if_block.p(ctx, dirty);
13011
13019
 
13012
13020
  if (dirty &
13013
- /*isOpen*/
13014
- 128) {
13021
+ /*_isOpen*/
13022
+ 64) {
13015
13023
  transition_in(if_block, 1);
13016
13024
  }
13017
13025
  } else {
@@ -13049,14 +13057,14 @@
13049
13057
  }
13050
13058
 
13051
13059
  function instance$c($$self, $$props, $$invalidate) {
13052
- let isClosable;
13053
- let isOpen;
13060
+ let _isClosable;
13061
+
13062
+ let _isOpen;
13054
13063
 
13055
13064
  let _transitionTime;
13056
13065
 
13057
- let iconType;
13058
- const [CALLOUT_VARIANT, validateCalloutVariant] = typeValidator("Callout variant", ["emergency", "important", "information", "success", "event"]);
13059
- const [Transitions, validateTransition] = typeValidator("Modal transition", ["fast", "slow", "none"]);
13066
+ let _iconType;
13067
+
13060
13068
  let {
13061
13069
  heading = ""
13062
13070
  } = $$props;
@@ -13074,10 +13082,21 @@
13074
13082
  } = $$props;
13075
13083
  let {
13076
13084
  calloutvariant = null
13077
- } = $$props;
13085
+ } = $$props; // Private
13086
+
13087
+ let _contentEl = null;
13088
+ let _scrollEl = null; // Type verification
13089
+
13090
+ const [CALLOUT_VARIANT, validateCalloutVariant] = typeValidator("Callout variant", ["emergency", "important", "information", "success", "event"]);
13091
+ const [Transitions, validateTransition] = typeValidator("Modal transition", ["fast", "slow", "none"]); // Hooks
13092
+
13093
+ onMount(() => {
13094
+ validateCalloutVariant(calloutvariant);
13095
+ validateTransition(transition);
13096
+ }); // Functions
13078
13097
 
13079
13098
  function close(e) {
13080
- if (!isClosable) {
13099
+ if (!_isClosable) {
13081
13100
  return;
13082
13101
  }
13083
13102
 
@@ -13087,16 +13106,44 @@
13087
13106
  e.stopPropagation();
13088
13107
  }
13089
13108
 
13090
- onMount(() => {
13091
- validateCalloutVariant(calloutvariant);
13092
- validateTransition(transition);
13093
- });
13109
+ function handleScroll(e) {
13110
+ const hasScroll = e.detail.scrollHeight > e.detail.offsetHeight;
13111
+
13112
+ if (_isOpen && hasScroll) {
13113
+ const atTop = e.detail.scrollTop == 0;
13114
+ const atBottom = Math.abs(e.detail.scrollHeight - e.detail.scrollTop - e.detail.offsetHeight) < 1;
13115
+
13116
+ _contentEl.classList.remove("scroll-top", "scroll-bottom", "scroll-middle");
13117
+
13118
+ if (atTop) {
13119
+ _contentEl.classList.add("scroll-top");
13120
+ } else if (atBottom) {
13121
+ _contentEl.classList.add("scroll-bottom");
13122
+ } else {
13123
+ _contentEl.classList.add("scroll-middle");
13124
+ }
13125
+ }
13126
+ }
13127
+
13128
+ function goa_scrollable_binding($$value) {
13129
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
13130
+ _scrollEl = $$value;
13131
+ ($$invalidate(5, _scrollEl), $$invalidate(6, _isOpen)), $$invalidate(1, open);
13132
+ });
13133
+ }
13134
+
13135
+ function div2_binding($$value) {
13136
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
13137
+ _contentEl = $$value;
13138
+ ($$invalidate(4, _contentEl), $$invalidate(6, _isOpen)), $$invalidate(1, open);
13139
+ });
13140
+ }
13094
13141
 
13095
13142
  $$self.$$set = $$props => {
13096
13143
  if ('heading' in $$props) $$invalidate(0, heading = $$props.heading);
13097
- if ('closable' in $$props) $$invalidate(9, closable = $$props.closable);
13144
+ if ('closable' in $$props) $$invalidate(12, closable = $$props.closable);
13098
13145
  if ('open' in $$props) $$invalidate(1, open = $$props.open);
13099
- if ('transition' in $$props) $$invalidate(10, transition = $$props.transition);
13146
+ if ('transition' in $$props) $$invalidate(13, transition = $$props.transition);
13100
13147
  if ('width' in $$props) $$invalidate(2, width = $$props.width);
13101
13148
  if ('calloutvariant' in $$props) $$invalidate(3, calloutvariant = $$props.calloutvariant);
13102
13149
  };
@@ -13104,45 +13151,67 @@
13104
13151
  $$self.$$.update = () => {
13105
13152
  if ($$self.$$.dirty &
13106
13153
  /*closable*/
13107
- 512) {
13108
- $$invalidate(4, isClosable = toBoolean(closable));
13154
+ 4096) {
13155
+ // Reactive
13156
+ $$invalidate(7, _isClosable = toBoolean(closable));
13109
13157
  }
13110
13158
 
13111
13159
  if ($$self.$$.dirty &
13112
13160
  /*open*/
13113
13161
  2) {
13114
- $$invalidate(7, isOpen = toBoolean(open));
13162
+ $$invalidate(6, _isOpen = toBoolean(open));
13163
+ }
13164
+
13165
+ if ($$self.$$.dirty &
13166
+ /*_isOpen*/
13167
+ 64) {
13168
+ if (!_isOpen) {
13169
+ // prevent null issues
13170
+ $$invalidate(4, _contentEl = $$invalidate(5, _scrollEl = null));
13171
+ }
13172
+ }
13173
+
13174
+ if ($$self.$$.dirty &
13175
+ /*_isOpen, _scrollEl, _contentEl*/
13176
+ 112) {
13177
+ if (_isOpen && _scrollEl && _contentEl) {
13178
+ const hasScroll = _scrollEl.scrollHeight > _scrollEl.offsetHeight;
13179
+
13180
+ if (hasScroll) {
13181
+ _contentEl.classList.add("scroll-top");
13182
+ }
13183
+ }
13115
13184
  }
13116
13185
 
13117
13186
  if ($$self.$$.dirty &
13118
13187
  /*transition*/
13119
- 1024) {
13120
- $$invalidate(6, _transitionTime = transition === "none" ? 0 : transition === "slow" ? 400 : 200);
13188
+ 8192) {
13189
+ $$invalidate(9, _transitionTime = transition === "none" ? 0 : transition === "slow" ? 400 : 200);
13121
13190
  }
13122
13191
 
13123
13192
  if ($$self.$$.dirty &
13124
13193
  /*calloutvariant*/
13125
13194
  8) {
13126
- $$invalidate(5, iconType = calloutvariant === "emergency" ? "warning" : calloutvariant === "important" ? "alert-circle" : calloutvariant === "information" ? "information-circle" : calloutvariant === "success" ? "checkmark-circle" : calloutvariant === "event" ? "calendar" : "");
13195
+ $$invalidate(8, _iconType = calloutvariant === "emergency" ? "warning" : calloutvariant === "important" ? "alert-circle" : calloutvariant === "information" ? "information-circle" : calloutvariant === "success" ? "checkmark-circle" : calloutvariant === "event" ? "calendar" : "");
13127
13196
  }
13128
13197
  };
13129
13198
 
13130
- return [heading, open, width, calloutvariant, isClosable, iconType, _transitionTime, isOpen, close, closable, transition];
13199
+ return [heading, open, width, calloutvariant, _contentEl, _scrollEl, _isOpen, _isClosable, _iconType, _transitionTime, close, handleScroll, closable, transition, goa_scrollable_binding, div2_binding];
13131
13200
  }
13132
13201
 
13133
13202
  class Modal extends SvelteElement {
13134
13203
  constructor(options) {
13135
13204
  super();
13136
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}.modal{font-family:var(--goa-font-family-sans);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-emergency-default)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default)}.event{background-color:var(--goa-color-info-default)}.success{background-color:var(--goa-color-success-default)}.callout-bar{flex:0 0 3rem;text-align:center;padding-top:2rem;border-radius:4px 0px 0px 4px}.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(--goa-shadow-modal);border-radius:4px;max-height:90%;border:1px solid var(--goa-color-greyscale-700)}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch);max-height:80%}}.modal-actions ::slotted(div){margin:1.5rem 0 0}.modal-content ::slotted(:last-child){margin-bottom:0 !important}.modal-close{position:absolute;top:2rem;right:2rem}.modal-title{font-size:var(--goa-font-size-7);margin:0 0 1.5rem;margin-right:40px;flex:0 0 auto}.modal-content{line-height:1.75rem}</style>`;
13205
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--goa-font-family-sans)}:host *{box-sizing:border-box}.modal{font-family:var(--goa-font-family-sans);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-emergency-default)}.important{background-color:var(--goa-color-warning-default)}.information{background-color:var(--goa-color-info-default)}.event{background-color:var(--goa-color-info-default)}.success{background-color:var(--goa-color-success-default)}.callout-bar{flex:0 0 3rem;text-align:center;padding-top:2rem;border-radius:4px 0px 0px 4px}.content{flex:1 1 auto;width:100%;margin:2rem}.content header{display:flex;align-items:center;margin-bottom:2rem;justify-content:space-between}.modal-pane{position:relative;background-color:#fff;z-index:1001;width:90%;display:flex;box-shadow:var(--goa-shadow-modal);border-radius:4px;border:1px solid var(--goa-color-greyscale-700)}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch)}}.modal-actions ::slotted(*){padding:1.5rem 0 0}.modal-content{margin:0 -2rem;line-height:1.75rem}.modal-content ::slotted(:last-child){margin-bottom:0 !important}.modal-title{font-size:var(--goa-font-size-7);flex:0 0 auto}.scroll-top{box-shadow:inset 0px -8px 6px -6px rgba(0, 0, 0, 0.1)}.scroll-middle{box-shadow:inset 0px -8px 6px -6px rgba(0, 0, 0, 0.1), inset 0px 8px 6px -6px rgba(0, 0, 0, 0.1)}.scroll-bottom{box-shadow:inset 0px 8px 6px -6px rgba(0, 0, 0, 0.1)}</style>`;
13137
13206
  init(this, {
13138
13207
  target: this.shadowRoot,
13139
13208
  props: attribute_to_object(this.attributes),
13140
13209
  customElement: true
13141
13210
  }, instance$c, create_fragment$e, safe_not_equal, {
13142
13211
  heading: 0,
13143
- closable: 9,
13212
+ closable: 12,
13144
13213
  open: 1,
13145
- transition: 10,
13214
+ transition: 13,
13146
13215
  width: 2,
13147
13216
  calloutvariant: 3
13148
13217
  }, null);
@@ -13175,7 +13244,7 @@
13175
13244
  }
13176
13245
 
13177
13246
  get closable() {
13178
- return this.$$.ctx[9];
13247
+ return this.$$.ctx[12];
13179
13248
  }
13180
13249
 
13181
13250
  set closable(closable) {
@@ -13197,7 +13266,7 @@
13197
13266
  }
13198
13267
 
13199
13268
  get transition() {
13200
- return this.$$.ctx[10];
13269
+ return this.$$.ctx[13];
13201
13270
  }
13202
13271
 
13203
13272
  set transition(transition) {
@@ -14760,6 +14829,8 @@
14760
14829
  let div;
14761
14830
  let slot;
14762
14831
  let div_style_value;
14832
+ let mounted;
14833
+ let dispose;
14763
14834
  return {
14764
14835
  c() {
14765
14836
  div = element("div");
@@ -14767,9 +14838,9 @@
14767
14838
  this.c = noop;
14768
14839
  attr(div, "class", "goa-scrollable");
14769
14840
  attr(div, "style", div_style_value = `
14770
- --max-height: ${
14771
- /*height*/
14772
- ctx[3]};
14841
+ max-height: ${
14842
+ /*maxheight*/
14843
+ ctx[3] || "50vh"};
14773
14844
  overflow-y: ${
14774
14845
  /*direction*/
14775
14846
  ctx[0] === "vertical" ? 'auto' : 'hidden'};
@@ -14778,25 +14849,35 @@
14778
14849
  ctx[0] === "horizontal" ? 'auto' : 'hidden'};
14779
14850
  margin: ${
14780
14851
  /*vpadding*/
14781
- ctx[2]}rem 0;
14852
+ ctx[2]} 0;
14782
14853
  padding: 0 ${
14783
14854
  /*hpadding*/
14784
- ctx[1]}rem;
14855
+ ctx[1]};
14785
14856
  `);
14786
14857
  },
14787
14858
 
14788
14859
  m(target, anchor) {
14789
14860
  insert(target, div, anchor);
14790
14861
  append(div, slot);
14862
+ /*div_binding*/
14863
+
14864
+ ctx[8](div);
14865
+
14866
+ if (!mounted) {
14867
+ dispose = listen(div, "scroll",
14868
+ /*onScroll*/
14869
+ ctx[5]);
14870
+ mounted = true;
14871
+ }
14791
14872
  },
14792
14873
 
14793
14874
  p(ctx, [dirty]) {
14794
14875
  if (dirty &
14795
- /*height, direction, vpadding, hpadding*/
14876
+ /*maxheight, direction, vpadding, hpadding*/
14796
14877
  15 && div_style_value !== (div_style_value = `
14797
- --max-height: ${
14798
- /*height*/
14799
- ctx[3]};
14878
+ max-height: ${
14879
+ /*maxheight*/
14880
+ ctx[3] || "50vh"};
14800
14881
  overflow-y: ${
14801
14882
  /*direction*/
14802
14883
  ctx[0] === "vertical" ? 'auto' : 'hidden'};
@@ -14805,10 +14886,10 @@
14805
14886
  ctx[0] === "horizontal" ? 'auto' : 'hidden'};
14806
14887
  margin: ${
14807
14888
  /*vpadding*/
14808
- ctx[2]}rem 0;
14889
+ ctx[2]} 0;
14809
14890
  padding: 0 ${
14810
14891
  /*hpadding*/
14811
- ctx[1]}rem;
14892
+ ctx[1]};
14812
14893
  `)) {
14813
14894
  attr(div, "style", div_style_value);
14814
14895
  }
@@ -14819,6 +14900,11 @@
14819
14900
 
14820
14901
  d(detaching) {
14821
14902
  if (detaching) detach(div);
14903
+ /*div_binding*/
14904
+
14905
+ ctx[8](null);
14906
+ mounted = false;
14907
+ dispose();
14822
14908
  }
14823
14909
 
14824
14910
  };
@@ -14829,29 +14915,63 @@
14829
14915
  direction = "vertical"
14830
14916
  } = $$props;
14831
14917
  let {
14832
- hpadding = 0
14918
+ hpadding = ""
14919
+ } = $$props;
14920
+ let {
14921
+ vpadding = ""
14833
14922
  } = $$props;
14834
14923
  let {
14835
- vpadding = 0
14924
+ maxheight = ""
14836
14925
  } = $$props;
14837
14926
  let {
14838
- height = 0
14927
+ offsetHeight
14839
14928
  } = $$props;
14929
+ let {
14930
+ scrollHeight
14931
+ } = $$props; // Private
14932
+
14933
+ let _el;
14934
+
14935
+ function onScroll(e) {
14936
+ e.target.dispatchEvent(new CustomEvent("_scroll", {
14937
+ composed: true,
14938
+ detail: {
14939
+ offsetHeight: _el.offsetHeight,
14940
+ scrollHeight: _el.scrollHeight,
14941
+ scrollTop: _el.scrollTop
14942
+ }
14943
+ }));
14944
+ e.stopPropagation();
14945
+ }
14946
+
14947
+ onMount(() => {
14948
+ $$invalidate(6, offsetHeight = _el.offsetHeight);
14949
+ $$invalidate(7, scrollHeight = _el.scrollHeight);
14950
+ });
14951
+
14952
+ function div_binding($$value) {
14953
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
14954
+ _el = $$value;
14955
+ $$invalidate(4, _el);
14956
+ });
14957
+ }
14840
14958
 
14841
14959
  $$self.$$set = $$props => {
14842
14960
  if ('direction' in $$props) $$invalidate(0, direction = $$props.direction);
14843
14961
  if ('hpadding' in $$props) $$invalidate(1, hpadding = $$props.hpadding);
14844
14962
  if ('vpadding' in $$props) $$invalidate(2, vpadding = $$props.vpadding);
14845
- if ('height' in $$props) $$invalidate(3, height = $$props.height);
14963
+ if ('maxheight' in $$props) $$invalidate(3, maxheight = $$props.maxheight);
14964
+ if ('offsetHeight' in $$props) $$invalidate(6, offsetHeight = $$props.offsetHeight);
14965
+ if ('scrollHeight' in $$props) $$invalidate(7, scrollHeight = $$props.scrollHeight);
14846
14966
  };
14847
14967
 
14848
- return [direction, hpadding, vpadding, height];
14968
+ return [direction, hpadding, vpadding, maxheight, _el, onScroll, offsetHeight, scrollHeight, div_binding];
14849
14969
  }
14850
14970
 
14851
14971
  class Scrollable extends SvelteElement {
14852
14972
  constructor(options) {
14853
14973
  super();
14854
- this.shadowRoot.innerHTML = `<style>.goa-scrollable{scroll-behavior:smooth;max-height:calc(100vh * var(--max-height, 100) / 100)}.goa-scrollable::-webkit-scrollbar{width:6px}.goa-scrollable::-webkit-scrollbar-track{background:#f1f1f1}.goa-scrollable::-webkit-scrollbar-thumb{background:#888}.goa-scrollable::-webkit-scrollbar-thumb:hover{background:#555}</style>`;
14974
+ this.shadowRoot.innerHTML = `<style>.goa-scrollable{scroll-behavior:smooth}.goa-scrollable::-webkit-scrollbar{width:6px}.goa-scrollable::-webkit-scrollbar-track{background:#f1f1f1}.goa-scrollable::-webkit-scrollbar-thumb{background:#888}.goa-scrollable::-webkit-scrollbar-thumb:hover{background:#555}</style>`;
14855
14975
  init(this, {
14856
14976
  target: this.shadowRoot,
14857
14977
  props: attribute_to_object(this.attributes),
@@ -14860,7 +14980,9 @@
14860
14980
  direction: 0,
14861
14981
  hpadding: 1,
14862
14982
  vpadding: 2,
14863
- height: 3
14983
+ maxheight: 3,
14984
+ offsetHeight: 6,
14985
+ scrollHeight: 7
14864
14986
  }, null);
14865
14987
 
14866
14988
  if (options) {
@@ -14876,7 +14998,7 @@
14876
14998
  }
14877
14999
 
14878
15000
  static get observedAttributes() {
14879
- return ["direction", "hpadding", "vpadding", "height"];
15001
+ return ["direction", "hpadding", "vpadding", "maxheight", "offsetHeight", "scrollHeight"];
14880
15002
  }
14881
15003
 
14882
15004
  get direction() {
@@ -14912,13 +15034,35 @@
14912
15034
  flush();
14913
15035
  }
14914
15036
 
14915
- get height() {
15037
+ get maxheight() {
14916
15038
  return this.$$.ctx[3];
14917
15039
  }
14918
15040
 
14919
- set height(height) {
15041
+ set maxheight(maxheight) {
14920
15042
  this.$$set({
14921
- height
15043
+ maxheight
15044
+ });
15045
+ flush();
15046
+ }
15047
+
15048
+ get offsetHeight() {
15049
+ return this.$$.ctx[6];
15050
+ }
15051
+
15052
+ set offsetHeight(offsetHeight) {
15053
+ this.$$set({
15054
+ offsetHeight
15055
+ });
15056
+ flush();
15057
+ }
15058
+
15059
+ get scrollHeight() {
15060
+ return this.$$.ctx[7];
15061
+ }
15062
+
15063
+ set scrollHeight(scrollHeight) {
15064
+ this.$$set({
15065
+ scrollHeight
14922
15066
  });
14923
15067
  flush();
14924
15068
  }
@@ -18739,7 +18883,6 @@
18739
18883
  }, [el, onClose]);
18740
18884
  return jsxRuntime.jsxs("goa-modal", __assign({
18741
18885
  ref: el,
18742
- heading: heading,
18743
18886
  open: open,
18744
18887
  closable: !!onClose,
18745
18888
  scrollable: true,
@@ -18748,7 +18891,11 @@
18748
18891
  calloutVariant: calloutVariant,
18749
18892
  "data-testid": testId
18750
18893
  }, {
18751
- children: [actions && jsxRuntime.jsx("div", __assign({
18894
+ children: [heading && jsxRuntime.jsx("div", __assign({
18895
+ slot: "heading"
18896
+ }, {
18897
+ children: heading
18898
+ }), void 0), actions && jsxRuntime.jsx("div", __assign({
18752
18899
  slot: "actions"
18753
18900
  }, {
18754
18901
  children: actions