@jarllyng/nostromo 3.7.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-45W3AH36.cjs +3 -0
- package/dist/chunk-45W3AH36.cjs.map +1 -0
- package/dist/chunk-4NLMGH2S.cjs +3 -0
- package/dist/chunk-4NLMGH2S.cjs.map +1 -0
- package/dist/chunk-AYKNZARS.js +3 -0
- package/dist/chunk-AYKNZARS.js.map +1 -0
- package/dist/chunk-BISYWH74.js +3 -0
- package/dist/chunk-BISYWH74.js.map +1 -0
- package/dist/chunk-CGBIJDZX.cjs +3 -0
- package/dist/chunk-CGBIJDZX.cjs.map +1 -0
- package/dist/chunk-E3A4SP3X.cjs +3 -0
- package/dist/chunk-E3A4SP3X.cjs.map +1 -0
- package/dist/chunk-FMIAI6US.cjs +3 -0
- package/dist/chunk-FMIAI6US.cjs.map +1 -0
- package/dist/chunk-FTAB43WC.js +3 -0
- package/dist/chunk-FTAB43WC.js.map +1 -0
- package/dist/chunk-GCMMAUW3.js +3 -0
- package/dist/chunk-GCMMAUW3.js.map +1 -0
- package/dist/chunk-HEU5GFOV.js +3 -0
- package/dist/chunk-HEU5GFOV.js.map +1 -0
- package/dist/chunk-KCS3UL74.cjs +3 -0
- package/dist/chunk-KCS3UL74.cjs.map +1 -0
- package/dist/chunk-MIYL7YKU.cjs +3 -0
- package/dist/chunk-MIYL7YKU.cjs.map +1 -0
- package/dist/chunk-MM54MZBX.js +3 -0
- package/dist/chunk-MM54MZBX.js.map +1 -0
- package/dist/chunk-QEHKWS7N.cjs +3 -0
- package/dist/chunk-QEHKWS7N.cjs.map +1 -0
- package/dist/chunk-VBGHESL2.js +3 -0
- package/dist/chunk-VBGHESL2.js.map +1 -0
- package/dist/chunk-XYPJ2K22.js +3 -0
- package/dist/chunk-XYPJ2K22.js.map +1 -0
- package/dist/components/core/context-menu.cjs +3 -0
- package/dist/components/core/context-menu.cjs.map +1 -0
- package/dist/components/core/context-menu.d.cts +44 -0
- package/dist/components/core/context-menu.d.ts +44 -0
- package/dist/components/core/context-menu.js +3 -0
- package/dist/components/core/context-menu.js.map +1 -0
- package/dist/components/core/dropdown-menu.cjs +1 -1
- package/dist/components/core/dropdown-menu.js +1 -1
- package/dist/components/core/hover-card.cjs +3 -0
- package/dist/components/core/hover-card.cjs.map +1 -0
- package/dist/components/core/hover-card.d.cts +22 -0
- package/dist/components/core/hover-card.d.ts +22 -0
- package/dist/components/core/hover-card.js +3 -0
- package/dist/components/core/hover-card.js.map +1 -0
- package/dist/components/core/menubar.cjs +3 -0
- package/dist/components/core/menubar.cjs.map +1 -0
- package/dist/components/core/menubar.d.cts +41 -0
- package/dist/components/core/menubar.d.ts +41 -0
- package/dist/components/core/menubar.js +3 -0
- package/dist/components/core/menubar.js.map +1 -0
- package/dist/components/core/navigation-menu.cjs +3 -0
- package/dist/components/core/navigation-menu.cjs.map +1 -0
- package/dist/components/core/navigation-menu.d.cts +29 -0
- package/dist/components/core/navigation-menu.d.ts +29 -0
- package/dist/components/core/navigation-menu.js +3 -0
- package/dist/components/core/navigation-menu.js.map +1 -0
- package/dist/components/core/scroll-area.cjs +3 -0
- package/dist/components/core/scroll-area.cjs.map +1 -0
- package/dist/components/core/scroll-area.d.cts +26 -0
- package/dist/components/core/scroll-area.d.ts +26 -0
- package/dist/components/core/scroll-area.js +3 -0
- package/dist/components/core/scroll-area.js.map +1 -0
- package/dist/components/core/slider.cjs +3 -0
- package/dist/components/core/slider.cjs.map +1 -0
- package/dist/components/core/slider.d.cts +29 -0
- package/dist/components/core/slider.d.ts +29 -0
- package/dist/components/core/slider.js +3 -0
- package/dist/components/core/slider.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +61 -1
- package/dist/chunk-BX4VBLKZ.cjs +0 -3
- package/dist/chunk-BX4VBLKZ.cjs.map +0 -1
- package/dist/chunk-E44BBSLT.js +0 -3
- package/dist/chunk-E44BBSLT.js.map +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The menu that opens on right-click, at the pointer.
|
|
6
|
+
*
|
|
7
|
+
* A separate primitive from `DropdownMenu` rather than a prop on it, because the
|
|
8
|
+
* two are genuinely different: this one has no visible trigger, opens where the
|
|
9
|
+
* pointer is, and on touch opens on long-press. Radix models them separately for
|
|
10
|
+
* that reason. The styling is shared through menu-styles.ts so the two look like
|
|
11
|
+
* the same menu, which is what a user expects.
|
|
12
|
+
*
|
|
13
|
+
* Worth saying out loud: a context menu must not be the only way to reach an
|
|
14
|
+
* action. There is no affordance for it, it is awkward on touch, and a keyboard
|
|
15
|
+
* user gets there only through the context-menu key. Put the same actions in a
|
|
16
|
+
* `DropdownMenu` or a toolbar as well.
|
|
17
|
+
*/
|
|
18
|
+
declare const ContextMenu: React.FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
19
|
+
declare const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
|
|
20
|
+
declare const ContextMenuGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
declare const ContextMenuSub: React.FC<ContextMenuPrimitive.ContextMenuSubProps>;
|
|
22
|
+
declare const ContextMenuRadioGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const ContextMenuContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
interface ContextMenuItemProps extends React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> {
|
|
25
|
+
destructive?: boolean;
|
|
26
|
+
inset?: boolean;
|
|
27
|
+
}
|
|
28
|
+
declare const ContextMenuItem: React.ForwardRefExoticComponent<ContextMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
declare const ContextMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
declare const ContextMenuRadioItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
declare const ContextMenuLabel: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
32
|
+
inset?: boolean;
|
|
33
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
declare const ContextMenuSeparator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
declare function ContextMenuShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
36
|
+
declare namespace ContextMenuShortcut {
|
|
37
|
+
var displayName: string;
|
|
38
|
+
}
|
|
39
|
+
declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
40
|
+
inset?: boolean;
|
|
41
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
declare const ContextMenuSubContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
|
|
44
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export{a as ContextMenu,h as ContextMenuCheckboxItem,f as ContextMenuContent,c as ContextMenuGroup,g as ContextMenuItem,j as ContextMenuLabel,e as ContextMenuRadioGroup,i as ContextMenuRadioItem,k as ContextMenuSeparator,l as ContextMenuShortcut,d as ContextMenuSub,n as ContextMenuSubContent,m as ContextMenuSubTrigger,b as ContextMenuTrigger}from'../../chunk-AYKNZARS.js';import'../../chunk-XYPJ2K22.js';import'../../chunk-AC2JBXHQ.js';//# sourceMappingURL=context-menu.js.map
|
|
3
|
+
//# sourceMappingURL=context-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"context-menu.js"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
'use strict';var
|
|
2
|
+
'use strict';var chunk4NLMGH2S_cjs=require('../../chunk-4NLMGH2S.cjs');require('../../chunk-MIYL7YKU.cjs'),require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"DropdownMenu",{enumerable:true,get:function(){return chunk4NLMGH2S_cjs.a}});Object.defineProperty(exports,"DropdownMenuCheckboxItem",{enumerable:true,get:function(){return chunk4NLMGH2S_cjs.h}});Object.defineProperty(exports,"DropdownMenuContent",{enumerable:true,get:function(){return chunk4NLMGH2S_cjs.f}});Object.defineProperty(exports,"DropdownMenuGroup",{enumerable:true,get:function(){return chunk4NLMGH2S_cjs.c}});Object.defineProperty(exports,"DropdownMenuItem",{enumerable:true,get:function(){return chunk4NLMGH2S_cjs.g}});Object.defineProperty(exports,"DropdownMenuLabel",{enumerable:true,get:function(){return chunk4NLMGH2S_cjs.j}});Object.defineProperty(exports,"DropdownMenuRadioGroup",{enumerable:true,get:function(){return chunk4NLMGH2S_cjs.e}});Object.defineProperty(exports,"DropdownMenuRadioItem",{enumerable:true,get:function(){return chunk4NLMGH2S_cjs.i}});Object.defineProperty(exports,"DropdownMenuSeparator",{enumerable:true,get:function(){return chunk4NLMGH2S_cjs.k}});Object.defineProperty(exports,"DropdownMenuShortcut",{enumerable:true,get:function(){return chunk4NLMGH2S_cjs.l}});Object.defineProperty(exports,"DropdownMenuSub",{enumerable:true,get:function(){return chunk4NLMGH2S_cjs.d}});Object.defineProperty(exports,"DropdownMenuSubContent",{enumerable:true,get:function(){return chunk4NLMGH2S_cjs.n}});Object.defineProperty(exports,"DropdownMenuSubTrigger",{enumerable:true,get:function(){return chunk4NLMGH2S_cjs.m}});Object.defineProperty(exports,"DropdownMenuTrigger",{enumerable:true,get:function(){return chunk4NLMGH2S_cjs.b}});//# sourceMappingURL=dropdown-menu.cjs.map
|
|
3
3
|
//# sourceMappingURL=dropdown-menu.cjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{a as DropdownMenu,h as DropdownMenuCheckboxItem,f as DropdownMenuContent,c as DropdownMenuGroup,g as DropdownMenuItem,j as DropdownMenuLabel,e as DropdownMenuRadioGroup,i as DropdownMenuRadioItem,k as DropdownMenuSeparator,l as DropdownMenuShortcut,d as DropdownMenuSub,n as DropdownMenuSubContent,m as DropdownMenuSubTrigger,b as DropdownMenuTrigger}from'../../chunk-
|
|
2
|
+
export{a as DropdownMenu,h as DropdownMenuCheckboxItem,f as DropdownMenuContent,c as DropdownMenuGroup,g as DropdownMenuItem,j as DropdownMenuLabel,e as DropdownMenuRadioGroup,i as DropdownMenuRadioItem,k as DropdownMenuSeparator,l as DropdownMenuShortcut,d as DropdownMenuSub,n as DropdownMenuSubContent,m as DropdownMenuSubTrigger,b as DropdownMenuTrigger}from'../../chunk-MM54MZBX.js';import'../../chunk-XYPJ2K22.js';import'../../chunk-AC2JBXHQ.js';//# sourceMappingURL=dropdown-menu.js.map
|
|
3
3
|
//# sourceMappingURL=dropdown-menu.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkE3A4SP3X_cjs=require('../../chunk-E3A4SP3X.cjs');require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"HoverCard",{enumerable:true,get:function(){return chunkE3A4SP3X_cjs.a}});Object.defineProperty(exports,"HoverCardContent",{enumerable:true,get:function(){return chunkE3A4SP3X_cjs.c}});Object.defineProperty(exports,"HoverCardTrigger",{enumerable:true,get:function(){return chunkE3A4SP3X_cjs.b}});//# sourceMappingURL=hover-card.cjs.map
|
|
3
|
+
//# sourceMappingURL=hover-card.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"hover-card.cjs"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A preview that appears on hover: a user card behind a mention, a repository
|
|
6
|
+
* summary behind a link.
|
|
7
|
+
*
|
|
8
|
+
* Not a `Tooltip`. A tooltip labels something in a few words and is announced as
|
|
9
|
+
* the element's description; a hover card holds real content, including links
|
|
10
|
+
* you can move the pointer into.
|
|
11
|
+
*
|
|
12
|
+
* It opens on hover and on keyboard focus, but its content is not reachable by
|
|
13
|
+
* keyboard beyond that, and it never opens on touch. So it has to stay
|
|
14
|
+
* supplementary: everything inside must also be available somewhere else. Radix
|
|
15
|
+
* marks it `aria-hidden` for that reason, which is correct and means a screen
|
|
16
|
+
* reader will not see it at all.
|
|
17
|
+
*/
|
|
18
|
+
declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
|
|
19
|
+
declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
20
|
+
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
|
|
22
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A preview that appears on hover: a user card behind a mention, a repository
|
|
6
|
+
* summary behind a link.
|
|
7
|
+
*
|
|
8
|
+
* Not a `Tooltip`. A tooltip labels something in a few words and is announced as
|
|
9
|
+
* the element's description; a hover card holds real content, including links
|
|
10
|
+
* you can move the pointer into.
|
|
11
|
+
*
|
|
12
|
+
* It opens on hover and on keyboard focus, but its content is not reachable by
|
|
13
|
+
* keyboard beyond that, and it never opens on touch. So it has to stay
|
|
14
|
+
* supplementary: everything inside must also be available somewhere else. Radix
|
|
15
|
+
* marks it `aria-hidden` for that reason, which is correct and means a screen
|
|
16
|
+
* reader will not see it at all.
|
|
17
|
+
*/
|
|
18
|
+
declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
|
|
19
|
+
declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
20
|
+
declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
|
|
22
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"hover-card.js"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkFMIAI6US_cjs=require('../../chunk-FMIAI6US.cjs');require('../../chunk-MIYL7YKU.cjs'),require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"Menubar",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.a}});Object.defineProperty(exports,"MenubarCheckboxItem",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.e}});Object.defineProperty(exports,"MenubarContent",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.c}});Object.defineProperty(exports,"MenubarGroup",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.m}});Object.defineProperty(exports,"MenubarItem",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.d}});Object.defineProperty(exports,"MenubarLabel",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.g}});Object.defineProperty(exports,"MenubarMenu",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.l}});Object.defineProperty(exports,"MenubarRadioGroup",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.o}});Object.defineProperty(exports,"MenubarRadioItem",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.f}});Object.defineProperty(exports,"MenubarSeparator",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.h}});Object.defineProperty(exports,"MenubarShortcut",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.i}});Object.defineProperty(exports,"MenubarSub",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.n}});Object.defineProperty(exports,"MenubarSubContent",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.k}});Object.defineProperty(exports,"MenubarSubTrigger",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.j}});Object.defineProperty(exports,"MenubarTrigger",{enumerable:true,get:function(){return chunkFMIAI6US_cjs.b}});//# sourceMappingURL=menubar.cjs.map
|
|
3
|
+
//# sourceMappingURL=menubar.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"menubar.cjs"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
3
|
+
export { Group as MenubarGroup, Menu as MenubarMenu, RadioGroup as MenubarRadioGroup, Sub as MenubarSub } from '@radix-ui/react-menubar';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The application menu bar: File, Edit, View, each opening its own menu.
|
|
7
|
+
*
|
|
8
|
+
* Its own primitive rather than a row of dropdowns, because a menu bar behaves
|
|
9
|
+
* as one control. Once a menu is open, moving the pointer to a neighbouring
|
|
10
|
+
* trigger opens that one without a click, and the arrow keys move between menus
|
|
11
|
+
* as well as within them. A row of independent `DropdownMenu`s gets none of
|
|
12
|
+
* that.
|
|
13
|
+
*
|
|
14
|
+
* Third component reading from menu-styles, after DropdownMenu and ContextMenu.
|
|
15
|
+
* All three are the same menu to look at, and now cannot drift apart.
|
|
16
|
+
*/
|
|
17
|
+
declare const Menubar: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
|
|
19
|
+
declare const MenubarTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
declare const MenubarContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
interface MenubarItemProps extends React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> {
|
|
22
|
+
destructive?: boolean;
|
|
23
|
+
inset?: boolean;
|
|
24
|
+
}
|
|
25
|
+
declare const MenubarItem: React.ForwardRefExoticComponent<MenubarItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const MenubarRadioItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
29
|
+
inset?: boolean;
|
|
30
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare function MenubarShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
33
|
+
declare namespace MenubarShortcut {
|
|
34
|
+
var displayName: string;
|
|
35
|
+
}
|
|
36
|
+
declare const MenubarSubTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
37
|
+
inset?: boolean;
|
|
38
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
declare const MenubarSubContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
|
|
41
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, type MenubarItemProps, MenubarLabel, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
3
|
+
export { Group as MenubarGroup, Menu as MenubarMenu, RadioGroup as MenubarRadioGroup, Sub as MenubarSub } from '@radix-ui/react-menubar';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The application menu bar: File, Edit, View, each opening its own menu.
|
|
7
|
+
*
|
|
8
|
+
* Its own primitive rather than a row of dropdowns, because a menu bar behaves
|
|
9
|
+
* as one control. Once a menu is open, moving the pointer to a neighbouring
|
|
10
|
+
* trigger opens that one without a click, and the arrow keys move between menus
|
|
11
|
+
* as well as within them. A row of independent `DropdownMenu`s gets none of
|
|
12
|
+
* that.
|
|
13
|
+
*
|
|
14
|
+
* Third component reading from menu-styles, after DropdownMenu and ContextMenu.
|
|
15
|
+
* All three are the same menu to look at, and now cannot drift apart.
|
|
16
|
+
*/
|
|
17
|
+
declare const Menubar: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
|
|
19
|
+
declare const MenubarTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
declare const MenubarContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
interface MenubarItemProps extends React.ComponentPropsWithoutRef<typeof MenubarPrimitive.Item> {
|
|
22
|
+
destructive?: boolean;
|
|
23
|
+
inset?: boolean;
|
|
24
|
+
}
|
|
25
|
+
declare const MenubarItem: React.ForwardRefExoticComponent<MenubarItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const MenubarRadioItem: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
declare const MenubarLabel: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
29
|
+
inset?: boolean;
|
|
30
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
declare const MenubarSeparator: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
|
+
declare function MenubarShortcut({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
33
|
+
declare namespace MenubarShortcut {
|
|
34
|
+
var displayName: string;
|
|
35
|
+
}
|
|
36
|
+
declare const MenubarSubTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
37
|
+
inset?: boolean;
|
|
38
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
declare const MenubarSubContent: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
|
|
41
|
+
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, type MenubarItemProps, MenubarLabel, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export{a as Menubar,e as MenubarCheckboxItem,c as MenubarContent,m as MenubarGroup,d as MenubarItem,g as MenubarLabel,l as MenubarMenu,o as MenubarRadioGroup,f as MenubarRadioItem,h as MenubarSeparator,i as MenubarShortcut,n as MenubarSub,k as MenubarSubContent,j as MenubarSubTrigger,b as MenubarTrigger}from'../../chunk-FTAB43WC.js';import'../../chunk-XYPJ2K22.js';import'../../chunk-AC2JBXHQ.js';//# sourceMappingURL=menubar.js.map
|
|
3
|
+
//# sourceMappingURL=menubar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"menubar.js"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunk45W3AH36_cjs=require('../../chunk-45W3AH36.cjs');require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"NavigationMenu",{enumerable:true,get:function(){return chunk45W3AH36_cjs.a}});Object.defineProperty(exports,"NavigationMenuContent",{enumerable:true,get:function(){return chunk45W3AH36_cjs.f}});Object.defineProperty(exports,"NavigationMenuIndicator",{enumerable:true,get:function(){return chunk45W3AH36_cjs.i}});Object.defineProperty(exports,"NavigationMenuItem",{enumerable:true,get:function(){return chunk45W3AH36_cjs.c}});Object.defineProperty(exports,"NavigationMenuLink",{enumerable:true,get:function(){return chunk45W3AH36_cjs.g}});Object.defineProperty(exports,"NavigationMenuList",{enumerable:true,get:function(){return chunk45W3AH36_cjs.b}});Object.defineProperty(exports,"NavigationMenuTrigger",{enumerable:true,get:function(){return chunk45W3AH36_cjs.e}});Object.defineProperty(exports,"NavigationMenuViewport",{enumerable:true,get:function(){return chunk45W3AH36_cjs.h}});Object.defineProperty(exports,"navigationMenuTriggerStyle",{enumerable:true,get:function(){return chunk45W3AH36_cjs.d}});//# sourceMappingURL=navigation-menu.cjs.map
|
|
3
|
+
//# sourceMappingURL=navigation-menu.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"navigation-menu.cjs"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Site navigation with panels: a header where "Products" opens a grid of links.
|
|
7
|
+
*
|
|
8
|
+
* Not a menu, despite the name. A `DropdownMenu` runs commands and uses menu
|
|
9
|
+
* roles; this is a `<nav>` full of links, and Radix keeps it that way. That
|
|
10
|
+
* distinction is the reason to use this one for site navigation - a screen
|
|
11
|
+
* reader user gets a navigation landmark and a list of links rather than a menu
|
|
12
|
+
* they are expected to act on.
|
|
13
|
+
*
|
|
14
|
+
* The viewport is where the active panel is drawn. It sits outside the list so
|
|
15
|
+
* one panel can animate into the next without the trigger row reflowing, which
|
|
16
|
+
* is why it is a separate component rather than something rendered inside each
|
|
17
|
+
* item.
|
|
18
|
+
*/
|
|
19
|
+
declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
20
|
+
declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
21
|
+
declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
22
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
23
|
+
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
26
|
+
declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
|
|
29
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Site navigation with panels: a header where "Products" opens a grid of links.
|
|
7
|
+
*
|
|
8
|
+
* Not a menu, despite the name. A `DropdownMenu` runs commands and uses menu
|
|
9
|
+
* roles; this is a `<nav>` full of links, and Radix keeps it that way. That
|
|
10
|
+
* distinction is the reason to use this one for site navigation - a screen
|
|
11
|
+
* reader user gets a navigation landmark and a list of links rather than a menu
|
|
12
|
+
* they are expected to act on.
|
|
13
|
+
*
|
|
14
|
+
* The viewport is where the active panel is drawn. It sits outside the list so
|
|
15
|
+
* one panel can animate into the next without the trigger row reflowing, which
|
|
16
|
+
* is why it is a separate component rather than something rendered inside each
|
|
17
|
+
* item.
|
|
18
|
+
*/
|
|
19
|
+
declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
20
|
+
declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React.RefAttributes<HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
21
|
+
declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
22
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
23
|
+
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
+
declare const NavigationMenuContent: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
26
|
+
declare const NavigationMenuViewport: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
|
|
29
|
+
export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export{a as NavigationMenu,f as NavigationMenuContent,i as NavigationMenuIndicator,c as NavigationMenuItem,g as NavigationMenuLink,b as NavigationMenuList,e as NavigationMenuTrigger,h as NavigationMenuViewport,d as navigationMenuTriggerStyle}from'../../chunk-BISYWH74.js';import'../../chunk-AC2JBXHQ.js';//# sourceMappingURL=navigation-menu.js.map
|
|
3
|
+
//# sourceMappingURL=navigation-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"navigation-menu.js"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkCGBIJDZX_cjs=require('../../chunk-CGBIJDZX.cjs');require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"ScrollArea",{enumerable:true,get:function(){return chunkCGBIJDZX_cjs.a}});Object.defineProperty(exports,"ScrollBar",{enumerable:true,get:function(){return chunkCGBIJDZX_cjs.b}});//# sourceMappingURL=scroll-area.cjs.map
|
|
3
|
+
//# sourceMappingURL=scroll-area.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"scroll-area.cjs"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A scrollable region with scrollbars that look the same everywhere.
|
|
6
|
+
*
|
|
7
|
+
* Native scrollbars differ per platform and, on macOS with overlay scrollbars
|
|
8
|
+
* on, are invisible until you scroll. That is fine for a page and awkward for a
|
|
9
|
+
* panel inside one, where the absence of a scrollbar reads as "there is nothing
|
|
10
|
+
* more here".
|
|
11
|
+
*
|
|
12
|
+
* Radix keeps native scrolling and native keyboard behaviour and only replaces
|
|
13
|
+
* the scrollbar's appearance, so wheel, trackpad, touch, Page Up and Home all
|
|
14
|
+
* still work. Worth stating because scrollbar libraries that reimplement
|
|
15
|
+
* scrolling itself usually break at least one of those.
|
|
16
|
+
*/
|
|
17
|
+
interface ScrollAreaProps extends React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> {
|
|
18
|
+
/** Which scrollbars to render. Defaults to vertical. */
|
|
19
|
+
orientation?: "vertical" | "horizontal" | "both";
|
|
20
|
+
/** Passed to the viewport, for a max height or a fixed size. */
|
|
21
|
+
viewportClassName?: string;
|
|
22
|
+
}
|
|
23
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<ScrollAreaProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
|
|
26
|
+
export { ScrollArea, type ScrollAreaProps, ScrollBar };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A scrollable region with scrollbars that look the same everywhere.
|
|
6
|
+
*
|
|
7
|
+
* Native scrollbars differ per platform and, on macOS with overlay scrollbars
|
|
8
|
+
* on, are invisible until you scroll. That is fine for a page and awkward for a
|
|
9
|
+
* panel inside one, where the absence of a scrollbar reads as "there is nothing
|
|
10
|
+
* more here".
|
|
11
|
+
*
|
|
12
|
+
* Radix keeps native scrolling and native keyboard behaviour and only replaces
|
|
13
|
+
* the scrollbar's appearance, so wheel, trackpad, touch, Page Up and Home all
|
|
14
|
+
* still work. Worth stating because scrollbar libraries that reimplement
|
|
15
|
+
* scrolling itself usually break at least one of those.
|
|
16
|
+
*/
|
|
17
|
+
interface ScrollAreaProps extends React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root> {
|
|
18
|
+
/** Which scrollbars to render. Defaults to vertical. */
|
|
19
|
+
orientation?: "vertical" | "horizontal" | "both";
|
|
20
|
+
/** Passed to the viewport, for a max height or a fixed size. */
|
|
21
|
+
viewportClassName?: string;
|
|
22
|
+
}
|
|
23
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<ScrollAreaProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
|
|
26
|
+
export { ScrollArea, type ScrollAreaProps, ScrollBar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"scroll-area.js"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';var chunkQEHKWS7N_cjs=require('../../chunk-QEHKWS7N.cjs');require('../../chunk-ITRGJNWL.cjs');Object.defineProperty(exports,"Slider",{enumerable:true,get:function(){return chunkQEHKWS7N_cjs.c}});Object.defineProperty(exports,"sliderThumbVariants",{enumerable:true,get:function(){return chunkQEHKWS7N_cjs.b}});Object.defineProperty(exports,"sliderTrackVariants",{enumerable:true,get:function(){return chunkQEHKWS7N_cjs.a}});//# sourceMappingURL=slider.cjs.map
|
|
3
|
+
//# sourceMappingURL=slider.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"slider.cjs"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A value picked by dragging along a range: volume, price, opacity.
|
|
8
|
+
*
|
|
9
|
+
* Radix renders one thumb per entry in `value`, so a range slider is the same
|
|
10
|
+
* component with two numbers rather than a separate one. The thumbs are rendered
|
|
11
|
+
* from the value rather than hardcoded here for that reason.
|
|
12
|
+
*/
|
|
13
|
+
declare const sliderTrackVariants: (props?: ({
|
|
14
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
15
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
16
|
+
declare const sliderThumbVariants: (props?: ({
|
|
17
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
18
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
19
|
+
interface SliderProps extends React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>, VariantProps<typeof sliderTrackVariants> {
|
|
20
|
+
/**
|
|
21
|
+
* Label for each thumb, so a screen reader says "Minimum" and "Maximum"
|
|
22
|
+
* rather than "slider" twice. One string labels a single thumb; an array
|
|
23
|
+
* labels them in order.
|
|
24
|
+
*/
|
|
25
|
+
thumbLabel?: string | string[];
|
|
26
|
+
}
|
|
27
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
28
|
+
|
|
29
|
+
export { Slider, type SliderProps, sliderThumbVariants, sliderTrackVariants };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A value picked by dragging along a range: volume, price, opacity.
|
|
8
|
+
*
|
|
9
|
+
* Radix renders one thumb per entry in `value`, so a range slider is the same
|
|
10
|
+
* component with two numbers rather than a separate one. The thumbs are rendered
|
|
11
|
+
* from the value rather than hardcoded here for that reason.
|
|
12
|
+
*/
|
|
13
|
+
declare const sliderTrackVariants: (props?: ({
|
|
14
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
15
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
16
|
+
declare const sliderThumbVariants: (props?: ({
|
|
17
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
18
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
19
|
+
interface SliderProps extends React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>, VariantProps<typeof sliderTrackVariants> {
|
|
20
|
+
/**
|
|
21
|
+
* Label for each thumb, so a screen reader says "Minimum" and "Maximum"
|
|
22
|
+
* rather than "slider" twice. One string labels a single thumb; an array
|
|
23
|
+
* labels them in order.
|
|
24
|
+
*/
|
|
25
|
+
thumbLabel?: string | string[];
|
|
26
|
+
}
|
|
27
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
28
|
+
|
|
29
|
+
export { Slider, type SliderProps, sliderThumbVariants, sliderTrackVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"slider.js"}
|