@luscii-healthtech/web-ui 0.7.1 → 0.7.2
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/components/Table/Table.types.d.ts +1 -0
- package/dist/web-ui.cjs.development.js +4 -1
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +4 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Table/Table.types.ts +1 -0
- package/src/components/Table/TableBodyRowDataCell.tsx +4 -1
|
@@ -10,6 +10,7 @@ export interface TableFieldConfig<Item> {
|
|
|
10
10
|
export declare type TableFieldContent<Item> = TableFieldText | [TableFieldAction<Item>?, TableFieldAction<Item>?];
|
|
11
11
|
export interface TableFieldText {
|
|
12
12
|
text: string;
|
|
13
|
+
breakAllWord?: boolean;
|
|
13
14
|
tag?: {
|
|
14
15
|
text: string;
|
|
15
16
|
color: TagColorTheme;
|
|
@@ -2098,7 +2098,10 @@ function TableBodyRowDataCell(props) {
|
|
|
2098
2098
|
text: content.tag.text,
|
|
2099
2099
|
colorTheme: content.tag.color
|
|
2100
2100
|
})), /*#__PURE__*/React__default.createElement(Text, {
|
|
2101
|
-
className: "py-4
|
|
2101
|
+
className: classNames("py-4 text-left leading-5", {
|
|
2102
|
+
"break-all": content.breakAllWord,
|
|
2103
|
+
"break-words": !content.breakAllWord
|
|
2104
|
+
}),
|
|
2102
2105
|
text: content.text === "" ? emptyFieldContentText : content.text,
|
|
2103
2106
|
type: "base"
|
|
2104
2107
|
})), isTableFieldAction(content) && /*#__PURE__*/React__default.createElement("div", {
|