@eqtylab/equality 5.2.0 → 5.3.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 +57 -0
- package/dist/index.cjs +197 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -8
- package/dist/index.d.ts +49 -8
- package/dist/index.js +196 -54
- package/dist/index.js.map +1 -1
- package/dist/nav-list.module.module.css.module.css +210 -16
- package/dist/nav.module.module.css.module.css +18 -12
- package/dist/theme-decisions-scoped.css +13 -0
- package/dist/theme-decisions.css +13 -0
- package/dist/theme.module.module.css.module.css +10 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -243,7 +243,7 @@ declare const badgeVariants: (props?: ({
|
|
|
243
243
|
size?: "sm" | "md" | null | undefined;
|
|
244
244
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
245
245
|
type BadgeDisplayMode = 'both' | 'text-only' | 'icon-only';
|
|
246
|
-
interface BadgeProps extends React$1.HTMLAttributes<
|
|
246
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
247
247
|
closeable?: boolean;
|
|
248
248
|
handleClosable?: () => void;
|
|
249
249
|
closeLabel?: string;
|
|
@@ -268,7 +268,7 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
|
|
|
268
268
|
* - `monospace?: boolean` (default `false`)
|
|
269
269
|
* - `pill?: boolean` (default `true`)
|
|
270
270
|
*
|
|
271
|
-
* Also accepts the standard `
|
|
271
|
+
* Also accepts the standard `HTMLSpanElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
272
272
|
*
|
|
273
273
|
* [Badge documentation](https://equality.eqtylab.io/components/badge)
|
|
274
274
|
*/
|
|
@@ -1413,7 +1413,7 @@ declare const iconVariants: (props?: ({
|
|
|
1413
1413
|
declare const iconElevationVariants: (props?: ({
|
|
1414
1414
|
elevation?: string | number | null | undefined;
|
|
1415
1415
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1416
|
-
interface IconProps extends React$1.HTMLAttributes<
|
|
1416
|
+
interface IconProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof iconVariants>, VariantProps<typeof iconElevationVariants> {
|
|
1417
1417
|
icon: React$1.ReactElement | string;
|
|
1418
1418
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
1419
1419
|
background?: 'square' | 'circle' | 'transparent';
|
|
@@ -1425,11 +1425,11 @@ interface IconProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps
|
|
|
1425
1425
|
* - `size?: "xs" | "sm" | "md" | "lg"`
|
|
1426
1426
|
* - `background?: "square" | "circle" | "transparent"`
|
|
1427
1427
|
*
|
|
1428
|
-
* Also accepts the standard `
|
|
1428
|
+
* Also accepts the standard `HTMLSpanElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1429
1429
|
*
|
|
1430
1430
|
* [Icon documentation](https://equality.eqtylab.io/components/icon)
|
|
1431
1431
|
*/
|
|
1432
|
-
declare const Icon: React$1.ForwardRefExoticComponent<IconProps & React$1.RefAttributes<
|
|
1432
|
+
declare const Icon: React$1.ForwardRefExoticComponent<IconProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1433
1433
|
|
|
1434
1434
|
interface InfoCardProps {
|
|
1435
1435
|
label: string;
|
|
@@ -1612,7 +1612,7 @@ interface NavListItemProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'pr
|
|
|
1612
1612
|
label: string;
|
|
1613
1613
|
/** An icon before the label, on top-level rows only; hidden from screen readers */
|
|
1614
1614
|
prefix?: React$1.ReactNode;
|
|
1615
|
-
/**
|
|
1615
|
+
/** A status or count after the label; screen readers read it as part of the row */
|
|
1616
1616
|
suffix?: React$1.ReactNode;
|
|
1617
1617
|
/** Marks the row as the page on show */
|
|
1618
1618
|
current?: boolean;
|
|
@@ -1625,7 +1625,7 @@ interface NavListItemProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'pr
|
|
|
1625
1625
|
* **Props**
|
|
1626
1626
|
* - `label: string` — The row's text, also its full title when it truncates
|
|
1627
1627
|
* - `prefix?: React.ReactNode` — An icon before the label, on top-level rows only; hidden from screen readers
|
|
1628
|
-
* - `suffix?: React.ReactNode` —
|
|
1628
|
+
* - `suffix?: React.ReactNode` — A status or count after the label; screen readers read it as part of the row
|
|
1629
1629
|
* - `current?: boolean` (default `false`) — Marks the row as the page on show
|
|
1630
1630
|
* - `drill?: string` — The `value` of the `NavDrillLevel` this row opens; adds the › caret
|
|
1631
1631
|
* - `asChild?: boolean` (default `false`) — Renders the row as its only child, such as a router link
|
|
@@ -1637,6 +1637,47 @@ declare const NavListItem: React$1.ForwardRefExoticComponent<NavListItemProps &
|
|
|
1637
1637
|
* Accepts the standard `HTMLElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1638
1638
|
*/
|
|
1639
1639
|
declare const NavListSeparator: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & React$1.RefAttributes<HTMLElement>>;
|
|
1640
|
+
interface NavListExpandableProps extends React$1.LiHTMLAttributes<HTMLLIElement> {
|
|
1641
|
+
/** Opens the group; pair it with `onOpenChange` to control it */
|
|
1642
|
+
open?: boolean;
|
|
1643
|
+
/** Opens the group on first render, such as when it holds the page on show */
|
|
1644
|
+
defaultOpen?: boolean;
|
|
1645
|
+
/** Called with the new state when the trigger is pressed or the current page moves inside */
|
|
1646
|
+
onOpenChange?: (open: boolean) => void;
|
|
1647
|
+
/** Keeps the reader's open or close when a `NavDrill` level rebuilds; unique within its level */
|
|
1648
|
+
value?: string;
|
|
1649
|
+
}
|
|
1650
|
+
/**
|
|
1651
|
+
* **Props**
|
|
1652
|
+
* - `open?: boolean` — Opens the group; pair it with `onOpenChange` to control it
|
|
1653
|
+
* - `defaultOpen?: boolean` (default `false`) — Opens the group on first render, such as when it holds the page on show
|
|
1654
|
+
* - `onOpenChange?: (open: boolean) => void` — Called with the new state when the trigger is pressed or the current page moves inside
|
|
1655
|
+
* - `value?: string` — Keeps the reader's open or close when a `NavDrill` level rebuilds; unique within its level
|
|
1656
|
+
*
|
|
1657
|
+
* Also accepts the standard `HTMLLIElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1658
|
+
*/
|
|
1659
|
+
declare const NavListExpandable: React$1.ForwardRefExoticComponent<NavListExpandableProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
1660
|
+
interface NavListExpandableTriggerProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'> {
|
|
1661
|
+
/** The group's name, also its full title when it truncates */
|
|
1662
|
+
label: string;
|
|
1663
|
+
/** An icon before the label, on top-level groups only; hidden from screen readers */
|
|
1664
|
+
prefix?: React$1.ReactNode;
|
|
1665
|
+
/** A status or count after the label; screen readers read it as part of the row */
|
|
1666
|
+
suffix?: React$1.ReactNode;
|
|
1667
|
+
}
|
|
1668
|
+
/**
|
|
1669
|
+
* **Props**
|
|
1670
|
+
* - `label: string` — The group's name, also its full title when it truncates
|
|
1671
|
+
* - `prefix?: React.ReactNode` — An icon before the label, on top-level groups only; hidden from screen readers
|
|
1672
|
+
* - `suffix?: React.ReactNode` — A status or count after the label; screen readers read it as part of the row
|
|
1673
|
+
*
|
|
1674
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1675
|
+
*/
|
|
1676
|
+
declare const NavListExpandableTrigger: React$1.ForwardRefExoticComponent<NavListExpandableTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1677
|
+
/**
|
|
1678
|
+
* Accepts the standard `HTMLUListElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1679
|
+
*/
|
|
1680
|
+
declare const NavListExpandableContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLUListElement> & React$1.RefAttributes<HTMLUListElement>>;
|
|
1640
1681
|
|
|
1641
1682
|
interface NavPanelProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'title'> {
|
|
1642
1683
|
/** Names the panel's landmark */
|
|
@@ -3034,4 +3075,4 @@ declare const CODE_BLOCK_ATTRIBUTE = "data-equality-code-block";
|
|
|
3034
3075
|
*/
|
|
3035
3076
|
declare const scheduleHighlight: (root?: Node) => Promise<void>;
|
|
3036
3077
|
|
|
3037
|
-
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, 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 };
|
|
3078
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -243,7 +243,7 @@ declare const badgeVariants: (props?: ({
|
|
|
243
243
|
size?: "sm" | "md" | null | undefined;
|
|
244
244
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
245
245
|
type BadgeDisplayMode = 'both' | 'text-only' | 'icon-only';
|
|
246
|
-
interface BadgeProps extends React$1.HTMLAttributes<
|
|
246
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
247
247
|
closeable?: boolean;
|
|
248
248
|
handleClosable?: () => void;
|
|
249
249
|
closeLabel?: string;
|
|
@@ -268,7 +268,7 @@ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProp
|
|
|
268
268
|
* - `monospace?: boolean` (default `false`)
|
|
269
269
|
* - `pill?: boolean` (default `true`)
|
|
270
270
|
*
|
|
271
|
-
* Also accepts the standard `
|
|
271
|
+
* Also accepts the standard `HTMLSpanElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
272
272
|
*
|
|
273
273
|
* [Badge documentation](https://equality.eqtylab.io/components/badge)
|
|
274
274
|
*/
|
|
@@ -1413,7 +1413,7 @@ declare const iconVariants: (props?: ({
|
|
|
1413
1413
|
declare const iconElevationVariants: (props?: ({
|
|
1414
1414
|
elevation?: string | number | null | undefined;
|
|
1415
1415
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1416
|
-
interface IconProps extends React$1.HTMLAttributes<
|
|
1416
|
+
interface IconProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof iconVariants>, VariantProps<typeof iconElevationVariants> {
|
|
1417
1417
|
icon: React$1.ReactElement | string;
|
|
1418
1418
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
1419
1419
|
background?: 'square' | 'circle' | 'transparent';
|
|
@@ -1425,11 +1425,11 @@ interface IconProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps
|
|
|
1425
1425
|
* - `size?: "xs" | "sm" | "md" | "lg"`
|
|
1426
1426
|
* - `background?: "square" | "circle" | "transparent"`
|
|
1427
1427
|
*
|
|
1428
|
-
* Also accepts the standard `
|
|
1428
|
+
* Also accepts the standard `HTMLSpanElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1429
1429
|
*
|
|
1430
1430
|
* [Icon documentation](https://equality.eqtylab.io/components/icon)
|
|
1431
1431
|
*/
|
|
1432
|
-
declare const Icon: React$1.ForwardRefExoticComponent<IconProps & React$1.RefAttributes<
|
|
1432
|
+
declare const Icon: React$1.ForwardRefExoticComponent<IconProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1433
1433
|
|
|
1434
1434
|
interface InfoCardProps {
|
|
1435
1435
|
label: string;
|
|
@@ -1612,7 +1612,7 @@ interface NavListItemProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'pr
|
|
|
1612
1612
|
label: string;
|
|
1613
1613
|
/** An icon before the label, on top-level rows only; hidden from screen readers */
|
|
1614
1614
|
prefix?: React$1.ReactNode;
|
|
1615
|
-
/**
|
|
1615
|
+
/** A status or count after the label; screen readers read it as part of the row */
|
|
1616
1616
|
suffix?: React$1.ReactNode;
|
|
1617
1617
|
/** Marks the row as the page on show */
|
|
1618
1618
|
current?: boolean;
|
|
@@ -1625,7 +1625,7 @@ interface NavListItemProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'pr
|
|
|
1625
1625
|
* **Props**
|
|
1626
1626
|
* - `label: string` — The row's text, also its full title when it truncates
|
|
1627
1627
|
* - `prefix?: React.ReactNode` — An icon before the label, on top-level rows only; hidden from screen readers
|
|
1628
|
-
* - `suffix?: React.ReactNode` —
|
|
1628
|
+
* - `suffix?: React.ReactNode` — A status or count after the label; screen readers read it as part of the row
|
|
1629
1629
|
* - `current?: boolean` (default `false`) — Marks the row as the page on show
|
|
1630
1630
|
* - `drill?: string` — The `value` of the `NavDrillLevel` this row opens; adds the › caret
|
|
1631
1631
|
* - `asChild?: boolean` (default `false`) — Renders the row as its only child, such as a router link
|
|
@@ -1637,6 +1637,47 @@ declare const NavListItem: React$1.ForwardRefExoticComponent<NavListItemProps &
|
|
|
1637
1637
|
* Accepts the standard `HTMLElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1638
1638
|
*/
|
|
1639
1639
|
declare const NavListSeparator: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & React$1.RefAttributes<HTMLElement>>;
|
|
1640
|
+
interface NavListExpandableProps extends React$1.LiHTMLAttributes<HTMLLIElement> {
|
|
1641
|
+
/** Opens the group; pair it with `onOpenChange` to control it */
|
|
1642
|
+
open?: boolean;
|
|
1643
|
+
/** Opens the group on first render, such as when it holds the page on show */
|
|
1644
|
+
defaultOpen?: boolean;
|
|
1645
|
+
/** Called with the new state when the trigger is pressed or the current page moves inside */
|
|
1646
|
+
onOpenChange?: (open: boolean) => void;
|
|
1647
|
+
/** Keeps the reader's open or close when a `NavDrill` level rebuilds; unique within its level */
|
|
1648
|
+
value?: string;
|
|
1649
|
+
}
|
|
1650
|
+
/**
|
|
1651
|
+
* **Props**
|
|
1652
|
+
* - `open?: boolean` — Opens the group; pair it with `onOpenChange` to control it
|
|
1653
|
+
* - `defaultOpen?: boolean` (default `false`) — Opens the group on first render, such as when it holds the page on show
|
|
1654
|
+
* - `onOpenChange?: (open: boolean) => void` — Called with the new state when the trigger is pressed or the current page moves inside
|
|
1655
|
+
* - `value?: string` — Keeps the reader's open or close when a `NavDrill` level rebuilds; unique within its level
|
|
1656
|
+
*
|
|
1657
|
+
* Also accepts the standard `HTMLLIElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1658
|
+
*/
|
|
1659
|
+
declare const NavListExpandable: React$1.ForwardRefExoticComponent<NavListExpandableProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
1660
|
+
interface NavListExpandableTriggerProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'> {
|
|
1661
|
+
/** The group's name, also its full title when it truncates */
|
|
1662
|
+
label: string;
|
|
1663
|
+
/** An icon before the label, on top-level groups only; hidden from screen readers */
|
|
1664
|
+
prefix?: React$1.ReactNode;
|
|
1665
|
+
/** A status or count after the label; screen readers read it as part of the row */
|
|
1666
|
+
suffix?: React$1.ReactNode;
|
|
1667
|
+
}
|
|
1668
|
+
/**
|
|
1669
|
+
* **Props**
|
|
1670
|
+
* - `label: string` — The group's name, also its full title when it truncates
|
|
1671
|
+
* - `prefix?: React.ReactNode` — An icon before the label, on top-level groups only; hidden from screen readers
|
|
1672
|
+
* - `suffix?: React.ReactNode` — A status or count after the label; screen readers read it as part of the row
|
|
1673
|
+
*
|
|
1674
|
+
* Also accepts the standard `HTMLButtonElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1675
|
+
*/
|
|
1676
|
+
declare const NavListExpandableTrigger: React$1.ForwardRefExoticComponent<NavListExpandableTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1677
|
+
/**
|
|
1678
|
+
* Accepts the standard `HTMLUListElement` attributes, such as `className`, `id`, `aria-*` and event handlers.
|
|
1679
|
+
*/
|
|
1680
|
+
declare const NavListExpandableContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLUListElement> & React$1.RefAttributes<HTMLUListElement>>;
|
|
1640
1681
|
|
|
1641
1682
|
interface NavPanelProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'title'> {
|
|
1642
1683
|
/** Names the panel's landmark */
|
|
@@ -3034,4 +3075,4 @@ declare const CODE_BLOCK_ATTRIBUTE = "data-equality-code-block";
|
|
|
3034
3075
|
*/
|
|
3035
3076
|
declare const scheduleHighlight: (root?: Node) => Promise<void>;
|
|
3036
3077
|
|
|
3037
|
-
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, 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 };
|
|
3078
|
+
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 };
|