@vellumlabs/cexplorer-sdk 1.1.25 → 1.1.26

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/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{breakpoints as o}from"./constants/breakpoints.js";import{buttonVariants as i}from"./constants/button.js";import{colors as r}from"./constants/colors.js";import{ADATokenName as t,currencies as s,currencyPosition as e,currencySigns as m,currencySpace as n}from"./constants/currencies.js";import{radiuses as a}from"./constants/radiuses.js";import{shadows as p}from"./constants/shadows.js";import{spacing as u}from"./constants/spacing.js";import{typography as d}from"./constants/typography.js";import{VOTE_OPTIONS as f}from"./constants/votes.js";import{Breadcrumb as j}from"./ui/breadcrumbs/index.js";import{BreadcrumbItem as l}from"./ui/breadcrumbs/components/BreadcrumbItem.js";import{BreadcrumbList as c}from"./ui/breadcrumbs/components/BreadcrumbList.js";import{BreadcrumbPage as x}from"./ui/breadcrumbs/components/BreadcrumbPage.js";import{BreadcrumbRaw as g}from"./ui/breadcrumbs/components/BreadcrumbRaw.js";import{BreadcrumbSeparator as b}from"./ui/breadcrumbs/components/BreadcrumbSeparator.js";import{AdDropdown as S}from"./ui/adDropdown/index.js";import{Dropdown as v}from"./ui/dropdown/index.js";import{GlobalSearch as k}from"./ui/globalSearch/index.js";import{TextInput as h}from"./ui/textInput/index.js";import{ActionTypes as B}from"./ui/actionTypes/index.js";import{AdaWithTooltip as w}from"./ui/adaWithTooltip/index.js";import{Button as C}from"./ui/button/index.js";import{Copy as T}from"./ui/copy/index.js";import{DateCell as y}from"./ui/dateCell/index.js";import{Header as L}from"./ui/header/index.js";import{Icon as A}from"./ui/icon/index.js";import{LoadingSkeleton as D}from"./ui/loadingSkeleton/index.js";import{Loading as P}from"./ui/loadingSpinner/index.js";import{PulseDot as I}from"./ui/pulseDot/index.js";import{ShareButton as F}from"./ui/shareButton/index.js";import{BookmarkButton as M}from"./ui/bookmarkButton/index.js";import{AddBookmarkModal as W}from"./ui/addBookmarkModal/index.js";import{EditBookmarkModal as N}from"./ui/editBookmarkModal/index.js";import{RemoveBookmarkModal as R}from"./ui/removeBookmarkModal/index.js";import{BookmarksSideButton as G}from"./ui/bookmarksSideButton/index.js";import{Tooltip as O}from"./ui/tooltip/index.js";import{TruncatedText as V}from"./ui/truncatedText/index.js";import{Pagination as z}from"./ui/pagination/index.js";import{PaginationComponent as E}from"./ui/pagination/components/PaginationComponent.js";import{PaginationContent as J}from"./ui/pagination/components/PaginationContent.js";import{PaginationEllipsis as H}from"./ui/pagination/components/PaginationEllipsis.js";import{PaginationItem as U}from"./ui/pagination/components/PaginationItem.js";import{PaginationLink as Y}from"./ui/pagination/components/PaginationLink.js";import{PaginationNext as q}from"./ui/pagination/components/PaginationNext.js";import{PaginationPrevious as K}from"./ui/pagination/components/PaginationPrevious.js";import{EmptyState as Q}from"./ui/emptyState/index.js";import{ProtocolDot as X}from"./ui/protocolDot/index.js";import{SortArrow as Z}from"./ui/sortArrow/index.js";import{TextDisplay as $}from"./ui/textDisplay/index.js";import{TrendingArrow as _}from"./ui/trendingArrow/index.js";import{Switch as oo}from"./ui/switch/index.js";import{Modal as io}from"./ui/modal/index.js";import{ActivityBadge as ro}from"./ui/activityBadge/index.js";import{Badge as to}from"./ui/badge/index.js";import{RangeSlider as so}from"./ui/rangeSlider/index.js";import{ExtraLabelBadge as eo}from"./ui/extraLabelBadge/index.js";import{LabelBadge as mo}from"./ui/labelBadge/index.js";import{ProBadge as no}from"./ui/proBadge/index.js";import{VoterRoleBadge as ao}from"./ui/voterRoleBadge/index.js";import{VoteBadge as po}from"./ui/voteBadge/index.js";import{ScriptBadge as uo}from"./ui/scriptBadge/index.js";import{PurposeBadge as fo}from"./ui/purposeBadge/index.js";import{GovernanceStatusBadge as jo}from"./ui/governanceStatusBadge/index.js";import{AddressTypeInitialsBadge as lo}from"./ui/addressTypeInitialsBadge/index.js";import{InfoCard as co}from"./ui/infoCard/index.js";import{SizeCard as xo}from"./ui/sizeCard/index.js";import{OverviewStatCard as go}from"./ui/overviewStatCard/index.js";import{OverviewCard as bo}from"./ui/overviewCard/index.js";import{Image as So}from"./ui/image/index.js";import{PoolCell as vo}from"./ui/poolCell/index.js";import{SizeCell as ko}from"./ui/sizeCell/index.js";import{StakeCell as ho}from"./ui/stakeCell/index.js";import{TitleSort as Bo}from"./ui/titleSort/index.js";import{AdaHandleBadge as wo}from"./ui/adaHandleBadge/index.js";import{EnvironmentBadge as Co}from"./ui/environmentBadge/index.js";import{ScreenDropdown as To}from"./ui/screenDropdown/index.js";import{Input as yo}from"./ui/tableSearchInput/components/input.js";import{TableSearchInput as Lo}from"./ui/tableSearchInput/index.js";import{FeatureModal as Ao}from"./ui/featureModal/index.js";import{SafetyLinkModal as Do}from"./ui/safetyLinkModal/index.js";import{DelegatorsLabel as Po}from"./ui/delegatorsLabel/index.js";import{Carousel as Io,CarouselContent as Fo,CarouselItem as Mo}from"./ui/carousel/components/carousel.js";import{SingleItemCarousel as Wo}from"./ui/carousel/SingleItemCarousel.js";import{NoResultsFound as No}from"./ui/noResultsFound/index.js";import{SensitiveContentWarning as Ro}from"./ui/sensitiveContentWarning/index.js";import{AdCard as Go}from"./ui/carousel/AdCard.js";import{AdsCarousel as Oo}from"./ui/carousel/AdsCarousel.js";import{FunnelFilter as Vo}from"./ui/funnelFilter/index.js";import{NavigationMenu as zo,NavigationMenuContent as Eo,NavigationMenuIndicator as Jo,NavigationMenuItem as Ho,NavigationMenuLink as Uo,NavigationMenuList as Yo,NavigationMenuTrigger as qo}from"./ui/navigationMenu/index.js";import{Select as Ko,SelectContent as Qo,SelectGroup as Xo,SelectItem as Zo,SelectLabel as $o,SelectScrollDownButton as _o,SelectScrollUpButton as oi,SelectSeparator as ii,SelectTrigger as ri,SelectValue as ti}from"./ui/select/index.js";import{TableSettingsDropdown as si}from"./ui/tableSettingsDropdown/index.js";import{MintedByCard as ei}from"./ui/mintedByCard/index.js";import{MobileTabsSelector as mi}from"./ui/mobileTabsSelector/index.js";import{Tabs as ni}from"./ui/tabs/index.js";import{DisplayVoteModal as ai}from"./ui/displayVoteModal/index.js";import{Accordion as pi,AccordionContent as ui,AccordionItem as di,AccordionTrigger as fi}from"./ui/accordion/accordion.js";import{MobileMenuAccordionItem as ji}from"./ui/mobileMenuAccordionItem/index.js";import{ExportTableModal as li}from"./ui/exportTableModal/index.js";import{JsonDisplay as ci}from"./ui/jsonDisplay/index.js";import{HeaderBannerSubtitle as xi}from"./ui/headerBannerSubtitle/index.js";import{MinMaxRange as gi}from"./ui/minMaxRange/index.js";import{PriceAdaSmallAmount as bi}from"./ui/priceAdaSmallAmount/index.js";import{SpinningLoader as Si}from"./ui/spinningLoader/index.js";import{TimeDateIndicator as vi}from"./ui/timeDateIndicator/index.js";import{TotalSumWithRates as ki}from"./ui/totalSumWithRates/index.js";import{ViewSwitch as hi}from"./ui/viewSwitch/index.js";import{VotingBreakdownTooltip as Bi}from"./ui/votingBreakdownTooltip/index.js";import{Dialog as wi,DialogClose as Ci,DialogContent as Ti,DialogDescription as yi,DialogFooter as Li,DialogHeader as Ai,DialogOverlay as Di,DialogPortal as Pi,DialogTitle as Ii,DialogTrigger as Fi}from"./ui/dialog/index.js";import{Command as Mi,CommandDialog as Wi,CommandEmpty as Ni,CommandGroup as Ri,CommandInput as Gi,CommandItem as Oi,CommandList as Vi,CommandSeparator as zi,CommandShortcut as Ei}from"./ui/command/index.js";import{Popover as Ji,PopoverAnchor as Hi,PopoverContent as Ui,PopoverTrigger as Yi}from"./ui/popover/index.js";import{AttributeDropdown as qi}from"./ui/attributeDropdown/index.js";import{Table as Ki,TableBody as Qi,TableCaption as Xi,TableCell as Zi,TableFooter as $i,TableHead as _i,TableHeader as or,TableRow as ir}from"./ui/globalTable/components/index.js";import{GlobalTable as rr}from"./ui/globalTable/index.js";import{AdaPriceIndicator as tr}from"./ui/adaPriceIndicator/index.js";import{MainLogo as sr}from"./ui/mainLogo/index.js";import{ConstLabelBadge as er}from"./ui/constLabelBadge/index.js";import{EpochCell as mr}from"./ui/epochCell/index.js";import{BlockCell as nr}from"./ui/blockCell/index.js";import{getAddressTypeInitials as ar}from"./utils/address/getAddressTypeInitials.js";import{parseShelleyAddress as pr}from"./utils/address/parseShelleyAddress.js";import{encodeAssetName as ur}from"./utils/asset/encodeAssetName.js";import{getAssetFingerprint as dr}from"./utils/asset/getAssetFingerprint.js";import{cn as fr}from"./utils/cn.js";import{convertJSONToCSV as jr}from"./utils/convertJSONToCSV.js";import{findLabel as lr}from"./utils/findLabel.js";import{convertUtcToLocal as cr,formatDate as xr,formatNumber as gr,formatNumberWithSuffix as br,formatSecondsToTime as Sr,formatString as vr,formatTimeAgo as kr,formatTimeIn as hr,toUtcDate as Br}from"./utils/format.js";import{formatCurrency as wr}from"./utils/formatCurrency.js";import{generateUrlWithParams as Cr}from"./utils/generateUrlWithParams.js";import{getBrowserTheme as Tr}from"./utils/getBrowserTheme.js";import{getColumnsSortOrder as yr}from"./utils/getColumnsSortOrder.js";import{getExportJSON as Lr}from"./utils/getExportJSON.js";import{getNodeText as Ar}from"./utils/getNodeText.js";import{getGovActionStatus as Dr}from"./utils/gov/getGovActionStatus.js";import{isMobileDevice as Pr}from"./utils/isMobileDevice.js";import{lovelaceToAda as Ir}from"./utils/lovelaceToAda.js";import{paginateArray as Fr}from"./utils/paginateArray.js";import{getCategories as Mr}from"./utils/search/getCategories.js";import{getTruncatedTitle as Wr,hasImageInChildren as Nr,truncateTitle as Rr}from"./utils/truncatedText.js";import{formatBitcoinWithSub as Gr,formatSmallValueWithSub as Or}from"./utils/formatSmallValueWithSub.js";import{GlobalSearchProvider as Vr,useGlobalSearch as zr}from"./providers/GlobalSearchContext.js";import{useDebounce as Er}from"./hooks/useDebounce.js";import{useWindowDimensions as Jr}from"./hooks/useWindowDimensions.js";import{useCurrencyStore as Hr}from"./stores/currencyStore.js";import{useDropdownState as Ur}from"./stores/dropdownState.js";import{useInfiniteScrollingStore as Yr}from"./stores/infiniteScrollingStore.js";import{useLocaleStore as qr}from"./stores/localeStore.js";import{useThemeStore as Kr}from"./stores/themeStore.js";import{useViewStore as Qr}from"./stores/viewStore.js";import{handleCreateStore as Xr}from"./lib/handleCreateStore.js";import{handlePersistStore as Zr}from"./lib/handlePersiststore.js";import{Facebook as $r}from"./resources/Facebook.js";import{Cardano as _r}from"./resources/icons/Cardano.js";import{Twitter as ot}from"./resources/Twitter.js";import{default as it}from"./resources/images/icons/discord.svg.js";import{default as rt}from"./resources/images/icons/github.svg.js";import{default as tt}from"./resources/images/icons/telegram.svg.js";import{default as st}from"./resources/images/icons/twitter.svg.js";import{default as et}from"./resources/images/icons/facebook.svg.js";import{default as mt}from"./resources/images/icons/twitch.svg.js";import{default as nt}from"./resources/images/icons/youtube.svg.js";import{default as at}from"./resources/images/fallbacks/assetFallback.svg.js";import{default as pt}from"./resources/images/fallbacks/drepFallback.svg.js";import{default as ut}from"./resources/images/fallbacks/poolFallback.svg.js";import{default as dt}from"./resources/images/dollar.svg.js";export{t as ADATokenName,pi as Accordion,ui as AccordionContent,di as AccordionItem,fi as AccordionTrigger,B as ActionTypes,ro as ActivityBadge,Go as AdCard,S as AdDropdown,wo as AdaHandleBadge,tr as AdaPriceIndicator,w as AdaWithTooltip,W as AddBookmarkModal,lo as AddressTypeInitialsBadge,Oo as AdsCarousel,at as AssetFallback,qi as AttributeDropdown,to as Badge,nr as BlockCell,M as BookmarkButton,G as BookmarksSideButton,j as Breadcrumb,l as BreadcrumbItem,c as BreadcrumbList,x as BreadcrumbPage,g as BreadcrumbRaw,b as BreadcrumbSeparator,C as Button,_r as Cardano,Io as Carousel,Fo as CarouselContent,Mo as CarouselItem,Mi as Command,Wi as CommandDialog,Ni as CommandEmpty,Ri as CommandGroup,Gi as CommandInput,Oi as CommandItem,Vi as CommandList,zi as CommandSeparator,Ei as CommandShortcut,er as ConstLabelBadge,T as Copy,y as DateCell,Po as DelegatorsLabel,wi as Dialog,Ci as DialogClose,Ti as DialogContent,yi as DialogDescription,Li as DialogFooter,Ai as DialogHeader,Di as DialogOverlay,Pi as DialogPortal,Ii as DialogTitle,Fi as DialogTrigger,it as DiscordLogo,ai as DisplayVoteModal,dt as DollarIcon,pt as DrepFallback,v as Dropdown,N as EditBookmarkModal,Q as EmptyState,Co as EnvironmentBadge,mr as EpochCell,li as ExportTableModal,eo as ExtraLabelBadge,$r as Facebook,et as FacebookLogo,Ao as FeatureModal,Vo as FunnelFilter,rt as GithubLogo,k as GlobalSearch,Vr as GlobalSearchProvider,rr as GlobalTable,jo as GovernanceStatusBadge,L as Header,xi as HeaderBannerSubtitle,A as Icon,So as Image,co as InfoCard,yo as Input,ci as JsonDisplay,mo as LabelBadge,P as Loading,D as LoadingSkeleton,sr as MainLogo,gi as MinMaxRange,ei as MintedByCard,ji as MobileMenuAccordionItem,mi as MobileTabsSelector,io as Modal,zo as NavigationMenu,Eo as NavigationMenuContent,Jo as NavigationMenuIndicator,Ho as NavigationMenuItem,Uo as NavigationMenuLink,Yo as NavigationMenuList,qo as NavigationMenuTrigger,No as NoResultsFound,bo as OverviewCard,go as OverviewStatCard,z as Pagination,E as PaginationComponent,J as PaginationContent,H as PaginationEllipsis,U as PaginationItem,Y as PaginationLink,q as PaginationNext,K as PaginationPrevious,vo as PoolCell,ut as PoolFallback,Ji as Popover,Hi as PopoverAnchor,Ui as PopoverContent,Yi as PopoverTrigger,bi as PriceAdaSmallAmount,no as ProBadge,X as ProtocolDot,I as PulseDot,fo as PurposeBadge,so as RangeSlider,R as RemoveBookmarkModal,Do as SafetyLinkModal,To as ScreenDropdown,uo as ScriptBadge,Ko as Select,Qo as SelectContent,Xo as SelectGroup,Zo as SelectItem,$o as SelectLabel,_o as SelectScrollDownButton,oi as SelectScrollUpButton,ii as SelectSeparator,ri as SelectTrigger,ti as SelectValue,Ro as SensitiveContentWarning,F as ShareButton,Wo as SingleItemCarousel,xo as SizeCard,ko as SizeCell,Z as SortArrow,Si as SpinningLoader,ho as StakeCell,oo as Switch,Ki as Table,Qi as TableBody,Xi as TableCaption,Zi as TableCell,$i as TableFooter,_i as TableHead,or as TableHeader,ir as TableRow,Lo as TableSearchInput,si as TableSettingsDropdown,ni as Tabs,tt as TelegramLogo,$ as TextDisplay,h as TextInput,vi as TimeDateIndicator,Bo as TitleSort,O as Tooltip,ki as TotalSumWithRates,_ as TrendingArrow,V as TruncatedText,mt as TwitchLogo,ot as Twitter,st as TwitterLogo,f as VOTE_OPTIONS,hi as ViewSwitch,po as VoteBadge,ao as VoterRoleBadge,Bi as VotingBreakdownTooltip,nt as YoutubeLogo,o as breakpoints,i as buttonVariants,fr as cn,r as colors,jr as convertJSONToCSV,cr as convertUtcToLocal,s as currencies,e as currencyPosition,m as currencySigns,n as currencySpace,ur as encodeAssetName,lr as findLabel,Gr as formatBitcoinWithSub,wr as formatCurrency,xr as formatDate,gr as formatNumber,br as formatNumberWithSuffix,Sr as formatSecondsToTime,Or as formatSmallValueWithSub,vr as formatString,kr as formatTimeAgo,hr as formatTimeIn,Cr as generateUrlWithParams,ar as getAddressTypeInitials,dr as getAssetFingerprint,Tr as getBrowserTheme,Mr as getCategories,yr as getColumnsSortOrder,Lr as getExportJSON,Dr as getGovActionStatus,Ar as getNodeText,Wr as getTruncatedTitle,Xr as handleCreateStore,Zr as handlePersistStore,Nr as hasImageInChildren,Pr as isMobileDevice,Ir as lovelaceToAda,Fr as paginateArray,pr as parseShelleyAddress,a as radiuses,p as shadows,u as spacing,Br as toUtcDate,Rr as truncateTitle,d as typography,Hr as useCurrencyStore,Er as useDebounce,Ur as useDropdownState,zr as useGlobalSearch,Yr as useInfiniteScrollingStore,qr as useLocaleStore,Kr as useThemeStore,Qr as useViewStore,Jr as useWindowDimensions};
1
+ import{breakpoints as o}from"./constants/breakpoints.js";import{buttonVariants as i}from"./constants/button.js";import{colors as r}from"./constants/colors.js";import{ADATokenName as t,currencies as s,currencyPosition as e,currencySigns as m,currencySpace as n}from"./constants/currencies.js";import{radiuses as a}from"./constants/radiuses.js";import{shadows as p}from"./constants/shadows.js";import{spacing as u}from"./constants/spacing.js";import{typography as d}from"./constants/typography.js";import{VOTE_OPTIONS as f}from"./constants/votes.js";import{Breadcrumb as j}from"./ui/breadcrumbs/index.js";import{BreadcrumbItem as l}from"./ui/breadcrumbs/components/BreadcrumbItem.js";import{BreadcrumbList as c}from"./ui/breadcrumbs/components/BreadcrumbList.js";import{BreadcrumbPage as x}from"./ui/breadcrumbs/components/BreadcrumbPage.js";import{BreadcrumbRaw as g}from"./ui/breadcrumbs/components/BreadcrumbRaw.js";import{BreadcrumbSeparator as b}from"./ui/breadcrumbs/components/BreadcrumbSeparator.js";import{AdDropdown as S}from"./ui/adDropdown/index.js";import{Dropdown as v}from"./ui/dropdown/index.js";import{GlobalSearch as k}from"./ui/globalSearch/index.js";import{TextInput as h}from"./ui/textInput/index.js";import{ActionTypes as B}from"./ui/actionTypes/index.js";import{AdaWithTooltip as w}from"./ui/adaWithTooltip/index.js";import{Button as C}from"./ui/button/index.js";import{Copy as T}from"./ui/copy/index.js";import{DateCell as y}from"./ui/dateCell/index.js";import{Header as A}from"./ui/header/index.js";import{Icon as L}from"./ui/icon/index.js";import{LoadingSkeleton as D}from"./ui/loadingSkeleton/index.js";import{Loading as P}from"./ui/loadingSpinner/index.js";import{PulseDot as I}from"./ui/pulseDot/index.js";import{ShareButton as F}from"./ui/shareButton/index.js";import{BookmarkButton as M}from"./ui/bookmarkButton/index.js";import{AddBookmarkModal as W}from"./ui/addBookmarkModal/index.js";import{EditBookmarkModal as N}from"./ui/editBookmarkModal/index.js";import{RemoveBookmarkModal as R}from"./ui/removeBookmarkModal/index.js";import{BookmarksSideButton as G}from"./ui/bookmarksSideButton/index.js";import{Tooltip as O}from"./ui/tooltip/index.js";import{TruncatedText as V}from"./ui/truncatedText/index.js";import{Pagination as z}from"./ui/pagination/index.js";import{PaginationComponent as E}from"./ui/pagination/components/PaginationComponent.js";import{PaginationContent as J}from"./ui/pagination/components/PaginationContent.js";import{PaginationEllipsis as H}from"./ui/pagination/components/PaginationEllipsis.js";import{PaginationItem as U}from"./ui/pagination/components/PaginationItem.js";import{PaginationLink as Y}from"./ui/pagination/components/PaginationLink.js";import{PaginationNext as q}from"./ui/pagination/components/PaginationNext.js";import{PaginationPrevious as K}from"./ui/pagination/components/PaginationPrevious.js";import{EmptyState as Q}from"./ui/emptyState/index.js";import{ProtocolDot as X}from"./ui/protocolDot/index.js";import{SortArrow as Z}from"./ui/sortArrow/index.js";import{TextDisplay as $}from"./ui/textDisplay/index.js";import{TrendingArrow as _}from"./ui/trendingArrow/index.js";import{Switch as oo}from"./ui/switch/index.js";import{Modal as io}from"./ui/modal/index.js";import{ActivityBadge as ro}from"./ui/activityBadge/index.js";import{Badge as to}from"./ui/badge/index.js";import{RangeSlider as so}from"./ui/rangeSlider/index.js";import{ExtraLabelBadge as eo}from"./ui/extraLabelBadge/index.js";import{LabelBadge as mo}from"./ui/labelBadge/index.js";import{ProBadge as no}from"./ui/proBadge/index.js";import{VoterRoleBadge as ao}from"./ui/voterRoleBadge/index.js";import{VoteBadge as po}from"./ui/voteBadge/index.js";import{ScriptBadge as uo}from"./ui/scriptBadge/index.js";import{PurposeBadge as fo}from"./ui/purposeBadge/index.js";import{GovernanceStatusBadge as jo}from"./ui/governanceStatusBadge/index.js";import{AddressTypeInitialsBadge as lo}from"./ui/addressTypeInitialsBadge/index.js";import{InfoCard as co}from"./ui/infoCard/index.js";import{SizeCard as xo}from"./ui/sizeCard/index.js";import{OverviewStatCard as go}from"./ui/overviewStatCard/index.js";import{OverviewCard as bo}from"./ui/overviewCard/index.js";import{Image as So}from"./ui/image/index.js";import{PoolCell as vo}from"./ui/poolCell/index.js";import{SizeCell as ko}from"./ui/sizeCell/index.js";import{StakeCell as ho}from"./ui/stakeCell/index.js";import{TitleSort as Bo}from"./ui/titleSort/index.js";import{AdaHandleBadge as wo}from"./ui/adaHandleBadge/index.js";import{EnvironmentBadge as Co}from"./ui/environmentBadge/index.js";import{ScreenDropdown as To}from"./ui/screenDropdown/index.js";import{Input as yo}from"./ui/tableSearchInput/components/input.js";import{TableSearchInput as Ao}from"./ui/tableSearchInput/index.js";import{FeatureModal as Lo}from"./ui/featureModal/index.js";import{SafetyLinkModal as Do}from"./ui/safetyLinkModal/index.js";import{DelegatorsLabel as Po}from"./ui/delegatorsLabel/index.js";import{Carousel as Io,CarouselContent as Fo,CarouselItem as Mo}from"./ui/carousel/components/carousel.js";import{SingleItemCarousel as Wo}from"./ui/carousel/SingleItemCarousel.js";import{NoResultsFound as No}from"./ui/noResultsFound/index.js";import{SensitiveContentWarning as Ro}from"./ui/sensitiveContentWarning/index.js";import{AdCard as Go}from"./ui/carousel/AdCard.js";import{AdsCarousel as Oo}from"./ui/carousel/AdsCarousel.js";import{FunnelFilter as Vo}from"./ui/funnelFilter/index.js";import{NavigationMenu as zo,NavigationMenuContent as Eo,NavigationMenuIndicator as Jo,NavigationMenuItem as Ho,NavigationMenuLink as Uo,NavigationMenuList as Yo,NavigationMenuTrigger as qo}from"./ui/navigationMenu/index.js";import{Select as Ko,SelectContent as Qo,SelectGroup as Xo,SelectItem as Zo,SelectLabel as $o,SelectScrollDownButton as _o,SelectScrollUpButton as oi,SelectSeparator as ii,SelectTrigger as ri,SelectValue as ti}from"./ui/select/index.js";import{TableSettingsDropdown as si}from"./ui/tableSettingsDropdown/index.js";import{MintedByCard as ei}from"./ui/mintedByCard/index.js";import{MobileTabsSelector as mi}from"./ui/mobileTabsSelector/index.js";import{Tabs as ni}from"./ui/tabs/index.js";import{DisplayVoteModal as ai}from"./ui/displayVoteModal/index.js";import{Accordion as pi,AccordionContent as ui,AccordionItem as di,AccordionTrigger as fi}from"./ui/accordion/accordion.js";import{MobileMenuAccordionItem as ji}from"./ui/mobileMenuAccordionItem/index.js";import{ExportTableModal as li}from"./ui/exportTableModal/index.js";import{JsonDisplay as ci}from"./ui/jsonDisplay/index.js";import{HeaderBannerSubtitle as xi}from"./ui/headerBannerSubtitle/index.js";import{MinMaxRange as gi}from"./ui/minMaxRange/index.js";import{PriceAdaSmallAmount as bi}from"./ui/priceAdaSmallAmount/index.js";import{SpinningLoader as Si}from"./ui/spinningLoader/index.js";import{TimeDateIndicator as vi}from"./ui/timeDateIndicator/index.js";import{TotalSumWithRates as ki}from"./ui/totalSumWithRates/index.js";import{ViewSwitch as hi}from"./ui/viewSwitch/index.js";import{VotingBreakdownTooltip as Bi}from"./ui/votingBreakdownTooltip/index.js";import{Dialog as wi,DialogClose as Ci,DialogContent as Ti,DialogDescription as yi,DialogFooter as Ai,DialogHeader as Li,DialogOverlay as Di,DialogPortal as Pi,DialogTitle as Ii,DialogTrigger as Fi}from"./ui/dialog/index.js";import{Command as Mi,CommandDialog as Wi,CommandEmpty as Ni,CommandGroup as Ri,CommandInput as Gi,CommandItem as Oi,CommandList as Vi,CommandSeparator as zi,CommandShortcut as Ei}from"./ui/command/index.js";import{Popover as Ji,PopoverAnchor as Hi,PopoverContent as Ui,PopoverTrigger as Yi}from"./ui/popover/index.js";import{AttributeDropdown as qi}from"./ui/attributeDropdown/index.js";import{Table as Ki,TableBody as Qi,TableCaption as Xi,TableCell as Zi,TableFooter as $i,TableHead as _i,TableHeader as or,TableRow as ir}from"./ui/globalTable/components/index.js";import{GlobalTable as rr}from"./ui/globalTable/index.js";import{AdaPriceIndicator as tr}from"./ui/adaPriceIndicator/index.js";import{MainLogo as sr}from"./ui/mainLogo/index.js";import{ConstLabelBadge as er}from"./ui/constLabelBadge/index.js";import{EpochCell as mr}from"./ui/epochCell/index.js";import{BlockCell as nr}from"./ui/blockCell/index.js";import{ButtonAd as ar}from"./ui/buttonAd/index.js";import{TextAd as pr}from"./ui/textAd/index.js";import{getAddressTypeInitials as ur}from"./utils/address/getAddressTypeInitials.js";import{parseShelleyAddress as dr}from"./utils/address/parseShelleyAddress.js";import{encodeAssetName as fr}from"./utils/asset/encodeAssetName.js";import{getAssetFingerprint as jr}from"./utils/asset/getAssetFingerprint.js";import{cn as lr}from"./utils/cn.js";import{convertJSONToCSV as cr}from"./utils/convertJSONToCSV.js";import{findLabel as xr}from"./utils/findLabel.js";import{convertUtcToLocal as gr,formatDate as br,formatNumber as Sr,formatNumberWithSuffix as vr,formatSecondsToTime as kr,formatString as hr,formatTimeAgo as Br,formatTimeIn as wr,toUtcDate as Cr}from"./utils/format.js";import{formatCurrency as Tr}from"./utils/formatCurrency.js";import{generateUrlWithParams as yr}from"./utils/generateUrlWithParams.js";import{getBrowserTheme as Ar}from"./utils/getBrowserTheme.js";import{getColumnsSortOrder as Lr}from"./utils/getColumnsSortOrder.js";import{getExportJSON as Dr}from"./utils/getExportJSON.js";import{getNodeText as Pr}from"./utils/getNodeText.js";import{getGovActionStatus as Ir}from"./utils/gov/getGovActionStatus.js";import{isMobileDevice as Fr}from"./utils/isMobileDevice.js";import{lovelaceToAda as Mr}from"./utils/lovelaceToAda.js";import{paginateArray as Wr}from"./utils/paginateArray.js";import{getCategories as Nr}from"./utils/search/getCategories.js";import{getTruncatedTitle as Rr,hasImageInChildren as Gr,truncateTitle as Or}from"./utils/truncatedText.js";import{formatBitcoinWithSub as Vr,formatSmallValueWithSub as zr}from"./utils/formatSmallValueWithSub.js";import{GlobalSearchProvider as Er,useGlobalSearch as Jr}from"./providers/GlobalSearchContext.js";import{useDebounce as Hr}from"./hooks/useDebounce.js";import{useWindowDimensions as Ur}from"./hooks/useWindowDimensions.js";import{useCurrencyStore as Yr}from"./stores/currencyStore.js";import{useDropdownState as qr}from"./stores/dropdownState.js";import{useInfiniteScrollingStore as Kr}from"./stores/infiniteScrollingStore.js";import{useLocaleStore as Qr}from"./stores/localeStore.js";import{useThemeStore as Xr}from"./stores/themeStore.js";import{useViewStore as Zr}from"./stores/viewStore.js";import{handleCreateStore as $r}from"./lib/handleCreateStore.js";import{handlePersistStore as _r}from"./lib/handlePersiststore.js";import{Facebook as ot}from"./resources/Facebook.js";import{Cardano as it}from"./resources/icons/Cardano.js";import{Twitter as rt}from"./resources/Twitter.js";import{default as tt}from"./resources/images/icons/discord.svg.js";import{default as st}from"./resources/images/icons/github.svg.js";import{default as et}from"./resources/images/icons/telegram.svg.js";import{default as mt}from"./resources/images/icons/twitter.svg.js";import{default as nt}from"./resources/images/icons/facebook.svg.js";import{default as at}from"./resources/images/icons/twitch.svg.js";import{default as pt}from"./resources/images/icons/youtube.svg.js";import{default as ut}from"./resources/images/fallbacks/assetFallback.svg.js";import{default as dt}from"./resources/images/fallbacks/drepFallback.svg.js";import{default as ft}from"./resources/images/fallbacks/poolFallback.svg.js";import{default as jt}from"./resources/images/dollar.svg.js";export{t as ADATokenName,pi as Accordion,ui as AccordionContent,di as AccordionItem,fi as AccordionTrigger,B as ActionTypes,ro as ActivityBadge,Go as AdCard,S as AdDropdown,wo as AdaHandleBadge,tr as AdaPriceIndicator,w as AdaWithTooltip,W as AddBookmarkModal,lo as AddressTypeInitialsBadge,Oo as AdsCarousel,ut as AssetFallback,qi as AttributeDropdown,to as Badge,nr as BlockCell,M as BookmarkButton,G as BookmarksSideButton,j as Breadcrumb,l as BreadcrumbItem,c as BreadcrumbList,x as BreadcrumbPage,g as BreadcrumbRaw,b as BreadcrumbSeparator,C as Button,ar as ButtonAd,it as Cardano,Io as Carousel,Fo as CarouselContent,Mo as CarouselItem,Mi as Command,Wi as CommandDialog,Ni as CommandEmpty,Ri as CommandGroup,Gi as CommandInput,Oi as CommandItem,Vi as CommandList,zi as CommandSeparator,Ei as CommandShortcut,er as ConstLabelBadge,T as Copy,y as DateCell,Po as DelegatorsLabel,wi as Dialog,Ci as DialogClose,Ti as DialogContent,yi as DialogDescription,Ai as DialogFooter,Li as DialogHeader,Di as DialogOverlay,Pi as DialogPortal,Ii as DialogTitle,Fi as DialogTrigger,tt as DiscordLogo,ai as DisplayVoteModal,jt as DollarIcon,dt as DrepFallback,v as Dropdown,N as EditBookmarkModal,Q as EmptyState,Co as EnvironmentBadge,mr as EpochCell,li as ExportTableModal,eo as ExtraLabelBadge,ot as Facebook,nt as FacebookLogo,Lo as FeatureModal,Vo as FunnelFilter,st as GithubLogo,k as GlobalSearch,Er as GlobalSearchProvider,rr as GlobalTable,jo as GovernanceStatusBadge,A as Header,xi as HeaderBannerSubtitle,L as Icon,So as Image,co as InfoCard,yo as Input,ci as JsonDisplay,mo as LabelBadge,P as Loading,D as LoadingSkeleton,sr as MainLogo,gi as MinMaxRange,ei as MintedByCard,ji as MobileMenuAccordionItem,mi as MobileTabsSelector,io as Modal,zo as NavigationMenu,Eo as NavigationMenuContent,Jo as NavigationMenuIndicator,Ho as NavigationMenuItem,Uo as NavigationMenuLink,Yo as NavigationMenuList,qo as NavigationMenuTrigger,No as NoResultsFound,bo as OverviewCard,go as OverviewStatCard,z as Pagination,E as PaginationComponent,J as PaginationContent,H as PaginationEllipsis,U as PaginationItem,Y as PaginationLink,q as PaginationNext,K as PaginationPrevious,vo as PoolCell,ft as PoolFallback,Ji as Popover,Hi as PopoverAnchor,Ui as PopoverContent,Yi as PopoverTrigger,bi as PriceAdaSmallAmount,no as ProBadge,X as ProtocolDot,I as PulseDot,fo as PurposeBadge,so as RangeSlider,R as RemoveBookmarkModal,Do as SafetyLinkModal,To as ScreenDropdown,uo as ScriptBadge,Ko as Select,Qo as SelectContent,Xo as SelectGroup,Zo as SelectItem,$o as SelectLabel,_o as SelectScrollDownButton,oi as SelectScrollUpButton,ii as SelectSeparator,ri as SelectTrigger,ti as SelectValue,Ro as SensitiveContentWarning,F as ShareButton,Wo as SingleItemCarousel,xo as SizeCard,ko as SizeCell,Z as SortArrow,Si as SpinningLoader,ho as StakeCell,oo as Switch,Ki as Table,Qi as TableBody,Xi as TableCaption,Zi as TableCell,$i as TableFooter,_i as TableHead,or as TableHeader,ir as TableRow,Ao as TableSearchInput,si as TableSettingsDropdown,ni as Tabs,et as TelegramLogo,pr as TextAd,$ as TextDisplay,h as TextInput,vi as TimeDateIndicator,Bo as TitleSort,O as Tooltip,ki as TotalSumWithRates,_ as TrendingArrow,V as TruncatedText,at as TwitchLogo,rt as Twitter,mt as TwitterLogo,f as VOTE_OPTIONS,hi as ViewSwitch,po as VoteBadge,ao as VoterRoleBadge,Bi as VotingBreakdownTooltip,pt as YoutubeLogo,o as breakpoints,i as buttonVariants,lr as cn,r as colors,cr as convertJSONToCSV,gr as convertUtcToLocal,s as currencies,e as currencyPosition,m as currencySigns,n as currencySpace,fr as encodeAssetName,xr as findLabel,Vr as formatBitcoinWithSub,Tr as formatCurrency,br as formatDate,Sr as formatNumber,vr as formatNumberWithSuffix,kr as formatSecondsToTime,zr as formatSmallValueWithSub,hr as formatString,Br as formatTimeAgo,wr as formatTimeIn,yr as generateUrlWithParams,ur as getAddressTypeInitials,jr as getAssetFingerprint,Ar as getBrowserTheme,Nr as getCategories,Lr as getColumnsSortOrder,Dr as getExportJSON,Ir as getGovActionStatus,Pr as getNodeText,Rr as getTruncatedTitle,$r as handleCreateStore,_r as handlePersistStore,Gr as hasImageInChildren,Fr as isMobileDevice,Mr as lovelaceToAda,Wr as paginateArray,dr as parseShelleyAddress,a as radiuses,p as shadows,u as spacing,Cr as toUtcDate,Or as truncateTitle,d as typography,Yr as useCurrencyStore,Hr as useDebounce,qr as useDropdownState,Jr as useGlobalSearch,Kr as useInfiniteScrollingStore,Qr as useLocaleStore,Xr as useThemeStore,Zr as useViewStore,Ur as useWindowDimensions};
package/dist/index.js.gz CHANGED
Binary file
@@ -17,11 +17,12 @@ export type MiscBasicResponse = {
17
17
  data: {
18
18
  content: string;
19
19
  icon: keyof typeof dynamicIconImports;
20
+ img?: string;
20
21
  section: string;
21
22
  title: string;
22
23
  type: string;
23
24
  link: string;
24
- text: string;
25
+ text: string | null;
25
26
  };
26
27
  type: string;
27
28
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"miscTypes.d.ts","sourceRoot":"","sources":["../../src/types/miscTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;A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* Props for the ButtonAd component
5
+ */
6
+ export interface ButtonAdProps {
7
+ /**
8
+ * Array of button-type ads from the MiscBasic API response.
9
+ * Each ad contains data with icon, link, text, and title.
10
+ * Ads are grouped by `data.title` (category). Each pill represents a category,
11
+ * and the dropdown shows all ads in that category.
12
+ */
13
+ ads: MiscBasicResponse["data"]["ads"];
14
+ /**
15
+ * Maximum number of category pills to display.
16
+ * If more categories exist, a random subset is selected.
17
+ * @default 3
18
+ */
19
+ maxCount?: number;
20
+ /**
21
+ * Label displayed before the ad title in the dropdown.
22
+ * @default "Featured:"
23
+ */
24
+ featuredLabel?: string;
25
+ }
26
+ /**
27
+ * ButtonAd displays a row of pill-shaped category buttons with dropdown content.
28
+ *
29
+ * Ads are grouped by `data.title` (category name). Each pill represents one category.
30
+ * Clicking a pill toggles a dropdown showing up to `maxDropdownItems` ads from that category.
31
+ * If more than `maxCount` categories exist, a stable random subset of categories is selected.
32
+ *
33
+ * @component
34
+ * @param {ButtonAdProps} props - Component props
35
+ * @returns {JSX.Element} Row of category pill buttons with dropdown
36
+ */
37
+ export declare const ButtonAd: ({ ads, maxCount, featuredLabel, }: ButtonAdProps) => import("react/jsx-runtime").JSX.Element;
38
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/buttonAd/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAc3D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,GAAG,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC;IAEtC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,GAAI,mCAItB,aAAa,4CA2Jf,CAAC"}
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import r,{Element as n}from"html-react-parser";import{ChevronDown as a}from"lucide-react";import{useState as o,useRef as l,useMemo as s,useCallback as i,useEffect as c,useLayoutEffect as d}from"react";const m=({ads:m,maxCount:u=3,featuredLabel:x="Featured:"})=>{const[f,h]=o(null),p=l(null),g=l(null),b=s(()=>{const e=new Map;for(const t of m){const r=t.data.title||"",n=e.get(r);n?n.push(t):e.set(r,[t])}return e},[m]),w=s(()=>{let e=Array.from(b.keys());return e.length>u&&(e=[...e].sort(()=>Math.random()-.5).slice(0,u)),e.sort((e,t)=>e.length-t.length)},[b,u]),v=s(()=>{if(!f)return null;const e=b.get(f)||[];return 0===e.length?null:1===e.length?e[0]:e[Math.floor(Math.random()*e.length)]},[f,b]),N=i(e=>{h(t=>t===e?null:e)},[]);return c(()=>{const e=e=>{p.current&&!p.current.contains(e.target)&&h(null)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),d(()=>{if(!f||!g.current)return;const e=g.current,t=e.getBoundingClientRect();if(0===t.width||0===t.height)return;const r=window.innerWidth;if(t.right>r-8){const n=t.right-(r-8);e.style.left=-n+"px"}t.left<8&&(e.style.left=8-t.left+"px")},[f]),e("div",{ref:p,className:"mb-1.5 flex w-full flex-wrap gap-1",children:w.map(o=>{const l=(b.get(o)||[])[0],s=f===o;return t("div",{className:"relative flex-1",children:[t("button",{onClick:()=>N(o),title:o,className:"flex h-[36px] w-full cursor-pointer items-center justify-center gap-1 whitespace-nowrap rounded-s border border-border bg-cardBg px-1 transition-colors hover:bg-background",children:[(null==l?void 0:l.data.icon)&&e("img",{src:l.data.icon+"",alt:"",width:16,height:16,className:"rounded-max"}),e("span",{className:"text-text-xs text-text",children:o}),e(a,{size:14,className:"text-grayText transition-transform "+(s?"rotate-180":"")})]}),s&&v&&t("a",{ref:g,href:v.data.link,target:"_blank",rel:"noreferrer noopener nofollow",className:"absolute left-0 top-full z-10 mt-1 flex min-h-[60px] w-[300px] max-w-[calc(100vw-16px)] cursor-pointer flex-col gap-0.5 rounded-l border border-border bg-cardBg px-2 py-1.5 shadow-md transition-colors hover:bg-background hover:text-text",children:[t("div",{className:"flex items-center gap-1",children:[v.data.icon&&e("img",{src:v.data.icon+"",alt:"",width:20,height:20,className:"rounded-max"}),e("span",{className:"text-text-sm font-semibold text-text",children:x}),e("span",{className:"text-text-sm font-semibold text-primary",children:v.data.title})]}),e("p",{className:"overflow-hidden text-ellipsis text-text-sm text-grayTextPrimary",children:r(v.data.content||v.data.text||"",{replace:e=>{e instanceof n&&"a"===e.name&&(e.attribs.target="_blank",e.attribs.rel="noopener noreferrer nofollow")}})})]})]},o)})})};export{m as ButtonAd};
Binary file
@@ -24,7 +24,7 @@ type AdCardProps = {
24
24
  * @example
25
25
  * generateImageUrl("pool1abc...", "ico", "pool") // Returns pool icon URL
26
26
  */
27
- generateImageUrl: (ident: string, size: "ico" | "sm" | "md" | "lg", type?: "nft" | "pool" | "drep" | "token" | "cc") => string;
27
+ generateImageUrl?: (ident: string, size: "ico" | "sm" | "md" | "lg", type?: "nft" | "pool" | "drep" | "token" | "cc") => string;
28
28
  };
29
29
  /**
30
30
  * AdCard displays promotional content for pools or assets.
@@ -1 +1 @@
1
- {"version":3,"file":"AdCard.d.ts","sourceRoot":"","sources":["../../../src/ui/carousel/AdCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAG3C;;GAEG;AACH,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IACvD;;;;;;;;;;OAUG;IACH,gBAAgB,EAAE,CAChB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,EAChC,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,KAC5C,MAAM,CAAC;CACb,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CA2DlC,CAAC"}
1
+ {"version":3,"file":"AdCard.d.ts","sourceRoot":"","sources":["../../../src/ui/carousel/AdCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE3D,OAAO,KAAK,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAG3C;;GAEG;AACH,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IACvD;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,EAAE,CACjB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,EAChC,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,KAC5C,MAAM,CAAC;CACb,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CA4ElC,CAAC"}
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{alphabetWithNumbers as l}from"../../constants/alphabet.js";import r from"html-react-parser";import{Image as o}from"../image/index.js";const i=({data:i,className:a,generateImageUrl:s})=>{let d=null;const n=i.link.split("/").pop()+"",p=n.split("")+"",c=i.title.split("")+"";return"pool"===i.type?d=e(o,{src:s(n,"ico","pool"),type:"pool",height:25,width:25,className:"rounded-max"}):"asset"===i.type&&i.text&&(d=e(o,{src:s(n,"ico","token"),type:"asset",height:25,width:25,className:"rounded-max",fallbackletters:[...c,...p].filter(e=>l.includes(e.toLowerCase())).slice(0,3).join("")})),t("a",{href:null==i?void 0:i.link,target:"_blank",className:"z-2 relative flex h-[110px] w-full flex-col gap-1/2 rounded-l border border-border bg-cardBg px-2 py-1.5 hover:text-text "+(a||"shadow-md"),children:[e("p",{className:"w-fit rounded-l border border-border px-1 text-text-xs font-medium",children:(null==i?void 0:i.type.slice(0,1).toUpperCase())+(null==i?void 0:i.type.slice(1))}),t("div",{className:"flex items-center gap-1",children:[d,e("p",{className:`block max-h-10 min-h-5 w-full overflow-hidden text-ellipsis whitespace-nowrap break-all ${i.text?"text-sm":"text-text-md"} font-bold hover:text-text`,children:null==i?void 0:i.title})]}),e("p",{className:"block w-full overflow-hidden text-ellipsis text-text-xs leading-tight text-grayTextPrimary",children:r(null==i?void 0:i.text)})]})};export{i as AdCard};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{alphabetWithNumbers as l}from"../../constants/alphabet.js";import r from"html-react-parser";import{Image as o}from"../image/index.js";const a=({data:a,className:i,generateImageUrl:s})=>{if(a.img)return e("a",{href:a.link,target:"_blank",rel:"noreferrer noopener nofollow",className:"relative block h-full w-full overflow-hidden rounded-m border border-border bg-cardBg "+(i||"shadow-md"),children:e("img",{src:a.img,alt:a.title,className:"h-full w-full object-cover"})});let d=null;const n=a.link.split("/").pop()+"",c=n.split("")+"",m=a.title.split("")+"";return s&&"pool"===a.type?d=e(o,{src:s(n,"ico","pool"),type:"pool",height:25,width:25,className:"rounded-max"}):s&&"asset"===a.type&&a.text&&(d=e(o,{src:s(n,"ico","token"),type:"asset",height:25,width:25,className:"rounded-max",fallbackletters:[...m,...c].filter(e=>l.includes(e.toLowerCase())).slice(0,3).join("")})),t("a",{href:null==a?void 0:a.link,target:"_blank",className:"z-2 relative flex h-[110px] w-full flex-col gap-1/2 rounded-l border border-border bg-cardBg px-2 py-1.5 hover:text-text "+(i||"shadow-md"),children:[e("p",{className:"w-fit rounded-l border border-border px-1 text-text-xs font-medium",children:(null==a?void 0:a.type)?a.type.slice(0,1).toUpperCase()+a.type.slice(1):""}),t("div",{className:"flex items-center gap-1",children:[d,e("p",{className:`block max-h-10 min-h-5 w-full overflow-hidden text-ellipsis whitespace-nowrap break-all ${a.text?"text-sm":"text-text-md"} font-bold hover:text-text`,children:null==a?void 0:a.title})]}),e("p",{className:"block w-full overflow-hidden text-ellipsis text-text-xs leading-tight text-grayTextPrimary",children:r((null==a?void 0:a.text)||"")})]})};export{a as AdCard};
Binary file
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  import { CategoryLabels } from './components/GlobalSearchDropdown';
3
3
  import { GlobalSearchRecentProps } from './components/GlobalSearchRecent';
4
4
 
@@ -39,6 +39,11 @@ export interface GlobalSearchProps {
39
39
  * @default "Not Found"
40
40
  */
41
41
  notFoundLabel?: string;
42
+ /**
43
+ * Optional ad slot rendered inside the search dropdown above results.
44
+ * Typically used with TextAd component for text_ad type ads.
45
+ */
46
+ adSlot?: ReactNode;
42
47
  }
43
48
  /**
44
49
  * Global search component for Cardano blockchain entities with real-time results and category filtering.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/globalSearch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAShC,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,iCAAiC,CAAC;AAEzC;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;;OAMG;IACH,UAAU,CAAC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YAAY,EAAE,EAAE,CAAC,iBAAiB,CAiP9C,CAAC"}
@@ -1 +1 @@
1
- import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import{useEffect as a}from"react";import{useGlobalSearch as l}from"../../providers/GlobalSearchContext.js";import{useThemeStore as o}from"../../stores/themeStore.js";import{useNavigate as s}from"@tanstack/react-router";import{Search as c,ChevronLeft as i,ChevronRight as n}from"lucide-react";import{TextInput as d}from"../textInput/index.js";import{GlobalSearchCell as p}from"./components/GlobalSearchCell.js";import{GlobalSearchDropdown as m}from"./components/GlobalSearchDropdown.js";import{GlobalSearchRecent as h}from"./components/GlobalSearchRecent.js";const x=({isHomepage:x,recentLabels:u,categoryLabels:f,homepagePlaceholder:b="Search by Address / Tx hash / Block hash / $Handle / Pool name...",placeholder:g="Search blocks, transactions, asset IDs...",notFoundLabel:y="Not Found"})=>{const{theme:v}=o(),N=s(),{activeTab:w,focused:C,categoriesOverflow:k,search:j,categories:F,categoriesRef:S,data:T,searchRef:z,handleCategoryChange:_,handleInput:L,handleSearchChange:P,scroll:G,isLoading:I}=l(),O=T.reduce((e,r)=>((null==r?void 0:r.category)&&(e[r.category]=e[r.category]?[...e[r.category],r]:[r]),e),{});a(()=>{!I&&!O[w]&&Object.values(O).length>0&&_("all")},[O,j]);const U=["pool","page","drep","article","user","adahandle","asset","gov_action_proposal"];return e("search",{className:"relative w-full",ref:z,children:[x?e("div",{className:`relative h-12 w-full max-w-[750px] border border-border bg-background ${C?"rounded-b-none rounded-t-l":"rounded-l"} flex items-center`,children:[r(m,{isHomepage:!0,categoryLabels:f}),r("input",{value:j,onChange:e=>P(e.currentTarget.value),placeholder:b,className:"h-full flex-1 bg-transparent pl-1 pr-6 text-text-sm outline-none",onFocus:()=>L("focus"),autoCapitalize:"off"}),r("button",{className:"hover:bg-primary/90 absolute right-2 flex h-9 w-9 items-center justify-center rounded-m bg-primary transition-colors",onClick:()=>N({to:"/search",search:{query:j}}),children:r(c,{size:16,className:"text-background",strokeWidth:2.5})})]}):r(d,{value:j,onchange:P,placeholder:g,showSearchIcon:!C,prefixContent:C?r(m,{categoryLabels:f}):void 0,inputClassName:C?"rounded-b-none pl-[105px]":"",onFocus:()=>L("focus"),autoCapitalize:"off"}),C&&e(t,{children:[k&&r("div",{className:"absolute left-[1px] z-20 flex h-[34px] w-[20px] cursor-pointer items-center bg-background",onClick:()=>G("left"),children:r(i,{size:15,className:"text-grayTextPrimary"})}),e("div",{className:`absolute z-[25] flex w-full ${x?"max-w-[750px]":""} select-none flex-col gap-1.5 rounded-b-m border-x border-b border-border bg-background`,children:[!F&&0!==j.length&&r("div",{className:"flex h-[150px] w-full items-center justify-center",children:r("div",{className:`loader h-[40px] w-[40px] border-[4px] ${"light"===v?"border-[#F2F4F7] border-t-darkBlue":"border-[#475467] border-t-[#5EDFFA]"} border-t-[4px]`})}),!F&&0===j.length&&r(h,{...u}),F&&r(t,{children:0===F.all?r("div",{className:"px-1.5 py-1.5 text-center text-text-sm",children:y}):e(t,{children:[r("div",{className:"flex h-[35px] items-center gap-1.5 overflow-hidden "+(k?"px-3":"w-full px-1.5"),ref:S,children:F&&Object.entries(F).map(([t,a])=>r("div",{className:"relative h-full text-nowrap py-1 "+(w===t?"text-primary":"text-grayTextPrimary"),onClick:()=>_(t),children:e("span",{className:"cursor-pointer text-text-xs font-semibold "+(w===t?"after:absolute after:bottom-0 after:left-0 after:h-[1.5px] after:w-full after:bg-primary":""),children:[t.includes("_")?t.split("_")[0][0].toUpperCase()+t.split("_")[0].slice(1):t[0].toUpperCase()+t.slice(1)," ","(",a,")"]})},t))}),r("div",{className:"thin-scrollbar flex max-h-[300px] w-full flex-col overflow-auto overscroll-none px-1.5 pb-1.5",children:"all"===w?Object.entries(O).map(([t,a])=>e("div",{className:"flex flex-col",children:[t&&r("span",{className:"border-b border-border text-text-xs text-grayTextPrimary",children:t.includes("_")?t.split("_")[0][0].toUpperCase()+t.split("_")[0].slice(1):t[0].toUpperCase()+t.slice(1)}),a.filter(e=>"all"!==w?e.category===w:e).map((e,t,a)=>r("div",{className:t===a.length-1?"pb-1":"",children:r(p,{formatTitle:!U.includes(e.category),item:e})},t))]})):T.filter(e=>"all"!==w?e.category===w:e).map(e=>r(p,{formatTitle:!U.includes(e.category),item:e}))})]})})]}),k&&r("div",{className:"absolute right-[1px] z-20 flex h-[34px] w-[20px] cursor-pointer items-center bg-background",onClick:()=>G("right"),children:r(n,{size:15,className:"text-grayTextPrimary"})})]})]})};export{x as GlobalSearch};
1
+ import{jsxs as e,jsx as r,Fragment as t}from"react/jsx-runtime";import{useEffect as a}from"react";import{useGlobalSearch as l}from"../../providers/GlobalSearchContext.js";import{useThemeStore as o}from"../../stores/themeStore.js";import{useNavigate as s}from"@tanstack/react-router";import{Search as c,ChevronLeft as i,ChevronRight as n}from"lucide-react";import{TextInput as d}from"../textInput/index.js";import{GlobalSearchCell as p}from"./components/GlobalSearchCell.js";import{GlobalSearchDropdown as m}from"./components/GlobalSearchDropdown.js";import{GlobalSearchRecent as h}from"./components/GlobalSearchRecent.js";const x=({isHomepage:x,recentLabels:u,categoryLabels:f,homepagePlaceholder:b="Search by Address / Tx hash / Block hash / $Handle / Pool name...",placeholder:g="Search blocks, transactions, asset IDs...",notFoundLabel:v="Not Found",adSlot:y})=>{const{theme:N}=o(),w=s(),{activeTab:C,focused:k,categoriesOverflow:j,search:S,categories:F,categoriesRef:T,data:z,searchRef:_,handleCategoryChange:L,handleInput:P,handleSearchChange:G,scroll:I,isLoading:O}=l(),U=z.reduce((e,r)=>((null==r?void 0:r.category)&&(e[r.category]=e[r.category]?[...e[r.category],r]:[r]),e),{});a(()=>{!O&&!U[C]&&Object.values(U).length>0&&L("all")},[U,S]);const $=["pool","page","drep","article","user","adahandle","asset","gov_action_proposal"];return e("search",{className:"relative w-full",ref:_,children:[x?e("div",{className:`relative h-12 w-full max-w-[750px] border border-border bg-background ${k?"rounded-b-none rounded-t-l":"rounded-l"} flex items-center`,children:[r(m,{isHomepage:!0,categoryLabels:f}),r("input",{value:S,onChange:e=>G(e.currentTarget.value),placeholder:b,className:"h-full flex-1 bg-transparent pl-1 pr-6 text-text-sm outline-none",onFocus:()=>P("focus"),autoCapitalize:"off"}),r("button",{className:"hover:bg-primary/90 absolute right-2 flex h-9 w-9 items-center justify-center rounded-m bg-primary transition-colors",onClick:()=>w({to:"/search",search:{query:S}}),children:r(c,{size:16,className:"text-background",strokeWidth:2.5})})]}):r(d,{value:S,onchange:G,placeholder:g,showSearchIcon:!k,prefixContent:k?r(m,{categoryLabels:f}):void 0,inputClassName:k?"rounded-b-none pl-[105px]":"",onFocus:()=>P("focus"),autoCapitalize:"off"}),k&&e(t,{children:[j&&r("div",{className:"absolute left-[1px] z-20 flex h-[34px] w-[20px] cursor-pointer items-center bg-background",onClick:()=>I("left"),children:r(i,{size:15,className:"text-grayTextPrimary"})}),e("div",{className:`absolute z-[25] flex w-full ${x?"max-w-[750px]":""} select-none flex-col gap-1.5 rounded-b-m border-x border-b border-border bg-background`,children:[y&&r("div",{className:"px-1.5 pt-1.5",children:y}),!F&&0!==S.length&&r("div",{className:"flex h-[150px] w-full items-center justify-center",children:r("div",{className:`loader h-[40px] w-[40px] border-[4px] ${"light"===N?"border-[#F2F4F7] border-t-darkBlue":"border-[#475467] border-t-[#5EDFFA]"} border-t-[4px]`})}),!F&&0===S.length&&r(h,{...u}),F&&r(t,{children:0===F.all?r("div",{className:"px-1.5 py-1.5 text-center text-text-sm",children:v}):e(t,{children:[r("div",{className:"flex h-[35px] items-center gap-1.5 overflow-hidden "+(j?"px-3":"w-full px-1.5"),ref:T,children:F&&Object.entries(F).map(([t,a])=>r("div",{className:"relative h-full text-nowrap py-1 "+(C===t?"text-primary":"text-grayTextPrimary"),onClick:()=>L(t),children:e("span",{className:"cursor-pointer text-text-xs font-semibold "+(C===t?"after:absolute after:bottom-0 after:left-0 after:h-[1.5px] after:w-full after:bg-primary":""),children:[t.includes("_")?t.split("_")[0][0].toUpperCase()+t.split("_")[0].slice(1):t[0].toUpperCase()+t.slice(1)," ","(",a,")"]})},t))}),r("div",{className:"thin-scrollbar flex max-h-[300px] w-full flex-col overflow-auto overscroll-none px-1.5 pb-1.5",children:"all"===C?Object.entries(U).map(([t,a])=>e("div",{className:"flex flex-col",children:[t&&r("span",{className:"border-b border-border text-text-xs text-grayTextPrimary",children:t.includes("_")?t.split("_")[0][0].toUpperCase()+t.split("_")[0].slice(1):t[0].toUpperCase()+t.slice(1)}),a.filter(e=>"all"!==C?e.category===C:e).map((e,t,a)=>r("div",{className:t===a.length-1?"pb-1":"",children:r(p,{formatTitle:!$.includes(e.category),item:e})},t))]})):z.filter(e=>"all"!==C?e.category===C:e).map(e=>r(p,{formatTitle:!$.includes(e.category),item:e}))})]})})]}),j&&r("div",{className:"absolute right-[1px] z-20 flex h-[34px] w-[20px] cursor-pointer items-center bg-background",onClick:()=>I("right"),children:r(n,{size:15,className:"text-grayTextPrimary"})})]})]})};export{x as GlobalSearch};
Binary file
@@ -101,11 +101,17 @@ export interface HeaderProps {
101
101
  * @default "Ad"
102
102
  */
103
103
  adLabel?: string;
104
+ /**
105
+ * Hide the TextAd below the header title.
106
+ * Useful for footer/info pages that shouldn't show text ads.
107
+ * @default false
108
+ */
109
+ hideTextAd?: boolean;
104
110
  /**
105
111
  * Labels for GlobalSearch component
106
112
  * Pass through to configure GlobalSearch text (placeholders, labels, categories)
107
113
  */
108
- globalSearchLabels?: Pick<GlobalSearchProps, "recentLabels" | "categoryLabels" | "homepagePlaceholder" | "placeholder" | "notFoundLabel">;
114
+ globalSearchLabels?: Pick<GlobalSearchProps, "recentLabels" | "categoryLabels" | "homepagePlaceholder" | "placeholder" | "notFoundLabel" | "adSlot">;
109
115
  /**
110
116
  * Function to generate image URLs for search result entities.
111
117
  * Used to display pool logos, asset icons, DRep avatars in search results.
@@ -177,5 +183,5 @@ export interface HeaderProps {
177
183
  * />
178
184
  * ```
179
185
  */
180
- export declare const Header: ({ breadcrumbItems, breadcrumbSeparator, title, subTitle, badge, qrCode, isHomepage, miscBasic: miscBasicQuery, useFetchMiscSearch, locale, homepageAd, customPage, icon, withoutSearch, shareButton, bookmarkButton, onBookmarkClick, isBookmarked, featuredLabel, adLabel, globalSearchLabels, generateImageUrl, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
186
+ export declare const Header: ({ breadcrumbItems, breadcrumbSeparator, title, subTitle, badge, qrCode, isHomepage, miscBasic: miscBasicQuery, useFetchMiscSearch, locale, homepageAd, customPage, icon, withoutSearch, shareButton, bookmarkButton, onBookmarkClick, isBookmarked, featuredLabel, adLabel, hideTextAd, globalSearchLabels, generateImageUrl, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
181
187
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/header/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAMvE;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IACnC;;OAEG;IACH,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;OAEG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CACjB,kBAAkB,GAAG;QACnB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;KAChC,EACD,OAAO,CACR,CAAC;IACF;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,IAAI,CACvB,iBAAiB,EACjB,cAAc,GAAG,gBAAgB,GAAG,qBAAqB,GAAG,aAAa,GAAG,eAAe,GAAG,QAAQ,CACvG,CAAC;IACF;;;;;;;;OAQG;IACH,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CACvE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,eAAO,MAAM,MAAM,GAAI,iUAwBpB,WAAW,4CAqJb,CAAC"}
@@ -1 +1 @@
1
- import{jsx as e,jsxs as r,Fragment as t}from"react/jsx-runtime";import{GlobalSearchProvider as a}from"../../providers/GlobalSearchContext.js";import{cn as s}from"../../utils/cn.js";import{useState as d}from"react";import{Breadcrumb as i}from"../breadcrumbs/index.js";import{BreadcrumbSeparator as l}from"../breadcrumbs/components/BreadcrumbSeparator.js";import{GlobalSearch as o}from"../globalSearch/index.js";import{LoadingSkeleton as n}from"../loadingSkeleton/index.js";import{BookmarkButton as c}from"../bookmarkButton/index.js";import{ShareButton as m}from"../shareButton/index.js";import{TruncatedText as x}from"../truncatedText/index.js";const p=({breadcrumbItems:p,breadcrumbSeparator:b=e(l,{}),title:h,subTitle:f,badge:u,qrCode:g,isHomepage:v,miscBasic:k,useFetchMiscSearch:N,locale:w,homepageAd:j,customPage:y,icon:S,withoutSearch:B=!1,shareButton:I=!0,bookmarkButton:H=!0,onBookmarkClick:C,isBookmarked:L=!1,featuredLabel:F="Featured:",adLabel:M="Ad",globalSearchLabels:T,generateImageUrl:$})=>{var U;const[_,A]=d(!1),G=k?null==(U=k.data)?void 0:U.data.ads.find(e=>"heading_featured"===e.type):void 0;return e("header",{className:"flex min-h-[110px] w-full justify-center bg-gradient-to-b from-bannerGradient to-darker",children:r("div",{className:`flex w-full max-w-desktop flex-wrap justify-between gap-3 p-mobile md:px-desktop md:py-0 ${v?"items-center":""} ${y?"items-center justify-center":""}`,children:[r("div",{className:`flex flex-col pt-2 ${v?"w-full max-w-[750px]":""} ${y?"w-full items-center text-center":""}`,children:[p&&e(i,{breadcrumbItems:p,breadcrumbSeparator:b}),r("div",{className:s("flex items-center gap-2 pb-1.5 pt-1 font-poppins"),children:[r("h1",{className:s("flex items-center gap-2",y&&"pl-[28px]"),children:[S&&e("span",{className:"flex-shrink-0",children:S}),e(x,{onHasImageChange:A,className:s("text-display-sm",!v&&"text-nowrap"),children:h})]}),!v&&u&&e("div",{className:s(!_&&"mt-[5px]"),children:u}),(I||H)&&!v&&r("div",{className:s("flex translate-y-[2px] items-center gap-1"),children:[I&&e(m,{isHeader:!0}),H&&e(c,{isHeader:!0,onClick:C,isBookmarked:L})]})]}),!B&&r("div",{className:"flex items-center gap-1 "+(y?"flex-col":""),children:[!v&&f&&f,!v&&g&&g,N&&w&&v&&!y&&e(a,{useFetchMiscSearch:N,locale:w,generateImageUrl:$,children:e(o,{isHomepage:!0,...T})})]}),G&&k&&k.isLoading?e(n,{height:"14px"}):e(t,{children:G&&r("div",{className:"flex gap-[4px] pt-1.5",children:[e("span",{className:"text-text-sm font-semibold text-text",children:F}),e("p",{dangerouslySetInnerHTML:{__html:(null==G?void 0:G.data.text)||""},className:"text-text-sm text-grayTextPrimary [&>a]:font-semibold [&>a]:text-brand-600"})]})})]}),v||y?!y&&j&&r("div",{className:"relative h-[100px] w-[320px] overflow-hidden rounded-m border border-border bg-cardBg",children:[j,e("div",{className:"absolute right-2 top-1.5 flex h-[24px] w-[32px] items-center justify-center rounded-xs border border-border bg-background text-text-xs font-medium text-text",children:e("span",{children:M})})]}):r("div",{className:"flex pt-2 "+(j?"basis-[385px] flex-col":"basis-[385px] pt-4"),children:[N&&w&&!B&&e("div",{className:"flex w-full shrink flex-col gap-1.5 pb-1.5",children:e(a,{useFetchMiscSearch:N,locale:w,generateImageUrl:$,children:e(o,{...T})})}),j&&r("div",{className:"relative h-[100px] w-[320px] overflow-hidden rounded-m border border-border bg-cardBg",children:[j,e("div",{className:"absolute right-2 top-1.5 flex h-[24px] w-[32px] items-center justify-center rounded-xs border border-border bg-background text-text-xs font-medium text-text",children:e("span",{children:M})})]})]})]})})};export{p as Header};
1
+ import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import{GlobalSearchProvider as r}from"../../providers/GlobalSearchContext.js";import{cn as l}from"../../utils/cn.js";import{useState as o}from"react";import{Breadcrumb as d}from"../breadcrumbs/index.js";import{BreadcrumbSeparator as i}from"../breadcrumbs/components/BreadcrumbSeparator.js";import{GlobalSearch as s}from"../globalSearch/index.js";import{LoadingSkeleton as n}from"../loadingSkeleton/index.js";import{BookmarkButton as m}from"../bookmarkButton/index.js";import{ButtonAd as c}from"../buttonAd/index.js";import{ShareButton as p}from"../shareButton/index.js";import{TextAd as x}from"../textAd/index.js";import{TruncatedText as f}from"../truncatedText/index.js";const h=({breadcrumbItems:h,breadcrumbSeparator:u=e(i,{}),title:b,subTitle:g,badge:v,qrCode:k,isHomepage:w,miscBasic:N,useFetchMiscSearch:j,locale:y,homepageAd:S,customPage:B,icon:I,withoutSearch:L=!1,shareButton:C=!0,bookmarkButton:H=!0,onBookmarkClick:M,isBookmarked:A=!1,featuredLabel:T="Featured:",adLabel:_="Ad",hideTextAd:F=!1,globalSearchLabels:$,generateImageUrl:P})=>{var U,G,q;const[D,z]=o(!1),E=N?null==(U=N.data)?void 0:U.data.ads.find(e=>"heading_featured"===e.type):void 0,J=null==(G=null==N?void 0:N.data)?void 0:G.data.ads.filter(e=>"button"===e.type),K=null==(q=null==N?void 0:N.data)?void 0:q.data.ads.filter(e=>"text_ad"===e.type),O=(null==K?void 0:K.length)?K[Math.floor(Math.random()*K.length)]:void 0;return e("header",{className:"flex min-h-[110px] w-full justify-center bg-gradient-to-b from-bannerGradient to-darker",children:t("div",{className:`flex w-full max-w-desktop flex-wrap justify-between gap-3 p-mobile md:px-desktop md:py-0 ${w?"items-center":""} ${B?"items-center justify-center":""}`,children:[t("div",{className:`flex min-w-0 flex-1 flex-col pt-2 ${w?"w-full max-w-[750px]":""} ${B?"w-full items-center text-center":""}`,children:[h&&e(d,{breadcrumbItems:h,breadcrumbSeparator:u}),t("div",{className:l("flex items-center gap-2 pb-1.5 pt-1 font-poppins"),children:[t("h1",{className:l("flex items-center gap-2",B&&"pl-[28px]"),children:[I&&e("span",{className:"flex-shrink-0",children:I}),e(f,{onHasImageChange:z,className:l("text-display-sm",!w&&"text-nowrap"),children:b})]}),!w&&v&&e("div",{className:l(!D&&"mt-[5px]"),children:v}),(C||H)&&!w&&t("div",{className:l("flex translate-y-[2px] items-center gap-1"),children:[C&&e(p,{isHeader:!0}),H&&e(m,{isHeader:!0,onClick:M,isBookmarked:A})]})]}),!L&&t("div",{className:"flex items-center gap-1 "+(B?"flex-col":""),children:[!w&&g&&g,!w&&k&&k,j&&y&&w&&!B&&e(r,{useFetchMiscSearch:j,locale:y,generateImageUrl:P,children:e(s,{isHomepage:!0,...$})})]}),E&&N&&N.isLoading?e(n,{height:"14px"}):e(a,{children:E&&t("div",{className:"flex gap-[4px] pt-1.5",children:[e("span",{className:"text-text-sm font-semibold text-text",children:T}),e("p",{dangerouslySetInnerHTML:{__html:(null==E?void 0:E.data.text)||""},onClick:e=>{const t=e.target.closest("a");t&&(e.preventDefault(),e.stopPropagation(),window.open(t.href,"_blank","noopener,noreferrer"))},className:"text-text-sm text-grayTextPrimary [&>a]:cursor-pointer [&>a]:font-semibold [&>a]:text-brand-600"})]})}),O&&!F&&e(x,{ad:O,featuredLabel:T,className:"pt-1.5"})]}),w||B?!B&&S&&t("div",{className:"relative h-[100px] w-[320px] overflow-hidden rounded-m border border-border bg-cardBg",children:[S,e("div",{className:"absolute right-2 top-1.5 flex h-[24px] w-[32px] items-center justify-center rounded-xs border border-border bg-background text-text-xs font-medium text-text",children:e("span",{children:_})})]}):t("div",{className:"flex w-full pt-2 md:w-auto "+(S||J&&J.length>0?"md:basis-[385px] flex-col":"md:basis-[385px] pt-4"),children:[j&&y&&!L&&e("div",{className:"flex w-full shrink flex-col gap-1.5 pb-1.5",children:e(r,{useFetchMiscSearch:j,locale:y,generateImageUrl:P,children:e(s,{...$})})}),J&&J.length>0&&e(c,{ads:J,featuredLabel:T})]})]})})};export{h as Header};
Binary file
@@ -101,4 +101,6 @@ export { MainLogo, type MainLogoProps } from './mainLogo';
101
101
  export { ConstLabelBadge, type ConstLabelBadgeProps } from './constLabelBadge';
102
102
  export { EpochCell, type EpochCellProps } from './epochCell';
103
103
  export { BlockCell, type BlockCellProps } from './blockCell';
104
+ export { ButtonAd, type ButtonAdProps } from './buttonAd';
105
+ export { TextAd, type TextAdProps } from './textAd';
104
106
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":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AAa,CAAC;AAE7D,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { MiscBasicResponse } from '../../types/miscTypes';
2
+ import { FC } from 'react';
3
+
4
+ /**
5
+ * Props for the TextAd component
6
+ */
7
+ export interface TextAdProps {
8
+ /**
9
+ * A text_ad item from the MiscBasic API response.
10
+ */
11
+ ad: MiscBasicResponse["data"]["ads"][number];
12
+ /**
13
+ * Label displayed before the ad text.
14
+ * @default "Featured:"
15
+ */
16
+ featuredLabel?: string;
17
+ /**
18
+ * Additional CSS classes for the container.
19
+ */
20
+ className?: string;
21
+ }
22
+ /**
23
+ * TextAd displays a subtle inline text advertisement with optional icon.
24
+ *
25
+ * Renders a single line with an optional icon, a "Featured:" label,
26
+ * and HTML text content (which may contain links). Designed to blend
27
+ * with surrounding content — used in headers, search dropdowns, and below search bars.
28
+ *
29
+ * @component
30
+ * @param {TextAdProps} props - Component props
31
+ * @returns {JSX.Element} Inline text ad element
32
+ */
33
+ export declare const TextAd: FC<TextAdProps>;
34
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/textAd/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAuB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;IAE7C;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAqClC,CAAC"}
@@ -0,0 +1 @@
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useRef as a,useCallback as r}from"react";const n=({ad:n,featuredLabel:o="Featured:",className:s})=>{const l=a(null),i=r(e=>{const t=e.target.closest("a");t&&(e.preventDefault(),e.stopPropagation(),window.open(t.href,"_blank","noopener,noreferrer"))},[]);return e("p",{className:"text-text-sm text-grayTextPrimary "+(s||""),children:[n.data.icon&&t("img",{src:n.data.icon+"",alt:"",width:20,height:20,className:"mr-1 inline-block rounded-max align-middle"}),t("span",{className:"font-semibold text-text",children:o})," ",t("span",{ref:l,dangerouslySetInnerHTML:{__html:n.data.text||""},onClick:i,className:"[&>a]:cursor-pointer [&>a]:font-semibold [&>a]:text-primary"})]})};export{n as TextAd};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumlabs/cexplorer-sdk",
3
- "version": "1.1.25",
3
+ "version": "1.1.26",
4
4
  "description": "Cexplorer UI Component Library with theme system",
5
5
  "author": "Vellum Labs",
6
6
  "main": "dist/index.js",
@@ -56,6 +56,9 @@
56
56
  "Button": [
57
57
  "dist/ui/button/index.d.ts"
58
58
  ],
59
+ "ButtonAd": [
60
+ "dist/ui/buttonAd/index.d.ts"
61
+ ],
59
62
  "Command": [
60
63
  "dist/ui/command/index.d.ts"
61
64
  ],
@@ -254,6 +257,9 @@
254
257
  "Tabs": [
255
258
  "dist/ui/tabs/index.d.ts"
256
259
  ],
260
+ "TextAd": [
261
+ "dist/ui/textAd/index.d.ts"
262
+ ],
257
263
  "TextDisplay": [
258
264
  "dist/ui/textDisplay/index.d.ts"
259
265
  ],
@@ -525,6 +531,10 @@
525
531
  "import": "./dist/ui/button/index.js",
526
532
  "types": "./dist/ui/button/index.d.ts"
527
533
  },
534
+ "./ButtonAd": {
535
+ "import": "./dist/ui/buttonAd/index.js",
536
+ "types": "./dist/ui/buttonAd/index.d.ts"
537
+ },
528
538
  "./Command": {
529
539
  "import": "./dist/ui/command/index.js",
530
540
  "types": "./dist/ui/command/index.d.ts"
@@ -789,6 +799,10 @@
789
799
  "import": "./dist/ui/tabs/index.js",
790
800
  "types": "./dist/ui/tabs/index.d.ts"
791
801
  },
802
+ "./TextAd": {
803
+ "import": "./dist/ui/textAd/index.js",
804
+ "types": "./dist/ui/textAd/index.d.ts"
805
+ },
792
806
  "./TextDisplay": {
793
807
  "import": "./dist/ui/textDisplay/index.js",
794
808
  "types": "./dist/ui/textDisplay/index.d.ts"