@eqtylab/equality 5.4.4 → 5.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/CHANGELOG.md +38 -0
- package/dist/command.module.module.css.module.css +7 -2
- package/dist/dropdown-menu.module.module.css.module.css +7 -2
- package/dist/index.cjs +87 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +66 -4
- package/dist/index.d.ts +66 -4
- package/dist/index.js +84 -28
- package/dist/index.js.map +1 -1
- package/dist/input.module.module.css.module.css +14 -4
- package/dist/select.module.module.css.module.css +7 -2
- package/dist/sort-button.module.module.css.module.css +82 -0
- package/dist/table-components.module.module.css.module.css +3 -0
- package/dist/theme-utilities.css +1 -1
- package/dist/theme.module.module.css.module.css +7 -2
- package/dist/timeline.module.module.css.module.css +118 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -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" | "
|
|
135
|
+
variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "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;
|
|
@@ -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" | "
|
|
154
|
+
variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "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" | "
|
|
455
|
+
variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "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'>;
|
|
@@ -2771,6 +2771,68 @@ declare const Tabs: ({ items, className, tabsListBackground, value, defaultValue
|
|
|
2771
2771
|
*/
|
|
2772
2772
|
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
2773
2773
|
|
|
2774
|
+
declare const timelineVariants: (props?: ({
|
|
2775
|
+
/** The markers' size: `sm` an icon-only Badge, `md` as tall as a Button */
|
|
2776
|
+
size?: "sm" | "md" | null | undefined;
|
|
2777
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2778
|
+
declare const timelineSectionVariants: (props?: ({
|
|
2779
|
+
/** The status the section's marker and connector report */
|
|
2780
|
+
variant?: "primary" | "danger" | "success" | "warning" | "neutral" | null | undefined;
|
|
2781
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2782
|
+
interface TimelineProps extends React$1.OlHTMLAttributes<HTMLOListElement>, VariantProps<typeof timelineVariants> {
|
|
2783
|
+
/** Names the timeline for assistive technology, such as "Control timeline". Point `aria-labelledby` at a visible heading instead when there is one */
|
|
2784
|
+
'aria-label'?: string;
|
|
2785
|
+
/** The `TimelineSection`s, in the order they happened */
|
|
2786
|
+
children: React$1.ReactNode;
|
|
2787
|
+
}
|
|
2788
|
+
/**
|
|
2789
|
+
* **Props**
|
|
2790
|
+
* - `size?: "sm" | "md"` (default `"md"`) — The markers' size: `sm` an icon-only Badge, `md` as tall as a Button
|
|
2791
|
+
* - `"aria-label"?: string` — Names the timeline for assistive technology, such as "Control timeline". Point `aria-labelledby` at a visible heading instead when there is one
|
|
2792
|
+
* - `children: React.ReactNode` — The `TimelineSection`s, in the order they happened
|
|
2793
|
+
*
|
|
2794
|
+
* Also accepts the standard `HTMLOListElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2795
|
+
*
|
|
2796
|
+
* [Timeline documentation](https://equality.eqtylab.io/components/timeline)
|
|
2797
|
+
*/
|
|
2798
|
+
declare const Timeline: React$1.ForwardRefExoticComponent<TimelineProps & React$1.RefAttributes<HTMLOListElement>>;
|
|
2799
|
+
interface TimelineSectionProps extends React$1.LiHTMLAttributes<HTMLLIElement>, VariantProps<typeof timelineSectionVariants> {
|
|
2800
|
+
/** Names the section's entries for assistive technology, such as "Events while in review". The marker is decorative, so leave it out only when every entry already says the state */
|
|
2801
|
+
label?: string;
|
|
2802
|
+
/** A Lucide icon element, such as `<Clock />`, drawn in the marker. The timeline sizes it. `neutral` and `primary` sections need one */
|
|
2803
|
+
icon?: React$1.ReactElement;
|
|
2804
|
+
/** The section's `TimelineItem`s */
|
|
2805
|
+
children: React$1.ReactNode;
|
|
2806
|
+
}
|
|
2807
|
+
/**
|
|
2808
|
+
* **Props**
|
|
2809
|
+
* - `variant?: "neutral" | "primary" | "success" | "warning" | "danger"` (default `"neutral"`) — The status the section's marker and connector report
|
|
2810
|
+
* - `label?: string` — Names the section's entries for assistive technology, such as "Events while in review". The marker is decorative, so leave it out only when every entry already says the state
|
|
2811
|
+
* - `icon?: React.ReactElement` — A Lucide icon element, such as `<Clock />`, drawn in the marker. The timeline sizes it. `neutral` and `primary` sections need one
|
|
2812
|
+
* - `children: React.ReactNode` — The section's `TimelineItem`s
|
|
2813
|
+
*
|
|
2814
|
+
* Also accepts the standard `HTMLLIElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2815
|
+
*
|
|
2816
|
+
* [Timeline documentation](https://equality.eqtylab.io/components/timeline)
|
|
2817
|
+
*/
|
|
2818
|
+
declare const TimelineSection: React$1.ForwardRefExoticComponent<TimelineSectionProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
2819
|
+
interface TimelineItemProps extends React$1.LiHTMLAttributes<HTMLLIElement> {
|
|
2820
|
+
/** Makes the entry a link's target, such as `#event-12` */
|
|
2821
|
+
id?: string;
|
|
2822
|
+
/** The entry: a card, a line of text, anything */
|
|
2823
|
+
children: React$1.ReactNode;
|
|
2824
|
+
}
|
|
2825
|
+
/**
|
|
2826
|
+
* **Props**
|
|
2827
|
+
* - `id?: string` — Makes the entry a link's target, such as `#event-12`
|
|
2828
|
+
* - `children: React.ReactNode` — The entry: a card, a line of text, anything
|
|
2829
|
+
*
|
|
2830
|
+
* Also accepts the standard `HTMLLIElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2831
|
+
*
|
|
2832
|
+
* [Timeline documentation](https://equality.eqtylab.io/components/timeline)
|
|
2833
|
+
*/
|
|
2834
|
+
declare const TimelineItem: React$1.ForwardRefExoticComponent<TimelineItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
2835
|
+
|
|
2774
2836
|
/**
|
|
2775
2837
|
* **Props**
|
|
2776
2838
|
* - `children?: ReactNode`
|
|
@@ -3094,4 +3156,4 @@ declare const CODE_BLOCK_ATTRIBUTE = "data-equality-code-block";
|
|
|
3094
3156
|
*/
|
|
3095
3157
|
declare const scheduleHighlight: (root?: Node) => Promise<void>;
|
|
3096
3158
|
|
|
3097
|
-
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, 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 };
|
|
3159
|
+
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, 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, 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
|
@@ -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" | "
|
|
135
|
+
variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "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;
|
|
@@ -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" | "
|
|
154
|
+
variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "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" | "
|
|
455
|
+
variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "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'>;
|
|
@@ -2771,6 +2771,68 @@ declare const Tabs: ({ items, className, tabsListBackground, value, defaultValue
|
|
|
2771
2771
|
*/
|
|
2772
2772
|
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
2773
2773
|
|
|
2774
|
+
declare const timelineVariants: (props?: ({
|
|
2775
|
+
/** The markers' size: `sm` an icon-only Badge, `md` as tall as a Button */
|
|
2776
|
+
size?: "sm" | "md" | null | undefined;
|
|
2777
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2778
|
+
declare const timelineSectionVariants: (props?: ({
|
|
2779
|
+
/** The status the section's marker and connector report */
|
|
2780
|
+
variant?: "primary" | "danger" | "success" | "warning" | "neutral" | null | undefined;
|
|
2781
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2782
|
+
interface TimelineProps extends React$1.OlHTMLAttributes<HTMLOListElement>, VariantProps<typeof timelineVariants> {
|
|
2783
|
+
/** Names the timeline for assistive technology, such as "Control timeline". Point `aria-labelledby` at a visible heading instead when there is one */
|
|
2784
|
+
'aria-label'?: string;
|
|
2785
|
+
/** The `TimelineSection`s, in the order they happened */
|
|
2786
|
+
children: React$1.ReactNode;
|
|
2787
|
+
}
|
|
2788
|
+
/**
|
|
2789
|
+
* **Props**
|
|
2790
|
+
* - `size?: "sm" | "md"` (default `"md"`) — The markers' size: `sm` an icon-only Badge, `md` as tall as a Button
|
|
2791
|
+
* - `"aria-label"?: string` — Names the timeline for assistive technology, such as "Control timeline". Point `aria-labelledby` at a visible heading instead when there is one
|
|
2792
|
+
* - `children: React.ReactNode` — The `TimelineSection`s, in the order they happened
|
|
2793
|
+
*
|
|
2794
|
+
* Also accepts the standard `HTMLOListElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2795
|
+
*
|
|
2796
|
+
* [Timeline documentation](https://equality.eqtylab.io/components/timeline)
|
|
2797
|
+
*/
|
|
2798
|
+
declare const Timeline: React$1.ForwardRefExoticComponent<TimelineProps & React$1.RefAttributes<HTMLOListElement>>;
|
|
2799
|
+
interface TimelineSectionProps extends React$1.LiHTMLAttributes<HTMLLIElement>, VariantProps<typeof timelineSectionVariants> {
|
|
2800
|
+
/** Names the section's entries for assistive technology, such as "Events while in review". The marker is decorative, so leave it out only when every entry already says the state */
|
|
2801
|
+
label?: string;
|
|
2802
|
+
/** A Lucide icon element, such as `<Clock />`, drawn in the marker. The timeline sizes it. `neutral` and `primary` sections need one */
|
|
2803
|
+
icon?: React$1.ReactElement;
|
|
2804
|
+
/** The section's `TimelineItem`s */
|
|
2805
|
+
children: React$1.ReactNode;
|
|
2806
|
+
}
|
|
2807
|
+
/**
|
|
2808
|
+
* **Props**
|
|
2809
|
+
* - `variant?: "neutral" | "primary" | "success" | "warning" | "danger"` (default `"neutral"`) — The status the section's marker and connector report
|
|
2810
|
+
* - `label?: string` — Names the section's entries for assistive technology, such as "Events while in review". The marker is decorative, so leave it out only when every entry already says the state
|
|
2811
|
+
* - `icon?: React.ReactElement` — A Lucide icon element, such as `<Clock />`, drawn in the marker. The timeline sizes it. `neutral` and `primary` sections need one
|
|
2812
|
+
* - `children: React.ReactNode` — The section's `TimelineItem`s
|
|
2813
|
+
*
|
|
2814
|
+
* Also accepts the standard `HTMLLIElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2815
|
+
*
|
|
2816
|
+
* [Timeline documentation](https://equality.eqtylab.io/components/timeline)
|
|
2817
|
+
*/
|
|
2818
|
+
declare const TimelineSection: React$1.ForwardRefExoticComponent<TimelineSectionProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
2819
|
+
interface TimelineItemProps extends React$1.LiHTMLAttributes<HTMLLIElement> {
|
|
2820
|
+
/** Makes the entry a link's target, such as `#event-12` */
|
|
2821
|
+
id?: string;
|
|
2822
|
+
/** The entry: a card, a line of text, anything */
|
|
2823
|
+
children: React$1.ReactNode;
|
|
2824
|
+
}
|
|
2825
|
+
/**
|
|
2826
|
+
* **Props**
|
|
2827
|
+
* - `id?: string` — Makes the entry a link's target, such as `#event-12`
|
|
2828
|
+
* - `children: React.ReactNode` — The entry: a card, a line of text, anything
|
|
2829
|
+
*
|
|
2830
|
+
* Also accepts the standard `HTMLLIElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2831
|
+
*
|
|
2832
|
+
* [Timeline documentation](https://equality.eqtylab.io/components/timeline)
|
|
2833
|
+
*/
|
|
2834
|
+
declare const TimelineItem: React$1.ForwardRefExoticComponent<TimelineItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
2835
|
+
|
|
2774
2836
|
/**
|
|
2775
2837
|
* **Props**
|
|
2776
2838
|
* - `children?: ReactNode`
|
|
@@ -3094,4 +3156,4 @@ declare const CODE_BLOCK_ATTRIBUTE = "data-equality-code-block";
|
|
|
3094
3156
|
*/
|
|
3095
3157
|
declare const scheduleHighlight: (root?: Node) => Promise<void>;
|
|
3096
3158
|
|
|
3097
|
-
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, 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 };
|
|
3159
|
+
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, 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, 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
|
@@ -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, TriangleAlert, ChevronLeft, ArrowUpRight, ChevronDown, ChevronsUpDown, Circle, X, SearchIcon, CalendarDays, AlertOctagon, Home, ChevronsLeft, ChevronsRight, ArrowUp, ArrowDown, ArrowUpDown } from 'lucide-react';
|
|
13
|
+
import { Check, ChevronRight, Search, TriangleAlert, ChevronLeft, ArrowUpRight, ChevronDown, ChevronsUpDown, Circle, X, OctagonAlert as OctagonAlert$1, SearchIcon, CalendarDays, 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';
|
|
@@ -86,11 +86,12 @@ import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
|
86
86
|
import styles60 from './tabs-components.module.module.css.module.css';
|
|
87
87
|
import styles61 from './tabs.module.module.css.module.css';
|
|
88
88
|
import styles62 from './textarea.module.module.css.module.css';
|
|
89
|
+
import styles63 from './timeline.module.module.css.module.css';
|
|
89
90
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import
|
|
93
|
-
import
|
|
91
|
+
import styles64 from './toast-components.module.module.css.module.css';
|
|
92
|
+
import styles65 from './toast.module.module.css.module.css';
|
|
93
|
+
import styles66 from './truncated-description.module.module.css.module.css';
|
|
94
|
+
import styles67 from './theme.module.module.css.module.css';
|
|
94
95
|
|
|
95
96
|
// src/components/alert-dialog/alert-dialog.tsx
|
|
96
97
|
var PORTAL_ROOT_ID = "equality-theme-provider-root-portal";
|
|
@@ -250,12 +251,12 @@ var ELEVATION = {
|
|
|
250
251
|
RAISED: "raised",
|
|
251
252
|
OVERLAY: "overlay"
|
|
252
253
|
};
|
|
253
|
-
var generateElevationVariants = (
|
|
254
|
+
var generateElevationVariants = (styles68, baseClassName, defaultElevation) => {
|
|
254
255
|
const classNames = {};
|
|
255
256
|
Object.values(ELEVATION).forEach((elevation) => {
|
|
256
|
-
classNames[elevation] =
|
|
257
|
+
classNames[elevation] = styles68[`${baseClassName}--${elevation}`];
|
|
257
258
|
});
|
|
258
|
-
const variants = cva(
|
|
259
|
+
const variants = cva(styles68[baseClassName], {
|
|
259
260
|
variants: {
|
|
260
261
|
elevation: classNames
|
|
261
262
|
},
|
|
@@ -947,6 +948,7 @@ var IconButton = React16.forwardRef(
|
|
|
947
948
|
target,
|
|
948
949
|
download,
|
|
949
950
|
"aria-label": label,
|
|
951
|
+
"data-icon-button": size || "sm",
|
|
950
952
|
rel: target === "_blank" ? "noopener noreferrer" : void 0,
|
|
951
953
|
className: cn(iconButtonVariants({ size, variant }), className),
|
|
952
954
|
...props,
|
|
@@ -960,6 +962,7 @@ var IconButton = React16.forwardRef(
|
|
|
960
962
|
ref,
|
|
961
963
|
type: "button",
|
|
962
964
|
"aria-label": label,
|
|
965
|
+
"data-icon-button": size || "sm",
|
|
963
966
|
disabled,
|
|
964
967
|
className: cn(iconButtonVariants({ size, variant }), className),
|
|
965
968
|
...props,
|
|
@@ -1833,7 +1836,7 @@ function useFilterableItem(state, textValue, children, { group, persistent = fal
|
|
|
1833
1836
|
return matches;
|
|
1834
1837
|
}
|
|
1835
1838
|
function useSearchInput(state, alwaysVisible, forwardedRef) {
|
|
1836
|
-
const { setEnabled, reveal, visible, focusSignal } = state;
|
|
1839
|
+
const { setEnabled, reveal, visible, focusSignal, interactedSinceOpen } = state;
|
|
1837
1840
|
const inputRef = React16.useRef(null);
|
|
1838
1841
|
const ref = React16.useCallback(
|
|
1839
1842
|
(node) => assignRefs(node, inputRef, forwardedRef),
|
|
@@ -1847,9 +1850,10 @@ function useSearchInput(state, alwaysVisible, forwardedRef) {
|
|
|
1847
1850
|
if (!visible) return;
|
|
1848
1851
|
const input = inputRef.current;
|
|
1849
1852
|
if (!input) return;
|
|
1853
|
+
if (!interactedSinceOpen() && hasCoarsePointer()) return;
|
|
1850
1854
|
input.focus();
|
|
1851
1855
|
input.setSelectionRange(input.value.length, input.value.length);
|
|
1852
|
-
}, [visible, focusSignal]);
|
|
1856
|
+
}, [visible, focusSignal, interactedSinceOpen]);
|
|
1853
1857
|
React16.useEffect(() => {
|
|
1854
1858
|
if (alwaysVisible && !visible) reveal("");
|
|
1855
1859
|
}, [alwaysVisible, visible, reveal]);
|
|
@@ -1902,6 +1906,7 @@ function handleListKeyDown(state, event, { searchSelector, itemSelector }) {
|
|
|
1902
1906
|
state.requestFocus();
|
|
1903
1907
|
}
|
|
1904
1908
|
}
|
|
1909
|
+
var hasCoarsePointer = () => window.matchMedia?.("(pointer: coarse)").matches ?? false;
|
|
1905
1910
|
var isPrintableKey = (event) => event.key.length === 1 && !event.metaKey && !event.ctrlKey && !event.altKey && /\S/.test(event.key);
|
|
1906
1911
|
function assignRefs(node, ...refs) {
|
|
1907
1912
|
refs.forEach((ref) => {
|
|
@@ -2311,7 +2316,8 @@ var FilterDropdown = ({
|
|
|
2311
2316
|
const handleClearAll = (event) => {
|
|
2312
2317
|
event.preventDefault();
|
|
2313
2318
|
const menu = event.currentTarget.closest('[role="menu"]');
|
|
2314
|
-
(menu?.querySelector("[data-dropdown-search]")
|
|
2319
|
+
const search = hasCoarsePointer() ? null : menu?.querySelector("[data-dropdown-search]");
|
|
2320
|
+
(search ?? menu)?.focus();
|
|
2315
2321
|
onClearAll();
|
|
2316
2322
|
};
|
|
2317
2323
|
const clearAll = (className) => (
|
|
@@ -5061,24 +5067,74 @@ var Textarea = React16.forwardRef(
|
|
|
5061
5067
|
}
|
|
5062
5068
|
);
|
|
5063
5069
|
Textarea.displayName = "Textarea";
|
|
5070
|
+
var timelineVariants = cva(styles63["timeline"], {
|
|
5071
|
+
variants: {
|
|
5072
|
+
/** The markers' size: `sm` an icon-only Badge, `md` as tall as a Button */
|
|
5073
|
+
size: {
|
|
5074
|
+
sm: styles63["timeline--sm"],
|
|
5075
|
+
md: styles63["timeline--md"]
|
|
5076
|
+
}
|
|
5077
|
+
},
|
|
5078
|
+
defaultVariants: {
|
|
5079
|
+
size: "md"
|
|
5080
|
+
}
|
|
5081
|
+
});
|
|
5082
|
+
var timelineSectionVariants = cva(styles63["timeline-section"], {
|
|
5083
|
+
variants: {
|
|
5084
|
+
/** The status the section's marker and connector report */
|
|
5085
|
+
variant: {
|
|
5086
|
+
neutral: "",
|
|
5087
|
+
primary: styles63["timeline-section--primary"],
|
|
5088
|
+
success: styles63["timeline-section--success"],
|
|
5089
|
+
warning: styles63["timeline-section--warning"],
|
|
5090
|
+
danger: styles63["timeline-section--danger"]
|
|
5091
|
+
}
|
|
5092
|
+
},
|
|
5093
|
+
defaultVariants: {
|
|
5094
|
+
variant: "neutral"
|
|
5095
|
+
}
|
|
5096
|
+
});
|
|
5097
|
+
var Timeline = React16.forwardRef(
|
|
5098
|
+
({ className, size, children, ...props }, ref) => /* @__PURE__ */ jsx("ol", { ref, className: cn(timelineVariants({ size }), className), ...props, children })
|
|
5099
|
+
);
|
|
5100
|
+
Timeline.displayName = "Timeline";
|
|
5101
|
+
var defaultVariantIcons3 = {
|
|
5102
|
+
success: /* @__PURE__ */ jsx(Check, {}),
|
|
5103
|
+
warning: /* @__PURE__ */ jsx(OctagonAlert$1, {}),
|
|
5104
|
+
danger: /* @__PURE__ */ jsx(TriangleAlert, {})
|
|
5105
|
+
};
|
|
5106
|
+
var TimelineSection = React16.forwardRef(
|
|
5107
|
+
({ className, variant, label, icon, children, ...props }, ref) => /* @__PURE__ */ jsxs("li", { ref, className: cn(timelineSectionVariants({ variant }), className), ...props, children: [
|
|
5108
|
+
/* @__PURE__ */ jsxs("div", { className: styles63["timeline-rail"], "aria-hidden": "true", children: [
|
|
5109
|
+
/* @__PURE__ */ jsx("div", { className: styles63["timeline-connector"] }),
|
|
5110
|
+
/* @__PURE__ */ jsx("div", { className: styles63["timeline-marker"], children: icon ?? (variant ? defaultVariantIcons3[variant] : void 0) })
|
|
5111
|
+
] }),
|
|
5112
|
+
/* @__PURE__ */ jsx("ol", { className: styles63["timeline-items"], "aria-label": label, children })
|
|
5113
|
+
] })
|
|
5114
|
+
);
|
|
5115
|
+
TimelineSection.displayName = "TimelineSection";
|
|
5116
|
+
var TimelineItem = React16.forwardRef(
|
|
5117
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn(styles63["timeline-item"], className), ...props })
|
|
5118
|
+
);
|
|
5119
|
+
TimelineItem.displayName = "TimelineItem";
|
|
5064
5120
|
var XIcon2 = X;
|
|
5065
5121
|
var ToastProvider = ToastPrimitives.Provider;
|
|
5066
5122
|
var ToastViewport = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5067
5123
|
ToastPrimitives.Viewport,
|
|
5068
5124
|
{
|
|
5069
5125
|
ref,
|
|
5070
|
-
className: cn(
|
|
5126
|
+
className: cn(styles64["toast-viewport"], className),
|
|
5071
5127
|
...props
|
|
5072
5128
|
}
|
|
5073
5129
|
));
|
|
5074
5130
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
5075
|
-
var toastVariants = cva(
|
|
5131
|
+
var toastVariants = cva(styles64["toast"], {
|
|
5076
5132
|
variants: {
|
|
5077
5133
|
variant: {
|
|
5078
|
-
default:
|
|
5079
|
-
danger:
|
|
5080
|
-
warning:
|
|
5081
|
-
success:
|
|
5134
|
+
default: styles64["toast--default"],
|
|
5135
|
+
danger: styles64["toast--danger"],
|
|
5136
|
+
warning: styles64["toast--warning"],
|
|
5137
|
+
success: styles64["toast--success"]
|
|
5082
5138
|
}
|
|
5083
5139
|
},
|
|
5084
5140
|
defaultVariants: {
|
|
@@ -5103,7 +5159,7 @@ var ToastAction = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
5103
5159
|
ref,
|
|
5104
5160
|
className: cn(
|
|
5105
5161
|
buttonVariants({ variant: "secondary", size: "sm" }),
|
|
5106
|
-
|
|
5162
|
+
styles64["toast-action"],
|
|
5107
5163
|
className
|
|
5108
5164
|
),
|
|
5109
5165
|
...props
|
|
@@ -5115,19 +5171,19 @@ var ToastClose = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
5115
5171
|
{
|
|
5116
5172
|
ref,
|
|
5117
5173
|
"aria-label": "Close",
|
|
5118
|
-
className: cn(
|
|
5174
|
+
className: cn(styles64["toast-close"], className),
|
|
5119
5175
|
...props,
|
|
5120
|
-
children: /* @__PURE__ */ jsx(XIcon2, { className:
|
|
5176
|
+
children: /* @__PURE__ */ jsx(XIcon2, { className: styles64["toast-close-icon"] })
|
|
5121
5177
|
}
|
|
5122
5178
|
));
|
|
5123
5179
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
5124
|
-
var ToastTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Title, { ref, className: cn(
|
|
5180
|
+
var ToastTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Title, { ref, className: cn(styles64["toast-title"], className), ...props }));
|
|
5125
5181
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
5126
5182
|
var ToastDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5127
5183
|
ToastPrimitives.Description,
|
|
5128
5184
|
{
|
|
5129
5185
|
ref,
|
|
5130
|
-
className: cn(
|
|
5186
|
+
className: cn(styles64["toast-description"], className),
|
|
5131
5187
|
...props
|
|
5132
5188
|
}
|
|
5133
5189
|
));
|
|
@@ -5262,14 +5318,14 @@ var Toast = ({ toast: toast2 }) => {
|
|
|
5262
5318
|
};
|
|
5263
5319
|
const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
|
|
5264
5320
|
return /* @__PURE__ */ jsxs(ToastContainer, { ...props, variant, children: [
|
|
5265
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
5266
|
-
title && /* @__PURE__ */ jsxs("div", { className:
|
|
5321
|
+
/* @__PURE__ */ jsxs("div", { className: styles65["toast-copy"], children: [
|
|
5322
|
+
title && /* @__PURE__ */ jsxs("div", { className: styles65["toast-title-container"], children: [
|
|
5267
5323
|
displayIcon && /* @__PURE__ */ jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
|
|
5268
5324
|
/* @__PURE__ */ jsx(ToastTitle, { children: title })
|
|
5269
5325
|
] }),
|
|
5270
5326
|
description && /* @__PURE__ */ jsx(ToastDescription, { children: description })
|
|
5271
5327
|
] }),
|
|
5272
|
-
action && /* @__PURE__ */ jsx("div", { className:
|
|
5328
|
+
action && /* @__PURE__ */ jsx("div", { className: styles65["toast-action"], children: action }),
|
|
5273
5329
|
/* @__PURE__ */ jsx(ToastClose, {})
|
|
5274
5330
|
] });
|
|
5275
5331
|
};
|
|
@@ -5304,7 +5360,7 @@ var TruncatedDescription = ({
|
|
|
5304
5360
|
e.stopPropagation();
|
|
5305
5361
|
setExpanded(!expanded);
|
|
5306
5362
|
};
|
|
5307
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
5363
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles66["truncated-description"], className), children: [
|
|
5308
5364
|
/* @__PURE__ */ jsx("div", { dangerouslySetInnerHTML: { __html: displayDescription } }),
|
|
5309
5365
|
isLongDescription && /* @__PURE__ */ jsx(Button, { variant: "link", size: "sm", onClick: handleToggle, children: expanded ? "Show less" : "Show more" })
|
|
5310
5366
|
] });
|
|
@@ -5325,7 +5381,7 @@ var ThemeProvider = ({ customVars, portalContainer, children }) => {
|
|
|
5325
5381
|
{
|
|
5326
5382
|
id: "equality-theme-provider-root",
|
|
5327
5383
|
"data-equality-root": true,
|
|
5328
|
-
className:
|
|
5384
|
+
className: styles67.root,
|
|
5329
5385
|
style: customVars,
|
|
5330
5386
|
children: [
|
|
5331
5387
|
children,
|
|
@@ -5451,6 +5507,6 @@ var useTheme = () => {
|
|
|
5451
5507
|
return [theme, setTheme];
|
|
5452
5508
|
};
|
|
5453
5509
|
|
|
5454
|
-
export { Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, Banner, 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, 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, LoadingOverlay, MetricCard, MotionCollapsibleContent, NavDrill, NavDrillLevel, NavList, NavListExpandable, NavListExpandableContent, NavListExpandableTrigger, NavListGroup, NavListItem, NavListSeparator, NavPanel, NavRail, NavRailItem, NavSwitcher, NotFound, PORTAL_ROOT_ID, Pagination, PanelLabel, Popover, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, ProgressIndicator, ProgressIndicatorStep, RadialGraph, RadioDropdown, RadioGroup2 as RadioGroup, RadioGroupItem, ResourceBadge, 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, blockClosedTypeahead, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };
|
|
5510
|
+
export { Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Badge, Banner, 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, 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, LoadingOverlay, MetricCard, MotionCollapsibleContent, NavDrill, NavDrillLevel, NavList, NavListExpandable, NavListExpandableContent, NavListExpandableTrigger, NavListGroup, NavListItem, NavListSeparator, NavPanel, NavRail, NavRailItem, NavSwitcher, NotFound, PORTAL_ROOT_ID, Pagination, PanelLabel, Popover, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, ProgressIndicator, ProgressIndicatorStep, RadialGraph, RadioDropdown, RadioGroup2 as RadioGroup, RadioGroupItem, ResourceBadge, 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, Timeline, TimelineItem, TimelineSection, Toast, ToastAction, ToastClose, ToastContainer, ToastDescription, ToastProvider, ToastRoot, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TruncatedDescription, badgeVariants, blockClosedTypeahead, buttonVariants, reducer, scheduleHighlight, toast, useDropdownMenuSearchQuery, useFormField, usePortalContainer, useSelectSearchQuery, useTheme, useToast };
|
|
5455
5511
|
//# sourceMappingURL=index.js.map
|
|
5456
5512
|
//# sourceMappingURL=index.js.map
|