@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/box/box.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BoxProps, BoxStyleProps } from './box.types';
|
|
2
|
+
export declare const BaseBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
|
+
[x: string]: {};
|
|
4
|
+
} & BoxStyleProps, never>;
|
|
5
|
+
export declare const Box: import("styled-components").StyledComponent<"div", never, BoxProps, never>;
|
|
6
|
+
export default Box;
|
package/box/box.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
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.Box = exports.BaseBox = 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 utils_1 = require("../utils");
|
|
38
|
+
var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.effects, styled_components_1.flexboxes, styled_components_1.interactivity, styled_components_1.layout, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions);
|
|
39
|
+
exports.BaseBox = styled_components_2.default.div.withConfig({
|
|
40
|
+
shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
|
|
41
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\ttransition: all 0s ease-in-out;\n\n\t", "\n"], ["\n\tdisplay: flex;\n\ttransition: all 0s ease-in-out;\n\n\t", "\n"])), generator);
|
|
42
|
+
exports.Box = core_1.forwardRef(function (props, ref) {
|
|
43
|
+
var _a = core_1.omitThemingProps(props), align = _a.align, center = _a.center, centerH = _a.centerH, centerV = _a.centerV, className = _a.className, column = _a.column, direction = _a.direction, hoverShadow = _a.hoverShadow, justify = _a.justify, radius = _a.radius, shadow = _a.shadow, wrap = _a.wrap, rest = __rest(_a, ["align", "center", "centerH", "centerV", "className", "column", "direction", "hoverShadow", "justify", "radius", "shadow", "wrap"]);
|
|
44
|
+
var styles = core_1.useStyleConfig('Box', props);
|
|
45
|
+
var alignItems = (center || (column ? centerH : centerV)) && 'center';
|
|
46
|
+
var flexDirection = column && 'column';
|
|
47
|
+
var justifyContent = (center || (column ? centerV : centerH)) && 'center';
|
|
48
|
+
var aliasedProps = utils_1.filterUndefined({
|
|
49
|
+
alignItems: align !== null && align !== void 0 ? align : alignItems,
|
|
50
|
+
borderRadius: radius,
|
|
51
|
+
boxShadow: shadow,
|
|
52
|
+
flexDirection: direction !== null && direction !== void 0 ? direction : flexDirection,
|
|
53
|
+
flexWrap: wrap && 'wrap',
|
|
54
|
+
hoverBoxShadow: hoverShadow,
|
|
55
|
+
justifyContent: justify !== null && justify !== void 0 ? justify : justifyContent
|
|
56
|
+
});
|
|
57
|
+
return (react_1.default.createElement(exports.BaseBox, __assign({ className: utils_1.cs('vui-box', className), ref: ref, transitionDuration: "normal" }, styles, aliasedProps, rest)));
|
|
58
|
+
});
|
|
59
|
+
exports.Box.displayName = 'Box';
|
|
60
|
+
exports.default = exports.Box;
|
|
61
|
+
var templateObject_1;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { AlignItemsProps, BackgroundColorProps, BordersProps, EffectsProps, FlexboxesProps, FlexDirectionProps, InteractivityProps, JustifyContentProps, LayoutProps, SizingProps, SpaceProps, TransitionsProps } from '../system';
|
|
3
|
+
import { Radius, Shadow, ThemingProps } from '../theme';
|
|
4
|
+
import { AnyString } from '../utils';
|
|
5
|
+
export interface BoxProps extends Omit<HTMLAttributes<HTMLDivElement>, 'color'>, BoxStyleProps, ThemingProps<'Box'> {
|
|
6
|
+
align?: AlignItemsProps['alignItems'];
|
|
7
|
+
center?: boolean;
|
|
8
|
+
centerH?: boolean;
|
|
9
|
+
centerV?: boolean;
|
|
10
|
+
column?: boolean;
|
|
11
|
+
direction?: FlexDirectionProps['flexDirection'];
|
|
12
|
+
hoverShadow?: Shadow | AnyString;
|
|
13
|
+
justify?: JustifyContentProps['justifyContent'];
|
|
14
|
+
radius?: Radius | AnyString;
|
|
15
|
+
shadow?: Shadow | AnyString;
|
|
16
|
+
wrap?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface BoxStyleProps extends BackgroundColorProps, BordersProps, EffectsProps, FlexboxesProps, InteractivityProps, LayoutProps, SizingProps, SpaceProps, TransitionsProps {
|
|
19
|
+
}
|
package/box/box.types.js
ADDED
package/box/index.d.ts
ADDED
package/box/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("./box"), exports);
|
|
18
|
+
__exportStar(require("./box.types"), exports);
|
|
19
|
+
var box_1 = require("./box");
|
|
20
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(box_1).default; } });
|
package/box/theme.d.ts
ADDED
package/box/theme.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ButtonProps, ButtonStyleProps } from './button.types';
|
|
2
|
+
export declare const BaseButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
3
|
+
[x: string]: {};
|
|
4
|
+
} & ButtonStyleProps, never>;
|
|
5
|
+
export declare const Button: import("styled-components").StyledComponent<"button", never, ButtonProps, never>;
|
|
6
|
+
export default Button;
|
package/button/button.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
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.Button = exports.BaseButton = 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 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.effects, styled_components_1.flexboxes, styled_components_1.fontSize, styled_components_1.fontWeight, styled_components_1.pointerEvents, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions);
|
|
40
|
+
var ContentWrapper = styled_components_2.default.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tvisibility: hidden;\n"], ["\n\tvisibility: hidden;\n"])));
|
|
41
|
+
var LoadingWrapper = styled_components_2.default.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\tbottom: 0;\n\tdisplay: flex;\n\tleft: 0;\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n"], ["\n\tbottom: 0;\n\tdisplay: flex;\n\tleft: 0;\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n"])));
|
|
42
|
+
exports.BaseButton = styled_components_2.default.button.withConfig({
|
|
43
|
+
shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
|
|
44
|
+
})(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: 1.1;\n\tposition: relative;\n\ttransition: all 0s ease-in-out;\n\tuser-select: none;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: 1.1;\n\tposition: relative;\n\ttransition: all 0s ease-in-out;\n\tuser-select: none;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t", "\n"])), generator);
|
|
45
|
+
exports.Button = core_1.forwardRef(function (props, ref) {
|
|
46
|
+
var _a;
|
|
47
|
+
var _b = core_1.omitThemingProps(props), borderWidthProp = _b.borderWidth, children = _b.children, className = _b.className, disabled = _b.disabled, icon = _b.icon, iconLeftProp = _b.iconLeft, iconRightProp = _b.iconRight, isElevated = _b.isElevated, isFullWidth = _b.isFullWidth, isLoading = _b.isLoading, isRound = _b.isRound, isSplit = _b.isSplit, itemLeftProp = _b.itemLeft, itemRightProp = _b.itemRight, text = _b.text, rest = __rest(_b, ["borderWidth", "children", "className", "disabled", "icon", "iconLeft", "iconRight", "isElevated", "isFullWidth", "isLoading", "isRound", "isSplit", "itemLeft", "itemRight", "text"]);
|
|
48
|
+
var _c = core_1.useStyleConfig('Button', props), borderWidth = _c.borderWidth, h = _c.h, _d = _c.iconSize, iconSize = _d === void 0 ? 'md' : _d, minW = _c.minW, _e = _c.spaceX, spaceXBase = _e === void 0 ? 0 : _e, styles = __rest(_c, ["borderWidth", "h", "iconSize", "minW", "spaceX"]);
|
|
49
|
+
var Content = isLoading ? ContentWrapper : react_1.default.Fragment;
|
|
50
|
+
var border = (_a = borderWidthProp !== null && borderWidthProp !== void 0 ? borderWidthProp : borderWidth) !== null && _a !== void 0 ? _a : 0;
|
|
51
|
+
var spaceX = (spaceXBase - border) / 8;
|
|
52
|
+
var spaceXText = spaceX * 2;
|
|
53
|
+
var iconRightMl = isSplit ? 'auto' : spaceX;
|
|
54
|
+
var iconLeft = iconLeftProp && react_1.default.createElement(icon_1.default, { icon: iconLeftProp, mr: spaceX, size: iconSize });
|
|
55
|
+
var iconRight = iconRightProp && react_1.default.createElement(icon_1.default, { icon: iconRightProp, ml: iconRightMl, size: iconSize });
|
|
56
|
+
var itemLeft = itemLeftProp !== null && itemLeftProp !== void 0 ? itemLeftProp : iconLeft;
|
|
57
|
+
var itemRight = itemRightProp !== null && itemRightProp !== void 0 ? itemRightProp : iconRight;
|
|
58
|
+
var pl = icon || itemLeft ? spaceX : spaceXText;
|
|
59
|
+
var pr = icon || itemRight ? spaceX : spaceXText;
|
|
60
|
+
var minWidth = !icon ? minW : undefined;
|
|
61
|
+
var aliasedProps = utils_1.filterUndefined({
|
|
62
|
+
borderRadius: isRound ? h / 2 : undefined,
|
|
63
|
+
boxShadow: isElevated ? 2 : undefined,
|
|
64
|
+
pointerEvents: disabled || isLoading ? 'none' : undefined,
|
|
65
|
+
w: isFullWidth ? '100%' : undefined
|
|
66
|
+
});
|
|
67
|
+
return (react_1.default.createElement(exports.BaseButton, __assign({ borderRadius: "md", borderWidth: border, className: utils_1.cs('vui-button', className), disabled: disabled, disabledBg: "grey.20", disabledBorderColor: "grey.50", disabledColor: "grey.50", focusRing: 3, focusRingColor: "blue.50", fontWeight: "medium", h: h, minW: minWidth, pl: pl, pr: pr, ref: ref, transitionDuration: "fast", type: "button" }, styles, aliasedProps, rest),
|
|
68
|
+
isLoading && (react_1.default.createElement(LoadingWrapper, { onClick: function (e) { return e.stopPropagation(); } },
|
|
69
|
+
react_1.default.createElement(icon_1.default, { animation: "spin", icon: "falSpinner", m: "auto", size: iconSize }))),
|
|
70
|
+
react_1.default.createElement(Content, null, icon ? (react_1.default.createElement(icon_1.default, { icon: icon, size: iconSize })) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
71
|
+
itemLeft, children !== null && children !== void 0 ? children : text,
|
|
72
|
+
itemRight)))));
|
|
73
|
+
});
|
|
74
|
+
exports.Button.displayName = 'Button';
|
|
75
|
+
exports.default = exports.Button;
|
|
76
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { IconProp } from '../icon';
|
|
3
|
+
import { BackgroundColorProps, BordersProps, ColorProps, EffectsProps, FontSizeProps, FontWeightProps, PointerEventsProps, SizingProps, SpaceProps, TransitionsProps } from '../system';
|
|
4
|
+
import { ThemingProps } from '../theme';
|
|
5
|
+
export interface ButtonProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'color'>, ButtonStyleProps, ThemingProps<'Button'> {
|
|
6
|
+
colorScheme?: 'blue' | 'green' | 'pink' | 'prussian' | 'red';
|
|
7
|
+
icon?: IconProp;
|
|
8
|
+
iconLeft?: IconProp;
|
|
9
|
+
iconRight?: IconProp;
|
|
10
|
+
isElevated?: boolean;
|
|
11
|
+
isFullWidth?: boolean;
|
|
12
|
+
isLoading?: boolean;
|
|
13
|
+
isRound?: boolean;
|
|
14
|
+
isSplit?: boolean;
|
|
15
|
+
itemLeft?: React.ReactNode;
|
|
16
|
+
itemRight?: React.ReactNode;
|
|
17
|
+
text?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ButtonStyleProps extends BackgroundColorProps, BordersProps, ColorProps, EffectsProps, FontSizeProps, FontWeightProps, PointerEventsProps, SizingProps, SpaceProps, TransitionsProps {
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonProps as BaseButtonProps } from './button.types';
|
|
2
|
+
declare type ButtonProps = Omit<BaseButtonProps, 'variant'>;
|
|
3
|
+
export declare const AppButton: import("styled-components").StyledComponent<"button", never, ButtonProps, never>;
|
|
4
|
+
export declare const CTAButton: import("styled-components").StyledComponent<"button", never, ButtonProps, never>;
|
|
5
|
+
export declare const DangerButton: import("styled-components").StyledComponent<"button", never, ButtonProps, never>;
|
|
6
|
+
export declare const OutlinedButton: import("styled-components").StyledComponent<"button", never, ButtonProps, never>;
|
|
7
|
+
export declare const TextButton: import("styled-components").StyledComponent<"button", never, ButtonProps, never>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.TextButton = exports.OutlinedButton = exports.DangerButton = exports.CTAButton = exports.AppButton = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var button_1 = __importDefault(require("./button"));
|
|
20
|
+
var core_1 = require("../core");
|
|
21
|
+
exports.AppButton = core_1.forwardRef(function (props, ref) { return (react_1.default.createElement(button_1.default, __assign({ colorScheme: "blue", ref: ref }, props))); });
|
|
22
|
+
exports.CTAButton = core_1.forwardRef(function (props, ref) { return (react_1.default.createElement(button_1.default, __assign({ colorScheme: "green", ref: ref }, props))); });
|
|
23
|
+
exports.DangerButton = core_1.forwardRef(function (props, ref) { return (react_1.default.createElement(button_1.default, __assign({ colorScheme: "red", ref: ref }, props))); });
|
|
24
|
+
exports.OutlinedButton = core_1.forwardRef(function (props, ref) { return (react_1.default.createElement(button_1.default, __assign({ colorScheme: "blue", ref: ref, variant: "outlined" }, props))); });
|
|
25
|
+
exports.TextButton = core_1.forwardRef(function (props, ref) { return (react_1.default.createElement(button_1.default, __assign({ colorScheme: "blue", ref: ref, variant: "text" }, props))); });
|
package/button/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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("./button"), exports);
|
|
18
|
+
__exportStar(require("./button.types"), exports);
|
|
19
|
+
__exportStar(require("./buttons"), exports);
|
|
20
|
+
var button_1 = require("./button");
|
|
21
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(button_1).default; } });
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Dict } from '../utils';
|
|
2
|
+
declare function variantOutlined(props: Dict): {
|
|
3
|
+
hoverBg: string;
|
|
4
|
+
activeBg: string;
|
|
5
|
+
bg: string;
|
|
6
|
+
color: string;
|
|
7
|
+
borderColor: string;
|
|
8
|
+
borderWidth: number;
|
|
9
|
+
};
|
|
10
|
+
declare function variantSolid(props: Dict): {
|
|
11
|
+
hoverBg: string;
|
|
12
|
+
activeBg: string;
|
|
13
|
+
bg: string;
|
|
14
|
+
color: string;
|
|
15
|
+
};
|
|
16
|
+
declare function variantText(props: Dict): {
|
|
17
|
+
hoverBg: string;
|
|
18
|
+
activeBg: string;
|
|
19
|
+
bg: string;
|
|
20
|
+
color: string;
|
|
21
|
+
};
|
|
22
|
+
declare const _default: {
|
|
23
|
+
defaultProps: {
|
|
24
|
+
colorScheme: string;
|
|
25
|
+
size: string;
|
|
26
|
+
variant: string;
|
|
27
|
+
};
|
|
28
|
+
sizes: {
|
|
29
|
+
xs: {
|
|
30
|
+
fontSize: string;
|
|
31
|
+
h: number;
|
|
32
|
+
iconSize: string;
|
|
33
|
+
minW: number;
|
|
34
|
+
spaceX: number;
|
|
35
|
+
};
|
|
36
|
+
sm: {
|
|
37
|
+
fontSize: string;
|
|
38
|
+
h: number;
|
|
39
|
+
iconSize: string;
|
|
40
|
+
minW: number;
|
|
41
|
+
spaceX: number;
|
|
42
|
+
};
|
|
43
|
+
md: {
|
|
44
|
+
fontSize: string;
|
|
45
|
+
h: number;
|
|
46
|
+
iconSize: string;
|
|
47
|
+
minW: number;
|
|
48
|
+
spaceX: number;
|
|
49
|
+
};
|
|
50
|
+
lg: {
|
|
51
|
+
fontSize: string;
|
|
52
|
+
h: number;
|
|
53
|
+
iconSize: string;
|
|
54
|
+
minW: number;
|
|
55
|
+
spaceX: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
variants: {
|
|
59
|
+
outlined: typeof variantOutlined;
|
|
60
|
+
solid: typeof variantSolid;
|
|
61
|
+
text: typeof variantText;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export default _default;
|
package/button/theme.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
function variantOutlined(props) {
|
|
15
|
+
var c = props.colorScheme;
|
|
16
|
+
var styles = __assign({ borderColor: c + ".80", borderWidth: 1 }, variantText(props));
|
|
17
|
+
return styles;
|
|
18
|
+
}
|
|
19
|
+
function variantSolid(props) {
|
|
20
|
+
var c = props.colorScheme;
|
|
21
|
+
var styles = {
|
|
22
|
+
hoverBg: c + ".90",
|
|
23
|
+
activeBg: c + ".100",
|
|
24
|
+
bg: c + ".80",
|
|
25
|
+
color: 'white'
|
|
26
|
+
};
|
|
27
|
+
return styles;
|
|
28
|
+
}
|
|
29
|
+
function variantText(props) {
|
|
30
|
+
var c = props.colorScheme;
|
|
31
|
+
var styles = {
|
|
32
|
+
hoverBg: c + ".20",
|
|
33
|
+
activeBg: c + ".30",
|
|
34
|
+
bg: 'transparent',
|
|
35
|
+
color: c + ".80"
|
|
36
|
+
};
|
|
37
|
+
// Special cases
|
|
38
|
+
if (c === 'prussian') {
|
|
39
|
+
styles.activeBg = 'blue.30';
|
|
40
|
+
styles.hoverBg = 'blue.20';
|
|
41
|
+
}
|
|
42
|
+
return styles;
|
|
43
|
+
}
|
|
44
|
+
var defaultProps = {
|
|
45
|
+
colorScheme: 'prussian',
|
|
46
|
+
size: 'md',
|
|
47
|
+
variant: 'solid'
|
|
48
|
+
};
|
|
49
|
+
var sizes = {
|
|
50
|
+
xs: {
|
|
51
|
+
fontSize: 'sm',
|
|
52
|
+
h: 24,
|
|
53
|
+
iconSize: 'xs',
|
|
54
|
+
minW: 48,
|
|
55
|
+
spaceX: 4
|
|
56
|
+
},
|
|
57
|
+
sm: {
|
|
58
|
+
fontSize: 'sm',
|
|
59
|
+
h: 32,
|
|
60
|
+
iconSize: 'sm',
|
|
61
|
+
minW: 64,
|
|
62
|
+
spaceX: 6
|
|
63
|
+
},
|
|
64
|
+
md: {
|
|
65
|
+
fontSize: 'md',
|
|
66
|
+
h: 40,
|
|
67
|
+
iconSize: 'md',
|
|
68
|
+
minW: 80,
|
|
69
|
+
spaceX: 8
|
|
70
|
+
},
|
|
71
|
+
lg: {
|
|
72
|
+
fontSize: 'lg',
|
|
73
|
+
h: 48,
|
|
74
|
+
iconSize: 'lg',
|
|
75
|
+
minW: 96,
|
|
76
|
+
spaceX: 10
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
var variants = {
|
|
80
|
+
outlined: variantOutlined,
|
|
81
|
+
solid: variantSolid,
|
|
82
|
+
text: variantText
|
|
83
|
+
};
|
|
84
|
+
exports.default = {
|
|
85
|
+
defaultProps: defaultProps,
|
|
86
|
+
sizes: sizes,
|
|
87
|
+
variants: variants
|
|
88
|
+
};
|
package/core/consts.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cdnUrl = "https://cdn.veracity.com";
|
package/core/consts.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var styled_components_1 = require("@xstyled/styled-components");
|
|
8
|
+
var styles_1 = require("../styles");
|
|
9
|
+
exports.default = styled_components_1.createGlobalStyle(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n\n\thtml {\n\t\tbox-sizing: border-box;\n\t}\n\n\t*, *:before, *:after {\n\t\tbox-sizing: inherit;\n\t}\n\n\t* {\n\t\t--x-shadow: 0 0 0 0 #fff;\n\t}\n\n\tbody {\n\t\tbackground-color: blue.10;\n\t\tcolor: prussian.80;\n\t\tfont-family: avenir;\n\t\tfont-size: md;\n\t}\n\n\ta {\n\t\ttext-decoration: none;\n\t}\n\n\t@keyframes fadeDown {\n\t\t", "\n\t}\n\n\t@keyframes fadeIn {\n\t\t", "\n\t}\n\n\t@keyframes fadeLeft {\n\t\t", "\n\t}\n\n\t@keyframes fadeOut {\n\t\t", "\n\t}\n\n\t@keyframes fadeRight {\n\t\t", "\n\t}\n\n\t@keyframes fadeUp {\n\t\t", "\n\t}\n\n\t@keyframes spin {\n\t\t", "\n\t}\n"], ["\n\t", "\n\n\thtml {\n\t\tbox-sizing: border-box;\n\t}\n\n\t*, *:before, *:after {\n\t\tbox-sizing: inherit;\n\t}\n\n\t* {\n\t\t--x-shadow: 0 0 0 0 #fff;\n\t}\n\n\tbody {\n\t\tbackground-color: blue.10;\n\t\tcolor: prussian.80;\n\t\tfont-family: avenir;\n\t\tfont-size: md;\n\t}\n\n\ta {\n\t\ttext-decoration: none;\n\t}\n\n\t@keyframes fadeDown {\n\t\t", "\n\t}\n\n\t@keyframes fadeIn {\n\t\t", "\n\t}\n\n\t@keyframes fadeLeft {\n\t\t", "\n\t}\n\n\t@keyframes fadeOut {\n\t\t", "\n\t}\n\n\t@keyframes fadeRight {\n\t\t", "\n\t}\n\n\t@keyframes fadeUp {\n\t\t", "\n\t}\n\n\t@keyframes spin {\n\t\t", "\n\t}\n"])), styles_1.fonts, styles_1.fadeDown, styles_1.fadeIn, styles_1.fadeLeft, styles_1.fadeOut, styles_1.fadeRight, styles_1.fadeUp, styles_1.spin);
|
|
10
|
+
var templateObject_1;
|
package/core/index.d.ts
ADDED
package/core/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.VuiProvider = exports.GlobalStyle = void 0;
|
|
17
|
+
__exportStar(require("./consts"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
19
|
+
__exportStar(require("./utils"), exports);
|
|
20
|
+
var globalStyle_1 = require("./globalStyle");
|
|
21
|
+
Object.defineProperty(exports, "GlobalStyle", { enumerable: true, get: function () { return __importDefault(globalStyle_1).default; } });
|
|
22
|
+
var vuiProvider_1 = require("./vuiProvider");
|
|
23
|
+
Object.defineProperty(exports, "VuiProvider", { enumerable: true, get: function () { return __importDefault(vuiProvider_1).default; } });
|
package/core/types.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type As = React.ElementType;
|
|
3
|
+
export interface CreateContextOptions {
|
|
4
|
+
errorMessage?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type CreateContextReturn<T> = [React.Provider<T>, () => T];
|
|
8
|
+
export declare type PropsOf<T extends As> = React.ComponentPropsWithoutRef<T>;
|
package/core/types.js
ADDED
package/core/utils.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyledComponent, StyledProps } from 'styled-components';
|
|
3
|
+
import { As, CreateContextOptions, CreateContextReturn, PropsOf } from './types';
|
|
4
|
+
import { ThemingProps, ThemeOverrides, VuiTheme } from '../theme';
|
|
5
|
+
import { Dict } from '../utils';
|
|
6
|
+
/** Generic function to create new Context and context access hook. */
|
|
7
|
+
export declare function createContext<ContextType>(options?: CreateContextOptions): CreateContextReturn<ContextType>;
|
|
8
|
+
/** Merges provided theme overrides with default VUI theme */
|
|
9
|
+
export declare function extendTheme(overrides: ThemeOverrides): VuiTheme;
|
|
10
|
+
/** Custom implementation of forwardRef, including polymorphic 'as' type based on StyledComponent. */
|
|
11
|
+
export declare function forwardRef<Props extends object, Component extends As>(component: React.ForwardRefRenderFunction<Component, PropsOf<Component> & Props & {
|
|
12
|
+
as?: As;
|
|
13
|
+
}>): StyledComponent<Component, never, Props, never>;
|
|
14
|
+
/** Removes specific theming keys from the given props. */
|
|
15
|
+
export declare function omitThemingProps<T extends ThemingProps>(props: T): Omit<T, "size" | "variant">;
|
|
16
|
+
/**
|
|
17
|
+
* Custom validator to prevent certain props from reaching the HTML element.
|
|
18
|
+
* @param props - list of props to filter out
|
|
19
|
+
*/
|
|
20
|
+
export declare function shouldForwardProp(props: string[]): (prop: string | number, defaultValidatorFn: (prop: string | number) => boolean) => boolean;
|
|
21
|
+
/** Attemps to access a theme property at the given path. */
|
|
22
|
+
export declare function th(path: string | string[]): (props: StyledProps<unknown>) => Dict<any> | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves and merges size and variant styling from theme configuration.
|
|
25
|
+
* @param component - name of any component configured in the theme
|
|
26
|
+
* @param props - props object of the given component
|
|
27
|
+
*/
|
|
28
|
+
export declare function useStyleConfig(component: keyof VuiTheme['components'], props?: any): Dict<any>;
|