From cf2271d1aff002bea0acf083b6320800701c0d48 Mon Sep 17 00:00:00 2001 From: TheSisb Date: Mon, 5 Feb 2024 12:54:26 -0600 Subject: [PATCH] fix(table,datagrid): noWrap prop regression --- .changeset/new-laws-mix.md | 7 +++++++ packages/paste-core/components/data-grid/src/table/Td.tsx | 2 +- packages/paste-core/components/data-grid/src/table/Th.tsx | 2 +- packages/paste-core/components/table/src/Td.tsx | 2 +- packages/paste-core/components/table/src/Th.tsx | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .changeset/new-laws-mix.md diff --git a/.changeset/new-laws-mix.md b/.changeset/new-laws-mix.md new file mode 100644 index 0000000000..729f764a77 --- /dev/null +++ b/.changeset/new-laws-mix.md @@ -0,0 +1,7 @@ +--- +"@twilio-paste/data-grid": patch +"@twilio-paste/table": patch +"@twilio-paste/core": patch +--- + +[Table, DataGrid] Fix regression that broke `noWrap` prop on Table and DataGrids. diff --git a/packages/paste-core/components/data-grid/src/table/Td.tsx b/packages/paste-core/components/data-grid/src/table/Td.tsx index 4702eacb17..5e6875cd8e 100644 --- a/packages/paste-core/components/data-grid/src/table/Td.tsx +++ b/packages/paste-core/components/data-grid/src/table/Td.tsx @@ -7,7 +7,7 @@ export interface TdProps extends TableTdProps { } export const Td = React.forwardRef( - ({ textAlign = "left", whiteSpace = "normal", element = "DATA_GRID_TD", ...props }, ref) => { + ({ textAlign = "left", whiteSpace, element = "DATA_GRID_TD", ...props }, ref) => { return ( ( - ({ width, textAlign = "left", whiteSpace = "normal", element = "DATA_GRID_TH", ...props }, ref) => { + ({ width, textAlign = "left", whiteSpace, element = "DATA_GRID_TH", ...props }, ref) => { return ( ( - ({ element = "TD", textAlign = "left", whiteSpace = "normal", ...props }, ref) => { + ({ element = "TD", textAlign = "left", whiteSpace, ...props }, ref) => { return ( ( - ({ element = "TH", textAlign = "left", whiteSpace = "normal", width, ...props }, ref) => { + ({ element = "TH", textAlign = "left", whiteSpace, width, ...props }, ref) => { return (