@abgov/react-components 3.4.0-alpha.43 → 3.4.0-alpha.46

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,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.43",
3
+ "version": "3.4.0-alpha.46",
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,22 @@ const GoACheckbox = ({
212
212
  }), void 0);
213
213
  };
214
214
 
215
+ const GoACircularProgress = ({
216
+ type,
217
+ visible,
218
+ message,
219
+ progress,
220
+ variant
221
+ }) => {
222
+ return jsx("goa-circular-progress", {
223
+ type: type,
224
+ visible: visible ? "true" : "false",
225
+ message: message,
226
+ progress: progress,
227
+ variant: variant
228
+ }, void 0);
229
+ };
230
+
215
231
  const GoAContainer = ({
216
232
  headingSize,
217
233
  title,
@@ -569,6 +585,18 @@ const GoAInputRange = _a => {
569
585
  }), void 0);
570
586
  };
571
587
 
588
+ const GoAMicrositeHeader = ({
589
+ level,
590
+ version,
591
+ feedbackUrl
592
+ }) => {
593
+ return jsx("goa-microsite-header", {
594
+ level: level,
595
+ version: version,
596
+ feedbackurl: feedbackUrl
597
+ }, void 0);
598
+ };
599
+
572
600
  const GoAModal = ({
573
601
  title,
574
602
  children,
@@ -629,22 +657,6 @@ const GoAPageBlock = ({
629
657
  }, void 0);
630
658
  };
631
659
 
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
660
  const GoARadioItem = ({
649
661
  name,
650
662
  label,
@@ -707,15 +719,29 @@ const GoARadioGroup = ({
707
719
  }), void 0);
708
720
  };
709
721
 
710
- const GoAMicrositeHeader = ({
711
- level,
712
- version,
713
- feedbackUrl
722
+ const GoASkeleton = ({
723
+ type,
724
+ size: _size = 1
714
725
  }) => {
715
- return jsx("goa-microsite-header", {
716
- level: level,
717
- version: version,
718
- feedbackurl: feedbackUrl
726
+ return jsx("goa-skeleton", {
727
+ type: type,
728
+ size: _size
729
+ }, void 0);
730
+ };
731
+
732
+ const GoASpinner = ({
733
+ type,
734
+ size,
735
+ progress,
736
+ invert,
737
+ testId
738
+ }) => {
739
+ return jsx("goa-spinner", {
740
+ type: type,
741
+ size: size,
742
+ progress: progress,
743
+ invert: invert,
744
+ testid: testId
719
745
  }, void 0);
720
746
  };
721
747
 
@@ -762,20 +788,4 @@ const GoATextArea = ({
762
788
  }, void 0);
763
789
  };
764
790
 
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 };
791
+ 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,21 @@
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
+ return jsxRuntime.jsx("goa-circular-progress", {
261
+ type: type,
262
+ visible: visible ? "true" : "false",
263
+ message: message,
264
+ progress: progress,
265
+ variant: variant
266
+ }, void 0);
267
+ };
268
+
254
269
  var GoAContainer = function GoAContainer(_a) {
255
270
  var headingSize = _a.headingSize,
256
271
  title = _a.title,
@@ -580,6 +595,17 @@
580
595
  }), void 0);
581
596
  };
582
597
 
598
+ var GoAMicrositeHeader = function GoAMicrositeHeader(_a) {
599
+ var level = _a.level,
600
+ version = _a.version,
601
+ feedbackUrl = _a.feedbackUrl;
602
+ return jsxRuntime.jsx("goa-microsite-header", {
603
+ level: level,
604
+ version: version,
605
+ feedbackurl: feedbackUrl
606
+ }, void 0);
607
+ };
608
+
583
609
  var GoAModal = function GoAModal(_a) {
584
610
  var title = _a.title,
585
611
  children = _a.children,
@@ -638,21 +664,6 @@
638
664
  }, void 0);
639
665
  };
640
666
 
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
667
  var GoARadioItem = function GoARadioItem(_a) {
657
668
  var name = _a.name,
658
669
  label = _a.label,
@@ -716,14 +727,28 @@
716
727
  }), void 0);
717
728
  };
718
729
 
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
730
+ var GoASkeleton = function GoASkeleton(_a) {
731
+ var type = _a.type,
732
+ _b = _a.size,
733
+ size = _b === void 0 ? 1 : _b;
734
+ return jsxRuntime.jsx("goa-skeleton", {
735
+ type: type,
736
+ size: size
737
+ }, void 0);
738
+ };
739
+
740
+ var GoASpinner = function GoASpinner(_a) {
741
+ var type = _a.type,
742
+ size = _a.size,
743
+ progress = _a.progress,
744
+ invert = _a.invert,
745
+ testId = _a.testId;
746
+ return jsxRuntime.jsx("goa-spinner", {
747
+ type: type,
748
+ size: size,
749
+ progress: progress,
750
+ invert: invert,
751
+ testid: testId
727
752
  }, void 0);
728
753
  };
729
754
 
@@ -768,21 +793,6 @@
768
793
  }, void 0);
769
794
  };
770
795
 
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
796
  exports.GoAAppHeader = GoAAppHeader;
787
797
  exports.GoABadge = GoABadge;
788
798
  exports.GoAButton = GoAButton;
@@ -821,6 +831,7 @@
821
831
  exports.GoAPageBlock = GoAPageBlock;
822
832
  exports.GoARadioGroup = GoARadioGroup;
823
833
  exports.GoARadioItem = GoARadioItem;
834
+ exports.GoASkeleton = GoASkeleton;
824
835
  exports.GoASpinner = GoASpinner;
825
836
  exports.GoASuccessBadge = GoASuccessBadge;
826
837
  exports.GoATextArea = GoATextArea;