@veracity/vui 0.0.2 → 0.0.4
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.d.ts +15 -0
- package/alert/alert.js +87 -0
- package/alert/alert.types.d.ts +19 -0
- package/alert/alert.types.js +2 -0
- package/alert/alertButton.d.ts +3 -0
- package/alert/alertButton.js +30 -0
- package/alert/alertIcon.d.ts +3 -0
- package/alert/alertIcon.js +33 -0
- package/alert/alertMessage.d.ts +3 -0
- package/alert/alertMessage.js +31 -0
- package/alert/alertText.d.ts +3 -0
- package/alert/alertText.js +30 -0
- package/alert/alertTitle.d.ts +3 -0
- package/alert/alertTitle.js +30 -0
- package/alert/consts.d.ts +2 -0
- package/alert/consts.js +25 -0
- package/alert/context.d.ts +4 -0
- package/alert/context.js +23 -0
- package/alert/index.d.ts +9 -0
- package/alert/index.js +26 -0
- package/alert/theme.d.ts +46 -0
- package/alert/theme.js +62 -0
- package/avatar/avatar.d.ts +4 -4
- package/avatar/avatar.js +3 -7
- package/avatar/avatar.types.d.ts +1 -2
- package/avatar/theme.js +5 -5
- package/box/box.d.ts +4 -4
- package/box/box.js +4 -6
- package/box/box.types.d.ts +10 -12
- package/button/button.d.ts +4 -4
- package/button/button.js +8 -9
- package/button/button.types.d.ts +2 -2
- package/button/buttonGroup.d.ts +2 -4
- package/button/buttonGroup.js +3 -5
- package/button/buttonGroup.types.d.ts +1 -2
- package/button/buttons.d.ts +5 -5
- package/button/index.d.ts +1 -0
- package/button/index.js +1 -0
- package/button/theme.js +5 -0
- package/checkbox/checkbox.d.ts +5 -6
- package/checkbox/checkbox.js +27 -17
- package/checkbox/checkbox.types.d.ts +12 -10
- package/checkbox/checkboxGroup.d.ts +4 -0
- package/checkbox/checkboxGroup.js +71 -0
- package/checkbox/checkboxGroup.types.d.ts +14 -0
- package/checkbox/checkboxGroup.types.js +2 -0
- package/checkbox/context.d.ts +4 -0
- package/checkbox/context.js +23 -0
- package/checkbox/index.d.ts +3 -0
- package/checkbox/index.js +3 -0
- package/checkbox/theme.d.ts +28 -4
- package/checkbox/theme.js +29 -4
- package/core/globalStyle.d.ts +1 -1
- package/core/globalStyle.js +3 -2
- package/core/index.d.ts +1 -0
- package/core/index.js +3 -1
- package/core/resetCSS.d.ts +2 -0
- package/core/resetCSS.js +9 -0
- package/core/types.d.ts +18 -2
- package/core/types.js +1 -0
- package/core/utils.d.ts +18 -8
- package/core/utils.js +68 -6
- package/core/vuiProvider.js +2 -1
- package/divider/divider.d.ts +2 -4
- package/divider/divider.js +8 -11
- package/divider/divider.types.d.ts +1 -2
- package/heading/heading.d.ts +4 -4
- package/heading/heading.js +3 -5
- package/heading/heading.types.d.ts +7 -9
- package/heading/headings.d.ts +6 -6
- package/icon/helpers.d.ts +3 -0
- package/icon/helpers.js +5 -1
- package/icon/icon.d.ts +1 -1
- package/icon/icon.js +10 -5
- package/icon/icon.types.d.ts +16 -2
- package/icon/icons/cui/cuiCheckboxIndeterminate.d.ts +3 -0
- package/icon/icons/cui/cuiCheckboxIndeterminate.js +8 -0
- package/icon/icons/cui/cuiCheckboxSelected.d.ts +3 -0
- package/icon/icons/cui/cuiCheckboxSelected.js +8 -0
- package/icon/icons/cui/cuiCheckboxUnselected.d.ts +3 -0
- package/icon/icons/cui/cuiCheckboxUnselected.js +8 -0
- package/icon/icons/cui/cuiRadioSelected.d.ts +3 -0
- package/icon/icons/cui/cuiRadioSelected.js +8 -0
- package/icon/icons/cui/cuiRadioUnselected.d.ts +3 -0
- package/icon/icons/cui/cuiRadioUnselected.js +8 -0
- package/icon/icons/cul/culCovid.d.ts +1 -1
- package/icon/icons/cul/culCovid.js +1 -1
- package/icon/icons/cul/culDeepSearch.d.ts +1 -1
- package/icon/icons/cul/culDeepSearch.js +1 -1
- package/icon/icons/cul/culDotsMenu.d.ts +1 -1
- package/icon/icons/cul/culDotsMenu.js +1 -1
- package/icon/icons/cul/culGlobePlus.d.ts +1 -1
- package/icon/icons/cul/culGlobePlus.js +1 -1
- package/icon/icons/cul/culListDense.d.ts +1 -1
- package/icon/icons/cul/culListDense.js +1 -1
- package/icon/icons/cul/culMapMarkerStar.d.ts +1 -1
- package/icon/icons/cul/culMapMarkerStar.js +1 -1
- package/icon/icons/cul/culPlusThin.d.ts +1 -1
- package/icon/icons/cul/culPlusThin.js +1 -1
- package/icon/icons/cul/culScreenshot.d.ts +1 -1
- package/icon/icons/cul/culScreenshot.js +1 -1
- package/icon/icons/cul/culScreenshotAlt.d.ts +1 -1
- package/icon/icons/cul/culScreenshotAlt.js +1 -1
- package/icon/icons/cul/culShortcut.d.ts +1 -1
- package/icon/icons/cul/culShortcut.js +1 -1
- package/icon/icons/cul/culTimesThin.d.ts +1 -1
- package/icon/icons/cul/culTimesThin.js +1 -1
- package/icon/icons/cul/culTransformer.d.ts +1 -1
- package/icon/icons/cul/culTransformer.js +1 -1
- package/icon/icons/cul/culUserTransfer.d.ts +1 -1
- package/icon/icons/cul/culUserTransfer.js +1 -1
- package/icon/icons/cul/culVessel.d.ts +1 -1
- package/icon/icons/cul/culVessel.js +1 -1
- package/icon/icons/cul/culVesselGroup.d.ts +1 -1
- package/icon/icons/cul/culVesselGroup.js +1 -1
- package/icon/icons/cus/cusCheckboxSelected.d.ts +1 -1
- package/icon/icons/cus/cusCheckboxSelected.js +1 -1
- package/icon/icons/cus/cusDotFull.d.ts +1 -1
- package/icon/icons/cus/cusDotFull.js +1 -1
- package/icon/icons/cus/cusDotFullAlt.d.ts +1 -1
- package/icon/icons/cus/cusDotFullAlt.js +1 -1
- package/icon/icons/cus/cusDotsMenu.d.ts +1 -1
- package/icon/icons/cus/cusDotsMenu.js +1 -1
- package/icon/icons/cus/cusRadio.d.ts +1 -1
- package/icon/icons/cus/cusRadio.js +1 -1
- package/icon/icons/cus/cusSquareMinus.d.ts +1 -1
- package/icon/icons/cus/cusSquareMinus.js +1 -1
- package/icon/icons/cus/cusTransformer.d.ts +1 -1
- package/icon/icons/cus/cusTransformer.js +1 -1
- package/icon/icons/cus/cusVessel.d.ts +1 -1
- package/icon/icons/cus/cusVessel.js +1 -1
- package/icon/icons/fab/fabApplePay.d.ts +1 -1
- package/icon/icons/fab/fabApplePay.js +1 -1
- package/icon/icons/fab/fabBluetooth.d.ts +1 -1
- package/icon/icons/fab/fabBluetooth.js +1 -1
- package/icon/icons/fab/fabBtc.d.ts +1 -1
- package/icon/icons/fab/fabBtc.js +1 -1
- package/icon/icons/fab/fabCcAmazonPay.d.ts +1 -1
- package/icon/icons/fab/fabCcAmazonPay.js +1 -1
- package/icon/icons/fab/fabCcAmex.d.ts +1 -1
- package/icon/icons/fab/fabCcAmex.js +1 -1
- package/icon/icons/fab/fabCcApplePay.d.ts +1 -1
- package/icon/icons/fab/fabCcApplePay.js +1 -1
- package/icon/icons/fab/fabCcDinersClub.d.ts +1 -1
- package/icon/icons/fab/fabCcDinersClub.js +1 -1
- package/icon/icons/fab/fabCcMastercard.d.ts +1 -1
- package/icon/icons/fab/fabCcMastercard.js +1 -1
- package/icon/icons/fab/fabCcPaypal.d.ts +1 -1
- package/icon/icons/fab/fabCcPaypal.js +1 -1
- package/icon/icons/fab/fabCcVisa.d.ts +1 -1
- package/icon/icons/fab/fabCcVisa.js +1 -1
- package/icon/icons/fab/fabDhl.d.ts +1 -1
- package/icon/icons/fab/fabDhl.js +1 -1
- package/icon/icons/fab/fabEbay.d.ts +1 -1
- package/icon/icons/fab/fabEbay.js +1 -1
- package/icon/icons/fab/fabFacebook.d.ts +1 -1
- package/icon/icons/fab/fabFacebook.js +1 -1
- package/icon/icons/fab/fabFedex.d.ts +1 -1
- package/icon/icons/fab/fabFedex.js +1 -1
- package/icon/icons/fab/fabFirefox.d.ts +1 -1
- package/icon/icons/fab/fabFirefox.js +1 -1
- package/icon/icons/fab/fabGoogle.d.ts +1 -1
- package/icon/icons/fab/fabGoogle.js +1 -1
- package/icon/icons/fab/fabGoogleDrive.d.ts +1 -1
- package/icon/icons/fab/fabGoogleDrive.js +1 -1
- package/icon/icons/fab/fabLinkedinIn.d.ts +1 -1
- package/icon/icons/fab/fabLinkedinIn.js +1 -1
- package/icon/icons/fab/fabMedium.d.ts +1 -1
- package/icon/icons/fab/fabMedium.js +1 -1
- package/icon/icons/fab/fabOsi.d.ts +1 -1
- package/icon/icons/fab/fabOsi.js +1 -1
- package/icon/icons/fab/fabSlack.d.ts +1 -1
- package/icon/icons/fab/fabSlack.js +1 -1
- package/icon/icons/fab/fabTwitter.d.ts +1 -1
- package/icon/icons/fab/fabTwitter.js +1 -1
- package/icon/icons/fab/fabUps.d.ts +1 -1
- package/icon/icons/fab/fabUps.js +1 -1
- package/icon/icons/fal/falAddressBook.d.ts +1 -1
- package/icon/icons/fal/falAddressBook.js +1 -1
- package/icon/icons/fal/falAddressCard.d.ts +1 -1
- package/icon/icons/fal/falAddressCard.js +1 -1
- package/icon/icons/fal/falAnalytics.d.ts +1 -1
- package/icon/icons/fal/falAnalytics.js +1 -1
- package/icon/icons/fal/falAngleDoubleDown.d.ts +1 -1
- package/icon/icons/fal/falAngleDoubleDown.js +1 -1
- package/icon/icons/fal/falAngleDoubleLeft.d.ts +1 -1
- package/icon/icons/fal/falAngleDoubleLeft.js +1 -1
- package/icon/icons/fal/falAngleDoubleRight.d.ts +1 -1
- package/icon/icons/fal/falAngleDoubleRight.js +1 -1
- package/icon/icons/fal/falAngleDoubleUp.d.ts +1 -1
- package/icon/icons/fal/falAngleDoubleUp.js +1 -1
- package/icon/icons/fal/falAngleDown.d.ts +1 -1
- package/icon/icons/fal/falAngleDown.js +1 -1
- package/icon/icons/fal/falAngleLeft.d.ts +1 -1
- package/icon/icons/fal/falAngleLeft.js +1 -1
- package/icon/icons/fal/falAngleRight.d.ts +1 -1
- package/icon/icons/fal/falAngleRight.js +1 -1
- package/icon/icons/fal/falAngleUp.d.ts +1 -1
- package/icon/icons/fal/falAngleUp.js +1 -1
- package/icon/icons/fal/falArrowAltDown.d.ts +1 -1
- package/icon/icons/fal/falArrowAltDown.js +1 -1
- package/icon/icons/fal/falArrowAltLeft.d.ts +1 -1
- package/icon/icons/fal/falArrowAltLeft.js +1 -1
- package/icon/icons/fal/falArrowAltRight.d.ts +1 -1
- package/icon/icons/fal/falArrowAltRight.js +1 -1
- package/icon/icons/fal/falArrowAltUp.d.ts +1 -1
- package/icon/icons/fal/falArrowAltUp.js +1 -1
- package/icon/icons/fal/falArrowCircleDown.d.ts +1 -1
- package/icon/icons/fal/falArrowCircleDown.js +1 -1
- package/icon/icons/fal/falArrowCircleLeft.d.ts +1 -1
- package/icon/icons/fal/falArrowCircleLeft.js +1 -1
- package/icon/icons/fal/falArrowCircleRight.d.ts +1 -1
- package/icon/icons/fal/falArrowCircleRight.js +1 -1
- package/icon/icons/fal/falArrowCircleUp.d.ts +1 -1
- package/icon/icons/fal/falArrowCircleUp.js +1 -1
- package/icon/icons/fal/falArrowDown.d.ts +1 -1
- package/icon/icons/fal/falArrowDown.js +1 -1
- package/icon/icons/fal/falArrowFromBottom.d.ts +1 -1
- package/icon/icons/fal/falArrowFromBottom.js +1 -1
- package/icon/icons/fal/falArrowFromLeft.d.ts +1 -1
- package/icon/icons/fal/falArrowFromLeft.js +1 -1
- package/icon/icons/fal/falArrowFromRight.d.ts +1 -1
- package/icon/icons/fal/falArrowFromRight.js +1 -1
- package/icon/icons/fal/falArrowFromTop.d.ts +1 -1
- package/icon/icons/fal/falArrowFromTop.js +1 -1
- package/icon/icons/fal/falArrowLeft.d.ts +1 -1
- package/icon/icons/fal/falArrowLeft.js +1 -1
- package/icon/icons/fal/falArrowRight.d.ts +1 -1
- package/icon/icons/fal/falArrowRight.js +1 -1
- package/icon/icons/fal/falArrowToBottom.d.ts +1 -1
- package/icon/icons/fal/falArrowToBottom.js +1 -1
- package/icon/icons/fal/falArrowToLeft.d.ts +1 -1
- package/icon/icons/fal/falArrowToLeft.js +1 -1
- package/icon/icons/fal/falArrowToRight.d.ts +1 -1
- package/icon/icons/fal/falArrowToRight.js +1 -1
- package/icon/icons/fal/falArrowToTop.d.ts +1 -1
- package/icon/icons/fal/falArrowToTop.js +1 -1
- package/icon/icons/fal/falArrowUp.d.ts +1 -1
- package/icon/icons/fal/falArrowUp.js +1 -1
- package/icon/icons/fal/falArrows.d.ts +1 -1
- package/icon/icons/fal/falArrows.js +1 -1
- package/icon/icons/fal/falAward.d.ts +1 -1
- package/icon/icons/fal/falAward.js +1 -1
- package/icon/icons/fal/falBan.d.ts +1 -1
- package/icon/icons/fal/falBan.js +1 -1
- package/icon/icons/fal/falBell.d.ts +1 -1
- package/icon/icons/fal/falBell.js +1 -1
- package/icon/icons/fal/falBookOpen.d.ts +1 -1
- package/icon/icons/fal/falBookOpen.js +1 -1
- package/icon/icons/fal/falBroadcastTower.d.ts +1 -1
- package/icon/icons/fal/falBroadcastTower.js +1 -1
- package/icon/icons/fal/falBuilding.d.ts +1 -1
- package/icon/icons/fal/falBuilding.js +1 -1
- package/icon/icons/fal/falBullseye.d.ts +1 -1
- package/icon/icons/fal/falBullseye.js +1 -1
- package/icon/icons/fal/falCalendar.d.ts +1 -1
- package/icon/icons/fal/falCalendar.js +1 -1
- package/icon/icons/fal/falCalendarAlt.d.ts +1 -1
- package/icon/icons/fal/falCalendarAlt.js +1 -1
- package/icon/icons/fal/falCamera.d.ts +1 -1
- package/icon/icons/fal/falCamera.js +1 -1
- package/icon/icons/fal/falCaretDown.d.ts +1 -1
- package/icon/icons/fal/falCaretDown.js +1 -1
- package/icon/icons/fal/falCaretLeft.d.ts +1 -1
- package/icon/icons/fal/falCaretLeft.js +1 -1
- package/icon/icons/fal/falCaretRight.d.ts +1 -1
- package/icon/icons/fal/falCaretRight.js +1 -1
- package/icon/icons/fal/falCaretUp.d.ts +1 -1
- package/icon/icons/fal/falCaretUp.js +1 -1
- package/icon/icons/fal/falCauldron.d.ts +1 -1
- package/icon/icons/fal/falCauldron.js +1 -1
- package/icon/icons/fal/falChartArea.d.ts +1 -1
- package/icon/icons/fal/falChartArea.js +1 -1
- package/icon/icons/fal/falChartBar.d.ts +1 -1
- package/icon/icons/fal/falChartBar.js +1 -1
- package/icon/icons/fal/falChartLine.d.ts +1 -1
- package/icon/icons/fal/falChartLine.js +1 -1
- package/icon/icons/fal/falChartLineDown.d.ts +1 -1
- package/icon/icons/fal/falChartLineDown.js +1 -1
- package/icon/icons/fal/falChartNetwork.d.ts +1 -1
- package/icon/icons/fal/falChartNetwork.js +1 -1
- package/icon/icons/fal/falChartPie.d.ts +1 -1
- package/icon/icons/fal/falChartPie.js +1 -1
- package/icon/icons/fal/falChartPieAlt.d.ts +1 -1
- package/icon/icons/fal/falChartPieAlt.js +1 -1
- package/icon/icons/fal/falChartScatter.d.ts +1 -1
- package/icon/icons/fal/falChartScatter.js +1 -1
- package/icon/icons/fal/falCheck.d.ts +1 -1
- package/icon/icons/fal/falCheck.js +1 -1
- package/icon/icons/fal/falCheckCircle.d.ts +1 -1
- package/icon/icons/fal/falCheckCircle.js +1 -1
- package/icon/icons/fal/falCheckSquare.d.ts +1 -1
- package/icon/icons/fal/falCheckSquare.js +1 -1
- package/icon/icons/fal/falChevronCircleDown.d.ts +1 -1
- package/icon/icons/fal/falChevronCircleDown.js +1 -1
- package/icon/icons/fal/falChevronCircleLeft.d.ts +1 -1
- package/icon/icons/fal/falChevronCircleLeft.js +1 -1
- package/icon/icons/fal/falChevronCircleRight.d.ts +1 -1
- package/icon/icons/fal/falChevronCircleRight.js +1 -1
- package/icon/icons/fal/falChevronCircleUp.d.ts +1 -1
- package/icon/icons/fal/falChevronCircleUp.js +1 -1
- package/icon/icons/fal/falChevronDoubleDown.d.ts +1 -1
- package/icon/icons/fal/falChevronDoubleDown.js +1 -1
- package/icon/icons/fal/falChevronDoubleLeft.d.ts +1 -1
- package/icon/icons/fal/falChevronDoubleLeft.js +1 -1
- package/icon/icons/fal/falChevronDoubleRight.d.ts +1 -1
- package/icon/icons/fal/falChevronDoubleRight.js +1 -1
- package/icon/icons/fal/falChevronDoubleUp.d.ts +1 -1
- package/icon/icons/fal/falChevronDoubleUp.js +1 -1
- package/icon/icons/fal/falChevronDown.d.ts +1 -1
- package/icon/icons/fal/falChevronDown.js +1 -1
- package/icon/icons/fal/falChevronLeft.d.ts +1 -1
- package/icon/icons/fal/falChevronLeft.js +1 -1
- package/icon/icons/fal/falChevronRight.d.ts +1 -1
- package/icon/icons/fal/falChevronRight.js +1 -1
- package/icon/icons/fal/falChevronUp.d.ts +1 -1
- package/icon/icons/fal/falChevronUp.js +1 -1
- package/icon/icons/fal/falCircle.d.ts +1 -1
- package/icon/icons/fal/falCircle.js +1 -1
- package/icon/icons/fal/falCloud.d.ts +1 -1
- package/icon/icons/fal/falCloud.js +1 -1
- package/icon/icons/fal/falCloudShowersHeavy.d.ts +1 -1
- package/icon/icons/fal/falCloudShowersHeavy.js +1 -1
- package/icon/icons/fal/falCloudSnow.d.ts +1 -1
- package/icon/icons/fal/falCloudSnow.js +1 -1
- package/icon/icons/fal/falCloudSun.d.ts +1 -1
- package/icon/icons/fal/falCloudSun.js +1 -1
- package/icon/icons/fal/falCloudSunRain.d.ts +1 -1
- package/icon/icons/fal/falCloudSunRain.js +1 -1
- package/icon/icons/fal/falCloudUpload.d.ts +1 -1
- package/icon/icons/fal/falCloudUpload.js +1 -1
- package/icon/icons/fal/falCode.d.ts +1 -1
- package/icon/icons/fal/falCode.js +1 -1
- package/icon/icons/fal/falCog.d.ts +1 -1
- package/icon/icons/fal/falCog.js +1 -1
- package/icon/icons/fal/falCogs.d.ts +1 -1
- package/icon/icons/fal/falCogs.js +1 -1
- package/icon/icons/fal/falComment.d.ts +1 -1
- package/icon/icons/fal/falComment.js +1 -1
- package/icon/icons/fal/falCommentAlt.d.ts +1 -1
- package/icon/icons/fal/falCommentAlt.js +1 -1
- package/icon/icons/fal/falCompressAlt.d.ts +1 -1
- package/icon/icons/fal/falCompressAlt.js +1 -1
- package/icon/icons/fal/falCopy.d.ts +1 -1
- package/icon/icons/fal/falCopy.js +1 -1
- package/icon/icons/fal/falCreditCard.d.ts +1 -1
- package/icon/icons/fal/falCreditCard.js +1 -1
- package/icon/icons/fal/falDatabase.d.ts +1 -1
- package/icon/icons/fal/falDatabase.js +1 -1
- package/icon/icons/fal/falDotCircle.d.ts +1 -1
- package/icon/icons/fal/falDotCircle.js +1 -1
- package/icon/icons/fal/falDownload.d.ts +1 -1
- package/icon/icons/fal/falDownload.js +1 -1
- package/icon/icons/fal/falEdit.d.ts +1 -1
- package/icon/icons/fal/falEdit.js +1 -1
- package/icon/icons/fal/falEllipsisH.d.ts +1 -1
- package/icon/icons/fal/falEllipsisH.js +1 -1
- package/icon/icons/fal/falEllipsisV.d.ts +1 -1
- package/icon/icons/fal/falEllipsisV.js +1 -1
- package/icon/icons/fal/falEnvelope.d.ts +1 -1
- package/icon/icons/fal/falEnvelope.js +1 -1
- package/icon/icons/fal/falExchange.d.ts +1 -1
- package/icon/icons/fal/falExchange.js +1 -1
- package/icon/icons/fal/falExclamationCircle.d.ts +1 -1
- package/icon/icons/fal/falExclamationCircle.js +1 -1
- package/icon/icons/fal/falExclamationTriangle.d.ts +1 -1
- package/icon/icons/fal/falExclamationTriangle.js +1 -1
- package/icon/icons/fal/falExpandAlt.d.ts +1 -1
- package/icon/icons/fal/falExpandAlt.js +1 -1
- package/icon/icons/fal/falExternalLink.d.ts +1 -1
- package/icon/icons/fal/falExternalLink.js +1 -1
- package/icon/icons/fal/falEye.d.ts +1 -1
- package/icon/icons/fal/falEye.js +1 -1
- package/icon/icons/fal/falEyeSlash.d.ts +1 -1
- package/icon/icons/fal/falEyeSlash.js +1 -1
- package/icon/icons/fal/falFile.d.ts +1 -1
- package/icon/icons/fal/falFile.js +1 -1
- package/icon/icons/fal/falFileAlt.d.ts +1 -1
- package/icon/icons/fal/falFileAlt.js +1 -1
- package/icon/icons/fal/falFileArchive.d.ts +1 -1
- package/icon/icons/fal/falFileArchive.js +1 -1
- package/icon/icons/fal/falFileAudio.d.ts +1 -1
- package/icon/icons/fal/falFileAudio.js +1 -1
- package/icon/icons/fal/falFileCertificate.d.ts +1 -1
- package/icon/icons/fal/falFileCertificate.js +1 -1
- package/icon/icons/fal/falFileChartLine.d.ts +1 -1
- package/icon/icons/fal/falFileChartLine.js +1 -1
- package/icon/icons/fal/falFileChartPie.d.ts +1 -1
- package/icon/icons/fal/falFileChartPie.js +1 -1
- package/icon/icons/fal/falFileCheck.d.ts +1 -1
- package/icon/icons/fal/falFileCheck.js +1 -1
- package/icon/icons/fal/falFileCode.d.ts +1 -1
- package/icon/icons/fal/falFileCode.js +1 -1
- package/icon/icons/fal/falFileCsv.d.ts +1 -1
- package/icon/icons/fal/falFileCsv.js +1 -1
- package/icon/icons/fal/falFileEdit.d.ts +1 -1
- package/icon/icons/fal/falFileEdit.js +1 -1
- package/icon/icons/fal/falFileExcel.d.ts +1 -1
- package/icon/icons/fal/falFileExcel.js +1 -1
- package/icon/icons/fal/falFileImage.d.ts +1 -1
- package/icon/icons/fal/falFileImage.js +1 -1
- package/icon/icons/fal/falFilePdf.d.ts +1 -1
- package/icon/icons/fal/falFilePdf.js +1 -1
- package/icon/icons/fal/falFilePlus.d.ts +1 -1
- package/icon/icons/fal/falFilePlus.js +1 -1
- package/icon/icons/fal/falFilePowerpoint.d.ts +1 -1
- package/icon/icons/fal/falFilePowerpoint.js +1 -1
- package/icon/icons/fal/falFileSpreadsheet.d.ts +1 -1
- package/icon/icons/fal/falFileSpreadsheet.js +1 -1
- package/icon/icons/fal/falFileVideo.d.ts +1 -1
- package/icon/icons/fal/falFileVideo.js +1 -1
- package/icon/icons/fal/falFileWord.d.ts +1 -1
- package/icon/icons/fal/falFileWord.js +1 -1
- package/icon/icons/fal/falFilter.d.ts +1 -1
- package/icon/icons/fal/falFilter.js +1 -1
- package/icon/icons/fal/falFlag.d.ts +1 -1
- package/icon/icons/fal/falFlag.js +1 -1
- package/icon/icons/fal/falFolder.d.ts +1 -1
- package/icon/icons/fal/falFolder.js +1 -1
- package/icon/icons/fal/falFolderOpen.d.ts +1 -1
- package/icon/icons/fal/falFolderOpen.js +1 -1
- package/icon/icons/fal/falFolderPlus.d.ts +1 -1
- package/icon/icons/fal/falFolderPlus.js +1 -1
- package/icon/icons/fal/falFolders.d.ts +1 -1
- package/icon/icons/fal/falFolders.js +1 -1
- package/icon/icons/fal/falGlassesAlt.d.ts +1 -1
- package/icon/icons/fal/falGlassesAlt.js +1 -1
- package/icon/icons/fal/falGlobe.d.ts +1 -1
- package/icon/icons/fal/falGlobe.js +1 -1
- package/icon/icons/fal/falHome.d.ts +1 -1
- package/icon/icons/fal/falHome.js +1 -1
- package/icon/icons/fal/falHourglass.d.ts +1 -1
- package/icon/icons/fal/falHourglass.js +1 -1
- package/icon/icons/fal/falImage.d.ts +1 -1
- package/icon/icons/fal/falImage.js +1 -1
- package/icon/icons/fal/falInfoCircle.d.ts +1 -1
- package/icon/icons/fal/falInfoCircle.js +1 -1
- package/icon/icons/fal/falKey.d.ts +1 -1
- package/icon/icons/fal/falKey.js +1 -1
- package/icon/icons/fal/falLayerPlus.d.ts +1 -1
- package/icon/icons/fal/falLayerPlus.js +1 -1
- package/icon/icons/fal/falLink.d.ts +1 -1
- package/icon/icons/fal/falLink.js +1 -1
- package/icon/icons/fal/falList.d.ts +1 -1
- package/icon/icons/fal/falList.js +1 -1
- package/icon/icons/fal/falLockAlt.d.ts +1 -1
- package/icon/icons/fal/falLockAlt.js +1 -1
- package/icon/icons/fal/falLongArrowDown.d.ts +1 -1
- package/icon/icons/fal/falLongArrowDown.js +1 -1
- package/icon/icons/fal/falLongArrowLeft.d.ts +1 -1
- package/icon/icons/fal/falLongArrowLeft.js +1 -1
- package/icon/icons/fal/falLongArrowRight.d.ts +1 -1
- package/icon/icons/fal/falLongArrowRight.js +1 -1
- package/icon/icons/fal/falLongArrowUp.d.ts +1 -1
- package/icon/icons/fal/falLongArrowUp.js +1 -1
- package/icon/icons/fal/falMap.d.ts +1 -1
- package/icon/icons/fal/falMap.js +1 -1
- package/icon/icons/fal/falMapMarked.d.ts +1 -1
- package/icon/icons/fal/falMapMarked.js +1 -1
- package/icon/icons/fal/falMapMarkedAlt.d.ts +1 -1
- package/icon/icons/fal/falMapMarkedAlt.js +1 -1
- package/icon/icons/fal/falMapMarker.d.ts +1 -1
- package/icon/icons/fal/falMapMarker.js +1 -1
- package/icon/icons/fal/falMapMarkerAlt.d.ts +1 -1
- package/icon/icons/fal/falMapMarkerAlt.js +1 -1
- package/icon/icons/fal/falMapMarkerAltSlash.d.ts +1 -1
- package/icon/icons/fal/falMapMarkerAltSlash.js +1 -1
- package/icon/icons/fal/falMapMarkerCheck.d.ts +1 -1
- package/icon/icons/fal/falMapMarkerCheck.js +1 -1
- package/icon/icons/fal/falMapMarkerExclamation.d.ts +1 -1
- package/icon/icons/fal/falMapMarkerExclamation.js +1 -1
- package/icon/icons/fal/falMinus.d.ts +1 -1
- package/icon/icons/fal/falMinus.js +1 -1
- package/icon/icons/fal/falPause.d.ts +1 -1
- package/icon/icons/fal/falPause.js +1 -1
- package/icon/icons/fal/falPauseCircle.d.ts +1 -1
- package/icon/icons/fal/falPauseCircle.js +1 -1
- package/icon/icons/fal/falPen.d.ts +1 -1
- package/icon/icons/fal/falPen.js +1 -1
- package/icon/icons/fal/falPlay.d.ts +1 -1
- package/icon/icons/fal/falPlay.js +1 -1
- package/icon/icons/fal/falPlayCircle.d.ts +1 -1
- package/icon/icons/fal/falPlayCircle.js +1 -1
- package/icon/icons/fal/falPlug.d.ts +1 -1
- package/icon/icons/fal/falPlug.js +1 -1
- package/icon/icons/fal/falPlus.d.ts +1 -1
- package/icon/icons/fal/falPlus.js +1 -1
- package/icon/icons/fal/falPlusCircle.d.ts +1 -1
- package/icon/icons/fal/falPlusCircle.js +1 -1
- package/icon/icons/fal/falPlusSquare.d.ts +1 -1
- package/icon/icons/fal/falPlusSquare.js +1 -1
- package/icon/icons/fal/falPrint.d.ts +1 -1
- package/icon/icons/fal/falPrint.js +1 -1
- package/icon/icons/fal/falPuzzlePiece.d.ts +1 -1
- package/icon/icons/fal/falPuzzlePiece.js +1 -1
- package/icon/icons/fal/falReceipt.d.ts +1 -1
- package/icon/icons/fal/falReceipt.js +1 -1
- package/icon/icons/fal/falRedo.d.ts +1 -1
- package/icon/icons/fal/falRedo.js +1 -1
- package/icon/icons/fal/falSave.d.ts +1 -1
- package/icon/icons/fal/falSave.js +1 -1
- package/icon/icons/fal/falSearch.d.ts +1 -1
- package/icon/icons/fal/falSearch.js +1 -1
- package/icon/icons/fal/falSearchPlus.d.ts +1 -1
- package/icon/icons/fal/falSearchPlus.js +1 -1
- package/icon/icons/fal/falServer.d.ts +1 -1
- package/icon/icons/fal/falServer.js +1 -1
- package/icon/icons/fal/falShare.d.ts +1 -1
- package/icon/icons/fal/falShare.js +1 -1
- package/icon/icons/fal/falShareAll.d.ts +1 -1
- package/icon/icons/fal/falShareAll.js +1 -1
- package/icon/icons/fal/falShareAlt.d.ts +1 -1
- package/icon/icons/fal/falShareAlt.js +1 -1
- package/icon/icons/fal/falShieldAlt.d.ts +1 -1
- package/icon/icons/fal/falShieldAlt.js +1 -1
- package/icon/icons/fal/falShieldCheck.d.ts +1 -1
- package/icon/icons/fal/falShieldCheck.js +1 -1
- package/icon/icons/fal/falShip.d.ts +1 -1
- package/icon/icons/fal/falShip.js +1 -1
- package/icon/icons/fal/falShoppingBasket.d.ts +1 -1
- package/icon/icons/fal/falShoppingBasket.js +1 -1
- package/icon/icons/fal/falSignInAlt.d.ts +1 -1
- package/icon/icons/fal/falSignInAlt.js +1 -1
- package/icon/icons/fal/falSignOut.d.ts +1 -1
- package/icon/icons/fal/falSignOut.js +1 -1
- package/icon/icons/fal/falSignOutAlt.d.ts +1 -1
- package/icon/icons/fal/falSignOutAlt.js +1 -1
- package/icon/icons/fal/falSlidersV.d.ts +1 -1
- package/icon/icons/fal/falSlidersV.js +1 -1
- package/icon/icons/fal/falSnowBlowing.d.ts +1 -1
- package/icon/icons/fal/falSnowBlowing.js +1 -1
- package/icon/icons/fal/falSnowflake.d.ts +1 -1
- package/icon/icons/fal/falSnowflake.js +1 -1
- package/icon/icons/fal/falSolarPanel.d.ts +1 -1
- package/icon/icons/fal/falSolarPanel.js +1 -1
- package/icon/icons/fal/falSort.d.ts +1 -1
- package/icon/icons/fal/falSort.js +1 -1
- package/icon/icons/fal/falSpinner.d.ts +1 -1
- package/icon/icons/fal/falSpinner.js +1 -1
- package/icon/icons/fal/falSquare.d.ts +1 -1
- package/icon/icons/fal/falSquare.js +1 -1
- package/icon/icons/fal/falStepForward.d.ts +1 -1
- package/icon/icons/fal/falStepForward.js +1 -1
- package/icon/icons/fal/falStop.d.ts +1 -1
- package/icon/icons/fal/falStop.js +1 -1
- package/icon/icons/fal/falStopCircle.d.ts +1 -1
- package/icon/icons/fal/falStopCircle.js +1 -1
- package/icon/icons/fal/falStopwatch.d.ts +1 -1
- package/icon/icons/fal/falStopwatch.js +1 -1
- package/icon/icons/fal/falSuitcase.d.ts +1 -1
- package/icon/icons/fal/falSuitcase.js +1 -1
- package/icon/icons/fal/falSun.d.ts +1 -1
- package/icon/icons/fal/falSun.js +1 -1
- package/icon/icons/fal/falSync.d.ts +1 -1
- package/icon/icons/fal/falSync.js +1 -1
- package/icon/icons/fal/falTachometer.d.ts +1 -1
- package/icon/icons/fal/falTachometer.js +1 -1
- package/icon/icons/fal/falTemperatureHigh.d.ts +1 -1
- package/icon/icons/fal/falTemperatureHigh.js +1 -1
- package/icon/icons/fal/falTh.d.ts +1 -1
- package/icon/icons/fal/falTh.js +1 -1
- package/icon/icons/fal/falThLarge.d.ts +1 -1
- package/icon/icons/fal/falThLarge.js +1 -1
- package/icon/icons/fal/falThList.d.ts +1 -1
- package/icon/icons/fal/falThList.js +1 -1
- package/icon/icons/fal/falTimes.d.ts +1 -1
- package/icon/icons/fal/falTimes.js +1 -1
- package/icon/icons/fal/falTimesCircle.d.ts +1 -1
- package/icon/icons/fal/falTimesCircle.js +1 -1
- package/icon/icons/fal/falToggleOff.d.ts +1 -1
- package/icon/icons/fal/falToggleOff.js +1 -1
- package/icon/icons/fal/falToggleOn.d.ts +1 -1
- package/icon/icons/fal/falToggleOn.js +1 -1
- package/icon/icons/fal/falTrashAlt.d.ts +1 -1
- package/icon/icons/fal/falTrashAlt.js +1 -1
- package/icon/icons/fal/falUnlockAlt.d.ts +1 -1
- package/icon/icons/fal/falUnlockAlt.js +1 -1
- package/icon/icons/fal/falUser.d.ts +1 -1
- package/icon/icons/fal/falUser.js +1 -1
- package/icon/icons/fal/falUserChart.d.ts +1 -1
- package/icon/icons/fal/falUserChart.js +1 -1
- package/icon/icons/fal/falUserCircle.d.ts +1 -1
- package/icon/icons/fal/falUserCircle.js +1 -1
- package/icon/icons/fal/falUserCog.d.ts +1 -1
- package/icon/icons/fal/falUserCog.js +1 -1
- package/icon/icons/fal/falUserEdit.d.ts +1 -1
- package/icon/icons/fal/falUserEdit.js +1 -1
- package/icon/icons/fal/falUserFriends.d.ts +1 -1
- package/icon/icons/fal/falUserFriends.js +1 -1
- package/icon/icons/fal/falUserPlus.d.ts +1 -1
- package/icon/icons/fal/falUserPlus.js +1 -1
- package/icon/icons/fal/falUserShield.d.ts +1 -1
- package/icon/icons/fal/falUserShield.js +1 -1
- package/icon/icons/fal/falUserTimes.d.ts +1 -1
- package/icon/icons/fal/falUserTimes.js +1 -1
- package/icon/icons/fal/falUsers.d.ts +1 -1
- package/icon/icons/fal/falUsers.js +1 -1
- package/icon/icons/fal/falUsersClass.d.ts +1 -1
- package/icon/icons/fal/falUsersClass.js +1 -1
- package/icon/icons/fal/falWater.d.ts +1 -1
- package/icon/icons/fal/falWater.js +1 -1
- package/icon/icons/fal/falWind.d.ts +1 -1
- package/icon/icons/fal/falWind.js +1 -1
- package/icon/icons/fal/falWindTurbine.d.ts +1 -1
- package/icon/icons/fal/falWindTurbine.js +1 -1
- package/icon/icons/fal/falWrench.d.ts +1 -1
- package/icon/icons/fal/falWrench.js +1 -1
- package/icon/icons/fas/fasCaretDown.d.ts +1 -1
- package/icon/icons/fas/fasCaretDown.js +1 -1
- package/icon/icons/fas/fasCaretLeft.d.ts +1 -1
- package/icon/icons/fas/fasCaretLeft.js +1 -1
- package/icon/icons/fas/fasCaretRight.d.ts +1 -1
- package/icon/icons/fas/fasCaretRight.js +1 -1
- package/icon/icons/fas/fasCaretUp.d.ts +1 -1
- package/icon/icons/fas/fasCaretUp.js +1 -1
- package/icon/icons/fas/fasDiamond.d.ts +1 -1
- package/icon/icons/fas/fasDiamond.js +1 -1
- package/icon/icons/fas/fasFolder.d.ts +1 -1
- package/icon/icons/fas/fasFolder.js +1 -1
- package/icon/icons/fas/fasMapMarkerAlt.d.ts +1 -1
- package/icon/icons/fas/fasMapMarkerAlt.js +1 -1
- package/icon/icons/fas/fasMapMarkerExclamation.d.ts +1 -1
- package/icon/icons/fas/fasMapMarkerExclamation.js +1 -1
- package/icon/icons/fas/fasQuoteLeft.d.ts +1 -1
- package/icon/icons/fas/fasQuoteLeft.js +1 -1
- package/icon/icons/fas/fasQuoteRight.d.ts +1 -1
- package/icon/icons/fas/fasQuoteRight.js +1 -1
- package/icon/icons/fas/fasSolarPanel.d.ts +1 -1
- package/icon/icons/fas/fasSolarPanel.js +1 -1
- package/icon/icons/fas/fasSort.d.ts +1 -1
- package/icon/icons/fas/fasSort.js +1 -1
- package/icon/icons/fas/fasStar.d.ts +1 -1
- package/icon/icons/fas/fasStar.js +1 -1
- package/icon/icons/fas/fasWindTurbine.d.ts +1 -1
- package/icon/icons/fas/fasWindTurbine.js +1 -1
- package/icon/icons/types.d.ts +1 -13
- package/index.d.ts +5 -1
- package/index.js +5 -1
- package/input/consts.d.ts +2 -18
- package/input/consts.js +2 -2
- package/input/input.d.ts +7 -6
- package/input/input.js +15 -17
- package/input/input.types.d.ts +20 -15
- package/input/theme.d.ts +5 -0
- package/input/theme.js +10 -5
- package/label/label.d.ts +4 -4
- package/label/label.js +3 -6
- package/label/label.types.d.ts +2 -2
- package/label/theme.js +11 -11
- package/link/link.d.ts +4 -4
- package/link/link.js +3 -5
- package/link/link.types.d.ts +8 -9
- package/link/theme.d.ts +27 -3
- package/link/theme.js +30 -3
- package/list/context.js +1 -1
- package/list/index.d.ts +1 -0
- package/list/index.js +1 -0
- package/list/list.d.ts +8 -4
- package/list/list.js +6 -6
- package/list/list.types.d.ts +2 -2
- package/list/listIcon.d.ts +3 -0
- package/list/listIcon.js +30 -0
- package/list/listItem.d.ts +2 -4
- package/list/listItem.js +13 -13
- package/list/listItem.types.d.ts +6 -2
- package/list/theme.d.ts +37 -3
- package/list/theme.js +43 -18
- package/p/p.d.ts +4 -4
- package/p/p.js +3 -5
- package/p/p.types.d.ts +8 -11
- package/package.json +1 -1
- package/radio/context.d.ts +4 -0
- package/radio/context.js +23 -0
- package/radio/index.d.ts +6 -0
- package/radio/index.js +23 -0
- package/radio/radio.d.ts +6 -0
- package/radio/radio.js +68 -0
- package/radio/radio.types.d.ts +25 -0
- package/radio/radio.types.js +2 -0
- package/radio/radioGroup.d.ts +4 -0
- package/radio/radioGroup.js +99 -0
- package/radio/radioGroup.types.d.ts +15 -0
- package/radio/radioGroup.types.js +2 -0
- package/radio/theme.d.ts +48 -0
- package/radio/theme.js +56 -0
- package/skeleton/skeleton.d.ts +2 -4
- package/skeleton/skeleton.js +4 -6
- package/skeleton/skeleton.types.d.ts +3 -4
- package/spinner/consts.d.ts +34 -0
- package/spinner/consts.js +21 -0
- package/spinner/index.d.ts +3 -0
- package/spinner/index.js +20 -0
- package/spinner/spinner.d.ts +4 -0
- package/spinner/spinner.js +60 -0
- package/spinner/spinner.types.d.ts +15 -0
- package/spinner/spinner.types.js +2 -0
- package/spinner/theme.d.ts +68 -0
- package/spinner/theme.js +74 -0
- package/styles/animations.d.ts +10 -0
- package/styles/animations.js +9 -0
- package/styles/colors.d.ts +171 -0
- package/styles/colors.js +96 -0
- package/styles/durations.d.ts +7 -0
- package/styles/durations.js +8 -0
- package/styles/fontFaces.d.ts +2 -0
- package/styles/fontFaces.js +4 -0
- package/styles/fontSizes.d.ts +7 -0
- package/styles/fontSizes.js +8 -0
- package/styles/fontWeights.d.ts +7 -0
- package/styles/fontWeights.js +8 -0
- package/styles/fonts.d.ts +4 -2
- package/styles/fonts.js +3 -3
- package/styles/index.d.ts +10 -0
- package/styles/index.js +20 -1
- package/styles/radii.d.ts +8 -0
- package/styles/radii.js +9 -0
- package/styles/screens.d.ts +8 -0
- package/styles/screens.js +9 -0
- package/styles/shadows.d.ts +9 -0
- package/styles/shadows.js +11 -0
- package/svg/helpers.d.ts +1 -1
- package/svg/helpers.js +1 -1
- package/svg/svg.d.ts +3 -5
- package/svg/svg.js +11 -8
- package/svg/svg.types.d.ts +10 -5
- package/switch/context.d.ts +4 -0
- package/switch/context.js +23 -0
- package/switch/index.d.ts +7 -0
- package/switch/index.js +24 -0
- package/switch/switch.d.ts +10 -0
- package/switch/switch.js +133 -0
- package/switch/switch.types.d.ts +22 -0
- package/switch/switch.types.js +2 -0
- package/switch/switchButton.d.ts +7 -0
- package/switch/switchButton.js +134 -0
- package/switch/switchButton.types.d.ts +24 -0
- package/switch/switchButton.types.js +2 -0
- package/switch/switchLabel.d.ts +3 -0
- package/switch/switchLabel.js +30 -0
- package/switch/theme.d.ts +87 -0
- package/switch/theme.js +113 -0
- package/system/colors.d.ts +3 -2
- package/system/transitions.d.ts +2 -1
- package/system/typography.d.ts +14 -9
- package/t/t.d.ts +4 -4
- package/t/t.js +7 -7
- package/t/t.types.d.ts +10 -10
- package/textarea/textarea.d.ts +4 -4
- package/textarea/textarea.js +4 -8
- package/textarea/textarea.types.d.ts +1 -2
- package/textarea/theme.js +4 -4
- package/theme/components.d.ts +327 -20
- package/theme/components.js +24 -18
- package/theme/defaultTheme.d.ts +344 -35
- package/theme/foundations.d.ts +144 -0
- package/theme/foundations.js +20 -0
- package/tile/tile.d.ts +1 -1
- package/tile/tile.js +2 -2
- package/tile/tile.types.d.ts +2 -2
- package/utils/object.d.ts +1 -1
package/alert/alert.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AlertProps } from './alert.types';
|
|
2
|
+
import AlertButton from './alertButton';
|
|
3
|
+
import AlertIcon from './alertIcon';
|
|
4
|
+
import AlertMessage from './alertMessage';
|
|
5
|
+
import AlertText from './alertText';
|
|
6
|
+
import AlertTitle from './alertTitle';
|
|
7
|
+
import { VuiComponent } from '../core';
|
|
8
|
+
export declare const Alert: VuiComponent<"div", AlertProps> & {
|
|
9
|
+
Button: typeof AlertButton;
|
|
10
|
+
Icon: typeof AlertIcon;
|
|
11
|
+
Message: typeof AlertMessage;
|
|
12
|
+
Text: typeof AlertText;
|
|
13
|
+
Title: typeof AlertTitle;
|
|
14
|
+
};
|
|
15
|
+
export default Alert;
|
package/alert/alert.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
33
|
+
var t = {};
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
37
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
39
|
+
t[p[i]] = s[p[i]];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
};
|
|
43
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
45
|
+
};
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.Alert = void 0;
|
|
48
|
+
var react_1 = __importStar(require("react"));
|
|
49
|
+
var alertButton_1 = __importDefault(require("./alertButton"));
|
|
50
|
+
var alertIcon_1 = __importDefault(require("./alertIcon"));
|
|
51
|
+
var alertMessage_1 = __importDefault(require("./alertMessage"));
|
|
52
|
+
var alertText_1 = __importDefault(require("./alertText"));
|
|
53
|
+
var alertTitle_1 = __importDefault(require("./alertTitle"));
|
|
54
|
+
var consts_1 = require("./consts");
|
|
55
|
+
var context_1 = require("./context");
|
|
56
|
+
var box_1 = __importDefault(require("../box"));
|
|
57
|
+
var core_1 = require("../core");
|
|
58
|
+
var utils_1 = require("../utils");
|
|
59
|
+
exports.Alert = core_1.forwardRef(function (props, ref) {
|
|
60
|
+
var _a;
|
|
61
|
+
var action = props.action, children = props.children, className = props.className, _b = props.colorScheme, colorSchemeProp = _b === void 0 ? 'blue' : _b, iconProp = props.icon, isVertical = props.isVertical, onClose = props.onClose, size = props.size, status = props.status, statusMapping = props.statusMapping, text = props.text, title = props.title, variant = props.variant, rest = __rest(props, ["action", "children", "className", "colorScheme", "icon", "isVertical", "onClose", "size", "status", "statusMapping", "text", "title", "variant"]);
|
|
62
|
+
var statuses = __assign(__assign({}, consts_1.alertStatusMapping), statusMapping);
|
|
63
|
+
var _c = (_a = (status && statuses[status])) !== null && _a !== void 0 ? _a : {}, _d = _c.colorScheme, colorScheme = _d === void 0 ? colorSchemeProp : _d, _e = _c.icon, icon = _e === void 0 ? iconProp : _e;
|
|
64
|
+
var styles = core_1.useStyleConfig('Alert', __assign({ colorScheme: colorScheme }, props));
|
|
65
|
+
var context = react_1.useMemo(function () { return utils_1.filterUndefined({ colorScheme: colorScheme, isVertical: isVertical, size: size, status: status, variant: variant }); }, [
|
|
66
|
+
colorScheme,
|
|
67
|
+
isVertical,
|
|
68
|
+
size,
|
|
69
|
+
status,
|
|
70
|
+
variant
|
|
71
|
+
]);
|
|
72
|
+
return (react_1.default.createElement(context_1.AlertProvider, { value: context },
|
|
73
|
+
react_1.default.createElement(box_1.default, __assign({ borderRadius: "md", className: utils_1.cs('vui-alert', className), px: 1.5, py: 1, ref: ref, w: "fit-content" }, styles.container, rest), children ? (children) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
74
|
+
typeof icon === 'string' ? (react_1.default.createElement(alertIcon_1.default, { animation: status === 'loading' ? 'spin' : undefined, icon: icon })) : (icon),
|
|
75
|
+
react_1.default.createElement(alertMessage_1.default, null,
|
|
76
|
+
title && react_1.default.createElement(alertTitle_1.default, null, title),
|
|
77
|
+
text && react_1.default.createElement(alertText_1.default, null, text)),
|
|
78
|
+
action,
|
|
79
|
+
onClose && react_1.default.createElement(alertButton_1.default, { icon: "falTimes", onClick: onClose }))))));
|
|
80
|
+
});
|
|
81
|
+
exports.Alert.displayName = 'Alert';
|
|
82
|
+
exports.Alert.Button = alertButton_1.default;
|
|
83
|
+
exports.Alert.Icon = alertIcon_1.default;
|
|
84
|
+
exports.Alert.Message = alertMessage_1.default;
|
|
85
|
+
exports.Alert.Text = alertText_1.default;
|
|
86
|
+
exports.Alert.Title = alertTitle_1.default;
|
|
87
|
+
exports.default = exports.Alert;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '../box';
|
|
3
|
+
import { ThemingProps } from '../theme';
|
|
4
|
+
export interface AlertProps extends Omit<BoxProps, 'size' | 'variant'>, ThemingProps<'Alert'> {
|
|
5
|
+
action?: React.ReactElement;
|
|
6
|
+
colorScheme?: 'blue' | 'green' | 'grey' | 'prussian' | 'red' | 'yellow';
|
|
7
|
+
icon?: React.ReactElement | string;
|
|
8
|
+
isVertical?: boolean;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
status?: AlertStatus;
|
|
11
|
+
statusMapping?: AlertStatusMapping;
|
|
12
|
+
text?: React.ReactElement | string;
|
|
13
|
+
title?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare type AlertStatus = 'error' | 'info' | 'loading' | 'success' | 'warning';
|
|
16
|
+
export declare type AlertStatusMapping = Record<string, {
|
|
17
|
+
colorScheme?: AlertProps['colorScheme'];
|
|
18
|
+
icon: AlertProps['icon'];
|
|
19
|
+
}>;
|
|
@@ -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.AlertButton = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var context_1 = require("./context");
|
|
20
|
+
var core_1 = require("../core");
|
|
21
|
+
var button_1 = __importDefault(require("../button"));
|
|
22
|
+
exports.AlertButton = core_1.forwardRef(function (props, ref) {
|
|
23
|
+
var _a;
|
|
24
|
+
var alertProps = (_a = context_1.useAlert()) !== null && _a !== void 0 ? _a : {};
|
|
25
|
+
var mergedProps = __assign(__assign({}, alertProps), props);
|
|
26
|
+
var styles = core_1.useStyleConfig('Alert', mergedProps);
|
|
27
|
+
return (react_1.default.createElement(button_1.default, __assign({ className: "vui-alertButton", colorScheme: mergedProps.colorScheme, ml: 0.5, mr: -0.5, ref: ref, size: "sm" }, styles.button, props)));
|
|
28
|
+
});
|
|
29
|
+
exports.AlertButton.displayName = 'AlertButton';
|
|
30
|
+
exports.default = exports.AlertButton;
|
|
@@ -0,0 +1,33 @@
|
|
|
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.AlertIcon = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var consts_1 = require("./consts");
|
|
20
|
+
var context_1 = require("./context");
|
|
21
|
+
var core_1 = require("../core");
|
|
22
|
+
var icon_1 = __importDefault(require("../icon"));
|
|
23
|
+
exports.AlertIcon = core_1.forwardRef(function (props, ref) {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
var alertProps = (_a = context_1.useAlert()) !== null && _a !== void 0 ? _a : {};
|
|
26
|
+
var mergedProps = __assign(__assign({}, alertProps), props);
|
|
27
|
+
var styles = core_1.useStyleConfig('Alert', mergedProps);
|
|
28
|
+
var status = mergedProps.status;
|
|
29
|
+
var icon = ((_b = (status && consts_1.alertStatusMapping[status])) !== null && _b !== void 0 ? _b : {}).icon;
|
|
30
|
+
return (react_1.default.createElement(icon_1.default, __assign({ animation: status === 'loading' ? 'spin' : undefined, className: "vui-alertIcon", icon: icon, mr: 1, my: 0.5, ref: ref, size: "md" }, styles.icon, props)));
|
|
31
|
+
});
|
|
32
|
+
exports.AlertIcon.displayName = 'AlertIcon';
|
|
33
|
+
exports.default = exports.AlertIcon;
|
|
@@ -0,0 +1,31 @@
|
|
|
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.AlertMessage = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var context_1 = require("./context");
|
|
20
|
+
var core_1 = require("../core");
|
|
21
|
+
var box_1 = __importDefault(require("../box"));
|
|
22
|
+
exports.AlertMessage = core_1.forwardRef(function (props, ref) {
|
|
23
|
+
var _a;
|
|
24
|
+
var alertProps = (_a = context_1.useAlert()) !== null && _a !== void 0 ? _a : {};
|
|
25
|
+
var mergedProps = __assign(__assign({}, alertProps), props);
|
|
26
|
+
var styles = core_1.useStyleConfig('Alert', mergedProps);
|
|
27
|
+
var isVertical = mergedProps.isVertical;
|
|
28
|
+
return (react_1.default.createElement(box_1.default, __assign({ className: "vui-alertMessage", column: isVertical, flex: "1", minW: 0, py: 0.5, ref: ref }, styles.message, props)));
|
|
29
|
+
});
|
|
30
|
+
exports.AlertMessage.displayName = 'AlertMessage';
|
|
31
|
+
exports.default = exports.AlertMessage;
|
|
@@ -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.AlertText = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var context_1 = require("./context");
|
|
20
|
+
var core_1 = require("../core");
|
|
21
|
+
var p_1 = __importDefault(require("../p"));
|
|
22
|
+
exports.AlertText = core_1.forwardRef(function (props, ref) {
|
|
23
|
+
var _a;
|
|
24
|
+
var alertProps = (_a = context_1.useAlert()) !== null && _a !== void 0 ? _a : {};
|
|
25
|
+
var mergedProps = __assign(__assign({}, alertProps), props);
|
|
26
|
+
var styles = core_1.useStyleConfig('Alert', mergedProps);
|
|
27
|
+
return react_1.default.createElement(p_1.default, __assign({ className: "vui-alertText", ref: ref }, styles.text, props));
|
|
28
|
+
});
|
|
29
|
+
exports.AlertText.displayName = 'AlertText';
|
|
30
|
+
exports.default = exports.AlertText;
|
|
@@ -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.AlertTitle = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var context_1 = require("./context");
|
|
20
|
+
var core_1 = require("../core");
|
|
21
|
+
var heading_1 = __importDefault(require("../heading"));
|
|
22
|
+
exports.AlertTitle = core_1.forwardRef(function (props, ref) {
|
|
23
|
+
var _a;
|
|
24
|
+
var alertProps = (_a = context_1.useAlert()) !== null && _a !== void 0 ? _a : {};
|
|
25
|
+
var mergedProps = __assign(__assign({}, alertProps), props);
|
|
26
|
+
var styles = core_1.useStyleConfig('Alert', mergedProps);
|
|
27
|
+
return react_1.default.createElement(heading_1.default, __assign({ className: "vui-alertTitle", lineHeight: 1.5, mr: 1, ref: ref, size: "h6" }, styles.title, props));
|
|
28
|
+
});
|
|
29
|
+
exports.AlertTitle.displayName = 'AlertTitle';
|
|
30
|
+
exports.default = exports.AlertTitle;
|
package/alert/consts.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.alertStatusMapping = void 0;
|
|
4
|
+
exports.alertStatusMapping = {
|
|
5
|
+
error: {
|
|
6
|
+
colorScheme: 'red',
|
|
7
|
+
icon: 'falTimesCircle'
|
|
8
|
+
},
|
|
9
|
+
info: {
|
|
10
|
+
colorScheme: 'blue',
|
|
11
|
+
icon: 'falInfoCircle'
|
|
12
|
+
},
|
|
13
|
+
loading: {
|
|
14
|
+
colorScheme: 'blue',
|
|
15
|
+
icon: 'falSpinner'
|
|
16
|
+
},
|
|
17
|
+
success: {
|
|
18
|
+
colorScheme: 'green',
|
|
19
|
+
icon: 'falCheckCircle'
|
|
20
|
+
},
|
|
21
|
+
warning: {
|
|
22
|
+
colorScheme: 'yellow',
|
|
23
|
+
icon: 'falExclamationCircle'
|
|
24
|
+
}
|
|
25
|
+
};
|
package/alert/context.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
3
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4
|
+
if (!m) return o;
|
|
5
|
+
var i = m.call(o), r, ar = [], e;
|
|
6
|
+
try {
|
|
7
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8
|
+
}
|
|
9
|
+
catch (error) { e = { error: error }; }
|
|
10
|
+
finally {
|
|
11
|
+
try {
|
|
12
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13
|
+
}
|
|
14
|
+
finally { if (e) throw e.error; }
|
|
15
|
+
}
|
|
16
|
+
return ar;
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.useAlert = exports.AlertProvider = void 0;
|
|
20
|
+
var core_1 = require("../core");
|
|
21
|
+
var _a = __read(core_1.createContext({ isOptional: true }), 2), AlertProvider = _a[0], useAlert = _a[1];
|
|
22
|
+
exports.AlertProvider = AlertProvider;
|
|
23
|
+
exports.useAlert = useAlert;
|
package/alert/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './alert';
|
|
2
|
+
export * from './alert.types';
|
|
3
|
+
export * from './alertButton';
|
|
4
|
+
export * from './alertIcon';
|
|
5
|
+
export * from './alertMessage';
|
|
6
|
+
export * from './alertText';
|
|
7
|
+
export * from './alertTitle';
|
|
8
|
+
export * from './context';
|
|
9
|
+
export { default } from './alert';
|
package/alert/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.default = void 0;
|
|
17
|
+
__exportStar(require("./alert"), exports);
|
|
18
|
+
__exportStar(require("./alert.types"), exports);
|
|
19
|
+
__exportStar(require("./alertButton"), exports);
|
|
20
|
+
__exportStar(require("./alertIcon"), exports);
|
|
21
|
+
__exportStar(require("./alertMessage"), exports);
|
|
22
|
+
__exportStar(require("./alertText"), exports);
|
|
23
|
+
__exportStar(require("./alertTitle"), exports);
|
|
24
|
+
__exportStar(require("./context"), exports);
|
|
25
|
+
var alert_1 = require("./alert");
|
|
26
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(alert_1).default; } });
|
package/alert/theme.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Dict } from '../utils';
|
|
2
|
+
declare function variantSolid(props: Dict): {
|
|
3
|
+
container: {
|
|
4
|
+
bg: string;
|
|
5
|
+
color: string;
|
|
6
|
+
};
|
|
7
|
+
button: {
|
|
8
|
+
bg: string;
|
|
9
|
+
hoverBg: string;
|
|
10
|
+
};
|
|
11
|
+
icon: {};
|
|
12
|
+
message: {};
|
|
13
|
+
text: {};
|
|
14
|
+
title: {};
|
|
15
|
+
};
|
|
16
|
+
declare function variantSubtle(props: Dict): {
|
|
17
|
+
container: {
|
|
18
|
+
bg: string;
|
|
19
|
+
borderColor: string;
|
|
20
|
+
borderWidth: number;
|
|
21
|
+
color: string;
|
|
22
|
+
};
|
|
23
|
+
button: {
|
|
24
|
+
color: string;
|
|
25
|
+
hoverBg: string;
|
|
26
|
+
activeBg: string;
|
|
27
|
+
variant: string;
|
|
28
|
+
};
|
|
29
|
+
icon: {};
|
|
30
|
+
message: {};
|
|
31
|
+
text: {};
|
|
32
|
+
title: {};
|
|
33
|
+
};
|
|
34
|
+
declare const _default: {
|
|
35
|
+
defaultProps: {
|
|
36
|
+
colorScheme: string;
|
|
37
|
+
variant: string;
|
|
38
|
+
};
|
|
39
|
+
parts: string[];
|
|
40
|
+
sizes: {};
|
|
41
|
+
variants: {
|
|
42
|
+
solid: typeof variantSolid;
|
|
43
|
+
subtle: typeof variantSubtle;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export default _default;
|
package/alert/theme.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
function variantSolid(props) {
|
|
4
|
+
var c = props.colorScheme;
|
|
5
|
+
var container = {
|
|
6
|
+
bg: c + ".70",
|
|
7
|
+
color: 'white'
|
|
8
|
+
};
|
|
9
|
+
var button = {
|
|
10
|
+
bg: c + ".70",
|
|
11
|
+
hoverBg: c + ".80"
|
|
12
|
+
};
|
|
13
|
+
var icon = {};
|
|
14
|
+
var message = {};
|
|
15
|
+
var text = {};
|
|
16
|
+
var title = {};
|
|
17
|
+
return { container: container, button: button, icon: icon, message: message, text: text, title: title };
|
|
18
|
+
}
|
|
19
|
+
function variantSubtle(props) {
|
|
20
|
+
var c = props.colorScheme;
|
|
21
|
+
var container = {
|
|
22
|
+
bg: c + ".20",
|
|
23
|
+
borderColor: c + ".80",
|
|
24
|
+
borderWidth: 1,
|
|
25
|
+
color: c + ".90"
|
|
26
|
+
};
|
|
27
|
+
var button = {
|
|
28
|
+
color: c + ".90",
|
|
29
|
+
hoverBg: c + ".30",
|
|
30
|
+
activeBg: c + ".40",
|
|
31
|
+
variant: 'text'
|
|
32
|
+
};
|
|
33
|
+
var icon = {};
|
|
34
|
+
var message = {};
|
|
35
|
+
var text = {};
|
|
36
|
+
var title = {};
|
|
37
|
+
if (c === 'grey') {
|
|
38
|
+
button.color = 'prussian.80';
|
|
39
|
+
container.color = 'prussian.80';
|
|
40
|
+
}
|
|
41
|
+
if (c === 'yellow') {
|
|
42
|
+
button.color = 'yellow.100';
|
|
43
|
+
container.color = 'yellow.100';
|
|
44
|
+
}
|
|
45
|
+
return { container: container, button: button, icon: icon, message: message, text: text, title: title };
|
|
46
|
+
}
|
|
47
|
+
var defaultProps = {
|
|
48
|
+
colorScheme: 'blue',
|
|
49
|
+
variant: 'subtle'
|
|
50
|
+
};
|
|
51
|
+
var parts = ['container', 'button', 'icon', 'message', 'text', 'title'];
|
|
52
|
+
var sizes = {};
|
|
53
|
+
var variants = {
|
|
54
|
+
solid: variantSolid,
|
|
55
|
+
subtle: variantSubtle
|
|
56
|
+
};
|
|
57
|
+
exports.default = {
|
|
58
|
+
defaultProps: defaultProps,
|
|
59
|
+
parts: parts,
|
|
60
|
+
sizes: sizes,
|
|
61
|
+
variants: variants
|
|
62
|
+
};
|
package/avatar/avatar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AvatarProps, AvatarStyleProps } from './avatar.types';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export declare const Avatar: import("
|
|
2
|
+
export declare const AvatarBase: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, AvatarStyleProps & {
|
|
3
|
+
color?: any;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const Avatar: import("../core").VuiComponent<"span", AvatarProps>;
|
|
6
6
|
export default Avatar;
|
package/avatar/avatar.js
CHANGED
|
@@ -45,7 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
45
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.Avatar = exports.
|
|
48
|
+
exports.Avatar = exports.AvatarBase = void 0;
|
|
49
49
|
var styled_components_1 = require("@xstyled/styled-components");
|
|
50
50
|
var react_1 = __importDefault(require("react"));
|
|
51
51
|
var styled_components_2 = __importDefault(require("styled-components"));
|
|
@@ -54,9 +54,7 @@ var icon_1 = __importDefault(require("../icon"));
|
|
|
54
54
|
var utils_1 = require("../utils");
|
|
55
55
|
var generator = styled_components_1.compose(styled_components_1.backgroundColor, styled_components_1.borders, styled_components_1.interactivity, styled_components_1.sizing, styled_components_1.space, styled_components_1.transitions, styled_components_1.typography);
|
|
56
56
|
var AvatarImage = styled_components_2.default.img(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\theight: 100%;\n\twidth: 100%;\n\n\t", "\n"], ["\n\theight: 100%;\n\twidth: 100%;\n\n\t", "\n"])), styled_components_1.borders);
|
|
57
|
-
exports.
|
|
58
|
-
shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
|
|
59
|
-
})(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: 1.333;\n\toutline: none;\n\ttransition: all 0s ease-in-out;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: 1.333;\n\toutline: none;\n\ttransition: all 0s ease-in-out;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t}\n\n\t", "\n"])), generator);
|
|
57
|
+
exports.AvatarBase = styled_components_2.default.span.withConfig(core_1.forwardPropConfig(generator))(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: normal;\n\toutline: none;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tjustify-content: center;\n\tline-height: normal;\n\toutline: none;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t}\n\n\t", "\n"])), generator);
|
|
60
58
|
function defaultGetInitials(name) {
|
|
61
59
|
if (name === void 0) { name = ''; }
|
|
62
60
|
var _a = __read(name.split(' '), 2), _b = _a[0], first = _b === void 0 ? '' : _b, _c = _a[1], last = _c === void 0 ? '' : _c;
|
|
@@ -73,13 +71,11 @@ exports.Avatar = core_1.forwardRef(function (props, ref) {
|
|
|
73
71
|
hoverBg: hoverBg,
|
|
74
72
|
activeBg: activeBg,
|
|
75
73
|
focusRing: 3,
|
|
76
|
-
focusRingColor: 'blue.50',
|
|
77
74
|
tabIndex: 0,
|
|
78
75
|
userSelect: 'none'
|
|
79
76
|
}
|
|
80
77
|
: {};
|
|
81
|
-
|
|
82
|
-
return (react_1.default.createElement(exports.BaseAvatar, __assign({ borderRadius: borderRadius, className: utils_1.cs('vui-avatar', className), fontWeight: "medium", h: h, ref: ref, transitionDuration: "fast", w: h }, styles, interactiveProps, aliasedProps, rest), children ? (children) : src ? (react_1.default.createElement(AvatarImage, { borderRadius: borderRadius, src: src })) : icon ? (react_1.default.createElement(icon_1.default, { icon: icon, size: iconSize })) : initials ? (initials) : null));
|
|
78
|
+
return (react_1.default.createElement(exports.AvatarBase, __assign({ borderRadius: borderRadius, className: utils_1.cs('vui-avatar', className), fontWeight: "medium", h: h, ref: ref, transitionDuration: "fast", w: h }, styles, interactiveProps, rest), children ? (children) : src ? (react_1.default.createElement(AvatarImage, { borderRadius: borderRadius, src: src })) : icon ? (react_1.default.createElement(icon_1.default, { icon: icon, size: iconSize })) : initials ? (initials) : null));
|
|
83
79
|
});
|
|
84
80
|
exports.Avatar.displayName = 'Avatar';
|
|
85
81
|
exports.default = exports.Avatar;
|
package/avatar/avatar.types.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
1
|
import { IconProp } from '../icon';
|
|
3
2
|
import { BackgroundColorProps, BordersProps, InteractivityProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps } from '../system';
|
|
4
3
|
import { ThemingProps } from '../theme';
|
|
5
4
|
export interface AvatarImageStyleProps extends BordersProps {
|
|
6
5
|
}
|
|
7
|
-
export interface AvatarProps extends
|
|
6
|
+
export interface AvatarProps extends AvatarStyleProps, ThemingProps<'Avatar'> {
|
|
8
7
|
colorScheme?: 'blue' | 'green' | 'grey' | 'prussian' | 'red' | 'yellow';
|
|
9
8
|
getInitials?: (name: string) => string;
|
|
10
9
|
icon?: IconProp;
|
package/avatar/theme.js
CHANGED
|
@@ -19,18 +19,18 @@ function variantOutlined(props) {
|
|
|
19
19
|
}
|
|
20
20
|
function variantSolid(props) {
|
|
21
21
|
var c = props.colorScheme;
|
|
22
|
-
var
|
|
22
|
+
var styles = {
|
|
23
23
|
hoverBg: c + ".90",
|
|
24
24
|
activeBg: c + ".100",
|
|
25
25
|
bg: c + ".80",
|
|
26
26
|
color: 'white'
|
|
27
27
|
};
|
|
28
28
|
if (c === 'yellow') {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
styles.hoverBg = c + ".80";
|
|
30
|
+
styles.activeBg = c + ".90";
|
|
31
|
+
styles.bg = c + ".70";
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return styles;
|
|
34
34
|
}
|
|
35
35
|
function variantSubtle(props) {
|
|
36
36
|
var c = props.colorScheme;
|
package/box/box.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BoxProps, BoxStyleProps } from './box.types';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export declare const Box: import("
|
|
2
|
+
export declare const BoxBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, BoxStyleProps & {
|
|
3
|
+
color?: any;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const Box: import("../core").VuiComponent<"div", BoxProps>;
|
|
6
6
|
export default Box;
|