@transferwise/components 45.19.6 → 45.21.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/build/i18n/cs.json +11 -3
- package/build/i18n/de.json +11 -3
- package/build/i18n/en.json +1 -0
- package/build/i18n/es.json +11 -3
- package/build/i18n/fr.json +11 -3
- package/build/i18n/hu.json +11 -3
- package/build/i18n/id.json +11 -3
- package/build/i18n/it.json +11 -3
- package/build/i18n/ja.json +11 -3
- package/build/i18n/pl.json +11 -3
- package/build/i18n/pt.json +11 -3
- package/build/i18n/ro.json +11 -3
- package/build/i18n/ru.json +11 -3
- package/build/i18n/th.json +11 -3
- package/build/i18n/tr.json +11 -3
- package/build/i18n/uk.json +11 -3
- package/build/i18n/zh-CN.json +11 -3
- package/build/i18n/{zh.json → zh-HK.json} +11 -3
- package/build/index.esm.js +557 -248
- package/build/index.esm.js.map +1 -1
- package/build/index.js +557 -248
- package/build/index.js.map +1 -1
- package/build/main.css +1 -1
- package/build/styles/actionButton/ActionButton.css +1 -1
- package/build/styles/chips/Chip.css +1 -1
- package/build/styles/circularButton/CircularButton.css +1 -1
- package/build/styles/common/Option/Option.css +1 -1
- package/build/styles/common/bottomSheet/BottomSheet.css +1 -1
- package/build/styles/common/closeButton/CloseButton.css +1 -1
- package/build/styles/dateLookup/DateLookup.css +1 -1
- package/build/styles/drawer/Drawer.css +1 -1
- package/build/styles/flowNavigation/FlowNavigation.css +1 -1
- package/build/styles/inputs/SelectInput.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/styles/overlayHeader/OverlayHeader.css +1 -1
- package/build/styles/statusIcon/StatusIcon.css +1 -1
- package/build/styles/summary/Summary.css +1 -1
- package/build/styles/typeahead/Typeahead.css +1 -1
- package/build/styles/uploadInput/UploadInput.css +1 -1
- package/build/types/common/bottomSheet/BottomSheet.d.ts.map +1 -1
- package/build/types/common/locale/index.d.ts +10 -1
- package/build/types/common/locale/index.d.ts.map +1 -1
- package/build/types/common/propsValues/breakpoint.d.ts +1 -0
- package/build/types/common/propsValues/breakpoint.d.ts.map +1 -1
- package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
- package/build/types/dateLookup/dateHeader/DateHeader.d.ts.map +1 -1
- package/build/types/i18n/index.d.ts.map +1 -1
- package/build/types/inputs/SelectInput.d.ts +6 -3
- package/build/types/inputs/SelectInput.d.ts.map +1 -1
- package/build/types/inputs/SelectInput.messages.d.ts +9 -0
- package/build/types/inputs/SelectInput.messages.d.ts.map +1 -0
- package/build/types/inputs/_Popover.d.ts +2 -2
- package/build/types/inputs/_Popover.d.ts.map +1 -1
- package/build/types/test-utils/story-config.d.ts +11 -1
- package/build/types/test-utils/story-config.d.ts.map +1 -1
- package/build/types/test-utils/window-mock.d.ts +2 -0
- package/build/types/test-utils/window-mock.d.ts.map +1 -0
- package/package.json +4 -4
- package/src/actionButton/ActionButton.css +1 -1
- package/src/actionButton/ActionButton.less +5 -1
- package/src/chips/Chip.css +1 -1
- package/src/chips/Chip.less +8 -0
- package/src/circularButton/CircularButton.css +1 -1
- package/src/circularButton/CircularButton.less +9 -3
- package/src/common/Option/Option.css +1 -1
- package/src/common/Option/Option.less +6 -0
- package/src/common/bottomSheet/BottomSheet.css +1 -1
- package/src/common/bottomSheet/BottomSheet.less +1 -1
- package/src/common/bottomSheet/BottomSheet.spec.tsx +4 -1
- package/src/common/bottomSheet/BottomSheet.story.tsx +4 -0
- package/src/common/bottomSheet/BottomSheet.tsx +10 -1
- package/src/common/closeButton/CloseButton.css +1 -1
- package/src/common/closeButton/CloseButton.less +12 -0
- package/src/common/hooks/useMedia.spec.ts +3 -17
- package/src/common/locale/index.js +10 -1
- package/src/common/locale/index.spec.js +1 -34
- package/src/common/propsValues/breakpoint.ts +1 -0
- package/src/dateLookup/DateLookup.css +1 -1
- package/src/dateLookup/DateLookup.js +7 -3
- package/src/dateLookup/DateLookup.keyboardEvents.spec.js +3 -0
- package/src/dateLookup/DateLookup.less +6 -0
- package/src/dateLookup/DateLookup.story.js +6 -1
- package/src/dateLookup/DateLookup.testingLibrary.spec.js +3 -1
- package/src/dateLookup/DateLookup.view.spec.js +4 -0
- package/src/dateLookup/dateHeader/DateHeader.js +4 -2
- package/src/drawer/Drawer.css +1 -1
- package/src/drawer/Drawer.less +6 -8
- package/src/drawer/Drawer.story.js +42 -2
- package/src/flowNavigation/FlowNavigation.css +1 -1
- package/src/i18n/cs.json +11 -3
- package/src/i18n/de.json +11 -3
- package/src/i18n/en.json +1 -0
- package/src/i18n/es.json +11 -3
- package/src/i18n/fr.json +11 -3
- package/src/i18n/hu.json +11 -3
- package/src/i18n/id.json +11 -3
- package/src/i18n/index.ts +6 -2
- package/src/i18n/it.json +11 -3
- package/src/i18n/ja.json +11 -3
- package/src/i18n/pl.json +11 -3
- package/src/i18n/pt.json +11 -3
- package/src/i18n/ro.json +11 -3
- package/src/i18n/ru.json +11 -3
- package/src/i18n/th.json +11 -3
- package/src/i18n/tr.json +11 -3
- package/src/i18n/uk.json +11 -3
- package/src/i18n/zh-CN.json +11 -3
- package/src/i18n/{zh.json → zh-HK.json} +11 -3
- package/src/inputs/SelectInput.css +1 -1
- package/src/inputs/SelectInput.less +29 -7
- package/src/inputs/SelectInput.messages.ts +9 -0
- package/src/inputs/SelectInput.story.tsx +8 -5
- package/src/inputs/SelectInput.tsx +91 -33
- package/src/inputs/_BottomSheet.tsx +19 -19
- package/src/inputs/_Popover.tsx +2 -2
- package/src/main.css +1 -1
- package/src/modal/Modal.tsx +2 -2
- package/src/overlayHeader/OverlayHeader.css +1 -1
- package/src/popover/Popover.spec.js +3 -1
- package/src/radioGroup/RadioGroup.js +1 -1
- package/src/radioGroup/RadioGroup.spec.js +18 -0
- package/src/select/Select.spec.js +6 -9
- package/src/statusIcon/StatusIcon.css +1 -1
- package/src/statusIcon/StatusIcon.less +10 -0
- package/src/summary/Summary.css +1 -1
- package/src/summary/Summary.less +1 -1
- package/src/test-utils/index.js +1 -0
- package/src/test-utils/story-config.ts +21 -7
- package/src/test-utils/window-mock.ts +19 -0
- package/src/typeahead/Typeahead.css +1 -1
- package/src/typeahead/Typeahead.less +5 -6
- package/src/uploadInput/UploadInput.css +1 -1
- package/src/uploadInput/UploadInput.less +5 -1
- package/build/i18n/zh_CN.json +0 -44
- package/src/i18n/zh_CN.json +0 -44
|
@@ -74,24 +74,24 @@ export function BottomSheet({
|
|
|
74
74
|
setFloatingKey((prev) => prev + 1);
|
|
75
75
|
}}
|
|
76
76
|
>
|
|
77
|
-
<
|
|
78
|
-
enter="np-bottom-sheet-v2-backdrop-container--enter"
|
|
79
|
-
enterFrom="np-bottom-sheet-v2-backdrop-container--enter-from"
|
|
80
|
-
leave="np-bottom-sheet-v2-backdrop-container--leave"
|
|
81
|
-
leaveTo="np-bottom-sheet-v2-backdrop-container--leave-to"
|
|
82
|
-
>
|
|
83
|
-
<div className="np-bottom-sheet-v2-backdrop" />
|
|
84
|
-
</Transition.Child>
|
|
85
|
-
|
|
86
|
-
<div className="np-bottom-sheet-v2">
|
|
77
|
+
<FocusBoundary>
|
|
87
78
|
<Transition.Child
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
leaveTo="np-bottom-sheet-v2-content--leave-to"
|
|
79
|
+
enter="np-bottom-sheet-v2-backdrop-container--enter"
|
|
80
|
+
enterFrom="np-bottom-sheet-v2-backdrop-container--enter-from"
|
|
81
|
+
leave="np-bottom-sheet-v2-backdrop-container--leave"
|
|
82
|
+
leaveTo="np-bottom-sheet-v2-backdrop-container--leave-to"
|
|
93
83
|
>
|
|
94
|
-
<
|
|
84
|
+
<div className="np-bottom-sheet-v2-backdrop" />
|
|
85
|
+
</Transition.Child>
|
|
86
|
+
|
|
87
|
+
<div className="np-bottom-sheet-v2">
|
|
88
|
+
<Transition.Child
|
|
89
|
+
className="np-bottom-sheet-v2-content"
|
|
90
|
+
enter="np-bottom-sheet-v2-content--enter"
|
|
91
|
+
enterFrom="np-bottom-sheet-v2-content--enter-from"
|
|
92
|
+
leave="np-bottom-sheet-v2-content--leave"
|
|
93
|
+
leaveTo="np-bottom-sheet-v2-content--leave-to"
|
|
94
|
+
>
|
|
95
95
|
<FloatingFocusManager
|
|
96
96
|
context={context}
|
|
97
97
|
initialFocus={initialFocusRef}
|
|
@@ -130,9 +130,9 @@ export function BottomSheet({
|
|
|
130
130
|
</div>
|
|
131
131
|
</div>
|
|
132
132
|
</FloatingFocusManager>
|
|
133
|
-
</
|
|
134
|
-
</
|
|
135
|
-
</
|
|
133
|
+
</Transition.Child>
|
|
134
|
+
</div>
|
|
135
|
+
</FocusBoundary>
|
|
136
136
|
</Transition>
|
|
137
137
|
</ThemeProvider>
|
|
138
138
|
</FloatingPortal>
|
package/src/inputs/_Popover.tsx
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
FloatingFocusManager,
|
|
5
5
|
FloatingPortal,
|
|
6
6
|
offset,
|
|
7
|
+
type Placement,
|
|
7
8
|
shift,
|
|
8
|
-
type Side,
|
|
9
9
|
size,
|
|
10
10
|
useDismiss,
|
|
11
11
|
useFloating,
|
|
@@ -21,7 +21,7 @@ import FocusBoundary from '../common/focusBoundary/FocusBoundary';
|
|
|
21
21
|
import { PreventScroll } from '../common/preventScroll/PreventScroll';
|
|
22
22
|
|
|
23
23
|
export interface PopoverProps {
|
|
24
|
-
placement?:
|
|
24
|
+
placement?: Placement;
|
|
25
25
|
open: boolean;
|
|
26
26
|
renderTrigger: (args: {
|
|
27
27
|
ref: React.RefCallback<Element>;
|