@decisiv/ui-components 2.0.1-alpha.20 → 2.0.1-alpha.201

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 (555) hide show
  1. package/lib/atoms/BaseButton/index.d.ts.map +1 -1
  2. package/lib/atoms/BaseButton/index.js +1 -1
  3. package/lib/atoms/BooleanInput/elements.d.ts.map +1 -1
  4. package/lib/atoms/BooleanInput/elements.js +8 -3
  5. package/lib/atoms/BooleanInput/index.d.ts.map +1 -1
  6. package/lib/atoms/BooleanInput/index.js +26 -5
  7. package/lib/atoms/BooleanInput/index.test.js +17 -6
  8. package/lib/atoms/BooleanInput/types.d.ts +4 -0
  9. package/lib/atoms/BooleanInput/types.d.ts.map +1 -1
  10. package/lib/atoms/BooleanInput/types.js +5 -1
  11. package/lib/atoms/Calendar/hooks/useCalendar/index.d.ts.map +1 -1
  12. package/lib/atoms/Calendar/hooks/useCalendar/index.js +2 -1
  13. package/lib/atoms/Calendar/hooks/useCalendar/index.test.js +5 -6
  14. package/lib/atoms/Calendar/index.d.ts.map +1 -1
  15. package/lib/atoms/Calendar/index.js +46 -6
  16. package/lib/atoms/Calendar/index.test.js +68 -38
  17. package/lib/atoms/Calendar/types.d.ts +1 -1
  18. package/lib/atoms/Calendar/types.d.ts.map +1 -1
  19. package/lib/atoms/Calendar/types.js +5 -1
  20. package/lib/atoms/InputField/Containers.d.ts +12 -6
  21. package/lib/atoms/InputField/Containers.d.ts.map +1 -1
  22. package/lib/atoms/InputField/Containers.js +8 -6
  23. package/lib/atoms/InputField/HelpMessage.d.ts +1 -1
  24. package/lib/atoms/InputField/HelpMessage.d.ts.map +1 -1
  25. package/lib/atoms/InputField/HelpMessage.js +2 -1
  26. package/lib/atoms/InputField/InputLabel.d.ts +1 -0
  27. package/lib/atoms/InputField/InputLabel.d.ts.map +1 -1
  28. package/lib/atoms/InputField/InputLabel.js +2 -1
  29. package/lib/atoms/InputField/index.d.ts +8 -1
  30. package/lib/atoms/InputField/index.d.ts.map +1 -1
  31. package/lib/atoms/InputField/index.js +27 -9
  32. package/lib/atoms/InputField/index.test.js +91 -0
  33. package/lib/atoms/InputField/schema.d.ts.map +1 -1
  34. package/lib/atoms/InputField/schema.js +3 -2
  35. package/lib/atoms/OptionsList/Category/index.d.ts +4 -0
  36. package/lib/atoms/OptionsList/Category/index.d.ts.map +1 -0
  37. package/lib/atoms/OptionsList/{Category.js → Category/index.js} +13 -21
  38. package/lib/atoms/OptionsList/Category/styles.d.ts +6 -0
  39. package/lib/atoms/OptionsList/Category/styles.d.ts.map +1 -0
  40. package/lib/atoms/OptionsList/Category/styles.js +36 -0
  41. package/lib/atoms/OptionsList/{Option.d.ts → Option/index.d.ts} +2 -2
  42. package/lib/atoms/OptionsList/Option/index.d.ts.map +1 -0
  43. package/lib/atoms/OptionsList/Option/index.js +169 -0
  44. package/lib/atoms/OptionsList/Option/styles.d.ts +17 -0
  45. package/lib/atoms/OptionsList/Option/styles.d.ts.map +1 -0
  46. package/lib/atoms/OptionsList/Option/styles.js +83 -0
  47. package/lib/atoms/OptionsList/index.d.ts.map +1 -1
  48. package/lib/atoms/OptionsList/index.js +16 -7
  49. package/lib/atoms/OptionsList/index.test.js +249 -156
  50. package/lib/atoms/OptionsList/schema.d.ts.map +1 -1
  51. package/lib/atoms/OptionsList/schema.js +3 -1
  52. package/lib/atoms/OptionsList/types.d.ts +23 -0
  53. package/lib/atoms/OptionsList/types.d.ts.map +1 -1
  54. package/lib/atoms/OptionsList/types.js +5 -1
  55. package/lib/atoms/RequiredIcon.d.ts +9 -0
  56. package/lib/atoms/RequiredIcon.d.ts.map +1 -0
  57. package/lib/atoms/{InputField/RequiredIcon.js → RequiredIcon.js} +7 -3
  58. package/lib/components/Accordion/types.js +5 -1
  59. package/lib/components/Accordion/useAccordion/types.js +5 -1
  60. package/lib/components/Alert/Container.d.ts +201 -0
  61. package/lib/components/Alert/Container.d.ts.map +1 -0
  62. package/lib/components/Alert/Container.js +26 -0
  63. package/lib/components/Alert/StyledButton.d.ts +5 -0
  64. package/lib/components/Alert/StyledButton.d.ts.map +1 -0
  65. package/lib/components/Alert/StyledButton.js +23 -0
  66. package/lib/components/Alert/index.d.ts +27 -0
  67. package/lib/components/Alert/index.d.ts.map +1 -0
  68. package/lib/components/Alert/index.js +112 -0
  69. package/lib/components/Alert/index.test.js +79 -0
  70. package/lib/components/Alert/intents.d.ts +13 -0
  71. package/lib/components/Alert/intents.d.ts.map +1 -0
  72. package/lib/components/Alert/intents.js +72 -0
  73. package/lib/components/{Tabs/schema.tab.d.ts → Alert/schema.d.ts} +1 -1
  74. package/lib/components/Alert/schema.d.ts.map +1 -0
  75. package/lib/components/Alert/schema.js +25 -0
  76. package/lib/components/Alert/types.d.ts +36 -0
  77. package/lib/components/Alert/types.d.ts.map +1 -0
  78. package/lib/components/Alert/types.js +32 -0
  79. package/lib/components/Avatar/AvatarContainer.d.ts +1 -13
  80. package/lib/components/Avatar/AvatarContainer.d.ts.map +1 -1
  81. package/lib/components/Avatar/AvatarContainer.js +12 -13
  82. package/lib/components/Avatar/AvatarContent.d.ts +2 -2
  83. package/lib/components/Avatar/AvatarContent.d.ts.map +1 -1
  84. package/lib/components/Avatar/AvatarContent.js +24 -20
  85. package/lib/components/Avatar/index.d.ts.map +1 -1
  86. package/lib/components/Avatar/index.js +39 -5
  87. package/lib/components/Avatar/index.test.js +4 -0
  88. package/lib/components/Avatar/schema.d.ts.map +1 -1
  89. package/lib/components/Avatar/schema.js +3 -1
  90. package/lib/components/Avatar/types.d.ts +15 -2
  91. package/lib/components/Avatar/types.d.ts.map +1 -1
  92. package/lib/components/Avatar/types.js +5 -1
  93. package/lib/components/Badge/constants.d.ts +2 -0
  94. package/lib/components/Badge/constants.d.ts.map +1 -0
  95. package/lib/components/Badge/constants.js +29 -0
  96. package/lib/components/Badge/index.d.ts.map +1 -1
  97. package/lib/components/Badge/index.js +3 -70
  98. package/lib/components/Badge/index.test.js +62 -8
  99. package/lib/components/Badge/schema.d.ts.map +1 -1
  100. package/lib/components/Badge/schema.js +2 -1
  101. package/lib/components/Badge/styles.d.ts +3 -0
  102. package/lib/components/Badge/styles.d.ts.map +1 -0
  103. package/lib/components/Badge/styles.js +96 -0
  104. package/lib/components/Badge/types.d.ts +3 -2
  105. package/lib/components/Badge/types.d.ts.map +1 -1
  106. package/lib/components/Badge/types.js +7 -3
  107. package/lib/components/Breadcrumbs/types.js +5 -1
  108. package/lib/components/Button/StyledButton.d.ts +3 -6
  109. package/lib/components/Button/StyledButton.d.ts.map +1 -1
  110. package/lib/components/Button/StyledButton.js +39 -11
  111. package/lib/components/Button/index.d.ts.map +1 -1
  112. package/lib/components/Button/index.js +51 -12
  113. package/lib/components/Button/index.test.js +43 -8
  114. package/lib/components/Button/schema.d.ts.map +1 -1
  115. package/lib/components/Button/schema.js +4 -1
  116. package/lib/components/Button/types.d.ts +4 -1
  117. package/lib/components/Button/types.d.ts.map +1 -1
  118. package/lib/components/Button/types.js +5 -1
  119. package/lib/components/Checkbox/index.d.ts.map +1 -1
  120. package/lib/components/Checkbox/index.js +3 -1
  121. package/lib/components/Checkbox/schema.d.ts.map +1 -1
  122. package/lib/components/Checkbox/schema.js +2 -0
  123. package/lib/components/CheckboxGroup/index.d.ts +1 -1
  124. package/lib/components/Combobox/Target.d.ts.map +1 -1
  125. package/lib/components/Combobox/Target.js +52 -14
  126. package/lib/components/Combobox/index.d.ts.map +1 -1
  127. package/lib/components/Combobox/index.js +217 -85
  128. package/lib/components/Combobox/index.test.js +370 -147
  129. package/lib/components/Combobox/schema.d.ts.map +1 -1
  130. package/lib/components/Combobox/schema.js +10 -2
  131. package/lib/components/Combobox/types.d.ts +12 -3
  132. package/lib/components/Combobox/types.d.ts.map +1 -1
  133. package/lib/components/Combobox/types.js +5 -1
  134. package/lib/components/Drawer/index.d.ts +22 -0
  135. package/lib/components/Drawer/index.d.ts.map +1 -0
  136. package/lib/components/Drawer/index.js +115 -0
  137. package/lib/components/Drawer/index.test.js +139 -0
  138. package/lib/components/Drawer/schema.d.ts +3 -0
  139. package/lib/components/Drawer/schema.d.ts.map +1 -0
  140. package/lib/components/Drawer/schema.js +32 -0
  141. package/lib/components/Drawer/styles.d.ts +11 -0
  142. package/lib/components/Drawer/styles.d.ts.map +1 -0
  143. package/lib/components/Drawer/styles.js +79 -0
  144. package/lib/components/DropdownList/index.d.ts +1 -0
  145. package/lib/components/DropdownList/index.d.ts.map +1 -1
  146. package/lib/components/DropdownList/index.js +70 -22
  147. package/lib/components/DropdownList/propTypes.d.ts +4 -0
  148. package/lib/components/DropdownList/propTypes.d.ts.map +1 -0
  149. package/lib/components/DropdownList/propTypes.js +42 -0
  150. package/lib/components/DropdownList/schema.d.ts.map +1 -1
  151. package/lib/components/DropdownList/schema.js +2 -1
  152. package/lib/components/DropdownList/types.d.ts +2 -0
  153. package/lib/components/DropdownList/types.d.ts.map +1 -1
  154. package/lib/components/Filter/ActionFilter/index.d.ts +5 -0
  155. package/lib/components/Filter/ActionFilter/index.d.ts.map +1 -0
  156. package/lib/components/Filter/ActionFilter/index.js +43 -0
  157. package/lib/components/Filter/IconWrapper/index.d.ts +197 -0
  158. package/lib/components/Filter/IconWrapper/index.d.ts.map +1 -0
  159. package/lib/components/Filter/IconWrapper/index.js +35 -0
  160. package/lib/components/Filter/SimplePrimary/index.d.ts +5 -0
  161. package/lib/components/Filter/SimplePrimary/index.d.ts.map +1 -0
  162. package/lib/components/Filter/SimplePrimary/index.js +46 -0
  163. package/lib/components/Filter/SimplePrimary/index.test.js +34 -0
  164. package/lib/components/Filter/StyledFilter.d.ts +4 -0
  165. package/lib/components/Filter/StyledFilter.d.ts.map +1 -0
  166. package/lib/components/Filter/StyledFilter.js +66 -0
  167. package/lib/components/Filter/StyledLabel/index.d.ts +8 -0
  168. package/lib/components/Filter/StyledLabel/index.d.ts.map +1 -0
  169. package/lib/components/Filter/StyledLabel/index.js +38 -0
  170. package/lib/components/Filter/index.d.ts +6 -0
  171. package/lib/components/Filter/index.d.ts.map +1 -0
  172. package/lib/components/Filter/index.js +107 -0
  173. package/lib/components/Filter/index.test.js +70 -0
  174. package/lib/components/Filter/kind.d.ts +7 -0
  175. package/lib/components/Filter/kind.d.ts.map +1 -0
  176. package/lib/components/Filter/kind.js +43 -0
  177. package/lib/components/Filter/schema.d.ts +9 -0
  178. package/lib/components/Filter/schema.d.ts.map +1 -0
  179. package/lib/components/Filter/schema.js +37 -0
  180. package/lib/components/Filter/types.d.ts +31 -0
  181. package/lib/components/Filter/types.d.ts.map +1 -0
  182. package/lib/components/Filter/types.js +5 -0
  183. package/lib/components/JumpTo/JumpToMenu.d.ts +2 -2
  184. package/lib/components/JumpTo/JumpToMenu.d.ts.map +1 -1
  185. package/lib/components/JumpTo/JumpToMenu.js +53 -12
  186. package/lib/components/JumpTo/index.test.js +84 -0
  187. package/lib/components/JumpTo/schema.d.ts.map +1 -1
  188. package/lib/components/JumpTo/schema.js +2 -1
  189. package/lib/components/JumpTo/types.d.ts +1 -0
  190. package/lib/components/JumpTo/types.d.ts.map +1 -1
  191. package/lib/components/JumpTo/types.js +5 -1
  192. package/lib/components/JumpTo/utils.d.ts.map +1 -1
  193. package/lib/components/JumpTo/utils.js +3 -7
  194. package/lib/components/LeftNav/Item/ClickArea.js +1 -1
  195. package/lib/components/LeftNav/Item/ItemWrapper.d.ts.map +1 -1
  196. package/lib/components/LeftNav/Item/ItemWrapper.js +3 -1
  197. package/lib/components/LeftNav/Item/MenuItemWrapper.d.ts +7 -0
  198. package/lib/components/LeftNav/Item/MenuItemWrapper.d.ts.map +1 -0
  199. package/lib/components/LeftNav/Item/MenuItemWrapper.js +20 -0
  200. package/lib/components/LeftNav/Item/NavCollapsedXItem/index.d.ts.map +1 -1
  201. package/lib/components/LeftNav/Item/NavCollapsedXItem/index.js +7 -5
  202. package/lib/components/LeftNav/Item/NavExpandedItem/index.d.ts.map +1 -1
  203. package/lib/components/LeftNav/Item/NavExpandedItem/index.js +24 -13
  204. package/lib/components/LeftNav/Item/types.d.ts +1 -1
  205. package/lib/components/LeftNav/Item/types.d.ts.map +1 -1
  206. package/lib/components/LeftNav/Item/types.js +5 -1
  207. package/lib/components/LeftNav/index.test.js +13 -3
  208. package/lib/components/LeftNav/schema.d.ts.map +1 -1
  209. package/lib/components/LeftNav/schema.js +2 -0
  210. package/lib/components/LeftNav/types.d.ts +1 -0
  211. package/lib/components/LeftNav/types.d.ts.map +1 -1
  212. package/lib/components/LeftNav/types.js +5 -1
  213. package/lib/components/Link/DisabledLink.d.ts +7 -0
  214. package/lib/components/Link/DisabledLink.d.ts.map +1 -0
  215. package/lib/components/Link/DisabledLink.js +46 -0
  216. package/lib/components/Link/Link.d.ts +4 -0
  217. package/lib/components/Link/Link.d.ts.map +1 -0
  218. package/lib/components/Link/Link.js +67 -0
  219. package/lib/components/Link/index.d.ts +4 -23
  220. package/lib/components/Link/index.d.ts.map +1 -1
  221. package/lib/components/Link/index.js +20 -158
  222. package/lib/components/Link/index.test.js +63 -42
  223. package/lib/components/Link/schema.d.ts.map +1 -1
  224. package/lib/components/Link/schema.js +2 -1
  225. package/lib/components/Link/styles.d.ts +20 -0
  226. package/lib/components/Link/styles.d.ts.map +1 -0
  227. package/lib/components/Link/styles.js +131 -0
  228. package/lib/components/Link/types.d.ts +28 -0
  229. package/lib/components/Link/types.d.ts.map +1 -0
  230. package/lib/components/Link/types.js +5 -0
  231. package/lib/components/Loading/Loading.d.ts +12 -0
  232. package/lib/components/Loading/Loading.d.ts.map +1 -0
  233. package/lib/components/Loading/Loading.js +70 -0
  234. package/lib/components/Loading/index.d.ts +4 -0
  235. package/lib/components/Loading/index.d.ts.map +1 -0
  236. package/lib/components/Loading/index.js +33 -0
  237. package/lib/components/Loading/index.test.js +55 -0
  238. package/lib/components/Loading/schema.d.ts +4 -0
  239. package/lib/components/Loading/schema.d.ts.map +1 -0
  240. package/lib/components/Loading/schema.js +31 -0
  241. package/lib/components/Loading/styles.d.ts +211 -0
  242. package/lib/components/Loading/styles.d.ts.map +1 -0
  243. package/lib/components/Loading/styles.js +77 -0
  244. package/lib/components/Loading/types.d.ts +10 -0
  245. package/lib/components/Loading/types.d.ts.map +1 -0
  246. package/lib/components/Loading/types.js +5 -0
  247. package/lib/components/Menu/types.js +5 -1
  248. package/lib/components/Modal/Manager.d.ts +6 -0
  249. package/lib/components/Modal/Manager.d.ts.map +1 -0
  250. package/lib/components/Modal/Manager.js +53 -0
  251. package/lib/components/Modal/ResponsiveModalWrapper.d.ts +11 -0
  252. package/lib/components/Modal/ResponsiveModalWrapper.d.ts.map +1 -0
  253. package/lib/components/Modal/ResponsiveModalWrapper.js +82 -0
  254. package/lib/components/Modal/components.d.ts +201 -3
  255. package/lib/components/Modal/components.d.ts.map +1 -1
  256. package/lib/components/Modal/components.js +16 -24
  257. package/lib/components/Modal/index.d.ts +8 -4
  258. package/lib/components/Modal/index.d.ts.map +1 -1
  259. package/lib/components/Modal/index.js +56 -95
  260. package/lib/components/Modal/index.test.js +26 -0
  261. package/lib/components/Modal/schema.d.ts.map +1 -1
  262. package/lib/components/Modal/schema.js +2 -1
  263. package/lib/components/Modal/types.d.ts +2 -1
  264. package/lib/components/Modal/types.d.ts.map +1 -1
  265. package/lib/components/Modal/types.js +5 -1
  266. package/lib/components/Modal/utils.d.ts +1 -1
  267. package/lib/components/Modal/utils.d.ts.map +1 -1
  268. package/lib/components/Modal/utils.js +7 -5
  269. package/lib/components/Notifications/Notification/components.d.ts +3 -3
  270. package/lib/components/Notifications/Notification/components.d.ts.map +1 -1
  271. package/lib/components/Notifications/Notification/components.js +12 -6
  272. package/lib/components/Notifications/Notification/index.d.ts +3 -6
  273. package/lib/components/Notifications/Notification/index.d.ts.map +1 -1
  274. package/lib/components/Notifications/Notification/index.js +19 -12
  275. package/lib/components/Notifications/Notification/index.test.js +38 -19
  276. package/lib/components/Notifications/NotificationsPanel/index.d.ts +2 -1
  277. package/lib/components/Notifications/NotificationsPanel/index.d.ts.map +1 -1
  278. package/lib/components/Notifications/NotificationsPanel/index.js +41 -22
  279. package/lib/components/Notifications/NotificationsPanel/schema.js +1 -1
  280. package/lib/components/Notifications/Notifier.test.js +79 -10
  281. package/lib/components/Notifications/constants.d.ts +2 -0
  282. package/lib/components/Notifications/constants.d.ts.map +1 -0
  283. package/lib/components/Notifications/constants.js +16 -0
  284. package/lib/components/Notifications/schema.d.ts.map +1 -1
  285. package/lib/components/Notifications/schema.js +2 -1
  286. package/lib/components/Notifications/useNotifications.d.ts +1 -0
  287. package/lib/components/Notifications/useNotifications.d.ts.map +1 -1
  288. package/lib/components/Notifications/useNotifications.test.js +7 -4
  289. package/lib/components/Pagination/Pagination.d.ts +1 -1
  290. package/lib/components/Pagination/Pagination.d.ts.map +1 -1
  291. package/lib/components/Pagination/Pagination.js +1 -0
  292. package/lib/components/Pagination/Pagination.test.js +9 -0
  293. package/lib/components/Pagination/types.js +5 -1
  294. package/lib/components/PasswordField/IconWrapper.d.ts +198 -0
  295. package/lib/components/PasswordField/IconWrapper.d.ts.map +1 -0
  296. package/lib/components/PasswordField/IconWrapper.js +32 -0
  297. package/lib/components/PasswordField/Input.d.ts +6 -0
  298. package/lib/components/PasswordField/Input.d.ts.map +1 -0
  299. package/lib/components/PasswordField/Input.js +28 -0
  300. package/lib/components/PasswordField/ShowPasswordButton.d.ts +8 -0
  301. package/lib/components/PasswordField/ShowPasswordButton.d.ts.map +1 -0
  302. package/lib/components/PasswordField/ShowPasswordButton.js +48 -0
  303. package/lib/components/PasswordField/index.d.ts +14 -0
  304. package/lib/components/PasswordField/index.d.ts.map +1 -0
  305. package/lib/components/PasswordField/index.js +113 -0
  306. package/lib/components/PasswordField/index.test.js +217 -0
  307. package/lib/components/PasswordField/schema.d.ts +3 -0
  308. package/lib/components/PasswordField/schema.d.ts.map +1 -0
  309. package/lib/components/PasswordField/schema.js +27 -0
  310. package/lib/components/Popover/Arrow.d.ts +2 -2
  311. package/lib/components/Popover/index.d.ts.map +1 -1
  312. package/lib/components/Popover/index.js +9 -5
  313. package/lib/components/Popover/schema.d.ts.map +1 -1
  314. package/lib/components/Popover/schema.js +27 -20
  315. package/lib/components/Popover/types.d.ts +4 -2
  316. package/lib/components/Popover/types.d.ts.map +1 -1
  317. package/lib/components/Popover/utils.d.ts +1 -1
  318. package/lib/components/SearchInput/index.d.ts +11 -0
  319. package/lib/components/SearchInput/index.d.ts.map +1 -0
  320. package/lib/components/SearchInput/index.js +176 -0
  321. package/lib/components/SearchInput/index.test.js +660 -0
  322. package/lib/components/SearchInput/schema.d.ts +3 -0
  323. package/lib/components/SearchInput/schema.d.ts.map +1 -0
  324. package/lib/components/SearchInput/schema.js +37 -0
  325. package/lib/components/SearchInput/styles.d.ts +1176 -0
  326. package/lib/components/SearchInput/styles.d.ts.map +1 -0
  327. package/lib/components/SearchInput/styles.js +97 -0
  328. package/lib/components/SearchInput/types.d.ts +38 -0
  329. package/lib/components/SearchInput/types.d.ts.map +1 -0
  330. package/lib/components/SearchInput/types.js +5 -0
  331. package/lib/components/Select/Target.d.ts.map +1 -1
  332. package/lib/components/Select/Target.js +6 -2
  333. package/lib/components/Select/index.d.ts.map +1 -1
  334. package/lib/components/Select/index.js +26 -3
  335. package/lib/components/Select/index.test.js +106 -23
  336. package/lib/components/Select/schema.d.ts.map +1 -1
  337. package/lib/components/Select/schema.js +5 -0
  338. package/lib/components/Select/types.d.ts +6 -3
  339. package/lib/components/Select/types.d.ts.map +1 -1
  340. package/lib/components/Select/types.js +5 -1
  341. package/lib/components/SelectDate/Target.d.ts.map +1 -1
  342. package/lib/components/SelectDate/Target.js +6 -2
  343. package/lib/components/SelectDate/index.d.ts.map +1 -1
  344. package/lib/components/SelectDate/index.js +32 -3
  345. package/lib/components/SelectDate/index.test.js +108 -51
  346. package/lib/components/SelectDate/schema.d.ts.map +1 -1
  347. package/lib/components/SelectDate/schema.js +3 -0
  348. package/lib/components/SelectDate/types.d.ts +3 -0
  349. package/lib/components/SelectDate/types.d.ts.map +1 -1
  350. package/lib/components/SelectDate/types.js +5 -1
  351. package/lib/components/SelectDateRange/index.d.ts.map +1 -1
  352. package/lib/components/SelectDateRange/index.js +31 -2
  353. package/lib/components/SelectDateRange/index.test.js +115 -58
  354. package/lib/components/SelectDateRange/schema.d.ts.map +1 -1
  355. package/lib/components/SelectDateRange/schema.js +3 -0
  356. package/lib/components/SelectDateRange/types.js +5 -1
  357. package/lib/components/StepTracker/index.d.ts +11 -0
  358. package/lib/components/StepTracker/index.d.ts.map +1 -0
  359. package/lib/components/StepTracker/index.js +56 -0
  360. package/lib/components/StepTracker/index.test.js +89 -0
  361. package/lib/components/StepTracker/schema.d.ts +3 -0
  362. package/lib/components/StepTracker/schema.d.ts.map +1 -0
  363. package/lib/components/StepTracker/schema.js +19 -0
  364. package/lib/components/StepTracker/styles.d.ts +605 -0
  365. package/lib/components/StepTracker/styles.d.ts.map +1 -0
  366. package/lib/components/StepTracker/styles.js +114 -0
  367. package/lib/components/Table/Body.d.ts.map +1 -1
  368. package/lib/components/Table/Body.js +28 -17
  369. package/lib/components/Table/Container.d.ts.map +1 -1
  370. package/lib/components/Table/Container.js +6 -1
  371. package/lib/components/Table/DataRow.d.ts.map +1 -1
  372. package/lib/components/Table/DataRow.js +26 -18
  373. package/lib/components/Table/Head.d.ts +1 -1
  374. package/lib/components/Table/Head.d.ts.map +1 -1
  375. package/lib/components/Table/Head.js +10 -5
  376. package/lib/components/Table/HeaderCell/index.d.ts.map +1 -1
  377. package/lib/components/Table/HeaderCell/index.js +19 -6
  378. package/lib/components/Table/HeaderCell/types.d.ts +6 -1
  379. package/lib/components/Table/HeaderCell/types.d.ts.map +1 -1
  380. package/lib/components/Table/HeaderCell/types.js +5 -1
  381. package/lib/components/Table/Provider.d.ts +5 -5
  382. package/lib/components/Table/Provider.d.ts.map +1 -1
  383. package/lib/components/Table/Provider.js +10 -11
  384. package/lib/components/Table/index.d.ts.map +1 -1
  385. package/lib/components/Table/index.js +110 -20
  386. package/lib/components/Table/index.test.js +80 -33
  387. package/lib/components/Table/schema.columns.d.ts.map +1 -1
  388. package/lib/components/Table/schema.columns.js +6 -4
  389. package/lib/components/Table/schema.d.ts.map +1 -1
  390. package/lib/components/Table/schema.js +7 -6
  391. package/lib/components/Table/types.d.ts +19 -4
  392. package/lib/components/Table/types.d.ts.map +1 -1
  393. package/lib/components/Table/utils.d.ts +2 -8
  394. package/lib/components/Table/utils.d.ts.map +1 -1
  395. package/lib/components/Table/utils.js +21 -20
  396. package/lib/components/Tabs/Tab/index.d.ts +13 -0
  397. package/lib/components/Tabs/Tab/index.d.ts.map +1 -0
  398. package/lib/components/Tabs/Tab/index.js +94 -0
  399. package/lib/components/Tabs/Tab/schema.d.ts +3 -0
  400. package/lib/components/Tabs/Tab/schema.d.ts.map +1 -0
  401. package/lib/components/Tabs/Tab/styles.d.ts +7 -0
  402. package/lib/components/Tabs/Tab/styles.d.ts.map +1 -0
  403. package/lib/components/Tabs/Tab/styles.js +37 -0
  404. package/lib/components/Tabs/context.d.ts +2 -2
  405. package/lib/components/Tabs/context.d.ts.map +1 -1
  406. package/lib/components/Tabs/context.js +1 -1
  407. package/lib/components/Tabs/index.d.ts +17 -6
  408. package/lib/components/Tabs/index.d.ts.map +1 -1
  409. package/lib/components/Tabs/index.js +104 -163
  410. package/lib/components/Tabs/index.test.js +54 -2
  411. package/lib/components/Tabs/styles.d.ts +4 -0
  412. package/lib/components/Tabs/styles.d.ts.map +1 -0
  413. package/lib/components/Tabs/styles.js +35 -0
  414. package/lib/components/Tag/Action.d.ts +4 -0
  415. package/lib/components/Tag/Action.d.ts.map +1 -0
  416. package/lib/components/Tag/Action.js +39 -0
  417. package/lib/components/Tag/constants.d.ts +2 -2
  418. package/lib/components/Tag/constants.d.ts.map +1 -1
  419. package/lib/components/Tag/constants.js +4 -4
  420. package/lib/components/Tag/index.d.ts +1 -3
  421. package/lib/components/Tag/index.d.ts.map +1 -1
  422. package/lib/components/Tag/index.js +40 -97
  423. package/lib/components/Tag/index.test.js +239 -2
  424. package/lib/components/Tag/propTypes.d.ts +4 -1
  425. package/lib/components/Tag/propTypes.d.ts.map +1 -1
  426. package/lib/components/Tag/propTypes.js +5 -2
  427. package/lib/components/Tag/schema.d.ts.map +1 -1
  428. package/lib/components/Tag/schema.js +2 -0
  429. package/lib/components/Tag/styles.d.ts +13 -0
  430. package/lib/components/Tag/styles.d.ts.map +1 -0
  431. package/lib/components/Tag/styles.js +133 -0
  432. package/lib/components/Tag/types.d.ts +9 -10
  433. package/lib/components/Tag/types.d.ts.map +1 -1
  434. package/lib/components/Tag/types.js +5 -1
  435. package/lib/components/TagInput/index.d.ts +10 -0
  436. package/lib/components/TagInput/index.d.ts.map +1 -0
  437. package/lib/components/TagInput/index.js +217 -0
  438. package/lib/components/TagInput/index.test.js +1001 -0
  439. package/lib/components/TagInput/schema.d.ts +3 -0
  440. package/lib/components/TagInput/schema.d.ts.map +1 -0
  441. package/lib/components/TagInput/schema.js +30 -0
  442. package/lib/components/TagInput/styles.d.ts +10 -0
  443. package/lib/components/TagInput/styles.d.ts.map +1 -0
  444. package/lib/components/TagInput/styles.js +52 -0
  445. package/lib/components/TextArea/TextArea.d.ts.map +1 -1
  446. package/lib/components/TextArea/TextArea.js +1 -1
  447. package/lib/components/TextArea/index.js +1 -0
  448. package/lib/components/TextArea/index.test.js +5 -0
  449. package/lib/components/TextField/Input.js +1 -1
  450. package/lib/components/TextField/index.test.js +5 -0
  451. package/lib/components/Toggle/Fieldset.d.ts.map +1 -1
  452. package/lib/components/Toggle/Fieldset.js +20 -11
  453. package/lib/components/Toggle/Option.d.ts.map +1 -1
  454. package/lib/components/Toggle/Option.js +1 -1
  455. package/lib/components/Toggle/Slider.d.ts +1 -3
  456. package/lib/components/Toggle/Slider.d.ts.map +1 -1
  457. package/lib/components/Toggle/Slider.js +29 -24
  458. package/lib/components/Toggle/index.d.ts.map +1 -1
  459. package/lib/components/Toggle/index.js +6 -1
  460. package/lib/components/Toggle/index.test.js +39 -10
  461. package/lib/components/Toggle/propTypes.js +1 -1
  462. package/lib/components/Toggle/schema.js +1 -1
  463. package/lib/components/Toggle/types.d.ts +3 -2
  464. package/lib/components/Toggle/types.d.ts.map +1 -1
  465. package/lib/components/Toggle/types.js +5 -1
  466. package/lib/components/ToggleView/ToggleView.d.ts +5 -0
  467. package/lib/components/ToggleView/ToggleView.d.ts.map +1 -0
  468. package/lib/components/ToggleView/ToggleView.js +80 -0
  469. package/lib/components/ToggleView/index.d.ts +4 -0
  470. package/lib/components/ToggleView/index.d.ts.map +1 -0
  471. package/lib/components/ToggleView/index.js +33 -0
  472. package/lib/components/ToggleView/index.test.js +61 -0
  473. package/lib/components/ToggleView/schema.d.ts +3 -0
  474. package/lib/components/ToggleView/schema.d.ts.map +1 -0
  475. package/lib/components/ToggleView/schema.js +24 -0
  476. package/lib/components/ToggleView/styles.d.ts +6 -0
  477. package/lib/components/ToggleView/styles.d.ts.map +1 -0
  478. package/lib/components/ToggleView/styles.js +23 -0
  479. package/lib/components/ToggleView/types.d.ts +23 -0
  480. package/lib/components/ToggleView/types.d.ts.map +1 -0
  481. package/lib/components/ToggleView/types.js +12 -0
  482. package/lib/components/Tooltip/index.d.ts.map +1 -1
  483. package/lib/components/Tooltip/index.js +3 -13
  484. package/lib/components/Tooltip/schema.d.ts +3 -0
  485. package/lib/components/Tooltip/schema.d.ts.map +1 -0
  486. package/lib/components/Tooltip/schema.js +29 -0
  487. package/lib/components/Typography/withColors.d.ts +1 -1
  488. package/lib/components/Typography/withColors.d.ts.map +1 -1
  489. package/lib/components/Typography/withColors.js +1 -1
  490. package/lib/components/Wizard/index.d.ts +24 -0
  491. package/lib/components/Wizard/index.d.ts.map +1 -0
  492. package/lib/components/Wizard/index.js +146 -0
  493. package/lib/components/Wizard/index.test.js +591 -0
  494. package/lib/components/Wizard/schema.d.ts +3 -0
  495. package/lib/components/Wizard/schema.d.ts.map +1 -0
  496. package/lib/components/Wizard/schema.js +37 -0
  497. package/lib/components/Wizard/styles.d.ts +990 -0
  498. package/lib/components/Wizard/styles.d.ts.map +1 -0
  499. package/lib/components/Wizard/styles.js +79 -0
  500. package/lib/components/index.d.ts +11 -1
  501. package/lib/components/index.d.ts.map +1 -1
  502. package/lib/components/index.js +182 -1
  503. package/lib/modifiers/palette.d.ts +36 -0
  504. package/lib/modifiers/palette.d.ts.map +1 -0
  505. package/lib/modifiers/palette.js +88 -0
  506. package/lib/modifiers/spacingSchema.d.ts.map +1 -1
  507. package/lib/modifiers/spacingSchema.js +29 -16
  508. package/lib/providers/ConfigProvider/index.d.ts.map +1 -1
  509. package/lib/providers/ConfigProvider/index.js +5 -1
  510. package/lib/providers/ConfigProvider/utils/context.d.ts +1 -1
  511. package/lib/providers/ConfigProvider/utils/context.d.ts.map +1 -1
  512. package/lib/providers/ConfigProvider/utils/normalizer.d.ts.map +1 -1
  513. package/lib/providers/ConfigProvider/utils/normalizer.js +1 -1
  514. package/lib/providers/ConfigProvider/utils/translations.d.ts +40 -0
  515. package/lib/providers/ConfigProvider/utils/translations.d.ts.map +1 -1
  516. package/lib/providers/ConfigProvider/utils/translations.js +40 -0
  517. package/lib/providers/NotificationsProvider/index.d.ts +6 -5
  518. package/lib/providers/NotificationsProvider/index.d.ts.map +1 -1
  519. package/lib/providers/NotificationsProvider/index.js +47 -28
  520. package/lib/providers/NotificationsProvider/types.d.ts +4 -1
  521. package/lib/providers/NotificationsProvider/types.d.ts.map +1 -1
  522. package/lib/utils/commonUIColors.d.ts +351 -3
  523. package/lib/utils/commonUIColors.d.ts.map +1 -1
  524. package/lib/utils/commonUIColors.js +6 -2
  525. package/lib/utils/joinClassnames.d.ts +3 -0
  526. package/lib/utils/joinClassnames.d.ts.map +1 -0
  527. package/lib/utils/joinClassnames.js +26 -0
  528. package/lib/utils/useDebounce.d.ts +2 -0
  529. package/lib/utils/useDebounce.d.ts.map +1 -0
  530. package/lib/utils/useDebounce.js +37 -0
  531. package/lib/utils/useFirstMount.d.ts +2 -0
  532. package/lib/utils/useFirstMount.d.ts.map +1 -0
  533. package/lib/utils/useFirstMount.js +19 -0
  534. package/lib/utils/useUpdateEffect.d.ts +4 -0
  535. package/lib/utils/useUpdateEffect.d.ts.map +1 -0
  536. package/lib/utils/useUpdateEffect.js +28 -0
  537. package/package.json +2 -2
  538. package/CHANGELOG.md +0 -796
  539. package/lib/atoms/InputField/RequiredIcon.d.ts +0 -4
  540. package/lib/atoms/InputField/RequiredIcon.d.ts.map +0 -1
  541. package/lib/atoms/OptionsList/Category.d.ts +0 -4
  542. package/lib/atoms/OptionsList/Category.d.ts.map +0 -1
  543. package/lib/atoms/OptionsList/Option.d.ts.map +0 -1
  544. package/lib/atoms/OptionsList/Option.js +0 -194
  545. package/lib/components/Tabs/Tab.d.ts +0 -5
  546. package/lib/components/Tabs/Tab.d.ts.map +0 -1
  547. package/lib/components/Tabs/Tab.js +0 -109
  548. package/lib/components/Tabs/schema.tab.d.ts.map +0 -1
  549. package/lib/components/Tabs/types.d.ts +0 -27
  550. package/lib/components/Tabs/types.d.ts.map +0 -1
  551. package/lib/components/Tabs/types.js +0 -1
  552. package/lib/components/Tag/ActionButton.d.ts +0 -5
  553. package/lib/components/Tag/ActionButton.d.ts.map +0 -1
  554. package/lib/components/Tag/ActionButton.js +0 -56
  555. /package/lib/components/Tabs/{schema.tab.js → Tab/schema.js} +0 -0
@@ -79,20 +79,50 @@ describe('Calendar', function () {
79
79
  var today = new Date();
80
80
  expect(queryByText("".concat(months[today.getMonth()], " ").concat(today.getFullYear()))).toBeInTheDocument();
81
81
  });
82
+ it('renders the "go to today" button as disabled if its in the current month', function () {
83
+ var _render3 = render(_react.default.createElement(_.default, null)),
84
+ queryByText = _render3.queryByText;
85
+
86
+ expect(queryByText('Today').closest('button')).toHaveAttribute('disabled');
87
+ });
88
+ it('renders the "go to today" button as enabled if its not in the current month', function () {
89
+ var _render4 = render(_react.default.createElement(_.default, {
90
+ viewMonth: {
91
+ year: 2020,
92
+ month: 1
93
+ }
94
+ })),
95
+ queryByText = _render4.queryByText;
96
+
97
+ expect(queryByText('Today').closest('button')).not.toHaveAttribute('disabled');
98
+ });
99
+ it('renders the "go to today" button as enabled if its in the current month of a different year', function () {
100
+ var today = new Date();
101
+
102
+ var _render5 = render(_react.default.createElement(_.default, {
103
+ viewMonth: {
104
+ year: today.getFullYear() - 1,
105
+ month: today.getMonth()
106
+ }
107
+ })),
108
+ queryByText = _render5.queryByText;
109
+
110
+ expect(queryByText('Today').closest('button')).not.toHaveAttribute('disabled');
111
+ });
82
112
  it('renders a button to view the previous month', function () {
83
113
  var _rtlRender = (0, _react2.render)(_react.default.createElement(_ArrowLeft.default, null)),
84
114
  svgContainer = _rtlRender.container;
85
115
 
86
116
  var arrowLeftPathD = svgContainer.querySelector('svg path').getAttribute('d');
87
117
 
88
- var _render3 = render(_react.default.createElement(_.default, {
118
+ var _render6 = render(_react.default.createElement(_.default, {
89
119
  viewMonth: {
90
120
  year: 2020,
91
121
  month: 1
92
122
  }
93
123
  })),
94
- queryByLabelText = _render3.queryByLabelText,
95
- queryByText = _render3.queryByText;
124
+ queryByLabelText = _render6.queryByLabelText,
125
+ queryByText = _render6.queryByText;
96
126
 
97
127
  var viewPrevMonthButton = queryByLabelText(/view previous month/i);
98
128
  expect(viewPrevMonthButton).toBeInTheDocument();
@@ -108,14 +138,14 @@ describe('Calendar', function () {
108
138
 
109
139
  var arrowRightPathD = svgContainer.querySelector('svg path').getAttribute('d');
110
140
 
111
- var _render4 = render(_react.default.createElement(_.default, {
141
+ var _render7 = render(_react.default.createElement(_.default, {
112
142
  viewMonth: {
113
143
  year: 2020,
114
144
  month: 1
115
145
  }
116
146
  })),
117
- queryByLabelText = _render4.queryByLabelText,
118
- queryByText = _render4.queryByText;
147
+ queryByLabelText = _render7.queryByLabelText,
148
+ queryByText = _render7.queryByText;
119
149
 
120
150
  var viewNextMonthButton = queryByLabelText(/view next month/i);
121
151
  expect(viewNextMonthButton).toBeInTheDocument();
@@ -126,13 +156,13 @@ describe('Calendar', function () {
126
156
  expect(queryByText('February 2020')).toBeInTheDocument();
127
157
  });
128
158
  it('renders a header for each day of the week', function () {
129
- var _render5 = render(_react.default.createElement(_.default, {
159
+ var _render8 = render(_react.default.createElement(_.default, {
130
160
  viewMonth: {
131
161
  year: 2020,
132
162
  month: 1
133
163
  }
134
164
  })),
135
- queryByText = _render5.queryByText;
165
+ queryByText = _render8.queryByText;
136
166
 
137
167
  var _iteratorNormalCompletion = true;
138
168
  var _didIteratorError = false;
@@ -159,13 +189,13 @@ describe('Calendar', function () {
159
189
  }
160
190
  });
161
191
  it('renders a date button for every day of the month', function () {
162
- var _render6 = render(_react.default.createElement(_.default, {
192
+ var _render9 = render(_react.default.createElement(_.default, {
163
193
  viewMonth: {
164
194
  year: 2020,
165
195
  month: 2
166
196
  }
167
197
  })),
168
- queryByText = _render6.queryByText; // 2020 is a leap year.
198
+ queryByText = _render9.queryByText; // 2020 is a leap year.
169
199
 
170
200
 
171
201
  var datesInFebruary2020 = (0, _range.default)(1, 30);
@@ -204,10 +234,10 @@ describe('Calendar', function () {
204
234
  var today = new Date();
205
235
  var selected = new Date(today.getFullYear(), today.getMonth() - 1, 1);
206
236
 
207
- var _render7 = render(_react.default.createElement(_.default, {
237
+ var _render10 = render(_react.default.createElement(_.default, {
208
238
  selected: selected
209
239
  })),
210
- queryByText = _render7.queryByText;
240
+ queryByText = _render10.queryByText;
211
241
 
212
242
  expect(queryByText("".concat(months[selected.getMonth()], " ").concat(selected.getFullYear()))).toBeInTheDocument();
213
243
  });
@@ -215,10 +245,10 @@ describe('Calendar', function () {
215
245
  var today = new Date();
216
246
  var selected = new Date(today.getFullYear() + 1, today.getMonth() + 2, 1);
217
247
 
218
- var _render8 = render(_react.default.createElement(_.default, {
248
+ var _render11 = render(_react.default.createElement(_.default, {
219
249
  selected: selected
220
250
  })),
221
- queryByText = _render8.queryByText;
251
+ queryByText = _render11.queryByText;
222
252
 
223
253
  _react2.fireEvent.click(queryByText(/today/i));
224
254
 
@@ -229,14 +259,14 @@ describe('Calendar', function () {
229
259
  it('selects the clicked date', function () {
230
260
  var onChange = jest.fn();
231
261
 
232
- var _render9 = render(_react.default.createElement(_.default, {
262
+ var _render12 = render(_react.default.createElement(_.default, {
233
263
  onChange: onChange,
234
264
  viewMonth: {
235
265
  year: 2020,
236
266
  month: 2
237
267
  }
238
268
  })),
239
- queryByText = _render9.queryByText;
269
+ queryByText = _render12.queryByText;
240
270
 
241
271
  var date = 7;
242
272
  var selectedDate = (0, _utils.buildJSDate)({
@@ -257,14 +287,14 @@ describe('Calendar', function () {
257
287
  it('clears the selected date if already selected', function () {
258
288
  var onChange = jest.fn();
259
289
 
260
- var _render10 = render(_react.default.createElement(_.default, {
290
+ var _render13 = render(_react.default.createElement(_.default, {
261
291
  onChange: onChange,
262
292
  viewMonth: {
263
293
  year: 2020,
264
294
  month: 2
265
295
  }
266
296
  })),
267
- queryByText = _render10.queryByText;
297
+ queryByText = _render13.queryByText;
268
298
 
269
299
  var date = 7;
270
300
  var selectedDate = (0, _utils.buildJSDate)({
@@ -294,7 +324,7 @@ describe('Calendar', function () {
294
324
  date: date
295
325
  });
296
326
 
297
- var _render11 = render(_react.default.createElement(_.default, {
327
+ var _render14 = render(_react.default.createElement(_.default, {
298
328
  onChange: onChange,
299
329
  viewMonth: {
300
330
  year: 2020,
@@ -302,7 +332,7 @@ describe('Calendar', function () {
302
332
  },
303
333
  disabledDateRules: [[_constants.DisabledDateRuleName.IS, selectedDate]]
304
334
  })),
305
- queryByText = _render11.queryByText;
335
+ queryByText = _render14.queryByText;
306
336
 
307
337
  var selectedDateButton = queryByText(function (content, element) {
308
338
  return element.nodeName === 'BUTTON' && element.textContent === String(date);
@@ -318,14 +348,14 @@ describe('Calendar', function () {
318
348
  it('initializes the calendar with the default selected value', function () {
319
349
  var defaultSelected = new Date(2020, 1, 7);
320
350
 
321
- var _render12 = render(_react.default.createElement(_.default, {
351
+ var _render15 = render(_react.default.createElement(_.default, {
322
352
  defaultSelected: defaultSelected,
323
353
  viewMonth: {
324
354
  year: 2020,
325
355
  month: 2
326
356
  }
327
357
  })),
328
- queryByText = _render12.queryByText;
358
+ queryByText = _render15.queryByText;
329
359
 
330
360
  var selectedDateButton = queryByText(function (content, element) {
331
361
  return element.nodeName === 'BUTTON' && element.textContent === '7';
@@ -335,15 +365,15 @@ describe('Calendar', function () {
335
365
  it('does NOT update selected value when default selected prop changes', function () {
336
366
  var defaultSelected = new Date(2020, 1, 7);
337
367
 
338
- var _render13 = render(_react.default.createElement(_.default, {
368
+ var _render16 = render(_react.default.createElement(_.default, {
339
369
  defaultSelected: defaultSelected,
340
370
  viewMonth: {
341
371
  year: 2020,
342
372
  month: 2
343
373
  }
344
374
  })),
345
- queryByText = _render13.queryByText,
346
- rerender = _render13.rerender;
375
+ queryByText = _render16.queryByText,
376
+ rerender = _render16.rerender;
347
377
 
348
378
  var newDefaultSelected = new Date(2020, 1, 15);
349
379
  rerender(_react.default.createElement(_.default, {
@@ -367,14 +397,14 @@ describe('Calendar', function () {
367
397
  it('initializes the calendar with the selected value', function () {
368
398
  var selected = new Date(2020, 1, 7);
369
399
 
370
- var _render14 = render(_react.default.createElement(_.default, {
400
+ var _render17 = render(_react.default.createElement(_.default, {
371
401
  selected: selected,
372
402
  viewMonth: {
373
403
  year: 2020,
374
404
  month: 2
375
405
  }
376
406
  })),
377
- queryByText = _render14.queryByText;
407
+ queryByText = _render17.queryByText;
378
408
 
379
409
  var selectedDateButton = queryByText(function (content, element) {
380
410
  return element.nodeName === 'BUTTON' && element.textContent === '7';
@@ -384,15 +414,15 @@ describe('Calendar', function () {
384
414
  it('updates selected value when selected prop changes', function () {
385
415
  var selected = new Date(2020, 1, 7);
386
416
 
387
- var _render15 = render(_react.default.createElement(_.default, {
417
+ var _render18 = render(_react.default.createElement(_.default, {
388
418
  selected: selected,
389
419
  viewMonth: {
390
420
  year: 2020,
391
421
  month: 2
392
422
  }
393
423
  })),
394
- queryByText = _render15.queryByText,
395
- rerender = _render15.rerender;
424
+ queryByText = _render18.queryByText,
425
+ rerender = _render18.rerender;
396
426
 
397
427
  var newSelected = new Date(2020, 1, 15);
398
428
  rerender(_react.default.createElement(_.default, {
@@ -415,7 +445,7 @@ describe('Calendar', function () {
415
445
  var onChange = jest.fn();
416
446
  var selected = new Date(2020, 1, 7);
417
447
 
418
- var _render16 = render(_react.default.createElement(_.default, {
448
+ var _render19 = render(_react.default.createElement(_.default, {
419
449
  onChange: onChange,
420
450
  selected: selected,
421
451
  viewMonth: {
@@ -423,7 +453,7 @@ describe('Calendar', function () {
423
453
  month: 2
424
454
  }
425
455
  })),
426
- rerender = _render16.rerender;
456
+ rerender = _render19.rerender;
427
457
 
428
458
  var newSelected = new Date(2020, 1, 15);
429
459
  rerender(_react.default.createElement(_.default, {
@@ -440,7 +470,7 @@ describe('Calendar', function () {
440
470
  var onChange = jest.fn();
441
471
  var selected = new Date(2020, 1, 7);
442
472
 
443
- var _render17 = render(_react.default.createElement(_.default, {
473
+ var _render20 = render(_react.default.createElement(_.default, {
444
474
  onChange: onChange,
445
475
  selected: selected,
446
476
  viewMonth: {
@@ -448,7 +478,7 @@ describe('Calendar', function () {
448
478
  month: 2
449
479
  }
450
480
  })),
451
- queryByText = _render17.queryByText;
481
+ queryByText = _render20.queryByText;
452
482
 
453
483
  var selectedDateButton = queryByText(function (content, element) {
454
484
  return element.nodeName === 'BUTTON' && element.textContent === '7';
@@ -468,7 +498,7 @@ describe('Calendar', function () {
468
498
  describe('date range', function () {
469
499
  it('highlights the active date range', function () {
470
500
  // disabled date is added to ensure range styles overrides disabled styles
471
- var _render18 = render(_react.default.createElement(_.default, {
501
+ var _render21 = render(_react.default.createElement(_.default, {
472
502
  variant: "range",
473
503
  viewMonth: {
474
504
  year: 2020,
@@ -477,7 +507,7 @@ describe('Calendar', function () {
477
507
  selected: [new Date(2020, 1, 15)],
478
508
  disabledDateRules: [[_constants.DisabledDateRuleName.IS, new Date(2020, 1, 16)]]
479
509
  })),
480
- queryByText = _render18.queryByText;
510
+ queryByText = _render21.queryByText;
481
511
 
482
512
  _react2.fireEvent.mouseOver(queryByText('20')); // TODO test for start and end date styles, currently linear gradient is not supported
483
513
  // https://github.com/testing-library/jest-dom/issues/170
@@ -517,7 +547,7 @@ describe('Calendar', function () {
517
547
  });
518
548
  it('highlights the selected date range', function () {
519
549
  // disabled date is added to ensure range styles overrides disabled styles
520
- var _render19 = render(_react.default.createElement(_.default, {
550
+ var _render22 = render(_react.default.createElement(_.default, {
521
551
  variant: "range",
522
552
  viewMonth: {
523
553
  year: 2020,
@@ -526,7 +556,7 @@ describe('Calendar', function () {
526
556
  selected: [new Date(2020, 1, 15), new Date(2020, 1, 20)],
527
557
  disabledDateRules: [[_constants.DisabledDateRuleName.IS, new Date(2020, 1, 16)]]
528
558
  })),
529
- queryByText = _render19.queryByText; // TODO test for start and end date styles, currently linear gradient is not supported
559
+ queryByText = _render22.queryByText; // TODO test for start and end date styles, currently linear gradient is not supported
530
560
  // https://github.com/testing-library/jest-dom/issues/170
531
561
 
532
562
 
@@ -90,7 +90,7 @@ interface TBaseCalendarProps {
90
90
  focusOnRender?: boolean;
91
91
  onChange?: (date?: Date | TSelectedDates) => void;
92
92
  onClick?: MouseEventHandler;
93
- minWidth?: string;
93
+ width?: string;
94
94
  viewMonth?: Date | TDisplayMonth;
95
95
  disabledDateRules?: TDisabledDateRule[];
96
96
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atoms/Calendar/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAM9D,oBAAY,MAAM,GAAG,MAAM,CAAC;AAM5B,oBAAY,KAAK,GACb,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,G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,KAAK,IAAI,CAAC;IAClD,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,IAAI,GAAG,aAAa,CAAC;IACjC,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACzC;AAED,UAAU,0BAA2B,SAAQ,kBAAkB;IAC7D,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,UAAU,yBAA0B,SAAQ,kBAAkB;IAC5D,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,oBAAY,cAAc,GACtB,0BAA0B,GAC1B,yBAAyB,CAAC"}
@@ -1 +1,5 @@
1
- "use strict";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -40,7 +40,7 @@ export declare const InputFieldContainer: import("styled-components").StyledComp
40
40
  readonly LG: "LG";
41
41
  readonly XL: "XL";
42
42
  }> | undefined;
43
- readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "column" | "column-reverse" | "row" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
43
+ readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
44
44
  readonly XS: "XS";
45
45
  readonly SM: "SM";
46
46
  readonly MD: "MD";
@@ -205,6 +205,9 @@ interface InputContainerProps extends FlexComponentProps {
205
205
  hasWarning?: boolean;
206
206
  isFocused?: boolean;
207
207
  readOnly?: boolean;
208
+ hiddenLabel: boolean;
209
+ isTextArea: boolean;
210
+ multiple: boolean;
208
211
  }
209
212
  export declare const InputContainer: import("styled-components").StyledComponent<"div", any, Partial<{
210
213
  readonly alignContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
@@ -242,7 +245,7 @@ export declare const InputContainer: import("styled-components").StyledComponent
242
245
  readonly LG: "LG";
243
246
  readonly XL: "XL";
244
247
  }> | undefined;
245
- readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "column" | "column-reverse" | "row" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
248
+ readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
246
249
  readonly XS: "XS";
247
250
  readonly SM: "SM";
248
251
  readonly MD: "MD";
@@ -435,7 +438,7 @@ export declare const IconContainer: import("styled-components").StyledComponent<
435
438
  readonly LG: "LG";
436
439
  readonly XL: "XL";
437
440
  }> | undefined;
438
- readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "column" | "column-reverse" | "row" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
441
+ readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
439
442
  readonly XS: "XS";
440
443
  readonly SM: "SM";
441
444
  readonly MD: "MD";
@@ -594,6 +597,9 @@ export declare const IconContainer: import("styled-components").StyledComponent<
594
597
  }> & {
595
598
  alignItems: string;
596
599
  justifyContent: string;
600
+ } & {
601
+ hiddenLabel?: boolean | undefined;
602
+ rightPlacement?: boolean | undefined;
597
603
  }, "alignItems" | "justifyContent">;
598
604
  export declare const InputInnerContainer: import("styled-components").StyledComponent<"div", any, Partial<{
599
605
  readonly alignContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
@@ -631,7 +637,7 @@ export declare const InputInnerContainer: import("styled-components").StyledComp
631
637
  readonly LG: "LG";
632
638
  readonly XL: "XL";
633
639
  }> | undefined;
634
- readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "column" | "column-reverse" | "row" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
640
+ readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
635
641
  readonly XS: "XS";
636
642
  readonly SM: "SM";
637
643
  readonly MD: "MD";
@@ -790,9 +796,9 @@ export declare const InputInnerContainer: import("styled-components").StyledComp
790
796
  }> & {
791
797
  flex: number;
792
798
  flexWrap: string;
793
- paddingLeft: number;
794
799
  } & {
795
800
  hasIcon?: boolean | undefined;
796
- }, "flexWrap" | "paddingLeft" | "flex">;
801
+ hiddenLabel: boolean;
802
+ }, "flexWrap" | "flex">;
797
803
  export {};
798
804
  //# sourceMappingURL=Containers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Containers.d.ts","sourceRoot":"","sources":["../../../src/atoms/InputField/Containers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAUtC,OAAa,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,UAAU,wBAAyB,SAAQ,kBAAkB;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAuBzB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA4B/B,CAAC"}
@@ -11,6 +11,8 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
11
11
 
12
12
  var _color = _interopRequireDefault(require("@decisiv/design-tokens/lib/color"));
13
13
 
14
+ var _rem = _interopRequireDefault(require("polished/lib/helpers/rem"));
15
+
14
16
  var _spacing = _interopRequireDefault(require("@decisiv/design-tokens/lib/spacing"));
15
17
 
16
18
  var _dynamicModifiers = require("../../utils/dynamicModifiers");
@@ -32,6 +34,7 @@ var InputFieldContainer = (0, _styledComponents.default)(_Flex.default).attrs({
32
34
  componentId: "me30fz-0"
33
35
  })(["flex:1;max-width:100%;", ";"], (0, _styleModifiers.when)('overflow', 'auto', (0, _styledComponents.css)(["overflow:auto;"])));
34
36
  exports.InputFieldContainer = InputFieldContainer;
37
+ var hiddenLabelStyles = (0, _styledComponents.css)(["min-height:32px;"]);
35
38
  var inactiveStyles = (0, _styledComponents.css)(["background:", ";border-color:", ";cursor:not-allowed;position:relative;&:active,&:hover{background:", ";border-color:", ";", ";}*{cursor:not-allowed;}"], (0, _toColorString.default)(_color.default.opacity.fullMoon50), (0, _toColorString.default)(_color.default.base.quarterMoon), (0, _toColorString.default)(_color.default.opacity.fullMoon50), (0, _toColorString.default)(_color.default.base.quarterMoon), (0, _focusRingWithColor.default)({
36
39
  red: 0,
37
40
  green: 0,
@@ -42,22 +45,21 @@ var onFocusStyles = (0, _styledComponents.css)(["border-color:", ";", ";&:hover{
42
45
  var InputContainer = (0, _styledComponents.default)(_Flex.default).withConfig({
43
46
  displayName: "Containers__InputContainer",
44
47
  componentId: "me30fz-1"
45
- })(["background:", ";border:1px solid ", ";box-sizing:border-box;min-height:50px;position:relative;width:100%;", ";& ~ *{cursor:default;margin-top:", "px;width:100%;}&:hover{border-color:", ";}&:active{border-color:", ";", ";}", ";", ";", ";", ";"], (0, _toColorString.default)(_color.default.base.snowWhite), (0, _toColorString.default)(_color.default.base.quarterMoon), (0, _dynamicModifiers.applyDynamicModifiers)('cursor'), _spacing.default.base * 0.5, (0, _toColorString.default)(_color.default.interaction.indianOcean), (0, _toColorString.default)(_color.default.interaction.pacificOcean), (0, _focusRingWithColor.default)(_color.default.interaction.pacificOcean40), (0, _styleModifiers.when)('isFocused', onFocusStyles), (0, _styleModifiers.when)('hasWarning', (0, _styledComponents.css)(["border-color:", ";&:active,&:hover{border-color:", ";}"], (0, _toColorString.default)(_color.default.status.warning.medium), (0, _toColorString.default)(_color.default.status.warning.medium))), (0, _styleModifiers.when)('disabled', inactiveStyles), (0, _styleModifiers.when)('readOnly', inactiveStyles));
48
+ })(["background:", ";border:1px solid ", ";box-sizing:border-box;min-height:50px;position:relative;width:100%;", ";& ~ *{cursor:default;margin-top:", "px;width:100%;}&:hover{border-color:", ";}&:active{border-color:", ";", ";}", ";", ";", ";", ";", ";", ";", ";"], (0, _toColorString.default)(_color.default.base.snowWhite), (0, _toColorString.default)(_color.default.base.quarterMoon), (0, _dynamicModifiers.applyDynamicModifiers)('cursor'), _spacing.default.base * 0.5, (0, _toColorString.default)(_color.default.interaction.indianOcean), (0, _toColorString.default)(_color.default.interaction.pacificOcean), (0, _focusRingWithColor.default)(_color.default.interaction.pacificOcean40), (0, _styleModifiers.when)('isFocused', onFocusStyles), (0, _styleModifiers.when)('hasWarning', (0, _styledComponents.css)(["border-color:", ";&:active,&:hover{border-color:", ";}"], (0, _toColorString.default)(_color.default.status.warning.medium), (0, _toColorString.default)(_color.default.status.warning.medium))), (0, _styleModifiers.when)('disabled', inactiveStyles), (0, _styleModifiers.when)('readOnly', inactiveStyles), (0, _styleModifiers.when)('hiddenLabel', hiddenLabelStyles), (0, _styleModifiers.whenNot)('isTextArea', (0, _styledComponents.css)(["height:32px;"])), (0, _styleModifiers.when)('multiple', (0, _styledComponents.css)(["height:auto;"])));
46
49
  exports.InputContainer = InputContainer;
47
50
  var IconContainer = (0, _styledComponents.default)(_Flex.default).attrs({
48
- alignItems: 'center',
51
+ alignItems: 'flex-start',
49
52
  justifyContent: 'center'
50
53
  }).withConfig({
51
54
  displayName: "Containers__IconContainer",
52
55
  componentId: "me30fz-2"
53
- })(["color:", ";margin:6px 0 6px 10px;width:30px;"], (0, _toColorString.default)(_color.default.base.alaskanHusky));
56
+ })(["color:", ";margin:16px 0 6px 15px;", " ", ""], (0, _toColorString.default)(_color.default.base.alaskanHusky), (0, _styleModifiers.when)('rightPlacement', (0, _styledComponents.css)(["margin:0;align-items:center;margin-right:", ";margin-left:", ";"], (0, _rem.default)(_spacing.default.base * 0.8), (0, _rem.default)(_spacing.default.base * 0.8))), (0, _styleModifiers.when)('hiddenLabel', (0, _styledComponents.css)(["margin:8px 0 8px 10px;"])));
54
57
  exports.IconContainer = IconContainer;
55
58
  var InputInnerContainer = (0, _styledComponents.default)(_Flex.default).attrs({
56
59
  flex: 1,
57
- flexWrap: 'wrap',
58
- paddingLeft: 1
60
+ flexWrap: 'wrap'
59
61
  }).withConfig({
60
62
  displayName: "Containers__InputInnerContainer",
61
63
  componentId: "me30fz-3"
62
- })(["max-width:100%;", ";"], (0, _styleModifiers.when)('hasIcon', (0, _styledComponents.css)(["max-width:calc(100% - 40px);"])));
64
+ })(["max-width:100%;padding-top:6px;padding-left:15px;", ";", ";", ";"], (0, _styleModifiers.when)('hasIcon', (0, _styledComponents.css)(["max-width:calc(100% - 10px);"])), (0, _styleModifiers.whenNot)('hasIcon', (0, _styledComponents.css)(["padding-left:10px;"])), (0, _styleModifiers.whenAll)([['hasIcon', true], ['hiddenLabel', true]], (0, _styledComponents.css)(["padding-left:10px;"])));
63
65
  exports.InputInnerContainer = InputInnerContainer;
@@ -4,7 +4,7 @@ export interface HelpMessageProps {
4
4
  helpMessage?: string;
5
5
  maxLength?: number;
6
6
  showCharacterCount?: boolean;
7
- contentLength: number;
7
+ contentLength?: number;
8
8
  }
9
9
  declare function HelpMessage(props: HelpMessageProps): JSX.Element | null;
10
10
  declare namespace HelpMessage {
@@ -1 +1 @@
1
- {"version":3,"file":"HelpMessage.d.ts","sourceRoot":"","sources":["../../../src/atoms/InputField/HelpMessage.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AASnC,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;CACvB;AAMD,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAwBhE;kBAxBQ,WAAW;;;;;;;;;;;;;;AAyCpB,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"HelpMessage.d.ts","sourceRoot":"","sources":["../../../src/atoms/InputField/HelpMessage.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AASnC,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAMD,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CA6BhE;kBA7BQ,WAAW;;;;;;;;;;;;;;AA8CpB,eAAe,WAAW,CAAC"}
@@ -28,7 +28,8 @@ function HelpMessage(props) {
28
28
  var helpMessage = props.helpMessage,
29
29
  maxLength = props.maxLength,
30
30
  showCharacterCount = props.showCharacterCount,
31
- contentLength = props.contentLength;
31
+ _props$contentLength = props.contentLength,
32
+ contentLength = _props$contentLength === void 0 ? 0 : _props$contentLength;
32
33
  var translate = (0, _useTranslations.default)();
33
34
  var showCount = Boolean(maxLength && showCharacterCount); // You have {remaining} characters left ({max} max).
34
35
 
@@ -4,6 +4,7 @@ interface InputLabelProps extends PProps, React.LabelHTMLAttributes<HTMLLabelEle
4
4
  color?: PProps['color'];
5
5
  disabled?: boolean;
6
6
  readOnly?: boolean;
7
+ hidden?: boolean;
7
8
  }
8
9
  declare const InputLabel: import("styled-components").StyledComponent<"p", any, PProps & {
9
10
  as: string;
@@ -1 +1 @@
1
- {"version":3,"file":"InputLabel.d.ts","sourceRoot":"","sources":["../../../src/atoms/InputField/InputLabel.ts"],"names":[],"mappings":";AAIA,OAAO,EAAK,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAExD,UAAU,eACR,SAAQ,MAAM,EACZ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAUD,QAAA,MAAM,UAAU;;;;6CAmBf,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"InputLabel.d.ts","sourceRoot":"","sources":["../../../src/atoms/InputField/InputLabel.ts"],"names":[],"mappings":";AAIA,OAAO,EAAK,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAExD,UAAU,eACR,SAAQ,MAAM,EACZ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAqBD,QAAA,MAAM,UAAU;;;;6CAoBf,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -14,6 +14,7 @@ var _Typography = require("../../components/Typography");
14
14
  function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
15
15
 
16
16
  var inactiveStyles = (0, _styledComponents.css)(["cursor:not-allowed;*{cursor:not-allowed;}"]);
17
+ var visuallyHiddenStyles = (0, _styledComponents.css)(["border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;"]);
17
18
  var InputLabel = (0, _styledComponents.default)(_Typography.P).attrs({
18
19
  as: 'label',
19
20
  color: 'alaskanHusky',
@@ -21,6 +22,6 @@ var InputLabel = (0, _styledComponents.default)(_Typography.P).attrs({
21
22
  }).withConfig({
22
23
  displayName: "InputLabel",
23
24
  componentId: "ldhs58-0"
24
- })(["display:block;padding-top:6px;padding-right:10px;text-align:left;width:100%;cursor:inherit;*{cursor:inherit;}", ";", ";"], (0, _styleModifiers.when)('disabled', inactiveStyles), (0, _styleModifiers.when)('readOnly', inactiveStyles));
25
+ })(["display:block;padding-right:10px;text-align:left;width:100%;cursor:inherit;*{cursor:inherit;}", ";", ";", ";"], (0, _styleModifiers.when)('disabled', inactiveStyles), (0, _styleModifiers.when)('readOnly', inactiveStyles), (0, _styleModifiers.when)('hidden', visuallyHiddenStyles));
25
26
  var _default = InputLabel;
26
27
  exports.default = _default;
@@ -14,6 +14,8 @@ export interface InputComponentProps {
14
14
  ref: Ref<any>;
15
15
  required?: boolean;
16
16
  value?: string | number | string[];
17
+ autoComplete?: string;
18
+ type?: string;
17
19
  }
18
20
  export interface BaseInputFieldProps {
19
21
  children: (props: InputComponentProps) => JSX.Element;
@@ -21,6 +23,7 @@ export interface BaseInputFieldProps {
21
23
  disabled?: boolean;
22
24
  helpMessage?: string;
23
25
  icon?: (props: IconProps) => JSX.Element;
26
+ secondaryElement?: JSX.Element;
24
27
  id?: string;
25
28
  inputContainerRef?: Ref<HTMLDivElement>;
26
29
  label: string;
@@ -37,9 +40,13 @@ export interface BaseInputFieldProps {
37
40
  required?: boolean;
38
41
  requiredMessage?: string;
39
42
  showCharacterCount?: boolean;
43
+ hideLabel?: boolean;
40
44
  style?: React.CSSProperties;
41
- value: string;
45
+ value?: string;
42
46
  warningMessage?: string;
47
+ withWarningIntent?: boolean;
48
+ isTextArea?: boolean;
49
+ multiple?: boolean;
43
50
  }
44
51
  declare const InputFieldWithRef: RefForwardingComponent<Ref<any>, BaseInputFieldProps>;
45
52
  export default InputFieldWithRef;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atoms/InputField/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EACZ,aAAa,EACb,GAAG,EACH,sBAAsB,EAIvB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAoB5C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,WAAW,mBAAmB;IAClC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAChC,QAAQ,CAAC,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