@transferwise/components 46.160.4 → 46.160.6
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/ExpressiveMoneyInput/AmountInput/AmountInput.js +2 -0
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.js.map +1 -1
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs +2 -0
- package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs.map +1 -1
- package/build/ExpressiveMoneyInput/hooks/useInputStyle.js +1 -1
- package/build/ExpressiveMoneyInput/hooks/useInputStyle.js.map +1 -1
- package/build/ExpressiveMoneyInput/hooks/useInputStyle.mjs +1 -1
- package/build/ExpressiveMoneyInput/hooks/useInputStyle.mjs.map +1 -1
- package/build/Inputs/Input/Input.js +1 -0
- package/build/Inputs/Input/Input.js.map +1 -1
- package/build/Inputs/Input/Input.mjs +1 -0
- package/build/Inputs/Input/Input.mjs.map +1 -1
- package/build/Inputs/TextArea/TextArea.js +1 -0
- package/build/Inputs/TextArea/TextArea.js.map +1 -1
- package/build/Inputs/TextArea/TextArea.mjs +1 -0
- package/build/Inputs/TextArea/TextArea.mjs.map +1 -1
- package/build/MoneyInput/MoneyInput.js +1 -0
- package/build/MoneyInput/MoneyInput.js.map +1 -1
- package/build/MoneyInput/MoneyInput.mjs +1 -0
- package/build/MoneyInput/MoneyInput.mjs.map +1 -1
- package/build/PhoneNumberInput/PhoneNumberInput.js +3 -2
- package/build/PhoneNumberInput/PhoneNumberInput.js.map +1 -1
- package/build/PhoneNumberInput/PhoneNumberInput.messages.js +3 -0
- package/build/PhoneNumberInput/PhoneNumberInput.messages.js.map +1 -1
- package/build/PhoneNumberInput/PhoneNumberInput.messages.mjs +3 -0
- package/build/PhoneNumberInput/PhoneNumberInput.messages.mjs.map +1 -1
- package/build/PhoneNumberInput/PhoneNumberInput.mjs +3 -2
- package/build/PhoneNumberInput/PhoneNumberInput.mjs.map +1 -1
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.js +50 -20
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.js.map +1 -1
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.mjs +50 -20
- package/build/Typeahead/TypeaheadInput/TypeaheadInput.mjs.map +1 -1
- package/build/i18n/en.json +1 -0
- package/build/i18n/en.json.js +1 -0
- package/build/i18n/en.json.js.map +1 -1
- package/build/i18n/en.json.mjs +1 -0
- package/build/i18n/en.json.mjs.map +1 -1
- package/build/main.css +69 -1
- package/build/styles/ExpressiveMoneyInput/AmountInput/AmountInput.css +6 -0
- package/build/styles/ExpressiveMoneyInput/ExpressiveMoneyInput.css +6 -0
- package/build/styles/Inputs/Input/Input.css +19 -0
- package/build/styles/Inputs/TextArea/TextArea.css +16 -1
- package/build/styles/MoneyInput/MoneyInput.css +3 -0
- package/build/styles/PhoneNumberInput/PhoneNumberInput.css +7 -0
- package/build/styles/PocketSurface/PocketSurface.css +1 -0
- package/build/styles/SentimentSurface/SentimentSurface.css +5 -0
- package/build/styles/css/neptune.css +11 -0
- package/build/styles/main.css +69 -1
- package/build/styles/styles/less/neptune.css +11 -0
- package/build/types/ExpressiveMoneyInput/AmountInput/AmountInput.d.ts.map +1 -1
- package/build/types/ExpressiveMoneyInput/hooks/useInputStyle.d.ts.map +1 -1
- package/build/types/Inputs/Input/Input.d.ts.map +1 -1
- package/build/types/Inputs/TextArea/TextArea.d.ts.map +1 -1
- package/build/types/MoneyInput/MoneyInput.d.ts.map +1 -1
- package/build/types/PhoneNumberInput/PhoneNumberInput.d.ts.map +1 -1
- package/build/types/PhoneNumberInput/PhoneNumberInput.messages.d.ts +5 -0
- package/build/types/PhoneNumberInput/PhoneNumberInput.messages.d.ts.map +1 -1
- package/build/types/Typeahead/TypeaheadInput/TypeaheadInput.d.ts +1 -1
- package/build/types/Typeahead/TypeaheadInput/TypeaheadInput.d.ts.map +1 -1
- package/build/types/test-utils/index.d.ts +2 -0
- package/build/types/test-utils/index.d.ts.map +1 -1
- package/package.json +14 -14
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.css +6 -0
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.less +7 -0
- package/src/ExpressiveMoneyInput/AmountInput/AmountInput.tsx +2 -1
- package/src/ExpressiveMoneyInput/ExpressiveMoneyInput.css +6 -0
- package/src/ExpressiveMoneyInput/hooks/useInputStyle.ts +1 -2
- package/src/Field/_stories/Field.test.story.tsx +27 -0
- package/src/Inputs/Input/Input.css +19 -0
- package/src/Inputs/Input/Input.less +16 -0
- package/src/Inputs/Input/Input.tsx +1 -0
- package/src/Inputs/{_stories → InputGroup/_stories}/InputGroup.story.tsx +9 -9
- package/src/Inputs/InputGroup/_stories/InputGroup.test.story.tsx +80 -0
- package/src/Inputs/{_stories → SearchInput/_stories}/SearchInput.story.tsx +4 -4
- package/src/Inputs/SearchInput/_stories/SearchInput.test.story.tsx +38 -0
- package/src/Inputs/SelectInput/_stories/SelectInput.rtl.test.story.tsx +31 -19
- package/src/Inputs/TextArea/TextArea.css +16 -1
- package/src/Inputs/TextArea/TextArea.less +6 -1
- package/src/Inputs/TextArea/TextArea.tsx +1 -0
- package/src/Inputs/{_stories → TextArea/_stories}/TextArea.story.tsx +4 -4
- package/src/Inputs/{_stories → TextArea/_stories}/TextArea.test.story.tsx +50 -26
- package/src/MoneyInput/MoneyInput.css +3 -0
- package/src/MoneyInput/MoneyInput.less +6 -0
- package/src/MoneyInput/MoneyInput.tsx +1 -0
- package/src/MoneyInput/_stories/MoneyInput.rtl.test.story.tsx +14 -10
- package/src/PhoneNumberInput/PhoneNumberInput.css +7 -0
- package/src/PhoneNumberInput/PhoneNumberInput.less +13 -0
- package/src/PhoneNumberInput/PhoneNumberInput.messages.ts +5 -0
- package/src/PhoneNumberInput/PhoneNumberInput.tsx +3 -2
- package/src/PhoneNumberInput/_stories/PhoneNumberInput.rtl.test.story.tsx +15 -7
- package/src/PocketSurface/PocketSurface.css +1 -0
- package/src/Prompt/ActionPrompt/_stories/ActionPrompt.story.tsx +5 -1
- package/src/Prompt/InfoPrompt/_stories/InfoPrompt.story.tsx +12 -9
- package/src/Prompt/InlinePrompt/_stories/InlinePrompt.story.tsx +5 -5
- package/src/Prompt/PrimitivePrompt/PrimitivePrompt.less +2 -1
- package/src/SentimentSurface/SentimentSurface.css +5 -0
- package/src/SentimentSurface/SentimentSurface.less +5 -0
- package/src/SentimentSurface/_stories/SentimentSurface.story.tsx +6 -2
- package/src/TextareaWithDisplayFormat/_stories/TextareaWithDisplayFormat.test.story.tsx +49 -34
- package/src/Typeahead/TypeaheadInput/TypeaheadInput.tsx +31 -20
- package/src/Typeahead/_stories/Typeahead.rtl.test.story.tsx +90 -57
- package/src/_deprecated/Select/_stories/Select.rtl.test.story.tsx +8 -1
- package/src/main.css +69 -1
- package/src/styles/less/neptune.css +11 -0
- package/src/Inputs/_stories/InputGroup.test.story.tsx +0 -69
- package/src/Inputs/_stories/SearchInput.test.story.tsx +0 -32
|
@@ -140,6 +140,7 @@
|
|
|
140
140
|
--font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
|
|
141
141
|
--font-family-display: 'Wise Sans', 'Inter', sans-serif;
|
|
142
142
|
}
|
|
143
|
+
|
|
143
144
|
/**
|
|
144
145
|
* Do not edit directly, this file was auto-generated.
|
|
145
146
|
*/
|
|
@@ -322,6 +323,7 @@
|
|
|
322
323
|
--font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
|
|
323
324
|
--font-family-display: 'Wise Sans', 'Inter', sans-serif;
|
|
324
325
|
}
|
|
326
|
+
|
|
325
327
|
/**
|
|
326
328
|
* Do not edit directly, this file was auto-generated.
|
|
327
329
|
*/
|
|
@@ -504,6 +506,7 @@
|
|
|
504
506
|
--font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
|
|
505
507
|
--font-family-display: 'Wise Sans', 'Inter', sans-serif;
|
|
506
508
|
}
|
|
509
|
+
|
|
507
510
|
/**
|
|
508
511
|
* Do not edit directly, this file was auto-generated.
|
|
509
512
|
*/
|
|
@@ -686,6 +689,7 @@
|
|
|
686
689
|
--font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
|
|
687
690
|
--font-family-display: 'Wise Sans', 'Inter', sans-serif;
|
|
688
691
|
}
|
|
692
|
+
|
|
689
693
|
/**
|
|
690
694
|
* Do not edit directly, this file was auto-generated.
|
|
691
695
|
*/
|
|
@@ -868,6 +872,7 @@
|
|
|
868
872
|
--font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
|
|
869
873
|
--font-family-display: 'Wise Sans', 'Inter', sans-serif;
|
|
870
874
|
}
|
|
875
|
+
|
|
871
876
|
/**
|
|
872
877
|
* Do not edit directly, this file was auto-generated.
|
|
873
878
|
*/
|
|
@@ -1050,6 +1055,7 @@
|
|
|
1050
1055
|
--font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
|
|
1051
1056
|
--font-family-display: 'Wise Sans', 'Inter', sans-serif;
|
|
1052
1057
|
}
|
|
1058
|
+
|
|
1053
1059
|
/**
|
|
1054
1060
|
* Do not edit directly, this file was auto-generated.
|
|
1055
1061
|
*/
|
|
@@ -1232,6 +1238,7 @@
|
|
|
1232
1238
|
--font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
|
|
1233
1239
|
--font-family-display: 'Wise Sans', 'Inter', sans-serif;
|
|
1234
1240
|
}
|
|
1241
|
+
|
|
1235
1242
|
/**
|
|
1236
1243
|
* Do not edit directly, this file was auto-generated.
|
|
1237
1244
|
*/
|
|
@@ -1415,6 +1422,7 @@
|
|
|
1415
1422
|
--font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
|
|
1416
1423
|
--font-family-display: 'Wise Sans', 'Inter', sans-serif;
|
|
1417
1424
|
}
|
|
1425
|
+
|
|
1418
1426
|
/**
|
|
1419
1427
|
* Do not edit directly, this file was auto-generated.
|
|
1420
1428
|
*/
|
|
@@ -1598,6 +1606,7 @@
|
|
|
1598
1606
|
--font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
|
|
1599
1607
|
--font-family-display: 'Wise Sans', 'Inter', sans-serif;
|
|
1600
1608
|
}
|
|
1609
|
+
|
|
1601
1610
|
/**
|
|
1602
1611
|
* Do not edit directly, this file was auto-generated.
|
|
1603
1612
|
*/
|
|
@@ -1781,6 +1790,7 @@
|
|
|
1781
1790
|
--font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
|
|
1782
1791
|
--font-family-display: 'Wise Sans', 'Inter', sans-serif;
|
|
1783
1792
|
}
|
|
1793
|
+
|
|
1784
1794
|
/**
|
|
1785
1795
|
* Do not edit directly, this file was auto-generated.
|
|
1786
1796
|
*/
|
|
@@ -1964,6 +1974,7 @@
|
|
|
1964
1974
|
--font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
|
|
1965
1975
|
--font-family-display: 'Wise Sans', 'Inter', sans-serif;
|
|
1966
1976
|
}
|
|
1977
|
+
|
|
1967
1978
|
/* See: https://github.com/fontsource/fontsource/blob/main/fonts/google/inter/variable.css */
|
|
1968
1979
|
@font-face {
|
|
1969
1980
|
font-family: Inter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmountInput.d.ts","sourceRoot":"","sources":["../../../../src/ExpressiveMoneyInput/AmountInput/AmountInput.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAezE,KAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C,GAAG,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC,CAAC;AAE/C,eAAO,MAAM,WAAW,GAAI,uFASzB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"AmountInput.d.ts","sourceRoot":"","sources":["../../../../src/ExpressiveMoneyInput/AmountInput/AmountInput.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAezE,KAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C,GAAG,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC,CAAC;AAE/C,eAAO,MAAM,WAAW,GAAI,uFASzB,gBAAgB,gCAmTlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInputStyle.d.ts","sourceRoot":"","sources":["../../../../src/ExpressiveMoneyInput/hooks/useInputStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,SAAS,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;CAClD,GAAG,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC,CAAC;AAE/C,eAAO,MAAM,aAAa,GAAI,yCAAyC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"useInputStyle.d.ts","sourceRoot":"","sources":["../../../../src/ExpressiveMoneyInput/hooks/useInputStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEzE,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,SAAS,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;CAClD,GAAG,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC,CAAC;AAE/C,eAAO,MAAM,aAAa,GAAI,yCAAyC,gBAAgB,kBA4BtF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/Inputs/Input/Input.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAKpC,MAAM,WAAW,UAAW,SAAQ,KAAK,CACvC,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,EACpC;IACE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IACnD,KAAK,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CACF;CAAG;AAEJ,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../src/Inputs/Input/Input.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAKpC,MAAM,WAAW,UAAW,SAAQ,KAAK,CACvC,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,EACpC;IACE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IACnD,KAAK,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CACF;CAAG;AAEJ,eAAO,MAAM,KAAK,6HAoBhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/Inputs/TextArea/TextArea.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIpC,MAAM,WAAW,aAAc,SAAQ,KAAK,CAC1C,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,EACvC;IACE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CACF;CAAG;AAEJ,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/Inputs/TextArea/TextArea.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAIpC,MAAM,WAAW,aAAc,SAAQ,KAAK,CAC1C,KAAK,CAAC,qBAAqB,CAAC,UAAU,CAAC,EACvC;IACE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CACF;CAAG;AAEJ,eAAO,MAAM,QAAQ,mIAoBnB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MoneyInput.d.ts","sourceRoot":"","sources":["../../../src/MoneyInput/MoneyInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE9E,OAAO,EAGL,SAAS,EACT,UAAU,EACV,SAAS,EAEV,MAAM,WAAW,CAAC;AACnB,OAAO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,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oBAAoB;IACpB,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IACvD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACvC;AAKD,QAAA,MAAM,gBAAgB,GAAI,gMAevB,qBAAqB,gCAwNvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -11,6 +11,11 @@ declare const _default: {
|
|
|
11
11
|
id: string;
|
|
12
12
|
defaultMessage: string;
|
|
13
13
|
};
|
|
14
|
+
phoneNumberPrefix: {
|
|
15
|
+
id: string;
|
|
16
|
+
defaultMessage: string;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
14
19
|
};
|
|
15
20
|
export default _default;
|
|
16
21
|
//# sourceMappingURL=PhoneNumberInput.messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PhoneNumberInput.messages.d.ts","sourceRoot":"","sources":["../../../src/PhoneNumberInput/PhoneNumberInput.messages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PhoneNumberInput.messages.d.ts","sourceRoot":"","sources":["../../../src/PhoneNumberInput/PhoneNumberInput.messages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAEA,wBAkBG"}
|
|
@@ -24,7 +24,7 @@ export default class TypeaheadInput<T> extends Component<TypeaheadInputProps<T>,
|
|
|
24
24
|
componentDidMount(): void;
|
|
25
25
|
componentDidUpdate(previousProps: TypeaheadInputProps<T>): void;
|
|
26
26
|
recalculateWidth: () => void;
|
|
27
|
-
renderInput: () => import("react").JSX.Element;
|
|
27
|
+
renderInput: (isRTL: boolean) => import("react").JSX.Element;
|
|
28
28
|
render(): import("react").JSX.Element;
|
|
29
29
|
}
|
|
30
30
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypeaheadInput.d.ts","sourceRoot":"","sources":["../../../../src/Typeahead/TypeaheadInput/TypeaheadInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"TypeaheadInput.d.ts","sourceRoot":"","sources":["../../../../src/Typeahead/TypeaheadInput/TypeaheadInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAM/D,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IACrD,SAAS,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;IACxD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;IACvD,UAAU,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IACnE,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,WAAW,GAAG,UAAU,GAAG,aAAa,GAAG,WAAW,CAAC,CAAC;AAEpG,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,cAAc,CAAC,CAAC,CAAE,SAAQ,SAAS,CACtD,mBAAmB,CAAC,CAAC,CAAC,EACtB,mBAAmB,CACpB;IACC,QAAQ,8CAAiC;IACzC,QAAQ,4CAA+B;gBAE3B,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAQzC,iBAAiB;IAUjB,kBAAkB,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAMxD,gBAAgB,aAMd;IAEF,WAAW,GAAI,OAAO,OAAO,iCA6C3B;IAEF,MAAM;CAiCP"}
|
|
@@ -45,6 +45,7 @@ declare function customRender(ui: ReactElement, { locale, messages, ...renderOpt
|
|
|
45
45
|
"neptune.PhoneNumberInput.SelectInput.placeholder": string;
|
|
46
46
|
"neptune.PhoneNumberInput.countryCodeLabel": string;
|
|
47
47
|
"neptune.PhoneNumberInput.phoneNumberLabel": string;
|
|
48
|
+
"neptune.PhoneNumberInput.phoneNumberPrefix": string;
|
|
48
49
|
"neptune.Select.searchPlaceholder": string;
|
|
49
50
|
"neptune.SelectInput.noResultsFound": string;
|
|
50
51
|
"neptune.StatusIcon.iconLabel.error": string;
|
|
@@ -138,6 +139,7 @@ declare function customRenderHook(callback: () => unknown, { locale, messages }?
|
|
|
138
139
|
"neptune.PhoneNumberInput.SelectInput.placeholder": string;
|
|
139
140
|
"neptune.PhoneNumberInput.countryCodeLabel": string;
|
|
140
141
|
"neptune.PhoneNumberInput.phoneNumberLabel": string;
|
|
142
|
+
"neptune.PhoneNumberInput.phoneNumberPrefix": string;
|
|
141
143
|
"neptune.Select.searchPlaceholder": string;
|
|
142
144
|
"neptune.SelectInput.noResultsFound": string;
|
|
143
145
|
"neptune.StatusIcon.iconLabel.error": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/test-utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAM,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAc,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAMxD;;;;GAIG;AACH,iBAAS,YAAY,CACnB,EAAE,EAAE,YAAY,EAChB,EAAE,MAAuB,EAAE,QAAa,EAAE,GAAG,aAAa,EAAE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/test-utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAM,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAc,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAMxD;;;;GAIG;AACH,iBAAS,YAAY,CACnB,EAAE,EAAE,YAAY,EAChB,EAAE,MAAuB,EAAE,QAAa,EAAE,GAAG,aAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAK,GAChE,UAAU,CAAC,OAAO,MAAM,CAAC,CAK3B;AAED;;;GAGG;AACH,iBAAS,gBAAgB,CACvB,QAAQ,EAAE,MAAM,OAAO,EACvB,EAAE,MAAuB,EAAE,QAAa,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAK,uEAKhD;AAED,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,gBAAgB,IAAI,UAAU,EAAE,SAAS,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "46.160.
|
|
3
|
+
"version": "46.160.6",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -44,27 +44,27 @@
|
|
|
44
44
|
"@babel/preset-env": "^7.29.7",
|
|
45
45
|
"@babel/preset-react": "^7.29.7",
|
|
46
46
|
"@babel/preset-typescript": "^7.29.7",
|
|
47
|
-
"@formatjs/cli": "^6.16.
|
|
47
|
+
"@formatjs/cli": "^6.16.19",
|
|
48
48
|
"@rollup/plugin-babel": "^7.1.0",
|
|
49
49
|
"@rollup/plugin-json": "^6.1.0",
|
|
50
50
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
51
51
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
52
52
|
"@rollup/plugin-url": "^8.0.2",
|
|
53
|
-
"@storybook/addon-a11y": "^10.5.
|
|
54
|
-
"@storybook/addon-docs": "^10.5.
|
|
53
|
+
"@storybook/addon-a11y": "^10.5.10",
|
|
54
|
+
"@storybook/addon-docs": "^10.5.10",
|
|
55
55
|
"@storybook/addon-mcp": "^0.7.0",
|
|
56
56
|
"@storybook/addon-webpack5-compiler-babel": "^4.0.1",
|
|
57
|
-
"@storybook/react-webpack5": "^10.5.
|
|
57
|
+
"@storybook/react-webpack5": "^10.5.10",
|
|
58
58
|
"@testing-library/dom": "^10.4.1",
|
|
59
59
|
"@testing-library/jest-dom": "^6.9.1",
|
|
60
60
|
"@testing-library/react": "^16.3.2",
|
|
61
|
-
"@testing-library/user-event": "^14.6.
|
|
61
|
+
"@testing-library/user-event": "^14.6.6",
|
|
62
62
|
"@transferwise/icons": "^4.4.4",
|
|
63
63
|
"@tsconfig/recommended": "^1.0.13",
|
|
64
64
|
"@types/babel__core": "^7.20.5",
|
|
65
65
|
"@types/commonmark": "^0.27.10",
|
|
66
66
|
"@types/jest": "^29.5.14",
|
|
67
|
-
"@types/lodash": "4.17.
|
|
67
|
+
"@types/lodash": "4.17.25",
|
|
68
68
|
"@types/lodash.clamp": "^4.0.9",
|
|
69
69
|
"@types/lodash.debounce": "^4.0.9",
|
|
70
70
|
"@types/react": "^18.3.31",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@wise/eslint-config": "^14.2.1",
|
|
78
78
|
"babel-plugin-formatjs": "^11.3.16",
|
|
79
79
|
"eslint": "^9.39.5",
|
|
80
|
-
"eslint-plugin-storybook": "^10.5.
|
|
80
|
+
"eslint-plugin-storybook": "^10.5.10",
|
|
81
81
|
"gulp": "^5.0.1",
|
|
82
82
|
"jest": "^29.7.0",
|
|
83
83
|
"jest-environment-jsdom": "^29.7.0",
|
|
@@ -86,13 +86,13 @@
|
|
|
86
86
|
"lodash.times": "^4.3.2",
|
|
87
87
|
"react-intl": "^7.1.14",
|
|
88
88
|
"react-live": "^4.1.8",
|
|
89
|
-
"rollup": "^4.62.
|
|
89
|
+
"rollup": "^4.62.5",
|
|
90
90
|
"rollup-preserve-directives": "^1.1.3",
|
|
91
|
-
"storybook": "^10.5.
|
|
91
|
+
"storybook": "^10.5.10",
|
|
92
92
|
"storybook-addon-tag-badges": "^3.1.0",
|
|
93
93
|
"storybook-addon-test-codegen": "^3.0.4",
|
|
94
|
-
"@wise/components-theming": "1.10.3",
|
|
95
94
|
"@transferwise/less-config": "3.2.0",
|
|
95
|
+
"@wise/components-theming": "1.10.3",
|
|
96
96
|
"@wise/wds-configs": "0.0.0"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
@@ -115,13 +115,13 @@
|
|
|
115
115
|
"@transferwise/neptune-validation": "^3.3.4",
|
|
116
116
|
"clsx": "^2.1.1",
|
|
117
117
|
"commonmark": "^0.31.2",
|
|
118
|
-
"core-js": "^3.
|
|
119
|
-
"motion": "^12.
|
|
118
|
+
"core-js": "^3.50.0",
|
|
119
|
+
"motion": "^12.43.0",
|
|
120
120
|
"lodash.clamp": "^4.0.3",
|
|
121
121
|
"lodash.debounce": "^4.0.8",
|
|
122
122
|
"merge-props": "^6.0.0",
|
|
123
123
|
"react-transition-group": "^4.4.5",
|
|
124
|
-
"virtua": "^0.50.
|
|
124
|
+
"virtua": "^0.50.4"
|
|
125
125
|
},
|
|
126
126
|
"publishConfig": {
|
|
127
127
|
"access": "public",
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
margin-block-end: 0 !important;
|
|
12
12
|
}
|
|
13
|
+
[dir="rtl"] .wds-amount-input-input-container {
|
|
14
|
+
display: inline-grid;
|
|
15
|
+
grid-template-columns: auto 1fr;
|
|
16
|
+
}
|
|
13
17
|
@media (prefers-reduced-motion: reduce) {
|
|
14
18
|
.wds-amount-input-input-container {
|
|
15
19
|
transition: none;
|
|
@@ -22,6 +26,8 @@
|
|
|
22
26
|
text-align: end;
|
|
23
27
|
background-color: transparent;
|
|
24
28
|
line-height: inherit;
|
|
29
|
+
field-sizing: content;
|
|
30
|
+
block-size: inherit;
|
|
25
31
|
}
|
|
26
32
|
.wds-amount-input-input:focus-visible {
|
|
27
33
|
outline: none;
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
color: var(--color-interactive-primary);
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
margin-bottom: 0 !important;
|
|
18
|
+
|
|
19
|
+
[dir="rtl"] & {
|
|
20
|
+
display: inline-grid;
|
|
21
|
+
grid-template-columns: auto 1fr;
|
|
22
|
+
}
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -30,6 +35,8 @@
|
|
|
30
35
|
text-align: right;
|
|
31
36
|
background-color: transparent;
|
|
32
37
|
line-height: inherit;
|
|
38
|
+
field-sizing: content;
|
|
39
|
+
height: inherit;
|
|
33
40
|
|
|
34
41
|
&:focus-visible {
|
|
35
42
|
outline: none;
|
|
@@ -296,13 +296,14 @@ export const AmountInput = ({
|
|
|
296
296
|
});
|
|
297
297
|
|
|
298
298
|
return (
|
|
299
|
-
<div className="wds-amount-input-container">
|
|
299
|
+
<div className="wds-amount-input-container" dir="ltr">
|
|
300
300
|
<div
|
|
301
301
|
className={clsx('wds-amount-input-input-container', 'np-text-display-large--forced')}
|
|
302
302
|
style={style}
|
|
303
303
|
>
|
|
304
304
|
<input
|
|
305
305
|
ref={ref}
|
|
306
|
+
dir="auto"
|
|
306
307
|
className="wds-amount-input-input"
|
|
307
308
|
id={id}
|
|
308
309
|
autoComplete="off"
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
overflow: hidden;
|
|
11
11
|
margin-block-end: 0 !important;
|
|
12
12
|
}
|
|
13
|
+
[dir="rtl"] .wds-amount-input-input-container {
|
|
14
|
+
display: inline-grid;
|
|
15
|
+
grid-template-columns: auto 1fr;
|
|
16
|
+
}
|
|
13
17
|
@media (prefers-reduced-motion: reduce) {
|
|
14
18
|
.wds-amount-input-input-container {
|
|
15
19
|
transition: none;
|
|
@@ -22,6 +26,8 @@
|
|
|
22
26
|
text-align: end;
|
|
23
27
|
background-color: transparent;
|
|
24
28
|
line-height: inherit;
|
|
29
|
+
field-sizing: content;
|
|
30
|
+
block-size: inherit;
|
|
25
31
|
}
|
|
26
32
|
.wds-amount-input-input:focus-visible {
|
|
27
33
|
outline: none;
|
|
@@ -16,14 +16,13 @@ type InputStyleObject = {
|
|
|
16
16
|
|
|
17
17
|
export const useInputStyle = ({ value, focus, inputElement, loading }: InputStyleObject) => {
|
|
18
18
|
const initialRender = !useTimeout(300);
|
|
19
|
-
const inputWidth = useFirstDefinedValue(inputElement?.current?.clientWidth, [
|
|
19
|
+
const inputWidth = useFirstDefinedValue(inputElement?.current?.parentElement?.clientWidth, [
|
|
20
20
|
inputElement?.current,
|
|
21
21
|
value,
|
|
22
22
|
]);
|
|
23
23
|
|
|
24
24
|
const getStyle = useCallback((): CSSProperties => {
|
|
25
25
|
const fontSize = getFontSize(value, focus, inputWidth);
|
|
26
|
-
|
|
27
26
|
return {
|
|
28
27
|
fontSize,
|
|
29
28
|
height: fontSize,
|
|
@@ -62,6 +62,22 @@ export const RTLDiff: Story = {
|
|
|
62
62
|
const i18n = useRtlDiffI18n();
|
|
63
63
|
return (
|
|
64
64
|
<>
|
|
65
|
+
<Field label="Localised placeholder">
|
|
66
|
+
<Input placeholder={i18n.placeholder_ar} />
|
|
67
|
+
</Field>
|
|
68
|
+
|
|
69
|
+
<Field label="Localised value">
|
|
70
|
+
<Input defaultValue={i18n.value_ar} />
|
|
71
|
+
</Field>
|
|
72
|
+
|
|
73
|
+
<Field label="LTR placeholder (email input)">
|
|
74
|
+
<Input placeholder={i18n.placeholder_en} type="email" />
|
|
75
|
+
</Field>
|
|
76
|
+
|
|
77
|
+
<Field label="LTR value (email input)">
|
|
78
|
+
<Input defaultValue={i18n.value_en} />
|
|
79
|
+
</Field>
|
|
80
|
+
|
|
65
81
|
<Field label={i18n.requiredLabel}>
|
|
66
82
|
<Input defaultValue={i18n.inputValue} />
|
|
67
83
|
</Field>
|
|
@@ -95,7 +111,18 @@ export const RTLDiff: Story = {
|
|
|
95
111
|
);
|
|
96
112
|
},
|
|
97
113
|
...withRTLDiff({
|
|
114
|
+
width: 'stretch',
|
|
98
115
|
i18n: {
|
|
116
|
+
placeholder_en: { ltr: 'LTR placeholder...', rtl: 'LTR placeholder...' },
|
|
117
|
+
placeholder_ar: { ltr: 'Localised placeholder...', rtl: 'نص بديل مترجم...' },
|
|
118
|
+
value_en: {
|
|
119
|
+
ltr: 'ltr@value.com',
|
|
120
|
+
rtl: 'ltr@value.com',
|
|
121
|
+
},
|
|
122
|
+
value_ar: {
|
|
123
|
+
ltr: 'localised value',
|
|
124
|
+
rtl: 'قيمة مُكيَّفة محلياً',
|
|
125
|
+
},
|
|
99
126
|
requiredLabel: { ltr: 'Required field', rtl: 'حقل مطلوب' },
|
|
100
127
|
optionalLabel: { ltr: 'Optional field', rtl: 'حقل اختياري' },
|
|
101
128
|
descriptionLabel: { ltr: 'Field with description and message', rtl: 'حقل مع وصف ورسالة' },
|
|
@@ -147,6 +147,25 @@
|
|
|
147
147
|
color: #768e9c;
|
|
148
148
|
color: var(--color-content-tertiary);
|
|
149
149
|
}
|
|
150
|
+
[dir="rtl"] .np-input::-moz-placeholder {
|
|
151
|
+
direction: rtl !important;
|
|
152
|
+
}
|
|
153
|
+
[dir="rtl"] .np-input:-moz-placeholder {
|
|
154
|
+
direction: rtl !important;
|
|
155
|
+
}
|
|
156
|
+
[dir="rtl"] .np-input::placeholder,
|
|
157
|
+
[dir="rtl"] .np-input:placeholder-shown {
|
|
158
|
+
direction: rtl !important;
|
|
159
|
+
}
|
|
160
|
+
[dir="rtl"] .np-input:-moz-placeholder[type="email"], [dir="rtl"] .np-input:-moz-placeholder[type="tel"], [dir="rtl"] .np-input:-moz-placeholder[type="number"], [dir="rtl"] .np-input:-moz-placeholder[type="url"] {
|
|
161
|
+
direction: ltr !important;
|
|
162
|
+
}
|
|
163
|
+
[dir="rtl"] .np-input:placeholder-shown[type="email"],
|
|
164
|
+
[dir="rtl"] .np-input:placeholder-shown[type="tel"],
|
|
165
|
+
[dir="rtl"] .np-input:placeholder-shown[type="number"],
|
|
166
|
+
[dir="rtl"] .np-input:placeholder-shown[type="url"] {
|
|
167
|
+
direction: ltr !important;
|
|
168
|
+
}
|
|
150
169
|
.np-input--shape-rectangle {
|
|
151
170
|
border-radius: 10px !important;
|
|
152
171
|
border-radius: var(--radius-small) !important;
|
|
@@ -5,6 +5,22 @@
|
|
|
5
5
|
color: var(--color-content-tertiary);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
&::placeholder,
|
|
9
|
+
&:placeholder-shown{
|
|
10
|
+
[dir="rtl"] & {
|
|
11
|
+
direction: rtl !important;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&:placeholder-shown[type="email"],
|
|
16
|
+
&:placeholder-shown[type="tel"],
|
|
17
|
+
&:placeholder-shown[type="number"],
|
|
18
|
+
&:placeholder-shown[type="url"] {
|
|
19
|
+
[dir="rtl"] & {
|
|
20
|
+
direction: ltr !important;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
8
24
|
&--shape-rectangle {
|
|
9
25
|
border-radius: var(--radius-small) !important;
|
|
10
26
|
}
|
|
@@ -26,6 +26,7 @@ export const Input = forwardRef(function Input(
|
|
|
26
26
|
return (
|
|
27
27
|
<input
|
|
28
28
|
ref={reference}
|
|
29
|
+
dir="auto"
|
|
29
30
|
className={clsx(className, inputClassNameBase({ size }), 'np-input', {
|
|
30
31
|
'np-input--shape-rectangle': shape === 'rectangle',
|
|
31
32
|
'np-input--shape-pill': shape === 'pill',
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { Search } from '@transferwise/icons';
|
|
3
2
|
import { useRef, useState } from 'react';
|
|
3
|
+
import { Search } from '@transferwise/icons';
|
|
4
|
+
import { Flag } from '@wise/art';
|
|
4
5
|
|
|
5
6
|
import {
|
|
6
7
|
createSandboxStory,
|
|
7
8
|
globalScope,
|
|
8
|
-
} from '
|
|
9
|
-
import Field from '../../Field';
|
|
9
|
+
} from '../../../../.storybook/components/sandbox/SandboxEditor';
|
|
10
10
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
11
|
+
import Field from '../../../Field';
|
|
12
|
+
import AvatarView from '../../../AvatarView';
|
|
13
|
+
import PhoneNumberInput from '../../../PhoneNumberInput';
|
|
14
|
+
import Button from '../../../Button';
|
|
15
|
+
import { Input } from '../../Input/Input';
|
|
16
|
+
import { InputGroup } from '../InputGroup';
|
|
17
17
|
|
|
18
18
|
export default {
|
|
19
19
|
component: InputGroup,
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { Search } from '@transferwise/icons';
|
|
3
|
+
|
|
4
|
+
import { useRtlDiffI18n, withRTLDiff } from '../../../../.storybook/decorators/RtlDiffDecorator';
|
|
5
|
+
import Button from '../../../Button';
|
|
6
|
+
import { Input } from '../../Input/Input';
|
|
7
|
+
import { InputGroup } from '../InputGroup';
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
component: InputGroup,
|
|
11
|
+
title: 'Forms/InputGroup/Tests',
|
|
12
|
+
tags: ['!autodocs', '!manifest'],
|
|
13
|
+
} satisfies Meta<typeof InputGroup>;
|
|
14
|
+
|
|
15
|
+
type Story = StoryObj<typeof InputGroup>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* InputGroup positions addons at the logical start or end of an input.
|
|
19
|
+
* In RTL mode the start and end sides are mirrored, so an addonStart icon
|
|
20
|
+
* should appear on the right and an addonEnd button should appear on the left.
|
|
21
|
+
* All three placement combinations are included to verify each case.
|
|
22
|
+
*/
|
|
23
|
+
export const RTLDiff: Story = {
|
|
24
|
+
render: () => {
|
|
25
|
+
const i18n = useRtlDiffI18n();
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<>
|
|
29
|
+
<InputGroup
|
|
30
|
+
addonStart={{
|
|
31
|
+
content: <Search size={24} />,
|
|
32
|
+
initialContentWidth: 24,
|
|
33
|
+
}}
|
|
34
|
+
>
|
|
35
|
+
<Input placeholder={i18n.placeholder_start} />
|
|
36
|
+
</InputGroup>
|
|
37
|
+
|
|
38
|
+
<InputGroup
|
|
39
|
+
addonEnd={{
|
|
40
|
+
content: (
|
|
41
|
+
<Button v2 size="sm">
|
|
42
|
+
Copy
|
|
43
|
+
</Button>
|
|
44
|
+
),
|
|
45
|
+
interactive: true,
|
|
46
|
+
padding: 'sm',
|
|
47
|
+
}}
|
|
48
|
+
>
|
|
49
|
+
<Input placeholder={i18n.placeholder_end} />
|
|
50
|
+
</InputGroup>
|
|
51
|
+
|
|
52
|
+
<InputGroup
|
|
53
|
+
addonStart={{
|
|
54
|
+
content: <Search size={24} />,
|
|
55
|
+
initialContentWidth: 24,
|
|
56
|
+
}}
|
|
57
|
+
addonEnd={{
|
|
58
|
+
content: (
|
|
59
|
+
<Button v2 size="sm">
|
|
60
|
+
Clear
|
|
61
|
+
</Button>
|
|
62
|
+
),
|
|
63
|
+
interactive: true,
|
|
64
|
+
padding: 'sm',
|
|
65
|
+
}}
|
|
66
|
+
>
|
|
67
|
+
<Input placeholder={i18n.placeholder_both} />
|
|
68
|
+
</InputGroup>
|
|
69
|
+
</>
|
|
70
|
+
);
|
|
71
|
+
},
|
|
72
|
+
...withRTLDiff({
|
|
73
|
+
i18n:{
|
|
74
|
+
placeholder_both: { ltr: 'addonStart and addonEnd', rtl: 'البادئة والنهاية' },
|
|
75
|
+
placeholder_start: { ltr: 'addonStart only', rtl: 'البادئة فقط' },
|
|
76
|
+
placeholder_end: { ltr: 'addonEnd only', rtl: 'النهاية فقط' },
|
|
77
|
+
|
|
78
|
+
}
|
|
79
|
+
}),
|
|
80
|
+
};
|
|
@@ -4,11 +4,11 @@ import { useState } from 'react';
|
|
|
4
4
|
import {
|
|
5
5
|
createSandboxStory,
|
|
6
6
|
globalScope,
|
|
7
|
-
} from '
|
|
8
|
-
import { Size } from '
|
|
9
|
-
import Field from '
|
|
7
|
+
} from '../../../../.storybook/components/sandbox/SandboxEditor';
|
|
8
|
+
import { Size } from '../../../common';
|
|
9
|
+
import Field from '../../../Field';
|
|
10
10
|
|
|
11
|
-
import { SearchInput } from '../SearchInput
|
|
11
|
+
import { SearchInput } from '../SearchInput';
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
14
|
component: SearchInput,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
|
|
3
|
+
import { useRtlDiffI18n, withRTLDiff } from '../../../../.storybook/decorators/RtlDiffDecorator';
|
|
4
|
+
import { Size } from '../../../common';
|
|
5
|
+
import { SearchInput } from '../SearchInput';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
component: SearchInput,
|
|
9
|
+
title: 'Forms/SearchInput/Tests',
|
|
10
|
+
tags: ['!autodocs', '!manifest'],
|
|
11
|
+
} satisfies Meta<typeof SearchInput>;
|
|
12
|
+
|
|
13
|
+
type Story = StoryObj<typeof SearchInput>;
|
|
14
|
+
|
|
15
|
+
export const RTLDiff: Story = {
|
|
16
|
+
render: () => {
|
|
17
|
+
const i18n = useRtlDiffI18n();
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<>
|
|
21
|
+
{/* sm — search icon (addonStart) position flips to trailing side in RTL */}
|
|
22
|
+
<SearchInput size={Size.SMALL} shape="pill" placeholder={i18n.placeholder} />
|
|
23
|
+
|
|
24
|
+
{/* md — search icon (addonStart) position flips to trailing side in RTL */}
|
|
25
|
+
<SearchInput size={Size.MEDIUM} shape="pill" placeholder={i18n.placeholder} />
|
|
26
|
+
|
|
27
|
+
{/* sm rectangle — icon flip with rectangle shape */}
|
|
28
|
+
<SearchInput size={Size.SMALL} shape="rectangle" placeholder={i18n.placeholder} />
|
|
29
|
+
|
|
30
|
+
{/* md rectangle — icon flip with rectangle shape */}
|
|
31
|
+
<SearchInput size={Size.MEDIUM} shape="rectangle" placeholder={i18n.placeholder} />
|
|
32
|
+
</>
|
|
33
|
+
);
|
|
34
|
+
},
|
|
35
|
+
...withRTLDiff({i18n:{
|
|
36
|
+
placeholder: { ltr: 'Search', rtl: 'بحث' },
|
|
37
|
+
}}),
|
|
38
|
+
};
|