@decisiv/ui-components 2.0.1-alpha.99 → 2.0.2-alpha.2

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 (502) hide show
  1. package/lib/atoms/Calendar/index.d.ts.map +1 -1
  2. package/lib/atoms/Calendar/index.js +38 -5
  3. package/lib/atoms/Calendar/index.test.js +5 -5
  4. package/lib/atoms/Calendar/types.d.ts +1 -1
  5. package/lib/atoms/Calendar/types.d.ts.map +1 -1
  6. package/lib/atoms/InputField/Containers.d.ts +2 -1
  7. package/lib/atoms/InputField/Containers.d.ts.map +1 -1
  8. package/lib/atoms/InputField/Containers.js +3 -1
  9. package/lib/atoms/InputField/HelpMessage.d.ts +1 -1
  10. package/lib/atoms/InputField/HelpMessage.d.ts.map +1 -1
  11. package/lib/atoms/InputField/HelpMessage.js +23 -7
  12. package/lib/atoms/InputField/index.d.ts +6 -1
  13. package/lib/atoms/InputField/index.d.ts.map +1 -1
  14. package/lib/atoms/InputField/index.js +21 -4
  15. package/lib/atoms/InputField/index.test.js +53 -0
  16. package/lib/atoms/InputField/schema.js +2 -2
  17. package/lib/atoms/InputField/styles.d.ts +7 -0
  18. package/lib/atoms/InputField/styles.d.ts.map +1 -0
  19. package/lib/atoms/InputField/styles.js +31 -0
  20. package/lib/atoms/OptionsList/Category/index.d.ts +4 -0
  21. package/lib/atoms/OptionsList/Category/index.d.ts.map +1 -0
  22. package/lib/atoms/OptionsList/Category/index.js +85 -0
  23. package/lib/atoms/OptionsList/Category/styles.d.ts +5 -0
  24. package/lib/atoms/OptionsList/Category/styles.d.ts.map +1 -0
  25. package/lib/atoms/OptionsList/Category/styles.js +35 -0
  26. package/lib/atoms/OptionsList/{Option.d.ts → Option/index.d.ts} +2 -2
  27. package/lib/atoms/OptionsList/Option/index.d.ts.map +1 -0
  28. package/lib/atoms/OptionsList/Option/index.js +182 -0
  29. package/lib/atoms/OptionsList/Option/styles.d.ts +17 -0
  30. package/lib/atoms/OptionsList/Option/styles.d.ts.map +1 -0
  31. package/lib/atoms/OptionsList/Option/styles.js +86 -0
  32. package/lib/atoms/OptionsList/context.d.ts +1 -0
  33. package/lib/atoms/OptionsList/context.d.ts.map +1 -1
  34. package/lib/atoms/OptionsList/index.d.ts +1 -44
  35. package/lib/atoms/OptionsList/index.d.ts.map +1 -1
  36. package/lib/atoms/OptionsList/index.js +259 -40
  37. package/lib/atoms/OptionsList/index.test.js +329 -186
  38. package/lib/atoms/OptionsList/schema.d.ts.map +1 -1
  39. package/lib/atoms/OptionsList/schema.js +7 -1
  40. package/lib/atoms/OptionsList/styles.d.ts +45 -0
  41. package/lib/atoms/OptionsList/styles.d.ts.map +1 -0
  42. package/lib/atoms/OptionsList/styles.js +29 -0
  43. package/lib/atoms/OptionsList/types.d.ts +50 -1
  44. package/lib/atoms/OptionsList/types.d.ts.map +1 -1
  45. package/lib/atoms/OptionsList/utils.d.ts +2 -1
  46. package/lib/atoms/OptionsList/utils.d.ts.map +1 -1
  47. package/lib/atoms/OptionsList/utils.js +49 -2
  48. package/lib/components/Alert/Container.d.ts +201 -0
  49. package/lib/components/Alert/Container.d.ts.map +1 -0
  50. package/lib/components/Alert/Container.js +26 -0
  51. package/lib/components/Alert/StyledButton.d.ts +5 -0
  52. package/lib/components/Alert/StyledButton.d.ts.map +1 -0
  53. package/lib/components/Alert/StyledButton.js +23 -0
  54. package/lib/components/Alert/index.d.ts +27 -0
  55. package/lib/components/Alert/index.d.ts.map +1 -0
  56. package/lib/components/Alert/index.js +112 -0
  57. package/lib/components/Alert/index.test.js +79 -0
  58. package/lib/components/Alert/intents.d.ts +13 -0
  59. package/lib/components/Alert/intents.d.ts.map +1 -0
  60. package/lib/components/Alert/intents.js +72 -0
  61. package/lib/components/{Tabs/schema.tab.d.ts → Alert/schema.d.ts} +1 -1
  62. package/lib/components/Alert/schema.d.ts.map +1 -0
  63. package/lib/components/Alert/schema.js +25 -0
  64. package/lib/components/Alert/types.d.ts +36 -0
  65. package/lib/components/Alert/types.d.ts.map +1 -0
  66. package/lib/components/Alert/types.js +32 -0
  67. package/lib/components/Avatar/AvatarContainer.d.ts +1 -13
  68. package/lib/components/Avatar/AvatarContainer.d.ts.map +1 -1
  69. package/lib/components/Avatar/AvatarContainer.js +12 -13
  70. package/lib/components/Avatar/AvatarContent.d.ts +2 -2
  71. package/lib/components/Avatar/AvatarContent.d.ts.map +1 -1
  72. package/lib/components/Avatar/AvatarContent.js +24 -20
  73. package/lib/components/Avatar/index.d.ts.map +1 -1
  74. package/lib/components/Avatar/index.js +44 -5
  75. package/lib/components/Avatar/index.test.js +4 -0
  76. package/lib/components/Avatar/schema.d.ts.map +1 -1
  77. package/lib/components/Avatar/schema.js +3 -1
  78. package/lib/components/Avatar/types.d.ts +15 -2
  79. package/lib/components/Avatar/types.d.ts.map +1 -1
  80. package/lib/components/Badge/index.d.ts.map +1 -1
  81. package/lib/components/Badge/index.js +2 -58
  82. package/lib/components/Badge/index.test.js +15 -4
  83. package/lib/components/Badge/schema.d.ts.map +1 -1
  84. package/lib/components/Badge/schema.js +1 -0
  85. package/lib/components/Badge/styles.d.ts +3 -0
  86. package/lib/components/Badge/styles.d.ts.map +1 -0
  87. package/lib/components/Badge/styles.js +97 -0
  88. package/lib/components/Badge/types.d.ts +3 -1
  89. package/lib/components/Badge/types.d.ts.map +1 -1
  90. package/lib/components/Badge/types.js +2 -1
  91. package/lib/components/Button/StyledButton.d.ts +3 -6
  92. package/lib/components/Button/StyledButton.d.ts.map +1 -1
  93. package/lib/components/Button/StyledButton.js +39 -11
  94. package/lib/components/Button/index.d.ts.map +1 -1
  95. package/lib/components/Button/index.js +51 -12
  96. package/lib/components/Button/index.test.js +43 -8
  97. package/lib/components/Button/schema.d.ts.map +1 -1
  98. package/lib/components/Button/schema.js +4 -1
  99. package/lib/components/Button/types.d.ts +4 -1
  100. package/lib/components/Button/types.d.ts.map +1 -1
  101. package/lib/components/Combobox/Target.d.ts.map +1 -1
  102. package/lib/components/Combobox/Target.js +10 -0
  103. package/lib/components/Combobox/index.d.ts.map +1 -1
  104. package/lib/components/Combobox/index.js +111 -59
  105. package/lib/components/Combobox/index.test.js +110 -25
  106. package/lib/components/Combobox/schema.d.ts.map +1 -1
  107. package/lib/components/Combobox/schema.js +7 -1
  108. package/lib/components/Combobox/types.d.ts +7 -2
  109. package/lib/components/Combobox/types.d.ts.map +1 -1
  110. package/lib/components/Drawer/index.d.ts +22 -0
  111. package/lib/components/Drawer/index.d.ts.map +1 -0
  112. package/lib/components/Drawer/index.js +122 -0
  113. package/lib/components/Drawer/index.test.js +164 -0
  114. package/lib/components/Drawer/schema.d.ts +3 -0
  115. package/lib/components/Drawer/schema.d.ts.map +1 -0
  116. package/lib/components/Drawer/schema.js +32 -0
  117. package/lib/components/Drawer/styles.d.ts +11 -0
  118. package/lib/components/Drawer/styles.d.ts.map +1 -0
  119. package/lib/components/Drawer/styles.js +79 -0
  120. package/lib/components/DropdownList/index.d.ts.map +1 -1
  121. package/lib/components/DropdownList/index.js +10 -3
  122. package/lib/components/DropdownList/index.test.js +38 -25
  123. package/lib/components/DropdownList/schema.js +1 -1
  124. package/lib/components/Filter/ActionFilter/index.d.ts +5 -0
  125. package/lib/components/Filter/ActionFilter/index.d.ts.map +1 -0
  126. package/lib/components/Filter/ActionFilter/index.js +43 -0
  127. package/lib/components/Filter/IconWrapper/index.d.ts +2 -2
  128. package/lib/components/Filter/IconWrapper/index.d.ts.map +1 -1
  129. package/lib/components/Filter/SimplePrimary/index.d.ts +2 -28
  130. package/lib/components/Filter/SimplePrimary/index.d.ts.map +1 -1
  131. package/lib/components/Filter/SimplePrimary/index.js +9 -21
  132. package/lib/components/Filter/StyledFilter.d.ts +2 -2
  133. package/lib/components/Filter/StyledFilter.d.ts.map +1 -1
  134. package/lib/components/Filter/StyledFilter.js +28 -1
  135. package/lib/components/Filter/StyledLabel/index.d.ts +3 -3
  136. package/lib/components/Filter/StyledLabel/index.d.ts.map +1 -1
  137. package/lib/components/Filter/StyledLabel/index.js +14 -6
  138. package/lib/components/Filter/index.d.ts +4 -25
  139. package/lib/components/Filter/index.d.ts.map +1 -1
  140. package/lib/components/Filter/index.js +41 -29
  141. package/lib/components/Filter/index.test.js +33 -4
  142. package/lib/components/Filter/kind.d.ts +4 -3
  143. package/lib/components/Filter/kind.d.ts.map +1 -1
  144. package/lib/components/Filter/kind.js +20 -22
  145. package/lib/components/Filter/schema.d.ts.map +1 -1
  146. package/lib/components/Filter/schema.js +8 -3
  147. package/lib/components/Filter/types.d.ts +21 -7
  148. package/lib/components/Filter/types.d.ts.map +1 -1
  149. package/lib/components/JumpTo/JumpToMenu.d.ts.map +1 -1
  150. package/lib/components/JumpTo/JumpToMenu.js +50 -9
  151. package/lib/components/JumpTo/index.test.js +84 -0
  152. package/lib/components/JumpTo/schema.d.ts.map +1 -1
  153. package/lib/components/JumpTo/schema.js +2 -1
  154. package/lib/components/JumpTo/types.d.ts +1 -0
  155. package/lib/components/JumpTo/types.d.ts.map +1 -1
  156. package/lib/components/JumpTo/utils.d.ts.map +1 -1
  157. package/lib/components/JumpTo/utils.js +3 -7
  158. package/lib/components/LeftNav/Item/NavExpandedItem/index.js +7 -2
  159. package/lib/components/LeftNav/index.test.js +35 -19
  160. package/lib/components/LeftNav/schema.d.ts.map +1 -1
  161. package/lib/components/LeftNav/schema.js +3 -1
  162. package/lib/components/LeftNav/types.d.ts +1 -0
  163. package/lib/components/LeftNav/types.d.ts.map +1 -1
  164. package/lib/components/Link/DisabledLink.d.ts +7 -0
  165. package/lib/components/Link/DisabledLink.d.ts.map +1 -0
  166. package/lib/components/Link/DisabledLink.js +46 -0
  167. package/lib/components/Link/Link.d.ts +4 -0
  168. package/lib/components/Link/Link.d.ts.map +1 -0
  169. package/lib/components/Link/Link.js +67 -0
  170. package/lib/components/Link/index.d.ts +4 -23
  171. package/lib/components/Link/index.d.ts.map +1 -1
  172. package/lib/components/Link/index.js +19 -157
  173. package/lib/components/Link/index.test.js +62 -49
  174. package/lib/components/Link/schema.d.ts.map +1 -1
  175. package/lib/components/Link/schema.js +1 -0
  176. package/lib/components/Link/styles.d.ts +20 -0
  177. package/lib/components/Link/styles.d.ts.map +1 -0
  178. package/lib/components/Link/styles.js +131 -0
  179. package/lib/components/Link/types.d.ts +28 -0
  180. package/lib/components/Link/types.d.ts.map +1 -0
  181. package/lib/components/List/BaseCell/index.d.ts +6 -0
  182. package/lib/components/List/BaseCell/index.d.ts.map +1 -0
  183. package/lib/components/List/BaseCell/index.js +17 -0
  184. package/lib/components/List/BaseCell/index.test.js +33 -0
  185. package/lib/components/List/BaseCell/styles.d.ts +198 -0
  186. package/lib/components/List/BaseCell/styles.d.ts.map +1 -0
  187. package/lib/components/List/BaseCell/styles.js +26 -0
  188. package/lib/components/List/ContentContainer/index.d.ts +21 -0
  189. package/lib/components/List/ContentContainer/index.d.ts.map +1 -0
  190. package/lib/components/List/ContentContainer/index.js +82 -0
  191. package/lib/components/List/ContentContainer/index.test.js +102 -0
  192. package/lib/components/List/DefaultCell/index.d.ts +6 -0
  193. package/lib/components/List/DefaultCell/index.d.ts.map +1 -0
  194. package/lib/components/List/DefaultCell/index.js +26 -0
  195. package/lib/components/List/EditableCell/index.d.ts +13 -0
  196. package/lib/components/List/EditableCell/index.d.ts.map +1 -0
  197. package/lib/components/List/EditableCell/index.js +47 -0
  198. package/lib/components/List/EditableCell/styles.d.ts +204 -0
  199. package/lib/components/List/EditableCell/styles.d.ts.map +1 -0
  200. package/lib/components/List/EditableCell/styles.js +47 -0
  201. package/lib/components/List/LabelContainer/index.d.ts +9 -0
  202. package/lib/components/List/LabelContainer/index.d.ts.map +1 -0
  203. package/lib/components/List/LabelContainer/index.js +38 -0
  204. package/lib/components/List/LabelContainer/index.test.js +105 -0
  205. package/lib/components/List/LabelContainer/styles.d.ts +4 -0
  206. package/lib/components/List/LabelContainer/styles.d.ts.map +1 -0
  207. package/lib/components/List/LabelContainer/styles.js +28 -0
  208. package/lib/components/List/ListItem/index.d.ts +8 -0
  209. package/lib/components/List/ListItem/index.d.ts.map +1 -0
  210. package/lib/components/List/ListItem/index.js +43 -0
  211. package/lib/components/List/ListItem/index.test.js +76 -0
  212. package/lib/components/List/ListItem/schema.d.ts +4 -0
  213. package/lib/components/List/ListItem/schema.d.ts.map +1 -0
  214. package/lib/components/List/ListItem/schema.js +30 -0
  215. package/lib/components/List/ListItem/styles.d.ts +2 -0
  216. package/lib/components/List/ListItem/styles.d.ts.map +1 -0
  217. package/lib/components/List/ListItem/styles.js +23 -0
  218. package/lib/components/List/constants.d.ts +19 -0
  219. package/lib/components/List/constants.d.ts.map +1 -0
  220. package/lib/components/List/constants.js +28 -0
  221. package/lib/components/List/index.d.ts +15 -0
  222. package/lib/components/List/index.d.ts.map +1 -0
  223. package/lib/components/List/index.js +67 -0
  224. package/lib/components/List/index.test.js +64 -0
  225. package/lib/components/List/schema.d.ts +4 -0
  226. package/lib/components/List/schema.d.ts.map +1 -0
  227. package/lib/components/List/schema.js +26 -0
  228. package/lib/components/List/styles.d.ts +198 -0
  229. package/lib/components/List/styles.d.ts.map +1 -0
  230. package/lib/components/List/styles.js +34 -0
  231. package/lib/components/List/types.d.ts +15 -0
  232. package/lib/components/List/types.d.ts.map +1 -0
  233. package/lib/components/List/types.js +5 -0
  234. package/lib/components/Loading/Loading.d.ts +12 -0
  235. package/lib/components/Loading/Loading.d.ts.map +1 -0
  236. package/lib/components/Loading/Loading.js +70 -0
  237. package/lib/components/Loading/index.d.ts +4 -0
  238. package/lib/components/Loading/index.d.ts.map +1 -0
  239. package/lib/components/Loading/index.js +33 -0
  240. package/lib/components/Loading/index.test.js +55 -0
  241. package/lib/components/Loading/schema.d.ts +4 -0
  242. package/lib/components/Loading/schema.d.ts.map +1 -0
  243. package/lib/components/Loading/schema.js +31 -0
  244. package/lib/components/Loading/styles.d.ts +211 -0
  245. package/lib/components/Loading/styles.d.ts.map +1 -0
  246. package/lib/components/Loading/styles.js +77 -0
  247. package/lib/components/Loading/types.d.ts +10 -0
  248. package/lib/components/Loading/types.d.ts.map +1 -0
  249. package/lib/components/Loading/types.js +5 -0
  250. package/lib/components/Modal/Manager.d.ts +6 -0
  251. package/lib/components/Modal/Manager.d.ts.map +1 -0
  252. package/lib/components/Modal/Manager.js +53 -0
  253. package/lib/components/Modal/ResponsiveModalWrapper.d.ts +11 -0
  254. package/lib/components/Modal/ResponsiveModalWrapper.d.ts.map +1 -0
  255. package/lib/components/Modal/ResponsiveModalWrapper.js +82 -0
  256. package/lib/components/Modal/components.d.ts +199 -1
  257. package/lib/components/Modal/components.d.ts.map +1 -1
  258. package/lib/components/Modal/components.js +16 -24
  259. package/lib/components/Modal/index.d.ts +8 -4
  260. package/lib/components/Modal/index.d.ts.map +1 -1
  261. package/lib/components/Modal/index.js +63 -95
  262. package/lib/components/Modal/index.test.js +99 -0
  263. package/lib/components/Modal/schema.d.ts.map +1 -1
  264. package/lib/components/Modal/schema.js +2 -1
  265. package/lib/components/Modal/types.d.ts +2 -1
  266. package/lib/components/Modal/types.d.ts.map +1 -1
  267. package/lib/components/Modal/utils.d.ts +1 -1
  268. package/lib/components/Modal/utils.d.ts.map +1 -1
  269. package/lib/components/Modal/utils.js +7 -5
  270. package/lib/components/Pagination/Pages.d.ts +1 -7
  271. package/lib/components/Pagination/Pages.d.ts.map +1 -1
  272. package/lib/components/Pagination/Pages.js +17 -0
  273. package/lib/components/Pagination/Pagination.d.ts +13 -14
  274. package/lib/components/Pagination/Pagination.d.ts.map +1 -1
  275. package/lib/components/Pagination/Pagination.js +20 -5
  276. package/lib/components/Pagination/Pagination.test.js +14 -0
  277. package/lib/components/Pagination/paginate.d.ts +1 -1
  278. package/lib/components/Pagination/paginate.d.ts.map +1 -1
  279. package/lib/components/Pagination/paginate.js +4 -0
  280. package/lib/components/Pagination/paginate.test.js +38 -17
  281. package/lib/components/Pagination/schema.d.ts.map +1 -1
  282. package/lib/components/Pagination/schema.js +3 -1
  283. package/lib/components/Pagination/types.d.ts +24 -1
  284. package/lib/components/Pagination/types.d.ts.map +1 -1
  285. package/lib/components/PasswordField/IconWrapper.d.ts +198 -0
  286. package/lib/components/PasswordField/IconWrapper.d.ts.map +1 -0
  287. package/lib/components/PasswordField/IconWrapper.js +32 -0
  288. package/lib/components/PasswordField/Input.d.ts +6 -0
  289. package/lib/components/PasswordField/Input.d.ts.map +1 -0
  290. package/lib/components/PasswordField/Input.js +28 -0
  291. package/lib/components/PasswordField/ShowPasswordButton.d.ts +8 -0
  292. package/lib/components/PasswordField/ShowPasswordButton.d.ts.map +1 -0
  293. package/lib/components/PasswordField/ShowPasswordButton.js +48 -0
  294. package/lib/components/PasswordField/index.d.ts +14 -0
  295. package/lib/components/PasswordField/index.d.ts.map +1 -0
  296. package/lib/components/PasswordField/index.js +113 -0
  297. package/lib/components/PasswordField/index.test.js +217 -0
  298. package/lib/components/PasswordField/schema.d.ts +3 -0
  299. package/lib/components/PasswordField/schema.d.ts.map +1 -0
  300. package/lib/components/PasswordField/schema.js +27 -0
  301. package/lib/components/Popover/Arrow.d.ts +2 -2
  302. package/lib/components/Popover/index.d.ts.map +1 -1
  303. package/lib/components/Popover/index.js +25 -10
  304. package/lib/components/Popover/schema.d.ts.map +1 -1
  305. package/lib/components/Popover/schema.js +28 -20
  306. package/lib/components/Popover/types.d.ts +6 -2
  307. package/lib/components/Popover/types.d.ts.map +1 -1
  308. package/lib/components/SearchInput/index.d.ts +11 -0
  309. package/lib/components/SearchInput/index.d.ts.map +1 -0
  310. package/lib/components/SearchInput/index.js +179 -0
  311. package/lib/components/SearchInput/index.test.js +660 -0
  312. package/lib/components/SearchInput/schema.d.ts +3 -0
  313. package/lib/components/SearchInput/schema.d.ts.map +1 -0
  314. package/lib/components/SearchInput/schema.js +38 -0
  315. package/lib/components/SearchInput/styles.d.ts +1176 -0
  316. package/lib/components/SearchInput/styles.d.ts.map +1 -0
  317. package/lib/components/SearchInput/styles.js +97 -0
  318. package/lib/components/SearchInput/types.d.ts +39 -0
  319. package/lib/components/SearchInput/types.d.ts.map +1 -0
  320. package/lib/components/SearchInput/types.js +5 -0
  321. package/lib/components/Select/Target.d.ts.map +1 -1
  322. package/lib/components/Select/Target.js +5 -1
  323. package/lib/components/Select/index.d.ts.map +1 -1
  324. package/lib/components/Select/index.js +7 -3
  325. package/lib/components/Select/index.test.js +43 -19
  326. package/lib/components/Select/schema.d.ts.map +1 -1
  327. package/lib/components/Select/schema.js +2 -0
  328. package/lib/components/Select/types.d.ts +2 -0
  329. package/lib/components/Select/types.d.ts.map +1 -1
  330. package/lib/components/SelectDate/Target.d.ts.map +1 -1
  331. package/lib/components/SelectDate/Target.js +5 -1
  332. package/lib/components/SelectDate/index.d.ts.map +1 -1
  333. package/lib/components/SelectDate/index.js +7 -3
  334. package/lib/components/SelectDate/schema.d.ts.map +1 -1
  335. package/lib/components/SelectDate/schema.js +1 -0
  336. package/lib/components/SelectDate/types.d.ts +1 -0
  337. package/lib/components/SelectDate/types.d.ts.map +1 -1
  338. package/lib/components/SelectDateRange/index.d.ts.map +1 -1
  339. package/lib/components/SelectDateRange/index.js +6 -2
  340. package/lib/components/SelectDateRange/schema.d.ts.map +1 -1
  341. package/lib/components/SelectDateRange/schema.js +1 -0
  342. package/lib/components/StepTracker/index.d.ts +11 -0
  343. package/lib/components/StepTracker/index.d.ts.map +1 -0
  344. package/lib/components/StepTracker/index.js +56 -0
  345. package/lib/components/StepTracker/index.test.js +89 -0
  346. package/lib/components/StepTracker/schema.d.ts +3 -0
  347. package/lib/components/StepTracker/schema.d.ts.map +1 -0
  348. package/lib/components/StepTracker/schema.js +19 -0
  349. package/lib/components/StepTracker/styles.d.ts +605 -0
  350. package/lib/components/StepTracker/styles.d.ts.map +1 -0
  351. package/lib/components/StepTracker/styles.js +114 -0
  352. package/lib/components/Table/Body.d.ts.map +1 -1
  353. package/lib/components/Table/Body.js +2 -5
  354. package/lib/components/Table/Container.d.ts.map +1 -1
  355. package/lib/components/Table/Container.js +6 -1
  356. package/lib/components/Table/Grip.d.ts +6 -2
  357. package/lib/components/Table/Grip.d.ts.map +1 -1
  358. package/lib/components/Table/Grip.js +9 -3
  359. package/lib/components/Table/index.js +1 -1
  360. package/lib/components/Tabs/Tab/index.d.ts +13 -0
  361. package/lib/components/Tabs/Tab/index.d.ts.map +1 -0
  362. package/lib/components/Tabs/Tab/index.js +94 -0
  363. package/lib/components/Tabs/Tab/schema.d.ts +3 -0
  364. package/lib/components/Tabs/Tab/schema.d.ts.map +1 -0
  365. package/lib/components/Tabs/Tab/styles.d.ts +7 -0
  366. package/lib/components/Tabs/Tab/styles.d.ts.map +1 -0
  367. package/lib/components/Tabs/Tab/styles.js +37 -0
  368. package/lib/components/Tabs/context.d.ts +2 -2
  369. package/lib/components/Tabs/context.d.ts.map +1 -1
  370. package/lib/components/Tabs/context.js +1 -1
  371. package/lib/components/Tabs/index.d.ts +17 -6
  372. package/lib/components/Tabs/index.d.ts.map +1 -1
  373. package/lib/components/Tabs/index.js +104 -163
  374. package/lib/components/Tabs/index.test.js +54 -2
  375. package/lib/components/Tabs/styles.d.ts +4 -0
  376. package/lib/components/Tabs/styles.d.ts.map +1 -0
  377. package/lib/components/Tabs/styles.js +35 -0
  378. package/lib/components/Tag/Action.d.ts +4 -0
  379. package/lib/components/Tag/Action.d.ts.map +1 -0
  380. package/lib/components/Tag/Action.js +39 -0
  381. package/lib/components/Tag/constants.d.ts +2 -2
  382. package/lib/components/Tag/constants.d.ts.map +1 -1
  383. package/lib/components/Tag/constants.js +4 -4
  384. package/lib/components/Tag/index.d.ts +1 -3
  385. package/lib/components/Tag/index.d.ts.map +1 -1
  386. package/lib/components/Tag/index.js +40 -97
  387. package/lib/components/Tag/index.test.js +239 -2
  388. package/lib/components/Tag/propTypes.d.ts +4 -1
  389. package/lib/components/Tag/propTypes.d.ts.map +1 -1
  390. package/lib/components/Tag/propTypes.js +5 -2
  391. package/lib/components/Tag/schema.d.ts.map +1 -1
  392. package/lib/components/Tag/schema.js +3 -1
  393. package/lib/components/Tag/styles.d.ts +13 -0
  394. package/lib/components/Tag/styles.d.ts.map +1 -0
  395. package/lib/components/Tag/styles.js +133 -0
  396. package/lib/components/Tag/types.d.ts +11 -12
  397. package/lib/components/Tag/types.d.ts.map +1 -1
  398. package/lib/components/TagInput/index.d.ts +5 -0
  399. package/lib/components/TagInput/index.d.ts.map +1 -0
  400. package/lib/components/TagInput/index.js +363 -0
  401. package/lib/components/TagInput/index.test.js +1143 -0
  402. package/lib/components/TagInput/schema.d.ts +3 -0
  403. package/lib/components/TagInput/schema.d.ts.map +1 -0
  404. package/lib/components/TagInput/schema.js +36 -0
  405. package/lib/components/TagInput/styles.d.ts +10 -0
  406. package/lib/components/TagInput/styles.d.ts.map +1 -0
  407. package/lib/components/TagInput/styles.js +52 -0
  408. package/lib/components/TagInput/types.d.ts +21 -0
  409. package/lib/components/TagInput/types.d.ts.map +1 -0
  410. package/lib/components/TagInput/types.js +5 -0
  411. package/lib/components/Toggle/Fieldset.d.ts.map +1 -1
  412. package/lib/components/Toggle/Fieldset.js +20 -11
  413. package/lib/components/Toggle/Option.d.ts.map +1 -1
  414. package/lib/components/Toggle/Option.js +1 -1
  415. package/lib/components/Toggle/Slider.d.ts +1 -3
  416. package/lib/components/Toggle/Slider.d.ts.map +1 -1
  417. package/lib/components/Toggle/Slider.js +29 -24
  418. package/lib/components/Toggle/index.d.ts.map +1 -1
  419. package/lib/components/Toggle/index.js +2 -1
  420. package/lib/components/Toggle/propTypes.js +1 -1
  421. package/lib/components/Toggle/schema.js +1 -1
  422. package/lib/components/Toggle/types.d.ts +3 -2
  423. package/lib/components/Toggle/types.d.ts.map +1 -1
  424. package/lib/components/ToggleView/ToggleView.d.ts +5 -0
  425. package/lib/components/ToggleView/ToggleView.d.ts.map +1 -0
  426. package/lib/components/ToggleView/ToggleView.js +80 -0
  427. package/lib/components/ToggleView/index.d.ts +4 -0
  428. package/lib/components/ToggleView/index.d.ts.map +1 -0
  429. package/lib/components/ToggleView/index.js +33 -0
  430. package/lib/components/ToggleView/index.test.js +61 -0
  431. package/lib/components/ToggleView/schema.d.ts +3 -0
  432. package/lib/components/ToggleView/schema.d.ts.map +1 -0
  433. package/lib/components/ToggleView/schema.js +24 -0
  434. package/lib/components/ToggleView/styles.d.ts +6 -0
  435. package/lib/components/ToggleView/styles.d.ts.map +1 -0
  436. package/lib/components/ToggleView/styles.js +23 -0
  437. package/lib/components/ToggleView/types.d.ts +23 -0
  438. package/lib/components/ToggleView/types.d.ts.map +1 -0
  439. package/lib/components/ToggleView/types.js +12 -0
  440. package/lib/components/Tooltip/index.d.ts.map +1 -1
  441. package/lib/components/Tooltip/index.js +3 -13
  442. package/lib/components/Tooltip/schema.d.ts +3 -0
  443. package/lib/components/Tooltip/schema.d.ts.map +1 -0
  444. package/lib/components/Tooltip/schema.js +29 -0
  445. package/lib/components/TopNav/Menu/index.d.ts +1 -1
  446. package/lib/components/TopNav/index.d.ts +1 -1
  447. package/lib/components/Typography/withColors.d.ts +1 -1
  448. package/lib/components/Typography/withColors.d.ts.map +1 -1
  449. package/lib/components/Typography/withColors.js +1 -1
  450. package/lib/components/Wizard/index.d.ts +33 -0
  451. package/lib/components/Wizard/index.d.ts.map +1 -0
  452. package/lib/components/Wizard/index.js +161 -0
  453. package/lib/components/Wizard/index.test.js +940 -0
  454. package/lib/components/Wizard/schema.d.ts +3 -0
  455. package/lib/components/Wizard/schema.d.ts.map +1 -0
  456. package/lib/components/Wizard/schema.js +42 -0
  457. package/lib/components/Wizard/styles.d.ts +990 -0
  458. package/lib/components/Wizard/styles.d.ts.map +1 -0
  459. package/lib/components/Wizard/styles.js +79 -0
  460. package/lib/components/index.d.ts +11 -1
  461. package/lib/components/index.d.ts.map +1 -1
  462. package/lib/components/index.js +196 -1
  463. package/lib/modifiers/palette.d.ts +36 -0
  464. package/lib/modifiers/palette.d.ts.map +1 -0
  465. package/lib/modifiers/palette.js +88 -0
  466. package/lib/modifiers/spacingSchema.d.ts.map +1 -1
  467. package/lib/modifiers/spacingSchema.js +29 -16
  468. package/lib/providers/ConfigProvider/utils/linkRenderer.d.ts +2 -1
  469. package/lib/providers/ConfigProvider/utils/linkRenderer.d.ts.map +1 -1
  470. package/lib/providers/ConfigProvider/utils/translations.d.ts +45 -1
  471. package/lib/providers/ConfigProvider/utils/translations.d.ts.map +1 -1
  472. package/lib/providers/ConfigProvider/utils/translations.js +46 -2
  473. package/lib/types/index.d.ts +2 -0
  474. package/lib/types/index.d.ts.map +1 -0
  475. package/lib/types/index.js +5 -0
  476. package/lib/utils/commonUIColors.d.ts +351 -3
  477. package/lib/utils/commonUIColors.d.ts.map +1 -1
  478. package/lib/utils/commonUIColors.js +6 -2
  479. package/lib/utils/useDebounce.d.ts +2 -0
  480. package/lib/utils/useDebounce.d.ts.map +1 -0
  481. package/lib/utils/useDebounce.js +37 -0
  482. package/lib/utils/useStackingContext.d.ts +12 -0
  483. package/lib/utils/useStackingContext.d.ts.map +1 -0
  484. package/lib/utils/useStackingContext.js +46 -0
  485. package/package.json +26 -13
  486. package/CHANGELOG.md +0 -796
  487. package/lib/atoms/OptionsList/Category.d.ts +0 -4
  488. package/lib/atoms/OptionsList/Category.d.ts.map +0 -1
  489. package/lib/atoms/OptionsList/Category.js +0 -53
  490. package/lib/atoms/OptionsList/Option.d.ts.map +0 -1
  491. package/lib/atoms/OptionsList/Option.js +0 -197
  492. package/lib/components/Tabs/Tab.d.ts +0 -5
  493. package/lib/components/Tabs/Tab.d.ts.map +0 -1
  494. package/lib/components/Tabs/Tab.js +0 -109
  495. package/lib/components/Tabs/schema.tab.d.ts.map +0 -1
  496. package/lib/components/Tabs/types.d.ts +0 -27
  497. package/lib/components/Tabs/types.d.ts.map +0 -1
  498. package/lib/components/Tag/ActionButton.d.ts +0 -5
  499. package/lib/components/Tag/ActionButton.d.ts.map +0 -1
  500. package/lib/components/Tag/ActionButton.js +0 -56
  501. /package/lib/components/{Tabs → Link}/types.js +0 -0
  502. /package/lib/components/Tabs/{schema.tab.js → Tab/schema.js} +0 -0
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Category: ({ borderRadius, label, items, showCheckbox, }: import("./types").Category) => JSX.Element;
3
- export default Category;
4
- //# sourceMappingURL=Category.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Category.d.ts","sourceRoot":"","sources":["../../../src/atoms/OptionsList/Category.tsx"],"names":[],"mappings":";AAuBA,QAAA,MAAM,QAAQ,4FAyBb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,53 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _rem = _interopRequireDefault(require("polished/lib/helpers/rem"));
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _styledComponents = _interopRequireDefault(require("styled-components"));
13
-
14
- var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
15
-
16
- var _designTokens = require("@decisiv/design-tokens");
17
-
18
- var _Option = _interopRequireDefault(require("./Option"));
19
-
20
- var _utils = require("./utils");
21
-
22
- 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; } }
23
-
24
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
-
26
- 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); }
27
-
28
- var StyledCategory = _styledComponents.default.li.attrs({
29
- role: 'option',
30
- 'aria-disabled': true
31
- }).withConfig({
32
- displayName: "Category__StyledCategory",
33
- componentId: "sc-1kvf2r-0"
34
- })(["color:", ";font-size:", ";cursor:default;line-height:1.4;text-align:left;padding:", ";"], (0, _toColorString.default)(_designTokens.color.base.alaskanHusky), (0, _rem.default)(_designTokens.typography.size.alias.paragraph2), "".concat((0, _rem.default)(8), " ").concat((0, _rem.default)(30), " ").concat((0, _rem.default)(7), " ").concat((0, _rem.default)(10)));
35
-
36
- var Category = function Category(_ref) {
37
- var borderRadius = _ref.borderRadius,
38
- label = _ref.label,
39
- items = _ref.items,
40
- showCheckbox = _ref.showCheckbox;
41
- return _react.default.createElement(_react.Fragment, null, _react.default.createElement(StyledCategory, null, label), items.map(function (subItem) {
42
- var id = (0, _utils.getId)(subItem);
43
- return _react.default.createElement(_Option.default, _extends({}, subItem, {
44
- key: id,
45
- id: id,
46
- borderRadius: borderRadius,
47
- showCheckbox: showCheckbox
48
- }));
49
- }));
50
- };
51
-
52
- var _default = Category;
53
- exports.default = _default;
@@ -1 +0,0 @@
1
- {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/atoms/OptionsList/Option.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAK/D,OAAO,EACL,WAAW,EAMZ,MAAM,SAAS,CAAC;AA+MjB,iBAAS,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CA4G/C;;AAED,wBAAkC"}
@@ -1,197 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _color = _interopRequireDefault(require("@decisiv/design-tokens/lib/color"));
9
-
10
- var _get = _interopRequireDefault(require("lodash/get"));
11
-
12
- var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
13
-
14
- var _rem = _interopRequireDefault(require("polished/lib/helpers/rem"));
15
-
16
- var _react = _interopRequireWildcard(require("react"));
17
-
18
- var _styledComponents = _interopRequireWildcard(require("styled-components"));
19
-
20
- var _focusRingWithColor = _interopRequireDefault(require("../../utils/focusRingWithColor"));
21
-
22
- var _styleModifiers = require("../../utils/styleModifiers");
23
-
24
- var _Typography = require("../../components/Typography");
25
-
26
- var _context = require("./context");
27
-
28
- var _Checkbox = _interopRequireDefault(require("../../components/Checkbox"));
29
-
30
- var _Avatar = _interopRequireDefault(require("../../components/Avatar"));
31
-
32
- var _Badge = _interopRequireDefault(require("../../components/Badge"));
33
-
34
- var _Link = _interopRequireWildcard(require("../../components/Link"));
35
-
36
- var _utils = require("./utils");
37
-
38
- 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; } }
39
-
40
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41
-
42
- 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); }
43
-
44
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
45
-
46
- 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; }
47
-
48
- function getBorderRadius(_ref) {
49
- var borderRadius = _ref.borderRadius;
50
- return borderRadius || '2px';
51
- }
52
-
53
- var enabledFGColor = _color.default.interaction.pacificOcean;
54
- var disabledFGColor = _color.default.opacity.charcoal40;
55
- var StyledLink = (0, _styledComponents.default)(_Link.default).withConfig({
56
- displayName: "Option__StyledLink",
57
- componentId: "sc-679ny4-0"
58
- })(["&&,&&:hover:not(:active),&&:focus:not(:active){text-decoration:none;", ";", ";}"], (0, _Link.linkColorStyles)(enabledFGColor, enabledFGColor, enabledFGColor), (0, _styleModifiers.when)('disabled', (0, _styledComponents.css)(["", ";cursor:not-allowed;"], (0, _Link.linkColorStyles)(disabledFGColor, disabledFGColor, disabledFGColor))));
59
-
60
- var Container = _styledComponents.default.li.withConfig({
61
- displayName: "Option__Container",
62
- componentId: "sc-679ny4-1"
63
- })(["&:focus{outline:none;}> .label,> ", "{align-items:center;border:1px solid transparent;color:", ";display:flex;padding:", ";pointer-events:none;width:100%;white-space:nowrap;", ";> *{margin-right:", ";}}> ", "{pointer-events:auto;background-color:transparent;text-decoration:none;}&:first-child > .label,&:first-child > ", "{border-top-left-radius:", ";border-top-right-radius:", ";}&:last-child > .label,&:last-child > ", "{border-bottom-left-radius:", ";border-bottom-right-radius:", ";}&:hover:not([aria-disabled='true']):not([aria-selected='true']) > .label,&:hover:not([aria-disabled='true']):not([aria-selected='true']) > ", "{color:", ";text-decoration:none;.label > *{border-color:", ";}}&[aria-selected='true'] > .label{background:", ";color:", ";}", ";", " &[aria-disabled='true']{cursor:not-allowed;", "{pointer-events:none;}}&[aria-disabled='true'] > .label,&[aria-disabled='true'] > ", "{background:", ";color:", ";}"], StyledLink, (0, _toColorString.default)(_color.default.interaction.pacificOcean), "".concat((0, _rem.default)(7), " ").concat((0, _rem.default)(20), " ").concat((0, _rem.default)(7), " ").concat((0, _rem.default)(10)), (0, _styleModifiers.when)('compact', (0, _styledComponents.css)(["padding:", ";"], "".concat((0, _rem.default)(5), " ").concat((0, _rem.default)(20), " ").concat((0, _rem.default)(5), " ").concat((0, _rem.default)(10)))), (0, _rem.default)(10), StyledLink, StyledLink, getBorderRadius, getBorderRadius, StyledLink, getBorderRadius, getBorderRadius, StyledLink, (0, _toColorString.default)(_color.default.interaction.pacificOcean), (0, _toColorString.default)(_color.default.interaction.indianOcean), (0, _toColorString.default)(_color.default.interaction.pacificOcean), (0, _toColorString.default)(_color.default.base.snowWhite), (0, _styleModifiers.when)('isActive', (0, _styledComponents.css)(["color:", ";background:", ";.label > *{border-color:", ";}"], (0, _toColorString.default)(_color.default.interaction.pacificOcean), (0, _toColorString.default)(_color.default.interaction.pacificOcean15), (0, _toColorString.default)(_color.default.interaction.indianOcean))), (0, _styleModifiers.when)([['isActive'], ['inputMethod', 'keyboard']], (0, _styledComponents.css)(["background:none;> .label,> ", "{border-color:", ";", "}&[aria-selected='true'] > .label,&[aria-selected='true'] > ", "{color:", ";", "}"], StyledLink, (0, _toColorString.default)(_color.default.interaction.pacificOcean), (0, _focusRingWithColor.default)(_color.default.interaction.pacificOcean40), StyledLink, (0, _toColorString.default)(_color.default.base.snowWhite), (0, _focusRingWithColor.default)(_color.default.opacity.fullMoon50))), StyledLink, StyledLink, (0, _toColorString.default)(_color.default.base.snowWhite), (0, _toColorString.default)(_color.default.opacity.charcoal40)); // This is used below to silence a React warning about
64
- // having a controlled input without a change handler.
65
-
66
-
67
- var noop = process.env.NODE_ENV === 'production' ? undefined : function () {};
68
-
69
- function isDecoration(decoration) {
70
- var type = (0, _get.default)(decoration, 'type');
71
- return type !== undefined;
72
- }
73
-
74
- function DecorationComponent(props) {
75
- var disabled = props.disabled,
76
- rest = _objectWithoutProperties(props, ["disabled"]);
77
-
78
- switch (props.type) {
79
- case 'Avatar':
80
- return _react.default.createElement(_Avatar.default, rest);
81
-
82
- case 'Badge':
83
- return _react.default.createElement(_Badge.default, _extends({}, rest, {
84
- variant: "square",
85
- color: disabled ? 'licoriceMousse' : props.color
86
- }));
87
-
88
- case 'Icon':
89
- {
90
- var Icon = props.icon;
91
- return _react.default.createElement(Icon, null);
92
- }
93
-
94
- default:
95
- return null;
96
- }
97
- }
98
-
99
- var DecorationComponentContainer = _styledComponents.default.div.withConfig({
100
- displayName: "Option__DecorationComponentContainer",
101
- componentId: "sc-679ny4-2"
102
- })(["", ";"], (0, _styleModifiers.when)('disabled', (0, _styledComponents.css)(["opacity:0.3;img{opacity:0.3;}"]))); // We always render the checkbox/radio inputs so that regular form
103
- // submission (i.e. one not handled programmatically) still works.
104
-
105
-
106
- function Option(props) {
107
- var id = props.id,
108
- label = props.label,
109
- decoration = props.decoration,
110
- disabled = props.disabled,
111
- borderRadius = props.borderRadius,
112
- _props$showCheckbox = props.showCheckbox,
113
- showCheckbox = _props$showCheckbox === void 0 ? true : _props$showCheckbox;
114
- var decorationType = (0, _get.default)(decoration, 'type');
115
-
116
- var _useOptionsList = (0, _context.useOptionsList)(),
117
- toggleItemSelection = _useOptionsList.toggleItemSelection,
118
- selectedIds = _useOptionsList.selectedIds,
119
- name = _useOptionsList.name,
120
- multiple = _useOptionsList.multiple,
121
- renderOptionLabel = _useOptionsList.renderOptionLabel,
122
- activeId = _useOptionsList.activeId,
123
- setInputMethod = _useOptionsList.setInputMethod,
124
- updateActiveId = _useOptionsList.updateActiveId,
125
- inputMethod = _useOptionsList.inputMethod,
126
- selectable = _useOptionsList.selectable,
127
- itemRole = _useOptionsList.itemRole;
128
-
129
- var checked = selectedIds.includes(id);
130
- var commonProps = {
131
- name: name,
132
- checked: checked,
133
- onChange: noop,
134
- tabIndex: -1
135
- };
136
- var handleMouseEnter = (0, _react.useCallback)(function () {
137
- setInputMethod('mouse');
138
- updateActiveId(disabled ? '' : id);
139
- }, [setInputMethod, updateActiveId, disabled, id]);
140
- var handleClick = (0, _react.useCallback)(function () {
141
- if (!disabled) toggleItemSelection(id);
142
- }, [toggleItemSelection, id, disabled]);
143
- var LabelWrapper = (0, _react.useMemo)(function () {
144
- return function (_ref2) {
145
- var children = _ref2.children;
146
- return selectable ? _react.default.createElement("label", {
147
- className: "label"
148
- }, children) : _react.default.createElement("div", {
149
- className: "label"
150
- }, children);
151
- };
152
- }, [selectable]);
153
- return _react.default.createElement(Container, {
154
- "aria-disabled": !!disabled,
155
- "aria-selected": checked,
156
- borderRadius: borderRadius,
157
- compact: decorationType && decorationType !== 'Icon',
158
- "data-id": id,
159
- key: id,
160
- onClick: handleClick,
161
- multiple: !!multiple,
162
- isActive: activeId === id,
163
- tabIndex: -1,
164
- onMouseEnter: handleMouseEnter,
165
- inputMethod: inputMethod,
166
- role: itemRole
167
- }, (0, _utils.isLink)(props) ? _react.default.createElement(StyledLink, {
168
- tabIndex: -1,
169
- to: props.linkTo,
170
- text: label,
171
- icon: isDecoration(decoration) && decoration.type === 'Icon' ? decoration.icon : undefined,
172
- disabled: !!disabled
173
- }) : _react.default.createElement(LabelWrapper, null, selectable && (multiple && !!showCheckbox ? _react.default.createElement(_Checkbox.default, _extends({}, commonProps, {
174
- disabled: !!disabled,
175
- size: "small",
176
- value: props.value
177
- })) : _react.default.createElement("input", _extends({}, commonProps, {
178
- type: "radio",
179
- hidden: true,
180
- value: props.value
181
- }))), isDecoration(decoration) && _react.default.createElement(DecorationComponentContainer, {
182
- disabled: !!disabled && decorationType !== 'Icon'
183
- }, _react.default.createElement(DecorationComponent, decoration)), renderOptionLabel ? renderOptionLabel({
184
- id: id,
185
- label: label,
186
- value: props.value,
187
- disabled: disabled,
188
- meta: props.meta
189
- }) : _react.default.createElement(_Typography.P, {
190
- as: "span",
191
- color: "inherit"
192
- }, label)));
193
- }
194
-
195
- var _default = _react.default.memo(Option);
196
-
197
- exports.default = _default;
@@ -1,5 +0,0 @@
1
- import { RefForwardingComponent } from 'react';
2
- import { TabProps, TabRef } from './types';
3
- declare const TabWithRef: RefForwardingComponent<TabRef, TabProps>;
4
- export default TabWithRef;
5
- //# sourceMappingURL=Tab.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tab.tsx"],"names":[],"mappings":"AAGA,OAAc,EAGZ,sBAAsB,EAIvB,MAAM,OAAO,CAAC;AAWf,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AA4I3C,QAAA,MAAM,UAAU,EAAE,sBAAsB,CAAC,MAAM,EAAE,QAAQ,CAAmB,CAAC;AAe7E,eAAe,UAAU,CAAC"}
@@ -1,109 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
9
-
10
- var _rem = _interopRequireDefault(require("polished/lib/helpers/rem"));
11
-
12
- var _propTypes = _interopRequireDefault(require("prop-types"));
13
-
14
- var _react = _interopRequireWildcard(require("react"));
15
-
16
- var _styledComponents = _interopRequireWildcard(require("styled-components"));
17
-
18
- var _designTokens = require("@decisiv/design-tokens");
19
-
20
- var _BaseButton = _interopRequireDefault(require("../../atoms/BaseButton"));
21
-
22
- var _assignRef = _interopRequireDefault(require("../../utils/assignRef"));
23
-
24
- var _styleModifiers = require("../../utils/styleModifiers");
25
-
26
- var _context = require("./context");
27
-
28
- 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; } }
29
-
30
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
-
32
- 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); }
33
-
34
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
35
-
36
- 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; }
37
-
38
- var base = _designTokens.color.base,
39
- interaction = _designTokens.color.interaction,
40
- opacity = _designTokens.color.opacity;
41
- var shadowColor = (0, _toColorString.default)(interaction.pacificOcean40);
42
- var yPaddingBySize = {
43
- normal: 5,
44
- large: 10
45
- };
46
- var StyledTab = (0, _styledComponents.default)(_BaseButton.default).withConfig({
47
- displayName: "Tab__StyledTab",
48
- componentId: "txb60x-0"
49
- })(["color:", ";align-items:center;background:", ";border-radius:2px 2px 0 0;border:1px solid transparent;cursor:default;display:flex;font-size:", ";line-height:1.4;margin:0;outline:none;padding-top:", ";padding-right:", ";padding-bottom:", ";padding-left:", ";position:relative;font-weight:", ";&::after{background:", ";bottom:-1px;content:'';height:3px;left:2px;opacity:0;position:absolute;right:2px;}&:hover{color:", ";}&[aria-selected='true']{border-color:", ";border-bottom-color:transparent;color:", ";margin-bottom:-1px;padding-bottom:", ";&:focus{border-color:", ";border-bottom-color:", ";box-shadow:inset 0 0 0 2px ", ";&::after{opacity:1;}}}&:disabled{color:", ";cursor:not-allowed;}> *:not(span){margin-top:-1px;}> * + span{margin-left:", ";}", ";"], (0, _toColorString.default)(interaction.pacificOcean), (0, _toColorString.default)(base.snowWhite), (0, _rem.default)(_designTokens.typography.size.scale[1]), (0, _rem.default)(yPaddingBySize.normal + 3), (0, _rem.default)(15), (0, _rem.default)(yPaddingBySize.normal - 1), (0, _rem.default)(15), _designTokens.typography.weight.alias.medium, (0, _toColorString.default)(base.snowWhite), (0, _toColorString.default)(interaction.indianOcean), (0, _toColorString.default)(base.quarterMoon), (0, _toColorString.default)(base.alaskanHusky), (0, _rem.default)(yPaddingBySize.normal), (0, _toColorString.default)(interaction.pacificOcean), shadowColor, shadowColor, (0, _toColorString.default)(opacity.charcoal40), (0, _rem.default)(8), (0, _styleModifiers.when)('size', 'large', (0, _styledComponents.css)(["font-size:", ";line-height:1.2;padding-bottom:", ";padding-top:", ";&[aria-selected='true']{padding-bottom:", ";}"], (0, _rem.default)(_designTokens.typography.size.scale[2]), (0, _rem.default)(yPaddingBySize.large - 1), (0, _rem.default)(yPaddingBySize.large + 3), (0, _rem.default)(yPaddingBySize.large))));
50
-
51
- var Tab = function Tab(props, ref) {
52
- var id = props.id,
53
- children = props.children,
54
- icon = props.icon,
55
- title = props.title,
56
- onClick = props.onClick,
57
- disabled = props.disabled,
58
- rest = _objectWithoutProperties(props, ["id", "children", "icon", "title", "onClick", "disabled"]);
59
-
60
- var tabs = (0, _context.useTabs)();
61
- var Icon = icon;
62
- var isActive = id === tabs.activeId;
63
- var internalRef = (0, _react.useRef)(null);
64
- var handleClick = (0, _react.useCallback)(function (e) {
65
- !disabled && tabs.activateById(id);
66
- onClick && onClick(e);
67
- }, [id, tabs, disabled, onClick]);
68
-
69
- var assignRefs = function assignRefs(node) {
70
- (0, _assignRef.default)(ref, node);
71
- (0, _assignRef.default)(internalRef, node);
72
- };
73
-
74
- tabs.register(id, {
75
- isDisabled: !!disabled,
76
- content: children,
77
- ref: internalRef
78
- });
79
- return _react.default.createElement(StyledTab, _extends({}, rest, {
80
- "aria-controls": "tab-panel-".concat(id),
81
- "aria-selected": isActive,
82
- disabled: !!disabled,
83
- id: "tab-".concat(id),
84
- onClick: handleClick,
85
- onKeyDown: tabs.onKeyDown,
86
- ref: assignRefs,
87
- role: "tab",
88
- size: tabs.size || 'normal',
89
- tabIndex: isActive ? 0 : -1,
90
- type: "button"
91
- }), Icon && _react.default.createElement(Icon, {
92
- size: "medium"
93
- }), _react.default.createElement("span", null, title));
94
- };
95
-
96
- var TabWithRef = (0, _react.forwardRef)(Tab); // @ts-ignore
97
-
98
- TabWithRef.propTypes = {
99
- id: _propTypes.default.string.isRequired,
100
- title: _propTypes.default.string.isRequired,
101
- icon: _propTypes.default.elementType,
102
- disabled: _propTypes.default.bool
103
- };
104
- TabWithRef.defaultProps = {
105
- icon: undefined,
106
- disabled: false
107
- };
108
- var _default = TabWithRef;
109
- exports.default = _default;
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.tab.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/schema.tab.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,KAAmC,CAAC;AAqBhD,eAAe,MAAM,CAAC"}
@@ -1,27 +0,0 @@
1
- import { ComponentPropsWithoutRef, ReactNode, Ref, RefObject } from 'react';
2
- import { IconProps } from '@decisiv/iconix';
3
- declare type IconComponent = (props: IconProps) => JSX.Element;
4
- export declare type TabsRef = HTMLDivElement;
5
- export declare type TabRef = HTMLButtonElement;
6
- export interface Props extends Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> {
7
- ref?: Ref<TabsRef>;
8
- size?: 'normal' | 'large';
9
- onChange?: (id: string) => void;
10
- selectedId?: string;
11
- defaultSelectedId?: string;
12
- renderHiddenTabsContent?: boolean;
13
- }
14
- export interface TabData {
15
- ref: RefObject<HTMLButtonElement>;
16
- content: ReactNode;
17
- isDisabled: boolean;
18
- }
19
- export interface TabProps extends Omit<ComponentPropsWithoutRef<'button'>, 'size'> {
20
- id: string;
21
- ref?: Ref<TabRef>;
22
- icon?: IconComponent;
23
- title: string;
24
- disabled?: boolean;
25
- }
26
- export {};
27
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5E,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,aAAK,aAAa,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC;AAEvD,oBAAY,OAAO,GAAG,cAAc,CAAC;AACrC,oBAAY,MAAM,GAAG,iBAAiB,CAAC;AAEvC,MAAM,WAAW,KACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IACzD,GAAG,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAClC,OAAO,EAAE,SAAS,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,QACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IACxD,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAClB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -1,5 +0,0 @@
1
- import { ActionButtonContainerProps, ActionButtonExtraProps } from './types';
2
- declare const ActionButton: import("styled-components").StyledComponent<"button", any, ActionButtonExtraProps, never>;
3
- export declare const ActionButtonContainer: import("styled-components").StyledComponent<"div", any, ActionButtonContainerProps, never>;
4
- export default ActionButton;
5
- //# sourceMappingURL=ActionButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/ActionButton.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAwB7E,QAAA,MAAM,YAAY,2FAkBjB,CAAC;AAEF,eAAO,MAAM,qBAAqB,4FAiBjC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,56 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.ActionButtonContainer = void 0;
7
-
8
- var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
-
10
- var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
11
-
12
- var _rem = _interopRequireDefault(require("polished/lib/helpers/rem"));
13
-
14
- var _designTokens = _interopRequireDefault(require("@decisiv/design-tokens"));
15
-
16
- var _BaseButton = _interopRequireDefault(require("../../atoms/BaseButton"));
17
-
18
- var _focusRingWithColor = _interopRequireDefault(require("../../utils/focusRingWithColor"));
19
-
20
- var _styleModifiers = require("../../utils/styleModifiers");
21
-
22
- var _constants = require("./constants");
23
-
24
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
-
26
- 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; } }
27
-
28
- var _designTokens$color = _designTokens.default.color,
29
- baseColors = _designTokens$color.base,
30
- interactionColors = _designTokens$color.interaction,
31
- statusColors = _designTokens$color.status,
32
- opacityColors = _designTokens$color.opacity;
33
- var actionButtonColors = {
34
- normal: (0, _toColorString.default)(interactionColors.indianOcean),
35
- danger: (0, _toColorString.default)(statusColors.danger.medium)
36
- };
37
- var borderRadius = (0, _styledComponents.css)(["border-radius:0 ", " ", " 0;"], (0, _rem.default)(10), (0, _rem.default)(10));
38
-
39
- var actionButtonColor = function actionButtonColor(_ref) {
40
- var actionIntent = _ref.actionIntent;
41
- return actionButtonColors[actionIntent !== 'danger' ? 'normal' : 'danger'];
42
- };
43
-
44
- var ActionButton = (0, _styledComponents.default)(_BaseButton.default).withConfig({
45
- displayName: "ActionButton",
46
- componentId: "jxjmgf-0"
47
- })(["align-items:center;appearance:none;background-color:", ";border:0;color:", ";display:flex;height:", ";justify-content:flex-start;padding:0 0 0 ", ";width:", ";outline:none;", " &:hover:not(:active){color:", ";}"], (0, _toColorString.default)(baseColors.snowWhite), (0, _toColorString.default)(interactionColors.pacificOcean), (0, _rem.default)(18), (0, _rem.default)(4), (0, _rem.default)(_constants.ACTION_BUTTON_WIDTH), borderRadius, actionButtonColor);
48
-
49
- var ActionButtonContainer = _styledComponents.default.div.withConfig({
50
- displayName: "ActionButton__ActionButtonContainer",
51
- componentId: "jxjmgf-1"
52
- })(["border:1px solid ", ";margin-right:-1px;", ";", ";"], (0, _toColorString.default)(opacityColors.charcoal15), borderRadius, (0, _styleModifiers.when)('isFocused', (0, _styledComponents.css)(["border-color:", ";", "{", "}"], (0, _toColorString.default)(interactionColors.pacificOcean), ActionButton, (0, _focusRingWithColor.default)(interactionColors.pacificOcean40))));
53
-
54
- exports.ActionButtonContainer = ActionButtonContainer;
55
- var _default = ActionButton;
56
- exports.default = _default;
File without changes