@xaui/native 0.9.1-alpha.41 → 0.9.1-alpha.43
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/{chunk-TJ74XVZN.cjs → chunk-3JXI2IHV.cjs} +8 -8
- package/dist/{chunk-C5YLPCFC.cjs → chunk-4KSKQD37.cjs} +5 -5
- package/dist/{chunk-DA3OKXHV.cjs → chunk-54CWXA34.cjs} +59 -59
- package/dist/{chunk-XV735BSA.cjs → chunk-66FOASTP.cjs} +6 -6
- package/dist/{chunk-UFTCTTKK.js → chunk-6CO6FM67.js} +15 -15
- package/dist/{chunk-RU7JCMWC.cjs → chunk-76XDVA24.cjs} +6 -6
- package/dist/{chunk-G7P3ERYF.cjs → chunk-7KLBTMXV.cjs} +5 -5
- package/dist/{chunk-NWGLP6JX.cjs → chunk-7TOG4TVU.cjs} +15 -15
- package/dist/{chunk-ZFOOJK37.cjs → chunk-AAVCMCJ3.cjs} +2 -2
- package/dist/{chunk-T5FV5F7A.cjs → chunk-C5LONNXT.cjs} +6 -6
- package/dist/{chunk-XFPQFCEK.js → chunk-DY3SUG5P.js} +6 -6
- package/dist/{chunk-KCMYU7WF.js → chunk-EYD4H4X6.js} +1 -1
- package/dist/{chunk-DHGLGSH6.js → chunk-FBCWNXZC.js} +58 -58
- package/dist/{chunk-2XPG2243.js → chunk-GJSFKH4L.js} +16 -16
- package/dist/{chunk-DD4276RF.js → chunk-HA6BFY3A.js} +6 -6
- package/dist/{chunk-GFUZ3MUT.cjs → chunk-HOI5425P.cjs} +6 -6
- package/dist/chunk-J5WXI5NU.js +520 -0
- package/dist/{chunk-LRN3RNDO.js → chunk-JKP4TPIL.js} +16 -16
- package/dist/{chunk-6UEZJRVI.js → chunk-LIUO6D3D.js} +75 -75
- package/dist/{chunk-DIBUQ46Y.js → chunk-MXGER5PI.js} +5 -5
- package/dist/{chunk-EZEYMLO3.js → chunk-N5AEXTUM.js} +4 -4
- package/dist/chunk-NA262TF2.js +724 -0
- package/dist/{chunk-R73XQK7X.cjs → chunk-NCCRQK3P.cjs} +5 -5
- package/dist/{chunk-5VKYNBNA.js → chunk-NHZRQM5J.js} +4 -4
- package/dist/chunk-P2GKAAA3.cjs +442 -0
- package/dist/{chunk-VLKBESEV.cjs → chunk-QWMVMLSU.cjs} +5 -5
- package/dist/{chunk-GA6PBWNT.js → chunk-QZ24MZRX.js} +1 -1
- package/dist/{chunk-YVHT2UVW.js → chunk-R7BU4CPS.js} +1 -1
- package/dist/{chunk-6DOLGZVV.cjs → chunk-S4QUM4EE.cjs} +4 -4
- package/dist/{chunk-DG2I4PJG.js → chunk-SACDOFGF.js} +15 -15
- package/dist/{chunk-ABAGZTXZ.cjs → chunk-SIP5J7HU.cjs} +15 -15
- package/dist/{chunk-3E7CDKFO.cjs → chunk-TGMVEHV7.cjs} +61 -61
- package/dist/{chunk-YGYYJ3LQ.js → chunk-TRETQZEW.js} +5 -5
- package/dist/{chunk-UAWBAD4E.cjs → chunk-URA25DU4.cjs} +5 -5
- package/dist/{chunk-BRRXFOBY.js → chunk-USF6EWYR.js} +7 -7
- package/dist/{chunk-5R26NM4M.cjs → chunk-VPQPFLT5.cjs} +6 -6
- package/dist/{chunk-G3CCT4EY.js → chunk-VT34G7RT.js} +16 -16
- package/dist/{chunk-7YF5NAHQ.cjs → chunk-VZK3NLBH.cjs} +7 -7
- package/dist/{chunk-N3KTZMPG.js → chunk-XNMZQSY5.js} +5 -5
- package/dist/chunk-ZTBA7CNK.cjs +510 -0
- package/dist/components/accordion/index.cjs +5 -5
- package/dist/components/accordion/index.js +4 -4
- package/dist/components/alert/index.cjs +6 -6
- package/dist/components/alert/index.js +5 -5
- package/dist/components/avatar/index.cjs +4 -4
- package/dist/components/avatar/index.js +3 -3
- package/dist/components/badge/index.cjs +4 -4
- package/dist/components/badge/index.js +3 -3
- package/dist/components/bottom-sheet/index.cjs +37 -0
- package/dist/components/bottom-sheet/index.d.cts +230 -0
- package/dist/components/bottom-sheet/index.d.ts +230 -0
- package/dist/components/bottom-sheet/index.js +37 -0
- package/dist/components/button/index.cjs +5 -5
- package/dist/components/button/index.js +4 -4
- package/dist/components/card/index.cjs +5 -5
- package/dist/components/card/index.js +4 -4
- package/dist/components/checkbox/index.cjs +5 -5
- package/dist/components/checkbox/index.js +4 -4
- package/dist/components/chip/index.cjs +6 -6
- package/dist/components/chip/index.js +5 -5
- package/dist/components/divider/index.cjs +4 -4
- package/dist/components/divider/index.js +3 -3
- package/dist/components/field-group/index.cjs +5 -5
- package/dist/components/field-group/index.js +4 -4
- package/dist/components/input-otp/index.cjs +4 -4
- package/dist/components/input-otp/index.js +3 -3
- package/dist/components/menu/index.cjs +5 -5
- package/dist/components/menu/index.js +4 -4
- package/dist/components/popover/index.cjs +5 -5
- package/dist/components/popover/index.js +4 -4
- package/dist/components/radio/index.cjs +5 -5
- package/dist/components/radio/index.js +4 -4
- package/dist/components/select/index.cjs +5 -5
- package/dist/components/select/index.js +4 -4
- package/dist/components/slider/index.cjs +33 -0
- package/dist/components/slider/index.d.cts +284 -0
- package/dist/components/slider/index.d.ts +284 -0
- package/dist/components/slider/index.js +33 -0
- package/dist/components/spinner/index.cjs +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/switch/index.cjs +5 -5
- package/dist/components/switch/index.js +4 -4
- package/dist/components/tabs/index.cjs +5 -5
- package/dist/components/tabs/index.js +4 -4
- package/dist/components/text-area/index.cjs +5 -5
- package/dist/components/text-area/index.js +4 -4
- package/dist/components/text-field/index.cjs +4 -4
- package/dist/components/text-field/index.js +3 -3
- package/dist/components/typography/index.cjs +4 -4
- package/dist/components/typography/index.js +3 -3
- package/dist/index.cjs +85 -37
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +132 -84
- package/dist/system/index.cjs +11 -11
- package/dist/system/index.js +13 -13
- package/package.json +21 -1
- package/dist/{chunk-4CUZZWFW.js → chunk-26OGEFQI.js} +3 -3
- package/dist/{chunk-H7DS4IO7.js → chunk-346QBNUD.js} +4 -4
- package/dist/{chunk-J3MB4PI5.cjs → chunk-A7YB7YWX.cjs} +3 -3
- package/dist/{chunk-AMCSSOJT.cjs → chunk-BNFIFRQA.cjs} +3 -3
- package/dist/{chunk-6L2TS2R3.cjs → chunk-KSUV74BE.cjs} +3 -3
- package/dist/{chunk-HDVVZG4S.cjs → chunk-RKCWYUGA.cjs} +3 -3
- package/dist/{chunk-2NRZKJG7.js → chunk-S2WNWMNT.js} +4 -4
- package/dist/{chunk-73RKQC5X.js → chunk-SZLXPF3G.js} +3 -3
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkP2GKAAA3cjs = require('../../chunk-P2GKAAA3.cjs');
|
|
14
|
+
require('../../chunk-WDDXU3OH.cjs');
|
|
15
|
+
require('../../chunk-EKS3W46M.cjs');
|
|
16
|
+
require('../../chunk-7EIHHOHP.cjs');
|
|
17
|
+
require('../../chunk-TGMVEHV7.cjs');
|
|
18
|
+
require('../../chunk-7DPL3ZDS.cjs');
|
|
19
|
+
require('../../chunk-EJQCQPET.cjs');
|
|
20
|
+
require('../../chunk-7GHM4GKL.cjs');
|
|
21
|
+
require('../../chunk-H4E4HDEP.cjs');
|
|
22
|
+
require('../../chunk-FNEUOBCV.cjs');
|
|
23
|
+
require('../../chunk-57SJ4LJF.cjs');
|
|
24
|
+
require('../../chunk-TK44VBIE.cjs');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
exports.BottomSheet = _chunkP2GKAAA3cjs.BottomSheet2; exports.BottomSheetClose = _chunkP2GKAAA3cjs.BottomSheetClose; exports.BottomSheetContent = _chunkP2GKAAA3cjs.BottomSheetContent; exports.BottomSheetDescription = _chunkP2GKAAA3cjs.BottomSheetDescription; exports.BottomSheetHandle = _chunkP2GKAAA3cjs.BottomSheetHandle; exports.BottomSheetOverlay = _chunkP2GKAAA3cjs.BottomSheetOverlay; exports.BottomSheetRoot = _chunkP2GKAAA3cjs.BottomSheet; exports.BottomSheetTitle = _chunkP2GKAAA3cjs.BottomSheetTitle; exports.BottomSheetTrigger = _chunkP2GKAAA3cjs.BottomSheetTrigger; exports.bottomSheetRecipe = _chunkP2GKAAA3cjs.bottomSheetRecipe; exports.useBottomSheet = _chunkP2GKAAA3cjs.useBottomSheet;
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import * as react_native from 'react-native';
|
|
2
|
+
import { ViewProps, StyleProp, ViewStyle, TextStyle, PressableProps, TextProps, View, Text } from 'react-native';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { V as ViewStyleProps, T as TextStyleProps } from '../../style-props.type-CfnoGEP7.cjs';
|
|
6
|
+
import { R as RadiusKey, X as XAUITheme } from '../../theme.type-C2gNHpEx.cjs';
|
|
7
|
+
import { R as Recipe } from '../../create-recipe-dC7wMfnj.cjs';
|
|
8
|
+
|
|
9
|
+
type BottomSheetSlot = 'overlay' | 'content' | 'handle' | 'title' | 'description';
|
|
10
|
+
type BottomSheetOwnProps = {
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
radius?: RadiusKey;
|
|
13
|
+
isOpen?: boolean;
|
|
14
|
+
defaultOpen?: boolean;
|
|
15
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
16
|
+
isDisabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* How far down the sheet has to be dragged before letting go closes it, as a fraction
|
|
19
|
+
* of its own height.
|
|
20
|
+
*
|
|
21
|
+
* @default 0.35
|
|
22
|
+
*/
|
|
23
|
+
dismissThreshold?: number;
|
|
24
|
+
};
|
|
25
|
+
/** The root renders **no node** — `ref` and `style` live on the parts that draw. */
|
|
26
|
+
type BottomSheetProps = BottomSheetOwnProps;
|
|
27
|
+
type TriggerOwnProps = {
|
|
28
|
+
children?: ReactNode;
|
|
29
|
+
asChild?: boolean;
|
|
30
|
+
};
|
|
31
|
+
type BottomSheetTriggerProps = TriggerOwnProps & Omit<PressableProps, keyof TriggerOwnProps> & Omit<ViewStyleProps, keyof TriggerOwnProps | keyof PressableProps>;
|
|
32
|
+
type OverlayOwnProps = {
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
isDismissable?: boolean;
|
|
35
|
+
};
|
|
36
|
+
type BottomSheetOverlayProps = OverlayOwnProps & Omit<ViewProps, keyof OverlayOwnProps> & Omit<ViewStyleProps, keyof OverlayOwnProps | keyof ViewProps>;
|
|
37
|
+
type ContentOwnProps = {
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
/** Whether dragging the sheet down closes it. */
|
|
40
|
+
isSwipeable?: boolean;
|
|
41
|
+
};
|
|
42
|
+
type BottomSheetContentProps = ContentOwnProps & Omit<ViewProps, keyof ContentOwnProps> & Omit<ViewStyleProps, keyof ContentOwnProps | keyof ViewProps>;
|
|
43
|
+
/** The grab bar. It draws a pill and holds nothing. */
|
|
44
|
+
type BottomSheetHandleProps = Omit<ViewProps, 'children'> & ViewStyleProps;
|
|
45
|
+
type TextOwnProps = {
|
|
46
|
+
children?: ReactNode;
|
|
47
|
+
};
|
|
48
|
+
type BottomSheetTitleProps = TextOwnProps & Omit<TextProps, keyof TextOwnProps> & Omit<TextStyleProps, keyof TextOwnProps | keyof TextProps>;
|
|
49
|
+
type BottomSheetDescriptionProps = BottomSheetTitleProps;
|
|
50
|
+
type CloseOwnProps = {
|
|
51
|
+
children?: ReactNode;
|
|
52
|
+
asChild?: boolean;
|
|
53
|
+
};
|
|
54
|
+
type BottomSheetCloseProps = CloseOwnProps & Omit<PressableProps, keyof CloseOwnProps> & Omit<ViewStyleProps, keyof CloseOwnProps | keyof PressableProps>;
|
|
55
|
+
/** R5 — resolved style ids and the state the slots read. */
|
|
56
|
+
type BottomSheetContextValue = {
|
|
57
|
+
overlayStyle: StyleProp<ViewStyle>;
|
|
58
|
+
contentStyle: StyleProp<ViewStyle>;
|
|
59
|
+
handleStyle: StyleProp<ViewStyle>;
|
|
60
|
+
titleStyle: StyleProp<TextStyle>;
|
|
61
|
+
descriptionStyle: StyleProp<TextStyle>;
|
|
62
|
+
isOpen: boolean;
|
|
63
|
+
isDisabled: boolean;
|
|
64
|
+
dismissThreshold: number;
|
|
65
|
+
open: () => void;
|
|
66
|
+
close: () => void;
|
|
67
|
+
toggle: () => void;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The sheet itself.
|
|
72
|
+
*
|
|
73
|
+
* **It measures its own height, then slides that far.** A sheet is as tall as what is in
|
|
74
|
+
* it, and nothing else on the screen knows that number — so the first layout is what tells
|
|
75
|
+
* the animation how far "down" is. Until it has one the sheet sits off-screen at a
|
|
76
|
+
* pessimistic distance rather than flashing at its resting place.
|
|
77
|
+
*
|
|
78
|
+
* The drag runs on `react-native-gesture-handler`, an **optional** peer of this package.
|
|
79
|
+
* It is imported here and in the `Slider`, so an app that uses neither never pays for it.
|
|
80
|
+
*
|
|
81
|
+
* Downward only. A sheet dragged upward has nowhere to go — it is already against the
|
|
82
|
+
* top of its own content — and letting it stretch there is a rubber-band nobody asked for.
|
|
83
|
+
*/
|
|
84
|
+
declare function BottomSheetContent({ children, isSwipeable, accessibilityViewIsModal, style, onLayout, ...props }: BottomSheetContentProps): react.JSX.Element | null;
|
|
85
|
+
declare namespace BottomSheetContent {
|
|
86
|
+
var displayName: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* A surface that comes up from the bottom edge and can be thrown back down.
|
|
91
|
+
*
|
|
92
|
+
* ```tsx
|
|
93
|
+
* <BottomSheet>
|
|
94
|
+
* <BottomSheet.Trigger asChild>
|
|
95
|
+
* <Button>Partager</Button>
|
|
96
|
+
* </BottomSheet.Trigger>
|
|
97
|
+
* <BottomSheet.Overlay />
|
|
98
|
+
* <BottomSheet.Content>
|
|
99
|
+
* <BottomSheet.Handle />
|
|
100
|
+
* <BottomSheet.Title>Partager</BottomSheet.Title>
|
|
101
|
+
* </BottomSheet.Content>
|
|
102
|
+
* </BottomSheet>
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* **The root renders no node.** It holds one piece of state and the styles the slots read.
|
|
106
|
+
*
|
|
107
|
+
* It is built on this library's own peers rather than on `@gorhom/bottom-sheet`, which is
|
|
108
|
+
* what HeroUI wraps. A sheet that slides, springs and dismisses is a pan gesture and a
|
|
109
|
+
* shared value; taking a dependency for that would put a second animation library in every
|
|
110
|
+
* app that installs one component.
|
|
111
|
+
*/
|
|
112
|
+
declare function BottomSheet$1({ children, radius, isOpen: controlledOpen, defaultOpen, onOpenChange, isDisabled, dismissThreshold, }: BottomSheetProps): react.JSX.Element;
|
|
113
|
+
declare namespace BottomSheet$1 {
|
|
114
|
+
var displayName: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Anything that sends the sheet back down. It renders no glyph of its own: a sheet is
|
|
119
|
+
* dismissed by dragging it or by a button that says what it did, far more often than by a
|
|
120
|
+
* cross in a corner. `system/close-button` is there for the cross.
|
|
121
|
+
*/
|
|
122
|
+
declare const BottomSheetClose: react.ForwardRefExoticComponent<{
|
|
123
|
+
children?: react.ReactNode;
|
|
124
|
+
asChild?: boolean;
|
|
125
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
126
|
+
children?: react.ReactNode;
|
|
127
|
+
asChild?: boolean;
|
|
128
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<View>>;
|
|
129
|
+
|
|
130
|
+
/** The sentence under it. It wraps — that is what it exists to carry. */
|
|
131
|
+
declare const BottomSheetDescription: react.ForwardRefExoticComponent<{
|
|
132
|
+
children?: react.ReactNode;
|
|
133
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<Text>>;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The grab bar.
|
|
137
|
+
*
|
|
138
|
+
* It is the only thing telling a reader the sheet can be dragged — the gesture has no other
|
|
139
|
+
* affordance, and a sheet without one reads as a panel that happens to have arrived from
|
|
140
|
+
* below. Written by the caller rather than drawn by the content, because a sheet with
|
|
141
|
+
* `isSwipeable={false}` should not be advertising a gesture it refuses.
|
|
142
|
+
*/
|
|
143
|
+
declare const BottomSheetHandle: react.ForwardRefExoticComponent<Omit<react_native.ViewProps, "children"> & ViewStyleProps & react.RefAttributes<View>>;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The backdrop.
|
|
147
|
+
*
|
|
148
|
+
* **It dims.** A sheet takes the screen over, and the page behind it is not available until
|
|
149
|
+
* the sheet is gone — the dimming is what says so.
|
|
150
|
+
*
|
|
151
|
+
* `isDismissable={false}` for a sheet that has to be answered rather than escaped. The drag
|
|
152
|
+
* is a separate refusal: `isSwipeable={false}` on the content.
|
|
153
|
+
*/
|
|
154
|
+
declare const BottomSheetOverlay: react.ForwardRefExoticComponent<{
|
|
155
|
+
children?: react.ReactNode;
|
|
156
|
+
isDismissable?: boolean;
|
|
157
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
158
|
+
children?: react.ReactNode;
|
|
159
|
+
isDismissable?: boolean;
|
|
160
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDismissable"> & react.RefAttributes<View>>;
|
|
161
|
+
|
|
162
|
+
/** What the sheet is for. A `header`, so it announces as one. */
|
|
163
|
+
declare const BottomSheetTitle: react.ForwardRefExoticComponent<{
|
|
164
|
+
children?: react.ReactNode;
|
|
165
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<Text>>;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* What brings the sheet up. It paints nothing of its own — a sheet's trigger is a `Button`
|
|
169
|
+
* far more often than not, and giving it a surface would put a second box around one.
|
|
170
|
+
*/
|
|
171
|
+
declare const BottomSheetTrigger: react.ForwardRefExoticComponent<{
|
|
172
|
+
children?: react.ReactNode;
|
|
173
|
+
asChild?: boolean;
|
|
174
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
175
|
+
children?: react.ReactNode;
|
|
176
|
+
asChild?: boolean;
|
|
177
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<View>>;
|
|
178
|
+
|
|
179
|
+
declare const useBottomSheet: () => BottomSheetContextValue;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Only the **top** corners, and only they can be overridden.
|
|
183
|
+
*
|
|
184
|
+
* A sheet sits on the bottom edge of the screen, so its lower corners are off it. Rounding
|
|
185
|
+
* them would put two arcs against a straight edge nobody can see, and `radiusAxis` — which
|
|
186
|
+
* writes `borderRadius` — would round all four.
|
|
187
|
+
*/
|
|
188
|
+
declare function topCorners(radius: RadiusKey): (theme: XAUITheme) => {
|
|
189
|
+
content: {
|
|
190
|
+
borderTopStartRadius: number;
|
|
191
|
+
borderTopEndRadius: number;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
declare const bottomSheetRecipe: Recipe<"title" | "overlay" | "content" | "description" | "handle", "default", {
|
|
195
|
+
readonly radius: Record<RadiusKey, ReturnType<typeof topCorners>>;
|
|
196
|
+
}>;
|
|
197
|
+
|
|
198
|
+
declare const BottomSheet: typeof BottomSheet$1 & {
|
|
199
|
+
Trigger: react.ForwardRefExoticComponent<{
|
|
200
|
+
children?: react.ReactNode;
|
|
201
|
+
asChild?: boolean;
|
|
202
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
203
|
+
children?: react.ReactNode;
|
|
204
|
+
asChild?: boolean;
|
|
205
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<react_native.View>>;
|
|
206
|
+
Overlay: react.ForwardRefExoticComponent<{
|
|
207
|
+
children?: react.ReactNode;
|
|
208
|
+
isDismissable?: boolean;
|
|
209
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
210
|
+
children?: react.ReactNode;
|
|
211
|
+
isDismissable?: boolean;
|
|
212
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDismissable"> & react.RefAttributes<react_native.View>>;
|
|
213
|
+
Content: typeof BottomSheetContent;
|
|
214
|
+
Handle: react.ForwardRefExoticComponent<Omit<react_native.ViewProps, "children"> & ViewStyleProps & react.RefAttributes<react_native.View>>;
|
|
215
|
+
Title: react.ForwardRefExoticComponent<{
|
|
216
|
+
children?: react.ReactNode;
|
|
217
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<react_native.Text>>;
|
|
218
|
+
Description: react.ForwardRefExoticComponent<{
|
|
219
|
+
children?: react.ReactNode;
|
|
220
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<react_native.Text>>;
|
|
221
|
+
Close: react.ForwardRefExoticComponent<{
|
|
222
|
+
children?: react.ReactNode;
|
|
223
|
+
asChild?: boolean;
|
|
224
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
225
|
+
children?: react.ReactNode;
|
|
226
|
+
asChild?: boolean;
|
|
227
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<react_native.View>>;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
export { BottomSheet, BottomSheetClose, type BottomSheetCloseProps, BottomSheetContent, type BottomSheetContentProps, type BottomSheetContextValue, BottomSheetDescription, type BottomSheetDescriptionProps, BottomSheetHandle, type BottomSheetHandleProps, BottomSheetOverlay, type BottomSheetOverlayProps, type BottomSheetProps, BottomSheet$1 as BottomSheetRoot, type BottomSheetSlot, BottomSheetTitle, type BottomSheetTitleProps, BottomSheetTrigger, type BottomSheetTriggerProps, bottomSheetRecipe, useBottomSheet };
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import * as react_native from 'react-native';
|
|
2
|
+
import { ViewProps, StyleProp, ViewStyle, TextStyle, PressableProps, TextProps, View, Text } from 'react-native';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { V as ViewStyleProps, T as TextStyleProps } from '../../style-props.type-CfnoGEP7.js';
|
|
6
|
+
import { R as RadiusKey, X as XAUITheme } from '../../theme.type-C2gNHpEx.js';
|
|
7
|
+
import { R as Recipe } from '../../create-recipe-BdVd2ffi.js';
|
|
8
|
+
|
|
9
|
+
type BottomSheetSlot = 'overlay' | 'content' | 'handle' | 'title' | 'description';
|
|
10
|
+
type BottomSheetOwnProps = {
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
radius?: RadiusKey;
|
|
13
|
+
isOpen?: boolean;
|
|
14
|
+
defaultOpen?: boolean;
|
|
15
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
16
|
+
isDisabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* How far down the sheet has to be dragged before letting go closes it, as a fraction
|
|
19
|
+
* of its own height.
|
|
20
|
+
*
|
|
21
|
+
* @default 0.35
|
|
22
|
+
*/
|
|
23
|
+
dismissThreshold?: number;
|
|
24
|
+
};
|
|
25
|
+
/** The root renders **no node** — `ref` and `style` live on the parts that draw. */
|
|
26
|
+
type BottomSheetProps = BottomSheetOwnProps;
|
|
27
|
+
type TriggerOwnProps = {
|
|
28
|
+
children?: ReactNode;
|
|
29
|
+
asChild?: boolean;
|
|
30
|
+
};
|
|
31
|
+
type BottomSheetTriggerProps = TriggerOwnProps & Omit<PressableProps, keyof TriggerOwnProps> & Omit<ViewStyleProps, keyof TriggerOwnProps | keyof PressableProps>;
|
|
32
|
+
type OverlayOwnProps = {
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
isDismissable?: boolean;
|
|
35
|
+
};
|
|
36
|
+
type BottomSheetOverlayProps = OverlayOwnProps & Omit<ViewProps, keyof OverlayOwnProps> & Omit<ViewStyleProps, keyof OverlayOwnProps | keyof ViewProps>;
|
|
37
|
+
type ContentOwnProps = {
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
/** Whether dragging the sheet down closes it. */
|
|
40
|
+
isSwipeable?: boolean;
|
|
41
|
+
};
|
|
42
|
+
type BottomSheetContentProps = ContentOwnProps & Omit<ViewProps, keyof ContentOwnProps> & Omit<ViewStyleProps, keyof ContentOwnProps | keyof ViewProps>;
|
|
43
|
+
/** The grab bar. It draws a pill and holds nothing. */
|
|
44
|
+
type BottomSheetHandleProps = Omit<ViewProps, 'children'> & ViewStyleProps;
|
|
45
|
+
type TextOwnProps = {
|
|
46
|
+
children?: ReactNode;
|
|
47
|
+
};
|
|
48
|
+
type BottomSheetTitleProps = TextOwnProps & Omit<TextProps, keyof TextOwnProps> & Omit<TextStyleProps, keyof TextOwnProps | keyof TextProps>;
|
|
49
|
+
type BottomSheetDescriptionProps = BottomSheetTitleProps;
|
|
50
|
+
type CloseOwnProps = {
|
|
51
|
+
children?: ReactNode;
|
|
52
|
+
asChild?: boolean;
|
|
53
|
+
};
|
|
54
|
+
type BottomSheetCloseProps = CloseOwnProps & Omit<PressableProps, keyof CloseOwnProps> & Omit<ViewStyleProps, keyof CloseOwnProps | keyof PressableProps>;
|
|
55
|
+
/** R5 — resolved style ids and the state the slots read. */
|
|
56
|
+
type BottomSheetContextValue = {
|
|
57
|
+
overlayStyle: StyleProp<ViewStyle>;
|
|
58
|
+
contentStyle: StyleProp<ViewStyle>;
|
|
59
|
+
handleStyle: StyleProp<ViewStyle>;
|
|
60
|
+
titleStyle: StyleProp<TextStyle>;
|
|
61
|
+
descriptionStyle: StyleProp<TextStyle>;
|
|
62
|
+
isOpen: boolean;
|
|
63
|
+
isDisabled: boolean;
|
|
64
|
+
dismissThreshold: number;
|
|
65
|
+
open: () => void;
|
|
66
|
+
close: () => void;
|
|
67
|
+
toggle: () => void;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The sheet itself.
|
|
72
|
+
*
|
|
73
|
+
* **It measures its own height, then slides that far.** A sheet is as tall as what is in
|
|
74
|
+
* it, and nothing else on the screen knows that number — so the first layout is what tells
|
|
75
|
+
* the animation how far "down" is. Until it has one the sheet sits off-screen at a
|
|
76
|
+
* pessimistic distance rather than flashing at its resting place.
|
|
77
|
+
*
|
|
78
|
+
* The drag runs on `react-native-gesture-handler`, an **optional** peer of this package.
|
|
79
|
+
* It is imported here and in the `Slider`, so an app that uses neither never pays for it.
|
|
80
|
+
*
|
|
81
|
+
* Downward only. A sheet dragged upward has nowhere to go — it is already against the
|
|
82
|
+
* top of its own content — and letting it stretch there is a rubber-band nobody asked for.
|
|
83
|
+
*/
|
|
84
|
+
declare function BottomSheetContent({ children, isSwipeable, accessibilityViewIsModal, style, onLayout, ...props }: BottomSheetContentProps): react.JSX.Element | null;
|
|
85
|
+
declare namespace BottomSheetContent {
|
|
86
|
+
var displayName: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* A surface that comes up from the bottom edge and can be thrown back down.
|
|
91
|
+
*
|
|
92
|
+
* ```tsx
|
|
93
|
+
* <BottomSheet>
|
|
94
|
+
* <BottomSheet.Trigger asChild>
|
|
95
|
+
* <Button>Partager</Button>
|
|
96
|
+
* </BottomSheet.Trigger>
|
|
97
|
+
* <BottomSheet.Overlay />
|
|
98
|
+
* <BottomSheet.Content>
|
|
99
|
+
* <BottomSheet.Handle />
|
|
100
|
+
* <BottomSheet.Title>Partager</BottomSheet.Title>
|
|
101
|
+
* </BottomSheet.Content>
|
|
102
|
+
* </BottomSheet>
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* **The root renders no node.** It holds one piece of state and the styles the slots read.
|
|
106
|
+
*
|
|
107
|
+
* It is built on this library's own peers rather than on `@gorhom/bottom-sheet`, which is
|
|
108
|
+
* what HeroUI wraps. A sheet that slides, springs and dismisses is a pan gesture and a
|
|
109
|
+
* shared value; taking a dependency for that would put a second animation library in every
|
|
110
|
+
* app that installs one component.
|
|
111
|
+
*/
|
|
112
|
+
declare function BottomSheet$1({ children, radius, isOpen: controlledOpen, defaultOpen, onOpenChange, isDisabled, dismissThreshold, }: BottomSheetProps): react.JSX.Element;
|
|
113
|
+
declare namespace BottomSheet$1 {
|
|
114
|
+
var displayName: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Anything that sends the sheet back down. It renders no glyph of its own: a sheet is
|
|
119
|
+
* dismissed by dragging it or by a button that says what it did, far more often than by a
|
|
120
|
+
* cross in a corner. `system/close-button` is there for the cross.
|
|
121
|
+
*/
|
|
122
|
+
declare const BottomSheetClose: react.ForwardRefExoticComponent<{
|
|
123
|
+
children?: react.ReactNode;
|
|
124
|
+
asChild?: boolean;
|
|
125
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
126
|
+
children?: react.ReactNode;
|
|
127
|
+
asChild?: boolean;
|
|
128
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<View>>;
|
|
129
|
+
|
|
130
|
+
/** The sentence under it. It wraps — that is what it exists to carry. */
|
|
131
|
+
declare const BottomSheetDescription: react.ForwardRefExoticComponent<{
|
|
132
|
+
children?: react.ReactNode;
|
|
133
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<Text>>;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* The grab bar.
|
|
137
|
+
*
|
|
138
|
+
* It is the only thing telling a reader the sheet can be dragged — the gesture has no other
|
|
139
|
+
* affordance, and a sheet without one reads as a panel that happens to have arrived from
|
|
140
|
+
* below. Written by the caller rather than drawn by the content, because a sheet with
|
|
141
|
+
* `isSwipeable={false}` should not be advertising a gesture it refuses.
|
|
142
|
+
*/
|
|
143
|
+
declare const BottomSheetHandle: react.ForwardRefExoticComponent<Omit<react_native.ViewProps, "children"> & ViewStyleProps & react.RefAttributes<View>>;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* The backdrop.
|
|
147
|
+
*
|
|
148
|
+
* **It dims.** A sheet takes the screen over, and the page behind it is not available until
|
|
149
|
+
* the sheet is gone — the dimming is what says so.
|
|
150
|
+
*
|
|
151
|
+
* `isDismissable={false}` for a sheet that has to be answered rather than escaped. The drag
|
|
152
|
+
* is a separate refusal: `isSwipeable={false}` on the content.
|
|
153
|
+
*/
|
|
154
|
+
declare const BottomSheetOverlay: react.ForwardRefExoticComponent<{
|
|
155
|
+
children?: react.ReactNode;
|
|
156
|
+
isDismissable?: boolean;
|
|
157
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
158
|
+
children?: react.ReactNode;
|
|
159
|
+
isDismissable?: boolean;
|
|
160
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDismissable"> & react.RefAttributes<View>>;
|
|
161
|
+
|
|
162
|
+
/** What the sheet is for. A `header`, so it announces as one. */
|
|
163
|
+
declare const BottomSheetTitle: react.ForwardRefExoticComponent<{
|
|
164
|
+
children?: react.ReactNode;
|
|
165
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<Text>>;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* What brings the sheet up. It paints nothing of its own — a sheet's trigger is a `Button`
|
|
169
|
+
* far more often than not, and giving it a surface would put a second box around one.
|
|
170
|
+
*/
|
|
171
|
+
declare const BottomSheetTrigger: react.ForwardRefExoticComponent<{
|
|
172
|
+
children?: react.ReactNode;
|
|
173
|
+
asChild?: boolean;
|
|
174
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
175
|
+
children?: react.ReactNode;
|
|
176
|
+
asChild?: boolean;
|
|
177
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<View>>;
|
|
178
|
+
|
|
179
|
+
declare const useBottomSheet: () => BottomSheetContextValue;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Only the **top** corners, and only they can be overridden.
|
|
183
|
+
*
|
|
184
|
+
* A sheet sits on the bottom edge of the screen, so its lower corners are off it. Rounding
|
|
185
|
+
* them would put two arcs against a straight edge nobody can see, and `radiusAxis` — which
|
|
186
|
+
* writes `borderRadius` — would round all four.
|
|
187
|
+
*/
|
|
188
|
+
declare function topCorners(radius: RadiusKey): (theme: XAUITheme) => {
|
|
189
|
+
content: {
|
|
190
|
+
borderTopStartRadius: number;
|
|
191
|
+
borderTopEndRadius: number;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
declare const bottomSheetRecipe: Recipe<"title" | "overlay" | "content" | "description" | "handle", "default", {
|
|
195
|
+
readonly radius: Record<RadiusKey, ReturnType<typeof topCorners>>;
|
|
196
|
+
}>;
|
|
197
|
+
|
|
198
|
+
declare const BottomSheet: typeof BottomSheet$1 & {
|
|
199
|
+
Trigger: react.ForwardRefExoticComponent<{
|
|
200
|
+
children?: react.ReactNode;
|
|
201
|
+
asChild?: boolean;
|
|
202
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
203
|
+
children?: react.ReactNode;
|
|
204
|
+
asChild?: boolean;
|
|
205
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<react_native.View>>;
|
|
206
|
+
Overlay: react.ForwardRefExoticComponent<{
|
|
207
|
+
children?: react.ReactNode;
|
|
208
|
+
isDismissable?: boolean;
|
|
209
|
+
} & Omit<react_native.ViewProps, keyof {
|
|
210
|
+
children?: react.ReactNode;
|
|
211
|
+
isDismissable?: boolean;
|
|
212
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDismissable"> & react.RefAttributes<react_native.View>>;
|
|
213
|
+
Content: typeof BottomSheetContent;
|
|
214
|
+
Handle: react.ForwardRefExoticComponent<Omit<react_native.ViewProps, "children"> & ViewStyleProps & react.RefAttributes<react_native.View>>;
|
|
215
|
+
Title: react.ForwardRefExoticComponent<{
|
|
216
|
+
children?: react.ReactNode;
|
|
217
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<react_native.Text>>;
|
|
218
|
+
Description: react.ForwardRefExoticComponent<{
|
|
219
|
+
children?: react.ReactNode;
|
|
220
|
+
} & Omit<react_native.TextProps, "children"> & Omit<TextStyleProps, keyof react_native.TextProps> & react.RefAttributes<react_native.Text>>;
|
|
221
|
+
Close: react.ForwardRefExoticComponent<{
|
|
222
|
+
children?: react.ReactNode;
|
|
223
|
+
asChild?: boolean;
|
|
224
|
+
} & Omit<react_native.PressableProps, keyof {
|
|
225
|
+
children?: react.ReactNode;
|
|
226
|
+
asChild?: boolean;
|
|
227
|
+
}> & Omit<ViewStyleProps, "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "disabled" | "onPress" | "onPressIn" | "onPressOut" | "onLongPress" | "delayLongPress" | "asChild" | "onHoverIn" | "onHoverOut" | "cancelable" | "delayHoverIn" | "delayHoverOut" | "pressRetentionOffset" | "android_disableSound" | "android_ripple" | "testOnly_pressed" | "unstable_pressDelay"> & react.RefAttributes<react_native.View>>;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
export { BottomSheet, BottomSheetClose, type BottomSheetCloseProps, BottomSheetContent, type BottomSheetContentProps, type BottomSheetContextValue, BottomSheetDescription, type BottomSheetDescriptionProps, BottomSheetHandle, type BottomSheetHandleProps, BottomSheetOverlay, type BottomSheetOverlayProps, type BottomSheetProps, BottomSheet$1 as BottomSheetRoot, type BottomSheetSlot, BottomSheetTitle, type BottomSheetTitleProps, BottomSheetTrigger, type BottomSheetTriggerProps, bottomSheetRecipe, useBottomSheet };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BottomSheet,
|
|
3
|
+
BottomSheet2,
|
|
4
|
+
BottomSheetClose,
|
|
5
|
+
BottomSheetContent,
|
|
6
|
+
BottomSheetDescription,
|
|
7
|
+
BottomSheetHandle,
|
|
8
|
+
BottomSheetOverlay,
|
|
9
|
+
BottomSheetTitle,
|
|
10
|
+
BottomSheetTrigger,
|
|
11
|
+
bottomSheetRecipe,
|
|
12
|
+
useBottomSheet
|
|
13
|
+
} from "../../chunk-J5WXI5NU.js";
|
|
14
|
+
import "../../chunk-2PMXMKS5.js";
|
|
15
|
+
import "../../chunk-64MXEVT3.js";
|
|
16
|
+
import "../../chunk-F6W3JQ7K.js";
|
|
17
|
+
import "../../chunk-LIUO6D3D.js";
|
|
18
|
+
import "../../chunk-423RQBOX.js";
|
|
19
|
+
import "../../chunk-EGLLDKN6.js";
|
|
20
|
+
import "../../chunk-K72UDPVN.js";
|
|
21
|
+
import "../../chunk-36PRYGAM.js";
|
|
22
|
+
import "../../chunk-4GTAZM2C.js";
|
|
23
|
+
import "../../chunk-A3EGFI6T.js";
|
|
24
|
+
import "../../chunk-M63GFNKV.js";
|
|
25
|
+
export {
|
|
26
|
+
BottomSheet2 as BottomSheet,
|
|
27
|
+
BottomSheetClose,
|
|
28
|
+
BottomSheetContent,
|
|
29
|
+
BottomSheetDescription,
|
|
30
|
+
BottomSheetHandle,
|
|
31
|
+
BottomSheetOverlay,
|
|
32
|
+
BottomSheet as BottomSheetRoot,
|
|
33
|
+
BottomSheetTitle,
|
|
34
|
+
BottomSheetTrigger,
|
|
35
|
+
bottomSheetRecipe,
|
|
36
|
+
useBottomSheet
|
|
37
|
+
};
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkNCCRQK3Pcjs = require('../../chunk-NCCRQK3P.cjs');
|
|
6
6
|
require('../../chunk-XSQPVDFH.cjs');
|
|
7
7
|
require('../../chunk-WFEMJCXO.cjs');
|
|
8
8
|
require('../../chunk-4KFKWBN5.cjs');
|
|
9
9
|
require('../../chunk-7EIHHOHP.cjs');
|
|
10
|
-
require('../../chunk-
|
|
10
|
+
require('../../chunk-TGMVEHV7.cjs');
|
|
11
11
|
require('../../chunk-7DPL3ZDS.cjs');
|
|
12
12
|
require('../../chunk-EJQCQPET.cjs');
|
|
13
|
-
require('../../chunk-FNEUOBCV.cjs');
|
|
14
|
-
require('../../chunk-57SJ4LJF.cjs');
|
|
15
13
|
require('../../chunk-7GHM4GKL.cjs');
|
|
16
14
|
require('../../chunk-H4E4HDEP.cjs');
|
|
15
|
+
require('../../chunk-FNEUOBCV.cjs');
|
|
16
|
+
require('../../chunk-57SJ4LJF.cjs');
|
|
17
17
|
require('../../chunk-TK44VBIE.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.Button =
|
|
22
|
+
exports.Button = _chunkNCCRQK3Pcjs.Button; exports.buttonRecipe = _chunkNCCRQK3Pcjs.buttonRecipe; exports.useButton = _chunkNCCRQK3Pcjs.useButton;
|