@gv-tech/ui-native 2.16.0 → 2.17.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/README.md CHANGED
@@ -5,7 +5,7 @@ React Native implementations of the GV Tech design system components, optimized
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- yarn add @gv-tech/ui-native
8
+ bun add @gv-tech/ui-native
9
9
  ```
10
10
 
11
11
  ## Features
package/dist/index.d.ts CHANGED
@@ -10,14 +10,24 @@ import * as CollapsiblePrimitive from '@rn-primitives/collapsible';
10
10
  import { DialogBaseProps } from '../../ui-core/src';
11
11
  import { DialogContentBaseProps } from '../../ui-core/src';
12
12
  import * as DialogPrimitive from '@rn-primitives/dialog';
13
+ import { FlatList } from 'react-native';
13
14
  import { InputBaseProps } from '../../ui-core/src';
14
15
  import { JSX } from 'react/jsx-runtime';
16
+ import { NativeScrollEvent } from 'react-native';
17
+ import { NativeSyntheticEvent } from 'react-native';
15
18
  import { Option as Option_2 } from '@rn-primitives/select';
19
+ import { PopoverAnchorBaseProps } from '../../ui-core/src';
20
+ import { PopoverBaseProps } from '../../ui-core/src';
21
+ import { PopoverContentBaseProps } from '../../ui-core/src';
22
+ import { PopoverTriggerBaseProps } from '../../ui-core/src';
16
23
  import { PressableProps } from 'react-native';
24
+ import { ProgressBaseProps } from '../../ui-core/src';
17
25
  import { RadioGroupBaseProps } from '../../ui-core/src';
18
26
  import { RadioGroupItemBaseProps } from '../../ui-core/src';
19
27
  import * as RadioGroupPrimitive from '@rn-primitives/radio-group';
20
28
  import * as React_2 from 'react';
29
+ import { ScrollToTopBaseProps } from '../../ui-core/src';
30
+ import { ScrollView } from 'react-native';
21
31
  import { SelectContentBaseProps } from '../../ui-core/src';
22
32
  import { SelectItemBaseProps } from '../../ui-core/src';
23
33
  import { SelectLabelBaseProps } from '../../ui-core/src';
@@ -30,6 +40,7 @@ import { SwitchBaseProps } from '../../ui-core/src';
30
40
  import * as SwitchPrimitive from '@rn-primitives/switch';
31
41
  import { TableOfContentsContentBaseProps } from '../../ui-core/src';
32
42
  import { TableOfContentsRootBaseProps } from '../../ui-core/src';
43
+ import { TabsBaseProps } from '../../ui-core/src';
33
44
  import { TabsContentBaseProps } from '../../ui-core/src';
34
45
  import { TabsListBaseProps } from '../../ui-core/src';
35
46
  import * as TabsPrimitive from '@rn-primitives/tabs';
@@ -298,9 +309,15 @@ export declare const NavigationMenu: () => JSX.Element;
298
309
 
299
310
  export declare const Pagination: () => JSX.Element;
300
311
 
301
- export declare const Popover: () => JSX.Element;
312
+ export declare const Popover: React_2.ForwardRefExoticComponent<ViewProps & PopoverBaseProps & React_2.RefAttributes<View>>;
302
313
 
303
- export declare const Progress: () => JSX.Element;
314
+ export declare const PopoverAnchor: React_2.ForwardRefExoticComponent<ViewProps & PopoverAnchorBaseProps & React_2.RefAttributes<View>>;
315
+
316
+ export declare const PopoverContent: React_2.ForwardRefExoticComponent<ViewProps & PopoverContentBaseProps & React_2.RefAttributes<View>>;
317
+
318
+ export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<Omit<PressableProps & React_2.RefAttributes<View>, "ref"> & PopoverTriggerBaseProps & React_2.RefAttributes<View>>;
319
+
320
+ export declare const Progress: React_2.ForwardRefExoticComponent<ViewProps & ProgressBaseProps & React_2.RefAttributes<View>>;
304
321
 
305
322
  export declare const RadioGroup: React_2.ForwardRefExoticComponent<RadioGroupProps & React_2.RefAttributes<View>>;
306
323
 
@@ -320,6 +337,34 @@ export declare const ResizablePanelGroup: () => JSX.Element;
320
337
 
321
338
  export declare const ScrollArea: () => JSX.Element;
322
339
 
340
+ export declare const ScrollToTop: React_2.ForwardRefExoticComponent<ScrollToTopProps & React_2.RefAttributes<ScrollToTopHandle>>;
341
+
342
+ /**
343
+ * GV Tech Animated Scroll To Top (Native)
344
+ *
345
+ * A floating action button that appears when scrolling down and allows the user
346
+ * to quickly return to the top of a ScrollView, FlatList, or SectionList.
347
+ *
348
+ * Reuses the internal GV Tech Button primitive for consistent styling.
349
+ */
350
+ export declare interface ScrollToTopHandle {
351
+ handleScroll: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
352
+ scrollToTop: () => void;
353
+ }
354
+
355
+ export declare interface ScrollToTopProps extends ScrollToTopBaseProps {
356
+ /**
357
+ * For Native: The scroll target is typically a ref to a ScrollView or FlatList.
358
+ * This is required unless you manually call the scroll handler.
359
+ */
360
+ scrollRef?: React_2.RefObject<ScrollView | FlatList>;
361
+ /**
362
+ * Custom duration specifically for Native animations (opacity/transform).
363
+ * @default 300
364
+ */
365
+ animationDuration?: number;
366
+ }
367
+
323
368
  export declare const Search: () => JSX.Element;
324
369
 
325
370
  export declare const Select: React_2.ForwardRefExoticComponent<ViewProps & {
@@ -459,6 +504,21 @@ export declare const Slider: () => JSX.Element;
459
504
 
460
505
  export declare const Sonner: () => JSX.Element;
461
506
 
507
+ export declare function SupportFab({ supportUrl, creatorId, title, description, open, defaultOpen, onOpenChange, positionClassName, buttonClassName, panelClassName, className, ...buttonProps }: SupportFabProps): JSX.Element;
508
+
509
+ export declare interface SupportFabProps extends Omit<React_2.ComponentPropsWithoutRef<typeof Button>, 'onPress'> {
510
+ supportUrl?: string;
511
+ creatorId: string;
512
+ title?: string;
513
+ description?: string;
514
+ open?: boolean;
515
+ defaultOpen?: boolean;
516
+ onOpenChange?: (open: boolean) => void;
517
+ positionClassName?: string;
518
+ buttonClassName?: string;
519
+ panelClassName?: string;
520
+ }
521
+
462
522
  export declare const Switch: React_2.ForwardRefExoticComponent<SwitchProps & React_2.RefAttributes<View>>;
463
523
 
464
524
  declare interface SwitchProps extends Omit<React_2.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, 'checked' | 'onCheckedChange'>, SwitchBaseProps {
@@ -513,7 +573,7 @@ export declare function TableOfContentsList({ className }: {
513
573
 
514
574
  export declare const TableRow: React_2.ForwardRefExoticComponent<ViewProps & React_2.RefAttributes<View>>;
515
575
 
516
- export declare const Tabs: React_2.ForwardRefExoticComponent<ViewProps & {
576
+ export declare const Tabs: React_2.ForwardRefExoticComponent<Omit<Omit<ViewProps & {
517
577
  asChild?: boolean;
518
578
  } & {
519
579
  value: string;
@@ -521,6 +581,9 @@ export declare const Tabs: React_2.ForwardRefExoticComponent<ViewProps & {
521
581
  orientation?: "horizontal" | "vertical";
522
582
  dir?: "ltr" | "rtl";
523
583
  activationMode?: "automatic" | "manual";
584
+ } & React_2.RefAttributes<View>, "ref">, "value" | "onValueChange"> & Omit<TabsBaseProps, "value"> & {
585
+ value: string;
586
+ onValueChange: (value: string) => void;
524
587
  } & React_2.RefAttributes<View>>;
525
588
 
526
589
  export declare const TabsContent: React_2.ForwardRefExoticComponent<TabsContentProps & React_2.RefAttributes<View>>;