@transferwise/components 0.0.0-experimental-d6b038b → 0.0.0-experimental-c84454a

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 (480) hide show
  1. package/build/accordion/Accordion.js.map +1 -1
  2. package/build/accordion/Accordion.mjs.map +1 -1
  3. package/build/actionButton/ActionButton.js.map +1 -1
  4. package/build/actionButton/ActionButton.mjs.map +1 -1
  5. package/build/actionOption/ActionOption.js.map +1 -1
  6. package/build/actionOption/ActionOption.mjs.map +1 -1
  7. package/build/alert/Alert.js +1 -1
  8. package/build/alert/Alert.js.map +1 -1
  9. package/build/alert/Alert.mjs +1 -1
  10. package/build/alert/Alert.mjs.map +1 -1
  11. package/build/avatar/Avatar.js.map +1 -1
  12. package/build/avatar/Avatar.mjs.map +1 -1
  13. package/build/avatarLayout/AvatarLayout.js.map +1 -1
  14. package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
  15. package/build/badge/Badge.js.map +1 -1
  16. package/build/badge/Badge.mjs.map +1 -1
  17. package/build/body/Body.js.map +1 -1
  18. package/build/body/Body.mjs.map +1 -1
  19. package/build/button/LegacyButton.js.map +1 -1
  20. package/build/button/LegacyButton.mjs.map +1 -1
  21. package/build/card/Card.js.map +1 -1
  22. package/build/card/Card.mjs.map +1 -1
  23. package/build/checkboxButton/CheckboxButton.js.map +1 -1
  24. package/build/checkboxButton/CheckboxButton.mjs.map +1 -1
  25. package/build/checkboxOption/CheckboxOption.js.map +1 -1
  26. package/build/checkboxOption/CheckboxOption.mjs.map +1 -1
  27. package/build/circularButton/CircularButton.js.map +1 -1
  28. package/build/circularButton/CircularButton.mjs.map +1 -1
  29. package/build/common/propsValues/type.js +1 -1
  30. package/build/common/propsValues/type.js.map +1 -1
  31. package/build/common/propsValues/type.mjs +1 -1
  32. package/build/common/propsValues/type.mjs.map +1 -1
  33. package/build/common/propsValues/typography.js +1 -1
  34. package/build/common/propsValues/typography.js.map +1 -1
  35. package/build/common/propsValues/typography.mjs +1 -1
  36. package/build/common/propsValues/typography.mjs.map +1 -1
  37. package/build/dateInput/DateInput.js +5 -12
  38. package/build/dateInput/DateInput.js.map +1 -1
  39. package/build/dateInput/DateInput.mjs +4 -11
  40. package/build/dateInput/DateInput.mjs.map +1 -1
  41. package/build/dimmer/Dimmer.js.map +1 -1
  42. package/build/dimmer/Dimmer.mjs.map +1 -1
  43. package/build/drawer/Drawer.js.map +1 -1
  44. package/build/drawer/Drawer.mjs.map +1 -1
  45. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js +8 -16
  46. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js.map +1 -1
  47. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs +6 -14
  48. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs.map +1 -1
  49. package/build/field/Field.js.map +1 -1
  50. package/build/field/Field.mjs.map +1 -1
  51. package/build/flowNavigation/FlowNavigation.js.map +1 -1
  52. package/build/flowNavigation/FlowNavigation.mjs.map +1 -1
  53. package/build/header/Header.js.map +1 -1
  54. package/build/header/Header.mjs.map +1 -1
  55. package/build/iconButton/IconButton.js.map +1 -1
  56. package/build/iconButton/IconButton.mjs.map +1 -1
  57. package/build/index.js +7 -14
  58. package/build/index.js.map +1 -1
  59. package/build/index.mjs +3 -10
  60. package/build/index.mjs.map +1 -1
  61. package/build/inputs/SelectInput.js +890 -0
  62. package/build/inputs/SelectInput.js.map +1 -0
  63. package/build/inputs/SelectInput.messages.js.map +1 -0
  64. package/build/inputs/SelectInput.messages.mjs.map +1 -0
  65. package/build/inputs/SelectInput.mjs +881 -0
  66. package/build/inputs/SelectInput.mjs.map +1 -0
  67. package/build/inputs/{SelectInput/BottomSheet/SelectInputBottomSheet.js → _BottomSheet.js} +7 -7
  68. package/build/inputs/_BottomSheet.js.map +1 -0
  69. package/build/inputs/{SelectInput/BottomSheet/SelectInputBottomSheet.mjs → _BottomSheet.mjs} +7 -7
  70. package/build/inputs/_BottomSheet.mjs.map +1 -0
  71. package/build/inputs/{SelectInput/ButtonInput/SelectInputButtonInput.js → _ButtonInput.js} +5 -5
  72. package/build/inputs/_ButtonInput.js.map +1 -0
  73. package/build/inputs/{SelectInput/ButtonInput/SelectInputButtonInput.mjs → _ButtonInput.mjs} +5 -5
  74. package/build/inputs/_ButtonInput.mjs.map +1 -0
  75. package/build/inputs/{SelectInput/Popover/SelectInputPopover.js → _Popover.js} +7 -7
  76. package/build/inputs/_Popover.js.map +1 -0
  77. package/build/inputs/{SelectInput/Popover/SelectInputPopover.mjs → _Popover.mjs} +7 -7
  78. package/build/inputs/_Popover.mjs.map +1 -0
  79. package/build/legacylistItem/LegacyListItem.js.map +1 -1
  80. package/build/legacylistItem/LegacyListItem.mjs.map +1 -1
  81. package/build/list/List.js.map +1 -1
  82. package/build/list/List.mjs.map +1 -1
  83. package/build/listItem/Button/ListItemButton.js.map +1 -1
  84. package/build/listItem/Button/ListItemButton.mjs.map +1 -1
  85. package/build/listItem/IconButton/ListItemIconButton.js.map +1 -1
  86. package/build/listItem/IconButton/ListItemIconButton.mjs.map +1 -1
  87. package/build/listItem/Image/ListItemImage.js.map +1 -1
  88. package/build/listItem/Image/ListItemImage.mjs.map +1 -1
  89. package/build/listItem/ListItem.js.map +1 -1
  90. package/build/listItem/ListItem.mjs.map +1 -1
  91. package/build/loader/Loader.js.map +1 -1
  92. package/build/loader/Loader.mjs.map +1 -1
  93. package/build/logo/Logo.js.map +1 -1
  94. package/build/logo/Logo.mjs.map +1 -1
  95. package/build/main.css +126 -126
  96. package/build/modal/Modal.js.map +1 -1
  97. package/build/modal/Modal.mjs.map +1 -1
  98. package/build/moneyInput/MoneyInput.js +2 -9
  99. package/build/moneyInput/MoneyInput.js.map +1 -1
  100. package/build/moneyInput/MoneyInput.mjs +1 -8
  101. package/build/moneyInput/MoneyInput.mjs.map +1 -1
  102. package/build/navigationOption/NavigationOption.js.map +1 -1
  103. package/build/navigationOption/NavigationOption.mjs.map +1 -1
  104. package/build/navigationOptionsList/NavigationOptionsList.js.map +1 -1
  105. package/build/navigationOptionsList/NavigationOptionsList.mjs.map +1 -1
  106. package/build/nudge/Nudge.js.map +1 -1
  107. package/build/nudge/Nudge.mjs.map +1 -1
  108. package/build/phoneNumberInput/PhoneNumberInput.js +3 -10
  109. package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
  110. package/build/phoneNumberInput/PhoneNumberInput.mjs +2 -9
  111. package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
  112. package/build/popover/Popover.js.map +1 -1
  113. package/build/popover/Popover.mjs.map +1 -1
  114. package/build/processIndicator/ProcessIndicator.js.map +1 -1
  115. package/build/processIndicator/ProcessIndicator.mjs.map +1 -1
  116. package/build/prompt/ActionPrompt/ActionPrompt.js.map +1 -1
  117. package/build/prompt/ActionPrompt/ActionPrompt.mjs.map +1 -1
  118. package/build/prompt/InlinePrompt/InlinePrompt.js.map +1 -1
  119. package/build/prompt/InlinePrompt/InlinePrompt.mjs.map +1 -1
  120. package/build/radioOption/RadioOption.js.map +1 -1
  121. package/build/radioOption/RadioOption.mjs.map +1 -1
  122. package/build/select/Select.js.map +1 -1
  123. package/build/select/Select.mjs.map +1 -1
  124. package/build/statusIcon/StatusIcon.js.map +1 -1
  125. package/build/statusIcon/StatusIcon.mjs.map +1 -1
  126. package/build/styles/main.css +126 -126
  127. package/build/styles/sentimentSurface/SentimentSurface.css +36 -36
  128. package/build/summary/Summary.js +1 -1
  129. package/build/summary/Summary.js.map +1 -1
  130. package/build/summary/Summary.mjs +1 -1
  131. package/build/summary/Summary.mjs.map +1 -1
  132. package/build/switchOption/SwitchOption.js +1 -1
  133. package/build/switchOption/SwitchOption.js.map +1 -1
  134. package/build/switchOption/SwitchOption.mjs +1 -1
  135. package/build/switchOption/SwitchOption.mjs.map +1 -1
  136. package/build/tabs/Tabs.js.map +1 -1
  137. package/build/tabs/Tabs.mjs.map +1 -1
  138. package/build/typeahead/Typeahead.js.map +1 -1
  139. package/build/typeahead/Typeahead.mjs.map +1 -1
  140. package/build/types/accordion/Accordion.d.ts +8 -2
  141. package/build/types/accordion/Accordion.d.ts.map +1 -1
  142. package/build/types/actionButton/ActionButton.d.ts +6 -4
  143. package/build/types/actionButton/ActionButton.d.ts.map +1 -1
  144. package/build/types/actionOption/ActionOption.d.ts +1 -1
  145. package/build/types/alert/Alert.d.ts +5 -2
  146. package/build/types/alert/Alert.d.ts.map +1 -1
  147. package/build/types/avatar/Avatar.d.ts +4 -0
  148. package/build/types/avatar/Avatar.d.ts.map +1 -1
  149. package/build/types/avatarLayout/AvatarLayout.d.ts +5 -1
  150. package/build/types/avatarLayout/AvatarLayout.d.ts.map +1 -1
  151. package/build/types/badge/Badge.d.ts +2 -0
  152. package/build/types/badge/Badge.d.ts.map +1 -1
  153. package/build/types/body/Body.d.ts +2 -6
  154. package/build/types/body/Body.d.ts.map +1 -1
  155. package/build/types/button/Button.types.d.ts +4 -1
  156. package/build/types/button/Button.types.d.ts.map +1 -1
  157. package/build/types/button/LegacyButton.d.ts +4 -4
  158. package/build/types/card/Card.d.ts +1 -0
  159. package/build/types/card/Card.d.ts.map +1 -1
  160. package/build/types/checkboxButton/CheckboxButton.d.ts +2 -0
  161. package/build/types/checkboxButton/CheckboxButton.d.ts.map +1 -1
  162. package/build/types/checkboxOption/CheckboxOption.d.ts +1 -1
  163. package/build/types/circularButton/CircularButton.d.ts +1 -1
  164. package/build/types/circularButton/CircularButton.d.ts.map +1 -1
  165. package/build/types/common/propsValues/type.d.ts +1 -1
  166. package/build/types/common/propsValues/typography.d.ts +2 -2
  167. package/build/types/dateInput/DateInput.d.ts +5 -0
  168. package/build/types/dateInput/DateInput.d.ts.map +1 -1
  169. package/build/types/dimmer/Dimmer.d.ts +6 -0
  170. package/build/types/dimmer/Dimmer.d.ts.map +1 -1
  171. package/build/types/drawer/Drawer.d.ts +8 -2
  172. package/build/types/drawer/Drawer.d.ts.map +1 -1
  173. package/build/types/field/Field.d.ts +5 -2
  174. package/build/types/field/Field.d.ts.map +1 -1
  175. package/build/types/flowNavigation/FlowNavigation.d.ts +3 -0
  176. package/build/types/flowNavigation/FlowNavigation.d.ts.map +1 -1
  177. package/build/types/header/Header.d.ts +5 -1
  178. package/build/types/header/Header.d.ts.map +1 -1
  179. package/build/types/iconButton/IconButton.d.ts +6 -0
  180. package/build/types/iconButton/IconButton.d.ts.map +1 -1
  181. package/build/types/inputs/{SelectInput/SelectInput.types.d.ts → SelectInput.d.ts} +38 -12
  182. package/build/types/inputs/SelectInput.d.ts.map +1 -0
  183. package/build/types/inputs/SelectInput.messages.d.ts.map +1 -0
  184. package/build/types/inputs/{SelectInput/BottomSheet/SelectInputBottomSheet.d.ts → _BottomSheet.d.ts} +3 -3
  185. package/build/types/inputs/_BottomSheet.d.ts.map +1 -0
  186. package/build/types/inputs/_ButtonInput.d.ts +5 -0
  187. package/build/types/inputs/_ButtonInput.d.ts.map +1 -0
  188. package/build/types/inputs/{SelectInput/Popover/SelectInputPopover.d.ts → _Popover.d.ts} +3 -3
  189. package/build/types/inputs/_Popover.d.ts.map +1 -0
  190. package/build/types/legacylistItem/LegacyListItem.d.ts +1 -1
  191. package/build/types/list/List.d.ts +1 -0
  192. package/build/types/list/List.d.ts.map +1 -1
  193. package/build/types/listItem/Button/ListItemButton.d.ts +4 -0
  194. package/build/types/listItem/Button/ListItemButton.d.ts.map +1 -1
  195. package/build/types/listItem/IconButton/ListItemIconButton.d.ts +3 -1
  196. package/build/types/listItem/IconButton/ListItemIconButton.d.ts.map +1 -1
  197. package/build/types/listItem/Image/ListItemImage.d.ts +2 -0
  198. package/build/types/listItem/Image/ListItemImage.d.ts.map +1 -1
  199. package/build/types/listItem/ListItem.d.ts +3 -0
  200. package/build/types/listItem/ListItem.d.ts.map +1 -1
  201. package/build/types/loader/Loader.d.ts +5 -1
  202. package/build/types/loader/Loader.d.ts.map +1 -1
  203. package/build/types/logo/Logo.d.ts +4 -1
  204. package/build/types/logo/Logo.d.ts.map +1 -1
  205. package/build/types/modal/Modal.d.ts +6 -0
  206. package/build/types/modal/Modal.d.ts.map +1 -1
  207. package/build/types/navigationOption/NavigationOption.d.ts +1 -1
  208. package/build/types/navigationOptionsList/NavigationOptionsList.d.ts +1 -1
  209. package/build/types/nudge/Nudge.d.ts +1 -1
  210. package/build/types/nudge/Nudge.d.ts.map +1 -1
  211. package/build/types/phoneNumberInput/PhoneNumberInput.d.ts +7 -1
  212. package/build/types/phoneNumberInput/PhoneNumberInput.d.ts.map +1 -1
  213. package/build/types/popover/Popover.d.ts +1 -0
  214. package/build/types/popover/Popover.d.ts.map +1 -1
  215. package/build/types/processIndicator/ProcessIndicator.d.ts +2 -0
  216. package/build/types/processIndicator/ProcessIndicator.d.ts.map +1 -1
  217. package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts +8 -1
  218. package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts.map +1 -1
  219. package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts +1 -0
  220. package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts.map +1 -1
  221. package/build/types/radioOption/RadioOption.d.ts +1 -1
  222. package/build/types/select/Select.d.ts +4 -0
  223. package/build/types/select/Select.d.ts.map +1 -1
  224. package/build/types/statusIcon/StatusIcon.d.ts +3 -1
  225. package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
  226. package/build/types/summary/Summary.d.ts +7 -4
  227. package/build/types/summary/Summary.d.ts.map +1 -1
  228. package/build/types/switchOption/SwitchOption.d.ts +1 -1
  229. package/build/types/tabs/Tabs.d.ts +2 -0
  230. package/build/types/tabs/Tabs.d.ts.map +1 -1
  231. package/build/types/typeahead/Typeahead.d.ts +14 -1
  232. package/build/types/typeahead/Typeahead.d.ts.map +1 -1
  233. package/build/types/upload/Upload.d.ts +6 -0
  234. package/build/types/upload/Upload.d.ts.map +1 -1
  235. package/build/types/uploadInput/UploadInput.d.ts +10 -1
  236. package/build/types/uploadInput/UploadInput.d.ts.map +1 -1
  237. package/build/types/withDisplayFormat/WithDisplayFormat.d.ts +3 -0
  238. package/build/types/withDisplayFormat/WithDisplayFormat.d.ts.map +1 -1
  239. package/build/upload/Upload.js.map +1 -1
  240. package/build/upload/Upload.mjs.map +1 -1
  241. package/build/uploadInput/UploadInput.js.map +1 -1
  242. package/build/uploadInput/UploadInput.mjs.map +1 -1
  243. package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
  244. package/build/withDisplayFormat/WithDisplayFormat.mjs.map +1 -1
  245. package/package.json +1 -1
  246. package/src/accordion/Accordion.tsx +8 -2
  247. package/src/actionButton/ActionButton.tsx +4 -3
  248. package/src/actionOption/ActionOption.tsx +1 -1
  249. package/src/alert/Alert.tsx +5 -2
  250. package/src/avatar/Avatar.tsx +4 -0
  251. package/src/avatarLayout/AvatarLayout.tsx +5 -1
  252. package/src/badge/Badge.tsx +2 -0
  253. package/src/body/Body.tsx +2 -6
  254. package/src/button/Button.types.ts +4 -1
  255. package/src/button/LegacyButton.tsx +4 -4
  256. package/src/card/Card.tsx +1 -0
  257. package/src/checkboxButton/CheckboxButton.tsx +1 -0
  258. package/src/checkboxOption/CheckboxOption.tsx +1 -1
  259. package/src/circularButton/CircularButton.tsx +1 -2
  260. package/src/common/propsValues/type.ts +1 -1
  261. package/src/common/propsValues/typography.ts +2 -2
  262. package/src/dateInput/DateInput.tsx +5 -0
  263. package/src/dimmer/Dimmer.tsx +6 -0
  264. package/src/drawer/Drawer.tsx +8 -2
  265. package/src/field/Field.tsx +5 -2
  266. package/src/flowNavigation/FlowNavigation.tsx +3 -0
  267. package/src/header/Header.tsx +5 -1
  268. package/src/iconButton/IconButton.tsx +3 -0
  269. package/src/inputs/{SelectInput/_stories/SelectInput.docs.mdx → SelectInput.docs.mdx} +1 -0
  270. package/src/inputs/SelectInput.less +219 -0
  271. package/src/inputs/{SelectInput/_stories/SelectInput.story.tsx → SelectInput.story.tsx} +8 -11
  272. package/src/inputs/{SelectInput/_stories/SelectInput.test.story.tsx → SelectInput.test.story.tsx} +10 -5
  273. package/src/inputs/{SelectInput/SelectInput.test.tsx → SelectInput.test.tsx} +11 -9
  274. package/src/inputs/SelectInput.tsx +1269 -0
  275. package/src/inputs/{SelectInput/BottomSheet/SelectInputBottomSheet.tsx → _BottomSheet.tsx} +7 -7
  276. package/src/inputs/{SelectInput/ButtonInput/SelectInputButtonInput.tsx → _ButtonInput.tsx} +5 -5
  277. package/src/inputs/{SelectInput/Popover/SelectInputPopover.tsx → _Popover.tsx} +7 -7
  278. package/src/legacylistItem/LegacyListItem.tsx +1 -1
  279. package/src/list/List.tsx +1 -0
  280. package/src/listItem/Button/ListItemButton.tsx +2 -0
  281. package/src/listItem/IconButton/ListItemIconButton.tsx +3 -1
  282. package/src/listItem/Image/ListItemImage.tsx +2 -0
  283. package/src/listItem/ListItem.tsx +2 -0
  284. package/src/loader/Loader.tsx +6 -2
  285. package/src/logo/Logo.tsx +4 -1
  286. package/src/main.css +126 -126
  287. package/src/main.less +1 -1
  288. package/src/modal/Modal.tsx +6 -0
  289. package/src/navigationOption/NavigationOption.tsx +1 -1
  290. package/src/navigationOptionsList/NavigationOptionsList.tsx +1 -1
  291. package/src/nudge/Nudge.tsx +1 -1
  292. package/src/phoneNumberInput/PhoneNumberInput.tsx +7 -1
  293. package/src/popover/Popover.tsx +1 -0
  294. package/src/processIndicator/ProcessIndicator.tsx +2 -0
  295. package/src/prompt/ActionPrompt/ActionPrompt.tsx +8 -1
  296. package/src/prompt/InlinePrompt/InlinePrompt.tsx +1 -0
  297. package/src/radioOption/RadioOption.tsx +1 -1
  298. package/src/select/Select.tsx +4 -0
  299. package/src/sentimentSurface/SentimentSurface.css +36 -36
  300. package/src/sentimentSurface/SentimentSurface.less +12 -12
  301. package/src/statusIcon/StatusIcon.tsx +3 -1
  302. package/src/summary/Summary.tsx +7 -4
  303. package/src/switchOption/SwitchOption.tsx +1 -1
  304. package/src/tabs/Tabs.tsx +2 -0
  305. package/src/typeahead/Typeahead.tsx +14 -2
  306. package/src/upload/Upload.tsx +6 -0
  307. package/src/uploadInput/UploadInput.tsx +12 -4
  308. package/src/withDisplayFormat/WithDisplayFormat.tsx +3 -0
  309. package/build/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js.map +0 -1
  310. package/build/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs.map +0 -1
  311. package/build/inputs/SelectInput/ButtonInput/SelectInputButtonInput.js.map +0 -1
  312. package/build/inputs/SelectInput/ButtonInput/SelectInputButtonInput.mjs.map +0 -1
  313. package/build/inputs/SelectInput/ClearButton/SelectInputClearButton.js +0 -27
  314. package/build/inputs/SelectInput/ClearButton/SelectInputClearButton.js.map +0 -1
  315. package/build/inputs/SelectInput/ClearButton/SelectInputClearButton.mjs +0 -25
  316. package/build/inputs/SelectInput/ClearButton/SelectInputClearButton.mjs.map +0 -1
  317. package/build/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.js +0 -59
  318. package/build/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.js.map +0 -1
  319. package/build/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.mjs +0 -56
  320. package/build/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.mjs.map +0 -1
  321. package/build/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.js +0 -50
  322. package/build/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.js.map +0 -1
  323. package/build/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.mjs +0 -48
  324. package/build/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.mjs.map +0 -1
  325. package/build/inputs/SelectInput/ItemView/SelectInputItemView.js +0 -47
  326. package/build/inputs/SelectInput/ItemView/SelectInputItemView.js.map +0 -1
  327. package/build/inputs/SelectInput/ItemView/SelectInputItemView.mjs +0 -45
  328. package/build/inputs/SelectInput/ItemView/SelectInputItemView.mjs.map +0 -1
  329. package/build/inputs/SelectInput/Option/SelectInputOption.js +0 -42
  330. package/build/inputs/SelectInput/Option/SelectInputOption.js.map +0 -1
  331. package/build/inputs/SelectInput/Option/SelectInputOption.mjs +0 -40
  332. package/build/inputs/SelectInput/Option/SelectInputOption.mjs.map +0 -1
  333. package/build/inputs/SelectInput/OptionContent/SelectInputOptionContent.js +0 -40
  334. package/build/inputs/SelectInput/OptionContent/SelectInputOptionContent.js.map +0 -1
  335. package/build/inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs +0 -38
  336. package/build/inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs.map +0 -1
  337. package/build/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.js +0 -48
  338. package/build/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.js.map +0 -1
  339. package/build/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.mjs +0 -46
  340. package/build/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.mjs.map +0 -1
  341. package/build/inputs/SelectInput/Options/SelectInputOptions.js +0 -300
  342. package/build/inputs/SelectInput/Options/SelectInputOptions.js.map +0 -1
  343. package/build/inputs/SelectInput/Options/SelectInputOptions.mjs +0 -298
  344. package/build/inputs/SelectInput/Options/SelectInputOptions.mjs.map +0 -1
  345. package/build/inputs/SelectInput/Popover/SelectInputPopover.js.map +0 -1
  346. package/build/inputs/SelectInput/Popover/SelectInputPopover.mjs.map +0 -1
  347. package/build/inputs/SelectInput/SelectInput.contexts.js +0 -29
  348. package/build/inputs/SelectInput/SelectInput.contexts.js.map +0 -1
  349. package/build/inputs/SelectInput/SelectInput.contexts.mjs +0 -24
  350. package/build/inputs/SelectInput/SelectInput.contexts.mjs.map +0 -1
  351. package/build/inputs/SelectInput/SelectInput.js +0 -222
  352. package/build/inputs/SelectInput/SelectInput.js.map +0 -1
  353. package/build/inputs/SelectInput/SelectInput.messages.js.map +0 -1
  354. package/build/inputs/SelectInput/SelectInput.messages.mjs.map +0 -1
  355. package/build/inputs/SelectInput/SelectInput.mjs +0 -216
  356. package/build/inputs/SelectInput/SelectInput.mjs.map +0 -1
  357. package/build/inputs/SelectInput/SelectInput.utils.js +0 -164
  358. package/build/inputs/SelectInput/SelectInput.utils.js.map +0 -1
  359. package/build/inputs/SelectInput/SelectInput.utils.mjs +0 -154
  360. package/build/inputs/SelectInput/SelectInput.utils.mjs.map +0 -1
  361. package/build/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.js +0 -42
  362. package/build/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.js.map +0 -1
  363. package/build/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.mjs +0 -36
  364. package/build/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.mjs.map +0 -1
  365. package/build/styles/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.css +0 -96
  366. package/build/styles/inputs/SelectInput/ButtonInput/SelectInputButtonInput.css +0 -16
  367. package/build/styles/inputs/SelectInput/ClearButton/SelectInputClearButton.css +0 -46
  368. package/build/styles/inputs/SelectInput/ItemView/SelectInputItemView.css +0 -16
  369. package/build/styles/inputs/SelectInput/Option/SelectInputOption.css +0 -33
  370. package/build/styles/inputs/SelectInput/OptionContent/SelectInputOptionContent.css +0 -37
  371. package/build/styles/inputs/SelectInput/Options/SelectInputOptions.css +0 -81
  372. package/build/styles/inputs/SelectInput/Popover/SelectInputPopover.css +0 -46
  373. package/build/types/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.d.ts.map +0 -1
  374. package/build/types/inputs/SelectInput/BottomSheet/index.d.ts +0 -3
  375. package/build/types/inputs/SelectInput/BottomSheet/index.d.ts.map +0 -1
  376. package/build/types/inputs/SelectInput/ButtonInput/SelectInputButtonInput.d.ts +0 -5
  377. package/build/types/inputs/SelectInput/ButtonInput/SelectInputButtonInput.d.ts.map +0 -1
  378. package/build/types/inputs/SelectInput/ButtonInput/index.d.ts +0 -3
  379. package/build/types/inputs/SelectInput/ButtonInput/index.d.ts.map +0 -1
  380. package/build/types/inputs/SelectInput/ClearButton/SelectInputClearButton.d.ts +0 -7
  381. package/build/types/inputs/SelectInput/ClearButton/SelectInputClearButton.d.ts.map +0 -1
  382. package/build/types/inputs/SelectInput/ClearButton/index.d.ts +0 -3
  383. package/build/types/inputs/SelectInput/ClearButton/index.d.ts.map +0 -1
  384. package/build/types/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.d.ts +0 -16
  385. package/build/types/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.d.ts.map +0 -1
  386. package/build/types/inputs/SelectInput/DefaultRenderTrigger/index.d.ts +0 -2
  387. package/build/types/inputs/SelectInput/DefaultRenderTrigger/index.d.ts.map +0 -1
  388. package/build/types/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.d.ts +0 -9
  389. package/build/types/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.d.ts.map +0 -1
  390. package/build/types/inputs/SelectInput/ItemView/GroupItemView/index.d.ts +0 -3
  391. package/build/types/inputs/SelectInput/ItemView/GroupItemView/index.d.ts.map +0 -1
  392. package/build/types/inputs/SelectInput/ItemView/SelectInputItemView.d.ts +0 -11
  393. package/build/types/inputs/SelectInput/ItemView/SelectInputItemView.d.ts.map +0 -1
  394. package/build/types/inputs/SelectInput/ItemView/index.d.ts +0 -4
  395. package/build/types/inputs/SelectInput/ItemView/index.d.ts.map +0 -1
  396. package/build/types/inputs/SelectInput/Option/SelectInputOption.d.ts +0 -11
  397. package/build/types/inputs/SelectInput/Option/SelectInputOption.d.ts.map +0 -1
  398. package/build/types/inputs/SelectInput/Option/index.d.ts +0 -3
  399. package/build/types/inputs/SelectInput/Option/index.d.ts.map +0 -1
  400. package/build/types/inputs/SelectInput/OptionContent/SelectInputOptionContent.d.ts +0 -13
  401. package/build/types/inputs/SelectInput/OptionContent/SelectInputOptionContent.d.ts.map +0 -1
  402. package/build/types/inputs/SelectInput/OptionContent/index.d.ts +0 -3
  403. package/build/types/inputs/SelectInput/OptionContent/index.d.ts.map +0 -1
  404. package/build/types/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.d.ts +0 -9
  405. package/build/types/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.d.ts.map +0 -1
  406. package/build/types/inputs/SelectInput/Options/OptionsContainer/index.d.ts +0 -3
  407. package/build/types/inputs/SelectInput/Options/OptionsContainer/index.d.ts.map +0 -1
  408. package/build/types/inputs/SelectInput/Options/SelectInputOptions.d.ts +0 -21
  409. package/build/types/inputs/SelectInput/Options/SelectInputOptions.d.ts.map +0 -1
  410. package/build/types/inputs/SelectInput/Options/index.d.ts +0 -4
  411. package/build/types/inputs/SelectInput/Options/index.d.ts.map +0 -1
  412. package/build/types/inputs/SelectInput/Popover/SelectInputPopover.d.ts.map +0 -1
  413. package/build/types/inputs/SelectInput/Popover/index.d.ts +0 -3
  414. package/build/types/inputs/SelectInput/Popover/index.d.ts.map +0 -1
  415. package/build/types/inputs/SelectInput/SelectInput.contexts.d.ts +0 -33
  416. package/build/types/inputs/SelectInput/SelectInput.contexts.d.ts.map +0 -1
  417. package/build/types/inputs/SelectInput/SelectInput.d.ts +0 -10
  418. package/build/types/inputs/SelectInput/SelectInput.d.ts.map +0 -1
  419. package/build/types/inputs/SelectInput/SelectInput.messages.d.ts.map +0 -1
  420. package/build/types/inputs/SelectInput/SelectInput.types.d.ts.map +0 -1
  421. package/build/types/inputs/SelectInput/SelectInput.utils.d.ts +0 -61
  422. package/build/types/inputs/SelectInput/SelectInput.utils.d.ts.map +0 -1
  423. package/build/types/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.d.ts +0 -12
  424. package/build/types/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.d.ts.map +0 -1
  425. package/build/types/inputs/SelectInput/TriggerButton/index.d.ts +0 -3
  426. package/build/types/inputs/SelectInput/TriggerButton/index.d.ts.map +0 -1
  427. package/build/types/inputs/SelectInput/components.d.ts +0 -10
  428. package/build/types/inputs/SelectInput/components.d.ts.map +0 -1
  429. package/build/types/inputs/SelectInput/index.d.ts +0 -12
  430. package/build/types/inputs/SelectInput/index.d.ts.map +0 -1
  431. package/src/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.css +0 -96
  432. package/src/inputs/SelectInput/BottomSheet/index.ts +0 -2
  433. package/src/inputs/SelectInput/ButtonInput/SelectInputButtonInput.css +0 -16
  434. package/src/inputs/SelectInput/ButtonInput/index.ts +0 -2
  435. package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.css +0 -46
  436. package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.less +0 -40
  437. package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.tsx +0 -29
  438. package/src/inputs/SelectInput/ClearButton/index.ts +0 -2
  439. package/src/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.tsx +0 -74
  440. package/src/inputs/SelectInput/DefaultRenderTrigger/index.ts +0 -5
  441. package/src/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.tsx +0 -61
  442. package/src/inputs/SelectInput/ItemView/GroupItemView/index.ts +0 -2
  443. package/src/inputs/SelectInput/ItemView/SelectInputItemView.css +0 -16
  444. package/src/inputs/SelectInput/ItemView/SelectInputItemView.less +0 -17
  445. package/src/inputs/SelectInput/ItemView/SelectInputItemView.tsx +0 -48
  446. package/src/inputs/SelectInput/ItemView/index.ts +0 -3
  447. package/src/inputs/SelectInput/Option/SelectInputOption.css +0 -33
  448. package/src/inputs/SelectInput/Option/SelectInputOption.less +0 -32
  449. package/src/inputs/SelectInput/Option/SelectInputOption.tsx +0 -57
  450. package/src/inputs/SelectInput/Option/index.ts +0 -2
  451. package/src/inputs/SelectInput/OptionContent/SelectInputOptionContent.css +0 -37
  452. package/src/inputs/SelectInput/OptionContent/SelectInputOptionContent.less +0 -38
  453. package/src/inputs/SelectInput/OptionContent/SelectInputOptionContent.tsx +0 -72
  454. package/src/inputs/SelectInput/OptionContent/index.ts +0 -2
  455. package/src/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.tsx +0 -59
  456. package/src/inputs/SelectInput/Options/OptionsContainer/index.ts +0 -2
  457. package/src/inputs/SelectInput/Options/SelectInputOptions.css +0 -81
  458. package/src/inputs/SelectInput/Options/SelectInputOptions.less +0 -77
  459. package/src/inputs/SelectInput/Options/SelectInputOptions.tsx +0 -411
  460. package/src/inputs/SelectInput/Options/index.ts +0 -3
  461. package/src/inputs/SelectInput/Popover/SelectInputPopover.css +0 -46
  462. package/src/inputs/SelectInput/Popover/index.ts +0 -2
  463. package/src/inputs/SelectInput/SelectInput.contexts.tsx +0 -40
  464. package/src/inputs/SelectInput/SelectInput.less +0 -22
  465. package/src/inputs/SelectInput/SelectInput.tsx +0 -257
  466. package/src/inputs/SelectInput/SelectInput.types.ts +0 -113
  467. package/src/inputs/SelectInput/SelectInput.utils.ts +0 -206
  468. package/src/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.tsx +0 -36
  469. package/src/inputs/SelectInput/TriggerButton/index.ts +0 -5
  470. package/src/inputs/SelectInput/components.ts +0 -10
  471. package/src/inputs/SelectInput/index.ts +0 -14
  472. package/build/inputs/{SelectInput/SelectInput.messages.js → SelectInput.messages.js} +0 -0
  473. package/build/inputs/{SelectInput/SelectInput.messages.mjs → SelectInput.messages.mjs} +0 -0
  474. package/build/styles/inputs/{SelectInput/SelectInput.css → SelectInput.css} +90 -90
  475. package/build/types/inputs/{SelectInput/SelectInput.messages.d.ts → SelectInput.messages.d.ts} +0 -0
  476. package/src/inputs/{SelectInput/SelectInput.css → SelectInput.css} +90 -90
  477. /package/src/inputs/{SelectInput/SelectInput.messages.ts → SelectInput.messages.ts} +0 -0
  478. /package/src/inputs/{SelectInput/BottomSheet/SelectInputBottomSheet.less → _BottomSheet.less} +0 -0
  479. /package/src/inputs/{SelectInput/ButtonInput/SelectInputButtonInput.less → _ButtonInput.less} +0 -0
  480. /package/src/inputs/{SelectInput/Popover/SelectInputPopover.less → _Popover.less} +0 -0
@@ -12,12 +12,12 @@ import { ThemeProvider, useTheme } from '@wise/components-theming';
12
12
  import { clsx } from 'clsx';
13
13
  import { Fragment, useState } from 'react';
14
14
 
15
- import { CloseButton } from '../../../common/closeButton';
16
- import { useVirtualKeyboard } from '../../../common/hooks/useVirtualKeyboard';
17
- import { PreventScroll } from '../../../common/preventScroll/PreventScroll';
18
- import { Size } from '../../../common/propsValues/size';
15
+ import { CloseButton } from '../common/closeButton';
16
+ import { useVirtualKeyboard } from '../common/hooks/useVirtualKeyboard';
17
+ import { PreventScroll } from '../common/preventScroll/PreventScroll';
18
+ import { Size } from '../common/propsValues/size';
19
19
 
20
- export interface SelectInputBottomSheetProps {
20
+ export interface BottomSheetProps {
21
21
  open: boolean;
22
22
  renderTrigger?: (args: {
23
23
  ref: React.RefCallback<Element>;
@@ -33,7 +33,7 @@ export interface SelectInputBottomSheetProps {
33
33
  onCloseEnd?: () => void;
34
34
  }
35
35
 
36
- export function SelectInputBottomSheet({
36
+ export function BottomSheet({
37
37
  open,
38
38
  renderTrigger,
39
39
  title,
@@ -42,7 +42,7 @@ export function SelectInputBottomSheet({
42
42
  children,
43
43
  onClose,
44
44
  onCloseEnd,
45
- }: SelectInputBottomSheetProps) {
45
+ }: BottomSheetProps) {
46
46
  useVirtualKeyboard(open);
47
47
 
48
48
  const { refs, context } = useFloating<Element>({
@@ -1,15 +1,15 @@
1
1
  import { clsx } from 'clsx';
2
2
  import { forwardRef } from 'react';
3
3
 
4
- import { useInputPaddings } from '../../InputGroup';
5
- import { inputClassNameBase } from '../../_common';
4
+ import { useInputPaddings } from './InputGroup';
5
+ import { inputClassNameBase } from './_common';
6
6
 
7
- export interface SelectInputButtonInputProps extends React.ComponentPropsWithRef<'button'> {
7
+ export interface ButtonInputProps extends React.ComponentPropsWithRef<'button'> {
8
8
  size?: 'sm' | 'md' | 'lg';
9
9
  }
10
10
 
11
- export const SelectInputButtonInput = forwardRef(function ButtonInput(
12
- { size = 'md', className, style, ...restProps }: SelectInputButtonInputProps,
11
+ export const ButtonInput = forwardRef(function ButtonInput(
12
+ { size = 'md', className, style, ...restProps }: ButtonInputProps,
13
13
  ref: React.ForwardedRef<HTMLButtonElement | null>,
14
14
  ) {
15
15
  const inputPaddings = useInputPaddings();
@@ -18,9 +18,9 @@ import { ThemeProvider, useTheme } from '@wise/components-theming';
18
18
  import { clsx } from 'clsx';
19
19
  import { useState } from 'react';
20
20
 
21
- import { PreventScroll } from '../../../common/preventScroll/PreventScroll';
21
+ import { PreventScroll } from '../common/preventScroll/PreventScroll';
22
22
 
23
- export interface SelectInputPopoverProps {
23
+ export interface PopoverProps {
24
24
  placement?: Placement;
25
25
  open: boolean;
26
26
  renderTrigger: (args: {
@@ -37,9 +37,9 @@ export interface SelectInputPopoverProps {
37
37
  onCloseEnd?: () => void;
38
38
  }
39
39
 
40
- const FLOATING_PADDING = 16;
40
+ const floatingPadding = 16;
41
41
 
42
- export function SelectInputPopover({
42
+ export function Popover({
43
43
  placement,
44
44
  open,
45
45
  renderTrigger,
@@ -49,16 +49,16 @@ export function SelectInputPopover({
49
49
  children,
50
50
  onClose,
51
51
  onCloseEnd,
52
- }: SelectInputPopoverProps) {
52
+ }: PopoverProps) {
53
53
  const { refs, floatingStyles, context } = useFloating<Element>({
54
54
  strategy: 'fixed',
55
55
  placement,
56
56
  middleware: [
57
57
  offset(8),
58
- flip({ padding: FLOATING_PADDING, crossAxis: false }),
58
+ flip({ padding: floatingPadding, crossAxis: false }),
59
59
  shift(),
60
60
  floatingSize({
61
- padding: FLOATING_PADDING,
61
+ padding: floatingPadding,
62
62
  apply: ({ elements, rects, availableHeight }) => {
63
63
  elements.floating.style.setProperty('--max-height', `${availableHeight}px`);
64
64
  elements.floating.style.setProperty('--width', `${rects.reference.width}px`);
@@ -14,7 +14,7 @@ export type LegacyListItemProps = {
14
14
  };
15
15
 
16
16
  /**
17
- * @deprecated Please use `<ListItem />` instead.
17
+ * @deprecated Use `<ListItem />` instead.
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)
package/src/list/List.tsx CHANGED
@@ -2,6 +2,7 @@ import { clsx } from 'clsx';
2
2
  import React from 'react';
3
3
 
4
4
  export interface ListProps {
5
+ /** @default 'ul' */
5
6
  as?: 'ul' | 'ol' | 'div';
6
7
  className?: string;
7
8
  children?: React.ReactNode;
@@ -13,6 +13,8 @@ export type ListItemButtonProps = Omit<
13
13
  */
14
14
  partiallyInteractive?: boolean;
15
15
  addonStart?: ButtonAddonIcon;
16
+ /** @default 'secondary-neutral' */
17
+ priority?: NewButtonProps['priority'];
16
18
  };
17
19
 
18
20
  /**
@@ -6,10 +6,12 @@ import { ListItemContext } from '../ListItemContext';
6
6
 
7
7
  export type ListItemIconButtonProps = Pick<
8
8
  IconButtonProps,
9
- 'priority' | 'type' | 'onClick' | 'href' | 'target' | 'aria-label'
9
+ 'type' | 'onClick' | 'href' | 'target' | 'aria-label'
10
10
  > & {
11
11
  children: ReactNode;
12
12
  partiallyInteractive?: boolean;
13
+ /** @default 'minimal' */
14
+ priority?: IconButtonProps['priority'];
13
15
  };
14
16
 
15
17
  /**
@@ -6,10 +6,12 @@ import { ListItemMediaSize } from '../ListItemContext';
6
6
  export type ListItemImageProps = Omit<ImageProps, 'stretch' | 'shrink' | 'id' | 'alt' | 'role'> & {
7
7
  /**
8
8
  * The size of square container for the image, matching available avatar sizes.
9
+ * @default 48
9
10
  */
10
11
  size?: ListItemMediaSize;
11
12
  /**
12
13
  * When unset, it will force `role="presentation"` on the image. Otherwise, the image will use its implicit img role.
14
+ * @default ''
13
15
  */
14
16
  alt?: string;
15
17
  };
@@ -45,6 +45,7 @@ export type ListItemControlProps =
45
45
  | ListItemSwitchProps;
46
46
 
47
47
  export type ListItemProps = {
48
+ /** @default 'li' */
48
49
  as?: 'li' | 'div';
49
50
  /**
50
51
  * Swaps vertical hierarchy of title and subtitle and their corresponding right values.
@@ -88,6 +89,7 @@ export type ListItemProps = {
88
89
  * `<ListItem.Navigation />`, <br/>
89
90
  * `<ListItem.Radio />`, or
90
91
  * `<ListItem.Switch />`
92
+ * @default null
91
93
  */
92
94
  control?: ReactNode;
93
95
  /**
@@ -4,19 +4,23 @@ import { useEffect, useState } from 'react';
4
4
 
5
5
  import { Size, SizeExtraSmall, SizeSmall, SizeMedium, SizeLarge, SizeExtraLarge } from '../common';
6
6
 
7
- // TODO: We gracefully depracated xs, lg and xl -- remove these as part of a future breaking change to this component
7
+ // TODO: We gracefully deprecated xs, lg and xl -- remove these as part of a future breaking change to this component
8
8
  type DeprecatedSize = SizeExtraSmall | SizeLarge | SizeExtraLarge;
9
9
 
10
10
  type SizeType = SizeSmall | SizeMedium;
11
11
 
12
12
  export type LoaderProps = {
13
13
  /**
14
- * @deprecated use `size` instead
14
+ * @deprecated Use `size` instead.
15
+ * @default false
15
16
  */
16
17
  small?: boolean;
18
+ /** @default 'md' */
17
19
  size?: SizeType | DeprecatedSize;
20
+ /** @default false */
18
21
  displayInstantly?: boolean;
19
22
  // TODO: refactor in favor of prop from `CommonProps` type
23
+ /** @default {} */
20
24
  classNames?: Record<string, string>;
21
25
  'data-testid'?: string;
22
26
  };
package/src/logo/Logo.tsx CHANGED
@@ -35,7 +35,10 @@ export interface LogoProps {
35
35
  className?: string;
36
36
  /** If true, will use dark colours for dark on light theme */
37
37
  inverse?: boolean;
38
- /** What type of logo to display */
38
+ /**
39
+ * What type of logo to display
40
+ * @default 'WISE'
41
+ */
39
42
  type?: `${LogoType}`;
40
43
  }
41
44
 
package/src/main.css CHANGED
@@ -226,12 +226,12 @@
226
226
  .np-theme-platform.wds-sentiment-surface-success-elevated,
227
227
  .np-theme-personal--bright-green.wds-sentiment-surface-success-elevated,
228
228
  .np-theme-business--bright-green.wds-sentiment-surface-success-elevated {
229
- --color-sentiment-content-primary: #E2F6D5;
230
- --color-sentiment-content-primary-hover: #D3F2C0;
231
- --color-sentiment-content-primary-active: #C5EDAB;
232
- --color-sentiment-interactive-primary: #E2F6D5;
233
- --color-sentiment-interactive-primary-hover: #D3F2C0;
234
- --color-sentiment-interactive-primary-active: #C5EDAB;
229
+ --color-sentiment-content-primary: #CEF1B8;
230
+ --color-sentiment-content-primary-hover: #E0FFCC;
231
+ --color-sentiment-content-primary-active: #E1F4D4;
232
+ --color-sentiment-interactive-primary: #CEF1B8;
233
+ --color-sentiment-interactive-primary-hover: #E0FFCC;
234
+ --color-sentiment-interactive-primary-active: #E1F4D4;
235
235
  --color-sentiment-interactive-secondary: #054D28;
236
236
  --color-sentiment-interactive-secondary-hover: #043A1E;
237
237
  --color-sentiment-interactive-secondary-active: #022614;
@@ -250,24 +250,24 @@
250
250
  .np-theme-personal--forest-green.wds-sentiment-surface-success-base,
251
251
  .np-theme-business--forest-green.wds-sentiment-surface-success-base,
252
252
  .np-theme-platform--forest-green.wds-sentiment-surface-success-base {
253
- --color-sentiment-content-primary: #BAE5A0;
254
- --color-sentiment-content-primary-hover: #C8EAB3;
255
- --color-sentiment-content-primary-active: #D6F0C7;
256
- --color-sentiment-interactive-primary: #BAE5A0;
257
- --color-sentiment-interactive-primary-hover: #C8EAB3;
258
- --color-sentiment-interactive-primary-active: #D6F0C7;
259
- --color-sentiment-interactive-secondary: #252C20;
260
- --color-sentiment-interactive-secondary-hover: #323B2B;
261
- --color-sentiment-interactive-secondary-active: #3E4A36;
262
- --color-sentiment-interactive-secondary-neutral: #37422F;
263
- --color-sentiment-interactive-secondary-neutral-hover: #46533B;
264
- --color-sentiment-interactive-secondary-neutral-active: #546548;
265
- --color-sentiment-interactive-control: #252C20;
266
- --color-sentiment-interactive-control-hover: #323B2B;
267
- --color-sentiment-interactive-control-active: #3E4A36;
268
- --color-sentiment-background-surface: #252C20;
269
- --color-sentiment-background-surface-hover: #323B2B;
270
- --color-sentiment-background-surface-active: #3E4A36;
253
+ --color-sentiment-content-primary: #CEF1B8;
254
+ --color-sentiment-content-primary-hover: #E0FFCC;
255
+ --color-sentiment-content-primary-active: #E1F4D4;
256
+ --color-sentiment-interactive-primary: #CEF1B8;
257
+ --color-sentiment-interactive-primary-hover: #E0FFCC;
258
+ --color-sentiment-interactive-primary-active: #E1F4D4;
259
+ --color-sentiment-interactive-secondary: #054D28;
260
+ --color-sentiment-interactive-secondary-hover: #043A1E;
261
+ --color-sentiment-interactive-secondary-active: #022614;
262
+ --color-sentiment-interactive-secondary-neutral: #256A43;
263
+ --color-sentiment-interactive-secondary-neutral-hover: #2A794C;
264
+ --color-sentiment-interactive-secondary-neutral-active: #329057;
265
+ --color-sentiment-interactive-control: #054D28;
266
+ --color-sentiment-interactive-control-hover: #043A1E;
267
+ --color-sentiment-interactive-control-active: #022614;
268
+ --color-sentiment-background-surface: #054D28;
269
+ --color-sentiment-background-surface-hover: #043A1E;
270
+ --color-sentiment-background-surface-active: #022614;
271
271
  }
272
272
  .np-theme-personal--dark.wds-sentiment-surface-success-elevated,
273
273
  .np-theme-business--dark.wds-sentiment-surface-success-elevated,
@@ -448,18 +448,18 @@
448
448
  --color-sentiment-interactive-primary: #E0F7F7;
449
449
  --color-sentiment-interactive-primary-hover: #CAF1F1;
450
450
  --color-sentiment-interactive-primary-active: #B6ECEC;
451
- --color-sentiment-interactive-secondary: #0B312F;
452
- --color-sentiment-interactive-secondary-hover: #124F4C;
453
- --color-sentiment-interactive-secondary-active: #176460;
454
- --color-sentiment-interactive-secondary-neutral: #174E4D;
455
- --color-sentiment-interactive-secondary-neutral-hover: #1D6261;
456
- --color-sentiment-interactive-secondary-neutral-active: #237675;
457
- --color-sentiment-interactive-control: #0B312F;
458
- --color-sentiment-interactive-control-hover: #124F4C;
459
- --color-sentiment-interactive-control-active: #176460;
460
- --color-sentiment-background-surface: #0B312F;
461
- --color-sentiment-background-surface-hover: #124F4C;
462
- --color-sentiment-background-surface-active: #176460;
451
+ --color-sentiment-interactive-secondary: #054D4D;
452
+ --color-sentiment-interactive-secondary-hover: #043A3A;
453
+ --color-sentiment-interactive-secondary-active: #022626;
454
+ --color-sentiment-interactive-secondary-neutral: #1F6161;
455
+ --color-sentiment-interactive-secondary-neutral-hover: #247070;
456
+ --color-sentiment-interactive-secondary-neutral-active: #298080;
457
+ --color-sentiment-interactive-control: #054D4D;
458
+ --color-sentiment-interactive-control-hover: #043A3A;
459
+ --color-sentiment-interactive-control-active: #022626;
460
+ --color-sentiment-background-surface: #054D4D;
461
+ --color-sentiment-background-surface-hover: #043A3A;
462
+ --color-sentiment-background-surface-active: #022626;
463
463
  }
464
464
  .np-theme-personal--dark.wds-sentiment-surface-proposition-elevated,
465
465
  .np-theme-business--dark.wds-sentiment-surface-proposition-elevated,
@@ -4002,91 +4002,14 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
4002
4002
  color: #5d7079;
4003
4003
  color: var(--color-content-secondary);
4004
4004
  }
4005
- .np-select-input-option-container {
4006
- display: flex;
4007
- cursor: default;
4008
- -webkit-user-select: none;
4009
- -moz-user-select: none;
4010
- user-select: none;
4011
- align-items: center;
4012
- -moz-column-gap: 8px;
4013
- column-gap: 8px;
4014
- -moz-column-gap: var(--size-8);
4015
- column-gap: var(--size-8);
4016
- border-radius: 10px;
4017
- border-radius: var(--radius-small);
4018
- padding: 12px 16px;
4019
- padding: var(--size-12) var(--size-16);
4020
- color: var(--color-interactive-primary);
4021
- }
4022
- .np-select-input-option-container:focus {
4023
- outline: none;
4024
- }
4025
- .np-select-input-option-container--active {
4026
- box-shadow: inset 0 0 0 1px #c9cbce;
4027
- box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
4028
- }
4029
- .np-select-input-option-container--disabled {
4030
- opacity: 0.45;
4031
- }
4032
- .np-select-input-option-check--not-selected {
4033
- visibility: hidden;
4034
- }
4035
- .np-select-input-option {
4036
- flex: 1;
4037
- }
4038
- .np-select-input-option-content-container {
4039
- display: flex;
4040
- align-items: center;
4041
- -moz-column-gap: 8px;
4042
- column-gap: 8px;
4043
- -moz-column-gap: var(--size-8);
4044
- column-gap: var(--size-8);
4045
- color: #37517e;
4046
- color: var(--color-content-primary);
4047
- }
4048
- .np-select-input-option-content-icon {
4049
- display: flex;
4050
- }
4051
- .np-select-input-option-content-icon--not-within-trigger {
4052
- align-self: flex-start;
4053
- }
4054
- .np-select-input-option-content-text {
4055
- display: flex;
4056
- flex: 1;
4057
- flex-direction: column;
4058
- overflow: hidden;
4059
- }
4060
- .np-select-input-option-content-text-secondary {
4061
- color: #5d7079;
4062
- color: var(--color-content-secondary);
4063
- }
4064
- .np-select-input-option-content-text-within-trigger {
4005
+ .np-select-input-content {
4065
4006
  overflow: hidden;
4066
4007
  text-overflow: ellipsis;
4067
4008
  white-space: nowrap;
4068
4009
  }
4069
- .np-select-input-option-content-text-line-1 > :not([hidden]) ~ :not([hidden]) {
4070
- margin-right: 8px;
4071
- margin-right: var(--size-8);
4072
- margin-left: 8px;
4073
- margin-left: var(--size-8);
4074
- }
4075
- .np-select-input-group-item--without-needle:first-child {
4076
- margin-top: calc(-1 * 8px);
4077
- margin-top: calc(-1 * var(--size-8));
4078
- }
4079
- .np-select-input-group-item-header {
4080
- position: sticky;
4081
- top: 0px;
4082
- z-index: 10;
4083
- background-color: #ffffff;
4084
- background-color: var(--color-background-elevated);
4085
- }
4086
- .np-select-input-separator-item {
4087
- margin: 8px;
4088
- margin: var(--size-8);
4089
- border-top-width: 1px;
4010
+ .np-select-input-placeholder {
4011
+ color: #768e9c;
4012
+ color: var(--color-content-tertiary);
4090
4013
  }
4091
4014
  .np-select-input-options-container {
4092
4015
  display: flex;
@@ -4165,6 +4088,92 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
4165
4088
  contain: strict;
4166
4089
  height: 100%;
4167
4090
  }
4091
+ .np-select-input-separator-item {
4092
+ margin: 8px;
4093
+ margin: var(--size-8);
4094
+ border-top-width: 1px;
4095
+ }
4096
+ .np-select-input-group-item--without-needle:first-child {
4097
+ margin-top: calc(-1 * 8px);
4098
+ margin-top: calc(-1 * var(--size-8));
4099
+ }
4100
+ .np-select-input-group-item-header {
4101
+ position: sticky;
4102
+ top: 0px;
4103
+ z-index: 10;
4104
+ background-color: #ffffff;
4105
+ background-color: var(--color-background-elevated);
4106
+ }
4107
+ .np-select-input-option-container {
4108
+ display: flex;
4109
+ cursor: default;
4110
+ -webkit-user-select: none;
4111
+ -moz-user-select: none;
4112
+ user-select: none;
4113
+ align-items: center;
4114
+ -moz-column-gap: 8px;
4115
+ column-gap: 8px;
4116
+ -moz-column-gap: var(--size-8);
4117
+ column-gap: var(--size-8);
4118
+ border-radius: 10px;
4119
+ border-radius: var(--radius-small);
4120
+ padding: 12px 16px;
4121
+ padding: var(--size-12) var(--size-16);
4122
+ color: var(--color-interactive-primary);
4123
+ }
4124
+ .np-select-input-option-container:focus {
4125
+ outline: none;
4126
+ }
4127
+ .np-select-input-option-container--active {
4128
+ box-shadow: inset 0 0 0 1px #c9cbce;
4129
+ box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
4130
+ }
4131
+ .np-select-input-option-container--disabled {
4132
+ opacity: 0.45;
4133
+ }
4134
+ .np-select-input-option-check--not-selected {
4135
+ visibility: hidden;
4136
+ }
4137
+ .np-select-input-option {
4138
+ flex: 1;
4139
+ }
4140
+ .np-select-input-option-content-container {
4141
+ display: flex;
4142
+ align-items: center;
4143
+ -moz-column-gap: 8px;
4144
+ column-gap: 8px;
4145
+ -moz-column-gap: var(--size-8);
4146
+ column-gap: var(--size-8);
4147
+ color: #37517e;
4148
+ color: var(--color-content-primary);
4149
+ }
4150
+ .np-select-input-option-content-icon {
4151
+ display: flex;
4152
+ }
4153
+ .np-select-input-option-content-icon--not-within-trigger {
4154
+ align-self: flex-start;
4155
+ }
4156
+ .np-select-input-option-content-text {
4157
+ display: flex;
4158
+ flex: 1;
4159
+ flex-direction: column;
4160
+ overflow: hidden;
4161
+ }
4162
+ .np-select-input-option-content-text-secondary {
4163
+ color: #5d7079;
4164
+ color: var(--color-content-secondary);
4165
+ }
4166
+ .np-select-input-option-content-text-within-trigger {
4167
+ overflow: hidden;
4168
+ text-overflow: ellipsis;
4169
+ white-space: nowrap;
4170
+ }
4171
+ .np-select-input-option-content-text-line-1 > :not([hidden]) ~ :not([hidden]) {
4172
+ margin-right: 8px;
4173
+ margin-right: var(--size-8);
4174
+ margin-left: 8px;
4175
+ margin-left: var(--size-8);
4176
+ }
4168
4177
  .np-select-input-footer {
4169
4178
  padding: 4px 24px 16px;
4170
4179
  padding: var(--size-4) var(--size-24) var(--size-16);
@@ -4215,15 +4224,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
4215
4224
  border-inline-start: 1px solid rgba(0,0,0,0.10196);
4216
4225
  border-inline-start: 1px solid var(--color-border-neutral);
4217
4226
  }
4218
- .np-select-input-content {
4219
- overflow: hidden;
4220
- text-overflow: ellipsis;
4221
- white-space: nowrap;
4222
- }
4223
- .np-select-input-placeholder {
4224
- color: #768e9c;
4225
- color: var(--color-content-tertiary);
4226
- }
4227
4227
  .np-text-area {
4228
4228
  min-height: 72px;
4229
4229
  min-height: var(--size-72);
package/src/main.less CHANGED
@@ -44,7 +44,7 @@
44
44
  @import "./listItem/ListItem.less";
45
45
  @import "./field/Field.less";
46
46
  @import "./inputs/InputGroup.less";
47
- @import "./inputs/SelectInput/SelectInput.less";
47
+ @import "./inputs/SelectInput.less";
48
48
  @import "./inputs/TextArea.less";
49
49
  @import "./instructionsList/InstructionsList.less";
50
50
  @import "./link/Link.less";
@@ -30,15 +30,21 @@ import closeBtnMessages from '../common/closeButton/CloseButton.messages';
30
30
  const TRANSITION_DURATION_IN_MILLISECONDS = 150;
31
31
 
32
32
  export type ModalProps = CommonProps & {
33
+ /** @default null */
33
34
  title?: ReactNode;
34
35
  body: ReactNode;
36
+ /** @default null */
35
37
  footer?: ReactNode;
38
+ /** @default 'md' */
36
39
  size?: SizeSmall | SizeMedium | SizeLarge | SizeExtraLarge;
37
40
  onClose: () => void;
38
41
  onUnmount?: () => void;
39
42
  open: boolean;
43
+ /** @default 'viewport' */
40
44
  scroll?: ScrollContent | ScrollViewport;
45
+ /** @default 'center' */
41
46
  position?: PositionTop | PositionCenter;
47
+ /** @default false */
42
48
  disableDimmerClickToClose?: boolean;
43
49
  };
44
50
 
@@ -9,7 +9,7 @@ import { OptionProps, ReferenceType } from '../common/Option/Option';
9
9
  export type NavigationOptionProps = OptionProps;
10
10
 
11
11
  /**
12
- * @deprecated Please use `<ListItem />` instead.
12
+ * @deprecated Use `<ListItem />` instead.
13
13
  * @deprecatedSince 46.104.0
14
14
  * @see [Source](../listItem/ListItem.tsx)
15
15
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
@@ -6,7 +6,7 @@ export interface NavigationOptionListProps {
6
6
  }
7
7
 
8
8
  /**
9
- * @deprecated Please use `<List />` and `<ListItem />` instead.
9
+ * @deprecated Use `<List />` and `<ListItem />` instead.
10
10
  * @deprecatedSince 46.104.0
11
11
  * @see [List source](../list/List.tsx)
12
12
  * @see [ListItem source](../listItem/ListItem.tsx)
@@ -46,7 +46,7 @@ type MediaNameType =
46
46
  | `${Assets.BACKPACK}`;
47
47
 
48
48
  type BaseProps = {
49
- /** @deprecated use `mediaName` property instead */
49
+ /** @deprecated Use `mediaName` property instead. */
50
50
  media?: ReactNode;
51
51
  /** Media name */
52
52
  mediaName?: MediaNameType;
@@ -31,11 +31,17 @@ export interface PhoneNumberInputProps {
31
31
  onFocus?: React.FocusEventHandler<HTMLInputElement>;
32
32
  onBlur?: () => void;
33
33
  countryCode?: string;
34
+ /** @default 'Prefix' */
34
35
  searchPlaceholder?: string;
36
+ /** @default 'md' */
35
37
  size?: SizeSmall | SizeMedium | SizeLarge;
36
38
  placeholder?: string;
39
+ /** @default {} */
37
40
  selectProps?: Partial<SelectInputProps<string | null>>;
38
- /** List of iso3 codes of countries to remove from the list */
41
+ /**
42
+ * List of iso3 codes of countries to remove from the list
43
+ * @default []
44
+ */
39
45
  disabledCountries?: readonly string[];
40
46
  }
41
47
 
@@ -26,6 +26,7 @@ export interface PopoverProps {
26
26
  title?: React.ReactNode;
27
27
  /** Screen-reader-friendly title. Must be provided if `title` prop is not set. */
28
28
  'aria-label'?: string;
29
+ /** @default 'right' */
29
30
  preferredPlacement?: PopoverPreferredPlacement;
30
31
  content: React.ReactNode;
31
32
  onClose?: () => void;
@@ -11,7 +11,9 @@ export type ProcessIndicatorStatus =
11
11
  `${Status.PROCESSING | Status.FAILED | Status.SUCCEEDED | Status.HIDDEN}`;
12
12
 
13
13
  export interface ProcessIndicatorProps {
14
+ /** @default 'processing' */
14
15
  status?: ProcessIndicatorStatus;
16
+ /** @default 'sm' */
15
17
  size?: 'xxs' | `${Size.EXTRA_SMALL | Size.SMALL | Size.EXTRA_LARGE}`;
16
18
  className?: string;
17
19
  'data-testid'?: string;
@@ -16,6 +16,7 @@ import { useScreenSize } from '../../common/hooks/useScreenSize';
16
16
  export type ActionPromptProps = {
17
17
  title: ReactNode;
18
18
  description?: ReactNode;
19
+ /** @default {} */
19
20
  media?: {
20
21
  imgSrc?: string;
21
22
  avatar?: Pick<AvatarViewProps, 'imgSrc' | 'profileName' | 'profileType'> & {
@@ -32,7 +33,13 @@ export type ActionPromptProps = {
32
33
  label: ButtonProps['children'];
33
34
  };
34
35
  'aria-label'?: AriaAttributes['aria-label'];
35
- } & Pick<PrimitivePromptProps, 'id' | 'className' | 'data-testid' | 'sentiment' | 'onDismiss'>;
36
+ } & Pick<PrimitivePromptProps, 'id' | 'className' | 'data-testid' | 'onDismiss'> & {
37
+ /**
38
+ * The sentiment determines the colour scheme
39
+ * @default 'neutral'
40
+ */
41
+ sentiment?: PrimitivePromptProps['sentiment'];
42
+ };
36
43
 
37
44
  /**
38
45
  * Use an action prompt for optional feedback that doesn't require immediate action, such as feature upsells, warnings, or suggestions. These prompts are typically used outside of core product flows (e.g., Launchpad, Recipient, or Transaction screens) and can be addressed at the user's convenience.
@@ -9,6 +9,7 @@ import { PrimitivePrompt } from '../PrimitivePrompt';
9
9
  export type InlinePromptProps = {
10
10
  /**
11
11
  * The sentiment determines the colour scheme
12
+ * @default Sentiment.POSITIVE
12
13
  */
13
14
  sentiment?:
14
15
  | `${Sentiment.POSITIVE | Sentiment.NEGATIVE | Sentiment.NEUTRAL | Sentiment.WARNING}`
@@ -17,7 +17,7 @@ export interface RadioOptionProps<T extends string | number = string>
17
17
  }
18
18
 
19
19
  /**
20
- * @deprecated Please use `<ListItem />` instead.
20
+ * @deprecated Use `<ListItem />` instead.
21
21
  * @deprecatedSince 46.104.0
22
22
  * @see [Source](../listItem/ListItem.tsx)
23
23
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)