@veracity/vui 1.7.0-redesign.6 → 1.7.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 (317) hide show
  1. package/dist/cjs/avatar/avatar.js +1 -1
  2. package/dist/cjs/button/button.d.ts +1 -1
  3. package/dist/cjs/button/button.d.ts.map +1 -1
  4. package/dist/cjs/button/button.js +23 -16
  5. package/dist/cjs/button/button.types.d.ts +4 -3
  6. package/dist/cjs/button/button.types.d.ts.map +1 -1
  7. package/dist/cjs/button/buttons.js +8 -8
  8. package/dist/cjs/button/consts.js +3 -3
  9. package/dist/cjs/button/theme.d.ts +44 -121
  10. package/dist/cjs/button/theme.d.ts.map +1 -1
  11. package/dist/cjs/button/theme.js +54 -135
  12. package/dist/cjs/buttonGroup/buttonGroup.d.ts.map +1 -1
  13. package/dist/cjs/buttonGroup/buttonGroup.js +5 -5
  14. package/dist/cjs/buttonGroup/buttonGroup.types.d.ts +3 -2
  15. package/dist/cjs/buttonGroup/buttonGroup.types.d.ts.map +1 -1
  16. package/dist/cjs/buttonGroup/helpers.d.ts.map +1 -1
  17. package/dist/cjs/buttonGroup/helpers.js +3 -2
  18. package/dist/cjs/buttonToggleGroup/buttonToggleGroup.d.ts.map +1 -1
  19. package/dist/cjs/buttonToggleGroup/buttonToggleGroup.js +1 -1
  20. package/dist/cjs/checkbox/checkbox.js +1 -1
  21. package/dist/cjs/copyToClipboard/copyToClipboard.js +1 -1
  22. package/dist/cjs/core/vuiProvider/globalStyle.d.ts.map +1 -1
  23. package/dist/cjs/core/vuiProvider/globalStyle.js +38 -56
  24. package/dist/cjs/footer/footerTrademark.js +1 -1
  25. package/dist/cjs/heading/theme.d.ts +1 -23
  26. package/dist/cjs/heading/theme.d.ts.map +1 -1
  27. package/dist/cjs/heading/theme.js +7 -29
  28. package/dist/cjs/icon/icon.types.d.ts +1 -1
  29. package/dist/cjs/icon/icon.types.d.ts.map +1 -1
  30. package/dist/cjs/icon/theme.d.ts +0 -5
  31. package/dist/cjs/icon/theme.d.ts.map +1 -1
  32. package/dist/cjs/icon/theme.js +0 -5
  33. package/dist/cjs/index.d.ts +0 -1
  34. package/dist/cjs/index.d.ts.map +1 -1
  35. package/dist/cjs/index.js +0 -1
  36. package/dist/cjs/input/input.js +1 -1
  37. package/dist/cjs/input/inputInput.js +1 -1
  38. package/dist/cjs/link/link.d.ts.map +1 -1
  39. package/dist/cjs/link/link.js +3 -3
  40. package/dist/cjs/link/link.types.d.ts +2 -0
  41. package/dist/cjs/link/link.types.d.ts.map +1 -1
  42. package/dist/cjs/link/theme.d.ts +4 -21
  43. package/dist/cjs/link/theme.d.ts.map +1 -1
  44. package/dist/cjs/link/theme.js +17 -30
  45. package/dist/cjs/list/listItem.d.ts.map +1 -1
  46. package/dist/cjs/list/listItem.js +2 -6
  47. package/dist/cjs/notification/consts.js +10 -10
  48. package/dist/cjs/notification/notification.d.ts.map +1 -1
  49. package/dist/cjs/notification/notification.js +8 -10
  50. package/dist/cjs/notification/notification.types.d.ts +2 -2
  51. package/dist/cjs/notification/notification.types.d.ts.map +1 -1
  52. package/dist/cjs/notification/notificationButton.d.ts.map +1 -1
  53. package/dist/cjs/notification/notificationButton.js +1 -5
  54. package/dist/cjs/notification/notificationIcon.d.ts.map +1 -1
  55. package/dist/cjs/notification/notificationIcon.js +2 -3
  56. package/dist/cjs/notification/notificationText.d.ts.map +1 -1
  57. package/dist/cjs/notification/notificationText.js +1 -1
  58. package/dist/cjs/notification/notificationTitle.d.ts +2 -2
  59. package/dist/cjs/notification/notificationTitle.d.ts.map +1 -1
  60. package/dist/cjs/notification/notificationTitle.js +2 -2
  61. package/dist/cjs/notification/theme.d.ts +16 -31
  62. package/dist/cjs/notification/theme.d.ts.map +1 -1
  63. package/dist/cjs/notification/theme.js +26 -32
  64. package/dist/cjs/p/theme.d.ts +8 -0
  65. package/dist/cjs/p/theme.d.ts.map +1 -1
  66. package/dist/cjs/p/theme.js +11 -3
  67. package/dist/cjs/progress/progress.js +1 -1
  68. package/dist/cjs/select/selectButton.js +1 -1
  69. package/dist/cjs/t/theme.d.ts +1 -10
  70. package/dist/cjs/t/theme.d.ts.map +1 -1
  71. package/dist/cjs/t/theme.js +1 -10
  72. package/dist/cjs/table/tbody.d.ts.map +1 -1
  73. package/dist/cjs/table/tbody.js +0 -4
  74. package/dist/cjs/table/theme.d.ts +0 -5
  75. package/dist/cjs/table/theme.d.ts.map +1 -1
  76. package/dist/cjs/table/theme.js +1 -6
  77. package/dist/cjs/tabs/tabs.types.d.ts +2 -2
  78. package/dist/cjs/tabs/tabs.types.d.ts.map +1 -1
  79. package/dist/cjs/tabs/tabsNavBar.d.ts.map +1 -1
  80. package/dist/cjs/tabs/tabsNavBar.js +5 -13
  81. package/dist/cjs/tabs/theme.d.ts +4 -40
  82. package/dist/cjs/tabs/theme.d.ts.map +1 -1
  83. package/dist/cjs/tabs/theme.js +4 -41
  84. package/dist/cjs/tag/tag.d.ts.map +1 -1
  85. package/dist/cjs/tag/tag.js +6 -9
  86. package/dist/cjs/tag/tag.types.d.ts +2 -3
  87. package/dist/cjs/tag/tag.types.d.ts.map +1 -1
  88. package/dist/cjs/tag/tagButton.js +1 -3
  89. package/dist/cjs/tag/theme.d.ts +32 -178
  90. package/dist/cjs/tag/theme.d.ts.map +1 -1
  91. package/dist/cjs/tag/theme.js +65 -182
  92. package/dist/cjs/textarea/textarea.js +1 -1
  93. package/dist/cjs/theme/components.d.ts +39 -497
  94. package/dist/cjs/theme/components.d.ts.map +1 -1
  95. package/dist/cjs/theme/components.js +68 -70
  96. package/dist/cjs/theme/defaultTheme.d.ts +46 -795
  97. package/dist/cjs/theme/defaultTheme.d.ts.map +1 -1
  98. package/dist/cjs/theme/foundations/colors.d.ts +0 -523
  99. package/dist/cjs/theme/foundations/colors.d.ts.map +1 -1
  100. package/dist/cjs/theme/foundations/colors.js +1 -389
  101. package/dist/cjs/theme/foundations/fontWeights.d.ts +1 -0
  102. package/dist/cjs/theme/foundations/fontWeights.d.ts.map +1 -1
  103. package/dist/cjs/theme/foundations/fontWeights.js +2 -1
  104. package/dist/cjs/theme/foundations/index.d.ts +1 -292
  105. package/dist/cjs/theme/foundations/index.d.ts.map +1 -1
  106. package/dist/cjs/theme/foundations/radii.d.ts +0 -5
  107. package/dist/cjs/theme/foundations/radii.d.ts.map +1 -1
  108. package/dist/cjs/theme/foundations/radii.js +3 -8
  109. package/dist/cjs/toast/toast.d.ts +1 -1
  110. package/dist/cjs/toast/toast.js +1 -1
  111. package/dist/cjs/toast/useToast.d.ts.map +1 -1
  112. package/dist/cjs/toast/useToast.js +1 -1
  113. package/dist/cjs/tutorial/tutorialCard.d.ts.map +1 -1
  114. package/dist/cjs/tutorial/tutorialCard.js +3 -3
  115. package/dist/esm/avatar/avatar.js +1 -1
  116. package/dist/esm/button/button.d.ts +1 -1
  117. package/dist/esm/button/button.d.ts.map +1 -1
  118. package/dist/esm/button/button.js +23 -16
  119. package/dist/esm/button/button.types.d.ts +4 -3
  120. package/dist/esm/button/button.types.d.ts.map +1 -1
  121. package/dist/esm/button/buttons.js +8 -8
  122. package/dist/esm/button/consts.js +3 -3
  123. package/dist/esm/button/theme.d.ts +44 -121
  124. package/dist/esm/button/theme.d.ts.map +1 -1
  125. package/dist/esm/button/theme.js +58 -135
  126. package/dist/esm/buttonGroup/buttonGroup.d.ts.map +1 -1
  127. package/dist/esm/buttonGroup/buttonGroup.js +6 -6
  128. package/dist/esm/buttonGroup/buttonGroup.types.d.ts +3 -2
  129. package/dist/esm/buttonGroup/buttonGroup.types.d.ts.map +1 -1
  130. package/dist/esm/buttonGroup/helpers.d.ts.map +1 -1
  131. package/dist/esm/buttonGroup/helpers.js +3 -2
  132. package/dist/esm/buttonToggleGroup/buttonToggleGroup.d.ts.map +1 -1
  133. package/dist/esm/buttonToggleGroup/buttonToggleGroup.js +1 -1
  134. package/dist/esm/checkbox/checkbox.js +1 -1
  135. package/dist/esm/copyToClipboard/copyToClipboard.js +1 -1
  136. package/dist/esm/core/vuiProvider/globalStyle.d.ts.map +1 -1
  137. package/dist/esm/core/vuiProvider/globalStyle.js +38 -56
  138. package/dist/esm/footer/footerTrademark.js +1 -1
  139. package/dist/esm/heading/theme.d.ts +1 -23
  140. package/dist/esm/heading/theme.d.ts.map +1 -1
  141. package/dist/esm/heading/theme.js +7 -29
  142. package/dist/esm/icon/icon.types.d.ts +1 -1
  143. package/dist/esm/icon/icon.types.d.ts.map +1 -1
  144. package/dist/esm/icon/theme.d.ts +0 -5
  145. package/dist/esm/icon/theme.d.ts.map +1 -1
  146. package/dist/esm/icon/theme.js +0 -5
  147. package/dist/esm/index.d.ts +0 -1
  148. package/dist/esm/index.d.ts.map +1 -1
  149. package/dist/esm/index.js +0 -1
  150. package/dist/esm/input/input.js +1 -1
  151. package/dist/esm/input/inputInput.js +1 -1
  152. package/dist/esm/link/link.d.ts.map +1 -1
  153. package/dist/esm/link/link.js +3 -3
  154. package/dist/esm/link/link.types.d.ts +2 -0
  155. package/dist/esm/link/link.types.d.ts.map +1 -1
  156. package/dist/esm/link/theme.d.ts +4 -21
  157. package/dist/esm/link/theme.d.ts.map +1 -1
  158. package/dist/esm/link/theme.js +17 -30
  159. package/dist/esm/list/listItem.d.ts.map +1 -1
  160. package/dist/esm/list/listItem.js +2 -6
  161. package/dist/esm/notification/consts.js +10 -10
  162. package/dist/esm/notification/notification.d.ts.map +1 -1
  163. package/dist/esm/notification/notification.js +9 -11
  164. package/dist/esm/notification/notification.types.d.ts +2 -2
  165. package/dist/esm/notification/notification.types.d.ts.map +1 -1
  166. package/dist/esm/notification/notificationButton.d.ts.map +1 -1
  167. package/dist/esm/notification/notificationButton.js +1 -4
  168. package/dist/esm/notification/notificationIcon.d.ts.map +1 -1
  169. package/dist/esm/notification/notificationIcon.js +2 -3
  170. package/dist/esm/notification/notificationText.d.ts.map +1 -1
  171. package/dist/esm/notification/notificationText.js +1 -1
  172. package/dist/esm/notification/notificationTitle.d.ts +2 -2
  173. package/dist/esm/notification/notificationTitle.d.ts.map +1 -1
  174. package/dist/esm/notification/notificationTitle.js +2 -2
  175. package/dist/esm/notification/theme.d.ts +16 -31
  176. package/dist/esm/notification/theme.d.ts.map +1 -1
  177. package/dist/esm/notification/theme.js +26 -32
  178. package/dist/esm/p/theme.d.ts +8 -0
  179. package/dist/esm/p/theme.d.ts.map +1 -1
  180. package/dist/esm/p/theme.js +11 -3
  181. package/dist/esm/progress/progress.js +1 -1
  182. package/dist/esm/select/selectButton.js +1 -1
  183. package/dist/esm/t/theme.d.ts +1 -10
  184. package/dist/esm/t/theme.d.ts.map +1 -1
  185. package/dist/esm/t/theme.js +1 -10
  186. package/dist/esm/table/tbody.d.ts.map +1 -1
  187. package/dist/esm/table/tbody.js +0 -4
  188. package/dist/esm/table/theme.d.ts +0 -5
  189. package/dist/esm/table/theme.d.ts.map +1 -1
  190. package/dist/esm/table/theme.js +1 -6
  191. package/dist/esm/tabs/tabs.types.d.ts +2 -2
  192. package/dist/esm/tabs/tabs.types.d.ts.map +1 -1
  193. package/dist/esm/tabs/tabsNavBar.d.ts.map +1 -1
  194. package/dist/esm/tabs/tabsNavBar.js +4 -12
  195. package/dist/esm/tabs/theme.d.ts +4 -40
  196. package/dist/esm/tabs/theme.d.ts.map +1 -1
  197. package/dist/esm/tabs/theme.js +4 -41
  198. package/dist/esm/tag/tag.d.ts.map +1 -1
  199. package/dist/esm/tag/tag.js +6 -9
  200. package/dist/esm/tag/tag.types.d.ts +2 -3
  201. package/dist/esm/tag/tag.types.d.ts.map +1 -1
  202. package/dist/esm/tag/tagButton.js +1 -3
  203. package/dist/esm/tag/theme.d.ts +32 -178
  204. package/dist/esm/tag/theme.d.ts.map +1 -1
  205. package/dist/esm/tag/theme.js +65 -182
  206. package/dist/esm/textarea/textarea.js +1 -1
  207. package/dist/esm/theme/components.d.ts +39 -497
  208. package/dist/esm/theme/components.d.ts.map +1 -1
  209. package/dist/esm/theme/components.js +0 -2
  210. package/dist/esm/theme/defaultTheme.d.ts +46 -795
  211. package/dist/esm/theme/defaultTheme.d.ts.map +1 -1
  212. package/dist/esm/theme/foundations/colors.d.ts +0 -523
  213. package/dist/esm/theme/foundations/colors.d.ts.map +1 -1
  214. package/dist/esm/theme/foundations/colors.js +0 -365
  215. package/dist/esm/theme/foundations/fontWeights.d.ts +1 -0
  216. package/dist/esm/theme/foundations/fontWeights.d.ts.map +1 -1
  217. package/dist/esm/theme/foundations/fontWeights.js +2 -1
  218. package/dist/esm/theme/foundations/index.d.ts +1 -292
  219. package/dist/esm/theme/foundations/index.d.ts.map +1 -1
  220. package/dist/esm/theme/foundations/radii.d.ts +0 -5
  221. package/dist/esm/theme/foundations/radii.d.ts.map +1 -1
  222. package/dist/esm/theme/foundations/radii.js +3 -8
  223. package/dist/esm/toast/toast.d.ts +1 -1
  224. package/dist/esm/toast/toast.js +1 -1
  225. package/dist/esm/toast/useToast.d.ts.map +1 -1
  226. package/dist/esm/toast/useToast.js +1 -1
  227. package/dist/esm/tutorial/tutorialCard.d.ts.map +1 -1
  228. package/dist/esm/tutorial/tutorialCard.js +3 -3
  229. package/package.json +1 -1
  230. package/src/avatar/avatar.tsx +1 -1
  231. package/src/button/button.tsx +28 -19
  232. package/src/button/button.types.ts +8 -4
  233. package/src/button/buttons.tsx +8 -8
  234. package/src/button/consts.ts +3 -3
  235. package/src/button/theme.ts +71 -143
  236. package/src/buttonGroup/buttonGroup.tsx +9 -6
  237. package/src/buttonGroup/buttonGroup.types.ts +3 -2
  238. package/src/buttonGroup/helpers.ts +4 -2
  239. package/src/buttonToggleGroup/buttonToggleGroup.tsx +2 -0
  240. package/src/checkbox/checkbox.tsx +1 -1
  241. package/src/copyToClipboard/copyToClipboard.tsx +1 -1
  242. package/src/core/vuiProvider/globalStyle.tsx +38 -56
  243. package/src/footer/footerTrademark.tsx +1 -1
  244. package/src/heading/theme.ts +7 -29
  245. package/src/icon/icon.types.ts +1 -1
  246. package/src/icon/theme.ts +0 -5
  247. package/src/index.ts +0 -1
  248. package/src/input/input.tsx +1 -1
  249. package/src/input/inputInput.tsx +1 -1
  250. package/src/link/link.tsx +3 -2
  251. package/src/link/link.types.ts +2 -0
  252. package/src/link/theme.ts +20 -30
  253. package/src/list/listItem.tsx +2 -6
  254. package/src/notification/consts.ts +10 -10
  255. package/src/notification/notification.tsx +11 -17
  256. package/src/notification/notification.types.ts +2 -2
  257. package/src/notification/notificationButton.tsx +5 -10
  258. package/src/notification/notificationIcon.tsx +3 -6
  259. package/src/notification/notificationText.tsx +1 -2
  260. package/src/notification/notificationTitle.tsx +9 -3
  261. package/src/notification/theme.ts +34 -32
  262. package/src/p/theme.ts +11 -3
  263. package/src/progress/progress.tsx +1 -1
  264. package/src/select/selectButton.tsx +1 -1
  265. package/src/t/theme.ts +1 -10
  266. package/src/table/tbody.tsx +0 -4
  267. package/src/table/theme.ts +1 -6
  268. package/src/tabs/tabs.types.ts +2 -2
  269. package/src/tabs/tabsNavBar.tsx +6 -23
  270. package/src/tabs/theme.ts +4 -41
  271. package/src/tag/tag.tsx +10 -11
  272. package/src/tag/tag.types.ts +31 -32
  273. package/src/tag/tagButton.tsx +2 -2
  274. package/src/tag/theme.ts +80 -183
  275. package/src/textarea/textarea.tsx +1 -1
  276. package/src/theme/components.ts +0 -2
  277. package/src/theme/foundations/colors.ts +0 -401
  278. package/src/theme/foundations/fontWeights.ts +2 -1
  279. package/src/theme/foundations/radii.ts +3 -8
  280. package/src/toast/toast.tsx +1 -1
  281. package/src/toast/useToast.tsx +1 -2
  282. package/src/tutorial/tutorialCard.tsx +3 -10
  283. package/dist/cjs/badge/badge.d.ts +0 -9
  284. package/dist/cjs/badge/badge.d.ts.map +0 -1
  285. package/dist/cjs/badge/badge.js +0 -35
  286. package/dist/cjs/badge/badge.types.d.ts +0 -17
  287. package/dist/cjs/badge/badge.types.d.ts.map +0 -1
  288. package/dist/cjs/badge/badge.types.js +0 -2
  289. package/dist/cjs/badge/index.d.ts +0 -3
  290. package/dist/cjs/badge/index.d.ts.map +0 -1
  291. package/dist/cjs/badge/index.js +0 -23
  292. package/dist/cjs/badge/theme.d.ts +0 -130
  293. package/dist/cjs/badge/theme.d.ts.map +0 -1
  294. package/dist/cjs/badge/theme.js +0 -135
  295. package/dist/cjs/onedesign-tokens/dist/js/es6/rem/button.d.ts +0 -85
  296. package/dist/cjs/onedesign-tokens/dist/js/es6/rem/button.d.ts.map +0 -1
  297. package/dist/cjs/onedesign-tokens/dist/js/es6/rem/button.js +0 -88
  298. package/dist/esm/badge/badge.d.ts +0 -9
  299. package/dist/esm/badge/badge.d.ts.map +0 -1
  300. package/dist/esm/badge/badge.js +0 -17
  301. package/dist/esm/badge/badge.types.d.ts +0 -17
  302. package/dist/esm/badge/badge.types.d.ts.map +0 -1
  303. package/dist/esm/badge/badge.types.js +0 -1
  304. package/dist/esm/badge/index.d.ts +0 -3
  305. package/dist/esm/badge/index.d.ts.map +0 -1
  306. package/dist/esm/badge/index.js +0 -2
  307. package/dist/esm/badge/theme.d.ts +0 -130
  308. package/dist/esm/badge/theme.d.ts.map +0 -1
  309. package/dist/esm/badge/theme.js +0 -133
  310. package/dist/esm/onedesign-tokens/dist/js/es6/rem/button.d.ts +0 -85
  311. package/dist/esm/onedesign-tokens/dist/js/es6/rem/button.d.ts.map +0 -1
  312. package/dist/esm/onedesign-tokens/dist/js/es6/rem/button.js +0 -84
  313. package/src/badge/badge.tsx +0 -36
  314. package/src/badge/badge.types.ts +0 -17
  315. package/src/badge/index.ts +0 -2
  316. package/src/badge/theme.ts +0 -140
  317. package/src/onedesign-tokens/dist/js/es6/rem/button.js +0 -85
@@ -1,25 +1,41 @@
1
+ import { Dict } from '../utils';
2
+ declare function variantSolid(props: Dict): {
3
+ container: {
4
+ hoverBg: string;
5
+ activeBg: string;
6
+ bg: string;
7
+ color: string;
8
+ focusRing: number;
9
+ };
10
+ button: {
11
+ hoverBg: string;
12
+ activeBg: string;
13
+ bg: string;
14
+ color: string;
15
+ };
16
+ };
17
+ declare function variantSubtle(props: Dict): {
18
+ container: {
19
+ hoverBg: string;
20
+ activeBg: string;
21
+ bg: string;
22
+ color: string;
23
+ };
24
+ button: {
25
+ hoverBg: string;
26
+ activeBg: string;
27
+ color: string;
28
+ };
29
+ };
1
30
  declare const _default: {
2
31
  baseStyle: {};
3
32
  defaultProps: {
33
+ colorScheme: string;
4
34
  size: string;
5
35
  variant: string;
6
36
  };
7
37
  parts: string[];
8
38
  sizes: {
9
- xs: {
10
- container: {
11
- borderRadius: string;
12
- fontSize: string;
13
- h: number;
14
- spaceX: number;
15
- };
16
- button: {
17
- size: string;
18
- };
19
- icon: {
20
- size: string;
21
- };
22
- };
23
39
  sm: {
24
40
  container: {
25
41
  fontSize: string;
@@ -61,170 +77,8 @@ declare const _default: {
61
77
  };
62
78
  };
63
79
  variants: {
64
- subtleGrey: {
65
- container: {
66
- bg: string;
67
- hoverBg: string;
68
- borderColor: string;
69
- color: string;
70
- activeBg: string;
71
- };
72
- button: {
73
- bg: string;
74
- hoverBg: string;
75
- hoverBorderColor: string;
76
- color: string;
77
- activeBg: string;
78
- };
79
- };
80
- subtleBlue: {
81
- container: {
82
- bg: string;
83
- hoverBg: string;
84
- activeBg: string;
85
- borderColor: string;
86
- color: string;
87
- };
88
- button: {
89
- bg: string;
90
- hoverBg: string;
91
- activeBg: string;
92
- hoverBorderColor: string;
93
- color: string;
94
- };
95
- };
96
- subtleRed: {
97
- container: {
98
- bg: string;
99
- borderColor: string;
100
- hoverBg: string;
101
- activeBg: string;
102
- color: string;
103
- };
104
- button: {
105
- bg: string;
106
- hoverBg: string;
107
- activeBg: string;
108
- hoverBorderColor: string;
109
- color: string;
110
- };
111
- };
112
- subtleYellow: {
113
- container: {
114
- bg: string;
115
- hoverBg: string;
116
- activeBg: string;
117
- borderColor: string;
118
- color: string;
119
- };
120
- button: {
121
- bg: string;
122
- hoverBg: string;
123
- activeBg: string;
124
- hoverBorderColor: string;
125
- color: string;
126
- };
127
- };
128
- subtleGreen: {
129
- container: {
130
- bg: string;
131
- hoverBg: string;
132
- borderColor: string;
133
- color: string;
134
- activeBg: string;
135
- };
136
- button: {
137
- bg: string;
138
- hoverBg: string;
139
- activeBg: string;
140
- hoverBorderColor: string;
141
- color: string;
142
- };
143
- };
144
- /** solids next */
145
- solidBlue: {
146
- container: {
147
- bg: string;
148
- hoverBg: string;
149
- activeBg: string;
150
- borderColor: string;
151
- color: string;
152
- };
153
- button: {
154
- bg: string;
155
- hoverBg: string;
156
- activeBg: string;
157
- hoverBorderColor: string;
158
- activeBorderColor: string;
159
- color: string;
160
- };
161
- };
162
- solidDarkBlue: {
163
- container: {
164
- bg: string;
165
- hoverBg: string;
166
- activeBg: string;
167
- borderColor: string;
168
- color: string;
169
- };
170
- button: {
171
- bg: string;
172
- hoverBg: string;
173
- activeBg: string;
174
- hoverBorderColor: string;
175
- color: string;
176
- };
177
- };
178
- solidRed: {
179
- container: {
180
- bg: string;
181
- hoverBg: string;
182
- activeBg: string;
183
- borderColor: string;
184
- color: string;
185
- };
186
- button: {
187
- bg: string;
188
- hoverBg: string;
189
- activeBg: string;
190
- hoverBorderColor: string;
191
- activeBorderColor: string;
192
- color: string;
193
- };
194
- };
195
- solidYellow: {
196
- container: {
197
- bg: string;
198
- hoverBg: string;
199
- activeBg: string;
200
- borderColor: string;
201
- color: string;
202
- };
203
- button: {
204
- bg: string;
205
- hoverBg: string;
206
- activeBg: string;
207
- hoverBorderColor: string;
208
- color: string;
209
- };
210
- };
211
- solidGreen: {
212
- container: {
213
- bg: string;
214
- hoverBg: string;
215
- activeBg: string;
216
- borderColor: string;
217
- color: string;
218
- };
219
- button: {
220
- bg: string;
221
- hoverBg: string;
222
- activeBg: string;
223
- hoverBorderColor: string;
224
- activeBorderColor: string;
225
- color: string;
226
- };
227
- };
80
+ solid: typeof variantSolid;
81
+ subtle: typeof variantSubtle;
228
82
  };
229
83
  };
230
84
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/tag/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAmJE,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFpB,wBAMC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/tag/theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,iBAAS,YAAY,CAAC,KAAK,EAAE,IAAI;;;;;;;;;;;;;;EAmChC;AAED,iBAAS,aAAa,CAAC,KAAK,EAAE,IAAI;;;;;;;;;;;;EAgCjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DD,wBAMC"}
@@ -1,24 +1,69 @@
1
+ function variantSolid(props) {
2
+ const { colorScheme: c } = props;
3
+ const container = {
4
+ hoverBg: `${c}.90`,
5
+ activeBg: `${c}.100`,
6
+ bg: `${c}.80`,
7
+ color: 'white',
8
+ focusRing: 3
9
+ };
10
+ const button = {
11
+ hoverBg: `${c}.70`,
12
+ activeBg: `${c}.60`,
13
+ bg: `${c}.80`,
14
+ color: 'white'
15
+ };
16
+ if (c === 'prussian') {
17
+ container.hoverBg = 'prussian.60';
18
+ container.activeBg = 'prussian.50';
19
+ button.hoverBg = 'prussian.60';
20
+ button.activeBg = 'prussian.50';
21
+ }
22
+ if (c === 'yellow') {
23
+ container.hoverBg = 'yellow.80';
24
+ container.activeBg = 'yellow.90';
25
+ container.bg = 'yellow.70';
26
+ button.hoverBg = 'yellow.60';
27
+ button.activeBg = 'yellow.50';
28
+ button.bg = 'yellow.70';
29
+ }
30
+ return { container, button };
31
+ }
32
+ function variantSubtle(props) {
33
+ const { colorScheme: c } = props;
34
+ const container = {
35
+ hoverBg: `${c}.30`,
36
+ activeBg: `${c}.40`,
37
+ bg: `${c}.20`,
38
+ color: `${c}.90`
39
+ };
40
+ const button = {
41
+ hoverBg: `${c}.30`,
42
+ activeBg: `${c}.40`,
43
+ color: `${c}.90`
44
+ };
45
+ if (c === 'blue') {
46
+ container.color = 'blue.80';
47
+ button.color = 'blue.80';
48
+ }
49
+ if (c === 'grey') {
50
+ container.color = 'prussian.80';
51
+ button.color = 'prussian.80';
52
+ }
53
+ if (c === 'yellow') {
54
+ container.color = 'yellow.100';
55
+ button.color = 'yellow.100';
56
+ }
57
+ return { container, button };
58
+ }
1
59
  const baseStyle = {};
2
60
  const defaultProps = {
61
+ colorScheme: 'blue',
3
62
  size: 'md',
4
- variant: 'subtleBlue'
63
+ variant: 'subtle'
5
64
  };
6
65
  const parts = ['container', 'button', 'icon', 'text'];
7
66
  const sizes = {
8
- xs: {
9
- container: {
10
- borderRadius: 'lg',
11
- fontSize: 'sm',
12
- h: 20,
13
- spaceX: 4
14
- },
15
- button: {
16
- size: 'sm'
17
- },
18
- icon: {
19
- size: 'xs'
20
- }
21
- },
22
67
  sm: {
23
68
  container: {
24
69
  fontSize: 'sm',
@@ -26,7 +71,7 @@ const sizes = {
26
71
  spaceX: 4
27
72
  },
28
73
  button: {
29
- size: 'sm'
74
+ size: 'xs'
30
75
  },
31
76
  icon: {
32
77
  size: 'xs'
@@ -39,7 +84,7 @@ const sizes = {
39
84
  spaceX: 6
40
85
  },
41
86
  button: {
42
- size: 'sm'
87
+ size: 'xs'
43
88
  },
44
89
  icon: {
45
90
  size: 'sm'
@@ -52,7 +97,7 @@ const sizes = {
52
97
  spaceX: 8
53
98
  },
54
99
  button: {
55
- size: 'md'
100
+ size: 'sm'
56
101
  },
57
102
  icon: {
58
103
  size: 'md'
@@ -60,170 +105,8 @@ const sizes = {
60
105
  }
61
106
  };
62
107
  const variants = {
63
- subtleGrey: {
64
- container: {
65
- bg: 'sandstone.95',
66
- hoverBg: 'sandstone.90',
67
- borderColor: 'sandstone.90',
68
- color: 'sandstone.20',
69
- activeBg: 'sandstone.85'
70
- },
71
- button: {
72
- bg: 'transparent',
73
- hoverBg: 'sandstone.90',
74
- hoverBorderColor: 'transparent',
75
- color: 'sandstone.20',
76
- activeBg: 'sandstone.85'
77
- }
78
- },
79
- subtleBlue: {
80
- container: {
81
- bg: 'skyBlue.95',
82
- hoverBg: 'skyBlue.90',
83
- activeBg: 'skyBlue.85',
84
- borderColor: 'skyBlue.95',
85
- color: 'seaBlue.28'
86
- },
87
- button: {
88
- bg: 'transparent',
89
- hoverBg: 'skyBlue.90',
90
- activeBg: 'skyBlue.85',
91
- hoverBorderColor: 'transparent',
92
- color: 'seaBlue.28'
93
- }
94
- },
95
- subtleRed: {
96
- container: {
97
- bg: 'energyRed.95',
98
- borderColor: 'energyRed.95',
99
- hoverBg: 'energyRed.90',
100
- activeBg: 'energyRed.85',
101
- color: 'energyRed.45'
102
- },
103
- button: {
104
- bg: 'transparent',
105
- hoverBg: 'energyRed.90',
106
- activeBg: 'energyRed.85',
107
- hoverBorderColor: 'transparent',
108
- color: 'energyRed.45'
109
- }
110
- },
111
- subtleYellow: {
112
- container: {
113
- bg: 'sunflower.85',
114
- hoverBg: 'sunflower.70',
115
- activeBg: 'sunflower.65',
116
- borderColor: 'terracotta.30',
117
- color: 'sunflower.20'
118
- },
119
- button: {
120
- bg: 'transparent',
121
- hoverBg: 'sunflower.70',
122
- activeBg: 'sunflower.65',
123
- hoverBorderColor: 'transparent',
124
- color: 'sunflower.20'
125
- }
126
- },
127
- subtleGreen: {
128
- container: {
129
- bg: 'landGreen.95',
130
- hoverBg: 'landGreen.90',
131
- borderColor: 'landGreen.30',
132
- color: 'landGreen.30',
133
- activeBg: 'landGreen.85'
134
- },
135
- button: {
136
- bg: 'transparent',
137
- hoverBg: 'landGreen.90',
138
- activeBg: 'landGreen.85',
139
- hoverBorderColor: 'transparent',
140
- color: 'landGreen.30'
141
- }
142
- },
143
- /** solids next */
144
- solidBlue: {
145
- container: {
146
- bg: 'seaBlue.28',
147
- hoverBg: 'seaBlue.35',
148
- activeBg: 'seaBlue.40',
149
- borderColor: 'seaBlue.28',
150
- color: 'white'
151
- },
152
- button: {
153
- bg: 'transparent',
154
- hoverBg: 'seaBlue.35',
155
- activeBg: 'seaBlue.40',
156
- hoverBorderColor: 'transparent',
157
- activeBorderColor: 'transparent',
158
- color: 'white'
159
- }
160
- },
161
- solidDarkBlue: {
162
- container: {
163
- bg: 'darkBlue.18',
164
- hoverBg: 'darkBlue.25',
165
- activeBg: 'darkBlue.35',
166
- borderColor: 'darkBlue.18',
167
- color: 'white'
168
- },
169
- button: {
170
- bg: 'transparent',
171
- hoverBg: 'darkBlue.25',
172
- activeBg: 'darkBlue.35',
173
- hoverBorderColor: 'transparent',
174
- color: 'white'
175
- }
176
- },
177
- solidRed: {
178
- container: {
179
- bg: 'energyRed.45',
180
- hoverBg: 'energyRed.54',
181
- activeBg: 'energyRed.60',
182
- borderColor: 'energyRed.45',
183
- color: 'white'
184
- },
185
- button: {
186
- bg: 'transparent',
187
- hoverBg: 'energyRed.54',
188
- activeBg: 'energyRed.60',
189
- hoverBorderColor: 'transparent',
190
- activeBorderColor: 'transparent',
191
- color: 'white'
192
- }
193
- },
194
- solidYellow: {
195
- container: {
196
- bg: 'sunflower.65',
197
- hoverBg: 'sunflower.80',
198
- activeBg: 'sunflower.85',
199
- borderColor: 'sunflower.65',
200
- color: 'sunflower.15'
201
- },
202
- button: {
203
- bg: 'transparent',
204
- hoverBg: 'sunflower.80',
205
- activeBg: 'sunflower.85',
206
- hoverBorderColor: 'transparent',
207
- color: 'sunflower.15'
208
- }
209
- },
210
- solidGreen: {
211
- container: {
212
- bg: 'landGreen.35',
213
- hoverBg: 'landGreen.41',
214
- activeBg: 'landGreen.45',
215
- borderColor: 'landGreen.35',
216
- color: 'white'
217
- },
218
- button: {
219
- bg: 'transparent',
220
- hoverBg: 'landGreen.41',
221
- activeBg: 'landGreen.45',
222
- hoverBorderColor: 'transparent',
223
- activeBorderColor: 'transparent',
224
- color: 'white'
225
- }
226
- }
108
+ solid: variantSolid,
109
+ subtle: variantSubtle
227
110
  };
228
111
  export default {
229
112
  baseStyle,
@@ -4,7 +4,7 @@ import T from '../t';
4
4
  import { cs, filterUndefined } from '../utils';
5
5
  import { getInitialCount } from './helpers';
6
6
  const TextareaTextarea = styled.textareaBox `
7
- border-radius: none;
7
+ border-radius: md;
8
8
  border-width: 1px;
9
9
  outline: none;
10
10
  padding: 1;