@thecb/components 8.2.1-beta.4 → 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 +4 -4
- package/package.json +1 -1
- package/src/components/atoms/form-layouts/index.d.ts +2 -2
- package/src/components/atoms/form-select/index.d.ts +2 -2
- package/src/types/common/ErrorMessageDictionary.ts +3 -0
- package/src/types/common/index.ts +1 -1
- package/src/types/common/ErrorMessage.ts +0 -3
package/dist/index.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ interface FieldActions {
|
|
|
106
106
|
clear?: () => ClearAction;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
interface
|
|
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?:
|
|
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?:
|
|
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 { 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,
|
|
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,13 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Expand from "../../../util/expand";
|
|
3
|
-
import {
|
|
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?:
|
|
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 {
|
|
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?:
|
|
17
|
+
errorMessages?: ErrorMessageDictionary;
|
|
18
18
|
field?: Field;
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -1,5 +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
|
|
4
|
+
export { default as ErrorMessageDictionary } from "./ErrorMessageDictionary";
|
|
5
5
|
export * from './FieldActions';
|