@veracity/vui 0.3.1 → 0.4.0
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/avatar/avatar.d.ts +2 -2
- package/avatar/avatar.js +9 -29
- package/avatar/avatar.types.d.ts +9 -2
- package/avatar/helpers.d.ts +2 -0
- package/avatar/helpers.js +26 -0
- package/avatar/index.d.ts +1 -1
- package/avatar/index.js +1 -1
- package/avatar/theme.d.ts +1 -0
- package/avatar/theme.js +7 -0
- package/box/box.d.ts +2 -2
- package/box/box.js +9 -8
- package/box/box.types.d.ts +13 -2
- package/box/index.d.ts +1 -1
- package/box/index.js +1 -1
- package/box/theme.d.ts +1 -0
- package/box/theme.js +2 -0
- package/button/button.d.ts +7 -3
- package/button/button.js +24 -14
- package/button/button.types.d.ts +16 -34
- package/button/buttonIcon.d.ts +1 -0
- package/button/buttonIcon.js +3 -5
- package/button/buttonText.d.ts +1 -0
- package/button/buttonText.js +3 -5
- package/button/buttons.js +1 -1
- package/button/consts.js +2 -2
- package/button/index.d.ts +2 -2
- package/button/index.js +3 -3
- package/button/theme.d.ts +1 -0
- package/button/theme.js +5 -3
- package/buttonGroup/buttonGroup.d.ts +5 -2
- package/buttonGroup/buttonGroup.js +12 -8
- package/buttonGroup/buttonGroup.types.d.ts +4 -2
- package/buttonGroup/helpers.d.ts +1 -1
- package/buttonGroup/helpers.js +1 -1
- package/buttonGroup/index.d.ts +1 -1
- package/buttonGroup/index.js +2 -2
- package/card/card.d.ts +4 -0
- package/card/card.js +8 -0
- package/card/card.types.d.ts +3 -2
- package/card/index.d.ts +1 -1
- package/card/index.js +1 -1
- package/card/theme.d.ts +1 -0
- package/card/theme.js +2 -0
- package/checkbox/checkbox.d.ts +5 -4
- package/checkbox/checkbox.js +20 -10
- package/checkbox/checkbox.types.d.ts +21 -4
- package/checkbox/checkboxGroup.d.ts +5 -2
- package/checkbox/checkboxGroup.js +11 -7
- package/checkbox/checkboxGroup.types.d.ts +9 -2
- package/checkbox/index.d.ts +1 -1
- package/checkbox/index.js +2 -2
- package/checkbox/theme.d.ts +1 -0
- package/checkbox/theme.js +2 -0
- package/core/index.d.ts +4 -5
- package/core/index.js +4 -12
- package/core/media.d.ts +38 -0
- package/core/media.js +79 -0
- package/core/styled.d.ts +3 -0
- package/core/styled.js +21 -3
- package/core/theme.d.ts +41 -0
- package/core/theme.js +94 -0
- package/core/vui.d.ts +31 -0
- package/core/vui.js +20 -0
- package/core/vuiProvider/fontFaces.js +4 -0
- package/core/{globalStyle.d.ts → vuiProvider/globalStyle.d.ts} +7 -0
- package/core/{globalStyle.js → vuiProvider/globalStyle.js} +17 -9
- package/core/vuiProvider/index.d.ts +5 -0
- package/core/vuiProvider/index.js +26 -0
- package/core/{resetCSS.d.ts → vuiProvider/resetCSS.d.ts} +1 -0
- package/core/{resetCSS.js → vuiProvider/resetCSS.js} +2 -1
- package/core/vuiProvider/vuiProvider.d.ts +13 -0
- package/core/{vuiProvider.js → vuiProvider/vuiProvider.js} +3 -2
- package/divider/divider.d.ts +2 -2
- package/divider/divider.js +5 -4
- package/divider/divider.types.d.ts +5 -2
- package/divider/index.d.ts +1 -1
- package/divider/index.js +1 -1
- package/divider/theme.d.ts +1 -0
- package/divider/theme.js +2 -0
- package/footer/consts.d.ts +108 -8
- package/footer/consts.js +21 -9
- package/footer/footer.d.ts +3 -1
- package/footer/footer.js +21 -10
- package/footer/footer.types.d.ts +5 -0
- package/footer/footerColumn.d.ts +122 -121
- package/footer/footerColumn.js +1 -0
- package/footer/footerHeading.d.ts +1 -0
- package/footer/footerHeading.js +1 -0
- package/footer/footerLink.d.ts +1 -0
- package/footer/footerLink.js +1 -0
- package/footer/footerRow.d.ts +1 -0
- package/footer/footerRow.js +1 -0
- package/footer/footerSection.d.ts +1 -0
- package/footer/footerSection.js +2 -1
- package/footer/footerTrademark.d.ts +1 -0
- package/footer/footerTrademark.js +1 -0
- package/footer/helpers.d.ts +2 -3
- package/footer/helpers.js +16 -16
- package/footer/index.d.ts +2 -1
- package/footer/index.js +2 -2
- package/footer/theme.d.ts +1 -0
- package/footer/theme.js +2 -0
- package/header/consts.d.ts +58 -0
- package/header/consts.js +76 -0
- package/header/context.d.ts +4 -0
- package/header/context.js +23 -0
- package/header/header.d.ts +34 -0
- package/header/header.js +133 -0
- package/header/header.types.d.ts +103 -0
- package/header/headerAccount.d.ts +4 -0
- package/header/headerAccount.js +109 -0
- package/header/headerAccount.types.d.ts +35 -0
- package/header/headerContent.d.ts +4 -0
- package/header/headerContent.js +28 -0
- package/header/headerCreateAccount.d.ts +4 -0
- package/header/headerCreateAccount.js +47 -0
- package/header/headerDivider.d.ts +4 -0
- package/header/headerDivider.js +28 -0
- package/header/headerLinkItem.d.ts +4 -0
- package/header/headerLinkItem.js +53 -0
- package/header/headerLinksList.d.ts +4 -0
- package/header/headerLinksList.js +44 -0
- package/header/headerLogo.d.ts +4 -0
- package/header/headerLogo.js +44 -0
- package/header/headerMobileContent.d.ts +4 -0
- package/header/headerMobileContent.js +31 -0
- package/header/headerMobileToggle.d.ts +4 -0
- package/header/headerMobileToggle.js +33 -0
- package/header/headerNotifications.d.ts +4 -0
- package/header/headerNotifications.js +51 -0
- package/header/headerServices.d.ts +4 -0
- package/header/headerServices.js +55 -0
- package/header/headerSignIn.d.ts +4 -0
- package/header/headerSignIn.js +40 -0
- package/header/helpers.d.ts +17 -0
- package/header/helpers.js +66 -0
- package/header/index.d.ts +21 -0
- package/header/index.js +38 -0
- package/header/loggedInHeader.d.ts +4 -0
- package/header/loggedInHeader.js +57 -0
- package/header/loggedOutHeader.d.ts +4 -0
- package/header/loggedOutHeader.js +57 -0
- package/header/theme.d.ts +85 -0
- package/header/theme.js +89 -0
- package/heading/heading.d.ts +2 -2
- package/heading/heading.js +5 -4
- package/heading/heading.types.d.ts +7 -2
- package/heading/headings.js +1 -1
- package/heading/index.d.ts +1 -1
- package/heading/index.js +2 -2
- package/heading/theme.d.ts +1 -0
- package/heading/theme.js +2 -0
- package/icon/helpers.js +2 -2
- package/icon/icon.d.ts +1 -0
- package/icon/icon.js +2 -2
- package/icon/icon.types.d.ts +7 -4
- package/icon/index.d.ts +1 -1
- package/icon/index.js +1 -1
- package/icon/theme.d.ts +1 -0
- package/icon/theme.js +2 -0
- package/icons/baseIcons/fal/falFileInvoiceDollar.d.ts +3 -0
- package/icons/baseIcons/fal/falFileInvoiceDollar.js +7 -0
- package/icons/baseIcons/fas/fasCalendarAlt.js +1 -1
- package/icons/baseIcons/icons.d.ts +1 -0
- package/icons/baseIcons/icons.js +5 -3
- package/icons/baseIcons/types.d.ts +1 -1
- package/icons/cache.d.ts +15 -0
- package/icons/{library.js → cache.js} +10 -6
- package/icons/index.d.ts +1 -1
- package/icons/index.js +3 -3
- package/icons/types.d.ts +10 -3
- package/image/image.d.ts +2 -0
- package/image/image.js +11 -2
- package/image/image.types.d.ts +3 -2
- package/image/index.d.ts +1 -1
- package/image/index.js +1 -1
- package/image/theme.d.ts +1 -0
- package/image/theme.js +2 -0
- package/index.d.ts +3 -1
- package/index.js +3 -1
- package/input/consts.js +2 -2
- package/input/helpers.d.ts +1 -0
- package/input/helpers.js +1 -0
- package/input/index.d.ts +1 -1
- package/input/index.js +2 -2
- package/input/input.d.ts +7 -3
- package/input/input.js +17 -7
- package/input/input.types.d.ts +36 -7
- package/input/inputIcon.d.ts +1 -0
- package/input/inputIcon.js +2 -1
- package/input/inputInput.d.ts +2 -2
- package/input/inputInput.js +10 -5
- package/input/theme.d.ts +1 -0
- package/input/theme.js +2 -0
- package/link/index.d.ts +1 -1
- package/link/index.js +2 -2
- package/link/link.d.ts +6 -3
- package/link/link.js +15 -9
- package/link/link.types.d.ts +15 -7
- package/link/linkIcon.d.ts +1 -0
- package/link/linkIcon.js +3 -5
- package/link/linkText.d.ts +1 -0
- package/link/linkText.js +3 -5
- package/link/theme.d.ts +6 -0
- package/link/theme.js +9 -1
- package/list/index.d.ts +1 -1
- package/list/index.js +2 -2
- package/list/list.d.ts +3 -3
- package/list/list.js +13 -8
- package/list/list.types.d.ts +29 -8
- package/list/listDivider.d.ts +1 -0
- package/list/listDivider.js +3 -5
- package/list/listHeading.d.ts +1 -0
- package/list/listHeading.js +4 -6
- package/list/listIcon.d.ts +1 -0
- package/list/listIcon.js +3 -5
- package/list/listItem.d.ts +5 -2
- package/list/listItem.js +52 -19
- package/list/listText.d.ts +1 -0
- package/list/listText.js +3 -5
- package/list/theme.d.ts +1 -0
- package/list/theme.js +5 -2
- package/menu/menu.d.ts +1 -0
- package/menu/menu.js +1 -0
- package/menu/menu.types.d.ts +3 -0
- package/menu/menuButton.d.ts +1 -0
- package/menu/menuButton.js +3 -4
- package/menu/menuItem.d.ts +1 -0
- package/menu/menuItem.js +9 -23
- package/menu/menuList.d.ts +1 -0
- package/menu/menuList.js +3 -4
- package/menu/theme.d.ts +16 -2
- package/menu/theme.js +18 -3
- package/modal/context.d.ts +4 -0
- package/modal/context.js +23 -0
- package/modal/focusLock.d.ts +9 -0
- package/modal/focusLock.js +47 -0
- package/modal/focusLock.types.d.ts +28 -0
- package/modal/focusLock.types.js +2 -0
- package/modal/index.d.ts +7 -0
- package/modal/index.js +24 -0
- package/modal/modal.d.ts +10 -0
- package/modal/modal.js +109 -0
- package/modal/modal.types.d.ts +40 -0
- package/modal/modal.types.js +2 -0
- package/modal/modalBackdrop.d.ts +4 -0
- package/modal/modalBackdrop.js +38 -0
- package/modal/modalManager.d.ts +12 -0
- package/modal/modalManager.js +33 -0
- package/modal/theme.d.ts +7 -0
- package/modal/theme.js +12 -0
- package/notification/consts.js +2 -2
- package/notification/index.d.ts +2 -2
- package/notification/index.js +3 -3
- package/notification/notification.d.ts +5 -1
- package/notification/notification.js +12 -27
- package/notification/notification.types.d.ts +11 -4
- package/notification/notificationButton.d.ts +1 -0
- package/notification/notificationButton.js +4 -5
- package/notification/notificationIcon.d.ts +1 -0
- package/notification/notificationIcon.js +7 -7
- package/notification/notificationText.d.ts +1 -0
- package/notification/notificationText.js +3 -5
- package/notification/notificationTitle.d.ts +1 -0
- package/notification/notificationTitle.js +3 -5
- package/notification/theme.d.ts +1 -0
- package/notification/theme.js +2 -0
- package/p/index.d.ts +1 -1
- package/p/index.js +1 -1
- package/p/p.d.ts +2 -2
- package/p/p.js +5 -4
- package/p/p.types.d.ts +7 -2
- package/p/theme.d.ts +1 -0
- package/p/theme.js +2 -0
- package/package.json +3 -1
- package/panel/index.d.ts +1 -1
- package/panel/index.js +1 -1
- package/panel/panel.d.ts +4 -0
- package/panel/panel.js +4 -0
- package/panel/panel.types.d.ts +1 -2
- package/panel/theme.d.ts +1 -0
- package/panel/theme.js +2 -0
- package/popover/consts.d.ts +6 -0
- package/popover/consts.js +42 -0
- package/popover/index.d.ts +1 -1
- package/popover/index.js +1 -1
- package/popover/popover.d.ts +6 -2
- package/popover/popover.js +20 -4
- package/popover/popover.types.d.ts +4 -1
- package/popover/popoverContent.d.ts +2 -1
- package/popover/popoverContent.js +6 -1
- package/popover/popoverTrigger.d.ts +4 -0
- package/popover/popoverTrigger.js +4 -0
- package/popover/theme.d.ts +1 -0
- package/popover/theme.js +2 -0
- package/popover/usePopover.d.ts +5 -0
- package/popover/usePopover.js +26 -18
- package/popover/usePopover.types.d.ts +17 -6
- package/portal/index.d.ts +3 -0
- package/{styles → portal}/index.js +5 -5
- package/portal/portal.d.ts +5 -0
- package/portal/portal.js +56 -0
- package/portal/portal.types.d.ts +7 -0
- package/portal/portal.types.js +2 -0
- package/radio/index.d.ts +1 -1
- package/radio/index.js +2 -2
- package/radio/radio.d.ts +5 -4
- package/radio/radio.js +20 -10
- package/radio/radio.types.d.ts +19 -4
- package/radio/radioGroup.d.ts +5 -2
- package/radio/radioGroup.js +11 -7
- package/radio/radioGroup.types.d.ts +10 -2
- package/radio/theme.d.ts +1 -0
- package/radio/theme.js +2 -0
- package/skeleton/index.d.ts +1 -1
- package/skeleton/index.js +1 -1
- package/skeleton/skeleton.d.ts +2 -2
- package/skeleton/skeleton.js +4 -3
- package/skeleton/skeleton.types.d.ts +5 -2
- package/skeleton/theme.d.ts +1 -0
- package/skeleton/theme.js +2 -0
- package/spinner/index.d.ts +1 -1
- package/spinner/index.js +1 -1
- package/spinner/spinner.d.ts +6 -2
- package/spinner/spinner.js +12 -5
- package/spinner/spinner.types.d.ts +10 -6
- package/spinner/theme.d.ts +1 -0
- package/spinner/theme.js +2 -0
- package/svg/helpers.d.ts +1 -1
- package/svg/index.d.ts +1 -1
- package/svg/index.js +1 -1
- package/svg/svg.d.ts +6 -1
- package/svg/svg.js +16 -5
- package/svg/svg.types.d.ts +7 -5
- package/switch/context.d.ts +2 -2
- package/switch/index.d.ts +1 -1
- package/switch/index.js +2 -2
- package/switch/switch.d.ts +6 -3
- package/switch/switch.js +15 -12
- package/switch/switch.types.d.ts +37 -4
- package/switch/switchButton.d.ts +5 -5
- package/switch/switchButton.js +34 -26
- package/switch/switchLabel.d.ts +1 -0
- package/switch/switchLabel.js +3 -5
- package/switch/theme.d.ts +1 -0
- package/switch/theme.js +2 -0
- package/system/animations.d.ts +3 -4
- package/system/backgrounds.d.ts +4 -5
- package/system/borders.d.ts +60 -61
- package/system/custom.d.ts +4 -4
- package/system/effects.d.ts +7 -8
- package/system/flexboxGrids.d.ts +5 -6
- package/system/flexboxes.d.ts +28 -29
- package/system/grids.d.ts +25 -26
- package/system/index.d.ts +0 -1
- package/system/index.js +0 -6
- package/system/interactivity.d.ts +11 -12
- package/system/layout.d.ts +31 -32
- package/system/sizing.d.ts +13 -14
- package/system/space.d.ts +37 -38
- package/system/system.d.ts +4 -5
- package/system/system.js +3 -1
- package/system/tables.d.ts +5 -6
- package/system/transforms.d.ts +22 -23
- package/system/transitions.d.ts +11 -12
- package/system/typography.d.ts +33 -34
- package/t/index.d.ts +1 -1
- package/t/index.js +1 -1
- package/t/t.d.ts +2 -2
- package/t/t.js +5 -4
- package/t/t.types.d.ts +8 -2
- package/t/theme.d.ts +1 -0
- package/t/theme.js +2 -0
- package/tag/index.d.ts +1 -1
- package/tag/index.js +2 -2
- package/tag/tag.d.ts +6 -3
- package/tag/tag.js +14 -7
- package/tag/tag.types.d.ts +19 -6
- package/tag/tagButton.d.ts +1 -0
- package/tag/tagButton.js +4 -16
- package/tag/tagIcon.d.ts +1 -0
- package/tag/tagIcon.js +3 -5
- package/tag/tagText.d.ts +1 -0
- package/tag/tagText.js +3 -5
- package/tag/theme.d.ts +1 -0
- package/tag/theme.js +8 -0
- package/textarea/helpers.d.ts +1 -0
- package/textarea/helpers.js +1 -0
- package/textarea/index.d.ts +1 -1
- package/textarea/index.js +1 -1
- package/textarea/textarea.d.ts +5 -3
- package/textarea/textarea.js +23 -10
- package/textarea/textarea.types.d.ts +22 -2
- package/textarea/theme.d.ts +1 -0
- package/textarea/theme.js +2 -0
- package/theme/components.d.ts +129 -2
- package/theme/components.js +38 -36
- package/theme/defaultTheme.d.ts +134 -2
- package/theme/foundations/colors.d.ts +10 -0
- package/theme/foundations/colors.js +8 -2
- package/theme/foundations/index.d.ts +5 -0
- package/theme/foundations/shadows.js +3 -3
- package/theme/foundations/transformers.js +3 -2
- package/theme/index.d.ts +1 -3
- package/theme/index.js +4 -5
- package/theme/types.d.ts +3 -2
- package/utils/assertion.d.ts +5 -5
- package/utils/assertion.js +8 -4
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -0
- package/utils/object.d.ts +2 -2
- package/utils/object.js +3 -1
- package/utils/react.d.ts +10 -5
- package/utils/react.js +64 -9
- package/utils/string.d.ts +5 -0
- package/utils/string.js +19 -0
- package/utils/styles.d.ts +2 -2
- package/utils/styles.js +4 -4
- package/utils/types.d.ts +11 -4
- package/core/types/component.d.ts +0 -25
- package/core/types/index.d.ts +0 -2
- package/core/types/index.js +0 -14
- package/core/types/themeGet.d.ts +0 -24
- package/core/utils.d.ts +0 -56
- package/core/utils.js +0 -194
- package/core/vuiProvider.d.ts +0 -20
- package/icons/library.d.ts +0 -11
- package/popover/plugins.d.ts +0 -3
- package/popover/plugins.js +0 -24
- package/styles/fontFaces.js +0 -4
- package/styles/helpers.d.ts +0 -4
- package/styles/helpers.js +0 -8
- package/styles/index.d.ts +0 -3
- /package/{styles → core/vuiProvider}/animations.d.ts +0 -0
- /package/{styles → core/vuiProvider}/animations.js +0 -0
- /package/{styles → core/vuiProvider}/fontFaces.d.ts +0 -0
- /package/{core/types/component.js → header/header.types.js} +0 -0
- /package/{core/types/themeGet.js → header/headerAccount.types.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type BaseIcon = 'cubPowerBi' | 'cubVeracity' | 'cuiCheckboxIndeterminate' | 'cuiCheckboxSelected' | 'cuiCheckboxUnselected' | 'cuiRadioSelected' | 'cuiRadioUnselected' | 'culApiProduct' | 'culApiService' | 'culCircleChart' | 'culCircleChartAlt' | 'culCovid' | 'culDeepSearch' | 'culDotsMenu' | 'culGlobePlus' | 'culListDense' | 'culMapMarkerStar' | 'culNumber1' | 'culPlusThin' | 'culScreenshot' | 'culScreenshotAlt' | 'culShortcut' | 'culTarget' | 'culTimesThin' | 'culTransformer' | 'culUserTransfer' | 'culVeracityService' | 'culVessel' | 'culVesselGroup' | 'cusDotFull' | 'cusDotFullAlt' | 'cusDotsMenu' | 'cusTransformer' | 'cusVessel' | 'fabApplePay' | 'fabBluetooth' | 'fabBtc' | 'fabCcAmazonPay' | 'fabCcAmex' | 'fabCcApplePay' | 'fabCcDinersClub' | 'fabCcMastercard' | 'fabCcPaypal' | 'fabCcVisa' | 'fabDhl' | 'fabEbay' | 'fabFacebook' | 'fabFedex' | 'fabFirefox' | 'fabGoogle' | 'fabGoogleDrive' | 'fabLinkedinIn' | 'fabMedium' | 'fabOsi' | 'fabSlack' | 'fabTwitter' | 'fabUps' | 'fabYoutube' | 'fadSpinnerThird' | 'falAddressBook' | 'falAddressCard' | 'falAnalytics' | 'falAngleDoubleDown' | 'falAngleDoubleLeft' | 'falAngleDoubleRight' | 'falAngleDoubleUp' | 'falAngleDown' | 'falAngleLeft' | 'falAngleRight' | 'falAngleUp' | 'falArrowAltDown' | 'falArrowAltLeft' | 'falArrowAltRight' | 'falArrowAltUp' | 'falArrowCircleDown' | 'falArrowCircleLeft' | 'falArrowCircleRight' | 'falArrowCircleUp' | 'falArrowDown' | 'falArrowFromBottom' | 'falArrowFromLeft' | 'falArrowFromRight' | 'falArrowFromTop' | 'falArrowLeft' | 'falArrowRight' | 'falArrowToBottom' | 'falArrowToLeft' | 'falArrowToRight' | 'falArrowToTop' | 'falArrowUp' | 'falArrows' | 'falAward' | 'falBan' | 'falBars' | 'falBell' | 'falBookOpen' | 'falBroadcastTower' | 'falBroom' | 'falBuilding' | 'falBullseye' | 'falCalendar' | 'falCalendarAlt' | 'falCamera' | 'falCaretDown' | 'falCaretLeft' | 'falCaretRight' | 'falCaretUp' | 'falCauldron' | 'falChartArea' | 'falChartBar' | 'falChartLine' | 'falChartLineDown' | 'falChartNetwork' | 'falChartPie' | 'falChartPieAlt' | 'falChartScatter' | 'falCheck' | 'falCheckCircle' | 'falCheckSquare' | 'falChevronCircleDown' | 'falChevronCircleLeft' | 'falChevronCircleRight' | 'falChevronCircleUp' | 'falChevronDoubleDown' | 'falChevronDoubleLeft' | 'falChevronDoubleRight' | 'falChevronDoubleUp' | 'falChevronDown' | 'falChevronLeft' | 'falChevronRight' | 'falChevronUp' | 'falCircle' | 'falCloud' | 'falCloudShowersHeavy' | 'falCloudSnow' | 'falCloudSun' | 'falCloudSunRain' | 'falCloudUpload' | 'falCode' | 'falCog' | 'falCogs' | 'falComment' | 'falCommentAlt' | 'falCompressAlt' | 'falCopy' | 'falCreditCard' | 'falDatabase' | 'falDotCircle' | 'falDownload' | 'falEdit' | 'falEllipsisH' | 'falEllipsisV' | 'falEnvelope' | 'falExchange' | 'falExclamationCircle' | 'falExclamationTriangle' | 'falExpandAlt' | 'falExternalLink' | 'falEye' | 'falEyeSlash' | 'falFile' | 'falFileAlt' | 'falFileArchive' | 'falFileAudio' | 'falFileCertificate' | 'falFileChartLine' | 'falFileChartPie' | 'falFileCheck' | 'falFileCode' | 'falFileCsv' | 'falFileEdit' | 'falFileExcel' | 'falFileImage' | 'falFilePdf' | 'falFilePlus' | 'falFilePowerpoint' | 'falFileSpreadsheet' | 'falFileVideo' | 'falFileWord' | 'falFilter' | 'falFlag' | 'falFolder' | 'falFolderOpen' | 'falFolderPlus' | 'falFolders' | 'falGlassesAlt' | 'falGlobe' | 'falHome' | 'falHourglass' | 'falImage' | 'falInfoCircle' | 'falKey' | 'falLayerGroup' | 'falLayerPlus' | 'falLink' | 'falList' | 'falLockAlt' | 'falLongArrowDown' | 'falLongArrowLeft' | 'falLongArrowRight' | 'falLongArrowUp' | 'falMap' | 'falMapMarked' | 'falMapMarkedAlt' | 'falMapMarker' | 'falMapMarkerAlt' | 'falMapMarkerAltSlash' | 'falMapMarkerCheck' | 'falMapMarkerExclamation' | 'falMinus' | 'falPause' | 'falPauseCircle' | 'falPen' | 'falPlay' | 'falPlayCircle' | 'falPlug' | 'falPlus' | 'falPlusCircle' | 'falPlusSquare' | 'falPrint' | 'falPuzzlePiece' | 'falQuestionCircle' | 'falReceipt' | 'falRedo' | 'falSave' | 'falSearch' | 'falSearchMinus' | 'falSearchPlus' | 'falServer' | 'falShare' | 'falShareAll' | 'falShareAlt' | 'falShieldAlt' | 'falShieldCheck' | 'falShip' | 'falShoppingBasket' | 'falSignIn' | 'falSignInAlt' | 'falSignOut' | 'falSignOutAlt' | 'falSlidersV' | 'falSnowBlowing' | 'falSnowflake' | 'falSolarPanel' | 'falSort' | 'falSpinner' | 'falSquare' | 'falStepForward' | 'falStop' | 'falStopCircle' | 'falStopwatch' | 'falSuitcase' | 'falSun' | 'falSync' | 'falTachometer' | 'falTemperatureHigh' | 'falTh' | 'falThLarge' | 'falThList' | 'falTimes' | 'falTimesCircle' | 'falToggleOff' | 'falToggleOn' | 'falTrashAlt' | 'falUnlockAlt' | 'falUser' | 'falUserChart' | 'falUserCircle' | 'falUserCog' | 'falUserEdit' | 'falUserFriends' | 'falUserPlus' | 'falUserShield' | 'falUserTimes' | 'falUsers' | 'falUsersClass' | 'falWater' | 'falWind' | 'falWindTurbine' | 'falWrench' | 'fasCalendarAlt' | 'fasCaretDown' | 'fasCaretLeft' | 'fasCaretRight' | 'fasCaretUp' | 'fasCheckCircle' | 'fasDiamond' | 'fasFolder' | 'fasMapMarkerAlt' | 'fasMapMarkerExclamation' | 'fasQuoteLeft' | 'fasQuoteRight' | 'fasSolarPanel' | 'fasSort' | 'fasStar' | 'fasWindTurbine';
|
|
1
|
+
export declare type BaseIcon = 'cubPowerBi' | 'cubVeracity' | 'cuiCheckboxIndeterminate' | 'cuiCheckboxSelected' | 'cuiCheckboxUnselected' | 'cuiRadioSelected' | 'cuiRadioUnselected' | 'culApiProduct' | 'culApiService' | 'culCircleChart' | 'culCircleChartAlt' | 'culCovid' | 'culDeepSearch' | 'culDotsMenu' | 'culGlobePlus' | 'culListDense' | 'culMapMarkerStar' | 'culNumber1' | 'culPlusThin' | 'culScreenshot' | 'culScreenshotAlt' | 'culShortcut' | 'culTarget' | 'culTimesThin' | 'culTransformer' | 'culUserTransfer' | 'culVeracityService' | 'culVessel' | 'culVesselGroup' | 'cusDotFull' | 'cusDotFullAlt' | 'cusDotsMenu' | 'cusTransformer' | 'cusVessel' | 'fabApplePay' | 'fabBluetooth' | 'fabBtc' | 'fabCcAmazonPay' | 'fabCcAmex' | 'fabCcApplePay' | 'fabCcDinersClub' | 'fabCcMastercard' | 'fabCcPaypal' | 'fabCcVisa' | 'fabDhl' | 'fabEbay' | 'fabFacebook' | 'fabFedex' | 'fabFirefox' | 'fabGoogle' | 'fabGoogleDrive' | 'fabLinkedinIn' | 'fabMedium' | 'fabOsi' | 'fabSlack' | 'fabTwitter' | 'fabUps' | 'fabYoutube' | 'fadSpinnerThird' | 'falAddressBook' | 'falAddressCard' | 'falAnalytics' | 'falAngleDoubleDown' | 'falAngleDoubleLeft' | 'falAngleDoubleRight' | 'falAngleDoubleUp' | 'falAngleDown' | 'falAngleLeft' | 'falAngleRight' | 'falAngleUp' | 'falArrowAltDown' | 'falArrowAltLeft' | 'falArrowAltRight' | 'falArrowAltUp' | 'falArrowCircleDown' | 'falArrowCircleLeft' | 'falArrowCircleRight' | 'falArrowCircleUp' | 'falArrowDown' | 'falArrowFromBottom' | 'falArrowFromLeft' | 'falArrowFromRight' | 'falArrowFromTop' | 'falArrowLeft' | 'falArrowRight' | 'falArrowToBottom' | 'falArrowToLeft' | 'falArrowToRight' | 'falArrowToTop' | 'falArrowUp' | 'falArrows' | 'falAward' | 'falBan' | 'falBars' | 'falBell' | 'falBookOpen' | 'falBroadcastTower' | 'falBroom' | 'falBuilding' | 'falBullseye' | 'falCalendar' | 'falCalendarAlt' | 'falCamera' | 'falCaretDown' | 'falCaretLeft' | 'falCaretRight' | 'falCaretUp' | 'falCauldron' | 'falChartArea' | 'falChartBar' | 'falChartLine' | 'falChartLineDown' | 'falChartNetwork' | 'falChartPie' | 'falChartPieAlt' | 'falChartScatter' | 'falCheck' | 'falCheckCircle' | 'falCheckSquare' | 'falChevronCircleDown' | 'falChevronCircleLeft' | 'falChevronCircleRight' | 'falChevronCircleUp' | 'falChevronDoubleDown' | 'falChevronDoubleLeft' | 'falChevronDoubleRight' | 'falChevronDoubleUp' | 'falChevronDown' | 'falChevronLeft' | 'falChevronRight' | 'falChevronUp' | 'falCircle' | 'falCloud' | 'falCloudShowersHeavy' | 'falCloudSnow' | 'falCloudSun' | 'falCloudSunRain' | 'falCloudUpload' | 'falCode' | 'falCog' | 'falCogs' | 'falComment' | 'falCommentAlt' | 'falCompressAlt' | 'falCopy' | 'falCreditCard' | 'falDatabase' | 'falDotCircle' | 'falDownload' | 'falEdit' | 'falEllipsisH' | 'falEllipsisV' | 'falEnvelope' | 'falExchange' | 'falExclamationCircle' | 'falExclamationTriangle' | 'falExpandAlt' | 'falExternalLink' | 'falEye' | 'falEyeSlash' | 'falFile' | 'falFileAlt' | 'falFileArchive' | 'falFileAudio' | 'falFileCertificate' | 'falFileChartLine' | 'falFileChartPie' | 'falFileCheck' | 'falFileCode' | 'falFileCsv' | 'falFileEdit' | 'falFileExcel' | 'falFileImage' | 'falFileInvoiceDollar' | 'falFilePdf' | 'falFilePlus' | 'falFilePowerpoint' | 'falFileSpreadsheet' | 'falFileVideo' | 'falFileWord' | 'falFilter' | 'falFlag' | 'falFolder' | 'falFolderOpen' | 'falFolderPlus' | 'falFolders' | 'falGlassesAlt' | 'falGlobe' | 'falHome' | 'falHourglass' | 'falImage' | 'falInfoCircle' | 'falKey' | 'falLayerGroup' | 'falLayerPlus' | 'falLink' | 'falList' | 'falLockAlt' | 'falLongArrowDown' | 'falLongArrowLeft' | 'falLongArrowRight' | 'falLongArrowUp' | 'falMap' | 'falMapMarked' | 'falMapMarkedAlt' | 'falMapMarker' | 'falMapMarkerAlt' | 'falMapMarkerAltSlash' | 'falMapMarkerCheck' | 'falMapMarkerExclamation' | 'falMinus' | 'falPause' | 'falPauseCircle' | 'falPen' | 'falPlay' | 'falPlayCircle' | 'falPlug' | 'falPlus' | 'falPlusCircle' | 'falPlusSquare' | 'falPrint' | 'falPuzzlePiece' | 'falQuestionCircle' | 'falReceipt' | 'falRedo' | 'falSave' | 'falSearch' | 'falSearchMinus' | 'falSearchPlus' | 'falServer' | 'falShare' | 'falShareAll' | 'falShareAlt' | 'falShieldAlt' | 'falShieldCheck' | 'falShip' | 'falShoppingBasket' | 'falSignIn' | 'falSignInAlt' | 'falSignOut' | 'falSignOutAlt' | 'falSlidersV' | 'falSnowBlowing' | 'falSnowflake' | 'falSolarPanel' | 'falSort' | 'falSpinner' | 'falSquare' | 'falStepForward' | 'falStop' | 'falStopCircle' | 'falStopwatch' | 'falSuitcase' | 'falSun' | 'falSync' | 'falTachometer' | 'falTemperatureHigh' | 'falTh' | 'falThLarge' | 'falThList' | 'falTimes' | 'falTimesCircle' | 'falToggleOff' | 'falToggleOn' | 'falTrashAlt' | 'falUnlockAlt' | 'falUser' | 'falUserChart' | 'falUserCircle' | 'falUserCog' | 'falUserEdit' | 'falUserFriends' | 'falUserPlus' | 'falUserShield' | 'falUserTimes' | 'falUsers' | 'falUsersClass' | 'falWater' | 'falWind' | 'falWindTurbine' | 'falWrench' | 'fasCalendarAlt' | 'fasCaretDown' | 'fasCaretLeft' | 'fasCaretRight' | 'fasCaretUp' | 'fasCheckCircle' | 'fasDiamond' | 'fasFolder' | 'fasMapMarkerAlt' | 'fasMapMarkerExclamation' | 'fasQuoteLeft' | 'fasQuoteRight' | 'fasSolarPanel' | 'fasSort' | 'fasStar' | 'fasWindTurbine';
|
package/icons/cache.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IconDefinition } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Holds the collection of selected predefined icons. Can be extended with more icons by the consumer.
|
|
4
|
+
* When using icons, they will be checked in library before loading them from CDN.
|
|
5
|
+
*/
|
|
6
|
+
declare class IconsCache {
|
|
7
|
+
cache: Map<string, IconDefinition>;
|
|
8
|
+
add: (...icons: IconDefinition[]) => void;
|
|
9
|
+
get: (name: string) => IconDefinition | undefined;
|
|
10
|
+
has: (name: string) => boolean;
|
|
11
|
+
init: () => void;
|
|
12
|
+
reset: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const cache: IconsCache;
|
|
15
|
+
export default cache;
|
|
@@ -26,8 +26,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
var consts_1 = require("./consts");
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Holds the collection of selected predefined icons. Can be extended with more icons by the consumer.
|
|
31
|
+
* When using icons, they will be checked in library before loading them from CDN.
|
|
32
|
+
*/
|
|
33
|
+
var IconsCache = /** @class */ (function () {
|
|
34
|
+
function IconsCache() {
|
|
31
35
|
var _this = this;
|
|
32
36
|
this.cache = new Map();
|
|
33
37
|
this.add = function () {
|
|
@@ -57,8 +61,8 @@ var Library = /** @class */ (function () {
|
|
|
57
61
|
_this.cache.clear();
|
|
58
62
|
};
|
|
59
63
|
}
|
|
60
|
-
return
|
|
64
|
+
return IconsCache;
|
|
61
65
|
}());
|
|
62
|
-
var
|
|
63
|
-
|
|
64
|
-
exports.default =
|
|
66
|
+
var cache = new IconsCache();
|
|
67
|
+
cache.init();
|
|
68
|
+
exports.default = cache;
|
package/icons/index.d.ts
CHANGED
package/icons/index.js
CHANGED
|
@@ -13,8 +13,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
14
|
};
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.iconsCache = void 0;
|
|
17
|
+
var cache_1 = require("./cache");
|
|
18
|
+
Object.defineProperty(exports, "iconsCache", { enumerable: true, get: function () { return __importDefault(cache_1).default; } });
|
|
17
19
|
__exportStar(require("./consts"), exports);
|
|
18
20
|
__exportStar(require("./types"), exports);
|
|
19
|
-
var library_1 = require("./library");
|
|
20
|
-
Object.defineProperty(exports, "library", { enumerable: true, get: function () { return __importDefault(library_1).default; } });
|
package/icons/types.d.ts
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BaseIcon } from './baseIcons/types';
|
|
3
2
|
import Svg from '../svg';
|
|
4
3
|
import { PropsOf } from '../utils';
|
|
5
|
-
|
|
4
|
+
import { BaseIcon } from './baseIcons/types';
|
|
5
|
+
/** Object defining a custom icon. */
|
|
6
|
+
export declare type IconDefinition = {
|
|
7
|
+
/** Icon details including height, width and 'd' attribute. */
|
|
6
8
|
details: IconDetails;
|
|
9
|
+
/** Name of the icon used internally. */
|
|
7
10
|
name: string;
|
|
11
|
+
/** Props object or array of objects passed to the path elements. */
|
|
8
12
|
pathProps?: React.SVGProps<SVGPathElement> | React.SVGProps<SVGPathElement>[];
|
|
13
|
+
/** Props object passed to the svg element. */
|
|
9
14
|
svgProps?: PropsOf<typeof Svg>;
|
|
10
|
-
}
|
|
15
|
+
};
|
|
16
|
+
/** Icon definition following Font Awesome standard. */
|
|
11
17
|
export declare type IconDetails = [
|
|
12
18
|
number,
|
|
13
19
|
number,
|
|
@@ -17,5 +23,6 @@ export declare type IconDetails = [
|
|
|
17
23
|
string | string[]
|
|
18
24
|
];
|
|
19
25
|
export declare type VuiIcon = keyof VuiIcons;
|
|
26
|
+
/** Base icons collection, which can be extended by the consumer. */
|
|
20
27
|
export interface VuiIcons extends Record<BaseIcon, IconDefinition> {
|
|
21
28
|
}
|
package/image/image.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ImageProps } from './image.types';
|
|
2
|
+
export declare const ImageBase: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, import("..").SystemProps, never>;
|
|
3
|
+
/** Displays an image. Includes base styling. */
|
|
2
4
|
export declare const Image: import("../core").VuiComponent<"img", ImageProps>;
|
|
3
5
|
export default Image;
|
package/image/image.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
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
|
+
};
|
|
2
6
|
var __assign = (this && this.__assign) || function () {
|
|
3
7
|
__assign = Object.assign || function(t) {
|
|
4
8
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -25,14 +29,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
30
|
};
|
|
27
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.Image = void 0;
|
|
32
|
+
exports.Image = exports.ImageBase = void 0;
|
|
29
33
|
var react_1 = __importDefault(require("react"));
|
|
30
34
|
var core_1 = require("../core");
|
|
31
35
|
var utils_1 = require("../utils");
|
|
36
|
+
exports.ImageBase = core_1.styled.imgBox(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\theight: auto;\n\tobject-fit: cover;\n\twidth: 100%;\n"], ["\n\theight: auto;\n\tobject-fit: cover;\n\twidth: 100%;\n"
|
|
37
|
+
/** Displays an image. Includes base styling. */
|
|
38
|
+
])));
|
|
39
|
+
/** Displays an image. Includes base styling. */
|
|
32
40
|
exports.Image = (0, core_1.vui)(function (props, ref) {
|
|
33
41
|
var _a = (0, core_1.omitThemingProps)(props), className = _a.className, rest = __rest(_a, ["className"]);
|
|
34
42
|
var styles = (0, core_1.useStyleConfig)('Image', props);
|
|
35
|
-
return react_1.default.createElement(
|
|
43
|
+
return react_1.default.createElement(exports.ImageBase, __assign({ className: (0, utils_1.cs)('vui-image', className), ref: ref }, styles, rest));
|
|
36
44
|
});
|
|
37
45
|
exports.Image.displayName = 'Image';
|
|
38
46
|
exports.default = exports.Image;
|
|
47
|
+
var templateObject_1;
|
package/image/image.types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SystemProps } from '../system';
|
|
2
2
|
import { ThemingProps } from '../theme';
|
|
3
|
-
export
|
|
3
|
+
export declare type ImageProps = SystemProps & ThemingProps<'Image'> & {
|
|
4
|
+
/** Children are disabled for this component. */
|
|
4
5
|
children?: never;
|
|
5
|
-
}
|
|
6
|
+
};
|
package/image/index.d.ts
CHANGED
package/image/index.js
CHANGED
|
@@ -15,6 +15,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.default = void 0;
|
|
17
17
|
__exportStar(require("./image"), exports);
|
|
18
|
-
__exportStar(require("./image.types"), exports);
|
|
19
18
|
var image_1 = require("./image");
|
|
20
19
|
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(image_1).default; } });
|
|
20
|
+
__exportStar(require("./image.types"), exports);
|
package/image/theme.d.ts
CHANGED
package/image/theme.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var baseStyle = {};
|
|
3
4
|
var defaultProps = {};
|
|
4
5
|
var sizes = {};
|
|
5
6
|
var variants = {};
|
|
6
7
|
exports.default = {
|
|
8
|
+
baseStyle: baseStyle,
|
|
7
9
|
defaultProps: defaultProps,
|
|
8
10
|
sizes: sizes,
|
|
9
11
|
variants: variants
|
package/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './checkbox';
|
|
|
7
7
|
export * from './core';
|
|
8
8
|
export * from './divider';
|
|
9
9
|
export * from './footer';
|
|
10
|
+
export * from './header';
|
|
10
11
|
export * from './heading';
|
|
11
12
|
export * from './icon';
|
|
12
13
|
export * from './icons';
|
|
@@ -15,14 +16,15 @@ export * from './input';
|
|
|
15
16
|
export * from './link';
|
|
16
17
|
export * from './list';
|
|
17
18
|
export * from './menu';
|
|
19
|
+
export * from './modal';
|
|
18
20
|
export * from './notification';
|
|
19
21
|
export * from './p';
|
|
20
22
|
export * from './panel';
|
|
21
23
|
export * from './popover';
|
|
24
|
+
export * from './portal';
|
|
22
25
|
export * from './radio';
|
|
23
26
|
export * from './skeleton';
|
|
24
27
|
export * from './spinner';
|
|
25
|
-
export * from './styles';
|
|
26
28
|
export * from './svg';
|
|
27
29
|
export * from './switch';
|
|
28
30
|
export * from './system';
|
package/index.js
CHANGED
|
@@ -19,6 +19,7 @@ __exportStar(require("./checkbox"), exports);
|
|
|
19
19
|
__exportStar(require("./core"), exports);
|
|
20
20
|
__exportStar(require("./divider"), exports);
|
|
21
21
|
__exportStar(require("./footer"), exports);
|
|
22
|
+
__exportStar(require("./header"), exports);
|
|
22
23
|
__exportStar(require("./heading"), exports);
|
|
23
24
|
__exportStar(require("./icon"), exports);
|
|
24
25
|
__exportStar(require("./icons"), exports);
|
|
@@ -27,14 +28,15 @@ __exportStar(require("./input"), exports);
|
|
|
27
28
|
__exportStar(require("./link"), exports);
|
|
28
29
|
__exportStar(require("./list"), exports);
|
|
29
30
|
__exportStar(require("./menu"), exports);
|
|
31
|
+
__exportStar(require("./modal"), exports);
|
|
30
32
|
__exportStar(require("./notification"), exports);
|
|
31
33
|
__exportStar(require("./p"), exports);
|
|
32
34
|
__exportStar(require("./panel"), exports);
|
|
33
35
|
__exportStar(require("./popover"), exports);
|
|
36
|
+
__exportStar(require("./portal"), exports);
|
|
34
37
|
__exportStar(require("./radio"), exports);
|
|
35
38
|
__exportStar(require("./skeleton"), exports);
|
|
36
39
|
__exportStar(require("./spinner"), exports);
|
|
37
|
-
__exportStar(require("./styles"), exports);
|
|
38
40
|
__exportStar(require("./svg"), exports);
|
|
39
41
|
__exportStar(require("./switch"), exports);
|
|
40
42
|
__exportStar(require("./system"), exports);
|
package/input/consts.js
CHANGED
|
@@ -13,8 +13,8 @@ exports.inputStateMapping = {
|
|
|
13
13
|
colorScheme: 'grey',
|
|
14
14
|
iconProps: {
|
|
15
15
|
animation: 'vui-spin 0.6s linear infinite',
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
name: 'fadSpinnerThird',
|
|
17
|
+
pathFill: ['blue.20', 'blue.50']
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
success: {
|
package/input/helpers.d.ts
CHANGED
package/input/helpers.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getInitialCount = void 0;
|
|
4
|
+
/** Returns length of the initial input's value. */
|
|
4
5
|
function getInitialCount(props) {
|
|
5
6
|
var _a, _b;
|
|
6
7
|
var defaultValue = props.defaultValue, value = props.value;
|
package/input/index.d.ts
CHANGED
package/input/index.js
CHANGED
|
@@ -15,8 +15,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.default = void 0;
|
|
17
17
|
__exportStar(require("./input"), exports);
|
|
18
|
+
var input_1 = require("./input");
|
|
19
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(input_1).default; } });
|
|
18
20
|
__exportStar(require("./input.types"), exports);
|
|
19
21
|
__exportStar(require("./inputIcon"), exports);
|
|
20
22
|
__exportStar(require("./inputInput"), exports);
|
|
21
|
-
var input_1 = require("./input");
|
|
22
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(input_1).default; } });
|
package/input/input.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { VuiComponent } from '../core';
|
|
1
2
|
import { InputProps } from './input.types';
|
|
2
3
|
import InputIcon from './inputIcon';
|
|
3
4
|
import InputInput from './inputInput';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
export declare const InputBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("..").SystemProps, never>;
|
|
6
|
+
/**
|
|
7
|
+
* Displays an input element wrapped in a div to allow extra content, like counter, side icons or buttons.
|
|
8
|
+
* Forwards many relevant props to the inner input. Handles different states, like loading or error.
|
|
9
|
+
* Exposes some props to the children via context.
|
|
10
|
+
*/
|
|
7
11
|
export declare const Input: VuiComponent<"div", InputProps> & {
|
|
8
12
|
Icon: typeof InputIcon;
|
|
9
13
|
Input: typeof InputInput;
|
package/input/input.js
CHANGED
|
@@ -66,17 +66,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
67
|
exports.Input = exports.InputBase = void 0;
|
|
68
68
|
var react_1 = __importStar(require("react"));
|
|
69
|
-
var
|
|
69
|
+
var core_1 = require("../core");
|
|
70
|
+
var t_1 = __importDefault(require("../t"));
|
|
71
|
+
var utils_1 = require("../utils");
|
|
70
72
|
var consts_1 = require("./consts");
|
|
71
73
|
var context_1 = require("./context");
|
|
72
74
|
var helpers_1 = require("./helpers");
|
|
73
75
|
var inputIcon_1 = __importDefault(require("./inputIcon"));
|
|
74
76
|
var inputInput_1 = __importDefault(require("./inputInput"));
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
exports.InputBase = core_1.styled.divBox(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-items: center;\n\tbackground-color: white;\n\tborder-radius: md;\n\tborder-width: 1px;\n\tdisplay: flex;\n\toutline: none;\n\tposition: relative;\n\ttransition-duration: fast;\n\twidth: 100%;\n\n\t&[aria-disabled='true'] {\n\t\tbackground-color: disabled.bg;\n\t\tcolor: disabled.color;\n\t\tcursor: not-allowed;\n\t}\n"], ["\n\talign-items: center;\n\tbackground-color: white;\n\tborder-radius: md;\n\tborder-width: 1px;\n\tdisplay: flex;\n\toutline: none;\n\tposition: relative;\n\ttransition-duration: fast;\n\twidth: 100%;\n\n\t&[aria-disabled='true'] {\n\t\tbackground-color: disabled.bg;\n\t\tcolor: disabled.color;\n\t\tcursor: not-allowed;\n\t}\n"
|
|
78
|
+
/**
|
|
79
|
+
* Displays an input element wrapped in a div to allow extra content, like counter, side icons or buttons.
|
|
80
|
+
* Forwards many relevant props to the inner input. Handles different states, like loading or error.
|
|
81
|
+
* Exposes some props to the children via context.
|
|
82
|
+
*/
|
|
83
|
+
])));
|
|
84
|
+
/**
|
|
85
|
+
* Displays an input element wrapped in a div to allow extra content, like counter, side icons or buttons.
|
|
86
|
+
* Forwards many relevant props to the inner input. Handles different states, like loading or error.
|
|
87
|
+
* Exposes some props to the children via context.
|
|
88
|
+
*/
|
|
80
89
|
exports.Input = (0, core_1.vui)(function (props, ref) {
|
|
81
90
|
var _a, _b, _c, _d;
|
|
82
91
|
var _e = __read((0, react_1.useState)((0, helpers_1.getInitialCount)(props)), 2), count = _e[0], setCount = _e[1];
|
|
@@ -92,12 +101,13 @@ exports.Input = (0, core_1.vui)(function (props, ref) {
|
|
|
92
101
|
onChangeProp === null || onChangeProp === void 0 ? void 0 : onChangeProp(e);
|
|
93
102
|
}
|
|
94
103
|
var aliasedProps = (0, utils_1.filterUndefined)({
|
|
104
|
+
'aria-disabled': disabled,
|
|
95
105
|
bg: readOnly ? 'grey.10' : undefined,
|
|
96
106
|
focusWithinBorderColor: !readOnly ? 'transparent' : undefined,
|
|
97
107
|
focusWithinRingColor: readOnly ? 'transparent' : undefined
|
|
98
108
|
});
|
|
99
109
|
return (react_1.default.createElement(context_1.InputProvider, { value: context },
|
|
100
|
-
react_1.default.createElement(exports.InputBase, __assign({
|
|
110
|
+
react_1.default.createElement(exports.InputBase, __assign({ className: (0, utils_1.cs)('vui-input', className), ref: ref }, styles.container, aliasedProps, rest),
|
|
101
111
|
itemLeft,
|
|
102
112
|
(0, utils_1.isString)(iconLeft) ? react_1.default.createElement(inputIcon_1.default, { ml: 1, name: iconLeft }) : iconLeft, (_c = children !== null && children !== void 0 ? children : input) !== null && _c !== void 0 ? _c : (react_1.default.createElement(inputInput_1.default, __assign({ ref: inputRef }, {
|
|
103
113
|
autoComplete: autoComplete,
|
package/input/input.types.d.ts
CHANGED
|
@@ -2,41 +2,70 @@
|
|
|
2
2
|
import { IconProp, IconProps } from '../icon';
|
|
3
3
|
import { SystemProps } from '../system';
|
|
4
4
|
import { ThemingProps } from '../theme';
|
|
5
|
-
import {
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import { ChangeEventHandler, FocusEventHandler, PropsOf } from '../utils';
|
|
6
|
+
export declare type InputInputProps = PropsOf<'input', SystemProps>;
|
|
7
|
+
export declare type InputProps = SystemProps & ThemingProps<'Input'> & {
|
|
8
|
+
/** Passed to the inner input. */
|
|
9
9
|
autoComplete?: string;
|
|
10
|
+
/** Passed to the inner input. */
|
|
10
11
|
autoFocus?: boolean;
|
|
12
|
+
/** Available theme colors for this component. @default grey */
|
|
11
13
|
colorScheme?: 'green' | 'grey' | 'red';
|
|
14
|
+
/** Passed to the inner input. */
|
|
12
15
|
defaultValue?: number | string;
|
|
16
|
+
/** Passed to the inner input. */
|
|
13
17
|
disabled?: boolean;
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
/** Socket displaying an icon on the left. */
|
|
19
|
+
iconLeft?: IconProp | JSX.Element;
|
|
20
|
+
/** Socket displaying an icon on the right. */
|
|
21
|
+
iconRight?: IconProp | JSX.Element;
|
|
22
|
+
/** Socket rendering a custom input element. */
|
|
16
23
|
input?: React.ReactNode;
|
|
24
|
+
/** Props object passed to the inner input. */
|
|
17
25
|
inputProps?: InputInputProps;
|
|
26
|
+
/** Ref passed to the inner input. */
|
|
18
27
|
inputRef?: React.MutableRefObject<HTMLInputElement | null> | null;
|
|
28
|
+
/** Styles the input in invalid state. */
|
|
19
29
|
isInvalid?: boolean;
|
|
30
|
+
/** Socket displaying a custom element on the left. */
|
|
20
31
|
itemLeft?: React.ReactNode;
|
|
32
|
+
/** Socket displaying a custom element on the right. */
|
|
21
33
|
itemRight?: React.ReactNode;
|
|
34
|
+
/** Passed to the inner input. */
|
|
22
35
|
max?: number | string;
|
|
36
|
+
/** Passed to the inner input. */
|
|
23
37
|
maxLength?: number;
|
|
38
|
+
/** Passed to the inner input. */
|
|
24
39
|
min?: number | string;
|
|
40
|
+
/** Passed to the inner input. */
|
|
25
41
|
name?: string;
|
|
42
|
+
/** Passed to the inner input. */
|
|
26
43
|
onBlur?: FocusEventHandler;
|
|
44
|
+
/** Passed to the inner input. */
|
|
27
45
|
onChange?: ChangeEventHandler;
|
|
46
|
+
/** Passed to the inner input. */
|
|
28
47
|
onFocus?: FocusEventHandler;
|
|
48
|
+
/** Passed to the inner input. */
|
|
29
49
|
pattern?: string;
|
|
50
|
+
/** Passed to the inner input. */
|
|
30
51
|
placeholder?: string;
|
|
52
|
+
/** Passed to the inner input. */
|
|
31
53
|
readOnly?: boolean;
|
|
54
|
+
/** Passed to the inner input. */
|
|
32
55
|
required?: boolean;
|
|
56
|
+
/** Displays length of input value if also using maxLength. */
|
|
33
57
|
showCount?: boolean;
|
|
58
|
+
/** Modifies Input style and content based on the given state. */
|
|
34
59
|
state?: InputState;
|
|
60
|
+
/** Object definition of styles and content for each state. */
|
|
35
61
|
stateMapping?: InputStateMapping;
|
|
62
|
+
/** Passed to the inner input. */
|
|
36
63
|
step?: number | string;
|
|
64
|
+
/** Passed to the inner input. */
|
|
37
65
|
type?: InputType;
|
|
66
|
+
/** Passed to the inner input. */
|
|
38
67
|
value?: number | string;
|
|
39
|
-
}
|
|
68
|
+
};
|
|
40
69
|
export declare type InputState = 'default' | 'error' | 'loading' | 'success';
|
|
41
70
|
export declare type InputStateMapping = Record<string, {
|
|
42
71
|
colorScheme?: InputProps['colorScheme'];
|
package/input/inputIcon.d.ts
CHANGED
package/input/inputIcon.js
CHANGED
|
@@ -16,9 +16,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.InputIcon = void 0;
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var context_1 = require("./context");
|
|
20
19
|
var core_1 = require("../core");
|
|
21
20
|
var icon_1 = __importDefault(require("../icon"));
|
|
21
|
+
var context_1 = require("./context");
|
|
22
|
+
/** Displays an icon within the Input. */
|
|
22
23
|
exports.InputIcon = (0, core_1.vui)(function (props, ref) {
|
|
23
24
|
var inputProps = (0, context_1.useInput)();
|
|
24
25
|
var mergedProps = __assign(__assign({}, inputProps), props);
|
package/input/inputInput.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputInputProps } from './input.types';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
export declare const InputInputBase: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
/** Displays an input element within the Input component. */
|
|
4
4
|
export declare const InputInput: import("../core").VuiComponent<"input", InputInputProps>;
|
|
5
5
|
export default InputInput;
|
package/input/inputInput.js
CHANGED
|
@@ -20,16 +20,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.InputInput = exports.InputInputBase = void 0;
|
|
22
22
|
var react_1 = __importDefault(require("react"));
|
|
23
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
24
|
-
var context_1 = require("./context");
|
|
25
23
|
var core_1 = require("../core");
|
|
26
|
-
var
|
|
27
|
-
|
|
24
|
+
var utils_1 = require("../utils");
|
|
25
|
+
var context_1 = require("./context");
|
|
26
|
+
exports.InputInputBase = core_1.styled.input(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-self: stretch;\n\tbackground-color: transparent;\n\tborder: none;\n\tborder-radius: md;\n\tflex: 1;\n\tfont-size: inherit;\n\tmin-width: 0;\n\toutline: none;\n\tpadding: 0 1;\n\n\t&::placeholder {\n\t\tcolor: grey.60;\n\t}\n\n\t&[aria-disabled='true'],\n\t&[aria-disabled='true']::placeholder {\n\t\tcolor: disabled.color;\n\t\tcursor: not-allowed;\n\t}\n"], ["\n\talign-self: stretch;\n\tbackground-color: transparent;\n\tborder: none;\n\tborder-radius: md;\n\tflex: 1;\n\tfont-size: inherit;\n\tmin-width: 0;\n\toutline: none;\n\tpadding: 0 1;\n\n\t&::placeholder {\n\t\tcolor: grey.60;\n\t}\n\n\t&[aria-disabled='true'],\n\t&[aria-disabled='true']::placeholder {\n\t\tcolor: disabled.color;\n\t\tcursor: not-allowed;\n\t}\n"
|
|
27
|
+
/** Displays an input element within the Input component. */
|
|
28
|
+
])));
|
|
29
|
+
/** Displays an input element within the Input component. */
|
|
28
30
|
exports.InputInput = (0, core_1.vui)(function (props, ref) {
|
|
29
31
|
var inputProps = (0, context_1.useInput)();
|
|
30
32
|
var mergedProps = __assign(__assign({}, inputProps), props);
|
|
31
33
|
var styles = (0, core_1.useStyleConfig)('Input', mergedProps);
|
|
32
|
-
|
|
34
|
+
var aliasedProps = (0, utils_1.filterUndefined)({
|
|
35
|
+
'aria-disabled': mergedProps.disabled
|
|
36
|
+
});
|
|
37
|
+
return react_1.default.createElement(exports.InputInputBase, __assign({ className: "vui-inputInput", ref: ref }, styles.input, aliasedProps, props));
|
|
33
38
|
});
|
|
34
39
|
exports.InputInput.displayName = 'InputInput';
|
|
35
40
|
exports.default = exports.InputInput;
|
package/input/theme.d.ts
CHANGED
package/input/theme.js
CHANGED
|
@@ -15,6 +15,7 @@ function variantDefault(props) {
|
|
|
15
15
|
var input = {};
|
|
16
16
|
return { container: container, icon: icon, input: input };
|
|
17
17
|
}
|
|
18
|
+
var baseStyle = {};
|
|
18
19
|
var defaultProps = {
|
|
19
20
|
colorScheme: 'grey',
|
|
20
21
|
size: 'md',
|
|
@@ -67,6 +68,7 @@ var variants = {
|
|
|
67
68
|
default: variantDefault
|
|
68
69
|
};
|
|
69
70
|
exports.default = {
|
|
71
|
+
baseStyle: baseStyle,
|
|
70
72
|
defaultProps: defaultProps,
|
|
71
73
|
parts: parts,
|
|
72
74
|
sizes: sizes,
|
package/link/index.d.ts
CHANGED
package/link/index.js
CHANGED
|
@@ -15,8 +15,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.default = void 0;
|
|
17
17
|
__exportStar(require("./link"), exports);
|
|
18
|
+
var link_1 = require("./link");
|
|
19
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(link_1).default; } });
|
|
18
20
|
__exportStar(require("./link.types"), exports);
|
|
19
21
|
__exportStar(require("./linkIcon"), exports);
|
|
20
22
|
__exportStar(require("./linkText"), exports);
|
|
21
|
-
var link_1 = require("./link");
|
|
22
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(link_1).default; } });
|
package/link/link.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { VuiComponent } from '../core';
|
|
1
2
|
import { LinkProps } from './link.types';
|
|
2
3
|
import LinkIcon from './linkIcon';
|
|
3
4
|
import LinkText from './linkText';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
export declare const LinkBase: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, import("..").SystemProps, never>;
|
|
6
|
+
/**
|
|
7
|
+
* Displays a link item. Handles different underline scenarios and opening external links in new tab.
|
|
8
|
+
* Exposes some props to the children via context.
|
|
9
|
+
*/
|
|
7
10
|
export declare const Link: VuiComponent<"a", LinkProps> & {
|
|
8
11
|
Icon: typeof LinkIcon;
|
|
9
12
|
Text: typeof LinkText;
|