@veracity/vui 1.7.0-beta.3 → 1.7.0-redesign.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 (366) hide show
  1. package/dist/cjs/accordion/accordion.d.ts +1 -1
  2. package/dist/cjs/accordion/accordion.d.ts.map +1 -1
  3. package/dist/cjs/accordion/accordion.js +7 -7
  4. package/dist/cjs/accordion/accordion.types.d.ts +0 -15
  5. package/dist/cjs/accordion/accordion.types.d.ts.map +1 -1
  6. package/dist/cjs/accordion/accordionItem.d.ts.map +1 -1
  7. package/dist/cjs/accordion/accordionItem.js +4 -4
  8. package/dist/cjs/accordion/accordionItemArrow.d.ts +1 -1
  9. package/dist/cjs/accordion/accordionItemArrow.d.ts.map +1 -1
  10. package/dist/cjs/accordion/accordionItemArrow.js +3 -10
  11. package/dist/cjs/accordion/index.d.ts +0 -1
  12. package/dist/cjs/accordion/index.d.ts.map +1 -1
  13. package/dist/cjs/accordion/index.js +0 -1
  14. package/dist/cjs/avatar/avatar.js +1 -1
  15. package/dist/cjs/badge/badge.d.ts +9 -0
  16. package/dist/cjs/badge/badge.d.ts.map +1 -0
  17. package/dist/cjs/badge/badge.js +35 -0
  18. package/dist/cjs/badge/badge.types.d.ts +17 -0
  19. package/dist/cjs/badge/badge.types.d.ts.map +1 -0
  20. package/dist/cjs/badge/index.d.ts +3 -0
  21. package/dist/cjs/badge/index.d.ts.map +1 -0
  22. package/dist/cjs/{copyToClipboard → badge}/index.js +3 -5
  23. package/dist/cjs/badge/theme.d.ts +130 -0
  24. package/dist/cjs/badge/theme.d.ts.map +1 -0
  25. package/dist/cjs/badge/theme.js +135 -0
  26. package/dist/cjs/button/button.d.ts +1 -1
  27. package/dist/cjs/button/button.d.ts.map +1 -1
  28. package/dist/cjs/button/button.js +19 -26
  29. package/dist/cjs/button/button.types.d.ts +3 -4
  30. package/dist/cjs/button/button.types.d.ts.map +1 -1
  31. package/dist/cjs/button/buttons.js +8 -8
  32. package/dist/cjs/button/consts.js +3 -3
  33. package/dist/cjs/button/theme.d.ts +121 -44
  34. package/dist/cjs/button/theme.d.ts.map +1 -1
  35. package/dist/cjs/button/theme.js +135 -54
  36. package/dist/cjs/buttonGroup/buttonGroup.d.ts.map +1 -1
  37. package/dist/cjs/buttonGroup/buttonGroup.js +5 -5
  38. package/dist/cjs/buttonGroup/buttonGroup.types.d.ts +2 -3
  39. package/dist/cjs/buttonGroup/buttonGroup.types.d.ts.map +1 -1
  40. package/dist/cjs/buttonGroup/helpers.d.ts.map +1 -1
  41. package/dist/cjs/buttonGroup/helpers.js +2 -3
  42. package/dist/cjs/buttonToggleGroup/buttonToggleGroup.d.ts.map +1 -1
  43. package/dist/cjs/buttonToggleGroup/buttonToggleGroup.js +1 -1
  44. package/dist/cjs/checkbox/checkbox.js +1 -1
  45. package/dist/cjs/core/vuiProvider/globalStyle.d.ts.map +1 -1
  46. package/dist/cjs/core/vuiProvider/globalStyle.js +56 -38
  47. package/dist/cjs/footer/footerTrademark.js +1 -1
  48. package/dist/cjs/heading/theme.d.ts +23 -1
  49. package/dist/cjs/heading/theme.d.ts.map +1 -1
  50. package/dist/cjs/heading/theme.js +29 -7
  51. package/dist/cjs/icon/icon.types.d.ts +1 -1
  52. package/dist/cjs/icon/icon.types.d.ts.map +1 -1
  53. package/dist/cjs/icon/theme.d.ts +5 -0
  54. package/dist/cjs/icon/theme.d.ts.map +1 -1
  55. package/dist/cjs/icon/theme.js +5 -0
  56. package/dist/cjs/index.d.ts +1 -1
  57. package/dist/cjs/index.d.ts.map +1 -1
  58. package/dist/cjs/index.js +1 -1
  59. package/dist/cjs/input/input.js +1 -1
  60. package/dist/cjs/input/inputInput.js +1 -1
  61. package/dist/cjs/link/link.d.ts.map +1 -1
  62. package/dist/cjs/link/link.js +3 -3
  63. package/dist/cjs/link/link.types.d.ts +0 -2
  64. package/dist/cjs/link/link.types.d.ts.map +1 -1
  65. package/dist/cjs/link/theme.d.ts +21 -4
  66. package/dist/cjs/link/theme.d.ts.map +1 -1
  67. package/dist/cjs/link/theme.js +30 -17
  68. package/dist/cjs/list/listItem.d.ts.map +1 -1
  69. package/dist/cjs/list/listItem.js +6 -2
  70. package/dist/cjs/notification/consts.js +10 -10
  71. package/dist/cjs/notification/notification.d.ts.map +1 -1
  72. package/dist/cjs/notification/notification.js +10 -8
  73. package/dist/cjs/notification/notification.types.d.ts +2 -2
  74. package/dist/cjs/notification/notification.types.d.ts.map +1 -1
  75. package/dist/cjs/notification/notificationButton.d.ts.map +1 -1
  76. package/dist/cjs/notification/notificationButton.js +5 -1
  77. package/dist/cjs/notification/notificationIcon.d.ts.map +1 -1
  78. package/dist/cjs/notification/notificationIcon.js +3 -2
  79. package/dist/cjs/notification/notificationText.d.ts.map +1 -1
  80. package/dist/cjs/notification/notificationText.js +1 -1
  81. package/dist/cjs/notification/notificationTitle.d.ts +2 -2
  82. package/dist/cjs/notification/notificationTitle.d.ts.map +1 -1
  83. package/dist/cjs/notification/notificationTitle.js +2 -2
  84. package/dist/cjs/notification/theme.d.ts +31 -16
  85. package/dist/cjs/notification/theme.d.ts.map +1 -1
  86. package/dist/cjs/notification/theme.js +32 -26
  87. package/dist/cjs/p/theme.d.ts +0 -8
  88. package/dist/cjs/p/theme.d.ts.map +1 -1
  89. package/dist/cjs/p/theme.js +3 -11
  90. package/dist/cjs/progress/progress.js +1 -1
  91. package/dist/cjs/select/selectButton.js +1 -1
  92. package/dist/cjs/t/theme.d.ts +10 -1
  93. package/dist/cjs/t/theme.d.ts.map +1 -1
  94. package/dist/cjs/t/theme.js +10 -1
  95. package/dist/cjs/table/tbody.d.ts.map +1 -1
  96. package/dist/cjs/table/tbody.js +4 -0
  97. package/dist/cjs/table/theme.d.ts +5 -0
  98. package/dist/cjs/table/theme.d.ts.map +1 -1
  99. package/dist/cjs/table/theme.js +6 -1
  100. package/dist/cjs/tabs/tabs.types.d.ts +2 -2
  101. package/dist/cjs/tabs/tabs.types.d.ts.map +1 -1
  102. package/dist/cjs/tabs/tabsNavBar.d.ts.map +1 -1
  103. package/dist/cjs/tabs/tabsNavBar.js +13 -5
  104. package/dist/cjs/tabs/theme.d.ts +40 -4
  105. package/dist/cjs/tabs/theme.d.ts.map +1 -1
  106. package/dist/cjs/tabs/theme.js +41 -4
  107. package/dist/cjs/tag/tag.d.ts.map +1 -1
  108. package/dist/cjs/tag/tag.js +9 -6
  109. package/dist/cjs/tag/tag.types.d.ts +3 -2
  110. package/dist/cjs/tag/tag.types.d.ts.map +1 -1
  111. package/dist/cjs/tag/tagButton.js +3 -1
  112. package/dist/cjs/tag/theme.d.ts +178 -32
  113. package/dist/cjs/tag/theme.d.ts.map +1 -1
  114. package/dist/cjs/tag/theme.js +182 -65
  115. package/dist/cjs/textarea/textarea.js +1 -1
  116. package/dist/cjs/theme/components.d.ts +497 -39
  117. package/dist/cjs/theme/components.d.ts.map +1 -1
  118. package/dist/cjs/theme/components.js +70 -68
  119. package/dist/cjs/theme/defaultTheme.d.ts +795 -46
  120. package/dist/cjs/theme/defaultTheme.d.ts.map +1 -1
  121. package/dist/cjs/theme/foundations/colors.d.ts +523 -0
  122. package/dist/cjs/theme/foundations/colors.d.ts.map +1 -1
  123. package/dist/cjs/theme/foundations/colors.js +387 -1
  124. package/dist/cjs/theme/foundations/fontWeights.d.ts +0 -1
  125. package/dist/cjs/theme/foundations/fontWeights.d.ts.map +1 -1
  126. package/dist/cjs/theme/foundations/fontWeights.js +1 -2
  127. package/dist/cjs/theme/foundations/index.d.ts +292 -1
  128. package/dist/cjs/theme/foundations/index.d.ts.map +1 -1
  129. package/dist/cjs/theme/foundations/radii.d.ts +5 -0
  130. package/dist/cjs/theme/foundations/radii.d.ts.map +1 -1
  131. package/dist/cjs/theme/foundations/radii.js +8 -3
  132. package/dist/cjs/toast/useToast.d.ts.map +1 -1
  133. package/dist/cjs/toast/useToast.js +1 -1
  134. package/dist/cjs/tutorial/tutorialCard.d.ts.map +1 -1
  135. package/dist/cjs/tutorial/tutorialCard.js +3 -3
  136. package/dist/esm/accordion/accordion.d.ts +1 -1
  137. package/dist/esm/accordion/accordion.d.ts.map +1 -1
  138. package/dist/esm/accordion/accordion.js +6 -6
  139. package/dist/esm/accordion/accordion.types.d.ts +0 -15
  140. package/dist/esm/accordion/accordion.types.d.ts.map +1 -1
  141. package/dist/esm/accordion/accordionItem.d.ts.map +1 -1
  142. package/dist/esm/accordion/accordionItem.js +4 -4
  143. package/dist/esm/accordion/accordionItemArrow.d.ts +1 -1
  144. package/dist/esm/accordion/accordionItemArrow.d.ts.map +1 -1
  145. package/dist/esm/accordion/accordionItemArrow.js +3 -10
  146. package/dist/esm/accordion/index.d.ts +0 -1
  147. package/dist/esm/accordion/index.d.ts.map +1 -1
  148. package/dist/esm/accordion/index.js +0 -1
  149. package/dist/esm/avatar/avatar.js +1 -1
  150. package/dist/esm/badge/badge.d.ts +9 -0
  151. package/dist/esm/badge/badge.d.ts.map +1 -0
  152. package/dist/esm/badge/badge.js +17 -0
  153. package/dist/esm/badge/badge.types.d.ts +17 -0
  154. package/dist/esm/badge/badge.types.d.ts.map +1 -0
  155. package/dist/esm/badge/index.d.ts +3 -0
  156. package/dist/esm/badge/index.d.ts.map +1 -0
  157. package/dist/esm/badge/index.js +2 -0
  158. package/dist/esm/badge/theme.d.ts +130 -0
  159. package/dist/esm/badge/theme.d.ts.map +1 -0
  160. package/dist/esm/badge/theme.js +133 -0
  161. package/dist/esm/button/button.d.ts +1 -1
  162. package/dist/esm/button/button.d.ts.map +1 -1
  163. package/dist/esm/button/button.js +19 -26
  164. package/dist/esm/button/button.types.d.ts +3 -4
  165. package/dist/esm/button/button.types.d.ts.map +1 -1
  166. package/dist/esm/button/buttons.js +8 -8
  167. package/dist/esm/button/consts.js +3 -3
  168. package/dist/esm/button/theme.d.ts +121 -44
  169. package/dist/esm/button/theme.d.ts.map +1 -1
  170. package/dist/esm/button/theme.js +135 -58
  171. package/dist/esm/buttonGroup/buttonGroup.d.ts.map +1 -1
  172. package/dist/esm/buttonGroup/buttonGroup.js +6 -6
  173. package/dist/esm/buttonGroup/buttonGroup.types.d.ts +2 -3
  174. package/dist/esm/buttonGroup/buttonGroup.types.d.ts.map +1 -1
  175. package/dist/esm/buttonGroup/helpers.d.ts.map +1 -1
  176. package/dist/esm/buttonGroup/helpers.js +2 -3
  177. package/dist/esm/buttonToggleGroup/buttonToggleGroup.d.ts.map +1 -1
  178. package/dist/esm/buttonToggleGroup/buttonToggleGroup.js +1 -1
  179. package/dist/esm/checkbox/checkbox.js +1 -1
  180. package/dist/esm/core/vuiProvider/globalStyle.d.ts.map +1 -1
  181. package/dist/esm/core/vuiProvider/globalStyle.js +56 -38
  182. package/dist/esm/footer/footerTrademark.js +1 -1
  183. package/dist/esm/heading/theme.d.ts +23 -1
  184. package/dist/esm/heading/theme.d.ts.map +1 -1
  185. package/dist/esm/heading/theme.js +29 -7
  186. package/dist/esm/icon/icon.types.d.ts +1 -1
  187. package/dist/esm/icon/icon.types.d.ts.map +1 -1
  188. package/dist/esm/icon/theme.d.ts +5 -0
  189. package/dist/esm/icon/theme.d.ts.map +1 -1
  190. package/dist/esm/icon/theme.js +5 -0
  191. package/dist/esm/index.d.ts +1 -1
  192. package/dist/esm/index.d.ts.map +1 -1
  193. package/dist/esm/index.js +1 -1
  194. package/dist/esm/input/input.js +1 -1
  195. package/dist/esm/input/inputInput.js +1 -1
  196. package/dist/esm/link/link.d.ts.map +1 -1
  197. package/dist/esm/link/link.js +3 -3
  198. package/dist/esm/link/link.types.d.ts +0 -2
  199. package/dist/esm/link/link.types.d.ts.map +1 -1
  200. package/dist/esm/link/theme.d.ts +21 -4
  201. package/dist/esm/link/theme.d.ts.map +1 -1
  202. package/dist/esm/link/theme.js +30 -17
  203. package/dist/esm/list/listItem.d.ts.map +1 -1
  204. package/dist/esm/list/listItem.js +6 -2
  205. package/dist/esm/notification/consts.js +10 -10
  206. package/dist/esm/notification/notification.d.ts.map +1 -1
  207. package/dist/esm/notification/notification.js +11 -9
  208. package/dist/esm/notification/notification.types.d.ts +2 -2
  209. package/dist/esm/notification/notification.types.d.ts.map +1 -1
  210. package/dist/esm/notification/notificationButton.d.ts.map +1 -1
  211. package/dist/esm/notification/notificationButton.js +4 -1
  212. package/dist/esm/notification/notificationIcon.d.ts.map +1 -1
  213. package/dist/esm/notification/notificationIcon.js +3 -2
  214. package/dist/esm/notification/notificationText.d.ts.map +1 -1
  215. package/dist/esm/notification/notificationText.js +1 -1
  216. package/dist/esm/notification/notificationTitle.d.ts +2 -2
  217. package/dist/esm/notification/notificationTitle.d.ts.map +1 -1
  218. package/dist/esm/notification/notificationTitle.js +2 -2
  219. package/dist/esm/notification/theme.d.ts +31 -16
  220. package/dist/esm/notification/theme.d.ts.map +1 -1
  221. package/dist/esm/notification/theme.js +32 -26
  222. package/dist/esm/p/theme.d.ts +0 -8
  223. package/dist/esm/p/theme.d.ts.map +1 -1
  224. package/dist/esm/p/theme.js +3 -11
  225. package/dist/esm/progress/progress.js +1 -1
  226. package/dist/esm/select/selectButton.js +1 -1
  227. package/dist/esm/t/theme.d.ts +10 -1
  228. package/dist/esm/t/theme.d.ts.map +1 -1
  229. package/dist/esm/t/theme.js +10 -1
  230. package/dist/esm/table/tbody.d.ts.map +1 -1
  231. package/dist/esm/table/tbody.js +4 -0
  232. package/dist/esm/table/theme.d.ts +5 -0
  233. package/dist/esm/table/theme.d.ts.map +1 -1
  234. package/dist/esm/table/theme.js +6 -1
  235. package/dist/esm/tabs/tabs.types.d.ts +2 -2
  236. package/dist/esm/tabs/tabs.types.d.ts.map +1 -1
  237. package/dist/esm/tabs/tabsNavBar.d.ts.map +1 -1
  238. package/dist/esm/tabs/tabsNavBar.js +12 -4
  239. package/dist/esm/tabs/theme.d.ts +40 -4
  240. package/dist/esm/tabs/theme.d.ts.map +1 -1
  241. package/dist/esm/tabs/theme.js +41 -4
  242. package/dist/esm/tag/tag.d.ts.map +1 -1
  243. package/dist/esm/tag/tag.js +9 -6
  244. package/dist/esm/tag/tag.types.d.ts +3 -2
  245. package/dist/esm/tag/tag.types.d.ts.map +1 -1
  246. package/dist/esm/tag/tagButton.js +3 -1
  247. package/dist/esm/tag/theme.d.ts +178 -32
  248. package/dist/esm/tag/theme.d.ts.map +1 -1
  249. package/dist/esm/tag/theme.js +182 -65
  250. package/dist/esm/textarea/textarea.js +1 -1
  251. package/dist/esm/theme/components.d.ts +497 -39
  252. package/dist/esm/theme/components.d.ts.map +1 -1
  253. package/dist/esm/theme/components.js +2 -0
  254. package/dist/esm/theme/defaultTheme.d.ts +795 -46
  255. package/dist/esm/theme/defaultTheme.d.ts.map +1 -1
  256. package/dist/esm/theme/foundations/colors.d.ts +523 -0
  257. package/dist/esm/theme/foundations/colors.d.ts.map +1 -1
  258. package/dist/esm/theme/foundations/colors.js +363 -0
  259. package/dist/esm/theme/foundations/fontWeights.d.ts +0 -1
  260. package/dist/esm/theme/foundations/fontWeights.d.ts.map +1 -1
  261. package/dist/esm/theme/foundations/fontWeights.js +1 -2
  262. package/dist/esm/theme/foundations/index.d.ts +292 -1
  263. package/dist/esm/theme/foundations/index.d.ts.map +1 -1
  264. package/dist/esm/theme/foundations/radii.d.ts +5 -0
  265. package/dist/esm/theme/foundations/radii.d.ts.map +1 -1
  266. package/dist/esm/theme/foundations/radii.js +8 -3
  267. package/dist/esm/toast/useToast.d.ts.map +1 -1
  268. package/dist/esm/toast/useToast.js +1 -1
  269. package/dist/esm/tutorial/tutorialCard.d.ts.map +1 -1
  270. package/dist/esm/tutorial/tutorialCard.js +3 -3
  271. package/package.json +1 -1
  272. package/src/accordion/accordion.tsx +7 -18
  273. package/src/accordion/accordion.types.ts +7 -16
  274. package/src/accordion/accordionItem.tsx +5 -23
  275. package/src/accordion/accordionItemArrow.tsx +3 -13
  276. package/src/accordion/index.ts +0 -1
  277. package/src/avatar/avatar.tsx +1 -1
  278. package/src/badge/badge.tsx +36 -0
  279. package/src/badge/badge.types.ts +17 -0
  280. package/src/badge/index.ts +2 -0
  281. package/src/badge/theme.ts +140 -0
  282. package/src/button/button.tsx +23 -30
  283. package/src/button/button.types.ts +4 -8
  284. package/src/button/buttons.tsx +8 -8
  285. package/src/button/consts.ts +3 -3
  286. package/src/button/theme.ts +143 -71
  287. package/src/buttonGroup/buttonGroup.tsx +6 -9
  288. package/src/buttonGroup/buttonGroup.types.ts +2 -3
  289. package/src/buttonGroup/helpers.ts +2 -4
  290. package/src/buttonToggleGroup/buttonToggleGroup.tsx +0 -2
  291. package/src/checkbox/checkbox.tsx +1 -1
  292. package/src/core/vuiProvider/globalStyle.tsx +56 -38
  293. package/src/footer/footerTrademark.tsx +1 -1
  294. package/src/heading/theme.ts +29 -7
  295. package/src/icon/icon.types.ts +1 -1
  296. package/src/icon/theme.ts +5 -0
  297. package/src/index.ts +1 -1
  298. package/src/input/input.tsx +1 -1
  299. package/src/input/inputInput.tsx +1 -1
  300. package/src/link/link.tsx +2 -3
  301. package/src/link/link.types.ts +0 -2
  302. package/src/link/theme.ts +30 -20
  303. package/src/list/listItem.tsx +6 -2
  304. package/src/notification/consts.ts +10 -10
  305. package/src/notification/notification.tsx +17 -11
  306. package/src/notification/notification.types.ts +2 -2
  307. package/src/notification/notificationButton.tsx +10 -5
  308. package/src/notification/notificationIcon.tsx +6 -3
  309. package/src/notification/notificationText.tsx +2 -1
  310. package/src/notification/notificationTitle.tsx +3 -9
  311. package/src/notification/theme.ts +32 -34
  312. package/src/p/theme.ts +3 -11
  313. package/src/progress/progress.tsx +1 -1
  314. package/src/select/selectButton.tsx +1 -1
  315. package/src/t/theme.ts +10 -1
  316. package/src/table/tbody.tsx +4 -0
  317. package/src/table/theme.ts +6 -1
  318. package/src/tabs/tabs.types.ts +2 -2
  319. package/src/tabs/tabsNavBar.tsx +23 -6
  320. package/src/tabs/theme.ts +41 -4
  321. package/src/tag/tag.tsx +11 -10
  322. package/src/tag/tag.types.ts +32 -31
  323. package/src/tag/tagButton.tsx +2 -2
  324. package/src/tag/theme.ts +183 -80
  325. package/src/textarea/textarea.tsx +1 -1
  326. package/src/theme/components.ts +2 -0
  327. package/src/theme/foundations/colors.ts +399 -0
  328. package/src/theme/foundations/fontWeights.ts +1 -2
  329. package/src/theme/foundations/radii.ts +8 -3
  330. package/src/theme/typing.d.ts +1 -0
  331. package/src/toast/useToast.tsx +2 -1
  332. package/src/tutorial/tutorialCard.tsx +10 -3
  333. package/dist/cjs/accordion/accordionItemHorizontal.d.ts +0 -5
  334. package/dist/cjs/accordion/accordionItemHorizontal.d.ts.map +0 -1
  335. package/dist/cjs/accordion/accordionItemHorizontal.js +0 -70
  336. package/dist/cjs/copyToClipboard/copyToClipboard.d.ts +0 -12
  337. package/dist/cjs/copyToClipboard/copyToClipboard.d.ts.map +0 -1
  338. package/dist/cjs/copyToClipboard/copyToClipboard.js +0 -36
  339. package/dist/cjs/copyToClipboard/copyToClipboard.types.d.ts +0 -9
  340. package/dist/cjs/copyToClipboard/copyToClipboard.types.d.ts.map +0 -1
  341. package/dist/cjs/copyToClipboard/index.d.ts +0 -5
  342. package/dist/cjs/copyToClipboard/index.d.ts.map +0 -1
  343. package/dist/cjs/copyToClipboard/useCopyToClipboard.d.ts +0 -5
  344. package/dist/cjs/copyToClipboard/useCopyToClipboard.d.ts.map +0 -1
  345. package/dist/cjs/copyToClipboard/useCopyToClipboard.js +0 -17
  346. package/dist/esm/accordion/accordionItemHorizontal.d.ts +0 -5
  347. package/dist/esm/accordion/accordionItemHorizontal.d.ts.map +0 -1
  348. package/dist/esm/accordion/accordionItemHorizontal.js +0 -29
  349. package/dist/esm/copyToClipboard/copyToClipboard.d.ts +0 -12
  350. package/dist/esm/copyToClipboard/copyToClipboard.d.ts.map +0 -1
  351. package/dist/esm/copyToClipboard/copyToClipboard.js +0 -19
  352. package/dist/esm/copyToClipboard/copyToClipboard.types.d.ts +0 -9
  353. package/dist/esm/copyToClipboard/copyToClipboard.types.d.ts.map +0 -1
  354. package/dist/esm/copyToClipboard/index.d.ts +0 -5
  355. package/dist/esm/copyToClipboard/index.d.ts.map +0 -1
  356. package/dist/esm/copyToClipboard/index.js +0 -4
  357. package/dist/esm/copyToClipboard/useCopyToClipboard.d.ts +0 -5
  358. package/dist/esm/copyToClipboard/useCopyToClipboard.d.ts.map +0 -1
  359. package/dist/esm/copyToClipboard/useCopyToClipboard.js +0 -14
  360. package/src/accordion/accordionItemHorizontal.tsx +0 -96
  361. package/src/copyToClipboard/copyToClipboard.tsx +0 -36
  362. package/src/copyToClipboard/copyToClipboard.types.ts +0 -10
  363. package/src/copyToClipboard/index.ts +0 -4
  364. package/src/copyToClipboard/useCopyToClipboard.ts +0 -15
  365. /package/dist/cjs/{copyToClipboard/copyToClipboard.types.js → badge/badge.types.js} +0 -0
  366. /package/dist/esm/{copyToClipboard/copyToClipboard.types.js → badge/badge.types.js} +0 -0
@@ -2,11 +2,9 @@ import { ButtonGroupProps } from './buttonGroup.types'
2
2
 
3
3
  /** Returns appropriate color for the border between the buttons. */
4
4
  export function getInnerBorderColor(props: ButtonGroupProps): string {
5
- const { colorScheme = 'prussian', disabled, variant = 'solid' } = props
5
+ const { disabled, variant } = props
6
6
 
7
7
  if (disabled) return 'disabled.border'
8
8
 
9
- const shade = variant === 'solid' ? '100' : '80'
10
-
11
- return `${colorScheme}.${shade}`
9
+ return `${variant}`
12
10
  }
@@ -13,9 +13,7 @@ export const ButtonToggleGroup = (props: ButtonToggleGroupProps) => {
13
13
  return (
14
14
  <ButtonGroup
15
15
  className={cs('vui-buttonToggleGroup', className)}
16
- colorScheme="blue"
17
16
  innerBorderColor={isDimmedBorder ? dimmedBorderColor : ''}
18
- variant="outlined"
19
17
  {...props}
20
18
  />
21
19
  )
@@ -8,7 +8,7 @@ import { CheckboxProps, CheckboxStyleProps } from './checkbox.types'
8
8
  import { useCheckboxGroupContext } from './context'
9
9
 
10
10
  const CheckboxControl = styled.spanBox`
11
- border-radius: sm;
11
+ border-radius: none;
12
12
  display: inline-flex;
13
13
  flex-shrink: 0;
14
14
  position: relative;
@@ -16,63 +16,81 @@ type GlobalStyleProps = {
16
16
  * - CSS variables for each theme value
17
17
  */
18
18
  export default createGlobalStyle<GlobalStyleProps>`
19
- ${fontFaces}
19
+ ${fontFaces}
20
+ :root {
21
+ ${generateCSSVariables}
22
+ }
23
+
24
+ * {
25
+ --x-ring-color: var(--vui-colors-focusColor);
26
+ // Fixes a box-shadow issue between some parent and child components
27
+ --x-shadow: 0 0 0 0 transparent;
28
+ z-index: 1;
29
+ }
20
30
 
21
- :root {
22
- ${generateCSSVariables}
23
- }
31
+ button {
32
+ --x-ring-color: transparent;
33
+ }
24
34
 
25
- * {
26
- --x-ring-color: var(--vui-colors-blue-50);
27
- // Fixes a box-shadow issue between some parent and child components
28
- --x-shadow: 0 0 0 0 transparent;
29
- }
35
+ button:focus-visible, li:focus-visible {
36
+ --x-ring-color: var(--vui-colors-focusColor);
37
+ outline: var(--vui-colors-focusColor) solid 3px;
38
+ z-index: 1;
39
+ }
30
40
 
31
- ${p =>
41
+ ${p =>
32
42
  p.globalStyle &&
33
43
  css`
34
44
  body {
35
- color: prussian.80;
45
+ color: sandstone 0.1;
36
46
  font-family: avenir;
37
47
  font-size: md;
38
48
  }
49
+
50
+ h1,
51
+ h2,
52
+ h3,
53
+ h4,
54
+ h5 {
55
+ color: darkBlue 0.18;
56
+ }
39
57
  `}
40
58
 
41
- @keyframes vui-bounce {
42
- ${bounce}
43
- }
59
+ @keyframes vui-bounce {
60
+ ${bounce}
61
+ }
44
62
 
45
- @keyframes vui-fadeDown {
46
- ${fadeDown}
47
- }
63
+ @keyframes vui-fadeDown {
64
+ ${fadeDown}
65
+ }
48
66
 
49
- @keyframes vui-fadeIn {
50
- ${fadeIn}
51
- }
67
+ @keyframes vui-fadeIn {
68
+ ${fadeIn}
69
+ }
52
70
 
53
- @keyframes vui-fadeLeft {
54
- ${fadeLeft}
55
- }
71
+ @keyframes vui-fadeLeft {
72
+ ${fadeLeft}
73
+ }
56
74
 
57
- @keyframes vui-fadeOut {
58
- ${fadeOut}
59
- }
75
+ @keyframes vui-fadeOut {
76
+ ${fadeOut}
77
+ }
60
78
 
61
- @keyframes vui-fadeRight {
62
- ${fadeRight}
63
- }
79
+ @keyframes vui-fadeRight {
80
+ ${fadeRight}
81
+ }
64
82
 
65
- @keyframes vui-fadeUp {
66
- ${fadeUp}
67
- }
83
+ @keyframes vui-fadeUp {
84
+ ${fadeUp}
85
+ }
68
86
 
69
- @keyframes vui-pulse {
70
- ${pulse}
71
- }
87
+ @keyframes vui-pulse {
88
+ ${pulse}
89
+ }
72
90
 
73
- @keyframes vui-spin {
74
- ${spin}
75
- }
91
+ @keyframes vui-spin {
92
+ ${spin}
93
+ }
76
94
  `
77
95
 
78
96
  /** Recursively maps through all theme styles and generates a set of CSS properties. */
@@ -20,11 +20,11 @@ export const FooterTrademark = vui<'div', FooterTrademarkProps>((props, ref) =>
20
20
  <Box className={cs('vui-footerTrademark', className)} ref={ref} w="100%" wrap {...styles.trademark} {...rest}>
21
21
  <FooterColumn centerV flex={{ xs: '0 0 100%', md: '0 0 25%' }}>
22
22
  <Link
23
- colorScheme="white"
24
23
  fontWeight="demi"
25
24
  href={linkedIn ?? defaultLinkedInUrl}
26
25
  iconLeft={<Link.Icon mr={1} name="fabLinkedin" size="sm" />}
27
26
  isExternal
27
+ variant="white"
28
28
  >
29
29
  Follow us
30
30
  </Link>
@@ -1,39 +1,61 @@
1
- const baseStyle = {}
1
+ const baseStyle = {
2
+ color: 'darkBlue.18'
3
+ }
2
4
 
3
5
  const defaultProps = {
4
6
  size: 'h2'
5
7
  }
6
8
 
7
9
  const sizes = {
10
+ title: {
11
+ as: 'h1',
12
+ fontFamily: 'DNV Display',
13
+ fontSize: '64px',
14
+ fontWeight: 'medium',
15
+ lineHeight: '74px'
16
+ },
8
17
  h1: {
9
18
  as: 'h1',
10
- fontSize: '40px',
11
- lineHeight: '52px'
19
+ fontSize: '50px',
20
+ fontWeight: 'regular',
21
+ lineHeight: '62px'
22
+ },
23
+ lead: {
24
+ as: 'h2',
25
+ color: 'seaBlue.28',
26
+ fontSize: '28px',
27
+ fontWeight: 'regular',
28
+ lineHeight: '38px'
12
29
  },
13
30
  h2: {
14
31
  as: 'h2',
15
32
  fontSize: '32px',
16
- lineHeight: '40px'
33
+ fontWeight: 'regular',
34
+ lineHeight: '42px'
17
35
  },
18
36
  h3: {
19
37
  as: 'h3',
20
38
  fontSize: '24px',
39
+ fontWeight: 'regular',
21
40
  lineHeight: '32px'
22
41
  },
23
42
  h4: {
24
43
  as: 'h4',
25
44
  fontSize: '20px',
26
- lineHeight: '28px'
45
+ fontWeight: 'demi',
46
+ lineHeight: '24px'
27
47
  },
28
48
  h5: {
29
49
  as: 'h5',
30
50
  fontSize: '18px',
31
- lineHeight: '24px'
51
+ fontWeight: 'demi',
52
+ lineHeight: '26px'
32
53
  },
33
54
  h6: {
34
55
  as: 'h6',
35
56
  fontSize: '16px',
36
- lineHeight: '20px'
57
+ fontWeight: 'demi',
58
+ lineHeight: '22px'
37
59
  }
38
60
  }
39
61
 
@@ -20,7 +20,7 @@ export type IconProps = SvgProps &
20
20
  icon?: IconProp
21
21
  /** Name of the icon stored in Veracity CDN. */
22
22
  name?: IconProp
23
- /** Rotates the icon by given amout of degrees clockwise. */
23
+ /** Rotates the icon by given amount of degrees clockwise. */
24
24
  rotate?: number
25
25
  /** Uses a scale of 1-10 and multiply of 16px to define icon size. */
26
26
  scale?: number
package/src/icon/theme.ts CHANGED
@@ -20,6 +20,11 @@ const sizes = {
20
20
  lg: {
21
21
  height: 28,
22
22
  width: 28
23
+ },
24
+ /** the xl size is introduced for the xxl tabs; should not be listed. */
25
+ xl: {
26
+ height: 32,
27
+ width: 32
23
28
  }
24
29
  }
25
30
 
package/src/index.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  export * from './accordion'
2
2
  export * from './avatar'
3
+ export * from './badge'
3
4
  export * from './box'
4
5
  export * from './button'
5
6
  export * from './buttonGroup'
6
7
  export * from './buttonToggleGroup'
7
8
  export * from './card'
8
9
  export * from './checkbox'
9
- export * from './copyToClipboard'
10
10
  export * from './core'
11
11
  export * from './dialog'
12
12
  export * from './divider'
@@ -14,7 +14,7 @@ import InputInput from './inputInput'
14
14
  export const InputBase = styled.divBox`
15
15
  align-items: center;
16
16
  background-color: white;
17
- border-radius: md;
17
+ border-radius: none;
18
18
  border-width: 1px;
19
19
  display: flex;
20
20
  flex-shrink: 0;
@@ -9,7 +9,7 @@ export const InputInputBase = styled.input`
9
9
  align-self: stretch;
10
10
  background-color: transparent;
11
11
  border: none;
12
- border-radius: md;
12
+ border-radius: none;
13
13
  flex: 1;
14
14
  font-size: inherit;
15
15
  min-width: 0;
package/src/link/link.tsx CHANGED
@@ -9,7 +9,7 @@ import LinkText from './linkText'
9
9
 
10
10
  export const LinkBase = styled.aBox`
11
11
  align-items: center;
12
- border-radius: sm;
12
+ border-radius: none;
13
13
  cursor: pointer;
14
14
  display: inline-flex;
15
15
  line-height: normal;
@@ -27,7 +27,6 @@ export const Link = vui<'a', LinkProps>((props, ref) => {
27
27
  const {
28
28
  children,
29
29
  className,
30
- colorScheme,
31
30
  decoration,
32
31
  hoverDecoration = 'underline',
33
32
  iconLeft,
@@ -42,7 +41,7 @@ export const Link = vui<'a', LinkProps>((props, ref) => {
42
41
  } = props
43
42
  const styles = useStyleConfig('Link', props)
44
43
 
45
- const context = useMemo(() => filterUndefined({ colorScheme, size, variant }), [colorScheme, size, variant])
44
+ const context = useMemo(() => filterUndefined({ size, variant }), [size, variant])
46
45
 
47
46
  const aliasedProps = filterUndefined({
48
47
  fontWeight: weight,
@@ -4,8 +4,6 @@ import { ThemingProps } from '../theme'
4
4
 
5
5
  export type LinkProps = SystemProps &
6
6
  ThemingProps<'Link'> & {
7
- /** Available theme colors for this component. @default blue */
8
- colorScheme?: 'blue' | 'white'
9
7
  /** Alias for textDecoration prop. @deprecated */
10
8
  decoration?: TypographyProps['textDecoration']
11
9
  /** Alias for hoverTextDecoration prop. @deprecated */
package/src/link/theme.ts CHANGED
@@ -1,27 +1,25 @@
1
- import { Dict } from '../utils'
2
-
3
- function variantDefault(props: Dict) {
4
- const { colorScheme: c } = props
5
-
1
+ function variantDefault() {
6
2
  const container = {
7
- color: `${c}.80`,
8
- hoverColor: `${c}.60`
3
+ color: `seaBlue.28`,
4
+ hoverColor: `seaBlue.28`
9
5
  }
10
6
 
11
- if (c === 'white') {
12
- container.color = 'white'
13
- container.hoverColor = 'white'
7
+ return { container }
8
+ }
9
+
10
+ function variantWhite() {
11
+ const container = {
12
+ color: `white`,
13
+ hoverColor: `white`
14
14
  }
15
15
 
16
16
  return { container }
17
17
  }
18
18
 
19
- function variantLight(props: Dict) {
20
- const { colorScheme: c } = props
21
-
19
+ function variantLight() {
22
20
  const container = {
23
- color: `${c}.60`,
24
- hoverColor: `${c}.40`
21
+ color: `seaBlue.28`,
22
+ hoverColor: `seaBlue.28`
25
23
  }
26
24
 
27
25
  return { container }
@@ -36,7 +34,6 @@ const variantPlain = {
36
34
  const baseStyle = {}
37
35
 
38
36
  const defaultProps = {
39
- colorScheme: 'blue',
40
37
  size: 'md',
41
38
  variant: 'default'
42
39
  }
@@ -46,7 +43,8 @@ const parts = ['container', 'icon', 'text']
46
43
  const sizes = {
47
44
  sm: {
48
45
  container: {
49
- fontSize: 'sm'
46
+ fontSize: 'xs',
47
+ lineHeight: '16px'
50
48
  },
51
49
  icon: {
52
50
  size: 'xs'
@@ -54,7 +52,8 @@ const sizes = {
54
52
  },
55
53
  md: {
56
54
  container: {
57
- fontSize: 'md'
55
+ fontSize: 'sm',
56
+ lineHeight: '20px'
58
57
  },
59
58
  icon: {
60
59
  size: 'xs'
@@ -62,7 +61,17 @@ const sizes = {
62
61
  },
63
62
  lg: {
64
63
  container: {
65
- fontSize: 'lg'
64
+ fontSize: 'md',
65
+ lineHeight: '24px'
66
+ },
67
+ icon: {
68
+ size: 'sm'
69
+ }
70
+ },
71
+ xl: {
72
+ container: {
73
+ fontSize: 'lg',
74
+ lineHeight: '28px'
66
75
  },
67
76
  icon: {
68
77
  size: 'sm'
@@ -73,7 +82,8 @@ const sizes = {
73
82
  const variants = {
74
83
  default: variantDefault,
75
84
  light: variantLight,
76
- plain: variantPlain
85
+ plain: variantPlain,
86
+ white: variantWhite
77
87
  }
78
88
 
79
89
  export default {
@@ -29,11 +29,15 @@ export const ListItemBase = styled.liBox`
29
29
  transition-duration: fast;
30
30
 
31
31
  &[aria-disabled='true'] {
32
- background-color: disabled.bg;
33
- color: disabled.color;
32
+ background-color: disabled .bg;
33
+ color: disabled .color;
34
34
  cursor: not-allowed;
35
35
  user-select: none;
36
36
  }
37
+
38
+ &:focus-visible {
39
+ z-index: 1;
40
+ }
37
41
  `
38
42
 
39
43
  /**
@@ -2,35 +2,35 @@ import { NotificationStatusMapping } from './notification.types'
2
2
 
3
3
  export const notificationStatusMapping: NotificationStatusMapping = {
4
4
  error: {
5
- colorScheme: 'red',
6
5
  iconProps: {
7
6
  name: 'falTimesCircle'
8
- }
7
+ },
8
+ variant: 'subtleRed'
9
9
  },
10
10
  info: {
11
- colorScheme: 'blue',
12
11
  iconProps: {
13
12
  name: 'falInfoCircle'
14
- }
13
+ },
14
+ variant: 'subtleBlue'
15
15
  },
16
16
  loading: {
17
- colorScheme: 'blue',
18
17
  iconProps: {
19
18
  animation: 'vui-spin 0.6s linear infinite',
20
19
  name: 'fadSpinnerThird',
21
20
  pathFill: ['blue.40', 'blue.60']
22
- }
21
+ },
22
+ variant: 'subtleBlue'
23
23
  },
24
24
  success: {
25
- colorScheme: 'green',
26
25
  iconProps: {
27
26
  name: 'falCheckCircle'
28
- }
27
+ },
28
+ variant: 'subtleGreen'
29
29
  },
30
30
  warning: {
31
- colorScheme: 'yellow',
32
31
  iconProps: {
33
32
  name: 'falExclamationCircle'
34
- }
33
+ },
34
+ variant: 'subtleYellow'
35
35
  }
36
36
  }
@@ -20,7 +20,7 @@ export const Notification = vui<'div', NotificationProps>((props, ref) => {
20
20
  action,
21
21
  children,
22
22
  className,
23
- colorScheme: colorSchemeProp = 'blue',
23
+ colorScheme: colorSchemeProp,
24
24
  icon,
25
25
  onClose,
26
26
  size,
@@ -28,40 +28,46 @@ export const Notification = vui<'div', NotificationProps>((props, ref) => {
28
28
  statusMapping,
29
29
  text,
30
30
  title,
31
- variant,
31
+ variant: variantProp = 'subtleBlue',
32
+ verticalAlign,
32
33
  ...rest
33
34
  } = props
34
35
  const statuses = { ...notificationStatusMapping, ...statusMapping }
35
- const { colorScheme = colorSchemeProp } = statuses[status ?? ''] ?? {}
36
- const styles = useStyleConfig('Notification', { colorScheme, ...props })
36
+ const { variant = variantProp } = statuses[status ?? ''] ?? {}
37
+ const styles = useStyleConfig('Notification', { variant, ...props })
37
38
 
38
39
  const iconName = isString(icon) ? icon : statuses[status ?? '']?.iconProps?.name
39
40
 
40
- const context = filterUndefined<NotificationProps>({ colorScheme, size, status, variant })
41
+ const context = filterUndefined<NotificationProps>({ size, status })
42
+
43
+ const titleDisplay = action ? 'block' : 'inline-flex'
44
+
45
+ const alignSelf = verticalAlign === 'center' ? 'center' : 'flex-start'
41
46
 
42
47
  return (
43
48
  <NotificationProvider value={context}>
44
49
  <Box
45
50
  borderRadius="md"
51
+ borderWidth={1}
46
52
  className={cs('vui-notification', className)}
47
- px={1.5}
48
- py={1}
49
53
  ref={ref}
50
54
  w="fit-content"
51
55
  {...styles.container}
52
56
  {...rest}
53
57
  >
54
- {iconName ? <NotificationIcon name={iconName} /> : icon}
58
+ {iconName ? <NotificationIcon alignSelf={alignSelf} name={iconName} /> : icon}
55
59
 
56
60
  {children ?? (
57
- <NotificationText>
58
- {isReactText(title) ? <NotificationTitle text={title} /> : title} {text}
61
+ <NotificationText alignSelf={alignSelf}>
62
+ {isReactText(title) ? <NotificationTitle display={titleDisplay} text={title} /> : title} {text}
59
63
  </NotificationText>
60
64
  )}
61
65
 
62
66
  {action}
63
67
 
64
- {onClose && <NotificationButton icon="falTimes" onClick={onClose} />}
68
+ {onClose && (
69
+ <NotificationButton alignSelf={alignSelf} icon="falTimes" onClick={onClose} variant={variant} w="32px" />
70
+ )}
65
71
  </Box>
66
72
  </NotificationProvider>
67
73
  )
@@ -8,7 +8,7 @@ export type NotificationProps = Omit<BoxProps, 'size' | 'variant'> &
8
8
  ThemingProps<'Notification'> & {
9
9
  /** Socket displaying a button on the right. */
10
10
  action?: ReactNode
11
- /** Available theme colors for this component. @default blue */
11
+ /** Available theme colors for this component. @deprecated */
12
12
  colorScheme?: 'blue' | 'green' | 'red' | 'yellow'
13
13
  /** Socket displaying an icon on the left. */
14
14
  icon?: IconProp | JSX.Element
@@ -29,7 +29,7 @@ export type NotificationStatus = 'error' | 'info' | 'loading' | 'success' | 'war
29
29
  export type NotificationStatusMapping = Record<
30
30
  string,
31
31
  {
32
- colorScheme?: NotificationProps['colorScheme']
33
32
  iconProps: IconProps
33
+ variant?: NotificationProps['variant']
34
34
  }
35
35
  >
@@ -3,6 +3,7 @@ import React from 'react'
3
3
  import Button, { ButtonProps } from '../button'
4
4
  import { useStyleConfig, vui } from '../core'
5
5
  import { cs } from '../utils'
6
+ import { notificationStatusMapping } from './consts'
6
7
  import { useNotificationContext } from './context'
7
8
 
8
9
  /** Displays an action button within the Notification. */
@@ -11,16 +12,20 @@ export const NotificationButton = vui<'button', ButtonProps>((props, ref) => {
11
12
  const mergedProps = { ...useNotificationContext(), ...props }
12
13
  const styles = useStyleConfig('Notification', useNotificationContext())
13
14
 
15
+ const { status = '' } = mergedProps
16
+ const { variant } = notificationStatusMapping[status] ?? {}
17
+
14
18
  return (
15
19
  <Button
16
20
  className={cs('vui-notificationButton', className)}
17
- colorScheme={mergedProps.colorScheme}
18
- ml={1}
19
- mr={-0.5}
21
+ ml="0px"
22
+ mr="16px"
23
+ my="16px"
24
+ px="12px"
25
+ py="6px"
20
26
  ref={ref}
21
- size="sm"
22
- variant="text"
23
27
  {...styles.button}
28
+ variant={variant}
24
29
  {...rest}
25
30
  />
26
31
  )
@@ -8,18 +8,21 @@ import { useNotificationContext } from './context'
8
8
 
9
9
  /** Displays an icon based on the status within the Notification. */
10
10
  export const NotificationIcon = vui<'svg', IconProps>((props, ref) => {
11
- const { className, ...rest } = props
11
+ const { className, alignSelf, ...rest } = props
12
12
  const mergedProps = { ...useNotificationContext(), ...props }
13
13
  const styles = useStyleConfig('Notification', useNotificationContext())
14
14
 
15
15
  const { status = '' } = mergedProps
16
16
  const { iconProps } = notificationStatusMapping[status] ?? {}
17
17
 
18
+ const marginTop = alignSelf === 'center' ? '0' : '16px'
19
+
18
20
  return (
19
21
  <Icon
22
+ alignSelf={alignSelf}
20
23
  className={cs('vui-notificationIcon', className)}
21
- mr={1}
22
- my={0.5}
24
+ ml="16px"
25
+ mt={marginTop}
23
26
  ref={ref}
24
27
  size="md"
25
28
  {...styles.icon}
@@ -16,7 +16,8 @@ export const NotificationText = vui<'p', TProps>((props, ref) => {
16
16
  flex="1"
17
17
  lineHeight="24px"
18
18
  minW={0}
19
- py={0.5}
19
+ mx="16px"
20
+ my="16px"
20
21
  ref={ref}
21
22
  {...styles.text}
22
23
  {...rest}
@@ -1,23 +1,17 @@
1
1
  import React from 'react'
2
2
 
3
3
  import { useStyleConfig, vui } from '../core'
4
- import { H6, HeadingProps } from '../heading'
4
+ import { T, TProps } from '../t'
5
5
  import { cs } from '../utils'
6
6
  import { useNotificationContext } from './context'
7
7
 
8
8
  /** Displays a title within the Notification. */
9
- export const NotificationTitle = vui<'h6', HeadingProps>((props, ref) => {
9
+ export const NotificationTitle = vui<'span', TProps>((props, ref) => {
10
10
  const { className, ...rest } = props
11
11
  const styles = useStyleConfig('Notification', useNotificationContext())
12
12
 
13
13
  return (
14
- <H6
15
- className={cs('vui-notificationTitle', className)}
16
- display="inline-flex"
17
- ref={ref}
18
- {...styles.title}
19
- {...rest}
20
- />
14
+ <T className={cs('vui-notificationTitle', className)} fontWeight="demi" ref={ref} {...styles.title} {...rest} />
21
15
  )
22
16
  })
23
17