glints-aries 4.0.219 → 4.0.220
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/es/@next/DataTable/DataTable.d.ts +1 -1
- package/es/@next/DataTable/DataTableStyle.js +1 -1
- package/es/@next/DataTable/DatatTable.stories.d.ts +1 -0
- package/es/@next/DataTable/TableCell.d.ts +3 -1
- package/es/@next/DataTable/TableCell.js +5 -2
- package/lib/@next/DataTable/DataTable.d.ts +1 -1
- package/lib/@next/DataTable/DataTableStyle.js +1 -1
- package/lib/@next/DataTable/DatatTable.stories.d.ts +1 -0
- package/lib/@next/DataTable/TableCell.d.ts +3 -1
- package/lib/@next/DataTable/TableCell.js +5 -2
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ export interface DataTableProps extends React.TableHTMLAttributes<HTMLTableEleme
|
|
|
18
18
|
}
|
|
19
19
|
export declare const DataTable: React.ForwardRefExoticComponent<DataTableProps & React.RefAttributes<HTMLTableElement>> & {
|
|
20
20
|
Row: ({ children, ...props }: import("./TableRow").TableRowProps) => JSX.Element;
|
|
21
|
-
Cell: ({ align, children }: import("./TableCell").TableCellProps) => JSX.Element;
|
|
21
|
+
Cell: ({ align, children, noWrap, }: import("./TableCell").TableCellProps) => JSX.Element;
|
|
22
22
|
Footer: ({ children }: {
|
|
23
23
|
children: React.ReactNode;
|
|
24
24
|
}) => JSX.Element;
|
|
@@ -19,7 +19,7 @@ export var StyledTabledHeader = styled.th.withConfig({
|
|
|
19
19
|
export var StyledTableCell = styled.td.withConfig({
|
|
20
20
|
displayName: "DataTableStyle__StyledTableCell",
|
|
21
21
|
componentId: "sc-18v2ula-3"
|
|
22
|
-
})(["text-align:left;padding:", ";vertical-align:top;", ""], space16, alignmentStyle);
|
|
22
|
+
})(["text-align:left;padding:", ";vertical-align:top;", " &[data-no-wrap='true']{white-space:nowrap;}"], space16, alignmentStyle);
|
|
23
23
|
export var StyledTableFooterRow = styled.tr.withConfig({
|
|
24
24
|
displayName: "DataTableStyle__StyledTableFooterRow",
|
|
25
25
|
componentId: "sc-18v2ula-4"
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface TableCellProps extends React.TdHTMLAttributes<HTMLTableColElement> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
+
/** Sets table cell content to not wrap*/
|
|
5
|
+
noWrap?: boolean;
|
|
4
6
|
}
|
|
5
|
-
export declare const TableCell: ({ align, children }: TableCellProps) => JSX.Element;
|
|
7
|
+
export declare const TableCell: ({ align, children, noWrap, }: TableCellProps) => JSX.Element;
|
|
@@ -3,9 +3,12 @@ import { Typography } from '../Typography';
|
|
|
3
3
|
import { StyledTableCell } from './DataTableStyle';
|
|
4
4
|
export var TableCell = function TableCell(_ref) {
|
|
5
5
|
var align = _ref.align,
|
|
6
|
-
children = _ref.children
|
|
6
|
+
children = _ref.children,
|
|
7
|
+
_ref$noWrap = _ref.noWrap,
|
|
8
|
+
noWrap = _ref$noWrap === void 0 ? false : _ref$noWrap;
|
|
7
9
|
return /*#__PURE__*/React.createElement(StyledTableCell, {
|
|
8
|
-
"data-text-align": align
|
|
10
|
+
"data-text-align": align,
|
|
11
|
+
"data-no-wrap": noWrap
|
|
9
12
|
}, /*#__PURE__*/React.createElement(Typography, {
|
|
10
13
|
as: "div",
|
|
11
14
|
variant: "body1"
|
|
@@ -18,7 +18,7 @@ export interface DataTableProps extends React.TableHTMLAttributes<HTMLTableEleme
|
|
|
18
18
|
}
|
|
19
19
|
export declare const DataTable: React.ForwardRefExoticComponent<DataTableProps & React.RefAttributes<HTMLTableElement>> & {
|
|
20
20
|
Row: ({ children, ...props }: import("./TableRow").TableRowProps) => JSX.Element;
|
|
21
|
-
Cell: ({ align, children }: import("./TableCell").TableCellProps) => JSX.Element;
|
|
21
|
+
Cell: ({ align, children, noWrap, }: import("./TableCell").TableCellProps) => JSX.Element;
|
|
22
22
|
Footer: ({ children }: {
|
|
23
23
|
children: React.ReactNode;
|
|
24
24
|
}) => JSX.Element;
|
|
@@ -29,7 +29,7 @@ exports.StyledTabledHeader = StyledTabledHeader;
|
|
|
29
29
|
var StyledTableCell = _styledComponents["default"].td.withConfig({
|
|
30
30
|
displayName: "DataTableStyle__StyledTableCell",
|
|
31
31
|
componentId: "sc-18v2ula-3"
|
|
32
|
-
})(["text-align:left;padding:", ";vertical-align:top;", ""], _spacing.space16, alignmentStyle);
|
|
32
|
+
})(["text-align:left;padding:", ";vertical-align:top;", " &[data-no-wrap='true']{white-space:nowrap;}"], _spacing.space16, alignmentStyle);
|
|
33
33
|
exports.StyledTableCell = StyledTableCell;
|
|
34
34
|
var StyledTableFooterRow = _styledComponents["default"].tr.withConfig({
|
|
35
35
|
displayName: "DataTableStyle__StyledTableFooterRow",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface TableCellProps extends React.TdHTMLAttributes<HTMLTableColElement> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
|
+
/** Sets table cell content to not wrap*/
|
|
5
|
+
noWrap?: boolean;
|
|
4
6
|
}
|
|
5
|
-
export declare const TableCell: ({ align, children }: TableCellProps) => JSX.Element;
|
|
7
|
+
export declare const TableCell: ({ align, children, noWrap, }: TableCellProps) => JSX.Element;
|
|
@@ -8,9 +8,12 @@ var _Typography = require("../Typography");
|
|
|
8
8
|
var _DataTableStyle = require("./DataTableStyle");
|
|
9
9
|
var TableCell = function TableCell(_ref) {
|
|
10
10
|
var align = _ref.align,
|
|
11
|
-
children = _ref.children
|
|
11
|
+
children = _ref.children,
|
|
12
|
+
_ref$noWrap = _ref.noWrap,
|
|
13
|
+
noWrap = _ref$noWrap === void 0 ? false : _ref$noWrap;
|
|
12
14
|
return /*#__PURE__*/_react["default"].createElement(_DataTableStyle.StyledTableCell, {
|
|
13
|
-
"data-text-align": align
|
|
15
|
+
"data-text-align": align,
|
|
16
|
+
"data-no-wrap": noWrap
|
|
14
17
|
}, /*#__PURE__*/_react["default"].createElement(_Typography.Typography, {
|
|
15
18
|
as: "div",
|
|
16
19
|
variant: "body1"
|