@thecb/components 8.2.2 → 8.3.0-beta.0
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.cjs.js +200 -121
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.esm.js +199 -122
- package/dist/index.esm.js.map +1 -1
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +49322 -0
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/badge/Badge.js +40 -0
- package/src/components/atoms/badge/Badge.stories.js +32 -0
- package/src/components/atoms/badge/Badge.theme.js +29 -0
- package/src/components/atoms/badge/index.d.ts +10 -0
- package/src/components/atoms/badge/index.js +3 -0
- package/src/components/atoms/form-layouts/index.d.ts +2 -6
- package/src/components/atoms/form-select/index.d.ts +8 -8
- package/src/components/atoms/icons/.DS_Store +0 -0
- package/src/components/atoms/icons/AutopayIcon.js +32 -0
- package/src/components/atoms/icons/icons.stories.js +3 -1
- package/src/components/atoms/icons/index.js +2 -0
- package/src/components/atoms/index.js +1 -0
- package/src/constants/colors.js +4 -1
- package/src/index.d.ts +0 -1
- package/src/types/common/ErrorMessage.ts +3 -0
- package/src/types/common/FieldActions.ts +6 -6
- package/src/types/common/index.ts +1 -3
- package/src/types/common/ErrorMessageDictionary.ts +0 -3
- package/src/types/common/FormSelectOption.ts +0 -4
- /package/src/components/atoms/icons/{ExternalLinkicon.js → ExternalLinkIcon.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -106,12 +106,7 @@ interface FieldActions {
|
|
|
106
106
|
clear?: () => ClearAction;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
interface
|
|
110
|
-
text?: string;
|
|
111
|
-
value?: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
interface ErrorMessageDictionary {
|
|
109
|
+
interface ErrorMessage {
|
|
115
110
|
[fieldName: string]: string;
|
|
116
111
|
}
|
|
117
112
|
|
|
@@ -120,7 +115,7 @@ interface FormInputProps {
|
|
|
120
115
|
field?: Field;
|
|
121
116
|
fieldActions?: FieldActions;
|
|
122
117
|
disabled?: boolean;
|
|
123
|
-
errorMessages?:
|
|
118
|
+
errorMessages?: ErrorMessage[];
|
|
124
119
|
helperModal?: boolean;
|
|
125
120
|
isEmail?: boolean;
|
|
126
121
|
isNum?: boolean;
|
|
@@ -132,14 +127,19 @@ interface FormInputProps {
|
|
|
132
127
|
declare const FormInput: React.FC<Expand<FormInputProps> &
|
|
133
128
|
React.HTMLAttributes<HTMLElement>>;
|
|
134
129
|
|
|
130
|
+
interface Option {
|
|
131
|
+
text?: string;
|
|
132
|
+
value?: string | number;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
135
|
interface FormSelectProps {
|
|
136
136
|
disabled?: boolean;
|
|
137
137
|
dropdownMaxHeight?: string;
|
|
138
138
|
labelTextWhenNoError?: string;
|
|
139
|
-
options?:
|
|
139
|
+
options?: Option[];
|
|
140
140
|
fieldActions?: FieldActions;
|
|
141
141
|
showErrors?: boolean;
|
|
142
|
-
errorMessages?:
|
|
142
|
+
errorMessages?: ErrorMessage[];
|
|
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 {
|
|
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 };
|
|
702
702
|
//# sourceMappingURL=index.d.ts.map
|