@eqtylab/equality 5.0.1 → 5.1.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
@@ -178,6 +178,8 @@ interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
178
178
  * standing callout; it drops the live region unless you set `role` yourself.
179
179
  */
180
180
  as?: 'div' | 'aside' | 'section';
181
+ /** Control at the end of the title row, such as a Retry button */
182
+ action?: React$1.ReactNode;
181
183
  }
182
184
  /**
183
185
  * **Props**
@@ -192,6 +194,7 @@ interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
192
194
  * assertive live region -- correct for a message that appears in response to
193
195
  * something the user did, wrong for static page content. Use `aside` for a
194
196
  * standing callout; it drops the live region unless you set `role` yourself.
197
+ * - `action?: React.ReactNode` — Control at the end of the title row, such as a Retry button
195
198
  *
196
199
  * Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
197
200
  *
@@ -271,6 +274,37 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
271
274
  */
272
275
  declare function Badge({ className, variant, size, closeable, handleClosable, closeLabel, truncate, truncateLength, icon, display, monospace, pill, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
273
276
 
277
+ declare const bannerVariants: (props?: ({
278
+ /** The status the strip's colour reports */
279
+ variant?: "primary" | "danger" | "warning" | "neutral" | "success" | null | undefined;
280
+ /** The edge that draws the rule. `top` for a banner at the foot of a page header */
281
+ border?: "top" | "bottom" | null | undefined;
282
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
283
+ interface BannerProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof bannerVariants> {
284
+ /** Lucide icon name or element, drawn in a round chip before the message */
285
+ icon: React$1.ReactElement | string;
286
+ /** Control after the message, on its line, such as a link button */
287
+ action?: React$1.ReactNode;
288
+ /** Element to render. `aside` makes the banner a landmark, for one that stands apart from the page it tops */
289
+ as?: 'div' | 'aside';
290
+ /** The message, a sentence */
291
+ children: React$1.ReactNode;
292
+ }
293
+ /**
294
+ * **Props**
295
+ * - `variant?: "primary" | "neutral" | "success" | "warning" | "danger"` (default `"neutral"`) — The status the strip's colour reports
296
+ * - `border?: "bottom" | "top"` (default `"bottom"`) — The edge that draws the rule. `top` for a banner at the foot of a page header
297
+ * - `icon: React.ReactElement | string` — Lucide icon name or element, drawn in a round chip before the message
298
+ * - `action?: React.ReactNode` — Control after the message, on its line, such as a link button
299
+ * - `as?: "div" | "aside"` (default `"div"`) — Element to render. `aside` makes the banner a landmark, for one that stands apart from the page it tops
300
+ * - `children: React.ReactNode` — The message, a sentence
301
+ *
302
+ * Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
303
+ *
304
+ * [Banner documentation](https://equality.eqtylab.io/components/banner)
305
+ */
306
+ declare const Banner: React$1.ForwardRefExoticComponent<BannerProps & React$1.RefAttributes<HTMLDivElement>>;
307
+
274
308
  interface BarGraphSegmentProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'color'> {
275
309
  /** Proportional value used to compute the segment's width (`value / sum of all values`). */
276
310
  value: number;
@@ -976,7 +1010,7 @@ declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<Dro
976
1010
  * - `arrowPadding?: number`
977
1011
  * - `avoidCollisions?: boolean`
978
1012
  * - `collisionBoundary?: Boundary | Boundary[]`
979
- * - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
1013
+ * - `collisionPadding?: number | Partial<Record<"bottom" | "top" | "right" | "left", number>>`
980
1014
  * - `sticky?: "partial" | "always"`
981
1015
  * - `hideWhenDetached?: boolean`
982
1016
  * - `updatePositionStrategy?: "optimized" | "always"`
@@ -1008,14 +1042,14 @@ declare const DropdownMenuSub: ({ children, ...props }: React$1.ComponentPropsWi
1008
1042
  * - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
1009
1043
  * controlling animation with React animation libraries.
1010
1044
  * - `loop?: boolean` — Whether keyboard navigation should loop around
1011
- * - `side?: "top" | "right" | "bottom" | "left"`
1045
+ * - `side?: "bottom" | "top" | "right" | "left"`
1012
1046
  * - `sideOffset?: number` (default `4`)
1013
1047
  * - `align?: "center" | "start" | "end"`
1014
1048
  * - `alignOffset?: number`
1015
1049
  * - `arrowPadding?: number`
1016
1050
  * - `avoidCollisions?: boolean`
1017
1051
  * - `collisionBoundary?: Boundary | Boundary[]`
1018
- * - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
1052
+ * - `collisionPadding?: number | Partial<Record<"bottom" | "top" | "right" | "left", number>>`
1019
1053
  * - `sticky?: "partial" | "always"`
1020
1054
  * - `hideWhenDetached?: boolean`
1021
1055
  * - `updatePositionStrategy?: "optimized" | "always"`
@@ -1681,7 +1715,7 @@ interface NavSwitcherAction {
1681
1715
  /** Runs once the list has closed */
1682
1716
  onSelect: () => void;
1683
1717
  }
1684
- interface NavSwitcherLoadedProps {
1718
+ interface NavSwitcherBaseProps {
1685
1719
  /** Shows a placeholder at the switcher's height while the current item loads */
1686
1720
  loading?: false;
1687
1721
  /** The current item's name, shown as the panel's heading */
@@ -1703,6 +1737,19 @@ interface NavSwitcherLoadedProps {
1703
1737
  /** A command at the bottom of the list, kept while searching, such as "Create Project" */
1704
1738
  action?: NavSwitcherAction;
1705
1739
  }
1740
+ type NavSwitcherRetryProps = {
1741
+ error?: false;
1742
+ retrying?: never;
1743
+ onRetry?: never;
1744
+ } | {
1745
+ /** The list failed to load: the list says so and offers Retry */
1746
+ error: boolean;
1747
+ /** A retry is in flight: the Retry row reads "Retrying..." */
1748
+ retrying?: boolean;
1749
+ /** Called when Retry is picked; the list stays open */
1750
+ onRetry: () => void;
1751
+ };
1752
+ type NavSwitcherLoadedProps = NavSwitcherBaseProps & NavSwitcherRetryProps;
1706
1753
  interface NavSwitcherLoadingProps {
1707
1754
  loading: true;
1708
1755
  }
@@ -1719,6 +1766,9 @@ type NavSwitcherProps = NavSwitcherLoadedProps | NavSwitcherLoadingProps;
1719
1766
  * - `onHighlight?: (value: string) => void` — Hover or focus on an option, for a caller that preloads its destination
1720
1767
  * - `onHighlightEnd?: () => void` — Hover or focus leaves an option, for a caller that cancels its preload
1721
1768
  * - `action?: NavSwitcherAction` — A command at the bottom of the list, kept while searching, such as "Create Project"
1769
+ * - `error?: false | boolean` — The list failed to load: the list says so and offers Retry
1770
+ * - `retrying?: boolean` — A retry is in flight: the Retry row reads "Retrying..."
1771
+ * - `onRetry?: () => void` — Called when Retry is picked; the list stays open
1722
1772
  *
1723
1773
  * [Nav documentation](https://equality.eqtylab.io/components/nav)
1724
1774
  */
@@ -1830,14 +1880,14 @@ declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive
1830
1880
  * Can be prevented.
1831
1881
  * - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
1832
1882
  * controlling animation with React animation libraries.
1833
- * - `side?: "top" | "right" | "bottom" | "left"`
1883
+ * - `side?: "bottom" | "top" | "right" | "left"`
1834
1884
  * - `sideOffset?: number` (default `4`)
1835
1885
  * - `align?: "center" | "start" | "end"` (default `"center"`)
1836
1886
  * - `alignOffset?: number`
1837
1887
  * - `arrowPadding?: number`
1838
1888
  * - `avoidCollisions?: boolean`
1839
1889
  * - `collisionBoundary?: Boundary | Boundary[]`
1840
- * - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
1890
+ * - `collisionPadding?: number | Partial<Record<"bottom" | "top" | "right" | "left", number>>`
1841
1891
  * - `sticky?: "partial" | "always"`
1842
1892
  * - `hideWhenDetached?: boolean`
1843
1893
  * - `updatePositionStrategy?: "optimized" | "always"`
@@ -2174,14 +2224,14 @@ declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimit
2174
2224
  * Can be prevented.
2175
2225
  * - `onCloseAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on close.
2176
2226
  * Can be prevented.
2177
- * - `side?: "top" | "right" | "bottom" | "left"`
2227
+ * - `side?: "bottom" | "top" | "right" | "left"`
2178
2228
  * - `sideOffset?: number`
2179
2229
  * - `align?: "center" | "start" | "end"`
2180
2230
  * - `alignOffset?: number`
2181
2231
  * - `arrowPadding?: number`
2182
2232
  * - `avoidCollisions?: boolean`
2183
2233
  * - `collisionBoundary?: Boundary | Boundary[]`
2184
- * - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
2234
+ * - `collisionPadding?: number | Partial<Record<"bottom" | "top" | "right" | "left", number>>`
2185
2235
  * - `sticky?: "partial" | "always"`
2186
2236
  * - `hideWhenDetached?: boolean`
2187
2237
  * - `updatePositionStrategy?: "optimized" | "always"`
@@ -2861,14 +2911,14 @@ declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive
2861
2911
  * Can be prevented.
2862
2912
  * - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
2863
2913
  * controlling animation with React animation libraries.
2864
- * - `side?: "top" | "right" | "bottom" | "left"`
2914
+ * - `side?: "bottom" | "top" | "right" | "left"`
2865
2915
  * - `sideOffset?: number` (default `4`)
2866
2916
  * - `align?: "center" | "start" | "end"`
2867
2917
  * - `alignOffset?: number`
2868
2918
  * - `arrowPadding?: number`
2869
2919
  * - `avoidCollisions?: boolean`
2870
2920
  * - `collisionBoundary?: Boundary | Boundary[]`
2871
- * - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
2921
+ * - `collisionPadding?: number | Partial<Record<"bottom" | "top" | "right" | "left", number>>`
2872
2922
  * - `sticky?: "partial" | "always"`
2873
2923
  * - `hideWhenDetached?: boolean`
2874
2924
  * - `updatePositionStrategy?: "optimized" | "always"`
@@ -2984,4 +3034,4 @@ declare const CODE_BLOCK_ATTRIBUTE = "data-equality-code-block";
2984
3034
  */
2985
3035
  declare const scheduleHighlight: (root?: Node) => Promise<void>;
2986
3036
 
2987
- export { Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeDisplayMode, type BadgeProps, BarGraph, type BarGraphProps, BarGraphSegment, type BarGraphSegmentProps, BgGradient, Button, type ButtonProps, CODE_BLOCK_ATTRIBUTE, Card, CardContent, CardContentHeader, type CardContentHeaderProps, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ControlStatusBadge, type ControlStatusBadgeDisplayMode, CopyButton, type CopyButtonProps, DateRangePicker, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeaderIcon, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayField, type DisplayFieldProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuEmpty, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSearch, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ELEVATION, type Elevation, EmptyTableState, FilterDropdown, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormatDate, type FormatDateDisplayMode, type FormatDateProps, Heading, Icon, IconButton, type IconButtonProps, type IconProps, InfoCard, Input, type InputProps, Label, LoadingOverlay, MetricCard, MotionCollapsibleContent, NavDrill, NavDrillLevel, type NavDrillLevelProps, type NavDrillProps, type NavDrillRequest, NavList, NavListGroup, type NavListGroupProps, NavListItem, type NavListItemProps, type NavListProps, NavListSeparator, NavPanel, type NavPanelProps, NavRail, NavRailItem, type NavRailItemProps, type NavRailProps, NavSwitcher, type NavSwitcherAction, type NavSwitcherOption, type NavSwitcherProps, NotFound, PORTAL_ROOT_ID, Pagination, PanelLabel, Popover, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, ProgressIndicator, type ProgressIndicatorProps, ProgressIndicatorStep, type ProgressIndicatorStepProps, RadialGraph, type RadialGraphProps, RadioDropdown, RadioGroup, RadioGroupItem, ResourceBadge, type ResourceDisplayMode, type ResourceType, SearchBar, SectionHeading, type SegmentedControlOption, type SegmentedControlVariant, SegmentedControls, type SegmentedControlsDisplay, type SegmentedControlsProps, type SegmentedControlsSize, Select, SelectContent, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectSearch, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContainer, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetHeaderIcon, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, SortButton, type SortField, type SortMode, type SortOrder, SortSelector, Spinner, Switch, TableBody, TableCaption, TableCell, TableContainer, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContainer, TabsContent, TabsList, TabsTrigger, Textarea, type Theme, ThemeProvider, Toast, ToastAction, type ToastActionElement, ToastClose, ToastContainer, ToastDescription, type ToastProps$1 as ToastProps, ToastProvider, ToastRoot, ToastTitle, ToastViewport, Toaster, type ToasterToast, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedDescription, badgeVariants, blockClosedTypeahead, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };
3037
+ export { Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeDisplayMode, type BadgeProps, Banner, BarGraph, type BarGraphProps, BarGraphSegment, type BarGraphSegmentProps, BgGradient, Button, type ButtonProps, CODE_BLOCK_ATTRIBUTE, Card, CardContent, CardContentHeader, type CardContentHeaderProps, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ControlStatusBadge, type ControlStatusBadgeDisplayMode, CopyButton, type CopyButtonProps, DateRangePicker, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeaderIcon, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayField, type DisplayFieldProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuEmpty, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSearch, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ELEVATION, type Elevation, EmptyTableState, FilterDropdown, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormatDate, type FormatDateDisplayMode, type FormatDateProps, Heading, Icon, IconButton, type IconButtonProps, type IconProps, InfoCard, Input, type InputProps, Label, LoadingOverlay, MetricCard, MotionCollapsibleContent, NavDrill, NavDrillLevel, type NavDrillLevelProps, type NavDrillProps, type NavDrillRequest, NavList, NavListGroup, type NavListGroupProps, NavListItem, type NavListItemProps, type NavListProps, NavListSeparator, NavPanel, type NavPanelProps, NavRail, NavRailItem, type NavRailItemProps, type NavRailProps, NavSwitcher, type NavSwitcherAction, type NavSwitcherOption, type NavSwitcherProps, NotFound, PORTAL_ROOT_ID, Pagination, PanelLabel, Popover, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, ProgressIndicator, type ProgressIndicatorProps, ProgressIndicatorStep, type ProgressIndicatorStepProps, RadialGraph, type RadialGraphProps, RadioDropdown, RadioGroup, RadioGroupItem, ResourceBadge, type ResourceDisplayMode, type ResourceType, SearchBar, SectionHeading, type SegmentedControlOption, type SegmentedControlVariant, SegmentedControls, type SegmentedControlsDisplay, type SegmentedControlsProps, type SegmentedControlsSize, Select, SelectContent, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectSearch, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContainer, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetHeaderIcon, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, SortButton, type SortField, type SortMode, type SortOrder, SortSelector, Spinner, Switch, TableBody, TableCaption, TableCell, TableContainer, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContainer, TabsContent, TabsList, TabsTrigger, Textarea, type Theme, ThemeProvider, Toast, ToastAction, type ToastActionElement, ToastClose, ToastContainer, ToastDescription, type ToastProps$1 as ToastProps, ToastProvider, ToastRoot, ToastTitle, ToastViewport, Toaster, type ToasterToast, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedDescription, badgeVariants, blockClosedTypeahead, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };
package/dist/index.d.ts CHANGED
@@ -178,6 +178,8 @@ interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
178
178
  * standing callout; it drops the live region unless you set `role` yourself.
179
179
  */
180
180
  as?: 'div' | 'aside' | 'section';
181
+ /** Control at the end of the title row, such as a Retry button */
182
+ action?: React$1.ReactNode;
181
183
  }
182
184
  /**
183
185
  * **Props**
@@ -192,6 +194,7 @@ interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
192
194
  * assertive live region -- correct for a message that appears in response to
193
195
  * something the user did, wrong for static page content. Use `aside` for a
194
196
  * standing callout; it drops the live region unless you set `role` yourself.
197
+ * - `action?: React.ReactNode` — Control at the end of the title row, such as a Retry button
195
198
  *
196
199
  * Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
197
200
  *
@@ -271,6 +274,37 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
271
274
  */
272
275
  declare function Badge({ className, variant, size, closeable, handleClosable, closeLabel, truncate, truncateLength, icon, display, monospace, pill, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
273
276
 
277
+ declare const bannerVariants: (props?: ({
278
+ /** The status the strip's colour reports */
279
+ variant?: "primary" | "danger" | "warning" | "neutral" | "success" | null | undefined;
280
+ /** The edge that draws the rule. `top` for a banner at the foot of a page header */
281
+ border?: "top" | "bottom" | null | undefined;
282
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
283
+ interface BannerProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof bannerVariants> {
284
+ /** Lucide icon name or element, drawn in a round chip before the message */
285
+ icon: React$1.ReactElement | string;
286
+ /** Control after the message, on its line, such as a link button */
287
+ action?: React$1.ReactNode;
288
+ /** Element to render. `aside` makes the banner a landmark, for one that stands apart from the page it tops */
289
+ as?: 'div' | 'aside';
290
+ /** The message, a sentence */
291
+ children: React$1.ReactNode;
292
+ }
293
+ /**
294
+ * **Props**
295
+ * - `variant?: "primary" | "neutral" | "success" | "warning" | "danger"` (default `"neutral"`) — The status the strip's colour reports
296
+ * - `border?: "bottom" | "top"` (default `"bottom"`) — The edge that draws the rule. `top` for a banner at the foot of a page header
297
+ * - `icon: React.ReactElement | string` — Lucide icon name or element, drawn in a round chip before the message
298
+ * - `action?: React.ReactNode` — Control after the message, on its line, such as a link button
299
+ * - `as?: "div" | "aside"` (default `"div"`) — Element to render. `aside` makes the banner a landmark, for one that stands apart from the page it tops
300
+ * - `children: React.ReactNode` — The message, a sentence
301
+ *
302
+ * Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
303
+ *
304
+ * [Banner documentation](https://equality.eqtylab.io/components/banner)
305
+ */
306
+ declare const Banner: React$1.ForwardRefExoticComponent<BannerProps & React$1.RefAttributes<HTMLDivElement>>;
307
+
274
308
  interface BarGraphSegmentProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'color'> {
275
309
  /** Proportional value used to compute the segment's width (`value / sum of all values`). */
276
310
  value: number;
@@ -976,7 +1010,7 @@ declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<Dro
976
1010
  * - `arrowPadding?: number`
977
1011
  * - `avoidCollisions?: boolean`
978
1012
  * - `collisionBoundary?: Boundary | Boundary[]`
979
- * - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
1013
+ * - `collisionPadding?: number | Partial<Record<"bottom" | "top" | "right" | "left", number>>`
980
1014
  * - `sticky?: "partial" | "always"`
981
1015
  * - `hideWhenDetached?: boolean`
982
1016
  * - `updatePositionStrategy?: "optimized" | "always"`
@@ -1008,14 +1042,14 @@ declare const DropdownMenuSub: ({ children, ...props }: React$1.ComponentPropsWi
1008
1042
  * - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
1009
1043
  * controlling animation with React animation libraries.
1010
1044
  * - `loop?: boolean` — Whether keyboard navigation should loop around
1011
- * - `side?: "top" | "right" | "bottom" | "left"`
1045
+ * - `side?: "bottom" | "top" | "right" | "left"`
1012
1046
  * - `sideOffset?: number` (default `4`)
1013
1047
  * - `align?: "center" | "start" | "end"`
1014
1048
  * - `alignOffset?: number`
1015
1049
  * - `arrowPadding?: number`
1016
1050
  * - `avoidCollisions?: boolean`
1017
1051
  * - `collisionBoundary?: Boundary | Boundary[]`
1018
- * - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
1052
+ * - `collisionPadding?: number | Partial<Record<"bottom" | "top" | "right" | "left", number>>`
1019
1053
  * - `sticky?: "partial" | "always"`
1020
1054
  * - `hideWhenDetached?: boolean`
1021
1055
  * - `updatePositionStrategy?: "optimized" | "always"`
@@ -1681,7 +1715,7 @@ interface NavSwitcherAction {
1681
1715
  /** Runs once the list has closed */
1682
1716
  onSelect: () => void;
1683
1717
  }
1684
- interface NavSwitcherLoadedProps {
1718
+ interface NavSwitcherBaseProps {
1685
1719
  /** Shows a placeholder at the switcher's height while the current item loads */
1686
1720
  loading?: false;
1687
1721
  /** The current item's name, shown as the panel's heading */
@@ -1703,6 +1737,19 @@ interface NavSwitcherLoadedProps {
1703
1737
  /** A command at the bottom of the list, kept while searching, such as "Create Project" */
1704
1738
  action?: NavSwitcherAction;
1705
1739
  }
1740
+ type NavSwitcherRetryProps = {
1741
+ error?: false;
1742
+ retrying?: never;
1743
+ onRetry?: never;
1744
+ } | {
1745
+ /** The list failed to load: the list says so and offers Retry */
1746
+ error: boolean;
1747
+ /** A retry is in flight: the Retry row reads "Retrying..." */
1748
+ retrying?: boolean;
1749
+ /** Called when Retry is picked; the list stays open */
1750
+ onRetry: () => void;
1751
+ };
1752
+ type NavSwitcherLoadedProps = NavSwitcherBaseProps & NavSwitcherRetryProps;
1706
1753
  interface NavSwitcherLoadingProps {
1707
1754
  loading: true;
1708
1755
  }
@@ -1719,6 +1766,9 @@ type NavSwitcherProps = NavSwitcherLoadedProps | NavSwitcherLoadingProps;
1719
1766
  * - `onHighlight?: (value: string) => void` — Hover or focus on an option, for a caller that preloads its destination
1720
1767
  * - `onHighlightEnd?: () => void` — Hover or focus leaves an option, for a caller that cancels its preload
1721
1768
  * - `action?: NavSwitcherAction` — A command at the bottom of the list, kept while searching, such as "Create Project"
1769
+ * - `error?: false | boolean` — The list failed to load: the list says so and offers Retry
1770
+ * - `retrying?: boolean` — A retry is in flight: the Retry row reads "Retrying..."
1771
+ * - `onRetry?: () => void` — Called when Retry is picked; the list stays open
1722
1772
  *
1723
1773
  * [Nav documentation](https://equality.eqtylab.io/components/nav)
1724
1774
  */
@@ -1830,14 +1880,14 @@ declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive
1830
1880
  * Can be prevented.
1831
1881
  * - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
1832
1882
  * controlling animation with React animation libraries.
1833
- * - `side?: "top" | "right" | "bottom" | "left"`
1883
+ * - `side?: "bottom" | "top" | "right" | "left"`
1834
1884
  * - `sideOffset?: number` (default `4`)
1835
1885
  * - `align?: "center" | "start" | "end"` (default `"center"`)
1836
1886
  * - `alignOffset?: number`
1837
1887
  * - `arrowPadding?: number`
1838
1888
  * - `avoidCollisions?: boolean`
1839
1889
  * - `collisionBoundary?: Boundary | Boundary[]`
1840
- * - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
1890
+ * - `collisionPadding?: number | Partial<Record<"bottom" | "top" | "right" | "left", number>>`
1841
1891
  * - `sticky?: "partial" | "always"`
1842
1892
  * - `hideWhenDetached?: boolean`
1843
1893
  * - `updatePositionStrategy?: "optimized" | "always"`
@@ -2174,14 +2224,14 @@ declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimit
2174
2224
  * Can be prevented.
2175
2225
  * - `onCloseAutoFocus?: (event: Event) => void` — Event handler called when auto-focusing on close.
2176
2226
  * Can be prevented.
2177
- * - `side?: "top" | "right" | "bottom" | "left"`
2227
+ * - `side?: "bottom" | "top" | "right" | "left"`
2178
2228
  * - `sideOffset?: number`
2179
2229
  * - `align?: "center" | "start" | "end"`
2180
2230
  * - `alignOffset?: number`
2181
2231
  * - `arrowPadding?: number`
2182
2232
  * - `avoidCollisions?: boolean`
2183
2233
  * - `collisionBoundary?: Boundary | Boundary[]`
2184
- * - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
2234
+ * - `collisionPadding?: number | Partial<Record<"bottom" | "top" | "right" | "left", number>>`
2185
2235
  * - `sticky?: "partial" | "always"`
2186
2236
  * - `hideWhenDetached?: boolean`
2187
2237
  * - `updatePositionStrategy?: "optimized" | "always"`
@@ -2861,14 +2911,14 @@ declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive
2861
2911
  * Can be prevented.
2862
2912
  * - `forceMount?: true` — Used to force mounting when more control is needed. Useful when
2863
2913
  * controlling animation with React animation libraries.
2864
- * - `side?: "top" | "right" | "bottom" | "left"`
2914
+ * - `side?: "bottom" | "top" | "right" | "left"`
2865
2915
  * - `sideOffset?: number` (default `4`)
2866
2916
  * - `align?: "center" | "start" | "end"`
2867
2917
  * - `alignOffset?: number`
2868
2918
  * - `arrowPadding?: number`
2869
2919
  * - `avoidCollisions?: boolean`
2870
2920
  * - `collisionBoundary?: Boundary | Boundary[]`
2871
- * - `collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>`
2921
+ * - `collisionPadding?: number | Partial<Record<"bottom" | "top" | "right" | "left", number>>`
2872
2922
  * - `sticky?: "partial" | "always"`
2873
2923
  * - `hideWhenDetached?: boolean`
2874
2924
  * - `updatePositionStrategy?: "optimized" | "always"`
@@ -2984,4 +3034,4 @@ declare const CODE_BLOCK_ATTRIBUTE = "data-equality-code-block";
2984
3034
  */
2985
3035
  declare const scheduleHighlight: (root?: Node) => Promise<void>;
2986
3036
 
2987
- export { Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeDisplayMode, type BadgeProps, BarGraph, type BarGraphProps, BarGraphSegment, type BarGraphSegmentProps, BgGradient, Button, type ButtonProps, CODE_BLOCK_ATTRIBUTE, Card, CardContent, CardContentHeader, type CardContentHeaderProps, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ControlStatusBadge, type ControlStatusBadgeDisplayMode, CopyButton, type CopyButtonProps, DateRangePicker, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeaderIcon, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayField, type DisplayFieldProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuEmpty, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSearch, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ELEVATION, type Elevation, EmptyTableState, FilterDropdown, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormatDate, type FormatDateDisplayMode, type FormatDateProps, Heading, Icon, IconButton, type IconButtonProps, type IconProps, InfoCard, Input, type InputProps, Label, LoadingOverlay, MetricCard, MotionCollapsibleContent, NavDrill, NavDrillLevel, type NavDrillLevelProps, type NavDrillProps, type NavDrillRequest, NavList, NavListGroup, type NavListGroupProps, NavListItem, type NavListItemProps, type NavListProps, NavListSeparator, NavPanel, type NavPanelProps, NavRail, NavRailItem, type NavRailItemProps, type NavRailProps, NavSwitcher, type NavSwitcherAction, type NavSwitcherOption, type NavSwitcherProps, NotFound, PORTAL_ROOT_ID, Pagination, PanelLabel, Popover, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, ProgressIndicator, type ProgressIndicatorProps, ProgressIndicatorStep, type ProgressIndicatorStepProps, RadialGraph, type RadialGraphProps, RadioDropdown, RadioGroup, RadioGroupItem, ResourceBadge, type ResourceDisplayMode, type ResourceType, SearchBar, SectionHeading, type SegmentedControlOption, type SegmentedControlVariant, SegmentedControls, type SegmentedControlsDisplay, type SegmentedControlsProps, type SegmentedControlsSize, Select, SelectContent, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectSearch, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContainer, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetHeaderIcon, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, SortButton, type SortField, type SortMode, type SortOrder, SortSelector, Spinner, Switch, TableBody, TableCaption, TableCell, TableContainer, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContainer, TabsContent, TabsList, TabsTrigger, Textarea, type Theme, ThemeProvider, Toast, ToastAction, type ToastActionElement, ToastClose, ToastContainer, ToastDescription, type ToastProps$1 as ToastProps, ToastProvider, ToastRoot, ToastTitle, ToastViewport, Toaster, type ToasterToast, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedDescription, badgeVariants, blockClosedTypeahead, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };
3037
+ export { Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeDisplayMode, type BadgeProps, Banner, BarGraph, type BarGraphProps, BarGraphSegment, type BarGraphSegmentProps, BgGradient, Button, type ButtonProps, CODE_BLOCK_ATTRIBUTE, Card, CardContent, CardContentHeader, type CardContentHeaderProps, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ControlStatusBadge, type ControlStatusBadgeDisplayMode, CopyButton, type CopyButtonProps, DateRangePicker, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeaderIcon, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayField, type DisplayFieldProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuEmpty, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSearch, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ELEVATION, type Elevation, EmptyTableState, FilterDropdown, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormatDate, type FormatDateDisplayMode, type FormatDateProps, Heading, Icon, IconButton, type IconButtonProps, type IconProps, InfoCard, Input, type InputProps, Label, LoadingOverlay, MetricCard, MotionCollapsibleContent, NavDrill, NavDrillLevel, type NavDrillLevelProps, type NavDrillProps, type NavDrillRequest, NavList, NavListGroup, type NavListGroupProps, NavListItem, type NavListItemProps, type NavListProps, NavListSeparator, NavPanel, type NavPanelProps, NavRail, NavRailItem, type NavRailItemProps, type NavRailProps, NavSwitcher, type NavSwitcherAction, type NavSwitcherOption, type NavSwitcherProps, NotFound, PORTAL_ROOT_ID, Pagination, PanelLabel, Popover, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, ProgressIndicator, type ProgressIndicatorProps, ProgressIndicatorStep, type ProgressIndicatorStepProps, RadialGraph, type RadialGraphProps, RadioDropdown, RadioGroup, RadioGroupItem, ResourceBadge, type ResourceDisplayMode, type ResourceType, SearchBar, SectionHeading, type SegmentedControlOption, type SegmentedControlVariant, SegmentedControls, type SegmentedControlsDisplay, type SegmentedControlsProps, type SegmentedControlsSize, Select, SelectContent, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectSearch, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContainer, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetHeaderIcon, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, SortButton, type SortField, type SortMode, type SortOrder, SortSelector, Spinner, Switch, TableBody, TableCaption, TableCell, TableContainer, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContainer, TabsContent, TabsList, TabsTrigger, Textarea, type Theme, ThemeProvider, Toast, ToastAction, type ToastActionElement, ToastClose, ToastContainer, ToastDescription, type ToastProps$1 as ToastProps, ToastProvider, ToastRoot, ToastTitle, ToastViewport, Toaster, type ToasterToast, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedDescription, badgeVariants, blockClosedTypeahead, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };