@platned/ui 0.8.1 → 0.8.3
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.cjs +49 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -9
- package/dist/index.d.ts +49 -9
- package/dist/index.js +49 -21
- package/dist/index.js.map +1 -1
- package/dist/sidebar.cjs.map +1 -1
- package/dist/sidebar.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1425,6 +1425,8 @@ type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
|
1425
1425
|
*/
|
|
1426
1426
|
type ModalTone = 'default' | 'info' | 'positive' | 'warning' | 'danger';
|
|
1427
1427
|
type ModalFooterAlign = 'start' | 'between' | 'end';
|
|
1428
|
+
/** Where the panel sits above `sm`. Below it the modal is always a bottom sheet. */
|
|
1429
|
+
type ModalAlign = 'center' | 'top';
|
|
1428
1430
|
interface ModalProps {
|
|
1429
1431
|
/** Controlled open state. Omit it, with `ModalTrigger`, for an uncontrolled dialog. */
|
|
1430
1432
|
open?: boolean;
|
|
@@ -1447,6 +1449,13 @@ interface ModalProps {
|
|
|
1447
1449
|
role?: 'dialog' | 'alertdialog';
|
|
1448
1450
|
/** Renders the top-right close button. */
|
|
1449
1451
|
showClose?: boolean;
|
|
1452
|
+
/**
|
|
1453
|
+
* Vertical position above `sm`. `center` (the default) suits short, fixed content such as a
|
|
1454
|
+
* confirmation. `top` pins the panel near the top of the viewport so it grows downward and
|
|
1455
|
+
* does not jump when its height changes: use it for dialogs whose content changes while open
|
|
1456
|
+
* (tabs, steps, a builder, results that load). New in 0.8.2.
|
|
1457
|
+
*/
|
|
1458
|
+
align?: ModalAlign;
|
|
1450
1459
|
/** Applied to the panel. With `cn`, `className="sm:max-w-[560px]"` beats `size`. */
|
|
1451
1460
|
className?: string;
|
|
1452
1461
|
/** Call `preventDefault()` to keep the dialog open — e.g. unsaved input. */
|
|
@@ -2044,6 +2053,8 @@ interface ConfirmDialogProps {
|
|
|
2044
2053
|
*/
|
|
2045
2054
|
tone?: ModalTone;
|
|
2046
2055
|
size?: ModalSize;
|
|
2056
|
+
/** Forwarded to Modal: `top` keeps the panel from moving when its height changes. New in 0.8.2. */
|
|
2057
|
+
align?: ModalAlign;
|
|
2047
2058
|
confirmLabel?: string;
|
|
2048
2059
|
cancelLabel?: string;
|
|
2049
2060
|
confirmVariant?: 'primary' | 'danger';
|
|
@@ -2084,7 +2095,7 @@ interface ConfirmDialogProps {
|
|
|
2084
2095
|
* pattern recommends. Through 0.6 it opened on the close button, one Tab away from
|
|
2085
2096
|
* "Delete".
|
|
2086
2097
|
*/
|
|
2087
|
-
declare function ConfirmDialog({ open, title, subtitle, tone, size, confirmLabel, cancelLabel, confirmVariant, isConfirming, confirmingLabel, confirmDisabled, children, className, onConfirm, onOpenChange, }: ConfirmDialogProps): react.JSX.Element;
|
|
2098
|
+
declare function ConfirmDialog({ open, title, subtitle, tone, size, align, confirmLabel, cancelLabel, confirmVariant, isConfirming, confirmingLabel, confirmDisabled, children, className, onConfirm, onOpenChange, }: ConfirmDialogProps): react.JSX.Element;
|
|
2088
2099
|
|
|
2089
2100
|
interface NoteConfirmModalProps {
|
|
2090
2101
|
open: boolean;
|
|
@@ -2092,6 +2103,8 @@ interface NoteConfirmModalProps {
|
|
|
2092
2103
|
subtitle?: string;
|
|
2093
2104
|
tone?: ModalTone;
|
|
2094
2105
|
size?: ModalSize;
|
|
2106
|
+
/** Forwarded to Modal: `top` keeps the panel from moving when its height changes. New in 0.8.2. */
|
|
2107
|
+
align?: ModalAlign;
|
|
2095
2108
|
confirmLabel: string;
|
|
2096
2109
|
cancelLabel?: string;
|
|
2097
2110
|
confirmVariant?: 'primary' | 'danger';
|
|
@@ -4703,24 +4716,40 @@ interface TableCellLeadTextProps {
|
|
|
4703
4716
|
size?: TableCellSize;
|
|
4704
4717
|
className?: string;
|
|
4705
4718
|
}
|
|
4706
|
-
/**
|
|
4719
|
+
/**
|
|
4720
|
+
* Primary text plus an optional muted subtitle — for lead entity/name cells.
|
|
4721
|
+
*
|
|
4722
|
+
* Both lines ellipsise, with the full text as a `title`, so a long name can't stretch the row.
|
|
4723
|
+
* `min-w-0` on the root is load-bearing: callers put this next to an Avatar in a flex row, and a
|
|
4724
|
+
* flex item doesn't shrink below its content width without it, so `truncate` would never fire.
|
|
4725
|
+
*/
|
|
4707
4726
|
declare function TableCellLeadText({ primary, secondary, size, className }: TableCellLeadTextProps): react.JSX.Element;
|
|
4708
4727
|
interface TableCellTextProps {
|
|
4709
4728
|
children: ReactNode;
|
|
4710
4729
|
/** Muted (secondary) by default; pass false for the primary colour. */
|
|
4711
4730
|
muted?: boolean;
|
|
4712
4731
|
size?: TableCellSize;
|
|
4713
|
-
/**
|
|
4732
|
+
/**
|
|
4733
|
+
* Ellipsise with the full text as a `title` (default). `false` keeps the text on one line at
|
|
4734
|
+
* its full width instead, for a column that is sized to fit its content.
|
|
4735
|
+
*
|
|
4736
|
+
* Defaulted on in 0.8.3. Until then the default was a bare `whitespace-nowrap`, which in a
|
|
4737
|
+
* column narrower than the text clipped it mid-glyph with no ellipsis and no way to read the
|
|
4738
|
+
* rest.
|
|
4739
|
+
*/
|
|
4714
4740
|
truncate?: boolean;
|
|
4715
4741
|
className?: string;
|
|
4716
4742
|
}
|
|
4717
|
-
/** Plain text cell. */
|
|
4743
|
+
/** Plain one-line text cell. */
|
|
4718
4744
|
declare function TableCellText({ children, muted, size, truncate, className, }: TableCellTextProps): react.JSX.Element;
|
|
4719
4745
|
interface TableCellBadgeProps {
|
|
4720
4746
|
label: string;
|
|
4721
4747
|
className?: string;
|
|
4722
4748
|
}
|
|
4723
|
-
/**
|
|
4749
|
+
/**
|
|
4750
|
+
* Small outlined chip — entity type labels, categories. A label longer than the column
|
|
4751
|
+
* ellipsises inside the chip, with the full text as a `title`, rather than overflowing it.
|
|
4752
|
+
*/
|
|
4724
4753
|
declare function TableCellBadge({ label, className }: TableCellBadgeProps): react.JSX.Element;
|
|
4725
4754
|
interface TableCellProgressProps {
|
|
4726
4755
|
percent: number;
|
|
@@ -4730,6 +4759,11 @@ interface TableCellProgressProps {
|
|
|
4730
4759
|
*/
|
|
4731
4760
|
tone?: ProgressBarTone;
|
|
4732
4761
|
size?: TableCellSize;
|
|
4762
|
+
/**
|
|
4763
|
+
* What the bar measures, e.g. "Risk score" — the bar's accessible name, with the value
|
|
4764
|
+
* announced by the progressbar role. Without it the bar is named by its percentage alone.
|
|
4765
|
+
*/
|
|
4766
|
+
label?: string;
|
|
4733
4767
|
className?: string;
|
|
4734
4768
|
}
|
|
4735
4769
|
/**
|
|
@@ -4738,7 +4772,7 @@ interface TableCellProgressProps {
|
|
|
4738
4772
|
* through 0.7.0 it was a fixed 48 / 64px, which left most of a wide column, or of a card field in
|
|
4739
4773
|
* the responsive layout, empty. `size` now sets the bar's thickness (4 / 6px).
|
|
4740
4774
|
*/
|
|
4741
|
-
declare function TableCellProgress({ percent, tone, size, className, }: TableCellProgressProps): react.JSX.Element;
|
|
4775
|
+
declare function TableCellProgress({ percent, tone, size, label, className, }: TableCellProgressProps): react.JSX.Element;
|
|
4742
4776
|
|
|
4743
4777
|
type DataTableColumnAlign = 'start' | 'center' | 'end';
|
|
4744
4778
|
/**
|
|
@@ -4855,8 +4889,14 @@ interface DataTableProps<TData, TValue = unknown> {
|
|
|
4855
4889
|
* it. Takes precedence over `onRowClick`.
|
|
4856
4890
|
*/
|
|
4857
4891
|
getRowHref?: (row: TData) => string;
|
|
4858
|
-
/**
|
|
4859
|
-
|
|
4892
|
+
/**
|
|
4893
|
+
* Renders the row link, e.g. through your router's `Link`. Default: a plain `<a>`.
|
|
4894
|
+
*
|
|
4895
|
+
* The row comes as a second argument rather than inside `props`, so spreading `props` onto a
|
|
4896
|
+
* link never puts the row object on a DOM element. Use it for anything the link needs per row,
|
|
4897
|
+
* e.g. router state: `({ href, ...props }, row) => <Link to={href} state={{ from: row.id }} {...props} />`.
|
|
4898
|
+
*/
|
|
4899
|
+
renderRowLink?: (props: DataTableRowLinkProps, row: TData) => ReactElement;
|
|
4860
4900
|
/** A state tint per row, e.g. `(u) => (u.active ? undefined : 'muted')`. */
|
|
4861
4901
|
getRowTone?: (row: TData) => TableRowTone | undefined;
|
|
4862
4902
|
/** De-emphasise some rows, e.g. expired ones. */
|
|
@@ -5212,4 +5252,4 @@ declare function ChatBubble({ sender, children, failed, className }: ChatBubbleP
|
|
|
5212
5252
|
* with `relative`. */
|
|
5213
5253
|
declare function AuroraBackdrop(): react.JSX.Element;
|
|
5214
5254
|
|
|
5215
|
-
export { AIChatBar, type AIChatBarProps, AISuggestionChip, type AISuggestionChipProps, AccessibleIcon, type AccessibleIconProps, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemDef, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AccordionType, AiAvatar, type AiAvatarProps, AspectRatio, type AspectRatioProps, AuroraBackdrop, Avatar, AvatarBlock, type AvatarBlockProps, AvatarGroup, type AvatarGroupProps, type AvatarGroupSpacing, type AvatarImageProps, type AvatarInitialProps, type AvatarProps, type AvatarShape, type AvatarSize, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeVariant, Banner, type BannerProps, type BannerVariant, BarChart, type BarChartOrientation, type BarChartProps, type BarChartSeries, type BarChartSize, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemDef, type BreadcrumbItemProps, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupAlign, type ButtonGroupItem, type ButtonGroupProps, type ButtonGroupVariant, type ButtonProps, type ButtonSize, type ButtonVariant, CHART_SEQUENCE, CHART_TONE, CHART_TRACK, COL_SPAN, COL_SPAN_BY_TIER, COUNTRY_CODES, Calendar, type CalendarMode, type CalendarProps, Card, CardAction, type CardActionProps, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterAlign, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, type CardRadius, type CardSize, CardTitle, type CardTitleProps, type CardTone, Carousel, CarouselControls, type CarouselControlsProps, type CarouselProps, CarouselSlide, type CarouselSlideProps, CarouselViewport, type CarouselViewportProps, ChartLegend, type ChartLegendItem, type ChartLegendOrientation, type ChartLegendProps, type ChartTone, ChatBubble, type ChatBubbleProps, type ChatBubbleSender, CheckIndicator, type CheckIndicatorProps, type CheckIndicatorStatus, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, type CheckedGroup, CheckedGroupList, type CheckedGroupListColumns, type CheckedGroupListProps, ChecklistRow, type ChecklistRowProps, type ChecklistRowState, type ColSize, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, type ColumnMobileRole, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandItem, type CommandProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, ContextMenuItem, ContextMenuItems, ContextMenuLabel, type ContextMenuProps, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type ContextMenuTriggerProps, ControlSizeProvider, type ControlSizeProviderProps, CopyButton, type CopyButtonProps, CountBadge, type CountBadgeProps, CountrySelect, type CountrySelectProps, type CreateSelectColumnOptions, DEFAULT_SCORE_THRESHOLDS, DataTable, type DataTableAlign, type DataTableColumnAlign, DataTableColumnHeader, type DataTableColumnHeaderProps, type DataTableDensity, type DataTableManual, DataTablePagination, type DataTablePaginationProps, type DataTableProps, type DataTableRowLinkProps, type DataTableSearchOptions, type DataTableState, DataTableViewOptions, type DataTableViewOptionsProps, DatePicker, type DatePickerProps, type DateRange, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListProps, DetailGrid, type DetailGridColumns, type DetailGridProps, DetailItem, type DetailItemLayout, type DetailItemProps, type DetailItemSpan, DonutChart, type DonutChartProps, type DonutChartSize, type DonutSegment, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, type DrawerCloseProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterAlign, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, type DrawerSide, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, type MenuCheckboxItemProps as DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type MenuGroupProps as DropdownMenuGroupProps, DropdownMenuItem, type MenuItemProps as DropdownMenuItemProps, type MenuItemTone as DropdownMenuItemTone, DropdownMenuItems, DropdownMenuLabel, type MenuLabelProps as DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, type MenuRadioGroupProps as DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type MenuRadioItemProps as DropdownMenuRadioItemProps, DropdownMenuSeparator, type MenuSeparatorProps as DropdownMenuSeparatorProps, DropdownMenuShortcut, type MenuShortcutProps as DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type MenuSubContentProps as DropdownMenuSubContentProps, type MenuSubProps as DropdownMenuSubProps, DropdownMenuSubTrigger, type MenuSubTriggerProps as DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmailText, EmptyState, type EmptyStateProps, type EmptyStateSize, type EmptyStateVariant, EntityIconBadge, type EntityIconBadgeProps, type EntityIconBadgeSize, type EntityIconBadgeTone, ErrorBoundary, type ErrorBoundaryProps, EyebrowLabel, type EyebrowLabelProps, type EyebrowLabelVariant, FOCUS_RING, FOCUS_RING_INSET, Field, type FieldContextValue, FieldDescription, FieldError, FieldGroup, type FieldGroupProps, FieldHint, FieldLabel, type FieldLabelProps, FieldLegend, type FieldLegendProps, type FieldOrientation, type FieldProps, FieldSeparator, type FieldSeparatorProps, FieldSet, type FieldSetProps, type FieldTextProps, FileDropZone, type FileDropZoneProps, FileRow, type FileRowProps, FilterBar, type FilterBarProps, type FilterBarSize, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexProps, FormCard, FormCardFooter, type FormCardFooterProps, FormCardHeader, type FormCardHeaderProps, type FullscreenStacking, FullscreenSurface, type FullscreenSurfaceProps, GRID_TIERS, Grid, type GridBreakpoint, type GridColumnCount, type GridProps, type GridTier, HEIGHT_CLASS, HEIGHT_PX, Heading, HoverCard, type HoverCardProps, IconButton, type IconButtonProps, type IconButtonVariant, IconTextRow, type IconTextRowProps, InlineAlert, type InlineAlertProps, type InlineAlertTone, Input, InputControl, type InputControlProps, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupAlign, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputOTP, type InputOTPMode, type InputOTPProps, type InputProps, type InputSize, Kbd, type KbdProps, type KbdSize, Label, type LabelProps, LegendDot, type LegendDotProps, type LegendDotShape, type LegendDotSize, ListRow, type ListRowDensity, type ListRowDivider, type ListRowProps, type MenuItemDef, Menubar, MenubarCheckboxItem, MenubarContent, type MenubarContentProps, MenubarGroup, MenubarItem, MenubarItems, MenubarLabel, MenubarMenu, type MenubarMenuDef, type MenubarMenuProps, type MenubarProps, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, type MenubarTriggerProps, MiniBarChart, type MiniBarChartOrientation, type MiniBarChartProps, type MiniBarChartSize, Modal, ModalBody, type ModalBodyProps, ModalClose, type ModalCloseProps, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterAlign, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, type ModalSize, ModalTitle, type ModalTitleProps, type ModalTone, ModalTrigger, type ModalTriggerProps, MultiSelectCard, type MultiSelectCardProps, type MultiSelectCardSize, NavItem, type NavItemProps, type NavItemSize, type NavItemVariant, NavigationMenu, NavigationMenuItem, type NavigationMenuItemProps, type NavigationMenuOrientation, type NavigationMenuProps, type NavigationMenuVariant, NoteConfirmModal, type NoteConfirmModalProps, NumberedList, type NumberedListGap, type NumberedListItem, type NumberedListProps, OVERLAY_SCRIM, PageHeading, type PageHeadingProps, type PageHeadingSize, PageToolbar, type PageToolbarProps, type PageToolbarSize, Pagination, PaginationBar, type PaginationBarProps, type PaginationProps, type PaginationType, PasswordInput, type PasswordInputProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, ProgressBar, type ProgressBarProps, type ProgressBarSize, type ProgressBarTone, type QuickAction, QuickActionsBar, type QuickActionsBarProps, Quote, ROLE_COMBO_OPTIONS, RadialGauge, type RadialGaugeProps, type RadialGaugeSize, Radio, RadioCards, RadioCardsItem, type RadioCardsItemProps, type RadioCardsProps, type RadioCardsSize, RadioGroup, type RadioGroupOption, type RadioGroupOrientation, type RadioGroupProps, type RadioProps, Resizable, type ResizableDirection, ResizableHandle, type ResizableHandleProps, ResizablePanel, type ResizablePanelProps, type ResizableProps, RoleBadge, type RoleBadgeProps, type RoleBadgeTone, RoleComboBox, type RoleComboBoxProps, type RoleOption, SCROLLBAR_CLASSES, SELECT_COLUMN_ID, type ScoreDirection, type ScoreRampTone, type ScoreThresholds, type ScoreTone, ScoreValue, type ScoreValueProps, type ScoreValueSize, type ScoreValueTone, type ScoreValueWeight, ScoredRow, type ScoredRowAlign, type ScoredRowGap, type ScoredRowProps, Scrim, type ScrimProps, ScrollArea, type ScrollAreaAxis, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, type SectionProps, type SectionSize, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, SelectControl, type SelectControlProps, type SelectOption, type SelectOptionGroup, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, Skeleton, type SkeletonProps, type SkeletonShape, Slider, type SliderProps, Slot, type SlotProps, type SpaceToken, Sparkline, type SparklineProps, type SparklineSize, type SparklineVariant, Spinner, type SpinnerProps, type SpinnerSize, StatNumber, type StatNumberProps, type StatNumberSize, type StatNumberWeight, StatTile, type StatTileProps, StatusBadge, type StatusBadgeProps, type StatusBadgeSize, StatusChip, type StatusChipProps, StatusDot, type StatusDotProps, type StatusDotTone, type StatusTone, type StepItem, type StepStatus, Stepper, type StepperProps, type StepperSize, StepsList, type StepsListProps, Subheading, Subtitle, Switch, type SwitchProps, type SwitchSize, TIER_COLS, TIER_MIN_PX, type TabItem, Table, TableBody, TableCaption, type TableCaptionProps, TableCell, TableCellBadge, type TableCellBadgeProps, TableCellLeadText, type TableCellLeadTextProps, TableCellProgress, type TableCellProgressProps, type TableCellProps, type TableCellSize, TableCellText, type TableCellTextProps, type TableDensity, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, type TableRowTone, type TableSortDirection, Tabs, type TabsActivation, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, type TabsRootProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, TagInput, type TagInputParseResult, type TagInputProps, TagPill, type TagPillProps, type TagPillTone, Text, TextCode, TextEmphasis, TextLink, type TextLinkProps, TextList, type TextListDensity, TextListItem, type TextListItemProps, type TextListProps, type TextListVariant, type TextProps, TextSmall, TextStrong, TextTiny, type TextTone, Textarea, TextareaControl, type TextareaControlProps, type TextareaProps, TileGrid, type TileGridBreakpoint, type TileGridColumns, type TileGridProps, TimeZoneSelect, type TimeZoneSelectProps, TitleHero, TitlePage, type ToastOptions, type ToastRecord, type ToastTone, Toaster, type ToasterPosition, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, type ToggleGroupType, type ToggleProps, type ToggleSize, type ToggleVariant, Tooltip, type TooltipProps, TrailChip, type TrailChipProps, type TreeItemState, TreeView, type TreeViewProps, type TreeViewSize, type TrendDirection, TrendLabel, type TrendLabelProps, type TrendLabelSize, type TrendLabelWeight, TypingIndicator, type TypingIndicatorProps, type UseFilePicker, type UseFilePickerOptions, type UseWidthTierOptions, type UseWidthTierResult, type UserAccountStatus, UserStatusPill, type UserStatusPillProps, VisuallyHidden, type VisuallyHiddenProps, WidgetFooter, type WidgetFooterProps, WidgetGrid, WidgetGridItem, type WidgetGridItemProps, type WidgetGridProps, WidgetGridRow, type WidgetGridRowProps, WidgetHeader, type WidgetHeaderEyebrowVariant, type WidgetHeaderProps, type WidgetHeight, WidgetTitle, type WidgetTitleProps, type WidgetTitleSize, cn, colsFor, composeRefs, countryOptions, createSelectColumn, currentZoneName, formatFileSize, getScoreTone, nextTier, paginationRange, quantizeWidth, resolveChartColor, slotWidthPx, tabId, tabPanelId, tierForWidth, timeZoneOffset, timeZoneOptions, useControlSize, useElementWidth, useFieldContext, useFieldControl, useFilePicker, useOverlayDismiss, usePortalContainer, useToast, useWidthTier };
|
|
5255
|
+
export { AIChatBar, type AIChatBarProps, AISuggestionChip, type AISuggestionChipProps, AccessibleIcon, type AccessibleIconProps, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemDef, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AccordionType, AiAvatar, type AiAvatarProps, AspectRatio, type AspectRatioProps, AuroraBackdrop, Avatar, AvatarBlock, type AvatarBlockProps, AvatarGroup, type AvatarGroupProps, type AvatarGroupSpacing, type AvatarImageProps, type AvatarInitialProps, type AvatarProps, type AvatarShape, type AvatarSize, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeVariant, Banner, type BannerProps, type BannerVariant, BarChart, type BarChartOrientation, type BarChartProps, type BarChartSeries, type BarChartSize, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemDef, type BreadcrumbItemProps, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupAlign, type ButtonGroupItem, type ButtonGroupProps, type ButtonGroupVariant, type ButtonProps, type ButtonSize, type ButtonVariant, CHART_SEQUENCE, CHART_TONE, CHART_TRACK, COL_SPAN, COL_SPAN_BY_TIER, COUNTRY_CODES, Calendar, type CalendarMode, type CalendarProps, Card, CardAction, type CardActionProps, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterAlign, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, type CardRadius, type CardSize, CardTitle, type CardTitleProps, type CardTone, Carousel, CarouselControls, type CarouselControlsProps, type CarouselProps, CarouselSlide, type CarouselSlideProps, CarouselViewport, type CarouselViewportProps, ChartLegend, type ChartLegendItem, type ChartLegendOrientation, type ChartLegendProps, type ChartTone, ChatBubble, type ChatBubbleProps, type ChatBubbleSender, CheckIndicator, type CheckIndicatorProps, type CheckIndicatorStatus, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, type CheckedGroup, CheckedGroupList, type CheckedGroupListColumns, type CheckedGroupListProps, ChecklistRow, type ChecklistRowProps, type ChecklistRowState, type ColSize, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, type ColumnMobileRole, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandItem, type CommandProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, ContextMenuItem, ContextMenuItems, ContextMenuLabel, type ContextMenuProps, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type ContextMenuTriggerProps, ControlSizeProvider, type ControlSizeProviderProps, CopyButton, type CopyButtonProps, CountBadge, type CountBadgeProps, CountrySelect, type CountrySelectProps, type CreateSelectColumnOptions, DEFAULT_SCORE_THRESHOLDS, DataTable, type DataTableAlign, type DataTableColumnAlign, DataTableColumnHeader, type DataTableColumnHeaderProps, type DataTableDensity, type DataTableManual, DataTablePagination, type DataTablePaginationProps, type DataTableProps, type DataTableRowLinkProps, type DataTableSearchOptions, type DataTableState, DataTableViewOptions, type DataTableViewOptionsProps, DatePicker, type DatePickerProps, type DateRange, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListProps, DetailGrid, type DetailGridColumns, type DetailGridProps, DetailItem, type DetailItemLayout, type DetailItemProps, type DetailItemSpan, DonutChart, type DonutChartProps, type DonutChartSize, type DonutSegment, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, type DrawerCloseProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterAlign, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, type DrawerSide, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, type MenuCheckboxItemProps as DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type MenuGroupProps as DropdownMenuGroupProps, DropdownMenuItem, type MenuItemProps as DropdownMenuItemProps, type MenuItemTone as DropdownMenuItemTone, DropdownMenuItems, DropdownMenuLabel, type MenuLabelProps as DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, type MenuRadioGroupProps as DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type MenuRadioItemProps as DropdownMenuRadioItemProps, DropdownMenuSeparator, type MenuSeparatorProps as DropdownMenuSeparatorProps, DropdownMenuShortcut, type MenuShortcutProps as DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type MenuSubContentProps as DropdownMenuSubContentProps, type MenuSubProps as DropdownMenuSubProps, DropdownMenuSubTrigger, type MenuSubTriggerProps as DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmailText, EmptyState, type EmptyStateProps, type EmptyStateSize, type EmptyStateVariant, EntityIconBadge, type EntityIconBadgeProps, type EntityIconBadgeSize, type EntityIconBadgeTone, ErrorBoundary, type ErrorBoundaryProps, EyebrowLabel, type EyebrowLabelProps, type EyebrowLabelVariant, FOCUS_RING, FOCUS_RING_INSET, Field, type FieldContextValue, FieldDescription, FieldError, FieldGroup, type FieldGroupProps, FieldHint, FieldLabel, type FieldLabelProps, FieldLegend, type FieldLegendProps, type FieldOrientation, type FieldProps, FieldSeparator, type FieldSeparatorProps, FieldSet, type FieldSetProps, type FieldTextProps, FileDropZone, type FileDropZoneProps, FileRow, type FileRowProps, FilterBar, type FilterBarProps, type FilterBarSize, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexProps, FormCard, FormCardFooter, type FormCardFooterProps, FormCardHeader, type FormCardHeaderProps, type FullscreenStacking, FullscreenSurface, type FullscreenSurfaceProps, GRID_TIERS, Grid, type GridBreakpoint, type GridColumnCount, type GridProps, type GridTier, HEIGHT_CLASS, HEIGHT_PX, Heading, HoverCard, type HoverCardProps, IconButton, type IconButtonProps, type IconButtonVariant, IconTextRow, type IconTextRowProps, InlineAlert, type InlineAlertProps, type InlineAlertTone, Input, InputControl, type InputControlProps, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupAlign, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputOTP, type InputOTPMode, type InputOTPProps, type InputProps, type InputSize, Kbd, type KbdProps, type KbdSize, Label, type LabelProps, LegendDot, type LegendDotProps, type LegendDotShape, type LegendDotSize, ListRow, type ListRowDensity, type ListRowDivider, type ListRowProps, type MenuItemDef, Menubar, MenubarCheckboxItem, MenubarContent, type MenubarContentProps, MenubarGroup, MenubarItem, MenubarItems, MenubarLabel, MenubarMenu, type MenubarMenuDef, type MenubarMenuProps, type MenubarProps, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, type MenubarTriggerProps, MiniBarChart, type MiniBarChartOrientation, type MiniBarChartProps, type MiniBarChartSize, Modal, type ModalAlign, ModalBody, type ModalBodyProps, ModalClose, type ModalCloseProps, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterAlign, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, type ModalSize, ModalTitle, type ModalTitleProps, type ModalTone, ModalTrigger, type ModalTriggerProps, MultiSelectCard, type MultiSelectCardProps, type MultiSelectCardSize, NavItem, type NavItemProps, type NavItemSize, type NavItemVariant, NavigationMenu, NavigationMenuItem, type NavigationMenuItemProps, type NavigationMenuOrientation, type NavigationMenuProps, type NavigationMenuVariant, NoteConfirmModal, type NoteConfirmModalProps, NumberedList, type NumberedListGap, type NumberedListItem, type NumberedListProps, OVERLAY_SCRIM, PageHeading, type PageHeadingProps, type PageHeadingSize, PageToolbar, type PageToolbarProps, type PageToolbarSize, Pagination, PaginationBar, type PaginationBarProps, type PaginationProps, type PaginationType, PasswordInput, type PasswordInputProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, ProgressBar, type ProgressBarProps, type ProgressBarSize, type ProgressBarTone, type QuickAction, QuickActionsBar, type QuickActionsBarProps, Quote, ROLE_COMBO_OPTIONS, RadialGauge, type RadialGaugeProps, type RadialGaugeSize, Radio, RadioCards, RadioCardsItem, type RadioCardsItemProps, type RadioCardsProps, type RadioCardsSize, RadioGroup, type RadioGroupOption, type RadioGroupOrientation, type RadioGroupProps, type RadioProps, Resizable, type ResizableDirection, ResizableHandle, type ResizableHandleProps, ResizablePanel, type ResizablePanelProps, type ResizableProps, RoleBadge, type RoleBadgeProps, type RoleBadgeTone, RoleComboBox, type RoleComboBoxProps, type RoleOption, SCROLLBAR_CLASSES, SELECT_COLUMN_ID, type ScoreDirection, type ScoreRampTone, type ScoreThresholds, type ScoreTone, ScoreValue, type ScoreValueProps, type ScoreValueSize, type ScoreValueTone, type ScoreValueWeight, ScoredRow, type ScoredRowAlign, type ScoredRowGap, type ScoredRowProps, Scrim, type ScrimProps, ScrollArea, type ScrollAreaAxis, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, type SectionProps, type SectionSize, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, SelectControl, type SelectControlProps, type SelectOption, type SelectOptionGroup, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, Skeleton, type SkeletonProps, type SkeletonShape, Slider, type SliderProps, Slot, type SlotProps, type SpaceToken, Sparkline, type SparklineProps, type SparklineSize, type SparklineVariant, Spinner, type SpinnerProps, type SpinnerSize, StatNumber, type StatNumberProps, type StatNumberSize, type StatNumberWeight, StatTile, type StatTileProps, StatusBadge, type StatusBadgeProps, type StatusBadgeSize, StatusChip, type StatusChipProps, StatusDot, type StatusDotProps, type StatusDotTone, type StatusTone, type StepItem, type StepStatus, Stepper, type StepperProps, type StepperSize, StepsList, type StepsListProps, Subheading, Subtitle, Switch, type SwitchProps, type SwitchSize, TIER_COLS, TIER_MIN_PX, type TabItem, Table, TableBody, TableCaption, type TableCaptionProps, TableCell, TableCellBadge, type TableCellBadgeProps, TableCellLeadText, type TableCellLeadTextProps, TableCellProgress, type TableCellProgressProps, type TableCellProps, type TableCellSize, TableCellText, type TableCellTextProps, type TableDensity, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, type TableRowTone, type TableSortDirection, Tabs, type TabsActivation, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, type TabsRootProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, TagInput, type TagInputParseResult, type TagInputProps, TagPill, type TagPillProps, type TagPillTone, Text, TextCode, TextEmphasis, TextLink, type TextLinkProps, TextList, type TextListDensity, TextListItem, type TextListItemProps, type TextListProps, type TextListVariant, type TextProps, TextSmall, TextStrong, TextTiny, type TextTone, Textarea, TextareaControl, type TextareaControlProps, type TextareaProps, TileGrid, type TileGridBreakpoint, type TileGridColumns, type TileGridProps, TimeZoneSelect, type TimeZoneSelectProps, TitleHero, TitlePage, type ToastOptions, type ToastRecord, type ToastTone, Toaster, type ToasterPosition, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, type ToggleGroupType, type ToggleProps, type ToggleSize, type ToggleVariant, Tooltip, type TooltipProps, TrailChip, type TrailChipProps, type TreeItemState, TreeView, type TreeViewProps, type TreeViewSize, type TrendDirection, TrendLabel, type TrendLabelProps, type TrendLabelSize, type TrendLabelWeight, TypingIndicator, type TypingIndicatorProps, type UseFilePicker, type UseFilePickerOptions, type UseWidthTierOptions, type UseWidthTierResult, type UserAccountStatus, UserStatusPill, type UserStatusPillProps, VisuallyHidden, type VisuallyHiddenProps, WidgetFooter, type WidgetFooterProps, WidgetGrid, WidgetGridItem, type WidgetGridItemProps, type WidgetGridProps, WidgetGridRow, type WidgetGridRowProps, WidgetHeader, type WidgetHeaderEyebrowVariant, type WidgetHeaderProps, type WidgetHeight, WidgetTitle, type WidgetTitleProps, type WidgetTitleSize, cn, colsFor, composeRefs, countryOptions, createSelectColumn, currentZoneName, formatFileSize, getScoreTone, nextTier, paginationRange, quantizeWidth, resolveChartColor, slotWidthPx, tabId, tabPanelId, tierForWidth, timeZoneOffset, timeZoneOptions, useControlSize, useElementWidth, useFieldContext, useFieldControl, useFilePicker, useOverlayDismiss, usePortalContainer, useToast, useWidthTier };
|
package/dist/index.d.ts
CHANGED
|
@@ -1425,6 +1425,8 @@ type ModalSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
|
1425
1425
|
*/
|
|
1426
1426
|
type ModalTone = 'default' | 'info' | 'positive' | 'warning' | 'danger';
|
|
1427
1427
|
type ModalFooterAlign = 'start' | 'between' | 'end';
|
|
1428
|
+
/** Where the panel sits above `sm`. Below it the modal is always a bottom sheet. */
|
|
1429
|
+
type ModalAlign = 'center' | 'top';
|
|
1428
1430
|
interface ModalProps {
|
|
1429
1431
|
/** Controlled open state. Omit it, with `ModalTrigger`, for an uncontrolled dialog. */
|
|
1430
1432
|
open?: boolean;
|
|
@@ -1447,6 +1449,13 @@ interface ModalProps {
|
|
|
1447
1449
|
role?: 'dialog' | 'alertdialog';
|
|
1448
1450
|
/** Renders the top-right close button. */
|
|
1449
1451
|
showClose?: boolean;
|
|
1452
|
+
/**
|
|
1453
|
+
* Vertical position above `sm`. `center` (the default) suits short, fixed content such as a
|
|
1454
|
+
* confirmation. `top` pins the panel near the top of the viewport so it grows downward and
|
|
1455
|
+
* does not jump when its height changes: use it for dialogs whose content changes while open
|
|
1456
|
+
* (tabs, steps, a builder, results that load). New in 0.8.2.
|
|
1457
|
+
*/
|
|
1458
|
+
align?: ModalAlign;
|
|
1450
1459
|
/** Applied to the panel. With `cn`, `className="sm:max-w-[560px]"` beats `size`. */
|
|
1451
1460
|
className?: string;
|
|
1452
1461
|
/** Call `preventDefault()` to keep the dialog open — e.g. unsaved input. */
|
|
@@ -2044,6 +2053,8 @@ interface ConfirmDialogProps {
|
|
|
2044
2053
|
*/
|
|
2045
2054
|
tone?: ModalTone;
|
|
2046
2055
|
size?: ModalSize;
|
|
2056
|
+
/** Forwarded to Modal: `top` keeps the panel from moving when its height changes. New in 0.8.2. */
|
|
2057
|
+
align?: ModalAlign;
|
|
2047
2058
|
confirmLabel?: string;
|
|
2048
2059
|
cancelLabel?: string;
|
|
2049
2060
|
confirmVariant?: 'primary' | 'danger';
|
|
@@ -2084,7 +2095,7 @@ interface ConfirmDialogProps {
|
|
|
2084
2095
|
* pattern recommends. Through 0.6 it opened on the close button, one Tab away from
|
|
2085
2096
|
* "Delete".
|
|
2086
2097
|
*/
|
|
2087
|
-
declare function ConfirmDialog({ open, title, subtitle, tone, size, confirmLabel, cancelLabel, confirmVariant, isConfirming, confirmingLabel, confirmDisabled, children, className, onConfirm, onOpenChange, }: ConfirmDialogProps): react.JSX.Element;
|
|
2098
|
+
declare function ConfirmDialog({ open, title, subtitle, tone, size, align, confirmLabel, cancelLabel, confirmVariant, isConfirming, confirmingLabel, confirmDisabled, children, className, onConfirm, onOpenChange, }: ConfirmDialogProps): react.JSX.Element;
|
|
2088
2099
|
|
|
2089
2100
|
interface NoteConfirmModalProps {
|
|
2090
2101
|
open: boolean;
|
|
@@ -2092,6 +2103,8 @@ interface NoteConfirmModalProps {
|
|
|
2092
2103
|
subtitle?: string;
|
|
2093
2104
|
tone?: ModalTone;
|
|
2094
2105
|
size?: ModalSize;
|
|
2106
|
+
/** Forwarded to Modal: `top` keeps the panel from moving when its height changes. New in 0.8.2. */
|
|
2107
|
+
align?: ModalAlign;
|
|
2095
2108
|
confirmLabel: string;
|
|
2096
2109
|
cancelLabel?: string;
|
|
2097
2110
|
confirmVariant?: 'primary' | 'danger';
|
|
@@ -4703,24 +4716,40 @@ interface TableCellLeadTextProps {
|
|
|
4703
4716
|
size?: TableCellSize;
|
|
4704
4717
|
className?: string;
|
|
4705
4718
|
}
|
|
4706
|
-
/**
|
|
4719
|
+
/**
|
|
4720
|
+
* Primary text plus an optional muted subtitle — for lead entity/name cells.
|
|
4721
|
+
*
|
|
4722
|
+
* Both lines ellipsise, with the full text as a `title`, so a long name can't stretch the row.
|
|
4723
|
+
* `min-w-0` on the root is load-bearing: callers put this next to an Avatar in a flex row, and a
|
|
4724
|
+
* flex item doesn't shrink below its content width without it, so `truncate` would never fire.
|
|
4725
|
+
*/
|
|
4707
4726
|
declare function TableCellLeadText({ primary, secondary, size, className }: TableCellLeadTextProps): react.JSX.Element;
|
|
4708
4727
|
interface TableCellTextProps {
|
|
4709
4728
|
children: ReactNode;
|
|
4710
4729
|
/** Muted (secondary) by default; pass false for the primary colour. */
|
|
4711
4730
|
muted?: boolean;
|
|
4712
4731
|
size?: TableCellSize;
|
|
4713
|
-
/**
|
|
4732
|
+
/**
|
|
4733
|
+
* Ellipsise with the full text as a `title` (default). `false` keeps the text on one line at
|
|
4734
|
+
* its full width instead, for a column that is sized to fit its content.
|
|
4735
|
+
*
|
|
4736
|
+
* Defaulted on in 0.8.3. Until then the default was a bare `whitespace-nowrap`, which in a
|
|
4737
|
+
* column narrower than the text clipped it mid-glyph with no ellipsis and no way to read the
|
|
4738
|
+
* rest.
|
|
4739
|
+
*/
|
|
4714
4740
|
truncate?: boolean;
|
|
4715
4741
|
className?: string;
|
|
4716
4742
|
}
|
|
4717
|
-
/** Plain text cell. */
|
|
4743
|
+
/** Plain one-line text cell. */
|
|
4718
4744
|
declare function TableCellText({ children, muted, size, truncate, className, }: TableCellTextProps): react.JSX.Element;
|
|
4719
4745
|
interface TableCellBadgeProps {
|
|
4720
4746
|
label: string;
|
|
4721
4747
|
className?: string;
|
|
4722
4748
|
}
|
|
4723
|
-
/**
|
|
4749
|
+
/**
|
|
4750
|
+
* Small outlined chip — entity type labels, categories. A label longer than the column
|
|
4751
|
+
* ellipsises inside the chip, with the full text as a `title`, rather than overflowing it.
|
|
4752
|
+
*/
|
|
4724
4753
|
declare function TableCellBadge({ label, className }: TableCellBadgeProps): react.JSX.Element;
|
|
4725
4754
|
interface TableCellProgressProps {
|
|
4726
4755
|
percent: number;
|
|
@@ -4730,6 +4759,11 @@ interface TableCellProgressProps {
|
|
|
4730
4759
|
*/
|
|
4731
4760
|
tone?: ProgressBarTone;
|
|
4732
4761
|
size?: TableCellSize;
|
|
4762
|
+
/**
|
|
4763
|
+
* What the bar measures, e.g. "Risk score" — the bar's accessible name, with the value
|
|
4764
|
+
* announced by the progressbar role. Without it the bar is named by its percentage alone.
|
|
4765
|
+
*/
|
|
4766
|
+
label?: string;
|
|
4733
4767
|
className?: string;
|
|
4734
4768
|
}
|
|
4735
4769
|
/**
|
|
@@ -4738,7 +4772,7 @@ interface TableCellProgressProps {
|
|
|
4738
4772
|
* through 0.7.0 it was a fixed 48 / 64px, which left most of a wide column, or of a card field in
|
|
4739
4773
|
* the responsive layout, empty. `size` now sets the bar's thickness (4 / 6px).
|
|
4740
4774
|
*/
|
|
4741
|
-
declare function TableCellProgress({ percent, tone, size, className, }: TableCellProgressProps): react.JSX.Element;
|
|
4775
|
+
declare function TableCellProgress({ percent, tone, size, label, className, }: TableCellProgressProps): react.JSX.Element;
|
|
4742
4776
|
|
|
4743
4777
|
type DataTableColumnAlign = 'start' | 'center' | 'end';
|
|
4744
4778
|
/**
|
|
@@ -4855,8 +4889,14 @@ interface DataTableProps<TData, TValue = unknown> {
|
|
|
4855
4889
|
* it. Takes precedence over `onRowClick`.
|
|
4856
4890
|
*/
|
|
4857
4891
|
getRowHref?: (row: TData) => string;
|
|
4858
|
-
/**
|
|
4859
|
-
|
|
4892
|
+
/**
|
|
4893
|
+
* Renders the row link, e.g. through your router's `Link`. Default: a plain `<a>`.
|
|
4894
|
+
*
|
|
4895
|
+
* The row comes as a second argument rather than inside `props`, so spreading `props` onto a
|
|
4896
|
+
* link never puts the row object on a DOM element. Use it for anything the link needs per row,
|
|
4897
|
+
* e.g. router state: `({ href, ...props }, row) => <Link to={href} state={{ from: row.id }} {...props} />`.
|
|
4898
|
+
*/
|
|
4899
|
+
renderRowLink?: (props: DataTableRowLinkProps, row: TData) => ReactElement;
|
|
4860
4900
|
/** A state tint per row, e.g. `(u) => (u.active ? undefined : 'muted')`. */
|
|
4861
4901
|
getRowTone?: (row: TData) => TableRowTone | undefined;
|
|
4862
4902
|
/** De-emphasise some rows, e.g. expired ones. */
|
|
@@ -5212,4 +5252,4 @@ declare function ChatBubble({ sender, children, failed, className }: ChatBubbleP
|
|
|
5212
5252
|
* with `relative`. */
|
|
5213
5253
|
declare function AuroraBackdrop(): react.JSX.Element;
|
|
5214
5254
|
|
|
5215
|
-
export { AIChatBar, type AIChatBarProps, AISuggestionChip, type AISuggestionChipProps, AccessibleIcon, type AccessibleIconProps, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemDef, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AccordionType, AiAvatar, type AiAvatarProps, AspectRatio, type AspectRatioProps, AuroraBackdrop, Avatar, AvatarBlock, type AvatarBlockProps, AvatarGroup, type AvatarGroupProps, type AvatarGroupSpacing, type AvatarImageProps, type AvatarInitialProps, type AvatarProps, type AvatarShape, type AvatarSize, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeVariant, Banner, type BannerProps, type BannerVariant, BarChart, type BarChartOrientation, type BarChartProps, type BarChartSeries, type BarChartSize, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemDef, type BreadcrumbItemProps, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupAlign, type ButtonGroupItem, type ButtonGroupProps, type ButtonGroupVariant, type ButtonProps, type ButtonSize, type ButtonVariant, CHART_SEQUENCE, CHART_TONE, CHART_TRACK, COL_SPAN, COL_SPAN_BY_TIER, COUNTRY_CODES, Calendar, type CalendarMode, type CalendarProps, Card, CardAction, type CardActionProps, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterAlign, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, type CardRadius, type CardSize, CardTitle, type CardTitleProps, type CardTone, Carousel, CarouselControls, type CarouselControlsProps, type CarouselProps, CarouselSlide, type CarouselSlideProps, CarouselViewport, type CarouselViewportProps, ChartLegend, type ChartLegendItem, type ChartLegendOrientation, type ChartLegendProps, type ChartTone, ChatBubble, type ChatBubbleProps, type ChatBubbleSender, CheckIndicator, type CheckIndicatorProps, type CheckIndicatorStatus, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, type CheckedGroup, CheckedGroupList, type CheckedGroupListColumns, type CheckedGroupListProps, ChecklistRow, type ChecklistRowProps, type ChecklistRowState, type ColSize, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, type ColumnMobileRole, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandItem, type CommandProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, ContextMenuItem, ContextMenuItems, ContextMenuLabel, type ContextMenuProps, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type ContextMenuTriggerProps, ControlSizeProvider, type ControlSizeProviderProps, CopyButton, type CopyButtonProps, CountBadge, type CountBadgeProps, CountrySelect, type CountrySelectProps, type CreateSelectColumnOptions, DEFAULT_SCORE_THRESHOLDS, DataTable, type DataTableAlign, type DataTableColumnAlign, DataTableColumnHeader, type DataTableColumnHeaderProps, type DataTableDensity, type DataTableManual, DataTablePagination, type DataTablePaginationProps, type DataTableProps, type DataTableRowLinkProps, type DataTableSearchOptions, type DataTableState, DataTableViewOptions, type DataTableViewOptionsProps, DatePicker, type DatePickerProps, type DateRange, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListProps, DetailGrid, type DetailGridColumns, type DetailGridProps, DetailItem, type DetailItemLayout, type DetailItemProps, type DetailItemSpan, DonutChart, type DonutChartProps, type DonutChartSize, type DonutSegment, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, type DrawerCloseProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterAlign, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, type DrawerSide, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, type MenuCheckboxItemProps as DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type MenuGroupProps as DropdownMenuGroupProps, DropdownMenuItem, type MenuItemProps as DropdownMenuItemProps, type MenuItemTone as DropdownMenuItemTone, DropdownMenuItems, DropdownMenuLabel, type MenuLabelProps as DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, type MenuRadioGroupProps as DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type MenuRadioItemProps as DropdownMenuRadioItemProps, DropdownMenuSeparator, type MenuSeparatorProps as DropdownMenuSeparatorProps, DropdownMenuShortcut, type MenuShortcutProps as DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type MenuSubContentProps as DropdownMenuSubContentProps, type MenuSubProps as DropdownMenuSubProps, DropdownMenuSubTrigger, type MenuSubTriggerProps as DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmailText, EmptyState, type EmptyStateProps, type EmptyStateSize, type EmptyStateVariant, EntityIconBadge, type EntityIconBadgeProps, type EntityIconBadgeSize, type EntityIconBadgeTone, ErrorBoundary, type ErrorBoundaryProps, EyebrowLabel, type EyebrowLabelProps, type EyebrowLabelVariant, FOCUS_RING, FOCUS_RING_INSET, Field, type FieldContextValue, FieldDescription, FieldError, FieldGroup, type FieldGroupProps, FieldHint, FieldLabel, type FieldLabelProps, FieldLegend, type FieldLegendProps, type FieldOrientation, type FieldProps, FieldSeparator, type FieldSeparatorProps, FieldSet, type FieldSetProps, type FieldTextProps, FileDropZone, type FileDropZoneProps, FileRow, type FileRowProps, FilterBar, type FilterBarProps, type FilterBarSize, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexProps, FormCard, FormCardFooter, type FormCardFooterProps, FormCardHeader, type FormCardHeaderProps, type FullscreenStacking, FullscreenSurface, type FullscreenSurfaceProps, GRID_TIERS, Grid, type GridBreakpoint, type GridColumnCount, type GridProps, type GridTier, HEIGHT_CLASS, HEIGHT_PX, Heading, HoverCard, type HoverCardProps, IconButton, type IconButtonProps, type IconButtonVariant, IconTextRow, type IconTextRowProps, InlineAlert, type InlineAlertProps, type InlineAlertTone, Input, InputControl, type InputControlProps, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupAlign, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputOTP, type InputOTPMode, type InputOTPProps, type InputProps, type InputSize, Kbd, type KbdProps, type KbdSize, Label, type LabelProps, LegendDot, type LegendDotProps, type LegendDotShape, type LegendDotSize, ListRow, type ListRowDensity, type ListRowDivider, type ListRowProps, type MenuItemDef, Menubar, MenubarCheckboxItem, MenubarContent, type MenubarContentProps, MenubarGroup, MenubarItem, MenubarItems, MenubarLabel, MenubarMenu, type MenubarMenuDef, type MenubarMenuProps, type MenubarProps, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, type MenubarTriggerProps, MiniBarChart, type MiniBarChartOrientation, type MiniBarChartProps, type MiniBarChartSize, Modal, ModalBody, type ModalBodyProps, ModalClose, type ModalCloseProps, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterAlign, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, type ModalSize, ModalTitle, type ModalTitleProps, type ModalTone, ModalTrigger, type ModalTriggerProps, MultiSelectCard, type MultiSelectCardProps, type MultiSelectCardSize, NavItem, type NavItemProps, type NavItemSize, type NavItemVariant, NavigationMenu, NavigationMenuItem, type NavigationMenuItemProps, type NavigationMenuOrientation, type NavigationMenuProps, type NavigationMenuVariant, NoteConfirmModal, type NoteConfirmModalProps, NumberedList, type NumberedListGap, type NumberedListItem, type NumberedListProps, OVERLAY_SCRIM, PageHeading, type PageHeadingProps, type PageHeadingSize, PageToolbar, type PageToolbarProps, type PageToolbarSize, Pagination, PaginationBar, type PaginationBarProps, type PaginationProps, type PaginationType, PasswordInput, type PasswordInputProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, ProgressBar, type ProgressBarProps, type ProgressBarSize, type ProgressBarTone, type QuickAction, QuickActionsBar, type QuickActionsBarProps, Quote, ROLE_COMBO_OPTIONS, RadialGauge, type RadialGaugeProps, type RadialGaugeSize, Radio, RadioCards, RadioCardsItem, type RadioCardsItemProps, type RadioCardsProps, type RadioCardsSize, RadioGroup, type RadioGroupOption, type RadioGroupOrientation, type RadioGroupProps, type RadioProps, Resizable, type ResizableDirection, ResizableHandle, type ResizableHandleProps, ResizablePanel, type ResizablePanelProps, type ResizableProps, RoleBadge, type RoleBadgeProps, type RoleBadgeTone, RoleComboBox, type RoleComboBoxProps, type RoleOption, SCROLLBAR_CLASSES, SELECT_COLUMN_ID, type ScoreDirection, type ScoreRampTone, type ScoreThresholds, type ScoreTone, ScoreValue, type ScoreValueProps, type ScoreValueSize, type ScoreValueTone, type ScoreValueWeight, ScoredRow, type ScoredRowAlign, type ScoredRowGap, type ScoredRowProps, Scrim, type ScrimProps, ScrollArea, type ScrollAreaAxis, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, type SectionProps, type SectionSize, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, SelectControl, type SelectControlProps, type SelectOption, type SelectOptionGroup, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, Skeleton, type SkeletonProps, type SkeletonShape, Slider, type SliderProps, Slot, type SlotProps, type SpaceToken, Sparkline, type SparklineProps, type SparklineSize, type SparklineVariant, Spinner, type SpinnerProps, type SpinnerSize, StatNumber, type StatNumberProps, type StatNumberSize, type StatNumberWeight, StatTile, type StatTileProps, StatusBadge, type StatusBadgeProps, type StatusBadgeSize, StatusChip, type StatusChipProps, StatusDot, type StatusDotProps, type StatusDotTone, type StatusTone, type StepItem, type StepStatus, Stepper, type StepperProps, type StepperSize, StepsList, type StepsListProps, Subheading, Subtitle, Switch, type SwitchProps, type SwitchSize, TIER_COLS, TIER_MIN_PX, type TabItem, Table, TableBody, TableCaption, type TableCaptionProps, TableCell, TableCellBadge, type TableCellBadgeProps, TableCellLeadText, type TableCellLeadTextProps, TableCellProgress, type TableCellProgressProps, type TableCellProps, type TableCellSize, TableCellText, type TableCellTextProps, type TableDensity, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, type TableRowTone, type TableSortDirection, Tabs, type TabsActivation, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, type TabsRootProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, TagInput, type TagInputParseResult, type TagInputProps, TagPill, type TagPillProps, type TagPillTone, Text, TextCode, TextEmphasis, TextLink, type TextLinkProps, TextList, type TextListDensity, TextListItem, type TextListItemProps, type TextListProps, type TextListVariant, type TextProps, TextSmall, TextStrong, TextTiny, type TextTone, Textarea, TextareaControl, type TextareaControlProps, type TextareaProps, TileGrid, type TileGridBreakpoint, type TileGridColumns, type TileGridProps, TimeZoneSelect, type TimeZoneSelectProps, TitleHero, TitlePage, type ToastOptions, type ToastRecord, type ToastTone, Toaster, type ToasterPosition, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, type ToggleGroupType, type ToggleProps, type ToggleSize, type ToggleVariant, Tooltip, type TooltipProps, TrailChip, type TrailChipProps, type TreeItemState, TreeView, type TreeViewProps, type TreeViewSize, type TrendDirection, TrendLabel, type TrendLabelProps, type TrendLabelSize, type TrendLabelWeight, TypingIndicator, type TypingIndicatorProps, type UseFilePicker, type UseFilePickerOptions, type UseWidthTierOptions, type UseWidthTierResult, type UserAccountStatus, UserStatusPill, type UserStatusPillProps, VisuallyHidden, type VisuallyHiddenProps, WidgetFooter, type WidgetFooterProps, WidgetGrid, WidgetGridItem, type WidgetGridItemProps, type WidgetGridProps, WidgetGridRow, type WidgetGridRowProps, WidgetHeader, type WidgetHeaderEyebrowVariant, type WidgetHeaderProps, type WidgetHeight, WidgetTitle, type WidgetTitleProps, type WidgetTitleSize, cn, colsFor, composeRefs, countryOptions, createSelectColumn, currentZoneName, formatFileSize, getScoreTone, nextTier, paginationRange, quantizeWidth, resolveChartColor, slotWidthPx, tabId, tabPanelId, tierForWidth, timeZoneOffset, timeZoneOptions, useControlSize, useElementWidth, useFieldContext, useFieldControl, useFilePicker, useOverlayDismiss, usePortalContainer, useToast, useWidthTier };
|
|
5255
|
+
export { AIChatBar, type AIChatBarProps, AISuggestionChip, type AISuggestionChipProps, AccessibleIcon, type AccessibleIconProps, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemDef, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AccordionType, AiAvatar, type AiAvatarProps, AspectRatio, type AspectRatioProps, AuroraBackdrop, Avatar, AvatarBlock, type AvatarBlockProps, AvatarGroup, type AvatarGroupProps, type AvatarGroupSpacing, type AvatarImageProps, type AvatarInitialProps, type AvatarProps, type AvatarShape, type AvatarSize, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeVariant, Banner, type BannerProps, type BannerVariant, BarChart, type BarChartOrientation, type BarChartProps, type BarChartSeries, type BarChartSize, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemDef, type BreadcrumbItemProps, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupAlign, type ButtonGroupItem, type ButtonGroupProps, type ButtonGroupVariant, type ButtonProps, type ButtonSize, type ButtonVariant, CHART_SEQUENCE, CHART_TONE, CHART_TRACK, COL_SPAN, COL_SPAN_BY_TIER, COUNTRY_CODES, Calendar, type CalendarMode, type CalendarProps, Card, CardAction, type CardActionProps, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterAlign, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, type CardRadius, type CardSize, CardTitle, type CardTitleProps, type CardTone, Carousel, CarouselControls, type CarouselControlsProps, type CarouselProps, CarouselSlide, type CarouselSlideProps, CarouselViewport, type CarouselViewportProps, ChartLegend, type ChartLegendItem, type ChartLegendOrientation, type ChartLegendProps, type ChartTone, ChatBubble, type ChatBubbleProps, type ChatBubbleSender, CheckIndicator, type CheckIndicatorProps, type CheckIndicatorStatus, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, type CheckedGroup, CheckedGroupList, type CheckedGroupListColumns, type CheckedGroupListProps, ChecklistRow, type ChecklistRowProps, type ChecklistRowState, type ColSize, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, type ColumnMobileRole, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandItem, type CommandProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, ContextMenuItem, ContextMenuItems, ContextMenuLabel, type ContextMenuProps, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type ContextMenuTriggerProps, ControlSizeProvider, type ControlSizeProviderProps, CopyButton, type CopyButtonProps, CountBadge, type CountBadgeProps, CountrySelect, type CountrySelectProps, type CreateSelectColumnOptions, DEFAULT_SCORE_THRESHOLDS, DataTable, type DataTableAlign, type DataTableColumnAlign, DataTableColumnHeader, type DataTableColumnHeaderProps, type DataTableDensity, type DataTableManual, DataTablePagination, type DataTablePaginationProps, type DataTableProps, type DataTableRowLinkProps, type DataTableSearchOptions, type DataTableState, DataTableViewOptions, type DataTableViewOptionsProps, DatePicker, type DatePickerProps, type DateRange, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListProps, DetailGrid, type DetailGridColumns, type DetailGridProps, DetailItem, type DetailItemLayout, type DetailItemProps, type DetailItemSpan, DonutChart, type DonutChartProps, type DonutChartSize, type DonutSegment, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, type DrawerCloseProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterAlign, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, type DrawerSide, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, type MenuCheckboxItemProps as DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type MenuGroupProps as DropdownMenuGroupProps, DropdownMenuItem, type MenuItemProps as DropdownMenuItemProps, type MenuItemTone as DropdownMenuItemTone, DropdownMenuItems, DropdownMenuLabel, type MenuLabelProps as DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, type MenuRadioGroupProps as DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type MenuRadioItemProps as DropdownMenuRadioItemProps, DropdownMenuSeparator, type MenuSeparatorProps as DropdownMenuSeparatorProps, DropdownMenuShortcut, type MenuShortcutProps as DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type MenuSubContentProps as DropdownMenuSubContentProps, type MenuSubProps as DropdownMenuSubProps, DropdownMenuSubTrigger, type MenuSubTriggerProps as DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmailText, EmptyState, type EmptyStateProps, type EmptyStateSize, type EmptyStateVariant, EntityIconBadge, type EntityIconBadgeProps, type EntityIconBadgeSize, type EntityIconBadgeTone, ErrorBoundary, type ErrorBoundaryProps, EyebrowLabel, type EyebrowLabelProps, type EyebrowLabelVariant, FOCUS_RING, FOCUS_RING_INSET, Field, type FieldContextValue, FieldDescription, FieldError, FieldGroup, type FieldGroupProps, FieldHint, FieldLabel, type FieldLabelProps, FieldLegend, type FieldLegendProps, type FieldOrientation, type FieldProps, FieldSeparator, type FieldSeparatorProps, FieldSet, type FieldSetProps, type FieldTextProps, FileDropZone, type FileDropZoneProps, FileRow, type FileRowProps, FilterBar, type FilterBarProps, type FilterBarSize, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexProps, FormCard, FormCardFooter, type FormCardFooterProps, FormCardHeader, type FormCardHeaderProps, type FullscreenStacking, FullscreenSurface, type FullscreenSurfaceProps, GRID_TIERS, Grid, type GridBreakpoint, type GridColumnCount, type GridProps, type GridTier, HEIGHT_CLASS, HEIGHT_PX, Heading, HoverCard, type HoverCardProps, IconButton, type IconButtonProps, type IconButtonVariant, IconTextRow, type IconTextRowProps, InlineAlert, type InlineAlertProps, type InlineAlertTone, Input, InputControl, type InputControlProps, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupAlign, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputOTP, type InputOTPMode, type InputOTPProps, type InputProps, type InputSize, Kbd, type KbdProps, type KbdSize, Label, type LabelProps, LegendDot, type LegendDotProps, type LegendDotShape, type LegendDotSize, ListRow, type ListRowDensity, type ListRowDivider, type ListRowProps, type MenuItemDef, Menubar, MenubarCheckboxItem, MenubarContent, type MenubarContentProps, MenubarGroup, MenubarItem, MenubarItems, MenubarLabel, MenubarMenu, type MenubarMenuDef, type MenubarMenuProps, type MenubarProps, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, type MenubarTriggerProps, MiniBarChart, type MiniBarChartOrientation, type MiniBarChartProps, type MiniBarChartSize, Modal, type ModalAlign, ModalBody, type ModalBodyProps, ModalClose, type ModalCloseProps, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterAlign, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, type ModalSize, ModalTitle, type ModalTitleProps, type ModalTone, ModalTrigger, type ModalTriggerProps, MultiSelectCard, type MultiSelectCardProps, type MultiSelectCardSize, NavItem, type NavItemProps, type NavItemSize, type NavItemVariant, NavigationMenu, NavigationMenuItem, type NavigationMenuItemProps, type NavigationMenuOrientation, type NavigationMenuProps, type NavigationMenuVariant, NoteConfirmModal, type NoteConfirmModalProps, NumberedList, type NumberedListGap, type NumberedListItem, type NumberedListProps, OVERLAY_SCRIM, PageHeading, type PageHeadingProps, type PageHeadingSize, PageToolbar, type PageToolbarProps, type PageToolbarSize, Pagination, PaginationBar, type PaginationBarProps, type PaginationProps, type PaginationType, PasswordInput, type PasswordInputProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, ProgressBar, type ProgressBarProps, type ProgressBarSize, type ProgressBarTone, type QuickAction, QuickActionsBar, type QuickActionsBarProps, Quote, ROLE_COMBO_OPTIONS, RadialGauge, type RadialGaugeProps, type RadialGaugeSize, Radio, RadioCards, RadioCardsItem, type RadioCardsItemProps, type RadioCardsProps, type RadioCardsSize, RadioGroup, type RadioGroupOption, type RadioGroupOrientation, type RadioGroupProps, type RadioProps, Resizable, type ResizableDirection, ResizableHandle, type ResizableHandleProps, ResizablePanel, type ResizablePanelProps, type ResizableProps, RoleBadge, type RoleBadgeProps, type RoleBadgeTone, RoleComboBox, type RoleComboBoxProps, type RoleOption, SCROLLBAR_CLASSES, SELECT_COLUMN_ID, type ScoreDirection, type ScoreRampTone, type ScoreThresholds, type ScoreTone, ScoreValue, type ScoreValueProps, type ScoreValueSize, type ScoreValueTone, type ScoreValueWeight, ScoredRow, type ScoredRowAlign, type ScoredRowGap, type ScoredRowProps, Scrim, type ScrimProps, ScrollArea, type ScrollAreaAxis, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, type SectionProps, type SectionSize, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, SelectControl, type SelectControlProps, type SelectOption, type SelectOptionGroup, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, Skeleton, type SkeletonProps, type SkeletonShape, Slider, type SliderProps, Slot, type SlotProps, type SpaceToken, Sparkline, type SparklineProps, type SparklineSize, type SparklineVariant, Spinner, type SpinnerProps, type SpinnerSize, StatNumber, type StatNumberProps, type StatNumberSize, type StatNumberWeight, StatTile, type StatTileProps, StatusBadge, type StatusBadgeProps, type StatusBadgeSize, StatusChip, type StatusChipProps, StatusDot, type StatusDotProps, type StatusDotTone, type StatusTone, type StepItem, type StepStatus, Stepper, type StepperProps, type StepperSize, StepsList, type StepsListProps, Subheading, Subtitle, Switch, type SwitchProps, type SwitchSize, TIER_COLS, TIER_MIN_PX, type TabItem, Table, TableBody, TableCaption, type TableCaptionProps, TableCell, TableCellBadge, type TableCellBadgeProps, TableCellLeadText, type TableCellLeadTextProps, TableCellProgress, type TableCellProgressProps, type TableCellProps, type TableCellSize, TableCellText, type TableCellTextProps, type TableDensity, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, type TableRowTone, type TableSortDirection, Tabs, type TabsActivation, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, type TabsRootProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, TagInput, type TagInputParseResult, type TagInputProps, TagPill, type TagPillProps, type TagPillTone, Text, TextCode, TextEmphasis, TextLink, type TextLinkProps, TextList, type TextListDensity, TextListItem, type TextListItemProps, type TextListProps, type TextListVariant, type TextProps, TextSmall, TextStrong, TextTiny, type TextTone, Textarea, TextareaControl, type TextareaControlProps, type TextareaProps, TileGrid, type TileGridBreakpoint, type TileGridColumns, type TileGridProps, TimeZoneSelect, type TimeZoneSelectProps, TitleHero, TitlePage, type ToastOptions, type ToastRecord, type ToastTone, Toaster, type ToasterPosition, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, type ToggleGroupType, type ToggleProps, type ToggleSize, type ToggleVariant, Tooltip, type TooltipProps, TrailChip, type TrailChipProps, type TreeItemState, TreeView, type TreeViewProps, type TreeViewSize, type TrendDirection, TrendLabel, type TrendLabelProps, type TrendLabelSize, type TrendLabelWeight, TypingIndicator, type TypingIndicatorProps, type UseFilePicker, type UseFilePickerOptions, type UseWidthTierOptions, type UseWidthTierResult, type UserAccountStatus, UserStatusPill, type UserStatusPillProps, VisuallyHidden, type VisuallyHiddenProps, WidgetFooter, type WidgetFooterProps, WidgetGrid, WidgetGridItem, type WidgetGridItemProps, type WidgetGridProps, WidgetGridRow, type WidgetGridRowProps, WidgetHeader, type WidgetHeaderEyebrowVariant, type WidgetHeaderProps, type WidgetHeight, WidgetTitle, type WidgetTitleProps, type WidgetTitleSize, cn, colsFor, composeRefs, countryOptions, createSelectColumn, currentZoneName, formatFileSize, getScoreTone, nextTier, paginationRange, quantizeWidth, resolveChartColor, slotWidthPx, tabId, tabPanelId, tierForWidth, timeZoneOffset, timeZoneOptions, useControlSize, useElementWidth, useFieldContext, useFieldControl, useFilePicker, useOverlayDismiss, usePortalContainer, useToast, useWidthTier };
|
package/dist/index.js
CHANGED
|
@@ -3380,7 +3380,7 @@ function FormCard({
|
|
|
3380
3380
|
}
|
|
3381
3381
|
function FormCardHeader({ title, subtitle }) {
|
|
3382
3382
|
return /* @__PURE__ */ jsxs17("div", { className: "border-b border-default px-7 py-6", children: [
|
|
3383
|
-
/* @__PURE__ */ jsx24("h2", { className: "text-heading-sm font-semibold text-default leading-snug", children: title }),
|
|
3383
|
+
/* @__PURE__ */ jsx24("h2", { className: "text-heading-sm font-semibold text-default leading-snug [overflow-wrap:anywhere]", children: title }),
|
|
3384
3384
|
subtitle && /* @__PURE__ */ jsx24("p", { className: "mt-1 text-body-xs text-default-secondary", children: subtitle })
|
|
3385
3385
|
] });
|
|
3386
3386
|
}
|
|
@@ -4467,7 +4467,7 @@ var Checkbox = forwardRef14(function Checkbox2({
|
|
|
4467
4467
|
size: size2
|
|
4468
4468
|
}
|
|
4469
4469
|
),
|
|
4470
|
-
label && /* @__PURE__ */ jsx41("span", { className: clsx38(LABEL_TEXT2[size2], "text-default"), children: label })
|
|
4470
|
+
label && /* @__PURE__ */ jsx41("span", { className: clsx38(LABEL_TEXT2[size2], "min-w-0 text-default [overflow-wrap:anywhere]"), children: label })
|
|
4471
4471
|
]
|
|
4472
4472
|
}
|
|
4473
4473
|
),
|
|
@@ -4476,7 +4476,7 @@ var Checkbox = forwardRef14(function Checkbox2({
|
|
|
4476
4476
|
{
|
|
4477
4477
|
id: descriptionId,
|
|
4478
4478
|
className: clsx38(
|
|
4479
|
-
"mt-0.5 pl-[26px]",
|
|
4479
|
+
"mt-0.5 pl-[26px] [overflow-wrap:anywhere]",
|
|
4480
4480
|
LABEL_TEXT2[size2],
|
|
4481
4481
|
disabled ? "text-disabled" : "text-default-secondary"
|
|
4482
4482
|
),
|
|
@@ -5149,6 +5149,12 @@ function isInsideToaster(target) {
|
|
|
5149
5149
|
|
|
5150
5150
|
// src/components/overlays/modal.tsx
|
|
5151
5151
|
import { jsx as jsx49, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
5152
|
+
var OVERLAY_ALIGN = {
|
|
5153
|
+
center: "sm:items-center",
|
|
5154
|
+
// A fixed offset rather than centring, so a change in content height grows the panel
|
|
5155
|
+
// downward instead of moving its top edge. 6dvh + the 88dvh cap leaves a gap below.
|
|
5156
|
+
top: "sm:items-start sm:pt-[6dvh]"
|
|
5157
|
+
};
|
|
5152
5158
|
var SIZE8 = {
|
|
5153
5159
|
sm: "sm:max-w-[420px]",
|
|
5154
5160
|
md: "sm:max-w-[540px]",
|
|
@@ -5186,6 +5192,7 @@ var ModalShell = forwardRef21(
|
|
|
5186
5192
|
size: size2 = "md",
|
|
5187
5193
|
role = "dialog",
|
|
5188
5194
|
showClose = true,
|
|
5195
|
+
align = "center",
|
|
5189
5196
|
className,
|
|
5190
5197
|
onEscapeKeyDown,
|
|
5191
5198
|
onInteractOutside,
|
|
@@ -5200,10 +5207,12 @@ var ModalShell = forwardRef21(
|
|
|
5200
5207
|
return /* @__PURE__ */ jsx49(
|
|
5201
5208
|
DialogPrimitive.Overlay,
|
|
5202
5209
|
{
|
|
5210
|
+
"data-align": align,
|
|
5203
5211
|
className: cn(
|
|
5204
5212
|
// The overlay wraps the content (a Radix-supported layout), so it also does the
|
|
5205
|
-
//
|
|
5206
|
-
"fixed inset-0 z-modal flex items-end justify-center
|
|
5213
|
+
// positioning: bottom sheet below `sm`, a card centred or top-anchored above it.
|
|
5214
|
+
"fixed inset-0 z-modal flex items-end justify-center",
|
|
5215
|
+
OVERLAY_ALIGN[align],
|
|
5207
5216
|
OVERLAY_SCRIM
|
|
5208
5217
|
),
|
|
5209
5218
|
children: /* @__PURE__ */ jsxs31(
|
|
@@ -5239,6 +5248,7 @@ var ModalShell = forwardRef21(
|
|
|
5239
5248
|
},
|
|
5240
5249
|
className: cn(
|
|
5241
5250
|
"relative max-h-[92dvh] w-full overflow-y-auto bg-default shadow-400 focus:outline-none",
|
|
5251
|
+
align === "top" && "sm:max-h-[88dvh]",
|
|
5242
5252
|
// Not a `ScrollArea`: the panel is the dialog, so the scroll container has to stay
|
|
5243
5253
|
// the element carrying `role`, `aria-modal` and the trap boundary. It is already
|
|
5244
5254
|
// keyboard-scrollable because the trap focuses it on open.
|
|
@@ -6178,6 +6188,7 @@ function ConfirmDialog({
|
|
|
6178
6188
|
subtitle,
|
|
6179
6189
|
tone = "default",
|
|
6180
6190
|
size: size2 = "md",
|
|
6191
|
+
align,
|
|
6181
6192
|
confirmLabel = "Confirm",
|
|
6182
6193
|
cancelLabel = "Cancel",
|
|
6183
6194
|
confirmVariant = "primary",
|
|
@@ -6205,6 +6216,7 @@ function ConfirmDialog({
|
|
|
6205
6216
|
onOpenChange: requestOpenChange,
|
|
6206
6217
|
role: "alertdialog",
|
|
6207
6218
|
size: size2,
|
|
6219
|
+
align,
|
|
6208
6220
|
className,
|
|
6209
6221
|
initialFocus: cancelRef,
|
|
6210
6222
|
children: [
|
|
@@ -6256,6 +6268,7 @@ function NoteConfirmModalShell({
|
|
|
6256
6268
|
subtitle,
|
|
6257
6269
|
tone = "default",
|
|
6258
6270
|
size: size2 = "md",
|
|
6271
|
+
align,
|
|
6259
6272
|
confirmLabel,
|
|
6260
6273
|
cancelLabel = "Cancel",
|
|
6261
6274
|
confirmVariant = "primary",
|
|
@@ -6290,6 +6303,7 @@ function NoteConfirmModalShell({
|
|
|
6290
6303
|
open: true,
|
|
6291
6304
|
onOpenChange: requestOpenChange,
|
|
6292
6305
|
size: size2,
|
|
6306
|
+
align,
|
|
6293
6307
|
className,
|
|
6294
6308
|
onEscapeKeyDown: guardDiscard,
|
|
6295
6309
|
onInteractOutside: guardDiscard,
|
|
@@ -9890,7 +9904,7 @@ function DetailItem({
|
|
|
9890
9904
|
if (layout === "inline") {
|
|
9891
9905
|
return /* @__PURE__ */ jsxs72("div", { className: clsx86("flex gap-3 text-body-xs", SPAN[span], className), children: [
|
|
9892
9906
|
/* @__PURE__ */ jsx107("span", { className: clsx86("shrink-0 text-default-secondary", labelWidth), children: label }),
|
|
9893
|
-
/* @__PURE__ */ jsxs72("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
9907
|
+
/* @__PURE__ */ jsxs72("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5 [overflow-wrap:anywhere]", children: [
|
|
9894
9908
|
/* @__PURE__ */ jsx107("span", { className: "text-default", children: shown }),
|
|
9895
9909
|
detail && /* @__PURE__ */ jsx107("span", { className: "text-default-secondary", children: detail })
|
|
9896
9910
|
] })
|
|
@@ -9898,8 +9912,8 @@ function DetailItem({
|
|
|
9898
9912
|
}
|
|
9899
9913
|
return /* @__PURE__ */ jsxs72("div", { className: clsx86("flex min-w-0 flex-col gap-0.5", SPAN[span], className), children: [
|
|
9900
9914
|
/* @__PURE__ */ jsx107("p", { className: "text-body-tiny font-medium text-default-secondary", children: label }),
|
|
9901
|
-
/* @__PURE__ */ jsx107("p", { className: "text-body-sm font-medium text-default", children: shown }),
|
|
9902
|
-
detail && /* @__PURE__ */ jsx107("p", { className: "text-body-xs text-default-secondary", children: detail })
|
|
9915
|
+
/* @__PURE__ */ jsx107("p", { className: "text-body-sm font-medium text-default [overflow-wrap:anywhere]", children: shown }),
|
|
9916
|
+
detail && /* @__PURE__ */ jsx107("p", { className: "text-body-xs text-default-secondary [overflow-wrap:anywhere]", children: detail })
|
|
9903
9917
|
] });
|
|
9904
9918
|
}
|
|
9905
9919
|
var COLUMNS3 = {
|
|
@@ -10604,13 +10618,23 @@ function DataTablePagination({
|
|
|
10604
10618
|
// src/components/lists/data-table-cells.tsx
|
|
10605
10619
|
import clsx93 from "clsx";
|
|
10606
10620
|
import { jsx as jsx115, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
10621
|
+
function textFromNode(node) {
|
|
10622
|
+
if (typeof node === "string") return node;
|
|
10623
|
+
if (typeof node === "number") return String(node);
|
|
10624
|
+
if (Array.isArray(node)) {
|
|
10625
|
+
const parts4 = node.map(textFromNode);
|
|
10626
|
+
return parts4.every((part) => part !== void 0) ? parts4.join("") : void 0;
|
|
10627
|
+
}
|
|
10628
|
+
return void 0;
|
|
10629
|
+
}
|
|
10607
10630
|
function TableCellLeadText({ primary, secondary, size: size2 = "md", className }) {
|
|
10608
|
-
return /* @__PURE__ */ jsxs79("div", { className: clsx93("flex flex-col gap-0.5", className), children: [
|
|
10631
|
+
return /* @__PURE__ */ jsxs79("div", { className: clsx93("flex min-w-0 flex-col gap-0.5", className), children: [
|
|
10609
10632
|
/* @__PURE__ */ jsx115(
|
|
10610
10633
|
"span",
|
|
10611
10634
|
{
|
|
10635
|
+
title: primary,
|
|
10612
10636
|
className: clsx93(
|
|
10613
|
-
"font-medium leading-snug text-default",
|
|
10637
|
+
"block truncate font-medium leading-snug text-default",
|
|
10614
10638
|
size2 === "sm" ? "text-body-xs" : "text-body-sm"
|
|
10615
10639
|
),
|
|
10616
10640
|
children: primary
|
|
@@ -10619,8 +10643,9 @@ function TableCellLeadText({ primary, secondary, size: size2 = "md", className }
|
|
|
10619
10643
|
secondary && /* @__PURE__ */ jsx115(
|
|
10620
10644
|
"span",
|
|
10621
10645
|
{
|
|
10646
|
+
title: secondary,
|
|
10622
10647
|
className: clsx93(
|
|
10623
|
-
"font-normal leading-tight text-default-secondary",
|
|
10648
|
+
"block truncate font-normal leading-tight text-default-secondary",
|
|
10624
10649
|
size2 === "sm" ? "text-body-tiny" : "text-body-xs"
|
|
10625
10650
|
),
|
|
10626
10651
|
children: secondary
|
|
@@ -10632,16 +10657,17 @@ function TableCellText({
|
|
|
10632
10657
|
children,
|
|
10633
10658
|
muted = true,
|
|
10634
10659
|
size: size2 = "md",
|
|
10635
|
-
truncate =
|
|
10660
|
+
truncate = true,
|
|
10636
10661
|
className
|
|
10637
10662
|
}) {
|
|
10638
10663
|
return /* @__PURE__ */ jsx115(
|
|
10639
10664
|
"span",
|
|
10640
10665
|
{
|
|
10666
|
+
title: truncate ? textFromNode(children) : void 0,
|
|
10641
10667
|
className: clsx93(
|
|
10642
10668
|
"font-normal leading-snug",
|
|
10643
10669
|
size2 === "sm" ? "text-body-tiny" : "text-body-xs",
|
|
10644
|
-
truncate ? "block truncate" : "whitespace-nowrap",
|
|
10670
|
+
truncate ? "block min-w-0 truncate" : "whitespace-nowrap",
|
|
10645
10671
|
muted ? "text-default-secondary" : "text-default",
|
|
10646
10672
|
className
|
|
10647
10673
|
),
|
|
@@ -10653,11 +10679,12 @@ function TableCellBadge({ label, className }) {
|
|
|
10653
10679
|
return /* @__PURE__ */ jsx115(
|
|
10654
10680
|
"span",
|
|
10655
10681
|
{
|
|
10682
|
+
title: label,
|
|
10656
10683
|
className: clsx93(
|
|
10657
|
-
"inline-flex items-center rounded-md border border-default bg-default-secondary px-2 py-0.5 text-body-tiny font-medium text-default-secondary
|
|
10684
|
+
"inline-flex max-w-full items-center rounded-md border border-default bg-default-secondary px-2 py-0.5 text-body-tiny font-medium text-default-secondary",
|
|
10658
10685
|
className
|
|
10659
10686
|
),
|
|
10660
|
-
children: label
|
|
10687
|
+
children: /* @__PURE__ */ jsx115("span", { className: "truncate", children: label })
|
|
10661
10688
|
}
|
|
10662
10689
|
);
|
|
10663
10690
|
}
|
|
@@ -10665,9 +10692,10 @@ function TableCellProgress({
|
|
|
10665
10692
|
percent,
|
|
10666
10693
|
tone = "brand",
|
|
10667
10694
|
size: size2 = "md",
|
|
10695
|
+
label,
|
|
10668
10696
|
className
|
|
10669
10697
|
}) {
|
|
10670
|
-
const clamped = Math.min(100, Math.max(0, percent));
|
|
10698
|
+
const clamped = Math.round(Math.min(100, Math.max(0, percent)));
|
|
10671
10699
|
return /* @__PURE__ */ jsxs79("div", { className: clsx93("flex w-full min-w-0 items-center gap-2", className), children: [
|
|
10672
10700
|
/* @__PURE__ */ jsx115(
|
|
10673
10701
|
ProgressBar,
|
|
@@ -10676,11 +10704,11 @@ function TableCellProgress({
|
|
|
10676
10704
|
tone,
|
|
10677
10705
|
size: size2 === "sm" ? "xs" : "sm",
|
|
10678
10706
|
className: "min-w-12 flex-1",
|
|
10679
|
-
"aria-label": `${clamped}%`
|
|
10707
|
+
"aria-label": label ?? `${clamped}%`
|
|
10680
10708
|
}
|
|
10681
10709
|
),
|
|
10682
10710
|
/* @__PURE__ */ jsxs79("span", { className: "shrink-0 text-body-tiny leading-none tabular-nums text-default-secondary", children: [
|
|
10683
|
-
|
|
10711
|
+
clamped,
|
|
10684
10712
|
"%"
|
|
10685
10713
|
] })
|
|
10686
10714
|
] });
|
|
@@ -11178,7 +11206,7 @@ function BodyCell({
|
|
|
11178
11206
|
[ROW_LINK_ATTR]: "",
|
|
11179
11207
|
className: cn("block min-w-0 rounded-sm", FOCUS_RING_INSET),
|
|
11180
11208
|
children: content
|
|
11181
|
-
});
|
|
11209
|
+
}, cell.row.original);
|
|
11182
11210
|
}
|
|
11183
11211
|
return /* @__PURE__ */ jsx116(
|
|
11184
11212
|
"td",
|
|
@@ -11274,7 +11302,7 @@ function CardList({
|
|
|
11274
11302
|
children: [
|
|
11275
11303
|
/* @__PURE__ */ jsxs80("div", { className: "flex items-start gap-3", children: [
|
|
11276
11304
|
selectable && /* @__PURE__ */ jsx116("div", { className: "relative z-raised shrink-0 pt-0.5", children: render(SELECT_COLUMN_ID) }),
|
|
11277
|
-
/* @__PURE__ */ jsx116("div", { className: "min-w-0 flex-1", children: href ? renderRowLink({ href, [ROW_LINK_ATTR]: "", className: trigger, children: titleContent }) : onRowClick ? /* @__PURE__ */ jsx116(
|
|
11305
|
+
/* @__PURE__ */ jsx116("div", { className: "min-w-0 flex-1", children: href ? renderRowLink({ href, [ROW_LINK_ATTR]: "", className: trigger, children: titleContent }, row.original) : onRowClick ? /* @__PURE__ */ jsx116(
|
|
11278
11306
|
"button",
|
|
11279
11307
|
{
|
|
11280
11308
|
type: "button",
|
|
@@ -11544,7 +11572,7 @@ function Toaster({
|
|
|
11544
11572
|
"aria-atomic": "false",
|
|
11545
11573
|
...{ [TOASTER_ATTRIBUTE]: "" },
|
|
11546
11574
|
className: clsx97(
|
|
11547
|
-
"pointer-events-none fixed z-toast flex w-
|
|
11575
|
+
"pointer-events-none fixed z-toast flex w-[calc(100%-2rem)] max-w-[380px] flex-col gap-2",
|
|
11548
11576
|
POSITION[position]
|
|
11549
11577
|
),
|
|
11550
11578
|
children: toasts.map((entry) => /* @__PURE__ */ jsx120(ToastItem, { toast: entry, onDismiss: () => dismiss(entry.id) }, entry.id))
|