@veracity/vui 1.8.0-redesign.0 → 1.8.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 (369) 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.d.ts.map +1 -1
  48. package/dist/cjs/input/input.js +15 -9
  49. package/dist/cjs/input/inputInput.js +1 -1
  50. package/dist/cjs/link/link.d.ts.map +1 -1
  51. package/dist/cjs/link/link.js +3 -3
  52. package/dist/cjs/link/link.types.d.ts +2 -0
  53. package/dist/cjs/link/link.types.d.ts.map +1 -1
  54. package/dist/cjs/link/theme.d.ts +4 -21
  55. package/dist/cjs/link/theme.d.ts.map +1 -1
  56. package/dist/cjs/link/theme.js +17 -30
  57. package/dist/cjs/list/listItem.d.ts.map +1 -1
  58. package/dist/cjs/list/listItem.js +2 -6
  59. package/dist/cjs/notification/consts.js +10 -10
  60. package/dist/cjs/notification/notification.d.ts.map +1 -1
  61. package/dist/cjs/notification/notification.js +8 -10
  62. package/dist/cjs/notification/notification.types.d.ts +2 -2
  63. package/dist/cjs/notification/notification.types.d.ts.map +1 -1
  64. package/dist/cjs/notification/notificationButton.d.ts.map +1 -1
  65. package/dist/cjs/notification/notificationButton.js +1 -5
  66. package/dist/cjs/notification/notificationIcon.d.ts.map +1 -1
  67. package/dist/cjs/notification/notificationIcon.js +2 -3
  68. package/dist/cjs/notification/notificationText.d.ts.map +1 -1
  69. package/dist/cjs/notification/notificationText.js +1 -1
  70. package/dist/cjs/notification/notificationTitle.d.ts +2 -2
  71. package/dist/cjs/notification/notificationTitle.d.ts.map +1 -1
  72. package/dist/cjs/notification/notificationTitle.js +2 -2
  73. package/dist/cjs/notification/theme.d.ts +16 -31
  74. package/dist/cjs/notification/theme.d.ts.map +1 -1
  75. package/dist/cjs/notification/theme.js +26 -32
  76. package/dist/cjs/p/theme.d.ts +8 -0
  77. package/dist/cjs/p/theme.d.ts.map +1 -1
  78. package/dist/cjs/p/theme.js +11 -3
  79. package/dist/cjs/progress/progress.js +1 -1
  80. package/dist/cjs/select/select.js +1 -1
  81. package/dist/cjs/select/selectButton.js +1 -1
  82. package/dist/cjs/select/theme.js +4 -4
  83. package/dist/cjs/t/theme.d.ts +1 -10
  84. package/dist/cjs/t/theme.d.ts.map +1 -1
  85. package/dist/cjs/t/theme.js +1 -10
  86. package/dist/cjs/table/tbody.d.ts.map +1 -1
  87. package/dist/cjs/table/tbody.js +0 -4
  88. package/dist/cjs/table/theme.d.ts +0 -5
  89. package/dist/cjs/table/theme.d.ts.map +1 -1
  90. package/dist/cjs/table/theme.js +1 -6
  91. package/dist/cjs/tabs/tabs.types.d.ts +2 -2
  92. package/dist/cjs/tabs/tabs.types.d.ts.map +1 -1
  93. package/dist/cjs/tabs/tabsNavBar.d.ts.map +1 -1
  94. package/dist/cjs/tabs/tabsNavBar.js +5 -13
  95. package/dist/cjs/tabs/theme.d.ts +4 -40
  96. package/dist/cjs/tabs/theme.d.ts.map +1 -1
  97. package/dist/cjs/tabs/theme.js +4 -41
  98. package/dist/cjs/tag/tag.d.ts.map +1 -1
  99. package/dist/cjs/tag/tag.js +6 -9
  100. package/dist/cjs/tag/tag.types.d.ts +2 -3
  101. package/dist/cjs/tag/tag.types.d.ts.map +1 -1
  102. package/dist/cjs/tag/tagButton.js +1 -3
  103. package/dist/cjs/tag/theme.d.ts +32 -178
  104. package/dist/cjs/tag/theme.d.ts.map +1 -1
  105. package/dist/cjs/tag/theme.js +65 -182
  106. package/dist/cjs/textarea/consts.d.ts +4 -0
  107. package/dist/cjs/textarea/consts.d.ts.map +1 -0
  108. package/dist/cjs/textarea/consts.js +6 -0
  109. package/dist/cjs/textarea/textarea.d.ts.map +1 -1
  110. package/dist/cjs/textarea/textarea.js +16 -9
  111. package/dist/cjs/theme/components.d.ts +39 -497
  112. package/dist/cjs/theme/components.d.ts.map +1 -1
  113. package/dist/cjs/theme/components.js +70 -72
  114. package/dist/cjs/theme/defaultTheme.d.ts +47 -795
  115. package/dist/cjs/theme/defaultTheme.d.ts.map +1 -1
  116. package/dist/cjs/theme/foundations/colors.d.ts +0 -523
  117. package/dist/cjs/theme/foundations/colors.d.ts.map +1 -1
  118. package/dist/cjs/theme/foundations/colors.js +1 -389
  119. package/dist/cjs/theme/foundations/fontWeights.d.ts +1 -0
  120. package/dist/cjs/theme/foundations/fontWeights.d.ts.map +1 -1
  121. package/dist/cjs/theme/foundations/fontWeights.js +2 -1
  122. package/dist/cjs/theme/foundations/index.d.ts +2 -292
  123. package/dist/cjs/theme/foundations/index.d.ts.map +1 -1
  124. package/dist/cjs/theme/foundations/radii.d.ts +0 -5
  125. package/dist/cjs/theme/foundations/radii.d.ts.map +1 -1
  126. package/dist/cjs/theme/foundations/radii.js +3 -8
  127. package/dist/cjs/theme/foundations/screens.d.ts +1 -0
  128. package/dist/cjs/theme/foundations/screens.d.ts.map +1 -1
  129. package/dist/cjs/theme/foundations/screens.js +6 -4
  130. package/dist/cjs/toast/toast.d.ts.map +1 -1
  131. package/dist/cjs/toast/toast.js +5 -2
  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 +7 -1
  137. package/dist/esm/accordion/accordion.d.ts.map +1 -1
  138. package/dist/esm/accordion/accordion.js +2 -0
  139. package/dist/esm/avatar/avatar.js +1 -1
  140. package/dist/esm/button/button.d.ts +1 -1
  141. package/dist/esm/button/button.d.ts.map +1 -1
  142. package/dist/esm/button/button.js +23 -16
  143. package/dist/esm/button/button.types.d.ts +4 -3
  144. package/dist/esm/button/button.types.d.ts.map +1 -1
  145. package/dist/esm/button/buttons.js +8 -8
  146. package/dist/esm/button/consts.js +3 -3
  147. package/dist/esm/button/theme.d.ts +44 -121
  148. package/dist/esm/button/theme.d.ts.map +1 -1
  149. package/dist/esm/button/theme.js +58 -135
  150. package/dist/esm/buttonGroup/buttonGroup.d.ts.map +1 -1
  151. package/dist/esm/buttonGroup/buttonGroup.js +6 -6
  152. package/dist/esm/buttonGroup/buttonGroup.types.d.ts +3 -2
  153. package/dist/esm/buttonGroup/buttonGroup.types.d.ts.map +1 -1
  154. package/dist/esm/buttonGroup/helpers.d.ts.map +1 -1
  155. package/dist/esm/buttonGroup/helpers.js +3 -2
  156. package/dist/esm/buttonToggleGroup/buttonToggleGroup.d.ts.map +1 -1
  157. package/dist/esm/buttonToggleGroup/buttonToggleGroup.js +1 -1
  158. package/dist/esm/checkbox/checkbox.js +1 -1
  159. package/dist/esm/copyToClipboard/copyToClipboard.js +1 -1
  160. package/dist/esm/core/media.d.ts +8 -15
  161. package/dist/esm/core/media.d.ts.map +1 -1
  162. package/dist/esm/core/media.js +38 -19
  163. package/dist/esm/core/vuiProvider/globalStyle.d.ts.map +1 -1
  164. package/dist/esm/core/vuiProvider/globalStyle.js +38 -55
  165. package/dist/esm/footer/footerTrademark.js +1 -1
  166. package/dist/esm/header/header.d.ts.map +1 -1
  167. package/dist/esm/header/header.js +3 -3
  168. package/dist/esm/header/headerServices.js +3 -3
  169. package/dist/esm/header/loggedInHeader.js +4 -4
  170. package/dist/esm/header/loggedOutHeader.js +4 -4
  171. package/dist/esm/heading/theme.d.ts +1 -23
  172. package/dist/esm/heading/theme.d.ts.map +1 -1
  173. package/dist/esm/heading/theme.js +7 -29
  174. package/dist/esm/icon/icon.types.d.ts +1 -1
  175. package/dist/esm/icon/icon.types.d.ts.map +1 -1
  176. package/dist/esm/icon/theme.d.ts +0 -5
  177. package/dist/esm/icon/theme.d.ts.map +1 -1
  178. package/dist/esm/icon/theme.js +0 -5
  179. package/dist/esm/index.d.ts +0 -1
  180. package/dist/esm/index.d.ts.map +1 -1
  181. package/dist/esm/index.js +0 -1
  182. package/dist/esm/input/input.d.ts.map +1 -1
  183. package/dist/esm/input/input.js +16 -11
  184. package/dist/esm/input/inputInput.js +1 -1
  185. package/dist/esm/link/link.d.ts.map +1 -1
  186. package/dist/esm/link/link.js +3 -3
  187. package/dist/esm/link/link.types.d.ts +2 -0
  188. package/dist/esm/link/link.types.d.ts.map +1 -1
  189. package/dist/esm/link/theme.d.ts +4 -21
  190. package/dist/esm/link/theme.d.ts.map +1 -1
  191. package/dist/esm/link/theme.js +17 -30
  192. package/dist/esm/list/listItem.d.ts.map +1 -1
  193. package/dist/esm/list/listItem.js +2 -6
  194. package/dist/esm/notification/consts.js +10 -10
  195. package/dist/esm/notification/notification.d.ts.map +1 -1
  196. package/dist/esm/notification/notification.js +9 -11
  197. package/dist/esm/notification/notification.types.d.ts +2 -2
  198. package/dist/esm/notification/notification.types.d.ts.map +1 -1
  199. package/dist/esm/notification/notificationButton.d.ts.map +1 -1
  200. package/dist/esm/notification/notificationButton.js +1 -4
  201. package/dist/esm/notification/notificationIcon.d.ts.map +1 -1
  202. package/dist/esm/notification/notificationIcon.js +2 -3
  203. package/dist/esm/notification/notificationText.d.ts.map +1 -1
  204. package/dist/esm/notification/notificationText.js +1 -1
  205. package/dist/esm/notification/notificationTitle.d.ts +2 -2
  206. package/dist/esm/notification/notificationTitle.d.ts.map +1 -1
  207. package/dist/esm/notification/notificationTitle.js +2 -2
  208. package/dist/esm/notification/theme.d.ts +16 -31
  209. package/dist/esm/notification/theme.d.ts.map +1 -1
  210. package/dist/esm/notification/theme.js +26 -32
  211. package/dist/esm/p/theme.d.ts +8 -0
  212. package/dist/esm/p/theme.d.ts.map +1 -1
  213. package/dist/esm/p/theme.js +11 -3
  214. package/dist/esm/progress/progress.js +1 -1
  215. package/dist/esm/select/select.js +1 -1
  216. package/dist/esm/select/selectButton.js +1 -1
  217. package/dist/esm/select/theme.js +4 -4
  218. package/dist/esm/t/theme.d.ts +1 -10
  219. package/dist/esm/t/theme.d.ts.map +1 -1
  220. package/dist/esm/t/theme.js +1 -10
  221. package/dist/esm/table/tbody.d.ts.map +1 -1
  222. package/dist/esm/table/tbody.js +0 -4
  223. package/dist/esm/table/theme.d.ts +0 -5
  224. package/dist/esm/table/theme.d.ts.map +1 -1
  225. package/dist/esm/table/theme.js +1 -6
  226. package/dist/esm/tabs/tabs.types.d.ts +2 -2
  227. package/dist/esm/tabs/tabs.types.d.ts.map +1 -1
  228. package/dist/esm/tabs/tabsNavBar.d.ts.map +1 -1
  229. package/dist/esm/tabs/tabsNavBar.js +4 -12
  230. package/dist/esm/tabs/theme.d.ts +4 -40
  231. package/dist/esm/tabs/theme.d.ts.map +1 -1
  232. package/dist/esm/tabs/theme.js +4 -41
  233. package/dist/esm/tag/tag.d.ts.map +1 -1
  234. package/dist/esm/tag/tag.js +6 -9
  235. package/dist/esm/tag/tag.types.d.ts +2 -3
  236. package/dist/esm/tag/tag.types.d.ts.map +1 -1
  237. package/dist/esm/tag/tagButton.js +1 -3
  238. package/dist/esm/tag/theme.d.ts +32 -178
  239. package/dist/esm/tag/theme.d.ts.map +1 -1
  240. package/dist/esm/tag/theme.js +65 -182
  241. package/dist/esm/textarea/consts.d.ts +4 -0
  242. package/dist/esm/textarea/consts.d.ts.map +1 -0
  243. package/dist/esm/textarea/consts.js +3 -0
  244. package/dist/esm/textarea/textarea.d.ts.map +1 -1
  245. package/dist/esm/textarea/textarea.js +16 -10
  246. package/dist/esm/theme/components.d.ts +39 -497
  247. package/dist/esm/theme/components.d.ts.map +1 -1
  248. package/dist/esm/theme/components.js +0 -2
  249. package/dist/esm/theme/defaultTheme.d.ts +47 -795
  250. package/dist/esm/theme/defaultTheme.d.ts.map +1 -1
  251. package/dist/esm/theme/foundations/colors.d.ts +0 -523
  252. package/dist/esm/theme/foundations/colors.d.ts.map +1 -1
  253. package/dist/esm/theme/foundations/colors.js +0 -365
  254. package/dist/esm/theme/foundations/fontWeights.d.ts +1 -0
  255. package/dist/esm/theme/foundations/fontWeights.d.ts.map +1 -1
  256. package/dist/esm/theme/foundations/fontWeights.js +2 -1
  257. package/dist/esm/theme/foundations/index.d.ts +2 -292
  258. package/dist/esm/theme/foundations/index.d.ts.map +1 -1
  259. package/dist/esm/theme/foundations/radii.d.ts +0 -5
  260. package/dist/esm/theme/foundations/radii.d.ts.map +1 -1
  261. package/dist/esm/theme/foundations/radii.js +3 -8
  262. package/dist/esm/theme/foundations/screens.d.ts +1 -0
  263. package/dist/esm/theme/foundations/screens.d.ts.map +1 -1
  264. package/dist/esm/theme/foundations/screens.js +6 -4
  265. package/dist/esm/toast/toast.d.ts.map +1 -1
  266. package/dist/esm/toast/toast.js +5 -2
  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 +8 -2
  273. package/src/avatar/avatar.tsx +1 -1
  274. package/src/button/button.tsx +28 -19
  275. package/src/button/button.types.ts +8 -4
  276. package/src/button/buttons.tsx +8 -8
  277. package/src/button/consts.ts +3 -3
  278. package/src/button/theme.ts +71 -143
  279. package/src/buttonGroup/buttonGroup.tsx +9 -6
  280. package/src/buttonGroup/buttonGroup.types.ts +3 -2
  281. package/src/buttonGroup/helpers.ts +4 -2
  282. package/src/buttonToggleGroup/buttonToggleGroup.tsx +2 -0
  283. package/src/checkbox/checkbox.tsx +1 -1
  284. package/src/copyToClipboard/copyToClipboard.tsx +1 -1
  285. package/src/core/media.tsx +48 -26
  286. package/src/core/vuiProvider/globalStyle.tsx +38 -55
  287. package/src/footer/footerTrademark.tsx +1 -1
  288. package/src/header/header.tsx +3 -3
  289. package/src/header/headerServices.tsx +5 -5
  290. package/src/header/loggedInHeader.tsx +6 -6
  291. package/src/header/loggedOutHeader.tsx +6 -6
  292. package/src/heading/theme.ts +7 -29
  293. package/src/icon/icon.types.ts +1 -1
  294. package/src/icon/theme.ts +0 -5
  295. package/src/index.ts +0 -1
  296. package/src/input/input.tsx +16 -9
  297. package/src/input/inputInput.tsx +1 -1
  298. package/src/link/link.tsx +3 -2
  299. package/src/link/link.types.ts +2 -0
  300. package/src/link/theme.ts +20 -30
  301. package/src/list/listItem.tsx +2 -6
  302. package/src/notification/consts.ts +10 -10
  303. package/src/notification/notification.tsx +11 -17
  304. package/src/notification/notification.types.ts +2 -2
  305. package/src/notification/notificationButton.tsx +5 -10
  306. package/src/notification/notificationIcon.tsx +3 -6
  307. package/src/notification/notificationText.tsx +1 -2
  308. package/src/notification/notificationTitle.tsx +9 -3
  309. package/src/notification/theme.ts +34 -32
  310. package/src/p/theme.ts +11 -3
  311. package/src/progress/progress.tsx +1 -1
  312. package/src/select/select.tsx +1 -1
  313. package/src/select/selectButton.tsx +1 -1
  314. package/src/select/theme.ts +4 -4
  315. package/src/t/theme.ts +1 -10
  316. package/src/table/tbody.tsx +0 -4
  317. package/src/table/theme.ts +1 -6
  318. package/src/tabs/tabs.types.ts +2 -2
  319. package/src/tabs/tabsNavBar.tsx +6 -23
  320. package/src/tabs/theme.ts +4 -41
  321. package/src/tag/tag.tsx +10 -11
  322. package/src/tag/tag.types.ts +31 -32
  323. package/src/tag/tagButton.tsx +2 -2
  324. package/src/tag/theme.ts +80 -183
  325. package/src/textarea/consts.ts +3 -0
  326. package/src/textarea/textarea.tsx +25 -8
  327. package/src/theme/components.ts +0 -2
  328. package/src/theme/foundations/colors.ts +0 -401
  329. package/src/theme/foundations/fontWeights.ts +2 -1
  330. package/src/theme/foundations/radii.ts +3 -8
  331. package/src/theme/foundations/screens.ts +6 -4
  332. package/src/toast/toast.tsx +12 -6
  333. package/src/toast/useToast.tsx +1 -2
  334. package/src/tutorial/tutorialCard.tsx +3 -10
  335. package/dist/cjs/badge/badge.d.ts +0 -9
  336. package/dist/cjs/badge/badge.d.ts.map +0 -1
  337. package/dist/cjs/badge/badge.js +0 -35
  338. package/dist/cjs/badge/badge.types.d.ts +0 -17
  339. package/dist/cjs/badge/badge.types.d.ts.map +0 -1
  340. package/dist/cjs/badge/badge.types.js +0 -2
  341. package/dist/cjs/badge/index.d.ts +0 -3
  342. package/dist/cjs/badge/index.d.ts.map +0 -1
  343. package/dist/cjs/badge/index.js +0 -23
  344. package/dist/cjs/badge/theme.d.ts +0 -130
  345. package/dist/cjs/badge/theme.d.ts.map +0 -1
  346. package/dist/cjs/badge/theme.js +0 -135
  347. package/dist/cjs/onedesign-tokens/dist/js/es6/rem/button.d.ts +0 -85
  348. package/dist/cjs/onedesign-tokens/dist/js/es6/rem/button.d.ts.map +0 -1
  349. package/dist/cjs/onedesign-tokens/dist/js/es6/rem/button.js +0 -88
  350. package/dist/esm/badge/badge.d.ts +0 -9
  351. package/dist/esm/badge/badge.d.ts.map +0 -1
  352. package/dist/esm/badge/badge.js +0 -17
  353. package/dist/esm/badge/badge.types.d.ts +0 -17
  354. package/dist/esm/badge/badge.types.d.ts.map +0 -1
  355. package/dist/esm/badge/badge.types.js +0 -1
  356. package/dist/esm/badge/index.d.ts +0 -3
  357. package/dist/esm/badge/index.d.ts.map +0 -1
  358. package/dist/esm/badge/index.js +0 -2
  359. package/dist/esm/badge/theme.d.ts +0 -130
  360. package/dist/esm/badge/theme.d.ts.map +0 -1
  361. package/dist/esm/badge/theme.js +0 -133
  362. package/dist/esm/onedesign-tokens/dist/js/es6/rem/button.d.ts +0 -85
  363. package/dist/esm/onedesign-tokens/dist/js/es6/rem/button.d.ts.map +0 -1
  364. package/dist/esm/onedesign-tokens/dist/js/es6/rem/button.js +0 -84
  365. package/src/badge/badge.tsx +0 -36
  366. package/src/badge/badge.types.ts +0 -17
  367. package/src/badge/index.ts +0 -2
  368. package/src/badge/theme.ts +0 -140
  369. package/src/onedesign-tokens/dist/js/es6/rem/button.js +0 -85
@@ -1,133 +0,0 @@
1
- const baseStyle = {};
2
- const defaultProps = {
3
- size: 'md',
4
- variant: 'subtleSandstone'
5
- };
6
- const parts = ['container', 'icon', 'text'];
7
- const sizes = {
8
- xs: {
9
- container: {
10
- borderRadius: 'lg',
11
- fontSize: 'sm',
12
- h: 20,
13
- spaceX: 4
14
- },
15
- icon: {
16
- size: 'xs'
17
- }
18
- },
19
- sm: {
20
- container: {
21
- fontSize: 'sm',
22
- h: 24,
23
- spaceX: 4
24
- },
25
- icon: {
26
- size: 'xs'
27
- }
28
- },
29
- md: {
30
- container: {
31
- fontSize: 'sm',
32
- h: 32,
33
- spaceX: 6
34
- },
35
- icon: {
36
- size: 'sm'
37
- }
38
- },
39
- lg: {
40
- container: {
41
- fontSize: 'md',
42
- h: 40,
43
- spaceX: 8
44
- },
45
- icon: {
46
- size: 'md'
47
- }
48
- }
49
- };
50
- const variants = {
51
- subtleSandstone: {
52
- container: {
53
- bg: 'sandstone.95',
54
- color: 'sandstone.20',
55
- borderColor: 'transparent'
56
- }
57
- },
58
- subtleEarth: {
59
- container: {
60
- bg: 'earth.95',
61
- color: 'earth.20'
62
- }
63
- },
64
- subtleBlue: {
65
- container: {
66
- bg: 'skyBlue.95',
67
- color: 'seaBlue.28'
68
- }
69
- },
70
- subtleBlue2: {
71
- container: {
72
- bg: 'skyBlue.95',
73
- color: 'skyBlue.20'
74
- }
75
- },
76
- subtleRed: {
77
- container: {
78
- bg: 'energyRed.95',
79
- color: 'energyRed.45'
80
- }
81
- },
82
- subtleYellow: {
83
- container: {
84
- bg: 'sunflower.85',
85
- color: 'sunflower.20'
86
- }
87
- },
88
- subtleGreen: {
89
- container: {
90
- bg: 'landGreen.95',
91
- color: 'landGreen.30'
92
- }
93
- },
94
- /** solids next */
95
- solidBlue: {
96
- container: {
97
- bg: 'skyBlue.65',
98
- color: 'skyBlue.20'
99
- }
100
- },
101
- solidDarkBlue: {
102
- container: {
103
- bg: 'darkBlue.18',
104
- borderColor: 'darkBlue.18',
105
- color: 'white'
106
- }
107
- },
108
- solidRed: {
109
- container: {
110
- bg: 'energyRed.45',
111
- color: 'white'
112
- }
113
- },
114
- solidYellow: {
115
- container: {
116
- bg: 'sunflower.65',
117
- color: 'sunflower.20'
118
- }
119
- },
120
- solidGreen: {
121
- container: {
122
- bg: 'landGreen.35',
123
- color: 'white'
124
- }
125
- }
126
- };
127
- export default {
128
- baseStyle,
129
- defaultProps,
130
- parts,
131
- sizes,
132
- variants
133
- };
@@ -1,85 +0,0 @@
1
- /**
2
- * Do not edit directly
3
- * Generated on Thu, 17 Feb 2022 11:35:15 GMT
4
- */
5
- export const buttonSizeLargeFontSize: "1.125rem";
6
- export const buttonSizeLargeLineHeight: "1.75rem";
7
- export const buttonSizeLargePadding: "0.5rem 1rem";
8
- export const buttonSizeMediumFontSize: "1rem";
9
- export const buttonSizeMediumLineHeight: "1.5rem";
10
- export const buttonSizeMediumPadding: "0.25rem calc(0.25rem * 3)";
11
- export const buttonSizeSmallFontSize: "0.875rem";
12
- export const buttonSizeSmallLineHeight: "1.25rem";
13
- export const buttonSizeSmallPadding: "calc(0.25rem / 2) 0.5rem";
14
- export const buttonSizeDefaultFontSize: "1rem";
15
- export const buttonSizeDefaultLineHeight: "1.5rem";
16
- export const buttonSizeDefaultPadding: "0.25rem calc(0.25rem * 3)";
17
- export const buttonTypePrimaryDefaultBorderColorDark: "hsla(0, 0%, 0%, 0)";
18
- export const buttonTypePrimaryDefaultBorderColorLight: "hsla(0, 0%, 0%, 0)";
19
- export const buttonTypePrimaryDefaultBackgroundColorDark: "hsla(218, 100%, 28%, 1)";
20
- export const buttonTypePrimaryDefaultBackgroundColorLight: "hsla(139, 100%, 78%, 1)";
21
- export const buttonTypePrimaryDefaultTextColorDark: "hsla(40, 3%, 100%, 1)";
22
- export const buttonTypePrimaryDefaultTextColorLight: "hsla(223, 67%, 18%, 1)";
23
- export const buttonTypePrimaryHoverBorderColorDark: "hsla(0, 0%, 0%, 0)";
24
- export const buttonTypePrimaryHoverBorderColorLight: "hsla(0, 0%, 0%, 0)";
25
- export const buttonTypePrimaryHoverBackgroundColorDark: "hsla(218, 100%, 20%, 1)";
26
- export const buttonTypePrimaryHoverBackgroundColorLight: "hsla(139, 100%, 70%, 1)";
27
- export const buttonTypePrimaryHoverTextColorDark: "hsla(40, 3%, 100%, 1)";
28
- export const buttonTypePrimaryHoverTextColorLight: "hsla(223, 67%, 18%, 1)";
29
- export const buttonTypePrimaryActiveBorderColorDark: "hsla(0, 0%, 0%, 0)";
30
- export const buttonTypePrimaryActiveBorderColorLight: "hsla(0, 0%, 0%, 0)";
31
- export const buttonTypePrimaryActiveBackgroundColorDark: "hsla(218, 100%, 35%, 1)";
32
- export const buttonTypePrimaryActiveBackgroundColorLight: "hsla(139, 100%, 85%, 1)";
33
- export const buttonTypePrimaryActiveTextColorDark: "hsla(40, 3%, 100%, 1)";
34
- export const buttonTypePrimaryActiveTextColorLight: "hsla(223, 67%, 18%, 1)";
35
- export const buttonTypePrimaryFocusOutline: "0.25rem solid hsla(196, 100%, 43%, 1)";
36
- export const buttonTypeSecondaryDefaultBorderColorDark: "hsla(218, 100%, 28%, 1)";
37
- export const buttonTypeSecondaryDefaultBorderColorLight: "hsla(139, 100%, 78%, 1)";
38
- export const buttonTypeSecondaryDefaultBackgroundColorDark: "hsla(0, 0%, 0%, 0)";
39
- export const buttonTypeSecondaryDefaultBackgroundColorLight: "hsla(0, 0%, 0%, 0)";
40
- export const buttonTypeSecondaryDefaultTextColorDark: "hsla(218, 100%, 28%, 1)";
41
- export const buttonTypeSecondaryDefaultTextColorLight: "hsla(139, 100%, 78%, 1)";
42
- export const buttonTypeSecondaryHoverBorderColorDark: "hsla(218, 100%, 28%, 1)";
43
- export const buttonTypeSecondaryHoverBorderColorLight: "hsla(139, 100%, 78%, 1)";
44
- export const buttonTypeSecondaryHoverBackgroundColorDark: "hsla(196, 74%, 90%, 1)";
45
- export const buttonTypeSecondaryHoverBackgroundColorLight: "hsla(218, 100%, 25%, 1)";
46
- export const buttonTypeSecondaryHoverTextColorDark: "hsla(218, 100%, 28%, 1)";
47
- export const buttonTypeSecondaryHoverTextColorLight: "hsla(139, 100%, 78%, 1)";
48
- export const buttonTypeSecondaryActiveBorderColorDark: "hsla(218, 100%, 28%, 1)";
49
- export const buttonTypeSecondaryActiveBorderColorLight: "hsla(139, 100%, 78%, 1)";
50
- export const buttonTypeSecondaryActiveBackgroundColorDark: "hsla(196, 74%, 95%, 1)";
51
- export const buttonTypeSecondaryActiveBackgroundColorLight: "hsla(218, 100%, 35%, 1)";
52
- export const buttonTypeSecondaryActiveTextColorDark: "hsla(218, 100%, 28%, 1)";
53
- export const buttonTypeSecondaryActiveTextColorLight: "hsla(139, 100%, 78%, 1)";
54
- export const buttonTypeSecondaryFocusOutline: "0.25rem solid hsla(196, 100%, 43%, 1)";
55
- export const buttonTypeTertiaryDefaultBorderColorDark: "hsla(0, 0%, 0%, 0)";
56
- export const buttonTypeTertiaryDefaultBorderColorLight: "hsla(0, 0%, 0%, 0)";
57
- export const buttonTypeTertiaryDefaultBackgroundColorDark: "hsla(0, 0%, 0%, 0)";
58
- export const buttonTypeTertiaryDefaultBackgroundColorLight: "hsla(0, 0%, 0%, 0)";
59
- export const buttonTypeTertiaryDefaultTextColorDark: "hsla(218, 100%, 28%, 1)";
60
- export const buttonTypeTertiaryDefaultTextColorLight: "hsla(139, 100%, 78%, 1)";
61
- export const buttonTypeTertiaryHoverBorderColorDark: "hsla(0, 0%, 0%, 0)";
62
- export const buttonTypeTertiaryHoverBorderColorLight: "hsla(0, 0%, 0%, 0)";
63
- export const buttonTypeTertiaryHoverBackgroundColorDark: "hsla(196, 74%, 90%, 1)";
64
- export const buttonTypeTertiaryHoverBackgroundColorLight: "hsla(218, 100%, 25%, 1)";
65
- export const buttonTypeTertiaryHoverTextColorDark: "hsla(218, 100%, 28%, 1)";
66
- export const buttonTypeTertiaryHoverTextColorLight: "hsla(139, 100%, 78%, 1)";
67
- export const buttonTypeTertiaryActiveBorderColorDark: "hsla(0, 0%, 0%, 0)";
68
- export const buttonTypeTertiaryActiveBorderColorLight: "hsla(0, 0%, 0%, 0)";
69
- export const buttonTypeTertiaryActiveBackgroundColorDark: "hsla(196, 74%, 95%, 1)";
70
- export const buttonTypeTertiaryActiveBackgroundColorLight: "hsla(218, 100%, 35%, 1)";
71
- export const buttonTypeTertiaryActiveTextColorDark: "hsla(218, 100%, 28%, 1)";
72
- export const buttonTypeTertiaryActiveTextColorLight: "hsla(139, 100%, 78%, 1)";
73
- export const buttonTypeTertiaryFocusOutline: "0.25rem solid hsla(196, 100%, 43%, 1)";
74
- export const buttonDisabledCursor: "default";
75
- export const buttonDisabledOpacity: "50%";
76
- export const buttonBorderStyle: "solid";
77
- export const buttonBorderWidth: "calc(0.125rem / 2)";
78
- export const buttonFontFamily: "'Avenir Next', Arial, sans-serif";
79
- export const buttonFontSize: "1rem";
80
- export const buttonLineHeight: "1.5rem";
81
- export const buttonFontWeight: "500";
82
- export const buttonPadding: "calc(0.25rem * 1.5) calc(0.25rem * 3)";
83
- export const buttonTransition: "all 0.15s ease-in-out";
84
- export const buttonCursor: "pointer";
85
- //# sourceMappingURL=button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../../../src/onedesign-tokens/dist/js/es6/rem/button.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,iDAAkD;AAClD,kDAAmD;AACnD,mDAAoD;AACpD,8CAA+C;AAC/C,kDAAmD;AACnD,kEAAmE;AACnE,iDAAkD;AAClD,kDAAmD;AACnD,gEAAiE;AACjE,+CAAgD;AAChD,mDAAoD;AACpD,mEAAoE;AACpE,2EAA4E;AAC5E,4EAA6E;AAC7E,oFAAqF;AACrF,qFAAsF;AACtF,4EAA6E;AAC7E,8EAA+E;AAC/E,yEAA0E;AAC1E,0EAA2E;AAC3E,kFAAmF;AACnF,mFAAoF;AACpF,0EAA2E;AAC3E,4EAA6E;AAC7E,0EAA2E;AAC3E,2EAA4E;AAC5E,mFAAoF;AACpF,oFAAqF;AACrF,2EAA4E;AAC5E,6EAA8E;AAC9E,oFAAqF;AACrF,kFAAmF;AACnF,mFAAoF;AACpF,iFAAkF;AAClF,kFAAmF;AACnF,gFAAiF;AACjF,iFAAkF;AAClF,gFAAiF;AACjF,iFAAkF;AAClF,mFAAoF;AACpF,qFAAsF;AACtF,8EAA+E;AAC/E,+EAAgF;AAChF,iFAAkF;AAClF,kFAAmF;AACnF,oFAAqF;AACrF,sFAAuF;AACvF,+EAAgF;AAChF,gFAAiF;AACjF,sFAAuF;AACvF,4EAA6E;AAC7E,6EAA8E;AAC9E,gFAAiF;AACjF,iFAAkF;AAClF,+EAAgF;AAChF,gFAAiF;AACjF,0EAA2E;AAC3E,2EAA4E;AAC5E,kFAAmF;AACnF,oFAAqF;AACrF,6EAA8E;AAC9E,8EAA+E;AAC/E,2EAA4E;AAC5E,4EAA6E;AAC7E,mFAAoF;AACpF,qFAAsF;AACtF,8EAA+E;AAC/E,+EAAgF;AAChF,qFAAsF;AACtF,6CAA8C;AAC9C,0CAA2C;AAC3C,wCAAyC;AACzC,qDAAsD;AACtD,kEAAmE;AACnE,oCAAqC;AACrC,wCAAyC;AACzC,qCAAsC;AACtC,oEAAqE;AACrE,uDAAwD;AACxD,qCAAsC"}
@@ -1,84 +0,0 @@
1
- /**
2
- * Do not edit directly
3
- * Generated on Thu, 17 Feb 2022 11:35:15 GMT
4
- */
5
- export const buttonSizeLargeFontSize = "1.125rem";
6
- export const buttonSizeLargeLineHeight = "1.75rem";
7
- export const buttonSizeLargePadding = "0.5rem 1rem";
8
- export const buttonSizeMediumFontSize = "1rem";
9
- export const buttonSizeMediumLineHeight = "1.5rem";
10
- export const buttonSizeMediumPadding = "0.25rem calc(0.25rem * 3)";
11
- export const buttonSizeSmallFontSize = "0.875rem";
12
- export const buttonSizeSmallLineHeight = "1.25rem";
13
- export const buttonSizeSmallPadding = "calc(0.25rem / 2) 0.5rem";
14
- export const buttonSizeDefaultFontSize = "1rem";
15
- export const buttonSizeDefaultLineHeight = "1.5rem";
16
- export const buttonSizeDefaultPadding = "0.25rem calc(0.25rem * 3)";
17
- export const buttonTypePrimaryDefaultBorderColorDark = "hsla(0, 0%, 0%, 0)";
18
- export const buttonTypePrimaryDefaultBorderColorLight = "hsla(0, 0%, 0%, 0)";
19
- export const buttonTypePrimaryDefaultBackgroundColorDark = "hsla(218, 100%, 28%, 1)";
20
- export const buttonTypePrimaryDefaultBackgroundColorLight = "hsla(139, 100%, 78%, 1)";
21
- export const buttonTypePrimaryDefaultTextColorDark = "hsla(40, 3%, 100%, 1)";
22
- export const buttonTypePrimaryDefaultTextColorLight = "hsla(223, 67%, 18%, 1)";
23
- export const buttonTypePrimaryHoverBorderColorDark = "hsla(0, 0%, 0%, 0)";
24
- export const buttonTypePrimaryHoverBorderColorLight = "hsla(0, 0%, 0%, 0)";
25
- export const buttonTypePrimaryHoverBackgroundColorDark = "hsla(218, 100%, 20%, 1)";
26
- export const buttonTypePrimaryHoverBackgroundColorLight = "hsla(139, 100%, 70%, 1)";
27
- export const buttonTypePrimaryHoverTextColorDark = "hsla(40, 3%, 100%, 1)";
28
- export const buttonTypePrimaryHoverTextColorLight = "hsla(223, 67%, 18%, 1)";
29
- export const buttonTypePrimaryActiveBorderColorDark = "hsla(0, 0%, 0%, 0)";
30
- export const buttonTypePrimaryActiveBorderColorLight = "hsla(0, 0%, 0%, 0)";
31
- export const buttonTypePrimaryActiveBackgroundColorDark = "hsla(218, 100%, 35%, 1)";
32
- export const buttonTypePrimaryActiveBackgroundColorLight = "hsla(139, 100%, 85%, 1)";
33
- export const buttonTypePrimaryActiveTextColorDark = "hsla(40, 3%, 100%, 1)";
34
- export const buttonTypePrimaryActiveTextColorLight = "hsla(223, 67%, 18%, 1)";
35
- export const buttonTypePrimaryFocusOutline = "0.25rem solid hsla(196, 100%, 43%, 1)";
36
- export const buttonTypeSecondaryDefaultBorderColorDark = "hsla(218, 100%, 28%, 1)";
37
- export const buttonTypeSecondaryDefaultBorderColorLight = "hsla(139, 100%, 78%, 1)";
38
- export const buttonTypeSecondaryDefaultBackgroundColorDark = "hsla(0, 0%, 0%, 0)";
39
- export const buttonTypeSecondaryDefaultBackgroundColorLight = "hsla(0, 0%, 0%, 0)";
40
- export const buttonTypeSecondaryDefaultTextColorDark = "hsla(218, 100%, 28%, 1)";
41
- export const buttonTypeSecondaryDefaultTextColorLight = "hsla(139, 100%, 78%, 1)";
42
- export const buttonTypeSecondaryHoverBorderColorDark = "hsla(218, 100%, 28%, 1)";
43
- export const buttonTypeSecondaryHoverBorderColorLight = "hsla(139, 100%, 78%, 1)";
44
- export const buttonTypeSecondaryHoverBackgroundColorDark = "hsla(196, 74%, 90%, 1)";
45
- export const buttonTypeSecondaryHoverBackgroundColorLight = "hsla(218, 100%, 25%, 1)";
46
- export const buttonTypeSecondaryHoverTextColorDark = "hsla(218, 100%, 28%, 1)";
47
- export const buttonTypeSecondaryHoverTextColorLight = "hsla(139, 100%, 78%, 1)";
48
- export const buttonTypeSecondaryActiveBorderColorDark = "hsla(218, 100%, 28%, 1)";
49
- export const buttonTypeSecondaryActiveBorderColorLight = "hsla(139, 100%, 78%, 1)";
50
- export const buttonTypeSecondaryActiveBackgroundColorDark = "hsla(196, 74%, 95%, 1)";
51
- export const buttonTypeSecondaryActiveBackgroundColorLight = "hsla(218, 100%, 35%, 1)";
52
- export const buttonTypeSecondaryActiveTextColorDark = "hsla(218, 100%, 28%, 1)";
53
- export const buttonTypeSecondaryActiveTextColorLight = "hsla(139, 100%, 78%, 1)";
54
- export const buttonTypeSecondaryFocusOutline = "0.25rem solid hsla(196, 100%, 43%, 1)";
55
- export const buttonTypeTertiaryDefaultBorderColorDark = "hsla(0, 0%, 0%, 0)";
56
- export const buttonTypeTertiaryDefaultBorderColorLight = "hsla(0, 0%, 0%, 0)";
57
- export const buttonTypeTertiaryDefaultBackgroundColorDark = "hsla(0, 0%, 0%, 0)";
58
- export const buttonTypeTertiaryDefaultBackgroundColorLight = "hsla(0, 0%, 0%, 0)";
59
- export const buttonTypeTertiaryDefaultTextColorDark = "hsla(218, 100%, 28%, 1)";
60
- export const buttonTypeTertiaryDefaultTextColorLight = "hsla(139, 100%, 78%, 1)";
61
- export const buttonTypeTertiaryHoverBorderColorDark = "hsla(0, 0%, 0%, 0)";
62
- export const buttonTypeTertiaryHoverBorderColorLight = "hsla(0, 0%, 0%, 0)";
63
- export const buttonTypeTertiaryHoverBackgroundColorDark = "hsla(196, 74%, 90%, 1)";
64
- export const buttonTypeTertiaryHoverBackgroundColorLight = "hsla(218, 100%, 25%, 1)";
65
- export const buttonTypeTertiaryHoverTextColorDark = "hsla(218, 100%, 28%, 1)";
66
- export const buttonTypeTertiaryHoverTextColorLight = "hsla(139, 100%, 78%, 1)";
67
- export const buttonTypeTertiaryActiveBorderColorDark = "hsla(0, 0%, 0%, 0)";
68
- export const buttonTypeTertiaryActiveBorderColorLight = "hsla(0, 0%, 0%, 0)";
69
- export const buttonTypeTertiaryActiveBackgroundColorDark = "hsla(196, 74%, 95%, 1)";
70
- export const buttonTypeTertiaryActiveBackgroundColorLight = "hsla(218, 100%, 35%, 1)";
71
- export const buttonTypeTertiaryActiveTextColorDark = "hsla(218, 100%, 28%, 1)";
72
- export const buttonTypeTertiaryActiveTextColorLight = "hsla(139, 100%, 78%, 1)";
73
- export const buttonTypeTertiaryFocusOutline = "0.25rem solid hsla(196, 100%, 43%, 1)";
74
- export const buttonDisabledCursor = "default";
75
- export const buttonDisabledOpacity = "50%";
76
- export const buttonBorderStyle = "solid";
77
- export const buttonBorderWidth = "calc(0.125rem / 2)";
78
- export const buttonFontFamily = "'Avenir Next', Arial, sans-serif";
79
- export const buttonFontSize = "1rem";
80
- export const buttonLineHeight = "1.5rem";
81
- export const buttonFontWeight = "500";
82
- export const buttonPadding = "calc(0.25rem * 1.5) calc(0.25rem * 3)";
83
- export const buttonTransition = "all 0.15s ease-in-out";
84
- export const buttonCursor = "pointer";
@@ -1,36 +0,0 @@
1
- import React from 'react'
2
-
3
- import { vui } from '../core'
4
- import { Tag, TagProps } from '../tag'
5
- import { Dict } from '../utils'
6
- import { BadgeProps } from './badge.types'
7
- import theme from './theme'
8
-
9
- /**
10
- * Badges are round, non-interactive tags.
11
- *
12
- * These components are used for displaying information only; they might be used as a “counter” for push notifications.
13
- */
14
-
15
- export const Badge = vui<'span', BadgeProps>(props => {
16
- const { variant, ...rest } = props as TagProps
17
- const { variants } = (theme as Dict) ?? {}
18
-
19
- const bg = variants[variant ?? 'subtleSandstone'].container.bg
20
- const color = variants[variant ?? 'subtleSandstone'].container.color
21
-
22
- return (
23
- <Tag
24
- bg={bg}
25
- className="vui-badge"
26
- color={color}
27
- isInteractive={false}
28
- isRound
29
- minW="20px"
30
- {...rest}
31
- onDelete={undefined}
32
- />
33
- )
34
- })
35
-
36
- export default Badge
@@ -1,17 +0,0 @@
1
- import { IconProp } from '../icon'
2
- import { SystemProps } from '../system'
3
- import { TagInnerProps } from '../tag'
4
- import { ThemingProps } from '../theme'
5
-
6
- export type BadgeInnerProps = {
7
- /** Icon that replaces any other content. */
8
- icon?: IconProp | JSX.Element
9
- /** Socket displaying icon on the left side. */
10
- iconLeft?: IconProp | JSX.Element
11
- /** Socket displaying icon on the right side. */
12
- iconRight?: IconProp | JSX.Element
13
- /** Socket displaying text as alternative to children. */
14
- text?: React.ReactNode
15
- }
16
-
17
- export type BadgeProps = SystemProps & ThemingProps<'Badge'> & TagInnerProps & BadgeInnerProps
@@ -1,2 +0,0 @@
1
- export * from './badge'
2
- export { default } from './badge'
@@ -1,140 +0,0 @@
1
- const baseStyle = {}
2
-
3
- const defaultProps = {
4
- size: 'md',
5
- variant: 'subtleSandstone'
6
- }
7
-
8
- const parts = ['container', 'icon', 'text']
9
-
10
- const sizes = {
11
- xs: {
12
- container: {
13
- borderRadius: 'lg',
14
- fontSize: 'sm',
15
- h: 20,
16
- spaceX: 4
17
- },
18
- icon: {
19
- size: 'xs'
20
- }
21
- },
22
- sm: {
23
- container: {
24
- fontSize: 'sm',
25
- h: 24,
26
- spaceX: 4
27
- },
28
- icon: {
29
- size: 'xs'
30
- }
31
- },
32
- md: {
33
- container: {
34
- fontSize: 'sm',
35
- h: 32,
36
- spaceX: 6
37
- },
38
- icon: {
39
- size: 'sm'
40
- }
41
- },
42
- lg: {
43
- container: {
44
- fontSize: 'md',
45
- h: 40,
46
- spaceX: 8
47
- },
48
- icon: {
49
- size: 'md'
50
- }
51
- }
52
- }
53
-
54
- const variants = {
55
- subtleSandstone: {
56
- container: {
57
- bg: 'sandstone.95',
58
- color: 'sandstone.20',
59
- borderColor: 'transparent'
60
- }
61
- },
62
- subtleEarth: {
63
- container: {
64
- bg: 'earth.95',
65
- color: 'earth.20'
66
- }
67
- },
68
- subtleBlue: {
69
- container: {
70
- bg: 'skyBlue.95',
71
- color: 'seaBlue.28'
72
- }
73
- },
74
- subtleBlue2: {
75
- container: {
76
- bg: 'skyBlue.95',
77
- color: 'skyBlue.20'
78
- }
79
- },
80
- subtleRed: {
81
- container: {
82
- bg: 'energyRed.95',
83
- color: 'energyRed.45'
84
- }
85
- },
86
- subtleYellow: {
87
- container: {
88
- bg: 'sunflower.85',
89
- color: 'sunflower.20'
90
- }
91
- },
92
- subtleGreen: {
93
- container: {
94
- bg: 'landGreen.95',
95
- color: 'landGreen.30'
96
- }
97
- },
98
-
99
- /** solids next */
100
- solidBlue: {
101
- container: {
102
- bg: 'skyBlue.65',
103
- color: 'skyBlue.20'
104
- }
105
- },
106
-
107
- solidDarkBlue: {
108
- container: {
109
- bg: 'darkBlue.18',
110
- borderColor: 'darkBlue.18',
111
- color: 'white'
112
- }
113
- },
114
- solidRed: {
115
- container: {
116
- bg: 'energyRed.45',
117
- color: 'white'
118
- }
119
- },
120
- solidYellow: {
121
- container: {
122
- bg: 'sunflower.65',
123
- color: 'sunflower.20'
124
- }
125
- },
126
- solidGreen: {
127
- container: {
128
- bg: 'landGreen.35',
129
- color: 'white'
130
- }
131
- }
132
- }
133
-
134
- export default {
135
- baseStyle,
136
- defaultProps,
137
- parts,
138
- sizes,
139
- variants
140
- }
@@ -1,85 +0,0 @@
1
- /**
2
- * Do not edit directly
3
- * Generated on Thu, 17 Feb 2022 11:35:15 GMT
4
- */
5
-
6
- export const buttonSizeLargeFontSize = "1.125rem";
7
- export const buttonSizeLargeLineHeight = "1.75rem";
8
- export const buttonSizeLargePadding = "0.5rem 1rem";
9
- export const buttonSizeMediumFontSize = "1rem";
10
- export const buttonSizeMediumLineHeight = "1.5rem";
11
- export const buttonSizeMediumPadding = "0.25rem calc(0.25rem * 3)";
12
- export const buttonSizeSmallFontSize = "0.875rem";
13
- export const buttonSizeSmallLineHeight = "1.25rem";
14
- export const buttonSizeSmallPadding = "calc(0.25rem / 2) 0.5rem";
15
- export const buttonSizeDefaultFontSize = "1rem";
16
- export const buttonSizeDefaultLineHeight = "1.5rem";
17
- export const buttonSizeDefaultPadding = "0.25rem calc(0.25rem * 3)";
18
- export const buttonTypePrimaryDefaultBorderColorDark = "hsla(0, 0%, 0%, 0)";
19
- export const buttonTypePrimaryDefaultBorderColorLight = "hsla(0, 0%, 0%, 0)";
20
- export const buttonTypePrimaryDefaultBackgroundColorDark = "hsla(218, 100%, 28%, 1)";
21
- export const buttonTypePrimaryDefaultBackgroundColorLight = "hsla(139, 100%, 78%, 1)";
22
- export const buttonTypePrimaryDefaultTextColorDark = "hsla(40, 3%, 100%, 1)";
23
- export const buttonTypePrimaryDefaultTextColorLight = "hsla(223, 67%, 18%, 1)";
24
- export const buttonTypePrimaryHoverBorderColorDark = "hsla(0, 0%, 0%, 0)";
25
- export const buttonTypePrimaryHoverBorderColorLight = "hsla(0, 0%, 0%, 0)";
26
- export const buttonTypePrimaryHoverBackgroundColorDark = "hsla(218, 100%, 20%, 1)";
27
- export const buttonTypePrimaryHoverBackgroundColorLight = "hsla(139, 100%, 70%, 1)";
28
- export const buttonTypePrimaryHoverTextColorDark = "hsla(40, 3%, 100%, 1)";
29
- export const buttonTypePrimaryHoverTextColorLight = "hsla(223, 67%, 18%, 1)";
30
- export const buttonTypePrimaryActiveBorderColorDark = "hsla(0, 0%, 0%, 0)";
31
- export const buttonTypePrimaryActiveBorderColorLight = "hsla(0, 0%, 0%, 0)";
32
- export const buttonTypePrimaryActiveBackgroundColorDark = "hsla(218, 100%, 35%, 1)";
33
- export const buttonTypePrimaryActiveBackgroundColorLight = "hsla(139, 100%, 85%, 1)";
34
- export const buttonTypePrimaryActiveTextColorDark = "hsla(40, 3%, 100%, 1)";
35
- export const buttonTypePrimaryActiveTextColorLight = "hsla(223, 67%, 18%, 1)";
36
- export const buttonTypePrimaryFocusOutline = "0.25rem solid hsla(196, 100%, 43%, 1)";
37
- export const buttonTypeSecondaryDefaultBorderColorDark = "hsla(218, 100%, 28%, 1)";
38
- export const buttonTypeSecondaryDefaultBorderColorLight = "hsla(139, 100%, 78%, 1)";
39
- export const buttonTypeSecondaryDefaultBackgroundColorDark = "hsla(0, 0%, 0%, 0)";
40
- export const buttonTypeSecondaryDefaultBackgroundColorLight = "hsla(0, 0%, 0%, 0)";
41
- export const buttonTypeSecondaryDefaultTextColorDark = "hsla(218, 100%, 28%, 1)";
42
- export const buttonTypeSecondaryDefaultTextColorLight = "hsla(139, 100%, 78%, 1)";
43
- export const buttonTypeSecondaryHoverBorderColorDark = "hsla(218, 100%, 28%, 1)";
44
- export const buttonTypeSecondaryHoverBorderColorLight = "hsla(139, 100%, 78%, 1)";
45
- export const buttonTypeSecondaryHoverBackgroundColorDark = "hsla(196, 74%, 90%, 1)";
46
- export const buttonTypeSecondaryHoverBackgroundColorLight = "hsla(218, 100%, 25%, 1)";
47
- export const buttonTypeSecondaryHoverTextColorDark = "hsla(218, 100%, 28%, 1)";
48
- export const buttonTypeSecondaryHoverTextColorLight = "hsla(139, 100%, 78%, 1)";
49
- export const buttonTypeSecondaryActiveBorderColorDark = "hsla(218, 100%, 28%, 1)";
50
- export const buttonTypeSecondaryActiveBorderColorLight = "hsla(139, 100%, 78%, 1)";
51
- export const buttonTypeSecondaryActiveBackgroundColorDark = "hsla(196, 74%, 95%, 1)";
52
- export const buttonTypeSecondaryActiveBackgroundColorLight = "hsla(218, 100%, 35%, 1)";
53
- export const buttonTypeSecondaryActiveTextColorDark = "hsla(218, 100%, 28%, 1)";
54
- export const buttonTypeSecondaryActiveTextColorLight = "hsla(139, 100%, 78%, 1)";
55
- export const buttonTypeSecondaryFocusOutline = "0.25rem solid hsla(196, 100%, 43%, 1)";
56
- export const buttonTypeTertiaryDefaultBorderColorDark = "hsla(0, 0%, 0%, 0)";
57
- export const buttonTypeTertiaryDefaultBorderColorLight = "hsla(0, 0%, 0%, 0)";
58
- export const buttonTypeTertiaryDefaultBackgroundColorDark = "hsla(0, 0%, 0%, 0)";
59
- export const buttonTypeTertiaryDefaultBackgroundColorLight = "hsla(0, 0%, 0%, 0)";
60
- export const buttonTypeTertiaryDefaultTextColorDark = "hsla(218, 100%, 28%, 1)";
61
- export const buttonTypeTertiaryDefaultTextColorLight = "hsla(139, 100%, 78%, 1)";
62
- export const buttonTypeTertiaryHoverBorderColorDark = "hsla(0, 0%, 0%, 0)";
63
- export const buttonTypeTertiaryHoverBorderColorLight = "hsla(0, 0%, 0%, 0)";
64
- export const buttonTypeTertiaryHoverBackgroundColorDark = "hsla(196, 74%, 90%, 1)";
65
- export const buttonTypeTertiaryHoverBackgroundColorLight = "hsla(218, 100%, 25%, 1)";
66
- export const buttonTypeTertiaryHoverTextColorDark = "hsla(218, 100%, 28%, 1)";
67
- export const buttonTypeTertiaryHoverTextColorLight = "hsla(139, 100%, 78%, 1)";
68
- export const buttonTypeTertiaryActiveBorderColorDark = "hsla(0, 0%, 0%, 0)";
69
- export const buttonTypeTertiaryActiveBorderColorLight = "hsla(0, 0%, 0%, 0)";
70
- export const buttonTypeTertiaryActiveBackgroundColorDark = "hsla(196, 74%, 95%, 1)";
71
- export const buttonTypeTertiaryActiveBackgroundColorLight = "hsla(218, 100%, 35%, 1)";
72
- export const buttonTypeTertiaryActiveTextColorDark = "hsla(218, 100%, 28%, 1)";
73
- export const buttonTypeTertiaryActiveTextColorLight = "hsla(139, 100%, 78%, 1)";
74
- export const buttonTypeTertiaryFocusOutline = "0.25rem solid hsla(196, 100%, 43%, 1)";
75
- export const buttonDisabledCursor = "default";
76
- export const buttonDisabledOpacity = "50%";
77
- export const buttonBorderStyle = "solid";
78
- export const buttonBorderWidth = "calc(0.125rem / 2)";
79
- export const buttonFontFamily = "'Avenir Next', Arial, sans-serif";
80
- export const buttonFontSize = "1rem";
81
- export const buttonLineHeight = "1.5rem";
82
- export const buttonFontWeight = "500";
83
- export const buttonPadding = "calc(0.25rem * 1.5) calc(0.25rem * 3)";
84
- export const buttonTransition = "all 0.15s ease-in-out";
85
- export const buttonCursor = "pointer";