@thecb/components 7.10.4 → 7.10.5-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
@@ -2,32 +2,6 @@ import React from 'react';
2
2
 
3
3
  type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
4
4
 
5
- interface ButtonWithActionProps {
6
- action?: React.SyntheticEvent;
7
- variant?: string;
8
- text?: string;
9
- textWrap?: boolean;
10
- isLoading?: boolean;
11
- textExtraStyles?: string;
12
- contentOverride?: boolean;
13
- extraStyles?: string;
14
- tabIndex?: string;
15
- }
16
-
17
- declare const ButtonWithAction: React.FC<Expand<ButtonWithActionProps> &
18
- React.HTMLAttributes<HTMLElement>>;
19
-
20
- interface ButtonWithLinkProps extends ButtonWithActionProps {
21
- linkExtraStyles?: string;
22
- url: string;
23
- disabled?: boolean;
24
- fileLink?: boolean;
25
- newTab?: boolean;
26
- }
27
-
28
- declare const ButtonWithLink: React.FC<Expand<ButtonWithLinkProps> &
29
- React.HTMLAttributes<HTMLElement>>;
30
-
31
5
  interface CardProps {
32
6
  text?: string;
33
7
  titleText?: string;
@@ -59,155 +33,40 @@ interface CardProps {
59
33
  declare const Card: React.FC<Expand<CardProps> &
60
34
  React.HTMLAttributes<HTMLElement>>;
61
35
 
62
- interface ArrowDownCircleIconSmallProps {
63
- color?: string;
64
- iconIndex?: number;
65
- }
66
-
67
- declare const ArrowDownCircleIconSmall: React.FC<Expand<
68
- ArrowDownCircleIconSmallProps
69
- > &
70
- React.HTMLAttributes<HTMLElement>>;
71
-
72
- interface ArrowLeftCircleIconMediumProps {
73
- color?: string;
74
- iconIndex?: number;
75
- }
76
-
77
- declare const ArrowLeftCircleIconMedium: React.FC<Expand<
78
- ArrowLeftCircleIconMediumProps
79
- > &
80
- React.HTMLAttributes<HTMLElement>>;
81
-
82
- interface ArrowLeftCircleIconSmallProps {
83
- color?: string;
84
- iconIndex?: number;
85
- }
86
-
87
- declare const ArrowLeftCircleIconSmall: React.FC<Expand<
88
- ArrowLeftCircleIconSmallProps
89
- > &
90
- React.HTMLAttributes<HTMLElement>>;
91
-
92
- interface ArrowRightCircleIconSmallProps {
93
- color?: string;
94
- iconIndex?: number;
95
- }
96
-
97
- declare const ArrowRightCircleIconSmall: React.FC<Expand<
98
- ArrowRightCircleIconSmallProps
99
- > &
100
- React.HTMLAttributes<HTMLElement>>;
101
-
102
- interface ArrowUpCircleIconSmallProps {
103
- color?: string;
104
- iconIndex?: number;
105
- }
106
-
107
- declare const ArrowUpCircleIconSmall: React.FC<Expand<
108
- ArrowUpCircleIconSmallProps
109
- > &
110
- React.HTMLAttributes<HTMLElement>>;
111
-
112
- interface BankIconLargeProps {
113
- iconIndex?: number;
114
- }
115
-
116
- declare const BankIconLarge: React.FC<Expand<BankIconLargeProps> &
117
- React.HTMLAttributes<HTMLElement>>;
118
-
119
- interface ChargebackIconMediumProps {
120
- color?: string;
121
- iconIndex?: number;
122
- }
123
-
124
- declare const ChargebackIconMedium: React.FC<Expand<ChargebackIconMediumProps> &
125
- React.HTMLAttributes<HTMLElement>>;
126
-
127
- interface ChargebackIconSmallProps {
128
- color?: string;
129
- iconIndex?: number;
130
- }
131
-
132
- declare const ChargebackIconSmall: React.FC<Expand<ChargebackIconSmallProps> &
133
- React.HTMLAttributes<HTMLElement>>;
134
-
135
- interface ChargebackReversalIconMediumProps {
136
- color?: string;
137
- iconIndex?: number;
36
+ interface ButtonWithActionProps {
37
+ action?: React.SyntheticEvent;
38
+ variant?: string;
39
+ text?: string;
40
+ textWrap?: boolean;
41
+ isLoading?: boolean;
42
+ textExtraStyles?: string;
43
+ contentOverride?: boolean;
44
+ extraStyles?: string;
45
+ tabIndex?: string;
138
46
  }
139
47
 
140
- declare const ChargebackReversalIconMedium: React.FC<Expand<
141
- ChargebackReversalIconMediumProps
142
- > &
48
+ declare const ButtonWithAction: React.FC<Expand<ButtonWithActionProps> &
143
49
  React.HTMLAttributes<HTMLElement>>;
144
50
 
145
- interface ChargebackReversalIconSmallProps {
146
- color?: string;
147
- iconIndex?: number;
51
+ interface ButtonWithLinkProps extends ButtonWithActionProps {
52
+ linkExtraStyles?: string;
53
+ url: string;
54
+ disabled?: boolean;
55
+ fileLink?: boolean;
56
+ newTab?: boolean;
148
57
  }
149
58
 
150
- declare const ChargebackReversalIconSmall: React.FC<Expand<
151
- ChargebackReversalIconSmallProps
152
- > &
59
+ declare const ButtonWithLink: React.FC<Expand<ButtonWithLinkProps> &
153
60
  React.HTMLAttributes<HTMLElement>>;
154
61
 
155
62
  declare const GuidedCheckoutImage: JSX.Element;
156
63
 
157
- declare const HistoryIconSmall: JSX.Element;
158
-
159
64
  declare const ProfileImage: JSX.Element;
160
65
 
161
- interface RefundIconMediumProps {
162
- color?: string;
163
- iconIndex?: number;
164
- }
165
-
166
- declare const RefundIconMedium: React.FC<Expand<RefundIconMediumProps> &
167
- React.HTMLAttributes<HTMLElement>>;
168
-
169
- interface RefundIconSmallProps {
170
- color?: string;
171
- iconIndex?: number;
172
- }
173
-
174
- declare const RefundIconSmall: React.FC<Expand<RefundIconSmallProps> &
175
- React.HTMLAttributes<HTMLElement>>;
176
-
177
66
  declare const RevenueManagementImage: JSX.Element;
178
67
 
179
68
  declare const StandardCheckoutImage: JSX.Element;
180
69
 
181
- interface SuccessfulIconMediumProps {
182
- iconIndex?: number;
183
- }
184
-
185
- declare const SuccessfulIconMedium: React.FC<Expand<SuccessfulIconMediumProps> &
186
- React.HTMLAttributes<HTMLElement>>;
187
-
188
- interface SuccessfulIconSmallProps {
189
- iconIndex?: number;
190
- }
191
-
192
- declare const SuccessfulIconSmall: React.FC<Expand<SuccessfulIconSmallProps> &
193
- React.HTMLAttributes<HTMLElement>>;
194
-
195
- interface XCircleIconMediumProps {
196
- color?: string;
197
- iconIndex?: number;
198
- }
199
-
200
- declare const XCircleIconMedium: React.FC<Expand<XCircleIconMediumProps> &
201
- React.HTMLAttributes<HTMLElement>>;
202
-
203
- interface XCircleIconSmallProps {
204
- color?: string;
205
- iconIndex?: number;
206
- }
207
-
208
- declare const XCircleIconSmall: React.FC<Expand<XCircleIconSmallProps> &
209
- React.HTMLAttributes<HTMLElement>>;
210
-
211
70
  interface BoxProps {
212
71
  padding?: string;
213
72
  borderSize?: string;
@@ -259,7 +118,6 @@ interface ClusterProps {
259
118
  justifySelf?: string;
260
119
  alignSelf?: string;
261
120
  flexGrow?: string;
262
- innerWrapperAs?: string;
263
121
  }
264
122
 
265
123
  declare const Cluster: React.FC<Expand<ClusterProps> &
@@ -400,54 +258,6 @@ interface ParagraphProps {
400
258
  declare const Paragraph: React.FC<Expand<ParagraphProps> &
401
259
  React.HTMLAttributes<HTMLElement>>;
402
260
 
403
- interface TableProps {
404
- extraStyles?: string;
405
- }
406
-
407
- interface TableBodyProps {
408
- extraStyles?: string;
409
- }
410
-
411
- interface TableCellProps {
412
- extraStyles?: string;
413
- fontSize?: string;
414
- maxWidth?: string;
415
- padding?: string;
416
- }
417
-
418
- interface TableHeadProps {
419
- extraStyles?: string;
420
- }
421
- interface TableHeadingProps {
422
- extraStyles?: string;
423
- minWidth?: string;
424
- padding?: string;
425
- }
426
-
427
- interface TableRowProps {
428
- extraStyles?: string;
429
- hoverCursor?: boolean;
430
- hoverEffect?: boolean;
431
- }
432
-
433
- declare const Table: React.FC<Expand<TableProps> &
434
- React.HTMLAttributes<HTMLElement>>;
435
-
436
- declare const TableBody: React.FC<Expand<TableBodyProps> &
437
- React.HTMLAttributes<HTMLElement>>;
438
-
439
- declare const TableCell: React.FC<Expand<TableCellProps> &
440
- React.HTMLAttributes<HTMLElement>>;
441
-
442
- declare const TableHead: React.FC<Expand<TableHeadProps> &
443
- React.HTMLAttributes<HTMLElement>>;
444
-
445
- declare const TableHeading: React.FC<Expand<TableHeadingProps> &
446
- React.HTMLAttributes<HTMLElement>>;
447
-
448
- declare const TableRow: React.FC<Expand<TableRowProps> &
449
- React.HTMLAttributes<HTMLElement>>;
450
-
451
261
  interface TextProps {
452
262
  weight?: string;
453
263
  color?: string;
@@ -571,9 +381,6 @@ interface PopoverProps {
571
381
  arrowDirection?: "left" | "right" | "top" | "bottom";
572
382
  transform?: string;
573
383
  disclosedExtraStyles?: string;
574
- borderColor?: string;
575
- backgroundColor?: string;
576
- popoverExtraStyles?: string;
577
384
  }
578
385
 
579
386
  declare const Popover: React.FC<Expand<PopoverProps> &
@@ -593,5 +400,5 @@ interface DefaultPageTemplateProps {
593
400
  declare const DefaultPageTemplate: React.FC<Expand<DefaultPageTemplateProps> &
594
401
  React.HTMLAttributes<HTMLElement>>;
595
402
 
596
- 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, GuidedCheckoutImage, HistoryIconSmall, InternalLink, InternalLinkProps, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, Popover, PopoverProps, ProfileImage, RefundIconMedium, RefundIconMediumProps, RefundIconSmall, RefundIconSmallProps, RevenueManagementImage, 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 };
403
+ export { Box, BoxProps, ButtonWithAction, ButtonWithActionProps, ButtonWithLink, ButtonWithLinkProps, Card, CardProps, Center, CenterProps, Cluster, ClusterProps, CollapsibleSection, CollapsibleSectionProps, Copyable, CopyableProps, Cover, CoverProps, DefaultPageTemplate, DefaultPageTemplateProps, EditableTable, EditableTableProps, ExternalLink, ExternalLinkProps, FooterWithSubfooter, FooterWithSubfooterProps, GuidedCheckoutImage, InternalLink, InternalLinkProps, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, Popover, PopoverProps, ProfileImage, RevenueManagementImage, Stack, StackProps, StandardCheckoutImage, Switcher, SwitcherProps, TableListItem, TableListItemProps, Text, TextProps, Title, TitleProps };
597
404
  //# sourceMappingURL=index.d.ts.map