@decisiv/ui-components 2.0.1-alpha.97 → 2.0.1

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 (508) hide show
  1. package/lib/atoms/BooleanInput/elements.d.ts.map +1 -1
  2. package/lib/atoms/BooleanInput/elements.js +8 -3
  3. package/lib/atoms/BooleanInput/index.d.ts.map +1 -1
  4. package/lib/atoms/BooleanInput/index.js +8 -4
  5. package/lib/atoms/BooleanInput/types.d.ts +2 -0
  6. package/lib/atoms/BooleanInput/types.d.ts.map +1 -1
  7. package/lib/atoms/Calendar/index.d.ts.map +1 -1
  8. package/lib/atoms/Calendar/index.js +38 -5
  9. package/lib/atoms/Calendar/index.test.js +5 -5
  10. package/lib/atoms/Calendar/types.d.ts +1 -1
  11. package/lib/atoms/Calendar/types.d.ts.map +1 -1
  12. package/lib/atoms/InputField/Containers.d.ts +2 -1
  13. package/lib/atoms/InputField/Containers.d.ts.map +1 -1
  14. package/lib/atoms/InputField/Containers.js +3 -1
  15. package/lib/atoms/InputField/HelpMessage.d.ts +1 -1
  16. package/lib/atoms/InputField/HelpMessage.d.ts.map +1 -1
  17. package/lib/atoms/InputField/HelpMessage.js +23 -7
  18. package/lib/atoms/InputField/index.d.ts +6 -1
  19. package/lib/atoms/InputField/index.d.ts.map +1 -1
  20. package/lib/atoms/InputField/index.js +21 -4
  21. package/lib/atoms/InputField/index.test.js +53 -0
  22. package/lib/atoms/InputField/schema.js +2 -2
  23. package/lib/atoms/InputField/styles.d.ts +7 -0
  24. package/lib/atoms/InputField/styles.d.ts.map +1 -0
  25. package/lib/atoms/InputField/styles.js +31 -0
  26. package/lib/atoms/OptionsList/Category/index.d.ts +4 -0
  27. package/lib/atoms/OptionsList/Category/index.d.ts.map +1 -0
  28. package/lib/atoms/OptionsList/Category/index.js +85 -0
  29. package/lib/atoms/OptionsList/Category/styles.d.ts +5 -0
  30. package/lib/atoms/OptionsList/Category/styles.d.ts.map +1 -0
  31. package/lib/atoms/OptionsList/Category/styles.js +35 -0
  32. package/lib/atoms/OptionsList/{Option.d.ts → Option/index.d.ts} +2 -2
  33. package/lib/atoms/OptionsList/Option/index.d.ts.map +1 -0
  34. package/lib/atoms/OptionsList/Option/index.js +182 -0
  35. package/lib/atoms/OptionsList/Option/styles.d.ts +17 -0
  36. package/lib/atoms/OptionsList/Option/styles.d.ts.map +1 -0
  37. package/lib/atoms/OptionsList/Option/styles.js +86 -0
  38. package/lib/atoms/OptionsList/context.d.ts +1 -0
  39. package/lib/atoms/OptionsList/context.d.ts.map +1 -1
  40. package/lib/atoms/OptionsList/index.d.ts +1 -44
  41. package/lib/atoms/OptionsList/index.d.ts.map +1 -1
  42. package/lib/atoms/OptionsList/index.js +259 -40
  43. package/lib/atoms/OptionsList/index.test.js +329 -186
  44. package/lib/atoms/OptionsList/schema.d.ts.map +1 -1
  45. package/lib/atoms/OptionsList/schema.js +7 -1
  46. package/lib/atoms/OptionsList/styles.d.ts +45 -0
  47. package/lib/atoms/OptionsList/styles.d.ts.map +1 -0
  48. package/lib/atoms/OptionsList/styles.js +29 -0
  49. package/lib/atoms/OptionsList/types.d.ts +50 -1
  50. package/lib/atoms/OptionsList/types.d.ts.map +1 -1
  51. package/lib/atoms/OptionsList/utils.d.ts +2 -1
  52. package/lib/atoms/OptionsList/utils.d.ts.map +1 -1
  53. package/lib/atoms/OptionsList/utils.js +49 -2
  54. package/lib/components/Alert/Container.d.ts +201 -0
  55. package/lib/components/Alert/Container.d.ts.map +1 -0
  56. package/lib/components/Alert/Container.js +26 -0
  57. package/lib/components/Alert/StyledButton.d.ts +5 -0
  58. package/lib/components/Alert/StyledButton.d.ts.map +1 -0
  59. package/lib/components/Alert/StyledButton.js +23 -0
  60. package/lib/components/Alert/index.d.ts +27 -0
  61. package/lib/components/Alert/index.d.ts.map +1 -0
  62. package/lib/components/Alert/index.js +112 -0
  63. package/lib/components/Alert/index.test.js +79 -0
  64. package/lib/components/Alert/intents.d.ts +13 -0
  65. package/lib/components/Alert/intents.d.ts.map +1 -0
  66. package/lib/components/Alert/intents.js +72 -0
  67. package/lib/components/{Tabs/schema.tab.d.ts → Alert/schema.d.ts} +1 -1
  68. package/lib/components/Alert/schema.d.ts.map +1 -0
  69. package/lib/components/Alert/schema.js +25 -0
  70. package/lib/components/Alert/types.d.ts +36 -0
  71. package/lib/components/Alert/types.d.ts.map +1 -0
  72. package/lib/components/Alert/types.js +32 -0
  73. package/lib/components/Avatar/AvatarContainer.d.ts +1 -13
  74. package/lib/components/Avatar/AvatarContainer.d.ts.map +1 -1
  75. package/lib/components/Avatar/AvatarContainer.js +12 -13
  76. package/lib/components/Avatar/AvatarContent.d.ts +2 -2
  77. package/lib/components/Avatar/AvatarContent.d.ts.map +1 -1
  78. package/lib/components/Avatar/AvatarContent.js +24 -20
  79. package/lib/components/Avatar/index.d.ts.map +1 -1
  80. package/lib/components/Avatar/index.js +42 -5
  81. package/lib/components/Avatar/index.test.js +4 -0
  82. package/lib/components/Avatar/schema.d.ts.map +1 -1
  83. package/lib/components/Avatar/schema.js +3 -1
  84. package/lib/components/Avatar/types.d.ts +15 -2
  85. package/lib/components/Avatar/types.d.ts.map +1 -1
  86. package/lib/components/Badge/index.d.ts.map +1 -1
  87. package/lib/components/Badge/index.js +2 -58
  88. package/lib/components/Badge/index.test.js +15 -4
  89. package/lib/components/Badge/schema.d.ts.map +1 -1
  90. package/lib/components/Badge/schema.js +1 -0
  91. package/lib/components/Badge/styles.d.ts +3 -0
  92. package/lib/components/Badge/styles.d.ts.map +1 -0
  93. package/lib/components/Badge/styles.js +97 -0
  94. package/lib/components/Badge/types.d.ts +3 -1
  95. package/lib/components/Badge/types.d.ts.map +1 -1
  96. package/lib/components/Badge/types.js +2 -1
  97. package/lib/components/Button/StyledButton.d.ts +3 -6
  98. package/lib/components/Button/StyledButton.d.ts.map +1 -1
  99. package/lib/components/Button/StyledButton.js +39 -11
  100. package/lib/components/Button/index.d.ts.map +1 -1
  101. package/lib/components/Button/index.js +51 -12
  102. package/lib/components/Button/index.test.js +43 -8
  103. package/lib/components/Button/schema.d.ts.map +1 -1
  104. package/lib/components/Button/schema.js +4 -1
  105. package/lib/components/Button/types.d.ts +4 -1
  106. package/lib/components/Button/types.d.ts.map +1 -1
  107. package/lib/components/Combobox/Target.d.ts.map +1 -1
  108. package/lib/components/Combobox/Target.js +10 -0
  109. package/lib/components/Combobox/index.d.ts.map +1 -1
  110. package/lib/components/Combobox/index.js +111 -59
  111. package/lib/components/Combobox/index.test.js +110 -25
  112. package/lib/components/Combobox/schema.d.ts.map +1 -1
  113. package/lib/components/Combobox/schema.js +7 -1
  114. package/lib/components/Combobox/types.d.ts +7 -2
  115. package/lib/components/Combobox/types.d.ts.map +1 -1
  116. package/lib/components/Drawer/index.d.ts +22 -0
  117. package/lib/components/Drawer/index.d.ts.map +1 -0
  118. package/lib/components/Drawer/index.js +122 -0
  119. package/lib/components/Drawer/index.test.js +164 -0
  120. package/lib/components/Drawer/schema.d.ts +3 -0
  121. package/lib/components/Drawer/schema.d.ts.map +1 -0
  122. package/lib/components/Drawer/schema.js +32 -0
  123. package/lib/components/Drawer/styles.d.ts +11 -0
  124. package/lib/components/Drawer/styles.d.ts.map +1 -0
  125. package/lib/components/Drawer/styles.js +79 -0
  126. package/lib/components/DropdownList/index.d.ts.map +1 -1
  127. package/lib/components/DropdownList/index.js +10 -3
  128. package/lib/components/DropdownList/index.test.js +38 -25
  129. package/lib/components/DropdownList/schema.js +1 -1
  130. package/lib/components/Filter/ActionFilter/index.d.ts +5 -0
  131. package/lib/components/Filter/ActionFilter/index.d.ts.map +1 -0
  132. package/lib/components/Filter/ActionFilter/index.js +43 -0
  133. package/lib/components/Filter/IconWrapper/index.d.ts +2 -2
  134. package/lib/components/Filter/IconWrapper/index.d.ts.map +1 -1
  135. package/lib/components/Filter/SimplePrimary/index.d.ts +2 -28
  136. package/lib/components/Filter/SimplePrimary/index.d.ts.map +1 -1
  137. package/lib/components/Filter/SimplePrimary/index.js +9 -21
  138. package/lib/components/Filter/StyledFilter.d.ts +2 -2
  139. package/lib/components/Filter/StyledFilter.d.ts.map +1 -1
  140. package/lib/components/Filter/StyledFilter.js +28 -1
  141. package/lib/components/Filter/StyledLabel/index.d.ts +3 -3
  142. package/lib/components/Filter/StyledLabel/index.d.ts.map +1 -1
  143. package/lib/components/Filter/StyledLabel/index.js +14 -6
  144. package/lib/components/Filter/index.d.ts +4 -25
  145. package/lib/components/Filter/index.d.ts.map +1 -1
  146. package/lib/components/Filter/index.js +41 -29
  147. package/lib/components/Filter/index.test.js +33 -4
  148. package/lib/components/Filter/kind.d.ts +4 -3
  149. package/lib/components/Filter/kind.d.ts.map +1 -1
  150. package/lib/components/Filter/kind.js +20 -22
  151. package/lib/components/Filter/schema.d.ts.map +1 -1
  152. package/lib/components/Filter/schema.js +8 -3
  153. package/lib/components/Filter/types.d.ts +21 -7
  154. package/lib/components/Filter/types.d.ts.map +1 -1
  155. package/lib/components/JumpTo/JumpToMenu.d.ts.map +1 -1
  156. package/lib/components/JumpTo/JumpToMenu.js +50 -9
  157. package/lib/components/JumpTo/index.test.js +84 -0
  158. package/lib/components/JumpTo/schema.d.ts.map +1 -1
  159. package/lib/components/JumpTo/schema.js +2 -1
  160. package/lib/components/JumpTo/types.d.ts +1 -0
  161. package/lib/components/JumpTo/types.d.ts.map +1 -1
  162. package/lib/components/JumpTo/utils.d.ts.map +1 -1
  163. package/lib/components/JumpTo/utils.js +3 -7
  164. package/lib/components/LeftNav/Item/NavExpandedItem/index.js +7 -2
  165. package/lib/components/LeftNav/index.test.js +35 -19
  166. package/lib/components/LeftNav/schema.d.ts.map +1 -1
  167. package/lib/components/LeftNav/schema.js +3 -1
  168. package/lib/components/LeftNav/types.d.ts +1 -0
  169. package/lib/components/LeftNav/types.d.ts.map +1 -1
  170. package/lib/components/Link/DisabledLink.d.ts +7 -0
  171. package/lib/components/Link/DisabledLink.d.ts.map +1 -0
  172. package/lib/components/Link/DisabledLink.js +46 -0
  173. package/lib/components/Link/Link.d.ts +4 -0
  174. package/lib/components/Link/Link.d.ts.map +1 -0
  175. package/lib/components/Link/Link.js +67 -0
  176. package/lib/components/Link/index.d.ts +4 -23
  177. package/lib/components/Link/index.d.ts.map +1 -1
  178. package/lib/components/Link/index.js +19 -157
  179. package/lib/components/Link/index.test.js +62 -49
  180. package/lib/components/Link/schema.d.ts.map +1 -1
  181. package/lib/components/Link/schema.js +1 -0
  182. package/lib/components/Link/styles.d.ts +20 -0
  183. package/lib/components/Link/styles.d.ts.map +1 -0
  184. package/lib/components/Link/styles.js +131 -0
  185. package/lib/components/Link/types.d.ts +28 -0
  186. package/lib/components/Link/types.d.ts.map +1 -0
  187. package/lib/components/List/BaseCell/index.d.ts +6 -0
  188. package/lib/components/List/BaseCell/index.d.ts.map +1 -0
  189. package/lib/components/List/BaseCell/index.js +17 -0
  190. package/lib/components/List/BaseCell/index.test.js +33 -0
  191. package/lib/components/List/BaseCell/styles.d.ts +198 -0
  192. package/lib/components/List/BaseCell/styles.d.ts.map +1 -0
  193. package/lib/components/List/BaseCell/styles.js +26 -0
  194. package/lib/components/List/ContentContainer/index.d.ts +21 -0
  195. package/lib/components/List/ContentContainer/index.d.ts.map +1 -0
  196. package/lib/components/List/ContentContainer/index.js +82 -0
  197. package/lib/components/List/ContentContainer/index.test.js +102 -0
  198. package/lib/components/List/DefaultCell/index.d.ts +6 -0
  199. package/lib/components/List/DefaultCell/index.d.ts.map +1 -0
  200. package/lib/components/List/DefaultCell/index.js +26 -0
  201. package/lib/components/List/EditableCell/index.d.ts +13 -0
  202. package/lib/components/List/EditableCell/index.d.ts.map +1 -0
  203. package/lib/components/List/EditableCell/index.js +47 -0
  204. package/lib/components/List/EditableCell/styles.d.ts +204 -0
  205. package/lib/components/List/EditableCell/styles.d.ts.map +1 -0
  206. package/lib/components/List/EditableCell/styles.js +47 -0
  207. package/lib/components/List/LabelContainer/index.d.ts +9 -0
  208. package/lib/components/List/LabelContainer/index.d.ts.map +1 -0
  209. package/lib/components/List/LabelContainer/index.js +38 -0
  210. package/lib/components/List/LabelContainer/index.test.js +105 -0
  211. package/lib/components/List/LabelContainer/styles.d.ts +4 -0
  212. package/lib/components/List/LabelContainer/styles.d.ts.map +1 -0
  213. package/lib/components/List/LabelContainer/styles.js +28 -0
  214. package/lib/components/List/ListItem/index.d.ts +8 -0
  215. package/lib/components/List/ListItem/index.d.ts.map +1 -0
  216. package/lib/components/List/ListItem/index.js +43 -0
  217. package/lib/components/List/ListItem/index.test.js +76 -0
  218. package/lib/components/List/ListItem/schema.d.ts +4 -0
  219. package/lib/components/List/ListItem/schema.d.ts.map +1 -0
  220. package/lib/components/List/ListItem/schema.js +30 -0
  221. package/lib/components/List/ListItem/styles.d.ts +2 -0
  222. package/lib/components/List/ListItem/styles.d.ts.map +1 -0
  223. package/lib/components/List/ListItem/styles.js +23 -0
  224. package/lib/components/List/constants.d.ts +19 -0
  225. package/lib/components/List/constants.d.ts.map +1 -0
  226. package/lib/components/List/constants.js +28 -0
  227. package/lib/components/List/index.d.ts +15 -0
  228. package/lib/components/List/index.d.ts.map +1 -0
  229. package/lib/components/List/index.js +67 -0
  230. package/lib/components/List/index.test.js +64 -0
  231. package/lib/components/List/schema.d.ts +4 -0
  232. package/lib/components/List/schema.d.ts.map +1 -0
  233. package/lib/components/List/schema.js +26 -0
  234. package/lib/components/List/styles.d.ts +198 -0
  235. package/lib/components/List/styles.d.ts.map +1 -0
  236. package/lib/components/List/styles.js +34 -0
  237. package/lib/components/List/types.d.ts +15 -0
  238. package/lib/components/List/types.d.ts.map +1 -0
  239. package/lib/components/List/types.js +5 -0
  240. package/lib/components/Loading/Loading.d.ts +12 -0
  241. package/lib/components/Loading/Loading.d.ts.map +1 -0
  242. package/lib/components/Loading/Loading.js +70 -0
  243. package/lib/components/Loading/index.d.ts +4 -0
  244. package/lib/components/Loading/index.d.ts.map +1 -0
  245. package/lib/components/Loading/index.js +33 -0
  246. package/lib/components/Loading/index.test.js +55 -0
  247. package/lib/components/Loading/schema.d.ts +4 -0
  248. package/lib/components/Loading/schema.d.ts.map +1 -0
  249. package/lib/components/Loading/schema.js +31 -0
  250. package/lib/components/Loading/styles.d.ts +211 -0
  251. package/lib/components/Loading/styles.d.ts.map +1 -0
  252. package/lib/components/Loading/styles.js +77 -0
  253. package/lib/components/Loading/types.d.ts +10 -0
  254. package/lib/components/Loading/types.d.ts.map +1 -0
  255. package/lib/components/Loading/types.js +5 -0
  256. package/lib/components/Modal/Manager.d.ts +6 -0
  257. package/lib/components/Modal/Manager.d.ts.map +1 -0
  258. package/lib/components/Modal/Manager.js +53 -0
  259. package/lib/components/Modal/ResponsiveModalWrapper.d.ts +11 -0
  260. package/lib/components/Modal/ResponsiveModalWrapper.d.ts.map +1 -0
  261. package/lib/components/Modal/ResponsiveModalWrapper.js +82 -0
  262. package/lib/components/Modal/components.d.ts +199 -1
  263. package/lib/components/Modal/components.d.ts.map +1 -1
  264. package/lib/components/Modal/components.js +16 -24
  265. package/lib/components/Modal/index.d.ts +8 -4
  266. package/lib/components/Modal/index.d.ts.map +1 -1
  267. package/lib/components/Modal/index.js +63 -95
  268. package/lib/components/Modal/index.test.js +99 -0
  269. package/lib/components/Modal/schema.d.ts.map +1 -1
  270. package/lib/components/Modal/schema.js +2 -1
  271. package/lib/components/Modal/types.d.ts +2 -1
  272. package/lib/components/Modal/types.d.ts.map +1 -1
  273. package/lib/components/Modal/utils.d.ts +1 -1
  274. package/lib/components/Modal/utils.d.ts.map +1 -1
  275. package/lib/components/Modal/utils.js +7 -5
  276. package/lib/components/Pagination/Pages.d.ts +1 -7
  277. package/lib/components/Pagination/Pages.d.ts.map +1 -1
  278. package/lib/components/Pagination/Pages.js +17 -0
  279. package/lib/components/Pagination/Pagination.d.ts +13 -14
  280. package/lib/components/Pagination/Pagination.d.ts.map +1 -1
  281. package/lib/components/Pagination/Pagination.js +20 -5
  282. package/lib/components/Pagination/Pagination.test.js +14 -0
  283. package/lib/components/Pagination/paginate.d.ts +1 -1
  284. package/lib/components/Pagination/paginate.d.ts.map +1 -1
  285. package/lib/components/Pagination/paginate.js +4 -0
  286. package/lib/components/Pagination/paginate.test.js +38 -17
  287. package/lib/components/Pagination/schema.d.ts.map +1 -1
  288. package/lib/components/Pagination/schema.js +3 -1
  289. package/lib/components/Pagination/types.d.ts +24 -1
  290. package/lib/components/Pagination/types.d.ts.map +1 -1
  291. package/lib/components/PasswordField/IconWrapper.d.ts +198 -0
  292. package/lib/components/PasswordField/IconWrapper.d.ts.map +1 -0
  293. package/lib/components/PasswordField/IconWrapper.js +32 -0
  294. package/lib/components/PasswordField/Input.d.ts +6 -0
  295. package/lib/components/PasswordField/Input.d.ts.map +1 -0
  296. package/lib/components/PasswordField/Input.js +28 -0
  297. package/lib/components/PasswordField/ShowPasswordButton.d.ts +8 -0
  298. package/lib/components/PasswordField/ShowPasswordButton.d.ts.map +1 -0
  299. package/lib/components/PasswordField/ShowPasswordButton.js +48 -0
  300. package/lib/components/PasswordField/index.d.ts +14 -0
  301. package/lib/components/PasswordField/index.d.ts.map +1 -0
  302. package/lib/components/PasswordField/index.js +113 -0
  303. package/lib/components/PasswordField/index.test.js +217 -0
  304. package/lib/components/PasswordField/schema.d.ts +3 -0
  305. package/lib/components/PasswordField/schema.d.ts.map +1 -0
  306. package/lib/components/PasswordField/schema.js +27 -0
  307. package/lib/components/Popover/Arrow.d.ts +2 -2
  308. package/lib/components/Popover/index.d.ts.map +1 -1
  309. package/lib/components/Popover/index.js +25 -10
  310. package/lib/components/Popover/schema.d.ts.map +1 -1
  311. package/lib/components/Popover/schema.js +28 -20
  312. package/lib/components/Popover/types.d.ts +6 -2
  313. package/lib/components/Popover/types.d.ts.map +1 -1
  314. package/lib/components/SearchInput/index.d.ts +11 -0
  315. package/lib/components/SearchInput/index.d.ts.map +1 -0
  316. package/lib/components/SearchInput/index.js +179 -0
  317. package/lib/components/SearchInput/index.test.js +660 -0
  318. package/lib/components/SearchInput/schema.d.ts +3 -0
  319. package/lib/components/SearchInput/schema.d.ts.map +1 -0
  320. package/lib/components/SearchInput/schema.js +38 -0
  321. package/lib/components/SearchInput/styles.d.ts +1176 -0
  322. package/lib/components/SearchInput/styles.d.ts.map +1 -0
  323. package/lib/components/SearchInput/styles.js +97 -0
  324. package/lib/components/SearchInput/types.d.ts +39 -0
  325. package/lib/components/SearchInput/types.d.ts.map +1 -0
  326. package/lib/components/SearchInput/types.js +5 -0
  327. package/lib/components/Select/Target.d.ts.map +1 -1
  328. package/lib/components/Select/Target.js +5 -1
  329. package/lib/components/Select/index.d.ts.map +1 -1
  330. package/lib/components/Select/index.js +7 -3
  331. package/lib/components/Select/index.test.js +43 -19
  332. package/lib/components/Select/schema.d.ts.map +1 -1
  333. package/lib/components/Select/schema.js +2 -0
  334. package/lib/components/Select/types.d.ts +2 -0
  335. package/lib/components/Select/types.d.ts.map +1 -1
  336. package/lib/components/SelectDate/Target.d.ts.map +1 -1
  337. package/lib/components/SelectDate/Target.js +5 -1
  338. package/lib/components/SelectDate/index.d.ts.map +1 -1
  339. package/lib/components/SelectDate/index.js +7 -3
  340. package/lib/components/SelectDate/schema.d.ts.map +1 -1
  341. package/lib/components/SelectDate/schema.js +1 -0
  342. package/lib/components/SelectDate/types.d.ts +1 -0
  343. package/lib/components/SelectDate/types.d.ts.map +1 -1
  344. package/lib/components/SelectDateRange/index.d.ts.map +1 -1
  345. package/lib/components/SelectDateRange/index.js +6 -2
  346. package/lib/components/SelectDateRange/schema.d.ts.map +1 -1
  347. package/lib/components/SelectDateRange/schema.js +1 -0
  348. package/lib/components/StepTracker/index.d.ts +11 -0
  349. package/lib/components/StepTracker/index.d.ts.map +1 -0
  350. package/lib/components/StepTracker/index.js +56 -0
  351. package/lib/components/StepTracker/index.test.js +89 -0
  352. package/lib/components/StepTracker/schema.d.ts +3 -0
  353. package/lib/components/StepTracker/schema.d.ts.map +1 -0
  354. package/lib/components/StepTracker/schema.js +19 -0
  355. package/lib/components/StepTracker/styles.d.ts +605 -0
  356. package/lib/components/StepTracker/styles.d.ts.map +1 -0
  357. package/lib/components/StepTracker/styles.js +114 -0
  358. package/lib/components/Table/Body.d.ts.map +1 -1
  359. package/lib/components/Table/Body.js +2 -5
  360. package/lib/components/Table/Container.d.ts.map +1 -1
  361. package/lib/components/Table/Container.js +6 -1
  362. package/lib/components/Table/Grip.d.ts +6 -2
  363. package/lib/components/Table/Grip.d.ts.map +1 -1
  364. package/lib/components/Table/Grip.js +9 -3
  365. package/lib/components/Table/index.js +1 -1
  366. package/lib/components/Tabs/Tab/index.d.ts +13 -0
  367. package/lib/components/Tabs/Tab/index.d.ts.map +1 -0
  368. package/lib/components/Tabs/Tab/index.js +94 -0
  369. package/lib/components/Tabs/Tab/schema.d.ts +3 -0
  370. package/lib/components/Tabs/Tab/schema.d.ts.map +1 -0
  371. package/lib/components/Tabs/Tab/styles.d.ts +7 -0
  372. package/lib/components/Tabs/Tab/styles.d.ts.map +1 -0
  373. package/lib/components/Tabs/Tab/styles.js +37 -0
  374. package/lib/components/Tabs/context.d.ts +2 -2
  375. package/lib/components/Tabs/context.d.ts.map +1 -1
  376. package/lib/components/Tabs/context.js +1 -1
  377. package/lib/components/Tabs/index.d.ts +17 -6
  378. package/lib/components/Tabs/index.d.ts.map +1 -1
  379. package/lib/components/Tabs/index.js +104 -163
  380. package/lib/components/Tabs/index.test.js +54 -2
  381. package/lib/components/Tabs/styles.d.ts +4 -0
  382. package/lib/components/Tabs/styles.d.ts.map +1 -0
  383. package/lib/components/Tabs/styles.js +35 -0
  384. package/lib/components/Tag/Action.d.ts +4 -0
  385. package/lib/components/Tag/Action.d.ts.map +1 -0
  386. package/lib/components/Tag/Action.js +39 -0
  387. package/lib/components/Tag/constants.d.ts +2 -2
  388. package/lib/components/Tag/constants.d.ts.map +1 -1
  389. package/lib/components/Tag/constants.js +4 -4
  390. package/lib/components/Tag/index.d.ts +1 -3
  391. package/lib/components/Tag/index.d.ts.map +1 -1
  392. package/lib/components/Tag/index.js +40 -97
  393. package/lib/components/Tag/index.test.js +239 -2
  394. package/lib/components/Tag/propTypes.d.ts +4 -1
  395. package/lib/components/Tag/propTypes.d.ts.map +1 -1
  396. package/lib/components/Tag/propTypes.js +5 -2
  397. package/lib/components/Tag/schema.d.ts.map +1 -1
  398. package/lib/components/Tag/schema.js +3 -1
  399. package/lib/components/Tag/styles.d.ts +13 -0
  400. package/lib/components/Tag/styles.d.ts.map +1 -0
  401. package/lib/components/Tag/styles.js +133 -0
  402. package/lib/components/Tag/types.d.ts +11 -12
  403. package/lib/components/Tag/types.d.ts.map +1 -1
  404. package/lib/components/TagInput/index.d.ts +5 -0
  405. package/lib/components/TagInput/index.d.ts.map +1 -0
  406. package/lib/components/TagInput/index.js +363 -0
  407. package/lib/components/TagInput/index.test.js +1143 -0
  408. package/lib/components/TagInput/schema.d.ts +3 -0
  409. package/lib/components/TagInput/schema.d.ts.map +1 -0
  410. package/lib/components/TagInput/schema.js +36 -0
  411. package/lib/components/TagInput/styles.d.ts +10 -0
  412. package/lib/components/TagInput/styles.d.ts.map +1 -0
  413. package/lib/components/TagInput/styles.js +52 -0
  414. package/lib/components/TagInput/types.d.ts +21 -0
  415. package/lib/components/TagInput/types.d.ts.map +1 -0
  416. package/lib/components/TagInput/types.js +5 -0
  417. package/lib/components/Toggle/Fieldset.d.ts.map +1 -1
  418. package/lib/components/Toggle/Fieldset.js +20 -11
  419. package/lib/components/Toggle/Option.d.ts.map +1 -1
  420. package/lib/components/Toggle/Option.js +1 -1
  421. package/lib/components/Toggle/Slider.d.ts +1 -3
  422. package/lib/components/Toggle/Slider.d.ts.map +1 -1
  423. package/lib/components/Toggle/Slider.js +29 -24
  424. package/lib/components/Toggle/index.d.ts.map +1 -1
  425. package/lib/components/Toggle/index.js +2 -1
  426. package/lib/components/Toggle/propTypes.js +1 -1
  427. package/lib/components/Toggle/schema.js +1 -1
  428. package/lib/components/Toggle/types.d.ts +3 -2
  429. package/lib/components/Toggle/types.d.ts.map +1 -1
  430. package/lib/components/ToggleView/ToggleView.d.ts +5 -0
  431. package/lib/components/ToggleView/ToggleView.d.ts.map +1 -0
  432. package/lib/components/ToggleView/ToggleView.js +80 -0
  433. package/lib/components/ToggleView/index.d.ts +4 -0
  434. package/lib/components/ToggleView/index.d.ts.map +1 -0
  435. package/lib/components/ToggleView/index.js +33 -0
  436. package/lib/components/ToggleView/index.test.js +61 -0
  437. package/lib/components/ToggleView/schema.d.ts +3 -0
  438. package/lib/components/ToggleView/schema.d.ts.map +1 -0
  439. package/lib/components/ToggleView/schema.js +24 -0
  440. package/lib/components/ToggleView/styles.d.ts +6 -0
  441. package/lib/components/ToggleView/styles.d.ts.map +1 -0
  442. package/lib/components/ToggleView/styles.js +23 -0
  443. package/lib/components/ToggleView/types.d.ts +23 -0
  444. package/lib/components/ToggleView/types.d.ts.map +1 -0
  445. package/lib/components/ToggleView/types.js +12 -0
  446. package/lib/components/Tooltip/index.d.ts.map +1 -1
  447. package/lib/components/Tooltip/index.js +3 -13
  448. package/lib/components/Tooltip/schema.d.ts +3 -0
  449. package/lib/components/Tooltip/schema.d.ts.map +1 -0
  450. package/lib/components/Tooltip/schema.js +29 -0
  451. package/lib/components/TopNav/Menu/index.d.ts +1 -1
  452. package/lib/components/TopNav/index.d.ts +1 -1
  453. package/lib/components/Typography/withColors.d.ts +1 -1
  454. package/lib/components/Typography/withColors.d.ts.map +1 -1
  455. package/lib/components/Typography/withColors.js +1 -1
  456. package/lib/components/Wizard/index.d.ts +33 -0
  457. package/lib/components/Wizard/index.d.ts.map +1 -0
  458. package/lib/components/Wizard/index.js +161 -0
  459. package/lib/components/Wizard/index.test.js +940 -0
  460. package/lib/components/Wizard/schema.d.ts +3 -0
  461. package/lib/components/Wizard/schema.d.ts.map +1 -0
  462. package/lib/components/Wizard/schema.js +42 -0
  463. package/lib/components/Wizard/styles.d.ts +990 -0
  464. package/lib/components/Wizard/styles.d.ts.map +1 -0
  465. package/lib/components/Wizard/styles.js +79 -0
  466. package/lib/components/index.d.ts +11 -1
  467. package/lib/components/index.d.ts.map +1 -1
  468. package/lib/components/index.js +196 -1
  469. package/lib/modifiers/palette.d.ts +36 -0
  470. package/lib/modifiers/palette.d.ts.map +1 -0
  471. package/lib/modifiers/palette.js +88 -0
  472. package/lib/modifiers/spacingSchema.d.ts.map +1 -1
  473. package/lib/modifiers/spacingSchema.js +29 -16
  474. package/lib/providers/ConfigProvider/utils/linkRenderer.d.ts +2 -1
  475. package/lib/providers/ConfigProvider/utils/linkRenderer.d.ts.map +1 -1
  476. package/lib/providers/ConfigProvider/utils/translations.d.ts +45 -1
  477. package/lib/providers/ConfigProvider/utils/translations.d.ts.map +1 -1
  478. package/lib/providers/ConfigProvider/utils/translations.js +46 -2
  479. package/lib/types/index.d.ts +2 -0
  480. package/lib/types/index.d.ts.map +1 -0
  481. package/lib/types/index.js +5 -0
  482. package/lib/utils/commonUIColors.d.ts +351 -3
  483. package/lib/utils/commonUIColors.d.ts.map +1 -1
  484. package/lib/utils/commonUIColors.js +6 -2
  485. package/lib/utils/useDebounce.d.ts +2 -0
  486. package/lib/utils/useDebounce.d.ts.map +1 -0
  487. package/lib/utils/useDebounce.js +37 -0
  488. package/lib/utils/useStackingContext.d.ts +12 -0
  489. package/lib/utils/useStackingContext.d.ts.map +1 -0
  490. package/lib/utils/useStackingContext.js +46 -0
  491. package/package.json +26 -13
  492. package/CHANGELOG.md +0 -796
  493. package/lib/atoms/OptionsList/Category.d.ts +0 -4
  494. package/lib/atoms/OptionsList/Category.d.ts.map +0 -1
  495. package/lib/atoms/OptionsList/Category.js +0 -53
  496. package/lib/atoms/OptionsList/Option.d.ts.map +0 -1
  497. package/lib/atoms/OptionsList/Option.js +0 -197
  498. package/lib/components/Tabs/Tab.d.ts +0 -5
  499. package/lib/components/Tabs/Tab.d.ts.map +0 -1
  500. package/lib/components/Tabs/Tab.js +0 -109
  501. package/lib/components/Tabs/schema.tab.d.ts.map +0 -1
  502. package/lib/components/Tabs/types.d.ts +0 -27
  503. package/lib/components/Tabs/types.d.ts.map +0 -1
  504. package/lib/components/Tag/ActionButton.d.ts +0 -5
  505. package/lib/components/Tag/ActionButton.d.ts.map +0 -1
  506. package/lib/components/Tag/ActionButton.js +0 -56
  507. /package/lib/components/{Tabs → Link}/types.js +0 -0
  508. /package/lib/components/Tabs/{schema.tab.js → Tab/schema.js} +0 -0
@@ -0,0 +1,217 @@
1
+ "use strict";
2
+
3
+ var _react = _interopRequireDefault(require("react"));
4
+
5
+ var _react2 = require("@testing-library/react");
6
+
7
+ var _ConfigProvider = require("../../providers/ConfigProvider");
8
+
9
+ var _ = _interopRequireDefault(require("."));
10
+
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+
13
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
+
15
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
16
+
17
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
18
+
19
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { keys.push.apply(keys, Object.getOwnPropertySymbols(object)); } if (enumerableOnly) keys = keys.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); return keys; }
20
+
21
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
22
+
23
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
24
+
25
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
26
+
27
+ // Prevent warnings about missing document methods (createRange, etc.)
28
+ jest.mock('popper.js', function () {
29
+ var _class, _temp;
30
+
31
+ var PopperJS = jest.requireActual('popper.js');
32
+ return _temp = _class = function _class() {
33
+ _classCallCheck(this, _class);
34
+
35
+ return {
36
+ destroy: function destroy() {},
37
+ scheduleUpdate: function scheduleUpdate() {}
38
+ };
39
+ }, _defineProperty(_class, "placements", PopperJS.placements), _temp;
40
+ });
41
+
42
+ var wrapper = function wrapper(_ref) {
43
+ var children = _ref.children;
44
+ return _react.default.createElement(_ConfigProvider.ConfigProvider, null, children);
45
+ };
46
+
47
+ var render = function render(ui, options) {
48
+ return (0, _react2.render)(ui, _objectSpread({}, options, {
49
+ wrapper: wrapper
50
+ }));
51
+ };
52
+
53
+ var defaultProps = {
54
+ id: 'text-field-1',
55
+ label: 'label',
56
+ name: 'name',
57
+ onChange: function onChange() {},
58
+ value: ''
59
+ };
60
+ describe('PasswordField', function () {
61
+ it('renders the password input', function () {
62
+ var props = _objectSpread({}, defaultProps, {
63
+ value: 'samplepasswd'
64
+ });
65
+
66
+ var container = render(_react.default.createElement(_.default, props));
67
+ expect(container.getByTestId('password-input')).toHaveAttribute('type', 'password');
68
+ });
69
+ it('shows the label "Password"', function () {
70
+ var props = _objectSpread({}, defaultProps, {
71
+ value: 'samplepasswd'
72
+ });
73
+
74
+ var container = render(_react.default.createElement(_.default, props));
75
+ expect(container.getByText('Password')).not.toBeNull();
76
+ });
77
+ it('does not show the label "Password" when hideLabel is true', function () {
78
+ var props = _objectSpread({}, defaultProps, {
79
+ value: 'samplepasswd',
80
+ hideLabel: true
81
+ });
82
+
83
+ var container = render(_react.default.createElement(_.default, props));
84
+ expect(container.queryByText('Password')).not.toBeVisible();
85
+ });
86
+ it('renders the input as a text-type input', function () {
87
+ var props = _objectSpread({}, defaultProps, {
88
+ value: 'samplepasswd',
89
+ initialPasswordVisible: true
90
+ });
91
+
92
+ var container = render(_react.default.createElement(_.default, props));
93
+ expect(container.getByTestId('password-input')).toHaveAttribute('type', 'text');
94
+ expect(container.queryByTestId('password-input')).not.toBeNull();
95
+ });
96
+ it('toggles the input type when the eye icon is clicked', function () {
97
+ var props = _objectSpread({}, defaultProps, {
98
+ value: 'samplepasswd'
99
+ });
100
+
101
+ var container = render(_react.default.createElement(_.default, props));
102
+ expect(container.getByTestId('password-input')).toHaveAttribute('type', 'password');
103
+
104
+ _react2.fireEvent.click(container.getByTestId('toggle-password-visible'));
105
+
106
+ expect(container.getByTestId('password-input')).toHaveAttribute('type', 'text');
107
+
108
+ _react2.fireEvent.click(container.getByTestId('toggle-password-visible'));
109
+
110
+ expect(container.getByTestId('password-input')).toHaveAttribute('type', 'password');
111
+ });
112
+ it('shows the eye icon when the password is hidden', function () {
113
+ var props = _objectSpread({}, defaultProps, {
114
+ value: 'samplepasswd'
115
+ });
116
+
117
+ var container = render(_react.default.createElement(_.default, props));
118
+ expect(container).toMatchSnapshot();
119
+ });
120
+ it('shows the eye slash icon when the password is visible', function () {
121
+ var props = _objectSpread({}, defaultProps, {
122
+ value: 'samplepasswd',
123
+ initialPasswordVisible: true
124
+ });
125
+
126
+ var container = render(_react.default.createElement(_.default, props));
127
+ expect(container).toMatchSnapshot();
128
+ });
129
+ it('toggle the eye button with the enter key', function () {
130
+ var props = _objectSpread({}, defaultProps, {
131
+ value: 'samplepasswd'
132
+ });
133
+
134
+ var container = render(_react.default.createElement(_.default, props));
135
+ expect(container.getByTestId('password-input')).toHaveAttribute('type', 'password');
136
+
137
+ _react2.fireEvent.keyPress(container.getByTestId('toggle-password-visible'), {
138
+ code: 'Enter',
139
+ key: 'Enter',
140
+ charCode: 13
141
+ });
142
+
143
+ expect(container.getByTestId('password-input')).toHaveAttribute('type', 'text');
144
+
145
+ _react2.fireEvent.keyPress(container.getByTestId('toggle-password-visible'), {
146
+ code: 'Enter',
147
+ key: 'Enter',
148
+ charCode: 13
149
+ });
150
+
151
+ expect(container.getByTestId('password-input')).toHaveAttribute('type', 'password');
152
+ });
153
+ it('shows the "Show Password" tooltip', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
154
+ var props, container;
155
+ return regeneratorRuntime.wrap(function _callee$(_context) {
156
+ while (1) {
157
+ switch (_context.prev = _context.next) {
158
+ case 0:
159
+ props = _objectSpread({}, defaultProps, {
160
+ value: 'samplepasswd'
161
+ });
162
+ container = render(_react.default.createElement(_.default, props));
163
+ _context.next = 4;
164
+ return _react2.fireEvent.focus(container.getByTestId('toggle-password-visible'), {
165
+ bubbles: true
166
+ });
167
+
168
+ case 4:
169
+ _context.t0 = expect;
170
+ _context.next = 7;
171
+ return container.findByText('Show Password');
172
+
173
+ case 7:
174
+ _context.t1 = _context.sent;
175
+ (0, _context.t0)(_context.t1).not.toBeNull();
176
+
177
+ case 9:
178
+ case "end":
179
+ return _context.stop();
180
+ }
181
+ }
182
+ }, _callee);
183
+ })));
184
+ it('shows the "Hide Password" tooltip', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
185
+ var props, container;
186
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
187
+ while (1) {
188
+ switch (_context2.prev = _context2.next) {
189
+ case 0:
190
+ props = _objectSpread({}, defaultProps, {
191
+ value: 'samplepasswd'
192
+ });
193
+ container = render(_react.default.createElement(_.default, _extends({}, props, {
194
+ initialPasswordVisible: true
195
+ })));
196
+ _context2.next = 4;
197
+ return _react2.fireEvent.focus(container.getByTestId('toggle-password-visible'), {
198
+ bubbles: true
199
+ });
200
+
201
+ case 4:
202
+ _context2.t0 = expect;
203
+ _context2.next = 7;
204
+ return container.findByText('Hide Password');
205
+
206
+ case 7:
207
+ _context2.t1 = _context2.sent;
208
+ (0, _context2.t0)(_context2.t1).not.toBeNull();
209
+
210
+ case 9:
211
+ case "end":
212
+ return _context2.stop();
213
+ }
214
+ }
215
+ }, _callee2);
216
+ })));
217
+ });
@@ -0,0 +1,3 @@
1
+ declare const schema: any;
2
+ export default schema;
3
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordField/schema.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM,KAA6C,CAAC;AAa1D,eAAe,MAAM,CAAC"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _omit = _interopRequireDefault(require("lodash/omit"));
9
+
10
+ var _reactDesc = require("react-desc");
11
+
12
+ var _InputField = require("../../atoms/InputField");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { keys.push.apply(keys, Object.getOwnPropertySymbols(object)); } if (enumerableOnly) keys = keys.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); return keys; }
17
+
18
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
19
+
20
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
+
22
+ var schema = (0, _reactDesc.describe)({
23
+ displayName: 'PasswordField'
24
+ });
25
+ schema.propTypes = _objectSpread({}, (0, _omit.default)(_InputField.schema.makePropTypes(), ['children', 'maxLength', 'showCharacterCount', 'icon', 'readOnly', 'label']));
26
+ var _default = schema;
27
+ exports.default = _default;
@@ -1,9 +1,9 @@
1
1
  import { ArrowProps } from './types';
2
2
  export declare const arrowColors: {
3
- information: import("@decisiv/design-tokens/lib/color").Color;
3
+ danger: import("@decisiv/design-tokens/lib/color").Color;
4
4
  success: import("@decisiv/design-tokens/lib/color").Color;
5
+ information: import("@decisiv/design-tokens/lib/color").Color;
5
6
  warning: import("@decisiv/design-tokens/lib/color").Color;
6
- danger: import("@decisiv/design-tokens/lib/color").Color;
7
7
  berryCrisp: import("@decisiv/design-tokens/lib/color").Color;
8
8
  koolaidCake: import("@decisiv/design-tokens/lib/color").Color;
9
9
  cookieMonster: import("@decisiv/design-tokens/lib/color").Color;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAUN,MAAM,OAAO,CAAC;AAWf,OAAc,EAAE,WAAW,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,SAAS,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,UAAU,IAAI,cAAc,EAC5B,WAAW,IAAI,eAAe,EAE9B,SAAS,IAAI,aAAa,EAC1B,YAAY,IAAI,SAAS,EACzB,MAAM,IAAI,aAAa,EACvB,cAAc,IAAI,kBAAkB,EACpC,mBAAmB,IAAI,uBAAuB,EAE/C,MAAM,SAAS,CAAC;AAGjB,oBAAY,UAAU,GAAG,cAAc,CAAC;AACxC,oBAAY,WAAW,GAAG,eAAe,CAAC;AAC1C,oBAAY,WAAW,GAAG,eAAe,CAAC;AAC1C,oBAAY,SAAS,GAAG,aAAa,CAAC;AACtC,oBAAY,YAAY,GAAG,SAAS,CAAC;AACrC,oBAAY,MAAM,GAAG,aAAa,CAAC;AACnC,oBAAY,cAAc,GAAG,kBAAkB,CAAC;AAChD,oBAAY,mBAAmB,GAAG,uBAAuB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AA6PnC,QAAA,MAAM,cAAc,mFAAsB,CAAC;AAgD3C,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAUN,MAAM,OAAO,CAAC;AAWf,OAAc,EAAE,WAAW,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,SAAS,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,UAAU,IAAI,cAAc,EAC5B,WAAW,IAAI,eAAe,EAE9B,SAAS,IAAI,aAAa,EAC1B,YAAY,IAAI,SAAS,EACzB,MAAM,IAAI,aAAa,EACvB,cAAc,IAAI,kBAAkB,EACpC,mBAAmB,IAAI,uBAAuB,EAE/C,MAAM,SAAS,CAAC;AAIjB,oBAAY,UAAU,GAAG,cAAc,CAAC;AACxC,oBAAY,WAAW,GAAG,eAAe,CAAC;AAC1C,oBAAY,WAAW,GAAG,eAAe,CAAC;AAC1C,oBAAY,SAAS,GAAG,aAAa,CAAC;AACtC,oBAAY,YAAY,GAAG,SAAS,CAAC;AACrC,oBAAY,MAAM,GAAG,aAAa,CAAC;AACnC,oBAAY,cAAc,GAAG,kBAAkB,CAAC;AAChD,oBAAY,mBAAmB,GAAG,uBAAuB,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AAkRnC,QAAA,MAAM,cAAc,mFAAsB,CAAC;AAmD3C,eAAe,cAAc,CAAC"}
@@ -47,6 +47,8 @@ var _types = require("./types");
47
47
 
48
48
  var _utils = require("./utils");
49
49
 
50
+ var _useStackingContext2 = _interopRequireDefault(require("../../utils/useStackingContext"));
51
+
50
52
  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; } }
51
53
 
52
54
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -71,7 +73,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
71
73
 
72
74
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
73
75
 
74
- var modifiers = {
76
+ var defaultModifiers = {
75
77
  preventOverflow: {
76
78
  boundariesElement: 'viewport'
77
79
  }
@@ -85,12 +87,13 @@ var modifiers = {
85
87
  var Popover = function Popover(props, instanceRef) {
86
88
  var alwaysRender = props.alwaysRender,
87
89
  arrowColor = props.arrowColor,
90
+ borderRadius = props.borderRadius,
88
91
  children = props.children,
89
92
  containerSelector = props.containerSelector,
90
93
  _props$contentRole = props.contentRole,
91
94
  contentRole = _props$contentRole === void 0 ? 'dialog' : _props$contentRole,
92
95
  defaultVisible = props.defaultVisible,
93
- borderRadius = props.borderRadius,
96
+ enabled = props.enabled,
94
97
  _props$hideOnClickOut = props.hideOnClickOutside,
95
98
  hideOnClickOutside = _props$hideOnClickOut === void 0 ? true : _props$hideOnClickOut,
96
99
  _props$hideOnESC = props.hideOnESC,
@@ -105,8 +108,10 @@ var Popover = function Popover(props, instanceRef) {
105
108
  showArrow = _props$showArrow === void 0 ? true : _props$showArrow,
106
109
  target = props.target,
107
110
  visible = props.visible,
108
- zIndex = props.zIndex,
109
- rest = _objectWithoutProperties(props, ["alwaysRender", "arrowColor", "children", "containerSelector", "contentRole", "defaultVisible", "borderRadius", "hideOnClickOutside", "hideOnESC", "id", "manageEvents", "onHide", "onRequestHide", "onShow", "placement", "showArrow", "target", "visible", "zIndex"]);
111
+ popperModifiers = props.popperModifiers,
112
+ _props$zIndex = props.zIndex,
113
+ zIndexProp = _props$zIndex === void 0 ? 0 : _props$zIndex,
114
+ rest = _objectWithoutProperties(props, ["alwaysRender", "arrowColor", "borderRadius", "children", "containerSelector", "contentRole", "defaultVisible", "enabled", "hideOnClickOutside", "hideOnESC", "id", "manageEvents", "onHide", "onRequestHide", "onShow", "placement", "showArrow", "target", "visible", "popperModifiers", "zIndex"]);
110
115
 
111
116
  var contentRef = (0, _react.useRef)(null);
112
117
  var internalNodeRef = (0, _react.useRef)(null);
@@ -119,11 +124,15 @@ var Popover = function Popover(props, instanceRef) {
119
124
  setIsVisibleState = _useState2[1];
120
125
 
121
126
  var _useConfig = (0, _ConfigProvider.useConfig)(),
122
- createPortal = _useConfig.createPortal; // wrapper for setting visibility state; forces a recalculation
127
+ createPortal = _useConfig.createPortal;
128
+
129
+ var _useStackingContext = (0, _useStackingContext2.default)(),
130
+ currentZIndex = _useStackingContext.currentZIndex;
131
+
132
+ var zIndex = currentZIndex + zIndexProp; // wrapper for setting visibility state; forces a recalculation
123
133
  // of the popper position (computing new offsets) each time the
124
134
  // popover window becomes visible
125
135
 
126
-
127
136
  var setIsVisible = (0, _react.useCallback)(function (makeItVisible) {
128
137
  setIsVisibleState(makeItVisible);
129
138
 
@@ -198,9 +207,10 @@ var Popover = function Popover(props, instanceRef) {
198
207
  isVisible: isVisible,
199
208
  show: show,
200
209
  toggle: toggle,
201
- targetNode: targetNode
210
+ targetNode: targetNode,
211
+ contentNode: contentRef.current
202
212
  });
203
- }, [instanceRef, ariaAttributes, hide, isVisible, show, toggle, targetNode]); // React to changes to the `visible` prop if we are a controlled component
213
+ }, [instanceRef, ariaAttributes, hide, isVisible, show, toggle, targetNode, contentRef && contentRef.current]); // React to changes to the `visible` prop if we are a controlled component
204
214
 
205
215
  (0, _react.useEffect)(function () {
206
216
  return setIsVisible(visible !== undefined ? visible : isVisible);
@@ -231,6 +241,8 @@ var Popover = function Popover(props, instanceRef) {
231
241
  return null;
232
242
  }
233
243
 
244
+ var modifiers = _objectSpread({}, defaultModifiers, {}, popperModifiers);
245
+
234
246
  var popper = _react.default.createElement(_reactPopper.Popper, {
235
247
  modifiers: modifiers,
236
248
  placement:
@@ -254,7 +266,7 @@ var Popover = function Popover(props, instanceRef) {
254
266
  }), _react.default.createElement(_Arrow.default, _extends({}, arrowProps, {
255
267
  "aria-hidden": true,
256
268
  color: arrowColor,
257
- hidden: !showArrow,
269
+ hidden: !showArrow || !isVisible,
258
270
  placement: p
259
271
  })), _react.default.createElement(_Content.ContentInner, _extends({}, rest, {
260
272
  borderRadius: borderRadius,
@@ -286,7 +298,7 @@ var Popover = function Popover(props, instanceRef) {
286
298
  return target(data);
287
299
  }), targetType === _types.TargetType.Element && (0, _react.cloneElement)(target, _objectSpread({
288
300
  ref: internalNodeRef
289
- }, ariaAttributes)), (alwaysRender || isVisible) && (containerSelector === 'parent' ?
301
+ }, ariaAttributes)), enabled && (alwaysRender || isVisible) && (containerSelector === 'parent' ?
290
302
  /* istanbul ignore next */
291
303
  popper : createPortal(popper, containerSelector)));
292
304
  };
@@ -295,6 +307,7 @@ var PopoverWithRef = (0, _react.forwardRef)(Popover); // @ts-ignore
295
307
 
296
308
  PopoverWithRef.propTypes = {
297
309
  id: _propTypes.default.string,
310
+ enabled: _propTypes.default.bool,
298
311
  onShow: _propTypes.default.func,
299
312
  onHide: _propTypes.default.func,
300
313
  target: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.element, _propTypes.default.shape({
@@ -315,10 +328,12 @@ PopoverWithRef.propTypes = {
315
328
  onRequestHide: _propTypes.default.func,
316
329
  defaultVisible: _propTypes.default.bool,
317
330
  containerSelector: _propTypes.default.string,
331
+ popperModifiers: _propTypes.default.shape({}),
318
332
  zIndex: _propTypes.default.number
319
333
  };
320
334
  PopoverWithRef.defaultProps = {
321
335
  alwaysRender: false,
336
+ enabled: true,
322
337
  showArrow: true,
323
338
  placement: 'bottom'
324
339
  };
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAA8C,CAAC;AA4F3D,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/schema.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAA8C,CAAC;AAuG3D,eAAe,MAAM,CAAC"}
@@ -11,26 +11,34 @@ var _reactDesc = require("react-desc");
11
11
  var schema = (0, _reactDesc.describe)({
12
12
  displayName: 'ConfigProvider'
13
13
  });
14
- schema.propTypes = {
15
- id: _reactDesc.PropTypes.string.description('A unique identifier for the popover. Auto generated if none provided.'),
16
- ref: _reactDesc.PropTypes.string.description('A React Ref that will be set to the popover instance. See notes below.'),
17
- target: _reactDesc.PropTypes.any.description('The element the popover will point to. See usage notes above.').format('Element, Ref or function').isRequired,
18
- children: _reactDesc.PropTypes.any.description('What should be rendered inside the popover. See notes below.').format('React node or function').isRequired,
19
- placement: _reactDesc.PropTypes.string.description('The preferred side of the target the popover should attach to. See notes below.').defaultValue('bottom'),
20
- visible: _reactDesc.PropTypes.bool.description('Whether or not the popover show be visible. Setting this prop makes the popover a "controlled" component.'),
21
- defaultVisible: _reactDesc.PropTypes.bool.description('Whether or not the popover show be visible when first rendered.'),
22
- alwaysRender: _reactDesc.PropTypes.bool.description('If true, the popover window will be hidden instead of destroyed when closed. Useful if the popover window needs to maintain state.'),
23
- showArrow: _reactDesc.PropTypes.bool.description('Whether or not to show an arrow pointing to the target.').defaultValue(true),
24
- borderRadius: _reactDesc.PropTypes.string.description('Applies a custom border radius value to the popover content.'),
25
- arrowColor: _reactDesc.PropTypes.string.description('The color of the arrow. See notes below.'),
26
- manageEvents: _reactDesc.PropTypes.string.description('The type of events that should be automatically attached to the target. Only applied if `visible` is `undefined`.').format('click,hover,false'),
27
- containerSelector: _reactDesc.PropTypes.string.description('A CSS selector to the element where the popovers should be rendered in, or "parent" to render the popover in-place.').defaultValue('body'),
28
- hideOnESC: _reactDesc.PropTypes.bool.description('Whether or not to close the popover when the user presses the "Escape" key. No effect when `visible` is not `undefined`.').defaultValue('true'),
29
- hideOnClickOutside: _reactDesc.PropTypes.bool.description('Whether or not to close the popover when the user click outside the popover. No effect when `visible` is not `undefined`.').defaultValue('true'),
30
- zIndex: _reactDesc.PropTypes.bool.description('The css `z-index` value to apply to the popover content wrapper. Is set to `auto` when not provided.'),
31
- onShow: _reactDesc.PropTypes.func.description('A function called when the popover becomes visible. Only called if `visible` is `undefined`.'),
32
- onHide: _reactDesc.PropTypes.func.description('A function called when the popover becomes hidden. Only called if `visible` is `undefined`.'),
33
- onRequestHide: _reactDesc.PropTypes.func.description('A function called if `visible` is not `undefined` and when the user clicks outside the popover or presses the "Escape" key.')
14
+
15
+ schema.makePropTypes = function () {
16
+ var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'popover';
17
+ return {
18
+ id: _reactDesc.PropTypes.string.description("A unique identifier for the ".concat(component, ". Auto generated if none provided.")),
19
+ ref: _reactDesc.PropTypes.string.description("A React Ref that will be set to the ".concat(component, " instance. See notes below.")),
20
+ target: _reactDesc.PropTypes.any.description("The element the ".concat(component, " will point to. See usage notes above.")).format('Element, Ref or function').isRequired,
21
+ children: _reactDesc.PropTypes.any.description("What should be rendered inside the ".concat(component, ". See notes below.")).format('React node or function').isRequired,
22
+ enabled: _reactDesc.PropTypes.bool.description("If `false` the ".concat(component, " will never be shown; only its target will be rendered.")),
23
+ placement: _reactDesc.PropTypes.string.description("The preferred side of the target the ".concat(component, " should attach to. See notes below.")).defaultValue('bottom'),
24
+ visible: _reactDesc.PropTypes.bool.description("Whether or not the ".concat(component, " should be visible. Setting this prop makes the ").concat(component, " a \"controlled\" component.")),
25
+ defaultVisible: _reactDesc.PropTypes.bool.description("Whether or not the ".concat(component, " should be visible when first rendered.")),
26
+ alwaysRender: _reactDesc.PropTypes.bool.description("If true, the ".concat(component, " window will be hidden instead of destroyed when closed. Useful if the ").concat(component, " window needs to maintain state.")),
27
+ showArrow: _reactDesc.PropTypes.bool.description('Whether or not to show an arrow pointing to the target.').defaultValue(true),
28
+ borderRadius: _reactDesc.PropTypes.string.description("Applies a custom border radius value to the ".concat(component, " content.")),
29
+ arrowColor: _reactDesc.PropTypes.string.description('The color of the arrow. See notes below.'),
30
+ manageEvents: _reactDesc.PropTypes.string.description('The type of events that should be automatically attached to the target. Only applied if `visible` is `undefined`.').format('click,hover,false'),
31
+ containerSelector: _reactDesc.PropTypes.string.description("A CSS selector to the element where the ".concat(component, "s should be rendered in, or \"parent\" to render the ").concat(component, " in-place.")).defaultValue('body'),
32
+ hideOnESC: _reactDesc.PropTypes.bool.description("Whether or not to close the ".concat(component, " when the user presses the \"Escape\" key. No effect when `visible` is not `undefined`.")).defaultValue('true'),
33
+ hideOnClickOutside: _reactDesc.PropTypes.bool.description("Whether or not to close the ".concat(component, " when the user clicks outside the ").concat(component, ". No effect when `visible` is not `undefined`.")).defaultValue('true'),
34
+ zIndex: _reactDesc.PropTypes.number.description("The css `z-index` value to apply to the ".concat(component, " content wrapper. Is set to `auto` when not provided.")),
35
+ onShow: _reactDesc.PropTypes.func.description("A function called when the ".concat(component, " becomes visible. Only called if `visible` is `undefined`.")),
36
+ onHide: _reactDesc.PropTypes.func.description("A function called when the ".concat(component, " becomes hidden. Only called if `visible` is `undefined`.")),
37
+ onRequestHide: _reactDesc.PropTypes.func.description("A function called if `visible` is not `undefined` and when the user clicks outside the ".concat(component, " or presses the \"Escape\" key.")),
38
+ popperModifiers: _reactDesc.PropTypes.shape({}).description('An object of Popper.js (v1) modifiers to apply to the popper instance.')
39
+ };
34
40
  };
41
+
42
+ schema.propTypes = schema.makePropTypes();
35
43
  var _default = schema;
36
44
  exports.default = _default;
@@ -1,5 +1,6 @@
1
1
  import { BorderRadiusProperty } from 'csstype';
2
- import { AriaAttributes, ReactElement, ReactNode, RefObject } from 'react';
2
+ import { Modifiers } from 'popper.js';
3
+ import { AriaAttributes, HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
3
4
  import { RefHandler } from 'react-popper';
4
5
  import { CommonUIColorKeys } from '../../utils/commonUIColors';
5
6
  import { placements } from './constants';
@@ -18,6 +19,7 @@ export interface InstanceRef {
18
19
  toggle: VisibilityAction;
19
20
  isVisible: boolean;
20
21
  targetNode?: HTMLElement | null;
22
+ contentNode?: HTMLDivElement | null;
21
23
  }
22
24
  export interface TargetRendererProps {
23
25
  ref: RefHandler;
@@ -41,7 +43,7 @@ interface ChildrenRendererProps {
41
43
  export declare type ChildrenRenderer = (props: ChildrenRendererProps) => ReactNode;
42
44
  export declare type Children = ReactNode | ChildrenRenderer;
43
45
  export declare type ArrowColor = 'charcoal' | CommonUIColorKeys;
44
- export interface PopoverProps {
46
+ export interface PopoverProps extends HTMLAttributes<HTMLDivElement> {
45
47
  alwaysRender?: boolean;
46
48
  arrowColor?: ArrowColor;
47
49
  borderRadius?: BorderRadiusProperty<string>;
@@ -49,6 +51,7 @@ export interface PopoverProps {
49
51
  containerSelector?: string;
50
52
  contentRole?: string;
51
53
  defaultVisible?: boolean;
54
+ enabled?: boolean;
52
55
  hideOnClickOutside?: boolean;
53
56
  hideOnESC?: boolean;
54
57
  id?: string;
@@ -61,6 +64,7 @@ export interface PopoverProps {
61
64
  target: Target;
62
65
  visible?: boolean;
63
66
  zIndex?: number;
67
+ popperModifiers?: Modifiers;
64
68
  }
65
69
  export interface ArrowProps {
66
70
  color?: ArrowColor;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Pop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AAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC;IACzC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,SAAS,CAAC;CAC7B;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { SearchInputProps, SearchItem, StyledFlexProps } from './types';
3
+ declare function SearchInput({ onSearch, value, onChange, size, disabled, searchDisabled, searchOn, searchByOptions, searchByLabel, searchByValue, searchByName, searchByDefaultValue, searchByWidth, searchInputRef, onSearchByChange, warningMessage, helpMessage, zIndex, tooltipZIndex, ...props }: SearchInputProps): JSX.Element;
4
+ declare namespace SearchInput {
5
+ var defaultProps: {
6
+ size: string;
7
+ };
8
+ }
9
+ export default SearchInput;
10
+ export { SearchInputProps, SearchItem, StyledFlexProps };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/index.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAiBxE,iBAAwB,WAAW,CAAC,EAClC,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,cAAc,EACd,QAAmB,EACnB,eAAoB,EACpB,aAAkB,EAClB,aAAa,EACb,YAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,MAAM,EACN,aAAa,EACb,GAAG,KAAK,EACT,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAyIhC;kBA9JuB,WAAW;;;;;eAAX,WAAW;AAoKnC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC"}