@abgov/react-components 4.0.0-alpha.86 → 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.86",
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"
@@ -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
  };
@@ -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
  };