@transferwise/components 46.13.0 → 46.15.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 (168) hide show
  1. package/build/index.esm.js +246 -525
  2. package/build/index.esm.js.map +1 -1
  3. package/build/index.js +222 -501
  4. package/build/index.js.map +1 -1
  5. package/build/main.css +6 -82
  6. package/build/styles/decision/Decision.css +6 -82
  7. package/build/styles/main.css +6 -82
  8. package/build/types/actionButton/ActionButton.d.ts +1 -1
  9. package/build/types/body/Body.d.ts +1 -1
  10. package/build/types/common/Option/Option.d.ts.map +1 -1
  11. package/build/types/common/RadioButton/RadioButton.d.ts +10 -34
  12. package/build/types/common/RadioButton/RadioButton.d.ts.map +1 -1
  13. package/build/types/common/RadioButton/index.d.ts +1 -1
  14. package/build/types/common/RadioButton/index.d.ts.map +1 -1
  15. package/build/types/common/commonProps.d.ts +1 -1
  16. package/build/types/common/commonProps.d.ts.map +1 -1
  17. package/build/types/common/dateUtils/getDayNames/getDayNames.d.ts +1 -1
  18. package/build/types/common/dateUtils/getDayNames/getDayNames.d.ts.map +1 -1
  19. package/build/types/common/dateUtils/getDayNames/index.d.ts +1 -1
  20. package/build/types/common/dateUtils/getDayNames/index.d.ts.map +1 -1
  21. package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts +1 -1
  22. package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts.map +1 -1
  23. package/build/types/common/dateUtils/getMonthNames/index.d.ts +1 -1
  24. package/build/types/common/dateUtils/getMonthNames/index.d.ts.map +1 -1
  25. package/build/types/common/dateUtils/index.d.ts +6 -6
  26. package/build/types/common/dateUtils/index.d.ts.map +1 -1
  27. package/build/types/common/dateUtils/isDateValid/index.d.ts +1 -1
  28. package/build/types/common/dateUtils/isDateValid/index.d.ts.map +1 -1
  29. package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts +2 -2
  30. package/build/types/common/dateUtils/isDateValid/isDateValid.d.ts.map +1 -1
  31. package/build/types/common/dateUtils/isMonthAndYearFormat/index.d.ts +1 -1
  32. package/build/types/common/dateUtils/isMonthAndYearFormat/index.d.ts.map +1 -1
  33. package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts +1 -1
  34. package/build/types/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.d.ts.map +1 -1
  35. package/build/types/common/dateUtils/isWithinRange/index.d.ts +1 -1
  36. package/build/types/common/dateUtils/isWithinRange/index.d.ts.map +1 -1
  37. package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts +1 -1
  38. package/build/types/common/dateUtils/isWithinRange/isWithinRange.d.ts.map +1 -1
  39. package/build/types/common/dateUtils/moveToWithinRange/index.d.ts +1 -1
  40. package/build/types/common/dateUtils/moveToWithinRange/index.d.ts.map +1 -1
  41. package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts +1 -1
  42. package/build/types/common/dateUtils/moveToWithinRange/moveToWithinRange.d.ts.map +1 -1
  43. package/build/types/common/panel/Panel.d.ts +1 -1
  44. package/build/types/common/responsivePanel/ResponsivePanel.d.ts +1 -1
  45. package/build/types/dateInput/DateInput.d.ts +30 -41
  46. package/build/types/dateInput/DateInput.d.ts.map +1 -1
  47. package/build/types/dateInput/DateInput.messages.d.ts +24 -33
  48. package/build/types/dateInput/DateInput.messages.d.ts.map +1 -1
  49. package/build/types/dateInput/index.d.ts +2 -2
  50. package/build/types/dateInput/index.d.ts.map +1 -1
  51. package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts +1 -1
  52. package/build/types/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.d.ts.map +1 -1
  53. package/build/types/dateInput/utils/convertToLocalMidnight/index.d.ts +1 -1
  54. package/build/types/dateInput/utils/convertToLocalMidnight/index.d.ts.map +1 -1
  55. package/build/types/dateInput/utils/index.d.ts +1 -2
  56. package/build/types/dateInput/utils/index.d.ts.map +1 -1
  57. package/build/types/dateLookup/DateLookup.d.ts +1 -0
  58. package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
  59. package/build/types/decision/Decision.d.ts +39 -52
  60. package/build/types/decision/Decision.d.ts.map +1 -1
  61. package/build/types/decision/index.d.ts +1 -2
  62. package/build/types/decision/index.d.ts.map +1 -1
  63. package/build/types/dimmer/Dimmer.d.ts +1 -1
  64. package/build/types/index.d.ts +5 -0
  65. package/build/types/index.d.ts.map +1 -1
  66. package/build/types/promoCard/PromoCard.d.ts +1 -2
  67. package/build/types/promoCard/PromoCard.d.ts.map +1 -1
  68. package/build/types/radio/Radio.d.ts +10 -21
  69. package/build/types/radio/Radio.d.ts.map +1 -1
  70. package/build/types/radio/index.d.ts +2 -2
  71. package/build/types/radio/index.d.ts.map +1 -1
  72. package/build/types/radioGroup/RadioGroup.d.ts +10 -26
  73. package/build/types/radioGroup/RadioGroup.d.ts.map +1 -1
  74. package/build/types/radioGroup/index.d.ts +2 -1
  75. package/build/types/radioGroup/index.d.ts.map +1 -1
  76. package/build/types/radioOption/RadioOption.d.ts +15 -23
  77. package/build/types/radioOption/RadioOption.d.ts.map +1 -1
  78. package/build/types/radioOption/index.d.ts +2 -1
  79. package/build/types/radioOption/index.d.ts.map +1 -1
  80. package/build/types/select/searchBox/SearchBox.d.ts +1 -1
  81. package/package.json +1 -1
  82. package/src/common/Option/Option.tsx +0 -1
  83. package/src/common/RadioButton/RadioButton.tsx +43 -0
  84. package/src/common/commonProps.ts +1 -1
  85. package/src/common/dateUtils/getDayNames/getDayNames.spec.js +2 -2
  86. package/src/common/dateUtils/getDayNames/{getDayNames.js → getDayNames.ts} +5 -2
  87. package/src/common/dateUtils/getMonthNames/getMonthNames.spec.js +9 -8
  88. package/src/common/dateUtils/getMonthNames/{getMonthNames.js → getMonthNames.ts} +5 -3
  89. package/src/common/dateUtils/isDateValid/{isDateValid.spec.js → isDateValid.spec.ts} +1 -1
  90. package/src/common/dateUtils/isDateValid/isDateValid.ts +13 -0
  91. package/src/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.spec.js +3 -7
  92. package/src/common/dateUtils/isMonthAndYearFormat/{isMonthAndYearFormat.js → isMonthAndYearFormat.ts} +1 -1
  93. package/src/common/dateUtils/isWithinRange/{isWithinRange.spec.js → isWithinRange.spec.ts} +0 -10
  94. package/src/common/dateUtils/isWithinRange/{isWithinRange.js → isWithinRange.ts} +1 -1
  95. package/src/common/dateUtils/moveToWithinRange/{moveToWithinRange.js → moveToWithinRange.ts} +2 -2
  96. package/src/dateInput/DateInput.spec.js +7 -56
  97. package/src/dateInput/DateInput.story.tsx +11 -8
  98. package/src/dateInput/{DateInput.js → DateInput.tsx} +116 -123
  99. package/src/dateInput/index.ts +2 -0
  100. package/src/dateInput/utils/convertToLocalMidnight/{convertToLocalMidnight.js → convertToLocalMidnight.ts} +1 -1
  101. package/src/dateInput/utils/{index.js → index.ts} +0 -1
  102. package/src/dateLookup/DateLookup.js +12 -1
  103. package/src/dateLookup/DateLookup.testingLibrary.spec.js +12 -1
  104. package/src/dateLookup/dayCalendar/table/DayCalendarTable.js +1 -0
  105. package/src/decision/Decision.css +6 -82
  106. package/src/decision/Decision.less +3 -41
  107. package/src/decision/Decision.spec.js +56 -61
  108. package/src/decision/{Decision.story.js → Decision.story.tsx} +5 -5
  109. package/src/decision/Decision.tsx +133 -0
  110. package/src/decision/index.ts +1 -0
  111. package/src/index.ts +5 -0
  112. package/src/main.css +6 -82
  113. package/src/promoCard/PromoCard.tsx +1 -2
  114. package/src/radio/{Radio.story.js → Radio.story.tsx} +0 -3
  115. package/src/radio/{Radio.js → Radio.tsx} +18 -28
  116. package/src/radio/index.ts +2 -0
  117. package/src/radioGroup/RadioGroup.spec.js +24 -26
  118. package/src/radioGroup/{RadioGroup.story.js → RadioGroup.story.tsx} +0 -3
  119. package/src/radioGroup/RadioGroup.tsx +39 -0
  120. package/src/radioGroup/index.ts +2 -0
  121. package/src/radioOption/RadioOption.spec.js +4 -4
  122. package/src/radioOption/{RadioOption.story.js → RadioOption.story.tsx} +4 -4
  123. package/src/radioOption/RadioOption.tsx +60 -0
  124. package/src/radioOption/index.ts +2 -0
  125. package/src/tile/Tile.js +1 -1
  126. package/build/types/dateInput/utils/explodeDate/explodeDate.d.ts +0 -6
  127. package/build/types/dateInput/utils/explodeDate/explodeDate.d.ts.map +0 -1
  128. package/build/types/dateInput/utils/explodeDate/index.d.ts +0 -2
  129. package/build/types/dateInput/utils/explodeDate/index.d.ts.map +0 -1
  130. package/build/types/decision/decisionEnums.d.ts +0 -9
  131. package/build/types/decision/decisionEnums.d.ts.map +0 -1
  132. package/build/types/sizeSwapper/SizeSwapper.d.ts +0 -3
  133. package/build/types/sizeSwapper/SizeSwapper.d.ts.map +0 -1
  134. package/build/types/sizeSwapper/index.d.ts +0 -2
  135. package/build/types/sizeSwapper/index.d.ts.map +0 -1
  136. package/src/common/RadioButton/RadioButton.js +0 -41
  137. package/src/common/dateUtils/isDateValid/isDateValid.js +0 -6
  138. package/src/dateInput/index.js +0 -3
  139. package/src/dateInput/utils/explodeDate/explodeDate.js +0 -7
  140. package/src/dateInput/utils/explodeDate/explodeDate.spec.js +0 -11
  141. package/src/dateInput/utils/explodeDate/index.js +0 -1
  142. package/src/decision/Decision.js +0 -148
  143. package/src/decision/decisionEnums.ts +0 -11
  144. package/src/decision/index.js +0 -2
  145. package/src/radio/index.js +0 -3
  146. package/src/radioGroup/RadioGroup.js +0 -66
  147. package/src/radioGroup/index.js +0 -1
  148. package/src/radioOption/RadioOption.js +0 -81
  149. package/src/radioOption/index.js +0 -1
  150. package/src/sizeSwapper/SizeSwapper.js +0 -69
  151. package/src/sizeSwapper/SizeSwapper.spec.js +0 -100
  152. package/src/sizeSwapper/SizeSwapper.story.js +0 -34
  153. package/src/sizeSwapper/index.js +0 -1
  154. /package/src/common/RadioButton/{RadioButton.spec.js → RadioButton.spec.tsx} +0 -0
  155. /package/src/common/RadioButton/__snapshots__/{RadioButton.spec.js.snap → RadioButton.spec.tsx.snap} +0 -0
  156. /package/src/common/RadioButton/{index.js → index.ts} +0 -0
  157. /package/src/common/dateUtils/getDayNames/{index.js → index.ts} +0 -0
  158. /package/src/common/dateUtils/getMonthNames/{index.js → index.ts} +0 -0
  159. /package/src/common/dateUtils/{index.js → index.ts} +0 -0
  160. /package/src/common/dateUtils/isDateValid/{index.js → index.ts} +0 -0
  161. /package/src/common/dateUtils/isMonthAndYearFormat/{index.js → index.ts} +0 -0
  162. /package/src/common/dateUtils/isWithinRange/{index.js → index.ts} +0 -0
  163. /package/src/common/dateUtils/moveToWithinRange/{index.js → index.ts} +0 -0
  164. /package/src/dateInput/{DateInput.messages.js → DateInput.messages.ts} +0 -0
  165. /package/src/dateInput/utils/convertToLocalMidnight/{convertToLocalMidnight.spec.js → convertToLocalMidnight.spec.ts} +0 -0
  166. /package/src/dateInput/utils/convertToLocalMidnight/{index.js → index.ts} +0 -0
  167. /package/src/radio/{Radio.rtl.spec.js → Radio.rtl.spec.tsx} +0 -0
  168. /package/src/radio/__snapshots__/{Radio.rtl.spec.js.snap → Radio.rtl.spec.tsx.snap} +0 -0
@@ -1,41 +1,30 @@
1
- import * as React from 'react';
2
-
3
- export type DateInputSize = "sm" | "md" | "lg";
4
-
5
- export type DateInputValue = string | Date;
6
-
7
- export type DateInputMonthFormat = "long" | "short";
8
-
9
- export type DateInputMode = "day-month-year" | "month-year";
10
-
11
- export interface DateInputPlaceholders {
12
- day?: React.ReactNode;
13
- month?: React.ReactNode;
14
- year?: React.ReactNode;
15
- }
16
-
17
- export interface DateInputProps {
18
- "aria-label"?: string;
19
- "aria-labelledby"?: string;
20
- disabled?: boolean;
21
- size?: DateInputSize;
22
- value?: DateInputValue;
23
- onChange: (...args: any[])=>any;
24
- onFocus?: (...args: any[])=>any;
25
- onBlur?: (...args: any[])=>any;
26
- dayLabel?: string;
27
- dayAutoComplete?: string;
28
- monthLabel?: string;
29
- yearLabel?: string;
30
- yearAutoComplete?: string;
31
- monthFormat?: DateInputMonthFormat;
32
- mode?: DateInputMode;
33
- placeholders?: DateInputPlaceholders;
34
- id?: string;
35
- selectProps?: Object;
36
- }
37
-
38
- declare const DateInput: React.FC<DateInputProps>;
39
-
40
- export default DateInput;
41
-
1
+ /// <reference types="react" />
2
+ import { SelectInputProps } from '..';
3
+ import { Size, DateMode, MonthFormat } from '../common';
4
+ export interface DateInputProps {
5
+ 'aria-label'?: string;
6
+ 'aria-labelledby'?: string;
7
+ disabled?: boolean;
8
+ size?: Size.SMALL | Size.MEDIUM | Size.LARGE;
9
+ value?: Date | string;
10
+ onChange: (value: string | null) => void;
11
+ onFocus?: React.FocusEventHandler<HTMLInputElement>;
12
+ onBlur?: React.FocusEventHandler<HTMLInputElement>;
13
+ dayLabel?: string;
14
+ dayAutoComplete?: string;
15
+ monthLabel?: string;
16
+ yearLabel?: string;
17
+ yearAutoComplete?: string;
18
+ monthFormat?: `${MonthFormat}`;
19
+ mode?: `${DateMode}`;
20
+ placeholders?: {
21
+ day?: string;
22
+ month?: string;
23
+ year?: string;
24
+ };
25
+ id?: string;
26
+ selectProps?: Partial<SelectInputProps<number | null>>;
27
+ }
28
+ declare const DateInput: ({ "aria-labelledby": ariaLabelledBy, "aria-label": ariaLabel, disabled, size, value, dayLabel, dayAutoComplete, monthLabel, yearLabel, yearAutoComplete, monthFormat, mode, onChange, onFocus, onBlur, placeholders, id, selectProps, }: DateInputProps) => import("react").JSX.Element;
29
+ export default DateInput;
30
+ //# sourceMappingURL=DateInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/dateInput/DateInput.js"],"names":[],"mappings":";AAeA;;;;;;;;;;;;;;;;;;;gCA0QC"}
1
+ {"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/dateInput/DateInput.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAsB,gBAAgB,EAA4B,MAAM,IAAI,CAAC;AACpF,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AA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- const id_1: string;
8
- export { id_1 as id };
9
- const defaultMessage_1: string;
10
- export { defaultMessage_1 as defaultMessage };
11
- }
12
- namespace yearLabel {
13
- const id_2: string;
14
- export { id_2 as id };
15
- const defaultMessage_2: string;
16
- export { defaultMessage_2 as defaultMessage };
17
- }
18
- namespace dayPlaceholder {
19
- const id_3: string;
20
- export { id_3 as id };
21
- const defaultMessage_3: string;
22
- export { defaultMessage_3 as defaultMessage };
23
- export const description: string;
24
- }
25
- namespace yearPlaceholder {
26
- const id_4: string;
27
- export { id_4 as id };
28
- const defaultMessage_4: string;
29
- export { defaultMessage_4 as defaultMessage };
30
- const description_1: string;
31
- export { description_1 as description };
32
- }
33
- }
1
+ declare const _default: {
2
+ monthLabel: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ dayLabel: {
7
+ id: string;
8
+ defaultMessage: string;
9
+ };
10
+ yearLabel: {
11
+ id: string;
12
+ defaultMessage: string;
13
+ };
14
+ dayPlaceholder: {
15
+ id: string;
16
+ defaultMessage: string;
17
+ description: string;
18
+ };
19
+ yearPlaceholder: {
20
+ id: string;
21
+ defaultMessage: string;
22
+ description: string;
23
+ };
24
+ };
34
25
  export default _default;
35
26
  //# sourceMappingURL=DateInput.messages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateInput.messages.d.ts","sourceRoot":"","sources":["../../../src/dateInput/DateInput.messages.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"DateInput.messages.d.ts","sourceRoot":"","sources":["../../../src/dateInput/DateInput.messages.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAuBG"}
@@ -1,3 +1,3 @@
1
- export default DateInput;
2
- import DateInput from "./DateInput";
1
+ export { default } from './DateInput';
2
+ export type { DateInputProps } from './DateInput';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dateInput/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dateInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
@@ -1,2 +1,2 @@
1
- export function convertToLocalMidnight(date: any): Date;
1
+ export declare const convertToLocalMidnight: (date: string) => Date;
2
2
  //# sourceMappingURL=convertToLocalMidnight.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"convertToLocalMidnight.d.ts","sourceRoot":"","sources":["../../../../../src/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js"],"names":[],"mappings":"AAAO,wDAIN"}
1
+ {"version":3,"file":"convertToLocalMidnight.d.ts","sourceRoot":"","sources":["../../../../../src/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,SAAU,MAAM,SAIlD,CAAC"}
@@ -1,2 +1,2 @@
1
- export { convertToLocalMidnight } from "./convertToLocalMidnight";
1
+ export { convertToLocalMidnight } from './convertToLocalMidnight';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dateInput/utils/convertToLocalMidnight/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/dateInput/utils/convertToLocalMidnight/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1,3 +1,2 @@
1
- export { explodeDate } from "./explodeDate";
2
- export { convertToLocalMidnight } from "./convertToLocalMidnight";
1
+ export { convertToLocalMidnight } from './convertToLocalMidnight';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dateInput/utils/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dateInput/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -11,6 +11,7 @@ export interface DateLookupProps {
11
11
  size?: DateLookupSize;
12
12
  placeholder?: string;
13
13
  label?: string;
14
+ "aria-labelledby"?: string;
14
15
  monthFormat?: DateLookupMonthFormat;
15
16
  disabled?: boolean;
16
17
  onChange: (...args: any[])=>any;
@@ -1 +1 @@
1
- {"version":3,"file":"DateLookup.d.ts","sourceRoot":"","sources":["../../../src/dateLookup/DateLookup.js"],"names":[],"mappings":";AAoBA;IAoBE;;;;;;aAqBC;IApCD,wBAaC;IAjBD,wCAAsB;IAEtB,yCAAuB;IAIrB;;;;;;;;;;MAUC;IA0BH,6CAMC;IAFC,uCAAyE;IAI3E,6BAGC;IAED,iBAOE;IAEF,oBAME;IAEF,kBAME;IAEF,oCA6CE;IAEF,wEAmBE;IAEF,+DAOE;IAEF,gCAIE;IAEF,yBAA+C;IAE/C,2BAAmD;IAEnD,0BAAiD;IAEjD,sDAME;IAEF;;;eAEE;IAEF,+CA8BE;IAEF,wBAGE;IAEF,sCA0BC;CACF"}
1
+ {"version":3,"file":"DateLookup.d.ts","sourceRoot":"","sources":["../../../src/dateLookup/DateLookup.js"],"names":[],"mappings":";AAoBA;IAoBE;;;;;;aAqBC;IApCD,wBAaC;IAjBD,wCAAsB;IAEtB,yCAAuB;IAIrB;;;;;;;;;;MAUC;IA0BH,6CAMC;IAFC,uCAAyE;IAI3E,6BAGC;IAED,iBAOE;IAEF,oBAME;IAEF,kBAME;IAEF,oCA6CE;IAEF,wEAmBE;IAEF,+DAOE;IAEF,gCAIE;IAEF,yBAA+C;IAE/C,2BAAmD;IAEnD,0BAAiD;IAEjD,sDAME;IAEF;;;eAEE;IAEF,+CA8BE;IAEF,wBAGE;IAEF,sCAoCC;CACF"}
@@ -1,52 +1,39 @@
1
- import * as React from 'react';
2
-
3
- export interface DecisionOptions {
4
- description?: React.ReactNode;
5
- disabled?: boolean;
6
- href?: string;
7
- target?: "_self" | "_blank" | "_parent" | "_top";
8
- media?: {
9
- block: React.ReactNode;
10
- list: React.ReactNode;
11
- };
12
- onClick?: (...args: any[])=>any;
13
- title: React.ReactNode;
14
- }
15
-
16
- export type DecisionPresentation = "LIST" | "LIST_BLOCK" | "LIST_BLOCK_GRID";
17
-
18
- export type DecisionSize = "sm" | "md";
19
-
20
- export type DecisionType = "NAVIGATION";
21
-
22
- export interface DecisionProps {
23
- /**
24
- * A list of elements to be rendered
25
- */
26
- options: DecisionOptions[];
27
- /**
28
- * Handles the display mode of the component
29
- */
30
- presentation?: DecisionPresentation;
31
- /**
32
- * Size currently affects only Tile dimension
33
- */
34
- size?: DecisionSize;
35
- /**
36
- * Decide which kind of element type needs to be rendered ex: Navigation Options or in the future Radio or Checkbox Options
37
- */
38
- type?: DecisionType;
39
- /**
40
- * Display media in a circle in list presentation
41
- */
42
- showMediaCircleInList?: boolean;
43
- /**
44
- * Sets navigation options to be aligned with the parent container
45
- */
46
- isContainerAligned?: boolean;
47
- }
48
-
49
- declare const Decision: React.FC<DecisionProps>;
50
-
51
- export default Decision;
52
-
1
+ /// <reference types="react" />
2
+ import { SizeSmall, SizeMedium } from '../common';
3
+ interface DecisionOption {
4
+ description?: React.ReactNode;
5
+ disabled?: boolean;
6
+ href?: string;
7
+ target?: React.HTMLAttributeAnchorTarget;
8
+ media: {
9
+ block: React.ReactNode;
10
+ list: React.ReactNode;
11
+ };
12
+ onClick?: React.MouseEventHandler<HTMLElement>;
13
+ title: React.ReactNode;
14
+ }
15
+ export declare enum DecisionPresentation {
16
+ LIST = "LIST",
17
+ LIST_BLOCK = "LIST_BLOCK",
18
+ LIST_BLOCK_GRID = "LIST_BLOCK_GRID"
19
+ }
20
+ export declare enum DecisionType {
21
+ NAVIGATION = "NAVIGATION"
22
+ }
23
+ export interface DecisionProps {
24
+ /** A list of elements to be rendered */
25
+ options: DecisionOption[];
26
+ /** Handles the display mode of the component */
27
+ presentation?: `${DecisionPresentation}`;
28
+ /** Size currently affects only Tile dimension */
29
+ size?: SizeSmall | SizeMedium;
30
+ /** Decide which kind of element type needs to be rendered ex: Navigation Options or in the future Radio or Checkbox Options */
31
+ type?: `${DecisionType}`;
32
+ /** Display media in a circle in list presentation */
33
+ showMediaCircleInList?: boolean;
34
+ /** Sets navigation options to be aligned with the parent container */
35
+ isContainerAligned?: boolean;
36
+ }
37
+ declare const Decision: ({ options, presentation, size, type, showMediaCircleInList, isContainerAligned, }: DecisionProps) => import("react").JSX.Element | null;
38
+ export default Decision;
39
+ //# sourceMappingURL=Decision.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Decision.d.ts","sourceRoot":"","sources":["../../../src/decision/Decision.js"],"names":[],"mappings":";AAUA;;;;;;;QAiGC"}
1
+ {"version":3,"file":"Decision.d.ts","sourceRoot":"","sources":["../../../src/decision/Decision.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAoB,SAAS,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAKpE,UAAU,cAAc;IACtB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC;IACzC,KAAK,EAAE;QACL,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;KACvB,CAAC;IACF,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAC/C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB;AAED,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,eAAe,oBAAoB;CACpC;AAED,oBAAY,YAAY;IACtB,UAAU,eAAe;CAC1B;AAED,MAAM,WAAW,aAAa;IAC5B,yCAAyC;IACzC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,iDAAiD;IACjD,YAAY,CAAC,EAAE,GAAG,oBAAoB,EAAE,CAAC;IACzC,iDAAiD;IACjD,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAC9B,+HAA+H;IAC/H,IAAI,CAAC,EAAE,GAAG,YAAY,EAAE,CAAC;IAEzB,qDAAqD;IACrD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC,sEAAsE;IACtE,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,QAAA,MAAM,QAAQ,sFAOX,aAAa,uCA4Ef,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,3 +1,2 @@
1
- export { default } from "./Decision";
2
- export { Presentation as DecisionPresentation, Type as DecisionType } from "./decisionEnums";
1
+ export { default, DecisionPresentation, DecisionType } from './Decision';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decision/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decision/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
@@ -22,7 +22,7 @@ export { Dimmer };
22
22
  declare const _default: (props: CommonProps & {
23
23
  children?: ReactNode;
24
24
  disableClickToClose?: boolean | undefined;
25
- contentPosition?: "center" | "bottom" | "top" | undefined;
25
+ contentPosition?: "top" | "bottom" | "center" | undefined;
26
26
  fadeContentOnEnter?: boolean | undefined;
27
27
  fadeContentOnExit?: boolean | undefined;
28
28
  open?: boolean | undefined;
@@ -1,13 +1,18 @@
1
1
  /**
2
2
  * Types
3
3
  */
4
+ export type { DecisionProps } from './decision/Decision';
4
5
  export type { InputProps } from './inputs/Input';
6
+ export type { DateInputProps } from './dateInput';
5
7
  export type { InputWithDisplayFormatProps } from './inputWithDisplayFormat';
6
8
  export type { InputGroupProps } from './inputs/InputGroup';
7
9
  export type { SearchInputProps } from './inputs/SearchInput';
8
10
  export type { SelectInputGroupItem, SelectInputItem, SelectInputOptionContentProps, SelectInputOptionItem, SelectInputProps, SelectInputSeparatorItem, SelectInputTriggerButtonProps, } from './inputs/SelectInput';
9
11
  export type { TextAreaProps } from './inputs/TextArea';
10
12
  export type { PhoneNumberInputProps } from './phoneNumberInput/PhoneNumberInput';
13
+ export type { RadioProps } from './radio';
14
+ export type { RadioGroupProps } from './radioGroup';
15
+ export type { RadioOptionProps } from './radioOption';
11
16
  export type { SnackbarProps } from './snackbar/Snackbar';
12
17
  export type { SnackbarContextType } from './snackbar/SnackbarContext';
13
18
  export type { TextareaWithDisplayFormatProps } from './textareaWithDisplayFormat';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,YAAY,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,YAAY,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAC5E,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,YAAY,EACV,oBAAoB,EACpB,eAAe,EACf,6BAA6B,EAC7B,qBAAqB,EACrB,gBAAgB,EAChB,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,YAAY,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AACjF,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,YAAY,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,YAAY,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAClF,YAAY,EAAE,YAAY,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EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D;;GAEG;AACH,OAAO,EACL,SAAS,EACT,IAAI,EACJ,KAAK,EACL,SAAS,EACT,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,MAAM,EACN,WAAW,EACX,UAAU,EACV,MAAM,EACN,MAAM,EACN,gBAAgB,EAChB,UAAU,EACV,OAAO,GACR,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,UAAU,EAAE,MAAM,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"}
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { CardProps } from '../common/card';
3
3
  import { PromoCardIndicatorProps } from './PromoCardIndicator';
4
4
  export type ReferenceType = React.Ref<HTMLInputElement>;
5
- export type LinkTarget = '_blank' | '_parent' | '_self' | '_top';
6
5
  export type RelatedTypes = '' | 'alternate' | 'author' | 'bookmark' | 'external' | 'help' | 'license' | 'next' | 'nofollow' | 'noreferrer' | 'noopener' | 'prev' | 'search' | 'tag';
7
6
  export interface PromoCardCommonProps {
8
7
  /** Optional prop to specify classNames onto the PromoCard */
@@ -54,7 +53,7 @@ export interface PromoCardLinkProps extends PromoCardCommonProps, Omit<CardProps
54
53
  */
55
54
  rel?: RelatedTypes;
56
55
  /** Optional prop to to display where the linked URL will show */
57
- target?: LinkTarget;
56
+ target?: React.HTMLAttributeAnchorTarget;
58
57
  /** Only applies to role="radio" or "checkbox" */
59
58
  defaultChecked?: never;
60
59
  isChecked?: never;
@@ -1 +1 @@
1
- {"version":3,"file":"PromoCard.d.ts","sourceRoot":"","sources":["../../../src/promoCard/PromoCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA2E,MAAM,OAAO,CAAC;AAIhG,OAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAMjD,OAA2B,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEnF,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AACjE,MAAM,MAAM,YAAY,GACpB,EAAE,GACF,WAAW,GACX,QAAQ,GACR,UAAU,GACV,UAAU,GACV,MAAM,GACN,SAAS,GACT,MAAM,GACN,UAAU,GACV,YAAY,GACZ,UAAU,GACV,MAAM,GACN,QAAQ,GACR,KAAK,CAAC;AAEV,MAAM,WAAW,oBAAoB;IACnC,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,uDAAuD;IACvD,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,sEAAsE;IACtE,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAEzC,6EAA6E;IAC7E,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,gFAAgF;IAChF,aAA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AAC,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB,EAAE,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC9F,6DAA6D;IAC7D,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,uDAAuD;IACvD,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,iDAAiD;IACjD,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B,gEAAgE;IAChE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAE5B,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,GAAG,CAAC,EAAE,KAAK,CAAC;IACZ,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;AAED,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAAG,qBAAqB,CAAC;AAExE,MAAM,MAAM,oBAAoB,GAAG,CACjC,KAAK,EAAE,kBAAkB,GAAG,qBAAqB,KAC9C,GAAG,CAAC,OAAO,CAAC;;AAmOjB,wBAAqC"}
@@ -1,21 +1,10 @@
1
- import * as React from 'react';
2
-
3
- export type RadioValue = number | string;
4
-
5
- export interface RadioProps {
6
- avatar?: React.ReactElement<any>;
7
- checked?: boolean;
8
- disabled?: boolean;
9
- id?: string;
10
- label: string;
11
- name: string;
12
- onChange: (...args: any[])=>any;
13
- secondary?: string;
14
- value?: RadioValue;
15
- className?: string;
16
- }
17
-
18
- declare const Radio: React.FC<RadioProps>;
19
-
20
- export default Radio;
21
-
1
+ /// <reference types="react" />
2
+ import { RadioButtonProps } from '../common/RadioButton/RadioButton';
3
+ export interface RadioProps<T extends string | number = string> extends RadioButtonProps<T> {
4
+ avatar?: React.ReactNode;
5
+ label: string;
6
+ secondary?: string;
7
+ className?: string;
8
+ }
9
+ export default function Radio<T extends string | number = string>({ label, id, disabled, className, avatar, secondary, ...otherProps }: RadioProps<T>): import("react").JSX.Element;
10
+ //# sourceMappingURL=Radio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/radio/Radio.js"],"names":[],"mappings":";AAQA;;;;;;;;gCAiCC"}
1
+ {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/radio/Radio.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,CAAE,SAAQ,gBAAgB,CAAC,CAAC,CAAC;IACzF,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,EAChE,KAAK,EACL,EAAE,EACF,QAAQ,EACR,SAAS,EACT,MAAM,EACN,SAAS,EACT,GAAG,UAAU,EACd,EAAE,UAAU,CAAC,CAAC,CAAC,+BAiCf"}
@@ -1,3 +1,3 @@
1
- export default Radio;
2
- import Radio from "./Radio";
1
+ export { default } from './Radio';
2
+ export type { RadioProps } from './Radio';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/radio/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
@@ -1,26 +1,10 @@
1
- import * as React from 'react';
2
-
3
- export interface RadioGroupRadios {
4
- id?: string;
5
- avatar?: React.ReactElement<any>;
6
- value?: number | string;
7
- secondary?: string;
8
- label: string;
9
- disabled?: boolean;
10
- readOnly?: boolean;
11
- }
12
-
13
- export type RadioGroupSelectedValue = number | string;
14
-
15
- export interface RadioGroupProps {
16
- radios: RadioGroupRadios[];
17
- onChange: (...args: any[])=>any;
18
- selectedValue?: RadioGroupSelectedValue;
19
- name: string;
20
- }
21
-
22
- export default class RadioGroup extends React.Component<RadioGroupProps, any> {
23
- render(): JSX.Element;
24
-
25
- }
26
-
1
+ /// <reference types="react" />
2
+ import { RadioProps } from '../radio/Radio';
3
+ export interface RadioGroupProps<T extends string | number = string> {
4
+ name: string;
5
+ radios: Omit<RadioProps<T>, 'name' | 'checked' | 'onChange' | 'className'>[];
6
+ selectedValue?: T | '';
7
+ onChange: NonNullable<RadioProps<T>['onChange']>;
8
+ }
9
+ export default function RadioGroup<T extends string | number = string>({ name, radios, selectedValue: controlledValue, onChange, }: RadioGroupProps<T>): import("react").JSX.Element | null;
10
+ //# sourceMappingURL=RadioGroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/radioGroup/RadioGroup.js"],"names":[],"mappings":";AAKA;IACE,wBAKC;IAHC;;MAEC;IAGH,6CAGE;IAEF,6CAuBC;CACF"}
1
+ {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/radioGroup/RadioGroup.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,CAAC,EAAE,CAAC;IAC7E,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC;IACvB,QAAQ,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;CAClD;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,EACrE,IAAI,EACJ,MAAM,EACN,aAAa,EAAE,eAAe,EAC9B,QAAQ,GACT,EAAE,eAAe,CAAC,CAAC,CAAC,sCAqBpB"}
@@ -1,2 +1,3 @@
1
- export { default } from "./RadioGroup";
1
+ export { default } from './RadioGroup';
2
+ export type { RadioGroupProps } from './RadioGroup';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/radioGroup/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/radioGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
@@ -1,23 +1,15 @@
1
- import * as React from 'react';
2
-
3
- export interface RadioOptionProps {
4
- "aria-label"?: string;
5
- media?: React.ReactNode;
6
- id: string;
7
- name: string;
8
- title: React.ReactNode;
9
- content?: React.ReactNode;
10
- checked?: boolean;
11
- onChange: (...args: any[])=>any;
12
- complex?: boolean;
13
- disabled?: boolean;
14
- value?: string;
15
- showMediaCircle?: boolean;
16
- showMediaAtAllSizes?: boolean;
17
- isContainerAligned?: boolean;
18
- }
19
-
20
- declare const RadioOption: React.FC<RadioOptionProps>;
21
-
22
- export default RadioOption;
23
-
1
+ /// <reference types="react" />
2
+ import { RadioButtonProps } from '../common/RadioButton/RadioButton';
3
+ export interface RadioOptionProps<T extends string | number = string> extends Required<Pick<RadioButtonProps<T>, 'id' | 'name' | 'onChange'>>, Omit<RadioButtonProps<T>, 'readOnly' | 'id' | 'name' | 'onChange'> {
4
+ 'aria-label'?: string;
5
+ media?: React.ReactNode;
6
+ title: React.ReactNode;
7
+ content?: React.ReactNode;
8
+ complex?: boolean;
9
+ showMediaCircle?: boolean;
10
+ showMediaAtAllSizes?: boolean;
11
+ isContainerAligned?: boolean;
12
+ }
13
+ declare function RadioOption<T extends string | number = string>({ 'aria-label': ariaLabel, media, title, content, id, name, checked, onChange, complex, disabled, value, showMediaCircle, showMediaAtAllSizes, isContainerAligned, }: RadioOptionProps<T>): import("react").JSX.Element;
14
+ export default RadioOption;
15
+ //# sourceMappingURL=RadioOption.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioOption.d.ts","sourceRoot":"","sources":["../../../src/radioOption/RadioOption.js"],"names":[],"mappings":";AAKA;;;;;;;;;;;;;;;gCA2CC"}
1
+ {"version":3,"file":"RadioOption.d.ts","sourceRoot":"","sources":["../../../src/radioOption/RadioOption.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,CAClE,SAAQ,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC,EACrE,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI,GAAG,MAAM,GAAG,UAAU,CAAC;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,iBAAS,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,EACvD,YAAY,EAAE,SAAS,EACvB,KAAK,EACL,KAAK,EACL,OAAO,EACP,EAAE,EACF,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,KAAK,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,GACnB,EAAE,gBAAgB,CAAC,CAAC,CAAC,+BAyBrB;AAED,eAAe,WAAW,CAAC"}
@@ -1,2 +1,3 @@
1
- export { default } from "./RadioOption";
1
+ export { default } from './RadioOption';
2
+ export type { RadioOptionProps } from './RadioOption';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/radioOption/index.js"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/radioOption/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
@@ -3,6 +3,6 @@ declare const SearchBox: import("react").ForwardRefExoticComponent<{
3
3
  id?: string | undefined;
4
4
  classNames?: Record<string, string> | undefined;
5
5
  focusedOptionId?: string | undefined;
6
- } & Pick<InputHTMLAttributes<HTMLInputElement>, "value" | "placeholder" | "onChange" | "onClick"> & import("react").RefAttributes<HTMLInputElement>>;
6
+ } & Pick<InputHTMLAttributes<HTMLInputElement>, "placeholder" | "onChange" | "onClick" | "value"> & import("react").RefAttributes<HTMLInputElement>>;
7
7
  export default SearchBox;
8
8
  //# sourceMappingURL=SearchBox.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "46.13.0",
3
+ "version": "46.15.0",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -3,7 +3,6 @@ import { MouseEvent, forwardRef, HTMLAttributes, ReactNode, ElementType } from '
3
3
 
4
4
  import Body from '../../body';
5
5
  import { LinkProps } from '../commonProps';
6
- import { Typography } from '../propsValues/typography';
7
6
 
8
7
  export interface BaseOptionProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'content'> {
9
8
  'aria-label'?: string;