@oxyhq/bloom 0.46.0 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/bottom-sheet/BottomSheetBase.js +36 -12
- package/lib/commonjs/bottom-sheet/BottomSheetBase.js.map +1 -1
- package/lib/commonjs/combobox/Combobox.js +3 -3
- package/lib/commonjs/combobox/Combobox.js.map +1 -1
- package/lib/commonjs/command/Command.js +3 -3
- package/lib/commonjs/command/Command.js.map +1 -1
- package/lib/commonjs/dialog/Dialog.js +103 -8
- package/lib/commonjs/dialog/Dialog.js.map +1 -1
- package/lib/commonjs/dialog/Dialog.web.js +189 -12
- package/lib/commonjs/dialog/Dialog.web.js.map +1 -1
- package/lib/commonjs/dialog/DialogBottomSheet.js +111 -31
- package/lib/commonjs/dialog/DialogBottomSheet.js.map +1 -1
- package/lib/commonjs/dialog/DialogHeader.js +371 -0
- package/lib/commonjs/dialog/DialogHeader.js.map +1 -0
- package/lib/commonjs/dialog/DialogMorph.js +458 -0
- package/lib/commonjs/dialog/DialogMorph.js.map +1 -0
- package/lib/commonjs/dialog/index.js +14 -0
- package/lib/commonjs/dialog/index.js.map +1 -1
- package/lib/commonjs/dialog/index.web.js +14 -0
- package/lib/commonjs/dialog/index.web.js.map +1 -1
- package/lib/commonjs/index.js +11 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +11 -4
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/react-native-className.d.js +6 -0
- package/lib/commonjs/react-native-className.d.js.map +1 -0
- package/lib/commonjs/{search-input → search}/index.js +5 -3
- package/lib/commonjs/search/index.js.map +1 -0
- package/lib/commonjs/settings-list/SettingsList.js +6 -2
- package/lib/commonjs/settings-list/SettingsList.js.map +1 -1
- package/lib/commonjs/surfaces/SurfaceHost.js +23 -9
- package/lib/commonjs/surfaces/SurfaceHost.js.map +1 -1
- package/lib/commonjs/text-field/index.js +22 -6
- package/lib/commonjs/text-field/index.js.map +1 -1
- package/lib/module/bottom-sheet/BottomSheetBase.js +36 -12
- package/lib/module/bottom-sheet/BottomSheetBase.js.map +1 -1
- package/lib/module/combobox/Combobox.js +3 -3
- package/lib/module/combobox/Combobox.js.map +1 -1
- package/lib/module/command/Command.js +3 -3
- package/lib/module/command/Command.js.map +1 -1
- package/lib/module/dialog/Dialog.js +104 -9
- package/lib/module/dialog/Dialog.js.map +1 -1
- package/lib/module/dialog/Dialog.web.js +192 -16
- package/lib/module/dialog/Dialog.web.js.map +1 -1
- package/lib/module/dialog/DialogBottomSheet.js +113 -33
- package/lib/module/dialog/DialogBottomSheet.js.map +1 -1
- package/lib/module/dialog/DialogHeader.js +362 -0
- package/lib/module/dialog/DialogHeader.js.map +1 -0
- package/lib/module/dialog/DialogMorph.js +451 -0
- package/lib/module/dialog/DialogMorph.js.map +1 -0
- package/lib/module/dialog/index.js +2 -0
- package/lib/module/dialog/index.js.map +1 -1
- package/lib/module/dialog/index.web.js +2 -0
- package/lib/module/dialog/index.web.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +2 -2
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/react-native-className.d.js +20 -0
- package/lib/module/react-native-className.d.js.map +1 -0
- package/lib/module/{search-input → search}/index.js +6 -2
- package/lib/module/search/index.js.map +1 -0
- package/lib/module/settings-list/SettingsList.js +6 -2
- package/lib/module/settings-list/SettingsList.js.map +1 -1
- package/lib/module/surfaces/SurfaceHost.js +23 -9
- package/lib/module/surfaces/SurfaceHost.js.map +1 -1
- package/lib/module/text-field/index.js +22 -6
- package/lib/module/text-field/index.js.map +1 -1
- package/lib/typescript/commonjs/bottom-sheet/BottomSheetBase.d.ts +31 -1
- package/lib/typescript/commonjs/bottom-sheet/BottomSheetBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/combobox/Combobox.d.ts +1 -1
- package/lib/typescript/commonjs/command/Command.d.ts +1 -1
- package/lib/typescript/commonjs/dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/Dialog.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts +2 -2
- package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DialogHeader.d.ts +86 -0
- package/lib/typescript/commonjs/dialog/DialogHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DialogMorph.d.ts +150 -0
- package/lib/typescript/commonjs/dialog/DialogMorph.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/index.d.ts +4 -1
- package/lib/typescript/commonjs/dialog/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/index.web.d.ts +4 -1
- package/lib/typescript/commonjs/dialog/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/types.d.ts +105 -0
- package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/common.d.ts +1 -0
- package/lib/typescript/commonjs/icons/common.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +3 -3
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +3 -3
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/input-group/types.d.ts +1 -1
- package/lib/typescript/commonjs/{search-input → search}/index.d.ts +1 -1
- package/lib/typescript/commonjs/search/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/surfaces/SurfaceHost.d.ts.map +1 -1
- package/lib/typescript/commonjs/surfaces/types.d.ts +26 -1
- package/lib/typescript/commonjs/surfaces/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/text-field/index.d.ts +2 -1
- package/lib/typescript/commonjs/text-field/index.d.ts.map +1 -1
- package/lib/typescript/module/bottom-sheet/BottomSheetBase.d.ts +31 -1
- package/lib/typescript/module/bottom-sheet/BottomSheetBase.d.ts.map +1 -1
- package/lib/typescript/module/combobox/Combobox.d.ts +1 -1
- package/lib/typescript/module/command/Command.d.ts +1 -1
- package/lib/typescript/module/dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/module/dialog/Dialog.web.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DialogBottomSheet.d.ts +2 -2
- package/lib/typescript/module/dialog/DialogBottomSheet.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DialogHeader.d.ts +86 -0
- package/lib/typescript/module/dialog/DialogHeader.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DialogMorph.d.ts +150 -0
- package/lib/typescript/module/dialog/DialogMorph.d.ts.map +1 -0
- package/lib/typescript/module/dialog/index.d.ts +4 -1
- package/lib/typescript/module/dialog/index.d.ts.map +1 -1
- package/lib/typescript/module/dialog/index.web.d.ts +4 -1
- package/lib/typescript/module/dialog/index.web.d.ts.map +1 -1
- package/lib/typescript/module/dialog/types.d.ts +105 -0
- package/lib/typescript/module/dialog/types.d.ts.map +1 -1
- package/lib/typescript/module/icons/common.d.ts +1 -0
- package/lib/typescript/module/icons/common.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +3 -3
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +3 -3
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/input-group/types.d.ts +1 -1
- package/lib/typescript/module/{search-input → search}/index.d.ts +1 -1
- package/lib/typescript/module/search/index.d.ts.map +1 -0
- package/lib/typescript/module/surfaces/SurfaceHost.d.ts.map +1 -1
- package/lib/typescript/module/surfaces/types.d.ts +26 -1
- package/lib/typescript/module/surfaces/types.d.ts.map +1 -1
- package/lib/typescript/module/text-field/index.d.ts +2 -1
- package/lib/typescript/module/text-field/index.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/__tests__/BottomSheet.test.tsx +47 -0
- package/src/__tests__/DialogBottomSheet.test.tsx +30 -5
- package/src/__tests__/DialogMorph.test.tsx +230 -0
- package/src/bottom-sheet/BottomSheetBase.tsx +72 -11
- package/src/combobox/Combobox.tsx +3 -3
- package/src/command/Command.tsx +3 -3
- package/src/dialog/Dialog.tsx +111 -14
- package/src/dialog/Dialog.web.tsx +186 -25
- package/src/dialog/DialogBottomSheet.tsx +122 -30
- package/src/dialog/DialogHeader.tsx +429 -0
- package/src/dialog/DialogMorph.tsx +576 -0
- package/src/dialog/index.ts +4 -0
- package/src/dialog/index.web.ts +4 -0
- package/src/dialog/types.ts +106 -0
- package/src/index.ts +3 -1
- package/src/index.web.ts +3 -1
- package/src/input-group/types.ts +1 -1
- package/src/react-native-className.d.ts +38 -0
- package/src/{search-input → search}/index.tsx +8 -5
- package/src/settings-list/SettingsList.tsx +6 -2
- package/src/surfaces/SurfaceHost.tsx +17 -1
- package/src/surfaces/types.ts +26 -1
- package/src/text-field/index.tsx +24 -5
- package/lib/commonjs/search-input/index.js.map +0 -1
- package/lib/module/search-input/index.js.map +0 -1
- package/lib/typescript/commonjs/search-input/index.d.ts.map +0 -1
- package/lib/typescript/module/search-input/index.d.ts.map +0 -1
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { LayoutChangeEvent, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
/** Panel reshape duration (ms) between two content frames. */
|
|
4
|
+
export declare const DIALOG_MORPH_DURATION = 260;
|
|
5
|
+
/**
|
|
6
|
+
* Incoming-frame fade-in (ms). Deliberately shorter than the reshape so the new
|
|
7
|
+
* content has landed by the time the panel finishes settling.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DIALOG_MORPH_FADE_DURATION = 150;
|
|
10
|
+
/**
|
|
11
|
+
* The identity of the content currently rendered inside a Dialog surface,
|
|
12
|
+
* declared by that content via {@link useDialogFrame}.
|
|
13
|
+
*/
|
|
14
|
+
export interface DialogFrame {
|
|
15
|
+
/**
|
|
16
|
+
* Stable identity of the current content. A CHANGE while the surface stays
|
|
17
|
+
* open is what marks an in-place swap and triggers the morph.
|
|
18
|
+
*/
|
|
19
|
+
key: string;
|
|
20
|
+
/**
|
|
21
|
+
* Opt this frame OUT of the size morph — the panel keeps its normal sizing
|
|
22
|
+
* and the swap hard-cuts (the incoming content still fades in). Defaults to
|
|
23
|
+
* `true`. Use it for content that must not be resized into, e.g. a full-bleed
|
|
24
|
+
* picker that always fills the surface.
|
|
25
|
+
*/
|
|
26
|
+
morph?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* An EXPLICIT target size the panel morphs TO for this frame, instead of the
|
|
29
|
+
* measured natural height / the surface `maxWidth`. This is what lets an
|
|
30
|
+
* own-scroller frame (whose content owns its own scroll, so the panel cannot
|
|
31
|
+
* measure it) still GROW its container to a large declared size — the panel
|
|
32
|
+
* animates up to `height`/`maxWidth` on entry and back down when the next frame
|
|
33
|
+
* declares (or measures) a smaller size, while the frame's own list scrolls
|
|
34
|
+
* within. Both fields are px; either may be omitted (the omitted axis keeps its
|
|
35
|
+
* normal behaviour). `height` is clamped to the viewport; `maxWidth` is honoured
|
|
36
|
+
* only on width-varying placements (the centered card).
|
|
37
|
+
*/
|
|
38
|
+
size?: {
|
|
39
|
+
height?: number;
|
|
40
|
+
maxWidth?: number;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
type FrameHandler = (next: DialogFrame, previous: DialogFrame) => void;
|
|
44
|
+
/**
|
|
45
|
+
* The bridge between a surface's content (which knows WHEN it swapped) and the
|
|
46
|
+
* surface (which owns the panel). Deliberately not a React store: the surface
|
|
47
|
+
* does not need to re-render on a frame change — it drives shared values.
|
|
48
|
+
*/
|
|
49
|
+
export interface DialogFrameChannel {
|
|
50
|
+
/** Declare the frame currently rendered. Called from the content's layout phase. */
|
|
51
|
+
setFrame: (frame: DialogFrame) => void;
|
|
52
|
+
/** Register the surface's morph runner (fires on a KEY CHANGE — the animation). */
|
|
53
|
+
setHandler: (handler: FrameHandler) => () => void;
|
|
54
|
+
/**
|
|
55
|
+
* Register a listener that fires on EVERY `setFrame` (every render/layout, not
|
|
56
|
+
* only a key change). The surface uses it to keep the active frame's declared
|
|
57
|
+
* target size (its `size`) as DERIVED state, so the panel re-settles at that
|
|
58
|
+
* size after a placement swap re-lays it out (a swap does not change the key,
|
|
59
|
+
* so the key-change handler never re-runs). Fires immediately with the current
|
|
60
|
+
* frame on register so a freshly-mounted surface (a placement swap remounts it)
|
|
61
|
+
* picks up the active frame's size without waiting for the next render.
|
|
62
|
+
*/
|
|
63
|
+
setFrameListener: (listener: (frame: DialogFrame) => void) => () => void;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Declare the identity of the content currently rendered inside a Dialog
|
|
67
|
+
* surface. When the `key` changes while the surface stays open, the surface
|
|
68
|
+
* MORPHS its panel from the outgoing content's size to the incoming one's
|
|
69
|
+
* instead of hard-cutting.
|
|
70
|
+
*
|
|
71
|
+
* Called by the host that owns the surface's content (the SDK's `SurfaceScreen`
|
|
72
|
+
* declares `route#step`). No-op outside a morph-capable Dialog surface — a side
|
|
73
|
+
* sheet, or a plain confirm dialog — so a host can call it unconditionally.
|
|
74
|
+
*
|
|
75
|
+
* EXACTLY ONE host per surface may declare frames: two writers with different
|
|
76
|
+
* identities would each read the other's key as a swap and morph on every
|
|
77
|
+
* render. A screen that wants its own sub-views to morph must fold them into
|
|
78
|
+
* the surface host's key rather than declaring a second frame.
|
|
79
|
+
*/
|
|
80
|
+
export declare function useDialogFrame(frame: DialogFrame | null | undefined): void;
|
|
81
|
+
/** Options a surface passes when it wires up morphing for its panel. */
|
|
82
|
+
export interface DialogMorphOptions {
|
|
83
|
+
/** Surface-level enable — the `Dialog` `morph` prop (defaults to `true`). */
|
|
84
|
+
enabled: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Whether this surface can measure the NATURAL height of its content, i.e.
|
|
87
|
+
* whether the Dialog owns the scroll container (`scrollable !== false`). A
|
|
88
|
+
* surface whose content owns its own scroller also owns its own size, so
|
|
89
|
+
* there is nothing for the panel to measure — those surfaces cross-fade the
|
|
90
|
+
* incoming frame but never pin/resize the panel.
|
|
91
|
+
*/
|
|
92
|
+
measurable: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Hard upper bound (px) for the reshape target — pass the viewport height.
|
|
95
|
+
*
|
|
96
|
+
* This is deliberately NOT the panel's exact size cap: that cap is a
|
|
97
|
+
* percentage/inset mix which resolves differently per platform, and guessing
|
|
98
|
+
* it low leaves a visible snap when the pin is released. The panel's own
|
|
99
|
+
* `maxHeight` style already clamps the RENDERED height at every frame, so a
|
|
100
|
+
* target above the cap simply lands on the cap and releases onto it — the
|
|
101
|
+
* bound here only keeps the animation from chasing a runaway content height.
|
|
102
|
+
*/
|
|
103
|
+
maxHeight: number;
|
|
104
|
+
/**
|
|
105
|
+
* The panel's `maxWidth` (px) when the placement lets width vary (the centered
|
|
106
|
+
* card). A surface that changes it per frame gets a width morph alongside the
|
|
107
|
+
* height one. `undefined` on placements whose width is fixed.
|
|
108
|
+
*/
|
|
109
|
+
maxWidth?: number;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Wire size morphing into one Dialog surface. Returns the panel/content styles
|
|
113
|
+
* and the two measurement callbacks the surface must attach.
|
|
114
|
+
*
|
|
115
|
+
* While idle the panel style resolves to `height: 'auto'` — byte-for-byte the
|
|
116
|
+
* natural sizing every placement had before morphing existed — so first open,
|
|
117
|
+
* dismissal, and a responsive placement swap are untouched. The height is only
|
|
118
|
+
* driven for the ~260ms of an actual reshape, then released back to natural.
|
|
119
|
+
*
|
|
120
|
+
* A frame that declares an explicit `size` is different: that size is DERIVED
|
|
121
|
+
* state the panel rests at at EVERY layout (`declaredHeight`/`declaredMaxWidth`),
|
|
122
|
+
* not a one-shot animation target — so a placement swap (which re-lays the panel
|
|
123
|
+
* out WITHOUT a key change, so the animation never re-runs) still settles at the
|
|
124
|
+
* declared size instead of falling back to natural.
|
|
125
|
+
*/
|
|
126
|
+
export declare function useDialogMorph({ enabled, measurable, maxHeight, maxWidth, }: DialogMorphOptions): {
|
|
127
|
+
channel: DialogFrameChannel;
|
|
128
|
+
onPanelLayout: (event: LayoutChangeEvent) => void;
|
|
129
|
+
onContentLayout: (event: LayoutChangeEvent) => void;
|
|
130
|
+
panelStyle: ViewStyle;
|
|
131
|
+
contentStyle: ViewStyle;
|
|
132
|
+
};
|
|
133
|
+
export type DialogMorph = ReturnType<typeof useDialogMorph>;
|
|
134
|
+
/**
|
|
135
|
+
* Wraps a surface's content: publishes the frame channel to it (so it can
|
|
136
|
+
* declare swaps via {@link useDialogFrame}), measures the content's natural
|
|
137
|
+
* height, and carries the incoming-frame fade.
|
|
138
|
+
*
|
|
139
|
+
* MUST be rendered inside the surface's scroll content and MUST NOT be given a
|
|
140
|
+
* growing/stretching style: it is sized by its own content, which is what lets
|
|
141
|
+
* it report the incoming frame's natural height while the panel is still pinned
|
|
142
|
+
* at the outgoing one.
|
|
143
|
+
*/
|
|
144
|
+
export declare function DialogMorphContent({ morph, style, children, }: {
|
|
145
|
+
morph: DialogMorph;
|
|
146
|
+
style?: StyleProp<ViewStyle>;
|
|
147
|
+
children: React.ReactNode;
|
|
148
|
+
}): React.ReactElement;
|
|
149
|
+
export {};
|
|
150
|
+
//# sourceMappingURL=DialogMorph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DialogMorph.d.ts","sourceRoot":"","sources":["../../../../src/dialog/DialogMorph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAmC5E,8DAA8D;AAC9D,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,0BAA0B,MAAM,CAAC;AA8B9C;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;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,EAAE,WAAW,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,KAAK,CAAC,YAAY,CAQrB"}
|
|
@@ -2,6 +2,9 @@ export { Dialog, DIALOG_SHEET_BACKDROP_TESTID } from './Dialog';
|
|
|
2
2
|
export { BloomDialogProvider } from './BloomDialogProvider';
|
|
3
3
|
export { alert } from './alert';
|
|
4
4
|
export { useDialogContext, useDialogControl } from './context';
|
|
5
|
+
export { useDialogHeader } from './DialogHeader';
|
|
6
|
+
export { useDialogFrame } from './DialogMorph';
|
|
5
7
|
export type { AlertButton, AlertButtonStyle, } from './alert-store';
|
|
6
|
-
export type {
|
|
8
|
+
export type { DialogFrame } from './DialogMorph';
|
|
9
|
+
export type { DialogAction, DialogActionColor, DialogContextProps, DialogControlProps, DialogHeaderConfig, DialogInset, DialogPlacement, DialogProps, ResponsiveDialogPlacement, } from './types';
|
|
7
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC/D,YAAY,EACV,WAAW,EACX,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,WAAW,EACX,yBAAyB,GAC1B,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,YAAY,EACV,WAAW,EACX,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,WAAW,EACX,yBAAyB,GAC1B,MAAM,SAAS,CAAC"}
|
|
@@ -2,6 +2,9 @@ export { Dialog, BLOOM_DIALOG_CSS, DIALOG_SHEET_BACKDROP_TESTID } from './Dialog
|
|
|
2
2
|
export { BloomDialogProvider } from './BloomDialogProvider.web';
|
|
3
3
|
export { alert } from './alert';
|
|
4
4
|
export { useDialogContext, useDialogControl } from './context';
|
|
5
|
+
export { useDialogHeader } from './DialogHeader';
|
|
6
|
+
export { useDialogFrame } from './DialogMorph';
|
|
5
7
|
export type { AlertButton, AlertButtonStyle, } from './alert-store';
|
|
6
|
-
export type {
|
|
8
|
+
export type { DialogFrame } from './DialogMorph';
|
|
9
|
+
export type { DialogAction, DialogActionColor, DialogContextProps, DialogControlProps, DialogHeaderConfig, DialogInset, DialogPlacement, DialogProps, ResponsiveDialogPlacement, } from './types';
|
|
7
10
|
//# sourceMappingURL=index.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/dialog/index.web.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AACtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC/D,YAAY,EACV,WAAW,EACX,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,WAAW,EACX,yBAAyB,GAC1B,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/dialog/index.web.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAC;AACtF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,YAAY,EACV,WAAW,EACX,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,WAAW,EACX,yBAAyB,GAC1B,MAAM,SAAS,CAAC"}
|
|
@@ -1,6 +1,56 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
1
2
|
import type { GestureResponderEvent, StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
import type { ResponsiveDialogPlacement } from './placement';
|
|
3
4
|
export type { DialogPlacement, ResponsiveDialogPlacement } from './placement';
|
|
5
|
+
/**
|
|
6
|
+
* Config for the Dialog's OWN navigation header — a DISTINCT surface mode from
|
|
7
|
+
* the declarative `title`/`description`/`actions` centered-heading path. When
|
|
8
|
+
* present it turns the Dialog into a scrolling page with a sticky, gradient top
|
|
9
|
+
* bar (left + right slots) and a large collapsing title that lives in the
|
|
10
|
+
* Dialog's own scroll content; as the large title scrolls under the bar a small
|
|
11
|
+
* title cross-fades into the bar center. Screens render NO header of their own.
|
|
12
|
+
*
|
|
13
|
+
* A surface seeds this from its registry config; a mounted screen may override
|
|
14
|
+
* or augment any field at runtime via `useDialogHeader` (a dynamic title, a Save
|
|
15
|
+
* action on the right, etc.).
|
|
16
|
+
*/
|
|
17
|
+
export interface DialogHeaderConfig {
|
|
18
|
+
/** Collapsing title — rendered large in-content and small in the nav bar. */
|
|
19
|
+
title?: string;
|
|
20
|
+
/**
|
|
21
|
+
* A branded node rendered centered in the nav bar INSTEAD of the collapsing
|
|
22
|
+
* text title — e.g. a product wordmark. Always visible (it never collapses),
|
|
23
|
+
* and it suppresses the large in-content title/subtitle entirely, so the
|
|
24
|
+
* surface starts flush under the bar. `title`/`subtitle` are ignored while
|
|
25
|
+
* this is set. Must be referentially stable (memoize it) so the header does
|
|
26
|
+
* not thrash.
|
|
27
|
+
*/
|
|
28
|
+
titleContent?: ReactNode;
|
|
29
|
+
/** Supporting copy under the large title (and, optionally, in the bar). */
|
|
30
|
+
subtitle?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Whether to render the large collapsing title in the scroll content.
|
|
33
|
+
* Defaults to `true`. When `false`, only the small nav-bar title shows (always
|
|
34
|
+
* visible, no collapse) and the content starts flush under the bar.
|
|
35
|
+
*/
|
|
36
|
+
largeTitle?: boolean;
|
|
37
|
+
/** Custom left slot node. Overrides the default back button. */
|
|
38
|
+
left?: ReactNode;
|
|
39
|
+
/** Custom right slot node. Overrides the default close button. */
|
|
40
|
+
right?: ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* When set, the default left slot renders a back button that calls this. A
|
|
43
|
+
* custom `left` node still wins. Set by the surface host when the surface can
|
|
44
|
+
* navigate back.
|
|
45
|
+
*/
|
|
46
|
+
onBack?: () => void;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the default right slot renders a close button (dismiss). Defaults to
|
|
49
|
+
* `true`. A custom `right` node still wins. `false` suppresses the close
|
|
50
|
+
* affordance entirely (e.g. a blocking surface).
|
|
51
|
+
*/
|
|
52
|
+
showClose?: boolean;
|
|
53
|
+
}
|
|
4
54
|
/**
|
|
5
55
|
* Side-sheet inset (px) from the root overlay's edges. Lets a host place a
|
|
6
56
|
* `left`/`right` placement "inside its own shell" — e.g. offset from the top
|
|
@@ -125,6 +175,40 @@ export type DialogProps = React.PropsWithChildren<{
|
|
|
125
175
|
inset?: DialogInset;
|
|
126
176
|
/** Whether to render the drag handle in bottom-sheet mode. Defaults to `true`. */
|
|
127
177
|
showHandle?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Turns on the Dialog's OWN navigation header (see {@link DialogHeaderConfig}).
|
|
180
|
+
* When present the Dialog renders a sticky gradient nav bar + a large
|
|
181
|
+
* collapsing title over its own scroll content, and its content is inset below
|
|
182
|
+
* the bar — a DISTINCT mode from the declarative
|
|
183
|
+
* `title`/`description`/`actions` centered heading (a confirm/alert dialog
|
|
184
|
+
* passes NO `header` and is unchanged). Screens render no header of their own;
|
|
185
|
+
* the title/slots come from this config, refined at runtime by a mounted
|
|
186
|
+
* screen's `useDialogHeader` contribution.
|
|
187
|
+
*/
|
|
188
|
+
header?: DialogHeaderConfig;
|
|
189
|
+
/**
|
|
190
|
+
* Open-INTENT seed for a freshly-mounted placement branch, distinct from the
|
|
191
|
+
* controlled `open` prop. It ONLY seeds a branch's initial visible state on
|
|
192
|
+
* mount — it never switches the dialog into controlled close semantics, so
|
|
193
|
+
* the imperative `control.close()` still owns the exit animation and fires
|
|
194
|
+
* `onClose` post-exit (no synchronous-`onClose` entry leak). Set by the
|
|
195
|
+
* surface stack so a responsive `Dialog` that swaps its inner component across
|
|
196
|
+
* a breakpoint (centered card ↔ bottom sheet on resize) re-mounts the new
|
|
197
|
+
* branch ALREADY OPEN instead of blank. Ignored when the controlled `open`
|
|
198
|
+
* prop is provided (that path seeds itself).
|
|
199
|
+
*/
|
|
200
|
+
startOpen?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Whether the dialog wraps its content in an internal scroll container.
|
|
203
|
+
* Defaults to `true`. Set `false` when the content owns its own scrolling
|
|
204
|
+
* primitive (a `FlatList` / `SectionList` / any VirtualizedList, or its own
|
|
205
|
+
* `ScrollView`): the surface then renders children WITHOUT a ScrollView wrap —
|
|
206
|
+
* a bounded, overflow-clipped card on the centered/side placements and a
|
|
207
|
+
* non-scrollable `BottomSheet` body on the bottom placement — so the child
|
|
208
|
+
* gets a bounded height and owns its scroll, and no "VirtualizedList inside a
|
|
209
|
+
* plain ScrollView" warning is emitted.
|
|
210
|
+
*/
|
|
211
|
+
scrollable?: boolean;
|
|
128
212
|
/**
|
|
129
213
|
* Inner padding (px) of the dialog content container, applied uniformly across
|
|
130
214
|
* every placement (centered panel, side-sheet body, bottom-sheet body).
|
|
@@ -139,6 +223,27 @@ export type DialogProps = React.PropsWithChildren<{
|
|
|
139
223
|
contentPadding?: number;
|
|
140
224
|
/** Whether tapping the backdrop dismisses the dialog. Defaults to `true`. */
|
|
141
225
|
dismissOnBackdrop?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Whether the panel MORPHS across an in-place content swap. Defaults to
|
|
228
|
+
* `true`.
|
|
229
|
+
*
|
|
230
|
+
* When the content inside an OPEN dialog is replaced (a nav-within drill-in,
|
|
231
|
+
* as opposed to presenting a new surface on top), the panel animates from the
|
|
232
|
+
* outgoing content's size to the incoming one's while the incoming content
|
|
233
|
+
* fades in, instead of hard-cutting. The swap is signalled by the content
|
|
234
|
+
* itself through `useDialogFrame` — a dialog whose content never declares a
|
|
235
|
+
* frame is unaffected either way.
|
|
236
|
+
*
|
|
237
|
+
* The centered card morphs its height (about its centre) and its `maxWidth`;
|
|
238
|
+
* the bottom sheet morphs its height from its anchored edge; side sheets have
|
|
239
|
+
* fixed geometry and never morph. Morphing also requires the Dialog to own the
|
|
240
|
+
* scroll container: a `scrollable={false}` surface owns its own size, so its
|
|
241
|
+
* content only cross-fades.
|
|
242
|
+
*
|
|
243
|
+
* Set `false` for content that must never be resized into — e.g. a full-bleed
|
|
244
|
+
* picker that always fills the surface.
|
|
245
|
+
*/
|
|
246
|
+
morph?: boolean;
|
|
142
247
|
/**
|
|
143
248
|
* Style overrides applied to the inner content container on native (the
|
|
144
249
|
* floating bottom-sheet card) and to the modal panel on web.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/dialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE7D,YAAY,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE9E;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,kBA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A6E;IAC7E,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,mEAAmE;IACnE,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uEAAuE;IACvE,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,4EAA4E;IAC5E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
|
|
@@ -47,6 +47,7 @@ export declare function useCommonSVGProps(props: Props): {
|
|
|
47
47
|
nativeID?: string | undefined | undefined;
|
|
48
48
|
collapsable?: boolean | undefined | undefined;
|
|
49
49
|
collapsableChildren?: boolean | undefined | undefined;
|
|
50
|
+
className?: string | undefined;
|
|
50
51
|
onBlur?: ((e: import("react-native").BlurEvent) => void) | null | undefined | undefined;
|
|
51
52
|
onFocus?: ((e: import("react-native").FocusEvent) => void) | null | undefined | undefined;
|
|
52
53
|
renderToHardwareTextureAndroid?: boolean | undefined | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/icons/common.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAc,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC3F,OA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,CAAC,EAAE,MAAM,OAAO,KAAK,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC;CACnC,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,CAAC,CAAC;AAErC,eAAO,MAAM,KAAK;;;;;;;;;CASR,CAAC;AAEX,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC7C"}
|
|
@@ -16,8 +16,8 @@ export { useImagePreload, preloadImage } from './hooks/useImagePreload';
|
|
|
16
16
|
export * as Icons from './icons';
|
|
17
17
|
export { type Props as IconProps, sizes as iconSizes, useCommonSVGProps } from './icons/common';
|
|
18
18
|
export * from './portal';
|
|
19
|
-
export { Dialog, DIALOG_SHEET_BACKDROP_TESTID, BloomDialogProvider, alert, useDialogContext, useDialogControl, } from './dialog';
|
|
20
|
-
export type { AlertButton, AlertButtonStyle, DialogAction, DialogActionColor, DialogContextProps, DialogControlProps, DialogInset, DialogPlacement, DialogProps, ResponsiveDialogPlacement, } from './dialog';
|
|
19
|
+
export { Dialog, DIALOG_SHEET_BACKDROP_TESTID, BloomDialogProvider, alert, useDialogContext, useDialogControl, useDialogHeader, } from './dialog';
|
|
20
|
+
export type { AlertButton, AlertButtonStyle, DialogAction, DialogActionColor, DialogContextProps, DialogControlProps, DialogHeaderConfig, DialogInset, DialogPlacement, DialogProps, ResponsiveDialogPlacement, } from './dialog';
|
|
21
21
|
export { surfaces, SurfaceProvider, SurfaceHost, useSurface } from './surfaces';
|
|
22
22
|
export type { SurfacePresentation, PresentOptions, SurfaceControls, SurfaceRenderFn, SurfaceStatus, SurfaceEntry, SurfaceConfirmOptions, SurfacePromptOptions, } from './surfaces';
|
|
23
23
|
export * from './button';
|
|
@@ -63,7 +63,7 @@ export { AnimatedCheck } from './animated-check';
|
|
|
63
63
|
export type { AnimatedCheckProps, AnimatedCheckRef } from './animated-check';
|
|
64
64
|
export * from './text-field';
|
|
65
65
|
export * from './segmented-control';
|
|
66
|
-
export {
|
|
66
|
+
export { Search } from './search';
|
|
67
67
|
export { Label } from './label';
|
|
68
68
|
export type { LabelProps } from './label';
|
|
69
69
|
export { Field } from './field';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC7D,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKhF,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,UAAU,EACV,UAAU,EACV,YAAY,EACZ,OAAO,EACP,MAAM,EACN,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,cAAc,EACd,yBAAyB,EACzB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,QAAQ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M,oBAAoB,CAAC;AAClE,YAAY,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AAGxB,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGtC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACvE,YAAY,EACV,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG3D,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAG/B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
|
|
@@ -16,8 +16,8 @@ export { useImagePreload, preloadImage } from './hooks/useImagePreload';
|
|
|
16
16
|
export * as Icons from './icons';
|
|
17
17
|
export { type Props as IconProps, sizes as iconSizes, useCommonSVGProps } from './icons/common';
|
|
18
18
|
export * from './portal/index.web';
|
|
19
|
-
export { Dialog, DIALOG_SHEET_BACKDROP_TESTID, BloomDialogProvider, alert, useDialogContext, useDialogControl, } from './dialog/index.web';
|
|
20
|
-
export type { AlertButton, AlertButtonStyle, DialogAction, DialogActionColor, DialogContextProps, DialogControlProps, DialogInset, DialogPlacement, DialogProps, ResponsiveDialogPlacement, } from './dialog/index.web';
|
|
19
|
+
export { Dialog, DIALOG_SHEET_BACKDROP_TESTID, BloomDialogProvider, alert, useDialogContext, useDialogControl, useDialogHeader, } from './dialog/index.web';
|
|
20
|
+
export type { AlertButton, AlertButtonStyle, DialogAction, DialogActionColor, DialogContextProps, DialogControlProps, DialogHeaderConfig, DialogInset, DialogPlacement, DialogProps, ResponsiveDialogPlacement, } from './dialog/index.web';
|
|
21
21
|
export { surfaces, SurfaceProvider, SurfaceHost, useSurface } from './surfaces/index.web';
|
|
22
22
|
export type { SurfacePresentation, PresentOptions, SurfaceControls, SurfaceRenderFn, SurfaceStatus, SurfaceEntry, SurfaceConfirmOptions, SurfacePromptOptions, } from './surfaces/index.web';
|
|
23
23
|
export * from './button/index.web';
|
|
@@ -63,7 +63,7 @@ export { AnimatedCheck } from './animated-check';
|
|
|
63
63
|
export type { AnimatedCheckProps, AnimatedCheckRef } from './animated-check';
|
|
64
64
|
export * from './text-field';
|
|
65
65
|
export * from './segmented-control';
|
|
66
|
-
export {
|
|
66
|
+
export { Search } from './search';
|
|
67
67
|
export { Label } from './label';
|
|
68
68
|
export type { LabelProps } from './label';
|
|
69
69
|
export { Field } from './field';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../src/index.web.ts"],"names":[],"mappings":"AAMA,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC7D,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,EAA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9C,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGrE,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAG/B,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC"}
|
|
@@ -19,7 +19,7 @@ export interface InputGroupAddonProps {
|
|
|
19
19
|
export interface InputGroupProps {
|
|
20
20
|
/**
|
|
21
21
|
* Group children. Place `InputGroup.Addon` elements before/after the input
|
|
22
|
-
* (a Bloom `TextFieldInput`, a `
|
|
22
|
+
* (a Bloom `TextFieldInput`, a `Search`, or any control). The middle
|
|
23
23
|
* child stretches to fill.
|
|
24
24
|
*/
|
|
25
25
|
children: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type TextInput } from 'react-native';
|
|
2
2
|
import { type TextFieldInputProps } from '../text-field';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const Search: import("react").ForwardRefExoticComponent<Omit<TextFieldInputProps, "label"> & {
|
|
4
4
|
label?: TextFieldInputProps["label"];
|
|
5
5
|
/**
|
|
6
6
|
* Called when the user presses the clear (X) button.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/search/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,SAAS,EAAQ,MAAM,cAAc,CAAC;AAK9D,OAAO,EAA4C,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAenG,eAAO,MAAM,MAAM;YAPT,mBAAmB,CAAC,OAAO,CAAC;IACpC;;OAEG;kBACW,MAAM,IAAI;6CAwDzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SurfaceHost.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/SurfaceHost.tsx"],"names":[],"mappings":"AAAA,OAAO,KAKN,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAYnD,KAAK,eAAe,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"SurfaceHost.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/SurfaceHost.tsx"],"names":[],"mappings":"AAAA,OAAO,KAKN,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAYnD,KAAK,eAAe,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;AAgCxD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe;;;;;;uBAqGhB;YAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;SAAE;;;EAcrE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import type { DialogInset, ResponsiveDialogPlacement } from '../dialog/types';
|
|
3
|
+
import type { DialogHeaderConfig, DialogInset, ResponsiveDialogPlacement } from '../dialog/types';
|
|
4
4
|
/**
|
|
5
5
|
* How a surface renders — the placement + the `Dialog` sizing/chrome options a
|
|
6
6
|
* surface needs. This is the CONTENT-AGNOSTIC presentation config: it never
|
|
@@ -37,6 +37,31 @@ export interface SurfacePresentation {
|
|
|
37
37
|
dismissOnBackdrop?: boolean;
|
|
38
38
|
/** Inner padding (px) of the surface content container. Forwarded to `Dialog`. */
|
|
39
39
|
contentPadding?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Turns on the Dialog's OWN navigation header for this surface (sticky gradient
|
|
42
|
+
* nav bar + large collapsing title over the surface's scroll content). Seeds
|
|
43
|
+
* the header content; a mounted screen refines it at runtime via
|
|
44
|
+
* `useDialogHeader`. Omit for a plain surface (a confirm/alert dialog). Forwarded
|
|
45
|
+
* to `Dialog`.
|
|
46
|
+
*/
|
|
47
|
+
header?: DialogHeaderConfig;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the surface wraps its content in an internal scroll container.
|
|
50
|
+
* Defaults to `true`. Set `false` when the surface's content owns its own
|
|
51
|
+
* scrolling primitive (a `FlatList` / `SectionList` / VirtualizedList, or its
|
|
52
|
+
* own `ScrollView`) so the host does not nest it in a ScrollView. Forwarded
|
|
53
|
+
* to `Dialog`.
|
|
54
|
+
*/
|
|
55
|
+
scrollable?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the surface MORPHS its panel when its content is swapped in place —
|
|
58
|
+
* navigation WITHIN this surface, as opposed to presenting a new surface on
|
|
59
|
+
* top. Defaults to `true`. The content signals the swap through
|
|
60
|
+
* `useDialogFrame`; a surface whose content never declares a frame is
|
|
61
|
+
* unaffected. Set `false` for content that must never be resized into (a
|
|
62
|
+
* full-bleed picker). Forwarded to `Dialog`.
|
|
63
|
+
*/
|
|
64
|
+
morph?: boolean;
|
|
40
65
|
/** Style overrides applied to the inner content container. */
|
|
41
66
|
style?: StyleProp<ViewStyle>;
|
|
42
67
|
/** Style overrides for the side/bottom placement panel surface. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,iBAA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CAAC;IACrB,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kDAAkD;IAClD,SAAS,CAAC,EAAE,yBAAyB,CAAC;CACvC"}
|
|
@@ -3,8 +3,9 @@ import { type TextStyleProp, type ViewStyleProp } from '../styles';
|
|
|
3
3
|
import { type Props as SVGIconProps } from '../icons/common';
|
|
4
4
|
export type TextFieldProps = React.PropsWithChildren<{
|
|
5
5
|
isInvalid?: boolean;
|
|
6
|
+
radius?: number;
|
|
6
7
|
} & ViewStyleProp>;
|
|
7
|
-
export declare function TextField({ children, isInvalid, style }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function TextField({ children, isInvalid, radius, style }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export declare function useSharedInputStyles(): {
|
|
9
10
|
chromeHover: ViewStyle;
|
|
10
11
|
chromeFocus: ViewStyle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/text-field/index.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,kBAAkB,EAIvB,SAAS,EACT,KAAK,cAAc,EAGnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAMtB,OAAO,EAML,KAAK,aAAa,EAClB,KAAK,aAAa,EACnB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAkB,KAAK,KAAK,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/text-field/index.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,kBAAkB,E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cAAc,CAAC,EAC7B,QAAQ,EACR,QAAQ,GACT,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,2CAchD;AAED,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAA;CAAE,2CA8BxF;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,KAAK,EACL,iBAAiB,EACjB,KAAK,GACN,EAAE,KAAK,CAAC,iBAAiB,CACxB,aAAa,GAAG;IACd,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;CAC7D,CACF,2CAqBA;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,2CAkDA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { type ViewStyle, type StyleProp } from 'react-native';
|
|
2
|
+
import { type LayoutChangeEvent, type ViewStyle, type StyleProp } from 'react-native';
|
|
3
3
|
import { type SharedValue } from 'react-native-reanimated';
|
|
4
4
|
export interface BottomSheetRef {
|
|
5
5
|
present: () => void;
|
|
@@ -11,6 +11,16 @@ export interface BottomSheetRef {
|
|
|
11
11
|
}
|
|
12
12
|
export interface BottomSheetProps {
|
|
13
13
|
children: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Controlled open state. When provided, the sheet mounts already-open if
|
|
16
|
+
* `true` (seeding its internal visible/rendered state) instead of relying on
|
|
17
|
+
* an imperative `present()` after mount. This is what makes a responsive
|
|
18
|
+
* `Dialog` survive a placement swap (centered card ↔ bottom sheet on resize):
|
|
19
|
+
* the freshly-mounted sheet is visible on its first commit, with no
|
|
20
|
+
* present()-in-effect race that would otherwise leave it blank. Omit for the
|
|
21
|
+
* purely imperative `present()`/`dismiss()` API.
|
|
22
|
+
*/
|
|
23
|
+
open?: boolean;
|
|
14
24
|
onDismiss?: () => void;
|
|
15
25
|
enablePanDownToClose?: boolean;
|
|
16
26
|
backgroundComponent?: (props: {
|
|
@@ -89,6 +99,26 @@ export interface BottomSheetProps {
|
|
|
89
99
|
* `showHandle` is `true`.
|
|
90
100
|
*/
|
|
91
101
|
handleComponent?: () => React.ReactNode;
|
|
102
|
+
/**
|
|
103
|
+
* External shared value the internal scroll handler mirrors the content
|
|
104
|
+
* offset into (in addition to its own gesture-gating offset). Lets a host —
|
|
105
|
+
* e.g. a Dialog nav-header — drive a collapse from the sheet's OWN scroller
|
|
106
|
+
* without owning the ScrollView. Optional; the standalone sheet ignores it.
|
|
107
|
+
*/
|
|
108
|
+
scrollY?: SharedValue<number>;
|
|
109
|
+
/**
|
|
110
|
+
* Overlay slot rendered absolutely at the TOP of the sheet card, painted
|
|
111
|
+
* above the scrolling body (clipped to the sheet's rounded top). Used by the
|
|
112
|
+
* Dialog to float its sticky nav header over the sheet's scroll content.
|
|
113
|
+
*/
|
|
114
|
+
headerOverlay?: React.ReactNode;
|
|
115
|
+
/**
|
|
116
|
+
* Layout callback for the SHEET CARD — the same box `style` targets. Lets a
|
|
117
|
+
* host observe the card's rendered size (the Dialog measures it to morph the
|
|
118
|
+
* sheet between two content frames). Fires on every size change, including
|
|
119
|
+
* while a host animates the card's height.
|
|
120
|
+
*/
|
|
121
|
+
onLayout?: (event: LayoutChangeEvent) => void;
|
|
92
122
|
}
|
|
93
123
|
/**
|
|
94
124
|
* Props consumed by a platform Shell — the outermost wrapper that hosts the
|