@thecb/components 7.7.3-beta.2 → 7.7.3-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.cjs.js +28 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +75 -27
- package/dist/index.esm.js +28 -10
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/index.d.ts +2 -1
- package/src/components/atoms/table/Table.styled.js +1 -0
- package/src/components/atoms/table/TableCell.styled.js +3 -3
- package/src/components/atoms/table/TableHead.styled.js +1 -1
- package/src/components/atoms/table/TableHeading.styled.js +2 -2
- package/src/components/atoms/table/index.d.ts +50 -0
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,32 +59,6 @@ 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;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
declare const ButtonWithAction: React.FC<Expand<ButtonWithActionProps> &
|
|
49
|
-
React.HTMLAttributes<HTMLElement>>;
|
|
50
|
-
|
|
51
|
-
interface ButtonWithLinkProps extends ButtonWithActionProps {
|
|
52
|
-
linkExtraStyles?: string;
|
|
53
|
-
url: string;
|
|
54
|
-
disabled?: boolean;
|
|
55
|
-
fileLink?: boolean;
|
|
56
|
-
newTab?: boolean;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
declare const ButtonWithLink: React.FC<Expand<ButtonWithLinkProps> &
|
|
60
|
-
React.HTMLAttributes<HTMLElement>>;
|
|
61
|
-
|
|
62
62
|
declare const GuidedCheckoutImage: JSX.Element;
|
|
63
63
|
|
|
64
64
|
declare const HistoryIconSmall: JSX.Element;
|
|
@@ -260,6 +260,54 @@ interface ParagraphProps {
|
|
|
260
260
|
declare const Paragraph: React.FC<Expand<ParagraphProps> &
|
|
261
261
|
React.HTMLAttributes<HTMLElement>>;
|
|
262
262
|
|
|
263
|
+
interface TableProps {
|
|
264
|
+
extraStyles?: string;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
interface TableBodyProps {
|
|
268
|
+
extraStyles?: string;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
interface TableCellProps {
|
|
272
|
+
extraStyles?: string;
|
|
273
|
+
fontSize?: string;
|
|
274
|
+
maxWidth?: string;
|
|
275
|
+
padding?: string;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
interface TableHeadProps {
|
|
279
|
+
extraStyles?: string;
|
|
280
|
+
}
|
|
281
|
+
interface TableHeadingProps {
|
|
282
|
+
extraStyles?: string;
|
|
283
|
+
minWidth?: string;
|
|
284
|
+
padding?: string;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface TableRowProps {
|
|
288
|
+
extraStyles?: string;
|
|
289
|
+
hoverCursor?: boolean;
|
|
290
|
+
hoverEffect?: boolean;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
declare const Table: React.FC<Expand<TableProps> &
|
|
294
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
295
|
+
|
|
296
|
+
declare const TableBody: React.FC<Expand<TableBodyProps> &
|
|
297
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
298
|
+
|
|
299
|
+
declare const TableCell: React.FC<Expand<TableCellProps> &
|
|
300
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
301
|
+
|
|
302
|
+
declare const TableHead: React.FC<Expand<TableHeadProps> &
|
|
303
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
304
|
+
|
|
305
|
+
declare const TableHeading: React.FC<Expand<TableHeadingProps> &
|
|
306
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
307
|
+
|
|
308
|
+
declare const TableRow: React.FC<Expand<TableRowProps> &
|
|
309
|
+
React.HTMLAttributes<HTMLElement>>;
|
|
310
|
+
|
|
263
311
|
interface TextProps {
|
|
264
312
|
weight?: string;
|
|
265
313
|
color?: string;
|
|
@@ -402,5 +450,5 @@ interface DefaultPageTemplateProps {
|
|
|
402
450
|
declare const DefaultPageTemplate: React.FC<Expand<DefaultPageTemplateProps> &
|
|
403
451
|
React.HTMLAttributes<HTMLElement>>;
|
|
404
452
|
|
|
405
|
-
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, HistoryIconSmall, 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 };
|
|
453
|
+
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, HistoryIconSmall, InternalLink, InternalLinkProps, NavFooter, NavFooterProps, NavHeader, NavHeaderProps, NavTabs, NavTabsProps, Paragraph, ParagraphProps, Popover, PopoverProps, ProfileImage, RevenueManagementImage, Stack, StackProps, StandardCheckoutImage, Switcher, SwitcherProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableHead, TableHeadProps, TableHeading, TableHeadingProps, TableListItem, TableListItemProps, TableProps, TableRow, TableRowProps, Text, TextProps, Title, TitleProps };
|
|
406
454
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.esm.js
CHANGED
|
@@ -36419,7 +36419,7 @@ var LoadingLine = function LoadingLine(_ref) {
|
|
|
36419
36419
|
var Table_styled = styled.table.withConfig({
|
|
36420
36420
|
displayName: "Tablestyled",
|
|
36421
36421
|
componentId: "sc-mveye7-0"
|
|
36422
|
-
})(["width:100%;table-layout:auto;", ""], function (_ref) {
|
|
36422
|
+
})(["width:100%;table-layout:auto;border-collapse:collapse;", ""], function (_ref) {
|
|
36423
36423
|
var extraStyles = _ref.extraStyles;
|
|
36424
36424
|
return extraStyles;
|
|
36425
36425
|
});
|
|
@@ -36435,11 +36435,20 @@ var TableBody_styled = styled.tbody.withConfig({
|
|
|
36435
36435
|
var TableCell_styled = styled.td.withConfig({
|
|
36436
36436
|
displayName: "TableCellstyled",
|
|
36437
36437
|
componentId: "sc-iqndn8-0"
|
|
36438
|
-
})(["padding:", ";font-size:
|
|
36439
|
-
var padding = _ref.padding
|
|
36440
|
-
|
|
36438
|
+
})(["padding:", ";font-size:", " white-space:nowrap;max-width:", ";overflow:hidden;text-overflow:ellipsis;&:last-child{text-align:right;}", ";"], function (_ref) {
|
|
36439
|
+
var _ref$padding = _ref.padding,
|
|
36440
|
+
padding = _ref$padding === void 0 ? "24px" : _ref$padding;
|
|
36441
|
+
return padding;
|
|
36441
36442
|
}, function (_ref2) {
|
|
36442
|
-
var
|
|
36443
|
+
var _ref2$fontSize = _ref2.fontSize,
|
|
36444
|
+
fontSize = _ref2$fontSize === void 0 ? "0.875rem" : _ref2$fontSize;
|
|
36445
|
+
return fontSize;
|
|
36446
|
+
}, function (_ref3) {
|
|
36447
|
+
var _ref3$maxWidth = _ref3.maxWidth,
|
|
36448
|
+
maxWidth = _ref3$maxWidth === void 0 ? "250px" : _ref3$maxWidth;
|
|
36449
|
+
return maxWidth;
|
|
36450
|
+
}, function (_ref4) {
|
|
36451
|
+
var extraStyles = _ref4.extraStyles;
|
|
36443
36452
|
return extraStyles;
|
|
36444
36453
|
});
|
|
36445
36454
|
|
|
@@ -36453,12 +36462,16 @@ var fallbackValues$A = {
|
|
|
36453
36462
|
var StyledTableHead = styled.thead.withConfig({
|
|
36454
36463
|
displayName: "TableHeadstyled",
|
|
36455
36464
|
componentId: "sc-j8e6c1-0"
|
|
36456
|
-
})(["background-color:", ";border-bottom:", ";font-size:
|
|
36465
|
+
})(["background-color:", ";border-bottom:", ";font-size:", ";"], function (_ref) {
|
|
36457
36466
|
var backgroundColor = _ref.backgroundColor;
|
|
36458
36467
|
return backgroundColor;
|
|
36459
36468
|
}, function (_ref2) {
|
|
36460
36469
|
var borderColor = _ref2.borderColor;
|
|
36461
36470
|
return "1px solid ".concat(borderColor);
|
|
36471
|
+
}, function (_ref3) {
|
|
36472
|
+
var _ref3$fontSize = _ref3.fontSize,
|
|
36473
|
+
fontSize = _ref3$fontSize === void 0 ? "0.875rem" : _ref3$fontSize;
|
|
36474
|
+
return fontSize;
|
|
36462
36475
|
});
|
|
36463
36476
|
|
|
36464
36477
|
var borderColor$4 = GREY_CHATEAU;
|
|
@@ -36526,11 +36539,16 @@ var TableHead$1 = themeComponent(TableHead, "TableHead", fallbackValues$A);
|
|
|
36526
36539
|
var TableHeading_styled = styled.th.withConfig({
|
|
36527
36540
|
displayName: "TableHeadingstyled",
|
|
36528
36541
|
componentId: "sc-1ggk38d-0"
|
|
36529
|
-
})(["padding:
|
|
36530
|
-
var
|
|
36531
|
-
|
|
36542
|
+
})(["padding:", ";min-width:", ";text-align:left;&:last-child{text-align:right;}", ""], function (_ref) {
|
|
36543
|
+
var _ref$padding = _ref.padding,
|
|
36544
|
+
padding = _ref$padding === void 0 ? "24px" : _ref$padding;
|
|
36545
|
+
return padding;
|
|
36532
36546
|
}, function (_ref2) {
|
|
36533
|
-
var
|
|
36547
|
+
var _ref2$minWidth = _ref2.minWidth,
|
|
36548
|
+
minWidth = _ref2$minWidth === void 0 ? "initial" : _ref2$minWidth;
|
|
36549
|
+
return minWidth;
|
|
36550
|
+
}, function (_ref3) {
|
|
36551
|
+
var extraStyles = _ref3.extraStyles;
|
|
36534
36552
|
return extraStyles;
|
|
36535
36553
|
});
|
|
36536
36554
|
|