@consumidor-positivo/aurora 1.1.0 → 1.2.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/astro/Button/index.astro +85 -0
- package/astro/Drawer/index.astro +95 -0
- package/astro/Footer/index.astro +329 -0
- package/astro/Header/Actions/index.astro +19 -0
- package/astro/Header/Badges/index.astro +19 -0
- package/astro/Header/Button/index.astro +16 -0
- package/astro/Header/Hamburger/index.astro +28 -0
- package/astro/Header/Logo/index.astro +25 -0
- package/astro/Header/Navbar/index.astro +24 -0
- package/astro/Header/NavbarLink/index.astro +137 -0
- package/astro/Header/Navigation/index.astro +11 -0
- package/astro/Header/Profile/index.astro +81 -0
- package/astro/Header/index.astro +19 -0
- package/astro/Icon/index.astro +49 -0
- package/astro/Logo/ac/Tertiary.astro +28 -0
- package/astro/Logo/cp/Primary.astro +32 -0
- package/astro/Logo/index.astro +29 -0
- package/astro/NavbarVertical/Link/index.astro +101 -0
- package/astro/NavbarVertical/index.astro +27 -0
- package/astro/Tabs/TabPanel/index.astro +23 -0
- package/astro/Tabs/index.astro +142 -0
- package/astro/Text/index.astro +75 -0
- package/astro/icons/default/IconActivity.astro +10 -0
- package/astro/icons/default/IconAi.astro +10 -0
- package/astro/icons/default/IconAiBox.astro +10 -0
- package/astro/icons/default/IconAirplay.astro +10 -0
- package/astro/icons/default/IconAlertCircle.astro +10 -0
- package/astro/icons/default/IconAlertOctagon.astro +10 -0
- package/astro/icons/default/IconAlertTriangle.astro +10 -0
- package/astro/icons/default/IconAlignCenter.astro +10 -0
- package/astro/icons/default/IconAlignJustify.astro +10 -0
- package/astro/icons/default/IconAlignLeft.astro +10 -0
- package/astro/icons/default/IconAlignRight.astro +10 -0
- package/astro/icons/default/IconAnchor.astro +10 -0
- package/astro/icons/default/IconAperture.astro +10 -0
- package/astro/icons/default/IconArchive.astro +10 -0
- package/astro/icons/default/IconArrowDown.astro +10 -0
- package/astro/icons/default/IconArrowDownCircle.astro +10 -0
- package/astro/icons/default/IconArrowDownLeft.astro +10 -0
- package/astro/icons/default/IconArrowDownRight.astro +10 -0
- package/astro/icons/default/IconArrowLeft.astro +10 -0
- package/astro/icons/default/IconArrowLeftCircle.astro +10 -0
- package/astro/icons/default/IconArrowRight.astro +10 -0
- package/astro/icons/default/IconArrowRightCircle.astro +10 -0
- package/astro/icons/default/IconArrowUp.astro +10 -0
- package/astro/icons/default/IconArrowUpCircle.astro +10 -0
- package/astro/icons/default/IconArrowUpLeft.astro +10 -0
- package/astro/icons/default/IconArrowUpRight.astro +10 -0
- package/astro/icons/default/IconAtSign.astro +10 -0
- package/astro/icons/default/IconAward.astro +10 -0
- package/astro/icons/default/IconBank.astro +10 -0
- package/astro/icons/default/IconBarChart.astro +10 -0
- package/astro/icons/default/IconBarChart2.astro +10 -0
- package/astro/icons/default/IconBarCode.astro +10 -0
- package/astro/icons/default/IconBarCode2.astro +10 -0
- package/astro/icons/default/IconBattery.astro +10 -0
- package/astro/icons/default/IconBatteryCharging.astro +10 -0
- package/astro/icons/default/IconBell.astro +10 -0
- package/astro/icons/default/IconBellOff.astro +10 -0
- package/astro/icons/default/IconBluetooth.astro +10 -0
- package/astro/icons/default/IconBold.astro +10 -0
- package/astro/icons/default/IconBook.astro +10 -0
- package/astro/icons/default/IconBookOpen.astro +10 -0
- package/astro/icons/default/IconBookmark.astro +10 -0
- package/astro/icons/default/IconBox.astro +10 -0
- package/astro/icons/default/IconBriefcase.astro +10 -0
- package/astro/icons/default/IconCake.astro +10 -0
- package/astro/icons/default/IconCalendar.astro +10 -0
- package/astro/icons/default/IconCamera.astro +10 -0
- package/astro/icons/default/IconCameraOff.astro +10 -0
- package/astro/icons/default/IconCar.astro +10 -0
- package/astro/icons/default/IconCast.astro +10 -0
- package/astro/icons/default/IconCheck.astro +10 -0
- package/astro/icons/default/IconCheckCircle.astro +10 -0
- package/astro/icons/default/IconCheckSquare.astro +10 -0
- package/astro/icons/default/IconChevronDown.astro +10 -0
- package/astro/icons/default/IconChevronLeft.astro +10 -0
- package/astro/icons/default/IconChevronRight.astro +10 -0
- package/astro/icons/default/IconChevronUp.astro +10 -0
- package/astro/icons/default/IconChevronsDown.astro +10 -0
- package/astro/icons/default/IconChevronsLeft.astro +10 -0
- package/astro/icons/default/IconChevronsRight.astro +10 -0
- package/astro/icons/default/IconChevronsUp.astro +10 -0
- package/astro/icons/default/IconChrome.astro +10 -0
- package/astro/icons/default/IconCircle.astro +10 -0
- package/astro/icons/default/IconClipboard.astro +10 -0
- package/astro/icons/default/IconClock.astro +10 -0
- package/astro/icons/default/IconCloud.astro +10 -0
- package/astro/icons/default/IconCloudDrizzle.astro +10 -0
- package/astro/icons/default/IconCloudLightning.astro +10 -0
- package/astro/icons/default/IconCloudOff.astro +10 -0
- package/astro/icons/default/IconCloudRain.astro +10 -0
- package/astro/icons/default/IconCloudSnow.astro +10 -0
- package/astro/icons/default/IconCode.astro +10 -0
- package/astro/icons/default/IconCodepen.astro +10 -0
- package/astro/icons/default/IconCodesandbox.astro +10 -0
- package/astro/icons/default/IconCoffee.astro +10 -0
- package/astro/icons/default/IconCoin.astro +10 -0
- package/astro/icons/default/IconCollapseClose.astro +10 -0
- package/astro/icons/default/IconCollapseOpen.astro +10 -0
- package/astro/icons/default/IconColumns.astro +10 -0
- package/astro/icons/default/IconCommand.astro +10 -0
- package/astro/icons/default/IconCompass.astro +10 -0
- package/astro/icons/default/IconCookie.astro +10 -0
- package/astro/icons/default/IconCopy.astro +10 -0
- package/astro/icons/default/IconCornerDownLeft.astro +10 -0
- package/astro/icons/default/IconCornerDownRight.astro +10 -0
- package/astro/icons/default/IconCornerLeftDown.astro +10 -0
- package/astro/icons/default/IconCornerLeftUp.astro +10 -0
- package/astro/icons/default/IconCornerRightDown.astro +10 -0
- package/astro/icons/default/IconCornerRightUp.astro +10 -0
- package/astro/icons/default/IconCornerUpLeft.astro +10 -0
- package/astro/icons/default/IconCornerUpRight.astro +10 -0
- package/astro/icons/default/IconCpu.astro +10 -0
- package/astro/icons/default/IconCreditCard.astro +10 -0
- package/astro/icons/default/IconCrop.astro +10 -0
- package/astro/icons/default/IconCrosshair.astro +10 -0
- package/astro/icons/default/IconDatabase.astro +10 -0
- package/astro/icons/default/IconDelete.astro +10 -0
- package/astro/icons/default/IconDisc.astro +10 -0
- package/astro/icons/default/IconDivide.astro +10 -0
- package/astro/icons/default/IconDivideCircle.astro +10 -0
- package/astro/icons/default/IconDivideSquare.astro +10 -0
- package/astro/icons/default/IconDollarSign.astro +10 -0
- package/astro/icons/default/IconDownload.astro +10 -0
- package/astro/icons/default/IconDownloadCloud.astro +10 -0
- package/astro/icons/default/IconDribbble.astro +10 -0
- package/astro/icons/default/IconDroplet.astro +10 -0
- package/astro/icons/default/IconEdit.astro +10 -0
- package/astro/icons/default/IconEdit2.astro +10 -0
- package/astro/icons/default/IconEdit3.astro +10 -0
- package/astro/icons/default/IconExternalLink.astro +10 -0
- package/astro/icons/default/IconEye.astro +10 -0
- package/astro/icons/default/IconEyeOff.astro +10 -0
- package/astro/icons/default/IconFacebook.astro +10 -0
- package/astro/icons/default/IconFastForward.astro +10 -0
- package/astro/icons/default/IconFeather.astro +10 -0
- package/astro/icons/default/IconFigma.astro +10 -0
- package/astro/icons/default/IconFile.astro +10 -0
- package/astro/icons/default/IconFileMinus.astro +10 -0
- package/astro/icons/default/IconFilePdf.astro +10 -0
- package/astro/icons/default/IconFilePlus.astro +10 -0
- package/astro/icons/default/IconFileText.astro +10 -0
- package/astro/icons/default/IconFilm.astro +10 -0
- package/astro/icons/default/IconFilter.astro +10 -0
- package/astro/icons/default/IconFirecracker.astro +10 -0
- package/astro/icons/default/IconFlag.astro +10 -0
- package/astro/icons/default/IconFolder.astro +10 -0
- package/astro/icons/default/IconFolderMinus.astro +10 -0
- package/astro/icons/default/IconFolderPlus.astro +10 -0
- package/astro/icons/default/IconFramer.astro +10 -0
- package/astro/icons/default/IconFrown.astro +10 -0
- package/astro/icons/default/IconGift.astro +10 -0
- package/astro/icons/default/IconGitBranch.astro +10 -0
- package/astro/icons/default/IconGitCommit.astro +10 -0
- package/astro/icons/default/IconGitMerge.astro +10 -0
- package/astro/icons/default/IconGitPullRequest.astro +10 -0
- package/astro/icons/default/IconGithub.astro +10 -0
- package/astro/icons/default/IconGitlab.astro +10 -0
- package/astro/icons/default/IconGiveMoney.astro +10 -0
- package/astro/icons/default/IconGlasses.astro +10 -0
- package/astro/icons/default/IconGlobe.astro +10 -0
- package/astro/icons/default/IconGraduationHat.astro +10 -0
- package/astro/icons/default/IconGrid.astro +10 -0
- package/astro/icons/default/IconHardDrive.astro +10 -0
- package/astro/icons/default/IconHash.astro +10 -0
- package/astro/icons/default/IconHeadphones.astro +10 -0
- package/astro/icons/default/IconHeart.astro +10 -0
- package/astro/icons/default/IconHelpCircle.astro +10 -0
- package/astro/icons/default/IconHexagon.astro +10 -0
- package/astro/icons/default/IconHome.astro +10 -0
- package/astro/icons/default/IconHomeChimney.astro +10 -0
- package/astro/icons/default/IconId.astro +10 -0
- package/astro/icons/default/IconImage.astro +10 -0
- package/astro/icons/default/IconInbox.astro +10 -0
- package/astro/icons/default/IconInfo.astro +10 -0
- package/astro/icons/default/IconInstagram.astro +10 -0
- package/astro/icons/default/IconItalic.astro +10 -0
- package/astro/icons/default/IconKey.astro +10 -0
- package/astro/icons/default/IconLaptop.astro +10 -0
- package/astro/icons/default/IconLayers.astro +10 -0
- package/astro/icons/default/IconLayout.astro +10 -0
- package/astro/icons/default/IconLifeBuoy.astro +10 -0
- package/astro/icons/default/IconLightBulb.astro +10 -0
- package/astro/icons/default/IconLink.astro +10 -0
- package/astro/icons/default/IconLink2.astro +10 -0
- package/astro/icons/default/IconLinkedin.astro +10 -0
- package/astro/icons/default/IconLips.astro +10 -0
- package/astro/icons/default/IconList.astro +10 -0
- package/astro/icons/default/IconLoader.astro +10 -0
- package/astro/icons/default/IconLock.astro +10 -0
- package/astro/icons/default/IconLogIn.astro +10 -0
- package/astro/icons/default/IconLogOut.astro +10 -0
- package/astro/icons/default/IconMail.astro +10 -0
- package/astro/icons/default/IconMap.astro +10 -0
- package/astro/icons/default/IconMapPin.astro +10 -0
- package/astro/icons/default/IconMaximize.astro +10 -0
- package/astro/icons/default/IconMaximize2.astro +10 -0
- package/astro/icons/default/IconMeh.astro +10 -0
- package/astro/icons/default/IconMenu.astro +10 -0
- package/astro/icons/default/IconMessageCircle.astro +10 -0
- package/astro/icons/default/IconMessageSquare.astro +10 -0
- package/astro/icons/default/IconMic.astro +10 -0
- package/astro/icons/default/IconMicOff.astro +10 -0
- package/astro/icons/default/IconMinimize.astro +10 -0
- package/astro/icons/default/IconMinimize2.astro +10 -0
- package/astro/icons/default/IconMinus.astro +10 -0
- package/astro/icons/default/IconMinusCircle.astro +10 -0
- package/astro/icons/default/IconMinusSquare.astro +10 -0
- package/astro/icons/default/IconMoney.astro +10 -0
- package/astro/icons/default/IconMonitor.astro +10 -0
- package/astro/icons/default/IconMoon.astro +10 -0
- package/astro/icons/default/IconMoreHorizontal.astro +10 -0
- package/astro/icons/default/IconMoreVertical.astro +10 -0
- package/astro/icons/default/IconMousePointer.astro +10 -0
- package/astro/icons/default/IconMove.astro +10 -0
- package/astro/icons/default/IconMusic.astro +10 -0
- package/astro/icons/default/IconNavigation.astro +10 -0
- package/astro/icons/default/IconNavigation2.astro +10 -0
- package/astro/icons/default/IconNegotiation.astro +10 -0
- package/astro/icons/default/IconObjective.astro +10 -0
- package/astro/icons/default/IconOctagon.astro +10 -0
- package/astro/icons/default/IconPackage.astro +10 -0
- package/astro/icons/default/IconPaperclip.astro +10 -0
- package/astro/icons/default/IconPause.astro +10 -0
- package/astro/icons/default/IconPauseCircle.astro +10 -0
- package/astro/icons/default/IconPenTool.astro +10 -0
- package/astro/icons/default/IconPencilPack.astro +10 -0
- package/astro/icons/default/IconPercent.astro +10 -0
- package/astro/icons/default/IconPercentBalloon.astro +10 -0
- package/astro/icons/default/IconPhone.astro +10 -0
- package/astro/icons/default/IconPhoneCall.astro +10 -0
- package/astro/icons/default/IconPhoneForwarded.astro +10 -0
- package/astro/icons/default/IconPhoneIncoming.astro +10 -0
- package/astro/icons/default/IconPhoneMissed.astro +10 -0
- package/astro/icons/default/IconPhoneOff.astro +10 -0
- package/astro/icons/default/IconPhoneOutgoing.astro +10 -0
- package/astro/icons/default/IconPieChart.astro +10 -0
- package/astro/icons/default/IconPix.astro +10 -0
- package/astro/icons/default/IconPlane.astro +10 -0
- package/astro/icons/default/IconPlay.astro +10 -0
- package/astro/icons/default/IconPlayCircle.astro +10 -0
- package/astro/icons/default/IconPlus.astro +10 -0
- package/astro/icons/default/IconPlusCircle.astro +10 -0
- package/astro/icons/default/IconPlusSquare.astro +10 -0
- package/astro/icons/default/IconPocket.astro +10 -0
- package/astro/icons/default/IconPower.astro +10 -0
- package/astro/icons/default/IconPrinter.astro +10 -0
- package/astro/icons/default/IconQrCode.astro +10 -0
- package/astro/icons/default/IconRadio.astro +10 -0
- package/astro/icons/default/IconRefreshCcw.astro +10 -0
- package/astro/icons/default/IconRefreshCw.astro +10 -0
- package/astro/icons/default/IconRepeat.astro +10 -0
- package/astro/icons/default/IconRewind.astro +10 -0
- package/astro/icons/default/IconRotateCcw.astro +10 -0
- package/astro/icons/default/IconRotateCw.astro +10 -0
- package/astro/icons/default/IconRss.astro +10 -0
- package/astro/icons/default/IconSave.astro +10 -0
- package/astro/icons/default/IconSaveMoney.astro +10 -0
- package/astro/icons/default/IconSchoolBag.astro +10 -0
- package/astro/icons/default/IconScissors.astro +10 -0
- package/astro/icons/default/IconSearch.astro +10 -0
- package/astro/icons/default/IconSend.astro +10 -0
- package/astro/icons/default/IconServer.astro +10 -0
- package/astro/icons/default/IconSettings.astro +10 -0
- package/astro/icons/default/IconShare.astro +10 -0
- package/astro/icons/default/IconShare2.astro +10 -0
- package/astro/icons/default/IconShield.astro +10 -0
- package/astro/icons/default/IconShieldLocked.astro +10 -0
- package/astro/icons/default/IconShieldOff.astro +10 -0
- package/astro/icons/default/IconShoppingBag.astro +10 -0
- package/astro/icons/default/IconShoppingCart.astro +10 -0
- package/astro/icons/default/IconShuffle.astro +10 -0
- package/astro/icons/default/IconSidebar.astro +10 -0
- package/astro/icons/default/IconSkipBack.astro +10 -0
- package/astro/icons/default/IconSkipForward.astro +10 -0
- package/astro/icons/default/IconSlack.astro +10 -0
- package/astro/icons/default/IconSlash.astro +10 -0
- package/astro/icons/default/IconSliders.astro +10 -0
- package/astro/icons/default/IconSmartphone.astro +10 -0
- package/astro/icons/default/IconSmartphoneSms.astro +10 -0
- package/astro/icons/default/IconSmile.astro +10 -0
- package/astro/icons/default/IconSpark.astro +10 -0
- package/astro/icons/default/IconSpeaker.astro +10 -0
- package/astro/icons/default/IconSquare.astro +10 -0
- package/astro/icons/default/IconStar.astro +10 -0
- package/astro/icons/default/IconStopCircle.astro +10 -0
- package/astro/icons/default/IconSun.astro +10 -0
- package/astro/icons/default/IconSunrise.astro +10 -0
- package/astro/icons/default/IconSunset.astro +10 -0
- package/astro/icons/default/IconTable.astro +10 -0
- package/astro/icons/default/IconTablet.astro +10 -0
- package/astro/icons/default/IconTag.astro +10 -0
- package/astro/icons/default/IconTarget.astro +10 -0
- package/astro/icons/default/IconTerminal.astro +10 -0
- package/astro/icons/default/IconThermometer.astro +10 -0
- package/astro/icons/default/IconThumbsDown.astro +10 -0
- package/astro/icons/default/IconThumbsUp.astro +10 -0
- package/astro/icons/default/IconTiktok.astro +10 -0
- package/astro/icons/default/IconToggleLeft.astro +10 -0
- package/astro/icons/default/IconToggleRight.astro +10 -0
- package/astro/icons/default/IconTool.astro +10 -0
- package/astro/icons/default/IconTrash.astro +10 -0
- package/astro/icons/default/IconTrash2.astro +10 -0
- package/astro/icons/default/IconTrello.astro +10 -0
- package/astro/icons/default/IconTrendingDown.astro +10 -0
- package/astro/icons/default/IconTrendingUp.astro +10 -0
- package/astro/icons/default/IconTriangle.astro +10 -0
- package/astro/icons/default/IconTrophy.astro +10 -0
- package/astro/icons/default/IconTruck.astro +10 -0
- package/astro/icons/default/IconTv.astro +10 -0
- package/astro/icons/default/IconTwitch.astro +10 -0
- package/astro/icons/default/IconTwitter.astro +10 -0
- package/astro/icons/default/IconType.astro +10 -0
- package/astro/icons/default/IconUmbrella.astro +10 -0
- package/astro/icons/default/IconUnderline.astro +10 -0
- package/astro/icons/default/IconUnlock.astro +10 -0
- package/astro/icons/default/IconUpload.astro +10 -0
- package/astro/icons/default/IconUploadCloud.astro +10 -0
- package/astro/icons/default/IconUser.astro +10 -0
- package/astro/icons/default/IconUserCheck.astro +10 -0
- package/astro/icons/default/IconUserMinus.astro +10 -0
- package/astro/icons/default/IconUserPlus.astro +10 -0
- package/astro/icons/default/IconUserX.astro +10 -0
- package/astro/icons/default/IconUsers.astro +10 -0
- package/astro/icons/default/IconVelocimeter.astro +10 -0
- package/astro/icons/default/IconVideo.astro +10 -0
- package/astro/icons/default/IconVideoOff.astro +10 -0
- package/astro/icons/default/IconVoicemail.astro +10 -0
- package/astro/icons/default/IconVolume1.astro +10 -0
- package/astro/icons/default/IconVolume2.astro +10 -0
- package/astro/icons/default/IconVolumeX.astro +10 -0
- package/astro/icons/default/IconWarning.astro +10 -0
- package/astro/icons/default/IconWatch.astro +10 -0
- package/astro/icons/default/IconWebsite.astro +10 -0
- package/astro/icons/default/IconWhatsapp.astro +10 -0
- package/astro/icons/default/IconWifi.astro +10 -0
- package/astro/icons/default/IconWifiOff.astro +10 -0
- package/astro/icons/default/IconWind.astro +10 -0
- package/astro/icons/default/IconX.astro +10 -0
- package/astro/icons/default/IconXCircle.astro +10 -0
- package/astro/icons/default/IconXOctagon.astro +10 -0
- package/astro/icons/default/IconXSquare.astro +10 -0
- package/astro/icons/default/IconYoutube.astro +10 -0
- package/astro/icons/default/IconZap.astro +10 -0
- package/astro/icons/default/IconZapOff.astro +10 -0
- package/astro/icons/default/IconZoomIn.astro +10 -0
- package/astro/icons/default/IconZoomOut.astro +10 -0
- package/astro/icons/social/IconSocialGoogle.astro +10 -0
- package/astro/runtime/package.json +6 -0
- package/dist/astro/runtime/elementController.d.ts +6 -0
- package/dist/astro/runtime/factories.d.ts +5 -0
- package/dist/astro/runtime/index.d.ts +2 -0
- package/dist/astro/runtime/index.es.js +68 -0
- package/dist/astro/runtime/index.es.js.map +1 -0
- package/dist/astro/runtime/types.d.ts +28 -0
- package/dist/components/AdBox/index.es.js +1 -1
- package/dist/components/Alert/index.es.js +3 -3
- package/dist/components/BadgeInfo/index.es.js +2 -2
- package/dist/components/BadgeState/index.es.js +2 -2
- package/dist/components/Button/index.es.js +2 -2
- package/dist/components/Card/Container/index.es.js +26 -0
- package/dist/components/Card/Container/index.es.js.map +1 -0
- package/dist/components/{Emphasis → Card/Emphasis}/index.es.js +1 -1
- package/dist/components/Card/Emphasis/index.es.js.map +1 -0
- package/dist/components/Card/Image/index.es.js +18 -0
- package/dist/components/Card/Image/index.es.js.map +1 -0
- package/dist/components/Card/Root/index.es.js +44 -0
- package/dist/components/Card/Root/index.es.js.map +1 -0
- package/dist/components/{Tag → Card/Tag}/index.es.js +1 -1
- package/dist/components/Card/Tag/index.es.js.map +1 -0
- package/dist/components/Card/index.es.js +16 -21
- package/dist/components/Card/index.es.js.map +1 -1
- package/dist/components/Card/styles.css +1 -1
- package/dist/components/Card/styles2.css +1 -0
- package/dist/components/Chip/index.es.js +1 -1
- package/dist/components/ChipBanner/index.es.js +1 -1
- package/dist/components/Container/index.es.js +1 -1
- package/dist/components/Divider/index.es.js +1 -1
- package/dist/components/Drawer/index.es.js +1 -1
- package/dist/components/Field/styles.css +1 -1
- package/dist/components/Field/styles2.css +1 -0
- package/dist/components/Field/styles3.css +1 -0
- package/dist/components/Footer/index.es.js +2 -2
- package/dist/components/Footer/styles.css +1 -1
- package/dist/components/Group/styles2.css +1 -0
- package/dist/components/Header/Actions/index.es.js +22 -0
- package/dist/components/Header/Actions/index.es.js.map +1 -0
- package/dist/components/Header/Badges/index.es.js +16 -0
- package/dist/components/Header/Badges/index.es.js.map +1 -0
- package/dist/components/Header/Button/index.es.js +21 -0
- package/dist/components/Header/Button/index.es.js.map +1 -0
- package/dist/components/Header/Hamburger/index.es.js +29 -0
- package/dist/components/Header/Hamburger/index.es.js.map +1 -0
- package/dist/components/Header/Logo/index.es.js +30 -0
- package/dist/components/Header/Logo/index.es.js.map +1 -0
- package/dist/components/Header/Navbar/index.es.js +14 -0
- package/dist/components/Header/Navbar/index.es.js.map +1 -0
- package/dist/components/Header/NavbarLink/index.es.js +104 -0
- package/dist/components/Header/NavbarLink/index.es.js.map +1 -0
- package/dist/components/Header/Navigation/index.es.js +11 -0
- package/dist/components/Header/Navigation/index.es.js.map +1 -0
- package/dist/components/Header/Profile/index.es.js +80 -0
- package/dist/components/Header/Profile/index.es.js.map +1 -0
- package/dist/components/Header/Wrap/index.es.js +24 -0
- package/dist/components/Header/Wrap/index.es.js.map +1 -0
- package/dist/components/Header/index.d.ts +9 -9
- package/dist/components/Header/index.es.js +11 -290
- package/dist/components/Header/index.es.js.map +1 -1
- package/dist/components/Icon/index.es.js +1 -1
- package/dist/components/Image/index.es.js +1 -1
- package/dist/components/IsMobile/index.es.js +1 -1
- package/dist/components/LinkButton/index.es.js +1 -1
- package/dist/components/Modal/index.es.js +1 -1
- package/dist/components/NavbarVertical/index.es.js +2 -2
- package/dist/components/NavbarVertical/styles.css +1 -1
- package/dist/components/NotificationsBar/index.es.js +1 -1
- package/dist/components/PartnerBanner/index.es.js +1 -1
- package/dist/components/ProgressBar/index.es.js +2 -2
- package/dist/components/{Carousel → Prototype/Carousel}/index.es.js +8 -8
- package/dist/components/Prototype/Carousel/index.es.js.map +1 -0
- package/dist/components/Skeleton/index.es.js +1 -1
- package/dist/components/SpecialButton/index.es.js +2 -2
- package/dist/components/Spinner/index.es.js +2 -2
- package/dist/components/SubHeader/index.es.js +1 -1
- package/dist/components/Switch/Card/index.es.js +25 -0
- package/dist/components/Switch/Card/index.es.js.map +1 -0
- package/dist/components/{Pure → Switch/Pure}/index.es.js +1 -1
- package/dist/components/Switch/Pure/index.es.js.map +1 -0
- package/dist/components/Tabs/index.es.js +1 -1
- package/dist/components/Tabs/styles.css +1 -1
- package/dist/components/Text/index.es.js +3 -3
- package/dist/components/Tooltip/index.es.js +1 -1
- package/dist/components/Transition/index.es.js +1 -1
- package/dist/components/form/Checkbox/Field/index.es.js +60 -0
- package/dist/components/form/Checkbox/Field/index.es.js.map +1 -0
- package/dist/components/{Checkbox → form/Checkbox/Group}/index.es.js +8 -66
- package/dist/components/form/Checkbox/Group/index.es.js.map +1 -0
- package/dist/components/form/Checkbox/index.es.js +14 -0
- package/dist/components/form/Checkbox/index.es.js.map +1 -0
- package/dist/components/form/Datepicker/Calendar/index.es.js +10 -0
- package/dist/components/form/Datepicker/CalendarHeader/index.es.js +12 -0
- package/dist/components/{PortalHolder → form/Datepicker/PortalHolder}/index.es.js +3 -3
- package/dist/components/form/Datepicker/PortalHolder/index.es.js.map +1 -0
- package/dist/components/form/Datepicker/Segment/index.es.js +12 -0
- package/dist/components/{Datepicker → form/Datepicker}/index.es.js +8 -8
- package/dist/components/form/Datepicker/index.es.js.map +1 -0
- package/dist/components/{EmailField → form/EmailField}/index.es.js +3 -3
- package/dist/components/form/EmailField/index.es.js.map +1 -0
- package/dist/components/form/Field/ErrorMessage/index.es.js.map +1 -0
- package/dist/components/{Input → form/Field/Input}/index.es.js +1 -1
- package/dist/components/form/Field/Input/index.es.js.map +1 -0
- package/dist/components/form/Field/InputHolder/index.es.js.map +1 -0
- package/dist/components/{Label → form/Field/Label}/index.es.js +6 -6
- package/dist/components/form/Field/Label/index.es.js.map +1 -0
- package/dist/components/form/Field/Message/index.es.js.map +1 -0
- package/dist/components/{Root → form/Field/Root}/index.es.js +1 -1
- package/dist/components/form/Field/Root/index.es.js.map +1 -0
- package/dist/components/{TextArea → form/Field/TextArea}/index.es.js +2 -2
- package/dist/components/form/Field/TextArea/index.es.js.map +1 -0
- package/dist/components/form/Field/index.es.js +20 -0
- package/dist/components/form/Field/index.es.js.map +1 -0
- package/dist/components/{InputField → form/InputField}/index.es.js +1 -1
- package/dist/components/form/InputField/index.es.js.map +1 -0
- package/dist/components/{PasswordField → form/PasswordField}/index.es.js +2 -2
- package/dist/components/form/PasswordField/index.es.js.map +1 -0
- package/dist/components/{Field → form/Radio/Field}/index.es.js +2 -2
- package/dist/components/form/Radio/Field/index.es.js.map +1 -0
- package/dist/components/{Group → form/Radio/Group}/index.es.js +5 -5
- package/dist/components/form/Radio/Group/index.es.js.map +1 -0
- package/dist/components/{Radio → form/Radio}/index.es.js +2 -2
- package/dist/components/form/Radio/index.es.js.map +1 -0
- package/dist/components/{SelectField → form/SelectField}/index.es.js +13 -13
- package/dist/components/form/SelectField/index.es.js.map +1 -0
- package/dist/components/{TextareaField → form/TextareaField}/index.es.js +1 -1
- package/dist/components/form/TextareaField/index.es.js.map +1 -0
- package/dist/components/{TokenField → form/TokenField}/index.es.js +2 -2
- package/dist/components/form/TokenField/index.es.js.map +1 -0
- package/dist/components/globalStyles/index.es.js +2 -0
- package/dist/components/globalStyles/index.es.js.map +1 -0
- package/dist/components/globalStyles/styles.css +1 -0
- package/dist/components/icons/default/index.es.js +655 -0
- package/dist/components/icons/social/index.es.js +5 -0
- package/dist/components/index/styles.css +1 -1
- package/dist/components/index/styles2.css +1 -1
- package/dist/components/index/styles3.css +1 -1
- package/dist/components/misc/Conditional/index.es.js.map +1 -0
- package/dist/components/misc/DynamicTagComponent/index.es.js.map +1 -0
- package/dist/components/{Portal → misc/Portal}/index.es.js +2 -2
- package/dist/components/misc/Portal/index.es.js.map +1 -0
- package/dist/components/misc/index.es.js +1 -1
- package/dist/{index-C6Q03EyZ.js → index-BW2ZU5Hx.js} +2 -30
- package/dist/{index-C6Q03EyZ.js.map → index-BW2ZU5Hx.js.map} +1 -1
- package/dist/{index-DHwXRotU.js → index-BcC9liUl.js} +6 -6
- package/dist/{index-DHwXRotU.js.map → index-BcC9liUl.js.map} +1 -1
- package/dist/{index-BgBOcVUP.js → index-CFYmtkje.js} +4 -4
- package/dist/{index-BgBOcVUP.js.map → index-CFYmtkje.js.map} +1 -1
- package/dist/{index-DnQGzfVW.js → index-CeClo_WS.js} +4 -4
- package/dist/{index-DnQGzfVW.js.map → index-CeClo_WS.js.map} +1 -1
- package/dist/main.es.js +80 -164
- package/dist/main.es.js.map +1 -1
- package/dist/{tokens-C4yCunfz.js → tokens-C4ypB4bY.js} +64 -64
- package/dist/{tokens-C4yCunfz.js.map → tokens-C4ypB4bY.js.map} +1 -1
- package/package.json +21 -10
- package/dist/components/AdBox/AdBox.test.d.ts +0 -1
- package/dist/components/Alert/Alert.test.d.ts +0 -1
- package/dist/components/BadgeInfo/BadgeInfo.test.d.ts +0 -1
- package/dist/components/BadgeState/BadgeState.test.d.ts +0 -1
- package/dist/components/Button/Button.test.d.ts +0 -1
- package/dist/components/Calendar/index.es.js +0 -10
- package/dist/components/CalendarHeader/index.es.js +0 -12
- package/dist/components/Card/Card.test.d.ts +0 -1
- package/dist/components/Carousel/index.es.js.map +0 -1
- package/dist/components/Checkbox/index.es.js.map +0 -1
- package/dist/components/Checkbox/styles.css +0 -1
- package/dist/components/ChipBanner/ChipBanner.test.d.ts +0 -1
- package/dist/components/Conditional/index.es.js.map +0 -1
- package/dist/components/Container/Container.test.d.ts +0 -1
- package/dist/components/Datepicker/index.es.js.map +0 -1
- package/dist/components/Drawer/Drawer.test.d.ts +0 -1
- package/dist/components/DynamicTagComponent/index.es.js.map +0 -1
- package/dist/components/EmailField/index.es.js.map +0 -1
- package/dist/components/Emphasis/index.es.js.map +0 -1
- package/dist/components/ErrorMessage/index.es.js.map +0 -1
- package/dist/components/Field/index.es.js.map +0 -1
- package/dist/components/Footer/Footer.test.d.ts +0 -1
- package/dist/components/Group/index.es.js.map +0 -1
- package/dist/components/Header/Header.test.d.ts +0 -1
- package/dist/components/Image/Image.test.d.ts +0 -1
- package/dist/components/Input/index.es.js.map +0 -1
- package/dist/components/InputField/index.es.js.map +0 -1
- package/dist/components/InputHolder/index.es.js.map +0 -1
- package/dist/components/IsMobile/IsMobile.test.d.ts +0 -1
- package/dist/components/Label/index.es.js.map +0 -1
- package/dist/components/LazyImage/LazyImage.test.d.ts +0 -1
- package/dist/components/LinkButton/LinkButton.test.d.ts +0 -1
- package/dist/components/Logo/Logo.test.d.ts +0 -1
- package/dist/components/Message/index.es.js.map +0 -1
- package/dist/components/Modal/Modal.test.d.ts +0 -1
- package/dist/components/NavbarVertical/NavbarVertical.test.d.ts +0 -1
- package/dist/components/NotificationsBar/NotificationsBar.test.d.ts +0 -1
- package/dist/components/PartnerBanner/PartnerBanner.test.d.ts +0 -1
- package/dist/components/PasswordField/index.es.js.map +0 -1
- package/dist/components/Portal/index.es.js.map +0 -1
- package/dist/components/PortalHolder/index.es.js.map +0 -1
- package/dist/components/ProfileNav/ProfileNav.test.d.ts +0 -1
- package/dist/components/ProgressBar/ProgressBar.test.d.ts +0 -1
- package/dist/components/Prototype/Carousel/Carousel.test.d.ts +0 -1
- package/dist/components/Pure/index.es.js.map +0 -1
- package/dist/components/Radio/index.es.js.map +0 -1
- package/dist/components/Root/index.es.js.map +0 -1
- package/dist/components/Segment/index.es.js +0 -12
- package/dist/components/SelectField/index.es.js.map +0 -1
- package/dist/components/Skeleton/Skeleton.test.d.ts +0 -1
- package/dist/components/SpecialButton/SpecialButton.test.d.ts +0 -1
- package/dist/components/Spinner/Spinner.test.d.ts +0 -1
- package/dist/components/SubHeader/SubHeader.test.d.ts +0 -1
- package/dist/components/Switch/Card/Card.test.d.ts +0 -1
- package/dist/components/Switch/Pure/Switch.test.d.ts +0 -1
- package/dist/components/Tabs/Tabs.test.d.ts +0 -1
- package/dist/components/Tag/index.es.js.map +0 -1
- package/dist/components/Text/Text.test.d.ts +0 -1
- package/dist/components/TextArea/index.es.js.map +0 -1
- package/dist/components/TextareaField/index.es.js.map +0 -1
- package/dist/components/TokenField/index.es.js.map +0 -1
- package/dist/components/Transition/Transition.test.d.ts +0 -1
- package/dist/components/dataTestId.test.d.ts +0 -1
- package/dist/components/default/index.es.js +0 -655
- package/dist/components/form/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/components/form/Datepicker/Datepicker.test.d.ts +0 -1
- package/dist/components/form/EmailField/EmailField.test.d.ts +0 -1
- package/dist/components/form/Field/Field.test.d.ts +0 -1
- package/dist/components/form/InputField/InputField.test.d.ts +0 -1
- package/dist/components/form/PasswordField/PasswordField.test.d.ts +0 -1
- package/dist/components/form/Radio/Radio.test.d.ts +0 -1
- package/dist/components/form/SelectField/SelectField.test.d.ts +0 -1
- package/dist/components/form/TextareaField/TextareaField.test.d.ts +0 -1
- package/dist/components/form/TokenField/TokenField.test.d.ts +0 -1
- package/dist/components/icons/Icon.test/index.es.js +0 -36183
- package/dist/components/icons/Icon.test/index.es.js.map +0 -1
- package/dist/components/icons/Icon.test.d.ts +0 -1
- package/dist/components/index/styles4.css +0 -1
- package/dist/components/main/styles.css +0 -1
- package/dist/components/misc/misc.test.d.ts +0 -1
- package/dist/components/social/index.es.js +0 -5
- package/dist/index-ZE6zszxw.js +0 -20
- package/dist/index-ZE6zszxw.js.map +0 -1
- package/dist/magic-string.es-D_W5SHWE.js +0 -1074
- package/dist/magic-string.es-D_W5SHWE.js.map +0 -1
- /package/dist/components/Header/{parts/HeaderActions.d.ts → Actions/index.d.ts} +0 -0
- /package/dist/components/Header/{parts/HeaderBadges.d.ts → Badges/index.d.ts} +0 -0
- /package/dist/components/Header/{parts/HeaderButton.d.ts → Button/index.d.ts} +0 -0
- /package/dist/components/Header/{parts/HeaderHamburger.d.ts → Hamburger/index.d.ts} +0 -0
- /package/dist/components/Header/{parts/HeaderLogo.d.ts → Logo/index.d.ts} +0 -0
- /package/dist/components/Header/{parts/HeaderNavbar.d.ts → Navbar/index.d.ts} +0 -0
- /package/dist/components/Header/{parts/HeaderNavbarLink.d.ts → NavbarLink/index.d.ts} +0 -0
- /package/dist/components/Header/{parts/HeaderNavigation.d.ts → Navigation/index.d.ts} +0 -0
- /package/dist/components/Header/{parts/HeaderProfile.d.ts → Profile/index.d.ts} +0 -0
- /package/dist/components/Header/{parts/HeaderWrap.d.ts → Wrap/index.d.ts} +0 -0
- /package/dist/components/{Calendar → form/Datepicker/Calendar}/index.es.js.map +0 -0
- /package/dist/components/{CalendarHeader → form/Datepicker/CalendarHeader}/index.es.js.map +0 -0
- /package/dist/components/{Segment → form/Datepicker/Segment}/index.es.js.map +0 -0
- /package/dist/components/{ErrorMessage → form/Field/ErrorMessage}/index.es.js +0 -0
- /package/dist/components/{InputHolder → form/Field/InputHolder}/index.es.js +0 -0
- /package/dist/components/{Message → form/Field/Message}/index.es.js +0 -0
- /package/dist/components/{default → icons/default}/index.es.js.map +0 -0
- /package/dist/components/{social → icons/social}/index.es.js.map +0 -0
- /package/dist/components/{Conditional → misc/Conditional}/index.es.js +0 -0
- /package/dist/components/{DynamicTagComponent → misc/DynamicTagComponent}/index.es.js +0 -0
- /package/dist/{components/Tooltip/Tooltip.test.d.ts → core/styles/globalStyles.d.ts} +0 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useId } from "react";
|
|
3
|
+
import { c as classNames } from "../../../index-BW2ZU5Hx.js";
|
|
4
|
+
import { Text } from "../../Text/index.es.js";
|
|
5
|
+
import "../../Icon/index.es.js";
|
|
6
|
+
import { IconChevronDown } from "../../icons/IconChevronDown/index.es.js";
|
|
7
|
+
import { Conditional } from "../../misc/Conditional/index.es.js";
|
|
8
|
+
const HeaderNavbarLink = (navItem) => {
|
|
9
|
+
const { name, dropdown, active, href, "data-testid": dataTestId } = navItem;
|
|
10
|
+
const isDropdown = !!dropdown && dropdown.length;
|
|
11
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
12
|
+
const dropdownId = useId();
|
|
13
|
+
function handleItemClick(item, ev) {
|
|
14
|
+
if (item.onClick) {
|
|
15
|
+
ev.preventDefault();
|
|
16
|
+
item.onClick();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
const handleDropdownOpen = () => isDropdown && setIsOpen(true);
|
|
20
|
+
const handleDropdownClose = () => isDropdown && setIsOpen(false);
|
|
21
|
+
const handleDropdownBlur = (ev) => {
|
|
22
|
+
if (isDropdown && !ev.currentTarget.contains(ev.relatedTarget)) {
|
|
23
|
+
setIsOpen(false);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
return /* @__PURE__ */ jsxs(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
className: classNames("au-header__navbar-item", {
|
|
30
|
+
"au-header__navbar-item--is-dropdown": dropdown,
|
|
31
|
+
"au-header__navbar-item--is-active": active,
|
|
32
|
+
"au-header__navbar-item--is-open": isOpen
|
|
33
|
+
}),
|
|
34
|
+
onMouseEnter: handleDropdownOpen,
|
|
35
|
+
onMouseLeave: handleDropdownClose,
|
|
36
|
+
onFocus: handleDropdownOpen,
|
|
37
|
+
onBlur: handleDropdownBlur,
|
|
38
|
+
"data-testid": dataTestId,
|
|
39
|
+
children: [
|
|
40
|
+
isDropdown ? /* @__PURE__ */ jsxs(
|
|
41
|
+
"button",
|
|
42
|
+
{
|
|
43
|
+
type: "button",
|
|
44
|
+
"aria-expanded": isOpen,
|
|
45
|
+
"aria-haspopup": "true",
|
|
46
|
+
"aria-controls": dropdownId,
|
|
47
|
+
title: name,
|
|
48
|
+
onClick: (ev) => handleItemClick(navItem, ev),
|
|
49
|
+
className: classNames("au-header__navbar-link", "au-header__navbar-link--is-dropdown", {
|
|
50
|
+
"au-header__navbar-link--is-active": active
|
|
51
|
+
}),
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ jsx(Text, { as: "span", variant: "heading-micro", weight: "light", children: name }),
|
|
54
|
+
/* @__PURE__ */ jsx(IconChevronDown, { "aria-hidden": "true" })
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
) : /* @__PURE__ */ jsx(
|
|
58
|
+
Text,
|
|
59
|
+
{
|
|
60
|
+
as: "a",
|
|
61
|
+
variant: "heading-micro",
|
|
62
|
+
weight: "light",
|
|
63
|
+
href,
|
|
64
|
+
onClick: (ev) => handleItemClick(navItem, ev),
|
|
65
|
+
title: name,
|
|
66
|
+
className: classNames("au-header__navbar-link", {
|
|
67
|
+
"au-header__navbar-link--is-active": active
|
|
68
|
+
}),
|
|
69
|
+
children: name
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ jsx(
|
|
73
|
+
Conditional,
|
|
74
|
+
{
|
|
75
|
+
condition: !!(dropdown == null ? void 0 : dropdown.length),
|
|
76
|
+
renderIf: /* @__PURE__ */ jsx("div", { id: dropdownId, className: "au-header__dropdown", "aria-hidden": !isOpen, children: dropdown == null ? void 0 : dropdown.map((item) => {
|
|
77
|
+
return /* @__PURE__ */ jsx(
|
|
78
|
+
Text,
|
|
79
|
+
{
|
|
80
|
+
as: "a",
|
|
81
|
+
variant: "heading-micro",
|
|
82
|
+
href: item.href,
|
|
83
|
+
onClick: (ev) => handleItemClick(item, ev),
|
|
84
|
+
weight: "light",
|
|
85
|
+
tabIndex: isOpen ? void 0 : -1,
|
|
86
|
+
className: classNames("au-header__dropdown-link", {
|
|
87
|
+
"au-header__dropdown-link--is-active": item.active
|
|
88
|
+
}),
|
|
89
|
+
title: item.name,
|
|
90
|
+
children: item.name
|
|
91
|
+
},
|
|
92
|
+
item.name
|
|
93
|
+
);
|
|
94
|
+
}) })
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
};
|
|
101
|
+
export {
|
|
102
|
+
HeaderNavbarLink
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../lib/components/Header/NavbarLink/index.tsx"],"sourcesContent":["import { useState, useId } from 'react'\nimport classNames from 'classnames'\nimport { Text } from '@components/Text'\nimport { IconChevronDown } from '@components/icons/default'\nimport { Conditional } from '@components/misc'\nimport { NavbarDataProps } from '../types'\n\nexport const HeaderNavbarLink = (navItem: NavbarDataProps) => {\n const { name, dropdown, active, href, 'data-testid': dataTestId } = navItem\n const isDropdown = !!dropdown && dropdown.length\n const [isOpen, setIsOpen] = useState(false)\n const dropdownId = useId()\n\n function handleItemClick(item: NavbarDataProps, ev: React.MouseEvent) {\n if (item.onClick) {\n ev.preventDefault()\n item.onClick()\n }\n }\n\n const handleDropdownOpen = () => isDropdown && setIsOpen(true)\n const handleDropdownClose = () => isDropdown && setIsOpen(false)\n const handleDropdownBlur = (ev: React.FocusEvent<HTMLDivElement>) => {\n if (isDropdown && !ev.currentTarget.contains(ev.relatedTarget as Node)) {\n setIsOpen(false)\n }\n }\n\n return (\n <div\n className={classNames('au-header__navbar-item', {\n 'au-header__navbar-item--is-dropdown': dropdown,\n 'au-header__navbar-item--is-active': active,\n 'au-header__navbar-item--is-open': isOpen,\n })}\n onMouseEnter={handleDropdownOpen}\n onMouseLeave={handleDropdownClose}\n onFocus={handleDropdownOpen}\n onBlur={handleDropdownBlur}\n data-testid={dataTestId}>\n {isDropdown ? (\n <button\n type=\"button\"\n aria-expanded={isOpen}\n aria-haspopup=\"true\"\n aria-controls={dropdownId}\n title={name}\n onClick={(ev) => handleItemClick(navItem, ev)}\n className={classNames('au-header__navbar-link', 'au-header__navbar-link--is-dropdown', {\n 'au-header__navbar-link--is-active': active,\n })}>\n <Text as=\"span\" variant=\"heading-micro\" weight=\"light\">\n {name}\n </Text>\n <IconChevronDown aria-hidden=\"true\" />\n </button>\n ) : (\n <Text\n as=\"a\"\n variant=\"heading-micro\"\n weight=\"light\"\n href={href}\n onClick={(ev) => handleItemClick(navItem, ev)}\n title={name}\n className={classNames('au-header__navbar-link', {\n 'au-header__navbar-link--is-active': active,\n })}>\n {name}\n </Text>\n )}\n\n <Conditional\n condition={!!dropdown?.length}\n renderIf={\n <div id={dropdownId} className=\"au-header__dropdown\" aria-hidden={!isOpen}>\n {dropdown?.map((item) => {\n return (\n <Text\n key={item.name}\n as=\"a\"\n variant=\"heading-micro\"\n href={item.href}\n onClick={(ev) => handleItemClick(item, ev)}\n weight=\"light\"\n tabIndex={isOpen ? undefined : -1}\n className={classNames('au-header__dropdown-link', {\n 'au-header__dropdown-link--is-active': item.active,\n })}\n title={item.name}>\n {item.name}\n </Text>\n )\n })}\n </div>\n }\n />\n </div>\n )\n}\n"],"names":[],"mappings":";;;;;;;AAOO,MAAM,mBAAmB,CAAC,YAA6B;AAC5D,QAAM,EAAE,MAAM,UAAU,QAAQ,MAAM,eAAe,eAAe;AACpE,QAAM,aAAa,CAAC,CAAC,YAAY,SAAS;AAC1C,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,KAAK;AAC1C,QAAM,aAAa,MAAA;AAEnB,WAAS,gBAAgB,MAAuB,IAAsB;AACpE,QAAI,KAAK,SAAS;AAChB,SAAG,eAAA;AACH,WAAK,QAAA;AAAA,IACP;AAAA,EACF;AAEA,QAAM,qBAAqB,MAAM,cAAc,UAAU,IAAI;AAC7D,QAAM,sBAAsB,MAAM,cAAc,UAAU,KAAK;AAC/D,QAAM,qBAAqB,CAAC,OAAyC;AACnE,QAAI,cAAc,CAAC,GAAG,cAAc,SAAS,GAAG,aAAqB,GAAG;AACtE,gBAAU,KAAK;AAAA,IACjB;AAAA,EACF;AAEA,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,WAAW,0BAA0B;AAAA,QAC9C,uCAAuC;AAAA,QACvC,qCAAqC;AAAA,QACrC,mCAAmC;AAAA,MAAA,CACpC;AAAA,MACD,cAAc;AAAA,MACd,cAAc;AAAA,MACd,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,eAAa;AAAA,MACZ,UAAA;AAAA,QAAA,aACC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,iBAAe;AAAA,YACf,iBAAc;AAAA,YACd,iBAAe;AAAA,YACf,OAAO;AAAA,YACP,SAAS,CAAC,OAAO,gBAAgB,SAAS,EAA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|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
const HeaderNavigation = ({
|
|
3
|
+
children,
|
|
4
|
+
"data-testid": dataTestId
|
|
5
|
+
}) => {
|
|
6
|
+
return /* @__PURE__ */ jsx("div", { className: "au-header__navigation", "data-testid": dataTestId, children });
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
HeaderNavigation
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../lib/components/Header/Navigation/index.tsx"],"sourcesContent":["import { ReactNode } from 'react'\n\nexport type HeaderNavigationProps = {\n children: ReactNode | string | JSX.Element | JSX.Element[]\n 'data-testid'?: string\n}\n\nexport const HeaderNavigation = ({\n children,\n 'data-testid': dataTestId,\n}: HeaderNavigationProps) => {\n return <div className=\"au-header__navigation\" data-testid={dataTestId}>{children}</div>\n}\n"],"names":[],"mappings":";AAOO,MAAM,mBAAmB,CAAC;AAAA,EAC/B;AAAA,EACA,eAAe;AACjB,MAA6B;AAC3B,6BAAQ,OAAA,EAAI,WAAU,yBAAwB,eAAa,YAAa,UAAS;AACnF;"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { g as getInitialLetters } from "../../../getInitialLetters-CV7onXcH.js";
|
|
3
|
+
import "../../../index-BW2ZU5Hx.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../../Icon/index.es.js";
|
|
6
|
+
import { IconBell } from "../../icons/IconBell/index.es.js";
|
|
7
|
+
import { IconChevronDown } from "../../icons/IconChevronDown/index.es.js";
|
|
8
|
+
import { IconMenu } from "../../icons/IconMenu/index.es.js";
|
|
9
|
+
import { Conditional } from "../../misc/Conditional/index.es.js";
|
|
10
|
+
const HeaderProfile = ({
|
|
11
|
+
fullName,
|
|
12
|
+
onClickMenu,
|
|
13
|
+
notifications = {},
|
|
14
|
+
"data-testid": dataTestId
|
|
15
|
+
}) => {
|
|
16
|
+
const initialLetters = getInitialLetters(fullName);
|
|
17
|
+
const { visible = true, hasUnread = false, count, onClick } = notifications;
|
|
18
|
+
const shouldShowBadge = count && count > 0 || hasUnread;
|
|
19
|
+
return /* @__PURE__ */ jsxs("div", { className: "au-header__profile", "data-testid": dataTestId, children: [
|
|
20
|
+
/* @__PURE__ */ jsx(
|
|
21
|
+
Conditional,
|
|
22
|
+
{
|
|
23
|
+
condition: visible,
|
|
24
|
+
renderIf: /* @__PURE__ */ jsxs(
|
|
25
|
+
"button",
|
|
26
|
+
{
|
|
27
|
+
type: "button",
|
|
28
|
+
className: "au-header__profile-notifications",
|
|
29
|
+
onClick,
|
|
30
|
+
"aria-label": shouldShowBadge ? `Notificações, ${count && count > 0 ? count : "novas"}` : "Notificações",
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ jsx(IconBell, { "aria-hidden": "true" }),
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
Conditional,
|
|
35
|
+
{
|
|
36
|
+
condition: !!shouldShowBadge,
|
|
37
|
+
renderIf: /* @__PURE__ */ jsx(
|
|
38
|
+
"span",
|
|
39
|
+
{
|
|
40
|
+
className: "au-header__profile-notifications-badge",
|
|
41
|
+
"aria-hidden": "true",
|
|
42
|
+
children: count && count > 0 ? count : null
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ jsx(
|
|
53
|
+
"button",
|
|
54
|
+
{
|
|
55
|
+
type: "button",
|
|
56
|
+
className: "au-header__profile-menu-mobile",
|
|
57
|
+
onClick: onClickMenu,
|
|
58
|
+
"aria-label": "Abrir menu de perfil",
|
|
59
|
+
children: /* @__PURE__ */ jsx(IconMenu, { "aria-hidden": "true" })
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ jsxs(
|
|
63
|
+
"button",
|
|
64
|
+
{
|
|
65
|
+
type: "button",
|
|
66
|
+
className: "au-header__profile-menu",
|
|
67
|
+
onClick: onClickMenu,
|
|
68
|
+
"aria-label": `Menu de ${fullName}`,
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ jsx("span", { className: "au-header__profile-letters", "aria-hidden": "true", children: initialLetters }),
|
|
71
|
+
/* @__PURE__ */ jsx(IconChevronDown, { "aria-hidden": "true" })
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
] });
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
HeaderProfile
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../lib/components/Header/Profile/index.tsx"],"sourcesContent":["import { getInitialLetters } from '@core/utils/getInitialLetters'\nimport { IconBell, IconChevronDown, IconMenu } from '@components/icons/default'\nimport { Conditional } from '@components/misc'\n\nexport type NotificationsConfig = {\n visible?: boolean\n count?: number\n hasUnread?: boolean\n onClick?: () => void\n}\n\nexport type HeaderProfileProps = {\n fullName: string\n onClickMenu?: () => void\n notifications?: NotificationsConfig\n 'data-testid'?: string\n}\n\nexport const HeaderProfile = ({\n fullName,\n onClickMenu,\n notifications = {},\n 'data-testid': dataTestId,\n}: HeaderProfileProps) => {\n const initialLetters = getInitialLetters(fullName)\n\n const { visible = true, hasUnread = false, count, onClick } = notifications\n const shouldShowBadge = (count && count > 0) || hasUnread\n\n return (\n <div className=\"au-header__profile\" data-testid={dataTestId}>\n <Conditional\n condition={visible}\n renderIf={\n <button\n type=\"button\"\n className=\"au-header__profile-notifications\"\n onClick={onClick}\n aria-label={\n shouldShowBadge\n ? `Notificações, ${count && count > 0 ? count : 'novas'}`\n : 'Notificações'\n }>\n <IconBell aria-hidden=\"true\" />\n <Conditional\n condition={!!shouldShowBadge}\n renderIf={\n <span\n className=\"au-header__profile-notifications-badge\"\n aria-hidden=\"true\">\n {count && count > 0 ? count : null}\n </span>\n }\n />\n </button>\n }\n />\n\n <button\n type=\"button\"\n className=\"au-header__profile-menu-mobile\"\n onClick={onClickMenu}\n aria-label=\"Abrir menu de perfil\">\n <IconMenu aria-hidden=\"true\" />\n </button>\n\n <button\n type=\"button\"\n className=\"au-header__profile-menu\"\n onClick={onClickMenu}\n aria-label={`Menu de ${fullName}`}>\n <span className=\"au-header__profile-letters\" aria-hidden=\"true\">\n {initialLetters}\n </span>\n <IconChevronDown aria-hidden=\"true\" />\n </button>\n </div>\n )\n}\n"],"names":[],"mappings":";;;;;;;;;AAkBO,MAAM,gBAAgB,CAAC;AAAA,EAC5B;AAAA,EACA;AAAA,EACA,gBAAgB,CAAA;AAAA,EAChB,eAAe;AACjB,MAA0B;AACxB,QAAM,iBAAiB,kBAAkB,QAAQ;AAEjD,QAAM,EAAE,UAAU,MAAM,YAAY,OAAO,OAAO,YAAY;AAC9D,QAAM,kBAAmB,SAAS,QAAQ,KAAM;AAEhD,SACE,qBAAC,OAAA,EAAI,WAAU,sBAAqB,eAAa,YAC/C,UAAA;AAAA,IAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAW;AAAA,QACX,UACE;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAU;AAAA,YACV;AAAA,YACA,cACE,kBACI,iBAAiB,SAAS,QAAQ,IAAI,QAAQ,OAAO,KACrD;AAAA,YAEN,UAAA;AAAA,cAAA,oBAAC,UAAA,EAAS,eAAY,OAAA,CAAO;AAAA,cAC7B;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBACC,WAAW,CAAC,CAAC;AAAA,kBACb,UACE;AAAA,oBAAC;AAAA,oBAAA;AAAA,sBACC,WAAU;AAAA,sBACV,eAAY;AAAA,sBACX,UAAA,SAAS,QAAQ,IAAI,QAAQ;AAAA,oBAAA;AAAA,kBAAA;AAAA,gBAChC;AAAA,cAAA;AAAA,YAEJ;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,IAIJ;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAU;AAAA,QACV,SAAS;AAAA,QACT,cAAW;AAAA,QACX,UAAA,oBAAC,UAAA,EAAS,eAAY,OAAA,CAAO;AAAA,MAAA;AAAA,IAAA;AAAA,IAG/B;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAU;AAAA,QACV,SAAS;AAAA,QACT,cAAY,WAAW,QAAQ;AAAA,QAC/B,UAAA;AAAA,UAAA,oBAAC,QAAA,EAAK,WAAU,8BAA6B,eAAY,QACtD,UAAA,gBACH;AAAA,UACA,oBAAC,iBAAA,EAAgB,eAAY,OAAA,CAAO;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACtC,GACF;AAEJ;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { c as classNames } from "../../../index-BW2ZU5Hx.js";
|
|
3
|
+
const HeaderWrap = ({
|
|
4
|
+
children,
|
|
5
|
+
position = "static",
|
|
6
|
+
"data-testid": dataTestId
|
|
7
|
+
}) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
"header",
|
|
10
|
+
{
|
|
11
|
+
role: "banner",
|
|
12
|
+
className: classNames("au-header", {
|
|
13
|
+
"au-header--fixed": position === "fixed",
|
|
14
|
+
"au-header--static": position === "static"
|
|
15
|
+
}),
|
|
16
|
+
"data-testid": dataTestId,
|
|
17
|
+
children: /* @__PURE__ */ jsx("div", { className: "au-header__container", children })
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
HeaderWrap
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../lib/components/Header/Wrap/index.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport { ReactNode } from 'react'\n\nexport type HeaderWrapProps = {\n position?: 'static' | 'fixed'\n children: ReactNode | string | JSX.Element | JSX.Element[]\n 'data-testid'?: string\n}\n\nexport const HeaderWrap = ({\n children,\n position = 'static',\n 'data-testid': dataTestId,\n}: HeaderWrapProps) => {\n return (\n <header\n role=\"banner\"\n className={classNames('au-header', {\n 'au-header--fixed': position === 'fixed',\n 'au-header--static': position === 'static',\n })}\n data-testid={dataTestId}>\n <div className=\"au-header__container\">{children}</div>\n </header>\n )\n}\n"],"names":[],"mappings":";;AASO,MAAM,aAAa,CAAC;AAAA,EACzB;AAAA,EACA,WAAW;AAAA,EACX,eAAe;AACjB,MAAuB;AACrB,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAW,WAAW,aAAa;AAAA,QACjC,oBAAoB,aAAa;AAAA,QACjC,qBAAqB,aAAa;AAAA,MAAA,CACnC;AAAA,MACD,eAAa;AAAA,MACb,UAAA,oBAAC,OAAA,EAAI,WAAU,wBAAwB,SAAA,CAAS;AAAA,IAAA;AAAA,EAAA;AAGtD;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { HeaderActionsProps } from './
|
|
2
|
-
import { HeaderBadgesProps } from './
|
|
3
|
-
import { HeaderButtonProps } from './
|
|
4
|
-
import { HeaderHamburgerProps } from './
|
|
5
|
-
import { HeaderLogoProps } from './
|
|
6
|
-
import { HeaderNavbarProps } from './
|
|
7
|
-
import { HeaderNavigationProps } from './
|
|
8
|
-
import { HeaderProfileProps } from './
|
|
9
|
-
import { HeaderWrapProps } from './
|
|
1
|
+
import { HeaderActionsProps } from './Actions';
|
|
2
|
+
import { HeaderBadgesProps } from './Badges';
|
|
3
|
+
import { HeaderButtonProps } from './Button';
|
|
4
|
+
import { HeaderHamburgerProps } from './Hamburger';
|
|
5
|
+
import { HeaderLogoProps } from './Logo';
|
|
6
|
+
import { HeaderNavbarProps } from './Navbar';
|
|
7
|
+
import { HeaderNavigationProps } from './Navigation';
|
|
8
|
+
import { HeaderProfileProps } from './Profile';
|
|
9
|
+
import { HeaderWrapProps } from './Wrap';
|
|
10
10
|
import { NavbarDataProps } from './types';
|
|
11
11
|
type Components = {
|
|
12
12
|
Actions: React.FC<HeaderActionsProps>;
|
|
@@ -1,293 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import './styles.css';const
|
|
12
|
-
children,
|
|
13
|
-
divider,
|
|
14
|
-
"data-testid": dataTestId
|
|
15
|
-
}) => {
|
|
16
|
-
return /* @__PURE__ */ jsx(
|
|
17
|
-
"div",
|
|
18
|
-
{
|
|
19
|
-
className: classNames("au-header__actions", {
|
|
20
|
-
"au-header__actions--divider": divider
|
|
21
|
-
}),
|
|
22
|
-
"data-testid": dataTestId,
|
|
23
|
-
children
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
};
|
|
27
|
-
const HeaderBadges = ({
|
|
28
|
-
children,
|
|
29
|
-
limitBadgeWidth = true,
|
|
30
|
-
"data-testid": dataTestId
|
|
31
|
-
}) => {
|
|
32
|
-
const componentClass = classNames("au-header__badges", {
|
|
33
|
-
"au-header__badges--limited-width": limitBadgeWidth
|
|
34
|
-
});
|
|
35
|
-
return /* @__PURE__ */ jsx("div", { className: componentClass, "data-testid": dataTestId, children });
|
|
36
|
-
};
|
|
37
|
-
const HeaderButton = ({
|
|
38
|
-
children,
|
|
39
|
-
onClick,
|
|
40
|
-
"data-testid": dataTestId
|
|
41
|
-
}) => {
|
|
42
|
-
return /* @__PURE__ */ jsx(
|
|
43
|
-
"button",
|
|
44
|
-
{
|
|
45
|
-
type: "button",
|
|
46
|
-
className: "au-header__button",
|
|
47
|
-
onClick,
|
|
48
|
-
"data-testid": dataTestId,
|
|
49
|
-
children
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
};
|
|
53
|
-
const HeaderHamburger = ({
|
|
54
|
-
onClick,
|
|
55
|
-
isOpen,
|
|
56
|
-
controls,
|
|
57
|
-
"data-testid": dataTestId
|
|
58
|
-
}) => {
|
|
59
|
-
return /* @__PURE__ */ jsx(
|
|
60
|
-
"button",
|
|
61
|
-
{
|
|
62
|
-
type: "button",
|
|
63
|
-
className: "au-header__hamburger",
|
|
64
|
-
onClick,
|
|
65
|
-
"aria-label": "Abrir menu de navegação",
|
|
66
|
-
"aria-expanded": isOpen,
|
|
67
|
-
"aria-controls": controls,
|
|
68
|
-
"data-testid": dataTestId,
|
|
69
|
-
children: /* @__PURE__ */ jsx(IconMenu, { "aria-hidden": "true" })
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
};
|
|
73
|
-
const HeaderLogo = ({
|
|
74
|
-
children,
|
|
75
|
-
renderMobile,
|
|
76
|
-
renderDesktop,
|
|
77
|
-
"data-testid": dataTestId
|
|
78
|
-
}) => {
|
|
79
|
-
return /* @__PURE__ */ jsxs("div", { className: "au-header__logo", "data-testid": dataTestId, children: [
|
|
80
|
-
/* @__PURE__ */ jsx(
|
|
81
|
-
Conditional,
|
|
82
|
-
{
|
|
83
|
-
condition: !!renderMobile,
|
|
84
|
-
renderIf: /* @__PURE__ */ jsx("div", { className: "au-header__logo--mobile", children: renderMobile })
|
|
85
|
-
}
|
|
86
|
-
),
|
|
87
|
-
/* @__PURE__ */ jsx(
|
|
88
|
-
Conditional,
|
|
89
|
-
{
|
|
90
|
-
condition: !!renderDesktop,
|
|
91
|
-
renderIf: /* @__PURE__ */ jsx("div", { className: "au-header__logo--desktop", children: renderDesktop })
|
|
92
|
-
}
|
|
93
|
-
),
|
|
94
|
-
children
|
|
95
|
-
] });
|
|
96
|
-
};
|
|
97
|
-
const HeaderNavbar = ({
|
|
98
|
-
data,
|
|
99
|
-
renderItem,
|
|
100
|
-
"data-testid": dataTestId
|
|
101
|
-
}) => {
|
|
102
|
-
return /* @__PURE__ */ jsx("nav", { role: "navigation", className: "au-header__navbar", "data-testid": dataTestId, children: data == null ? void 0 : data.map((item) => {
|
|
103
|
-
return renderItem(item);
|
|
104
|
-
}) });
|
|
105
|
-
};
|
|
106
|
-
const HeaderNavbarLink = (navItem) => {
|
|
107
|
-
const { name, dropdown, active, href, "data-testid": dataTestId } = navItem;
|
|
108
|
-
const isDropdown = !!dropdown && dropdown.length;
|
|
109
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
110
|
-
const dropdownId = useId();
|
|
111
|
-
function handleItemClick(item, ev) {
|
|
112
|
-
if (item.onClick) {
|
|
113
|
-
ev.preventDefault();
|
|
114
|
-
item.onClick();
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
const handleDropdownOpen = () => isDropdown && setIsOpen(true);
|
|
118
|
-
const handleDropdownClose = () => isDropdown && setIsOpen(false);
|
|
119
|
-
const handleDropdownBlur = (ev) => {
|
|
120
|
-
if (isDropdown && !ev.currentTarget.contains(ev.relatedTarget)) {
|
|
121
|
-
setIsOpen(false);
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
return /* @__PURE__ */ jsxs(
|
|
125
|
-
"div",
|
|
126
|
-
{
|
|
127
|
-
className: classNames("au-header__navbar-item", {
|
|
128
|
-
"au-header__navbar-item--is-dropdown": dropdown,
|
|
129
|
-
"au-header__navbar-item--is-active": active,
|
|
130
|
-
"au-header__navbar-item--is-open": isOpen
|
|
131
|
-
}),
|
|
132
|
-
onMouseEnter: handleDropdownOpen,
|
|
133
|
-
onMouseLeave: handleDropdownClose,
|
|
134
|
-
onFocus: handleDropdownOpen,
|
|
135
|
-
onBlur: handleDropdownBlur,
|
|
136
|
-
"data-testid": dataTestId,
|
|
137
|
-
children: [
|
|
138
|
-
isDropdown ? /* @__PURE__ */ jsxs(
|
|
139
|
-
"button",
|
|
140
|
-
{
|
|
141
|
-
type: "button",
|
|
142
|
-
"aria-expanded": isOpen,
|
|
143
|
-
"aria-haspopup": "true",
|
|
144
|
-
"aria-controls": dropdownId,
|
|
145
|
-
title: name,
|
|
146
|
-
onClick: (ev) => handleItemClick(navItem, ev),
|
|
147
|
-
className: classNames("au-header__navbar-link", "au-header__navbar-link--is-dropdown", {
|
|
148
|
-
"au-header__navbar-link--is-active": active
|
|
149
|
-
}),
|
|
150
|
-
children: [
|
|
151
|
-
/* @__PURE__ */ jsx(Text, { as: "span", variant: "heading-micro", weight: "light", children: name }),
|
|
152
|
-
/* @__PURE__ */ jsx(IconChevronDown, { "aria-hidden": "true" })
|
|
153
|
-
]
|
|
154
|
-
}
|
|
155
|
-
) : /* @__PURE__ */ jsx(
|
|
156
|
-
Text,
|
|
157
|
-
{
|
|
158
|
-
as: "a",
|
|
159
|
-
variant: "heading-micro",
|
|
160
|
-
weight: "light",
|
|
161
|
-
href,
|
|
162
|
-
onClick: (ev) => handleItemClick(navItem, ev),
|
|
163
|
-
title: name,
|
|
164
|
-
className: classNames("au-header__navbar-link", {
|
|
165
|
-
"au-header__navbar-link--is-active": active
|
|
166
|
-
}),
|
|
167
|
-
children: name
|
|
168
|
-
}
|
|
169
|
-
),
|
|
170
|
-
/* @__PURE__ */ jsx(
|
|
171
|
-
Conditional,
|
|
172
|
-
{
|
|
173
|
-
condition: !!(dropdown == null ? void 0 : dropdown.length),
|
|
174
|
-
renderIf: /* @__PURE__ */ jsx("div", { id: dropdownId, className: "au-header__dropdown", "aria-hidden": !isOpen, children: dropdown == null ? void 0 : dropdown.map((item) => {
|
|
175
|
-
return /* @__PURE__ */ jsx(
|
|
176
|
-
Text,
|
|
177
|
-
{
|
|
178
|
-
as: "a",
|
|
179
|
-
variant: "heading-micro",
|
|
180
|
-
href: item.href,
|
|
181
|
-
onClick: (ev) => handleItemClick(item, ev),
|
|
182
|
-
weight: "light",
|
|
183
|
-
tabIndex: isOpen ? void 0 : -1,
|
|
184
|
-
className: classNames("au-header__dropdown-link", {
|
|
185
|
-
"au-header__dropdown-link--is-active": item.active
|
|
186
|
-
}),
|
|
187
|
-
title: item.name,
|
|
188
|
-
children: item.name
|
|
189
|
-
},
|
|
190
|
-
item.name
|
|
191
|
-
);
|
|
192
|
-
}) })
|
|
193
|
-
}
|
|
194
|
-
)
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
);
|
|
198
|
-
};
|
|
199
|
-
const HeaderNavigation = ({
|
|
200
|
-
children,
|
|
201
|
-
"data-testid": dataTestId
|
|
202
|
-
}) => {
|
|
203
|
-
return /* @__PURE__ */ jsx("div", { className: "au-header__navigation", "data-testid": dataTestId, children });
|
|
204
|
-
};
|
|
205
|
-
const HeaderProfile = ({
|
|
206
|
-
fullName,
|
|
207
|
-
onClickMenu,
|
|
208
|
-
notifications = {},
|
|
209
|
-
"data-testid": dataTestId
|
|
210
|
-
}) => {
|
|
211
|
-
const initialLetters = getInitialLetters(fullName);
|
|
212
|
-
const { visible = true, hasUnread = false, count, onClick } = notifications;
|
|
213
|
-
const shouldShowBadge = count && count > 0 || hasUnread;
|
|
214
|
-
return /* @__PURE__ */ jsxs("div", { className: "au-header__profile", "data-testid": dataTestId, children: [
|
|
215
|
-
/* @__PURE__ */ jsx(
|
|
216
|
-
Conditional,
|
|
217
|
-
{
|
|
218
|
-
condition: visible,
|
|
219
|
-
renderIf: /* @__PURE__ */ jsxs(
|
|
220
|
-
"button",
|
|
221
|
-
{
|
|
222
|
-
type: "button",
|
|
223
|
-
className: "au-header__profile-notifications",
|
|
224
|
-
onClick,
|
|
225
|
-
"aria-label": shouldShowBadge ? `Notificações, ${count && count > 0 ? count : "novas"}` : "Notificações",
|
|
226
|
-
children: [
|
|
227
|
-
/* @__PURE__ */ jsx(IconBell, { "aria-hidden": "true" }),
|
|
228
|
-
/* @__PURE__ */ jsx(
|
|
229
|
-
Conditional,
|
|
230
|
-
{
|
|
231
|
-
condition: !!shouldShowBadge,
|
|
232
|
-
renderIf: /* @__PURE__ */ jsx(
|
|
233
|
-
"span",
|
|
234
|
-
{
|
|
235
|
-
className: "au-header__profile-notifications-badge",
|
|
236
|
-
"aria-hidden": "true",
|
|
237
|
-
children: count && count > 0 ? count : null
|
|
238
|
-
}
|
|
239
|
-
)
|
|
240
|
-
}
|
|
241
|
-
)
|
|
242
|
-
]
|
|
243
|
-
}
|
|
244
|
-
)
|
|
245
|
-
}
|
|
246
|
-
),
|
|
247
|
-
/* @__PURE__ */ jsx(
|
|
248
|
-
"button",
|
|
249
|
-
{
|
|
250
|
-
type: "button",
|
|
251
|
-
className: "au-header__profile-menu-mobile",
|
|
252
|
-
onClick: onClickMenu,
|
|
253
|
-
"aria-label": "Abrir menu de perfil",
|
|
254
|
-
children: /* @__PURE__ */ jsx(IconMenu, { "aria-hidden": "true" })
|
|
255
|
-
}
|
|
256
|
-
),
|
|
257
|
-
/* @__PURE__ */ jsxs(
|
|
258
|
-
"button",
|
|
259
|
-
{
|
|
260
|
-
type: "button",
|
|
261
|
-
className: "au-header__profile-menu",
|
|
262
|
-
onClick: onClickMenu,
|
|
263
|
-
"aria-label": `Menu de ${fullName}`,
|
|
264
|
-
children: [
|
|
265
|
-
/* @__PURE__ */ jsx("span", { className: "au-header__profile-letters", "aria-hidden": "true", children: initialLetters }),
|
|
266
|
-
/* @__PURE__ */ jsx(IconChevronDown, { "aria-hidden": "true" })
|
|
267
|
-
]
|
|
268
|
-
}
|
|
269
|
-
)
|
|
270
|
-
] });
|
|
271
|
-
};
|
|
272
|
-
const HeaderWrap = ({
|
|
273
|
-
children,
|
|
274
|
-
position = "static",
|
|
275
|
-
"data-testid": dataTestId
|
|
276
|
-
}) => {
|
|
277
|
-
return /* @__PURE__ */ jsx(
|
|
278
|
-
"header",
|
|
279
|
-
{
|
|
280
|
-
role: "banner",
|
|
281
|
-
className: classNames("au-header", {
|
|
282
|
-
"au-header--fixed": position === "fixed",
|
|
283
|
-
"au-header--static": position === "static"
|
|
284
|
-
}),
|
|
285
|
-
"data-testid": dataTestId,
|
|
286
|
-
children: /* @__PURE__ */ jsx("div", { className: "au-header__container", children })
|
|
287
|
-
}
|
|
288
|
-
);
|
|
289
|
-
};
|
|
290
|
-
const components = {
|
|
1
|
+
import { HeaderActions } from "./Actions/index.es.js";
|
|
2
|
+
import { HeaderBadges } from "./Badges/index.es.js";
|
|
3
|
+
import { HeaderButton } from "./Button/index.es.js";
|
|
4
|
+
import { HeaderHamburger } from "./Hamburger/index.es.js";
|
|
5
|
+
import { HeaderLogo } from "./Logo/index.es.js";
|
|
6
|
+
import { HeaderNavbar } from "./Navbar/index.es.js";
|
|
7
|
+
import { HeaderNavbarLink } from "./NavbarLink/index.es.js";
|
|
8
|
+
import { HeaderNavigation } from "./Navigation/index.es.js";
|
|
9
|
+
import { HeaderProfile } from "./Profile/index.es.js";
|
|
10
|
+
import { HeaderWrap } from "./Wrap/index.es.js";
|
|
11
|
+
import './styles.css';const components = {
|
|
291
12
|
Actions: HeaderActions,
|
|
292
13
|
Badges: HeaderBadges,
|
|
293
14
|
Button: HeaderButton,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../lib/components/Header/parts/HeaderActions.tsx","../../../lib/components/Header/parts/HeaderBadges.tsx","../../../lib/components/Header/parts/HeaderButton.tsx","../../../lib/components/Header/parts/HeaderHamburger.tsx","../../../lib/components/Header/parts/HeaderLogo.tsx","../../../lib/components/Header/parts/HeaderNavbar.tsx","../../../lib/components/Header/parts/HeaderNavbarLink.tsx","../../../lib/components/Header/parts/HeaderNavigation.tsx","../../../lib/components/Header/parts/HeaderProfile.tsx","../../../lib/components/Header/parts/HeaderWrap.tsx","../../../lib/components/Header/index.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport { ReactNode } from 'react'\n\nexport type HeaderActionsProps = {\n children: ReactNode | string | JSX.Element | JSX.Element[]\n divider?: boolean\n 'data-testid'?: string\n}\n\nexport const HeaderActions = ({\n children,\n divider,\n 'data-testid': dataTestId,\n}: HeaderActionsProps) => {\n return (\n <div\n className={classNames('au-header__actions', {\n 'au-header__actions--divider': divider,\n })}\n data-testid={dataTestId}>\n {children}\n </div>\n )\n}\n","import classNames from 'classnames'\nimport { ReactNode } from 'react'\n\nexport type HeaderBadgesProps = {\n children: ReactNode | string | JSX.Element | JSX.Element[]\n limitBadgeWidth?: boolean\n 'data-testid'?: string\n}\n\nexport const HeaderBadges = ({\n children,\n limitBadgeWidth = true,\n 'data-testid': dataTestId,\n}: HeaderBadgesProps) => {\n const componentClass = classNames('au-header__badges', {\n 'au-header__badges--limited-width': limitBadgeWidth,\n })\n return <div className={componentClass} data-testid={dataTestId}>{children}</div>\n}\n","import { ReactNode } from 'react'\n\nexport type HeaderButtonProps = {\n children: ReactNode | string | JSX.Element | JSX.Element[]\n onClick: () => void\n 'data-testid'?: string\n}\n\nexport const HeaderButton = ({\n children,\n onClick,\n 'data-testid': dataTestId,\n}: HeaderButtonProps) => {\n return (\n <button\n type=\"button\"\n className=\"au-header__button\"\n onClick={onClick}\n data-testid={dataTestId}>\n {children}\n </button>\n )\n}\n","import { IconMenu } from '@components/icons/default'\n\nexport type HeaderHamburgerProps = {\n onClick?: () => void\n isOpen?: boolean\n controls?: string\n 'data-testid'?: string\n}\n\nexport const HeaderHamburger = ({\n onClick,\n isOpen,\n controls,\n 'data-testid': dataTestId,\n}: HeaderHamburgerProps) => {\n return (\n <button\n type=\"button\"\n className=\"au-header__hamburger\"\n onClick={onClick}\n aria-label=\"Abrir menu de navegação\"\n aria-expanded={isOpen}\n aria-controls={controls}\n data-testid={dataTestId}>\n <IconMenu aria-hidden=\"true\" />\n </button>\n )\n}\n","import { ReactNode } from 'react'\nimport { Conditional } from '@components/misc'\n\nexport type HeaderLogoProps = {\n children?: ReactNode | string | JSX.Element | JSX.Element[]\n renderMobile?: ReactNode | string | JSX.Element | JSX.Element[]\n renderDesktop?: ReactNode | string | JSX.Element | JSX.Element[]\n 'data-testid'?: string\n}\n\nexport const HeaderLogo = ({\n children,\n renderMobile,\n renderDesktop,\n 'data-testid': dataTestId,\n}: HeaderLogoProps) => {\n return (\n <div className=\"au-header__logo\" data-testid={dataTestId}>\n <Conditional\n condition={!!renderMobile}\n renderIf={<div className=\"au-header__logo--mobile\">{renderMobile}</div>}\n />\n <Conditional\n condition={!!renderDesktop}\n renderIf={\n <div className=\"au-header__logo--desktop\">{renderDesktop}</div>\n }\n />\n {children}\n </div>\n )\n}\n","import { ReactNode } from 'react'\nimport { NavbarDataProps } from '../types'\n\nexport type HeaderNavbarProps = {\n data: NavbarDataProps[]\n renderItem: (\n item: NavbarDataProps,\n ) => ReactNode | string | JSX.Element | JSX.Element[]\n 'data-testid'?: string\n}\n\nexport const HeaderNavbar = ({\n data,\n renderItem,\n 'data-testid': dataTestId,\n}: HeaderNavbarProps) => {\n return (\n <nav role=\"navigation\" className=\"au-header__navbar\" data-testid={dataTestId}>\n {data?.map((item) => {\n return renderItem(item)\n })}\n </nav>\n )\n}\n","import { useState, useId } from 'react'\nimport classNames from 'classnames'\nimport { Text } from '@components/Text'\nimport { IconChevronDown } from '@components/icons/default'\nimport { Conditional } from '@components/misc'\nimport { NavbarDataProps } from '../types'\n\nexport const HeaderNavbarLink = (navItem: NavbarDataProps) => {\n const { name, dropdown, active, href, 'data-testid': dataTestId } = navItem\n const isDropdown = !!dropdown && dropdown.length\n const [isOpen, setIsOpen] = useState(false)\n const dropdownId = useId()\n\n function handleItemClick(item: NavbarDataProps, ev: React.MouseEvent) {\n if (item.onClick) {\n ev.preventDefault()\n item.onClick()\n }\n }\n\n const handleDropdownOpen = () => isDropdown && setIsOpen(true)\n const handleDropdownClose = () => isDropdown && setIsOpen(false)\n const handleDropdownBlur = (ev: React.FocusEvent<HTMLDivElement>) => {\n if (isDropdown && !ev.currentTarget.contains(ev.relatedTarget as Node)) {\n setIsOpen(false)\n }\n }\n\n return (\n <div\n className={classNames('au-header__navbar-item', {\n 'au-header__navbar-item--is-dropdown': dropdown,\n 'au-header__navbar-item--is-active': active,\n 'au-header__navbar-item--is-open': isOpen,\n })}\n onMouseEnter={handleDropdownOpen}\n onMouseLeave={handleDropdownClose}\n onFocus={handleDropdownOpen}\n onBlur={handleDropdownBlur}\n data-testid={dataTestId}>\n {isDropdown ? (\n <button\n type=\"button\"\n aria-expanded={isOpen}\n aria-haspopup=\"true\"\n aria-controls={dropdownId}\n title={name}\n onClick={(ev) => handleItemClick(navItem, ev)}\n className={classNames('au-header__navbar-link', 'au-header__navbar-link--is-dropdown', {\n 'au-header__navbar-link--is-active': active,\n })}>\n <Text as=\"span\" variant=\"heading-micro\" weight=\"light\">\n {name}\n </Text>\n <IconChevronDown aria-hidden=\"true\" />\n </button>\n ) : (\n <Text\n as=\"a\"\n variant=\"heading-micro\"\n weight=\"light\"\n href={href}\n onClick={(ev) => handleItemClick(navItem, ev)}\n title={name}\n className={classNames('au-header__navbar-link', {\n 'au-header__navbar-link--is-active': active,\n })}>\n {name}\n </Text>\n )}\n\n <Conditional\n condition={!!dropdown?.length}\n renderIf={\n <div id={dropdownId} className=\"au-header__dropdown\" aria-hidden={!isOpen}>\n {dropdown?.map((item) => {\n return (\n <Text\n key={item.name}\n as=\"a\"\n variant=\"heading-micro\"\n href={item.href}\n onClick={(ev) => handleItemClick(item, ev)}\n weight=\"light\"\n tabIndex={isOpen ? undefined : -1}\n className={classNames('au-header__dropdown-link', {\n 'au-header__dropdown-link--is-active': item.active,\n })}\n title={item.name}>\n {item.name}\n </Text>\n )\n })}\n </div>\n }\n />\n </div>\n )\n}\n","import { ReactNode } from 'react'\n\nexport type HeaderNavigationProps = {\n children: ReactNode | string | JSX.Element | JSX.Element[]\n 'data-testid'?: string\n}\n\nexport const HeaderNavigation = ({\n children,\n 'data-testid': dataTestId,\n}: HeaderNavigationProps) => {\n return <div className=\"au-header__navigation\" data-testid={dataTestId}>{children}</div>\n}\n","import { getInitialLetters } from '@core/utils/getInitialLetters'\nimport { IconBell, IconChevronDown, IconMenu } from '@components/icons/default'\nimport { Conditional } from '@components/misc'\n\nexport type NotificationsConfig = {\n visible?: boolean\n count?: number\n hasUnread?: boolean\n onClick?: () => void\n}\n\nexport type HeaderProfileProps = {\n fullName: string\n onClickMenu?: () => void\n notifications?: NotificationsConfig\n 'data-testid'?: string\n}\n\nexport const HeaderProfile = ({\n fullName,\n onClickMenu,\n notifications = {},\n 'data-testid': dataTestId,\n}: HeaderProfileProps) => {\n const initialLetters = getInitialLetters(fullName)\n\n const { visible = true, hasUnread = false, count, onClick } = notifications\n const shouldShowBadge = (count && count > 0) || hasUnread\n\n return (\n <div className=\"au-header__profile\" data-testid={dataTestId}>\n <Conditional\n condition={visible}\n renderIf={\n <button\n type=\"button\"\n className=\"au-header__profile-notifications\"\n onClick={onClick}\n aria-label={\n shouldShowBadge\n ? `Notificações, ${count && count > 0 ? count : 'novas'}`\n : 'Notificações'\n }>\n <IconBell aria-hidden=\"true\" />\n <Conditional\n condition={!!shouldShowBadge}\n renderIf={\n <span\n className=\"au-header__profile-notifications-badge\"\n aria-hidden=\"true\">\n {count && count > 0 ? count : null}\n </span>\n }\n />\n </button>\n }\n />\n\n <button\n type=\"button\"\n className=\"au-header__profile-menu-mobile\"\n onClick={onClickMenu}\n aria-label=\"Abrir menu de perfil\">\n <IconMenu aria-hidden=\"true\" />\n </button>\n\n <button\n type=\"button\"\n className=\"au-header__profile-menu\"\n onClick={onClickMenu}\n aria-label={`Menu de ${fullName}`}>\n <span className=\"au-header__profile-letters\" aria-hidden=\"true\">\n {initialLetters}\n </span>\n <IconChevronDown aria-hidden=\"true\" />\n </button>\n </div>\n )\n}\n","import classNames from 'classnames'\nimport { ReactNode } from 'react'\n\nexport type HeaderWrapProps = {\n position?: 'static' | 'fixed'\n children: ReactNode | string | JSX.Element | JSX.Element[]\n 'data-testid'?: string\n}\n\nexport const HeaderWrap = ({\n children,\n position = 'static',\n 'data-testid': dataTestId,\n}: HeaderWrapProps) => {\n return (\n <header\n role=\"banner\"\n className={classNames('au-header', {\n 'au-header--fixed': position === 'fixed',\n 'au-header--static': position === 'static',\n })}\n data-testid={dataTestId}>\n <div className=\"au-header__container\">{children}</div>\n </header>\n )\n}\n","import { HeaderActions, HeaderActionsProps } from './parts/HeaderActions'\nimport { HeaderBadges, HeaderBadgesProps } from './parts/HeaderBadges'\nimport { HeaderButton, HeaderButtonProps } from './parts/HeaderButton'\nimport { HeaderHamburger, HeaderHamburgerProps } from './parts/HeaderHamburger'\nimport { HeaderLogo, HeaderLogoProps } from './parts/HeaderLogo'\nimport { HeaderNavbar, HeaderNavbarProps } from './parts/HeaderNavbar'\nimport { HeaderNavbarLink } from './parts/HeaderNavbarLink'\nimport {\n HeaderNavigation,\n HeaderNavigationProps,\n} from './parts/HeaderNavigation'\nimport { HeaderProfile, HeaderProfileProps } from './parts/HeaderProfile'\nimport { HeaderWrap as Header, HeaderWrapProps } from './parts/HeaderWrap'\nimport { NavbarDataProps } from './types'\n\nimport './styles.scss'\n\ntype Components = {\n Actions: React.FC<HeaderActionsProps>\n Badges: React.FC<HeaderBadgesProps>\n Button: React.FC<HeaderButtonProps>\n Hamburger: React.FC<HeaderHamburgerProps>\n Logo: React.FC<HeaderLogoProps>\n Navbar: React.FC<HeaderNavbarProps>\n NavbarLink: React.FC<NavbarDataProps>\n Navigation: React.FC<HeaderNavigationProps>\n Profile: React.FC<HeaderProfileProps>\n Root: React.FC<HeaderWrapProps>\n}\n\nconst components: Components = {\n Actions: HeaderActions,\n Badges: HeaderBadges,\n Button: HeaderButton,\n Hamburger: HeaderHamburger,\n Logo: HeaderLogo,\n Navbar: HeaderNavbar,\n NavbarLink: HeaderNavbarLink,\n Navigation: HeaderNavigation,\n Profile: HeaderProfile,\n Root: Header,\n}\n\nObject.keys(components).forEach((key) => {\n const component = components[key as keyof Components]\n component.displayName = `Header.${key}`\n})\n\nexport { components as Header }\n"],"names":["Header"],"mappings":";;;;;;;;;;AASO,MAAM,gBAAgB,CAAC;AAAA,EAC5B;AAAA,EACA;AAAA,EACA,e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A,QACC,MAAK;AAAA,QACL,WAAU;AAAA,QACV,SAAS;AAAA,QACT,cAAW;AAAA,QACX,UAAA,oBAAC,UAAA,EAAS,eAAY,OAAA,CAAO;AAAA,MAAA;AAAA,IAAA;AAAA,IAG/B;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,WAAU;AAAA,QACV,SAAS;AAAA,QACT,cAAY,WAAW,QAAQ;AAAA,QAC/B,UAAA;AAAA,UAAA,oBAAC,QAAA,EAAK,WAAU,8BAA6B,eAAY,QACtD,UAAA,gBACH;AAAA,UACA,oBAAC,iBAAA,EAAgB,eAAY,OAAA,CAAO;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACtC,GACF;AAEJ;ACrEO,MAAM,aAAa,CAAC;AAAA,EACzB;AAAA,EACA,WAAW;AAAA,EACX,eAAe;AACjB,MAAuB;AACrB,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAW,WAAW,aAAa;AAAA,QACjC,oBAAoB,aAAa;AAAA,QACjC,qBAAqB,aAAa;AAAA,MAAA,CACnC;AAAA,MACD,eAAa;AAAA,MACb,UAAA,oBAAC,OAAA,EAAI,WAAU,wBAAwB,SAAA,CAAS;AAAA,IAAA;AAAA,EAAA;AAGtD;ACKA,MAAM,aAAyB;AAAA,EAC7B,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,MAAMA;AACR;AAEA,OAAO,KAAK,UAAU,EAAE,QAAQ,CAAC,QAAQ;AACvC,QAAM,YAAY,WAAW,GAAuB;AACpD,YAAU,cAAc,UAAU,GAAG;AACvC,CAAC;"}
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../lib/components/Header/index.tsx"],"sourcesContent":["import { HeaderActions, HeaderActionsProps } from './Actions'\nimport { HeaderBadges, HeaderBadgesProps } from './Badges'\nimport { HeaderButton, HeaderButtonProps } from './Button'\nimport { HeaderHamburger, HeaderHamburgerProps } from './Hamburger'\nimport { HeaderLogo, HeaderLogoProps } from './Logo'\nimport { HeaderNavbar, HeaderNavbarProps } from './Navbar'\nimport { HeaderNavbarLink } from './NavbarLink'\nimport {\n HeaderNavigation,\n HeaderNavigationProps,\n} from './Navigation'\nimport { HeaderProfile, HeaderProfileProps } from './Profile'\nimport { HeaderWrap as Header, HeaderWrapProps } from './Wrap'\nimport { NavbarDataProps } from './types'\n\nimport './styles.scss'\n\ntype Components = {\n Actions: React.FC<HeaderActionsProps>\n Badges: React.FC<HeaderBadgesProps>\n Button: React.FC<HeaderButtonProps>\n Hamburger: React.FC<HeaderHamburgerProps>\n Logo: React.FC<HeaderLogoProps>\n Navbar: React.FC<HeaderNavbarProps>\n NavbarLink: React.FC<NavbarDataProps>\n Navigation: React.FC<HeaderNavigationProps>\n Profile: React.FC<HeaderProfileProps>\n Root: React.FC<HeaderWrapProps>\n}\n\nconst components: Components = {\n Actions: HeaderActions,\n Badges: HeaderBadges,\n Button: HeaderButton,\n Hamburger: HeaderHamburger,\n Logo: HeaderLogo,\n Navbar: HeaderNavbar,\n NavbarLink: HeaderNavbarLink,\n Navigation: HeaderNavigation,\n Profile: HeaderProfile,\n Root: Header,\n}\n\nObject.keys(components).forEach((key) => {\n const component = components[key as keyof Components]\n component.displayName = `Header.${key}`\n})\n\nexport { components as Header }\n"],"names":["Header"],"mappings":";;;;;;;;;;AA8BA,MAAM,aAAyB;AAAA,EAC7B,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,MAAMA;AACR;AAEA,OAAO,KAAK,UAAU,EAAE,QAAQ,CAAC,QAAQ;AACvC,QAAM,YAAY,WAAW,GAAuB;AACpD,YAAU,cAAc,UAAU,GAAG;AACvC,CAAC;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c as classNames } from "../../index-
|
|
2
|
+
import { c as classNames } from "../../index-BW2ZU5Hx.js";
|
|
3
3
|
import { useId, useMemo } from "react";
|
|
4
4
|
import './styles.css';function _namespaceSvgIds(markup, uid) {
|
|
5
5
|
return markup.replace(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { e as BREAKPOINT_MD, d as BREAKPOINT_LG } from "../../tokens-C4ypB4bY.js";
|
|
3
3
|
const Image = ({ srcMob, srcTablet, srcDesk, ...props }) => {
|
|
4
4
|
return /* @__PURE__ */ jsxs("picture", { children: [
|
|
5
5
|
/* @__PURE__ */ jsx("source", { media: `(max-width: ${BREAKPOINT_MD})`, srcSet: srcMob }),
|