@transferwise/components 45.18.0 → 45.19.1
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/index.esm.js +87 -77
- package/build/index.esm.js.map +1 -1
- package/build/index.js +87 -76
- package/build/index.js.map +1 -1
- package/build/main.css +1 -1
- package/build/styles/inputs/Input.css +1 -1
- package/build/styles/inputs/SelectInput.css +1 -1
- package/build/styles/inputs/TextArea.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/types/index.d.ts +2 -2
- package/build/types/index.d.ts.map +1 -1
- package/build/types/inputs/SelectInput.d.ts +3 -1
- package/build/types/inputs/SelectInput.d.ts.map +1 -1
- package/build/types/inputs/_BottomSheet.d.ts.map +1 -1
- package/build/types/inputs/_Popover.d.ts.map +1 -1
- package/build/types/select/Select.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +6 -1
- package/src/inputs/Input.css +1 -1
- package/src/inputs/SelectInput.css +1 -1
- package/src/inputs/SelectInput.less +14 -3
- package/src/inputs/SelectInput.story.tsx +33 -30
- package/src/inputs/SelectInput.tsx +14 -5
- package/src/inputs/TextArea.css +1 -1
- package/src/inputs/_BottomSheet.tsx +47 -37
- package/src/inputs/_Popover.tsx +30 -27
- package/src/inputs/_common.less +6 -0
- package/src/inputs/_common.ts +4 -4
- package/src/main.css +1 -1
- package/src/moneyInput/MoneyInput.story.tsx +1 -1
- package/src/select/Select.js +0 -1
- package/src/select/Select.spec.js +4 -4
- package/src/ssr.spec.js +1 -0
package/src/select/Select.js
CHANGED
|
@@ -51,7 +51,7 @@ describe('Select', () => {
|
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
const openSelect = (container) => {
|
|
54
|
-
const button =
|
|
54
|
+
const button = screen.getByRole('button');
|
|
55
55
|
userEvent.click(button);
|
|
56
56
|
};
|
|
57
57
|
|
|
@@ -326,7 +326,7 @@ describe('Select', () => {
|
|
|
326
326
|
const { container } = render(<Select {...props} />);
|
|
327
327
|
openSelect(container);
|
|
328
328
|
|
|
329
|
-
const button = screen.getByRole('
|
|
329
|
+
const button = screen.getByRole('button');
|
|
330
330
|
const options = screen.getByRole('listbox');
|
|
331
331
|
|
|
332
332
|
expect(button).toHaveAttribute('id', 'np-select-mock-random-id');
|
|
@@ -337,7 +337,7 @@ describe('Select', () => {
|
|
|
337
337
|
const { container } = render(<Select id="my-select-component" {...props} />);
|
|
338
338
|
openSelect(container);
|
|
339
339
|
|
|
340
|
-
const button = screen.getByRole('
|
|
340
|
+
const button = screen.getByRole('button');
|
|
341
341
|
const options = screen.getByRole('listbox');
|
|
342
342
|
|
|
343
343
|
expect(button).toHaveAttribute('id', 'my-select-component');
|
|
@@ -348,7 +348,7 @@ describe('Select', () => {
|
|
|
348
348
|
const { container } = render(<Select {...props} search onSearchChange={jest.fn()} />);
|
|
349
349
|
openSelect(container);
|
|
350
350
|
|
|
351
|
-
const button = screen.getByRole('
|
|
351
|
+
const button = screen.getByRole('button');
|
|
352
352
|
const options = screen.getByRole('listbox');
|
|
353
353
|
|
|
354
354
|
const ariaControlsId = button.getAttribute('aria-controls');
|