@mediaradar/design-components 0.59.0 → 0.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, HTMLAttributes, RefObject, ButtonHTMLAttributes, Ref, ReactElement, MouseEventHandler, InputHTMLAttributes, AnchorHTMLAttributes, ComponentType } from 'react';
2
+ import { ReactNode, HTMLAttributes, RefObject, ButtonHTMLAttributes, Ref, ReactElement, MouseEventHandler, InputHTMLAttributes, AnchorHTMLAttributes, ComponentType, CSSProperties } from 'react';
3
3
  import { LucideIcon } from 'lucide-react';
4
4
  import * as class_variance_authority_types from 'class-variance-authority/types';
5
5
  import { VariantProps } from 'class-variance-authority';
@@ -1168,6 +1168,19 @@ interface CardProps extends Omit<React.HTMLAttributes<HTMLElement>, "title">, Co
1168
1168
  action?: ReactNode;
1169
1169
  /** Card body. Rendered edge to edge without `title`; inside the standard padding with it. */
1170
1170
  children?: ReactNode;
1171
+ /**
1172
+ * First load: the title stays and the body shows `skeleton` (a chart's
1173
+ * shape by default), from 300ms in and for at least 500ms.
1174
+ */
1175
+ loading?: boolean;
1176
+ /** The placeholder while `loading`. Default `ChartSkeleton`. */
1177
+ skeleton?: ReactNode;
1178
+ /** New data loading over what's shown (a filter changed): the body dims and a thin line runs along the top. */
1179
+ refreshing?: boolean;
1180
+ /** The card couldn't load: "Couldn't load this." and Try again, in the card's own space. */
1181
+ error?: boolean;
1182
+ /** Try again after `error`, or after a load that takes over 30 seconds. */
1183
+ onRetry?: () => void;
1171
1184
  }
1172
1185
  declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLElement>>;
1173
1186
 
@@ -3592,6 +3605,10 @@ interface DataTableProps<T, K extends string = string> extends CommonProps {
3592
3605
  loading?: boolean;
3593
3606
  /** How many skeleton rows while `loading`. Match the page size. */
3594
3607
  loadingRows?: number;
3608
+ /** New rows loading over the current ones (sort, page, filter): rows dim and a thin line runs along the top. */
3609
+ refreshing?: boolean;
3610
+ /** Retry offered once a load has taken over 30 seconds. */
3611
+ onRetry?: () => void;
3595
3612
  /** What the body shows when `rows` is empty. Defaults to NoResultsEmptyState. */
3596
3613
  empty?: ReactNode;
3597
3614
  /** Caps the height so the body scrolls under a pinned header: sm 320, md 480, lg 640. */
@@ -3703,7 +3720,7 @@ declare function TableLink({ className, ...props }: AnchorHTMLAttributes<HTMLAnc
3703
3720
  * />
3704
3721
  * ```
3705
3722
  */
3706
- declare function DataTable<T, K extends string = string>({ columns, rows, rowKey, title, subtitle, action, variant, titleAs, sort, onSortChange, defaultSort, renderExpanded, canExpand, rowLabel, density, loading, loadingRows, empty, maxHeight, footer, className, testIdPrefix, ...rest }: DataTableProps<T, K>): react.JSX.Element;
3723
+ declare function DataTable<T, K extends string = string>({ columns, rows, rowKey, title, subtitle, action, variant, titleAs, sort, onSortChange, defaultSort, renderExpanded, canExpand, rowLabel, density, loading, loadingRows, refreshing, onRetry, empty, maxHeight, footer, className, testIdPrefix, ...rest }: DataTableProps<T, K>): react.JSX.Element;
3707
3724
 
3708
3725
  type MediaType = "TV" | "CTV" | "Digital" | "Social" | "Radio" | "Newspaper" | "Magazine";
3709
3726
  interface MediaLabelProps extends CommonProps {
@@ -4229,4 +4246,71 @@ interface FigureProps extends MoneyFormatOptions {
4229
4246
  }
4230
4247
  declare function Figure({ value, kind, missing, ...opts }: FigureProps): react.JSX.Element;
4231
4248
 
4232
- export { AISpark, type AISparkProps, AdvertiserNoResults, type AdvertiserNoResultsProps, AdvertiserQuickFilter, type AdvertiserQuickFilterProps, AdvertiserSearchPrompt, type AdvertiserSearchPromptProps, AllFiltersButton, type AllFiltersButtonProps, type AxisMonthLabel, Badge, type BadgeKind, type BadgeProps, type BadgeTone, BarChartPlaceholder, type BarChartPlaceholderProps, BarList, type BarListProps, type BarListRow, Button, type ButtonProps, Card, type CardProps, ChartLegend, type ChartLegendProps, CheckBox, CheckBoxBox, type CheckBoxBoxProps, type CheckBoxProps, ChipContent, type ChipContentProps, type ChipVariant, type CommonProps, CopyButton, type CopyButtonProps, type Currency, DEFAULT_SEARCH_MATCH, DataScopeFilter, type DataScopeFilterProps, DataTable, type DataTableColumn, type DataTableColumnWidth, type DataTableDensity, type DataTableProps, type DateFormatOptions, type DateGranularity, type DateOrder, DateRangeFilter, type DateRangeFilterProps, type DateRangeFormatOptions, DateRangePicker, type DateRangePickerProps, Delta, type DeltaProps, Drawer, type DrawerProps, type DrawerSize, EmptyState, type EmptyStateProps, type EmptyStateSize, Figure, type FigureProps, FilterChipBar, type FilterChipBarProps, FilterDrawer, type FilterDrawerProps, type FilterDrawerSection, FilterDropdownFooter, type FilterDropdownFooterProps, Freshness, type FreshnessLevel, type FreshnessProps, InfoTip, type InfoTipProps, InlineMessage, type InlineMessageProps, type InlineMessageTone, LegendItem, type LegendItemProps, type LegendMark, LineChartPlaceholder, type LineChartPlaceholderProps, MediaLabel, type MediaLabelProps, type MediaType, Menu, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, Modal, type ModalProps, type ModalSize, type MoneyFormatOptions, MultiSelectFilter, type MultiSelectFilterProps, type MultiSelectGroup, NO_RESULTS_BODY, NO_RESULTS_TITLE, NO_VALUE, NameListModal, type NameListModalProps, type NoResultsAction, NoResultsEmptyState, type NoResultsEmptyStateProps, NoValue, type NumberFormatOptions, PRIMARY_ACTION_CLASS, PageHeader, type PageHeaderProps, Pager, type PagerProps, type PickerColumn, type PickerFilter, type PickerRow, PieChartPlaceholder, type PieChartPlaceholderProps, PrimaryBadge, type PrimaryBadgeProps, type PubBreak, PublisherBreakdownList, type PublisherBreakdownListProps, QUIET_ACTION_CLASS, SearchBar, type SearchBarProps, type SearchBarSize, type SearchBarVariant, type SearchMatchMode, type SearchMatchValue, type SearchScope, SectionHeading, type SectionHeadingProps, SectionRail, type SectionRailProps, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type SegmentedOption, SelectAllVisible, type SelectAllVisibleProps, SelectFilter, type SelectFilterProps, SelectedSection, type SelectedSectionProps, SelectionPicker, type SelectionPickerAccountList, type SelectionPickerProps, SortButton, type SortButtonProps, type SortDir, type SortState, StackedColumnPlaceholder, type StackedColumnPlaceholderProps, StatStrip, type StatStripProps, StatTile, type StatTileProps, SuggestionChip, type SuggestionChipProps, type SummaryGroup, type SummaryGroupItemValue, type TabItem, TableLink, TablePagination, type TablePaginationProps, Tabs, type TabsProps, Tag, type TagProps, TextField, type TextFieldProps, type TextFieldSize, Toast, type ToastProps, type ToastTone, Toggle, ToggleChip, type ToggleChipProps, type ToggleProps, Tooltip, type TooltipProps, WorkspaceAvatar, type WorkspaceAvatarProps, WorkspaceSelectedCard, type WorkspaceSelectedCardProps, ariaSortFor, buttonVariants, chipTriggerClass, cycleSort, defaultDateOrder, formatCount, formatCountFull, formatDate, formatDateRange, formatDateTime, formatIsoDate, formatMoney, formatMoneyFull, formatMonth, formatMonthAxis, formatOpenRange, formatPercent, formatQuarter, formatRelative, formatTime, formatWeek, noResultsBody, resolveRange, sortProp };
4249
+ /**
4250
+ * Whether to show a loading state: only once loading has lasted `delay` ms
4251
+ * (most loads finish sooner), and then for at least `min` ms, so it never
4252
+ * flashes.
4253
+ */
4254
+ declare function useDelayedLoading(loading: boolean, delay?: number, min?: number): boolean;
4255
+ /**
4256
+ * @pattern Skeleton
4257
+ * @since 0.60.0
4258
+ * @description The loading placeholder: a grey shape in the layout of the
4259
+ * content that's coming, with a soft shimmer. Presets draw the common
4260
+ * layouts (`SkeletonLines`, `ChartSkeleton`, `StatStripSkeleton`), and
4261
+ * `Card` and `DataTable` draw their own with `loading`. Never a spinner,
4262
+ * except inside a button.
4263
+ * @variant shape: line | block | circle
4264
+ * @tokens bg-subtle, rounded-pill, rounded-control, rounded-full
4265
+ * @a11y Decorative and hidden: the loading container carries `aria-busy`
4266
+ * (Card and DataTable set it), so screen readers hear the content once.
4267
+ * @behavior Shimmer sweeps left to right every 1.5s; under reduced motion
4268
+ * the shapes are plain grey. Use `useDelayedLoading` so a fast load shows
4269
+ * nothing and a slow one shows for at least 0.5s.
4270
+ * @use one shape per thing that's coming, in its real size and place.
4271
+ * @avoid a spinner in a card, or one big skeleton for the whole page.
4272
+ * @usage
4273
+ * ```tsx
4274
+ * <Skeleton className="h-3 w-32" />
4275
+ * <ChartSkeleton />
4276
+ * ```
4277
+ */
4278
+ interface SkeletonProps extends CommonProps {
4279
+ shape?: "line" | "block" | "circle";
4280
+ className?: string;
4281
+ style?: CSSProperties;
4282
+ }
4283
+ declare function Skeleton({ shape, className, style, testIdPrefix }: SkeletonProps): react.JSX.Element;
4284
+ /** Lines of text: the last one shorter, like a paragraph. */
4285
+ declare function SkeletonLines({ lines, className }: {
4286
+ lines?: number;
4287
+ className?: string;
4288
+ }): react.JSX.Element;
4289
+ /** A chart's area: a few bars rising from a baseline, with axis labels. */
4290
+ declare function ChartSkeleton({ className }: {
4291
+ className?: string;
4292
+ }): react.JSX.Element;
4293
+ /** The headline figures: a label and a figure per tile. Wrap in `StatStrip`'s frame or a card. */
4294
+ declare function StatStripSkeleton({ tiles, className }: {
4295
+ tiles?: number;
4296
+ className?: string;
4297
+ }): react.JSX.Element;
4298
+ /**
4299
+ * Shown under a loading card once it has taken a while: after 5s a quiet
4300
+ * line, after 30s an offer to try again.
4301
+ */
4302
+ declare function LongWait({ loading, onRetry, hint, className }: {
4303
+ loading: boolean;
4304
+ onRetry?: () => void;
4305
+ hint?: string;
4306
+ className?: string;
4307
+ }): react.JSX.Element | null;
4308
+ /** A card that couldn't load: one line and Retry, in the card's own space. */
4309
+ declare function LoadError({ onRetry, children }: {
4310
+ onRetry?: () => void;
4311
+ children?: ReactNode;
4312
+ }): react.JSX.Element;
4313
+ /** The thin moving line along a card's top edge while new data loads over old. */
4314
+ declare function RefreshLine(): react.JSX.Element;
4315
+
4316
+ export { AISpark, type AISparkProps, AdvertiserNoResults, type AdvertiserNoResultsProps, AdvertiserQuickFilter, type AdvertiserQuickFilterProps, AdvertiserSearchPrompt, type AdvertiserSearchPromptProps, AllFiltersButton, type AllFiltersButtonProps, type AxisMonthLabel, Badge, type BadgeKind, type BadgeProps, type BadgeTone, BarChartPlaceholder, type BarChartPlaceholderProps, BarList, type BarListProps, type BarListRow, Button, type ButtonProps, Card, type CardProps, ChartLegend, type ChartLegendProps, ChartSkeleton, CheckBox, CheckBoxBox, type CheckBoxBoxProps, type CheckBoxProps, ChipContent, type ChipContentProps, type ChipVariant, type CommonProps, CopyButton, type CopyButtonProps, type Currency, DEFAULT_SEARCH_MATCH, DataScopeFilter, type DataScopeFilterProps, DataTable, type DataTableColumn, type DataTableColumnWidth, type DataTableDensity, type DataTableProps, type DateFormatOptions, type DateGranularity, type DateOrder, DateRangeFilter, type DateRangeFilterProps, type DateRangeFormatOptions, DateRangePicker, type DateRangePickerProps, Delta, type DeltaProps, Drawer, type DrawerProps, type DrawerSize, EmptyState, type EmptyStateProps, type EmptyStateSize, Figure, type FigureProps, FilterChipBar, type FilterChipBarProps, FilterDrawer, type FilterDrawerProps, type FilterDrawerSection, FilterDropdownFooter, type FilterDropdownFooterProps, Freshness, type FreshnessLevel, type FreshnessProps, InfoTip, type InfoTipProps, InlineMessage, type InlineMessageProps, type InlineMessageTone, LegendItem, type LegendItemProps, type LegendMark, LineChartPlaceholder, type LineChartPlaceholderProps, LoadError, LongWait, MediaLabel, type MediaLabelProps, type MediaType, Menu, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, Modal, type ModalProps, type ModalSize, type MoneyFormatOptions, MultiSelectFilter, type MultiSelectFilterProps, type MultiSelectGroup, NO_RESULTS_BODY, NO_RESULTS_TITLE, NO_VALUE, NameListModal, type NameListModalProps, type NoResultsAction, NoResultsEmptyState, type NoResultsEmptyStateProps, NoValue, type NumberFormatOptions, PRIMARY_ACTION_CLASS, PageHeader, type PageHeaderProps, Pager, type PagerProps, type PickerColumn, type PickerFilter, type PickerRow, PieChartPlaceholder, type PieChartPlaceholderProps, PrimaryBadge, type PrimaryBadgeProps, type PubBreak, PublisherBreakdownList, type PublisherBreakdownListProps, QUIET_ACTION_CLASS, RefreshLine, SearchBar, type SearchBarProps, type SearchBarSize, type SearchBarVariant, type SearchMatchMode, type SearchMatchValue, type SearchScope, SectionHeading, type SectionHeadingProps, SectionRail, type SectionRailProps, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type SegmentedOption, SelectAllVisible, type SelectAllVisibleProps, SelectFilter, type SelectFilterProps, SelectedSection, type SelectedSectionProps, SelectionPicker, type SelectionPickerAccountList, type SelectionPickerProps, Skeleton, SkeletonLines, type SkeletonProps, SortButton, type SortButtonProps, type SortDir, type SortState, StackedColumnPlaceholder, type StackedColumnPlaceholderProps, StatStrip, type StatStripProps, StatStripSkeleton, StatTile, type StatTileProps, SuggestionChip, type SuggestionChipProps, type SummaryGroup, type SummaryGroupItemValue, type TabItem, TableLink, TablePagination, type TablePaginationProps, Tabs, type TabsProps, Tag, type TagProps, TextField, type TextFieldProps, type TextFieldSize, Toast, type ToastProps, type ToastTone, Toggle, ToggleChip, type ToggleChipProps, type ToggleProps, Tooltip, type TooltipProps, WorkspaceAvatar, type WorkspaceAvatarProps, WorkspaceSelectedCard, type WorkspaceSelectedCardProps, ariaSortFor, buttonVariants, chipTriggerClass, cycleSort, defaultDateOrder, formatCount, formatCountFull, formatDate, formatDateRange, formatDateTime, formatIsoDate, formatMoney, formatMoneyFull, formatMonth, formatMonthAxis, formatOpenRange, formatPercent, formatQuarter, formatRelative, formatTime, formatWeek, noResultsBody, resolveRange, sortProp, useDelayedLoading };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, HTMLAttributes, RefObject, ButtonHTMLAttributes, Ref, ReactElement, MouseEventHandler, InputHTMLAttributes, AnchorHTMLAttributes, ComponentType } from 'react';
2
+ import { ReactNode, HTMLAttributes, RefObject, ButtonHTMLAttributes, Ref, ReactElement, MouseEventHandler, InputHTMLAttributes, AnchorHTMLAttributes, ComponentType, CSSProperties } from 'react';
3
3
  import { LucideIcon } from 'lucide-react';
4
4
  import * as class_variance_authority_types from 'class-variance-authority/types';
5
5
  import { VariantProps } from 'class-variance-authority';
@@ -1168,6 +1168,19 @@ interface CardProps extends Omit<React.HTMLAttributes<HTMLElement>, "title">, Co
1168
1168
  action?: ReactNode;
1169
1169
  /** Card body. Rendered edge to edge without `title`; inside the standard padding with it. */
1170
1170
  children?: ReactNode;
1171
+ /**
1172
+ * First load: the title stays and the body shows `skeleton` (a chart's
1173
+ * shape by default), from 300ms in and for at least 500ms.
1174
+ */
1175
+ loading?: boolean;
1176
+ /** The placeholder while `loading`. Default `ChartSkeleton`. */
1177
+ skeleton?: ReactNode;
1178
+ /** New data loading over what's shown (a filter changed): the body dims and a thin line runs along the top. */
1179
+ refreshing?: boolean;
1180
+ /** The card couldn't load: "Couldn't load this." and Try again, in the card's own space. */
1181
+ error?: boolean;
1182
+ /** Try again after `error`, or after a load that takes over 30 seconds. */
1183
+ onRetry?: () => void;
1171
1184
  }
1172
1185
  declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLElement>>;
1173
1186
 
@@ -3592,6 +3605,10 @@ interface DataTableProps<T, K extends string = string> extends CommonProps {
3592
3605
  loading?: boolean;
3593
3606
  /** How many skeleton rows while `loading`. Match the page size. */
3594
3607
  loadingRows?: number;
3608
+ /** New rows loading over the current ones (sort, page, filter): rows dim and a thin line runs along the top. */
3609
+ refreshing?: boolean;
3610
+ /** Retry offered once a load has taken over 30 seconds. */
3611
+ onRetry?: () => void;
3595
3612
  /** What the body shows when `rows` is empty. Defaults to NoResultsEmptyState. */
3596
3613
  empty?: ReactNode;
3597
3614
  /** Caps the height so the body scrolls under a pinned header: sm 320, md 480, lg 640. */
@@ -3703,7 +3720,7 @@ declare function TableLink({ className, ...props }: AnchorHTMLAttributes<HTMLAnc
3703
3720
  * />
3704
3721
  * ```
3705
3722
  */
3706
- declare function DataTable<T, K extends string = string>({ columns, rows, rowKey, title, subtitle, action, variant, titleAs, sort, onSortChange, defaultSort, renderExpanded, canExpand, rowLabel, density, loading, loadingRows, empty, maxHeight, footer, className, testIdPrefix, ...rest }: DataTableProps<T, K>): react.JSX.Element;
3723
+ declare function DataTable<T, K extends string = string>({ columns, rows, rowKey, title, subtitle, action, variant, titleAs, sort, onSortChange, defaultSort, renderExpanded, canExpand, rowLabel, density, loading, loadingRows, refreshing, onRetry, empty, maxHeight, footer, className, testIdPrefix, ...rest }: DataTableProps<T, K>): react.JSX.Element;
3707
3724
 
3708
3725
  type MediaType = "TV" | "CTV" | "Digital" | "Social" | "Radio" | "Newspaper" | "Magazine";
3709
3726
  interface MediaLabelProps extends CommonProps {
@@ -4229,4 +4246,71 @@ interface FigureProps extends MoneyFormatOptions {
4229
4246
  }
4230
4247
  declare function Figure({ value, kind, missing, ...opts }: FigureProps): react.JSX.Element;
4231
4248
 
4232
- export { AISpark, type AISparkProps, AdvertiserNoResults, type AdvertiserNoResultsProps, AdvertiserQuickFilter, type AdvertiserQuickFilterProps, AdvertiserSearchPrompt, type AdvertiserSearchPromptProps, AllFiltersButton, type AllFiltersButtonProps, type AxisMonthLabel, Badge, type BadgeKind, type BadgeProps, type BadgeTone, BarChartPlaceholder, type BarChartPlaceholderProps, BarList, type BarListProps, type BarListRow, Button, type ButtonProps, Card, type CardProps, ChartLegend, type ChartLegendProps, CheckBox, CheckBoxBox, type CheckBoxBoxProps, type CheckBoxProps, ChipContent, type ChipContentProps, type ChipVariant, type CommonProps, CopyButton, type CopyButtonProps, type Currency, DEFAULT_SEARCH_MATCH, DataScopeFilter, type DataScopeFilterProps, DataTable, type DataTableColumn, type DataTableColumnWidth, type DataTableDensity, type DataTableProps, type DateFormatOptions, type DateGranularity, type DateOrder, DateRangeFilter, type DateRangeFilterProps, type DateRangeFormatOptions, DateRangePicker, type DateRangePickerProps, Delta, type DeltaProps, Drawer, type DrawerProps, type DrawerSize, EmptyState, type EmptyStateProps, type EmptyStateSize, Figure, type FigureProps, FilterChipBar, type FilterChipBarProps, FilterDrawer, type FilterDrawerProps, type FilterDrawerSection, FilterDropdownFooter, type FilterDropdownFooterProps, Freshness, type FreshnessLevel, type FreshnessProps, InfoTip, type InfoTipProps, InlineMessage, type InlineMessageProps, type InlineMessageTone, LegendItem, type LegendItemProps, type LegendMark, LineChartPlaceholder, type LineChartPlaceholderProps, MediaLabel, type MediaLabelProps, type MediaType, Menu, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, Modal, type ModalProps, type ModalSize, type MoneyFormatOptions, MultiSelectFilter, type MultiSelectFilterProps, type MultiSelectGroup, NO_RESULTS_BODY, NO_RESULTS_TITLE, NO_VALUE, NameListModal, type NameListModalProps, type NoResultsAction, NoResultsEmptyState, type NoResultsEmptyStateProps, NoValue, type NumberFormatOptions, PRIMARY_ACTION_CLASS, PageHeader, type PageHeaderProps, Pager, type PagerProps, type PickerColumn, type PickerFilter, type PickerRow, PieChartPlaceholder, type PieChartPlaceholderProps, PrimaryBadge, type PrimaryBadgeProps, type PubBreak, PublisherBreakdownList, type PublisherBreakdownListProps, QUIET_ACTION_CLASS, SearchBar, type SearchBarProps, type SearchBarSize, type SearchBarVariant, type SearchMatchMode, type SearchMatchValue, type SearchScope, SectionHeading, type SectionHeadingProps, SectionRail, type SectionRailProps, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type SegmentedOption, SelectAllVisible, type SelectAllVisibleProps, SelectFilter, type SelectFilterProps, SelectedSection, type SelectedSectionProps, SelectionPicker, type SelectionPickerAccountList, type SelectionPickerProps, SortButton, type SortButtonProps, type SortDir, type SortState, StackedColumnPlaceholder, type StackedColumnPlaceholderProps, StatStrip, type StatStripProps, StatTile, type StatTileProps, SuggestionChip, type SuggestionChipProps, type SummaryGroup, type SummaryGroupItemValue, type TabItem, TableLink, TablePagination, type TablePaginationProps, Tabs, type TabsProps, Tag, type TagProps, TextField, type TextFieldProps, type TextFieldSize, Toast, type ToastProps, type ToastTone, Toggle, ToggleChip, type ToggleChipProps, type ToggleProps, Tooltip, type TooltipProps, WorkspaceAvatar, type WorkspaceAvatarProps, WorkspaceSelectedCard, type WorkspaceSelectedCardProps, ariaSortFor, buttonVariants, chipTriggerClass, cycleSort, defaultDateOrder, formatCount, formatCountFull, formatDate, formatDateRange, formatDateTime, formatIsoDate, formatMoney, formatMoneyFull, formatMonth, formatMonthAxis, formatOpenRange, formatPercent, formatQuarter, formatRelative, formatTime, formatWeek, noResultsBody, resolveRange, sortProp };
4249
+ /**
4250
+ * Whether to show a loading state: only once loading has lasted `delay` ms
4251
+ * (most loads finish sooner), and then for at least `min` ms, so it never
4252
+ * flashes.
4253
+ */
4254
+ declare function useDelayedLoading(loading: boolean, delay?: number, min?: number): boolean;
4255
+ /**
4256
+ * @pattern Skeleton
4257
+ * @since 0.60.0
4258
+ * @description The loading placeholder: a grey shape in the layout of the
4259
+ * content that's coming, with a soft shimmer. Presets draw the common
4260
+ * layouts (`SkeletonLines`, `ChartSkeleton`, `StatStripSkeleton`), and
4261
+ * `Card` and `DataTable` draw their own with `loading`. Never a spinner,
4262
+ * except inside a button.
4263
+ * @variant shape: line | block | circle
4264
+ * @tokens bg-subtle, rounded-pill, rounded-control, rounded-full
4265
+ * @a11y Decorative and hidden: the loading container carries `aria-busy`
4266
+ * (Card and DataTable set it), so screen readers hear the content once.
4267
+ * @behavior Shimmer sweeps left to right every 1.5s; under reduced motion
4268
+ * the shapes are plain grey. Use `useDelayedLoading` so a fast load shows
4269
+ * nothing and a slow one shows for at least 0.5s.
4270
+ * @use one shape per thing that's coming, in its real size and place.
4271
+ * @avoid a spinner in a card, or one big skeleton for the whole page.
4272
+ * @usage
4273
+ * ```tsx
4274
+ * <Skeleton className="h-3 w-32" />
4275
+ * <ChartSkeleton />
4276
+ * ```
4277
+ */
4278
+ interface SkeletonProps extends CommonProps {
4279
+ shape?: "line" | "block" | "circle";
4280
+ className?: string;
4281
+ style?: CSSProperties;
4282
+ }
4283
+ declare function Skeleton({ shape, className, style, testIdPrefix }: SkeletonProps): react.JSX.Element;
4284
+ /** Lines of text: the last one shorter, like a paragraph. */
4285
+ declare function SkeletonLines({ lines, className }: {
4286
+ lines?: number;
4287
+ className?: string;
4288
+ }): react.JSX.Element;
4289
+ /** A chart's area: a few bars rising from a baseline, with axis labels. */
4290
+ declare function ChartSkeleton({ className }: {
4291
+ className?: string;
4292
+ }): react.JSX.Element;
4293
+ /** The headline figures: a label and a figure per tile. Wrap in `StatStrip`'s frame or a card. */
4294
+ declare function StatStripSkeleton({ tiles, className }: {
4295
+ tiles?: number;
4296
+ className?: string;
4297
+ }): react.JSX.Element;
4298
+ /**
4299
+ * Shown under a loading card once it has taken a while: after 5s a quiet
4300
+ * line, after 30s an offer to try again.
4301
+ */
4302
+ declare function LongWait({ loading, onRetry, hint, className }: {
4303
+ loading: boolean;
4304
+ onRetry?: () => void;
4305
+ hint?: string;
4306
+ className?: string;
4307
+ }): react.JSX.Element | null;
4308
+ /** A card that couldn't load: one line and Retry, in the card's own space. */
4309
+ declare function LoadError({ onRetry, children }: {
4310
+ onRetry?: () => void;
4311
+ children?: ReactNode;
4312
+ }): react.JSX.Element;
4313
+ /** The thin moving line along a card's top edge while new data loads over old. */
4314
+ declare function RefreshLine(): react.JSX.Element;
4315
+
4316
+ export { AISpark, type AISparkProps, AdvertiserNoResults, type AdvertiserNoResultsProps, AdvertiserQuickFilter, type AdvertiserQuickFilterProps, AdvertiserSearchPrompt, type AdvertiserSearchPromptProps, AllFiltersButton, type AllFiltersButtonProps, type AxisMonthLabel, Badge, type BadgeKind, type BadgeProps, type BadgeTone, BarChartPlaceholder, type BarChartPlaceholderProps, BarList, type BarListProps, type BarListRow, Button, type ButtonProps, Card, type CardProps, ChartLegend, type ChartLegendProps, ChartSkeleton, CheckBox, CheckBoxBox, type CheckBoxBoxProps, type CheckBoxProps, ChipContent, type ChipContentProps, type ChipVariant, type CommonProps, CopyButton, type CopyButtonProps, type Currency, DEFAULT_SEARCH_MATCH, DataScopeFilter, type DataScopeFilterProps, DataTable, type DataTableColumn, type DataTableColumnWidth, type DataTableDensity, type DataTableProps, type DateFormatOptions, type DateGranularity, type DateOrder, DateRangeFilter, type DateRangeFilterProps, type DateRangeFormatOptions, DateRangePicker, type DateRangePickerProps, Delta, type DeltaProps, Drawer, type DrawerProps, type DrawerSize, EmptyState, type EmptyStateProps, type EmptyStateSize, Figure, type FigureProps, FilterChipBar, type FilterChipBarProps, FilterDrawer, type FilterDrawerProps, type FilterDrawerSection, FilterDropdownFooter, type FilterDropdownFooterProps, Freshness, type FreshnessLevel, type FreshnessProps, InfoTip, type InfoTipProps, InlineMessage, type InlineMessageProps, type InlineMessageTone, LegendItem, type LegendItemProps, type LegendMark, LineChartPlaceholder, type LineChartPlaceholderProps, LoadError, LongWait, MediaLabel, type MediaLabelProps, type MediaType, Menu, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, Modal, type ModalProps, type ModalSize, type MoneyFormatOptions, MultiSelectFilter, type MultiSelectFilterProps, type MultiSelectGroup, NO_RESULTS_BODY, NO_RESULTS_TITLE, NO_VALUE, NameListModal, type NameListModalProps, type NoResultsAction, NoResultsEmptyState, type NoResultsEmptyStateProps, NoValue, type NumberFormatOptions, PRIMARY_ACTION_CLASS, PageHeader, type PageHeaderProps, Pager, type PagerProps, type PickerColumn, type PickerFilter, type PickerRow, PieChartPlaceholder, type PieChartPlaceholderProps, PrimaryBadge, type PrimaryBadgeProps, type PubBreak, PublisherBreakdownList, type PublisherBreakdownListProps, QUIET_ACTION_CLASS, RefreshLine, SearchBar, type SearchBarProps, type SearchBarSize, type SearchBarVariant, type SearchMatchMode, type SearchMatchValue, type SearchScope, SectionHeading, type SectionHeadingProps, SectionRail, type SectionRailProps, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type SegmentedOption, SelectAllVisible, type SelectAllVisibleProps, SelectFilter, type SelectFilterProps, SelectedSection, type SelectedSectionProps, SelectionPicker, type SelectionPickerAccountList, type SelectionPickerProps, Skeleton, SkeletonLines, type SkeletonProps, SortButton, type SortButtonProps, type SortDir, type SortState, StackedColumnPlaceholder, type StackedColumnPlaceholderProps, StatStrip, type StatStripProps, StatStripSkeleton, StatTile, type StatTileProps, SuggestionChip, type SuggestionChipProps, type SummaryGroup, type SummaryGroupItemValue, type TabItem, TableLink, TablePagination, type TablePaginationProps, Tabs, type TabsProps, Tag, type TagProps, TextField, type TextFieldProps, type TextFieldSize, Toast, type ToastProps, type ToastTone, Toggle, ToggleChip, type ToggleChipProps, type ToggleProps, Tooltip, type TooltipProps, WorkspaceAvatar, type WorkspaceAvatarProps, WorkspaceSelectedCard, type WorkspaceSelectedCardProps, ariaSortFor, buttonVariants, chipTriggerClass, cycleSort, defaultDateOrder, formatCount, formatCountFull, formatDate, formatDateRange, formatDateTime, formatIsoDate, formatMoney, formatMoneyFull, formatMonth, formatMonthAxis, formatOpenRange, formatPercent, formatQuarter, formatRelative, formatTime, formatWeek, noResultsBody, resolveRange, sortProp, useDelayedLoading };