@abgov/react-components 4.0.0-alpha.37 → 4.0.0-alpha.38

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.
@@ -2,8 +2,8 @@ import React, { FC, ReactNode } from 'react';
2
2
  import './button.css';
3
3
  import { GoAIconType } from '../icons';
4
4
  export declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'start';
5
- export declare type ButtonSize = 'compact' | '';
6
- export declare type ButtonVariant = '' | 'destructive';
5
+ export declare type ButtonSize = 'compact' | 'normal';
6
+ export declare type ButtonVariant = 'normal' | 'destructive';
7
7
  interface WCProps {
8
8
  type?: ButtonType;
9
9
  size?: ButtonSize;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.37",
3
+ "version": "4.0.0-alpha.38",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -2115,8 +2115,8 @@ function instance$w($$self, $$props, $$invalidate) {
2115
2115
  let isDisabled;
2116
2116
  let isButtonDark;
2117
2117
  const BUTTON_TYPES = ["primary", "secondary", "tertiary", "start"];
2118
- const SIZES = ["", "compact"];
2119
- const VARIANTS = ["", "destructive"]; // type check functions
2118
+ const SIZES = ["normal", "compact"];
2119
+ const VARIANTS = ["normal", "destructive"]; // type check functions
2120
2120
 
2121
2121
  function isButtonType(value) {
2122
2122
  return BUTTON_TYPES.includes(value);
@@ -2134,10 +2134,10 @@ function instance$w($$self, $$props, $$invalidate) {
2134
2134
  type = "primary"
2135
2135
  } = $$props;
2136
2136
  let {
2137
- size = ""
2137
+ size = "normal"
2138
2138
  } = $$props;
2139
2139
  let {
2140
- variant = ""
2140
+ variant = "normal"
2141
2141
  } = $$props;
2142
2142
  let {
2143
2143
  title = ""
@@ -14081,8 +14081,8 @@ const GoAButton = ({
14081
14081
  title,
14082
14082
  disabled: _disabled = false,
14083
14083
  type: _type = 'primary',
14084
- size: _size = '',
14085
- variant: _variant = '',
14084
+ size,
14085
+ variant,
14086
14086
  leadingIcon,
14087
14087
  trailingIcon,
14088
14088
  children,
@@ -14109,8 +14109,8 @@ const GoAButton = ({
14109
14109
  ref: el,
14110
14110
  role: "button",
14111
14111
  type: _type,
14112
- size: _size,
14113
- variant: _variant,
14112
+ size: size,
14113
+ variant: variant,
14114
14114
  disabled: _disabled,
14115
14115
  title: title,
14116
14116
  leadingicon: leadingIcon,
@@ -2170,8 +2170,8 @@
2170
2170
  let isDisabled;
2171
2171
  let isButtonDark;
2172
2172
  const BUTTON_TYPES = ["primary", "secondary", "tertiary", "start"];
2173
- const SIZES = ["", "compact"];
2174
- const VARIANTS = ["", "destructive"]; // type check functions
2173
+ const SIZES = ["normal", "compact"];
2174
+ const VARIANTS = ["normal", "destructive"]; // type check functions
2175
2175
 
2176
2176
  function isButtonType(value) {
2177
2177
  return BUTTON_TYPES.includes(value);
@@ -2189,10 +2189,10 @@
2189
2189
  type = "primary"
2190
2190
  } = $$props;
2191
2191
  let {
2192
- size = ""
2192
+ size = "normal"
2193
2193
  } = $$props;
2194
2194
  let {
2195
- variant = ""
2195
+ variant = "normal"
2196
2196
  } = $$props;
2197
2197
  let {
2198
2198
  title = ""
@@ -14128,10 +14128,8 @@
14128
14128
  disabled = _b === void 0 ? false : _b,
14129
14129
  _c = _a.type,
14130
14130
  type = _c === void 0 ? 'primary' : _c,
14131
- _d = _a.size,
14132
- size = _d === void 0 ? '' : _d,
14133
- _e = _a.variant,
14134
- variant = _e === void 0 ? '' : _e,
14131
+ size = _a.size,
14132
+ variant = _a.variant,
14135
14133
  leadingIcon = _a.leadingIcon,
14136
14134
  trailingIcon = _a.trailingIcon,
14137
14135
  children = _a.children,