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

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.23",
3
+ "version": "4.0.0-alpha.24",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -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
 
@@ -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
 
@@ -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
  };
@@ -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
 
@@ -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
 
@@ -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
  };