@thecb/components 8.2.1-beta.1 → 8.2.1-beta.2
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
|
@@ -113,7 +113,7 @@ interface ErrorMessage {
|
|
|
113
113
|
interface FormInputProps {
|
|
114
114
|
extraStyles?: string;
|
|
115
115
|
field?: Field;
|
|
116
|
-
fieldActions?: FieldActions
|
|
116
|
+
fieldActions?: FieldActions;
|
|
117
117
|
disabled?: boolean;
|
|
118
118
|
errorMessages?: ErrorMessage[];
|
|
119
119
|
helperModal?: boolean;
|
|
@@ -137,7 +137,7 @@ interface FormSelectProps {
|
|
|
137
137
|
dropdownMaxHeight?: string;
|
|
138
138
|
labelTextWhenNoError?: string;
|
|
139
139
|
options?: Option[];
|
|
140
|
-
fieldActions?: FieldActions
|
|
140
|
+
fieldActions?: FieldActions;
|
|
141
141
|
showErrors?: boolean;
|
|
142
142
|
errorMessages?: ErrorMessage[];
|
|
143
143
|
field?: Field;
|
|
@@ -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, ExternalLink, ExternalLinkProps, 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, 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 { 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 };
|
|
702
702
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { ErrorMessage, Field, FieldActions } from "../../../types/common";
|
|
|
5
5
|
export interface FormInputProps {
|
|
6
6
|
extraStyles?: string;
|
|
7
7
|
field?: Field;
|
|
8
|
-
fieldActions?: FieldActions
|
|
8
|
+
fieldActions?: FieldActions;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
errorMessages?: ErrorMessage[];
|
|
11
11
|
helperModal?: boolean;
|
|
@@ -12,7 +12,7 @@ export interface FormSelectProps {
|
|
|
12
12
|
dropdownMaxHeight?: string;
|
|
13
13
|
labelTextWhenNoError?: string;
|
|
14
14
|
options?: Option[];
|
|
15
|
-
fieldActions?: FieldActions
|
|
15
|
+
fieldActions?: FieldActions;
|
|
16
16
|
showErrors?: boolean;
|
|
17
17
|
errorMessages?: ErrorMessage[];
|
|
18
18
|
field?: Field;
|
package/src/index.d.ts
CHANGED
|
@@ -4,26 +4,26 @@ import ReduxAction from "./ReduxAction";
|
|
|
4
4
|
* These types should be moved to and referenced from redux-freeform if it implements TypeScript
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
type ValidatorFn = (value: string) => boolean;
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
interface FieldActionPayload {
|
|
10
10
|
fieldName: string;
|
|
11
11
|
value?: string;
|
|
12
12
|
validator?: ValidatorFn;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
type SetAction = ReduxAction<"field/SET", FieldActionPayload>;
|
|
16
|
+
type AddValidatorAction = ReduxAction<
|
|
17
17
|
"field/ADD_VALIDATOR",
|
|
18
18
|
FieldActionPayload
|
|
19
19
|
>;
|
|
20
|
-
|
|
20
|
+
type RemoveValidatorAction = ReduxAction<
|
|
21
21
|
"field/REMOVE_VALIDATOR",
|
|
22
22
|
FieldActionPayload
|
|
23
23
|
>;
|
|
24
|
-
|
|
24
|
+
type ClearAction = ReduxAction<"field/CLEAR">;
|
|
25
25
|
|
|
26
|
-
export interface FieldActions {
|
|
26
|
+
export default interface FieldActions {
|
|
27
27
|
set?: (fieldName: string) => (value: string) => SetAction;
|
|
28
28
|
addValidator?: (
|
|
29
29
|
fieldName: string
|