@abgov/react-components 3.4.0-alpha.41 → 3.4.0-alpha.42

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
@@ -19,7 +19,7 @@ import { GoAInput, GoAInputText, GoAInputPassword, GoAInputDate, GoAInputTime, G
19
19
  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
- import { GoAPageLoader } from './lib/page-loader/page-loader';
22
+ import { GoACircularProgress } from './lib/circular-progress/circular-progress';
23
23
  import { GoARadioGroup, GoARadioItem } from './lib/radio-group/radio-group';
24
24
  import { GoAMicrositeHeader } from './lib/microsite-header/microsite-header';
25
25
  import { GoATextArea } from './lib/textarea/textarea';
@@ -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, GoARadioItem, GoARadioGroup, GoAMicrositeHeader, 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, GoACircularProgress, GoARadioItem, GoARadioGroup, GoAMicrositeHeader, GoASuccessBadge, GoASpinner, GoATextArea, GoAWarningBadge, };
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ export declare type CircularProgressType = 'infinite' | 'progress';
3
+ export declare type CircularProgressVariant = "fullscreen" | "inline";
4
+ interface WCProps {
5
+ type?: CircularProgressType;
6
+ variant?: CircularProgressVariant;
7
+ message?: string;
8
+ visible?: string;
9
+ progress?: number;
10
+ }
11
+ declare global {
12
+ namespace JSX {
13
+ interface IntrinsicElements {
14
+ 'goa-circular-progress': WCProps & React.HTMLAttributes<HTMLElement>;
15
+ }
16
+ }
17
+ }
18
+ export interface CircularProgressProps {
19
+ type?: CircularProgressType;
20
+ variant?: CircularProgressVariant;
21
+ message?: string;
22
+ visible?: boolean;
23
+ progress?: number;
24
+ }
25
+ export declare const GoACircularProgress: ({ type, visible, message, progress, variant }: CircularProgressProps) => JSX.Element;
26
+ export default GoACircularProgress;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "3.4.0-alpha.41",
3
+ "version": "3.4.0-alpha.42",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -629,16 +629,16 @@ const GoAPageBlock = ({
629
629
  }, void 0);
630
630
  };
631
631
 
632
- const GoAPageLoader = ({
632
+ const GoACircularProgress = ({
633
633
  type,
634
634
  visible,
635
635
  message,
636
636
  progress,
637
637
  variant
638
638
  }) => {
639
- return jsx("goa-page-loader", {
639
+ return jsx("goa-circular-progress", {
640
640
  type: type,
641
- visible: visible,
641
+ visible: visible ? "true" : "false",
642
642
  message: message,
643
643
  progress: progress,
644
644
  variant: variant
@@ -778,4 +778,4 @@ const GoASpinner = ({
778
778
  }, void 0);
779
779
  };
780
780
 
781
- 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, GoAMicrositeHeader, GoAModal, GoANotification, GoAPageBlock, GoAPageLoader, GoARadioGroup, GoARadioItem, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge };
781
+ export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoACircularProgress, 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, GoAMicrositeHeader, GoAModal, GoANotification, GoAPageBlock, GoARadioGroup, GoARadioItem, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge };
@@ -638,15 +638,15 @@
638
638
  }, void 0);
639
639
  };
640
640
 
641
- var GoAPageLoader = function GoAPageLoader(_a) {
641
+ var GoACircularProgress = function GoACircularProgress(_a) {
642
642
  var type = _a.type,
643
643
  visible = _a.visible,
644
644
  message = _a.message,
645
645
  progress = _a.progress,
646
646
  variant = _a.variant;
647
- return jsxRuntime.jsx("goa-page-loader", {
647
+ return jsxRuntime.jsx("goa-circular-progress", {
648
648
  type: type,
649
- visible: visible,
649
+ visible: visible ? "true" : "false",
650
650
  message: message,
651
651
  progress: progress,
652
652
  variant: variant
@@ -789,6 +789,7 @@
789
789
  exports.GoAButtonGroup = GoAButtonGroup;
790
790
  exports.GoACallout = GoACallout;
791
791
  exports.GoACheckbox = GoACheckbox;
792
+ exports.GoACircularProgress = GoACircularProgress;
792
793
  exports.GoAContainer = GoAContainer;
793
794
  exports.GoADropdown = GoADropdown;
794
795
  exports.GoADropdownOption = GoADropdownOption;
@@ -818,7 +819,6 @@
818
819
  exports.GoAModal = GoAModal;
819
820
  exports.GoANotification = GoANotification;
820
821
  exports.GoAPageBlock = GoAPageBlock;
821
- exports.GoAPageLoader = GoAPageLoader;
822
822
  exports.GoARadioGroup = GoARadioGroup;
823
823
  exports.GoARadioItem = GoARadioItem;
824
824
  exports.GoASpinner = GoASpinner;
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- declare type PageLoaderType = 'infinite' | 'progress';
3
- declare type PageLoaderVariant = "fullscreen" | "inline";
4
- interface WCProps {
5
- type?: PageLoaderType;
6
- variant?: PageLoaderVariant;
7
- message?: string;
8
- visible?: boolean;
9
- progress?: number;
10
- }
11
- declare global {
12
- namespace JSX {
13
- interface IntrinsicElements {
14
- 'goa-page-loader': WCProps & React.HTMLAttributes<HTMLElement>;
15
- }
16
- }
17
- }
18
- export interface PageLoaderProps {
19
- type?: PageLoaderType;
20
- variant?: PageLoaderVariant;
21
- message?: string;
22
- visible?: boolean;
23
- progress?: number;
24
- }
25
- export declare const GoAPageLoader: ({ type, visible, message, progress, variant }: PageLoaderProps) => JSX.Element;
26
- export default GoAPageLoader;