@veracity/vui 0.0.1
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/box/box.d.ts +6 -0
- package/box/box.js +61 -0
- package/box/box.types.d.ts +19 -0
- package/box/box.types.js +2 -0
- package/box/index.d.ts +3 -0
- package/box/index.js +20 -0
- package/box/theme.d.ts +6 -0
- package/box/theme.js +10 -0
- package/button/button.d.ts +6 -0
- package/button/button.js +76 -0
- package/button/button.types.d.ts +20 -0
- package/button/button.types.js +2 -0
- package/button/buttons.d.ts +8 -0
- package/button/buttons.js +25 -0
- package/button/index.d.ts +4 -0
- package/button/index.js +21 -0
- package/button/theme.d.ts +64 -0
- package/button/theme.js +88 -0
- package/core/consts.d.ts +1 -0
- package/core/consts.js +4 -0
- package/core/globalStyle.d.ts +2 -0
- package/core/globalStyle.js +10 -0
- package/core/index.d.ts +5 -0
- package/core/index.js +23 -0
- package/core/types.d.ts +8 -0
- package/core/types.js +2 -0
- package/core/utils.d.ts +28 -0
- package/core/utils.js +132 -0
- package/core/vuiProvider.d.ts +9 -0
- package/core/vuiProvider.js +17 -0
- package/heading/heading.d.ts +6 -0
- package/heading/heading.js +57 -0
- package/heading/heading.types.d.ts +12 -0
- package/heading/heading.types.js +2 -0
- package/heading/headings.d.ts +9 -0
- package/heading/headings.js +26 -0
- package/heading/index.d.ts +4 -0
- package/heading/index.js +21 -0
- package/heading/theme.d.ts +39 -0
- package/heading/theme.js +43 -0
- package/icon/helpers.d.ts +11 -0
- package/icon/helpers.js +42 -0
- package/icon/icon.d.ts +3 -0
- package/icon/icon.js +44 -0
- package/icon/icon.types.d.ts +10 -0
- package/icon/icon.types.js +2 -0
- package/icon/icons/cul/culCovid.d.ts +3 -0
- package/icon/icons/cul/culCovid.js +7 -0
- package/icon/icons/cul/culDeepSearch.d.ts +3 -0
- package/icon/icons/cul/culDeepSearch.js +7 -0
- package/icon/icons/cul/culDotsMenu.d.ts +3 -0
- package/icon/icons/cul/culDotsMenu.js +7 -0
- package/icon/icons/cul/culGlobePlus.d.ts +3 -0
- package/icon/icons/cul/culGlobePlus.js +7 -0
- package/icon/icons/cul/culListDense.d.ts +3 -0
- package/icon/icons/cul/culListDense.js +7 -0
- package/icon/icons/cul/culMapMarkerStar.d.ts +3 -0
- package/icon/icons/cul/culMapMarkerStar.js +7 -0
- package/icon/icons/cul/culPlusThin.d.ts +3 -0
- package/icon/icons/cul/culPlusThin.js +7 -0
- package/icon/icons/cul/culScreenshot.d.ts +3 -0
- package/icon/icons/cul/culScreenshot.js +7 -0
- package/icon/icons/cul/culScreenshotAlt.d.ts +3 -0
- package/icon/icons/cul/culScreenshotAlt.js +7 -0
- package/icon/icons/cul/culShortcut.d.ts +3 -0
- package/icon/icons/cul/culShortcut.js +7 -0
- package/icon/icons/cul/culTimesThin.d.ts +3 -0
- package/icon/icons/cul/culTimesThin.js +7 -0
- package/icon/icons/cul/culTransformer.d.ts +3 -0
- package/icon/icons/cul/culTransformer.js +7 -0
- package/icon/icons/cul/culUserTransfer.d.ts +3 -0
- package/icon/icons/cul/culUserTransfer.js +7 -0
- package/icon/icons/cul/culVessel.d.ts +3 -0
- package/icon/icons/cul/culVessel.js +7 -0
- package/icon/icons/cul/culVesselGroup.d.ts +3 -0
- package/icon/icons/cul/culVesselGroup.js +7 -0
- package/icon/icons/cus/cusCheckboxSelected.d.ts +3 -0
- package/icon/icons/cus/cusCheckboxSelected.js +7 -0
- package/icon/icons/cus/cusDotFull.d.ts +3 -0
- package/icon/icons/cus/cusDotFull.js +7 -0
- package/icon/icons/cus/cusDotFullAlt.d.ts +3 -0
- package/icon/icons/cus/cusDotFullAlt.js +7 -0
- package/icon/icons/cus/cusDotsMenu.d.ts +3 -0
- package/icon/icons/cus/cusDotsMenu.js +7 -0
- package/icon/icons/cus/cusRadio.d.ts +3 -0
- package/icon/icons/cus/cusRadio.js +7 -0
- package/icon/icons/cus/cusSquareMinus.d.ts +3 -0
- package/icon/icons/cus/cusSquareMinus.js +7 -0
- package/icon/icons/cus/cusTransformer.d.ts +3 -0
- package/icon/icons/cus/cusTransformer.js +7 -0
- package/icon/icons/cus/cusVessel.d.ts +3 -0
- package/icon/icons/cus/cusVessel.js +7 -0
- package/icon/icons/fab/fabApplePay.d.ts +3 -0
- package/icon/icons/fab/fabApplePay.js +7 -0
- package/icon/icons/fab/fabBluetooth.d.ts +3 -0
- package/icon/icons/fab/fabBluetooth.js +7 -0
- package/icon/icons/fab/fabBtc.d.ts +3 -0
- package/icon/icons/fab/fabBtc.js +7 -0
- package/icon/icons/fab/fabCcAmazonPay.d.ts +3 -0
- package/icon/icons/fab/fabCcAmazonPay.js +7 -0
- package/icon/icons/fab/fabCcAmex.d.ts +3 -0
- package/icon/icons/fab/fabCcAmex.js +7 -0
- package/icon/icons/fab/fabCcApplePay.d.ts +3 -0
- package/icon/icons/fab/fabCcApplePay.js +7 -0
- package/icon/icons/fab/fabCcDinersClub.d.ts +3 -0
- package/icon/icons/fab/fabCcDinersClub.js +7 -0
- package/icon/icons/fab/fabCcMastercard.d.ts +3 -0
- package/icon/icons/fab/fabCcMastercard.js +7 -0
- package/icon/icons/fab/fabCcPaypal.d.ts +3 -0
- package/icon/icons/fab/fabCcPaypal.js +7 -0
- package/icon/icons/fab/fabCcVisa.d.ts +3 -0
- package/icon/icons/fab/fabCcVisa.js +7 -0
- package/icon/icons/fab/fabDhl.d.ts +3 -0
- package/icon/icons/fab/fabDhl.js +7 -0
- package/icon/icons/fab/fabEbay.d.ts +3 -0
- package/icon/icons/fab/fabEbay.js +7 -0
- package/icon/icons/fab/fabFacebook.d.ts +3 -0
- package/icon/icons/fab/fabFacebook.js +7 -0
- package/icon/icons/fab/fabFedex.d.ts +3 -0
- package/icon/icons/fab/fabFedex.js +7 -0
- package/icon/icons/fab/fabFirefox.d.ts +3 -0
- package/icon/icons/fab/fabFirefox.js +7 -0
- package/icon/icons/fab/fabGoogle.d.ts +3 -0
- package/icon/icons/fab/fabGoogle.js +7 -0
- package/icon/icons/fab/fabGoogleDrive.d.ts +3 -0
- package/icon/icons/fab/fabGoogleDrive.js +7 -0
- package/icon/icons/fab/fabLinkedinIn.d.ts +3 -0
- package/icon/icons/fab/fabLinkedinIn.js +7 -0
- package/icon/icons/fab/fabMedium.d.ts +3 -0
- package/icon/icons/fab/fabMedium.js +7 -0
- package/icon/icons/fab/fabOsi.d.ts +3 -0
- package/icon/icons/fab/fabOsi.js +7 -0
- package/icon/icons/fab/fabSlack.d.ts +3 -0
- package/icon/icons/fab/fabSlack.js +7 -0
- package/icon/icons/fab/fabTwitter.d.ts +3 -0
- package/icon/icons/fab/fabTwitter.js +7 -0
- package/icon/icons/fab/fabUps.d.ts +3 -0
- package/icon/icons/fab/fabUps.js +7 -0
- package/icon/icons/fal/falAddressBook.d.ts +3 -0
- package/icon/icons/fal/falAddressBook.js +7 -0
- package/icon/icons/fal/falAddressCard.d.ts +3 -0
- package/icon/icons/fal/falAddressCard.js +7 -0
- package/icon/icons/fal/falAnalytics.d.ts +3 -0
- package/icon/icons/fal/falAnalytics.js +7 -0
- package/icon/icons/fal/falAngleDoubleDown.d.ts +3 -0
- package/icon/icons/fal/falAngleDoubleDown.js +7 -0
- package/icon/icons/fal/falAngleDoubleLeft.d.ts +3 -0
- package/icon/icons/fal/falAngleDoubleLeft.js +7 -0
- package/icon/icons/fal/falAngleDoubleRight.d.ts +3 -0
- package/icon/icons/fal/falAngleDoubleRight.js +7 -0
- package/icon/icons/fal/falAngleDoubleUp.d.ts +3 -0
- package/icon/icons/fal/falAngleDoubleUp.js +7 -0
- package/icon/icons/fal/falAngleDown.d.ts +3 -0
- package/icon/icons/fal/falAngleDown.js +7 -0
- package/icon/icons/fal/falAngleLeft.d.ts +3 -0
- package/icon/icons/fal/falAngleLeft.js +7 -0
- package/icon/icons/fal/falAngleRight.d.ts +3 -0
- package/icon/icons/fal/falAngleRight.js +7 -0
- package/icon/icons/fal/falAngleUp.d.ts +3 -0
- package/icon/icons/fal/falAngleUp.js +7 -0
- package/icon/icons/fal/falArrowAltDown.d.ts +3 -0
- package/icon/icons/fal/falArrowAltDown.js +7 -0
- package/icon/icons/fal/falArrowAltLeft.d.ts +3 -0
- package/icon/icons/fal/falArrowAltLeft.js +7 -0
- package/icon/icons/fal/falArrowAltRight.d.ts +3 -0
- package/icon/icons/fal/falArrowAltRight.js +7 -0
- package/icon/icons/fal/falArrowAltUp.d.ts +3 -0
- package/icon/icons/fal/falArrowAltUp.js +7 -0
- package/icon/icons/fal/falArrowCircleDown.d.ts +3 -0
- package/icon/icons/fal/falArrowCircleDown.js +7 -0
- package/icon/icons/fal/falArrowCircleLeft.d.ts +3 -0
- package/icon/icons/fal/falArrowCircleLeft.js +7 -0
- package/icon/icons/fal/falArrowCircleRight.d.ts +3 -0
- package/icon/icons/fal/falArrowCircleRight.js +7 -0
- package/icon/icons/fal/falArrowCircleUp.d.ts +3 -0
- package/icon/icons/fal/falArrowCircleUp.js +7 -0
- package/icon/icons/fal/falArrowDown.d.ts +3 -0
- package/icon/icons/fal/falArrowDown.js +7 -0
- package/icon/icons/fal/falArrowFromBottom.d.ts +3 -0
- package/icon/icons/fal/falArrowFromBottom.js +7 -0
- package/icon/icons/fal/falArrowFromLeft.d.ts +3 -0
- package/icon/icons/fal/falArrowFromLeft.js +7 -0
- package/icon/icons/fal/falArrowFromRight.d.ts +3 -0
- package/icon/icons/fal/falArrowFromRight.js +7 -0
- package/icon/icons/fal/falArrowFromTop.d.ts +3 -0
- package/icon/icons/fal/falArrowFromTop.js +7 -0
- package/icon/icons/fal/falArrowLeft.d.ts +3 -0
- package/icon/icons/fal/falArrowLeft.js +7 -0
- package/icon/icons/fal/falArrowRight.d.ts +3 -0
- package/icon/icons/fal/falArrowRight.js +7 -0
- package/icon/icons/fal/falArrowToBottom.d.ts +3 -0
- package/icon/icons/fal/falArrowToBottom.js +7 -0
- package/icon/icons/fal/falArrowToLeft.d.ts +3 -0
- package/icon/icons/fal/falArrowToLeft.js +7 -0
- package/icon/icons/fal/falArrowToRight.d.ts +3 -0
- package/icon/icons/fal/falArrowToRight.js +7 -0
- package/icon/icons/fal/falArrowToTop.d.ts +3 -0
- package/icon/icons/fal/falArrowToTop.js +7 -0
- package/icon/icons/fal/falArrowUp.d.ts +3 -0
- package/icon/icons/fal/falArrowUp.js +7 -0
- package/icon/icons/fal/falArrows.d.ts +3 -0
- package/icon/icons/fal/falArrows.js +7 -0
- package/icon/icons/fal/falAward.d.ts +3 -0
- package/icon/icons/fal/falAward.js +7 -0
- package/icon/icons/fal/falBan.d.ts +3 -0
- package/icon/icons/fal/falBan.js +7 -0
- package/icon/icons/fal/falBell.d.ts +3 -0
- package/icon/icons/fal/falBell.js +7 -0
- package/icon/icons/fal/falBookOpen.d.ts +3 -0
- package/icon/icons/fal/falBookOpen.js +7 -0
- package/icon/icons/fal/falBroadcastTower.d.ts +3 -0
- package/icon/icons/fal/falBroadcastTower.js +7 -0
- package/icon/icons/fal/falBuilding.d.ts +3 -0
- package/icon/icons/fal/falBuilding.js +7 -0
- package/icon/icons/fal/falBullseye.d.ts +3 -0
- package/icon/icons/fal/falBullseye.js +7 -0
- package/icon/icons/fal/falCalendar.d.ts +3 -0
- package/icon/icons/fal/falCalendar.js +7 -0
- package/icon/icons/fal/falCalendarAlt.d.ts +3 -0
- package/icon/icons/fal/falCalendarAlt.js +7 -0
- package/icon/icons/fal/falCamera.d.ts +3 -0
- package/icon/icons/fal/falCamera.js +7 -0
- package/icon/icons/fal/falCaretDown.d.ts +3 -0
- package/icon/icons/fal/falCaretDown.js +7 -0
- package/icon/icons/fal/falCaretLeft.d.ts +3 -0
- package/icon/icons/fal/falCaretLeft.js +7 -0
- package/icon/icons/fal/falCaretRight.d.ts +3 -0
- package/icon/icons/fal/falCaretRight.js +7 -0
- package/icon/icons/fal/falCaretUp.d.ts +3 -0
- package/icon/icons/fal/falCaretUp.js +7 -0
- package/icon/icons/fal/falCauldron.d.ts +3 -0
- package/icon/icons/fal/falCauldron.js +7 -0
- package/icon/icons/fal/falChartArea.d.ts +3 -0
- package/icon/icons/fal/falChartArea.js +7 -0
- package/icon/icons/fal/falChartBar.d.ts +3 -0
- package/icon/icons/fal/falChartBar.js +7 -0
- package/icon/icons/fal/falChartLine.d.ts +3 -0
- package/icon/icons/fal/falChartLine.js +7 -0
- package/icon/icons/fal/falChartLineDown.d.ts +3 -0
- package/icon/icons/fal/falChartLineDown.js +7 -0
- package/icon/icons/fal/falChartNetwork.d.ts +3 -0
- package/icon/icons/fal/falChartNetwork.js +7 -0
- package/icon/icons/fal/falChartPie.d.ts +3 -0
- package/icon/icons/fal/falChartPie.js +7 -0
- package/icon/icons/fal/falChartPieAlt.d.ts +3 -0
- package/icon/icons/fal/falChartPieAlt.js +7 -0
- package/icon/icons/fal/falChartScatter.d.ts +3 -0
- package/icon/icons/fal/falChartScatter.js +7 -0
- package/icon/icons/fal/falCheck.d.ts +3 -0
- package/icon/icons/fal/falCheck.js +7 -0
- package/icon/icons/fal/falCheckCircle.d.ts +3 -0
- package/icon/icons/fal/falCheckCircle.js +7 -0
- package/icon/icons/fal/falCheckSquare.d.ts +3 -0
- package/icon/icons/fal/falCheckSquare.js +7 -0
- package/icon/icons/fal/falChevronCircleDown.d.ts +3 -0
- package/icon/icons/fal/falChevronCircleDown.js +7 -0
- package/icon/icons/fal/falChevronCircleLeft.d.ts +3 -0
- package/icon/icons/fal/falChevronCircleLeft.js +7 -0
- package/icon/icons/fal/falChevronCircleRight.d.ts +3 -0
- package/icon/icons/fal/falChevronCircleRight.js +7 -0
- package/icon/icons/fal/falChevronCircleUp.d.ts +3 -0
- package/icon/icons/fal/falChevronCircleUp.js +7 -0
- package/icon/icons/fal/falChevronDoubleDown.d.ts +3 -0
- package/icon/icons/fal/falChevronDoubleDown.js +7 -0
- package/icon/icons/fal/falChevronDoubleLeft.d.ts +3 -0
- package/icon/icons/fal/falChevronDoubleLeft.js +7 -0
- package/icon/icons/fal/falChevronDoubleRight.d.ts +3 -0
- package/icon/icons/fal/falChevronDoubleRight.js +7 -0
- package/icon/icons/fal/falChevronDoubleUp.d.ts +3 -0
- package/icon/icons/fal/falChevronDoubleUp.js +7 -0
- package/icon/icons/fal/falChevronDown.d.ts +3 -0
- package/icon/icons/fal/falChevronDown.js +7 -0
- package/icon/icons/fal/falChevronLeft.d.ts +3 -0
- package/icon/icons/fal/falChevronLeft.js +7 -0
- package/icon/icons/fal/falChevronRight.d.ts +3 -0
- package/icon/icons/fal/falChevronRight.js +7 -0
- package/icon/icons/fal/falChevronUp.d.ts +3 -0
- package/icon/icons/fal/falChevronUp.js +7 -0
- package/icon/icons/fal/falCircle.d.ts +3 -0
- package/icon/icons/fal/falCircle.js +7 -0
- package/icon/icons/fal/falCloud.d.ts +3 -0
- package/icon/icons/fal/falCloud.js +7 -0
- package/icon/icons/fal/falCloudShowersHeavy.d.ts +3 -0
- package/icon/icons/fal/falCloudShowersHeavy.js +7 -0
- package/icon/icons/fal/falCloudSnow.d.ts +3 -0
- package/icon/icons/fal/falCloudSnow.js +7 -0
- package/icon/icons/fal/falCloudSun.d.ts +3 -0
- package/icon/icons/fal/falCloudSun.js +7 -0
- package/icon/icons/fal/falCloudSunRain.d.ts +3 -0
- package/icon/icons/fal/falCloudSunRain.js +7 -0
- package/icon/icons/fal/falCloudUpload.d.ts +3 -0
- package/icon/icons/fal/falCloudUpload.js +7 -0
- package/icon/icons/fal/falCode.d.ts +3 -0
- package/icon/icons/fal/falCode.js +7 -0
- package/icon/icons/fal/falCog.d.ts +3 -0
- package/icon/icons/fal/falCog.js +7 -0
- package/icon/icons/fal/falCogs.d.ts +3 -0
- package/icon/icons/fal/falCogs.js +7 -0
- package/icon/icons/fal/falComment.d.ts +3 -0
- package/icon/icons/fal/falComment.js +7 -0
- package/icon/icons/fal/falCommentAlt.d.ts +3 -0
- package/icon/icons/fal/falCommentAlt.js +7 -0
- package/icon/icons/fal/falCompressAlt.d.ts +3 -0
- package/icon/icons/fal/falCompressAlt.js +7 -0
- package/icon/icons/fal/falCopy.d.ts +3 -0
- package/icon/icons/fal/falCopy.js +7 -0
- package/icon/icons/fal/falCreditCard.d.ts +3 -0
- package/icon/icons/fal/falCreditCard.js +7 -0
- package/icon/icons/fal/falDatabase.d.ts +3 -0
- package/icon/icons/fal/falDatabase.js +7 -0
- package/icon/icons/fal/falDotCircle.d.ts +3 -0
- package/icon/icons/fal/falDotCircle.js +7 -0
- package/icon/icons/fal/falDownload.d.ts +3 -0
- package/icon/icons/fal/falDownload.js +7 -0
- package/icon/icons/fal/falEdit.d.ts +3 -0
- package/icon/icons/fal/falEdit.js +7 -0
- package/icon/icons/fal/falEllipsisH.d.ts +3 -0
- package/icon/icons/fal/falEllipsisH.js +7 -0
- package/icon/icons/fal/falEllipsisV.d.ts +3 -0
- package/icon/icons/fal/falEllipsisV.js +7 -0
- package/icon/icons/fal/falEnvelope.d.ts +3 -0
- package/icon/icons/fal/falEnvelope.js +7 -0
- package/icon/icons/fal/falExchange.d.ts +3 -0
- package/icon/icons/fal/falExchange.js +7 -0
- package/icon/icons/fal/falExclamationCircle.d.ts +3 -0
- package/icon/icons/fal/falExclamationCircle.js +7 -0
- package/icon/icons/fal/falExclamationTriangle.d.ts +3 -0
- package/icon/icons/fal/falExclamationTriangle.js +7 -0
- package/icon/icons/fal/falExpandAlt.d.ts +3 -0
- package/icon/icons/fal/falExpandAlt.js +7 -0
- package/icon/icons/fal/falExternalLink.d.ts +3 -0
- package/icon/icons/fal/falExternalLink.js +7 -0
- package/icon/icons/fal/falEye.d.ts +3 -0
- package/icon/icons/fal/falEye.js +7 -0
- package/icon/icons/fal/falEyeSlash.d.ts +3 -0
- package/icon/icons/fal/falEyeSlash.js +7 -0
- package/icon/icons/fal/falFile.d.ts +3 -0
- package/icon/icons/fal/falFile.js +7 -0
- package/icon/icons/fal/falFileAlt.d.ts +3 -0
- package/icon/icons/fal/falFileAlt.js +7 -0
- package/icon/icons/fal/falFileArchive.d.ts +3 -0
- package/icon/icons/fal/falFileArchive.js +7 -0
- package/icon/icons/fal/falFileAudio.d.ts +3 -0
- package/icon/icons/fal/falFileAudio.js +7 -0
- package/icon/icons/fal/falFileCertificate.d.ts +3 -0
- package/icon/icons/fal/falFileCertificate.js +7 -0
- package/icon/icons/fal/falFileChartLine.d.ts +3 -0
- package/icon/icons/fal/falFileChartLine.js +7 -0
- package/icon/icons/fal/falFileChartPie.d.ts +3 -0
- package/icon/icons/fal/falFileChartPie.js +7 -0
- package/icon/icons/fal/falFileCheck.d.ts +3 -0
- package/icon/icons/fal/falFileCheck.js +7 -0
- package/icon/icons/fal/falFileCode.d.ts +3 -0
- package/icon/icons/fal/falFileCode.js +7 -0
- package/icon/icons/fal/falFileCsv.d.ts +3 -0
- package/icon/icons/fal/falFileCsv.js +7 -0
- package/icon/icons/fal/falFileEdit.d.ts +3 -0
- package/icon/icons/fal/falFileEdit.js +7 -0
- package/icon/icons/fal/falFileExcel.d.ts +3 -0
- package/icon/icons/fal/falFileExcel.js +7 -0
- package/icon/icons/fal/falFileImage.d.ts +3 -0
- package/icon/icons/fal/falFileImage.js +7 -0
- package/icon/icons/fal/falFilePdf.d.ts +3 -0
- package/icon/icons/fal/falFilePdf.js +7 -0
- package/icon/icons/fal/falFilePlus.d.ts +3 -0
- package/icon/icons/fal/falFilePlus.js +7 -0
- package/icon/icons/fal/falFilePowerpoint.d.ts +3 -0
- package/icon/icons/fal/falFilePowerpoint.js +7 -0
- package/icon/icons/fal/falFileSpreadsheet.d.ts +3 -0
- package/icon/icons/fal/falFileSpreadsheet.js +7 -0
- package/icon/icons/fal/falFileVideo.d.ts +3 -0
- package/icon/icons/fal/falFileVideo.js +7 -0
- package/icon/icons/fal/falFileWord.d.ts +3 -0
- package/icon/icons/fal/falFileWord.js +7 -0
- package/icon/icons/fal/falFilter.d.ts +3 -0
- package/icon/icons/fal/falFilter.js +7 -0
- package/icon/icons/fal/falFlag.d.ts +3 -0
- package/icon/icons/fal/falFlag.js +7 -0
- package/icon/icons/fal/falFolder.d.ts +3 -0
- package/icon/icons/fal/falFolder.js +7 -0
- package/icon/icons/fal/falFolderOpen.d.ts +3 -0
- package/icon/icons/fal/falFolderOpen.js +7 -0
- package/icon/icons/fal/falFolderPlus.d.ts +3 -0
- package/icon/icons/fal/falFolderPlus.js +7 -0
- package/icon/icons/fal/falFolders.d.ts +3 -0
- package/icon/icons/fal/falFolders.js +7 -0
- package/icon/icons/fal/falGlassesAlt.d.ts +3 -0
- package/icon/icons/fal/falGlassesAlt.js +7 -0
- package/icon/icons/fal/falGlobe.d.ts +3 -0
- package/icon/icons/fal/falGlobe.js +7 -0
- package/icon/icons/fal/falHome.d.ts +3 -0
- package/icon/icons/fal/falHome.js +7 -0
- package/icon/icons/fal/falHourglass.d.ts +3 -0
- package/icon/icons/fal/falHourglass.js +7 -0
- package/icon/icons/fal/falImage.d.ts +3 -0
- package/icon/icons/fal/falImage.js +7 -0
- package/icon/icons/fal/falInfoCircle.d.ts +3 -0
- package/icon/icons/fal/falInfoCircle.js +7 -0
- package/icon/icons/fal/falKey.d.ts +3 -0
- package/icon/icons/fal/falKey.js +7 -0
- package/icon/icons/fal/falLayerPlus.d.ts +3 -0
- package/icon/icons/fal/falLayerPlus.js +7 -0
- package/icon/icons/fal/falLink.d.ts +3 -0
- package/icon/icons/fal/falLink.js +7 -0
- package/icon/icons/fal/falList.d.ts +3 -0
- package/icon/icons/fal/falList.js +7 -0
- package/icon/icons/fal/falLockAlt.d.ts +3 -0
- package/icon/icons/fal/falLockAlt.js +7 -0
- package/icon/icons/fal/falLongArrowDown.d.ts +3 -0
- package/icon/icons/fal/falLongArrowDown.js +7 -0
- package/icon/icons/fal/falLongArrowLeft.d.ts +3 -0
- package/icon/icons/fal/falLongArrowLeft.js +7 -0
- package/icon/icons/fal/falLongArrowRight.d.ts +3 -0
- package/icon/icons/fal/falLongArrowRight.js +7 -0
- package/icon/icons/fal/falLongArrowUp.d.ts +3 -0
- package/icon/icons/fal/falLongArrowUp.js +7 -0
- package/icon/icons/fal/falMap.d.ts +3 -0
- package/icon/icons/fal/falMap.js +7 -0
- package/icon/icons/fal/falMapMarked.d.ts +3 -0
- package/icon/icons/fal/falMapMarked.js +7 -0
- package/icon/icons/fal/falMapMarkedAlt.d.ts +3 -0
- package/icon/icons/fal/falMapMarkedAlt.js +7 -0
- package/icon/icons/fal/falMapMarker.d.ts +3 -0
- package/icon/icons/fal/falMapMarker.js +7 -0
- package/icon/icons/fal/falMapMarkerAlt.d.ts +3 -0
- package/icon/icons/fal/falMapMarkerAlt.js +7 -0
- package/icon/icons/fal/falMapMarkerAltSlash.d.ts +3 -0
- package/icon/icons/fal/falMapMarkerAltSlash.js +7 -0
- package/icon/icons/fal/falMapMarkerCheck.d.ts +3 -0
- package/icon/icons/fal/falMapMarkerCheck.js +7 -0
- package/icon/icons/fal/falMapMarkerExclamation.d.ts +3 -0
- package/icon/icons/fal/falMapMarkerExclamation.js +7 -0
- package/icon/icons/fal/falMinus.d.ts +3 -0
- package/icon/icons/fal/falMinus.js +7 -0
- package/icon/icons/fal/falPause.d.ts +3 -0
- package/icon/icons/fal/falPause.js +7 -0
- package/icon/icons/fal/falPauseCircle.d.ts +3 -0
- package/icon/icons/fal/falPauseCircle.js +7 -0
- package/icon/icons/fal/falPen.d.ts +3 -0
- package/icon/icons/fal/falPen.js +7 -0
- package/icon/icons/fal/falPlay.d.ts +3 -0
- package/icon/icons/fal/falPlay.js +7 -0
- package/icon/icons/fal/falPlayCircle.d.ts +3 -0
- package/icon/icons/fal/falPlayCircle.js +7 -0
- package/icon/icons/fal/falPlug.d.ts +3 -0
- package/icon/icons/fal/falPlug.js +7 -0
- package/icon/icons/fal/falPlus.d.ts +3 -0
- package/icon/icons/fal/falPlus.js +7 -0
- package/icon/icons/fal/falPlusCircle.d.ts +3 -0
- package/icon/icons/fal/falPlusCircle.js +7 -0
- package/icon/icons/fal/falPlusSquare.d.ts +3 -0
- package/icon/icons/fal/falPlusSquare.js +7 -0
- package/icon/icons/fal/falPrint.d.ts +3 -0
- package/icon/icons/fal/falPrint.js +7 -0
- package/icon/icons/fal/falPuzzlePiece.d.ts +3 -0
- package/icon/icons/fal/falPuzzlePiece.js +7 -0
- package/icon/icons/fal/falReceipt.d.ts +3 -0
- package/icon/icons/fal/falReceipt.js +7 -0
- package/icon/icons/fal/falRedo.d.ts +3 -0
- package/icon/icons/fal/falRedo.js +7 -0
- package/icon/icons/fal/falSave.d.ts +3 -0
- package/icon/icons/fal/falSave.js +7 -0
- package/icon/icons/fal/falSearch.d.ts +3 -0
- package/icon/icons/fal/falSearch.js +7 -0
- package/icon/icons/fal/falSearchPlus.d.ts +3 -0
- package/icon/icons/fal/falSearchPlus.js +7 -0
- package/icon/icons/fal/falServer.d.ts +3 -0
- package/icon/icons/fal/falServer.js +7 -0
- package/icon/icons/fal/falShare.d.ts +3 -0
- package/icon/icons/fal/falShare.js +7 -0
- package/icon/icons/fal/falShareAll.d.ts +3 -0
- package/icon/icons/fal/falShareAll.js +7 -0
- package/icon/icons/fal/falShareAlt.d.ts +3 -0
- package/icon/icons/fal/falShareAlt.js +7 -0
- package/icon/icons/fal/falShieldAlt.d.ts +3 -0
- package/icon/icons/fal/falShieldAlt.js +7 -0
- package/icon/icons/fal/falShieldCheck.d.ts +3 -0
- package/icon/icons/fal/falShieldCheck.js +7 -0
- package/icon/icons/fal/falShip.d.ts +3 -0
- package/icon/icons/fal/falShip.js +7 -0
- package/icon/icons/fal/falShoppingBasket.d.ts +3 -0
- package/icon/icons/fal/falShoppingBasket.js +7 -0
- package/icon/icons/fal/falSignInAlt.d.ts +3 -0
- package/icon/icons/fal/falSignInAlt.js +7 -0
- package/icon/icons/fal/falSignOut.d.ts +3 -0
- package/icon/icons/fal/falSignOut.js +7 -0
- package/icon/icons/fal/falSignOutAlt.d.ts +3 -0
- package/icon/icons/fal/falSignOutAlt.js +7 -0
- package/icon/icons/fal/falSlidersV.d.ts +3 -0
- package/icon/icons/fal/falSlidersV.js +7 -0
- package/icon/icons/fal/falSnowBlowing.d.ts +3 -0
- package/icon/icons/fal/falSnowBlowing.js +7 -0
- package/icon/icons/fal/falSnowflake.d.ts +3 -0
- package/icon/icons/fal/falSnowflake.js +7 -0
- package/icon/icons/fal/falSolarPanel.d.ts +3 -0
- package/icon/icons/fal/falSolarPanel.js +7 -0
- package/icon/icons/fal/falSort.d.ts +3 -0
- package/icon/icons/fal/falSort.js +7 -0
- package/icon/icons/fal/falSpinner.d.ts +3 -0
- package/icon/icons/fal/falSpinner.js +7 -0
- package/icon/icons/fal/falSquare.d.ts +3 -0
- package/icon/icons/fal/falSquare.js +7 -0
- package/icon/icons/fal/falStepForward.d.ts +3 -0
- package/icon/icons/fal/falStepForward.js +7 -0
- package/icon/icons/fal/falStop.d.ts +3 -0
- package/icon/icons/fal/falStop.js +7 -0
- package/icon/icons/fal/falStopCircle.d.ts +3 -0
- package/icon/icons/fal/falStopCircle.js +7 -0
- package/icon/icons/fal/falStopwatch.d.ts +3 -0
- package/icon/icons/fal/falStopwatch.js +7 -0
- package/icon/icons/fal/falSuitcase.d.ts +3 -0
- package/icon/icons/fal/falSuitcase.js +7 -0
- package/icon/icons/fal/falSun.d.ts +3 -0
- package/icon/icons/fal/falSun.js +7 -0
- package/icon/icons/fal/falSync.d.ts +3 -0
- package/icon/icons/fal/falSync.js +7 -0
- package/icon/icons/fal/falTachometer.d.ts +3 -0
- package/icon/icons/fal/falTachometer.js +7 -0
- package/icon/icons/fal/falTemperatureHigh.d.ts +3 -0
- package/icon/icons/fal/falTemperatureHigh.js +7 -0
- package/icon/icons/fal/falTh.d.ts +3 -0
- package/icon/icons/fal/falTh.js +7 -0
- package/icon/icons/fal/falThLarge.d.ts +3 -0
- package/icon/icons/fal/falThLarge.js +7 -0
- package/icon/icons/fal/falThList.d.ts +3 -0
- package/icon/icons/fal/falThList.js +7 -0
- package/icon/icons/fal/falTimes.d.ts +3 -0
- package/icon/icons/fal/falTimes.js +7 -0
- package/icon/icons/fal/falTimesCircle.d.ts +3 -0
- package/icon/icons/fal/falTimesCircle.js +7 -0
- package/icon/icons/fal/falToggleOff.d.ts +3 -0
- package/icon/icons/fal/falToggleOff.js +7 -0
- package/icon/icons/fal/falToggleOn.d.ts +3 -0
- package/icon/icons/fal/falToggleOn.js +7 -0
- package/icon/icons/fal/falTrashAlt.d.ts +3 -0
- package/icon/icons/fal/falTrashAlt.js +7 -0
- package/icon/icons/fal/falUnlockAlt.d.ts +3 -0
- package/icon/icons/fal/falUnlockAlt.js +7 -0
- package/icon/icons/fal/falUser.d.ts +3 -0
- package/icon/icons/fal/falUser.js +7 -0
- package/icon/icons/fal/falUserChart.d.ts +3 -0
- package/icon/icons/fal/falUserChart.js +7 -0
- package/icon/icons/fal/falUserCircle.d.ts +3 -0
- package/icon/icons/fal/falUserCircle.js +7 -0
- package/icon/icons/fal/falUserCog.d.ts +3 -0
- package/icon/icons/fal/falUserCog.js +7 -0
- package/icon/icons/fal/falUserEdit.d.ts +3 -0
- package/icon/icons/fal/falUserEdit.js +7 -0
- package/icon/icons/fal/falUserFriends.d.ts +3 -0
- package/icon/icons/fal/falUserFriends.js +7 -0
- package/icon/icons/fal/falUserPlus.d.ts +3 -0
- package/icon/icons/fal/falUserPlus.js +7 -0
- package/icon/icons/fal/falUserShield.d.ts +3 -0
- package/icon/icons/fal/falUserShield.js +7 -0
- package/icon/icons/fal/falUserTimes.d.ts +3 -0
- package/icon/icons/fal/falUserTimes.js +7 -0
- package/icon/icons/fal/falUsers.d.ts +3 -0
- package/icon/icons/fal/falUsers.js +7 -0
- package/icon/icons/fal/falUsersClass.d.ts +3 -0
- package/icon/icons/fal/falUsersClass.js +7 -0
- package/icon/icons/fal/falWater.d.ts +3 -0
- package/icon/icons/fal/falWater.js +7 -0
- package/icon/icons/fal/falWind.d.ts +3 -0
- package/icon/icons/fal/falWind.js +7 -0
- package/icon/icons/fal/falWindTurbine.d.ts +3 -0
- package/icon/icons/fal/falWindTurbine.js +7 -0
- package/icon/icons/fal/falWrench.d.ts +3 -0
- package/icon/icons/fal/falWrench.js +7 -0
- package/icon/icons/fas/fasCaretDown.d.ts +3 -0
- package/icon/icons/fas/fasCaretDown.js +7 -0
- package/icon/icons/fas/fasCaretLeft.d.ts +3 -0
- package/icon/icons/fas/fasCaretLeft.js +7 -0
- package/icon/icons/fas/fasCaretRight.d.ts +3 -0
- package/icon/icons/fas/fasCaretRight.js +7 -0
- package/icon/icons/fas/fasCaretUp.d.ts +3 -0
- package/icon/icons/fas/fasCaretUp.js +7 -0
- package/icon/icons/fas/fasDiamond.d.ts +3 -0
- package/icon/icons/fas/fasDiamond.js +7 -0
- package/icon/icons/fas/fasFolder.d.ts +3 -0
- package/icon/icons/fas/fasFolder.js +7 -0
- package/icon/icons/fas/fasMapMarkerAlt.d.ts +3 -0
- package/icon/icons/fas/fasMapMarkerAlt.js +7 -0
- package/icon/icons/fas/fasMapMarkerExclamation.d.ts +3 -0
- package/icon/icons/fas/fasMapMarkerExclamation.js +7 -0
- package/icon/icons/fas/fasQuoteLeft.d.ts +3 -0
- package/icon/icons/fas/fasQuoteLeft.js +7 -0
- package/icon/icons/fas/fasQuoteRight.d.ts +3 -0
- package/icon/icons/fas/fasQuoteRight.js +7 -0
- package/icon/icons/fas/fasSolarPanel.d.ts +3 -0
- package/icon/icons/fas/fasSolarPanel.js +7 -0
- package/icon/icons/fas/fasSort.d.ts +3 -0
- package/icon/icons/fas/fasSort.js +7 -0
- package/icon/icons/fas/fasStar.d.ts +3 -0
- package/icon/icons/fas/fasStar.js +7 -0
- package/icon/icons/fas/fasWindTurbine.d.ts +3 -0
- package/icon/icons/fas/fasWindTurbine.js +7 -0
- package/icon/icons/types.d.ts +13 -0
- package/icon/icons/types.js +2 -0
- package/icon/index.d.ts +3 -0
- package/icon/index.js +21 -0
- package/icon/theme.d.ts +25 -0
- package/icon/theme.js +29 -0
- package/index.d.ts +18 -0
- package/index.js +30 -0
- package/input/consts.d.ts +22 -0
- package/input/consts.js +25 -0
- package/input/index.d.ts +3 -0
- package/input/index.js +20 -0
- package/input/input.d.ts +6 -0
- package/input/input.js +75 -0
- package/input/input.types.d.ts +35 -0
- package/input/input.types.js +2 -0
- package/input/theme.d.ts +28 -0
- package/input/theme.js +40 -0
- package/label/index.d.ts +3 -0
- package/label/index.js +20 -0
- package/label/label.d.ts +6 -0
- package/label/label.js +78 -0
- package/label/label.types.d.ts +23 -0
- package/label/label.types.js +2 -0
- package/label/theme.d.ts +45 -0
- package/label/theme.js +74 -0
- package/link/index.d.ts +3 -0
- package/link/index.js +20 -0
- package/link/link.d.ts +6 -0
- package/link/link.js +57 -0
- package/link/link.types.d.ts +12 -0
- package/link/link.types.js +2 -0
- package/link/theme.d.ts +6 -0
- package/link/theme.js +10 -0
- package/list/context.d.ts +4 -0
- package/list/context.js +23 -0
- package/list/index.d.ts +5 -0
- package/list/index.js +22 -0
- package/list/list.d.ts +6 -0
- package/list/list.js +51 -0
- package/list/list.types.d.ts +7 -0
- package/list/list.types.js +2 -0
- package/list/listItem.d.ts +6 -0
- package/list/listItem.js +67 -0
- package/list/listItem.types.d.ts +8 -0
- package/list/listItem.types.js +2 -0
- package/list/theme.d.ts +38 -0
- package/list/theme.js +43 -0
- package/p/index.d.ts +3 -0
- package/p/index.js +20 -0
- package/p/p.d.ts +6 -0
- package/p/p.js +56 -0
- package/p/p.types.d.ts +13 -0
- package/p/p.types.js +2 -0
- package/p/theme.d.ts +29 -0
- package/p/theme.js +33 -0
- package/package.json +27 -0
- package/skeleton/index.d.ts +3 -0
- package/skeleton/index.js +20 -0
- package/skeleton/skeleton.d.ts +6 -0
- package/skeleton/skeleton.js +73 -0
- package/skeleton/skeleton.types.d.ts +9 -0
- package/skeleton/skeleton.types.js +2 -0
- package/skeleton/theme.d.ts +36 -0
- package/skeleton/theme.js +47 -0
- package/styles/animations.d.ts +7 -0
- package/styles/animations.js +10 -0
- package/styles/fonts.d.ts +2 -0
- package/styles/fonts.js +5 -0
- package/styles/helpers.d.ts +8 -0
- package/styles/helpers.js +16 -0
- package/styles/index.d.ts +3 -0
- package/styles/index.js +20 -0
- package/svg/cache.d.ts +15 -0
- package/svg/cache.js +36 -0
- package/svg/helpers.d.ts +10 -0
- package/svg/helpers.js +33 -0
- package/svg/index.d.ts +3 -0
- package/svg/index.js +20 -0
- package/svg/svg.d.ts +6 -0
- package/svg/svg.js +153 -0
- package/svg/svg.types.d.ts +13 -0
- package/svg/svg.types.js +2 -0
- package/system/animations.d.ts +9 -0
- package/system/animations.js +2 -0
- package/system/backgrounds.d.ts +13 -0
- package/system/backgrounds.js +2 -0
- package/system/borders.d.ts +133 -0
- package/system/borders.js +2 -0
- package/system/colors.d.ts +3 -0
- package/system/colors.js +2 -0
- package/system/custom.d.ts +10 -0
- package/system/custom.js +29 -0
- package/system/effects.d.ts +18 -0
- package/system/effects.js +2 -0
- package/system/flexboxes.d.ts +72 -0
- package/system/flexboxes.js +2 -0
- package/system/index.d.ts +14 -0
- package/system/index.js +26 -0
- package/system/interactivity.d.ts +32 -0
- package/system/interactivity.js +2 -0
- package/system/layout.d.ts +78 -0
- package/system/layout.js +2 -0
- package/system/sizing.d.ts +36 -0
- package/system/sizing.js +2 -0
- package/system/space.d.ts +76 -0
- package/system/space.js +2 -0
- package/system/transforms.d.ts +57 -0
- package/system/transforms.js +2 -0
- package/system/transitions.d.ts +33 -0
- package/system/transitions.js +2 -0
- package/system/typography.d.ts +59 -0
- package/system/typography.js +2 -0
- package/t/index.d.ts +3 -0
- package/t/index.js +20 -0
- package/t/t.d.ts +6 -0
- package/t/t.js +56 -0
- package/t/t.types.d.ts +12 -0
- package/t/t.types.js +2 -0
- package/t/theme.d.ts +21 -0
- package/t/theme.js +25 -0
- package/textarea/index.d.ts +3 -0
- package/textarea/index.js +20 -0
- package/textarea/textarea.d.ts +6 -0
- package/textarea/textarea.js +49 -0
- package/textarea/textarea.types.d.ts +8 -0
- package/textarea/textarea.types.js +2 -0
- package/textarea/theme.d.ts +17 -0
- package/textarea/theme.js +28 -0
- package/theme/components.d.ts +353 -0
- package/theme/components.js +33 -0
- package/theme/defaultTheme.d.ts +494 -0
- package/theme/defaultTheme.js +20 -0
- package/theme/foundations/animations.d.ts +10 -0
- package/theme/foundations/animations.js +12 -0
- package/theme/foundations/colors.d.ts +87 -0
- package/theme/foundations/colors.js +89 -0
- package/theme/foundations/durations.d.ts +6 -0
- package/theme/foundations/durations.js +8 -0
- package/theme/foundations/index.d.ts +142 -0
- package/theme/foundations/index.js +32 -0
- package/theme/foundations/radius.d.ts +7 -0
- package/theme/foundations/radius.js +9 -0
- package/theme/foundations/screens.d.ts +8 -0
- package/theme/foundations/screens.js +10 -0
- package/theme/foundations/shadows.d.ts +9 -0
- package/theme/foundations/shadows.js +16 -0
- package/theme/foundations/transformers.d.ts +4 -0
- package/theme/foundations/transformers.js +8 -0
- package/theme/foundations/typography.d.ts +18 -0
- package/theme/foundations/typography.js +20 -0
- package/theme/index.d.ts +3 -0
- package/theme/index.js +18 -0
- package/theme/types.d.ts +19 -0
- package/theme/types.js +2 -0
- package/tile/index.d.ts +3 -0
- package/tile/index.js +20 -0
- package/tile/theme.d.ts +23 -0
- package/tile/theme.js +27 -0
- package/tile/tile.d.ts +3 -0
- package/tile/tile.js +46 -0
- package/tile/tile.types.d.ts +7 -0
- package/tile/tile.types.js +2 -0
- package/utils/dom.d.ts +2 -0
- package/utils/dom.js +12 -0
- package/utils/function.d.ts +5 -0
- package/utils/function.js +36 -0
- package/utils/index.d.ts +4 -0
- package/utils/index.js +16 -0
- package/utils/object.d.ts +27 -0
- package/utils/object.js +93 -0
- package/utils/types.d.ts +3 -0
- package/utils/types.js +3 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './box';
|
|
2
|
+
export * from './button';
|
|
3
|
+
export * from './core';
|
|
4
|
+
export * from './heading';
|
|
5
|
+
export * from './icon';
|
|
6
|
+
export * from './input';
|
|
7
|
+
export * from './label';
|
|
8
|
+
export * from './link';
|
|
9
|
+
export * from './list';
|
|
10
|
+
export * from './p';
|
|
11
|
+
export * from './skeleton';
|
|
12
|
+
export * from './svg';
|
|
13
|
+
export * from './system';
|
|
14
|
+
export * from './t';
|
|
15
|
+
export * from './textarea';
|
|
16
|
+
export * from './theme';
|
|
17
|
+
export * from './tile';
|
|
18
|
+
export * from './utils';
|
package/index.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./box"), exports);
|
|
14
|
+
__exportStar(require("./button"), exports);
|
|
15
|
+
__exportStar(require("./core"), exports);
|
|
16
|
+
__exportStar(require("./heading"), exports);
|
|
17
|
+
__exportStar(require("./icon"), exports);
|
|
18
|
+
__exportStar(require("./input"), exports);
|
|
19
|
+
__exportStar(require("./label"), exports);
|
|
20
|
+
__exportStar(require("./link"), exports);
|
|
21
|
+
__exportStar(require("./list"), exports);
|
|
22
|
+
__exportStar(require("./p"), exports);
|
|
23
|
+
__exportStar(require("./skeleton"), exports);
|
|
24
|
+
__exportStar(require("./svg"), exports);
|
|
25
|
+
__exportStar(require("./system"), exports);
|
|
26
|
+
__exportStar(require("./t"), exports);
|
|
27
|
+
__exportStar(require("./textarea"), exports);
|
|
28
|
+
__exportStar(require("./theme"), exports);
|
|
29
|
+
__exportStar(require("./tile"), exports);
|
|
30
|
+
__exportStar(require("./utils"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const inputLengths: {
|
|
2
|
+
fluid: string;
|
|
3
|
+
xs: number;
|
|
4
|
+
sm: number;
|
|
5
|
+
md: number;
|
|
6
|
+
lg: number;
|
|
7
|
+
xl: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const inputStates: {
|
|
10
|
+
default: {
|
|
11
|
+
colorScheme: string;
|
|
12
|
+
iconRight: string;
|
|
13
|
+
};
|
|
14
|
+
error: {
|
|
15
|
+
colorScheme: string;
|
|
16
|
+
iconRight: string;
|
|
17
|
+
};
|
|
18
|
+
success: {
|
|
19
|
+
colorScheme: string;
|
|
20
|
+
iconRight: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
package/input/consts.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.inputStates = exports.inputLengths = void 0;
|
|
4
|
+
exports.inputLengths = {
|
|
5
|
+
fluid: 'none',
|
|
6
|
+
xs: 104,
|
|
7
|
+
sm: 160,
|
|
8
|
+
md: 240,
|
|
9
|
+
lg: 320,
|
|
10
|
+
xl: 480
|
|
11
|
+
};
|
|
12
|
+
exports.inputStates = {
|
|
13
|
+
default: {
|
|
14
|
+
colorScheme: 'grey',
|
|
15
|
+
iconRight: ''
|
|
16
|
+
},
|
|
17
|
+
error: {
|
|
18
|
+
colorScheme: 'red',
|
|
19
|
+
iconRight: 'falExclamationTriangle'
|
|
20
|
+
},
|
|
21
|
+
success: {
|
|
22
|
+
colorScheme: 'green',
|
|
23
|
+
iconRight: 'falCheck'
|
|
24
|
+
}
|
|
25
|
+
};
|
package/input/index.d.ts
ADDED
package/input/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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("./input"), exports);
|
|
18
|
+
__exportStar(require("./input.types"), exports);
|
|
19
|
+
var input_1 = require("./input");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(input_1).default; } });
|
package/input/input.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InputFieldProps, InputFieldStyleProps } from './input.types';
|
|
2
|
+
export declare const BaseInputField: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
+
[x: string]: {};
|
|
4
|
+
} & InputFieldStyleProps, never>;
|
|
5
|
+
export declare const InputField: import("styled-components").StyledComponent<"div", never, InputFieldProps, never>;
|
|
6
|
+
export default InputField;
|
package/input/input.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
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.InputField = exports.BaseInputField = 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 consts_1 = require("./consts");
|
|
37
|
+
var core_1 = require("../core");
|
|
38
|
+
var icon_1 = __importDefault(require("../icon"));
|
|
39
|
+
var utils_1 = require("../utils");
|
|
40
|
+
var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.flexboxes, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions);
|
|
41
|
+
var Input = styled_components_2.default.input(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-self: stretch;\n\tbackground-color: transparent;\n\tborder: none;\n\tcolor: prussian.80;\n\tflex: 1;\n\tmargin: 0 8px;\n\tmin-width: 0;\n\toutline: none;\n\tpadding: 0;\n\n\t", "\n"], ["\n\talign-self: stretch;\n\tbackground-color: transparent;\n\tborder: none;\n\tcolor: prussian.80;\n\tflex: 1;\n\tmargin: 0 8px;\n\tmin-width: 0;\n\toutline: none;\n\tpadding: 0;\n\n\t", "\n"])), styled_components_1.compose(styled_components_1.color, styled_components_1.fontSize));
|
|
42
|
+
exports.BaseInputField = styled_components_2.default.div.withConfig({
|
|
43
|
+
shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
|
|
44
|
+
})(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tborder-width: 1px;\n\tdisplay: flex;\n\toutline: none;\n\ttransition: all 0s ease-in-out;\n\twidth: 100%;\n\n\t", "\n"], ["\n\talign-items: center;\n\tborder-width: 1px;\n\tdisplay: flex;\n\toutline: none;\n\ttransition: all 0s ease-in-out;\n\twidth: 100%;\n\n\t", "\n"])), generator);
|
|
45
|
+
exports.InputField = core_1.forwardRef(function (props, ref) {
|
|
46
|
+
var _a = core_1.omitThemingProps(props), autoComplete = _a.autoComplete, autoFocus = _a.autoFocus, className = _a.className, defaultValue = _a.defaultValue, disabled = _a.disabled, iconLeft = _a.iconLeft, iconRightProp = _a.iconRight, _b = _a.inputProps, inputProps = _b === void 0 ? {} : _b, inputRef = _a.inputRef, itemLeft = _a.itemLeft, itemRight = _a.itemRight, _c = _a.length, length = _c === void 0 ? 'fluid' : _c, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, placeholder = _a.placeholder, readOnly = _a.readOnly, required = _a.required, _d = _a.state, state = _d === void 0 ? 'default' : _d, _e = _a.type, type = _e === void 0 ? 'text' : _e, value = _a.value, rest = __rest(_a, ["autoComplete", "autoFocus", "className", "defaultValue", "disabled", "iconLeft", "iconRight", "inputProps", "inputRef", "itemLeft", "itemRight", "length", "name", "onBlur", "onChange", "onFocus", "placeholder", "readOnly", "required", "state", "type", "value"]);
|
|
47
|
+
var _f = core_1.useStyleConfig('Input', __assign({ colorScheme: consts_1.inputStates[state].colorScheme }, props)), borderColor = _f.borderColor, focusWithinRingColor = _f.focusWithinRingColor, fontSize = _f.fontSize, iconColor = _f.iconColor, styles = __rest(_f, ["borderColor", "focusWithinRingColor", "fontSize", "iconColor"]);
|
|
48
|
+
var iconRight = iconRightProp !== null && iconRightProp !== void 0 ? iconRightProp : consts_1.inputStates[state].iconRight;
|
|
49
|
+
var placeholderColor = disabled ? 'prussian.80' : 'grey.70';
|
|
50
|
+
var aliasedProps = utils_1.filterUndefined({
|
|
51
|
+
bg: disabled || readOnly ? 'grey.20' : undefined,
|
|
52
|
+
maxW: consts_1.inputLengths[length]
|
|
53
|
+
});
|
|
54
|
+
return (react_1.default.createElement(exports.BaseInputField, __assign({ borderColor: !disabled ? borderColor : 'transparent', borderRadius: "md", className: utils_1.cs('vui-inputField', className), focusWithinBorderColor: readOnly ? borderColor : 'transparent', focusWithinRingColor: !readOnly ? focusWithinRingColor : 'transparent', px: 1, ref: ref, transitionDuration: "fast" }, styles, aliasedProps, rest), itemLeft !== null && itemLeft !== void 0 ? itemLeft : (iconLeft && react_1.default.createElement(icon_1.default, { color: iconColor, icon: iconLeft })),
|
|
55
|
+
react_1.default.createElement(Input, __assign({ className: "vui-input", ref: inputRef }, {
|
|
56
|
+
autoComplete: autoComplete,
|
|
57
|
+
autoFocus: autoFocus,
|
|
58
|
+
defaultValue: defaultValue,
|
|
59
|
+
disabled: disabled,
|
|
60
|
+
fontSize: fontSize,
|
|
61
|
+
name: name,
|
|
62
|
+
onBlur: onBlur,
|
|
63
|
+
onChange: onChange,
|
|
64
|
+
onFocus: onFocus,
|
|
65
|
+
placeholder: placeholder,
|
|
66
|
+
placeholderColor: placeholderColor,
|
|
67
|
+
readOnly: readOnly,
|
|
68
|
+
required: required,
|
|
69
|
+
type: type,
|
|
70
|
+
value: value
|
|
71
|
+
}, inputProps)), itemRight !== null && itemRight !== void 0 ? itemRight : (iconRight && react_1.default.createElement(icon_1.default, { color: iconColor, icon: iconRight }))));
|
|
72
|
+
});
|
|
73
|
+
exports.InputField.displayName = 'InputField';
|
|
74
|
+
exports.default = exports.InputField;
|
|
75
|
+
var templateObject_1, templateObject_2;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { inputLengths, inputStates } from './consts';
|
|
3
|
+
import { IconProp } from '../icon';
|
|
4
|
+
import { BackgroundColorProps, BordersProps, ColorProps, EffectsProps, FontSizeProps, SizingProps, SpaceProps, TransitionsProps } from '../system';
|
|
5
|
+
import { ThemingProps } from '../theme';
|
|
6
|
+
export declare type InputFieldLength = keyof typeof inputLengths;
|
|
7
|
+
export interface InputFieldProps extends HTMLAttributes<HTMLDivElement>, InputFieldStyleProps, ThemingProps<'Input'> {
|
|
8
|
+
autoComplete?: string;
|
|
9
|
+
autoFocus?: boolean;
|
|
10
|
+
colorScheme?: 'green' | 'grey' | 'red';
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
iconLeft?: IconProp;
|
|
13
|
+
iconRight?: IconProp;
|
|
14
|
+
inputProps?: InputProps;
|
|
15
|
+
inputRef?: React.MutableRefObject<HTMLInputElement | null> | null;
|
|
16
|
+
itemLeft?: React.ReactNode;
|
|
17
|
+
itemRight?: React.ReactNode;
|
|
18
|
+
length?: InputFieldLength;
|
|
19
|
+
name?: string;
|
|
20
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
readOnly?: boolean;
|
|
23
|
+
required?: boolean;
|
|
24
|
+
state?: InputFieldState;
|
|
25
|
+
type?: string;
|
|
26
|
+
value?: number | string;
|
|
27
|
+
}
|
|
28
|
+
export declare type InputFieldState = keyof typeof inputStates;
|
|
29
|
+
export interface InputFieldStyleProps extends BackgroundColorProps, BordersProps, EffectsProps, SizingProps, SpaceProps, TransitionsProps {
|
|
30
|
+
}
|
|
31
|
+
export interface InputProps extends Omit<HTMLAttributes<HTMLInputElement>, 'color'>, InputStyleProps {
|
|
32
|
+
color?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface InputStyleProps extends ColorProps, FontSizeProps {
|
|
35
|
+
}
|
package/input/theme.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Dict } from '../utils';
|
|
2
|
+
declare function variantDefault(props: Dict): {
|
|
3
|
+
borderColor: string;
|
|
4
|
+
focusWithinRing: number;
|
|
5
|
+
focusWithinRingColor: string;
|
|
6
|
+
iconColor: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: {
|
|
9
|
+
defaultProps: {
|
|
10
|
+
colorScheme: string;
|
|
11
|
+
size: string;
|
|
12
|
+
variant: string;
|
|
13
|
+
};
|
|
14
|
+
sizes: {
|
|
15
|
+
md: {
|
|
16
|
+
fontSize: string;
|
|
17
|
+
h: number;
|
|
18
|
+
};
|
|
19
|
+
lg: {
|
|
20
|
+
fontSize: string;
|
|
21
|
+
h: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
variants: {
|
|
25
|
+
default: typeof variantDefault;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
package/input/theme.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function variantDefault(props) {
|
|
4
|
+
var c = props.colorScheme;
|
|
5
|
+
var colors = {
|
|
6
|
+
borderColor: c + ".80",
|
|
7
|
+
focusWithinRing: 2,
|
|
8
|
+
focusWithinRingColor: c + ".80",
|
|
9
|
+
iconColor: c + ".80"
|
|
10
|
+
};
|
|
11
|
+
if (c === 'grey') {
|
|
12
|
+
colors.borderColor = c + ".60";
|
|
13
|
+
colors.focusWithinRingColor = 'blue.70';
|
|
14
|
+
colors.iconColor = 'blue.80';
|
|
15
|
+
}
|
|
16
|
+
return colors;
|
|
17
|
+
}
|
|
18
|
+
var defaultProps = {
|
|
19
|
+
colorScheme: 'grey',
|
|
20
|
+
size: 'md',
|
|
21
|
+
variant: 'default'
|
|
22
|
+
};
|
|
23
|
+
var sizes = {
|
|
24
|
+
md: {
|
|
25
|
+
fontSize: 'md',
|
|
26
|
+
h: 40
|
|
27
|
+
},
|
|
28
|
+
lg: {
|
|
29
|
+
fontSize: 'lg',
|
|
30
|
+
h: 48
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
var variants = {
|
|
34
|
+
default: variantDefault
|
|
35
|
+
};
|
|
36
|
+
exports.default = {
|
|
37
|
+
defaultProps: defaultProps,
|
|
38
|
+
sizes: sizes,
|
|
39
|
+
variants: variants
|
|
40
|
+
};
|
package/label/index.d.ts
ADDED
package/label/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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("./label"), exports);
|
|
18
|
+
__exportStar(require("./label.types"), exports);
|
|
19
|
+
var label_1 = require("./label");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(label_1).default; } });
|
package/label/label.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LabelProps, LabelStyleProps } from './label.types';
|
|
2
|
+
export declare const BaseLabel: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
|
|
3
|
+
[x: string]: {};
|
|
4
|
+
} & LabelStyleProps, never>;
|
|
5
|
+
export declare const Label: import("styled-components").StyledComponent<"span", never, LabelProps, never>;
|
|
6
|
+
export default Label;
|
package/label/label.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
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.Label = exports.BaseLabel = 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 core_1 = require("../core");
|
|
37
|
+
var icon_1 = __importDefault(require("../icon"));
|
|
38
|
+
var system_1 = require("../system");
|
|
39
|
+
var utils_1 = require("../utils");
|
|
40
|
+
var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.effects, styled_components_1.flexboxes, styled_components_1.interactivity, system_1.isTruncated, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
|
|
41
|
+
var Text = styled_components_2.default.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), system_1.isTruncated);
|
|
42
|
+
exports.BaseLabel = styled_components_2.default.span.withConfig({
|
|
43
|
+
shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
|
|
44
|
+
})(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\tline-height: 1.1;\n\tmin-width: 0px;\n\tposition: relative;\n\ttransition: all 0s ease-in-out;\n\twidth: fit-content;\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\tline-height: 1.1;\n\tmin-width: 0px;\n\tposition: relative;\n\ttransition: all 0s ease-in-out;\n\twidth: fit-content;\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t", "\n"])), generator);
|
|
45
|
+
exports.Label = core_1.forwardRef(function (props, ref) {
|
|
46
|
+
var _a = core_1.omitThemingProps(props), casing = _a.casing, children = _a.children, className = _a.className, icon = _a.icon, iconLeft = _a.iconLeft, iconRight = _a.iconRight, isElevated = _a.isElevated, isFullWidth = _a.isFullWidth, _b = _a.isInteractive, isInteractive = _b === void 0 ? props.onClick !== undefined : _b, isLoading = _a.isLoading, isRound = _a.isRound, isSplit = _a.isSplit, _c = _a.isTruncated, isTruncated = _c === void 0 ? true : _c, itemLeft = _a.itemLeft, itemRight = _a.itemRight, text = _a.text, weight = _a.weight, rest = __rest(_a, ["casing", "children", "className", "icon", "iconLeft", "iconRight", "isElevated", "isFullWidth", "isInteractive", "isLoading", "isRound", "isSplit", "isTruncated", "itemLeft", "itemRight", "text", "weight"]);
|
|
47
|
+
var _d = core_1.useStyleConfig('Label', props), activeBg = _d.activeBg, h = _d.h, hoverBg = _d.hoverBg, _e = _d.iconSize, iconSize = _e === void 0 ? 'md' : _e, _f = _d.spaceX, spaceXBase = _f === void 0 ? 0 : _f, styles = __rest(_d, ["activeBg", "h", "hoverBg", "iconSize", "spaceX"]);
|
|
48
|
+
var spaceX = spaceXBase / 8;
|
|
49
|
+
var spaceXText = (spaceXBase + 4) / 8;
|
|
50
|
+
var iconRightMl = isSplit ? 'auto' : spaceX;
|
|
51
|
+
var pl = icon || itemLeft || iconLeft ? spaceX : spaceXText;
|
|
52
|
+
var pr = icon || itemRight || iconRight ? spaceX : spaceXText;
|
|
53
|
+
var interactiveProps = isInteractive
|
|
54
|
+
? {
|
|
55
|
+
cursor: 'pointer',
|
|
56
|
+
hoverBg: hoverBg,
|
|
57
|
+
activeBg: activeBg,
|
|
58
|
+
focusRing: 3,
|
|
59
|
+
focusRingColor: 'blue.50',
|
|
60
|
+
tabIndex: 0,
|
|
61
|
+
userSelect: 'none'
|
|
62
|
+
}
|
|
63
|
+
: {};
|
|
64
|
+
var aliasedProps = utils_1.filterUndefined({
|
|
65
|
+
borderRadius: isRound ? h / 2 : undefined,
|
|
66
|
+
boxShadow: isElevated ? 2 : undefined,
|
|
67
|
+
fontWeight: weight,
|
|
68
|
+
pointerEvents: isLoading ? 'none' : undefined,
|
|
69
|
+
textTransform: casing,
|
|
70
|
+
w: isFullWidth ? '100%' : undefined
|
|
71
|
+
});
|
|
72
|
+
return (react_1.default.createElement(exports.BaseLabel, __assign({ borderRadius: "md", className: utils_1.cs('vui-label', className), fontWeight: "medium", h: h, pl: pl, pr: pr, ref: ref, transitionDuration: "fast" }, styles, interactiveProps, aliasedProps, rest), icon ? (react_1.default.createElement(icon_1.default, { icon: icon, size: iconSize })) : (react_1.default.createElement(react_1.default.Fragment, null, itemLeft !== null && itemLeft !== void 0 ? itemLeft : (iconLeft && react_1.default.createElement(icon_1.default, { icon: iconLeft, mr: spaceX, size: iconSize })),
|
|
73
|
+
react_1.default.createElement(Text, { isTruncated: isTruncated }, children !== null && children !== void 0 ? children : text), itemRight !== null && itemRight !== void 0 ? itemRight : (iconRight && react_1.default.createElement(icon_1.default, { icon: iconRight, ml: iconRightMl, size: iconSize })),
|
|
74
|
+
isLoading && react_1.default.createElement(icon_1.default, { animation: "spin", icon: "falSpinner", ml: iconRightMl, size: iconSize })))));
|
|
75
|
+
});
|
|
76
|
+
exports.Label.displayName = 'Label';
|
|
77
|
+
exports.default = exports.Label;
|
|
78
|
+
var templateObject_1, templateObject_2;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { IconProp } from '../icon';
|
|
3
|
+
import { BackgroundColorProps, BordersProps, EffectsProps, InteractivityProps, IsTruncatedProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps } from '../system';
|
|
4
|
+
import { ThemingProps } from '../theme';
|
|
5
|
+
export interface LabelProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'color'>, LabelStyleProps, ThemingProps<'Label'> {
|
|
6
|
+
casing?: TypographyProps['textTransform'];
|
|
7
|
+
colorScheme?: 'blue' | 'green' | 'grey' | 'prussian' | 'red' | 'yellow';
|
|
8
|
+
icon?: IconProp;
|
|
9
|
+
iconLeft?: IconProp;
|
|
10
|
+
iconRight?: IconProp;
|
|
11
|
+
isElevated?: boolean;
|
|
12
|
+
isFullWidth?: boolean;
|
|
13
|
+
isInteractive?: boolean;
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
isRound?: boolean;
|
|
16
|
+
isSplit?: boolean;
|
|
17
|
+
itemLeft?: React.ReactNode;
|
|
18
|
+
itemRight?: React.ReactNode;
|
|
19
|
+
text?: string;
|
|
20
|
+
weight?: TypographyProps['fontWeight'];
|
|
21
|
+
}
|
|
22
|
+
export interface LabelStyleProps extends BackgroundColorProps, BordersProps, EffectsProps, InteractivityProps, IsTruncatedProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
|
23
|
+
}
|
package/label/theme.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Dict } from '../utils';
|
|
2
|
+
declare function variantSolid(props: Dict): {
|
|
3
|
+
hoverBg: string;
|
|
4
|
+
activeBg: string;
|
|
5
|
+
bg: string;
|
|
6
|
+
color: string;
|
|
7
|
+
};
|
|
8
|
+
declare function variantSubtle(props: Dict): {
|
|
9
|
+
hoverBg: string;
|
|
10
|
+
activeBg: string;
|
|
11
|
+
bg: string;
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: {
|
|
15
|
+
defaultProps: {
|
|
16
|
+
colorScheme: string;
|
|
17
|
+
size: string;
|
|
18
|
+
variant: string;
|
|
19
|
+
};
|
|
20
|
+
sizes: {
|
|
21
|
+
sm: {
|
|
22
|
+
fontSize: string;
|
|
23
|
+
h: number;
|
|
24
|
+
iconSize: string;
|
|
25
|
+
spaceX: number;
|
|
26
|
+
};
|
|
27
|
+
md: {
|
|
28
|
+
fontSize: string;
|
|
29
|
+
h: number;
|
|
30
|
+
iconSize: string;
|
|
31
|
+
spaceX: number;
|
|
32
|
+
};
|
|
33
|
+
lg: {
|
|
34
|
+
fontSize: string;
|
|
35
|
+
h: number;
|
|
36
|
+
iconSize: string;
|
|
37
|
+
spaceX: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
variants: {
|
|
41
|
+
solid: typeof variantSolid;
|
|
42
|
+
subtle: typeof variantSubtle;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export default _default;
|
package/label/theme.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function variantSolid(props) {
|
|
4
|
+
var c = props.colorScheme;
|
|
5
|
+
var colors = {
|
|
6
|
+
hoverBg: c + ".90",
|
|
7
|
+
activeBg: c + ".100",
|
|
8
|
+
bg: c + ".80",
|
|
9
|
+
color: 'white'
|
|
10
|
+
};
|
|
11
|
+
if (c === 'yellow') {
|
|
12
|
+
colors.hoverBg = c + ".80";
|
|
13
|
+
colors.activeBg = c + ".90";
|
|
14
|
+
colors.bg = c + ".70";
|
|
15
|
+
}
|
|
16
|
+
return colors;
|
|
17
|
+
}
|
|
18
|
+
function variantSubtle(props) {
|
|
19
|
+
var c = props.colorScheme;
|
|
20
|
+
var colors = {
|
|
21
|
+
hoverBg: c + ".30",
|
|
22
|
+
activeBg: c + ".40",
|
|
23
|
+
bg: c + ".20",
|
|
24
|
+
color: c + ".80"
|
|
25
|
+
};
|
|
26
|
+
// Special cases
|
|
27
|
+
if (c === 'green') {
|
|
28
|
+
colors.color = c + ".90";
|
|
29
|
+
}
|
|
30
|
+
if (c === 'grey') {
|
|
31
|
+
colors.color = "prussian.80";
|
|
32
|
+
}
|
|
33
|
+
if (c === 'red') {
|
|
34
|
+
colors.color = c + ".90";
|
|
35
|
+
}
|
|
36
|
+
if (c === 'yellow') {
|
|
37
|
+
colors.color = c + ".100";
|
|
38
|
+
}
|
|
39
|
+
return colors;
|
|
40
|
+
}
|
|
41
|
+
var defaultProps = {
|
|
42
|
+
colorScheme: 'blue',
|
|
43
|
+
size: 'md',
|
|
44
|
+
variant: 'subtle'
|
|
45
|
+
};
|
|
46
|
+
var sizes = {
|
|
47
|
+
sm: {
|
|
48
|
+
fontSize: 'sm',
|
|
49
|
+
h: 24,
|
|
50
|
+
iconSize: 'xs',
|
|
51
|
+
spaceX: 4
|
|
52
|
+
},
|
|
53
|
+
md: {
|
|
54
|
+
fontSize: 'sm',
|
|
55
|
+
h: 32,
|
|
56
|
+
iconSize: 'sm',
|
|
57
|
+
spaceX: 6
|
|
58
|
+
},
|
|
59
|
+
lg: {
|
|
60
|
+
fontSize: 'md',
|
|
61
|
+
h: 40,
|
|
62
|
+
iconSize: 'md',
|
|
63
|
+
spaceX: 8
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
var variants = {
|
|
67
|
+
solid: variantSolid,
|
|
68
|
+
subtle: variantSubtle
|
|
69
|
+
};
|
|
70
|
+
exports.default = {
|
|
71
|
+
defaultProps: defaultProps,
|
|
72
|
+
sizes: sizes,
|
|
73
|
+
variants: variants
|
|
74
|
+
};
|
package/link/index.d.ts
ADDED
package/link/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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("./link"), exports);
|
|
18
|
+
__exportStar(require("./link.types"), exports);
|
|
19
|
+
var link_1 = require("./link");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(link_1).default; } });
|
package/link/link.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LinkProps, LinkStyleProps } from './link.types';
|
|
2
|
+
export declare const BaseLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {
|
|
3
|
+
[x: string]: {};
|
|
4
|
+
} & LinkStyleProps, never>;
|
|
5
|
+
export declare const Link: import("styled-components").StyledComponent<"a", never, LinkProps, never>;
|
|
6
|
+
export default Link;
|