@thecb/components 7.10.5-beta.2 → 7.10.5-beta.3

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,6 +2,32 @@ 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
+
5
31
  interface CardProps {
6
32
  text?: string;
7
33
  titleText?: string;
@@ -33,40 +59,155 @@ interface CardProps {
33
59
  declare const Card: React.FC<Expand<CardProps> &
34
60
  React.HTMLAttributes<HTMLElement>>;
35
61
 
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;
62
+ interface ArrowDownCircleIconSmallProps {
63
+ color?: string;
64
+ iconIndex?: number;
46
65
  }
47
66
 
48
- declare const ButtonWithAction: React.FC<Expand<ButtonWithActionProps> &
67
+ declare const ArrowDownCircleIconSmall: React.FC<Expand<
68
+ ArrowDownCircleIconSmallProps
69
+ > &
49
70
  React.HTMLAttributes<HTMLElement>>;
50
71
 
51
- interface ButtonWithLinkProps extends ButtonWithActionProps {
52
- linkExtraStyles?: string;
53
- url: string;
54
- disabled?: boolean;
55
- fileLink?: boolean;
56
- newTab?: boolean;
72
+ interface ArrowLeftCircleIconMediumProps {
73
+ color?: string;
74
+ iconIndex?: number;
57
75
  }
58
76
 
59
- declare const ButtonWithLink: React.FC<Expand<ButtonWithLinkProps> &
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;
138
+ }
139
+
140
+ declare const ChargebackReversalIconMedium: React.FC<Expand<
141
+ ChargebackReversalIconMediumProps
142
+ > &
143
+ React.HTMLAttributes<HTMLElement>>;
144
+
145
+ interface ChargebackReversalIconSmallProps {
146
+ color?: string;
147
+ iconIndex?: number;
148
+ }
149
+
150
+ declare const ChargebackReversalIconSmall: React.FC<Expand<
151
+ ChargebackReversalIconSmallProps
152
+ > &
60
153
  React.HTMLAttributes<HTMLElement>>;
61
154
 
62
155
  declare const GuidedCheckoutImage: JSX.Element;
63
156
 
157
+ declare const HistoryIconSmall: JSX.Element;
158
+
64
159
  declare const ProfileImage: JSX.Element;
65
160
 
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
+
66
177
  declare const RevenueManagementImage: JSX.Element;
67
178
 
68
179
  declare const StandardCheckoutImage: JSX.Element;
69
180
 
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
+
70
211
  interface BoxProps {
71
212
  padding?: string;
72
213
  borderSize?: string;
@@ -118,6 +259,7 @@ interface ClusterProps {
118
259
  justifySelf?: string;
119
260
  alignSelf?: string;
120
261
  flexGrow?: string;
262
+ innerWrapperAs?: string;
121
263
  }
122
264
 
123
265
  declare const Cluster: React.FC<Expand<ClusterProps> &
@@ -258,6 +400,54 @@ interface ParagraphProps {
258
400
  declare const Paragraph: React.FC<Expand<ParagraphProps> &
259
401
  React.HTMLAttributes<HTMLElement>>;
260
402
 
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
+
261
451
  interface TextProps {
262
452
  weight?: string;
263
453
  color?: string;
@@ -381,6 +571,9 @@ interface PopoverProps {
381
571
  arrowDirection?: "left" | "right" | "top" | "bottom";
382
572
  transform?: string;
383
573
  disclosedExtraStyles?: string;
574
+ borderColor?: string;
575
+ backgroundColor?: string;
576
+ popoverExtraStyles?: string;
384
577
  }
385
578
 
386
579
  declare const Popover: React.FC<Expand<PopoverProps> &
@@ -400,5 +593,5 @@ interface DefaultPageTemplateProps {
400
593
  declare const DefaultPageTemplate: React.FC<Expand<DefaultPageTemplateProps> &
401
594
  React.HTMLAttributes<HTMLElement>>;
402
595
 
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 };
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 };
404
597
  //# sourceMappingURL=index.d.ts.map