@abgov/react-components 4.0.0-alpha.84 → 4.0.0-alpha.85

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.84",
3
+ "version": "4.0.0-alpha.85",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -9879,7 +9879,7 @@ function create_if_block$4(ctx) {
9879
9879
  let dispose;
9880
9880
  let if_block0 =
9881
9881
  /*calloutvariant*/
9882
- ctx[3] !== "" && create_if_block_4(ctx);
9882
+ ctx[3] !== null && create_if_block_4(ctx);
9883
9883
  let if_block1 =
9884
9884
  /*heading*/
9885
9885
  ctx[0] && create_if_block_3(ctx);
@@ -9972,7 +9972,7 @@ function create_if_block$4(ctx) {
9972
9972
 
9973
9973
  if (
9974
9974
  /*calloutvariant*/
9975
- ctx[3] !== "") {
9975
+ ctx[3] !== null) {
9976
9976
  if (if_block0) {
9977
9977
  if_block0.p(ctx, dirty);
9978
9978
  } else {
@@ -10102,7 +10102,7 @@ function create_if_block$4(ctx) {
10102
10102
  }
10103
10103
 
10104
10104
  };
10105
- } // (65:8) {#if calloutvariant !== ""}
10105
+ } // (65:8) {#if calloutvariant !== null}
10106
10106
 
10107
10107
 
10108
10108
  function create_if_block_4(ctx) {
@@ -10406,7 +10406,7 @@ function instance$b($$self, $$props, $$invalidate) {
10406
10406
  class Modal extends SvelteElement {
10407
10407
  constructor(options) {
10408
10408
  super();
10409
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.modal{font-family:var(--font-family);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-status-emergency)}.important{background-color:var(--goa-color-status-warning)}.information{background-color:var(--goa-color-status-info)}.event{background-color:var(--goa-color-status-info)}.success{background-color:var(--goa-color-status-success)}.callout-bar{flex:0 0 3rem;text-align:center;padding-top:2rem}.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(--shadow-2);border-radius:4px;max-height:90%}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch);max-height:80%}}.modal-actions{margin:1.5rem 0 0}.modal-actions:empty{margin:0}.modal-close{position:absolute;top:2rem;right:2rem}.modal-title{font-size:var(--fs-xl);margin:0 0 1.5rem;margin-right:40px;flex:0 0 auto}.modal-content{line-height:1.75rem}</style>`;
10409
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.modal{font-family:var(--font-family);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-status-emergency)}.important{background-color:var(--goa-color-status-warning)}.information{background-color:var(--goa-color-status-info)}.event{background-color:var(--goa-color-status-info)}.success{background-color:var(--goa-color-status-success)}.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:6px 6px 6px rgba(0, 0, 0, 0.16);border-radius:4px;max-height:90%;border:1px solid var(--color-gray-600)}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch);max-height:80%}}.modal-actions ::slotted(div){margin:1.5rem 0 0}.modal-close{position:absolute;top:2rem;right:2rem}.modal-title{font-size:var(--fs-xl);margin:0 0 1.5rem;margin-right:40px;flex:0 0 auto}.modal-content{line-height:1.75rem}</style>`;
10410
10410
  init(this, {
10411
10411
  target: this.shadowRoot,
10412
10412
  props: attribute_to_object(this.attributes),
@@ -9926,7 +9926,7 @@
9926
9926
  let dispose;
9927
9927
  let if_block0 =
9928
9928
  /*calloutvariant*/
9929
- ctx[3] !== "" && create_if_block_4(ctx);
9929
+ ctx[3] !== null && create_if_block_4(ctx);
9930
9930
  let if_block1 =
9931
9931
  /*heading*/
9932
9932
  ctx[0] && create_if_block_3(ctx);
@@ -10019,7 +10019,7 @@
10019
10019
 
10020
10020
  if (
10021
10021
  /*calloutvariant*/
10022
- ctx[3] !== "") {
10022
+ ctx[3] !== null) {
10023
10023
  if (if_block0) {
10024
10024
  if_block0.p(ctx, dirty);
10025
10025
  } else {
@@ -10149,7 +10149,7 @@
10149
10149
  }
10150
10150
 
10151
10151
  };
10152
- } // (65:8) {#if calloutvariant !== ""}
10152
+ } // (65:8) {#if calloutvariant !== null}
10153
10153
 
10154
10154
 
10155
10155
  function create_if_block_4(ctx) {
@@ -10453,7 +10453,7 @@
10453
10453
  class Modal extends SvelteElement {
10454
10454
  constructor(options) {
10455
10455
  super();
10456
- this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.modal{font-family:var(--font-family);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-status-emergency)}.important{background-color:var(--goa-color-status-warning)}.information{background-color:var(--goa-color-status-info)}.event{background-color:var(--goa-color-status-info)}.success{background-color:var(--goa-color-status-success)}.callout-bar{flex:0 0 3rem;text-align:center;padding-top:2rem}.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(--shadow-2);border-radius:4px;max-height:90%}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch);max-height:80%}}.modal-actions{margin:1.5rem 0 0}.modal-actions:empty{margin:0}.modal-close{position:absolute;top:2rem;right:2rem}.modal-title{font-size:var(--fs-xl);margin:0 0 1.5rem;margin-right:40px;flex:0 0 auto}.modal-content{line-height:1.75rem}</style>`;
10456
+ this.shadowRoot.innerHTML = `<style>:host{box-sizing:border-box;font-family:var(--font-family)}.modal{font-family:var(--font-family);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-status-emergency)}.important{background-color:var(--goa-color-status-warning)}.information{background-color:var(--goa-color-status-info)}.event{background-color:var(--goa-color-status-info)}.success{background-color:var(--goa-color-status-success)}.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:6px 6px 6px rgba(0, 0, 0, 0.16);border-radius:4px;max-height:90%;border:1px solid var(--color-gray-600)}@media(min-width: 640px){.modal-pane{width:var(--width, 60ch);max-height:80%}}.modal-actions ::slotted(div){margin:1.5rem 0 0}.modal-close{position:absolute;top:2rem;right:2rem}.modal-title{font-size:var(--fs-xl);margin:0 0 1.5rem;margin-right:40px;flex:0 0 auto}.modal-content{line-height:1.75rem}</style>`;
10457
10457
  init(this, {
10458
10458
  target: this.shadowRoot,
10459
10459
  props: attribute_to_object(this.attributes),