@radix-solid-js/menubar 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +477 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +158 -0
- package/dist/index.d.ts +158 -0
- package/dist/index.js +422 -0
- package/dist/index.js.map +1 -0
- package/package.json +61 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import * as _radix_solid_js_context from '@radix-solid-js/context';
|
|
2
|
+
import { Scope } from '@radix-solid-js/context';
|
|
3
|
+
import { JSX } from 'solid-js';
|
|
4
|
+
import * as MenuPrimitive from '@radix-solid-js/menu';
|
|
5
|
+
import { Direction } from '@radix-solid-js/direction';
|
|
6
|
+
|
|
7
|
+
type ScopedProps<P> = P & {
|
|
8
|
+
__scopeMenubar?: Scope;
|
|
9
|
+
};
|
|
10
|
+
declare const createMenubarScope: _radix_solid_js_context.CreateScope;
|
|
11
|
+
interface MenubarProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
value?: string;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
onValueChange?: (value: string) => void;
|
|
15
|
+
loop?: boolean;
|
|
16
|
+
dir?: Direction;
|
|
17
|
+
ref?: (el: HTMLElement) => void;
|
|
18
|
+
}
|
|
19
|
+
declare function Menubar(inProps: ScopedProps<MenubarProps>): JSX.Element;
|
|
20
|
+
declare namespace Menubar {
|
|
21
|
+
var displayName: string;
|
|
22
|
+
}
|
|
23
|
+
interface MenubarMenuProps {
|
|
24
|
+
value?: string;
|
|
25
|
+
children?: JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
declare function MenubarMenu(inProps: ScopedProps<MenubarMenuProps>): JSX.Element;
|
|
28
|
+
declare namespace MenubarMenu {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
31
|
+
interface MenubarTriggerProps extends JSX.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
32
|
+
ref?: (el: HTMLElement) => void;
|
|
33
|
+
}
|
|
34
|
+
declare function MenubarTrigger(inProps: ScopedProps<MenubarTriggerProps>): JSX.Element;
|
|
35
|
+
declare namespace MenubarTrigger {
|
|
36
|
+
var displayName: string;
|
|
37
|
+
}
|
|
38
|
+
interface MenubarPortalProps extends MenuPrimitive.MenuPortalProps {
|
|
39
|
+
}
|
|
40
|
+
declare function MenubarPortal(inProps: ScopedProps<MenubarPortalProps>): JSX.Element;
|
|
41
|
+
declare namespace MenubarPortal {
|
|
42
|
+
var displayName: string;
|
|
43
|
+
}
|
|
44
|
+
interface MenubarContentProps extends Omit<MenuPrimitive.MenuContentProps, 'onEntryFocus'> {
|
|
45
|
+
ref?: (el: HTMLElement) => void;
|
|
46
|
+
style?: JSX.CSSProperties;
|
|
47
|
+
}
|
|
48
|
+
declare function MenubarContent(inProps: ScopedProps<MenubarContentProps>): JSX.Element;
|
|
49
|
+
declare namespace MenubarContent {
|
|
50
|
+
var displayName: string;
|
|
51
|
+
}
|
|
52
|
+
interface MenubarGroupProps extends MenuPrimitive.MenuGroupProps {
|
|
53
|
+
ref?: (el: HTMLElement) => void;
|
|
54
|
+
}
|
|
55
|
+
declare function MenubarGroup(inProps: ScopedProps<MenubarGroupProps>): JSX.Element;
|
|
56
|
+
declare namespace MenubarGroup {
|
|
57
|
+
var displayName: string;
|
|
58
|
+
}
|
|
59
|
+
interface MenubarLabelProps extends MenuPrimitive.MenuLabelProps {
|
|
60
|
+
ref?: (el: HTMLElement) => void;
|
|
61
|
+
}
|
|
62
|
+
declare function MenubarLabel(inProps: ScopedProps<MenubarLabelProps>): JSX.Element;
|
|
63
|
+
declare namespace MenubarLabel {
|
|
64
|
+
var displayName: string;
|
|
65
|
+
}
|
|
66
|
+
interface MenubarItemProps extends MenuPrimitive.MenuItemProps {
|
|
67
|
+
ref?: (el: HTMLElement) => void;
|
|
68
|
+
}
|
|
69
|
+
declare function MenubarItem(inProps: ScopedProps<MenubarItemProps>): JSX.Element;
|
|
70
|
+
declare namespace MenubarItem {
|
|
71
|
+
var displayName: string;
|
|
72
|
+
}
|
|
73
|
+
interface MenubarCheckboxItemProps extends MenuPrimitive.MenuCheckboxItemProps {
|
|
74
|
+
ref?: (el: HTMLElement) => void;
|
|
75
|
+
}
|
|
76
|
+
declare function MenubarCheckboxItem(inProps: ScopedProps<MenubarCheckboxItemProps>): JSX.Element;
|
|
77
|
+
declare namespace MenubarCheckboxItem {
|
|
78
|
+
var displayName: string;
|
|
79
|
+
}
|
|
80
|
+
interface MenubarRadioGroupProps extends MenuPrimitive.MenuRadioGroupProps {
|
|
81
|
+
ref?: (el: HTMLElement) => void;
|
|
82
|
+
}
|
|
83
|
+
declare function MenubarRadioGroup(inProps: ScopedProps<MenubarRadioGroupProps>): JSX.Element;
|
|
84
|
+
declare namespace MenubarRadioGroup {
|
|
85
|
+
var displayName: string;
|
|
86
|
+
}
|
|
87
|
+
interface MenubarRadioItemProps extends MenuPrimitive.MenuRadioItemProps {
|
|
88
|
+
ref?: (el: HTMLElement) => void;
|
|
89
|
+
}
|
|
90
|
+
declare function MenubarRadioItem(inProps: ScopedProps<MenubarRadioItemProps>): JSX.Element;
|
|
91
|
+
declare namespace MenubarRadioItem {
|
|
92
|
+
var displayName: string;
|
|
93
|
+
}
|
|
94
|
+
interface MenubarItemIndicatorProps extends MenuPrimitive.MenuItemIndicatorProps {
|
|
95
|
+
ref?: (el: HTMLElement) => void;
|
|
96
|
+
}
|
|
97
|
+
declare function MenubarItemIndicator(inProps: ScopedProps<MenubarItemIndicatorProps>): JSX.Element;
|
|
98
|
+
declare namespace MenubarItemIndicator {
|
|
99
|
+
var displayName: string;
|
|
100
|
+
}
|
|
101
|
+
interface MenubarSeparatorProps extends MenuPrimitive.MenuSeparatorProps {
|
|
102
|
+
ref?: (el: HTMLElement) => void;
|
|
103
|
+
}
|
|
104
|
+
declare function MenubarSeparator(inProps: ScopedProps<MenubarSeparatorProps>): JSX.Element;
|
|
105
|
+
declare namespace MenubarSeparator {
|
|
106
|
+
var displayName: string;
|
|
107
|
+
}
|
|
108
|
+
interface MenubarArrowProps extends MenuPrimitive.MenuArrowProps {
|
|
109
|
+
ref?: (el: SVGSVGElement) => void;
|
|
110
|
+
}
|
|
111
|
+
declare function MenubarArrow(inProps: ScopedProps<MenubarArrowProps>): JSX.Element;
|
|
112
|
+
declare namespace MenubarArrow {
|
|
113
|
+
var displayName: string;
|
|
114
|
+
}
|
|
115
|
+
interface MenubarSubProps {
|
|
116
|
+
children?: JSX.Element;
|
|
117
|
+
open?: boolean;
|
|
118
|
+
defaultOpen?: boolean;
|
|
119
|
+
onOpenChange?(open: boolean): void;
|
|
120
|
+
}
|
|
121
|
+
declare function MenubarSub(inProps: ScopedProps<MenubarSubProps>): JSX.Element;
|
|
122
|
+
declare namespace MenubarSub {
|
|
123
|
+
var displayName: string;
|
|
124
|
+
}
|
|
125
|
+
interface MenubarSubTriggerProps extends MenuPrimitive.MenuSubTriggerProps {
|
|
126
|
+
ref?: (el: HTMLElement) => void;
|
|
127
|
+
}
|
|
128
|
+
declare function MenubarSubTrigger(inProps: ScopedProps<MenubarSubTriggerProps>): JSX.Element;
|
|
129
|
+
declare namespace MenubarSubTrigger {
|
|
130
|
+
var displayName: string;
|
|
131
|
+
}
|
|
132
|
+
interface MenubarSubContentProps extends MenuPrimitive.MenuSubContentProps {
|
|
133
|
+
ref?: (el: HTMLElement) => void;
|
|
134
|
+
style?: JSX.CSSProperties;
|
|
135
|
+
}
|
|
136
|
+
declare function MenubarSubContent(inProps: ScopedProps<MenubarSubContentProps>): JSX.Element;
|
|
137
|
+
declare namespace MenubarSubContent {
|
|
138
|
+
var displayName: string;
|
|
139
|
+
}
|
|
140
|
+
declare const Root: typeof Menubar;
|
|
141
|
+
declare const Menu: typeof MenubarMenu;
|
|
142
|
+
declare const Trigger: typeof MenubarTrigger;
|
|
143
|
+
declare const Portal: typeof MenubarPortal;
|
|
144
|
+
declare const Content: typeof MenubarContent;
|
|
145
|
+
declare const Group: typeof MenubarGroup;
|
|
146
|
+
declare const Label: typeof MenubarLabel;
|
|
147
|
+
declare const Item: typeof MenubarItem;
|
|
148
|
+
declare const CheckboxItem: typeof MenubarCheckboxItem;
|
|
149
|
+
declare const RadioGroup: typeof MenubarRadioGroup;
|
|
150
|
+
declare const RadioItem: typeof MenubarRadioItem;
|
|
151
|
+
declare const ItemIndicator: typeof MenubarItemIndicator;
|
|
152
|
+
declare const Separator: typeof MenubarSeparator;
|
|
153
|
+
declare const Arrow: typeof MenubarArrow;
|
|
154
|
+
declare const Sub: typeof MenubarSub;
|
|
155
|
+
declare const SubTrigger: typeof MenubarSubTrigger;
|
|
156
|
+
declare const SubContent: typeof MenubarSubContent;
|
|
157
|
+
|
|
158
|
+
export { Arrow, CheckboxItem, Content, Group, Item, ItemIndicator, Label, Menu, Menubar, MenubarArrow, type MenubarArrowProps, MenubarCheckboxItem, type MenubarCheckboxItemProps, MenubarContent, type MenubarContentProps, MenubarGroup, type MenubarGroupProps, MenubarItem, MenubarItemIndicator, type MenubarItemIndicatorProps, type MenubarItemProps, MenubarLabel, type MenubarLabelProps, MenubarMenu, type MenubarMenuProps, MenubarPortal, type MenubarPortalProps, type MenubarProps, MenubarRadioGroup, type MenubarRadioGroupProps, MenubarRadioItem, type MenubarRadioItemProps, MenubarSeparator, type MenubarSeparatorProps, MenubarSub, MenubarSubContent, type MenubarSubContentProps, type MenubarSubProps, MenubarSubTrigger, type MenubarSubTriggerProps, MenubarTrigger, type MenubarTriggerProps, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger, createMenubarScope };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import * as _radix_solid_js_context from '@radix-solid-js/context';
|
|
2
|
+
import { Scope } from '@radix-solid-js/context';
|
|
3
|
+
import { JSX } from 'solid-js';
|
|
4
|
+
import * as MenuPrimitive from '@radix-solid-js/menu';
|
|
5
|
+
import { Direction } from '@radix-solid-js/direction';
|
|
6
|
+
|
|
7
|
+
type ScopedProps<P> = P & {
|
|
8
|
+
__scopeMenubar?: Scope;
|
|
9
|
+
};
|
|
10
|
+
declare const createMenubarScope: _radix_solid_js_context.CreateScope;
|
|
11
|
+
interface MenubarProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
value?: string;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
onValueChange?: (value: string) => void;
|
|
15
|
+
loop?: boolean;
|
|
16
|
+
dir?: Direction;
|
|
17
|
+
ref?: (el: HTMLElement) => void;
|
|
18
|
+
}
|
|
19
|
+
declare function Menubar(inProps: ScopedProps<MenubarProps>): JSX.Element;
|
|
20
|
+
declare namespace Menubar {
|
|
21
|
+
var displayName: string;
|
|
22
|
+
}
|
|
23
|
+
interface MenubarMenuProps {
|
|
24
|
+
value?: string;
|
|
25
|
+
children?: JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
declare function MenubarMenu(inProps: ScopedProps<MenubarMenuProps>): JSX.Element;
|
|
28
|
+
declare namespace MenubarMenu {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
31
|
+
interface MenubarTriggerProps extends JSX.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
32
|
+
ref?: (el: HTMLElement) => void;
|
|
33
|
+
}
|
|
34
|
+
declare function MenubarTrigger(inProps: ScopedProps<MenubarTriggerProps>): JSX.Element;
|
|
35
|
+
declare namespace MenubarTrigger {
|
|
36
|
+
var displayName: string;
|
|
37
|
+
}
|
|
38
|
+
interface MenubarPortalProps extends MenuPrimitive.MenuPortalProps {
|
|
39
|
+
}
|
|
40
|
+
declare function MenubarPortal(inProps: ScopedProps<MenubarPortalProps>): JSX.Element;
|
|
41
|
+
declare namespace MenubarPortal {
|
|
42
|
+
var displayName: string;
|
|
43
|
+
}
|
|
44
|
+
interface MenubarContentProps extends Omit<MenuPrimitive.MenuContentProps, 'onEntryFocus'> {
|
|
45
|
+
ref?: (el: HTMLElement) => void;
|
|
46
|
+
style?: JSX.CSSProperties;
|
|
47
|
+
}
|
|
48
|
+
declare function MenubarContent(inProps: ScopedProps<MenubarContentProps>): JSX.Element;
|
|
49
|
+
declare namespace MenubarContent {
|
|
50
|
+
var displayName: string;
|
|
51
|
+
}
|
|
52
|
+
interface MenubarGroupProps extends MenuPrimitive.MenuGroupProps {
|
|
53
|
+
ref?: (el: HTMLElement) => void;
|
|
54
|
+
}
|
|
55
|
+
declare function MenubarGroup(inProps: ScopedProps<MenubarGroupProps>): JSX.Element;
|
|
56
|
+
declare namespace MenubarGroup {
|
|
57
|
+
var displayName: string;
|
|
58
|
+
}
|
|
59
|
+
interface MenubarLabelProps extends MenuPrimitive.MenuLabelProps {
|
|
60
|
+
ref?: (el: HTMLElement) => void;
|
|
61
|
+
}
|
|
62
|
+
declare function MenubarLabel(inProps: ScopedProps<MenubarLabelProps>): JSX.Element;
|
|
63
|
+
declare namespace MenubarLabel {
|
|
64
|
+
var displayName: string;
|
|
65
|
+
}
|
|
66
|
+
interface MenubarItemProps extends MenuPrimitive.MenuItemProps {
|
|
67
|
+
ref?: (el: HTMLElement) => void;
|
|
68
|
+
}
|
|
69
|
+
declare function MenubarItem(inProps: ScopedProps<MenubarItemProps>): JSX.Element;
|
|
70
|
+
declare namespace MenubarItem {
|
|
71
|
+
var displayName: string;
|
|
72
|
+
}
|
|
73
|
+
interface MenubarCheckboxItemProps extends MenuPrimitive.MenuCheckboxItemProps {
|
|
74
|
+
ref?: (el: HTMLElement) => void;
|
|
75
|
+
}
|
|
76
|
+
declare function MenubarCheckboxItem(inProps: ScopedProps<MenubarCheckboxItemProps>): JSX.Element;
|
|
77
|
+
declare namespace MenubarCheckboxItem {
|
|
78
|
+
var displayName: string;
|
|
79
|
+
}
|
|
80
|
+
interface MenubarRadioGroupProps extends MenuPrimitive.MenuRadioGroupProps {
|
|
81
|
+
ref?: (el: HTMLElement) => void;
|
|
82
|
+
}
|
|
83
|
+
declare function MenubarRadioGroup(inProps: ScopedProps<MenubarRadioGroupProps>): JSX.Element;
|
|
84
|
+
declare namespace MenubarRadioGroup {
|
|
85
|
+
var displayName: string;
|
|
86
|
+
}
|
|
87
|
+
interface MenubarRadioItemProps extends MenuPrimitive.MenuRadioItemProps {
|
|
88
|
+
ref?: (el: HTMLElement) => void;
|
|
89
|
+
}
|
|
90
|
+
declare function MenubarRadioItem(inProps: ScopedProps<MenubarRadioItemProps>): JSX.Element;
|
|
91
|
+
declare namespace MenubarRadioItem {
|
|
92
|
+
var displayName: string;
|
|
93
|
+
}
|
|
94
|
+
interface MenubarItemIndicatorProps extends MenuPrimitive.MenuItemIndicatorProps {
|
|
95
|
+
ref?: (el: HTMLElement) => void;
|
|
96
|
+
}
|
|
97
|
+
declare function MenubarItemIndicator(inProps: ScopedProps<MenubarItemIndicatorProps>): JSX.Element;
|
|
98
|
+
declare namespace MenubarItemIndicator {
|
|
99
|
+
var displayName: string;
|
|
100
|
+
}
|
|
101
|
+
interface MenubarSeparatorProps extends MenuPrimitive.MenuSeparatorProps {
|
|
102
|
+
ref?: (el: HTMLElement) => void;
|
|
103
|
+
}
|
|
104
|
+
declare function MenubarSeparator(inProps: ScopedProps<MenubarSeparatorProps>): JSX.Element;
|
|
105
|
+
declare namespace MenubarSeparator {
|
|
106
|
+
var displayName: string;
|
|
107
|
+
}
|
|
108
|
+
interface MenubarArrowProps extends MenuPrimitive.MenuArrowProps {
|
|
109
|
+
ref?: (el: SVGSVGElement) => void;
|
|
110
|
+
}
|
|
111
|
+
declare function MenubarArrow(inProps: ScopedProps<MenubarArrowProps>): JSX.Element;
|
|
112
|
+
declare namespace MenubarArrow {
|
|
113
|
+
var displayName: string;
|
|
114
|
+
}
|
|
115
|
+
interface MenubarSubProps {
|
|
116
|
+
children?: JSX.Element;
|
|
117
|
+
open?: boolean;
|
|
118
|
+
defaultOpen?: boolean;
|
|
119
|
+
onOpenChange?(open: boolean): void;
|
|
120
|
+
}
|
|
121
|
+
declare function MenubarSub(inProps: ScopedProps<MenubarSubProps>): JSX.Element;
|
|
122
|
+
declare namespace MenubarSub {
|
|
123
|
+
var displayName: string;
|
|
124
|
+
}
|
|
125
|
+
interface MenubarSubTriggerProps extends MenuPrimitive.MenuSubTriggerProps {
|
|
126
|
+
ref?: (el: HTMLElement) => void;
|
|
127
|
+
}
|
|
128
|
+
declare function MenubarSubTrigger(inProps: ScopedProps<MenubarSubTriggerProps>): JSX.Element;
|
|
129
|
+
declare namespace MenubarSubTrigger {
|
|
130
|
+
var displayName: string;
|
|
131
|
+
}
|
|
132
|
+
interface MenubarSubContentProps extends MenuPrimitive.MenuSubContentProps {
|
|
133
|
+
ref?: (el: HTMLElement) => void;
|
|
134
|
+
style?: JSX.CSSProperties;
|
|
135
|
+
}
|
|
136
|
+
declare function MenubarSubContent(inProps: ScopedProps<MenubarSubContentProps>): JSX.Element;
|
|
137
|
+
declare namespace MenubarSubContent {
|
|
138
|
+
var displayName: string;
|
|
139
|
+
}
|
|
140
|
+
declare const Root: typeof Menubar;
|
|
141
|
+
declare const Menu: typeof MenubarMenu;
|
|
142
|
+
declare const Trigger: typeof MenubarTrigger;
|
|
143
|
+
declare const Portal: typeof MenubarPortal;
|
|
144
|
+
declare const Content: typeof MenubarContent;
|
|
145
|
+
declare const Group: typeof MenubarGroup;
|
|
146
|
+
declare const Label: typeof MenubarLabel;
|
|
147
|
+
declare const Item: typeof MenubarItem;
|
|
148
|
+
declare const CheckboxItem: typeof MenubarCheckboxItem;
|
|
149
|
+
declare const RadioGroup: typeof MenubarRadioGroup;
|
|
150
|
+
declare const RadioItem: typeof MenubarRadioItem;
|
|
151
|
+
declare const ItemIndicator: typeof MenubarItemIndicator;
|
|
152
|
+
declare const Separator: typeof MenubarSeparator;
|
|
153
|
+
declare const Arrow: typeof MenubarArrow;
|
|
154
|
+
declare const Sub: typeof MenubarSub;
|
|
155
|
+
declare const SubTrigger: typeof MenubarSubTrigger;
|
|
156
|
+
declare const SubContent: typeof MenubarSubContent;
|
|
157
|
+
|
|
158
|
+
export { Arrow, CheckboxItem, Content, Group, Item, ItemIndicator, Label, Menu, Menubar, MenubarArrow, type MenubarArrowProps, MenubarCheckboxItem, type MenubarCheckboxItemProps, MenubarContent, type MenubarContentProps, MenubarGroup, type MenubarGroupProps, MenubarItem, MenubarItemIndicator, type MenubarItemIndicatorProps, type MenubarItemProps, MenubarLabel, type MenubarLabelProps, MenubarMenu, type MenubarMenuProps, MenubarPortal, type MenubarPortalProps, type MenubarProps, MenubarRadioGroup, type MenubarRadioGroupProps, MenubarRadioItem, type MenubarRadioItemProps, MenubarSeparator, type MenubarSeparatorProps, MenubarSub, MenubarSubContent, type MenubarSubContentProps, type MenubarSubProps, MenubarSubTrigger, type MenubarSubTriggerProps, MenubarTrigger, type MenubarTriggerProps, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger, createMenubarScope };
|