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

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
  }
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.46",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -14317,7 +14317,7 @@ const GoAFormItem = ({
14317
14317
  return jsx("goa-form-item", Object.assign({
14318
14318
  label: label,
14319
14319
  error: error,
14320
- optional: optional,
14320
+ optional: optional ? "true" : "false",
14321
14321
  helptext: helpText
14322
14322
  }, {
14323
14323
  children: children
@@ -14392,7 +14392,7 @@
14392
14392
  return jsxRuntime.jsx("goa-form-item", __assign({
14393
14393
  label: label,
14394
14394
  error: error,
14395
- optional: optional,
14395
+ optional: optional ? "true" : "false",
14396
14396
  helptext: helpText
14397
14397
  }, {
14398
14398
  children: children