@oxyhq/bloom 0.45.0 → 0.48.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 (211) hide show
  1. package/lib/commonjs/bottom-sheet/BottomSheetBase.js +34 -12
  2. package/lib/commonjs/bottom-sheet/BottomSheetBase.js.map +1 -1
  3. package/lib/commonjs/combobox/Combobox.js +3 -3
  4. package/lib/commonjs/combobox/Combobox.js.map +1 -1
  5. package/lib/commonjs/command/Command.js +3 -3
  6. package/lib/commonjs/command/Command.js.map +1 -1
  7. package/lib/commonjs/dialog/Dialog.js +86 -8
  8. package/lib/commonjs/dialog/Dialog.js.map +1 -1
  9. package/lib/commonjs/dialog/Dialog.web.js +176 -18
  10. package/lib/commonjs/dialog/Dialog.web.js.map +1 -1
  11. package/lib/commonjs/dialog/DialogBottomSheet.js +84 -29
  12. package/lib/commonjs/dialog/DialogBottomSheet.js.map +1 -1
  13. package/lib/commonjs/dialog/DialogHeader.js +365 -0
  14. package/lib/commonjs/dialog/DialogHeader.js.map +1 -0
  15. package/lib/commonjs/dialog/index.js +7 -0
  16. package/lib/commonjs/dialog/index.js.map +1 -1
  17. package/lib/commonjs/dialog/index.web.js +7 -0
  18. package/lib/commonjs/dialog/index.web.js.map +1 -1
  19. package/lib/commonjs/index.js +40 -4
  20. package/lib/commonjs/index.js.map +1 -1
  21. package/lib/commonjs/index.web.js +84 -48
  22. package/lib/commonjs/index.web.js.map +1 -1
  23. package/lib/commonjs/react-native-className.d.js +6 -0
  24. package/lib/commonjs/react-native-className.d.js.map +1 -0
  25. package/lib/commonjs/{search-input → search}/index.js +5 -3
  26. package/lib/commonjs/search/index.js.map +1 -0
  27. package/lib/commonjs/settings-list/SettingsList.js +5 -1
  28. package/lib/commonjs/settings-list/SettingsList.js.map +1 -1
  29. package/lib/commonjs/surfaces/SurfaceHost.js +202 -0
  30. package/lib/commonjs/surfaces/SurfaceHost.js.map +1 -0
  31. package/lib/commonjs/surfaces/api.js +83 -0
  32. package/lib/commonjs/surfaces/api.js.map +1 -0
  33. package/lib/commonjs/surfaces/index.js +82 -0
  34. package/lib/commonjs/surfaces/index.js.map +1 -0
  35. package/lib/commonjs/surfaces/index.web.js +77 -0
  36. package/lib/commonjs/surfaces/index.web.js.map +1 -0
  37. package/lib/commonjs/surfaces/prompts.js +154 -0
  38. package/lib/commonjs/surfaces/prompts.js.map +1 -0
  39. package/lib/commonjs/surfaces/surfaceStore.js +172 -0
  40. package/lib/commonjs/surfaces/surfaceStore.js.map +1 -0
  41. package/lib/commonjs/surfaces/types.js +6 -0
  42. package/lib/commonjs/surfaces/types.js.map +1 -0
  43. package/lib/commonjs/surfaces/useSurface.js +36 -0
  44. package/lib/commonjs/surfaces/useSurface.js.map +1 -0
  45. package/lib/commonjs/text-field/index.js +22 -6
  46. package/lib/commonjs/text-field/index.js.map +1 -1
  47. package/lib/module/bottom-sheet/BottomSheetBase.js +34 -12
  48. package/lib/module/bottom-sheet/BottomSheetBase.js.map +1 -1
  49. package/lib/module/combobox/Combobox.js +3 -3
  50. package/lib/module/combobox/Combobox.js.map +1 -1
  51. package/lib/module/command/Command.js +3 -3
  52. package/lib/module/command/Command.js.map +1 -1
  53. package/lib/module/dialog/Dialog.js +88 -10
  54. package/lib/module/dialog/Dialog.js.map +1 -1
  55. package/lib/module/dialog/Dialog.web.js +179 -21
  56. package/lib/module/dialog/Dialog.web.js.map +1 -1
  57. package/lib/module/dialog/DialogBottomSheet.js +85 -30
  58. package/lib/module/dialog/DialogBottomSheet.js.map +1 -1
  59. package/lib/module/dialog/DialogHeader.js +356 -0
  60. package/lib/module/dialog/DialogHeader.js.map +1 -0
  61. package/lib/module/dialog/index.js +1 -0
  62. package/lib/module/dialog/index.js.map +1 -1
  63. package/lib/module/dialog/index.web.js +1 -0
  64. package/lib/module/dialog/index.web.js.map +1 -1
  65. package/lib/module/index.js +7 -2
  66. package/lib/module/index.js.map +1 -1
  67. package/lib/module/index.web.js +7 -2
  68. package/lib/module/index.web.js.map +1 -1
  69. package/lib/module/react-native-className.d.js +20 -0
  70. package/lib/module/react-native-className.d.js.map +1 -0
  71. package/lib/module/{search-input → search}/index.js +6 -2
  72. package/lib/module/search/index.js.map +1 -0
  73. package/lib/module/settings-list/SettingsList.js +5 -1
  74. package/lib/module/settings-list/SettingsList.js.map +1 -1
  75. package/lib/module/surfaces/SurfaceHost.js +197 -0
  76. package/lib/module/surfaces/SurfaceHost.js.map +1 -0
  77. package/lib/module/surfaces/api.js +48 -0
  78. package/lib/module/surfaces/api.js.map +1 -0
  79. package/lib/module/surfaces/index.js +24 -0
  80. package/lib/module/surfaces/index.js.map +1 -0
  81. package/lib/module/surfaces/index.web.js +19 -0
  82. package/lib/module/surfaces/index.web.js.map +1 -0
  83. package/lib/module/surfaces/prompts.js +148 -0
  84. package/lib/module/surfaces/prompts.js.map +1 -0
  85. package/lib/module/surfaces/surfaceStore.js +159 -0
  86. package/lib/module/surfaces/surfaceStore.js.map +1 -0
  87. package/lib/module/surfaces/types.js +4 -0
  88. package/lib/module/surfaces/types.js.map +1 -0
  89. package/lib/module/surfaces/useSurface.js +31 -0
  90. package/lib/module/surfaces/useSurface.js.map +1 -0
  91. package/lib/module/text-field/index.js +22 -6
  92. package/lib/module/text-field/index.js.map +1 -1
  93. package/lib/typescript/commonjs/bottom-sheet/BottomSheetBase.d.ts +23 -0
  94. package/lib/typescript/commonjs/bottom-sheet/BottomSheetBase.d.ts.map +1 -1
  95. package/lib/typescript/commonjs/combobox/Combobox.d.ts +1 -1
  96. package/lib/typescript/commonjs/command/Command.d.ts +1 -1
  97. package/lib/typescript/commonjs/dialog/Dialog.d.ts.map +1 -1
  98. package/lib/typescript/commonjs/dialog/Dialog.web.d.ts.map +1 -1
  99. package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts +2 -2
  100. package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts.map +1 -1
  101. package/lib/typescript/commonjs/dialog/DialogHeader.d.ts +86 -0
  102. package/lib/typescript/commonjs/dialog/DialogHeader.d.ts.map +1 -0
  103. package/lib/typescript/commonjs/dialog/index.d.ts +2 -1
  104. package/lib/typescript/commonjs/dialog/index.d.ts.map +1 -1
  105. package/lib/typescript/commonjs/dialog/index.web.d.ts +2 -1
  106. package/lib/typescript/commonjs/dialog/index.web.d.ts.map +1 -1
  107. package/lib/typescript/commonjs/dialog/types.d.ts +85 -0
  108. package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
  109. package/lib/typescript/commonjs/icons/common.d.ts +1 -0
  110. package/lib/typescript/commonjs/icons/common.d.ts.map +1 -1
  111. package/lib/typescript/commonjs/index.d.ts +5 -3
  112. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  113. package/lib/typescript/commonjs/index.web.d.ts +5 -3
  114. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  115. package/lib/typescript/commonjs/input-group/types.d.ts +1 -1
  116. package/lib/typescript/commonjs/{search-input → search}/index.d.ts +1 -1
  117. package/lib/typescript/commonjs/search/index.d.ts.map +1 -0
  118. package/lib/typescript/commonjs/surfaces/SurfaceHost.d.ts +25 -0
  119. package/lib/typescript/commonjs/surfaces/SurfaceHost.d.ts.map +1 -0
  120. package/lib/typescript/commonjs/surfaces/api.d.ts +41 -0
  121. package/lib/typescript/commonjs/surfaces/api.d.ts.map +1 -0
  122. package/lib/typescript/commonjs/surfaces/index.d.ts +25 -0
  123. package/lib/typescript/commonjs/surfaces/index.d.ts.map +1 -0
  124. package/lib/typescript/commonjs/surfaces/index.web.d.ts +20 -0
  125. package/lib/typescript/commonjs/surfaces/index.web.d.ts.map +1 -0
  126. package/lib/typescript/commonjs/surfaces/prompts.d.ts +13 -0
  127. package/lib/typescript/commonjs/surfaces/prompts.d.ts.map +1 -0
  128. package/lib/typescript/commonjs/surfaces/surfaceStore.d.ts +51 -0
  129. package/lib/typescript/commonjs/surfaces/surfaceStore.d.ts.map +1 -0
  130. package/lib/typescript/commonjs/surfaces/types.d.ts +161 -0
  131. package/lib/typescript/commonjs/surfaces/types.d.ts.map +1 -0
  132. package/lib/typescript/commonjs/surfaces/useSurface.d.ts +21 -0
  133. package/lib/typescript/commonjs/surfaces/useSurface.d.ts.map +1 -0
  134. package/lib/typescript/commonjs/text-field/index.d.ts +2 -1
  135. package/lib/typescript/commonjs/text-field/index.d.ts.map +1 -1
  136. package/lib/typescript/module/bottom-sheet/BottomSheetBase.d.ts +23 -0
  137. package/lib/typescript/module/bottom-sheet/BottomSheetBase.d.ts.map +1 -1
  138. package/lib/typescript/module/combobox/Combobox.d.ts +1 -1
  139. package/lib/typescript/module/command/Command.d.ts +1 -1
  140. package/lib/typescript/module/dialog/Dialog.d.ts.map +1 -1
  141. package/lib/typescript/module/dialog/Dialog.web.d.ts.map +1 -1
  142. package/lib/typescript/module/dialog/DialogBottomSheet.d.ts +2 -2
  143. package/lib/typescript/module/dialog/DialogBottomSheet.d.ts.map +1 -1
  144. package/lib/typescript/module/dialog/DialogHeader.d.ts +86 -0
  145. package/lib/typescript/module/dialog/DialogHeader.d.ts.map +1 -0
  146. package/lib/typescript/module/dialog/index.d.ts +2 -1
  147. package/lib/typescript/module/dialog/index.d.ts.map +1 -1
  148. package/lib/typescript/module/dialog/index.web.d.ts +2 -1
  149. package/lib/typescript/module/dialog/index.web.d.ts.map +1 -1
  150. package/lib/typescript/module/dialog/types.d.ts +85 -0
  151. package/lib/typescript/module/dialog/types.d.ts.map +1 -1
  152. package/lib/typescript/module/icons/common.d.ts +1 -0
  153. package/lib/typescript/module/icons/common.d.ts.map +1 -1
  154. package/lib/typescript/module/index.d.ts +5 -3
  155. package/lib/typescript/module/index.d.ts.map +1 -1
  156. package/lib/typescript/module/index.web.d.ts +5 -3
  157. package/lib/typescript/module/index.web.d.ts.map +1 -1
  158. package/lib/typescript/module/input-group/types.d.ts +1 -1
  159. package/lib/typescript/module/{search-input → search}/index.d.ts +1 -1
  160. package/lib/typescript/module/search/index.d.ts.map +1 -0
  161. package/lib/typescript/module/surfaces/SurfaceHost.d.ts +25 -0
  162. package/lib/typescript/module/surfaces/SurfaceHost.d.ts.map +1 -0
  163. package/lib/typescript/module/surfaces/api.d.ts +41 -0
  164. package/lib/typescript/module/surfaces/api.d.ts.map +1 -0
  165. package/lib/typescript/module/surfaces/index.d.ts +25 -0
  166. package/lib/typescript/module/surfaces/index.d.ts.map +1 -0
  167. package/lib/typescript/module/surfaces/index.web.d.ts +20 -0
  168. package/lib/typescript/module/surfaces/index.web.d.ts.map +1 -0
  169. package/lib/typescript/module/surfaces/prompts.d.ts +13 -0
  170. package/lib/typescript/module/surfaces/prompts.d.ts.map +1 -0
  171. package/lib/typescript/module/surfaces/surfaceStore.d.ts +51 -0
  172. package/lib/typescript/module/surfaces/surfaceStore.d.ts.map +1 -0
  173. package/lib/typescript/module/surfaces/types.d.ts +161 -0
  174. package/lib/typescript/module/surfaces/types.d.ts.map +1 -0
  175. package/lib/typescript/module/surfaces/useSurface.d.ts +21 -0
  176. package/lib/typescript/module/surfaces/useSurface.d.ts.map +1 -0
  177. package/lib/typescript/module/text-field/index.d.ts +2 -1
  178. package/lib/typescript/module/text-field/index.d.ts.map +1 -1
  179. package/package.json +24 -8
  180. package/src/__tests__/BottomSheet.test.tsx +47 -0
  181. package/src/__tests__/DialogBottomSheet.test.tsx +30 -5
  182. package/src/__tests__/surfaceStore.test.ts +219 -0
  183. package/src/bottom-sheet/BottomSheetBase.tsx +59 -10
  184. package/src/combobox/Combobox.tsx +3 -3
  185. package/src/command/Command.tsx +3 -3
  186. package/src/dialog/Dialog.tsx +88 -7
  187. package/src/dialog/Dialog.web.tsx +179 -29
  188. package/src/dialog/DialogBottomSheet.tsx +90 -28
  189. package/src/dialog/DialogHeader.tsx +420 -0
  190. package/src/dialog/index.ts +2 -0
  191. package/src/dialog/index.web.ts +2 -0
  192. package/src/dialog/types.ts +86 -0
  193. package/src/index.ts +18 -1
  194. package/src/index.web.ts +18 -1
  195. package/src/input-group/types.ts +1 -1
  196. package/src/react-native-className.d.ts +38 -0
  197. package/src/{search-input → search}/index.tsx +8 -5
  198. package/src/settings-list/SettingsList.tsx +5 -1
  199. package/src/surfaces/SurfaceHost.tsx +222 -0
  200. package/src/surfaces/api.ts +55 -0
  201. package/src/surfaces/index.ts +38 -0
  202. package/src/surfaces/index.web.ts +33 -0
  203. package/src/surfaces/prompts.tsx +178 -0
  204. package/src/surfaces/surfaceStore.ts +168 -0
  205. package/src/surfaces/types.ts +172 -0
  206. package/src/surfaces/useSurface.ts +33 -0
  207. package/src/text-field/index.tsx +24 -5
  208. package/lib/commonjs/search-input/index.js.map +0 -1
  209. package/lib/module/search-input/index.js.map +0 -1
  210. package/lib/typescript/commonjs/search-input/index.d.ts.map +0 -1
  211. package/lib/typescript/module/search-input/index.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC7D,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKhF,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,UAAU,EACV,UAAU,EACV,YAAY,EACZ,OAAO,EACP,MAAM,EACN,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,cAAc,EACd,yBAAyB,EACzB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,UAAU,GACX,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,mBAAmB,E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AS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGtC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACvE,YAAY,EACV,gBAAgB,EAChB,sBAAsB,EACtB,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG3D,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAG/B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
@@ -16,8 +16,10 @@ 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
+ export { surfaces, SurfaceProvider, SurfaceHost, useSurface } from './surfaces/index.web';
22
+ export type { SurfacePresentation, PresentOptions, SurfaceControls, SurfaceRenderFn, SurfaceStatus, SurfaceEntry, SurfaceConfirmOptions, SurfacePromptOptions, } from './surfaces/index.web';
21
23
  export * from './button/index.web';
22
24
  export { Fab } from './fab/index.web';
23
25
  export type { FabProps, FabVariant, FabSize, FabPlacement } from './fab/index.web';
@@ -61,7 +63,7 @@ export { AnimatedCheck } from './animated-check';
61
63
  export type { AnimatedCheckProps, AnimatedCheckRef } from './animated-check';
62
64
  export * from './text-field';
63
65
  export * from './segmented-control';
64
- export { SearchInput } from './search-input';
66
+ export { Search } from './search';
65
67
  export { Label } from './label';
66
68
  export type { LabelProps } from './label';
67
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,mBAA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ChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACjF,YAAY,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"}
@@ -19,7 +19,7 @@ export interface InputGroupAddonProps {
19
19
  export interface InputGroupProps {
20
20
  /**
21
21
  * Group children. Place `InputGroup.Addon` elements before/after the input
22
- * (a Bloom `TextFieldInput`, a `SearchInput`, or any control). The middle
22
+ * (a Bloom `TextFieldInput`, a `Search`, or any control). The middle
23
23
  * child stretches to fill.
24
24
  */
25
25
  children: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import { type TextInput } from 'react-native';
2
2
  import { type TextFieldInputProps } from '../text-field';
3
- export declare const SearchInput: import("react").ForwardRefExoticComponent<Omit<TextFieldInputProps, "label"> & {
3
+ export declare const Search: import("react").ForwardRefExoticComponent<Omit<TextFieldInputProps, "label"> & {
4
4
  label?: TextFieldInputProps["label"];
5
5
  /**
6
6
  * Called when the user presses the clear (X) button.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/search/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,SAAS,EAAQ,MAAM,cAAc,CAAC;AAK9D,OAAO,EAA4C,KAAK,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAenG,eAAO,MAAM,MAAM;YAPT,mBAAmB,CAAC,OAAO,CAAC;IACpC;;OAEG;kBACW,MAAM,IAAI;6CAwDzB,CAAC"}
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import type { DialogProps } from '../dialog/types';
3
+ type DialogComponent = React.ComponentType<DialogProps>;
4
+ /**
5
+ * Build the `<SurfaceHost>` + `<SurfaceProvider>` bound to a platform `Dialog`.
6
+ *
7
+ * `Dialog` is platform-forked (native `BottomSheet`-backed vs. pure-DOM web
8
+ * overlay), so — like `createAlertDialog` — the platform entry files
9
+ * (`index.ts` / `index.web.ts`) inject the correct one. The stack logic below is
10
+ * single-source, no duplication.
11
+ */
12
+ export declare function createSurfaceHost(Dialog: DialogComponent): {
13
+ SurfaceHost: {
14
+ (): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ SurfaceProvider: {
18
+ ({ children }: {
19
+ children: React.ReactNode;
20
+ }): import("react/jsx-runtime").JSX.Element;
21
+ displayName: string;
22
+ };
23
+ };
24
+ export {};
25
+ //# sourceMappingURL=SurfaceHost.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SurfaceHost.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/SurfaceHost.tsx"],"names":[],"mappings":"AAAA,OAAO,KAKN,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAYnD,KAAK,eAAe,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;AA+BxD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,eAAe;;;;;;uBAqGhB;YAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;SAAE;;;EAcrE"}
@@ -0,0 +1,41 @@
1
+ import { dismissAll, dismissToRoot, present } from './surfaceStore';
2
+ import { confirm, prompt } from './prompts';
3
+ import type { PresentOptions, SurfaceRenderFn } from './types';
4
+ /**
5
+ * Dismiss the TOP surface, resolving its `present()` promise with `result`.
6
+ * The public counterpart of the store's `dismissTop`.
7
+ */
8
+ declare function dismiss(result?: unknown): void;
9
+ /**
10
+ * Dismiss a SPECIFIC surface by id, resolving its `present()` promise with
11
+ * `result`. Rarely needed — most call sites use `dismiss()` (top) or the
12
+ * per-surface `SurfaceControls.dismiss`.
13
+ */
14
+ declare function dismissById(id: string, result?: unknown): void;
15
+ /**
16
+ * The shared imperative surface-stack API — a module singleton (mirrors
17
+ * `alert()`'s shape) so any consumer, in the SDK or an app, presents into the
18
+ * SAME coordinated Bloom stack from anywhere without threading a provider.
19
+ *
20
+ * Exposed at the package root as `surfaces` (avoids a bare `present`/`confirm`
21
+ * name clash with the existing `alert-dialog` `confirm`); the individual
22
+ * functions are also named exports of `@oxyhq/bloom/surfaces` for direct import.
23
+ */
24
+ export declare const surfaces: {
25
+ /** Present a new surface on top. Resolves with the dismissal result. */
26
+ readonly present: <Result = unknown>(render: SurfaceRenderFn, opts?: PresentOptions) => Promise<Result>;
27
+ /** Dismiss the top surface. */
28
+ readonly dismiss: typeof dismiss;
29
+ /** Dismiss a specific surface by id. */
30
+ readonly dismissById: typeof dismissById;
31
+ /** Dismiss everything above the root surface. */
32
+ readonly dismissToRoot: typeof dismissToRoot;
33
+ /** Dismiss the entire stack (resolves pending awaiters with `undefined`). */
34
+ readonly dismissAll: typeof dismissAll;
35
+ /** Present a confirm surface; resolves `true`/`false`. */
36
+ readonly confirm: typeof confirm;
37
+ /** Present a prompt surface; resolves the string or `null`. */
38
+ readonly prompt: typeof prompt;
39
+ };
40
+ export { confirm, dismiss, dismissAll, dismissById, dismissToRoot, present, prompt };
41
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/api.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,aAAa,EAEb,OAAO,EAER,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/D;;;GAGG;AACH,iBAAS,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAEvC;AAED;;;;GAIG;AACH,iBAAS,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAEvD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ;IACnB,wEAAwE;uBAC9D,MAAM,oBAAoB,eAAe,SAAS,cAAc;IAE1E,+BAA+B;;IAE/B,wCAAwC;;IAExC,iDAAiD;;IAEjD,6EAA6E;;IAE7E,0DAA0D;;IAE1D,+DAA+D;;CAEvD,CAAC;AAEX,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * The shared, content-agnostic SURFACE STACK.
3
+ *
4
+ * `<SurfaceProvider>`/`<SurfaceHost>` render the coordinated stack; the
5
+ * imperative `surfaces` API (+ its named functions) present into it from
6
+ * anywhere; `useSurface()` gives a presented surface its own controls.
7
+ *
8
+ * `SurfaceHost`/`SurfaceProvider` are bound to the NATIVE `Dialog` here; the web
9
+ * fork (`./index.web`) binds the web `Dialog`. The store, imperative API, hook,
10
+ * and types are platform-agnostic and shared by both.
11
+ */
12
+ declare const SurfaceHost: {
13
+ (): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ }, SurfaceProvider: {
16
+ ({ children }: {
17
+ children: React.ReactNode;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ displayName: string;
20
+ };
21
+ export { SurfaceHost, SurfaceProvider };
22
+ export { surfaces, present, dismiss, dismissById, dismissToRoot, dismissAll, confirm, prompt, } from './api';
23
+ export { useSurface } from './useSurface';
24
+ export type { SurfacePresentation, PresentOptions, SurfaceControls, SurfaceRenderFn, SurfaceStatus, SurfaceEntry, SurfaceConfirmOptions, SurfacePromptOptions, } from './types';
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,QAAA,MAAQ,WAAW;;;GAAE,eAAe;;;;;CAA8B,CAAC;AAEnE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;AACxC,OAAO,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,aAAa,EACb,UAAU,EACV,OAAO,EACP,MAAM,GACP,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,eAAe,EACf,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Web variant of the surface stack barrel. Identical surface area to the native
3
+ * `./index.ts` — it just binds the web-fork `Dialog` (`Dialog.web.tsx`, a
4
+ * pure-DOM overlay) instead of the native `BottomSheet`-backed one. The store,
5
+ * imperative API, hook, and types are shared, platform-agnostic modules.
6
+ */
7
+ declare const SurfaceHost: {
8
+ (): import("react/jsx-runtime").JSX.Element;
9
+ displayName: string;
10
+ }, SurfaceProvider: {
11
+ ({ children }: {
12
+ children: React.ReactNode;
13
+ }): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ export { SurfaceHost, SurfaceProvider };
17
+ export { surfaces, present, dismiss, dismissById, dismissToRoot, dismissAll, confirm, prompt, } from './api';
18
+ export { useSurface } from './useSurface';
19
+ export type { SurfacePresentation, PresentOptions, SurfaceControls, SurfaceRenderFn, SurfaceStatus, SurfaceEntry, SurfaceConfirmOptions, SurfacePromptOptions, } from './types';
20
+ //# sourceMappingURL=index.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/index.web.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,QAAA,MAAQ,WAAW;;;GAAE,eAAe;;;;;CAA8B,CAAC;AAEnE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;AACxC,OAAO,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,WAAW,EACX,aAAa,EACb,UAAU,EACV,OAAO,EACP,MAAM,GACP,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,eAAe,EACf,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { SurfaceConfirmOptions, SurfacePromptOptions } from './types';
2
+ /**
3
+ * Present a confirm surface stacked on top of anything currently open. Resolves
4
+ * `true` on confirm, `false` on cancel OR on backdrop/Escape/back dismissal.
5
+ */
6
+ export declare function confirm(options: SurfaceConfirmOptions): Promise<boolean>;
7
+ /**
8
+ * Present a prompt surface stacked on top of anything currently open. Resolves
9
+ * the entered string on submit, or `null` on cancel OR backdrop/Escape/back
10
+ * dismissal.
11
+ */
12
+ export declare function prompt(options: SurfacePromptOptions): Promise<string | null>;
13
+ //# sourceMappingURL=prompts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/prompts.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,qBAAqB,EAErB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAyIjB;;;GAGG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,OAAO,CAAC,CASxE;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAS5E"}
@@ -0,0 +1,51 @@
1
+ import type { PresentOptions, SurfaceEntry, SurfaceRenderFn } from './types';
2
+ /** Subscribe to stack changes. Returns an unsubscribe fn. */
3
+ export declare function subscribe(listener: () => void): () => void;
4
+ /** Current stack snapshot (stable ref while unchanged). Bottom→top. */
5
+ export declare function getSnapshot(): readonly SurfaceEntry[];
6
+ /**
7
+ * Present a new surface on TOP of the stack. Returns a promise that resolves
8
+ * with the value passed to `dismiss(result)` (or `undefined` when the surface is
9
+ * dismissed without a result / by a stack-wide clear).
10
+ */
11
+ export declare function present<Result = unknown>(render: SurfaceRenderFn, opts?: PresentOptions): Promise<Result>;
12
+ /**
13
+ * Request dismissal of a surface. RESOLVES THE PROMISE IMMEDIATELY (the exit
14
+ * animation that follows is cosmetic) and flips the entry to `'closing'` so the
15
+ * host runs its exit animation. Resolution is resolve-once via the `settled`
16
+ * guard — a second request (or the host's post-exit `onClose`) never re-resolves
17
+ * with a different value. Bumps the entry `generation` so a completion callback
18
+ * from a superseded cycle is inert.
19
+ */
20
+ export declare function requestDismiss(id: string, result?: unknown): void;
21
+ /**
22
+ * Splice a surface out of the stack once its exit animation has settled. Called
23
+ * by the host from the `Dialog`'s post-exit `onClose`. Idempotent and gated on
24
+ * `'closing'` status: a stale/duplicate call — or one for an entry that is not
25
+ * actually closing — is a no-op, which (together with unique entry ids) is the
26
+ * stale-callback hygiene `BottomSheetBase`'s generation guard provides for its
27
+ * reused instance.
28
+ */
29
+ export declare function finalizeClose(id: string): void;
30
+ /** Dismiss the TOP surface, resolving its promise with `result`. */
31
+ export declare function dismissTop(result?: unknown): void;
32
+ /**
33
+ * Dismiss every surface ABOVE the bottom-most one, keeping the root surface
34
+ * open. Pending awaiters of the dismissed surfaces resolve with `undefined` so
35
+ * they never hang. No-op with 0 or 1 surfaces.
36
+ */
37
+ export declare function dismissToRoot(): void;
38
+ /**
39
+ * Dismiss the ENTIRE stack. Every pending awaiter resolves with `undefined` so
40
+ * none hang.
41
+ */
42
+ export declare function dismissAll(): void;
43
+ /**
44
+ * Hard-reset the stack synchronously (no exit animation), resolving all pending
45
+ * awaiters with `undefined`. Used when the host provider unmounts so no
46
+ * `present()` promise is stranded.
47
+ */
48
+ export declare function resetSurfaces(): void;
49
+ /** Test-only: hard-reset without notifying (drops listeners' work). */
50
+ export declare function __resetSurfacesForTests(): void;
51
+ //# sourceMappingURL=surfaceStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surfaceStore.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/surfaceStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,eAAe,EAChB,MAAM,SAAS,CAAC;AAoCjB,6DAA6D;AAC7D,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAK1D;AAED,uEAAuE;AACvE,wBAAgB,WAAW,IAAI,SAAS,YAAY,EAAE,CAErD;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,MAAM,GAAG,OAAO,EACtC,MAAM,EAAE,eAAe,EACvB,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAAC,MAAM,CAAC,CAcjB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAmBjE;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAM9C;AAED,oEAAoE;AACpE,wBAAgB,UAAU,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAGjD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,IAAI,CAIpC;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,IAAI,CAGjC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,IAAI,CAQpC;AAED,uEAAuE;AACvE,wBAAgB,uBAAuB,IAAI,IAAI,CAG9C"}
@@ -0,0 +1,161 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { StyleProp, ViewStyle } from 'react-native';
3
+ import type { DialogHeaderConfig, DialogInset, ResponsiveDialogPlacement } from '../dialog/types';
4
+ /**
5
+ * How a surface renders — the placement + the `Dialog` sizing/chrome options a
6
+ * surface needs. This is the CONTENT-AGNOSTIC presentation config: it never
7
+ * references a route or screen name (Bloom's stack knows nothing about routes;
8
+ * the SDK layers its route registry on top).
9
+ *
10
+ * The values map 1:1 onto the shared {@link ../dialog/types#DialogProps}, so a
11
+ * surface reads/behaves identically to a hand-mounted `<Dialog>` with the same
12
+ * props — only stacked/coordinated by {@link SurfaceHost}.
13
+ */
14
+ export interface SurfacePresentation {
15
+ /**
16
+ * Surface anchor. Defaults to `{ base: 'bottom', md: 'center' }` — a bottom
17
+ * sheet on narrow viewports that becomes a centered modal on wide ones (the
18
+ * ecosystem's canonical responsive "sheet"). Pass `'center'` for a plain
19
+ * modal, `'left'`/`'right'` for a drawer, or any responsive placement map.
20
+ */
21
+ placement?: ResponsiveDialogPlacement;
22
+ /** Side-sheet width (px) on wide screens. Forwarded to `Dialog`. */
23
+ width?: number;
24
+ /** Centered-card max width (px). Forwarded to `Dialog`. */
25
+ maxWidth?: number;
26
+ /** Bottom-sheet max height as a fraction of the viewport height. */
27
+ maxHeightRatio?: number;
28
+ /** Side-sheet inset (px) from the root overlay's edges. */
29
+ inset?: DialogInset;
30
+ /** Whether to render the drag handle in bottom-sheet mode. */
31
+ showHandle?: boolean;
32
+ /**
33
+ * Whether tapping the backdrop / pressing Escape / Android-back dismisses the
34
+ * surface. Defaults to `true`. Set `false` for a blocking surface that must be
35
+ * dismissed programmatically (e.g. an unanswered required prompt).
36
+ */
37
+ dismissOnBackdrop?: boolean;
38
+ /** Inner padding (px) of the surface content container. Forwarded to `Dialog`. */
39
+ contentPadding?: number;
40
+ /**
41
+ * Turns on the Dialog's OWN navigation header for this surface (sticky gradient
42
+ * nav bar + large collapsing title over the surface's scroll content). Seeds
43
+ * the header content; a mounted screen refines it at runtime via
44
+ * `useDialogHeader`. Omit for a plain surface (a confirm/alert dialog). Forwarded
45
+ * to `Dialog`.
46
+ */
47
+ header?: DialogHeaderConfig;
48
+ /**
49
+ * Whether the surface wraps its content in an internal scroll container.
50
+ * Defaults to `true`. Set `false` when the surface's content owns its own
51
+ * scrolling primitive (a `FlatList` / `SectionList` / VirtualizedList, or its
52
+ * own `ScrollView`) so the host does not nest it in a ScrollView. Forwarded
53
+ * to `Dialog`.
54
+ */
55
+ scrollable?: boolean;
56
+ /** Style overrides applied to the inner content container. */
57
+ style?: StyleProp<ViewStyle>;
58
+ /** Style overrides for the side/bottom placement panel surface. */
59
+ panelStyle?: StyleProp<ViewStyle>;
60
+ /** NativeWind classes for the side/bottom placement panel surface. */
61
+ panelClassName?: string;
62
+ /** Style for the root overlay (theme-var scope, rail offset, etc.). */
63
+ containerStyle?: StyleProp<ViewStyle>;
64
+ /** NativeWind classes for the root overlay. */
65
+ containerClassName?: string;
66
+ /** Accessibility label applied to the surface's dialog role. */
67
+ label?: string;
68
+ /** Stable testID forwarded to the underlying `Dialog`. */
69
+ testID?: string;
70
+ }
71
+ /** Options accepted by `present` / `SurfaceControls.present`. */
72
+ export type PresentOptions = SurfacePresentation;
73
+ /**
74
+ * Controls handed to a presented surface — both as the argument to its render
75
+ * function AND via {@link ../surfaces/useSurface#useSurface}. This is the DEPTH
76
+ * axis only: a surface can dismiss ITSELF (resolving its own `present()`
77
+ * promise) or `present` a CHILD surface stacked above it. Navigation WITHIN a
78
+ * surface (route history / drill-in) is deliberately NOT here — that is the
79
+ * SDK's route layer, which composes on top of this stack.
80
+ */
81
+ export interface SurfaceControls {
82
+ /**
83
+ * Dismiss THIS surface, resolving the promise returned by the `present` call
84
+ * that created it with `result` (or `undefined`). Resolves immediately; the
85
+ * exit animation is cosmetic.
86
+ */
87
+ dismiss: (result?: unknown) => void;
88
+ /**
89
+ * Stack a CHILD surface directly above this one. Resolves with the child's
90
+ * dismissal result. The child paints above (higher layer) and captures
91
+ * backdrop/Escape/back until it is dismissed.
92
+ */
93
+ present: <Result = unknown>(render: SurfaceRenderFn, opts?: PresentOptions) => Promise<Result>;
94
+ }
95
+ /** A surface's content factory — receives its own {@link SurfaceControls}. */
96
+ export type SurfaceRenderFn = (surface: SurfaceControls) => ReactNode;
97
+ /** Lifecycle status of a stacked surface. */
98
+ export type SurfaceStatus = 'open' | 'closing';
99
+ /**
100
+ * One entry in the surface stack. `resolve` fulfils the `present()` promise; the
101
+ * `settled` guard makes resolution idempotent (resolve-once); `generation` is
102
+ * the per-entry stale-callback guard (carried from `BottomSheetBase`'s
103
+ * `closeGenerationRef`, keyed per entry id) so a completion callback from a
104
+ * superseded close cycle can never tear down the wrong state.
105
+ */
106
+ export interface SurfaceEntry {
107
+ id: string;
108
+ render: SurfaceRenderFn;
109
+ presentation: SurfacePresentation;
110
+ status: SurfaceStatus;
111
+ resolve: (result: unknown) => void;
112
+ settled: boolean;
113
+ generation: number;
114
+ }
115
+ /** Options for the built-in {@link ../surfaces/prompts#confirm} surface. */
116
+ export interface SurfaceConfirmOptions {
117
+ /** Headline. */
118
+ title: string;
119
+ /** Supporting copy. */
120
+ message?: string;
121
+ /** Confirm button label. Defaults to `'Confirm'`. */
122
+ confirmLabel?: string;
123
+ /** Cancel button label. Defaults to `'Cancel'`. */
124
+ cancelLabel?: string;
125
+ /** Style the confirm button as destructive (negative color). */
126
+ destructive?: boolean;
127
+ /** Hide the cancel button (a single-action acknowledgement). */
128
+ hideCancel?: boolean;
129
+ /**
130
+ * Backdrop / Escape / back dismiss (resolving `false`). Defaults to `true`;
131
+ * pass `false` for a blocking confirm that must be answered by a button.
132
+ */
133
+ dismissible?: boolean;
134
+ /** Placement override. Defaults to `'center'`. */
135
+ placement?: ResponsiveDialogPlacement;
136
+ }
137
+ /** Options for the built-in {@link ../surfaces/prompts#prompt} surface. */
138
+ export interface SurfacePromptOptions {
139
+ /** Headline. */
140
+ title: string;
141
+ /** Supporting copy. */
142
+ message?: string;
143
+ /** Input placeholder. */
144
+ placeholder?: string;
145
+ /** Initial input value. */
146
+ defaultValue?: string;
147
+ /** Accessibility label for the input. Defaults to the `title`. */
148
+ inputLabel?: string;
149
+ /** Submit button label. Defaults to `'OK'`. */
150
+ confirmLabel?: string;
151
+ /** Cancel button label. Defaults to `'Cancel'`. */
152
+ cancelLabel?: string;
153
+ /**
154
+ * Backdrop / Escape / back dismiss (resolving `null`). Defaults to `true`;
155
+ * pass `false` for a blocking prompt.
156
+ */
157
+ dismissible?: boolean;
158
+ /** Placement override. Defaults to `'center'`. */
159
+ placement?: ResponsiveDialogPlacement;
160
+ }
161
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAElG;;;;;;;;;GASG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,yBAAyB,CAAC;IACtC,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oEAAo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D,SAAS,CAAC,EAAE,yBAAyB,CAAC;CACvC"}
@@ -0,0 +1,21 @@
1
+ import type { SurfaceControls } from './types';
2
+ /**
3
+ * Context carrying the CURRENT surface's controls. The host wraps each presented
4
+ * surface's content in a provider bound to that entry's id, so a nested surface
5
+ * reads its OWN controls — `dismiss` targets this surface, `present` stacks a
6
+ * child above it.
7
+ */
8
+ export declare const SurfaceContext: import("react").Context<SurfaceControls | null>;
9
+ /**
10
+ * Read the current surface's {@link SurfaceControls} from inside a presented
11
+ * surface. Equivalent to the `surface` argument the render function receives —
12
+ * use whichever is convenient (props vs. context).
13
+ *
14
+ * DEPTH only: `dismiss` (resolve this surface's promise + close) and `present`
15
+ * (stack a child). Navigation within a surface is the SDK's route layer, not
16
+ * this hook.
17
+ *
18
+ * @throws if called outside a presented surface.
19
+ */
20
+ export declare function useSurface(): SurfaceControls;
21
+ //# sourceMappingURL=useSurface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSurface.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/useSurface.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,cAAc,iDAA8C,CAAC;AAG1E;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,IAAI,eAAe,CAQ5C"}
@@ -3,8 +3,9 @@ import { type TextStyleProp, type ViewStyleProp } from '../styles';
3
3
  import { type Props as SVGIconProps } from '../icons/common';
4
4
  export type TextFieldProps = React.PropsWithChildren<{
5
5
  isInvalid?: boolean;
6
+ radius?: number;
6
7
  } & ViewStyleProp>;
7
- export declare function TextField({ children, isInvalid, style }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function TextField({ children, isInvalid, radius, style }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
8
9
  export declare function useSharedInputStyles(): {
9
10
  chromeHover: ViewStyle;
10
11
  chromeFocus: ViewStyle;
@@ -1 +1 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ACd,iBAAiB,CAAC,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;CAC7D,CACF,2CAqBA;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,2CAkDA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxyhq/bloom",
3
- "version": "0.45.0",
3
+ "version": "0.48.0",
4
4
  "description": "Bloom UI — Oxy ecosystem component library for React Native + Expo + Web",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -28,6 +28,22 @@
28
28
  "default": "./lib/commonjs/index.js"
29
29
  }
30
30
  },
31
+ "./surfaces": {
32
+ "react-native": "./src/surfaces/index.ts",
33
+ "browser": {
34
+ "types": "./lib/typescript/module/surfaces/index.web.d.ts",
35
+ "import": "./lib/module/surfaces/index.web.js",
36
+ "require": "./lib/commonjs/surfaces/index.web.js"
37
+ },
38
+ "import": {
39
+ "types": "./lib/typescript/module/surfaces/index.d.ts",
40
+ "default": "./lib/module/surfaces/index.js"
41
+ },
42
+ "require": {
43
+ "types": "./lib/typescript/commonjs/surfaces/index.d.ts",
44
+ "default": "./lib/commonjs/surfaces/index.js"
45
+ }
46
+ },
31
47
  "./image-resolver": {
32
48
  "react-native": "./src/image-resolver/index.ts",
33
49
  "import": {
@@ -601,15 +617,15 @@
601
617
  "default": "./lib/commonjs/segmented-control/index.js"
602
618
  }
603
619
  },
604
- "./search-input": {
605
- "react-native": "./src/search-input/index.tsx",
620
+ "./search": {
621
+ "react-native": "./src/search/index.tsx",
606
622
  "import": {
607
- "types": "./lib/typescript/module/search-input/index.d.ts",
608
- "default": "./lib/module/search-input/index.js"
623
+ "types": "./lib/typescript/module/search/index.d.ts",
624
+ "default": "./lib/module/search/index.js"
609
625
  },
610
626
  "require": {
611
- "types": "./lib/typescript/commonjs/search-input/index.d.ts",
612
- "default": "./lib/commonjs/search-input/index.js"
627
+ "types": "./lib/typescript/commonjs/search/index.d.ts",
628
+ "default": "./lib/commonjs/search/index.js"
613
629
  }
614
630
  },
615
631
  "./admonition": {
@@ -1027,7 +1043,7 @@
1027
1043
  "grid",
1028
1044
  "text-field",
1029
1045
  "segmented-control",
1030
- "search-input",
1046
+ "search",
1031
1047
  "admonition",
1032
1048
  "menu",
1033
1049
  "tooltip",