@skyscanner/backpack-web 3.3.0 → 4.1.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 (88) hide show
  1. package/bpk-animate-height/package.json +2 -2
  2. package/bpk-component-accordion/package.json +6 -6
  3. package/bpk-component-aria-live/package.json +7 -7
  4. package/bpk-component-autosuggest/package.json +4 -4
  5. package/bpk-component-badge/package.json +4 -4
  6. package/bpk-component-banner-alert/package.json +8 -8
  7. package/bpk-component-barchart/package.json +7 -7
  8. package/bpk-component-blockquote/package.json +2 -2
  9. package/bpk-component-breadcrumb/package.json +5 -5
  10. package/bpk-component-breakpoint/package.json +2 -2
  11. package/bpk-component-button/package.json +2 -2
  12. package/bpk-component-calendar/package.json +8 -8
  13. package/bpk-component-card/package.json +4 -4
  14. package/bpk-component-checkbox/package.json +4 -4
  15. package/bpk-component-chip/package.json +5 -5
  16. package/bpk-component-close-button/package.json +4 -4
  17. package/bpk-component-code/package.json +2 -2
  18. package/bpk-component-content-container/package.json +2 -2
  19. package/bpk-component-datatable/package.json +3 -3
  20. package/bpk-component-datepicker/package.json +8 -8
  21. package/bpk-component-description-list/package.json +2 -2
  22. package/bpk-component-dialog/package.json +8 -8
  23. package/bpk-component-drawer/package.json +8 -8
  24. package/bpk-component-fieldset/package.json +12 -12
  25. package/bpk-component-flare/package.json +4 -4
  26. package/bpk-component-floating-notification/package.json +4 -4
  27. package/bpk-component-form-validation/package.json +9 -9
  28. package/bpk-component-graphic-promotion/package.json +4 -5
  29. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.js +22 -6
  30. package/bpk-component-graphic-promotion/src/BpkGraphicPromo.module.scss +4 -0
  31. package/bpk-component-grid/package.json +2 -2
  32. package/bpk-component-grid-toggle/package.json +3 -3
  33. package/bpk-component-horizontal-nav/package.json +5 -5
  34. package/bpk-component-icon/package.json +5 -5
  35. package/bpk-component-image/package.json +5 -5
  36. package/bpk-component-infinite-scroll/package.json +6 -6
  37. package/bpk-component-input/package.json +6 -6
  38. package/bpk-component-label/package.json +2 -2
  39. package/bpk-component-link/package.json +3 -3
  40. package/bpk-component-list/package.json +2 -2
  41. package/bpk-component-loading-button/package.json +6 -6
  42. package/bpk-component-map/package.json +6 -6
  43. package/bpk-component-mobile-scroll-container/package.json +2 -2
  44. package/bpk-component-modal/package.json +9 -9
  45. package/bpk-component-modal/src/BpkModal.js +3 -3
  46. package/bpk-component-navigation-bar/package.json +7 -7
  47. package/bpk-component-navigation-stack/package.json +6 -6
  48. package/bpk-component-nudger/package.json +6 -6
  49. package/bpk-component-overlay/package.json +4 -4
  50. package/bpk-component-pagination/package.json +4 -4
  51. package/bpk-component-panel/package.json +2 -2
  52. package/bpk-component-phone-input/package.json +8 -8
  53. package/bpk-component-popover/package.json +8 -8
  54. package/bpk-component-popover/src/BpkPopoverPortal.js +3 -3
  55. package/bpk-component-price/package.json +3 -3
  56. package/bpk-component-progress/package.json +4 -4
  57. package/bpk-component-radio/package.json +3 -3
  58. package/bpk-component-rating/package.json +3 -3
  59. package/bpk-component-rtl-toggle/package.json +3 -3
  60. package/bpk-component-scrollable-calendar/package.json +5 -5
  61. package/bpk-component-section-list/package.json +5 -5
  62. package/bpk-component-select/package.json +3 -3
  63. package/bpk-component-skip-link/package.json +2 -2
  64. package/bpk-component-slider/package.json +3 -3
  65. package/bpk-component-spinner/package.json +2 -2
  66. package/bpk-component-split-input/README.md +42 -0
  67. package/bpk-component-split-input/index.js +27 -0
  68. package/bpk-component-split-input/package.json +24 -0
  69. package/bpk-component-split-input/src/BpkInputField.js +71 -0
  70. package/bpk-component-split-input/src/BpkInputField.module.scss +34 -0
  71. package/bpk-component-split-input/src/BpkSplitInput.js +243 -0
  72. package/bpk-component-split-input/src/BpkSplitInput.module.css +18 -0
  73. package/bpk-component-split-input/src/BpkSplitInput.module.scss +36 -0
  74. package/bpk-component-star-rating/package.json +5 -5
  75. package/bpk-component-switch/package.json +2 -2
  76. package/bpk-component-table/package.json +2 -2
  77. package/bpk-component-text/package.json +2 -2
  78. package/bpk-component-textarea/package.json +4 -4
  79. package/bpk-component-theme-toggle/package.json +4 -4
  80. package/bpk-component-ticket/package.json +4 -4
  81. package/bpk-component-tooltip/package.json +3 -3
  82. package/bpk-component-tooltip/src/BpkTooltipPortal.js +3 -3
  83. package/bpk-react-utils/index.js +3 -0
  84. package/bpk-react-utils/package.json +1 -1
  85. package/bpk-react-utils/src/Portal-v1.js +310 -0
  86. package/bpk-react-utils/src/Portal.js +42 -54
  87. package/bpk-scrim-utils/package.json +2 -2
  88. package/package.json +1 -1
@@ -0,0 +1,243 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ /* @flow strict */
19
+
20
+ import React, { Component } from 'react';
21
+ import PropTypes from 'prop-types';
22
+
23
+ import { cssModules } from '../../bpk-react-utils';
24
+ import { INPUT_TYPES } from '../../bpk-component-input';
25
+
26
+ import InputField from './BpkInputField';
27
+ import STYLES from './BpkSplitInput.module.scss';
28
+
29
+ const getClassName = cssModules(STYLES);
30
+
31
+ // keyCode constants
32
+ const BACKSPACE = 8;
33
+ const LEFT_ARROW = 37;
34
+ const RIGHT_ARROW = 39;
35
+ const DELETE = 46;
36
+ const SPACEBAR = 32;
37
+ const ENTER = 13;
38
+
39
+ class BpkSplitInput extends Component {
40
+ constructor(props) {
41
+ super(props);
42
+
43
+ this.state = {
44
+ focusedInput: 0,
45
+ inputValue: [],
46
+ };
47
+ }
48
+
49
+ onInputChange = (input) => {
50
+ this.setState({ inputValue: input });
51
+ const { onChange } = this.props;
52
+ const value = input.join('');
53
+ onChange(value);
54
+ };
55
+
56
+ updateInputValue = (value) => {
57
+ const { focusedInput, inputValue } = this.state;
58
+ inputValue[focusedInput] = value;
59
+
60
+ this.onInputChange(inputValue);
61
+ };
62
+
63
+ handleSubmit = () => {
64
+ const { onSubmit } = this.props;
65
+ const { inputValue } = this.state;
66
+ if (this.validateInput(inputValue)) {
67
+ const value = inputValue.join('');
68
+ onSubmit(value);
69
+ }
70
+ };
71
+
72
+ validateInput = (inputValue) => {
73
+ let index = 0;
74
+ while (index < inputValue.length) {
75
+ if (!this.isInputValid(inputValue[index])) {
76
+ this.setState({ focusedInput: index });
77
+ return false;
78
+ }
79
+ index += 1;
80
+ }
81
+ return true;
82
+ };
83
+
84
+ isNumeric = () => this.props.type === INPUT_TYPES.number;
85
+
86
+ isInputValid = (value) => {
87
+ const isTypeValid = this.isNumeric()
88
+ ? /^\d$/.test(value)
89
+ : typeof value === 'string';
90
+ return isTypeValid && value.trim().length === 1;
91
+ };
92
+
93
+ focusInput = (inputIndex) => {
94
+ const { inputLength } = this.props;
95
+ const focusedInput = Math.max(Math.min(inputLength - 1, inputIndex), 0);
96
+ this.setState({ focusedInput });
97
+ };
98
+
99
+ focusNextInput = () => {
100
+ const { focusedInput } = this.state;
101
+ this.focusInput(focusedInput + 1);
102
+ };
103
+
104
+ focusPreviousInput = () => {
105
+ const { focusedInput } = this.state;
106
+ this.focusInput(focusedInput - 1);
107
+ };
108
+
109
+ handleOnPaste = (e) => {
110
+ e.preventDefault();
111
+ const { inputLength } = this.props;
112
+ const { focusedInput, inputValue } = this.state;
113
+
114
+ const pastedData = e.clipboardData
115
+ .getData('text/plain')
116
+ .slice(0, inputLength - focusedInput)
117
+ .split('');
118
+ const charsReceived = pastedData.length;
119
+
120
+ let firstInvalidInputPosition;
121
+ let position = focusedInput;
122
+ for (position; position < charsReceived; position += 1) {
123
+ const firstElement = pastedData.shift();
124
+ if (this.isInputValid(firstElement)) {
125
+ inputValue[position] = firstElement;
126
+ } else if (typeof firstInvalidInputPosition === 'undefined') {
127
+ firstInvalidInputPosition = position;
128
+ }
129
+ }
130
+ this.focusInput(
131
+ typeof firstInvalidInputPosition !== 'undefined'
132
+ ? firstInvalidInputPosition
133
+ : position,
134
+ );
135
+ this.onInputChange(inputValue);
136
+ };
137
+
138
+ handleOnKeyDown = (e) => {
139
+ if (e.keyCode === BACKSPACE || e.key === 'Backspace') {
140
+ e.preventDefault();
141
+ this.updateInputValue('');
142
+ this.focusPreviousInput();
143
+ } else if (e.keyCode === DELETE || e.key === 'Delete') {
144
+ e.preventDefault();
145
+ this.updateInputValue('');
146
+ } else if (
147
+ e.keyCode === LEFT_ARROW ||
148
+ e.key === 'Left' ||
149
+ e.key === 'ArrowLeft'
150
+ ) {
151
+ e.preventDefault();
152
+ this.focusPreviousInput();
153
+ } else if (
154
+ e.keyCode === RIGHT_ARROW ||
155
+ e.key === 'Right' ||
156
+ e.key === 'ArrowRight'
157
+ ) {
158
+ e.preventDefault();
159
+ this.focusNextInput();
160
+ } else if (e.keyCode === ENTER || e.key === 'Enter') {
161
+ e.preventDefault();
162
+ this.handleSubmit();
163
+ } else if (
164
+ e.keyCode === SPACEBAR ||
165
+ e.key === ' ' ||
166
+ e.key === 'Spacebar' ||
167
+ e.key === 'Space'
168
+ ) {
169
+ e.preventDefault();
170
+ }
171
+ };
172
+
173
+ handleOnChange = (e) => {
174
+ const { value } = e.target;
175
+ if (this.isInputValid(value)) {
176
+ this.updateInputValue(value);
177
+ this.focusNextInput();
178
+ }
179
+ };
180
+
181
+ handleOnFocus = (e, index) => {
182
+ this.setState({ focusedInput: index });
183
+ e.target.select();
184
+ };
185
+
186
+ renderInputs = () => {
187
+ const { focusedInput, inputValue } = this.state;
188
+ const { id, inputLength, label, large, name, placeholder, type } =
189
+ this.props;
190
+ const inputs = [];
191
+ for (let index = 0; index < inputLength; index += 1) {
192
+ inputs.push(
193
+ <InputField
194
+ key={index}
195
+ index={index}
196
+ focus={focusedInput === index}
197
+ id={`${id}-${index}`}
198
+ label={label}
199
+ name={name}
200
+ type={type}
201
+ large={large}
202
+ value={inputValue && inputValue[index]}
203
+ placeholder={placeholder}
204
+ onChange={this.handleOnChange}
205
+ onInput={this.handleOnChange}
206
+ onKeyDown={this.handleOnKeyDown}
207
+ onPaste={this.handleOnPaste}
208
+ onFocus={(e) => this.handleOnFocus(e, index)}
209
+ />,
210
+ );
211
+ }
212
+
213
+ return inputs;
214
+ };
215
+
216
+ render() {
217
+ return (
218
+ <div className={getClassName('BpkSplitInput')}>{this.renderInputs()}</div>
219
+ );
220
+ }
221
+ }
222
+
223
+ BpkSplitInput.propTypes = {
224
+ type: PropTypes.oneOf([INPUT_TYPES.text, INPUT_TYPES.number]),
225
+ id: PropTypes.string.isRequired,
226
+ label: PropTypes.string.isRequired,
227
+ name: PropTypes.string.isRequired,
228
+ inputLength: PropTypes.number,
229
+ placeholder: PropTypes.string,
230
+ onChange: PropTypes.func.isRequired,
231
+ onSubmit: PropTypes.func.isRequired,
232
+ large: PropTypes.bool,
233
+ };
234
+
235
+ BpkSplitInput.defaultProps = {
236
+ type: INPUT_TYPES.number,
237
+ inputLength: 4,
238
+ large: true,
239
+ placeholder: '',
240
+ };
241
+
242
+ export default BpkSplitInput;
243
+ export { INPUT_TYPES };
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ @keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-split-input{display:flex}
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ /* stylelint-disable */
20
+
21
+ @import '~bpk-mixins/index';
22
+
23
+ .BpkSplitInput {
24
+ @include bpk-body-default;
25
+ display: flex;
26
+ width: 100%;
27
+ padding-top: bpk-spacing-xs();
28
+ flex-direction: row;
29
+ align-items: center;
30
+ direction: ltr;
31
+
32
+ &__textbox {
33
+ display: flex;
34
+ align-items: center;
35
+ }
36
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-star-rating",
3
- "version": "3.1.11",
3
+ "version": "3.1.13",
4
4
  "description": "Backpack rating star component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,16 +14,16 @@
14
14
  },
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
- "bpk-component-icon": "^9.2.11",
17
+ "bpk-component-icon": "^9.2.12",
18
18
  "bpk-mixins": "^31.1.1",
19
- "bpk-react-utils": "^4.1.2",
19
+ "bpk-react-utils": "^5.0.0",
20
20
  "prop-types": "^15.7.2"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": "^16.3.0 || ^17.0.0"
24
24
  },
25
25
  "devDependencies": {
26
- "bpk-component-table": "^3.1.10",
27
- "bpk-storybook-utils": "^1.1.9"
26
+ "bpk-component-table": "^3.1.11",
27
+ "bpk-storybook-utils": "^1.1.10"
28
28
  }
29
29
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-switch",
3
- "version": "2.1.11",
3
+ "version": "2.1.12",
4
4
  "description": "Backpack switch component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
  "gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
16
16
  "dependencies": {
17
17
  "bpk-mixins": "^31.1.1",
18
- "bpk-react-utils": "^4.1.2",
18
+ "bpk-react-utils": "^5.0.0",
19
19
  "prop-types": "^15.5.8"
20
20
  },
21
21
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-table",
3
- "version": "3.1.10",
3
+ "version": "3.1.11",
4
4
  "description": "Backpack table component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
  "gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
16
16
  "dependencies": {
17
17
  "bpk-mixins": "^31.1.1",
18
- "bpk-react-utils": "^4.1.2",
18
+ "bpk-react-utils": "^5.0.0",
19
19
  "prop-types": "^15.7.2"
20
20
  },
21
21
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-text",
3
- "version": "7.0.4",
3
+ "version": "7.0.5",
4
4
  "description": "Backpack text component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
17
  "bpk-mixins": "^31.1.1",
18
- "bpk-react-utils": "^4.1.2",
18
+ "bpk-react-utils": "^5.0.0",
19
19
  "prop-types": "^15.7.2"
20
20
  },
21
21
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-textarea",
3
- "version": "4.2.10",
3
+ "version": "4.2.11",
4
4
  "description": "Backpack textarea component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,12 +15,12 @@
15
15
  "gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
16
16
  "dependencies": {
17
17
  "bpk-mixins": "^31.1.1",
18
- "bpk-react-utils": "^4.1.2",
18
+ "bpk-react-utils": "^5.0.0",
19
19
  "prop-types": "^15.7.2"
20
20
  },
21
21
  "devDependencies": {
22
- "bpk-component-label": "^5.1.10",
23
- "bpk-storybook-utils": "^1.1.9"
22
+ "bpk-component-label": "^5.1.11",
23
+ "bpk-storybook-utils": "^1.1.10"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": "^16.3.0 || ^17.0.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-theme-toggle",
3
- "version": "3.1.11",
3
+ "version": "3.1.12",
4
4
  "description": "Backpack theme toggle component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,10 +15,10 @@
15
15
  "gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
16
16
  "dependencies": {
17
17
  "@skyscanner/bpk-foundations-web": "^8.0.0",
18
- "bpk-component-label": "^5.1.10",
19
- "bpk-component-select": "^5.1.10",
18
+ "bpk-component-label": "^5.1.11",
19
+ "bpk-component-select": "^5.1.11",
20
20
  "bpk-mixins": "^31.1.1",
21
- "bpk-react-utils": "^4.1.2",
21
+ "bpk-react-utils": "^5.0.0",
22
22
  "prop-types": "^15.7.2"
23
23
  },
24
24
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-ticket",
3
- "version": "4.1.11",
3
+ "version": "4.1.12",
4
4
  "description": "Backpack ticket component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -15,14 +15,14 @@
15
15
  "gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
16
16
  "dependencies": {
17
17
  "bpk-mixins": "^31.1.1",
18
- "bpk-react-utils": "^4.1.2",
18
+ "bpk-react-utils": "^5.0.0",
19
19
  "prop-types": "^15.7.2"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": "^16.3.0 || ^17.0.0"
23
23
  },
24
24
  "devDependencies": {
25
- "bpk-component-button": "^6.2.5",
26
- "bpk-component-icon": "^9.2.11"
25
+ "bpk-component-button": "^6.2.6",
26
+ "bpk-component-icon": "^9.2.12"
27
27
  }
28
28
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-component-tooltip",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Backpack tooltip component.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@popperjs/core": "^2.11.5",
18
18
  "bpk-mixins": "^31.1.1",
19
- "bpk-react-utils": "^4.1.2",
19
+ "bpk-react-utils": "^5.0.0",
20
20
  "prop-types": "^15.7.2"
21
21
  },
22
22
  "peerDependencies": {
@@ -24,6 +24,6 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@skyscanner/bpk-foundations-web": "^8.0.0",
27
- "bpk-component-text": "^7.0.4"
27
+ "bpk-component-text": "^7.0.5"
28
28
  }
29
29
  }
@@ -22,7 +22,7 @@ import { createPopper, basePlacements } from '@popperjs/core';
22
22
  import PropTypes from 'prop-types';
23
23
  import React, { Component, type Node, type Element } from 'react';
24
24
 
25
- import { Portal, cssModules } from '../../bpk-react-utils';
25
+ import { PortalV1, cssModules } from '../../bpk-react-utils';
26
26
 
27
27
  import BpkTooltip, {
28
28
  propTypes as tooltipPropTypes,
@@ -196,7 +196,7 @@ class BpkTooltipPortal extends Component<Props, State> {
196
196
  }
197
197
 
198
198
  return renderPortal ? (
199
- <Portal
199
+ <PortalV1
200
200
  target={targetWithAccessibilityProps}
201
201
  targetRef={(targetRef) => {
202
202
  this.targetRef = targetRef;
@@ -212,7 +212,7 @@ class BpkTooltipPortal extends Component<Props, State> {
212
212
  <BpkTooltip padded={padded} {...rest}>
213
213
  {children}
214
214
  </BpkTooltip>
215
- </Portal>
215
+ </PortalV1>
216
216
  ) : (
217
217
  targetWithAccessibilityProps
218
218
  );
@@ -20,6 +20,7 @@
20
20
 
21
21
  import wrapDisplayName from './src/wrapDisplayName';
22
22
  import Portal from './src/Portal';
23
+ import PortalV1 from './src/Portal-v1';
23
24
  import TransitionInitialMount from './src/TransitionInitialMount';
24
25
  import cssModules from './src/cssModules';
25
26
  import deprecated from './src/deprecated';
@@ -33,6 +34,7 @@ import isRTL from './src/isRTL';
33
34
 
34
35
  export {
35
36
  Portal,
37
+ PortalV1,
36
38
  TransitionInitialMount,
37
39
  cssModules,
38
40
  deprecated,
@@ -45,6 +47,7 @@ export {
45
47
  };
46
48
  export default {
47
49
  Portal,
50
+ PortalV1,
48
51
  TransitionInitialMount,
49
52
  cssModules,
50
53
  deprecated,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpk-react-utils",
3
- "version": "4.1.2",
3
+ "version": "5.0.0",
4
4
  "description": "Utilities for Backpack's React components.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {