@abgov/react-components 4.0.0-alpha.132 → 4.0.0-alpha.134

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.132",
3
+ "version": "4.0.0-alpha.134",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -2130,7 +2130,7 @@ function instance$F($$self, $$props, $$invalidate) {
2130
2130
  ml = null
2131
2131
  } = $$props;
2132
2132
  onMount(() => {
2133
- validateType(type);
2133
+ setTimeout(() => validateType(type), 1);
2134
2134
 
2135
2135
  if (!showIcon && !content) {
2136
2136
  console.warn("GoABadge must have either then content or icon property set");
@@ -3563,7 +3563,7 @@ function instance$B($$self, $$props, $$invalidate) {
3563
3563
  testid = ""
3564
3564
  } = $$props;
3565
3565
  onMount(() => {
3566
- validateType(type);
3566
+ setTimeout(() => validateType(type), 1);
3567
3567
  });
3568
3568
 
3569
3569
  $$self.$$set = $$props => {
@@ -12648,7 +12648,7 @@ function instance$h($$self, $$props, $$invalidate) {
12648
12648
  feedbackurl = ""
12649
12649
  } = $$props;
12650
12650
  onMount(() => {
12651
- validateType(type);
12651
+ setTimeout(() => validateType(type), 1);
12652
12652
  });
12653
12653
 
12654
12654
  $$self.$$set = $$props => {
@@ -13686,7 +13686,7 @@ function instance$f($$self, $$props, $$invalidate) {
13686
13686
  } = $$props;
13687
13687
  let show = true;
13688
13688
  onMount(() => {
13689
- validateType(type);
13689
+ setTimeout(() => validateType(type), 1);
13690
13690
  });
13691
13691
 
13692
13692
  function close(e) {
@@ -16376,7 +16376,7 @@ function instance$9($$self, $$props, $$invalidate) {
16376
16376
  ml = null
16377
16377
  } = $$props;
16378
16378
  onMount(() => {
16379
- validateType(type);
16379
+ setTimeout(() => validateType(type), 1);
16380
16380
  validateSize(size);
16381
16381
  });
16382
16382
 
@@ -19012,7 +19012,7 @@ function create_else_block(ctx) {
19012
19012
  }
19013
19013
 
19014
19014
  };
19015
- } // (148:38)
19015
+ } // (152:38)
19016
19016
 
19017
19017
 
19018
19018
  function create_if_block_3(ctx) {
@@ -19034,7 +19034,7 @@ function create_if_block_3(ctx) {
19034
19034
  }
19035
19035
 
19036
19036
  };
19037
- } // (146:36)
19037
+ } // (150:36)
19038
19038
 
19039
19039
 
19040
19040
  function create_if_block_2(ctx) {
@@ -19057,7 +19057,7 @@ function create_if_block_2(ctx) {
19057
19057
  }
19058
19058
 
19059
19059
  };
19060
- } // (144:4) {#if _isCurrent}
19060
+ } // (148:4) {#if _isCurrent}
19061
19061
 
19062
19062
 
19063
19063
  function create_if_block_1(ctx) {
@@ -19079,7 +19079,7 @@ function create_if_block_1(ctx) {
19079
19079
  }
19080
19080
 
19081
19081
  };
19082
- } // (156:4) {#if status === "incomplete"}
19082
+ } // (160:4) {#if status === "incomplete"}
19083
19083
 
19084
19084
 
19085
19085
  function create_if_block(ctx) {
@@ -19171,6 +19171,7 @@ function create_fragment$1(ctx) {
19171
19171
  /*arialabel*/
19172
19172
  ctx[2]);
19173
19173
  attr(label, "role", "listitem");
19174
+ attr(label, "tabindex", "-1");
19174
19175
  attr(label, "for",
19175
19176
  /*text*/
19176
19177
  ctx[0]);
@@ -19429,10 +19430,10 @@ function instance$1($$self, $$props, $$invalidate) {
19429
19430
  class FormStep extends SvelteElement {
19430
19431
  constructor(options) {
19431
19432
  super();
19432
- this.shadowRoot.innerHTML = `<style>input[type=checkbox]{position:absolute;left:-9999px}[role="listitem"]{display:flex;box-sizing:border-box;height:100%;text-align:center;flex-direction:column;align-items:center;padding:var(--goa-space-l)}[role="listitem"]:not([aria-disabled="true"]):focus-within{outline:var(--goa-color-interactive-focus) solid var(--goa-border-width-l)}[role="listitem"]:not([aria-disabled="true"]):hover{background-color:rgba(0,0,0,0.05);cursor:pointer}.status{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:999px;border:4px solid var(--goa-color-interactive-default);background:var(--goa-color-greyscale-white);height:2.5rem;width:2.5rem}[aria-current="step"] .text{font-weight:var(--goa-font-weight-bold)
19433
+ this.shadowRoot.innerHTML = `<style>input[type=checkbox]{position:absolute;left:-9999px}[role="listitem"]{display:flex;box-sizing:border-box;height:100%;text-align:center;flex-direction:column;align-items:center;padding:var(--goa-space-l)}[role="listitem"]:not([aria-disabled="true"]):focus-within,[role="listitem"]:not([aria-disabled="true"]):focus,[role="listitem"]:not([aria-disabled="true"]):active{outline:var(--goa-color-interactive-focus) solid var(--goa-border-width-l)}[role="listitem"]:not([aria-disabled="true"]):hover{background-color:rgba(0,0,0,0.05);cursor:pointer}.status{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:999px;border:4px solid var(--goa-color-interactive-default);background:var(--goa-color-greyscale-white);height:2.5rem;width:2.5rem}[aria-current="step"] .text{font-weight:var(--goa-font-weight-bold)
19433
19434
  }[data-status=complete] .status{background-color:var(--goa-color-interactive-default)}[aria-current="step"][data-status=complete] .status{background:var(--goa-color-greyscale-white)}.step-number{margin-bottom:var(--font-valign-fix);font-weight:var(--goa-font-weight-bold);color:var(--goa-color-text-secondary)}[role="listitem"]:not(
19434
- [data-status=complete],
19435
- [data-status=incomplete],
19435
+ [data-status=complete],
19436
+ [data-status=incomplete],
19436
19437
  [aria-current="step"]
19437
19438
  ) .status{border-color:var(--goa-color-greyscale-500)}.text{font:var(--goa-typography-body-s)}.subtext{margin-top:0.25rem;font:var(--goa-typography-body-xs);color:var(--goa-color-text-secondary)}.details{margin-top:0.75rem}@media(max-width: 639px){[role="listitem"]{flex-direction:row;align-items:center;text-align:start}.details{margin-left:1rem;margin-top:0}}</style>`;
19438
19439
  init(this, {
@@ -2171,7 +2171,7 @@
2171
2171
  ml = null
2172
2172
  } = $$props;
2173
2173
  onMount(() => {
2174
- validateType(type);
2174
+ setTimeout(() => validateType(type), 1);
2175
2175
 
2176
2176
  if (!showIcon && !content) {
2177
2177
  console.warn("GoABadge must have either then content or icon property set");
@@ -3604,7 +3604,7 @@
3604
3604
  testid = ""
3605
3605
  } = $$props;
3606
3606
  onMount(() => {
3607
- validateType(type);
3607
+ setTimeout(() => validateType(type), 1);
3608
3608
  });
3609
3609
 
3610
3610
  $$self.$$set = $$props => {
@@ -12694,7 +12694,7 @@
12694
12694
  feedbackurl = ""
12695
12695
  } = $$props;
12696
12696
  onMount(() => {
12697
- validateType(type);
12697
+ setTimeout(() => validateType(type), 1);
12698
12698
  });
12699
12699
 
12700
12700
  $$self.$$set = $$props => {
@@ -13732,7 +13732,7 @@
13732
13732
  } = $$props;
13733
13733
  let show = true;
13734
13734
  onMount(() => {
13735
- validateType(type);
13735
+ setTimeout(() => validateType(type), 1);
13736
13736
  });
13737
13737
 
13738
13738
  function close(e) {
@@ -16425,7 +16425,7 @@
16425
16425
  ml = null
16426
16426
  } = $$props;
16427
16427
  onMount(() => {
16428
- validateType(type);
16428
+ setTimeout(() => validateType(type), 1);
16429
16429
  validateSize(size);
16430
16430
  });
16431
16431
 
@@ -19062,7 +19062,7 @@
19062
19062
  }
19063
19063
 
19064
19064
  };
19065
- } // (148:38)
19065
+ } // (152:38)
19066
19066
 
19067
19067
 
19068
19068
  function create_if_block_3(ctx) {
@@ -19084,7 +19084,7 @@
19084
19084
  }
19085
19085
 
19086
19086
  };
19087
- } // (146:36)
19087
+ } // (150:36)
19088
19088
 
19089
19089
 
19090
19090
  function create_if_block_2(ctx) {
@@ -19107,7 +19107,7 @@
19107
19107
  }
19108
19108
 
19109
19109
  };
19110
- } // (144:4) {#if _isCurrent}
19110
+ } // (148:4) {#if _isCurrent}
19111
19111
 
19112
19112
 
19113
19113
  function create_if_block_1(ctx) {
@@ -19129,7 +19129,7 @@
19129
19129
  }
19130
19130
 
19131
19131
  };
19132
- } // (156:4) {#if status === "incomplete"}
19132
+ } // (160:4) {#if status === "incomplete"}
19133
19133
 
19134
19134
 
19135
19135
  function create_if_block(ctx) {
@@ -19221,6 +19221,7 @@
19221
19221
  /*arialabel*/
19222
19222
  ctx[2]);
19223
19223
  attr(label, "role", "listitem");
19224
+ attr(label, "tabindex", "-1");
19224
19225
  attr(label, "for",
19225
19226
  /*text*/
19226
19227
  ctx[0]);
@@ -19479,10 +19480,10 @@
19479
19480
  class FormStep extends SvelteElement {
19480
19481
  constructor(options) {
19481
19482
  super();
19482
- this.shadowRoot.innerHTML = `<style>input[type=checkbox]{position:absolute;left:-9999px}[role="listitem"]{display:flex;box-sizing:border-box;height:100%;text-align:center;flex-direction:column;align-items:center;padding:var(--goa-space-l)}[role="listitem"]:not([aria-disabled="true"]):focus-within{outline:var(--goa-color-interactive-focus) solid var(--goa-border-width-l)}[role="listitem"]:not([aria-disabled="true"]):hover{background-color:rgba(0,0,0,0.05);cursor:pointer}.status{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:999px;border:4px solid var(--goa-color-interactive-default);background:var(--goa-color-greyscale-white);height:2.5rem;width:2.5rem}[aria-current="step"] .text{font-weight:var(--goa-font-weight-bold)
19483
+ this.shadowRoot.innerHTML = `<style>input[type=checkbox]{position:absolute;left:-9999px}[role="listitem"]{display:flex;box-sizing:border-box;height:100%;text-align:center;flex-direction:column;align-items:center;padding:var(--goa-space-l)}[role="listitem"]:not([aria-disabled="true"]):focus-within,[role="listitem"]:not([aria-disabled="true"]):focus,[role="listitem"]:not([aria-disabled="true"]):active{outline:var(--goa-color-interactive-focus) solid var(--goa-border-width-l)}[role="listitem"]:not([aria-disabled="true"]):hover{background-color:rgba(0,0,0,0.05);cursor:pointer}.status{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:999px;border:4px solid var(--goa-color-interactive-default);background:var(--goa-color-greyscale-white);height:2.5rem;width:2.5rem}[aria-current="step"] .text{font-weight:var(--goa-font-weight-bold)
19483
19484
  }[data-status=complete] .status{background-color:var(--goa-color-interactive-default)}[aria-current="step"][data-status=complete] .status{background:var(--goa-color-greyscale-white)}.step-number{margin-bottom:var(--font-valign-fix);font-weight:var(--goa-font-weight-bold);color:var(--goa-color-text-secondary)}[role="listitem"]:not(
19484
- [data-status=complete],
19485
- [data-status=incomplete],
19485
+ [data-status=complete],
19486
+ [data-status=incomplete],
19486
19487
  [aria-current="step"]
19487
19488
  ) .status{border-color:var(--goa-color-greyscale-500)}.text{font:var(--goa-typography-body-s)}.subtext{margin-top:0.25rem;font:var(--goa-typography-body-xs);color:var(--goa-color-text-secondary)}.details{margin-top:0.75rem}@media(max-width: 639px){[role="listitem"]{flex-direction:row;align-items:center;text-align:start}.details{margin-left:1rem;margin-top:0}}</style>`;
19488
19489
  init(this, {