@transferwise/components 0.0.0-experimental-fdc11fa → 0.0.0-experimental-88ddab3
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 +658 -13
- package/build/index.esm.js.map +1 -1
- package/build/index.js +661 -13
- 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/InputGroup.css +1 -1
- package/build/styles/inputs/SelectInput.css +1 -0
- package/build/styles/inputs/TextArea.css +1 -1
- package/build/styles/main.css +1 -1
- package/build/types/common/hooks/useMedia.d.ts +2 -0
- package/build/types/common/hooks/useMedia.d.ts.map +1 -0
- package/build/types/common/hooks/useScreenSize.d.ts +3 -0
- package/build/types/common/hooks/useScreenSize.d.ts.map +1 -0
- package/build/types/common/preventScroll/PreventScroll.d.ts +2 -0
- package/build/types/common/preventScroll/PreventScroll.d.ts.map +1 -0
- package/build/types/dateLookup/dateTrigger/DateTrigger.messages.d.ts +7 -7
- package/build/types/dateLookup/dateTrigger/DateTrigger.messages.d.ts.map +1 -1
- package/build/types/index.d.ts +4 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/inputs/Input.d.ts +1 -0
- package/build/types/inputs/Input.d.ts.map +1 -1
- package/build/types/inputs/SearchInput.d.ts +10 -0
- package/build/types/inputs/SearchInput.d.ts.map +1 -0
- package/build/types/inputs/SelectInput.d.ts +41 -0
- package/build/types/inputs/SelectInput.d.ts.map +1 -0
- package/build/types/inputs/_BottomSheet.d.ts +17 -0
- package/build/types/inputs/_BottomSheet.d.ts.map +1 -0
- package/build/types/inputs/_ButtonInput.d.ts +6 -0
- package/build/types/inputs/_ButtonInput.d.ts.map +1 -0
- package/build/types/inputs/_Popover.d.ts +18 -0
- package/build/types/inputs/_Popover.d.ts.map +1 -0
- package/build/types/inputs/_common.d.ts.map +1 -1
- package/build/types/utilities/wrapInFragment.d.ts +3 -0
- package/build/types/utilities/wrapInFragment.d.ts.map +1 -0
- package/package.json +13 -7
- package/src/common/hooks/useMedia.ts +15 -0
- package/src/common/hooks/useScreenSize.ts +7 -0
- package/src/common/preventScroll/PreventScroll.tsx +6 -0
- package/src/index.ts +8 -0
- package/src/inputs/Input.css +1 -1
- package/src/inputs/Input.less +14 -0
- package/src/inputs/Input.tsx +6 -2
- package/src/inputs/InputGroup.css +1 -1
- package/src/inputs/InputGroup.less +6 -1
- package/src/inputs/SearchInput.story.tsx +40 -0
- package/src/inputs/SearchInput.tsx +35 -0
- package/src/inputs/SelectInput.css +1 -0
- package/src/inputs/SelectInput.less +183 -0
- package/src/inputs/SelectInput.story.tsx +260 -0
- package/src/inputs/SelectInput.tsx +552 -0
- package/src/inputs/TextArea.css +1 -1
- package/src/inputs/TextArea.less +5 -0
- package/src/inputs/_BottomSheet.less +107 -0
- package/src/inputs/_BottomSheet.tsx +128 -0
- package/src/inputs/_ButtonInput.less +7 -0
- package/src/inputs/_ButtonInput.tsx +27 -0
- package/src/inputs/_Popover.less +38 -0
- package/src/inputs/_Popover.tsx +118 -0
- package/src/inputs/_common.less +0 -4
- package/src/inputs/_common.ts +0 -1
- package/src/main.css +1 -1
- package/src/main.less +4 -0
- package/src/select/searchBox/__snapshots__/SearchBox.spec.js.snap +1 -1
- package/src/ssr.spec.js +7 -0
- package/src/utilities/wrapInFragment.tsx +3 -0
- /package/src/dateLookup/dateTrigger/{DateTrigger.messages.js → DateTrigger.messages.ts} +0 -0
package/src/main.less
CHANGED
|
@@ -30,8 +30,12 @@
|
|
|
30
30
|
@import "./header/Header.less";
|
|
31
31
|
@import "./image/Image.less";
|
|
32
32
|
@import "./info/Info.less";
|
|
33
|
+
@import "./inputs/_BottomSheet.less";
|
|
34
|
+
@import "./inputs/_ButtonInput.less";
|
|
35
|
+
@import "./inputs/_Popover.less";
|
|
33
36
|
@import "./inputs/Input.less";
|
|
34
37
|
@import "./inputs/InputGroup.less";
|
|
38
|
+
@import "./inputs/SelectInput.less";
|
|
35
39
|
@import "./inputs/TextArea.less";
|
|
36
40
|
@import "./instructionsList/InstructionsList.less";
|
|
37
41
|
@import "./link/Link.less";
|
|
@@ -34,7 +34,7 @@ exports[`SearchBox renders 1`] = `
|
|
|
34
34
|
</span>
|
|
35
35
|
</span>
|
|
36
36
|
<input
|
|
37
|
-
class="np-select-filter form-control np-form-control np-form-control--size-auto np-text-body-large np-
|
|
37
|
+
class="np-select-filter form-control np-form-control np-form-control--size-auto np-text-body-large np-input np-input--shape-rectangle"
|
|
38
38
|
placeholder="placeholder"
|
|
39
39
|
spellcheck="false"
|
|
40
40
|
value="value"
|
package/src/ssr.spec.js
CHANGED
|
@@ -48,6 +48,10 @@ const excluded = new Set([
|
|
|
48
48
|
'Typography',
|
|
49
49
|
|
|
50
50
|
// types
|
|
51
|
+
'SearchInputProps',
|
|
52
|
+
'SelectInputItem',
|
|
53
|
+
'SelectInputOptionContentProps',
|
|
54
|
+
'SelectInputProps',
|
|
51
55
|
'UploadedFile',
|
|
52
56
|
'UploadError',
|
|
53
57
|
'UploadResponse',
|
|
@@ -179,6 +183,9 @@ describe('Server side rendering', () => {
|
|
|
179
183
|
Input: {
|
|
180
184
|
children: undefined,
|
|
181
185
|
},
|
|
186
|
+
SearchInput: {
|
|
187
|
+
children: undefined,
|
|
188
|
+
},
|
|
182
189
|
TextArea: {
|
|
183
190
|
children: undefined,
|
|
184
191
|
},
|
|
File without changes
|