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

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.
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
2
- declare type DividerSpacing = "small" | "medium" | "large";
1
+ import React from "react";
2
+ export declare type DividerSpacing = "small" | "medium" | "large" | "none";
3
3
  interface WCDividerProps {
4
- spacing: DividerSpacing;
4
+ spacing?: DividerSpacing;
5
5
  }
6
6
  declare global {
7
7
  namespace JSX {
@@ -11,7 +11,7 @@ declare global {
11
11
  }
12
12
  }
13
13
  export interface DividerProps {
14
- spacing: DividerSpacing;
14
+ spacing?: DividerSpacing;
15
15
  }
16
16
  export declare function GoADivider(props: DividerProps): JSX.Element;
17
17
  export default GoADivider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.85",
3
+ "version": "4.0.0-alpha.87",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -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;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>`;
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-content ::slotted(:last-child){margin-bottom:0 !important}.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),
@@ -13894,9 +13894,9 @@ function instance($$self, $$props, $$invalidate) {
13894
13894
  let _spacing;
13895
13895
 
13896
13896
  let {
13897
- spacing = ""
13897
+ spacing = "small"
13898
13898
  } = $$props;
13899
- const SPACING = ["small", "medium", "large"];
13899
+ const SPACING = ["small", "medium", "large", "none"];
13900
13900
 
13901
13901
  function isSpacing(value) {
13902
13902
  return SPACING.includes(value);
@@ -13919,7 +13919,8 @@ function instance($$self, $$props, $$invalidate) {
13919
13919
  $$invalidate(0, _spacing = {
13920
13920
  small: "1rem",
13921
13921
  medium: "2rem",
13922
- large: "4rem"
13922
+ large: "4rem",
13923
+ none: "0rem"
13923
13924
  }[spacing]);
13924
13925
  }
13925
13926
  };
@@ -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;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>`;
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-content ::slotted(:last-child){margin-bottom:0 !important}.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),
@@ -13943,9 +13943,9 @@
13943
13943
  let _spacing;
13944
13944
 
13945
13945
  let {
13946
- spacing = ""
13946
+ spacing = "small"
13947
13947
  } = $$props;
13948
- const SPACING = ["small", "medium", "large"];
13948
+ const SPACING = ["small", "medium", "large", "none"];
13949
13949
 
13950
13950
  function isSpacing(value) {
13951
13951
  return SPACING.includes(value);
@@ -13968,7 +13968,8 @@
13968
13968
  $$invalidate(0, _spacing = {
13969
13969
  small: "1rem",
13970
13970
  medium: "2rem",
13971
- large: "4rem"
13971
+ large: "4rem",
13972
+ none: "0rem"
13972
13973
  }[spacing]);
13973
13974
  }
13974
13975
  };