@veracity/vui 0.0.13 → 0.0.15
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 +13 -15
- package/alert/alert.js +85 -87
- package/alert/alert.types.d.ts +20 -20
- package/alert/alert.types.js +2 -2
- package/alert/alertButton.d.ts +3 -3
- package/alert/alertButton.js +30 -30
- package/alert/alertIcon.d.ts +3 -3
- package/alert/alertIcon.js +33 -33
- package/alert/alertText.d.ts +3 -3
- package/alert/alertText.js +30 -30
- package/alert/alertTitle.d.ts +3 -3
- package/alert/alertTitle.js +30 -30
- package/alert/consts.d.ts +2 -2
- package/alert/consts.js +37 -37
- package/alert/context.d.ts +4 -4
- package/alert/context.js +23 -23
- package/alert/index.d.ts +8 -9
- package/alert/index.js +25 -26
- package/alert/theme.d.ts +46 -46
- package/alert/theme.js +62 -62
- package/avatar/avatar.d.ts +5 -5
- package/avatar/avatar.js +82 -82
- package/avatar/avatar.types.d.ts +12 -12
- package/avatar/avatar.types.js +2 -2
- package/avatar/index.d.ts +3 -3
- package/avatar/index.js +20 -20
- package/avatar/theme.d.ts +56 -56
- package/avatar/theme.js +94 -94
- package/box/box.d.ts +5 -5
- package/box/box.js +58 -58
- package/box/box.types.d.ts +15 -15
- package/box/box.types.js +2 -2
- package/box/index.d.ts +3 -3
- package/box/index.js +20 -20
- package/box/theme.d.ts +6 -6
- package/box/theme.js +10 -10
- package/button/button.d.ts +5 -5
- package/button/button.js +81 -81
- package/button/button.types.d.ts +24 -24
- package/button/button.types.js +2 -2
- package/button/buttonGroup.d.ts +5 -5
- package/button/buttonGroup.js +72 -72
- package/button/buttonGroup.types.d.ts +6 -6
- package/button/buttonGroup.types.js +2 -2
- package/button/buttons.d.ts +8 -8
- package/button/buttons.js +27 -27
- package/button/consts.d.ts +2 -2
- package/button/consts.js +26 -26
- package/button/context.d.ts +4 -4
- package/button/context.js +23 -23
- package/button/index.d.ts +7 -7
- package/button/index.js +24 -24
- package/button/theme.d.ts +72 -72
- package/button/theme.js +112 -112
- package/checkbox/checkbox.d.ts +7 -7
- package/checkbox/checkbox.js +105 -105
- package/checkbox/checkbox.types.d.ts +26 -26
- package/checkbox/checkbox.types.js +2 -2
- package/checkbox/checkboxGroup.d.ts +5 -5
- package/checkbox/checkboxGroup.js +70 -70
- package/checkbox/checkboxGroup.types.d.ts +12 -12
- package/checkbox/checkboxGroup.types.js +2 -2
- package/checkbox/context.d.ts +4 -4
- package/checkbox/context.js +23 -23
- package/checkbox/index.d.ts +6 -6
- package/checkbox/index.js +23 -23
- package/checkbox/theme.d.ts +48 -48
- package/checkbox/theme.js +56 -56
- package/core/consts.d.ts +1 -1
- package/core/consts.js +4 -4
- package/core/globalStyle.d.ts +2 -2
- package/core/globalStyle.js +57 -57
- package/core/index.d.ts +6 -6
- package/core/index.js +25 -25
- package/core/resetCSS.d.ts +2 -2
- package/core/resetCSS.js +9 -9
- package/core/types/component.d.ts +30 -30
- package/core/types/component.js +2 -2
- package/core/types/context.d.ts +10 -10
- package/core/types/context.js +2 -2
- package/core/types/events.d.ts +17 -13
- package/core/types/events.js +2 -2
- package/core/types/index.d.ts +4 -4
- package/core/types/index.js +16 -16
- package/core/types/themeGet.d.ts +24 -24
- package/core/types/themeGet.js +2 -2
- package/core/utils.d.ts +58 -58
- package/core/utils.js +209 -209
- package/core/vuiProvider.d.ts +9 -9
- package/core/vuiProvider.js +18 -18
- package/divider/divider.d.ts +5 -5
- package/divider/divider.js +53 -53
- package/divider/divider.types.d.ts +7 -7
- package/divider/divider.types.js +2 -2
- package/divider/index.d.ts +3 -3
- package/divider/index.js +20 -20
- package/divider/theme.d.ts +6 -6
- package/divider/theme.js +10 -10
- package/heading/heading.d.ts +5 -5
- package/heading/heading.js +53 -53
- package/heading/heading.types.d.ts +9 -9
- package/heading/heading.types.js +2 -2
- package/heading/headings.d.ts +7 -7
- package/heading/headings.js +26 -26
- package/heading/index.d.ts +4 -4
- package/heading/index.js +21 -21
- package/heading/theme.d.ts +39 -39
- package/heading/theme.js +43 -43
- package/icon/helpers.d.ts +8 -8
- package/icon/helpers.js +63 -63
- package/icon/icon.d.ts +3 -3
- package/icon/icon.js +47 -47
- package/icon/icon.types.d.ts +20 -20
- package/icon/icon.types.js +2 -2
- package/icon/index.d.ts +3 -3
- package/icon/index.js +20 -20
- package/icon/theme.d.ts +25 -25
- package/icon/theme.js +29 -29
- package/icons/baseIcons/cui/cuiCheckboxIndeterminate.d.ts +3 -3
- package/icons/baseIcons/cui/cuiCheckboxIndeterminate.js +7 -8
- package/icons/baseIcons/cui/cuiCheckboxSelected.d.ts +3 -3
- package/icons/baseIcons/cui/cuiCheckboxSelected.js +7 -8
- package/icons/baseIcons/cui/cuiCheckboxUnselected.d.ts +3 -3
- package/icons/baseIcons/cui/cuiCheckboxUnselected.js +8 -8
- package/icons/baseIcons/cui/cuiRadioSelected.d.ts +3 -3
- package/icons/baseIcons/cui/cuiRadioSelected.js +8 -8
- package/icons/baseIcons/cui/cuiRadioUnselected.d.ts +3 -3
- package/icons/baseIcons/cui/cuiRadioUnselected.js +8 -8
- package/icons/baseIcons/{cus/cusRadio.d.ts → cul/culApiProduct.d.ts} +3 -3
- package/icons/baseIcons/cul/culApiProduct.js +7 -0
- package/icons/baseIcons/{cus/cusSquareMinus.d.ts → cul/culApiService.d.ts} +3 -3
- package/icons/baseIcons/cul/culApiService.js +7 -0
- package/icons/baseIcons/cul/culCovid.d.ts +3 -3
- package/icons/baseIcons/cul/culCovid.js +7 -7
- package/icons/baseIcons/cul/culDeepSearch.d.ts +3 -3
- package/icons/baseIcons/cul/culDeepSearch.js +7 -7
- package/icons/baseIcons/cul/culDotsMenu.d.ts +3 -3
- package/icons/baseIcons/cul/culDotsMenu.js +7 -7
- package/icons/baseIcons/cul/culGlobePlus.d.ts +3 -3
- package/icons/baseIcons/cul/culGlobePlus.js +7 -7
- package/icons/baseIcons/cul/culListDense.d.ts +3 -3
- package/icons/baseIcons/cul/culListDense.js +7 -7
- package/icons/baseIcons/cul/culMapMarkerStar.d.ts +3 -3
- package/icons/baseIcons/cul/culMapMarkerStar.js +7 -7
- package/icons/baseIcons/cul/culPlusThin.d.ts +3 -3
- package/icons/baseIcons/cul/culPlusThin.js +7 -7
- package/icons/baseIcons/cul/culScreenshot.d.ts +3 -3
- package/icons/baseIcons/cul/culScreenshot.js +7 -7
- package/icons/baseIcons/cul/culScreenshotAlt.d.ts +3 -3
- package/icons/baseIcons/cul/culScreenshotAlt.js +7 -7
- package/icons/baseIcons/cul/culShortcut.d.ts +3 -3
- package/icons/baseIcons/cul/culShortcut.js +7 -7
- package/icons/baseIcons/cul/culTimesThin.d.ts +3 -3
- package/icons/baseIcons/cul/culTimesThin.js +7 -7
- package/icons/baseIcons/cul/culTransformer.d.ts +3 -3
- package/icons/baseIcons/cul/culTransformer.js +7 -7
- package/icons/baseIcons/cul/culUserTransfer.d.ts +3 -3
- package/icons/baseIcons/cul/culUserTransfer.js +7 -7
- package/icons/baseIcons/{cus/cusCheckboxSelected.d.ts → cul/culVeracityService.d.ts} +3 -3
- package/icons/baseIcons/cul/culVeracityService.js +7 -0
- package/icons/baseIcons/cul/culVessel.d.ts +3 -3
- package/icons/baseIcons/cul/culVessel.js +7 -7
- package/icons/baseIcons/cul/culVesselGroup.d.ts +3 -3
- package/icons/baseIcons/cul/culVesselGroup.js +7 -7
- package/icons/baseIcons/cus/cusDotFull.d.ts +3 -3
- package/icons/baseIcons/cus/cusDotFull.js +7 -7
- package/icons/baseIcons/cus/cusDotFullAlt.d.ts +3 -3
- package/icons/baseIcons/cus/cusDotFullAlt.js +7 -7
- package/icons/baseIcons/cus/cusDotsMenu.d.ts +3 -3
- package/icons/baseIcons/cus/cusDotsMenu.js +7 -7
- package/icons/baseIcons/cus/cusTransformer.d.ts +3 -3
- package/icons/baseIcons/cus/cusTransformer.js +7 -7
- package/icons/baseIcons/cus/cusVessel.d.ts +3 -3
- package/icons/baseIcons/cus/cusVessel.js +7 -7
- package/icons/baseIcons/fab/fabApplePay.d.ts +3 -3
- package/icons/baseIcons/fab/fabApplePay.js +7 -7
- package/icons/baseIcons/fab/fabBluetooth.d.ts +3 -3
- package/icons/baseIcons/fab/fabBluetooth.js +7 -7
- package/icons/baseIcons/fab/fabBtc.d.ts +3 -3
- package/icons/baseIcons/fab/fabBtc.js +7 -7
- package/icons/baseIcons/fab/fabCcAmazonPay.d.ts +3 -3
- package/icons/baseIcons/fab/fabCcAmazonPay.js +7 -7
- package/icons/baseIcons/fab/fabCcAmex.d.ts +3 -3
- package/icons/baseIcons/fab/fabCcAmex.js +7 -7
- package/icons/baseIcons/fab/fabCcApplePay.d.ts +3 -3
- package/icons/baseIcons/fab/fabCcApplePay.js +7 -7
- package/icons/baseIcons/fab/fabCcDinersClub.d.ts +3 -3
- package/icons/baseIcons/fab/fabCcDinersClub.js +7 -7
- package/icons/baseIcons/fab/fabCcMastercard.d.ts +3 -3
- package/icons/baseIcons/fab/fabCcMastercard.js +7 -7
- package/icons/baseIcons/fab/fabCcPaypal.d.ts +3 -3
- package/icons/baseIcons/fab/fabCcPaypal.js +7 -7
- package/icons/baseIcons/fab/fabCcVisa.d.ts +3 -3
- package/icons/baseIcons/fab/fabCcVisa.js +7 -7
- package/icons/baseIcons/fab/fabDhl.d.ts +3 -3
- package/icons/baseIcons/fab/fabDhl.js +7 -7
- package/icons/baseIcons/fab/fabEbay.d.ts +3 -3
- package/icons/baseIcons/fab/fabEbay.js +7 -7
- package/icons/baseIcons/fab/fabFacebook.d.ts +3 -3
- package/icons/baseIcons/fab/fabFacebook.js +7 -7
- package/icons/baseIcons/fab/fabFedex.d.ts +3 -3
- package/icons/baseIcons/fab/fabFedex.js +7 -7
- package/icons/baseIcons/fab/fabFirefox.d.ts +3 -3
- package/icons/baseIcons/fab/fabFirefox.js +7 -7
- package/icons/baseIcons/fab/fabGoogle.d.ts +3 -3
- package/icons/baseIcons/fab/fabGoogle.js +7 -7
- package/icons/baseIcons/fab/fabGoogleDrive.d.ts +3 -3
- package/icons/baseIcons/fab/fabGoogleDrive.js +7 -7
- package/icons/baseIcons/fab/fabLinkedinIn.d.ts +3 -3
- package/icons/baseIcons/fab/fabLinkedinIn.js +7 -7
- package/icons/baseIcons/fab/fabMedium.d.ts +3 -3
- package/icons/baseIcons/fab/fabMedium.js +7 -7
- package/icons/baseIcons/fab/fabOsi.d.ts +3 -3
- package/icons/baseIcons/fab/fabOsi.js +7 -7
- package/icons/baseIcons/fab/fabSlack.d.ts +3 -3
- package/icons/baseIcons/fab/fabSlack.js +7 -7
- package/icons/baseIcons/fab/fabTwitter.d.ts +3 -3
- package/icons/baseIcons/fab/fabTwitter.js +7 -7
- package/icons/baseIcons/fab/fabUps.d.ts +3 -3
- package/icons/baseIcons/fab/fabUps.js +7 -7
- package/icons/baseIcons/fad/fadSpinnerThird.d.ts +3 -3
- package/icons/baseIcons/fad/fadSpinnerThird.js +7 -7
- package/icons/baseIcons/fal/falAddressBook.d.ts +3 -3
- package/icons/baseIcons/fal/falAddressBook.js +7 -7
- package/icons/baseIcons/fal/falAddressCard.d.ts +3 -3
- package/icons/baseIcons/fal/falAddressCard.js +7 -7
- package/icons/baseIcons/fal/falAnalytics.d.ts +3 -3
- package/icons/baseIcons/fal/falAnalytics.js +7 -7
- package/icons/baseIcons/fal/falAngleDoubleDown.d.ts +3 -3
- package/icons/baseIcons/fal/falAngleDoubleDown.js +7 -7
- package/icons/baseIcons/fal/falAngleDoubleLeft.d.ts +3 -3
- package/icons/baseIcons/fal/falAngleDoubleLeft.js +7 -7
- package/icons/baseIcons/fal/falAngleDoubleRight.d.ts +3 -3
- package/icons/baseIcons/fal/falAngleDoubleRight.js +7 -7
- package/icons/baseIcons/fal/falAngleDoubleUp.d.ts +3 -3
- package/icons/baseIcons/fal/falAngleDoubleUp.js +7 -7
- package/icons/baseIcons/fal/falAngleDown.d.ts +3 -3
- package/icons/baseIcons/fal/falAngleDown.js +7 -7
- package/icons/baseIcons/fal/falAngleLeft.d.ts +3 -3
- package/icons/baseIcons/fal/falAngleLeft.js +7 -7
- package/icons/baseIcons/fal/falAngleRight.d.ts +3 -3
- package/icons/baseIcons/fal/falAngleRight.js +7 -7
- package/icons/baseIcons/fal/falAngleUp.d.ts +3 -3
- package/icons/baseIcons/fal/falAngleUp.js +7 -7
- package/icons/baseIcons/fal/falArrowAltDown.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowAltDown.js +7 -7
- package/icons/baseIcons/fal/falArrowAltLeft.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowAltLeft.js +7 -7
- package/icons/baseIcons/fal/falArrowAltRight.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowAltRight.js +7 -7
- package/icons/baseIcons/fal/falArrowAltUp.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowAltUp.js +7 -7
- package/icons/baseIcons/fal/falArrowCircleDown.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowCircleDown.js +7 -7
- package/icons/baseIcons/fal/falArrowCircleLeft.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowCircleLeft.js +7 -7
- package/icons/baseIcons/fal/falArrowCircleRight.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowCircleRight.js +7 -7
- package/icons/baseIcons/fal/falArrowCircleUp.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowCircleUp.js +7 -7
- package/icons/baseIcons/fal/falArrowDown.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowDown.js +7 -7
- package/icons/baseIcons/fal/falArrowFromBottom.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowFromBottom.js +7 -7
- package/icons/baseIcons/fal/falArrowFromLeft.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowFromLeft.js +7 -7
- package/icons/baseIcons/fal/falArrowFromRight.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowFromRight.js +7 -7
- package/icons/baseIcons/fal/falArrowFromTop.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowFromTop.js +7 -7
- package/icons/baseIcons/fal/falArrowLeft.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowLeft.js +7 -7
- package/icons/baseIcons/fal/falArrowRight.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowRight.js +7 -7
- package/icons/baseIcons/fal/falArrowToBottom.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowToBottom.js +7 -7
- package/icons/baseIcons/fal/falArrowToLeft.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowToLeft.js +7 -7
- package/icons/baseIcons/fal/falArrowToRight.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowToRight.js +7 -7
- package/icons/baseIcons/fal/falArrowToTop.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowToTop.js +7 -7
- package/icons/baseIcons/fal/falArrowUp.d.ts +3 -3
- package/icons/baseIcons/fal/falArrowUp.js +7 -7
- package/icons/baseIcons/fal/falArrows.d.ts +3 -3
- package/icons/baseIcons/fal/falArrows.js +7 -7
- package/icons/baseIcons/fal/falAward.d.ts +3 -3
- package/icons/baseIcons/fal/falAward.js +7 -7
- package/icons/baseIcons/fal/falBan.d.ts +3 -3
- package/icons/baseIcons/fal/falBan.js +7 -7
- package/icons/baseIcons/fal/falBars.d.ts +3 -0
- package/icons/baseIcons/fal/falBars.js +7 -0
- package/icons/baseIcons/fal/falBell.d.ts +3 -3
- package/icons/baseIcons/fal/falBell.js +7 -7
- package/icons/baseIcons/fal/falBookOpen.d.ts +3 -3
- package/icons/baseIcons/fal/falBookOpen.js +7 -7
- package/icons/baseIcons/fal/falBroadcastTower.d.ts +3 -3
- package/icons/baseIcons/fal/falBroadcastTower.js +7 -7
- package/icons/baseIcons/fal/falBroom.d.ts +3 -0
- package/icons/baseIcons/fal/falBroom.js +7 -0
- package/icons/baseIcons/fal/falBuilding.d.ts +3 -3
- package/icons/baseIcons/fal/falBuilding.js +7 -7
- package/icons/baseIcons/fal/falBullseye.d.ts +3 -3
- package/icons/baseIcons/fal/falBullseye.js +7 -7
- package/icons/baseIcons/fal/falCalendar.d.ts +3 -3
- package/icons/baseIcons/fal/falCalendar.js +7 -7
- package/icons/baseIcons/fal/falCalendarAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falCalendarAlt.js +7 -7
- package/icons/baseIcons/fal/falCamera.d.ts +3 -3
- package/icons/baseIcons/fal/falCamera.js +7 -7
- package/icons/baseIcons/fal/falCaretDown.d.ts +3 -3
- package/icons/baseIcons/fal/falCaretDown.js +7 -7
- package/icons/baseIcons/fal/falCaretLeft.d.ts +3 -3
- package/icons/baseIcons/fal/falCaretLeft.js +7 -7
- package/icons/baseIcons/fal/falCaretRight.d.ts +3 -3
- package/icons/baseIcons/fal/falCaretRight.js +7 -7
- package/icons/baseIcons/fal/falCaretUp.d.ts +3 -3
- package/icons/baseIcons/fal/falCaretUp.js +7 -7
- package/icons/baseIcons/fal/falCauldron.d.ts +3 -3
- package/icons/baseIcons/fal/falCauldron.js +7 -7
- package/icons/baseIcons/fal/falChartArea.d.ts +3 -3
- package/icons/baseIcons/fal/falChartArea.js +7 -7
- package/icons/baseIcons/fal/falChartBar.d.ts +3 -3
- package/icons/baseIcons/fal/falChartBar.js +7 -7
- package/icons/baseIcons/fal/falChartLine.d.ts +3 -3
- package/icons/baseIcons/fal/falChartLine.js +7 -7
- package/icons/baseIcons/fal/falChartLineDown.d.ts +3 -3
- package/icons/baseIcons/fal/falChartLineDown.js +7 -7
- package/icons/baseIcons/fal/falChartNetwork.d.ts +3 -3
- package/icons/baseIcons/fal/falChartNetwork.js +7 -7
- package/icons/baseIcons/fal/falChartPie.d.ts +3 -3
- package/icons/baseIcons/fal/falChartPie.js +7 -7
- package/icons/baseIcons/fal/falChartPieAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falChartPieAlt.js +7 -7
- package/icons/baseIcons/fal/falChartScatter.d.ts +3 -3
- package/icons/baseIcons/fal/falChartScatter.js +7 -7
- package/icons/baseIcons/fal/falCheck.d.ts +3 -3
- package/icons/baseIcons/fal/falCheck.js +7 -7
- package/icons/baseIcons/fal/falCheckCircle.d.ts +3 -3
- package/icons/baseIcons/fal/falCheckCircle.js +7 -7
- package/icons/baseIcons/fal/falCheckSquare.d.ts +3 -3
- package/icons/baseIcons/fal/falCheckSquare.js +7 -7
- package/icons/baseIcons/fal/falChevronCircleDown.d.ts +3 -3
- package/icons/baseIcons/fal/falChevronCircleDown.js +7 -7
- package/icons/baseIcons/fal/falChevronCircleLeft.d.ts +3 -3
- package/icons/baseIcons/fal/falChevronCircleLeft.js +7 -7
- package/icons/baseIcons/fal/falChevronCircleRight.d.ts +3 -3
- package/icons/baseIcons/fal/falChevronCircleRight.js +7 -7
- package/icons/baseIcons/fal/falChevronCircleUp.d.ts +3 -3
- package/icons/baseIcons/fal/falChevronCircleUp.js +7 -7
- package/icons/baseIcons/fal/falChevronDoubleDown.d.ts +3 -3
- package/icons/baseIcons/fal/falChevronDoubleDown.js +7 -7
- package/icons/baseIcons/fal/falChevronDoubleLeft.d.ts +3 -3
- package/icons/baseIcons/fal/falChevronDoubleLeft.js +7 -7
- package/icons/baseIcons/fal/falChevronDoubleRight.d.ts +3 -3
- package/icons/baseIcons/fal/falChevronDoubleRight.js +7 -7
- package/icons/baseIcons/fal/falChevronDoubleUp.d.ts +3 -3
- package/icons/baseIcons/fal/falChevronDoubleUp.js +7 -7
- package/icons/baseIcons/fal/falChevronDown.d.ts +3 -3
- package/icons/baseIcons/fal/falChevronDown.js +7 -7
- package/icons/baseIcons/fal/falChevronLeft.d.ts +3 -3
- package/icons/baseIcons/fal/falChevronLeft.js +7 -7
- package/icons/baseIcons/fal/falChevronRight.d.ts +3 -3
- package/icons/baseIcons/fal/falChevronRight.js +7 -7
- package/icons/baseIcons/fal/falChevronUp.d.ts +3 -3
- package/icons/baseIcons/fal/falChevronUp.js +7 -7
- package/icons/baseIcons/fal/falCircle.d.ts +3 -3
- package/icons/baseIcons/fal/falCircle.js +7 -7
- package/icons/baseIcons/fal/falCloud.d.ts +3 -3
- package/icons/baseIcons/fal/falCloud.js +7 -7
- package/icons/baseIcons/fal/falCloudShowersHeavy.d.ts +3 -3
- package/icons/baseIcons/fal/falCloudShowersHeavy.js +7 -7
- package/icons/baseIcons/fal/falCloudSnow.d.ts +3 -3
- package/icons/baseIcons/fal/falCloudSnow.js +7 -7
- package/icons/baseIcons/fal/falCloudSun.d.ts +3 -3
- package/icons/baseIcons/fal/falCloudSun.js +7 -7
- package/icons/baseIcons/fal/falCloudSunRain.d.ts +3 -3
- package/icons/baseIcons/fal/falCloudSunRain.js +7 -7
- package/icons/baseIcons/fal/falCloudUpload.d.ts +3 -3
- package/icons/baseIcons/fal/falCloudUpload.js +7 -7
- package/icons/baseIcons/fal/falCode.d.ts +3 -3
- package/icons/baseIcons/fal/falCode.js +7 -7
- package/icons/baseIcons/fal/falCog.d.ts +3 -3
- package/icons/baseIcons/fal/falCog.js +7 -7
- package/icons/baseIcons/fal/falCogs.d.ts +3 -3
- package/icons/baseIcons/fal/falCogs.js +7 -7
- package/icons/baseIcons/fal/falComment.d.ts +3 -3
- package/icons/baseIcons/fal/falComment.js +7 -7
- package/icons/baseIcons/fal/falCommentAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falCommentAlt.js +7 -7
- package/icons/baseIcons/fal/falCompressAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falCompressAlt.js +7 -7
- package/icons/baseIcons/fal/falCopy.d.ts +3 -3
- package/icons/baseIcons/fal/falCopy.js +7 -7
- package/icons/baseIcons/fal/falCreditCard.d.ts +3 -3
- package/icons/baseIcons/fal/falCreditCard.js +7 -7
- package/icons/baseIcons/fal/falDatabase.d.ts +3 -3
- package/icons/baseIcons/fal/falDatabase.js +7 -7
- package/icons/baseIcons/fal/falDotCircle.d.ts +3 -3
- package/icons/baseIcons/fal/falDotCircle.js +7 -7
- package/icons/baseIcons/fal/falDownload.d.ts +3 -3
- package/icons/baseIcons/fal/falDownload.js +7 -7
- package/icons/baseIcons/fal/falEdit.d.ts +3 -3
- package/icons/baseIcons/fal/falEdit.js +7 -7
- package/icons/baseIcons/fal/falEllipsisH.d.ts +3 -3
- package/icons/baseIcons/fal/falEllipsisH.js +7 -7
- package/icons/baseIcons/fal/falEllipsisV.d.ts +3 -3
- package/icons/baseIcons/fal/falEllipsisV.js +7 -7
- package/icons/baseIcons/fal/falEnvelope.d.ts +3 -3
- package/icons/baseIcons/fal/falEnvelope.js +7 -7
- package/icons/baseIcons/fal/falExchange.d.ts +3 -3
- package/icons/baseIcons/fal/falExchange.js +7 -7
- package/icons/baseIcons/fal/falExclamationCircle.d.ts +3 -3
- package/icons/baseIcons/fal/falExclamationCircle.js +7 -7
- package/icons/baseIcons/fal/falExclamationTriangle.d.ts +3 -3
- package/icons/baseIcons/fal/falExclamationTriangle.js +7 -7
- package/icons/baseIcons/fal/falExpandAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falExpandAlt.js +7 -7
- package/icons/baseIcons/fal/falExternalLink.d.ts +3 -3
- package/icons/baseIcons/fal/falExternalLink.js +7 -7
- package/icons/baseIcons/fal/falEye.d.ts +3 -3
- package/icons/baseIcons/fal/falEye.js +7 -7
- package/icons/baseIcons/fal/falEyeSlash.d.ts +3 -3
- package/icons/baseIcons/fal/falEyeSlash.js +7 -7
- package/icons/baseIcons/fal/falFile.d.ts +3 -3
- package/icons/baseIcons/fal/falFile.js +7 -7
- package/icons/baseIcons/fal/falFileAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falFileAlt.js +7 -7
- package/icons/baseIcons/fal/falFileArchive.d.ts +3 -3
- package/icons/baseIcons/fal/falFileArchive.js +7 -7
- package/icons/baseIcons/fal/falFileAudio.d.ts +3 -3
- package/icons/baseIcons/fal/falFileAudio.js +7 -7
- package/icons/baseIcons/fal/falFileCertificate.d.ts +3 -3
- package/icons/baseIcons/fal/falFileCertificate.js +7 -7
- package/icons/baseIcons/fal/falFileChartLine.d.ts +3 -3
- package/icons/baseIcons/fal/falFileChartLine.js +7 -7
- package/icons/baseIcons/fal/falFileChartPie.d.ts +3 -3
- package/icons/baseIcons/fal/falFileChartPie.js +7 -7
- package/icons/baseIcons/fal/falFileCheck.d.ts +3 -3
- package/icons/baseIcons/fal/falFileCheck.js +7 -7
- package/icons/baseIcons/fal/falFileCode.d.ts +3 -3
- package/icons/baseIcons/fal/falFileCode.js +7 -7
- package/icons/baseIcons/fal/falFileCsv.d.ts +3 -3
- package/icons/baseIcons/fal/falFileCsv.js +7 -7
- package/icons/baseIcons/fal/falFileEdit.d.ts +3 -3
- package/icons/baseIcons/fal/falFileEdit.js +7 -7
- package/icons/baseIcons/fal/falFileExcel.d.ts +3 -3
- package/icons/baseIcons/fal/falFileExcel.js +7 -7
- package/icons/baseIcons/fal/falFileImage.d.ts +3 -3
- package/icons/baseIcons/fal/falFileImage.js +7 -7
- package/icons/baseIcons/fal/falFilePdf.d.ts +3 -3
- package/icons/baseIcons/fal/falFilePdf.js +7 -7
- package/icons/baseIcons/fal/falFilePlus.d.ts +3 -3
- package/icons/baseIcons/fal/falFilePlus.js +7 -7
- package/icons/baseIcons/fal/falFilePowerpoint.d.ts +3 -3
- package/icons/baseIcons/fal/falFilePowerpoint.js +7 -7
- package/icons/baseIcons/fal/falFileSpreadsheet.d.ts +3 -3
- package/icons/baseIcons/fal/falFileSpreadsheet.js +7 -7
- package/icons/baseIcons/fal/falFileVideo.d.ts +3 -3
- package/icons/baseIcons/fal/falFileVideo.js +7 -7
- package/icons/baseIcons/fal/falFileWord.d.ts +3 -3
- package/icons/baseIcons/fal/falFileWord.js +7 -7
- package/icons/baseIcons/fal/falFilter.d.ts +3 -3
- package/icons/baseIcons/fal/falFilter.js +7 -7
- package/icons/baseIcons/fal/falFlag.d.ts +3 -3
- package/icons/baseIcons/fal/falFlag.js +7 -7
- package/icons/baseIcons/fal/falFolder.d.ts +3 -3
- package/icons/baseIcons/fal/falFolder.js +7 -7
- package/icons/baseIcons/fal/falFolderOpen.d.ts +3 -3
- package/icons/baseIcons/fal/falFolderOpen.js +7 -7
- package/icons/baseIcons/fal/falFolderPlus.d.ts +3 -3
- package/icons/baseIcons/fal/falFolderPlus.js +7 -7
- package/icons/baseIcons/fal/falFolders.d.ts +3 -3
- package/icons/baseIcons/fal/falFolders.js +7 -7
- package/icons/baseIcons/fal/falGlassesAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falGlassesAlt.js +7 -7
- package/icons/baseIcons/fal/falGlobe.d.ts +3 -3
- package/icons/baseIcons/fal/falGlobe.js +7 -7
- package/icons/baseIcons/fal/falHome.d.ts +3 -3
- package/icons/baseIcons/fal/falHome.js +7 -7
- package/icons/baseIcons/fal/falHourglass.d.ts +3 -3
- package/icons/baseIcons/fal/falHourglass.js +7 -7
- package/icons/baseIcons/fal/falImage.d.ts +3 -3
- package/icons/baseIcons/fal/falImage.js +7 -7
- package/icons/baseIcons/fal/falInfoCircle.d.ts +3 -3
- package/icons/baseIcons/fal/falInfoCircle.js +7 -7
- package/icons/baseIcons/fal/falKey.d.ts +3 -3
- package/icons/baseIcons/fal/falKey.js +7 -7
- package/icons/baseIcons/fal/falLayerPlus.d.ts +3 -3
- package/icons/baseIcons/fal/falLayerPlus.js +7 -7
- package/icons/baseIcons/fal/falLink.d.ts +3 -3
- package/icons/baseIcons/fal/falLink.js +7 -7
- package/icons/baseIcons/fal/falList.d.ts +3 -3
- package/icons/baseIcons/fal/falList.js +7 -7
- package/icons/baseIcons/fal/falLockAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falLockAlt.js +7 -7
- package/icons/baseIcons/fal/falLongArrowDown.d.ts +3 -3
- package/icons/baseIcons/fal/falLongArrowDown.js +7 -7
- package/icons/baseIcons/fal/falLongArrowLeft.d.ts +3 -3
- package/icons/baseIcons/fal/falLongArrowLeft.js +7 -7
- package/icons/baseIcons/fal/falLongArrowRight.d.ts +3 -3
- package/icons/baseIcons/fal/falLongArrowRight.js +7 -7
- package/icons/baseIcons/fal/falLongArrowUp.d.ts +3 -3
- package/icons/baseIcons/fal/falLongArrowUp.js +7 -7
- package/icons/baseIcons/fal/falMap.d.ts +3 -3
- package/icons/baseIcons/fal/falMap.js +7 -7
- package/icons/baseIcons/fal/falMapMarked.d.ts +3 -3
- package/icons/baseIcons/fal/falMapMarked.js +7 -7
- package/icons/baseIcons/fal/falMapMarkedAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falMapMarkedAlt.js +7 -7
- package/icons/baseIcons/fal/falMapMarker.d.ts +3 -3
- package/icons/baseIcons/fal/falMapMarker.js +7 -7
- package/icons/baseIcons/fal/falMapMarkerAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falMapMarkerAlt.js +7 -7
- package/icons/baseIcons/fal/falMapMarkerAltSlash.d.ts +3 -3
- package/icons/baseIcons/fal/falMapMarkerAltSlash.js +7 -7
- package/icons/baseIcons/fal/falMapMarkerCheck.d.ts +3 -3
- package/icons/baseIcons/fal/falMapMarkerCheck.js +7 -7
- package/icons/baseIcons/fal/falMapMarkerExclamation.d.ts +3 -3
- package/icons/baseIcons/fal/falMapMarkerExclamation.js +7 -7
- package/icons/baseIcons/fal/falMinus.d.ts +3 -3
- package/icons/baseIcons/fal/falMinus.js +7 -7
- package/icons/baseIcons/fal/falPause.d.ts +3 -3
- package/icons/baseIcons/fal/falPause.js +7 -7
- package/icons/baseIcons/fal/falPauseCircle.d.ts +3 -3
- package/icons/baseIcons/fal/falPauseCircle.js +7 -7
- package/icons/baseIcons/fal/falPen.d.ts +3 -3
- package/icons/baseIcons/fal/falPen.js +7 -7
- package/icons/baseIcons/fal/falPlay.d.ts +3 -3
- package/icons/baseIcons/fal/falPlay.js +7 -7
- package/icons/baseIcons/fal/falPlayCircle.d.ts +3 -3
- package/icons/baseIcons/fal/falPlayCircle.js +7 -7
- package/icons/baseIcons/fal/falPlug.d.ts +3 -3
- package/icons/baseIcons/fal/falPlug.js +7 -7
- package/icons/baseIcons/fal/falPlus.d.ts +3 -3
- package/icons/baseIcons/fal/falPlus.js +7 -7
- package/icons/baseIcons/fal/falPlusCircle.d.ts +3 -3
- package/icons/baseIcons/fal/falPlusCircle.js +7 -7
- package/icons/baseIcons/fal/falPlusSquare.d.ts +3 -3
- package/icons/baseIcons/fal/falPlusSquare.js +7 -7
- package/icons/baseIcons/fal/falPrint.d.ts +3 -3
- package/icons/baseIcons/fal/falPrint.js +7 -7
- package/icons/baseIcons/fal/falPuzzlePiece.d.ts +3 -3
- package/icons/baseIcons/fal/falPuzzlePiece.js +7 -7
- package/icons/baseIcons/fal/falReceipt.d.ts +3 -3
- package/icons/baseIcons/fal/falReceipt.js +7 -7
- package/icons/baseIcons/fal/falRedo.d.ts +3 -3
- package/icons/baseIcons/fal/falRedo.js +7 -7
- package/icons/baseIcons/fal/falSave.d.ts +3 -3
- package/icons/baseIcons/fal/falSave.js +7 -7
- package/icons/baseIcons/fal/falSearch.d.ts +3 -3
- package/icons/baseIcons/fal/falSearch.js +7 -7
- package/icons/baseIcons/fal/falSearchMinus.d.ts +3 -0
- package/icons/baseIcons/fal/falSearchMinus.js +7 -0
- package/icons/baseIcons/fal/falSearchPlus.d.ts +3 -3
- package/icons/baseIcons/fal/falSearchPlus.js +7 -7
- package/icons/baseIcons/fal/falServer.d.ts +3 -3
- package/icons/baseIcons/fal/falServer.js +7 -7
- package/icons/baseIcons/fal/falShare.d.ts +3 -3
- package/icons/baseIcons/fal/falShare.js +7 -7
- package/icons/baseIcons/fal/falShareAll.d.ts +3 -3
- package/icons/baseIcons/fal/falShareAll.js +7 -7
- package/icons/baseIcons/fal/falShareAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falShareAlt.js +7 -7
- package/icons/baseIcons/fal/falShieldAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falShieldAlt.js +7 -7
- package/icons/baseIcons/fal/falShieldCheck.d.ts +3 -3
- package/icons/baseIcons/fal/falShieldCheck.js +7 -7
- package/icons/baseIcons/fal/falShip.d.ts +3 -3
- package/icons/baseIcons/fal/falShip.js +7 -7
- package/icons/baseIcons/fal/falShoppingBasket.d.ts +3 -3
- package/icons/baseIcons/fal/falShoppingBasket.js +7 -7
- package/icons/baseIcons/fal/falSignIn.d.ts +3 -3
- package/icons/baseIcons/fal/falSignIn.js +7 -7
- package/icons/baseIcons/fal/falSignInAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falSignInAlt.js +7 -7
- package/icons/baseIcons/fal/falSignOut.d.ts +3 -3
- package/icons/baseIcons/fal/falSignOut.js +7 -7
- package/icons/baseIcons/fal/falSignOutAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falSignOutAlt.js +7 -7
- package/icons/baseIcons/fal/falSlidersV.d.ts +3 -3
- package/icons/baseIcons/fal/falSlidersV.js +7 -7
- package/icons/baseIcons/fal/falSnowBlowing.d.ts +3 -3
- package/icons/baseIcons/fal/falSnowBlowing.js +7 -7
- package/icons/baseIcons/fal/falSnowflake.d.ts +3 -3
- package/icons/baseIcons/fal/falSnowflake.js +7 -7
- package/icons/baseIcons/fal/falSolarPanel.d.ts +3 -3
- package/icons/baseIcons/fal/falSolarPanel.js +7 -7
- package/icons/baseIcons/fal/falSort.d.ts +3 -3
- package/icons/baseIcons/fal/falSort.js +7 -7
- package/icons/baseIcons/fal/falSpinner.d.ts +3 -3
- package/icons/baseIcons/fal/falSpinner.js +7 -7
- package/icons/baseIcons/fal/falSquare.d.ts +3 -3
- package/icons/baseIcons/fal/falSquare.js +7 -7
- package/icons/baseIcons/fal/falStepForward.d.ts +3 -3
- package/icons/baseIcons/fal/falStepForward.js +7 -7
- package/icons/baseIcons/fal/falStop.d.ts +3 -3
- package/icons/baseIcons/fal/falStop.js +7 -7
- package/icons/baseIcons/fal/falStopCircle.d.ts +3 -3
- package/icons/baseIcons/fal/falStopCircle.js +7 -7
- package/icons/baseIcons/fal/falStopwatch.d.ts +3 -3
- package/icons/baseIcons/fal/falStopwatch.js +7 -7
- package/icons/baseIcons/fal/falSuitcase.d.ts +3 -3
- package/icons/baseIcons/fal/falSuitcase.js +7 -7
- package/icons/baseIcons/fal/falSun.d.ts +3 -3
- package/icons/baseIcons/fal/falSun.js +7 -7
- package/icons/baseIcons/fal/falSync.d.ts +3 -3
- package/icons/baseIcons/fal/falSync.js +7 -7
- package/icons/baseIcons/fal/falTachometer.d.ts +3 -3
- package/icons/baseIcons/fal/falTachometer.js +7 -7
- package/icons/baseIcons/fal/falTemperatureHigh.d.ts +3 -3
- package/icons/baseIcons/fal/falTemperatureHigh.js +7 -7
- package/icons/baseIcons/fal/falTh.d.ts +3 -3
- package/icons/baseIcons/fal/falTh.js +7 -7
- package/icons/baseIcons/fal/falThLarge.d.ts +3 -3
- package/icons/baseIcons/fal/falThLarge.js +7 -7
- package/icons/baseIcons/fal/falThList.d.ts +3 -3
- package/icons/baseIcons/fal/falThList.js +7 -7
- package/icons/baseIcons/fal/falTimes.d.ts +3 -3
- package/icons/baseIcons/fal/falTimes.js +7 -7
- package/icons/baseIcons/fal/falTimesCircle.d.ts +3 -3
- package/icons/baseIcons/fal/falTimesCircle.js +7 -7
- package/icons/baseIcons/fal/falToggleOff.d.ts +3 -3
- package/icons/baseIcons/fal/falToggleOff.js +7 -7
- package/icons/baseIcons/fal/falToggleOn.d.ts +3 -3
- package/icons/baseIcons/fal/falToggleOn.js +7 -7
- package/icons/baseIcons/fal/falTrashAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falTrashAlt.js +7 -7
- package/icons/baseIcons/fal/falUnlockAlt.d.ts +3 -3
- package/icons/baseIcons/fal/falUnlockAlt.js +7 -7
- package/icons/baseIcons/fal/falUser.d.ts +3 -3
- package/icons/baseIcons/fal/falUser.js +7 -7
- package/icons/baseIcons/fal/falUserChart.d.ts +3 -3
- package/icons/baseIcons/fal/falUserChart.js +7 -7
- package/icons/baseIcons/fal/falUserCircle.d.ts +3 -3
- package/icons/baseIcons/fal/falUserCircle.js +7 -7
- package/icons/baseIcons/fal/falUserCog.d.ts +3 -3
- package/icons/baseIcons/fal/falUserCog.js +7 -7
- package/icons/baseIcons/fal/falUserEdit.d.ts +3 -3
- package/icons/baseIcons/fal/falUserEdit.js +7 -7
- package/icons/baseIcons/fal/falUserFriends.d.ts +3 -3
- package/icons/baseIcons/fal/falUserFriends.js +7 -7
- package/icons/baseIcons/fal/falUserPlus.d.ts +3 -3
- package/icons/baseIcons/fal/falUserPlus.js +7 -7
- package/icons/baseIcons/fal/falUserShield.d.ts +3 -3
- package/icons/baseIcons/fal/falUserShield.js +7 -7
- package/icons/baseIcons/fal/falUserTimes.d.ts +3 -3
- package/icons/baseIcons/fal/falUserTimes.js +7 -7
- package/icons/baseIcons/fal/falUsers.d.ts +3 -3
- package/icons/baseIcons/fal/falUsers.js +7 -7
- package/icons/baseIcons/fal/falUsersClass.d.ts +3 -3
- package/icons/baseIcons/fal/falUsersClass.js +7 -7
- package/icons/baseIcons/fal/falWater.d.ts +3 -3
- package/icons/baseIcons/fal/falWater.js +7 -7
- package/icons/baseIcons/fal/falWind.d.ts +3 -3
- package/icons/baseIcons/fal/falWind.js +7 -7
- package/icons/baseIcons/fal/falWindTurbine.d.ts +3 -3
- package/icons/baseIcons/fal/falWindTurbine.js +7 -7
- package/icons/baseIcons/fal/falWrench.d.ts +3 -3
- package/icons/baseIcons/fal/falWrench.js +7 -7
- package/icons/baseIcons/fas/fasCaretDown.d.ts +3 -3
- package/icons/baseIcons/fas/fasCaretDown.js +7 -7
- package/icons/baseIcons/fas/fasCaretLeft.d.ts +3 -3
- package/icons/baseIcons/fas/fasCaretLeft.js +7 -7
- package/icons/baseIcons/fas/fasCaretRight.d.ts +3 -3
- package/icons/baseIcons/fas/fasCaretRight.js +7 -7
- package/icons/baseIcons/fas/fasCaretUp.d.ts +3 -3
- package/icons/baseIcons/fas/fasCaretUp.js +7 -7
- package/icons/baseIcons/fas/fasCheckCircle.d.ts +3 -0
- package/icons/baseIcons/fas/fasCheckCircle.js +7 -0
- package/icons/baseIcons/fas/fasDiamond.d.ts +3 -3
- package/icons/baseIcons/fas/fasDiamond.js +7 -7
- package/icons/baseIcons/fas/fasFolder.d.ts +3 -3
- package/icons/baseIcons/fas/fasFolder.js +7 -7
- package/icons/baseIcons/fas/fasMapMarkerAlt.d.ts +3 -3
- package/icons/baseIcons/fas/fasMapMarkerAlt.js +7 -7
- package/icons/baseIcons/fas/fasMapMarkerExclamation.d.ts +3 -3
- package/icons/baseIcons/fas/fasMapMarkerExclamation.js +7 -7
- package/icons/baseIcons/fas/fasQuoteLeft.d.ts +3 -3
- package/icons/baseIcons/fas/fasQuoteLeft.js +7 -7
- package/icons/baseIcons/fas/fasQuoteRight.d.ts +3 -3
- package/icons/baseIcons/fas/fasQuoteRight.js +7 -7
- package/icons/baseIcons/fas/fasSolarPanel.d.ts +3 -3
- package/icons/baseIcons/fas/fasSolarPanel.js +7 -7
- package/icons/baseIcons/fas/fasSort.d.ts +3 -3
- package/icons/baseIcons/fas/fasSort.js +7 -7
- package/icons/baseIcons/fas/fasStar.d.ts +3 -3
- package/icons/baseIcons/fas/fasStar.js +7 -7
- package/icons/baseIcons/fas/fasWindTurbine.d.ts +3 -3
- package/icons/baseIcons/fas/fasWindTurbine.js +7 -7
- package/icons/baseIcons/types.d.ts +1 -1
- package/icons/baseIcons/types.js +2 -2
- package/icons/consts.d.ts +6 -6
- package/icons/consts.js +46 -46
- package/icons/index.d.ts +3 -3
- package/icons/index.js +20 -20
- package/icons/library.d.ts +11 -11
- package/icons/library.js +60 -60
- package/icons/types.d.ts +21 -21
- package/icons/types.js +2 -2
- package/index.d.ts +27 -27
- package/index.js +39 -39
- package/input/consts.d.ts +2 -10
- package/input/consts.js +27 -35
- package/input/helpers.d.ts +2 -2
- package/input/helpers.js +9 -9
- package/input/index.d.ts +3 -3
- package/input/index.js +20 -20
- package/input/input.d.ts +6 -6
- package/input/input.js +129 -127
- package/input/input.types.d.ts +42 -40
- package/input/input.types.js +2 -2
- package/input/theme.d.ts +39 -39
- package/input/theme.js +50 -50
- package/label/index.d.ts +3 -3
- package/label/index.js +20 -20
- package/label/label.d.ts +5 -5
- package/label/label.js +71 -71
- package/label/label.types.d.ts +20 -20
- package/label/label.types.js +2 -2
- package/label/theme.d.ts +61 -61
- package/label/theme.js +107 -107
- package/link/index.d.ts +3 -3
- package/link/index.js +20 -20
- package/link/link.d.ts +5 -5
- package/link/link.js +53 -53
- package/link/link.types.d.ts +11 -11
- package/link/link.types.js +2 -2
- package/link/theme.d.ts +35 -35
- package/link/theme.js +50 -50
- package/list/context.d.ts +4 -4
- package/list/context.js +23 -23
- package/list/index.d.ts +6 -6
- package/list/index.js +23 -23
- package/list/list.d.ts +13 -13
- package/list/list.js +81 -81
- package/list/list.types.d.ts +8 -8
- package/list/list.types.js +2 -2
- package/list/listHeading.d.ts +3 -3
- package/list/listHeading.js +30 -30
- package/list/listIcon.d.ts +3 -3
- package/list/listIcon.js +30 -30
- package/list/listItem.d.ts +5 -5
- package/list/listItem.js +73 -73
- package/list/listItem.types.d.ts +16 -16
- package/list/listItem.types.js +2 -2
- package/list/theme.d.ts +80 -80
- package/list/theme.js +90 -90
- package/p/index.d.ts +3 -3
- package/p/index.js +20 -20
- package/p/p.d.ts +5 -5
- package/p/p.js +52 -52
- package/p/p.types.d.ts +9 -9
- package/p/p.types.js +2 -2
- package/p/theme.d.ts +29 -29
- package/p/theme.js +33 -33
- package/package.json +2 -2
- package/radio/context.d.ts +4 -4
- package/radio/context.js +23 -23
- package/radio/index.d.ts +6 -6
- package/radio/index.js +23 -23
- package/radio/radio.d.ts +7 -7
- package/radio/radio.js +66 -66
- package/radio/radio.types.d.ts +24 -24
- package/radio/radio.types.js +2 -2
- package/radio/radioGroup.d.ts +5 -5
- package/radio/radioGroup.js +98 -98
- package/radio/radioGroup.types.d.ts +13 -13
- package/radio/radioGroup.types.js +2 -2
- package/radio/theme.d.ts +48 -48
- package/radio/theme.js +56 -56
- package/skeleton/index.d.ts +3 -3
- package/skeleton/index.js +20 -20
- package/skeleton/skeleton.d.ts +5 -5
- package/skeleton/skeleton.js +50 -50
- package/skeleton/skeleton.types.d.ts +6 -6
- package/skeleton/skeleton.types.js +2 -2
- package/skeleton/theme.d.ts +36 -36
- package/skeleton/theme.js +47 -47
- package/spinner/consts.d.ts +36 -36
- package/spinner/consts.js +26 -26
- package/spinner/index.d.ts +3 -3
- package/spinner/index.js +20 -20
- package/spinner/spinner.d.ts +4 -4
- package/spinner/spinner.js +61 -61
- package/spinner/spinner.types.d.ts +15 -15
- package/spinner/spinner.types.js +2 -2
- package/spinner/theme.d.ts +67 -67
- package/spinner/theme.js +73 -73
- package/styles/animations.d.ts +9 -9
- package/styles/animations.js +12 -12
- package/styles/fontFaces.d.ts +2 -2
- package/styles/fontFaces.js +4 -4
- package/styles/helpers.d.ts +4 -4
- package/styles/helpers.js +8 -8
- package/styles/index.d.ts +3 -3
- package/styles/index.js +20 -20
- package/svg/cache.d.ts +15 -15
- package/svg/cache.js +36 -36
- package/svg/helpers.d.ts +10 -10
- package/svg/helpers.js +33 -33
- package/svg/index.d.ts +3 -3
- package/svg/index.js +20 -20
- package/svg/svg.d.ts +5 -5
- package/svg/svg.js +165 -165
- package/svg/svg.types.d.ts +10 -10
- package/svg/svg.types.js +2 -2
- package/switch/context.d.ts +4 -4
- package/switch/context.js +23 -23
- package/switch/index.d.ts +7 -7
- package/switch/index.js +24 -24
- package/switch/switch.d.ts +11 -11
- package/switch/switch.js +132 -132
- package/switch/switch.types.d.ts +21 -21
- package/switch/switch.types.js +2 -2
- package/switch/switchButton.d.ts +8 -8
- package/switch/switchButton.js +133 -131
- package/switch/switchButton.types.d.ts +19 -19
- package/switch/switchButton.types.js +2 -2
- package/switch/switchLabel.d.ts +3 -3
- package/switch/switchLabel.js +30 -30
- package/switch/theme.d.ts +87 -87
- package/switch/theme.js +113 -113
- package/system/animations.d.ts +11 -11
- package/system/animations.js +2 -2
- package/system/backgrounds.d.ts +13 -13
- package/system/backgrounds.js +2 -2
- package/system/borders.d.ts +142 -142
- package/system/borders.js +2 -2
- package/system/colors.d.ts +3 -3
- package/system/colors.js +2 -2
- package/system/custom.d.ts +14 -10
- package/system/custom.js +32 -29
- package/system/effects.d.ts +22 -21
- package/system/effects.js +2 -2
- package/system/flexboxes.d.ts +61 -61
- package/system/flexboxes.js +2 -2
- package/system/index.d.ts +16 -16
- package/system/index.js +33 -33
- package/system/interactivity.d.ts +26 -26
- package/system/interactivity.js +2 -2
- package/system/layout.d.ts +73 -73
- package/system/layout.js +2 -2
- package/system/sizing.d.ts +36 -36
- package/system/sizing.js +2 -2
- package/system/space.d.ts +92 -92
- package/system/space.js +2 -2
- package/system/system.d.ts +17 -17
- package/system/system.js +5 -5
- package/system/transforms.d.ts +57 -57
- package/system/transforms.js +2 -2
- package/system/transitions.d.ts +29 -29
- package/system/transitions.js +2 -2
- package/system/typography.d.ts +75 -75
- package/system/typography.js +2 -2
- package/t/index.d.ts +3 -3
- package/t/index.js +20 -20
- package/t/t.d.ts +5 -5
- package/t/t.js +54 -54
- package/t/t.types.d.ts +10 -11
- package/t/t.types.js +2 -2
- package/t/theme.d.ts +21 -21
- package/t/theme.js +25 -25
- package/textarea/helpers.d.ts +2 -2
- package/textarea/helpers.js +9 -9
- package/textarea/index.d.ts +3 -3
- package/textarea/index.js +20 -20
- package/textarea/textarea.d.ts +6 -6
- package/textarea/textarea.js +116 -116
- package/textarea/textarea.types.d.ts +25 -25
- package/textarea/textarea.types.js +2 -2
- package/textarea/theme.d.ts +21 -21
- package/textarea/theme.js +31 -31
- package/theme/components.d.ts +787 -787
- package/theme/components.js +47 -47
- package/theme/defaultTheme.d.ts +950 -939
- package/theme/defaultTheme.js +20 -20
- package/theme/foundations/animations.d.ts +12 -12
- package/theme/foundations/animations.js +13 -13
- package/theme/foundations/borders.d.ts +2 -2
- package/theme/foundations/borders.js +3 -3
- package/theme/foundations/colors.d.ts +171 -171
- package/theme/foundations/colors.js +96 -96
- package/theme/foundations/durations.d.ts +7 -7
- package/theme/foundations/durations.js +8 -8
- package/theme/foundations/fontSizes.d.ts +7 -7
- package/theme/foundations/fontSizes.js +8 -8
- package/theme/foundations/fontWeights.d.ts +7 -7
- package/theme/foundations/fontWeights.js +8 -8
- package/theme/foundations/fonts.d.ts +4 -4
- package/theme/foundations/fonts.js +5 -5
- package/theme/foundations/index.d.ts +164 -153
- package/theme/foundations/index.js +41 -41
- package/theme/foundations/radii.d.ts +8 -8
- package/theme/foundations/radii.js +9 -9
- package/theme/foundations/ringWidths.d.ts +2 -2
- package/theme/foundations/ringWidths.js +3 -3
- package/theme/foundations/screens.d.ts +8 -8
- package/theme/foundations/screens.js +9 -9
- package/theme/foundations/shadows.d.ts +20 -9
- package/theme/foundations/shadows.js +25 -11
- package/theme/foundations/sizes.d.ts +2 -2
- package/theme/foundations/sizes.js +3 -3
- package/theme/foundations/spaces.d.ts +2 -2
- package/theme/foundations/spaces.js +3 -3
- package/theme/foundations/transformers.d.ts +4 -4
- package/theme/foundations/transformers.js +7 -7
- package/theme/foundations/transforms.d.ts +2 -2
- package/theme/foundations/transforms.js +3 -3
- package/theme/foundations/transitions.d.ts +2 -2
- package/theme/foundations/transitions.js +3 -3
- package/theme/foundations/zIndices.d.ts +2 -2
- package/theme/foundations/zIndices.js +3 -3
- package/theme/index.d.ts +6 -6
- package/theme/index.js +25 -25
- package/theme/types.d.ts +21 -21
- package/theme/types.js +2 -2
- package/tile/index.d.ts +3 -3
- package/tile/index.js +20 -20
- package/tile/theme.d.ts +23 -23
- package/tile/theme.js +27 -27
- package/tile/tile.d.ts +3 -3
- package/tile/tile.js +46 -46
- package/tile/tile.types.d.ts +5 -5
- package/tile/tile.types.js +2 -2
- package/utils/function.d.ts +5 -5
- package/utils/function.js +36 -36
- package/utils/index.d.ts +4 -4
- package/utils/index.js +16 -16
- package/utils/object.d.ts +27 -27
- package/utils/object.js +93 -93
- package/utils/styles.d.ts +4 -0
- package/utils/styles.js +35 -0
- package/utils/types.d.ts +3 -3
- package/utils/types.js +3 -3
- package/alert/alertMessage.d.ts +0 -3
- package/alert/alertMessage.js +0 -31
- package/icons/baseIcons/cus/cusCheckboxSelected.js +0 -7
- package/icons/baseIcons/cus/cusRadio.js +0 -7
- package/icons/baseIcons/cus/cusSquareMinus.js +0 -7
- package/utils/dom.d.ts +0 -2
- package/utils/dom.js +0 -12
package/core/utils.js
CHANGED
|
@@ -1,209 +1,209 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable @typescript-eslint/ban-types */
|
|
3
|
-
var __assign = (this && this.__assign) || function () {
|
|
4
|
-
__assign = Object.assign || function(t) {
|
|
5
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
-
s = arguments[i];
|
|
7
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
8
|
-
t[p] = s[p];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
return __assign.apply(this, arguments);
|
|
13
|
-
};
|
|
14
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
-
if (k2 === undefined) k2 = k;
|
|
16
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
-
}) : (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
o[k2] = m[k];
|
|
20
|
-
}));
|
|
21
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
-
}) : function(o, v) {
|
|
24
|
-
o["default"] = v;
|
|
25
|
-
});
|
|
26
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
-
if (mod && mod.__esModule) return mod;
|
|
28
|
-
var result = {};
|
|
29
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
-
__setModuleDefault(result, mod);
|
|
31
|
-
return result;
|
|
32
|
-
};
|
|
33
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
34
|
-
var t = {};
|
|
35
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
36
|
-
t[p] = s[p];
|
|
37
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
38
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
39
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
40
|
-
t[p[i]] = s[p[i]];
|
|
41
|
-
}
|
|
42
|
-
return t;
|
|
43
|
-
};
|
|
44
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
|
-
};
|
|
47
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.vui = exports.useUp = exports.useTheme = exports.useTh = exports.useStyleConfig = exports.useMedia = exports.useDown = exports.useBetween = exports.th = exports.shouldForwardProp = exports.omitThemingProps = exports.mediaUp = exports.mediaDown = exports.mediaBetween = exports.forwardPropConfig = exports.extendTheme = exports.createContext = void 0;
|
|
49
|
-
var styled_components_1 = require("@xstyled/styled-components");
|
|
50
|
-
var react_1 = __importStar(require("react"));
|
|
51
|
-
var styled_components_2 = require("styled-components");
|
|
52
|
-
var theme_1 = __importDefault(require("../theme"));
|
|
53
|
-
var utils_1 = require("../utils");
|
|
54
|
-
/** Generic function to create new Context and context access hook. */
|
|
55
|
-
function createContext(options) {
|
|
56
|
-
if (options === void 0) { options = {}; }
|
|
57
|
-
var _a = options.errorMessage, errorMessage = _a === void 0 ? 'Context can only be accessed by components wrapped with the Provider.' : _a, isOptional = options.isOptional, name = options.name;
|
|
58
|
-
var Context = react_1.default.createContext(undefined);
|
|
59
|
-
Context.displayName = name;
|
|
60
|
-
function useContext() {
|
|
61
|
-
var context = react_1.default.useContext(Context);
|
|
62
|
-
if (!isOptional && context === undefined)
|
|
63
|
-
throw new Error(errorMessage);
|
|
64
|
-
return context;
|
|
65
|
-
}
|
|
66
|
-
return [Context.Provider, useContext];
|
|
67
|
-
}
|
|
68
|
-
exports.createContext = createContext;
|
|
69
|
-
/** Merges provided theme extensions and overrides with default VUI theme */
|
|
70
|
-
function extendTheme(extensions) {
|
|
71
|
-
return utils_1.mergeWith(theme_1.default, extensions);
|
|
72
|
-
}
|
|
73
|
-
exports.extendTheme = extendTheme;
|
|
74
|
-
/**
|
|
75
|
-
* Provides configuration to the 'styled' function, which filters out xstyled system props
|
|
76
|
-
* Return type is cast to {} in order to avoid messing up styled component's actual props definition.
|
|
77
|
-
*/
|
|
78
|
-
function forwardPropConfig(generator) {
|
|
79
|
-
return {
|
|
80
|
-
shouldForwardProp: function (prop, defaultValidatorFn) {
|
|
81
|
-
if (typeof prop === 'string' && generator.meta.props.includes(prop))
|
|
82
|
-
return false;
|
|
83
|
-
return defaultValidatorFn(prop);
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
exports.forwardPropConfig = forwardPropConfig;
|
|
88
|
-
/** Returns CSS media string with appropriate min-width and max-width values */
|
|
89
|
-
var mediaBetween = function (minWidth, maxWidth) { return function (props) {
|
|
90
|
-
return "@media (min-width: " + th.screen(minWidth)(props) + ") and (max-width: " + th.screen(maxWidth)(props) + ")";
|
|
91
|
-
}; };
|
|
92
|
-
exports.mediaBetween = mediaBetween;
|
|
93
|
-
/** Returns CSS media string with appropriate max-width value */
|
|
94
|
-
var mediaDown = function (width) { return function (props) {
|
|
95
|
-
return "@media (max-width: " + th.screen(width)(props) + ")";
|
|
96
|
-
}; };
|
|
97
|
-
exports.mediaDown = mediaDown;
|
|
98
|
-
/** Returns CSS media string with appropriate min-width value */
|
|
99
|
-
var mediaUp = function (width) { return function (props) {
|
|
100
|
-
return "@media (min-width: " + th.screen(width)(props) + ")";
|
|
101
|
-
}; };
|
|
102
|
-
exports.mediaUp = mediaUp;
|
|
103
|
-
/** Removes specific theming keys from the given props. */
|
|
104
|
-
function omitThemingProps(props) {
|
|
105
|
-
var size = props.size, variant = props.variant, rest = __rest(props, ["size", "variant"]); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
106
|
-
return rest;
|
|
107
|
-
}
|
|
108
|
-
exports.omitThemingProps = omitThemingProps;
|
|
109
|
-
/**
|
|
110
|
-
* Custom validator to prevent certain props from reaching the HTML element.
|
|
111
|
-
* @param props - list of props to filter out
|
|
112
|
-
*/
|
|
113
|
-
function shouldForwardProp(props) {
|
|
114
|
-
return function (prop, defaultValidatorFn) {
|
|
115
|
-
if (props.includes(prop.toString()))
|
|
116
|
-
return false;
|
|
117
|
-
return defaultValidatorFn(prop);
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
exports.shouldForwardProp = shouldForwardProp;
|
|
121
|
-
/** Re-export of xstyled 'th' with custom typing and screen getter */
|
|
122
|
-
var th = styled_components_1.th;
|
|
123
|
-
exports.th = th;
|
|
124
|
-
th.screen = styled_components_1.themeGetter({
|
|
125
|
-
name: 'screen',
|
|
126
|
-
key: 'screens',
|
|
127
|
-
compose: styled_components_1.getPx
|
|
128
|
-
});
|
|
129
|
-
/** Returns true of current viewport width is between provided min and max widths */
|
|
130
|
-
function useBetween(minWidth, maxWidth) {
|
|
131
|
-
var isDown = useDown(maxWidth);
|
|
132
|
-
var isUp = useUp(minWidth);
|
|
133
|
-
return isDown && isUp;
|
|
134
|
-
}
|
|
135
|
-
exports.useBetween = useBetween;
|
|
136
|
-
/** Returns true of current viewport width is smaller than provided width */
|
|
137
|
-
function useDown(width) {
|
|
138
|
-
var _a = useMedia(width), value = _a.value, viewportWidth = _a.viewportWidth;
|
|
139
|
-
return viewportWidth !== null && value !== null && viewportWidth < value;
|
|
140
|
-
}
|
|
141
|
-
exports.useDown = useDown;
|
|
142
|
-
/** Returns viewport width and provided screen width as a number */
|
|
143
|
-
function useMedia(width) {
|
|
144
|
-
var theme = useTheme();
|
|
145
|
-
var viewportWidth = styled_components_1.useViewportWidth();
|
|
146
|
-
var valueString = th.screen(width)({ theme: theme });
|
|
147
|
-
var value = Number(valueString.replace('px', ''));
|
|
148
|
-
return { value: value, viewportWidth: viewportWidth };
|
|
149
|
-
}
|
|
150
|
-
exports.useMedia = useMedia;
|
|
151
|
-
/**
|
|
152
|
-
* Retrieves and merges size and variant styling from theme configuration.
|
|
153
|
-
* @param component - name of any component configured in the theme
|
|
154
|
-
* @param props - props object of the given component
|
|
155
|
-
*/
|
|
156
|
-
function useStyleConfig(component, props) {
|
|
157
|
-
var _a;
|
|
158
|
-
if (props === void 0) { props = {}; }
|
|
159
|
-
var theme = useTheme();
|
|
160
|
-
var _b = (_a = theme.components[component]) !== null && _a !== void 0 ? _a : {}, defaultProps = _b.defaultProps, _c = _b.parts, parts = _c === void 0 ? [] : _c, sizes = _b.sizes, variants = _b.variants;
|
|
161
|
-
var mergedProps = __assign(__assign({}, defaultProps), props);
|
|
162
|
-
var colorScheme = mergedProps.colorScheme, size = mergedProps.size, variant = mergedProps.variant;
|
|
163
|
-
return react_1.useMemo(function () {
|
|
164
|
-
var _a, _b;
|
|
165
|
-
var sizeStyles = utils_1.runIfFn((_a = sizes === null || sizes === void 0 ? void 0 : sizes[size]) !== null && _a !== void 0 ? _a : {}, mergedProps);
|
|
166
|
-
var variantStyles = utils_1.runIfFn((_b = variants === null || variants === void 0 ? void 0 : variants[variant]) !== null && _b !== void 0 ? _b : {}, mergedProps);
|
|
167
|
-
var styles = {};
|
|
168
|
-
if (parts.length > 0) {
|
|
169
|
-
parts.forEach(function (part) {
|
|
170
|
-
var _a, _b;
|
|
171
|
-
styles[part] = __assign(__assign({}, ((_a = sizeStyles[part]) !== null && _a !== void 0 ? _a : {})), ((_b = variantStyles[part]) !== null && _b !== void 0 ? _b : {}));
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
styles = __assign(__assign({}, sizeStyles), variantStyles);
|
|
176
|
-
}
|
|
177
|
-
return styles;
|
|
178
|
-
}, [colorScheme, size, variant]);
|
|
179
|
-
}
|
|
180
|
-
exports.useStyleConfig = useStyleConfig;
|
|
181
|
-
/** Returns theme value at the given path */
|
|
182
|
-
function useTh(path, defaultValue) {
|
|
183
|
-
var theme = useTheme();
|
|
184
|
-
return th(path, defaultValue)({ theme: theme });
|
|
185
|
-
}
|
|
186
|
-
exports.useTh = useTh;
|
|
187
|
-
/** Returns the theme object with extensions */
|
|
188
|
-
function useTheme() {
|
|
189
|
-
return styled_components_2.useTheme();
|
|
190
|
-
}
|
|
191
|
-
exports.useTheme = useTheme;
|
|
192
|
-
/** Returns true of current viewport width is larger or equal to provided width */
|
|
193
|
-
function useUp(width) {
|
|
194
|
-
var _a = useMedia(width), value = _a.value, viewportWidth = _a.viewportWidth;
|
|
195
|
-
return viewportWidth !== null && value !== null && viewportWidth >= value;
|
|
196
|
-
}
|
|
197
|
-
exports.useUp = useUp;
|
|
198
|
-
/**
|
|
199
|
-
* Component creation utility, which combines forwardRef, memo and ensures correct typing with all props included.
|
|
200
|
-
* Config object allows toggling memoization and providing custom 'areEqual' function.
|
|
201
|
-
*/
|
|
202
|
-
function vui(component, config) {
|
|
203
|
-
var _a = config !== null && config !== void 0 ? config : {}, memoCompare = _a.memoCompare, _b = _a.isMemo, isMemo = _b === void 0 ? true : _b;
|
|
204
|
-
if (isMemo) {
|
|
205
|
-
return react_1.default.memo(react_1.default.forwardRef(component), memoCompare);
|
|
206
|
-
}
|
|
207
|
-
return react_1.default.forwardRef(component);
|
|
208
|
-
}
|
|
209
|
-
exports.vui = vui;
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
3
|
+
var __assign = (this && this.__assign) || function () {
|
|
4
|
+
__assign = Object.assign || function(t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
8
|
+
t[p] = s[p];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
return __assign.apply(this, arguments);
|
|
13
|
+
};
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
34
|
+
var t = {};
|
|
35
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
36
|
+
t[p] = s[p];
|
|
37
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
38
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
39
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
40
|
+
t[p[i]] = s[p[i]];
|
|
41
|
+
}
|
|
42
|
+
return t;
|
|
43
|
+
};
|
|
44
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.vui = exports.useUp = exports.useTheme = exports.useTh = exports.useStyleConfig = exports.useMedia = exports.useDown = exports.useBetween = exports.th = exports.shouldForwardProp = exports.omitThemingProps = exports.mediaUp = exports.mediaDown = exports.mediaBetween = exports.forwardPropConfig = exports.extendTheme = exports.createContext = void 0;
|
|
49
|
+
var styled_components_1 = require("@xstyled/styled-components");
|
|
50
|
+
var react_1 = __importStar(require("react"));
|
|
51
|
+
var styled_components_2 = require("styled-components");
|
|
52
|
+
var theme_1 = __importDefault(require("../theme"));
|
|
53
|
+
var utils_1 = require("../utils");
|
|
54
|
+
/** Generic function to create new Context and context access hook. */
|
|
55
|
+
function createContext(options) {
|
|
56
|
+
if (options === void 0) { options = {}; }
|
|
57
|
+
var _a = options.errorMessage, errorMessage = _a === void 0 ? 'Context can only be accessed by components wrapped with the Provider.' : _a, isOptional = options.isOptional, name = options.name;
|
|
58
|
+
var Context = react_1.default.createContext(undefined);
|
|
59
|
+
Context.displayName = name;
|
|
60
|
+
function useContext() {
|
|
61
|
+
var context = react_1.default.useContext(Context);
|
|
62
|
+
if (!isOptional && context === undefined)
|
|
63
|
+
throw new Error(errorMessage);
|
|
64
|
+
return context;
|
|
65
|
+
}
|
|
66
|
+
return [Context.Provider, useContext];
|
|
67
|
+
}
|
|
68
|
+
exports.createContext = createContext;
|
|
69
|
+
/** Merges provided theme extensions and overrides with default VUI theme */
|
|
70
|
+
function extendTheme(extensions) {
|
|
71
|
+
return utils_1.mergeWith(theme_1.default, extensions);
|
|
72
|
+
}
|
|
73
|
+
exports.extendTheme = extendTheme;
|
|
74
|
+
/**
|
|
75
|
+
* Provides configuration to the 'styled' function, which filters out xstyled system props
|
|
76
|
+
* Return type is cast to {} in order to avoid messing up styled component's actual props definition.
|
|
77
|
+
*/
|
|
78
|
+
function forwardPropConfig(generator) {
|
|
79
|
+
return {
|
|
80
|
+
shouldForwardProp: function (prop, defaultValidatorFn) {
|
|
81
|
+
if (typeof prop === 'string' && generator.meta.props.includes(prop))
|
|
82
|
+
return false;
|
|
83
|
+
return defaultValidatorFn(prop);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
exports.forwardPropConfig = forwardPropConfig;
|
|
88
|
+
/** Returns CSS media string with appropriate min-width and max-width values */
|
|
89
|
+
var mediaBetween = function (minWidth, maxWidth) { return function (props) {
|
|
90
|
+
return "@media (min-width: " + th.screen(minWidth)(props) + ") and (max-width: " + th.screen(maxWidth)(props) + ")";
|
|
91
|
+
}; };
|
|
92
|
+
exports.mediaBetween = mediaBetween;
|
|
93
|
+
/** Returns CSS media string with appropriate max-width value */
|
|
94
|
+
var mediaDown = function (width) { return function (props) {
|
|
95
|
+
return "@media (max-width: " + th.screen(width)(props) + ")";
|
|
96
|
+
}; };
|
|
97
|
+
exports.mediaDown = mediaDown;
|
|
98
|
+
/** Returns CSS media string with appropriate min-width value */
|
|
99
|
+
var mediaUp = function (width) { return function (props) {
|
|
100
|
+
return "@media (min-width: " + th.screen(width)(props) + ")";
|
|
101
|
+
}; };
|
|
102
|
+
exports.mediaUp = mediaUp;
|
|
103
|
+
/** Removes specific theming keys from the given props. */
|
|
104
|
+
function omitThemingProps(props) {
|
|
105
|
+
var size = props.size, variant = props.variant, rest = __rest(props, ["size", "variant"]); // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
106
|
+
return rest;
|
|
107
|
+
}
|
|
108
|
+
exports.omitThemingProps = omitThemingProps;
|
|
109
|
+
/**
|
|
110
|
+
* Custom validator to prevent certain props from reaching the HTML element.
|
|
111
|
+
* @param props - list of props to filter out
|
|
112
|
+
*/
|
|
113
|
+
function shouldForwardProp(props) {
|
|
114
|
+
return function (prop, defaultValidatorFn) {
|
|
115
|
+
if (props.includes(prop.toString()))
|
|
116
|
+
return false;
|
|
117
|
+
return defaultValidatorFn(prop);
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
exports.shouldForwardProp = shouldForwardProp;
|
|
121
|
+
/** Re-export of xstyled 'th' with custom typing and screen getter */
|
|
122
|
+
var th = styled_components_1.th;
|
|
123
|
+
exports.th = th;
|
|
124
|
+
th.screen = styled_components_1.themeGetter({
|
|
125
|
+
name: 'screen',
|
|
126
|
+
key: 'screens',
|
|
127
|
+
compose: styled_components_1.getPx
|
|
128
|
+
});
|
|
129
|
+
/** Returns true of current viewport width is between provided min and max widths */
|
|
130
|
+
function useBetween(minWidth, maxWidth) {
|
|
131
|
+
var isDown = useDown(maxWidth);
|
|
132
|
+
var isUp = useUp(minWidth);
|
|
133
|
+
return isDown && isUp;
|
|
134
|
+
}
|
|
135
|
+
exports.useBetween = useBetween;
|
|
136
|
+
/** Returns true of current viewport width is smaller than provided width */
|
|
137
|
+
function useDown(width) {
|
|
138
|
+
var _a = useMedia(width), value = _a.value, viewportWidth = _a.viewportWidth;
|
|
139
|
+
return viewportWidth !== null && value !== null && viewportWidth < value;
|
|
140
|
+
}
|
|
141
|
+
exports.useDown = useDown;
|
|
142
|
+
/** Returns viewport width and provided screen width as a number */
|
|
143
|
+
function useMedia(width) {
|
|
144
|
+
var theme = useTheme();
|
|
145
|
+
var viewportWidth = styled_components_1.useViewportWidth();
|
|
146
|
+
var valueString = th.screen(width)({ theme: theme });
|
|
147
|
+
var value = Number(valueString.replace('px', ''));
|
|
148
|
+
return { value: value, viewportWidth: viewportWidth };
|
|
149
|
+
}
|
|
150
|
+
exports.useMedia = useMedia;
|
|
151
|
+
/**
|
|
152
|
+
* Retrieves and merges size and variant styling from theme configuration.
|
|
153
|
+
* @param component - name of any component configured in the theme
|
|
154
|
+
* @param props - props object of the given component
|
|
155
|
+
*/
|
|
156
|
+
function useStyleConfig(component, props) {
|
|
157
|
+
var _a;
|
|
158
|
+
if (props === void 0) { props = {}; }
|
|
159
|
+
var theme = useTheme();
|
|
160
|
+
var _b = (_a = theme.components[component]) !== null && _a !== void 0 ? _a : {}, defaultProps = _b.defaultProps, _c = _b.parts, parts = _c === void 0 ? [] : _c, sizes = _b.sizes, variants = _b.variants;
|
|
161
|
+
var mergedProps = __assign(__assign({}, defaultProps), props);
|
|
162
|
+
var colorScheme = mergedProps.colorScheme, size = mergedProps.size, variant = mergedProps.variant;
|
|
163
|
+
return react_1.useMemo(function () {
|
|
164
|
+
var _a, _b;
|
|
165
|
+
var sizeStyles = utils_1.runIfFn((_a = sizes === null || sizes === void 0 ? void 0 : sizes[size]) !== null && _a !== void 0 ? _a : {}, mergedProps);
|
|
166
|
+
var variantStyles = utils_1.runIfFn((_b = variants === null || variants === void 0 ? void 0 : variants[variant]) !== null && _b !== void 0 ? _b : {}, mergedProps);
|
|
167
|
+
var styles = {};
|
|
168
|
+
if (parts.length > 0) {
|
|
169
|
+
parts.forEach(function (part) {
|
|
170
|
+
var _a, _b;
|
|
171
|
+
styles[part] = __assign(__assign({}, ((_a = sizeStyles[part]) !== null && _a !== void 0 ? _a : {})), ((_b = variantStyles[part]) !== null && _b !== void 0 ? _b : {}));
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
styles = __assign(__assign({}, sizeStyles), variantStyles);
|
|
176
|
+
}
|
|
177
|
+
return styles;
|
|
178
|
+
}, [colorScheme, size, variant]);
|
|
179
|
+
}
|
|
180
|
+
exports.useStyleConfig = useStyleConfig;
|
|
181
|
+
/** Returns theme value at the given path */
|
|
182
|
+
function useTh(path, defaultValue) {
|
|
183
|
+
var theme = useTheme();
|
|
184
|
+
return th(path, defaultValue)({ theme: theme });
|
|
185
|
+
}
|
|
186
|
+
exports.useTh = useTh;
|
|
187
|
+
/** Returns the theme object with extensions */
|
|
188
|
+
function useTheme() {
|
|
189
|
+
return styled_components_2.useTheme();
|
|
190
|
+
}
|
|
191
|
+
exports.useTheme = useTheme;
|
|
192
|
+
/** Returns true of current viewport width is larger or equal to provided width */
|
|
193
|
+
function useUp(width) {
|
|
194
|
+
var _a = useMedia(width), value = _a.value, viewportWidth = _a.viewportWidth;
|
|
195
|
+
return viewportWidth !== null && value !== null && viewportWidth >= value;
|
|
196
|
+
}
|
|
197
|
+
exports.useUp = useUp;
|
|
198
|
+
/**
|
|
199
|
+
* Component creation utility, which combines forwardRef, memo and ensures correct typing with all props included.
|
|
200
|
+
* Config object allows toggling memoization and providing custom 'areEqual' function.
|
|
201
|
+
*/
|
|
202
|
+
function vui(component, config) {
|
|
203
|
+
var _a = config !== null && config !== void 0 ? config : {}, memoCompare = _a.memoCompare, _b = _a.isMemo, isMemo = _b === void 0 ? true : _b;
|
|
204
|
+
if (isMemo) {
|
|
205
|
+
return react_1.default.memo(react_1.default.forwardRef(component), memoCompare);
|
|
206
|
+
}
|
|
207
|
+
return react_1.default.forwardRef(component);
|
|
208
|
+
}
|
|
209
|
+
exports.vui = vui;
|
package/core/vuiProvider.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { VuiTheme } from '../theme';
|
|
3
|
-
interface VuiProviderProps {
|
|
4
|
-
globalStyle?: boolean;
|
|
5
|
-
resetCSS?: boolean;
|
|
6
|
-
theme?: VuiTheme;
|
|
7
|
-
}
|
|
8
|
-
declare const VuiProvider: FC<VuiProviderProps>;
|
|
9
|
-
export default VuiProvider;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { VuiTheme } from '../theme';
|
|
3
|
+
interface VuiProviderProps {
|
|
4
|
+
globalStyle?: boolean;
|
|
5
|
+
resetCSS?: boolean;
|
|
6
|
+
theme?: VuiTheme;
|
|
7
|
+
}
|
|
8
|
+
declare const VuiProvider: FC<VuiProviderProps>;
|
|
9
|
+
export default VuiProvider;
|
package/core/vuiProvider.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var react_1 = __importDefault(require("react"));
|
|
7
|
-
var styled_components_1 = require("styled-components");
|
|
8
|
-
var globalStyle_1 = __importDefault(require("./globalStyle"));
|
|
9
|
-
var resetCSS_1 = __importDefault(require("./resetCSS"));
|
|
10
|
-
var theme_1 = __importDefault(require("../theme"));
|
|
11
|
-
var VuiProvider = function (_a) {
|
|
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;
|
|
13
|
-
return (react_1.default.createElement(styled_components_1.ThemeProvider, { theme: theme },
|
|
14
|
-
resetCSS && react_1.default.createElement(resetCSS_1.default, null),
|
|
15
|
-
globalStyle && react_1.default.createElement(globalStyle_1.default, null),
|
|
16
|
-
children));
|
|
17
|
-
};
|
|
18
|
-
exports.default = VuiProvider;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var react_1 = __importDefault(require("react"));
|
|
7
|
+
var styled_components_1 = require("styled-components");
|
|
8
|
+
var globalStyle_1 = __importDefault(require("./globalStyle"));
|
|
9
|
+
var resetCSS_1 = __importDefault(require("./resetCSS"));
|
|
10
|
+
var theme_1 = __importDefault(require("../theme"));
|
|
11
|
+
var VuiProvider = function (_a) {
|
|
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;
|
|
13
|
+
return (react_1.default.createElement(styled_components_1.ThemeProvider, { theme: theme },
|
|
14
|
+
resetCSS && react_1.default.createElement(resetCSS_1.default, null),
|
|
15
|
+
globalStyle && react_1.default.createElement(globalStyle_1.default, null),
|
|
16
|
+
children));
|
|
17
|
+
};
|
|
18
|
+
exports.default = VuiProvider;
|
package/divider/divider.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DividerProps } from './divider.types';
|
|
2
|
-
import { SystemProps } from '../system';
|
|
3
|
-
export declare const DividerBase: import("styled-components").StyledComponent<"hr", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
4
|
-
export declare const Divider: import("../core").VuiComponent<"hr", DividerProps>;
|
|
5
|
-
export default Divider;
|
|
1
|
+
import { DividerProps } from './divider.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
export declare const DividerBase: import("styled-components").StyledComponent<"hr", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
4
|
+
export declare const Divider: import("../core").VuiComponent<"hr", DividerProps>;
|
|
5
|
+
export default Divider;
|
package/divider/divider.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
-
t[p[i]] = s[p[i]];
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
};
|
|
28
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.Divider = exports.DividerBase = void 0;
|
|
33
|
-
var react_1 = __importDefault(require("react"));
|
|
34
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
35
|
-
var core_1 = require("../core");
|
|
36
|
-
var system_1 = require("../system");
|
|
37
|
-
var utils_1 = require("../utils");
|
|
38
|
-
exports.DividerBase = styled_components_1.default.hr.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), system_1.system);
|
|
39
|
-
exports.Divider = core_1.vui(function (props, ref) {
|
|
40
|
-
var _a;
|
|
41
|
-
var _b = core_1.omitThemingProps(props), className = _b.className, isVertical = _b.isVertical, width = _b.width, rest = __rest(_b, ["className", "isVertical", "width"]);
|
|
42
|
-
var styles = core_1.useStyleConfig('Divider', props);
|
|
43
|
-
var borderSide = isVertical ? 'Right' : 'Bottom';
|
|
44
|
-
var borderWidth = "border" + borderSide + "Width";
|
|
45
|
-
var height = isVertical ? '100%' : '';
|
|
46
|
-
var aliasedProps = utils_1.filterUndefined((_a = {},
|
|
47
|
-
_a[borderWidth] = width !== null && width !== void 0 ? width : 1,
|
|
48
|
-
_a));
|
|
49
|
-
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)));
|
|
50
|
-
});
|
|
51
|
-
exports.Divider.displayName = 'Divider';
|
|
52
|
-
exports.default = exports.Divider;
|
|
53
|
-
var templateObject_1;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
17
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
}
|
|
26
|
+
return t;
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.Divider = exports.DividerBase = void 0;
|
|
33
|
+
var react_1 = __importDefault(require("react"));
|
|
34
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
35
|
+
var core_1 = require("../core");
|
|
36
|
+
var system_1 = require("../system");
|
|
37
|
+
var utils_1 = require("../utils");
|
|
38
|
+
exports.DividerBase = styled_components_1.default.hr.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\t", "\n"], ["\n\t", "\n"])), system_1.system);
|
|
39
|
+
exports.Divider = core_1.vui(function (props, ref) {
|
|
40
|
+
var _a;
|
|
41
|
+
var _b = core_1.omitThemingProps(props), className = _b.className, isVertical = _b.isVertical, width = _b.width, rest = __rest(_b, ["className", "isVertical", "width"]);
|
|
42
|
+
var styles = core_1.useStyleConfig('Divider', props);
|
|
43
|
+
var borderSide = isVertical ? 'Right' : 'Bottom';
|
|
44
|
+
var borderWidth = "border" + borderSide + "Width";
|
|
45
|
+
var height = isVertical ? '100%' : '';
|
|
46
|
+
var aliasedProps = utils_1.filterUndefined((_a = {},
|
|
47
|
+
_a[borderWidth] = width !== null && width !== void 0 ? width : 1,
|
|
48
|
+
_a));
|
|
49
|
+
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)));
|
|
50
|
+
});
|
|
51
|
+
exports.Divider.displayName = 'Divider';
|
|
52
|
+
exports.default = exports.Divider;
|
|
53
|
+
var templateObject_1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BordersProps, SystemProps } from '../system';
|
|
2
|
-
import { ThemingProps } from '../theme';
|
|
3
|
-
export interface DividerProps extends SystemProps, ThemingProps<'Divider'> {
|
|
4
|
-
className?: string;
|
|
5
|
-
isVertical?: boolean;
|
|
6
|
-
width?: BordersProps['borderWidth'];
|
|
7
|
-
}
|
|
1
|
+
import { BordersProps, SystemProps } from '../system';
|
|
2
|
+
import { ThemingProps } from '../theme';
|
|
3
|
+
export interface DividerProps extends SystemProps, ThemingProps<'Divider'> {
|
|
4
|
+
className?: string;
|
|
5
|
+
isVertical?: boolean;
|
|
6
|
+
width?: BordersProps['borderWidth'];
|
|
7
|
+
}
|
package/divider/divider.types.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/divider/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './divider';
|
|
2
|
-
export * from './divider.types';
|
|
3
|
-
export { default } from './divider';
|
|
1
|
+
export * from './divider';
|
|
2
|
+
export * from './divider.types';
|
|
3
|
+
export { default } from './divider';
|