@multiplatform.one/forms 7.66.0 → 7.68.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 (527) hide show
  1. package/dist/cjs/AdaptivePopup/index.cjs +45 -5
  2. package/dist/cjs/AdaptivePopup/index.native.js +47 -5
  3. package/dist/cjs/AdaptivePopup/index.native.js.map +1 -1
  4. package/dist/cjs/Button/glass.cjs +30 -0
  5. package/dist/cjs/Button/glass.native.js +47 -0
  6. package/dist/cjs/Button/glass.native.js.map +1 -0
  7. package/dist/cjs/Button/index.cjs +157 -28
  8. package/dist/cjs/Button/index.native.js +156 -27
  9. package/dist/cjs/Button/index.native.js.map +1 -1
  10. package/dist/cjs/ContextualSaveBar/index.cjs +6 -8
  11. package/dist/cjs/ContextualSaveBar/index.native.js +6 -8
  12. package/dist/cjs/ContextualSaveBar/index.native.js.map +1 -1
  13. package/dist/cjs/DescriptionList/index.cjs +0 -1
  14. package/dist/cjs/DescriptionList/index.native.js +0 -1
  15. package/dist/cjs/DescriptionList/index.native.js.map +1 -1
  16. package/dist/cjs/FloatingPanel/RegularPanel.cjs +164 -0
  17. package/dist/cjs/FloatingPanel/RegularPanel.native.js +169 -0
  18. package/dist/cjs/FloatingPanel/RegularPanel.native.js.map +1 -0
  19. package/dist/cjs/FloatingPanel/compactFace.cjs +6 -0
  20. package/dist/cjs/FloatingPanel/compactFace.native.js +6 -0
  21. package/dist/cjs/FloatingPanel/compactFace.native.js.map +1 -1
  22. package/dist/cjs/FloatingPanel/containingBlock.cjs +46 -0
  23. package/dist/cjs/FloatingPanel/containingBlock.native.js +51 -0
  24. package/dist/cjs/FloatingPanel/containingBlock.native.js.map +1 -0
  25. package/dist/cjs/FloatingPanel/index.cjs +2 -20
  26. package/dist/cjs/FloatingPanel/index.native.js +79 -45
  27. package/dist/cjs/FloatingPanel/index.native.js.map +1 -1
  28. package/dist/cjs/FloatingPanel/pointAnchor.cjs +25 -0
  29. package/dist/cjs/FloatingPanel/pointAnchor.native.js +26 -0
  30. package/dist/cjs/FloatingPanel/pointAnchor.native.js.map +1 -1
  31. package/dist/cjs/FloatingPanel/regularPlacement.cjs +61 -0
  32. package/dist/cjs/FloatingPanel/regularPlacement.native.js +65 -0
  33. package/dist/cjs/FloatingPanel/regularPlacement.native.js.map +1 -0
  34. package/dist/cjs/fields/Barcode/BarcodeScanner.cjs +7 -8
  35. package/dist/cjs/fields/Barcode/BarcodeScanner.native.js +7 -8
  36. package/dist/cjs/fields/Barcode/BarcodeScanner.native.js.map +1 -1
  37. package/dist/cjs/fields/Combobox/index.cjs +1 -1
  38. package/dist/cjs/fields/Combobox/index.native.js +3 -1
  39. package/dist/cjs/fields/Combobox/index.native.js.map +1 -1
  40. package/dist/cjs/fields/FileUpload/index.cjs +83 -60
  41. package/dist/cjs/fields/FileUpload/index.native.js +96 -73
  42. package/dist/cjs/fields/FileUpload/index.native.js.map +1 -1
  43. package/dist/cjs/fields/Geolocation/index.cjs +7 -8
  44. package/dist/cjs/fields/Geolocation/index.native.js +7 -8
  45. package/dist/cjs/fields/Geolocation/index.native.js.map +1 -1
  46. package/dist/cjs/fields/ImageField/index.cjs +4 -6
  47. package/dist/cjs/fields/ImageField/index.native.js +4 -6
  48. package/dist/cjs/fields/ImageField/index.native.js.map +1 -1
  49. package/dist/cjs/fields/Input/index.cjs +5 -0
  50. package/dist/cjs/fields/Input/index.native.js +5 -0
  51. package/dist/cjs/fields/Input/index.native.js.map +1 -1
  52. package/dist/cjs/fields/Select/InlineChoices.cjs +3 -2
  53. package/dist/cjs/fields/Select/InlineChoices.native.js +5 -2
  54. package/dist/cjs/fields/Select/InlineChoices.native.js.map +1 -1
  55. package/dist/cjs/fields/Select/SheetPickerRow.cjs +154 -0
  56. package/dist/cjs/fields/Select/SheetPickerRow.native.js +165 -0
  57. package/dist/cjs/fields/Select/SheetPickerRow.native.js.map +1 -0
  58. package/dist/cjs/fields/Select/index.cjs +63 -4
  59. package/dist/cjs/fields/Select/index.native.js +85 -26
  60. package/dist/cjs/fields/Select/index.native.js.map +1 -1
  61. package/dist/cjs/fields/Select/shouldInlineChoices.cjs +14 -1
  62. package/dist/cjs/fields/Select/shouldInlineChoices.native.js +15 -1
  63. package/dist/cjs/fields/Select/shouldInlineChoices.native.js.map +1 -1
  64. package/dist/cjs/fields/Slider/index.cjs +96 -4
  65. package/dist/cjs/fields/Slider/index.native.js +103 -5
  66. package/dist/cjs/fields/Slider/index.native.js.map +1 -1
  67. package/dist/cjs/fields/Switch/index.cjs +71 -1
  68. package/dist/cjs/fields/Switch/index.native.js +72 -1
  69. package/dist/cjs/fields/Switch/index.native.js.map +1 -1
  70. package/dist/cjs/fields/ToggleGroup/index.cjs +67 -1
  71. package/dist/cjs/fields/ToggleGroup/index.native.js +75 -1
  72. package/dist/cjs/fields/ToggleGroup/index.native.js.map +1 -1
  73. package/dist/cjs/fields/nativeDateTime/OsDateTimeSheet.cjs +54 -47
  74. package/dist/cjs/fields/nativeDateTime/OsDateTimeSheet.native.js +64 -49
  75. package/dist/cjs/fields/nativeDateTime/OsDateTimeSheet.native.js.map +1 -1
  76. package/dist/cjs/fields/nativeDateTime/sheetKeyboard.cjs +54 -0
  77. package/dist/cjs/fields/nativeDateTime/sheetKeyboard.native.js +57 -0
  78. package/dist/cjs/fields/nativeDateTime/sheetKeyboard.native.js.map +1 -0
  79. package/dist/cjs/index.cjs +19 -1
  80. package/dist/cjs/index.native.js +18 -0
  81. package/dist/cjs/index.native.js.map +1 -1
  82. package/dist/cjs/shared/colorRamps.cjs +0 -8
  83. package/dist/cjs/shared/colorRamps.native.js +0 -8
  84. package/dist/cjs/shared/colorRamps.native.js.map +1 -1
  85. package/dist/cjs/shared/overlaySizeClass.cjs +42 -0
  86. package/dist/cjs/shared/overlaySizeClass.native.js +45 -0
  87. package/dist/cjs/shared/overlaySizeClass.native.js.map +1 -0
  88. package/dist/cjs/shared/sheetNavigation.cjs +76 -0
  89. package/dist/cjs/shared/sheetNavigation.native.js +129 -0
  90. package/dist/cjs/shared/sheetNavigation.native.js.map +1 -0
  91. package/dist/cjs/shared/systemControlModules.cjs +34 -0
  92. package/dist/cjs/shared/systemControlModules.gnome.cjs +34 -0
  93. package/dist/cjs/shared/systemControlModules.gnome.native.js +37 -0
  94. package/dist/cjs/shared/systemControlModules.gnome.native.js.map +1 -0
  95. package/dist/cjs/shared/systemControlModules.native.js +77 -0
  96. package/dist/cjs/shared/systemControlModules.native.js.map +1 -0
  97. package/dist/cjs/shared/systemControls.cjs +47 -0
  98. package/dist/cjs/shared/systemControls.native.js +51 -0
  99. package/dist/cjs/shared/systemControls.native.js.map +1 -0
  100. package/dist/cjs/standardActions.cjs +117 -0
  101. package/dist/cjs/standardActions.native.js +120 -0
  102. package/dist/cjs/standardActions.native.js.map +1 -0
  103. package/dist/esm/AdaptivePopup/index.mjs +45 -5
  104. package/dist/esm/AdaptivePopup/index.mjs.map +1 -1
  105. package/dist/esm/AdaptivePopup/index.native.js +47 -5
  106. package/dist/esm/AdaptivePopup/index.native.js.map +1 -1
  107. package/dist/esm/Button/glass.mjs +5 -0
  108. package/dist/esm/Button/glass.mjs.map +1 -0
  109. package/dist/esm/Button/glass.native.js +19 -0
  110. package/dist/esm/Button/glass.native.js.map +1 -0
  111. package/dist/esm/Button/index.mjs +153 -28
  112. package/dist/esm/Button/index.mjs.map +1 -1
  113. package/dist/esm/Button/index.native.js +153 -28
  114. package/dist/esm/Button/index.native.js.map +1 -1
  115. package/dist/esm/ContextualSaveBar/index.mjs +7 -9
  116. package/dist/esm/ContextualSaveBar/index.mjs.map +1 -1
  117. package/dist/esm/ContextualSaveBar/index.native.js +7 -9
  118. package/dist/esm/ContextualSaveBar/index.native.js.map +1 -1
  119. package/dist/esm/DescriptionList/index.mjs +0 -1
  120. package/dist/esm/DescriptionList/index.mjs.map +1 -1
  121. package/dist/esm/DescriptionList/index.native.js +0 -1
  122. package/dist/esm/DescriptionList/index.native.js.map +1 -1
  123. package/dist/esm/FloatingPanel/RegularPanel.mjs +139 -0
  124. package/dist/esm/FloatingPanel/RegularPanel.mjs.map +1 -0
  125. package/dist/esm/FloatingPanel/RegularPanel.native.js +141 -0
  126. package/dist/esm/FloatingPanel/RegularPanel.native.js.map +1 -0
  127. package/dist/esm/FloatingPanel/compactFace.mjs +5 -1
  128. package/dist/esm/FloatingPanel/compactFace.mjs.map +1 -1
  129. package/dist/esm/FloatingPanel/compactFace.native.js +5 -1
  130. package/dist/esm/FloatingPanel/compactFace.native.js.map +1 -1
  131. package/dist/esm/FloatingPanel/containingBlock.mjs +21 -0
  132. package/dist/esm/FloatingPanel/containingBlock.mjs.map +1 -0
  133. package/dist/esm/FloatingPanel/containingBlock.native.js +23 -0
  134. package/dist/esm/FloatingPanel/containingBlock.native.js.map +1 -0
  135. package/dist/esm/FloatingPanel/index.mjs +1 -19
  136. package/dist/esm/FloatingPanel/index.mjs.map +1 -1
  137. package/dist/esm/FloatingPanel/index.native.js +83 -49
  138. package/dist/esm/FloatingPanel/index.native.js.map +1 -1
  139. package/dist/esm/FloatingPanel/pointAnchor.mjs +25 -1
  140. package/dist/esm/FloatingPanel/pointAnchor.mjs.map +1 -1
  141. package/dist/esm/FloatingPanel/pointAnchor.native.js +26 -1
  142. package/dist/esm/FloatingPanel/pointAnchor.native.js.map +1 -1
  143. package/dist/esm/FloatingPanel/regularPlacement.mjs +35 -0
  144. package/dist/esm/FloatingPanel/regularPlacement.mjs.map +1 -0
  145. package/dist/esm/FloatingPanel/regularPlacement.native.js +36 -0
  146. package/dist/esm/FloatingPanel/regularPlacement.native.js.map +1 -0
  147. package/dist/esm/fields/Barcode/BarcodeScanner.mjs +8 -9
  148. package/dist/esm/fields/Barcode/BarcodeScanner.mjs.map +1 -1
  149. package/dist/esm/fields/Barcode/BarcodeScanner.native.js +8 -9
  150. package/dist/esm/fields/Barcode/BarcodeScanner.native.js.map +1 -1
  151. package/dist/esm/fields/Combobox/index.mjs +1 -1
  152. package/dist/esm/fields/Combobox/index.mjs.map +1 -1
  153. package/dist/esm/fields/Combobox/index.native.js +3 -1
  154. package/dist/esm/fields/Combobox/index.native.js.map +1 -1
  155. package/dist/esm/fields/FileUpload/index.mjs +84 -61
  156. package/dist/esm/fields/FileUpload/index.mjs.map +1 -1
  157. package/dist/esm/fields/FileUpload/index.native.js +97 -74
  158. package/dist/esm/fields/FileUpload/index.native.js.map +1 -1
  159. package/dist/esm/fields/Geolocation/index.mjs +8 -9
  160. package/dist/esm/fields/Geolocation/index.mjs.map +1 -1
  161. package/dist/esm/fields/Geolocation/index.native.js +8 -9
  162. package/dist/esm/fields/Geolocation/index.native.js.map +1 -1
  163. package/dist/esm/fields/ImageField/index.mjs +6 -8
  164. package/dist/esm/fields/ImageField/index.mjs.map +1 -1
  165. package/dist/esm/fields/ImageField/index.native.js +6 -8
  166. package/dist/esm/fields/ImageField/index.native.js.map +1 -1
  167. package/dist/esm/fields/Input/index.mjs +6 -1
  168. package/dist/esm/fields/Input/index.mjs.map +1 -1
  169. package/dist/esm/fields/Input/index.native.js +6 -1
  170. package/dist/esm/fields/Input/index.native.js.map +1 -1
  171. package/dist/esm/fields/Select/InlineChoices.mjs +3 -2
  172. package/dist/esm/fields/Select/InlineChoices.mjs.map +1 -1
  173. package/dist/esm/fields/Select/InlineChoices.native.js +5 -2
  174. package/dist/esm/fields/Select/InlineChoices.native.js.map +1 -1
  175. package/dist/esm/fields/Select/SheetPickerRow.mjs +129 -0
  176. package/dist/esm/fields/Select/SheetPickerRow.mjs.map +1 -0
  177. package/dist/esm/fields/Select/SheetPickerRow.native.js +137 -0
  178. package/dist/esm/fields/Select/SheetPickerRow.native.js.map +1 -0
  179. package/dist/esm/fields/Select/index.mjs +64 -5
  180. package/dist/esm/fields/Select/index.mjs.map +1 -1
  181. package/dist/esm/fields/Select/index.native.js +86 -27
  182. package/dist/esm/fields/Select/index.native.js.map +1 -1
  183. package/dist/esm/fields/Select/shouldInlineChoices.mjs +12 -1
  184. package/dist/esm/fields/Select/shouldInlineChoices.mjs.map +1 -1
  185. package/dist/esm/fields/Select/shouldInlineChoices.native.js +13 -1
  186. package/dist/esm/fields/Select/shouldInlineChoices.native.js.map +1 -1
  187. package/dist/esm/fields/Slider/index.mjs +96 -4
  188. package/dist/esm/fields/Slider/index.mjs.map +1 -1
  189. package/dist/esm/fields/Slider/index.native.js +103 -5
  190. package/dist/esm/fields/Slider/index.native.js.map +1 -1
  191. package/dist/esm/fields/Switch/index.mjs +71 -1
  192. package/dist/esm/fields/Switch/index.mjs.map +1 -1
  193. package/dist/esm/fields/Switch/index.native.js +72 -1
  194. package/dist/esm/fields/Switch/index.native.js.map +1 -1
  195. package/dist/esm/fields/ToggleGroup/index.mjs +67 -1
  196. package/dist/esm/fields/ToggleGroup/index.mjs.map +1 -1
  197. package/dist/esm/fields/ToggleGroup/index.native.js +75 -1
  198. package/dist/esm/fields/ToggleGroup/index.native.js.map +1 -1
  199. package/dist/esm/fields/nativeDateTime/OsDateTimeSheet.mjs +56 -49
  200. package/dist/esm/fields/nativeDateTime/OsDateTimeSheet.mjs.map +1 -1
  201. package/dist/esm/fields/nativeDateTime/OsDateTimeSheet.native.js +66 -51
  202. package/dist/esm/fields/nativeDateTime/OsDateTimeSheet.native.js.map +1 -1
  203. package/dist/esm/fields/nativeDateTime/sheetKeyboard.mjs +21 -0
  204. package/dist/esm/fields/nativeDateTime/sheetKeyboard.mjs.map +1 -0
  205. package/dist/esm/fields/nativeDateTime/sheetKeyboard.native.js +21 -0
  206. package/dist/esm/fields/nativeDateTime/sheetKeyboard.native.js.map +1 -0
  207. package/dist/esm/index.mjs +5 -2
  208. package/dist/esm/index.mjs.map +1 -1
  209. package/dist/esm/index.native.js +5 -2
  210. package/dist/esm/index.native.js.map +1 -1
  211. package/dist/esm/shared/colorRamps.mjs +0 -8
  212. package/dist/esm/shared/colorRamps.mjs.map +1 -1
  213. package/dist/esm/shared/colorRamps.native.js +0 -8
  214. package/dist/esm/shared/colorRamps.native.js.map +1 -1
  215. package/dist/esm/shared/overlaySizeClass.mjs +14 -0
  216. package/dist/esm/shared/overlaySizeClass.mjs.map +1 -0
  217. package/dist/esm/shared/overlaySizeClass.native.js +14 -0
  218. package/dist/esm/shared/overlaySizeClass.native.js.map +1 -0
  219. package/dist/esm/shared/sheetNavigation.mjs +47 -0
  220. package/dist/esm/shared/sheetNavigation.mjs.map +1 -0
  221. package/dist/esm/shared/sheetNavigation.native.js +97 -0
  222. package/dist/esm/shared/sheetNavigation.native.js.map +1 -0
  223. package/dist/esm/shared/systemControlModules.gnome.mjs +8 -0
  224. package/dist/esm/shared/systemControlModules.gnome.mjs.map +1 -0
  225. package/dist/esm/shared/systemControlModules.gnome.native.js +8 -0
  226. package/dist/esm/shared/systemControlModules.gnome.native.js.map +1 -0
  227. package/dist/esm/shared/systemControlModules.mjs +8 -0
  228. package/dist/esm/shared/systemControlModules.mjs.map +1 -0
  229. package/dist/esm/shared/systemControlModules.native.js +47 -0
  230. package/dist/esm/shared/systemControlModules.native.js.map +1 -0
  231. package/dist/esm/shared/systemControls.mjs +19 -0
  232. package/dist/esm/shared/systemControls.mjs.map +1 -0
  233. package/dist/esm/shared/systemControls.native.js +20 -0
  234. package/dist/esm/shared/systemControls.native.js.map +1 -0
  235. package/dist/esm/standardActions.mjs +91 -0
  236. package/dist/esm/standardActions.mjs.map +1 -0
  237. package/dist/esm/standardActions.native.js +91 -0
  238. package/dist/esm/standardActions.native.js.map +1 -0
  239. package/dist/jsx/AdaptivePopup/index.mjs +45 -5
  240. package/dist/jsx/AdaptivePopup/index.mjs.map +1 -1
  241. package/dist/jsx/AdaptivePopup/index.native.js +47 -5
  242. package/dist/jsx/AdaptivePopup/index.native.js.map +1 -1
  243. package/dist/jsx/Button/glass.mjs +5 -0
  244. package/dist/jsx/Button/glass.mjs.map +1 -0
  245. package/dist/jsx/Button/glass.native.js +47 -0
  246. package/dist/jsx/Button/glass.native.js.map +1 -0
  247. package/dist/jsx/Button/index.mjs +153 -28
  248. package/dist/jsx/Button/index.mjs.map +1 -1
  249. package/dist/jsx/Button/index.native.js +156 -27
  250. package/dist/jsx/Button/index.native.js.map +1 -1
  251. package/dist/jsx/ContextualSaveBar/index.mjs +7 -9
  252. package/dist/jsx/ContextualSaveBar/index.mjs.map +1 -1
  253. package/dist/jsx/ContextualSaveBar/index.native.js +6 -8
  254. package/dist/jsx/ContextualSaveBar/index.native.js.map +1 -1
  255. package/dist/jsx/DescriptionList/index.mjs +0 -1
  256. package/dist/jsx/DescriptionList/index.mjs.map +1 -1
  257. package/dist/jsx/DescriptionList/index.native.js +0 -1
  258. package/dist/jsx/DescriptionList/index.native.js.map +1 -1
  259. package/dist/jsx/FloatingPanel/RegularPanel.mjs +139 -0
  260. package/dist/jsx/FloatingPanel/RegularPanel.mjs.map +1 -0
  261. package/dist/jsx/FloatingPanel/RegularPanel.native.js +169 -0
  262. package/dist/jsx/FloatingPanel/RegularPanel.native.js.map +1 -0
  263. package/dist/jsx/FloatingPanel/compactFace.mjs +5 -1
  264. package/dist/jsx/FloatingPanel/compactFace.mjs.map +1 -1
  265. package/dist/jsx/FloatingPanel/compactFace.native.js +6 -0
  266. package/dist/jsx/FloatingPanel/compactFace.native.js.map +1 -1
  267. package/dist/jsx/FloatingPanel/containingBlock.mjs +21 -0
  268. package/dist/jsx/FloatingPanel/containingBlock.mjs.map +1 -0
  269. package/dist/jsx/FloatingPanel/containingBlock.native.js +51 -0
  270. package/dist/jsx/FloatingPanel/containingBlock.native.js.map +1 -0
  271. package/dist/jsx/FloatingPanel/index.mjs +1 -19
  272. package/dist/jsx/FloatingPanel/index.mjs.map +1 -1
  273. package/dist/jsx/FloatingPanel/index.native.js +79 -45
  274. package/dist/jsx/FloatingPanel/index.native.js.map +1 -1
  275. package/dist/jsx/FloatingPanel/pointAnchor.mjs +25 -1
  276. package/dist/jsx/FloatingPanel/pointAnchor.mjs.map +1 -1
  277. package/dist/jsx/FloatingPanel/pointAnchor.native.js +26 -0
  278. package/dist/jsx/FloatingPanel/pointAnchor.native.js.map +1 -1
  279. package/dist/jsx/FloatingPanel/regularPlacement.mjs +35 -0
  280. package/dist/jsx/FloatingPanel/regularPlacement.mjs.map +1 -0
  281. package/dist/jsx/FloatingPanel/regularPlacement.native.js +65 -0
  282. package/dist/jsx/FloatingPanel/regularPlacement.native.js.map +1 -0
  283. package/dist/jsx/fields/Barcode/BarcodeScanner.mjs +8 -9
  284. package/dist/jsx/fields/Barcode/BarcodeScanner.mjs.map +1 -1
  285. package/dist/jsx/fields/Barcode/BarcodeScanner.native.js +7 -8
  286. package/dist/jsx/fields/Barcode/BarcodeScanner.native.js.map +1 -1
  287. package/dist/jsx/fields/Combobox/index.mjs +1 -1
  288. package/dist/jsx/fields/Combobox/index.mjs.map +1 -1
  289. package/dist/jsx/fields/Combobox/index.native.js +3 -1
  290. package/dist/jsx/fields/Combobox/index.native.js.map +1 -1
  291. package/dist/jsx/fields/FileUpload/index.mjs +84 -61
  292. package/dist/jsx/fields/FileUpload/index.mjs.map +1 -1
  293. package/dist/jsx/fields/FileUpload/index.native.js +96 -73
  294. package/dist/jsx/fields/FileUpload/index.native.js.map +1 -1
  295. package/dist/jsx/fields/Geolocation/index.mjs +8 -9
  296. package/dist/jsx/fields/Geolocation/index.mjs.map +1 -1
  297. package/dist/jsx/fields/Geolocation/index.native.js +7 -8
  298. package/dist/jsx/fields/Geolocation/index.native.js.map +1 -1
  299. package/dist/jsx/fields/ImageField/index.mjs +6 -8
  300. package/dist/jsx/fields/ImageField/index.mjs.map +1 -1
  301. package/dist/jsx/fields/ImageField/index.native.js +4 -6
  302. package/dist/jsx/fields/ImageField/index.native.js.map +1 -1
  303. package/dist/jsx/fields/Input/index.mjs +6 -1
  304. package/dist/jsx/fields/Input/index.mjs.map +1 -1
  305. package/dist/jsx/fields/Input/index.native.js +5 -0
  306. package/dist/jsx/fields/Input/index.native.js.map +1 -1
  307. package/dist/jsx/fields/Select/InlineChoices.mjs +3 -2
  308. package/dist/jsx/fields/Select/InlineChoices.mjs.map +1 -1
  309. package/dist/jsx/fields/Select/InlineChoices.native.js +5 -2
  310. package/dist/jsx/fields/Select/InlineChoices.native.js.map +1 -1
  311. package/dist/jsx/fields/Select/SheetPickerRow.mjs +129 -0
  312. package/dist/jsx/fields/Select/SheetPickerRow.mjs.map +1 -0
  313. package/dist/jsx/fields/Select/SheetPickerRow.native.js +165 -0
  314. package/dist/jsx/fields/Select/SheetPickerRow.native.js.map +1 -0
  315. package/dist/jsx/fields/Select/index.mjs +64 -5
  316. package/dist/jsx/fields/Select/index.mjs.map +1 -1
  317. package/dist/jsx/fields/Select/index.native.js +85 -26
  318. package/dist/jsx/fields/Select/index.native.js.map +1 -1
  319. package/dist/jsx/fields/Select/shouldInlineChoices.mjs +12 -1
  320. package/dist/jsx/fields/Select/shouldInlineChoices.mjs.map +1 -1
  321. package/dist/jsx/fields/Select/shouldInlineChoices.native.js +15 -1
  322. package/dist/jsx/fields/Select/shouldInlineChoices.native.js.map +1 -1
  323. package/dist/jsx/fields/Slider/index.mjs +96 -4
  324. package/dist/jsx/fields/Slider/index.mjs.map +1 -1
  325. package/dist/jsx/fields/Slider/index.native.js +103 -5
  326. package/dist/jsx/fields/Slider/index.native.js.map +1 -1
  327. package/dist/jsx/fields/Switch/index.mjs +71 -1
  328. package/dist/jsx/fields/Switch/index.mjs.map +1 -1
  329. package/dist/jsx/fields/Switch/index.native.js +72 -1
  330. package/dist/jsx/fields/Switch/index.native.js.map +1 -1
  331. package/dist/jsx/fields/ToggleGroup/index.mjs +67 -1
  332. package/dist/jsx/fields/ToggleGroup/index.mjs.map +1 -1
  333. package/dist/jsx/fields/ToggleGroup/index.native.js +75 -1
  334. package/dist/jsx/fields/ToggleGroup/index.native.js.map +1 -1
  335. package/dist/jsx/fields/nativeDateTime/OsDateTimeSheet.mjs +56 -49
  336. package/dist/jsx/fields/nativeDateTime/OsDateTimeSheet.mjs.map +1 -1
  337. package/dist/jsx/fields/nativeDateTime/OsDateTimeSheet.native.js +64 -49
  338. package/dist/jsx/fields/nativeDateTime/OsDateTimeSheet.native.js.map +1 -1
  339. package/dist/jsx/fields/nativeDateTime/sheetKeyboard.mjs +21 -0
  340. package/dist/jsx/fields/nativeDateTime/sheetKeyboard.mjs.map +1 -0
  341. package/dist/jsx/fields/nativeDateTime/sheetKeyboard.native.js +57 -0
  342. package/dist/jsx/fields/nativeDateTime/sheetKeyboard.native.js.map +1 -0
  343. package/dist/jsx/index.js +5 -2
  344. package/dist/jsx/index.js.map +1 -1
  345. package/dist/jsx/index.mjs +5 -2
  346. package/dist/jsx/index.mjs.map +1 -1
  347. package/dist/jsx/index.native.js +18 -0
  348. package/dist/jsx/index.native.js.map +1 -1
  349. package/dist/jsx/shared/colorRamps.mjs +0 -8
  350. package/dist/jsx/shared/colorRamps.mjs.map +1 -1
  351. package/dist/jsx/shared/colorRamps.native.js +0 -8
  352. package/dist/jsx/shared/colorRamps.native.js.map +1 -1
  353. package/dist/jsx/shared/overlaySizeClass.mjs +14 -0
  354. package/dist/jsx/shared/overlaySizeClass.mjs.map +1 -0
  355. package/dist/jsx/shared/overlaySizeClass.native.js +45 -0
  356. package/dist/jsx/shared/overlaySizeClass.native.js.map +1 -0
  357. package/dist/jsx/shared/sheetNavigation.mjs +47 -0
  358. package/dist/jsx/shared/sheetNavigation.mjs.map +1 -0
  359. package/dist/jsx/shared/sheetNavigation.native.js +129 -0
  360. package/dist/jsx/shared/sheetNavigation.native.js.map +1 -0
  361. package/dist/jsx/shared/systemControlModules.gnome.mjs +8 -0
  362. package/dist/jsx/shared/systemControlModules.gnome.mjs.map +1 -0
  363. package/dist/jsx/shared/systemControlModules.gnome.native.js +37 -0
  364. package/dist/jsx/shared/systemControlModules.gnome.native.js.map +1 -0
  365. package/dist/jsx/shared/systemControlModules.mjs +8 -0
  366. package/dist/jsx/shared/systemControlModules.mjs.map +1 -0
  367. package/dist/jsx/shared/systemControlModules.native.js +77 -0
  368. package/dist/jsx/shared/systemControlModules.native.js.map +1 -0
  369. package/dist/jsx/shared/systemControls.mjs +19 -0
  370. package/dist/jsx/shared/systemControls.mjs.map +1 -0
  371. package/dist/jsx/shared/systemControls.native.js +51 -0
  372. package/dist/jsx/shared/systemControls.native.js.map +1 -0
  373. package/dist/jsx/standardActions.mjs +91 -0
  374. package/dist/jsx/standardActions.mjs.map +1 -0
  375. package/dist/jsx/standardActions.native.js +120 -0
  376. package/dist/jsx/standardActions.native.js.map +1 -0
  377. package/package.json +20 -8
  378. package/src/AdaptivePopup/AdaptivePopup.spec.tsx +44 -0
  379. package/src/AdaptivePopup/AdaptivePopup.stories.tsx +12 -32
  380. package/src/AdaptivePopup/index.tsx +65 -13
  381. package/src/Button/Button.disabledGlyph.spec.tsx +111 -0
  382. package/src/Button/Button.iconButton.spec.tsx +279 -0
  383. package/src/Button/Button.stories.tsx +59 -3
  384. package/src/Button/glass.native.ts +38 -0
  385. package/src/Button/glass.ts +18 -0
  386. package/src/Button/index.tsx +272 -40
  387. package/src/ContextualSaveBar/ContextualSaveBar.spec.tsx +3 -1
  388. package/src/ContextualSaveBar/ContextualSaveBar.stories.tsx +2 -2
  389. package/src/ContextualSaveBar/index.tsx +7 -10
  390. package/src/ControlGroup/ControlGroup.stories.tsx +3 -2
  391. package/src/DescriptionList/index.tsx +0 -1
  392. package/src/ErrorSummary.stories.tsx +2 -1
  393. package/src/FieldLayout.stories.tsx +3 -2
  394. package/src/FloatingPanel/FloatingPanel.menuFace.native.spec.tsx +73 -3
  395. package/src/FloatingPanel/FloatingPanel.regularWidth.native.spec.tsx +193 -0
  396. package/src/FloatingPanel/FloatingPanel.stories.tsx +6 -10
  397. package/src/FloatingPanel/RegularPanel.tsx +159 -0
  398. package/src/FloatingPanel/compactFace.spec.ts +24 -1
  399. package/src/FloatingPanel/compactFace.ts +16 -0
  400. package/src/FloatingPanel/containingBlock.ts +32 -0
  401. package/src/FloatingPanel/index.native.tsx +80 -35
  402. package/src/FloatingPanel/index.tsx +1 -33
  403. package/src/FloatingPanel/pointAnchor.spec.ts +29 -0
  404. package/src/FloatingPanel/pointAnchor.ts +30 -0
  405. package/src/FloatingPanel/regularPlacement.spec.ts +65 -0
  406. package/src/FloatingPanel/regularPlacement.ts +40 -0
  407. package/src/Form/Form.stories.tsx +6 -5
  408. package/src/errorSummaryStories.spec.tsx +4 -4
  409. package/src/fields/Barcode/BarcodeScanner.native.tsx +10 -9
  410. package/src/fields/Barcode/BarcodeScanner.tsx +10 -9
  411. package/src/fields/Checkbox/Checkbox.stories.tsx +3 -3
  412. package/src/fields/Checkbox/CheckboxGroup.stories.tsx +2 -2
  413. package/src/fields/ColorPicker/ColorPicker.stories.tsx +2 -2
  414. package/src/fields/Combobox/Combobox.regularWidth.native.spec.tsx +94 -0
  415. package/src/fields/Combobox/Combobox.stories.tsx +2 -2
  416. package/src/fields/Combobox/index.tsx +3 -1
  417. package/src/fields/DatePicker/DatePicker.stories.tsx +2 -1
  418. package/src/fields/DatePicker/DateRangePicker.stories.tsx +2 -2
  419. package/src/fields/DatePicker/DatetimePicker.stories.tsx +2 -1
  420. package/src/fields/DatePicker/MonthPicker.stories.tsx +2 -2
  421. package/src/fields/DatePicker/MultiDatePicker.stories.tsx +2 -2
  422. package/src/fields/FileUpload/FileUpload.spec.tsx +11 -6
  423. package/src/fields/FileUpload/FileUpload.stories.tsx +2 -2
  424. package/src/fields/FileUpload/index.tsx +101 -77
  425. package/src/fields/Geolocation/index.tsx +12 -7
  426. package/src/fields/ImageField/ImageField.spec.tsx +5 -5
  427. package/src/fields/ImageField/ImageField.stories.tsx +2 -2
  428. package/src/fields/ImageField/index.tsx +6 -9
  429. package/src/fields/Input/Input.formName.spec.tsx +53 -0
  430. package/src/fields/Input/Input.stories.tsx +2 -2
  431. package/src/fields/Input/index.tsx +6 -1
  432. package/src/fields/MentionInput/MentionInput.stories.tsx +2 -1
  433. package/src/fields/Progress/Progress.stories.tsx +2 -1
  434. package/src/fields/RadioGroup/RadioGroup.stories.tsx +2 -1
  435. package/src/fields/Select/InlineChoices.tsx +6 -3
  436. package/src/fields/Select/SheetPickerRow.tsx +160 -0
  437. package/src/fields/Select/index.tsx +65 -4
  438. package/src/fields/Select/shouldInlineChoices.spec.ts +21 -1
  439. package/src/fields/Select/shouldInlineChoices.ts +26 -0
  440. package/src/fields/Signature/Signature.stories.tsx +2 -2
  441. package/src/fields/Slider/Slider.system.native.spec.tsx +168 -0
  442. package/src/fields/Slider/index.tsx +166 -30
  443. package/src/fields/Stepper/Stepper.stories.tsx +2 -2
  444. package/src/fields/Switch/Switch.system.native.spec.tsx +162 -0
  445. package/src/fields/Switch/index.tsx +98 -0
  446. package/src/fields/TextArea/TextArea.stories.tsx +2 -2
  447. package/src/fields/ToggleGroup/ToggleGroup.stories.tsx +2 -2
  448. package/src/fields/ToggleGroup/ToggleGroup.system.native.spec.tsx +192 -0
  449. package/src/fields/ToggleGroup/index.tsx +111 -0
  450. package/src/fields/nativeDateTime/OsDateTimeSheet.presentation.spec.tsx +168 -0
  451. package/src/fields/nativeDateTime/OsDateTimeSheet.tsx +60 -30
  452. package/src/fields/nativeDateTime/sheetKeyboard.spec.ts +60 -0
  453. package/src/fields/nativeDateTime/sheetKeyboard.ts +45 -0
  454. package/src/index.ts +25 -2
  455. package/src/shared/colorRamps.ts +1 -11
  456. package/src/shared/overlaySizeClass.spec.ts +27 -0
  457. package/src/shared/overlaySizeClass.ts +36 -0
  458. package/src/shared/sheetNavigation.ts +82 -0
  459. package/src/shared/systemControlModules.gnome.ts +10 -0
  460. package/src/shared/systemControlModules.native.spec.ts +52 -0
  461. package/src/shared/systemControlModules.native.ts +66 -0
  462. package/src/shared/systemControlModules.ts +10 -0
  463. package/src/shared/systemControls.ts +70 -0
  464. package/src/standardActions.ts +96 -0
  465. package/types/AdaptivePopup/index.d.ts +13 -1
  466. package/types/AdaptivePopup/index.d.ts.map +1 -1
  467. package/types/Button/glass.d.ts +15 -0
  468. package/types/Button/glass.d.ts.map +1 -0
  469. package/types/Button/glass.native.d.ts +11 -0
  470. package/types/Button/glass.native.d.ts.map +1 -0
  471. package/types/Button/index.d.ts +45 -1
  472. package/types/Button/index.d.ts.map +1 -1
  473. package/types/ContextualSaveBar/index.d.ts.map +1 -1
  474. package/types/DescriptionList/index.d.ts.map +1 -1
  475. package/types/FloatingPanel/RegularPanel.d.ts +29 -0
  476. package/types/FloatingPanel/RegularPanel.d.ts.map +1 -0
  477. package/types/FloatingPanel/compactFace.d.ts +12 -0
  478. package/types/FloatingPanel/compactFace.d.ts.map +1 -1
  479. package/types/FloatingPanel/containingBlock.d.ts +14 -0
  480. package/types/FloatingPanel/containingBlock.d.ts.map +1 -0
  481. package/types/FloatingPanel/index.d.ts.map +1 -1
  482. package/types/FloatingPanel/index.native.d.ts +6 -1
  483. package/types/FloatingPanel/index.native.d.ts.map +1 -1
  484. package/types/FloatingPanel/pointAnchor.d.ts +12 -0
  485. package/types/FloatingPanel/pointAnchor.d.ts.map +1 -1
  486. package/types/FloatingPanel/regularPlacement.d.ts +20 -0
  487. package/types/FloatingPanel/regularPlacement.d.ts.map +1 -0
  488. package/types/fields/Barcode/BarcodeScanner.d.ts.map +1 -1
  489. package/types/fields/Barcode/BarcodeScanner.native.d.ts.map +1 -1
  490. package/types/fields/Combobox/index.d.ts.map +1 -1
  491. package/types/fields/FileUpload/index.d.ts.map +1 -1
  492. package/types/fields/Geolocation/index.d.ts.map +1 -1
  493. package/types/fields/ImageField/index.d.ts.map +1 -1
  494. package/types/fields/Input/index.d.ts.map +1 -1
  495. package/types/fields/Select/InlineChoices.d.ts.map +1 -1
  496. package/types/fields/Select/SheetPickerRow.d.ts +23 -0
  497. package/types/fields/Select/SheetPickerRow.d.ts.map +1 -0
  498. package/types/fields/Select/index.d.ts.map +1 -1
  499. package/types/fields/Select/shouldInlineChoices.d.ts +15 -0
  500. package/types/fields/Select/shouldInlineChoices.d.ts.map +1 -1
  501. package/types/fields/Slider/index.d.ts +7 -1
  502. package/types/fields/Slider/index.d.ts.map +1 -1
  503. package/types/fields/Switch/index.d.ts +7 -1
  504. package/types/fields/Switch/index.d.ts.map +1 -1
  505. package/types/fields/ToggleGroup/index.d.ts +8 -1
  506. package/types/fields/ToggleGroup/index.d.ts.map +1 -1
  507. package/types/fields/nativeDateTime/OsDateTimeSheet.d.ts.map +1 -1
  508. package/types/fields/nativeDateTime/sheetKeyboard.d.ts +20 -0
  509. package/types/fields/nativeDateTime/sheetKeyboard.d.ts.map +1 -0
  510. package/types/index.d.ts +8 -2
  511. package/types/index.d.ts.map +1 -1
  512. package/types/shared/colorRamps.d.ts +1 -11
  513. package/types/shared/colorRamps.d.ts.map +1 -1
  514. package/types/shared/overlaySizeClass.d.ts +24 -0
  515. package/types/shared/overlaySizeClass.d.ts.map +1 -0
  516. package/types/shared/sheetNavigation.d.ts +31 -0
  517. package/types/shared/sheetNavigation.d.ts.map +1 -0
  518. package/types/shared/systemControlModules.d.ts +5 -0
  519. package/types/shared/systemControlModules.d.ts.map +1 -0
  520. package/types/shared/systemControlModules.gnome.d.ts +5 -0
  521. package/types/shared/systemControlModules.gnome.d.ts.map +1 -0
  522. package/types/shared/systemControlModules.native.d.ts +20 -0
  523. package/types/shared/systemControlModules.native.d.ts.map +1 -0
  524. package/types/shared/systemControls.d.ts +53 -0
  525. package/types/shared/systemControls.d.ts.map +1 -0
  526. package/types/standardActions.d.ts +24 -0
  527. package/types/standardActions.d.ts.map +1 -0
@@ -0,0 +1,169 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var RegularPanel_exports = {};
26
+ __export(RegularPanel_exports, {
27
+ RegularPanel: () => RegularPanel
28
+ });
29
+ module.exports = __toCommonJS(RegularPanel_exports);
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var import_theme = require("@multiplatform.one/theme");
32
+ var import_react = require("react");
33
+ var import_react_native = require("react-native");
34
+ var import_tamagui = require("tamagui");
35
+ var import_t = require("../shared/t.native.js");
36
+ var import_regularPlacement = require("./regularPlacement.native.js");
37
+ function RegularPanel(param) {
38
+ var {
39
+ anchor,
40
+ bounds,
41
+ widthMode,
42
+ echo,
43
+ echoLabel,
44
+ header,
45
+ scrollable,
46
+ fill,
47
+ scrollViewProps,
48
+ framePadding,
49
+ frameGap,
50
+ onBackdropPress,
51
+ onClose,
52
+ children
53
+ } = param;
54
+ var _ref, _ref1, _ref2, _ref3, _ref4;
55
+ var {
56
+ knobProps
57
+ } = (0, import_theme.useResolvedKnobs)({
58
+ painted: false
59
+ });
60
+ var [size, setSize] = (0, import_react.useState)(null);
61
+ var room = Math.max(0, bounds.bottom - bounds.top);
62
+ var fillHeight = fill ? Math.min(import_regularPlacement.regularFillHeight, room) : void 0;
63
+ var placement = anchor && size ? (0, import_regularPlacement.placeRegularPanel)({
64
+ trigger: anchor,
65
+ width: size.width,
66
+ height: fillHeight !== null && fillHeight !== void 0 ? fillHeight : size.height,
67
+ bounds,
68
+ widthMode,
69
+ rtl: import_react_native.I18nManager.isRTL
70
+ }) : null;
71
+ var widthStyle = widthMode === "match-trigger" ? {
72
+ width: anchor === null || anchor === void 0 ? void 0 : anchor.width
73
+ } : widthMode === "at-least-trigger" ? {
74
+ minWidth: (_ref = anchor === null || anchor === void 0 ? void 0 : anchor.width) !== null && _ref !== void 0 ? _ref : 0
75
+ } : void 0;
76
+ var echoRow = echo != null && anchor && anchor.height > 0 ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.Pressable, {
77
+ testID: "floating-panel-regular-echo",
78
+ onPress: onClose,
79
+ accessibilityRole: "button",
80
+ ...(echoLabel ? {
81
+ accessibilityLabel: echoLabel
82
+ } : void 0),
83
+ "aria-expanded": true,
84
+ style: {
85
+ height: anchor.height,
86
+ justifyContent: "center"
87
+ },
88
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
89
+ pointerEvents: "none",
90
+ children: echo
91
+ })
92
+ }) : null;
93
+ return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_react_native.View, {
94
+ style: import_react_native.StyleSheet.absoluteFill,
95
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.Pressable, {
96
+ style: import_react_native.StyleSheet.absoluteFill,
97
+ onPress: onBackdropPress,
98
+ accessibilityRole: "button",
99
+ accessibilityLabel: (0, import_t.t)("Close")
100
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
101
+ testID: "floating-panel-regular",
102
+ onLayout: function onLayout(e) {
103
+ if (size) return;
104
+ var {
105
+ width,
106
+ height
107
+ } = e.nativeEvent.layout;
108
+ if (width > 0 && height > 0) setSize({
109
+ width,
110
+ height
111
+ });
112
+ },
113
+ style: {
114
+ position: "absolute",
115
+ left: (_ref1 = placement === null || placement === void 0 ? void 0 : placement.left) !== null && _ref1 !== void 0 ? _ref1 : bounds.left,
116
+ top: (_ref2 = placement === null || placement === void 0 ? void 0 : placement.top) !== null && _ref2 !== void 0 ? _ref2 : bounds.top,
117
+ ...widthStyle,
118
+ maxWidth: bounds.right - bounds.left,
119
+ maxHeight: (_ref3 = placement === null || placement === void 0 ? void 0 : placement.maxHeight) !== null && _ref3 !== void 0 ? _ref3 : room,
120
+ ...(fillHeight ? {
121
+ height: Math.min(fillHeight, (_ref4 = placement === null || placement === void 0 ? void 0 : placement.maxHeight) !== null && _ref4 !== void 0 ? _ref4 : room)
122
+ } : null),
123
+ opacity: placement ? 1 : 0
124
+ },
125
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
126
+ testID: "floating-panel-regular-surface",
127
+ ...knobProps.elevatedSurface,
128
+ flexShrink: 1,
129
+ minHeight: 0,
130
+ ...(fill ? {
131
+ flex: 1
132
+ } : void 0),
133
+ onAccessibilityEscape: onClose,
134
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
135
+ testID: "floating-panel-regular-clip",
136
+ borderRadius: knobProps.elevatedSurface.borderRadius,
137
+ overflow: "hidden",
138
+ flexShrink: 1,
139
+ minHeight: 0,
140
+ ...(fill ? {
141
+ flex: 1
142
+ } : void 0),
143
+ children: [echoRow, /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
144
+ padding: framePadding,
145
+ gap: frameGap,
146
+ flexShrink: 1,
147
+ minHeight: 0,
148
+ ...(fill ? {
149
+ flex: 1
150
+ } : void 0),
151
+ children: [header, scrollable ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.ScrollView, {
152
+ testID: "floating-panel-regular-scroll",
153
+ style: fill ? {
154
+ flex: 1
155
+ } : {
156
+ flexGrow: 0,
157
+ flexShrink: 1
158
+ },
159
+ keyboardShouldPersistTaps: "handled",
160
+ ...scrollViewProps,
161
+ children
162
+ }) : children]
163
+ })]
164
+ })
165
+ })
166
+ })]
167
+ });
168
+ }
169
+ //# sourceMappingURL=RegularPanel.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","RegularPanel_exports","RegularPanel","module","exports","import_jsx_runtime","require","import_theme","import_react","import_react_native","import_tamagui","import_t","import_regularPlacement","param","anchor","bounds","widthMode","echo","echoLabel","header","scrollable","fill","scrollViewProps","framePadding","frameGap","onBackdropPress","onClose","children","_ref","_ref1","_ref2","_ref3","_ref4","knobProps","useResolvedKnobs","painted","size","setSize","useState","room","Math","max","bottom","top","fillHeight","min","regularFillHeight","placement","placeRegularPanel","trigger","width","height","rtl","I18nManager","isRTL","widthStyle","minWidth","echoRow","jsx","Pressable","testID","onPress","accessibilityRole","accessibilityLabel","style","justifyContent","View","pointerEvents","jsxs","StyleSheet","absoluteFill","t","onLayout","e","nativeEvent","layout","position","left","maxWidth","right","maxHeight","opacity","YStack","elevatedSurface","flexShrink","minHeight","flex","onAccessibilityEscape","borderRadius","overflow","padding","gap","ScrollView","flexGrow","keyboardShouldPersistTaps"],"sources":["RegularPanel.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar RegularPanel_exports = {};\n__export(RegularPanel_exports, {\n RegularPanel: () => RegularPanel\n});\nmodule.exports = __toCommonJS(RegularPanel_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_theme = require(\"@multiplatform.one/theme\");\nvar import_react = require(\"react\");\nvar import_react_native = require(\"react-native\");\nvar import_tamagui = require(\"tamagui\");\nvar import_t = require(\"../shared/t\");\nvar import_regularPlacement = require(\"./regularPlacement\");\nfunction RegularPanel(param) {\n var { anchor, bounds, widthMode, echo, echoLabel, header, scrollable, fill, scrollViewProps, framePadding, frameGap, onBackdropPress, onClose, children } = param;\n var _ref, _ref1, _ref2, _ref3, _ref4;\n var { knobProps } = (0, import_theme.useResolvedKnobs)({\n painted: false\n });\n var [size, setSize] = (0, import_react.useState)(null);\n var room = Math.max(0, bounds.bottom - bounds.top);\n var fillHeight = fill ? Math.min(import_regularPlacement.regularFillHeight, room) : void 0;\n var placement = anchor && size ? (0, import_regularPlacement.placeRegularPanel)({\n trigger: anchor,\n width: size.width,\n height: fillHeight !== null && fillHeight !== void 0 ? fillHeight : size.height,\n bounds,\n widthMode,\n rtl: import_react_native.I18nManager.isRTL\n }) : null;\n var widthStyle = widthMode === \"match-trigger\" ? {\n width: anchor === null || anchor === void 0 ? void 0 : anchor.width\n } : widthMode === \"at-least-trigger\" ? {\n minWidth: (_ref = anchor === null || anchor === void 0 ? void 0 : anchor.width) !== null && _ref !== void 0 ? _ref : 0\n } : void 0;\n var echoRow = echo != null && anchor && anchor.height > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.Pressable, {\n testID: \"floating-panel-regular-echo\",\n onPress: onClose,\n accessibilityRole: \"button\",\n ...echoLabel ? {\n accessibilityLabel: echoLabel\n } : void 0,\n \"aria-expanded\": true,\n style: {\n height: anchor.height,\n justifyContent: \"center\"\n },\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.View, {\n pointerEvents: \"none\",\n children: echo\n })\n }) : null;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_native.View, {\n style: import_react_native.StyleSheet.absoluteFill,\n children: [\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.Pressable, {\n style: import_react_native.StyleSheet.absoluteFill,\n onPress: onBackdropPress,\n accessibilityRole: \"button\",\n accessibilityLabel: (0, import_t.t)(\"Close\")\n }),\n /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.View, {\n testID: \"floating-panel-regular\",\n onLayout: function onLayout(e) {\n if (size) return;\n var { width, height } = e.nativeEvent.layout;\n if (width > 0 && height > 0) setSize({\n width,\n height\n });\n },\n style: {\n position: \"absolute\",\n left: (_ref1 = placement === null || placement === void 0 ? void 0 : placement.left) !== null && _ref1 !== void 0 ? _ref1 : bounds.left,\n top: (_ref2 = placement === null || placement === void 0 ? void 0 : placement.top) !== null && _ref2 !== void 0 ? _ref2 : bounds.top,\n ...widthStyle,\n maxWidth: bounds.right - bounds.left,\n maxHeight: (_ref3 = placement === null || placement === void 0 ? void 0 : placement.maxHeight) !== null && _ref3 !== void 0 ? _ref3 : room,\n ...fillHeight ? {\n height: Math.min(fillHeight, (_ref4 = placement === null || placement === void 0 ? void 0 : placement.maxHeight) !== null && _ref4 !== void 0 ? _ref4 : room)\n } : null,\n opacity: placement ? 1 : 0\n },\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, {\n testID: \"floating-panel-regular-surface\",\n ...knobProps.elevatedSurface,\n flexShrink: 1,\n minHeight: 0,\n ...fill ? {\n flex: 1\n } : void 0,\n onAccessibilityEscape: onClose,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {\n testID: \"floating-panel-regular-clip\",\n borderRadius: knobProps.elevatedSurface.borderRadius,\n overflow: \"hidden\",\n flexShrink: 1,\n minHeight: 0,\n ...fill ? {\n flex: 1\n } : void 0,\n children: [\n echoRow,\n /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {\n padding: framePadding,\n gap: frameGap,\n flexShrink: 1,\n minHeight: 0,\n ...fill ? {\n flex: 1\n } : void 0,\n children: [\n header,\n scrollable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.ScrollView, {\n testID: \"floating-panel-regular-scroll\",\n style: fill ? {\n flex: 1\n } : {\n flexGrow: 0,\n flexShrink: 1\n },\n keyboardShouldPersistTaps: \"handled\",\n ...scrollViewProps,\n children\n }) : children\n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ACd,CAAC;cACDU,yBAAyB,EAAE,SAAS;cACpC,GAAGxE,eAAe;cAClBK;YACF,CAAC,CAAC,GAAGA,QAAQ;UAEjB,CAAC,CAAC;QAEN,CAAC;MACH,CAAC;IACH,CAAC,CAAC;EAEN,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -22,7 +22,9 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
22
22
  }), mod);
23
23
  var compactFace_exports = {};
24
24
  __export(compactFace_exports, {
25
+ MENU_MIN_WIDTH: () => MENU_MIN_WIDTH,
25
26
  SHORT_LIST_MAX: () => SHORT_LIST_MAX,
27
+ menuMinWidth: () => menuMinWidth,
26
28
  pickerCompactFace: () => pickerCompactFace,
27
29
  resolveCompactFace: () => resolveCompactFace
28
30
  });
@@ -35,4 +37,8 @@ function resolveCompactFace(face, insideOverlay) {
35
37
  const SHORT_LIST_MAX = 7;
36
38
  function pickerCompactFace(optionCount, searchable = false) {
37
39
  return !searchable && optionCount <= SHORT_LIST_MAX ? "menu" : "auto";
40
+ }
41
+ const MENU_MIN_WIDTH = 250;
42
+ function menuMinWidth(triggerWidth, availableWidth) {
43
+ return Math.max(0, Math.min(Math.max(triggerWidth, MENU_MIN_WIDTH), availableWidth));
38
44
  }
@@ -24,7 +24,9 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
24
24
  }), mod);
25
25
  var compactFace_exports = {};
26
26
  __export(compactFace_exports, {
27
+ MENU_MIN_WIDTH: () => MENU_MIN_WIDTH,
27
28
  SHORT_LIST_MAX: () => SHORT_LIST_MAX,
29
+ menuMinWidth: () => menuMinWidth,
28
30
  pickerCompactFace: () => pickerCompactFace,
29
31
  resolveCompactFace: () => resolveCompactFace
30
32
  });
@@ -39,4 +41,8 @@ function pickerCompactFace(optionCount) {
39
41
  var searchable = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
40
42
  return !searchable && optionCount <= SHORT_LIST_MAX ? "menu" : "auto";
41
43
  }
44
+ var MENU_MIN_WIDTH = 250;
45
+ function menuMinWidth(triggerWidth, availableWidth) {
46
+ return Math.max(0, Math.min(Math.max(triggerWidth, MENU_MIN_WIDTH), availableWidth));
47
+ }
42
48
  //# sourceMappingURL=compactFace.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","compactFace_exports","SHORT_LIST_MAX","pickerCompactFace","resolveCompactFace","module","exports","face","insideOverlay","optionCount","searchable","arguments","length"],"sources":["compactFace.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar compactFace_exports = {};\n__export(compactFace_exports, {\n SHORT_LIST_MAX: () => SHORT_LIST_MAX,\n pickerCompactFace: () => pickerCompactFace,\n resolveCompactFace: () => resolveCompactFace\n});\nmodule.exports = __toCommonJS(compactFace_exports);\nfunction resolveCompactFace(face, insideOverlay) {\n if (face === \"menu\") return \"menu\";\n if (face === \"auto\") return insideOverlay ? \"menu\" : \"sheet\";\n return \"sheet\";\n}\nvar SHORT_LIST_MAX = 7;\nfunction pickerCompactFace(optionCount) {\n var searchable = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n return !searchable && optionCount <= SHORT_LIST_MAX ? \"menu\" : \"auto\";\n}\n//# sourceMappingURL=compactFace.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CnB,SAAS,CAACiB,EAAE,EAAEI,GAAG,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UAAU,EAAE,EAAEK,IAAI,GAAGjB,gBAAgB,CAACe,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACL;IAAW,CAAC,CAAC;EACxH;EACA,OAAOE,EAAE;AACX,CAAC;AACD,IAAIM,YAAY,GAAIC,GAAG,IAAKR,WAAW,CAAChB,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE;EAAEyB,KAAK,EAAE;AAAK,CAAC,CAAC,EAAED,GAAG,CAAC;AAC1F,IAAIE,mBAAmB,GAAG,CAAC,CAAC;AAC5BhB,QAAQ,CAACgB,mBAAmB,EAAE;EAC5BC,cAAc,EAAEA,CAAA,KAAMA,cAAc;EACpCC,iBAAiB,EAAEA,CAAA,KAAMA,iBAAiB;EAC1CC,kBAAkB,EAAEA,CAAA,KAAMA;AAC5B,CAAC,CAAC;AACFC,MAAM,CAACC,OAAO,GAAGR,YAAY,CAACG,mBAAmB,CAAC;AAClD,SAASG,kBAAkBA,CAACG,IAAI,EAAEC,aAAa,EAAE;EAC/C,IAAID,IAAI,KAAK,MAAM,EAAE,OAAO,MAAM;EAClC,IAAIA,IAAI,KAAK,MAAM,EAAE,OAAOC,aAAa,GAAG,MAAM,GAAG,OAAO;EAC5D,OAAO,OAAO;AAChB;AACA,IAAIN,cAAc,GAAG,CAAC;AACtB,SAASC,iBAAiBA,CAACM,WAAW,EAAE;EACtC,IAAIC,UAAU,GAAGC,SAAS,CAACC,MAAM,GAAG,CAAC,IAAID,SAAS,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,GAAGA,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK;EACvF,OAAO,CAACD,UAAU,IAAID,WAAW,IAAIP,cAAc,GAAG,MAAM,GAAG,MAAM;AACvE","ignoreList":[]}
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","compactFace_exports","MENU_MIN_WIDTH","SHORT_LIST_MAX","menuMinWidth","pickerCompactFace","resolveCompactFace","module","exports","face","insideOverlay","optionCount","searchable","arguments","length","triggerWidth","availableWidth","Math","max","min"],"sources":["compactFace.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar compactFace_exports = {};\n__export(compactFace_exports, {\n MENU_MIN_WIDTH: () => MENU_MIN_WIDTH,\n SHORT_LIST_MAX: () => SHORT_LIST_MAX,\n menuMinWidth: () => menuMinWidth,\n pickerCompactFace: () => pickerCompactFace,\n resolveCompactFace: () => resolveCompactFace\n});\nmodule.exports = __toCommonJS(compactFace_exports);\nfunction resolveCompactFace(face, insideOverlay) {\n if (face === \"menu\") return \"menu\";\n if (face === \"auto\") return insideOverlay ? \"menu\" : \"sheet\";\n return \"sheet\";\n}\nvar SHORT_LIST_MAX = 7;\nfunction pickerCompactFace(optionCount) {\n var searchable = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n return !searchable && optionCount <= SHORT_LIST_MAX ? \"menu\" : \"auto\";\n}\nvar MENU_MIN_WIDTH = 250;\nfunction menuMinWidth(triggerWidth, availableWidth) {\n return Math.max(0, Math.min(Math.max(triggerWidth, MENU_MIN_WIDTH), availableWidth));\n}\n//# sourceMappingURL=compactFace.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GA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EA,CAAA,KAAMA,iBAAiB;EAC1CC,kBAAkB,EAAEA,CAAA,KAAMA;AAC5B,CAAC,CAAC;AACFC,MAAM,CAACC,OAAO,GAAGV,YAAY,CAACG,mBAAmB,CAAC;AAClD,SAASK,kBAAkBA,CAACG,IAAI,EAAEC,aAAa,EAAE;EAC/C,IAAID,IAAI,KAAK,MAAM,EAAE,OAAO,MAAM;EAClC,IAAIA,IAAI,KAAK,MAAM,EAAE,OAAOC,aAAa,GAAG,MAAM,GAAG,OAAO;EAC5D,OAAO,OAAO;AAChB;AACA,IAAIP,cAAc,GAAG,CAAC;AACtB,SAASE,iBAAiBA,CAACM,WAAW,EAAE;EACtC,IAAIC,UAAU,GAAGC,SAAS,CAACC,MAAM,GAAG,CAAC,IAAID,SAAS,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,GAAGA,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK;EACvF,OAAO,CAACD,UAAU,IAAID,WAAW,IAAIR,cAAc,GAAG,MAAM,GAAG,MAAM;AACvE;AACA,IAAID,cAAc,GAAG,GAAG;AACxB,SAASE,YAAYA,CAACW,YAAY,EAAEC,cAAc,EAAE;EAClD,OAAOC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAACF,IAAI,CAACC,GAAG,CAACH,YAAY,EAAEb,cAAc,CAAC,EAAEc,cAAc,CAAC,CAAC;AACtF","ignoreList":[]}
@@ -0,0 +1,46 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: true
22
+ }), mod);
23
+ var containingBlock_exports = {};
24
+ __export(containingBlock_exports, {
25
+ fixedContainingBlockOrigin: () => fixedContainingBlockOrigin
26
+ });
27
+ module.exports = __toCommonJS(containingBlock_exports);
28
+ function fixedContainingBlockOrigin(element) {
29
+ for (let node = element.parentElement; node; node = node.parentElement) {
30
+ const cs = getComputedStyle(node);
31
+ if (cs.display === "contents") continue;
32
+ const set = (value, initial) => !!value && value !== initial;
33
+ const captures = set(cs.transform, "none") || set(cs.perspective, "none") || set(cs.filter, "none") || set(cs.backdropFilter, "none") || set(cs.containerType, "normal") || /transform|perspective|filter/.test(cs.willChange) || /paint|layout|strict|content/.test(cs.contain);
34
+ if (captures) {
35
+ const rect = node.getBoundingClientRect();
36
+ return {
37
+ top: rect.top + node.clientTop - node.scrollTop,
38
+ left: rect.left + node.clientLeft - node.scrollLeft
39
+ };
40
+ }
41
+ }
42
+ return {
43
+ top: 0,
44
+ left: 0
45
+ };
46
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var containingBlock_exports = {};
26
+ __export(containingBlock_exports, {
27
+ fixedContainingBlockOrigin: () => fixedContainingBlockOrigin
28
+ });
29
+ module.exports = __toCommonJS(containingBlock_exports);
30
+ function fixedContainingBlockOrigin(element) {
31
+ for (var node = element.parentElement; node; node = node.parentElement) {
32
+ var cs = getComputedStyle(node);
33
+ if (cs.display === "contents") continue;
34
+ var set = function set2(value, initial) {
35
+ return !!value && value !== initial;
36
+ };
37
+ var captures = set(cs.transform, "none") || set(cs.perspective, "none") || set(cs.filter, "none") || set(cs.backdropFilter, "none") || set(cs.containerType, "normal") || /transform|perspective|filter/.test(cs.willChange) || /paint|layout|strict|content/.test(cs.contain);
38
+ if (captures) {
39
+ var rect = node.getBoundingClientRect();
40
+ return {
41
+ top: rect.top + node.clientTop - node.scrollTop,
42
+ left: rect.left + node.clientLeft - node.scrollLeft
43
+ };
44
+ }
45
+ }
46
+ return {
47
+ top: 0,
48
+ left: 0
49
+ };
50
+ }
51
+ //# sourceMappingURL=containingBlock.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","containingBlock_exports","fixedContainingBlockOrigin","module","exports","element","node","parentElement","cs","getComputedStyle","display","set","set2","initial","captures","transform","perspective","filter","backdropFilter","containerType","test","willChange","contain","rect","getBoundingClientRect","top","clientTop","scrollTop","left","clientLeft","scrollLeft"],"sources":["containingBlock.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar containingBlock_exports = {};\n__export(containingBlock_exports, {\n fixedContainingBlockOrigin: () => fixedContainingBlockOrigin\n});\nmodule.exports = __toCommonJS(containingBlock_exports);\nfunction fixedContainingBlockOrigin(element) {\n for (var node = element.parentElement; node; node = node.parentElement) {\n var cs = getComputedStyle(node);\n if (cs.display === \"contents\") continue;\n var set = function set2(value, initial) {\n return !!value && value !== initial;\n };\n var captures = set(cs.transform, \"none\") || set(cs.perspective, \"none\") || set(cs.filter, \"none\") || set(cs.backdropFilter, \"none\") || set(cs.containerType, \"normal\") || /transform|perspective|filter/.test(cs.willChange) || /paint|layout|strict|content/.test(cs.contain);\n if (captures) {\n var rect = node.getBoundingClientRect();\n return {\n top: rect.top + node.clientTop - node.scrollTop,\n left: rect.left + node.clientLeft - node.scrollLeft\n };\n }\n }\n return {\n top: 0,\n left: 0\n };\n}\n//# sourceMappingURL=containingBlock.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAA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I,CAAC;IAC/B,IAAIE,EAAE,CAACE,OAAO,KAAK,UAAU,EAAE;IAC/B,IAAIC,GAAG,GAAG,SAASC,IAAIA,CAACZ,KAAK,EAAEa,OAAO,EAAE;MACtC,OAAO,CAAC,CAACb,KAAK,IAAIA,KAAK,KAAKa,OAAO;IACrC,CAAC;IACD,IAAIC,QAAQ,GAAGH,GAAG,CAACH,EAAE,CAACO,SAAS,EAAE,MAAM,CAAC,IAAIJ,GAAG,CAACH,EAAE,CAACQ,WAAW,EAAE,MAAM,CAAC,IAAIL,GAAG,CAACH,EAAE,CAACS,MAAM,EAAE,MAAM,CAAC,IAAIN,GAAG,CAACH,EAAE,CAACU,cAAc,EAAE,MAAM,CAAC,IAAIP,GAAG,CAACH,EAAE,CAACW,aAAa,EAAE,QAAQ,CAAC,IAAI,8BAA8B,CAACC,IAAI,CAACZ,EAAE,CAACa,UAAU,CAAC,IAAI,6BAA6B,CAACD,IAAI,CAACZ,EAAE,CAACc,OAAO,CAAC;IAC9Q,IAAIR,QAAQ,EAAE;MACZ,IAAIS,IAAI,GAAGjB,IAAI,CAACkB,qBAAqB,CAAC,CAAC;MACvC,OAAO;QACLC,GAAG,EAAEF,IAAI,CAACE,GAAG,GAAGnB,IAAI,CAACoB,SAAS,GAAGpB,IAAI,CAACqB,SAAS;QAC/CC,IAAI,EAAEL,IAAI,CAACK,IAAI,GAAGtB,IAAI,CAACuB,UAAU,GAAGvB,IAAI,CAACwB;MAC3C,CAAC;IACH;EACF;EACA,OAAO;IACLL,GAAG,EAAE,CAAC;IACNG,IAAI,EAAE;EACR,CAAC;AACH","ignoreList":[]}
@@ -49,6 +49,7 @@ var import_overlayStack = require("../shared/overlayStack.cjs");
49
49
  var import_compactFace = require("./compactFace.cjs");
50
50
  var import_nestedAction = require("./nestedAction.cjs");
51
51
  var import_PanelPortal = require("./PanelPortal.cjs");
52
+ var import_containingBlock = require("./containingBlock.cjs");
52
53
  var import_pointAnchor = require("./pointAnchor.cjs");
53
54
  var import_nestedAction2 = require("./nestedAction.cjs");
54
55
  var import_useFloatingPanel2 = require("./useFloatingPanel.cjs");
@@ -93,25 +94,6 @@ function useKeyboardFocusIntoPanel(open, frameRef, keyboardOpenRef) {
93
94
  };
94
95
  }, [open, frameRef, keyboardOpenRef]);
95
96
  }
96
- function fixedContainingBlockOrigin(element) {
97
- for (let node = element.parentElement; node; node = node.parentElement) {
98
- const cs = getComputedStyle(node);
99
- if (cs.display === "contents") continue;
100
- const set = (value, initial) => !!value && value !== initial;
101
- const captures = set(cs.transform, "none") || set(cs.perspective, "none") || set(cs.filter, "none") || set(cs.backdropFilter, "none") || set(cs.containerType, "normal") || /transform|perspective|filter/.test(cs.willChange) || /paint|layout|strict|content/.test(cs.contain);
102
- if (captures) {
103
- const rect = node.getBoundingClientRect();
104
- return {
105
- top: rect.top + node.clientTop - node.scrollTop,
106
- left: rect.left + node.clientLeft - node.scrollLeft
107
- };
108
- }
109
- }
110
- return {
111
- top: 0,
112
- left: 0
113
- };
114
- }
115
97
  function isRtl(element) {
116
98
  if (!import_tamagui.isWeb || typeof document === "undefined") return false;
117
99
  const direction = element ? getComputedStyle(element).direction : "";
@@ -473,7 +455,7 @@ function FloatingPanelWeb({
473
455
  const scrollContentHeight = dropdownElement.scrollHeight;
474
456
  const totalContentHeight = scrollContentHeight + totalBorderWidth;
475
457
  const liveTransition = panel.panelTransition;
476
- const containingBlock = fixedContainingBlockOrigin(dropdownElement);
458
+ const containingBlock = (0, import_containingBlock.fixedContainingBlockOrigin)(dropdownElement);
477
459
  if (cover && !point) {
478
460
  const rtl = isRtl(trig);
479
461
  const viewport = window.visualViewport;
@@ -45,9 +45,11 @@ var import_tamagui = require("tamagui");
45
45
  var import_overlayStack = require("../shared/overlayStack.native.js");
46
46
  var import_OverlayWindow = require("../shared/OverlayWindow.native.js");
47
47
  var import_t = require("../shared/t.native.js");
48
+ var import_overlaySizeClass = require("../shared/overlaySizeClass.native.js");
48
49
  var import_useKeyboardInset = require("../shared/useKeyboardInset.native.js");
49
50
  var import_compactFace = require("./compactFace.native.js");
50
51
  var import_pointAnchor = require("./pointAnchor.native.js");
52
+ var import_RegularPanel = require("./RegularPanel.native.js");
51
53
  var import_useFloatingPanel = require("./useFloatingPanel.native.js");
52
54
  var import_trailingAction = require("./trailingAction.native.js");
53
55
  var import_useFloatingPanel2 = require("./useFloatingPanel.native.js");
@@ -81,9 +83,12 @@ function FloatingPanel(param) {
81
83
  compactFace,
82
84
  triggerRow,
83
85
  triggerEcho = true,
84
- anchorMode
86
+ anchorMode,
87
+ sheet,
88
+ widthMode,
89
+ fitContent
85
90
  } = param;
86
- var _useContext, _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
91
+ var _useContext, _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
87
92
  var {
88
93
  knobProps
89
94
  } = (0, import_theme2.useResolvedKnobs)({
@@ -124,12 +129,12 @@ function FloatingPanel(param) {
124
129
  if (!disabled) onOpenChange(!open);
125
130
  }, [disabled, onOpenChange, open]);
126
131
  var handleTriggerLongPress = (0, import_react.useCallback)(function (event) {
127
- var _ref7;
132
+ var _ref10;
128
133
  if (disabled) return;
129
134
  var {
130
135
  pageX,
131
136
  pageY
132
- } = (_ref7 = event === null || event === void 0 ? void 0 : event.nativeEvent) !== null && _ref7 !== void 0 ? _ref7 : {};
137
+ } = (_ref10 = event === null || event === void 0 ? void 0 : event.nativeEvent) !== null && _ref10 !== void 0 ? _ref10 : {};
133
138
  setPressPoint(typeof pageX === "number" && typeof pageY === "number" ? {
134
139
  x: pageX,
135
140
  y: pageY
@@ -137,13 +142,16 @@ function FloatingPanel(param) {
137
142
  onOpenChange(true);
138
143
  }, [disabled, onOpenChange]);
139
144
  var isContextMenu = openOn === "contextmenu";
140
- var atPoint = isContextMenu && pressPoint !== null && windowWidth > import_theme2.OVERLAY_BREAKPOINT;
145
+ var regular = (0, import_overlaySizeClass.overlaySizeClass)(windowWidth) === "regular";
146
+ var atPoint = isContextMenu && pressPoint !== null && regular;
141
147
  var insideOverlay = (0, import_overlayStack.useInsideOverlay)();
142
148
  var asMenu = !isContextMenu && (0, import_compactFace.resolveCompactFace)(compactFace, insideOverlay) === "menu";
149
+ var asRegular = regular && !asMenu && !isContextMenu && sheet !== true;
150
+ var anchored = asMenu || asRegular;
143
151
  var triggerRef = (0, import_react.useRef)(null);
144
152
  var [anchor, setAnchor] = (0, import_react.useState)(null);
145
153
  (0, import_react.useLayoutEffect)(function () {
146
- if (!asMenu || !open) {
154
+ if (!anchored || !open) {
147
155
  setAnchor(null);
148
156
  return;
149
157
  }
@@ -169,7 +177,7 @@ function FloatingPanel(param) {
169
177
  return function () {
170
178
  live = false;
171
179
  };
172
- }, [asMenu, open]);
180
+ }, [anchored, open]);
173
181
  var handleBackdropPress = (0, import_react.useCallback)(function () {
174
182
  if (backdropArmed) close();
175
183
  }, [backdropArmed, close]);
@@ -479,10 +487,8 @@ function FloatingPanel(param) {
479
487
  children: asMenu ? /* @__PURE__ */(0, import_jsx_runtime.jsxs)(TriggerMenuPanel, {
480
488
  // An attached menu (an icon trigger, no echo row) opens under its
481
489
  // trigger instead of over it, the UIMenu pull-down (LC-262).
482
- anchor: anchor && anchorMode === "attach" ? {
483
- ...anchor,
484
- y: anchor.y + anchor.height
485
- } : anchor,
490
+ anchor,
491
+ attach: anchorMode === "attach",
486
492
  bounds: {
487
493
  top: topInset + import_useFloatingPanel.panelViewportPadding,
488
494
  left: ((_ref1 = safeArea === null || safeArea === void 0 ? void 0 : safeArea.left) !== null && _ref1 !== void 0 ? _ref1 : 0) + import_useFloatingPanel.panelViewportPadding,
@@ -509,7 +515,27 @@ function FloatingPanel(param) {
509
515
  onBackdropPress: handleBackdropPress,
510
516
  onEscape: close,
511
517
  children: [header, children]
512
- }, `${pressPoint.x},${pressPoint.y}`) : (
518
+ }, `${pressPoint.x},${pressPoint.y}`) : asRegular ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_RegularPanel.RegularPanel, {
519
+ anchor,
520
+ bounds: {
521
+ top: topInset + import_useFloatingPanel.panelViewportPadding,
522
+ left: ((_ref7 = safeArea === null || safeArea === void 0 ? void 0 : safeArea.left) !== null && _ref7 !== void 0 ? _ref7 : 0) + import_useFloatingPanel.panelViewportPadding,
523
+ right: windowWidth - ((_ref8 = safeArea === null || safeArea === void 0 ? void 0 : safeArea.right) !== null && _ref8 !== void 0 ? _ref8 : 0) - import_useFloatingPanel.panelViewportPadding,
524
+ bottom: windowHeight - Math.max((_ref9 = safeArea === null || safeArea === void 0 ? void 0 : safeArea.bottom) !== null && _ref9 !== void 0 ? _ref9 : 0, keyboardInset) - import_useFloatingPanel.panelViewportPadding
525
+ },
526
+ widthMode: (0, import_useFloatingPanel.resolvePanelWidthMode)(widthMode, fitContent),
527
+ echo: triggerEcho ? triggerRow !== null && triggerRow !== void 0 ? triggerRow : trigger : null,
528
+ echoLabel: triggerA11y === null || triggerA11y === void 0 ? void 0 : triggerA11y.label,
529
+ header,
530
+ scrollable: !!scrollable,
531
+ fill: !!sheetFill,
532
+ scrollViewProps,
533
+ framePadding,
534
+ frameGap,
535
+ onBackdropPress: handleBackdropPress,
536
+ onClose: close,
537
+ children
538
+ }) : (
513
539
  /*
514
540
  A plain padded column, not KeyboardAvoidingView: inside a Modal the
515
541
  latter pads the container while the sheet keeps its own fixed height,
@@ -621,6 +647,7 @@ function FloatingPanel(param) {
621
647
  function TriggerMenuPanel(param) {
622
648
  var {
623
649
  anchor,
650
+ attach = false,
624
651
  bounds,
625
652
  echo,
626
653
  echoLabel,
@@ -637,7 +664,7 @@ function TriggerMenuPanel(param) {
637
664
  painted: false
638
665
  });
639
666
  var [size, setSize] = (0, import_react.useState)(null);
640
- var placement = anchor && size ? (0, import_pointAnchor.placeOverTrigger)({
667
+ var placement = anchor && size ? (attach ? import_pointAnchor.placeBesideTrigger : import_pointAnchor.placeOverTrigger)({
641
668
  trigger: anchor,
642
669
  width: size.width,
643
670
  height: size.height,
@@ -668,46 +695,53 @@ function TriggerMenuPanel(param) {
668
695
  position: "absolute",
669
696
  left: (_ref = placement === null || placement === void 0 ? void 0 : placement.left) !== null && _ref !== void 0 ? _ref : bounds.left,
670
697
  top: (_ref1 = placement === null || placement === void 0 ? void 0 : placement.top) !== null && _ref1 !== void 0 ? _ref1 : bounds.top,
671
- minWidth: (_ref2 = anchor === null || anchor === void 0 ? void 0 : anchor.width) !== null && _ref2 !== void 0 ? _ref2 : 0,
698
+ minWidth: (0, import_compactFace.menuMinWidth)((_ref2 = anchor === null || anchor === void 0 ? void 0 : anchor.width) !== null && _ref2 !== void 0 ? _ref2 : 0, bounds.right - bounds.left),
672
699
  maxWidth: bounds.right - bounds.left,
673
700
  maxHeight: (_ref3 = placement === null || placement === void 0 ? void 0 : placement.maxHeight) !== null && _ref3 !== void 0 ? _ref3 : bounds.bottom - bounds.top,
674
701
  opacity: placement ? 1 : 0
675
702
  },
676
- children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
703
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
704
+ testID: "floating-panel-menu-surface",
677
705
  ...knobProps.elevatedSurface,
678
706
  flexShrink: 1,
679
707
  minHeight: 0,
680
- overflow: "hidden",
681
708
  onAccessibilityEscape: onClose,
682
- children: [echo != null && anchor && anchor.height > 0 ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.Pressable, {
683
- testID: "floating-panel-menu-echo",
684
- onPress: onClose,
685
- accessibilityRole: "button",
686
- ...(echoLabel ? {
687
- accessibilityLabel: echoLabel
688
- } : void 0),
689
- "aria-expanded": true,
690
- style: {
691
- height: anchor.height,
692
- minWidth: anchor.width,
693
- justifyContent: "center"
694
- },
695
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
696
- pointerEvents: "none",
697
- children: echo
698
- })
699
- }) : null, /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.ScrollView, {
700
- style: {
701
- flexGrow: 0,
702
- flexShrink: 1
703
- },
704
- keyboardShouldPersistTaps: "handled",
705
- children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
706
- padding: framePadding,
707
- gap: frameGap,
708
- children
709
- })
710
- })]
709
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_tamagui.YStack, {
710
+ testID: "floating-panel-menu-clip",
711
+ borderRadius: knobProps.elevatedSurface.borderRadius,
712
+ overflow: "hidden",
713
+ flexShrink: 1,
714
+ minHeight: 0,
715
+ children: [echo != null && anchor && anchor.height > 0 ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.Pressable, {
716
+ testID: "floating-panel-menu-echo",
717
+ onPress: onClose,
718
+ accessibilityRole: "button",
719
+ ...(echoLabel ? {
720
+ accessibilityLabel: echoLabel
721
+ } : void 0),
722
+ "aria-expanded": true,
723
+ style: {
724
+ height: anchor.height,
725
+ minWidth: anchor.width,
726
+ justifyContent: "center"
727
+ },
728
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.View, {
729
+ pointerEvents: "none",
730
+ children: echo
731
+ })
732
+ }) : null, /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.ScrollView, {
733
+ style: {
734
+ flexGrow: 0,
735
+ flexShrink: 1
736
+ },
737
+ keyboardShouldPersistTaps: "handled",
738
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_tamagui.YStack, {
739
+ padding: framePadding,
740
+ gap: frameGap,
741
+ children
742
+ })
743
+ })]
744
+ })
711
745
  })
712
746
  })]
713
747
  });