@thecb/components 8.2.1-beta.3 → 8.2.1-beta.5

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/dist/index.d.ts CHANGED
@@ -106,7 +106,7 @@ interface FieldActions {
106
106
  clear?: () => ClearAction;
107
107
  }
108
108
 
109
- interface ErrorMessage {
109
+ interface ErrorMessageDictionary {
110
110
  [fieldName: string]: string;
111
111
  }
112
112
 
@@ -115,7 +115,7 @@ interface FormInputProps {
115
115
  field?: Field;
116
116
  fieldActions?: FieldActions;
117
117
  disabled?: boolean;
118
- errorMessages?: ErrorMessage[];
118
+ errorMessages?: ErrorMessageDictionary;
119
119
  helperModal?: boolean;
120
120
  isEmail?: boolean;
121
121
  isNum?: boolean;
@@ -139,7 +139,7 @@ interface FormSelectProps {
139
139
  options?: Option[];
140
140
  fieldActions?: FieldActions;
141
141
  showErrors?: boolean;
142
- errorMessages?: ErrorMessage[];
142
+ errorMessages?: ErrorMessageDictionary;
143
143
  field?: Field;
144
144
  }
145
145
 
@@ -698,5 +698,5 @@ interface DefaultPageTemplateProps {
698
698
  declare const DefaultPageTemplate: React.FC<Expand<DefaultPageTemplateProps> &
699
699
  React.HTMLAttributes<HTMLElement>>;
700
700
 
701
- export { ArrowDownCircleIconSmall, ArrowDownCircleIconSmallProps, ArrowLeftCircleIconMedium, ArrowLeftCircleIconMediumProps, ArrowLeftCircleIconSmall, ArrowLeftCircleIconSmallProps, ArrowRightCircleIconSmall, ArrowRightCircleIconSmallProps, ArrowUpCircleIconSmall, ArrowUpCircleIconSmallProps, BankIconLarge, BankIconLargeProps, Box, BoxProps, ButtonWithAction, ButtonWithActionProps, ButtonWithLink, ButtonWithLinkProps, Card, CardProps, Center, CenterProps, ChargebackIconMedium, ChargebackIconMediumProps, ChargebackIconSmall, ChargebackIconSmallProps, ChargebackReversalIconMedium, ChargebackReversalIconMediumProps, ChargebackReversalIconSmall, ChargebackReversalIconSmallProps, Cluster, ClusterProps, CollapsibleSection, CollapsibleSectionProps, Copyable, CopyableProps, Cover, CoverProps, DefaultPageTemplate, DefaultPageTemplateProps, EditableTable, EditableTableProps, ErrorMessage, ExternalLink, ExternalLinkProps, Field, FieldActions, FooterWithSubfooter, FooterWithSubfooterProps, FormInput, FormInputProps, FormSelect, FormSelectProps, GuidedCheckoutImage, HistoryIconSmall, InternalLink, InternalLinkProps, KioskImage, Loading, LoadingProps, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, PointOfSaleImage, Popover, PopoverProps, ProfileImage, ReduxAction, RefundIconMedium, RefundIconMediumProps, RefundIconSmall, RefundIconSmallProps, RevenueManagementImage, Spinner, SpinnerProps, Stack, StackProps, StandardCheckoutImage, SuccessfulIconMedium, SuccessfulIconMediumProps, SuccessfulIconSmall, SuccessfulIconSmallProps, Switcher, SwitcherProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableHead, TableHeadProps, TableHeading, TableHeadingProps, TableListItem, TableListItemProps, TableProps, TableRow, TableRowProps, Text, TextProps, Title, TitleProps, XCircleIconMedium, XCircleIconMediumProps, XCircleIconSmall, XCircleIconSmallProps };
701
+ export { AddValidatorAction, ArrowDownCircleIconSmall, ArrowDownCircleIconSmallProps, ArrowLeftCircleIconMedium, ArrowLeftCircleIconMediumProps, ArrowLeftCircleIconSmall, ArrowLeftCircleIconSmallProps, ArrowRightCircleIconSmall, ArrowRightCircleIconSmallProps, ArrowUpCircleIconSmall, ArrowUpCircleIconSmallProps, BankIconLarge, BankIconLargeProps, Box, BoxProps, ButtonWithAction, ButtonWithActionProps, ButtonWithLink, ButtonWithLinkProps, Card, CardProps, Center, CenterProps, ChargebackIconMedium, ChargebackIconMediumProps, ChargebackIconSmall, ChargebackIconSmallProps, ChargebackReversalIconMedium, ChargebackReversalIconMediumProps, ChargebackReversalIconSmall, ChargebackReversalIconSmallProps, ClearAction, Cluster, ClusterProps, CollapsibleSection, CollapsibleSectionProps, Copyable, CopyableProps, Cover, CoverProps, DefaultPageTemplate, DefaultPageTemplateProps, EditableTable, EditableTableProps, ErrorMessageDictionary, ExternalLink, ExternalLinkProps, Field, FieldActionPayload, FieldActions, FooterWithSubfooter, FooterWithSubfooterProps, FormInput, FormInputProps, FormSelect, FormSelectProps, GuidedCheckoutImage, HistoryIconSmall, InternalLink, InternalLinkProps, KioskImage, Loading, LoadingProps, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, PointOfSaleImage, Popover, PopoverProps, ProfileImage, ReduxAction, RefundIconMedium, RefundIconMediumProps, RefundIconSmall, RefundIconSmallProps, RemoveValidatorAction, RevenueManagementImage, SetAction, Spinner, SpinnerProps, Stack, StackProps, StandardCheckoutImage, SuccessfulIconMedium, SuccessfulIconMediumProps, SuccessfulIconSmall, SuccessfulIconSmallProps, Switcher, SwitcherProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableHead, TableHeadProps, TableHeading, TableHeadingProps, TableListItem, TableListItemProps, TableProps, TableRow, TableRowProps, Text, TextProps, Title, TitleProps, ValidatorFn, XCircleIconMedium, XCircleIconMediumProps, XCircleIconSmall, XCircleIconSmallProps };
702
702
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "8.2.1-beta.3",
3
+ "version": "8.2.1-beta.5",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,13 +1,13 @@
1
1
  import React from "react";
2
2
  import Expand from "../../../util/expand";
3
- import { ErrorMessage, Field, FieldActions } from "../../../types/common";
3
+ import { ErrorMessageDictionary, Field, FieldActions } from "../../../types/common";
4
4
 
5
5
  export interface FormInputProps {
6
6
  extraStyles?: string;
7
7
  field?: Field;
8
8
  fieldActions?: FieldActions;
9
9
  disabled?: boolean;
10
- errorMessages?: ErrorMessage[];
10
+ errorMessages?: ErrorMessageDictionary;
11
11
  helperModal?: boolean;
12
12
  isEmail?: boolean;
13
13
  isNum?: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import Expand from "../../../util/expand";
3
- import { ErrorMessage, Field, FieldActions } from "../../../types/common";
3
+ import { ErrorMessageDictionary, Field, FieldActions } from "../../../types/common";
4
4
 
5
5
  interface Option {
6
6
  text?: string;
@@ -14,7 +14,7 @@ export interface FormSelectProps {
14
14
  options?: Option[];
15
15
  fieldActions?: FieldActions;
16
16
  showErrors?: boolean;
17
- errorMessages?: ErrorMessage[];
17
+ errorMessages?: ErrorMessageDictionary;
18
18
  field?: Field;
19
19
  }
20
20
 
@@ -0,0 +1,3 @@
1
+ export default interface ErrorMessageDictionary {
2
+ [fieldName: string]: string;
3
+ }
@@ -1,4 +1,5 @@
1
1
  export { default as Field } from "./Field";
2
2
  export { default as ReduxAction } from "./ReduxAction";
3
3
  export { default as FieldActions } from "./FieldActions";
4
- export { default as ErrorMessage } from "./ErrorMessage";
4
+ export { default as ErrorMessageDictionary } from "./ErrorMessageDictionary";
5
+ export * from './FieldActions';
@@ -1,3 +0,0 @@
1
- export default interface ErrorMessage {
2
- [fieldName: string]: string;
3
- }