@skyscanner/backpack-web 9.3.0 → 10.0.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.
Files changed (101) hide show
  1. package/bpk-animate-height/package.json +3 -3
  2. package/bpk-component-accordion/package.json +7 -7
  3. package/bpk-component-aria-live/README.md +2 -2
  4. package/bpk-component-aria-live/{index.js → index.ts} +0 -1
  5. package/bpk-component-aria-live/package.json +9 -10
  6. package/bpk-component-aria-live/src/BpkAriaLive-test.tsx +60 -0
  7. package/bpk-component-aria-live/src/{BpkAriaLive.js → BpkAriaLive.tsx} +20 -26
  8. package/{bpk-component-content-cards/src/BpkContentCard/index.ts → bpk-component-aria-live/src/accessibility-test.tsx} +13 -1
  9. package/bpk-component-autosuggest/package.json +4 -4
  10. package/bpk-component-badge/package.json +5 -5
  11. package/bpk-component-banner-alert/package.json +9 -9
  12. package/bpk-component-barchart/package.json +8 -8
  13. package/bpk-component-blockquote/package.json +2 -2
  14. package/bpk-component-breadcrumb/package.json +5 -5
  15. package/bpk-component-breakpoint/package.json +3 -3
  16. package/bpk-component-button/package.json +3 -3
  17. package/bpk-component-calendar/DOCS.md +1 -7
  18. package/bpk-component-calendar/README.md +0 -10
  19. package/bpk-component-calendar/index.js +0 -2
  20. package/bpk-component-calendar/package.json +9 -9
  21. package/bpk-component-calendar/src/BpkCalendarDate.js +0 -15
  22. package/bpk-component-calendar/src/BpkCalendarDate.module.scss +17 -50
  23. package/bpk-component-calendar/src/BpkCalendarGrid.module.scss +5 -5
  24. package/bpk-component-calendar/src/_variables.scss +1 -3
  25. package/bpk-component-card/package.json +4 -4
  26. package/bpk-component-checkbox/package.json +5 -5
  27. package/bpk-component-chip/package.json +5 -5
  28. package/bpk-component-close-button/package.json +4 -4
  29. package/bpk-component-code/package.json +2 -2
  30. package/bpk-component-content-cards/package.json +2 -2
  31. package/bpk-component-content-cards/src/{BpkContentCard/BpkContentCard-test.tsx → BpkContentCard-test.tsx} +0 -0
  32. package/bpk-component-content-cards/src/{BpkContentCard/BpkContentCard.module.scss → BpkContentCard.module.scss} +0 -0
  33. package/bpk-component-content-cards/src/{BpkContentCard/BpkContentCard.tsx → BpkContentCard.tsx} +2 -2
  34. package/bpk-component-content-container/package.json +2 -2
  35. package/bpk-component-datatable/README.md +78 -21
  36. package/bpk-component-datatable/package.json +5 -6
  37. package/bpk-component-datatable/src/BpkDataTable.js +176 -143
  38. package/bpk-component-datatable/src/BpkDataTable.module.scss +10 -14
  39. package/bpk-component-datatable/src/BpkDataTableColumn.js +37 -40
  40. package/bpk-component-datatable/src/BpkDataTableHeader.js +143 -0
  41. package/bpk-component-datatable/src/{BpkDataTableColumn.module.scss → BpkDataTableHeader.module.scss} +12 -11
  42. package/bpk-component-datatable/src/common-types.js +33 -11
  43. package/bpk-component-datatable/src/sort-types.js +6 -0
  44. package/bpk-component-datatable/src/utils.js +66 -9
  45. package/bpk-component-datepicker/package.json +9 -9
  46. package/bpk-component-description-list/package.json +2 -2
  47. package/bpk-component-dialog/package.json +8 -8
  48. package/bpk-component-drawer/package.json +9 -9
  49. package/bpk-component-fieldset/package.json +12 -12
  50. package/bpk-component-flare/package.json +4 -4
  51. package/bpk-component-floating-notification/package.json +5 -5
  52. package/bpk-component-form-validation/package.json +10 -10
  53. package/bpk-component-graphic-promotion/package.json +6 -5
  54. package/bpk-component-grid/package.json +2 -2
  55. package/bpk-component-grid-toggle/package.json +3 -3
  56. package/bpk-component-horizontal-nav/package.json +6 -6
  57. package/bpk-component-icon/package.json +7 -7
  58. package/bpk-component-image/package.json +6 -6
  59. package/bpk-component-infinite-scroll/package.json +6 -6
  60. package/bpk-component-input/package.json +6 -6
  61. package/bpk-component-label/package.json +2 -2
  62. package/bpk-component-link/package.json +4 -4
  63. package/bpk-component-list/README.md +8 -5
  64. package/bpk-component-list/package.json +2 -2
  65. package/bpk-component-list/src/BpkList.js +18 -2
  66. package/bpk-component-loading-button/package.json +6 -6
  67. package/bpk-component-map/package.json +6 -6
  68. package/bpk-component-mobile-scroll-container/package.json +3 -3
  69. package/bpk-component-modal/package.json +9 -9
  70. package/bpk-component-navigation-bar/package.json +8 -8
  71. package/bpk-component-nudger/package.json +7 -7
  72. package/bpk-component-overlay/package.json +4 -4
  73. package/bpk-component-pagination/package.json +4 -4
  74. package/bpk-component-panel/package.json +2 -2
  75. package/bpk-component-phone-input/package.json +9 -9
  76. package/bpk-component-popover/package.json +8 -8
  77. package/bpk-component-price/package.json +3 -3
  78. package/bpk-component-progress/package.json +5 -5
  79. package/bpk-component-radio/package.json +4 -4
  80. package/bpk-component-rating/package.json +4 -4
  81. package/bpk-component-rtl-toggle/package.json +2 -2
  82. package/bpk-component-scrollable-calendar/package.json +6 -6
  83. package/bpk-component-section-list/package.json +6 -6
  84. package/bpk-component-select/package.json +3 -3
  85. package/bpk-component-skip-link/package.json +2 -2
  86. package/bpk-component-slider/package.json +4 -4
  87. package/bpk-component-spinner/package.json +3 -3
  88. package/bpk-component-split-input/package.json +3 -3
  89. package/bpk-component-star-rating/package.json +5 -5
  90. package/bpk-component-switch/package.json +2 -2
  91. package/bpk-component-table/package.json +2 -2
  92. package/bpk-component-text/package.json +2 -2
  93. package/bpk-component-textarea/package.json +4 -4
  94. package/bpk-component-theme-toggle/package.json +5 -5
  95. package/bpk-component-ticket/package.json +4 -4
  96. package/bpk-component-tooltip/package.json +4 -4
  97. package/bpk-scrim-utils/package.json +2 -2
  98. package/bpk-theming/package.json +2 -2
  99. package/package.json +4 -4
  100. package/bpk-component-datatable/src/bpkHeaderRenderer.js +0 -110
  101. package/bpk-component-datatable/src/sorter.js +0 -166
@@ -51,26 +51,6 @@ $bpk-spacing-v2: true;
51
51
  }
52
52
  }
53
53
 
54
- &--colored {
55
- color: $bpk-color-white;
56
-
57
- &-default {
58
- background-color: $bpk-color-sky-gray-tint-02;
59
- }
60
-
61
- &-positive {
62
- background-color: $bpk-color-monteverde;
63
- }
64
-
65
- &-neutral {
66
- background-color: $bpk-color-erfoud;
67
- }
68
-
69
- &-negative {
70
- background-color: $bpk-color-panjin;
71
- }
72
- }
73
-
74
54
  &:not(.bpk-calendar-date--selected):active {
75
55
  background-color: $bpk-calendar-day-active-background-color;
76
56
 
@@ -89,11 +69,6 @@ $bpk-spacing-v2: true;
89
69
  &--selected {
90
70
  cursor: default;
91
71
 
92
- @include bpk-themeable-property(
93
- background-color,
94
- --bpk-calendar-date-selected-background-color,
95
- $bpk-calendar-day-selected-background-color
96
- );
97
72
  @include bpk-themeable-property(
98
73
  color,
99
74
  --bpk-calendar-date-text-selected-color,
@@ -102,44 +77,36 @@ $bpk-spacing-v2: true;
102
77
  }
103
78
 
104
79
  &--middle {
105
- background-color: $bpk-color-sky-blue-tint-03;
106
- color: $bpk-color-sky-gray;
80
+ background-color: $bpk-surface-highlight-day;
81
+ color: $bpk-text-primary-day;
107
82
  }
108
83
 
109
84
  &--single {
110
- background-color: $bpk-color-sky-blue;
85
+ background-color: $bpk-core-accent-day;
111
86
  }
112
87
 
113
88
  &--start {
114
- background-color: $bpk-color-sky-blue;
89
+ background-color: $bpk-core-accent-day;
115
90
  }
116
91
 
117
92
  &--end {
118
- background-color: $bpk-color-sky-blue;
93
+ background-color: $bpk-core-accent-day;
119
94
  }
120
95
 
121
96
  &--focused:not(:disabled):not(.bpk-calendar-date--selected) {
122
- &:not(.bpk-calendar-date--colored) {
123
- box-shadow: 0 0 0 2px $bpk-calendar-day-focused-border-color inset;
124
- box-shadow: 0 0 0 2px
125
- var(
126
- --bpk-calendar-date-focused-border-color,
127
- $bpk-calendar-day-focused-border-color
128
- )
129
- inset;
130
-
131
- @include bpk-themeable-property(
132
- color,
133
- --bpk-calendar-date-text-focus-color,
134
- $bpk-calendar-day-focused-color
135
- );
136
- }
97
+ box-shadow: 0 0 0 2px $bpk-calendar-day-focused-border-color inset;
98
+ box-shadow: 0 0 0 2px
99
+ var(
100
+ --bpk-calendar-date-focused-border-color,
101
+ $bpk-calendar-day-focused-border-color
102
+ )
103
+ inset;
137
104
 
138
- &.bpk-calendar-date--colored {
139
- border: (bpk-spacing-sm() / 2) solid
140
- $bpk-calendar-day-focused-border-color;
141
- box-shadow: 0 0 0 1px $bpk-color-white inset;
142
- }
105
+ @include bpk-themeable-property(
106
+ color,
107
+ --bpk-calendar-date-text-focus-color,
108
+ $bpk-calendar-day-focused-color
109
+ );
143
110
  }
144
111
 
145
112
  &:disabled,
@@ -40,20 +40,20 @@
40
40
  &--start {
41
41
  background-image: linear-gradient(
42
42
  to right,
43
- $bpk-color-white 50%,
44
- $bpk-color-sky-blue-tint-03 50%
43
+ $bpk-surface-default-day 50%,
44
+ $bpk-surface-highlight-day 50%
45
45
  );
46
46
  }
47
47
 
48
48
  &--middle {
49
- background-color: $bpk-color-sky-blue-tint-03;
49
+ background-color: $bpk-surface-highlight-day;
50
50
  }
51
51
 
52
52
  &--end {
53
53
  background-image: linear-gradient(
54
54
  to left,
55
- $bpk-color-white 50%,
56
- $bpk-color-sky-blue-tint-03 50%
55
+ $bpk-surface-default-day 50%,
56
+ $bpk-surface-highlight-day 50%
57
57
  );
58
58
  }
59
59
  }
@@ -18,7 +18,5 @@
18
18
 
19
19
  @import '~bpk-mixins/index';
20
20
 
21
- $shadow-bottom: 0 1px 0 0 $bpk-color-sky-gray-tint-06; /* stylelint-disable-line unit-disallowed-list */
22
- $shadow-left: -1px 0 0 0 $bpk-color-sky-gray-tint-06; /* stylelint-disable-line unit-disallowed-list */
23
- $shadow-right: 1px 0 0 0 $bpk-color-sky-gray-tint-06; /* stylelint-disable-line unit-disallowed-list */
21
+ $shadow-bottom: 0 1px 0 0 $bpk-line-day; /* stylelint-disable-line unit-disallowed-list */
24
22
  $calendar-width: 7 * ($bpk-calendar-day-size + (2 * $bpk-calendar-day-spacing));
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-card",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "description": "Backpack card component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,13 +14,13 @@
14
14
  },
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
- "bpk-mixins": "^31.5.0",
17
+ "bpk-mixins": "^31.6.1",
18
18
  "bpk-react-utils": "^7.0.0",
19
19
  "prop-types": "^15.7.2"
20
20
  },
21
21
  "devDependencies": {
22
- "bpk-component-link": "^4.0.2",
23
- "bpk-component-text": "^8.0.2"
22
+ "bpk-component-link": "^4.0.3",
23
+ "bpk-component-text": "^8.0.3"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": "^17.0.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-checkbox",
3
- "version": "5.0.2",
3
+ "version": "5.0.3",
4
4
  "description": "Backpack checkbox component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,8 +14,8 @@
14
14
  },
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
- "bpk-component-icon": "^10.0.2",
18
- "bpk-mixins": "^31.5.0",
17
+ "bpk-component-icon": "^10.0.3",
18
+ "bpk-mixins": "^31.6.1",
19
19
  "bpk-react-utils": "^7.0.0",
20
20
  "prop-types": "^15.7.2"
21
21
  },
@@ -23,7 +23,7 @@
23
23
  "react": "^17.0.2"
24
24
  },
25
25
  "devDependencies": {
26
- "@skyscanner/bpk-foundations-web": "^9.0.0",
27
- "bpk-storybook-utils": "^2.0.2"
26
+ "@skyscanner/bpk-foundations-web": "^9.2.0",
27
+ "bpk-storybook-utils": "^2.0.3"
28
28
  }
29
29
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-chip",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "description": "Backpack chip component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,8 +14,8 @@
14
14
  },
15
15
  "gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
16
16
  "dependencies": {
17
- "bpk-component-icon": "^10.0.2",
18
- "bpk-mixins": "^31.5.0",
17
+ "bpk-component-icon": "^10.0.3",
18
+ "bpk-mixins": "^31.6.1",
19
19
  "bpk-react-utils": "^7.0.0",
20
20
  "prop-types": "^15.7.2"
21
21
  },
@@ -23,7 +23,7 @@
23
23
  "react": "^17.0.2"
24
24
  },
25
25
  "devDependencies": {
26
- "bpk-component-aria-live": "^3.0.2",
27
- "bpk-component-text": "^8.0.2"
26
+ "bpk-component-aria-live": "^3.1.0",
27
+ "bpk-component-text": "^8.0.3"
28
28
  }
29
29
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-close-button",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Backpack close button component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,13 +14,13 @@
14
14
  },
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
- "bpk-component-icon": "^10.0.2",
18
- "bpk-mixins": "^31.5.0",
17
+ "bpk-component-icon": "^10.0.3",
18
+ "bpk-mixins": "^31.6.1",
19
19
  "bpk-react-utils": "^7.0.0",
20
20
  "prop-types": "^15.7.2"
21
21
  },
22
22
  "devDependencies": {
23
- "bpk-storybook-utils": "^2.0.2"
23
+ "bpk-storybook-utils": "^2.0.3"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": "^17.0.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-code",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Backpack code component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
16
16
  "dependencies": {
17
- "bpk-mixins": "^31.5.0",
17
+ "bpk-mixins": "^31.6.1",
18
18
  "bpk-react-utils": "^7.0.0",
19
19
  "prop-types": "^15.7.2"
20
20
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-content-cards",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Backpack content-cards component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -13,7 +13,7 @@
13
13
  "registry": "https://registry.npmjs.org/"
14
14
  },
15
15
  "dependencies": {
16
- "bpk-component-text": "^8.0.2",
16
+ "bpk-component-text": "^8.0.3",
17
17
  "bpk-mixins": "^31.1.6",
18
18
  "bpk-react-utils": "^7.0.0"
19
19
  },
@@ -19,9 +19,9 @@
19
19
  import React from 'react';
20
20
 
21
21
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
22
- import BpkText from '../../../bpk-component-text';
22
+ import BpkText from '../../bpk-component-text';
23
23
  // @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
24
- import { cssModules } from '../../../bpk-react-utils';
24
+ import { cssModules } from '../../bpk-react-utils';
25
25
 
26
26
  import STYLES from './BpkContentCard.module.scss';
27
27
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-content-container",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "description": "Backpack content container component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
16
16
  "dependencies": {
17
- "bpk-mixins": "^31.5.0",
17
+ "bpk-mixins": "^31.6.1",
18
18
  "bpk-react-utils": "^7.0.0",
19
19
  "prop-types": "^15.7.2"
20
20
  },
@@ -38,12 +38,11 @@ export default () => (
38
38
  );
39
39
  ```
40
40
 
41
- By default `BpkDataTable` sorts the column using the value of `dataKey`. For use cases where the data might more complex and requires custom sorting you can pass a `sort` function along with `sortBy` and `sortDirection` and they will be handled as explained in react-virtualized's [docs] (https://github.com/bvaughn/react-virtualized/blob/main/docs/Table.md#prop-types)
41
+ By default `BpkDataTable` sorts the column using the value of `dataKey`. For use cases where the data might more complex and requires custom sorting you can pass a `sort` function along with `sortBy` and `sortDirection`.
42
42
 
43
43
  ```js
44
44
  import React from 'react';
45
45
  import { BpkDataTable, BpkDataTableColumn } from 'bpk-component-datatable';
46
- import _sortBy from 'lodash/sortBy';
47
46
 
48
47
  const complexRows = [
49
48
  {
@@ -65,21 +64,16 @@ const complexRows = [
65
64
 
66
65
  let sortByValue = 'seat';
67
66
  let sortDirectionValue = 'DESC';
68
- const sortFunction = ({ sortBy, sortDirection }) => {
69
- if (sortBy === 'seat') {
70
- complexRows = _sortBy(complexRows, [
71
- row => row.seat.office,
72
- row => row.seat.desk,
73
- ]);
67
+ const sortFunction = (rowA, rowB, id, desc) => {
68
+ const deskA = rowA.values.seat.desk;
69
+ const deskB = rowB.values.seat.desk;
70
+
71
+ if (deskA === deskB) {
72
+ return 0;
74
73
  } else {
75
- complexRows = _sortBy(complexRows, sortBy);
76
- }
77
- if (sortDirection === 'DESC') {
78
- complexRows.reverse();
74
+ return deskA > deskB ? 1 : -1;
79
75
  }
80
- sortByValue = sortBy;
81
- sortDirectionValue = sortDirection;
82
- };
76
+ }
83
77
 
84
78
  export default () => (
85
79
  <BpkDataTable
@@ -118,10 +112,6 @@ export default () => (
118
112
 
119
113
  ### BpkDataTable
120
114
 
121
- Supports all properties defined in [`Table`](https://github.com/bvaughn/react-virtualized/blob/main/docs/Table.md) (from `react-virtualized`),
122
- in addition to the following:
123
-
124
-
125
115
  | Property | PropType | Required | Default Value |
126
116
  | ---------------------- | --------------------------- | -------- | -------------------- |
127
117
  | rows | arrayOf(Object) | true | - |
@@ -130,12 +120,79 @@ in addition to the following:
130
120
  | width | number | false | full width of parent |
131
121
  | headerHeight | number | false | 60 |
132
122
  | rowHeight | number | false | 60 |
123
+ | rowStyle | object | false | {} |
124
+ | onRowClick | func | false | null |
125
+ | className | string | false | null |
133
126
  | defaultColumnSortIndex | number | false | 0 |
134
127
  | sort | func | false | null |
135
128
  | sortBy | string | false | null |
136
- | sortDirection | oneOf('ASC', 'DESC') | false | null |
129
+ | sortDirection | oneOf('ASC', 'DESC') | false | 'ASC' |
137
130
 
138
131
 
139
132
  ### BpkDataTableColumn
140
133
 
141
- Supports all properties defined in [`Column`](https://github.com/bvaughn/react-virtualized/blob/master/docs/Column.md) (from `react-virtualized`)
134
+ | Property | PropType | Required | Default Value |
135
+ | ---------------------- | --------------------------- | -------- | -------------------- |
136
+ | dataKey | string | true | - |
137
+ | width | number | true | - |
138
+ | flexGrow | number | false | 0 |
139
+ | label | string | false | null |
140
+ | headerRenderer | func | false | null |
141
+ | headerClassName | string | false | null |
142
+ | headerStyle | object | false | {} |
143
+ | cellRenderer | func | false | null |
144
+ | cellDataGetter | func | false | null |
145
+ | disableSort | bool | false | false |
146
+ | defaultSortDirection | oneOf('ASC', 'DESC') | false | 'ASC' |
147
+ | className | string | false | null |
148
+
149
+ ### Prop Details
150
+
151
+
152
+ #### sort, sortBy, sortDirection
153
+
154
+ For custom sorting, pass a `sort` function.
155
+ Use `sortBy` to specify which column the custom sorting will be applied to.
156
+ Use `sortDirection` to set the direction of sorting. By default, it will be ascending.
157
+
158
+ #### defaultColumnSortIndex
159
+
160
+ The data will be sorted by default based on this column.
161
+
162
+ #### headerRenderer
163
+
164
+ To handle more complex header data that needs any custom processing, pass a function or component to `headerRenderer` prop. This will only be formatting the header value - all styling will be handled by the component.
165
+ It should implement the following signature:
166
+
167
+ ```
168
+ function ({
169
+ dataKey: string, disableSort: boolean, label: string
170
+ }): element
171
+ ```
172
+
173
+ #### cellDataGetter
174
+
175
+ To handle more complex cell data that needs any custom processing, pass a function or component to `cellDataGetter` prop. This will only be formatting the cell value - all styling will be handled by the component.
176
+ It should implement the following signature:
177
+
178
+ ```
179
+ function ({
180
+ dataKey: string,
181
+ rowData: any
182
+ }): any
183
+ ```
184
+
185
+ #### cellRenderer
186
+
187
+ To handle more complex cell data that needs any custom processing, pass a function or component to `cellRenderer` prop. This will only be formatting the cell value - all styling will be handled by the component. To maintain backward compatibility, both `cellRenderer` and `cellDataGetter` will be supported, however, they are interchangeable as they both can only format the cell value.
188
+ It should implement the following signature:
189
+
190
+ ```
191
+ function ({
192
+ cellData: any,
193
+ columnIndex: number,
194
+ dataKey: string,
195
+ rowData: any,
196
+ rowIndex: any,
197
+ }): node
198
+ ```
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-datatable",
3
- "version": "5.0.2",
3
+ "version": "6.0.0",
4
4
  "description": "Backpack datatable component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,17 +14,16 @@
14
14
  },
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
- "bpk-component-icon": "^10.0.2",
18
- "bpk-mixins": "^31.5.0",
17
+ "bpk-component-icon": "^10.0.3",
18
+ "bpk-mixins": "^31.6.1",
19
19
  "bpk-react-utils": "^7.0.0",
20
- "lodash": "^4.17.20",
21
20
  "prop-types": "^15.7.2",
22
- "react-virtualized": "^9.22.3"
21
+ "react-table": "^7.8.0"
23
22
  },
24
23
  "peerDependencies": {
25
24
  "react": "^17.0.2"
26
25
  },
27
26
  "devDependencies": {
28
- "@skyscanner/bpk-foundations-web": "^9.0.0"
27
+ "@skyscanner/bpk-foundations-web": "^9.2.0"
29
28
  }
30
29
  }