@abgov/react-components 8.0.0-dev.1 → 8.0.0-dev.3

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.
@@ -21,8 +21,8 @@ declare module "react" {
21
21
  }
22
22
  }
23
23
  export interface GoabFormItemProps extends Margins, DataAttributes {
24
- /** Creates a label for the form item. */
25
- label?: string;
24
+ /** Creates a label for the form item. HTML content must be phrasing content, such as span, strong, or em elements. */
25
+ label?: string | React.ReactNode;
26
26
  /** Sets the label size. 'regular' for standard, 'large' for emphasis. @default "regular" */
27
27
  labelSize?: GoabFormItemLabelSize;
28
28
  /** Marks the field with an optional or required label indicator. */
@@ -47,5 +47,5 @@ export interface GoabFormItemProps extends Margins, DataAttributes {
47
47
  id?: string;
48
48
  }
49
49
  /** Wraps an input control with a text label, requirement label, helper text, and error text. */
50
- export declare function GoabFormItem({ error, helpText, publicFormSummaryOrder, children, type, ...rest }: GoabFormItemProps): JSX.Element;
50
+ export declare function GoabFormItem({ label, error, helpText, publicFormSummaryOrder, children, type, ...rest }: GoabFormItemProps): JSX.Element;
51
51
  export default GoabFormItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "8.0.0-dev.1",
3
+ "version": "8.0.0-dev.3",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"