@eqtylab/equality 4.4.1 → 4.5.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
@@ -771,6 +771,7 @@ interface SectionHeadingProps {
771
771
  declare const SectionHeading: ({ heading, description, renderRightContent, className, }: SectionHeadingProps) => react_jsx_runtime.JSX.Element;
772
772
 
773
773
  type SegmentedControlsDisplay = 'both' | 'text-only' | 'icon-only';
774
+ type SegmentedControlsSize = 'sm' | 'md' | 'lg';
774
775
  interface SegmentedControlOption {
775
776
  /** Unique value used to identify the option. */
776
777
  value: string;
@@ -790,9 +791,11 @@ interface SegmentedControlsProps {
790
791
  * `icon-only` requires every option to define an `icon` and falls back to `both` otherwise.
791
792
  */
792
793
  display?: SegmentedControlsDisplay;
794
+ /** Matches the height of a `Button` of the same size. */
795
+ size?: SegmentedControlsSize;
793
796
  className?: string;
794
797
  }
795
- declare const SegmentedControls: ({ options, value, onValueChange, display, className, }: SegmentedControlsProps) => react_jsx_runtime.JSX.Element;
798
+ declare const SegmentedControls: ({ options, value, onValueChange, display, size, className, }: SegmentedControlsProps) => react_jsx_runtime.JSX.Element;
796
799
 
797
800
  declare const useSelectSearchQuery: () => {
798
801
  query: string;
@@ -806,8 +809,6 @@ declare const Select: {
806
809
  declare const SelectGroup: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
807
810
  declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
808
811
  declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
809
- declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
810
- declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
811
812
  declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
812
813
  elevation?: string | number | null | undefined;
813
814
  } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
@@ -1099,4 +1100,4 @@ declare const CODE_BLOCK_ATTRIBUTE = "data-equality-code-block";
1099
1100
  */
1100
1101
  declare const scheduleHighlight: (root?: Node) => Promise<void>;
1101
1102
 
1102
- 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, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerHeaderActions, DrawerInnerContent, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, 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, ListOrGridViewToggle, LoadingOverlay, MetricCard, MotionCollapsibleContent, 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, ScrollArea, ScrollBar, SearchBar, SectionHeading, type SegmentedControlOption, SegmentedControls, type SegmentedControlsDisplay, type SegmentedControlsProps, Select, SelectContent, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, 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, type ViewMode, type ViewOrder, badgeVariants, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };
1103
+ 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, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerHeaderActions, DrawerInnerContent, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, 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, ListOrGridViewToggle, LoadingOverlay, MetricCard, MotionCollapsibleContent, 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, ScrollArea, ScrollBar, SearchBar, SectionHeading, type SegmentedControlOption, 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, type ViewMode, type ViewOrder, badgeVariants, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };
package/dist/index.d.ts CHANGED
@@ -771,6 +771,7 @@ interface SectionHeadingProps {
771
771
  declare const SectionHeading: ({ heading, description, renderRightContent, className, }: SectionHeadingProps) => react_jsx_runtime.JSX.Element;
772
772
 
773
773
  type SegmentedControlsDisplay = 'both' | 'text-only' | 'icon-only';
774
+ type SegmentedControlsSize = 'sm' | 'md' | 'lg';
774
775
  interface SegmentedControlOption {
775
776
  /** Unique value used to identify the option. */
776
777
  value: string;
@@ -790,9 +791,11 @@ interface SegmentedControlsProps {
790
791
  * `icon-only` requires every option to define an `icon` and falls back to `both` otherwise.
791
792
  */
792
793
  display?: SegmentedControlsDisplay;
794
+ /** Matches the height of a `Button` of the same size. */
795
+ size?: SegmentedControlsSize;
793
796
  className?: string;
794
797
  }
795
- declare const SegmentedControls: ({ options, value, onValueChange, display, className, }: SegmentedControlsProps) => react_jsx_runtime.JSX.Element;
798
+ declare const SegmentedControls: ({ options, value, onValueChange, display, size, className, }: SegmentedControlsProps) => react_jsx_runtime.JSX.Element;
796
799
 
797
800
  declare const useSelectSearchQuery: () => {
798
801
  query: string;
@@ -806,8 +809,6 @@ declare const Select: {
806
809
  declare const SelectGroup: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
807
810
  declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
808
811
  declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
809
- declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
810
- declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
811
812
  declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
812
813
  elevation?: string | number | null | undefined;
813
814
  } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
@@ -1099,4 +1100,4 @@ declare const CODE_BLOCK_ATTRIBUTE = "data-equality-code-block";
1099
1100
  */
1100
1101
  declare const scheduleHighlight: (root?: Node) => Promise<void>;
1101
1102
 
1102
- 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, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerHeaderActions, DrawerInnerContent, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, 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, ListOrGridViewToggle, LoadingOverlay, MetricCard, MotionCollapsibleContent, 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, ScrollArea, ScrollBar, SearchBar, SectionHeading, type SegmentedControlOption, SegmentedControls, type SegmentedControlsDisplay, type SegmentedControlsProps, Select, SelectContent, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, 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, type ViewMode, type ViewOrder, badgeVariants, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };
1103
+ 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, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerHeaderActions, DrawerInnerContent, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, 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, ListOrGridViewToggle, LoadingOverlay, MetricCard, MotionCollapsibleContent, 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, ScrollArea, ScrollBar, SearchBar, SectionHeading, type SegmentedControlOption, 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, type ViewMode, type ViewOrder, badgeVariants, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import { twMerge } from 'tailwind-merge';
10
10
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
11
11
  import styles4 from './alert.module.module.css.module.css';
12
12
  import * as LucideIcons from 'lucide-react';
13
- import { Check, ChevronRight, Search, Circle, TriangleAlert, ChevronDown, ChevronUp, X, SearchIcon, CalendarDays, ChevronLeft, Grid3X3, List, AlertOctagon, Home, ChevronsLeft, ChevronsRight, ArrowUp, ArrowDown, ArrowUpDown } from 'lucide-react';
13
+ import { Check, ChevronRight, Search, Circle, TriangleAlert, ChevronDown, X, SearchIcon, CalendarDays, ChevronLeft, Grid3X3, List, AlertOctagon, Home, ChevronsLeft, ChevronsRight, ArrowUp, ArrowDown, ArrowUpDown } from 'lucide-react';
14
14
  import styles3 from './icon.module.module.css.module.css';
15
15
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
16
16
  import styles5 from './avatar.module.module.css.module.css';
@@ -1774,7 +1774,7 @@ function useSearchSideLock(state, contentRef, {
1774
1774
  const placed = contentRef.current?.dataset.side;
1775
1775
  if (placed) lockSide?.(placed);
1776
1776
  }, [enabled, searching, lockedSide, lockSide, contentRef]);
1777
- return lockedSide && enabled ? { side: lockedSide, avoidCollisions: false } : { side, avoidCollisions };
1777
+ return { side: lockedSide && enabled ? lockedSide : side, avoidCollisions };
1778
1778
  }
1779
1779
  var isSearchActive = (state) => !!state && state.query.trim().length > 0;
1780
1780
  var isSearchEmpty = (state) => isSearchActive(state) && state.matchCount === 0;
@@ -1848,9 +1848,10 @@ function handleListKeyDown(state, event, { searchSelector, itemSelector }) {
1848
1848
  if (!state?.enabled) return;
1849
1849
  const target = event.target;
1850
1850
  if (target?.closest(searchSelector)) return;
1851
- if (event.key === "ArrowUp" && state.visible) {
1852
- const firstItem = event.currentTarget.querySelector(itemSelector);
1853
- if (firstItem && firstItem === target?.closest(itemSelector)) {
1851
+ if ((event.key === "ArrowUp" || event.key === "ArrowDown") && state.visible) {
1852
+ const items = event.currentTarget.querySelectorAll(itemSelector);
1853
+ const edgeItem = event.key === "ArrowUp" ? items[0] : items[items.length - 1];
1854
+ if (edgeItem && edgeItem === target?.closest(itemSelector)) {
1854
1855
  event.preventDefault();
1855
1856
  state.requestFocus();
1856
1857
  return;
@@ -2330,7 +2331,7 @@ var FilterDropdown = ({
2330
2331
  checked: isSelected,
2331
2332
  onCheckedChange: () => onToggleFilter(option.value),
2332
2333
  onSelect: (e) => e.preventDefault(),
2333
- children: option.label
2334
+ children: /* @__PURE__ */ jsx("span", { className: styles24["option-label"], title: option.label, children: option.label })
2334
2335
  },
2335
2336
  option.value
2336
2337
  );
@@ -2848,7 +2849,6 @@ var NotFound = ({
2848
2849
  };
2849
2850
  var CheckIcon3 = Check;
2850
2851
  var ChevronDownIcon2 = ChevronDown;
2851
- var ChevronUpIcon = ChevronUp;
2852
2852
  var SearchIcon3 = Search;
2853
2853
  var SEARCH_INPUT_SELECTOR2 = "[data-select-search]";
2854
2854
  var NAVIGABLE_OPTION_SELECTOR = '[role="option"]:not([data-disabled]):not([hidden])';
@@ -2901,26 +2901,6 @@ var SelectTrigger = React15.forwardRef(({ className, children, ...props }, ref)
2901
2901
  /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDownIcon2, { className: cn(styles37["select-icon"], styles37["select-icon--low-opacity"]) }) })
2902
2902
  ] }));
2903
2903
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
2904
- var SelectScrollUpButton = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2905
- SelectPrimitive.ScrollUpButton,
2906
- {
2907
- ref,
2908
- className: cn(styles37["select-scroll-button"], className),
2909
- ...props,
2910
- children: /* @__PURE__ */ jsx(ChevronUpIcon, { className: styles37["select-icon"] })
2911
- }
2912
- ));
2913
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
2914
- var SelectScrollDownButton = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
2915
- SelectPrimitive.ScrollDownButton,
2916
- {
2917
- ref,
2918
- className: cn(styles37["select-scroll-button"], className),
2919
- ...props,
2920
- children: /* @__PURE__ */ jsx(ChevronDownIcon2, { className: styles37["select-icon"] })
2921
- }
2922
- ));
2923
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
2924
2904
  var SelectPortal = ({ children }) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { container: usePortalContainer(), children });
2925
2905
  var selectContentElevationVariants = generateElevationVariants(
2926
2906
  styles37,
@@ -2996,7 +2976,6 @@ var SelectContent = React15.forwardRef(
2996
2976
  ...props,
2997
2977
  children: [
2998
2978
  ctx?.enabled ? /* @__PURE__ */ jsx("div", { className: styles37["select-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? formatResultCount(resultCount) : null }) : null,
2999
- /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
3000
2979
  /* @__PURE__ */ jsx(
3001
2980
  SelectPrimitive.Viewport,
3002
2981
  {
@@ -3006,8 +2985,7 @@ var SelectContent = React15.forwardRef(
3006
2985
  ),
3007
2986
  children
3008
2987
  }
3009
- ),
3010
- /* @__PURE__ */ jsx(SelectScrollDownButton, {})
2988
+ )
3011
2989
  ]
3012
2990
  }
3013
2991
  ) });
@@ -3850,6 +3828,7 @@ var SegmentedControls = ({
3850
3828
  value,
3851
3829
  onValueChange,
3852
3830
  display = "both",
3831
+ size = "md",
3853
3832
  className
3854
3833
  }) => {
3855
3834
  const allHaveIcons = options.every((option) => option.icon != null);
@@ -3861,6 +3840,7 @@ var SegmentedControls = ({
3861
3840
  left: 0,
3862
3841
  width: 0
3863
3842
  });
3843
+ const [animateIndicator, setAnimateIndicator] = useState(false);
3864
3844
  const updateIndicator = useCallback(() => {
3865
3845
  const activeSegment = segmentRefs.current[value];
3866
3846
  if (activeSegment) {
@@ -3869,7 +3849,11 @@ var SegmentedControls = ({
3869
3849
  }, [value]);
3870
3850
  useLayoutEffect(() => {
3871
3851
  updateIndicator();
3872
- }, [updateIndicator, options, effectiveDisplay]);
3852
+ }, [updateIndicator, options, effectiveDisplay, size]);
3853
+ useEffect(() => {
3854
+ const frame = requestAnimationFrame(() => setAnimateIndicator(true));
3855
+ return () => cancelAnimationFrame(frame);
3856
+ }, []);
3873
3857
  useLayoutEffect(() => {
3874
3858
  const container = containerRef.current;
3875
3859
  if (!container) return;
@@ -3877,44 +3861,57 @@ var SegmentedControls = ({
3877
3861
  observer.observe(container);
3878
3862
  return () => observer.disconnect();
3879
3863
  }, [updateIndicator]);
3880
- return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: cn(styles49["segmented-controls"], className), children: [
3881
- options.map((option) => {
3882
- const currentlyActive = option.value === value;
3883
- const showIcon = option.icon != null && effectiveDisplay !== "text-only";
3884
- const showLabel = effectiveDisplay !== "icon-only";
3885
- return /* @__PURE__ */ jsxs(
3886
- "button",
3887
- {
3888
- ref: (el) => {
3889
- segmentRefs.current[option.value] = el;
3890
- },
3891
- type: "button",
3892
- "aria-pressed": currentlyActive,
3893
- "aria-label": isIconOnly ? option.label : void 0,
3894
- title: isIconOnly ? option.label : void 0,
3895
- className: cn(
3896
- styles49["segment"],
3897
- isIconOnly && styles49["segment--icon-only"],
3898
- currentlyActive ? styles49["segment--active"] : styles49["segment--inactive"]
3899
- ),
3900
- onClick: () => onValueChange(option.value),
3901
- children: [
3902
- showIcon && /* @__PURE__ */ jsx(Icon, { icon: option.icon, size: "xs", className: styles49["segment-icon"] }),
3903
- showLabel && /* @__PURE__ */ jsx("span", { children: option.label }),
3904
- !isIconOnly && option.suffix && /* @__PURE__ */ jsx("span", { className: styles49["segment-suffix"], children: option.suffix })
3905
- ]
3906
- },
3907
- option.value
3908
- );
3909
- }),
3910
- /* @__PURE__ */ jsx(
3911
- "div",
3912
- {
3913
- className: styles49["active-segment-indicator"],
3914
- style: { transform: `translateX(${indicator.left}px)`, width: `${indicator.width}px` }
3915
- }
3916
- )
3917
- ] });
3864
+ return /* @__PURE__ */ jsxs(
3865
+ "div",
3866
+ {
3867
+ ref: containerRef,
3868
+ className: cn(styles49["segmented-controls"], styles49[`size--${size}`], className),
3869
+ children: [
3870
+ options.map((option) => {
3871
+ const currentlyActive = option.value === value;
3872
+ const showIcon = option.icon != null && effectiveDisplay !== "text-only";
3873
+ const showLabel = effectiveDisplay !== "icon-only";
3874
+ return /* @__PURE__ */ jsxs(
3875
+ "button",
3876
+ {
3877
+ ref: (el) => {
3878
+ segmentRefs.current[option.value] = el;
3879
+ },
3880
+ type: "button",
3881
+ "aria-pressed": currentlyActive,
3882
+ "aria-label": isIconOnly ? option.label : void 0,
3883
+ title: isIconOnly ? option.label : void 0,
3884
+ className: cn(
3885
+ styles49["segment"],
3886
+ isIconOnly && styles49["segment--icon-only"],
3887
+ currentlyActive ? styles49["segment--active"] : styles49["segment--inactive"]
3888
+ ),
3889
+ onClick: () => onValueChange(option.value),
3890
+ children: [
3891
+ showIcon && /* @__PURE__ */ jsx(Icon, { icon: option.icon, size: "xs", className: styles49["segment-icon"] }),
3892
+ showLabel && /* @__PURE__ */ jsx("span", { children: option.label }),
3893
+ !isIconOnly && option.suffix && /* @__PURE__ */ jsx("span", { className: styles49["segment-suffix"], children: option.suffix })
3894
+ ]
3895
+ },
3896
+ option.value
3897
+ );
3898
+ }),
3899
+ /* @__PURE__ */ jsx(
3900
+ "div",
3901
+ {
3902
+ className: cn(
3903
+ styles49["active-segment-indicator"],
3904
+ animateIndicator && styles49["active-segment-indicator--animated"]
3905
+ ),
3906
+ style: {
3907
+ transform: `translateX(${indicator.left}px)`,
3908
+ "--indicator-width": `${indicator.width}px`
3909
+ }
3910
+ }
3911
+ )
3912
+ ]
3913
+ }
3914
+ );
3918
3915
  };
3919
3916
  var Separator3 = React15.forwardRef(({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
3920
3917
  SeparatorPrimitive.Root,
@@ -4651,6 +4648,6 @@ var useTheme = () => {
4651
4648
  return [theme, setTheme];
4652
4649
  };
4653
4650
 
4654
- export { Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, BarGraph, BarGraphSegment, BgGradient, Button, CODE_BLOCK_ATTRIBUTE, Card, CardContent, CardContentHeader, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ControlStatusBadge, CopyButton, DateRangePicker, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeaderIcon, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayField, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerHeaderActions, DrawerInnerContent, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuEmpty, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSearch, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ELEVATION, EmptyTableState, FilterDropdown, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormatDate, Heading, Icon, IconButton, InfoCard, Input, Label2 as Label, ListOrGridViewToggle, LoadingOverlay, MetricCard, MotionCollapsibleContent, NotFound, PORTAL_ROOT_ID, Pagination, PanelLabel, Popover, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, ProgressIndicator, ProgressIndicatorStep, RadialGraph, RadioDropdown, RadioGroup2 as RadioGroup, RadioGroupItem, ResourceBadge, ScrollArea, ScrollBar, SearchBar, SectionHeading, SegmentedControls, Select, SelectContent, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSearch, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Sheet, SheetClose, SheetContainer, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetHeaderIcon, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, SortButton, SortSelector, Spinner, Switch, TableBody, TableCaption, TableCell, TableContainer, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContainer, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toast, ToastAction, ToastClose, ToastContainer, ToastDescription, ToastProvider, ToastRoot, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedDescription, badgeVariants, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };
4651
+ export { Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, BarGraph, BarGraphSegment, BgGradient, Button, CODE_BLOCK_ATTRIBUTE, Card, CardContent, CardContentHeader, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeBlock, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ControlStatusBadge, CopyButton, DateRangePicker, Dialog, DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeaderIcon, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DisplayField, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerHeaderActions, DrawerInnerContent, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuEmpty, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSearch, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ELEVATION, EmptyTableState, FilterDropdown, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormatDate, Heading, Icon, IconButton, InfoCard, Input, Label2 as Label, ListOrGridViewToggle, LoadingOverlay, MetricCard, MotionCollapsibleContent, NotFound, PORTAL_ROOT_ID, Pagination, PanelLabel, Popover, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, ProgressIndicator, ProgressIndicatorStep, RadialGraph, RadioDropdown, RadioGroup2 as RadioGroup, RadioGroupItem, ResourceBadge, ScrollArea, ScrollBar, SearchBar, SectionHeading, SegmentedControls, Select, SelectContent, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectSearch, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Sheet, SheetClose, SheetContainer, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetHeaderIcon, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, SortButton, SortSelector, Spinner, Switch, TableBody, TableCaption, TableCell, TableContainer, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContainer, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toast, ToastAction, ToastClose, ToastContainer, ToastDescription, ToastProvider, ToastRoot, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedDescription, badgeVariants, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };
4655
4652
  //# sourceMappingURL=index.js.map
4656
4653
  //# sourceMappingURL=index.js.map