@beyondcorp/beyond-ui-native 0.1.0 → 0.1.1

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,13 +1,7 @@
1
1
  import * as React from 'react';
2
- import * as react_native from 'react-native';
3
- import { ViewProps, View, PressableProps as PressableProps$1, TextProps as TextProps$1, Text as Text$1, TextInputProps, TextInput, ImageProps } from 'react-native';
2
+ import { ViewProps, View, PressableProps as PressableProps$1, TextProps as TextProps$1, Text as Text$1, TextInputProps, TextInput, ImageProps, GestureResponderEvent } from 'react-native';
4
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
5
4
  import { VariantProps } from 'class-variance-authority';
6
- import * as SwitchPrimitive from '@rn-primitives/switch';
7
- import * as CheckboxPrimitive from '@rn-primitives/checkbox';
8
- import * as _rn_primitives_types from '@rn-primitives/types';
9
- import * as DialogPrimitive from '@rn-primitives/dialog';
10
- import * as TabsPrimitive from '@rn-primitives/tabs';
11
5
  export { beyondUIPreset } from './preset.mjs';
12
6
  export { AccessibilityPropsOptions, cn, getAccessibilityProps, joinA11yLabels } from './utilities.mjs';
13
7
  import 'clsx';
@@ -179,18 +173,27 @@ declare namespace AvatarFallback {
179
173
  var displayName: string;
180
174
  }
181
175
 
182
- interface SwitchProps extends Omit<React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, "onCheckedChange"> {
176
+ interface SwitchProps extends Omit<PressableProps$1, "onPress"> {
177
+ checked?: boolean;
178
+ defaultChecked?: boolean;
179
+ onCheckedChange?: (checked: boolean) => void;
180
+ disabled?: boolean;
183
181
  className?: string;
184
182
  thumbClassName?: string;
185
- onCheckedChange?: (checked: boolean) => void;
183
+ onPress?: (event: GestureResponderEvent) => void;
186
184
  }
187
- declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<react_native.View>>;
185
+ declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<View>>;
188
186
 
189
- interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
187
+ interface CheckboxProps extends Omit<PressableProps$1, "onPress"> {
188
+ checked?: boolean;
189
+ defaultChecked?: boolean;
190
+ onCheckedChange?: (checked: boolean) => void;
191
+ disabled?: boolean;
190
192
  className?: string;
191
193
  indicatorClassName?: string;
192
194
  label?: string;
193
195
  labelClassName?: string;
196
+ onPress?: (e: GestureResponderEvent) => void;
194
197
  }
195
198
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<View>>;
196
199
 
@@ -270,110 +273,103 @@ declare namespace Separator {
270
273
  var displayName: string;
271
274
  }
272
275
 
273
- declare const Dialog: {
274
- ({ asChild, open: openProp, defaultOpen, onOpenChange: onOpenChangeProp, ref, ...viewProps }: react_native.ViewProps & {
275
- asChild?: boolean;
276
- } & {
277
- open?: boolean;
278
- defaultOpen?: boolean;
279
- onOpenChange?: (value: boolean) => void;
280
- } & React.RefAttributes<View>): React.JSX.Element;
281
- displayName: string;
282
- };
283
- declare const DialogTrigger: {
284
- ({ asChild, onPress: onPressProp, disabled, ref, ...props }: Omit<react_native.PressableProps & React.RefAttributes<View>, "ref"> & {
285
- asChild?: boolean;
286
- } & {
287
- onKeyDown?: (ev: React.KeyboardEvent) => void;
288
- onKeyUp?: (ev: React.KeyboardEvent) => void;
289
- } & React.RefAttributes<View>): React.JSX.Element;
290
- displayName: string;
291
- };
292
- declare const DialogPortal: typeof DialogPrimitive.Portal;
293
- declare const DialogClose: {
294
- ({ asChild, onPress: onPressProp, disabled, ref, ...props }: Omit<react_native.PressableProps & React.RefAttributes<View>, "ref"> & {
295
- asChild?: boolean;
296
- } & {
297
- onKeyDown?: (ev: React.KeyboardEvent) => void;
298
- onKeyUp?: (ev: React.KeyboardEvent) => void;
299
- } & React.RefAttributes<View>): React.JSX.Element;
300
- displayName: string;
301
- };
302
- declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<_rn_primitives_types.ForceMountable & Omit<react_native.PressableProps & React.RefAttributes<View>, "ref"> & {
276
+ interface DialogContextValue {
277
+ open: boolean;
278
+ onOpenChange: (open: boolean) => void;
279
+ }
280
+ declare const DialogContext: React.Context<DialogContextValue | null>;
281
+ declare function useDialogContext(): DialogContextValue;
282
+ interface DialogProps {
283
+ open?: boolean;
284
+ defaultOpen?: boolean;
285
+ onOpenChange?: (open: boolean) => void;
286
+ children: React.ReactNode;
287
+ }
288
+ declare function Dialog({ open: controlledOpen, defaultOpen, onOpenChange, children, }: DialogProps): React.JSX.Element;
289
+ declare namespace Dialog {
290
+ var displayName: string;
291
+ }
292
+ interface DialogTriggerProps extends PressableProps$1 {
303
293
  asChild?: boolean;
304
- } & {
305
- onKeyDown?: (ev: React.KeyboardEvent) => void;
306
- onKeyUp?: (ev: React.KeyboardEvent) => void;
307
- } & {
308
- closeOnPress?: boolean;
309
- } & React.RefAttributes<View>, "ref"> & {
310
294
  className?: string;
311
- } & React.RefAttributes<View>>;
312
- declare const DialogContent: React.ForwardRefExoticComponent<Omit<_rn_primitives_types.ForceMountable & react_native.ViewProps & {
313
- asChild?: boolean;
314
- } & {
315
- onOpenAutoFocus?: (ev: Event) => void;
316
- onCloseAutoFocus?: (ev: Event) => void;
317
- onEscapeKeyDown?: (ev: Event) => void;
318
- onInteractOutside?: (ev: Event) => void;
319
- onPointerDownOutside?: (ev: Event) => void;
320
- } & React.RefAttributes<View>, "ref"> & {
295
+ children: React.ReactNode;
296
+ }
297
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogTriggerProps & React.RefAttributes<View>>;
298
+ interface DialogPortalProps {
299
+ children: React.ReactNode;
300
+ forceMount?: boolean;
301
+ }
302
+ declare function DialogPortal({ children, forceMount }: DialogPortalProps): React.JSX.Element | null;
303
+ declare namespace DialogPortal {
304
+ var displayName: string;
305
+ }
306
+ interface DialogOverlayProps extends ViewProps {
321
307
  className?: string;
322
- } & React.RefAttributes<View>>;
323
- declare function DialogHeader({ className, ...props }: React.ComponentPropsWithoutRef<typeof View> & {
308
+ closeOnPress?: boolean;
309
+ }
310
+ declare const DialogOverlay: React.ForwardRefExoticComponent<DialogOverlayProps & React.RefAttributes<View>>;
311
+ interface DialogContentProps extends ViewProps {
312
+ className?: string;
313
+ overlayClassName?: string;
314
+ children: React.ReactNode;
315
+ }
316
+ declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<View>>;
317
+ declare function DialogHeader({ className, ...props }: ViewProps & {
324
318
  className?: string;
325
319
  }): React.JSX.Element;
326
320
  declare namespace DialogHeader {
327
321
  var displayName: string;
328
322
  }
329
- declare const DialogTitle: React.ForwardRefExoticComponent<Omit<react_native.TextProps & {
330
- asChild?: boolean;
331
- } & React.RefAttributes<Text$1>, "ref"> & {
323
+ declare const DialogTitle: React.ForwardRefExoticComponent<TextProps$1 & {
332
324
  className?: string;
333
325
  } & React.RefAttributes<Text$1>>;
334
- declare const DialogDescription: React.ForwardRefExoticComponent<Omit<react_native.TextProps & {
335
- asChild?: boolean;
336
- } & React.RefAttributes<Text$1>, "ref"> & {
326
+ declare const DialogDescription: React.ForwardRefExoticComponent<TextProps$1 & {
337
327
  className?: string;
338
328
  } & React.RefAttributes<Text$1>>;
339
- declare function DialogFooter({ className, ...props }: React.ComponentPropsWithoutRef<typeof View> & {
329
+ declare function DialogFooter({ className, ...props }: ViewProps & {
340
330
  className?: string;
341
331
  }): React.JSX.Element;
342
332
  declare namespace DialogFooter {
343
333
  var displayName: string;
344
334
  }
335
+ interface DialogCloseProps extends PressableProps$1 {
336
+ asChild?: boolean;
337
+ className?: string;
338
+ children: React.ReactNode;
339
+ }
340
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogCloseProps & React.RefAttributes<View>>;
345
341
 
346
- interface TabsProps extends Omit<React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root>, "value" | "onValueChange"> {
342
+ interface TabsContextValue {
343
+ value: string;
344
+ onValueChange: (value: string) => void;
345
+ }
346
+ declare const TabsContext: React.Context<TabsContextValue | null>;
347
+ declare function useTabsContext(): TabsContextValue;
348
+ interface TabsProps extends ViewProps {
347
349
  value?: string;
348
350
  defaultValue?: string;
349
351
  onValueChange?: (value: string) => void;
350
352
  className?: string;
351
353
  }
352
- declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<react_native.View>>;
353
- declare const TabsList: React.ForwardRefExoticComponent<Omit<react_native.ViewProps & {
354
- asChild?: boolean;
355
- } & React.RefAttributes<react_native.View>, "ref"> & {
354
+ declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<View>>;
355
+ interface TabsListProps extends ViewProps {
356
356
  className?: string;
357
- } & React.RefAttributes<react_native.View>>;
358
- declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<Omit<react_native.PressableProps & React.RefAttributes<react_native.View>, "ref"> & {
359
- asChild?: boolean;
360
- } & {
361
- onKeyDown?: (ev: React.KeyboardEvent) => void;
362
- onKeyUp?: (ev: React.KeyboardEvent) => void;
363
- } & {
357
+ }
358
+ declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<View>>;
359
+ interface TabsTriggerProps extends Omit<PressableProps$1, "onPress"> {
364
360
  value: string;
365
- } & React.RefAttributes<react_native.View>, "ref"> & {
366
361
  className?: string;
367
362
  textClassName?: string;
368
363
  children?: React.ReactNode;
369
- } & React.RefAttributes<react_native.View>>;
370
- declare const TabsContent: React.ForwardRefExoticComponent<Omit<react_native.ViewProps & {
371
- asChild?: boolean;
372
- } & _rn_primitives_types.ForceMountable & {
364
+ onPress?: (e: GestureResponderEvent) => void;
365
+ }
366
+ declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<View>>;
367
+ interface TabsContentProps extends ViewProps {
373
368
  value: string;
374
- } & React.RefAttributes<react_native.View>, "ref"> & {
375
369
  className?: string;
376
- } & React.RefAttributes<react_native.View>>;
370
+ forceMount?: boolean;
371
+ }
372
+ declare const TabsContent: React.ForwardRefExoticComponent<TabsContentProps & React.RefAttributes<View>>;
377
373
 
378
374
  type ToastVariant = "default" | "success" | "danger" | "warning" | "info";
379
375
  interface ToastItem {
@@ -841,4 +837,4 @@ declare const tokens: {
841
837
  };
842
838
  type BeyondUITokens = typeof tokens;
843
839
 
844
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, type AlertProps, AlertTitle, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, BeyondUIContext, type BeyondUIContextValue, BeyondUIProvider, type BeyondUIProviderProps, type BeyondUITokens, BottomSheet, BottomSheetBody, type BottomSheetBodyProps, BottomSheetClose, type BottomSheetCloseProps, BottomSheetContent, type BottomSheetContentProps, BottomSheetDescription, type BottomSheetDescriptionProps, BottomSheetFooter, type BottomSheetFooterProps, BottomSheetHeader, type BottomSheetHeaderProps, type BottomSheetProps, BottomSheetTitle, type BottomSheetTitleProps, BottomSheetTrigger, type BottomSheetTriggerProps, Box, type BoxProps, Button, type ButtonProps, ButtonText, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, type ColorScheme, type Column, type DashboardActivity, type DashboardMetric, type DashboardQuickAction, DashboardTemplate, type DashboardTemplateProps, DataTable, type DataTableProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, ForgotPasswordTemplate, type ForgotPasswordTemplateProps, Heading, type HeadingLevel, type HeadingProps, Input, type InputProps, Pressable, type PressableProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectOption, type SelectProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, type SeparatorProps, SettingsTemplate, type SettingsTemplateProps, SignInTemplate, type SignInTemplateProps, SignUpTemplate, type SignUpTemplateProps, Skeleton, type SkeletonProps, Spinner, type SpinnerColor, type SpinnerProps, StatsCard, type StatsCardProps, Switch, type SwitchProps, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, Text, type TextProps, Textarea, type TextareaProps, ToastBanner, ToastContainer, ToastContext, type ToastContextValue, type ToastItem, type ToastVariant, type TrendDirection, alertDescriptionVariants, alertTitleVariants, alertVariants, avatarTextVariants, avatarVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, cardVariants, headingVariants, inputVariants, textVariants, tokens, useBeyondUI, useToast };
840
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, type AlertProps, AlertTitle, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, BeyondUIContext, type BeyondUIContextValue, BeyondUIProvider, type BeyondUIProviderProps, type BeyondUITokens, BottomSheet, BottomSheetBody, type BottomSheetBodyProps, BottomSheetClose, type BottomSheetCloseProps, BottomSheetContent, type BottomSheetContentProps, BottomSheetDescription, type BottomSheetDescriptionProps, BottomSheetFooter, type BottomSheetFooterProps, BottomSheetHeader, type BottomSheetHeaderProps, type BottomSheetProps, BottomSheetTitle, type BottomSheetTitleProps, BottomSheetTrigger, type BottomSheetTriggerProps, Box, type BoxProps, Button, type ButtonProps, ButtonText, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, type ColorScheme, type Column, type DashboardActivity, type DashboardMetric, type DashboardQuickAction, DashboardTemplate, type DashboardTemplateProps, DataTable, type DataTableProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogContext, type DialogContextValue, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, DialogTrigger, type DialogTriggerProps, ForgotPasswordTemplate, type ForgotPasswordTemplateProps, Heading, type HeadingLevel, type HeadingProps, Input, type InputProps, Pressable, type PressableProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectOption, type SelectProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, type SeparatorProps, SettingsTemplate, type SettingsTemplateProps, SignInTemplate, type SignInTemplateProps, SignUpTemplate, type SignUpTemplateProps, Skeleton, type SkeletonProps, Spinner, type SpinnerColor, type SpinnerProps, StatsCard, type StatsCardProps, Switch, type SwitchProps, Tabs, TabsContent, type TabsContentProps, TabsContext, type TabsContextValue, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, type TextProps, Textarea, type TextareaProps, ToastBanner, ToastContainer, ToastContext, type ToastContextValue, type ToastItem, type ToastVariant, type TrendDirection, alertDescriptionVariants, alertTitleVariants, alertVariants, avatarTextVariants, avatarVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, cardVariants, headingVariants, inputVariants, textVariants, tokens, useBeyondUI, useDialogContext, useTabsContext, useToast };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,7 @@
1
1
  import * as React from 'react';
2
- import * as react_native from 'react-native';
3
- import { ViewProps, View, PressableProps as PressableProps$1, TextProps as TextProps$1, Text as Text$1, TextInputProps, TextInput, ImageProps } from 'react-native';
2
+ import { ViewProps, View, PressableProps as PressableProps$1, TextProps as TextProps$1, Text as Text$1, TextInputProps, TextInput, ImageProps, GestureResponderEvent } from 'react-native';
4
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
5
4
  import { VariantProps } from 'class-variance-authority';
6
- import * as SwitchPrimitive from '@rn-primitives/switch';
7
- import * as CheckboxPrimitive from '@rn-primitives/checkbox';
8
- import * as _rn_primitives_types from '@rn-primitives/types';
9
- import * as DialogPrimitive from '@rn-primitives/dialog';
10
- import * as TabsPrimitive from '@rn-primitives/tabs';
11
5
  export { beyondUIPreset } from './preset.js';
12
6
  export { AccessibilityPropsOptions, cn, getAccessibilityProps, joinA11yLabels } from './utilities.js';
13
7
  import 'clsx';
@@ -179,18 +173,27 @@ declare namespace AvatarFallback {
179
173
  var displayName: string;
180
174
  }
181
175
 
182
- interface SwitchProps extends Omit<React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, "onCheckedChange"> {
176
+ interface SwitchProps extends Omit<PressableProps$1, "onPress"> {
177
+ checked?: boolean;
178
+ defaultChecked?: boolean;
179
+ onCheckedChange?: (checked: boolean) => void;
180
+ disabled?: boolean;
183
181
  className?: string;
184
182
  thumbClassName?: string;
185
- onCheckedChange?: (checked: boolean) => void;
183
+ onPress?: (event: GestureResponderEvent) => void;
186
184
  }
187
- declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<react_native.View>>;
185
+ declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<View>>;
188
186
 
189
- interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
187
+ interface CheckboxProps extends Omit<PressableProps$1, "onPress"> {
188
+ checked?: boolean;
189
+ defaultChecked?: boolean;
190
+ onCheckedChange?: (checked: boolean) => void;
191
+ disabled?: boolean;
190
192
  className?: string;
191
193
  indicatorClassName?: string;
192
194
  label?: string;
193
195
  labelClassName?: string;
196
+ onPress?: (e: GestureResponderEvent) => void;
194
197
  }
195
198
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<View>>;
196
199
 
@@ -270,110 +273,103 @@ declare namespace Separator {
270
273
  var displayName: string;
271
274
  }
272
275
 
273
- declare const Dialog: {
274
- ({ asChild, open: openProp, defaultOpen, onOpenChange: onOpenChangeProp, ref, ...viewProps }: react_native.ViewProps & {
275
- asChild?: boolean;
276
- } & {
277
- open?: boolean;
278
- defaultOpen?: boolean;
279
- onOpenChange?: (value: boolean) => void;
280
- } & React.RefAttributes<View>): React.JSX.Element;
281
- displayName: string;
282
- };
283
- declare const DialogTrigger: {
284
- ({ asChild, onPress: onPressProp, disabled, ref, ...props }: Omit<react_native.PressableProps & React.RefAttributes<View>, "ref"> & {
285
- asChild?: boolean;
286
- } & {
287
- onKeyDown?: (ev: React.KeyboardEvent) => void;
288
- onKeyUp?: (ev: React.KeyboardEvent) => void;
289
- } & React.RefAttributes<View>): React.JSX.Element;
290
- displayName: string;
291
- };
292
- declare const DialogPortal: typeof DialogPrimitive.Portal;
293
- declare const DialogClose: {
294
- ({ asChild, onPress: onPressProp, disabled, ref, ...props }: Omit<react_native.PressableProps & React.RefAttributes<View>, "ref"> & {
295
- asChild?: boolean;
296
- } & {
297
- onKeyDown?: (ev: React.KeyboardEvent) => void;
298
- onKeyUp?: (ev: React.KeyboardEvent) => void;
299
- } & React.RefAttributes<View>): React.JSX.Element;
300
- displayName: string;
301
- };
302
- declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<_rn_primitives_types.ForceMountable & Omit<react_native.PressableProps & React.RefAttributes<View>, "ref"> & {
276
+ interface DialogContextValue {
277
+ open: boolean;
278
+ onOpenChange: (open: boolean) => void;
279
+ }
280
+ declare const DialogContext: React.Context<DialogContextValue | null>;
281
+ declare function useDialogContext(): DialogContextValue;
282
+ interface DialogProps {
283
+ open?: boolean;
284
+ defaultOpen?: boolean;
285
+ onOpenChange?: (open: boolean) => void;
286
+ children: React.ReactNode;
287
+ }
288
+ declare function Dialog({ open: controlledOpen, defaultOpen, onOpenChange, children, }: DialogProps): React.JSX.Element;
289
+ declare namespace Dialog {
290
+ var displayName: string;
291
+ }
292
+ interface DialogTriggerProps extends PressableProps$1 {
303
293
  asChild?: boolean;
304
- } & {
305
- onKeyDown?: (ev: React.KeyboardEvent) => void;
306
- onKeyUp?: (ev: React.KeyboardEvent) => void;
307
- } & {
308
- closeOnPress?: boolean;
309
- } & React.RefAttributes<View>, "ref"> & {
310
294
  className?: string;
311
- } & React.RefAttributes<View>>;
312
- declare const DialogContent: React.ForwardRefExoticComponent<Omit<_rn_primitives_types.ForceMountable & react_native.ViewProps & {
313
- asChild?: boolean;
314
- } & {
315
- onOpenAutoFocus?: (ev: Event) => void;
316
- onCloseAutoFocus?: (ev: Event) => void;
317
- onEscapeKeyDown?: (ev: Event) => void;
318
- onInteractOutside?: (ev: Event) => void;
319
- onPointerDownOutside?: (ev: Event) => void;
320
- } & React.RefAttributes<View>, "ref"> & {
295
+ children: React.ReactNode;
296
+ }
297
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogTriggerProps & React.RefAttributes<View>>;
298
+ interface DialogPortalProps {
299
+ children: React.ReactNode;
300
+ forceMount?: boolean;
301
+ }
302
+ declare function DialogPortal({ children, forceMount }: DialogPortalProps): React.JSX.Element | null;
303
+ declare namespace DialogPortal {
304
+ var displayName: string;
305
+ }
306
+ interface DialogOverlayProps extends ViewProps {
321
307
  className?: string;
322
- } & React.RefAttributes<View>>;
323
- declare function DialogHeader({ className, ...props }: React.ComponentPropsWithoutRef<typeof View> & {
308
+ closeOnPress?: boolean;
309
+ }
310
+ declare const DialogOverlay: React.ForwardRefExoticComponent<DialogOverlayProps & React.RefAttributes<View>>;
311
+ interface DialogContentProps extends ViewProps {
312
+ className?: string;
313
+ overlayClassName?: string;
314
+ children: React.ReactNode;
315
+ }
316
+ declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<View>>;
317
+ declare function DialogHeader({ className, ...props }: ViewProps & {
324
318
  className?: string;
325
319
  }): React.JSX.Element;
326
320
  declare namespace DialogHeader {
327
321
  var displayName: string;
328
322
  }
329
- declare const DialogTitle: React.ForwardRefExoticComponent<Omit<react_native.TextProps & {
330
- asChild?: boolean;
331
- } & React.RefAttributes<Text$1>, "ref"> & {
323
+ declare const DialogTitle: React.ForwardRefExoticComponent<TextProps$1 & {
332
324
  className?: string;
333
325
  } & React.RefAttributes<Text$1>>;
334
- declare const DialogDescription: React.ForwardRefExoticComponent<Omit<react_native.TextProps & {
335
- asChild?: boolean;
336
- } & React.RefAttributes<Text$1>, "ref"> & {
326
+ declare const DialogDescription: React.ForwardRefExoticComponent<TextProps$1 & {
337
327
  className?: string;
338
328
  } & React.RefAttributes<Text$1>>;
339
- declare function DialogFooter({ className, ...props }: React.ComponentPropsWithoutRef<typeof View> & {
329
+ declare function DialogFooter({ className, ...props }: ViewProps & {
340
330
  className?: string;
341
331
  }): React.JSX.Element;
342
332
  declare namespace DialogFooter {
343
333
  var displayName: string;
344
334
  }
335
+ interface DialogCloseProps extends PressableProps$1 {
336
+ asChild?: boolean;
337
+ className?: string;
338
+ children: React.ReactNode;
339
+ }
340
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogCloseProps & React.RefAttributes<View>>;
345
341
 
346
- interface TabsProps extends Omit<React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root>, "value" | "onValueChange"> {
342
+ interface TabsContextValue {
343
+ value: string;
344
+ onValueChange: (value: string) => void;
345
+ }
346
+ declare const TabsContext: React.Context<TabsContextValue | null>;
347
+ declare function useTabsContext(): TabsContextValue;
348
+ interface TabsProps extends ViewProps {
347
349
  value?: string;
348
350
  defaultValue?: string;
349
351
  onValueChange?: (value: string) => void;
350
352
  className?: string;
351
353
  }
352
- declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<react_native.View>>;
353
- declare const TabsList: React.ForwardRefExoticComponent<Omit<react_native.ViewProps & {
354
- asChild?: boolean;
355
- } & React.RefAttributes<react_native.View>, "ref"> & {
354
+ declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<View>>;
355
+ interface TabsListProps extends ViewProps {
356
356
  className?: string;
357
- } & React.RefAttributes<react_native.View>>;
358
- declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<Omit<react_native.PressableProps & React.RefAttributes<react_native.View>, "ref"> & {
359
- asChild?: boolean;
360
- } & {
361
- onKeyDown?: (ev: React.KeyboardEvent) => void;
362
- onKeyUp?: (ev: React.KeyboardEvent) => void;
363
- } & {
357
+ }
358
+ declare const TabsList: React.ForwardRefExoticComponent<TabsListProps & React.RefAttributes<View>>;
359
+ interface TabsTriggerProps extends Omit<PressableProps$1, "onPress"> {
364
360
  value: string;
365
- } & React.RefAttributes<react_native.View>, "ref"> & {
366
361
  className?: string;
367
362
  textClassName?: string;
368
363
  children?: React.ReactNode;
369
- } & React.RefAttributes<react_native.View>>;
370
- declare const TabsContent: React.ForwardRefExoticComponent<Omit<react_native.ViewProps & {
371
- asChild?: boolean;
372
- } & _rn_primitives_types.ForceMountable & {
364
+ onPress?: (e: GestureResponderEvent) => void;
365
+ }
366
+ declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<View>>;
367
+ interface TabsContentProps extends ViewProps {
373
368
  value: string;
374
- } & React.RefAttributes<react_native.View>, "ref"> & {
375
369
  className?: string;
376
- } & React.RefAttributes<react_native.View>>;
370
+ forceMount?: boolean;
371
+ }
372
+ declare const TabsContent: React.ForwardRefExoticComponent<TabsContentProps & React.RefAttributes<View>>;
377
373
 
378
374
  type ToastVariant = "default" | "success" | "danger" | "warning" | "info";
379
375
  interface ToastItem {
@@ -841,4 +837,4 @@ declare const tokens: {
841
837
  };
842
838
  type BeyondUITokens = typeof tokens;
843
839
 
844
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, type AlertProps, AlertTitle, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, BeyondUIContext, type BeyondUIContextValue, BeyondUIProvider, type BeyondUIProviderProps, type BeyondUITokens, BottomSheet, BottomSheetBody, type BottomSheetBodyProps, BottomSheetClose, type BottomSheetCloseProps, BottomSheetContent, type BottomSheetContentProps, BottomSheetDescription, type BottomSheetDescriptionProps, BottomSheetFooter, type BottomSheetFooterProps, BottomSheetHeader, type BottomSheetHeaderProps, type BottomSheetProps, BottomSheetTitle, type BottomSheetTitleProps, BottomSheetTrigger, type BottomSheetTriggerProps, Box, type BoxProps, Button, type ButtonProps, ButtonText, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, type ColorScheme, type Column, type DashboardActivity, type DashboardMetric, type DashboardQuickAction, DashboardTemplate, type DashboardTemplateProps, DataTable, type DataTableProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, ForgotPasswordTemplate, type ForgotPasswordTemplateProps, Heading, type HeadingLevel, type HeadingProps, Input, type InputProps, Pressable, type PressableProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectOption, type SelectProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, type SeparatorProps, SettingsTemplate, type SettingsTemplateProps, SignInTemplate, type SignInTemplateProps, SignUpTemplate, type SignUpTemplateProps, Skeleton, type SkeletonProps, Spinner, type SpinnerColor, type SpinnerProps, StatsCard, type StatsCardProps, Switch, type SwitchProps, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, Text, type TextProps, Textarea, type TextareaProps, ToastBanner, ToastContainer, ToastContext, type ToastContextValue, type ToastItem, type ToastVariant, type TrendDirection, alertDescriptionVariants, alertTitleVariants, alertVariants, avatarTextVariants, avatarVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, cardVariants, headingVariants, inputVariants, textVariants, tokens, useBeyondUI, useToast };
840
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, type AlertProps, AlertTitle, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, BeyondUIContext, type BeyondUIContextValue, BeyondUIProvider, type BeyondUIProviderProps, type BeyondUITokens, BottomSheet, BottomSheetBody, type BottomSheetBodyProps, BottomSheetClose, type BottomSheetCloseProps, BottomSheetContent, type BottomSheetContentProps, BottomSheetDescription, type BottomSheetDescriptionProps, BottomSheetFooter, type BottomSheetFooterProps, BottomSheetHeader, type BottomSheetHeaderProps, type BottomSheetProps, BottomSheetTitle, type BottomSheetTitleProps, BottomSheetTrigger, type BottomSheetTriggerProps, Box, type BoxProps, Button, type ButtonProps, ButtonText, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, type ColorScheme, type Column, type DashboardActivity, type DashboardMetric, type DashboardQuickAction, DashboardTemplate, type DashboardTemplateProps, DataTable, type DataTableProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogContext, type DialogContextValue, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, type DialogProps, DialogTitle, DialogTrigger, type DialogTriggerProps, ForgotPasswordTemplate, type ForgotPasswordTemplateProps, Heading, type HeadingLevel, type HeadingProps, Input, type InputProps, Pressable, type PressableProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, Select, SelectContent, type SelectContentProps, SelectItem, type SelectItemProps, type SelectOption, type SelectProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, type SeparatorProps, SettingsTemplate, type SettingsTemplateProps, SignInTemplate, type SignInTemplateProps, SignUpTemplate, type SignUpTemplateProps, Skeleton, type SkeletonProps, Spinner, type SpinnerColor, type SpinnerProps, StatsCard, type StatsCardProps, Switch, type SwitchProps, Tabs, TabsContent, type TabsContentProps, TabsContext, type TabsContextValue, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, type TextProps, Textarea, type TextareaProps, ToastBanner, ToastContainer, ToastContext, type ToastContextValue, type ToastItem, type ToastVariant, type TrendDirection, alertDescriptionVariants, alertTitleVariants, alertVariants, avatarTextVariants, avatarVariants, badgeTextVariants, badgeVariants, buttonTextVariants, buttonVariants, cardVariants, headingVariants, inputVariants, textVariants, tokens, useBeyondUI, useDialogContext, useTabsContext, useToast };