@veracity/vui 1.8.0-redesign.0 → 1.8.0

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 (358) hide show
  1. package/dist/cjs/accordion/accordion.d.ts +7 -1
  2. package/dist/cjs/accordion/accordion.d.ts.map +1 -1
  3. package/dist/cjs/accordion/accordion.js +2 -0
  4. package/dist/cjs/avatar/avatar.js +1 -1
  5. package/dist/cjs/button/button.d.ts +1 -1
  6. package/dist/cjs/button/button.d.ts.map +1 -1
  7. package/dist/cjs/button/button.js +23 -16
  8. package/dist/cjs/button/button.types.d.ts +4 -3
  9. package/dist/cjs/button/button.types.d.ts.map +1 -1
  10. package/dist/cjs/button/buttons.js +8 -8
  11. package/dist/cjs/button/consts.js +3 -3
  12. package/dist/cjs/button/theme.d.ts +44 -121
  13. package/dist/cjs/button/theme.d.ts.map +1 -1
  14. package/dist/cjs/button/theme.js +54 -135
  15. package/dist/cjs/buttonGroup/buttonGroup.d.ts.map +1 -1
  16. package/dist/cjs/buttonGroup/buttonGroup.js +5 -5
  17. package/dist/cjs/buttonGroup/buttonGroup.types.d.ts +3 -2
  18. package/dist/cjs/buttonGroup/buttonGroup.types.d.ts.map +1 -1
  19. package/dist/cjs/buttonGroup/helpers.d.ts.map +1 -1
  20. package/dist/cjs/buttonGroup/helpers.js +3 -2
  21. package/dist/cjs/buttonToggleGroup/buttonToggleGroup.d.ts.map +1 -1
  22. package/dist/cjs/buttonToggleGroup/buttonToggleGroup.js +1 -1
  23. package/dist/cjs/checkbox/checkbox.js +1 -1
  24. package/dist/cjs/copyToClipboard/copyToClipboard.js +1 -1
  25. package/dist/cjs/core/media.d.ts +8 -15
  26. package/dist/cjs/core/media.d.ts.map +1 -1
  27. package/dist/cjs/core/media.js +39 -24
  28. package/dist/cjs/core/vuiProvider/globalStyle.d.ts.map +1 -1
  29. package/dist/cjs/core/vuiProvider/globalStyle.js +38 -55
  30. package/dist/cjs/footer/footerTrademark.js +1 -1
  31. package/dist/cjs/header/header.d.ts.map +1 -1
  32. package/dist/cjs/header/header.js +2 -2
  33. package/dist/cjs/header/headerServices.js +2 -2
  34. package/dist/cjs/header/loggedInHeader.js +3 -3
  35. package/dist/cjs/header/loggedOutHeader.js +3 -3
  36. package/dist/cjs/heading/theme.d.ts +1 -23
  37. package/dist/cjs/heading/theme.d.ts.map +1 -1
  38. package/dist/cjs/heading/theme.js +7 -29
  39. package/dist/cjs/icon/icon.types.d.ts +1 -1
  40. package/dist/cjs/icon/icon.types.d.ts.map +1 -1
  41. package/dist/cjs/icon/theme.d.ts +0 -5
  42. package/dist/cjs/icon/theme.d.ts.map +1 -1
  43. package/dist/cjs/icon/theme.js +0 -5
  44. package/dist/cjs/index.d.ts +0 -1
  45. package/dist/cjs/index.d.ts.map +1 -1
  46. package/dist/cjs/index.js +0 -1
  47. package/dist/cjs/input/input.js +1 -1
  48. package/dist/cjs/input/inputInput.js +1 -1
  49. package/dist/cjs/link/link.d.ts.map +1 -1
  50. package/dist/cjs/link/link.js +3 -3
  51. package/dist/cjs/link/link.types.d.ts +2 -0
  52. package/dist/cjs/link/link.types.d.ts.map +1 -1
  53. package/dist/cjs/link/theme.d.ts +4 -21
  54. package/dist/cjs/link/theme.d.ts.map +1 -1
  55. package/dist/cjs/link/theme.js +17 -30
  56. package/dist/cjs/list/listItem.d.ts.map +1 -1
  57. package/dist/cjs/list/listItem.js +2 -6
  58. package/dist/cjs/notification/consts.js +10 -10
  59. package/dist/cjs/notification/notification.d.ts.map +1 -1
  60. package/dist/cjs/notification/notification.js +8 -10
  61. package/dist/cjs/notification/notification.types.d.ts +2 -2
  62. package/dist/cjs/notification/notification.types.d.ts.map +1 -1
  63. package/dist/cjs/notification/notificationButton.d.ts.map +1 -1
  64. package/dist/cjs/notification/notificationButton.js +1 -5
  65. package/dist/cjs/notification/notificationIcon.d.ts.map +1 -1
  66. package/dist/cjs/notification/notificationIcon.js +2 -3
  67. package/dist/cjs/notification/notificationText.d.ts.map +1 -1
  68. package/dist/cjs/notification/notificationText.js +1 -1
  69. package/dist/cjs/notification/notificationTitle.d.ts +2 -2
  70. package/dist/cjs/notification/notificationTitle.d.ts.map +1 -1
  71. package/dist/cjs/notification/notificationTitle.js +2 -2
  72. package/dist/cjs/notification/theme.d.ts +16 -31
  73. package/dist/cjs/notification/theme.d.ts.map +1 -1
  74. package/dist/cjs/notification/theme.js +26 -32
  75. package/dist/cjs/p/theme.d.ts +8 -0
  76. package/dist/cjs/p/theme.d.ts.map +1 -1
  77. package/dist/cjs/p/theme.js +11 -3
  78. package/dist/cjs/progress/progress.js +1 -1
  79. package/dist/cjs/select/select.js +1 -1
  80. package/dist/cjs/select/selectButton.js +1 -1
  81. package/dist/cjs/select/theme.js +4 -4
  82. package/dist/cjs/t/theme.d.ts +1 -10
  83. package/dist/cjs/t/theme.d.ts.map +1 -1
  84. package/dist/cjs/t/theme.js +1 -10
  85. package/dist/cjs/table/tbody.d.ts.map +1 -1
  86. package/dist/cjs/table/tbody.js +0 -4
  87. package/dist/cjs/table/theme.d.ts +0 -5
  88. package/dist/cjs/table/theme.d.ts.map +1 -1
  89. package/dist/cjs/table/theme.js +1 -6
  90. package/dist/cjs/tabs/tabs.types.d.ts +2 -2
  91. package/dist/cjs/tabs/tabs.types.d.ts.map +1 -1
  92. package/dist/cjs/tabs/tabsNavBar.d.ts.map +1 -1
  93. package/dist/cjs/tabs/tabsNavBar.js +5 -13
  94. package/dist/cjs/tabs/theme.d.ts +4 -40
  95. package/dist/cjs/tabs/theme.d.ts.map +1 -1
  96. package/dist/cjs/tabs/theme.js +4 -41
  97. package/dist/cjs/tag/tag.d.ts.map +1 -1
  98. package/dist/cjs/tag/tag.js +6 -9
  99. package/dist/cjs/tag/tag.types.d.ts +2 -3
  100. package/dist/cjs/tag/tag.types.d.ts.map +1 -1
  101. package/dist/cjs/tag/tagButton.js +1 -3
  102. package/dist/cjs/tag/theme.d.ts +32 -178
  103. package/dist/cjs/tag/theme.d.ts.map +1 -1
  104. package/dist/cjs/tag/theme.js +65 -182
  105. package/dist/cjs/textarea/textarea.js +1 -1
  106. package/dist/cjs/theme/components.d.ts +39 -497
  107. package/dist/cjs/theme/components.d.ts.map +1 -1
  108. package/dist/cjs/theme/components.js +70 -72
  109. package/dist/cjs/theme/defaultTheme.d.ts +47 -795
  110. package/dist/cjs/theme/defaultTheme.d.ts.map +1 -1
  111. package/dist/cjs/theme/foundations/colors.d.ts +0 -523
  112. package/dist/cjs/theme/foundations/colors.d.ts.map +1 -1
  113. package/dist/cjs/theme/foundations/colors.js +1 -389
  114. package/dist/cjs/theme/foundations/fontWeights.d.ts +1 -0
  115. package/dist/cjs/theme/foundations/fontWeights.d.ts.map +1 -1
  116. package/dist/cjs/theme/foundations/fontWeights.js +2 -1
  117. package/dist/cjs/theme/foundations/index.d.ts +2 -292
  118. package/dist/cjs/theme/foundations/index.d.ts.map +1 -1
  119. package/dist/cjs/theme/foundations/radii.d.ts +0 -5
  120. package/dist/cjs/theme/foundations/radii.d.ts.map +1 -1
  121. package/dist/cjs/theme/foundations/radii.js +3 -8
  122. package/dist/cjs/theme/foundations/screens.d.ts +1 -0
  123. package/dist/cjs/theme/foundations/screens.d.ts.map +1 -1
  124. package/dist/cjs/theme/foundations/screens.js +6 -4
  125. package/dist/cjs/toast/toast.d.ts.map +1 -1
  126. package/dist/cjs/toast/toast.js +1 -1
  127. package/dist/cjs/toast/useToast.d.ts.map +1 -1
  128. package/dist/cjs/toast/useToast.js +1 -1
  129. package/dist/cjs/tutorial/tutorialCard.d.ts.map +1 -1
  130. package/dist/cjs/tutorial/tutorialCard.js +3 -3
  131. package/dist/esm/accordion/accordion.d.ts +7 -1
  132. package/dist/esm/accordion/accordion.d.ts.map +1 -1
  133. package/dist/esm/accordion/accordion.js +2 -0
  134. package/dist/esm/avatar/avatar.js +1 -1
  135. package/dist/esm/button/button.d.ts +1 -1
  136. package/dist/esm/button/button.d.ts.map +1 -1
  137. package/dist/esm/button/button.js +23 -16
  138. package/dist/esm/button/button.types.d.ts +4 -3
  139. package/dist/esm/button/button.types.d.ts.map +1 -1
  140. package/dist/esm/button/buttons.js +8 -8
  141. package/dist/esm/button/consts.js +3 -3
  142. package/dist/esm/button/theme.d.ts +44 -121
  143. package/dist/esm/button/theme.d.ts.map +1 -1
  144. package/dist/esm/button/theme.js +58 -135
  145. package/dist/esm/buttonGroup/buttonGroup.d.ts.map +1 -1
  146. package/dist/esm/buttonGroup/buttonGroup.js +6 -6
  147. package/dist/esm/buttonGroup/buttonGroup.types.d.ts +3 -2
  148. package/dist/esm/buttonGroup/buttonGroup.types.d.ts.map +1 -1
  149. package/dist/esm/buttonGroup/helpers.d.ts.map +1 -1
  150. package/dist/esm/buttonGroup/helpers.js +3 -2
  151. package/dist/esm/buttonToggleGroup/buttonToggleGroup.d.ts.map +1 -1
  152. package/dist/esm/buttonToggleGroup/buttonToggleGroup.js +1 -1
  153. package/dist/esm/checkbox/checkbox.js +1 -1
  154. package/dist/esm/copyToClipboard/copyToClipboard.js +1 -1
  155. package/dist/esm/core/media.d.ts +8 -15
  156. package/dist/esm/core/media.d.ts.map +1 -1
  157. package/dist/esm/core/media.js +38 -19
  158. package/dist/esm/core/vuiProvider/globalStyle.d.ts.map +1 -1
  159. package/dist/esm/core/vuiProvider/globalStyle.js +38 -55
  160. package/dist/esm/footer/footerTrademark.js +1 -1
  161. package/dist/esm/header/header.d.ts.map +1 -1
  162. package/dist/esm/header/header.js +3 -3
  163. package/dist/esm/header/headerServices.js +3 -3
  164. package/dist/esm/header/loggedInHeader.js +4 -4
  165. package/dist/esm/header/loggedOutHeader.js +4 -4
  166. package/dist/esm/heading/theme.d.ts +1 -23
  167. package/dist/esm/heading/theme.d.ts.map +1 -1
  168. package/dist/esm/heading/theme.js +7 -29
  169. package/dist/esm/icon/icon.types.d.ts +1 -1
  170. package/dist/esm/icon/icon.types.d.ts.map +1 -1
  171. package/dist/esm/icon/theme.d.ts +0 -5
  172. package/dist/esm/icon/theme.d.ts.map +1 -1
  173. package/dist/esm/icon/theme.js +0 -5
  174. package/dist/esm/index.d.ts +0 -1
  175. package/dist/esm/index.d.ts.map +1 -1
  176. package/dist/esm/index.js +0 -1
  177. package/dist/esm/input/input.js +1 -1
  178. package/dist/esm/input/inputInput.js +1 -1
  179. package/dist/esm/link/link.d.ts.map +1 -1
  180. package/dist/esm/link/link.js +3 -3
  181. package/dist/esm/link/link.types.d.ts +2 -0
  182. package/dist/esm/link/link.types.d.ts.map +1 -1
  183. package/dist/esm/link/theme.d.ts +4 -21
  184. package/dist/esm/link/theme.d.ts.map +1 -1
  185. package/dist/esm/link/theme.js +17 -30
  186. package/dist/esm/list/listItem.d.ts.map +1 -1
  187. package/dist/esm/list/listItem.js +2 -6
  188. package/dist/esm/notification/consts.js +10 -10
  189. package/dist/esm/notification/notification.d.ts.map +1 -1
  190. package/dist/esm/notification/notification.js +9 -11
  191. package/dist/esm/notification/notification.types.d.ts +2 -2
  192. package/dist/esm/notification/notification.types.d.ts.map +1 -1
  193. package/dist/esm/notification/notificationButton.d.ts.map +1 -1
  194. package/dist/esm/notification/notificationButton.js +1 -4
  195. package/dist/esm/notification/notificationIcon.d.ts.map +1 -1
  196. package/dist/esm/notification/notificationIcon.js +2 -3
  197. package/dist/esm/notification/notificationText.d.ts.map +1 -1
  198. package/dist/esm/notification/notificationText.js +1 -1
  199. package/dist/esm/notification/notificationTitle.d.ts +2 -2
  200. package/dist/esm/notification/notificationTitle.d.ts.map +1 -1
  201. package/dist/esm/notification/notificationTitle.js +2 -2
  202. package/dist/esm/notification/theme.d.ts +16 -31
  203. package/dist/esm/notification/theme.d.ts.map +1 -1
  204. package/dist/esm/notification/theme.js +26 -32
  205. package/dist/esm/p/theme.d.ts +8 -0
  206. package/dist/esm/p/theme.d.ts.map +1 -1
  207. package/dist/esm/p/theme.js +11 -3
  208. package/dist/esm/progress/progress.js +1 -1
  209. package/dist/esm/select/select.js +1 -1
  210. package/dist/esm/select/selectButton.js +1 -1
  211. package/dist/esm/select/theme.js +4 -4
  212. package/dist/esm/t/theme.d.ts +1 -10
  213. package/dist/esm/t/theme.d.ts.map +1 -1
  214. package/dist/esm/t/theme.js +1 -10
  215. package/dist/esm/table/tbody.d.ts.map +1 -1
  216. package/dist/esm/table/tbody.js +0 -4
  217. package/dist/esm/table/theme.d.ts +0 -5
  218. package/dist/esm/table/theme.d.ts.map +1 -1
  219. package/dist/esm/table/theme.js +1 -6
  220. package/dist/esm/tabs/tabs.types.d.ts +2 -2
  221. package/dist/esm/tabs/tabs.types.d.ts.map +1 -1
  222. package/dist/esm/tabs/tabsNavBar.d.ts.map +1 -1
  223. package/dist/esm/tabs/tabsNavBar.js +4 -12
  224. package/dist/esm/tabs/theme.d.ts +4 -40
  225. package/dist/esm/tabs/theme.d.ts.map +1 -1
  226. package/dist/esm/tabs/theme.js +4 -41
  227. package/dist/esm/tag/tag.d.ts.map +1 -1
  228. package/dist/esm/tag/tag.js +6 -9
  229. package/dist/esm/tag/tag.types.d.ts +2 -3
  230. package/dist/esm/tag/tag.types.d.ts.map +1 -1
  231. package/dist/esm/tag/tagButton.js +1 -3
  232. package/dist/esm/tag/theme.d.ts +32 -178
  233. package/dist/esm/tag/theme.d.ts.map +1 -1
  234. package/dist/esm/tag/theme.js +65 -182
  235. package/dist/esm/textarea/textarea.js +1 -1
  236. package/dist/esm/theme/components.d.ts +39 -497
  237. package/dist/esm/theme/components.d.ts.map +1 -1
  238. package/dist/esm/theme/components.js +0 -2
  239. package/dist/esm/theme/defaultTheme.d.ts +47 -795
  240. package/dist/esm/theme/defaultTheme.d.ts.map +1 -1
  241. package/dist/esm/theme/foundations/colors.d.ts +0 -523
  242. package/dist/esm/theme/foundations/colors.d.ts.map +1 -1
  243. package/dist/esm/theme/foundations/colors.js +0 -365
  244. package/dist/esm/theme/foundations/fontWeights.d.ts +1 -0
  245. package/dist/esm/theme/foundations/fontWeights.d.ts.map +1 -1
  246. package/dist/esm/theme/foundations/fontWeights.js +2 -1
  247. package/dist/esm/theme/foundations/index.d.ts +2 -292
  248. package/dist/esm/theme/foundations/index.d.ts.map +1 -1
  249. package/dist/esm/theme/foundations/radii.d.ts +0 -5
  250. package/dist/esm/theme/foundations/radii.d.ts.map +1 -1
  251. package/dist/esm/theme/foundations/radii.js +3 -8
  252. package/dist/esm/theme/foundations/screens.d.ts +1 -0
  253. package/dist/esm/theme/foundations/screens.d.ts.map +1 -1
  254. package/dist/esm/theme/foundations/screens.js +6 -4
  255. package/dist/esm/toast/toast.d.ts.map +1 -1
  256. package/dist/esm/toast/toast.js +1 -1
  257. package/dist/esm/toast/useToast.d.ts.map +1 -1
  258. package/dist/esm/toast/useToast.js +1 -1
  259. package/dist/esm/tutorial/tutorialCard.d.ts.map +1 -1
  260. package/dist/esm/tutorial/tutorialCard.js +3 -3
  261. package/package.json +1 -1
  262. package/src/accordion/accordion.tsx +8 -2
  263. package/src/avatar/avatar.tsx +1 -1
  264. package/src/button/button.tsx +28 -19
  265. package/src/button/button.types.ts +8 -4
  266. package/src/button/buttons.tsx +8 -8
  267. package/src/button/consts.ts +3 -3
  268. package/src/button/theme.ts +71 -143
  269. package/src/buttonGroup/buttonGroup.tsx +9 -6
  270. package/src/buttonGroup/buttonGroup.types.ts +3 -2
  271. package/src/buttonGroup/helpers.ts +4 -2
  272. package/src/buttonToggleGroup/buttonToggleGroup.tsx +2 -0
  273. package/src/checkbox/checkbox.tsx +1 -1
  274. package/src/copyToClipboard/copyToClipboard.tsx +1 -1
  275. package/src/core/media.tsx +48 -26
  276. package/src/core/vuiProvider/globalStyle.tsx +38 -55
  277. package/src/footer/footerTrademark.tsx +1 -1
  278. package/src/header/header.tsx +3 -3
  279. package/src/header/headerServices.tsx +5 -5
  280. package/src/header/loggedInHeader.tsx +6 -6
  281. package/src/header/loggedOutHeader.tsx +6 -6
  282. package/src/heading/theme.ts +7 -29
  283. package/src/icon/icon.types.ts +1 -1
  284. package/src/icon/theme.ts +0 -5
  285. package/src/index.ts +0 -1
  286. package/src/input/input.tsx +1 -1
  287. package/src/input/inputInput.tsx +1 -1
  288. package/src/link/link.tsx +3 -2
  289. package/src/link/link.types.ts +2 -0
  290. package/src/link/theme.ts +20 -30
  291. package/src/list/listItem.tsx +2 -6
  292. package/src/notification/consts.ts +10 -10
  293. package/src/notification/notification.tsx +11 -17
  294. package/src/notification/notification.types.ts +2 -2
  295. package/src/notification/notificationButton.tsx +5 -10
  296. package/src/notification/notificationIcon.tsx +3 -6
  297. package/src/notification/notificationText.tsx +1 -2
  298. package/src/notification/notificationTitle.tsx +9 -3
  299. package/src/notification/theme.ts +34 -32
  300. package/src/p/theme.ts +11 -3
  301. package/src/progress/progress.tsx +1 -1
  302. package/src/select/select.tsx +1 -1
  303. package/src/select/selectButton.tsx +1 -1
  304. package/src/select/theme.ts +4 -4
  305. package/src/t/theme.ts +1 -10
  306. package/src/table/tbody.tsx +0 -4
  307. package/src/table/theme.ts +1 -6
  308. package/src/tabs/tabs.types.ts +2 -2
  309. package/src/tabs/tabsNavBar.tsx +6 -23
  310. package/src/tabs/theme.ts +4 -41
  311. package/src/tag/tag.tsx +10 -11
  312. package/src/tag/tag.types.ts +31 -32
  313. package/src/tag/tagButton.tsx +2 -2
  314. package/src/tag/theme.ts +80 -183
  315. package/src/textarea/textarea.tsx +1 -1
  316. package/src/theme/components.ts +0 -2
  317. package/src/theme/foundations/colors.ts +0 -401
  318. package/src/theme/foundations/fontWeights.ts +2 -1
  319. package/src/theme/foundations/radii.ts +3 -8
  320. package/src/theme/foundations/screens.ts +6 -4
  321. package/src/toast/toast.tsx +1 -0
  322. package/src/toast/useToast.tsx +1 -2
  323. package/src/tutorial/tutorialCard.tsx +3 -10
  324. package/dist/cjs/badge/badge.d.ts +0 -9
  325. package/dist/cjs/badge/badge.d.ts.map +0 -1
  326. package/dist/cjs/badge/badge.js +0 -35
  327. package/dist/cjs/badge/badge.types.d.ts +0 -17
  328. package/dist/cjs/badge/badge.types.d.ts.map +0 -1
  329. package/dist/cjs/badge/badge.types.js +0 -2
  330. package/dist/cjs/badge/index.d.ts +0 -3
  331. package/dist/cjs/badge/index.d.ts.map +0 -1
  332. package/dist/cjs/badge/index.js +0 -23
  333. package/dist/cjs/badge/theme.d.ts +0 -130
  334. package/dist/cjs/badge/theme.d.ts.map +0 -1
  335. package/dist/cjs/badge/theme.js +0 -135
  336. package/dist/cjs/onedesign-tokens/dist/js/es6/rem/button.d.ts +0 -85
  337. package/dist/cjs/onedesign-tokens/dist/js/es6/rem/button.d.ts.map +0 -1
  338. package/dist/cjs/onedesign-tokens/dist/js/es6/rem/button.js +0 -88
  339. package/dist/esm/badge/badge.d.ts +0 -9
  340. package/dist/esm/badge/badge.d.ts.map +0 -1
  341. package/dist/esm/badge/badge.js +0 -17
  342. package/dist/esm/badge/badge.types.d.ts +0 -17
  343. package/dist/esm/badge/badge.types.d.ts.map +0 -1
  344. package/dist/esm/badge/badge.types.js +0 -1
  345. package/dist/esm/badge/index.d.ts +0 -3
  346. package/dist/esm/badge/index.d.ts.map +0 -1
  347. package/dist/esm/badge/index.js +0 -2
  348. package/dist/esm/badge/theme.d.ts +0 -130
  349. package/dist/esm/badge/theme.d.ts.map +0 -1
  350. package/dist/esm/badge/theme.js +0 -133
  351. package/dist/esm/onedesign-tokens/dist/js/es6/rem/button.d.ts +0 -85
  352. package/dist/esm/onedesign-tokens/dist/js/es6/rem/button.d.ts.map +0 -1
  353. package/dist/esm/onedesign-tokens/dist/js/es6/rem/button.js +0 -84
  354. package/src/badge/badge.tsx +0 -36
  355. package/src/badge/badge.types.ts +0 -17
  356. package/src/badge/index.ts +0 -2
  357. package/src/badge/theme.ts +0 -140
  358. package/src/onedesign-tokens/dist/js/es6/rem/button.js +0 -85
@@ -1,6 +1,6 @@
1
1
  import React, { useRef, useState } from 'react'
2
2
 
3
- import { styled, useDown, useLinks, useStyleConfig, useUp, vui, VuiComponent } from '../core'
3
+ import { styled, useLinks, useStyleConfig, useUp, vui, VuiComponent } from '../core'
4
4
  import { cs, useClickOutside } from '../utils'
5
5
  import { HeaderProvider } from './context'
6
6
  import { HeaderProps } from './header.types'
@@ -41,8 +41,8 @@ export const Header = vui<'header', HeaderProps>((props, ref) => {
41
41
  setIsMobileOpen(false)
42
42
  })
43
43
 
44
- const isDesktop = useUp('md')
45
- const isMobile = useDown('md')
44
+ const isDesktop = useUp('lg')
45
+ const isMobile = !isDesktop
46
46
 
47
47
  const context = {
48
48
  headerHeight,
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
 
3
- import { RenderOnDesktop, RenderOnMobile, useStyleConfig } from '../core'
3
+ import { RenderOnScreen, useStyleConfig } from '../core'
4
4
  import List from '../list'
5
5
  import Menu from '../menu'
6
6
  import { useHeaderContext } from './context'
@@ -31,7 +31,7 @@ export function HeaderServices(props: HeaderServicesProps) {
31
31
 
32
32
  return (
33
33
  <>
34
- <RenderOnDesktop>
34
+ <RenderOnScreen minWidth="lg">
35
35
  <Menu isLazy={false} offset={[0, 8]} placement="bottom-end" size="lg" {...rest}>
36
36
  <Menu.Button
37
37
  colorScheme="prussian"
@@ -46,13 +46,13 @@ export function HeaderServices(props: HeaderServicesProps) {
46
46
  <ListContent links={links} />
47
47
  </Menu.List>
48
48
  </Menu>
49
- </RenderOnDesktop>
49
+ </RenderOnScreen>
50
50
 
51
- <RenderOnMobile>
51
+ <RenderOnScreen maxWidth="lg">
52
52
  <List borderBottom="1px solid grey.40" heading="My Services" {...styles.list}>
53
53
  <ListContent links={links} />
54
54
  </List>
55
- </RenderOnMobile>
55
+ </RenderOnScreen>
56
56
  </>
57
57
  )
58
58
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
 
3
3
  import Box from '../box'
4
- import { RenderOnDesktop, RenderOnMobile, vui } from '../core'
4
+ import { RenderOnScreen, vui } from '../core'
5
5
  import { cs, isJsx } from '../utils'
6
6
  import Header from './header'
7
7
  import { LoggedInHeaderProps } from './header.types'
@@ -15,23 +15,23 @@ export const LoggedInHeader = vui<'div', LoggedInHeaderProps>((props, ref) => {
15
15
  <Header.Content>
16
16
  {isJsx(logo) ? logo : <Header.Logo {...logo} />}
17
17
 
18
- <RenderOnDesktop>{children}</RenderOnDesktop>
18
+ <RenderOnScreen minWidth="lg">{children}</RenderOnScreen>
19
19
 
20
20
  <Box ml="auto" />
21
21
 
22
- <RenderOnDesktop>
22
+ <RenderOnScreen minWidth="lg">
23
23
  {isJsx(mainLinks) ? mainLinks : <Header.MainLinks links={mainLinks} />}
24
24
 
25
25
  {mainLinks !== undefined && <Header.Divider mx={1} />}
26
26
 
27
27
  {isJsx(services) ? services : <Header.Services {...services} />}
28
- </RenderOnDesktop>
28
+ </RenderOnScreen>
29
29
 
30
30
  {isJsx(notifications) ? notifications : <Header.Notifications {...notifications} />}
31
31
 
32
32
  {isJsx(account) ? account : <Header.Account {...account} />}
33
33
 
34
- <RenderOnMobile>
34
+ <RenderOnScreen maxWidth="lg">
35
35
  {(account !== undefined || notifications !== undefined) && <Header.Divider ml={2} />}
36
36
 
37
37
  <Header.MobileToggle />
@@ -43,7 +43,7 @@ export const LoggedInHeader = vui<'div', LoggedInHeaderProps>((props, ref) => {
43
43
 
44
44
  {isJsx(services) ? services : <Header.Services {...services} />}
45
45
  </Header.MobileContent>
46
- </RenderOnMobile>
46
+ </RenderOnScreen>
47
47
  </Header.Content>
48
48
  </Header>
49
49
  )
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
 
3
3
  import Box from '../box'
4
- import { RenderOnDesktop, RenderOnMobile, vui } from '../core'
4
+ import { RenderOnScreen, vui } from '../core'
5
5
  import { cs, isJsx } from '../utils'
6
6
  import Header from './header'
7
7
  import { LoggedOutHeaderProps } from './header.types'
@@ -15,11 +15,11 @@ export const LoggedOutHeader = vui<'div', LoggedOutHeaderProps>((props, ref) =>
15
15
  <Header.Content>
16
16
  {isJsx(logo) ? logo : <Header.Logo {...logo} />}
17
17
 
18
- <RenderOnDesktop>{children}</RenderOnDesktop>
18
+ <RenderOnScreen minWidth="lg">{children}</RenderOnScreen>
19
19
 
20
20
  <Box ml="auto" />
21
21
 
22
- <RenderOnDesktop>
22
+ <RenderOnScreen minWidth="lg">
23
23
  {isJsx(mainLinks) ? mainLinks : <Header.MainLinks links={mainLinks} />}
24
24
 
25
25
  {mainLinks !== undefined && <Header.Divider ml={1} mr={3} />}
@@ -27,9 +27,9 @@ export const LoggedOutHeader = vui<'div', LoggedOutHeaderProps>((props, ref) =>
27
27
  {isJsx(signIn) ? signIn : <Header.SignIn {...signIn} />}
28
28
 
29
29
  {isJsx(createAccount) ? createAccount : <Header.CreateAccount {...createAccount} />}
30
- </RenderOnDesktop>
30
+ </RenderOnScreen>
31
31
 
32
- <RenderOnMobile>
32
+ <RenderOnScreen maxWidth="lg">
33
33
  {isJsx(signIn) ? signIn : <Header.SignIn {...signIn} />}
34
34
 
35
35
  <Header.Divider ml={2} />
@@ -43,7 +43,7 @@ export const LoggedOutHeader = vui<'div', LoggedOutHeaderProps>((props, ref) =>
43
43
 
44
44
  {isJsx(mainLinks) ? mainLinks : <Header.MainLinks links={mainLinks} />}
45
45
  </Header.MobileContent>
46
- </RenderOnMobile>
46
+ </RenderOnScreen>
47
47
  </Header.Content>
48
48
  </Header>
49
49
  )
@@ -1,61 +1,39 @@
1
- const baseStyle = {
2
- color: 'darkBlue.18'
3
- }
1
+ const baseStyle = {}
4
2
 
5
3
  const defaultProps = {
6
4
  size: 'h2'
7
5
  }
8
6
 
9
7
  const sizes = {
10
- title: {
11
- as: 'h1',
12
- fontFamily: 'DNV Display',
13
- fontSize: '64px',
14
- fontWeight: 'medium',
15
- lineHeight: '74px'
16
- },
17
8
  h1: {
18
9
  as: 'h1',
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'
10
+ fontSize: '40px',
11
+ lineHeight: '52px'
29
12
  },
30
13
  h2: {
31
14
  as: 'h2',
32
15
  fontSize: '32px',
33
- fontWeight: 'regular',
34
- lineHeight: '42px'
16
+ lineHeight: '40px'
35
17
  },
36
18
  h3: {
37
19
  as: 'h3',
38
20
  fontSize: '24px',
39
- fontWeight: 'regular',
40
21
  lineHeight: '32px'
41
22
  },
42
23
  h4: {
43
24
  as: 'h4',
44
25
  fontSize: '20px',
45
- fontWeight: 'demi',
46
- lineHeight: '24px'
26
+ lineHeight: '28px'
47
27
  },
48
28
  h5: {
49
29
  as: 'h5',
50
30
  fontSize: '18px',
51
- fontWeight: 'demi',
52
- lineHeight: '26px'
31
+ lineHeight: '24px'
53
32
  },
54
33
  h6: {
55
34
  as: 'h6',
56
35
  fontSize: '16px',
57
- fontWeight: 'demi',
58
- lineHeight: '22px'
36
+ lineHeight: '20px'
59
37
  }
60
38
  }
61
39
 
@@ -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 amount of degrees clockwise. */
23
+ /** Rotates the icon by given amout 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,11 +20,6 @@ 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
28
23
  }
29
24
  }
30
25
 
package/src/index.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export * from './accordion'
2
2
  export * from './avatar'
3
- export * from './badge'
4
3
  export * from './box'
5
4
  export * from './breadcrumbs'
6
5
  export * from './button'
@@ -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: none;
17
+ border-radius: md;
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: none;
12
+ border-radius: md;
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: none;
12
+ border-radius: sm;
13
13
  cursor: pointer;
14
14
  display: inline-flex;
15
15
  line-height: normal;
@@ -27,6 +27,7 @@ export const Link = vui<'a', LinkProps>((props, ref) => {
27
27
  const {
28
28
  children,
29
29
  className,
30
+ colorScheme,
30
31
  decoration,
31
32
  hoverDecoration = 'underline',
32
33
  iconLeft,
@@ -41,7 +42,7 @@ export const Link = vui<'a', LinkProps>((props, ref) => {
41
42
  } = props
42
43
  const styles = useStyleConfig('Link', props)
43
44
 
44
- const context = useMemo(() => filterUndefined({ size, variant }), [size, variant])
45
+ const context = useMemo(() => filterUndefined({ colorScheme, size, variant }), [colorScheme, size, variant])
45
46
 
46
47
  const aliasedProps = filterUndefined({
47
48
  fontWeight: weight,
@@ -4,6 +4,8 @@ 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'
7
9
  /** Alias for textDecoration prop. @deprecated */
8
10
  decoration?: TypographyProps['textDecoration']
9
11
  /** Alias for hoverTextDecoration prop. @deprecated */
package/src/link/theme.ts CHANGED
@@ -1,25 +1,27 @@
1
- function variantDefault() {
2
- const container = {
3
- color: `seaBlue.28`,
4
- hoverColor: `seaBlue.28`
5
- }
1
+ import { Dict } from '../utils'
6
2
 
7
- return { container }
8
- }
3
+ function variantDefault(props: Dict) {
4
+ const { colorScheme: c } = props
9
5
 
10
- function variantWhite() {
11
6
  const container = {
12
- color: `white`,
13
- hoverColor: `white`
7
+ color: `${c}.80`,
8
+ hoverColor: `${c}.60`
9
+ }
10
+
11
+ if (c === 'white') {
12
+ container.color = 'white'
13
+ container.hoverColor = 'white'
14
14
  }
15
15
 
16
16
  return { container }
17
17
  }
18
18
 
19
- function variantLight() {
19
+ function variantLight(props: Dict) {
20
+ const { colorScheme: c } = props
21
+
20
22
  const container = {
21
- color: `seaBlue.28`,
22
- hoverColor: `seaBlue.28`
23
+ color: `${c}.60`,
24
+ hoverColor: `${c}.40`
23
25
  }
24
26
 
25
27
  return { container }
@@ -34,6 +36,7 @@ const variantPlain = {
34
36
  const baseStyle = {}
35
37
 
36
38
  const defaultProps = {
39
+ colorScheme: 'blue',
37
40
  size: 'md',
38
41
  variant: 'default'
39
42
  }
@@ -43,8 +46,7 @@ const parts = ['container', 'icon', 'text']
43
46
  const sizes = {
44
47
  sm: {
45
48
  container: {
46
- fontSize: 'xs',
47
- lineHeight: '16px'
49
+ fontSize: 'sm'
48
50
  },
49
51
  icon: {
50
52
  size: 'xs'
@@ -52,8 +54,7 @@ const sizes = {
52
54
  },
53
55
  md: {
54
56
  container: {
55
- fontSize: 'sm',
56
- lineHeight: '20px'
57
+ fontSize: 'md'
57
58
  },
58
59
  icon: {
59
60
  size: 'xs'
@@ -61,17 +62,7 @@ const sizes = {
61
62
  },
62
63
  lg: {
63
64
  container: {
64
- fontSize: 'md',
65
- lineHeight: '24px'
66
- },
67
- icon: {
68
- size: 'sm'
69
- }
70
- },
71
- xl: {
72
- container: {
73
- fontSize: 'lg',
74
- lineHeight: '28px'
65
+ fontSize: 'lg'
75
66
  },
76
67
  icon: {
77
68
  size: 'sm'
@@ -82,8 +73,7 @@ const sizes = {
82
73
  const variants = {
83
74
  default: variantDefault,
84
75
  light: variantLight,
85
- plain: variantPlain,
86
- white: variantWhite
76
+ plain: variantPlain
87
77
  }
88
78
 
89
79
  export default {
@@ -29,15 +29,11 @@ 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
- }
41
37
  `
42
38
 
43
39
  /**
@@ -2,35 +2,35 @@ import { NotificationStatusMapping } from './notification.types'
2
2
 
3
3
  export const notificationStatusMapping: NotificationStatusMapping = {
4
4
  error: {
5
+ colorScheme: 'red',
5
6
  iconProps: {
6
7
  name: 'falTimesCircle'
7
- },
8
- variant: 'subtleRed'
8
+ }
9
9
  },
10
10
  info: {
11
+ colorScheme: 'blue',
11
12
  iconProps: {
12
13
  name: 'falInfoCircle'
13
- },
14
- variant: 'subtleBlue'
14
+ }
15
15
  },
16
16
  loading: {
17
+ colorScheme: 'blue',
17
18
  iconProps: {
18
19
  animation: 'vui-spin 0.6s linear infinite',
19
20
  name: 'fadSpinnerThird',
20
21
  pathFill: ['blue.40', 'blue.60']
21
- },
22
- variant: 'subtleBlue'
22
+ }
23
23
  },
24
24
  success: {
25
+ colorScheme: 'green',
25
26
  iconProps: {
26
27
  name: 'falCheckCircle'
27
- },
28
- variant: 'subtleGreen'
28
+ }
29
29
  },
30
30
  warning: {
31
+ colorScheme: 'yellow',
31
32
  iconProps: {
32
33
  name: 'falExclamationCircle'
33
- },
34
- variant: 'subtleYellow'
34
+ }
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,
23
+ colorScheme: colorSchemeProp = 'blue',
24
24
  icon,
25
25
  onClose,
26
26
  size,
@@ -28,46 +28,40 @@ export const Notification = vui<'div', NotificationProps>((props, ref) => {
28
28
  statusMapping,
29
29
  text,
30
30
  title,
31
- variant: variantProp = 'subtleBlue',
32
- verticalAlign,
31
+ variant,
33
32
  ...rest
34
33
  } = props
35
34
  const statuses = { ...notificationStatusMapping, ...statusMapping }
36
- const { variant = variantProp } = statuses[status ?? ''] ?? {}
37
- const styles = useStyleConfig('Notification', { variant, ...props })
35
+ const { colorScheme = colorSchemeProp } = statuses[status ?? ''] ?? {}
36
+ const styles = useStyleConfig('Notification', { colorScheme, ...props })
38
37
 
39
38
  const iconName = isString(icon) ? icon : statuses[status ?? '']?.iconProps?.name
40
39
 
41
- const context = filterUndefined<NotificationProps>({ size, status })
42
-
43
- const titleDisplay = action ? 'block' : 'inline-flex'
44
-
45
- const alignSelf = verticalAlign === 'center' ? 'center' : 'flex-start'
40
+ const context = filterUndefined<NotificationProps>({ colorScheme, size, status, variant })
46
41
 
47
42
  return (
48
43
  <NotificationProvider value={context}>
49
44
  <Box
50
45
  borderRadius="md"
51
- borderWidth={1}
52
46
  className={cs('vui-notification', className)}
47
+ px={1.5}
48
+ py={1}
53
49
  ref={ref}
54
50
  w="fit-content"
55
51
  {...styles.container}
56
52
  {...rest}
57
53
  >
58
- {iconName ? <NotificationIcon alignSelf={alignSelf} name={iconName} /> : icon}
54
+ {iconName ? <NotificationIcon name={iconName} /> : icon}
59
55
 
60
56
  {children ?? (
61
- <NotificationText alignSelf={alignSelf}>
62
- {isReactText(title) ? <NotificationTitle display={titleDisplay} text={title} /> : title} {text}
57
+ <NotificationText>
58
+ {isReactText(title) ? <NotificationTitle text={title} /> : title} {text}
63
59
  </NotificationText>
64
60
  )}
65
61
 
66
62
  {action}
67
63
 
68
- {onClose && (
69
- <NotificationButton alignSelf={alignSelf} icon="falTimes" onClick={onClose} variant={variant} w="32px" />
70
- )}
64
+ {onClose && <NotificationButton icon="falTimes" onClick={onClose} />}
71
65
  </Box>
72
66
  </NotificationProvider>
73
67
  )
@@ -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. @deprecated */
11
+ /** Available theme colors for this component. @default blue */
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']
32
33
  iconProps: IconProps
33
- variant?: NotificationProps['variant']
34
34
  }
35
35
  >
@@ -3,7 +3,6 @@ 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'
7
6
  import { useNotificationContext } from './context'
8
7
 
9
8
  /** Displays an action button within the Notification. */
@@ -12,20 +11,16 @@ export const NotificationButton = vui<'button', ButtonProps>((props, ref) => {
12
11
  const mergedProps = { ...useNotificationContext(), ...props }
13
12
  const styles = useStyleConfig('Notification', useNotificationContext())
14
13
 
15
- const { status = '' } = mergedProps
16
- const { variant } = notificationStatusMapping[status] ?? {}
17
-
18
14
  return (
19
15
  <Button
20
16
  className={cs('vui-notificationButton', className)}
21
- ml="0px"
22
- mr="16px"
23
- my="16px"
24
- px="12px"
25
- py="6px"
17
+ colorScheme={mergedProps.colorScheme}
18
+ ml={1}
19
+ mr={-0.5}
26
20
  ref={ref}
21
+ size="sm"
22
+ variant="text"
27
23
  {...styles.button}
28
- variant={variant}
29
24
  {...rest}
30
25
  />
31
26
  )
@@ -8,21 +8,18 @@ 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, alignSelf, ...rest } = props
11
+ const { className, ...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
-
20
18
  return (
21
19
  <Icon
22
- alignSelf={alignSelf}
23
20
  className={cs('vui-notificationIcon', className)}
24
- ml="16px"
25
- mt={marginTop}
21
+ mr={1}
22
+ my={0.5}
26
23
  ref={ref}
27
24
  size="md"
28
25
  {...styles.icon}
@@ -16,8 +16,7 @@ export const NotificationText = vui<'p', TProps>((props, ref) => {
16
16
  flex="1"
17
17
  lineHeight="24px"
18
18
  minW={0}
19
- mx="16px"
20
- my="16px"
19
+ py={0.5}
21
20
  ref={ref}
22
21
  {...styles.text}
23
22
  {...rest}
@@ -1,17 +1,23 @@
1
1
  import React from 'react'
2
2
 
3
3
  import { useStyleConfig, vui } from '../core'
4
- import { T, TProps } from '../t'
4
+ import { H6, HeadingProps } from '../heading'
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<'span', TProps>((props, ref) => {
9
+ export const NotificationTitle = vui<'h6', HeadingProps>((props, ref) => {
10
10
  const { className, ...rest } = props
11
11
  const styles = useStyleConfig('Notification', useNotificationContext())
12
12
 
13
13
  return (
14
- <T className={cs('vui-notificationTitle', className)} fontWeight="demi" ref={ref} {...styles.title} {...rest} />
14
+ <H6
15
+ className={cs('vui-notificationTitle', className)}
16
+ display="inline-flex"
17
+ ref={ref}
18
+ {...styles.title}
19
+ {...rest}
20
+ />
15
21
  )
16
22
  })
17
23