@eqtylab/equality 5.5.3 → 6.0.0-next.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
@@ -121,7 +121,7 @@ declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDial
121
121
  declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
122
122
  /**
123
123
  * **Props**
124
- * - `variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation"` (default `"primary"`)
124
+ * - `variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "field" | "link" | "navigation"` (default `"primary"`)
125
125
  * - `size?: "sm" | "md" | "lg"` (default `"sm"`)
126
126
  * - `prefix?: React.ReactNode`
127
127
  * - `suffix?: React.ReactNode`
@@ -132,7 +132,7 @@ declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<Ale
132
132
  * [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
133
133
  */
134
134
  declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
135
- variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
135
+ variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "field" | "link" | "navigation" | null | undefined;
136
136
  size?: "sm" | "md" | "lg" | null | undefined;
137
137
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
138
138
  prefix?: React$1.ReactNode;
@@ -140,7 +140,7 @@ declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<Ale
140
140
  } & React$1.RefAttributes<HTMLButtonElement>>;
141
141
  /**
142
142
  * **Props**
143
- * - `variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation"` (default `"tertiary"`)
143
+ * - `variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "field" | "link" | "navigation"` (default `"tertiary"`)
144
144
  * - `size?: "sm" | "md" | "lg"` (default `"sm"`)
145
145
  * - `prefix?: React.ReactNode`
146
146
  * - `suffix?: React.ReactNode`
@@ -151,7 +151,7 @@ declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<Ale
151
151
  * [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
152
152
  */
153
153
  declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
154
- variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
154
+ variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "field" | "link" | "navigation" | null | undefined;
155
155
  size?: "sm" | "md" | "lg" | null | undefined;
156
156
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
157
157
  prefix?: React$1.ReactNode;
@@ -452,7 +452,7 @@ declare const BgGradient: ({ theme, placement, }: {
452
452
  }) => react_jsx_runtime.JSX.Element;
453
453
 
454
454
  declare const buttonVariants: (props?: ({
455
- variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
455
+ variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "field" | "link" | "navigation" | null | undefined;
456
456
  size?: "sm" | "md" | "lg" | null | undefined;
457
457
  } & class_variance_authority_types.ClassProp) | undefined) => string;
458
458
  type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
@@ -473,7 +473,7 @@ type ButtonProps = VariantProps<typeof buttonVariants> & ((ButtonBaseProps & {
473
473
  }));
474
474
  /**
475
475
  * **Props**
476
- * - `variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation"` (default `"primary"`)
476
+ * - `variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "field" | "link" | "navigation"` (default `"primary"`)
477
477
  * - `size?: "sm" | "md" | "lg"` (default `"md"`)
478
478
  * - `asChild?: boolean` (default `false`)
479
479
  * - `href?: string`
@@ -506,20 +506,29 @@ interface CardContentHeaderProps {
506
506
  */
507
507
  declare const CardContentHeader: React$1.ForwardRefExoticComponent<CardContentHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
508
508
 
509
+ declare const cardElevationVariants: (props?: ({
510
+ elevation?: string | number | null | undefined;
511
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
512
+ interface CardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardElevationVariants> {
513
+ /** Classes for the hover gradient, which renders on a clickable card that isn't a choice */
514
+ hoverGradientClassName?: string;
515
+ /** Makes the card a choice in a set, such as a radio card: a grey hover with `onClick`, and the current-item fill and a primary border while `true` */
516
+ selected?: boolean;
517
+ /** Tints the border and background with a status colour. State the status in text too, and don't combine it with `selected` */
518
+ variant?: 'default' | 'success' | 'warning' | 'danger';
519
+ }
509
520
  /**
510
521
  * **Props**
511
522
  * - `elevation?: string | number` (default `"raised"`)
512
- * - `hoverGradientClassName?: string`
523
+ * - `hoverGradientClassName?: string` — Classes for the hover gradient, which renders on a clickable card that isn't a choice
524
+ * - `selected?: boolean` — Makes the card a choice in a set, such as a radio card: a grey hover with `onClick`, and the current-item fill and a primary border while `true`
525
+ * - `variant?: "default" | "success" | "warning" | "danger"` (default `"default"`) — Tints the border and background with a status colour. State the status in text too, and don't combine it with `selected`
513
526
  *
514
527
  * Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
515
528
  *
516
529
  * [Card documentation](https://equality.eqtylab.io/components/card)
517
530
  */
518
- declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
519
- hoverGradientClassName?: string;
520
- } & VariantProps<(props?: ({
521
- elevation?: string | number | null | undefined;
522
- } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
531
+ declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>>;
523
532
  /**
524
533
  * Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
525
534
  *
@@ -1386,7 +1395,7 @@ interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
1386
1395
  declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLHeadingElement>>;
1387
1396
 
1388
1397
  declare const iconButtonVariants: (props?: ({
1389
- size?: "sm" | "md" | "lg" | null | undefined;
1398
+ size?: "sm" | "md" | "lg" | "xs" | null | undefined;
1390
1399
  variant?: "primary" | "danger" | null | undefined;
1391
1400
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1392
1401
  interface IconButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'name'>, VariantProps<typeof iconButtonVariants> {
@@ -1399,7 +1408,7 @@ interface IconButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonEl
1399
1408
  /**
1400
1409
  * **Props**
1401
1410
  * - `variant?: "primary" | "danger"` (default `"primary"`)
1402
- * - `size?: "sm" | "md" | "lg"` (default `"sm"`)
1411
+ * - `size?: "xs" | "sm" | "md" | "lg"` (default `"sm"`)
1403
1412
  * - `name: keyof typeof LucideIcons`
1404
1413
  * - `label?: string`
1405
1414
  * - `href?: string`
@@ -2775,12 +2784,19 @@ interface TabsProps {
2775
2784
  */
2776
2785
  declare const Tabs: ({ items, className, tabsListBackground, value, defaultValue, onValueChange, staticRender, }: TabsProps) => react_jsx_runtime.JSX.Element;
2777
2786
 
2787
+ interface TextareaProps extends React$1.ComponentProps<'textarea'> {
2788
+ /** `bare` sits inside a frame that draws its own edge: no border, background, radius or focus ring */
2789
+ variant?: 'default' | 'bare';
2790
+ }
2778
2791
  /**
2779
- * Accepts the standard `HTMLTextAreaElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
2792
+ * **Props**
2793
+ * - `variant?: "default" | "bare"` (default `"default"`) — `bare` sits inside a frame that draws its own edge: no border, background, radius or focus ring
2794
+ *
2795
+ * Also accepts the standard `HTMLTextAreaElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
2780
2796
  *
2781
2797
  * [Textarea documentation](https://equality.eqtylab.io/components/textarea)
2782
2798
  */
2783
- declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
2799
+ declare const Textarea: React$1.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
2784
2800
 
2785
2801
  declare const timelineVariants: (props?: ({
2786
2802
  /** The markers' size: `sm` an icon-only Badge, `md` as tall as a Button */
@@ -3167,4 +3183,4 @@ declare const CODE_BLOCK_ATTRIBUTE = "data-equality-code-block";
3167
3183
  */
3168
3184
  declare const scheduleHighlight: (root?: Node) => Promise<void>;
3169
3185
 
3170
- 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, NavListExpandable, NavListExpandableContent, type NavListExpandableProps, NavListExpandableTrigger, type NavListExpandableTriggerProps, 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, type SelectContentProps, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectSearch, SelectSeparator, SelectTrigger, type SelectTriggerProps, 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, Timeline, TimelineItem, type TimelineItemProps, type TimelineProps, TimelineSection, type TimelineSectionProps, 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 };
3186
+ 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, type CardProps, 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, NavListExpandable, NavListExpandableContent, type NavListExpandableProps, NavListExpandableTrigger, type NavListExpandableTriggerProps, 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, type SelectContentProps, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectSearch, SelectSeparator, SelectTrigger, type SelectTriggerProps, 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 TextareaProps, type Theme, ThemeProvider, Timeline, TimelineItem, type TimelineItemProps, type TimelineProps, TimelineSection, type TimelineSectionProps, 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
@@ -121,7 +121,7 @@ declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDial
121
121
  declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
122
122
  /**
123
123
  * **Props**
124
- * - `variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation"` (default `"primary"`)
124
+ * - `variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "field" | "link" | "navigation"` (default `"primary"`)
125
125
  * - `size?: "sm" | "md" | "lg"` (default `"sm"`)
126
126
  * - `prefix?: React.ReactNode`
127
127
  * - `suffix?: React.ReactNode`
@@ -132,7 +132,7 @@ declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<Ale
132
132
  * [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
133
133
  */
134
134
  declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
135
- variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
135
+ variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "field" | "link" | "navigation" | null | undefined;
136
136
  size?: "sm" | "md" | "lg" | null | undefined;
137
137
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
138
138
  prefix?: React$1.ReactNode;
@@ -140,7 +140,7 @@ declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<Ale
140
140
  } & React$1.RefAttributes<HTMLButtonElement>>;
141
141
  /**
142
142
  * **Props**
143
- * - `variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation"` (default `"tertiary"`)
143
+ * - `variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "field" | "link" | "navigation"` (default `"tertiary"`)
144
144
  * - `size?: "sm" | "md" | "lg"` (default `"sm"`)
145
145
  * - `prefix?: React.ReactNode`
146
146
  * - `suffix?: React.ReactNode`
@@ -151,7 +151,7 @@ declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<Ale
151
151
  * [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
152
152
  */
153
153
  declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
154
- variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
154
+ variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "field" | "link" | "navigation" | null | undefined;
155
155
  size?: "sm" | "md" | "lg" | null | undefined;
156
156
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
157
157
  prefix?: React$1.ReactNode;
@@ -452,7 +452,7 @@ declare const BgGradient: ({ theme, placement, }: {
452
452
  }) => react_jsx_runtime.JSX.Element;
453
453
 
454
454
  declare const buttonVariants: (props?: ({
455
- variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
455
+ variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "field" | "link" | "navigation" | null | undefined;
456
456
  size?: "sm" | "md" | "lg" | null | undefined;
457
457
  } & class_variance_authority_types.ClassProp) | undefined) => string;
458
458
  type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
@@ -473,7 +473,7 @@ type ButtonProps = VariantProps<typeof buttonVariants> & ((ButtonBaseProps & {
473
473
  }));
474
474
  /**
475
475
  * **Props**
476
- * - `variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "link" | "navigation"` (default `"primary"`)
476
+ * - `variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "field" | "link" | "navigation"` (default `"primary"`)
477
477
  * - `size?: "sm" | "md" | "lg"` (default `"md"`)
478
478
  * - `asChild?: boolean` (default `false`)
479
479
  * - `href?: string`
@@ -506,20 +506,29 @@ interface CardContentHeaderProps {
506
506
  */
507
507
  declare const CardContentHeader: React$1.ForwardRefExoticComponent<CardContentHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
508
508
 
509
+ declare const cardElevationVariants: (props?: ({
510
+ elevation?: string | number | null | undefined;
511
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
512
+ interface CardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardElevationVariants> {
513
+ /** Classes for the hover gradient, which renders on a clickable card that isn't a choice */
514
+ hoverGradientClassName?: string;
515
+ /** Makes the card a choice in a set, such as a radio card: a grey hover with `onClick`, and the current-item fill and a primary border while `true` */
516
+ selected?: boolean;
517
+ /** Tints the border and background with a status colour. State the status in text too, and don't combine it with `selected` */
518
+ variant?: 'default' | 'success' | 'warning' | 'danger';
519
+ }
509
520
  /**
510
521
  * **Props**
511
522
  * - `elevation?: string | number` (default `"raised"`)
512
- * - `hoverGradientClassName?: string`
523
+ * - `hoverGradientClassName?: string` — Classes for the hover gradient, which renders on a clickable card that isn't a choice
524
+ * - `selected?: boolean` — Makes the card a choice in a set, such as a radio card: a grey hover with `onClick`, and the current-item fill and a primary border while `true`
525
+ * - `variant?: "default" | "success" | "warning" | "danger"` (default `"default"`) — Tints the border and background with a status colour. State the status in text too, and don't combine it with `selected`
513
526
  *
514
527
  * Also accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
515
528
  *
516
529
  * [Card documentation](https://equality.eqtylab.io/components/card)
517
530
  */
518
- declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
519
- hoverGradientClassName?: string;
520
- } & VariantProps<(props?: ({
521
- elevation?: string | number | null | undefined;
522
- } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
531
+ declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>>;
523
532
  /**
524
533
  * Accepts the standard `HTMLDivElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
525
534
  *
@@ -1386,7 +1395,7 @@ interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
1386
1395
  declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLHeadingElement>>;
1387
1396
 
1388
1397
  declare const iconButtonVariants: (props?: ({
1389
- size?: "sm" | "md" | "lg" | null | undefined;
1398
+ size?: "sm" | "md" | "lg" | "xs" | null | undefined;
1390
1399
  variant?: "primary" | "danger" | null | undefined;
1391
1400
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1392
1401
  interface IconButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'name'>, VariantProps<typeof iconButtonVariants> {
@@ -1399,7 +1408,7 @@ interface IconButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonEl
1399
1408
  /**
1400
1409
  * **Props**
1401
1410
  * - `variant?: "primary" | "danger"` (default `"primary"`)
1402
- * - `size?: "sm" | "md" | "lg"` (default `"sm"`)
1411
+ * - `size?: "xs" | "sm" | "md" | "lg"` (default `"sm"`)
1403
1412
  * - `name: keyof typeof LucideIcons`
1404
1413
  * - `label?: string`
1405
1414
  * - `href?: string`
@@ -2775,12 +2784,19 @@ interface TabsProps {
2775
2784
  */
2776
2785
  declare const Tabs: ({ items, className, tabsListBackground, value, defaultValue, onValueChange, staticRender, }: TabsProps) => react_jsx_runtime.JSX.Element;
2777
2786
 
2787
+ interface TextareaProps extends React$1.ComponentProps<'textarea'> {
2788
+ /** `bare` sits inside a frame that draws its own edge: no border, background, radius or focus ring */
2789
+ variant?: 'default' | 'bare';
2790
+ }
2778
2791
  /**
2779
- * Accepts the standard `HTMLTextAreaElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
2792
+ * **Props**
2793
+ * - `variant?: "default" | "bare"` (default `"default"`) — `bare` sits inside a frame that draws its own edge: no border, background, radius or focus ring
2794
+ *
2795
+ * Also accepts the standard `HTMLTextAreaElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
2780
2796
  *
2781
2797
  * [Textarea documentation](https://equality.eqtylab.io/components/textarea)
2782
2798
  */
2783
- declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
2799
+ declare const Textarea: React$1.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
2784
2800
 
2785
2801
  declare const timelineVariants: (props?: ({
2786
2802
  /** The markers' size: `sm` an icon-only Badge, `md` as tall as a Button */
@@ -3167,4 +3183,4 @@ declare const CODE_BLOCK_ATTRIBUTE = "data-equality-code-block";
3167
3183
  */
3168
3184
  declare const scheduleHighlight: (root?: Node) => Promise<void>;
3169
3185
 
3170
- 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, NavListExpandable, NavListExpandableContent, type NavListExpandableProps, NavListExpandableTrigger, type NavListExpandableTriggerProps, 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, type SelectContentProps, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectSearch, SelectSeparator, SelectTrigger, type SelectTriggerProps, 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, Timeline, TimelineItem, type TimelineItemProps, type TimelineProps, TimelineSection, type TimelineSectionProps, 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 };
3186
+ 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, type CardProps, 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, NavListExpandable, NavListExpandableContent, type NavListExpandableProps, NavListExpandableTrigger, type NavListExpandableTriggerProps, 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, type SelectContentProps, SelectEmpty, SelectGroup, SelectItem, SelectLabel, SelectSearch, SelectSeparator, SelectTrigger, type SelectTriggerProps, 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 TextareaProps, type Theme, ThemeProvider, Timeline, TimelineItem, type TimelineItemProps, type TimelineProps, TimelineSection, type TimelineSectionProps, 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.js CHANGED
@@ -117,6 +117,7 @@ var buttonVariants = cva(styles["button"], {
117
117
  warning: [styles["button--filled"], styles["button--warning"]],
118
118
  secondary: [styles["button--filled"], styles["button--secondary"]],
119
119
  tertiary: styles["button--tertiary"],
120
+ field: styles["button--field"],
120
121
  link: styles["button--link"],
121
122
  navigation: styles["button--navigation"]
122
123
  },
@@ -843,26 +844,40 @@ var CardContentHeader = forwardRef(
843
844
  );
844
845
  CardContentHeader.displayName = "CardContentHeader";
845
846
  var cardElevationVariants = generateElevationVariants(styles12, "card", ELEVATION.RAISED);
846
- var Card = React16.forwardRef(({ className, hoverGradientClassName, elevation = ELEVATION.RAISED, ...props }, ref) => {
847
- const shouldHaveHoverStyle = props.onClick !== void 0;
848
- return /* @__PURE__ */ jsxs(
849
- "div",
850
- {
851
- ref,
852
- className: cn(
853
- styles12.card,
854
- shouldHaveHoverStyle && styles12["card--hover"],
855
- cardElevationVariants({ elevation }),
856
- className
857
- ),
858
- ...props,
859
- children: [
860
- shouldHaveHoverStyle && /* @__PURE__ */ jsx("div", { className: cn(styles12["card-hover-gradient"], hoverGradientClassName) }),
861
- props.children
862
- ]
863
- }
864
- );
865
- });
847
+ var Card = React16.forwardRef(
848
+ ({
849
+ className,
850
+ hoverGradientClassName,
851
+ elevation = ELEVATION.RAISED,
852
+ selected,
853
+ variant = "default",
854
+ ...props
855
+ }, ref) => {
856
+ const isClickable = props.onClick !== void 0;
857
+ const isChoice = selected !== void 0;
858
+ const shouldHaveHoverStyle = isClickable && !isChoice;
859
+ return /* @__PURE__ */ jsxs(
860
+ "div",
861
+ {
862
+ ref,
863
+ className: cn(
864
+ styles12.card,
865
+ shouldHaveHoverStyle && styles12["card--hover"],
866
+ cardElevationVariants({ elevation }),
867
+ isChoice && isClickable && styles12["card--choice"],
868
+ selected && styles12["card--selected"],
869
+ variant !== "default" && styles12[`card--${variant}`],
870
+ className
871
+ ),
872
+ ...props,
873
+ children: [
874
+ shouldHaveHoverStyle && /* @__PURE__ */ jsx("div", { className: cn(styles12["card-hover-gradient"], hoverGradientClassName) }),
875
+ props.children
876
+ ]
877
+ }
878
+ );
879
+ }
880
+ );
866
881
  Card.displayName = "Card";
867
882
  var CardHeader = React16.forwardRef(
868
883
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn(styles12["card-header"], className), ...props })
@@ -900,6 +915,7 @@ Checkbox.displayName = CheckboxPrimitive.Root.displayName;
900
915
  var iconButtonVariants = cva(styles14["icon-btn"], {
901
916
  variants: {
902
917
  size: {
918
+ xs: styles14["size--xs"],
903
919
  sm: styles14["size--sm"],
904
920
  md: styles14["size--md"],
905
921
  lg: styles14["size--lg"]
@@ -915,6 +931,7 @@ var iconButtonVariants = cva(styles14["icon-btn"], {
915
931
  }
916
932
  });
917
933
  var iconSizeMap = {
934
+ xs: 14,
918
935
  sm: 16,
919
936
  md: 22,
920
937
  lg: 26
@@ -5084,8 +5101,19 @@ var Tabs = ({
5084
5101
  );
5085
5102
  };
5086
5103
  var Textarea = React16.forwardRef(
5087
- ({ className, ...props }, ref) => {
5088
- return /* @__PURE__ */ jsx("textarea", { className: cn(styles62["textarea"], className), ref, ...props });
5104
+ ({ className, variant = "default", ...props }, ref) => {
5105
+ return /* @__PURE__ */ jsx(
5106
+ "textarea",
5107
+ {
5108
+ className: cn(
5109
+ styles62["textarea"],
5110
+ variant === "bare" && styles62["textarea--bare"],
5111
+ className
5112
+ ),
5113
+ ref,
5114
+ ...props
5115
+ }
5116
+ );
5089
5117
  }
5090
5118
  );
5091
5119
  Textarea.displayName = "Textarea";