@zendeskgarden/react-tables 8.62.2 → 8.63.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/index.cjs.js CHANGED
@@ -56,7 +56,7 @@ function _extends$3() {
56
56
  const COMPONENT_ID$a = 'tables.body';
57
57
  const StyledBody = styled__default.default.tbody.attrs({
58
58
  'data-garden-id': COMPONENT_ID$a,
59
- 'data-garden-version': '8.62.2'
59
+ 'data-garden-version': '8.63.0'
60
60
  }).withConfig({
61
61
  displayName: "StyledBody",
62
62
  componentId: "sc-14ud6y-0"
@@ -68,7 +68,7 @@ StyledBody.defaultProps = {
68
68
  const COMPONENT_ID$9 = 'tables.caption';
69
69
  const StyledCaption = styled__default.default.caption.attrs({
70
70
  'data-garden-id': COMPONENT_ID$9,
71
- 'data-garden-version': '8.62.2'
71
+ 'data-garden-version': '8.63.0'
72
72
  }).withConfig({
73
73
  displayName: "StyledCaption",
74
74
  componentId: "sc-113y327-0"
@@ -83,7 +83,7 @@ const getLineHeight = props => {
83
83
  };
84
84
  const StyledTable = styled__default.default.table.attrs({
85
85
  'data-garden-id': COMPONENT_ID$8,
86
- 'data-garden-version': '8.62.2'
86
+ 'data-garden-version': '8.63.0'
87
87
  }).withConfig({
88
88
  displayName: "StyledTable",
89
89
  componentId: "sc-gje7na-0"
@@ -126,11 +126,11 @@ const sizeStyling = props => {
126
126
  };
127
127
  const StyledCell = styled__default.default.td.attrs({
128
128
  'data-garden-id': COMPONENT_ID$7,
129
- 'data-garden-version': '8.62.2'
129
+ 'data-garden-version': '8.63.0'
130
130
  }).withConfig({
131
131
  displayName: "StyledCell",
132
132
  componentId: "sc-8hpncx-0"
133
- })(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props));
133
+ })(["display:table-cell;transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out;", ";", ";&[hidden]{", "}", ";"], props => sizeStyling(props), props => props.isTruncated && truncatedStyling$1, polished.hideVisually(), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props));
134
134
  StyledCell.defaultProps = {
135
135
  theme: reactTheming.DEFAULT_THEME
136
136
  };
@@ -155,7 +155,7 @@ const colorStyles$1 = props => {
155
155
  };
156
156
  const StyledOverflowButton = styled__default.default.button.attrs({
157
157
  'data-garden-id': COMPONENT_ID$6,
158
- 'data-garden-version': '8.62.2',
158
+ 'data-garden-version': '8.63.0',
159
159
  type: 'button'
160
160
  }).withConfig({
161
161
  displayName: "StyledOverflowButton",
@@ -211,7 +211,7 @@ const colorStyles = props => {
211
211
  };
212
212
  const StyledRow = styled__default.default(StyledBaseRow).attrs(props => ({
213
213
  'data-garden-id': COMPONENT_ID$5,
214
- 'data-garden-version': '8.62.2',
214
+ 'data-garden-version': '8.63.0',
215
215
  tabIndex: props.isReadOnly ? undefined : -1
216
216
  })).withConfig({
217
217
  displayName: "StyledRow",
@@ -232,7 +232,7 @@ const getHeaderRowHeight = props => {
232
232
  };
233
233
  const StyledHeaderRow = styled__default.default(StyledBaseRow).attrs({
234
234
  'data-garden-id': COMPONENT_ID$4,
235
- 'data-garden-version': '8.62.2'
235
+ 'data-garden-version': '8.63.0'
236
236
  }).withConfig({
237
237
  displayName: "StyledHeaderRow",
238
238
  componentId: "sc-16ogvdx-0"
@@ -248,7 +248,7 @@ const stickyStyles = props => {
248
248
  };
249
249
  const StyledHead = styled__default.default.thead.attrs({
250
250
  'data-garden-id': COMPONENT_ID$3,
251
- 'data-garden-version': '8.62.2'
251
+ 'data-garden-version': '8.63.0'
252
252
  }).withConfig({
253
253
  displayName: "StyledHead",
254
254
  componentId: "sc-spf23a-0"
@@ -265,7 +265,7 @@ const sizeStyles$1 = props => {
265
265
  };
266
266
  const StyledGroupRow = styled__default.default(StyledBaseRow).attrs({
267
267
  'data-garden-id': COMPONENT_ID$2,
268
- 'data-garden-version': '8.62.2'
268
+ 'data-garden-version': '8.63.0'
269
269
  }).withConfig({
270
270
  displayName: "StyledGroupRow",
271
271
  componentId: "sc-mpd0r8-0"
@@ -298,7 +298,7 @@ StyledSortableFillIconWrapper.defaultProps = {
298
298
  };
299
299
  const StyledSortableButton = styled__default.default.button.attrs({
300
300
  'data-garden-id': COMPONENT_ID$1,
301
- 'data-garden-version': '8.62.2',
301
+ 'data-garden-version': '8.63.0',
302
302
  type: 'button'
303
303
  }).withConfig({
304
304
  displayName: "StyledSortableButton",
@@ -354,7 +354,7 @@ const sizeStyles = props => {
354
354
  const StyledHeaderCell = styled__default.default(StyledCell).attrs({
355
355
  as: 'th',
356
356
  'data-garden-id': COMPONENT_ID,
357
- 'data-garden-version': '8.62.2'
357
+ 'data-garden-version': '8.63.0'
358
358
  }).withConfig({
359
359
  displayName: "StyledHeaderCell",
360
360
  componentId: "sc-fzagoe-0"
@@ -446,9 +446,7 @@ const HeaderRow = React__namespace.default.forwardRef((props, ref) => {
446
446
  HeaderRow.displayName = 'HeaderRow';
447
447
 
448
448
  var _g;
449
-
450
449
  function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
451
-
452
450
  var SvgOverflowStroke = function SvgOverflowStroke(props) {
453
451
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
454
452
  xmlns: "http://www.w3.org/2000/svg",
@@ -456,8 +454,7 @@ var SvgOverflowStroke = function SvgOverflowStroke(props) {
456
454
  height: 16,
457
455
  focusable: "false",
458
456
  viewBox: "0 0 16 16",
459
- "aria-hidden": "true",
460
- role: "img"
457
+ "aria-hidden": "true"
461
458
  }, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
462
459
  fill: "currentColor"
463
460
  }, /*#__PURE__*/React__namespace.createElement("circle", {
@@ -550,9 +547,7 @@ Row.propTypes = {
550
547
  };
551
548
 
552
549
  var _path$1;
553
-
554
550
  function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
555
-
556
551
  var SvgSortStroke = function SvgSortStroke(props) {
557
552
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
558
553
  xmlns: "http://www.w3.org/2000/svg",
@@ -560,8 +555,7 @@ var SvgSortStroke = function SvgSortStroke(props) {
560
555
  height: 12,
561
556
  focusable: "false",
562
557
  viewBox: "0 0 12 12",
563
- "aria-hidden": "true",
564
- role: "img"
558
+ "aria-hidden": "true"
565
559
  }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
566
560
  fill: "none",
567
561
  stroke: "currentColor",
@@ -571,9 +565,7 @@ var SvgSortStroke = function SvgSortStroke(props) {
571
565
  };
572
566
 
573
567
  var _path, _path2;
574
-
575
568
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
576
-
577
569
  var SvgSortFill = function SvgSortFill(props) {
578
570
  return /*#__PURE__*/React__namespace.createElement("svg", _extends({
579
571
  xmlns: "http://www.w3.org/2000/svg",
@@ -581,8 +573,7 @@ var SvgSortFill = function SvgSortFill(props) {
581
573
  height: 12,
582
574
  focusable: "false",
583
575
  viewBox: "0 0 12 12",
584
- "aria-hidden": "true",
585
- role: "img"
576
+ "aria-hidden": "true"
586
577
  }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
587
578
  fill: "currentColor",
588
579
  d: "M10 5H2a.5.5 0 01-.46-.31.47.47 0 01.11-.54L5.29.5A1 1 0 016.7.5l3.65 3.65a.49.49 0 01.11.54A.51.51 0 0110 5z"
package/dist/index.esm.js CHANGED
@@ -9,7 +9,7 @@ import * as React from 'react';
9
9
  import React__default, { forwardRef, useContext, useState, useMemo } from 'react';
10
10
  import styled, { css } from 'styled-components';
11
11
  import { retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
12
- import { math } from 'polished';
12
+ import { hideVisually, math } from 'polished';
13
13
  import PropTypes from 'prop-types';
14
14
  import { composeEventHandlers } from '@zendeskgarden/container-utilities';
15
15
 
@@ -31,7 +31,7 @@ function _extends$3() {
31
31
  const COMPONENT_ID$a = 'tables.body';
32
32
  const StyledBody = styled.tbody.attrs({
33
33
  'data-garden-id': COMPONENT_ID$a,
34
- 'data-garden-version': '8.62.2'
34
+ 'data-garden-version': '8.63.0'
35
35
  }).withConfig({
36
36
  displayName: "StyledBody",
37
37
  componentId: "sc-14ud6y-0"
@@ -43,7 +43,7 @@ StyledBody.defaultProps = {
43
43
  const COMPONENT_ID$9 = 'tables.caption';
44
44
  const StyledCaption = styled.caption.attrs({
45
45
  'data-garden-id': COMPONENT_ID$9,
46
- 'data-garden-version': '8.62.2'
46
+ 'data-garden-version': '8.63.0'
47
47
  }).withConfig({
48
48
  displayName: "StyledCaption",
49
49
  componentId: "sc-113y327-0"
@@ -58,7 +58,7 @@ const getLineHeight = props => {
58
58
  };
59
59
  const StyledTable = styled.table.attrs({
60
60
  'data-garden-id': COMPONENT_ID$8,
61
- 'data-garden-version': '8.62.2'
61
+ 'data-garden-version': '8.63.0'
62
62
  }).withConfig({
63
63
  displayName: "StyledTable",
64
64
  componentId: "sc-gje7na-0"
@@ -101,11 +101,11 @@ const sizeStyling = props => {
101
101
  };
102
102
  const StyledCell = styled.td.attrs({
103
103
  'data-garden-id': COMPONENT_ID$7,
104
- 'data-garden-version': '8.62.2'
104
+ 'data-garden-version': '8.63.0'
105
105
  }).withConfig({
106
106
  displayName: "StyledCell",
107
107
  componentId: "sc-8hpncx-0"
108
- })(["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, props => retrieveComponentStyles(COMPONENT_ID$7, props));
108
+ })(["display:table-cell;transition:border-color 0.25s ease-in-out,box-shadow 0.1s ease-in-out;", ";", ";&[hidden]{", "}", ";"], props => sizeStyling(props), props => props.isTruncated && truncatedStyling$1, hideVisually(), props => retrieveComponentStyles(COMPONENT_ID$7, props));
109
109
  StyledCell.defaultProps = {
110
110
  theme: DEFAULT_THEME
111
111
  };
@@ -130,7 +130,7 @@ const colorStyles$1 = props => {
130
130
  };
131
131
  const StyledOverflowButton = styled.button.attrs({
132
132
  'data-garden-id': COMPONENT_ID$6,
133
- 'data-garden-version': '8.62.2',
133
+ 'data-garden-version': '8.63.0',
134
134
  type: 'button'
135
135
  }).withConfig({
136
136
  displayName: "StyledOverflowButton",
@@ -186,7 +186,7 @@ const colorStyles = props => {
186
186
  };
187
187
  const StyledRow = styled(StyledBaseRow).attrs(props => ({
188
188
  'data-garden-id': COMPONENT_ID$5,
189
- 'data-garden-version': '8.62.2',
189
+ 'data-garden-version': '8.63.0',
190
190
  tabIndex: props.isReadOnly ? undefined : -1
191
191
  })).withConfig({
192
192
  displayName: "StyledRow",
@@ -207,7 +207,7 @@ const getHeaderRowHeight = props => {
207
207
  };
208
208
  const StyledHeaderRow = styled(StyledBaseRow).attrs({
209
209
  'data-garden-id': COMPONENT_ID$4,
210
- 'data-garden-version': '8.62.2'
210
+ 'data-garden-version': '8.63.0'
211
211
  }).withConfig({
212
212
  displayName: "StyledHeaderRow",
213
213
  componentId: "sc-16ogvdx-0"
@@ -223,7 +223,7 @@ const stickyStyles = props => {
223
223
  };
224
224
  const StyledHead = styled.thead.attrs({
225
225
  'data-garden-id': COMPONENT_ID$3,
226
- 'data-garden-version': '8.62.2'
226
+ 'data-garden-version': '8.63.0'
227
227
  }).withConfig({
228
228
  displayName: "StyledHead",
229
229
  componentId: "sc-spf23a-0"
@@ -240,7 +240,7 @@ const sizeStyles$1 = props => {
240
240
  };
241
241
  const StyledGroupRow = styled(StyledBaseRow).attrs({
242
242
  'data-garden-id': COMPONENT_ID$2,
243
- 'data-garden-version': '8.62.2'
243
+ 'data-garden-version': '8.63.0'
244
244
  }).withConfig({
245
245
  displayName: "StyledGroupRow",
246
246
  componentId: "sc-mpd0r8-0"
@@ -273,7 +273,7 @@ StyledSortableFillIconWrapper.defaultProps = {
273
273
  };
274
274
  const StyledSortableButton = styled.button.attrs({
275
275
  'data-garden-id': COMPONENT_ID$1,
276
- 'data-garden-version': '8.62.2',
276
+ 'data-garden-version': '8.63.0',
277
277
  type: 'button'
278
278
  }).withConfig({
279
279
  displayName: "StyledSortableButton",
@@ -329,7 +329,7 @@ const sizeStyles = props => {
329
329
  const StyledHeaderCell = styled(StyledCell).attrs({
330
330
  as: 'th',
331
331
  'data-garden-id': COMPONENT_ID,
332
- 'data-garden-version': '8.62.2'
332
+ 'data-garden-version': '8.63.0'
333
333
  }).withConfig({
334
334
  displayName: "StyledHeaderCell",
335
335
  componentId: "sc-fzagoe-0"
@@ -421,9 +421,7 @@ const HeaderRow = React__default.forwardRef((props, ref) => {
421
421
  HeaderRow.displayName = 'HeaderRow';
422
422
 
423
423
  var _g;
424
-
425
424
  function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
426
-
427
425
  var SvgOverflowStroke = function SvgOverflowStroke(props) {
428
426
  return /*#__PURE__*/React.createElement("svg", _extends$2({
429
427
  xmlns: "http://www.w3.org/2000/svg",
@@ -431,8 +429,7 @@ var SvgOverflowStroke = function SvgOverflowStroke(props) {
431
429
  height: 16,
432
430
  focusable: "false",
433
431
  viewBox: "0 0 16 16",
434
- "aria-hidden": "true",
435
- role: "img"
432
+ "aria-hidden": "true"
436
433
  }, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
437
434
  fill: "currentColor"
438
435
  }, /*#__PURE__*/React.createElement("circle", {
@@ -525,9 +522,7 @@ Row.propTypes = {
525
522
  };
526
523
 
527
524
  var _path$1;
528
-
529
525
  function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
530
-
531
526
  var SvgSortStroke = function SvgSortStroke(props) {
532
527
  return /*#__PURE__*/React.createElement("svg", _extends$1({
533
528
  xmlns: "http://www.w3.org/2000/svg",
@@ -535,8 +530,7 @@ var SvgSortStroke = function SvgSortStroke(props) {
535
530
  height: 12,
536
531
  focusable: "false",
537
532
  viewBox: "0 0 12 12",
538
- "aria-hidden": "true",
539
- role: "img"
533
+ "aria-hidden": "true"
540
534
  }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
541
535
  fill: "none",
542
536
  stroke: "currentColor",
@@ -546,9 +540,7 @@ var SvgSortStroke = function SvgSortStroke(props) {
546
540
  };
547
541
 
548
542
  var _path, _path2;
549
-
550
543
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
551
-
552
544
  var SvgSortFill = function SvgSortFill(props) {
553
545
  return /*#__PURE__*/React.createElement("svg", _extends({
554
546
  xmlns: "http://www.w3.org/2000/svg",
@@ -556,8 +548,7 @@ var SvgSortFill = function SvgSortFill(props) {
556
548
  height: 12,
557
549
  focusable: "false",
558
550
  viewBox: "0 0 12 12",
559
- "aria-hidden": "true",
560
- role: "img"
551
+ "aria-hidden": "true"
561
552
  }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
562
553
  fill: "currentColor",
563
554
  d: "M10 5H2a.5.5 0 01-.46-.31.47.47 0 01.11-.54L5.29.5A1 1 0 016.7.5l3.65 3.65a.49.49 0 01.11.54A.51.51 0 0110 5z"
@@ -9,7 +9,7 @@ export declare const SIZE: readonly ["small", "medium", "large"];
9
9
  export declare const SORT: string[];
10
10
  export interface ITableProps extends TableHTMLAttributes<HTMLTableElement> {
11
11
  /** Sets the table size */
12
- size?: typeof SIZE[number];
12
+ size?: (typeof SIZE)[number];
13
13
  /** Removes interactive styling from table rows */
14
14
  isReadOnly?: boolean;
15
15
  }
@@ -44,7 +44,7 @@ export interface IHeaderCellProps extends Pick<ICellProps, 'isMinimum' | 'isTrun
44
44
  }
45
45
  export interface ISortableCellProps extends ButtonHTMLAttributes<HTMLButtonElement> {
46
46
  /** Sets the sort order */
47
- sort?: typeof SORT[number];
47
+ sort?: (typeof SORT)[number];
48
48
  /** Sets the width of the cell */
49
49
  width?: ICellProps['width'];
50
50
  /** Passes props to the cell */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-tables",
3
- "version": "8.62.2",
3
+ "version": "8.63.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>",
@@ -21,7 +21,7 @@
21
21
  "sideEffects": false,
22
22
  "types": "dist/typings/index.d.ts",
23
23
  "dependencies": {
24
- "@zendeskgarden/container-utilities": "^0.7.0",
24
+ "@zendeskgarden/container-utilities": "^1.0.0",
25
25
  "dom-helpers": "^5.1.0",
26
26
  "polished": "^4.0.0",
27
27
  "prop-types": "^15.5.7"
@@ -35,7 +35,7 @@
35
35
  "devDependencies": {
36
36
  "@types/react-beautiful-dnd": "13.1.3",
37
37
  "@types/react-window": "1.8.5",
38
- "@zendeskgarden/react-theming": "^8.62.2",
38
+ "@zendeskgarden/react-theming": "^8.63.0",
39
39
  "@zendeskgarden/svg-icons": "6.33.0",
40
40
  "react-beautiful-dnd": "13.1.1",
41
41
  "react-window": "1.8.8"
@@ -50,5 +50,5 @@
50
50
  "access": "public"
51
51
  },
52
52
  "zendeskgarden:src": "src/index.ts",
53
- "gitHead": "27a7d6c021f3360396af60d51ecbf66e9076a405"
53
+ "gitHead": "4b8715305a769881b143c7195c5b31e687422926"
54
54
  }