@braintwopoint0/playback-commons 0.2.6 → 0.2.7

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.
@@ -295,6 +295,45 @@ interface SearchBarProps extends Omit<React$1.InputHTMLAttributes<HTMLInputEleme
295
295
  }
296
296
  declare function SearchBar({ value, onChange, onClear, className, placeholder, ...props }: SearchBarProps): react_jsx_runtime.JSX.Element;
297
297
 
298
+ interface MultiSelectOption {
299
+ value: string;
300
+ label: string;
301
+ /** Optional badge shown after the label (e.g. row count). */
302
+ count?: number;
303
+ }
304
+ interface MultiSelectProps {
305
+ options: MultiSelectOption[];
306
+ selected: string[];
307
+ onChange: (selected: string[]) => void;
308
+ placeholder?: string;
309
+ searchPlaceholder?: string;
310
+ emptyLabel?: string;
311
+ /** Hide the search input when there are fewer than this many options. */
312
+ searchThreshold?: number;
313
+ /** Show a "Clear all" affordance inside the popover when something is selected. */
314
+ clearable?: boolean;
315
+ /** Tailwind classes applied to the trigger button. */
316
+ className?: string;
317
+ /** Popover content width. Defaults to w-72. */
318
+ contentClassName?: string;
319
+ /** Aria-label for the trigger. */
320
+ 'aria-label'?: string;
321
+ }
322
+ /**
323
+ * Multi-select dropdown — a search-and-pick alternative to chip lists when
324
+ * the option count gets unwieldy. Composes the existing Popover + Checkbox
325
+ * + Input primitives so styling stays consistent with the rest of commons.
326
+ *
327
+ * Trigger renders:
328
+ * - placeholder when nothing is selected
329
+ * - the single option's label when exactly one is selected
330
+ * - "N selected" when multiple are selected
331
+ *
332
+ * Designed for short-to-medium option lists (~5-100). For very long lists
333
+ * consider a virtualised picker.
334
+ */
335
+ declare function MultiSelect({ options, selected, onChange, placeholder, searchPlaceholder, emptyLabel, searchThreshold, clearable, className, contentClassName, 'aria-label': ariaLabel, }: MultiSelectProps): react_jsx_runtime.JSX.Element;
336
+
298
337
  interface DataRowProps extends React$1.HTMLAttributes<HTMLDivElement> {
299
338
  status?: 'green' | 'yellow' | 'red' | 'gray';
300
339
  primary: string;
@@ -577,4 +616,4 @@ type ResetPasswordFormProps = {
577
616
  };
578
617
  declare function ResetPasswordForm({ loginHref, initialError, redirectDelayMs, title, subtitle, }: ResetPasswordFormProps): react_jsx_runtime.JSX.Element;
579
618
 
580
- export { AnimatedTooltip, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Button, type ButtonProps, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, DataRow, type DataRowProps, DatePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, EmptyState, type EmptyStateProps, FadeIn, type FadeInProps, FlipWords, Footer, type FooterColumnDef, FooterCreditsBar, type FooterCreditsBarProps, type FooterLinkDef, type FooterProps, type FooterSocialDef, type FooterSocialLink, ForgotPasswordForm, type ForgotPasswordFormProps, HeroHighlight, Highlight, HoverCard, HoverCardDescription, HoverCardTitle, HoverEffect, Input, type InputProps, Label, LumaSpin, NewsletterForm, type NewsletterFormProps, PageShell, type PageShellProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ResetPasswordForm, type ResetPasswordFormProps, SearchBar, type SearchBarProps, SectionCard, type SectionCardProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SignInForm, type SignInFormProps, SiteFooter, type SiteFooterProps, Skeleton, type StatItem, StatsGrid, type StatsGridProps, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, TimePicker, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, easeSmooth, fadeInDown, fadeInUp, hoverLift, hoverScale, pageTransition, springBounce, staggerContainer, staggerItem };
619
+ export { AnimatedTooltip, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Button, type ButtonProps, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, DataRow, type DataRowProps, DatePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, EmptyState, type EmptyStateProps, FadeIn, type FadeInProps, FlipWords, Footer, type FooterColumnDef, FooterCreditsBar, type FooterCreditsBarProps, type FooterLinkDef, type FooterProps, type FooterSocialDef, type FooterSocialLink, ForgotPasswordForm, type ForgotPasswordFormProps, HeroHighlight, Highlight, HoverCard, HoverCardDescription, HoverCardTitle, HoverEffect, Input, type InputProps, Label, LumaSpin, MultiSelect, type MultiSelectOption, type MultiSelectProps, NewsletterForm, type NewsletterFormProps, PageShell, type PageShellProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ResetPasswordForm, type ResetPasswordFormProps, SearchBar, type SearchBarProps, SectionCard, type SectionCardProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SignInForm, type SignInFormProps, SiteFooter, type SiteFooterProps, Skeleton, type StatItem, StatsGrid, type StatsGridProps, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, TimePicker, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, easeSmooth, fadeInDown, fadeInUp, hoverLift, hoverScale, pageTransition, springBounce, staggerContainer, staggerItem };