@tamagui/tabs 1.11.2 → 1.12.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/cjs/Tabs.js +123 -113
- package/dist/cjs/Tabs.js.map +2 -2
- package/dist/esm/Tabs.js +123 -113
- package/dist/esm/Tabs.js.map +2 -2
- package/dist/esm/Tabs.mjs +123 -113
- package/dist/esm/Tabs.mjs.map +2 -2
- package/dist/jsx/Tabs.js +104 -94
- package/dist/jsx/Tabs.js.map +2 -2
- package/dist/jsx/Tabs.mjs +104 -94
- package/dist/jsx/Tabs.mjs.map +2 -2
- package/package.json +10 -10
- package/src/Tabs.tsx +138 -118
- package/types/Tabs.d.ts +174 -11
- package/types/Tabs.d.ts.map +1 -1
package/types/Tabs.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GroupProps } from '@tamagui/group';
|
|
2
2
|
import { RovingFocusGroup } from '@tamagui/roving-focus';
|
|
3
|
-
import { ThemeableStackProps } from '@tamagui/stacks';
|
|
4
3
|
import { GetProps, SizeTokens } from '@tamagui/web';
|
|
5
4
|
import * as React from 'react';
|
|
6
5
|
import type { LayoutRectangle } from 'react-native';
|
|
@@ -12,15 +11,100 @@ type TabsListProps = TabsListFrameProps & {
|
|
|
12
11
|
*/
|
|
13
12
|
loop?: boolean;
|
|
14
13
|
};
|
|
15
|
-
|
|
14
|
+
declare const TabsTriggerFrame: import("@tamagui/web").TamaguiComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
15
|
+
readonly fullscreen?: boolean | undefined;
|
|
16
|
+
readonly elevation?: SizeTokens | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
readonly backgrounded?: boolean | undefined;
|
|
19
|
+
readonly radiused?: boolean | undefined;
|
|
20
|
+
readonly hoverTheme?: boolean | undefined;
|
|
21
|
+
readonly pressTheme?: boolean | undefined;
|
|
22
|
+
readonly focusTheme?: boolean | undefined;
|
|
23
|
+
readonly circular?: boolean | undefined;
|
|
24
|
+
readonly padded?: boolean | undefined;
|
|
25
|
+
readonly elevate?: boolean | undefined;
|
|
26
|
+
readonly bordered?: number | boolean | undefined;
|
|
27
|
+
readonly transparent?: boolean | undefined;
|
|
28
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
29
|
+
}, "size" | "unstyled" | "disabled"> & {
|
|
30
|
+
readonly size?: SizeTokens | undefined;
|
|
31
|
+
readonly disabled?: boolean | undefined;
|
|
32
|
+
readonly unstyled?: boolean | undefined;
|
|
33
|
+
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
34
|
+
readonly fullscreen?: boolean | undefined;
|
|
35
|
+
readonly elevation?: SizeTokens | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
readonly backgrounded?: boolean | undefined;
|
|
38
|
+
readonly radiused?: boolean | undefined;
|
|
39
|
+
readonly hoverTheme?: boolean | undefined;
|
|
40
|
+
readonly pressTheme?: boolean | undefined;
|
|
41
|
+
readonly focusTheme?: boolean | undefined;
|
|
42
|
+
readonly circular?: boolean | undefined;
|
|
43
|
+
readonly padded?: boolean | undefined;
|
|
44
|
+
readonly elevate?: boolean | undefined;
|
|
45
|
+
readonly bordered?: number | boolean | undefined;
|
|
46
|
+
readonly transparent?: boolean | undefined;
|
|
47
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
48
|
+
}, "size" | "unstyled" | "disabled"> & {
|
|
49
|
+
readonly size?: SizeTokens | undefined;
|
|
50
|
+
readonly disabled?: boolean | undefined;
|
|
51
|
+
readonly unstyled?: boolean | undefined;
|
|
52
|
+
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
53
|
+
readonly fullscreen?: boolean | undefined;
|
|
54
|
+
readonly elevation?: SizeTokens | undefined;
|
|
55
|
+
} & {
|
|
56
|
+
readonly backgrounded?: boolean | undefined;
|
|
57
|
+
readonly radiused?: boolean | undefined;
|
|
58
|
+
readonly hoverTheme?: boolean | undefined;
|
|
59
|
+
readonly pressTheme?: boolean | undefined;
|
|
60
|
+
readonly focusTheme?: boolean | undefined;
|
|
61
|
+
readonly circular?: boolean | undefined;
|
|
62
|
+
readonly padded?: boolean | undefined;
|
|
63
|
+
readonly elevate?: boolean | undefined;
|
|
64
|
+
readonly bordered?: number | boolean | undefined;
|
|
65
|
+
readonly transparent?: boolean | undefined;
|
|
66
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
67
|
+
}, "size" | "unstyled" | "disabled"> & {
|
|
68
|
+
readonly size?: SizeTokens | undefined;
|
|
69
|
+
readonly disabled?: boolean | undefined;
|
|
70
|
+
readonly unstyled?: boolean | undefined;
|
|
71
|
+
}>>, import("@tamagui/web").TamaguiElement, Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps, {
|
|
72
|
+
readonly fullscreen?: boolean | undefined;
|
|
73
|
+
readonly elevation?: SizeTokens | undefined;
|
|
74
|
+
} & {
|
|
75
|
+
readonly backgrounded?: boolean | undefined;
|
|
76
|
+
readonly radiused?: boolean | undefined;
|
|
77
|
+
readonly hoverTheme?: boolean | undefined;
|
|
78
|
+
readonly pressTheme?: boolean | undefined;
|
|
79
|
+
readonly focusTheme?: boolean | undefined;
|
|
80
|
+
readonly circular?: boolean | undefined;
|
|
81
|
+
readonly padded?: boolean | undefined;
|
|
82
|
+
readonly elevate?: boolean | undefined;
|
|
83
|
+
readonly bordered?: number | boolean | undefined;
|
|
84
|
+
readonly transparent?: boolean | undefined;
|
|
85
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
86
|
+
} & {
|
|
87
|
+
readonly size?: SizeTokens | undefined;
|
|
88
|
+
readonly disabled?: boolean | undefined;
|
|
89
|
+
readonly unstyled?: boolean | undefined;
|
|
90
|
+
}>;
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated Use `TabLayout` instead
|
|
93
|
+
*/
|
|
94
|
+
type TabsTriggerLayout = LayoutRectangle;
|
|
95
|
+
type TabLayout = LayoutRectangle;
|
|
16
96
|
type InteractionType = 'select' | 'focus' | 'hover';
|
|
17
|
-
type TabsTriggerFrameProps =
|
|
97
|
+
type TabsTriggerFrameProps = GetProps<typeof TabsTriggerFrame>;
|
|
98
|
+
/**
|
|
99
|
+
* @deprecated use `TabTabsProps` instead
|
|
100
|
+
*/
|
|
18
101
|
type TabsTriggerProps = TabsTriggerFrameProps & {
|
|
19
102
|
/** The value for the tabs state to be changed to after activation of the trigger */
|
|
20
103
|
value: string;
|
|
21
104
|
/** Used for making custom indicators when trigger interacted with */
|
|
22
|
-
onInteraction?: (type: InteractionType, layout:
|
|
105
|
+
onInteraction?: (type: InteractionType, layout: TabLayout | null) => void;
|
|
23
106
|
};
|
|
107
|
+
type TabsTabProps = TabsTriggerProps;
|
|
24
108
|
declare const TabsContentFrame: import("@tamagui/web").TamaguiComponent<(Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
25
109
|
readonly fullscreen?: boolean | undefined;
|
|
26
110
|
readonly elevation?: SizeTokens | undefined;
|
|
@@ -176,7 +260,7 @@ declare const TabsFrame: import("@tamagui/web").TamaguiComponent<(Omit<import("r
|
|
|
176
260
|
readonly unstyled?: boolean | undefined;
|
|
177
261
|
readonly hoverTheme?: boolean | undefined;
|
|
178
262
|
readonly pressTheme?: boolean | undefined;
|
|
179
|
-
readonly focusTheme?: boolean | undefined;
|
|
263
|
+
readonly focusTheme?: boolean | undefined;
|
|
180
264
|
readonly circular?: boolean | undefined;
|
|
181
265
|
readonly elevate?: boolean | undefined;
|
|
182
266
|
readonly bordered?: number | boolean | undefined;
|
|
@@ -294,7 +378,7 @@ export declare const Tabs: React.ForwardRefExoticComponent<((Omit<import("react-
|
|
|
294
378
|
readonly unstyled?: boolean | undefined;
|
|
295
379
|
readonly hoverTheme?: boolean | undefined;
|
|
296
380
|
readonly pressTheme?: boolean | undefined;
|
|
297
|
-
readonly focusTheme?: boolean | undefined;
|
|
381
|
+
readonly focusTheme?: boolean | undefined;
|
|
298
382
|
readonly circular?: boolean | undefined;
|
|
299
383
|
readonly elevate?: boolean | undefined;
|
|
300
384
|
readonly bordered?: number | boolean | undefined;
|
|
@@ -442,6 +526,7 @@ export declare const Tabs: React.ForwardRefExoticComponent<((Omit<import("react-
|
|
|
442
526
|
readonly size?: any;
|
|
443
527
|
}>> & {
|
|
444
528
|
axis?: "horizontal" | "vertical" | undefined;
|
|
529
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
445
530
|
scrollable?: boolean | undefined;
|
|
446
531
|
showScrollIndicator?: boolean | undefined;
|
|
447
532
|
disabled?: boolean | undefined;
|
|
@@ -454,10 +539,13 @@ export declare const Tabs: React.ForwardRefExoticComponent<((Omit<import("react-
|
|
|
454
539
|
*/
|
|
455
540
|
loop?: boolean | undefined;
|
|
456
541
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
542
|
+
/**
|
|
543
|
+
* @deprecated Use Tabs.Tab instead
|
|
544
|
+
*/
|
|
457
545
|
Trigger: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
458
546
|
readonly fullscreen?: boolean | undefined;
|
|
459
547
|
readonly elevation?: SizeTokens | undefined;
|
|
460
|
-
}
|
|
548
|
+
} & {
|
|
461
549
|
readonly backgrounded?: boolean | undefined;
|
|
462
550
|
readonly radiused?: boolean | undefined;
|
|
463
551
|
readonly hoverTheme?: boolean | undefined;
|
|
@@ -469,10 +557,14 @@ export declare const Tabs: React.ForwardRefExoticComponent<((Omit<import("react-
|
|
|
469
557
|
readonly bordered?: number | boolean | undefined;
|
|
470
558
|
readonly transparent?: boolean | undefined;
|
|
471
559
|
readonly chromeless?: boolean | "all" | undefined;
|
|
560
|
+
}, "size" | "unstyled" | "disabled"> & {
|
|
561
|
+
readonly size?: SizeTokens | undefined;
|
|
562
|
+
readonly disabled?: boolean | undefined;
|
|
563
|
+
readonly unstyled?: boolean | undefined;
|
|
472
564
|
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
473
565
|
readonly fullscreen?: boolean | undefined;
|
|
474
566
|
readonly elevation?: SizeTokens | undefined;
|
|
475
|
-
}
|
|
567
|
+
} & {
|
|
476
568
|
readonly backgrounded?: boolean | undefined;
|
|
477
569
|
readonly radiused?: boolean | undefined;
|
|
478
570
|
readonly hoverTheme?: boolean | undefined;
|
|
@@ -484,10 +576,39 @@ export declare const Tabs: React.ForwardRefExoticComponent<((Omit<import("react-
|
|
|
484
576
|
readonly bordered?: number | boolean | undefined;
|
|
485
577
|
readonly transparent?: boolean | undefined;
|
|
486
578
|
readonly chromeless?: boolean | "all" | undefined;
|
|
579
|
+
}, "size" | "unstyled" | "disabled"> & {
|
|
580
|
+
readonly size?: SizeTokens | undefined;
|
|
581
|
+
readonly disabled?: boolean | undefined;
|
|
582
|
+
readonly unstyled?: boolean | undefined;
|
|
487
583
|
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
488
584
|
readonly fullscreen?: boolean | undefined;
|
|
489
585
|
readonly elevation?: SizeTokens | undefined;
|
|
490
|
-
}
|
|
586
|
+
} & {
|
|
587
|
+
readonly backgrounded?: boolean | undefined;
|
|
588
|
+
readonly radiused?: boolean | undefined;
|
|
589
|
+
readonly hoverTheme?: boolean | undefined;
|
|
590
|
+
readonly pressTheme?: boolean | undefined;
|
|
591
|
+
readonly focusTheme?: boolean | undefined;
|
|
592
|
+
readonly circular?: boolean | undefined;
|
|
593
|
+
readonly padded?: boolean | undefined;
|
|
594
|
+
readonly elevate?: boolean | undefined;
|
|
595
|
+
readonly bordered?: number | boolean | undefined;
|
|
596
|
+
readonly transparent?: boolean | undefined;
|
|
597
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
598
|
+
}, "size" | "unstyled" | "disabled"> & {
|
|
599
|
+
readonly size?: SizeTokens | undefined;
|
|
600
|
+
readonly disabled?: boolean | undefined;
|
|
601
|
+
readonly unstyled?: boolean | undefined;
|
|
602
|
+
}>> & {
|
|
603
|
+
/** The value for the tabs state to be changed to after activation of the trigger */
|
|
604
|
+
value: string;
|
|
605
|
+
/** Used for making custom indicators when trigger interacted with */
|
|
606
|
+
onInteraction?: ((type: InteractionType, layout: TabLayout | null) => void) | undefined;
|
|
607
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
608
|
+
Tab: React.ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
609
|
+
readonly fullscreen?: boolean | undefined;
|
|
610
|
+
readonly elevation?: SizeTokens | undefined;
|
|
611
|
+
} & {
|
|
491
612
|
readonly backgrounded?: boolean | undefined;
|
|
492
613
|
readonly radiused?: boolean | undefined;
|
|
493
614
|
readonly hoverTheme?: boolean | undefined;
|
|
@@ -499,11 +620,53 @@ export declare const Tabs: React.ForwardRefExoticComponent<((Omit<import("react-
|
|
|
499
620
|
readonly bordered?: number | boolean | undefined;
|
|
500
621
|
readonly transparent?: boolean | undefined;
|
|
501
622
|
readonly chromeless?: boolean | "all" | undefined;
|
|
623
|
+
}, "size" | "unstyled" | "disabled"> & {
|
|
624
|
+
readonly size?: SizeTokens | undefined;
|
|
625
|
+
readonly disabled?: boolean | undefined;
|
|
626
|
+
readonly unstyled?: boolean | undefined;
|
|
627
|
+
} & import("@tamagui/web").MediaProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
628
|
+
readonly fullscreen?: boolean | undefined;
|
|
629
|
+
readonly elevation?: SizeTokens | undefined;
|
|
630
|
+
} & {
|
|
631
|
+
readonly backgrounded?: boolean | undefined;
|
|
632
|
+
readonly radiused?: boolean | undefined;
|
|
633
|
+
readonly hoverTheme?: boolean | undefined;
|
|
634
|
+
readonly pressTheme?: boolean | undefined;
|
|
635
|
+
readonly focusTheme?: boolean | undefined;
|
|
636
|
+
readonly circular?: boolean | undefined;
|
|
637
|
+
readonly padded?: boolean | undefined;
|
|
638
|
+
readonly elevate?: boolean | undefined;
|
|
639
|
+
readonly bordered?: number | boolean | undefined;
|
|
640
|
+
readonly transparent?: boolean | undefined;
|
|
641
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
642
|
+
}, "size" | "unstyled" | "disabled"> & {
|
|
643
|
+
readonly size?: SizeTokens | undefined;
|
|
644
|
+
readonly disabled?: boolean | undefined;
|
|
645
|
+
readonly unstyled?: boolean | undefined;
|
|
646
|
+
}>> & import("@tamagui/web").PseudoProps<Partial<Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
647
|
+
readonly fullscreen?: boolean | undefined;
|
|
648
|
+
readonly elevation?: SizeTokens | undefined;
|
|
649
|
+
} & {
|
|
650
|
+
readonly backgrounded?: boolean | undefined;
|
|
651
|
+
readonly radiused?: boolean | undefined;
|
|
652
|
+
readonly hoverTheme?: boolean | undefined;
|
|
653
|
+
readonly pressTheme?: boolean | undefined;
|
|
654
|
+
readonly focusTheme?: boolean | undefined;
|
|
655
|
+
readonly circular?: boolean | undefined;
|
|
656
|
+
readonly padded?: boolean | undefined;
|
|
657
|
+
readonly elevate?: boolean | undefined;
|
|
658
|
+
readonly bordered?: number | boolean | undefined;
|
|
659
|
+
readonly transparent?: boolean | undefined;
|
|
660
|
+
readonly chromeless?: boolean | "all" | undefined;
|
|
661
|
+
}, "size" | "unstyled" | "disabled"> & {
|
|
662
|
+
readonly size?: SizeTokens | undefined;
|
|
663
|
+
readonly disabled?: boolean | undefined;
|
|
664
|
+
readonly unstyled?: boolean | undefined;
|
|
502
665
|
}>> & {
|
|
503
666
|
/** The value for the tabs state to be changed to after activation of the trigger */
|
|
504
667
|
value: string;
|
|
505
668
|
/** Used for making custom indicators when trigger interacted with */
|
|
506
|
-
onInteraction?: ((type: InteractionType, layout:
|
|
669
|
+
onInteraction?: ((type: InteractionType, layout: TabLayout | null) => void) | undefined;
|
|
507
670
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
508
671
|
Content: React.ForwardRefExoticComponent<((Omit<import("react-native").ViewProps, "display" | "children" | "onLayout" | keyof import("react-native").GestureResponderHandlers> & import("@tamagui/web").ExtendBaseStackProps & import("@tamagui/web").TamaguiComponentPropsBase & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStylePropsBase>> & import("@tamagui/core/types/reactNativeTypes").RNViewProps & Omit<{
|
|
509
672
|
readonly fullscreen?: boolean | undefined;
|
|
@@ -619,5 +782,5 @@ export declare const Tabs: React.ForwardRefExoticComponent<((Omit<import("react-
|
|
|
619
782
|
forceMount?: true | undefined;
|
|
620
783
|
}, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
621
784
|
};
|
|
622
|
-
export type { TabsProps, TabsListProps, TabsTriggerProps, TabsContentProps,
|
|
785
|
+
export type { TabsProps, TabsListProps, TabsTriggerProps, TabsTriggerLayout, TabsTabProps, TabsContentProps, TabLayout, };
|
|
623
786
|
//# sourceMappingURL=Tabs.d.ts.map
|
package/types/Tabs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../src/Tabs.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAS,UAAU,EAAgB,MAAM,gBAAgB,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAA+B,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../src/Tabs.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAS,UAAU,EAAgB,MAAM,gBAAgB,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAA+B,MAAM,uBAAuB,CAAA;AAIrF,OAAO,EACL,QAAQ,EACR,UAAU,EASX,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