@demlanide/react-lucky-components 0.1.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 +184 -0
- package/dist/Alert/Alert.d.ts +3 -0
- package/dist/Alert/Alert.d.ts.map +1 -0
- package/dist/Alert/Alert.js +7 -0
- package/dist/Alert/constants.d.ts +38 -0
- package/dist/Alert/constants.d.ts.map +1 -0
- package/dist/Alert/constants.js +34 -0
- package/dist/Alert/index.d.ts +3 -0
- package/dist/Alert/index.d.ts.map +1 -0
- package/dist/Alert/index.js +1 -0
- package/dist/Alert/styles.d.ts +11 -0
- package/dist/Alert/styles.d.ts.map +1 -0
- package/dist/Alert/styles.js +49 -0
- package/dist/Alert/types.d.ts +20 -0
- package/dist/Alert/types.d.ts.map +1 -0
- package/dist/Alert/types.js +1 -0
- package/dist/Avatar/Avatar.d.ts +3 -0
- package/dist/Avatar/Avatar.d.ts.map +1 -0
- package/dist/Avatar/Avatar.js +33 -0
- package/dist/Avatar/Shapes/.map.json +42 -0
- package/dist/Avatar/Shapes/romb.png +0 -0
- package/dist/Avatar/consts.d.ts +21 -0
- package/dist/Avatar/consts.d.ts.map +1 -0
- package/dist/Avatar/consts.js +20 -0
- package/dist/Avatar/index.d.ts +3 -0
- package/dist/Avatar/index.d.ts.map +1 -0
- package/dist/Avatar/index.js +1 -0
- package/dist/Avatar/styles.d.ts +27 -0
- package/dist/Avatar/styles.d.ts.map +1 -0
- package/dist/Avatar/styles.js +83 -0
- package/dist/Avatar/types.d.ts +31 -0
- package/dist/Avatar/types.d.ts.map +1 -0
- package/dist/Avatar/types.js +1 -0
- package/dist/Avatar/utilities.d.ts +8 -0
- package/dist/Avatar/utilities.d.ts.map +1 -0
- package/dist/Avatar/utilities.js +66 -0
- package/dist/Badge/Badge.d.ts +3 -0
- package/dist/Badge/Badge.d.ts.map +1 -0
- package/dist/Badge/Badge.js +8 -0
- package/dist/Badge/constants.d.ts +20 -0
- package/dist/Badge/constants.d.ts.map +1 -0
- package/dist/Badge/constants.js +32 -0
- package/dist/Badge/index.d.ts +3 -0
- package/dist/Badge/index.d.ts.map +1 -0
- package/dist/Badge/index.js +1 -0
- package/dist/Badge/styles.d.ts +10 -0
- package/dist/Badge/styles.d.ts.map +1 -0
- package/dist/Badge/styles.js +28 -0
- package/dist/Badge/types.d.ts +18 -0
- package/dist/Badge/types.d.ts.map +1 -0
- package/dist/Badge/types.js +1 -0
- package/dist/BigInput/BigInput.d.ts +3 -0
- package/dist/BigInput/BigInput.d.ts.map +1 -0
- package/dist/BigInput/BigInput.js +46 -0
- package/dist/BigInput/constants.d.ts +32 -0
- package/dist/BigInput/constants.d.ts.map +1 -0
- package/dist/BigInput/constants.js +31 -0
- package/dist/BigInput/index.d.ts +3 -0
- package/dist/BigInput/index.d.ts.map +1 -0
- package/dist/BigInput/index.js +1 -0
- package/dist/BigInput/styles.d.ts +14 -0
- package/dist/BigInput/styles.d.ts.map +1 -0
- package/dist/BigInput/styles.js +80 -0
- package/dist/BigInput/types.d.ts +23 -0
- package/dist/BigInput/types.d.ts.map +1 -0
- package/dist/BigInput/types.js +1 -0
- package/dist/Button/Button.d.ts +3 -0
- package/dist/Button/Button.d.ts.map +1 -0
- package/dist/Button/Button.js +7 -0
- package/dist/Button/constants.d.ts +23 -0
- package/dist/Button/constants.d.ts.map +1 -0
- package/dist/Button/constants.js +28 -0
- package/dist/Button/index.d.ts +3 -0
- package/dist/Button/index.d.ts.map +1 -0
- package/dist/Button/index.js +1 -0
- package/dist/Button/styles.d.ts +13 -0
- package/dist/Button/styles.d.ts.map +1 -0
- package/dist/Button/styles.js +34 -0
- package/dist/Button/types.d.ts +20 -0
- package/dist/Button/types.d.ts.map +1 -0
- package/dist/Button/types.js +1 -0
- package/dist/CardStack/BehindCard.d.ts +12 -0
- package/dist/CardStack/BehindCard.d.ts.map +1 -0
- package/dist/CardStack/BehindCard.js +18 -0
- package/dist/CardStack/CardStack.d.ts +3 -0
- package/dist/CardStack/CardStack.d.ts.map +1 -0
- package/dist/CardStack/CardStack.js +77 -0
- package/dist/CardStack/CardStackDots.d.ts +3 -0
- package/dist/CardStack/CardStackDots.d.ts.map +1 -0
- package/dist/CardStack/CardStackDots.js +121 -0
- package/dist/CardStack/StackCard.d.ts +27 -0
- package/dist/CardStack/StackCard.d.ts.map +1 -0
- package/dist/CardStack/StackCard.js +45 -0
- package/dist/CardStack/constants.d.ts +32 -0
- package/dist/CardStack/constants.d.ts.map +1 -0
- package/dist/CardStack/constants.js +31 -0
- package/dist/CardStack/index.d.ts +4 -0
- package/dist/CardStack/index.d.ts.map +1 -0
- package/dist/CardStack/index.js +2 -0
- package/dist/CardStack/types.d.ts +39 -0
- package/dist/CardStack/types.d.ts.map +1 -0
- package/dist/CardStack/types.js +1 -0
- package/dist/CardStack/useSwipeGesture.d.ts +18 -0
- package/dist/CardStack/useSwipeGesture.d.ts.map +1 -0
- package/dist/CardStack/useSwipeGesture.js +70 -0
- package/dist/DatePicker/CalendarModal.d.ts +15 -0
- package/dist/DatePicker/CalendarModal.d.ts.map +1 -0
- package/dist/DatePicker/CalendarModal.js +129 -0
- package/dist/DatePicker/DatePicker.d.ts +3 -0
- package/dist/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/DatePicker/DatePicker.js +57 -0
- package/dist/DatePicker/DayCell.d.ts +14 -0
- package/dist/DatePicker/DayCell.d.ts.map +1 -0
- package/dist/DatePicker/DayCell.js +16 -0
- package/dist/DatePicker/constants.d.ts +46 -0
- package/dist/DatePicker/constants.d.ts.map +1 -0
- package/dist/DatePicker/constants.js +51 -0
- package/dist/DatePicker/icons.d.ts +4 -0
- package/dist/DatePicker/icons.d.ts.map +1 -0
- package/dist/DatePicker/icons.js +12 -0
- package/dist/DatePicker/index.d.ts +3 -0
- package/dist/DatePicker/index.d.ts.map +1 -0
- package/dist/DatePicker/index.js +1 -0
- package/dist/DatePicker/styles.d.ts +40 -0
- package/dist/DatePicker/styles.d.ts.map +1 -0
- package/dist/DatePicker/styles.js +134 -0
- package/dist/DatePicker/types.d.ts +39 -0
- package/dist/DatePicker/types.d.ts.map +1 -0
- package/dist/DatePicker/types.js +1 -0
- package/dist/DatePicker/utils.d.ts +15 -0
- package/dist/DatePicker/utils.d.ts.map +1 -0
- package/dist/DatePicker/utils.js +133 -0
- package/dist/DimmedScrollView/DimmedScrollView.d.ts +5 -0
- package/dist/DimmedScrollView/DimmedScrollView.d.ts.map +1 -0
- package/dist/DimmedScrollView/DimmedScrollView.js +18 -0
- package/dist/DimmedScrollView/index.d.ts +3 -0
- package/dist/DimmedScrollView/index.d.ts.map +1 -0
- package/dist/DimmedScrollView/index.js +1 -0
- package/dist/DimmedScrollView/styles.d.ts +15 -0
- package/dist/DimmedScrollView/styles.d.ts.map +1 -0
- package/dist/DimmedScrollView/styles.js +32 -0
- package/dist/DimmedScrollView/types.d.ts +20 -0
- package/dist/DimmedScrollView/types.d.ts.map +1 -0
- package/dist/DimmedScrollView/types.js +1 -0
- package/dist/FadingEdge/FadingEdge.d.ts +3 -0
- package/dist/FadingEdge/FadingEdge.d.ts.map +1 -0
- package/dist/FadingEdge/FadingEdge.js +30 -0
- package/dist/FadingEdge/index.d.ts +3 -0
- package/dist/FadingEdge/index.d.ts.map +1 -0
- package/dist/FadingEdge/index.js +1 -0
- package/dist/FadingEdge/types.d.ts +14 -0
- package/dist/FadingEdge/types.d.ts.map +1 -0
- package/dist/FadingEdge/types.js +1 -0
- package/dist/Icon/Icon.d.ts +6 -0
- package/dist/Icon/Icon.d.ts.map +1 -0
- package/dist/Icon/Icon.js +16 -0
- package/dist/Icon/defaults.d.ts +7 -0
- package/dist/Icon/defaults.d.ts.map +1 -0
- package/dist/Icon/defaults.js +80 -0
- package/dist/Icon/icons/navigation.d.ts +10 -0
- package/dist/Icon/icons/navigation.d.ts.map +1 -0
- package/dist/Icon/icons/navigation.js +10 -0
- package/dist/Icon/icons/system.d.ts +29 -0
- package/dist/Icon/icons/system.d.ts.map +1 -0
- package/dist/Icon/icons/system.js +29 -0
- package/dist/Icon/icons/tabs.d.ts +6 -0
- package/dist/Icon/icons/tabs.d.ts.map +1 -0
- package/dist/Icon/icons/tabs.js +6 -0
- package/dist/Icon/index.d.ts +3 -0
- package/dist/Icon/index.d.ts.map +1 -0
- package/dist/Icon/index.js +1 -0
- package/dist/Icon/registry.d.ts +3 -0
- package/dist/Icon/registry.d.ts.map +1 -0
- package/dist/Icon/registry.js +43 -0
- package/dist/Icon/types.d.ts +20 -0
- package/dist/Icon/types.d.ts.map +1 -0
- package/dist/Icon/types.js +40 -0
- package/dist/Input/Input.d.ts +5 -0
- package/dist/Input/Input.d.ts.map +1 -0
- package/dist/Input/Input.js +64 -0
- package/dist/Input/constants.d.ts +56 -0
- package/dist/Input/constants.d.ts.map +1 -0
- package/dist/Input/constants.js +61 -0
- package/dist/Input/index.d.ts +3 -0
- package/dist/Input/index.d.ts.map +1 -0
- package/dist/Input/index.js +1 -0
- package/dist/Input/styles.d.ts +23 -0
- package/dist/Input/styles.d.ts.map +1 -0
- package/dist/Input/styles.js +99 -0
- package/dist/Input/types.d.ts +21 -0
- package/dist/Input/types.d.ts.map +1 -0
- package/dist/Input/types.js +1 -0
- package/dist/ListCell/CheckMark.d.ts +10 -0
- package/dist/ListCell/CheckMark.d.ts.map +1 -0
- package/dist/ListCell/CheckMark.js +12 -0
- package/dist/ListCell/Chevron.d.ts +14 -0
- package/dist/ListCell/Chevron.d.ts.map +1 -0
- package/dist/ListCell/Chevron.js +22 -0
- package/dist/ListCell/ListCell.d.ts +3 -0
- package/dist/ListCell/ListCell.d.ts.map +1 -0
- package/dist/ListCell/ListCell.js +120 -0
- package/dist/ListCell/PickerModal.d.ts +13 -0
- package/dist/ListCell/PickerModal.d.ts.map +1 -0
- package/dist/ListCell/PickerModal.js +8 -0
- package/dist/ListCell/RadioButton.d.ts +10 -0
- package/dist/ListCell/RadioButton.d.ts.map +1 -0
- package/dist/ListCell/RadioButton.js +12 -0
- package/dist/ListCell/SwitchTrack.d.ts +19 -0
- package/dist/ListCell/SwitchTrack.d.ts.map +1 -0
- package/dist/ListCell/SwitchTrack.js +8 -0
- package/dist/ListCell/constants.d.ts +30 -0
- package/dist/ListCell/constants.d.ts.map +1 -0
- package/dist/ListCell/constants.js +35 -0
- package/dist/ListCell/index.d.ts +3 -0
- package/dist/ListCell/index.d.ts.map +1 -0
- package/dist/ListCell/index.js +1 -0
- package/dist/ListCell/styles.d.ts +28 -0
- package/dist/ListCell/styles.d.ts.map +1 -0
- package/dist/ListCell/styles.js +111 -0
- package/dist/ListCell/types.d.ts +68 -0
- package/dist/ListCell/types.d.ts.map +1 -0
- package/dist/ListCell/types.js +1 -0
- package/dist/ListCell/useSwitchAnimation.d.ts +12 -0
- package/dist/ListCell/useSwitchAnimation.d.ts.map +1 -0
- package/dist/ListCell/useSwitchAnimation.js +31 -0
- package/dist/ListCell/utilities.d.ts +24 -0
- package/dist/ListCell/utilities.d.ts.map +1 -0
- package/dist/ListCell/utilities.js +29 -0
- package/dist/Picker/Picker.d.ts +3 -0
- package/dist/Picker/Picker.d.ts.map +1 -0
- package/dist/Picker/Picker.js +76 -0
- package/dist/Picker/PickerHeader.d.ts +7 -0
- package/dist/Picker/PickerHeader.d.ts.map +1 -0
- package/dist/Picker/PickerHeader.js +6 -0
- package/dist/Picker/PickerRow.d.ts +9 -0
- package/dist/Picker/PickerRow.d.ts.map +1 -0
- package/dist/Picker/PickerRow.js +9 -0
- package/dist/Picker/SearchField.d.ts +8 -0
- package/dist/Picker/SearchField.d.ts.map +1 -0
- package/dist/Picker/SearchField.js +8 -0
- package/dist/Picker/constants.d.ts +24 -0
- package/dist/Picker/constants.d.ts.map +1 -0
- package/dist/Picker/constants.js +29 -0
- package/dist/Picker/icons.d.ts +3 -0
- package/dist/Picker/icons.d.ts.map +1 -0
- package/dist/Picker/icons.js +9 -0
- package/dist/Picker/index.d.ts +3 -0
- package/dist/Picker/index.d.ts.map +1 -0
- package/dist/Picker/index.js +1 -0
- package/dist/Picker/styles.d.ts +34 -0
- package/dist/Picker/styles.d.ts.map +1 -0
- package/dist/Picker/styles.js +192 -0
- package/dist/Picker/types.d.ts +40 -0
- package/dist/Picker/types.d.ts.map +1 -0
- package/dist/Picker/types.js +1 -0
- package/dist/Picker/useFilteredItems.d.ts +3 -0
- package/dist/Picker/useFilteredItems.d.ts.map +1 -0
- package/dist/Picker/useFilteredItems.js +18 -0
- package/dist/SegmentedTabs/SegmentedTabs.d.ts +3 -0
- package/dist/SegmentedTabs/SegmentedTabs.d.ts.map +1 -0
- package/dist/SegmentedTabs/SegmentedTabs.js +70 -0
- package/dist/SegmentedTabs/index.d.ts +3 -0
- package/dist/SegmentedTabs/index.d.ts.map +1 -0
- package/dist/SegmentedTabs/index.js +1 -0
- package/dist/SegmentedTabs/types.d.ts +10 -0
- package/dist/SegmentedTabs/types.d.ts.map +1 -0
- package/dist/SegmentedTabs/types.js +1 -0
- package/dist/Select/Select.d.ts +3 -0
- package/dist/Select/Select.d.ts.map +1 -0
- package/dist/Select/Select.js +60 -0
- package/dist/Select/index.d.ts +3 -0
- package/dist/Select/index.d.ts.map +1 -0
- package/dist/Select/index.js +1 -0
- package/dist/Select/styles.d.ts +8 -0
- package/dist/Select/styles.d.ts.map +1 -0
- package/dist/Select/styles.js +36 -0
- package/dist/Select/types.d.ts +37 -0
- package/dist/Select/types.d.ts.map +1 -0
- package/dist/Select/types.js +1 -0
- package/dist/Tabs/FloatingTabBar.d.ts +9 -0
- package/dist/Tabs/FloatingTabBar.d.ts.map +1 -0
- package/dist/Tabs/FloatingTabBar.js +55 -0
- package/dist/Tabs/Tabs.d.ts +21 -0
- package/dist/Tabs/Tabs.d.ts.map +1 -0
- package/dist/Tabs/Tabs.js +29 -0
- package/dist/Tabs/constants.d.ts +35 -0
- package/dist/Tabs/constants.d.ts.map +1 -0
- package/dist/Tabs/constants.js +36 -0
- package/dist/Tabs/icons.d.ts +16 -0
- package/dist/Tabs/icons.d.ts.map +1 -0
- package/dist/Tabs/icons.js +8 -0
- package/dist/Tabs/index.d.ts +6 -0
- package/dist/Tabs/index.d.ts.map +1 -0
- package/dist/Tabs/index.js +4 -0
- package/dist/Tabs/styles.d.ts +224 -0
- package/dist/Tabs/styles.d.ts.map +1 -0
- package/dist/Tabs/styles.js +121 -0
- package/dist/Tabs/types.d.ts +61 -0
- package/dist/Tabs/types.d.ts.map +1 -0
- package/dist/Tabs/types.js +4 -0
- package/dist/Tabs/useFloatingTabBarScrollPadding.d.ts +7 -0
- package/dist/Tabs/useFloatingTabBarScrollPadding.d.ts.map +1 -0
- package/dist/Tabs/useFloatingTabBarScrollPadding.js +11 -0
- package/dist/Tabs/utilities.d.ts +7 -0
- package/dist/Tabs/utilities.d.ts.map +1 -0
- package/dist/Tabs/utilities.js +18 -0
- package/dist/ToggleSection/ToggleSection.d.ts +3 -0
- package/dist/ToggleSection/ToggleSection.d.ts.map +1 -0
- package/dist/ToggleSection/ToggleSection.js +18 -0
- package/dist/ToggleSection/index.d.ts +3 -0
- package/dist/ToggleSection/index.d.ts.map +1 -0
- package/dist/ToggleSection/index.js +1 -0
- package/dist/ToggleSection/styles.d.ts +15 -0
- package/dist/ToggleSection/styles.d.ts.map +1 -0
- package/dist/ToggleSection/styles.js +49 -0
- package/dist/ToggleSection/types.d.ts +36 -0
- package/dist/ToggleSection/types.d.ts.map +1 -0
- package/dist/ToggleSection/types.js +1 -0
- package/dist/assets/fonts/.map.json +51 -0
- package/dist/assets/fonts/SB Sans Text.ttf +0 -0
- package/dist/assets/fonts/sf-pro-display/.map.json +114 -0
- package/dist/assets/fonts/sf-pro-display/SFPRODISPLAYBLACKITALIC.OTF +0 -0
- package/dist/assets/fonts/sf-pro-display/SFPRODISPLAYBOLD.OTF +0 -0
- package/dist/assets/fonts/sf-pro-display/SFPRODISPLAYHEAVYITALIC.OTF +0 -0
- package/dist/assets/fonts/sf-pro-display/SFPRODISPLAYLIGHTITALIC.OTF +0 -0
- package/dist/assets/fonts/sf-pro-display/SFPRODISPLAYMEDIUM.OTF +0 -0
- package/dist/assets/fonts/sf-pro-display/SFPRODISPLAYREGULAR.otf +0 -0
- package/dist/assets/fonts/sf-pro-display/SFPRODISPLAYSEMIBOLDITALIC.OTF +0 -0
- package/dist/assets/fonts/sf-pro-display/SFPRODISPLAYTHINITALIC.OTF +0 -0
- package/dist/assets/fonts/sf-pro-display/SFPRODISPLAYULTRALIGHTITALIC.OTF +0 -0
- package/dist/fonts.d.ts +6 -0
- package/dist/fonts.d.ts.map +1 -0
- package/dist/fonts.js +8 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/theme.d.ts +19 -0
- package/dist/theme.d.ts.map +1 -0
- package/dist/theme.js +18 -0
- package/package.json +76 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const OuterContainer: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("react-native").ViewProps, {
|
|
3
|
+
$bottomPadding: number;
|
|
4
|
+
}>>;
|
|
5
|
+
export declare const PillShadow: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
|
|
6
|
+
export declare const Pill: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
|
|
7
|
+
export declare const BlurLayer: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
|
|
8
|
+
export declare const GlassOverlay: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
|
|
9
|
+
export declare const GlassEdge: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
|
|
10
|
+
export declare const SpecularHighlight: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
|
|
11
|
+
export declare const Indicator: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<{
|
|
12
|
+
pointerEvents?: "none" | "auto" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"none" | "auto" | "box-none" | "box-only" | undefined> | undefined;
|
|
13
|
+
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
14
|
+
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
15
|
+
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
16
|
+
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
17
|
+
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
18
|
+
removeClippedSubviews?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
19
|
+
testID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
20
|
+
nativeID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
21
|
+
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
22
|
+
collapsableChildren?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
23
|
+
renderToHardwareTextureAndroid?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
24
|
+
focusable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
25
|
+
tabIndex?: 0 | -1 | import("react-native-reanimated").SharedValue<0 | -1 | undefined> | undefined;
|
|
26
|
+
shouldRasterizeIOS?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
27
|
+
isTVSelectable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
28
|
+
hasTVPreferredFocus?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
29
|
+
tvParallaxShiftDistanceX?: number | import("react-native-reanimated").SharedValue<number | undefined> | undefined;
|
|
30
|
+
tvParallaxShiftDistanceY?: number | import("react-native-reanimated").SharedValue<number | undefined> | undefined;
|
|
31
|
+
tvParallaxTiltAngle?: number | import("react-native-reanimated").SharedValue<number | undefined> | undefined;
|
|
32
|
+
tvParallaxMagnification?: number | import("react-native-reanimated").SharedValue<number | undefined> | undefined;
|
|
33
|
+
onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
34
|
+
onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
35
|
+
onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
36
|
+
onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
37
|
+
onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
38
|
+
onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
39
|
+
onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
40
|
+
onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
41
|
+
onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
42
|
+
onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
43
|
+
onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
44
|
+
onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
45
|
+
onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
46
|
+
onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
47
|
+
onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
48
|
+
onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
49
|
+
onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
50
|
+
onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
51
|
+
onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
52
|
+
onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
53
|
+
onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
54
|
+
onPointerMove?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
55
|
+
onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
56
|
+
onPointerCancel?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
57
|
+
onPointerCancelCapture?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
58
|
+
onPointerDown?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
59
|
+
onPointerDownCapture?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
60
|
+
onPointerUp?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
61
|
+
onPointerUpCapture?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
62
|
+
accessible?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
63
|
+
accessibilityActions?: readonly Readonly<{
|
|
64
|
+
name: string;
|
|
65
|
+
label?: string | undefined;
|
|
66
|
+
}>[] | import("react-native-reanimated").SharedValue<readonly Readonly<{
|
|
67
|
+
name: string;
|
|
68
|
+
label?: string | undefined;
|
|
69
|
+
}>[] | undefined> | undefined;
|
|
70
|
+
accessibilityLabel?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
71
|
+
'aria-label'?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
72
|
+
accessibilityRole?: import("react-native").AccessibilityRole | import("react-native-reanimated").SharedValue<import("react-native").AccessibilityRole | undefined> | undefined;
|
|
73
|
+
accessibilityState?: import("react-native").AccessibilityState | import("react-native-reanimated").SharedValue<import("react-native").AccessibilityState | undefined> | undefined;
|
|
74
|
+
'aria-busy'?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
75
|
+
'aria-checked'?: boolean | "mixed" | import("react-native-reanimated").SharedValue<boolean | "mixed" | undefined> | undefined;
|
|
76
|
+
'aria-disabled'?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
77
|
+
'aria-expanded'?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
78
|
+
'aria-selected'?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
79
|
+
accessibilityHint?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
80
|
+
accessibilityValue?: import("react-native").AccessibilityValue | import("react-native-reanimated").SharedValue<import("react-native").AccessibilityValue | undefined> | undefined;
|
|
81
|
+
'aria-valuemax'?: number | import("react-native-reanimated").SharedValue<number | undefined> | undefined;
|
|
82
|
+
'aria-valuemin'?: number | import("react-native-reanimated").SharedValue<number | undefined> | undefined;
|
|
83
|
+
'aria-valuenow'?: number | import("react-native-reanimated").SharedValue<number | undefined> | undefined;
|
|
84
|
+
'aria-valuetext'?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
85
|
+
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").AccessibilityActionEvent) => void) | undefined> | undefined;
|
|
86
|
+
importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | import("react-native-reanimated").SharedValue<"auto" | "yes" | "no" | "no-hide-descendants" | undefined> | undefined;
|
|
87
|
+
'aria-hidden'?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
88
|
+
'aria-modal'?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
89
|
+
role?: import("react-native").Role | import("react-native-reanimated").SharedValue<import("react-native").Role | undefined> | undefined;
|
|
90
|
+
accessibilityLabelledBy?: string | string[] | import("react-native-reanimated").SharedValue<string | string[] | undefined> | undefined;
|
|
91
|
+
'aria-labelledby'?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
92
|
+
accessibilityLiveRegion?: "none" | "polite" | "assertive" | import("react-native-reanimated").SharedValue<"none" | "polite" | "assertive" | undefined> | undefined;
|
|
93
|
+
'aria-live'?: "polite" | "assertive" | "off" | import("react-native-reanimated").SharedValue<"polite" | "assertive" | "off" | undefined> | undefined;
|
|
94
|
+
accessibilityElementsHidden?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
95
|
+
accessibilityViewIsModal?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
96
|
+
onAccessibilityEscape?: (() => void) | import("react-native-reanimated").SharedValue<(() => void) | undefined> | undefined;
|
|
97
|
+
onAccessibilityTap?: (() => void) | import("react-native-reanimated").SharedValue<(() => void) | undefined> | undefined;
|
|
98
|
+
onMagicTap?: (() => void) | import("react-native-reanimated").SharedValue<(() => void) | undefined> | undefined;
|
|
99
|
+
accessibilityIgnoresInvertColors?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
100
|
+
accessibilityLanguage?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
101
|
+
accessibilityShowsLargeContentViewer?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
102
|
+
accessibilityLargeContentTitle?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
103
|
+
} & {
|
|
104
|
+
style?: import("react-native").StyleProp<import("react-native-reanimated").AnimatedStyle<import("react-native").StyleProp<import("react-native").ViewStyle>>>;
|
|
105
|
+
} & {
|
|
106
|
+
layout?: import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").LayoutAnimationFunction | typeof import("react-native-reanimated").BaseAnimationBuilder | undefined;
|
|
107
|
+
entering?: (import("react-native-reanimated").BaseAnimationBuilder | typeof import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").EntryExitAnimationFunction | import("react-native-reanimated/lib/typescript/layoutReanimation/animationBuilder/Keyframe").ReanimatedKeyframe) | undefined;
|
|
108
|
+
exiting?: (import("react-native-reanimated").BaseAnimationBuilder | typeof import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").EntryExitAnimationFunction | import("react-native-reanimated/lib/typescript/layoutReanimation/animationBuilder/Keyframe").ReanimatedKeyframe) | undefined;
|
|
109
|
+
} & {
|
|
110
|
+
sharedTransitionTag?: string | undefined;
|
|
111
|
+
sharedTransitionStyle?: import("react-native-reanimated").SharedTransition | undefined;
|
|
112
|
+
} & {
|
|
113
|
+
animatedProps?: Partial<{
|
|
114
|
+
pointerEvents?: "none" | "auto" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"none" | "auto" | "box-none" | "box-only" | undefined> | undefined;
|
|
115
|
+
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
116
|
+
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
117
|
+
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
118
|
+
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
119
|
+
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
120
|
+
removeClippedSubviews?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
121
|
+
testID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
122
|
+
nativeID?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
123
|
+
collapsable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
124
|
+
collapsableChildren?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
125
|
+
renderToHardwareTextureAndroid?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
126
|
+
focusable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
127
|
+
tabIndex?: 0 | -1 | import("react-native-reanimated").SharedValue<0 | -1 | undefined> | undefined;
|
|
128
|
+
shouldRasterizeIOS?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
129
|
+
isTVSelectable?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
130
|
+
hasTVPreferredFocus?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
131
|
+
tvParallaxShiftDistanceX?: number | import("react-native-reanimated").SharedValue<number | undefined> | undefined;
|
|
132
|
+
tvParallaxShiftDistanceY?: number | import("react-native-reanimated").SharedValue<number | undefined> | undefined;
|
|
133
|
+
tvParallaxTiltAngle?: number | import("react-native-reanimated").SharedValue<number | undefined> | undefined;
|
|
134
|
+
tvParallaxMagnification?: number | import("react-native-reanimated").SharedValue<number | undefined> | undefined;
|
|
135
|
+
onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
136
|
+
onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
137
|
+
onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
138
|
+
onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
139
|
+
onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
140
|
+
onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
141
|
+
onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
142
|
+
onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
143
|
+
onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
144
|
+
onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
145
|
+
onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
146
|
+
onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
147
|
+
onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
148
|
+
onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
149
|
+
onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
150
|
+
onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
151
|
+
onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
152
|
+
onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
153
|
+
onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
154
|
+
onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
155
|
+
onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
156
|
+
onPointerMove?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
157
|
+
onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
158
|
+
onPointerCancel?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
159
|
+
onPointerCancelCapture?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
160
|
+
onPointerDown?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
161
|
+
onPointerDownCapture?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
162
|
+
onPointerUp?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
163
|
+
onPointerUpCapture?: ((event: import("react-native").PointerEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
164
|
+
accessible?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
165
|
+
accessibilityActions?: readonly Readonly<{
|
|
166
|
+
name: string;
|
|
167
|
+
label?: string | undefined;
|
|
168
|
+
}>[] | import("react-native-reanimated").SharedValue<readonly Readonly<{
|
|
169
|
+
name: string;
|
|
170
|
+
label?: string | undefined;
|
|
171
|
+
}>[] | undefined> | undefined;
|
|
172
|
+
accessibilityLabel?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
173
|
+
'aria-label'?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
174
|
+
accessibilityRole?: import("react-native").AccessibilityRole | import("react-native-reanimated").SharedValue<import("react-native").AccessibilityRole | undefined> | undefined;
|
|
175
|
+
accessibilityState?: import("react-native").AccessibilityState | import("react-native-reanimated").SharedValue<import("react-native").AccessibilityState | undefined> | undefined;
|
|
176
|
+
'aria-busy'?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
177
|
+
'aria-checked'?: boolean | "mixed" | import("react-native-reanimated").SharedValue<boolean | "mixed" | undefined> | undefined;
|
|
178
|
+
'aria-disabled'?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
179
|
+
'aria-expanded'?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
180
|
+
'aria-selected'?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
181
|
+
accessibilityHint?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
182
|
+
accessibilityValue?: import("react-native").AccessibilityValue | import("react-native-reanimated").SharedValue<import("react-native").AccessibilityValue | undefined> | undefined;
|
|
183
|
+
'aria-valuemax'?: number | import("react-native-reanimated").SharedValue<number | undefined> | undefined;
|
|
184
|
+
'aria-valuemin'?: number | import("react-native-reanimated").SharedValue<number | undefined> | undefined;
|
|
185
|
+
'aria-valuenow'?: number | import("react-native-reanimated").SharedValue<number | undefined> | undefined;
|
|
186
|
+
'aria-valuetext'?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
187
|
+
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").AccessibilityActionEvent) => void) | undefined> | undefined;
|
|
188
|
+
importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | import("react-native-reanimated").SharedValue<"auto" | "yes" | "no" | "no-hide-descendants" | undefined> | undefined;
|
|
189
|
+
'aria-hidden'?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
190
|
+
'aria-modal'?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
191
|
+
role?: import("react-native").Role | import("react-native-reanimated").SharedValue<import("react-native").Role | undefined> | undefined;
|
|
192
|
+
accessibilityLabelledBy?: string | string[] | import("react-native-reanimated").SharedValue<string | string[] | undefined> | undefined;
|
|
193
|
+
'aria-labelledby'?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
194
|
+
accessibilityLiveRegion?: "none" | "polite" | "assertive" | import("react-native-reanimated").SharedValue<"none" | "polite" | "assertive" | undefined> | undefined;
|
|
195
|
+
'aria-live'?: "polite" | "assertive" | "off" | import("react-native-reanimated").SharedValue<"polite" | "assertive" | "off" | undefined> | undefined;
|
|
196
|
+
accessibilityElementsHidden?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
197
|
+
accessibilityViewIsModal?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
198
|
+
onAccessibilityEscape?: (() => void) | import("react-native-reanimated").SharedValue<(() => void) | undefined> | undefined;
|
|
199
|
+
onAccessibilityTap?: (() => void) | import("react-native-reanimated").SharedValue<(() => void) | undefined> | undefined;
|
|
200
|
+
onMagicTap?: (() => void) | import("react-native-reanimated").SharedValue<(() => void) | undefined> | undefined;
|
|
201
|
+
accessibilityIgnoresInvertColors?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
202
|
+
accessibilityLanguage?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
203
|
+
accessibilityShowsLargeContentViewer?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
204
|
+
accessibilityLargeContentTitle?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
205
|
+
} & {
|
|
206
|
+
style?: import("react-native").StyleProp<import("react-native-reanimated").AnimatedStyle<import("react-native").StyleProp<import("react-native").ViewStyle>>>;
|
|
207
|
+
} & {
|
|
208
|
+
layout?: import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").LayoutAnimationFunction | typeof import("react-native-reanimated").BaseAnimationBuilder | undefined;
|
|
209
|
+
entering?: (import("react-native-reanimated").BaseAnimationBuilder | typeof import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").EntryExitAnimationFunction | import("react-native-reanimated/lib/typescript/layoutReanimation/animationBuilder/Keyframe").ReanimatedKeyframe) | undefined;
|
|
210
|
+
exiting?: (import("react-native-reanimated").BaseAnimationBuilder | typeof import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").EntryExitAnimationFunction | import("react-native-reanimated/lib/typescript/layoutReanimation/animationBuilder/Keyframe").ReanimatedKeyframe) | undefined;
|
|
211
|
+
} & {
|
|
212
|
+
sharedTransitionTag?: string | undefined;
|
|
213
|
+
sharedTransitionStyle?: import("react-native-reanimated").SharedTransition | undefined;
|
|
214
|
+
}> | undefined;
|
|
215
|
+
} & import("react").RefAttributes<import("react").Component<import("react-native-reanimated").AnimateProps<import("react-native").ViewProps>, any, any>>, never>>;
|
|
216
|
+
export declare const TabButton: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>, never>>;
|
|
217
|
+
export declare const IconContainer: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
|
|
218
|
+
export declare const LabelText: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("react-native").TextProps, {
|
|
219
|
+
$color: string;
|
|
220
|
+
$focused: boolean;
|
|
221
|
+
}>>;
|
|
222
|
+
export declare const Badge: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
|
|
223
|
+
export declare const BadgeText: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
|
|
224
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Tabs/styles.ts"],"names":[],"mappings":";AAaA,eAAO,MAAM,cAAc;oBAAiC,MAAM;GASjE,CAAC;AAEF,eAAO,MAAM,UAAU,+KAcpB,CAAC;AAEJ,eAAO,MAAM,IAAI,+KAKhB,CAAC;AAEF,eAAO,MAAM,SAAS,+KAMrB,CAAC;AAEF,eAAO,MAAM,YAAY,+KASxB,CAAC;AAEF,eAAO,MAAM,SAAS,+KASrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,+KAO7B,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iKAQrB,CAAC;AAEF,eAAO,MAAM,SAAS,iPAQrB,CAAC;AAEF,eAAO,MAAM,aAAa,+KAKzB,CAAC;AAEF,eAAO,MAAM,SAAS;YAAyB,MAAM;cAAY,OAAO;GAQvE,CAAC;AAEF,eAAO,MAAM,KAAK,+KAWjB,CAAC;AAEF,eAAO,MAAM,SAAS,+KAKrB,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Platform } from 'react-native';
|
|
2
|
+
import Animated from 'react-native-reanimated';
|
|
3
|
+
import styled from 'styled-components/native';
|
|
4
|
+
import { colors, typography } from '../theme';
|
|
5
|
+
import { LABEL_SIZE, PILL_INSET, PILL_RADIUS, SELECTED_TAB_BACKGROUND, TAB_BAR_TOP_PADDING, TAB_WIDTH, } from './constants';
|
|
6
|
+
export const OuterContainer = styled.View `
|
|
7
|
+
position: absolute;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
right: 0;
|
|
11
|
+
align-items: center;
|
|
12
|
+
padding-top: ${TAB_BAR_TOP_PADDING}px;
|
|
13
|
+
padding-horizontal: 25px;
|
|
14
|
+
padding-bottom: ${({ $bottomPadding }) => `${$bottomPadding}px`};
|
|
15
|
+
`;
|
|
16
|
+
export const PillShadow = styled.View(() => ({
|
|
17
|
+
borderRadius: PILL_RADIUS,
|
|
18
|
+
...Platform.select({
|
|
19
|
+
ios: {
|
|
20
|
+
shadowColor: '#000',
|
|
21
|
+
shadowOffset: { width: 0, height: 8 },
|
|
22
|
+
shadowOpacity: 0.08,
|
|
23
|
+
shadowRadius: 24,
|
|
24
|
+
},
|
|
25
|
+
android: {
|
|
26
|
+
elevation: 12,
|
|
27
|
+
},
|
|
28
|
+
default: {},
|
|
29
|
+
}),
|
|
30
|
+
}));
|
|
31
|
+
export const Pill = styled.View `
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
border-radius: ${PILL_RADIUS}px;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
padding: ${PILL_INSET}px;
|
|
36
|
+
`;
|
|
37
|
+
export const BlurLayer = styled.View `
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 0;
|
|
40
|
+
right: 0;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
`;
|
|
44
|
+
export const GlassOverlay = styled.View `
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 0;
|
|
47
|
+
right: 0;
|
|
48
|
+
bottom: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
background-color: ${Platform.OS === 'ios'
|
|
51
|
+
? 'rgba(255, 255, 255, 0.06)'
|
|
52
|
+
: 'rgba(255, 255, 255, 0.35)'};
|
|
53
|
+
`;
|
|
54
|
+
export const GlassEdge = styled.View `
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: 0;
|
|
57
|
+
right: 0;
|
|
58
|
+
bottom: 0;
|
|
59
|
+
left: 0;
|
|
60
|
+
border-radius: ${PILL_RADIUS}px;
|
|
61
|
+
border-width: 1.5px;
|
|
62
|
+
border-color: rgba(255, 255, 255, 0.45);
|
|
63
|
+
`;
|
|
64
|
+
export const SpecularHighlight = styled.View `
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 0;
|
|
67
|
+
left: 20px;
|
|
68
|
+
right: 20px;
|
|
69
|
+
height: 1px;
|
|
70
|
+
background-color: rgba(255, 255, 255, 0.7);
|
|
71
|
+
`;
|
|
72
|
+
export const Indicator = styled(Animated.View) `
|
|
73
|
+
position: absolute;
|
|
74
|
+
top: ${PILL_INSET}px;
|
|
75
|
+
left: ${PILL_INSET}px;
|
|
76
|
+
bottom: ${PILL_INSET}px;
|
|
77
|
+
width: ${TAB_WIDTH}px;
|
|
78
|
+
background-color: ${SELECTED_TAB_BACKGROUND};
|
|
79
|
+
border-radius: ${PILL_RADIUS}px;
|
|
80
|
+
`;
|
|
81
|
+
export const TabButton = styled.Pressable `
|
|
82
|
+
width: ${TAB_WIDTH}px;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
padding-top: 6px;
|
|
86
|
+
padding-bottom: 7px;
|
|
87
|
+
padding-horizontal: 8px;
|
|
88
|
+
gap: 1px;
|
|
89
|
+
`;
|
|
90
|
+
export const IconContainer = styled.View `
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
width: 28px;
|
|
94
|
+
height: 28px;
|
|
95
|
+
`;
|
|
96
|
+
export const LabelText = styled.Text `
|
|
97
|
+
color: ${({ $color }) => $color};
|
|
98
|
+
font-size: ${LABEL_SIZE}px;
|
|
99
|
+
line-height: 12px;
|
|
100
|
+
text-align: center;
|
|
101
|
+
letter-spacing: -0.1px;
|
|
102
|
+
font-weight: ${({ $focused }) => $focused ? typography.fontWeight.semibold : typography.fontWeight.medium};
|
|
103
|
+
`;
|
|
104
|
+
export const Badge = styled.View `
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: -2px;
|
|
107
|
+
right: -8px;
|
|
108
|
+
background-color: ${colors.error};
|
|
109
|
+
border-radius: 7px;
|
|
110
|
+
min-width: 14px;
|
|
111
|
+
height: 14px;
|
|
112
|
+
align-items: center;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
padding-horizontal: 3px;
|
|
115
|
+
`;
|
|
116
|
+
export const BadgeText = styled.Text `
|
|
117
|
+
color: ${colors.white};
|
|
118
|
+
font-size: 9px;
|
|
119
|
+
font-weight: ${typography.fontWeight.bold};
|
|
120
|
+
text-align: center;
|
|
121
|
+
`;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tabs type definitions
|
|
3
|
+
*/
|
|
4
|
+
import type React from 'react';
|
|
5
|
+
import type { ViewStyle } from 'react-native';
|
|
6
|
+
import type { BottomTabBarProps, BottomTabNavigationOptions } from '@react-navigation/bottom-tabs';
|
|
7
|
+
export interface TabIcon {
|
|
8
|
+
/** Current tint color (active or inactive) */
|
|
9
|
+
color: string;
|
|
10
|
+
/** Suggested icon size in dp */
|
|
11
|
+
size: number;
|
|
12
|
+
/** Whether this tab is currently focused */
|
|
13
|
+
focused: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface TabItem {
|
|
16
|
+
/** Unique route name for the tab */
|
|
17
|
+
name: string;
|
|
18
|
+
/** Display label shown beneath the icon */
|
|
19
|
+
label: string;
|
|
20
|
+
/** Screen or navigator component to render */
|
|
21
|
+
component: React.ComponentType<any>;
|
|
22
|
+
/**
|
|
23
|
+
* Render function for the tab icon.
|
|
24
|
+
* Receives the current tint color, suggested size, and focused state.
|
|
25
|
+
*/
|
|
26
|
+
icon?: (props: TabIcon) => React.ReactNode;
|
|
27
|
+
/** Badge count shown on the tab (e.g. unread notification count) */
|
|
28
|
+
badge?: number;
|
|
29
|
+
/** Per-tab navigation options override */
|
|
30
|
+
options?: BottomTabNavigationOptions;
|
|
31
|
+
/** Accessibility label override for screen readers */
|
|
32
|
+
accessibilityLabel?: string;
|
|
33
|
+
/** Test ID for automated testing */
|
|
34
|
+
testID?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface TabsProps {
|
|
37
|
+
/** Array of tab configurations to render */
|
|
38
|
+
tabs: TabItem[];
|
|
39
|
+
/** Route name of the tab to show on first render */
|
|
40
|
+
initialTab?: string;
|
|
41
|
+
/** Custom style applied to the outer tab bar container */
|
|
42
|
+
tabBarStyle?: ViewStyle;
|
|
43
|
+
/** Active tab tint color @default colors.primary */
|
|
44
|
+
activeTintColor?: string;
|
|
45
|
+
/** Inactive tab tint color @default '#404040' */
|
|
46
|
+
inactiveTintColor?: string;
|
|
47
|
+
/** Whether to show text labels beneath icons @default true */
|
|
48
|
+
showLabels?: boolean;
|
|
49
|
+
/** Global screen options forwarded to every tab screen */
|
|
50
|
+
screenOptions?: BottomTabNavigationOptions;
|
|
51
|
+
/** Test ID for the tab navigator wrapper */
|
|
52
|
+
testID?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface FloatingTabBarProps extends BottomTabBarProps {
|
|
55
|
+
tabs: TabItem[];
|
|
56
|
+
activeColor: string;
|
|
57
|
+
inactiveColor: string;
|
|
58
|
+
showLabels: boolean;
|
|
59
|
+
containerStyle?: ViewStyle;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Tabs/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,iBAAiB,EACjB,0BAA0B,EAC3B,MAAM,+BAA+B,CAAC;AAIvC,MAAM,WAAW,OAAO;IACtB,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,OAAO;IACtB,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IAEb,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IAEd,8CAA8C;IAC9C,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAEpC;;;OAGG;IACH,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC;IAE3C,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,0CAA0C;IAC1C,OAAO,CAAC,EAAE,0BAA0B,CAAC;IAErC,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,SAAS;IACxB,4CAA4C;IAC5C,IAAI,EAAE,OAAO,EAAE,CAAC;IAEhB,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,oDAAoD;IACpD,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,iDAAiD;IACjD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,8DAA8D;IAC9D,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,0DAA0D;IAC1D,aAAa,CAAC,EAAE,0BAA0B,CAAC;IAE3C,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC5D,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,SAAS,CAAC;CAC5B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook for tab root screens that use a ScrollView.
|
|
3
|
+
* Returns the recommended paddingBottom so content (e.g. Logout button) can scroll
|
|
4
|
+
* above the floating tab bar instead of being cut off.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useFloatingTabBarScrollPadding(): number;
|
|
7
|
+
//# sourceMappingURL=useFloatingTabBarScrollPadding.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFloatingTabBarScrollPadding.d.ts","sourceRoot":"","sources":["../../src/Tabs/useFloatingTabBarScrollPadding.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,wBAAgB,8BAA8B,IAAI,MAAM,CAGvD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook for tab root screens that use a ScrollView.
|
|
3
|
+
* Returns the recommended paddingBottom so content (e.g. Logout button) can scroll
|
|
4
|
+
* above the floating tab bar instead of being cut off.
|
|
5
|
+
*/
|
|
6
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
7
|
+
import { getFloatingTabBarScrollPadding } from './constants';
|
|
8
|
+
export function useFloatingTabBarScrollPadding() {
|
|
9
|
+
const insets = useSafeAreaInsets();
|
|
10
|
+
return getFloatingTabBarScrollPadding(insets);
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TabItem } from './types';
|
|
2
|
+
export declare function getBottomPadding(insetBottom: number): number;
|
|
3
|
+
export declare function getTabTintColor(isFocused: boolean, activeColor?: string, inactiveColor?: string): string;
|
|
4
|
+
export declare function getTabAccessibilityLabel(tab: TabItem): string;
|
|
5
|
+
export declare function hasBadge(badge?: number | null): badge is number;
|
|
6
|
+
export declare function formatBadgeValue(badge: number): string;
|
|
7
|
+
//# sourceMappingURL=utilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../src/Tabs/utilities.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,eAAe,CAC7B,SAAS,EAAE,OAAO,EAClB,WAAW,CAAC,EAAE,MAAM,EACpB,aAAa,CAAC,EAAE,MAAM,GACrB,MAAM,CAGR;AAED,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAE7D;AAED,wBAAgB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,KAAK,IAAI,MAAM,CAE/D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEtD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DEFAULT_ACTIVE_COLOR, DEFAULT_INACTIVE_COLOR, TAB_BAR_BOTTOM_MIN, } from './constants';
|
|
2
|
+
export function getBottomPadding(insetBottom) {
|
|
3
|
+
return Math.max(insetBottom, TAB_BAR_BOTTOM_MIN);
|
|
4
|
+
}
|
|
5
|
+
export function getTabTintColor(isFocused, activeColor, inactiveColor) {
|
|
6
|
+
if (isFocused)
|
|
7
|
+
return activeColor ?? DEFAULT_ACTIVE_COLOR;
|
|
8
|
+
return inactiveColor ?? DEFAULT_INACTIVE_COLOR;
|
|
9
|
+
}
|
|
10
|
+
export function getTabAccessibilityLabel(tab) {
|
|
11
|
+
return tab.accessibilityLabel ?? `${tab.label} tab`;
|
|
12
|
+
}
|
|
13
|
+
export function hasBadge(badge) {
|
|
14
|
+
return badge != null && badge > 0;
|
|
15
|
+
}
|
|
16
|
+
export function formatBadgeValue(badge) {
|
|
17
|
+
return badge > 99 ? '99+' : String(badge);
|
|
18
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ToggleSectionProps } from './types';
|
|
2
|
+
export declare function ToggleSection({ title, subtitle, value, onValueChange, visibleWhen, children, disabled, style, testID, activeTrackColor, inactiveTrackColor, thumbColor, }: ToggleSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=ToggleSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleSection.d.ts","sourceRoot":"","sources":["../../src/ToggleSection/ToggleSection.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,KAAK,EACL,aAAa,EACb,WAAkB,EAClB,QAAQ,EACR,QAAgB,EAChB,KAAK,EACL,MAAM,EACN,gBAA6C,EAC7C,kBAAiD,EACjD,UAAgC,GACjC,EAAE,kBAAkB,2CA6CpB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
import { SwitchTrack } from '../ListCell/SwitchTrack';
|
|
5
|
+
import { useSwitchAnimation } from '../ListCell/useSwitchAnimation';
|
|
6
|
+
import { DEFAULT_ACTIVE_TRACK_COLOR, DEFAULT_INACTIVE_TRACK_COLOR, DEFAULT_THUMB_COLOR, } from '../ListCell/constants';
|
|
7
|
+
import { Card, ContentBackground, ContentPadding, Header, HeaderLeading, SubtitleText, TitleText, } from './styles';
|
|
8
|
+
export function ToggleSection({ title, subtitle, value, onValueChange, visibleWhen = 'on', children, disabled = false, style, testID, activeTrackColor = DEFAULT_ACTIVE_TRACK_COLOR, inactiveTrackColor = DEFAULT_INACTIVE_TRACK_COLOR, thumbColor = DEFAULT_THUMB_COLOR, }) {
|
|
9
|
+
const contentVisible = visibleWhen === 'on' ? value : !value;
|
|
10
|
+
/* ── Switch animation (reused from ListCell) ──────────────────── */
|
|
11
|
+
const { translateX, trackBg, indicatorOpacity, circleOpacity } = useSwitchAnimation(value, { activeTrackColor, inactiveTrackColor });
|
|
12
|
+
/* ── Toggle handler ───────────────────────────────────────────── */
|
|
13
|
+
const handleToggle = useCallback(() => {
|
|
14
|
+
if (!disabled)
|
|
15
|
+
onValueChange(!value);
|
|
16
|
+
}, [disabled, onValueChange, value]);
|
|
17
|
+
return (_jsxs(Card, { style: style, testID: testID, children: [_jsxs(Header, { onPress: handleToggle, disabled: disabled, "$disabled": disabled, accessibilityRole: "switch", accessibilityState: { checked: value, disabled }, children: [_jsxs(HeaderLeading, { children: [_jsx(TitleText, { numberOfLines: 1, children: title }), subtitle != null && (_jsx(SubtitleText, { numberOfLines: 2, children: subtitle }))] }), _jsx(SwitchTrack, { trackBg: trackBg, translateX: translateX, indicatorOpacity: indicatorOpacity, circleOpacity: circleOpacity, thumbColor: thumbColor, disabled: disabled })] }), contentVisible && (_jsx(View, { children: _jsx(ContentPadding, { children: _jsx(ContentBackground, { children: children }) }) }))] }));
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ToggleSection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ToggleSection } from './ToggleSection';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Animated } from 'react-native';
|
|
3
|
+
export declare const Card: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
|
|
4
|
+
export declare const Header: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<Omit<import("react-native").PressableProps & import("react").RefAttributes<import("react-native").View>, "ref"> & {
|
|
5
|
+
ref?: ((instance: import("react-native").View | null) => void) | import("react").RefObject<import("react-native").View> | null | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
$disabled?: boolean | undefined;
|
|
8
|
+
}>>;
|
|
9
|
+
export declare const HeaderLeading: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
|
|
10
|
+
export declare const TitleText: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
|
|
11
|
+
export declare const SubtitleText: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").TextProps, never>>;
|
|
12
|
+
export declare const ContentClip: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>>, never>>;
|
|
13
|
+
export declare const ContentPadding: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
|
|
14
|
+
export declare const ContentBackground: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").FastOmit<import("react-native").ViewProps, never>>;
|
|
15
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/ToggleSection/styles.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,cAAc,CAAC;AAQnD,eAAO,MAAM,IAAI,+KAIhB,CAAC;AAIF,eAAO,MAAM,MAAM;;;;GAMlB,CAAC;AAEF,eAAO,MAAM,aAAa,+KAIzB,CAAC;AAEF,eAAO,MAAM,SAAS,+KAMrB,CAAC;AAEF,eAAO,MAAM,YAAY,+KAMxB,CAAC;AAIF,eAAO,MAAM,WAAW,oQAEvB,CAAC;AAEF,eAAO,MAAM,cAAc,+KAE1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,+KAI7B,CAAC"}
|