@abgov/react-components 4.0.0-alpha.45 → 4.0.0-alpha.48

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
1
  import React, { FC } from 'react';
2
2
  interface WCProps {
3
3
  label: string;
4
- optional?: boolean;
4
+ optional?: string;
5
5
  error?: string;
6
6
  helptext?: string;
7
7
  }
@@ -3,7 +3,7 @@ import { GoAIconType } from '../..';
3
3
  declare type GoAInputType = "text" | "number" | "password" | "email" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
4
4
  interface WCProps {
5
5
  ref?: React.MutableRefObject<HTMLInputElement | null>;
6
- type: GoAInputType;
6
+ type?: GoAInputType;
7
7
  name: string;
8
8
  value: string;
9
9
  id?: string;
@@ -58,7 +58,7 @@ interface Props {
58
58
  step?: number;
59
59
  }
60
60
  export declare const GoAInput: FC<Props & {
61
- type: GoAInputType;
61
+ type?: GoAInputType;
62
62
  }>;
63
63
  export declare const GoAInputText: FC<Props>;
64
64
  export declare const GoAInputPassword: FC<Props>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.45",
3
+ "version": "4.0.0-alpha.48",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -14052,7 +14052,6 @@ const GoAButton = ({
14052
14052
  }, [el, onClick]);
14053
14053
  return jsx("goa-button", Object.assign({
14054
14054
  ref: el,
14055
- role: "button",
14056
14055
  type: _type,
14057
14056
  size: size,
14058
14057
  variant: variant,
@@ -14317,7 +14316,7 @@ const GoAFormItem = ({
14317
14316
  return jsx("goa-form-item", Object.assign({
14318
14317
  label: label,
14319
14318
  error: error,
14320
- optional: optional,
14319
+ optional: optional ? "true" : "false",
14321
14320
  helptext: helpText
14322
14321
  }, {
14323
14322
  children: children
@@ -14133,7 +14133,6 @@
14133
14133
  }, [el, onClick]);
14134
14134
  return jsxRuntime.jsx("goa-button", __assign({
14135
14135
  ref: el,
14136
- role: "button",
14137
14136
  type: type,
14138
14137
  size: size,
14139
14138
  variant: variant,
@@ -14392,7 +14391,7 @@
14392
14391
  return jsxRuntime.jsx("goa-form-item", __assign({
14393
14392
  label: label,
14394
14393
  error: error,
14395
- optional: optional,
14394
+ optional: optional ? "true" : "false",
14396
14395
  helptext: helpText
14397
14396
  }, {
14398
14397
  children: children