@abgov/react-components 3.4.0-alpha.45 → 3.4.0-alpha.48

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
@@ -8,6 +8,7 @@ import { GoAButton } from './lib/button/button';
8
8
  import { GoAButtonGroup } from './lib/button-group/button-group';
9
9
  import { GoACallout } from './lib/callout/callout';
10
10
  import { GoACheckbox } from './lib/checkbox/checkbox';
11
+ import { GoACircularProgress } from './lib/circular-progress/circular-progress';
11
12
  import { GoAContainer } from './lib/container/container';
12
13
  import { GoADropdown, GoADropdownOption } from './lib/dropdown/dropdown';
13
14
  import { GoAFlexRow } from './lib/flex';
@@ -16,16 +17,16 @@ import { GoAHeroBanner } from './lib/hero-banner/hero-banner';
16
17
  import { GoAHeroBannerActions } from './lib/hero-banner/hero-banner-actions';
17
18
  import { GoAIcon, GoAIconButton } from './lib/icons';
18
19
  import { GoAInput, GoAInputText, GoAInputPassword, GoAInputDate, GoAInputTime, GoAInputDateTime, GoAInputEmail, GoAInputSearch, GoAInputUrl, GoAInputTel, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputRange } from './lib/input/input';
20
+ import { GoAMicrositeHeader } from './lib/microsite-header/microsite-header';
19
21
  import { GoAModal } from './lib/modal/modal';
20
22
  import { GoANotification } from './lib/notification/notification';
21
23
  import { GoAPageBlock } from './lib/page-block/page-block';
22
- import { GoACircularProgress } from './lib/circular-progress/circular-progress';
23
24
  import { GoARadioGroup, GoARadioItem } from './lib/radio-group/radio-group';
24
- import { GoAMicrositeHeader } from './lib/microsite-header/microsite-header';
25
- import { GoATextArea } from './lib/textarea/textarea';
25
+ import { GoASkeleton } from './lib/skeleton/skeleton';
26
26
  import { GoASpinner } from './lib/spinner/spinner';
27
+ import { GoATextArea } from './lib/textarea/textarea';
27
28
  import type { GoAIconType } from './lib/icons';
28
29
  import type { GoABadgeType } from './lib/badge/badge';
29
30
  export type { GoAIconType };
30
31
  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, GoACircularProgress, GoARadioItem, GoARadioGroup, GoAMicrositeHeader, GoASuccessBadge, GoASpinner, GoATextArea, GoAWarningBadge, };
32
+ 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, GoASkeleton, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge, };
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
2
  export declare type CircularProgressType = 'infinite' | 'progress';
3
3
  export declare type CircularProgressVariant = "fullscreen" | "inline";
4
+ export declare type CircularProgressSize = "small" | "large";
4
5
  interface WCProps {
5
6
  type?: CircularProgressType;
6
7
  variant?: CircularProgressVariant;
8
+ size?: CircularProgressSize;
7
9
  message?: string;
8
10
  visible?: string;
9
11
  progress?: number;
@@ -18,9 +20,10 @@ declare global {
18
20
  export interface CircularProgressProps {
19
21
  type?: CircularProgressType;
20
22
  variant?: CircularProgressVariant;
23
+ size?: CircularProgressSize;
21
24
  message?: string;
22
25
  visible?: boolean;
23
26
  progress?: number;
24
27
  }
25
- export declare const GoACircularProgress: ({ type, visible, message, progress, variant }: CircularProgressProps) => JSX.Element;
28
+ export declare const GoACircularProgress: ({ type, visible, message, progress, variant, size }: CircularProgressProps) => JSX.Element;
26
29
  export default GoACircularProgress;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type SkeletonType = "image" | "text" | "title" | "text-small" | "avatar" | "header" | "paragraph" | "thumbnail" | "card" | "profile";
2
+ export declare type SkeletonType = "image" | "text" | "title" | "text-small" | "avatar" | "header" | "paragraph" | "thumbnail" | "card" | "profile";
3
3
  interface WCProps {
4
4
  size: number;
5
5
  type: SkeletonType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "3.4.0-alpha.45",
3
+ "version": "3.4.0-alpha.48",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -212,6 +212,24 @@ const GoACheckbox = ({
212
212
  }), void 0);
213
213
  };
214
214
 
215
+ const GoACircularProgress = ({
216
+ type,
217
+ visible,
218
+ message,
219
+ progress,
220
+ variant,
221
+ size
222
+ }) => {
223
+ return jsx("goa-circular-progress", {
224
+ type: type,
225
+ visible: visible ? "true" : "false",
226
+ message: message,
227
+ progress: progress,
228
+ variant: variant,
229
+ size: size
230
+ }, void 0);
231
+ };
232
+
215
233
  const GoAContainer = ({
216
234
  headingSize,
217
235
  title,
@@ -569,6 +587,18 @@ const GoAInputRange = _a => {
569
587
  }), void 0);
570
588
  };
571
589
 
590
+ const GoAMicrositeHeader = ({
591
+ level,
592
+ version,
593
+ feedbackUrl
594
+ }) => {
595
+ return jsx("goa-microsite-header", {
596
+ level: level,
597
+ version: version,
598
+ feedbackurl: feedbackUrl
599
+ }, void 0);
600
+ };
601
+
572
602
  const GoAModal = ({
573
603
  title,
574
604
  children,
@@ -629,22 +659,6 @@ const GoAPageBlock = ({
629
659
  }, void 0);
630
660
  };
631
661
 
632
- const GoACircularProgress = ({
633
- type,
634
- visible,
635
- message,
636
- progress,
637
- variant
638
- }) => {
639
- return jsx("goa-circular-progress", {
640
- type: type,
641
- visible: visible ? "true" : "false",
642
- message: message,
643
- progress: progress,
644
- variant: variant
645
- }, void 0);
646
- };
647
-
648
662
  const GoARadioItem = ({
649
663
  name,
650
664
  label,
@@ -707,15 +721,29 @@ const GoARadioGroup = ({
707
721
  }), void 0);
708
722
  };
709
723
 
710
- const GoAMicrositeHeader = ({
711
- level,
712
- version,
713
- feedbackUrl
724
+ const GoASkeleton = ({
725
+ type,
726
+ size: _size = 1
714
727
  }) => {
715
- return jsx("goa-microsite-header", {
716
- level: level,
717
- version: version,
718
- feedbackurl: feedbackUrl
728
+ return jsx("goa-skeleton", {
729
+ type: type,
730
+ size: _size
731
+ }, void 0);
732
+ };
733
+
734
+ const GoASpinner = ({
735
+ type,
736
+ size,
737
+ progress,
738
+ invert,
739
+ testId
740
+ }) => {
741
+ return jsx("goa-spinner", {
742
+ type: type,
743
+ size: size,
744
+ progress: progress,
745
+ invert: invert,
746
+ testid: testId
719
747
  }, void 0);
720
748
  };
721
749
 
@@ -762,20 +790,4 @@ const GoATextArea = ({
762
790
  }, void 0);
763
791
  };
764
792
 
765
- const GoASpinner = ({
766
- type,
767
- size,
768
- progress,
769
- invert,
770
- testId
771
- }) => {
772
- return jsx("goa-spinner", {
773
- type: type,
774
- size: size,
775
- progress: progress,
776
- invert: invert,
777
- testid: testId
778
- }, void 0);
779
- };
780
-
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 };
793
+ 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, GoASkeleton, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge };
@@ -251,6 +251,23 @@
251
251
  }), void 0);
252
252
  };
253
253
 
254
+ var GoACircularProgress = function GoACircularProgress(_a) {
255
+ var type = _a.type,
256
+ visible = _a.visible,
257
+ message = _a.message,
258
+ progress = _a.progress,
259
+ variant = _a.variant,
260
+ size = _a.size;
261
+ return jsxRuntime.jsx("goa-circular-progress", {
262
+ type: type,
263
+ visible: visible ? "true" : "false",
264
+ message: message,
265
+ progress: progress,
266
+ variant: variant,
267
+ size: size
268
+ }, void 0);
269
+ };
270
+
254
271
  var GoAContainer = function GoAContainer(_a) {
255
272
  var headingSize = _a.headingSize,
256
273
  title = _a.title,
@@ -580,6 +597,17 @@
580
597
  }), void 0);
581
598
  };
582
599
 
600
+ var GoAMicrositeHeader = function GoAMicrositeHeader(_a) {
601
+ var level = _a.level,
602
+ version = _a.version,
603
+ feedbackUrl = _a.feedbackUrl;
604
+ return jsxRuntime.jsx("goa-microsite-header", {
605
+ level: level,
606
+ version: version,
607
+ feedbackurl: feedbackUrl
608
+ }, void 0);
609
+ };
610
+
583
611
  var GoAModal = function GoAModal(_a) {
584
612
  var title = _a.title,
585
613
  children = _a.children,
@@ -638,21 +666,6 @@
638
666
  }, void 0);
639
667
  };
640
668
 
641
- var GoACircularProgress = function GoACircularProgress(_a) {
642
- var type = _a.type,
643
- visible = _a.visible,
644
- message = _a.message,
645
- progress = _a.progress,
646
- variant = _a.variant;
647
- return jsxRuntime.jsx("goa-circular-progress", {
648
- type: type,
649
- visible: visible ? "true" : "false",
650
- message: message,
651
- progress: progress,
652
- variant: variant
653
- }, void 0);
654
- };
655
-
656
669
  var GoARadioItem = function GoARadioItem(_a) {
657
670
  var name = _a.name,
658
671
  label = _a.label,
@@ -716,14 +729,28 @@
716
729
  }), void 0);
717
730
  };
718
731
 
719
- var GoAMicrositeHeader = function GoAMicrositeHeader(_a) {
720
- var level = _a.level,
721
- version = _a.version,
722
- feedbackUrl = _a.feedbackUrl;
723
- return jsxRuntime.jsx("goa-microsite-header", {
724
- level: level,
725
- version: version,
726
- feedbackurl: feedbackUrl
732
+ var GoASkeleton = function GoASkeleton(_a) {
733
+ var type = _a.type,
734
+ _b = _a.size,
735
+ size = _b === void 0 ? 1 : _b;
736
+ return jsxRuntime.jsx("goa-skeleton", {
737
+ type: type,
738
+ size: size
739
+ }, void 0);
740
+ };
741
+
742
+ var GoASpinner = function GoASpinner(_a) {
743
+ var type = _a.type,
744
+ size = _a.size,
745
+ progress = _a.progress,
746
+ invert = _a.invert,
747
+ testId = _a.testId;
748
+ return jsxRuntime.jsx("goa-spinner", {
749
+ type: type,
750
+ size: size,
751
+ progress: progress,
752
+ invert: invert,
753
+ testid: testId
727
754
  }, void 0);
728
755
  };
729
756
 
@@ -768,21 +795,6 @@
768
795
  }, void 0);
769
796
  };
770
797
 
771
- var GoASpinner = function GoASpinner(_a) {
772
- var type = _a.type,
773
- size = _a.size,
774
- progress = _a.progress,
775
- invert = _a.invert,
776
- testId = _a.testId;
777
- return jsxRuntime.jsx("goa-spinner", {
778
- type: type,
779
- size: size,
780
- progress: progress,
781
- invert: invert,
782
- testid: testId
783
- }, void 0);
784
- };
785
-
786
798
  exports.GoAAppHeader = GoAAppHeader;
787
799
  exports.GoABadge = GoABadge;
788
800
  exports.GoAButton = GoAButton;
@@ -821,6 +833,7 @@
821
833
  exports.GoAPageBlock = GoAPageBlock;
822
834
  exports.GoARadioGroup = GoARadioGroup;
823
835
  exports.GoARadioItem = GoARadioItem;
836
+ exports.GoASkeleton = GoASkeleton;
824
837
  exports.GoASpinner = GoASpinner;
825
838
  exports.GoASuccessBadge = GoASuccessBadge;
826
839
  exports.GoATextArea = GoATextArea;