@medway-ui/core 0.3.17 → 0.3.19
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.d.mts +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -145,6 +145,53 @@ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...p
|
|
|
145
145
|
isActive?: boolean;
|
|
146
146
|
}): react_jsx_runtime.JSX.Element;
|
|
147
147
|
|
|
148
|
+
interface SwitcherProps {
|
|
149
|
+
children: React$1.ReactNode;
|
|
150
|
+
value?: string;
|
|
151
|
+
onValueChange?: (value: string) => void;
|
|
152
|
+
}
|
|
153
|
+
interface SwitcherTriggerProps {
|
|
154
|
+
children: React$1.ReactNode;
|
|
155
|
+
asChild?: boolean;
|
|
156
|
+
}
|
|
157
|
+
interface SwitcherContentProps {
|
|
158
|
+
children: React$1.ReactNode;
|
|
159
|
+
align?: "start" | "center" | "end";
|
|
160
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
161
|
+
}
|
|
162
|
+
interface SwitcherGroupProps {
|
|
163
|
+
children: React$1.ReactNode;
|
|
164
|
+
label?: string;
|
|
165
|
+
}
|
|
166
|
+
interface SwitcherItemProps {
|
|
167
|
+
children: React$1.ReactNode;
|
|
168
|
+
value?: string;
|
|
169
|
+
onClick?: () => void;
|
|
170
|
+
icon?: string | React$1.ReactNode;
|
|
171
|
+
}
|
|
172
|
+
interface SwitcherFooterProps {
|
|
173
|
+
children: React$1.ReactNode;
|
|
174
|
+
onClick?: () => void;
|
|
175
|
+
icon?: React$1.ReactNode;
|
|
176
|
+
}
|
|
177
|
+
declare function Switcher({ children, value, onValueChange }: SwitcherProps): react_jsx_runtime.JSX.Element;
|
|
178
|
+
declare function SwitcherTrigger({ children, asChild }: SwitcherTriggerProps): react_jsx_runtime.JSX.Element;
|
|
179
|
+
declare function SwitcherContent({ children, align, side, }: SwitcherContentProps): react_jsx_runtime.JSX.Element;
|
|
180
|
+
interface SwitcherGroup {
|
|
181
|
+
label: string;
|
|
182
|
+
items: SwitcherItem[];
|
|
183
|
+
}
|
|
184
|
+
declare function SwitcherGroup({ children, label }: SwitcherGroupProps): react_jsx_runtime.JSX.Element;
|
|
185
|
+
interface SwitcherItem {
|
|
186
|
+
id: string;
|
|
187
|
+
label: string;
|
|
188
|
+
icon?: string;
|
|
189
|
+
onClick?: () => void;
|
|
190
|
+
}
|
|
191
|
+
declare function SwitcherItem({ children, value, onClick, icon }: SwitcherItemProps): react_jsx_runtime.JSX.Element;
|
|
192
|
+
declare function SwitcherFooter({ children, onClick, icon }: SwitcherFooterProps): react_jsx_runtime.JSX.Element;
|
|
193
|
+
declare function SwitcherSeparator(): react_jsx_runtime.JSX.Element;
|
|
194
|
+
|
|
148
195
|
declare function useIsMobile(): boolean;
|
|
149
196
|
|
|
150
|
-
export { Avatar, AvatarFallback, AvatarImage, Button, Collapsible, CollapsibleContent, CollapsibleTrigger, Input, Loading, Logo, LogoShort, Separator, Sheet, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Tooltip, buttonVariants, useIsMobile, useSidebar };
|
|
197
|
+
export { Avatar, AvatarFallback, AvatarImage, Button, Collapsible, CollapsibleContent, CollapsibleTrigger, Input, Loading, Logo, LogoShort, Separator, Sheet, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Switcher, SwitcherContent, SwitcherFooter, SwitcherGroup, SwitcherItem, SwitcherSeparator, SwitcherTrigger, Tooltip, buttonVariants, useIsMobile, useSidebar };
|
package/dist/index.d.ts
CHANGED
|
@@ -145,6 +145,53 @@ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...p
|
|
|
145
145
|
isActive?: boolean;
|
|
146
146
|
}): react_jsx_runtime.JSX.Element;
|
|
147
147
|
|
|
148
|
+
interface SwitcherProps {
|
|
149
|
+
children: React$1.ReactNode;
|
|
150
|
+
value?: string;
|
|
151
|
+
onValueChange?: (value: string) => void;
|
|
152
|
+
}
|
|
153
|
+
interface SwitcherTriggerProps {
|
|
154
|
+
children: React$1.ReactNode;
|
|
155
|
+
asChild?: boolean;
|
|
156
|
+
}
|
|
157
|
+
interface SwitcherContentProps {
|
|
158
|
+
children: React$1.ReactNode;
|
|
159
|
+
align?: "start" | "center" | "end";
|
|
160
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
161
|
+
}
|
|
162
|
+
interface SwitcherGroupProps {
|
|
163
|
+
children: React$1.ReactNode;
|
|
164
|
+
label?: string;
|
|
165
|
+
}
|
|
166
|
+
interface SwitcherItemProps {
|
|
167
|
+
children: React$1.ReactNode;
|
|
168
|
+
value?: string;
|
|
169
|
+
onClick?: () => void;
|
|
170
|
+
icon?: string | React$1.ReactNode;
|
|
171
|
+
}
|
|
172
|
+
interface SwitcherFooterProps {
|
|
173
|
+
children: React$1.ReactNode;
|
|
174
|
+
onClick?: () => void;
|
|
175
|
+
icon?: React$1.ReactNode;
|
|
176
|
+
}
|
|
177
|
+
declare function Switcher({ children, value, onValueChange }: SwitcherProps): react_jsx_runtime.JSX.Element;
|
|
178
|
+
declare function SwitcherTrigger({ children, asChild }: SwitcherTriggerProps): react_jsx_runtime.JSX.Element;
|
|
179
|
+
declare function SwitcherContent({ children, align, side, }: SwitcherContentProps): react_jsx_runtime.JSX.Element;
|
|
180
|
+
interface SwitcherGroup {
|
|
181
|
+
label: string;
|
|
182
|
+
items: SwitcherItem[];
|
|
183
|
+
}
|
|
184
|
+
declare function SwitcherGroup({ children, label }: SwitcherGroupProps): react_jsx_runtime.JSX.Element;
|
|
185
|
+
interface SwitcherItem {
|
|
186
|
+
id: string;
|
|
187
|
+
label: string;
|
|
188
|
+
icon?: string;
|
|
189
|
+
onClick?: () => void;
|
|
190
|
+
}
|
|
191
|
+
declare function SwitcherItem({ children, value, onClick, icon }: SwitcherItemProps): react_jsx_runtime.JSX.Element;
|
|
192
|
+
declare function SwitcherFooter({ children, onClick, icon }: SwitcherFooterProps): react_jsx_runtime.JSX.Element;
|
|
193
|
+
declare function SwitcherSeparator(): react_jsx_runtime.JSX.Element;
|
|
194
|
+
|
|
148
195
|
declare function useIsMobile(): boolean;
|
|
149
196
|
|
|
150
|
-
export { Avatar, AvatarFallback, AvatarImage, Button, Collapsible, CollapsibleContent, CollapsibleTrigger, Input, Loading, Logo, LogoShort, Separator, Sheet, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Tooltip, buttonVariants, useIsMobile, useSidebar };
|
|
197
|
+
export { Avatar, AvatarFallback, AvatarImage, Button, Collapsible, CollapsibleContent, CollapsibleTrigger, Input, Loading, Logo, LogoShort, Separator, Sheet, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Switcher, SwitcherContent, SwitcherFooter, SwitcherGroup, SwitcherItem, SwitcherSeparator, SwitcherTrigger, Tooltip, buttonVariants, useIsMobile, useSidebar };
|