@vellira-ui/react-native 2.186.14 → 2.186.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts +11 -0
- package/dist/components/Accordion/Accordion.styles.d.ts +70 -0
- package/dist/components/Accordion/Content/AccordionContent.d.ts +7 -0
- package/dist/components/Accordion/Content/index.d.ts +3 -0
- package/dist/components/Accordion/Content/types.d.ts +6 -0
- package/dist/components/Accordion/Item/AccordionItem.d.ts +3 -0
- package/dist/components/Accordion/Item/index.d.ts +3 -0
- package/dist/components/Accordion/Item/types.d.ts +6 -0
- package/dist/components/Accordion/Root/AccordionRoot.d.ts +3 -0
- package/dist/components/Accordion/Root/index.d.ts +3 -0
- package/dist/components/Accordion/Root/types.d.ts +2 -0
- package/dist/components/Accordion/Trigger/AccordionTrigger.d.ts +8 -0
- package/dist/components/Accordion/Trigger/index.d.ts +3 -0
- package/dist/components/Accordion/Trigger/types.d.ts +6 -0
- package/dist/components/Accordion/index.d.ts +10 -0
- package/dist/components/Accordion/types.d.ts +10 -0
- package/dist/components/Dropdown/Content/DropdownContent.d.ts +6 -0
- package/dist/components/Dropdown/Content/DropdownContent.styles.d.ts +102 -0
- package/dist/components/Dropdown/Content/types.d.ts +11 -0
- package/dist/components/Dropdown/Dropdown.d.ts +41 -0
- package/dist/components/Dropdown/Dropdown.styles.d.ts +16 -0
- package/dist/components/Dropdown/Group/DropdownGroup.d.ts +6 -0
- package/dist/components/Dropdown/Group/DropdownGroup.styles.d.ts +13 -0
- package/dist/components/Dropdown/Group/types.d.ts +6 -0
- package/dist/components/Dropdown/Item/DropdownItem.d.ts +6 -0
- package/dist/components/Dropdown/Item/DropdownItem.styles.d.ts +23 -0
- package/dist/components/Dropdown/Item/types.d.ts +26 -0
- package/dist/components/Dropdown/Root/DropdownRoot.d.ts +6 -0
- package/dist/components/Dropdown/Root/index.d.ts +2 -0
- package/dist/components/Dropdown/Search/DropdownSearch.d.ts +6 -0
- package/dist/components/Dropdown/Search/index.d.ts +3 -0
- package/dist/components/Dropdown/Separator/DropdownSeparator.d.ts +5 -0
- package/dist/components/Dropdown/Separator/DropdownSeparator.styles.d.ts +8 -0
- package/dist/components/Dropdown/Trigger/DropdownTrigger.d.ts +6 -0
- package/dist/components/Dropdown/Trigger/DropdownTrigger.styles.d.ts +90 -0
- package/dist/components/Dropdown/Trigger/types.d.ts +27 -0
- package/dist/components/Dropdown/index.d.ts +8 -0
- package/dist/components/Dropdown/internal/DropdownCollection.d.ts +11 -0
- package/dist/components/Dropdown/internal/DropdownContext.d.ts +4 -0
- package/dist/components/Dropdown/internal/DropdownUtils.d.ts +18 -0
- package/dist/components/Dropdown/internal/types.d.ts +64 -0
- package/dist/components/Dropdown/types.d.ts +98 -0
- package/dist/components/Modal/Body/ModalBody.d.ts +6 -0
- package/dist/components/Modal/Body/ModalBody.styles.d.ts +19 -0
- package/dist/components/Modal/Body/index.d.ts +3 -0
- package/dist/components/Modal/Body/types.d.ts +10 -0
- package/dist/components/Modal/Close/ModalClose.d.ts +6 -0
- package/dist/components/Modal/Close/index.d.ts +3 -0
- package/dist/components/Modal/Close/types.d.ts +16 -0
- package/dist/components/Modal/Content/ModalContent.d.ts +6 -0
- package/dist/components/Modal/Content/ModalContent.styles.d.ts +40 -0
- package/dist/components/Modal/Content/index.d.ts +3 -0
- package/dist/components/Modal/Content/types.d.ts +10 -0
- package/dist/components/Modal/Footer/ModalFooter.d.ts +6 -0
- package/dist/components/Modal/Footer/ModalFooter.styles.d.ts +10 -0
- package/dist/components/Modal/Footer/index.d.ts +3 -0
- package/dist/components/Modal/Footer/types.d.ts +10 -0
- package/dist/components/Modal/Header/ModalDescription.d.ts +6 -0
- package/dist/components/Modal/Header/ModalHeader.d.ts +6 -0
- package/dist/components/Modal/Header/ModalHeader.styles.d.ts +44 -0
- package/dist/components/Modal/Header/ModalTitle.d.ts +6 -0
- package/dist/components/Modal/Header/index.d.ts +5 -0
- package/dist/components/Modal/Header/types.d.ts +24 -0
- package/dist/components/Modal/Modal.d.ts +39 -0
- package/dist/components/Modal/Modal.styles.d.ts +18 -0
- package/dist/components/Modal/Overlay/ModalOverlay.d.ts +3 -0
- package/dist/components/Modal/Overlay/index.d.ts +3 -0
- package/dist/components/Modal/Root/ModalRoot.d.ts +6 -0
- package/dist/components/Modal/Root/index.d.ts +3 -0
- package/dist/components/Modal/Root/useModalRootAnimation.d.ts +14 -0
- package/dist/components/Modal/Trigger/ModalTrigger.d.ts +6 -0
- package/dist/components/Modal/Trigger/index.d.ts +3 -0
- package/dist/components/Modal/Trigger/types.d.ts +30 -0
- package/dist/components/Modal/index.d.ts +18 -0
- package/dist/components/Modal/internal/ModalContext.d.ts +4 -0
- package/dist/components/Modal/internal/types.d.ts +16 -0
- package/dist/components/Modal/types.d.ts +15 -0
- package/dist/components/Popover/Anchor/PopoverAnchor.d.ts +6 -0
- package/dist/components/Popover/Anchor/index.d.ts +3 -0
- package/dist/components/Popover/Anchor/types.d.ts +13 -0
- package/dist/components/Popover/Arrow/PopoverArrow.d.ts +6 -0
- package/dist/components/Popover/Arrow/PopoverArrow.styles.d.ts +148 -0
- package/dist/components/Popover/Arrow/index.d.ts +3 -0
- package/dist/components/Popover/Arrow/types.d.ts +6 -0
- package/dist/components/Popover/Close/PopoverClose.d.ts +6 -0
- package/dist/components/Popover/Close/index.d.ts +3 -0
- package/dist/components/Popover/Close/types.d.ts +13 -0
- package/dist/components/Popover/Content/PopoverContent.d.ts +3 -0
- package/dist/components/Popover/Content/PopoverContent.styles.d.ts +43 -0
- package/dist/components/Popover/Content/index.d.ts +3 -0
- package/dist/components/Popover/Content/types.d.ts +7 -0
- package/dist/components/Popover/Description/PopoverDescription.d.ts +6 -0
- package/dist/components/Popover/Description/PopoverDescription.styles.d.ts +10 -0
- package/dist/components/Popover/Description/index.d.ts +3 -0
- package/dist/components/Popover/Description/types.d.ts +3 -0
- package/dist/components/Popover/Popover.d.ts +24 -0
- package/dist/components/Popover/Root/PopoverRoot.d.ts +6 -0
- package/dist/components/Popover/Root/index.d.ts +2 -0
- package/dist/components/Popover/Title/PopoverTitle.d.ts +6 -0
- package/dist/components/Popover/Title/PopoverTitle.styles.d.ts +11 -0
- package/dist/components/Popover/Title/index.d.ts +3 -0
- package/dist/components/Popover/Title/types.d.ts +3 -0
- package/dist/components/Popover/Trigger/PopoverTrigger.d.ts +3 -0
- package/dist/components/Popover/Trigger/index.d.ts +3 -0
- package/dist/components/Popover/Trigger/types.d.ts +15 -0
- package/dist/components/Popover/index.d.ts +10 -0
- package/dist/components/Popover/internal/PopoverContext.d.ts +9 -0
- package/dist/components/Popover/internal/index.d.ts +3 -0
- package/dist/components/Popover/internal/types.d.ts +21 -0
- package/dist/components/Popover/types.d.ts +9 -0
- package/dist/components/RadioGroup/Item/RadioGroupItem.d.ts +3 -0
- package/dist/components/RadioGroup/Item/index.d.ts +3 -0
- package/dist/components/RadioGroup/Item/types.d.ts +3 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +4 -0
- package/dist/components/RadioGroup/RadioGroup.styles.d.ts +14 -0
- package/dist/components/RadioGroup/Root/RadioGroupRoot.d.ts +4 -0
- package/dist/components/RadioGroup/Root/index.d.ts +3 -0
- package/dist/components/RadioGroup/Root/types.d.ts +26 -0
- package/dist/components/RadioGroup/index.d.ts +5 -0
- package/dist/components/RadioGroup/internal/RadioGroupContext.d.ts +4 -0
- package/dist/components/RadioGroup/internal/types.d.ts +12 -0
- package/dist/components/RadioGroup/types.d.ts +5 -0
- package/dist/components/Select/Content/SelectContent.d.ts +10 -0
- package/dist/components/Select/Content/SelectContent.styles.d.ts +74 -0
- package/dist/components/Select/Content/index.d.ts +3 -0
- package/dist/components/Select/Content/types.d.ts +9 -0
- package/dist/components/Select/Empty/SelectEmpty.d.ts +10 -0
- package/dist/components/Select/Empty/index.d.ts +2 -0
- package/dist/components/Select/Group/SelectGroup.d.ts +24 -0
- package/dist/components/Select/Group/SelectGroup.styles.d.ts +42 -0
- package/dist/components/Select/Group/index.d.ts +2 -0
- package/dist/components/Select/Group/types.d.ts +2 -0
- package/dist/components/Select/Icon/SelectIcon.d.ts +6 -0
- package/dist/components/Select/Icon/index.d.ts +2 -0
- package/dist/components/Select/Item/SelectItem.d.ts +11 -0
- package/dist/components/Select/Item/SelectItem.styles.d.ts +58 -0
- package/dist/components/Select/Item/index.d.ts +3 -0
- package/dist/components/Select/Item/types.d.ts +13 -0
- package/dist/components/Select/ItemBadge/SelectItemBadge.d.ts +6 -0
- package/dist/components/Select/ItemBadge/index.d.ts +2 -0
- package/dist/components/Select/ItemDescription/SelectItemDescription.d.ts +6 -0
- package/dist/components/Select/ItemDescription/index.d.ts +2 -0
- package/dist/components/Select/ItemIcon/SelectItemIcon.d.ts +6 -0
- package/dist/components/Select/ItemIcon/index.d.ts +2 -0
- package/dist/components/Select/Label/SelectLabel.d.ts +6 -0
- package/dist/components/Select/Label/index.d.ts +2 -0
- package/dist/components/Select/Loading/SelectLoading.d.ts +10 -0
- package/dist/components/Select/Loading/index.d.ts +2 -0
- package/dist/components/Select/Presentation/SelectBackdrop.d.ts +6 -0
- package/dist/components/Select/Presentation/SelectHandle.d.ts +5 -0
- package/dist/components/Select/Presentation/SelectModal.d.ts +6 -0
- package/dist/components/Select/Presentation/SelectPopover.d.ts +6 -0
- package/dist/components/Select/Presentation/SelectPresentation.styles.d.ts +103 -0
- package/dist/components/Select/Presentation/SelectSheet.d.ts +6 -0
- package/dist/components/Select/Presentation/index.d.ts +7 -0
- package/dist/components/Select/Presentation/types.d.ts +24 -0
- package/dist/components/Select/Root/SelectRoot.d.ts +6 -0
- package/dist/components/Select/Root/index.d.ts +3 -0
- package/dist/components/Select/Root/types.d.ts +2 -0
- package/dist/components/Select/Root/useSelectRootActions.d.ts +21 -0
- package/dist/components/Select/Root/useSelectRootContextValue.d.ts +45 -0
- package/dist/components/Select/Root/useSelectRootDisplayValue.d.ts +13 -0
- package/dist/components/Select/Root/useSelectRootSelection.d.ts +29 -0
- package/dist/components/Select/Root/useSelectRootState.d.ts +40 -0
- package/dist/components/Select/Search/SelectSearch.d.ts +10 -0
- package/dist/components/Select/Search/SelectSearch.styles.d.ts +42 -0
- package/dist/components/Select/Search/index.d.ts +2 -0
- package/dist/components/Select/Select.d.ts +60 -0
- package/dist/components/Select/Separator/SelectSeparator.d.ts +10 -0
- package/dist/components/Select/Separator/index.d.ts +2 -0
- package/dist/components/Select/Trigger/SelectTrigger.d.ts +11 -0
- package/dist/components/Select/Trigger/SelectTrigger.styles.d.ts +105 -0
- package/dist/components/Select/Trigger/index.d.ts +3 -0
- package/dist/components/Select/Trigger/types.d.ts +32 -0
- package/dist/components/Select/Value/SelectValue.d.ts +6 -0
- package/dist/components/Select/Value/index.d.ts +2 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Select/internal/SelectCollection.d.ts +11 -0
- package/dist/components/Select/internal/SelectContext.d.ts +4 -0
- package/dist/components/Select/internal/resolveSelectAccessibility.d.ts +7 -0
- package/dist/components/Select/internal/types.d.ts +87 -0
- package/dist/components/Select/types.d.ts +215 -0
- package/dist/components/Tabs/Content/TabsContent.d.ts +6 -0
- package/dist/components/Tabs/Content/TabsContent.styles.d.ts +20 -0
- package/dist/components/Tabs/Content/types.d.ts +10 -0
- package/dist/components/Tabs/List/TabsIndicator.d.ts +6 -0
- package/dist/components/Tabs/List/TabsList.d.ts +6 -0
- package/dist/components/Tabs/List/TabsList.styles.d.ts +55 -0
- package/dist/components/Tabs/List/types.d.ts +16 -0
- package/dist/components/Tabs/Root/TabsRoot.d.ts +7 -0
- package/dist/components/Tabs/Root/index.d.ts +3 -0
- package/dist/components/Tabs/Root/types.d.ts +2 -0
- package/dist/components/Tabs/Tabs.d.ts +30 -0
- package/dist/components/Tabs/Tabs.styles.d.ts +15 -0
- package/dist/components/Tabs/Trigger/TabsBadge.d.ts +6 -0
- package/dist/components/Tabs/Trigger/TabsIcon.d.ts +6 -0
- package/dist/components/Tabs/Trigger/TabsTrigger.d.ts +6 -0
- package/dist/components/Tabs/Trigger/TabsTrigger.styles.d.ts +204 -0
- package/dist/components/Tabs/Trigger/types.d.ts +36 -0
- package/dist/components/Tabs/index.d.ts +6 -0
- package/dist/components/Tabs/internal/TabsContext.d.ts +4 -0
- package/dist/components/Tabs/types.d.ts +36 -0
- package/dist/components/Tooltip/Arrow/TooltipArrow.d.ts +2 -0
- package/dist/components/Tooltip/Arrow/index.d.ts +2 -0
- package/dist/components/Tooltip/Content/TooltipContent.d.ts +6 -0
- package/dist/components/Tooltip/Content/index.d.ts +3 -0
- package/dist/components/Tooltip/Content/types.d.ts +15 -0
- package/dist/components/Tooltip/Root/TooltipRoot.d.ts +6 -0
- package/dist/components/Tooltip/Root/index.d.ts +3 -0
- package/dist/components/Tooltip/Root/types.d.ts +22 -0
- package/dist/components/Tooltip/Tooltip.d.ts +14 -0
- package/dist/components/Tooltip/Tooltip.styles.d.ts +56 -0
- package/dist/components/Tooltip/Trigger/TooltipTrigger.d.ts +6 -0
- package/dist/components/Tooltip/Trigger/index.d.ts +3 -0
- package/dist/components/Tooltip/Trigger/types.d.ts +11 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tooltip/internal/TooltipContext.d.ts +4 -0
- package/dist/components/Tooltip/internal/resolveTooltipDelay.d.ts +3 -0
- package/dist/components/Tooltip/internal/types.d.ts +28 -0
- package/dist/components/Tooltip/types.d.ts +6 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/hooks/behavior/dropdown/useDropdownAccessibility.d.ts +10 -0
- package/dist/hooks/behavior/dropdown/useDropdownEntries.d.ts +20 -0
- package/dist/hooks/behavior/dropdown/useDropdownSearch.d.ts +18 -0
- package/dist/hooks/behavior/index.d.ts +2 -0
- package/dist/hooks/behavior/overlay/index.d.ts +9 -0
- package/dist/hooks/behavior/overlay/useOverlayDismiss.d.ts +21 -0
- package/dist/hooks/behavior/overlay/useOverlayFocusRestore.d.ts +14 -0
- package/dist/hooks/behavior/overlay/useOverlayPresentation.d.ts +3 -0
- package/dist/hooks/behavior/overlay/useOverlayRegistration.d.ts +10 -0
- package/dist/hooks/behavior/select/useSelectCollection.d.ts +12 -0
- package/dist/hooks/behavior/select/useSelectSearch.d.ts +19 -0
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/useControllableState.d.ts +8 -0
- package/dist/hooks/useDropdown.d.ts +29 -0
- package/dist/hooks/useKeyboardNavigation.d.ts +25 -0
- package/dist/hooks/useModal.d.ts +19 -0
- package/dist/hooks/useSelect.d.ts +44 -0
- package/dist/hooks/useTabs.d.ts +10 -0
- package/dist/managers/FloatingManager/computeFloatingPosition.d.ts +16 -0
- package/dist/managers/FloatingManager/index.d.ts +2 -0
- package/dist/managers/FloatingManager/types.d.ts +31 -0
- package/dist/managers/FloatingManager/useNativeFloatingPosition.d.ts +13 -0
- package/dist/managers/OverlayManager/NativeOverlayManager.d.ts +4 -0
- package/dist/managers/OverlayManager/OverlayManagerProvider.d.ts +4 -0
- package/dist/managers/OverlayManager/index.d.ts +4 -0
- package/dist/managers/OverlayManager/types.d.ts +31 -0
- package/dist/managers/index.d.ts +3 -0
- package/dist/patterns/FormField/FormField.d.ts +17 -0
- package/dist/patterns/FormField/FormField.styles.d.ts +84 -0
- package/dist/patterns/FormField/FormFieldContext.d.ts +21 -0
- package/dist/patterns/FormField/index.d.ts +4 -0
- package/dist/patterns/FormField/types.d.ts +68 -0
- package/dist/patterns/index.d.ts +2 -0
- package/dist/primitives/Button/Button.d.ts +3 -0
- package/dist/primitives/Button/Button.styles.d.ts +75 -0
- package/dist/primitives/Button/index.d.ts +3 -0
- package/dist/primitives/Button/types.d.ts +34 -0
- package/dist/primitives/Checkbox/Checkbox.d.ts +4 -0
- package/dist/primitives/Checkbox/Checkbox.styles.d.ts +143 -0
- package/dist/primitives/Checkbox/index.d.ts +3 -0
- package/dist/primitives/Checkbox/types.d.ts +20 -0
- package/dist/primitives/Input/Input.d.ts +4 -0
- package/dist/primitives/Input/Input.styles.d.ts +162 -0
- package/dist/primitives/Input/index.d.ts +3 -0
- package/dist/primitives/Input/types.d.ts +45 -0
- package/dist/primitives/Portal/Portal.d.ts +13 -0
- package/dist/primitives/Portal/index.d.ts +3 -0
- package/dist/primitives/Portal/types.d.ts +15 -0
- package/dist/primitives/Radio/Radio.d.ts +4 -0
- package/dist/primitives/Radio/Radio.styles.d.ts +66 -0
- package/dist/primitives/Radio/index.d.ts +3 -0
- package/dist/primitives/Radio/types.d.ts +24 -0
- package/dist/primitives/Switch/Switch.d.ts +3 -0
- package/dist/primitives/Switch/Switch.styles.d.ts +55 -0
- package/dist/primitives/Switch/index.d.ts +3 -0
- package/dist/primitives/Switch/types.d.ts +3 -0
- package/dist/primitives/Textarea/Textarea.d.ts +4 -0
- package/dist/primitives/Textarea/Textarea.styles.d.ts +80 -0
- package/dist/primitives/Textarea/index.d.ts +3 -0
- package/dist/primitives/Textarea/types.d.ts +9 -0
- package/dist/primitives/index.d.ts +8 -0
- package/dist/theme/ThemeContext.d.ts +3 -0
- package/dist/theme/ThemeProvider.d.ts +6 -0
- package/dist/theme/componentTokenOutput.d.ts +36 -0
- package/dist/theme/fontWeight.d.ts +3 -0
- package/dist/theme/index.d.ts +9 -0
- package/dist/theme/semanticColor.d.ts +9 -0
- package/dist/theme/themes.d.ts +5 -0
- package/dist/theme/types.d.ts +21 -0
- package/dist/theme/useTheme.d.ts +2 -0
- package/dist/theme/useThemeStyles.d.ts +3 -0
- package/dist/utils/devWarning.d.ts +2 -0
- package/package.json +6 -6
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DropdownSelectEvent } from '../types';
|
|
2
|
+
import type { ParsedNativeDropdownChildren } from './types';
|
|
3
|
+
export declare function createDropdownSelectEvent(): DropdownSelectEvent;
|
|
4
|
+
export declare function filterDropdownEntries(parsed: ParsedNativeDropdownChildren, searchValue: string): {
|
|
5
|
+
items: {
|
|
6
|
+
type: "item";
|
|
7
|
+
id: string;
|
|
8
|
+
props: import("..").DropdownItemProps;
|
|
9
|
+
label: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
entries: import("./types").NativeDropdownEntry[];
|
|
13
|
+
trigger?: import("react").ReactNode;
|
|
14
|
+
triggerProps?: import("..").DropdownTriggerProps;
|
|
15
|
+
contentProps?: import("..").DropdownContentProps;
|
|
16
|
+
searchProps?: import("..").DropdownSearchProps;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=DropdownUtils.d.ts.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { DropdownColor, DropdownSize } from '@vellira-ui/types';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { LayoutChangeEvent, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
4
|
+
import type { OverlayOutsidePressProps, OverlayOutsidePressPropsOptions } from '../../../hooks';
|
|
5
|
+
import type { DropdownContentProps, DropdownEmptyProps, DropdownItemProps, DropdownLabelProps, DropdownLoadingProps, DropdownPresentation, DropdownSearchProps, DropdownSeparatorProps, DropdownTriggerProps } from '../types';
|
|
6
|
+
export interface DropdownContextValue {
|
|
7
|
+
open: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
color: DropdownColor;
|
|
11
|
+
size: DropdownSize;
|
|
12
|
+
presentation: Exclude<DropdownPresentation, 'auto'>;
|
|
13
|
+
positionReady: boolean;
|
|
14
|
+
position: {
|
|
15
|
+
top: number;
|
|
16
|
+
left: number;
|
|
17
|
+
};
|
|
18
|
+
zIndex: number;
|
|
19
|
+
searchable: boolean;
|
|
20
|
+
searchValue: string;
|
|
21
|
+
searchPlaceholder: string;
|
|
22
|
+
searchAccessibilityLabel?: string;
|
|
23
|
+
itemStyle?: StyleProp<ViewStyle>;
|
|
24
|
+
textStyle?: StyleProp<TextStyle>;
|
|
25
|
+
requestClose: () => void;
|
|
26
|
+
getOutsidePressProps: (options?: OverlayOutsidePressPropsOptions) => OverlayOutsidePressProps;
|
|
27
|
+
toggle: () => void;
|
|
28
|
+
onSearchChange: (value: string) => void;
|
|
29
|
+
onFloatingLayout: (event: LayoutChangeEvent) => void;
|
|
30
|
+
}
|
|
31
|
+
export type NativeDropdownEntry = {
|
|
32
|
+
type: 'label';
|
|
33
|
+
id: string;
|
|
34
|
+
props: DropdownLabelProps;
|
|
35
|
+
} | {
|
|
36
|
+
type: 'separator';
|
|
37
|
+
id: string;
|
|
38
|
+
props: DropdownSeparatorProps;
|
|
39
|
+
} | {
|
|
40
|
+
type: 'empty';
|
|
41
|
+
id: string;
|
|
42
|
+
props: DropdownEmptyProps;
|
|
43
|
+
} | {
|
|
44
|
+
type: 'loading';
|
|
45
|
+
id: string;
|
|
46
|
+
props: DropdownLoadingProps;
|
|
47
|
+
} | {
|
|
48
|
+
type: 'item';
|
|
49
|
+
id: string;
|
|
50
|
+
props: DropdownItemProps;
|
|
51
|
+
label: string;
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
};
|
|
54
|
+
export type ParsedNativeDropdownChildren = {
|
|
55
|
+
trigger?: ReactNode;
|
|
56
|
+
triggerProps?: DropdownTriggerProps;
|
|
57
|
+
contentProps?: DropdownContentProps;
|
|
58
|
+
searchProps?: DropdownSearchProps;
|
|
59
|
+
entries: NativeDropdownEntry[];
|
|
60
|
+
items: Array<Extract<NativeDropdownEntry, {
|
|
61
|
+
type: 'item';
|
|
62
|
+
}>>;
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { BaseDropdownContentProps, BaseDropdownItemProps, BaseDropdownProps, BaseDropdownSearchProps, BaseDropdownTriggerProps, FloatingPlacement, TextWrap } from '@vellira-ui/types';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
4
|
+
export type DropdownPresentation = 'auto' | 'sheet' | 'modal' | 'popover';
|
|
5
|
+
export type DropdownSelectEvent = {
|
|
6
|
+
/** Prevents the dropdown from performing its default select behavior. */
|
|
7
|
+
preventDefault: () => void;
|
|
8
|
+
/** Whether default select behavior has been prevented. */
|
|
9
|
+
defaultPrevented: boolean;
|
|
10
|
+
};
|
|
11
|
+
export interface DropdownProps extends BaseDropdownProps {
|
|
12
|
+
/** Trigger, content, and optional compound dropdown children. */
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
/** Visible trigger label when no custom trigger is provided. */
|
|
15
|
+
label?: ReactNode;
|
|
16
|
+
/** Custom trigger content. */
|
|
17
|
+
trigger?: ReactNode;
|
|
18
|
+
/** Icon rendered before the trigger label. */
|
|
19
|
+
icon?: ReactNode;
|
|
20
|
+
/** Icon rendered to indicate expanded state. */
|
|
21
|
+
arrowIcon?: ReactNode;
|
|
22
|
+
/** Shows or hides the trigger arrow icon. */
|
|
23
|
+
showArrow?: boolean;
|
|
24
|
+
/** Presentation mode used for dropdown content. */
|
|
25
|
+
presentation?: DropdownPresentation;
|
|
26
|
+
/** Floating placement used by popover presentation. */
|
|
27
|
+
placement?: FloatingPlacement;
|
|
28
|
+
/** Distance between the trigger and floating content. */
|
|
29
|
+
offset?: number;
|
|
30
|
+
/** Content shown while dropdown items are loading. */
|
|
31
|
+
loadingText?: ReactNode;
|
|
32
|
+
/** Content shown when no items match the current query. */
|
|
33
|
+
empty?: ReactNode;
|
|
34
|
+
/** Style applied to the root container. */
|
|
35
|
+
style?: StyleProp<ViewStyle>;
|
|
36
|
+
/** Style applied to the trigger container. */
|
|
37
|
+
triggerStyle?: StyleProp<ViewStyle>;
|
|
38
|
+
/** Style applied to dropdown content. */
|
|
39
|
+
contentStyle?: StyleProp<ViewStyle>;
|
|
40
|
+
/** Style applied to each item row. */
|
|
41
|
+
itemStyle?: StyleProp<ViewStyle>;
|
|
42
|
+
/** Style applied to trigger and item text. */
|
|
43
|
+
textStyle?: StyleProp<TextStyle>;
|
|
44
|
+
/** Accessible name announced for the dropdown trigger. */
|
|
45
|
+
accessibilityLabel?: string;
|
|
46
|
+
/** Additional accessibility hint for the dropdown trigger. */
|
|
47
|
+
accessibilityHint?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface DropdownTriggerProps extends BaseDropdownTriggerProps {
|
|
50
|
+
/** Composes trigger behavior onto a single child element. */
|
|
51
|
+
asChild?: boolean;
|
|
52
|
+
/** Trigger content. */
|
|
53
|
+
children?: ReactNode;
|
|
54
|
+
}
|
|
55
|
+
export interface DropdownContentProps extends BaseDropdownContentProps {
|
|
56
|
+
/** Dropdown item and slot content. */
|
|
57
|
+
children?: ReactNode;
|
|
58
|
+
/** Style applied to dropdown content. */
|
|
59
|
+
style?: StyleProp<ViewStyle>;
|
|
60
|
+
/** Presentation mode used for this content. */
|
|
61
|
+
presentation?: DropdownPresentation;
|
|
62
|
+
}
|
|
63
|
+
export interface DropdownSearchProps extends BaseDropdownSearchProps {
|
|
64
|
+
/** Accessible name for the search input. */
|
|
65
|
+
accessibilityLabel?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface DropdownItemProps extends BaseDropdownItemProps {
|
|
68
|
+
/** Item label or custom item content. */
|
|
69
|
+
children: ReactNode;
|
|
70
|
+
/** Composes item behavior onto a single child element. */
|
|
71
|
+
asChild?: boolean;
|
|
72
|
+
/** Value associated with this item for selection and filtering. */
|
|
73
|
+
value?: string;
|
|
74
|
+
/** Icon rendered before the item label. */
|
|
75
|
+
icon?: ReactNode;
|
|
76
|
+
/** Controls wrapping behavior for item text. */
|
|
77
|
+
textWrap?: TextWrap;
|
|
78
|
+
/** Called when this item is selected. */
|
|
79
|
+
onSelect?: (event: DropdownSelectEvent) => void;
|
|
80
|
+
}
|
|
81
|
+
export type DropdownSeparatorProps = object;
|
|
82
|
+
export interface DropdownGroupProps {
|
|
83
|
+
/** Grouped dropdown items. */
|
|
84
|
+
children?: ReactNode;
|
|
85
|
+
}
|
|
86
|
+
export interface DropdownLabelProps {
|
|
87
|
+
/** Label content for a dropdown group. */
|
|
88
|
+
children?: ReactNode;
|
|
89
|
+
}
|
|
90
|
+
export interface DropdownEmptyProps {
|
|
91
|
+
/** Empty state content. */
|
|
92
|
+
children?: ReactNode;
|
|
93
|
+
}
|
|
94
|
+
export interface DropdownLoadingProps {
|
|
95
|
+
/** Loading state content. */
|
|
96
|
+
children?: ReactNode;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { NativeTheme } from '../../../theme';
|
|
2
|
+
export declare const createStyles: (theme: NativeTheme) => {
|
|
3
|
+
body: {
|
|
4
|
+
paddingBottom: number;
|
|
5
|
+
};
|
|
6
|
+
text: {
|
|
7
|
+
color: string;
|
|
8
|
+
fontFamily: string;
|
|
9
|
+
fontSize: number;
|
|
10
|
+
lineHeight: number;
|
|
11
|
+
};
|
|
12
|
+
description: {
|
|
13
|
+
color: string;
|
|
14
|
+
fontFamily: string;
|
|
15
|
+
fontSize: number;
|
|
16
|
+
lineHeight: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=ModalBody.styles.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseModalBodyProps } from '@vellira-ui/types';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
export interface ModalBodyProps extends BaseModalBodyProps {
|
|
5
|
+
/** Main modal body content. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Style applied to the body container. */
|
|
8
|
+
style?: StyleProp<ViewStyle>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { PressableProps, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export type ModalCloseProps = {
|
|
4
|
+
/** Composes close behavior onto a single child element. */
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
/** Custom close button element. */
|
|
7
|
+
children?: ReactElement<{
|
|
8
|
+
onPress?: PressableProps['onPress'];
|
|
9
|
+
accessibilityLabel?: string;
|
|
10
|
+
}>;
|
|
11
|
+
/** Accessible name for the close button. */
|
|
12
|
+
accessibilityLabel?: string;
|
|
13
|
+
/** Style applied to the close button. */
|
|
14
|
+
style?: StyleProp<ViewStyle>;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type NativeTheme } from '../../../theme';
|
|
2
|
+
export declare const createStyles: (theme: NativeTheme) => {
|
|
3
|
+
content: {
|
|
4
|
+
boxShadow: string;
|
|
5
|
+
shadowColor?: undefined;
|
|
6
|
+
shadowOffset?: undefined;
|
|
7
|
+
shadowOpacity?: undefined;
|
|
8
|
+
shadowRadius?: undefined;
|
|
9
|
+
elevation?: undefined;
|
|
10
|
+
width: "100%";
|
|
11
|
+
maxWidth: number;
|
|
12
|
+
maxHeight: number | "auto" | import("react-native").Animated.AnimatedNode | `${number}%` | null;
|
|
13
|
+
padding: number;
|
|
14
|
+
gap: number;
|
|
15
|
+
backgroundColor: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
borderRadius: number;
|
|
18
|
+
borderWidth: number;
|
|
19
|
+
} | {
|
|
20
|
+
shadowColor: string;
|
|
21
|
+
shadowOffset: {
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
};
|
|
25
|
+
shadowOpacity: number;
|
|
26
|
+
shadowRadius: number;
|
|
27
|
+
elevation: number;
|
|
28
|
+
boxShadow?: undefined;
|
|
29
|
+
width: "100%";
|
|
30
|
+
maxWidth: number;
|
|
31
|
+
maxHeight: number | "auto" | import("react-native").Animated.AnimatedNode | `${number}%` | null;
|
|
32
|
+
padding: number;
|
|
33
|
+
gap: number;
|
|
34
|
+
backgroundColor: string;
|
|
35
|
+
borderColor: string;
|
|
36
|
+
borderRadius: number;
|
|
37
|
+
borderWidth: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=ModalContent.styles.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseModalContentProps } from '@vellira-ui/types';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
export interface ModalContentProps extends BaseModalContentProps {
|
|
5
|
+
/** Modal panel content. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Style applied to the modal panel. */
|
|
8
|
+
style?: StyleProp<ViewStyle>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { NativeTheme } from '../../../theme';
|
|
2
|
+
export declare const createStyles: (theme: NativeTheme) => {
|
|
3
|
+
footer: {
|
|
4
|
+
flexDirection: "row";
|
|
5
|
+
gap: number;
|
|
6
|
+
justifyContent: "flex-end";
|
|
7
|
+
paddingTop: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=ModalFooter.styles.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseModalFooterProps } from '@vellira-ui/types';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
export interface ModalFooterProps extends BaseModalFooterProps {
|
|
5
|
+
/** Footer actions or custom footer content. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Style applied to the footer container. */
|
|
8
|
+
style?: StyleProp<ViewStyle>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { NativeTheme } from '../../../theme';
|
|
2
|
+
export declare const createStyles: (theme: NativeTheme) => {
|
|
3
|
+
header: {
|
|
4
|
+
alignItems: "center";
|
|
5
|
+
flexDirection: "row";
|
|
6
|
+
gap: number;
|
|
7
|
+
justifyContent: "space-between";
|
|
8
|
+
paddingBottom: number;
|
|
9
|
+
};
|
|
10
|
+
headerContent: {
|
|
11
|
+
flex: number;
|
|
12
|
+
gap: number;
|
|
13
|
+
};
|
|
14
|
+
title: {
|
|
15
|
+
color: string;
|
|
16
|
+
fontFamily: string;
|
|
17
|
+
fontSize: number;
|
|
18
|
+
lineHeight: number;
|
|
19
|
+
};
|
|
20
|
+
plainTitle: {
|
|
21
|
+
flex: number;
|
|
22
|
+
};
|
|
23
|
+
description: {
|
|
24
|
+
color: string;
|
|
25
|
+
fontFamily: string;
|
|
26
|
+
fontSize: number;
|
|
27
|
+
lineHeight: number;
|
|
28
|
+
};
|
|
29
|
+
closeButton: {
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
alignItems: "center";
|
|
33
|
+
justifyContent: "center";
|
|
34
|
+
backgroundColor: string;
|
|
35
|
+
borderRadius: number;
|
|
36
|
+
};
|
|
37
|
+
closeButtonPressed: {
|
|
38
|
+
backgroundColor: string;
|
|
39
|
+
};
|
|
40
|
+
closeButtonDisabled: {
|
|
41
|
+
backgroundColor: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=ModalHeader.styles.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ModalDescription } from './ModalDescription';
|
|
2
|
+
export { ModalHeader } from './ModalHeader';
|
|
3
|
+
export { ModalTitle } from './ModalTitle';
|
|
4
|
+
export type { ModalDescriptionProps, ModalHeaderProps, ModalTitleProps, } from './types';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BaseModalHeaderProps } from '@vellira-ui/types';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
4
|
+
export interface ModalHeaderProps extends BaseModalHeaderProps {
|
|
5
|
+
/** Header content, typically title and description. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/** Style applied to the header container. */
|
|
8
|
+
style?: StyleProp<ViewStyle>;
|
|
9
|
+
/** Style applied to header text when rendered by the component. */
|
|
10
|
+
textStyle?: StyleProp<TextStyle>;
|
|
11
|
+
}
|
|
12
|
+
export interface ModalTitleProps {
|
|
13
|
+
/** Title content. */
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
/** Style applied to the title text. */
|
|
16
|
+
style?: StyleProp<TextStyle>;
|
|
17
|
+
}
|
|
18
|
+
export interface ModalDescriptionProps {
|
|
19
|
+
/** Description content. */
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
/** Style applied to the description text. */
|
|
22
|
+
style?: StyleProp<TextStyle>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const Modal: {
|
|
2
|
+
({ open, defaultOpen, onOpenChange, animation, duration, easing, closeOnEscape, closeOnOutsidePress, restoreFocus, children, }: import("./types").ModalProps): import("react").JSX.Element;
|
|
3
|
+
displayName: string;
|
|
4
|
+
} & {
|
|
5
|
+
Trigger: {
|
|
6
|
+
({ children, asChild, disabled, accessibilityLabel, style, testID, }: import("./Trigger").ModalTriggerProps): import("react").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
Overlay: ({ children, overlayStyle }: import("./types").ModalOverlayProps) => import("react").JSX.Element;
|
|
10
|
+
Content: {
|
|
11
|
+
({ children, style }: import("./Content").ModalContentProps): import("react").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
Header: {
|
|
15
|
+
({ children, style, textStyle, }: import("./Header").ModalHeaderProps): import("react").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
Title: {
|
|
19
|
+
({ children, style }: import("./Header").ModalTitleProps): import("react").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
Description: {
|
|
23
|
+
({ children, style, }: import("./Header").ModalDescriptionProps): import("react").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
Body: {
|
|
27
|
+
({ children, style }: import("./Body").ModalBodyProps): import("react").JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
Footer: {
|
|
31
|
+
({ children, style }: import("./Footer").ModalFooterProps): import("react").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
Close: {
|
|
35
|
+
({ asChild, children, accessibilityLabel, style, }: import("./Close").ModalCloseProps): import("react").JSX.Element;
|
|
36
|
+
displayName: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { NativeTheme } from '../../theme';
|
|
2
|
+
export declare const createStyles: (theme: NativeTheme) => {
|
|
3
|
+
overlay: {
|
|
4
|
+
alignItems: "center";
|
|
5
|
+
flex: number;
|
|
6
|
+
justifyContent: "center";
|
|
7
|
+
padding: number;
|
|
8
|
+
};
|
|
9
|
+
backdrop: {
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
position: "absolute";
|
|
12
|
+
left: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
top: 0;
|
|
15
|
+
bottom: 0;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=Modal.styles.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ModalProps } from '../types';
|
|
2
|
+
export declare const ModalRoot: {
|
|
3
|
+
({ open, defaultOpen, onOpenChange, animation, duration, easing, closeOnEscape, closeOnOutsidePress, restoreFocus, children, }: ModalProps): import("react").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=ModalRoot.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Animated } from 'react-native';
|
|
2
|
+
import type { ModalProps } from '../types';
|
|
3
|
+
export type UseModalRootAnimationOptions = {
|
|
4
|
+
animation: NonNullable<ModalProps['animation']>;
|
|
5
|
+
defaultOpen: boolean;
|
|
6
|
+
duration: ModalProps['duration'];
|
|
7
|
+
easing: NonNullable<ModalProps['easing']>;
|
|
8
|
+
open: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function useModalRootAnimation({ animation, defaultOpen, duration, easing, open, }: UseModalRootAnimationOptions): {
|
|
11
|
+
animationProgress: Animated.Value;
|
|
12
|
+
shouldRender: boolean;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=useModalRootAnimation.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ModalTriggerProps } from './types';
|
|
2
|
+
export declare const ModalTrigger: {
|
|
3
|
+
({ children, asChild, disabled, accessibilityLabel, style, testID, }: ModalTriggerProps): import("react").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=ModalTrigger.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode, Ref } from 'react';
|
|
2
|
+
import type { PressableProps, StyleProp, View, ViewStyle } from 'react-native';
|
|
3
|
+
export type ModalTriggerProps = {
|
|
4
|
+
/** Trigger content. */
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Composes trigger behavior onto a single child element. */
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
/** Disables trigger interaction. */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Style applied to the trigger. */
|
|
11
|
+
style?: StyleProp<ViewStyle>;
|
|
12
|
+
} & Pick<PressableProps, 'accessibilityLabel' | 'testID'>;
|
|
13
|
+
export type ModalTriggerChildProps = {
|
|
14
|
+
/** Ref forwarded to the composed trigger child. */
|
|
15
|
+
ref?: Ref<View>;
|
|
16
|
+
/** Press handler injected into the composed trigger child. */
|
|
17
|
+
onPress?: PressableProps['onPress'];
|
|
18
|
+
/** Disables trigger interaction on the composed child. */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** Accessibility role injected into the composed child. */
|
|
21
|
+
accessibilityRole?: PressableProps['accessibilityRole'];
|
|
22
|
+
/** Accessibility state injected into the composed child. */
|
|
23
|
+
accessibilityState?: PressableProps['accessibilityState'];
|
|
24
|
+
/** Accessible name injected into the composed child. */
|
|
25
|
+
accessibilityLabel?: string;
|
|
26
|
+
/** Style injected into the composed child. */
|
|
27
|
+
style?: StyleProp<ViewStyle>;
|
|
28
|
+
};
|
|
29
|
+
export type ModalTriggerChild = ReactElement<ModalTriggerChildProps>;
|
|
30
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type { ModalBodyProps } from './Body';
|
|
2
|
+
export { ModalBody } from './Body';
|
|
3
|
+
export type { ModalCloseProps } from './Close';
|
|
4
|
+
export { ModalClose } from './Close';
|
|
5
|
+
export type { ModalContentProps } from './Content';
|
|
6
|
+
export { ModalContent } from './Content';
|
|
7
|
+
export type { ModalFooterProps } from './Footer';
|
|
8
|
+
export { ModalFooter } from './Footer';
|
|
9
|
+
export type { ModalDescriptionProps, ModalHeaderProps, ModalTitleProps, } from './Header';
|
|
10
|
+
export { ModalDescription, ModalHeader, ModalTitle } from './Header';
|
|
11
|
+
export { Modal } from './Modal';
|
|
12
|
+
export type { ModalOverlayProps } from './Overlay';
|
|
13
|
+
export { ModalOverlay } from './Overlay';
|
|
14
|
+
export { ModalRoot } from './Root';
|
|
15
|
+
export type { ModalTriggerProps } from './Trigger';
|
|
16
|
+
export { ModalTrigger } from './Trigger';
|
|
17
|
+
export type { ModalProps } from './types';
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { MutableRefObject } from 'react';
|
|
2
|
+
import type { Animated, View } from 'react-native';
|
|
3
|
+
import type { OverlayOutsidePressProps, OverlayOutsidePressPropsOptions } from '../../../hooks';
|
|
4
|
+
import type { ModalAnimation } from '../types';
|
|
5
|
+
export interface ModalContextValue {
|
|
6
|
+
animation: ModalAnimation;
|
|
7
|
+
animationProgress: Animated.Value;
|
|
8
|
+
zIndex: number;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
getOutsidePressProps: (options?: OverlayOutsidePressPropsOptions) => OverlayOutsidePressProps;
|
|
11
|
+
open: boolean;
|
|
12
|
+
setOpen: (open: boolean) => void;
|
|
13
|
+
shouldRender: boolean;
|
|
14
|
+
triggerRef: MutableRefObject<View | null>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|