@veracity/vui 0.0.8 → 0.0.9
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/alert/alertTitle.js +2 -2
- package/button/button.types.d.ts +2 -2
- package/button/buttons.d.ts +8 -5
- package/button/buttons.js +4 -2
- package/button/theme.d.ts +7 -1
- package/button/theme.js +18 -1
- package/core/types/component.d.ts +1 -4
- package/core/vuiProvider.js +1 -1
- package/heading/heading.js +2 -2
- package/heading/heading.types.d.ts +1 -0
- package/heading/headings.d.ts +7 -6
- package/label/label.types.d.ts +1 -1
- package/link/link.js +2 -2
- package/link/link.types.d.ts +1 -0
- package/list/list.d.ts +2 -0
- package/list/list.js +4 -2
- package/list/list.types.d.ts +1 -1
- package/list/listHeading.d.ts +3 -0
- package/list/listHeading.js +30 -0
- package/list/listItem.js +2 -3
- package/list/listItem.types.d.ts +1 -0
- package/list/theme.js +1 -1
- package/p/p.js +2 -2
- package/p/p.types.d.ts +1 -0
- package/package.json +4 -1
- package/spinner/consts.d.ts +3 -1
- package/spinner/consts.js +7 -2
- package/spinner/spinner.js +6 -4
- package/spinner/theme.d.ts +0 -1
- package/spinner/theme.js +2 -3
- package/t/t.js +2 -2
- package/t/t.types.d.ts +1 -0
- package/theme/components.d.ts +6 -2
- package/theme/defaultTheme.d.ts +6 -2
- package/theme/index.d.ts +3 -0
- package/theme/index.js +7 -0
- package/controlLabel/controlLabel.d.ts +0 -6
- package/controlLabel/controlLabel.js +0 -55
- package/controlLabel/controlLabel.types.d.ts +0 -10
- package/controlLabel/controlLabel.types.js +0 -2
- package/controlLabel/index.d.ts +0 -3
- package/controlLabel/index.js +0 -20
- package/controlLabel/theme.d.ts +0 -11
- package/controlLabel/theme.js +0 -15
- package/core/types.d.ts +0 -37
- package/core/types.js +0 -3
- package/icon/icons/cui/cuiCheckboxIndeterminate.d.ts +0 -3
- package/icon/icons/cui/cuiCheckboxIndeterminate.js +0 -8
- package/icon/icons/cui/cuiCheckboxSelected.d.ts +0 -3
- package/icon/icons/cui/cuiCheckboxSelected.js +0 -8
- package/icon/icons/cui/cuiCheckboxUnselected.d.ts +0 -3
- package/icon/icons/cui/cuiCheckboxUnselected.js +0 -8
- package/icon/icons/cui/cuiRadioSelected.d.ts +0 -3
- package/icon/icons/cui/cuiRadioSelected.js +0 -8
- package/icon/icons/cui/cuiRadioUnselected.d.ts +0 -3
- package/icon/icons/cui/cuiRadioUnselected.js +0 -8
- package/icon/icons/cul/culCovid.d.ts +0 -3
- package/icon/icons/cul/culCovid.js +0 -7
- package/icon/icons/cul/culDeepSearch.d.ts +0 -3
- package/icon/icons/cul/culDeepSearch.js +0 -7
- package/icon/icons/cul/culDotsMenu.d.ts +0 -3
- package/icon/icons/cul/culDotsMenu.js +0 -7
- package/icon/icons/cul/culGlobePlus.d.ts +0 -3
- package/icon/icons/cul/culGlobePlus.js +0 -7
- package/icon/icons/cul/culListDense.d.ts +0 -3
- package/icon/icons/cul/culListDense.js +0 -7
- package/icon/icons/cul/culMapMarkerStar.d.ts +0 -3
- package/icon/icons/cul/culMapMarkerStar.js +0 -7
- package/icon/icons/cul/culPlusThin.d.ts +0 -3
- package/icon/icons/cul/culPlusThin.js +0 -7
- package/icon/icons/cul/culScreenshot.d.ts +0 -3
- package/icon/icons/cul/culScreenshot.js +0 -7
- package/icon/icons/cul/culScreenshotAlt.d.ts +0 -3
- package/icon/icons/cul/culScreenshotAlt.js +0 -7
- package/icon/icons/cul/culShortcut.d.ts +0 -3
- package/icon/icons/cul/culShortcut.js +0 -7
- package/icon/icons/cul/culTimesThin.d.ts +0 -3
- package/icon/icons/cul/culTimesThin.js +0 -7
- package/icon/icons/cul/culTransformer.d.ts +0 -3
- package/icon/icons/cul/culTransformer.js +0 -7
- package/icon/icons/cul/culUserTransfer.d.ts +0 -3
- package/icon/icons/cul/culUserTransfer.js +0 -7
- package/icon/icons/cul/culVessel.d.ts +0 -3
- package/icon/icons/cul/culVessel.js +0 -7
- package/icon/icons/cul/culVesselGroup.d.ts +0 -3
- package/icon/icons/cul/culVesselGroup.js +0 -7
- package/icon/icons/cus/cusCheckboxSelected.d.ts +0 -3
- package/icon/icons/cus/cusCheckboxSelected.js +0 -7
- package/icon/icons/cus/cusDotFull.d.ts +0 -3
- package/icon/icons/cus/cusDotFull.js +0 -7
- package/icon/icons/cus/cusDotFullAlt.d.ts +0 -3
- package/icon/icons/cus/cusDotFullAlt.js +0 -7
- package/icon/icons/cus/cusDotsMenu.d.ts +0 -3
- package/icon/icons/cus/cusDotsMenu.js +0 -7
- package/icon/icons/cus/cusRadio.d.ts +0 -3
- package/icon/icons/cus/cusRadio.js +0 -7
- package/icon/icons/cus/cusSquareMinus.d.ts +0 -3
- package/icon/icons/cus/cusSquareMinus.js +0 -7
- package/icon/icons/cus/cusTransformer.d.ts +0 -3
- package/icon/icons/cus/cusTransformer.js +0 -7
- package/icon/icons/cus/cusVessel.d.ts +0 -3
- package/icon/icons/cus/cusVessel.js +0 -7
- package/icon/icons/fab/fabApplePay.d.ts +0 -3
- package/icon/icons/fab/fabApplePay.js +0 -7
- package/icon/icons/fab/fabBluetooth.d.ts +0 -3
- package/icon/icons/fab/fabBluetooth.js +0 -7
- package/icon/icons/fab/fabBtc.d.ts +0 -3
- package/icon/icons/fab/fabBtc.js +0 -7
- package/icon/icons/fab/fabCcAmazonPay.d.ts +0 -3
- package/icon/icons/fab/fabCcAmazonPay.js +0 -7
- package/icon/icons/fab/fabCcAmex.d.ts +0 -3
- package/icon/icons/fab/fabCcAmex.js +0 -7
- package/icon/icons/fab/fabCcApplePay.d.ts +0 -3
- package/icon/icons/fab/fabCcApplePay.js +0 -7
- package/icon/icons/fab/fabCcDinersClub.d.ts +0 -3
- package/icon/icons/fab/fabCcDinersClub.js +0 -7
- package/icon/icons/fab/fabCcMastercard.d.ts +0 -3
- package/icon/icons/fab/fabCcMastercard.js +0 -7
- package/icon/icons/fab/fabCcPaypal.d.ts +0 -3
- package/icon/icons/fab/fabCcPaypal.js +0 -7
- package/icon/icons/fab/fabCcVisa.d.ts +0 -3
- package/icon/icons/fab/fabCcVisa.js +0 -7
- package/icon/icons/fab/fabDhl.d.ts +0 -3
- package/icon/icons/fab/fabDhl.js +0 -7
- package/icon/icons/fab/fabEbay.d.ts +0 -3
- package/icon/icons/fab/fabEbay.js +0 -7
- package/icon/icons/fab/fabFacebook.d.ts +0 -3
- package/icon/icons/fab/fabFacebook.js +0 -7
- package/icon/icons/fab/fabFedex.d.ts +0 -3
- package/icon/icons/fab/fabFedex.js +0 -7
- package/icon/icons/fab/fabFirefox.d.ts +0 -3
- package/icon/icons/fab/fabFirefox.js +0 -7
- package/icon/icons/fab/fabGoogle.d.ts +0 -3
- package/icon/icons/fab/fabGoogle.js +0 -7
- package/icon/icons/fab/fabGoogleDrive.d.ts +0 -3
- package/icon/icons/fab/fabGoogleDrive.js +0 -7
- package/icon/icons/fab/fabLinkedinIn.d.ts +0 -3
- package/icon/icons/fab/fabLinkedinIn.js +0 -7
- package/icon/icons/fab/fabMedium.d.ts +0 -3
- package/icon/icons/fab/fabMedium.js +0 -7
- package/icon/icons/fab/fabOsi.d.ts +0 -3
- package/icon/icons/fab/fabOsi.js +0 -7
- package/icon/icons/fab/fabSlack.d.ts +0 -3
- package/icon/icons/fab/fabSlack.js +0 -7
- package/icon/icons/fab/fabTwitter.d.ts +0 -3
- package/icon/icons/fab/fabTwitter.js +0 -7
- package/icon/icons/fab/fabUps.d.ts +0 -3
- package/icon/icons/fab/fabUps.js +0 -7
- package/icon/icons/fal/falAddressBook.d.ts +0 -3
- package/icon/icons/fal/falAddressBook.js +0 -7
- package/icon/icons/fal/falAddressCard.d.ts +0 -3
- package/icon/icons/fal/falAddressCard.js +0 -7
- package/icon/icons/fal/falAnalytics.d.ts +0 -3
- package/icon/icons/fal/falAnalytics.js +0 -7
- package/icon/icons/fal/falAngleDoubleDown.d.ts +0 -3
- package/icon/icons/fal/falAngleDoubleDown.js +0 -7
- package/icon/icons/fal/falAngleDoubleLeft.d.ts +0 -3
- package/icon/icons/fal/falAngleDoubleLeft.js +0 -7
- package/icon/icons/fal/falAngleDoubleRight.d.ts +0 -3
- package/icon/icons/fal/falAngleDoubleRight.js +0 -7
- package/icon/icons/fal/falAngleDoubleUp.d.ts +0 -3
- package/icon/icons/fal/falAngleDoubleUp.js +0 -7
- package/icon/icons/fal/falAngleDown.d.ts +0 -3
- package/icon/icons/fal/falAngleDown.js +0 -7
- package/icon/icons/fal/falAngleLeft.d.ts +0 -3
- package/icon/icons/fal/falAngleLeft.js +0 -7
- package/icon/icons/fal/falAngleRight.d.ts +0 -3
- package/icon/icons/fal/falAngleRight.js +0 -7
- package/icon/icons/fal/falAngleUp.d.ts +0 -3
- package/icon/icons/fal/falAngleUp.js +0 -7
- package/icon/icons/fal/falArrowAltDown.d.ts +0 -3
- package/icon/icons/fal/falArrowAltDown.js +0 -7
- package/icon/icons/fal/falArrowAltLeft.d.ts +0 -3
- package/icon/icons/fal/falArrowAltLeft.js +0 -7
- package/icon/icons/fal/falArrowAltRight.d.ts +0 -3
- package/icon/icons/fal/falArrowAltRight.js +0 -7
- package/icon/icons/fal/falArrowAltUp.d.ts +0 -3
- package/icon/icons/fal/falArrowAltUp.js +0 -7
- package/icon/icons/fal/falArrowCircleDown.d.ts +0 -3
- package/icon/icons/fal/falArrowCircleDown.js +0 -7
- package/icon/icons/fal/falArrowCircleLeft.d.ts +0 -3
- package/icon/icons/fal/falArrowCircleLeft.js +0 -7
- package/icon/icons/fal/falArrowCircleRight.d.ts +0 -3
- package/icon/icons/fal/falArrowCircleRight.js +0 -7
- package/icon/icons/fal/falArrowCircleUp.d.ts +0 -3
- package/icon/icons/fal/falArrowCircleUp.js +0 -7
- package/icon/icons/fal/falArrowDown.d.ts +0 -3
- package/icon/icons/fal/falArrowDown.js +0 -7
- package/icon/icons/fal/falArrowFromBottom.d.ts +0 -3
- package/icon/icons/fal/falArrowFromBottom.js +0 -7
- package/icon/icons/fal/falArrowFromLeft.d.ts +0 -3
- package/icon/icons/fal/falArrowFromLeft.js +0 -7
- package/icon/icons/fal/falArrowFromRight.d.ts +0 -3
- package/icon/icons/fal/falArrowFromRight.js +0 -7
- package/icon/icons/fal/falArrowFromTop.d.ts +0 -3
- package/icon/icons/fal/falArrowFromTop.js +0 -7
- package/icon/icons/fal/falArrowLeft.d.ts +0 -3
- package/icon/icons/fal/falArrowLeft.js +0 -7
- package/icon/icons/fal/falArrowRight.d.ts +0 -3
- package/icon/icons/fal/falArrowRight.js +0 -7
- package/icon/icons/fal/falArrowToBottom.d.ts +0 -3
- package/icon/icons/fal/falArrowToBottom.js +0 -7
- package/icon/icons/fal/falArrowToLeft.d.ts +0 -3
- package/icon/icons/fal/falArrowToLeft.js +0 -7
- package/icon/icons/fal/falArrowToRight.d.ts +0 -3
- package/icon/icons/fal/falArrowToRight.js +0 -7
- package/icon/icons/fal/falArrowToTop.d.ts +0 -3
- package/icon/icons/fal/falArrowToTop.js +0 -7
- package/icon/icons/fal/falArrowUp.d.ts +0 -3
- package/icon/icons/fal/falArrowUp.js +0 -7
- package/icon/icons/fal/falArrows.d.ts +0 -3
- package/icon/icons/fal/falArrows.js +0 -7
- package/icon/icons/fal/falAward.d.ts +0 -3
- package/icon/icons/fal/falAward.js +0 -7
- package/icon/icons/fal/falBan.d.ts +0 -3
- package/icon/icons/fal/falBan.js +0 -7
- package/icon/icons/fal/falBell.d.ts +0 -3
- package/icon/icons/fal/falBell.js +0 -7
- package/icon/icons/fal/falBookOpen.d.ts +0 -3
- package/icon/icons/fal/falBookOpen.js +0 -7
- package/icon/icons/fal/falBroadcastTower.d.ts +0 -3
- package/icon/icons/fal/falBroadcastTower.js +0 -7
- package/icon/icons/fal/falBuilding.d.ts +0 -3
- package/icon/icons/fal/falBuilding.js +0 -7
- package/icon/icons/fal/falBullseye.d.ts +0 -3
- package/icon/icons/fal/falBullseye.js +0 -7
- package/icon/icons/fal/falCalendar.d.ts +0 -3
- package/icon/icons/fal/falCalendar.js +0 -7
- package/icon/icons/fal/falCalendarAlt.d.ts +0 -3
- package/icon/icons/fal/falCalendarAlt.js +0 -7
- package/icon/icons/fal/falCamera.d.ts +0 -3
- package/icon/icons/fal/falCamera.js +0 -7
- package/icon/icons/fal/falCaretDown.d.ts +0 -3
- package/icon/icons/fal/falCaretDown.js +0 -7
- package/icon/icons/fal/falCaretLeft.d.ts +0 -3
- package/icon/icons/fal/falCaretLeft.js +0 -7
- package/icon/icons/fal/falCaretRight.d.ts +0 -3
- package/icon/icons/fal/falCaretRight.js +0 -7
- package/icon/icons/fal/falCaretUp.d.ts +0 -3
- package/icon/icons/fal/falCaretUp.js +0 -7
- package/icon/icons/fal/falCauldron.d.ts +0 -3
- package/icon/icons/fal/falCauldron.js +0 -7
- package/icon/icons/fal/falChartArea.d.ts +0 -3
- package/icon/icons/fal/falChartArea.js +0 -7
- package/icon/icons/fal/falChartBar.d.ts +0 -3
- package/icon/icons/fal/falChartBar.js +0 -7
- package/icon/icons/fal/falChartLine.d.ts +0 -3
- package/icon/icons/fal/falChartLine.js +0 -7
- package/icon/icons/fal/falChartLineDown.d.ts +0 -3
- package/icon/icons/fal/falChartLineDown.js +0 -7
- package/icon/icons/fal/falChartNetwork.d.ts +0 -3
- package/icon/icons/fal/falChartNetwork.js +0 -7
- package/icon/icons/fal/falChartPie.d.ts +0 -3
- package/icon/icons/fal/falChartPie.js +0 -7
- package/icon/icons/fal/falChartPieAlt.d.ts +0 -3
- package/icon/icons/fal/falChartPieAlt.js +0 -7
- package/icon/icons/fal/falChartScatter.d.ts +0 -3
- package/icon/icons/fal/falChartScatter.js +0 -7
- package/icon/icons/fal/falCheck.d.ts +0 -3
- package/icon/icons/fal/falCheck.js +0 -7
- package/icon/icons/fal/falCheckCircle.d.ts +0 -3
- package/icon/icons/fal/falCheckCircle.js +0 -7
- package/icon/icons/fal/falCheckSquare.d.ts +0 -3
- package/icon/icons/fal/falCheckSquare.js +0 -7
- package/icon/icons/fal/falChevronCircleDown.d.ts +0 -3
- package/icon/icons/fal/falChevronCircleDown.js +0 -7
- package/icon/icons/fal/falChevronCircleLeft.d.ts +0 -3
- package/icon/icons/fal/falChevronCircleLeft.js +0 -7
- package/icon/icons/fal/falChevronCircleRight.d.ts +0 -3
- package/icon/icons/fal/falChevronCircleRight.js +0 -7
- package/icon/icons/fal/falChevronCircleUp.d.ts +0 -3
- package/icon/icons/fal/falChevronCircleUp.js +0 -7
- package/icon/icons/fal/falChevronDoubleDown.d.ts +0 -3
- package/icon/icons/fal/falChevronDoubleDown.js +0 -7
- package/icon/icons/fal/falChevronDoubleLeft.d.ts +0 -3
- package/icon/icons/fal/falChevronDoubleLeft.js +0 -7
- package/icon/icons/fal/falChevronDoubleRight.d.ts +0 -3
- package/icon/icons/fal/falChevronDoubleRight.js +0 -7
- package/icon/icons/fal/falChevronDoubleUp.d.ts +0 -3
- package/icon/icons/fal/falChevronDoubleUp.js +0 -7
- package/icon/icons/fal/falChevronDown.d.ts +0 -3
- package/icon/icons/fal/falChevronDown.js +0 -7
- package/icon/icons/fal/falChevronLeft.d.ts +0 -3
- package/icon/icons/fal/falChevronLeft.js +0 -7
- package/icon/icons/fal/falChevronRight.d.ts +0 -3
- package/icon/icons/fal/falChevronRight.js +0 -7
- package/icon/icons/fal/falChevronUp.d.ts +0 -3
- package/icon/icons/fal/falChevronUp.js +0 -7
- package/icon/icons/fal/falCircle.d.ts +0 -3
- package/icon/icons/fal/falCircle.js +0 -7
- package/icon/icons/fal/falCloud.d.ts +0 -3
- package/icon/icons/fal/falCloud.js +0 -7
- package/icon/icons/fal/falCloudShowersHeavy.d.ts +0 -3
- package/icon/icons/fal/falCloudShowersHeavy.js +0 -7
- package/icon/icons/fal/falCloudSnow.d.ts +0 -3
- package/icon/icons/fal/falCloudSnow.js +0 -7
- package/icon/icons/fal/falCloudSun.d.ts +0 -3
- package/icon/icons/fal/falCloudSun.js +0 -7
- package/icon/icons/fal/falCloudSunRain.d.ts +0 -3
- package/icon/icons/fal/falCloudSunRain.js +0 -7
- package/icon/icons/fal/falCloudUpload.d.ts +0 -3
- package/icon/icons/fal/falCloudUpload.js +0 -7
- package/icon/icons/fal/falCode.d.ts +0 -3
- package/icon/icons/fal/falCode.js +0 -7
- package/icon/icons/fal/falCog.d.ts +0 -3
- package/icon/icons/fal/falCog.js +0 -7
- package/icon/icons/fal/falCogs.d.ts +0 -3
- package/icon/icons/fal/falCogs.js +0 -7
- package/icon/icons/fal/falComment.d.ts +0 -3
- package/icon/icons/fal/falComment.js +0 -7
- package/icon/icons/fal/falCommentAlt.d.ts +0 -3
- package/icon/icons/fal/falCommentAlt.js +0 -7
- package/icon/icons/fal/falCompressAlt.d.ts +0 -3
- package/icon/icons/fal/falCompressAlt.js +0 -7
- package/icon/icons/fal/falCopy.d.ts +0 -3
- package/icon/icons/fal/falCopy.js +0 -7
- package/icon/icons/fal/falCreditCard.d.ts +0 -3
- package/icon/icons/fal/falCreditCard.js +0 -7
- package/icon/icons/fal/falDatabase.d.ts +0 -3
- package/icon/icons/fal/falDatabase.js +0 -7
- package/icon/icons/fal/falDotCircle.d.ts +0 -3
- package/icon/icons/fal/falDotCircle.js +0 -7
- package/icon/icons/fal/falDownload.d.ts +0 -3
- package/icon/icons/fal/falDownload.js +0 -7
- package/icon/icons/fal/falEdit.d.ts +0 -3
- package/icon/icons/fal/falEdit.js +0 -7
- package/icon/icons/fal/falEllipsisH.d.ts +0 -3
- package/icon/icons/fal/falEllipsisH.js +0 -7
- package/icon/icons/fal/falEllipsisV.d.ts +0 -3
- package/icon/icons/fal/falEllipsisV.js +0 -7
- package/icon/icons/fal/falEnvelope.d.ts +0 -3
- package/icon/icons/fal/falEnvelope.js +0 -7
- package/icon/icons/fal/falExchange.d.ts +0 -3
- package/icon/icons/fal/falExchange.js +0 -7
- package/icon/icons/fal/falExclamationCircle.d.ts +0 -3
- package/icon/icons/fal/falExclamationCircle.js +0 -7
- package/icon/icons/fal/falExclamationTriangle.d.ts +0 -3
- package/icon/icons/fal/falExclamationTriangle.js +0 -7
- package/icon/icons/fal/falExpandAlt.d.ts +0 -3
- package/icon/icons/fal/falExpandAlt.js +0 -7
- package/icon/icons/fal/falExternalLink.d.ts +0 -3
- package/icon/icons/fal/falExternalLink.js +0 -7
- package/icon/icons/fal/falEye.d.ts +0 -3
- package/icon/icons/fal/falEye.js +0 -7
- package/icon/icons/fal/falEyeSlash.d.ts +0 -3
- package/icon/icons/fal/falEyeSlash.js +0 -7
- package/icon/icons/fal/falFile.d.ts +0 -3
- package/icon/icons/fal/falFile.js +0 -7
- package/icon/icons/fal/falFileAlt.d.ts +0 -3
- package/icon/icons/fal/falFileAlt.js +0 -7
- package/icon/icons/fal/falFileArchive.d.ts +0 -3
- package/icon/icons/fal/falFileArchive.js +0 -7
- package/icon/icons/fal/falFileAudio.d.ts +0 -3
- package/icon/icons/fal/falFileAudio.js +0 -7
- package/icon/icons/fal/falFileCertificate.d.ts +0 -3
- package/icon/icons/fal/falFileCertificate.js +0 -7
- package/icon/icons/fal/falFileChartLine.d.ts +0 -3
- package/icon/icons/fal/falFileChartLine.js +0 -7
- package/icon/icons/fal/falFileChartPie.d.ts +0 -3
- package/icon/icons/fal/falFileChartPie.js +0 -7
- package/icon/icons/fal/falFileCheck.d.ts +0 -3
- package/icon/icons/fal/falFileCheck.js +0 -7
- package/icon/icons/fal/falFileCode.d.ts +0 -3
- package/icon/icons/fal/falFileCode.js +0 -7
- package/icon/icons/fal/falFileCsv.d.ts +0 -3
- package/icon/icons/fal/falFileCsv.js +0 -7
- package/icon/icons/fal/falFileEdit.d.ts +0 -3
- package/icon/icons/fal/falFileEdit.js +0 -7
- package/icon/icons/fal/falFileExcel.d.ts +0 -3
- package/icon/icons/fal/falFileExcel.js +0 -7
- package/icon/icons/fal/falFileImage.d.ts +0 -3
- package/icon/icons/fal/falFileImage.js +0 -7
- package/icon/icons/fal/falFilePdf.d.ts +0 -3
- package/icon/icons/fal/falFilePdf.js +0 -7
- package/icon/icons/fal/falFilePlus.d.ts +0 -3
- package/icon/icons/fal/falFilePlus.js +0 -7
- package/icon/icons/fal/falFilePowerpoint.d.ts +0 -3
- package/icon/icons/fal/falFilePowerpoint.js +0 -7
- package/icon/icons/fal/falFileSpreadsheet.d.ts +0 -3
- package/icon/icons/fal/falFileSpreadsheet.js +0 -7
- package/icon/icons/fal/falFileVideo.d.ts +0 -3
- package/icon/icons/fal/falFileVideo.js +0 -7
- package/icon/icons/fal/falFileWord.d.ts +0 -3
- package/icon/icons/fal/falFileWord.js +0 -7
- package/icon/icons/fal/falFilter.d.ts +0 -3
- package/icon/icons/fal/falFilter.js +0 -7
- package/icon/icons/fal/falFlag.d.ts +0 -3
- package/icon/icons/fal/falFlag.js +0 -7
- package/icon/icons/fal/falFolder.d.ts +0 -3
- package/icon/icons/fal/falFolder.js +0 -7
- package/icon/icons/fal/falFolderOpen.d.ts +0 -3
- package/icon/icons/fal/falFolderOpen.js +0 -7
- package/icon/icons/fal/falFolderPlus.d.ts +0 -3
- package/icon/icons/fal/falFolderPlus.js +0 -7
- package/icon/icons/fal/falFolders.d.ts +0 -3
- package/icon/icons/fal/falFolders.js +0 -7
- package/icon/icons/fal/falGlassesAlt.d.ts +0 -3
- package/icon/icons/fal/falGlassesAlt.js +0 -7
- package/icon/icons/fal/falGlobe.d.ts +0 -3
- package/icon/icons/fal/falGlobe.js +0 -7
- package/icon/icons/fal/falHome.d.ts +0 -3
- package/icon/icons/fal/falHome.js +0 -7
- package/icon/icons/fal/falHourglass.d.ts +0 -3
- package/icon/icons/fal/falHourglass.js +0 -7
- package/icon/icons/fal/falImage.d.ts +0 -3
- package/icon/icons/fal/falImage.js +0 -7
- package/icon/icons/fal/falInfoCircle.d.ts +0 -3
- package/icon/icons/fal/falInfoCircle.js +0 -7
- package/icon/icons/fal/falKey.d.ts +0 -3
- package/icon/icons/fal/falKey.js +0 -7
- package/icon/icons/fal/falLayerPlus.d.ts +0 -3
- package/icon/icons/fal/falLayerPlus.js +0 -7
- package/icon/icons/fal/falLink.d.ts +0 -3
- package/icon/icons/fal/falLink.js +0 -7
- package/icon/icons/fal/falList.d.ts +0 -3
- package/icon/icons/fal/falList.js +0 -7
- package/icon/icons/fal/falLockAlt.d.ts +0 -3
- package/icon/icons/fal/falLockAlt.js +0 -7
- package/icon/icons/fal/falLongArrowDown.d.ts +0 -3
- package/icon/icons/fal/falLongArrowDown.js +0 -7
- package/icon/icons/fal/falLongArrowLeft.d.ts +0 -3
- package/icon/icons/fal/falLongArrowLeft.js +0 -7
- package/icon/icons/fal/falLongArrowRight.d.ts +0 -3
- package/icon/icons/fal/falLongArrowRight.js +0 -7
- package/icon/icons/fal/falLongArrowUp.d.ts +0 -3
- package/icon/icons/fal/falLongArrowUp.js +0 -7
- package/icon/icons/fal/falMap.d.ts +0 -3
- package/icon/icons/fal/falMap.js +0 -7
- package/icon/icons/fal/falMapMarked.d.ts +0 -3
- package/icon/icons/fal/falMapMarked.js +0 -7
- package/icon/icons/fal/falMapMarkedAlt.d.ts +0 -3
- package/icon/icons/fal/falMapMarkedAlt.js +0 -7
- package/icon/icons/fal/falMapMarker.d.ts +0 -3
- package/icon/icons/fal/falMapMarker.js +0 -7
- package/icon/icons/fal/falMapMarkerAlt.d.ts +0 -3
- package/icon/icons/fal/falMapMarkerAlt.js +0 -7
- package/icon/icons/fal/falMapMarkerAltSlash.d.ts +0 -3
- package/icon/icons/fal/falMapMarkerAltSlash.js +0 -7
- package/icon/icons/fal/falMapMarkerCheck.d.ts +0 -3
- package/icon/icons/fal/falMapMarkerCheck.js +0 -7
- package/icon/icons/fal/falMapMarkerExclamation.d.ts +0 -3
- package/icon/icons/fal/falMapMarkerExclamation.js +0 -7
- package/icon/icons/fal/falMinus.d.ts +0 -3
- package/icon/icons/fal/falMinus.js +0 -7
- package/icon/icons/fal/falPause.d.ts +0 -3
- package/icon/icons/fal/falPause.js +0 -7
- package/icon/icons/fal/falPauseCircle.d.ts +0 -3
- package/icon/icons/fal/falPauseCircle.js +0 -7
- package/icon/icons/fal/falPen.d.ts +0 -3
- package/icon/icons/fal/falPen.js +0 -7
- package/icon/icons/fal/falPlay.d.ts +0 -3
- package/icon/icons/fal/falPlay.js +0 -7
- package/icon/icons/fal/falPlayCircle.d.ts +0 -3
- package/icon/icons/fal/falPlayCircle.js +0 -7
- package/icon/icons/fal/falPlug.d.ts +0 -3
- package/icon/icons/fal/falPlug.js +0 -7
- package/icon/icons/fal/falPlus.d.ts +0 -3
- package/icon/icons/fal/falPlus.js +0 -7
- package/icon/icons/fal/falPlusCircle.d.ts +0 -3
- package/icon/icons/fal/falPlusCircle.js +0 -7
- package/icon/icons/fal/falPlusSquare.d.ts +0 -3
- package/icon/icons/fal/falPlusSquare.js +0 -7
- package/icon/icons/fal/falPrint.d.ts +0 -3
- package/icon/icons/fal/falPrint.js +0 -7
- package/icon/icons/fal/falPuzzlePiece.d.ts +0 -3
- package/icon/icons/fal/falPuzzlePiece.js +0 -7
- package/icon/icons/fal/falReceipt.d.ts +0 -3
- package/icon/icons/fal/falReceipt.js +0 -7
- package/icon/icons/fal/falRedo.d.ts +0 -3
- package/icon/icons/fal/falRedo.js +0 -7
- package/icon/icons/fal/falSave.d.ts +0 -3
- package/icon/icons/fal/falSave.js +0 -7
- package/icon/icons/fal/falSearch.d.ts +0 -3
- package/icon/icons/fal/falSearch.js +0 -7
- package/icon/icons/fal/falSearchPlus.d.ts +0 -3
- package/icon/icons/fal/falSearchPlus.js +0 -7
- package/icon/icons/fal/falServer.d.ts +0 -3
- package/icon/icons/fal/falServer.js +0 -7
- package/icon/icons/fal/falShare.d.ts +0 -3
- package/icon/icons/fal/falShare.js +0 -7
- package/icon/icons/fal/falShareAll.d.ts +0 -3
- package/icon/icons/fal/falShareAll.js +0 -7
- package/icon/icons/fal/falShareAlt.d.ts +0 -3
- package/icon/icons/fal/falShareAlt.js +0 -7
- package/icon/icons/fal/falShieldAlt.d.ts +0 -3
- package/icon/icons/fal/falShieldAlt.js +0 -7
- package/icon/icons/fal/falShieldCheck.d.ts +0 -3
- package/icon/icons/fal/falShieldCheck.js +0 -7
- package/icon/icons/fal/falShip.d.ts +0 -3
- package/icon/icons/fal/falShip.js +0 -7
- package/icon/icons/fal/falShoppingBasket.d.ts +0 -3
- package/icon/icons/fal/falShoppingBasket.js +0 -7
- package/icon/icons/fal/falSignInAlt.d.ts +0 -3
- package/icon/icons/fal/falSignInAlt.js +0 -7
- package/icon/icons/fal/falSignOut.d.ts +0 -3
- package/icon/icons/fal/falSignOut.js +0 -7
- package/icon/icons/fal/falSignOutAlt.d.ts +0 -3
- package/icon/icons/fal/falSignOutAlt.js +0 -7
- package/icon/icons/fal/falSlidersV.d.ts +0 -3
- package/icon/icons/fal/falSlidersV.js +0 -7
- package/icon/icons/fal/falSnowBlowing.d.ts +0 -3
- package/icon/icons/fal/falSnowBlowing.js +0 -7
- package/icon/icons/fal/falSnowflake.d.ts +0 -3
- package/icon/icons/fal/falSnowflake.js +0 -7
- package/icon/icons/fal/falSolarPanel.d.ts +0 -3
- package/icon/icons/fal/falSolarPanel.js +0 -7
- package/icon/icons/fal/falSort.d.ts +0 -3
- package/icon/icons/fal/falSort.js +0 -7
- package/icon/icons/fal/falSpinner.d.ts +0 -3
- package/icon/icons/fal/falSpinner.js +0 -7
- package/icon/icons/fal/falSquare.d.ts +0 -3
- package/icon/icons/fal/falSquare.js +0 -7
- package/icon/icons/fal/falStepForward.d.ts +0 -3
- package/icon/icons/fal/falStepForward.js +0 -7
- package/icon/icons/fal/falStop.d.ts +0 -3
- package/icon/icons/fal/falStop.js +0 -7
- package/icon/icons/fal/falStopCircle.d.ts +0 -3
- package/icon/icons/fal/falStopCircle.js +0 -7
- package/icon/icons/fal/falStopwatch.d.ts +0 -3
- package/icon/icons/fal/falStopwatch.js +0 -7
- package/icon/icons/fal/falSuitcase.d.ts +0 -3
- package/icon/icons/fal/falSuitcase.js +0 -7
- package/icon/icons/fal/falSun.d.ts +0 -3
- package/icon/icons/fal/falSun.js +0 -7
- package/icon/icons/fal/falSync.d.ts +0 -3
- package/icon/icons/fal/falSync.js +0 -7
- package/icon/icons/fal/falTachometer.d.ts +0 -3
- package/icon/icons/fal/falTachometer.js +0 -7
- package/icon/icons/fal/falTemperatureHigh.d.ts +0 -3
- package/icon/icons/fal/falTemperatureHigh.js +0 -7
- package/icon/icons/fal/falTh.d.ts +0 -3
- package/icon/icons/fal/falTh.js +0 -7
- package/icon/icons/fal/falThLarge.d.ts +0 -3
- package/icon/icons/fal/falThLarge.js +0 -7
- package/icon/icons/fal/falThList.d.ts +0 -3
- package/icon/icons/fal/falThList.js +0 -7
- package/icon/icons/fal/falTimes.d.ts +0 -3
- package/icon/icons/fal/falTimes.js +0 -7
- package/icon/icons/fal/falTimesCircle.d.ts +0 -3
- package/icon/icons/fal/falTimesCircle.js +0 -7
- package/icon/icons/fal/falToggleOff.d.ts +0 -3
- package/icon/icons/fal/falToggleOff.js +0 -7
- package/icon/icons/fal/falToggleOn.d.ts +0 -3
- package/icon/icons/fal/falToggleOn.js +0 -7
- package/icon/icons/fal/falTrashAlt.d.ts +0 -3
- package/icon/icons/fal/falTrashAlt.js +0 -7
- package/icon/icons/fal/falUnlockAlt.d.ts +0 -3
- package/icon/icons/fal/falUnlockAlt.js +0 -7
- package/icon/icons/fal/falUser.d.ts +0 -3
- package/icon/icons/fal/falUser.js +0 -7
- package/icon/icons/fal/falUserChart.d.ts +0 -3
- package/icon/icons/fal/falUserChart.js +0 -7
- package/icon/icons/fal/falUserCircle.d.ts +0 -3
- package/icon/icons/fal/falUserCircle.js +0 -7
- package/icon/icons/fal/falUserCog.d.ts +0 -3
- package/icon/icons/fal/falUserCog.js +0 -7
- package/icon/icons/fal/falUserEdit.d.ts +0 -3
- package/icon/icons/fal/falUserEdit.js +0 -7
- package/icon/icons/fal/falUserFriends.d.ts +0 -3
- package/icon/icons/fal/falUserFriends.js +0 -7
- package/icon/icons/fal/falUserPlus.d.ts +0 -3
- package/icon/icons/fal/falUserPlus.js +0 -7
- package/icon/icons/fal/falUserShield.d.ts +0 -3
- package/icon/icons/fal/falUserShield.js +0 -7
- package/icon/icons/fal/falUserTimes.d.ts +0 -3
- package/icon/icons/fal/falUserTimes.js +0 -7
- package/icon/icons/fal/falUsers.d.ts +0 -3
- package/icon/icons/fal/falUsers.js +0 -7
- package/icon/icons/fal/falUsersClass.d.ts +0 -3
- package/icon/icons/fal/falUsersClass.js +0 -7
- package/icon/icons/fal/falWater.d.ts +0 -3
- package/icon/icons/fal/falWater.js +0 -7
- package/icon/icons/fal/falWind.d.ts +0 -3
- package/icon/icons/fal/falWind.js +0 -7
- package/icon/icons/fal/falWindTurbine.d.ts +0 -3
- package/icon/icons/fal/falWindTurbine.js +0 -7
- package/icon/icons/fal/falWrench.d.ts +0 -3
- package/icon/icons/fal/falWrench.js +0 -7
- package/icon/icons/fas/fasCaretDown.d.ts +0 -3
- package/icon/icons/fas/fasCaretDown.js +0 -7
- package/icon/icons/fas/fasCaretLeft.d.ts +0 -3
- package/icon/icons/fas/fasCaretLeft.js +0 -7
- package/icon/icons/fas/fasCaretRight.d.ts +0 -3
- package/icon/icons/fas/fasCaretRight.js +0 -7
- package/icon/icons/fas/fasCaretUp.d.ts +0 -3
- package/icon/icons/fas/fasCaretUp.js +0 -7
- package/icon/icons/fas/fasDiamond.d.ts +0 -3
- package/icon/icons/fas/fasDiamond.js +0 -7
- package/icon/icons/fas/fasFolder.d.ts +0 -3
- package/icon/icons/fas/fasFolder.js +0 -7
- package/icon/icons/fas/fasMapMarkerAlt.d.ts +0 -3
- package/icon/icons/fas/fasMapMarkerAlt.js +0 -7
- package/icon/icons/fas/fasMapMarkerExclamation.d.ts +0 -3
- package/icon/icons/fas/fasMapMarkerExclamation.js +0 -7
- package/icon/icons/fas/fasQuoteLeft.d.ts +0 -3
- package/icon/icons/fas/fasQuoteLeft.js +0 -7
- package/icon/icons/fas/fasQuoteRight.d.ts +0 -3
- package/icon/icons/fas/fasQuoteRight.js +0 -7
- package/icon/icons/fas/fasSolarPanel.d.ts +0 -3
- package/icon/icons/fas/fasSolarPanel.js +0 -7
- package/icon/icons/fas/fasSort.d.ts +0 -3
- package/icon/icons/fas/fasSort.js +0 -7
- package/icon/icons/fas/fasStar.d.ts +0 -3
- package/icon/icons/fas/fasStar.js +0 -7
- package/icon/icons/fas/fasWindTurbine.d.ts +0 -3
- package/icon/icons/fas/fasWindTurbine.js +0 -7
- package/icon/icons/types.d.ts +0 -1
- package/icon/icons/types.js +0 -2
- package/styles/colors.d.ts +0 -171
- package/styles/colors.js +0 -96
- package/styles/durations.d.ts +0 -7
- package/styles/durations.js +0 -8
- package/styles/fontSizes.d.ts +0 -7
- package/styles/fontSizes.js +0 -8
- package/styles/fontWeights.d.ts +0 -7
- package/styles/fontWeights.js +0 -8
- package/styles/fonts.d.ts +0 -4
- package/styles/fonts.js +0 -5
- package/styles/radii.d.ts +0 -8
- package/styles/radii.js +0 -9
- package/styles/screens.d.ts +0 -8
- package/styles/screens.js +0 -9
- package/styles/shadows.d.ts +0 -9
- package/styles/shadows.js +0 -11
- package/theme/foundations/radius.d.ts +0 -7
- package/theme/foundations/radius.js +0 -9
- package/theme/foundations/typography.d.ts +0 -18
- package/theme/foundations/typography.js +0 -20
- package/theme/foundations.d.ts +0 -144
- package/theme/foundations.js +0 -20
package/alert/alertTitle.js
CHANGED
|
@@ -18,13 +18,13 @@ exports.AlertTitle = void 0;
|
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
19
|
var context_1 = require("./context");
|
|
20
20
|
var core_1 = require("../core");
|
|
21
|
-
var heading_1 =
|
|
21
|
+
var heading_1 = require("../heading");
|
|
22
22
|
exports.AlertTitle = core_1.vui(function (props, ref) {
|
|
23
23
|
var _a;
|
|
24
24
|
var alertProps = (_a = context_1.useAlert()) !== null && _a !== void 0 ? _a : {};
|
|
25
25
|
var mergedProps = __assign(__assign({}, alertProps), props);
|
|
26
26
|
var styles = core_1.useStyleConfig('Alert', mergedProps);
|
|
27
|
-
return react_1.default.createElement(heading_1.
|
|
27
|
+
return react_1.default.createElement(heading_1.H2, __assign({ className: "vui-alertTitle", lineHeight: 1.5, mr: 1, ref: ref }, styles.title, props));
|
|
28
28
|
});
|
|
29
29
|
exports.AlertTitle.displayName = 'AlertTitle';
|
|
30
30
|
exports.default = exports.AlertTitle;
|
package/button/button.types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { IconProp } from '../icon';
|
|
|
3
3
|
import { BackgroundColorProps, BordersProps, ColorProps, EffectsProps, FontSizeProps, FontWeightProps, PointerEventsProps, SizingProps, SpaceProps, TransitionsProps } from '../system';
|
|
4
4
|
import { ThemingProps } from '../theme';
|
|
5
5
|
export interface ButtonProps extends ButtonStyleProps, ThemingProps<'Button'> {
|
|
6
|
-
colorScheme?: 'blue' | 'green' | 'pink' | 'prussian' | 'red';
|
|
6
|
+
colorScheme?: 'blue' | 'green' | 'grey' | 'pink' | 'prussian' | 'red';
|
|
7
7
|
icon?: IconProp;
|
|
8
8
|
iconLeft?: IconProp;
|
|
9
9
|
iconRight?: IconProp;
|
|
@@ -14,7 +14,7 @@ export interface ButtonProps extends ButtonStyleProps, ThemingProps<'Button'> {
|
|
|
14
14
|
isSplit?: boolean;
|
|
15
15
|
itemLeft?: React.ReactNode;
|
|
16
16
|
itemRight?: React.ReactNode;
|
|
17
|
-
text?: string;
|
|
17
|
+
text?: number | string;
|
|
18
18
|
}
|
|
19
19
|
export interface ButtonStyleProps extends BackgroundColorProps, BordersProps, ColorProps, EffectsProps, FontSizeProps, FontWeightProps, PointerEventsProps, SizingProps, SpaceProps, TransitionsProps {
|
|
20
20
|
}
|
package/button/buttons.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
1
|
+
import { ButtonProps } from './button.types';
|
|
2
|
+
export declare const AppButton: import("../core").VuiComponent<"button", ButtonProps>;
|
|
3
|
+
export declare const BackButton: import("../core").VuiComponent<"button", ButtonProps>;
|
|
4
|
+
export declare const CloseButton: import("../core").VuiComponent<"button", ButtonProps>;
|
|
5
|
+
export declare const CTAButton: import("../core").VuiComponent<"button", ButtonProps>;
|
|
6
|
+
export declare const DangerButton: import("../core").VuiComponent<"button", ButtonProps>;
|
|
7
|
+
export declare const LineButton: import("../core").VuiComponent<"button", ButtonProps>;
|
|
8
|
+
export declare const TextButton: import("../core").VuiComponent<"button", ButtonProps>;
|
package/button/buttons.js
CHANGED
|
@@ -14,12 +14,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.TextButton = exports.
|
|
17
|
+
exports.TextButton = exports.LineButton = exports.DangerButton = exports.CTAButton = exports.CloseButton = exports.BackButton = exports.AppButton = void 0;
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
19
|
var button_1 = __importDefault(require("./button"));
|
|
20
20
|
var core_1 = require("../core");
|
|
21
21
|
exports.AppButton = core_1.vui(function (props, ref) { return (react_1.default.createElement(button_1.default, __assign({ colorScheme: "blue", ref: ref, variant: "solid" }, props))); });
|
|
22
|
+
exports.BackButton = core_1.vui(function (props, ref) { return (react_1.default.createElement(button_1.default, __assign({ colorScheme: "blue", icon: "falChevronLeft", ref: ref, variant: "text" }, props))); });
|
|
23
|
+
exports.CloseButton = core_1.vui(function (props, ref) { return (react_1.default.createElement(button_1.default, __assign({ colorScheme: "blue", icon: "falTimes", ref: ref, variant: "text" }, props))); });
|
|
22
24
|
exports.CTAButton = core_1.vui(function (props, ref) { return (react_1.default.createElement(button_1.default, __assign({ colorScheme: "green", ref: ref, variant: "solid" }, props))); });
|
|
23
25
|
exports.DangerButton = core_1.vui(function (props, ref) { return (react_1.default.createElement(button_1.default, __assign({ colorScheme: "red", ref: ref, variant: "solid" }, props))); });
|
|
24
|
-
exports.
|
|
26
|
+
exports.LineButton = core_1.vui(function (props, ref) { return (react_1.default.createElement(button_1.default, __assign({ colorScheme: "blue", ref: ref, variant: "outlined" }, props))); });
|
|
25
27
|
exports.TextButton = core_1.vui(function (props, ref) { return (react_1.default.createElement(button_1.default, __assign({ colorScheme: "blue", ref: ref, variant: "text" }, props))); });
|
package/button/theme.d.ts
CHANGED
|
@@ -7,8 +7,13 @@ declare function variantOutlined(props: Dict): {
|
|
|
7
7
|
borderColor: string;
|
|
8
8
|
borderWidth: number;
|
|
9
9
|
};
|
|
10
|
+
declare function variantSubtle(props: Dict): {
|
|
11
|
+
hoverBg: string;
|
|
12
|
+
activeBg: string;
|
|
13
|
+
bg: string;
|
|
14
|
+
color: string;
|
|
15
|
+
};
|
|
10
16
|
declare function variantSolid(props: Dict): {
|
|
11
|
-
borderColor: string;
|
|
12
17
|
hoverBg: string;
|
|
13
18
|
activeBg: string;
|
|
14
19
|
bg: string;
|
|
@@ -59,6 +64,7 @@ declare const _default: {
|
|
|
59
64
|
variants: {
|
|
60
65
|
outlined: typeof variantOutlined;
|
|
61
66
|
solid: typeof variantSolid;
|
|
67
|
+
subtle: typeof variantSubtle;
|
|
62
68
|
text: typeof variantText;
|
|
63
69
|
};
|
|
64
70
|
};
|
package/button/theme.js
CHANGED
|
@@ -16,10 +16,23 @@ function variantOutlined(props) {
|
|
|
16
16
|
var styles = __assign({ borderColor: c + ".80", borderWidth: 1 }, variantText(props));
|
|
17
17
|
return styles;
|
|
18
18
|
}
|
|
19
|
+
function variantSubtle(props) {
|
|
20
|
+
var c = props.colorScheme;
|
|
21
|
+
var styles = {
|
|
22
|
+
hoverBg: c + ".30",
|
|
23
|
+
activeBg: c + ".40",
|
|
24
|
+
bg: c + ".20",
|
|
25
|
+
color: c + ".90"
|
|
26
|
+
};
|
|
27
|
+
// Special cases
|
|
28
|
+
if (c === 'grey') {
|
|
29
|
+
styles.color = 'prussian.80';
|
|
30
|
+
}
|
|
31
|
+
return styles;
|
|
32
|
+
}
|
|
19
33
|
function variantSolid(props) {
|
|
20
34
|
var c = props.colorScheme;
|
|
21
35
|
var styles = {
|
|
22
|
-
borderColor: c + ".100",
|
|
23
36
|
hoverBg: c + ".90",
|
|
24
37
|
activeBg: c + ".100",
|
|
25
38
|
bg: c + ".80",
|
|
@@ -45,6 +58,9 @@ function variantText(props) {
|
|
|
45
58
|
styles.activeBg = 'blue.30';
|
|
46
59
|
styles.hoverBg = 'blue.20';
|
|
47
60
|
}
|
|
61
|
+
if (c === 'grey') {
|
|
62
|
+
styles.color = 'prussian.80';
|
|
63
|
+
}
|
|
48
64
|
return styles;
|
|
49
65
|
}
|
|
50
66
|
var defaultProps = {
|
|
@@ -85,6 +101,7 @@ var sizes = {
|
|
|
85
101
|
var variants = {
|
|
86
102
|
outlined: variantOutlined,
|
|
87
103
|
solid: variantSolid,
|
|
104
|
+
subtle: variantSubtle,
|
|
88
105
|
text: variantText
|
|
89
106
|
};
|
|
90
107
|
exports.default = {
|
|
@@ -7,12 +7,9 @@ export declare type RefPropsOf<C extends React.ElementType, Props = {}> = RightJ
|
|
|
7
7
|
export declare type RightJoinProps<SourceProps, OverrideProps> = OverrideProps & Omit<SourceProps, keyof OverrideProps>;
|
|
8
8
|
/** VUI component interface, which allows element props inference and extension, 'as' and 'ref' */
|
|
9
9
|
export interface VuiComponent<C extends React.ElementType, Props = {}> {
|
|
10
|
-
<AsC extends React.ElementType>(props: RefPropsOf<
|
|
10
|
+
<AsC extends React.ElementType>(props: RefPropsOf<PropsOf<C, AsC>, Props> & {
|
|
11
11
|
as: AsC;
|
|
12
12
|
}): JSX.Element;
|
|
13
|
-
<AsC extends React.ElementType>(props: RefPropsOf<AsC, Props> & {
|
|
14
|
-
forwardedAs: AsC;
|
|
15
|
-
}): JSX.Element;
|
|
16
13
|
(props: RefPropsOf<C, Props>): JSX.Element;
|
|
17
14
|
defaultProps?: Partial<PropsOf<C, Props>>;
|
|
18
15
|
displayName?: string;
|
package/core/vuiProvider.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
|
-
var styled_components_1 = require("
|
|
7
|
+
var styled_components_1 = require("styled-components");
|
|
8
8
|
var globalStyle_1 = __importDefault(require("./globalStyle"));
|
|
9
9
|
var resetCSS_1 = __importDefault(require("./resetCSS"));
|
|
10
10
|
var theme_1 = __importDefault(require("../theme"));
|
package/heading/heading.js
CHANGED
|
@@ -39,7 +39,7 @@ var utils_1 = require("../utils");
|
|
|
39
39
|
var generator = styled_components_1.compose(system_1.isTruncated, system_1.maxLines, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
|
|
40
40
|
exports.HeadingBase = styled_components_2.default.h2.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), generator);
|
|
41
41
|
exports.Heading = core_1.vui(function (props, ref) {
|
|
42
|
-
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"]);
|
|
42
|
+
var _a = core_1.omitThemingProps(props), align = _a.align, casing = _a.casing, children = _a.children, className = _a.className, decoration = _a.decoration, text = _a.text, weight = _a.weight, rest = __rest(_a, ["align", "casing", "children", "className", "decoration", "text", "weight"]);
|
|
43
43
|
var styles = core_1.useStyleConfig('Heading', props);
|
|
44
44
|
var hClassName = props.size ? "vui-" + props.size : '';
|
|
45
45
|
var aliasedProps = utils_1.filterUndefined({
|
|
@@ -48,7 +48,7 @@ exports.Heading = core_1.vui(function (props, ref) {
|
|
|
48
48
|
textDecoration: decoration,
|
|
49
49
|
textTransform: casing
|
|
50
50
|
});
|
|
51
|
-
return (react_1.default.createElement(exports.HeadingBase, __assign({ className: utils_1.cs('vui-heading', hClassName, className), fontWeight: "demi", ref: ref, transitionDuration: "fast" }, styles, aliasedProps, rest)));
|
|
51
|
+
return (react_1.default.createElement(exports.HeadingBase, __assign({ className: utils_1.cs('vui-heading', hClassName, className), fontWeight: "demi", ref: ref, transitionDuration: "fast" }, styles, aliasedProps, rest), children !== null && children !== void 0 ? children : text));
|
|
52
52
|
});
|
|
53
53
|
exports.Heading.displayName = 'Heading';
|
|
54
54
|
exports.default = exports.Heading;
|
|
@@ -4,6 +4,7 @@ export interface HeadingProps extends HeadingStyleProps, ThemingProps<'Heading'>
|
|
|
4
4
|
align?: TypographyProps['textAlign'];
|
|
5
5
|
casing?: TypographyProps['textTransform'];
|
|
6
6
|
decoration?: TypographyProps['textDecoration'];
|
|
7
|
+
text?: number | string;
|
|
7
8
|
weight?: TypographyProps['fontWeight'];
|
|
8
9
|
}
|
|
9
10
|
export interface HeadingStyleProps extends IsTruncatedProps, MaxLinesProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
package/heading/headings.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
1
|
+
import { HeadingProps } from './heading.types';
|
|
2
|
+
export declare const H1: import("../core").VuiComponent<"h1", HeadingProps>;
|
|
3
|
+
export declare const H2: import("../core").VuiComponent<"h2", HeadingProps>;
|
|
4
|
+
export declare const H3: import("../core").VuiComponent<"h3", HeadingProps>;
|
|
5
|
+
export declare const H4: import("../core").VuiComponent<"h4", HeadingProps>;
|
|
6
|
+
export declare const H5: import("../core").VuiComponent<"h5", HeadingProps>;
|
|
7
|
+
export declare const H6: import("../core").VuiComponent<"h6", HeadingProps>;
|
package/label/label.types.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface LabelProps extends LabelStyleProps, ThemingProps<'Label'> {
|
|
|
16
16
|
isSplit?: boolean;
|
|
17
17
|
itemLeft?: React.ReactNode;
|
|
18
18
|
itemRight?: React.ReactNode;
|
|
19
|
-
text?: string;
|
|
19
|
+
text?: number | string;
|
|
20
20
|
weight?: TypographyProps['fontWeight'];
|
|
21
21
|
}
|
|
22
22
|
export interface LabelStyleProps extends BackgroundColorProps, BordersProps, EffectsProps, InteractivityProps, IsTruncatedProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
package/link/link.js
CHANGED
|
@@ -39,7 +39,7 @@ var utils_1 = require("../utils");
|
|
|
39
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
40
|
exports.LinkBase = styled_components_2.default.a.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\toutline: none;\n\ttext-decoration: none;\n\twidth: fit-content;\n\n\t", "\n"], ["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\toutline: none;\n\ttext-decoration: none;\n\twidth: fit-content;\n\n\t", "\n"])), generator);
|
|
41
41
|
exports.Link = core_1.vui(function (props, ref) {
|
|
42
|
-
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"]);
|
|
42
|
+
var _a = core_1.omitThemingProps(props), children = _a.children, className = _a.className, decoration = _a.decoration, _b = _a.hoverDecoration, hoverDecoration = _b === void 0 ? 'underline' : _b, isExternal = _a.isExternal, text = _a.text, weight = _a.weight, rest = __rest(_a, ["children", "className", "decoration", "hoverDecoration", "isExternal", "text", "weight"]);
|
|
43
43
|
var styles = core_1.useStyleConfig('Link', props);
|
|
44
44
|
var aliasedProps = utils_1.filterUndefined({
|
|
45
45
|
fontWeight: weight,
|
|
@@ -48,7 +48,7 @@ exports.Link = core_1.vui(function (props, ref) {
|
|
|
48
48
|
target: isExternal ? '_blank' : undefined,
|
|
49
49
|
textDecoration: decoration
|
|
50
50
|
});
|
|
51
|
-
return (react_1.default.createElement(exports.LinkBase, __assign({ borderRadius: "sm", className: utils_1.cs('vui-link', className), focusRing: 2, ref: ref, transitionDuration: "instant" }, styles, aliasedProps, rest)));
|
|
51
|
+
return (react_1.default.createElement(exports.LinkBase, __assign({ borderRadius: "sm", className: utils_1.cs('vui-link', className), focusRing: 2, ref: ref, transitionDuration: "instant" }, styles, aliasedProps, rest), children !== null && children !== void 0 ? children : text));
|
|
52
52
|
});
|
|
53
53
|
exports.Link.displayName = 'Link';
|
|
54
54
|
exports.default = exports.Link;
|
package/link/link.types.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface LinkProps extends LinkStyleProps, ThemingProps<'Link'> {
|
|
|
5
5
|
decoration?: TypographyProps['textDecoration'];
|
|
6
6
|
hoverDecoration?: TypographyProps['textDecoration'];
|
|
7
7
|
isExternal?: boolean;
|
|
8
|
+
text?: number | string;
|
|
8
9
|
weight?: TypographyProps['fontWeight'];
|
|
9
10
|
}
|
|
10
11
|
export interface LinkStyleProps extends BordersProps, IsTruncatedProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
package/list/list.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ListProps, ListStyleProps } from './list.types';
|
|
2
|
+
import ListHeading from './listHeading';
|
|
2
3
|
import ListIcon from './listIcon';
|
|
3
4
|
import ListItem from './listItem';
|
|
4
5
|
import { VuiComponent } from '../core';
|
|
5
6
|
export declare const ListBase: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, ListStyleProps, never>;
|
|
6
7
|
export declare const List: VuiComponent<"ul", ListProps> & {
|
|
8
|
+
Heading: typeof ListHeading;
|
|
7
9
|
Icon: typeof ListIcon;
|
|
8
10
|
Item: typeof ListItem;
|
|
9
11
|
};
|
package/list/list.js
CHANGED
|
@@ -53,6 +53,7 @@ var styled_components_1 = require("@xstyled/styled-components");
|
|
|
53
53
|
var react_1 = __importStar(require("react"));
|
|
54
54
|
var styled_components_2 = __importDefault(require("styled-components"));
|
|
55
55
|
var context_1 = require("./context");
|
|
56
|
+
var listHeading_1 = __importDefault(require("./listHeading"));
|
|
56
57
|
var listIcon_1 = __importDefault(require("./listIcon"));
|
|
57
58
|
var listItem_1 = __importDefault(require("./listItem"));
|
|
58
59
|
var core_1 = require("../core");
|
|
@@ -60,7 +61,7 @@ var utils_1 = require("../utils");
|
|
|
60
61
|
var generator = styled_components_1.compose(styled_components_1.borders, styled_components_1.flexboxes, styled_components_1.layout, styled_components_1.sizing, styled_components_1.space, styled_components_1.typography);
|
|
61
62
|
exports.ListBase = styled_components_2.default.ul.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), generator);
|
|
62
63
|
exports.List = core_1.vui(function (props, ref) {
|
|
63
|
-
var children = props.children, className = props.className, colorScheme = props.colorScheme,
|
|
64
|
+
var children = props.children, className = props.className, colorScheme = props.colorScheme, heading = props.heading, isInteractive = props.isInteractive, size = props.size, variant = props.variant, rest = __rest(props, ["children", "className", "colorScheme", "heading", "isInteractive", "size", "variant"]);
|
|
64
65
|
var styles = core_1.useStyleConfig('List', props);
|
|
65
66
|
var context = react_1.useMemo(function () { return utils_1.filterUndefined({ colorScheme: colorScheme, isInteractive: isInteractive, size: size, styles: styles, variant: variant }); }, [
|
|
66
67
|
colorScheme,
|
|
@@ -70,10 +71,11 @@ exports.List = core_1.vui(function (props, ref) {
|
|
|
70
71
|
]);
|
|
71
72
|
return (react_1.default.createElement(context_1.ListProvider, { value: context },
|
|
72
73
|
react_1.default.createElement(exports.ListBase, __assign({ className: utils_1.cs('vui-list', className), ref: ref }, styles.container, rest),
|
|
73
|
-
|
|
74
|
+
heading && react_1.default.createElement(listHeading_1.default, null, heading),
|
|
74
75
|
children)));
|
|
75
76
|
});
|
|
76
77
|
exports.List.displayName = 'List';
|
|
78
|
+
exports.List.Heading = listHeading_1.default;
|
|
77
79
|
exports.List.Icon = listIcon_1.default;
|
|
78
80
|
exports.List.Item = listItem_1.default;
|
|
79
81
|
exports.default = exports.List;
|
package/list/list.types.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { ThemingProps } from '../theme';
|
|
|
3
3
|
export interface ListProps extends ListStyleProps, ThemingProps<'List'> {
|
|
4
4
|
colorScheme?: 'blue' | 'grey';
|
|
5
5
|
disabled?: boolean;
|
|
6
|
+
heading?: string;
|
|
6
7
|
isInteractive?: boolean;
|
|
7
|
-
subheader?: string;
|
|
8
8
|
}
|
|
9
9
|
export interface ListStyleProps extends BordersProps, FlexboxesProps, LayoutProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
|
10
10
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.ListHeading = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var context_1 = require("./context");
|
|
20
|
+
var listItem_1 = __importDefault(require("./listItem"));
|
|
21
|
+
var core_1 = require("../core");
|
|
22
|
+
exports.ListHeading = core_1.vui(function (props, ref) {
|
|
23
|
+
var _a;
|
|
24
|
+
var listProps = (_a = context_1.useList()) !== null && _a !== void 0 ? _a : {};
|
|
25
|
+
var mergedProps = __assign(__assign({}, listProps), props);
|
|
26
|
+
var styles = core_1.useStyleConfig('List', mergedProps);
|
|
27
|
+
return (react_1.default.createElement(listItem_1.default, __assign({ className: "vui-listHeading", color: "grey.80", fontSize: "sm", fontWeight: "medium", ref: ref, textTransform: "uppercase" }, styles.heading, props)));
|
|
28
|
+
});
|
|
29
|
+
exports.ListHeading.displayName = 'ListHeading';
|
|
30
|
+
exports.default = exports.ListHeading;
|
package/list/listItem.js
CHANGED
|
@@ -42,7 +42,7 @@ exports.ListItemBase = styled_components_2.default.li.withConfig(core_1.forwardP
|
|
|
42
42
|
exports.ListItem = core_1.vui(function (props, ref) {
|
|
43
43
|
var listProps = context_1.useList();
|
|
44
44
|
var mergedProps = __assign(__assign({}, listProps), props);
|
|
45
|
-
var children = mergedProps.children, center = mergedProps.center, centerH = mergedProps.centerH, _a = mergedProps.centerV, centerV = _a === void 0 ? true : _a, className = mergedProps.className, column = mergedProps.column, disabled = mergedProps.disabled, iconRight = mergedProps.iconRight, iconLeft = mergedProps.iconLeft, _b = mergedProps.isInteractive, isInteractive = _b === void 0 ? props.onClick !== undefined : _b, isSelected = mergedProps.isSelected, onClick = mergedProps.onClick, rest = __rest(mergedProps, ["children", "center", "centerH", "centerV", "className", "column", "disabled", "iconRight", "iconLeft", "isInteractive", "isSelected", "onClick"]);
|
|
45
|
+
var children = mergedProps.children, center = mergedProps.center, centerH = mergedProps.centerH, _a = mergedProps.centerV, centerV = _a === void 0 ? true : _a, className = mergedProps.className, column = mergedProps.column, disabled = mergedProps.disabled, iconRight = mergedProps.iconRight, iconLeft = mergedProps.iconLeft, _b = mergedProps.isInteractive, isInteractive = _b === void 0 ? props.onClick !== undefined : _b, isSelected = mergedProps.isSelected, onClick = mergedProps.onClick, text = mergedProps.text, rest = __rest(mergedProps, ["children", "center", "centerH", "centerV", "className", "column", "disabled", "iconRight", "iconLeft", "isInteractive", "isSelected", "onClick", "text"]);
|
|
46
46
|
var styles = core_1.useStyleConfig('List', mergedProps);
|
|
47
47
|
var _c = styles.item, activeBg = _c.activeBg, hoverBg = _c.hoverBg, itemStyles = __rest(_c, ["activeBg", "hoverBg"]);
|
|
48
48
|
var alignItems = (center || (column ? centerH : centerV)) && 'center';
|
|
@@ -66,8 +66,7 @@ exports.ListItem = core_1.vui(function (props, ref) {
|
|
|
66
66
|
justifyContent: justifyContent
|
|
67
67
|
});
|
|
68
68
|
return (react_1.default.createElement(exports.ListItemBase, __assign({ className: utils_1.cs('vui-listItem', className), onClick: !disabled ? onClick : undefined, px: 1, ref: ref, transitionDuration: "fast" }, itemStyles, interactiveProps, aliasedProps, rest),
|
|
69
|
-
iconLeft && react_1.default.createElement(listIcon_1.default, { icon: iconLeft, mr: 1 }),
|
|
70
|
-
children,
|
|
69
|
+
iconLeft && react_1.default.createElement(listIcon_1.default, { icon: iconLeft, mr: 1 }), children !== null && children !== void 0 ? children : text,
|
|
71
70
|
iconRight && react_1.default.createElement(listIcon_1.default, { icon: iconRight, ml: "auto" })));
|
|
72
71
|
});
|
|
73
72
|
exports.ListItem.displayName = 'ListItem';
|
package/list/listItem.types.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface ListItemProps extends ListItemStyleProps, ThemingProps<'List'>
|
|
|
12
12
|
iconRight?: IconProp;
|
|
13
13
|
isInteractive?: boolean;
|
|
14
14
|
isSelected?: boolean;
|
|
15
|
+
text?: number | string;
|
|
15
16
|
}
|
|
16
17
|
export interface ListItemStyleProps extends BackgroundColorProps, FlexboxesProps, InteractivityProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
|
17
18
|
}
|
package/list/theme.js
CHANGED
package/p/p.js
CHANGED
|
@@ -39,7 +39,7 @@ var utils_1 = require("../utils");
|
|
|
39
39
|
var generator = styled_components_1.compose(system_1.isTruncated, system_1.maxLines, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
|
|
40
40
|
exports.PBase = styled_components_2.default.p.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), generator);
|
|
41
41
|
exports.P = core_1.vui(function (props, ref) {
|
|
42
|
-
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"]);
|
|
42
|
+
var _a = core_1.omitThemingProps(props), align = _a.align, casing = _a.casing, children = _a.children, className = _a.className, decoration = _a.decoration, text = _a.text, weight = _a.weight, rest = __rest(_a, ["align", "casing", "children", "className", "decoration", "text", "weight"]);
|
|
43
43
|
var styles = core_1.useStyleConfig('P', props);
|
|
44
44
|
var aliasedProps = utils_1.filterUndefined({
|
|
45
45
|
fontWeight: weight,
|
|
@@ -47,7 +47,7 @@ exports.P = core_1.vui(function (props, ref) {
|
|
|
47
47
|
textDecoration: decoration,
|
|
48
48
|
textTransform: casing
|
|
49
49
|
});
|
|
50
|
-
return (react_1.default.createElement(exports.PBase, __assign({ className: utils_1.cs('vui-p', className), ref: ref, transitionDuration: "fast" }, styles, aliasedProps, rest)));
|
|
50
|
+
return (react_1.default.createElement(exports.PBase, __assign({ className: utils_1.cs('vui-p', className), ref: ref, transitionDuration: "fast" }, styles, aliasedProps, rest), children !== null && children !== void 0 ? children : text));
|
|
51
51
|
});
|
|
52
52
|
exports.P.displayName = 'P';
|
|
53
53
|
exports.default = exports.P;
|
package/p/p.types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export interface PProps extends PStyleProps, ThemingProps<'P'> {
|
|
|
4
4
|
align?: TypographyProps['textAlign'];
|
|
5
5
|
casing?: TypographyProps['textTransform'];
|
|
6
6
|
decoration?: TypographyProps['textDecoration'];
|
|
7
|
+
text?: number | string;
|
|
7
8
|
weight?: TypographyProps['fontWeight'];
|
|
8
9
|
}
|
|
9
10
|
export interface PStyleProps extends IsTruncatedProps, MaxLinesProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veracity/vui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "Veracity UI components library based on Styled Components and @xstyled",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Veracity",
|
|
@@ -23,5 +23,8 @@
|
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": "^17.0.1",
|
|
25
25
|
"react-dom": "^17.0.1"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@babel/core": "^7.13.8"
|
|
26
29
|
}
|
|
27
30
|
}
|
package/spinner/consts.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { Dict } from '../utils';
|
|
2
|
+
export declare const spinnerPositionMapping: {
|
|
2
3
|
bottom: {
|
|
3
4
|
container: {
|
|
4
5
|
flexDirection: string;
|
|
@@ -32,3 +33,4 @@ export declare const positionMapping: {
|
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
35
|
};
|
|
36
|
+
export declare const spinnerSpeedMapping: Dict<string>;
|
package/spinner/consts.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.spinnerSpeedMapping = exports.spinnerPositionMapping = void 0;
|
|
4
|
+
exports.spinnerPositionMapping = {
|
|
5
5
|
bottom: {
|
|
6
6
|
container: { flexDirection: 'column' },
|
|
7
7
|
circle: { mb: 1 }
|
|
@@ -19,3 +19,8 @@ exports.positionMapping = {
|
|
|
19
19
|
circle: { mt: 1 }
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
|
+
exports.spinnerSpeedMapping = {
|
|
23
|
+
slow: '1s',
|
|
24
|
+
normal: '0.9s',
|
|
25
|
+
fast: '0.8s'
|
|
26
|
+
};
|
package/spinner/spinner.js
CHANGED
|
@@ -39,12 +39,14 @@ var core_1 = require("../core");
|
|
|
39
39
|
var t_1 = __importDefault(require("../t"));
|
|
40
40
|
var utils_1 = require("../utils");
|
|
41
41
|
var circleGenerator = styled_components_1.compose(styled_components_1.animation, styled_components_1.borders, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions);
|
|
42
|
-
exports.SpinnerCircle = styled_components_2.default.div.withConfig(core_1.forwardPropConfig(circleGenerator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\n\t", "\n\n\tanimation-duration: ", ";\n"], ["\n\tdisplay: flex;\n\n\t", "\n\n\tanimation-duration: ", ";\n"])), circleGenerator, function (p) { return p.speed; });
|
|
42
|
+
exports.SpinnerCircle = styled_components_2.default.div.withConfig(core_1.forwardPropConfig(circleGenerator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\n\t", "\n\n\tanimation-duration: ", ";\n"], ["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\n\t", "\n\n\tanimation-duration: ", ";\n"])), circleGenerator, function (p) { return p.speed; });
|
|
43
43
|
exports.Spinner = core_1.vui(function (props, ref) {
|
|
44
|
-
var
|
|
44
|
+
var _a;
|
|
45
|
+
var className = props.className, emptyColor = props.emptyColor, size = props.size, _b = props.speed, speedProp = _b === void 0 ? 'normal' : _b, text = props.text, _c = props.textPosition, textPosition = _c === void 0 ? 'bottom' : _c, thickness = props.thickness, rest = __rest(props, ["className", "emptyColor", "size", "speed", "text", "textPosition", "thickness"]);
|
|
45
46
|
var styles = core_1.useStyleConfig('Spinner', props);
|
|
46
47
|
var isCustomSize = typeof size === 'number';
|
|
47
|
-
var positionProps = consts_1.
|
|
48
|
+
var positionProps = consts_1.spinnerPositionMapping[textPosition];
|
|
49
|
+
var speed = (_a = consts_1.spinnerSpeedMapping[speedProp]) !== null && _a !== void 0 ? _a : speedProp;
|
|
48
50
|
var circleProps = utils_1.filterUndefined({
|
|
49
51
|
borderColor: emptyColor,
|
|
50
52
|
borderWidth: isCustomSize ? thickness !== null && thickness !== void 0 ? thickness : 4 : thickness,
|
|
@@ -52,7 +54,7 @@ exports.Spinner = core_1.vui(function (props, ref) {
|
|
|
52
54
|
w: isCustomSize ? size : undefined
|
|
53
55
|
});
|
|
54
56
|
return (react_1.default.createElement(box_1.default, __assign({ center: true, className: utils_1.cs('vui-spinner', className), ref: ref, transitionDuration: "fast" }, styles.container, positionProps.container, rest),
|
|
55
|
-
react_1.default.createElement(exports.SpinnerCircle, __assign({ animation: "spin", borderRadius: "round", className: "vui-spinnerCircle",
|
|
57
|
+
react_1.default.createElement(exports.SpinnerCircle, __assign({ animation: "spin", borderRadius: "round", className: "vui-spinnerCircle", speed: speed }, styles.circle, positionProps.circle, circleProps)),
|
|
56
58
|
text && (react_1.default.createElement(t_1.default, __assign({ className: "vui-spinnerText" }, styles.text), text))));
|
|
57
59
|
});
|
|
58
60
|
exports.Spinner.displayName = 'Spinner';
|
package/spinner/theme.d.ts
CHANGED
package/spinner/theme.js
CHANGED
|
@@ -3,12 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
function variantDefault(props) {
|
|
4
4
|
var c = props.colorScheme;
|
|
5
5
|
var container = {
|
|
6
|
-
color: c + ".
|
|
6
|
+
color: c + ".50"
|
|
7
7
|
};
|
|
8
8
|
var circle = {
|
|
9
9
|
borderColor: c + ".20",
|
|
10
|
-
borderTopColor: c + ".
|
|
11
|
-
borderRightColor: c + ".60"
|
|
10
|
+
borderTopColor: c + ".50"
|
|
12
11
|
};
|
|
13
12
|
var text = {};
|
|
14
13
|
return { container: container, circle: circle, text: text };
|
package/t/t.js
CHANGED
|
@@ -39,7 +39,7 @@ var utils_1 = require("../utils");
|
|
|
39
39
|
var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.cursor, styled_components_1.flexboxes, system_1.isTruncated, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
|
|
40
40
|
exports.TBase = styled_components_2.default.span.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), generator);
|
|
41
41
|
exports.T = core_1.vui(function (props, ref) {
|
|
42
|
-
var _a = core_1.omitThemingProps(props), align = _a.align, casing = _a.casing, centerV = _a.centerV, className = _a.className, decoration = _a.decoration, isFlex = _a.isFlex, weight = _a.weight, rest = __rest(_a, ["align", "casing", "centerV", "className", "decoration", "isFlex", "weight"]);
|
|
42
|
+
var _a = core_1.omitThemingProps(props), align = _a.align, casing = _a.casing, centerV = _a.centerV, children = _a.children, className = _a.className, decoration = _a.decoration, isFlex = _a.isFlex, text = _a.text, weight = _a.weight, rest = __rest(_a, ["align", "casing", "centerV", "children", "className", "decoration", "isFlex", "text", "weight"]);
|
|
43
43
|
var styles = core_1.useStyleConfig('T', props);
|
|
44
44
|
var aliasedProps = utils_1.filterUndefined({
|
|
45
45
|
alignItems: centerV ? 'center' : undefined,
|
|
@@ -49,7 +49,7 @@ exports.T = core_1.vui(function (props, ref) {
|
|
|
49
49
|
textDecoration: decoration,
|
|
50
50
|
textTransform: casing
|
|
51
51
|
});
|
|
52
|
-
return (react_1.default.createElement(exports.TBase, __assign({ className: utils_1.cs('vui-t', className), ref: ref, transitionDuration: "fast" }, styles, aliasedProps, rest)));
|
|
52
|
+
return (react_1.default.createElement(exports.TBase, __assign({ className: utils_1.cs('vui-t', className), ref: ref, transitionDuration: "fast" }, styles, aliasedProps, rest), children !== null && children !== void 0 ? children : text));
|
|
53
53
|
});
|
|
54
54
|
exports.T.displayName = 'T';
|
|
55
55
|
exports.default = exports.T;
|
package/t/t.types.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export interface TProps extends TStyleProps, ThemingProps<'T'> {
|
|
|
6
6
|
centerV?: boolean;
|
|
7
7
|
decoration?: TypographyProps['textDecoration'];
|
|
8
8
|
isFlex?: boolean;
|
|
9
|
+
text?: number | string;
|
|
9
10
|
weight?: TypographyProps['fontWeight'];
|
|
10
11
|
}
|
|
11
12
|
export interface TStyleProps extends BackgroundColorProps, BordersProps, CursorProps, FlexboxesProps, IsTruncatedProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
package/theme/components.d.ts
CHANGED
|
@@ -143,7 +143,12 @@ declare const _default: {
|
|
|
143
143
|
borderWidth: number;
|
|
144
144
|
};
|
|
145
145
|
solid: (props: import("..").Dict<any>) => {
|
|
146
|
-
|
|
146
|
+
hoverBg: string;
|
|
147
|
+
activeBg: string;
|
|
148
|
+
bg: string;
|
|
149
|
+
color: string;
|
|
150
|
+
};
|
|
151
|
+
subtle: (props: import("..").Dict<any>) => {
|
|
147
152
|
hoverBg: string;
|
|
148
153
|
activeBg: string;
|
|
149
154
|
bg: string;
|
|
@@ -629,7 +634,6 @@ declare const _default: {
|
|
|
629
634
|
circle: {
|
|
630
635
|
borderColor: string;
|
|
631
636
|
borderTopColor: string;
|
|
632
|
-
borderRightColor: string;
|
|
633
637
|
};
|
|
634
638
|
text: {};
|
|
635
639
|
};
|
package/theme/defaultTheme.d.ts
CHANGED
|
@@ -294,7 +294,12 @@ declare const defaultTheme: {
|
|
|
294
294
|
borderWidth: number;
|
|
295
295
|
};
|
|
296
296
|
solid: (props: import("..").Dict<any>) => {
|
|
297
|
-
|
|
297
|
+
hoverBg: string;
|
|
298
|
+
activeBg: string;
|
|
299
|
+
bg: string;
|
|
300
|
+
color: string;
|
|
301
|
+
};
|
|
302
|
+
subtle: (props: import("..").Dict<any>) => {
|
|
298
303
|
hoverBg: string;
|
|
299
304
|
activeBg: string;
|
|
300
305
|
bg: string;
|
|
@@ -780,7 +785,6 @@ declare const defaultTheme: {
|
|
|
780
785
|
circle: {
|
|
781
786
|
borderColor: string;
|
|
782
787
|
borderTopColor: string;
|
|
783
|
-
borderRightColor: string;
|
|
784
788
|
};
|
|
785
789
|
text: {};
|
|
786
790
|
};
|
package/theme/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import defaultTheme from './defaultTheme';
|
|
2
|
+
export { default as components } from './components';
|
|
3
|
+
export { default as defaultTheme } from './defaultTheme';
|
|
4
|
+
export { default as foundations } from './foundations';
|
|
2
5
|
export * from './types';
|
|
3
6
|
export default defaultTheme;
|
package/theme/index.js
CHANGED
|
@@ -13,6 +13,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
14
|
};
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.foundations = exports.defaultTheme = exports.components = void 0;
|
|
16
17
|
var defaultTheme_1 = __importDefault(require("./defaultTheme"));
|
|
18
|
+
var components_1 = require("./components");
|
|
19
|
+
Object.defineProperty(exports, "components", { enumerable: true, get: function () { return __importDefault(components_1).default; } });
|
|
20
|
+
var defaultTheme_2 = require("./defaultTheme");
|
|
21
|
+
Object.defineProperty(exports, "defaultTheme", { enumerable: true, get: function () { return __importDefault(defaultTheme_2).default; } });
|
|
22
|
+
var foundations_1 = require("./foundations");
|
|
23
|
+
Object.defineProperty(exports, "foundations", { enumerable: true, get: function () { return __importDefault(foundations_1).default; } });
|
|
17
24
|
__exportStar(require("./types"), exports);
|
|
18
25
|
exports.default = defaultTheme_1.default;
|