@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
@@ -106,7 +106,9 @@ export interface SelectProps {
106
106
  inverse?: boolean;
107
107
  dropdownRight?: `${Size.EXTRA_SMALL | Size.SMALL | Size.MEDIUM | Size.LARGE | Size.EXTRA_LARGE}`;
108
108
  dropdownWidth?: `${Size.SMALL | Size.MEDIUM | Size.LARGE}`;
109
+ /** @default 'md' */
109
110
  size?: `${Size.SMALL | Size.MEDIUM | Size.LARGE}`;
111
+ /** @default true */
110
112
  block?: boolean;
111
113
  selected?: SelectOptionItem;
112
114
  /**
@@ -116,8 +118,10 @@ export interface SelectProps {
116
118
  */
117
119
  search?: boolean | ((option: SelectItemWithPlaceholder, searchValue: string) => boolean);
118
120
  options: SelectItem[];
121
+ /** @default '' */
119
122
  searchValue?: string;
120
123
  searchPlaceholder?: string;
124
+ /** @default {} */
121
125
  classNames?: Record<string, string>;
122
126
  dropdownUp?: boolean;
123
127
  buttonProps?: Extract<ButtonProps, { as?: 'button' }>;
@@ -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,
@@ -133,8 +133,8 @@
133
133
  }
134
134
  &-elevated {
135
135
  .sentiment-surface-tokens(
136
- #E2F6D5, #D3F2C0, #C5EDAB, // content-primary
137
- #E2F6D5, #D3F2C0, #C5EDAB, // interactive-primary
136
+ #CEF1B8, #E0FFCC, #E1F4D4, // content-primary
137
+ #CEF1B8, #E0FFCC, #E1F4D4, // interactive-primary
138
138
  #054D28, #043A1E, #022614, // interactive-secondary
139
139
  #256A43, #2A794C, #329057, // interactive-secondary-neutral
140
140
  #054D28, #043A1E, #022614, // interactive-control
@@ -150,12 +150,12 @@
150
150
  .np-theme-platform--forest-green& {
151
151
  &-base {
152
152
  .sentiment-surface-tokens(
153
- #BAE5A0, #C8EAB3, #D6F0C7, // content-primary
154
- #BAE5A0, #C8EAB3, #D6F0C7, // interactive-primary
155
- #252C20, #323B2B, #3E4A36, // interactive-secondary
156
- #37422F, #46533B, #546548, // interactive-secondary-neutral
157
- #252C20, #323B2B, #3E4A36, // interactive-control
158
- #252C20, #323B2B, #3E4A36 // background-surface
153
+ #CEF1B8, #E0FFCC, #E1F4D4, // content-primary
154
+ #CEF1B8, #E0FFCC, #E1F4D4, // interactive-primary
155
+ #054D28, #043A1E, #022614, // interactive-secondary
156
+ #256A43, #2A794C, #329057, // interactive-secondary-neutral
157
+ #054D28, #043A1E, #022614, // interactive-control
158
+ #054D28, #043A1E, #022614 // background-surface
159
159
  );
160
160
  }
161
161
  &-elevated {
@@ -262,10 +262,10 @@
262
262
  .sentiment-surface-tokens(
263
263
  #FFFFFF, #EAF9F9, #D5F4F4, // content-primary
264
264
  #E0F7F7, #CAF1F1, #B6ECEC, // interactive-primary
265
- #0B312F, #124F4C, #176460, // interactive-secondary
266
- #174E4D, #1D6261, #237675, // interactive-secondary-neutral
267
- #0B312F, #124F4C, #176460, // interactive-control
268
- #0B312F, #124F4C, #176460 // background-surface
265
+ #054D4D, #043A3A, #022626, // interactive-secondary
266
+ #1F6161, #247070, #298080, // interactive-secondary-neutral
267
+ #054D4D, #043A3A, #022626, // interactive-control
268
+ #054D4D, #043A3A, #022626 // background-surface
269
269
  );
270
270
  }
271
271
  &-elevated {
@@ -11,7 +11,7 @@ import { useMedia } from '../common/hooks/useMedia';
11
11
  import messages from './StatusIcon.messages';
12
12
 
13
13
  /**
14
- * @deprecated use `16 | 24 | 32 | 40 | 48 | 56 | 72` component instead
14
+ * @deprecated Use `16 | 24 | 32 | 40 | 48 | 56 | 72` instead.
15
15
  */
16
16
  type LegacySizes = SizeSmall | SizeMedium | SizeLarge;
17
17
 
@@ -19,7 +19,9 @@ export type StatusIconSentiment = Sentiment | Status.PENDING;
19
19
 
20
20
  export type StatusIconProps = {
21
21
  id?: string;
22
+ /** @default 'neutral' */
22
23
  sentiment?: `${StatusIconSentiment}`;
24
+ /** @default 40 */
23
25
  size?: LegacySizes | 16 | 24 | 32 | 40 | 48 | 56 | 72;
24
26
  /**
25
27
  * Override for the sentiment's-derived, default, accessible
@@ -47,6 +47,7 @@ export interface Props {
47
47
  action?: AlertAction;
48
48
  /**
49
49
  * Decides which html element should wrap the Summary
50
+ * @default 'div'
50
51
  */
51
52
  as?: ElementType;
52
53
  /**
@@ -54,7 +55,8 @@ export interface Props {
54
55
  */
55
56
  className?: string;
56
57
  /**
57
- * @deprecated please use description instead
58
+ * @deprecated Use `description` instead.
59
+ * @default null
58
60
  */
59
61
  content?: ReactNode;
60
62
  /**
@@ -62,7 +64,7 @@ export interface Props {
62
64
  */
63
65
  description?: ReactNode;
64
66
  /**
65
- * @deprecated please use info instead
67
+ * @deprecated Use `info` instead.
66
68
  */
67
69
  help?: {
68
70
  content: ReactNode;
@@ -73,7 +75,8 @@ export interface Props {
73
75
  */
74
76
  info?: Pick<InfoProps, 'aria-label' | 'content' | 'onClick' | 'presentation' | 'title'>;
75
77
  /**
76
- * @deprecated please use icon instead
78
+ * @deprecated Use `icon` instead.
79
+ * @default null
77
80
  */
78
81
  illustration?: ReactNode;
79
82
  /**
@@ -91,7 +94,7 @@ export interface Props {
91
94
  }
92
95
 
93
96
  /**
94
- * @deprecated Please use `<ListItem />` instead.
97
+ * @deprecated Use `<ListItem />` instead.
95
98
  * @deprecatedSince 46.104.0
96
99
  * @see [Source](../listItem/ListItem.tsx)
97
100
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
@@ -27,7 +27,7 @@ const stopPropagation = (event?: MouseEvent<HTMLSpanElement>) => {
27
27
  };
28
28
 
29
29
  /**
30
- * @deprecated Please use `<ListItem />` instead.
30
+ * @deprecated Use `<ListItem />` instead.
31
31
  * @deprecatedSince 46.104.0
32
32
  * @see [Source](../listItem/ListItem.tsx)
33
33
  * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs)
package/src/tabs/Tabs.tsx CHANGED
@@ -28,8 +28,10 @@ export interface TabsProps {
28
28
  tabs: TabItem[];
29
29
  selected: number;
30
30
  name: string;
31
+ /** @default true */
31
32
  changeTabOnSwipe?: boolean;
32
33
  className?: string;
34
+ /** @default 'block' */
33
35
  headerWidth?: `${Width}`;
34
36
  onTabSelect: (index: number) => void;
35
37
  }
@@ -40,7 +40,7 @@ export interface TypeaheadProps<T> extends Partial<WrappedComponentProps> {
40
40
  name: string;
41
41
  addon?: ReactNode;
42
42
  /**
43
- * @deprecated Please use [`Field`](?path=/docs/forms-field--docs) component and its `message` and `sentiment` props instead.
43
+ * @deprecated Use [`Field`](?path=/docs/forms-field--docs) component and its `message` and `sentiment` props instead.
44
44
  * @deprecated `error`, `info` and `success` are deprecated as alert types and will be soon removed.
45
45
  */
46
46
  alert?: {
@@ -51,24 +51,36 @@ export interface TypeaheadProps<T> extends Partial<WrappedComponentProps> {
51
51
  | `${Sentiment.INFO}`
52
52
  | `${Sentiment.SUCCESS}`;
53
53
  };
54
+ /** @default false */
54
55
  allowNew?: boolean;
56
+ /** @default true */
55
57
  autoFillOnBlur?: boolean;
58
+ /** @default false */
56
59
  autoFocus?: boolean;
60
+ /** @default [] */
57
61
  chipSeparators?: readonly string[];
62
+ /** @default true */
58
63
  clearable?: boolean;
59
64
  footer?: ReactNode;
65
+ /** @default [] */
60
66
  initialValue?: readonly TypeaheadOption<T>[];
67
+ /** @default 'new-password' */
61
68
  inputAutoComplete?: string;
62
69
  maxHeight?: number;
70
+ /** @default 3 */
63
71
  minQueryLength?: number;
64
72
  placeholder?: string;
73
+ /** @default false */
65
74
  multiple?: boolean;
66
75
  options: readonly TypeaheadOption<T>[];
76
+ /** @default 200 */
67
77
  searchDelay?: number;
78
+ /** @default true */
68
79
  showSuggestions?: boolean;
80
+ /** @default true */
69
81
  showNewEntry?: boolean;
82
+ /** @default 'md' */
70
83
  size?: SizeMedium | SizeLarge;
71
-
72
84
  onBlur?: () => void;
73
85
  onChange: (options: TypeaheadOption<T>[]) => void;
74
86
  onFocus?: () => void;
@@ -18,6 +18,7 @@ export enum UploadStep {
18
18
  }
19
19
 
20
20
  export interface UploadProps extends WrappedComponentProps {
21
+ /** @default 300 */
21
22
  animationDelay?: number;
22
23
  csButtonText?: string;
23
24
  csFailureText?: string;
@@ -39,19 +40,24 @@ export interface UploadProps extends WrappedComponentProps {
39
40
  */
40
41
  maxSize?: number | null;
41
42
  psButtonText?: string;
43
+ /** @default false */
42
44
  psButtonDisabled?: boolean;
43
45
  psProcessingText?: string;
46
+ /** @default 'md' */
44
47
  size?: `${Size.SMALL | Size.MEDIUM | Size.LARGE}`;
45
48
  /**
46
49
  * You can provide multiple rules separated by comma, e.g.: "application/pdf,image/*".
47
50
  * Using "*" will allow every file type to be uploaded.
51
+ * @default 'image/*'
48
52
  */
49
53
  usAccept?: string;
50
54
  usButtonText?: string;
51
55
  usButtonRetryText?: string;
56
+ /** @default false */
52
57
  usDisabled?: boolean;
53
58
  usDropMessage?: string;
54
59
  usHelpImage?: React.ReactNode;
60
+ /** @default '' */
55
61
  usLabel?: string;
56
62
  usPlaceholder?: string;
57
63
  /**
@@ -18,11 +18,13 @@ import UploadItem, { UploadItemProps } from './uploadItem/UploadItem';
18
18
  export type UploadInputProps = {
19
19
  /**
20
20
  * List of already existing, failed or in progress files
21
+ * @default []
21
22
  */
22
23
  files?: readonly UploadedFile[];
23
24
 
24
25
  /**
25
26
  * The key of the file in the returned FormData object (default: file)
27
+ * @default 'file'
26
28
  */
27
29
  fileInputName?: string;
28
30
 
@@ -94,10 +96,16 @@ export type UploadInputProps = {
94
96
  * Error message to show when files over allowed size limit are uploaded
95
97
  */
96
98
  sizeLimitErrorMessage?: string;
97
- } & Pick<
98
- UploadButtonProps,
99
- 'disabled' | 'multiple' | 'fileTypes' | 'sizeLimit' | 'description' | 'id' | 'uploadButtonTitle'
100
- > & { onDownload?: UploadItemProps['onDownload'] } & CommonProps;
99
+ } & {
100
+ /** @default false */
101
+ multiple?: UploadButtonProps['multiple'];
102
+ /** @default ['.pdf,application/pdf', '.jpg,.jpeg,image/jpeg', '.png,image/png'] */
103
+ fileTypes?: UploadButtonProps['fileTypes'];
104
+ /** @default 5000 */
105
+ sizeLimit?: UploadButtonProps['sizeLimit'];
106
+ } & Pick<UploadButtonProps, 'disabled' | 'description' | 'id' | 'uploadButtonTitle'> & {
107
+ onDownload?: UploadItemProps['onDownload'];
108
+ } & CommonProps;
101
109
 
102
110
  /**
103
111
  * Interface representing a reference to an UploadItem component.
@@ -49,12 +49,15 @@ export interface WithDisplayFormatProps<T extends TextElementProps = TextElement
49
49
  | 'required'
50
50
  | 'inputMode'
51
51
  > {
52
+ /** @default '' */
52
53
  value?: string;
54
+ /** @default '' */
53
55
  displayPattern: string;
54
56
  /**
55
57
  * autocomplete hides our form help so we need to disable it when help text
56
58
  * is present. Chrome ignores autocomplete=off, the only way to disable it is
57
59
  * to provide an 'invalid' value, for which 'disabled' serves.
60
+ * @default 'off'
58
61
  */
59
62
  autoComplete?: TextElementProps['autoComplete'] | 'disabled';
60
63
  onChange?: (value: string) => void;
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectInputBottomSheet.js","sources":["../../../../src/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.tsx"],"sourcesContent":["import {\n FloatingFocusManager,\n FloatingPortal,\n useDismiss,\n useFloating,\n useInteractions,\n useRole,\n} from '@floating-ui/react';\nimport { Transition, TransitionChild } from '@headlessui/react';\nimport { FocusScope } from '@react-aria/focus';\nimport { ThemeProvider, useTheme } from '@wise/components-theming';\nimport { clsx } from 'clsx';\nimport { Fragment, useState } from 'react';\n\nimport { CloseButton } from '../../../common/closeButton';\nimport { useVirtualKeyboard } from '../../../common/hooks/useVirtualKeyboard';\nimport { PreventScroll } from '../../../common/preventScroll/PreventScroll';\nimport { Size } from '../../../common/propsValues/size';\n\nexport interface SelectInputBottomSheetProps {\n open: boolean;\n renderTrigger?: (args: {\n ref: React.RefCallback<Element>;\n getInteractionProps: (customEventHandlers?: React.HTMLProps<Element>) => {\n [key: string]: unknown;\n };\n }) => React.ReactNode;\n title?: string;\n initialFocusRef?: React.MutableRefObject<HTMLElement | null>;\n padding?: 'none' | 'md';\n children?: React.ReactNode;\n onClose?: () => void;\n onCloseEnd?: () => void;\n}\n\nexport function SelectInputBottomSheet({\n open,\n renderTrigger,\n title,\n initialFocusRef,\n padding = 'md',\n children,\n onClose,\n onCloseEnd,\n}: SelectInputBottomSheetProps) {\n useVirtualKeyboard(open);\n\n const { refs, context } = useFloating<Element>({\n open,\n onOpenChange: (value) => {\n if (!value) {\n onClose?.();\n }\n },\n });\n\n const dismiss = useDismiss(context);\n const role = useRole(context);\n const { getReferenceProps, getFloatingProps } = useInteractions([dismiss, role]);\n\n const [floatingKey, setFloatingKey] = useState(0);\n\n const { theme, screenMode } = useTheme();\n\n return (\n <>\n {open ? <PreventScroll /> : null}\n {renderTrigger?.({\n ref: refs.setReference,\n getInteractionProps: getReferenceProps,\n })}\n\n <FloatingPortal>\n <ThemeProvider theme=\"personal\" screenMode={theme === 'personal' ? screenMode : 'light'}>\n <Transition\n as=\"div\"\n show={open}\n className=\"np-bottom-sheet-v2-container\"\n beforeEnter={() => {\n setFloatingKey((prev) => prev + 1);\n }}\n afterLeave={onCloseEnd}\n >\n <TransitionChild\n as=\"div\"\n className=\"np-bottom-sheet-v2-backdrop\"\n enterFrom=\"np-bottom-sheet-v2-backdrop--closed\"\n leaveTo=\"np-bottom-sheet-v2-backdrop--closed\"\n />\n\n <div className=\"np-bottom-sheet-v2\">\n <FocusScope>\n <FloatingFocusManager context={context} initialFocus={initialFocusRef}>\n <Fragment\n key={floatingKey} // Force inner state invalidation on open\n >\n <TransitionChild\n ref={refs.setFloating}\n as=\"div\"\n className=\"np-bottom-sheet-v2-content\"\n enterFrom=\"np-bottom-sheet-v2-content--closed\"\n leaveTo=\"np-bottom-sheet-v2-content--closed\"\n {...getFloatingProps()}\n >\n <div className=\"np-bottom-sheet-v2-header\">\n <CloseButton\n size={Size.SMALL}\n onClick={() => {\n onClose?.();\n }}\n />\n </div>\n <div\n className={clsx(\n 'np-bottom-sheet-v2-content-inner',\n title && 'np-bottom-sheet-v2-content-inner--has-title',\n padding === 'md' && 'np-bottom-sheet-v2-content-inner--padding-md',\n )}\n >\n {title ? (\n <h2 className=\"np-bottom-sheet-v2-title np-text-title-body\">{title}</h2>\n ) : null}\n <div className=\"np-bottom-sheet-v2-body np-text-body-default\">\n {children}\n </div>\n </div>\n </TransitionChild>\n </Fragment>\n </FloatingFocusManager>\n </FocusScope>\n </div>\n </Transition>\n </ThemeProvider>\n </FloatingPortal>\n </>\n );\n}\n"],"names":["SelectInputBottomSheet","open","renderTrigger","title","initialFocusRef","padding","children","onClose","onCloseEnd","useVirtualKeyboard","refs","context","useFloating","onOpenChange","value","dismiss","useDismiss","role","useRole","getReferenceProps","getFloatingProps","useInteractions","floatingKey","setFloatingKey","useState","theme","screenMode","useTheme","_jsxs","_Fragment","_jsx","PreventScroll","ref","setReference","getInteractionProps","FloatingPortal","ThemeProvider","Transition","as","show","className","beforeEnter","prev","afterLeave","TransitionChild","enterFrom","leaveTo","FocusScope","FloatingFocusManager","initialFocus","Fragment","setFloating","CloseButton","size","Size","SMALL","onClick","clsx"],"mappings":";;;;;;;;;;;;;;AAmCM,SAAUA,sBAAsBA,CAAC;EACrCC,IAAI;E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,eAAAqB,eAAA,CAAA,KAAA,EAAA;AACEY,sBAAAA,SAAS,EAAEiB,SAAI,CACb,kCAAkC,EAClCtD,KAAK,IAAI,6CAA6C,EACtDE,OAAO,KAAK,IAAI,IAAI,8CAA8C,CAClE;sBAAAC,QAAA,EAAA,CAEDH,KAAK,gBACJ2B,cAAA,CAAA,IAAA,EAAA;AAAIU,wBAAAA,SAAS,EAAC,6CAA6C;AAAAlC,wBAAAA,QAAA,EAAEH;AAAK,uBAAK,CAAC,GACtE,IAAI,eACR2B,cAAA,CAAA,KAAA,EAAA;AAAKU,wBAAAA,SAAS,EAAC,8CAA8C;AAAAlC,wBAAAA,QAAA,EAC1DA;AAAQ,uBACN,CACP;AAAA,qBAAK,CACP;mBAAiB;AACnB,iBAAA,EAjCOgB,WAiCG;eACU;aACZ;AACd,WAAK,CACP;SAAY;OACC;AACjB,KAAgB,CAClB;AAAA,GAAA,CAAG;AAEP;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectInputBottomSheet.mjs","sources":["../../../../src/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.tsx"],"sourcesContent":["import {\n FloatingFocusManager,\n FloatingPortal,\n useDismiss,\n useFloating,\n useInteractions,\n useRole,\n} from '@floating-ui/react';\nimport { Transition, TransitionChild } from '@headlessui/react';\nimport { FocusScope } from '@react-aria/focus';\nimport { ThemeProvider, useTheme } from '@wise/components-theming';\nimport { clsx } from 'clsx';\nimport { Fragment, useState } from 'react';\n\nimport { CloseButton } from '../../../common/closeButton';\nimport { useVirtualKeyboard } from '../../../common/hooks/useVirtualKeyboard';\nimport { PreventScroll } from '../../../common/preventScroll/PreventScroll';\nimport { Size } from '../../../common/propsValues/size';\n\nexport interface SelectInputBottomSheetProps {\n open: boolean;\n renderTrigger?: (args: {\n ref: React.RefCallback<Element>;\n getInteractionProps: (customEventHandlers?: React.HTMLProps<Element>) => {\n [key: string]: unknown;\n };\n }) => React.ReactNode;\n title?: string;\n initialFocusRef?: React.MutableRefObject<HTMLElement | null>;\n padding?: 'none' | 'md';\n children?: React.ReactNode;\n onClose?: () => void;\n onCloseEnd?: () => void;\n}\n\nexport function SelectInputBottomSheet({\n open,\n renderTrigger,\n title,\n initialFocusRef,\n padding = 'md',\n children,\n onClose,\n onCloseEnd,\n}: SelectInputBottomSheetProps) {\n useVirtualKeyboard(open);\n\n const { refs, context } = useFloating<Element>({\n open,\n onOpenChange: (value) => {\n if (!value) {\n onClose?.();\n }\n },\n });\n\n const dismiss = useDismiss(context);\n const role = useRole(context);\n const { getReferenceProps, getFloatingProps } = useInteractions([dismiss, role]);\n\n const [floatingKey, setFloatingKey] = useState(0);\n\n const { theme, screenMode } = useTheme();\n\n return (\n <>\n {open ? <PreventScroll /> : null}\n {renderTrigger?.({\n ref: refs.setReference,\n getInteractionProps: getReferenceProps,\n })}\n\n <FloatingPortal>\n <ThemeProvider theme=\"personal\" screenMode={theme === 'personal' ? screenMode : 'light'}>\n <Transition\n as=\"div\"\n show={open}\n className=\"np-bottom-sheet-v2-container\"\n beforeEnter={() => {\n setFloatingKey((prev) => prev + 1);\n }}\n afterLeave={onCloseEnd}\n >\n <TransitionChild\n as=\"div\"\n className=\"np-bottom-sheet-v2-backdrop\"\n enterFrom=\"np-bottom-sheet-v2-backdrop--closed\"\n leaveTo=\"np-bottom-sheet-v2-backdrop--closed\"\n />\n\n <div className=\"np-bottom-sheet-v2\">\n <FocusScope>\n <FloatingFocusManager context={context} initialFocus={initialFocusRef}>\n <Fragment\n key={floatingKey} // Force inner state invalidation on open\n >\n <TransitionChild\n ref={refs.setFloating}\n as=\"div\"\n className=\"np-bottom-sheet-v2-content\"\n enterFrom=\"np-bottom-sheet-v2-content--closed\"\n leaveTo=\"np-bottom-sheet-v2-content--closed\"\n {...getFloatingProps()}\n >\n <div className=\"np-bottom-sheet-v2-header\">\n <CloseButton\n size={Size.SMALL}\n onClick={() => {\n onClose?.();\n }}\n />\n </div>\n <div\n className={clsx(\n 'np-bottom-sheet-v2-content-inner',\n title && 'np-bottom-sheet-v2-content-inner--has-title',\n padding === 'md' && 'np-bottom-sheet-v2-content-inner--padding-md',\n )}\n >\n {title ? (\n <h2 className=\"np-bottom-sheet-v2-title np-text-title-body\">{title}</h2>\n ) : null}\n <div className=\"np-bottom-sheet-v2-body np-text-body-default\">\n {children}\n </div>\n </div>\n </TransitionChild>\n </Fragment>\n </FloatingFocusManager>\n </FocusScope>\n </div>\n </Transition>\n </ThemeProvider>\n </FloatingPortal>\n </>\n );\n}\n"],"names":["SelectInputBottomSheet","open","renderTrigger","title","initialFocusRef","padding","children","onClose","onCloseEnd","useVirtualKeyboard","refs","context","useFloating","onOpenChange","value","dismiss","useDismiss","role","useRole","getReferenceProps","getFloatingProps","useInteractions","floatingKey","setFloatingKey","useState","theme","screenMode","useTheme","_jsxs","_Fragment","_jsx","PreventScroll","ref","setReference","getInteractionProps","FloatingPortal","ThemeProvider","Transition","as","show","className","beforeEnter","prev","afterLeave","TransitionChild","enterFrom","leaveTo","FocusScope","FloatingFocusManager","initialFocus","Fragment","setFloating","CloseButton","size","Size","SMALL","onClick","clsx"],"mappings":";;;;;;;;;;;;AAmCM,SAAUA,sBAAsBA,CAAC;EACrCC,IAAI;EACJC,aAAa;EACbC,KAAK;EACLC,eAAe;AACfC,EAAAA,OAAO,GAAG,IAAI;EACdC,QAAQ;EACRC,OAAO;AACPC,EAAAA;AAAU,CACkB,EAAA;EAC5BC,kBAAkB,CAACR,IAAI,CAAC;EAExB,MAAM;IAAES,IAAI;AAAEC,IAAAA;GAAS,GAAGC,WAAW,CAAU;IAC7CX,IAAI;IACJY,YAAY,EAAGC,KAAK,IAAI;MACtB,IAAI,CAACA,KAAK,EAAE;AACVP,QAAAA,OAAO,IAAI;AACb,MAAA;AACF,IAAA;AACD,GAAA,CAAC;AAEF,EAAA,MAAMQ,OAAO,GAAGC,UAAU,CAACL,OAAO,CAAC;AACnC,EAAA,MAAMM,IAAI,GAAGC,OAAO,CAACP,OAAO,CAAC;EAC7B,MAAM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;AACd,WAAK,CACP;SAAY;OACC;AACjB,KAAgB,CAClB;AAAA,GAAA,CAAG;AAEP;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectInputButtonInput.js","sources":["../../../../src/inputs/SelectInput/ButtonInput/SelectInputButtonInput.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport { useInputPaddings } from '../../InputGroup';\nimport { inputClassNameBase } from '../../_common';\n\nexport interface SelectInputButtonInputProps extends React.ComponentPropsWithRef<'button'> {\n size?: 'sm' | 'md' | 'lg';\n}\n\nexport const SelectInputButtonInput = forwardRef(function ButtonInput(\n { size = 'md', className, style, ...restProps }: SelectInputButtonInputProps,\n ref: React.ForwardedRef<HTMLButtonElement | null>,\n) {\n const inputPaddings = useInputPaddings();\n\n return (\n <button\n ref={ref}\n type=\"button\"\n className={clsx(inputClassNameBase({ size }), 'np-button-input', className)}\n style={{ ...inputPaddings, ...style }}\n {...restProps}\n />\n );\n});\n"],"names":["SelectInputButtonInput","forwardRef","ButtonInput","size","className","style","restProps","ref","inputPaddings","useInputPaddings","_jsx","type","clsx","inputClassNameBase"],"mappings":";;;;;;;;MAUaA,sBAAsB,gBAAGC,gBAAU,CAAC,SAASC,WAAWA,CACnE;AAAEC,EAAAA,IAAI,GAAG,IAAI;EAAEC,SAAS;EAAEC,KAAK;EAAE,GAAGC;AAAS,CAA+B,EAC5EC,GAAiD,EAAA;AAEjD,EAAA,MAAMC,aAAa,GAAGC,2BAAgB,EAAE;AAExC,EAAA,oBACEC,cAAA,CAAA,QAAA,EAAA;AACEH,IAAAA,GAAG,EAAEA,GAAI;AACTI,IAAAA,IAAI,EAAC,QAAQ;AACbP,IAAAA,SAAS,EAAEQ,SAAI,CAACC,0BAAkB,CAAC;AAAEV,MAAAA;AAAI,KAAE,CAAC,EAAE,iBAAiB,EAAEC,SAAS,CAAE;AAC5EC,IAAAA,KAAK,EAAE;AAAE,MAAA,GAAGG,aAAa;MAAE,GAAGH;KAAQ;IAAA,GAClCC;AAAS,GAAC,CACd;AAEN,CAAC;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectInputButtonInput.mjs","sources":["../../../../src/inputs/SelectInput/ButtonInput/SelectInputButtonInput.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { forwardRef } from 'react';\n\nimport { useInputPaddings } from '../../InputGroup';\nimport { inputClassNameBase } from '../../_common';\n\nexport interface SelectInputButtonInputProps extends React.ComponentPropsWithRef<'button'> {\n size?: 'sm' | 'md' | 'lg';\n}\n\nexport const SelectInputButtonInput = forwardRef(function ButtonInput(\n { size = 'md', className, style, ...restProps }: SelectInputButtonInputProps,\n ref: React.ForwardedRef<HTMLButtonElement | null>,\n) {\n const inputPaddings = useInputPaddings();\n\n return (\n <button\n ref={ref}\n type=\"button\"\n className={clsx(inputClassNameBase({ size }), 'np-button-input', className)}\n style={{ ...inputPaddings, ...style }}\n {...restProps}\n />\n );\n});\n"],"names":["SelectInputButtonInput","forwardRef","ButtonInput","size","className","style","restProps","ref","inputPaddings","useInputPaddings","_jsx","type","clsx","inputClassNameBase"],"mappings":";;;;;;MAUaA,sBAAsB,gBAAGC,UAAU,CAAC,SAASC,WAAWA,CACnE;AAAEC,EAAAA,IAAI,GAAG,IAAI;EAAEC,SAAS;EAAEC,KAAK;EAAE,GAAGC;AAAS,CAA+B,EAC5EC,GAAiD,EAAA;AAEjD,EAAA,MAAMC,aAAa,GAAGC,gBAAgB,EAAE;AAExC,EAAA,oBACEC,GAAA,CAAA,QAAA,EAAA;AACEH,IAAAA,GAAG,EAAEA,GAAI;AACTI,IAAAA,IAAI,EAAC,QAAQ;AACbP,IAAAA,SAAS,EAAEQ,IAAI,CAACC,kBAAkB,CAAC;AAAEV,MAAAA;AAAI,KAAE,CAAC,EAAE,iBAAiB,EAAEC,SAAS,CAAE;AAC5EC,IAAAA,KAAK,EAAE;AAAE,MAAA,GAAGG,aAAa;MAAE,GAAGH;KAAQ;IAAA,GAClCC;AAAS,GAAC,CACd;AAEN,CAAC;;;;"}
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- var icons = require('@transferwise/icons');
4
- var clsx = require('clsx');
5
- var reactIntl = require('react-intl');
6
- var DateTrigger_messages = require('../../../dateLookup/dateTrigger/DateTrigger.messages.js');
7
- var jsxRuntime = require('react/jsx-runtime');
8
-
9
- function SelectInputClearButton({
10
- className,
11
- onClick
12
- }) {
13
- const intl = reactIntl.useIntl();
14
- return /*#__PURE__*/jsxRuntime.jsx("button", {
15
- type: "button",
16
- "aria-label": intl.formatMessage(DateTrigger_messages.default.ariaLabel),
17
- className: clsx.clsx(className, 'np-select-input-addon np-select-input-addon--interactive'),
18
- onClick: onClick,
19
- children: /*#__PURE__*/jsxRuntime.jsx(icons.Cross, {
20
- size: 16
21
- })
22
- });
23
- }
24
- // Type is already exported above
25
-
26
- exports.SelectInputClearButton = SelectInputClearButton;
27
- //# sourceMappingURL=SelectInputClearButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectInputClearButton.js","sources":["../../../../src/inputs/SelectInput/ClearButton/SelectInputClearButton.tsx"],"sourcesContent":["import { Cross } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport { useIntl } from 'react-intl';\nimport dateTriggerMessages from '../../../dateLookup/dateTrigger/DateTrigger.messages';\n\nexport interface SelectInputClearButtonProps extends Pick<\n React.ComponentPropsWithoutRef<'button'>,\n 'className' | 'onClick'\n> {}\n\n/**\n * A button component used to clear the selected value in a SelectInput.\n */\nexport function SelectInputClearButton({ className, onClick }: SelectInputClearButtonProps) {\n const intl = useIntl();\n\n return (\n <button\n type=\"button\"\n aria-label={intl.formatMessage(dateTriggerMessages.ariaLabel)}\n className={clsx(className, 'np-select-input-addon np-select-input-addon--interactive')}\n onClick={onClick}\n >\n <Cross size={16} />\n </button>\n );\n}\n\n// Type is already exported above\n"],"names":["SelectInputClearButton","className","onClick","intl","useIntl","_jsx","type","formatMessage","dateTriggerMessages","ariaLabel","clsx","children","Cross","size"],"mappings":";;;;;;;;SAagBA,sBAAsBA,CAAC;EAAEC,SAAS;AAAEC,EAAAA;AAAO,CAA+B,EAAA;AACxF,EAAA,MAAMC,IAAI,GAAGC,iBAAO,EAAE;AAEtB,EAAA,oBACEC,cAAA,CAAA,QAAA,EAAA;AACEC,IAAAA,IAAI,EAAC,QAAQ;AACb,IAAA,YAAA,EAAYH,IAAI,CAACI,aAAa,CAACC,4BAAmB,CAACC,SAAS,CAAE;AAC9DR,IAAAA,SAAS,EAAES,SAAI,CAACT,SAAS,EAAE,0DAA0D,CAAE;AACvFC,IAAAA,OAAO,EAAEA,OAAQ;IAAAS,QAAA,eAEjBN,cAAA,CAACO,WAAK,EAAA;AAACC,MAAAA,IAAI,EAAE;KAAG;AAClB,GAAQ,CAAC;AAEb;AAEA;;;;"}
@@ -1,25 +0,0 @@
1
- import { Cross } from '@transferwise/icons';
2
- import { clsx } from 'clsx';
3
- import { useIntl } from 'react-intl';
4
- import messages from '../../../dateLookup/dateTrigger/DateTrigger.messages.mjs';
5
- import { jsx } from 'react/jsx-runtime';
6
-
7
- function SelectInputClearButton({
8
- className,
9
- onClick
10
- }) {
11
- const intl = useIntl();
12
- return /*#__PURE__*/jsx("button", {
13
- type: "button",
14
- "aria-label": intl.formatMessage(messages.ariaLabel),
15
- className: clsx(className, 'np-select-input-addon np-select-input-addon--interactive'),
16
- onClick: onClick,
17
- children: /*#__PURE__*/jsx(Cross, {
18
- size: 16
19
- })
20
- });
21
- }
22
- // Type is already exported above
23
-
24
- export { SelectInputClearButton };
25
- //# sourceMappingURL=SelectInputClearButton.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectInputClearButton.mjs","sources":["../../../../src/inputs/SelectInput/ClearButton/SelectInputClearButton.tsx"],"sourcesContent":["import { Cross } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport { useIntl } from 'react-intl';\nimport dateTriggerMessages from '../../../dateLookup/dateTrigger/DateTrigger.messages';\n\nexport interface SelectInputClearButtonProps extends Pick<\n React.ComponentPropsWithoutRef<'button'>,\n 'className' | 'onClick'\n> {}\n\n/**\n * A button component used to clear the selected value in a SelectInput.\n */\nexport function SelectInputClearButton({ className, onClick }: SelectInputClearButtonProps) {\n const intl = useIntl();\n\n return (\n <button\n type=\"button\"\n aria-label={intl.formatMessage(dateTriggerMessages.ariaLabel)}\n className={clsx(className, 'np-select-input-addon np-select-input-addon--interactive')}\n onClick={onClick}\n >\n <Cross size={16} />\n </button>\n );\n}\n\n// Type is already exported above\n"],"names":["SelectInputClearButton","className","onClick","intl","useIntl","_jsx","type","formatMessage","dateTriggerMessages","ariaLabel","clsx","children","Cross","size"],"mappings":";;;;;;SAagBA,sBAAsBA,CAAC;EAAEC,SAAS;AAAEC,EAAAA;AAAO,CAA+B,EAAA;AACxF,EAAA,MAAMC,IAAI,GAAGC,OAAO,EAAE;AAEtB,EAAA,oBACEC,GAAA,CAAA,QAAA,EAAA;AACEC,IAAAA,IAAI,EAAC,QAAQ;AACb,IAAA,YAAA,EAAYH,IAAI,CAACI,aAAa,CAACC,QAAmB,CAACC,SAAS,CAAE;AAC9DR,IAAAA,SAAS,EAAES,IAAI,CAACT,SAAS,EAAE,0DAA0D,CAAE;AACvFC,IAAAA,OAAO,EAAEA,OAAQ;IAAAS,QAAA,eAEjBN,GAAA,CAACO,KAAK,EAAA;AAACC,MAAAA,IAAI,EAAE;KAAG;AAClB,GAAQ,CAAC;AAEb;AAEA;;;;"}
@@ -1,59 +0,0 @@
1
- 'use strict';
2
-
3
- var icons = require('@transferwise/icons');
4
- var clsx = require('clsx');
5
- require('react');
6
- var InputGroup = require('../../InputGroup.js');
7
- var SelectInputClearButton = require('../ClearButton/SelectInputClearButton.js');
8
- var SelectInputTriggerButton = require('../TriggerButton/SelectInputTriggerButton.js');
9
- var SelectInputButtonInput = require('../ButtonInput/SelectInputButtonInput.js');
10
- var jsxRuntime = require('react/jsx-runtime');
11
-
12
- function SelectInputDefaultRenderTrigger({
13
- content,
14
- placeholderShown,
15
- clear,
16
- disabled,
17
- size,
18
- className
19
- }) {
20
- return /*#__PURE__*/jsxRuntime.jsx(InputGroup.InputGroup, {
21
- addonEnd: {
22
- content: /*#__PURE__*/jsxRuntime.jsxs("span", {
23
- className: clsx.clsx('np-select-input-addon-container', disabled && 'disabled'),
24
- children: [clear != null && !placeholderShown ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
25
- children: [/*#__PURE__*/jsxRuntime.jsx(SelectInputClearButton.SelectInputClearButton, {
26
- onClick: event => {
27
- event.preventDefault();
28
- clear();
29
- }
30
- }), /*#__PURE__*/jsxRuntime.jsx("span", {
31
- className: "np-select-input-addon-separator"
32
- })]
33
- }) : null, /*#__PURE__*/jsxRuntime.jsx("span", {
34
- className: "np-select-input-addon",
35
- children: /*#__PURE__*/jsxRuntime.jsx(icons.ChevronDown, {
36
- size: 16
37
- })
38
- })]
39
- }),
40
- initialContentWidth: 24 + 4,
41
- padding: 'sm'
42
- },
43
- disabled: disabled,
44
- className: className,
45
- children: /*#__PURE__*/jsxRuntime.jsx(SelectInputTriggerButton.SelectInputTriggerButton, {
46
- as: SelectInputButtonInput.SelectInputButtonInput,
47
- size: size,
48
- children: /*#__PURE__*/jsxRuntime.jsx("span", {
49
- className: clsx.clsx('np-select-input-content', placeholderShown && 'np-select-input-placeholder'),
50
- children: content
51
- })
52
- })
53
- });
54
- }
55
- const DefaultRenderTrigger = SelectInputDefaultRenderTrigger;
56
-
57
- exports.DefaultRenderTrigger = DefaultRenderTrigger;
58
- exports.SelectInputDefaultRenderTrigger = SelectInputDefaultRenderTrigger;
59
- //# sourceMappingURL=SelectInputDefaultRenderTrigger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectInputDefaultRenderTrigger.js","sources":["../../../../src/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.tsx"],"sourcesContent":["import { ChevronDown } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport React from 'react';\n\nimport { InputGroup } from \"../../InputGroup\";\nimport { SelectInputClearButton } from '../ClearButton';\nimport { SelectInputTriggerButton } from '../TriggerButton';\nimport { SelectInputProps } from '../SelectInput.types';\nimport { SelectInputButtonInput } from '../ButtonInput';\n\nexport interface SelectInputDefaultRenderTriggerProps {\n content: React.ReactNode;\n placeholderShown: boolean;\n clear: (() => void) | undefined;\n disabled: boolean;\n size: 'sm' | 'md' | 'lg';\n className: string | undefined;\n}\n\n/**\n * Default render function for the SelectInput trigger.\n * Displays the selected value or placeholder with clear button and dropdown indicator.\n */\nexport function SelectInputDefaultRenderTrigger({\n content,\n placeholderShown,\n clear,\n disabled,\n size,\n className,\n}: SelectInputDefaultRenderTriggerProps) {\n return (\n <InputGroup\n addonEnd={{\n content: (\n <span className={clsx('np-select-input-addon-container', disabled && 'disabled')}>\n {clear != null && !placeholderShown ? (\n <>\n <SelectInputClearButton\n onClick={(event) => {\n event.preventDefault();\n clear();\n }}\n />\n <span className=\"np-select-input-addon-separator\" />\n </>\n ) : null}\n <span className=\"np-select-input-addon\">\n <ChevronDown size={16} />\n </span>\n </span>\n ),\n initialContentWidth: 24 + 4,\n padding: 'sm',\n }}\n disabled={disabled}\n className={className}\n >\n <SelectInputTriggerButton as={SelectInputButtonInput} size={size}>\n <span\n className={clsx(\n 'np-select-input-content',\n placeholderShown && 'np-select-input-placeholder',\n )}\n >\n {content}\n </span>\n </SelectInputTriggerButton>\n </InputGroup>\n );\n}\n\nexport const DefaultRenderTrigger =\n SelectInputDefaultRenderTrigger satisfies SelectInputProps['renderTrigger'];\n"],"names":["SelectInputDefaultRenderTrigger","content","placeholderShown","clear","disabled","size","className","_jsx","InputGroup","addonEnd","_jsxs","clsx","children","_Fragment","SelectInputClearButton","onClick","event","preventDefault","ChevronDown","initialContentWidth","padding","SelectInputTriggerButton","as","SelectInputButtonInput","DefaultRenderTrigger"],"mappings":";;;;;;;;;;;AAuBM,SAAUA,+BAA+BA,CAAC;EAC9CC,OAAO;EACPC,gBAAgB;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AC5B,GAAY,CAAC;AAEjB;AAEO,MAAMuB,oBAAoB,GAC/BxB;;;;;"}
@@ -1,56 +0,0 @@
1
- import { ChevronDown } from '@transferwise/icons';
2
- import { clsx } from 'clsx';
3
- import 'react';
4
- import { InputGroup } from '../../InputGroup.mjs';
5
- import { SelectInputClearButton } from '../ClearButton/SelectInputClearButton.mjs';
6
- import { SelectInputTriggerButton } from '../TriggerButton/SelectInputTriggerButton.mjs';
7
- import { SelectInputButtonInput } from '../ButtonInput/SelectInputButtonInput.mjs';
8
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
9
-
10
- function SelectInputDefaultRenderTrigger({
11
- content,
12
- placeholderShown,
13
- clear,
14
- disabled,
15
- size,
16
- className
17
- }) {
18
- return /*#__PURE__*/jsx(InputGroup, {
19
- addonEnd: {
20
- content: /*#__PURE__*/jsxs("span", {
21
- className: clsx('np-select-input-addon-container', disabled && 'disabled'),
22
- children: [clear != null && !placeholderShown ? /*#__PURE__*/jsxs(Fragment, {
23
- children: [/*#__PURE__*/jsx(SelectInputClearButton, {
24
- onClick: event => {
25
- event.preventDefault();
26
- clear();
27
- }
28
- }), /*#__PURE__*/jsx("span", {
29
- className: "np-select-input-addon-separator"
30
- })]
31
- }) : null, /*#__PURE__*/jsx("span", {
32
- className: "np-select-input-addon",
33
- children: /*#__PURE__*/jsx(ChevronDown, {
34
- size: 16
35
- })
36
- })]
37
- }),
38
- initialContentWidth: 24 + 4,
39
- padding: 'sm'
40
- },
41
- disabled: disabled,
42
- className: className,
43
- children: /*#__PURE__*/jsx(SelectInputTriggerButton, {
44
- as: SelectInputButtonInput,
45
- size: size,
46
- children: /*#__PURE__*/jsx("span", {
47
- className: clsx('np-select-input-content', placeholderShown && 'np-select-input-placeholder'),
48
- children: content
49
- })
50
- })
51
- });
52
- }
53
- const DefaultRenderTrigger = SelectInputDefaultRenderTrigger;
54
-
55
- export { DefaultRenderTrigger, SelectInputDefaultRenderTrigger };
56
- //# sourceMappingURL=SelectInputDefaultRenderTrigger.mjs.map