@eqtylab/equality 5.4.5 → 5.5.1
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 +31 -0
- package/dist/index.cjs +105 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +78 -5
- package/dist/index.d.ts +78 -5
- package/dist/index.js +102 -29
- package/dist/index.js.map +1 -1
- package/dist/select.module.module.css.module.css +26 -0
- package/dist/timeline.module.module.css.module.css +118 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2265,18 +2265,31 @@ declare const SelectGroup: React$1.ForwardRefExoticComponent<Omit<SelectPrimitiv
|
|
|
2265
2265
|
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2266
2266
|
*/
|
|
2267
2267
|
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2268
|
+
interface SelectTriggerProps extends React$1.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {
|
|
2269
|
+
/** `inline` sits in running text or a heading: no border, background, padding or height, in the surrounding font */
|
|
2270
|
+
variant?: 'default' | 'inline';
|
|
2271
|
+
}
|
|
2268
2272
|
/**
|
|
2269
2273
|
* **Props**
|
|
2274
|
+
* - `variant?: "default" | "inline"` (default `"default"`) — `inline` sits in running text or a heading: no border, background, padding or height, in the surrounding font
|
|
2270
2275
|
* - `asChild?: boolean`
|
|
2271
2276
|
*
|
|
2272
2277
|
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2273
2278
|
*
|
|
2274
2279
|
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2275
2280
|
*/
|
|
2276
|
-
declare const SelectTrigger: React$1.ForwardRefExoticComponent<
|
|
2281
|
+
declare const SelectTrigger: React$1.ForwardRefExoticComponent<SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2282
|
+
declare const selectContentElevationVariants: (props?: ({
|
|
2283
|
+
elevation?: string | number | null | undefined;
|
|
2284
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2285
|
+
interface SelectContentProps extends React$1.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>, VariantProps<typeof selectContentElevationVariants> {
|
|
2286
|
+
/** Makes the list exactly as wide as its trigger, wrapping longer options, rather than at least as wide */
|
|
2287
|
+
matchTriggerWidth?: boolean;
|
|
2288
|
+
}
|
|
2277
2289
|
/**
|
|
2278
2290
|
* **Props**
|
|
2279
2291
|
* - `elevation?: string | number` (default `"overlay"`)
|
|
2292
|
+
* - `matchTriggerWidth?: boolean` (default `false`) — Makes the list exactly as wide as its trigger, wrapping longer options, rather than at least as wide
|
|
2280
2293
|
* - `asChild?: boolean`
|
|
2281
2294
|
* - `onEscapeKeyDown?: (event: KeyboardEvent) => void` — Event handler called when the escape key is down.
|
|
2282
2295
|
* Can be prevented.
|
|
@@ -2301,9 +2314,7 @@ declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimit
|
|
|
2301
2314
|
*
|
|
2302
2315
|
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2303
2316
|
*/
|
|
2304
|
-
declare const SelectContent: React$1.ForwardRefExoticComponent<
|
|
2305
|
-
elevation?: string | number | null | undefined;
|
|
2306
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
2317
|
+
declare const SelectContent: React$1.ForwardRefExoticComponent<SelectContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2307
2318
|
/**
|
|
2308
2319
|
* **Props**
|
|
2309
2320
|
* - `icon?: React.ReactNode`
|
|
@@ -2771,6 +2782,68 @@ declare const Tabs: ({ items, className, tabsListBackground, value, defaultValue
|
|
|
2771
2782
|
*/
|
|
2772
2783
|
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
2773
2784
|
|
|
2785
|
+
declare const timelineVariants: (props?: ({
|
|
2786
|
+
/** The markers' size: `sm` an icon-only Badge, `md` as tall as a Button */
|
|
2787
|
+
size?: "sm" | "md" | null | undefined;
|
|
2788
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2789
|
+
declare const timelineSectionVariants: (props?: ({
|
|
2790
|
+
/** The status the section's marker and connector report */
|
|
2791
|
+
variant?: "primary" | "danger" | "success" | "warning" | "neutral" | null | undefined;
|
|
2792
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2793
|
+
interface TimelineProps extends React$1.OlHTMLAttributes<HTMLOListElement>, VariantProps<typeof timelineVariants> {
|
|
2794
|
+
/** Names the timeline for assistive technology, such as "Control timeline". Point `aria-labelledby` at a visible heading instead when there is one */
|
|
2795
|
+
'aria-label'?: string;
|
|
2796
|
+
/** The `TimelineSection`s, in the order they happened */
|
|
2797
|
+
children: React$1.ReactNode;
|
|
2798
|
+
}
|
|
2799
|
+
/**
|
|
2800
|
+
* **Props**
|
|
2801
|
+
* - `size?: "sm" | "md"` (default `"md"`) — The markers' size: `sm` an icon-only Badge, `md` as tall as a Button
|
|
2802
|
+
* - `"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
|
|
2803
|
+
* - `children: React.ReactNode` — The `TimelineSection`s, in the order they happened
|
|
2804
|
+
*
|
|
2805
|
+
* Also accepts the standard `HTMLOListElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2806
|
+
*
|
|
2807
|
+
* [Timeline documentation](https://equality.eqtylab.io/components/timeline)
|
|
2808
|
+
*/
|
|
2809
|
+
declare const Timeline: React$1.ForwardRefExoticComponent<TimelineProps & React$1.RefAttributes<HTMLOListElement>>;
|
|
2810
|
+
interface TimelineSectionProps extends React$1.LiHTMLAttributes<HTMLLIElement>, VariantProps<typeof timelineSectionVariants> {
|
|
2811
|
+
/** 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 */
|
|
2812
|
+
label?: string;
|
|
2813
|
+
/** A Lucide icon element, such as `<Clock />`, drawn in the marker. The timeline sizes it. `neutral` and `primary` sections need one */
|
|
2814
|
+
icon?: React$1.ReactElement;
|
|
2815
|
+
/** The section's `TimelineItem`s */
|
|
2816
|
+
children: React$1.ReactNode;
|
|
2817
|
+
}
|
|
2818
|
+
/**
|
|
2819
|
+
* **Props**
|
|
2820
|
+
* - `variant?: "neutral" | "primary" | "success" | "warning" | "danger"` (default `"neutral"`) — The status the section's marker and connector report
|
|
2821
|
+
* - `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
|
|
2822
|
+
* - `icon?: React.ReactElement` — A Lucide icon element, such as `<Clock />`, drawn in the marker. The timeline sizes it. `neutral` and `primary` sections need one
|
|
2823
|
+
* - `children: React.ReactNode` — The section's `TimelineItem`s
|
|
2824
|
+
*
|
|
2825
|
+
* Also accepts the standard `HTMLLIElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2826
|
+
*
|
|
2827
|
+
* [Timeline documentation](https://equality.eqtylab.io/components/timeline)
|
|
2828
|
+
*/
|
|
2829
|
+
declare const TimelineSection: React$1.ForwardRefExoticComponent<TimelineSectionProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
2830
|
+
interface TimelineItemProps extends React$1.LiHTMLAttributes<HTMLLIElement> {
|
|
2831
|
+
/** Makes the entry a link's target, such as `#event-12` */
|
|
2832
|
+
id?: string;
|
|
2833
|
+
/** The entry: a card, a line of text, anything */
|
|
2834
|
+
children: React$1.ReactNode;
|
|
2835
|
+
}
|
|
2836
|
+
/**
|
|
2837
|
+
* **Props**
|
|
2838
|
+
* - `id?: string` — Makes the entry a link's target, such as `#event-12`
|
|
2839
|
+
* - `children: React.ReactNode` — The entry: a card, a line of text, anything
|
|
2840
|
+
*
|
|
2841
|
+
* Also accepts the standard `HTMLLIElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2842
|
+
*
|
|
2843
|
+
* [Timeline documentation](https://equality.eqtylab.io/components/timeline)
|
|
2844
|
+
*/
|
|
2845
|
+
declare const TimelineItem: React$1.ForwardRefExoticComponent<TimelineItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
2846
|
+
|
|
2774
2847
|
/**
|
|
2775
2848
|
* **Props**
|
|
2776
2849
|
* - `children?: ReactNode`
|
|
@@ -3094,4 +3167,4 @@ declare const CODE_BLOCK_ATTRIBUTE = "data-equality-code-block";
|
|
|
3094
3167
|
*/
|
|
3095
3168
|
declare const scheduleHighlight: (root?: Node) => Promise<void>;
|
|
3096
3169
|
|
|
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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -2265,18 +2265,31 @@ declare const SelectGroup: React$1.ForwardRefExoticComponent<Omit<SelectPrimitiv
|
|
|
2265
2265
|
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2266
2266
|
*/
|
|
2267
2267
|
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
2268
|
+
interface SelectTriggerProps extends React$1.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {
|
|
2269
|
+
/** `inline` sits in running text or a heading: no border, background, padding or height, in the surrounding font */
|
|
2270
|
+
variant?: 'default' | 'inline';
|
|
2271
|
+
}
|
|
2268
2272
|
/**
|
|
2269
2273
|
* **Props**
|
|
2274
|
+
* - `variant?: "default" | "inline"` (default `"default"`) — `inline` sits in running text or a heading: no border, background, padding or height, in the surrounding font
|
|
2270
2275
|
* - `asChild?: boolean`
|
|
2271
2276
|
*
|
|
2272
2277
|
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2273
2278
|
*
|
|
2274
2279
|
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2275
2280
|
*/
|
|
2276
|
-
declare const SelectTrigger: React$1.ForwardRefExoticComponent<
|
|
2281
|
+
declare const SelectTrigger: React$1.ForwardRefExoticComponent<SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2282
|
+
declare const selectContentElevationVariants: (props?: ({
|
|
2283
|
+
elevation?: string | number | null | undefined;
|
|
2284
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2285
|
+
interface SelectContentProps extends React$1.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>, VariantProps<typeof selectContentElevationVariants> {
|
|
2286
|
+
/** Makes the list exactly as wide as its trigger, wrapping longer options, rather than at least as wide */
|
|
2287
|
+
matchTriggerWidth?: boolean;
|
|
2288
|
+
}
|
|
2277
2289
|
/**
|
|
2278
2290
|
* **Props**
|
|
2279
2291
|
* - `elevation?: string | number` (default `"overlay"`)
|
|
2292
|
+
* - `matchTriggerWidth?: boolean` (default `false`) — Makes the list exactly as wide as its trigger, wrapping longer options, rather than at least as wide
|
|
2280
2293
|
* - `asChild?: boolean`
|
|
2281
2294
|
* - `onEscapeKeyDown?: (event: KeyboardEvent) => void` — Event handler called when the escape key is down.
|
|
2282
2295
|
* Can be prevented.
|
|
@@ -2301,9 +2314,7 @@ declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimit
|
|
|
2301
2314
|
*
|
|
2302
2315
|
* [Select documentation](https://equality.eqtylab.io/components/select)
|
|
2303
2316
|
*/
|
|
2304
|
-
declare const SelectContent: React$1.ForwardRefExoticComponent<
|
|
2305
|
-
elevation?: string | number | null | undefined;
|
|
2306
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
2317
|
+
declare const SelectContent: React$1.ForwardRefExoticComponent<SelectContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2307
2318
|
/**
|
|
2308
2319
|
* **Props**
|
|
2309
2320
|
* - `icon?: React.ReactNode`
|
|
@@ -2771,6 +2782,68 @@ declare const Tabs: ({ items, className, tabsListBackground, value, defaultValue
|
|
|
2771
2782
|
*/
|
|
2772
2783
|
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
2773
2784
|
|
|
2785
|
+
declare const timelineVariants: (props?: ({
|
|
2786
|
+
/** The markers' size: `sm` an icon-only Badge, `md` as tall as a Button */
|
|
2787
|
+
size?: "sm" | "md" | null | undefined;
|
|
2788
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2789
|
+
declare const timelineSectionVariants: (props?: ({
|
|
2790
|
+
/** The status the section's marker and connector report */
|
|
2791
|
+
variant?: "primary" | "danger" | "success" | "warning" | "neutral" | null | undefined;
|
|
2792
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2793
|
+
interface TimelineProps extends React$1.OlHTMLAttributes<HTMLOListElement>, VariantProps<typeof timelineVariants> {
|
|
2794
|
+
/** Names the timeline for assistive technology, such as "Control timeline". Point `aria-labelledby` at a visible heading instead when there is one */
|
|
2795
|
+
'aria-label'?: string;
|
|
2796
|
+
/** The `TimelineSection`s, in the order they happened */
|
|
2797
|
+
children: React$1.ReactNode;
|
|
2798
|
+
}
|
|
2799
|
+
/**
|
|
2800
|
+
* **Props**
|
|
2801
|
+
* - `size?: "sm" | "md"` (default `"md"`) — The markers' size: `sm` an icon-only Badge, `md` as tall as a Button
|
|
2802
|
+
* - `"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
|
|
2803
|
+
* - `children: React.ReactNode` — The `TimelineSection`s, in the order they happened
|
|
2804
|
+
*
|
|
2805
|
+
* Also accepts the standard `HTMLOListElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2806
|
+
*
|
|
2807
|
+
* [Timeline documentation](https://equality.eqtylab.io/components/timeline)
|
|
2808
|
+
*/
|
|
2809
|
+
declare const Timeline: React$1.ForwardRefExoticComponent<TimelineProps & React$1.RefAttributes<HTMLOListElement>>;
|
|
2810
|
+
interface TimelineSectionProps extends React$1.LiHTMLAttributes<HTMLLIElement>, VariantProps<typeof timelineSectionVariants> {
|
|
2811
|
+
/** 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 */
|
|
2812
|
+
label?: string;
|
|
2813
|
+
/** A Lucide icon element, such as `<Clock />`, drawn in the marker. The timeline sizes it. `neutral` and `primary` sections need one */
|
|
2814
|
+
icon?: React$1.ReactElement;
|
|
2815
|
+
/** The section's `TimelineItem`s */
|
|
2816
|
+
children: React$1.ReactNode;
|
|
2817
|
+
}
|
|
2818
|
+
/**
|
|
2819
|
+
* **Props**
|
|
2820
|
+
* - `variant?: "neutral" | "primary" | "success" | "warning" | "danger"` (default `"neutral"`) — The status the section's marker and connector report
|
|
2821
|
+
* - `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
|
|
2822
|
+
* - `icon?: React.ReactElement` — A Lucide icon element, such as `<Clock />`, drawn in the marker. The timeline sizes it. `neutral` and `primary` sections need one
|
|
2823
|
+
* - `children: React.ReactNode` — The section's `TimelineItem`s
|
|
2824
|
+
*
|
|
2825
|
+
* Also accepts the standard `HTMLLIElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2826
|
+
*
|
|
2827
|
+
* [Timeline documentation](https://equality.eqtylab.io/components/timeline)
|
|
2828
|
+
*/
|
|
2829
|
+
declare const TimelineSection: React$1.ForwardRefExoticComponent<TimelineSectionProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
2830
|
+
interface TimelineItemProps extends React$1.LiHTMLAttributes<HTMLLIElement> {
|
|
2831
|
+
/** Makes the entry a link's target, such as `#event-12` */
|
|
2832
|
+
id?: string;
|
|
2833
|
+
/** The entry: a card, a line of text, anything */
|
|
2834
|
+
children: React$1.ReactNode;
|
|
2835
|
+
}
|
|
2836
|
+
/**
|
|
2837
|
+
* **Props**
|
|
2838
|
+
* - `id?: string` — Makes the entry a link's target, such as `#event-12`
|
|
2839
|
+
* - `children: React.ReactNode` — The entry: a card, a line of text, anything
|
|
2840
|
+
*
|
|
2841
|
+
* Also accepts the standard `HTMLLIElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
2842
|
+
*
|
|
2843
|
+
* [Timeline documentation](https://equality.eqtylab.io/components/timeline)
|
|
2844
|
+
*/
|
|
2845
|
+
declare const TimelineItem: React$1.ForwardRefExoticComponent<TimelineItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
2846
|
+
|
|
2774
2847
|
/**
|
|
2775
2848
|
* **Props**
|
|
2776
2849
|
* - `children?: ReactNode`
|
|
@@ -3094,4 +3167,4 @@ declare const CODE_BLOCK_ATTRIBUTE = "data-equality-code-block";
|
|
|
3094
3167
|
*/
|
|
3095
3168
|
declare const scheduleHighlight: (root?: Node) => Promise<void>;
|
|
3096
3169
|
|
|
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 };
|
|
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 };
|
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
|
},
|
|
@@ -3396,10 +3397,30 @@ var SelectGroup = React16.forwardRef(({ hidden, ...props }, ref) => {
|
|
|
3396
3397
|
});
|
|
3397
3398
|
SelectGroup.displayName = SelectPrimitive.Group.displayName;
|
|
3398
3399
|
var SelectValue = SelectPrimitive.Value;
|
|
3399
|
-
var SelectTrigger = React16.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3400
|
+
var SelectTrigger = React16.forwardRef(({ className, children, variant = "default", ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
3401
|
+
SelectPrimitive.Trigger,
|
|
3402
|
+
{
|
|
3403
|
+
ref,
|
|
3404
|
+
className: cn(
|
|
3405
|
+
styles39["select-trigger"],
|
|
3406
|
+
variant === "inline" && styles39["select-trigger--inline"],
|
|
3407
|
+
className
|
|
3408
|
+
),
|
|
3409
|
+
...props,
|
|
3410
|
+
children: [
|
|
3411
|
+
children,
|
|
3412
|
+
/* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
3413
|
+
ChevronDownIcon2,
|
|
3414
|
+
{
|
|
3415
|
+
className: cn(
|
|
3416
|
+
styles39["select-icon"],
|
|
3417
|
+
variant !== "inline" && styles39["select-icon--low-opacity"]
|
|
3418
|
+
)
|
|
3419
|
+
}
|
|
3420
|
+
) })
|
|
3421
|
+
]
|
|
3422
|
+
}
|
|
3423
|
+
));
|
|
3403
3424
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
3404
3425
|
var SelectPortal = ({ children }) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { container: usePortalContainer(), children });
|
|
3405
3426
|
var selectContentElevationVariants = generateElevationVariants(
|
|
@@ -3413,6 +3434,7 @@ var SelectContent = React16.forwardRef(
|
|
|
3413
3434
|
children,
|
|
3414
3435
|
position = "popper",
|
|
3415
3436
|
elevation = ELEVATION.OVERLAY,
|
|
3437
|
+
matchTriggerWidth = false,
|
|
3416
3438
|
onKeyDown,
|
|
3417
3439
|
onKeyDownCapture,
|
|
3418
3440
|
onPointerMoveCapture,
|
|
@@ -3458,6 +3480,7 @@ var SelectContent = React16.forwardRef(
|
|
|
3458
3480
|
className: cn(
|
|
3459
3481
|
styles39["select-content"],
|
|
3460
3482
|
position === "popper" && styles39["select-content--popper"],
|
|
3483
|
+
position === "popper" && matchTriggerWidth && styles39["select-content--trigger-width"],
|
|
3461
3484
|
selectContentElevationVariants({ elevation }),
|
|
3462
3485
|
className
|
|
3463
3486
|
),
|
|
@@ -5066,24 +5089,74 @@ var Textarea = React16.forwardRef(
|
|
|
5066
5089
|
}
|
|
5067
5090
|
);
|
|
5068
5091
|
Textarea.displayName = "Textarea";
|
|
5092
|
+
var timelineVariants = cva(styles63["timeline"], {
|
|
5093
|
+
variants: {
|
|
5094
|
+
/** The markers' size: `sm` an icon-only Badge, `md` as tall as a Button */
|
|
5095
|
+
size: {
|
|
5096
|
+
sm: styles63["timeline--sm"],
|
|
5097
|
+
md: styles63["timeline--md"]
|
|
5098
|
+
}
|
|
5099
|
+
},
|
|
5100
|
+
defaultVariants: {
|
|
5101
|
+
size: "md"
|
|
5102
|
+
}
|
|
5103
|
+
});
|
|
5104
|
+
var timelineSectionVariants = cva(styles63["timeline-section"], {
|
|
5105
|
+
variants: {
|
|
5106
|
+
/** The status the section's marker and connector report */
|
|
5107
|
+
variant: {
|
|
5108
|
+
neutral: "",
|
|
5109
|
+
primary: styles63["timeline-section--primary"],
|
|
5110
|
+
success: styles63["timeline-section--success"],
|
|
5111
|
+
warning: styles63["timeline-section--warning"],
|
|
5112
|
+
danger: styles63["timeline-section--danger"]
|
|
5113
|
+
}
|
|
5114
|
+
},
|
|
5115
|
+
defaultVariants: {
|
|
5116
|
+
variant: "neutral"
|
|
5117
|
+
}
|
|
5118
|
+
});
|
|
5119
|
+
var Timeline = React16.forwardRef(
|
|
5120
|
+
({ className, size, children, ...props }, ref) => /* @__PURE__ */ jsx("ol", { ref, className: cn(timelineVariants({ size }), className), ...props, children })
|
|
5121
|
+
);
|
|
5122
|
+
Timeline.displayName = "Timeline";
|
|
5123
|
+
var defaultVariantIcons3 = {
|
|
5124
|
+
success: /* @__PURE__ */ jsx(Check, {}),
|
|
5125
|
+
warning: /* @__PURE__ */ jsx(OctagonAlert$1, {}),
|
|
5126
|
+
danger: /* @__PURE__ */ jsx(TriangleAlert, {})
|
|
5127
|
+
};
|
|
5128
|
+
var TimelineSection = React16.forwardRef(
|
|
5129
|
+
({ className, variant, label, icon, children, ...props }, ref) => /* @__PURE__ */ jsxs("li", { ref, className: cn(timelineSectionVariants({ variant }), className), ...props, children: [
|
|
5130
|
+
/* @__PURE__ */ jsxs("div", { className: styles63["timeline-rail"], "aria-hidden": "true", children: [
|
|
5131
|
+
/* @__PURE__ */ jsx("div", { className: styles63["timeline-connector"] }),
|
|
5132
|
+
/* @__PURE__ */ jsx("div", { className: styles63["timeline-marker"], children: icon ?? (variant ? defaultVariantIcons3[variant] : void 0) })
|
|
5133
|
+
] }),
|
|
5134
|
+
/* @__PURE__ */ jsx("ol", { className: styles63["timeline-items"], "aria-label": label, children })
|
|
5135
|
+
] })
|
|
5136
|
+
);
|
|
5137
|
+
TimelineSection.displayName = "TimelineSection";
|
|
5138
|
+
var TimelineItem = React16.forwardRef(
|
|
5139
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn(styles63["timeline-item"], className), ...props })
|
|
5140
|
+
);
|
|
5141
|
+
TimelineItem.displayName = "TimelineItem";
|
|
5069
5142
|
var XIcon2 = X;
|
|
5070
5143
|
var ToastProvider = ToastPrimitives.Provider;
|
|
5071
5144
|
var ToastViewport = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5072
5145
|
ToastPrimitives.Viewport,
|
|
5073
5146
|
{
|
|
5074
5147
|
ref,
|
|
5075
|
-
className: cn(
|
|
5148
|
+
className: cn(styles64["toast-viewport"], className),
|
|
5076
5149
|
...props
|
|
5077
5150
|
}
|
|
5078
5151
|
));
|
|
5079
5152
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
5080
|
-
var toastVariants = cva(
|
|
5153
|
+
var toastVariants = cva(styles64["toast"], {
|
|
5081
5154
|
variants: {
|
|
5082
5155
|
variant: {
|
|
5083
|
-
default:
|
|
5084
|
-
danger:
|
|
5085
|
-
warning:
|
|
5086
|
-
success:
|
|
5156
|
+
default: styles64["toast--default"],
|
|
5157
|
+
danger: styles64["toast--danger"],
|
|
5158
|
+
warning: styles64["toast--warning"],
|
|
5159
|
+
success: styles64["toast--success"]
|
|
5087
5160
|
}
|
|
5088
5161
|
},
|
|
5089
5162
|
defaultVariants: {
|
|
@@ -5108,7 +5181,7 @@ var ToastAction = React16.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
5108
5181
|
ref,
|
|
5109
5182
|
className: cn(
|
|
5110
5183
|
buttonVariants({ variant: "secondary", size: "sm" }),
|
|
5111
|
-
|
|
5184
|
+
styles64["toast-action"],
|
|
5112
5185
|
className
|
|
5113
5186
|
),
|
|
5114
5187
|
...props
|
|
@@ -5120,19 +5193,19 @@ var ToastClose = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
5120
5193
|
{
|
|
5121
5194
|
ref,
|
|
5122
5195
|
"aria-label": "Close",
|
|
5123
|
-
className: cn(
|
|
5196
|
+
className: cn(styles64["toast-close"], className),
|
|
5124
5197
|
...props,
|
|
5125
|
-
children: /* @__PURE__ */ jsx(XIcon2, { className:
|
|
5198
|
+
children: /* @__PURE__ */ jsx(XIcon2, { className: styles64["toast-close-icon"] })
|
|
5126
5199
|
}
|
|
5127
5200
|
));
|
|
5128
5201
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
5129
|
-
var ToastTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Title, { ref, className: cn(
|
|
5202
|
+
var ToastTitle = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(ToastPrimitives.Title, { ref, className: cn(styles64["toast-title"], className), ...props }));
|
|
5130
5203
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
5131
5204
|
var ToastDescription = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
5132
5205
|
ToastPrimitives.Description,
|
|
5133
5206
|
{
|
|
5134
5207
|
ref,
|
|
5135
|
-
className: cn(
|
|
5208
|
+
className: cn(styles64["toast-description"], className),
|
|
5136
5209
|
...props
|
|
5137
5210
|
}
|
|
5138
5211
|
));
|
|
@@ -5267,14 +5340,14 @@ var Toast = ({ toast: toast2 }) => {
|
|
|
5267
5340
|
};
|
|
5268
5341
|
const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
|
|
5269
5342
|
return /* @__PURE__ */ jsxs(ToastContainer, { ...props, variant, children: [
|
|
5270
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
5271
|
-
title && /* @__PURE__ */ jsxs("div", { className:
|
|
5343
|
+
/* @__PURE__ */ jsxs("div", { className: styles65["toast-copy"], children: [
|
|
5344
|
+
title && /* @__PURE__ */ jsxs("div", { className: styles65["toast-title-container"], children: [
|
|
5272
5345
|
displayIcon && /* @__PURE__ */ jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
|
|
5273
5346
|
/* @__PURE__ */ jsx(ToastTitle, { children: title })
|
|
5274
5347
|
] }),
|
|
5275
5348
|
description && /* @__PURE__ */ jsx(ToastDescription, { children: description })
|
|
5276
5349
|
] }),
|
|
5277
|
-
action && /* @__PURE__ */ jsx("div", { className:
|
|
5350
|
+
action && /* @__PURE__ */ jsx("div", { className: styles65["toast-action"], children: action }),
|
|
5278
5351
|
/* @__PURE__ */ jsx(ToastClose, {})
|
|
5279
5352
|
] });
|
|
5280
5353
|
};
|
|
@@ -5309,7 +5382,7 @@ var TruncatedDescription = ({
|
|
|
5309
5382
|
e.stopPropagation();
|
|
5310
5383
|
setExpanded(!expanded);
|
|
5311
5384
|
};
|
|
5312
|
-
return /* @__PURE__ */ jsxs("div", { className: cn(
|
|
5385
|
+
return /* @__PURE__ */ jsxs("div", { className: cn(styles66["truncated-description"], className), children: [
|
|
5313
5386
|
/* @__PURE__ */ jsx("div", { dangerouslySetInnerHTML: { __html: displayDescription } }),
|
|
5314
5387
|
isLongDescription && /* @__PURE__ */ jsx(Button, { variant: "link", size: "sm", onClick: handleToggle, children: expanded ? "Show less" : "Show more" })
|
|
5315
5388
|
] });
|
|
@@ -5330,7 +5403,7 @@ var ThemeProvider = ({ customVars, portalContainer, children }) => {
|
|
|
5330
5403
|
{
|
|
5331
5404
|
id: "equality-theme-provider-root",
|
|
5332
5405
|
"data-equality-root": true,
|
|
5333
|
-
className:
|
|
5406
|
+
className: styles67.root,
|
|
5334
5407
|
style: customVars,
|
|
5335
5408
|
children: [
|
|
5336
5409
|
children,
|
|
@@ -5456,6 +5529,6 @@ var useTheme = () => {
|
|
|
5456
5529
|
return [theme, setTheme];
|
|
5457
5530
|
};
|
|
5458
5531
|
|
|
5459
|
-
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 };
|
|
5532
|
+
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 };
|
|
5460
5533
|
//# sourceMappingURL=index.js.map
|
|
5461
5534
|
//# sourceMappingURL=index.js.map
|