@oxy.so/bloom 7.18.0 → 7.19.1

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 (208) hide show
  1. package/docs/adoption-matrix.mdx +8 -8
  2. package/docs/button.mdx +8 -0
  3. package/docs/carousel.mdx +28 -2
  4. package/docs/dialog.mdx +16 -0
  5. package/docs/popover.mdx +8 -0
  6. package/docs/radio.mdx +15 -0
  7. package/docs/search.mdx +19 -0
  8. package/lib/commonjs/bottom-sheet/BottomSheetBase.js +4 -3
  9. package/lib/commonjs/bottom-sheet/BottomSheetBase.js.map +1 -1
  10. package/lib/commonjs/button/Button.js +7 -2
  11. package/lib/commonjs/button/Button.js.map +1 -1
  12. package/lib/commonjs/button/Button.web.js +5 -1
  13. package/lib/commonjs/button/Button.web.js.map +1 -1
  14. package/lib/commonjs/carousel/Carousel.js +52 -15
  15. package/lib/commonjs/carousel/Carousel.js.map +1 -1
  16. package/lib/commonjs/dialog/Dialog.js +11 -3
  17. package/lib/commonjs/dialog/Dialog.js.map +1 -1
  18. package/lib/commonjs/dialog/Dialog.web.js +15 -6
  19. package/lib/commonjs/dialog/Dialog.web.js.map +1 -1
  20. package/lib/commonjs/dialog/DialogBottomSheet.js +3 -0
  21. package/lib/commonjs/dialog/DialogBottomSheet.js.map +1 -1
  22. package/lib/commonjs/dialog/DialogHeader.js +9 -1
  23. package/lib/commonjs/dialog/DialogHeader.js.map +1 -1
  24. package/lib/commonjs/dialog/SheetShell.js +3 -0
  25. package/lib/commonjs/dialog/SheetShell.js.map +1 -1
  26. package/lib/commonjs/floating/FloatingPanel.js +5 -3
  27. package/lib/commonjs/floating/FloatingPanel.js.map +1 -1
  28. package/lib/commonjs/popover/Popover.js +2 -0
  29. package/lib/commonjs/popover/Popover.js.map +1 -1
  30. package/lib/commonjs/popover/Popover.web.js +2 -0
  31. package/lib/commonjs/popover/Popover.web.js.map +1 -1
  32. package/lib/commonjs/radio/Radio.js +71 -33
  33. package/lib/commonjs/radio/Radio.js.map +1 -1
  34. package/lib/commonjs/radio/RadioCard.js +3 -0
  35. package/lib/commonjs/radio/RadioCard.js.map +1 -1
  36. package/lib/commonjs/radio/context.js +9 -0
  37. package/lib/commonjs/radio/context.js.map +1 -0
  38. package/lib/commonjs/radio/use-radio-group-item.js +29 -0
  39. package/lib/commonjs/radio/use-radio-group-item.js.map +1 -0
  40. package/lib/commonjs/search/Search.js +29 -23
  41. package/lib/commonjs/search/Search.js.map +1 -1
  42. package/lib/commonjs/surface/use-surface-material.web.js +4 -4
  43. package/lib/commonjs/surface/use-surface-material.web.js.map +1 -1
  44. package/lib/commonjs/text-field/TextField.js +6 -4
  45. package/lib/commonjs/text-field/TextField.js.map +1 -1
  46. package/lib/module/bottom-sheet/BottomSheetBase.js +4 -3
  47. package/lib/module/bottom-sheet/BottomSheetBase.js.map +1 -1
  48. package/lib/module/button/Button.js +7 -2
  49. package/lib/module/button/Button.js.map +1 -1
  50. package/lib/module/button/Button.web.js +5 -1
  51. package/lib/module/button/Button.web.js.map +1 -1
  52. package/lib/module/carousel/Carousel.js +52 -15
  53. package/lib/module/carousel/Carousel.js.map +1 -1
  54. package/lib/module/dialog/Dialog.js +11 -3
  55. package/lib/module/dialog/Dialog.js.map +1 -1
  56. package/lib/module/dialog/Dialog.web.js +15 -6
  57. package/lib/module/dialog/Dialog.web.js.map +1 -1
  58. package/lib/module/dialog/DialogBottomSheet.js +3 -0
  59. package/lib/module/dialog/DialogBottomSheet.js.map +1 -1
  60. package/lib/module/dialog/DialogHeader.js +9 -1
  61. package/lib/module/dialog/DialogHeader.js.map +1 -1
  62. package/lib/module/dialog/SheetShell.js +3 -0
  63. package/lib/module/dialog/SheetShell.js.map +1 -1
  64. package/lib/module/floating/FloatingPanel.js +5 -3
  65. package/lib/module/floating/FloatingPanel.js.map +1 -1
  66. package/lib/module/popover/Popover.js +2 -0
  67. package/lib/module/popover/Popover.js.map +1 -1
  68. package/lib/module/popover/Popover.web.js +2 -0
  69. package/lib/module/popover/Popover.web.js.map +1 -1
  70. package/lib/module/radio/Radio.js +72 -34
  71. package/lib/module/radio/Radio.js.map +1 -1
  72. package/lib/module/radio/RadioCard.js +3 -0
  73. package/lib/module/radio/RadioCard.js.map +1 -1
  74. package/lib/module/radio/context.js +5 -0
  75. package/lib/module/radio/context.js.map +1 -0
  76. package/lib/module/radio/use-radio-group-item.js +26 -0
  77. package/lib/module/radio/use-radio-group-item.js.map +1 -0
  78. package/lib/module/search/Search.js +32 -26
  79. package/lib/module/search/Search.js.map +1 -1
  80. package/lib/module/surface/use-surface-material.web.js +4 -4
  81. package/lib/module/surface/use-surface-material.web.js.map +1 -1
  82. package/lib/module/text-field/TextField.js +6 -4
  83. package/lib/module/text-field/TextField.js.map +1 -1
  84. package/lib/typescript/commonjs/bottom-sheet/BottomSheetBase.d.ts.map +1 -1
  85. package/lib/typescript/commonjs/bottom-sheet/types.d.ts +2 -0
  86. package/lib/typescript/commonjs/bottom-sheet/types.d.ts.map +1 -1
  87. package/lib/typescript/commonjs/button/Button.d.ts.map +1 -1
  88. package/lib/typescript/commonjs/button/Button.web.d.ts.map +1 -1
  89. package/lib/typescript/commonjs/button/types.d.ts +7 -1
  90. package/lib/typescript/commonjs/button/types.d.ts.map +1 -1
  91. package/lib/typescript/commonjs/carousel/Carousel.d.ts +1 -1
  92. package/lib/typescript/commonjs/carousel/Carousel.d.ts.map +1 -1
  93. package/lib/typescript/commonjs/carousel/types.d.ts +11 -2
  94. package/lib/typescript/commonjs/carousel/types.d.ts.map +1 -1
  95. package/lib/typescript/commonjs/dialog/Dialog.web.d.ts.map +1 -1
  96. package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts +2 -2
  97. package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts.map +1 -1
  98. package/lib/typescript/commonjs/dialog/DialogHeader.d.ts +2 -0
  99. package/lib/typescript/commonjs/dialog/DialogHeader.d.ts.map +1 -1
  100. package/lib/typescript/commonjs/dialog/SheetShell.d.ts +2 -1
  101. package/lib/typescript/commonjs/dialog/SheetShell.d.ts.map +1 -1
  102. package/lib/typescript/commonjs/dialog/types.d.ts +2 -0
  103. package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
  104. package/lib/typescript/commonjs/floating/FloatingPanel.d.ts +1 -1
  105. package/lib/typescript/commonjs/floating/FloatingPanel.d.ts.map +1 -1
  106. package/lib/typescript/commonjs/floating/types.d.ts +1 -0
  107. package/lib/typescript/commonjs/floating/types.d.ts.map +1 -1
  108. package/lib/typescript/commonjs/popover/Popover.d.ts +1 -1
  109. package/lib/typescript/commonjs/popover/Popover.d.ts.map +1 -1
  110. package/lib/typescript/commonjs/popover/Popover.web.d.ts +1 -1
  111. package/lib/typescript/commonjs/popover/Popover.web.d.ts.map +1 -1
  112. package/lib/typescript/commonjs/popover/types.d.ts +4 -1
  113. package/lib/typescript/commonjs/popover/types.d.ts.map +1 -1
  114. package/lib/typescript/commonjs/radio/Radio.d.ts.map +1 -1
  115. package/lib/typescript/commonjs/radio/RadioCard.d.ts.map +1 -1
  116. package/lib/typescript/commonjs/radio/context.d.ts +9 -0
  117. package/lib/typescript/commonjs/radio/context.d.ts.map +1 -0
  118. package/lib/typescript/commonjs/radio/types.d.ts +2 -0
  119. package/lib/typescript/commonjs/radio/types.d.ts.map +1 -1
  120. package/lib/typescript/commonjs/radio/use-radio-group-item.d.ts +3 -0
  121. package/lib/typescript/commonjs/radio/use-radio-group-item.d.ts.map +1 -0
  122. package/lib/typescript/commonjs/search/Search.d.ts +2 -0
  123. package/lib/typescript/commonjs/search/Search.d.ts.map +1 -1
  124. package/lib/typescript/commonjs/search/types.d.ts +5 -0
  125. package/lib/typescript/commonjs/search/types.d.ts.map +1 -1
  126. package/lib/typescript/commonjs/surface/use-surface-material.web.d.ts +1 -1
  127. package/lib/typescript/commonjs/surface/use-surface-material.web.d.ts.map +1 -1
  128. package/lib/typescript/commonjs/text-field/TextField.d.ts +1 -1
  129. package/lib/typescript/commonjs/text-field/TextField.d.ts.map +1 -1
  130. package/lib/typescript/commonjs/text-field/types.d.ts +3 -1
  131. package/lib/typescript/commonjs/text-field/types.d.ts.map +1 -1
  132. package/lib/typescript/module/bottom-sheet/BottomSheetBase.d.ts.map +1 -1
  133. package/lib/typescript/module/bottom-sheet/types.d.ts +2 -0
  134. package/lib/typescript/module/bottom-sheet/types.d.ts.map +1 -1
  135. package/lib/typescript/module/button/Button.d.ts.map +1 -1
  136. package/lib/typescript/module/button/Button.web.d.ts.map +1 -1
  137. package/lib/typescript/module/button/types.d.ts +7 -1
  138. package/lib/typescript/module/button/types.d.ts.map +1 -1
  139. package/lib/typescript/module/carousel/Carousel.d.ts +1 -1
  140. package/lib/typescript/module/carousel/Carousel.d.ts.map +1 -1
  141. package/lib/typescript/module/carousel/types.d.ts +11 -2
  142. package/lib/typescript/module/carousel/types.d.ts.map +1 -1
  143. package/lib/typescript/module/dialog/Dialog.web.d.ts.map +1 -1
  144. package/lib/typescript/module/dialog/DialogBottomSheet.d.ts +2 -2
  145. package/lib/typescript/module/dialog/DialogBottomSheet.d.ts.map +1 -1
  146. package/lib/typescript/module/dialog/DialogHeader.d.ts +2 -0
  147. package/lib/typescript/module/dialog/DialogHeader.d.ts.map +1 -1
  148. package/lib/typescript/module/dialog/SheetShell.d.ts +2 -1
  149. package/lib/typescript/module/dialog/SheetShell.d.ts.map +1 -1
  150. package/lib/typescript/module/dialog/types.d.ts +2 -0
  151. package/lib/typescript/module/dialog/types.d.ts.map +1 -1
  152. package/lib/typescript/module/floating/FloatingPanel.d.ts +1 -1
  153. package/lib/typescript/module/floating/FloatingPanel.d.ts.map +1 -1
  154. package/lib/typescript/module/floating/types.d.ts +1 -0
  155. package/lib/typescript/module/floating/types.d.ts.map +1 -1
  156. package/lib/typescript/module/popover/Popover.d.ts +1 -1
  157. package/lib/typescript/module/popover/Popover.d.ts.map +1 -1
  158. package/lib/typescript/module/popover/Popover.web.d.ts +1 -1
  159. package/lib/typescript/module/popover/Popover.web.d.ts.map +1 -1
  160. package/lib/typescript/module/popover/types.d.ts +4 -1
  161. package/lib/typescript/module/popover/types.d.ts.map +1 -1
  162. package/lib/typescript/module/radio/Radio.d.ts.map +1 -1
  163. package/lib/typescript/module/radio/RadioCard.d.ts.map +1 -1
  164. package/lib/typescript/module/radio/context.d.ts +9 -0
  165. package/lib/typescript/module/radio/context.d.ts.map +1 -0
  166. package/lib/typescript/module/radio/types.d.ts +2 -0
  167. package/lib/typescript/module/radio/types.d.ts.map +1 -1
  168. package/lib/typescript/module/radio/use-radio-group-item.d.ts +3 -0
  169. package/lib/typescript/module/radio/use-radio-group-item.d.ts.map +1 -0
  170. package/lib/typescript/module/search/Search.d.ts +2 -0
  171. package/lib/typescript/module/search/Search.d.ts.map +1 -1
  172. package/lib/typescript/module/search/types.d.ts +5 -0
  173. package/lib/typescript/module/search/types.d.ts.map +1 -1
  174. package/lib/typescript/module/surface/use-surface-material.web.d.ts +1 -1
  175. package/lib/typescript/module/surface/use-surface-material.web.d.ts.map +1 -1
  176. package/lib/typescript/module/text-field/TextField.d.ts +1 -1
  177. package/lib/typescript/module/text-field/TextField.d.ts.map +1 -1
  178. package/lib/typescript/module/text-field/types.d.ts +3 -1
  179. package/lib/typescript/module/text-field/types.d.ts.map +1 -1
  180. package/package.json +1 -1
  181. package/src/bottom-sheet/BottomSheetBase.tsx +4 -3
  182. package/src/bottom-sheet/types.ts +2 -0
  183. package/src/button/Button.tsx +6 -2
  184. package/src/button/Button.web.tsx +5 -0
  185. package/src/button/types.ts +7 -1
  186. package/src/carousel/Carousel.tsx +46 -20
  187. package/src/carousel/types.ts +8 -2
  188. package/src/dialog/Dialog.tsx +11 -3
  189. package/src/dialog/Dialog.web.tsx +15 -6
  190. package/src/dialog/DialogBottomSheet.tsx +4 -0
  191. package/src/dialog/DialogHeader.tsx +7 -1
  192. package/src/dialog/SheetShell.tsx +4 -0
  193. package/src/dialog/types.ts +2 -0
  194. package/src/floating/FloatingPanel.tsx +4 -3
  195. package/src/floating/types.ts +1 -0
  196. package/src/popover/Popover.tsx +2 -0
  197. package/src/popover/Popover.web.tsx +2 -0
  198. package/src/popover/types.ts +4 -1
  199. package/src/radio/Radio.tsx +66 -33
  200. package/src/radio/RadioCard.tsx +4 -0
  201. package/src/radio/context.ts +9 -0
  202. package/src/radio/types.ts +2 -0
  203. package/src/radio/use-radio-group-item.ts +20 -0
  204. package/src/search/Search.tsx +24 -31
  205. package/src/search/types.ts +5 -0
  206. package/src/surface/use-surface-material.web.ts +4 -4
  207. package/src/text-field/TextField.tsx +5 -4
  208. package/src/text-field/types.ts +3 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/radio/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC;AAElC;;;;;;GAMG;AACH,MAAM,WAAW,UAAU,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM;IACvD,wCAAwC;IACxC,KAAK,EAAE,KAAK,CAAC;IACb,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;8EAC0E;IAC1E,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACvC,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;wFACoF;IACpF,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,O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I,CAAC,EAAE,SAAS,CAAC;IACjB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,yDAAyD;IACzD,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACnC;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM;IAC3D,sCAAsC;IACtC,KAAK,EAAE,KAAK,CAAC;IACb,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8EAA8E;IAC9E,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACvC,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qEAAqE;IACrE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,3 @@
1
+ /** One host owns both Space activation and its group's roving keyboard focus. */
2
+ export declare function useRadioGroupItem(value: string, disabled: boolean, activate: () => void): {};
3
+ //# sourceMappingURL=use-radio-group-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-radio-group-item.d.ts","sourceRoot":"","sources":["../../../../src/radio/use-radio-group-item.ts"],"names":[],"mappings":"AAKA,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,MAavF"}
@@ -1,6 +1,8 @@
1
1
  import { type TextInput } from 'react-native';
2
2
  export declare const Search: import("react").ForwardRefExoticComponent<Omit<import("..").TextFieldInputProps, "label"> & {
3
3
  label?: import("..").TextFieldInputProps["label"];
4
+ iconSize?: number;
5
+ clearButtonProps?: Pick<import("..").GlyphButtonProps, "icon" | "size" | "glyphSize">;
4
6
  onClearText?: () => void;
5
7
  fieldClassName?: string;
6
8
  fieldChromeClassName?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../../src/search/Search.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,SAAS,EAAQ,MAAM,cAAc,CAAC;AAkB9D,eAAO,MAAM,MAAM;;;;;;;6CA6FlB,CAAC"}
1
+ {"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../../src/search/Search.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAoBxD,eAAO,MAAM,MAAM;;;;;;;;;6CAoFlB,CAAC"}
@@ -1,7 +1,12 @@
1
1
  import type { StyleProp, ViewStyle } from 'react-native';
2
+ import type { GlyphButtonProps } from '../button/types';
2
3
  import type { TextFieldInputProps } from '../text-field/types';
3
4
  export type SearchProps = Omit<TextFieldInputProps, 'label'> & {
4
5
  label?: TextFieldInputProps['label'];
6
+ /** Leading icon edge in pixels. Default 20. */
7
+ iconSize?: number;
8
+ /** Clear glyph/target geometry. Search owns its name, callback and disabled state. */
9
+ clearButtonProps?: Pick<GlyphButtonProps, 'icon' | 'size' | 'glyphSize'>;
5
10
  /** Called when the user presses the clear button. */
6
11
  onClearText?: () => void;
7
12
  /** Field layout classes (height, width and padding). */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/search/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,GAAG;IAC7D,KAAK,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACrC,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,wDAAwD;IACxD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACvC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/search/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC,GAAG;IAC7D,KAAK,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACrC,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sFAAsF;IACtF,gBAAgB,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC,CAAC;IACzE,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,wDAAwD;IACxD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACvC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { WebCssStyle } from '../styles/web-view-style';
2
2
  /** Move a web host fill into the shared body and edge paint; preserve layout and shadow. */
3
- export declare function useSurfaceMaterial(selector: string, id: string, fill: string): WebCssStyle;
3
+ export declare function useSurfaceMaterial(selector: string, id: string, fill: string, enabled?: boolean): WebCssStyle;
4
4
  //# sourceMappingURL=use-surface-material.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-surface-material.web.d.ts","sourceRoot":"","sources":["../../../../src/surface/use-surface-material.web.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAI5D,4FAA4F;AAC5F,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW,CAY1F"}
1
+ {"version":3,"file":"use-surface-material.web.d.ts","sourceRoot":"","sources":["../../../../src/surface/use-surface-material.web.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAI5D,4FAA4F;AAC5F,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,UAAO,GAAG,WAAW,CAY1G"}
@@ -36,7 +36,7 @@ export declare function TextFieldHint({ children, invalid: invalidProp, isInvali
36
36
  * disabled, red when it is invalid. The icon does not react to hover or
37
37
  * focus; the ring does.
38
38
  */
39
- export declare function TextFieldIcon({ icon: Comp, position }: TextFieldIconProps): import("react/jsx-runtime").JSX.Element;
39
+ export declare function TextFieldIcon({ icon: Comp, position, size }: TextFieldIconProps): import("react/jsx-runtime").JSX.Element;
40
40
  export declare function TextFieldSuffix({ children, label, accessibilityHint, style, }: React.PropsWithChildren<TextStyleProp & {
41
41
  label: string;
42
42
  accessibilityHint?: AccessibilityProps['accessibilityHint'];
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/text-field/TextField.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,kBAAkB,EAQxB,MAAM,cAAc,CAAC;AAQtB,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,WAAW,CAAC;AAQnB,OAAO,EAmBL,KAAK,aAAa,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EAEf,MAAM,SAAS,CAAC;AAqCjB;;;;;;;;GAQG;AACH,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CACnB;AACD,eAAO,MAAM,qBAAqB,4DAAyD,CAAC;AAiD5F,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,OAAO,EAAE,UAAU,EACnB,SAAS,EACT,QAAQ,EAAE,YAAoB,EAC9B,IAAI,EAAE,QAAQ,EACd,MAA0B,EAC1B,YAAY,EACZ,SAAS,EACT,eAAe,EACf,KAAK,GACN,EAAE,cAAc,2CA6FhB;AAwFD,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,WAAW,EACX,KAAK,EACL,aAAa,EAAE,iBAAiB,EAChC,YAAY,EACZ,OAAO,EACP,MAAM,EACN,OAAO,EAAE,UAAU,EACnB,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,aAAqB,EACrB,eAAe,EACf,UAAkB,EAClB,YAAY,EACZ,MAAM,EACN,GAAG,IAAI,EACR,EAAE,mBAAmB,2CA4NrB;AAqPD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,QAAgB,EAChB,OAAe,EACf,KAAK,GACN,EAAE,mBAAmB,2CA8BrB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,OAAO,EAAE,WAAW,EACpB,SAAS,EACT,QAAQ,EACR,KAAK,GACN,EAAE,kBAAkB,2CAmBpB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAoB,EAAE,EAAE,kBAAkB,2CA4BrF;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,KAAK,EACL,iBAAiB,EACjB,KAAK,GACN,EAAE,KAAK,CAAC,iBAAiB,CACxB,aAAa,GAAG;IACd,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;CAC7D,CACF,2CAyBA;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,2CAqCA"}
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/text-field/TextField.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,kBAAkB,EAQxB,MAAM,cAAc,CAAC;AAQtB,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,WAAW,CAAC;AAQnB,OAAO,EAmBL,KAAK,aAAa,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EAEf,MAAM,SAAS,CAAC;AAqCjB;;;;;;;;GAQG;AACH,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,OAAO,CA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AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,2CAqCA"}
@@ -88,8 +88,10 @@ export type TextFieldHintProps = React.PropsWithChildren<{
88
88
  nativeID?: string;
89
89
  } & TextStyleProp>;
90
90
  export interface TextFieldIconProps {
91
- /** A Bloom icon component, drawn at 20px. */
91
+ /** A Bloom icon component. */
92
92
  icon: React.ComponentType<SVGIconProps>;
93
+ /** Icon edge in pixels. Default 20. */
94
+ size?: number;
93
95
  /** `leading` (default) sits 2px before the input; `trailing` 8px after it. */
94
96
  position?: 'leading' | 'trailing';
95
97
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/text-field/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,KAAK,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,iBAAiB,CAClD;IACE,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2GAA2G;IAC3G,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,sFAAsF;IACtF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;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gD;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,aAAa,CAClB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,iBAAiB,CACtD;IACE,0CAA0C;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,aAAa,CAClB,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,8BAA8B;IAC9B,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IACxC,uCAAuC;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;CACnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy.so/bloom",
3
- "version": "7.18.0",
3
+ "version": "7.19.1",
4
4
  "packageManager": "bun@1.3.14",
5
5
  "description": "Bloom UI — Oxy ecosystem component library for React Native + Expo + Web",
6
6
  "main": "lib/commonjs/index.js",
@@ -52,6 +52,7 @@ export const BottomSheetBase = forwardRef((props: BottomSheetBaseProps, ref: Rea
52
52
  open,
53
53
  onDismiss,
54
54
  enablePanDownToClose = true,
55
+ material: surfaceMaterial = 'surface',
55
56
  backgroundComponent,
56
57
  backgroundFill,
57
58
  backdropComponent,
@@ -590,7 +591,7 @@ export const BottomSheetBase = forwardRef((props: BottomSheetBaseProps, ref: Rea
590
591
  // The paint is absolute: gestures, measurements and layout stay on the existing sheet.
591
592
  const flatSurfaceStyle = StyleSheet.flatten(style as StyleProp<ViewStyle>);
592
593
  const backingFill = String(backgroundFill ?? flatSurfaceStyle?.backgroundColor ?? colors.background);
593
- const material = resolveSurfaceMaterial({ fill: backingFill, parentFill: colors.background, paint: !backgroundComponent, level: 0 });
594
+ const material = resolveSurfaceMaterial({ fill: backingFill, parentFill: colors.background, paint: !backgroundComponent && surfaceMaterial !== 'flat', level: 0 });
594
595
  const { paintFill, publishedFill: surfaceFill } = material;
595
596
  const surfaceRadius = flatSurfaceStyle?.borderRadius ?? flatSurfaceStyle?.borderTopLeftRadius ?? 24;
596
597
  const surfaceCorners: ViewStyle = {
@@ -744,10 +745,10 @@ export const BottomSheetBase = forwardRef((props: BottomSheetBaseProps, ref: Rea
744
745
  sheetStyle,
745
746
  sheetHeightStyle,
746
747
  style,
747
- { backgroundColor: backgroundComponent ? surfaceFill : 'transparent' },
748
+ { backgroundColor: backgroundComponent ? surfaceFill : surfaceMaterial === 'flat' ? paintFill : 'transparent' },
748
749
  ]}
749
750
  >
750
- {backgroundComponent ? backgroundComponent({ style: styles.background }) : (
751
+ {backgroundComponent ? backgroundComponent({ style: styles.background }) : surfaceMaterial === 'flat' ? null : (
751
752
  <View pointerEvents="none" style={[StyleSheet.absoluteFill, surfaceCorners, { overflow: 'hidden' }]}>
752
753
  <View pointerEvents="none" style={[StyleSheet.absoluteFill, { bottom: detached ? 0 : -(typeof surfaceRadius === 'number' ? surfaceRadius : 24) }]}>
753
754
  <SurfacePaint fill={paintFill} shape={{ curve: SURFACE_SHAPES.panel.curve }} radius={surfaceRadius} />
@@ -12,6 +12,8 @@ export interface BottomSheetRef {
12
12
  }
13
13
 
14
14
  export interface BottomSheetProps {
15
+ /** Standard optical surface, or the unmodified backing fill. Default surface. */
16
+ material?: 'surface' | 'flat';
15
17
  children: React.ReactNode;
16
18
  /** Accessible name for the modal sheet panel on web. */
17
19
  accessibilityLabel?: string;
@@ -171,7 +171,7 @@ type ButtonPressableProps = Pick<
171
171
  | 'onPressIn'
172
172
  | 'onPressOut'
173
173
  | 'testID'
174
- > & { children?: React.ReactNode; style?: StyleProp<ViewStyle>; baseStyle?: StyleProp<ViewStyle>; 'aria-hidden'?: boolean; 'aria-expanded'?: boolean; 'aria-pressed'?: boolean };
174
+ > & { children?: React.ReactNode; style?: StyleProp<ViewStyle>; baseStyle?: StyleProp<ViewStyle>; 'aria-hidden'?: boolean; 'aria-expanded'?: boolean; 'aria-pressed'?: boolean; 'aria-current'?: ButtonProps['aria-current'] };
175
175
 
176
176
  const CONTENT_TEXT_KEYS = ['color', 'fontFamily', 'fontSize', 'fontWeight', 'fontStyle',
177
177
  'lineHeight', 'letterSpacing', 'textAlign', 'textDecorationLine'] as const;
@@ -278,6 +278,7 @@ const ButtonComponent = forwardRef<View, ButtonProps>(function ButtonComponent({
278
278
  hitSlop,
279
279
  testID,
280
280
  className,
281
+ 'aria-current': ariaCurrent,
281
282
  'aria-expanded': ariaExpanded,
282
283
  'aria-haspopup': ariaHasPopup,
283
284
  }, ref) {
@@ -434,6 +435,8 @@ const ButtonComponent = forwardRef<View, ButtonProps>(function ButtonComponent({
434
435
  );
435
436
  };
436
437
 
438
+ // Native has no current-destination trait; selected is its equivalent.
439
+ const selected = togglePressed ?? (ariaCurrent === undefined ? undefined : ariaCurrent !== false && ariaCurrent !== 'false');
437
440
  const handlePress = isInteractionBlocked
438
441
  ? undefined
439
442
  : onPress ?? (href != null ? () => void Linking.openURL(href) : undefined);
@@ -468,7 +471,8 @@ const ButtonComponent = forwardRef<View, ButtonProps>(function ButtonComponent({
468
471
  // reads `accessibilityState`, React Native folds `aria-busy` back into it.
469
472
  aria-busy={loading || undefined}
470
473
  aria-pressed={togglePressed}
471
- accessibilityState={{ disabled: isInteractionBlocked, busy: loading, ...(togglePressed === undefined ? {} : { selected: togglePressed }) }}
474
+ aria-current={Platform.OS === 'web' ? ariaCurrent : undefined}
475
+ accessibilityState={{ disabled: isInteractionBlocked, busy: loading, ...(selected === undefined ? {} : { selected }) }}
472
476
  // Forwarded from an anchored family's `asChild` trigger — see
473
477
  // `ButtonProps['aria-expanded']`.
474
478
  aria-expanded={ariaExpanded}
@@ -195,6 +195,7 @@ const ButtonWebComponent = forwardRef<View, ButtonProps>(function ButtonWebCompo
195
195
  loading = false,
196
196
  loadingColor,
197
197
  accessibilityLabel,
198
+ 'aria-current': ariaCurrent,
198
199
  'aria-expanded': ariaExpanded,
199
200
  'aria-haspopup': ariaHasPopup,
200
201
  accessibilityHint,
@@ -466,6 +467,7 @@ const ButtonWebComponent = forwardRef<View, ButtonProps>(function ButtonWebCompo
466
467
  'aria-busy'?: boolean;
467
468
  'aria-pressed'?: boolean;
468
469
  'aria-label'?: string;
470
+ 'aria-current'?: ButtonProps['aria-current'];
469
471
  title?: string;
470
472
  id?: string;
471
473
  tabIndex?: number;
@@ -498,6 +500,7 @@ const ButtonWebComponent = forwardRef<View, ButtonProps>(function ButtonWebCompo
498
500
  'aria-busy': loading || undefined,
499
501
  'aria-pressed': togglePressed,
500
502
  'aria-label': ariaLabel ?? childProps['aria-label'],
503
+ 'aria-current': ariaCurrent ?? childProps['aria-current'],
501
504
  title: title ?? childProps.title,
502
505
  id: childProps.id ?? resolvedId,
503
506
  tabIndex: isInteractionBlocked ? -1 : childProps.tabIndex,
@@ -530,6 +533,7 @@ const ButtonWebComponent = forwardRef<View, ButtonProps>(function ButtonWebCompo
530
533
  aria-busy={loading || undefined}
531
534
  aria-pressed={togglePressed}
532
535
  aria-label={ariaLabel}
536
+ aria-current={ariaCurrent}
533
537
  title={title ?? accessibilityHint}
534
538
  tabIndex={tabIndex}
535
539
  data-testid={testID}
@@ -564,6 +568,7 @@ const ButtonWebComponent = forwardRef<View, ButtonProps>(function ButtonWebCompo
564
568
  aria-busy={loading || undefined}
565
569
  aria-pressed={togglePressed}
566
570
  aria-label={ariaLabel}
571
+ aria-current={ariaCurrent}
567
572
  // Forwarded from an anchored family's `asChild` trigger — see
568
573
  // `ButtonProps['aria-expanded']`.
569
574
  aria-expanded={ariaExpanded}
@@ -1,6 +1,6 @@
1
1
  import type { BloomAppearance, BloomTone, BloomSize } from '../appearance/types';
2
2
  import type { BloomIconRenderer } from '../icons/render-icon';
3
- import type { ReactNode } from 'react';
3
+ import type { AriaAttributes, ReactNode } from 'react';
4
4
  import type { GestureResponderEvent, FocusEvent as NativeFocusEvent, MouseEvent as NativeMouseEvent, LayoutChangeEvent, ViewProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
5
5
  import type { WebAriaProps } from '../styles/styled-primitives';
6
6
  import type { BloomIconComponent } from '../icons/icon-component';
@@ -209,6 +209,12 @@ export interface ButtonProps {
209
209
  * `aria-label` (web only). Falls back to `accessibilityLabel`.
210
210
  */
211
211
  'aria-label'?: string;
212
+ /**
213
+ * Current destination or item in a set. Forwarded to the web host, including
214
+ * links and asChild. Native announces selected when current is truthy;
215
+ * an explicit pressed toggle state remains authoritative on native.
216
+ */
217
+ 'aria-current'?: AriaAttributes['aria-current'];
212
218
  /**
213
219
  * Whether the surface this button controls is open.
214
220
  *
@@ -327,8 +327,11 @@ const CarouselComponent = function Carousel({
327
327
  children,
328
328
  accessibilityLabel,
329
329
  header,
330
+ footer,
331
+ loop = false,
330
332
  showArrows = true,
331
333
  arrowsPlacement = 'header',
334
+ arrowsInset = 8,
332
335
  arrowsVisibility = 'always',
333
336
  arrowButtonProps,
334
337
  hideUnavailableArrows = false,
@@ -560,14 +563,23 @@ const CarouselComponent = function Carousel({
560
563
  node.addEventListener('pointerdown', beginDrag);
561
564
  window.addEventListener('pointerup', endDrag);
562
565
  window.addEventListener('pointercancel', endDrag);
563
- for (const event of ['wheel', 'keydown']) node.addEventListener(event, interruptControlledScroll);
566
+ const onKeyDown = (event: KeyboardEvent) => {
567
+ // Owned loop navigation must retain its pending destination so rapid
568
+ // key presses advance from the requested stop, not an animation frame.
569
+ if (loop && event.target === node && !event.altKey && !event.ctrlKey && !event.metaKey
570
+ && (event.key === 'ArrowLeft' || event.key === 'ArrowRight')) return;
571
+ interruptControlledScroll();
572
+ };
573
+ node.addEventListener('wheel', interruptControlledScroll);
574
+ node.addEventListener('keydown', onKeyDown);
564
575
  return () => {
565
576
  node.removeEventListener('pointerdown', beginDrag);
566
577
  window.removeEventListener('pointerup', endDrag);
567
578
  window.removeEventListener('pointercancel', endDrag);
568
- for (const event of ['wheel', 'keydown']) node.removeEventListener(event, interruptControlledScroll);
579
+ node.removeEventListener('wheel', interruptControlledScroll);
580
+ node.removeEventListener('keydown', onKeyDown);
569
581
  };
570
- }, [controlledIndex !== undefined, interruptControlledScroll, beginDrag, endDrag]);
582
+ }, [controlledIndex !== undefined, interruptControlledScroll, beginDrag, endDrag, loop]);
571
583
 
572
584
  const scrollToStop = (stop: Stop | undefined) => {
573
585
  if (!stop) return;
@@ -588,11 +600,10 @@ const CarouselComponent = function Carousel({
588
600
  const all = computeStops();
589
601
  if (!all) return;
590
602
  const x = pendingTarget.current ?? scroll.current.x;
591
- scrollToStop(
592
- direction === 1
593
- ? all.find((stop) => stop.offset > x + 1)
594
- : [...all].reverse().find((stop) => stop.offset < x - 1),
595
- );
603
+ const target = direction === 1
604
+ ? all.find((stop) => stop.offset > x + 1)
605
+ : [...all].reverse().find((stop) => stop.offset < x - 1);
606
+ scrollToStop(target ?? (loop && all.length > 1 ? all[direction === 1 ? 0 : all.length - 1] : undefined));
596
607
  };
597
608
 
598
609
  const onScroll = (event: NativeSyntheticEvent<NativeScrollEvent>) => {
@@ -635,6 +646,9 @@ const CarouselComponent = function Carousel({
635
646
  };
636
647
 
637
648
  const overlay = arrowsPlacement === 'overlay';
649
+ const canWrap = loop && stops.length > 1;
650
+ const previousUnavailable = atStart && !canWrap;
651
+ const nextUnavailable = atEnd && !canWrap;
638
652
  const arrowsVisible = showArrows && count > 0;
639
653
  // Slots stay mounted at the same edges even when their controls are hidden.
640
654
  // Hover opacity belongs to the slot, leaving the button's recipe authoritative.
@@ -652,7 +666,7 @@ const CarouselComponent = function Carousel({
652
666
  useLayoutEffect(() => {
653
667
  if (!IS_WEB || !hideUnavailableArrows || typeof HTMLElement === 'undefined') return;
654
668
  const activeElement = document.activeElement;
655
- for (const [unavailable, ref] of [[atStart, previousArrowRef], [atEnd, nextArrowRef]] as const) {
669
+ for (const [unavailable, ref] of [[previousUnavailable, previousArrowRef], [nextUnavailable, nextArrowRef]] as const) {
656
670
  const slot: unknown = ref.current;
657
671
  if (unavailable && slot instanceof HTMLElement && slot.contains(activeElement)) {
658
672
  const trackNode: unknown = scrollRef.current?.getScrollableNode();
@@ -660,16 +674,16 @@ const CarouselComponent = function Carousel({
660
674
  break;
661
675
  }
662
676
  }
663
- }, [atStart, atEnd, hideUnavailableArrows]);
677
+ }, [previousUnavailable, nextUnavailable, hideUnavailableArrows]);
664
678
  const arrowButtons = <>
665
679
  {arrow(<Button size={overlay ? 'lg' : 'sm'} appearance="subtle" tone="neutral" {...arrowButtonProps}
666
680
  icon={rtl ? RiArrowRightSLine : RiArrowLeftSLine}
667
- accessibilityLabel={previousLabel} disabled={atStart} onPress={() => step(-1)} />,
668
- atStart, previousArrowRef)}
681
+ accessibilityLabel={previousLabel} disabled={previousUnavailable} onPress={() => step(-1)} />,
682
+ previousUnavailable, previousArrowRef)}
669
683
  {arrow(<Button size={overlay ? 'lg' : 'sm'} appearance="subtle" tone="neutral" {...arrowButtonProps}
670
684
  icon={rtl ? RiArrowLeftSLine : RiArrowRightSLine}
671
- accessibilityLabel={nextLabel} disabled={atEnd} onPress={() => step(1)} />,
672
- atEnd, nextArrowRef)}
685
+ accessibilityLabel={nextLabel} disabled={nextUnavailable} onPress={() => step(1)} />,
686
+ nextUnavailable, nextArrowRef)}
673
687
  </>;
674
688
  // iOS snapping reads physical offsets even though its imperative command and
675
689
  // scroll events use logical offsets. Android converts snap offsets internally.
@@ -682,9 +696,14 @@ const CarouselComponent = function Carousel({
682
696
  <ScrollView
683
697
  ref={scrollRef}
684
698
  {...webDataSet({ bloomCarouselTrack: align })}
685
- // Focusable so the arrow keys scroll it once it has focus, the
686
- // browser's own behaviour (`tabIndex={0}`).
687
- {...(IS_WEB ? { tabIndex: 0 } : {})}
699
+ // The browser scrolls a focused track by default; wrapping opts into
700
+ // stop-based Left/Right navigation without intercepting slide controls.
701
+ {...(IS_WEB ? { tabIndex: 0, onKeyDown: (event: React.KeyboardEvent<HTMLElement>) => {
702
+ if (!loop || event.target !== event.currentTarget || event.altKey || event.ctrlKey || event.metaKey) return;
703
+ if (event.key !== 'ArrowLeft' && event.key !== 'ArrowRight') return;
704
+ event.preventDefault(); event.stopPropagation();
705
+ step((event.key === 'ArrowRight') !== rtl ? 1 : -1);
706
+ } } : {})}
688
707
  horizontal
689
708
  showsHorizontalScrollIndicator={false}
690
709
  scrollEventThrottle={16}
@@ -718,10 +737,10 @@ const CarouselComponent = function Carousel({
718
737
  style={[{ width: '100%', flexDirection: 'column', gap: 16 }, style]}
719
738
  testID={testID}
720
739
  >
721
- {header != null || (arrowsVisible && !overlay) ? (
740
+ {header != null || (arrowsVisible && arrowsPlacement === 'header') ? (
722
741
  <View style={{ flexDirection: 'row', alignItems: 'center', gap: 8, paddingHorizontal: inset }}>
723
742
  <View style={{ flex: 1, minWidth: 0 }}>{header}</View>
724
- {arrowsVisible && !overlay ? arrowButtons : null}
743
+ {arrowsVisible && arrowsPlacement === 'header' ? arrowButtons : null}
725
744
  </View>
726
745
  ) : null}
727
746
 
@@ -729,7 +748,8 @@ const CarouselComponent = function Carousel({
729
748
  {track}
730
749
  {arrowsVisible && overlay ? <View pointerEvents="box-none"
731
750
  testID={testID ? `${testID}-overlay-arrows` : undefined}
732
- style={{ position: 'absolute', top: 0, bottom: 0, insetInlineStart: 8, insetInlineEnd: 8,
751
+ style={{ position: 'absolute', top: 0, bottom: 0, insetInlineStart: typeof arrowsInset === 'number' ? arrowsInset : arrowsInset.start ?? 8,
752
+ insetInlineEnd: typeof arrowsInset === 'number' ? arrowsInset : arrowsInset.end ?? 8,
733
753
  flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between' }}>
734
754
  {arrowButtons}
735
755
  </View> : null}
@@ -755,6 +775,12 @@ const CarouselComponent = function Carousel({
755
775
  })}
756
776
  </View>
757
777
  ) : null}
778
+ {footer != null || (arrowsVisible && arrowsPlacement === 'footer') ? (
779
+ <View testID={testID ? `${testID}-footer` : undefined} style={{ flexDirection:'row', alignItems:'center', gap:8, paddingHorizontal:inset }}>
780
+ <View style={{ flex:1, minWidth:0 }}>{footer}</View>
781
+ {arrowsVisible && arrowsPlacement === 'footer' ? arrowButtons : null}
782
+ </View>
783
+ ) : null}
758
784
  </View>
759
785
  );
760
786
  };
@@ -20,10 +20,16 @@ export interface CarouselProps {
20
20
  * start, arrows at the end). With overlay arrows this row contains only the header.
21
21
  */
22
22
  header?: ReactNode;
23
+ /** Leading content in an optional row below the track and dots. */
24
+ footer?: ReactNode;
25
+ /** Controls and track arrow keys wrap to the other end; no cloned slides. Default false. */
26
+ loop?: boolean;
23
27
  /** Previous / next buttons. Defaults to `true`; callers may hide them at their mobile breakpoint. */
24
28
  showArrows?: boolean;
25
- /** Arrows share the header row or overlay the track's edges. Defaults to `'header'`. */
26
- arrowsPlacement?: 'header' | 'overlay';
29
+ /** Overlay control offsets from logical track edges. Negative values extend outside. Default 8. */
30
+ arrowsInset?: number | { start?: number; end?: number };
31
+ /** Controls share a header/footer row or overlay the track. Default header. */
32
+ arrowsPlacement?: 'header' | 'overlay' | 'footer';
27
33
  /**
28
34
  * Defaults to 'always'. 'hover' reveals arrows on hover or focus within the
29
35
  * carousel on web with a fine, hover-capable pointer. Touch and native keep
@@ -112,6 +112,7 @@ export function Dialog({
112
112
  * placement is handled separately by `DialogBottomSheet`.
113
113
  */
114
114
  function CenteredOrSideDialog({
115
+ material: surfaceMaterial = 'surface',
115
116
  control,
116
117
  open: controlledOpen,
117
118
  startOpen,
@@ -302,6 +303,7 @@ function CenteredOrSideDialog({
302
303
  return (
303
304
  <Context.Provider value={context}>
304
305
  <SideSheet
306
+ material={surfaceMaterial}
305
307
  presentation={presentation}
306
308
  exitDuration={exitDuration}
307
309
  scrollable={scrollableResolved}
@@ -335,6 +337,8 @@ function CenteredOrSideDialog({
335
337
 
336
338
  return (
337
339
  <BottomSheet
340
+ material={surfaceMaterial}
341
+ backgroundFill={surfaceMaterial === 'flat' ? String(StyleSheet.flatten([style, panelStyle])?.backgroundColor ?? theme.colors.background) : undefined}
338
342
  ref={ref}
339
343
  onDismiss={handleDismiss}
340
344
  enablePanDownToClose
@@ -348,6 +352,7 @@ function CenteredOrSideDialog({
348
352
  headerOverlay={
349
353
  header ? (
350
354
  <DialogNavHeader
355
+ flatSurface={surfaceMaterial === 'flat'}
351
356
  controller={headerController}
352
357
  header={header}
353
358
  onDismiss={close}
@@ -402,6 +407,7 @@ function CenteredOrSideDialog({
402
407
  * exit animations are safe (the web `removeChild` crash does not apply).
403
408
  */
404
409
  function SideSheet({
410
+ material: surfaceMaterial = 'surface',
405
411
  scrollable,
406
412
  presentation,
407
413
  exitDuration,
@@ -428,6 +434,7 @@ function SideSheet({
428
434
  style,
429
435
  children,
430
436
  }: {
437
+ material?: DialogProps['material'];
431
438
  scrollable: boolean;
432
439
  presentation?: DialogProps['presentation'];
433
440
  exitDuration?: number;
@@ -541,7 +548,7 @@ function SideSheet({
541
548
  );
542
549
 
543
550
  const panelRadius = StyleSheet.flatten([panelStyle, style])?.borderRadius ?? SURFACE_SHAPES.panel.radius;
544
- const material = resolveSurfaceMaterial({ fill: String(StyleSheet.flatten([panelStyle, style])?.backgroundColor ?? theme.colors.background), parentFill: theme.colors.background, level: 0 });
551
+ const material = resolveSurfaceMaterial({ fill: String(StyleSheet.flatten([panelStyle, style])?.backgroundColor ?? theme.colors.background), parentFill: theme.colors.background, level: 0, paint: surfaceMaterial !== 'flat' });
545
552
  const { paintFill, publishedFill: surfaceFill } = material;
546
553
  if (!mounted) return null;
547
554
 
@@ -593,10 +600,10 @@ function SideSheet({
593
600
  panelAnimatedStyle,
594
601
  panelStyle,
595
602
  style,
596
- { backgroundColor: 'transparent' },
603
+ { backgroundColor: surfaceMaterial === 'flat' ? paintFill : 'transparent' },
597
604
  ]}
598
605
  >
599
- {presentation !== 'custom' && <SurfacePaint fill={paintFill} shape={{ curve: SURFACE_SHAPES.panel.curve }} radius={panelRadius} />}
606
+ {presentation !== 'custom' && surfaceMaterial !== 'flat' && <SurfacePaint fill={paintFill} shape={{ curve: SURFACE_SHAPES.panel.curve }} radius={panelRadius} />}
600
607
  <SurfaceLevelProvider level={material.level} fill={surfaceFill}>
601
608
  {header ? (
602
609
  // Nav-header mode on a side drawer: a static titled bar (the drawer body
@@ -604,6 +611,7 @@ function SideSheet({
604
611
  // below the bar.
605
612
  <View style={{ flex: 1, minHeight: 0, borderRadius: panelRadius, overflow: 'hidden' }}>
606
613
  <DialogNavHeader
614
+ flatSurface={surfaceMaterial === 'flat'}
607
615
  controller={headerController}
608
616
  header={header}
609
617
  onDismiss={onHeaderDismiss}
@@ -175,6 +175,7 @@ export function Dialog({ placement, ...rest }: DialogProps) {
175
175
  * `BottomSheet`).
176
176
  */
177
177
  function CenterOrSideDialog({
178
+ material: surfaceMaterial = 'surface',
178
179
  control,
179
180
  open: controlledOpen,
180
181
  startOpen,
@@ -374,6 +375,7 @@ function CenterOrSideDialog({
374
375
  }, containerStyle]}
375
376
  >
376
377
  <DialogPanel
378
+ material={surfaceMaterial}
377
379
  presentation={presentation}
378
380
  panelRef={panelRef}
379
381
  testID={testID}
@@ -406,6 +408,7 @@ function CenterOrSideDialog({
406
408
  <ClosingContext.Provider value={isClosing}>
407
409
  <RemoveScrollBar />
408
410
  <SheetSurface
411
+ material={surfaceMaterial}
409
412
  panelRef={panelRef}
410
413
  testID={testID}
411
414
  label={label}
@@ -436,6 +439,7 @@ function CenterOrSideDialog({
436
439
  }
437
440
 
438
441
  function DialogPanel({
442
+ material: surfaceMaterial = 'surface',
439
443
  presentation,
440
444
  panelRef,
441
445
  testID,
@@ -453,6 +457,7 @@ function DialogPanel({
453
457
  isClosing,
454
458
  children,
455
459
  }: {
460
+ material?: DialogProps['material'];
456
461
  presentation?: DialogProps['presentation'];
457
462
  panelRef: React.RefObject<View | null>;
458
463
  testID?: string;
@@ -477,7 +482,7 @@ function DialogPanel({
477
482
  const headerController = useDialogHeaderController();
478
483
  const { height: viewportHeight } = useWindowDimensions();
479
484
  const heightRatio = maxHeightRatio ?? DEFAULT_MAX_HEIGHT_RATIO;
480
- const material = resolveSurfaceMaterial({ fill: String(StyleSheet.flatten(style)?.backgroundColor ?? theme.colors.background), parentFill: theme.colors.background, level: 0 });
485
+ const material = resolveSurfaceMaterial({ fill: String(StyleSheet.flatten(style)?.backgroundColor ?? theme.colors.background), parentFill: theme.colors.background, level: 0, paint: surfaceMaterial !== 'flat' });
481
486
  const { paintFill, publishedFill: surfaceFill } = material;
482
487
 
483
488
  // Size morphing across an in-place content swap. The centered card is the one
@@ -558,10 +563,10 @@ function DialogPanel({
558
563
  // before `style` so a consumer's explicit size still wins.
559
564
  morphState.panelStyle,
560
565
  style,
561
- { backgroundColor: 'transparent' },
566
+ { backgroundColor: surfaceMaterial === 'flat' ? paintFill : 'transparent' },
562
567
  ]}
563
568
  >
564
- {presentation !== 'custom' && <SurfacePaint fill={paintFill} shape={{ curve: SURFACE_SHAPES.panel.curve }} radius={StyleSheet.flatten(style)?.borderRadius ?? 20} />}
569
+ {presentation !== 'custom' && surfaceMaterial !== 'flat' && <SurfacePaint fill={paintFill} shape={{ curve: SURFACE_SHAPES.panel.curve }} radius={StyleSheet.flatten(style)?.borderRadius ?? 20} />}
565
570
  <SurfaceLevelProvider level={material.level} fill={surfaceFill}>
566
571
  {header ? (
567
572
  // Nav-header mode: the Dialog OWNS a sticky gradient nav bar + a large
@@ -570,6 +575,7 @@ function DialogPanel({
570
575
  // the shared scroll offset that drives the small-title cross-fade.
571
576
  <>
572
577
  <DialogNavHeader
578
+ flatSurface={surfaceMaterial === 'flat'}
573
579
  controller={headerController}
574
580
  header={header}
575
581
  onDismiss={close}
@@ -634,6 +640,7 @@ function DialogPanel({
634
640
  * implementation with native and supports drag-to-dismiss on web.
635
641
  */
636
642
  function SheetSurface({
643
+ material: surfaceMaterial = 'surface',
637
644
  panelRef,
638
645
  testID,
639
646
  label,
@@ -656,6 +663,7 @@ function SheetSurface({
656
663
  style,
657
664
  children,
658
665
  }: {
666
+ material?: DialogProps['material'];
659
667
  panelRef: React.RefObject<View | null>;
660
668
  testID?: string;
661
669
  label?: string;
@@ -751,7 +759,7 @@ function SheetSurface({
751
759
  if (dismissOnBackdrop) onDismiss();
752
760
  }, [dismissOnBackdrop, onDismiss]);
753
761
 
754
- const material = resolveSurfaceMaterial({ fill: String(StyleSheet.flatten([panelStyle, style])?.backgroundColor ?? theme.colors.background), parentFill: theme.colors.background, level: 0 });
762
+ const material = resolveSurfaceMaterial({ fill: String(StyleSheet.flatten([panelStyle, style])?.backgroundColor ?? theme.colors.background), parentFill: theme.colors.background, level: 0, paint: surfaceMaterial !== 'flat' });
755
763
  const { paintFill, publishedFill: surfaceFill } = material;
756
764
 
757
765
  // The drawer uses the PAGE token as its tint and nominal surface for its
@@ -809,10 +817,10 @@ function SheetSurface({
809
817
  panelTransition,
810
818
  panelStyle,
811
819
  style,
812
- { backgroundColor: 'transparent' },
820
+ { backgroundColor: surfaceMaterial === 'flat' ? paintFill : 'transparent' },
813
821
  ]}
814
822
  >
815
- <SurfacePaint fill={paintFill} shape={{ curve: SURFACE_SHAPES.panel.curve }} radius={StyleSheet.flatten([panelStyle, style])?.borderRadius ?? SURFACE_SHAPES.panel.radius} />
823
+ {surfaceMaterial !== 'flat' && <SurfacePaint fill={paintFill} shape={{ curve: SURFACE_SHAPES.panel.curve }} radius={StyleSheet.flatten([panelStyle, style])?.borderRadius ?? SURFACE_SHAPES.panel.radius} />}
816
824
  <SurfaceLevelProvider level={material.level} fill={surfaceFill}>
817
825
  {header ? (
818
826
  // Nav-header mode on a side drawer: a static titled bar (the drawer
@@ -820,6 +828,7 @@ function SheetSurface({
820
828
  // the content, which is inset below the bar.
821
829
  <View style={{ flex: 1, minHeight: 0 }}>
822
830
  <DialogNavHeader
831
+ flatSurface={surfaceMaterial === 'flat'}
823
832
  controller={headerController}
824
833
  header={header}
825
834
  onDismiss={onDismiss}