@transferwise/components 46.22.1 → 46.23.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.
Files changed (64) hide show
  1. package/build/i18n/zh-HK.json +2 -2
  2. package/build/index.esm.js +5 -6
  3. package/build/index.esm.js.map +1 -1
  4. package/build/index.js +5 -6
  5. package/build/index.js.map +1 -1
  6. package/build/types/actionOption/ActionOption.d.ts +3 -3
  7. package/build/types/actionOption/ActionOption.d.ts.map +1 -1
  8. package/build/types/actionOption/index.d.ts +1 -0
  9. package/build/types/actionOption/index.d.ts.map +1 -1
  10. package/build/types/badge/Badge.d.ts +2 -2
  11. package/build/types/badge/Badge.d.ts.map +1 -1
  12. package/build/types/index.d.ts +8 -0
  13. package/build/types/index.d.ts.map +1 -1
  14. package/build/types/progress/Progress.d.ts +1 -1
  15. package/build/types/progress/Progress.d.ts.map +1 -1
  16. package/build/types/progress/index.d.ts +1 -0
  17. package/build/types/progress/index.d.ts.map +1 -1
  18. package/build/types/progressBar/index.d.ts +1 -0
  19. package/build/types/progressBar/index.d.ts.map +1 -1
  20. package/build/types/statusIcon/StatusIcon.d.ts +3 -3
  21. package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
  22. package/build/types/statusIcon/index.d.ts +2 -1
  23. package/build/types/statusIcon/index.d.ts.map +1 -1
  24. package/build/types/switch/Switch.d.ts +3 -3
  25. package/build/types/switch/Switch.d.ts.map +1 -1
  26. package/build/types/switch/index.d.ts +1 -0
  27. package/build/types/switch/index.d.ts.map +1 -1
  28. package/build/types/switchOption/SwitchOption.d.ts +3 -3
  29. package/build/types/switchOption/SwitchOption.d.ts.map +1 -1
  30. package/build/types/switchOption/index.d.ts +1 -0
  31. package/build/types/switchOption/index.d.ts.map +1 -1
  32. package/build/types/tooltip/Tooltip.d.ts +3 -3
  33. package/build/types/tooltip/Tooltip.d.ts.map +1 -1
  34. package/build/types/tooltip/index.d.ts +2 -2
  35. package/build/types/tooltip/index.d.ts.map +1 -1
  36. package/package.json +3 -3
  37. package/src/actionOption/{ActionOption.spec.js → ActionOption.spec.tsx} +2 -2
  38. package/src/actionOption/ActionOption.tsx +3 -3
  39. package/src/actionOption/index.ts +1 -0
  40. package/src/badge/{Badge.story.js → Badge.story.tsx} +1 -1
  41. package/src/badge/Badge.tsx +2 -2
  42. package/src/i18n/zh-HK.json +2 -2
  43. package/src/index.ts +8 -0
  44. package/src/progress/{Progress.spec.js → Progress.spec.tsx} +4 -3
  45. package/src/progress/Progress.tsx +1 -1
  46. package/src/progress/index.ts +1 -0
  47. package/src/progressBar/index.ts +1 -0
  48. package/src/statusIcon/StatusIcon.spec.tsx +80 -0
  49. package/src/statusIcon/StatusIcon.tsx +3 -4
  50. package/src/statusIcon/index.ts +2 -0
  51. package/src/switch/Switch.tsx +3 -3
  52. package/src/switch/index.ts +1 -0
  53. package/src/switchOption/{SwitchOption.spec.js → SwitchOption.spec.tsx} +8 -3
  54. package/src/switchOption/SwitchOption.tsx +3 -3
  55. package/src/switchOption/index.ts +1 -0
  56. package/src/tooltip/Tooltip.tsx +2 -2
  57. package/src/tooltip/index.ts +2 -0
  58. package/src/statusIcon/StatusIcon.spec.js +0 -70
  59. package/src/statusIcon/index.js +0 -1
  60. package/src/tooltip/index.js +0 -3
  61. /package/src/badge/{Badge.spec.js → Badge.spec.tsx} +0 -0
  62. /package/src/progressBar/{ProgressBar.spec.js → ProgressBar.spec.tsx} +0 -0
  63. /package/src/switch/{Switch.spec.js → Switch.spec.tsx} +0 -0
  64. /package/src/switch/__snapshots__/{Switch.spec.js.snap → Switch.spec.tsx.snap} +0 -0
@@ -1,6 +1,6 @@
1
- import { ReactChild, ReactElement } from 'react';
1
+ import { ReactChild } from 'react';
2
2
  import { CommonProps, PriorityPrimary, PrioritySecondary } from '../common';
3
- type Props = {
3
+ export type ActionOptionProps = {
4
4
  complex?: boolean;
5
5
  content?: ReactChild;
6
6
  disabled?: boolean;
@@ -13,6 +13,6 @@ type Props = {
13
13
  showMediaCircle?: boolean;
14
14
  isContainerAligned?: boolean;
15
15
  } & CommonProps;
16
- declare const ActionOption: ({ action, priority, disabled, onClick, media, title, content, complex, className, showMediaAtAllSizes, showMediaCircle, isContainerAligned, }: Props) => ReactElement;
16
+ declare const ActionOption: ({ action, priority, disabled, onClick, media, title, content, complex, className, showMediaAtAllSizes, showMediaCircle, isContainerAligned, }: ActionOptionProps) => import("react").JSX.Element;
17
17
  export default ActionOption;
18
18
  //# sourceMappingURL=ActionOption.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionOption.d.ts","sourceRoot":"","sources":["../../../src/actionOption/ActionOption.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,WAAW,EAAY,eAAe,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAGtF,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,eAAe,GAAG,iBAAiB,CAAC;IAC/C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,GAAG,WAAW,CAAC;AAEhB,QAAA,MAAM,YAAY,kJAaf,KAAK,KAAG,YA0CV,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ActionOption.d.ts","sourceRoot":"","sources":["../../../src/actionOption/ActionOption.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAY,eAAe,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAGtF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,eAAe,GAAG,iBAAiB,CAAC;IAC/C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,GAAG,WAAW,CAAC;AAEhB,QAAA,MAAM,YAAY,kJAaf,iBAAiB,gCA0CnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { default } from './ActionOption';
2
+ export type { ActionOptionProps } from './ActionOption';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actionOption/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actionOption/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ReactElement, ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { SizeSmall, SizeMedium, SizeLarge, ThemeDark, ThemeLight, CommonProps } from '../common';
3
3
  export type BadgeProps = {
4
4
  badge: ReactNode;
@@ -6,6 +6,6 @@ export type BadgeProps = {
6
6
  size?: SizeSmall | SizeMedium | SizeLarge;
7
7
  border?: ThemeDark | ThemeLight;
8
8
  } & CommonProps;
9
- declare const Badge: ({ badge, className, size, border, children, }: BadgeProps) => ReactElement;
9
+ declare const Badge: ({ badge, className, size, border, children, }: BadgeProps) => import("react").JSX.Element;
10
10
  export default Badge;
11
11
  //# sourceMappingURL=Badge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEhD,OAAO,EAGL,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACZ,MAAM,WAAW,CAAC;AAEnB,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC1C,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;CACjC,GAAG,WAAW,CAAC;AAEhB,QAAA,MAAM,KAAK,kDAMR,UAAU,KAAG,YAgBf,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAGL,SAAS,EACT,UAAU,EACV,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACZ,MAAM,WAAW,CAAC;AAEnB,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC1C,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;CACjC,GAAG,WAAW,CAAC;AAEhB,QAAA,MAAM,KAAK,kDAMR,UAAU,gCAgBZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -2,6 +2,8 @@
2
2
  * Types
3
3
  */
4
4
  export type { AccordionProps, AccordionItem } from './accordion';
5
+ export type { ActionOptionProps } from './actionOption';
6
+ export type { BadgeProps } from './badge';
5
7
  export type { CircularButtonProps } from './circularButton';
6
8
  export type { DecisionProps } from './decision/Decision';
7
9
  export type { InfoProps } from './info';
@@ -15,13 +17,19 @@ export type { SelectInputGroupItem, SelectInputItem, SelectInputOptionContentPro
15
17
  export type { TextAreaProps } from './inputs/TextArea';
16
18
  export type { PhoneNumberInputProps } from './phoneNumberInput/PhoneNumberInput';
17
19
  export type { PopoverProps } from './popover';
20
+ export type { ProgressProps } from './progress';
21
+ export type { ProgressBarProps } from './progressBar';
18
22
  export type { RadioProps } from './radio';
19
23
  export type { RadioGroupProps, RadioGroupRadio } from './radioGroup';
20
24
  export type { RadioOptionProps } from './radioOption';
21
25
  export type { SnackbarProps } from './snackbar/Snackbar';
22
26
  export type { SnackbarContextType } from './snackbar/SnackbarContext';
27
+ export type { StatusIconProps } from './statusIcon';
23
28
  export type { StickyProps } from './sticky';
29
+ export type { SwitchProps } from './switch';
30
+ export type { SwitchOptionProps } from './switchOption';
24
31
  export type { TextareaWithDisplayFormatProps } from './textareaWithDisplayFormat';
32
+ export type { TooltipProps } from './tooltip';
25
33
  export type { UploadedFile, UploadError, UploadResponse } from './uploadInput/types';
26
34
  export type { MarkdownProps } from './markdown';
27
35
  export type { ModalProps } from './modal';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,aAAa,EAAE,MA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,UAAU,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC;;GAEG;AACH,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,aAAa,EACb,mBAAmB,GACpB,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,QAAQ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- type ProgressProps = {
2
+ export type ProgressProps = {
3
3
  className?: string;
4
4
  id: string;
5
5
  progress: {
@@ -1 +1 @@
1
- {"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../src/progress/Progress.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAC;AAE1D,KAAK,aAAa,GAAG;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1C,CAAC;AAEF,QAAA,MAAM,QAAQ,gCAAiC,aAAa,KAAG,YAAY,GAAG,IAiB7E,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../src/progress/Progress.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAC;AAE1D,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1C,CAAC;AAEF,QAAA,MAAM,QAAQ,gCAAiC,aAAa,KAAG,YAAY,GAAG,IAiB7E,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { default } from './Progress';
2
+ export type { ProgressProps } from './Progress';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { default } from './ProgressBar';
2
+ export type { ProgressBarProps } from './ProgressBar';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/progressBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/progressBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
@@ -1,9 +1,9 @@
1
- import { ReactElement } from 'react';
1
+ /// <reference types="react" />
2
2
  import { SizeSmall, SizeMedium, SizeLarge, Sentiment } from '../common';
3
- type Props = {
3
+ export type StatusIconProps = {
4
4
  sentiment: Sentiment;
5
5
  size: SizeSmall | SizeMedium | SizeLarge;
6
6
  };
7
- declare const StatusIcon: ({ sentiment, size }: Props) => ReactElement;
7
+ declare const StatusIcon: ({ sentiment, size }: StatusIconProps) => import("react").JSX.Element;
8
8
  export default StatusIcon;
9
9
  //# sourceMappingURL=StatusIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../src/statusIcon/StatusIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAExE,KAAK,KAAK,GAAG;IACX,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,QAAA,MAAM,UAAU,wBAA6C,KAAK,KAAG,YAuBpE,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"StatusIcon.d.ts","sourceRoot":"","sources":["../../../src/statusIcon/StatusIcon.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAQ,MAAM,WAAW,CAAC;AAE9E,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,QAAA,MAAM,UAAU,wBAA2D,eAAe,gCAuBzF,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,2 +1,3 @@
1
- export { default } from "./StatusIcon";
1
+ export { default } from './StatusIcon';
2
+ export type { StatusIconProps } from './StatusIcon';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/statusIcon/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/statusIcon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -1,6 +1,6 @@
1
- import { MouseEvent, ReactElement } from 'react';
1
+ import { MouseEvent } from 'react';
2
2
  import { CommonProps } from '../common';
3
- type Props = CommonProps & {
3
+ export type SwitchProps = CommonProps & {
4
4
  /** Used to describe the purpose of the switch. To be used if there is no external label (i.e. aria-labelledby is null) */
5
5
  'aria-label'?: string;
6
6
  /** A reference to a label that describes the purpose of the switch. Ignored if aria-label is provided */
@@ -13,6 +13,6 @@ type Props = CommonProps & {
13
13
  /** Function called when the switch is toggled */
14
14
  onClick: (event?: MouseEvent<HTMLSpanElement>) => void;
15
15
  };
16
- declare const Switch: (props: Props) => ReactElement;
16
+ declare const Switch: (props: SwitchProps) => import("react").JSX.Element;
17
17
  export default Switch;
18
18
  //# sourceMappingURL=Switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/switch/Switch.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAwB,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,KAAK,KAAK,GAAG,WAAW,GAAG;IACzB,0HAA0H;IAC1H,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yGAAyG;IACzG,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;CACxD,CAAC;AAEF,QAAA,MAAM,MAAM,UAAW,KAAK,KAAG,YAgE9B,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/switch/Switch.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAwB,UAAU,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IACtC,0HAA0H;IAC1H,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yGAAyG;IACzG,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0CAA0C;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;CACxD,CAAC;AAEF,QAAA,MAAM,MAAM,UAAW,WAAW,gCAgEjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { default } from './Switch';
2
+ export type { SwitchProps } from './Switch';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ReactChild, ReactElement } from 'react';
2
- type Props = {
1
+ import { ReactChild } from 'react';
2
+ export type SwitchOptionProps = {
3
3
  checked?: boolean;
4
4
  complex?: boolean;
5
5
  content?: ReactChild;
@@ -13,6 +13,6 @@ type Props = {
13
13
  title: ReactChild;
14
14
  'aria-label': string;
15
15
  };
16
- declare const SwitchOption: ({ checked, complex, content, disabled, id, media, onChange, title, showMediaCircle, showMediaAtAllSizes, isContainerAligned, "aria-label": ariaLabel, }: Props) => ReactElement;
16
+ declare const SwitchOption: ({ checked, complex, content, disabled, id, media, onChange, title, showMediaCircle, showMediaAtAllSizes, isContainerAligned, "aria-label": ariaLabel, }: SwitchOptionProps) => import("react").JSX.Element;
17
17
  export default SwitchOption;
18
18
  //# sourceMappingURL=SwitchOption.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchOption.d.ts","sourceRoot":"","sources":["../../../src/switchOption/SwitchOption.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK7D,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,UAAU,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAYF,QAAA,MAAM,YAAY,4JAaf,KAAK,KAAG,YAmCV,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"SwitchOption.d.ts","sourceRoot":"","sources":["../../../src/switchOption/SwitchOption.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,UAAU,EAAE,MAAM,OAAO,CAAC;AAK/C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,EAAE,UAAU,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAYF,QAAA,MAAM,YAAY,4JAaf,iBAAiB,gCAmCnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { default } from './SwitchOption';
2
+ export type { SwitchOptionProps } from './SwitchOption';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/switchOption/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/switchOption/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,11 +1,11 @@
1
- import { ReactNode, ReactElement, PropsWithChildren } from 'react';
1
+ import { ReactNode, PropsWithChildren } from 'react';
2
2
  import { CommonProps } from '../common';
3
3
  import { PositionBottom, PositionLeft, PositionRight, PositionTop } from '../common/propsValues/position';
4
- type Props = PropsWithChildren<{
4
+ export type TooltipProps = PropsWithChildren<{
5
5
  position?: PositionTop | PositionRight | PositionBottom | PositionLeft;
6
6
  label: ReactNode;
7
7
  id?: string;
8
8
  }> & CommonProps;
9
- declare const Tooltip: ({ position, children, label, id, className, }: Props) => ReactElement;
9
+ declare const Tooltip: ({ position, children, label, id, className, }: TooltipProps) => import("react").JSX.Element;
10
10
  export default Tooltip;
11
11
  //# sourceMappingURL=Tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/tooltip/Tooltip.tsx"],"names":[],"mappings":"AAGA,OAAO,EAKL,SAAS,EACT,YAAY,EACZ,iBAAiB,EAClB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,WAAW,EAAY,MAAM,WAAW,CAAC;AAClD,OAAO,EACL,cAAc,EACd,YAAY,EACZ,aAAa,EACb,WAAW,EACZ,MAAM,gCAAgC,CAAC;AAExC,KAAK,KAAK,GAAG,iBAAiB,CAAC;IAC7B,QAAQ,CAAC,EAAE,WAAW,GAAG,aAAa,GAAG,cAAc,GAAG,YAAY,CAAC;IACvE,KAAK,EAAE,SAAS,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC,GACA,WAAW,CAAC;AAEd,QAAA,MAAM,OAAO,kDAMV,KAAK,KAAG,YAsFV,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/tooltip/Tooltip.tsx"],"names":[],"mappings":"AAGA,OAAO,EAKL,SAAS,EAET,iBAAiB,EAClB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,WAAW,EAAY,MAAM,WAAW,CAAC;AAClD,OAAO,EACL,cAAc,EACd,YAAY,EACZ,aAAa,EACb,WAAW,EACZ,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC;IAC3C,QAAQ,CAAC,EAAE,WAAW,GAAG,aAAa,GAAG,cAAc,GAAG,YAAY,CAAC;IACvE,KAAK,EAAE,SAAS,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC,GACA,WAAW,CAAC;AAEd,QAAA,MAAM,OAAO,kDAMV,YAAY,gCAsFd,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,3 +1,3 @@
1
- export default Tooltip;
2
- import Tooltip from "./Tooltip";
1
+ export { default } from './Tooltip';
2
+ export type { TooltipProps } from './Tooltip';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tooltip/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "46.22.1",
3
+ "version": "46.23.0",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -77,9 +77,9 @@
77
77
  "react-intl": "^5.10.0",
78
78
  "rollup": "^3.28.1",
79
79
  "storybook": "^7.6.17",
80
+ "@transferwise/less-config": "3.1.0",
80
81
  "@transferwise/neptune-css": "14.9.6",
81
- "@wise/components-theming": "1.0.0",
82
- "@transferwise/less-config": "3.1.0"
82
+ "@wise/components-theming": "1.0.0"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "@transferwise/icons": "^3.7.0",
@@ -65,11 +65,11 @@ describe('ActionOption', () => {
65
65
 
66
66
  expect(mockOnClick).toHaveBeenCalledTimes(0);
67
67
 
68
- fireEvent.click(screen.queryByText('title'));
68
+ fireEvent.click(screen.getByText('title'));
69
69
 
70
70
  expect(mockOnClick).toHaveBeenCalledTimes(1);
71
71
 
72
- fireEvent.click(screen.queryByText('content'));
72
+ fireEvent.click(screen.getByText('content'));
73
73
 
74
74
  expect(mockOnClick).toHaveBeenCalledTimes(2);
75
75
 
@@ -1,11 +1,11 @@
1
1
  import classNames from 'classnames';
2
- import { ReactChild, ReactElement } from 'react';
2
+ import { ReactChild } from 'react';
3
3
 
4
4
  import ActionButton from '../actionButton';
5
5
  import { CommonProps, Priority, PriorityPrimary, PrioritySecondary } from '../common';
6
6
  import Option from '../common/Option';
7
7
 
8
- type Props = {
8
+ export type ActionOptionProps = {
9
9
  complex?: boolean;
10
10
  content?: ReactChild;
11
11
  disabled?: boolean;
@@ -32,7 +32,7 @@ const ActionOption = ({
32
32
  showMediaAtAllSizes,
33
33
  showMediaCircle,
34
34
  isContainerAligned,
35
- }: Props): ReactElement => {
35
+ }: ActionOptionProps) => {
36
36
  const sharedProps = {
37
37
  media,
38
38
  title,
@@ -1 +1,2 @@
1
1
  export { default } from './ActionOption';
2
+ export type { ActionOptionProps } from './ActionOption';
@@ -24,7 +24,7 @@ export const ExampleBadgeCss = {
24
24
 
25
25
  export const Avatar = () => {
26
26
  const BadgeText = text('BadgeText', 'B');
27
- const border = select('Border', [null, Theme.LIGHT, Theme.DARK]);
27
+ const border = select('Border', [undefined, Theme.LIGHT, Theme.DARK], Theme.LIGHT);
28
28
 
29
29
  return (
30
30
  <div>
@@ -1,5 +1,5 @@
1
1
  import classNames from 'classnames';
2
- import { ReactElement, ReactNode } from 'react';
2
+ import { ReactNode } from 'react';
3
3
 
4
4
  import {
5
5
  Size,
@@ -25,7 +25,7 @@ const Badge = ({
25
25
  size = Size.SMALL,
26
26
  border = Theme.LIGHT,
27
27
  children,
28
- }: BadgeProps): ReactElement => {
28
+ }: BadgeProps) => {
29
29
  const classes: string = classNames(
30
30
  'tw-badge',
31
31
  {
@@ -29,13 +29,13 @@
29
29
  "neptune.Upload.csButtonText": "上載另一個檔案?",
30
30
  "neptune.Upload.csFailureText": "上載失敗,請重試。",
31
31
  "neptune.Upload.csSuccessText": "上載完成!",
32
- "neptune.Upload.csTooLargeMessage": "請提供小於{maxSize}MB的檔案",
32
+ "neptune.Upload.csTooLargeMessage": "請提供一個小於{maxSize}MB的檔案",
33
33
  "neptune.Upload.csWrongTypeMessage": "不支持檔案類型,請使用其他檔案重試",
34
34
  "neptune.Upload.psButtonText": "取消",
35
35
  "neptune.Upload.psProcessingText": "上載中...",
36
36
  "neptune.Upload.usButtonText": "或者選擇一個檔案",
37
37
  "neptune.Upload.usDropMessage": "拖放檔案以開始上載",
38
- "neptune.Upload.usPlaceholder": "拖放不超過{maxSize}MB的檔案",
38
+ "neptune.Upload.usPlaceholder": "拖放一個不超過{maxSize}MB的檔案",
39
39
  "neptune.UploadButton.allFileTypes": "所有檔案類型",
40
40
  "neptune.UploadButton.dropFiles": "拖放檔案以開始上載",
41
41
  "neptune.UploadButton.instructions": "{fileTypes},小於{size}MB",
package/src/index.ts CHANGED
@@ -2,6 +2,8 @@
2
2
  * Types
3
3
  */
4
4
  export type { AccordionProps, AccordionItem } from './accordion';
5
+ export type { ActionOptionProps } from './actionOption';
6
+ export type { BadgeProps } from './badge';
5
7
  export type { CircularButtonProps } from './circularButton';
6
8
  export type { DecisionProps } from './decision/Decision';
7
9
  export type { InfoProps } from './info';
@@ -23,13 +25,19 @@ export type {
23
25
  export type { TextAreaProps } from './inputs/TextArea';
24
26
  export type { PhoneNumberInputProps } from './phoneNumberInput/PhoneNumberInput';
25
27
  export type { PopoverProps } from './popover';
28
+ export type { ProgressProps } from './progress';
29
+ export type { ProgressBarProps } from './progressBar';
26
30
  export type { RadioProps } from './radio';
27
31
  export type { RadioGroupProps, RadioGroupRadio } from './radioGroup';
28
32
  export type { RadioOptionProps } from './radioOption';
29
33
  export type { SnackbarProps } from './snackbar/Snackbar';
30
34
  export type { SnackbarContextType } from './snackbar/SnackbarContext';
35
+ export type { StatusIconProps } from './statusIcon';
31
36
  export type { StickyProps } from './sticky';
37
+ export type { SwitchProps } from './switch';
38
+ export type { SwitchOptionProps } from './switchOption';
32
39
  export type { TextareaWithDisplayFormatProps } from './textareaWithDisplayFormat';
40
+ export type { TooltipProps } from './tooltip';
33
41
  export type { UploadedFile, UploadError, UploadResponse } from './uploadInput/types';
34
42
  export type { MarkdownProps } from './markdown';
35
43
  export type { ModalProps } from './modal';
@@ -1,10 +1,11 @@
1
1
  import '@testing-library/jest-dom';
2
- import { render, screen } from '../test-utils';
2
+ import { render } from '../test-utils';
3
3
 
4
- import Progress from './Progress';
4
+ import Progress from '.';
5
5
 
6
6
  describe('Progress', () => {
7
7
  const props = {
8
+ id: 'test-id',
8
9
  progress: { value: 50, max: 100 },
9
10
  };
10
11
  describe('by default', () => {
@@ -15,7 +16,7 @@ describe('Progress', () => {
15
16
  it('renders the progress', () => {
16
17
  const progress = document.querySelector('progress');
17
18
  expect(progress).toBeInTheDocument();
18
- expect(progress).toHaveValue(progress.value);
19
+ expect(progress).toHaveValue(progress?.value);
19
20
  });
20
21
  });
21
22
  });
@@ -1,7 +1,7 @@
1
1
  import classnames from 'classnames';
2
2
  import { ReactElement, useEffect, useState } from 'react';
3
3
 
4
- type ProgressProps = {
4
+ export type ProgressProps = {
5
5
  className?: string;
6
6
  id: string;
7
7
  progress: { value: number; max: number };
@@ -1 +1,2 @@
1
1
  export { default } from './Progress';
2
+ export type { ProgressProps } from './Progress';
@@ -1 +1,2 @@
1
1
  export { default } from './ProgressBar';
2
+ export type { ProgressBarProps } from './ProgressBar';
@@ -0,0 +1,80 @@
1
+ import { Sentiment, Size, SizeLarge, SizeMedium, SizeSmall } from '../common';
2
+ import { render, cleanup, screen } from '../test-utils';
3
+
4
+ import StatusIcon from '.';
5
+
6
+ describe('StatusIcon', () => {
7
+ const renderStatusIcon = (props?: {
8
+ sentiment?: Sentiment;
9
+ size?: SizeLarge | SizeMedium | SizeSmall;
10
+ }) => {
11
+ return render(
12
+ <StatusIcon
13
+ sentiment={props?.sentiment || Sentiment.NEUTRAL}
14
+ size={props?.size || Size.MEDIUM}
15
+ />,
16
+ );
17
+ };
18
+
19
+ afterEach(cleanup);
20
+
21
+ it('renders the status icon without any props', () => {
22
+ renderStatusIcon();
23
+
24
+ expect(screen.getByTestId('status-icon')).toHaveClass('neutral');
25
+ expect(screen.getByTestId('status-icon')).toHaveClass('status-circle');
26
+ expect(screen.getByTestId('status-icon')).toHaveClass('status-circle-md');
27
+ });
28
+
29
+ it.each([
30
+ [Size.SMALL as const, 'status-circle-sm'],
31
+ [Size.MEDIUM as const, 'status-circle-md'],
32
+ [Size.LARGE as const, 'status-circle-lg'],
33
+ ])(
34
+ "if prop 'size' equals '%s' is passed, renders the status icon with class '%s'",
35
+ (size, expectedClass) => {
36
+ renderStatusIcon({ size: size });
37
+
38
+ expect(screen.getByTestId('status-icon')).toHaveClass(expectedClass);
39
+ cleanup();
40
+ },
41
+ );
42
+
43
+ it.each([
44
+ [Sentiment.NEGATIVE, Sentiment.NEGATIVE],
45
+ [Sentiment.NEUTRAL, Sentiment.NEUTRAL],
46
+ [Sentiment.PENDING, Sentiment.PENDING],
47
+ [Sentiment.POSITIVE, Sentiment.POSITIVE],
48
+ [Sentiment.WARNING, Sentiment.WARNING],
49
+ ])(
50
+ "if prop 'sentiment' equals '%s' is passed, renders the status icon with class '%s'",
51
+ (sentiment, expectedClass) => {
52
+ renderStatusIcon({ sentiment: sentiment });
53
+
54
+ expect(screen.getByTestId('status-icon')).toHaveClass(expectedClass);
55
+ cleanup();
56
+ },
57
+ );
58
+
59
+ it("'warning' and 'pending' sentiments generate 'dark' colored icons", () => {
60
+ renderStatusIcon({ sentiment: Sentiment.WARNING });
61
+ expect(screen.getByTestId('alert-icon')).toHaveClass('dark');
62
+ cleanup();
63
+
64
+ renderStatusIcon({ sentiment: Sentiment.PENDING });
65
+ expect(screen.getByTestId('clock-borderless-icon')).toHaveClass('dark');
66
+ });
67
+
68
+ it("'positive', 'negative', and 'neutral' sentiments generate 'light' colored icons", () => {
69
+ renderStatusIcon({ sentiment: Sentiment.POSITIVE });
70
+ expect(screen.getByTestId('check-icon')).toHaveClass('light');
71
+ cleanup();
72
+
73
+ renderStatusIcon({ sentiment: Sentiment.NEGATIVE });
74
+ expect(screen.getByTestId('cross-icon')).toHaveClass('light');
75
+ cleanup();
76
+
77
+ renderStatusIcon();
78
+ expect(screen.getByTestId('info-icon')).toHaveClass('light');
79
+ });
80
+ });
@@ -1,15 +1,14 @@
1
1
  import { Info, Alert, Cross, Check, ClockBorderless } from '@transferwise/icons';
2
2
  import classNames from 'classnames';
3
- import { ReactElement } from 'react';
4
3
 
5
- import { SizeSmall, SizeMedium, SizeLarge, Sentiment } from '../common';
4
+ import { SizeSmall, SizeMedium, SizeLarge, Sentiment, Size } from '../common';
6
5
 
7
- type Props = {
6
+ export type StatusIconProps = {
8
7
  sentiment: Sentiment;
9
8
  size: SizeSmall | SizeMedium | SizeLarge;
10
9
  };
11
10
 
12
- const StatusIcon = ({ sentiment = Sentiment.NEUTRAL, size }: Props): ReactElement => {
11
+ const StatusIcon = ({ sentiment = Sentiment.NEUTRAL, size = Size.MEDIUM }: StatusIconProps) => {
13
12
  const iconTypeMap = {
14
13
  [Sentiment.POSITIVE]: Check,
15
14
  [Sentiment.NEUTRAL]: Info,
@@ -0,0 +1,2 @@
1
+ export { default } from './StatusIcon';
2
+ export type { StatusIconProps } from './StatusIcon';
@@ -1,12 +1,12 @@
1
1
  import { CheckCircleFill, CrossCircleFill } from '@transferwise/icons';
2
2
  import { useTheme } from '@wise/components-theming';
3
3
  import classnames from 'classnames';
4
- import { KeyboardEventHandler, MouseEvent, ReactElement } from 'react';
4
+ import { KeyboardEventHandler, MouseEvent } from 'react';
5
5
 
6
6
  import { CommonProps } from '../common';
7
7
  import { logActionRequiredIf } from '../utilities';
8
8
 
9
- type Props = CommonProps & {
9
+ export type SwitchProps = CommonProps & {
10
10
  /** Used to describe the purpose of the switch. To be used if there is no external label (i.e. aria-labelledby is null) */
11
11
  'aria-label'?: string;
12
12
  /** A reference to a label that describes the purpose of the switch. Ignored if aria-label is provided */
@@ -20,7 +20,7 @@ type Props = CommonProps & {
20
20
  onClick: (event?: MouseEvent<HTMLSpanElement>) => void;
21
21
  };
22
22
 
23
- const Switch = (props: Props): ReactElement => {
23
+ const Switch = (props: SwitchProps) => {
24
24
  const { isModern } = useTheme();
25
25
  const { checked, className, id, onClick, disabled } = props;
26
26
 
@@ -1 +1,2 @@
1
1
  export { default } from './Switch';
2
+ export type { SwitchProps } from './Switch';