@abgov/react-components 4.0.0-alpha.32 → 4.0.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
@@ -2,7 +2,7 @@
2
2
  * IMPORTANT: Do NOT export experimental components in this file.
3
3
  */
4
4
  import '@abgov/web-components';
5
- import { GoABadge, GoAInfoBadge, GoAEmergencyBadge, GoASuccessBadge, GoAWarningBadge } from './lib/badge/badge';
5
+ import { GoABadge, GoAInfoBadge, GoAEmergencyBadge, GoASuccessBadge, GoAImportantBadge } from './lib/badge/badge';
6
6
  import { GoAInput, GoAInputText, GoAInputPassword, GoAInputDate, GoAInputTime, GoAInputDateTime, GoAInputEmail, GoAInputSearch, GoAInputUrl, GoAInputTel, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputRange } from './lib/input/input';
7
7
  import { GoAAppHeader } from './lib/app-header/app-header';
8
8
  import { GoAButton } from './lib/button/button';
@@ -37,4 +37,4 @@ export * from './lib/page/page';
37
37
  export * from './lib/divider/divider';
38
38
  export type { GoAIconType };
39
39
  export type { GoABadgeType };
40
- export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAChip, 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, };
40
+ export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAChip, 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, GoAImportantBadge, };
@@ -1,15 +1,14 @@
1
1
  import React, { FC } from 'react';
2
- import { GoAIconType } from '../icons';
3
- export declare type GoABadgeType = 'information' | 'success' | 'warning' | 'emergency' | 'dark' | 'midtone' | 'light' | 'inactive';
2
+ export declare type GoABadgeType = 'information' | 'success' | 'important' | 'emergency' | 'dark' | 'midtone' | 'light';
4
3
  interface GoABadgeProps {
5
4
  type: GoABadgeType;
6
- icon?: GoAIconType;
5
+ icon?: boolean;
7
6
  content?: string;
8
7
  testId?: string;
9
8
  }
10
9
  interface WCProps {
11
10
  type: GoABadgeType;
12
- icon?: GoAIconType;
11
+ icon?: boolean;
13
12
  content?: string;
14
13
  testid?: string;
15
14
  }
@@ -23,6 +22,6 @@ declare global {
23
22
  export declare const GoABadge: FC<GoABadgeProps>;
24
23
  export declare const GoAInfoBadge: FC<GoABadgeProps>;
25
24
  export declare const GoASuccessBadge: FC<GoABadgeProps>;
26
- export declare const GoAWarningBadge: FC<GoABadgeProps>;
25
+ export declare const GoAImportantBadge: FC<GoABadgeProps>;
27
26
  export declare const GoAEmergencyBadge: FC<GoABadgeProps>;
28
27
  export {};
@@ -3,7 +3,7 @@ import './button.css';
3
3
  import { GoAIconType } from '../icons';
4
4
  export declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'start';
5
5
  export declare type ButtonSize = 'compact' | '';
6
- export declare type ButtonVariant = '' | 'danger';
6
+ export declare type ButtonVariant = '' | 'destructive';
7
7
  interface WCProps {
8
8
  type?: ButtonType;
9
9
  size?: ButtonSize;
@@ -1,8 +1,9 @@
1
1
  import React, { FC } from 'react';
2
2
  import { GoAIconType } from '../..';
3
+ declare type GoAInputType = "text" | "number" | "password" | "email" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
3
4
  interface WCProps {
4
5
  ref?: React.MutableRefObject<HTMLInputElement | null>;
5
- type: string;
6
+ type: GoAInputType;
6
7
  name: string;
7
8
  value: string;
8
9
  id?: string;
@@ -19,6 +20,9 @@ interface WCProps {
19
20
  handletrailingiconclick: boolean;
20
21
  width?: string;
21
22
  testid?: string;
23
+ min?: string;
24
+ max?: string;
25
+ step?: number;
22
26
  }
23
27
  declare global {
24
28
  namespace JSX {
@@ -45,9 +49,12 @@ export interface Props {
45
49
  showCounter?: boolean;
46
50
  maxCharCount?: number;
47
51
  testId?: string;
52
+ min?: string;
53
+ max?: string;
54
+ step?: number;
48
55
  }
49
56
  export declare const GoAInput: FC<Props & {
50
- type: string;
57
+ type: GoAInputType;
51
58
  }>;
52
59
  export declare const GoAInputText: FC<Props>;
53
60
  export declare const GoAInputPassword: FC<Props>;
@@ -66,16 +73,10 @@ export declare const GoAInputUrl: FC<Props>;
66
73
  export declare const GoAInputTel: FC<Props>;
67
74
  export declare const GoAInputFile: FC<Props>;
68
75
  export declare const GoAInputMonth: FC<Props>;
69
- export declare const GoAInputNumber: FC<Omit<Props, "value"> & {
76
+ export declare const GoAInputNumber: FC<Omit<Props, "value" | "min" | "max"> & {
70
77
  value: number;
71
- } & {
72
78
  min?: number;
73
79
  max?: number;
74
- step?: number;
75
- }>;
76
- export declare const GoAInputRange: FC<Props & {
77
- min?: number;
78
- max?: number;
79
- step?: number;
80
80
  }>;
81
+ export declare const GoAInputRange: FC<Props>;
81
82
  export default GoAInput;
@@ -8,12 +8,12 @@ declare global {
8
8
  }
9
9
  export declare type ServiceLevel = 'alpha' | 'beta' | 'live';
10
10
  interface WebComponentProps {
11
- level: ServiceLevel;
11
+ type: ServiceLevel;
12
12
  version?: string;
13
13
  feedbackurl?: string;
14
14
  }
15
15
  export interface HeaderProps {
16
- level: ServiceLevel;
16
+ type: ServiceLevel;
17
17
  version?: string;
18
18
  feedbackUrl?: string;
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.32",
3
+ "version": "4.0.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"