kaleido-ui 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web/{chunk-7F5GSNHE.js → chunk-MKZZD3FM.js} +9 -2
- package/dist/web/chunk-O3VC3EQT.js +143 -0
- package/dist/web/chunk-X7AOMP24.js +235 -0
- package/dist/web/components/activity-list.js +2 -2
- package/dist/web/components/charts/bar-chart.js +1 -1
- package/dist/web/components/charts/bar-list.js +1 -1
- package/dist/web/components/charts/core.js +1 -1
- package/dist/web/components/charts/donut-chart.js +1 -1
- package/dist/web/components/charts/index.js +7 -7
- package/dist/web/components/charts/line-chart.js +1 -1
- package/dist/web/components/charts/meter.js +1 -1
- package/dist/web/components/charts/mixed-chart.js +1 -1
- package/dist/web/components/charts/scatter-chart.js +1 -1
- package/dist/web/components/date-picker.js +14 -0
- package/dist/web/components/metric-card.js +1 -1
- package/dist/web/components/trend-chart.js +2 -2
- package/dist/web/index.cjs +1092 -841
- package/dist/web/index.d.cts +41 -2
- package/dist/web/index.d.ts +41 -2
- package/dist/web/index.js +40 -36
- package/package.json +1 -1
- package/dist/web/chunk-STMNX3QT.js +0 -109
- package/dist/web/{chunk-S2ICIIH2.js → chunk-STH4BGSE.js} +3 -3
package/dist/web/index.d.cts
CHANGED
|
@@ -2528,6 +2528,39 @@ interface InstantsStatementProps extends Omit<HTMLAttributes<HTMLDivElement>, 'c
|
|
|
2528
2528
|
*/
|
|
2529
2529
|
declare function InstantsStatement({ description, start, end, startLabel, endLabel, className, ...rest }: InstantsStatementProps): react_jsx_runtime.JSX.Element;
|
|
2530
2530
|
|
|
2531
|
+
interface DatePickerProps {
|
|
2532
|
+
/** `YYYY-MM-DD`, or empty for no date. */
|
|
2533
|
+
value: string;
|
|
2534
|
+
onChange: (value: string) => void;
|
|
2535
|
+
/** Shown on the trigger while there is no date. */
|
|
2536
|
+
placeholder?: string;
|
|
2537
|
+
/** Earliest / latest selectable day, `YYYY-MM-DD`. */
|
|
2538
|
+
min?: string;
|
|
2539
|
+
max?: string;
|
|
2540
|
+
disabled?: boolean;
|
|
2541
|
+
/** Locale for the month name, the weekday heads and the trigger text. Default `en-US`. */
|
|
2542
|
+
locale?: string;
|
|
2543
|
+
/** 0 = Sunday … 6 = Saturday. Default 1 (Monday). */
|
|
2544
|
+
weekStartsOn?: number;
|
|
2545
|
+
/** Accessible name of the trigger when no visible `Label` is tied to it. */
|
|
2546
|
+
'aria-label'?: string;
|
|
2547
|
+
id?: string;
|
|
2548
|
+
previousMonthLabel?: string;
|
|
2549
|
+
nextMonthLabel?: string;
|
|
2550
|
+
clearLabel?: string;
|
|
2551
|
+
todayLabel?: string;
|
|
2552
|
+
className?: string;
|
|
2553
|
+
}
|
|
2554
|
+
/**
|
|
2555
|
+
* A single date, picked from a month grid in a `Popover` under a field-styled
|
|
2556
|
+
* trigger. The value is a `YYYY-MM-DD` string (what `DateRangeFilter` uses), so
|
|
2557
|
+
* no time zone is involved. The grid is one Tab stop: arrows move by a day or a
|
|
2558
|
+
* week, Home/End to the week's ends, PageUp/PageDown by a month, Enter selects.
|
|
2559
|
+
* Days outside `min`/`max` are disabled. It carries no product text: every
|
|
2560
|
+
* label has an English default and a prop to override it.
|
|
2561
|
+
*/
|
|
2562
|
+
declare function DatePicker({ value, onChange, placeholder, min, max, disabled, locale, weekStartsOn, id, previousMonthLabel, nextMonthLabel, clearLabel, todayLabel, className, ...rest }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
2563
|
+
|
|
2531
2564
|
interface ValueListProps {
|
|
2532
2565
|
values: readonly string[];
|
|
2533
2566
|
/** One value: "address". */
|
|
@@ -2920,6 +2953,12 @@ interface MetricCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children
|
|
|
2920
2953
|
* direction; colour, if any, is the caller's accent on them.
|
|
2921
2954
|
*/
|
|
2922
2955
|
change?: ReactNode;
|
|
2956
|
+
/**
|
|
2957
|
+
* How the label is set: `eyebrow` (default) is the small spaced caps line;
|
|
2958
|
+
* `title` is a title-case, semibold line, for large tiles where the label
|
|
2959
|
+
* names the card.
|
|
2960
|
+
*/
|
|
2961
|
+
labelStyle?: 'eyebrow' | 'title';
|
|
2923
2962
|
}
|
|
2924
2963
|
/**
|
|
2925
2964
|
* A single figure with its label: a balance, a count, a rate.
|
|
@@ -2928,7 +2967,7 @@ interface MetricCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children
|
|
|
2928
2967
|
* that replaces the value (an error line, a dash) is announced as belonging to
|
|
2929
2968
|
* that metric. Pass `aria-label` to override the name.
|
|
2930
2969
|
*/
|
|
2931
|
-
declare function MetricCard({ label, value, description, icon, tone, size, iconPlacement, trend, definition, change, className, ...rest }: MetricCardProps): react_jsx_runtime.JSX.Element;
|
|
2970
|
+
declare function MetricCard({ label, value, description, icon, tone, size, iconPlacement, trend, definition, change, labelStyle, className, ...rest }: MetricCardProps): react_jsx_runtime.JSX.Element;
|
|
2932
2971
|
|
|
2933
2972
|
type CopyState = 'idle' | 'copied' | 'failed';
|
|
2934
2973
|
interface CopyCallbacks {
|
|
@@ -4050,4 +4089,4 @@ declare function getFallbackAssetIconUrl(seed: string): string;
|
|
|
4050
4089
|
*/
|
|
4051
4090
|
declare function useAssetIcon(ticker: string, cdnBaseUrl?: string): string;
|
|
4052
4091
|
|
|
4053
|
-
export { AccountCapabilitiesCard, type AccountCapabilitiesCardProps, AccountChoiceChip, AccountHeaderIcons, AccountInfoGrid, AccountMenu, AccountMenuItem, type AccountMenuItemProps, type AccountMenuProps, AccountMenuSeparator, AccountNetworkNotice, AccountNetworkPicker, AccountNetworkSelector, AccountNotice, type AccountSettingsNetwork, type AccountSettingsProtocol, AccountSettingsRow, AccountSettingsShell, AccountStatusPills, type AccountStatusTabItem, AccountStatusTabs, type AccountStatusTabsProps, ActionTile, type ActionTileProps, ActivityDetailRow, type ActivityDetailRowProps, ActivityFilterBar, type ActivityFilterBarProps, ActivityList, type ActivityListItem, type ActivityListProps, type ActivityNetworkFilterOption, type ActivityNetworkFilterValue, ActivityNetworkFilters, type ActivityNetworkFiltersProps, ActivityRow, type ActivityRowProps, type ActivityStatusOption, type ActivityTypeTabCounts, type ActivityTypeTabValue, ActivityTypeTabs, AlertBanner, Amount, type AmountDisplayOptions, type AmountDisplayUnit, type AmountProps, AppIcon, type AppIconName, type AppIconProps, AreaChart, ArkadeNetworkIcon, AssetCard, type AssetCardProps, AssetIcon, AssetInfoChip, type AssetInfoChipProps, AssetSelector, type AssetSelectorCategory, type AssetSelectorNetworkOption, type AssetSelectorOption, type AssetSelectorProps, type AssetSelectorQuickAsset, Avatar, type AvatarProps, BalanceBreakdown, type BalanceBreakdownAccounts, type BalanceBreakdownAsset, type BalanceBreakdownNodeInfo, type BalanceBreakdownProps, BarChart, type BarChartProps, BarList, type BarListItem, type BarListProps, BasicCollapsible, type BasicCollapsibleProps, BottomNav, type BottomNavItem, type BottomNavProps, BottomSheet, type BottomSheetAction, type BottomSheetProps, type BrandArtwork, type BrandPaint, BtcUnifiedReceive, type BtcUnifiedReceiveAddress, type BtcUnifiedReceiveProps, type BtcUnifiedReceiveResult, ButtonProps, COPY_FAILED_MESSAGE, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, type ChartDatum, type ChartFilter, ChartFrame, type ChartFrameProps, ChartLegend, type ChartSeries, type ChartTable, type ChartTimeframe, type ChartTitleProps, ChartTooltip, Choice, ChoiceGroup, type ChoiceGroupProps, type ChoiceProps, CodeBlock, type CodeBlockProps, Collapsible, CollapsibleChevron, CollapsibleContent, type CollapsibleContentProps, CollapsibleTrigger, type CollapsibleTriggerProps, ConfirmDialog, type ConfirmDialogProps, CopyButton, type CopyButtonProps, type CopyButtonStatus, type CopyCallbacks, CopyIcon, type CopyIconProps, type CopyState, Copyable, type CopyableProps, DEFAULT_AMOUNT_LOCALE, type DateRange, DateRangeFilter, type DateRangeFilterProps, type DepositAccountId, DepositAssetSelection, type DepositAssetSelectionProps, type DepositGeneratedAsset, DepositGeneratedView, type DepositGeneratedViewProps, type DepositGenerationController, type DepositInvoiceAsset, DepositInvoiceGeneration, type DepositInvoiceGenerationProps, type DepositNetworkConfigEntry, DepositNetworkDefaultModal, type DepositNetworkDefaultModalProps, type DepositNetworkKey, type DepositNetworkOption, DepositPreGeneration, type DepositPreGenerationAsset, type DepositPreGenerationProps, type DepositSelectionAsset, DepositSuccessScreen, type DepositSuccessScreenProps, type DepositTransferMethod, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisclosureCard, type DisclosureCardProps, DonutChart, type DonutChartProps, type DonutSegment, DotPagination, type DotPaginationProps, type DotTone, DottedLeader, Drawer, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerNavGroup, type DrawerNavGroupProps, DrawerNavItem, type DrawerNavItemProps, DrawerOverlay, DrawerPortal, DrawerSection, type DrawerSectionProps, DrawerSidebar, type DrawerSidebarProps, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuTrigger, EmptyState, type EmptyStateProps, EnvironmentIndicator, type EnvironmentIndicatorProps, ErrorBoundary, ErrorCard, type ErrorCardProps, EventTimeline, type EventTimelineProps, ExpandIcon, ExtensionPageFrame, type ExtensionPageFrameProps, FadeOverlay, type FadeOverlayProps, FilterBar, type FilterBarProps, FilterChipGroup, type FilterChipGroupProps, type FilterChipOption, FilterDropdown, type FilterDropdownOption, type FilterDropdownProps, FloatingNotice, type FloatingNoticeProps, FormField, type FormFieldProps, type FormatAmountOptions, GlyphButtonProps, HaloBackdrop, type HaloBackdropProps, HeadlineGradient, type HeadlineGradientProps, HorizontalScrollArea, IconButton, type IconButtonProps, IconName, IconProps, InfoChip, type InfoChipContentProps, type InfoChipEditAction, type InfoChipProps, type InfoChipStatus, InfoPanel, type InfoPanelProps, InlineAction, InlineSelector, type InlineSelectorOption, type InlineSelectorProps, Input, type InputProps, InstantsStatement, type InstantsStatementProps, InvoiceStatusBanner, KaleidoScopeHeroAnimation, type KaleidoScopeHeroAnimationProps, KaleidoswapLogo, type KaleidoswapLogoProps, KaleidoswapMark, type KaleidoswapMarkProps, Label, LightningNetworkIcon, LineChart, type LineChartProps, LiquidNetworkIcon, ListField, type ListFieldProps, ListSkeletonRows, type ListSkeletonRowsProps, ListSummary, type ListSummaryProps, LoadingCard, type LoadingCardProps, Meter, type MeterProps, MethodChoiceChip, MetricCard, type MetricCardProps, type MetricCardSize, MixedChart, type MixedChartMark, type MixedChartProps, type MixedChartSeries, MobileHeroAnimation, type MobileHeroAnimationProps, NETWORK_CONFIG, NetworkBadge, type NetworkBadgeProps, type NetworkIconProps, NetworkInfoChip, type NetworkInfoChipProps, NetworkInfoDisclosure, NetworkStatusChip, type NetworkStatusChipProps, type NetworkType, NostrNetworkIcon, NoticeBar, type NoticeBarProps, NumberInput, type NumberInputProps, OnchainNetworkIcon, OneTimeSecretDialog, type OneTimeSecretDialogProps, OptionSelector, type OptionSelectorOption, type OptionSelectorProps, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, Pager, type PagerProps, PaidOverlay, type PeriodOption, PeriodSelect, type PeriodSelectProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, PopoverTrigger, QrCode, type QrCodeProps, type QueryErrorView, QueryState, type QueryStateProps, READ_STATUS_UPDATED_MS, ReadStatus, type ReadStatusProps, type ReadStatusRead, RecordField, type RecordFieldProps, RecordItem, type RecordItemProps, RecordList, type RecordListProps, RecoveryPhraseCard, type RecoveryPhraseCardProps, RefreshButton, type RefreshButtonProps, Restricted, type RestrictedProps, RgbNetworkIcon, ScatterChart, type ScatterChartProps, type ScatterPoint, type ScatterSeries, ScrollArea, type ScrollAreaProps, SecretRevealCard, type SecretRevealCardProps, SectionHeader, type SectionHeaderProps, SectionLabel, SectionTitle, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, SelectableCard, type SelectableCardProps, SettingItem, SettingsActionButton, SettingsSectionCard, type SettingsSectionCardProps, SettingsSelectorRow, type SettingsSelectorRowProps, SettingsStatusPanel, SettingsTile, type SettingsTileProps, Skeleton, type SkeletonProps, type SkeletonTone, type SortDirection, SparkNetworkIcon, Sparkline, type SparklineProps, StatusBadge, StatusChip, type StatusChipProps, StatusIconBadge, type StatusIconBadgeProps, type StatusType, StepperNumberInput, type StepperNumberInputProps, type SummaryRowItem, type SummaryRowTone, SummaryRows, type SummaryRowsProps, SwapBadge, type SwapBadgeProps, SwapInputCard, type SwapInputCardProps, type SwapStepItem, SwapStepList, type SwapStepListProps, type SwapStepStatus, Switch, SwitchRow, type SwitchRowProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type ThemeMode, ThemeToggle, type ThemeToggleProps, type TimelineEvent, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, ToneBadge, type ToneBadgeProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipPlacement, type TooltipProps, TransactionCard, type TransactionCardProps, TransferRouteCard, TrendChart, type TrendChartPoint, type TrendChartProps, type TrendChartSeries, type TrendChartTexture, type TrendChartTone, type UseCopyToClipboard, type UseDiscardGuardOptions, type UseThemeModeOptions, ValueList, type ValueListProps, VerticalScrollArea, WalletAssetList, type WalletAssetListEmptyState, type WalletAssetListItem, type WalletAssetListProps, type WithdrawAddressType, WithdrawAmountInput, type WithdrawAmountInputProps, WithdrawConfirmation, type WithdrawConfirmationProps, type WithdrawConfirmationRgbInvoice, type WithdrawDecodedLnInvoice, type WithdrawDecodedRgbInvoice, WithdrawDestinationInput, type WithdrawDestinationInputProps, type WithdrawInvoiceAsset, WithdrawInvoiceInfo, type WithdrawInvoiceInfoLnInvoice, type WithdrawInvoiceInfoProps, type WithdrawInvoiceInfoRgbInvoice, type WithdrawLnurlPayData, type WithdrawRouteOption, WithdrawRouteSelector, type WithdrawRouteSelectorProps, type WithdrawRouteSummary, WithdrawSuccess, type WithdrawSuccessProps, activeFiltersLabel, applyThemeMode, avatarVariants, cardSurface, chartLabelIndices, chartValueTicks, cn, defaultClassifyError, foldSegments, formatAmount, formatDisplayAmountText, getAccountNetworkLabel, getAccountNetworkUi, getAccountStatusUi, getActivityNetworkFilterIcon, getAssetIconUrl, getFallbackAssetIconUrl, kaleidoswapLogoHorizontalArtwork, kaleidoswapLogoVerticalArtwork, kaleidoswapMarkArtwork, networkChipStyle, seriesColor, toast, trendChartLabelIndices, trendChartTicks, useAssetIcon, useCopyToClipboard, useDiscardGuard, useDrawerCollapsed, useIsNarrow, useMediaQuery, useThemeMode, useToast };
|
|
4092
|
+
export { AccountCapabilitiesCard, type AccountCapabilitiesCardProps, AccountChoiceChip, AccountHeaderIcons, AccountInfoGrid, AccountMenu, AccountMenuItem, type AccountMenuItemProps, type AccountMenuProps, AccountMenuSeparator, AccountNetworkNotice, AccountNetworkPicker, AccountNetworkSelector, AccountNotice, type AccountSettingsNetwork, type AccountSettingsProtocol, AccountSettingsRow, AccountSettingsShell, AccountStatusPills, type AccountStatusTabItem, AccountStatusTabs, type AccountStatusTabsProps, ActionTile, type ActionTileProps, ActivityDetailRow, type ActivityDetailRowProps, ActivityFilterBar, type ActivityFilterBarProps, ActivityList, type ActivityListItem, type ActivityListProps, type ActivityNetworkFilterOption, type ActivityNetworkFilterValue, ActivityNetworkFilters, type ActivityNetworkFiltersProps, ActivityRow, type ActivityRowProps, type ActivityStatusOption, type ActivityTypeTabCounts, type ActivityTypeTabValue, ActivityTypeTabs, AlertBanner, Amount, type AmountDisplayOptions, type AmountDisplayUnit, type AmountProps, AppIcon, type AppIconName, type AppIconProps, AreaChart, ArkadeNetworkIcon, AssetCard, type AssetCardProps, AssetIcon, AssetInfoChip, type AssetInfoChipProps, AssetSelector, type AssetSelectorCategory, type AssetSelectorNetworkOption, type AssetSelectorOption, type AssetSelectorProps, type AssetSelectorQuickAsset, Avatar, type AvatarProps, BalanceBreakdown, type BalanceBreakdownAccounts, type BalanceBreakdownAsset, type BalanceBreakdownNodeInfo, type BalanceBreakdownProps, BarChart, type BarChartProps, BarList, type BarListItem, type BarListProps, BasicCollapsible, type BasicCollapsibleProps, BottomNav, type BottomNavItem, type BottomNavProps, BottomSheet, type BottomSheetAction, type BottomSheetProps, type BrandArtwork, type BrandPaint, BtcUnifiedReceive, type BtcUnifiedReceiveAddress, type BtcUnifiedReceiveProps, type BtcUnifiedReceiveResult, ButtonProps, COPY_FAILED_MESSAGE, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, type ChartDatum, type ChartFilter, ChartFrame, type ChartFrameProps, ChartLegend, type ChartSeries, type ChartTable, type ChartTimeframe, type ChartTitleProps, ChartTooltip, Choice, ChoiceGroup, type ChoiceGroupProps, type ChoiceProps, CodeBlock, type CodeBlockProps, Collapsible, CollapsibleChevron, CollapsibleContent, type CollapsibleContentProps, CollapsibleTrigger, type CollapsibleTriggerProps, ConfirmDialog, type ConfirmDialogProps, CopyButton, type CopyButtonProps, type CopyButtonStatus, type CopyCallbacks, CopyIcon, type CopyIconProps, type CopyState, Copyable, type CopyableProps, DEFAULT_AMOUNT_LOCALE, DatePicker, type DatePickerProps, type DateRange, DateRangeFilter, type DateRangeFilterProps, type DepositAccountId, DepositAssetSelection, type DepositAssetSelectionProps, type DepositGeneratedAsset, DepositGeneratedView, type DepositGeneratedViewProps, type DepositGenerationController, type DepositInvoiceAsset, DepositInvoiceGeneration, type DepositInvoiceGenerationProps, type DepositNetworkConfigEntry, DepositNetworkDefaultModal, type DepositNetworkDefaultModalProps, type DepositNetworkKey, type DepositNetworkOption, DepositPreGeneration, type DepositPreGenerationAsset, type DepositPreGenerationProps, type DepositSelectionAsset, DepositSuccessScreen, type DepositSuccessScreenProps, type DepositTransferMethod, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisclosureCard, type DisclosureCardProps, DonutChart, type DonutChartProps, type DonutSegment, DotPagination, type DotPaginationProps, type DotTone, DottedLeader, Drawer, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerNavGroup, type DrawerNavGroupProps, DrawerNavItem, type DrawerNavItemProps, DrawerOverlay, DrawerPortal, DrawerSection, type DrawerSectionProps, DrawerSidebar, type DrawerSidebarProps, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuTrigger, EmptyState, type EmptyStateProps, EnvironmentIndicator, type EnvironmentIndicatorProps, ErrorBoundary, ErrorCard, type ErrorCardProps, EventTimeline, type EventTimelineProps, ExpandIcon, ExtensionPageFrame, type ExtensionPageFrameProps, FadeOverlay, type FadeOverlayProps, FilterBar, type FilterBarProps, FilterChipGroup, type FilterChipGroupProps, type FilterChipOption, FilterDropdown, type FilterDropdownOption, type FilterDropdownProps, FloatingNotice, type FloatingNoticeProps, FormField, type FormFieldProps, type FormatAmountOptions, GlyphButtonProps, HaloBackdrop, type HaloBackdropProps, HeadlineGradient, type HeadlineGradientProps, HorizontalScrollArea, IconButton, type IconButtonProps, IconName, IconProps, InfoChip, type InfoChipContentProps, type InfoChipEditAction, type InfoChipProps, type InfoChipStatus, InfoPanel, type InfoPanelProps, InlineAction, InlineSelector, type InlineSelectorOption, type InlineSelectorProps, Input, type InputProps, InstantsStatement, type InstantsStatementProps, InvoiceStatusBanner, KaleidoScopeHeroAnimation, type KaleidoScopeHeroAnimationProps, KaleidoswapLogo, type KaleidoswapLogoProps, KaleidoswapMark, type KaleidoswapMarkProps, Label, LightningNetworkIcon, LineChart, type LineChartProps, LiquidNetworkIcon, ListField, type ListFieldProps, ListSkeletonRows, type ListSkeletonRowsProps, ListSummary, type ListSummaryProps, LoadingCard, type LoadingCardProps, Meter, type MeterProps, MethodChoiceChip, MetricCard, type MetricCardProps, type MetricCardSize, MixedChart, type MixedChartMark, type MixedChartProps, type MixedChartSeries, MobileHeroAnimation, type MobileHeroAnimationProps, NETWORK_CONFIG, NetworkBadge, type NetworkBadgeProps, type NetworkIconProps, NetworkInfoChip, type NetworkInfoChipProps, NetworkInfoDisclosure, NetworkStatusChip, type NetworkStatusChipProps, type NetworkType, NostrNetworkIcon, NoticeBar, type NoticeBarProps, NumberInput, type NumberInputProps, OnchainNetworkIcon, OneTimeSecretDialog, type OneTimeSecretDialogProps, OptionSelector, type OptionSelectorOption, type OptionSelectorProps, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, Pager, type PagerProps, PaidOverlay, type PeriodOption, PeriodSelect, type PeriodSelectProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, PopoverTrigger, QrCode, type QrCodeProps, type QueryErrorView, QueryState, type QueryStateProps, READ_STATUS_UPDATED_MS, ReadStatus, type ReadStatusProps, type ReadStatusRead, RecordField, type RecordFieldProps, RecordItem, type RecordItemProps, RecordList, type RecordListProps, RecoveryPhraseCard, type RecoveryPhraseCardProps, RefreshButton, type RefreshButtonProps, Restricted, type RestrictedProps, RgbNetworkIcon, ScatterChart, type ScatterChartProps, type ScatterPoint, type ScatterSeries, ScrollArea, type ScrollAreaProps, SecretRevealCard, type SecretRevealCardProps, SectionHeader, type SectionHeaderProps, SectionLabel, SectionTitle, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, SelectableCard, type SelectableCardProps, SettingItem, SettingsActionButton, SettingsSectionCard, type SettingsSectionCardProps, SettingsSelectorRow, type SettingsSelectorRowProps, SettingsStatusPanel, SettingsTile, type SettingsTileProps, Skeleton, type SkeletonProps, type SkeletonTone, type SortDirection, SparkNetworkIcon, Sparkline, type SparklineProps, StatusBadge, StatusChip, type StatusChipProps, StatusIconBadge, type StatusIconBadgeProps, type StatusType, StepperNumberInput, type StepperNumberInputProps, type SummaryRowItem, type SummaryRowTone, SummaryRows, type SummaryRowsProps, SwapBadge, type SwapBadgeProps, SwapInputCard, type SwapInputCardProps, type SwapStepItem, SwapStepList, type SwapStepListProps, type SwapStepStatus, Switch, SwitchRow, type SwitchRowProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type ThemeMode, ThemeToggle, type ThemeToggleProps, type TimelineEvent, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, ToneBadge, type ToneBadgeProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipPlacement, type TooltipProps, TransactionCard, type TransactionCardProps, TransferRouteCard, TrendChart, type TrendChartPoint, type TrendChartProps, type TrendChartSeries, type TrendChartTexture, type TrendChartTone, type UseCopyToClipboard, type UseDiscardGuardOptions, type UseThemeModeOptions, ValueList, type ValueListProps, VerticalScrollArea, WalletAssetList, type WalletAssetListEmptyState, type WalletAssetListItem, type WalletAssetListProps, type WithdrawAddressType, WithdrawAmountInput, type WithdrawAmountInputProps, WithdrawConfirmation, type WithdrawConfirmationProps, type WithdrawConfirmationRgbInvoice, type WithdrawDecodedLnInvoice, type WithdrawDecodedRgbInvoice, WithdrawDestinationInput, type WithdrawDestinationInputProps, type WithdrawInvoiceAsset, WithdrawInvoiceInfo, type WithdrawInvoiceInfoLnInvoice, type WithdrawInvoiceInfoProps, type WithdrawInvoiceInfoRgbInvoice, type WithdrawLnurlPayData, type WithdrawRouteOption, WithdrawRouteSelector, type WithdrawRouteSelectorProps, type WithdrawRouteSummary, WithdrawSuccess, type WithdrawSuccessProps, activeFiltersLabel, applyThemeMode, avatarVariants, cardSurface, chartLabelIndices, chartValueTicks, cn, defaultClassifyError, foldSegments, formatAmount, formatDisplayAmountText, getAccountNetworkLabel, getAccountNetworkUi, getAccountStatusUi, getActivityNetworkFilterIcon, getAssetIconUrl, getFallbackAssetIconUrl, kaleidoswapLogoHorizontalArtwork, kaleidoswapLogoVerticalArtwork, kaleidoswapMarkArtwork, networkChipStyle, seriesColor, toast, trendChartLabelIndices, trendChartTicks, useAssetIcon, useCopyToClipboard, useDiscardGuard, useDrawerCollapsed, useIsNarrow, useMediaQuery, useThemeMode, useToast };
|
package/dist/web/index.d.ts
CHANGED
|
@@ -2528,6 +2528,39 @@ interface InstantsStatementProps extends Omit<HTMLAttributes<HTMLDivElement>, 'c
|
|
|
2528
2528
|
*/
|
|
2529
2529
|
declare function InstantsStatement({ description, start, end, startLabel, endLabel, className, ...rest }: InstantsStatementProps): react_jsx_runtime.JSX.Element;
|
|
2530
2530
|
|
|
2531
|
+
interface DatePickerProps {
|
|
2532
|
+
/** `YYYY-MM-DD`, or empty for no date. */
|
|
2533
|
+
value: string;
|
|
2534
|
+
onChange: (value: string) => void;
|
|
2535
|
+
/** Shown on the trigger while there is no date. */
|
|
2536
|
+
placeholder?: string;
|
|
2537
|
+
/** Earliest / latest selectable day, `YYYY-MM-DD`. */
|
|
2538
|
+
min?: string;
|
|
2539
|
+
max?: string;
|
|
2540
|
+
disabled?: boolean;
|
|
2541
|
+
/** Locale for the month name, the weekday heads and the trigger text. Default `en-US`. */
|
|
2542
|
+
locale?: string;
|
|
2543
|
+
/** 0 = Sunday … 6 = Saturday. Default 1 (Monday). */
|
|
2544
|
+
weekStartsOn?: number;
|
|
2545
|
+
/** Accessible name of the trigger when no visible `Label` is tied to it. */
|
|
2546
|
+
'aria-label'?: string;
|
|
2547
|
+
id?: string;
|
|
2548
|
+
previousMonthLabel?: string;
|
|
2549
|
+
nextMonthLabel?: string;
|
|
2550
|
+
clearLabel?: string;
|
|
2551
|
+
todayLabel?: string;
|
|
2552
|
+
className?: string;
|
|
2553
|
+
}
|
|
2554
|
+
/**
|
|
2555
|
+
* A single date, picked from a month grid in a `Popover` under a field-styled
|
|
2556
|
+
* trigger. The value is a `YYYY-MM-DD` string (what `DateRangeFilter` uses), so
|
|
2557
|
+
* no time zone is involved. The grid is one Tab stop: arrows move by a day or a
|
|
2558
|
+
* week, Home/End to the week's ends, PageUp/PageDown by a month, Enter selects.
|
|
2559
|
+
* Days outside `min`/`max` are disabled. It carries no product text: every
|
|
2560
|
+
* label has an English default and a prop to override it.
|
|
2561
|
+
*/
|
|
2562
|
+
declare function DatePicker({ value, onChange, placeholder, min, max, disabled, locale, weekStartsOn, id, previousMonthLabel, nextMonthLabel, clearLabel, todayLabel, className, ...rest }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
2563
|
+
|
|
2531
2564
|
interface ValueListProps {
|
|
2532
2565
|
values: readonly string[];
|
|
2533
2566
|
/** One value: "address". */
|
|
@@ -2920,6 +2953,12 @@ interface MetricCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children
|
|
|
2920
2953
|
* direction; colour, if any, is the caller's accent on them.
|
|
2921
2954
|
*/
|
|
2922
2955
|
change?: ReactNode;
|
|
2956
|
+
/**
|
|
2957
|
+
* How the label is set: `eyebrow` (default) is the small spaced caps line;
|
|
2958
|
+
* `title` is a title-case, semibold line, for large tiles where the label
|
|
2959
|
+
* names the card.
|
|
2960
|
+
*/
|
|
2961
|
+
labelStyle?: 'eyebrow' | 'title';
|
|
2923
2962
|
}
|
|
2924
2963
|
/**
|
|
2925
2964
|
* A single figure with its label: a balance, a count, a rate.
|
|
@@ -2928,7 +2967,7 @@ interface MetricCardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children
|
|
|
2928
2967
|
* that replaces the value (an error line, a dash) is announced as belonging to
|
|
2929
2968
|
* that metric. Pass `aria-label` to override the name.
|
|
2930
2969
|
*/
|
|
2931
|
-
declare function MetricCard({ label, value, description, icon, tone, size, iconPlacement, trend, definition, change, className, ...rest }: MetricCardProps): react_jsx_runtime.JSX.Element;
|
|
2970
|
+
declare function MetricCard({ label, value, description, icon, tone, size, iconPlacement, trend, definition, change, labelStyle, className, ...rest }: MetricCardProps): react_jsx_runtime.JSX.Element;
|
|
2932
2971
|
|
|
2933
2972
|
type CopyState = 'idle' | 'copied' | 'failed';
|
|
2934
2973
|
interface CopyCallbacks {
|
|
@@ -4050,4 +4089,4 @@ declare function getFallbackAssetIconUrl(seed: string): string;
|
|
|
4050
4089
|
*/
|
|
4051
4090
|
declare function useAssetIcon(ticker: string, cdnBaseUrl?: string): string;
|
|
4052
4091
|
|
|
4053
|
-
export { AccountCapabilitiesCard, type AccountCapabilitiesCardProps, AccountChoiceChip, AccountHeaderIcons, AccountInfoGrid, AccountMenu, AccountMenuItem, type AccountMenuItemProps, type AccountMenuProps, AccountMenuSeparator, AccountNetworkNotice, AccountNetworkPicker, AccountNetworkSelector, AccountNotice, type AccountSettingsNetwork, type AccountSettingsProtocol, AccountSettingsRow, AccountSettingsShell, AccountStatusPills, type AccountStatusTabItem, AccountStatusTabs, type AccountStatusTabsProps, ActionTile, type ActionTileProps, ActivityDetailRow, type ActivityDetailRowProps, ActivityFilterBar, type ActivityFilterBarProps, ActivityList, type ActivityListItem, type ActivityListProps, type ActivityNetworkFilterOption, type ActivityNetworkFilterValue, ActivityNetworkFilters, type ActivityNetworkFiltersProps, ActivityRow, type ActivityRowProps, type ActivityStatusOption, type ActivityTypeTabCounts, type ActivityTypeTabValue, ActivityTypeTabs, AlertBanner, Amount, type AmountDisplayOptions, type AmountDisplayUnit, type AmountProps, AppIcon, type AppIconName, type AppIconProps, AreaChart, ArkadeNetworkIcon, AssetCard, type AssetCardProps, AssetIcon, AssetInfoChip, type AssetInfoChipProps, AssetSelector, type AssetSelectorCategory, type AssetSelectorNetworkOption, type AssetSelectorOption, type AssetSelectorProps, type AssetSelectorQuickAsset, Avatar, type AvatarProps, BalanceBreakdown, type BalanceBreakdownAccounts, type BalanceBreakdownAsset, type BalanceBreakdownNodeInfo, type BalanceBreakdownProps, BarChart, type BarChartProps, BarList, type BarListItem, type BarListProps, BasicCollapsible, type BasicCollapsibleProps, BottomNav, type BottomNavItem, type BottomNavProps, BottomSheet, type BottomSheetAction, type BottomSheetProps, type BrandArtwork, type BrandPaint, BtcUnifiedReceive, type BtcUnifiedReceiveAddress, type BtcUnifiedReceiveProps, type BtcUnifiedReceiveResult, ButtonProps, COPY_FAILED_MESSAGE, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, type ChartDatum, type ChartFilter, ChartFrame, type ChartFrameProps, ChartLegend, type ChartSeries, type ChartTable, type ChartTimeframe, type ChartTitleProps, ChartTooltip, Choice, ChoiceGroup, type ChoiceGroupProps, type ChoiceProps, CodeBlock, type CodeBlockProps, Collapsible, CollapsibleChevron, CollapsibleContent, type CollapsibleContentProps, CollapsibleTrigger, type CollapsibleTriggerProps, ConfirmDialog, type ConfirmDialogProps, CopyButton, type CopyButtonProps, type CopyButtonStatus, type CopyCallbacks, CopyIcon, type CopyIconProps, type CopyState, Copyable, type CopyableProps, DEFAULT_AMOUNT_LOCALE, type DateRange, DateRangeFilter, type DateRangeFilterProps, type DepositAccountId, DepositAssetSelection, type DepositAssetSelectionProps, type DepositGeneratedAsset, DepositGeneratedView, type DepositGeneratedViewProps, type DepositGenerationController, type DepositInvoiceAsset, DepositInvoiceGeneration, type DepositInvoiceGenerationProps, type DepositNetworkConfigEntry, DepositNetworkDefaultModal, type DepositNetworkDefaultModalProps, type DepositNetworkKey, type DepositNetworkOption, DepositPreGeneration, type DepositPreGenerationAsset, type DepositPreGenerationProps, type DepositSelectionAsset, DepositSuccessScreen, type DepositSuccessScreenProps, type DepositTransferMethod, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisclosureCard, type DisclosureCardProps, DonutChart, type DonutChartProps, type DonutSegment, DotPagination, type DotPaginationProps, type DotTone, DottedLeader, Drawer, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerNavGroup, type DrawerNavGroupProps, DrawerNavItem, type DrawerNavItemProps, DrawerOverlay, DrawerPortal, DrawerSection, type DrawerSectionProps, DrawerSidebar, type DrawerSidebarProps, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuTrigger, EmptyState, type EmptyStateProps, EnvironmentIndicator, type EnvironmentIndicatorProps, ErrorBoundary, ErrorCard, type ErrorCardProps, EventTimeline, type EventTimelineProps, ExpandIcon, ExtensionPageFrame, type ExtensionPageFrameProps, FadeOverlay, type FadeOverlayProps, FilterBar, type FilterBarProps, FilterChipGroup, type FilterChipGroupProps, type FilterChipOption, FilterDropdown, type FilterDropdownOption, type FilterDropdownProps, FloatingNotice, type FloatingNoticeProps, FormField, type FormFieldProps, type FormatAmountOptions, GlyphButtonProps, HaloBackdrop, type HaloBackdropProps, HeadlineGradient, type HeadlineGradientProps, HorizontalScrollArea, IconButton, type IconButtonProps, IconName, IconProps, InfoChip, type InfoChipContentProps, type InfoChipEditAction, type InfoChipProps, type InfoChipStatus, InfoPanel, type InfoPanelProps, InlineAction, InlineSelector, type InlineSelectorOption, type InlineSelectorProps, Input, type InputProps, InstantsStatement, type InstantsStatementProps, InvoiceStatusBanner, KaleidoScopeHeroAnimation, type KaleidoScopeHeroAnimationProps, KaleidoswapLogo, type KaleidoswapLogoProps, KaleidoswapMark, type KaleidoswapMarkProps, Label, LightningNetworkIcon, LineChart, type LineChartProps, LiquidNetworkIcon, ListField, type ListFieldProps, ListSkeletonRows, type ListSkeletonRowsProps, ListSummary, type ListSummaryProps, LoadingCard, type LoadingCardProps, Meter, type MeterProps, MethodChoiceChip, MetricCard, type MetricCardProps, type MetricCardSize, MixedChart, type MixedChartMark, type MixedChartProps, type MixedChartSeries, MobileHeroAnimation, type MobileHeroAnimationProps, NETWORK_CONFIG, NetworkBadge, type NetworkBadgeProps, type NetworkIconProps, NetworkInfoChip, type NetworkInfoChipProps, NetworkInfoDisclosure, NetworkStatusChip, type NetworkStatusChipProps, type NetworkType, NostrNetworkIcon, NoticeBar, type NoticeBarProps, NumberInput, type NumberInputProps, OnchainNetworkIcon, OneTimeSecretDialog, type OneTimeSecretDialogProps, OptionSelector, type OptionSelectorOption, type OptionSelectorProps, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, Pager, type PagerProps, PaidOverlay, type PeriodOption, PeriodSelect, type PeriodSelectProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, PopoverTrigger, QrCode, type QrCodeProps, type QueryErrorView, QueryState, type QueryStateProps, READ_STATUS_UPDATED_MS, ReadStatus, type ReadStatusProps, type ReadStatusRead, RecordField, type RecordFieldProps, RecordItem, type RecordItemProps, RecordList, type RecordListProps, RecoveryPhraseCard, type RecoveryPhraseCardProps, RefreshButton, type RefreshButtonProps, Restricted, type RestrictedProps, RgbNetworkIcon, ScatterChart, type ScatterChartProps, type ScatterPoint, type ScatterSeries, ScrollArea, type ScrollAreaProps, SecretRevealCard, type SecretRevealCardProps, SectionHeader, type SectionHeaderProps, SectionLabel, SectionTitle, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, SelectableCard, type SelectableCardProps, SettingItem, SettingsActionButton, SettingsSectionCard, type SettingsSectionCardProps, SettingsSelectorRow, type SettingsSelectorRowProps, SettingsStatusPanel, SettingsTile, type SettingsTileProps, Skeleton, type SkeletonProps, type SkeletonTone, type SortDirection, SparkNetworkIcon, Sparkline, type SparklineProps, StatusBadge, StatusChip, type StatusChipProps, StatusIconBadge, type StatusIconBadgeProps, type StatusType, StepperNumberInput, type StepperNumberInputProps, type SummaryRowItem, type SummaryRowTone, SummaryRows, type SummaryRowsProps, SwapBadge, type SwapBadgeProps, SwapInputCard, type SwapInputCardProps, type SwapStepItem, SwapStepList, type SwapStepListProps, type SwapStepStatus, Switch, SwitchRow, type SwitchRowProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type ThemeMode, ThemeToggle, type ThemeToggleProps, type TimelineEvent, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, ToneBadge, type ToneBadgeProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipPlacement, type TooltipProps, TransactionCard, type TransactionCardProps, TransferRouteCard, TrendChart, type TrendChartPoint, type TrendChartProps, type TrendChartSeries, type TrendChartTexture, type TrendChartTone, type UseCopyToClipboard, type UseDiscardGuardOptions, type UseThemeModeOptions, ValueList, type ValueListProps, VerticalScrollArea, WalletAssetList, type WalletAssetListEmptyState, type WalletAssetListItem, type WalletAssetListProps, type WithdrawAddressType, WithdrawAmountInput, type WithdrawAmountInputProps, WithdrawConfirmation, type WithdrawConfirmationProps, type WithdrawConfirmationRgbInvoice, type WithdrawDecodedLnInvoice, type WithdrawDecodedRgbInvoice, WithdrawDestinationInput, type WithdrawDestinationInputProps, type WithdrawInvoiceAsset, WithdrawInvoiceInfo, type WithdrawInvoiceInfoLnInvoice, type WithdrawInvoiceInfoProps, type WithdrawInvoiceInfoRgbInvoice, type WithdrawLnurlPayData, type WithdrawRouteOption, WithdrawRouteSelector, type WithdrawRouteSelectorProps, type WithdrawRouteSummary, WithdrawSuccess, type WithdrawSuccessProps, activeFiltersLabel, applyThemeMode, avatarVariants, cardSurface, chartLabelIndices, chartValueTicks, cn, defaultClassifyError, foldSegments, formatAmount, formatDisplayAmountText, getAccountNetworkLabel, getAccountNetworkUi, getAccountStatusUi, getActivityNetworkFilterIcon, getAssetIconUrl, getFallbackAssetIconUrl, kaleidoswapLogoHorizontalArtwork, kaleidoswapLogoVerticalArtwork, kaleidoswapMarkArtwork, networkChipStyle, seriesColor, toast, trendChartLabelIndices, trendChartTicks, useAssetIcon, useCopyToClipboard, useDiscardGuard, useDrawerCollapsed, useIsNarrow, useMediaQuery, useThemeMode, useToast };
|
|
4092
|
+
export { AccountCapabilitiesCard, type AccountCapabilitiesCardProps, AccountChoiceChip, AccountHeaderIcons, AccountInfoGrid, AccountMenu, AccountMenuItem, type AccountMenuItemProps, type AccountMenuProps, AccountMenuSeparator, AccountNetworkNotice, AccountNetworkPicker, AccountNetworkSelector, AccountNotice, type AccountSettingsNetwork, type AccountSettingsProtocol, AccountSettingsRow, AccountSettingsShell, AccountStatusPills, type AccountStatusTabItem, AccountStatusTabs, type AccountStatusTabsProps, ActionTile, type ActionTileProps, ActivityDetailRow, type ActivityDetailRowProps, ActivityFilterBar, type ActivityFilterBarProps, ActivityList, type ActivityListItem, type ActivityListProps, type ActivityNetworkFilterOption, type ActivityNetworkFilterValue, ActivityNetworkFilters, type ActivityNetworkFiltersProps, ActivityRow, type ActivityRowProps, type ActivityStatusOption, type ActivityTypeTabCounts, type ActivityTypeTabValue, ActivityTypeTabs, AlertBanner, Amount, type AmountDisplayOptions, type AmountDisplayUnit, type AmountProps, AppIcon, type AppIconName, type AppIconProps, AreaChart, ArkadeNetworkIcon, AssetCard, type AssetCardProps, AssetIcon, AssetInfoChip, type AssetInfoChipProps, AssetSelector, type AssetSelectorCategory, type AssetSelectorNetworkOption, type AssetSelectorOption, type AssetSelectorProps, type AssetSelectorQuickAsset, Avatar, type AvatarProps, BalanceBreakdown, type BalanceBreakdownAccounts, type BalanceBreakdownAsset, type BalanceBreakdownNodeInfo, type BalanceBreakdownProps, BarChart, type BarChartProps, BarList, type BarListItem, type BarListProps, BasicCollapsible, type BasicCollapsibleProps, BottomNav, type BottomNavItem, type BottomNavProps, BottomSheet, type BottomSheetAction, type BottomSheetProps, type BrandArtwork, type BrandPaint, BtcUnifiedReceive, type BtcUnifiedReceiveAddress, type BtcUnifiedReceiveProps, type BtcUnifiedReceiveResult, ButtonProps, COPY_FAILED_MESSAGE, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, type ChartDatum, type ChartFilter, ChartFrame, type ChartFrameProps, ChartLegend, type ChartSeries, type ChartTable, type ChartTimeframe, type ChartTitleProps, ChartTooltip, Choice, ChoiceGroup, type ChoiceGroupProps, type ChoiceProps, CodeBlock, type CodeBlockProps, Collapsible, CollapsibleChevron, CollapsibleContent, type CollapsibleContentProps, CollapsibleTrigger, type CollapsibleTriggerProps, ConfirmDialog, type ConfirmDialogProps, CopyButton, type CopyButtonProps, type CopyButtonStatus, type CopyCallbacks, CopyIcon, type CopyIconProps, type CopyState, Copyable, type CopyableProps, DEFAULT_AMOUNT_LOCALE, DatePicker, type DatePickerProps, type DateRange, DateRangeFilter, type DateRangeFilterProps, type DepositAccountId, DepositAssetSelection, type DepositAssetSelectionProps, type DepositGeneratedAsset, DepositGeneratedView, type DepositGeneratedViewProps, type DepositGenerationController, type DepositInvoiceAsset, DepositInvoiceGeneration, type DepositInvoiceGenerationProps, type DepositNetworkConfigEntry, DepositNetworkDefaultModal, type DepositNetworkDefaultModalProps, type DepositNetworkKey, type DepositNetworkOption, DepositPreGeneration, type DepositPreGenerationAsset, type DepositPreGenerationProps, type DepositSelectionAsset, DepositSuccessScreen, type DepositSuccessScreenProps, type DepositTransferMethod, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisclosureCard, type DisclosureCardProps, DonutChart, type DonutChartProps, type DonutSegment, DotPagination, type DotPaginationProps, type DotTone, DottedLeader, Drawer, DrawerBody, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerNavGroup, type DrawerNavGroupProps, DrawerNavItem, type DrawerNavItemProps, DrawerOverlay, DrawerPortal, DrawerSection, type DrawerSectionProps, DrawerSidebar, type DrawerSidebarProps, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuTrigger, EmptyState, type EmptyStateProps, EnvironmentIndicator, type EnvironmentIndicatorProps, ErrorBoundary, ErrorCard, type ErrorCardProps, EventTimeline, type EventTimelineProps, ExpandIcon, ExtensionPageFrame, type ExtensionPageFrameProps, FadeOverlay, type FadeOverlayProps, FilterBar, type FilterBarProps, FilterChipGroup, type FilterChipGroupProps, type FilterChipOption, FilterDropdown, type FilterDropdownOption, type FilterDropdownProps, FloatingNotice, type FloatingNoticeProps, FormField, type FormFieldProps, type FormatAmountOptions, GlyphButtonProps, HaloBackdrop, type HaloBackdropProps, HeadlineGradient, type HeadlineGradientProps, HorizontalScrollArea, IconButton, type IconButtonProps, IconName, IconProps, InfoChip, type InfoChipContentProps, type InfoChipEditAction, type InfoChipProps, type InfoChipStatus, InfoPanel, type InfoPanelProps, InlineAction, InlineSelector, type InlineSelectorOption, type InlineSelectorProps, Input, type InputProps, InstantsStatement, type InstantsStatementProps, InvoiceStatusBanner, KaleidoScopeHeroAnimation, type KaleidoScopeHeroAnimationProps, KaleidoswapLogo, type KaleidoswapLogoProps, KaleidoswapMark, type KaleidoswapMarkProps, Label, LightningNetworkIcon, LineChart, type LineChartProps, LiquidNetworkIcon, ListField, type ListFieldProps, ListSkeletonRows, type ListSkeletonRowsProps, ListSummary, type ListSummaryProps, LoadingCard, type LoadingCardProps, Meter, type MeterProps, MethodChoiceChip, MetricCard, type MetricCardProps, type MetricCardSize, MixedChart, type MixedChartMark, type MixedChartProps, type MixedChartSeries, MobileHeroAnimation, type MobileHeroAnimationProps, NETWORK_CONFIG, NetworkBadge, type NetworkBadgeProps, type NetworkIconProps, NetworkInfoChip, type NetworkInfoChipProps, NetworkInfoDisclosure, NetworkStatusChip, type NetworkStatusChipProps, type NetworkType, NostrNetworkIcon, NoticeBar, type NoticeBarProps, NumberInput, type NumberInputProps, OnchainNetworkIcon, OneTimeSecretDialog, type OneTimeSecretDialogProps, OptionSelector, type OptionSelectorOption, type OptionSelectorProps, PageHeader, type PageHeaderProps, PageShell, type PageShellProps, Pager, type PagerProps, PaidOverlay, type PeriodOption, PeriodSelect, type PeriodSelectProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, PopoverTrigger, QrCode, type QrCodeProps, type QueryErrorView, QueryState, type QueryStateProps, READ_STATUS_UPDATED_MS, ReadStatus, type ReadStatusProps, type ReadStatusRead, RecordField, type RecordFieldProps, RecordItem, type RecordItemProps, RecordList, type RecordListProps, RecoveryPhraseCard, type RecoveryPhraseCardProps, RefreshButton, type RefreshButtonProps, Restricted, type RestrictedProps, RgbNetworkIcon, ScatterChart, type ScatterChartProps, type ScatterPoint, type ScatterSeries, ScrollArea, type ScrollAreaProps, SecretRevealCard, type SecretRevealCardProps, SectionHeader, type SectionHeaderProps, SectionLabel, SectionTitle, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, SelectableCard, type SelectableCardProps, SettingItem, SettingsActionButton, SettingsSectionCard, type SettingsSectionCardProps, SettingsSelectorRow, type SettingsSelectorRowProps, SettingsStatusPanel, SettingsTile, type SettingsTileProps, Skeleton, type SkeletonProps, type SkeletonTone, type SortDirection, SparkNetworkIcon, Sparkline, type SparklineProps, StatusBadge, StatusChip, type StatusChipProps, StatusIconBadge, type StatusIconBadgeProps, type StatusType, StepperNumberInput, type StepperNumberInputProps, type SummaryRowItem, type SummaryRowTone, SummaryRows, type SummaryRowsProps, SwapBadge, type SwapBadgeProps, SwapInputCard, type SwapInputCardProps, type SwapStepItem, SwapStepList, type SwapStepListProps, type SwapStepStatus, Switch, SwitchRow, type SwitchRowProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type ThemeMode, ThemeToggle, type ThemeToggleProps, type TimelineEvent, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, ToneBadge, type ToneBadgeProps, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipPlacement, type TooltipProps, TransactionCard, type TransactionCardProps, TransferRouteCard, TrendChart, type TrendChartPoint, type TrendChartProps, type TrendChartSeries, type TrendChartTexture, type TrendChartTone, type UseCopyToClipboard, type UseDiscardGuardOptions, type UseThemeModeOptions, ValueList, type ValueListProps, VerticalScrollArea, WalletAssetList, type WalletAssetListEmptyState, type WalletAssetListItem, type WalletAssetListProps, type WithdrawAddressType, WithdrawAmountInput, type WithdrawAmountInputProps, WithdrawConfirmation, type WithdrawConfirmationProps, type WithdrawConfirmationRgbInvoice, type WithdrawDecodedLnInvoice, type WithdrawDecodedRgbInvoice, WithdrawDestinationInput, type WithdrawDestinationInputProps, type WithdrawInvoiceAsset, WithdrawInvoiceInfo, type WithdrawInvoiceInfoLnInvoice, type WithdrawInvoiceInfoProps, type WithdrawInvoiceInfoRgbInvoice, type WithdrawLnurlPayData, type WithdrawRouteOption, WithdrawRouteSelector, type WithdrawRouteSelectorProps, type WithdrawRouteSummary, WithdrawSuccess, type WithdrawSuccessProps, activeFiltersLabel, applyThemeMode, avatarVariants, cardSurface, chartLabelIndices, chartValueTicks, cn, defaultClassifyError, foldSegments, formatAmount, formatDisplayAmountText, getAccountNetworkLabel, getAccountNetworkUi, getAccountStatusUi, getActivityNetworkFilterIcon, getAssetIconUrl, getFallbackAssetIconUrl, kaleidoswapLogoHorizontalArtwork, kaleidoswapLogoVerticalArtwork, kaleidoswapMarkArtwork, networkChipStyle, seriesColor, toast, trendChartLabelIndices, trendChartTicks, useAssetIcon, useCopyToClipboard, useDiscardGuard, useDrawerCollapsed, useIsNarrow, useMediaQuery, useThemeMode, useToast };
|
package/dist/web/index.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./chunk-LOGZGZWN.js";
|
|
3
|
+
import {
|
|
4
|
+
ScatterChart
|
|
5
|
+
} from "./chunk-2OINBKHY.js";
|
|
3
6
|
import {
|
|
4
7
|
Sparkline
|
|
5
8
|
} from "./chunk-HP25HN7Q.js";
|
|
9
|
+
import {
|
|
10
|
+
BarChart
|
|
11
|
+
} from "./chunk-UG3GFYTP.js";
|
|
6
12
|
import {
|
|
7
13
|
BarList
|
|
8
14
|
} from "./chunk-C7GGZCRO.js";
|
|
@@ -20,9 +26,6 @@ import {
|
|
|
20
26
|
import {
|
|
21
27
|
MixedChart
|
|
22
28
|
} from "./chunk-DE4ALHAW.js";
|
|
23
|
-
import {
|
|
24
|
-
ScatterChart
|
|
25
|
-
} from "./chunk-2OINBKHY.js";
|
|
26
29
|
import {
|
|
27
30
|
Toaster
|
|
28
31
|
} from "./chunk-Z5LVT3BD.js";
|
|
@@ -35,9 +38,6 @@ import {
|
|
|
35
38
|
ToastTitle,
|
|
36
39
|
ToastViewport
|
|
37
40
|
} from "./chunk-2VAS6VYJ.js";
|
|
38
|
-
import {
|
|
39
|
-
BarChart
|
|
40
|
-
} from "./chunk-UG3GFYTP.js";
|
|
41
41
|
import {
|
|
42
42
|
NumberInput
|
|
43
43
|
} from "./chunk-4MLPMRXA.js";
|
|
@@ -61,6 +61,9 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
IconButton
|
|
63
63
|
} from "./chunk-O2TTO5FS.js";
|
|
64
|
+
import {
|
|
65
|
+
WithdrawRouteSelector
|
|
66
|
+
} from "./chunk-X2RA4EG3.js";
|
|
64
67
|
import {
|
|
65
68
|
WithdrawSuccess
|
|
66
69
|
} from "./chunk-WURSWAKE.js";
|
|
@@ -72,7 +75,7 @@ import {
|
|
|
72
75
|
TrendChart,
|
|
73
76
|
trendChartLabelIndices,
|
|
74
77
|
trendChartTicks
|
|
75
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-MKZZD3FM.js";
|
|
76
79
|
import {
|
|
77
80
|
ChartFrame,
|
|
78
81
|
ChartLegend,
|
|
@@ -101,13 +104,6 @@ import {
|
|
|
101
104
|
DropdownMenuSeparator,
|
|
102
105
|
DropdownMenuTrigger
|
|
103
106
|
} from "./chunk-UHXOPILM.js";
|
|
104
|
-
import {
|
|
105
|
-
Popover,
|
|
106
|
-
PopoverAnchor,
|
|
107
|
-
PopoverClose,
|
|
108
|
-
PopoverContent,
|
|
109
|
-
PopoverTrigger
|
|
110
|
-
} from "./chunk-CRMLYZIX.js";
|
|
111
107
|
import {
|
|
112
108
|
ValueList
|
|
113
109
|
} from "./chunk-LZ6PIXUO.js";
|
|
@@ -126,9 +122,6 @@ import {
|
|
|
126
122
|
import {
|
|
127
123
|
WithdrawInvoiceInfo
|
|
128
124
|
} from "./chunk-CJATW6EO.js";
|
|
129
|
-
import {
|
|
130
|
-
WithdrawRouteSelector
|
|
131
|
-
} from "./chunk-X2RA4EG3.js";
|
|
132
125
|
import {
|
|
133
126
|
StepperNumberInput
|
|
134
127
|
} from "./chunk-5PZ2XVWL.js";
|
|
@@ -154,6 +147,9 @@ import {
|
|
|
154
147
|
import {
|
|
155
148
|
Switch
|
|
156
149
|
} from "./chunk-QRFFLA3N.js";
|
|
150
|
+
import {
|
|
151
|
+
SectionLabel
|
|
152
|
+
} from "./chunk-UXLWWQ4J.js";
|
|
157
153
|
import {
|
|
158
154
|
SelectableCard
|
|
159
155
|
} from "./chunk-5V2KMO56.js";
|
|
@@ -206,9 +202,6 @@ import {
|
|
|
206
202
|
import {
|
|
207
203
|
SectionHeader
|
|
208
204
|
} from "./chunk-RXXYUYBP.js";
|
|
209
|
-
import {
|
|
210
|
-
SectionLabel
|
|
211
|
-
} from "./chunk-UXLWWQ4J.js";
|
|
212
205
|
import {
|
|
213
206
|
NoticeBar
|
|
214
207
|
} from "./chunk-R2MV4S4U.js";
|
|
@@ -224,6 +217,9 @@ import {
|
|
|
224
217
|
import {
|
|
225
218
|
PeriodSelect
|
|
226
219
|
} from "./chunk-5BNDC7M4.js";
|
|
220
|
+
import {
|
|
221
|
+
KaleidoScopeHeroAnimation
|
|
222
|
+
} from "./chunk-7YUPXESC.js";
|
|
227
223
|
import {
|
|
228
224
|
KaleidoswapLogo,
|
|
229
225
|
KaleidoswapMark
|
|
@@ -236,10 +232,13 @@ import {
|
|
|
236
232
|
} from "./chunk-XDSOOOYL.js";
|
|
237
233
|
import {
|
|
238
234
|
MetricCard
|
|
239
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-O3VC3EQT.js";
|
|
240
236
|
import {
|
|
241
237
|
MobileHeroAnimation
|
|
242
238
|
} from "./chunk-25RRZDZ2.js";
|
|
239
|
+
import {
|
|
240
|
+
FilterDropdown
|
|
241
|
+
} from "./chunk-76DAZT7Q.js";
|
|
243
242
|
import {
|
|
244
243
|
FloatingNotice
|
|
245
244
|
} from "./chunk-XCQGJYGF.js";
|
|
@@ -261,9 +260,6 @@ import {
|
|
|
261
260
|
import {
|
|
262
261
|
InstantsStatement
|
|
263
262
|
} from "./chunk-PCKRLEAO.js";
|
|
264
|
-
import {
|
|
265
|
-
KaleidoScopeHeroAnimation
|
|
266
|
-
} from "./chunk-7YUPXESC.js";
|
|
267
263
|
import {
|
|
268
264
|
EnvironmentIndicator
|
|
269
265
|
} from "./chunk-TI7NWMEQ.js";
|
|
@@ -291,8 +287,11 @@ import {
|
|
|
291
287
|
FilterChipGroup
|
|
292
288
|
} from "./chunk-HVKSBEZN.js";
|
|
293
289
|
import {
|
|
294
|
-
|
|
295
|
-
} from "./chunk-
|
|
290
|
+
DepositAssetSelection
|
|
291
|
+
} from "./chunk-WWF7IJBF.js";
|
|
292
|
+
import {
|
|
293
|
+
DotPagination
|
|
294
|
+
} from "./chunk-6PNGSAJB.js";
|
|
296
295
|
import {
|
|
297
296
|
DepositInvoiceGeneration
|
|
298
297
|
} from "./chunk-JZ3BUM5L.js";
|
|
@@ -329,6 +328,16 @@ import {
|
|
|
329
328
|
import {
|
|
330
329
|
Copyable
|
|
331
330
|
} from "./chunk-IK32AIOS.js";
|
|
331
|
+
import {
|
|
332
|
+
DatePicker
|
|
333
|
+
} from "./chunk-X7AOMP24.js";
|
|
334
|
+
import {
|
|
335
|
+
Popover,
|
|
336
|
+
PopoverAnchor,
|
|
337
|
+
PopoverClose,
|
|
338
|
+
PopoverContent,
|
|
339
|
+
PopoverTrigger
|
|
340
|
+
} from "./chunk-CRMLYZIX.js";
|
|
332
341
|
import {
|
|
333
342
|
DateRangeFilter
|
|
334
343
|
} from "./chunk-SJNOBBU5.js";
|
|
@@ -338,12 +347,6 @@ import {
|
|
|
338
347
|
import {
|
|
339
348
|
Label
|
|
340
349
|
} from "./chunk-H3GYLFHP.js";
|
|
341
|
-
import {
|
|
342
|
-
DepositAssetSelection
|
|
343
|
-
} from "./chunk-WWF7IJBF.js";
|
|
344
|
-
import {
|
|
345
|
-
DotPagination
|
|
346
|
-
} from "./chunk-6PNGSAJB.js";
|
|
347
350
|
import {
|
|
348
351
|
AssetCard
|
|
349
352
|
} from "./chunk-7NS5S2PG.js";
|
|
@@ -430,7 +433,10 @@ import "./chunk-CBE7BT3M.js";
|
|
|
430
433
|
import "./chunk-TKRMGN7J.js";
|
|
431
434
|
import {
|
|
432
435
|
ActivityList
|
|
433
|
-
} from "./chunk-
|
|
436
|
+
} from "./chunk-STH4BGSE.js";
|
|
437
|
+
import {
|
|
438
|
+
TransactionCard
|
|
439
|
+
} from "./chunk-2NCH2ZDU.js";
|
|
434
440
|
import {
|
|
435
441
|
SwapBadge
|
|
436
442
|
} from "./chunk-AP7Q2FCS.js";
|
|
@@ -443,9 +449,6 @@ import {
|
|
|
443
449
|
CardTitle,
|
|
444
450
|
cardSurface
|
|
445
451
|
} from "./chunk-GZZ5KVON.js";
|
|
446
|
-
import {
|
|
447
|
-
TransactionCard
|
|
448
|
-
} from "./chunk-2NCH2ZDU.js";
|
|
449
452
|
import {
|
|
450
453
|
EmptyState
|
|
451
454
|
} from "./chunk-UZ4LWR4X.js";
|
|
@@ -646,6 +649,7 @@ export {
|
|
|
646
649
|
CopyIcon,
|
|
647
650
|
Copyable,
|
|
648
651
|
DEFAULT_AMOUNT_LOCALE,
|
|
652
|
+
DatePicker,
|
|
649
653
|
DateRangeFilter,
|
|
650
654
|
DepositAssetSelection,
|
|
651
655
|
DepositGeneratedView,
|
package/package.json
CHANGED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
Icon
|
|
4
|
-
} from "./chunk-A6MSV4MA.js";
|
|
5
|
-
import {
|
|
6
|
-
eyebrow
|
|
7
|
-
} from "./chunk-MTQOAMDW.js";
|
|
8
|
-
import {
|
|
9
|
-
cn
|
|
10
|
-
} from "./chunk-PMGIJMRO.js";
|
|
11
|
-
|
|
12
|
-
// src/web/components/metric-card.tsx
|
|
13
|
-
import { useId } from "react";
|
|
14
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
var toneClasses = {
|
|
16
|
-
primary: "bg-primary/10 text-brand",
|
|
17
|
-
purple: "bg-network-arkade/10 text-network-arkade-fg",
|
|
18
|
-
blue: "bg-info/10 text-info-fg",
|
|
19
|
-
info: "bg-info/10 text-info-fg",
|
|
20
|
-
warning: "bg-warning/10 text-warning-fg",
|
|
21
|
-
success: "bg-success/10 text-success-fg",
|
|
22
|
-
muted: "bg-secondary/15 text-secondary-content"
|
|
23
|
-
};
|
|
24
|
-
function MetricCard({
|
|
25
|
-
label,
|
|
26
|
-
value,
|
|
27
|
-
description,
|
|
28
|
-
icon,
|
|
29
|
-
tone = "muted",
|
|
30
|
-
size = "compact",
|
|
31
|
-
iconPlacement,
|
|
32
|
-
trend,
|
|
33
|
-
definition,
|
|
34
|
-
change,
|
|
35
|
-
className,
|
|
36
|
-
...rest
|
|
37
|
-
}) {
|
|
38
|
-
const labelId = useId();
|
|
39
|
-
const comfortable = size === "comfortable";
|
|
40
|
-
const placement = iconPlacement ?? (comfortable ? "end" : "label");
|
|
41
|
-
const hasEnd = placement === "end" || !!trend;
|
|
42
|
-
const iconBox = comfortable ? "size-9 rounded-xl shadow-raised" : placement === "end" ? "size-7 rounded-lg" : "size-5 rounded-md";
|
|
43
|
-
const iconGlyph = comfortable ? "text-icon-lg" : placement === "end" ? "text-icon-md" : "text-icon-xs";
|
|
44
|
-
const iconNode = icon ? /* @__PURE__ */ jsx(
|
|
45
|
-
"span",
|
|
46
|
-
{
|
|
47
|
-
"data-slot": "metric-card-icon",
|
|
48
|
-
className: cn(
|
|
49
|
-
"flex shrink-0 items-center justify-center",
|
|
50
|
-
iconBox,
|
|
51
|
-
toneClasses[tone]
|
|
52
|
-
),
|
|
53
|
-
children: typeof icon === "string" ? /* @__PURE__ */ jsx(Icon, { name: icon, className: iconGlyph }) : icon
|
|
54
|
-
}
|
|
55
|
-
) : null;
|
|
56
|
-
const labelNode = /* @__PURE__ */ jsx("span", { id: labelId, "data-slot": "metric-card-label", className: cn(eyebrow, "text-muted-foreground"), children: label });
|
|
57
|
-
return /* @__PURE__ */ jsxs(
|
|
58
|
-
"div",
|
|
59
|
-
{
|
|
60
|
-
role: "group",
|
|
61
|
-
"aria-labelledby": rest["aria-label"] ? void 0 : labelId,
|
|
62
|
-
"data-slot": "metric-card",
|
|
63
|
-
"data-size": size,
|
|
64
|
-
className: cn(
|
|
65
|
-
comfortable ? "rounded-2xl bg-card/55 backdrop-blur-xl backdrop-saturate-150 bg-gradient-card-hero p-4 shadow-card" : "rounded-xl bg-card/55 backdrop-blur-xl backdrop-saturate-150 bg-gradient-card-hero p-2.5 shadow-raised",
|
|
66
|
-
hasEnd ? "flex items-stretch justify-between gap-3" : "space-y-1",
|
|
67
|
-
className
|
|
68
|
-
),
|
|
69
|
-
...rest,
|
|
70
|
-
children: [
|
|
71
|
-
/* @__PURE__ */ jsxs("div", { className: hasEnd ? "min-w-0 flex-1 space-y-1" : "contents", children: [
|
|
72
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
73
|
-
placement === "label" && iconNode,
|
|
74
|
-
labelNode
|
|
75
|
-
] }),
|
|
76
|
-
definition && /* @__PURE__ */ jsx("p", { "data-slot": "metric-card-definition", className: "m-0 text-caption text-muted-foreground", children: definition }),
|
|
77
|
-
/* @__PURE__ */ jsx(
|
|
78
|
-
"p",
|
|
79
|
-
{
|
|
80
|
-
"data-slot": "metric-card-value",
|
|
81
|
-
className: cn(
|
|
82
|
-
"m-0 font-bold tabular-nums text-foreground",
|
|
83
|
-
comfortable ? "text-headline" : "text-body"
|
|
84
|
-
),
|
|
85
|
-
children: value
|
|
86
|
-
}
|
|
87
|
-
),
|
|
88
|
-
change && /* @__PURE__ */ jsx("p", { "data-slot": "metric-card-change", className: cn("m-0 tabular-nums text-foreground", comfortable ? "text-caption" : "text-xxs"), children: change }),
|
|
89
|
-
description && /* @__PURE__ */ jsx(
|
|
90
|
-
"p",
|
|
91
|
-
{
|
|
92
|
-
"data-slot": "metric-card-description",
|
|
93
|
-
className: cn("m-0 text-muted-foreground", comfortable ? "text-caption" : "text-xxs"),
|
|
94
|
-
children: description
|
|
95
|
-
}
|
|
96
|
-
)
|
|
97
|
-
] }),
|
|
98
|
-
hasEnd && /* @__PURE__ */ jsxs("div", { className: "flex shrink-0 flex-col items-end justify-between gap-2", children: [
|
|
99
|
-
placement === "end" && iconNode,
|
|
100
|
-
trend && /* @__PURE__ */ jsx("div", { "data-slot": "metric-card-trend", className: "min-h-0 flex-1", children: trend })
|
|
101
|
-
] })
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export {
|
|
108
|
-
MetricCard
|
|
109
|
-
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
TransactionCard
|
|
4
|
+
} from "./chunk-2NCH2ZDU.js";
|
|
2
5
|
import {
|
|
3
6
|
SwapBadge
|
|
4
7
|
} from "./chunk-AP7Q2FCS.js";
|
|
5
8
|
import {
|
|
6
9
|
cardSurface
|
|
7
10
|
} from "./chunk-GZZ5KVON.js";
|
|
8
|
-
import {
|
|
9
|
-
TransactionCard
|
|
10
|
-
} from "./chunk-2NCH2ZDU.js";
|
|
11
11
|
import {
|
|
12
12
|
EmptyState
|
|
13
13
|
} from "./chunk-UZ4LWR4X.js";
|