@abgov/react-components 3.4.0-alpha.32 → 3.4.0-alpha.35

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;
@@ -10,10 +10,12 @@ export declare type ServiceLevel = 'alpha' | 'beta' | 'live';
10
10
  interface WebComponentProps {
11
11
  level: ServiceLevel;
12
12
  version?: string;
13
+ feedbackurl?: string;
13
14
  }
14
15
  export interface HeaderProps {
15
16
  level: ServiceLevel;
16
17
  version?: string;
18
+ feedbackUrl?: string;
17
19
  }
18
20
  export declare const GoAServiceLevelHeader: FC<HeaderProps>;
19
21
  export default GoAServiceLevelHeader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "3.4.0-alpha.32",
3
+ "version": "3.4.0-alpha.35",
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);
@@ -707,11 +711,13 @@ const GoARadioGroup = ({
707
711
 
708
712
  const GoAServiceLevelHeader = ({
709
713
  level,
710
- version
714
+ version,
715
+ feedbackUrl
711
716
  }) => {
712
717
  return jsx("goa-service-level-header", {
713
718
  level: level,
714
- version: version
719
+ version: version,
720
+ feedbackurl: feedbackUrl
715
721
  }, void 0);
716
722
  };
717
723
 
@@ -774,4 +780,4 @@ const GoASpinner = ({
774
780
  }, void 0);
775
781
  };
776
782
 
777
- 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);
@@ -714,10 +720,12 @@
714
720
 
715
721
  var GoAServiceLevelHeader = function GoAServiceLevelHeader(_a) {
716
722
  var level = _a.level,
717
- version = _a.version;
723
+ version = _a.version,
724
+ feedbackUrl = _a.feedbackUrl;
718
725
  return jsxRuntime.jsx("goa-service-level-header", {
719
726
  level: level,
720
- version: version
727
+ version: version,
728
+ feedbackurl: feedbackUrl
721
729
  }, void 0);
722
730
  };
723
731
 
@@ -812,8 +820,8 @@
812
820
  exports.GoANotification = GoANotification;
813
821
  exports.GoAPageBlock = GoAPageBlock;
814
822
  exports.GoAPageLoader = GoAPageLoader;
815
- exports.GoARadio = GoARadio;
816
823
  exports.GoARadioGroup = GoARadioGroup;
824
+ exports.GoARadioItem = GoARadioItem;
817
825
  exports.GoAServiceLevelHeader = GoAServiceLevelHeader;
818
826
  exports.GoASpinner = GoASpinner;
819
827
  exports.GoASuccessBadge = GoASuccessBadge;