@transferwise/components 46.144.0 → 46.145.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 (329) hide show
  1. package/README.md +2 -2
  2. package/build/actionOption/ActionOption.js.map +1 -1
  3. package/build/actionOption/ActionOption.mjs.map +1 -1
  4. package/build/calendar/Calendar.js +159 -0
  5. package/build/calendar/Calendar.js.map +1 -0
  6. package/build/{dateLookup/DateLookup.messages.js → calendar/Calendar.messages.js} +1 -1
  7. package/build/calendar/Calendar.messages.js.map +1 -0
  8. package/build/{dateLookup/DateLookup.messages.mjs → calendar/Calendar.messages.mjs} +1 -1
  9. package/build/calendar/Calendar.messages.mjs.map +1 -0
  10. package/build/calendar/Calendar.mjs +155 -0
  11. package/build/calendar/Calendar.mjs.map +1 -0
  12. package/build/{dateLookup → calendar}/dateHeader/DateHeader.js +4 -4
  13. package/build/calendar/dateHeader/DateHeader.js.map +1 -0
  14. package/build/{dateLookup → calendar}/dateHeader/DateHeader.mjs +1 -1
  15. package/build/calendar/dateHeader/DateHeader.mjs.map +1 -0
  16. package/build/{dateLookup → calendar}/dayCalendar/DayCalendar.js +2 -2
  17. package/build/calendar/dayCalendar/DayCalendar.js.map +1 -0
  18. package/build/{dateLookup → calendar}/dayCalendar/DayCalendar.mjs +1 -1
  19. package/build/calendar/dayCalendar/DayCalendar.mjs.map +1 -0
  20. package/build/calendar/dayCalendar/table/DayCalendarTable.js.map +1 -0
  21. package/build/calendar/dayCalendar/table/DayCalendarTable.mjs.map +1 -0
  22. package/build/calendar/getFocusableTime/getFocusableTime.js.map +1 -0
  23. package/build/calendar/getFocusableTime/getFocusableTime.mjs.map +1 -0
  24. package/build/calendar/getStartOfDay/getStartOfDay.js.map +1 -0
  25. package/build/calendar/getStartOfDay/getStartOfDay.mjs.map +1 -0
  26. package/build/{dateLookup → calendar}/monthCalendar/MonthCalendar.js +2 -2
  27. package/build/calendar/monthCalendar/MonthCalendar.js.map +1 -0
  28. package/build/{dateLookup → calendar}/monthCalendar/MonthCalendar.mjs +1 -1
  29. package/build/calendar/monthCalendar/MonthCalendar.mjs.map +1 -0
  30. package/build/calendar/monthCalendar/table/MonthCalendarTable.js.map +1 -0
  31. package/build/calendar/monthCalendar/table/MonthCalendarTable.mjs.map +1 -0
  32. package/build/{dateLookup → calendar}/tableLink/TableLink.js +2 -2
  33. package/build/calendar/tableLink/TableLink.js.map +1 -0
  34. package/build/{dateLookup → calendar}/tableLink/TableLink.mjs +1 -1
  35. package/build/calendar/tableLink/TableLink.mjs.map +1 -0
  36. package/build/{dateLookup → calendar}/yearCalendar/YearCalendar.js +2 -2
  37. package/build/calendar/yearCalendar/YearCalendar.js.map +1 -0
  38. package/build/{dateLookup → calendar}/yearCalendar/YearCalendar.mjs +1 -1
  39. package/build/calendar/yearCalendar/YearCalendar.mjs.map +1 -0
  40. package/build/calendar/yearCalendar/table/YearCalendarTable.js.map +1 -0
  41. package/build/calendar/yearCalendar/table/YearCalendarTable.mjs.map +1 -0
  42. package/build/checkboxOption/CheckboxOption.js.map +1 -1
  43. package/build/checkboxOption/CheckboxOption.mjs.map +1 -1
  44. package/build/container/Container.js.map +1 -1
  45. package/build/container/Container.mjs.map +1 -1
  46. package/build/dateLookup/DateLookup.js +28 -168
  47. package/build/dateLookup/DateLookup.js.map +1 -1
  48. package/build/dateLookup/DateLookup.mjs +29 -169
  49. package/build/dateLookup/DateLookup.mjs.map +1 -1
  50. package/build/index.js +2 -0
  51. package/build/index.js.map +1 -1
  52. package/build/index.mjs +1 -0
  53. package/build/index.mjs.map +1 -1
  54. package/build/legacylistItem/LegacyListItem.js.map +1 -1
  55. package/build/legacylistItem/LegacyListItem.mjs.map +1 -1
  56. package/build/listItem/AvatarLayout/ListItemAvatarLayout.js.map +1 -1
  57. package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs.map +1 -1
  58. package/build/listItem/AvatarView/ListItemAvatarView.js.map +1 -1
  59. package/build/listItem/AvatarView/ListItemAvatarView.mjs.map +1 -1
  60. package/build/listItem/Button/ListItemButton.js.map +1 -1
  61. package/build/listItem/Button/ListItemButton.mjs.map +1 -1
  62. package/build/listItem/Checkbox/ListItemCheckbox.js.map +1 -1
  63. package/build/listItem/Checkbox/ListItemCheckbox.mjs.map +1 -1
  64. package/build/listItem/IconButton/ListItemIconButton.js.map +1 -1
  65. package/build/listItem/IconButton/ListItemIconButton.mjs.map +1 -1
  66. package/build/listItem/Image/ListItemImage.js.map +1 -1
  67. package/build/listItem/Image/ListItemImage.mjs.map +1 -1
  68. package/build/listItem/ListItem.js.map +1 -1
  69. package/build/listItem/ListItem.mjs.map +1 -1
  70. package/build/listItem/Navigation/ListItemNavigation.js.map +1 -1
  71. package/build/listItem/Navigation/ListItemNavigation.mjs.map +1 -1
  72. package/build/listItem/Prompt/ListItemPrompt.js.map +1 -1
  73. package/build/listItem/Prompt/ListItemPrompt.mjs.map +1 -1
  74. package/build/listItem/Radio/ListItemRadio.js.map +1 -1
  75. package/build/listItem/Radio/ListItemRadio.mjs.map +1 -1
  76. package/build/listItem/Switch/ListItemSwitch.js.map +1 -1
  77. package/build/listItem/Switch/ListItemSwitch.mjs.map +1 -1
  78. package/build/loader/Loader.js +1 -1
  79. package/build/loader/Loader.js.map +1 -1
  80. package/build/loader/Loader.mjs +1 -1
  81. package/build/loader/Loader.mjs.map +1 -1
  82. package/build/logo/Logo.js +1 -1
  83. package/build/logo/Logo.js.map +1 -1
  84. package/build/logo/Logo.mjs +1 -1
  85. package/build/logo/Logo.mjs.map +1 -1
  86. package/build/main.css +108 -117
  87. package/build/navigationOption/NavigationOption.js.map +1 -1
  88. package/build/navigationOption/NavigationOption.mjs.map +1 -1
  89. package/build/navigationOptionsList/NavigationOptionsList.js.map +1 -1
  90. package/build/navigationOptionsList/NavigationOptionsList.mjs.map +1 -1
  91. package/build/prompt/ActionPrompt/ActionPrompt.js.map +1 -1
  92. package/build/prompt/ActionPrompt/ActionPrompt.mjs.map +1 -1
  93. package/build/prompt/CriticalBanner/CriticalBanner.js.map +1 -1
  94. package/build/prompt/CriticalBanner/CriticalBanner.mjs.map +1 -1
  95. package/build/prompt/InfoPrompt/InfoPrompt.js.map +1 -1
  96. package/build/prompt/InfoPrompt/InfoPrompt.mjs.map +1 -1
  97. package/build/radioOption/RadioOption.js.map +1 -1
  98. package/build/radioOption/RadioOption.mjs.map +1 -1
  99. package/build/segmentedControl/SegmentedControl.js +1 -1
  100. package/build/segmentedControl/SegmentedControl.js.map +1 -1
  101. package/build/segmentedControl/SegmentedControl.mjs +1 -1
  102. package/build/segmentedControl/SegmentedControl.mjs.map +1 -1
  103. package/build/styles/calendar/Calendar.css +83 -0
  104. package/build/styles/css/neptune.css +11 -11
  105. package/build/styles/dateLookup/DateLookup.css +0 -90
  106. package/build/styles/less/legacy-variables.less +1 -1
  107. package/build/styles/less/neptune-tokens.less +2 -2
  108. package/build/styles/main.css +108 -117
  109. package/build/styles/props/custom-media.css +1 -1
  110. package/build/styles/props/neptune-tokens.css +1 -1
  111. package/build/styles/styles/less/neptune.css +11 -11
  112. package/build/summary/Summary.js +1 -1
  113. package/build/summary/Summary.js.map +1 -1
  114. package/build/summary/Summary.mjs +1 -1
  115. package/build/summary/Summary.mjs.map +1 -1
  116. package/build/switchOption/SwitchOption.js +1 -1
  117. package/build/switchOption/SwitchOption.js.map +1 -1
  118. package/build/switchOption/SwitchOption.mjs +1 -1
  119. package/build/switchOption/SwitchOption.mjs.map +1 -1
  120. package/build/types/actionOption/ActionOption.d.ts +1 -1
  121. package/build/types/calendar/Calendar.d.ts +13 -0
  122. package/build/types/calendar/Calendar.d.ts.map +1 -0
  123. package/build/types/{dateLookup/DateLookup.messages.d.ts → calendar/Calendar.messages.d.ts} +1 -1
  124. package/build/types/calendar/Calendar.messages.d.ts.map +1 -0
  125. package/build/types/calendar/dateHeader/DateHeader.d.ts.map +1 -0
  126. package/build/types/calendar/dateHeader/index.d.ts.map +1 -0
  127. package/build/types/calendar/dayCalendar/DayCalendar.d.ts.map +1 -0
  128. package/build/types/calendar/dayCalendar/index.d.ts.map +1 -0
  129. package/build/types/calendar/dayCalendar/table/DayCalendarTable.d.ts.map +1 -0
  130. package/build/types/calendar/dayCalendar/table/index.d.ts.map +1 -0
  131. package/build/types/calendar/getFocusableTime/getFocusableTime.d.ts.map +1 -0
  132. package/build/types/calendar/getStartOfDay/getStartOfDay.d.ts.map +1 -0
  133. package/build/types/calendar/getStartOfDay/index.d.ts.map +1 -0
  134. package/build/types/calendar/index.d.ts +3 -0
  135. package/build/types/calendar/index.d.ts.map +1 -0
  136. package/build/types/{dateLookup → calendar}/monthCalendar/MonthCalendar.d.ts +1 -1
  137. package/build/types/calendar/monthCalendar/MonthCalendar.d.ts.map +1 -0
  138. package/build/types/calendar/monthCalendar/index.d.ts.map +1 -0
  139. package/build/types/{dateLookup → calendar}/monthCalendar/table/MonthCalendarTable.d.ts +1 -1
  140. package/build/types/calendar/monthCalendar/table/MonthCalendarTable.d.ts.map +1 -0
  141. package/build/types/calendar/monthCalendar/table/index.d.ts.map +1 -0
  142. package/build/types/calendar/tableLink/TableLink.d.ts.map +1 -0
  143. package/build/types/calendar/tableLink/index.d.ts.map +1 -0
  144. package/build/types/{dateLookup → calendar}/yearCalendar/YearCalendar.d.ts +1 -1
  145. package/build/types/calendar/yearCalendar/YearCalendar.d.ts.map +1 -0
  146. package/build/types/calendar/yearCalendar/index.d.ts.map +1 -0
  147. package/build/types/{dateLookup → calendar}/yearCalendar/table/YearCalendarTable.d.ts +1 -1
  148. package/build/types/calendar/yearCalendar/table/YearCalendarTable.d.ts.map +1 -0
  149. package/build/types/calendar/yearCalendar/table/index.d.ts.map +1 -0
  150. package/build/types/checkboxOption/CheckboxOption.d.ts +1 -1
  151. package/build/types/container/Container.d.ts +1 -1
  152. package/build/types/dateLookup/DateLookup.d.ts +2 -26
  153. package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
  154. package/build/types/index.d.ts +2 -0
  155. package/build/types/index.d.ts.map +1 -1
  156. package/build/types/legacylistItem/LegacyListItem.d.ts +1 -1
  157. package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts +1 -1
  158. package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts +1 -1
  159. package/build/types/listItem/Button/ListItemButton.d.ts +1 -1
  160. package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts +1 -1
  161. package/build/types/listItem/IconButton/ListItemIconButton.d.ts +1 -1
  162. package/build/types/listItem/Image/ListItemImage.d.ts +1 -1
  163. package/build/types/listItem/ListItem.d.ts +1 -1
  164. package/build/types/listItem/Navigation/ListItemNavigation.d.ts +1 -1
  165. package/build/types/listItem/Prompt/ListItemPrompt.d.ts +1 -1
  166. package/build/types/listItem/Radio/ListItemRadio.d.ts +1 -1
  167. package/build/types/listItem/Switch/ListItemSwitch.d.ts +1 -1
  168. package/build/types/logo/Logo.d.ts +1 -1
  169. package/build/types/navigationOption/NavigationOption.d.ts +1 -1
  170. package/build/types/navigationOptionsList/NavigationOptionsList.d.ts +1 -1
  171. package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts +1 -1
  172. package/build/types/prompt/CriticalBanner/CriticalBanner.d.ts +1 -1
  173. package/build/types/prompt/InfoPrompt/InfoPrompt.d.ts +1 -1
  174. package/build/types/radioOption/RadioOption.d.ts +1 -1
  175. package/build/types/summary/Summary.d.ts +1 -1
  176. package/build/types/switchOption/SwitchOption.d.ts +1 -1
  177. package/package.json +22 -23
  178. package/src/actionButton/ActionButton.story.tsx +1 -1
  179. package/src/actionOption/ActionOption.tsx +1 -1
  180. package/src/button/_stories/Button.accessibility.docs.mdx +1 -1
  181. package/src/button/_stories/Button.story.tsx +6 -6
  182. package/src/calendar/Calendar.css +83 -0
  183. package/src/calendar/Calendar.less +79 -0
  184. package/src/calendar/Calendar.story.tsx +92 -0
  185. package/src/calendar/Calendar.test.tsx +138 -0
  186. package/src/calendar/Calendar.tsx +165 -0
  187. package/src/{dateLookup → calendar}/dateHeader/DateHeader.tsx +1 -1
  188. package/src/{dateLookup → calendar}/dayCalendar/DayCalendar.tsx +1 -1
  189. package/src/calendar/index.ts +2 -0
  190. package/src/{dateLookup → calendar}/monthCalendar/MonthCalendar.tsx +2 -2
  191. package/src/{dateLookup → calendar}/monthCalendar/table/MonthCalendarTable.tsx +1 -1
  192. package/src/{dateLookup → calendar}/tableLink/TableLink.tsx +1 -1
  193. package/src/{dateLookup → calendar}/yearCalendar/YearCalendar.tsx +2 -2
  194. package/src/{dateLookup → calendar}/yearCalendar/table/YearCalendarTable.tsx +1 -1
  195. package/src/checkboxButton/CheckboxButton.story.tsx +1 -1
  196. package/src/checkboxOption/CheckboxOption.tsx +1 -1
  197. package/src/chips/Chips.story.tsx +3 -3
  198. package/src/circularButton/CircularButton.story.tsx +4 -4
  199. package/src/container/Container.tsx +1 -1
  200. package/src/dateLookup/DateLookup.css +0 -90
  201. package/src/dateLookup/DateLookup.less +0 -91
  202. package/src/dateLookup/DateLookup.test.tsx +0 -124
  203. package/src/dateLookup/DateLookup.tsx +31 -161
  204. package/src/divider/Divider.story.tsx +2 -2
  205. package/src/header/Header.accessibility.docs.mdx +1 -1
  206. package/src/header/Header.story.tsx +1 -1
  207. package/src/iconButton/IconButton.story.tsx +4 -4
  208. package/src/index.ts +2 -0
  209. package/src/legacylistItem/LegacyListItem.tsx +1 -1
  210. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.story.tsx +1 -1
  211. package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +1 -1
  212. package/src/listItem/AvatarLayout/ListItemAvatarLayout.tsx +1 -1
  213. package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +3 -3
  214. package/src/listItem/AvatarView/ListItemAvatarView.tsx +1 -1
  215. package/src/listItem/Button/ListItemButton.story.tsx +3 -3
  216. package/src/listItem/Button/ListItemButton.tsx +1 -1
  217. package/src/listItem/Checkbox/ListItemCheckbox.tsx +1 -1
  218. package/src/listItem/IconButton/ListItemIconButton.story.tsx +4 -4
  219. package/src/listItem/IconButton/ListItemIconButton.tsx +1 -1
  220. package/src/listItem/Image/ListItemImage.tsx +1 -1
  221. package/src/listItem/ListItem.tsx +1 -1
  222. package/src/listItem/Navigation/ListItemNavigation.tsx +1 -1
  223. package/src/listItem/Prompt/ListItemPrompt.tsx +1 -1
  224. package/src/listItem/Radio/ListItemRadio.tsx +1 -1
  225. package/src/listItem/Switch/ListItemSwitch.tsx +1 -1
  226. package/src/listItem/_stories/ListItem.disabled.story.tsx +1 -1
  227. package/src/listItem/_stories/ListItem.story.tsx +5 -5
  228. package/src/loader/Loader.tsx +1 -1
  229. package/src/logo/Logo.story.tsx +1 -1
  230. package/src/logo/Logo.tsx +1 -1
  231. package/src/main.css +108 -117
  232. package/src/main.less +1 -0
  233. package/src/navigationOption/NavigationOption.tsx +1 -1
  234. package/src/navigationOptionsList/NavigationOptionsList.tsx +1 -1
  235. package/src/prompt/ActionPrompt/ActionPrompt.story.tsx +1 -1
  236. package/src/prompt/ActionPrompt/ActionPrompt.tsx +1 -1
  237. package/src/prompt/CriticalBanner/CriticalBanner.story.tsx +1 -1
  238. package/src/prompt/CriticalBanner/CriticalBanner.tsx +1 -1
  239. package/src/prompt/InfoPrompt/InfoPrompt.story.tsx +1 -1
  240. package/src/prompt/InfoPrompt/InfoPrompt.tsx +1 -1
  241. package/src/radioOption/RadioOption.tsx +1 -1
  242. package/src/segmentedControl/SegmentedControl.test.tsx +1 -1
  243. package/src/segmentedControl/SegmentedControl.tsx +1 -1
  244. package/src/styles/less/neptune.css +11 -11
  245. package/src/summary/Summary.tsx +1 -1
  246. package/src/switch/Switch.story.tsx +1 -1
  247. package/src/switchOption/SwitchOption.tsx +1 -1
  248. package/build/dateLookup/DateLookup.messages.js.map +0 -1
  249. package/build/dateLookup/DateLookup.messages.mjs.map +0 -1
  250. package/build/dateLookup/dateHeader/DateHeader.js.map +0 -1
  251. package/build/dateLookup/dateHeader/DateHeader.mjs.map +0 -1
  252. package/build/dateLookup/dayCalendar/DayCalendar.js.map +0 -1
  253. package/build/dateLookup/dayCalendar/DayCalendar.mjs.map +0 -1
  254. package/build/dateLookup/dayCalendar/table/DayCalendarTable.js.map +0 -1
  255. package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs.map +0 -1
  256. package/build/dateLookup/getFocusableTime/getFocusableTime.js.map +0 -1
  257. package/build/dateLookup/getFocusableTime/getFocusableTime.mjs.map +0 -1
  258. package/build/dateLookup/getStartOfDay/getStartOfDay.js.map +0 -1
  259. package/build/dateLookup/getStartOfDay/getStartOfDay.mjs.map +0 -1
  260. package/build/dateLookup/monthCalendar/MonthCalendar.js.map +0 -1
  261. package/build/dateLookup/monthCalendar/MonthCalendar.mjs.map +0 -1
  262. package/build/dateLookup/monthCalendar/table/MonthCalendarTable.js.map +0 -1
  263. package/build/dateLookup/monthCalendar/table/MonthCalendarTable.mjs.map +0 -1
  264. package/build/dateLookup/tableLink/TableLink.js.map +0 -1
  265. package/build/dateLookup/tableLink/TableLink.mjs.map +0 -1
  266. package/build/dateLookup/yearCalendar/YearCalendar.js.map +0 -1
  267. package/build/dateLookup/yearCalendar/YearCalendar.mjs.map +0 -1
  268. package/build/dateLookup/yearCalendar/table/YearCalendarTable.js.map +0 -1
  269. package/build/dateLookup/yearCalendar/table/YearCalendarTable.mjs.map +0 -1
  270. package/build/types/dateLookup/DateLookup.messages.d.ts.map +0 -1
  271. package/build/types/dateLookup/dateHeader/DateHeader.d.ts.map +0 -1
  272. package/build/types/dateLookup/dateHeader/index.d.ts.map +0 -1
  273. package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts.map +0 -1
  274. package/build/types/dateLookup/dayCalendar/index.d.ts.map +0 -1
  275. package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts.map +0 -1
  276. package/build/types/dateLookup/dayCalendar/table/index.d.ts.map +0 -1
  277. package/build/types/dateLookup/getFocusableTime/getFocusableTime.d.ts.map +0 -1
  278. package/build/types/dateLookup/getStartOfDay/getStartOfDay.d.ts.map +0 -1
  279. package/build/types/dateLookup/getStartOfDay/index.d.ts.map +0 -1
  280. package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts.map +0 -1
  281. package/build/types/dateLookup/monthCalendar/index.d.ts.map +0 -1
  282. package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts.map +0 -1
  283. package/build/types/dateLookup/monthCalendar/table/index.d.ts.map +0 -1
  284. package/build/types/dateLookup/tableLink/TableLink.d.ts.map +0 -1
  285. package/build/types/dateLookup/tableLink/index.d.ts.map +0 -1
  286. package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts.map +0 -1
  287. package/build/types/dateLookup/yearCalendar/index.d.ts.map +0 -1
  288. package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts.map +0 -1
  289. package/build/types/dateLookup/yearCalendar/table/index.d.ts.map +0 -1
  290. /package/build/{dateLookup → calendar}/dayCalendar/table/DayCalendarTable.js +0 -0
  291. /package/build/{dateLookup → calendar}/dayCalendar/table/DayCalendarTable.mjs +0 -0
  292. /package/build/{dateLookup → calendar}/getFocusableTime/getFocusableTime.js +0 -0
  293. /package/build/{dateLookup → calendar}/getFocusableTime/getFocusableTime.mjs +0 -0
  294. /package/build/{dateLookup → calendar}/getStartOfDay/getStartOfDay.js +0 -0
  295. /package/build/{dateLookup → calendar}/getStartOfDay/getStartOfDay.mjs +0 -0
  296. /package/build/{dateLookup → calendar}/monthCalendar/table/MonthCalendarTable.js +0 -0
  297. /package/build/{dateLookup → calendar}/monthCalendar/table/MonthCalendarTable.mjs +0 -0
  298. /package/build/{dateLookup → calendar}/yearCalendar/table/YearCalendarTable.js +0 -0
  299. /package/build/{dateLookup → calendar}/yearCalendar/table/YearCalendarTable.mjs +0 -0
  300. /package/build/types/{dateLookup → calendar}/dateHeader/DateHeader.d.ts +0 -0
  301. /package/build/types/{dateLookup → calendar}/dateHeader/index.d.ts +0 -0
  302. /package/build/types/{dateLookup → calendar}/dayCalendar/DayCalendar.d.ts +0 -0
  303. /package/build/types/{dateLookup → calendar}/dayCalendar/index.d.ts +0 -0
  304. /package/build/types/{dateLookup → calendar}/dayCalendar/table/DayCalendarTable.d.ts +0 -0
  305. /package/build/types/{dateLookup → calendar}/dayCalendar/table/index.d.ts +0 -0
  306. /package/build/types/{dateLookup → calendar}/getFocusableTime/getFocusableTime.d.ts +0 -0
  307. /package/build/types/{dateLookup → calendar}/getStartOfDay/getStartOfDay.d.ts +0 -0
  308. /package/build/types/{dateLookup → calendar}/getStartOfDay/index.d.ts +0 -0
  309. /package/build/types/{dateLookup → calendar}/monthCalendar/index.d.ts +0 -0
  310. /package/build/types/{dateLookup → calendar}/monthCalendar/table/index.d.ts +0 -0
  311. /package/build/types/{dateLookup → calendar}/tableLink/TableLink.d.ts +0 -0
  312. /package/build/types/{dateLookup → calendar}/tableLink/index.d.ts +0 -0
  313. /package/build/types/{dateLookup → calendar}/yearCalendar/index.d.ts +0 -0
  314. /package/build/types/{dateLookup → calendar}/yearCalendar/table/index.d.ts +0 -0
  315. /package/src/{dateLookup/DateLookup.messages.ts → calendar/Calendar.messages.ts} +0 -0
  316. /package/src/{dateLookup → calendar}/dateHeader/index.ts +0 -0
  317. /package/src/{dateLookup → calendar}/dayCalendar/index.ts +0 -0
  318. /package/src/{dateLookup → calendar}/dayCalendar/table/DayCalendarTable.tsx +0 -0
  319. /package/src/{dateLookup → calendar}/dayCalendar/table/index.ts +0 -0
  320. /package/src/{dateLookup → calendar}/getFocusableTime/getFocusable.test.ts +0 -0
  321. /package/src/{dateLookup → calendar}/getFocusableTime/getFocusableTime.tsx +0 -0
  322. /package/src/{dateLookup → calendar}/getStartOfDay/getStartOfDay.test.js +0 -0
  323. /package/src/{dateLookup → calendar}/getStartOfDay/getStartOfDay.tsx +0 -0
  324. /package/src/{dateLookup → calendar}/getStartOfDay/index.ts +0 -0
  325. /package/src/{dateLookup → calendar}/monthCalendar/index.ts +0 -0
  326. /package/src/{dateLookup → calendar}/monthCalendar/table/index.ts +0 -0
  327. /package/src/{dateLookup → calendar}/tableLink/index.ts +0 -0
  328. /package/src/{dateLookup → calendar}/yearCalendar/index.ts +0 -0
  329. /package/src/{dateLookup → calendar}/yearCalendar/table/index.ts +0 -0
@@ -1,7 +1,6 @@
1
1
  import { clsx } from 'clsx';
2
2
  import { createRef, PureComponent, KeyboardEvent } from 'react';
3
- import { Breakpoint } from '@transferwise/neptune-tokens';
4
-
3
+ import Calendar from '../calendar';
5
4
  import {
6
5
  Size,
7
6
  MonthFormat,
@@ -10,15 +9,10 @@ import {
10
9
  type SizeMedium,
11
10
  type SizeLarge,
12
11
  } from '../common';
13
- import { isWithinRange, moveToWithinRange, returnDateView } from '../common/dateUtils';
14
12
  import ResponsivePanel from '../common/responsivePanel';
15
13
  import { WithInputAttributesProps, withInputAttributes } from '../inputs/contexts';
16
14
  import { OverlayIdProvider } from '../provider/overlay/OverlayIdProvider';
17
15
  import DateTrigger from './dateTrigger';
18
- import DayCalendar from './dayCalendar';
19
- import { getStartOfDay } from './getStartOfDay';
20
- import MonthCalendar from './monthCalendar';
21
- import YearCalendar from './yearCalendar';
22
16
 
23
17
  export interface DateLookupProps {
24
18
  id?: string;
@@ -40,15 +34,8 @@ export interface DateLookupProps {
40
34
  type DateLookupPropsWithInputAttributes = DateLookupProps & Partial<WithInputAttributesProps>;
41
35
 
42
36
  interface DateLookupState {
43
- selectedDate: Date | null;
44
37
  originalDate: Date | null;
45
- min: Date | null;
46
- max: Date | null;
47
- viewMonth: number;
48
- viewYear: number;
49
38
  open: boolean;
50
- mode: 'day' | 'month' | 'year';
51
- isMobile: boolean;
52
39
  }
53
40
 
54
41
  class DateLookup extends PureComponent<DateLookupPropsWithInputAttributes, DateLookupState> {
@@ -68,64 +55,25 @@ class DateLookup extends PureComponent<DateLookupPropsWithInputAttributes, DateL
68
55
  } satisfies Partial<DateLookupPropsWithInputAttributes>;
69
56
 
70
57
  element = createRef<HTMLDivElement>();
71
- dropdown = createRef<HTMLDivElement>();
72
58
 
73
59
  constructor(props: DateLookup['props']) {
74
60
  super(props);
75
- const dateView = returnDateView(props.value, props.min, props.max);
76
61
  this.state = {
77
- selectedDate: getStartOfDay(props.value),
78
62
  originalDate: null,
79
- min: getStartOfDay(props.min),
80
- max: getStartOfDay(props.max),
81
- viewMonth: dateView.getMonth(),
82
- viewYear: dateView.getFullYear(),
83
63
  open: false,
84
- mode: 'day',
85
- isMobile: false,
86
64
  };
87
65
  }
88
66
 
89
- static getDerivedStateFromProps(props: DateLookup['props'], state: DateLookupState) {
90
- const propsSelected = getStartOfDay(props.value);
91
- const propsMin = getStartOfDay(props.min);
92
- const propsMax = getStartOfDay(props.max);
93
- const hasSelectedChanged = state.selectedDate?.getTime() !== propsSelected?.getTime();
94
- const hasMinChanged = state.min?.getTime() !== propsMin?.getTime();
95
- const hasMaxChanged = state.max?.getTime() !== propsMax?.getTime();
96
- if (hasSelectedChanged || hasMinChanged || hasMaxChanged) {
97
- const selectedDate = hasSelectedChanged ? propsSelected : state.selectedDate;
98
- const min = hasMinChanged ? propsMin : state.min;
99
- const max = hasMaxChanged ? propsMax : state.max;
100
- if (selectedDate && !isWithinRange(selectedDate, min, max)) {
101
- props.onChange(moveToWithinRange(selectedDate, min, max));
102
- return null;
103
- }
104
- const viewDateThatIsWithinRange: Date = returnDateView(selectedDate, min, max);
105
- const viewMonth = viewDateThatIsWithinRange.getMonth();
106
- const viewYear = viewDateThatIsWithinRange.getFullYear();
107
- return { selectedDate, min, max, viewMonth, viewYear };
108
- }
109
- return null;
110
- }
111
-
112
67
  componentDidUpdate(previousProps: DateLookupPropsWithInputAttributes) {
113
68
  if (this.props.value?.getTime() !== previousProps.value?.getTime() && this.state.open) {
114
69
  this.focusOn('.active');
115
70
  }
116
- const mediaQuery = window.matchMedia(`(max-width: ${Breakpoint.SMALL}px)`);
117
- this.setState({ isMobile: mediaQuery.matches });
118
- }
119
-
120
- componentWillUnmount() {
121
- // Prevents memory leak by cleaning state.
122
- this.setState = () => {};
123
71
  }
124
72
 
125
73
  open = () => {
126
74
  const { onFocus } = this.props;
127
75
 
128
- this.setState({ open: true, mode: 'day' });
76
+ this.setState({ open: true });
129
77
  if (onFocus) {
130
78
  onFocus();
131
79
  }
@@ -151,36 +99,13 @@ class DateLookup extends PureComponent<DateLookupPropsWithInputAttributes, DateL
151
99
  const { open, originalDate } = this.state;
152
100
  switch (event.key) {
153
101
  case 'ArrowLeft':
154
- if (open) {
155
- this.adjustDate(-1, -1, -1);
156
- } else {
157
- this.open();
158
- }
159
- event.preventDefault();
160
- break;
161
102
  case 'ArrowUp':
162
- if (open) {
163
- this.adjustDate(-7, -4, -4);
164
- } else {
165
- this.open();
166
- }
167
- event.preventDefault();
168
- break;
169
103
  case 'ArrowRight':
170
- if (open) {
171
- this.adjustDate(1, 1, 1);
172
- } else {
173
- this.open();
174
- }
175
- event.preventDefault();
176
- break;
177
104
  case 'ArrowDown':
178
- if (open) {
179
- this.adjustDate(7, 4, 4);
180
- } else {
105
+ if (!open) {
181
106
  this.open();
107
+ event.preventDefault();
182
108
  }
183
- event.preventDefault();
184
109
  break;
185
110
  case 'Escape':
186
111
  if (originalDate !== null) {
@@ -194,27 +119,6 @@ class DateLookup extends PureComponent<DateLookupPropsWithInputAttributes, DateL
194
119
  }
195
120
  };
196
121
 
197
- adjustDate = (daysToAdd: number, monthsToAdd: number, yearsToAdd: number) => {
198
- const { selectedDate, min, max, mode, originalDate } = this.state;
199
- if (originalDate === null) {
200
- this.setState({ originalDate: selectedDate });
201
- }
202
- let date: Date | null;
203
- if (selectedDate) {
204
- date = new Date(
205
- mode === 'year' ? selectedDate.getFullYear() + yearsToAdd : selectedDate.getFullYear(),
206
- mode === 'month' ? selectedDate.getMonth() + monthsToAdd : selectedDate.getMonth(),
207
- mode === 'day' ? selectedDate.getDate() + daysToAdd : selectedDate.getDate(),
208
- );
209
- } else {
210
- date = getStartOfDay(new Date());
211
- }
212
- date &&= moveToWithinRange(date, min, max);
213
- if (date?.getTime() !== selectedDate?.getTime()) {
214
- this.props.onChange(date);
215
- }
216
- };
217
-
218
122
  focusOn = (preferredElement: string, fallbackElement?: string) => {
219
123
  const element = this.element.current?.querySelector(preferredElement) as HTMLElement | null;
220
124
  if (element) {
@@ -224,71 +128,37 @@ class DateLookup extends PureComponent<DateLookupPropsWithInputAttributes, DateL
224
128
  }
225
129
  };
226
130
 
227
- switchMode = (mode: 'day' | 'month' | 'year') => {
228
- this.setState({ mode }, () => {
229
- this.focusOn('.active', '.today');
230
- });
231
- };
232
-
233
- switchToDays = () => this.switchMode('day');
234
-
235
- switchToMonths = () => this.switchMode('month');
236
-
237
- switchToYears = () => this.switchMode('year');
238
-
239
- handleSelectedDateUpdate = (selectedDate: Date) => {
240
- this.setState({ selectedDate }, () => {
241
- this.props.onChange(selectedDate);
242
- this.close();
243
- this.focusOn('.btn');
244
- });
131
+ handleDateChange = (date: Date | null) => {
132
+ this.setState(
133
+ (state) => {
134
+ const originalDate = state.originalDate ?? this.props.value;
135
+ return { originalDate };
136
+ },
137
+ () => {
138
+ this.props.onChange(date);
139
+ },
140
+ );
245
141
  };
246
142
 
247
- handleViewDateUpdate = ({ month = this.state.viewMonth, year = this.state.viewYear }) => {
248
- this.setState({ viewMonth: month, viewYear: year });
143
+ handleDateSelect = (date: Date) => {
144
+ this.props.onChange(date);
145
+ this.close();
146
+ this.focusOn('.btn');
249
147
  };
250
148
 
251
149
  getCalendar = () => {
252
- const { selectedDate, min, max, viewMonth, viewYear, mode, isMobile } = this.state;
253
- const { placeholder, monthFormat } = this.props;
150
+ const { value, min, max, monthFormat, placeholder } = this.props;
254
151
  return (
255
- <div className={clsx({ 'p-a-1': !isMobile })}>
256
- {mode === 'day' && (
257
- <DayCalendar
258
- selectedDate={selectedDate}
259
- min={min}
260
- max={max}
261
- viewMonth={viewMonth}
262
- viewYear={viewYear}
263
- monthFormat={monthFormat}
264
- onSelect={this.handleSelectedDateUpdate}
265
- onLabelClick={this.switchToYears}
266
- onViewDateUpdate={this.handleViewDateUpdate}
267
- />
268
- )}
269
- {mode === 'month' && (
270
- <MonthCalendar
271
- selectedDate={selectedDate}
272
- min={min}
273
- max={max}
274
- viewYear={viewYear}
275
- placeholder={placeholder}
276
- onSelect={this.switchToDays}
277
- onLabelClick={this.switchToYears}
278
- onViewDateUpdate={this.handleViewDateUpdate}
279
- />
280
- )}
281
- {mode === 'year' && (
282
- <YearCalendar
283
- selectedDate={selectedDate}
284
- min={min}
285
- max={max}
286
- viewYear={viewYear}
287
- placeholder={placeholder}
288
- onSelect={this.switchToMonths}
289
- onViewDateUpdate={this.handleViewDateUpdate}
290
- />
291
- )}
152
+ <div className="p-a-1">
153
+ <Calendar
154
+ value={value}
155
+ min={min}
156
+ max={max}
157
+ monthFormat={monthFormat}
158
+ placeholder={placeholder}
159
+ onChange={this.handleDateChange}
160
+ onSelect={this.handleDateSelect}
161
+ />
292
162
  </div>
293
163
  );
294
164
  };
@@ -299,7 +169,7 @@ class DateLookup extends PureComponent<DateLookupPropsWithInputAttributes, DateL
299
169
  };
300
170
 
301
171
  render() {
302
- const { selectedDate, open } = this.state;
172
+ const { open } = this.state;
303
173
 
304
174
  const {
305
175
  inputAttributes,
@@ -329,7 +199,7 @@ class DateLookup extends PureComponent<DateLookupPropsWithInputAttributes, DateL
329
199
  <DateTrigger
330
200
  id={id}
331
201
  ariaLabelledBy={ariaLabelledBy}
332
- selectedDate={selectedDate}
202
+ selectedDate={value}
333
203
  size={size}
334
204
  placeholder={placeholder}
335
205
  label={label}
@@ -24,7 +24,7 @@ const hideControls = (args: string[]) => {
24
24
  * The stories below document the `<Divider />` component, which can be rendered as either a semantic `<hr>` or a non-semantic `<div>`.
25
25
  * levels allow customization for different visual separation needs.
26
26
  *
27
- * For more details, please refer to the [design documentation](https://wise.design/components/divider).
27
+ * For more details, please refer to the [design documentation](https://docs.wise.design/components/divider).
28
28
  */
29
29
  const meta: Meta<typeof Divider> = {
30
30
  component: Divider,
@@ -89,7 +89,7 @@ export const Playground: Story = {
89
89
  /**
90
90
  * There are three different types of divider – `section`, `subsection`, and `content` –
91
91
  * each designed to visually separate or group content. <br />
92
- * [Design documentation](https://wise.design/components/divider)
92
+ * [Design documentation](https://docs.wise.design/components/divider)
93
93
  */
94
94
  export const Level: Story = {
95
95
  argTypes: {
@@ -12,7 +12,7 @@ Given the `Header` is a key component for structuring content and conveying hier
12
12
  <ListItem
13
13
  title="Design guidance"
14
14
  subtitle="Before you start, familiarise yourself with the provided guidance."
15
- control={<ListItem.Navigation href="https://wise.design/components/section-header" />}
15
+ control={<ListItem.Navigation href="https://docs.wise.design/components/section-header" />}
16
16
  media={
17
17
  <ListItem.AvatarView>
18
18
  <Bulb />
@@ -15,7 +15,7 @@ const hideControls = (args: string[]) =>
15
15
 
16
16
  /**
17
17
  * The stories below document the `Header` component, which is used to structure content and convey hierarchy. <br />
18
- * For more details, refer to the [design documentation](https://wise.design/components/section-header).
18
+ * For more details, refer to the [design documentation](https://docs.wise.design/components/section-header).
19
19
  */
20
20
  const meta: Meta<typeof Header> = {
21
21
  component: Header,
@@ -17,7 +17,7 @@ import IconButton, { Props } from './IconButton';
17
17
  import SentimentSurface from '../sentimentSurface';
18
18
 
19
19
  /**
20
- * **Design guidance**: <a href="https://wise.design/components/icon-button" target="_blank">wise.design/components/icon-button</a>
20
+ * **Design guidance**: <a href="https://docs.wise.design/components/icon-button" target="_blank">wise.design/components/icon-button</a>
21
21
  */
22
22
  export default {
23
23
  title: 'Actions/IconButton',
@@ -64,7 +64,7 @@ export const Playground: Story = {
64
64
  /**
65
65
  * Priorities set a visual hierarchy amongst the buttons displayed on the
66
66
  * screen to help more important buttons to take precedence over others. <br />
67
- * <a href="https://wise.design/components/icon-button#priorities" target="_blank">Design documentation</a>
67
+ * <a href="https://docs.wise.design/components/icon-button#priorities" target="_blank">Design documentation</a>
68
68
  */
69
69
  export const Priority: Story = {
70
70
  args: {
@@ -109,7 +109,7 @@ export const Priority: Story = {
109
109
 
110
110
  /**
111
111
  * There are two different types of button – default and negative – designed to emphasise the nature of the action. <br />
112
- * <a href="https://wise.design/components/icon-button#types" target="_blank">Design documentation</a>
112
+ * <a href="https://docs.wise.design/components/icon-button#types" target="_blank">Design documentation</a>
113
113
  */
114
114
  export const Type: Story = {
115
115
  args: {
@@ -148,7 +148,7 @@ export const Type: Story = {
148
148
 
149
149
  /**
150
150
  * IconButton is available in 7 sizes: 16, 24, 32, 40, 48, 56, 72. <br />
151
- * <a href="https://wise.design/components/icon-button#sizes" target="_blank">Design documentation</a>
151
+ * <a href="https://docs.wise.design/components/icon-button#sizes" target="_blank">Design documentation</a>
152
152
  */
153
153
  export const Size: Story = {
154
154
  args: {
package/src/index.ts CHANGED
@@ -29,6 +29,7 @@ export type {
29
29
  export type { BottomSheetProps } from './common/bottomSheet';
30
30
  export type { DateInputProps } from './dateInput';
31
31
  export type { DateLookupProps } from './dateLookup';
32
+ export type { CalendarProps } from './calendar';
32
33
  export type { DecisionProps } from './decision/Decision';
33
34
  export type { DefinitionListProps, DefinitionListDefinition } from './definitionList';
34
35
  export type { DimmerProps } from './dimmer';
@@ -163,6 +164,7 @@ export { default as CriticalCommsBanner } from './criticalBanner';
163
164
  export type { CriticalCommsBannerProps } from './criticalBanner';
164
165
  export { default as DateInput } from './dateInput';
165
166
  export { default as DateLookup } from './dateLookup';
167
+ export { default as Calendar } from './calendar';
166
168
  export { default as Decision } from './decision';
167
169
  export { default as DefinitionList } from './definitionList';
168
170
  export { default as Dimmer } from './dimmer';
@@ -18,7 +18,7 @@ export type LegacyListItemProps = {
18
18
  * @deprecatedSince 46.104.0
19
19
  * @see [Source](../listItem/ListItem.tsx)
20
20
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
21
- * @see [Design docs](https://wise.design/components/list-item)
21
+ * @see [Design docs](https://docs.wise.design/components/list-item)
22
22
  * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes)
23
23
  */
24
24
  const LegacyListItem: FC<LegacyListItemProps> = ({
@@ -14,7 +14,7 @@ import type { ListItemAdditionalInfoProps } from './ListItemAdditionalInfo';
14
14
  /**
15
15
  * Use additional information to add extra details that help make the information clearer for users. Use additional information only after you've used the subtitle.
16
16
  *
17
- * Refer to the [design documentation](https://wise.design/components/list-item#content:~:text=StatusIcon.iconLabel.error-,Additional%20information,-Use%20additional%20information) for more details.
17
+ * Refer to the [design documentation](https://docs.wise.design/components/list-item#content:~:text=StatusIcon.iconLabel.error-,Additional%20information,-Use%20additional%20information) for more details.
18
18
  */
19
19
  export default {
20
20
  component: ListItem.AdditionalInfo,
@@ -58,7 +58,7 @@ export const Playground: Story = {
58
58
 
59
59
  /**
60
60
  * AvatarLayout supports two orientations: horizontal (default) and diagonal. <br />
61
- * Please refer to the [design documentation](https://wise.design/components/avatar#double) for more details.
61
+ * Please refer to the [design documentation](https://docs.wise.design/components/avatar#double) for more details.
62
62
  */
63
63
  export const Orientations: Story = {
64
64
  argTypes: disableControls()(['orientation']),
@@ -12,7 +12,7 @@ export type ListItemAvatarLayoutProps = Omit<AvatarLayoutProps, 'size' | 'intera
12
12
  * [AvatarLayout component](https://storybook.wise.design/?path=/docs/content-avatarlayout--docs), but offers only
13
13
  * a subset of its sizes, and disallows interactive mode, in line with the ListItem's constraints. <br />
14
14
  * <br />
15
- * Please refer to the [Design documentation](https://wise.design/components/list-item#avatar) for details.
15
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item#avatar) for details.
16
16
  */
17
17
  export const AvatarLayout = ({ className, size = 48, ...props }: ListItemAvatarLayoutProps) => {
18
18
  useListItemMedia(size);
@@ -134,7 +134,7 @@ export const Playground: Story = {
134
134
 
135
135
  /**
136
136
  * AvatarView can display different types of content including icons, profile images, and initials. <br />
137
- * Refer to the [design documentation](https://wise.design/components/avatar#:~:text=56%2C%20%E2%80%A8and%2072.-,Media,-There%20are%204) for details.
137
+ * Refer to the [design documentation](https://docs.wise.design/components/avatar#:~:text=56%2C%20%E2%80%A8and%2072.-,Media,-There%20are%204) for details.
138
138
  */
139
139
  export const ContentTypes: Story = {
140
140
  args: {
@@ -208,7 +208,7 @@ export const ContentTypes: Story = {
208
208
 
209
209
  /**
210
210
  * AvatarView supports 6 sizes to fit different list item contexts: `24`, `32`, `40`, `48`, `56`, `72`. If decorated with a Badge, those will be sized accordingly as well. <br />
211
- * Please refer to the [design documentation](https://wise.design/components/list-item#avatar:~:text=of%20the%20avatar.-,Avatar%20sizes,-List%20item%20supports) for details on when to use which one.
211
+ * Please refer to the [design documentation](https://docs.wise.design/components/list-item#avatar:~:text=of%20the%20avatar.-,Avatar%20sizes,-List%20item%20supports) for details on when to use which one.
212
212
  */
213
213
  export const Sizes: Story = {
214
214
  parameters: {
@@ -242,7 +242,7 @@ export const Sizes: Story = {
242
242
 
243
243
  /**
244
244
  * AvatarView supports different types of badges for additional context and information. <br />
245
- * Refer to the [design documentation](https://wise.design/components/avatar#:~:text=support%20the%20information.-,With%20badge,-Badges%20contain%20additional) for details.
245
+ * Refer to the [design documentation](https://docs.wise.design/components/avatar#:~:text=support%20the%20information.-,With%20badge,-Badges%20contain%20additional) for details.
246
246
  */
247
247
  export const Badges: Story = {
248
248
  args: {
@@ -12,7 +12,7 @@ export type ListItemAvatarViewProps = Omit<AvatarViewProps, 'size' | 'interactiv
12
12
  * [AvatarView component](https://storybook.wise.design/?path=/docs/content-avatarview--docs), but offers only
13
13
  * a subset of its sizes, in line with the ListItem's constraints. <br />
14
14
  * <br />
15
- * Please refer to the [Design documentation](https://wise.design/components/list-item#avatar) for details.
15
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item#avatar) for details.
16
16
  */
17
17
  export const AvatarView = ({ className, size = 48, ...props }: ListItemAvatarViewProps) => {
18
18
  useListItemMedia(size);
@@ -184,7 +184,7 @@ export const Playground: StoryObj<PreviewStoryArgs> = {
184
184
  * If you still require a fully interactive ListItem, you can alternatively use `ListItem.Prompt`
185
185
  * which allows for a single instance of a link or an inline button.
186
186
  *
187
- * Refer to the [design documentation](https://wise.design/components/list-item#interaction) for details.
187
+ * Refer to the [design documentation](https://docs.wise.design/components/list-item#interaction) for details.
188
188
  */
189
189
  export const Interactivity: StoryObj<PreviewStoryArgs> = {
190
190
  args: {
@@ -253,7 +253,7 @@ export const AsAnchor: StoryObj<PreviewStoryArgs> = {
253
253
  /**
254
254
  * There are two different types of button – default and negative – designed to emphasise the nature of the action. <br />
255
255
  * **NB:** Sentiment only applies to `primary` and `secondary` priorities. <br />
256
- * [Design documentation](https://wise.design/components/button#types)
256
+ * [Design documentation](https://docs.wise.design/components/button#types)
257
257
  */
258
258
  export const Sentiment: StoryObj<PreviewStoryArgs> = {
259
259
  args: {
@@ -318,7 +318,7 @@ export const Sentiment: StoryObj<PreviewStoryArgs> = {
318
318
  /**
319
319
  * Priorities set a visual hierarchy amongst the buttons displayed on the
320
320
  * screen to help more important buttons to take precedence over others. <br />
321
- * [Design documentation](https://wise.design/components/button#priorities)
321
+ * [Design documentation](https://docs.wise.design/components/button#priorities)
322
322
  */
323
323
  export const Priority: StoryObj<PreviewStoryArgs> = {
324
324
  args: {
@@ -22,7 +22,7 @@ export type ListItemButtonProps = Omit<
22
22
  * [Button component](https://storybook.wise.design/?path=/docs/content-button--docs), but offers only
23
23
  * a subset of its features in line with the ListItem's constraints. <br />
24
24
  * <br />
25
- * Please refer to the [Design documentation](https://wise.design/components/list-item---button) for details.
25
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item---button) for details.
26
26
  */
27
27
  export const Button = forwardRef<HTMLButtonElement, ListItemButtonProps>(
28
28
  (
@@ -13,7 +13,7 @@ export type ListItemCheckboxProps = Pick<
13
13
  * [CheckboxButton component](https://storybook.wise.design/?path=/docs/actions-checkboxbutton--docs),
14
14
  * but offers only a subset of its features in line with the ListItem's constraints. <br />
15
15
  *
16
- * Please refer to the [Design documentation](https://wise.design/components/list-item---checkbox) for details.
16
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item---checkbox) for details.
17
17
  */
18
18
  export const Checkbox = function (props: ListItemCheckboxProps) {
19
19
  const { baseItemProps } = useListItemControl('checkbox', { ...props });
@@ -22,7 +22,7 @@ const hideControls = disableControls([
22
22
  /**
23
23
  * Use IconButton to provide compact action controls within a ListItem context using iconography.
24
24
  *
25
- * Refer to the [design documentation](https://wise.design/components/list-item) for more details.
25
+ * Refer to the [design documentation](https://docs.wise.design/components/list-item) for more details.
26
26
  */
27
27
  const meta: Meta<ListItemIconButtonProps> = {
28
28
  component: ListItem.IconButton,
@@ -142,7 +142,7 @@ export const AccessibleName: Story = {
142
142
  * If you still require a fully interactive ListItem, you can alternatively use `ListItem.Prompt`
143
143
  * which allows for a single instance of a link or an inline button.
144
144
  *
145
- * Refer to the [design documentation](https://wise.design/components/list-item#interaction) for details.
145
+ * Refer to the [design documentation](https://docs.wise.design/components/list-item#interaction) for details.
146
146
  */
147
147
  export const Interactivity: Story = {
148
148
  args: {
@@ -177,7 +177,7 @@ export const Interactivity: Story = {
177
177
  /**
178
178
  * There are two different types of icon button – default and negative – designed to emphasise the nature of the action. <br />
179
179
  * **NB:** Sentiment only applies to `primary` and `secondary` priorities. <br />
180
- * [Design documentation](https://wise.design/components/icon-button#types)
180
+ * [Design documentation](https://docs.wise.design/components/icon-button#types)
181
181
  */
182
182
  export const Sentiment: Story = {
183
183
  argTypes: hideControls(['sentiment', 'priority']),
@@ -216,7 +216,7 @@ export const Sentiment: Story = {
216
216
  /**
217
217
  * Priorities set a visual hierarchy amongst the buttons displayed on the
218
218
  * screen to help more important buttons to take precedence over others. <br />
219
- * [Design documentation](https://wise.design/components/icon-button#priorities)
219
+ * [Design documentation](https://docs.wise.design/components/icon-button#priorities)
220
220
  */
221
221
  export const Priority: Story = {
222
222
  argTypes: hideControls(['sentiment', 'priority']),
@@ -19,7 +19,7 @@ export type ListItemIconButtonProps = Pick<
19
19
  * [IconButton component](https://storybook.wise.design/?path=/docs/actions-iconbutton--docs), but offers only
20
20
  * a subset of its features in line with the ListItem's constraints. <br />
21
21
  * <br />
22
- * Please refer to the [Design documentation](https://wise.design/components/list-item---icon-button) for details.
22
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item---icon-button) for details.
23
23
  */
24
24
  export const IconButton = function ({
25
25
  priority = 'minimal',
@@ -23,7 +23,7 @@ export type ListItemImageProps = Omit<ImageProps, 'stretch' | 'shrink' | 'id' |
23
23
  * [Image component](https://storybook.wise.design/?path=/docs/content-image--docs), but offers only
24
24
  * a subset of its props, in line with the ListItem's constraints.
25
25
  *
26
- * > **NB**: This component is [not intended for use with illustrations](https://wise.design/foundations/illustration#scale).
26
+ * > **NB**: This component is [not intended for use with illustrations](https://docs.wise.design/foundations/illustration#scale).
27
27
  */
28
28
  export const Image = ({ alt = '', size = 48, className, ...props }: ListItemImageProps) => {
29
29
  useListItemMedia(size);
@@ -106,7 +106,7 @@ export type ListItemProps = {
106
106
  };
107
107
 
108
108
  /**
109
- * @see [Design documentation](https://wise.design/components/list-item)
109
+ * @see [Design documentation](https://docs.wise.design/components/list-item)
110
110
  * @see [Storybook documentation](https://storybook.wise.design/?path=/docs/content-listitem--docs)
111
111
  */
112
112
  export const ListItem = ({
@@ -13,7 +13,7 @@ export type ListItemNavigationProps = Pick<ButtonProps, 'onClick' | 'href' | 'ta
13
13
  * step in a flow. It offers only a subset of features of the HTML element in line with the
14
14
  * ListItem's constraints.<br />
15
15
  * <br />
16
- * Please refer to the [Design documentation](https://wise.design/components/list-item---navigation) for details.
16
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item---navigation) for details.
17
17
  */
18
18
  export const Navigation = function Navigation({ href, ...props }: ListItemNavigationProps) {
19
19
  const { baseItemProps } = useListItemControl('navigation', { href, ...props });
@@ -12,7 +12,7 @@ export type ListItemPromptProps = Pick<
12
12
  * This component allows for rendering an Inline Prompt. <br />
13
13
  * In the future it will be a thin wrapper around a standalone component.<br />
14
14
  *
15
- * Please refer to the [Design documentation](https://wise.design/components/list-item#prompt) for details.
15
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item#prompt) for details.
16
16
  */
17
17
  export const Prompt = ({
18
18
  sentiment = Sentiment.NEUTRAL,
@@ -13,7 +13,7 @@ export type ListItemRadioProps = Omit<
13
13
  * [Button component](https://storybook.wise.design/?path=/docs/content-button--docs), but offers only
14
14
  * a subset of its features in line with the ListItem's constraints. <br />
15
15
  * <br />
16
- * Please refer to the [Design documentation](https://wise.design/components/list-item---button) for details.
16
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item---button) for details.
17
17
  */
18
18
  export const Radio = function (props: ListItemRadioProps) {
19
19
  const { baseItemProps } = useListItemControl('radio', { ...props });
@@ -13,7 +13,7 @@ export type ListItemSwitchProps = Omit<
13
13
  * [CheckboxButton component](https://storybook.wise.design/?path=/docs/actions-switch--docs),
14
14
  * but offers only a subset of its features in line with the ListItem's constraints. <br />
15
15
  *
16
- * Please refer to the [Design documentation](https://wise.design/components/list-item---switch) for details.
16
+ * Please refer to the [Design documentation](https://docs.wise.design/components/list-item---switch) for details.
17
17
  */
18
18
  export const Switch = function (props: ListItemSwitchProps) {
19
19
  const { baseItemProps } = useListItemControl('switch', { ...props });
@@ -42,7 +42,7 @@ const disabledPromptMessage = (
42
42
  );
43
43
 
44
44
  /**
45
- * Please refer to the [design documentation](https://wise.design/components/list-item#accessibility:~:text=-,Disabled%20states,-) for more details
45
+ * Please refer to the [design documentation](https://docs.wise.design/components/list-item#accessibility:~:text=-,Disabled%20states,-) for more details
46
46
  */
47
47
  export default {
48
48
  component: ListItem,