@zendeskgarden/react-tables 9.8.0 → 9.10.0
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/esm/styled/StyledBody.js +1 -1
- package/dist/esm/styled/StyledCaption.js +1 -1
- package/dist/esm/styled/StyledCell.js +1 -1
- package/dist/esm/styled/StyledGroupRow.js +1 -1
- package/dist/esm/styled/StyledHead.js +3 -2
- package/dist/esm/styled/StyledHeaderCell.js +1 -1
- package/dist/esm/styled/StyledHeaderRow.js +1 -1
- package/dist/esm/styled/StyledHiddenCell.js +1 -1
- package/dist/esm/styled/StyledOverflowButton.js +1 -1
- package/dist/esm/styled/StyledRow.js +1 -1
- package/dist/esm/styled/StyledSortableButton.js +1 -1
- package/dist/esm/styled/StyledTable.js +1 -1
- package/dist/index.cjs.js +78 -78
- package/package.json +4 -4
|
@@ -10,7 +10,7 @@ import { componentStyles } from '@zendeskgarden/react-theming';
|
|
|
10
10
|
const COMPONENT_ID = 'tables.body';
|
|
11
11
|
const StyledBody = styled.tbody.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.
|
|
13
|
+
'data-garden-version': '9.10.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledBody",
|
|
16
16
|
componentId: "sc-14ud6y-0"
|
|
@@ -10,7 +10,7 @@ import { componentStyles } from '@zendeskgarden/react-theming';
|
|
|
10
10
|
const COMPONENT_ID = 'tables.caption';
|
|
11
11
|
const StyledCaption = styled.caption.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.
|
|
13
|
+
'data-garden-version': '9.10.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledCaption",
|
|
16
16
|
componentId: "sc-113y327-0"
|
|
@@ -35,7 +35,7 @@ const sizeStyles = props => {
|
|
|
35
35
|
};
|
|
36
36
|
const StyledGroupRow = styled(StyledBaseRow).attrs({
|
|
37
37
|
'data-garden-id': COMPONENT_ID,
|
|
38
|
-
'data-garden-version': '9.
|
|
38
|
+
'data-garden-version': '9.10.0'
|
|
39
39
|
}).withConfig({
|
|
40
40
|
displayName: "StyledGroupRow",
|
|
41
41
|
componentId: "sc-mpd0r8-0"
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledHeaderRow } from './StyledHeaderRow.js';
|
|
10
|
+
import { StyledHeaderCell } from './StyledHeaderCell.js';
|
|
10
11
|
|
|
11
12
|
const COMPONENT_ID = 'tables.head';
|
|
12
13
|
const colorStyles = _ref => {
|
|
@@ -21,14 +22,14 @@ const colorStyles = _ref => {
|
|
|
21
22
|
variable: 'background.default',
|
|
22
23
|
theme
|
|
23
24
|
});
|
|
24
|
-
return css(["
|
|
25
|
+
return css(["background-color:", ";& > ", ":last-child{border-bottom-color:transparent;& > ", "{box-shadow:inset 0 -", " 0 ", ";}}"], backgroundColor, StyledHeaderRow, StyledHeaderCell, theme.borderWidths.sm, borderColor);
|
|
25
26
|
};
|
|
26
27
|
const stickyStyles = () => {
|
|
27
28
|
return css(["position:sticky;top:0;z-index:1;"]);
|
|
28
29
|
};
|
|
29
30
|
const StyledHead = styled.thead.attrs({
|
|
30
31
|
'data-garden-id': COMPONENT_ID,
|
|
31
|
-
'data-garden-version': '9.
|
|
32
|
+
'data-garden-version': '9.10.0'
|
|
32
33
|
}).withConfig({
|
|
33
34
|
displayName: "StyledHead",
|
|
34
35
|
componentId: "sc-spf23a-0"
|
|
@@ -24,7 +24,7 @@ const sizeStyles = props => {
|
|
|
24
24
|
const StyledHeaderCell = styled(StyledCell).attrs({
|
|
25
25
|
as: 'th',
|
|
26
26
|
'data-garden-id': COMPONENT_ID,
|
|
27
|
-
'data-garden-version': '9.
|
|
27
|
+
'data-garden-version': '9.10.0'
|
|
28
28
|
}).withConfig({
|
|
29
29
|
displayName: "StyledHeaderCell",
|
|
30
30
|
componentId: "sc-fzagoe-0"
|
|
@@ -34,7 +34,7 @@ const sizeStyles = props => {
|
|
|
34
34
|
};
|
|
35
35
|
const StyledHeaderRow = styled(StyledBaseRow).attrs({
|
|
36
36
|
'data-garden-id': COMPONENT_ID,
|
|
37
|
-
'data-garden-version': '9.
|
|
37
|
+
'data-garden-version': '9.10.0'
|
|
38
38
|
}).withConfig({
|
|
39
39
|
displayName: "StyledHeaderRow",
|
|
40
40
|
componentId: "sc-16ogvdx-0"
|
|
@@ -11,7 +11,7 @@ import { componentStyles } from '@zendeskgarden/react-theming';
|
|
|
11
11
|
const COMPONENT_ID = 'tables.hidden_cell';
|
|
12
12
|
const StyledHiddenCell = styled.div.attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.
|
|
14
|
+
'data-garden-version': '9.10.0'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledHiddenCell",
|
|
17
17
|
componentId: "sc-1x454xw-0"
|
|
@@ -14,7 +14,7 @@ const COMPONENT_ID = 'tables.overflow_button';
|
|
|
14
14
|
const OVERFLOW_BUTTON_SIZE = '2em';
|
|
15
15
|
const StyledOverflowButton = styled(IconButton).attrs({
|
|
16
16
|
'data-garden-id': COMPONENT_ID,
|
|
17
|
-
'data-garden-version': '9.
|
|
17
|
+
'data-garden-version': '9.10.0'
|
|
18
18
|
}).withConfig({
|
|
19
19
|
displayName: "StyledOverflowButton",
|
|
20
20
|
componentId: "sc-1eba2ml-0"
|
|
@@ -94,7 +94,7 @@ const sizeStyles = props => {
|
|
|
94
94
|
};
|
|
95
95
|
const StyledRow = styled(StyledBaseRow).attrs({
|
|
96
96
|
'data-garden-id': COMPONENT_ID,
|
|
97
|
-
'data-garden-version': '9.
|
|
97
|
+
'data-garden-version': '9.10.0'
|
|
98
98
|
}).withConfig({
|
|
99
99
|
displayName: "StyledRow",
|
|
100
100
|
componentId: "sc-ek66ow-0"
|
|
@@ -82,7 +82,7 @@ const colorStyles = _ref => {
|
|
|
82
82
|
};
|
|
83
83
|
const StyledSortableButton = styled.button.attrs({
|
|
84
84
|
'data-garden-id': COMPONENT_ID,
|
|
85
|
-
'data-garden-version': '9.
|
|
85
|
+
'data-garden-version': '9.10.0',
|
|
86
86
|
type: 'button'
|
|
87
87
|
}).withConfig({
|
|
88
88
|
displayName: "StyledSortableButton",
|
|
@@ -13,7 +13,7 @@ const getLineHeight = props => {
|
|
|
13
13
|
};
|
|
14
14
|
const StyledTable = styled.table.attrs({
|
|
15
15
|
'data-garden-id': COMPONENT_ID,
|
|
16
|
-
'data-garden-version': '9.
|
|
16
|
+
'data-garden-version': '9.10.0'
|
|
17
17
|
}).withConfig({
|
|
18
18
|
displayName: "StyledTable",
|
|
19
19
|
componentId: "sc-gje7na-0"
|
package/dist/index.cjs.js
CHANGED
|
@@ -41,7 +41,7 @@ var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
|
41
41
|
const COMPONENT_ID$b = 'tables.body';
|
|
42
42
|
const StyledBody = styled__default.default.tbody.attrs({
|
|
43
43
|
'data-garden-id': COMPONENT_ID$b,
|
|
44
|
-
'data-garden-version': '9.
|
|
44
|
+
'data-garden-version': '9.10.0'
|
|
45
45
|
}).withConfig({
|
|
46
46
|
displayName: "StyledBody",
|
|
47
47
|
componentId: "sc-14ud6y-0"
|
|
@@ -50,7 +50,7 @@ const StyledBody = styled__default.default.tbody.attrs({
|
|
|
50
50
|
const COMPONENT_ID$a = 'tables.caption';
|
|
51
51
|
const StyledCaption = styled__default.default.caption.attrs({
|
|
52
52
|
'data-garden-id': COMPONENT_ID$a,
|
|
53
|
-
'data-garden-version': '9.
|
|
53
|
+
'data-garden-version': '9.10.0'
|
|
54
54
|
}).withConfig({
|
|
55
55
|
displayName: "StyledCaption",
|
|
56
56
|
componentId: "sc-113y327-0"
|
|
@@ -102,7 +102,7 @@ const COMPONENT_ID$9 = 'tables.overflow_button';
|
|
|
102
102
|
const OVERFLOW_BUTTON_SIZE = '2em';
|
|
103
103
|
const StyledOverflowButton = styled__default.default(reactButtons.IconButton).attrs({
|
|
104
104
|
'data-garden-id': COMPONENT_ID$9,
|
|
105
|
-
'data-garden-version': '9.
|
|
105
|
+
'data-garden-version': '9.10.0'
|
|
106
106
|
}).withConfig({
|
|
107
107
|
displayName: "StyledOverflowButton",
|
|
108
108
|
componentId: "sc-1eba2ml-0"
|
|
@@ -132,45 +132,19 @@ const sizeStyles$3 = props => {
|
|
|
132
132
|
};
|
|
133
133
|
const StyledHeaderRow = styled__default.default(StyledBaseRow).attrs({
|
|
134
134
|
'data-garden-id': COMPONENT_ID$8,
|
|
135
|
-
'data-garden-version': '9.
|
|
135
|
+
'data-garden-version': '9.10.0'
|
|
136
136
|
}).withConfig({
|
|
137
137
|
displayName: "StyledHeaderRow",
|
|
138
138
|
componentId: "sc-16ogvdx-0"
|
|
139
139
|
})(["font-weight:", ";", " ", " ", "{opacity:1;}", ";"], props => props.theme.fontWeights.semibold, sizeStyles$3, colorStyles$4, StyledOverflowButton, reactTheming.componentStyles);
|
|
140
140
|
|
|
141
|
-
const COMPONENT_ID$7 = 'tables.
|
|
142
|
-
const colorStyles$3 = _ref => {
|
|
143
|
-
let {
|
|
144
|
-
theme
|
|
145
|
-
} = _ref;
|
|
146
|
-
const borderColor = reactTheming.getColor({
|
|
147
|
-
variable: 'border.default',
|
|
148
|
-
theme
|
|
149
|
-
});
|
|
150
|
-
const backgroundColor = reactTheming.getColor({
|
|
151
|
-
variable: 'background.default',
|
|
152
|
-
theme
|
|
153
|
-
});
|
|
154
|
-
return styled.css(["box-shadow:inset 0 -", " 0 ", ";background-color:", ";& > ", ":last-child{border-bottom-color:transparent;}"], theme.borderWidths.sm, borderColor, backgroundColor, StyledHeaderRow);
|
|
155
|
-
};
|
|
156
|
-
const stickyStyles = () => {
|
|
157
|
-
return styled.css(["position:sticky;top:0;z-index:1;"]);
|
|
158
|
-
};
|
|
159
|
-
const StyledHead = styled__default.default.thead.attrs({
|
|
160
|
-
'data-garden-id': COMPONENT_ID$7,
|
|
161
|
-
'data-garden-version': '9.8.0'
|
|
162
|
-
}).withConfig({
|
|
163
|
-
displayName: "StyledHead",
|
|
164
|
-
componentId: "sc-spf23a-0"
|
|
165
|
-
})(["", " ", " ", ";"], props => props.$isSticky && stickyStyles(), colorStyles$3, reactTheming.componentStyles);
|
|
166
|
-
|
|
167
|
-
const COMPONENT_ID$6 = 'tables.table';
|
|
141
|
+
const COMPONENT_ID$7 = 'tables.table';
|
|
168
142
|
const getLineHeight = props => {
|
|
169
143
|
return `${props.theme.space.base * 5}px`;
|
|
170
144
|
};
|
|
171
145
|
const StyledTable = styled__default.default.table.attrs({
|
|
172
|
-
'data-garden-id': COMPONENT_ID$
|
|
173
|
-
'data-garden-version': '9.
|
|
146
|
+
'data-garden-id': COMPONENT_ID$7,
|
|
147
|
+
'data-garden-version': '9.10.0'
|
|
174
148
|
}).withConfig({
|
|
175
149
|
displayName: "StyledTable",
|
|
176
150
|
componentId: "sc-gje7na-0"
|
|
@@ -179,7 +153,7 @@ const StyledTable = styled__default.default.table.attrs({
|
|
|
179
153
|
theme: props.theme
|
|
180
154
|
}), props => props.theme.fontSizes.md, props => props.theme.rtl && 'rtl', reactTheming.componentStyles);
|
|
181
155
|
|
|
182
|
-
const COMPONENT_ID$
|
|
156
|
+
const COMPONENT_ID$6 = 'tables.cell';
|
|
183
157
|
const truncatedStyling$1 = styled.css(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
|
|
184
158
|
const sizeStyling = props => {
|
|
185
159
|
let boxSizing = 'border-box';
|
|
@@ -203,44 +177,14 @@ const sizeStyling = props => {
|
|
|
203
177
|
return styled.css(["box-sizing:", ";padding:", ";width:", ";height:", ";"], boxSizing, padding, width, height);
|
|
204
178
|
};
|
|
205
179
|
const StyledCell = styled__default.default.td.attrs({
|
|
206
|
-
'data-garden-id': COMPONENT_ID$
|
|
207
|
-
'data-garden-version': '9.
|
|
180
|
+
'data-garden-id': COMPONENT_ID$6,
|
|
181
|
+
'data-garden-version': '9.10.0'
|
|
208
182
|
}).withConfig({
|
|
209
183
|
displayName: "StyledCell",
|
|
210
184
|
componentId: "sc-8hpncx-0"
|
|
211
185
|
})(["display:table-cell;transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out;", ";", ";", ";"], props => sizeStyling(props), props => props.$isTruncated && truncatedStyling$1, reactTheming.componentStyles);
|
|
212
186
|
|
|
213
|
-
const COMPONENT_ID$
|
|
214
|
-
const colorStyles$2 = _ref => {
|
|
215
|
-
let {
|
|
216
|
-
theme
|
|
217
|
-
} = _ref;
|
|
218
|
-
return styled.css(["background-color:", ";"], reactTheming.getColor({
|
|
219
|
-
variable: 'background.subtle',
|
|
220
|
-
transparency: theme.opacity[100],
|
|
221
|
-
light: {
|
|
222
|
-
offset: 300
|
|
223
|
-
},
|
|
224
|
-
dark: {
|
|
225
|
-
offset: -600
|
|
226
|
-
},
|
|
227
|
-
theme
|
|
228
|
-
}));
|
|
229
|
-
};
|
|
230
|
-
const sizeStyles$2 = props => {
|
|
231
|
-
const height = `${props.theme.space.base * 8}px`;
|
|
232
|
-
const lineHeight = getLineHeight(props);
|
|
233
|
-
return styled.css(["height:", ";line-height:", ";font-size:", ";", "{padding:", " ", "px;}"], height, lineHeight, props.theme.fontSizes.sm, StyledCell, polished.math(`(${height} - ${lineHeight}) / 2`), props.theme.space.base * 3);
|
|
234
|
-
};
|
|
235
|
-
const StyledGroupRow = styled__default.default(StyledBaseRow).attrs({
|
|
236
|
-
'data-garden-id': COMPONENT_ID$4,
|
|
237
|
-
'data-garden-version': '9.8.0'
|
|
238
|
-
}).withConfig({
|
|
239
|
-
displayName: "StyledGroupRow",
|
|
240
|
-
componentId: "sc-mpd0r8-0"
|
|
241
|
-
})(["", " ", " ", ";"], sizeStyles$2, colorStyles$2, reactTheming.componentStyles);
|
|
242
|
-
|
|
243
|
-
const COMPONENT_ID$3 = 'tables.sortable';
|
|
187
|
+
const COMPONENT_ID$5 = 'tables.sortable';
|
|
244
188
|
const StyledBaseIconWrapper = styled__default.default.div.withConfig({
|
|
245
189
|
displayName: "StyledSortableButton__StyledBaseIconWrapper",
|
|
246
190
|
componentId: "sc-2s1dli-0"
|
|
@@ -253,7 +197,7 @@ const StyledSortableFillIconWrapper = styled__default.default(StyledBaseIconWrap
|
|
|
253
197
|
displayName: "StyledSortableButton__StyledSortableFillIconWrapper",
|
|
254
198
|
componentId: "sc-2s1dli-2"
|
|
255
199
|
})([""]);
|
|
256
|
-
const colorStyles$
|
|
200
|
+
const colorStyles$3 = _ref => {
|
|
257
201
|
let {
|
|
258
202
|
theme,
|
|
259
203
|
$sort
|
|
@@ -313,17 +257,17 @@ const colorStyles$1 = _ref => {
|
|
|
313
257
|
}));
|
|
314
258
|
};
|
|
315
259
|
const StyledSortableButton = styled__default.default.button.attrs({
|
|
316
|
-
'data-garden-id': COMPONENT_ID$
|
|
317
|
-
'data-garden-version': '9.
|
|
260
|
+
'data-garden-id': COMPONENT_ID$5,
|
|
261
|
+
'data-garden-version': '9.10.0',
|
|
318
262
|
type: 'button'
|
|
319
263
|
}).withConfig({
|
|
320
264
|
displayName: "StyledSortableButton",
|
|
321
265
|
componentId: "sc-2s1dli-3"
|
|
322
|
-
})(["position:relative;transition:box-shadow 0.1s ease-in-out;border:none;border-radius:", ";background-color:transparent;cursor:pointer;padding:0;padding-", ":", ";width:", ";text-decoration:none;color:inherit;font-family:inherit;font-size:inherit;font-weight:", ";", "{opacity:", ";}", "{opacity:", ";}&:hover,", "{text-decoration:none;}", " ", ";"], props => props.theme.borderRadii.sm, props => props.theme.rtl ? 'left' : 'right', props => polished.math(`${props.theme.space.base} + ${props.theme.iconSizes.sm}`), props => props.width, props => props.theme.fontWeights.semibold, StyledSortableStrokeIconWrapper, props => props.$sort === undefined && 1, StyledSortableFillIconWrapper, props => props.$sort !== undefined && 1, reactTheming.SELECTOR_FOCUS_VISIBLE, colorStyles$
|
|
266
|
+
})(["position:relative;transition:box-shadow 0.1s ease-in-out;border:none;border-radius:", ";background-color:transparent;cursor:pointer;padding:0;padding-", ":", ";width:", ";text-decoration:none;color:inherit;font-family:inherit;font-size:inherit;font-weight:", ";", "{opacity:", ";}", "{opacity:", ";}&:hover,", "{text-decoration:none;}", " ", ";"], props => props.theme.borderRadii.sm, props => props.theme.rtl ? 'left' : 'right', props => polished.math(`${props.theme.space.base} + ${props.theme.iconSizes.sm}`), props => props.width, props => props.theme.fontWeights.semibold, StyledSortableStrokeIconWrapper, props => props.$sort === undefined && 1, StyledSortableFillIconWrapper, props => props.$sort !== undefined && 1, reactTheming.SELECTOR_FOCUS_VISIBLE, colorStyles$3, reactTheming.componentStyles);
|
|
323
267
|
|
|
324
|
-
const COMPONENT_ID$
|
|
268
|
+
const COMPONENT_ID$4 = 'tables.header_cell';
|
|
325
269
|
const truncatedStyling = styled.css(["", "{max-width:100%;overflow:hidden;text-overflow:ellipsis;}"], StyledSortableButton);
|
|
326
|
-
const sizeStyles$
|
|
270
|
+
const sizeStyles$2 = props => {
|
|
327
271
|
let paddingVertical = undefined;
|
|
328
272
|
if (!props.$hasOverflow) {
|
|
329
273
|
paddingVertical = polished.math(`(${getRowHeight(props)} - ${getLineHeight(props)}) / 2`);
|
|
@@ -332,8 +276,8 @@ const sizeStyles$1 = props => {
|
|
|
332
276
|
};
|
|
333
277
|
const StyledHeaderCell = styled__default.default(StyledCell).attrs({
|
|
334
278
|
as: 'th',
|
|
335
|
-
'data-garden-id': COMPONENT_ID$
|
|
336
|
-
'data-garden-version': '9.
|
|
279
|
+
'data-garden-id': COMPONENT_ID$4,
|
|
280
|
+
'data-garden-version': '9.10.0'
|
|
337
281
|
}).withConfig({
|
|
338
282
|
displayName: "StyledHeaderCell",
|
|
339
283
|
componentId: "sc-fzagoe-0"
|
|
@@ -345,12 +289,68 @@ const StyledHeaderCell = styled__default.default(StyledCell).attrs({
|
|
|
345
289
|
return 'left';
|
|
346
290
|
}
|
|
347
291
|
return undefined;
|
|
348
|
-
}, props => sizeStyles$
|
|
292
|
+
}, props => sizeStyles$2(props), props => props.$isTruncated && truncatedStyling, reactTheming.componentStyles);
|
|
293
|
+
|
|
294
|
+
const COMPONENT_ID$3 = 'tables.head';
|
|
295
|
+
const colorStyles$2 = _ref => {
|
|
296
|
+
let {
|
|
297
|
+
theme
|
|
298
|
+
} = _ref;
|
|
299
|
+
const borderColor = reactTheming.getColor({
|
|
300
|
+
variable: 'border.default',
|
|
301
|
+
theme
|
|
302
|
+
});
|
|
303
|
+
const backgroundColor = reactTheming.getColor({
|
|
304
|
+
variable: 'background.default',
|
|
305
|
+
theme
|
|
306
|
+
});
|
|
307
|
+
return styled.css(["background-color:", ";& > ", ":last-child{border-bottom-color:transparent;& > ", "{box-shadow:inset 0 -", " 0 ", ";}}"], backgroundColor, StyledHeaderRow, StyledHeaderCell, theme.borderWidths.sm, borderColor);
|
|
308
|
+
};
|
|
309
|
+
const stickyStyles = () => {
|
|
310
|
+
return styled.css(["position:sticky;top:0;z-index:1;"]);
|
|
311
|
+
};
|
|
312
|
+
const StyledHead = styled__default.default.thead.attrs({
|
|
313
|
+
'data-garden-id': COMPONENT_ID$3,
|
|
314
|
+
'data-garden-version': '9.10.0'
|
|
315
|
+
}).withConfig({
|
|
316
|
+
displayName: "StyledHead",
|
|
317
|
+
componentId: "sc-spf23a-0"
|
|
318
|
+
})(["", " ", " ", ";"], props => props.$isSticky && stickyStyles(), colorStyles$2, reactTheming.componentStyles);
|
|
319
|
+
|
|
320
|
+
const COMPONENT_ID$2 = 'tables.group_row';
|
|
321
|
+
const colorStyles$1 = _ref => {
|
|
322
|
+
let {
|
|
323
|
+
theme
|
|
324
|
+
} = _ref;
|
|
325
|
+
return styled.css(["background-color:", ";"], reactTheming.getColor({
|
|
326
|
+
variable: 'background.subtle',
|
|
327
|
+
transparency: theme.opacity[100],
|
|
328
|
+
light: {
|
|
329
|
+
offset: 300
|
|
330
|
+
},
|
|
331
|
+
dark: {
|
|
332
|
+
offset: -600
|
|
333
|
+
},
|
|
334
|
+
theme
|
|
335
|
+
}));
|
|
336
|
+
};
|
|
337
|
+
const sizeStyles$1 = props => {
|
|
338
|
+
const height = `${props.theme.space.base * 8}px`;
|
|
339
|
+
const lineHeight = getLineHeight(props);
|
|
340
|
+
return styled.css(["height:", ";line-height:", ";font-size:", ";", "{padding:", " ", "px;}"], height, lineHeight, props.theme.fontSizes.sm, StyledCell, polished.math(`(${height} - ${lineHeight}) / 2`), props.theme.space.base * 3);
|
|
341
|
+
};
|
|
342
|
+
const StyledGroupRow = styled__default.default(StyledBaseRow).attrs({
|
|
343
|
+
'data-garden-id': COMPONENT_ID$2,
|
|
344
|
+
'data-garden-version': '9.10.0'
|
|
345
|
+
}).withConfig({
|
|
346
|
+
displayName: "StyledGroupRow",
|
|
347
|
+
componentId: "sc-mpd0r8-0"
|
|
348
|
+
})(["", " ", " ", ";"], sizeStyles$1, colorStyles$1, reactTheming.componentStyles);
|
|
349
349
|
|
|
350
350
|
const COMPONENT_ID$1 = 'tables.hidden_cell';
|
|
351
351
|
const StyledHiddenCell = styled__default.default.div.attrs({
|
|
352
352
|
'data-garden-id': COMPONENT_ID$1,
|
|
353
|
-
'data-garden-version': '9.
|
|
353
|
+
'data-garden-version': '9.10.0'
|
|
354
354
|
}).withConfig({
|
|
355
355
|
displayName: "StyledHiddenCell",
|
|
356
356
|
componentId: "sc-1x454xw-0"
|
|
@@ -439,7 +439,7 @@ const sizeStyles = props => {
|
|
|
439
439
|
};
|
|
440
440
|
const StyledRow = styled__default.default(StyledBaseRow).attrs({
|
|
441
441
|
'data-garden-id': COMPONENT_ID,
|
|
442
|
-
'data-garden-version': '9.
|
|
442
|
+
'data-garden-version': '9.10.0'
|
|
443
443
|
}).withConfig({
|
|
444
444
|
displayName: "StyledRow",
|
|
445
445
|
componentId: "sc-ek66ow-0"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-tables",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.10.0",
|
|
4
4
|
"description": "Components relating to tables in the Garden Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"types": "dist/typings/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@zendeskgarden/container-utilities": "^2.0.0",
|
|
25
|
-
"@zendeskgarden/react-buttons": "^9.
|
|
25
|
+
"@zendeskgarden/react-buttons": "^9.10.0",
|
|
26
26
|
"dom-helpers": "^5.1.0",
|
|
27
27
|
"polished": "^4.3.1",
|
|
28
28
|
"prop-types": "^15.5.7"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"styled-components": "^5.3.1 || ^6.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@zendeskgarden/react-theming": "^9.
|
|
37
|
+
"@zendeskgarden/react-theming": "^9.10.0",
|
|
38
38
|
"@zendeskgarden/svg-icons": "7.5.0"
|
|
39
39
|
},
|
|
40
40
|
"keywords": [
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"zendeskgarden:src": "src/index.ts",
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "a5e2f6e345d95e97030849fe15550fd2c6872cdf"
|
|
51
51
|
}
|