@medway-ui/core 0.4.4 → 0.4.6

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 CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
3
  import * as React from 'react';
4
- import React__default from 'react';
5
4
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
6
5
  import { VariantProps } from 'class-variance-authority';
7
6
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
@@ -175,6 +174,9 @@ interface SwitcherProps {
175
174
  children: React.ReactNode;
176
175
  value?: string;
177
176
  onValueChange?: (value: string) => void;
177
+ open?: boolean;
178
+ defaultOpen?: boolean;
179
+ onOpenChange?: (open: boolean) => void;
178
180
  }
179
181
  interface SwitcherTriggerProps {
180
182
  children: React.ReactNode;
@@ -202,7 +204,7 @@ interface SwitcherFooterProps {
202
204
  onClick?: () => void;
203
205
  icon?: React.ReactNode;
204
206
  }
205
- declare function Switcher({ children, value, onValueChange }: SwitcherProps): react_jsx_runtime.JSX.Element;
207
+ declare function Switcher({ children, value, onValueChange, open, defaultOpen, onOpenChange, }: SwitcherProps): react_jsx_runtime.JSX.Element;
206
208
  declare function SwitcherTrigger({ children, asChild, className, }: SwitcherTriggerProps): react_jsx_runtime.JSX.Element;
207
209
  declare function SwitcherContent({ children, align, side, className, }: SwitcherContentProps): react_jsx_runtime.JSX.Element;
208
210
  interface SwitcherGroup {
@@ -238,42 +240,6 @@ declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<Alert
238
240
  declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
239
241
  declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
240
242
 
241
- interface TourStep {
242
- content: React__default.ReactNode;
243
- selectorId: string;
244
- width?: number;
245
- height?: number;
246
- onClickWithinArea?: () => void;
247
- onNextClick?: () => void;
248
- onPreviousClick?: () => void;
249
- position?: "top" | "bottom" | "left" | "right";
250
- offsetX?: number;
251
- offsetY?: number;
252
- highlightOffsetX?: number;
253
- highlightOffsetY?: number;
254
- }
255
- interface TourContextType {
256
- currentStep: number;
257
- totalSteps: number;
258
- nextStep: () => void;
259
- previousStep: () => void;
260
- endTour: () => void;
261
- isActive: boolean;
262
- startTour: () => void;
263
- setSteps: (steps: TourStep[]) => void;
264
- steps: TourStep[];
265
- isTourCompleted: boolean;
266
- setIsTourCompleted: (completed: boolean) => void;
267
- }
268
- interface TourProviderProps {
269
- children: React__default.ReactNode;
270
- onComplete?: () => void;
271
- className?: string;
272
- isTourCompleted?: boolean;
273
- }
274
- declare function TourProvider({ children, onComplete, className, isTourCompleted, }: TourProviderProps): react_jsx_runtime.JSX.Element;
275
- declare function useTour(): TourContextType;
276
-
277
243
  declare function useIsMobile(): boolean;
278
244
 
279
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Button, Collapsible, CollapsibleContent, CollapsibleTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, 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, TourProvider, type TourStep, buttonVariants, useIsMobile, useSidebar, useTour };
245
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Button, Collapsible, CollapsibleContent, CollapsibleTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, 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
@@ -1,7 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
3
  import * as React from 'react';
4
- import React__default from 'react';
5
4
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
6
5
  import { VariantProps } from 'class-variance-authority';
7
6
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
@@ -175,6 +174,9 @@ interface SwitcherProps {
175
174
  children: React.ReactNode;
176
175
  value?: string;
177
176
  onValueChange?: (value: string) => void;
177
+ open?: boolean;
178
+ defaultOpen?: boolean;
179
+ onOpenChange?: (open: boolean) => void;
178
180
  }
179
181
  interface SwitcherTriggerProps {
180
182
  children: React.ReactNode;
@@ -202,7 +204,7 @@ interface SwitcherFooterProps {
202
204
  onClick?: () => void;
203
205
  icon?: React.ReactNode;
204
206
  }
205
- declare function Switcher({ children, value, onValueChange }: SwitcherProps): react_jsx_runtime.JSX.Element;
207
+ declare function Switcher({ children, value, onValueChange, open, defaultOpen, onOpenChange, }: SwitcherProps): react_jsx_runtime.JSX.Element;
206
208
  declare function SwitcherTrigger({ children, asChild, className, }: SwitcherTriggerProps): react_jsx_runtime.JSX.Element;
207
209
  declare function SwitcherContent({ children, align, side, className, }: SwitcherContentProps): react_jsx_runtime.JSX.Element;
208
210
  interface SwitcherGroup {
@@ -238,42 +240,6 @@ declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<Alert
238
240
  declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
239
241
  declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
240
242
 
241
- interface TourStep {
242
- content: React__default.ReactNode;
243
- selectorId: string;
244
- width?: number;
245
- height?: number;
246
- onClickWithinArea?: () => void;
247
- onNextClick?: () => void;
248
- onPreviousClick?: () => void;
249
- position?: "top" | "bottom" | "left" | "right";
250
- offsetX?: number;
251
- offsetY?: number;
252
- highlightOffsetX?: number;
253
- highlightOffsetY?: number;
254
- }
255
- interface TourContextType {
256
- currentStep: number;
257
- totalSteps: number;
258
- nextStep: () => void;
259
- previousStep: () => void;
260
- endTour: () => void;
261
- isActive: boolean;
262
- startTour: () => void;
263
- setSteps: (steps: TourStep[]) => void;
264
- steps: TourStep[];
265
- isTourCompleted: boolean;
266
- setIsTourCompleted: (completed: boolean) => void;
267
- }
268
- interface TourProviderProps {
269
- children: React__default.ReactNode;
270
- onComplete?: () => void;
271
- className?: string;
272
- isTourCompleted?: boolean;
273
- }
274
- declare function TourProvider({ children, onComplete, className, isTourCompleted, }: TourProviderProps): react_jsx_runtime.JSX.Element;
275
- declare function useTour(): TourContextType;
276
-
277
243
  declare function useIsMobile(): boolean;
278
244
 
279
- export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Button, Collapsible, CollapsibleContent, CollapsibleTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, 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, TourProvider, type TourStep, buttonVariants, useIsMobile, useSidebar, useTour };
245
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Avatar, AvatarFallback, AvatarImage, Button, Collapsible, CollapsibleContent, CollapsibleTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, 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 };