@vellumlabs/cexplorer-sdk 1.1.22 → 1.1.24

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.
Files changed (49) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.gz +0 -0
  5. package/dist/providers/GlobalSearchContext.d.ts +11 -0
  6. package/dist/providers/GlobalSearchContext.d.ts.map +1 -1
  7. package/dist/providers/GlobalSearchContext.js +1 -1
  8. package/dist/providers/GlobalSearchContext.js.gz +0 -0
  9. package/dist/resources/images/fallbacks/assetFallback.svg.js +1 -0
  10. package/dist/ui/addBookmarkModal/index.d.ts +71 -0
  11. package/dist/ui/addBookmarkModal/index.d.ts.map +1 -0
  12. package/dist/ui/addBookmarkModal/index.js +1 -0
  13. package/dist/ui/addBookmarkModal/index.js.gz +0 -0
  14. package/dist/ui/bookmarkButton/index.d.ts +59 -0
  15. package/dist/ui/bookmarkButton/index.d.ts.map +1 -0
  16. package/dist/ui/bookmarkButton/index.js +1 -0
  17. package/dist/ui/bookmarksSideButton/index.d.ts +75 -0
  18. package/dist/ui/bookmarksSideButton/index.d.ts.map +1 -0
  19. package/dist/ui/bookmarksSideButton/index.js +1 -0
  20. package/dist/ui/dropdown/index.d.ts +7 -0
  21. package/dist/ui/dropdown/index.d.ts.map +1 -1
  22. package/dist/ui/dropdown/index.js +1 -1
  23. package/dist/ui/dropdown/index.js.gz +0 -0
  24. package/dist/ui/editBookmarkModal/index.d.ts +83 -0
  25. package/dist/ui/editBookmarkModal/index.d.ts.map +1 -0
  26. package/dist/ui/editBookmarkModal/index.js +1 -0
  27. package/dist/ui/editBookmarkModal/index.js.gz +0 -0
  28. package/dist/ui/globalSearch/components/GlobalSearchCell.d.ts.map +1 -1
  29. package/dist/ui/globalSearch/components/GlobalSearchCell.js +1 -1
  30. package/dist/ui/globalSearch/components/GlobalSearchCell.js.gz +0 -0
  31. package/dist/ui/header/index.d.ts +27 -1
  32. package/dist/ui/header/index.d.ts.map +1 -1
  33. package/dist/ui/header/index.js +1 -1
  34. package/dist/ui/header/index.js.gz +0 -0
  35. package/dist/ui/image/index.d.ts.map +1 -1
  36. package/dist/ui/image/index.js +1 -1
  37. package/dist/ui/image/index.js.gz +0 -0
  38. package/dist/ui/index.d.ts +5 -0
  39. package/dist/ui/index.d.ts.map +1 -1
  40. package/dist/ui/removeBookmarkModal/index.d.ts +70 -0
  41. package/dist/ui/removeBookmarkModal/index.d.ts.map +1 -0
  42. package/dist/ui/removeBookmarkModal/index.js +1 -0
  43. package/dist/ui/removeBookmarkModal/index.js.gz +0 -0
  44. package/dist/ui/safetyLinkModal/index.js +1 -1
  45. package/dist/ui/safetyLinkModal/index.js.gz +0 -0
  46. package/dist/ui/tableSettingsDropdown/index.d.ts.map +1 -1
  47. package/dist/ui/tableSettingsDropdown/index.js +1 -1
  48. package/dist/ui/tableSettingsDropdown/index.js.gz +0 -0
  49. package/package.json +36 -1
package/dist/index.d.ts CHANGED
@@ -68,6 +68,7 @@ export { default as TwitterLogo } from './resources/images/icons/twitter.svg';
68
68
  export { default as FacebookLogo } from './resources/images/icons/facebook.svg';
69
69
  export { default as TwitchLogo } from './resources/images/icons/twitch.svg';
70
70
  export { default as YoutubeLogo } from './resources/images/icons/youtube.svg';
71
+ export { default as AssetFallback } from './resources/images/fallbacks/assetFallback.svg';
71
72
  export { default as DrepFallback } from './resources/images/fallbacks/drepFallback.svg';
72
73
  export { default as PoolFallback } from './resources/images/fallbacks/poolFallback.svg';
73
74
  export { default as DollarIcon } from './resources/images/dollar.svg';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB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AAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAC"}
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 h}from"./ui/globalSearch/index.js";import{TextInput as w}from"./ui/textInput/index.js";import{ActionTypes as C}from"./ui/actionTypes/index.js";import{AdaWithTooltip as B}from"./ui/adaWithTooltip/index.js";import{Button as T}from"./ui/button/index.js";import{Copy as k}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 D}from"./ui/icon/index.js";import{LoadingSkeleton as A}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{Tooltip as M}from"./ui/tooltip/index.js";import{TruncatedText as W}from"./ui/truncatedText/index.js";import{Pagination as N}from"./ui/pagination/index.js";import{PaginationComponent as R}from"./ui/pagination/components/PaginationComponent.js";import{PaginationContent as G}from"./ui/pagination/components/PaginationContent.js";import{PaginationEllipsis as O}from"./ui/pagination/components/PaginationEllipsis.js";import{PaginationItem as V}from"./ui/pagination/components/PaginationItem.js";import{PaginationLink as z}from"./ui/pagination/components/PaginationLink.js";import{PaginationNext as E}from"./ui/pagination/components/PaginationNext.js";import{PaginationPrevious as J}from"./ui/pagination/components/PaginationPrevious.js";import{EmptyState as H}from"./ui/emptyState/index.js";import{ProtocolDot as U}from"./ui/protocolDot/index.js";import{SortArrow as Y}from"./ui/sortArrow/index.js";import{TextDisplay as q}from"./ui/textDisplay/index.js";import{TrendingArrow as K}from"./ui/trendingArrow/index.js";import{Switch as Q}from"./ui/switch/index.js";import{Modal as X}from"./ui/modal/index.js";import{ActivityBadge as Z}from"./ui/activityBadge/index.js";import{Badge as $}from"./ui/badge/index.js";import{RangeSlider as _}from"./ui/rangeSlider/index.js";import{ExtraLabelBadge as oo}from"./ui/extraLabelBadge/index.js";import{LabelBadge as io}from"./ui/labelBadge/index.js";import{ProBadge as ro}from"./ui/proBadge/index.js";import{VoterRoleBadge as to}from"./ui/voterRoleBadge/index.js";import{VoteBadge as so}from"./ui/voteBadge/index.js";import{ScriptBadge as eo}from"./ui/scriptBadge/index.js";import{PurposeBadge as mo}from"./ui/purposeBadge/index.js";import{GovernanceStatusBadge as no}from"./ui/governanceStatusBadge/index.js";import{AddressTypeInitialsBadge as ao}from"./ui/addressTypeInitialsBadge/index.js";import{InfoCard as po}from"./ui/infoCard/index.js";import{SizeCard as uo}from"./ui/sizeCard/index.js";import{OverviewStatCard as fo}from"./ui/overviewStatCard/index.js";import{OverviewCard as jo}from"./ui/overviewCard/index.js";import{Image as lo}from"./ui/image/index.js";import{PoolCell as co}from"./ui/poolCell/index.js";import{SizeCell as xo}from"./ui/sizeCell/index.js";import{StakeCell as go}from"./ui/stakeCell/index.js";import{TitleSort as bo}from"./ui/titleSort/index.js";import{AdaHandleBadge as So}from"./ui/adaHandleBadge/index.js";import{EnvironmentBadge as vo}from"./ui/environmentBadge/index.js";import{ScreenDropdown as ho}from"./ui/screenDropdown/index.js";import{Input as wo}from"./ui/tableSearchInput/components/input.js";import{TableSearchInput as Co}from"./ui/tableSearchInput/index.js";import{FeatureModal as Bo}from"./ui/featureModal/index.js";import{SafetyLinkModal as To}from"./ui/safetyLinkModal/index.js";import{DelegatorsLabel as ko}from"./ui/delegatorsLabel/index.js";import{Carousel as yo,CarouselContent as Lo,CarouselItem as Do}from"./ui/carousel/components/carousel.js";import{SingleItemCarousel as Ao}from"./ui/carousel/SingleItemCarousel.js";import{NoResultsFound as Po}from"./ui/noResultsFound/index.js";import{SensitiveContentWarning as Io}from"./ui/sensitiveContentWarning/index.js";import{AdCard as Fo}from"./ui/carousel/AdCard.js";import{AdsCarousel as Mo}from"./ui/carousel/AdsCarousel.js";import{FunnelFilter as Wo}from"./ui/funnelFilter/index.js";import{NavigationMenu as No,NavigationMenuContent as Ro,NavigationMenuIndicator as Go,NavigationMenuItem as Oo,NavigationMenuLink as Vo,NavigationMenuList as zo,NavigationMenuTrigger as Eo}from"./ui/navigationMenu/index.js";import{Select as Jo,SelectContent as Ho,SelectGroup as Uo,SelectItem as Yo,SelectLabel as qo,SelectScrollDownButton as Ko,SelectScrollUpButton as Qo,SelectSeparator as Xo,SelectTrigger as Zo,SelectValue as $o}from"./ui/select/index.js";import{TableSettingsDropdown as _o}from"./ui/tableSettingsDropdown/index.js";import{MintedByCard as oi}from"./ui/mintedByCard/index.js";import{MobileTabsSelector as ii}from"./ui/mobileTabsSelector/index.js";import{Tabs as ri}from"./ui/tabs/index.js";import{DisplayVoteModal as ti}from"./ui/displayVoteModal/index.js";import{Accordion as si,AccordionContent as ei,AccordionItem as mi,AccordionTrigger as ni}from"./ui/accordion/accordion.js";import{MobileMenuAccordionItem as ai}from"./ui/mobileMenuAccordionItem/index.js";import{ExportTableModal as pi}from"./ui/exportTableModal/index.js";import{JsonDisplay as ui}from"./ui/jsonDisplay/index.js";import{HeaderBannerSubtitle as di}from"./ui/headerBannerSubtitle/index.js";import{MinMaxRange as fi}from"./ui/minMaxRange/index.js";import{PriceAdaSmallAmount as ji}from"./ui/priceAdaSmallAmount/index.js";import{SpinningLoader as li}from"./ui/spinningLoader/index.js";import{TimeDateIndicator as ci}from"./ui/timeDateIndicator/index.js";import{TotalSumWithRates as xi}from"./ui/totalSumWithRates/index.js";import{ViewSwitch as gi}from"./ui/viewSwitch/index.js";import{VotingBreakdownTooltip as bi}from"./ui/votingBreakdownTooltip/index.js";import{Dialog as Si,DialogClose as vi,DialogContent as hi,DialogDescription as wi,DialogFooter as Ci,DialogHeader as Bi,DialogOverlay as Ti,DialogPortal as ki,DialogTitle as yi,DialogTrigger as Li}from"./ui/dialog/index.js";import{Command as Di,CommandDialog as Ai,CommandEmpty as Pi,CommandGroup as Ii,CommandInput as Fi,CommandItem as Mi,CommandList as Wi,CommandSeparator as Ni,CommandShortcut as Ri}from"./ui/command/index.js";import{Popover as Gi,PopoverAnchor as Oi,PopoverContent as Vi,PopoverTrigger as zi}from"./ui/popover/index.js";import{AttributeDropdown as Ei}from"./ui/attributeDropdown/index.js";import{Table as Ji,TableBody as Hi,TableCaption as Ui,TableCell as Yi,TableFooter as qi,TableHead as Ki,TableHeader as Qi,TableRow as Xi}from"./ui/globalTable/components/index.js";import{GlobalTable as Zi}from"./ui/globalTable/index.js";import{AdaPriceIndicator as $i}from"./ui/adaPriceIndicator/index.js";import{MainLogo as _i}from"./ui/mainLogo/index.js";import{ConstLabelBadge as or}from"./ui/constLabelBadge/index.js";import{EpochCell as ir}from"./ui/epochCell/index.js";import{BlockCell as rr}from"./ui/blockCell/index.js";import{getAddressTypeInitials as tr}from"./utils/address/getAddressTypeInitials.js";import{parseShelleyAddress as sr}from"./utils/address/parseShelleyAddress.js";import{encodeAssetName as er}from"./utils/asset/encodeAssetName.js";import{getAssetFingerprint as mr}from"./utils/asset/getAssetFingerprint.js";import{cn as nr}from"./utils/cn.js";import{convertJSONToCSV as ar}from"./utils/convertJSONToCSV.js";import{findLabel as pr}from"./utils/findLabel.js";import{convertUtcToLocal as ur,formatDate as dr,formatNumber as fr,formatNumberWithSuffix as jr,formatSecondsToTime as lr,formatString as cr,formatTimeAgo as xr,formatTimeIn as gr,toUtcDate as br}from"./utils/format.js";import{formatCurrency as Sr}from"./utils/formatCurrency.js";import{generateUrlWithParams as vr}from"./utils/generateUrlWithParams.js";import{getBrowserTheme as hr}from"./utils/getBrowserTheme.js";import{getColumnsSortOrder as wr}from"./utils/getColumnsSortOrder.js";import{getExportJSON as Cr}from"./utils/getExportJSON.js";import{getNodeText as Br}from"./utils/getNodeText.js";import{getGovActionStatus as Tr}from"./utils/gov/getGovActionStatus.js";import{isMobileDevice as kr}from"./utils/isMobileDevice.js";import{lovelaceToAda as yr}from"./utils/lovelaceToAda.js";import{paginateArray as Lr}from"./utils/paginateArray.js";import{getCategories as Dr}from"./utils/search/getCategories.js";import{getTruncatedTitle as Ar,hasImageInChildren as Pr,truncateTitle as Ir}from"./utils/truncatedText.js";import{formatBitcoinWithSub as Fr,formatSmallValueWithSub as Mr}from"./utils/formatSmallValueWithSub.js";import{GlobalSearchProvider as Wr,useGlobalSearch as Nr}from"./providers/GlobalSearchContext.js";import{useDebounce as Rr}from"./hooks/useDebounce.js";import{useWindowDimensions as Gr}from"./hooks/useWindowDimensions.js";import{useCurrencyStore as Or}from"./stores/currencyStore.js";import{useDropdownState as Vr}from"./stores/dropdownState.js";import{useInfiniteScrollingStore as zr}from"./stores/infiniteScrollingStore.js";import{useLocaleStore as Er}from"./stores/localeStore.js";import{useThemeStore as Jr}from"./stores/themeStore.js";import{useViewStore as Hr}from"./stores/viewStore.js";import{handleCreateStore as Ur}from"./lib/handleCreateStore.js";import{handlePersistStore as Yr}from"./lib/handlePersiststore.js";import{Facebook as qr}from"./resources/Facebook.js";import{Cardano as Kr}from"./resources/icons/Cardano.js";import{Twitter as Qr}from"./resources/Twitter.js";import{default as Xr}from"./resources/images/icons/discord.svg.js";import{default as Zr}from"./resources/images/icons/github.svg.js";import{default as $r}from"./resources/images/icons/telegram.svg.js";import{default as _r}from"./resources/images/icons/twitter.svg.js";import{default as ot}from"./resources/images/icons/facebook.svg.js";import{default as it}from"./resources/images/icons/twitch.svg.js";import{default as rt}from"./resources/images/icons/youtube.svg.js";import{default as tt}from"./resources/images/fallbacks/drepFallback.svg.js";import{default as st}from"./resources/images/fallbacks/poolFallback.svg.js";import{default as et}from"./resources/images/dollar.svg.js";export{t as ADATokenName,si as Accordion,ei as AccordionContent,mi as AccordionItem,ni as AccordionTrigger,C as ActionTypes,Z as ActivityBadge,Fo as AdCard,S as AdDropdown,So as AdaHandleBadge,$i as AdaPriceIndicator,B as AdaWithTooltip,ao as AddressTypeInitialsBadge,Mo as AdsCarousel,Ei as AttributeDropdown,$ as Badge,rr as BlockCell,j as Breadcrumb,l as BreadcrumbItem,c as BreadcrumbList,x as BreadcrumbPage,g as BreadcrumbRaw,b as BreadcrumbSeparator,T as Button,Kr as Cardano,yo as Carousel,Lo as CarouselContent,Do as CarouselItem,Di as Command,Ai as CommandDialog,Pi as CommandEmpty,Ii as CommandGroup,Fi as CommandInput,Mi as CommandItem,Wi as CommandList,Ni as CommandSeparator,Ri as CommandShortcut,or as ConstLabelBadge,k as Copy,y as DateCell,ko as DelegatorsLabel,Si as Dialog,vi as DialogClose,hi as DialogContent,wi as DialogDescription,Ci as DialogFooter,Bi as DialogHeader,Ti as DialogOverlay,ki as DialogPortal,yi as DialogTitle,Li as DialogTrigger,Xr as DiscordLogo,ti as DisplayVoteModal,et as DollarIcon,tt as DrepFallback,v as Dropdown,H as EmptyState,vo as EnvironmentBadge,ir as EpochCell,pi as ExportTableModal,oo as ExtraLabelBadge,qr as Facebook,ot as FacebookLogo,Bo as FeatureModal,Wo as FunnelFilter,Zr as GithubLogo,h as GlobalSearch,Wr as GlobalSearchProvider,Zi as GlobalTable,no as GovernanceStatusBadge,L as Header,di as HeaderBannerSubtitle,D as Icon,lo as Image,po as InfoCard,wo as Input,ui as JsonDisplay,io as LabelBadge,P as Loading,A as LoadingSkeleton,_i as MainLogo,fi as MinMaxRange,oi as MintedByCard,ai as MobileMenuAccordionItem,ii as MobileTabsSelector,X as Modal,No as NavigationMenu,Ro as NavigationMenuContent,Go as NavigationMenuIndicator,Oo as NavigationMenuItem,Vo as NavigationMenuLink,zo as NavigationMenuList,Eo as NavigationMenuTrigger,Po as NoResultsFound,jo as OverviewCard,fo as OverviewStatCard,N as Pagination,R as PaginationComponent,G as PaginationContent,O as PaginationEllipsis,V as PaginationItem,z as PaginationLink,E as PaginationNext,J as PaginationPrevious,co as PoolCell,st as PoolFallback,Gi as Popover,Oi as PopoverAnchor,Vi as PopoverContent,zi as PopoverTrigger,ji as PriceAdaSmallAmount,ro as ProBadge,U as ProtocolDot,I as PulseDot,mo as PurposeBadge,_ as RangeSlider,To as SafetyLinkModal,ho as ScreenDropdown,eo as ScriptBadge,Jo as Select,Ho as SelectContent,Uo as SelectGroup,Yo as SelectItem,qo as SelectLabel,Ko as SelectScrollDownButton,Qo as SelectScrollUpButton,Xo as SelectSeparator,Zo as SelectTrigger,$o as SelectValue,Io as SensitiveContentWarning,F as ShareButton,Ao as SingleItemCarousel,uo as SizeCard,xo as SizeCell,Y as SortArrow,li as SpinningLoader,go as StakeCell,Q as Switch,Ji as Table,Hi as TableBody,Ui as TableCaption,Yi as TableCell,qi as TableFooter,Ki as TableHead,Qi as TableHeader,Xi as TableRow,Co as TableSearchInput,_o as TableSettingsDropdown,ri as Tabs,$r as TelegramLogo,q as TextDisplay,w as TextInput,ci as TimeDateIndicator,bo as TitleSort,M as Tooltip,xi as TotalSumWithRates,K as TrendingArrow,W as TruncatedText,it as TwitchLogo,Qr as Twitter,_r as TwitterLogo,f as VOTE_OPTIONS,gi as ViewSwitch,so as VoteBadge,to as VoterRoleBadge,bi as VotingBreakdownTooltip,rt as YoutubeLogo,o as breakpoints,i as buttonVariants,nr as cn,r as colors,ar as convertJSONToCSV,ur as convertUtcToLocal,s as currencies,e as currencyPosition,m as currencySigns,n as currencySpace,er as encodeAssetName,pr as findLabel,Fr as formatBitcoinWithSub,Sr as formatCurrency,dr as formatDate,fr as formatNumber,jr as formatNumberWithSuffix,lr as formatSecondsToTime,Mr as formatSmallValueWithSub,cr as formatString,xr as formatTimeAgo,gr as formatTimeIn,vr as generateUrlWithParams,tr as getAddressTypeInitials,mr as getAssetFingerprint,hr as getBrowserTheme,Dr as getCategories,wr as getColumnsSortOrder,Cr as getExportJSON,Tr as getGovActionStatus,Br as getNodeText,Ar as getTruncatedTitle,Ur as handleCreateStore,Yr as handlePersistStore,Pr as hasImageInChildren,kr as isMobileDevice,yr as lovelaceToAda,Lr as paginateArray,sr as parseShelleyAddress,a as radiuses,p as shadows,u as spacing,br as toUtcDate,Ir as truncateTitle,d as typography,Or as useCurrencyStore,Rr as useDebounce,Vr as useDropdownState,Nr as useGlobalSearch,zr as useInfiniteScrollingStore,Er as useLocaleStore,Jr as useThemeStore,Hr as useViewStore,Gr 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 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};
package/dist/index.js.gz CHANGED
Binary file
@@ -27,6 +27,7 @@ interface GlobalSearchContextProps {
27
27
  searchRef: React.RefObject<HTMLDivElement>;
28
28
  isLoading: boolean;
29
29
  data: MiscSearch[];
30
+ generateImageUrl?: (id: string, size: string, type: string) => string;
30
31
  setRecentSearch: Dispatch<SetStateAction<string[]>>;
31
32
  setSearchCategory: Dispatch<SetStateAction<Category>>;
32
33
  handleSearchChange: (value: string) => void;
@@ -64,6 +65,16 @@ interface GlobalSearchProviderProps {
64
65
  * @example "es"
65
66
  */
66
67
  locale: Locales;
68
+ /**
69
+ * Function to generate image URLs for search result entities.
70
+ * Used to display pool logos, asset icons, DRep avatars, etc.
71
+ *
72
+ * @param id - Entity identifier (pool ID, asset fingerprint, etc.)
73
+ * @param size - Image size variant ("ico", "sm", "md", "lg")
74
+ * @param type - Entity type ("pool", "token", "drep", etc.)
75
+ * @returns Image URL string
76
+ */
77
+ generateImageUrl?: (id: string, size: string, type: string) => string;
67
78
  }
68
79
  /**
69
80
  * Provider component for global blockchain search functionality.
@@ -1 +1 @@
1
- {"version":3,"file":"GlobalSearchContext.d.ts","sourceRoot":"","sources":["../../src/providers/GlobalSearchContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAKjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAChB,KAAK,GACL,IAAI,GACJ,OAAO,GACP,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,WAAW,GACX,MAAM,GACN,SAAS,GACT,MAAM,GACN,MAAM,GACN,qBAAqB,CAAC;AAsB1B;;;;GAIG;AACH,UAAU,wBAAwB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,EAAE,QAAQ,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;IAC7C,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC/C,SAAS,EAAE,KAAK,CAAC,SA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{createContext as r,useState as o,useRef as a,useEffect as s,useContext as l}from"react";import{getCategories as n}from"../utils/search/getCategories.js";const c=r(null),i=({children:r,useFetchMiscSearch:l,locale:i})=>{const[h,d]=o(!1),[u,g]=o("all"),[f,m]=o(""),[v,S]=o("all"),[p,b]=o(!1),[w,y]=o([]),C=a(null),W=a(null),I=t(f.toLowerCase()),L=t(p,300),{data:O,isLoading:R,isFetching:_}=l(I&&I.length>=3?I.replace("$",""):void 0,"all"!==v?v:void 0,i),J=n(null==O?void 0:O.data),N=e=>{d("focus"===e)};s(()=>{if(!C.current)return;const e=C.current,t=new ResizeObserver(()=>{const t=Math.floor(e.scrollWidth),r=Math.floor(e.clientWidth);b(t-r>20)});return t.observe(e),()=>t.disconnect()},[]),s(()=>{const e=e=>{W.current&&!W.current.contains(e.target)&&N("blur")};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),s(()=>{if(R||_){const e="global_search",t=localStorage.getItem(e);if(!t)return void localStorage.setItem(e,JSON.stringify([f]));const r=[f,...JSON.parse(t).slice(0,9).flat()];localStorage.setItem(e,JSON.stringify([...new Set(r)]))}},[R,_]);const j={focused:h,categoriesOverflow:L,search:f,searchCategory:v,recentSearch:w,activeTab:u,categories:J,categoriesRef:C,isLoading:R,searchRef:W,data:Array.isArray(null==O?void 0:O.data)?O.data:void 0===O?[]:[O.data],setRecentSearch:y,setSearchCategory:S,handleSearchChange:e=>{m(e);const t=(e=>{const t=e.toLowerCase().trim();return t.startsWith("addr")?"address":t.startsWith("pool")?"pool":t.startsWith("stake")?"stake":t.startsWith("asset")?"asset":t.startsWith("gov_action")?"gov_action_proposal":t.startsWith("drep")?"drep":null})(e);t?(S(t),g(t)):0===e.length&&(S("all"),g("all"))},handleInput:N,handleCategoryChange:e=>{g(e)},handleSearchRecentDelete:e=>{const t="global_search";if(localStorage.getItem(t)&&w[e]){const r=[...w];r.splice(e,1),localStorage.setItem(t,JSON.stringify(r)),y(r)}},scroll:e=>{const t=C.current;if(t){const r=150;t.scrollBy({left:"left"===e?-r:r,behavior:"smooth"})}}};return e(c.Provider,{value:j,children:r})},h=()=>{const e=l(c);if(!e)throw Error("useGlobalSearch must be used within a GlobalSearchProvider");return e};export{i as GlobalSearchProvider,h as useGlobalSearch};
1
+ import{jsx as e}from"react/jsx-runtime";import{useDebounce as t}from"../hooks/useDebounce.js";import{createContext as r,useState as a,useRef as o,useEffect as s,useContext as l}from"react";import{getCategories as n}from"../utils/search/getCategories.js";const c=r(null),i=({children:r,useFetchMiscSearch:l,locale:i,generateImageUrl:h})=>{const[d,u]=a(!1),[g,m]=a("all"),[f,v]=a(""),[S,p]=a("all"),[b,w]=a(!1),[y,C]=a([]),I=o(null),W=o(null),L=t(f.toLowerCase()),O=t(b,300),{data:R,isLoading:_,isFetching:J}=l(L&&L.length>=3?L.replace("$",""):void 0,"all"!==S?S:void 0,i),N=n(null==R?void 0:R.data),j=e=>{u("focus"===e)};s(()=>{if(!I.current)return;const e=I.current,t=new ResizeObserver(()=>{const t=Math.floor(e.scrollWidth),r=Math.floor(e.clientWidth);w(t-r>20)});return t.observe(e),()=>t.disconnect()},[]),s(()=>{const e=e=>{W.current&&!W.current.contains(e.target)&&j("blur")};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),s(()=>{if(_||J){const e="global_search",t=localStorage.getItem(e);if(!t)return void localStorage.setItem(e,JSON.stringify([f]));const r=[f,...JSON.parse(t).slice(0,9).flat()];localStorage.setItem(e,JSON.stringify([...new Set(r)]))}},[_,J]);const k={focused:d,categoriesOverflow:O,search:f,searchCategory:S,recentSearch:y,activeTab:g,categories:N,categoriesRef:I,isLoading:_,searchRef:W,generateImageUrl:h,data:Array.isArray(null==R?void 0:R.data)?R.data:void 0===R?[]:[R.data],setRecentSearch:C,setSearchCategory:p,handleSearchChange:e=>{v(e);const t=(e=>{const t=e.toLowerCase().trim();return t.startsWith("addr")?"address":t.startsWith("pool")?"pool":t.startsWith("stake")?"stake":t.startsWith("asset")?"asset":t.startsWith("gov_action")?"gov_action_proposal":t.startsWith("drep")?"drep":null})(e);t?(p(t),m(t)):0===e.length&&(p("all"),m("all"))},handleInput:j,handleCategoryChange:e=>{m(e)},handleSearchRecentDelete:e=>{const t="global_search";if(localStorage.getItem(t)&&y[e]){const r=[...y];r.splice(e,1),localStorage.setItem(t,JSON.stringify(r)),C(r)}},scroll:e=>{const t=I.current;if(t){const r=150;t.scrollBy({left:"left"===e?-r:r,behavior:"smooth"})}}};return e(c.Provider,{value:k,children:r})},h=()=>{const e=l(c);if(!e)throw Error("useGlobalSearch must be used within a GlobalSearchProvider");return e};export{i as GlobalSearchProvider,h as useGlobalSearch};
@@ -0,0 +1 @@
1
+ const I="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiByeD0iMjAiIGZpbGw9IiNGMkY0RjciLz4KPGcgb3BhY2l0eT0iMC4wOCI+CjxyZWN0IHg9IjAuMzc1IiB5PSIwLjM3NSIgd2lkdGg9IjM5LjI1IiBoZWlnaHQ9IjM5LjI1IiByeD0iMTkuNjI1IiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjAuNzUiLz4KPC9nPgo8cGF0aCBkPSJNMjAgMTJDMTUuNTgxNyAxMiAxMiAxNS41ODE3IDEyIDIwQzEyIDI0LjQxODMgMTUuNTgxNyAyOCAyMCAyOEMyNC40MTgzIDI4IDI4IDI0LjQxODMgMjggMjBDMjggMTUuNTgxNyAyNC40MTgzIDEyIDIwIDEyWiIgc3Ryb2tlPSIjNDc1NDY3IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMjAgMTZWMjRNMTYgMjBIMjQiIHN0cm9rZT0iIzQ3NTQ2NyIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==";export{I as default};
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Props for the AddBookmarkModal component.
3
+ *
4
+ * @interface AddBookmarkModalProps
5
+ */
6
+ export interface AddBookmarkModalProps {
7
+ /**
8
+ * Callback function when modal should close.
9
+ */
10
+ onClose: () => void;
11
+ /**
12
+ * Callback function when bookmark is saved.
13
+ * Receives the personal name entered by the user.
14
+ *
15
+ * @param name - The personal name/tag for the bookmark
16
+ */
17
+ onSave: (name: string) => void;
18
+ /**
19
+ * Modal title text.
20
+ * @default "Add bookmark"
21
+ */
22
+ title?: string;
23
+ /**
24
+ * Modal description text.
25
+ * @default "Save this page to your bookmarks for quick access."
26
+ */
27
+ description?: string;
28
+ /**
29
+ * Label for the name input field.
30
+ * @default "Personal name"
31
+ */
32
+ nameLabel?: string;
33
+ /**
34
+ * Placeholder for the name input field.
35
+ * @default "Enter a name for this bookmark"
36
+ */
37
+ namePlaceholder?: string;
38
+ /**
39
+ * Cancel button label.
40
+ * @default "Cancel"
41
+ */
42
+ cancelLabel?: string;
43
+ /**
44
+ * Save button label.
45
+ * @default "Save bookmark"
46
+ */
47
+ saveLabel?: string;
48
+ }
49
+ /**
50
+ * Modal for adding a new bookmark.
51
+ *
52
+ * Displays a form with a text input for entering a personal name/tag
53
+ * for the bookmark. The save button is disabled until a name is entered.
54
+ *
55
+ * @component
56
+ * @example
57
+ * ```tsx
58
+ * <AddBookmarkModal
59
+ * onClose={() => setIsOpen(false)}
60
+ * onSave={(name) => {
61
+ * saveToLocalStorage({ title: pageTitle, url: window.location.href, name });
62
+ * setIsOpen(false);
63
+ * }}
64
+ * />
65
+ * ```
66
+ *
67
+ * @param {AddBookmarkModalProps} props - Component props
68
+ * @returns {JSX.Element} Add bookmark modal
69
+ */
70
+ export declare const AddBookmarkModal: ({ onClose, onSave, title, description, nameLabel, namePlaceholder, cancelLabel, saveLabel, }: AddBookmarkModalProps) => import("react/jsx-runtime").JSX.Element;
71
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/addBookmarkModal/index.tsx"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB;;;;;OAKG;IACH,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAE/B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,gBAAgB,GAAI,8FAS9B,qBAAqB,4CAuDvB,CAAC"}
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as a}from"react";import{Button as l}from"../button/index.js";import{Modal as r}from"../modal/index.js";import{TextInput as m}from"../textInput/index.js";const s=({onClose:s,onSave:i,title:n="Add bookmark",description:o="Save this page to your bookmarks for quick access.",nameLabel:c="Personal name",namePlaceholder:d="Enter a name for this bookmark",cancelLabel:x="Cancel",saveLabel:p="Save bookmark"})=>{const[h,f]=a("");return e(r,{onClose:s,maxWidth:"450px",children:t("div",{className:"flex flex-col gap-4 p-1 md:p-2",children:[t("div",{className:"flex flex-col gap-1",children:[e("h2",{className:"text-text-lg font-semibold text-text",children:n}),e("p",{className:"text-text-sm text-text-muted",children:o})]}),t("div",{className:"flex flex-col gap-1.5",children:[t("label",{className:"text-text-sm font-medium text-text",children:[c," ",e("span",{className:"text-redText",children:"*"})]}),e(m,{value:h,onchange:e=>{e.length<=50&&f(e)},placeholder:d,wrapperClassName:"w-full",maxLength:50}),t("span",{className:"text-text-xs text-text-muted",children:[h.length,"/50"]})]}),t("div",{className:"flex justify-end gap-2 pt-2",children:[e(l,{size:"md",variant:"tertiary",label:x,onClick:s}),e(l,{size:"md",variant:"primary",label:p,onClick:()=>{h.trim()&&i(h.trim())},disabled:!h.trim()})]})]})})};export{s as AddBookmarkModal};
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Props for the BookmarkButton component.
3
+ *
4
+ * @interface BookmarkButtonProps
5
+ */
6
+ export interface BookmarkButtonProps {
7
+ /**
8
+ * Use header variant with smaller size.
9
+ * Header variant is optimized for navigation bars.
10
+ *
11
+ * @default false
12
+ */
13
+ isHeader?: boolean;
14
+ /**
15
+ * Callback function when button is clicked.
16
+ * FE should handle opening the appropriate modal (add/edit/remove).
17
+ */
18
+ onClick?: () => void;
19
+ /**
20
+ * Whether the current page is already bookmarked.
21
+ * When true, the bookmark icon will be filled.
22
+ *
23
+ * @default false
24
+ */
25
+ isBookmarked?: boolean;
26
+ }
27
+ /**
28
+ * Bookmark button component for saving pages to local bookmarks.
29
+ *
30
+ * Features:
31
+ * - Two size variants (header and default)
32
+ * - Visual indicator when page is bookmarked (filled icon)
33
+ * - Consistent styling with ShareButton
34
+ *
35
+ * The component triggers a callback when clicked. The consuming application
36
+ * is responsible for managing bookmark state and showing appropriate modals.
37
+ *
38
+ * @component
39
+ * @example
40
+ * ```tsx
41
+ * // Default size
42
+ * <BookmarkButton onClick={() => setModalOpen(true)} />
43
+ * ```
44
+ *
45
+ * @example
46
+ * ```tsx
47
+ * // Header variant with bookmarked state
48
+ * <BookmarkButton
49
+ * isHeader={true}
50
+ * isBookmarked={true}
51
+ * onClick={handleBookmarkClick}
52
+ * />
53
+ * ```
54
+ *
55
+ * @param {BookmarkButtonProps} props - Component props
56
+ * @returns {JSX.Element} Bookmark button
57
+ */
58
+ export declare const BookmarkButton: ({ isHeader, onClick, isBookmarked, }: BookmarkButtonProps) => import("react/jsx-runtime").JSX.Element;
59
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/bookmarkButton/index.tsx"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,cAAc,GAAI,sCAI5B,mBAAmB,4CAmBrB,CAAC"}
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{useThemeStore as r}from"../../stores/themeStore.js";import{Bookmark as o}from"lucide-react";const t=({isHeader:t=!1,onClick:d,isBookmarked:i=!1})=>{const{theme:s}=r();return e("button",{onClick:d,"aria-label":i?"Edit bookmark":"Add bookmark",className:t?"flex h-[20px] w-[20px] items-center justify-center rounded-[4px] border border-border shadow-xs hover:bg-darker "+("light"===s?"bg-white":"bg-cexdark-800"):"flex h-10 w-10 items-center justify-center rounded-s border border-border hover:bg-darker "+("light"===s?"bg-white":"bg-cexdark-800"),children:e(o,{size:t?10:16,className:i?"fill-current":""})})};export{t as BookmarkButton};
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Props for the BookmarksSideButton component.
3
+ *
4
+ * @interface BookmarksSideButtonProps
5
+ */
6
+ export interface BookmarksSideButtonProps {
7
+ /**
8
+ * Callback function when button is clicked.
9
+ * FE should handle navigation to /bookmarks page.
10
+ */
11
+ onClick?: () => void;
12
+ /**
13
+ * Top position from viewport (supports %, vh, px).
14
+ * Use this to align with header content area.
15
+ * @default "25vh"
16
+ */
17
+ top?: string;
18
+ /**
19
+ * Additional CSS classes for custom styling.
20
+ */
21
+ className?: string;
22
+ /**
23
+ * Custom border color for the button.
24
+ * @example "#75DEFF" or "#0094D4"
25
+ */
26
+ borderColor?: string;
27
+ /**
28
+ * Accessible label for the button.
29
+ * @default "View bookmarks"
30
+ */
31
+ ariaLabel?: string;
32
+ }
33
+ /**
34
+ * Slide-in button fixed to the right side of the screen for accessing bookmarks.
35
+ *
36
+ * This component creates a fixed-position button that peeks from the right edge
37
+ * of the viewport. On hover, it slides out to reveal the full button with a
38
+ * bookmark icon. Clicking navigates to the bookmarks page.
39
+ *
40
+ * **Features:**
41
+ * - Fixed position on right side of viewport
42
+ * - Smooth slide-in/out animation on hover
43
+ * - Theme-aware styling
44
+ * - Configurable vertical position (top prop, supports %, vh, px)
45
+ * - Optional custom border color
46
+ *
47
+ * **Usage:**
48
+ * - Only render this component when user has bookmarks
49
+ * - Place it at the root layout level (outside of page content)
50
+ * - FE handles navigation via onClick
51
+ *
52
+ * @component
53
+ * @example
54
+ * ```tsx
55
+ * // Only show when user has bookmarks
56
+ * {bookmarks.length > 0 && (
57
+ * <BookmarksSideButton onClick={() => navigate("/bookmarks")} />
58
+ * )}
59
+ * ```
60
+ *
61
+ * @example
62
+ * ```tsx
63
+ * // With custom border color
64
+ * <BookmarksSideButton
65
+ * onClick={handleClick}
66
+ * top="70vh"
67
+ * borderColor={theme === "dark" ? "#75DEFF" : "#0094D4"}
68
+ * />
69
+ * ```
70
+ *
71
+ * @param {BookmarksSideButtonProps} props - Component props
72
+ * @returns {JSX.Element} Slide-in bookmark button
73
+ */
74
+ export declare const BookmarksSideButton: ({ onClick, top, className, borderColor, ariaLabel, }: BookmarksSideButtonProps) => import("react/jsx-runtime").JSX.Element;
75
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/bookmarksSideButton/index.tsx"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,mBAAmB,GAAI,sDAMjC,wBAAwB,4CA8B1B,CAAC"}
@@ -0,0 +1 @@
1
+ import{jsx as e}from"react/jsx-runtime";import{useThemeStore as r}from"../../stores/themeStore.js";import{Bookmark as t}from"lucide-react";const o=({onClick:o,top:a="25vh",className:s="",borderColor:n,ariaLabel:i="View bookmarks"})=>{const{theme:l}=r();return e("button",{onClick:o,"aria-label":i,className:`fixed right-0 z-50 flex items-center justify-center rounded-l-m transition-all duration-300 ease-in-out ${"light"===l?"bg-white":"bg-cexdark-800"} ${s}`,style:{top:a,transform:"translateX(70%)",border:n?"1px solid "+n:"1px solid var(--color-border)",borderRight:"none"},onMouseEnter:e=>{e.currentTarget.style.transform="translateX(0)"},onMouseLeave:e=>{e.currentTarget.style.transform="translateX(70%)"},children:e("div",{className:"flex h-[48px] w-[48px] items-center justify-center",children:e(t,{size:20})})})};export{o as BookmarksSideButton};
@@ -111,6 +111,13 @@ export interface DropdownProps {
111
111
  * @default false
112
112
  */
113
113
  withBorder?: boolean;
114
+ /**
115
+ * Disable scroll inside the dropdown menu.
116
+ *
117
+ * @optional
118
+ * @default false
119
+ */
120
+ disableScroll?: boolean;
114
121
  }
115
122
  /**
116
123
  * Dropdown menu component with support for nested options, keyboard navigation, and smart positioning.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/dropdown/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGjE,OAAO,KAAK,EAAE,EAAE,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAU1D;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;;;;;;;;;OAYG;IACH,OAAO,EAAE,iBAAiB,CAAC;IAC3B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;;;OAOG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC;;;;;;;OAOG;IACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3C;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA+UtC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/dropdown/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGjE,OAAO,KAAK,EAAE,EAAE,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAU1D;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;;;;;;;;;OAYG;IACH,OAAO,EAAE,iBAAiB,CAAC;IAC3B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;;;OAOG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC;;;;;;;OAOG;IACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3C;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAgVtC,CAAC"}
@@ -1 +1 @@
1
- import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{useDropdownState as l}from"../../stores/dropdownState.js";import{Link as o}from"@tanstack/react-router";import{ChevronDown as a,ChevronRight as n}from"lucide-react";import{useState as i,createRef as d,useLayoutEffect as s,useEffect as u,Fragment as c}from"react";import{createPortal as f}from"react-dom";const m=({id:m,label:p,options:b,width:h="190px",hideChevron:v=!1,triggerClassName:g,disableHover:w=!1,closeOnSelect:x=!1,forceVerticalPosition:k,forceHorizontalPosition:y,poppoverClassname:C,wrapperClassname:N,withBorder:z=!1})=>{const{openId:M,setOpenId:j}=l(),[E,O]=i(!1),[T,D]=i(!1),[L,$]=i(!1),[B,A]=i(0),[H,I]=i(null),[P,R]=i({top:0,left:0}),S=d(),F=d(),K=d();let U,V;const W=()=>{L||(E||D(!T),O(!E),j(M===m?null:m))},_=()=>{w||T||(U=setTimeout(()=>{O(!1)},250))},q=()=>{V=setTimeout(()=>{I(null)},250)};return s(()=>{E&&(()=>{if(!F.current||!K.current)return;const e=F.current.getBoundingClientRect(),t=K.current.getBoundingClientRect(),r=window.innerHeight,l=e.width>t.left,o=r<t.bottom+e.height,a=y||(l?"right":"left"),n="up"==(o&&!k?"up":"down")?t.top-e.height-3:t.bottom+3,i="left"===a?t.right-e.width:t.left;R({top:n,left:i})})()},[E]),u(()=>{const e=new AbortController,t=e.signal;return E&&document.addEventListener("mousedown",e=>{var t,r,l;x?setTimeout(()=>{O(!1),D(!1)},150):F.current&&!F.current.contains(e.target)&&((null==(t=null==K?void 0:K.current)?void 0:t.contains(e.target))||(null==(r=null==S?void 0:S.current)?void 0:r.contains(e.target))||(null==(l=null==F?void 0:F.current)?void 0:l.contains(e.target))||(O(!1),D(!1)))},{signal:t}),()=>{e.abort()}},[E,F,K,S,x]),u(()=>{if(!E)return;const e=F.current,t=t=>{e&&e.contains(t.target)||(O(!1),D(!1))};return window.addEventListener("scroll",t,{capture:!0}),()=>window.removeEventListener("scroll",t,{capture:!0})},[E]),u(()=>{M&&M!==m&&O(!1)},[M,m]),e("div",{className:`relative ${E?"z-[16]":"z-[15]"} font-medium ${N||""}`,onMouseEnter:()=>{w||(clearTimeout(U),$(!0),setTimeout(()=>{$(!1)},300),O(!0),M!==m&&j(m))},onMouseLeave:_,ref:S,onKeyDown:e=>{var t,r;switch(e.key){case"ArrowDown":e.preventDefault(),O(!0),A(e=>(e+1)%b.length);break;case"ArrowUp":e.preventDefault(),O(!0),A(e=>(e-1+b.length)%b.length);break;case"Enter":case" ":e.preventDefault(),E&&(null==(t=b[B])?void 0:t.onClick)?(null==(r=b[B])||r.onClick(),x&&_()):W();break;case"Escape":_()}},children:[e("button",{ref:K,onClick:W,className:"flex items-center justify-between gap-1/2 bg-transparent "+g,"aria-haspopup":"menu","aria-expanded":E,children:[t("span",{className:"text-text-sm",children:p}),!v&&t("span",{children:t(a,{size:16,strokeWidth:2.5,className:"translate-y-[1px] duration-150 "+(E&&"rotate-180")})})]}),E&&f(t("div",{ref:F,className:`animate-in fixed z-50 max-h-[300px] overflow-y-auto rounded-m bg-background p-1 text-text-sm shadow-md ${z?"border border-border":""} ${C||""}`,style:{width:h,top:P.top+"px",left:P.left+"px"},children:b.filter(e=>e).map((l,a)=>t(c,{children:(null==l?void 0:l.href)&&l.href.includes("http")?t("a",{href:l.href,target:"_blank",className:"first:rounded-t-lg last:rounded-b-lg z-50 border-b border-border last:border-b-0 hover:bg-darker hover:text-primary "+(l.divider?"after:absolute after:bottom-0 after:left-0 after:h-[1px] after:w-full after:bg-border":""),style:{display:"block",padding:"10px"},role:"menuitem","aria-label":"Menu item",onClick:()=>O(!1),children:l.label}):(null==l?void 0:l.href)?t(o,{to:l.href,search:(null==l?void 0:l.params)??void 0,className:"relative rounded-m hover:bg-darker hover:text-primary "+(l.divider?"after:absolute after:bottom-0 after:left-0 after:h-[1px] after:w-full after:bg-border":""),style:{display:"block",padding:"10px"},role:"menuitem","aria-label":"Menu item",onClick:()=>O(!1),children:l.label}):t("div",{className:`relative flex w-full justify-between rounded-m p-1.5 ${l.divider?"after:absolute after:bottom-0 after:left-0 after:h-[1px] after:w-full after:bg-border":""} hover:bg-darker hover:text-primary`,onClick:null==l?void 0:l.onClick,style:{cursor:"pointer"},role:"menuitem","aria-label":"Menu item",children:(null==l?void 0:l.nestedOptions)?e("div",{onMouseOver:()=>{return e=l.label+"",clearTimeout(V),void I(e);var e},onMouseLeave:q,className:"relative flex w-full items-center justify-between",children:[l.label,l.nestedOptions&&t(n,{size:15}),H===l.label&&t("div",{className:"absolute left-[110%] top-0 z-50 rounded-l border border-border bg-cardBg p-1 shadow-md",style:{width:h},children:l.nestedOptions.map((e,r)=>t(o,{to:null==e?void 0:e.href,className:"relative flex w-full justify-between rounded-m text-text hover:bg-darker hover:text-primary "+(l.divider?"after:absolute after:bottom-0 after:left-0 after:h-[1px] after:w-full after:bg-border":""),style:{padding:"10px",cursor:"pointer"},role:"menuitem","aria-label":"Menu item",onClick:()=>{(null==e?void 0:e.onClick)&&(null==e||e.onClick()),O(!1),I(null)},children:null==e?void 0:e.label},r))})]}):t(r,{children:null==l?void 0:l.label})})},a))}),document.body)]})};export{m as Dropdown};
1
+ import{jsxs as e,jsx as t,Fragment as r}from"react/jsx-runtime";import{useDropdownState as l}from"../../stores/dropdownState.js";import{Link as o}from"@tanstack/react-router";import{ChevronDown as a,ChevronRight as n}from"lucide-react";import{useState as i,createRef as d,useLayoutEffect as s,useEffect as u,Fragment as c}from"react";import{createPortal as f}from"react-dom";const m=({id:m,label:p,options:b,width:h="190px",hideChevron:v=!1,triggerClassName:g,disableHover:w=!1,closeOnSelect:x=!1,forceVerticalPosition:k,forceHorizontalPosition:y,poppoverClassname:C,wrapperClassname:N,withBorder:z=!1,disableScroll:M=!1})=>{const{openId:j,setOpenId:E}=l(),[O,T]=i(!1),[$,D]=i(!1),[L,B]=i(!1),[A,H]=i(0),[S,I]=i(null),[P,R]=i({top:0,left:0}),F=d(),K=d(),U=d();let V,W;const _=()=>{L||(O||D(!$),T(!O),E(j===m?null:m))},q=()=>{w||$||(V=setTimeout(()=>{T(!1)},250))},G=()=>{W=setTimeout(()=>{I(null)},250)};return s(()=>{O&&(()=>{if(!K.current||!U.current)return;const e=K.current.getBoundingClientRect(),t=U.current.getBoundingClientRect(),r=window.innerHeight,l=e.width>t.left,o=r<t.bottom+e.height,a=y||(l?"right":"left"),n="up"==(o&&!k?"up":"down")?t.top-e.height-3:t.bottom+3,i="left"===a?t.right-e.width:t.left;R({top:n,left:i})})()},[O]),u(()=>{const e=new AbortController,t=e.signal;return O&&document.addEventListener("mousedown",e=>{var t,r,l;x?setTimeout(()=>{T(!1),D(!1)},150):K.current&&!K.current.contains(e.target)&&((null==(t=null==U?void 0:U.current)?void 0:t.contains(e.target))||(null==(r=null==F?void 0:F.current)?void 0:r.contains(e.target))||(null==(l=null==K?void 0:K.current)?void 0:l.contains(e.target))||(T(!1),D(!1)))},{signal:t}),()=>{e.abort()}},[O,K,U,F,x]),u(()=>{if(!O)return;const e=K.current,t=t=>{e&&e.contains(t.target)||(T(!1),D(!1))};return window.addEventListener("scroll",t,{capture:!0}),()=>window.removeEventListener("scroll",t,{capture:!0})},[O]),u(()=>{j&&j!==m&&T(!1)},[j,m]),e("div",{className:`relative ${O?"z-[16]":"z-[15]"} font-medium ${N||""}`,onMouseEnter:()=>{w||(clearTimeout(V),B(!0),setTimeout(()=>{B(!1)},300),T(!0),j!==m&&E(m))},onMouseLeave:q,ref:F,onKeyDown:e=>{var t,r;switch(e.key){case"ArrowDown":e.preventDefault(),T(!0),H(e=>(e+1)%b.length);break;case"ArrowUp":e.preventDefault(),T(!0),H(e=>(e-1+b.length)%b.length);break;case"Enter":case" ":e.preventDefault(),O&&(null==(t=b[A])?void 0:t.onClick)?(null==(r=b[A])||r.onClick(),x&&q()):_();break;case"Escape":q()}},children:[e("button",{ref:U,onClick:_,className:"flex items-center justify-between gap-1/2 bg-transparent "+g,"aria-haspopup":"menu","aria-expanded":O,children:[t("span",{className:"text-text-sm",children:p}),!v&&t("span",{children:t(a,{size:16,strokeWidth:2.5,className:"translate-y-[1px] duration-150 "+(O&&"rotate-180")})})]}),O&&f(t("div",{ref:K,className:`animate-in fixed z-50 rounded-m bg-background p-1 text-text-sm shadow-md ${M?"":"max-h-[300px] overflow-y-auto"} ${z?"border border-border":""} ${C||""}`,style:{width:h,top:P.top+"px",left:P.left+"px"},children:b.filter(e=>e).map((l,a)=>t(c,{children:(null==l?void 0:l.href)&&l.href.includes("http")?t("a",{href:l.href,target:"_blank",className:"first:rounded-t-lg last:rounded-b-lg z-50 border-b border-border last:border-b-0 hover:bg-darker hover:text-primary "+(l.divider?"after:absolute after:bottom-0 after:left-0 after:h-[1px] after:w-full after:bg-border":""),style:{display:"block",padding:"10px"},role:"menuitem","aria-label":"Menu item",onClick:()=>T(!1),children:l.label}):(null==l?void 0:l.href)?t(o,{to:l.href,search:(null==l?void 0:l.params)??void 0,className:"relative rounded-m hover:bg-darker hover:text-primary "+(l.divider?"after:absolute after:bottom-0 after:left-0 after:h-[1px] after:w-full after:bg-border":""),style:{display:"block",padding:"10px"},role:"menuitem","aria-label":"Menu item",onClick:()=>T(!1),children:l.label}):t("div",{className:`relative flex w-full justify-between rounded-m p-1.5 ${l.divider?"after:absolute after:bottom-0 after:left-0 after:h-[1px] after:w-full after:bg-border":""} hover:bg-darker hover:text-primary`,onClick:null==l?void 0:l.onClick,style:{cursor:"pointer"},role:"menuitem","aria-label":"Menu item",children:(null==l?void 0:l.nestedOptions)?e("div",{onMouseOver:()=>{return e=l.label+"",clearTimeout(W),void I(e);var e},onMouseLeave:G,className:"relative flex w-full items-center justify-between",children:[l.label,l.nestedOptions&&t(n,{size:15}),S===l.label&&t("div",{className:"absolute left-[110%] top-0 z-50 rounded-l border border-border bg-cardBg p-1 shadow-md",style:{width:h},children:l.nestedOptions.map((e,r)=>t(o,{to:null==e?void 0:e.href,className:"relative flex w-full justify-between rounded-m text-text hover:bg-darker hover:text-primary "+(l.divider?"after:absolute after:bottom-0 after:left-0 after:h-[1px] after:w-full after:bg-border":""),style:{padding:"10px",cursor:"pointer"},role:"menuitem","aria-label":"Menu item",onClick:()=>{(null==e?void 0:e.onClick)&&(null==e||e.onClick()),T(!1),I(null)},children:null==e?void 0:e.label},r))})]}):t(r,{children:null==l?void 0:l.label})})},a))}),document.body)]})};export{m as Dropdown};
Binary file
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Props for the EditBookmarkModal component.
3
+ *
4
+ * @interface EditBookmarkModalProps
5
+ */
6
+ export interface EditBookmarkModalProps {
7
+ /**
8
+ * Callback function when modal should close.
9
+ */
10
+ onClose: () => void;
11
+ /**
12
+ * Callback function when bookmark is updated.
13
+ * Receives the new name entered by the user.
14
+ *
15
+ * @param newName - The new personal name/tag for the bookmark
16
+ */
17
+ onSave: (newName: string) => void;
18
+ /**
19
+ * Current name of the bookmark.
20
+ * Displayed in a disabled input field.
21
+ */
22
+ currentName: string;
23
+ /**
24
+ * Modal title text.
25
+ * @default "Edit bookmark"
26
+ */
27
+ title?: string;
28
+ /**
29
+ * Modal description text.
30
+ * @default "Change the name of your bookmark."
31
+ */
32
+ description?: string;
33
+ /**
34
+ * Label for the current name field.
35
+ * @default "Current name"
36
+ */
37
+ currentNameLabel?: string;
38
+ /**
39
+ * Label for the new name input field.
40
+ * @default "New name"
41
+ */
42
+ newNameLabel?: string;
43
+ /**
44
+ * Placeholder for the new name input field.
45
+ * @default "Enter a new name"
46
+ */
47
+ newNamePlaceholder?: string;
48
+ /**
49
+ * Cancel button label.
50
+ * @default "Cancel"
51
+ */
52
+ cancelLabel?: string;
53
+ /**
54
+ * Save button label.
55
+ * @default "Edit bookmark"
56
+ */
57
+ saveLabel?: string;
58
+ }
59
+ /**
60
+ * Modal for editing an existing bookmark.
61
+ *
62
+ * Displays the current bookmark name in a disabled field and provides
63
+ * an input for entering a new name. The save button is disabled until
64
+ * a new name is entered.
65
+ *
66
+ * @component
67
+ * @example
68
+ * ```tsx
69
+ * <EditBookmarkModal
70
+ * currentName="Binance Address"
71
+ * onClose={() => setIsOpen(false)}
72
+ * onSave={(newName) => {
73
+ * updateBookmark(bookmarkId, newName);
74
+ * setIsOpen(false);
75
+ * }}
76
+ * />
77
+ * ```
78
+ *
79
+ * @param {EditBookmarkModalProps} props - Component props
80
+ * @returns {JSX.Element} Edit bookmark modal
81
+ */
82
+ export declare const EditBookmarkModal: ({ onClose, onSave, currentName, title, description, currentNameLabel, newNameLabel, newNamePlaceholder, cancelLabel, saveLabel, }: EditBookmarkModalProps) => import("react/jsx-runtime").JSX.Element;
83
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/editBookmarkModal/index.tsx"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB;;;;;OAKG;IACH,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAElC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,iBAAiB,GAAI,mIAW/B,sBAAsB,4CAoExB,CAAC"}
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as a}from"react";import{Button as l}from"../button/index.js";import{Modal as r}from"../modal/index.js";import{TextInput as m}from"../textInput/index.js";const n=({onClose:n,onSave:i,currentName:s,title:c="Edit bookmark",description:o="Change the name of your bookmark.",currentNameLabel:d="Current name",newNameLabel:x="New name",newNamePlaceholder:p="Enter a new name",cancelLabel:h="Cancel",saveLabel:f="Edit bookmark"})=>{const[N,u]=a(s);return e(r,{onClose:n,maxWidth:"450px",children:t("div",{className:"flex flex-col gap-4 p-1 md:p-2",children:[t("div",{className:"flex flex-col gap-1",children:[e("h2",{className:"text-text-lg font-semibold text-text",children:c}),e("p",{className:"text-text-sm text-text-muted",children:o})]}),t("div",{className:"flex flex-col gap-1.5",children:[e("label",{className:"text-text-sm font-medium text-text",children:d}),e(m,{value:s,onchange:()=>{},placeholder:"",disabled:!0,wrapperClassName:"w-full"})]}),t("div",{className:"flex flex-col gap-1.5",children:[t("label",{className:"text-text-sm font-medium text-text",children:[x," ",e("span",{className:"text-redText",children:"*"})]}),e(m,{value:N,onchange:e=>{e.length<=50&&u(e)},placeholder:p,wrapperClassName:"w-full",maxLength:50}),t("span",{className:"text-text-xs text-text-muted",children:[N.length,"/50"]})]}),t("div",{className:"flex justify-end gap-2 pt-2",children:[e(l,{size:"md",variant:"tertiary",label:h,onClick:n}),e(l,{size:"md",variant:"primary",label:f,onClick:()=>{N.trim()&&N.trim()!==s&&i(N.trim())},disabled:!N.trim()||N.trim()===s})]})]})})};export{n as EditBookmarkModal};
@@ -1 +1 @@
1
- {"version":3,"file":"GlobalSearchCell.d.ts","sourceRoot":"","sources":["../../../../src/ui/globalSearch/components/GlobalSearchCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAUhC,UAAU,qBAAqB;IAC7B,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAiGtD,CAAC"}
1
+ {"version":3,"file":"GlobalSearchCell.d.ts","sourceRoot":"","sources":["../../../../src/ui/globalSearch/components/GlobalSearchCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAqBhC,UAAU,qBAAqB;IAC7B,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;CACtB;AAkFD,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAwGtD,CAAC"}
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{DateCell as a}from"../../dateCell/index.js";import{formatString as r}from"../../../utils/format.js";import{Link as s}from"@tanstack/react-router";import{useGlobalSearch as l}from"../../../providers/GlobalSearchContext.js";import{AdaWithTooltip as o}from"../../adaWithTooltip/index.js";const i=({item:i,formatTitle:d})=>{const{handleInput:n,handleSearchChange:p}=l(),{title:c,ident:x,category:m,...h}=i,u=h.url.replace("/gov/action",""),{to:f,params:b}={to:{pool:"/pool/$id",asset:"/asset/$fingerprint",tx:"/tx/$hash",block:"/block/$hash",stake:"/stake/$stakeAddr",address:"/address/$address",adahandle:"/address/$address",policy:"/policy/$policyId",drep:"/drep/$hash",gov_action_proposal:"/gov/action/"+u.replace("#","%23"),page:h.url,user:h.url,article:h.url},params:{drep:{hash:x},pool:{id:x},asset:{fingerprint:x},tx:{hash:x},block:{hash:x},stake:{stakeAddr:x},address:{address:x},adahandle:{address:x},policy:{policyId:x}}};return e(s,{to:f[m],params:b[m],children:t("div",{className:"flex w-full cursor-pointer items-stretch justify-between border-b border-border pb-1/2 pt-1.5 transition-all duration-100 last:border-b-0 hover:bg-cardBg",onClick:()=>{n("blur"),p("")},children:[t("div",{className:"flex w-fit max-w-[390px] flex-col break-words text-text-sm text-primary",children:[e("span",{className:"font-semibold",children:d?r(c,"long"):c}),e("span",{className:"text-text-xs text-grayTextPrimary",children:["page","article"].includes(m)?null==h?void 0:h.url:r(x,"long")})]}),h.extra.value&&h.extra.type&&t("div",{className:"flex min-w-[70px] flex-col items-start justify-center text-nowrap text-text",children:["string"==typeof h.extra.value?e(a,{time:h.extra.value,className:"text-text-xs",tabularNums:!1,withoutConvert:!0}):e("span",{className:"text-text-sm text-text",children:e(o,{data:h.extra.value})}),e("span",{className:"text-text-sm text-grayTextPrimary",children:h.extra.type[0].toUpperCase()+h.extra.type.slice(1)})]})]})})};export{i as GlobalSearchCell};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{DateCell as a}from"../../dateCell/index.js";import{formatString as r}from"../../../utils/format.js";import{Link as s}from"@tanstack/react-router";import{useGlobalSearch as l}from"../../../providers/GlobalSearchContext.js";import{AdaWithTooltip as o}from"../../adaWithTooltip/index.js";import{Image as i}from"../../image/index.js";import c from"../../../resources/images/dollar.svg.js";import{Landmark as n,Fingerprint as d,FileText as m,BookOpen as p,Wallet as u,Box as x,ArrowLeftRight as h}from"lucide-react";const f=({item:t,generateImageUrl:a})=>{const{category:r,ident:s,title:l}=t;if("adahandle"===r)return e("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-max bg-[#F2F4F7]",children:e("img",{src:c,alt:"ADA Handle",className:"h-4 w-4"})});if(["pool","asset","drep","user"].includes(r)){const t={pool:"pool",asset:"asset",drep:"user",user:"user"},o=a?a(s,"ico",{pool:"pool",asset:"token",drep:"drep",user:"user"}[r]):void 0;return e(i,{src:o,type:t[r],fallbackletters:l,width:32,height:32,className:"h-8 w-8 shrink-0 rounded-max",alt:l})}const o=(t=>{const a="h-4 w-4 text-[#475467]";switch(t){case"tx":return e(h,{className:a});case"block":return e(x,{className:a});case"address":case"stake":return e(u,{className:a});case"article":return e(p,{className:a});case"page":return e(m,{className:a});case"policy":return e(d,{className:a});case"gov_action_proposal":return e(n,{className:a});default:return null}})(r);return o?e("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-max bg-[#F2F4F7]",children:o}):null},g=({item:i,formatTitle:c})=>{const{handleInput:n,handleSearchChange:d,generateImageUrl:m}=l(),{title:p,ident:u,category:x,...h}=i,g=h.url.replace("/gov/action",""),{to:y,params:b}={to:{pool:"/pool/$id",asset:"/asset/$fingerprint",tx:"/tx/$hash",block:"/block/$hash",stake:"/stake/$stakeAddr",address:"/address/$address",adahandle:"/address/$address",policy:"/policy/$policyId",drep:"/drep/$hash",gov_action_proposal:"/gov/action/"+g.replace("#","%23"),page:h.url,user:h.url,article:h.url},params:{drep:{hash:u},pool:{id:u},asset:{fingerprint:u},tx:{hash:u},block:{hash:u},stake:{stakeAddr:u},address:{address:u},adahandle:{address:u},policy:{policyId:u}}};return e(s,{to:y[x],params:b[x],children:t("div",{className:"flex w-full cursor-pointer items-stretch justify-between border-b border-border pb-1/2 pt-1.5 transition-all duration-100 last:border-b-0 hover:bg-cardBg",onClick:()=>{n("blur"),d("")},children:[t("div",{className:"flex items-center gap-1",children:[e(f,{item:i,generateImageUrl:m}),t("div",{className:"flex w-fit max-w-[350px] flex-col break-words text-text-sm text-primary",children:[e("span",{className:"font-semibold",children:c?r(p,"long"):p}),e("span",{className:"text-text-xs text-grayTextPrimary",children:["page","article"].includes(x)?null==h?void 0:h.url:r(u,"long")})]})]}),h.extra.value&&h.extra.type&&t("div",{className:"flex min-w-[70px] flex-col items-start justify-center text-nowrap text-text",children:["string"==typeof h.extra.value?e(a,{time:h.extra.value,className:"text-text-xs",tabularNums:!1,withoutConvert:!0}):e("span",{className:"text-text-sm text-text",children:e(o,{data:h.extra.value})}),e("span",{className:"text-text-sm text-grayTextPrimary",children:h.extra.type[0].toUpperCase()+h.extra.type.slice(1)})]})]})})};export{g as GlobalSearchCell};
@@ -75,6 +75,22 @@ export interface HeaderProps {
75
75
  * Removes ShareButton
76
76
  */
77
77
  shareButton?: boolean;
78
+ /**
79
+ * Show BookmarkButton next to ShareButton.
80
+ * @default true
81
+ */
82
+ bookmarkButton?: boolean;
83
+ /**
84
+ * Callback when BookmarkButton is clicked.
85
+ * FE should handle opening the appropriate modal (add/edit/remove).
86
+ */
87
+ onBookmarkClick?: () => void;
88
+ /**
89
+ * Whether the current page is already bookmarked.
90
+ * When true, the bookmark icon will be filled.
91
+ * @default false
92
+ */
93
+ isBookmarked?: boolean;
78
94
  /**
79
95
  * Label for the featured ad text
80
96
  * @default "Featured:"
@@ -90,6 +106,16 @@ export interface HeaderProps {
90
106
  * Pass through to configure GlobalSearch text (placeholders, labels, categories)
91
107
  */
92
108
  globalSearchLabels?: Pick<GlobalSearchProps, "recentLabels" | "categoryLabels" | "homepagePlaceholder" | "placeholder" | "notFoundLabel">;
109
+ /**
110
+ * Function to generate image URLs for search result entities.
111
+ * Used to display pool logos, asset icons, DRep avatars in search results.
112
+ *
113
+ * @param id - Entity identifier (pool ID, asset fingerprint, etc.)
114
+ * @param size - Image size variant ("ico", "sm", "md", "lg")
115
+ * @param type - Entity type ("pool", "token", "drep", etc.)
116
+ * @returns Image URL string
117
+ */
118
+ generateImageUrl?: (id: string, size: string, type: string) => string;
93
119
  }
94
120
  /**
95
121
  * Page header component with breadcrumbs, title, search, and ads.
@@ -151,5 +177,5 @@ export interface HeaderProps {
151
177
  * />
152
178
  * ```
153
179
  */
154
- export declare const Header: ({ breadcrumbItems, breadcrumbSeparator, title, subTitle, badge, qrCode, isHomepage, miscBasic: miscBasicQuery, useFetchMiscSearch, locale, homepageAd, customPage, icon, withoutSearch, shareButton, featuredLabel, adLabel, globalSearchLabels, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
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;
155
181
  //# 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,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M,CAAC;CACvE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,eAAO,MAAM,MAAM,GAAI,qTAuBpB,WAAW,4CAiIb,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 l}from"../breadcrumbs/index.js";import{BreadcrumbSeparator as i}from"../breadcrumbs/components/BreadcrumbSeparator.js";import{GlobalSearch as c}from"../globalSearch/index.js";import{LoadingSkeleton as o}from"../loadingSkeleton/index.js";import{ShareButton as n}from"../shareButton/index.js";import{TruncatedText as m}from"../truncatedText/index.js";const x=({breadcrumbItems:x,breadcrumbSeparator:p=e(i,{}),title:h,subTitle:b,badge:f,qrCode:u,isHomepage:g,miscBasic:v,useFetchMiscSearch:N,locale:w,homepageAd:j,customPage:y,icon:S,withoutSearch:k=!1,shareButton:B=!0,featuredLabel:H="Featured:",adLabel:L="Ad",globalSearchLabels:F})=>{var I;const[M,T]=d(!1),$=v?null==(I=v.data)?void 0:I.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 ${g?"items-center":""} ${y?"items-center justify-center":""}`,children:[r("div",{className:`flex flex-col pt-2 ${g?"w-full max-w-[750px]":""} ${y?"w-full items-center text-center":""}`,children:[x&&e(l,{breadcrumbItems:x,breadcrumbSeparator:p}),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(m,{onHasImageChange:T,className:s("text-display-sm",!g&&"text-nowrap"),children:h})]}),!g&&f&&e("div",{className:s(!M&&"mt-[5px]"),children:f}),B&&!g&&e("div",{className:s("flex translate-y-[2px] items-center"),children:e(n,{isHeader:!0})})]}),!k&&r("div",{className:"flex items-center gap-1 "+(y?"flex-col":""),children:[!g&&b&&b,!g&&u&&u,N&&w&&g&&!y&&e(a,{useFetchMiscSearch:N,locale:w,children:e(c,{isHomepage:!0,...F})})]}),$&&v&&v.isLoading?e(o,{height:"14px"}):e(t,{children:$&&r("div",{className:"flex gap-[4px] pt-1.5",children:[e("span",{className:"text-text-sm font-semibold text-text",children:H}),e("p",{dangerouslySetInnerHTML:{__html:(null==$?void 0:$.data.text)||""},className:"text-text-sm text-grayTextPrimary [&>a]:font-semibold [&>a]:text-brand-600"})]})})]}),g||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:L})})]}):r("div",{className:"flex pt-2 "+(j?"basis-[385px] flex-col":"basis-[385px] pt-4"),children:[N&&w&&!k&&e("div",{className:"flex w-full shrink flex-col gap-1.5 pb-1.5",children:e(a,{useFetchMiscSearch:N,locale:w,children:e(c,{...F})})}),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:L})})]})]})]})})};export{x as Header};
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};
Binary file
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/image/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC;IAC3E;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;;;;;;;OAYG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkJG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAwGtC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/image/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC;IAC3E;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;;;;;;;;OAYG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkJG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAwGtC,CAAC"}
@@ -1 +1 @@
1
- import{jsx as e}from"react/jsx-runtime";import r from"../../resources/images/fallbacks/drepFallback.svg.js";import t from"../../resources/images/fallbacks/poolFallback.svg.js";import{alphabetWithNumbers as s}from"../../constants/alphabet.js";import{useState as l,useEffect as a}from"react";import{LoadingSkeleton as i}from"../loadingSkeleton/index.js";const n=n=>{var o;const[c,d]=l(n.src),[u,m]=l(!0),[h,p]=l(null),f=n.fallbackletters??"",g=(null==f?void 0:f.split("").reduce((e,r)=>e+s.indexOf(r.toLowerCase()),0))||0,x=()=>{switch(n.type){case"asset":default:return null;case"pool":return t;case"user":return r}};return a(()=>{d(n.src)},[n.src]),a(()=>{var r,t;m(!0),(r=n.src||"",t=x()||"",new Promise((s,l)=>{const a=new window.Image;a.src=r,a.addEventListener("load",()=>{s(a)}),a.addEventListener("error",r=>{var s;t&&a.src!==t?(m(!1),d(t)):(l(r),!t&&n.fallbackletters&&p(e("div",{className:`flex ${(null==(s=n.className)?void 0:s.includes("rounded-max"))?"rounded-max":"rounded-m"} shrink-0 items-center justify-center bg-primary ${n.height&&Number(n.height)>100?"text-display-lg":"text-[18px]"} font-bold uppercase text-background`,style:{height:n.height+"px",width:n.fullWidth?"100%":n.width+"px",filter:`hue-rotate(${10*g}deg)`},children:(null==f?void 0:f.length)<=5?f[0]:f.includes("_")?f[0]+f[f.indexOf("_")+1]:f[0]+f[1]})),m(!1))})})).catch(()=>{d(x()||"")}).finally(()=>{m(!1)})},[n.src]),u?e(i,{height:n.height+"px",width:n.fullWidth?"100%":n.width+"px",className:n.className,rounded:(null==(o=n.className)?void 0:o.includes("rounded-max"))?"full":"md"}):h||e("img",{...n,src:c},n.src)};export{n as Image};
1
+ import{jsx as e}from"react/jsx-runtime";import r from"../../resources/images/fallbacks/assetFallback.svg.js";import s from"../../resources/images/fallbacks/drepFallback.svg.js";import t from"../../resources/images/fallbacks/poolFallback.svg.js";import{alphabetWithNumbers as l}from"../../constants/alphabet.js";import{useState as a,useEffect as i}from"react";import{LoadingSkeleton as o}from"../loadingSkeleton/index.js";const c=c=>{var n;const[d,m]=a(c.src),[u,h]=a(!0),[f,p]=a(null),g=c.fallbackletters??"",x=(null==g?void 0:g.split("").reduce((e,r)=>e+l.indexOf(r.toLowerCase()),0))||0,b=()=>{switch(c.type){case"asset":return r;case"pool":return t;case"user":return s;default:return null}};return i(()=>{m(c.src)},[c.src]),i(()=>{var r,s;h(!0),(r=c.src||"",s=b()||"",new Promise((t,l)=>{const a=new window.Image;a.src=r,a.addEventListener("load",()=>{t(a)}),a.addEventListener("error",r=>{var t;s&&a.src!==s?(h(!1),m(s)):(l(r),!s&&c.fallbackletters&&p(e("div",{className:`flex ${(null==(t=c.className)?void 0:t.includes("rounded-max"))?"rounded-max":"rounded-m"} shrink-0 items-center justify-center bg-primary ${c.height&&Number(c.height)>100?"text-display-lg":"text-[18px]"} font-bold uppercase text-background`,style:{height:c.height+"px",width:c.fullWidth?"100%":c.width+"px",filter:`hue-rotate(${10*x}deg)`},children:(null==g?void 0:g.length)<=5?g[0]:g.includes("_")?g[0]+g[g.indexOf("_")+1]:g[0]+g[1]})),h(!1))})})).catch(()=>{m(b()||"")}).finally(()=>{h(!1)})},[c.src]),u?e(o,{height:c.height+"px",width:c.fullWidth?"100%":c.width+"px",className:c.className,rounded:(null==(n=c.className)?void 0:n.includes("rounded-max"))?"full":"md"}):f||e("img",{...c,src:d},c.src)};export{c as Image};
Binary file
@@ -19,6 +19,11 @@ export { LoadingSkeleton } from './loadingSkeleton';
19
19
  export { Loading, type LoadingProps } from './loadingSpinner';
20
20
  export { PulseDot, type PulseDotProps } from './pulseDot';
21
21
  export { ShareButton } from './shareButton';
22
+ export { BookmarkButton, type BookmarkButtonProps } from './bookmarkButton';
23
+ export { AddBookmarkModal, type AddBookmarkModalProps } from './addBookmarkModal';
24
+ export { EditBookmarkModal, type EditBookmarkModalProps } from './editBookmarkModal';
25
+ export { RemoveBookmarkModal, type RemoveBookmarkModalProps } from './removeBookmarkModal';
26
+ export { BookmarksSideButton, type BookmarksSideButtonProps } from './bookmarksSideButton';
22
27
  export { Tooltip } from './tooltip';
23
28
  export { TruncatedText } from './truncatedText';
24
29
  export { Pagination, type FakePaginationProps, type RealPaginationProps, } from './pagination';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EACL,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,EACb,mBAAmB,GACpB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OAAO,EACL,OAAO,EACP,aAAa,EACb,cAAc,EACd,cAAc,GACf,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,KAAK,EACL,SAAS,EACT,YAAY,EACZ,SAAS,EACT,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,GACT,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE/E,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Props for the RemoveBookmarkModal component.
3
+ *
4
+ * @interface RemoveBookmarkModalProps
5
+ */
6
+ export interface RemoveBookmarkModalProps {
7
+ /**
8
+ * Callback function when modal should close.
9
+ */
10
+ onClose: () => void;
11
+ /**
12
+ * Callback function when bookmark removal is confirmed.
13
+ */
14
+ onRemove: () => void;
15
+ /**
16
+ * Name of the bookmark to be removed.
17
+ * Displayed in a disabled input field.
18
+ */
19
+ bookmarkName: string;
20
+ /**
21
+ * Modal title text.
22
+ * @default "Remove bookmark"
23
+ */
24
+ title?: string;
25
+ /**
26
+ * Modal description text.
27
+ * @default "Remove page from your bookmarks."
28
+ */
29
+ description?: string;
30
+ /**
31
+ * Label for the name field.
32
+ * @default "Personal name"
33
+ */
34
+ nameLabel?: string;
35
+ /**
36
+ * Cancel button label.
37
+ * @default "Cancel"
38
+ */
39
+ cancelLabel?: string;
40
+ /**
41
+ * Remove button label.
42
+ * @default "Remove bookmark"
43
+ */
44
+ removeLabel?: string;
45
+ }
46
+ /**
47
+ * Modal for confirming bookmark removal.
48
+ *
49
+ * Displays the bookmark name in a disabled field and provides
50
+ * cancel and remove buttons. The remove button is styled in red
51
+ * with a trash icon to indicate a destructive action.
52
+ *
53
+ * @component
54
+ * @example
55
+ * ```tsx
56
+ * <RemoveBookmarkModal
57
+ * bookmarkName="Binance Address"
58
+ * onClose={() => setIsOpen(false)}
59
+ * onRemove={() => {
60
+ * removeFromLocalStorage(bookmarkId);
61
+ * setIsOpen(false);
62
+ * }}
63
+ * />
64
+ * ```
65
+ *
66
+ * @param {RemoveBookmarkModalProps} props - Component props
67
+ * @returns {JSX.Element} Remove bookmark modal
68
+ */
69
+ export declare const RemoveBookmarkModal: ({ onClose, onRemove, bookmarkName, title, description, nameLabel, cancelLabel, removeLabel, }: RemoveBookmarkModalProps) => import("react/jsx-runtime").JSX.Element;
70
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/removeBookmarkModal/index.tsx"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,mBAAmB,GAAI,+FASjC,wBAAwB,4CAwC1B,CAAC"}
@@ -0,0 +1 @@
1
+ import{jsx as e,jsxs as l}from"react/jsx-runtime";import{Trash2 as t}from"lucide-react";import{Button as a}from"../button/index.js";import{Modal as o}from"../modal/index.js";import{TextInput as m}from"../textInput/index.js";const r=({onClose:r,onRemove:i,bookmarkName:n,title:s="Remove bookmark",description:c="Remove page from your bookmarks.",nameLabel:d="Personal name",cancelLabel:x="Cancel",removeLabel:p="Remove bookmark"})=>e(o,{onClose:r,maxWidth:"450px",children:l("div",{className:"flex flex-col gap-4 p-1 md:p-2",children:[l("div",{className:"flex flex-col gap-1",children:[e("h2",{className:"text-text-lg font-semibold text-text",children:s}),e("p",{className:"text-text-sm text-text-muted",children:c})]}),l("div",{className:"flex flex-col gap-1.5",children:[e("label",{className:"text-text-sm font-medium text-text",children:d}),e(m,{value:n,onchange:()=>{},placeholder:"",disabled:!0,wrapperClassName:"w-full"})]}),l("div",{className:"flex justify-end gap-2 pt-2",children:[e(a,{size:"md",variant:"tertiary",label:x,onClick:r}),e(a,{size:"md",variant:"red",label:p,rightIcon:e(t,{size:14}),onClick:i})]})]})});export{r as RemoveBookmarkModal};
@@ -1 +1 @@
1
- import{jsxs as e,jsx as t}from"react/jsx-runtime";import{Button as r}from"../button/index.js";import{Modal as a}from"../modal/index.js";const o=({url:o,onClose:i,warningText:l="You are switching to an external, unmoderated url: ",goBackLabel:n="Go back",visitLabel:m="Visit"})=>e(a,{minHeight:"auto",minWidth:"400px",maxWidth:"600px",maxHeight:"80vh",onClose:i,children:[t("p",{className:"mt-2 font-medium",children:l}),t("p",{className:"overflow-wrap-anywhere mb-2 mt-1 max-h-32 max-w-full overflow-y-auto break-all text-text-sm",children:o}),e("div",{className:"flex justify-between gap-1",children:[t(r,{onClick:i,variant:"red",size:"md",label:n}),t("a",{onClick:i,href:o,target:"_blank",rel:"noreferrer noopener nofollow",className:"box-border flex min-w-fit max-w-fit items-center justify-center rounded-[8px] border-2 border-darkBlue bg-darkBlue px-2 py-1 text-text-sm font-medium text-white duration-150 hover:scale-[101%] hover:text-white active:scale-[98%] disabled:cursor-not-allowed disabled:opacity-50",children:m})]})]});export{o as SafetyLinkModal};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{Button as r}from"../button/index.js";import{Modal as a}from"../modal/index.js";const o=({url:o,onClose:i,warningText:l="You are switching to an external, unmoderated url: ",goBackLabel:n="Go back",visitLabel:m="Visit"})=>e(a,{minHeight:"auto",minWidth:"360px",maxWidth:"600px",maxHeight:"80vh",onClose:i,children:[t("p",{className:"mt-2 font-medium",children:l}),t("p",{className:"overflow-wrap-anywhere mb-2 mt-1 max-h-32 max-w-full overflow-y-auto break-all text-text-sm",children:o}),e("div",{className:"flex justify-between gap-1",children:[t(r,{onClick:i,variant:"red",size:"md",label:n}),t("a",{onClick:i,href:o,target:"_blank",rel:"noreferrer noopener nofollow",className:"box-border flex min-w-fit max-w-fit items-center justify-center rounded-[8px] border-2 border-darkBlue bg-darkBlue px-2 py-1 text-text-sm font-medium text-white duration-150 hover:scale-[101%] hover:text-white active:scale-[98%] disabled:cursor-not-allowed disabled:opacity-50",children:m})]})]});export{o as SafetyLinkModal};
Binary file
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/tableSettingsDropdown/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiB1D;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC;;;OAGG;IACH,cAAc,EAAE;QACd;;WAEG;QACH,KAAK,EAAE,SAAS,CAAC;QACjB;;WAEG;QACH,S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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAwFhE,CAAC"}
@@ -1 +1 @@
1
- import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Settings as n}from"lucide-react";import i from"react";import{NavigationMenu as l,NavigationMenuList as d,NavigationMenuItem as s,NavigationMenuTrigger as o,NavigationMenuContent as t}from"../navigationMenu/index.js";import{Select as a,SelectTrigger as c,SelectValue as m,SelectContent as u,SelectItem as p}from"../select/index.js";const b=({columnsOptions:b,rows:h,setRows:f,visibleRows:x=!0,customContent:v,customStyles:w,rowOptions:N=[10,20,30,40,50],rowsLabel:g="Rows:"})=>(b=b.filter(e=>void 0!==e.isVisible),e(l,{delayDuration:100,children:e(d,{className:"",children:r(s,{className:"",children:[e(o,{onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),hideChevron:!0,children:v||e("div",{className:"flex h-[40px] w-[40px] shrink-0 items-center justify-center rounded-s border border-border",children:e(n,{size:22})})}),r(t,{onPointerLeave:e=>e.preventDefault(),className:"z-20 grid w-[150px] rounded-s border-[1px] border-border bg-background text-text-sm font-medium",style:w,children:[e("div",{children:r(a,{defaultValue:h+"",onValueChange:e=>{f(Number(e))},children:[x&&r("div",{className:"flex h-14 w-full items-center justify-between border-b border-border px-1.5",children:[e("span",{children:g}),e(c,{className:"w-[60px]",children:e(m,{placeholder:e("div",{className:"flex w-full items-center justify-between gap-1/2 uppercase",children:e("span",{children:h})})})})]}),e(u,{align:"end",children:N.map(r=>e(p,{className:"flex w-full cursor-pointer justify-between px-1",value:r+"",children:e("span",{children:r})},r))})]})}),b.map((n,l)=>e(i.Fragment,{children:r("div",{className:"first:rounded-tl-md first:rounded-tr-md last:rounded-bl-md last:rounded-br-md flex h-full cursor-pointer justify-between border-b-[1px] border-border p-1.5 last:border-b-0 hover:bg-darker",onClick:n.onClick,children:[e("span",{children:n.label}),e("span",{children:n.isVisible&&"✓"})]})},l))]})]})})}));export{b as TableSettingsDropdown};
1
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{Settings as n}from"lucide-react";import l from"react";import{NavigationMenu as i,NavigationMenuList as s,NavigationMenuItem as d,NavigationMenuTrigger as o,NavigationMenuContent as t}from"../navigationMenu/index.js";import{Select as a,SelectTrigger as c,SelectValue as m,SelectContent as u,SelectItem as p}from"../select/index.js";const b=({columnsOptions:b,rows:h,setRows:f,visibleRows:x=!0,customContent:v,customStyles:w,rowOptions:N=[10,20,30,40,50],rowsLabel:g="Rows:"})=>(b=b.filter(e=>void 0!==e.isVisible),e(i,{delayDuration:100,children:e(s,{className:"",children:r(d,{className:"",children:[e(o,{onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),hideChevron:!0,className:"!p-0",children:v||e("div",{className:"flex h-[40px] w-[40px] shrink-0 items-center justify-center rounded-s border border-border",children:e(n,{size:22})})}),r(t,{onPointerLeave:e=>e.preventDefault(),className:"z-20 grid w-[150px] rounded-s border-[1px] border-border bg-background text-text-sm font-medium",style:w,children:[e("div",{children:r(a,{defaultValue:h+"",onValueChange:e=>{f(Number(e))},children:[x&&r("div",{className:"flex h-14 w-full items-center justify-between border-b border-border px-1.5",children:[e("span",{children:g}),e(c,{className:"w-[60px]",children:e(m,{placeholder:e("div",{className:"flex w-full items-center justify-between gap-1/2 uppercase",children:e("span",{children:h})})})})]}),e(u,{align:"end",children:N.map(r=>e(p,{className:"flex w-full cursor-pointer justify-between px-1",value:r+"",children:e("span",{children:r})},r))})]})}),b.map((n,i)=>e(l.Fragment,{children:r("div",{className:"first:rounded-tl-md first:rounded-tr-md last:rounded-bl-md last:rounded-br-md flex h-full cursor-pointer justify-between border-b-[1px] border-border p-1.5 last:border-b-0 hover:bg-darker",onClick:n.onClick,children:[e("span",{children:n.label}),e("span",{children:n.isVisible&&"✓"})]})},i))]})]})})}));export{b as TableSettingsDropdown};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumlabs/cexplorer-sdk",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "description": "Cexplorer UI Component Library with theme system",
5
5
  "author": "Vellum Labs",
6
6
  "main": "dist/index.js",
@@ -26,6 +26,9 @@
26
26
  "AdaWithTooltip": [
27
27
  "dist/ui/adaWithTooltip/index.d.ts"
28
28
  ],
29
+ "AddBookmarkModal": [
30
+ "dist/ui/addBookmarkModal/index.d.ts"
31
+ ],
29
32
  "AddressTypeInitialsBadge": [
30
33
  "dist/ui/addressTypeInitialsBadge/index.d.ts"
31
34
  ],
@@ -38,6 +41,12 @@
38
41
  "BlockCell": [
39
42
  "dist/ui/blockCell/index.d.ts"
40
43
  ],
44
+ "BookmarkButton": [
45
+ "dist/ui/bookmarkButton/index.d.ts"
46
+ ],
47
+ "BookmarksSideButton": [
48
+ "dist/ui/bookmarksSideButton/index.d.ts"
49
+ ],
41
50
  "Breadcrumbs": [
42
51
  "dist/ui/breadcrumbs/index.d.ts"
43
52
  ],
@@ -71,6 +80,9 @@
71
80
  "Dropdown": [
72
81
  "dist/ui/dropdown/index.d.ts"
73
82
  ],
83
+ "EditBookmarkModal": [
84
+ "dist/ui/editBookmarkModal/index.d.ts"
85
+ ],
74
86
  "EmptyState": [
75
87
  "dist/ui/emptyState/index.d.ts"
76
88
  ],
@@ -194,6 +206,9 @@
194
206
  "RangeSlider": [
195
207
  "dist/ui/rangeSlider/index.d.ts"
196
208
  ],
209
+ "RemoveBookmarkModal": [
210
+ "dist/ui/removeBookmarkModal/index.d.ts"
211
+ ],
197
212
  "SafetyLinkModal": [
198
213
  "dist/ui/safetyLinkModal/index.d.ts"
199
214
  ],
@@ -470,6 +485,10 @@
470
485
  "import": "./dist/ui/adaWithTooltip/index.js",
471
486
  "types": "./dist/ui/adaWithTooltip/index.d.ts"
472
487
  },
488
+ "./AddBookmarkModal": {
489
+ "import": "./dist/ui/addBookmarkModal/index.js",
490
+ "types": "./dist/ui/addBookmarkModal/index.d.ts"
491
+ },
473
492
  "./AddressTypeInitialsBadge": {
474
493
  "import": "./dist/ui/addressTypeInitialsBadge/index.js",
475
494
  "types": "./dist/ui/addressTypeInitialsBadge/index.d.ts"
@@ -486,6 +505,14 @@
486
505
  "import": "./dist/ui/blockCell/index.js",
487
506
  "types": "./dist/ui/blockCell/index.d.ts"
488
507
  },
508
+ "./BookmarkButton": {
509
+ "import": "./dist/ui/bookmarkButton/index.js",
510
+ "types": "./dist/ui/bookmarkButton/index.d.ts"
511
+ },
512
+ "./BookmarksSideButton": {
513
+ "import": "./dist/ui/bookmarksSideButton/index.js",
514
+ "types": "./dist/ui/bookmarksSideButton/index.d.ts"
515
+ },
489
516
  "./Breadcrumbs": {
490
517
  "import": "./dist/ui/breadcrumbs/index.js",
491
518
  "types": "./dist/ui/breadcrumbs/index.d.ts"
@@ -530,6 +557,10 @@
530
557
  "import": "./dist/ui/dropdown/index.js",
531
558
  "types": "./dist/ui/dropdown/index.d.ts"
532
559
  },
560
+ "./EditBookmarkModal": {
561
+ "import": "./dist/ui/editBookmarkModal/index.js",
562
+ "types": "./dist/ui/editBookmarkModal/index.d.ts"
563
+ },
533
564
  "./EmptyState": {
534
565
  "import": "./dist/ui/emptyState/index.js",
535
566
  "types": "./dist/ui/emptyState/index.d.ts"
@@ -694,6 +725,10 @@
694
725
  "import": "./dist/ui/rangeSlider/index.js",
695
726
  "types": "./dist/ui/rangeSlider/index.d.ts"
696
727
  },
728
+ "./RemoveBookmarkModal": {
729
+ "import": "./dist/ui/removeBookmarkModal/index.js",
730
+ "types": "./dist/ui/removeBookmarkModal/index.d.ts"
731
+ },
697
732
  "./SafetyLinkModal": {
698
733
  "import": "./dist/ui/safetyLinkModal/index.js",
699
734
  "types": "./dist/ui/safetyLinkModal/index.d.ts"