@campxdev/react-native-blueprint 0.1.1 → 0.1.2
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/global.css +417 -0
- package/lib/module/components/ui/index.js +1 -0
- package/lib/module/components/ui/index.js.map +1 -1
- package/lib/module/types/global.d.js +6 -0
- package/lib/module/types/global.d.js.map +1 -0
- package/lib/module/types/rn-primitives.d.js +6 -0
- package/lib/module/types/rn-primitives.d.js.map +1 -0
- package/lib/typescript/src/app/_layout.d.ts +7 -8
- package/lib/typescript/src/components/ui/Accordion.d.ts +103 -11
- package/lib/typescript/src/components/ui/Alert-Dialog.d.ts +167 -10
- package/lib/typescript/src/components/ui/Alert-Dialog.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Alert.d.ts +59 -10
- package/lib/typescript/src/components/ui/Avatar.d.ts +1350 -10
- package/lib/typescript/src/components/ui/Badge.d.ts +203 -10
- package/lib/typescript/src/components/ui/Bottom-Sheet.d.ts +43 -11
- package/lib/typescript/src/components/ui/Button.d.ts +175 -10
- package/lib/typescript/src/components/ui/Card.d.ts +853 -10
- package/lib/typescript/src/components/ui/Checkbox.d.ts +36 -11
- package/lib/typescript/src/components/ui/Collapsible.d.ts +1 -147
- package/lib/typescript/src/components/ui/Collapsible.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Context-Menu.d.ts +149 -10
- package/lib/typescript/src/components/ui/Context-Menu.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Custom-Card.d.ts +863 -10
- package/lib/typescript/src/components/ui/Dialog.d.ts +125 -10
- package/lib/typescript/src/components/ui/Dialog.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts +283 -10
- package/lib/typescript/src/components/ui/Dropdown-Menu.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Greeting-Card.d.ts +152 -10
- package/lib/typescript/src/components/ui/Hover-Card.d.ts +67 -10
- package/lib/typescript/src/components/ui/Hover-Card.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Icon.d.ts +43 -11
- package/lib/typescript/src/components/ui/Input.d.ts +51 -10
- package/lib/typescript/src/components/ui/Label.d.ts +104 -10
- package/lib/typescript/src/components/ui/Menubar.d.ts +174 -10
- package/lib/typescript/src/components/ui/NavBar.d.ts +271 -9
- package/lib/typescript/src/components/ui/Popover.d.ts +70 -10
- package/lib/typescript/src/components/ui/Popover.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Progress.d.ts +27 -11
- package/lib/typescript/src/components/ui/Radio-Group.d.ts +47 -11
- package/lib/typescript/src/components/ui/Select.d.ts +106 -10
- package/lib/typescript/src/components/ui/Separator.d.ts +165 -10
- package/lib/typescript/src/components/ui/Skeleton.d.ts +40 -11
- package/lib/typescript/src/components/ui/Slider.d.ts +52 -8
- package/lib/typescript/src/components/ui/Switch.d.ts +34 -11
- package/lib/typescript/src/components/ui/Table.d.ts +69 -10
- package/lib/typescript/src/components/ui/Tabs.d.ts +51 -11
- package/lib/typescript/src/components/ui/Text.d.ts +115 -10
- package/lib/typescript/src/components/ui/Textarea.d.ts +60 -10
- package/lib/typescript/src/components/ui/Theme-Toggle.d.ts +193 -10
- package/lib/typescript/src/components/ui/Toast.d.ts +54 -10
- package/lib/typescript/src/components/ui/Toggle-Group.d.ts +48 -10
- package/lib/typescript/src/components/ui/Toggle.d.ts +52 -10
- package/lib/typescript/src/components/ui/Tooltip.d.ts +70 -10
- package/lib/typescript/src/components/ui/Tooltip.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/index.d.ts +7 -2
- package/lib/typescript/src/components/ui/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +7 -93
- package/lib/typescript/src/lib/ThemeProvider.d.ts +136 -13
- package/lib/typescript/src/lib/cornerRadius.d.ts +112 -21
- package/lib/typescript/src/lib/fonts.d.ts +21 -30
- package/lib/typescript/src/lib/theme.d.ts +86 -8
- package/lib/typescript/src/lib/utils.d.ts +111 -1
- package/package.json +3 -9
- package/src/components/ui/index.ts +1 -0
- package/src/types/global.d.ts +44 -0
- package/src/types/rn-primitives.d.ts +70 -0
- package/lib/typescript/babel.config.d.ts +0 -13
- package/lib/typescript/babel.config.d.ts.map +0 -1
- package/lib/typescript/metro.config.d.ts +0 -3
- package/lib/typescript/metro.config.d.ts.map +0 -1
- package/lib/typescript/src/components/ui/Floating-Action-Button.d.ts +0 -11
- package/lib/typescript/src/components/ui.d.ts +0 -49
- package/lib/typescript/tailwind.config.d.ts +0 -3
- package/lib/typescript/tailwind.config.d.ts.map +0 -1
|
@@ -1,11 +1,36 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
@@ -34,153 +34,7 @@ declare const Collapsible: import("react").ForwardRefExoticComponent<import("rea
|
|
|
34
34
|
*
|
|
35
35
|
* @component
|
|
36
36
|
*/
|
|
37
|
-
declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<Omit<
|
|
38
|
-
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => unknown) | undefined;
|
|
39
|
-
onAccessibilityTap?: (() => unknown) | undefined;
|
|
40
|
-
onLayout?: ((event: import("react-native").LayoutChangeEvent) => unknown) | undefined;
|
|
41
|
-
onMagicTap?: (() => unknown) | undefined;
|
|
42
|
-
onAccessibilityEscape?: (() => unknown) | undefined;
|
|
43
|
-
}>, "onMoveShouldSetResponder" | "onMoveShouldSetResponderCapture" | "onResponderGrant" | "onResponderMove" | "onResponderReject" | "onResponderRelease" | "onResponderStart" | "onResponderEnd" | "onResponderTerminate" | "onResponderTerminationRequest" | "onStartShouldSetResponder" | "onStartShouldSetResponderCapture" | "pointerEvents" | "hitSlop" | "children" | "id" | "accessibilityLabel" | "accessible" | "testID" | "style" | "nativeID" | "role" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "onClick" | "onMouseEnter" | "onMouseLeave" | "onClickCapture" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlur" | "onBlurCapture" | "onFocus" | "onFocusCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
44
|
-
onMoveShouldSetResponder?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
45
|
-
onMoveShouldSetResponderCapture?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
46
|
-
onResponderGrant?: ((e: import("react-native").GestureResponderEvent) => void | boolean) | undefined;
|
|
47
|
-
onResponderMove?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
48
|
-
onResponderReject?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
49
|
-
onResponderRelease?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
50
|
-
onResponderStart?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
51
|
-
onResponderEnd?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
52
|
-
onResponderTerminate?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
53
|
-
onResponderTerminationRequest?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
54
|
-
onStartShouldSetResponder?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
55
|
-
onStartShouldSetResponderCapture?: ((e: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
56
|
-
}>, "pointerEvents" | "hitSlop" | "children" | "id" | "accessibilityLabel" | "accessible" | "testID" | "style" | "nativeID" | "role" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "onClick" | "onMouseEnter" | "onMouseLeave" | "onClickCapture" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlur" | "onBlurCapture" | "onFocus" | "onFocusCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
57
|
-
onMouseEnter?: ((event: import("react-native").MouseEvent) => void) | undefined;
|
|
58
|
-
onMouseLeave?: ((event: import("react-native").MouseEvent) => void) | undefined;
|
|
59
|
-
}>, "pointerEvents" | "hitSlop" | "children" | "id" | "accessibilityLabel" | "accessible" | "testID" | "style" | "nativeID" | "role" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "onClick" | "onClickCapture" | "onPointerEnterCapture" | "onPointerLeaveCapture" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onBlur" | "onBlurCapture" | "onFocus" | "onFocusCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
60
|
-
onClick?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
61
|
-
onClickCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
62
|
-
onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
63
|
-
onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
64
|
-
onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
65
|
-
onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
66
|
-
onPointerMove?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
67
|
-
onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
68
|
-
onPointerCancel?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
69
|
-
onPointerCancelCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
70
|
-
onPointerDown?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
71
|
-
onPointerDownCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
72
|
-
onPointerUp?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
73
|
-
onPointerUpCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
74
|
-
onPointerOver?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
75
|
-
onPointerOverCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
76
|
-
onPointerOut?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
77
|
-
onPointerOutCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
78
|
-
onGotPointerCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
79
|
-
onGotPointerCaptureCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
80
|
-
onLostPointerCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
81
|
-
onLostPointerCaptureCapture?: ((e: import("react-native").PointerEvent) => void) | undefined;
|
|
82
|
-
}>, "pointerEvents" | "hitSlop" | "children" | "id" | "accessibilityLabel" | "accessible" | "testID" | "style" | "nativeID" | "role" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "onClick" | "onBlur" | "onBlurCapture" | "onFocus" | "onFocusCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
83
|
-
onBlur?: ((event: import("react-native").BlurEvent) => void) | undefined;
|
|
84
|
-
onBlurCapture?: ((event: import("react-native").BlurEvent) => void) | undefined;
|
|
85
|
-
onFocus?: ((event: import("react-native").FocusEvent) => void) | undefined;
|
|
86
|
-
onFocusCapture?: ((event: import("react-native").FocusEvent) => void) | undefined;
|
|
87
|
-
}>, "pointerEvents" | "hitSlop" | "children" | "id" | "accessibilityLabel" | "accessible" | "testID" | "style" | "nativeID" | "role" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "onClick" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
88
|
-
onTouchCancel?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
89
|
-
onTouchCancelCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
90
|
-
onTouchEnd?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
91
|
-
onTouchEndCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
92
|
-
onTouchMove?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
93
|
-
onTouchMoveCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
94
|
-
onTouchStart?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
95
|
-
onTouchStartCapture?: ((e: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
96
|
-
}>, "pointerEvents" | "hitSlop" | "children" | "id" | "accessibilityLabel" | "accessible" | "testID" | "style" | "nativeID" | "role" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "onClick" | "nativeBackgroundAndroid" | "nativeForegroundAndroid" | "renderToHardwareTextureAndroid" | "hasTVPreferredFocus" | "nextFocusDown" | "nextFocusForward" | "nextFocusLeft" | "nextFocusRight" | "nextFocusUp" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
97
|
-
nativeBackgroundAndroid?: import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").AndroidDrawable | undefined;
|
|
98
|
-
nativeForegroundAndroid?: import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").AndroidDrawable | undefined;
|
|
99
|
-
renderToHardwareTextureAndroid?: boolean | undefined;
|
|
100
|
-
hasTVPreferredFocus?: boolean | undefined;
|
|
101
|
-
nextFocusDown?: number | undefined;
|
|
102
|
-
nextFocusForward?: number | undefined;
|
|
103
|
-
nextFocusLeft?: number | undefined;
|
|
104
|
-
nextFocusRight?: number | undefined;
|
|
105
|
-
nextFocusUp?: number | undefined;
|
|
106
|
-
focusable?: boolean | undefined;
|
|
107
|
-
tabIndex?: 0 | -1;
|
|
108
|
-
onClick?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
109
|
-
}>, "pointerEvents" | "hitSlop" | "children" | "id" | "accessibilityLabel" | "accessible" | "testID" | "style" | "nativeID" | "role" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "shouldRasterizeIOS" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
110
|
-
shouldRasterizeIOS?: boolean | undefined;
|
|
111
|
-
}>, "pointerEvents" | "hitSlop" | "children" | "id" | "accessibilityLabel" | "accessible" | "testID" | "style" | "nativeID" | "role" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "importantForAccessibility" | "screenReaderFocusable" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<Omit<Readonly<{
|
|
112
|
-
accessibilityLabelledBy?: (string | undefined) | (Array<string> | undefined);
|
|
113
|
-
"aria-labelledby"?: string | undefined;
|
|
114
|
-
accessibilityLiveRegion?: ("none" | "polite" | "assertive") | undefined;
|
|
115
|
-
"aria-live"?: ("polite" | "assertive" | "off") | undefined;
|
|
116
|
-
importantForAccessibility?: ("auto" | "yes" | "no" | "no-hide-descendants") | undefined;
|
|
117
|
-
screenReaderFocusable?: boolean;
|
|
118
|
-
}>, "accessibilityLabel" | "accessible" | "role" | "accessibilityIgnoresInvertColors" | "accessibilityViewIsModal" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "aria-modal" | "accessibilityElementsHidden" | "accessibilityLanguage" | "accessibilityRespondsToUserInteraction" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden"> & Omit<Readonly<{
|
|
119
|
-
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
120
|
-
accessibilityViewIsModal?: boolean | undefined;
|
|
121
|
-
accessibilityShowsLargeContentViewer?: boolean | undefined;
|
|
122
|
-
accessibilityLargeContentTitle?: string | undefined;
|
|
123
|
-
"aria-modal"?: boolean | undefined;
|
|
124
|
-
accessibilityElementsHidden?: boolean | undefined;
|
|
125
|
-
accessibilityLanguage?: string | undefined;
|
|
126
|
-
accessibilityRespondsToUserInteraction?: boolean | undefined;
|
|
127
|
-
}>, "accessibilityLabel" | "accessible" | "role" | "accessibilityHint" | "aria-label" | "accessibilityRole" | "accessibilityState" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "accessibilityActions" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-hidden"> & {
|
|
128
|
-
accessible?: boolean | undefined;
|
|
129
|
-
accessibilityLabel?: string | undefined;
|
|
130
|
-
accessibilityHint?: string | undefined;
|
|
131
|
-
"aria-label"?: string | undefined;
|
|
132
|
-
accessibilityRole?: import("react-native").AccessibilityRole | undefined;
|
|
133
|
-
role?: import("react-native").Role | undefined;
|
|
134
|
-
accessibilityState?: import("react-native").AccessibilityState | undefined;
|
|
135
|
-
accessibilityValue?: import("react-native").AccessibilityValue | undefined;
|
|
136
|
-
"aria-valuemax"?: import("react-native").AccessibilityValue["max"] | undefined;
|
|
137
|
-
"aria-valuemin"?: import("react-native").AccessibilityValue["min"] | undefined;
|
|
138
|
-
"aria-valuenow"?: import("react-native").AccessibilityValue["now"] | undefined;
|
|
139
|
-
"aria-valuetext"?: import("react-native").AccessibilityValue["text"] | undefined;
|
|
140
|
-
accessibilityActions?: ReadonlyArray<import("react-native/types_generated/Libraries/Components/View/ViewAccessibility").AccessibilityActionInfo> | undefined;
|
|
141
|
-
"aria-busy"?: boolean | undefined;
|
|
142
|
-
"aria-checked"?: (boolean | undefined) | "mixed";
|
|
143
|
-
"aria-disabled"?: boolean | undefined;
|
|
144
|
-
"aria-expanded"?: boolean | undefined;
|
|
145
|
-
"aria-selected"?: boolean | undefined;
|
|
146
|
-
"aria-hidden"?: boolean | undefined;
|
|
147
|
-
}>, "pointerEvents" | "hitSlop" | "children" | "id" | "testID" | "style" | "nativeID" | "collapsable" | "collapsableChildren" | "needsOffscreenAlphaCompositing" | "removeClippedSubviews" | "experimental_accessibilityOrder"> & Omit<Readonly<{
|
|
148
|
-
children?: React.ReactNode;
|
|
149
|
-
style?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheet").ViewStyleProp | undefined;
|
|
150
|
-
collapsable?: boolean | undefined;
|
|
151
|
-
collapsableChildren?: boolean | undefined;
|
|
152
|
-
id?: string;
|
|
153
|
-
testID?: string | undefined;
|
|
154
|
-
nativeID?: string | undefined;
|
|
155
|
-
needsOffscreenAlphaCompositing?: boolean | undefined;
|
|
156
|
-
hitSlop?: import("react-native/types_generated/Libraries/StyleSheet/EdgeInsetsPropType").EdgeInsetsOrSizeProp | undefined;
|
|
157
|
-
pointerEvents?: ("auto" | "box-none" | "box-only" | "none") | undefined;
|
|
158
|
-
removeClippedSubviews?: boolean | undefined;
|
|
159
|
-
experimental_accessibilityOrder?: Array<string> | undefined;
|
|
160
|
-
}>, never>>, "onMouseEnter" | "onMouseLeave">, "hitSlop" | "children" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "onLayout" | "testID" | "style" | "pressRetentionOffset" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "onHoverIn" | "onHoverOut" | "onPressMove" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & Omit<Readonly<{
|
|
161
|
-
cancelable?: boolean | undefined;
|
|
162
|
-
children?: React.ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode);
|
|
163
|
-
delayHoverIn?: number | undefined;
|
|
164
|
-
delayHoverOut?: number | undefined;
|
|
165
|
-
delayLongPress?: number | undefined;
|
|
166
|
-
disabled?: boolean | undefined;
|
|
167
|
-
hitSlop?: import("react-native/types_generated/Libraries/StyleSheet/Rect").RectOrSize | undefined;
|
|
168
|
-
pressRetentionOffset?: import("react-native/types_generated/Libraries/StyleSheet/Rect").RectOrSize | undefined;
|
|
169
|
-
onLayout?: ((event: import("react-native").LayoutChangeEvent) => unknown) | undefined;
|
|
170
|
-
onHoverIn?: ((event: import("react-native").MouseEvent) => unknown) | undefined;
|
|
171
|
-
onHoverOut?: ((event: import("react-native").MouseEvent) => unknown) | undefined;
|
|
172
|
-
onLongPress?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
173
|
-
onPress?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
174
|
-
onPressIn?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
175
|
-
onPressMove?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
176
|
-
onPressOut?: ((event: import("react-native").GestureResponderEvent) => unknown) | undefined;
|
|
177
|
-
style?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheet").ViewStyleProp | ((state: import("react-native").PressableStateCallbackType) => import("react-native/types_generated/Libraries/StyleSheet/StyleSheet").ViewStyleProp);
|
|
178
|
-
testID?: string | undefined;
|
|
179
|
-
android_disableSound?: boolean | undefined;
|
|
180
|
-
android_ripple?: import("react-native").PressableAndroidRippleConfig | undefined;
|
|
181
|
-
testOnly_pressed?: boolean | undefined;
|
|
182
|
-
unstable_pressDelay?: number | undefined;
|
|
183
|
-
}>, never>> & import("react").RefAttributes<(props: Omit<import("react-native/types_generated/Libraries/Components/View/ViewPropTypes").ViewProps, keyof {
|
|
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 {
|
|
184
38
|
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
185
39
|
}> & {
|
|
186
40
|
ref?: React.Ref<React.ComponentRef<typeof import("react-native/types_generated/Libraries/Components/View/ViewNativeComponent").default>>;
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,11 +1,150 @@
|
|
|
1
|
+
import * as ContextMenuPrimitive from '@rn-primitives/context-menu';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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 +1 @@
|
|
|
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
|
|
1
|
+
{"version":3,"file":"Context-Menu.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/Context-Menu.tsx"],"names":[],"mappings":"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"}
|