@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheetBase.d.ts","sourceRoot":"","sources":["../../../../src/bottom-sheet/BottomSheetBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAMH,KAAK,SAAS,EACd,KAAK,SAAS,EACjB,MAAM,cAAc,CAAC;AAGtB,OAAiB,EAGb,KAAK,WAAW,EAMnB,MAAM,yBAAyB,CAAC;AAwBjC,MAAM,WAAW,cAAc;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAA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;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;;;;;OAUG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;;;;;;;;OAcG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IACxC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACjD;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,qBAAqB;IAClC,kEAAkE;IAClE,OAAO,EAAE,OAAO,CAAC;IACjB,gFAAgF;IAChF,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B;;;OAGG;IACH,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC1D,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACrD;AAED,eAAO,MAAM,eAAe,6FAmmB1B,CAAC"}
|
|
@@ -21,7 +21,7 @@ interface PopoverModule {
|
|
|
21
21
|
* `.web` resolution. The combobox logic is single-source.
|
|
22
22
|
*
|
|
23
23
|
* `Combobox` is a filterable autocomplete select that delegates its overlay to
|
|
24
|
-
* Bloom's `Popover` and composes `
|
|
24
|
+
* Bloom's `Popover` and composes `Search` + `Item`. The trigger + panel
|
|
25
25
|
* read the overlay control from `Popover` context (via an inner component) so
|
|
26
26
|
* selecting an option reliably closes the overlay on every platform.
|
|
27
27
|
*/
|
|
@@ -9,7 +9,7 @@ type DialogComponent = React.ComponentType<DialogProps>;
|
|
|
9
9
|
* relies on implicit `.web` resolution. The body is single-source.
|
|
10
10
|
*
|
|
11
11
|
* `Command` is a ⌘K command palette built on `<Dialog placement="center">`,
|
|
12
|
-
* `
|
|
12
|
+
* `Search`, an `Item` results list and `Kbd` shortcut hints. Items group
|
|
13
13
|
* by their `group` field (ungrouped first). On web the list is
|
|
14
14
|
* keyboard-navigable (Up/Down/Enter); on native, tap to select.
|
|
15
15
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/dialog/Dialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/dialog/Dialog.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAIL,4BAA4B,EAK7B,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,YAAY,EAGZ,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,4BAA4B,EAAE,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,EACrB,SAAS,EACT,GAAG,IAAI,EACR,EAAE,WAAW,2CAab;AAwfD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,WAAW,EACX,OAAO,EACP,SAAS,GACV,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,2CAoBA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.web.d.ts","sourceRoot":"","sources":["../../../../src/dialog/Dialog.web.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dialog.web.d.ts","sourceRoot":"","sources":["../../../../src/dialog/Dialog.web.tsx"],"names":[],"mappings":"AAmCA,OAAO,EAOL,4BAA4B,EAM7B,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,YAAY,EAGZ,WAAW,EACZ,MAAM,SAAS,CAAC;AAqCjB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,2CAazD;AAiaD,OAAO,EAAE,4BAA4B,EAAE,CAAC;AAsQxC;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,KAAK,EACL,WAAW,EACX,OAAO,EACP,SAAS,GACV,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,2CAgBA;AA8BD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,gBAAgB,mZAK5B,CAAC"}
|
|
@@ -19,11 +19,11 @@ import type { DialogProps } from './types';
|
|
|
19
19
|
* so a host's CSS-var theme scope (`vars()`) still applies to descendants
|
|
20
20
|
* - `title` / `description` / `actions` / `children` → declarative body
|
|
21
21
|
*/
|
|
22
|
-
export declare function DialogBottomSheet({ control, open: controlledOpen, onClose, testID, title, description, actions, maxHeightRatio, showHandle, dismissOnBackdrop, contentPadding, style, panelStyle, panelClassName, containerStyle, containerClassName, label, children, }: DialogBottomSheetProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function DialogBottomSheet({ control, open: controlledOpen, startOpen, onClose, testID, title, description, actions, header, maxHeightRatio, showHandle, dismissOnBackdrop, contentPadding, scrollable, morph, style, panelStyle, panelClassName, containerStyle, containerClassName, label, children, }: DialogBottomSheetProps): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
/**
|
|
24
24
|
* Props the shared bottom-sheet surface consumes — the `bottom`-relevant subset
|
|
25
25
|
* of `DialogProps`. `width`, `maxWidth`, and `inset` are placement-specific to
|
|
26
26
|
* the side/centered surfaces and intentionally excluded.
|
|
27
27
|
*/
|
|
28
|
-
export type DialogBottomSheetProps = Pick<DialogProps, 'control' | 'open' | 'onClose' | 'testID' | 'title' | 'description' | 'actions' | 'maxHeightRatio' | 'showHandle' | 'dismissOnBackdrop' | 'contentPadding' | 'style' | 'panelStyle' | 'panelClassName' | 'containerStyle' | 'containerClassName' | 'label' | 'children'>;
|
|
28
|
+
export type DialogBottomSheetProps = Pick<DialogProps, 'control' | 'open' | 'startOpen' | 'onClose' | 'testID' | 'title' | 'description' | 'actions' | 'header' | 'maxHeightRatio' | 'showHandle' | 'dismissOnBackdrop' | 'contentPadding' | 'scrollable' | 'morph' | 'style' | 'panelStyle' | 'panelClassName' | 'containerStyle' | 'containerClassName' | 'label' | 'children'>;
|
|
29
29
|
//# sourceMappingURL=DialogBottomSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogBottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/dialog/DialogBottomSheet.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DialogBottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/dialog/DialogBottomSheet.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAsB,WAAW,EAAE,MAAM,SAAS,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,IAAI,EAAE,cAAc,EACpB,SAAS,EACT,OAAO,EACP,MAAM,EACN,KAAK,EACL,WAAW,EACX,OAAO,EACP,MAAM,EACN,cAAyC,EACzC,UAAiB,EACjB,iBAAwB,EACxB,cAA+C,EAC/C,UAAU,EACV,KAAK,EACL,KAAK,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,KAAK,EACL,QAAQ,GACT,EAAE,sBAAsB,2CAmPxB;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CACvC,WAAW,EACT,SAAS,GACT,MAAM,GACN,WAAW,GACX,SAAS,GACT,QAAQ,GACR,OAAO,GACP,aAAa,GACb,SAAS,GACT,QAAQ,GACR,gBAAgB,GAChB,YAAY,GACZ,mBAAmB,GACnB,gBAAgB,GAChB,YAAY,GACZ,OAAO,GACP,OAAO,GACP,YAAY,GACZ,gBAAgB,GAChB,gBAAgB,GAChB,oBAAoB,GACpB,OAAO,GACP,UAAU,CACb,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import { type SharedValue } from 'react-native-reanimated';
|
|
4
|
+
import type { DialogHeaderConfig } from './types';
|
|
5
|
+
export type { DialogHeaderConfig } from './types';
|
|
6
|
+
/** Interactive nav-bar row height (px). Buttons + collapsed title live here. */
|
|
7
|
+
export declare const DIALOG_NAV_BAR_HEIGHT = 52;
|
|
8
|
+
/** Total gradient overlay height (bar + fade tail). */
|
|
9
|
+
export declare const DIALOG_HEADER_OVERLAY_HEIGHT: number;
|
|
10
|
+
/**
|
|
11
|
+
* Top inset applied to the Dialog's scroll content so the large title starts
|
|
12
|
+
* BELOW the whole gradient overlay (fully clear at rest, then scrolls under it).
|
|
13
|
+
*/
|
|
14
|
+
export declare const DIALOG_HEADER_CONTENT_TOP: number;
|
|
15
|
+
interface HeaderStore {
|
|
16
|
+
getSnapshot: () => DialogHeaderConfig | null;
|
|
17
|
+
setOverride: (next: DialogHeaderConfig | null) => void;
|
|
18
|
+
subscribe: (listener: () => void) => () => void;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The per-surface header controller — the scroll offset + measured large-title
|
|
22
|
+
* height shared values plus the runtime-override store. Created once per Dialog
|
|
23
|
+
* (via {@link useDialogHeaderController}) and threaded into the scroller (writes
|
|
24
|
+
* `scrollY`), the nav bar, the large title, and the child provider.
|
|
25
|
+
*/
|
|
26
|
+
export interface DialogHeaderController {
|
|
27
|
+
scrollY: SharedValue<number>;
|
|
28
|
+
largeTitleHeight: SharedValue<number>;
|
|
29
|
+
store: HeaderStore;
|
|
30
|
+
}
|
|
31
|
+
/** Create the header controller for one Dialog. Stable for the Dialog's life. */
|
|
32
|
+
export declare function useDialogHeaderController(): DialogHeaderController;
|
|
33
|
+
/**
|
|
34
|
+
* Wraps the Dialog's scroll content so a mounted screen can contribute header
|
|
35
|
+
* slots via {@link useDialogHeader}. Only the child subtree needs this — the nav
|
|
36
|
+
* bar and large title read the same controller directly.
|
|
37
|
+
*/
|
|
38
|
+
export declare function DialogHeaderProvider({ controller, children, }: {
|
|
39
|
+
controller: DialogHeaderController;
|
|
40
|
+
children: React.ReactNode;
|
|
41
|
+
}): React.ReactElement;
|
|
42
|
+
/**
|
|
43
|
+
* Contribute header content from within a Dialog surface — a dynamic title, a
|
|
44
|
+
* Save action, custom slots. Merges over the surface's static (registry) header
|
|
45
|
+
* config; unmounting clears the contribution. Slot nodes (`left`/`right`) MUST
|
|
46
|
+
* be referentially stable (memoize them) so the effect does not thrash.
|
|
47
|
+
*
|
|
48
|
+
* No-op outside a header-mode Dialog (e.g. a confirm dialog), so a screen can
|
|
49
|
+
* call it unconditionally.
|
|
50
|
+
*/
|
|
51
|
+
export declare function useDialogHeader(config: DialogHeaderConfig | null | undefined): void;
|
|
52
|
+
/**
|
|
53
|
+
* The sticky nav bar: gradient background + left / center (collapsing title) /
|
|
54
|
+
* right slots. Absolutely positioned at the top of the Dialog surface, painted
|
|
55
|
+
* ABOVE the scroll content. Reads the scroll offset to cross-fade the small
|
|
56
|
+
* title in as the large title scrolls under it.
|
|
57
|
+
*
|
|
58
|
+
* `onDismiss` is the Dialog's own close (the default right-slot close button
|
|
59
|
+
* calls it) — passed explicitly rather than read from the dialog context because
|
|
60
|
+
* the bar is rendered as a sibling of the scroller, outside that context on the
|
|
61
|
+
* bottom-sheet path.
|
|
62
|
+
*/
|
|
63
|
+
export declare const DialogNavHeader: React.NamedExoticComponent<{
|
|
64
|
+
controller: DialogHeaderController;
|
|
65
|
+
header: DialogHeaderConfig;
|
|
66
|
+
onDismiss: () => void;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the small title cross-fades in on scroll (paired with an in-content
|
|
69
|
+
* {@link DialogLargeTitle}). Defaults to `true`. Set `false` for a surface
|
|
70
|
+
* whose content owns its own scroller (no Dialog scroll offset to drive the
|
|
71
|
+
* collapse): the small title is then always visible — a plain titled nav bar.
|
|
72
|
+
*/
|
|
73
|
+
collapse?: boolean;
|
|
74
|
+
style?: StyleProp<ViewStyle>;
|
|
75
|
+
}>;
|
|
76
|
+
/**
|
|
77
|
+
* The large collapsing title, rendered at the TOP of the Dialog's scroll content
|
|
78
|
+
* (before the screen body). Owns the content top inset (so the title starts
|
|
79
|
+
* below the gradient overlay) and measures its own text height into the
|
|
80
|
+
* controller so the nav bar knows when to cross-fade the small title in.
|
|
81
|
+
*/
|
|
82
|
+
export declare const DialogLargeTitle: React.NamedExoticComponent<{
|
|
83
|
+
controller: DialogHeaderController;
|
|
84
|
+
header: DialogHeaderConfig;
|
|
85
|
+
}>;
|
|
86
|
+
//# sourceMappingURL=DialogHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DialogHeader.d.ts","sourceRoot":"","sources":["../../../../src/dialog/DialogHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AACf,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAiB,EAKf,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAC;AASjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAiBlD,gFAAgF;AAChF,eAAO,MAAM,qBAAq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le } 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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AC;IACjB;;;;;;OAMG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;;;;;;;OASG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,UAAU,EACV,SAAS,EACT,QAAQ,GACT,EAAE,kBAAkB;;2BAoOT,iBAAiB;6BAcjB,iBAAiB;;;EAmD5B;AAED,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,KAAK,EACL,QAAQ,GACT,EAAE;IACD,KAAK,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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
|
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,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIjE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C;;;;;;;;;;GAUG;AACH,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG;IAAE,KAAK,CAAC,EAAE,UAAU,CAAA;CAAE,CAAC;AAE3D,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,IAAI,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
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/icons/common.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,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reload';
|
|
|
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;AAC3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AChB,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,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,EACR,YAAY,EACZ,UAAU,GACX,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AACtE,YAAY,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;A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