@veracity/vui 0.0.2 → 0.0.3

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 (698) hide show
  1. package/avatar/avatar.d.ts +1 -1
  2. package/avatar/avatar.js +3 -4
  3. package/avatar/theme.js +5 -5
  4. package/box/box.d.ts +1 -1
  5. package/box/box.js +3 -3
  6. package/button/button.d.ts +1 -1
  7. package/button/button.js +9 -8
  8. package/button/buttonGroup.d.ts +1 -1
  9. package/button/buttonGroup.js +3 -3
  10. package/button/index.d.ts +1 -0
  11. package/button/index.js +1 -0
  12. package/button/theme.js +5 -0
  13. package/checkbox/checkbox.d.ts +6 -3
  14. package/checkbox/checkbox.js +31 -17
  15. package/checkbox/checkbox.types.d.ts +9 -9
  16. package/checkbox/checkboxGroup.d.ts +6 -0
  17. package/checkbox/checkboxGroup.js +80 -0
  18. package/checkbox/checkboxGroup.types.d.ts +12 -0
  19. package/checkbox/checkboxGroup.types.js +2 -0
  20. package/checkbox/context.d.ts +4 -0
  21. package/checkbox/context.js +23 -0
  22. package/checkbox/index.d.ts +3 -0
  23. package/checkbox/index.js +3 -0
  24. package/checkbox/theme.d.ts +29 -4
  25. package/checkbox/theme.js +30 -4
  26. package/core/globalStyle.d.ts +1 -1
  27. package/core/globalStyle.js +3 -2
  28. package/core/utils.d.ts +8 -3
  29. package/core/utils.js +52 -5
  30. package/divider/divider.d.ts +1 -1
  31. package/divider/divider.js +4 -4
  32. package/heading/heading.d.ts +1 -1
  33. package/heading/heading.js +3 -3
  34. package/icon/helpers.d.ts +3 -0
  35. package/icon/helpers.js +5 -1
  36. package/icon/icon.js +3 -2
  37. package/icon/icon.types.d.ts +16 -2
  38. package/icon/icons/cui/cuiCheckboxIndeterminate.d.ts +3 -0
  39. package/icon/icons/cui/cuiCheckboxIndeterminate.js +8 -0
  40. package/icon/icons/cui/cuiCheckboxSelected.d.ts +3 -0
  41. package/icon/icons/cui/cuiCheckboxSelected.js +8 -0
  42. package/icon/icons/cui/cuiCheckboxUnselected.d.ts +3 -0
  43. package/icon/icons/cui/cuiCheckboxUnselected.js +8 -0
  44. package/icon/icons/cui/cuiRadioSelected.d.ts +3 -0
  45. package/icon/icons/cui/cuiRadioSelected.js +8 -0
  46. package/icon/icons/cui/cuiRadioUnselected.d.ts +3 -0
  47. package/icon/icons/cui/cuiRadioUnselected.js +8 -0
  48. package/icon/icons/cul/culCovid.d.ts +1 -1
  49. package/icon/icons/cul/culCovid.js +1 -1
  50. package/icon/icons/cul/culDeepSearch.d.ts +1 -1
  51. package/icon/icons/cul/culDeepSearch.js +1 -1
  52. package/icon/icons/cul/culDotsMenu.d.ts +1 -1
  53. package/icon/icons/cul/culDotsMenu.js +1 -1
  54. package/icon/icons/cul/culGlobePlus.d.ts +1 -1
  55. package/icon/icons/cul/culGlobePlus.js +1 -1
  56. package/icon/icons/cul/culListDense.d.ts +1 -1
  57. package/icon/icons/cul/culListDense.js +1 -1
  58. package/icon/icons/cul/culMapMarkerStar.d.ts +1 -1
  59. package/icon/icons/cul/culMapMarkerStar.js +1 -1
  60. package/icon/icons/cul/culPlusThin.d.ts +1 -1
  61. package/icon/icons/cul/culPlusThin.js +1 -1
  62. package/icon/icons/cul/culScreenshot.d.ts +1 -1
  63. package/icon/icons/cul/culScreenshot.js +1 -1
  64. package/icon/icons/cul/culScreenshotAlt.d.ts +1 -1
  65. package/icon/icons/cul/culScreenshotAlt.js +1 -1
  66. package/icon/icons/cul/culShortcut.d.ts +1 -1
  67. package/icon/icons/cul/culShortcut.js +1 -1
  68. package/icon/icons/cul/culTimesThin.d.ts +1 -1
  69. package/icon/icons/cul/culTimesThin.js +1 -1
  70. package/icon/icons/cul/culTransformer.d.ts +1 -1
  71. package/icon/icons/cul/culTransformer.js +1 -1
  72. package/icon/icons/cul/culUserTransfer.d.ts +1 -1
  73. package/icon/icons/cul/culUserTransfer.js +1 -1
  74. package/icon/icons/cul/culVessel.d.ts +1 -1
  75. package/icon/icons/cul/culVessel.js +1 -1
  76. package/icon/icons/cul/culVesselGroup.d.ts +1 -1
  77. package/icon/icons/cul/culVesselGroup.js +1 -1
  78. package/icon/icons/cus/cusCheckboxSelected.d.ts +1 -1
  79. package/icon/icons/cus/cusCheckboxSelected.js +1 -1
  80. package/icon/icons/cus/cusDotFull.d.ts +1 -1
  81. package/icon/icons/cus/cusDotFull.js +1 -1
  82. package/icon/icons/cus/cusDotFullAlt.d.ts +1 -1
  83. package/icon/icons/cus/cusDotFullAlt.js +1 -1
  84. package/icon/icons/cus/cusDotsMenu.d.ts +1 -1
  85. package/icon/icons/cus/cusDotsMenu.js +1 -1
  86. package/icon/icons/cus/cusRadio.d.ts +1 -1
  87. package/icon/icons/cus/cusRadio.js +1 -1
  88. package/icon/icons/cus/cusSquareMinus.d.ts +1 -1
  89. package/icon/icons/cus/cusSquareMinus.js +1 -1
  90. package/icon/icons/cus/cusTransformer.d.ts +1 -1
  91. package/icon/icons/cus/cusTransformer.js +1 -1
  92. package/icon/icons/cus/cusVessel.d.ts +1 -1
  93. package/icon/icons/cus/cusVessel.js +1 -1
  94. package/icon/icons/fab/fabApplePay.d.ts +1 -1
  95. package/icon/icons/fab/fabApplePay.js +1 -1
  96. package/icon/icons/fab/fabBluetooth.d.ts +1 -1
  97. package/icon/icons/fab/fabBluetooth.js +1 -1
  98. package/icon/icons/fab/fabBtc.d.ts +1 -1
  99. package/icon/icons/fab/fabBtc.js +1 -1
  100. package/icon/icons/fab/fabCcAmazonPay.d.ts +1 -1
  101. package/icon/icons/fab/fabCcAmazonPay.js +1 -1
  102. package/icon/icons/fab/fabCcAmex.d.ts +1 -1
  103. package/icon/icons/fab/fabCcAmex.js +1 -1
  104. package/icon/icons/fab/fabCcApplePay.d.ts +1 -1
  105. package/icon/icons/fab/fabCcApplePay.js +1 -1
  106. package/icon/icons/fab/fabCcDinersClub.d.ts +1 -1
  107. package/icon/icons/fab/fabCcDinersClub.js +1 -1
  108. package/icon/icons/fab/fabCcMastercard.d.ts +1 -1
  109. package/icon/icons/fab/fabCcMastercard.js +1 -1
  110. package/icon/icons/fab/fabCcPaypal.d.ts +1 -1
  111. package/icon/icons/fab/fabCcPaypal.js +1 -1
  112. package/icon/icons/fab/fabCcVisa.d.ts +1 -1
  113. package/icon/icons/fab/fabCcVisa.js +1 -1
  114. package/icon/icons/fab/fabDhl.d.ts +1 -1
  115. package/icon/icons/fab/fabDhl.js +1 -1
  116. package/icon/icons/fab/fabEbay.d.ts +1 -1
  117. package/icon/icons/fab/fabEbay.js +1 -1
  118. package/icon/icons/fab/fabFacebook.d.ts +1 -1
  119. package/icon/icons/fab/fabFacebook.js +1 -1
  120. package/icon/icons/fab/fabFedex.d.ts +1 -1
  121. package/icon/icons/fab/fabFedex.js +1 -1
  122. package/icon/icons/fab/fabFirefox.d.ts +1 -1
  123. package/icon/icons/fab/fabFirefox.js +1 -1
  124. package/icon/icons/fab/fabGoogle.d.ts +1 -1
  125. package/icon/icons/fab/fabGoogle.js +1 -1
  126. package/icon/icons/fab/fabGoogleDrive.d.ts +1 -1
  127. package/icon/icons/fab/fabGoogleDrive.js +1 -1
  128. package/icon/icons/fab/fabLinkedinIn.d.ts +1 -1
  129. package/icon/icons/fab/fabLinkedinIn.js +1 -1
  130. package/icon/icons/fab/fabMedium.d.ts +1 -1
  131. package/icon/icons/fab/fabMedium.js +1 -1
  132. package/icon/icons/fab/fabOsi.d.ts +1 -1
  133. package/icon/icons/fab/fabOsi.js +1 -1
  134. package/icon/icons/fab/fabSlack.d.ts +1 -1
  135. package/icon/icons/fab/fabSlack.js +1 -1
  136. package/icon/icons/fab/fabTwitter.d.ts +1 -1
  137. package/icon/icons/fab/fabTwitter.js +1 -1
  138. package/icon/icons/fab/fabUps.d.ts +1 -1
  139. package/icon/icons/fab/fabUps.js +1 -1
  140. package/icon/icons/fal/falAddressBook.d.ts +1 -1
  141. package/icon/icons/fal/falAddressBook.js +1 -1
  142. package/icon/icons/fal/falAddressCard.d.ts +1 -1
  143. package/icon/icons/fal/falAddressCard.js +1 -1
  144. package/icon/icons/fal/falAnalytics.d.ts +1 -1
  145. package/icon/icons/fal/falAnalytics.js +1 -1
  146. package/icon/icons/fal/falAngleDoubleDown.d.ts +1 -1
  147. package/icon/icons/fal/falAngleDoubleDown.js +1 -1
  148. package/icon/icons/fal/falAngleDoubleLeft.d.ts +1 -1
  149. package/icon/icons/fal/falAngleDoubleLeft.js +1 -1
  150. package/icon/icons/fal/falAngleDoubleRight.d.ts +1 -1
  151. package/icon/icons/fal/falAngleDoubleRight.js +1 -1
  152. package/icon/icons/fal/falAngleDoubleUp.d.ts +1 -1
  153. package/icon/icons/fal/falAngleDoubleUp.js +1 -1
  154. package/icon/icons/fal/falAngleDown.d.ts +1 -1
  155. package/icon/icons/fal/falAngleDown.js +1 -1
  156. package/icon/icons/fal/falAngleLeft.d.ts +1 -1
  157. package/icon/icons/fal/falAngleLeft.js +1 -1
  158. package/icon/icons/fal/falAngleRight.d.ts +1 -1
  159. package/icon/icons/fal/falAngleRight.js +1 -1
  160. package/icon/icons/fal/falAngleUp.d.ts +1 -1
  161. package/icon/icons/fal/falAngleUp.js +1 -1
  162. package/icon/icons/fal/falArrowAltDown.d.ts +1 -1
  163. package/icon/icons/fal/falArrowAltDown.js +1 -1
  164. package/icon/icons/fal/falArrowAltLeft.d.ts +1 -1
  165. package/icon/icons/fal/falArrowAltLeft.js +1 -1
  166. package/icon/icons/fal/falArrowAltRight.d.ts +1 -1
  167. package/icon/icons/fal/falArrowAltRight.js +1 -1
  168. package/icon/icons/fal/falArrowAltUp.d.ts +1 -1
  169. package/icon/icons/fal/falArrowAltUp.js +1 -1
  170. package/icon/icons/fal/falArrowCircleDown.d.ts +1 -1
  171. package/icon/icons/fal/falArrowCircleDown.js +1 -1
  172. package/icon/icons/fal/falArrowCircleLeft.d.ts +1 -1
  173. package/icon/icons/fal/falArrowCircleLeft.js +1 -1
  174. package/icon/icons/fal/falArrowCircleRight.d.ts +1 -1
  175. package/icon/icons/fal/falArrowCircleRight.js +1 -1
  176. package/icon/icons/fal/falArrowCircleUp.d.ts +1 -1
  177. package/icon/icons/fal/falArrowCircleUp.js +1 -1
  178. package/icon/icons/fal/falArrowDown.d.ts +1 -1
  179. package/icon/icons/fal/falArrowDown.js +1 -1
  180. package/icon/icons/fal/falArrowFromBottom.d.ts +1 -1
  181. package/icon/icons/fal/falArrowFromBottom.js +1 -1
  182. package/icon/icons/fal/falArrowFromLeft.d.ts +1 -1
  183. package/icon/icons/fal/falArrowFromLeft.js +1 -1
  184. package/icon/icons/fal/falArrowFromRight.d.ts +1 -1
  185. package/icon/icons/fal/falArrowFromRight.js +1 -1
  186. package/icon/icons/fal/falArrowFromTop.d.ts +1 -1
  187. package/icon/icons/fal/falArrowFromTop.js +1 -1
  188. package/icon/icons/fal/falArrowLeft.d.ts +1 -1
  189. package/icon/icons/fal/falArrowLeft.js +1 -1
  190. package/icon/icons/fal/falArrowRight.d.ts +1 -1
  191. package/icon/icons/fal/falArrowRight.js +1 -1
  192. package/icon/icons/fal/falArrowToBottom.d.ts +1 -1
  193. package/icon/icons/fal/falArrowToBottom.js +1 -1
  194. package/icon/icons/fal/falArrowToLeft.d.ts +1 -1
  195. package/icon/icons/fal/falArrowToLeft.js +1 -1
  196. package/icon/icons/fal/falArrowToRight.d.ts +1 -1
  197. package/icon/icons/fal/falArrowToRight.js +1 -1
  198. package/icon/icons/fal/falArrowToTop.d.ts +1 -1
  199. package/icon/icons/fal/falArrowToTop.js +1 -1
  200. package/icon/icons/fal/falArrowUp.d.ts +1 -1
  201. package/icon/icons/fal/falArrowUp.js +1 -1
  202. package/icon/icons/fal/falArrows.d.ts +1 -1
  203. package/icon/icons/fal/falArrows.js +1 -1
  204. package/icon/icons/fal/falAward.d.ts +1 -1
  205. package/icon/icons/fal/falAward.js +1 -1
  206. package/icon/icons/fal/falBan.d.ts +1 -1
  207. package/icon/icons/fal/falBan.js +1 -1
  208. package/icon/icons/fal/falBell.d.ts +1 -1
  209. package/icon/icons/fal/falBell.js +1 -1
  210. package/icon/icons/fal/falBookOpen.d.ts +1 -1
  211. package/icon/icons/fal/falBookOpen.js +1 -1
  212. package/icon/icons/fal/falBroadcastTower.d.ts +1 -1
  213. package/icon/icons/fal/falBroadcastTower.js +1 -1
  214. package/icon/icons/fal/falBuilding.d.ts +1 -1
  215. package/icon/icons/fal/falBuilding.js +1 -1
  216. package/icon/icons/fal/falBullseye.d.ts +1 -1
  217. package/icon/icons/fal/falBullseye.js +1 -1
  218. package/icon/icons/fal/falCalendar.d.ts +1 -1
  219. package/icon/icons/fal/falCalendar.js +1 -1
  220. package/icon/icons/fal/falCalendarAlt.d.ts +1 -1
  221. package/icon/icons/fal/falCalendarAlt.js +1 -1
  222. package/icon/icons/fal/falCamera.d.ts +1 -1
  223. package/icon/icons/fal/falCamera.js +1 -1
  224. package/icon/icons/fal/falCaretDown.d.ts +1 -1
  225. package/icon/icons/fal/falCaretDown.js +1 -1
  226. package/icon/icons/fal/falCaretLeft.d.ts +1 -1
  227. package/icon/icons/fal/falCaretLeft.js +1 -1
  228. package/icon/icons/fal/falCaretRight.d.ts +1 -1
  229. package/icon/icons/fal/falCaretRight.js +1 -1
  230. package/icon/icons/fal/falCaretUp.d.ts +1 -1
  231. package/icon/icons/fal/falCaretUp.js +1 -1
  232. package/icon/icons/fal/falCauldron.d.ts +1 -1
  233. package/icon/icons/fal/falCauldron.js +1 -1
  234. package/icon/icons/fal/falChartArea.d.ts +1 -1
  235. package/icon/icons/fal/falChartArea.js +1 -1
  236. package/icon/icons/fal/falChartBar.d.ts +1 -1
  237. package/icon/icons/fal/falChartBar.js +1 -1
  238. package/icon/icons/fal/falChartLine.d.ts +1 -1
  239. package/icon/icons/fal/falChartLine.js +1 -1
  240. package/icon/icons/fal/falChartLineDown.d.ts +1 -1
  241. package/icon/icons/fal/falChartLineDown.js +1 -1
  242. package/icon/icons/fal/falChartNetwork.d.ts +1 -1
  243. package/icon/icons/fal/falChartNetwork.js +1 -1
  244. package/icon/icons/fal/falChartPie.d.ts +1 -1
  245. package/icon/icons/fal/falChartPie.js +1 -1
  246. package/icon/icons/fal/falChartPieAlt.d.ts +1 -1
  247. package/icon/icons/fal/falChartPieAlt.js +1 -1
  248. package/icon/icons/fal/falChartScatter.d.ts +1 -1
  249. package/icon/icons/fal/falChartScatter.js +1 -1
  250. package/icon/icons/fal/falCheck.d.ts +1 -1
  251. package/icon/icons/fal/falCheck.js +1 -1
  252. package/icon/icons/fal/falCheckCircle.d.ts +1 -1
  253. package/icon/icons/fal/falCheckCircle.js +1 -1
  254. package/icon/icons/fal/falCheckSquare.d.ts +1 -1
  255. package/icon/icons/fal/falCheckSquare.js +1 -1
  256. package/icon/icons/fal/falChevronCircleDown.d.ts +1 -1
  257. package/icon/icons/fal/falChevronCircleDown.js +1 -1
  258. package/icon/icons/fal/falChevronCircleLeft.d.ts +1 -1
  259. package/icon/icons/fal/falChevronCircleLeft.js +1 -1
  260. package/icon/icons/fal/falChevronCircleRight.d.ts +1 -1
  261. package/icon/icons/fal/falChevronCircleRight.js +1 -1
  262. package/icon/icons/fal/falChevronCircleUp.d.ts +1 -1
  263. package/icon/icons/fal/falChevronCircleUp.js +1 -1
  264. package/icon/icons/fal/falChevronDoubleDown.d.ts +1 -1
  265. package/icon/icons/fal/falChevronDoubleDown.js +1 -1
  266. package/icon/icons/fal/falChevronDoubleLeft.d.ts +1 -1
  267. package/icon/icons/fal/falChevronDoubleLeft.js +1 -1
  268. package/icon/icons/fal/falChevronDoubleRight.d.ts +1 -1
  269. package/icon/icons/fal/falChevronDoubleRight.js +1 -1
  270. package/icon/icons/fal/falChevronDoubleUp.d.ts +1 -1
  271. package/icon/icons/fal/falChevronDoubleUp.js +1 -1
  272. package/icon/icons/fal/falChevronDown.d.ts +1 -1
  273. package/icon/icons/fal/falChevronDown.js +1 -1
  274. package/icon/icons/fal/falChevronLeft.d.ts +1 -1
  275. package/icon/icons/fal/falChevronLeft.js +1 -1
  276. package/icon/icons/fal/falChevronRight.d.ts +1 -1
  277. package/icon/icons/fal/falChevronRight.js +1 -1
  278. package/icon/icons/fal/falChevronUp.d.ts +1 -1
  279. package/icon/icons/fal/falChevronUp.js +1 -1
  280. package/icon/icons/fal/falCircle.d.ts +1 -1
  281. package/icon/icons/fal/falCircle.js +1 -1
  282. package/icon/icons/fal/falCloud.d.ts +1 -1
  283. package/icon/icons/fal/falCloud.js +1 -1
  284. package/icon/icons/fal/falCloudShowersHeavy.d.ts +1 -1
  285. package/icon/icons/fal/falCloudShowersHeavy.js +1 -1
  286. package/icon/icons/fal/falCloudSnow.d.ts +1 -1
  287. package/icon/icons/fal/falCloudSnow.js +1 -1
  288. package/icon/icons/fal/falCloudSun.d.ts +1 -1
  289. package/icon/icons/fal/falCloudSun.js +1 -1
  290. package/icon/icons/fal/falCloudSunRain.d.ts +1 -1
  291. package/icon/icons/fal/falCloudSunRain.js +1 -1
  292. package/icon/icons/fal/falCloudUpload.d.ts +1 -1
  293. package/icon/icons/fal/falCloudUpload.js +1 -1
  294. package/icon/icons/fal/falCode.d.ts +1 -1
  295. package/icon/icons/fal/falCode.js +1 -1
  296. package/icon/icons/fal/falCog.d.ts +1 -1
  297. package/icon/icons/fal/falCog.js +1 -1
  298. package/icon/icons/fal/falCogs.d.ts +1 -1
  299. package/icon/icons/fal/falCogs.js +1 -1
  300. package/icon/icons/fal/falComment.d.ts +1 -1
  301. package/icon/icons/fal/falComment.js +1 -1
  302. package/icon/icons/fal/falCommentAlt.d.ts +1 -1
  303. package/icon/icons/fal/falCommentAlt.js +1 -1
  304. package/icon/icons/fal/falCompressAlt.d.ts +1 -1
  305. package/icon/icons/fal/falCompressAlt.js +1 -1
  306. package/icon/icons/fal/falCopy.d.ts +1 -1
  307. package/icon/icons/fal/falCopy.js +1 -1
  308. package/icon/icons/fal/falCreditCard.d.ts +1 -1
  309. package/icon/icons/fal/falCreditCard.js +1 -1
  310. package/icon/icons/fal/falDatabase.d.ts +1 -1
  311. package/icon/icons/fal/falDatabase.js +1 -1
  312. package/icon/icons/fal/falDotCircle.d.ts +1 -1
  313. package/icon/icons/fal/falDotCircle.js +1 -1
  314. package/icon/icons/fal/falDownload.d.ts +1 -1
  315. package/icon/icons/fal/falDownload.js +1 -1
  316. package/icon/icons/fal/falEdit.d.ts +1 -1
  317. package/icon/icons/fal/falEdit.js +1 -1
  318. package/icon/icons/fal/falEllipsisH.d.ts +1 -1
  319. package/icon/icons/fal/falEllipsisH.js +1 -1
  320. package/icon/icons/fal/falEllipsisV.d.ts +1 -1
  321. package/icon/icons/fal/falEllipsisV.js +1 -1
  322. package/icon/icons/fal/falEnvelope.d.ts +1 -1
  323. package/icon/icons/fal/falEnvelope.js +1 -1
  324. package/icon/icons/fal/falExchange.d.ts +1 -1
  325. package/icon/icons/fal/falExchange.js +1 -1
  326. package/icon/icons/fal/falExclamationCircle.d.ts +1 -1
  327. package/icon/icons/fal/falExclamationCircle.js +1 -1
  328. package/icon/icons/fal/falExclamationTriangle.d.ts +1 -1
  329. package/icon/icons/fal/falExclamationTriangle.js +1 -1
  330. package/icon/icons/fal/falExpandAlt.d.ts +1 -1
  331. package/icon/icons/fal/falExpandAlt.js +1 -1
  332. package/icon/icons/fal/falExternalLink.d.ts +1 -1
  333. package/icon/icons/fal/falExternalLink.js +1 -1
  334. package/icon/icons/fal/falEye.d.ts +1 -1
  335. package/icon/icons/fal/falEye.js +1 -1
  336. package/icon/icons/fal/falEyeSlash.d.ts +1 -1
  337. package/icon/icons/fal/falEyeSlash.js +1 -1
  338. package/icon/icons/fal/falFile.d.ts +1 -1
  339. package/icon/icons/fal/falFile.js +1 -1
  340. package/icon/icons/fal/falFileAlt.d.ts +1 -1
  341. package/icon/icons/fal/falFileAlt.js +1 -1
  342. package/icon/icons/fal/falFileArchive.d.ts +1 -1
  343. package/icon/icons/fal/falFileArchive.js +1 -1
  344. package/icon/icons/fal/falFileAudio.d.ts +1 -1
  345. package/icon/icons/fal/falFileAudio.js +1 -1
  346. package/icon/icons/fal/falFileCertificate.d.ts +1 -1
  347. package/icon/icons/fal/falFileCertificate.js +1 -1
  348. package/icon/icons/fal/falFileChartLine.d.ts +1 -1
  349. package/icon/icons/fal/falFileChartLine.js +1 -1
  350. package/icon/icons/fal/falFileChartPie.d.ts +1 -1
  351. package/icon/icons/fal/falFileChartPie.js +1 -1
  352. package/icon/icons/fal/falFileCheck.d.ts +1 -1
  353. package/icon/icons/fal/falFileCheck.js +1 -1
  354. package/icon/icons/fal/falFileCode.d.ts +1 -1
  355. package/icon/icons/fal/falFileCode.js +1 -1
  356. package/icon/icons/fal/falFileCsv.d.ts +1 -1
  357. package/icon/icons/fal/falFileCsv.js +1 -1
  358. package/icon/icons/fal/falFileEdit.d.ts +1 -1
  359. package/icon/icons/fal/falFileEdit.js +1 -1
  360. package/icon/icons/fal/falFileExcel.d.ts +1 -1
  361. package/icon/icons/fal/falFileExcel.js +1 -1
  362. package/icon/icons/fal/falFileImage.d.ts +1 -1
  363. package/icon/icons/fal/falFileImage.js +1 -1
  364. package/icon/icons/fal/falFilePdf.d.ts +1 -1
  365. package/icon/icons/fal/falFilePdf.js +1 -1
  366. package/icon/icons/fal/falFilePlus.d.ts +1 -1
  367. package/icon/icons/fal/falFilePlus.js +1 -1
  368. package/icon/icons/fal/falFilePowerpoint.d.ts +1 -1
  369. package/icon/icons/fal/falFilePowerpoint.js +1 -1
  370. package/icon/icons/fal/falFileSpreadsheet.d.ts +1 -1
  371. package/icon/icons/fal/falFileSpreadsheet.js +1 -1
  372. package/icon/icons/fal/falFileVideo.d.ts +1 -1
  373. package/icon/icons/fal/falFileVideo.js +1 -1
  374. package/icon/icons/fal/falFileWord.d.ts +1 -1
  375. package/icon/icons/fal/falFileWord.js +1 -1
  376. package/icon/icons/fal/falFilter.d.ts +1 -1
  377. package/icon/icons/fal/falFilter.js +1 -1
  378. package/icon/icons/fal/falFlag.d.ts +1 -1
  379. package/icon/icons/fal/falFlag.js +1 -1
  380. package/icon/icons/fal/falFolder.d.ts +1 -1
  381. package/icon/icons/fal/falFolder.js +1 -1
  382. package/icon/icons/fal/falFolderOpen.d.ts +1 -1
  383. package/icon/icons/fal/falFolderOpen.js +1 -1
  384. package/icon/icons/fal/falFolderPlus.d.ts +1 -1
  385. package/icon/icons/fal/falFolderPlus.js +1 -1
  386. package/icon/icons/fal/falFolders.d.ts +1 -1
  387. package/icon/icons/fal/falFolders.js +1 -1
  388. package/icon/icons/fal/falGlassesAlt.d.ts +1 -1
  389. package/icon/icons/fal/falGlassesAlt.js +1 -1
  390. package/icon/icons/fal/falGlobe.d.ts +1 -1
  391. package/icon/icons/fal/falGlobe.js +1 -1
  392. package/icon/icons/fal/falHome.d.ts +1 -1
  393. package/icon/icons/fal/falHome.js +1 -1
  394. package/icon/icons/fal/falHourglass.d.ts +1 -1
  395. package/icon/icons/fal/falHourglass.js +1 -1
  396. package/icon/icons/fal/falImage.d.ts +1 -1
  397. package/icon/icons/fal/falImage.js +1 -1
  398. package/icon/icons/fal/falInfoCircle.d.ts +1 -1
  399. package/icon/icons/fal/falInfoCircle.js +1 -1
  400. package/icon/icons/fal/falKey.d.ts +1 -1
  401. package/icon/icons/fal/falKey.js +1 -1
  402. package/icon/icons/fal/falLayerPlus.d.ts +1 -1
  403. package/icon/icons/fal/falLayerPlus.js +1 -1
  404. package/icon/icons/fal/falLink.d.ts +1 -1
  405. package/icon/icons/fal/falLink.js +1 -1
  406. package/icon/icons/fal/falList.d.ts +1 -1
  407. package/icon/icons/fal/falList.js +1 -1
  408. package/icon/icons/fal/falLockAlt.d.ts +1 -1
  409. package/icon/icons/fal/falLockAlt.js +1 -1
  410. package/icon/icons/fal/falLongArrowDown.d.ts +1 -1
  411. package/icon/icons/fal/falLongArrowDown.js +1 -1
  412. package/icon/icons/fal/falLongArrowLeft.d.ts +1 -1
  413. package/icon/icons/fal/falLongArrowLeft.js +1 -1
  414. package/icon/icons/fal/falLongArrowRight.d.ts +1 -1
  415. package/icon/icons/fal/falLongArrowRight.js +1 -1
  416. package/icon/icons/fal/falLongArrowUp.d.ts +1 -1
  417. package/icon/icons/fal/falLongArrowUp.js +1 -1
  418. package/icon/icons/fal/falMap.d.ts +1 -1
  419. package/icon/icons/fal/falMap.js +1 -1
  420. package/icon/icons/fal/falMapMarked.d.ts +1 -1
  421. package/icon/icons/fal/falMapMarked.js +1 -1
  422. package/icon/icons/fal/falMapMarkedAlt.d.ts +1 -1
  423. package/icon/icons/fal/falMapMarkedAlt.js +1 -1
  424. package/icon/icons/fal/falMapMarker.d.ts +1 -1
  425. package/icon/icons/fal/falMapMarker.js +1 -1
  426. package/icon/icons/fal/falMapMarkerAlt.d.ts +1 -1
  427. package/icon/icons/fal/falMapMarkerAlt.js +1 -1
  428. package/icon/icons/fal/falMapMarkerAltSlash.d.ts +1 -1
  429. package/icon/icons/fal/falMapMarkerAltSlash.js +1 -1
  430. package/icon/icons/fal/falMapMarkerCheck.d.ts +1 -1
  431. package/icon/icons/fal/falMapMarkerCheck.js +1 -1
  432. package/icon/icons/fal/falMapMarkerExclamation.d.ts +1 -1
  433. package/icon/icons/fal/falMapMarkerExclamation.js +1 -1
  434. package/icon/icons/fal/falMinus.d.ts +1 -1
  435. package/icon/icons/fal/falMinus.js +1 -1
  436. package/icon/icons/fal/falPause.d.ts +1 -1
  437. package/icon/icons/fal/falPause.js +1 -1
  438. package/icon/icons/fal/falPauseCircle.d.ts +1 -1
  439. package/icon/icons/fal/falPauseCircle.js +1 -1
  440. package/icon/icons/fal/falPen.d.ts +1 -1
  441. package/icon/icons/fal/falPen.js +1 -1
  442. package/icon/icons/fal/falPlay.d.ts +1 -1
  443. package/icon/icons/fal/falPlay.js +1 -1
  444. package/icon/icons/fal/falPlayCircle.d.ts +1 -1
  445. package/icon/icons/fal/falPlayCircle.js +1 -1
  446. package/icon/icons/fal/falPlug.d.ts +1 -1
  447. package/icon/icons/fal/falPlug.js +1 -1
  448. package/icon/icons/fal/falPlus.d.ts +1 -1
  449. package/icon/icons/fal/falPlus.js +1 -1
  450. package/icon/icons/fal/falPlusCircle.d.ts +1 -1
  451. package/icon/icons/fal/falPlusCircle.js +1 -1
  452. package/icon/icons/fal/falPlusSquare.d.ts +1 -1
  453. package/icon/icons/fal/falPlusSquare.js +1 -1
  454. package/icon/icons/fal/falPrint.d.ts +1 -1
  455. package/icon/icons/fal/falPrint.js +1 -1
  456. package/icon/icons/fal/falPuzzlePiece.d.ts +1 -1
  457. package/icon/icons/fal/falPuzzlePiece.js +1 -1
  458. package/icon/icons/fal/falReceipt.d.ts +1 -1
  459. package/icon/icons/fal/falReceipt.js +1 -1
  460. package/icon/icons/fal/falRedo.d.ts +1 -1
  461. package/icon/icons/fal/falRedo.js +1 -1
  462. package/icon/icons/fal/falSave.d.ts +1 -1
  463. package/icon/icons/fal/falSave.js +1 -1
  464. package/icon/icons/fal/falSearch.d.ts +1 -1
  465. package/icon/icons/fal/falSearch.js +1 -1
  466. package/icon/icons/fal/falSearchPlus.d.ts +1 -1
  467. package/icon/icons/fal/falSearchPlus.js +1 -1
  468. package/icon/icons/fal/falServer.d.ts +1 -1
  469. package/icon/icons/fal/falServer.js +1 -1
  470. package/icon/icons/fal/falShare.d.ts +1 -1
  471. package/icon/icons/fal/falShare.js +1 -1
  472. package/icon/icons/fal/falShareAll.d.ts +1 -1
  473. package/icon/icons/fal/falShareAll.js +1 -1
  474. package/icon/icons/fal/falShareAlt.d.ts +1 -1
  475. package/icon/icons/fal/falShareAlt.js +1 -1
  476. package/icon/icons/fal/falShieldAlt.d.ts +1 -1
  477. package/icon/icons/fal/falShieldAlt.js +1 -1
  478. package/icon/icons/fal/falShieldCheck.d.ts +1 -1
  479. package/icon/icons/fal/falShieldCheck.js +1 -1
  480. package/icon/icons/fal/falShip.d.ts +1 -1
  481. package/icon/icons/fal/falShip.js +1 -1
  482. package/icon/icons/fal/falShoppingBasket.d.ts +1 -1
  483. package/icon/icons/fal/falShoppingBasket.js +1 -1
  484. package/icon/icons/fal/falSignInAlt.d.ts +1 -1
  485. package/icon/icons/fal/falSignInAlt.js +1 -1
  486. package/icon/icons/fal/falSignOut.d.ts +1 -1
  487. package/icon/icons/fal/falSignOut.js +1 -1
  488. package/icon/icons/fal/falSignOutAlt.d.ts +1 -1
  489. package/icon/icons/fal/falSignOutAlt.js +1 -1
  490. package/icon/icons/fal/falSlidersV.d.ts +1 -1
  491. package/icon/icons/fal/falSlidersV.js +1 -1
  492. package/icon/icons/fal/falSnowBlowing.d.ts +1 -1
  493. package/icon/icons/fal/falSnowBlowing.js +1 -1
  494. package/icon/icons/fal/falSnowflake.d.ts +1 -1
  495. package/icon/icons/fal/falSnowflake.js +1 -1
  496. package/icon/icons/fal/falSolarPanel.d.ts +1 -1
  497. package/icon/icons/fal/falSolarPanel.js +1 -1
  498. package/icon/icons/fal/falSort.d.ts +1 -1
  499. package/icon/icons/fal/falSort.js +1 -1
  500. package/icon/icons/fal/falSpinner.d.ts +1 -1
  501. package/icon/icons/fal/falSpinner.js +1 -1
  502. package/icon/icons/fal/falSquare.d.ts +1 -1
  503. package/icon/icons/fal/falSquare.js +1 -1
  504. package/icon/icons/fal/falStepForward.d.ts +1 -1
  505. package/icon/icons/fal/falStepForward.js +1 -1
  506. package/icon/icons/fal/falStop.d.ts +1 -1
  507. package/icon/icons/fal/falStop.js +1 -1
  508. package/icon/icons/fal/falStopCircle.d.ts +1 -1
  509. package/icon/icons/fal/falStopCircle.js +1 -1
  510. package/icon/icons/fal/falStopwatch.d.ts +1 -1
  511. package/icon/icons/fal/falStopwatch.js +1 -1
  512. package/icon/icons/fal/falSuitcase.d.ts +1 -1
  513. package/icon/icons/fal/falSuitcase.js +1 -1
  514. package/icon/icons/fal/falSun.d.ts +1 -1
  515. package/icon/icons/fal/falSun.js +1 -1
  516. package/icon/icons/fal/falSync.d.ts +1 -1
  517. package/icon/icons/fal/falSync.js +1 -1
  518. package/icon/icons/fal/falTachometer.d.ts +1 -1
  519. package/icon/icons/fal/falTachometer.js +1 -1
  520. package/icon/icons/fal/falTemperatureHigh.d.ts +1 -1
  521. package/icon/icons/fal/falTemperatureHigh.js +1 -1
  522. package/icon/icons/fal/falTh.d.ts +1 -1
  523. package/icon/icons/fal/falTh.js +1 -1
  524. package/icon/icons/fal/falThLarge.d.ts +1 -1
  525. package/icon/icons/fal/falThLarge.js +1 -1
  526. package/icon/icons/fal/falThList.d.ts +1 -1
  527. package/icon/icons/fal/falThList.js +1 -1
  528. package/icon/icons/fal/falTimes.d.ts +1 -1
  529. package/icon/icons/fal/falTimes.js +1 -1
  530. package/icon/icons/fal/falTimesCircle.d.ts +1 -1
  531. package/icon/icons/fal/falTimesCircle.js +1 -1
  532. package/icon/icons/fal/falToggleOff.d.ts +1 -1
  533. package/icon/icons/fal/falToggleOff.js +1 -1
  534. package/icon/icons/fal/falToggleOn.d.ts +1 -1
  535. package/icon/icons/fal/falToggleOn.js +1 -1
  536. package/icon/icons/fal/falTrashAlt.d.ts +1 -1
  537. package/icon/icons/fal/falTrashAlt.js +1 -1
  538. package/icon/icons/fal/falUnlockAlt.d.ts +1 -1
  539. package/icon/icons/fal/falUnlockAlt.js +1 -1
  540. package/icon/icons/fal/falUser.d.ts +1 -1
  541. package/icon/icons/fal/falUser.js +1 -1
  542. package/icon/icons/fal/falUserChart.d.ts +1 -1
  543. package/icon/icons/fal/falUserChart.js +1 -1
  544. package/icon/icons/fal/falUserCircle.d.ts +1 -1
  545. package/icon/icons/fal/falUserCircle.js +1 -1
  546. package/icon/icons/fal/falUserCog.d.ts +1 -1
  547. package/icon/icons/fal/falUserCog.js +1 -1
  548. package/icon/icons/fal/falUserEdit.d.ts +1 -1
  549. package/icon/icons/fal/falUserEdit.js +1 -1
  550. package/icon/icons/fal/falUserFriends.d.ts +1 -1
  551. package/icon/icons/fal/falUserFriends.js +1 -1
  552. package/icon/icons/fal/falUserPlus.d.ts +1 -1
  553. package/icon/icons/fal/falUserPlus.js +1 -1
  554. package/icon/icons/fal/falUserShield.d.ts +1 -1
  555. package/icon/icons/fal/falUserShield.js +1 -1
  556. package/icon/icons/fal/falUserTimes.d.ts +1 -1
  557. package/icon/icons/fal/falUserTimes.js +1 -1
  558. package/icon/icons/fal/falUsers.d.ts +1 -1
  559. package/icon/icons/fal/falUsers.js +1 -1
  560. package/icon/icons/fal/falUsersClass.d.ts +1 -1
  561. package/icon/icons/fal/falUsersClass.js +1 -1
  562. package/icon/icons/fal/falWater.d.ts +1 -1
  563. package/icon/icons/fal/falWater.js +1 -1
  564. package/icon/icons/fal/falWind.d.ts +1 -1
  565. package/icon/icons/fal/falWind.js +1 -1
  566. package/icon/icons/fal/falWindTurbine.d.ts +1 -1
  567. package/icon/icons/fal/falWindTurbine.js +1 -1
  568. package/icon/icons/fal/falWrench.d.ts +1 -1
  569. package/icon/icons/fal/falWrench.js +1 -1
  570. package/icon/icons/fas/fasCaretDown.d.ts +1 -1
  571. package/icon/icons/fas/fasCaretDown.js +1 -1
  572. package/icon/icons/fas/fasCaretLeft.d.ts +1 -1
  573. package/icon/icons/fas/fasCaretLeft.js +1 -1
  574. package/icon/icons/fas/fasCaretRight.d.ts +1 -1
  575. package/icon/icons/fas/fasCaretRight.js +1 -1
  576. package/icon/icons/fas/fasCaretUp.d.ts +1 -1
  577. package/icon/icons/fas/fasCaretUp.js +1 -1
  578. package/icon/icons/fas/fasDiamond.d.ts +1 -1
  579. package/icon/icons/fas/fasDiamond.js +1 -1
  580. package/icon/icons/fas/fasFolder.d.ts +1 -1
  581. package/icon/icons/fas/fasFolder.js +1 -1
  582. package/icon/icons/fas/fasMapMarkerAlt.d.ts +1 -1
  583. package/icon/icons/fas/fasMapMarkerAlt.js +1 -1
  584. package/icon/icons/fas/fasMapMarkerExclamation.d.ts +1 -1
  585. package/icon/icons/fas/fasMapMarkerExclamation.js +1 -1
  586. package/icon/icons/fas/fasQuoteLeft.d.ts +1 -1
  587. package/icon/icons/fas/fasQuoteLeft.js +1 -1
  588. package/icon/icons/fas/fasQuoteRight.d.ts +1 -1
  589. package/icon/icons/fas/fasQuoteRight.js +1 -1
  590. package/icon/icons/fas/fasSolarPanel.d.ts +1 -1
  591. package/icon/icons/fas/fasSolarPanel.js +1 -1
  592. package/icon/icons/fas/fasSort.d.ts +1 -1
  593. package/icon/icons/fas/fasSort.js +1 -1
  594. package/icon/icons/fas/fasStar.d.ts +1 -1
  595. package/icon/icons/fas/fasStar.js +1 -1
  596. package/icon/icons/fas/fasWindTurbine.d.ts +1 -1
  597. package/icon/icons/fas/fasWindTurbine.js +1 -1
  598. package/icon/icons/types.d.ts +1 -13
  599. package/index.d.ts +3 -1
  600. package/index.js +3 -1
  601. package/input/input.d.ts +6 -5
  602. package/input/input.js +11 -13
  603. package/input/input.types.d.ts +12 -13
  604. package/input/theme.d.ts +5 -0
  605. package/input/theme.js +10 -5
  606. package/label/label.d.ts +1 -1
  607. package/label/label.js +3 -4
  608. package/label/theme.js +11 -11
  609. package/link/link.d.ts +1 -1
  610. package/link/link.js +4 -4
  611. package/link/link.types.d.ts +1 -0
  612. package/link/theme.d.ts +27 -3
  613. package/link/theme.js +30 -3
  614. package/list/context.js +1 -1
  615. package/list/index.d.ts +1 -0
  616. package/list/index.js +1 -0
  617. package/list/list.d.ts +1 -1
  618. package/list/list.js +3 -3
  619. package/list/list.types.d.ts +1 -0
  620. package/list/listItem.d.ts +1 -1
  621. package/list/listItem.js +9 -9
  622. package/list/listItem.types.d.ts +3 -1
  623. package/list/theme.d.ts +0 -1
  624. package/list/theme.js +1 -5
  625. package/p/p.d.ts +1 -1
  626. package/p/p.js +3 -3
  627. package/package.json +1 -1
  628. package/radio/context.d.ts +4 -0
  629. package/radio/context.js +23 -0
  630. package/radio/index.d.ts +6 -0
  631. package/radio/index.js +23 -0
  632. package/radio/radio.d.ts +10 -0
  633. package/radio/radio.js +74 -0
  634. package/radio/radio.types.d.ts +23 -0
  635. package/radio/radio.types.js +2 -0
  636. package/radio/radioGroup.d.ts +6 -0
  637. package/radio/radioGroup.js +99 -0
  638. package/radio/radioGroup.types.d.ts +13 -0
  639. package/radio/radioGroup.types.js +2 -0
  640. package/radio/theme.d.ts +49 -0
  641. package/radio/theme.js +57 -0
  642. package/skeleton/skeleton.d.ts +1 -1
  643. package/skeleton/skeleton.js +4 -4
  644. package/skeleton/skeleton.types.d.ts +2 -2
  645. package/styles/animations.d.ts +10 -0
  646. package/styles/animations.js +9 -0
  647. package/styles/colors.d.ts +171 -0
  648. package/styles/colors.js +96 -0
  649. package/styles/durations.d.ts +7 -0
  650. package/styles/durations.js +8 -0
  651. package/styles/fontFaces.d.ts +2 -0
  652. package/styles/fontFaces.js +4 -0
  653. package/styles/fontSizes.d.ts +7 -0
  654. package/styles/fontSizes.js +8 -0
  655. package/styles/fontWeights.d.ts +7 -0
  656. package/styles/fontWeights.js +8 -0
  657. package/styles/fonts.d.ts +4 -2
  658. package/styles/fonts.js +3 -3
  659. package/styles/index.d.ts +10 -0
  660. package/styles/index.js +20 -1
  661. package/styles/radii.d.ts +7 -0
  662. package/styles/radii.js +8 -0
  663. package/styles/screens.d.ts +8 -0
  664. package/styles/screens.js +9 -0
  665. package/styles/shadows.d.ts +9 -0
  666. package/styles/shadows.js +11 -0
  667. package/svg/svg.d.ts +1 -1
  668. package/svg/svg.js +5 -5
  669. package/svg/svg.types.d.ts +3 -3
  670. package/switch/context.d.ts +4 -0
  671. package/switch/context.js +23 -0
  672. package/switch/index.d.ts +6 -0
  673. package/switch/index.js +23 -0
  674. package/switch/switch.d.ts +6 -0
  675. package/switch/switch.js +113 -0
  676. package/switch/switch.types.d.ts +20 -0
  677. package/switch/switch.types.js +2 -0
  678. package/switch/switchButton.d.ts +13 -0
  679. package/switch/switchButton.js +140 -0
  680. package/switch/switchButton.types.d.ts +24 -0
  681. package/switch/switchButton.types.js +2 -0
  682. package/switch/switchLabel.d.ts +3 -0
  683. package/switch/switchLabel.js +30 -0
  684. package/switch/theme.d.ts +87 -0
  685. package/switch/theme.js +113 -0
  686. package/system/typography.d.ts +14 -9
  687. package/t/t.d.ts +1 -1
  688. package/t/t.js +7 -5
  689. package/t/t.types.d.ts +4 -2
  690. package/textarea/textarea.d.ts +1 -1
  691. package/textarea/textarea.js +5 -7
  692. package/textarea/theme.js +4 -4
  693. package/theme/components.d.ts +185 -18
  694. package/theme/components.js +26 -24
  695. package/theme/defaultTheme.d.ts +201 -33
  696. package/theme/foundations.d.ts +143 -0
  697. package/theme/foundations.js +20 -0
  698. package/utils/object.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  import { AvatarProps, AvatarStyleProps } from './avatar.types';
2
- export declare const BaseAvatar: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
2
+ export declare const AvatarBase: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
3
3
  [x: string]: {};
4
4
  } & AvatarStyleProps, never>;
5
5
  export declare const Avatar: import("styled-components").StyledComponent<"span", never, AvatarProps, never>;
package/avatar/avatar.js CHANGED
@@ -45,7 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
45
45
  return (mod && mod.__esModule) ? mod : { "default": mod };
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.Avatar = exports.BaseAvatar = void 0;
48
+ exports.Avatar = exports.AvatarBase = void 0;
49
49
  var styled_components_1 = require("@xstyled/styled-components");
50
50
  var react_1 = __importDefault(require("react"));
51
51
  var styled_components_2 = __importDefault(require("styled-components"));
@@ -54,7 +54,7 @@ var icon_1 = __importDefault(require("../icon"));
54
54
  var utils_1 = require("../utils");
55
55
  var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.interactivity, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
56
56
  var AvatarImage = styled_components_2.default.img(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\theight: 100%;\n\twidth: 100%;\n\n\t", "\n"], ["\n\theight: 100%;\n\twidth: 100%;\n\n\t", "\n"])), styled_components_1.borders);
57
- exports.BaseAvatar = styled_components_2.default.span.withConfig({
57
+ exports.AvatarBase = styled_components_2.default.span.withConfig({
58
58
  shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
59
59
  })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: 1.333;\n\toutline: none;\n\ttransition: all 0s ease-in-out;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: 1.333;\n\toutline: none;\n\ttransition: all 0s ease-in-out;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t}\n\n\t", "\n"])), generator);
60
60
  function defaultGetInitials(name) {
@@ -73,13 +73,12 @@ exports.Avatar = core_1.forwardRef(function (props, ref) {
73
73
  hoverBg: hoverBg,
74
74
  activeBg: activeBg,
75
75
  focusRing: 3,
76
- focusRingColor: 'blue.50',
77
76
  tabIndex: 0,
78
77
  userSelect: 'none'
79
78
  }
80
79
  : {};
81
80
  var aliasedProps = utils_1.filterUndefined({});
82
- return (react_1.default.createElement(exports.BaseAvatar, __assign({ borderRadius: borderRadius, className: utils_1.cs('vui-avatar', className), fontWeight: "medium", h: h, ref: ref, transitionDuration: "fast", w: h }, styles, interactiveProps, aliasedProps, rest), children ? (children) : src ? (react_1.default.createElement(AvatarImage, { borderRadius: borderRadius, src: src })) : icon ? (react_1.default.createElement(icon_1.default, { icon: icon, size: iconSize })) : initials ? (initials) : null));
81
+ return (react_1.default.createElement(exports.AvatarBase, __assign({ borderRadius: borderRadius, className: utils_1.cs('vui-avatar', className), fontWeight: "medium", h: h, ref: ref, transitionDuration: "fast", w: h }, styles, interactiveProps, aliasedProps, rest), children ? (children) : src ? (react_1.default.createElement(AvatarImage, { borderRadius: borderRadius, src: src })) : icon ? (react_1.default.createElement(icon_1.default, { icon: icon, size: iconSize })) : initials ? (initials) : null));
83
82
  });
84
83
  exports.Avatar.displayName = 'Avatar';
85
84
  exports.default = exports.Avatar;
package/avatar/theme.js CHANGED
@@ -19,18 +19,18 @@ function variantOutlined(props) {
19
19
  }
20
20
  function variantSolid(props) {
21
21
  var c = props.colorScheme;
22
- var colors = {
22
+ var styles = {
23
23
  hoverBg: c + ".90",
24
24
  activeBg: c + ".100",
25
25
  bg: c + ".80",
26
26
  color: 'white'
27
27
  };
28
28
  if (c === 'yellow') {
29
- colors.hoverBg = c + ".80";
30
- colors.activeBg = c + ".90";
31
- colors.bg = c + ".70";
29
+ styles.hoverBg = c + ".80";
30
+ styles.activeBg = c + ".90";
31
+ styles.bg = c + ".70";
32
32
  }
33
- return colors;
33
+ return styles;
34
34
  }
35
35
  function variantSubtle(props) {
36
36
  var c = props.colorScheme;
package/box/box.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { BoxProps, BoxStyleProps } from './box.types';
2
- export declare const BaseBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
+ export declare const BoxBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
3
  [x: string]: {};
4
4
  } & BoxStyleProps, never>;
5
5
  export declare const Box: import("styled-components").StyledComponent<"div", never, BoxProps, never>;
package/box/box.js CHANGED
@@ -29,14 +29,14 @@ 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.Box = exports.BaseBox = void 0;
32
+ exports.Box = exports.BoxBase = 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 core_1 = require("../core");
37
37
  var utils_1 = require("../utils");
38
38
  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, styled_components_1.layout, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions);
39
- exports.BaseBox = styled_components_2.default.div.withConfig({
39
+ exports.BoxBase = styled_components_2.default.div.withConfig({
40
40
  shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
41
41
  })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\ttransition: all 0s ease-in-out;\n\n\t", "\n"], ["\n\tdisplay: flex;\n\ttransition: all 0s ease-in-out;\n\n\t", "\n"])), generator);
42
42
  exports.Box = core_1.forwardRef(function (props, ref) {
@@ -54,7 +54,7 @@ exports.Box = core_1.forwardRef(function (props, ref) {
54
54
  hoverBoxShadow: hoverShadow,
55
55
  justifyContent: justify !== null && justify !== void 0 ? justify : justifyContent
56
56
  });
57
- return (react_1.default.createElement(exports.BaseBox, __assign({ className: utils_1.cs('vui-box', className), ref: ref, transitionDuration: "normal" }, styles, aliasedProps, rest)));
57
+ return (react_1.default.createElement(exports.BoxBase, __assign({ className: utils_1.cs('vui-box', className), ref: ref, transitionDuration: "normal" }, styles, aliasedProps, rest)));
58
58
  });
59
59
  exports.Box.displayName = 'Box';
60
60
  exports.default = exports.Box;
@@ -1,5 +1,5 @@
1
1
  import { ButtonProps, ButtonStyleProps } from './button.types';
2
- export declare const BaseButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
2
+ export declare const ButtonBase: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
3
3
  [x: string]: {};
4
4
  } & ButtonStyleProps, never>;
5
5
  export declare const Button: import("styled-components").StyledComponent<"button", never, ButtonProps, never>;
package/button/button.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.Button = exports.BaseButton = void 0;
32
+ exports.Button = exports.ButtonBase = 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"));
@@ -40,14 +40,15 @@ var utils_1 = require("../utils");
40
40
  var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.color, styled_components_1.effects, styled_components_1.flexboxes, styled_components_1.fontSize, styled_components_1.fontWeight, styled_components_1.pointerEvents, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions);
41
41
  var ContentWrapper = styled_components_2.default.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tvisibility: hidden;\n"], ["\n\tvisibility: hidden;\n"])));
42
42
  var LoadingWrapper = styled_components_2.default.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\tbottom: 0;\n\tdisplay: flex;\n\tleft: 0;\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n"], ["\n\tbottom: 0;\n\tdisplay: flex;\n\tleft: 0;\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n"])));
43
- exports.BaseButton = styled_components_2.default.button.withConfig({
43
+ exports.ButtonBase = styled_components_2.default.button.withConfig({
44
44
  shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
45
- })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: 1.1;\n\tposition: relative;\n\ttransition: all 0s ease-in-out;\n\tuser-select: none;\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\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: 1.1;\n\tposition: relative;\n\ttransition: all 0s ease-in-out;\n\tuser-select: none;\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
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: 1.1;\n\tposition: relative;\n\ttransition: all 0s ease-in-out;\n\tuser-select: none;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t", "\n\n\t&:disabled {\n\t\t/* Specified here to avoid conflict with active/hover props */\n\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\tborder-color: var(--vui-colors-disabled-border);\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n"], ["\n\talign-items: center;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: 1.1;\n\tposition: relative;\n\ttransition: all 0s ease-in-out;\n\tuser-select: none;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t", "\n\n\t&:disabled {\n\t\t/* Specified here to avoid conflict with active/hover props */\n\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\tborder-color: var(--vui-colors-disabled-border);\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n"])), generator);
46
46
  exports.Button = core_1.forwardRef(function (props, ref) {
47
47
  var _a;
48
- var group = context_1.useButtonGroup();
49
- var _b = core_1.omitThemingProps(props), borderWidthProp = _b.borderWidth, children = _b.children, className = _b.className, _c = _b.disabled, disabled = _c === void 0 ? group === null || group === void 0 ? void 0 : group.disabled : _c, icon = _b.icon, iconLeftProp = _b.iconLeft, iconRightProp = _b.iconRight, isElevated = _b.isElevated, isFullWidth = _b.isFullWidth, isLoading = _b.isLoading, isRound = _b.isRound, isSplit = _b.isSplit, itemLeftProp = _b.itemLeft, itemRightProp = _b.itemRight, text = _b.text, rest = __rest(_b, ["borderWidth", "children", "className", "disabled", "icon", "iconLeft", "iconRight", "isElevated", "isFullWidth", "isLoading", "isRound", "isSplit", "itemLeft", "itemRight", "text"]);
50
- var _d = core_1.useStyleConfig('Button', __assign(__assign({}, group), props)), borderWidth = _d.borderWidth, h = _d.h, _e = _d.iconSize, iconSize = _e === void 0 ? 'md' : _e, minW = _d.minW, _f = _d.spaceX, spaceXBase = _f === void 0 ? 0 : _f, styles = __rest(_d, ["borderWidth", "h", "iconSize", "minW", "spaceX"]);
48
+ var buttonGroupProps = context_1.useButtonGroup();
49
+ var mergedProps = __assign(__assign({}, buttonGroupProps), props);
50
+ var _b = core_1.omitThemingProps(mergedProps), borderWidthProp = _b.borderWidth, children = _b.children, className = _b.className, disabled = _b.disabled, icon = _b.icon, iconLeftProp = _b.iconLeft, iconRightProp = _b.iconRight, isElevated = _b.isElevated, isFullWidth = _b.isFullWidth, isLoading = _b.isLoading, isRound = _b.isRound, isSplit = _b.isSplit, itemLeftProp = _b.itemLeft, itemRightProp = _b.itemRight, text = _b.text, rest = __rest(_b, ["borderWidth", "children", "className", "disabled", "icon", "iconLeft", "iconRight", "isElevated", "isFullWidth", "isLoading", "isRound", "isSplit", "itemLeft", "itemRight", "text"]);
51
+ var _c = core_1.useStyleConfig('Button', mergedProps), borderWidth = _c.borderWidth, h = _c.h, _d = _c.iconSize, iconSize = _d === void 0 ? 'md' : _d, minW = _c.minW, _e = _c.spaceX, spaceXBase = _e === void 0 ? 0 : _e, styles = __rest(_c, ["borderWidth", "h", "iconSize", "minW", "spaceX"]);
51
52
  var Content = isLoading ? ContentWrapper : react_1.default.Fragment;
52
53
  var border = (_a = borderWidthProp !== null && borderWidthProp !== void 0 ? borderWidthProp : borderWidth) !== null && _a !== void 0 ? _a : 0;
53
54
  var spaceX = (spaceXBase - border) / 8;
@@ -63,10 +64,10 @@ exports.Button = core_1.forwardRef(function (props, ref) {
63
64
  var aliasedProps = utils_1.filterUndefined({
64
65
  borderRadius: isRound ? h / 2 : undefined,
65
66
  boxShadow: isElevated ? 2 : undefined,
66
- pointerEvents: disabled || isLoading ? 'none' : undefined,
67
+ pointerEvents: isLoading ? 'none' : undefined,
67
68
  w: isFullWidth ? '100%' : undefined
68
69
  });
69
- return (react_1.default.createElement(exports.BaseButton, __assign({ borderRadius: "md", borderWidth: border, className: utils_1.cs('vui-button', className), disabled: disabled, disabledBg: "grey.20", disabledBorderColor: "grey.50", disabledColor: "grey.50", focusRing: 3, focusRingColor: "blue.50", fontWeight: "medium", h: h, minW: minWidth, pl: pl, pr: pr, ref: ref, transitionDuration: "fast", type: "button" }, styles, aliasedProps, rest),
70
+ return (react_1.default.createElement(exports.ButtonBase, __assign({ borderRadius: "md", borderWidth: border, className: utils_1.cs('vui-button', className), disabled: disabled, focusRing: 3, fontWeight: "medium", h: h, minW: minWidth, pl: pl, pr: pr, ref: ref, transitionDuration: "fast", type: "button" }, styles, aliasedProps, rest),
70
71
  isLoading && (react_1.default.createElement(LoadingWrapper, { onClick: function (e) { return e.stopPropagation(); } },
71
72
  react_1.default.createElement(icon_1.default, { animation: "spin", icon: "falSpinner", m: "auto", size: iconSize }))),
72
73
  react_1.default.createElement(Content, null, icon ? (react_1.default.createElement(icon_1.default, { icon: icon, size: iconSize })) : (react_1.default.createElement(react_1.default.Fragment, null,
@@ -1,5 +1,5 @@
1
1
  import { ButtonGroupProps, ButtonGroupStyleProps } from './buttonGroup.types';
2
- export declare const BaseButtonGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
+ export declare const ButtonGroupBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
3
  [x: string]: {};
4
4
  } & ButtonGroupStyleProps, never>;
5
5
  export declare const ButtonGroup: import("styled-components").StyledComponent<"div", never, ButtonGroupProps, never>;
@@ -48,7 +48,7 @@ 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.ButtonGroup = exports.BaseButtonGroup = void 0;
51
+ exports.ButtonGroup = exports.ButtonGroupBase = 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"));
@@ -56,7 +56,7 @@ var context_1 = require("./context");
56
56
  var core_1 = require("../core");
57
57
  var utils_1 = require("../utils");
58
58
  var generator = styled_components_1.compose(styled_components_1.flexboxes, styled_components_1.sizing, styled_components_1.space);
59
- exports.BaseButtonGroup = styled_components_2.default.div.withConfig({
59
+ exports.ButtonGroupBase = styled_components_2.default.div.withConfig({
60
60
  shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
61
61
  })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\n\t// First Button\n\t> *:first-of-type:not(:last-of-type) {\n\t\tborder-bottom-right-radius: 0;\n\t\tborder-right-width: 1px;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t// Middle Buttons\n\t> *:not(:first-of-type):not(:last-of-type) {\n\t\tborder-left-width: 0px;\n\t\tborder-radius: 0;\n\t\tborder-right-width: 1px;\n\t}\n\n\t// Last Button\n\t> *:not(:first-of-type):last-of-type {\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-left-width: 0px;\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t> *:focus {\n\t\tz-index: 1;\n\t}\n\n\t", "\n"], ["\n\tdisplay: flex;\n\n\t// First Button\n\t> *:first-of-type:not(:last-of-type) {\n\t\tborder-bottom-right-radius: 0;\n\t\tborder-right-width: 1px;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t// Middle Buttons\n\t> *:not(:first-of-type):not(:last-of-type) {\n\t\tborder-left-width: 0px;\n\t\tborder-radius: 0;\n\t\tborder-right-width: 1px;\n\t}\n\n\t// Last Button\n\t> *:not(:first-of-type):last-of-type {\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-left-width: 0px;\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t> *:focus {\n\t\tz-index: 1;\n\t}\n\n\t", "\n"])), generator);
62
62
  exports.ButtonGroup = core_1.forwardRef(function (props, ref) {
@@ -68,7 +68,7 @@ exports.ButtonGroup = core_1.forwardRef(function (props, ref) {
68
68
  variant
69
69
  ]);
70
70
  return (react_1.default.createElement(context_1.ButtonGroupProvider, { value: context },
71
- react_1.default.createElement(exports.BaseButtonGroup, __assign({ className: utils_1.cs('vui-buttonGroup', className), ref: ref }, rest))));
71
+ react_1.default.createElement(exports.ButtonGroupBase, __assign({ className: utils_1.cs('vui-buttonGroup', className), ref: ref }, rest))));
72
72
  });
73
73
  exports.ButtonGroup.displayName = 'ButtonGroup';
74
74
  exports.default = exports.ButtonGroup;
package/button/index.d.ts CHANGED
@@ -3,4 +3,5 @@ export * from './button.types';
3
3
  export * from './buttons';
4
4
  export * from './buttonGroup';
5
5
  export * from './buttonGroup.types';
6
+ export * from './context';
6
7
  export { default } from './button';
package/button/index.js CHANGED
@@ -19,5 +19,6 @@ __exportStar(require("./button.types"), exports);
19
19
  __exportStar(require("./buttons"), exports);
20
20
  __exportStar(require("./buttonGroup"), exports);
21
21
  __exportStar(require("./buttonGroup.types"), exports);
22
+ __exportStar(require("./context"), exports);
22
23
  var button_1 = require("./button");
23
24
  Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(button_1).default; } });
package/button/theme.js CHANGED
@@ -25,6 +25,11 @@ function variantSolid(props) {
25
25
  bg: c + ".80",
26
26
  color: 'white'
27
27
  };
28
+ // Special cases
29
+ if (c === 'prussian') {
30
+ styles.activeBg = 'prussian.60';
31
+ styles.hoverBg = 'prussian.70';
32
+ }
28
33
  return styles;
29
34
  }
30
35
  function variantText(props) {
@@ -1,7 +1,10 @@
1
- import { CheckboxProps, CheckboxStyleProps } from './checkbox.types';
2
- export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
3
- export declare const BaseCheckbox: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
1
+ import { CheckboxControlStyleProps, CheckboxProps, CheckboxStyleProps } from './checkbox.types';
2
+ export declare const CheckboxInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const CheckboxBase: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {
4
4
  [x: string]: {};
5
5
  } & CheckboxStyleProps, never>;
6
+ export declare const CheckboxControl: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
7
+ [x: string]: {};
8
+ } & CheckboxControlStyleProps, never>;
6
9
  export declare const Checkbox: import("styled-components").StyledComponent<"span", never, CheckboxProps, never>;
7
10
  export default Checkbox;
@@ -64,34 +64,48 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
64
64
  return (mod && mod.__esModule) ? mod : { "default": mod };
65
65
  };
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.Checkbox = exports.BaseCheckbox = exports.Input = void 0;
67
+ exports.Checkbox = exports.CheckboxControl = exports.CheckboxBase = exports.CheckboxInput = void 0;
68
68
  var styled_components_1 = require("@xstyled/styled-components");
69
69
  var react_1 = __importStar(require("react"));
70
70
  var styled_components_2 = __importDefault(require("styled-components"));
71
- var icon_1 = __importDefault(require("../icon"));
71
+ var context_1 = require("./context");
72
72
  var core_1 = require("../core");
73
+ var icon_1 = __importDefault(require("../icon"));
74
+ var t_1 = __importDefault(require("../t"));
73
75
  var utils_1 = require("../utils");
74
- var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.color, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions);
75
- exports.Input = styled_components_2.default.input(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tcursor: inherit;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0;\n\topacity: 0;\n\tpadding: 0;\n\tposition: absolute;\n\ttop: 0;\n\twidth: 100%;\n\tz-index: 1;\n"], ["\n\tcursor: inherit;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0;\n\topacity: 0;\n\tpadding: 0;\n\tposition: absolute;\n\ttop: 0;\n\twidth: 100%;\n\tz-index: 1;\n"])));
76
- exports.BaseCheckbox = styled_components_2.default.span.withConfig({
77
- shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
78
- })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\tposition: relative;\n\ttransition: all 0s ease-in-out;\n\n\tinput:disabled {\n\t\tcursor: not-allowed;\n\t}\n\n\t// Remove when icons are fixed\n\tpath {\n\t\tfill: currentColor;\n\t}\n\n\t", "\n"], ["\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\tposition: relative;\n\ttransition: all 0s ease-in-out;\n\n\tinput:disabled {\n\t\tcursor: not-allowed;\n\t}\n\n\t// Remove when icons are fixed\n\tpath {\n\t\tfill: currentColor;\n\t}\n\n\t", "\n"])), generator);
76
+ var checkboxGenerator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.color, styled_components_1.flexboxes, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions);
77
+ var controlGenerator = styled_components_1.compose(styled_components_1.borders, styled_components_1.backgroundColor, styled_components_1.color, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions);
78
+ exports.CheckboxInput = styled_components_2.default.input(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tcursor: inherit;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0;\n\topacity: 0;\n\tpadding: 0;\n\tposition: absolute;\n\ttop: 0;\n\twidth: 100%;\n\tz-index: 1;\n"], ["\n\tcursor: inherit;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0;\n\topacity: 0;\n\tpadding: 0;\n\tposition: absolute;\n\ttop: 0;\n\twidth: 100%;\n\tz-index: 1;\n"])));
79
+ exports.CheckboxBase = styled_components_2.default.label.withConfig({
80
+ shouldForwardProp: core_1.shouldForwardProp(checkboxGenerator.meta.props)
81
+ })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\ttransition: all 0s ease-in-out;\n\twidth: fit-content;\n\n\t:hover .vui-checkboxControl {\n\t\tcolor: ", ";\n\t}\n\n\t&.disabled {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\n\t\t.vui-checkboxControl {\n\t\t\tcolor: var(--vui-colors-disabled-font);\n\t\t}\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\ttransition: all 0s ease-in-out;\n\twidth: fit-content;\n\n\t:hover .vui-checkboxControl {\n\t\tcolor: ", ";\n\t}\n\n\t&.disabled {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\n\t\t.vui-checkboxControl {\n\t\t\tcolor: var(--vui-colors-disabled-font);\n\t\t}\n\t}\n\n\t", "\n"])), function (p) { return core_1.th('colors', p.controlHoverColor)(p); }, checkboxGenerator);
82
+ exports.CheckboxControl = styled_components_2.default.span.withConfig({
83
+ shouldForwardProp: core_1.shouldForwardProp(controlGenerator.meta.props)
84
+ })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: relative;\n\n\t", "\n"], ["\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: relative;\n\n\t", "\n"])), controlGenerator);
79
85
  exports.Checkbox = core_1.forwardRef(function (props, ref) {
80
- var _a = core_1.omitThemingProps(props), checked = _a.checked, _b = _a.checkedIcon, checkedIcon = _b === void 0 ? 'cusCheckboxSelected' : _b, className = _a.className, defaultChecked = _a.defaultChecked, disabled = _a.disabled, _c = _a.icon, iconProp = _c === void 0 ? 'falSquare' : _c, _d = _a.indeterminateIcon, indeterminateIcon = _d === void 0 ? 'cusSquareMinus' : _d, inputProps = _a.inputProps, inputRef = _a.inputRef, isIndeterminate = _a.isIndeterminate, name = _a.name, onChange = _a.onChange, readOnly = _a.readOnly, required = _a.required, value = _a.value, rest = __rest(_a, ["checked", "checkedIcon", "className", "defaultChecked", "disabled", "icon", "indeterminateIcon", "inputProps", "inputRef", "isIndeterminate", "name", "onChange", "readOnly", "required", "value"]);
81
- var _e = __read(react_1.useState(defaultChecked !== null && defaultChecked !== void 0 ? defaultChecked : checked), 2), isChecked = _e[0], setIsChecked = _e[1];
82
- var _f = core_1.useStyleConfig('Checkbox', props), colorStyle = _f.color, h = _f.h, hoverColorStyle = _f.hoverColor, styles = __rest(_f, ["color", "h", "hoverColor"]);
86
+ var checkboxGroupProps = context_1.useCheckboxGroup();
87
+ var mergedProps = __assign(__assign({}, checkboxGroupProps), props);
88
+ var _a = core_1.omitThemingProps(mergedProps), checked = _a.checked, children = _a.children, className = _a.className, defaultChecked = _a.defaultChecked, disabled = _a.disabled, _b = _a.icon, iconProp = _b === void 0 ? 'cuiCheckboxUnselected' : _b, _c = _a.iconChecked, iconChecked = _c === void 0 ? 'cuiCheckboxSelected' : _c, _d = _a.iconIndeterminate, iconIndeterminate = _d === void 0 ? 'cuiCheckboxIndeterminate' : _d, inputProps = _a.inputProps, inputRef = _a.inputRef, isIndeterminate = _a.isIndeterminate, label = _a.label, name = _a.name, onChange = _a.onChange, required = _a.required, value = _a.value, rest = __rest(_a, ["checked", "children", "className", "defaultChecked", "disabled", "icon", "iconChecked", "iconIndeterminate", "inputProps", "inputRef", "isIndeterminate", "label", "name", "onChange", "required", "value"]);
89
+ var _e = __read(react_1.useState(defaultChecked), 2), isChecked = _e[0], setIsChecked = _e[1];
90
+ var styles = core_1.useStyleConfig('Checkbox', mergedProps);
91
+ var _f = styles.control, controlColor = _f.color, hoverColor = _f.hoverColor, controlStyles = __rest(_f, ["color", "hoverColor"]);
92
+ react_1.useEffect(function () {
93
+ checked !== undefined && setIsChecked(checked);
94
+ }, [checked]);
83
95
  var isFilled = isChecked || isIndeterminate;
84
- var color = disabled ? 'grey.40' : isFilled ? colorStyle : 'grey.60';
85
- var hoverColor = disabled ? 'grey.40' : isFilled ? hoverColorStyle : 'grey.80';
86
- var icon = isIndeterminate ? indeterminateIcon : isChecked ? checkedIcon : iconProp;
96
+ var icon = isIndeterminate ? iconIndeterminate : isChecked ? iconChecked : iconProp;
97
+ var controlMr = children || label ? 1 : 0;
98
+ var color = isFilled ? controlColor : 'grey.50';
99
+ var controlHoverColor = isFilled ? hoverColor : 'grey.90';
87
100
  function handleOnChange(e) {
88
101
  setIsChecked(e.target.checked);
89
102
  onChange === null || onChange === void 0 ? void 0 : onChange(e);
90
103
  }
91
- return (react_1.default.createElement(exports.BaseCheckbox, __assign({ borderRadius: "sm", className: utils_1.cs('vui-checkbox', className), color: color, focusWithinRing: 3, focusWithinRingColor: "blue.50", h: h, hoverColor: hoverColor, onChange: handleOnChange, ref: ref, transitionDuration: "fast", type: "checkbox", w: h }, styles, rest),
92
- react_1.default.createElement(exports.Input, __assign({}, { checked: checked, defaultChecked: defaultChecked, disabled: disabled, name: name, onChange: onChange, readOnly: readOnly, required: required, value: value }, { className: "vui-checkboxInput", ref: inputRef, type: "checkbox" }, inputProps)),
93
- react_1.default.createElement(icon_1.default, { h: "100%", icon: icon, w: "100%" })));
104
+ return (react_1.default.createElement(exports.CheckboxBase, __assign({ className: utils_1.cs('vui-checkbox', disabled && 'disabled', className), controlHoverColor: controlHoverColor, ref: ref }, styles.container, rest),
105
+ react_1.default.createElement(exports.CheckboxControl, __assign({ borderRadius: "sm", className: "vui-checkboxControl", color: color, focusWithinRing: 3, mr: controlMr, transitionDuration: "fast" }, controlStyles),
106
+ react_1.default.createElement(exports.CheckboxInput, __assign({ className: "vui-checkboxInput", onChange: handleOnChange, ref: inputRef, type: "checkbox" }, { checked: checked, defaultChecked: defaultChecked, disabled: disabled, name: name, required: required, value: value }, inputProps)),
107
+ react_1.default.createElement(icon_1.default, { h: "100%", icon: icon, w: "100%" })), children !== null && children !== void 0 ? children : (label && (react_1.default.createElement(t_1.default, __assign({ className: "vui-checkboxLabel" }, styles.label), label)))));
94
108
  });
95
109
  exports.Checkbox.displayName = 'Checkbox';
96
110
  exports.default = exports.Checkbox;
97
- var templateObject_1, templateObject_2;
111
+ var templateObject_1, templateObject_2, templateObject_3;
@@ -1,25 +1,25 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { IconProp } from '../icon';
3
- import { BackgroundColorProps, BordersProps, SizingProps, SpaceProps, TransitionsProps } from '../system';
3
+ import { BackgroundColorProps, BordersProps, FlexboxesProps, SizingProps, SpaceProps, TransitionsProps } from '../system';
4
4
  import { ThemingProps } from '../theme';
5
- export interface CheckboxProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'onChange'>, CheckboxStyleProps, ThemingProps<'Checkbox'> {
5
+ export interface CheckboxProps extends Omit<HTMLAttributes<HTMLLabelElement>, 'onChange'>, CheckboxStyleProps, ThemingProps<'Checkbox'> {
6
6
  checked?: boolean;
7
- checkedIcon?: IconProp;
8
7
  colorScheme?: 'blue' | 'prussian';
9
8
  disabled?: boolean;
10
9
  icon?: IconProp;
11
- indeterminateIcon?: IconProp;
12
- inputProps?: InputProps;
10
+ iconChecked?: IconProp;
11
+ iconIndeterminate?: IconProp;
12
+ inputProps?: HTMLAttributes<HTMLInputElement>;
13
13
  inputRef?: React.MutableRefObject<HTMLInputElement | null> | null;
14
14
  isIndeterminate?: boolean;
15
+ label?: string;
15
16
  name?: string;
16
17
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
17
- readOnly?: boolean;
18
18
  required?: boolean;
19
19
  value?: number | string;
20
20
  }
21
- export interface CheckboxStyleProps extends BackgroundColorProps, BordersProps, SizingProps, SpaceProps, TransitionsProps {
21
+ export interface CheckboxControlStyleProps extends BackgroundColorProps, BordersProps, SizingProps, SpaceProps, TransitionsProps {
22
22
  }
23
- interface InputProps extends HTMLAttributes<HTMLInputElement> {
23
+ export interface CheckboxStyleProps extends BackgroundColorProps, FlexboxesProps, SizingProps, SpaceProps, TransitionsProps {
24
+ controlHoverColor?: string;
24
25
  }
25
- export {};
@@ -0,0 +1,6 @@
1
+ import { CheckboxGroupProps, CheckboxGroupStyleProps } from './checkboxGroup.types';
2
+ export declare const CheckboxGroupBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
+ [x: string]: {};
4
+ } & CheckboxGroupStyleProps, never>;
5
+ export declare const CheckboxGroup: import("styled-components").StyledComponent<"div", never, CheckboxGroupProps, never>;
6
+ export default CheckboxGroup;
@@ -0,0 +1,80 @@
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
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __rest = (this && this.__rest) || function (s, e) {
37
+ var t = {};
38
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
39
+ t[p] = s[p];
40
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
41
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
42
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
43
+ t[p[i]] = s[p[i]];
44
+ }
45
+ return t;
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.CheckboxGroup = exports.CheckboxGroupBase = void 0;
52
+ var styled_components_1 = require("@xstyled/styled-components");
53
+ var react_1 = __importStar(require("react"));
54
+ var styled_components_2 = __importDefault(require("styled-components"));
55
+ var context_1 = require("./context");
56
+ var core_1 = require("../core");
57
+ var utils_1 = require("../utils");
58
+ var generator = styled_components_1.compose(styled_components_1.flexboxes, styled_components_1.sizing, styled_components_1.space);
59
+ exports.CheckboxGroupBase = styled_components_2.default.div.withConfig({
60
+ shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
61
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t", "\n"], ["\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t", "\n"])), generator);
62
+ exports.CheckboxGroup = core_1.forwardRef(function (props, ref) {
63
+ var className = props.className, colorScheme = props.colorScheme, disabled = props.disabled, name = props.name, onChange = props.onChange, row = props.row, size = props.size, variant = props.variant, rest = __rest(props, ["className", "colorScheme", "disabled", "name", "onChange", "row", "size", "variant"]);
64
+ var context = react_1.useMemo(function () { return utils_1.filterUndefined({ colorScheme: colorScheme, disabled: disabled, name: name, onChange: onChange, size: size, variant: variant }); }, [
65
+ colorScheme,
66
+ disabled,
67
+ name,
68
+ onChange,
69
+ size,
70
+ variant
71
+ ]);
72
+ var aliasedProps = utils_1.filterUndefined({
73
+ flexDirection: row ? 'row' : undefined
74
+ });
75
+ return (react_1.default.createElement(context_1.CheckboxGroupProvider, { value: context },
76
+ react_1.default.createElement(exports.CheckboxGroupBase, __assign({ className: utils_1.cs('vui-checkboxGroup', className), ref: ref }, aliasedProps, rest))));
77
+ });
78
+ exports.CheckboxGroup.displayName = 'CheckboxGroup';
79
+ exports.default = exports.CheckboxGroup;
80
+ var templateObject_1;
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes } from 'react';
2
+ import { FlexboxesProps, SizingProps, SpaceProps } from '../system';
3
+ import { ThemingProps } from '../theme';
4
+ export interface CheckboxGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, CheckboxGroupStyleProps, ThemingProps<'Checkbox'> {
5
+ colorScheme?: 'blue' | 'prussian';
6
+ disabled?: boolean;
7
+ name?: string;
8
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
9
+ row?: boolean;
10
+ }
11
+ export interface CheckboxGroupStyleProps extends FlexboxesProps, SizingProps, SpaceProps {
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { Dict } from '../utils';
3
+ declare const CheckboxGroupProvider: import("react").Provider<Dict<any>>, useCheckboxGroup: () => Dict<any>;
4
+ export { CheckboxGroupProvider, useCheckboxGroup };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __read = (this && this.__read) || function (o, n) {
3
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
4
+ if (!m) return o;
5
+ var i = m.call(o), r, ar = [], e;
6
+ try {
7
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
8
+ }
9
+ catch (error) { e = { error: error }; }
10
+ finally {
11
+ try {
12
+ if (r && !r.done && (m = i["return"])) m.call(i);
13
+ }
14
+ finally { if (e) throw e.error; }
15
+ }
16
+ return ar;
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.useCheckboxGroup = exports.CheckboxGroupProvider = void 0;
20
+ var core_1 = require("../core");
21
+ var _a = __read(core_1.createContext({ isOptional: true }), 2), CheckboxGroupProvider = _a[0], useCheckboxGroup = _a[1];
22
+ exports.CheckboxGroupProvider = CheckboxGroupProvider;
23
+ exports.useCheckboxGroup = useCheckboxGroup;
@@ -1,3 +1,6 @@
1
1
  export * from './checkbox';
2
2
  export * from './checkbox.types';
3
+ export * from './checkboxGroup';
4
+ export * from './checkboxGroup.types';
5
+ export * from './context';
3
6
  export { default } from './checkbox';
package/checkbox/index.js CHANGED
@@ -16,5 +16,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.default = void 0;
17
17
  __exportStar(require("./checkbox"), exports);
18
18
  __exportStar(require("./checkbox.types"), exports);
19
+ __exportStar(require("./checkboxGroup"), exports);
20
+ __exportStar(require("./checkboxGroup.types"), exports);
21
+ __exportStar(require("./context"), exports);
19
22
  var checkbox_1 = require("./checkbox");
20
23
  Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(checkbox_1).default; } });
@@ -1,7 +1,9 @@
1
1
  import { Dict } from '../utils';
2
2
  declare function variantDefault(props: Dict): {
3
- color: string;
4
- hoverColor: string;
3
+ control: {
4
+ color: string;
5
+ hoverColor: string;
6
+ };
5
7
  };
6
8
  declare const _default: {
7
9
  defaultProps: {
@@ -9,12 +11,35 @@ declare const _default: {
9
11
  size: string;
10
12
  variant: string;
11
13
  };
14
+ parts: string[];
12
15
  sizes: {
13
16
  sm: {
14
- h: number;
17
+ control: {
18
+ h: number;
19
+ w: number;
20
+ };
21
+ label: {
22
+ size: string;
23
+ };
15
24
  };
16
25
  md: {
17
- h: number;
26
+ control: {
27
+ h: number;
28
+ w: number;
29
+ };
30
+ label: {
31
+ lineHeight: number;
32
+ size: string;
33
+ };
34
+ };
35
+ lg: {
36
+ control: {
37
+ h: number;
38
+ w: number;
39
+ };
40
+ label: {
41
+ size: string;
42
+ };
18
43
  };
19
44
  };
20
45
  variants: {