@oxyhq/bloom 0.14.0 → 0.15.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.
Files changed (144) hide show
  1. package/lib/commonjs/dialog/CenteredDialog.js +2 -0
  2. package/lib/commonjs/dialog/CenteredDialog.js.map +1 -1
  3. package/lib/commonjs/dialog/CenteredDialog.web.js +2 -0
  4. package/lib/commonjs/dialog/CenteredDialog.web.js.map +1 -1
  5. package/lib/commonjs/dialog/Dialog.js +337 -43
  6. package/lib/commonjs/dialog/Dialog.js.map +1 -1
  7. package/lib/commonjs/dialog/Dialog.web.js +414 -63
  8. package/lib/commonjs/dialog/Dialog.web.js.map +1 -1
  9. package/lib/commonjs/dialog/index.js +6 -0
  10. package/lib/commonjs/dialog/index.js.map +1 -1
  11. package/lib/commonjs/dialog/index.web.js +6 -0
  12. package/lib/commonjs/dialog/index.web.js.map +1 -1
  13. package/lib/commonjs/dialog/placement.js +104 -0
  14. package/lib/commonjs/dialog/placement.js.map +1 -0
  15. package/lib/commonjs/index.js +7 -0
  16. package/lib/commonjs/index.js.map +1 -1
  17. package/lib/commonjs/index.web.js +7 -0
  18. package/lib/commonjs/index.web.js.map +1 -1
  19. package/lib/commonjs/responsive-sheet/ResponsiveSheet.js +63 -266
  20. package/lib/commonjs/responsive-sheet/ResponsiveSheet.js.map +1 -1
  21. package/lib/commonjs/responsive-sheet/ResponsiveSheet.web.js +84 -0
  22. package/lib/commonjs/responsive-sheet/ResponsiveSheet.web.js.map +1 -0
  23. package/lib/commonjs/responsive-sheet/index.web.js +3 -3
  24. package/lib/commonjs/responsive-sheet/index.web.js.map +1 -1
  25. package/lib/module/dialog/CenteredDialog.js +2 -0
  26. package/lib/module/dialog/CenteredDialog.js.map +1 -1
  27. package/lib/module/dialog/CenteredDialog.web.js +2 -0
  28. package/lib/module/dialog/CenteredDialog.web.js.map +1 -1
  29. package/lib/module/dialog/Dialog.js +336 -46
  30. package/lib/module/dialog/Dialog.js.map +1 -1
  31. package/lib/module/dialog/Dialog.web.js +412 -65
  32. package/lib/module/dialog/Dialog.web.js.map +1 -1
  33. package/lib/module/dialog/index.js +1 -1
  34. package/lib/module/dialog/index.js.map +1 -1
  35. package/lib/module/dialog/index.web.js +1 -1
  36. package/lib/module/dialog/index.web.js.map +1 -1
  37. package/lib/module/dialog/placement.js +100 -0
  38. package/lib/module/dialog/placement.js.map +1 -0
  39. package/lib/module/index.js +1 -1
  40. package/lib/module/index.js.map +1 -1
  41. package/lib/module/index.web.js +1 -1
  42. package/lib/module/index.web.js.map +1 -1
  43. package/lib/module/responsive-sheet/ResponsiveSheet.js +63 -266
  44. package/lib/module/responsive-sheet/ResponsiveSheet.js.map +1 -1
  45. package/lib/module/responsive-sheet/ResponsiveSheet.web.js +77 -0
  46. package/lib/module/responsive-sheet/ResponsiveSheet.web.js.map +1 -0
  47. package/lib/module/responsive-sheet/index.web.js +7 -9
  48. package/lib/module/responsive-sheet/index.web.js.map +1 -1
  49. package/lib/typescript/commonjs/dialog/CenteredDialog.d.ts +2 -0
  50. package/lib/typescript/commonjs/dialog/CenteredDialog.d.ts.map +1 -1
  51. package/lib/typescript/commonjs/dialog/CenteredDialog.web.d.ts +2 -0
  52. package/lib/typescript/commonjs/dialog/CenteredDialog.web.d.ts.map +1 -1
  53. package/lib/typescript/commonjs/dialog/Dialog.d.ts +18 -15
  54. package/lib/typescript/commonjs/dialog/Dialog.d.ts.map +1 -1
  55. package/lib/typescript/commonjs/dialog/Dialog.web.d.ts +18 -5
  56. package/lib/typescript/commonjs/dialog/Dialog.web.d.ts.map +1 -1
  57. package/lib/typescript/commonjs/dialog/centered-dialog-types.d.ts +4 -0
  58. package/lib/typescript/commonjs/dialog/centered-dialog-types.d.ts.map +1 -1
  59. package/lib/typescript/commonjs/dialog/index.d.ts +2 -2
  60. package/lib/typescript/commonjs/dialog/index.d.ts.map +1 -1
  61. package/lib/typescript/commonjs/dialog/index.web.d.ts +2 -2
  62. package/lib/typescript/commonjs/dialog/index.web.d.ts.map +1 -1
  63. package/lib/typescript/commonjs/dialog/placement.d.ts +71 -0
  64. package/lib/typescript/commonjs/dialog/placement.d.ts.map +1 -0
  65. package/lib/typescript/commonjs/dialog/types.d.ts +66 -3
  66. package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
  67. package/lib/typescript/commonjs/index.d.ts +2 -2
  68. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  69. package/lib/typescript/commonjs/index.web.d.ts +2 -2
  70. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  71. package/lib/typescript/commonjs/responsive-sheet/ResponsiveSheet.d.ts +15 -19
  72. package/lib/typescript/commonjs/responsive-sheet/ResponsiveSheet.d.ts.map +1 -1
  73. package/lib/typescript/commonjs/responsive-sheet/ResponsiveSheet.web.d.ts +16 -0
  74. package/lib/typescript/commonjs/responsive-sheet/ResponsiveSheet.web.d.ts.map +1 -0
  75. package/lib/typescript/commonjs/responsive-sheet/index.web.d.ts +1 -1
  76. package/lib/typescript/commonjs/responsive-sheet/index.web.d.ts.map +1 -1
  77. package/lib/typescript/commonjs/responsive-sheet/types.d.ts +5 -2
  78. package/lib/typescript/commonjs/responsive-sheet/types.d.ts.map +1 -1
  79. package/lib/typescript/module/dialog/CenteredDialog.d.ts +2 -0
  80. package/lib/typescript/module/dialog/CenteredDialog.d.ts.map +1 -1
  81. package/lib/typescript/module/dialog/CenteredDialog.web.d.ts +2 -0
  82. package/lib/typescript/module/dialog/CenteredDialog.web.d.ts.map +1 -1
  83. package/lib/typescript/module/dialog/Dialog.d.ts +18 -15
  84. package/lib/typescript/module/dialog/Dialog.d.ts.map +1 -1
  85. package/lib/typescript/module/dialog/Dialog.web.d.ts +18 -5
  86. package/lib/typescript/module/dialog/Dialog.web.d.ts.map +1 -1
  87. package/lib/typescript/module/dialog/centered-dialog-types.d.ts +4 -0
  88. package/lib/typescript/module/dialog/centered-dialog-types.d.ts.map +1 -1
  89. package/lib/typescript/module/dialog/index.d.ts +2 -2
  90. package/lib/typescript/module/dialog/index.d.ts.map +1 -1
  91. package/lib/typescript/module/dialog/index.web.d.ts +2 -2
  92. package/lib/typescript/module/dialog/index.web.d.ts.map +1 -1
  93. package/lib/typescript/module/dialog/placement.d.ts +71 -0
  94. package/lib/typescript/module/dialog/placement.d.ts.map +1 -0
  95. package/lib/typescript/module/dialog/types.d.ts +66 -3
  96. package/lib/typescript/module/dialog/types.d.ts.map +1 -1
  97. package/lib/typescript/module/index.d.ts +2 -2
  98. package/lib/typescript/module/index.d.ts.map +1 -1
  99. package/lib/typescript/module/index.web.d.ts +2 -2
  100. package/lib/typescript/module/index.web.d.ts.map +1 -1
  101. package/lib/typescript/module/responsive-sheet/ResponsiveSheet.d.ts +15 -19
  102. package/lib/typescript/module/responsive-sheet/ResponsiveSheet.d.ts.map +1 -1
  103. package/lib/typescript/module/responsive-sheet/ResponsiveSheet.web.d.ts +16 -0
  104. package/lib/typescript/module/responsive-sheet/ResponsiveSheet.web.d.ts.map +1 -0
  105. package/lib/typescript/module/responsive-sheet/index.web.d.ts +1 -1
  106. package/lib/typescript/module/responsive-sheet/index.web.d.ts.map +1 -1
  107. package/lib/typescript/module/responsive-sheet/types.d.ts +5 -2
  108. package/lib/typescript/module/responsive-sheet/types.d.ts.map +1 -1
  109. package/package.json +1 -1
  110. package/src/__tests__/DialogPlacement.test.tsx +144 -0
  111. package/src/__tests__/ResponsiveSheet.test.tsx +36 -52
  112. package/src/dialog/CenteredDialog.tsx +2 -0
  113. package/src/dialog/CenteredDialog.web.tsx +2 -0
  114. package/src/dialog/Dialog.tsx +407 -50
  115. package/src/dialog/Dialog.web.tsx +490 -75
  116. package/src/dialog/centered-dialog-types.ts +4 -0
  117. package/src/dialog/index.ts +4 -1
  118. package/src/dialog/index.web.ts +4 -1
  119. package/src/dialog/placement.ts +113 -0
  120. package/src/dialog/types.ts +69 -3
  121. package/src/index.ts +4 -0
  122. package/src/index.web.ts +4 -0
  123. package/src/responsive-sheet/ResponsiveSheet.tsx +58 -297
  124. package/src/responsive-sheet/ResponsiveSheet.web.tsx +76 -0
  125. package/src/responsive-sheet/index.web.ts +7 -9
  126. package/src/responsive-sheet/types.ts +5 -2
  127. package/lib/commonjs/responsive-sheet/ResponsiveSheet.native.js +0 -226
  128. package/lib/commonjs/responsive-sheet/ResponsiveSheet.native.js.map +0 -1
  129. package/lib/commonjs/responsive-sheet/const.js +0 -60
  130. package/lib/commonjs/responsive-sheet/const.js.map +0 -1
  131. package/lib/module/responsive-sheet/ResponsiveSheet.native.js +0 -219
  132. package/lib/module/responsive-sheet/ResponsiveSheet.native.js.map +0 -1
  133. package/lib/module/responsive-sheet/const.js +0 -56
  134. package/lib/module/responsive-sheet/const.js.map +0 -1
  135. package/lib/typescript/commonjs/responsive-sheet/ResponsiveSheet.native.d.ts +0 -20
  136. package/lib/typescript/commonjs/responsive-sheet/ResponsiveSheet.native.d.ts.map +0 -1
  137. package/lib/typescript/commonjs/responsive-sheet/const.d.ts +0 -43
  138. package/lib/typescript/commonjs/responsive-sheet/const.d.ts.map +0 -1
  139. package/lib/typescript/module/responsive-sheet/ResponsiveSheet.native.d.ts +0 -20
  140. package/lib/typescript/module/responsive-sheet/ResponsiveSheet.native.d.ts.map +0 -1
  141. package/lib/typescript/module/responsive-sheet/const.d.ts +0 -43
  142. package/lib/typescript/module/responsive-sheet/const.d.ts.map +0 -1
  143. package/src/responsive-sheet/ResponsiveSheet.native.tsx +0 -257
  144. package/src/responsive-sheet/const.ts +0 -53
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+
3
+ import React from 'react';
4
+ import { Dialog } from "../dialog/index.web.js";
5
+ import { BREAKPOINT_LG, BREAKPOINT_MD, BREAKPOINT_SM, BREAKPOINT_XL, DIALOG_SHEET_BACKDROP_TESTID } from "../dialog/placement.js";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ /**
8
+ * @deprecated Use `<Dialog placement={{ base: 'bottom', md: 'left' }}>` instead.
9
+ *
10
+ * Web fork of the deprecated `ResponsiveSheet` wrapper. Identical delegation to
11
+ * the default fork, but imports the web `Dialog` explicitly so non-Metro web
12
+ * bundlers never follow the native (reanimated) `Dialog` sibling.
13
+ */
14
+ export function ResponsiveSheet({
15
+ open,
16
+ onClose,
17
+ side = 'left',
18
+ breakpoint = BREAKPOINT_MD,
19
+ width,
20
+ maxHeightRatio,
21
+ inset,
22
+ showHandle,
23
+ dismissOnBackdrop,
24
+ panelStyle,
25
+ panelClassName,
26
+ containerStyle,
27
+ containerClassName,
28
+ label,
29
+ children
30
+ }) {
31
+ return /*#__PURE__*/_jsx(Dialog, {
32
+ open: open,
33
+ onClose: onClose,
34
+ placement: placementForSide(side, breakpoint),
35
+ width: width,
36
+ maxHeightRatio: maxHeightRatio,
37
+ inset: inset,
38
+ showHandle: showHandle,
39
+ dismissOnBackdrop: dismissOnBackdrop,
40
+ panelStyle: panelStyle,
41
+ panelClassName: panelClassName,
42
+ containerStyle: containerStyle,
43
+ containerClassName: containerClassName,
44
+ label: label,
45
+ children: children
46
+ });
47
+ }
48
+ function placementForSide(side, breakpoint) {
49
+ if (breakpoint <= BREAKPOINT_SM) return {
50
+ base: 'bottom',
51
+ sm: side
52
+ };
53
+ if (breakpoint <= BREAKPOINT_MD) return {
54
+ base: 'bottom',
55
+ md: side
56
+ };
57
+ if (breakpoint <= BREAKPOINT_LG) return {
58
+ base: 'bottom',
59
+ lg: side
60
+ };
61
+ if (breakpoint <= BREAKPOINT_XL) return {
62
+ base: 'bottom',
63
+ xl: side
64
+ };
65
+ return {
66
+ base: 'bottom',
67
+ xl: side
68
+ };
69
+ }
70
+
71
+ /**
72
+ * @deprecated Stable testID for the dimmed backdrop dismiss button — now
73
+ * provided by the underlying `<Dialog>`'s side/bottom backdrop.
74
+ */
75
+ export const RESPONSIVE_SHEET_BACKDROP_TESTID = DIALOG_SHEET_BACKDROP_TESTID;
76
+ export default ResponsiveSheet;
77
+ //# sourceMappingURL=ResponsiveSheet.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Dialog","BREAKPOINT_LG","BREAKPOINT_MD","BREAKPOINT_SM","BREAKPOINT_XL","DIALOG_SHEET_BACKDROP_TESTID","jsx","_jsx","ResponsiveSheet","open","onClose","side","breakpoint","width","maxHeightRatio","inset","showHandle","dismissOnBackdrop","panelStyle","panelClassName","containerStyle","containerClassName","label","children","placement","placementForSide","base","sm","md","lg","xl","RESPONSIVE_SHEET_BACKDROP_TESTID"],"sourceRoot":"../../../src","sources":["responsive-sheet/ResponsiveSheet.web.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,MAAM,QAAQ,wBAAqB;AAC5C,SACEC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,aAAa,EACbC,4BAA4B,QAEvB,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAG7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAAC;EAC9BC,IAAI;EACJC,OAAO;EACPC,IAAI,GAAG,MAAM;EACbC,UAAU,GAAGV,aAAa;EAC1BW,KAAK;EACLC,cAAc;EACdC,KAAK;EACLC,UAAU;EACVC,iBAAiB;EACjBC,UAAU;EACVC,cAAc;EACdC,cAAc;EACdC,kBAAkB;EAClBC,KAAK;EACLC;AACoB,CAAC,EAAE;EACvB,oBACEhB,IAAA,CAACP,MAAM;IACLS,IAAI,EAAEA,IAAK;IACXC,OAAO,EAAEA,OAAQ;IACjBc,SAAS,EAAEC,gBAAgB,CAACd,IAAI,EAAEC,UAAU,CAAE;IAC9CC,KAAK,EAAEA,KAAM;IACbC,cAAc,EAAEA,cAAe;IAC/BC,KAAK,EAAEA,KAAM;IACbC,UAAU,EAAEA,UAAW;IACvBC,iBAAiB,EAAEA,iBAAkB;IACrCC,UAAU,EAAEA,UAAW;IACvBC,cAAc,EAAEA,cAAe;IAC/BC,cAAc,EAAEA,cAAe;IAC/BC,kBAAkB,EAAEA,kBAAmB;IACvCC,KAAK,EAAEA,KAAM;IAAAC,QAAA,EAEZA;EAAQ,CACH,CAAC;AAEb;AAEA,SAASE,gBAAgBA,CACvBd,IAAsB,EACtBC,UAAkB,EACS;EAC3B,IAAIA,UAAU,IAAIT,aAAa,EAAE,OAAO;IAAEuB,IAAI,EAAE,QAAQ;IAAEC,EAAE,EAAEhB;EAAK,CAAC;EACpE,IAAIC,UAAU,IAAIV,aAAa,EAAE,OAAO;IAAEwB,IAAI,EAAE,QAAQ;IAAEE,EAAE,EAAEjB;EAAK,CAAC;EACpE,IAAIC,UAAU,IAAIX,aAAa,EAAE,OAAO;IAAEyB,IAAI,EAAE,QAAQ;IAAEG,EAAE,EAAElB;EAAK,CAAC;EACpE,IAAIC,UAAU,IAAIR,aAAa,EAAE,OAAO;IAAEsB,IAAI,EAAE,QAAQ;IAAEI,EAAE,EAAEnB;EAAK,CAAC;EACpE,OAAO;IAAEe,IAAI,EAAE,QAAQ;IAAEI,EAAE,EAAEnB;EAAK,CAAC;AACrC;;AAEA;AACA;AACA;AACA;AACA,OAAO,MAAMoB,gCAAgC,GAAG1B,4BAA4B;AAE5E,eAAeG,eAAe","ignoreList":[]}
@@ -2,13 +2,11 @@
2
2
 
3
3
  // Web variant of the `./responsive-sheet` barrel.
4
4
  //
5
- // The default barrel (`./index.ts`) re-exports from `./ResponsiveSheet`, which
6
- // is itself the reanimated-free web/CSS implementation Metro additionally
7
- // resolves `./ResponsiveSheet.native` for native targets. Web bundlers select
8
- // THIS file via the `"browser"` export condition in `package.json`'s
9
- // `exports['./responsive-sheet']`, pointing them explicitly at the CSS
10
- // implementation so a non-Metro bundler never follows the `.native` sibling
11
- // (which statically imports `react-native-reanimated`, a native-only module).
12
- // Types are platform-agnostic, so they come straight from `./types`.
13
- export { ResponsiveSheet, RESPONSIVE_SHEET_BACKDROP_TESTID } from './ResponsiveSheet';
5
+ // `ResponsiveSheet` is now a deprecated thin wrapper over `<Dialog>`. The
6
+ // default barrel (`./index.ts`) imports the default `Dialog`; THIS web barrel
7
+ // re-exports from `./ResponsiveSheet.web`, which imports the web `Dialog`
8
+ // explicitly so a non-Metro bundler never follows the native (reanimated)
9
+ // `Dialog` sibling. Web bundlers select this file via the `"browser"` export
10
+ // condition in `package.json`'s `exports['./responsive-sheet']`.
11
+ export { ResponsiveSheet, RESPONSIVE_SHEET_BACKDROP_TESTID } from "./ResponsiveSheet.web.js";
14
12
  //# sourceMappingURL=index.web.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ResponsiveSheet","RESPONSIVE_SHEET_BACKDROP_TESTID"],"sourceRoot":"../../../src","sources":["responsive-sheet/index.web.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,eAAe,EAAEC,gCAAgC,QAAQ,mBAAmB","ignoreList":[]}
1
+ {"version":3,"names":["ResponsiveSheet","RESPONSIVE_SHEET_BACKDROP_TESTID"],"sourceRoot":"../../../src","sources":["responsive-sheet/index.web.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,eAAe,EAAEC,gCAAgC,QAAQ,0BAAuB","ignoreList":[]}
@@ -2,6 +2,8 @@ import type { CenteredDialogProps } from './centered-dialog-types';
2
2
  /** Stable testID for the dimmed backdrop. Overridden when a `testID` is set. */
3
3
  export declare const CENTERED_DIALOG_BACKDROP_TESTID = "bloom-centered-dialog-backdrop";
4
4
  /**
5
+ * @deprecated Use `<Dialog placement="center">` instead.
6
+ *
5
7
  * Native variant of `<CenteredDialog>`.
6
8
  *
7
9
  * A controlled, centered modal: a transparent RN `Modal` (fade animation,
@@ -1 +1 @@
1
- {"version":3,"file":"CenteredDialog.d.ts","sourceRoot":"","sources":["../../../../src/dialog/CenteredDialog.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAWnE,gFAAgF;AAChF,eAAO,MAAM,+BAA+B,mCAAmC,CAAC;AAEhF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,OAAO,EACP,KAAK,EACL,WAAkB,EAClB,QAA4B,EAC5B,OAAc,EACd,SAAS,EACT,QAAQ,EACR,MAAM,EACN,kBAAkB,EAClB,uBAAwC,EACxC,0BAA6C,EAC7C,SAAS,EACT,YAAY,EACZ,MAAM,GACP,EAAE,mBAAmB,2CAsGrB"}
1
+ {"version":3,"file":"CenteredDialog.d.ts","sourceRoot":"","sources":["../../../../src/dialog/CenteredDialog.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAWnE,gFAAgF;AAChF,eAAO,MAAM,+BAA+B,mCAAmC,CAAC;AAEhF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,OAAO,EACP,KAAK,EACL,WAAkB,EAClB,QAA4B,EAC5B,OAAc,EACd,SAAS,EACT,QAAQ,EACR,MAAM,EACN,kBAAkB,EAClB,uBAAwC,EACxC,0BAA6C,EAC7C,SAAS,EACT,YAAY,EACZ,MAAM,GACP,EAAE,mBAAmB,2CAsGrB"}
@@ -2,6 +2,8 @@ import type { CenteredDialogProps } from './centered-dialog-types';
2
2
  /** Stable testID for the dimmed backdrop. Overridden when a `testID` is set. */
3
3
  export declare const CENTERED_DIALOG_BACKDROP_TESTID = "bloom-centered-dialog-backdrop";
4
4
  /**
5
+ * @deprecated Use `<Dialog placement="center">` instead.
6
+ *
5
7
  * Web variant of `<CenteredDialog>`.
6
8
  *
7
9
  * A centered modal card rendered into the Bloom Portal at the end of
@@ -1 +1 @@
1
- {"version":3,"file":"CenteredDialog.web.d.ts","sourceRoot":"","sources":["../../../../src/dialog/CenteredDialog.web.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAanE,gFAAgF;AAChF,eAAO,MAAM,+BAA+B,mCAAmC,CAAC;AAIhF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,OAAO,EACP,KAAK,EACL,WAAkB,EAClB,QAA4B,EAC5B,OAAc,EACd,SAAS,EACT,QAAQ,EACR,MAAM,EACN,kBAAkB,EAClB,uBAAwC,EACxC,0BAA6C,EAC7C,SAAS,EACT,YAAY,EACZ,MAAM,GACP,EAAE,mBAAmB,kDAoIrB;AA4FD;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,2aAKrC,CAAC"}
1
+ {"version":3,"file":"CenteredDialog.web.d.ts","sourceRoot":"","sources":["../../../../src/dialog/CenteredDialog.web.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAanE,gFAAgF;AAChF,eAAO,MAAM,+BAA+B,mCAAmC,CAAC;AAIhF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,OAAO,EACP,KAAK,EACL,WAAkB,EAClB,QAA4B,EAC5B,OAAc,EACd,SAAS,EACT,QAAQ,EACR,MAAM,EACN,kBAAkB,EAClB,uBAAwC,EACxC,0BAA6C,EAC7C,SAAS,EACT,YAAY,EACZ,MAAM,GACP,EAAE,mBAAmB,kDAoIrB;AA4FD;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,2aAKrC,CAAC"}
@@ -1,26 +1,29 @@
1
+ import { DIALOG_SHEET_BACKDROP_TESTID } from './placement';
1
2
  import type { DialogAction, DialogProps } from './types';
3
+ export { DIALOG_SHEET_BACKDROP_TESTID };
2
4
  /**
3
5
  * Native variant of `<Dialog>`.
4
6
  *
5
- * Uses bloom's own `BottomSheet` in `detached` mode as the underlying
6
- * surface a floating, dynamically-sized, content-hugging card that
7
- * gracefully degrades from sheet (phone) to centered card (tablet, via the
8
- * 500px max-width cap).
7
+ * Open/close is driven by EITHER the imperative `control` (legacy) OR the
8
+ * controlled `open` prop. When `open` is provided it wins.
9
9
  *
10
- * The component accepts three rendering modes simultaneously:
10
+ * `placement` selects the surface:
11
+ *
12
+ * - `'center'` (default) / `'bottom'` — bloom's `BottomSheet` (`detached`
13
+ * for center: a floating, content-hugging card that degrades from sheet to
14
+ * centered card via the 500px cap; flush for bottom: a full-width sheet
15
+ * with a drag handle). Default behavior is unchanged.
16
+ * - `'left'` / `'right'` — an anchored side-sheet/drawer driven by
17
+ * reanimated (the `responsive-sheet` native technique). Exit animations
18
+ * are safe on native.
11
19
  *
12
- * 1. Declarative `title`, `description`, `actions`. Bloom renders a
13
- * standard confirm/destructive/cancel layout.
14
- * 2. Custom children — caller passes JSX, bloom renders the chrome (title
15
- * + close behaviour) and the children fill the body.
16
- * 3. Pure children — no `title`/`description`/`actions`; caller owns
17
- * every pixel.
20
+ * The component accepts three rendering modes simultaneously:
18
21
  *
19
- * All three share the same dismissal semantics: tapping the backdrop, the
20
- * drag handle, swiping down, or `control.close()` runs the queued close
21
- * callbacks once the sheet's exit animation has settled.
22
+ * 1. Declarative `title`, `description`, `actions`.
23
+ * 2. Custom children caller passes JSX, bloom renders the chrome.
24
+ * 3. Pure children no `title`/`description`/`actions`.
22
25
  */
23
- export declare function Dialog({ control, onClose, testID, title, description, actions, style, label, children, }: DialogProps): import("react/jsx-runtime").JSX.Element;
26
+ export declare function Dialog({ control, open: controlledOpen, onClose, testID, title, description, actions, placement, width, maxHeightRatio, inset, showHandle, dismissOnBackdrop, style, panelStyle, panelClassName, containerStyle, containerClassName, label, children, }: DialogProps): import("react/jsx-runtime").JSX.Element;
24
27
  /**
25
28
  * Helper used by the imperative `alert()` API. Mounts a `<Dialog>` against
26
29
  * a fresh control and presents it immediately. `onResolve` is invoked
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/dialog/Dialog.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EACV,YAAY,EAGZ,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,OAAO,EACP,MAAM,EACN,KAAK,EACL,WAAW,EACX,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,GACT,EAAE,WAAW,2CA6Hb;AAqFD;;;;;;;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
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/dialog/Dialog.tsx"],"names":[],"mappings":"AAkCA,OAAO,EAIL,4BAA4B,EAK7B,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,YAAY,EAIZ,WAAW,EACZ,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,4BAA4B,EAAE,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,IAAI,EAAE,cAAc,EACpB,OAAO,EACP,MAAM,EACN,KAAK,EACL,WAAW,EACX,OAAO,EACP,SAAS,EACT,KAA0B,EAC1B,cAAyC,EACzC,KAAK,EACL,UAAiB,EACjB,iBAAwB,EACxB,KAAK,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,KAAK,EACL,QAAQ,GACT,EAAE,WAAW,2CAwLb;AAuVD;;;;;;;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,18 +1,28 @@
1
+ import { DIALOG_SHEET_BACKDROP_TESTID } from './placement';
1
2
  import type { DialogAction, DialogProps } from './types';
2
3
  /**
3
4
  * Web variant of `<Dialog>`.
4
5
  *
5
- * A centered modal card rendered into the bloom Portal at the end of
6
- * `document.body`. Same prop API as native`title`, `description`,
7
- * `actions`, or arbitrary `children` so call sites are platform
8
- * agnostic.
6
+ * A centered modal card (default) rendered into the bloom Portal at the end of
7
+ * `document.body`, or when `placement` is `left`/`right`/`bottom` an
8
+ * anchored side-sheet or bottom-sheet. Same prop API as native, so call sites
9
+ * are platform agnostic.
10
+ *
11
+ * Open/close is driven by EITHER the imperative `control` (legacy) OR the
12
+ * controlled `open` prop. When `open` is provided it wins.
9
13
  *
10
14
  * Accessibility: the panel has `role="dialog"` and the `title`/`description`
11
15
  * props (when provided) become the `aria-labelledby` / `aria-describedby`
12
16
  * targets. Pressing the backdrop dismisses. Pressing `Escape` dismisses.
13
17
  * Focus is locked inside the dialog while it's open.
18
+ *
19
+ * Web motion never uses reanimated `exiting` (which throws `removeChild` on
20
+ * concurrent React unmounts): the centered card uses CSS keyframes and the
21
+ * side/bottom modes use self-contained CSS transitions (the `responsive-sheet`
22
+ * technique) on a mounted-through-exit node.
14
23
  */
15
- export declare function Dialog({ control, onClose, testID, title, description, actions, style, label, children, }: DialogProps): import("react/jsx-runtime").JSX.Element | null;
24
+ export declare function Dialog({ control, open: controlledOpen, onClose, testID, title, description, actions, placement, width, maxWidth, maxHeightRatio, inset, showHandle, dismissOnBackdrop, style, panelStyle, panelClassName, containerStyle, containerClassName, label, children, }: DialogProps): import("react/jsx-runtime").JSX.Element | null;
25
+ export { DIALOG_SHEET_BACKDROP_TESTID };
16
26
  /**
17
27
  * Inline imperative dialog used by `alert()`. Mounts and immediately
18
28
  * presents; resolves the host's `onResolve` once the dialog has finished
@@ -34,6 +44,9 @@ export declare function AutoMountedDialog({ title, description, actions, onResol
34
44
  * @keyframes bloomDialogZoomFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
35
45
  * @keyframes bloomDialogZoomFadeOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.95); } }
36
46
  * ```
47
+ *
48
+ * The `left`/`right`/`bottom` placements do NOT depend on this — they animate
49
+ * via self-contained inline CSS transitions and need no keyframe injection.
37
50
  */
38
51
  export declare const BLOOM_DIALOG_CSS = "\n@keyframes bloomDialogFadeIn { from { opacity: 0; } to { opacity: 1; } }\n@keyframes bloomDialogFadeOut { from { opacity: 1; } to { opacity: 0; } }\n@keyframes bloomDialogZoomFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }\n@keyframes bloomDialogZoomFadeOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.95); } }\n";
39
52
  //# sourceMappingURL=Dialog.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.web.d.ts","sourceRoot":"","sources":["../../../../src/dialog/Dialog.web.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EACV,YAAY,EAGZ,WAAW,EACZ,MAAM,SAAS,CAAC;AASjB;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,OAAO,EACP,MAAM,EACN,KAAK,EACL,WAAW,EACX,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,GACT,EAAE,WAAW,kDA4Gb;AA8LD;;;;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;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,mZAK5B,CAAC"}
1
+ {"version":3,"file":"Dialog.web.d.ts","sourceRoot":"","sources":["../../../../src/dialog/Dialog.web.tsx"],"names":[],"mappings":"AA2BA,OAAO,EAML,4BAA4B,EAU7B,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EACV,YAAY,EAIZ,WAAW,EACZ,MAAM,SAAS,CAAC;AASjB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,EACrB,OAAO,EACP,IAAI,EAAE,cAAc,EACpB,OAAO,EACP,MAAM,EACN,KAAK,EACL,WAAW,EACX,OAAO,EACP,SAAS,EACT,KAA0B,EAC1B,QAAmC,EACnC,cAAyC,EACzC,KAAK,EACL,UAAiB,EACjB,iBAAwB,EACxB,KAAK,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,KAAK,EACL,QAAQ,GACT,EAAE,WAAW,kDA0Lb;AAkID,OAAO,EAAE,4BAA4B,EAAE,CAAC;AAyTxC;;;;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;AA4CD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,mZAK5B,CAAC"}
@@ -1,6 +1,10 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { StyleProp, ViewStyle } from 'react-native';
3
3
  /**
4
+ * @deprecated Use `<Dialog placement="center">` instead. `CenteredDialog` is
5
+ * superseded by the centered placement of the canonical `<Dialog>` and is
6
+ * slated for removal in a future major.
7
+ *
4
8
  * Props for the declarative `<CenteredDialog>` primitive.
5
9
  *
6
10
  * This is the simple, controlled centered-modal surface — distinct from the
@@ -1 +1 @@
1
- {"version":3,"file":"centered-dialog-types.d.ts","sourceRoot":"","sources":["../../../../src/dialog/centered-dialog-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;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2DAA2D;IAC3D,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,+EAA+E;IAC/E,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,+DAA+D;IAC/D,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC,oEAAoE;IACpE,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
1
+ {"version":3,"file":"centered-dialog-types.d.ts","sourceRoot":"","sources":["../../../../src/dialog/centered-dialog-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;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,+CAA+C;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2DAA2D;IAC3D,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,+EAA+E;IAC/E,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,+DAA+D;IAC/D,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACjC,oEAAoE;IACpE,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -1,9 +1,9 @@
1
- export { Dialog } from './Dialog';
1
+ export { Dialog, DIALOG_SHEET_BACKDROP_TESTID } from './Dialog';
2
2
  export { CenteredDialog, CENTERED_DIALOG_BACKDROP_TESTID } from './CenteredDialog';
3
3
  export { BloomDialogProvider } from './BloomDialogProvider';
4
4
  export { alert } from './alert';
5
5
  export { useDialogContext, useDialogControl } from './context';
6
6
  export type { AlertButton, AlertButtonStyle, } from './alert-store';
7
- export type { DialogAction, DialogActionColor, DialogContextProps, DialogControlProps, DialogProps, } from './types';
7
+ export type { DialogAction, DialogActionColor, DialogContextProps, DialogControlProps, DialogInset, DialogPlacement, DialogProps, ResponsiveDialogPlacement, } from './types';
8
8
  export type { CenteredDialogProps } from './centered-dialog-types';
9
9
  //# 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,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AACnF,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,GACZ,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,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,cAAc,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AACnF,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;AACjB,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -1,9 +1,9 @@
1
- export { Dialog, BLOOM_DIALOG_CSS } from './Dialog.web';
1
+ export { Dialog, BLOOM_DIALOG_CSS, DIALOG_SHEET_BACKDROP_TESTID } from './Dialog.web';
2
2
  export { CenteredDialog, BLOOM_CENTERED_DIALOG_CSS, CENTERED_DIALOG_BACKDROP_TESTID, } from './CenteredDialog.web';
3
3
  export { BloomDialogProvider } from './BloomDialogProvider.web';
4
4
  export { alert } from './alert';
5
5
  export { useDialogContext, useDialogControl } from './context';
6
6
  export type { AlertButton, AlertButtonStyle, } from './alert-store';
7
- export type { DialogAction, DialogActionColor, DialogContextProps, DialogControlProps, DialogProps, } from './types';
7
+ export type { DialogAction, DialogActionColor, DialogContextProps, DialogControlProps, DialogInset, DialogPlacement, DialogProps, ResponsiveDialogPlacement, } from './types';
8
8
  export type { CenteredDialogProps } from './centered-dialog-types';
9
9
  //# 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,MAAM,cAAc,CAAC;AACxD,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,sBAAsB,CAAC;AAC9B,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,GACZ,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,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,EACL,cAAc,EACd,yBAAyB,EACzB,+BAA+B,GAChC,MAAM,sBAAsB,CAAC;AAC9B,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;AACjB,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Anchor a `<Dialog>` can render against.
3
+ *
4
+ * - `'center'` — the default centered modal card (current behavior).
5
+ * - `'left'` / `'right'` — an anchored side-sheet / drawer.
6
+ * - `'bottom'` — a bottom-sheet (drag handle, slide-up).
7
+ */
8
+ export type DialogPlacement = 'center' | 'left' | 'right' | 'bottom';
9
+ /**
10
+ * A `<Dialog>` placement that may vary by viewport width.
11
+ *
12
+ * Either a single `DialogPlacement` (applied at every width) or a responsive
13
+ * map whose `base` applies below the first breakpoint and whose `sm`/`md`/`lg`/
14
+ * `xl` keys override it at and above the matching Tailwind breakpoint.
15
+ *
16
+ * The common store-drawer case is `{ base: 'bottom', md: 'left' }`; the common
17
+ * dialog-to-sheet case is `{ base: 'bottom', md: 'center' }`.
18
+ */
19
+ export type ResponsiveDialogPlacement = DialogPlacement | {
20
+ base: DialogPlacement;
21
+ sm?: DialogPlacement;
22
+ md?: DialogPlacement;
23
+ lg?: DialogPlacement;
24
+ xl?: DialogPlacement;
25
+ };
26
+ /**
27
+ * Tailwind-default breakpoints (px). A responsive `placement` map resolves to
28
+ * the value for the largest key whose min-width is `<=` the current viewport
29
+ * width, falling back to `base`.
30
+ */
31
+ export declare const BREAKPOINT_SM = 640;
32
+ export declare const BREAKPOINT_MD = 768;
33
+ export declare const BREAKPOINT_LG = 1024;
34
+ export declare const BREAKPOINT_XL = 1280;
35
+ /** Default side-sheet width (px) on wide screens. */
36
+ export declare const DEFAULT_SIDE_WIDTH = 460;
37
+ /** Default centered-card max width (px). Matches the legacy `maxWidth: 480`. */
38
+ export declare const DEFAULT_CENTER_MAX_WIDTH = 480;
39
+ /** Default bottom-sheet max height as a fraction of the viewport height. */
40
+ export declare const DEFAULT_MAX_HEIGHT_RATIO = 0.9;
41
+ /** Corner radius shared by the side-sheet panel and the bottom-sheet top. */
42
+ export declare const PANEL_RADIUS = 20;
43
+ /** Open/close transition duration (ms). ~280ms ease-out reads smooth. */
44
+ export declare const ANIMATION_DURATION = 280;
45
+ /** Centered-card fade-out duration (ms) — preserves the legacy timing. */
46
+ export declare const CENTER_FADE_OUT_DURATION = 150;
47
+ /** CSS approximation of reanimated's `Easing.out(Easing.cubic)`. */
48
+ export declare const EASE_OUT = "cubic-bezier(0.33, 1, 0.68, 1)";
49
+ /** Backdrop dim opacity once fully shown (matches `bg-black/40`). */
50
+ export declare const SHEET_BACKDROP_OPACITY = 0.4;
51
+ /** Stable testID for the dimmed backdrop of a side/bottom placement dialog. */
52
+ export declare const DIALOG_SHEET_BACKDROP_TESTID = "bloom-dialog-sheet-backdrop";
53
+ /** Drag-handle pill geometry for the bottom-sheet. */
54
+ export declare const HANDLE_WIDTH = 36;
55
+ export declare const HANDLE_HEIGHT = 5;
56
+ export declare const HANDLE_RADIUS = 3;
57
+ /**
58
+ * Minimum gutter kept between a wide side-sheet and the opposite viewport edge
59
+ * when capping its width, so the panel never spans the full screen.
60
+ */
61
+ export declare const SIDE_SHEET_MIN_GUTTER = 24;
62
+ /**
63
+ * Resolve a (possibly responsive) `placement` to a concrete `DialogPlacement`
64
+ * for the current viewport width.
65
+ *
66
+ * A plain string placement resolves to itself. A responsive map picks the
67
+ * value for the largest breakpoint key whose min-width is `<=` the viewport
68
+ * width, falling back to `base` below the first breakpoint.
69
+ */
70
+ export declare function useResolvedPlacement(placement: ResponsiveDialogPlacement | undefined): DialogPlacement;
71
+ //# sourceMappingURL=placement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"placement.d.ts","sourceRoot":"","sources":["../../../../src/dialog/placement.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAErE;;;;;;;;;GASG;AACH,MAAM,MAAM,yBAAyB,GACjC,eAAe,GACf;IACE,IAAI,EAAE,eAAe,CAAC;IACtB,EAAE,CAAC,EAAE,eAAe,CAAC;IACrB,EAAE,CAAC,EAAE,eAAe,CAAC;IACrB,EAAE,CAAC,EAAE,eAAe,CAAC;IACrB,EAAE,CAAC,EAAE,eAAe,CAAC;CACtB,CAAC;AAEN;;;;GAIG;AACH,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,eAAO,MAAM,aAAa,OAAO,CAAC;AAClC,eAAO,MAAM,aAAa,OAAO,CAAC;AAUlC,qDAAqD;AACrD,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,gFAAgF;AAChF,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,4EAA4E;AAC5E,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,6EAA6E;AAC7E,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B,yEAAyE;AACzE,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,0EAA0E;AAC1E,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,oEAAoE;AACpE,eAAO,MAAM,QAAQ,mCAAmC,CAAC;AAEzD,qEAAqE;AACrE,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,+EAA+E;AAC/E,eAAO,MAAM,4BAA4B,gCAAgC,CAAC;AAE1E,sDAAsD;AACtD,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,aAAa,IAAI,CAAC;AAC/B,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B;;;GAGG;AACH,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,yBAAyB,GAAG,SAAS,GAC/C,eAAe,CAcjB"}
@@ -1,4 +1,17 @@
1
1
  import type { GestureResponderEvent, StyleProp, ViewStyle } from 'react-native';
2
+ import type { ResponsiveDialogPlacement } from './placement';
3
+ export type { DialogPlacement, ResponsiveDialogPlacement } from './placement';
4
+ /**
5
+ * Side-sheet inset (px) from the root overlay's edges. Lets a host place a
6
+ * `left`/`right` placement "inside its own shell" — e.g. offset from the top
7
+ * by a header, or from the anchored edge by a nav rail.
8
+ */
9
+ export type DialogInset = {
10
+ top?: number;
11
+ bottom?: number;
12
+ left?: number;
13
+ right?: number;
14
+ };
2
15
  /**
3
16
  * Imperative open/close handle returned by `useDialogControl`.
4
17
  *
@@ -45,7 +58,14 @@ export type DialogAction = {
45
58
  /**
46
59
  * Props accepted by the unified `<Dialog>` component.
47
60
  *
48
- * Three usage modes pick whichever fits the call site:
61
+ * Open/close is driven by EITHER of two mutually-exclusive modes:
62
+ *
63
+ * - **Imperative `control`** (`useDialogControl()` + `control.open()` /
64
+ * `control.close()`). The legacy default; unchanged.
65
+ * - **Controlled `open`** (an `open` boolean + `onClose`). When `open` is
66
+ * provided it wins and `control` is ignored.
67
+ *
68
+ * Rendering modes (orthogonal to open/close mode) — pick whichever fits:
49
69
  *
50
70
  * 1. **Declarative (`title` / `description` / `actions`).** Most common
51
71
  * confirm/cancel surface. Bloom renders the title, description and
@@ -57,10 +77,26 @@ export type DialogAction = {
57
77
  *
58
78
  * 3. **Imperative `alert()`.** Bypass the JSX layer entirely — see the
59
79
  * module-level `alert()` helper.
80
+ *
81
+ * `placement` controls the surface anchor — centered modal (default), an
82
+ * anchored side-sheet (`left`/`right`), or a bottom-sheet (`bottom`) — and may
83
+ * be a responsive map that collapses to a bottom-sheet on narrow viewports.
60
84
  */
61
85
  export type DialogProps = React.PropsWithChildren<{
62
- control: DialogControlProps;
63
- /** Fires after the dialog has finished closing. */
86
+ /**
87
+ * Imperative open/close handle from `useDialogControl()`. Optional omit it
88
+ * when driving the dialog with the controlled `open` prop instead.
89
+ */
90
+ control?: DialogControlProps;
91
+ /**
92
+ * Controlled open state (opt-in). When provided, the dialog is driven by
93
+ * this boolean and `onClose`, and `control` is ignored.
94
+ */
95
+ open?: boolean;
96
+ /**
97
+ * Fires after the dialog has finished closing. In controlled mode it is the
98
+ * close request the host must answer by flipping `open` to `false`.
99
+ */
64
100
  onClose?: () => void;
65
101
  testID?: string;
66
102
  /** Optional dialog header text. Rendered above `description` / `children`. */
@@ -72,11 +108,38 @@ export type DialogProps = React.PropsWithChildren<{
72
108
  * confirm/cancel/destructive buttons for you. Order is preserved.
73
109
  */
74
110
  actions?: DialogAction[];
111
+ /**
112
+ * Surface anchor. Defaults to `'center'` (the centered modal — current
113
+ * behavior). `'left'`/`'right'` render an anchored side-sheet, `'bottom'` a
114
+ * bottom-sheet. A responsive map resolves by viewport width, e.g.
115
+ * `{ base: 'bottom', md: 'left' }` (drawer on wide, sheet on narrow).
116
+ */
117
+ placement?: ResponsiveDialogPlacement;
118
+ /** Side-sheet width (px) on wide screens. Defaults to `460`. */
119
+ width?: number;
120
+ /** Centered-card max width (px). Defaults to `480`. */
121
+ maxWidth?: number;
122
+ /** Bottom-sheet max height as a fraction of the viewport height. Defaults to `0.9`. */
123
+ maxHeightRatio?: number;
124
+ /** Side-sheet inset (px) from the root overlay's edges. */
125
+ inset?: DialogInset;
126
+ /** Whether to render the drag handle in bottom-sheet mode. Defaults to `true`. */
127
+ showHandle?: boolean;
128
+ /** Whether tapping the backdrop dismisses the dialog. Defaults to `true`. */
129
+ dismissOnBackdrop?: boolean;
75
130
  /**
76
131
  * Style overrides applied to the inner content container on native (the
77
132
  * floating bottom-sheet card) and to the modal panel on web.
78
133
  */
79
134
  style?: StyleProp<ViewStyle>;
135
+ /** Style overrides for the side/bottom placement panel surface. */
136
+ panelStyle?: StyleProp<ViewStyle>;
137
+ /** NativeWind classes for the side/bottom placement panel surface. */
138
+ panelClassName?: string;
139
+ /** Style for the root overlay (theme-var scope, rail offset, etc.). */
140
+ containerStyle?: StyleProp<ViewStyle>;
141
+ /** NativeWind classes for the root overlay (e.g. `"md:left-[4.75rem]"`). */
142
+ containerClassName?: string;
80
143
  /** Accessibility label, applied to the dialog role on web. */
81
144
  label?: string;
82
145
  }>;
@@ -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;;;;;;;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,kBAAkB,GAAG,qBAAqB,GAAG;IACvD,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC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Value } from './hooks/useThrottledValue';
9
9
  export * as Icons from './icons';
10
10
  export { type Props as IconProps, sizes as iconSizes, useCommonSVGProps } from './icons/common';
11
11
  export * from './portal';
12
- export { Dialog, CenteredDialog, CENTERED_DIALOG_BACKDROP_TESTID, BloomDialogProvider, alert, useDialogContext, useDialogControl, } from './dialog';
13
- export type { AlertButton, AlertButtonStyle, CenteredDialogProps, DialogAction, DialogActionColor, DialogContextProps, DialogControlProps, DialogProps, } from './dialog';
12
+ export { Dialog, DIALOG_SHEET_BACKDROP_TESTID, CenteredDialog, CENTERED_DIALOG_BACKDROP_TESTID, BloomDialogProvider, alert, useDialogContext, useDialogControl, } from './dialog';
13
+ export type { AlertButton, AlertButtonStyle, CenteredDialogProps, DialogAction, DialogActionColor, DialogContextProps, DialogControlProps, DialogInset, DialogPlacement, DialogProps, ResponsiveDialogPlacement, } from './dialog';
14
14
  export * from './button';
15
15
  export { Fab } from './fab';
16
16
  export type { FabProps, FabVariant, FabSize, FabPlacement } from './fab';
@@ -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;AAGhF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAG9D,OAAO,KAAK,KAAK,MAAM,SAAS,CA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AQ,CAAC;AAG/B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
@@ -9,8 +9,8 @@ export { useThrottledValue } from './hooks/useThrottledValue';
9
9
  export * as Icons from './icons';
10
10
  export { type Props as IconProps, sizes as iconSizes, useCommonSVGProps } from './icons/common';
11
11
  export * from './portal/index.web';
12
- export { Dialog, CenteredDialog, CENTERED_DIALOG_BACKDROP_TESTID, BloomDialogProvider, alert, useDialogContext, useDialogControl, } from './dialog/index.web';
13
- export type { AlertButton, AlertButtonStyle, CenteredDialogProps, DialogAction, DialogActionColor, DialogContextProps, DialogControlProps, DialogProps, } from './dialog/index.web';
12
+ export { Dialog, DIALOG_SHEET_BACKDROP_TESTID, CenteredDialog, CENTERED_DIALOG_BACKDROP_TESTID, BloomDialogProvider, alert, useDialogContext, useDialogControl, } from './dialog/index.web';
13
+ export type { AlertButton, AlertButtonStyle, CenteredDialogProps, DialogAction, DialogActionColor, DialogContextProps, DialogControlProps, DialogInset, DialogPlacement, DialogProps, ResponsiveDialogPlacement, } from './dialog/index.web';
14
14
  export * from './button/index.web';
15
15
  export { Fab } from './fab/index.web';
16
16
  export type { FabProps, FabVariant, FabSize, FabPlacement } from './fab/index.web';
@@ -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;AAGhF,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,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,EACV,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,GACf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGrE,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAG/B,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC"}
@@ -1,26 +1,22 @@
1
1
  import type { ResponsiveSheetProps } from './types';
2
- /** Stable testID for the dimmed backdrop dismiss button. */
3
- export declare const RESPONSIVE_SHEET_BACKDROP_TESTID = "bloom-responsive-sheet-backdrop";
4
2
  /**
5
- * Default / web variant of `<ResponsiveSheet>`.
3
+ * @deprecated Use `<Dialog placement={{ base: 'bottom', md: 'left' }}>` instead.
6
4
  *
7
- * This file is BOTH the package's default entry (`react-native` export
8
- * condition resolves it for downstream `tsc`, and non-Metro web bundlers pick
9
- * it via the `browser` condition through `index.web`) AND the canonical web
10
- * implementation. It MUST NOT import `react-native-reanimated` reanimated has
11
- * no web build and its worklets Babel plugin is native-only, so a static import
12
- * here would break every web bundler and downstream type-check. The native
13
- * fork (`ResponsiveSheet.native.tsx`, selected only by Metro) drives the same
14
- * motion with reanimated.
5
+ * `ResponsiveSheet` is now a thin wrapper that configures the canonical
6
+ * `<Dialog>` an anchored side-sheet on wide screens collapsing to a
7
+ * bottom-sheet below the breakpoint. It holds ZERO motion/layout logic of its
8
+ * own; it maps its props onto a responsive `Dialog` `placement`. The
9
+ * `@oxyhq/bloom/responsive-sheet` subpath is retained for the migration window.
15
10
  *
16
- * Motion is pure CSS transitions: react-native-web emits `transition-*` style
17
- * props to the DOM, and the panel/backdrop toggle their transform/opacity by a
18
- * `shown` flag. Presence is handled with a `mounted` + `shown` pair so both the
19
- * open AND close directions animate while the node stays mounted through the
20
- * exit. We deliberately do NOT use reanimated `exiting` on web — concurrent
21
- * React unmounts there throw `Failed to execute 'removeChild' on 'Node'`, the
22
- * exact bug this component exists to avoid.
11
+ * This file is BOTH the package default entry (resolved by downstream `tsc`
12
+ * and non-Metro web bundlers via the `browser` condition through `index.web`)
13
+ * AND a clean delegation, so it carries no platform-specific imports.
23
14
  */
24
- export declare function ResponsiveSheet({ open, onClose, side, breakpoint, width, maxHeightRatio, inset, showHandle, dismissOnBackdrop, panelStyle, panelClassName, containerStyle, containerClassName, label, children, }: ResponsiveSheetProps): import("react/jsx-runtime").JSX.Element | null;
15
+ export declare function ResponsiveSheet({ open, onClose, side, breakpoint, width, maxHeightRatio, inset, showHandle, dismissOnBackdrop, panelStyle, panelClassName, containerStyle, containerClassName, label, children, }: ResponsiveSheetProps): import("react/jsx-runtime").JSX.Element;
16
+ /**
17
+ * @deprecated Stable testID for the dimmed backdrop dismiss button — now
18
+ * provided by the underlying `<Dialog>`'s side/bottom backdrop.
19
+ */
20
+ export declare const RESPONSIVE_SHEET_BACKDROP_TESTID = "bloom-dialog-sheet-backdrop";
25
21
  export default ResponsiveSheet;
26
22
  //# sourceMappingURL=ResponsiveSheet.d.ts.map