@abgov/react-components 3.4.0-alpha.33 → 3.4.0-alpha.34

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.
package/index.d.ts CHANGED
@@ -20,7 +20,7 @@ import { GoAModal } from './lib/modal/modal';
20
20
  import { GoANotification } from './lib/notification/notification';
21
21
  import { GoAPageBlock } from './lib/page-block/page-block';
22
22
  import { GoAPageLoader } from './lib/page-loader/page-loader';
23
- import { GoARadioGroup, GoARadio } from './lib/radio-group/radio-group';
23
+ import { GoARadioGroup, GoARadioItem } from './lib/radio-group/radio-group';
24
24
  import { GoAServiceLevelHeader } from './lib/service-level-header/service-level-header';
25
25
  import { GoATextArea } from './lib/textarea/textarea';
26
26
  import { GoASpinner } from './lib/spinner/spinner';
@@ -28,4 +28,4 @@ import type { GoAIconType } from './lib/icons';
28
28
  import type { GoABadgeType } from './lib/badge/badge';
29
29
  export type { GoAIconType };
30
30
  export type { GoABadgeType };
31
- export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAModal, GoANotification, GoAPageBlock, GoAPageLoader, GoARadio, GoARadioGroup, GoAServiceLevelHeader, GoASuccessBadge, GoASpinner, GoATextArea, GoAWarningBadge, };
31
+ export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAModal, GoANotification, GoAPageBlock, GoAPageLoader, GoARadioItem, GoARadioGroup, GoAServiceLevelHeader, GoASuccessBadge, GoASpinner, GoATextArea, GoAWarningBadge, };
@@ -5,6 +5,8 @@ interface RadioGroupProps {
5
5
  name: string;
6
6
  value?: string;
7
7
  orientation: string;
8
+ disabled: boolean;
9
+ error: boolean;
8
10
  }
9
11
  declare global {
10
12
  namespace JSX {
@@ -19,6 +21,7 @@ interface Props {
19
21
  disabled?: boolean;
20
22
  orientation?: 'horizontal' | 'vertical';
21
23
  testId?: string;
24
+ error?: boolean;
22
25
  onChange: (name: string, value: string) => void;
23
26
  }
24
27
  export declare const GoARadioGroup: FC<Props>;
@@ -23,5 +23,5 @@ interface Props {
23
23
  error?: boolean;
24
24
  testId?: string;
25
25
  }
26
- export declare const GoARadio: FC<Props>;
27
- export default GoARadio;
26
+ export declare const GoARadioItem: FC<Props>;
27
+ export default GoARadioItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "3.4.0-alpha.33",
3
+ "version": "3.4.0-alpha.34",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -647,7 +647,7 @@ const GoAPageLoader = ({
647
647
  }, void 0);
648
648
  };
649
649
 
650
- const GoARadio = ({
650
+ const GoARadioItem = ({
651
651
  name,
652
652
  label,
653
653
  value,
@@ -675,6 +675,8 @@ const GoARadioGroup = ({
675
675
  value,
676
676
  children,
677
677
  orientation: _orientation = 'vertical',
678
+ disabled: _disabled = false,
679
+ error: _error = false,
678
680
  testId,
679
681
  onChange
680
682
  }) => {
@@ -699,7 +701,9 @@ const GoARadioGroup = ({
699
701
  ref: el,
700
702
  name: name,
701
703
  value: value,
702
- orientation: _orientation
704
+ orientation: _orientation,
705
+ disabled: _disabled,
706
+ error: _error
703
707
  }, {
704
708
  children: children
705
709
  }), void 0);
@@ -776,4 +780,4 @@ const GoASpinner = ({
776
780
  }, void 0);
777
781
  };
778
782
 
779
- export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAModal, GoANotification, GoAPageBlock, GoAPageLoader, GoARadio, GoARadioGroup, GoAServiceLevelHeader, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge };
783
+ export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAModal, GoANotification, GoAPageBlock, GoAPageLoader, GoARadioGroup, GoARadioItem, GoAServiceLevelHeader, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge };
@@ -655,7 +655,7 @@
655
655
  }, void 0);
656
656
  };
657
657
 
658
- var GoARadio = function GoARadio(_a) {
658
+ var GoARadioItem = function GoARadioItem(_a) {
659
659
  var name = _a.name,
660
660
  label = _a.label,
661
661
  value = _a.value,
@@ -683,6 +683,10 @@
683
683
  children = _a.children,
684
684
  _b = _a.orientation,
685
685
  orientation = _b === void 0 ? 'vertical' : _b,
686
+ _c = _a.disabled,
687
+ disabled = _c === void 0 ? false : _c,
688
+ _d = _a.error,
689
+ error = _d === void 0 ? false : _d,
686
690
  testId = _a.testId,
687
691
  onChange = _a.onChange;
688
692
  var el = React.useRef(null);
@@ -706,7 +710,9 @@
706
710
  ref: el,
707
711
  name: name,
708
712
  value: value,
709
- orientation: orientation
713
+ orientation: orientation,
714
+ disabled: disabled,
715
+ error: error
710
716
  }, {
711
717
  children: children
712
718
  }), void 0);
@@ -814,8 +820,8 @@
814
820
  exports.GoANotification = GoANotification;
815
821
  exports.GoAPageBlock = GoAPageBlock;
816
822
  exports.GoAPageLoader = GoAPageLoader;
817
- exports.GoARadio = GoARadio;
818
823
  exports.GoARadioGroup = GoARadioGroup;
824
+ exports.GoARadioItem = GoARadioItem;
819
825
  exports.GoAServiceLevelHeader = GoAServiceLevelHeader;
820
826
  exports.GoASpinner = GoASpinner;
821
827
  exports.GoASuccessBadge = GoASuccessBadge;