glints-aries 4.0.219 → 4.0.221

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.
@@ -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;div{width:max-content;}}"], space16, alignmentStyle);
23
23
  export var StyledTableFooterRow = styled.tr.withConfig({
24
24
  displayName: "DataTableStyle__StyledTableFooterRow",
25
25
  componentId: "sc-18v2ula-4"
@@ -3,3 +3,4 @@ declare const _default: Meta<import("@storybook/react").Args>;
3
3
  export default _default;
4
4
  export declare const Interactive: any;
5
5
  export declare const WithEmptyState: any;
6
+ export declare const WithNoWrapCell: any;
@@ -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;div{width:max-content;}}"], _spacing.space16, alignmentStyle);
33
33
  exports.StyledTableCell = StyledTableCell;
34
34
  var StyledTableFooterRow = _styledComponents["default"].tr.withConfig({
35
35
  displayName: "DataTableStyle__StyledTableFooterRow",
@@ -3,3 +3,4 @@ declare const _default: Meta<import("@storybook/react").Args>;
3
3
  export default _default;
4
4
  export declare const Interactive: any;
5
5
  export declare const WithEmptyState: any;
6
+ export declare const WithNoWrapCell: any;
@@ -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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glints-aries",
3
- "version": "4.0.219",
3
+ "version": "4.0.221",
4
4
  "description": "Glints ui-kit for frontend",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",