@gv-tech/ui-native 2.15.2 → 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 +1 -1
- package/dist/index.d.ts +101 -3
- package/dist/ui-native.mjs +1053 -693
- package/package.json +1 -1
- package/src/index.ts +17 -1
- package/src/lib/utils.ts +10 -0
- package/src/popover.tsx +82 -6
- package/src/progress.tsx +22 -8
- package/src/scroll-to-top.tsx +186 -0
- package/src/support-fab.tsx +144 -0
- package/src/table-of-contents.tsx +240 -0
- package/src/tabs.tsx +6 -3
- package/src/toast.tsx +5 -5
- package/src/tooltip.tsx +16 -22
package/README.md
CHANGED
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';
|
|
@@ -28,6 +38,9 @@ import { SelectSeparatorBaseProps } from '../../ui-core/src';
|
|
|
28
38
|
import { SelectTriggerBaseProps } from '../../ui-core/src';
|
|
29
39
|
import { SwitchBaseProps } from '../../ui-core/src';
|
|
30
40
|
import * as SwitchPrimitive from '@rn-primitives/switch';
|
|
41
|
+
import { TableOfContentsContentBaseProps } from '../../ui-core/src';
|
|
42
|
+
import { TableOfContentsRootBaseProps } from '../../ui-core/src';
|
|
43
|
+
import { TabsBaseProps } from '../../ui-core/src';
|
|
31
44
|
import { TabsContentBaseProps } from '../../ui-core/src';
|
|
32
45
|
import { TabsListBaseProps } from '../../ui-core/src';
|
|
33
46
|
import * as TabsPrimitive from '@rn-primitives/tabs';
|
|
@@ -296,9 +309,15 @@ export declare const NavigationMenu: () => JSX.Element;
|
|
|
296
309
|
|
|
297
310
|
export declare const Pagination: () => JSX.Element;
|
|
298
311
|
|
|
299
|
-
export declare const Popover:
|
|
312
|
+
export declare const Popover: React_2.ForwardRefExoticComponent<ViewProps & PopoverBaseProps & React_2.RefAttributes<View>>;
|
|
300
313
|
|
|
301
|
-
export declare const
|
|
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>>;
|
|
302
321
|
|
|
303
322
|
export declare const RadioGroup: React_2.ForwardRefExoticComponent<RadioGroupProps & React_2.RefAttributes<View>>;
|
|
304
323
|
|
|
@@ -318,6 +337,34 @@ export declare const ResizablePanelGroup: () => JSX.Element;
|
|
|
318
337
|
|
|
319
338
|
export declare const ScrollArea: () => JSX.Element;
|
|
320
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
|
+
|
|
321
368
|
export declare const Search: () => JSX.Element;
|
|
322
369
|
|
|
323
370
|
export declare const Select: React_2.ForwardRefExoticComponent<ViewProps & {
|
|
@@ -457,6 +504,21 @@ export declare const Slider: () => JSX.Element;
|
|
|
457
504
|
|
|
458
505
|
export declare const Sonner: () => JSX.Element;
|
|
459
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
|
+
|
|
460
522
|
export declare const Switch: React_2.ForwardRefExoticComponent<SwitchProps & React_2.RefAttributes<View>>;
|
|
461
523
|
|
|
462
524
|
declare interface SwitchProps extends Omit<React_2.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, 'checked' | 'onCheckedChange'>, SwitchBaseProps {
|
|
@@ -476,9 +538,42 @@ export declare const TableHead: React_2.ForwardRefExoticComponent<Omit<TextProps
|
|
|
476
538
|
|
|
477
539
|
export declare const TableHeader: React_2.ForwardRefExoticComponent<ViewProps & React_2.RefAttributes<View>>;
|
|
478
540
|
|
|
541
|
+
/**
|
|
542
|
+
* Native Table of Contents Provider
|
|
543
|
+
*/
|
|
544
|
+
export declare function TableOfContents({ children, activeId: activeIdOverride }: TableOfContentsRootBaseProps): JSX.Element;
|
|
545
|
+
|
|
546
|
+
export declare namespace TableOfContents {
|
|
547
|
+
var List: typeof TableOfContentsList;
|
|
548
|
+
var Content: typeof TableOfContentsContent;
|
|
549
|
+
var Heading: typeof TableOfContentsHeading;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Wrapper for content that handles scrolling
|
|
554
|
+
*/
|
|
555
|
+
export declare function TableOfContentsContent({ children, className }: TableOfContentsContentBaseProps): JSX.Element;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Heading component that registers itself with the TOC provider
|
|
559
|
+
*/
|
|
560
|
+
export declare function TableOfContentsHeading({ children, level, id: manualId, className, }: {
|
|
561
|
+
children: string;
|
|
562
|
+
level?: number;
|
|
563
|
+
id?: string;
|
|
564
|
+
className?: string;
|
|
565
|
+
}): JSX.Element;
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Renders the TOC list of links
|
|
569
|
+
*/
|
|
570
|
+
export declare function TableOfContentsList({ className }: {
|
|
571
|
+
className?: string;
|
|
572
|
+
}): JSX.Element | null;
|
|
573
|
+
|
|
479
574
|
export declare const TableRow: React_2.ForwardRefExoticComponent<ViewProps & React_2.RefAttributes<View>>;
|
|
480
575
|
|
|
481
|
-
export declare const Tabs: React_2.ForwardRefExoticComponent<ViewProps & {
|
|
576
|
+
export declare const Tabs: React_2.ForwardRefExoticComponent<Omit<Omit<ViewProps & {
|
|
482
577
|
asChild?: boolean;
|
|
483
578
|
} & {
|
|
484
579
|
value: string;
|
|
@@ -486,6 +581,9 @@ export declare const Tabs: React_2.ForwardRefExoticComponent<ViewProps & {
|
|
|
486
581
|
orientation?: "horizontal" | "vertical";
|
|
487
582
|
dir?: "ltr" | "rtl";
|
|
488
583
|
activationMode?: "automatic" | "manual";
|
|
584
|
+
} & React_2.RefAttributes<View>, "ref">, "value" | "onValueChange"> & Omit<TabsBaseProps, "value"> & {
|
|
585
|
+
value: string;
|
|
586
|
+
onValueChange: (value: string) => void;
|
|
489
587
|
} & React_2.RefAttributes<View>>;
|
|
490
588
|
|
|
491
589
|
export declare const TabsContent: React_2.ForwardRefExoticComponent<TabsContentProps & React_2.RefAttributes<View>>;
|