@transferwise/components 45.15.0 → 45.15.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.
Files changed (82) hide show
  1. package/build/i18n/en.json +8 -0
  2. package/build/index.esm.js +322 -318
  3. package/build/index.esm.js.map +1 -1
  4. package/build/index.js +321 -317
  5. package/build/index.js.map +1 -1
  6. package/build/main.css +1 -1
  7. package/build/styles/dateLookup/DateLookup.css +1 -1
  8. package/build/styles/main.css +1 -1
  9. package/build/types/avatarWrapper/AvatarWrapper.d.ts +14 -5
  10. package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -1
  11. package/build/types/common/Option/Option.d.ts.map +1 -1
  12. package/build/types/common/focusBoundary/FocusBoundary.d.ts +2 -2
  13. package/build/types/common/focusBoundary/FocusBoundary.d.ts.map +1 -1
  14. package/build/types/dateInput/DateInput.d.ts +2 -0
  15. package/build/types/dateInput/DateInput.d.ts.map +1 -1
  16. package/build/types/dateLookup/DateLookup.messages.d.ts +65 -0
  17. package/build/types/dateLookup/DateLookup.messages.d.ts.map +1 -0
  18. package/build/types/dateLookup/dateHeader/DateHeader.d.ts +3 -1
  19. package/build/types/dateLookup/dateHeader/DateHeader.d.ts.map +1 -1
  20. package/build/types/dateLookup/tableLink/TableLink.d.ts +4 -26
  21. package/build/types/dateLookup/tableLink/TableLink.d.ts.map +1 -1
  22. package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts +4 -29
  23. package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts.map +1 -1
  24. package/build/types/phoneNumberInput/PhoneNumberInput.d.ts.map +1 -1
  25. package/build/types/snackbar/Snackbar.d.ts.map +1 -1
  26. package/build/types/tabs/Tabs.d.ts.map +1 -1
  27. package/build/types/upload/steps/completeStep/completeStep.d.ts.map +1 -1
  28. package/build/types/upload/steps/processingStep/processingStep.d.ts.map +1 -1
  29. package/package.json +2 -1
  30. package/src/accordion/AccordionItem/__snapshots__/AccordionItem.spec.js.snap +6 -6
  31. package/src/avatarWrapper/AvatarWrapper.tsx +20 -8
  32. package/src/avatarWrapper/__snapshots__/AvatarWrapper.spec.tsx.snap +1 -1
  33. package/src/card/Card.spec.js +2 -2
  34. package/src/common/Option/Option.tsx +1 -7
  35. package/src/common/bottomSheet/__snapshots__/BottomSheet.spec.tsx.snap +8 -1
  36. package/src/common/focusBoundary/FocusBoundary.tsx +9 -32
  37. package/src/dateInput/DateInput.js +6 -0
  38. package/src/dateInput/DateInput.story.tsx +2 -0
  39. package/src/dateLookup/DateLookup.css +1 -1
  40. package/src/dateLookup/DateLookup.keyboardEvents.spec.js +3 -3
  41. package/src/dateLookup/DateLookup.less +4 -0
  42. package/src/dateLookup/DateLookup.messages.js +44 -0
  43. package/src/dateLookup/DateLookup.testingLibrary.spec.js +39 -0
  44. package/src/dateLookup/dateHeader/DateHeader.js +48 -26
  45. package/src/dateLookup/dateHeader/DateHeader.spec.js +37 -0
  46. package/src/dateLookup/dayCalendar/DayCalendar.js +3 -1
  47. package/src/dateLookup/dayCalendar/DayCalendar.spec.js +7 -1
  48. package/src/dateLookup/dayCalendar/table/DayCalendarTable.js +7 -3
  49. package/src/dateLookup/dayCalendar/table/DayCalendarTable.spec.js +1 -0
  50. package/src/dateLookup/monthCalendar/MonthCalendar.js +3 -1
  51. package/src/dateLookup/monthCalendar/MonthCalendar.spec.js +7 -1
  52. package/src/dateLookup/monthCalendar/table/MonthCalendarTable.spec.js +4 -5
  53. package/src/dateLookup/tableLink/TableLink.js +24 -3
  54. package/src/dateLookup/tableLink/TableLink.spec.js +60 -4
  55. package/src/dateLookup/yearCalendar/YearCalendar.js +16 -3
  56. package/src/dateLookup/yearCalendar/YearCalendar.spec.js +14 -1
  57. package/src/dateLookup/yearCalendar/table/YearCalendarTable.spec.js +4 -5
  58. package/src/i18n/en.json +8 -0
  59. package/src/inputs/SelectInput.story.tsx +14 -9
  60. package/src/main.css +1 -1
  61. package/src/phoneNumberInput/PhoneNumberInput.js +1 -0
  62. package/src/snackbar/Snackbar.js +6 -1
  63. package/src/snackbar/Snackbar.spec.js +1 -3
  64. package/src/tabs/Tabs.js +2 -1
  65. package/src/upload/Upload.js +1 -1
  66. package/src/upload/steps/completeStep/completeStep.js +4 -1
  67. package/src/upload/steps/processingStep/processingStep.js +1 -0
  68. package/src/uploadInput/uploadItem/UploadItem.tsx +1 -1
  69. package/build/types/common/focusBoundary/utils/getFocusableElements.d.ts +0 -2
  70. package/build/types/common/focusBoundary/utils/getFocusableElements.d.ts.map +0 -1
  71. package/build/types/common/focusBoundary/utils/index.d.ts +0 -3
  72. package/build/types/common/focusBoundary/utils/index.d.ts.map +0 -1
  73. package/build/types/common/focusBoundary/utils/resetFocus.d.ts +0 -2
  74. package/build/types/common/focusBoundary/utils/resetFocus.d.ts.map +0 -1
  75. package/src/common/focusBoundary/FocusBoundary.spec.tsx +0 -66
  76. package/src/common/focusBoundary/__snapshots__/FocusBoundary.spec.tsx.snap +0 -16
  77. package/src/common/focusBoundary/utils/getFocusableElements.js +0 -25
  78. package/src/common/focusBoundary/utils/getFocusableElements.spec.js +0 -51
  79. package/src/common/focusBoundary/utils/index.js +0 -2
  80. package/src/common/focusBoundary/utils/resetFocus.js +0 -23
  81. package/src/common/focusBoundary/utils/resetFocus.spec.js +0 -103
  82. package/src/snackbar/__snapshots__/Snackbar.spec.js.snap +0 -5
@@ -2,17 +2,26 @@
2
2
  import { AvatarProps } from '../avatar';
3
3
  import { BadgeProps } from '../badge';
4
4
  import { ProfileTypePersonal, ProfileTypeBusiness, Sentiment } from '../common';
5
- export interface AvatarWrapperProps {
5
+ export type AvatarWrapperProps = {
6
6
  url?: string;
7
7
  profileType?: ProfileTypeBusiness | ProfileTypePersonal;
8
8
  profileId?: string;
9
- badgeUrl?: string;
10
- badgeAltText?: string;
11
- badgeStatusIcon?: Sentiment;
12
9
  name?: string;
13
10
  avatarProps?: AvatarProps;
14
11
  badgeProps?: BadgeProps;
15
- }
12
+ } & ({
13
+ badgeUrl: string;
14
+ badgeAltText: string;
15
+ badgeStatusIcon?: never;
16
+ } | {
17
+ badgeUrl?: never;
18
+ badgeAltText?: never;
19
+ badgeStatusIcon: Sentiment;
20
+ } | {
21
+ badgeUrl?: never;
22
+ badgeAltText?: never;
23
+ badgeStatusIcon?: never;
24
+ });
16
25
  declare const AvatarWrapper: ({ url, profileType, profileId, badgeUrl, badgeAltText, badgeStatusIcon, name, avatarProps, badgeProps, }: AvatarWrapperProps) => import("react").JSX.Element;
17
26
  export default AvatarWrapper;
18
27
  //# sourceMappingURL=AvatarWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarWrapper.d.ts","sourceRoot":"","sources":["../../../src/avatarWrapper/AvatarWrapper.tsx"],"names":[],"mappings":";AAGA,OAAe,EAAE,WAAW,EAAc,MAAM,WAAW,CAAC;AAC5D,OAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAe,mBAAmB,EAAE,mBAAmB,EAAQ,SAAS,EAAE,MAAM,WAAW,CAAC;AA4BnG,MAAM,WAAW,kBAAkB;IACjC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,QAAA,MAAM,aAAa,6GAUhB,kBAAkB,gCA+CpB,CAAC;AAgBF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"AvatarWrapper.d.ts","sourceRoot":"","sources":["../../../src/avatarWrapper/AvatarWrapper.tsx"],"names":[],"mappings":";AAGA,OAAe,EAAE,WAAW,EAAc,MAAM,WAAW,CAAC;AAC5D,OAAc,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAe,mBAAmB,EAAE,mBAAmB,EAAQ,SAAS,EAAE,MAAM,WAAW,CAAC;AA2BnG,MAAM,MAAM,kBAAkB,GAAG;IAC/B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,mBAAmB,GAAG,mBAAmB,CAAC;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,GAAG,CACA;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,GACD;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,eAAe,EAAE,SAAS,CAAC;CAC5B,GACD;IACE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,CACJ,CAAC;AAEF,QAAA,MAAM,aAAa,6GAUhB,kBAAkB,gCA+CpB,CAAC;AAgBF,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/common/Option/Option.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAc,cAAc,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGvF,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACnD,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,UAAU,iBAAkB,SAAQ,eAAe,EAAE,SAAS;IAC5D,EAAE,EAAE,GAAG,CAAC;CACT;AAED,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,iBAAiB,CAAC;AAE5D,QAAA,MAAM,MAAM,uGAkEX,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/common/Option/Option.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAc,cAAc,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGvF,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACnD,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,UAAU,iBAAkB,SAAQ,eAAe,EAAE,SAAS;IAC5D,EAAE,EAAE,GAAG,CAAC;CACT;AAED,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,iBAAiB,CAAC;AAE5D,QAAA,MAAM,MAAM,uGA4DX,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,6 +1,6 @@
1
- import { ReactNode } from 'react';
1
+ /// <reference types="react" />
2
2
  type FocusBoundaryProps = {
3
- children: ReactNode;
3
+ children: React.ReactNode;
4
4
  };
5
5
  declare const FocusBoundary: ({ children }: FocusBoundaryProps) => import("react").JSX.Element;
6
6
  export default FocusBoundary;
@@ -1 +1 @@
1
- {"version":3,"file":"FocusBoundary.d.ts","sourceRoot":"","sources":["../../../../src/common/focusBoundary/FocusBoundary.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAC;AAS/D,KAAK,kBAAkB,GAAG;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,aAAa,iBAAkB,kBAAkB,gCA6BtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"FocusBoundary.d.ts","sourceRoot":"","sources":["../../../../src/common/focusBoundary/FocusBoundary.tsx"],"names":[],"mappings":";AAGA,KAAK,kBAAkB,GAAG;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,aAAa,iBAAkB,kBAAkB,gCAatD,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -22,8 +22,10 @@ export interface DateInputProps {
22
22
  onFocus?: (...args: any[])=>any;
23
23
  onBlur?: (...args: any[])=>any;
24
24
  dayLabel?: string;
25
+ dayAutoComplete?: string;
25
26
  monthLabel?: string;
26
27
  yearLabel?: string;
28
+ yearAutoComplete?: string;
27
29
  monthFormat?: DateInputMonthFormat;
28
30
  mode?: DateInputMode;
29
31
  placeholders?: DateInputPlaceholders;
@@ -1 +1 @@
1
- {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/dateInput/DateInput.js"],"names":[],"mappings":";AAeA;;;;;;;;;;;;;;;gCAkQC"}
1
+ {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/dateInput/DateInput.js"],"names":[],"mappings":";AAeA;;;;;;;;;;;;;;;;;gCAsQC"}
@@ -0,0 +1,65 @@
1
+ declare namespace _default {
2
+ namespace next {
3
+ const id: string;
4
+ const defaultMessage: string;
5
+ const description: string;
6
+ }
7
+ namespace previous {
8
+ const id_1: string;
9
+ export { id_1 as id };
10
+ const defaultMessage_1: string;
11
+ export { defaultMessage_1 as defaultMessage };
12
+ const description_1: string;
13
+ export { description_1 as description };
14
+ }
15
+ namespace day {
16
+ const id_2: string;
17
+ export { id_2 as id };
18
+ const defaultMessage_2: string;
19
+ export { defaultMessage_2 as defaultMessage };
20
+ const description_2: string;
21
+ export { description_2 as description };
22
+ }
23
+ namespace month {
24
+ const id_3: string;
25
+ export { id_3 as id };
26
+ const defaultMessage_3: string;
27
+ export { defaultMessage_3 as defaultMessage };
28
+ const description_3: string;
29
+ export { description_3 as description };
30
+ }
31
+ namespace year {
32
+ const id_4: string;
33
+ export { id_4 as id };
34
+ const defaultMessage_4: string;
35
+ export { defaultMessage_4 as defaultMessage };
36
+ const description_4: string;
37
+ export { description_4 as description };
38
+ }
39
+ namespace twentyYears {
40
+ const id_5: string;
41
+ export { id_5 as id };
42
+ const defaultMessage_5: string;
43
+ export { defaultMessage_5 as defaultMessage };
44
+ const description_5: string;
45
+ export { description_5 as description };
46
+ }
47
+ namespace selected {
48
+ const id_6: string;
49
+ export { id_6 as id };
50
+ const defaultMessage_6: string;
51
+ export { defaultMessage_6 as defaultMessage };
52
+ const description_6: string;
53
+ export { description_6 as description };
54
+ }
55
+ namespace goTo20YearView {
56
+ const id_7: string;
57
+ export { id_7 as id };
58
+ const defaultMessage_7: string;
59
+ export { defaultMessage_7 as defaultMessage };
60
+ const description_7: string;
61
+ export { description_7 as description };
62
+ }
63
+ }
64
+ export default _default;
65
+ //# sourceMappingURL=DateLookup.messages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateLookup.messages.d.ts","sourceRoot":"","sources":["../../../src/dateLookup/DateLookup.messages.js"],"names":[],"mappings":""}
@@ -1,9 +1,10 @@
1
1
  export default DateHeader;
2
- declare function DateHeader({ label, onLabelClick, onPreviousClick, onNextClick }: {
2
+ declare function DateHeader({ label, onLabelClick, onPreviousClick, onNextClick, dateMode }: {
3
3
  label: any;
4
4
  onLabelClick: any;
5
5
  onPreviousClick: any;
6
6
  onNextClick: any;
7
+ dateMode: any;
7
8
  }): import("react").JSX.Element;
8
9
  declare namespace DateHeader {
9
10
  namespace propTypes {
@@ -11,6 +12,7 @@ declare namespace DateHeader {
11
12
  const onLabelClick: any;
12
13
  const onPreviousClick: any;
13
14
  const onNextClick: any;
15
+ const dateMode: any;
14
16
  }
15
17
  namespace defaultProps {
16
18
  const label_1: null;
@@ -1 +1 @@
1
- {"version":3,"file":"DateHeader.d.ts","sourceRoot":"","sources":["../../../../src/dateLookup/dateHeader/DateHeader.js"],"names":[],"mappings":";AAOA;;;;;gCA0BC;;;;;;;;;;;QAWe,uCAAQ"}
1
+ {"version":3,"file":"DateHeader.d.ts","sourceRoot":"","sources":["../../../../src/dateLookup/dateHeader/DateHeader.js"],"names":[],"mappings":";AASA;;;;;;gCA6CC;;;;;;;;;;;;QAYe,uCAAQ"}
@@ -1,27 +1,5 @@
1
- export default TableLink;
2
- declare class TableLink extends PureComponent<any, any, any> {
3
- constructor(props: any);
4
- constructor(props: any, context: any);
5
- onClick: (event: any) => void;
6
- render(): import("react").JSX.Element;
7
- }
8
- declare namespace TableLink {
9
- namespace propTypes {
10
- const item: any;
11
- const type: any;
12
- const title: any;
13
- const longTitle: any;
14
- const active: any;
15
- const disabled: any;
16
- const today: any;
17
- const onClick: any;
18
- }
19
- namespace defaultProps {
20
- const title_1: null;
21
- export { title_1 as title };
22
- const longTitle_1: null;
23
- export { longTitle_1 as longTitle };
24
- }
25
- }
26
- import { PureComponent } from "react";
1
+ declare const _default: import("react").FC<import("react-intl").WithIntlProps<any>> & {
2
+ WrappedComponent: import("react").ComponentType<any>;
3
+ };
4
+ export default _default;
27
5
  //# sourceMappingURL=TableLink.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableLink.d.ts","sourceRoot":"","sources":["../../../../src/dateLookup/tableLink/TableLink.js"],"names":[],"mappings":";AAGA;IA6Co1kB,wBAA8C;IAAA,sCAAgK;IA5ChilB,8BAKE;IAEF,sCAiBC;CACF"}
1
+ {"version":3,"file":"TableLink.d.ts","sourceRoot":"","sources":["../../../../src/dateLookup/tableLink/TableLink.js"],"names":[],"mappings":""}
@@ -1,30 +1,5 @@
1
- export default YearCalendar;
2
- declare class YearCalendar extends PureComponent<any, any, any> {
3
- constructor(props: any);
4
- constructor(props: any, context: any);
5
- onYearSelect: (year: any) => void;
6
- selectPreviousYears: () => void;
7
- selectNextYears: () => void;
8
- render(): import("react").JSX.Element;
9
- }
10
- declare namespace YearCalendar {
11
- namespace propTypes {
12
- const selectedDate: any;
13
- const min: any;
14
- const max: any;
15
- const viewYear: any;
16
- const placeholder: any;
17
- const onSelect: any;
18
- const onViewDateUpdate: any;
19
- }
20
- namespace defaultProps {
21
- const selectedDate_1: null;
22
- export { selectedDate_1 as selectedDate };
23
- const min_1: null;
24
- export { min_1 as min };
25
- const max_1: null;
26
- export { max_1 as max };
27
- }
28
- }
29
- import { PureComponent } from "react";
1
+ declare const _default: import("react").FC<import("react-intl").WithIntlProps<any>> & {
2
+ WrappedComponent: import("react").ComponentType<any>;
3
+ };
4
+ export default _default;
30
5
  //# sourceMappingURL=YearCalendar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"YearCalendar.d.ts","sourceRoot":"","sources":["../../../../src/dateLookup/yearCalendar/YearCalendar.js"],"names":[],"mappings":";AAOA;IA6C0ukB,wBAA8C;IAAA,sCAAgK;IA5Ct7kB,kCAGE;IAEF,gCAEE;IAEF,4BAEE;IAEF,sCAWC;CACF"}
1
+ {"version":3,"file":"YearCalendar.d.ts","sourceRoot":"","sources":["../../../../src/dateLookup/yearCalendar/YearCalendar.js"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneNumberInput.d.ts","sourceRoot":"","sources":["../../../src/phoneNumberInput/PhoneNumberInput.js"],"names":[],"mappings":";AAuBA,2EAwJC;;;;;;;;;;;;;;;;;;;;;;;;;;QAwBC,gCAAY;QACZ,+BAAW"}
1
+ {"version":3,"file":"PhoneNumberInput.d.ts","sourceRoot":"","sources":["../../../src/phoneNumberInput/PhoneNumberInput.js"],"names":[],"mappings":";AAuBA,2EAyJC;;;;;;;;;;;;;;;;;;;;;;;;;;QAwBC,gCAAY;QACZ,+BAAW"}
@@ -1 +1 @@
1
- {"version":3,"file":"Snackbar.d.ts","sourceRoot":"","sources":["../../../src/snackbar/Snackbar.js"],"names":[],"mappings":"AAUA,0CAA2C;AAE3C;IAIE,cAMC;IATD,yCAAyC;IACzC,SADW,UAAU,eAAe,CAAC,CACf;IAIpB;;;MAGC;IAGH,6BAGC;IAED,+DAaC;IAED,4BAME;IAHA,oCAEW;IAGb,6CAsBC;IAVO,8CAG2B;IASnC,sCA4BC;CACF"}
1
+ {"version":3,"file":"Snackbar.d.ts","sourceRoot":"","sources":["../../../src/snackbar/Snackbar.js"],"names":[],"mappings":"AAUA,0CAA2C;AAE3C;IAIE,cAMC;IATD,yCAAyC;IACzC,SADW,UAAU,eAAe,CAAC,CACf;IAIpB;;;MAGC;IAGH,6BAGC;IAED,+DAaC;IAED,4BAME;IAHA,oCAEW;IAGb,6CAsBC;IAVO,8CAG2B;IASnC,sCAiCC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/tabs/Tabs.js"],"names":[],"mappings":";AA6BA;IAIE,wBAcC;IAjBD,wCAAwC;IACxC,oBADW,UAAU,cAAc,CAAC,CACH;IAI/B;;;;;;;;;;;MAWC;IAGH,gBAAiB;IAEjB,uBAAmB;IAEnB,eAAa;IAEb,8BAEC;IAED,wBAEC;IAED,0BASC;IAED,iEAiCC;IAED,6BAIC;IAED,yBAME;IAEF,6CAGE;IAEF,uCAQE;IAEF,mCAIE;IAEF,2BAME;IAEF,yDAKE;IAEF,wBAeE;IAEF,8BAWE;IAMF,6DA4BE;IAEF,wDAAoF;IAEpF;;;;;yBAkBE;IAEF,gCAGE;IAEF,mDAEC;IAED,iDAIE;IAEF,kCAME;IAGF,sDAYE;IAEF,oCAME;IAEF,2CAEE;IAEF,gDAIE;IAEF,uCAYE;IAEF,sCAiDE;IAEF,qCAoCE;IAEF,sCAgKC;CACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED;;;;;;;EAAiD"}
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/tabs/Tabs.js"],"names":[],"mappings":";AA6BA;IAIE,wBAcC;IAjBD,wCAAwC;IACxC,oBADW,UAAU,cAAc,CAAC,CACH;IAI/B;;;;;;;;;;;MAWC;IAGH,gBAAiB;IAEjB,uBAAmB;IAEnB,eAAa;IAEb,8BAEC;IAED,wBAEC;IAED,0BASC;IAED,iEAiCC;IAED,6BAIC;IAED,yBAME;IAEF,6CAGE;IAEF,uCAQE;IAEF,mCAIE;IAEF,2BAME;IAEF,yDAKE;IAEF,wBAeE;IAEF,8BAWE;IAMF,6DA4BE;IAEF,wDAAoF;IAEpF;;;;;yBAkBE;IAEF,gCAGE;IAEF,mDAEC;IAED,iDAIE;IAEF,kCAME;IAGF,sDAYE;IAEF,oCAME;IAEF,2CAEE;IAEF,gDAIE;IAEF,uCAYE;IAEF,sCAiDE;IAEF,qCAoCE;IAEF,sCAiKC;CACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED;;;;;;;EAAiD"}
@@ -1 +1 @@
1
- {"version":3,"file":"completeStep.d.ts","sourceRoot":"","sources":["../../../../../src/upload/steps/completeStep/completeStep.js"],"names":[],"mappings":";AAYA,uEAiEC"}
1
+ {"version":3,"file":"completeStep.d.ts","sourceRoot":"","sources":["../../../../../src/upload/steps/completeStep/completeStep.js"],"names":[],"mappings":";AAYA,uEAoEC"}
@@ -1 +1 @@
1
- {"version":3,"file":"processingStep.d.ts","sourceRoot":"","sources":["../../../../../src/upload/steps/processingStep/processingStep.js"],"names":[],"mappings":";AASA,yEAiDC"}
1
+ {"version":3,"file":"processingStep.d.ts","sourceRoot":"","sources":["../../../../../src/upload/steps/processingStep/processingStep.js"],"names":[],"mappings":";AASA,yEAkDC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "45.15.0",
3
+ "version": "45.15.1",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -103,6 +103,7 @@
103
103
  "@headlessui/react": "^1.7.17",
104
104
  "@popperjs/core": "^2.6.0",
105
105
  "@radix-ui/react-id": "^1.0.0",
106
+ "@react-aria/focus": "^3.14.2",
106
107
  "@react-aria/overlays": "^3.17.0",
107
108
  "@react-spring/web": "~9.6.1",
108
109
  "@transferwise/formatting": "^2.1.0",
@@ -14,11 +14,11 @@ exports[`AccordionItem open / close renders an item closed 1`] = `
14
14
  <div
15
15
  class="media-body"
16
16
  >
17
- <span
18
- class="np-text-body-large-bold text-primary np-option__title d-block"
17
+ <h4
18
+ class="np-text-body-large-bold text-primary np-option__title"
19
19
  >
20
20
  This is title number one
21
- </span>
21
+ </h4>
22
22
  </div>
23
23
  <div
24
24
  class="media-right"
@@ -62,11 +62,11 @@ exports[`AccordionItem open / close renders an item open 1`] = `
62
62
  <div
63
63
  class="media-body"
64
64
  >
65
- <span
66
- class="np-text-body-large-bold text-primary np-option__title d-block"
65
+ <h4
66
+ class="np-text-body-large-bold text-primary np-option__title"
67
67
  >
68
68
  This is title number one
69
- </span>
69
+ </h4>
70
70
  </div>
71
71
  <div
72
72
  class="media-right"
@@ -6,11 +6,10 @@ import Badge, { BadgeProps } from '../badge';
6
6
  import { ProfileType, ProfileTypePersonal, ProfileTypeBusiness, Size, Sentiment } from '../common';
7
7
  import StatusIcon from '../statusIcon/StatusIcon';
8
8
 
9
- interface OptionalBadgeProps {
9
+ interface OptionalBadgeProps extends Omit<BadgeProps, 'badge'> {
10
10
  url?: string;
11
11
  altText?: string;
12
12
  statusIcon?: Sentiment;
13
- children: React.ReactNode;
14
13
  }
15
14
 
16
15
  const OptionalBadge = ({ url, altText, statusIcon, children, ...rest }: OptionalBadgeProps) => {
@@ -31,17 +30,30 @@ const OptionalBadge = ({ url, altText, statusIcon, children, ...rest }: Optional
31
30
  return <>{children}</>;
32
31
  };
33
32
 
34
- export interface AvatarWrapperProps {
33
+ export type AvatarWrapperProps = {
35
34
  url?: string;
36
35
  profileType?: ProfileTypeBusiness | ProfileTypePersonal;
37
36
  profileId?: string;
38
- badgeUrl?: string;
39
- badgeAltText?: string;
40
- badgeStatusIcon?: Sentiment;
41
37
  name?: string;
42
38
  avatarProps?: AvatarProps;
43
39
  badgeProps?: BadgeProps;
44
- }
40
+ } & (
41
+ | {
42
+ badgeUrl: string;
43
+ badgeAltText: string;
44
+ badgeStatusIcon?: never;
45
+ }
46
+ | {
47
+ badgeUrl?: never;
48
+ badgeAltText?: never;
49
+ badgeStatusIcon: Sentiment;
50
+ }
51
+ | {
52
+ badgeUrl?: never;
53
+ badgeAltText?: never;
54
+ badgeStatusIcon?: never;
55
+ }
56
+ );
45
57
 
46
58
  const AvatarWrapper = ({
47
59
  url,
@@ -64,7 +76,7 @@ const AvatarWrapper = ({
64
76
  if (url && !hasImageLoadError) {
65
77
  return {
66
78
  type: AvatarType.THUMBNAIL,
67
- children: <img src={url} alt="avatar" onError={() => setImageLoadError(true)} />,
79
+ children: <img src={url} alt="" onError={() => setImageLoadError(true)} />,
68
80
  ...avatarProps,
69
81
  };
70
82
  }
@@ -8,7 +8,7 @@ exports[`FlowNavigationAvatar with a name AND profileType FlowNavigationAvatar w
8
8
  class="tw-avatar__content"
9
9
  >
10
10
  <img
11
- alt="avatar"
11
+ alt=""
12
12
  src="https://wise.com"
13
13
  />
14
14
  </div>
@@ -56,12 +56,12 @@ describe('Card', () => {
56
56
  });
57
57
 
58
58
  describe('when there is no children prop', () => {
59
- it('redners Option title as a heading 4', () => {
59
+ it('renders Option title as a heading 4', () => {
60
60
  const onClick = jest.fn();
61
61
  renderCard(onClick);
62
62
 
63
63
  expect(screen.queryByRole('button')).not.toBeInTheDocument();
64
- expect(screen.getByText(defaultProps.title).tagName).toBe('SPAN');
64
+ expect(screen.getByText(defaultProps.title).tagName).toBe('H4');
65
65
  });
66
66
 
67
67
  it('has an inactive class', () => {
@@ -85,13 +85,7 @@ const Option = forwardRef<ReferenceType, OptionProps>(
85
85
  </div>
86
86
  )}
87
87
  <div className="media-body">
88
- <Body
89
- as="span"
90
- type={Typography.BODY_LARGE_BOLD}
91
- className="text-primary np-option__title d-block"
92
- >
93
- {title}
94
- </Body>
88
+ <h4 className="np-text-body-large-bold text-primary np-option__title">{title}</h4>
95
89
  {content && <Body className="d-block np-option__body">{content}</Body>}
96
90
  </div>
97
91
  <div className="media-right">{button}</div>
@@ -7,9 +7,12 @@ exports[`BottomSheet renders content when open 1`] = `
7
7
  class="np-theme-light"
8
8
  >
9
9
  <div
10
- class="np-focus-boundary outline-none"
11
10
  tabindex="-1"
12
11
  >
12
+ <span
13
+ data-focus-scope-start="true"
14
+ hidden=""
15
+ />
13
16
  <div
14
17
  class="dimmer"
15
18
  role="presentation"
@@ -63,6 +66,10 @@ exports[`BottomSheet renders content when open 1`] = `
63
66
  </div>
64
67
  </div>
65
68
  </div>
69
+ <span
70
+ data-focus-scope-end="true"
71
+ hidden=""
72
+ />
66
73
  </div>
67
74
  </div>
68
75
  </body>
@@ -1,44 +1,21 @@
1
- import { isKey, isUndefined } from '@transferwise/neptune-validation';
2
- import { ReactNode, useEffect, useRef, useState } from 'react';
3
-
4
- import { useConditionalListener } from '../hooks';
5
- import { Key } from '../key';
6
-
7
- import { getFocusableElements, resetFocus } from './utils';
8
-
9
- const { TAB } = Key;
1
+ import { FocusScope } from '@react-aria/focus';
2
+ import { useEffect, useRef } from 'react';
10
3
 
11
4
  type FocusBoundaryProps = {
12
- children: ReactNode;
5
+ children: React.ReactNode;
13
6
  };
14
7
 
15
8
  const FocusBoundary = ({ children }: FocusBoundaryProps) => {
16
- const boundaryReference = useRef<HTMLDivElement | null>(null);
17
- const parent = isUndefined(document) ? undefined : document;
18
- const [focusableEls, setFocusableEls] = useState({});
19
-
9
+ const wrapperReference = useRef<HTMLDivElement>(null);
20
10
  useEffect(() => {
21
- if (boundaryReference?.current) {
22
- boundaryReference.current.focus({ preventScroll: true });
23
- setFocusableEls(getFocusableElements(boundaryReference.current));
24
- }
11
+ wrapperReference.current?.focus({ preventScroll: true });
25
12
  }, []);
26
13
 
27
- // If event type is Tab the resetFocus will force the focus to either the first focusable or last in boundaryRef .
28
- useConditionalListener({
29
- eventType: 'keydown',
30
- callback: (event) => {
31
- if (isKey({ keyType: TAB, event })) {
32
- resetFocus({ event, focusableEls });
33
- }
34
- },
35
- attachListener: true,
36
- parent,
37
- });
38
-
39
14
  return (
40
- <div ref={boundaryReference} tabIndex={-1} className="np-focus-boundary outline-none">
41
- {children}
15
+ <div ref={wrapperReference} tabIndex={-1}>
16
+ <FocusScope contain restoreFocus>
17
+ {children}
18
+ </FocusScope>
42
19
  </div>
43
20
  );
44
21
  };
@@ -18,8 +18,10 @@ const DateInput = ({
18
18
  size,
19
19
  value,
20
20
  dayLabel,
21
+ dayAutoComplete,
21
22
  monthLabel,
22
23
  yearLabel,
24
+ yearAutoComplete,
23
25
  monthFormat,
24
26
  mode,
25
27
  onChange,
@@ -239,6 +241,7 @@ const DateInput = ({
239
241
  <Input
240
242
  type="number"
241
243
  name="day"
244
+ autoComplete={dayAutoComplete}
242
245
  value={day || ''}
243
246
  placeholder={placeholders.day}
244
247
  disabled={disabled}
@@ -259,6 +262,7 @@ const DateInput = ({
259
262
  <Input
260
263
  type="number"
261
264
  name="year"
265
+ autoComplete={yearAutoComplete}
262
266
  placeholder={placeholders.year}
263
267
  value={year || ''}
264
268
  disabled={disabled}
@@ -303,8 +307,10 @@ DateInput.propTypes = {
303
307
  onFocus: PropTypes.func,
304
308
  onBlur: PropTypes.func,
305
309
  dayLabel: PropTypes.string,
310
+ dayAutoComplete: PropTypes.string,
306
311
  monthLabel: PropTypes.string,
307
312
  yearLabel: PropTypes.string,
313
+ yearAutoComplete: PropTypes.string,
308
314
  monthFormat: PropTypes.oneOf(['long', 'short']),
309
315
  mode: PropTypes.oneOf(['day-month-year', 'month-year']),
310
316
  placeholders: PropTypes.shape({
@@ -8,8 +8,10 @@ export default {
8
8
  title: 'Forms/DateInput',
9
9
  args: {
10
10
  dayLabel: 'Day input',
11
+ dayAutoComplete: 'bday-day',
11
12
  monthLabel: 'Month select',
12
13
  yearLabel: 'Year input',
14
+ yearAutoComplete: 'bday-year',
13
15
  selectProps: {
14
16
  buttonProps: {
15
17
  'aria-label': 'Select month',
@@ -1 +1 @@
1
- .tw-date-lookup-menu{width:400px}.tw-date-lookup-calendar{min-width:300px;table-layout:fixed;text-align:center}.tw-date-lookup-calendar>tbody>tr>td{padding:4px;padding:var(--size-4)}.tw-date-lookup-calendar>tbody>tr>td button{background-color:transparent;border:transparent;border-radius:10px;border-radius:var(--radius-small);color:#0097c7;color:var(--color-content-accent);font-weight:600;font-weight:var(--font-weight-semi-bold);padding:4px 0;padding:var(--size-4) 0;width:100%}.tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled).active{background-color:#0081ba;background-color:var(--color-interactive-accent-active);color:#fff}.tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled):hover{background-color:#008fc9;background-color:var(--color-interactive-accent-hover);color:#fff}.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td button{color:#37517e;color:var(--color-content-primary)}.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled).active,.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled):hover{color:var(--color-interactive-control)}.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td:nth-child(7n+6) button,.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td:nth-child(7n+7) button,.np-theme-personal .tw-date-lookup-calendar>thead>tr>th:nth-child(7n+6),.np-theme-personal .tw-date-lookup-calendar>thead>tr>th:nth-child(7n+7){color:#5d7079;color:var(--color-content-secondary);font-weight:400;font-weight:var(--font-weight-regular)}.np-theme-personal .tw-date-lookup-calendar{background-color:inherit}.tw-date-lookup-header-current{font-weight:800;font-weight:var(--font-weight-bold)}.np-theme-personal .tw-date-lookup-menu .table-bordered,.np-theme-personal.tw-date-lookup-menu .table-bordered{border:none}.np-theme-personal .tw-date-lookup-menu thead,.np-theme-personal.tw-date-lookup-menu thead{background-color:unset}.np-theme-personal .tw-date-lookup-menu td,.np-theme-personal.tw-date-lookup-menu td{border:none}.np-theme-personal .tw-date-lookup-menu .tw-date-lookup-header-current,.np-theme-personal.tw-date-lookup-menu .tw-date-lookup-header-current{color:#37517e;color:var(--color-content-primary)}.np-theme-personal .tw-date-lookup-menu .tw-date-lookup-day-option,.np-theme-personal.tw-date-lookup-menu .tw-date-lookup-day-option{align-items:center;color:#37517e;color:var(--color-content-primary);display:inline-flex;height:32px;height:var(--size-32);justify-content:center;line-height:32px;line-height:var(--size-32)}.np-theme-personal .tw-date-lookup-menu .tw-date-lookup-day-option.active,.np-theme-personal.tw-date-lookup-menu .tw-date-lookup-day-option.active{background-color:#00a2dd;background-color:var(--color-interactive-accent);color:var(--color-interactive-primary)}
1
+ .tw-date-lookup-menu{width:400px}.tw-date-lookup-calendar{min-width:300px;table-layout:fixed;text-align:center}.tw-date-lookup-calendar>tbody>tr>td{padding:4px;padding:var(--size-4)}.tw-date-lookup-calendar>tbody>tr>td button{background-color:transparent;border:transparent;border-radius:10px;border-radius:var(--radius-small);color:#0097c7;color:var(--color-content-accent);font-weight:600;font-weight:var(--font-weight-semi-bold);padding:4px 0;padding:var(--size-4) 0;width:100%}.tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled).active{background-color:#0081ba;background-color:var(--color-interactive-accent-active);color:#fff}.tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled):hover{background-color:#008fc9;background-color:var(--color-interactive-accent-hover);color:#fff}.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td button{color:#37517e;color:var(--color-content-primary)}.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled).active,.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td button:not(.disabled,:disabled):hover{color:var(--color-interactive-control)}.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td:nth-child(7n+6) button,.np-theme-personal .tw-date-lookup-calendar>tbody>tr>td:nth-child(7n+7) button,.np-theme-personal .tw-date-lookup-calendar>thead>tr>th:nth-child(7n+6),.np-theme-personal .tw-date-lookup-calendar>thead>tr>th:nth-child(7n+7){color:#5d7079;color:var(--color-content-secondary);font-weight:400;font-weight:var(--font-weight-regular)}.tw-date-lookup-calendar abbr{text-decoration:none}.np-theme-personal .tw-date-lookup-calendar{background-color:inherit}.tw-date-lookup-header-current{font-weight:800;font-weight:var(--font-weight-bold)}.np-theme-personal .tw-date-lookup-menu .table-bordered,.np-theme-personal.tw-date-lookup-menu .table-bordered{border:none}.np-theme-personal .tw-date-lookup-menu thead,.np-theme-personal.tw-date-lookup-menu thead{background-color:unset}.np-theme-personal .tw-date-lookup-menu td,.np-theme-personal.tw-date-lookup-menu td{border:none}.np-theme-personal .tw-date-lookup-menu .tw-date-lookup-header-current,.np-theme-personal.tw-date-lookup-menu .tw-date-lookup-header-current{color:#37517e;color:var(--color-content-primary)}.np-theme-personal .tw-date-lookup-menu .tw-date-lookup-day-option,.np-theme-personal.tw-date-lookup-menu .tw-date-lookup-day-option{align-items:center;color:#37517e;color:var(--color-content-primary);display:inline-flex;height:32px;height:var(--size-32);justify-content:center;line-height:32px;line-height:var(--size-32)}.np-theme-personal .tw-date-lookup-menu .tw-date-lookup-day-option.active,.np-theme-personal.tw-date-lookup-menu .tw-date-lookup-day-option.active{background-color:#00a2dd;background-color:var(--color-interactive-accent);color:var(--color-interactive-primary)}
@@ -7,13 +7,13 @@ import KEY_CODES from '../common/keyCodes';
7
7
  import DateLookup from '.';
8
8
 
9
9
  const defaultLocale = 'en-GB';
10
-
10
+ const formatMessage = (id) => `${id}`;
11
11
  jest.mock('react-intl', () => ({
12
12
  injectIntl: (Component) =>
13
13
  function (props) {
14
- return <Component {...props} intl={{ locale: defaultLocale }} />;
14
+ return <Component {...props} intl={{ locale: defaultLocale, formatMessage }} />;
15
15
  },
16
- useIntl: () => ({ locale: defaultLocale }),
16
+ useIntl: () => ({ locale: defaultLocale, formatMessage }),
17
17
  defineMessages: (translations) => translations,
18
18
  }));
19
19
 
@@ -54,6 +54,10 @@
54
54
  }
55
55
  }
56
56
 
57
+ abbr {
58
+ text-decoration: none;
59
+ }
60
+
57
61
  .np-theme-personal & {
58
62
  background-color: inherit;
59
63
  }
@@ -0,0 +1,44 @@
1
+ import { defineMessages } from 'react-intl';
2
+
3
+ export default defineMessages({
4
+ next: {
5
+ id: 'neptune.DateLookup.next',
6
+ defaultMessage: 'next',
7
+ description: 'Description of next button',
8
+ },
9
+ previous: {
10
+ id: 'neptune.DateLookup.previous',
11
+ defaultMessage: 'previous',
12
+ description: 'Description of previous button',
13
+ },
14
+ day: {
15
+ id: 'neptune.DateLookup.day',
16
+ defaultMessage: 'day',
17
+ description: 'Description of next/previous/selected day button',
18
+ },
19
+ month: {
20
+ id: 'neptune.DateLookup.month',
21
+ defaultMessage: 'month',
22
+ description: 'Description of next/previous/selected month button',
23
+ },
24
+ year: {
25
+ id: 'neptune.DateLookup.year',
26
+ defaultMessage: 'year',
27
+ description: 'Description of next/previous/selected year button',
28
+ },
29
+ twentyYears: {
30
+ id: 'neptune.DateLookup.twentyYears',
31
+ defaultMessage: '20 years',
32
+ description: 'Description of next/previous 20 years button',
33
+ },
34
+ selected: {
35
+ id: 'neptune.DateLookup.selected',
36
+ defaultMessage: 'selected',
37
+ description: 'Description of the selected day/month/year',
38
+ },
39
+ goTo20YearView: {
40
+ id: 'neptune.DateLookup.goTo20YearView',
41
+ defaultMessage: 'Go to 20 year view',
42
+ description: 'Description of the button to go to 20 year view',
43
+ },
44
+ });