@veracity/vui 0.0.2 → 0.0.4

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 (760) hide show
  1. package/alert/alert.d.ts +15 -0
  2. package/alert/alert.js +87 -0
  3. package/alert/alert.types.d.ts +19 -0
  4. package/alert/alert.types.js +2 -0
  5. package/alert/alertButton.d.ts +3 -0
  6. package/alert/alertButton.js +30 -0
  7. package/alert/alertIcon.d.ts +3 -0
  8. package/alert/alertIcon.js +33 -0
  9. package/alert/alertMessage.d.ts +3 -0
  10. package/alert/alertMessage.js +31 -0
  11. package/alert/alertText.d.ts +3 -0
  12. package/alert/alertText.js +30 -0
  13. package/alert/alertTitle.d.ts +3 -0
  14. package/alert/alertTitle.js +30 -0
  15. package/alert/consts.d.ts +2 -0
  16. package/alert/consts.js +25 -0
  17. package/alert/context.d.ts +4 -0
  18. package/alert/context.js +23 -0
  19. package/alert/index.d.ts +9 -0
  20. package/alert/index.js +26 -0
  21. package/alert/theme.d.ts +46 -0
  22. package/alert/theme.js +62 -0
  23. package/avatar/avatar.d.ts +4 -4
  24. package/avatar/avatar.js +3 -7
  25. package/avatar/avatar.types.d.ts +1 -2
  26. package/avatar/theme.js +5 -5
  27. package/box/box.d.ts +4 -4
  28. package/box/box.js +4 -6
  29. package/box/box.types.d.ts +10 -12
  30. package/button/button.d.ts +4 -4
  31. package/button/button.js +8 -9
  32. package/button/button.types.d.ts +2 -2
  33. package/button/buttonGroup.d.ts +2 -4
  34. package/button/buttonGroup.js +3 -5
  35. package/button/buttonGroup.types.d.ts +1 -2
  36. package/button/buttons.d.ts +5 -5
  37. package/button/index.d.ts +1 -0
  38. package/button/index.js +1 -0
  39. package/button/theme.js +5 -0
  40. package/checkbox/checkbox.d.ts +5 -6
  41. package/checkbox/checkbox.js +27 -17
  42. package/checkbox/checkbox.types.d.ts +12 -10
  43. package/checkbox/checkboxGroup.d.ts +4 -0
  44. package/checkbox/checkboxGroup.js +71 -0
  45. package/checkbox/checkboxGroup.types.d.ts +14 -0
  46. package/checkbox/checkboxGroup.types.js +2 -0
  47. package/checkbox/context.d.ts +4 -0
  48. package/checkbox/context.js +23 -0
  49. package/checkbox/index.d.ts +3 -0
  50. package/checkbox/index.js +3 -0
  51. package/checkbox/theme.d.ts +28 -4
  52. package/checkbox/theme.js +29 -4
  53. package/core/globalStyle.d.ts +1 -1
  54. package/core/globalStyle.js +3 -2
  55. package/core/index.d.ts +1 -0
  56. package/core/index.js +3 -1
  57. package/core/resetCSS.d.ts +2 -0
  58. package/core/resetCSS.js +9 -0
  59. package/core/types.d.ts +18 -2
  60. package/core/types.js +1 -0
  61. package/core/utils.d.ts +18 -8
  62. package/core/utils.js +68 -6
  63. package/core/vuiProvider.js +2 -1
  64. package/divider/divider.d.ts +2 -4
  65. package/divider/divider.js +8 -11
  66. package/divider/divider.types.d.ts +1 -2
  67. package/heading/heading.d.ts +4 -4
  68. package/heading/heading.js +3 -5
  69. package/heading/heading.types.d.ts +7 -9
  70. package/heading/headings.d.ts +6 -6
  71. package/icon/helpers.d.ts +3 -0
  72. package/icon/helpers.js +5 -1
  73. package/icon/icon.d.ts +1 -1
  74. package/icon/icon.js +10 -5
  75. package/icon/icon.types.d.ts +16 -2
  76. package/icon/icons/cui/cuiCheckboxIndeterminate.d.ts +3 -0
  77. package/icon/icons/cui/cuiCheckboxIndeterminate.js +8 -0
  78. package/icon/icons/cui/cuiCheckboxSelected.d.ts +3 -0
  79. package/icon/icons/cui/cuiCheckboxSelected.js +8 -0
  80. package/icon/icons/cui/cuiCheckboxUnselected.d.ts +3 -0
  81. package/icon/icons/cui/cuiCheckboxUnselected.js +8 -0
  82. package/icon/icons/cui/cuiRadioSelected.d.ts +3 -0
  83. package/icon/icons/cui/cuiRadioSelected.js +8 -0
  84. package/icon/icons/cui/cuiRadioUnselected.d.ts +3 -0
  85. package/icon/icons/cui/cuiRadioUnselected.js +8 -0
  86. package/icon/icons/cul/culCovid.d.ts +1 -1
  87. package/icon/icons/cul/culCovid.js +1 -1
  88. package/icon/icons/cul/culDeepSearch.d.ts +1 -1
  89. package/icon/icons/cul/culDeepSearch.js +1 -1
  90. package/icon/icons/cul/culDotsMenu.d.ts +1 -1
  91. package/icon/icons/cul/culDotsMenu.js +1 -1
  92. package/icon/icons/cul/culGlobePlus.d.ts +1 -1
  93. package/icon/icons/cul/culGlobePlus.js +1 -1
  94. package/icon/icons/cul/culListDense.d.ts +1 -1
  95. package/icon/icons/cul/culListDense.js +1 -1
  96. package/icon/icons/cul/culMapMarkerStar.d.ts +1 -1
  97. package/icon/icons/cul/culMapMarkerStar.js +1 -1
  98. package/icon/icons/cul/culPlusThin.d.ts +1 -1
  99. package/icon/icons/cul/culPlusThin.js +1 -1
  100. package/icon/icons/cul/culScreenshot.d.ts +1 -1
  101. package/icon/icons/cul/culScreenshot.js +1 -1
  102. package/icon/icons/cul/culScreenshotAlt.d.ts +1 -1
  103. package/icon/icons/cul/culScreenshotAlt.js +1 -1
  104. package/icon/icons/cul/culShortcut.d.ts +1 -1
  105. package/icon/icons/cul/culShortcut.js +1 -1
  106. package/icon/icons/cul/culTimesThin.d.ts +1 -1
  107. package/icon/icons/cul/culTimesThin.js +1 -1
  108. package/icon/icons/cul/culTransformer.d.ts +1 -1
  109. package/icon/icons/cul/culTransformer.js +1 -1
  110. package/icon/icons/cul/culUserTransfer.d.ts +1 -1
  111. package/icon/icons/cul/culUserTransfer.js +1 -1
  112. package/icon/icons/cul/culVessel.d.ts +1 -1
  113. package/icon/icons/cul/culVessel.js +1 -1
  114. package/icon/icons/cul/culVesselGroup.d.ts +1 -1
  115. package/icon/icons/cul/culVesselGroup.js +1 -1
  116. package/icon/icons/cus/cusCheckboxSelected.d.ts +1 -1
  117. package/icon/icons/cus/cusCheckboxSelected.js +1 -1
  118. package/icon/icons/cus/cusDotFull.d.ts +1 -1
  119. package/icon/icons/cus/cusDotFull.js +1 -1
  120. package/icon/icons/cus/cusDotFullAlt.d.ts +1 -1
  121. package/icon/icons/cus/cusDotFullAlt.js +1 -1
  122. package/icon/icons/cus/cusDotsMenu.d.ts +1 -1
  123. package/icon/icons/cus/cusDotsMenu.js +1 -1
  124. package/icon/icons/cus/cusRadio.d.ts +1 -1
  125. package/icon/icons/cus/cusRadio.js +1 -1
  126. package/icon/icons/cus/cusSquareMinus.d.ts +1 -1
  127. package/icon/icons/cus/cusSquareMinus.js +1 -1
  128. package/icon/icons/cus/cusTransformer.d.ts +1 -1
  129. package/icon/icons/cus/cusTransformer.js +1 -1
  130. package/icon/icons/cus/cusVessel.d.ts +1 -1
  131. package/icon/icons/cus/cusVessel.js +1 -1
  132. package/icon/icons/fab/fabApplePay.d.ts +1 -1
  133. package/icon/icons/fab/fabApplePay.js +1 -1
  134. package/icon/icons/fab/fabBluetooth.d.ts +1 -1
  135. package/icon/icons/fab/fabBluetooth.js +1 -1
  136. package/icon/icons/fab/fabBtc.d.ts +1 -1
  137. package/icon/icons/fab/fabBtc.js +1 -1
  138. package/icon/icons/fab/fabCcAmazonPay.d.ts +1 -1
  139. package/icon/icons/fab/fabCcAmazonPay.js +1 -1
  140. package/icon/icons/fab/fabCcAmex.d.ts +1 -1
  141. package/icon/icons/fab/fabCcAmex.js +1 -1
  142. package/icon/icons/fab/fabCcApplePay.d.ts +1 -1
  143. package/icon/icons/fab/fabCcApplePay.js +1 -1
  144. package/icon/icons/fab/fabCcDinersClub.d.ts +1 -1
  145. package/icon/icons/fab/fabCcDinersClub.js +1 -1
  146. package/icon/icons/fab/fabCcMastercard.d.ts +1 -1
  147. package/icon/icons/fab/fabCcMastercard.js +1 -1
  148. package/icon/icons/fab/fabCcPaypal.d.ts +1 -1
  149. package/icon/icons/fab/fabCcPaypal.js +1 -1
  150. package/icon/icons/fab/fabCcVisa.d.ts +1 -1
  151. package/icon/icons/fab/fabCcVisa.js +1 -1
  152. package/icon/icons/fab/fabDhl.d.ts +1 -1
  153. package/icon/icons/fab/fabDhl.js +1 -1
  154. package/icon/icons/fab/fabEbay.d.ts +1 -1
  155. package/icon/icons/fab/fabEbay.js +1 -1
  156. package/icon/icons/fab/fabFacebook.d.ts +1 -1
  157. package/icon/icons/fab/fabFacebook.js +1 -1
  158. package/icon/icons/fab/fabFedex.d.ts +1 -1
  159. package/icon/icons/fab/fabFedex.js +1 -1
  160. package/icon/icons/fab/fabFirefox.d.ts +1 -1
  161. package/icon/icons/fab/fabFirefox.js +1 -1
  162. package/icon/icons/fab/fabGoogle.d.ts +1 -1
  163. package/icon/icons/fab/fabGoogle.js +1 -1
  164. package/icon/icons/fab/fabGoogleDrive.d.ts +1 -1
  165. package/icon/icons/fab/fabGoogleDrive.js +1 -1
  166. package/icon/icons/fab/fabLinkedinIn.d.ts +1 -1
  167. package/icon/icons/fab/fabLinkedinIn.js +1 -1
  168. package/icon/icons/fab/fabMedium.d.ts +1 -1
  169. package/icon/icons/fab/fabMedium.js +1 -1
  170. package/icon/icons/fab/fabOsi.d.ts +1 -1
  171. package/icon/icons/fab/fabOsi.js +1 -1
  172. package/icon/icons/fab/fabSlack.d.ts +1 -1
  173. package/icon/icons/fab/fabSlack.js +1 -1
  174. package/icon/icons/fab/fabTwitter.d.ts +1 -1
  175. package/icon/icons/fab/fabTwitter.js +1 -1
  176. package/icon/icons/fab/fabUps.d.ts +1 -1
  177. package/icon/icons/fab/fabUps.js +1 -1
  178. package/icon/icons/fal/falAddressBook.d.ts +1 -1
  179. package/icon/icons/fal/falAddressBook.js +1 -1
  180. package/icon/icons/fal/falAddressCard.d.ts +1 -1
  181. package/icon/icons/fal/falAddressCard.js +1 -1
  182. package/icon/icons/fal/falAnalytics.d.ts +1 -1
  183. package/icon/icons/fal/falAnalytics.js +1 -1
  184. package/icon/icons/fal/falAngleDoubleDown.d.ts +1 -1
  185. package/icon/icons/fal/falAngleDoubleDown.js +1 -1
  186. package/icon/icons/fal/falAngleDoubleLeft.d.ts +1 -1
  187. package/icon/icons/fal/falAngleDoubleLeft.js +1 -1
  188. package/icon/icons/fal/falAngleDoubleRight.d.ts +1 -1
  189. package/icon/icons/fal/falAngleDoubleRight.js +1 -1
  190. package/icon/icons/fal/falAngleDoubleUp.d.ts +1 -1
  191. package/icon/icons/fal/falAngleDoubleUp.js +1 -1
  192. package/icon/icons/fal/falAngleDown.d.ts +1 -1
  193. package/icon/icons/fal/falAngleDown.js +1 -1
  194. package/icon/icons/fal/falAngleLeft.d.ts +1 -1
  195. package/icon/icons/fal/falAngleLeft.js +1 -1
  196. package/icon/icons/fal/falAngleRight.d.ts +1 -1
  197. package/icon/icons/fal/falAngleRight.js +1 -1
  198. package/icon/icons/fal/falAngleUp.d.ts +1 -1
  199. package/icon/icons/fal/falAngleUp.js +1 -1
  200. package/icon/icons/fal/falArrowAltDown.d.ts +1 -1
  201. package/icon/icons/fal/falArrowAltDown.js +1 -1
  202. package/icon/icons/fal/falArrowAltLeft.d.ts +1 -1
  203. package/icon/icons/fal/falArrowAltLeft.js +1 -1
  204. package/icon/icons/fal/falArrowAltRight.d.ts +1 -1
  205. package/icon/icons/fal/falArrowAltRight.js +1 -1
  206. package/icon/icons/fal/falArrowAltUp.d.ts +1 -1
  207. package/icon/icons/fal/falArrowAltUp.js +1 -1
  208. package/icon/icons/fal/falArrowCircleDown.d.ts +1 -1
  209. package/icon/icons/fal/falArrowCircleDown.js +1 -1
  210. package/icon/icons/fal/falArrowCircleLeft.d.ts +1 -1
  211. package/icon/icons/fal/falArrowCircleLeft.js +1 -1
  212. package/icon/icons/fal/falArrowCircleRight.d.ts +1 -1
  213. package/icon/icons/fal/falArrowCircleRight.js +1 -1
  214. package/icon/icons/fal/falArrowCircleUp.d.ts +1 -1
  215. package/icon/icons/fal/falArrowCircleUp.js +1 -1
  216. package/icon/icons/fal/falArrowDown.d.ts +1 -1
  217. package/icon/icons/fal/falArrowDown.js +1 -1
  218. package/icon/icons/fal/falArrowFromBottom.d.ts +1 -1
  219. package/icon/icons/fal/falArrowFromBottom.js +1 -1
  220. package/icon/icons/fal/falArrowFromLeft.d.ts +1 -1
  221. package/icon/icons/fal/falArrowFromLeft.js +1 -1
  222. package/icon/icons/fal/falArrowFromRight.d.ts +1 -1
  223. package/icon/icons/fal/falArrowFromRight.js +1 -1
  224. package/icon/icons/fal/falArrowFromTop.d.ts +1 -1
  225. package/icon/icons/fal/falArrowFromTop.js +1 -1
  226. package/icon/icons/fal/falArrowLeft.d.ts +1 -1
  227. package/icon/icons/fal/falArrowLeft.js +1 -1
  228. package/icon/icons/fal/falArrowRight.d.ts +1 -1
  229. package/icon/icons/fal/falArrowRight.js +1 -1
  230. package/icon/icons/fal/falArrowToBottom.d.ts +1 -1
  231. package/icon/icons/fal/falArrowToBottom.js +1 -1
  232. package/icon/icons/fal/falArrowToLeft.d.ts +1 -1
  233. package/icon/icons/fal/falArrowToLeft.js +1 -1
  234. package/icon/icons/fal/falArrowToRight.d.ts +1 -1
  235. package/icon/icons/fal/falArrowToRight.js +1 -1
  236. package/icon/icons/fal/falArrowToTop.d.ts +1 -1
  237. package/icon/icons/fal/falArrowToTop.js +1 -1
  238. package/icon/icons/fal/falArrowUp.d.ts +1 -1
  239. package/icon/icons/fal/falArrowUp.js +1 -1
  240. package/icon/icons/fal/falArrows.d.ts +1 -1
  241. package/icon/icons/fal/falArrows.js +1 -1
  242. package/icon/icons/fal/falAward.d.ts +1 -1
  243. package/icon/icons/fal/falAward.js +1 -1
  244. package/icon/icons/fal/falBan.d.ts +1 -1
  245. package/icon/icons/fal/falBan.js +1 -1
  246. package/icon/icons/fal/falBell.d.ts +1 -1
  247. package/icon/icons/fal/falBell.js +1 -1
  248. package/icon/icons/fal/falBookOpen.d.ts +1 -1
  249. package/icon/icons/fal/falBookOpen.js +1 -1
  250. package/icon/icons/fal/falBroadcastTower.d.ts +1 -1
  251. package/icon/icons/fal/falBroadcastTower.js +1 -1
  252. package/icon/icons/fal/falBuilding.d.ts +1 -1
  253. package/icon/icons/fal/falBuilding.js +1 -1
  254. package/icon/icons/fal/falBullseye.d.ts +1 -1
  255. package/icon/icons/fal/falBullseye.js +1 -1
  256. package/icon/icons/fal/falCalendar.d.ts +1 -1
  257. package/icon/icons/fal/falCalendar.js +1 -1
  258. package/icon/icons/fal/falCalendarAlt.d.ts +1 -1
  259. package/icon/icons/fal/falCalendarAlt.js +1 -1
  260. package/icon/icons/fal/falCamera.d.ts +1 -1
  261. package/icon/icons/fal/falCamera.js +1 -1
  262. package/icon/icons/fal/falCaretDown.d.ts +1 -1
  263. package/icon/icons/fal/falCaretDown.js +1 -1
  264. package/icon/icons/fal/falCaretLeft.d.ts +1 -1
  265. package/icon/icons/fal/falCaretLeft.js +1 -1
  266. package/icon/icons/fal/falCaretRight.d.ts +1 -1
  267. package/icon/icons/fal/falCaretRight.js +1 -1
  268. package/icon/icons/fal/falCaretUp.d.ts +1 -1
  269. package/icon/icons/fal/falCaretUp.js +1 -1
  270. package/icon/icons/fal/falCauldron.d.ts +1 -1
  271. package/icon/icons/fal/falCauldron.js +1 -1
  272. package/icon/icons/fal/falChartArea.d.ts +1 -1
  273. package/icon/icons/fal/falChartArea.js +1 -1
  274. package/icon/icons/fal/falChartBar.d.ts +1 -1
  275. package/icon/icons/fal/falChartBar.js +1 -1
  276. package/icon/icons/fal/falChartLine.d.ts +1 -1
  277. package/icon/icons/fal/falChartLine.js +1 -1
  278. package/icon/icons/fal/falChartLineDown.d.ts +1 -1
  279. package/icon/icons/fal/falChartLineDown.js +1 -1
  280. package/icon/icons/fal/falChartNetwork.d.ts +1 -1
  281. package/icon/icons/fal/falChartNetwork.js +1 -1
  282. package/icon/icons/fal/falChartPie.d.ts +1 -1
  283. package/icon/icons/fal/falChartPie.js +1 -1
  284. package/icon/icons/fal/falChartPieAlt.d.ts +1 -1
  285. package/icon/icons/fal/falChartPieAlt.js +1 -1
  286. package/icon/icons/fal/falChartScatter.d.ts +1 -1
  287. package/icon/icons/fal/falChartScatter.js +1 -1
  288. package/icon/icons/fal/falCheck.d.ts +1 -1
  289. package/icon/icons/fal/falCheck.js +1 -1
  290. package/icon/icons/fal/falCheckCircle.d.ts +1 -1
  291. package/icon/icons/fal/falCheckCircle.js +1 -1
  292. package/icon/icons/fal/falCheckSquare.d.ts +1 -1
  293. package/icon/icons/fal/falCheckSquare.js +1 -1
  294. package/icon/icons/fal/falChevronCircleDown.d.ts +1 -1
  295. package/icon/icons/fal/falChevronCircleDown.js +1 -1
  296. package/icon/icons/fal/falChevronCircleLeft.d.ts +1 -1
  297. package/icon/icons/fal/falChevronCircleLeft.js +1 -1
  298. package/icon/icons/fal/falChevronCircleRight.d.ts +1 -1
  299. package/icon/icons/fal/falChevronCircleRight.js +1 -1
  300. package/icon/icons/fal/falChevronCircleUp.d.ts +1 -1
  301. package/icon/icons/fal/falChevronCircleUp.js +1 -1
  302. package/icon/icons/fal/falChevronDoubleDown.d.ts +1 -1
  303. package/icon/icons/fal/falChevronDoubleDown.js +1 -1
  304. package/icon/icons/fal/falChevronDoubleLeft.d.ts +1 -1
  305. package/icon/icons/fal/falChevronDoubleLeft.js +1 -1
  306. package/icon/icons/fal/falChevronDoubleRight.d.ts +1 -1
  307. package/icon/icons/fal/falChevronDoubleRight.js +1 -1
  308. package/icon/icons/fal/falChevronDoubleUp.d.ts +1 -1
  309. package/icon/icons/fal/falChevronDoubleUp.js +1 -1
  310. package/icon/icons/fal/falChevronDown.d.ts +1 -1
  311. package/icon/icons/fal/falChevronDown.js +1 -1
  312. package/icon/icons/fal/falChevronLeft.d.ts +1 -1
  313. package/icon/icons/fal/falChevronLeft.js +1 -1
  314. package/icon/icons/fal/falChevronRight.d.ts +1 -1
  315. package/icon/icons/fal/falChevronRight.js +1 -1
  316. package/icon/icons/fal/falChevronUp.d.ts +1 -1
  317. package/icon/icons/fal/falChevronUp.js +1 -1
  318. package/icon/icons/fal/falCircle.d.ts +1 -1
  319. package/icon/icons/fal/falCircle.js +1 -1
  320. package/icon/icons/fal/falCloud.d.ts +1 -1
  321. package/icon/icons/fal/falCloud.js +1 -1
  322. package/icon/icons/fal/falCloudShowersHeavy.d.ts +1 -1
  323. package/icon/icons/fal/falCloudShowersHeavy.js +1 -1
  324. package/icon/icons/fal/falCloudSnow.d.ts +1 -1
  325. package/icon/icons/fal/falCloudSnow.js +1 -1
  326. package/icon/icons/fal/falCloudSun.d.ts +1 -1
  327. package/icon/icons/fal/falCloudSun.js +1 -1
  328. package/icon/icons/fal/falCloudSunRain.d.ts +1 -1
  329. package/icon/icons/fal/falCloudSunRain.js +1 -1
  330. package/icon/icons/fal/falCloudUpload.d.ts +1 -1
  331. package/icon/icons/fal/falCloudUpload.js +1 -1
  332. package/icon/icons/fal/falCode.d.ts +1 -1
  333. package/icon/icons/fal/falCode.js +1 -1
  334. package/icon/icons/fal/falCog.d.ts +1 -1
  335. package/icon/icons/fal/falCog.js +1 -1
  336. package/icon/icons/fal/falCogs.d.ts +1 -1
  337. package/icon/icons/fal/falCogs.js +1 -1
  338. package/icon/icons/fal/falComment.d.ts +1 -1
  339. package/icon/icons/fal/falComment.js +1 -1
  340. package/icon/icons/fal/falCommentAlt.d.ts +1 -1
  341. package/icon/icons/fal/falCommentAlt.js +1 -1
  342. package/icon/icons/fal/falCompressAlt.d.ts +1 -1
  343. package/icon/icons/fal/falCompressAlt.js +1 -1
  344. package/icon/icons/fal/falCopy.d.ts +1 -1
  345. package/icon/icons/fal/falCopy.js +1 -1
  346. package/icon/icons/fal/falCreditCard.d.ts +1 -1
  347. package/icon/icons/fal/falCreditCard.js +1 -1
  348. package/icon/icons/fal/falDatabase.d.ts +1 -1
  349. package/icon/icons/fal/falDatabase.js +1 -1
  350. package/icon/icons/fal/falDotCircle.d.ts +1 -1
  351. package/icon/icons/fal/falDotCircle.js +1 -1
  352. package/icon/icons/fal/falDownload.d.ts +1 -1
  353. package/icon/icons/fal/falDownload.js +1 -1
  354. package/icon/icons/fal/falEdit.d.ts +1 -1
  355. package/icon/icons/fal/falEdit.js +1 -1
  356. package/icon/icons/fal/falEllipsisH.d.ts +1 -1
  357. package/icon/icons/fal/falEllipsisH.js +1 -1
  358. package/icon/icons/fal/falEllipsisV.d.ts +1 -1
  359. package/icon/icons/fal/falEllipsisV.js +1 -1
  360. package/icon/icons/fal/falEnvelope.d.ts +1 -1
  361. package/icon/icons/fal/falEnvelope.js +1 -1
  362. package/icon/icons/fal/falExchange.d.ts +1 -1
  363. package/icon/icons/fal/falExchange.js +1 -1
  364. package/icon/icons/fal/falExclamationCircle.d.ts +1 -1
  365. package/icon/icons/fal/falExclamationCircle.js +1 -1
  366. package/icon/icons/fal/falExclamationTriangle.d.ts +1 -1
  367. package/icon/icons/fal/falExclamationTriangle.js +1 -1
  368. package/icon/icons/fal/falExpandAlt.d.ts +1 -1
  369. package/icon/icons/fal/falExpandAlt.js +1 -1
  370. package/icon/icons/fal/falExternalLink.d.ts +1 -1
  371. package/icon/icons/fal/falExternalLink.js +1 -1
  372. package/icon/icons/fal/falEye.d.ts +1 -1
  373. package/icon/icons/fal/falEye.js +1 -1
  374. package/icon/icons/fal/falEyeSlash.d.ts +1 -1
  375. package/icon/icons/fal/falEyeSlash.js +1 -1
  376. package/icon/icons/fal/falFile.d.ts +1 -1
  377. package/icon/icons/fal/falFile.js +1 -1
  378. package/icon/icons/fal/falFileAlt.d.ts +1 -1
  379. package/icon/icons/fal/falFileAlt.js +1 -1
  380. package/icon/icons/fal/falFileArchive.d.ts +1 -1
  381. package/icon/icons/fal/falFileArchive.js +1 -1
  382. package/icon/icons/fal/falFileAudio.d.ts +1 -1
  383. package/icon/icons/fal/falFileAudio.js +1 -1
  384. package/icon/icons/fal/falFileCertificate.d.ts +1 -1
  385. package/icon/icons/fal/falFileCertificate.js +1 -1
  386. package/icon/icons/fal/falFileChartLine.d.ts +1 -1
  387. package/icon/icons/fal/falFileChartLine.js +1 -1
  388. package/icon/icons/fal/falFileChartPie.d.ts +1 -1
  389. package/icon/icons/fal/falFileChartPie.js +1 -1
  390. package/icon/icons/fal/falFileCheck.d.ts +1 -1
  391. package/icon/icons/fal/falFileCheck.js +1 -1
  392. package/icon/icons/fal/falFileCode.d.ts +1 -1
  393. package/icon/icons/fal/falFileCode.js +1 -1
  394. package/icon/icons/fal/falFileCsv.d.ts +1 -1
  395. package/icon/icons/fal/falFileCsv.js +1 -1
  396. package/icon/icons/fal/falFileEdit.d.ts +1 -1
  397. package/icon/icons/fal/falFileEdit.js +1 -1
  398. package/icon/icons/fal/falFileExcel.d.ts +1 -1
  399. package/icon/icons/fal/falFileExcel.js +1 -1
  400. package/icon/icons/fal/falFileImage.d.ts +1 -1
  401. package/icon/icons/fal/falFileImage.js +1 -1
  402. package/icon/icons/fal/falFilePdf.d.ts +1 -1
  403. package/icon/icons/fal/falFilePdf.js +1 -1
  404. package/icon/icons/fal/falFilePlus.d.ts +1 -1
  405. package/icon/icons/fal/falFilePlus.js +1 -1
  406. package/icon/icons/fal/falFilePowerpoint.d.ts +1 -1
  407. package/icon/icons/fal/falFilePowerpoint.js +1 -1
  408. package/icon/icons/fal/falFileSpreadsheet.d.ts +1 -1
  409. package/icon/icons/fal/falFileSpreadsheet.js +1 -1
  410. package/icon/icons/fal/falFileVideo.d.ts +1 -1
  411. package/icon/icons/fal/falFileVideo.js +1 -1
  412. package/icon/icons/fal/falFileWord.d.ts +1 -1
  413. package/icon/icons/fal/falFileWord.js +1 -1
  414. package/icon/icons/fal/falFilter.d.ts +1 -1
  415. package/icon/icons/fal/falFilter.js +1 -1
  416. package/icon/icons/fal/falFlag.d.ts +1 -1
  417. package/icon/icons/fal/falFlag.js +1 -1
  418. package/icon/icons/fal/falFolder.d.ts +1 -1
  419. package/icon/icons/fal/falFolder.js +1 -1
  420. package/icon/icons/fal/falFolderOpen.d.ts +1 -1
  421. package/icon/icons/fal/falFolderOpen.js +1 -1
  422. package/icon/icons/fal/falFolderPlus.d.ts +1 -1
  423. package/icon/icons/fal/falFolderPlus.js +1 -1
  424. package/icon/icons/fal/falFolders.d.ts +1 -1
  425. package/icon/icons/fal/falFolders.js +1 -1
  426. package/icon/icons/fal/falGlassesAlt.d.ts +1 -1
  427. package/icon/icons/fal/falGlassesAlt.js +1 -1
  428. package/icon/icons/fal/falGlobe.d.ts +1 -1
  429. package/icon/icons/fal/falGlobe.js +1 -1
  430. package/icon/icons/fal/falHome.d.ts +1 -1
  431. package/icon/icons/fal/falHome.js +1 -1
  432. package/icon/icons/fal/falHourglass.d.ts +1 -1
  433. package/icon/icons/fal/falHourglass.js +1 -1
  434. package/icon/icons/fal/falImage.d.ts +1 -1
  435. package/icon/icons/fal/falImage.js +1 -1
  436. package/icon/icons/fal/falInfoCircle.d.ts +1 -1
  437. package/icon/icons/fal/falInfoCircle.js +1 -1
  438. package/icon/icons/fal/falKey.d.ts +1 -1
  439. package/icon/icons/fal/falKey.js +1 -1
  440. package/icon/icons/fal/falLayerPlus.d.ts +1 -1
  441. package/icon/icons/fal/falLayerPlus.js +1 -1
  442. package/icon/icons/fal/falLink.d.ts +1 -1
  443. package/icon/icons/fal/falLink.js +1 -1
  444. package/icon/icons/fal/falList.d.ts +1 -1
  445. package/icon/icons/fal/falList.js +1 -1
  446. package/icon/icons/fal/falLockAlt.d.ts +1 -1
  447. package/icon/icons/fal/falLockAlt.js +1 -1
  448. package/icon/icons/fal/falLongArrowDown.d.ts +1 -1
  449. package/icon/icons/fal/falLongArrowDown.js +1 -1
  450. package/icon/icons/fal/falLongArrowLeft.d.ts +1 -1
  451. package/icon/icons/fal/falLongArrowLeft.js +1 -1
  452. package/icon/icons/fal/falLongArrowRight.d.ts +1 -1
  453. package/icon/icons/fal/falLongArrowRight.js +1 -1
  454. package/icon/icons/fal/falLongArrowUp.d.ts +1 -1
  455. package/icon/icons/fal/falLongArrowUp.js +1 -1
  456. package/icon/icons/fal/falMap.d.ts +1 -1
  457. package/icon/icons/fal/falMap.js +1 -1
  458. package/icon/icons/fal/falMapMarked.d.ts +1 -1
  459. package/icon/icons/fal/falMapMarked.js +1 -1
  460. package/icon/icons/fal/falMapMarkedAlt.d.ts +1 -1
  461. package/icon/icons/fal/falMapMarkedAlt.js +1 -1
  462. package/icon/icons/fal/falMapMarker.d.ts +1 -1
  463. package/icon/icons/fal/falMapMarker.js +1 -1
  464. package/icon/icons/fal/falMapMarkerAlt.d.ts +1 -1
  465. package/icon/icons/fal/falMapMarkerAlt.js +1 -1
  466. package/icon/icons/fal/falMapMarkerAltSlash.d.ts +1 -1
  467. package/icon/icons/fal/falMapMarkerAltSlash.js +1 -1
  468. package/icon/icons/fal/falMapMarkerCheck.d.ts +1 -1
  469. package/icon/icons/fal/falMapMarkerCheck.js +1 -1
  470. package/icon/icons/fal/falMapMarkerExclamation.d.ts +1 -1
  471. package/icon/icons/fal/falMapMarkerExclamation.js +1 -1
  472. package/icon/icons/fal/falMinus.d.ts +1 -1
  473. package/icon/icons/fal/falMinus.js +1 -1
  474. package/icon/icons/fal/falPause.d.ts +1 -1
  475. package/icon/icons/fal/falPause.js +1 -1
  476. package/icon/icons/fal/falPauseCircle.d.ts +1 -1
  477. package/icon/icons/fal/falPauseCircle.js +1 -1
  478. package/icon/icons/fal/falPen.d.ts +1 -1
  479. package/icon/icons/fal/falPen.js +1 -1
  480. package/icon/icons/fal/falPlay.d.ts +1 -1
  481. package/icon/icons/fal/falPlay.js +1 -1
  482. package/icon/icons/fal/falPlayCircle.d.ts +1 -1
  483. package/icon/icons/fal/falPlayCircle.js +1 -1
  484. package/icon/icons/fal/falPlug.d.ts +1 -1
  485. package/icon/icons/fal/falPlug.js +1 -1
  486. package/icon/icons/fal/falPlus.d.ts +1 -1
  487. package/icon/icons/fal/falPlus.js +1 -1
  488. package/icon/icons/fal/falPlusCircle.d.ts +1 -1
  489. package/icon/icons/fal/falPlusCircle.js +1 -1
  490. package/icon/icons/fal/falPlusSquare.d.ts +1 -1
  491. package/icon/icons/fal/falPlusSquare.js +1 -1
  492. package/icon/icons/fal/falPrint.d.ts +1 -1
  493. package/icon/icons/fal/falPrint.js +1 -1
  494. package/icon/icons/fal/falPuzzlePiece.d.ts +1 -1
  495. package/icon/icons/fal/falPuzzlePiece.js +1 -1
  496. package/icon/icons/fal/falReceipt.d.ts +1 -1
  497. package/icon/icons/fal/falReceipt.js +1 -1
  498. package/icon/icons/fal/falRedo.d.ts +1 -1
  499. package/icon/icons/fal/falRedo.js +1 -1
  500. package/icon/icons/fal/falSave.d.ts +1 -1
  501. package/icon/icons/fal/falSave.js +1 -1
  502. package/icon/icons/fal/falSearch.d.ts +1 -1
  503. package/icon/icons/fal/falSearch.js +1 -1
  504. package/icon/icons/fal/falSearchPlus.d.ts +1 -1
  505. package/icon/icons/fal/falSearchPlus.js +1 -1
  506. package/icon/icons/fal/falServer.d.ts +1 -1
  507. package/icon/icons/fal/falServer.js +1 -1
  508. package/icon/icons/fal/falShare.d.ts +1 -1
  509. package/icon/icons/fal/falShare.js +1 -1
  510. package/icon/icons/fal/falShareAll.d.ts +1 -1
  511. package/icon/icons/fal/falShareAll.js +1 -1
  512. package/icon/icons/fal/falShareAlt.d.ts +1 -1
  513. package/icon/icons/fal/falShareAlt.js +1 -1
  514. package/icon/icons/fal/falShieldAlt.d.ts +1 -1
  515. package/icon/icons/fal/falShieldAlt.js +1 -1
  516. package/icon/icons/fal/falShieldCheck.d.ts +1 -1
  517. package/icon/icons/fal/falShieldCheck.js +1 -1
  518. package/icon/icons/fal/falShip.d.ts +1 -1
  519. package/icon/icons/fal/falShip.js +1 -1
  520. package/icon/icons/fal/falShoppingBasket.d.ts +1 -1
  521. package/icon/icons/fal/falShoppingBasket.js +1 -1
  522. package/icon/icons/fal/falSignInAlt.d.ts +1 -1
  523. package/icon/icons/fal/falSignInAlt.js +1 -1
  524. package/icon/icons/fal/falSignOut.d.ts +1 -1
  525. package/icon/icons/fal/falSignOut.js +1 -1
  526. package/icon/icons/fal/falSignOutAlt.d.ts +1 -1
  527. package/icon/icons/fal/falSignOutAlt.js +1 -1
  528. package/icon/icons/fal/falSlidersV.d.ts +1 -1
  529. package/icon/icons/fal/falSlidersV.js +1 -1
  530. package/icon/icons/fal/falSnowBlowing.d.ts +1 -1
  531. package/icon/icons/fal/falSnowBlowing.js +1 -1
  532. package/icon/icons/fal/falSnowflake.d.ts +1 -1
  533. package/icon/icons/fal/falSnowflake.js +1 -1
  534. package/icon/icons/fal/falSolarPanel.d.ts +1 -1
  535. package/icon/icons/fal/falSolarPanel.js +1 -1
  536. package/icon/icons/fal/falSort.d.ts +1 -1
  537. package/icon/icons/fal/falSort.js +1 -1
  538. package/icon/icons/fal/falSpinner.d.ts +1 -1
  539. package/icon/icons/fal/falSpinner.js +1 -1
  540. package/icon/icons/fal/falSquare.d.ts +1 -1
  541. package/icon/icons/fal/falSquare.js +1 -1
  542. package/icon/icons/fal/falStepForward.d.ts +1 -1
  543. package/icon/icons/fal/falStepForward.js +1 -1
  544. package/icon/icons/fal/falStop.d.ts +1 -1
  545. package/icon/icons/fal/falStop.js +1 -1
  546. package/icon/icons/fal/falStopCircle.d.ts +1 -1
  547. package/icon/icons/fal/falStopCircle.js +1 -1
  548. package/icon/icons/fal/falStopwatch.d.ts +1 -1
  549. package/icon/icons/fal/falStopwatch.js +1 -1
  550. package/icon/icons/fal/falSuitcase.d.ts +1 -1
  551. package/icon/icons/fal/falSuitcase.js +1 -1
  552. package/icon/icons/fal/falSun.d.ts +1 -1
  553. package/icon/icons/fal/falSun.js +1 -1
  554. package/icon/icons/fal/falSync.d.ts +1 -1
  555. package/icon/icons/fal/falSync.js +1 -1
  556. package/icon/icons/fal/falTachometer.d.ts +1 -1
  557. package/icon/icons/fal/falTachometer.js +1 -1
  558. package/icon/icons/fal/falTemperatureHigh.d.ts +1 -1
  559. package/icon/icons/fal/falTemperatureHigh.js +1 -1
  560. package/icon/icons/fal/falTh.d.ts +1 -1
  561. package/icon/icons/fal/falTh.js +1 -1
  562. package/icon/icons/fal/falThLarge.d.ts +1 -1
  563. package/icon/icons/fal/falThLarge.js +1 -1
  564. package/icon/icons/fal/falThList.d.ts +1 -1
  565. package/icon/icons/fal/falThList.js +1 -1
  566. package/icon/icons/fal/falTimes.d.ts +1 -1
  567. package/icon/icons/fal/falTimes.js +1 -1
  568. package/icon/icons/fal/falTimesCircle.d.ts +1 -1
  569. package/icon/icons/fal/falTimesCircle.js +1 -1
  570. package/icon/icons/fal/falToggleOff.d.ts +1 -1
  571. package/icon/icons/fal/falToggleOff.js +1 -1
  572. package/icon/icons/fal/falToggleOn.d.ts +1 -1
  573. package/icon/icons/fal/falToggleOn.js +1 -1
  574. package/icon/icons/fal/falTrashAlt.d.ts +1 -1
  575. package/icon/icons/fal/falTrashAlt.js +1 -1
  576. package/icon/icons/fal/falUnlockAlt.d.ts +1 -1
  577. package/icon/icons/fal/falUnlockAlt.js +1 -1
  578. package/icon/icons/fal/falUser.d.ts +1 -1
  579. package/icon/icons/fal/falUser.js +1 -1
  580. package/icon/icons/fal/falUserChart.d.ts +1 -1
  581. package/icon/icons/fal/falUserChart.js +1 -1
  582. package/icon/icons/fal/falUserCircle.d.ts +1 -1
  583. package/icon/icons/fal/falUserCircle.js +1 -1
  584. package/icon/icons/fal/falUserCog.d.ts +1 -1
  585. package/icon/icons/fal/falUserCog.js +1 -1
  586. package/icon/icons/fal/falUserEdit.d.ts +1 -1
  587. package/icon/icons/fal/falUserEdit.js +1 -1
  588. package/icon/icons/fal/falUserFriends.d.ts +1 -1
  589. package/icon/icons/fal/falUserFriends.js +1 -1
  590. package/icon/icons/fal/falUserPlus.d.ts +1 -1
  591. package/icon/icons/fal/falUserPlus.js +1 -1
  592. package/icon/icons/fal/falUserShield.d.ts +1 -1
  593. package/icon/icons/fal/falUserShield.js +1 -1
  594. package/icon/icons/fal/falUserTimes.d.ts +1 -1
  595. package/icon/icons/fal/falUserTimes.js +1 -1
  596. package/icon/icons/fal/falUsers.d.ts +1 -1
  597. package/icon/icons/fal/falUsers.js +1 -1
  598. package/icon/icons/fal/falUsersClass.d.ts +1 -1
  599. package/icon/icons/fal/falUsersClass.js +1 -1
  600. package/icon/icons/fal/falWater.d.ts +1 -1
  601. package/icon/icons/fal/falWater.js +1 -1
  602. package/icon/icons/fal/falWind.d.ts +1 -1
  603. package/icon/icons/fal/falWind.js +1 -1
  604. package/icon/icons/fal/falWindTurbine.d.ts +1 -1
  605. package/icon/icons/fal/falWindTurbine.js +1 -1
  606. package/icon/icons/fal/falWrench.d.ts +1 -1
  607. package/icon/icons/fal/falWrench.js +1 -1
  608. package/icon/icons/fas/fasCaretDown.d.ts +1 -1
  609. package/icon/icons/fas/fasCaretDown.js +1 -1
  610. package/icon/icons/fas/fasCaretLeft.d.ts +1 -1
  611. package/icon/icons/fas/fasCaretLeft.js +1 -1
  612. package/icon/icons/fas/fasCaretRight.d.ts +1 -1
  613. package/icon/icons/fas/fasCaretRight.js +1 -1
  614. package/icon/icons/fas/fasCaretUp.d.ts +1 -1
  615. package/icon/icons/fas/fasCaretUp.js +1 -1
  616. package/icon/icons/fas/fasDiamond.d.ts +1 -1
  617. package/icon/icons/fas/fasDiamond.js +1 -1
  618. package/icon/icons/fas/fasFolder.d.ts +1 -1
  619. package/icon/icons/fas/fasFolder.js +1 -1
  620. package/icon/icons/fas/fasMapMarkerAlt.d.ts +1 -1
  621. package/icon/icons/fas/fasMapMarkerAlt.js +1 -1
  622. package/icon/icons/fas/fasMapMarkerExclamation.d.ts +1 -1
  623. package/icon/icons/fas/fasMapMarkerExclamation.js +1 -1
  624. package/icon/icons/fas/fasQuoteLeft.d.ts +1 -1
  625. package/icon/icons/fas/fasQuoteLeft.js +1 -1
  626. package/icon/icons/fas/fasQuoteRight.d.ts +1 -1
  627. package/icon/icons/fas/fasQuoteRight.js +1 -1
  628. package/icon/icons/fas/fasSolarPanel.d.ts +1 -1
  629. package/icon/icons/fas/fasSolarPanel.js +1 -1
  630. package/icon/icons/fas/fasSort.d.ts +1 -1
  631. package/icon/icons/fas/fasSort.js +1 -1
  632. package/icon/icons/fas/fasStar.d.ts +1 -1
  633. package/icon/icons/fas/fasStar.js +1 -1
  634. package/icon/icons/fas/fasWindTurbine.d.ts +1 -1
  635. package/icon/icons/fas/fasWindTurbine.js +1 -1
  636. package/icon/icons/types.d.ts +1 -13
  637. package/index.d.ts +5 -1
  638. package/index.js +5 -1
  639. package/input/consts.d.ts +2 -18
  640. package/input/consts.js +2 -2
  641. package/input/input.d.ts +7 -6
  642. package/input/input.js +15 -17
  643. package/input/input.types.d.ts +20 -15
  644. package/input/theme.d.ts +5 -0
  645. package/input/theme.js +10 -5
  646. package/label/label.d.ts +4 -4
  647. package/label/label.js +3 -6
  648. package/label/label.types.d.ts +2 -2
  649. package/label/theme.js +11 -11
  650. package/link/link.d.ts +4 -4
  651. package/link/link.js +3 -5
  652. package/link/link.types.d.ts +8 -9
  653. package/link/theme.d.ts +27 -3
  654. package/link/theme.js +30 -3
  655. package/list/context.js +1 -1
  656. package/list/index.d.ts +1 -0
  657. package/list/index.js +1 -0
  658. package/list/list.d.ts +8 -4
  659. package/list/list.js +6 -6
  660. package/list/list.types.d.ts +2 -2
  661. package/list/listIcon.d.ts +3 -0
  662. package/list/listIcon.js +30 -0
  663. package/list/listItem.d.ts +2 -4
  664. package/list/listItem.js +13 -13
  665. package/list/listItem.types.d.ts +6 -2
  666. package/list/theme.d.ts +37 -3
  667. package/list/theme.js +43 -18
  668. package/p/p.d.ts +4 -4
  669. package/p/p.js +3 -5
  670. package/p/p.types.d.ts +8 -11
  671. package/package.json +1 -1
  672. package/radio/context.d.ts +4 -0
  673. package/radio/context.js +23 -0
  674. package/radio/index.d.ts +6 -0
  675. package/radio/index.js +23 -0
  676. package/radio/radio.d.ts +6 -0
  677. package/radio/radio.js +68 -0
  678. package/radio/radio.types.d.ts +25 -0
  679. package/radio/radio.types.js +2 -0
  680. package/radio/radioGroup.d.ts +4 -0
  681. package/radio/radioGroup.js +99 -0
  682. package/radio/radioGroup.types.d.ts +15 -0
  683. package/radio/radioGroup.types.js +2 -0
  684. package/radio/theme.d.ts +48 -0
  685. package/radio/theme.js +56 -0
  686. package/skeleton/skeleton.d.ts +2 -4
  687. package/skeleton/skeleton.js +4 -6
  688. package/skeleton/skeleton.types.d.ts +3 -4
  689. package/spinner/consts.d.ts +34 -0
  690. package/spinner/consts.js +21 -0
  691. package/spinner/index.d.ts +3 -0
  692. package/spinner/index.js +20 -0
  693. package/spinner/spinner.d.ts +4 -0
  694. package/spinner/spinner.js +60 -0
  695. package/spinner/spinner.types.d.ts +15 -0
  696. package/spinner/spinner.types.js +2 -0
  697. package/spinner/theme.d.ts +68 -0
  698. package/spinner/theme.js +74 -0
  699. package/styles/animations.d.ts +10 -0
  700. package/styles/animations.js +9 -0
  701. package/styles/colors.d.ts +171 -0
  702. package/styles/colors.js +96 -0
  703. package/styles/durations.d.ts +7 -0
  704. package/styles/durations.js +8 -0
  705. package/styles/fontFaces.d.ts +2 -0
  706. package/styles/fontFaces.js +4 -0
  707. package/styles/fontSizes.d.ts +7 -0
  708. package/styles/fontSizes.js +8 -0
  709. package/styles/fontWeights.d.ts +7 -0
  710. package/styles/fontWeights.js +8 -0
  711. package/styles/fonts.d.ts +4 -2
  712. package/styles/fonts.js +3 -3
  713. package/styles/index.d.ts +10 -0
  714. package/styles/index.js +20 -1
  715. package/styles/radii.d.ts +8 -0
  716. package/styles/radii.js +9 -0
  717. package/styles/screens.d.ts +8 -0
  718. package/styles/screens.js +9 -0
  719. package/styles/shadows.d.ts +9 -0
  720. package/styles/shadows.js +11 -0
  721. package/svg/helpers.d.ts +1 -1
  722. package/svg/helpers.js +1 -1
  723. package/svg/svg.d.ts +3 -5
  724. package/svg/svg.js +11 -8
  725. package/svg/svg.types.d.ts +10 -5
  726. package/switch/context.d.ts +4 -0
  727. package/switch/context.js +23 -0
  728. package/switch/index.d.ts +7 -0
  729. package/switch/index.js +24 -0
  730. package/switch/switch.d.ts +10 -0
  731. package/switch/switch.js +133 -0
  732. package/switch/switch.types.d.ts +22 -0
  733. package/switch/switch.types.js +2 -0
  734. package/switch/switchButton.d.ts +7 -0
  735. package/switch/switchButton.js +134 -0
  736. package/switch/switchButton.types.d.ts +24 -0
  737. package/switch/switchButton.types.js +2 -0
  738. package/switch/switchLabel.d.ts +3 -0
  739. package/switch/switchLabel.js +30 -0
  740. package/switch/theme.d.ts +87 -0
  741. package/switch/theme.js +113 -0
  742. package/system/colors.d.ts +3 -2
  743. package/system/transitions.d.ts +2 -1
  744. package/system/typography.d.ts +14 -9
  745. package/t/t.d.ts +4 -4
  746. package/t/t.js +7 -7
  747. package/t/t.types.d.ts +10 -10
  748. package/textarea/textarea.d.ts +4 -4
  749. package/textarea/textarea.js +4 -8
  750. package/textarea/textarea.types.d.ts +1 -2
  751. package/textarea/theme.js +4 -4
  752. package/theme/components.d.ts +327 -20
  753. package/theme/components.js +24 -18
  754. package/theme/defaultTheme.d.ts +344 -35
  755. package/theme/foundations.d.ts +144 -0
  756. package/theme/foundations.js +20 -0
  757. package/tile/tile.d.ts +1 -1
  758. package/tile/tile.js +2 -2
  759. package/tile/tile.types.d.ts +2 -2
  760. package/utils/object.d.ts +1 -1
package/input/theme.d.ts CHANGED
@@ -12,6 +12,11 @@ declare const _default: {
12
12
  variant: string;
13
13
  };
14
14
  sizes: {
15
+ xs: {
16
+ fontSize: string;
17
+ h: number;
18
+ iconSize: string;
19
+ };
15
20
  sm: {
16
21
  fontSize: string;
17
22
  h: number;
package/input/theme.js CHANGED
@@ -2,18 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  function variantDefault(props) {
4
4
  var c = props.colorScheme;
5
- var colors = {
5
+ var styles = {
6
6
  borderColor: c + ".80",
7
7
  focusWithinRing: 2,
8
8
  focusWithinRingColor: c + ".80",
9
9
  iconColor: c + ".80"
10
10
  };
11
11
  if (c === 'grey') {
12
- colors.borderColor = c + ".60";
13
- colors.focusWithinRingColor = 'blue.70';
14
- colors.iconColor = 'blue.80';
12
+ styles.borderColor = c + ".60";
13
+ styles.focusWithinRingColor = 'blue.50';
14
+ styles.iconColor = 'blue.80';
15
15
  }
16
- return colors;
16
+ return styles;
17
17
  }
18
18
  var defaultProps = {
19
19
  colorScheme: 'grey',
@@ -21,6 +21,11 @@ var defaultProps = {
21
21
  variant: 'default'
22
22
  };
23
23
  var sizes = {
24
+ xs: {
25
+ fontSize: 'xs',
26
+ h: 24,
27
+ iconSize: 'xs'
28
+ },
24
29
  sm: {
25
30
  fontSize: 'sm',
26
31
  h: 32,
package/label/label.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LabelProps, LabelStyleProps } from './label.types';
2
- export declare const BaseLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
3
- [x: string]: {};
4
- } & LabelStyleProps, never>;
5
- export declare const Label: import("styled-components").StyledComponent<"span", never, LabelProps, never>;
2
+ export declare const LabelBase: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, LabelStyleProps & {
3
+ color?: any;
4
+ }, never>;
5
+ export declare const Label: import("../core").VuiComponent<"span", LabelProps>;
6
6
  export default Label;
package/label/label.js CHANGED
@@ -29,7 +29,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
29
29
  return (mod && mod.__esModule) ? mod : { "default": mod };
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.Label = exports.BaseLabel = void 0;
32
+ exports.Label = exports.LabelBase = void 0;
33
33
  var styled_components_1 = require("@xstyled/styled-components");
34
34
  var react_1 = __importDefault(require("react"));
35
35
  var styled_components_2 = __importDefault(require("styled-components"));
@@ -39,9 +39,7 @@ var system_1 = require("../system");
39
39
  var utils_1 = require("../utils");
40
40
  var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.effects, styled_components_1.flexboxes, styled_components_1.interactivity, system_1.isTruncated, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
41
41
  var Text = styled_components_2.default.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), system_1.isTruncated);
42
- exports.BaseLabel = styled_components_2.default.span.withConfig({
43
- shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
44
- })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\tline-height: 1.1;\n\tmin-width: 0px;\n\tposition: relative;\n\ttransition: all 0s ease-in-out;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\tline-height: 1.1;\n\tmin-width: 0px;\n\tposition: relative;\n\ttransition: all 0s ease-in-out;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t", "\n"])), generator);
42
+ exports.LabelBase = styled_components_2.default.span.withConfig(core_1.forwardPropConfig(generator))(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\tline-height: normal;\n\tmin-width: 0px;\n\tposition: relative;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\tline-height: normal;\n\tmin-width: 0px;\n\tposition: relative;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t", "\n"])), generator);
45
43
  exports.Label = core_1.forwardRef(function (props, ref) {
46
44
  var _a = core_1.omitThemingProps(props), casing = _a.casing, children = _a.children, className = _a.className, icon = _a.icon, iconLeft = _a.iconLeft, iconRight = _a.iconRight, isElevated = _a.isElevated, isFullWidth = _a.isFullWidth, _b = _a.isInteractive, isInteractive = _b === void 0 ? props.onClick !== undefined : _b, isLoading = _a.isLoading, isRound = _a.isRound, isSplit = _a.isSplit, _c = _a.isTruncated, isTruncated = _c === void 0 ? true : _c, itemLeft = _a.itemLeft, itemRight = _a.itemRight, text = _a.text, weight = _a.weight, rest = __rest(_a, ["casing", "children", "className", "icon", "iconLeft", "iconRight", "isElevated", "isFullWidth", "isInteractive", "isLoading", "isRound", "isSplit", "isTruncated", "itemLeft", "itemRight", "text", "weight"]);
47
45
  var _d = core_1.useStyleConfig('Label', props), activeBg = _d.activeBg, h = _d.h, hoverBg = _d.hoverBg, _e = _d.iconSize, iconSize = _e === void 0 ? 'md' : _e, _f = _d.spaceX, spaceXBase = _f === void 0 ? 0 : _f, styles = __rest(_d, ["activeBg", "h", "hoverBg", "iconSize", "spaceX"]);
@@ -56,7 +54,6 @@ exports.Label = core_1.forwardRef(function (props, ref) {
56
54
  hoverBg: hoverBg,
57
55
  activeBg: activeBg,
58
56
  focusRing: 3,
59
- focusRingColor: 'blue.50',
60
57
  tabIndex: 0,
61
58
  userSelect: 'none'
62
59
  }
@@ -69,7 +66,7 @@ exports.Label = core_1.forwardRef(function (props, ref) {
69
66
  textTransform: casing,
70
67
  w: isFullWidth ? '100%' : undefined
71
68
  });
72
- return (react_1.default.createElement(exports.BaseLabel, __assign({ borderRadius: "md", className: utils_1.cs('vui-label', className), fontWeight: "medium", h: h, pl: pl, pr: pr, ref: ref, transitionDuration: "fast" }, styles, interactiveProps, aliasedProps, rest), icon ? (react_1.default.createElement(icon_1.default, { icon: icon, size: iconSize })) : (react_1.default.createElement(react_1.default.Fragment, null, itemLeft !== null && itemLeft !== void 0 ? itemLeft : (iconLeft && react_1.default.createElement(icon_1.default, { icon: iconLeft, mr: spaceX, size: iconSize })),
69
+ return (react_1.default.createElement(exports.LabelBase, __assign({ borderRadius: "md", className: utils_1.cs('vui-label', className), fontWeight: "medium", h: h, pl: pl, pr: pr, ref: ref, transitionDuration: "fast" }, styles, interactiveProps, aliasedProps, rest), icon ? (react_1.default.createElement(icon_1.default, { icon: icon, size: iconSize })) : (react_1.default.createElement(react_1.default.Fragment, null, itemLeft !== null && itemLeft !== void 0 ? itemLeft : (iconLeft && react_1.default.createElement(icon_1.default, { icon: iconLeft, mr: spaceX, size: iconSize })),
73
70
  react_1.default.createElement(Text, { isTruncated: isTruncated }, children !== null && children !== void 0 ? children : text), itemRight !== null && itemRight !== void 0 ? itemRight : (iconRight && react_1.default.createElement(icon_1.default, { icon: iconRight, ml: iconRightMl, size: iconSize })),
74
71
  isLoading && react_1.default.createElement(icon_1.default, { animation: "spin", icon: "falSpinner", ml: iconRightMl, size: iconSize })))));
75
72
  });
@@ -1,8 +1,8 @@
1
- import { HTMLAttributes } from 'react';
1
+ /// <reference types="react" />
2
2
  import { IconProp } from '../icon';
3
3
  import { BackgroundColorProps, BordersProps, EffectsProps, InteractivityProps, IsTruncatedProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps } from '../system';
4
4
  import { ThemingProps } from '../theme';
5
- export interface LabelProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'color'>, LabelStyleProps, ThemingProps<'Label'> {
5
+ export interface LabelProps extends LabelStyleProps, ThemingProps<'Label'> {
6
6
  casing?: TypographyProps['textTransform'];
7
7
  colorScheme?: 'blue' | 'green' | 'grey' | 'prussian' | 'red' | 'yellow';
8
8
  icon?: IconProp;
package/label/theme.js CHANGED
@@ -18,22 +18,22 @@ function variantOutlined(props) {
18
18
  }
19
19
  function variantSolid(props) {
20
20
  var c = props.colorScheme;
21
- var colors = {
21
+ var styles = {
22
22
  hoverBg: c + ".90",
23
23
  activeBg: c + ".100",
24
24
  bg: c + ".80",
25
25
  color: 'white'
26
26
  };
27
27
  if (c === 'yellow') {
28
- colors.hoverBg = c + ".80";
29
- colors.activeBg = c + ".90";
30
- colors.bg = c + ".70";
28
+ styles.hoverBg = c + ".80";
29
+ styles.activeBg = c + ".90";
30
+ styles.bg = c + ".70";
31
31
  }
32
- return colors;
32
+ return styles;
33
33
  }
34
34
  function variantSubtle(props) {
35
35
  var c = props.colorScheme;
36
- var colors = {
36
+ var styles = {
37
37
  hoverBg: c + ".30",
38
38
  activeBg: c + ".40",
39
39
  bg: c + ".20",
@@ -41,18 +41,18 @@ function variantSubtle(props) {
41
41
  };
42
42
  // Special cases
43
43
  if (c === 'green') {
44
- colors.color = c + ".90";
44
+ styles.color = c + ".90";
45
45
  }
46
46
  if (c === 'grey') {
47
- colors.color = "prussian.80";
47
+ styles.color = "prussian.80";
48
48
  }
49
49
  if (c === 'red') {
50
- colors.color = c + ".90";
50
+ styles.color = c + ".90";
51
51
  }
52
52
  if (c === 'yellow') {
53
- colors.color = c + ".100";
53
+ styles.color = c + ".100";
54
54
  }
55
- return colors;
55
+ return styles;
56
56
  }
57
57
  function variantText(props) {
58
58
  var c = props.colorScheme;
package/link/link.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LinkProps, LinkStyleProps } from './link.types';
2
- export declare const BaseLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {
3
- [x: string]: {};
4
- } & LinkStyleProps, never>;
5
- export declare const Link: import("styled-components").StyledComponent<"a", never, LinkProps, never>;
2
+ export declare const LinkBase: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, LinkStyleProps & {
3
+ color?: any;
4
+ }, never>;
5
+ export declare const Link: import("../core").VuiComponent<"a", LinkProps>;
6
6
  export default Link;
package/link/link.js CHANGED
@@ -29,7 +29,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
29
29
  return (mod && mod.__esModule) ? mod : { "default": mod };
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.Link = exports.BaseLink = void 0;
32
+ exports.Link = exports.LinkBase = void 0;
33
33
  var styled_components_1 = require("@xstyled/styled-components");
34
34
  var react_1 = __importDefault(require("react"));
35
35
  var styled_components_2 = __importDefault(require("styled-components"));
@@ -37,9 +37,7 @@ var core_1 = require("../core");
37
37
  var system_1 = require("../system");
38
38
  var utils_1 = require("../utils");
39
39
  var generator = styled_components_1.compose(styled_components_1.borders, system_1.isTruncated, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
40
- exports.BaseLink = styled_components_2.default.a.withConfig({
41
- shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
42
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\toutline: none;\n\ttext-decoration: none;\n\ttransition: all 0s ease-in-out;\n\n\t", "\n"], ["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\toutline: none;\n\ttext-decoration: none;\n\ttransition: all 0s ease-in-out;\n\n\t", "\n"])), generator);
40
+ exports.LinkBase = styled_components_2.default.a.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\toutline: none;\n\ttext-decoration: none;\n\twidth: fit-content;\n\n\t", "\n"], ["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\toutline: none;\n\ttext-decoration: none;\n\twidth: fit-content;\n\n\t", "\n"])), generator);
43
41
  exports.Link = core_1.forwardRef(function (props, ref) {
44
42
  var _a = core_1.omitThemingProps(props), className = _a.className, decoration = _a.decoration, _b = _a.hoverDecoration, hoverDecoration = _b === void 0 ? 'underline' : _b, isExternal = _a.isExternal, weight = _a.weight, rest = __rest(_a, ["className", "decoration", "hoverDecoration", "isExternal", "weight"]);
45
43
  var styles = core_1.useStyleConfig('Link', props);
@@ -50,7 +48,7 @@ exports.Link = core_1.forwardRef(function (props, ref) {
50
48
  target: isExternal ? '_blank' : undefined,
51
49
  textDecoration: decoration
52
50
  });
53
- return (react_1.default.createElement(exports.BaseLink, __assign({ borderRadius: "sm", className: utils_1.cs('vui-link', className), color: "blue.80", focusRing: 2, focusRingColor: "blue.50", ref: ref, transitionDuration: "fast" }, styles, aliasedProps, rest)));
51
+ return (react_1.default.createElement(exports.LinkBase, __assign({ borderRadius: "sm", className: utils_1.cs('vui-link', className), focusRing: 2, ref: ref, transitionDuration: "instant" }, styles, aliasedProps, rest)));
54
52
  });
55
53
  exports.Link.displayName = 'Link';
56
54
  exports.default = exports.Link;
@@ -1,12 +1,11 @@
1
- import { HTMLAttributes } from 'react';
2
- import { BordersProps, IsTruncatedProps, SizingProps, SpaceProps, TextDecorationProps, TransitionsProps, TypographyProps } from '../system';
3
- import { FontWeight, ThemingProps, VuiTheme } from '../theme';
4
- import { AnyString } from '../utils';
5
- export interface LinkProps extends Omit<HTMLAttributes<HTMLAnchorElement>, 'color'>, LinkStyleProps, ThemingProps<'Link'> {
6
- decoration?: TextDecorationProps['textDecoration'];
7
- hoverDecoration?: TextDecorationProps['textDecoration'];
1
+ import { BordersProps, IsTruncatedProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps } from '../system';
2
+ import { ThemingProps } from '../theme';
3
+ export interface LinkProps extends LinkStyleProps, ThemingProps<'Link'> {
4
+ colorScheme?: 'blue' | 'prussian';
5
+ decoration?: TypographyProps['textDecoration'];
6
+ hoverDecoration?: TypographyProps['textDecoration'];
8
7
  isExternal?: boolean;
9
- weight?: FontWeight | AnyString | number;
8
+ weight?: TypographyProps['fontWeight'];
10
9
  }
11
- export interface LinkStyleProps extends BordersProps, IsTruncatedProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps<VuiTheme> {
10
+ export interface LinkStyleProps extends BordersProps, IsTruncatedProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
12
11
  }
package/link/theme.d.ts CHANGED
@@ -1,6 +1,30 @@
1
+ import { Dict } from '../utils';
2
+ declare function variantDefault(props: Dict): {
3
+ color: string;
4
+ hoverColor: string;
5
+ };
1
6
  declare const _default: {
2
- defaultProps: {};
3
- sizes: {};
4
- variants: {};
7
+ defaultProps: {
8
+ colorScheme: string;
9
+ size: string;
10
+ variant: string;
11
+ };
12
+ sizes: {
13
+ xs: {
14
+ fontSize: string;
15
+ };
16
+ sm: {
17
+ fontSize: string;
18
+ };
19
+ md: {
20
+ fontSize: string;
21
+ };
22
+ lg: {
23
+ fontSize: string;
24
+ };
25
+ };
26
+ variants: {
27
+ default: typeof variantDefault;
28
+ };
5
29
  };
6
30
  export default _default;
package/link/theme.js CHANGED
@@ -1,8 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var defaultProps = {};
4
- var sizes = {};
5
- var variants = {};
3
+ function variantDefault(props) {
4
+ var c = props.colorScheme;
5
+ var styles = {
6
+ color: c + ".80",
7
+ hoverColor: c + ".60"
8
+ };
9
+ return styles;
10
+ }
11
+ var defaultProps = {
12
+ colorScheme: 'blue',
13
+ size: 'md',
14
+ variant: 'default'
15
+ };
16
+ var sizes = {
17
+ xs: {
18
+ fontSize: 'xs'
19
+ },
20
+ sm: {
21
+ fontSize: 'sm'
22
+ },
23
+ md: {
24
+ fontSize: 'md'
25
+ },
26
+ lg: {
27
+ fontSize: 'lg'
28
+ }
29
+ };
30
+ var variants = {
31
+ default: variantDefault
32
+ };
6
33
  exports.default = {
7
34
  defaultProps: defaultProps,
8
35
  sizes: sizes,
package/list/context.js CHANGED
@@ -18,6 +18,6 @@ var __read = (this && this.__read) || function (o, n) {
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.useList = exports.ListProvider = void 0;
20
20
  var core_1 = require("../core");
21
- var _a = __read(core_1.createContext(), 2), ListProvider = _a[0], useList = _a[1];
21
+ var _a = __read(core_1.createContext({ isOptional: true }), 2), ListProvider = _a[0], useList = _a[1];
22
22
  exports.ListProvider = ListProvider;
23
23
  exports.useList = useList;
package/list/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './context';
1
2
  export * from './list';
2
3
  export * from './list.types';
3
4
  export * from './listItem';
package/list/index.js CHANGED
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  };
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.default = void 0;
17
+ __exportStar(require("./context"), exports);
17
18
  __exportStar(require("./list"), exports);
18
19
  __exportStar(require("./list.types"), exports);
19
20
  __exportStar(require("./listItem"), exports);
package/list/list.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  import { ListProps, ListStyleProps } from './list.types';
2
- export declare const BaseList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {
3
- [x: string]: {};
4
- } & ListStyleProps, never>;
5
- export declare const List: import("styled-components").StyledComponent<"ul", never, ListProps, never>;
2
+ import ListIcon from './listIcon';
3
+ import ListItem from './listItem';
4
+ import { VuiComponent } from '../core';
5
+ export declare const ListBase: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, ListStyleProps, never>;
6
+ export declare const List: VuiComponent<"div", ListProps> & {
7
+ Icon: typeof ListIcon;
8
+ Item: typeof ListItem;
9
+ };
6
10
  export default List;
package/list/list.js CHANGED
@@ -48,18 +48,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
48
48
  return (mod && mod.__esModule) ? mod : { "default": mod };
49
49
  };
50
50
  Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.List = exports.BaseList = void 0;
51
+ exports.List = exports.ListBase = void 0;
52
52
  var styled_components_1 = require("@xstyled/styled-components");
53
53
  var react_1 = __importStar(require("react"));
54
54
  var styled_components_2 = __importDefault(require("styled-components"));
55
55
  var context_1 = require("./context");
56
+ var listIcon_1 = __importDefault(require("./listIcon"));
56
57
  var listItem_1 = __importDefault(require("./listItem"));
57
58
  var core_1 = require("../core");
58
59
  var utils_1 = require("../utils");
59
60
  var generator = styled_components_1.compose(styled_components_1.sizing, styled_components_1.space, styled_components_1.typography);
60
- exports.BaseList = styled_components_2.default.ul.withConfig({
61
- shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
62
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), generator);
61
+ exports.ListBase = styled_components_2.default.ul.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), generator);
63
62
  exports.List = core_1.forwardRef(function (props, ref) {
64
63
  var children = props.children, className = props.className, colorScheme = props.colorScheme, isInteractive = props.isInteractive, size = props.size, subheader = props.subheader, variant = props.variant, rest = __rest(props, ["children", "className", "colorScheme", "isInteractive", "size", "subheader", "variant"]);
65
64
  var styles = core_1.useStyleConfig('List', props);
@@ -69,12 +68,13 @@ exports.List = core_1.forwardRef(function (props, ref) {
69
68
  size,
70
69
  variant
71
70
  ]);
72
- var listStyleType = props.as === 'ol' ? 'decimal' : 'disc';
73
71
  return (react_1.default.createElement(context_1.ListProvider, { value: context },
74
- react_1.default.createElement(exports.BaseList, __assign({ className: utils_1.cs('vui-list', className), listStyleType: listStyleType, ref: ref }, styles.list, rest),
72
+ react_1.default.createElement(exports.ListBase, __assign({ className: utils_1.cs('vui-list', className), ref: ref }, styles.container, rest),
75
73
  subheader && (react_1.default.createElement(listItem_1.default, { className: "vui-listSubheader", color: "grey.80", fontSize: "sm", fontWeight: "medium" }, subheader)),
76
74
  children)));
77
75
  });
78
76
  exports.List.displayName = 'List';
77
+ exports.List.Icon = listIcon_1.default;
78
+ exports.List.Item = listItem_1.default;
79
79
  exports.default = exports.List;
80
80
  var templateObject_1;
@@ -1,8 +1,8 @@
1
- import { HTMLAttributes } from 'react';
2
1
  import { SizingProps, SpaceProps, TransitionsProps, TypographyProps } from '../system';
3
2
  import { ThemingProps } from '../theme';
4
- export interface ListProps extends Omit<HTMLAttributes<HTMLUListElement>, 'color'>, ListStyleProps, ThemingProps<'List'> {
3
+ export interface ListProps extends ListStyleProps, ThemingProps<'List'> {
5
4
  colorScheme?: 'blue' | 'grey';
5
+ disabled?: boolean;
6
6
  isInteractive?: boolean;
7
7
  subheader?: string;
8
8
  }
@@ -0,0 +1,3 @@
1
+ import { IconProps } from '../icon';
2
+ export declare const ListIcon: import("../core").VuiComponent<"svg", IconProps>;
3
+ export default ListIcon;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.ListIcon = void 0;
18
+ var react_1 = __importDefault(require("react"));
19
+ var context_1 = require("./context");
20
+ var core_1 = require("../core");
21
+ var icon_1 = __importDefault(require("../icon"));
22
+ exports.ListIcon = core_1.forwardRef(function (props, ref) {
23
+ var _a;
24
+ var listProps = (_a = context_1.useList()) !== null && _a !== void 0 ? _a : {};
25
+ var mergedProps = __assign(__assign({}, listProps), props);
26
+ var styles = core_1.useStyleConfig('List', mergedProps);
27
+ return react_1.default.createElement(icon_1.default, __assign({ ref: ref }, styles.icon, props));
28
+ });
29
+ exports.ListIcon.displayName = 'ListIcon';
30
+ exports.default = exports.ListIcon;
@@ -1,6 +1,4 @@
1
1
  import { ListItemProps, ListItemStyleProps } from './listItem.types';
2
- export declare const BaseListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {
3
- [x: string]: {};
4
- } & ListItemStyleProps, never>;
5
- export declare const ListItem: import("styled-components").StyledComponent<"li", never, ListItemProps, never>;
2
+ export declare const ListItemBase: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, ListItemStyleProps, never>;
3
+ export declare const ListItem: import("../core").VuiComponent<"li", ListItemProps>;
6
4
  export default ListItem;
package/list/listItem.js CHANGED
@@ -29,39 +29,39 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
29
29
  return (mod && mod.__esModule) ? mod : { "default": mod };
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.ListItem = exports.BaseListItem = void 0;
32
+ exports.ListItem = exports.ListItemBase = void 0;
33
33
  var styled_components_1 = require("@xstyled/styled-components");
34
34
  var react_1 = __importDefault(require("react"));
35
35
  var styled_components_2 = __importDefault(require("styled-components"));
36
36
  var context_1 = require("./context");
37
+ var listIcon_1 = __importDefault(require("./listIcon"));
37
38
  var core_1 = require("../core");
38
39
  var utils_1 = require("../utils");
39
40
  var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.flexboxes, styled_components_1.interactivity, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
40
- exports.BaseListItem = styled_components_2.default.li.withConfig({
41
- shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
42
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: flex;\n\tline-height: 1.1;\n\toutline: none;\n\ttransition: all 0s ease-in-out;\n\n\t&.disabled {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\tcursor: not-allowed;\n\t\tuser-select: none;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tdisplay: flex;\n\tline-height: 1.1;\n\toutline: none;\n\ttransition: all 0s ease-in-out;\n\n\t&.disabled {\n\t\tbackground-color: ", ";\n\t\tcolor: ", ";\n\t\tcursor: not-allowed;\n\t\tuser-select: none;\n\t}\n\n\t", "\n"])), core_1.th('colors.grey.20'), core_1.th('colors.grey.50'), generator);
41
+ exports.ListItemBase = styled_components_2.default.li.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: flex;\n\tline-height: normal;\n\toutline: none;\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\tuser-select: none;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tdisplay: flex;\n\tline-height: normal;\n\toutline: none;\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\tuser-select: none;\n\t}\n\n\t", "\n"])), generator);
43
42
  exports.ListItem = core_1.forwardRef(function (props, ref) {
44
- var _a;
45
- var listContext = context_1.useList();
46
- var className = props.className, disabled = props.disabled, _b = props.isInteractive, isInteractive = _b === void 0 ? (_a = listContext.isInteractive) !== null && _a !== void 0 ? _a : props.onClick !== undefined : _b, isSelected = props.isSelected, onClick = props.onClick, rest = __rest(props, ["className", "disabled", "isInteractive", "isSelected", "onClick"]);
47
- var _c = listContext.styles.item, activeBg = _c.activeBg, hoverBg = _c.hoverBg, hoverColor = _c.hoverColor, itemStyles = __rest(_c, ["activeBg", "hoverBg", "hoverColor"]);
43
+ var listProps = context_1.useList();
44
+ var mergedProps = __assign(__assign({}, listProps), props);
45
+ var children = mergedProps.children, className = mergedProps.className, disabled = mergedProps.disabled, iconRight = mergedProps.iconRight, iconLeft = mergedProps.iconLeft, _a = mergedProps.isInteractive, isInteractive = _a === void 0 ? props.onClick !== undefined : _a, isSelected = mergedProps.isSelected, onClick = mergedProps.onClick, rest = __rest(mergedProps, ["children", "className", "disabled", "iconRight", "iconLeft", "isInteractive", "isSelected", "onClick"]);
46
+ var styles = core_1.useStyleConfig('List', mergedProps);
47
+ var _b = styles.item, activeBg = _b.activeBg, hoverBg = _b.hoverBg, itemStyles = __rest(_b, ["activeBg", "hoverBg"]);
48
48
  var interactiveProps = !disabled && isInteractive
49
49
  ? {
50
50
  cursor: 'pointer',
51
51
  focusVisibleRing: 3,
52
- focusVisibleRingColor: 'blue.50',
53
52
  hoverBg: hoverBg,
54
53
  activeBg: activeBg,
55
- hoverColor: hoverColor,
56
54
  tabIndex: 0,
57
55
  userSelect: 'none'
58
56
  }
59
57
  : {};
60
58
  var aliasedProps = utils_1.filterUndefined({
61
- bg: isSelected ? hoverBg : undefined,
62
- color: isSelected ? hoverColor : undefined
59
+ bg: isSelected ? hoverBg : undefined
63
60
  });
64
- return (react_1.default.createElement(exports.BaseListItem, __assign({ className: utils_1.cs('vui-listItem', className, disabled && 'disabled'), onClick: !disabled ? onClick : undefined, px: 1, ref: ref, transitionDuration: "fast" }, itemStyles, interactiveProps, aliasedProps, rest)));
61
+ return (react_1.default.createElement(exports.ListItemBase, __assign({ className: utils_1.cs('vui-listItem', className, disabled && 'disabled'), onClick: !disabled ? onClick : undefined, px: 1, ref: ref, transitionDuration: "fast" }, itemStyles, interactiveProps, aliasedProps, rest),
62
+ iconLeft && react_1.default.createElement(listIcon_1.default, { icon: iconLeft, mr: 1 }),
63
+ children,
64
+ iconRight && react_1.default.createElement(listIcon_1.default, { icon: iconRight, ml: "auto" })));
65
65
  });
66
66
  exports.ListItem.displayName = 'ListItem';
67
67
  exports.default = exports.ListItem;
@@ -1,7 +1,11 @@
1
- import { HTMLAttributes } from 'react';
1
+ import { IconProp } from '../icon';
2
2
  import { BackgroundColorProps, FlexboxesProps, InteractivityProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps } from '../system';
3
- export interface ListItemProps extends Omit<HTMLAttributes<HTMLLIElement>, 'color'>, ListItemStyleProps {
3
+ import { ThemingProps } from '../theme';
4
+ export interface ListItemProps extends ListItemStyleProps, ThemingProps<'List'> {
5
+ colorScheme?: 'blue' | 'grey';
4
6
  disabled?: boolean;
7
+ iconLeft?: IconProp;
8
+ iconRight?: IconProp;
5
9
  isInteractive?: boolean;
6
10
  isSelected?: boolean;
7
11
  }
package/list/theme.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { Dict } from '../utils';
2
2
  declare function variantDefault(props: Dict): {
3
+ container: {};
4
+ icon: {};
3
5
  item: Dict<any>;
4
- list: Dict<any>;
5
6
  };
6
7
  declare const _default: {
7
8
  defaultProps: {
@@ -12,18 +13,36 @@ declare const _default: {
12
13
  parts: string[];
13
14
  sizes: {
14
15
  sm: {
16
+ icon: {
17
+ size: string;
18
+ };
15
19
  item: {
16
20
  fontSize: string;
17
21
  h: number;
18
22
  };
19
23
  };
20
24
  md: {
25
+ icon: {
26
+ size: string;
27
+ };
21
28
  item: {
22
29
  fontSize: string;
23
30
  h: number;
24
31
  };
25
32
  };
26
33
  lg: {
34
+ icon: {
35
+ size: string;
36
+ };
37
+ item: {
38
+ fontSize: string;
39
+ h: number;
40
+ };
41
+ };
42
+ xl: {
43
+ icon: {
44
+ scale: number;
45
+ };
27
46
  item: {
28
47
  fontSize: string;
29
48
  h: number;
@@ -32,14 +51,29 @@ declare const _default: {
32
51
  };
33
52
  variants: {
34
53
  default: typeof variantDefault;
35
- unstyled: {
54
+ ordered: {
55
+ container: {
56
+ as: string;
57
+ listStyleType: string;
58
+ pl: number;
59
+ };
36
60
  item: {
37
61
  display: string;
38
62
  h: undefined;
63
+ lineHeight: number;
39
64
  };
40
- list: {
65
+ };
66
+ unordered: {
67
+ container: {
68
+ as: string;
69
+ listStyleType: string;
41
70
  pl: number;
42
71
  };
72
+ item: {
73
+ display: string;
74
+ h: undefined;
75
+ lineHeight: number;
76
+ };
43
77
  };
44
78
  };
45
79
  };