@veracity/vui 0.3.1 → 0.4.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 (438) 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 +16 -34
  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/consts.js +2 -2
  26. package/button/index.d.ts +2 -2
  27. package/button/index.js +3 -3
  28. package/button/theme.d.ts +1 -0
  29. package/button/theme.js +5 -3
  30. package/buttonGroup/buttonGroup.d.ts +5 -2
  31. package/buttonGroup/buttonGroup.js +12 -8
  32. package/buttonGroup/buttonGroup.types.d.ts +4 -2
  33. package/buttonGroup/helpers.d.ts +1 -1
  34. package/buttonGroup/helpers.js +1 -1
  35. package/buttonGroup/index.d.ts +1 -1
  36. package/buttonGroup/index.js +2 -2
  37. package/card/card.d.ts +4 -0
  38. package/card/card.js +8 -0
  39. package/card/card.types.d.ts +3 -2
  40. package/card/index.d.ts +1 -1
  41. package/card/index.js +1 -1
  42. package/card/theme.d.ts +1 -0
  43. package/card/theme.js +2 -0
  44. package/checkbox/checkbox.d.ts +5 -4
  45. package/checkbox/checkbox.js +20 -10
  46. package/checkbox/checkbox.types.d.ts +21 -4
  47. package/checkbox/checkboxGroup.d.ts +5 -2
  48. package/checkbox/checkboxGroup.js +11 -7
  49. package/checkbox/checkboxGroup.types.d.ts +9 -2
  50. package/checkbox/index.d.ts +1 -1
  51. package/checkbox/index.js +2 -2
  52. package/checkbox/theme.d.ts +1 -0
  53. package/checkbox/theme.js +2 -0
  54. package/core/index.d.ts +4 -5
  55. package/core/index.js +4 -12
  56. package/core/media.d.ts +38 -0
  57. package/core/media.js +79 -0
  58. package/core/styled.d.ts +3 -0
  59. package/core/styled.js +21 -3
  60. package/core/theme.d.ts +41 -0
  61. package/core/theme.js +94 -0
  62. package/core/vui.d.ts +31 -0
  63. package/core/vui.js +20 -0
  64. package/core/vuiProvider/fontFaces.js +4 -0
  65. package/core/{globalStyle.d.ts → vuiProvider/globalStyle.d.ts} +7 -0
  66. package/core/{globalStyle.js → vuiProvider/globalStyle.js} +17 -9
  67. package/core/vuiProvider/index.d.ts +5 -0
  68. package/core/vuiProvider/index.js +26 -0
  69. package/core/{resetCSS.d.ts → vuiProvider/resetCSS.d.ts} +1 -0
  70. package/core/{resetCSS.js → vuiProvider/resetCSS.js} +2 -1
  71. package/core/vuiProvider/vuiProvider.d.ts +13 -0
  72. package/core/{vuiProvider.js → vuiProvider/vuiProvider.js} +3 -2
  73. package/divider/divider.d.ts +2 -2
  74. package/divider/divider.js +5 -4
  75. package/divider/divider.types.d.ts +5 -2
  76. package/divider/index.d.ts +1 -1
  77. package/divider/index.js +1 -1
  78. package/divider/theme.d.ts +1 -0
  79. package/divider/theme.js +2 -0
  80. package/footer/consts.d.ts +108 -8
  81. package/footer/consts.js +21 -9
  82. package/footer/footer.d.ts +3 -1
  83. package/footer/footer.js +21 -10
  84. package/footer/footer.types.d.ts +5 -0
  85. package/footer/footerColumn.d.ts +122 -121
  86. package/footer/footerColumn.js +1 -0
  87. package/footer/footerHeading.d.ts +1 -0
  88. package/footer/footerHeading.js +1 -0
  89. package/footer/footerLink.d.ts +1 -0
  90. package/footer/footerLink.js +1 -0
  91. package/footer/footerRow.d.ts +1 -0
  92. package/footer/footerRow.js +1 -0
  93. package/footer/footerSection.d.ts +1 -0
  94. package/footer/footerSection.js +2 -1
  95. package/footer/footerTrademark.d.ts +1 -0
  96. package/footer/footerTrademark.js +1 -0
  97. package/footer/helpers.d.ts +2 -3
  98. package/footer/helpers.js +16 -16
  99. package/footer/index.d.ts +2 -1
  100. package/footer/index.js +2 -2
  101. package/footer/theme.d.ts +1 -0
  102. package/footer/theme.js +2 -0
  103. package/header/consts.d.ts +58 -0
  104. package/header/consts.js +76 -0
  105. package/header/context.d.ts +4 -0
  106. package/header/context.js +23 -0
  107. package/header/header.d.ts +34 -0
  108. package/header/header.js +133 -0
  109. package/header/header.types.d.ts +103 -0
  110. package/header/headerAccount.d.ts +4 -0
  111. package/header/headerAccount.js +109 -0
  112. package/header/headerAccount.types.d.ts +35 -0
  113. package/header/headerContent.d.ts +4 -0
  114. package/header/headerContent.js +28 -0
  115. package/header/headerCreateAccount.d.ts +4 -0
  116. package/header/headerCreateAccount.js +47 -0
  117. package/header/headerDivider.d.ts +4 -0
  118. package/header/headerDivider.js +28 -0
  119. package/header/headerLinkItem.d.ts +4 -0
  120. package/header/headerLinkItem.js +53 -0
  121. package/header/headerLinksList.d.ts +4 -0
  122. package/header/headerLinksList.js +44 -0
  123. package/header/headerLogo.d.ts +4 -0
  124. package/header/headerLogo.js +44 -0
  125. package/header/headerMobileContent.d.ts +4 -0
  126. package/header/headerMobileContent.js +31 -0
  127. package/header/headerMobileToggle.d.ts +4 -0
  128. package/header/headerMobileToggle.js +33 -0
  129. package/header/headerNotifications.d.ts +4 -0
  130. package/header/headerNotifications.js +51 -0
  131. package/header/headerServices.d.ts +4 -0
  132. package/header/headerServices.js +55 -0
  133. package/header/headerSignIn.d.ts +4 -0
  134. package/header/headerSignIn.js +40 -0
  135. package/header/helpers.d.ts +17 -0
  136. package/header/helpers.js +66 -0
  137. package/header/index.d.ts +21 -0
  138. package/header/index.js +38 -0
  139. package/header/loggedInHeader.d.ts +4 -0
  140. package/header/loggedInHeader.js +57 -0
  141. package/header/loggedOutHeader.d.ts +4 -0
  142. package/header/loggedOutHeader.js +57 -0
  143. package/header/theme.d.ts +85 -0
  144. package/header/theme.js +89 -0
  145. package/heading/heading.d.ts +2 -2
  146. package/heading/heading.js +5 -4
  147. package/heading/heading.types.d.ts +7 -2
  148. package/heading/headings.js +1 -1
  149. package/heading/index.d.ts +1 -1
  150. package/heading/index.js +2 -2
  151. package/heading/theme.d.ts +1 -0
  152. package/heading/theme.js +2 -0
  153. package/icon/helpers.js +2 -2
  154. package/icon/icon.d.ts +1 -0
  155. package/icon/icon.js +2 -2
  156. package/icon/icon.types.d.ts +7 -4
  157. package/icon/index.d.ts +1 -1
  158. package/icon/index.js +1 -1
  159. package/icon/theme.d.ts +1 -0
  160. package/icon/theme.js +2 -0
  161. package/icons/baseIcons/fal/falFileInvoiceDollar.d.ts +3 -0
  162. package/icons/baseIcons/fal/falFileInvoiceDollar.js +7 -0
  163. package/icons/baseIcons/fas/fasCalendarAlt.js +1 -1
  164. package/icons/baseIcons/icons.d.ts +1 -0
  165. package/icons/baseIcons/icons.js +5 -3
  166. package/icons/baseIcons/types.d.ts +1 -1
  167. package/icons/cache.d.ts +15 -0
  168. package/icons/{library.js → cache.js} +10 -6
  169. package/icons/index.d.ts +1 -1
  170. package/icons/index.js +3 -3
  171. package/icons/types.d.ts +10 -3
  172. package/image/image.d.ts +2 -0
  173. package/image/image.js +11 -2
  174. package/image/image.types.d.ts +3 -2
  175. package/image/index.d.ts +1 -1
  176. package/image/index.js +1 -1
  177. package/image/theme.d.ts +1 -0
  178. package/image/theme.js +2 -0
  179. package/index.d.ts +3 -1
  180. package/index.js +3 -1
  181. package/input/consts.js +2 -2
  182. package/input/helpers.d.ts +1 -0
  183. package/input/helpers.js +1 -0
  184. package/input/index.d.ts +1 -1
  185. package/input/index.js +2 -2
  186. package/input/input.d.ts +7 -3
  187. package/input/input.js +17 -7
  188. package/input/input.types.d.ts +36 -7
  189. package/input/inputIcon.d.ts +1 -0
  190. package/input/inputIcon.js +2 -1
  191. package/input/inputInput.d.ts +2 -2
  192. package/input/inputInput.js +10 -5
  193. package/input/theme.d.ts +1 -0
  194. package/input/theme.js +2 -0
  195. package/link/index.d.ts +1 -1
  196. package/link/index.js +2 -2
  197. package/link/link.d.ts +6 -3
  198. package/link/link.js +15 -9
  199. package/link/link.types.d.ts +15 -7
  200. package/link/linkIcon.d.ts +1 -0
  201. package/link/linkIcon.js +3 -5
  202. package/link/linkText.d.ts +1 -0
  203. package/link/linkText.js +3 -5
  204. package/link/theme.d.ts +6 -0
  205. package/link/theme.js +9 -1
  206. package/list/index.d.ts +1 -1
  207. package/list/index.js +2 -2
  208. package/list/list.d.ts +3 -3
  209. package/list/list.js +13 -8
  210. package/list/list.types.d.ts +29 -8
  211. package/list/listDivider.d.ts +1 -0
  212. package/list/listDivider.js +3 -5
  213. package/list/listHeading.d.ts +1 -0
  214. package/list/listHeading.js +4 -6
  215. package/list/listIcon.d.ts +1 -0
  216. package/list/listIcon.js +3 -5
  217. package/list/listItem.d.ts +5 -2
  218. package/list/listItem.js +52 -19
  219. package/list/listText.d.ts +1 -0
  220. package/list/listText.js +3 -5
  221. package/list/theme.d.ts +1 -0
  222. package/list/theme.js +5 -2
  223. package/menu/menu.d.ts +1 -0
  224. package/menu/menu.js +1 -0
  225. package/menu/menu.types.d.ts +3 -0
  226. package/menu/menuButton.d.ts +1 -0
  227. package/menu/menuButton.js +3 -4
  228. package/menu/menuItem.d.ts +1 -0
  229. package/menu/menuItem.js +9 -23
  230. package/menu/menuList.d.ts +1 -0
  231. package/menu/menuList.js +3 -4
  232. package/menu/theme.d.ts +16 -2
  233. package/menu/theme.js +18 -3
  234. package/modal/context.d.ts +4 -0
  235. package/modal/context.js +23 -0
  236. package/modal/focusLock.d.ts +9 -0
  237. package/modal/focusLock.js +47 -0
  238. package/modal/focusLock.types.d.ts +28 -0
  239. package/modal/focusLock.types.js +2 -0
  240. package/modal/index.d.ts +7 -0
  241. package/modal/index.js +24 -0
  242. package/modal/modal.d.ts +10 -0
  243. package/modal/modal.js +109 -0
  244. package/modal/modal.types.d.ts +40 -0
  245. package/modal/modal.types.js +2 -0
  246. package/modal/modalBackdrop.d.ts +4 -0
  247. package/modal/modalBackdrop.js +38 -0
  248. package/modal/modalManager.d.ts +12 -0
  249. package/modal/modalManager.js +33 -0
  250. package/modal/theme.d.ts +7 -0
  251. package/modal/theme.js +12 -0
  252. package/notification/consts.js +2 -2
  253. package/notification/index.d.ts +2 -2
  254. package/notification/index.js +3 -3
  255. package/notification/notification.d.ts +5 -1
  256. package/notification/notification.js +12 -27
  257. package/notification/notification.types.d.ts +11 -4
  258. package/notification/notificationButton.d.ts +1 -0
  259. package/notification/notificationButton.js +4 -5
  260. package/notification/notificationIcon.d.ts +1 -0
  261. package/notification/notificationIcon.js +7 -7
  262. package/notification/notificationText.d.ts +1 -0
  263. package/notification/notificationText.js +3 -5
  264. package/notification/notificationTitle.d.ts +1 -0
  265. package/notification/notificationTitle.js +3 -5
  266. package/notification/theme.d.ts +1 -0
  267. package/notification/theme.js +2 -0
  268. package/p/index.d.ts +1 -1
  269. package/p/index.js +1 -1
  270. package/p/p.d.ts +2 -2
  271. package/p/p.js +5 -4
  272. package/p/p.types.d.ts +7 -2
  273. package/p/theme.d.ts +1 -0
  274. package/p/theme.js +2 -0
  275. package/package.json +3 -1
  276. package/panel/index.d.ts +1 -1
  277. package/panel/index.js +1 -1
  278. package/panel/panel.d.ts +4 -0
  279. package/panel/panel.js +4 -0
  280. package/panel/panel.types.d.ts +1 -2
  281. package/panel/theme.d.ts +1 -0
  282. package/panel/theme.js +2 -0
  283. package/popover/consts.d.ts +6 -0
  284. package/popover/consts.js +42 -0
  285. package/popover/index.d.ts +1 -1
  286. package/popover/index.js +1 -1
  287. package/popover/popover.d.ts +6 -2
  288. package/popover/popover.js +20 -4
  289. package/popover/popover.types.d.ts +4 -1
  290. package/popover/popoverContent.d.ts +2 -1
  291. package/popover/popoverContent.js +6 -1
  292. package/popover/popoverTrigger.d.ts +4 -0
  293. package/popover/popoverTrigger.js +4 -0
  294. package/popover/theme.d.ts +1 -0
  295. package/popover/theme.js +2 -0
  296. package/popover/usePopover.d.ts +5 -0
  297. package/popover/usePopover.js +26 -18
  298. package/popover/usePopover.types.d.ts +17 -6
  299. package/portal/index.d.ts +3 -0
  300. package/{styles → portal}/index.js +5 -5
  301. package/portal/portal.d.ts +5 -0
  302. package/portal/portal.js +56 -0
  303. package/portal/portal.types.d.ts +7 -0
  304. package/portal/portal.types.js +2 -0
  305. package/radio/index.d.ts +1 -1
  306. package/radio/index.js +2 -2
  307. package/radio/radio.d.ts +5 -4
  308. package/radio/radio.js +20 -10
  309. package/radio/radio.types.d.ts +19 -4
  310. package/radio/radioGroup.d.ts +5 -2
  311. package/radio/radioGroup.js +11 -7
  312. package/radio/radioGroup.types.d.ts +10 -2
  313. package/radio/theme.d.ts +1 -0
  314. package/radio/theme.js +2 -0
  315. package/skeleton/index.d.ts +1 -1
  316. package/skeleton/index.js +1 -1
  317. package/skeleton/skeleton.d.ts +2 -2
  318. package/skeleton/skeleton.js +4 -3
  319. package/skeleton/skeleton.types.d.ts +5 -2
  320. package/skeleton/theme.d.ts +1 -0
  321. package/skeleton/theme.js +2 -0
  322. package/spinner/index.d.ts +1 -1
  323. package/spinner/index.js +1 -1
  324. package/spinner/spinner.d.ts +6 -2
  325. package/spinner/spinner.js +12 -5
  326. package/spinner/spinner.types.d.ts +10 -6
  327. package/spinner/theme.d.ts +1 -0
  328. package/spinner/theme.js +2 -0
  329. package/svg/helpers.d.ts +1 -1
  330. package/svg/index.d.ts +1 -1
  331. package/svg/index.js +1 -1
  332. package/svg/svg.d.ts +6 -1
  333. package/svg/svg.js +16 -5
  334. package/svg/svg.types.d.ts +7 -5
  335. package/switch/context.d.ts +2 -2
  336. package/switch/index.d.ts +1 -1
  337. package/switch/index.js +2 -2
  338. package/switch/switch.d.ts +6 -3
  339. package/switch/switch.js +15 -12
  340. package/switch/switch.types.d.ts +37 -4
  341. package/switch/switchButton.d.ts +5 -5
  342. package/switch/switchButton.js +34 -26
  343. package/switch/switchLabel.d.ts +1 -0
  344. package/switch/switchLabel.js +3 -5
  345. package/switch/theme.d.ts +1 -0
  346. package/switch/theme.js +2 -0
  347. package/system/animations.d.ts +3 -4
  348. package/system/backgrounds.d.ts +4 -5
  349. package/system/borders.d.ts +60 -61
  350. package/system/custom.d.ts +4 -4
  351. package/system/effects.d.ts +7 -8
  352. package/system/flexboxGrids.d.ts +5 -6
  353. package/system/flexboxes.d.ts +28 -29
  354. package/system/grids.d.ts +25 -26
  355. package/system/index.d.ts +0 -1
  356. package/system/index.js +0 -6
  357. package/system/interactivity.d.ts +11 -12
  358. package/system/layout.d.ts +31 -32
  359. package/system/sizing.d.ts +13 -14
  360. package/system/space.d.ts +37 -38
  361. package/system/system.d.ts +4 -5
  362. package/system/system.js +3 -1
  363. package/system/tables.d.ts +5 -6
  364. package/system/transforms.d.ts +22 -23
  365. package/system/transitions.d.ts +11 -12
  366. package/system/typography.d.ts +33 -34
  367. package/t/index.d.ts +1 -1
  368. package/t/index.js +1 -1
  369. package/t/t.d.ts +2 -2
  370. package/t/t.js +5 -4
  371. package/t/t.types.d.ts +8 -2
  372. package/t/theme.d.ts +1 -0
  373. package/t/theme.js +2 -0
  374. package/tag/index.d.ts +1 -1
  375. package/tag/index.js +2 -2
  376. package/tag/tag.d.ts +6 -3
  377. package/tag/tag.js +14 -7
  378. package/tag/tag.types.d.ts +19 -6
  379. package/tag/tagButton.d.ts +1 -0
  380. package/tag/tagButton.js +4 -16
  381. package/tag/tagIcon.d.ts +1 -0
  382. package/tag/tagIcon.js +3 -5
  383. package/tag/tagText.d.ts +1 -0
  384. package/tag/tagText.js +3 -5
  385. package/tag/theme.d.ts +1 -0
  386. package/tag/theme.js +8 -0
  387. package/textarea/helpers.d.ts +1 -0
  388. package/textarea/helpers.js +1 -0
  389. package/textarea/index.d.ts +1 -1
  390. package/textarea/index.js +1 -1
  391. package/textarea/textarea.d.ts +5 -3
  392. package/textarea/textarea.js +23 -10
  393. package/textarea/textarea.types.d.ts +22 -2
  394. package/textarea/theme.d.ts +1 -0
  395. package/textarea/theme.js +2 -0
  396. package/theme/components.d.ts +129 -2
  397. package/theme/components.js +38 -36
  398. package/theme/defaultTheme.d.ts +134 -2
  399. package/theme/foundations/colors.d.ts +10 -0
  400. package/theme/foundations/colors.js +8 -2
  401. package/theme/foundations/index.d.ts +5 -0
  402. package/theme/foundations/shadows.js +3 -3
  403. package/theme/foundations/transformers.js +3 -2
  404. package/theme/index.d.ts +1 -3
  405. package/theme/index.js +4 -5
  406. package/theme/types.d.ts +3 -2
  407. package/utils/assertion.d.ts +5 -5
  408. package/utils/assertion.js +8 -4
  409. package/utils/index.d.ts +1 -0
  410. package/utils/index.js +1 -0
  411. package/utils/object.d.ts +2 -2
  412. package/utils/object.js +3 -1
  413. package/utils/react.d.ts +10 -5
  414. package/utils/react.js +64 -9
  415. package/utils/string.d.ts +5 -0
  416. package/utils/string.js +19 -0
  417. package/utils/styles.d.ts +2 -2
  418. package/utils/styles.js +4 -4
  419. package/utils/types.d.ts +11 -4
  420. package/core/types/component.d.ts +0 -25
  421. package/core/types/index.d.ts +0 -2
  422. package/core/types/index.js +0 -14
  423. package/core/types/themeGet.d.ts +0 -24
  424. package/core/utils.d.ts +0 -56
  425. package/core/utils.js +0 -194
  426. package/core/vuiProvider.d.ts +0 -20
  427. package/icons/library.d.ts +0 -11
  428. package/popover/plugins.d.ts +0 -3
  429. package/popover/plugins.js +0 -24
  430. package/styles/fontFaces.js +0 -4
  431. package/styles/helpers.d.ts +0 -4
  432. package/styles/helpers.js +0 -8
  433. package/styles/index.d.ts +0 -3
  434. /package/{styles → core/vuiProvider}/animations.d.ts +0 -0
  435. /package/{styles → core/vuiProvider}/animations.js +0 -0
  436. /package/{styles → core/vuiProvider}/fontFaces.d.ts +0 -0
  437. /package/{core/types/component.js → header/header.types.js} +0 -0
  438. /package/{core/types/themeGet.js → header/headerAccount.types.js} +0 -0
@@ -1 +1 @@
1
- export declare type BaseIcon = 'cubPowerBi' | 'cubVeracity' | 'cuiCheckboxIndeterminate' | 'cuiCheckboxSelected' | 'cuiCheckboxUnselected' | 'cuiRadioSelected' | 'cuiRadioUnselected' | 'culApiProduct' | 'culApiService' | 'culCircleChart' | 'culCircleChartAlt' | 'culCovid' | 'culDeepSearch' | 'culDotsMenu' | 'culGlobePlus' | 'culListDense' | 'culMapMarkerStar' | 'culNumber1' | 'culPlusThin' | 'culScreenshot' | 'culScreenshotAlt' | 'culShortcut' | 'culTarget' | 'culTimesThin' | 'culTransformer' | 'culUserTransfer' | 'culVeracityService' | 'culVessel' | 'culVesselGroup' | 'cusDotFull' | 'cusDotFullAlt' | 'cusDotsMenu' | 'cusTransformer' | 'cusVessel' | 'fabApplePay' | 'fabBluetooth' | 'fabBtc' | 'fabCcAmazonPay' | 'fabCcAmex' | 'fabCcApplePay' | 'fabCcDinersClub' | 'fabCcMastercard' | 'fabCcPaypal' | 'fabCcVisa' | 'fabDhl' | 'fabEbay' | 'fabFacebook' | 'fabFedex' | 'fabFirefox' | 'fabGoogle' | 'fabGoogleDrive' | 'fabLinkedinIn' | 'fabMedium' | 'fabOsi' | 'fabSlack' | 'fabTwitter' | 'fabUps' | 'fabYoutube' | 'fadSpinnerThird' | 'falAddressBook' | 'falAddressCard' | 'falAnalytics' | 'falAngleDoubleDown' | 'falAngleDoubleLeft' | 'falAngleDoubleRight' | 'falAngleDoubleUp' | 'falAngleDown' | 'falAngleLeft' | 'falAngleRight' | 'falAngleUp' | 'falArrowAltDown' | 'falArrowAltLeft' | 'falArrowAltRight' | 'falArrowAltUp' | 'falArrowCircleDown' | 'falArrowCircleLeft' | 'falArrowCircleRight' | 'falArrowCircleUp' | 'falArrowDown' | 'falArrowFromBottom' | 'falArrowFromLeft' | 'falArrowFromRight' | 'falArrowFromTop' | 'falArrowLeft' | 'falArrowRight' | 'falArrowToBottom' | 'falArrowToLeft' | 'falArrowToRight' | 'falArrowToTop' | 'falArrowUp' | 'falArrows' | 'falAward' | 'falBan' | 'falBars' | 'falBell' | 'falBookOpen' | 'falBroadcastTower' | 'falBroom' | 'falBuilding' | 'falBullseye' | 'falCalendar' | 'falCalendarAlt' | 'falCamera' | 'falCaretDown' | 'falCaretLeft' | 'falCaretRight' | 'falCaretUp' | 'falCauldron' | 'falChartArea' | 'falChartBar' | 'falChartLine' | 'falChartLineDown' | 'falChartNetwork' | 'falChartPie' | 'falChartPieAlt' | 'falChartScatter' | 'falCheck' | 'falCheckCircle' | 'falCheckSquare' | 'falChevronCircleDown' | 'falChevronCircleLeft' | 'falChevronCircleRight' | 'falChevronCircleUp' | 'falChevronDoubleDown' | 'falChevronDoubleLeft' | 'falChevronDoubleRight' | 'falChevronDoubleUp' | 'falChevronDown' | 'falChevronLeft' | 'falChevronRight' | 'falChevronUp' | 'falCircle' | 'falCloud' | 'falCloudShowersHeavy' | 'falCloudSnow' | 'falCloudSun' | 'falCloudSunRain' | 'falCloudUpload' | 'falCode' | 'falCog' | 'falCogs' | 'falComment' | 'falCommentAlt' | 'falCompressAlt' | 'falCopy' | 'falCreditCard' | 'falDatabase' | 'falDotCircle' | 'falDownload' | 'falEdit' | 'falEllipsisH' | 'falEllipsisV' | 'falEnvelope' | 'falExchange' | 'falExclamationCircle' | 'falExclamationTriangle' | 'falExpandAlt' | 'falExternalLink' | 'falEye' | 'falEyeSlash' | 'falFile' | 'falFileAlt' | 'falFileArchive' | 'falFileAudio' | 'falFileCertificate' | 'falFileChartLine' | 'falFileChartPie' | 'falFileCheck' | 'falFileCode' | 'falFileCsv' | 'falFileEdit' | 'falFileExcel' | 'falFileImage' | 'falFilePdf' | 'falFilePlus' | 'falFilePowerpoint' | 'falFileSpreadsheet' | 'falFileVideo' | 'falFileWord' | 'falFilter' | 'falFlag' | 'falFolder' | 'falFolderOpen' | 'falFolderPlus' | 'falFolders' | 'falGlassesAlt' | 'falGlobe' | 'falHome' | 'falHourglass' | 'falImage' | 'falInfoCircle' | 'falKey' | 'falLayerGroup' | 'falLayerPlus' | 'falLink' | 'falList' | 'falLockAlt' | 'falLongArrowDown' | 'falLongArrowLeft' | 'falLongArrowRight' | 'falLongArrowUp' | 'falMap' | 'falMapMarked' | 'falMapMarkedAlt' | 'falMapMarker' | 'falMapMarkerAlt' | 'falMapMarkerAltSlash' | 'falMapMarkerCheck' | 'falMapMarkerExclamation' | 'falMinus' | 'falPause' | 'falPauseCircle' | 'falPen' | 'falPlay' | 'falPlayCircle' | 'falPlug' | 'falPlus' | 'falPlusCircle' | 'falPlusSquare' | 'falPrint' | 'falPuzzlePiece' | 'falQuestionCircle' | 'falReceipt' | 'falRedo' | 'falSave' | 'falSearch' | 'falSearchMinus' | 'falSearchPlus' | 'falServer' | 'falShare' | 'falShareAll' | 'falShareAlt' | 'falShieldAlt' | 'falShieldCheck' | 'falShip' | 'falShoppingBasket' | 'falSignIn' | 'falSignInAlt' | 'falSignOut' | 'falSignOutAlt' | 'falSlidersV' | 'falSnowBlowing' | 'falSnowflake' | 'falSolarPanel' | 'falSort' | 'falSpinner' | 'falSquare' | 'falStepForward' | 'falStop' | 'falStopCircle' | 'falStopwatch' | 'falSuitcase' | 'falSun' | 'falSync' | 'falTachometer' | 'falTemperatureHigh' | 'falTh' | 'falThLarge' | 'falThList' | 'falTimes' | 'falTimesCircle' | 'falToggleOff' | 'falToggleOn' | 'falTrashAlt' | 'falUnlockAlt' | 'falUser' | 'falUserChart' | 'falUserCircle' | 'falUserCog' | 'falUserEdit' | 'falUserFriends' | 'falUserPlus' | 'falUserShield' | 'falUserTimes' | 'falUsers' | 'falUsersClass' | 'falWater' | 'falWind' | 'falWindTurbine' | 'falWrench' | 'fasCalendarAlt' | 'fasCaretDown' | 'fasCaretLeft' | 'fasCaretRight' | 'fasCaretUp' | 'fasCheckCircle' | 'fasDiamond' | 'fasFolder' | 'fasMapMarkerAlt' | 'fasMapMarkerExclamation' | 'fasQuoteLeft' | 'fasQuoteRight' | 'fasSolarPanel' | 'fasSort' | 'fasStar' | 'fasWindTurbine';
1
+ export declare type BaseIcon = 'cubPowerBi' | 'cubVeracity' | 'cuiCheckboxIndeterminate' | 'cuiCheckboxSelected' | 'cuiCheckboxUnselected' | 'cuiRadioSelected' | 'cuiRadioUnselected' | 'culApiProduct' | 'culApiService' | 'culCircleChart' | 'culCircleChartAlt' | 'culCovid' | 'culDeepSearch' | 'culDotsMenu' | 'culGlobePlus' | 'culListDense' | 'culMapMarkerStar' | 'culNumber1' | 'culPlusThin' | 'culScreenshot' | 'culScreenshotAlt' | 'culShortcut' | 'culTarget' | 'culTimesThin' | 'culTransformer' | 'culUserTransfer' | 'culVeracityService' | 'culVessel' | 'culVesselGroup' | 'cusDotFull' | 'cusDotFullAlt' | 'cusDotsMenu' | 'cusTransformer' | 'cusVessel' | 'fabApplePay' | 'fabBluetooth' | 'fabBtc' | 'fabCcAmazonPay' | 'fabCcAmex' | 'fabCcApplePay' | 'fabCcDinersClub' | 'fabCcMastercard' | 'fabCcPaypal' | 'fabCcVisa' | 'fabDhl' | 'fabEbay' | 'fabFacebook' | 'fabFedex' | 'fabFirefox' | 'fabGoogle' | 'fabGoogleDrive' | 'fabLinkedinIn' | 'fabMedium' | 'fabOsi' | 'fabSlack' | 'fabTwitter' | 'fabUps' | 'fabYoutube' | 'fadSpinnerThird' | 'falAddressBook' | 'falAddressCard' | 'falAnalytics' | 'falAngleDoubleDown' | 'falAngleDoubleLeft' | 'falAngleDoubleRight' | 'falAngleDoubleUp' | 'falAngleDown' | 'falAngleLeft' | 'falAngleRight' | 'falAngleUp' | 'falArrowAltDown' | 'falArrowAltLeft' | 'falArrowAltRight' | 'falArrowAltUp' | 'falArrowCircleDown' | 'falArrowCircleLeft' | 'falArrowCircleRight' | 'falArrowCircleUp' | 'falArrowDown' | 'falArrowFromBottom' | 'falArrowFromLeft' | 'falArrowFromRight' | 'falArrowFromTop' | 'falArrowLeft' | 'falArrowRight' | 'falArrowToBottom' | 'falArrowToLeft' | 'falArrowToRight' | 'falArrowToTop' | 'falArrowUp' | 'falArrows' | 'falAward' | 'falBan' | 'falBars' | 'falBell' | 'falBookOpen' | 'falBroadcastTower' | 'falBroom' | 'falBuilding' | 'falBullseye' | 'falCalendar' | 'falCalendarAlt' | 'falCamera' | 'falCaretDown' | 'falCaretLeft' | 'falCaretRight' | 'falCaretUp' | 'falCauldron' | 'falChartArea' | 'falChartBar' | 'falChartLine' | 'falChartLineDown' | 'falChartNetwork' | 'falChartPie' | 'falChartPieAlt' | 'falChartScatter' | 'falCheck' | 'falCheckCircle' | 'falCheckSquare' | 'falChevronCircleDown' | 'falChevronCircleLeft' | 'falChevronCircleRight' | 'falChevronCircleUp' | 'falChevronDoubleDown' | 'falChevronDoubleLeft' | 'falChevronDoubleRight' | 'falChevronDoubleUp' | 'falChevronDown' | 'falChevronLeft' | 'falChevronRight' | 'falChevronUp' | 'falCircle' | 'falCloud' | 'falCloudShowersHeavy' | 'falCloudSnow' | 'falCloudSun' | 'falCloudSunRain' | 'falCloudUpload' | 'falCode' | 'falCog' | 'falCogs' | 'falComment' | 'falCommentAlt' | 'falCompressAlt' | 'falCopy' | 'falCreditCard' | 'falDatabase' | 'falDotCircle' | 'falDownload' | 'falEdit' | 'falEllipsisH' | 'falEllipsisV' | 'falEnvelope' | 'falExchange' | 'falExclamationCircle' | 'falExclamationTriangle' | 'falExpandAlt' | 'falExternalLink' | 'falEye' | 'falEyeSlash' | 'falFile' | 'falFileAlt' | 'falFileArchive' | 'falFileAudio' | 'falFileCertificate' | 'falFileChartLine' | 'falFileChartPie' | 'falFileCheck' | 'falFileCode' | 'falFileCsv' | 'falFileEdit' | 'falFileExcel' | 'falFileImage' | 'falFileInvoiceDollar' | 'falFilePdf' | 'falFilePlus' | 'falFilePowerpoint' | 'falFileSpreadsheet' | 'falFileVideo' | 'falFileWord' | 'falFilter' | 'falFlag' | 'falFolder' | 'falFolderOpen' | 'falFolderPlus' | 'falFolders' | 'falGlassesAlt' | 'falGlobe' | 'falHome' | 'falHourglass' | 'falImage' | 'falInfoCircle' | 'falKey' | 'falLayerGroup' | 'falLayerPlus' | 'falLink' | 'falList' | 'falLockAlt' | 'falLongArrowDown' | 'falLongArrowLeft' | 'falLongArrowRight' | 'falLongArrowUp' | 'falMap' | 'falMapMarked' | 'falMapMarkedAlt' | 'falMapMarker' | 'falMapMarkerAlt' | 'falMapMarkerAltSlash' | 'falMapMarkerCheck' | 'falMapMarkerExclamation' | 'falMinus' | 'falPause' | 'falPauseCircle' | 'falPen' | 'falPlay' | 'falPlayCircle' | 'falPlug' | 'falPlus' | 'falPlusCircle' | 'falPlusSquare' | 'falPrint' | 'falPuzzlePiece' | 'falQuestionCircle' | 'falReceipt' | 'falRedo' | 'falSave' | 'falSearch' | 'falSearchMinus' | 'falSearchPlus' | 'falServer' | 'falShare' | 'falShareAll' | 'falShareAlt' | 'falShieldAlt' | 'falShieldCheck' | 'falShip' | 'falShoppingBasket' | 'falSignIn' | 'falSignInAlt' | 'falSignOut' | 'falSignOutAlt' | 'falSlidersV' | 'falSnowBlowing' | 'falSnowflake' | 'falSolarPanel' | 'falSort' | 'falSpinner' | 'falSquare' | 'falStepForward' | 'falStop' | 'falStopCircle' | 'falStopwatch' | 'falSuitcase' | 'falSun' | 'falSync' | 'falTachometer' | 'falTemperatureHigh' | 'falTh' | 'falThLarge' | 'falThList' | 'falTimes' | 'falTimesCircle' | 'falToggleOff' | 'falToggleOn' | 'falTrashAlt' | 'falUnlockAlt' | 'falUser' | 'falUserChart' | 'falUserCircle' | 'falUserCog' | 'falUserEdit' | 'falUserFriends' | 'falUserPlus' | 'falUserShield' | 'falUserTimes' | 'falUsers' | 'falUsersClass' | 'falWater' | 'falWind' | 'falWindTurbine' | 'falWrench' | 'fasCalendarAlt' | 'fasCaretDown' | 'fasCaretLeft' | 'fasCaretRight' | 'fasCaretUp' | 'fasCheckCircle' | 'fasDiamond' | 'fasFolder' | 'fasMapMarkerAlt' | 'fasMapMarkerExclamation' | 'fasQuoteLeft' | 'fasQuoteRight' | 'fasSolarPanel' | 'fasSort' | 'fasStar' | 'fasWindTurbine';
@@ -0,0 +1,15 @@
1
+ import { IconDefinition } from './types';
2
+ /**
3
+ * Holds the collection of selected predefined icons. Can be extended with more icons by the consumer.
4
+ * When using icons, they will be checked in library before loading them from CDN.
5
+ */
6
+ declare class IconsCache {
7
+ cache: Map<string, IconDefinition>;
8
+ add: (...icons: IconDefinition[]) => void;
9
+ get: (name: string) => IconDefinition | undefined;
10
+ has: (name: string) => boolean;
11
+ init: () => void;
12
+ reset: () => void;
13
+ }
14
+ declare const cache: IconsCache;
15
+ export default cache;
@@ -26,8 +26,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
28
  var consts_1 = require("./consts");
29
- var Library = /** @class */ (function () {
30
- function Library() {
29
+ /**
30
+ * Holds the collection of selected predefined icons. Can be extended with more icons by the consumer.
31
+ * When using icons, they will be checked in library before loading them from CDN.
32
+ */
33
+ var IconsCache = /** @class */ (function () {
34
+ function IconsCache() {
31
35
  var _this = this;
32
36
  this.cache = new Map();
33
37
  this.add = function () {
@@ -57,8 +61,8 @@ var Library = /** @class */ (function () {
57
61
  _this.cache.clear();
58
62
  };
59
63
  }
60
- return Library;
64
+ return IconsCache;
61
65
  }());
62
- var library = new Library();
63
- library.init();
64
- exports.default = library;
66
+ var cache = new IconsCache();
67
+ cache.init();
68
+ exports.default = cache;
package/icons/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
+ export { default as iconsCache } from './cache';
1
2
  export * from './consts';
2
3
  export * from './types';
3
- export { default as library } from './library';
package/icons/index.js CHANGED
@@ -13,8 +13,8 @@ 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.library = void 0;
16
+ exports.iconsCache = void 0;
17
+ var cache_1 = require("./cache");
18
+ Object.defineProperty(exports, "iconsCache", { enumerable: true, get: function () { return __importDefault(cache_1).default; } });
17
19
  __exportStar(require("./consts"), exports);
18
20
  __exportStar(require("./types"), exports);
19
- var library_1 = require("./library");
20
- Object.defineProperty(exports, "library", { enumerable: true, get: function () { return __importDefault(library_1).default; } });
package/icons/types.d.ts CHANGED
@@ -1,13 +1,19 @@
1
1
  import React from 'react';
2
- import { BaseIcon } from './baseIcons/types';
3
2
  import Svg from '../svg';
4
3
  import { PropsOf } from '../utils';
5
- export interface IconDefinition {
4
+ import { BaseIcon } from './baseIcons/types';
5
+ /** Object defining a custom icon. */
6
+ export declare type IconDefinition = {
7
+ /** Icon details including height, width and 'd' attribute. */
6
8
  details: IconDetails;
9
+ /** Name of the icon used internally. */
7
10
  name: string;
11
+ /** Props object or array of objects passed to the path elements. */
8
12
  pathProps?: React.SVGProps<SVGPathElement> | React.SVGProps<SVGPathElement>[];
13
+ /** Props object passed to the svg element. */
9
14
  svgProps?: PropsOf<typeof Svg>;
10
- }
15
+ };
16
+ /** Icon definition following Font Awesome standard. */
11
17
  export declare type IconDetails = [
12
18
  number,
13
19
  number,
@@ -17,5 +23,6 @@ export declare type IconDetails = [
17
23
  string | string[]
18
24
  ];
19
25
  export declare type VuiIcon = keyof VuiIcons;
26
+ /** Base icons collection, which can be extended by the consumer. */
20
27
  export interface VuiIcons extends Record<BaseIcon, IconDefinition> {
21
28
  }
package/image/image.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  import { ImageProps } from './image.types';
2
+ export declare const ImageBase: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("..").SystemProps, never>;
3
+ /** Displays an image. Includes base styling. */
2
4
  export declare const Image: import("../core").VuiComponent<"img", ImageProps>;
3
5
  export default Image;
package/image/image.js CHANGED
@@ -1,4 +1,8 @@
1
1
  "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
2
6
  var __assign = (this && this.__assign) || function () {
3
7
  __assign = Object.assign || function(t) {
4
8
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -25,14 +29,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
29
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
30
  };
27
31
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.Image = void 0;
32
+ exports.Image = exports.ImageBase = void 0;
29
33
  var react_1 = __importDefault(require("react"));
30
34
  var core_1 = require("../core");
31
35
  var utils_1 = require("../utils");
36
+ exports.ImageBase = core_1.styled.imgBox(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\theight: auto;\n\tobject-fit: cover;\n\twidth: 100%;\n"], ["\n\theight: auto;\n\tobject-fit: cover;\n\twidth: 100%;\n"
37
+ /** Displays an image. Includes base styling. */
38
+ ])));
39
+ /** Displays an image. Includes base styling. */
32
40
  exports.Image = (0, core_1.vui)(function (props, ref) {
33
41
  var _a = (0, core_1.omitThemingProps)(props), className = _a.className, rest = __rest(_a, ["className"]);
34
42
  var styles = (0, core_1.useStyleConfig)('Image', props);
35
- return react_1.default.createElement(core_1.v.img, __assign({ className: (0, utils_1.cs)('vui-image', className), ref: ref }, styles, rest));
43
+ return react_1.default.createElement(exports.ImageBase, __assign({ className: (0, utils_1.cs)('vui-image', className), ref: ref }, styles, rest));
36
44
  });
37
45
  exports.Image.displayName = 'Image';
38
46
  exports.default = exports.Image;
47
+ var templateObject_1;
@@ -1,5 +1,6 @@
1
1
  import { SystemProps } from '../system';
2
2
  import { ThemingProps } from '../theme';
3
- export interface ImageProps extends SystemProps, ThemingProps<'Image'> {
3
+ export declare type ImageProps = SystemProps & ThemingProps<'Image'> & {
4
+ /** Children are disabled for this component. */
4
5
  children?: never;
5
- }
6
+ };
package/image/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './image';
2
- export * from './image.types';
3
2
  export { default } from './image';
3
+ export * from './image.types';
package/image/index.js CHANGED
@@ -15,6 +15,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.default = void 0;
17
17
  __exportStar(require("./image"), exports);
18
- __exportStar(require("./image.types"), exports);
19
18
  var image_1 = require("./image");
20
19
  Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(image_1).default; } });
20
+ __exportStar(require("./image.types"), exports);
package/image/theme.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  declare const _default: {
2
+ baseStyle: {};
2
3
  defaultProps: {};
3
4
  sizes: {};
4
5
  variants: {};
package/image/theme.js CHANGED
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ var baseStyle = {};
3
4
  var defaultProps = {};
4
5
  var sizes = {};
5
6
  var variants = {};
6
7
  exports.default = {
8
+ baseStyle: baseStyle,
7
9
  defaultProps: defaultProps,
8
10
  sizes: sizes,
9
11
  variants: variants
package/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './checkbox';
7
7
  export * from './core';
8
8
  export * from './divider';
9
9
  export * from './footer';
10
+ export * from './header';
10
11
  export * from './heading';
11
12
  export * from './icon';
12
13
  export * from './icons';
@@ -15,14 +16,15 @@ export * from './input';
15
16
  export * from './link';
16
17
  export * from './list';
17
18
  export * from './menu';
19
+ export * from './modal';
18
20
  export * from './notification';
19
21
  export * from './p';
20
22
  export * from './panel';
21
23
  export * from './popover';
24
+ export * from './portal';
22
25
  export * from './radio';
23
26
  export * from './skeleton';
24
27
  export * from './spinner';
25
- export * from './styles';
26
28
  export * from './svg';
27
29
  export * from './switch';
28
30
  export * from './system';
package/index.js CHANGED
@@ -19,6 +19,7 @@ __exportStar(require("./checkbox"), exports);
19
19
  __exportStar(require("./core"), exports);
20
20
  __exportStar(require("./divider"), exports);
21
21
  __exportStar(require("./footer"), exports);
22
+ __exportStar(require("./header"), exports);
22
23
  __exportStar(require("./heading"), exports);
23
24
  __exportStar(require("./icon"), exports);
24
25
  __exportStar(require("./icons"), exports);
@@ -27,14 +28,15 @@ __exportStar(require("./input"), exports);
27
28
  __exportStar(require("./link"), exports);
28
29
  __exportStar(require("./list"), exports);
29
30
  __exportStar(require("./menu"), exports);
31
+ __exportStar(require("./modal"), exports);
30
32
  __exportStar(require("./notification"), exports);
31
33
  __exportStar(require("./p"), exports);
32
34
  __exportStar(require("./panel"), exports);
33
35
  __exportStar(require("./popover"), exports);
36
+ __exportStar(require("./portal"), exports);
34
37
  __exportStar(require("./radio"), exports);
35
38
  __exportStar(require("./skeleton"), exports);
36
39
  __exportStar(require("./spinner"), exports);
37
- __exportStar(require("./styles"), exports);
38
40
  __exportStar(require("./svg"), exports);
39
41
  __exportStar(require("./switch"), exports);
40
42
  __exportStar(require("./system"), exports);
package/input/consts.js CHANGED
@@ -13,8 +13,8 @@ exports.inputStateMapping = {
13
13
  colorScheme: 'grey',
14
14
  iconProps: {
15
15
  animation: 'vui-spin 0.6s linear infinite',
16
- fill: ['blue.20', 'blue.50'],
17
- icon: 'fadSpinnerThird'
16
+ name: 'fadSpinnerThird',
17
+ pathFill: ['blue.20', 'blue.50']
18
18
  }
19
19
  },
20
20
  success: {
@@ -1,2 +1,3 @@
1
1
  import { InputProps } from './input.types';
2
+ /** Returns length of the initial input's value. */
2
3
  export declare function getInitialCount(props: InputProps): number;
package/input/helpers.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getInitialCount = void 0;
4
+ /** Returns length of the initial input's value. */
4
5
  function getInitialCount(props) {
5
6
  var _a, _b;
6
7
  var defaultValue = props.defaultValue, value = props.value;
package/input/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from './input';
2
+ export { default } from './input';
2
3
  export * from './input.types';
3
4
  export * from './inputIcon';
4
5
  export * from './inputInput';
5
- export { default } from './input';
package/input/index.js CHANGED
@@ -15,8 +15,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.default = void 0;
17
17
  __exportStar(require("./input"), exports);
18
+ var input_1 = require("./input");
19
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(input_1).default; } });
18
20
  __exportStar(require("./input.types"), exports);
19
21
  __exportStar(require("./inputIcon"), exports);
20
22
  __exportStar(require("./inputInput"), exports);
21
- var input_1 = require("./input");
22
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(input_1).default; } });
package/input/input.d.ts CHANGED
@@ -1,9 +1,13 @@
1
+ import { VuiComponent } from '../core';
1
2
  import { InputProps } from './input.types';
2
3
  import InputIcon from './inputIcon';
3
4
  import InputInput from './inputInput';
4
- import { VuiComponent } from '../core';
5
- import { SystemProps } from '../system';
6
- export declare const InputBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, SystemProps, never>;
5
+ export declare const InputBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("..").SystemProps, never>;
6
+ /**
7
+ * Displays an input element wrapped in a div to allow extra content, like counter, side icons or buttons.
8
+ * Forwards many relevant props to the inner input. Handles different states, like loading or error.
9
+ * Exposes some props to the children via context.
10
+ */
7
11
  export declare const Input: VuiComponent<"div", InputProps> & {
8
12
  Icon: typeof InputIcon;
9
13
  Input: typeof InputInput;
package/input/input.js CHANGED
@@ -66,17 +66,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
67
  exports.Input = exports.InputBase = void 0;
68
68
  var react_1 = __importStar(require("react"));
69
- var styled_components_1 = __importDefault(require("styled-components"));
69
+ var core_1 = require("../core");
70
+ var t_1 = __importDefault(require("../t"));
71
+ var utils_1 = require("../utils");
70
72
  var consts_1 = require("./consts");
71
73
  var context_1 = require("./context");
72
74
  var helpers_1 = require("./helpers");
73
75
  var inputIcon_1 = __importDefault(require("./inputIcon"));
74
76
  var inputInput_1 = __importDefault(require("./inputInput"));
75
- var core_1 = require("../core");
76
- var system_1 = require("../system");
77
- var t_1 = __importDefault(require("../t"));
78
- var utils_1 = require("../utils");
79
- exports.InputBase = styled_components_1.default.div.withConfig((0, core_1.forwardPropConfig)(system_1.system))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-items: center;\n\tbackground-color: white;\n\tborder-width: 1px;\n\tdisplay: flex;\n\toutline: none;\n\tposition: relative;\n\twidth: 100%;\n\n\t&.disabled {\n\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tbackground-color: white;\n\tborder-width: 1px;\n\tdisplay: flex;\n\toutline: none;\n\tposition: relative;\n\twidth: 100%;\n\n\t&.disabled {\n\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n\n\t", "\n"])), system_1.system);
77
+ exports.InputBase = core_1.styled.divBox(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-items: center;\n\tbackground-color: white;\n\tborder-radius: md;\n\tborder-width: 1px;\n\tdisplay: flex;\n\toutline: none;\n\tposition: relative;\n\ttransition-duration: fast;\n\twidth: 100%;\n\n\t&[aria-disabled='true'] {\n\t\tbackground-color: disabled.bg;\n\t\tcolor: disabled.color;\n\t\tcursor: not-allowed;\n\t}\n"], ["\n\talign-items: center;\n\tbackground-color: white;\n\tborder-radius: md;\n\tborder-width: 1px;\n\tdisplay: flex;\n\toutline: none;\n\tposition: relative;\n\ttransition-duration: fast;\n\twidth: 100%;\n\n\t&[aria-disabled='true'] {\n\t\tbackground-color: disabled.bg;\n\t\tcolor: disabled.color;\n\t\tcursor: not-allowed;\n\t}\n"
78
+ /**
79
+ * Displays an input element wrapped in a div to allow extra content, like counter, side icons or buttons.
80
+ * Forwards many relevant props to the inner input. Handles different states, like loading or error.
81
+ * Exposes some props to the children via context.
82
+ */
83
+ ])));
84
+ /**
85
+ * Displays an input element wrapped in a div to allow extra content, like counter, side icons or buttons.
86
+ * Forwards many relevant props to the inner input. Handles different states, like loading or error.
87
+ * Exposes some props to the children via context.
88
+ */
80
89
  exports.Input = (0, core_1.vui)(function (props, ref) {
81
90
  var _a, _b, _c, _d;
82
91
  var _e = __read((0, react_1.useState)((0, helpers_1.getInitialCount)(props)), 2), count = _e[0], setCount = _e[1];
@@ -92,12 +101,13 @@ exports.Input = (0, core_1.vui)(function (props, ref) {
92
101
  onChangeProp === null || onChangeProp === void 0 ? void 0 : onChangeProp(e);
93
102
  }
94
103
  var aliasedProps = (0, utils_1.filterUndefined)({
104
+ 'aria-disabled': disabled,
95
105
  bg: readOnly ? 'grey.10' : undefined,
96
106
  focusWithinBorderColor: !readOnly ? 'transparent' : undefined,
97
107
  focusWithinRingColor: readOnly ? 'transparent' : undefined
98
108
  });
99
109
  return (react_1.default.createElement(context_1.InputProvider, { value: context },
100
- react_1.default.createElement(exports.InputBase, __assign({ borderRadius: "md", className: (0, utils_1.cs)('vui-input', disabled && 'disabled', className), ref: ref, transitionDuration: "fast" }, styles.container, aliasedProps, rest),
110
+ react_1.default.createElement(exports.InputBase, __assign({ className: (0, utils_1.cs)('vui-input', className), ref: ref }, styles.container, aliasedProps, rest),
101
111
  itemLeft,
102
112
  (0, utils_1.isString)(iconLeft) ? react_1.default.createElement(inputIcon_1.default, { ml: 1, name: iconLeft }) : iconLeft, (_c = children !== null && children !== void 0 ? children : input) !== null && _c !== void 0 ? _c : (react_1.default.createElement(inputInput_1.default, __assign({ ref: inputRef }, {
103
113
  autoComplete: autoComplete,
@@ -2,41 +2,70 @@
2
2
  import { IconProp, IconProps } from '../icon';
3
3
  import { SystemProps } from '../system';
4
4
  import { ThemingProps } from '../theme';
5
- import { AnyElement, ChangeEventHandler, FocusEventHandler, PropsOf } from '../utils';
6
- export interface InputInputProps extends PropsOf<'input', SystemProps> {
7
- }
8
- export interface InputProps extends SystemProps, ThemingProps<'Input'> {
5
+ import { ChangeEventHandler, FocusEventHandler, PropsOf } from '../utils';
6
+ export declare type InputInputProps = PropsOf<'input', SystemProps>;
7
+ export declare type InputProps = SystemProps & ThemingProps<'Input'> & {
8
+ /** Passed to the inner input. */
9
9
  autoComplete?: string;
10
+ /** Passed to the inner input. */
10
11
  autoFocus?: boolean;
12
+ /** Available theme colors for this component. @default grey */
11
13
  colorScheme?: 'green' | 'grey' | 'red';
14
+ /** Passed to the inner input. */
12
15
  defaultValue?: number | string;
16
+ /** Passed to the inner input. */
13
17
  disabled?: boolean;
14
- iconLeft?: IconProp | AnyElement;
15
- iconRight?: IconProp | AnyElement;
18
+ /** Socket displaying an icon on the left. */
19
+ iconLeft?: IconProp | JSX.Element;
20
+ /** Socket displaying an icon on the right. */
21
+ iconRight?: IconProp | JSX.Element;
22
+ /** Socket rendering a custom input element. */
16
23
  input?: React.ReactNode;
24
+ /** Props object passed to the inner input. */
17
25
  inputProps?: InputInputProps;
26
+ /** Ref passed to the inner input. */
18
27
  inputRef?: React.MutableRefObject<HTMLInputElement | null> | null;
28
+ /** Styles the input in invalid state. */
19
29
  isInvalid?: boolean;
30
+ /** Socket displaying a custom element on the left. */
20
31
  itemLeft?: React.ReactNode;
32
+ /** Socket displaying a custom element on the right. */
21
33
  itemRight?: React.ReactNode;
34
+ /** Passed to the inner input. */
22
35
  max?: number | string;
36
+ /** Passed to the inner input. */
23
37
  maxLength?: number;
38
+ /** Passed to the inner input. */
24
39
  min?: number | string;
40
+ /** Passed to the inner input. */
25
41
  name?: string;
42
+ /** Passed to the inner input. */
26
43
  onBlur?: FocusEventHandler;
44
+ /** Passed to the inner input. */
27
45
  onChange?: ChangeEventHandler;
46
+ /** Passed to the inner input. */
28
47
  onFocus?: FocusEventHandler;
48
+ /** Passed to the inner input. */
29
49
  pattern?: string;
50
+ /** Passed to the inner input. */
30
51
  placeholder?: string;
52
+ /** Passed to the inner input. */
31
53
  readOnly?: boolean;
54
+ /** Passed to the inner input. */
32
55
  required?: boolean;
56
+ /** Displays length of input value if also using maxLength. */
33
57
  showCount?: boolean;
58
+ /** Modifies Input style and content based on the given state. */
34
59
  state?: InputState;
60
+ /** Object definition of styles and content for each state. */
35
61
  stateMapping?: InputStateMapping;
62
+ /** Passed to the inner input. */
36
63
  step?: number | string;
64
+ /** Passed to the inner input. */
37
65
  type?: InputType;
66
+ /** Passed to the inner input. */
38
67
  value?: number | string;
39
- }
68
+ };
40
69
  export declare type InputState = 'default' | 'error' | 'loading' | 'success';
41
70
  export declare type InputStateMapping = Record<string, {
42
71
  colorScheme?: InputProps['colorScheme'];
@@ -1,3 +1,4 @@
1
1
  import { IconProps } from '../icon';
2
+ /** Displays an icon within the Input. */
2
3
  export declare const InputIcon: import("../core").VuiComponent<"svg", IconProps>;
3
4
  export default InputIcon;
@@ -16,9 +16,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.InputIcon = void 0;
18
18
  var react_1 = __importDefault(require("react"));
19
- var context_1 = require("./context");
20
19
  var core_1 = require("../core");
21
20
  var icon_1 = __importDefault(require("../icon"));
21
+ var context_1 = require("./context");
22
+ /** Displays an icon within the Input. */
22
23
  exports.InputIcon = (0, core_1.vui)(function (props, ref) {
23
24
  var inputProps = (0, context_1.useInput)();
24
25
  var mergedProps = __assign(__assign({}, inputProps), props);
@@ -1,5 +1,5 @@
1
1
  import { InputInputProps } from './input.types';
2
- import { SystemProps } from '../system';
3
- export declare const InputInputBase: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, SystemProps, never>;
2
+ export declare const InputInputBase: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
3
+ /** Displays an input element within the Input component. */
4
4
  export declare const InputInput: import("../core").VuiComponent<"input", InputInputProps>;
5
5
  export default InputInput;
@@ -20,16 +20,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  exports.InputInput = exports.InputInputBase = void 0;
22
22
  var react_1 = __importDefault(require("react"));
23
- var styled_components_1 = __importDefault(require("styled-components"));
24
- var context_1 = require("./context");
25
23
  var core_1 = require("../core");
26
- var system_1 = require("../system");
27
- exports.InputInputBase = styled_components_1.default.input.withConfig((0, core_1.forwardPropConfig)(system_1.system))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-self: stretch;\n\tbackground-color: transparent;\n\tborder: none;\n\tflex: 1;\n\tfont-size: inherit;\n\tmin-width: 0;\n\toutline: none;\n\n\t:disabled,\n\t:disabled::placeholder {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n\n\t", "\n"], ["\n\talign-self: stretch;\n\tbackground-color: transparent;\n\tborder: none;\n\tflex: 1;\n\tfont-size: inherit;\n\tmin-width: 0;\n\toutline: none;\n\n\t:disabled,\n\t:disabled::placeholder {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n\n\t", "\n"])), system_1.system);
24
+ var utils_1 = require("../utils");
25
+ var context_1 = require("./context");
26
+ exports.InputInputBase = core_1.styled.input(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-self: stretch;\n\tbackground-color: transparent;\n\tborder: none;\n\tborder-radius: md;\n\tflex: 1;\n\tfont-size: inherit;\n\tmin-width: 0;\n\toutline: none;\n\tpadding: 0 1;\n\n\t&::placeholder {\n\t\tcolor: grey.60;\n\t}\n\n\t&[aria-disabled='true'],\n\t&[aria-disabled='true']::placeholder {\n\t\tcolor: disabled.color;\n\t\tcursor: not-allowed;\n\t}\n"], ["\n\talign-self: stretch;\n\tbackground-color: transparent;\n\tborder: none;\n\tborder-radius: md;\n\tflex: 1;\n\tfont-size: inherit;\n\tmin-width: 0;\n\toutline: none;\n\tpadding: 0 1;\n\n\t&::placeholder {\n\t\tcolor: grey.60;\n\t}\n\n\t&[aria-disabled='true'],\n\t&[aria-disabled='true']::placeholder {\n\t\tcolor: disabled.color;\n\t\tcursor: not-allowed;\n\t}\n"
27
+ /** Displays an input element within the Input component. */
28
+ ])));
29
+ /** Displays an input element within the Input component. */
28
30
  exports.InputInput = (0, core_1.vui)(function (props, ref) {
29
31
  var inputProps = (0, context_1.useInput)();
30
32
  var mergedProps = __assign(__assign({}, inputProps), props);
31
33
  var styles = (0, core_1.useStyleConfig)('Input', mergedProps);
32
- return (react_1.default.createElement(exports.InputInputBase, __assign({ borderRadius: "md", className: "vui-inputInput", placeholderColor: "grey.60", px: 1, ref: ref }, styles.input, props)));
34
+ var aliasedProps = (0, utils_1.filterUndefined)({
35
+ 'aria-disabled': mergedProps.disabled
36
+ });
37
+ return react_1.default.createElement(exports.InputInputBase, __assign({ className: "vui-inputInput", ref: ref }, styles.input, aliasedProps, props));
33
38
  });
34
39
  exports.InputInput.displayName = 'InputInput';
35
40
  exports.default = exports.InputInput;
package/input/theme.d.ts CHANGED
@@ -9,6 +9,7 @@ declare function variantDefault(props: Dict): {
9
9
  input: {};
10
10
  };
11
11
  declare const _default: {
12
+ baseStyle: {};
12
13
  defaultProps: {
13
14
  colorScheme: string;
14
15
  size: string;
package/input/theme.js CHANGED
@@ -15,6 +15,7 @@ function variantDefault(props) {
15
15
  var input = {};
16
16
  return { container: container, icon: icon, input: input };
17
17
  }
18
+ var baseStyle = {};
18
19
  var defaultProps = {
19
20
  colorScheme: 'grey',
20
21
  size: 'md',
@@ -67,6 +68,7 @@ var variants = {
67
68
  default: variantDefault
68
69
  };
69
70
  exports.default = {
71
+ baseStyle: baseStyle,
70
72
  defaultProps: defaultProps,
71
73
  parts: parts,
72
74
  sizes: sizes,
package/link/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from './link';
2
+ export { default } from './link';
2
3
  export * from './link.types';
3
4
  export * from './linkIcon';
4
5
  export * from './linkText';
5
- export { default } from './link';
package/link/index.js CHANGED
@@ -15,8 +15,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.default = void 0;
17
17
  __exportStar(require("./link"), exports);
18
+ var link_1 = require("./link");
19
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(link_1).default; } });
18
20
  __exportStar(require("./link.types"), exports);
19
21
  __exportStar(require("./linkIcon"), exports);
20
22
  __exportStar(require("./linkText"), exports);
21
- var link_1 = require("./link");
22
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(link_1).default; } });
package/link/link.d.ts CHANGED
@@ -1,9 +1,12 @@
1
+ import { VuiComponent } from '../core';
1
2
  import { LinkProps } from './link.types';
2
3
  import LinkIcon from './linkIcon';
3
4
  import LinkText from './linkText';
4
- import { VuiComponent } from '../core';
5
- import { SystemProps } from '../system';
6
- export declare const LinkBase: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, SystemProps, never>;
5
+ export declare const LinkBase: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, import("..").SystemProps, never>;
6
+ /**
7
+ * Displays a link item. Handles different underline scenarios and opening external links in new tab.
8
+ * Exposes some props to the children via context.
9
+ */
7
10
  export declare const Link: VuiComponent<"a", LinkProps> & {
8
11
  Icon: typeof LinkIcon;
9
12
  Text: typeof LinkText;