@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/radio/context.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Dict } from '../utils';
|
|
3
|
-
declare const RadioGroupProvider: import("react").Provider<Dict<any>>, useRadioGroup: () => Dict<any>;
|
|
4
|
-
export { RadioGroupProvider, useRadioGroup };
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Dict } from '../utils';
|
|
3
|
+
declare const RadioGroupProvider: import("react").Provider<Dict<any>>, useRadioGroup: () => Dict<any>;
|
|
4
|
+
export { RadioGroupProvider, useRadioGroup };
|
package/radio/context.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
3
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4
|
-
if (!m) return o;
|
|
5
|
-
var i = m.call(o), r, ar = [], e;
|
|
6
|
-
try {
|
|
7
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8
|
-
}
|
|
9
|
-
catch (error) { e = { error: error }; }
|
|
10
|
-
finally {
|
|
11
|
-
try {
|
|
12
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13
|
-
}
|
|
14
|
-
finally { if (e) throw e.error; }
|
|
15
|
-
}
|
|
16
|
-
return ar;
|
|
17
|
-
};
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.useRadioGroup = exports.RadioGroupProvider = void 0;
|
|
20
|
-
var core_1 = require("../core");
|
|
21
|
-
var _a = __read(core_1.createContext({ isOptional: true }), 2), RadioGroupProvider = _a[0], useRadioGroup = _a[1];
|
|
22
|
-
exports.RadioGroupProvider = RadioGroupProvider;
|
|
23
|
-
exports.useRadioGroup = useRadioGroup;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
3
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4
|
+
if (!m) return o;
|
|
5
|
+
var i = m.call(o), r, ar = [], e;
|
|
6
|
+
try {
|
|
7
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
8
|
+
}
|
|
9
|
+
catch (error) { e = { error: error }; }
|
|
10
|
+
finally {
|
|
11
|
+
try {
|
|
12
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
13
|
+
}
|
|
14
|
+
finally { if (e) throw e.error; }
|
|
15
|
+
}
|
|
16
|
+
return ar;
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.useRadioGroup = exports.RadioGroupProvider = void 0;
|
|
20
|
+
var core_1 = require("../core");
|
|
21
|
+
var _a = __read(core_1.createContext({ isOptional: true }), 2), RadioGroupProvider = _a[0], useRadioGroup = _a[1];
|
|
22
|
+
exports.RadioGroupProvider = RadioGroupProvider;
|
|
23
|
+
exports.useRadioGroup = useRadioGroup;
|
package/radio/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './context';
|
|
2
|
-
export * from './radio';
|
|
3
|
-
export * from './radio.types';
|
|
4
|
-
export * from './radioGroup';
|
|
5
|
-
export * from './radioGroup.types';
|
|
6
|
-
export { default } from './radio';
|
|
1
|
+
export * from './context';
|
|
2
|
+
export * from './radio';
|
|
3
|
+
export * from './radio.types';
|
|
4
|
+
export * from './radioGroup';
|
|
5
|
+
export * from './radioGroup.types';
|
|
6
|
+
export { default } from './radio';
|
package/radio/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
-
};
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.default = void 0;
|
|
17
|
-
__exportStar(require("./context"), exports);
|
|
18
|
-
__exportStar(require("./radio"), exports);
|
|
19
|
-
__exportStar(require("./radio.types"), exports);
|
|
20
|
-
__exportStar(require("./radioGroup"), exports);
|
|
21
|
-
__exportStar(require("./radioGroup.types"), exports);
|
|
22
|
-
var radio_1 = require("./radio");
|
|
23
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(radio_1).default; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.default = void 0;
|
|
17
|
+
__exportStar(require("./context"), exports);
|
|
18
|
+
__exportStar(require("./radio"), exports);
|
|
19
|
+
__exportStar(require("./radio.types"), exports);
|
|
20
|
+
__exportStar(require("./radioGroup"), exports);
|
|
21
|
+
__exportStar(require("./radioGroup.types"), exports);
|
|
22
|
+
var radio_1 = require("./radio");
|
|
23
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(radio_1).default; } });
|
package/radio/radio.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RadioProps, RadioStyleProps } from './radio.types';
|
|
2
|
-
import { SystemProps } from '../system';
|
|
3
|
-
export declare const RadioInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
-
export declare const RadioBase: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, RadioStyleProps, never>;
|
|
5
|
-
export declare const RadioControl: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
6
|
-
export declare const Radio: import("../core").VuiComponent<"span", RadioProps>;
|
|
7
|
-
export default Radio;
|
|
1
|
+
import { RadioProps, RadioStyleProps } from './radio.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
export declare const RadioInput: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const RadioBase: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, RadioStyleProps, never>;
|
|
5
|
+
export declare const RadioControl: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
6
|
+
export declare const Radio: import("../core").VuiComponent<"span", RadioProps>;
|
|
7
|
+
export default Radio;
|
package/radio/radio.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
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.Radio = exports.RadioControl = exports.RadioBase = exports.RadioInput = void 0;
|
|
33
|
-
var react_1 = __importDefault(require("react"));
|
|
34
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
35
|
-
var context_1 = require("./context");
|
|
36
|
-
var core_1 = require("../core");
|
|
37
|
-
var icon_1 = __importDefault(require("../icon"));
|
|
38
|
-
var system_1 = require("../system");
|
|
39
|
-
var t_1 = __importDefault(require("../t"));
|
|
40
|
-
var utils_1 = require("../utils");
|
|
41
|
-
exports.RadioInput = styled_components_1.default.input(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tcursor: inherit;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0;\n\topacity: 0;\n\tpadding: 0;\n\tposition: absolute;\n\ttop: 0;\n\twidth: 100%;\n\tz-index: 1;\n"], ["\n\tcursor: inherit;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0;\n\topacity: 0;\n\tpadding: 0;\n\tposition: absolute;\n\ttop: 0;\n\twidth: 100%;\n\tz-index: 1;\n"])));
|
|
42
|
-
exports.RadioBase = styled_components_1.default.label.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\twidth: fit-content;\n\n\t:hover .vui-radioControl {\n\t\tcolor: ", ";\n\t}\n\n\t&.disabled {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\n\t\t.vui-radioControl {\n\t\t\tcolor: var(--vui-colors-disabled-font);\n\t\t}\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\twidth: fit-content;\n\n\t:hover .vui-radioControl {\n\t\tcolor: ", ";\n\t}\n\n\t&.disabled {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\n\t\t.vui-radioControl {\n\t\t\tcolor: var(--vui-colors-disabled-font);\n\t\t}\n\t}\n\n\t", "\n"])), function (p) { return core_1.th.color(p.controlHoverColor)(p); }, system_1.system);
|
|
43
|
-
exports.RadioControl = styled_components_1.default.span.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: relative;\n\n\t", "\n"], ["\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: relative;\n\n\t", "\n"])), system_1.system);
|
|
44
|
-
exports.Radio = core_1.vui(function (props, ref) {
|
|
45
|
-
var _a;
|
|
46
|
-
var _b = (_a = context_1.useRadioGroup()) !== null && _a !== void 0 ? _a : {}, groupOnChange = _b.onChange, groupValue = _b.value, radioGroupProps = __rest(_b, ["onChange", "value"]);
|
|
47
|
-
var mergedProps = __assign(__assign({}, radioGroupProps), props);
|
|
48
|
-
var _c = core_1.omitThemingProps(mergedProps), _d = _c.checked, checked = _d === void 0 ? groupValue !== undefined ? props.value === groupValue : undefined : _d, children = _c.children, className = _c.className, defaultChecked = _c.defaultChecked, disabled = _c.disabled, _e = _c.icon, iconProp = _e === void 0 ? 'cuiRadioUnselected' : _e, _f = _c.iconChecked, iconChecked = _f === void 0 ? 'cuiRadioSelected' : _f, inputProps = _c.inputProps, inputRef = _c.inputRef, label = _c.label, name = _c.name, onChange = _c.onChange, required = _c.required, value = _c.value, rest = __rest(_c, ["checked", "children", "className", "defaultChecked", "disabled", "icon", "iconChecked", "inputProps", "inputRef", "label", "name", "onChange", "required", "value"]);
|
|
49
|
-
var styles = core_1.useStyleConfig('Radio', mergedProps);
|
|
50
|
-
var _g = styles.control, controlColor = _g.color, hoverColor = _g.hoverColor, controlStyles = __rest(_g, ["color", "hoverColor"]);
|
|
51
|
-
var icon = checked ? iconChecked : iconProp;
|
|
52
|
-
var controlMr = children || label ? 1 : 0;
|
|
53
|
-
var color = checked ? controlColor : 'grey.50';
|
|
54
|
-
var controlHoverColor = checked ? hoverColor : 'grey.90';
|
|
55
|
-
function handleOnChange(e) {
|
|
56
|
-
groupOnChange === null || groupOnChange === void 0 ? void 0 : groupOnChange(e);
|
|
57
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
58
|
-
}
|
|
59
|
-
return (react_1.default.createElement(exports.RadioBase, __assign({ className: utils_1.cs('vui-radio', disabled && 'disabled', className), controlHoverColor: controlHoverColor, ref: ref }, styles.container, rest),
|
|
60
|
-
react_1.default.createElement(exports.RadioControl, __assign({ borderRadius: "50%", className: "vui-radioControl", color: color, focusWithinRing: 3, mr: controlMr, transitionDuration: "fast" }, controlStyles),
|
|
61
|
-
react_1.default.createElement(exports.RadioInput, __assign({ className: "vui-radioInput", onChange: handleOnChange, ref: inputRef, type: "radio" }, { checked: checked, defaultChecked: defaultChecked, disabled: disabled, name: name, required: required, value: value }, inputProps)),
|
|
62
|
-
react_1.default.createElement(icon_1.default, { className: "vui-radioIcon", h: "100%", icon: icon, w: "100%" })), children !== null && children !== void 0 ? children : (label && (react_1.default.createElement(t_1.default, __assign({ className: "vui-radioLabel", lineHeight: "normal" }, styles.label), label)))));
|
|
63
|
-
});
|
|
64
|
-
exports.Radio.displayName = 'Radio';
|
|
65
|
-
exports.default = exports.Radio;
|
|
66
|
-
var templateObject_1, templateObject_2, templateObject_3;
|
|
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.Radio = exports.RadioControl = exports.RadioBase = exports.RadioInput = void 0;
|
|
33
|
+
var react_1 = __importDefault(require("react"));
|
|
34
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
35
|
+
var context_1 = require("./context");
|
|
36
|
+
var core_1 = require("../core");
|
|
37
|
+
var icon_1 = __importDefault(require("../icon"));
|
|
38
|
+
var system_1 = require("../system");
|
|
39
|
+
var t_1 = __importDefault(require("../t"));
|
|
40
|
+
var utils_1 = require("../utils");
|
|
41
|
+
exports.RadioInput = styled_components_1.default.input(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tcursor: inherit;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0;\n\topacity: 0;\n\tpadding: 0;\n\tposition: absolute;\n\ttop: 0;\n\twidth: 100%;\n\tz-index: 1;\n"], ["\n\tcursor: inherit;\n\theight: 100%;\n\tleft: 0;\n\tmargin: 0;\n\topacity: 0;\n\tpadding: 0;\n\tposition: absolute;\n\ttop: 0;\n\twidth: 100%;\n\tz-index: 1;\n"])));
|
|
42
|
+
exports.RadioBase = styled_components_1.default.label.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\twidth: fit-content;\n\n\t:hover .vui-radioControl {\n\t\tcolor: ", ";\n\t}\n\n\t&.disabled {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\n\t\t.vui-radioControl {\n\t\t\tcolor: var(--vui-colors-disabled-font);\n\t\t}\n\t}\n\n\t", "\n"], ["\n\talign-items: center;\n\tcursor: pointer;\n\tdisplay: inline-flex;\n\twidth: fit-content;\n\n\t:hover .vui-radioControl {\n\t\tcolor: ", ";\n\t}\n\n\t&.disabled {\n\t\tcolor: var(--vui-colors-disabled-font);\n\t\tcursor: not-allowed;\n\n\t\t.vui-radioControl {\n\t\t\tcolor: var(--vui-colors-disabled-font);\n\t\t}\n\t}\n\n\t", "\n"])), function (p) { return core_1.th.color(p.controlHoverColor)(p); }, system_1.system);
|
|
43
|
+
exports.RadioControl = styled_components_1.default.span.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: relative;\n\n\t", "\n"], ["\n\tdisplay: inline-flex;\n\tflex-shrink: 0;\n\tposition: relative;\n\n\t", "\n"])), system_1.system);
|
|
44
|
+
exports.Radio = core_1.vui(function (props, ref) {
|
|
45
|
+
var _a;
|
|
46
|
+
var _b = (_a = context_1.useRadioGroup()) !== null && _a !== void 0 ? _a : {}, groupOnChange = _b.onChange, groupValue = _b.value, radioGroupProps = __rest(_b, ["onChange", "value"]);
|
|
47
|
+
var mergedProps = __assign(__assign({}, radioGroupProps), props);
|
|
48
|
+
var _c = core_1.omitThemingProps(mergedProps), _d = _c.checked, checked = _d === void 0 ? groupValue !== undefined ? props.value === groupValue : undefined : _d, children = _c.children, className = _c.className, defaultChecked = _c.defaultChecked, disabled = _c.disabled, _e = _c.icon, iconProp = _e === void 0 ? 'cuiRadioUnselected' : _e, _f = _c.iconChecked, iconChecked = _f === void 0 ? 'cuiRadioSelected' : _f, inputProps = _c.inputProps, inputRef = _c.inputRef, label = _c.label, name = _c.name, onChange = _c.onChange, required = _c.required, value = _c.value, rest = __rest(_c, ["checked", "children", "className", "defaultChecked", "disabled", "icon", "iconChecked", "inputProps", "inputRef", "label", "name", "onChange", "required", "value"]);
|
|
49
|
+
var styles = core_1.useStyleConfig('Radio', mergedProps);
|
|
50
|
+
var _g = styles.control, controlColor = _g.color, hoverColor = _g.hoverColor, controlStyles = __rest(_g, ["color", "hoverColor"]);
|
|
51
|
+
var icon = checked ? iconChecked : iconProp;
|
|
52
|
+
var controlMr = children || label ? 1 : 0;
|
|
53
|
+
var color = checked ? controlColor : 'grey.50';
|
|
54
|
+
var controlHoverColor = checked ? hoverColor : 'grey.90';
|
|
55
|
+
function handleOnChange(e) {
|
|
56
|
+
groupOnChange === null || groupOnChange === void 0 ? void 0 : groupOnChange(e);
|
|
57
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
58
|
+
}
|
|
59
|
+
return (react_1.default.createElement(exports.RadioBase, __assign({ className: utils_1.cs('vui-radio', disabled && 'disabled', className), controlHoverColor: controlHoverColor, ref: ref }, styles.container, rest),
|
|
60
|
+
react_1.default.createElement(exports.RadioControl, __assign({ borderRadius: "50%", className: "vui-radioControl", color: color, focusWithinRing: 3, mr: controlMr, transitionDuration: "fast" }, controlStyles),
|
|
61
|
+
react_1.default.createElement(exports.RadioInput, __assign({ className: "vui-radioInput", onChange: handleOnChange, ref: inputRef, type: "radio" }, { checked: checked, defaultChecked: defaultChecked, disabled: disabled, name: name, required: required, value: value }, inputProps)),
|
|
62
|
+
react_1.default.createElement(icon_1.default, { className: "vui-radioIcon", h: "100%", icon: icon, w: "100%" })), children !== null && children !== void 0 ? children : (label && (react_1.default.createElement(t_1.default, __assign({ className: "vui-radioLabel", lineHeight: "normal" }, styles.label), label)))));
|
|
63
|
+
});
|
|
64
|
+
exports.Radio.displayName = 'Radio';
|
|
65
|
+
exports.default = exports.Radio;
|
|
66
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
package/radio/radio.types.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { ChangeEventHandler, FocusEventHandler } from '../core';
|
|
3
|
-
import { IconProp } from '../icon';
|
|
4
|
-
import { SystemProps } from '../system';
|
|
5
|
-
import { ThemingProps } from '../theme';
|
|
6
|
-
export interface RadioProps extends SystemProps, ThemingProps<'Radio'> {
|
|
7
|
-
checked?: boolean;
|
|
8
|
-
colorScheme?: 'blue' | 'green' | 'prussian' | 'red';
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
icon?: IconProp;
|
|
11
|
-
iconChecked?: IconProp;
|
|
12
|
-
inputProps?: HTMLAttributes<HTMLInputElement>;
|
|
13
|
-
inputRef?: React.MutableRefObject<HTMLInputElement | null> | null;
|
|
14
|
-
label?: string;
|
|
15
|
-
name?: string;
|
|
16
|
-
onBlur?: FocusEventHandler;
|
|
17
|
-
onChange?: ChangeEventHandler;
|
|
18
|
-
onFocus?: FocusEventHandler;
|
|
19
|
-
required?: boolean;
|
|
20
|
-
value?: number | string;
|
|
21
|
-
}
|
|
22
|
-
export interface RadioStyleProps extends SystemProps {
|
|
23
|
-
controlHoverColor: string;
|
|
24
|
-
}
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { ChangeEventHandler, FocusEventHandler } from '../core';
|
|
3
|
+
import { IconProp } from '../icon';
|
|
4
|
+
import { SystemProps } from '../system';
|
|
5
|
+
import { ThemingProps } from '../theme';
|
|
6
|
+
export interface RadioProps extends SystemProps, ThemingProps<'Radio'> {
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
colorScheme?: 'blue' | 'green' | 'prussian' | 'red';
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
icon?: IconProp;
|
|
11
|
+
iconChecked?: IconProp;
|
|
12
|
+
inputProps?: HTMLAttributes<HTMLInputElement>;
|
|
13
|
+
inputRef?: React.MutableRefObject<HTMLInputElement | null> | null;
|
|
14
|
+
label?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
onBlur?: FocusEventHandler;
|
|
17
|
+
onChange?: ChangeEventHandler;
|
|
18
|
+
onFocus?: FocusEventHandler;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
value?: number | string;
|
|
21
|
+
}
|
|
22
|
+
export interface RadioStyleProps extends SystemProps {
|
|
23
|
+
controlHoverColor: string;
|
|
24
|
+
}
|
package/radio/radio.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/radio/radioGroup.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RadioGroupProps } from './radioGroup.types';
|
|
2
|
-
import { SystemProps } from '../system';
|
|
3
|
-
export declare const RadioGroupBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
4
|
-
export declare const RadioGroup: import("../core").VuiComponent<"div", RadioGroupProps>;
|
|
5
|
-
export default RadioGroup;
|
|
1
|
+
import { RadioGroupProps } from './radioGroup.types';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
export declare const RadioGroupBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, SystemProps, never>;
|
|
4
|
+
export declare const RadioGroup: import("../core").VuiComponent<"div", RadioGroupProps>;
|
|
5
|
+
export default RadioGroup;
|
package/radio/radioGroup.js
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
-
var t = {};
|
|
38
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
-
t[p] = s[p];
|
|
40
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
-
t[p[i]] = s[p[i]];
|
|
44
|
-
}
|
|
45
|
-
return t;
|
|
46
|
-
};
|
|
47
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
48
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
49
|
-
if (!m) return o;
|
|
50
|
-
var i = m.call(o), r, ar = [], e;
|
|
51
|
-
try {
|
|
52
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
53
|
-
}
|
|
54
|
-
catch (error) { e = { error: error }; }
|
|
55
|
-
finally {
|
|
56
|
-
try {
|
|
57
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
58
|
-
}
|
|
59
|
-
finally { if (e) throw e.error; }
|
|
60
|
-
}
|
|
61
|
-
return ar;
|
|
62
|
-
};
|
|
63
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
64
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.RadioGroup = exports.RadioGroupBase = void 0;
|
|
68
|
-
var react_1 = __importStar(require("react"));
|
|
69
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
70
|
-
var context_1 = require("./context");
|
|
71
|
-
var core_1 = require("../core");
|
|
72
|
-
var system_1 = require("../system");
|
|
73
|
-
var utils_1 = require("../utils");
|
|
74
|
-
exports.RadioGroupBase = styled_components_1.default.div.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t", "\n"], ["\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t", "\n"])), system_1.system);
|
|
75
|
-
exports.RadioGroup = core_1.vui(function (props, ref) {
|
|
76
|
-
var className = props.className, colorScheme = props.colorScheme, _a = props.defaultValue, defaultValue = _a === void 0 ? '' : _a, disabled = props.disabled, name = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, row = props.row, size = props.size, valueProp = props.value, variant = props.variant, rest = __rest(props, ["className", "colorScheme", "defaultValue", "disabled", "name", "onBlur", "onChange", "onFocus", "row", "size", "value", "variant"]);
|
|
77
|
-
var isControlled = react_1.useRef(valueProp !== undefined).current;
|
|
78
|
-
var _b = __read(react_1.useState(defaultValue), 2), valueState = _b[0], setValueState = _b[1];
|
|
79
|
-
var value = isControlled ? valueProp : valueState;
|
|
80
|
-
var handleOnChange = react_1.useCallback(function (e) {
|
|
81
|
-
setValue(e.target.value);
|
|
82
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
83
|
-
}, [onChange]);
|
|
84
|
-
var setValue = react_1.useCallback(function (value) {
|
|
85
|
-
!isControlled && setValueState(value);
|
|
86
|
-
}, []);
|
|
87
|
-
var context = react_1.useMemo(function () {
|
|
88
|
-
return utils_1.filterUndefined({ colorScheme: colorScheme, disabled: disabled, name: name, onBlur: onBlur, onChange: handleOnChange, onFocus: onFocus, size: size, value: value, variant: variant });
|
|
89
|
-
}, [colorScheme, disabled, name, handleOnChange, onBlur, onFocus, size, value, variant]);
|
|
90
|
-
var aliasedProps = utils_1.filterUndefined({
|
|
91
|
-
flexDirection: row ? 'row' : undefined
|
|
92
|
-
});
|
|
93
|
-
return (react_1.default.createElement(context_1.RadioGroupProvider, { value: context },
|
|
94
|
-
react_1.default.createElement(exports.RadioGroupBase, __assign({ className: utils_1.cs('vui-radioGroup', className), ref: ref }, aliasedProps, rest))));
|
|
95
|
-
});
|
|
96
|
-
exports.RadioGroup.displayName = 'RadioGroup';
|
|
97
|
-
exports.default = exports.RadioGroup;
|
|
98
|
-
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
|
+
var t = {};
|
|
38
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
39
|
+
t[p] = s[p];
|
|
40
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
41
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
42
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
43
|
+
t[p[i]] = s[p[i]];
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
};
|
|
47
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
48
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
49
|
+
if (!m) return o;
|
|
50
|
+
var i = m.call(o), r, ar = [], e;
|
|
51
|
+
try {
|
|
52
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
53
|
+
}
|
|
54
|
+
catch (error) { e = { error: error }; }
|
|
55
|
+
finally {
|
|
56
|
+
try {
|
|
57
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
58
|
+
}
|
|
59
|
+
finally { if (e) throw e.error; }
|
|
60
|
+
}
|
|
61
|
+
return ar;
|
|
62
|
+
};
|
|
63
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
64
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.RadioGroup = exports.RadioGroupBase = void 0;
|
|
68
|
+
var react_1 = __importStar(require("react"));
|
|
69
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
70
|
+
var context_1 = require("./context");
|
|
71
|
+
var core_1 = require("../core");
|
|
72
|
+
var system_1 = require("../system");
|
|
73
|
+
var utils_1 = require("../utils");
|
|
74
|
+
exports.RadioGroupBase = styled_components_1.default.div.withConfig(core_1.forwardPropConfig(system_1.system))(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t", "\n"], ["\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t", "\n"])), system_1.system);
|
|
75
|
+
exports.RadioGroup = core_1.vui(function (props, ref) {
|
|
76
|
+
var className = props.className, colorScheme = props.colorScheme, _a = props.defaultValue, defaultValue = _a === void 0 ? '' : _a, disabled = props.disabled, name = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, row = props.row, size = props.size, valueProp = props.value, variant = props.variant, rest = __rest(props, ["className", "colorScheme", "defaultValue", "disabled", "name", "onBlur", "onChange", "onFocus", "row", "size", "value", "variant"]);
|
|
77
|
+
var isControlled = react_1.useRef(valueProp !== undefined).current;
|
|
78
|
+
var _b = __read(react_1.useState(defaultValue), 2), valueState = _b[0], setValueState = _b[1];
|
|
79
|
+
var value = isControlled ? valueProp : valueState;
|
|
80
|
+
var handleOnChange = react_1.useCallback(function (e) {
|
|
81
|
+
setValue(e.target.value);
|
|
82
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
83
|
+
}, [onChange]);
|
|
84
|
+
var setValue = react_1.useCallback(function (value) {
|
|
85
|
+
!isControlled && setValueState(value);
|
|
86
|
+
}, []);
|
|
87
|
+
var context = react_1.useMemo(function () {
|
|
88
|
+
return utils_1.filterUndefined({ colorScheme: colorScheme, disabled: disabled, name: name, onBlur: onBlur, onChange: handleOnChange, onFocus: onFocus, size: size, value: value, variant: variant });
|
|
89
|
+
}, [colorScheme, disabled, name, handleOnChange, onBlur, onFocus, size, value, variant]);
|
|
90
|
+
var aliasedProps = utils_1.filterUndefined({
|
|
91
|
+
flexDirection: row ? 'row' : undefined
|
|
92
|
+
});
|
|
93
|
+
return (react_1.default.createElement(context_1.RadioGroupProvider, { value: context },
|
|
94
|
+
react_1.default.createElement(exports.RadioGroupBase, __assign({ className: utils_1.cs('vui-radioGroup', className), ref: ref }, aliasedProps, rest))));
|
|
95
|
+
});
|
|
96
|
+
exports.RadioGroup.displayName = 'RadioGroup';
|
|
97
|
+
exports.default = exports.RadioGroup;
|
|
98
|
+
var templateObject_1;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ChangeEventHandler, FocusEventHandler } from '../core';
|
|
2
|
-
import { SystemProps } from '../system';
|
|
3
|
-
import { ThemingProps } from '../theme';
|
|
4
|
-
export interface RadioGroupProps extends SystemProps, ThemingProps<'Radio'> {
|
|
5
|
-
colorScheme?: 'blue' | 'green' | 'prussian' | 'red';
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
name?: string;
|
|
8
|
-
onBlur?: FocusEventHandler;
|
|
9
|
-
onChange?: ChangeEventHandler;
|
|
10
|
-
onFocus?: FocusEventHandler;
|
|
11
|
-
row?: boolean;
|
|
12
|
-
value?: number | string;
|
|
13
|
-
}
|
|
1
|
+
import { ChangeEventHandler, FocusEventHandler } from '../core';
|
|
2
|
+
import { SystemProps } from '../system';
|
|
3
|
+
import { ThemingProps } from '../theme';
|
|
4
|
+
export interface RadioGroupProps extends SystemProps, ThemingProps<'Radio'> {
|
|
5
|
+
colorScheme?: 'blue' | 'green' | 'prussian' | 'red';
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
onBlur?: FocusEventHandler;
|
|
9
|
+
onChange?: ChangeEventHandler;
|
|
10
|
+
onFocus?: FocusEventHandler;
|
|
11
|
+
row?: boolean;
|
|
12
|
+
value?: number | string;
|
|
13
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|