@oliasoft-open-source/react-ui-library 2.2.0 → 2.2.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/package.json
CHANGED
|
@@ -107,6 +107,7 @@ export const Table = (props) => {
|
|
|
107
107
|
rowIndex={rowIndex}
|
|
108
108
|
row={row}
|
|
109
109
|
columnCount={columnCount}
|
|
110
|
+
columnWidths={columnWidths}
|
|
110
111
|
colSpan={colSpan}
|
|
111
112
|
hasRowActions={rowActions}
|
|
112
113
|
key={`1_${rowIndex}`}
|
|
@@ -172,6 +173,7 @@ export const Table = (props) => {
|
|
|
172
173
|
rowIndex={rowIndex}
|
|
173
174
|
row={row}
|
|
174
175
|
columnCount={columnCount}
|
|
176
|
+
columnWidths={columnWidths}
|
|
175
177
|
colSpan={colSpan}
|
|
176
178
|
hasRowActions={rowActions}
|
|
177
179
|
key={`1_${rowIndex}`}
|
|
@@ -234,6 +234,20 @@ export const tableColspan = {
|
|
|
234
234
|
],
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
+
export const tableColspanWidths = {
|
|
238
|
+
...table,
|
|
239
|
+
columnWidths: ['auto', '120px', '120px', 'auto'],
|
|
240
|
+
headers: [
|
|
241
|
+
{
|
|
242
|
+
cells: [
|
|
243
|
+
{ value: 'Header' },
|
|
244
|
+
{ value: 'Header', colSpan: 2 },
|
|
245
|
+
{ value: 'Header' },
|
|
246
|
+
],
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
};
|
|
250
|
+
|
|
237
251
|
export const tableAlignment = {
|
|
238
252
|
...tableColspan,
|
|
239
253
|
columnAlignment: ['left', 'right', 'right', 'left', 'right'],
|
|
@@ -60,6 +60,9 @@ Colspan.args = {
|
|
|
60
60
|
table: storyData.tableColspan,
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
+
export const ColspanWithWidths = Template.bind({});
|
|
64
|
+
ColspanWithWidths.args = { table: storyData.tableColspanWidths };
|
|
65
|
+
|
|
63
66
|
export const ColumnAlignment = Template.bind({});
|
|
64
67
|
ColumnAlignment.args = {
|
|
65
68
|
table: storyData.tableAlignment,
|