@veracity/vui 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/avatar/avatar.d.ts +2 -2
  2. package/avatar/avatar.js +9 -29
  3. package/avatar/avatar.types.d.ts +9 -2
  4. package/avatar/helpers.d.ts +2 -0
  5. package/avatar/helpers.js +26 -0
  6. package/avatar/index.d.ts +1 -1
  7. package/avatar/index.js +1 -1
  8. package/avatar/theme.d.ts +1 -0
  9. package/avatar/theme.js +7 -0
  10. package/box/box.d.ts +2 -2
  11. package/box/box.js +9 -8
  12. package/box/box.types.d.ts +13 -2
  13. package/box/index.d.ts +1 -1
  14. package/box/index.js +1 -1
  15. package/box/theme.d.ts +1 -0
  16. package/box/theme.js +2 -0
  17. package/button/button.d.ts +7 -3
  18. package/button/button.js +24 -14
  19. package/button/button.types.d.ts +12 -30
  20. package/button/buttonIcon.d.ts +1 -0
  21. package/button/buttonIcon.js +3 -5
  22. package/button/buttonText.d.ts +1 -0
  23. package/button/buttonText.js +3 -5
  24. package/button/buttons.js +1 -1
  25. package/button/index.d.ts +2 -2
  26. package/button/index.js +3 -3
  27. package/button/theme.d.ts +1 -0
  28. package/button/theme.js +5 -3
  29. package/buttonGroup/buttonGroup.d.ts +5 -2
  30. package/buttonGroup/buttonGroup.js +12 -8
  31. package/buttonGroup/buttonGroup.types.d.ts +4 -2
  32. package/buttonGroup/helpers.d.ts +1 -1
  33. package/buttonGroup/helpers.js +1 -1
  34. package/buttonGroup/index.d.ts +1 -1
  35. package/buttonGroup/index.js +2 -2
  36. package/card/card.d.ts +4 -0
  37. package/card/card.js +8 -0
  38. package/card/card.types.d.ts +3 -2
  39. package/card/index.d.ts +1 -1
  40. package/card/index.js +1 -1
  41. package/card/theme.d.ts +1 -0
  42. package/card/theme.js +2 -0
  43. package/checkbox/checkbox.d.ts +5 -4
  44. package/checkbox/checkbox.js +20 -10
  45. package/checkbox/checkbox.types.d.ts +21 -4
  46. package/checkbox/checkboxGroup.d.ts +5 -2
  47. package/checkbox/checkboxGroup.js +11 -7
  48. package/checkbox/checkboxGroup.types.d.ts +9 -2
  49. package/checkbox/index.d.ts +1 -1
  50. package/checkbox/index.js +2 -2
  51. package/checkbox/theme.d.ts +1 -0
  52. package/checkbox/theme.js +2 -0
  53. package/core/index.d.ts +4 -5
  54. package/core/index.js +4 -12
  55. package/core/media.d.ts +38 -0
  56. package/core/media.js +79 -0
  57. package/core/styled.d.ts +3 -0
  58. package/core/styled.js +21 -3
  59. package/core/theme.d.ts +41 -0
  60. package/core/theme.js +94 -0
  61. package/core/vui.d.ts +31 -0
  62. package/core/vui.js +20 -0
  63. package/core/vuiProvider/fontFaces.js +4 -0
  64. package/core/{globalStyle.d.ts → vuiProvider/globalStyle.d.ts} +7 -0
  65. package/core/{globalStyle.js → vuiProvider/globalStyle.js} +17 -9
  66. package/core/vuiProvider/index.d.ts +5 -0
  67. package/{styles → core/vuiProvider}/index.js +8 -2
  68. package/core/{resetCSS.d.ts → vuiProvider/resetCSS.d.ts} +1 -0
  69. package/core/{resetCSS.js → vuiProvider/resetCSS.js} +2 -1
  70. package/core/vuiProvider/vuiProvider.d.ts +13 -0
  71. package/core/{vuiProvider.js → vuiProvider/vuiProvider.js} +3 -2
  72. package/divider/divider.d.ts +2 -2
  73. package/divider/divider.js +5 -4
  74. package/divider/divider.types.d.ts +5 -2
  75. package/divider/index.d.ts +1 -1
  76. package/divider/index.js +1 -1
  77. package/divider/theme.d.ts +1 -0
  78. package/divider/theme.js +2 -0
  79. package/footer/consts.d.ts +3 -0
  80. package/footer/consts.js +3 -0
  81. package/footer/footer.d.ts +3 -1
  82. package/footer/footer.js +21 -10
  83. package/footer/footer.types.d.ts +5 -0
  84. package/footer/footerColumn.d.ts +122 -121
  85. package/footer/footerColumn.js +1 -0
  86. package/footer/footerHeading.d.ts +1 -0
  87. package/footer/footerHeading.js +1 -0
  88. package/footer/footerLink.d.ts +1 -0
  89. package/footer/footerLink.js +1 -0
  90. package/footer/footerRow.d.ts +1 -0
  91. package/footer/footerRow.js +1 -0
  92. package/footer/footerSection.d.ts +1 -0
  93. package/footer/footerSection.js +2 -1
  94. package/footer/footerTrademark.d.ts +1 -0
  95. package/footer/footerTrademark.js +1 -0
  96. package/footer/index.d.ts +2 -1
  97. package/footer/index.js +2 -2
  98. package/footer/theme.d.ts +1 -0
  99. package/footer/theme.js +2 -0
  100. package/header/context.d.ts +4 -0
  101. package/header/context.js +23 -0
  102. package/header/header.d.ts +34 -0
  103. package/header/header.js +118 -0
  104. package/header/header.types.d.ts +84 -0
  105. package/header/headerContent.d.ts +4 -0
  106. package/header/headerContent.js +28 -0
  107. package/header/headerCreateAccount.d.ts +4 -0
  108. package/header/headerCreateAccount.js +44 -0
  109. package/header/headerDivider.d.ts +4 -0
  110. package/header/headerDivider.js +28 -0
  111. package/header/headerLink.d.ts +4 -0
  112. package/header/headerLink.js +43 -0
  113. package/header/headerLinks.d.ts +4 -0
  114. package/header/headerLinks.js +41 -0
  115. package/header/headerLogo.d.ts +4 -0
  116. package/header/headerLogo.js +48 -0
  117. package/header/headerMobileContent.d.ts +4 -0
  118. package/header/headerMobileContent.js +30 -0
  119. package/header/headerMobileToggle.d.ts +4 -0
  120. package/header/headerMobileToggle.js +34 -0
  121. package/header/headerNotifications.d.ts +4 -0
  122. package/header/headerNotifications.js +52 -0
  123. package/header/headerProfile.d.ts +4 -0
  124. package/header/headerProfile.js +101 -0
  125. package/header/headerProfile.types.d.ts +35 -0
  126. package/header/headerServices.d.ts +4 -0
  127. package/header/headerServices.js +51 -0
  128. package/header/headerSignIn.d.ts +4 -0
  129. package/header/headerSignIn.js +40 -0
  130. package/header/index.d.ts +17 -0
  131. package/header/index.js +34 -0
  132. package/header/loggedInHeader.d.ts +4 -0
  133. package/header/loggedInHeader.js +53 -0
  134. package/header/loggedOutHeader.d.ts +4 -0
  135. package/header/loggedOutHeader.js +54 -0
  136. package/header/theme.d.ts +32 -0
  137. package/header/theme.js +52 -0
  138. package/heading/heading.d.ts +2 -2
  139. package/heading/heading.js +5 -4
  140. package/heading/heading.types.d.ts +7 -2
  141. package/heading/headings.js +1 -1
  142. package/heading/index.d.ts +1 -1
  143. package/heading/index.js +2 -2
  144. package/heading/theme.d.ts +1 -0
  145. package/heading/theme.js +2 -0
  146. package/icon/helpers.js +2 -2
  147. package/icon/icon.d.ts +1 -0
  148. package/icon/icon.js +2 -2
  149. package/icon/icon.types.d.ts +7 -4
  150. package/icon/index.d.ts +1 -1
  151. package/icon/index.js +1 -1
  152. package/icon/theme.d.ts +1 -0
  153. package/icon/theme.js +2 -0
  154. package/icons/baseIcons/fal/falFileInvoiceDollar.d.ts +3 -0
  155. package/icons/baseIcons/fal/falFileInvoiceDollar.js +7 -0
  156. package/icons/baseIcons/icons.d.ts +1 -0
  157. package/icons/baseIcons/icons.js +5 -3
  158. package/icons/baseIcons/types.d.ts +1 -1
  159. package/icons/cache.d.ts +15 -0
  160. package/icons/{library.js → cache.js} +10 -6
  161. package/icons/index.d.ts +1 -1
  162. package/icons/index.js +3 -3
  163. package/icons/types.d.ts +10 -3
  164. package/image/image.d.ts +2 -0
  165. package/image/image.js +11 -2
  166. package/image/image.types.d.ts +3 -2
  167. package/image/index.d.ts +1 -1
  168. package/image/index.js +1 -1
  169. package/image/theme.d.ts +1 -0
  170. package/image/theme.js +2 -0
  171. package/index.d.ts +1 -1
  172. package/index.js +1 -1
  173. package/input/helpers.d.ts +1 -0
  174. package/input/helpers.js +1 -0
  175. package/input/index.d.ts +1 -1
  176. package/input/index.js +2 -2
  177. package/input/input.d.ts +7 -3
  178. package/input/input.js +17 -7
  179. package/input/input.types.d.ts +33 -4
  180. package/input/inputIcon.d.ts +1 -0
  181. package/input/inputIcon.js +2 -1
  182. package/input/inputInput.d.ts +2 -2
  183. package/input/inputInput.js +10 -5
  184. package/input/theme.d.ts +1 -0
  185. package/input/theme.js +2 -0
  186. package/link/index.d.ts +1 -1
  187. package/link/index.js +2 -2
  188. package/link/link.d.ts +6 -3
  189. package/link/link.js +15 -9
  190. package/link/link.types.d.ts +12 -4
  191. package/link/linkIcon.d.ts +1 -0
  192. package/link/linkIcon.js +3 -5
  193. package/link/linkText.d.ts +1 -0
  194. package/link/linkText.js +3 -5
  195. package/link/theme.d.ts +6 -0
  196. package/link/theme.js +9 -1
  197. package/list/index.d.ts +1 -1
  198. package/list/index.js +2 -2
  199. package/list/list.d.ts +3 -3
  200. package/list/list.js +13 -8
  201. package/list/list.types.d.ts +29 -8
  202. package/list/listDivider.d.ts +1 -0
  203. package/list/listDivider.js +3 -5
  204. package/list/listHeading.d.ts +1 -0
  205. package/list/listHeading.js +4 -6
  206. package/list/listIcon.d.ts +1 -0
  207. package/list/listIcon.js +3 -5
  208. package/list/listItem.d.ts +5 -2
  209. package/list/listItem.js +52 -19
  210. package/list/listText.d.ts +1 -0
  211. package/list/listText.js +3 -5
  212. package/list/theme.d.ts +1 -0
  213. package/list/theme.js +5 -2
  214. package/menu/menu.d.ts +1 -0
  215. package/menu/menu.js +1 -0
  216. package/menu/menu.types.d.ts +3 -0
  217. package/menu/menuButton.d.ts +1 -0
  218. package/menu/menuButton.js +3 -4
  219. package/menu/menuItem.d.ts +1 -0
  220. package/menu/menuItem.js +2 -1
  221. package/menu/menuList.d.ts +1 -0
  222. package/menu/menuList.js +3 -4
  223. package/menu/theme.d.ts +16 -2
  224. package/menu/theme.js +18 -3
  225. package/notification/index.d.ts +2 -2
  226. package/notification/index.js +3 -3
  227. package/notification/notification.d.ts +5 -1
  228. package/notification/notification.js +12 -27
  229. package/notification/notification.types.d.ts +10 -2
  230. package/notification/notificationButton.d.ts +1 -0
  231. package/notification/notificationButton.js +4 -5
  232. package/notification/notificationIcon.d.ts +1 -0
  233. package/notification/notificationIcon.js +7 -7
  234. package/notification/notificationText.d.ts +1 -0
  235. package/notification/notificationText.js +3 -5
  236. package/notification/notificationTitle.d.ts +1 -0
  237. package/notification/notificationTitle.js +3 -5
  238. package/notification/theme.d.ts +1 -0
  239. package/notification/theme.js +2 -0
  240. package/p/index.d.ts +1 -1
  241. package/p/index.js +1 -1
  242. package/p/p.d.ts +2 -2
  243. package/p/p.js +5 -4
  244. package/p/p.types.d.ts +7 -2
  245. package/p/theme.d.ts +1 -0
  246. package/p/theme.js +2 -0
  247. package/package.json +1 -1
  248. package/panel/index.d.ts +1 -1
  249. package/panel/index.js +1 -1
  250. package/panel/panel.d.ts +4 -0
  251. package/panel/panel.js +4 -0
  252. package/panel/panel.types.d.ts +1 -2
  253. package/panel/theme.d.ts +1 -0
  254. package/panel/theme.js +2 -0
  255. package/popover/consts.d.ts +6 -0
  256. package/popover/consts.js +42 -0
  257. package/popover/index.d.ts +1 -1
  258. package/popover/index.js +1 -1
  259. package/popover/popover.d.ts +5 -1
  260. package/popover/popover.js +16 -1
  261. package/popover/popover.types.d.ts +4 -1
  262. package/popover/popoverContent.d.ts +2 -1
  263. package/popover/popoverContent.js +6 -1
  264. package/popover/popoverTrigger.d.ts +4 -0
  265. package/popover/popoverTrigger.js +4 -0
  266. package/popover/theme.d.ts +1 -0
  267. package/popover/theme.js +2 -0
  268. package/popover/usePopover.d.ts +5 -0
  269. package/popover/usePopover.js +21 -11
  270. package/popover/usePopover.types.d.ts +17 -6
  271. package/radio/index.d.ts +1 -1
  272. package/radio/index.js +2 -2
  273. package/radio/radio.d.ts +5 -4
  274. package/radio/radio.js +20 -10
  275. package/radio/radio.types.d.ts +19 -4
  276. package/radio/radioGroup.d.ts +5 -2
  277. package/radio/radioGroup.js +11 -7
  278. package/radio/radioGroup.types.d.ts +10 -2
  279. package/radio/theme.d.ts +1 -0
  280. package/radio/theme.js +2 -0
  281. package/skeleton/index.d.ts +1 -1
  282. package/skeleton/index.js +1 -1
  283. package/skeleton/skeleton.d.ts +2 -2
  284. package/skeleton/skeleton.js +4 -3
  285. package/skeleton/skeleton.types.d.ts +5 -2
  286. package/skeleton/theme.d.ts +1 -0
  287. package/skeleton/theme.js +2 -0
  288. package/spinner/index.d.ts +1 -1
  289. package/spinner/index.js +1 -1
  290. package/spinner/spinner.d.ts +6 -2
  291. package/spinner/spinner.js +12 -5
  292. package/spinner/spinner.types.d.ts +10 -6
  293. package/spinner/theme.d.ts +1 -0
  294. package/spinner/theme.js +2 -0
  295. package/svg/helpers.d.ts +1 -1
  296. package/svg/index.d.ts +1 -1
  297. package/svg/index.js +1 -1
  298. package/svg/svg.d.ts +6 -1
  299. package/svg/svg.js +14 -5
  300. package/svg/svg.types.d.ts +6 -4
  301. package/switch/context.d.ts +2 -2
  302. package/switch/index.d.ts +1 -1
  303. package/switch/index.js +2 -2
  304. package/switch/switch.d.ts +6 -3
  305. package/switch/switch.js +15 -12
  306. package/switch/switch.types.d.ts +37 -4
  307. package/switch/switchButton.d.ts +5 -5
  308. package/switch/switchButton.js +34 -26
  309. package/switch/switchLabel.d.ts +1 -0
  310. package/switch/switchLabel.js +3 -5
  311. package/switch/theme.d.ts +1 -0
  312. package/switch/theme.js +2 -0
  313. package/system/animations.d.ts +3 -4
  314. package/system/backgrounds.d.ts +4 -5
  315. package/system/borders.d.ts +60 -61
  316. package/system/custom.d.ts +4 -4
  317. package/system/effects.d.ts +7 -8
  318. package/system/flexboxGrids.d.ts +5 -6
  319. package/system/flexboxes.d.ts +28 -29
  320. package/system/grids.d.ts +25 -26
  321. package/system/index.d.ts +0 -1
  322. package/system/index.js +0 -6
  323. package/system/interactivity.d.ts +11 -12
  324. package/system/layout.d.ts +31 -32
  325. package/system/sizing.d.ts +13 -14
  326. package/system/space.d.ts +37 -38
  327. package/system/system.d.ts +4 -5
  328. package/system/system.js +3 -1
  329. package/system/tables.d.ts +5 -6
  330. package/system/transforms.d.ts +22 -23
  331. package/system/transitions.d.ts +11 -12
  332. package/system/typography.d.ts +33 -34
  333. package/t/index.d.ts +1 -1
  334. package/t/index.js +1 -1
  335. package/t/t.d.ts +2 -2
  336. package/t/t.js +5 -4
  337. package/t/t.types.d.ts +8 -2
  338. package/t/theme.d.ts +1 -0
  339. package/t/theme.js +2 -0
  340. package/tag/index.d.ts +1 -1
  341. package/tag/index.js +2 -2
  342. package/tag/tag.d.ts +6 -3
  343. package/tag/tag.js +14 -7
  344. package/tag/tag.types.d.ts +16 -2
  345. package/tag/tagButton.d.ts +1 -0
  346. package/tag/tagButton.js +4 -16
  347. package/tag/tagIcon.d.ts +1 -0
  348. package/tag/tagIcon.js +3 -5
  349. package/tag/tagText.d.ts +1 -0
  350. package/tag/tagText.js +3 -5
  351. package/tag/theme.d.ts +1 -0
  352. package/tag/theme.js +8 -0
  353. package/textarea/helpers.d.ts +1 -0
  354. package/textarea/helpers.js +1 -0
  355. package/textarea/index.d.ts +1 -1
  356. package/textarea/index.js +1 -1
  357. package/textarea/textarea.d.ts +5 -3
  358. package/textarea/textarea.js +23 -10
  359. package/textarea/textarea.types.d.ts +22 -2
  360. package/textarea/theme.d.ts +1 -0
  361. package/textarea/theme.js +2 -0
  362. package/theme/components.d.ts +76 -2
  363. package/theme/components.js +38 -36
  364. package/theme/defaultTheme.d.ts +81 -2
  365. package/theme/foundations/colors.d.ts +10 -0
  366. package/theme/foundations/colors.js +8 -2
  367. package/theme/foundations/index.d.ts +5 -0
  368. package/theme/foundations/shadows.js +3 -3
  369. package/theme/foundations/transformers.js +3 -2
  370. package/theme/index.d.ts +1 -3
  371. package/theme/index.js +4 -5
  372. package/theme/types.d.ts +3 -2
  373. package/utils/assertion.d.ts +5 -5
  374. package/utils/assertion.js +8 -4
  375. package/utils/object.d.ts +2 -2
  376. package/utils/object.js +3 -1
  377. package/utils/styles.d.ts +2 -2
  378. package/utils/styles.js +4 -4
  379. package/utils/types.d.ts +8 -3
  380. package/core/types/component.d.ts +0 -25
  381. package/core/types/index.d.ts +0 -2
  382. package/core/types/index.js +0 -14
  383. package/core/types/themeGet.d.ts +0 -24
  384. package/core/utils.d.ts +0 -56
  385. package/core/utils.js +0 -194
  386. package/core/vuiProvider.d.ts +0 -20
  387. package/icons/library.d.ts +0 -11
  388. package/popover/plugins.d.ts +0 -3
  389. package/popover/plugins.js +0 -24
  390. package/styles/fontFaces.js +0 -4
  391. package/styles/helpers.d.ts +0 -4
  392. package/styles/helpers.js +0 -8
  393. package/styles/index.d.ts +0 -3
  394. /package/{styles → core/vuiProvider}/animations.d.ts +0 -0
  395. /package/{styles → core/vuiProvider}/animations.js +0 -0
  396. /package/{styles → core/vuiProvider}/fontFaces.d.ts +0 -0
  397. /package/{core/types/component.js → header/header.types.js} +0 -0
  398. /package/{core/types/themeGet.js → header/headerProfile.types.js} +0 -0
@@ -10,24 +10,25 @@ var theme_4 = __importDefault(require("../card/theme"));
10
10
  var theme_5 = __importDefault(require("../checkbox/theme"));
11
11
  var theme_6 = __importDefault(require("../divider/theme"));
12
12
  var theme_7 = __importDefault(require("../footer/theme"));
13
- var theme_8 = __importDefault(require("../heading/theme"));
14
- var theme_9 = __importDefault(require("../icon/theme"));
15
- var theme_10 = __importDefault(require("../image/theme"));
16
- var theme_11 = __importDefault(require("../input/theme"));
17
- var theme_12 = __importDefault(require("../link/theme"));
18
- var theme_13 = __importDefault(require("../list/theme"));
19
- var theme_14 = __importDefault(require("../menu/theme"));
20
- var theme_15 = __importDefault(require("../notification/theme"));
21
- var theme_16 = __importDefault(require("../p/theme"));
22
- var theme_17 = __importDefault(require("../panel/theme"));
23
- var theme_18 = __importDefault(require("../popover/theme"));
24
- var theme_19 = __importDefault(require("../radio/theme"));
25
- var theme_20 = __importDefault(require("../skeleton/theme"));
26
- var theme_21 = __importDefault(require("../spinner/theme"));
27
- var theme_22 = __importDefault(require("../switch/theme"));
28
- var theme_23 = __importDefault(require("../t/theme"));
29
- var theme_24 = __importDefault(require("../tag/theme"));
30
- var theme_25 = __importDefault(require("../textarea/theme"));
13
+ var theme_8 = __importDefault(require("../header/theme"));
14
+ var theme_9 = __importDefault(require("../heading/theme"));
15
+ var theme_10 = __importDefault(require("../icon/theme"));
16
+ var theme_11 = __importDefault(require("../image/theme"));
17
+ var theme_12 = __importDefault(require("../input/theme"));
18
+ var theme_13 = __importDefault(require("../link/theme"));
19
+ var theme_14 = __importDefault(require("../list/theme"));
20
+ var theme_15 = __importDefault(require("../menu/theme"));
21
+ var theme_16 = __importDefault(require("../notification/theme"));
22
+ var theme_17 = __importDefault(require("../p/theme"));
23
+ var theme_18 = __importDefault(require("../panel/theme"));
24
+ var theme_19 = __importDefault(require("../popover/theme"));
25
+ var theme_20 = __importDefault(require("../radio/theme"));
26
+ var theme_21 = __importDefault(require("../skeleton/theme"));
27
+ var theme_22 = __importDefault(require("../spinner/theme"));
28
+ var theme_23 = __importDefault(require("../switch/theme"));
29
+ var theme_24 = __importDefault(require("../t/theme"));
30
+ var theme_25 = __importDefault(require("../tag/theme"));
31
+ var theme_26 = __importDefault(require("../textarea/theme"));
31
32
  exports.default = {
32
33
  Avatar: theme_1.default,
33
34
  Box: theme_2.default,
@@ -36,22 +37,23 @@ exports.default = {
36
37
  Checkbox: theme_5.default,
37
38
  Divider: theme_6.default,
38
39
  Footer: theme_7.default,
39
- Heading: theme_8.default,
40
- Icon: theme_9.default,
41
- Image: theme_10.default,
42
- Input: theme_11.default,
43
- Link: theme_12.default,
44
- List: theme_13.default,
45
- Menu: theme_14.default,
46
- Notification: theme_15.default,
47
- P: theme_16.default,
48
- Panel: theme_17.default,
49
- Popover: theme_18.default,
50
- Radio: theme_19.default,
51
- Skeleton: theme_20.default,
52
- Spinner: theme_21.default,
53
- Switch: theme_22.default,
54
- T: theme_23.default,
55
- Tag: theme_24.default,
56
- Textarea: theme_25.default
40
+ Header: theme_8.default,
41
+ Heading: theme_9.default,
42
+ Icon: theme_10.default,
43
+ Image: theme_11.default,
44
+ Input: theme_12.default,
45
+ Link: theme_13.default,
46
+ List: theme_14.default,
47
+ Menu: theme_15.default,
48
+ Notification: theme_16.default,
49
+ P: theme_17.default,
50
+ Panel: theme_18.default,
51
+ Popover: theme_19.default,
52
+ Radio: theme_20.default,
53
+ Skeleton: theme_21.default,
54
+ Spinner: theme_22.default,
55
+ Switch: theme_23.default,
56
+ T: theme_24.default,
57
+ Tag: theme_25.default,
58
+ Textarea: theme_26.default
57
59
  };
@@ -96,6 +96,11 @@ declare const defaultTheme: {
96
96
  90: string;
97
97
  100: string;
98
98
  };
99
+ disabled: {
100
+ bg: string;
101
+ border: string;
102
+ color: string;
103
+ };
99
104
  };
100
105
  durations: {
101
106
  instant: string;
@@ -163,6 +168,7 @@ declare const defaultTheme: {
163
168
  zIndices: {};
164
169
  components: {
165
170
  Avatar: {
171
+ baseStyle: {};
166
172
  defaultProps: {
167
173
  colorScheme: string;
168
174
  size: string;
@@ -211,11 +217,13 @@ declare const defaultTheme: {
211
217
  };
212
218
  };
213
219
  Box: {
220
+ baseStyle: {};
214
221
  defaultProps: {};
215
222
  sizes: {};
216
223
  variants: {};
217
224
  };
218
225
  Button: {
226
+ baseStyle: {};
219
227
  defaultProps: {
220
228
  colorScheme: string;
221
229
  size: string;
@@ -320,11 +328,13 @@ declare const defaultTheme: {
320
328
  };
321
329
  };
322
330
  Card: {
331
+ baseStyle: {};
323
332
  defaultProps: {};
324
333
  sizes: {};
325
334
  variants: {};
326
335
  };
327
336
  Checkbox: {
337
+ baseStyle: {};
328
338
  defaultProps: {
329
339
  colorScheme: string;
330
340
  size: string;
@@ -370,17 +380,51 @@ declare const defaultTheme: {
370
380
  };
371
381
  };
372
382
  Divider: {
383
+ baseStyle: {};
373
384
  defaultProps: {};
374
385
  sizes: {};
375
386
  variants: {};
376
387
  };
377
388
  Footer: {
389
+ baseStyle: {};
378
390
  defaultProps: {};
379
391
  parts: string[];
380
392
  sizes: {};
381
393
  variants: {};
382
394
  };
395
+ Header: {
396
+ baseStyle: {};
397
+ defaultProps: {};
398
+ parts: string[];
399
+ sizes: {};
400
+ variants: {
401
+ test: {
402
+ container: {
403
+ bg: string;
404
+ color: string;
405
+ };
406
+ profile: {
407
+ content: {
408
+ color: string;
409
+ };
410
+ trigger: {
411
+ color: string;
412
+ name: string;
413
+ };
414
+ };
415
+ services: {
416
+ button: {
417
+ variant: string;
418
+ };
419
+ };
420
+ signIn: {
421
+ colorScheme: string;
422
+ };
423
+ };
424
+ };
425
+ };
383
426
  Heading: {
427
+ baseStyle: {};
384
428
  defaultProps: {
385
429
  size: string;
386
430
  };
@@ -419,6 +463,7 @@ declare const defaultTheme: {
419
463
  variants: {};
420
464
  };
421
465
  Icon: {
466
+ baseStyle: {};
422
467
  defaultProps: {
423
468
  size: string;
424
469
  };
@@ -443,11 +488,13 @@ declare const defaultTheme: {
443
488
  variants: {};
444
489
  };
445
490
  Image: {
491
+ baseStyle: {};
446
492
  defaultProps: {};
447
493
  sizes: {};
448
494
  variants: {};
449
495
  };
450
496
  Input: {
497
+ baseStyle: {};
451
498
  defaultProps: {
452
499
  colorScheme: string;
453
500
  size: string;
@@ -509,6 +556,7 @@ declare const defaultTheme: {
509
556
  };
510
557
  };
511
558
  Link: {
559
+ baseStyle: {};
512
560
  defaultProps: {
513
561
  colorScheme: string;
514
562
  size: string;
@@ -554,9 +602,15 @@ declare const defaultTheme: {
554
602
  hoverColor: string;
555
603
  };
556
604
  };
605
+ plain: {
606
+ container: {
607
+ hoverTextDecoration: string;
608
+ };
609
+ };
557
610
  };
558
611
  };
559
612
  List: {
613
+ baseStyle: {};
560
614
  defaultProps: {
561
615
  colorScheme: string;
562
616
  size: string;
@@ -632,12 +686,27 @@ declare const defaultTheme: {
632
686
  };
633
687
  };
634
688
  Menu: {
635
- defaultProps: {};
689
+ baseStyle: {};
690
+ defaultProps: {
691
+ size: string;
692
+ };
636
693
  parts: string[];
637
- sizes: {};
694
+ sizes: {
695
+ md: {
696
+ list: {
697
+ size: string;
698
+ };
699
+ };
700
+ lg: {
701
+ list: {
702
+ size: string;
703
+ };
704
+ };
705
+ };
638
706
  variants: {};
639
707
  };
640
708
  Notification: {
709
+ baseStyle: {};
641
710
  defaultProps: {
642
711
  colorScheme: string;
643
712
  variant: string;
@@ -661,6 +730,7 @@ declare const defaultTheme: {
661
730
  };
662
731
  };
663
732
  P: {
733
+ baseStyle: {};
664
734
  defaultProps: {
665
735
  size: string;
666
736
  };
@@ -689,6 +759,7 @@ declare const defaultTheme: {
689
759
  variants: {};
690
760
  };
691
761
  Panel: {
762
+ baseStyle: {};
692
763
  defaultProps: {
693
764
  variant: string;
694
765
  };
@@ -704,12 +775,14 @@ declare const defaultTheme: {
704
775
  };
705
776
  };
706
777
  Popover: {
778
+ baseStyle: {};
707
779
  defaultProps: {};
708
780
  parts: string[];
709
781
  sizes: {};
710
782
  variants: {};
711
783
  };
712
784
  Radio: {
785
+ baseStyle: {};
713
786
  defaultProps: {
714
787
  colorScheme: string;
715
788
  size: string;
@@ -755,6 +828,7 @@ declare const defaultTheme: {
755
828
  };
756
829
  };
757
830
  Skeleton: {
831
+ baseStyle: {};
758
832
  defaultProps: {
759
833
  colorScheme: string;
760
834
  size: string;
@@ -787,6 +861,7 @@ declare const defaultTheme: {
787
861
  };
788
862
  };
789
863
  Spinner: {
864
+ baseStyle: {};
790
865
  defaultProps: {
791
866
  colorScheme: string;
792
867
  size: string;
@@ -851,6 +926,7 @@ declare const defaultTheme: {
851
926
  };
852
927
  };
853
928
  Switch: {
929
+ baseStyle: {};
854
930
  defaultProps: {
855
931
  colorScheme: string;
856
932
  size: string;
@@ -922,6 +998,7 @@ declare const defaultTheme: {
922
998
  };
923
999
  };
924
1000
  T: {
1001
+ baseStyle: {};
925
1002
  defaultProps: {
926
1003
  size: string;
927
1004
  };
@@ -942,6 +1019,7 @@ declare const defaultTheme: {
942
1019
  variants: {};
943
1020
  };
944
1021
  Tag: {
1022
+ baseStyle: {};
945
1023
  defaultProps: {
946
1024
  colorScheme: string;
947
1025
  size: string;
@@ -1020,6 +1098,7 @@ declare const defaultTheme: {
1020
1098
  };
1021
1099
  };
1022
1100
  Textarea: {
1101
+ baseStyle: {};
1023
1102
  defaultProps: {
1024
1103
  colorScheme: string;
1025
1104
  variant: string;
@@ -82,6 +82,11 @@ export declare const yellow: {
82
82
  90: string;
83
83
  100: string;
84
84
  };
85
+ export declare const disabled: {
86
+ bg: string;
87
+ border: string;
88
+ color: string;
89
+ };
85
90
  declare const _default: {
86
91
  blue: {
87
92
  10: string;
@@ -167,5 +172,10 @@ declare const _default: {
167
172
  90: string;
168
173
  100: string;
169
174
  };
175
+ disabled: {
176
+ bg: string;
177
+ border: string;
178
+ color: string;
179
+ };
170
180
  };
171
181
  export default _default;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.yellow = exports.red = exports.prussian = exports.pink = exports.grey = exports.green = exports.blue = void 0;
3
+ exports.disabled = exports.yellow = exports.red = exports.prussian = exports.pink = exports.grey = exports.green = exports.blue = void 0;
4
4
  exports.blue = {
5
5
  10: '#f6fbff',
6
6
  20: '#e2f1ff',
@@ -85,6 +85,11 @@ exports.yellow = {
85
85
  90: '#b67b08',
86
86
  100: '#83591a'
87
87
  };
88
+ exports.disabled = {
89
+ bg: exports.grey[10],
90
+ border: exports.grey[50],
91
+ color: exports.grey[50]
92
+ };
88
93
  exports.default = {
89
94
  blue: exports.blue,
90
95
  green: exports.green,
@@ -92,5 +97,6 @@ exports.default = {
92
97
  pink: exports.pink,
93
98
  prussian: exports.prussian,
94
99
  red: exports.red,
95
- yellow: exports.yellow
100
+ yellow: exports.yellow,
101
+ disabled: exports.disabled
96
102
  };
@@ -96,6 +96,11 @@ declare const _default: {
96
96
  90: string;
97
97
  100: string;
98
98
  };
99
+ disabled: {
100
+ bg: string;
101
+ border: string;
102
+ color: string;
103
+ };
99
104
  };
100
105
  durations: {
101
106
  instant: string;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var colors_1 = require("./colors");
4
3
  var utils_1 = require("../../utils");
5
- var greyLight = (0, utils_1.hexToRGB)(colors_1.grey[80], 0.4);
6
- var greyDark = (0, utils_1.hexToRGB)(colors_1.grey[80], 0.6);
4
+ var colors_1 = require("./colors");
5
+ var greyLight = (0, utils_1.hexToRGBA)(colors_1.grey[80], 0.4);
6
+ var greyDark = (0, utils_1.hexToRGBA)(colors_1.grey[80], 0.6);
7
7
  exports.default = {
8
8
  '0': "0 0 0 0 #fff",
9
9
  '1': "0 2px 5px 0 " + greyLight,
@@ -19,12 +19,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  var system_1 = require("@xstyled/system");
20
20
  exports.default = {
21
21
  border: function (value, _a) {
22
+ var _b;
22
23
  var props = _a.props;
23
24
  if (typeof value === 'number')
24
25
  return value + "px solid";
25
26
  var values = value.split(' ');
26
- var _b = __read(values, 3), width = _b[0], style = _b[1], color = _b[2];
27
- var colorValue = (0, system_1.getColor)(color)(props);
27
+ var _c = __read(values, 3), width = _c[0], _d = _c[1], style = _d === void 0 ? '' : _d, color = _c[2];
28
+ var colorValue = (_b = (0, system_1.getColor)(color)(props)) !== null && _b !== void 0 ? _b : '';
28
29
  return width + " " + style + " " + colorValue;
29
30
  },
30
31
  space: function (value) {
package/theme/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import defaultTheme from './defaultTheme';
2
1
  export { default as components } from './components';
3
- export { default as defaultTheme } from './defaultTheme';
2
+ export { default, default as defaultTheme } from './defaultTheme';
4
3
  export { default as foundations } from './foundations';
5
4
  export { default as animations } from './foundations/animations';
6
5
  export { default as borders } from './foundations/borders';
@@ -19,4 +18,3 @@ export { default as transforms } from './foundations/transforms';
19
18
  export { default as transitions } from './foundations/transitions';
20
19
  export { default as zIndices } from './foundations/zIndices';
21
20
  export * from './types';
22
- export default defaultTheme;
package/theme/index.js CHANGED
@@ -13,12 +13,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  return (mod && mod.__esModule) ? mod : { "default": mod };
14
14
  };
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.zIndices = exports.transitions = exports.transforms = exports.spaces = exports.sizes = exports.shadows = exports.screens = exports.ringWidths = exports.radii = exports.fontWeights = exports.fontSizes = exports.fonts = exports.durations = exports.colors = exports.borders = exports.animations = exports.foundations = exports.defaultTheme = exports.components = void 0;
17
- var defaultTheme_1 = __importDefault(require("./defaultTheme"));
16
+ exports.zIndices = exports.transitions = exports.transforms = exports.spaces = exports.sizes = exports.shadows = exports.screens = exports.ringWidths = exports.radii = exports.fontWeights = exports.fontSizes = exports.fonts = exports.durations = exports.colors = exports.borders = exports.animations = exports.foundations = exports.defaultTheme = exports.default = exports.components = void 0;
18
17
  var components_1 = require("./components");
19
18
  Object.defineProperty(exports, "components", { enumerable: true, get: function () { return __importDefault(components_1).default; } });
20
- var defaultTheme_2 = require("./defaultTheme");
21
- Object.defineProperty(exports, "defaultTheme", { enumerable: true, get: function () { return __importDefault(defaultTheme_2).default; } });
19
+ var defaultTheme_1 = require("./defaultTheme");
20
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(defaultTheme_1).default; } });
21
+ Object.defineProperty(exports, "defaultTheme", { enumerable: true, get: function () { return __importDefault(defaultTheme_1).default; } });
22
22
  var foundations_1 = require("./foundations");
23
23
  Object.defineProperty(exports, "foundations", { enumerable: true, get: function () { return __importDefault(foundations_1).default; } });
24
24
  var animations_1 = require("./foundations/animations");
@@ -54,4 +54,3 @@ Object.defineProperty(exports, "transitions", { enumerable: true, get: function
54
54
  var zIndices_1 = require("./foundations/zIndices");
55
55
  Object.defineProperty(exports, "zIndices", { enumerable: true, get: function () { return __importDefault(zIndices_1).default; } });
56
56
  __exportStar(require("./types"), exports);
57
- exports.default = defaultTheme_1.default;
package/theme/types.d.ts CHANGED
@@ -13,9 +13,10 @@ export declare type VuiThemeDefaults = typeof defaultTheme;
13
13
  /** Can be extended to add new properties to the theme or override default ones */
14
14
  export interface VuiThemeExtensions {
15
15
  }
16
- export interface ThemingProps<ThemeComponent extends string = string> {
16
+ /** Defines variant and size types of each component connected to the theme. */
17
+ export declare type ThemingProps<ThemeComponent extends string = string> = {
17
18
  variant?: ThemeComponent extends Component ? keyof VuiTheme['components'][ThemeComponent]['variants'] : string;
18
19
  size?: ThemeComponent extends keyof VuiTheme['components'] ? keyof VuiTheme['components'][ThemeComponent]['sizes'] : string;
19
- }
20
+ };
20
21
  /** VUI theme definition object, containing default values and extensions */
21
22
  export declare type VuiTheme = VuiThemeDefaults & VuiThemeExtensions;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { Dict } from './types';
3
3
  /** Is value an array. */
4
4
  export declare function isArray<T>(value: any): value is T[];
@@ -6,9 +6,9 @@ export declare function isArray<T>(value: any): value is T[];
6
6
  export declare function isFunction<T extends Function = Function>(value: any): value is T;
7
7
  /** Is value a number. */
8
8
  export declare function isNumber(value: any): value is number;
9
- /** Is value an object. */
10
- export declare function isObject(value: any): value is Dict;
11
- /** Is value a valid ReactText - string or number */
9
+ /** Is value a regular object (functions, arrays and React elements excluded). */
10
+ export declare function isObject<T = Dict>(value: any): value is T;
11
+ /** Is value a valid ReactText - string or number. */
12
12
  export declare function isReactText(value: any): value is React.ReactText;
13
- /** Is value a string */
13
+ /** Is value a string. */
14
14
  export declare function isString(value: any): value is string;
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.isString = exports.isReactText = exports.isObject = exports.isNumber = exports.isFunction = exports.isArray = void 0;
7
+ var react_1 = __importDefault(require("react"));
4
8
  /** Is value an array. */
5
9
  function isArray(value) {
6
10
  return Array.isArray(value);
@@ -16,17 +20,17 @@ function isNumber(value) {
16
20
  return typeof value === 'number';
17
21
  }
18
22
  exports.isNumber = isNumber;
19
- /** Is value an object. */
23
+ /** Is value a regular object (functions, arrays and React elements excluded). */
20
24
  function isObject(value) {
21
- return !!value && typeof value === 'object' && !isFunction(value) && !isArray(value);
25
+ return !!value && typeof value === 'object' && !isFunction(value) && !isArray(value) && !react_1.default.isValidElement(value);
22
26
  }
23
27
  exports.isObject = isObject;
24
- /** Is value a valid ReactText - string or number */
28
+ /** Is value a valid ReactText - string or number. */
25
29
  function isReactText(value) {
26
30
  return isNumber(value) || isString(value);
27
31
  }
28
32
  exports.isReactText = isReactText;
29
- /** Is value a string */
33
+ /** Is value a string. */
30
34
  function isString(value) {
31
35
  return Object.prototype.toString.call(value) === '[object String]';
32
36
  }
package/utils/object.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Dict } from './types';
2
2
  /** Removes keys from an object if their value is undefined. */
3
- export declare const filterUndefined: (object: Dict) => Dict<any>;
3
+ export declare function filterUndefined<T = Dict>(object: T): Partial<T>;
4
4
  /**
5
5
  * Recursively deep merges two objects in an immutable fashion, following these rules:
6
6
  * - Key exists in target and both keys are objects => merge
@@ -14,4 +14,4 @@ export declare function merge<S1 extends Dict, S2 extends Dict, S3 extends Dict,
14
14
  /**
15
15
  * Returns the items of an object that meet the condition specified in a callback function.
16
16
  */
17
- export declare function objectFilter<T extends Dict>(object: T, fn: (value: any, key: string, object: T) => boolean): Dict<any>;
17
+ export declare function objectFilter<T extends Dict, K extends keyof T>(object: T, fn: (value: any, key: string, object: T) => boolean): Partial<T>;
package/utils/object.js CHANGED
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.objectFilter = exports.merge = exports.filterUndefined = void 0;
4
4
  var assertion_1 = require("./assertion");
5
5
  /** Removes keys from an object if their value is undefined. */
6
- var filterUndefined = function (object) { return objectFilter(object, function (val) { return val !== null && val !== undefined; }); };
6
+ function filterUndefined(object) {
7
+ return objectFilter(object, function (val) { return val !== null && val !== undefined; });
8
+ }
7
9
  exports.filterUndefined = filterUndefined;
8
10
  function merge() {
9
11
  var sources = [];
package/utils/styles.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /** Concatenates individual className arguments and returns a single string. */
2
2
  export declare function cs(...classNames: any[]): string;
3
- /** Converts hex color value to rgb with optional alpha property */
4
- export declare function hexToRGB(hex: string, alpha?: number): string;
3
+ /** Converts hex color value to rgb with optional alpha property. */
4
+ export declare function hexToRGBA(hex: string, alpha?: number): string;
package/utils/styles.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hexToRGB = exports.cs = void 0;
3
+ exports.hexToRGBA = exports.cs = void 0;
4
4
  /** Concatenates individual className arguments and returns a single string. */
5
5
  function cs() {
6
6
  var classNames = [];
@@ -10,8 +10,8 @@ function cs() {
10
10
  return classNames.filter(Boolean).join(' ');
11
11
  }
12
12
  exports.cs = cs;
13
- /** Converts hex color value to rgb with optional alpha property */
14
- function hexToRGB(hex, alpha) {
13
+ /** Converts hex color value to rgb with optional alpha property. */
14
+ function hexToRGBA(hex, alpha) {
15
15
  var hexStr = hex;
16
16
  if (hexStr.charAt(0) === '#') {
17
17
  hexStr = hexStr.slice(1);
@@ -32,4 +32,4 @@ function hexToRGB(hex, alpha) {
32
32
  return "rgb(" + r + ", " + g + ", " + b + ")";
33
33
  }
34
34
  }
35
- exports.hexToRGB = hexToRGB;
35
+ exports.hexToRGBA = hexToRGBA;
package/utils/types.d.ts CHANGED
@@ -1,20 +1,25 @@
1
1
  import React, { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType } from 'react';
2
+ /** Type for any React element without breaking autocompletion. */
2
3
  export declare type AnyElement = React.ReactNode & {};
4
+ /** Type for any number without breaking autocompletion. */
3
5
  export declare type AnyNumber = number & {};
6
+ /** Type for any string without breaking autocompletion. */
4
7
  export declare type AnyString = string & {};
5
8
  /** Type of change event defaulted to input element */
6
9
  export declare type ChangeEvent<T = HTMLInputElement> = React.ChangeEvent<T>;
7
10
  /** Type of change event handler defaulted to input element */
8
11
  export declare type ChangeEventHandler<T = HTMLInputElement> = React.ChangeEventHandler<T>;
9
- export interface CreateContextOptions {
12
+ export declare type CreateContextOptions = {
10
13
  /** Message displayed when context is used outside of the provider */
11
14
  errorMessage?: string;
12
15
  /** Accessing context outside of provider won't throw error */
13
16
  isOptional?: boolean;
14
17
  /** Name of the context */
15
18
  name?: string;
16
- }
19
+ };
20
+ /** Return value of the createContext function. */
17
21
  export declare type CreateContextReturn<T> = [React.Provider<T>, () => T];
22
+ /** Basic dictionary typing. */
18
23
  export declare type Dict<T = any> = Record<string, T>;
19
24
  /** Type of blur/focus event defaulted to any html element */
20
25
  export declare type FocusEvent<T = HTMLElement> = React.FocusEvent<T>;
@@ -28,11 +33,11 @@ export declare type KeyboardEventHandler<T = HTMLElement> = React.KeyboardEventH
28
33
  export declare type MouseEvent<T = HTMLElement> = React.MouseEvent<T>;
29
34
  /** Type of mouse event handler defaulted to any html element */
30
35
  export declare type MouseEventHandler<T = HTMLElement> = React.MouseEventHandler<T>;
31
- export declare type PropGetter<T extends ElementType, Props = {}> = (props: PropsOf<T, Props>, ref?: React.Ref<any> | React.RefObject<any>) => RefPropsOf<T>;
32
36
  /** Merges component/element base props and custom props */
33
37
  export declare type PropsOf<C extends ElementType, Props = {}> = RightJoinProps<ComponentPropsWithoutRef<C>, Props>;
34
38
  /** Merges component/element base props and custom props including ref */
35
39
  export declare type RefPropsOf<C extends ElementType, Props = {}> = RightJoinProps<ComponentPropsWithRef<C>, Props>;
40
+ /** Render props of component's children. */
36
41
  export declare type RenderProps<P> = React.ReactNode | ((props: P) => React.ReactNode);
37
42
  /** Merges props definitions, overriding source keys */
38
43
  export declare type RightJoinProps<SourceProps, OverrideProps> = Omit<SourceProps, keyof OverrideProps> & OverrideProps;
@@ -1,25 +0,0 @@
1
- import { ElementType, PropsWithoutRef, PropsWithChildren, ReactElement } from 'react';
2
- import { PropsOf, RefPropsOf } from '../../utils';
3
- /** VUI component interface, which allows element props inference and extension, 'as' and 'ref' */
4
- export interface VuiComponent<C extends ElementType, Props = {}> {
5
- <AsC extends ElementType>(props: PropsWithChildren<RefPropsOf<AsC, PropsOf<C, Props>>> & {
6
- as: AsC;
7
- }): ReactElement<any, any> | null;
8
- (props: RefPropsOf<C, Props>): ReactElement<any, any> | null;
9
- defaultProps?: Partial<PropsOf<C, Props>>;
10
- displayName?: string;
11
- }
12
- /** Config for VUI component creator helper, which allows toggling memoization and 'areEqual' function */
13
- export interface VuiComponentConfig<C extends ElementType, Props = {}> {
14
- isMemo?: boolean;
15
- memoCompare?: (prevProps: Readonly<PropsWithChildren<PropsWithoutRef<PropsOf<C, Props>>>>, nextProps: Readonly<PropsWithChildren<PropsWithoutRef<PropsOf<C, Props>>>>) => boolean;
16
- }
17
- /**
18
- * Simpler VUI component interface, which allows element props inference and extension
19
- * Does not support 'as' or 'ref'
20
- */
21
- export interface VC<C extends ElementType, Props = {}> {
22
- (props: PropsOf<C, Props>): ReactElement<any, any> | null;
23
- defaultProps?: Partial<PropsOf<C, Props>>;
24
- displayName?: string;
25
- }