@veracity/vui 0.0.7 → 0.0.8
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/alert.js +1 -1
- package/alert/alertButton.js +1 -1
- package/alert/alertIcon.js +1 -1
- package/alert/alertMessage.js +1 -1
- package/alert/alertText.js +1 -1
- package/alert/alertTitle.js +1 -1
- package/avatar/avatar.js +1 -1
- package/box/box.js +3 -3
- package/box/box.types.d.ts +2 -2
- package/button/button.js +1 -1
- package/button/buttonGroup.js +1 -1
- package/button/buttons.d.ts +5 -8
- package/button/buttons.js +5 -5
- package/checkbox/checkbox.js +1 -1
- package/checkbox/checkboxGroup.js +1 -1
- package/core/globalStyle.js +48 -2
- package/core/resetCSS.js +1 -1
- package/core/types/component.d.ts +23 -7
- package/core/types/index.d.ts +1 -0
- package/core/types/index.js +1 -0
- package/core/types/themeGet.d.ts +24 -0
- package/core/types/themeGet.js +2 -0
- package/core/utils.d.ts +35 -15
- package/core/utils.js +80 -65
- package/core/vuiProvider.js +1 -1
- package/divider/divider.js +1 -1
- package/heading/heading.js +1 -1
- package/heading/headings.d.ts +6 -9
- package/heading/headings.js +6 -6
- package/icon/helpers.d.ts +6 -12
- package/icon/helpers.js +38 -21
- package/icon/icon.d.ts +1 -1
- package/icon/icon.js +6 -8
- package/icon/icon.types.d.ts +13 -17
- package/icon/index.d.ts +1 -1
- package/icon/index.js +3 -4
- package/icons/baseIcons/cui/cuiCheckboxIndeterminate.d.ts +3 -0
- package/icons/baseIcons/cui/cuiCheckboxIndeterminate.js +8 -0
- package/icons/baseIcons/cui/cuiCheckboxSelected.d.ts +3 -0
- package/icons/baseIcons/cui/cuiCheckboxSelected.js +8 -0
- package/icons/baseIcons/cui/cuiCheckboxUnselected.d.ts +3 -0
- package/icons/baseIcons/cui/cuiCheckboxUnselected.js +8 -0
- package/icons/baseIcons/cui/cuiRadioSelected.d.ts +3 -0
- package/icons/baseIcons/cui/cuiRadioSelected.js +8 -0
- package/icons/baseIcons/cui/cuiRadioUnselected.d.ts +3 -0
- package/icons/baseIcons/cui/cuiRadioUnselected.js +8 -0
- package/icons/baseIcons/cul/culCovid.d.ts +3 -0
- package/icons/baseIcons/cul/culCovid.js +7 -0
- package/icons/baseIcons/cul/culDeepSearch.d.ts +3 -0
- package/icons/baseIcons/cul/culDeepSearch.js +7 -0
- package/icons/baseIcons/cul/culDotsMenu.d.ts +3 -0
- package/icons/baseIcons/cul/culDotsMenu.js +7 -0
- package/icons/baseIcons/cul/culGlobePlus.d.ts +3 -0
- package/icons/baseIcons/cul/culGlobePlus.js +7 -0
- package/icons/baseIcons/cul/culListDense.d.ts +3 -0
- package/icons/baseIcons/cul/culListDense.js +7 -0
- package/icons/baseIcons/cul/culMapMarkerStar.d.ts +3 -0
- package/icons/baseIcons/cul/culMapMarkerStar.js +7 -0
- package/icons/baseIcons/cul/culPlusThin.d.ts +3 -0
- package/icons/baseIcons/cul/culPlusThin.js +7 -0
- package/icons/baseIcons/cul/culScreenshot.d.ts +3 -0
- package/icons/baseIcons/cul/culScreenshot.js +7 -0
- package/icons/baseIcons/cul/culScreenshotAlt.d.ts +3 -0
- package/icons/baseIcons/cul/culScreenshotAlt.js +7 -0
- package/icons/baseIcons/cul/culShortcut.d.ts +3 -0
- package/icons/baseIcons/cul/culShortcut.js +7 -0
- package/icons/baseIcons/cul/culTimesThin.d.ts +3 -0
- package/icons/baseIcons/cul/culTimesThin.js +7 -0
- package/icons/baseIcons/cul/culTransformer.d.ts +3 -0
- package/icons/baseIcons/cul/culTransformer.js +7 -0
- package/icons/baseIcons/cul/culUserTransfer.d.ts +3 -0
- package/icons/baseIcons/cul/culUserTransfer.js +7 -0
- package/icons/baseIcons/cul/culVessel.d.ts +3 -0
- package/icons/baseIcons/cul/culVessel.js +7 -0
- package/icons/baseIcons/cul/culVesselGroup.d.ts +3 -0
- package/icons/baseIcons/cul/culVesselGroup.js +7 -0
- package/icons/baseIcons/cus/cusCheckboxSelected.d.ts +3 -0
- package/icons/baseIcons/cus/cusCheckboxSelected.js +7 -0
- package/icons/baseIcons/cus/cusDotFull.d.ts +3 -0
- package/icons/baseIcons/cus/cusDotFull.js +7 -0
- package/icons/baseIcons/cus/cusDotFullAlt.d.ts +3 -0
- package/icons/baseIcons/cus/cusDotFullAlt.js +7 -0
- package/icons/baseIcons/cus/cusDotsMenu.d.ts +3 -0
- package/icons/baseIcons/cus/cusDotsMenu.js +7 -0
- package/icons/baseIcons/cus/cusRadio.d.ts +3 -0
- package/icons/baseIcons/cus/cusRadio.js +7 -0
- package/icons/baseIcons/cus/cusSquareMinus.d.ts +3 -0
- package/icons/baseIcons/cus/cusSquareMinus.js +7 -0
- package/icons/baseIcons/cus/cusTransformer.d.ts +3 -0
- package/icons/baseIcons/cus/cusTransformer.js +7 -0
- package/icons/baseIcons/cus/cusVessel.d.ts +3 -0
- package/icons/baseIcons/cus/cusVessel.js +7 -0
- package/icons/baseIcons/fab/fabApplePay.d.ts +3 -0
- package/icons/baseIcons/fab/fabApplePay.js +7 -0
- package/icons/baseIcons/fab/fabBluetooth.d.ts +3 -0
- package/icons/baseIcons/fab/fabBluetooth.js +7 -0
- package/icons/baseIcons/fab/fabBtc.d.ts +3 -0
- package/icons/baseIcons/fab/fabBtc.js +7 -0
- package/icons/baseIcons/fab/fabCcAmazonPay.d.ts +3 -0
- package/icons/baseIcons/fab/fabCcAmazonPay.js +7 -0
- package/icons/baseIcons/fab/fabCcAmex.d.ts +3 -0
- package/icons/baseIcons/fab/fabCcAmex.js +7 -0
- package/icons/baseIcons/fab/fabCcApplePay.d.ts +3 -0
- package/icons/baseIcons/fab/fabCcApplePay.js +7 -0
- package/icons/baseIcons/fab/fabCcDinersClub.d.ts +3 -0
- package/icons/baseIcons/fab/fabCcDinersClub.js +7 -0
- package/icons/baseIcons/fab/fabCcMastercard.d.ts +3 -0
- package/icons/baseIcons/fab/fabCcMastercard.js +7 -0
- package/icons/baseIcons/fab/fabCcPaypal.d.ts +3 -0
- package/icons/baseIcons/fab/fabCcPaypal.js +7 -0
- package/icons/baseIcons/fab/fabCcVisa.d.ts +3 -0
- package/icons/baseIcons/fab/fabCcVisa.js +7 -0
- package/icons/baseIcons/fab/fabDhl.d.ts +3 -0
- package/icons/baseIcons/fab/fabDhl.js +7 -0
- package/icons/baseIcons/fab/fabEbay.d.ts +3 -0
- package/icons/baseIcons/fab/fabEbay.js +7 -0
- package/icons/baseIcons/fab/fabFacebook.d.ts +3 -0
- package/icons/baseIcons/fab/fabFacebook.js +7 -0
- package/icons/baseIcons/fab/fabFedex.d.ts +3 -0
- package/icons/baseIcons/fab/fabFedex.js +7 -0
- package/icons/baseIcons/fab/fabFirefox.d.ts +3 -0
- package/icons/baseIcons/fab/fabFirefox.js +7 -0
- package/icons/baseIcons/fab/fabGoogle.d.ts +3 -0
- package/icons/baseIcons/fab/fabGoogle.js +7 -0
- package/icons/baseIcons/fab/fabGoogleDrive.d.ts +3 -0
- package/icons/baseIcons/fab/fabGoogleDrive.js +7 -0
- package/icons/baseIcons/fab/fabLinkedinIn.d.ts +3 -0
- package/icons/baseIcons/fab/fabLinkedinIn.js +7 -0
- package/icons/baseIcons/fab/fabMedium.d.ts +3 -0
- package/icons/baseIcons/fab/fabMedium.js +7 -0
- package/icons/baseIcons/fab/fabOsi.d.ts +3 -0
- package/icons/baseIcons/fab/fabOsi.js +7 -0
- package/icons/baseIcons/fab/fabSlack.d.ts +3 -0
- package/icons/baseIcons/fab/fabSlack.js +7 -0
- package/icons/baseIcons/fab/fabTwitter.d.ts +3 -0
- package/icons/baseIcons/fab/fabTwitter.js +7 -0
- package/icons/baseIcons/fab/fabUps.d.ts +3 -0
- package/icons/baseIcons/fab/fabUps.js +7 -0
- package/icons/baseIcons/fal/falAddressBook.d.ts +3 -0
- package/icons/baseIcons/fal/falAddressBook.js +7 -0
- package/icons/baseIcons/fal/falAddressCard.d.ts +3 -0
- package/icons/baseIcons/fal/falAddressCard.js +7 -0
- package/icons/baseIcons/fal/falAnalytics.d.ts +3 -0
- package/icons/baseIcons/fal/falAnalytics.js +7 -0
- package/icons/baseIcons/fal/falAngleDoubleDown.d.ts +3 -0
- package/icons/baseIcons/fal/falAngleDoubleDown.js +7 -0
- package/icons/baseIcons/fal/falAngleDoubleLeft.d.ts +3 -0
- package/icons/baseIcons/fal/falAngleDoubleLeft.js +7 -0
- package/icons/baseIcons/fal/falAngleDoubleRight.d.ts +3 -0
- package/icons/baseIcons/fal/falAngleDoubleRight.js +7 -0
- package/icons/baseIcons/fal/falAngleDoubleUp.d.ts +3 -0
- package/icons/baseIcons/fal/falAngleDoubleUp.js +7 -0
- package/icons/baseIcons/fal/falAngleDown.d.ts +3 -0
- package/icons/baseIcons/fal/falAngleDown.js +7 -0
- package/icons/baseIcons/fal/falAngleLeft.d.ts +3 -0
- package/icons/baseIcons/fal/falAngleLeft.js +7 -0
- package/icons/baseIcons/fal/falAngleRight.d.ts +3 -0
- package/icons/baseIcons/fal/falAngleRight.js +7 -0
- package/icons/baseIcons/fal/falAngleUp.d.ts +3 -0
- package/icons/baseIcons/fal/falAngleUp.js +7 -0
- package/icons/baseIcons/fal/falArrowAltDown.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowAltDown.js +7 -0
- package/icons/baseIcons/fal/falArrowAltLeft.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowAltLeft.js +7 -0
- package/icons/baseIcons/fal/falArrowAltRight.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowAltRight.js +7 -0
- package/icons/baseIcons/fal/falArrowAltUp.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowAltUp.js +7 -0
- package/icons/baseIcons/fal/falArrowCircleDown.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowCircleDown.js +7 -0
- package/icons/baseIcons/fal/falArrowCircleLeft.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowCircleLeft.js +7 -0
- package/icons/baseIcons/fal/falArrowCircleRight.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowCircleRight.js +7 -0
- package/icons/baseIcons/fal/falArrowCircleUp.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowCircleUp.js +7 -0
- package/icons/baseIcons/fal/falArrowDown.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowDown.js +7 -0
- package/icons/baseIcons/fal/falArrowFromBottom.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowFromBottom.js +7 -0
- package/icons/baseIcons/fal/falArrowFromLeft.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowFromLeft.js +7 -0
- package/icons/baseIcons/fal/falArrowFromRight.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowFromRight.js +7 -0
- package/icons/baseIcons/fal/falArrowFromTop.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowFromTop.js +7 -0
- package/icons/baseIcons/fal/falArrowLeft.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowLeft.js +7 -0
- package/icons/baseIcons/fal/falArrowRight.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowRight.js +7 -0
- package/icons/baseIcons/fal/falArrowToBottom.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowToBottom.js +7 -0
- package/icons/baseIcons/fal/falArrowToLeft.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowToLeft.js +7 -0
- package/icons/baseIcons/fal/falArrowToRight.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowToRight.js +7 -0
- package/icons/baseIcons/fal/falArrowToTop.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowToTop.js +7 -0
- package/icons/baseIcons/fal/falArrowUp.d.ts +3 -0
- package/icons/baseIcons/fal/falArrowUp.js +7 -0
- package/icons/baseIcons/fal/falArrows.d.ts +3 -0
- package/icons/baseIcons/fal/falArrows.js +7 -0
- package/icons/baseIcons/fal/falAward.d.ts +3 -0
- package/icons/baseIcons/fal/falAward.js +7 -0
- package/icons/baseIcons/fal/falBan.d.ts +3 -0
- package/icons/baseIcons/fal/falBan.js +7 -0
- package/icons/baseIcons/fal/falBell.d.ts +3 -0
- package/icons/baseIcons/fal/falBell.js +7 -0
- package/icons/baseIcons/fal/falBookOpen.d.ts +3 -0
- package/icons/baseIcons/fal/falBookOpen.js +7 -0
- package/icons/baseIcons/fal/falBroadcastTower.d.ts +3 -0
- package/icons/baseIcons/fal/falBroadcastTower.js +7 -0
- package/icons/baseIcons/fal/falBuilding.d.ts +3 -0
- package/icons/baseIcons/fal/falBuilding.js +7 -0
- package/icons/baseIcons/fal/falBullseye.d.ts +3 -0
- package/icons/baseIcons/fal/falBullseye.js +7 -0
- package/icons/baseIcons/fal/falCalendar.d.ts +3 -0
- package/icons/baseIcons/fal/falCalendar.js +7 -0
- package/icons/baseIcons/fal/falCalendarAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falCalendarAlt.js +7 -0
- package/icons/baseIcons/fal/falCamera.d.ts +3 -0
- package/icons/baseIcons/fal/falCamera.js +7 -0
- package/icons/baseIcons/fal/falCaretDown.d.ts +3 -0
- package/icons/baseIcons/fal/falCaretDown.js +7 -0
- package/icons/baseIcons/fal/falCaretLeft.d.ts +3 -0
- package/icons/baseIcons/fal/falCaretLeft.js +7 -0
- package/icons/baseIcons/fal/falCaretRight.d.ts +3 -0
- package/icons/baseIcons/fal/falCaretRight.js +7 -0
- package/icons/baseIcons/fal/falCaretUp.d.ts +3 -0
- package/icons/baseIcons/fal/falCaretUp.js +7 -0
- package/icons/baseIcons/fal/falCauldron.d.ts +3 -0
- package/icons/baseIcons/fal/falCauldron.js +7 -0
- package/icons/baseIcons/fal/falChartArea.d.ts +3 -0
- package/icons/baseIcons/fal/falChartArea.js +7 -0
- package/icons/baseIcons/fal/falChartBar.d.ts +3 -0
- package/icons/baseIcons/fal/falChartBar.js +7 -0
- package/icons/baseIcons/fal/falChartLine.d.ts +3 -0
- package/icons/baseIcons/fal/falChartLine.js +7 -0
- package/icons/baseIcons/fal/falChartLineDown.d.ts +3 -0
- package/icons/baseIcons/fal/falChartLineDown.js +7 -0
- package/icons/baseIcons/fal/falChartNetwork.d.ts +3 -0
- package/icons/baseIcons/fal/falChartNetwork.js +7 -0
- package/icons/baseIcons/fal/falChartPie.d.ts +3 -0
- package/icons/baseIcons/fal/falChartPie.js +7 -0
- package/icons/baseIcons/fal/falChartPieAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falChartPieAlt.js +7 -0
- package/icons/baseIcons/fal/falChartScatter.d.ts +3 -0
- package/icons/baseIcons/fal/falChartScatter.js +7 -0
- package/icons/baseIcons/fal/falCheck.d.ts +3 -0
- package/icons/baseIcons/fal/falCheck.js +7 -0
- package/icons/baseIcons/fal/falCheckCircle.d.ts +3 -0
- package/icons/baseIcons/fal/falCheckCircle.js +7 -0
- package/icons/baseIcons/fal/falCheckSquare.d.ts +3 -0
- package/icons/baseIcons/fal/falCheckSquare.js +7 -0
- package/icons/baseIcons/fal/falChevronCircleDown.d.ts +3 -0
- package/icons/baseIcons/fal/falChevronCircleDown.js +7 -0
- package/icons/baseIcons/fal/falChevronCircleLeft.d.ts +3 -0
- package/icons/baseIcons/fal/falChevronCircleLeft.js +7 -0
- package/icons/baseIcons/fal/falChevronCircleRight.d.ts +3 -0
- package/icons/baseIcons/fal/falChevronCircleRight.js +7 -0
- package/icons/baseIcons/fal/falChevronCircleUp.d.ts +3 -0
- package/icons/baseIcons/fal/falChevronCircleUp.js +7 -0
- package/icons/baseIcons/fal/falChevronDoubleDown.d.ts +3 -0
- package/icons/baseIcons/fal/falChevronDoubleDown.js +7 -0
- package/icons/baseIcons/fal/falChevronDoubleLeft.d.ts +3 -0
- package/icons/baseIcons/fal/falChevronDoubleLeft.js +7 -0
- package/icons/baseIcons/fal/falChevronDoubleRight.d.ts +3 -0
- package/icons/baseIcons/fal/falChevronDoubleRight.js +7 -0
- package/icons/baseIcons/fal/falChevronDoubleUp.d.ts +3 -0
- package/icons/baseIcons/fal/falChevronDoubleUp.js +7 -0
- package/icons/baseIcons/fal/falChevronDown.d.ts +3 -0
- package/icons/baseIcons/fal/falChevronDown.js +7 -0
- package/icons/baseIcons/fal/falChevronLeft.d.ts +3 -0
- package/icons/baseIcons/fal/falChevronLeft.js +7 -0
- package/icons/baseIcons/fal/falChevronRight.d.ts +3 -0
- package/icons/baseIcons/fal/falChevronRight.js +7 -0
- package/icons/baseIcons/fal/falChevronUp.d.ts +3 -0
- package/icons/baseIcons/fal/falChevronUp.js +7 -0
- package/icons/baseIcons/fal/falCircle.d.ts +3 -0
- package/icons/baseIcons/fal/falCircle.js +7 -0
- package/icons/baseIcons/fal/falCloud.d.ts +3 -0
- package/icons/baseIcons/fal/falCloud.js +7 -0
- package/icons/baseIcons/fal/falCloudShowersHeavy.d.ts +3 -0
- package/icons/baseIcons/fal/falCloudShowersHeavy.js +7 -0
- package/icons/baseIcons/fal/falCloudSnow.d.ts +3 -0
- package/icons/baseIcons/fal/falCloudSnow.js +7 -0
- package/icons/baseIcons/fal/falCloudSun.d.ts +3 -0
- package/icons/baseIcons/fal/falCloudSun.js +7 -0
- package/icons/baseIcons/fal/falCloudSunRain.d.ts +3 -0
- package/icons/baseIcons/fal/falCloudSunRain.js +7 -0
- package/icons/baseIcons/fal/falCloudUpload.d.ts +3 -0
- package/icons/baseIcons/fal/falCloudUpload.js +7 -0
- package/icons/baseIcons/fal/falCode.d.ts +3 -0
- package/icons/baseIcons/fal/falCode.js +7 -0
- package/icons/baseIcons/fal/falCog.d.ts +3 -0
- package/icons/baseIcons/fal/falCog.js +7 -0
- package/icons/baseIcons/fal/falCogs.d.ts +3 -0
- package/icons/baseIcons/fal/falCogs.js +7 -0
- package/icons/baseIcons/fal/falComment.d.ts +3 -0
- package/icons/baseIcons/fal/falComment.js +7 -0
- package/icons/baseIcons/fal/falCommentAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falCommentAlt.js +7 -0
- package/icons/baseIcons/fal/falCompressAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falCompressAlt.js +7 -0
- package/icons/baseIcons/fal/falCopy.d.ts +3 -0
- package/icons/baseIcons/fal/falCopy.js +7 -0
- package/icons/baseIcons/fal/falCreditCard.d.ts +3 -0
- package/icons/baseIcons/fal/falCreditCard.js +7 -0
- package/icons/baseIcons/fal/falDatabase.d.ts +3 -0
- package/icons/baseIcons/fal/falDatabase.js +7 -0
- package/icons/baseIcons/fal/falDotCircle.d.ts +3 -0
- package/icons/baseIcons/fal/falDotCircle.js +7 -0
- package/icons/baseIcons/fal/falDownload.d.ts +3 -0
- package/icons/baseIcons/fal/falDownload.js +7 -0
- package/icons/baseIcons/fal/falEdit.d.ts +3 -0
- package/icons/baseIcons/fal/falEdit.js +7 -0
- package/icons/baseIcons/fal/falEllipsisH.d.ts +3 -0
- package/icons/baseIcons/fal/falEllipsisH.js +7 -0
- package/icons/baseIcons/fal/falEllipsisV.d.ts +3 -0
- package/icons/baseIcons/fal/falEllipsisV.js +7 -0
- package/icons/baseIcons/fal/falEnvelope.d.ts +3 -0
- package/icons/baseIcons/fal/falEnvelope.js +7 -0
- package/icons/baseIcons/fal/falExchange.d.ts +3 -0
- package/icons/baseIcons/fal/falExchange.js +7 -0
- package/icons/baseIcons/fal/falExclamationCircle.d.ts +3 -0
- package/icons/baseIcons/fal/falExclamationCircle.js +7 -0
- package/icons/baseIcons/fal/falExclamationTriangle.d.ts +3 -0
- package/icons/baseIcons/fal/falExclamationTriangle.js +7 -0
- package/icons/baseIcons/fal/falExpandAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falExpandAlt.js +7 -0
- package/icons/baseIcons/fal/falExternalLink.d.ts +3 -0
- package/icons/baseIcons/fal/falExternalLink.js +7 -0
- package/icons/baseIcons/fal/falEye.d.ts +3 -0
- package/icons/baseIcons/fal/falEye.js +7 -0
- package/icons/baseIcons/fal/falEyeSlash.d.ts +3 -0
- package/icons/baseIcons/fal/falEyeSlash.js +7 -0
- package/icons/baseIcons/fal/falFile.d.ts +3 -0
- package/icons/baseIcons/fal/falFile.js +7 -0
- package/icons/baseIcons/fal/falFileAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falFileAlt.js +7 -0
- package/icons/baseIcons/fal/falFileArchive.d.ts +3 -0
- package/icons/baseIcons/fal/falFileArchive.js +7 -0
- package/icons/baseIcons/fal/falFileAudio.d.ts +3 -0
- package/icons/baseIcons/fal/falFileAudio.js +7 -0
- package/icons/baseIcons/fal/falFileCertificate.d.ts +3 -0
- package/icons/baseIcons/fal/falFileCertificate.js +7 -0
- package/icons/baseIcons/fal/falFileChartLine.d.ts +3 -0
- package/icons/baseIcons/fal/falFileChartLine.js +7 -0
- package/icons/baseIcons/fal/falFileChartPie.d.ts +3 -0
- package/icons/baseIcons/fal/falFileChartPie.js +7 -0
- package/icons/baseIcons/fal/falFileCheck.d.ts +3 -0
- package/icons/baseIcons/fal/falFileCheck.js +7 -0
- package/icons/baseIcons/fal/falFileCode.d.ts +3 -0
- package/icons/baseIcons/fal/falFileCode.js +7 -0
- package/icons/baseIcons/fal/falFileCsv.d.ts +3 -0
- package/icons/baseIcons/fal/falFileCsv.js +7 -0
- package/icons/baseIcons/fal/falFileEdit.d.ts +3 -0
- package/icons/baseIcons/fal/falFileEdit.js +7 -0
- package/icons/baseIcons/fal/falFileExcel.d.ts +3 -0
- package/icons/baseIcons/fal/falFileExcel.js +7 -0
- package/icons/baseIcons/fal/falFileImage.d.ts +3 -0
- package/icons/baseIcons/fal/falFileImage.js +7 -0
- package/icons/baseIcons/fal/falFilePdf.d.ts +3 -0
- package/icons/baseIcons/fal/falFilePdf.js +7 -0
- package/icons/baseIcons/fal/falFilePlus.d.ts +3 -0
- package/icons/baseIcons/fal/falFilePlus.js +7 -0
- package/icons/baseIcons/fal/falFilePowerpoint.d.ts +3 -0
- package/icons/baseIcons/fal/falFilePowerpoint.js +7 -0
- package/icons/baseIcons/fal/falFileSpreadsheet.d.ts +3 -0
- package/icons/baseIcons/fal/falFileSpreadsheet.js +7 -0
- package/icons/baseIcons/fal/falFileVideo.d.ts +3 -0
- package/icons/baseIcons/fal/falFileVideo.js +7 -0
- package/icons/baseIcons/fal/falFileWord.d.ts +3 -0
- package/icons/baseIcons/fal/falFileWord.js +7 -0
- package/icons/baseIcons/fal/falFilter.d.ts +3 -0
- package/icons/baseIcons/fal/falFilter.js +7 -0
- package/icons/baseIcons/fal/falFlag.d.ts +3 -0
- package/icons/baseIcons/fal/falFlag.js +7 -0
- package/icons/baseIcons/fal/falFolder.d.ts +3 -0
- package/icons/baseIcons/fal/falFolder.js +7 -0
- package/icons/baseIcons/fal/falFolderOpen.d.ts +3 -0
- package/icons/baseIcons/fal/falFolderOpen.js +7 -0
- package/icons/baseIcons/fal/falFolderPlus.d.ts +3 -0
- package/icons/baseIcons/fal/falFolderPlus.js +7 -0
- package/icons/baseIcons/fal/falFolders.d.ts +3 -0
- package/icons/baseIcons/fal/falFolders.js +7 -0
- package/icons/baseIcons/fal/falGlassesAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falGlassesAlt.js +7 -0
- package/icons/baseIcons/fal/falGlobe.d.ts +3 -0
- package/icons/baseIcons/fal/falGlobe.js +7 -0
- package/icons/baseIcons/fal/falHome.d.ts +3 -0
- package/icons/baseIcons/fal/falHome.js +7 -0
- package/icons/baseIcons/fal/falHourglass.d.ts +3 -0
- package/icons/baseIcons/fal/falHourglass.js +7 -0
- package/icons/baseIcons/fal/falImage.d.ts +3 -0
- package/icons/baseIcons/fal/falImage.js +7 -0
- package/icons/baseIcons/fal/falInfoCircle.d.ts +3 -0
- package/icons/baseIcons/fal/falInfoCircle.js +7 -0
- package/icons/baseIcons/fal/falKey.d.ts +3 -0
- package/icons/baseIcons/fal/falKey.js +7 -0
- package/icons/baseIcons/fal/falLayerPlus.d.ts +3 -0
- package/icons/baseIcons/fal/falLayerPlus.js +7 -0
- package/icons/baseIcons/fal/falLink.d.ts +3 -0
- package/icons/baseIcons/fal/falLink.js +7 -0
- package/icons/baseIcons/fal/falList.d.ts +3 -0
- package/icons/baseIcons/fal/falList.js +7 -0
- package/icons/baseIcons/fal/falLockAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falLockAlt.js +7 -0
- package/icons/baseIcons/fal/falLongArrowDown.d.ts +3 -0
- package/icons/baseIcons/fal/falLongArrowDown.js +7 -0
- package/icons/baseIcons/fal/falLongArrowLeft.d.ts +3 -0
- package/icons/baseIcons/fal/falLongArrowLeft.js +7 -0
- package/icons/baseIcons/fal/falLongArrowRight.d.ts +3 -0
- package/icons/baseIcons/fal/falLongArrowRight.js +7 -0
- package/icons/baseIcons/fal/falLongArrowUp.d.ts +3 -0
- package/icons/baseIcons/fal/falLongArrowUp.js +7 -0
- package/icons/baseIcons/fal/falMap.d.ts +3 -0
- package/icons/baseIcons/fal/falMap.js +7 -0
- package/icons/baseIcons/fal/falMapMarked.d.ts +3 -0
- package/icons/baseIcons/fal/falMapMarked.js +7 -0
- package/icons/baseIcons/fal/falMapMarkedAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falMapMarkedAlt.js +7 -0
- package/icons/baseIcons/fal/falMapMarker.d.ts +3 -0
- package/icons/baseIcons/fal/falMapMarker.js +7 -0
- package/icons/baseIcons/fal/falMapMarkerAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falMapMarkerAlt.js +7 -0
- package/icons/baseIcons/fal/falMapMarkerAltSlash.d.ts +3 -0
- package/icons/baseIcons/fal/falMapMarkerAltSlash.js +7 -0
- package/icons/baseIcons/fal/falMapMarkerCheck.d.ts +3 -0
- package/icons/baseIcons/fal/falMapMarkerCheck.js +7 -0
- package/icons/baseIcons/fal/falMapMarkerExclamation.d.ts +3 -0
- package/icons/baseIcons/fal/falMapMarkerExclamation.js +7 -0
- package/icons/baseIcons/fal/falMinus.d.ts +3 -0
- package/icons/baseIcons/fal/falMinus.js +7 -0
- package/icons/baseIcons/fal/falPause.d.ts +3 -0
- package/icons/baseIcons/fal/falPause.js +7 -0
- package/icons/baseIcons/fal/falPauseCircle.d.ts +3 -0
- package/icons/baseIcons/fal/falPauseCircle.js +7 -0
- package/icons/baseIcons/fal/falPen.d.ts +3 -0
- package/icons/baseIcons/fal/falPen.js +7 -0
- package/icons/baseIcons/fal/falPlay.d.ts +3 -0
- package/icons/baseIcons/fal/falPlay.js +7 -0
- package/icons/baseIcons/fal/falPlayCircle.d.ts +3 -0
- package/icons/baseIcons/fal/falPlayCircle.js +7 -0
- package/icons/baseIcons/fal/falPlug.d.ts +3 -0
- package/icons/baseIcons/fal/falPlug.js +7 -0
- package/icons/baseIcons/fal/falPlus.d.ts +3 -0
- package/icons/baseIcons/fal/falPlus.js +7 -0
- package/icons/baseIcons/fal/falPlusCircle.d.ts +3 -0
- package/icons/baseIcons/fal/falPlusCircle.js +7 -0
- package/icons/baseIcons/fal/falPlusSquare.d.ts +3 -0
- package/icons/baseIcons/fal/falPlusSquare.js +7 -0
- package/icons/baseIcons/fal/falPrint.d.ts +3 -0
- package/icons/baseIcons/fal/falPrint.js +7 -0
- package/icons/baseIcons/fal/falPuzzlePiece.d.ts +3 -0
- package/icons/baseIcons/fal/falPuzzlePiece.js +7 -0
- package/icons/baseIcons/fal/falReceipt.d.ts +3 -0
- package/icons/baseIcons/fal/falReceipt.js +7 -0
- package/icons/baseIcons/fal/falRedo.d.ts +3 -0
- package/icons/baseIcons/fal/falRedo.js +7 -0
- package/icons/baseIcons/fal/falSave.d.ts +3 -0
- package/icons/baseIcons/fal/falSave.js +7 -0
- package/icons/baseIcons/fal/falSearch.d.ts +3 -0
- package/icons/baseIcons/fal/falSearch.js +7 -0
- package/icons/baseIcons/fal/falSearchPlus.d.ts +3 -0
- package/icons/baseIcons/fal/falSearchPlus.js +7 -0
- package/icons/baseIcons/fal/falServer.d.ts +3 -0
- package/icons/baseIcons/fal/falServer.js +7 -0
- package/icons/baseIcons/fal/falShare.d.ts +3 -0
- package/icons/baseIcons/fal/falShare.js +7 -0
- package/icons/baseIcons/fal/falShareAll.d.ts +3 -0
- package/icons/baseIcons/fal/falShareAll.js +7 -0
- package/icons/baseIcons/fal/falShareAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falShareAlt.js +7 -0
- package/icons/baseIcons/fal/falShieldAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falShieldAlt.js +7 -0
- package/icons/baseIcons/fal/falShieldCheck.d.ts +3 -0
- package/icons/baseIcons/fal/falShieldCheck.js +7 -0
- package/icons/baseIcons/fal/falShip.d.ts +3 -0
- package/icons/baseIcons/fal/falShip.js +7 -0
- package/icons/baseIcons/fal/falShoppingBasket.d.ts +3 -0
- package/icons/baseIcons/fal/falShoppingBasket.js +7 -0
- package/icons/baseIcons/fal/falSignInAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falSignInAlt.js +7 -0
- package/icons/baseIcons/fal/falSignOut.d.ts +3 -0
- package/icons/baseIcons/fal/falSignOut.js +7 -0
- package/icons/baseIcons/fal/falSignOutAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falSignOutAlt.js +7 -0
- package/icons/baseIcons/fal/falSlidersV.d.ts +3 -0
- package/icons/baseIcons/fal/falSlidersV.js +7 -0
- package/icons/baseIcons/fal/falSnowBlowing.d.ts +3 -0
- package/icons/baseIcons/fal/falSnowBlowing.js +7 -0
- package/icons/baseIcons/fal/falSnowflake.d.ts +3 -0
- package/icons/baseIcons/fal/falSnowflake.js +7 -0
- package/icons/baseIcons/fal/falSolarPanel.d.ts +3 -0
- package/icons/baseIcons/fal/falSolarPanel.js +7 -0
- package/icons/baseIcons/fal/falSort.d.ts +3 -0
- package/icons/baseIcons/fal/falSort.js +7 -0
- package/icons/baseIcons/fal/falSpinner.d.ts +3 -0
- package/icons/baseIcons/fal/falSpinner.js +7 -0
- package/icons/baseIcons/fal/falSquare.d.ts +3 -0
- package/icons/baseIcons/fal/falSquare.js +7 -0
- package/icons/baseIcons/fal/falStepForward.d.ts +3 -0
- package/icons/baseIcons/fal/falStepForward.js +7 -0
- package/icons/baseIcons/fal/falStop.d.ts +3 -0
- package/icons/baseIcons/fal/falStop.js +7 -0
- package/icons/baseIcons/fal/falStopCircle.d.ts +3 -0
- package/icons/baseIcons/fal/falStopCircle.js +7 -0
- package/icons/baseIcons/fal/falStopwatch.d.ts +3 -0
- package/icons/baseIcons/fal/falStopwatch.js +7 -0
- package/icons/baseIcons/fal/falSuitcase.d.ts +3 -0
- package/icons/baseIcons/fal/falSuitcase.js +7 -0
- package/icons/baseIcons/fal/falSun.d.ts +3 -0
- package/icons/baseIcons/fal/falSun.js +7 -0
- package/icons/baseIcons/fal/falSync.d.ts +3 -0
- package/icons/baseIcons/fal/falSync.js +7 -0
- package/icons/baseIcons/fal/falTachometer.d.ts +3 -0
- package/icons/baseIcons/fal/falTachometer.js +7 -0
- package/icons/baseIcons/fal/falTemperatureHigh.d.ts +3 -0
- package/icons/baseIcons/fal/falTemperatureHigh.js +7 -0
- package/icons/baseIcons/fal/falTh.d.ts +3 -0
- package/icons/baseIcons/fal/falTh.js +7 -0
- package/icons/baseIcons/fal/falThLarge.d.ts +3 -0
- package/icons/baseIcons/fal/falThLarge.js +7 -0
- package/icons/baseIcons/fal/falThList.d.ts +3 -0
- package/icons/baseIcons/fal/falThList.js +7 -0
- package/icons/baseIcons/fal/falTimes.d.ts +3 -0
- package/icons/baseIcons/fal/falTimes.js +7 -0
- package/icons/baseIcons/fal/falTimesCircle.d.ts +3 -0
- package/icons/baseIcons/fal/falTimesCircle.js +7 -0
- package/icons/baseIcons/fal/falToggleOff.d.ts +3 -0
- package/icons/baseIcons/fal/falToggleOff.js +7 -0
- package/icons/baseIcons/fal/falToggleOn.d.ts +3 -0
- package/icons/baseIcons/fal/falToggleOn.js +7 -0
- package/icons/baseIcons/fal/falTrashAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falTrashAlt.js +7 -0
- package/icons/baseIcons/fal/falUnlockAlt.d.ts +3 -0
- package/icons/baseIcons/fal/falUnlockAlt.js +7 -0
- package/icons/baseIcons/fal/falUser.d.ts +3 -0
- package/icons/baseIcons/fal/falUser.js +7 -0
- package/icons/baseIcons/fal/falUserChart.d.ts +3 -0
- package/icons/baseIcons/fal/falUserChart.js +7 -0
- package/icons/baseIcons/fal/falUserCircle.d.ts +3 -0
- package/icons/baseIcons/fal/falUserCircle.js +7 -0
- package/icons/baseIcons/fal/falUserCog.d.ts +3 -0
- package/icons/baseIcons/fal/falUserCog.js +7 -0
- package/icons/baseIcons/fal/falUserEdit.d.ts +3 -0
- package/icons/baseIcons/fal/falUserEdit.js +7 -0
- package/icons/baseIcons/fal/falUserFriends.d.ts +3 -0
- package/icons/baseIcons/fal/falUserFriends.js +7 -0
- package/icons/baseIcons/fal/falUserPlus.d.ts +3 -0
- package/icons/baseIcons/fal/falUserPlus.js +7 -0
- package/icons/baseIcons/fal/falUserShield.d.ts +3 -0
- package/icons/baseIcons/fal/falUserShield.js +7 -0
- package/icons/baseIcons/fal/falUserTimes.d.ts +3 -0
- package/icons/baseIcons/fal/falUserTimes.js +7 -0
- package/icons/baseIcons/fal/falUsers.d.ts +3 -0
- package/icons/baseIcons/fal/falUsers.js +7 -0
- package/icons/baseIcons/fal/falUsersClass.d.ts +3 -0
- package/icons/baseIcons/fal/falUsersClass.js +7 -0
- package/icons/baseIcons/fal/falWater.d.ts +3 -0
- package/icons/baseIcons/fal/falWater.js +7 -0
- package/icons/baseIcons/fal/falWind.d.ts +3 -0
- package/icons/baseIcons/fal/falWind.js +7 -0
- package/icons/baseIcons/fal/falWindTurbine.d.ts +3 -0
- package/icons/baseIcons/fal/falWindTurbine.js +7 -0
- package/icons/baseIcons/fal/falWrench.d.ts +3 -0
- package/icons/baseIcons/fal/falWrench.js +7 -0
- package/icons/baseIcons/fas/fasCaretDown.d.ts +3 -0
- package/icons/baseIcons/fas/fasCaretDown.js +7 -0
- package/icons/baseIcons/fas/fasCaretLeft.d.ts +3 -0
- package/icons/baseIcons/fas/fasCaretLeft.js +7 -0
- package/icons/baseIcons/fas/fasCaretRight.d.ts +3 -0
- package/icons/baseIcons/fas/fasCaretRight.js +7 -0
- package/icons/baseIcons/fas/fasCaretUp.d.ts +3 -0
- package/icons/baseIcons/fas/fasCaretUp.js +7 -0
- package/icons/baseIcons/fas/fasDiamond.d.ts +3 -0
- package/icons/baseIcons/fas/fasDiamond.js +7 -0
- package/icons/baseIcons/fas/fasFolder.d.ts +3 -0
- package/icons/baseIcons/fas/fasFolder.js +7 -0
- package/icons/baseIcons/fas/fasMapMarkerAlt.d.ts +3 -0
- package/icons/baseIcons/fas/fasMapMarkerAlt.js +7 -0
- package/icons/baseIcons/fas/fasMapMarkerExclamation.d.ts +3 -0
- package/icons/baseIcons/fas/fasMapMarkerExclamation.js +7 -0
- package/icons/baseIcons/fas/fasQuoteLeft.d.ts +3 -0
- package/icons/baseIcons/fas/fasQuoteLeft.js +7 -0
- package/icons/baseIcons/fas/fasQuoteRight.d.ts +3 -0
- package/icons/baseIcons/fas/fasQuoteRight.js +7 -0
- package/icons/baseIcons/fas/fasSolarPanel.d.ts +3 -0
- package/icons/baseIcons/fas/fasSolarPanel.js +7 -0
- package/icons/baseIcons/fas/fasSort.d.ts +3 -0
- package/icons/baseIcons/fas/fasSort.js +7 -0
- package/icons/baseIcons/fas/fasStar.d.ts +3 -0
- package/icons/baseIcons/fas/fasStar.js +7 -0
- package/icons/baseIcons/fas/fasWindTurbine.d.ts +3 -0
- package/icons/baseIcons/fas/fasWindTurbine.js +7 -0
- package/icons/baseIcons/types.d.ts +1 -0
- package/icons/baseIcons/types.js +2 -0
- package/icons/consts.d.ts +6 -0
- package/icons/consts.js +44 -0
- package/icons/index.d.ts +3 -0
- package/icons/index.js +20 -0
- package/icons/library.d.ts +11 -0
- package/icons/library.js +60 -0
- package/icons/types.d.ts +21 -0
- package/icons/types.js +2 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/input/input.js +1 -1
- package/label/label.js +1 -1
- package/link/link.js +1 -1
- package/list/list.d.ts +1 -1
- package/list/list.js +2 -2
- package/list/list.types.d.ts +2 -2
- package/list/listIcon.js +1 -1
- package/list/listItem.js +1 -1
- package/p/p.js +1 -1
- package/package.json +1 -1
- package/radio/radio.js +1 -1
- package/radio/radioGroup.js +1 -1
- package/skeleton/skeleton.js +5 -25
- package/spinner/spinner.js +1 -1
- package/styles/animations.d.ts +9 -17
- package/styles/animations.js +10 -17
- package/styles/helpers.d.ts +0 -4
- package/styles/helpers.js +1 -9
- package/styles/index.d.ts +0 -10
- package/styles/index.js +1 -20
- package/svg/svg.js +12 -3
- package/switch/switch.js +1 -1
- package/switch/switchButton.js +1 -1
- package/switch/switchLabel.js +1 -1
- package/system/space.d.ts +14 -0
- package/t/t.js +2 -2
- package/t/t.types.d.ts +2 -2
- package/textarea/textarea.js +1 -1
- package/theme/defaultTheme.d.ts +16 -7
- package/theme/foundations/animations.d.ts +4 -2
- package/theme/foundations/animations.js +10 -9
- package/theme/foundations/borders.d.ts +2 -0
- package/theme/foundations/borders.js +3 -0
- package/theme/foundations/colors.d.ts +86 -2
- package/theme/foundations/colors.js +93 -86
- package/theme/foundations/durations.d.ts +3 -2
- package/theme/foundations/durations.js +2 -2
- package/theme/foundations/fontSizes.d.ts +7 -0
- package/theme/foundations/fontSizes.js +8 -0
- package/theme/foundations/fontWeights.d.ts +7 -0
- package/theme/foundations/fontWeights.js +8 -0
- package/theme/foundations/fonts.d.ts +4 -0
- package/theme/foundations/fonts.js +5 -0
- package/theme/foundations/index.d.ts +35 -24
- package/theme/foundations/index.js +27 -18
- package/theme/foundations/radii.d.ts +8 -0
- package/theme/foundations/radii.js +9 -0
- package/theme/foundations/ringWidths.d.ts +2 -0
- package/theme/foundations/ringWidths.js +3 -0
- package/theme/foundations/screens.d.ts +2 -2
- package/theme/foundations/screens.js +1 -2
- package/theme/foundations/shadows.d.ts +2 -2
- package/theme/foundations/shadows.js +8 -13
- package/theme/foundations/sizes.d.ts +2 -0
- package/theme/foundations/sizes.js +3 -0
- package/theme/foundations/spaces.d.ts +2 -0
- package/theme/foundations/spaces.js +3 -0
- package/theme/foundations/transformers.d.ts +2 -2
- package/theme/foundations/transformers.js +1 -2
- package/theme/foundations/transforms.d.ts +2 -0
- package/theme/foundations/transforms.js +3 -0
- package/theme/foundations/transitions.d.ts +2 -0
- package/theme/foundations/transitions.js +3 -0
- package/theme/foundations/zIndices.d.ts +2 -0
- package/theme/foundations/zIndices.js +3 -0
- package/theme/types.d.ts +5 -3
- package/tile/tile.js +1 -1
package/icons/consts.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.defaultIcons = void 0;
|
|
7
|
+
var cuiCheckboxIndeterminate_1 = __importDefault(require("./baseIcons/cui/cuiCheckboxIndeterminate"));
|
|
8
|
+
var cuiCheckboxSelected_1 = __importDefault(require("./baseIcons/cui/cuiCheckboxSelected"));
|
|
9
|
+
var cuiCheckboxUnselected_1 = __importDefault(require("./baseIcons/cui/cuiCheckboxUnselected"));
|
|
10
|
+
var cuiRadioSelected_1 = __importDefault(require("./baseIcons/cui/cuiRadioSelected"));
|
|
11
|
+
var cuiRadioUnselected_1 = __importDefault(require("./baseIcons/cui/cuiRadioUnselected"));
|
|
12
|
+
var falCheck_1 = __importDefault(require("./baseIcons/fal/falCheck"));
|
|
13
|
+
var falCheckCircle_1 = __importDefault(require("./baseIcons/fal/falCheckCircle"));
|
|
14
|
+
var falEllipsisH_1 = __importDefault(require("./baseIcons/fal/falEllipsisH"));
|
|
15
|
+
var falEllipsisV_1 = __importDefault(require("./baseIcons/fal/falEllipsisV"));
|
|
16
|
+
var falExclamationCircle_1 = __importDefault(require("./baseIcons/fal/falExclamationCircle"));
|
|
17
|
+
var falExclamationTriangle_1 = __importDefault(require("./baseIcons/fal/falExclamationTriangle"));
|
|
18
|
+
var falInfoCircle_1 = __importDefault(require("./baseIcons/fal/falInfoCircle"));
|
|
19
|
+
var falPlus_1 = __importDefault(require("./baseIcons/fal/falPlus"));
|
|
20
|
+
var falSpinner_1 = __importDefault(require("./baseIcons/fal/falSpinner"));
|
|
21
|
+
var falTimes_1 = __importDefault(require("./baseIcons/fal/falTimes"));
|
|
22
|
+
var falTimesCircle_1 = __importDefault(require("./baseIcons/fal/falTimesCircle"));
|
|
23
|
+
/**
|
|
24
|
+
* Default icons are fundamental to functioning of certain components.
|
|
25
|
+
* They are added to the icon library in order to avoid loading them from CDN.
|
|
26
|
+
*/
|
|
27
|
+
exports.defaultIcons = {
|
|
28
|
+
cuiCheckboxIndeterminate: cuiCheckboxIndeterminate_1.default,
|
|
29
|
+
cuiCheckboxSelected: cuiCheckboxSelected_1.default,
|
|
30
|
+
cuiCheckboxUnselected: cuiCheckboxUnselected_1.default,
|
|
31
|
+
cuiRadioSelected: cuiRadioSelected_1.default,
|
|
32
|
+
cuiRadioUnselected: cuiRadioUnselected_1.default,
|
|
33
|
+
falCheck: falCheck_1.default,
|
|
34
|
+
falCheckCircle: falCheckCircle_1.default,
|
|
35
|
+
falEllipsisH: falEllipsisH_1.default,
|
|
36
|
+
falEllipsisV: falEllipsisV_1.default,
|
|
37
|
+
falExclamationCircle: falExclamationCircle_1.default,
|
|
38
|
+
falExclamationTriangle: falExclamationTriangle_1.default,
|
|
39
|
+
falInfoCircle: falInfoCircle_1.default,
|
|
40
|
+
falPlus: falPlus_1.default,
|
|
41
|
+
falSpinner: falSpinner_1.default,
|
|
42
|
+
falTimes: falTimes_1.default,
|
|
43
|
+
falTimesCircle: falTimesCircle_1.default
|
|
44
|
+
};
|
package/icons/index.d.ts
ADDED
package/icons/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.library = void 0;
|
|
17
|
+
__exportStar(require("./consts"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
19
|
+
var library_1 = require("./library");
|
|
20
|
+
Object.defineProperty(exports, "library", { enumerable: true, get: function () { return __importDefault(library_1).default; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IconDefinition } from './types';
|
|
2
|
+
declare class Library {
|
|
3
|
+
cache: Map<string, IconDefinition>;
|
|
4
|
+
add: (...icons: IconDefinition[]) => void;
|
|
5
|
+
get: (name: string) => IconDefinition | undefined;
|
|
6
|
+
has: (name: string) => boolean;
|
|
7
|
+
init: () => void;
|
|
8
|
+
reset: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const library: Library;
|
|
11
|
+
export default library;
|
package/icons/library.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
3
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4
|
+
if (!m) return o;
|
|
5
|
+
var i = m.call(o), r, ar = [], e;
|
|
6
|
+
try {
|
|
7
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8
|
+
}
|
|
9
|
+
catch (error) { e = { error: error }; }
|
|
10
|
+
finally {
|
|
11
|
+
try {
|
|
12
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13
|
+
}
|
|
14
|
+
finally { if (e) throw e.error; }
|
|
15
|
+
}
|
|
16
|
+
return ar;
|
|
17
|
+
};
|
|
18
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
19
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
20
|
+
to[j] = from[i];
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
var consts_1 = require("./consts");
|
|
25
|
+
var Library = /** @class */ (function () {
|
|
26
|
+
function Library() {
|
|
27
|
+
var _this = this;
|
|
28
|
+
this.cache = new Map();
|
|
29
|
+
this.add = function () {
|
|
30
|
+
var icons = [];
|
|
31
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
32
|
+
icons[_i] = arguments[_i];
|
|
33
|
+
}
|
|
34
|
+
icons.forEach(function (icon) {
|
|
35
|
+
icon.name && _this.cache.set(icon.name, icon);
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
this.get = function (name) {
|
|
39
|
+
var icon = _this.cache.get(name);
|
|
40
|
+
if (!icon) {
|
|
41
|
+
/* eslint-disable-next-line no-console */
|
|
42
|
+
console.error("Icon " + name + " does not exist in the library.");
|
|
43
|
+
}
|
|
44
|
+
return icon;
|
|
45
|
+
};
|
|
46
|
+
this.has = function (name) {
|
|
47
|
+
return _this.cache.has(name);
|
|
48
|
+
};
|
|
49
|
+
this.init = function () {
|
|
50
|
+
_this.add.apply(_this, __spreadArray([], __read(Object.values(consts_1.defaultIcons))));
|
|
51
|
+
};
|
|
52
|
+
this.reset = function () {
|
|
53
|
+
_this.cache.clear();
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
return Library;
|
|
57
|
+
}());
|
|
58
|
+
var library = new Library();
|
|
59
|
+
library.init();
|
|
60
|
+
exports.default = library;
|
package/icons/types.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseIcon } from './baseIcons/types';
|
|
3
|
+
import { PropsOf } from '../core';
|
|
4
|
+
import Svg from '../svg';
|
|
5
|
+
export interface IconDefinition {
|
|
6
|
+
details: IconDetails;
|
|
7
|
+
name?: string;
|
|
8
|
+
pathProps?: React.SVGProps<SVGPathElement> | React.SVGProps<SVGPathElement>[];
|
|
9
|
+
svgProps?: PropsOf<typeof Svg>;
|
|
10
|
+
}
|
|
11
|
+
export declare type IconDetails = [
|
|
12
|
+
number,
|
|
13
|
+
number,
|
|
14
|
+
string[],
|
|
15
|
+
string,
|
|
16
|
+
// unicode
|
|
17
|
+
string | string[]
|
|
18
|
+
];
|
|
19
|
+
export declare type VuiIcon = keyof VuiIcons;
|
|
20
|
+
export interface VuiIcons extends Record<BaseIcon, IconDefinition> {
|
|
21
|
+
}
|
package/icons/types.js
ADDED
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __exportStar(require("./core"), exports);
|
|
|
19
19
|
__exportStar(require("./divider"), exports);
|
|
20
20
|
__exportStar(require("./heading"), exports);
|
|
21
21
|
__exportStar(require("./icon"), exports);
|
|
22
|
+
__exportStar(require("./icons"), exports);
|
|
22
23
|
__exportStar(require("./input"), exports);
|
|
23
24
|
__exportStar(require("./label"), exports);
|
|
24
25
|
__exportStar(require("./link"), exports);
|
package/input/input.js
CHANGED
|
@@ -40,7 +40,7 @@ var utils_1 = require("../utils");
|
|
|
40
40
|
var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.flexboxes, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions);
|
|
41
41
|
exports.InputInput = styled_components_2.default.input(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-self: stretch;\n\tbackground-color: transparent;\n\tborder: none;\n\tflex: 1;\n\tmargin: 0 8px;\n\tmin-width: 0;\n\toutline: none;\n\tpadding: 0;\n\n\t:disabled,\n\t:disabled::placeholder {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n\n\t", "\n"], ["\n\talign-self: stretch;\n\tbackground-color: transparent;\n\tborder: none;\n\tflex: 1;\n\tmargin: 0 8px;\n\tmin-width: 0;\n\toutline: none;\n\tpadding: 0;\n\n\t:disabled,\n\t:disabled::placeholder {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n\n\t", "\n"])), styled_components_1.compose(styled_components_1.color, styled_components_1.fontSize));
|
|
42
42
|
exports.InputBase = styled_components_2.default.div.withConfig(core_1.forwardPropConfig(generator))(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tborder-width: 1px;\n\tdisplay: flex;\n\toutline: none;\n\twidth: 100%;\n\n\t&.disabled {\n\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tborder-width: 1px;\n\tdisplay: flex;\n\toutline: none;\n\twidth: 100%;\n\n\t&.disabled {\n\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t}\n\n\t", "\n"])), generator);
|
|
43
|
-
exports.Input = core_1.
|
|
43
|
+
exports.Input = core_1.vui(function (props, ref) {
|
|
44
44
|
var _a;
|
|
45
45
|
var _b = core_1.omitThemingProps(props), autoComplete = _b.autoComplete, autoFocus = _b.autoFocus, className = _b.className, colorSchemeProp = _b.colorScheme, defaultValue = _b.defaultValue, disabled = _b.disabled, iconLeft = _b.iconLeft, iconRightProp = _b.iconRight, _c = _b.inputProps, inputProps = _c === void 0 ? {} : _c, inputRef = _b.inputRef, itemLeft = _b.itemLeft, itemRight = _b.itemRight, _d = _b.length, length = _d === void 0 ? 'fluid' : _d, name = _b.name, onBlur = _b.onBlur, onChange = _b.onChange, onFocus = _b.onFocus, placeholder = _b.placeholder, readOnly = _b.readOnly, required = _b.required, _e = _b.state, state = _e === void 0 ? 'default' : _e, stateMapping = _b.stateMapping, _f = _b.type, type = _f === void 0 ? 'text' : _f, value = _b.value, rest = __rest(_b, ["autoComplete", "autoFocus", "className", "colorScheme", "defaultValue", "disabled", "iconLeft", "iconRight", "inputProps", "inputRef", "itemLeft", "itemRight", "length", "name", "onBlur", "onChange", "onFocus", "placeholder", "readOnly", "required", "state", "stateMapping", "type", "value"]);
|
|
46
46
|
var states = __assign(__assign({}, consts_1.inputStateMapping), stateMapping);
|
package/label/label.js
CHANGED
|
@@ -40,7 +40,7 @@ var utils_1 = require("../utils");
|
|
|
40
40
|
var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.effects, styled_components_1.flexboxes, styled_components_1.interactivity, system_1.isTruncated, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
|
|
41
41
|
var Text = styled_components_2.default.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), system_1.isTruncated);
|
|
42
42
|
exports.LabelBase = styled_components_2.default.span.withConfig(core_1.forwardPropConfig(generator))(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: flex;\n\tjustify-content: center;\n\tline-height: normal;\n\tmin-width: 0px;\n\tposition: relative;\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\tjustify-content: center;\n\tline-height: normal;\n\tmin-width: 0px;\n\tposition: relative;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t", "\n"])), generator);
|
|
43
|
-
exports.Label = core_1.
|
|
43
|
+
exports.Label = core_1.vui(function (props, ref) {
|
|
44
44
|
var _a = core_1.omitThemingProps(props), casing = _a.casing, children = _a.children, className = _a.className, icon = _a.icon, iconLeft = _a.iconLeft, iconRight = _a.iconRight, isElevated = _a.isElevated, isFullWidth = _a.isFullWidth, _b = _a.isInteractive, isInteractive = _b === void 0 ? props.onClick !== undefined : _b, isLoading = _a.isLoading, isRound = _a.isRound, isSplit = _a.isSplit, _c = _a.isTruncated, isTruncated = _c === void 0 ? true : _c, itemLeft = _a.itemLeft, itemRight = _a.itemRight, text = _a.text, weight = _a.weight, rest = __rest(_a, ["casing", "children", "className", "icon", "iconLeft", "iconRight", "isElevated", "isFullWidth", "isInteractive", "isLoading", "isRound", "isSplit", "isTruncated", "itemLeft", "itemRight", "text", "weight"]);
|
|
45
45
|
var _d = core_1.useStyleConfig('Label', props), activeBg = _d.activeBg, h = _d.h, hoverBg = _d.hoverBg, _e = _d.iconSize, iconSize = _e === void 0 ? 'md' : _e, _f = _d.spaceX, spaceXBase = _f === void 0 ? 0 : _f, styles = __rest(_d, ["activeBg", "h", "hoverBg", "iconSize", "spaceX"]);
|
|
46
46
|
var spaceX = spaceXBase / 8;
|
package/link/link.js
CHANGED
|
@@ -38,7 +38,7 @@ var system_1 = require("../system");
|
|
|
38
38
|
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
|
-
exports.Link = core_1.
|
|
41
|
+
exports.Link = core_1.vui(function (props, ref) {
|
|
42
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"]);
|
|
43
43
|
var styles = core_1.useStyleConfig('Link', props);
|
|
44
44
|
var aliasedProps = utils_1.filterUndefined({
|
package/list/list.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import ListIcon from './listIcon';
|
|
|
3
3
|
import ListItem from './listItem';
|
|
4
4
|
import { VuiComponent } from '../core';
|
|
5
5
|
export declare const ListBase: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, ListStyleProps, never>;
|
|
6
|
-
export declare const List: VuiComponent<"
|
|
6
|
+
export declare const List: VuiComponent<"ul", ListProps> & {
|
|
7
7
|
Icon: typeof ListIcon;
|
|
8
8
|
Item: typeof ListItem;
|
|
9
9
|
};
|
package/list/list.js
CHANGED
|
@@ -57,9 +57,9 @@ var listIcon_1 = __importDefault(require("./listIcon"));
|
|
|
57
57
|
var listItem_1 = __importDefault(require("./listItem"));
|
|
58
58
|
var core_1 = require("../core");
|
|
59
59
|
var utils_1 = require("../utils");
|
|
60
|
-
var generator = styled_components_1.compose(styled_components_1.borders, styled_components_1.flexboxes, styled_components_1.sizing, styled_components_1.space, styled_components_1.typography);
|
|
60
|
+
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
61
|
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
|
-
exports.List = core_1.
|
|
62
|
+
exports.List = core_1.vui(function (props, ref) {
|
|
63
63
|
var children = props.children, className = props.className, colorScheme = props.colorScheme, isInteractive = props.isInteractive, size = props.size, subheader = props.subheader, variant = props.variant, rest = __rest(props, ["children", "className", "colorScheme", "isInteractive", "size", "subheader", "variant"]);
|
|
64
64
|
var styles = core_1.useStyleConfig('List', props);
|
|
65
65
|
var context = react_1.useMemo(function () { return utils_1.filterUndefined({ colorScheme: colorScheme, isInteractive: isInteractive, size: size, styles: styles, variant: variant }); }, [
|
package/list/list.types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BordersProps, FlexboxesProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps } from '../system';
|
|
1
|
+
import { BordersProps, FlexboxesProps, LayoutProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps } from '../system';
|
|
2
2
|
import { ThemingProps } from '../theme';
|
|
3
3
|
export interface ListProps extends ListStyleProps, ThemingProps<'List'> {
|
|
4
4
|
colorScheme?: 'blue' | 'grey';
|
|
@@ -6,5 +6,5 @@ export interface ListProps extends ListStyleProps, ThemingProps<'List'> {
|
|
|
6
6
|
isInteractive?: boolean;
|
|
7
7
|
subheader?: string;
|
|
8
8
|
}
|
|
9
|
-
export interface ListStyleProps extends BordersProps, FlexboxesProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
|
9
|
+
export interface ListStyleProps extends BordersProps, FlexboxesProps, LayoutProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
|
10
10
|
}
|
package/list/listIcon.js
CHANGED
|
@@ -19,7 +19,7 @@ var react_1 = __importDefault(require("react"));
|
|
|
19
19
|
var context_1 = require("./context");
|
|
20
20
|
var core_1 = require("../core");
|
|
21
21
|
var icon_1 = __importDefault(require("../icon"));
|
|
22
|
-
exports.ListIcon = core_1.
|
|
22
|
+
exports.ListIcon = core_1.vui(function (props, ref) {
|
|
23
23
|
var _a;
|
|
24
24
|
var listProps = (_a = context_1.useList()) !== null && _a !== void 0 ? _a : {};
|
|
25
25
|
var mergedProps = __assign(__assign({}, listProps), props);
|
package/list/listItem.js
CHANGED
|
@@ -39,7 +39,7 @@ var core_1 = require("../core");
|
|
|
39
39
|
var utils_1 = require("../utils");
|
|
40
40
|
var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.flexboxes, styled_components_1.interactivity, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
|
|
41
41
|
exports.ListItemBase = styled_components_2.default.li.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\tline-height: normal;\n\toutline: none;\n\n\t&[data-disabled='true'] {\n\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t\tuser-select: none;\n\t}\n\n\t", "\n"], ["\n\tdisplay: flex;\n\tline-height: normal;\n\toutline: none;\n\n\t&[data-disabled='true'] {\n\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\t\tuser-select: none;\n\t}\n\n\t", "\n"])), generator);
|
|
42
|
-
exports.ListItem = core_1.
|
|
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
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"]);
|
package/p/p.js
CHANGED
|
@@ -38,7 +38,7 @@ var system_1 = require("../system");
|
|
|
38
38
|
var utils_1 = require("../utils");
|
|
39
39
|
var generator = styled_components_1.compose(system_1.isTruncated, system_1.maxLines, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
|
|
40
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
|
-
exports.P = core_1.
|
|
41
|
+
exports.P = core_1.vui(function (props, ref) {
|
|
42
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"]);
|
|
43
43
|
var styles = core_1.useStyleConfig('P', props);
|
|
44
44
|
var aliasedProps = utils_1.filterUndefined({
|
package/package.json
CHANGED
package/radio/radio.js
CHANGED
|
@@ -43,7 +43,7 @@ var controlGenerator = styled_components_1.compose(styled_components_1.borders,
|
|
|
43
43
|
exports.RadioInput = styled_components_2.default.input(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tcursor: inherit;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0;\n\topacity: 0;\n\tpadding: 0;\n\tposition: absolute;\n\ttop: 0;\n\twidth: 100%;\n\tz-index: 1;\n"], ["\n\tcursor: inherit;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0;\n\topacity: 0;\n\tpadding: 0;\n\tposition: absolute;\n\ttop: 0;\n\twidth: 100%;\n\tz-index: 1;\n"])));
|
|
44
44
|
exports.RadioBase = styled_components_2.default.label.withConfig(core_1.forwardPropConfig(radioGenerator))(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\twidth: fit-content;\n\n\t:hover .vui-radioControl {\n\t\tcolor: ", ";\n\t}\n\n\t&.disabled {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\n\t\t.vui-radioControl {\n\t\t\tcolor: var(--vui-colors-disabled-font);\n\t\t}\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\twidth: fit-content;\n\n\t:hover .vui-radioControl {\n\t\tcolor: ", ";\n\t}\n\n\t&.disabled {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\n\t\t.vui-radioControl {\n\t\t\tcolor: var(--vui-colors-disabled-font);\n\t\t}\n\t}\n\n\t", "\n"])), function (p) { return core_1.th('colors', p.controlHoverColor)(p); }, radioGenerator);
|
|
45
45
|
exports.RadioControl = styled_components_2.default.span.withConfig(core_1.forwardPropConfig(controlGenerator))(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: relative;\n\n\t", "\n"], ["\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: relative;\n\n\t", "\n"])), controlGenerator);
|
|
46
|
-
exports.Radio = core_1.
|
|
46
|
+
exports.Radio = core_1.vui(function (props, ref) {
|
|
47
47
|
var _a;
|
|
48
48
|
var _b = (_a = context_1.useRadioGroup()) !== null && _a !== void 0 ? _a : {}, groupOnChange = _b.onChange, groupValue = _b.value, radioGroupProps = __rest(_b, ["onChange", "value"]);
|
|
49
49
|
var mergedProps = __assign(__assign({}, radioGroupProps), props);
|
package/radio/radioGroup.js
CHANGED
|
@@ -73,7 +73,7 @@ var core_1 = require("../core");
|
|
|
73
73
|
var utils_1 = require("../utils");
|
|
74
74
|
var generator = styled_components_1.compose(styled_components_1.flexboxes, styled_components_1.sizing, styled_components_1.space);
|
|
75
75
|
exports.RadioGroupBase = styled_components_2.default.div.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t", "\n"], ["\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t", "\n"])), generator);
|
|
76
|
-
exports.RadioGroup = core_1.
|
|
76
|
+
exports.RadioGroup = core_1.vui(function (props, ref) {
|
|
77
77
|
var className = props.className, colorScheme = props.colorScheme, _a = props.defaultValue, defaultValue = _a === void 0 ? '' : _a, disabled = props.disabled, name = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, row = props.row, size = props.size, valueProp = props.value, variant = props.variant, rest = __rest(props, ["className", "colorScheme", "defaultValue", "disabled", "name", "onBlur", "onChange", "onFocus", "row", "size", "value", "variant"]);
|
|
78
78
|
var isControlled = react_1.useRef(valueProp !== undefined).current;
|
|
79
79
|
var _b = __read(react_1.useState(defaultValue), 2), valueState = _b[0], setValueState = _b[1];
|
package/skeleton/skeleton.js
CHANGED
|
@@ -14,25 +14,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
14
14
|
};
|
|
15
15
|
return __assign.apply(this, arguments);
|
|
16
16
|
};
|
|
17
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
17
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
18
|
var t = {};
|
|
38
19
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -51,21 +32,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
51
32
|
exports.Skeleton = exports.SkeletonBase = void 0;
|
|
52
33
|
var styled_components_1 = require("@xstyled/styled-components");
|
|
53
34
|
var react_1 = __importDefault(require("react"));
|
|
54
|
-
var styled_components_2 =
|
|
35
|
+
var styled_components_2 = __importDefault(require("styled-components"));
|
|
55
36
|
var core_1 = require("../core");
|
|
56
37
|
var utils_1 = require("../utils");
|
|
57
38
|
var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borderRadius, styled_components_1.flexboxes, styled_components_1.sizing, styled_components_1.space);
|
|
58
|
-
|
|
59
|
-
exports.
|
|
60
|
-
exports.Skeleton = core_1.forwardRef(function (props, ref) {
|
|
39
|
+
exports.SkeletonBase = styled_components_2.default.div.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tanimation: vui-pulse 1.5s ease-in-out 0.5s infinite;\n\n\t", "\n"], ["\n\tanimation: vui-pulse 1.5s ease-in-out 0.5s infinite;\n\n\t", "\n"])), generator);
|
|
40
|
+
exports.Skeleton = core_1.vui(function (props, ref) {
|
|
61
41
|
var _a = core_1.omitThemingProps(props), className = _a.className, _b = _a.repeat, repeat = _b === void 0 ? 1 : _b, rest = __rest(_a, ["className", "repeat"]);
|
|
62
42
|
var styles = core_1.useStyleConfig('Skeleton', props);
|
|
63
43
|
var arr = Array(repeat).fill(0);
|
|
64
44
|
var aliasedProps = utils_1.filterUndefined({
|
|
65
45
|
w: props.variant === 'circle' ? styles.h : undefined
|
|
66
46
|
});
|
|
67
|
-
return (react_1.default.createElement(react_1.default.Fragment, null, arr.map(function (_, i) { return (react_1.default.createElement(exports.SkeletonBase, __assign({
|
|
47
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, arr.map(function (_, i) { return (react_1.default.createElement(exports.SkeletonBase, __assign({ className: utils_1.cs('vui-skeleton', className), key: i, ref: ref }, styles, aliasedProps, rest))); })));
|
|
68
48
|
});
|
|
69
49
|
exports.Skeleton.displayName = 'Skeleton';
|
|
70
50
|
exports.default = exports.Skeleton;
|
|
71
|
-
var templateObject_1
|
|
51
|
+
var templateObject_1;
|
package/spinner/spinner.js
CHANGED
|
@@ -40,7 +40,7 @@ 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
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; });
|
|
43
|
-
exports.Spinner = core_1.
|
|
43
|
+
exports.Spinner = core_1.vui(function (props, ref) {
|
|
44
44
|
var className = props.className, emptyColor = props.emptyColor, size = props.size, _a = props.speed, speed = _a === void 0 ? '0.8s' : _a, text = props.text, _b = props.textPosition, textPosition = _b === void 0 ? 'bottom' : _b, thickness = props.thickness, rest = __rest(props, ["className", "emptyColor", "size", "speed", "text", "textPosition", "thickness"]);
|
|
45
45
|
var styles = core_1.useStyleConfig('Spinner', props);
|
|
46
46
|
var isCustomSize = typeof size === 'number';
|
package/styles/animations.d.ts
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
declare const
|
|
9
|
-
|
|
10
|
-
fadeIn: string;
|
|
11
|
-
fadeLeft: string;
|
|
12
|
-
fadeOut: string;
|
|
13
|
-
fadeRight: string;
|
|
14
|
-
fadeUp: string;
|
|
15
|
-
spin: string;
|
|
16
|
-
};
|
|
17
|
-
export default _default;
|
|
1
|
+
export declare const bounce = "\n\t0%, 100% {\n\t\tanimationTimingFunction: cubic-bezier(0.8, 0, 1, 1);\n\t\ttransform: translateY(-25%);\n\t}\n\t50% {\n\t\tanimationTimingFunction: cubic-bezier(0, 0, 0.2, 1);\n\t\ttransform: translateY(0);\n\t}\n";
|
|
2
|
+
export declare const fadeDown = "\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translateY(-20px)\n\t}\n\tto {\n\t\topacity: 1;\n\t\ttransform: translateY(0)\n\t}\n";
|
|
3
|
+
export declare const fadeIn = "\n\tfrom {\n\t\topacity: 0;\n\t}\n\tto {\n\t\topacity: 1;\n\t}\n";
|
|
4
|
+
export declare const fadeLeft = "\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translateX(20px)\n\t}\n\tto {\n\t\topacity: 1;\n\t\ttransform: translateX(0)\n\t}\n";
|
|
5
|
+
export declare const fadeOut = "\n\tfrom {\n\t\topacity: 1;\n\t}\n\tto {\n\t\topacity: 0;\n\t}\n";
|
|
6
|
+
export declare const fadeRight = "\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translateX(-20px)\n\t}\n\tto {\n\t\topacity: 1;\n\t\ttransform: translateX(0)\n\t}\n";
|
|
7
|
+
export declare const fadeUp = "\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translateY(20px)\n\t}\n\tto {\n\t\topacity: 1;\n\t\ttransform: translateY(0)\n\t}\n";
|
|
8
|
+
export declare const pulse = "\n\t0%, 100% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: .5;\n\t}\n";
|
|
9
|
+
export declare const spin = "\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n";
|
package/styles/animations.js
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.spin = exports.fadeUp = exports.fadeRight = exports.fadeOut = exports.fadeLeft = exports.fadeIn = exports.fadeDown = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
|
|
13
|
-
fadeIn: 'fadeIn 0.3s ease-in-out',
|
|
14
|
-
fadeLeft: 'fadeLeft 0.3s ease-in-out',
|
|
15
|
-
fadeOut: 'fadeOut 0.3s ease-in-out',
|
|
16
|
-
fadeRight: 'fadeRight 0.3s ease-in-out',
|
|
17
|
-
fadeUp: 'fadeUp 0.3s ease-in-out',
|
|
18
|
-
spin: 'spin 1s linear infinite'
|
|
19
|
-
};
|
|
3
|
+
exports.spin = exports.pulse = exports.fadeUp = exports.fadeRight = exports.fadeOut = exports.fadeLeft = exports.fadeIn = exports.fadeDown = exports.bounce = void 0;
|
|
4
|
+
exports.bounce = "\n\t0%, 100% {\n\t\tanimationTimingFunction: cubic-bezier(0.8, 0, 1, 1);\n\t\ttransform: translateY(-25%);\n\t}\n\t50% {\n\t\tanimationTimingFunction: cubic-bezier(0, 0, 0.2, 1);\n\t\ttransform: translateY(0);\n\t}\n";
|
|
5
|
+
exports.fadeDown = "\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translateY(-20px)\n\t}\n\tto {\n\t\topacity: 1;\n\t\ttransform: translateY(0)\n\t}\n";
|
|
6
|
+
exports.fadeIn = "\n\tfrom {\n\t\topacity: 0;\n\t}\n\tto {\n\t\topacity: 1;\n\t}\n";
|
|
7
|
+
exports.fadeLeft = "\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translateX(20px)\n\t}\n\tto {\n\t\topacity: 1;\n\t\ttransform: translateX(0)\n\t}\n";
|
|
8
|
+
exports.fadeOut = "\n\tfrom {\n\t\topacity: 1;\n\t}\n\tto {\n\t\topacity: 0;\n\t}\n";
|
|
9
|
+
exports.fadeRight = "\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translateX(-20px)\n\t}\n\tto {\n\t\topacity: 1;\n\t\ttransform: translateX(0)\n\t}\n";
|
|
10
|
+
exports.fadeUp = "\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translateY(20px)\n\t}\n\tto {\n\t\topacity: 1;\n\t\ttransform: translateY(0)\n\t}\n";
|
|
11
|
+
exports.pulse = "\n\t0%, 100% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: .5;\n\t}\n";
|
|
12
|
+
exports.spin = "\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n";
|
package/styles/helpers.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { StyledProps } from 'styled-components';
|
|
2
|
-
import { Screen } from '../theme';
|
|
3
1
|
export declare const lineClamp: (maxLines: number) => string;
|
|
4
|
-
export declare const mediaDown: (key: Screen) => (props: StyledProps<unknown>) => string;
|
|
5
|
-
export declare const mediaUp: (key: Screen) => (props: StyledProps<unknown>) => string;
|
|
6
2
|
export declare const resetLink = "\n\ttext-decoration: none;\n\tcolor: inherit;\n";
|
|
7
3
|
export declare const resetList = "\n\tlist-style: none;\n\tpadding-left: 0;\n";
|
|
8
4
|
export declare const truncateText = "\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n";
|
package/styles/helpers.js
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.truncateText = exports.resetList = exports.resetLink = exports.
|
|
3
|
+
exports.truncateText = exports.resetList = exports.resetLink = exports.lineClamp = void 0;
|
|
4
4
|
var lineClamp = function (maxLines) { return "\n\tdisplay: -webkit-box;\n\t-webkit-line-clamp: " + maxLines + ";\n\t-webkit-box-orient: vertical; \n\toverflow: hidden;\n"; };
|
|
5
5
|
exports.lineClamp = lineClamp;
|
|
6
|
-
var mediaDown = function (key) { return function (props) {
|
|
7
|
-
return "@media (max-width: " + props.theme.screens[key] + "px)";
|
|
8
|
-
}; };
|
|
9
|
-
exports.mediaDown = mediaDown;
|
|
10
|
-
var mediaUp = function (key) { return function (props) {
|
|
11
|
-
return "@media (min-width: " + props.theme.screens[key] + "px)";
|
|
12
|
-
}; };
|
|
13
|
-
exports.mediaUp = mediaUp;
|
|
14
6
|
exports.resetLink = "\n\ttext-decoration: none;\n\tcolor: inherit;\n";
|
|
15
7
|
exports.resetList = "\n\tlist-style: none;\n\tpadding-left: 0;\n";
|
|
16
8
|
exports.truncateText = "\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n";
|
package/styles/index.d.ts
CHANGED
|
@@ -1,13 +1,3 @@
|
|
|
1
1
|
export * from './animations';
|
|
2
|
-
export * from './colors';
|
|
3
2
|
export * from './helpers';
|
|
4
|
-
export { default as animations } from './animations';
|
|
5
|
-
export { default as colors } from './colors';
|
|
6
|
-
export { default as durations } from './durations';
|
|
7
3
|
export { default as fontFaces } from './fontFaces';
|
|
8
|
-
export { default as fonts } from './fonts';
|
|
9
|
-
export { default as fontSizes } from './fontSizes';
|
|
10
|
-
export { default as fontWeights } from './fontWeights';
|
|
11
|
-
export { default as radii } from './radii';
|
|
12
|
-
export { default as screens } from './screens';
|
|
13
|
-
export { default as shadows } from './shadows';
|
package/styles/index.js
CHANGED
|
@@ -13,27 +13,8 @@ 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.
|
|
16
|
+
exports.fontFaces = void 0;
|
|
17
17
|
__exportStar(require("./animations"), exports);
|
|
18
|
-
__exportStar(require("./colors"), exports);
|
|
19
18
|
__exportStar(require("./helpers"), exports);
|
|
20
|
-
var animations_1 = require("./animations");
|
|
21
|
-
Object.defineProperty(exports, "animations", { enumerable: true, get: function () { return __importDefault(animations_1).default; } });
|
|
22
|
-
var colors_1 = require("./colors");
|
|
23
|
-
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return __importDefault(colors_1).default; } });
|
|
24
|
-
var durations_1 = require("./durations");
|
|
25
|
-
Object.defineProperty(exports, "durations", { enumerable: true, get: function () { return __importDefault(durations_1).default; } });
|
|
26
19
|
var fontFaces_1 = require("./fontFaces");
|
|
27
20
|
Object.defineProperty(exports, "fontFaces", { enumerable: true, get: function () { return __importDefault(fontFaces_1).default; } });
|
|
28
|
-
var fonts_1 = require("./fonts");
|
|
29
|
-
Object.defineProperty(exports, "fonts", { enumerable: true, get: function () { return __importDefault(fonts_1).default; } });
|
|
30
|
-
var fontSizes_1 = require("./fontSizes");
|
|
31
|
-
Object.defineProperty(exports, "fontSizes", { enumerable: true, get: function () { return __importDefault(fontSizes_1).default; } });
|
|
32
|
-
var fontWeights_1 = require("./fontWeights");
|
|
33
|
-
Object.defineProperty(exports, "fontWeights", { enumerable: true, get: function () { return __importDefault(fontWeights_1).default; } });
|
|
34
|
-
var radii_1 = require("./radii");
|
|
35
|
-
Object.defineProperty(exports, "radii", { enumerable: true, get: function () { return __importDefault(radii_1).default; } });
|
|
36
|
-
var screens_1 = require("./screens");
|
|
37
|
-
Object.defineProperty(exports, "screens", { enumerable: true, get: function () { return __importDefault(screens_1).default; } });
|
|
38
|
-
var shadows_1 = require("./shadows");
|
|
39
|
-
Object.defineProperty(exports, "shadows", { enumerable: true, get: function () { return __importDefault(shadows_1).default; } });
|
package/svg/svg.js
CHANGED
|
@@ -110,11 +110,18 @@ var core_1 = require("../core");
|
|
|
110
110
|
var utils_1 = require("../utils");
|
|
111
111
|
var generator = styled_components_1.compose(styled_components_1.animation, styled_components_1.color, styled_components_1.flexboxes, styled_components_1.sizing, styled_components_1.space, styled_components_1.transform);
|
|
112
112
|
exports.SvgBase = styled_components_2.default.svg.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), generator);
|
|
113
|
-
exports.Svg = core_1.
|
|
113
|
+
exports.Svg = core_1.vui(function (_a, ref) {
|
|
114
114
|
var children = _a.children, className = _a.className, src = _a.src, rest = __rest(_a, ["children", "className", "src"]);
|
|
115
115
|
var _b = __read(react_1.useState(helpers_1.initState()), 2), state = _b[0], setState = _b[1];
|
|
116
116
|
var _c = state.content, content = _c === void 0 ? '' : _c, _d = state.svgAttributes, svgAttributes = _d === void 0 ? {} : _d;
|
|
117
|
+
var isMountedRef = react_1.useRef(false);
|
|
117
118
|
var srcRef = react_1.useRef(src);
|
|
119
|
+
react_1.useEffect(function () {
|
|
120
|
+
isMountedRef.current = true;
|
|
121
|
+
return function () {
|
|
122
|
+
isMountedRef.current = false;
|
|
123
|
+
};
|
|
124
|
+
}, []);
|
|
118
125
|
react_1.useEffect(function () {
|
|
119
126
|
srcRef.current = src;
|
|
120
127
|
function loadSvg(src) {
|
|
@@ -132,14 +139,16 @@ exports.Svg = core_1.forwardRef(function (_a, ref) {
|
|
|
132
139
|
svgAttributes_1 = helpers_1.getAttributes(svgEl);
|
|
133
140
|
svgAttributes_1['data-src'] = src !== null && src !== void 0 ? src : '';
|
|
134
141
|
// Update state only when requested 'src' and current 'src' are the same
|
|
135
|
-
if (srcRef.current === src) {
|
|
142
|
+
if (srcRef.current === src && isMountedRef.current) {
|
|
136
143
|
setState({ content: content_1, svgAttributes: svgAttributes_1 });
|
|
137
144
|
}
|
|
138
145
|
return [3 /*break*/, 3];
|
|
139
146
|
case 2:
|
|
140
147
|
error_1 = _a.sent();
|
|
141
148
|
console.error(error_1); // eslint-disable-line no-console
|
|
142
|
-
|
|
149
|
+
if (isMountedRef.current) {
|
|
150
|
+
setState(helpers_1.initState());
|
|
151
|
+
}
|
|
143
152
|
return [3 /*break*/, 3];
|
|
144
153
|
case 3: return [2 /*return*/];
|
|
145
154
|
}
|
package/switch/switch.js
CHANGED
|
@@ -76,7 +76,7 @@ var t_1 = require("../t");
|
|
|
76
76
|
var utils_1 = require("../utils");
|
|
77
77
|
var generator = styled_components_1.compose(styled_components_1.flexboxes, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions);
|
|
78
78
|
exports.SwitchBase = styled_components_2.default.label.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\tline-height: normal;\n\twidth: fit-content;\n\n\t&[data-disabled='true'] {\n\t\tcursor: not-allowed;\n\n\t\t", " {\n\t\t\tcolor: var(--vui-colors-disabled-font);\n\t\t}\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\tline-height: normal;\n\twidth: fit-content;\n\n\t&[data-disabled='true'] {\n\t\tcursor: not-allowed;\n\n\t\t", " {\n\t\t\tcolor: var(--vui-colors-disabled-font);\n\t\t}\n\t}\n\n\t", "\n"])), t_1.TBase, generator);
|
|
79
|
-
exports.Switch = core_1.
|
|
79
|
+
exports.Switch = core_1.vui(function (props, ref) {
|
|
80
80
|
var checked = props.checked, children = props.children, className = props.className, colorScheme = props.colorScheme, defaultChecked = props.defaultChecked, disabled = props.disabled, innerLabelOff = props.innerLabelOff, innerLabelOn = props.innerLabelOn, inputProps = props.inputProps, inputRef = props.inputRef, labelLeft = props.labelLeft, labelRight = props.labelRight, name = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, required = props.required, size = props.size, value = props.value, variant = props.variant, rest = __rest(props, ["checked", "children", "className", "colorScheme", "defaultChecked", "disabled", "innerLabelOff", "innerLabelOn", "inputProps", "inputRef", "labelLeft", "labelRight", "name", "onBlur", "onChange", "onFocus", "required", "size", "value", "variant"]);
|
|
81
81
|
var _a = __read(react_1.useState(defaultChecked), 2), isChecked = _a[0], setIsChecked = _a[1];
|
|
82
82
|
var styles = core_1.useStyleConfig('Switch', props);
|
package/switch/switchButton.js
CHANGED
|
@@ -78,7 +78,7 @@ exports.SwitchInput = styled_components_2.default.input(templateObject_1 || (tem
|
|
|
78
78
|
exports.SwitchThumb = styled_components_2.default.span.withConfig(core_1.forwardPropConfig(thumbGenerator))(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: absolute;\n\n\t", "\n"], ["\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: absolute;\n\n\t", "\n"])), thumbGenerator);
|
|
79
79
|
exports.SwitchTrack = styled_components_2.default.span.withConfig(core_1.forwardPropConfig(trackGenerator))(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: inline-flex;\n\tposition: relative;\n\n\t", "\n"], ["\n\talign-items: center;\n\tdisplay: inline-flex;\n\tposition: relative;\n\n\t", "\n"])), trackGenerator);
|
|
80
80
|
exports.SwitchButtonBase = styled_components_2.default.span.withConfig(core_1.forwardPropConfig(buttonGenerator))(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n\tcolor: white;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: relative;\n\n\t&[data-disabled='true'] {\n\t\tcursor: not-allowed;\n\n\t\t", " {\n\t\t\tborder-color: var(--vui-colors-disabled-border);\n\t\t\tbackground-color: var(--vui-colors-disabled-font);\n\t\t}\n\n\t\t", " {\n\t\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\t}\n\t}\n\n\t", "\n"], ["\n\tcolor: white;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: relative;\n\n\t&[data-disabled='true'] {\n\t\tcursor: not-allowed;\n\n\t\t", " {\n\t\t\tborder-color: var(--vui-colors-disabled-border);\n\t\t\tbackground-color: var(--vui-colors-disabled-font);\n\t\t}\n\n\t\t", " {\n\t\t\tbackground-color: var(--vui-colors-disabled-bg);\n\t\t}\n\t}\n\n\t", "\n"])), exports.SwitchThumb, exports.SwitchTrack, buttonGenerator);
|
|
81
|
-
exports.SwitchButton = core_1.
|
|
81
|
+
exports.SwitchButton = core_1.vui(function (props, ref) {
|
|
82
82
|
var _a;
|
|
83
83
|
var _b = (_a = context_1.useSwitch()) !== null && _a !== void 0 ? _a : {}, switchIsChecked = _b.isChecked, switchProps = __rest(_b, ["isChecked"]);
|
|
84
84
|
var mergedProps = __assign(__assign({}, switchProps), props);
|