@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.
- package/avatar/avatar.d.ts +1 -1
- package/avatar/avatar.js +3 -4
- package/avatar/theme.js +5 -5
- package/box/box.d.ts +1 -1
- package/box/box.js +3 -3
- package/button/button.d.ts +1 -1
- package/button/button.js +9 -8
- package/button/buttonGroup.d.ts +1 -1
- package/button/buttonGroup.js +3 -3
- package/button/index.d.ts +1 -0
- package/button/index.js +1 -0
- package/button/theme.js +5 -0
- package/checkbox/checkbox.d.ts +6 -3
- package/checkbox/checkbox.js +31 -17
- package/checkbox/checkbox.types.d.ts +9 -9
- package/checkbox/checkboxGroup.d.ts +6 -0
- package/checkbox/checkboxGroup.js +80 -0
- package/checkbox/checkboxGroup.types.d.ts +12 -0
- package/checkbox/checkboxGroup.types.js +2 -0
- package/checkbox/context.d.ts +4 -0
- package/checkbox/context.js +23 -0
- package/checkbox/index.d.ts +3 -0
- package/checkbox/index.js +3 -0
- package/checkbox/theme.d.ts +29 -4
- package/checkbox/theme.js +30 -4
- package/core/globalStyle.d.ts +1 -1
- package/core/globalStyle.js +3 -2
- package/core/utils.d.ts +8 -3
- package/core/utils.js +52 -5
- package/divider/divider.d.ts +1 -1
- package/divider/divider.js +4 -4
- package/heading/heading.d.ts +1 -1
- package/heading/heading.js +3 -3
- package/icon/helpers.d.ts +3 -0
- package/icon/helpers.js +5 -1
- package/icon/icon.js +3 -2
- package/icon/icon.types.d.ts +16 -2
- package/icon/icons/cui/cuiCheckboxIndeterminate.d.ts +3 -0
- package/icon/icons/cui/cuiCheckboxIndeterminate.js +8 -0
- package/icon/icons/cui/cuiCheckboxSelected.d.ts +3 -0
- package/icon/icons/cui/cuiCheckboxSelected.js +8 -0
- package/icon/icons/cui/cuiCheckboxUnselected.d.ts +3 -0
- package/icon/icons/cui/cuiCheckboxUnselected.js +8 -0
- package/icon/icons/cui/cuiRadioSelected.d.ts +3 -0
- package/icon/icons/cui/cuiRadioSelected.js +8 -0
- package/icon/icons/cui/cuiRadioUnselected.d.ts +3 -0
- package/icon/icons/cui/cuiRadioUnselected.js +8 -0
- package/icon/icons/cul/culCovid.d.ts +1 -1
- package/icon/icons/cul/culCovid.js +1 -1
- package/icon/icons/cul/culDeepSearch.d.ts +1 -1
- package/icon/icons/cul/culDeepSearch.js +1 -1
- package/icon/icons/cul/culDotsMenu.d.ts +1 -1
- package/icon/icons/cul/culDotsMenu.js +1 -1
- package/icon/icons/cul/culGlobePlus.d.ts +1 -1
- package/icon/icons/cul/culGlobePlus.js +1 -1
- package/icon/icons/cul/culListDense.d.ts +1 -1
- package/icon/icons/cul/culListDense.js +1 -1
- package/icon/icons/cul/culMapMarkerStar.d.ts +1 -1
- package/icon/icons/cul/culMapMarkerStar.js +1 -1
- package/icon/icons/cul/culPlusThin.d.ts +1 -1
- package/icon/icons/cul/culPlusThin.js +1 -1
- package/icon/icons/cul/culScreenshot.d.ts +1 -1
- package/icon/icons/cul/culScreenshot.js +1 -1
- package/icon/icons/cul/culScreenshotAlt.d.ts +1 -1
- package/icon/icons/cul/culScreenshotAlt.js +1 -1
- package/icon/icons/cul/culShortcut.d.ts +1 -1
- package/icon/icons/cul/culShortcut.js +1 -1
- package/icon/icons/cul/culTimesThin.d.ts +1 -1
- package/icon/icons/cul/culTimesThin.js +1 -1
- package/icon/icons/cul/culTransformer.d.ts +1 -1
- package/icon/icons/cul/culTransformer.js +1 -1
- package/icon/icons/cul/culUserTransfer.d.ts +1 -1
- package/icon/icons/cul/culUserTransfer.js +1 -1
- package/icon/icons/cul/culVessel.d.ts +1 -1
- package/icon/icons/cul/culVessel.js +1 -1
- package/icon/icons/cul/culVesselGroup.d.ts +1 -1
- package/icon/icons/cul/culVesselGroup.js +1 -1
- package/icon/icons/cus/cusCheckboxSelected.d.ts +1 -1
- package/icon/icons/cus/cusCheckboxSelected.js +1 -1
- package/icon/icons/cus/cusDotFull.d.ts +1 -1
- package/icon/icons/cus/cusDotFull.js +1 -1
- package/icon/icons/cus/cusDotFullAlt.d.ts +1 -1
- package/icon/icons/cus/cusDotFullAlt.js +1 -1
- package/icon/icons/cus/cusDotsMenu.d.ts +1 -1
- package/icon/icons/cus/cusDotsMenu.js +1 -1
- package/icon/icons/cus/cusRadio.d.ts +1 -1
- package/icon/icons/cus/cusRadio.js +1 -1
- package/icon/icons/cus/cusSquareMinus.d.ts +1 -1
- package/icon/icons/cus/cusSquareMinus.js +1 -1
- package/icon/icons/cus/cusTransformer.d.ts +1 -1
- package/icon/icons/cus/cusTransformer.js +1 -1
- package/icon/icons/cus/cusVessel.d.ts +1 -1
- package/icon/icons/cus/cusVessel.js +1 -1
- package/icon/icons/fab/fabApplePay.d.ts +1 -1
- package/icon/icons/fab/fabApplePay.js +1 -1
- package/icon/icons/fab/fabBluetooth.d.ts +1 -1
- package/icon/icons/fab/fabBluetooth.js +1 -1
- package/icon/icons/fab/fabBtc.d.ts +1 -1
- package/icon/icons/fab/fabBtc.js +1 -1
- package/icon/icons/fab/fabCcAmazonPay.d.ts +1 -1
- package/icon/icons/fab/fabCcAmazonPay.js +1 -1
- package/icon/icons/fab/fabCcAmex.d.ts +1 -1
- package/icon/icons/fab/fabCcAmex.js +1 -1
- package/icon/icons/fab/fabCcApplePay.d.ts +1 -1
- package/icon/icons/fab/fabCcApplePay.js +1 -1
- package/icon/icons/fab/fabCcDinersClub.d.ts +1 -1
- package/icon/icons/fab/fabCcDinersClub.js +1 -1
- package/icon/icons/fab/fabCcMastercard.d.ts +1 -1
- package/icon/icons/fab/fabCcMastercard.js +1 -1
- package/icon/icons/fab/fabCcPaypal.d.ts +1 -1
- package/icon/icons/fab/fabCcPaypal.js +1 -1
- package/icon/icons/fab/fabCcVisa.d.ts +1 -1
- package/icon/icons/fab/fabCcVisa.js +1 -1
- package/icon/icons/fab/fabDhl.d.ts +1 -1
- package/icon/icons/fab/fabDhl.js +1 -1
- package/icon/icons/fab/fabEbay.d.ts +1 -1
- package/icon/icons/fab/fabEbay.js +1 -1
- package/icon/icons/fab/fabFacebook.d.ts +1 -1
- package/icon/icons/fab/fabFacebook.js +1 -1
- package/icon/icons/fab/fabFedex.d.ts +1 -1
- package/icon/icons/fab/fabFedex.js +1 -1
- package/icon/icons/fab/fabFirefox.d.ts +1 -1
- package/icon/icons/fab/fabFirefox.js +1 -1
- package/icon/icons/fab/fabGoogle.d.ts +1 -1
- package/icon/icons/fab/fabGoogle.js +1 -1
- package/icon/icons/fab/fabGoogleDrive.d.ts +1 -1
- package/icon/icons/fab/fabGoogleDrive.js +1 -1
- package/icon/icons/fab/fabLinkedinIn.d.ts +1 -1
- package/icon/icons/fab/fabLinkedinIn.js +1 -1
- package/icon/icons/fab/fabMedium.d.ts +1 -1
- package/icon/icons/fab/fabMedium.js +1 -1
- package/icon/icons/fab/fabOsi.d.ts +1 -1
- package/icon/icons/fab/fabOsi.js +1 -1
- package/icon/icons/fab/fabSlack.d.ts +1 -1
- package/icon/icons/fab/fabSlack.js +1 -1
- package/icon/icons/fab/fabTwitter.d.ts +1 -1
- package/icon/icons/fab/fabTwitter.js +1 -1
- package/icon/icons/fab/fabUps.d.ts +1 -1
- package/icon/icons/fab/fabUps.js +1 -1
- package/icon/icons/fal/falAddressBook.d.ts +1 -1
- package/icon/icons/fal/falAddressBook.js +1 -1
- package/icon/icons/fal/falAddressCard.d.ts +1 -1
- package/icon/icons/fal/falAddressCard.js +1 -1
- package/icon/icons/fal/falAnalytics.d.ts +1 -1
- package/icon/icons/fal/falAnalytics.js +1 -1
- package/icon/icons/fal/falAngleDoubleDown.d.ts +1 -1
- package/icon/icons/fal/falAngleDoubleDown.js +1 -1
- package/icon/icons/fal/falAngleDoubleLeft.d.ts +1 -1
- package/icon/icons/fal/falAngleDoubleLeft.js +1 -1
- package/icon/icons/fal/falAngleDoubleRight.d.ts +1 -1
- package/icon/icons/fal/falAngleDoubleRight.js +1 -1
- package/icon/icons/fal/falAngleDoubleUp.d.ts +1 -1
- package/icon/icons/fal/falAngleDoubleUp.js +1 -1
- package/icon/icons/fal/falAngleDown.d.ts +1 -1
- package/icon/icons/fal/falAngleDown.js +1 -1
- package/icon/icons/fal/falAngleLeft.d.ts +1 -1
- package/icon/icons/fal/falAngleLeft.js +1 -1
- package/icon/icons/fal/falAngleRight.d.ts +1 -1
- package/icon/icons/fal/falAngleRight.js +1 -1
- package/icon/icons/fal/falAngleUp.d.ts +1 -1
- package/icon/icons/fal/falAngleUp.js +1 -1
- package/icon/icons/fal/falArrowAltDown.d.ts +1 -1
- package/icon/icons/fal/falArrowAltDown.js +1 -1
- package/icon/icons/fal/falArrowAltLeft.d.ts +1 -1
- package/icon/icons/fal/falArrowAltLeft.js +1 -1
- package/icon/icons/fal/falArrowAltRight.d.ts +1 -1
- package/icon/icons/fal/falArrowAltRight.js +1 -1
- package/icon/icons/fal/falArrowAltUp.d.ts +1 -1
- package/icon/icons/fal/falArrowAltUp.js +1 -1
- package/icon/icons/fal/falArrowCircleDown.d.ts +1 -1
- package/icon/icons/fal/falArrowCircleDown.js +1 -1
- package/icon/icons/fal/falArrowCircleLeft.d.ts +1 -1
- package/icon/icons/fal/falArrowCircleLeft.js +1 -1
- package/icon/icons/fal/falArrowCircleRight.d.ts +1 -1
- package/icon/icons/fal/falArrowCircleRight.js +1 -1
- package/icon/icons/fal/falArrowCircleUp.d.ts +1 -1
- package/icon/icons/fal/falArrowCircleUp.js +1 -1
- package/icon/icons/fal/falArrowDown.d.ts +1 -1
- package/icon/icons/fal/falArrowDown.js +1 -1
- package/icon/icons/fal/falArrowFromBottom.d.ts +1 -1
- package/icon/icons/fal/falArrowFromBottom.js +1 -1
- package/icon/icons/fal/falArrowFromLeft.d.ts +1 -1
- package/icon/icons/fal/falArrowFromLeft.js +1 -1
- package/icon/icons/fal/falArrowFromRight.d.ts +1 -1
- package/icon/icons/fal/falArrowFromRight.js +1 -1
- package/icon/icons/fal/falArrowFromTop.d.ts +1 -1
- package/icon/icons/fal/falArrowFromTop.js +1 -1
- package/icon/icons/fal/falArrowLeft.d.ts +1 -1
- package/icon/icons/fal/falArrowLeft.js +1 -1
- package/icon/icons/fal/falArrowRight.d.ts +1 -1
- package/icon/icons/fal/falArrowRight.js +1 -1
- package/icon/icons/fal/falArrowToBottom.d.ts +1 -1
- package/icon/icons/fal/falArrowToBottom.js +1 -1
- package/icon/icons/fal/falArrowToLeft.d.ts +1 -1
- package/icon/icons/fal/falArrowToLeft.js +1 -1
- package/icon/icons/fal/falArrowToRight.d.ts +1 -1
- package/icon/icons/fal/falArrowToRight.js +1 -1
- package/icon/icons/fal/falArrowToTop.d.ts +1 -1
- package/icon/icons/fal/falArrowToTop.js +1 -1
- package/icon/icons/fal/falArrowUp.d.ts +1 -1
- package/icon/icons/fal/falArrowUp.js +1 -1
- package/icon/icons/fal/falArrows.d.ts +1 -1
- package/icon/icons/fal/falArrows.js +1 -1
- package/icon/icons/fal/falAward.d.ts +1 -1
- package/icon/icons/fal/falAward.js +1 -1
- package/icon/icons/fal/falBan.d.ts +1 -1
- package/icon/icons/fal/falBan.js +1 -1
- package/icon/icons/fal/falBell.d.ts +1 -1
- package/icon/icons/fal/falBell.js +1 -1
- package/icon/icons/fal/falBookOpen.d.ts +1 -1
- package/icon/icons/fal/falBookOpen.js +1 -1
- package/icon/icons/fal/falBroadcastTower.d.ts +1 -1
- package/icon/icons/fal/falBroadcastTower.js +1 -1
- package/icon/icons/fal/falBuilding.d.ts +1 -1
- package/icon/icons/fal/falBuilding.js +1 -1
- package/icon/icons/fal/falBullseye.d.ts +1 -1
- package/icon/icons/fal/falBullseye.js +1 -1
- package/icon/icons/fal/falCalendar.d.ts +1 -1
- package/icon/icons/fal/falCalendar.js +1 -1
- package/icon/icons/fal/falCalendarAlt.d.ts +1 -1
- package/icon/icons/fal/falCalendarAlt.js +1 -1
- package/icon/icons/fal/falCamera.d.ts +1 -1
- package/icon/icons/fal/falCamera.js +1 -1
- package/icon/icons/fal/falCaretDown.d.ts +1 -1
- package/icon/icons/fal/falCaretDown.js +1 -1
- package/icon/icons/fal/falCaretLeft.d.ts +1 -1
- package/icon/icons/fal/falCaretLeft.js +1 -1
- package/icon/icons/fal/falCaretRight.d.ts +1 -1
- package/icon/icons/fal/falCaretRight.js +1 -1
- package/icon/icons/fal/falCaretUp.d.ts +1 -1
- package/icon/icons/fal/falCaretUp.js +1 -1
- package/icon/icons/fal/falCauldron.d.ts +1 -1
- package/icon/icons/fal/falCauldron.js +1 -1
- package/icon/icons/fal/falChartArea.d.ts +1 -1
- package/icon/icons/fal/falChartArea.js +1 -1
- package/icon/icons/fal/falChartBar.d.ts +1 -1
- package/icon/icons/fal/falChartBar.js +1 -1
- package/icon/icons/fal/falChartLine.d.ts +1 -1
- package/icon/icons/fal/falChartLine.js +1 -1
- package/icon/icons/fal/falChartLineDown.d.ts +1 -1
- package/icon/icons/fal/falChartLineDown.js +1 -1
- package/icon/icons/fal/falChartNetwork.d.ts +1 -1
- package/icon/icons/fal/falChartNetwork.js +1 -1
- package/icon/icons/fal/falChartPie.d.ts +1 -1
- package/icon/icons/fal/falChartPie.js +1 -1
- package/icon/icons/fal/falChartPieAlt.d.ts +1 -1
- package/icon/icons/fal/falChartPieAlt.js +1 -1
- package/icon/icons/fal/falChartScatter.d.ts +1 -1
- package/icon/icons/fal/falChartScatter.js +1 -1
- package/icon/icons/fal/falCheck.d.ts +1 -1
- package/icon/icons/fal/falCheck.js +1 -1
- package/icon/icons/fal/falCheckCircle.d.ts +1 -1
- package/icon/icons/fal/falCheckCircle.js +1 -1
- package/icon/icons/fal/falCheckSquare.d.ts +1 -1
- package/icon/icons/fal/falCheckSquare.js +1 -1
- package/icon/icons/fal/falChevronCircleDown.d.ts +1 -1
- package/icon/icons/fal/falChevronCircleDown.js +1 -1
- package/icon/icons/fal/falChevronCircleLeft.d.ts +1 -1
- package/icon/icons/fal/falChevronCircleLeft.js +1 -1
- package/icon/icons/fal/falChevronCircleRight.d.ts +1 -1
- package/icon/icons/fal/falChevronCircleRight.js +1 -1
- package/icon/icons/fal/falChevronCircleUp.d.ts +1 -1
- package/icon/icons/fal/falChevronCircleUp.js +1 -1
- package/icon/icons/fal/falChevronDoubleDown.d.ts +1 -1
- package/icon/icons/fal/falChevronDoubleDown.js +1 -1
- package/icon/icons/fal/falChevronDoubleLeft.d.ts +1 -1
- package/icon/icons/fal/falChevronDoubleLeft.js +1 -1
- package/icon/icons/fal/falChevronDoubleRight.d.ts +1 -1
- package/icon/icons/fal/falChevronDoubleRight.js +1 -1
- package/icon/icons/fal/falChevronDoubleUp.d.ts +1 -1
- package/icon/icons/fal/falChevronDoubleUp.js +1 -1
- package/icon/icons/fal/falChevronDown.d.ts +1 -1
- package/icon/icons/fal/falChevronDown.js +1 -1
- package/icon/icons/fal/falChevronLeft.d.ts +1 -1
- package/icon/icons/fal/falChevronLeft.js +1 -1
- package/icon/icons/fal/falChevronRight.d.ts +1 -1
- package/icon/icons/fal/falChevronRight.js +1 -1
- package/icon/icons/fal/falChevronUp.d.ts +1 -1
- package/icon/icons/fal/falChevronUp.js +1 -1
- package/icon/icons/fal/falCircle.d.ts +1 -1
- package/icon/icons/fal/falCircle.js +1 -1
- package/icon/icons/fal/falCloud.d.ts +1 -1
- package/icon/icons/fal/falCloud.js +1 -1
- package/icon/icons/fal/falCloudShowersHeavy.d.ts +1 -1
- package/icon/icons/fal/falCloudShowersHeavy.js +1 -1
- package/icon/icons/fal/falCloudSnow.d.ts +1 -1
- package/icon/icons/fal/falCloudSnow.js +1 -1
- package/icon/icons/fal/falCloudSun.d.ts +1 -1
- package/icon/icons/fal/falCloudSun.js +1 -1
- package/icon/icons/fal/falCloudSunRain.d.ts +1 -1
- package/icon/icons/fal/falCloudSunRain.js +1 -1
- package/icon/icons/fal/falCloudUpload.d.ts +1 -1
- package/icon/icons/fal/falCloudUpload.js +1 -1
- package/icon/icons/fal/falCode.d.ts +1 -1
- package/icon/icons/fal/falCode.js +1 -1
- package/icon/icons/fal/falCog.d.ts +1 -1
- package/icon/icons/fal/falCog.js +1 -1
- package/icon/icons/fal/falCogs.d.ts +1 -1
- package/icon/icons/fal/falCogs.js +1 -1
- package/icon/icons/fal/falComment.d.ts +1 -1
- package/icon/icons/fal/falComment.js +1 -1
- package/icon/icons/fal/falCommentAlt.d.ts +1 -1
- package/icon/icons/fal/falCommentAlt.js +1 -1
- package/icon/icons/fal/falCompressAlt.d.ts +1 -1
- package/icon/icons/fal/falCompressAlt.js +1 -1
- package/icon/icons/fal/falCopy.d.ts +1 -1
- package/icon/icons/fal/falCopy.js +1 -1
- package/icon/icons/fal/falCreditCard.d.ts +1 -1
- package/icon/icons/fal/falCreditCard.js +1 -1
- package/icon/icons/fal/falDatabase.d.ts +1 -1
- package/icon/icons/fal/falDatabase.js +1 -1
- package/icon/icons/fal/falDotCircle.d.ts +1 -1
- package/icon/icons/fal/falDotCircle.js +1 -1
- package/icon/icons/fal/falDownload.d.ts +1 -1
- package/icon/icons/fal/falDownload.js +1 -1
- package/icon/icons/fal/falEdit.d.ts +1 -1
- package/icon/icons/fal/falEdit.js +1 -1
- package/icon/icons/fal/falEllipsisH.d.ts +1 -1
- package/icon/icons/fal/falEllipsisH.js +1 -1
- package/icon/icons/fal/falEllipsisV.d.ts +1 -1
- package/icon/icons/fal/falEllipsisV.js +1 -1
- package/icon/icons/fal/falEnvelope.d.ts +1 -1
- package/icon/icons/fal/falEnvelope.js +1 -1
- package/icon/icons/fal/falExchange.d.ts +1 -1
- package/icon/icons/fal/falExchange.js +1 -1
- package/icon/icons/fal/falExclamationCircle.d.ts +1 -1
- package/icon/icons/fal/falExclamationCircle.js +1 -1
- package/icon/icons/fal/falExclamationTriangle.d.ts +1 -1
- package/icon/icons/fal/falExclamationTriangle.js +1 -1
- package/icon/icons/fal/falExpandAlt.d.ts +1 -1
- package/icon/icons/fal/falExpandAlt.js +1 -1
- package/icon/icons/fal/falExternalLink.d.ts +1 -1
- package/icon/icons/fal/falExternalLink.js +1 -1
- package/icon/icons/fal/falEye.d.ts +1 -1
- package/icon/icons/fal/falEye.js +1 -1
- package/icon/icons/fal/falEyeSlash.d.ts +1 -1
- package/icon/icons/fal/falEyeSlash.js +1 -1
- package/icon/icons/fal/falFile.d.ts +1 -1
- package/icon/icons/fal/falFile.js +1 -1
- package/icon/icons/fal/falFileAlt.d.ts +1 -1
- package/icon/icons/fal/falFileAlt.js +1 -1
- package/icon/icons/fal/falFileArchive.d.ts +1 -1
- package/icon/icons/fal/falFileArchive.js +1 -1
- package/icon/icons/fal/falFileAudio.d.ts +1 -1
- package/icon/icons/fal/falFileAudio.js +1 -1
- package/icon/icons/fal/falFileCertificate.d.ts +1 -1
- package/icon/icons/fal/falFileCertificate.js +1 -1
- package/icon/icons/fal/falFileChartLine.d.ts +1 -1
- package/icon/icons/fal/falFileChartLine.js +1 -1
- package/icon/icons/fal/falFileChartPie.d.ts +1 -1
- package/icon/icons/fal/falFileChartPie.js +1 -1
- package/icon/icons/fal/falFileCheck.d.ts +1 -1
- package/icon/icons/fal/falFileCheck.js +1 -1
- package/icon/icons/fal/falFileCode.d.ts +1 -1
- package/icon/icons/fal/falFileCode.js +1 -1
- package/icon/icons/fal/falFileCsv.d.ts +1 -1
- package/icon/icons/fal/falFileCsv.js +1 -1
- package/icon/icons/fal/falFileEdit.d.ts +1 -1
- package/icon/icons/fal/falFileEdit.js +1 -1
- package/icon/icons/fal/falFileExcel.d.ts +1 -1
- package/icon/icons/fal/falFileExcel.js +1 -1
- package/icon/icons/fal/falFileImage.d.ts +1 -1
- package/icon/icons/fal/falFileImage.js +1 -1
- package/icon/icons/fal/falFilePdf.d.ts +1 -1
- package/icon/icons/fal/falFilePdf.js +1 -1
- package/icon/icons/fal/falFilePlus.d.ts +1 -1
- package/icon/icons/fal/falFilePlus.js +1 -1
- package/icon/icons/fal/falFilePowerpoint.d.ts +1 -1
- package/icon/icons/fal/falFilePowerpoint.js +1 -1
- package/icon/icons/fal/falFileSpreadsheet.d.ts +1 -1
- package/icon/icons/fal/falFileSpreadsheet.js +1 -1
- package/icon/icons/fal/falFileVideo.d.ts +1 -1
- package/icon/icons/fal/falFileVideo.js +1 -1
- package/icon/icons/fal/falFileWord.d.ts +1 -1
- package/icon/icons/fal/falFileWord.js +1 -1
- package/icon/icons/fal/falFilter.d.ts +1 -1
- package/icon/icons/fal/falFilter.js +1 -1
- package/icon/icons/fal/falFlag.d.ts +1 -1
- package/icon/icons/fal/falFlag.js +1 -1
- package/icon/icons/fal/falFolder.d.ts +1 -1
- package/icon/icons/fal/falFolder.js +1 -1
- package/icon/icons/fal/falFolderOpen.d.ts +1 -1
- package/icon/icons/fal/falFolderOpen.js +1 -1
- package/icon/icons/fal/falFolderPlus.d.ts +1 -1
- package/icon/icons/fal/falFolderPlus.js +1 -1
- package/icon/icons/fal/falFolders.d.ts +1 -1
- package/icon/icons/fal/falFolders.js +1 -1
- package/icon/icons/fal/falGlassesAlt.d.ts +1 -1
- package/icon/icons/fal/falGlassesAlt.js +1 -1
- package/icon/icons/fal/falGlobe.d.ts +1 -1
- package/icon/icons/fal/falGlobe.js +1 -1
- package/icon/icons/fal/falHome.d.ts +1 -1
- package/icon/icons/fal/falHome.js +1 -1
- package/icon/icons/fal/falHourglass.d.ts +1 -1
- package/icon/icons/fal/falHourglass.js +1 -1
- package/icon/icons/fal/falImage.d.ts +1 -1
- package/icon/icons/fal/falImage.js +1 -1
- package/icon/icons/fal/falInfoCircle.d.ts +1 -1
- package/icon/icons/fal/falInfoCircle.js +1 -1
- package/icon/icons/fal/falKey.d.ts +1 -1
- package/icon/icons/fal/falKey.js +1 -1
- package/icon/icons/fal/falLayerPlus.d.ts +1 -1
- package/icon/icons/fal/falLayerPlus.js +1 -1
- package/icon/icons/fal/falLink.d.ts +1 -1
- package/icon/icons/fal/falLink.js +1 -1
- package/icon/icons/fal/falList.d.ts +1 -1
- package/icon/icons/fal/falList.js +1 -1
- package/icon/icons/fal/falLockAlt.d.ts +1 -1
- package/icon/icons/fal/falLockAlt.js +1 -1
- package/icon/icons/fal/falLongArrowDown.d.ts +1 -1
- package/icon/icons/fal/falLongArrowDown.js +1 -1
- package/icon/icons/fal/falLongArrowLeft.d.ts +1 -1
- package/icon/icons/fal/falLongArrowLeft.js +1 -1
- package/icon/icons/fal/falLongArrowRight.d.ts +1 -1
- package/icon/icons/fal/falLongArrowRight.js +1 -1
- package/icon/icons/fal/falLongArrowUp.d.ts +1 -1
- package/icon/icons/fal/falLongArrowUp.js +1 -1
- package/icon/icons/fal/falMap.d.ts +1 -1
- package/icon/icons/fal/falMap.js +1 -1
- package/icon/icons/fal/falMapMarked.d.ts +1 -1
- package/icon/icons/fal/falMapMarked.js +1 -1
- package/icon/icons/fal/falMapMarkedAlt.d.ts +1 -1
- package/icon/icons/fal/falMapMarkedAlt.js +1 -1
- package/icon/icons/fal/falMapMarker.d.ts +1 -1
- package/icon/icons/fal/falMapMarker.js +1 -1
- package/icon/icons/fal/falMapMarkerAlt.d.ts +1 -1
- package/icon/icons/fal/falMapMarkerAlt.js +1 -1
- package/icon/icons/fal/falMapMarkerAltSlash.d.ts +1 -1
- package/icon/icons/fal/falMapMarkerAltSlash.js +1 -1
- package/icon/icons/fal/falMapMarkerCheck.d.ts +1 -1
- package/icon/icons/fal/falMapMarkerCheck.js +1 -1
- package/icon/icons/fal/falMapMarkerExclamation.d.ts +1 -1
- package/icon/icons/fal/falMapMarkerExclamation.js +1 -1
- package/icon/icons/fal/falMinus.d.ts +1 -1
- package/icon/icons/fal/falMinus.js +1 -1
- package/icon/icons/fal/falPause.d.ts +1 -1
- package/icon/icons/fal/falPause.js +1 -1
- package/icon/icons/fal/falPauseCircle.d.ts +1 -1
- package/icon/icons/fal/falPauseCircle.js +1 -1
- package/icon/icons/fal/falPen.d.ts +1 -1
- package/icon/icons/fal/falPen.js +1 -1
- package/icon/icons/fal/falPlay.d.ts +1 -1
- package/icon/icons/fal/falPlay.js +1 -1
- package/icon/icons/fal/falPlayCircle.d.ts +1 -1
- package/icon/icons/fal/falPlayCircle.js +1 -1
- package/icon/icons/fal/falPlug.d.ts +1 -1
- package/icon/icons/fal/falPlug.js +1 -1
- package/icon/icons/fal/falPlus.d.ts +1 -1
- package/icon/icons/fal/falPlus.js +1 -1
- package/icon/icons/fal/falPlusCircle.d.ts +1 -1
- package/icon/icons/fal/falPlusCircle.js +1 -1
- package/icon/icons/fal/falPlusSquare.d.ts +1 -1
- package/icon/icons/fal/falPlusSquare.js +1 -1
- package/icon/icons/fal/falPrint.d.ts +1 -1
- package/icon/icons/fal/falPrint.js +1 -1
- package/icon/icons/fal/falPuzzlePiece.d.ts +1 -1
- package/icon/icons/fal/falPuzzlePiece.js +1 -1
- package/icon/icons/fal/falReceipt.d.ts +1 -1
- package/icon/icons/fal/falReceipt.js +1 -1
- package/icon/icons/fal/falRedo.d.ts +1 -1
- package/icon/icons/fal/falRedo.js +1 -1
- package/icon/icons/fal/falSave.d.ts +1 -1
- package/icon/icons/fal/falSave.js +1 -1
- package/icon/icons/fal/falSearch.d.ts +1 -1
- package/icon/icons/fal/falSearch.js +1 -1
- package/icon/icons/fal/falSearchPlus.d.ts +1 -1
- package/icon/icons/fal/falSearchPlus.js +1 -1
- package/icon/icons/fal/falServer.d.ts +1 -1
- package/icon/icons/fal/falServer.js +1 -1
- package/icon/icons/fal/falShare.d.ts +1 -1
- package/icon/icons/fal/falShare.js +1 -1
- package/icon/icons/fal/falShareAll.d.ts +1 -1
- package/icon/icons/fal/falShareAll.js +1 -1
- package/icon/icons/fal/falShareAlt.d.ts +1 -1
- package/icon/icons/fal/falShareAlt.js +1 -1
- package/icon/icons/fal/falShieldAlt.d.ts +1 -1
- package/icon/icons/fal/falShieldAlt.js +1 -1
- package/icon/icons/fal/falShieldCheck.d.ts +1 -1
- package/icon/icons/fal/falShieldCheck.js +1 -1
- package/icon/icons/fal/falShip.d.ts +1 -1
- package/icon/icons/fal/falShip.js +1 -1
- package/icon/icons/fal/falShoppingBasket.d.ts +1 -1
- package/icon/icons/fal/falShoppingBasket.js +1 -1
- package/icon/icons/fal/falSignInAlt.d.ts +1 -1
- package/icon/icons/fal/falSignInAlt.js +1 -1
- package/icon/icons/fal/falSignOut.d.ts +1 -1
- package/icon/icons/fal/falSignOut.js +1 -1
- package/icon/icons/fal/falSignOutAlt.d.ts +1 -1
- package/icon/icons/fal/falSignOutAlt.js +1 -1
- package/icon/icons/fal/falSlidersV.d.ts +1 -1
- package/icon/icons/fal/falSlidersV.js +1 -1
- package/icon/icons/fal/falSnowBlowing.d.ts +1 -1
- package/icon/icons/fal/falSnowBlowing.js +1 -1
- package/icon/icons/fal/falSnowflake.d.ts +1 -1
- package/icon/icons/fal/falSnowflake.js +1 -1
- package/icon/icons/fal/falSolarPanel.d.ts +1 -1
- package/icon/icons/fal/falSolarPanel.js +1 -1
- package/icon/icons/fal/falSort.d.ts +1 -1
- package/icon/icons/fal/falSort.js +1 -1
- package/icon/icons/fal/falSpinner.d.ts +1 -1
- package/icon/icons/fal/falSpinner.js +1 -1
- package/icon/icons/fal/falSquare.d.ts +1 -1
- package/icon/icons/fal/falSquare.js +1 -1
- package/icon/icons/fal/falStepForward.d.ts +1 -1
- package/icon/icons/fal/falStepForward.js +1 -1
- package/icon/icons/fal/falStop.d.ts +1 -1
- package/icon/icons/fal/falStop.js +1 -1
- package/icon/icons/fal/falStopCircle.d.ts +1 -1
- package/icon/icons/fal/falStopCircle.js +1 -1
- package/icon/icons/fal/falStopwatch.d.ts +1 -1
- package/icon/icons/fal/falStopwatch.js +1 -1
- package/icon/icons/fal/falSuitcase.d.ts +1 -1
- package/icon/icons/fal/falSuitcase.js +1 -1
- package/icon/icons/fal/falSun.d.ts +1 -1
- package/icon/icons/fal/falSun.js +1 -1
- package/icon/icons/fal/falSync.d.ts +1 -1
- package/icon/icons/fal/falSync.js +1 -1
- package/icon/icons/fal/falTachometer.d.ts +1 -1
- package/icon/icons/fal/falTachometer.js +1 -1
- package/icon/icons/fal/falTemperatureHigh.d.ts +1 -1
- package/icon/icons/fal/falTemperatureHigh.js +1 -1
- package/icon/icons/fal/falTh.d.ts +1 -1
- package/icon/icons/fal/falTh.js +1 -1
- package/icon/icons/fal/falThLarge.d.ts +1 -1
- package/icon/icons/fal/falThLarge.js +1 -1
- package/icon/icons/fal/falThList.d.ts +1 -1
- package/icon/icons/fal/falThList.js +1 -1
- package/icon/icons/fal/falTimes.d.ts +1 -1
- package/icon/icons/fal/falTimes.js +1 -1
- package/icon/icons/fal/falTimesCircle.d.ts +1 -1
- package/icon/icons/fal/falTimesCircle.js +1 -1
- package/icon/icons/fal/falToggleOff.d.ts +1 -1
- package/icon/icons/fal/falToggleOff.js +1 -1
- package/icon/icons/fal/falToggleOn.d.ts +1 -1
- package/icon/icons/fal/falToggleOn.js +1 -1
- package/icon/icons/fal/falTrashAlt.d.ts +1 -1
- package/icon/icons/fal/falTrashAlt.js +1 -1
- package/icon/icons/fal/falUnlockAlt.d.ts +1 -1
- package/icon/icons/fal/falUnlockAlt.js +1 -1
- package/icon/icons/fal/falUser.d.ts +1 -1
- package/icon/icons/fal/falUser.js +1 -1
- package/icon/icons/fal/falUserChart.d.ts +1 -1
- package/icon/icons/fal/falUserChart.js +1 -1
- package/icon/icons/fal/falUserCircle.d.ts +1 -1
- package/icon/icons/fal/falUserCircle.js +1 -1
- package/icon/icons/fal/falUserCog.d.ts +1 -1
- package/icon/icons/fal/falUserCog.js +1 -1
- package/icon/icons/fal/falUserEdit.d.ts +1 -1
- package/icon/icons/fal/falUserEdit.js +1 -1
- package/icon/icons/fal/falUserFriends.d.ts +1 -1
- package/icon/icons/fal/falUserFriends.js +1 -1
- package/icon/icons/fal/falUserPlus.d.ts +1 -1
- package/icon/icons/fal/falUserPlus.js +1 -1
- package/icon/icons/fal/falUserShield.d.ts +1 -1
- package/icon/icons/fal/falUserShield.js +1 -1
- package/icon/icons/fal/falUserTimes.d.ts +1 -1
- package/icon/icons/fal/falUserTimes.js +1 -1
- package/icon/icons/fal/falUsers.d.ts +1 -1
- package/icon/icons/fal/falUsers.js +1 -1
- package/icon/icons/fal/falUsersClass.d.ts +1 -1
- package/icon/icons/fal/falUsersClass.js +1 -1
- package/icon/icons/fal/falWater.d.ts +1 -1
- package/icon/icons/fal/falWater.js +1 -1
- package/icon/icons/fal/falWind.d.ts +1 -1
- package/icon/icons/fal/falWind.js +1 -1
- package/icon/icons/fal/falWindTurbine.d.ts +1 -1
- package/icon/icons/fal/falWindTurbine.js +1 -1
- package/icon/icons/fal/falWrench.d.ts +1 -1
- package/icon/icons/fal/falWrench.js +1 -1
- package/icon/icons/fas/fasCaretDown.d.ts +1 -1
- package/icon/icons/fas/fasCaretDown.js +1 -1
- package/icon/icons/fas/fasCaretLeft.d.ts +1 -1
- package/icon/icons/fas/fasCaretLeft.js +1 -1
- package/icon/icons/fas/fasCaretRight.d.ts +1 -1
- package/icon/icons/fas/fasCaretRight.js +1 -1
- package/icon/icons/fas/fasCaretUp.d.ts +1 -1
- package/icon/icons/fas/fasCaretUp.js +1 -1
- package/icon/icons/fas/fasDiamond.d.ts +1 -1
- package/icon/icons/fas/fasDiamond.js +1 -1
- package/icon/icons/fas/fasFolder.d.ts +1 -1
- package/icon/icons/fas/fasFolder.js +1 -1
- package/icon/icons/fas/fasMapMarkerAlt.d.ts +1 -1
- package/icon/icons/fas/fasMapMarkerAlt.js +1 -1
- package/icon/icons/fas/fasMapMarkerExclamation.d.ts +1 -1
- package/icon/icons/fas/fasMapMarkerExclamation.js +1 -1
- package/icon/icons/fas/fasQuoteLeft.d.ts +1 -1
- package/icon/icons/fas/fasQuoteLeft.js +1 -1
- package/icon/icons/fas/fasQuoteRight.d.ts +1 -1
- package/icon/icons/fas/fasQuoteRight.js +1 -1
- package/icon/icons/fas/fasSolarPanel.d.ts +1 -1
- package/icon/icons/fas/fasSolarPanel.js +1 -1
- package/icon/icons/fas/fasSort.d.ts +1 -1
- package/icon/icons/fas/fasSort.js +1 -1
- package/icon/icons/fas/fasStar.d.ts +1 -1
- package/icon/icons/fas/fasStar.js +1 -1
- package/icon/icons/fas/fasWindTurbine.d.ts +1 -1
- package/icon/icons/fas/fasWindTurbine.js +1 -1
- package/icon/icons/types.d.ts +1 -13
- package/index.d.ts +3 -1
- package/index.js +3 -1
- package/input/input.d.ts +6 -5
- package/input/input.js +11 -13
- package/input/input.types.d.ts +12 -13
- package/input/theme.d.ts +5 -0
- package/input/theme.js +10 -5
- package/label/label.d.ts +1 -1
- package/label/label.js +3 -4
- package/label/theme.js +11 -11
- package/link/link.d.ts +1 -1
- package/link/link.js +4 -4
- package/link/link.types.d.ts +1 -0
- package/link/theme.d.ts +27 -3
- package/link/theme.js +30 -3
- package/list/context.js +1 -1
- package/list/index.d.ts +1 -0
- package/list/index.js +1 -0
- package/list/list.d.ts +1 -1
- package/list/list.js +3 -3
- package/list/list.types.d.ts +1 -0
- package/list/listItem.d.ts +1 -1
- package/list/listItem.js +9 -9
- package/list/listItem.types.d.ts +3 -1
- package/list/theme.d.ts +0 -1
- package/list/theme.js +1 -5
- package/p/p.d.ts +1 -1
- package/p/p.js +3 -3
- package/package.json +1 -1
- package/radio/context.d.ts +4 -0
- package/radio/context.js +23 -0
- package/radio/index.d.ts +6 -0
- package/radio/index.js +23 -0
- package/radio/radio.d.ts +10 -0
- package/radio/radio.js +74 -0
- package/radio/radio.types.d.ts +23 -0
- package/radio/radio.types.js +2 -0
- package/radio/radioGroup.d.ts +6 -0
- package/radio/radioGroup.js +99 -0
- package/radio/radioGroup.types.d.ts +13 -0
- package/radio/radioGroup.types.js +2 -0
- package/radio/theme.d.ts +49 -0
- package/radio/theme.js +57 -0
- package/skeleton/skeleton.d.ts +1 -1
- package/skeleton/skeleton.js +4 -4
- package/skeleton/skeleton.types.d.ts +2 -2
- package/styles/animations.d.ts +10 -0
- package/styles/animations.js +9 -0
- package/styles/colors.d.ts +171 -0
- package/styles/colors.js +96 -0
- package/styles/durations.d.ts +7 -0
- package/styles/durations.js +8 -0
- package/styles/fontFaces.d.ts +2 -0
- package/styles/fontFaces.js +4 -0
- package/styles/fontSizes.d.ts +7 -0
- package/styles/fontSizes.js +8 -0
- package/styles/fontWeights.d.ts +7 -0
- package/styles/fontWeights.js +8 -0
- package/styles/fonts.d.ts +4 -2
- package/styles/fonts.js +3 -3
- package/styles/index.d.ts +10 -0
- package/styles/index.js +20 -1
- package/styles/radii.d.ts +7 -0
- package/styles/radii.js +8 -0
- package/styles/screens.d.ts +8 -0
- package/styles/screens.js +9 -0
- package/styles/shadows.d.ts +9 -0
- package/styles/shadows.js +11 -0
- package/svg/svg.d.ts +1 -1
- package/svg/svg.js +5 -5
- package/svg/svg.types.d.ts +3 -3
- package/switch/context.d.ts +4 -0
- package/switch/context.js +23 -0
- package/switch/index.d.ts +6 -0
- package/switch/index.js +23 -0
- package/switch/switch.d.ts +6 -0
- package/switch/switch.js +113 -0
- package/switch/switch.types.d.ts +20 -0
- package/switch/switch.types.js +2 -0
- package/switch/switchButton.d.ts +13 -0
- package/switch/switchButton.js +140 -0
- package/switch/switchButton.types.d.ts +24 -0
- package/switch/switchButton.types.js +2 -0
- package/switch/switchLabel.d.ts +3 -0
- package/switch/switchLabel.js +30 -0
- package/switch/theme.d.ts +87 -0
- package/switch/theme.js +113 -0
- package/system/typography.d.ts +14 -9
- package/t/t.d.ts +1 -1
- package/t/t.js +7 -5
- package/t/t.types.d.ts +4 -2
- package/textarea/textarea.d.ts +1 -1
- package/textarea/textarea.js +5 -7
- package/textarea/theme.js +4 -4
- package/theme/components.d.ts +185 -18
- package/theme/components.js +26 -24
- package/theme/defaultTheme.d.ts +201 -33
- package/theme/foundations.d.ts +143 -0
- package/theme/foundations.js +20 -0
- package/utils/object.d.ts +1 -1
package/list/listItem.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ListItemProps, ListItemStyleProps } from './listItem.types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ListItemBase: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {
|
|
3
3
|
[x: string]: {};
|
|
4
4
|
} & ListItemStyleProps, never>;
|
|
5
5
|
export declare const ListItem: import("styled-components").StyledComponent<"li", never, ListItemProps, never>;
|
package/list/listItem.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.ListItem = exports.
|
|
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"));
|
|
@@ -37,19 +37,19 @@ var context_1 = require("./context");
|
|
|
37
37
|
var core_1 = require("../core");
|
|
38
38
|
var utils_1 = require("../utils");
|
|
39
39
|
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.
|
|
40
|
+
exports.ListItemBase = styled_components_2.default.li.withConfig({
|
|
41
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:
|
|
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: 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: 1.1;\n\toutline: none;\n\ttransition: all 0s ease-in-out;\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
43
|
exports.ListItem = core_1.forwardRef(function (props, ref) {
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var className =
|
|
47
|
-
var
|
|
44
|
+
var listProps = context_1.useList();
|
|
45
|
+
var mergedProps = __assign(__assign({}, listProps), props);
|
|
46
|
+
var className = mergedProps.className, disabled = mergedProps.disabled, _a = mergedProps.isInteractive, isInteractive = _a === void 0 ? props.onClick !== undefined : _a, isSelected = mergedProps.isSelected, onClick = mergedProps.onClick, rest = __rest(mergedProps, ["className", "disabled", "isInteractive", "isSelected", "onClick"]);
|
|
47
|
+
var styles = core_1.useStyleConfig('List', mergedProps);
|
|
48
|
+
var _b = styles.item, activeBg = _b.activeBg, hoverBg = _b.hoverBg, hoverColor = _b.hoverColor, itemStyles = __rest(_b, ["activeBg", "hoverBg", "hoverColor"]);
|
|
48
49
|
var interactiveProps = !disabled && isInteractive
|
|
49
50
|
? {
|
|
50
51
|
cursor: 'pointer',
|
|
51
52
|
focusVisibleRing: 3,
|
|
52
|
-
focusVisibleRingColor: 'blue.50',
|
|
53
53
|
hoverBg: hoverBg,
|
|
54
54
|
activeBg: activeBg,
|
|
55
55
|
hoverColor: hoverColor,
|
|
@@ -61,7 +61,7 @@ exports.ListItem = core_1.forwardRef(function (props, ref) {
|
|
|
61
61
|
bg: isSelected ? hoverBg : undefined,
|
|
62
62
|
color: isSelected ? hoverColor : undefined
|
|
63
63
|
});
|
|
64
|
-
return (react_1.default.createElement(exports.
|
|
64
|
+
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)));
|
|
65
65
|
});
|
|
66
66
|
exports.ListItem.displayName = 'ListItem';
|
|
67
67
|
exports.default = exports.ListItem;
|
package/list/listItem.types.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { BackgroundColorProps, FlexboxesProps, InteractivityProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps } from '../system';
|
|
3
|
-
|
|
3
|
+
import { ThemingProps } from '../theme';
|
|
4
|
+
export interface ListItemProps extends Omit<HTMLAttributes<HTMLLIElement>, 'color'>, ListItemStyleProps, ThemingProps<'List'> {
|
|
5
|
+
colorScheme?: 'blue' | 'grey';
|
|
4
6
|
disabled?: boolean;
|
|
5
7
|
isInteractive?: boolean;
|
|
6
8
|
isSelected?: boolean;
|
package/list/theme.d.ts
CHANGED
package/list/theme.js
CHANGED
|
@@ -7,16 +7,12 @@ function variantDefault(props) {
|
|
|
7
7
|
borderRadius: 'md',
|
|
8
8
|
hoverBg: c + ".20"
|
|
9
9
|
};
|
|
10
|
-
var listStyles = {
|
|
11
|
-
px: 1
|
|
12
|
-
};
|
|
13
10
|
// Special cases
|
|
14
11
|
if (c === 'blue') {
|
|
15
12
|
itemStyles.hoverColor = 'blue.80';
|
|
16
13
|
}
|
|
17
14
|
return {
|
|
18
|
-
item: itemStyles
|
|
19
|
-
list: listStyles
|
|
15
|
+
item: itemStyles
|
|
20
16
|
};
|
|
21
17
|
}
|
|
22
18
|
var defaultProps = {
|
package/p/p.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PProps, PStyleProps } from './p.types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const PBase: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {
|
|
3
3
|
[x: string]: {};
|
|
4
4
|
} & PStyleProps, never>;
|
|
5
5
|
export declare const P: import("styled-components").StyledComponent<"p", never, PProps, never>;
|
package/p/p.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.P = exports.
|
|
32
|
+
exports.P = exports.PBase = 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,7 +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(system_1.isTruncated, system_1.maxLines, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
|
|
40
|
-
exports.
|
|
40
|
+
exports.PBase = styled_components_2.default.p.withConfig({
|
|
41
41
|
shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
|
|
42
42
|
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\ttransition: all 0s ease-in-out;\n\n\t", "\n"], ["\n\ttransition: all 0s ease-in-out;\n\n\t", "\n"])), generator);
|
|
43
43
|
exports.P = core_1.forwardRef(function (props, ref) {
|
|
@@ -49,7 +49,7 @@ exports.P = core_1.forwardRef(function (props, ref) {
|
|
|
49
49
|
textDecoration: decoration,
|
|
50
50
|
textTransform: casing
|
|
51
51
|
});
|
|
52
|
-
return (react_1.default.createElement(exports.
|
|
52
|
+
return (react_1.default.createElement(exports.PBase, __assign({ className: utils_1.cs('vui-p', className), ref: ref, transitionDuration: "fast" }, styles, aliasedProps, rest)));
|
|
53
53
|
});
|
|
54
54
|
exports.P.displayName = 'P';
|
|
55
55
|
exports.default = exports.P;
|
package/package.json
CHANGED
package/radio/context.js
ADDED
|
@@ -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.useRadioGroup = exports.RadioGroupProvider = void 0;
|
|
20
|
+
var core_1 = require("../core");
|
|
21
|
+
var _a = __read(core_1.createContext({ isOptional: true }), 2), RadioGroupProvider = _a[0], useRadioGroup = _a[1];
|
|
22
|
+
exports.RadioGroupProvider = RadioGroupProvider;
|
|
23
|
+
exports.useRadioGroup = useRadioGroup;
|
package/radio/index.d.ts
ADDED
package/radio/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.default = void 0;
|
|
17
|
+
__exportStar(require("./context"), exports);
|
|
18
|
+
__exportStar(require("./radio"), exports);
|
|
19
|
+
__exportStar(require("./radio.types"), exports);
|
|
20
|
+
__exportStar(require("./radioGroup"), exports);
|
|
21
|
+
__exportStar(require("./radioGroup.types"), exports);
|
|
22
|
+
var radio_1 = require("./radio");
|
|
23
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(radio_1).default; } });
|
package/radio/radio.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RadioControlStyleProps, RadioProps, RadioStyleProps } from './radio.types';
|
|
2
|
+
export declare const RadioInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const RadioBase: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {
|
|
4
|
+
[x: string]: {};
|
|
5
|
+
} & RadioStyleProps, never>;
|
|
6
|
+
export declare const RadioControl: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
|
|
7
|
+
[x: string]: {};
|
|
8
|
+
} & RadioControlStyleProps, never>;
|
|
9
|
+
export declare const Radio: import("styled-components").StyledComponent<"span", never, RadioProps, never>;
|
|
10
|
+
export default Radio;
|
package/radio/radio.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
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 __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.Radio = exports.RadioControl = exports.RadioBase = exports.RadioInput = void 0;
|
|
33
|
+
var styled_components_1 = require("@xstyled/styled-components");
|
|
34
|
+
var react_1 = __importDefault(require("react"));
|
|
35
|
+
var styled_components_2 = __importDefault(require("styled-components"));
|
|
36
|
+
var context_1 = require("./context");
|
|
37
|
+
var core_1 = require("../core");
|
|
38
|
+
var icon_1 = __importDefault(require("../icon"));
|
|
39
|
+
var t_1 = __importDefault(require("../t"));
|
|
40
|
+
var utils_1 = require("../utils");
|
|
41
|
+
var radioGenerator = 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);
|
|
42
|
+
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);
|
|
43
|
+
exports.RadioInput = 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"])));
|
|
44
|
+
exports.RadioBase = styled_components_2.default.label.withConfig({
|
|
45
|
+
shouldForwardProp: core_1.shouldForwardProp(radioGenerator.meta.props)
|
|
46
|
+
})(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-radioControl {\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-radioControl {\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-radioControl {\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-radioControl {\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); }, radioGenerator);
|
|
47
|
+
exports.RadioControl = styled_components_2.default.span.withConfig({
|
|
48
|
+
shouldForwardProp: core_1.shouldForwardProp(controlGenerator.meta.props)
|
|
49
|
+
})(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);
|
|
50
|
+
exports.Radio = core_1.forwardRef(function (props, ref) {
|
|
51
|
+
var _a;
|
|
52
|
+
var _b = (_a = context_1.useRadioGroup()) !== null && _a !== void 0 ? _a : {}, groupOnChange = _b.onChange, groupValue = _b.value, radioGroupProps = __rest(_b, ["onChange", "value"]);
|
|
53
|
+
var mergedProps = __assign(__assign({}, radioGroupProps), props);
|
|
54
|
+
var _c = core_1.omitThemingProps(mergedProps), _d = _c.checked, checked = _d === void 0 ? groupValue !== undefined ? props.value === groupValue : undefined : _d, children = _c.children, className = _c.className, defaultChecked = _c.defaultChecked, disabled = _c.disabled, _e = _c.icon, iconProp = _e === void 0 ? 'cuiRadioUnselected' : _e, _f = _c.iconChecked, iconChecked = _f === void 0 ? 'cuiRadioSelected' : _f, inputProps = _c.inputProps, inputRef = _c.inputRef, label = _c.label, name = _c.name, onChange = _c.onChange, required = _c.required, value = _c.value, rest = __rest(_c, ["checked", "children", "className", "defaultChecked", "disabled", "icon", "iconChecked", "inputProps", "inputRef", "label", "name", "onChange", "required", "value"]);
|
|
55
|
+
var styles = core_1.useStyleConfig('Radio', mergedProps);
|
|
56
|
+
var _g = styles.control, controlColor = _g.color, hoverColor = _g.hoverColor, controlStyles = __rest(_g, ["color", "hoverColor"]);
|
|
57
|
+
var icon = checked ? iconChecked : iconProp;
|
|
58
|
+
var controlMr = children || label ? 1 : 0;
|
|
59
|
+
var color = checked ? controlColor : 'grey.50';
|
|
60
|
+
var controlHoverColor = checked ? hoverColor : 'grey.90';
|
|
61
|
+
function handleOnChange(e) {
|
|
62
|
+
groupOnChange === null || groupOnChange === void 0 ? void 0 : groupOnChange(e);
|
|
63
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
64
|
+
}
|
|
65
|
+
return (react_1.default.createElement(exports.RadioBase, __assign({ className: utils_1.cs('vui-radio', disabled && 'disabled', className), controlHoverColor: controlHoverColor, ref: ref }, styles.container, rest),
|
|
66
|
+
react_1.default.createElement(exports.RadioControl, __assign({ borderRadius: "50%", className: "vui-radioControl", color: color, focusWithinRing: 3,
|
|
67
|
+
// hoverColor={hoverColor}
|
|
68
|
+
mr: controlMr, transitionDuration: "fast" }, controlStyles),
|
|
69
|
+
react_1.default.createElement(exports.RadioInput, __assign({ className: "vui-radioInput", onChange: handleOnChange, ref: inputRef, type: "radio" }, { checked: checked, defaultChecked: defaultChecked, disabled: disabled, name: name, required: required, value: value }, inputProps)),
|
|
70
|
+
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-radioLabel" }, styles.label), label)))));
|
|
71
|
+
});
|
|
72
|
+
exports.Radio.displayName = 'Radio';
|
|
73
|
+
exports.default = exports.Radio;
|
|
74
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { IconProp } from '../icon';
|
|
3
|
+
import { BackgroundColorProps, BordersProps, FlexboxesProps, SizingProps, SpaceProps, TransitionsProps } from '../system';
|
|
4
|
+
import { ThemingProps } from '../theme';
|
|
5
|
+
export interface RadioProps extends Omit<HTMLAttributes<HTMLLabelElement>, 'onChange'>, RadioStyleProps, ThemingProps<'Radio'> {
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
colorScheme?: 'blue' | 'prussian';
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
icon?: IconProp;
|
|
10
|
+
iconChecked?: IconProp;
|
|
11
|
+
inputProps?: HTMLAttributes<HTMLInputElement>;
|
|
12
|
+
inputRef?: React.MutableRefObject<HTMLInputElement | null> | null;
|
|
13
|
+
label?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
value?: number | string;
|
|
18
|
+
}
|
|
19
|
+
export interface RadioControlStyleProps extends BackgroundColorProps, BordersProps, SizingProps, SpaceProps, TransitionsProps {
|
|
20
|
+
}
|
|
21
|
+
export interface RadioStyleProps extends BackgroundColorProps, FlexboxesProps, SizingProps, SpaceProps, TransitionsProps {
|
|
22
|
+
controlHoverColor?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RadioGroupProps, RadioGroupStyleProps } from './radioGroup.types';
|
|
2
|
+
export declare const RadioGroupBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
+
[x: string]: {};
|
|
4
|
+
} & RadioGroupStyleProps, never>;
|
|
5
|
+
export declare const RadioGroup: import("styled-components").StyledComponent<"div", never, RadioGroupProps, never>;
|
|
6
|
+
export default RadioGroup;
|
|
@@ -0,0 +1,99 @@
|
|
|
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 __read = (this && this.__read) || function (o, n) {
|
|
48
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
49
|
+
if (!m) return o;
|
|
50
|
+
var i = m.call(o), r, ar = [], e;
|
|
51
|
+
try {
|
|
52
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
53
|
+
}
|
|
54
|
+
catch (error) { e = { error: error }; }
|
|
55
|
+
finally {
|
|
56
|
+
try {
|
|
57
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
58
|
+
}
|
|
59
|
+
finally { if (e) throw e.error; }
|
|
60
|
+
}
|
|
61
|
+
return ar;
|
|
62
|
+
};
|
|
63
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
64
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.RadioGroup = exports.RadioGroupBase = void 0;
|
|
68
|
+
var styled_components_1 = require("@xstyled/styled-components");
|
|
69
|
+
var react_1 = __importStar(require("react"));
|
|
70
|
+
var styled_components_2 = __importDefault(require("styled-components"));
|
|
71
|
+
var context_1 = require("./context");
|
|
72
|
+
var core_1 = require("../core");
|
|
73
|
+
var utils_1 = require("../utils");
|
|
74
|
+
var generator = styled_components_1.compose(styled_components_1.flexboxes, styled_components_1.sizing, styled_components_1.space);
|
|
75
|
+
exports.RadioGroupBase = styled_components_2.default.div.withConfig({
|
|
76
|
+
shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
|
|
77
|
+
})(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);
|
|
78
|
+
exports.RadioGroup = core_1.forwardRef(function (props, ref) {
|
|
79
|
+
var className = props.className, colorScheme = props.colorScheme, _a = props.defaultValue, defaultValue = _a === void 0 ? '' : _a, disabled = props.disabled, name = props.name, onChange = props.onChange, row = props.row, size = props.size, valueProp = props.value, variant = props.variant, rest = __rest(props, ["className", "colorScheme", "defaultValue", "disabled", "name", "onChange", "row", "size", "value", "variant"]);
|
|
80
|
+
var isControlled = react_1.useRef(valueProp !== undefined).current;
|
|
81
|
+
var _b = __read(react_1.useState(defaultValue), 2), valueState = _b[0], setValueState = _b[1];
|
|
82
|
+
var value = isControlled ? valueProp : valueState;
|
|
83
|
+
var handleOnChange = react_1.useCallback(function (e) {
|
|
84
|
+
setValue(e.target.value);
|
|
85
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
86
|
+
}, [onChange]);
|
|
87
|
+
var setValue = react_1.useCallback(function (value) {
|
|
88
|
+
!isControlled && setValueState(value);
|
|
89
|
+
}, []);
|
|
90
|
+
var context = react_1.useMemo(function () { return utils_1.filterUndefined({ colorScheme: colorScheme, disabled: disabled, name: name, onChange: handleOnChange, size: size, value: value, variant: variant }); }, [colorScheme, disabled, name, handleOnChange, size, value, variant]);
|
|
91
|
+
var aliasedProps = utils_1.filterUndefined({
|
|
92
|
+
flexDirection: row ? 'row' : undefined
|
|
93
|
+
});
|
|
94
|
+
return (react_1.default.createElement(context_1.RadioGroupProvider, { value: context },
|
|
95
|
+
react_1.default.createElement(exports.RadioGroupBase, __assign({ className: utils_1.cs('vui-radioGroup', className), ref: ref }, aliasedProps, rest))));
|
|
96
|
+
});
|
|
97
|
+
exports.RadioGroup.displayName = 'RadioGroup';
|
|
98
|
+
exports.default = exports.RadioGroup;
|
|
99
|
+
var templateObject_1;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { FlexboxesProps, SizingProps, SpaceProps } from '../system';
|
|
3
|
+
import { ThemingProps } from '../theme';
|
|
4
|
+
export interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, RadioGroupStyleProps, ThemingProps<'Radio'> {
|
|
5
|
+
colorScheme?: 'blue' | 'prussian';
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
+
row?: boolean;
|
|
10
|
+
value?: number | string;
|
|
11
|
+
}
|
|
12
|
+
export interface RadioGroupStyleProps extends FlexboxesProps, SizingProps, SpaceProps {
|
|
13
|
+
}
|
package/radio/theme.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Dict } from '../utils';
|
|
2
|
+
declare function variantDefault(props: Dict): {
|
|
3
|
+
control: {
|
|
4
|
+
color: string;
|
|
5
|
+
hoverColor: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
declare const _default: {
|
|
9
|
+
defaultProps: {
|
|
10
|
+
colorScheme: string;
|
|
11
|
+
size: string;
|
|
12
|
+
variant: string;
|
|
13
|
+
};
|
|
14
|
+
parts: string[];
|
|
15
|
+
sizes: {
|
|
16
|
+
sm: {
|
|
17
|
+
control: {
|
|
18
|
+
h: number;
|
|
19
|
+
w: number;
|
|
20
|
+
};
|
|
21
|
+
label: {
|
|
22
|
+
size: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
md: {
|
|
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
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
variants: {
|
|
46
|
+
default: typeof variantDefault;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export default _default;
|
package/radio/theme.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function variantDefault(props) {
|
|
4
|
+
var c = props.colorScheme;
|
|
5
|
+
var controlStyles = {
|
|
6
|
+
color: c + ".80",
|
|
7
|
+
hoverColor: c + ".90"
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
control: controlStyles
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
var defaultProps = {
|
|
14
|
+
colorScheme: 'blue',
|
|
15
|
+
size: 'md',
|
|
16
|
+
variant: 'default'
|
|
17
|
+
};
|
|
18
|
+
var parts = ['container', 'control', 'label'];
|
|
19
|
+
var sizes = {
|
|
20
|
+
sm: {
|
|
21
|
+
control: {
|
|
22
|
+
h: 16,
|
|
23
|
+
w: 16
|
|
24
|
+
},
|
|
25
|
+
label: {
|
|
26
|
+
size: 'sm'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
md: {
|
|
30
|
+
control: {
|
|
31
|
+
h: 20,
|
|
32
|
+
w: 20
|
|
33
|
+
},
|
|
34
|
+
label: {
|
|
35
|
+
lineHeight: 1.2,
|
|
36
|
+
size: 'md'
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
lg: {
|
|
40
|
+
control: {
|
|
41
|
+
h: 24,
|
|
42
|
+
w: 24
|
|
43
|
+
},
|
|
44
|
+
label: {
|
|
45
|
+
size: 'lg'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var variants = {
|
|
50
|
+
default: variantDefault
|
|
51
|
+
};
|
|
52
|
+
exports.default = {
|
|
53
|
+
defaultProps: defaultProps,
|
|
54
|
+
parts: parts,
|
|
55
|
+
sizes: sizes,
|
|
56
|
+
variants: variants
|
|
57
|
+
};
|
package/skeleton/skeleton.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SkeletonProps, SkeletonStyleProps } from './skeleton.types';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const SkeletonBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
3
|
[x: string]: {};
|
|
4
4
|
} & SkeletonStyleProps, never>;
|
|
5
5
|
export declare const Skeleton: import("styled-components").StyledComponent<"div", never, SkeletonProps, never>;
|
package/skeleton/skeleton.js
CHANGED
|
@@ -48,15 +48,15 @@ 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.Skeleton = exports.
|
|
51
|
+
exports.Skeleton = exports.SkeletonBase = void 0;
|
|
52
52
|
var styled_components_1 = require("@xstyled/styled-components");
|
|
53
53
|
var react_1 = __importDefault(require("react"));
|
|
54
54
|
var styled_components_2 = __importStar(require("styled-components"));
|
|
55
55
|
var core_1 = require("../core");
|
|
56
56
|
var utils_1 = require("../utils");
|
|
57
|
-
var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borderRadius, styled_components_1.sizing, styled_components_1.space);
|
|
57
|
+
var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borderRadius, styled_components_1.flexboxes, styled_components_1.sizing, styled_components_1.space);
|
|
58
58
|
var pulse = styled_components_2.keyframes(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.5;\n }\n 100% {\n opacity: 1;\n }\n"], ["\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.5;\n }\n 100% {\n opacity: 1;\n }\n"])));
|
|
59
|
-
exports.
|
|
59
|
+
exports.SkeletonBase = styled_components_2.default.div.withConfig({
|
|
60
60
|
shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
|
|
61
61
|
})(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\tanimation: ", " 1.5s ease-in-out 0.5s infinite;\n\n\t", "\n"], ["\n\tanimation: ", " 1.5s ease-in-out 0.5s infinite;\n\n\t", "\n"])), pulse, generator);
|
|
62
62
|
exports.Skeleton = core_1.forwardRef(function (props, ref) {
|
|
@@ -66,7 +66,7 @@ exports.Skeleton = core_1.forwardRef(function (props, ref) {
|
|
|
66
66
|
var aliasedProps = utils_1.filterUndefined({
|
|
67
67
|
w: props.variant === 'circle' ? styles.h : undefined
|
|
68
68
|
});
|
|
69
|
-
return (react_1.default.createElement(react_1.default.Fragment, null, arr.map(function (_, i) { return (react_1.default.createElement(exports.
|
|
69
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, arr.map(function (_, i) { return (react_1.default.createElement(exports.SkeletonBase, __assign({ bg: "blue.20", className: utils_1.cs('vui-skeleton', className), key: i, ref: ref }, styles, aliasedProps, rest))); })));
|
|
70
70
|
});
|
|
71
71
|
exports.Skeleton.displayName = 'Skeleton';
|
|
72
72
|
exports.default = exports.Skeleton;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { BackgroundColorProps, BorderRadiusProps, SizingProps, SpaceProps } from '../system';
|
|
2
|
+
import { BackgroundColorProps, BorderRadiusProps, FlexboxesProps, SizingProps, SpaceProps } from '../system';
|
|
3
3
|
import { ThemingProps } from '../theme';
|
|
4
4
|
export interface SkeletonProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, SkeletonStyleProps, ThemingProps<'Skeleton'> {
|
|
5
5
|
colorScheme?: 'blue' | 'grey';
|
|
6
6
|
repeat?: number;
|
|
7
7
|
}
|
|
8
|
-
export interface SkeletonStyleProps extends BackgroundColorProps, BorderRadiusProps, SizingProps, SpaceProps {
|
|
8
|
+
export interface SkeletonStyleProps extends BackgroundColorProps, BorderRadiusProps, FlexboxesProps, SizingProps, SpaceProps {
|
|
9
9
|
}
|
package/styles/animations.d.ts
CHANGED
|
@@ -5,3 +5,13 @@ export declare const fadeOut = "\n\tfrom { opacity: 1; }\n\tto { opacity: 0; }\n
|
|
|
5
5
|
export declare const fadeRight = "\n\tfrom { opacity: 0; transform: translateX(-20px) }\n\tto { opacity: 1; transform: translateX(0) }\n";
|
|
6
6
|
export declare const fadeUp = "\n\tfrom { opacity: 0; transform: translateY(20px) }\n\tto { opacity: 1; transform: translateY(0) }\n";
|
|
7
7
|
export declare const spin = "\n\tfrom { transform: rotate(0deg); }\n\tto { transform: rotate(360deg); }\n";
|
|
8
|
+
declare const _default: {
|
|
9
|
+
fadeDown: string;
|
|
10
|
+
fadeIn: string;
|
|
11
|
+
fadeLeft: string;
|
|
12
|
+
fadeOut: string;
|
|
13
|
+
fadeRight: string;
|
|
14
|
+
fadeUp: string;
|
|
15
|
+
spin: string;
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
package/styles/animations.js
CHANGED
|
@@ -8,3 +8,12 @@ exports.fadeOut = "\n\tfrom { opacity: 1; }\n\tto { opacity: 0; }\n";
|
|
|
8
8
|
exports.fadeRight = "\n\tfrom { opacity: 0; transform: translateX(-20px) }\n\tto { opacity: 1; transform: translateX(0) }\n";
|
|
9
9
|
exports.fadeUp = "\n\tfrom { opacity: 0; transform: translateY(20px) }\n\tto { opacity: 1; transform: translateY(0) }\n";
|
|
10
10
|
exports.spin = "\n\tfrom { transform: rotate(0deg); }\n\tto { transform: rotate(360deg); }\n";
|
|
11
|
+
exports.default = {
|
|
12
|
+
fadeDown: 'fadeDown 0.3s ease-in-out',
|
|
13
|
+
fadeIn: 'fadeIn 0.3s ease-in-out',
|
|
14
|
+
fadeLeft: 'fadeLeft 0.3s ease-in-out',
|
|
15
|
+
fadeOut: 'fadeOut 0.3s ease-in-out',
|
|
16
|
+
fadeRight: 'fadeRight 0.3s ease-in-out',
|
|
17
|
+
fadeUp: 'fadeUp 0.3s ease-in-out',
|
|
18
|
+
spin: 'spin 1s linear infinite'
|
|
19
|
+
};
|