@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/link/link.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
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.Link = exports.BaseLink = 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 system_1 = require("../system");
|
|
38
|
+
var utils_1 = require("../utils");
|
|
39
|
+
var generator = styled_components_1.compose(styled_components_1.borders, system_1.isTruncated, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
|
|
40
|
+
exports.BaseLink = styled_components_2.default.a.withConfig({
|
|
41
|
+
shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
|
|
42
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tcursor: pointer;\n\toutline: none;\n\ttext-decoration: none;\n\ttransition: all 0s ease-in-out;\n\n\t", "\n"], ["\n\tcursor: pointer;\n\toutline: none;\n\ttext-decoration: none;\n\ttransition: all 0s ease-in-out;\n\n\t", "\n"])), generator);
|
|
43
|
+
exports.Link = core_1.forwardRef(function (props, ref) {
|
|
44
|
+
var _a = core_1.omitThemingProps(props), className = _a.className, decoration = _a.decoration, _b = _a.hoverDecoration, hoverDecoration = _b === void 0 ? 'underline' : _b, isExternal = _a.isExternal, weight = _a.weight, rest = __rest(_a, ["className", "decoration", "hoverDecoration", "isExternal", "weight"]);
|
|
45
|
+
var styles = core_1.useStyleConfig('Link', props);
|
|
46
|
+
var aliasedProps = utils_1.filterUndefined({
|
|
47
|
+
fontWeight: weight,
|
|
48
|
+
hoverTextDecoration: hoverDecoration,
|
|
49
|
+
rel: isExternal ? 'noopener' : undefined,
|
|
50
|
+
target: isExternal ? '_blank' : undefined,
|
|
51
|
+
textDecoration: decoration
|
|
52
|
+
});
|
|
53
|
+
return (react_1.default.createElement(exports.BaseLink, __assign({ borderRadius: "sm", className: utils_1.cs('vui-link', className), color: "blue.80", focusRing: 2, focusRingColor: "blue.50", ref: ref, transitionDuration: "fast" }, styles, aliasedProps, rest)));
|
|
54
|
+
});
|
|
55
|
+
exports.Link.displayName = 'Link';
|
|
56
|
+
exports.default = exports.Link;
|
|
57
|
+
var templateObject_1;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { BordersProps, IsTruncatedProps, SizingProps, SpaceProps, TextDecorationProps, TransitionsProps, TypographyProps } from '../system';
|
|
3
|
+
import { FontWeight, ThemingProps, VuiTheme } from '../theme';
|
|
4
|
+
import { AnyString } from '../utils';
|
|
5
|
+
export interface LinkProps extends Omit<HTMLAttributes<HTMLAnchorElement>, 'color'>, LinkStyleProps, ThemingProps<'Link'> {
|
|
6
|
+
decoration?: TextDecorationProps['textDecoration'];
|
|
7
|
+
hoverDecoration?: TextDecorationProps['textDecoration'];
|
|
8
|
+
isExternal?: boolean;
|
|
9
|
+
weight?: FontWeight | AnyString | number;
|
|
10
|
+
}
|
|
11
|
+
export interface LinkStyleProps extends BordersProps, IsTruncatedProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps<VuiTheme> {
|
|
12
|
+
}
|
package/link/theme.d.ts
ADDED
package/link/theme.js
ADDED
package/list/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.useList = exports.ListProvider = void 0;
|
|
20
|
+
var core_1 = require("../core");
|
|
21
|
+
var _a = __read(core_1.createContext(), 2), ListProvider = _a[0], useList = _a[1];
|
|
22
|
+
exports.ListProvider = ListProvider;
|
|
23
|
+
exports.useList = useList;
|
package/list/index.d.ts
ADDED
package/list/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
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("./list"), exports);
|
|
18
|
+
__exportStar(require("./list.types"), exports);
|
|
19
|
+
__exportStar(require("./listItem"), exports);
|
|
20
|
+
__exportStar(require("./listItem.types"), exports);
|
|
21
|
+
var list_1 = require("./list");
|
|
22
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(list_1).default; } });
|
package/list/list.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ListProps, ListStyleProps } from './list.types';
|
|
2
|
+
export declare const BaseList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {
|
|
3
|
+
[x: string]: {};
|
|
4
|
+
} & ListStyleProps, never>;
|
|
5
|
+
export declare const List: import("styled-components").StyledComponent<"ul", never, ListProps, never>;
|
|
6
|
+
export default List;
|
package/list/list.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
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.List = exports.BaseList = 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 utils_1 = require("../utils");
|
|
39
|
+
var generator = styled_components_1.compose(styled_components_1.sizing, styled_components_1.space);
|
|
40
|
+
exports.BaseList = styled_components_2.default.ul.withConfig({
|
|
41
|
+
shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
|
|
42
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tposition: relative;\n\n\t", "\n"], ["\n\tposition: relative;\n\n\t", "\n"])), generator);
|
|
43
|
+
exports.List = core_1.forwardRef(function (props, ref) {
|
|
44
|
+
var _a = core_1.omitThemingProps(props), className = _a.className, rest = __rest(_a, ["className"]);
|
|
45
|
+
var styles = core_1.useStyleConfig('List', props);
|
|
46
|
+
return (react_1.default.createElement(context_1.ListProvider, { value: styles },
|
|
47
|
+
react_1.default.createElement(exports.BaseList, __assign({ className: utils_1.cs('vui-list', className), ref: ref }, styles.list, rest))));
|
|
48
|
+
});
|
|
49
|
+
exports.List.displayName = 'List';
|
|
50
|
+
exports.default = exports.List;
|
|
51
|
+
var templateObject_1;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { SizingProps, SpaceProps, TransitionsProps } from '../system';
|
|
3
|
+
import { ThemingProps } from '../theme';
|
|
4
|
+
export interface ListProps extends HTMLAttributes<HTMLUListElement>, ListStyleProps, ThemingProps<'List'> {
|
|
5
|
+
}
|
|
6
|
+
export interface ListStyleProps extends SizingProps, SpaceProps, TransitionsProps {
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ListItemProps, ListItemStyleProps } from './listItem.types';
|
|
2
|
+
export declare const BaseListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {
|
|
3
|
+
[x: string]: {};
|
|
4
|
+
} & ListItemStyleProps, never>;
|
|
5
|
+
export declare const ListItem: import("styled-components").StyledComponent<"li", never, ListItemProps, never>;
|
|
6
|
+
export default ListItem;
|
package/list/listItem.js
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
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.ListItem = exports.BaseListItem = 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 utils_1 = require("../utils");
|
|
39
|
+
var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.color, styled_components_1.flexboxes, styled_components_1.fontSize, styled_components_1.interactivity, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions);
|
|
40
|
+
exports.BaseListItem = styled_components_2.default.li.withConfig({
|
|
41
|
+
shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
|
|
42
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: flex;\n\tline-height: 1.1;\n\toutline: none;\n\ttransition: all 0s ease-in-out;\n\n\t", "\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", "\n"])), generator);
|
|
43
|
+
exports.ListItem = core_1.forwardRef(function (props, ref) {
|
|
44
|
+
var className = props.className, _a = props.isInteractive, isInteractive = _a === void 0 ? props.onClick !== undefined : _a, isSelected = props.isSelected, rest = __rest(props, ["className", "isInteractive", "isSelected"]);
|
|
45
|
+
var styles = context_1.useList();
|
|
46
|
+
var _b = styles.item, activeBg = _b.activeBg, hoverBg = _b.hoverBg, hoverColor = _b.hoverColor, itemStyles = __rest(_b, ["activeBg", "hoverBg", "hoverColor"]);
|
|
47
|
+
var interactiveProps = isInteractive
|
|
48
|
+
? {
|
|
49
|
+
cursor: 'pointer',
|
|
50
|
+
focusVisibleRing: 3,
|
|
51
|
+
focusVisibleRingColor: 'blue.50',
|
|
52
|
+
hoverBg: hoverBg,
|
|
53
|
+
activeBg: activeBg,
|
|
54
|
+
hoverColor: hoverColor,
|
|
55
|
+
tabIndex: 0,
|
|
56
|
+
userSelect: 'none'
|
|
57
|
+
}
|
|
58
|
+
: {};
|
|
59
|
+
var aliasedProps = utils_1.filterUndefined({
|
|
60
|
+
bg: isSelected ? hoverBg : undefined,
|
|
61
|
+
color: isSelected ? hoverColor : undefined
|
|
62
|
+
});
|
|
63
|
+
return (react_1.default.createElement(exports.BaseListItem, __assign({ className: utils_1.cs('vui-listItem', className), px: 1, ref: ref, transitionDuration: "fast" }, itemStyles, interactiveProps, aliasedProps, rest)));
|
|
64
|
+
});
|
|
65
|
+
exports.ListItem.displayName = 'ListItem';
|
|
66
|
+
exports.default = exports.ListItem;
|
|
67
|
+
var templateObject_1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { BackgroundColorProps, ColorProps, FlexboxesProps, FontSizeProps, InteractivityProps, SizingProps, SpaceProps, TransitionsProps } from '../system';
|
|
3
|
+
export interface ListItemProps extends Omit<HTMLAttributes<HTMLLIElement>, 'color'>, ListItemStyleProps {
|
|
4
|
+
isInteractive?: boolean;
|
|
5
|
+
isSelected?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface ListItemStyleProps extends BackgroundColorProps, ColorProps, FlexboxesProps, FontSizeProps, InteractivityProps, SizingProps, SpaceProps, TransitionsProps {
|
|
8
|
+
}
|
package/list/theme.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
defaultProps: {
|
|
3
|
+
size: string;
|
|
4
|
+
variant: string;
|
|
5
|
+
};
|
|
6
|
+
parts: string[];
|
|
7
|
+
sizes: {
|
|
8
|
+
sm: {
|
|
9
|
+
item: {
|
|
10
|
+
fontSize: string;
|
|
11
|
+
h: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
md: {
|
|
15
|
+
item: {
|
|
16
|
+
fontSize: string;
|
|
17
|
+
h: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
lg: {
|
|
21
|
+
item: {
|
|
22
|
+
fontSize: string;
|
|
23
|
+
h: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
variants: {
|
|
28
|
+
default: {
|
|
29
|
+
item: {
|
|
30
|
+
activeBg: string;
|
|
31
|
+
borderRadius: string;
|
|
32
|
+
hoverBg: string;
|
|
33
|
+
hoverColor: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
package/list/theme.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var defaultProps = {
|
|
4
|
+
size: 'md',
|
|
5
|
+
variant: 'default'
|
|
6
|
+
};
|
|
7
|
+
var parts = ['list', 'item'];
|
|
8
|
+
var sizes = {
|
|
9
|
+
sm: {
|
|
10
|
+
item: {
|
|
11
|
+
fontSize: 'sm',
|
|
12
|
+
h: 32
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
md: {
|
|
16
|
+
item: {
|
|
17
|
+
fontSize: 'md',
|
|
18
|
+
h: 40
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
lg: {
|
|
22
|
+
item: {
|
|
23
|
+
fontSize: 'md',
|
|
24
|
+
h: 48
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
var variants = {
|
|
29
|
+
default: {
|
|
30
|
+
item: {
|
|
31
|
+
activeBg: 'blue.30',
|
|
32
|
+
borderRadius: 'md',
|
|
33
|
+
hoverBg: 'blue.20',
|
|
34
|
+
hoverColor: 'blue.80'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.default = {
|
|
39
|
+
defaultProps: defaultProps,
|
|
40
|
+
parts: parts,
|
|
41
|
+
sizes: sizes,
|
|
42
|
+
variants: variants
|
|
43
|
+
};
|
package/p/index.d.ts
ADDED
package/p/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("./p"), exports);
|
|
18
|
+
__exportStar(require("./p.types"), exports);
|
|
19
|
+
var p_1 = require("./p");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(p_1).default; } });
|
package/p/p.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PProps, PStyleProps } from './p.types';
|
|
2
|
+
export declare const BaseP: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {
|
|
3
|
+
[x: string]: {};
|
|
4
|
+
} & PStyleProps, never>;
|
|
5
|
+
export declare const P: import("styled-components").StyledComponent<"p", never, PProps, never>;
|
|
6
|
+
export default P;
|
package/p/p.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
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.P = exports.BaseP = 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 system_1 = require("../system");
|
|
38
|
+
var utils_1 = require("../utils");
|
|
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.BaseP = styled_components_2.default.p.withConfig({
|
|
41
|
+
shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
|
|
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
|
+
exports.P = core_1.forwardRef(function (props, ref) {
|
|
44
|
+
var _a = core_1.omitThemingProps(props), align = _a.align, casing = _a.casing, className = _a.className, decoration = _a.decoration, weight = _a.weight, rest = __rest(_a, ["align", "casing", "className", "decoration", "weight"]);
|
|
45
|
+
var styles = core_1.useStyleConfig('P', props);
|
|
46
|
+
var aliasedProps = utils_1.filterUndefined({
|
|
47
|
+
fontWeight: weight,
|
|
48
|
+
textAlign: align,
|
|
49
|
+
textDecoration: decoration,
|
|
50
|
+
textTransform: casing
|
|
51
|
+
});
|
|
52
|
+
return (react_1.default.createElement(exports.BaseP, __assign({ className: utils_1.cs('vui-p', className), ref: ref, transitionDuration: "fast" }, styles, aliasedProps, rest)));
|
|
53
|
+
});
|
|
54
|
+
exports.P.displayName = 'P';
|
|
55
|
+
exports.default = exports.P;
|
|
56
|
+
var templateObject_1;
|
package/p/p.types.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { IsTruncatedProps, MaxLinesProps, SizingProps, SpaceProps, TextAlignProps, TextDecorationProps, TextTransformProps, TransitionsProps, TypographyProps } from '../system';
|
|
3
|
+
import { FontWeight, ThemingProps, VuiTheme } from '../theme';
|
|
4
|
+
import { AnyString } from '../utils';
|
|
5
|
+
export interface PProps extends Omit<HTMLAttributes<HTMLParagraphElement>, 'color'>, PStyleProps, ThemingProps<'P'> {
|
|
6
|
+
align?: TextAlignProps['textAlign'];
|
|
7
|
+
casing?: TextTransformProps<VuiTheme>['textTransform'];
|
|
8
|
+
decoration?: TextDecorationProps<VuiTheme>['textDecoration'];
|
|
9
|
+
weight?: FontWeight | AnyString | number;
|
|
10
|
+
}
|
|
11
|
+
export interface PStyleProps extends IsTruncatedProps, MaxLinesProps, SizingProps, SpaceProps, TransitionsProps, Omit<TypographyProps<VuiTheme>, 'color'> {
|
|
12
|
+
color?: string;
|
|
13
|
+
}
|
package/p/p.types.js
ADDED
package/p/theme.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
defaultProps: {
|
|
3
|
+
size: string;
|
|
4
|
+
};
|
|
5
|
+
sizes: {
|
|
6
|
+
sm: {
|
|
7
|
+
fontSize: string;
|
|
8
|
+
lineHeight: string;
|
|
9
|
+
};
|
|
10
|
+
md: {
|
|
11
|
+
fontSize: string;
|
|
12
|
+
lineHeight: string;
|
|
13
|
+
};
|
|
14
|
+
lg: {
|
|
15
|
+
fontSize: string;
|
|
16
|
+
lineHeight: string;
|
|
17
|
+
};
|
|
18
|
+
xl: {
|
|
19
|
+
fontSize: string;
|
|
20
|
+
lineHeight: string;
|
|
21
|
+
};
|
|
22
|
+
xxl: {
|
|
23
|
+
fontSize: string;
|
|
24
|
+
lineHeight: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
variants: {};
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|
package/p/theme.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var defaultProps = {
|
|
4
|
+
size: 'md'
|
|
5
|
+
};
|
|
6
|
+
var sizes = {
|
|
7
|
+
sm: {
|
|
8
|
+
fontSize: 'sm',
|
|
9
|
+
lineHeight: '18px'
|
|
10
|
+
},
|
|
11
|
+
md: {
|
|
12
|
+
fontSize: 'md',
|
|
13
|
+
lineHeight: '24px'
|
|
14
|
+
},
|
|
15
|
+
lg: {
|
|
16
|
+
fontSize: 'lg',
|
|
17
|
+
lineHeight: '28px'
|
|
18
|
+
},
|
|
19
|
+
xl: {
|
|
20
|
+
fontSize: '20px',
|
|
21
|
+
lineHeight: '30px'
|
|
22
|
+
},
|
|
23
|
+
xxl: {
|
|
24
|
+
fontSize: '24px',
|
|
25
|
+
lineHeight: '36px'
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
var variants = {};
|
|
29
|
+
exports.default = {
|
|
30
|
+
defaultProps: defaultProps,
|
|
31
|
+
sizes: sizes,
|
|
32
|
+
variants: variants
|
|
33
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@veracity/vui",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Veracity UI components library based on Styled Components and @xstyled",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"author": "Veracity",
|
|
7
|
+
"license": "UNLICENSED",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"Veracity",
|
|
10
|
+
"UI",
|
|
11
|
+
"React",
|
|
12
|
+
"Components"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://dnvgl-one.visualstudio.com/DefaultCollection/Veracity/_git/WEB-VUI"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@xstyled/styled-components": "^2.4.1",
|
|
20
|
+
"axios": "^0.21.1",
|
|
21
|
+
"styled-components": "^5.2.1"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": "^17.0.1",
|
|
25
|
+
"react-dom": "^17.0.1"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -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("./skeleton"), exports);
|
|
18
|
+
__exportStar(require("./skeleton.types"), exports);
|
|
19
|
+
var skeleton_1 = require("./skeleton");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(skeleton_1).default; } });
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SkeletonProps, SkeletonStyleProps } from './skeleton.types';
|
|
2
|
+
export declare const BaseSkeleton: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
+
[x: string]: {};
|
|
4
|
+
} & SkeletonStyleProps, never>;
|
|
5
|
+
export declare const Skeleton: import("styled-components").StyledComponent<"div", never, SkeletonProps, never>;
|
|
6
|
+
export default Skeleton;
|