@thecb/components 8.4.0 → 8.4.1
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 +25 -2
- package/package.json +1 -1
- package/src/components/atoms/alert/index.d.ts +25 -0
- package/src/components/atoms/index.d.ts +1 -0
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
- 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/icons/.DS_Store +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
type Color = string;
|
|
4
4
|
|
|
@@ -297,6 +297,29 @@ declare namespace index_d {
|
|
|
297
297
|
|
|
298
298
|
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
|
299
299
|
|
|
300
|
+
interface AlertProps {
|
|
301
|
+
heading?: string;
|
|
302
|
+
text?: string;
|
|
303
|
+
textOverride?: string;
|
|
304
|
+
variant?: string;
|
|
305
|
+
children?: ReactNode[];
|
|
306
|
+
height?: string;
|
|
307
|
+
onLinkClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
308
|
+
padding?: string;
|
|
309
|
+
showQuitLink?: boolean;
|
|
310
|
+
extraStyles?: string;
|
|
311
|
+
maxContentWidth?: string;
|
|
312
|
+
noBorder?: boolean;
|
|
313
|
+
enableBoxShadow?: boolean;
|
|
314
|
+
enableSmallText?: boolean;
|
|
315
|
+
innerContentPadding?: string;
|
|
316
|
+
iconPadding?: string;
|
|
317
|
+
contentFullHeight?: boolean;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
declare const Alert: React.FC<Expand<AlertProps> &
|
|
321
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
322
|
+
|
|
300
323
|
interface ButtonWithActionProps {
|
|
301
324
|
action?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
302
325
|
disabled?: boolean;
|
|
@@ -993,5 +1016,5 @@ interface DefaultPageTemplateProps {
|
|
|
993
1016
|
declare const DefaultPageTemplate: React.FC<Expand<DefaultPageTemplateProps> &
|
|
994
1017
|
React.HTMLAttributes<HTMLElement>>;
|
|
995
1018
|
|
|
996
|
-
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, FormSelectOption, 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, index_d as constants };
|
|
1019
|
+
export { AddValidatorAction, Alert, AlertProps, 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, FormSelectOption, 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, index_d as constants };
|
|
997
1020
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import Expand from "../../../util/expand";
|
|
3
|
+
|
|
4
|
+
export interface AlertProps {
|
|
5
|
+
heading?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
textOverride?: string;
|
|
8
|
+
variant?: string;
|
|
9
|
+
children?: ReactNode[];
|
|
10
|
+
height?: string;
|
|
11
|
+
onLinkClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
12
|
+
padding?: string;
|
|
13
|
+
showQuitLink?: boolean;
|
|
14
|
+
extraStyles?: string;
|
|
15
|
+
maxContentWidth?: string;
|
|
16
|
+
noBorder?: boolean;
|
|
17
|
+
enableBoxShadow?: boolean;
|
|
18
|
+
enableSmallText?: boolean;
|
|
19
|
+
innerContentPadding?: string;
|
|
20
|
+
iconPadding?: string;
|
|
21
|
+
contentFullHeight?: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export const Alert: React.FC<Expand<AlertProps> &
|
|
25
|
+
React.HTMLAttributes<HTMLElement>>;
|