@campxdev/react-native-blueprint 0.1.3 → 0.1.4
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 +98 -69
- package/lib/module/app/_layout.js +7 -1
- package/lib/module/app/_layout.js.map +1 -1
- package/package.json +10 -6
- package/src/app/_layout.tsx +7 -1
- package/lib/typescript/src/app/_layout.d.ts +0 -8
- package/lib/typescript/src/app/_layout.d.ts.map +0 -1
- package/lib/typescript/src/components/theme-config.d.ts +0 -174
- package/lib/typescript/src/components/theme-config.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Accordion.d.ts +0 -103
- package/lib/typescript/src/components/ui/Accordion.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Alert-Dialog.d.ts +0 -168
- package/lib/typescript/src/components/ui/Alert-Dialog.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Alert.d.ts +0 -60
- package/lib/typescript/src/components/ui/Alert.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/AppBar.d.ts +0 -227
- package/lib/typescript/src/components/ui/AppBar.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Aspect-Ratio.d.ts +0 -30
- package/lib/typescript/src/components/ui/Aspect-Ratio.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Avatar.d.ts +0 -1351
- package/lib/typescript/src/components/ui/Avatar.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Badge.d.ts +0 -204
- package/lib/typescript/src/components/ui/Badge.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts +0 -43
- package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Button.d.ts +0 -176
- package/lib/typescript/src/components/ui/Button.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Card.d.ts +0 -854
- package/lib/typescript/src/components/ui/Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Checkbox.d.ts +0 -36
- package/lib/typescript/src/components/ui/Checkbox.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Collapsible.d.ts +0 -66
- package/lib/typescript/src/components/ui/Collapsible.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Context-Menu.d.ts +0 -150
- package/lib/typescript/src/components/ui/Context-Menu.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Custom-Card.d.ts +0 -864
- package/lib/typescript/src/components/ui/Custom-Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Dialog.d.ts +0 -126
- package/lib/typescript/src/components/ui/Dialog.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts +0 -284
- package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Floating-Action.d.ts +0 -44
- package/lib/typescript/src/components/ui/Floating-Action.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Greeting-Card.d.ts +0 -153
- package/lib/typescript/src/components/ui/Greeting-Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Hover-Card.d.ts +0 -68
- package/lib/typescript/src/components/ui/Hover-Card.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Icon.d.ts +0 -43
- package/lib/typescript/src/components/ui/Icon.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Input.d.ts +0 -52
- package/lib/typescript/src/components/ui/Input.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Label.d.ts +0 -105
- package/lib/typescript/src/components/ui/Label.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Menubar.d.ts +0 -175
- package/lib/typescript/src/components/ui/Menubar.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts +0 -26
- package/lib/typescript/src/components/ui/Native-Only-Animated-View.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/NavBar.d.ts +0 -273
- package/lib/typescript/src/components/ui/NavBar.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Popover.d.ts +0 -71
- package/lib/typescript/src/components/ui/Popover.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Progress.d.ts +0 -27
- package/lib/typescript/src/components/ui/Progress.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Radio-Group.d.ts +0 -47
- package/lib/typescript/src/components/ui/Radio-Group.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Select.d.ts +0 -107
- package/lib/typescript/src/components/ui/Select.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Separator.d.ts +0 -166
- package/lib/typescript/src/components/ui/Separator.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/SizedBox.d.ts +0 -79
- package/lib/typescript/src/components/ui/SizedBox.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Skeleton.d.ts +0 -40
- package/lib/typescript/src/components/ui/Skeleton.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Slider.d.ts +0 -55
- package/lib/typescript/src/components/ui/Slider.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Switch.d.ts +0 -34
- package/lib/typescript/src/components/ui/Switch.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Table.d.ts +0 -70
- package/lib/typescript/src/components/ui/Table.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Tabs.d.ts +0 -51
- package/lib/typescript/src/components/ui/Tabs.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Text.d.ts +0 -116
- package/lib/typescript/src/components/ui/Text.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Textarea.d.ts +0 -61
- package/lib/typescript/src/components/ui/Textarea.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Theme-Toggle.d.ts +0 -194
- package/lib/typescript/src/components/ui/Theme-Toggle.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Toast.d.ts +0 -55
- package/lib/typescript/src/components/ui/Toast.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Toggle-Group.d.ts +0 -49
- package/lib/typescript/src/components/ui/Toggle-Group.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Toggle.d.ts +0 -53
- package/lib/typescript/src/components/ui/Toggle.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Tooltip.d.ts +0 -71
- package/lib/typescript/src/components/ui/Tooltip.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/index.d.ts +0 -44
- package/lib/typescript/src/components/ui/index.d.ts.map +0 -1
- package/lib/typescript/src/index.d.ts +0 -9
- package/lib/typescript/src/index.d.ts.map +0 -1
- package/lib/typescript/src/lib/ThemeProvider.d.ts +0 -137
- package/lib/typescript/src/lib/ThemeProvider.d.ts.map +0 -1
- package/lib/typescript/src/lib/cornerRadius.d.ts +0 -112
- package/lib/typescript/src/lib/cornerRadius.d.ts.map +0 -1
- package/lib/typescript/src/lib/fonts.d.ts +0 -21
- package/lib/typescript/src/lib/fonts.d.ts.map +0 -1
- package/lib/typescript/src/lib/theme.d.ts +0 -87
- package/lib/typescript/src/lib/theme.d.ts.map +0 -1
- package/lib/typescript/src/lib/utils.d.ts +0 -111
- package/lib/typescript/src/lib/utils.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/Card.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAE2B,MAAM;yHAazC,CAAC;AAGH;;;;;;;GAOG;AACH,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAEqB,MAAM;yHAUzC,CAAC;AAGH;;;;;;;;GAQG;AACH,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAEsB,MAAM;yHAazC,CAAC;AAGH;;;;;;;;GAQG;AACH,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAEgB,MAAM;yHAazC,CAAC;AAGH;;;;;;;;GAQG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAEoB,MAAM;yHAMzC,CAAC;AAGH;;;;;;;;GAQG;AACH,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAEqB,MAAM;yHAUzC,CAAC;AAGH,OAAO,EACL,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,GACV,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as CheckboxPrimitive from '@rn-primitives/checkbox';
|
|
2
|
-
/**
|
|
3
|
-
* Interactive checkbox for boolean selections
|
|
4
|
-
*
|
|
5
|
-
* A control that allows users to toggle between checked and unchecked states.
|
|
6
|
-
* Features a checkmark indicator, configurable styling, and accessible touch targets.
|
|
7
|
-
*
|
|
8
|
-
* @component
|
|
9
|
-
* @example
|
|
10
|
-
* ```tsx
|
|
11
|
-
* // Basic checkbox
|
|
12
|
-
* <Checkbox checked={isChecked} onCheckedChange={setIsChecked} />
|
|
13
|
-
*
|
|
14
|
-
* // Checkbox with label
|
|
15
|
-
* <View className="flex-row items-center gap-2">
|
|
16
|
-
* <Checkbox id="terms" checked={accepted} onCheckedChange={setAccepted} />
|
|
17
|
-
* <Label htmlFor="terms">Accept terms and conditions</Label>
|
|
18
|
-
* </View>
|
|
19
|
-
*
|
|
20
|
-
* // Disabled checkbox
|
|
21
|
-
* <Checkbox checked={true} disabled />
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @accessibility
|
|
25
|
-
* - Uses 24px hit slop for easier touch interaction
|
|
26
|
-
* - Supports keyboard navigation on web
|
|
27
|
-
* - Proper ARIA attributes for screen readers
|
|
28
|
-
* - Visual focus indicators on web
|
|
29
|
-
*/
|
|
30
|
-
declare function Checkbox({ className, checkedClassName, indicatorClassName, iconClassName, ...props }: CheckboxPrimitive.RootProps & React.RefAttributes<CheckboxPrimitive.RootRef> & {
|
|
31
|
-
checkedClassName?: string;
|
|
32
|
-
indicatorClassName?: string;
|
|
33
|
-
iconClassName?: string;
|
|
34
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export { Checkbox };
|
|
36
|
-
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/Checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,iBAAiB,MAAM,yBAAyB,CAAC;AAM7D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,SAAS,GAC5B,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,OAAO,CAAC,GAAG;IAC/C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,2CA+BF;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Root collapsible container
|
|
3
|
-
*
|
|
4
|
-
* An interactive component that can show and hide content. Unlike Accordion, it doesn't enforce
|
|
5
|
-
* any specific visual styling, making it more flexible for custom layouts.
|
|
6
|
-
*
|
|
7
|
-
* @component
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* <Collapsible open={isOpen} onOpenChange={setIsOpen}>
|
|
11
|
-
* <CollapsibleTrigger asChild>
|
|
12
|
-
* <Button variant="ghost"><Text>Toggle</Text></Button>
|
|
13
|
-
* </CollapsibleTrigger>
|
|
14
|
-
* <CollapsibleContent>
|
|
15
|
-
* <Text>This content can be shown or hidden</Text>
|
|
16
|
-
* </CollapsibleContent>
|
|
17
|
-
* </Collapsible>
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
declare const Collapsible: import("react").ForwardRefExoticComponent<import("react-native").ViewProps & {
|
|
21
|
-
asChild?: boolean;
|
|
22
|
-
} & {
|
|
23
|
-
open?: boolean;
|
|
24
|
-
defaultOpen?: boolean;
|
|
25
|
-
onOpenChange?: (open: boolean) => void;
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
} & import("react").RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
|
|
28
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
29
|
-
}> & {
|
|
30
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
31
|
-
}) => React.ReactNode>>;
|
|
32
|
-
/**
|
|
33
|
-
* Trigger button that toggles collapsible content visibility
|
|
34
|
-
*
|
|
35
|
-
* @component
|
|
36
|
-
*/
|
|
37
|
-
declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<Omit<import("react-native").PressableProps & import("react").RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
|
|
38
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
39
|
-
}> & {
|
|
40
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
41
|
-
}) => React.ReactNode>, "ref"> & {
|
|
42
|
-
asChild?: boolean;
|
|
43
|
-
} & {
|
|
44
|
-
onKeyDown?: (ev: React.KeyboardEvent) => void;
|
|
45
|
-
onKeyUp?: (ev: React.KeyboardEvent) => void;
|
|
46
|
-
} & import("react").RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
|
|
47
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
48
|
-
}> & {
|
|
49
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
50
|
-
}) => React.ReactNode>>;
|
|
51
|
-
/**
|
|
52
|
-
* Collapsible content container
|
|
53
|
-
*
|
|
54
|
-
* Automatically animates height when expanding or collapsing.
|
|
55
|
-
*
|
|
56
|
-
* @component
|
|
57
|
-
*/
|
|
58
|
-
declare const CollapsibleContent: import("react").ForwardRefExoticComponent<import("@rn-primitives/types").ForceMountable & import("react-native").ViewProps & {
|
|
59
|
-
asChild?: boolean;
|
|
60
|
-
} & import("react").RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
|
|
61
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
62
|
-
}> & {
|
|
63
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
64
|
-
}) => React.ReactNode>>;
|
|
65
|
-
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
66
|
-
//# sourceMappingURL=Collapsible.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/Collapsible.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,WAAW;;;;;;;;OAgBjB,CAPC;;OAGiC,CAAC;uBAZU,CAAC;AAE9C;;;;GAIG;AACH,QAAA,MAAM,kBAAkB;OASxB,CAPC;;OAGiC,CAAC;;;;;;;OAInC,CAPC;;OAGiC,CAAC;uBALoB,CAAC;AAExD;;;;;;GAMG;AACH,QAAA,MAAM,kBAAkB;;;OAAxB,CAPC;;OAGiC,CAAC;uBAIoB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import * as ContextMenuPrimitive from '@rn-primitives/context-menu';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { type StyleProp, Text, type TextProps, type ViewStyle } from 'react-native';
|
|
4
|
-
/**
|
|
5
|
-
* Root context menu component
|
|
6
|
-
*
|
|
7
|
-
* @component
|
|
8
|
-
* @example
|
|
9
|
-
* ```tsx
|
|
10
|
-
* <ContextMenu>
|
|
11
|
-
* <ContextMenuTrigger>
|
|
12
|
-
* <View><Text>Right-click me</Text></View>
|
|
13
|
-
* </ContextMenuTrigger>
|
|
14
|
-
* <ContextMenuContent>
|
|
15
|
-
* <ContextMenuItem><Text>Edit</Text></ContextMenuItem>
|
|
16
|
-
* <ContextMenuItem><Text>Delete</Text></ContextMenuItem>
|
|
17
|
-
* </ContextMenuContent>
|
|
18
|
-
* </ContextMenu>
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
declare const ContextMenu: React.ForwardRefExoticComponent<import("react-native").ViewProps & {
|
|
22
|
-
asChild?: boolean;
|
|
23
|
-
} & {
|
|
24
|
-
onOpenChange?: (open: boolean) => void;
|
|
25
|
-
relativeTo?: "longPress" | "trigger";
|
|
26
|
-
} & React.RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
|
|
27
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
28
|
-
}> & {
|
|
29
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
30
|
-
}) => React.ReactNode>>;
|
|
31
|
-
/**
|
|
32
|
-
* Trigger component that opens context menu on right-click or long-press
|
|
33
|
-
* @component
|
|
34
|
-
*/
|
|
35
|
-
declare const ContextMenuTrigger: React.ForwardRefExoticComponent<Omit<import("react-native").PressableProps & React.RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
|
|
36
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
37
|
-
}> & {
|
|
38
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
39
|
-
}) => React.ReactNode>, "ref"> & {
|
|
40
|
-
asChild?: boolean;
|
|
41
|
-
} & {
|
|
42
|
-
onKeyDown?: (ev: React.KeyboardEvent) => void;
|
|
43
|
-
onKeyUp?: (ev: React.KeyboardEvent) => void;
|
|
44
|
-
} & React.RefAttributes<import("@rn-primitives/context-menu").TriggerRef>>;
|
|
45
|
-
/**
|
|
46
|
-
* Groups related context menu items
|
|
47
|
-
* @component
|
|
48
|
-
*/
|
|
49
|
-
declare const ContextMenuGroup: React.ForwardRefExoticComponent<import("react-native").ViewProps & {
|
|
50
|
-
asChild?: boolean;
|
|
51
|
-
} & React.RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
|
|
52
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
53
|
-
}> & {
|
|
54
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
55
|
-
}) => React.ReactNode>>;
|
|
56
|
-
/**
|
|
57
|
-
* Root component for nested submenu
|
|
58
|
-
* @component
|
|
59
|
-
*/
|
|
60
|
-
declare const ContextMenuSub: React.ForwardRefExoticComponent<import("react-native").ViewProps & {
|
|
61
|
-
asChild?: boolean;
|
|
62
|
-
} & {
|
|
63
|
-
defaultOpen?: boolean;
|
|
64
|
-
open?: boolean;
|
|
65
|
-
onOpenChange?: (value: boolean) => void;
|
|
66
|
-
} & React.RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
|
|
67
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
68
|
-
}> & {
|
|
69
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
70
|
-
}) => React.ReactNode>>;
|
|
71
|
-
/**
|
|
72
|
-
* Groups radio items for single selection
|
|
73
|
-
* @component
|
|
74
|
-
*/
|
|
75
|
-
declare const ContextMenuRadioGroup: React.ForwardRefExoticComponent<import("react-native").ViewProps & {
|
|
76
|
-
asChild?: boolean;
|
|
77
|
-
} & {
|
|
78
|
-
value: string | undefined;
|
|
79
|
-
onValueChange: (value: string) => void;
|
|
80
|
-
} & React.RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
|
|
81
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
82
|
-
}> & {
|
|
83
|
-
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
84
|
-
}) => React.ReactNode>>;
|
|
85
|
-
/**
|
|
86
|
-
* Trigger for opening a nested submenu
|
|
87
|
-
* @component
|
|
88
|
-
*/
|
|
89
|
-
declare function ContextMenuSubTrigger({ className: _className, inset, children, iconClassName, ...props }: ContextMenuPrimitive.SubTriggerProps & React.RefAttributes<ContextMenuPrimitive.SubTriggerRef> & {
|
|
90
|
-
children?: React.ReactNode;
|
|
91
|
-
iconClassName?: string;
|
|
92
|
-
inset?: boolean;
|
|
93
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
94
|
-
/**
|
|
95
|
-
* Content container for nested submenu items
|
|
96
|
-
* @component
|
|
97
|
-
*/
|
|
98
|
-
declare function ContextMenuSubContent({ className, ...props }: ContextMenuPrimitive.SubContentProps & React.RefAttributes<ContextMenuPrimitive.SubContentRef>): import("react/jsx-runtime").JSX.Element;
|
|
99
|
-
/**
|
|
100
|
-
* Main content container for context menu items
|
|
101
|
-
* @component
|
|
102
|
-
*/
|
|
103
|
-
declare function ContextMenuContent({ className, overlayClassName, overlayStyle, portalHost, ...props }: ContextMenuPrimitive.ContentProps & React.RefAttributes<ContextMenuPrimitive.ContentRef> & {
|
|
104
|
-
overlayStyle?: StyleProp<ViewStyle>;
|
|
105
|
-
overlayClassName?: string;
|
|
106
|
-
portalHost?: string;
|
|
107
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
108
|
-
/**
|
|
109
|
-
* Individual context menu item
|
|
110
|
-
* @component
|
|
111
|
-
*/
|
|
112
|
-
declare function ContextMenuItem({ className, inset, variant, ...props }: ContextMenuPrimitive.ItemProps & React.RefAttributes<ContextMenuPrimitive.ItemRef> & {
|
|
113
|
-
className?: string;
|
|
114
|
-
inset?: boolean;
|
|
115
|
-
variant?: 'default' | 'destructive';
|
|
116
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
117
|
-
/**
|
|
118
|
-
* Menu item with checkbox for multi-selection
|
|
119
|
-
* @component
|
|
120
|
-
*/
|
|
121
|
-
declare function ContextMenuCheckboxItem({ className, children, ...props }: ContextMenuPrimitive.CheckboxItemProps & React.RefAttributes<ContextMenuPrimitive.CheckboxItemRef> & {
|
|
122
|
-
children?: React.ReactNode;
|
|
123
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
124
|
-
/**
|
|
125
|
-
* Menu item with radio button for single selection
|
|
126
|
-
* @component
|
|
127
|
-
*/
|
|
128
|
-
declare function ContextMenuRadioItem({ className, children, ...props }: ContextMenuPrimitive.RadioItemProps & React.RefAttributes<ContextMenuPrimitive.RadioItemRef> & {
|
|
129
|
-
children?: React.ReactNode;
|
|
130
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
131
|
-
/**
|
|
132
|
-
* Label for grouping context menu sections
|
|
133
|
-
* @component
|
|
134
|
-
*/
|
|
135
|
-
declare function ContextMenuLabel({ className, inset, ...props }: ContextMenuPrimitive.LabelProps & React.RefAttributes<ContextMenuPrimitive.LabelRef> & {
|
|
136
|
-
className?: string;
|
|
137
|
-
inset?: boolean;
|
|
138
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
139
|
-
/**
|
|
140
|
-
* Visual separator between menu items
|
|
141
|
-
* @component
|
|
142
|
-
*/
|
|
143
|
-
declare function ContextMenuSeparator({ className, ...props }: ContextMenuPrimitive.SeparatorProps & React.RefAttributes<ContextMenuPrimitive.SeparatorRef>): import("react/jsx-runtime").JSX.Element;
|
|
144
|
-
/**
|
|
145
|
-
* Displays keyboard shortcut hint for menu items
|
|
146
|
-
* @component
|
|
147
|
-
*/
|
|
148
|
-
declare function ContextMenuShortcut({ className, ...props }: TextProps & React.RefAttributes<Text>): import("react/jsx-runtime").JSX.Element;
|
|
149
|
-
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, };
|
|
150
|
-
//# sourceMappingURL=Context-Menu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Context-Menu.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/Context-Menu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AAOpE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,SAAS,EAEd,IAAI,EACJ,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAQtB;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,WAAW;;;;;;OAZhB,CAAC;;OAGoB,CAAC;uBASsB,CAAC;AAE9C;;;GAGG;AACH,QAAA,MAAM,kBAAkB;OAlBvB,CAAC;;OAGoB,CAAC;;;;;;0EAegC,CAAC;AAExD;;;GAGG;AACH,QAAA,MAAM,gBAAgB;;;OAxBrB,CAAC;;OAGoB,CAAC;uBAqB4B,CAAC;AAEpD;;;GAGG;AACH,QAAA,MAAM,cAAc;;;;;;;OA9BnB,CAAC;;OAGoB,CAAC;uBA2BwB,CAAC;AAEhD;;;GAGG;AACH,QAAA,MAAM,qBAAqB;;;;;;OApC1B,CAAC;;OAGoB,CAAC;uBAiCsC,CAAC;AAE9D;;;GAGG;AACH,iBAAS,qBAAqB,CAAC,EAC7B,SAAS,EAAE,UAAU,EACrB,KAAK,EACL,QAAQ,EACR,aAAa,EACb,GAAG,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