@dhis2-ui/table 10.16.3-alpha.1 → 10.16.4
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/build/cjs/data-table/data-table-cell.js +25 -27
- package/build/cjs/data-table/data-table-column-header/data-table-column-header.js +58 -62
- package/build/cjs/data-table/data-table-column-header/filter-handle.js +5 -6
- package/build/cjs/data-table/data-table-column-header/sorter.js +6 -7
- package/build/cjs/data-table/data-table-row/data-table-row.js +13 -15
- package/build/cjs/data-table/data-table-row/expand-handle-cell.js +12 -15
- package/build/cjs/data-table/data-table-row/expanded-row.js +19 -22
- package/build/cjs/data-table/data-table.js +11 -13
- package/build/cjs/data-table/data-table.prod.stories.js +128 -146
- package/build/cjs/data-table/table-elements/table-body.js +19 -23
- package/build/cjs/data-table/table-elements/table-data-cell/table-data-cell.js +23 -25
- package/build/cjs/data-table/table-elements/table-foot.js +13 -17
- package/build/cjs/data-table/table-elements/table-head.js +13 -17
- package/build/cjs/data-table/table-elements/table-header-cell/table-header-cell.js +42 -46
- package/build/cjs/data-table/table-elements/table-header-cell-action.js +18 -22
- package/build/cjs/data-table/table-elements/table-row.js +19 -23
- package/build/cjs/data-table/table-elements/table-scroll-box.js +16 -20
- package/build/cjs/data-table/table-elements/table-toolbar.js +15 -19
- package/build/cjs/data-table/table-elements/table.js +21 -25
- package/build/cjs/data-table/table-elements/table.stories.internal.js +111 -120
- package/build/cjs/locales/index.js +40 -21
- package/build/cjs/stacked-table/content-with-title.js +12 -16
- package/build/cjs/stacked-table/stacked-table-body.js +10 -13
- package/build/cjs/stacked-table/stacked-table-cell-head.js +17 -20
- package/build/cjs/stacked-table/stacked-table-cell.js +11 -12
- package/build/cjs/stacked-table/stacked-table-foot.js +10 -13
- package/build/cjs/stacked-table/stacked-table-head.js +10 -13
- package/build/cjs/stacked-table/stacked-table-row-head.js +8 -11
- package/build/cjs/stacked-table/stacked-table-row.js +13 -19
- package/build/cjs/stacked-table/stacked-table.js +6 -7
- package/build/cjs/stacked-table/stacked-table.test.js +14 -23
- package/build/cjs/stacked-table/table.js +11 -14
- package/build/cjs/table/table-body.js +10 -13
- package/build/cjs/table/table-cell-head.js +19 -22
- package/build/cjs/table/table-cell.js +19 -22
- package/build/cjs/table/table-foot.js +10 -13
- package/build/cjs/table/table-head.js +10 -13
- package/build/cjs/table/table-row-head.js +12 -15
- package/build/cjs/table/table-row.js +9 -11
- package/build/cjs/table/table.js +16 -19
- package/build/es/data-table/data-table-cell.js +24 -25
- package/build/es/data-table/data-table-column-header/data-table-column-header.js +57 -60
- package/build/es/data-table/data-table-column-header/filter-handle.js +5 -6
- package/build/es/data-table/data-table-column-header/sorter.js +6 -7
- package/build/es/data-table/data-table-row/data-table-row.js +12 -13
- package/build/es/data-table/data-table-row/expand-handle-cell.js +12 -15
- package/build/es/data-table/data-table-row/expanded-row.js +19 -22
- package/build/es/data-table/data-table.js +10 -11
- package/build/es/data-table/data-table.prod.stories.js +127 -144
- package/build/es/data-table/table-elements/table-body.js +18 -21
- package/build/es/data-table/table-elements/table-data-cell/table-data-cell.js +22 -23
- package/build/es/data-table/table-elements/table-foot.js +12 -15
- package/build/es/data-table/table-elements/table-head.js +12 -15
- package/build/es/data-table/table-elements/table-header-cell/table-header-cell.js +41 -44
- package/build/es/data-table/table-elements/table-header-cell-action.js +17 -20
- package/build/es/data-table/table-elements/table-row.js +18 -21
- package/build/es/data-table/table-elements/table-scroll-box.js +15 -18
- package/build/es/data-table/table-elements/table-toolbar.js +14 -17
- package/build/es/data-table/table-elements/table.js +20 -23
- package/build/es/data-table/table-elements/table.stories.internal.js +110 -118
- package/build/es/locales/index.js +34 -15
- package/build/es/stacked-table/content-with-title.js +11 -14
- package/build/es/stacked-table/stacked-table-body.js +10 -13
- package/build/es/stacked-table/stacked-table-cell-head.js +17 -20
- package/build/es/stacked-table/stacked-table-cell.js +11 -12
- package/build/es/stacked-table/stacked-table-foot.js +10 -13
- package/build/es/stacked-table/stacked-table-head.js +10 -13
- package/build/es/stacked-table/stacked-table-row-head.js +8 -11
- package/build/es/stacked-table/stacked-table-row.js +13 -19
- package/build/es/stacked-table/stacked-table.js +6 -7
- package/build/es/stacked-table/stacked-table.test.js +14 -23
- package/build/es/stacked-table/table.js +11 -14
- package/build/es/table/table-body.js +10 -13
- package/build/es/table/table-cell-head.js +19 -22
- package/build/es/table/table-cell.js +19 -22
- package/build/es/table/table-foot.js +10 -13
- package/build/es/table/table-head.js +10 -13
- package/build/es/table/table-row-head.js +12 -15
- package/build/es/table/table-row.js +8 -9
- package/build/es/table/table.js +16 -19
- package/package.json +3 -3
- package/src/locales/index.js +48 -15
|
@@ -82,83 +82,80 @@ export default {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
const BasicTemplate =
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
colSpan: "4"
|
|
160
|
-
}, "Footer content"))));
|
|
161
|
-
};
|
|
85
|
+
const BasicTemplate = ({
|
|
86
|
+
borderedCells,
|
|
87
|
+
largeCells,
|
|
88
|
+
staticCells,
|
|
89
|
+
draggableRows,
|
|
90
|
+
...args
|
|
91
|
+
}) => /*#__PURE__*/React.createElement(Table, args, /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeaderCell, {
|
|
92
|
+
large: largeCells
|
|
93
|
+
}, "First name"), /*#__PURE__*/React.createElement(TableHeaderCell, {
|
|
94
|
+
large: largeCells
|
|
95
|
+
}, "Last name"), /*#__PURE__*/React.createElement(TableHeaderCell, {
|
|
96
|
+
large: largeCells
|
|
97
|
+
}, "Incident date"), /*#__PURE__*/React.createElement(TableHeaderCell, {
|
|
98
|
+
large: largeCells
|
|
99
|
+
}, "Last updated"))), /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(TableRow, {
|
|
100
|
+
draggable: draggableRows
|
|
101
|
+
}, /*#__PURE__*/React.createElement(TableDataCell, {
|
|
102
|
+
staticStyle: staticCells,
|
|
103
|
+
large: largeCells,
|
|
104
|
+
bordered: borderedCells
|
|
105
|
+
}, "Onyekachukwu"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
106
|
+
staticStyle: staticCells,
|
|
107
|
+
large: largeCells,
|
|
108
|
+
bordered: borderedCells
|
|
109
|
+
}, "Kariuki"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
110
|
+
staticStyle: staticCells,
|
|
111
|
+
large: largeCells,
|
|
112
|
+
bordered: borderedCells
|
|
113
|
+
}, "02/06/2007"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
114
|
+
staticStyle: staticCells,
|
|
115
|
+
large: largeCells,
|
|
116
|
+
bordered: borderedCells
|
|
117
|
+
}, "05/25/1972")), /*#__PURE__*/React.createElement(TableRow, {
|
|
118
|
+
draggable: draggableRows
|
|
119
|
+
}, /*#__PURE__*/React.createElement(TableDataCell, {
|
|
120
|
+
staticStyle: staticCells,
|
|
121
|
+
large: largeCells,
|
|
122
|
+
bordered: borderedCells
|
|
123
|
+
}, "Kwasi"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
124
|
+
staticStyle: staticCells,
|
|
125
|
+
large: largeCells,
|
|
126
|
+
bordered: borderedCells
|
|
127
|
+
}, "Okafor"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
128
|
+
staticStyle: staticCells,
|
|
129
|
+
large: largeCells,
|
|
130
|
+
bordered: borderedCells
|
|
131
|
+
}, "08/11/2010"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
132
|
+
staticStyle: staticCells,
|
|
133
|
+
large: largeCells,
|
|
134
|
+
bordered: borderedCells
|
|
135
|
+
}, "02/26/1991")), /*#__PURE__*/React.createElement(TableRow, {
|
|
136
|
+
draggable: draggableRows
|
|
137
|
+
}, /*#__PURE__*/React.createElement(TableDataCell, {
|
|
138
|
+
staticStyle: staticCells,
|
|
139
|
+
large: largeCells,
|
|
140
|
+
bordered: borderedCells
|
|
141
|
+
}, "Siyabonga"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
142
|
+
staticStyle: staticCells,
|
|
143
|
+
large: largeCells,
|
|
144
|
+
bordered: borderedCells
|
|
145
|
+
}, "Abiodun"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
146
|
+
staticStyle: staticCells,
|
|
147
|
+
large: largeCells,
|
|
148
|
+
bordered: borderedCells
|
|
149
|
+
}, "07/21/1981"), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
150
|
+
staticStyle: staticCells,
|
|
151
|
+
large: largeCells,
|
|
152
|
+
bordered: borderedCells
|
|
153
|
+
}, "02/06/2007"))), /*#__PURE__*/React.createElement(TableFoot, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, {
|
|
154
|
+
staticStyle: staticCells,
|
|
155
|
+
large: largeCells,
|
|
156
|
+
bordered: borderedCells,
|
|
157
|
+
colSpan: "4"
|
|
158
|
+
}, "Footer content"))));
|
|
162
159
|
export const Default = BasicTemplate.bind({});
|
|
163
160
|
Default.args = {};
|
|
164
161
|
export const BorderedCells = BasicTemplate.bind({});
|
|
@@ -268,20 +265,18 @@ const SelectableRowsTemplate = args => {
|
|
|
268
265
|
const [selected, setSelected] = useState({
|
|
269
266
|
id_2: true
|
|
270
267
|
});
|
|
271
|
-
const toggleSelected =
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
} = _ref2;
|
|
268
|
+
const toggleSelected = ({
|
|
269
|
+
value,
|
|
270
|
+
checked
|
|
271
|
+
}) => {
|
|
276
272
|
setSelected({
|
|
277
273
|
...selected,
|
|
278
274
|
[value]: checked
|
|
279
275
|
});
|
|
280
276
|
};
|
|
281
|
-
const toggleAll =
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
} = _ref3;
|
|
277
|
+
const toggleAll = ({
|
|
278
|
+
checked
|
|
279
|
+
}) => {
|
|
285
280
|
setSelected({
|
|
286
281
|
id_1: checked,
|
|
287
282
|
id_2: checked,
|
|
@@ -322,38 +317,35 @@ const SelectableRowsTemplate = args => {
|
|
|
322
317
|
};
|
|
323
318
|
export const SelectableRows = SelectableRowsTemplate.bind({});
|
|
324
319
|
SelectableRows.args = {};
|
|
325
|
-
const FixedHeaderTemplate =
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
top: "0"
|
|
355
|
-
}, "Status"))), /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Onyekachukwu"), /*#__PURE__*/React.createElement(TableDataCell, null, "Kariuki"), /*#__PURE__*/React.createElement(TableDataCell, null, "02/06/2007"), /*#__PURE__*/React.createElement(TableDataCell, null, "05/25/1972"), /*#__PURE__*/React.createElement(TableDataCell, null, "66"), /*#__PURE__*/React.createElement(TableDataCell, null, "Jawi"), /*#__PURE__*/React.createElement(TableDataCell, null, "Sofie Hubert"), /*#__PURE__*/React.createElement(TableDataCell, null, "Incomplete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Kwasi"), /*#__PURE__*/React.createElement(TableDataCell, null, "Okafor"), /*#__PURE__*/React.createElement(TableDataCell, null, "08/11/2010"), /*#__PURE__*/React.createElement(TableDataCell, null, "02/26/1991"), /*#__PURE__*/React.createElement(TableDataCell, null, "38"), /*#__PURE__*/React.createElement(TableDataCell, null, "Mokassie MCHP"), /*#__PURE__*/React.createElement(TableDataCell, null, "Dashonte Clarke"), /*#__PURE__*/React.createElement(TableDataCell, null, "Complete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Siyabonga"), /*#__PURE__*/React.createElement(TableDataCell, null, "Abiodun"), /*#__PURE__*/React.createElement(TableDataCell, null, "07/21/1981"), /*#__PURE__*/React.createElement(TableDataCell, null, "02/06/2007"), /*#__PURE__*/React.createElement(TableDataCell, null, "98"), /*#__PURE__*/React.createElement(TableDataCell, null, "Bathurst MCHP"), /*#__PURE__*/React.createElement(TableDataCell, null, "Unassigned"), /*#__PURE__*/React.createElement(TableDataCell, null, "Incomplete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Chiyembekezo"), /*#__PURE__*/React.createElement(TableDataCell, null, "Okeke"), /*#__PURE__*/React.createElement(TableDataCell, null, "01/23/1982"), /*#__PURE__*/React.createElement(TableDataCell, null, "07/15/2003"), /*#__PURE__*/React.createElement(TableDataCell, null, "2"), /*#__PURE__*/React.createElement(TableDataCell, null, "Mayolla MCHP"), /*#__PURE__*/React.createElement(TableDataCell, null, "Wan Gengxin"), /*#__PURE__*/React.createElement(TableDataCell, null, "Incomplete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Mtendere"), /*#__PURE__*/React.createElement(TableDataCell, null, "Afolayan"), /*#__PURE__*/React.createElement(TableDataCell, null, "08/12/1994"), /*#__PURE__*/React.createElement(TableDataCell, null, "05/12/1972"), /*#__PURE__*/React.createElement(TableDataCell, null, "37"), /*#__PURE__*/React.createElement(TableDataCell, null, "Gbangadu MCHP"), /*#__PURE__*/React.createElement(TableDataCell, null, "Gvozden Boskovsky"), /*#__PURE__*/React.createElement(TableDataCell, null, "Complete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Inyene"), /*#__PURE__*/React.createElement(TableDataCell, null, "Okonkwo"), /*#__PURE__*/React.createElement(TableDataCell, null, "04/01/1971"), /*#__PURE__*/React.createElement(TableDataCell, null, "03/16/2000"), /*#__PURE__*/React.createElement(TableDataCell, null, "70"), /*#__PURE__*/React.createElement(TableDataCell, null, "Kunike Barina"), /*#__PURE__*/React.createElement(TableDataCell, null, "Oscar de la Cavaller\xEDa"), /*#__PURE__*/React.createElement(TableDataCell, null, "Complete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Amaka"), /*#__PURE__*/React.createElement(TableDataCell, null, "Pretorius"), /*#__PURE__*/React.createElement(TableDataCell, null, "01/25/1996"), /*#__PURE__*/React.createElement(TableDataCell, null, "09/15/1986"), /*#__PURE__*/React.createElement(TableDataCell, null, "32"), /*#__PURE__*/React.createElement(TableDataCell, null, "Bargbo"), /*#__PURE__*/React.createElement(TableDataCell, null, "Alberto Raya"), /*#__PURE__*/React.createElement(TableDataCell, null, "Incomplete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Meti"), /*#__PURE__*/React.createElement(TableDataCell, null, "Abiodun"), /*#__PURE__*/React.createElement(TableDataCell, null, "10/24/2010"), /*#__PURE__*/React.createElement(TableDataCell, null, "07/26/1989"), /*#__PURE__*/React.createElement(TableDataCell, null, "8"), /*#__PURE__*/React.createElement(TableDataCell, null, "Majihun MCHP"), /*#__PURE__*/React.createElement(TableDataCell, null, "Unassigned"), /*#__PURE__*/React.createElement(TableDataCell, null, "Complete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Eshe"), /*#__PURE__*/React.createElement(TableDataCell, null, "Okeke"), /*#__PURE__*/React.createElement(TableDataCell, null, "01/31/1995"), /*#__PURE__*/React.createElement(TableDataCell, null, "01/31/1995"), /*#__PURE__*/React.createElement(TableDataCell, null, "63"), /*#__PURE__*/React.createElement(TableDataCell, null, "Mambiama CHP"), /*#__PURE__*/React.createElement(TableDataCell, null, "Shadrias Pearson"), /*#__PURE__*/React.createElement(TableDataCell, null, "Incomplete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Obi"), /*#__PURE__*/React.createElement(TableDataCell, null, "Okafor"), /*#__PURE__*/React.createElement(TableDataCell, null, "06/07/1990"), /*#__PURE__*/React.createElement(TableDataCell, null, "01/03/2006"), /*#__PURE__*/React.createElement(TableDataCell, null, "28"), /*#__PURE__*/React.createElement(TableDataCell, null, "Dalakuru CHP"), /*#__PURE__*/React.createElement(TableDataCell, null, "Anatoliy Shcherbatykh"), /*#__PURE__*/React.createElement(TableDataCell, null, "Incomplete")))));
|
|
356
|
-
};
|
|
320
|
+
const FixedHeaderTemplate = ({
|
|
321
|
+
...args
|
|
322
|
+
}) => /*#__PURE__*/React.createElement(TableScrollBox, {
|
|
323
|
+
maxHeight: "350px"
|
|
324
|
+
}, /*#__PURE__*/React.createElement(Table, args, /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableHeaderCell, {
|
|
325
|
+
fixed: true,
|
|
326
|
+
top: "0"
|
|
327
|
+
}, "First name"), /*#__PURE__*/React.createElement(TableHeaderCell, {
|
|
328
|
+
fixed: true,
|
|
329
|
+
top: "0"
|
|
330
|
+
}, "Last name"), /*#__PURE__*/React.createElement(TableHeaderCell, {
|
|
331
|
+
fixed: true,
|
|
332
|
+
top: "0"
|
|
333
|
+
}, "Incident date"), /*#__PURE__*/React.createElement(TableHeaderCell, {
|
|
334
|
+
fixed: true,
|
|
335
|
+
top: "0"
|
|
336
|
+
}, "Last updated"), /*#__PURE__*/React.createElement(TableHeaderCell, {
|
|
337
|
+
fixed: true,
|
|
338
|
+
top: "0"
|
|
339
|
+
}, "Age"), /*#__PURE__*/React.createElement(TableHeaderCell, {
|
|
340
|
+
fixed: true,
|
|
341
|
+
top: "0"
|
|
342
|
+
}, "Registering unit"), /*#__PURE__*/React.createElement(TableHeaderCell, {
|
|
343
|
+
fixed: true,
|
|
344
|
+
top: "0"
|
|
345
|
+
}, "Assigned user"), /*#__PURE__*/React.createElement(TableHeaderCell, {
|
|
346
|
+
fixed: true,
|
|
347
|
+
top: "0"
|
|
348
|
+
}, "Status"))), /*#__PURE__*/React.createElement(TableBody, null, /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Onyekachukwu"), /*#__PURE__*/React.createElement(TableDataCell, null, "Kariuki"), /*#__PURE__*/React.createElement(TableDataCell, null, "02/06/2007"), /*#__PURE__*/React.createElement(TableDataCell, null, "05/25/1972"), /*#__PURE__*/React.createElement(TableDataCell, null, "66"), /*#__PURE__*/React.createElement(TableDataCell, null, "Jawi"), /*#__PURE__*/React.createElement(TableDataCell, null, "Sofie Hubert"), /*#__PURE__*/React.createElement(TableDataCell, null, "Incomplete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Kwasi"), /*#__PURE__*/React.createElement(TableDataCell, null, "Okafor"), /*#__PURE__*/React.createElement(TableDataCell, null, "08/11/2010"), /*#__PURE__*/React.createElement(TableDataCell, null, "02/26/1991"), /*#__PURE__*/React.createElement(TableDataCell, null, "38"), /*#__PURE__*/React.createElement(TableDataCell, null, "Mokassie MCHP"), /*#__PURE__*/React.createElement(TableDataCell, null, "Dashonte Clarke"), /*#__PURE__*/React.createElement(TableDataCell, null, "Complete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Siyabonga"), /*#__PURE__*/React.createElement(TableDataCell, null, "Abiodun"), /*#__PURE__*/React.createElement(TableDataCell, null, "07/21/1981"), /*#__PURE__*/React.createElement(TableDataCell, null, "02/06/2007"), /*#__PURE__*/React.createElement(TableDataCell, null, "98"), /*#__PURE__*/React.createElement(TableDataCell, null, "Bathurst MCHP"), /*#__PURE__*/React.createElement(TableDataCell, null, "Unassigned"), /*#__PURE__*/React.createElement(TableDataCell, null, "Incomplete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Chiyembekezo"), /*#__PURE__*/React.createElement(TableDataCell, null, "Okeke"), /*#__PURE__*/React.createElement(TableDataCell, null, "01/23/1982"), /*#__PURE__*/React.createElement(TableDataCell, null, "07/15/2003"), /*#__PURE__*/React.createElement(TableDataCell, null, "2"), /*#__PURE__*/React.createElement(TableDataCell, null, "Mayolla MCHP"), /*#__PURE__*/React.createElement(TableDataCell, null, "Wan Gengxin"), /*#__PURE__*/React.createElement(TableDataCell, null, "Incomplete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Mtendere"), /*#__PURE__*/React.createElement(TableDataCell, null, "Afolayan"), /*#__PURE__*/React.createElement(TableDataCell, null, "08/12/1994"), /*#__PURE__*/React.createElement(TableDataCell, null, "05/12/1972"), /*#__PURE__*/React.createElement(TableDataCell, null, "37"), /*#__PURE__*/React.createElement(TableDataCell, null, "Gbangadu MCHP"), /*#__PURE__*/React.createElement(TableDataCell, null, "Gvozden Boskovsky"), /*#__PURE__*/React.createElement(TableDataCell, null, "Complete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Inyene"), /*#__PURE__*/React.createElement(TableDataCell, null, "Okonkwo"), /*#__PURE__*/React.createElement(TableDataCell, null, "04/01/1971"), /*#__PURE__*/React.createElement(TableDataCell, null, "03/16/2000"), /*#__PURE__*/React.createElement(TableDataCell, null, "70"), /*#__PURE__*/React.createElement(TableDataCell, null, "Kunike Barina"), /*#__PURE__*/React.createElement(TableDataCell, null, "Oscar de la Cavaller\xEDa"), /*#__PURE__*/React.createElement(TableDataCell, null, "Complete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Amaka"), /*#__PURE__*/React.createElement(TableDataCell, null, "Pretorius"), /*#__PURE__*/React.createElement(TableDataCell, null, "01/25/1996"), /*#__PURE__*/React.createElement(TableDataCell, null, "09/15/1986"), /*#__PURE__*/React.createElement(TableDataCell, null, "32"), /*#__PURE__*/React.createElement(TableDataCell, null, "Bargbo"), /*#__PURE__*/React.createElement(TableDataCell, null, "Alberto Raya"), /*#__PURE__*/React.createElement(TableDataCell, null, "Incomplete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Meti"), /*#__PURE__*/React.createElement(TableDataCell, null, "Abiodun"), /*#__PURE__*/React.createElement(TableDataCell, null, "10/24/2010"), /*#__PURE__*/React.createElement(TableDataCell, null, "07/26/1989"), /*#__PURE__*/React.createElement(TableDataCell, null, "8"), /*#__PURE__*/React.createElement(TableDataCell, null, "Majihun MCHP"), /*#__PURE__*/React.createElement(TableDataCell, null, "Unassigned"), /*#__PURE__*/React.createElement(TableDataCell, null, "Complete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Eshe"), /*#__PURE__*/React.createElement(TableDataCell, null, "Okeke"), /*#__PURE__*/React.createElement(TableDataCell, null, "01/31/1995"), /*#__PURE__*/React.createElement(TableDataCell, null, "01/31/1995"), /*#__PURE__*/React.createElement(TableDataCell, null, "63"), /*#__PURE__*/React.createElement(TableDataCell, null, "Mambiama CHP"), /*#__PURE__*/React.createElement(TableDataCell, null, "Shadrias Pearson"), /*#__PURE__*/React.createElement(TableDataCell, null, "Incomplete")), /*#__PURE__*/React.createElement(TableRow, null, /*#__PURE__*/React.createElement(TableDataCell, null, "Obi"), /*#__PURE__*/React.createElement(TableDataCell, null, "Okafor"), /*#__PURE__*/React.createElement(TableDataCell, null, "06/07/1990"), /*#__PURE__*/React.createElement(TableDataCell, null, "01/03/2006"), /*#__PURE__*/React.createElement(TableDataCell, null, "28"), /*#__PURE__*/React.createElement(TableDataCell, null, "Dalakuru CHP"), /*#__PURE__*/React.createElement(TableDataCell, null, "Anatoliy Shcherbatykh"), /*#__PURE__*/React.createElement(TableDataCell, null, "Incomplete")))));
|
|
357
349
|
export const FixedHeader = FixedHeaderTemplate.bind({});
|
|
358
350
|
FixedHeader.args = {
|
|
359
351
|
borderless: true
|
|
@@ -23,19 +23,38 @@ import ukTranslations from './uk/translations.json';
|
|
|
23
23
|
import uz_UZ_CyrlTranslations from './uz_UZ_Cyrl/translations.json';
|
|
24
24
|
import zhTranslations from './zh/translations.json';
|
|
25
25
|
const namespace = 'default';
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
i18n.
|
|
31
|
-
i18n.
|
|
32
|
-
i18n.
|
|
33
|
-
i18n.
|
|
34
|
-
i18n.
|
|
35
|
-
i18n.
|
|
36
|
-
i18n.
|
|
37
|
-
i18n.
|
|
38
|
-
i18n.
|
|
39
|
-
i18n.
|
|
40
|
-
i18n.
|
|
26
|
+
|
|
27
|
+
// Use 'deep' = true and 'overwrite' = false to add to, but not overwrite,
|
|
28
|
+
// custom translations from the datastore (added by the app adapter)
|
|
29
|
+
|
|
30
|
+
i18n.addResourceBundle('ar', namespace, arTranslations, true, false);
|
|
31
|
+
i18n.addResourceBundle('ar', namespace, arTranslations, true, false);
|
|
32
|
+
i18n.addResourceBundle('cs', namespace, csTranslations, true, false);
|
|
33
|
+
i18n.addResourceBundle('cs', namespace, csTranslations, true, false);
|
|
34
|
+
i18n.addResourceBundle('en', namespace, enTranslations, true, false);
|
|
35
|
+
i18n.addResourceBundle('en', namespace, enTranslations, true, false);
|
|
36
|
+
i18n.addResourceBundle('es', namespace, esTranslations, true, false);
|
|
37
|
+
i18n.addResourceBundle('es', namespace, esTranslations, true, false);
|
|
38
|
+
i18n.addResourceBundle('es_419', namespace, es_419Translations, true, false);
|
|
39
|
+
i18n.addResourceBundle('es-419', namespace, es_419Translations, true, false);
|
|
40
|
+
i18n.addResourceBundle('fr', namespace, frTranslations, true, false);
|
|
41
|
+
i18n.addResourceBundle('fr', namespace, frTranslations, true, false);
|
|
42
|
+
i18n.addResourceBundle('km', namespace, kmTranslations, true, false);
|
|
43
|
+
i18n.addResourceBundle('km', namespace, kmTranslations, true, false);
|
|
44
|
+
i18n.addResourceBundle('lo', namespace, loTranslations, true, false);
|
|
45
|
+
i18n.addResourceBundle('lo', namespace, loTranslations, true, false);
|
|
46
|
+
i18n.addResourceBundle('nb', namespace, nbTranslations, true, false);
|
|
47
|
+
i18n.addResourceBundle('nb', namespace, nbTranslations, true, false);
|
|
48
|
+
i18n.addResourceBundle('nl', namespace, nlTranslations, true, false);
|
|
49
|
+
i18n.addResourceBundle('nl', namespace, nlTranslations, true, false);
|
|
50
|
+
i18n.addResourceBundle('pt', namespace, ptTranslations, true, false);
|
|
51
|
+
i18n.addResourceBundle('pt', namespace, ptTranslations, true, false);
|
|
52
|
+
i18n.addResourceBundle('ru', namespace, ruTranslations, true, false);
|
|
53
|
+
i18n.addResourceBundle('ru', namespace, ruTranslations, true, false);
|
|
54
|
+
i18n.addResourceBundle('uk', namespace, ukTranslations, true, false);
|
|
55
|
+
i18n.addResourceBundle('uk', namespace, ukTranslations, true, false);
|
|
56
|
+
i18n.addResourceBundle('uz_UZ_Cyrl', namespace, uz_UZ_CyrlTranslations, true, false);
|
|
57
|
+
i18n.addResourceBundle('uz-Cyrl-UZ', namespace, uz_UZ_CyrlTranslations, true, false);
|
|
58
|
+
i18n.addResourceBundle('zh', namespace, zhTranslations, true, false);
|
|
59
|
+
i18n.addResourceBundle('zh', namespace, zhTranslations, true, false);
|
|
41
60
|
export default i18n;
|
|
@@ -2,20 +2,17 @@ import _JSXStyle from "styled-jsx/style";
|
|
|
2
2
|
import { colors } from '@dhis2/ui-constants';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React, { Fragment } from 'react';
|
|
5
|
-
export const ContentWithTitle =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
dynamic: [colors.grey700]
|
|
17
|
-
}, [`.title.__jsx-style-dynamic-selector{display:block;white-space:normal;min-height:24px;font-size:13px;line-height:16px;padding:8px 0 4px;font-weight:normal;color:${colors.grey700};}`, ".content.__jsx-style-dynamic-selector{display:block;padding:0 0 8px 0;font-size:14px;line-height:18px;}", ".content.__jsx-style-dynamic-selector:first-child{padding-top:8px;padding-bottom:8px;}"]));
|
|
18
|
-
};
|
|
5
|
+
export const ContentWithTitle = ({
|
|
6
|
+
title,
|
|
7
|
+
children
|
|
8
|
+
}) => /*#__PURE__*/React.createElement(Fragment, null, title && /*#__PURE__*/React.createElement("span", {
|
|
9
|
+
className: _JSXStyle.dynamic([["215664166", [colors.grey700]]]) + " " + "title"
|
|
10
|
+
}, title), /*#__PURE__*/React.createElement("span", {
|
|
11
|
+
className: _JSXStyle.dynamic([["215664166", [colors.grey700]]]) + " " + "content"
|
|
12
|
+
}, children), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
13
|
+
id: "215664166",
|
|
14
|
+
dynamic: [colors.grey700]
|
|
15
|
+
}, [`.title.__jsx-style-dynamic-selector{display:block;white-space:normal;min-height:24px;font-size:13px;line-height:16px;padding:8px 0 4px;font-weight:normal;color:${colors.grey700};}`, ".content.__jsx-style-dynamic-selector{display:block;padding:0 0 8px 0;font-size:14px;line-height:18px;}", ".content.__jsx-style-dynamic-selector:first-child{padding-top:8px;padding-bottom:8px;}"]));
|
|
19
16
|
ContentWithTitle.propTypes = {
|
|
20
17
|
children: PropTypes.node.isRequired,
|
|
21
18
|
title: PropTypes.string
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import _JSXStyle from "styled-jsx/style";
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
export const StackedTableBody =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
id: "4146628131"
|
|
15
|
-
}, ["tbody.jsx-4146628131{display:block;}"]));
|
|
16
|
-
};
|
|
4
|
+
export const StackedTableBody = ({
|
|
5
|
+
children,
|
|
6
|
+
className,
|
|
7
|
+
dataTest = 'dhis2-uicore-stackedtablebody'
|
|
8
|
+
}) => /*#__PURE__*/React.createElement("tbody", {
|
|
9
|
+
"data-tset": dataTest,
|
|
10
|
+
className: "jsx-4146628131" + " " + (className || "")
|
|
11
|
+
}, children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
12
|
+
id: "4146628131"
|
|
13
|
+
}, ["tbody.jsx-4146628131{display:block;}"]));
|
|
17
14
|
StackedTableBody.propTypes = {
|
|
18
15
|
children: PropTypes.node,
|
|
19
16
|
className: PropTypes.string,
|
|
@@ -2,26 +2,23 @@ import _JSXStyle from "styled-jsx/style";
|
|
|
2
2
|
import { colors } from '@dhis2/ui-constants';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
export const StackedTableCellHead =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
dynamic: [colors.grey300]
|
|
23
|
-
}, [`th.__jsx-style-dynamic-selector{border-bottom:1px solid ${colors.grey300};padding:0 12px;}`, "div.__jsx-style-dynamic-selector{min-height:36px;}"]));
|
|
24
|
-
};
|
|
5
|
+
export const StackedTableCellHead = ({
|
|
6
|
+
children = '',
|
|
7
|
+
className,
|
|
8
|
+
colSpan,
|
|
9
|
+
dataTest = 'dhis2-uicore-stackedtablecellhead',
|
|
10
|
+
rowSpan
|
|
11
|
+
}) => /*#__PURE__*/React.createElement("th", {
|
|
12
|
+
colSpan: colSpan,
|
|
13
|
+
rowSpan: rowSpan,
|
|
14
|
+
"data-test": dataTest,
|
|
15
|
+
className: _JSXStyle.dynamic([["178822310", [colors.grey300]]]) + " " + (className || "")
|
|
16
|
+
}, children && /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: _JSXStyle.dynamic([["178822310", [colors.grey300]]])
|
|
18
|
+
}, children), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
19
|
+
id: "178822310",
|
|
20
|
+
dynamic: [colors.grey300]
|
|
21
|
+
}, [`th.__jsx-style-dynamic-selector{border-bottom:1px solid ${colors.grey300};padding:0 12px;}`, "div.__jsx-style-dynamic-selector{min-height:36px;}"]));
|
|
25
22
|
StackedTableCellHead.propTypes = {
|
|
26
23
|
children: PropTypes.string,
|
|
27
24
|
className: PropTypes.string,
|
|
@@ -4,18 +4,17 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { ContentWithTitle } from './content-with-title.js';
|
|
6
6
|
const defaultHeaderLabels = [];
|
|
7
|
-
export const StackedTableCell =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} = _ref;
|
|
7
|
+
export const StackedTableCell = ({
|
|
8
|
+
children,
|
|
9
|
+
className,
|
|
10
|
+
colSpan,
|
|
11
|
+
column,
|
|
12
|
+
dataTest = 'dhis2-uicore-stackedtablecell',
|
|
13
|
+
headerLabels = defaultHeaderLabels,
|
|
14
|
+
hideTitle,
|
|
15
|
+
rowSpan,
|
|
16
|
+
title
|
|
17
|
+
}) => {
|
|
19
18
|
const cellTitle = title || headerLabels[column] || '';
|
|
20
19
|
const realTitle = hideTitle ? '' : cellTitle;
|
|
21
20
|
return /*#__PURE__*/React.createElement("td", {
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import _JSXStyle from "styled-jsx/style";
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
export const StackedTableFoot =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
id: "3912324960"
|
|
15
|
-
}, ["tfoot.jsx-3912324960{display:block;margin-top:32px;}"]));
|
|
16
|
-
};
|
|
4
|
+
export const StackedTableFoot = ({
|
|
5
|
+
children,
|
|
6
|
+
className,
|
|
7
|
+
dataTest = 'dhis2-uicore-stackedtablefoot'
|
|
8
|
+
}) => /*#__PURE__*/React.createElement("tfoot", {
|
|
9
|
+
"data-test": dataTest,
|
|
10
|
+
className: "jsx-3912324960" + " " + (className || "")
|
|
11
|
+
}, children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
12
|
+
id: "3912324960"
|
|
13
|
+
}, ["tfoot.jsx-3912324960{display:block;margin-top:32px;}"]));
|
|
17
14
|
StackedTableFoot.propTypes = {
|
|
18
15
|
children: PropTypes.node,
|
|
19
16
|
className: PropTypes.string,
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import _JSXStyle from "styled-jsx/style";
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
export const StackedTableHead =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
id: "1150407268"
|
|
15
|
-
}, ["thead.jsx-1150407268{display:none;}"]));
|
|
16
|
-
};
|
|
4
|
+
export const StackedTableHead = ({
|
|
5
|
+
children,
|
|
6
|
+
className,
|
|
7
|
+
dataTest = 'dhis2-uicore-stackedtablehead'
|
|
8
|
+
}) => /*#__PURE__*/React.createElement("thead", {
|
|
9
|
+
"data-test": dataTest,
|
|
10
|
+
className: "jsx-1150407268" + " " + (className || "")
|
|
11
|
+
}, children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
12
|
+
id: "1150407268"
|
|
13
|
+
}, ["thead.jsx-1150407268{display:none;}"]));
|
|
17
14
|
StackedTableHead.propTypes = {
|
|
18
15
|
children: PropTypes.node,
|
|
19
16
|
className: PropTypes.string,
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { StackedTableRow } from './stacked-table-row.js';
|
|
4
|
-
export const StackedTableRowHead =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
dataTest: dataTest
|
|
13
|
-
}, children);
|
|
14
|
-
};
|
|
4
|
+
export const StackedTableRowHead = ({
|
|
5
|
+
children,
|
|
6
|
+
className,
|
|
7
|
+
dataTest = 'dhis2-uicore-stackedtablerowhead'
|
|
8
|
+
}) => /*#__PURE__*/React.createElement(StackedTableRow, {
|
|
9
|
+
className: className,
|
|
10
|
+
dataTest: dataTest
|
|
11
|
+
}, children);
|
|
15
12
|
StackedTableRowHead.propTypes = {
|
|
16
13
|
children: PropTypes.node,
|
|
17
14
|
className: PropTypes.string,
|
|
@@ -5,25 +5,19 @@ import React from 'react';
|
|
|
5
5
|
import { addColNumToChildren } from './add-col-num-to-children.js';
|
|
6
6
|
import { supplyHeaderLabelsToChildren } from './supply-header-labels-to-children.js';
|
|
7
7
|
import { Consumer } from './table-context.js';
|
|
8
|
-
export const StackedTableRow =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return supplyHeaderLabelsToChildren(headerLabels, addColNumToChildren(children));
|
|
22
|
-
}), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
23
|
-
id: "2003961452",
|
|
24
|
-
dynamic: [colors.grey300, colors.white]
|
|
25
|
-
}, [`tr.__jsx-style-dynamic-selector{min-height:45px;display:block;border:1px solid ${colors.grey300};}`, `tr.__jsx-style-dynamic-selector:nth-child(even){background:${colors.white};}`, "thead>tr.__jsx-style-dynamic-selector,tbody>tr.__jsx-style-dynamic-selector{min-height:36px;}", "tr.__jsx-style-dynamic-selector+tr.__jsx-style-dynamic-selector{margin-top:32px;}"]));
|
|
26
|
-
};
|
|
8
|
+
export const StackedTableRow = ({
|
|
9
|
+
children,
|
|
10
|
+
className,
|
|
11
|
+
dataTest = 'dhis2-uicore-stackedtablerow'
|
|
12
|
+
}) => /*#__PURE__*/React.createElement("tr", {
|
|
13
|
+
"data-test": dataTest,
|
|
14
|
+
className: _JSXStyle.dynamic([["2003961452", [colors.grey300, colors.white]]]) + " " + (className || "")
|
|
15
|
+
}, /*#__PURE__*/React.createElement(Consumer, null, ({
|
|
16
|
+
headerLabels
|
|
17
|
+
}) => supplyHeaderLabelsToChildren(headerLabels, addColNumToChildren(children))), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
18
|
+
id: "2003961452",
|
|
19
|
+
dynamic: [colors.grey300, colors.white]
|
|
20
|
+
}, [`tr.__jsx-style-dynamic-selector{min-height:45px;display:block;border:1px solid ${colors.grey300};}`, `tr.__jsx-style-dynamic-selector:nth-child(even){background:${colors.white};}`, "thead>tr.__jsx-style-dynamic-selector,tbody>tr.__jsx-style-dynamic-selector{min-height:36px;}", "tr.__jsx-style-dynamic-selector+tr.__jsx-style-dynamic-selector{margin-top:32px;}"]));
|
|
27
21
|
StackedTableRow.propTypes = {
|
|
28
22
|
children: PropTypes.node,
|
|
29
23
|
className: PropTypes.string,
|