@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/checkbox/theme.js
CHANGED
|
@@ -2,23 +2,47 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
function variantDefault(props) {
|
|
4
4
|
var c = props.colorScheme;
|
|
5
|
-
var
|
|
5
|
+
var controlStyles = {
|
|
6
6
|
color: c + ".80",
|
|
7
7
|
hoverColor: c + ".90"
|
|
8
8
|
};
|
|
9
|
-
return
|
|
9
|
+
return {
|
|
10
|
+
control: controlStyles
|
|
11
|
+
};
|
|
10
12
|
}
|
|
11
13
|
var defaultProps = {
|
|
12
14
|
colorScheme: 'blue',
|
|
13
15
|
size: 'md',
|
|
14
16
|
variant: 'default'
|
|
15
17
|
};
|
|
18
|
+
var parts = ['container', 'control', 'label'];
|
|
16
19
|
var sizes = {
|
|
17
20
|
sm: {
|
|
18
|
-
|
|
21
|
+
control: {
|
|
22
|
+
h: 16,
|
|
23
|
+
w: 16
|
|
24
|
+
},
|
|
25
|
+
label: {
|
|
26
|
+
size: 'sm'
|
|
27
|
+
}
|
|
19
28
|
},
|
|
20
29
|
md: {
|
|
21
|
-
|
|
30
|
+
control: {
|
|
31
|
+
h: 20,
|
|
32
|
+
w: 20
|
|
33
|
+
},
|
|
34
|
+
label: {
|
|
35
|
+
size: 'md'
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
lg: {
|
|
39
|
+
control: {
|
|
40
|
+
h: 24,
|
|
41
|
+
w: 24
|
|
42
|
+
},
|
|
43
|
+
label: {
|
|
44
|
+
size: 'lg'
|
|
45
|
+
}
|
|
22
46
|
}
|
|
23
47
|
};
|
|
24
48
|
var variants = {
|
|
@@ -26,6 +50,7 @@ var variants = {
|
|
|
26
50
|
};
|
|
27
51
|
exports.default = {
|
|
28
52
|
defaultProps: defaultProps,
|
|
53
|
+
parts: parts,
|
|
29
54
|
sizes: sizes,
|
|
30
55
|
variants: variants
|
|
31
56
|
};
|
package/core/globalStyle.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("styled-components").GlobalStyleComponent<
|
|
1
|
+
declare const _default: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
2
2
|
export default _default;
|
package/core/globalStyle.js
CHANGED
|
@@ -4,7 +4,8 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var styled_components_1 = require("
|
|
7
|
+
var styled_components_1 = require("styled-components");
|
|
8
8
|
var styles_1 = require("../styles");
|
|
9
|
-
|
|
9
|
+
var utils_1 = require("./utils");
|
|
10
|
+
exports.default = styled_components_1.createGlobalStyle(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n\n\t:root {\n\t\t", "\n\n\t\t--vui-colors-disabled-bg: var(--vui-colors-grey-10);\n\t\t--vui-colors-disabled-border: var(--vui-colors-grey-50);\n\t\t--vui-colors-disabled-font: var(--vui-colors-grey-50);\n\t}\n\n\t* {\n\t\t--x-ring-color: var(--vui-colors-blue-50);\n\t\t--x-shadow: 0 0 0 0 transparent;\n\t}\n\n\tbody {\n\t\tcolor: var(--vui-colors-prussian-80);\n\t\tfont-family: var(--vui-fonts-avenir);\n\t\tfont-size: var(--vui-fontSizes-md);\n\t}\n\n\t@keyframes fadeDown {\n\t\t", "\n\t}\n\n\t@keyframes fadeIn {\n\t\t", "\n\t}\n\n\t@keyframes fadeLeft {\n\t\t", "\n\t}\n\n\t@keyframes fadeOut {\n\t\t", "\n\t}\n\n\t@keyframes fadeRight {\n\t\t", "\n\t}\n\n\t@keyframes fadeUp {\n\t\t", "\n\t}\n\n\t@keyframes spin {\n\t\t", "\n\t}\n"], ["\n\t", "\n\n\t:root {\n\t\t", "\n\n\t\t--vui-colors-disabled-bg: var(--vui-colors-grey-10);\n\t\t--vui-colors-disabled-border: var(--vui-colors-grey-50);\n\t\t--vui-colors-disabled-font: var(--vui-colors-grey-50);\n\t}\n\n\t* {\n\t\t--x-ring-color: var(--vui-colors-blue-50);\n\t\t--x-shadow: 0 0 0 0 transparent;\n\t}\n\n\tbody {\n\t\tcolor: var(--vui-colors-prussian-80);\n\t\tfont-family: var(--vui-fonts-avenir);\n\t\tfont-size: var(--vui-fontSizes-md);\n\t}\n\n\t@keyframes fadeDown {\n\t\t", "\n\t}\n\n\t@keyframes fadeIn {\n\t\t", "\n\t}\n\n\t@keyframes fadeLeft {\n\t\t", "\n\t}\n\n\t@keyframes fadeOut {\n\t\t", "\n\t}\n\n\t@keyframes fadeRight {\n\t\t", "\n\t}\n\n\t@keyframes fadeUp {\n\t\t", "\n\t}\n\n\t@keyframes spin {\n\t\t", "\n\t}\n"])), styles_1.fontFaces, utils_1.generateCSSVariables, styles_1.fadeDown, styles_1.fadeIn, styles_1.fadeLeft, styles_1.fadeOut, styles_1.fadeRight, styles_1.fadeUp, styles_1.spin);
|
|
10
11
|
var templateObject_1;
|
package/core/index.d.ts
CHANGED
package/core/index.js
CHANGED
|
@@ -13,11 +13,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
14
|
};
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.VuiProvider = exports.GlobalStyle = void 0;
|
|
16
|
+
exports.VuiProvider = exports.ResetCSS = exports.GlobalStyle = void 0;
|
|
17
17
|
__exportStar(require("./consts"), exports);
|
|
18
18
|
__exportStar(require("./types"), exports);
|
|
19
19
|
__exportStar(require("./utils"), exports);
|
|
20
20
|
var globalStyle_1 = require("./globalStyle");
|
|
21
21
|
Object.defineProperty(exports, "GlobalStyle", { enumerable: true, get: function () { return __importDefault(globalStyle_1).default; } });
|
|
22
|
+
var resetCSS_1 = require("./resetCSS");
|
|
23
|
+
Object.defineProperty(exports, "ResetCSS", { enumerable: true, get: function () { return __importDefault(resetCSS_1).default; } });
|
|
22
24
|
var vuiProvider_1 = require("./vuiProvider");
|
|
23
25
|
Object.defineProperty(exports, "VuiProvider", { enumerable: true, get: function () { return __importDefault(vuiProvider_1).default; } });
|
package/core/resetCSS.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var styled_components_1 = require("styled-components");
|
|
8
|
+
exports.default = styled_components_1.createGlobalStyle(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\nhtml {\n\tbox-sizing: border-box;\n\tline-height: 1.5;\n\t-webkit-text-size-adjust: 100%;\n}\n\n*, *::before, *::after {\n\tborder-style: solid;\n\tborder-width: 0;\n\tbox-sizing: inherit;\n}\n\nbody {\n\tmargin: 0;\n}\n\na {\n\tbackground-color: transparent;\n\ttext-decoration: none;\n}\n\nabbr[title] {\n\tborder-bottom: none;\n\ttext-decoration: underline dotted;\n}\n\nb, strong {\n\tfont-weight: bolder;\n}\n\nbutton {\n\tcursor: pointer;\n\t-webkit-appearance: button;\n}\n\nbutton, input, optgroup, select, textarea {\n\tfont-family: inherit;\n\tfont-size: 100%;\n\tmargin: 0;\n}\n\nbutton, select {\n\ttext-transform: none;\n}\n\ncode, kbd, pre, samp {\n\tfont-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;\n\tfont-size: 1em;\n}\n\ndetails {\n\tdisplay: block;\n}\n\nfieldset {\n\tpadding: 0.35em 0.75em 0.625em;\n}\n\nh1, h2, h3, h4, h5, h6, p, hr, dl, dd, blockquote, figure, pre {\n\tmargin: 0;\n}\n\nh1, h2, h3, h4, h5, h6 {\n\tfont-size: inherit;\n\tfont-weight: inherit;\n}\n\nhr {\n\tcolor: inherit;\n\theight: 0;\n}\n\nimg {\n\tborder-style: none;\n}\n\nimg, svg, video, canvas, audio, iframe, embed, object {\n\tdisplay: block;\n}\n\nlegend {\n\tcolor: inherit;\n\tdisplay: table;\n\tmax-width: 100%;\n\tpadding: 0;\n\twhite-space: normal;\n}\n\nmain {\n\tdisplay: block;\n}\n\nol, ul {\n\tlist-style: none;\n\tmargin: 0;\n\tpadding: 0;\n}\n\nprogress {\n\tvertical-align: baseline;\n}\n\nsummary {\n\tdisplay: list-item;\n}\n\nsmall {\n\tfont-size: 80%;\n}\n\nsub, sup {\n\tfont-size: 75%;\n\tline-height: 0;\n\tposition: relative;\n\tvertical-align: baseline;\n}\n\nsub {\n\tbottom: -0.25em;\n}\n\nsup {\n\ttop: -0.5em;\n}\n\ntable {\n\ttext-indent: 0;\n\tborder-color: inherit;\n}\n\ntemplate {\n\tdisplay: none;\n}\n\ntextarea {\n\toverflow: auto;\n}\n\n::-moz-focus-inner {\n\tborder-style: none;\n\tpadding: 0;\n}\n\n::-webkit-file-upload-button {\n\tfont: inherit;\n\t-webkit-appearance: button;\n}\n\n[type=checkbox], [type=radio] {\n\tpadding: 0;\n}\n\n[type=number]::-webkit-inner-spin-button,\n[type=number]::-webkit-outer-spin-button {\n\theight: auto;\n}\n\n[type=search] {\n\toutline-offset: -2px;\n\t-webkit-appearance: textfield;\n}\n\n[type=search]::-webkit-search-decoration {\n\t-webkit-appearance: none;\n}\n\n[hidden] {\n\tdisplay: none;\n}\n"], ["\nhtml {\n\tbox-sizing: border-box;\n\tline-height: 1.5;\n\t-webkit-text-size-adjust: 100%;\n}\n\n*, *::before, *::after {\n\tborder-style: solid;\n\tborder-width: 0;\n\tbox-sizing: inherit;\n}\n\nbody {\n\tmargin: 0;\n}\n\na {\n\tbackground-color: transparent;\n\ttext-decoration: none;\n}\n\nabbr[title] {\n\tborder-bottom: none;\n\ttext-decoration: underline dotted;\n}\n\nb, strong {\n\tfont-weight: bolder;\n}\n\nbutton {\n\tcursor: pointer;\n\t-webkit-appearance: button;\n}\n\nbutton, input, optgroup, select, textarea {\n\tfont-family: inherit;\n\tfont-size: 100%;\n\tmargin: 0;\n}\n\nbutton, select {\n\ttext-transform: none;\n}\n\ncode, kbd, pre, samp {\n\tfont-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;\n\tfont-size: 1em;\n}\n\ndetails {\n\tdisplay: block;\n}\n\nfieldset {\n\tpadding: 0.35em 0.75em 0.625em;\n}\n\nh1, h2, h3, h4, h5, h6, p, hr, dl, dd, blockquote, figure, pre {\n\tmargin: 0;\n}\n\nh1, h2, h3, h4, h5, h6 {\n\tfont-size: inherit;\n\tfont-weight: inherit;\n}\n\nhr {\n\tcolor: inherit;\n\theight: 0;\n}\n\nimg {\n\tborder-style: none;\n}\n\nimg, svg, video, canvas, audio, iframe, embed, object {\n\tdisplay: block;\n}\n\nlegend {\n\tcolor: inherit;\n\tdisplay: table;\n\tmax-width: 100%;\n\tpadding: 0;\n\twhite-space: normal;\n}\n\nmain {\n\tdisplay: block;\n}\n\nol, ul {\n\tlist-style: none;\n\tmargin: 0;\n\tpadding: 0;\n}\n\nprogress {\n\tvertical-align: baseline;\n}\n\nsummary {\n\tdisplay: list-item;\n}\n\nsmall {\n\tfont-size: 80%;\n}\n\nsub, sup {\n\tfont-size: 75%;\n\tline-height: 0;\n\tposition: relative;\n\tvertical-align: baseline;\n}\n\nsub {\n\tbottom: -0.25em;\n}\n\nsup {\n\ttop: -0.5em;\n}\n\ntable {\n\ttext-indent: 0;\n\tborder-color: inherit;\n}\n\ntemplate {\n\tdisplay: none;\n}\n\ntextarea {\n\toverflow: auto;\n}\n\n::-moz-focus-inner {\n\tborder-style: none;\n\tpadding: 0;\n}\n\n::-webkit-file-upload-button {\n\tfont: inherit;\n\t-webkit-appearance: button;\n}\n\n[type=checkbox], [type=radio] {\n\tpadding: 0;\n}\n\n[type=number]::-webkit-inner-spin-button,\n[type=number]::-webkit-outer-spin-button {\n\theight: auto;\n}\n\n[type=search] {\n\toutline-offset: -2px;\n\t-webkit-appearance: textfield;\n}\n\n[type=search]::-webkit-search-decoration {\n\t-webkit-appearance: none;\n}\n\n[hidden] {\n\tdisplay: none;\n}\n"])));
|
|
9
|
+
var templateObject_1;
|
package/core/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare type As = React.ElementType;
|
|
3
2
|
export interface CreateContextOptions {
|
|
4
3
|
/** Message displayed when context is used outside of the provider */
|
|
5
4
|
errorMessage?: string;
|
|
@@ -9,4 +8,21 @@ export interface CreateContextOptions {
|
|
|
9
8
|
name?: string;
|
|
10
9
|
}
|
|
11
10
|
export declare type CreateContextReturn<T> = [React.Provider<T>, () => T];
|
|
12
|
-
|
|
11
|
+
/** Merges component/element base props, custom props and 'as' prop */
|
|
12
|
+
export declare type ComponentProps<C extends React.ElementType, Props = {}> = RightJoinProps<React.ComponentPropsWithoutRef<C>, Props & {
|
|
13
|
+
as?: C;
|
|
14
|
+
forwardedAs?: C;
|
|
15
|
+
}>;
|
|
16
|
+
/** Merges component/element base props, custom props, 'as' prop and 'ref' */
|
|
17
|
+
export declare type ComponentPropsWithRef<C extends React.ElementType, Props = {}> = RightJoinProps<React.ComponentPropsWithRef<C>, Props & {
|
|
18
|
+
as?: C;
|
|
19
|
+
}>;
|
|
20
|
+
/** Strips call signature from ForwardRefExoticComponent */
|
|
21
|
+
export declare type ForwardRefExoticBase<P> = Pick<React.ForwardRefExoticComponent<P>, keyof React.ForwardRefExoticComponent<any>>;
|
|
22
|
+
/** Merges two props definitions without conflicts */
|
|
23
|
+
export declare type RightJoinProps<SourceProps = {}, OverrideProps = {}> = OverrideProps & Omit<SourceProps, keyof OverrideProps>;
|
|
24
|
+
/** VUI Component definition supporting custom props, 'as' props and 'ref' */
|
|
25
|
+
export interface VuiComponent<C extends React.ElementType, Props = {}> extends ForwardRefExoticBase<ComponentPropsWithRef<C, Props>> {
|
|
26
|
+
/** Add custom call signature */
|
|
27
|
+
<AsC extends React.ElementType = C>(props: ComponentPropsWithRef<AsC, Props>): React.ReactElement<ComponentPropsWithRef<AsC, Props>>;
|
|
28
|
+
}
|
package/core/types.js
CHANGED
package/core/utils.d.ts
CHANGED
|
@@ -1,25 +1,35 @@
|
|
|
1
|
+
import { StyleGenerator } from '@xstyled/styled-components';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
3
|
+
import { StyledProps } from 'styled-components';
|
|
4
|
+
import { ComponentProps, CreateContextOptions, CreateContextReturn, VuiComponent } from './types';
|
|
4
5
|
import { ThemingProps, ThemeOverrides, VuiTheme } from '../theme';
|
|
5
6
|
import { Dict } from '../utils';
|
|
6
7
|
/** Generic function to create new Context and context access hook. */
|
|
7
8
|
export declare function createContext<ContextType>(options?: CreateContextOptions): CreateContextReturn<ContextType>;
|
|
8
9
|
/** Merges provided theme overrides with default VUI theme */
|
|
9
10
|
export declare function extendTheme(overrides: ThemeOverrides): VuiTheme;
|
|
11
|
+
/**
|
|
12
|
+
* Provides configuration to the 'styled' function, which filters out xstyled system props
|
|
13
|
+
* Return type is cast to {} in order to avoid messing up styled component's actual props definition.
|
|
14
|
+
*/
|
|
15
|
+
export declare function forwardPropConfig(generator: StyleGenerator): {};
|
|
10
16
|
/** Custom implementation of forwardRef, including polymorphic 'as' type based on StyledComponent. */
|
|
11
|
-
export declare function forwardRef<
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
export declare function forwardRef<C extends React.ElementType, Props = {}>(component: React.ForwardRefRenderFunction<any, ComponentProps<C, Props>>): VuiComponent<C, Props>;
|
|
18
|
+
/** Recursively maps through all theme styles and generates a set of CSS properties */
|
|
19
|
+
export declare function generateCSSVariables(): string;
|
|
14
20
|
/** Removes specific theming keys from the given props. */
|
|
15
|
-
export declare function omitThemingProps<T extends ThemingProps>(props: T): Omit<T, "
|
|
21
|
+
export declare function omitThemingProps<T extends ThemingProps>(props: T): Omit<T, "variant" | "size">;
|
|
16
22
|
/**
|
|
17
23
|
* Custom validator to prevent certain props from reaching the HTML element.
|
|
18
24
|
* @param props - list of props to filter out
|
|
19
25
|
*/
|
|
20
26
|
export declare function shouldForwardProp(props: string[]): (prop: string | number, defaultValidatorFn: (prop: string | number) => boolean) => boolean;
|
|
21
|
-
/**
|
|
22
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Gets a value from the theme for a given path.
|
|
29
|
+
* @param themeKey - any top level property of the theme, e.g. 'colors'
|
|
30
|
+
* @param path - path to a nested value of a given theme property, e.g. 'grey.50'
|
|
31
|
+
*/
|
|
32
|
+
export declare function th(themeKey: keyof VuiTheme | (string & {}), path?: string | number): ({ theme }: StyledProps<unknown>) => string;
|
|
23
33
|
/**
|
|
24
34
|
* Retrieves and merges size and variant styling from theme configuration.
|
|
25
35
|
* @param component - name of any component configured in the theme
|
package/core/utils.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
2
3
|
var __assign = (this && this.__assign) || function () {
|
|
3
4
|
__assign = Object.assign || function(t) {
|
|
4
5
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -40,13 +41,30 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
40
41
|
}
|
|
41
42
|
return t;
|
|
42
43
|
};
|
|
44
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
45
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
46
|
+
if (!m) return o;
|
|
47
|
+
var i = m.call(o), r, ar = [], e;
|
|
48
|
+
try {
|
|
49
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
50
|
+
}
|
|
51
|
+
catch (error) { e = { error: error }; }
|
|
52
|
+
finally {
|
|
53
|
+
try {
|
|
54
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
55
|
+
}
|
|
56
|
+
finally { if (e) throw e.error; }
|
|
57
|
+
}
|
|
58
|
+
return ar;
|
|
59
|
+
};
|
|
43
60
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44
61
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
45
62
|
};
|
|
46
63
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
-
exports.useStyleConfig = exports.th = exports.shouldForwardProp = exports.omitThemingProps = exports.forwardRef = exports.extendTheme = exports.createContext = void 0;
|
|
64
|
+
exports.useStyleConfig = exports.th = exports.shouldForwardProp = exports.omitThemingProps = exports.generateCSSVariables = exports.forwardRef = exports.forwardPropConfig = exports.extendTheme = exports.createContext = void 0;
|
|
48
65
|
var react_1 = __importStar(require("react"));
|
|
49
66
|
var styled_components_1 = require("styled-components");
|
|
67
|
+
var styles_1 = require("../styles");
|
|
50
68
|
var theme_1 = __importDefault(require("../theme"));
|
|
51
69
|
var utils_1 = require("../utils");
|
|
52
70
|
/** Generic function to create new Context and context access hook. */
|
|
@@ -69,12 +87,49 @@ function extendTheme(overrides) {
|
|
|
69
87
|
return utils_1.mergeWith(theme_1.default, overrides);
|
|
70
88
|
}
|
|
71
89
|
exports.extendTheme = extendTheme;
|
|
72
|
-
|
|
90
|
+
/**
|
|
91
|
+
* Provides configuration to the 'styled' function, which filters out xstyled system props
|
|
92
|
+
* Return type is cast to {} in order to avoid messing up styled component's actual props definition.
|
|
93
|
+
*/
|
|
94
|
+
function forwardPropConfig(generator) {
|
|
95
|
+
return {
|
|
96
|
+
shouldForwardProp: function (prop, defaultValidatorFn) {
|
|
97
|
+
if (typeof prop === 'string' && generator.meta.props.includes(prop))
|
|
98
|
+
return false;
|
|
99
|
+
return defaultValidatorFn(prop);
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
exports.forwardPropConfig = forwardPropConfig;
|
|
73
104
|
/** Custom implementation of forwardRef, including polymorphic 'as' type based on StyledComponent. */
|
|
74
105
|
function forwardRef(component) {
|
|
75
106
|
return react_1.default.forwardRef(component);
|
|
76
107
|
}
|
|
77
108
|
exports.forwardRef = forwardRef;
|
|
109
|
+
/** Recursively maps through all theme styles and generates a set of CSS properties */
|
|
110
|
+
function generateCSSVariables() {
|
|
111
|
+
function computeStyle(name, value) {
|
|
112
|
+
if (!utils_1.isObj(value))
|
|
113
|
+
return name + ": " + (typeof value === 'string' ? value : value + "px") + ";\n";
|
|
114
|
+
return Object.entries(value).reduce(function (str, _a) {
|
|
115
|
+
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
116
|
+
return (str += computeStyle(name + "-" + key, value));
|
|
117
|
+
}, '');
|
|
118
|
+
}
|
|
119
|
+
var styles = {
|
|
120
|
+
animations: styles_1.animations,
|
|
121
|
+
colors: styles_1.colors,
|
|
122
|
+
durations: styles_1.durations,
|
|
123
|
+
fonts: styles_1.fonts,
|
|
124
|
+
fontSizes: styles_1.fontSizes,
|
|
125
|
+
fontWeights: styles_1.fontWeights,
|
|
126
|
+
radii: styles_1.radii,
|
|
127
|
+
screens: styles_1.screens,
|
|
128
|
+
shadows: styles_1.shadows
|
|
129
|
+
};
|
|
130
|
+
return computeStyle('--vui', styles);
|
|
131
|
+
}
|
|
132
|
+
exports.generateCSSVariables = generateCSSVariables;
|
|
78
133
|
/** Removes specific theming keys from the given props. */
|
|
79
134
|
function omitThemingProps(props) {
|
|
80
135
|
var size = props.size, variant = props.variant, rest = __rest(props, ["size", "variant"]); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
@@ -93,10 +148,17 @@ function shouldForwardProp(props) {
|
|
|
93
148
|
};
|
|
94
149
|
}
|
|
95
150
|
exports.shouldForwardProp = shouldForwardProp;
|
|
96
|
-
/**
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
151
|
+
/**
|
|
152
|
+
* Gets a value from the theme for a given path.
|
|
153
|
+
* @param themeKey - any top level property of the theme, e.g. 'colors'
|
|
154
|
+
* @param path - path to a nested value of a given theme property, e.g. 'grey.50'
|
|
155
|
+
*/
|
|
156
|
+
function th(themeKey, path) {
|
|
157
|
+
return function (_a) {
|
|
158
|
+
var _b;
|
|
159
|
+
var theme = _a.theme;
|
|
160
|
+
var value = (_b = utils_1.get(theme, themeKey + "." + path)) !== null && _b !== void 0 ? _b : path;
|
|
161
|
+
return typeof value === 'string' ? value : value + 'px';
|
|
100
162
|
};
|
|
101
163
|
}
|
|
102
164
|
exports.th = th;
|
package/core/vuiProvider.js
CHANGED
|
@@ -5,12 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
7
|
var styled_components_1 = require("@xstyled/styled-components");
|
|
8
|
+
var resetCSS_1 = __importDefault(require("./resetCSS"));
|
|
8
9
|
var globalStyle_1 = __importDefault(require("./globalStyle"));
|
|
9
10
|
var theme_1 = __importDefault(require("../theme"));
|
|
10
11
|
var VuiProvider = function (_a) {
|
|
11
12
|
var children = _a.children, _b = _a.globalStyle, globalStyle = _b === void 0 ? true : _b, _c = _a.resetCSS, resetCSS = _c === void 0 ? true : _c, _d = _a.theme, theme = _d === void 0 ? theme_1.default : _d;
|
|
12
13
|
return (react_1.default.createElement(styled_components_1.ThemeProvider, { theme: theme },
|
|
13
|
-
resetCSS && react_1.default.createElement(
|
|
14
|
+
resetCSS && react_1.default.createElement(resetCSS_1.default, null),
|
|
14
15
|
globalStyle && react_1.default.createElement(globalStyle_1.default, null),
|
|
15
16
|
children));
|
|
16
17
|
};
|
package/divider/divider.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { DividerProps, DividerStyleProps } from './divider.types';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
} & DividerStyleProps, never>;
|
|
5
|
-
export declare const Divider: import("styled-components").StyledComponent<"hr", never, DividerProps, never>;
|
|
2
|
+
export declare const DividerBase: import("styled-components").StyledComponent<"hr", import("styled-components").DefaultTheme, DividerStyleProps, never>;
|
|
3
|
+
export declare const Divider: import("../core").VuiComponent<"hr", DividerProps>;
|
|
6
4
|
export default Divider;
|
package/divider/divider.js
CHANGED
|
@@ -29,28 +29,25 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
29
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.Divider = exports.
|
|
32
|
+
exports.Divider = exports.DividerBase = void 0;
|
|
33
33
|
var styled_components_1 = require("@xstyled/styled-components");
|
|
34
34
|
var react_1 = __importDefault(require("react"));
|
|
35
35
|
var styled_components_2 = __importDefault(require("styled-components"));
|
|
36
36
|
var core_1 = require("../core");
|
|
37
37
|
var utils_1 = require("../utils");
|
|
38
38
|
var generator = styled_components_1.compose(styled_components_1.borders, styled_components_1.sizing, styled_components_1.space);
|
|
39
|
-
exports.
|
|
40
|
-
shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
|
|
41
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), generator);
|
|
39
|
+
exports.DividerBase = styled_components_2.default.hr.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), generator);
|
|
42
40
|
exports.Divider = core_1.forwardRef(function (props, ref) {
|
|
43
|
-
var _a
|
|
44
|
-
var
|
|
41
|
+
var _a;
|
|
42
|
+
var _b = core_1.omitThemingProps(props), className = _b.className, isVertical = _b.isVertical, width = _b.width, rest = __rest(_b, ["className", "isVertical", "width"]);
|
|
45
43
|
var styles = core_1.useStyleConfig('Divider', props);
|
|
46
44
|
var borderSide = isVertical ? 'Right' : 'Bottom';
|
|
47
45
|
var borderWidth = "border" + borderSide + "Width";
|
|
48
|
-
var defaultStyle = (_a = {}, _a[borderWidth] = 1, _a);
|
|
49
46
|
var height = isVertical ? '100%' : '';
|
|
50
|
-
var aliasedProps = utils_1.filterUndefined((
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return (react_1.default.createElement(exports.
|
|
47
|
+
var aliasedProps = utils_1.filterUndefined((_a = {},
|
|
48
|
+
_a[borderWidth] = width !== null && width !== void 0 ? width : 1,
|
|
49
|
+
_a));
|
|
50
|
+
return (react_1.default.createElement(exports.DividerBase, __assign({ borderColor: "grey.30", className: utils_1.cs('vui-divider', className), h: height, ref: ref }, styles, aliasedProps, rest)));
|
|
54
51
|
});
|
|
55
52
|
exports.Divider.displayName = 'Divider';
|
|
56
53
|
exports.default = exports.Divider;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
1
|
import { BordersProps, SizingProps, SpaceProps } from '../system';
|
|
3
2
|
import { ThemingProps } from '../theme';
|
|
4
|
-
export interface DividerProps extends
|
|
3
|
+
export interface DividerProps extends DividerStyleProps, ThemingProps<'Divider'> {
|
|
5
4
|
className?: string;
|
|
6
5
|
isVertical?: boolean;
|
|
7
6
|
width?: BordersProps['borderWidth'];
|
package/heading/heading.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HeadingProps, HeadingStyleProps } from './heading.types';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export declare const Heading: import("
|
|
2
|
+
export declare const HeadingBase: import("styled-components").StyledComponent<"h2", import("styled-components").DefaultTheme, HeadingStyleProps & {
|
|
3
|
+
color?: any;
|
|
4
|
+
}, never>;
|
|
5
|
+
export declare const Heading: import("../core").VuiComponent<"h2", HeadingProps>;
|
|
6
6
|
export default Heading;
|
package/heading/heading.js
CHANGED
|
@@ -29,7 +29,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
29
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.Heading = exports.
|
|
32
|
+
exports.Heading = exports.HeadingBase = void 0;
|
|
33
33
|
var styled_components_1 = require("@xstyled/styled-components");
|
|
34
34
|
var react_1 = __importDefault(require("react"));
|
|
35
35
|
var styled_components_2 = __importDefault(require("styled-components"));
|
|
@@ -37,9 +37,7 @@ var core_1 = require("../core");
|
|
|
37
37
|
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
|
-
exports.
|
|
41
|
-
shouldForwardProp: core_1.shouldForwardProp(generator.meta.props)
|
|
42
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\ttransition: all 0s ease-in-out;\n\n\t", "\n"], ["\n\ttransition: all 0s ease-in-out;\n\n\t", "\n"])), generator);
|
|
40
|
+
exports.HeadingBase = styled_components_2.default.h2.withConfig(core_1.forwardPropConfig(generator))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), generator);
|
|
43
41
|
exports.Heading = core_1.forwardRef(function (props, ref) {
|
|
44
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"]);
|
|
45
43
|
var styles = core_1.useStyleConfig('Heading', props);
|
|
@@ -50,7 +48,7 @@ exports.Heading = core_1.forwardRef(function (props, ref) {
|
|
|
50
48
|
textDecoration: decoration,
|
|
51
49
|
textTransform: casing
|
|
52
50
|
});
|
|
53
|
-
return (react_1.default.createElement(exports.
|
|
51
|
+
return (react_1.default.createElement(exports.HeadingBase, __assign({ className: utils_1.cs('vui-heading', hClassName, className), fontWeight: "demi", ref: ref, transitionDuration: "fast" }, styles, aliasedProps, rest)));
|
|
54
52
|
});
|
|
55
53
|
exports.Heading.displayName = 'Heading';
|
|
56
54
|
exports.default = exports.Heading;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
decoration?: TextDecorationProps['textDecoration'];
|
|
9
|
-
weight?: FontWeight | AnyString | number;
|
|
1
|
+
import { IsTruncatedProps, MaxLinesProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps } from '../system';
|
|
2
|
+
import { ThemingProps } from '../theme';
|
|
3
|
+
export interface HeadingProps extends HeadingStyleProps, ThemingProps<'Heading'> {
|
|
4
|
+
align?: TypographyProps['textAlign'];
|
|
5
|
+
casing?: TypographyProps['textTransform'];
|
|
6
|
+
decoration?: TypographyProps['textDecoration'];
|
|
7
|
+
weight?: TypographyProps['fontWeight'];
|
|
10
8
|
}
|
|
11
9
|
export interface HeadingStyleProps extends IsTruncatedProps, MaxLinesProps, SizingProps, SpaceProps, TransitionsProps, TypographyProps {
|
|
12
10
|
}
|
package/heading/headings.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HeadingProps } from './heading.types';
|
|
2
2
|
declare type HProps = Omit<HeadingProps, 'size'>;
|
|
3
|
-
export declare const H1: import("
|
|
4
|
-
export declare const H2: import("
|
|
5
|
-
export declare const H3: import("
|
|
6
|
-
export declare const H4: import("
|
|
7
|
-
export declare const H5: import("
|
|
8
|
-
export declare const H6: import("
|
|
3
|
+
export declare const H1: import("../core").VuiComponent<"h1", HProps>;
|
|
4
|
+
export declare const H2: import("../core").VuiComponent<"h2", HProps>;
|
|
5
|
+
export declare const H3: import("../core").VuiComponent<"h3", HProps>;
|
|
6
|
+
export declare const H4: import("../core").VuiComponent<"h4", HProps>;
|
|
7
|
+
export declare const H5: import("../core").VuiComponent<"h5", HProps>;
|
|
8
|
+
export declare const H6: import("../core").VuiComponent<"h6", HProps>;
|
|
9
9
|
export {};
|
package/icon/helpers.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ import { IconProps } from './icon.types';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare function getCustomIcon(icon: IconProps['icon']): {
|
|
7
7
|
d: string[];
|
|
8
|
+
name: string;
|
|
9
|
+
pathProps: any[];
|
|
10
|
+
svgProps: import("..").Dict<any>;
|
|
8
11
|
viewBox: string;
|
|
9
12
|
} | undefined;
|
|
10
13
|
/** If given icon is a string, return its CDN url. */
|
package/icon/helpers.js
CHANGED
|
@@ -25,9 +25,13 @@ var core_1 = require("../core");
|
|
|
25
25
|
function getCustomIcon(icon) {
|
|
26
26
|
if (!icon || typeof icon === 'string')
|
|
27
27
|
return;
|
|
28
|
-
var _a =
|
|
28
|
+
var _a = icon, details = _a.details, _b = _a.name, name = _b === void 0 ? '' : _b, _c = _a.pathProps, pathProps = _c === void 0 ? [] : _c, _d = _a.svgProps, svgProps = _d === void 0 ? {} : _d;
|
|
29
|
+
var _e = __read(details, 5), width = _e[0], height = _e[1], d = _e[4];
|
|
29
30
|
return {
|
|
30
31
|
d: Array.isArray(d) ? d : [d],
|
|
32
|
+
name: name,
|
|
33
|
+
pathProps: Array.isArray(pathProps) ? pathProps : [pathProps],
|
|
34
|
+
svgProps: svgProps,
|
|
31
35
|
viewBox: "0 0 " + width + " " + height
|
|
32
36
|
};
|
|
33
37
|
}
|
package/icon/icon.d.ts
CHANGED
package/icon/icon.js
CHANGED
|
@@ -31,14 +31,19 @@ var core_1 = require("../core");
|
|
|
31
31
|
var svg_1 = require("../svg");
|
|
32
32
|
var utils_1 = require("../utils");
|
|
33
33
|
var Icon = core_1.forwardRef(function (props, ref) {
|
|
34
|
-
var _a = core_1.omitThemingProps(props),
|
|
34
|
+
var _a = core_1.omitThemingProps(props), className = _a.className, icon = _a.icon, rotate = _a.rotate, scale = _a.scale, rest = __rest(_a, ["className", "icon", "rotate", "scale"]);
|
|
35
35
|
var styles = core_1.useStyleConfig('Icon', props);
|
|
36
36
|
var customIcon = helpers_1.getCustomIcon(icon);
|
|
37
|
-
var
|
|
38
|
-
|
|
37
|
+
var customIconProps = customIcon
|
|
38
|
+
? __assign({ 'data-name': customIcon.name, viewBox: customIcon.viewBox }, customIcon.svgProps) : {};
|
|
39
|
+
var scaledSize = scale ? 16 * scale : undefined;
|
|
39
40
|
var src = helpers_1.getIconSrc(icon);
|
|
40
|
-
var
|
|
41
|
-
|
|
41
|
+
var aliasedProps = utils_1.filterUndefined({
|
|
42
|
+
h: scaledSize,
|
|
43
|
+
transform: rotate !== undefined ? "rotate(" + rotate + "deg)" : undefined,
|
|
44
|
+
w: scaledSize
|
|
45
|
+
});
|
|
46
|
+
return (react_1.default.createElement(svg_1.Svg, __assign({ className: utils_1.cs('vui-icon', className), display: "inline-flex", flexShrink: 0, ref: ref, src: src }, styles, customIconProps, aliasedProps, rest), customIcon === null || customIcon === void 0 ? void 0 : customIcon.d.map(function (d, i) { return (react_1.default.createElement("path", __assign({ d: d, fill: "currentColor", key: i }, customIcon.pathProps[i]))); })));
|
|
42
47
|
});
|
|
43
48
|
Icon.displayName = 'Icon';
|
|
44
49
|
exports.default = Icon;
|
package/icon/icon.types.d.ts
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
import { DefaultIcon
|
|
1
|
+
import { DefaultIcon } from './icons/types';
|
|
2
2
|
import { SvgProps } from '../svg';
|
|
3
3
|
import { ThemingProps } from '../theme';
|
|
4
|
-
import { AnyString } from '../utils';
|
|
4
|
+
import { AnyString, Dict } from '../utils';
|
|
5
|
+
export interface IconDefinition {
|
|
6
|
+
details: IconDetails;
|
|
7
|
+
name?: string;
|
|
8
|
+
pathProps?: Dict | Dict[];
|
|
9
|
+
svgProps?: Dict;
|
|
10
|
+
}
|
|
11
|
+
export declare type IconDetails = [
|
|
12
|
+
number,
|
|
13
|
+
number,
|
|
14
|
+
string[],
|
|
15
|
+
string,
|
|
16
|
+
// unicode
|
|
17
|
+
string | string[]
|
|
18
|
+
];
|
|
5
19
|
export declare type IconProp = DefaultIcon | IconDefinition | AnyString;
|
|
6
20
|
export interface IconProps extends SvgProps, ThemingProps<'Icon'> {
|
|
7
21
|
icon?: IconProp;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.default = {
|
|
5
|
+
details: [20, 20, [], '', 'M0.5 3C0.5 1.61929 1.61929 0.5 3 0.5H17C18.3807 0.5 19.5 1.61929 19.5 3V17C19.5 18.3807 18.3807 19.5 17 19.5H3C1.61929 19.5 0.5 18.3807 0.5 17V3ZM15.75 8.75H4.25C3.83573 8.75 3.5 9.08573 3.5 9.5V10.5C3.5 10.9143 3.83573 11.25 4.25 11.25H15.75C16.1643 11.25 16.5 10.9143 16.5 10.5V9.5C16.5 9.08573 16.1643 8.75 15.75 8.75Z'],
|
|
6
|
+
name: 'cuiCheckboxIndeterminate',
|
|
7
|
+
pathProps: { stroke: 'currentColor' }
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.default = {
|
|
5
|
+
details: [20, 20, [], '', 'M17.1595 4.87355L17.1594 4.87351L16.8059 4.51995C16.4642 4.17825 15.9101 4.17825 15.5684 4.51995L7.17153 12.9169L4.43149 10.1768C4.08976 9.8351 3.53577 9.83516 3.19407 10.1768L3.19403 10.1768L2.8405 10.5304C2.49878 10.8721 2.49884 11.4261 2.84047 11.7678L2.8405 11.7678L6.55282 15.4801C6.89454 15.8218 7.44853 15.8218 7.79023 15.4802L7.79027 15.4801L17.1594 6.11096C17.5011 5.76924 17.5011 5.21525 17.1595 4.87355ZM0.5 3C0.5 1.61929 1.61929 0.5 3 0.5H17C18.3807 0.5 19.5 1.61929 19.5 3V17C19.5 18.3807 18.3807 19.5 17 19.5H3C1.61929 19.5 0.5 18.3807 0.5 17V3Z'],
|
|
6
|
+
name: 'cuiCheckboxSelected',
|
|
7
|
+
pathProps: { stroke: 'currentColor' }
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.default = {
|
|
5
|
+
details: [20, 20, [], '', 'M17 1H3C1.89543 1 1 1.89543 1 3V17C1 18.1046 1.89543 19 3 19H17C18.1046 19 19 18.1046 19 17V3C19 1.89543 18.1046 1 17 1ZM3 0C1.34315 0 0 1.34315 0 3V17C0 18.6569 1.34315 20 3 20H17C18.6569 20 20 18.6569 20 17V3C20 1.34315 18.6569 0 17 0H3Z'],
|
|
6
|
+
name: 'cuiCheckboxUnselected',
|
|
7
|
+
pathProps: { fillRule: 'evenodd', clipRule: 'evenodd' }
|
|
8
|
+
};
|