@oxy.so/bloom-language 0.0.0-stage → 1.0.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 (2008) hide show
  1. package/LICENSE +673 -0
  2. package/codemod/classnames.generated.json +12145 -0
  3. package/lib/commonjs/binding.js +39 -0
  4. package/lib/commonjs/binding.js.map +1 -0
  5. package/lib/commonjs/chrome/command-host.js +72 -0
  6. package/lib/commonjs/chrome/command-host.js.map +1 -0
  7. package/lib/commonjs/chrome/defined.js +20 -0
  8. package/lib/commonjs/chrome/defined.js.map +1 -0
  9. package/lib/commonjs/chrome/layout-hosts.js +181 -0
  10. package/lib/commonjs/chrome/layout-hosts.js.map +1 -0
  11. package/lib/commonjs/chrome/page-footer-host.js +36 -0
  12. package/lib/commonjs/chrome/page-footer-host.js.map +1 -0
  13. package/lib/commonjs/chrome/rail-host.js +55 -0
  14. package/lib/commonjs/chrome/rail-host.js.map +1 -0
  15. package/lib/commonjs/chrome/safe-area-inset.js +125 -0
  16. package/lib/commonjs/chrome/safe-area-inset.js.map +1 -0
  17. package/lib/commonjs/chrome/scroll-view-host.js +183 -0
  18. package/lib/commonjs/chrome/scroll-view-host.js.map +1 -0
  19. package/lib/commonjs/chrome/settings-host.js +84 -0
  20. package/lib/commonjs/chrome/settings-host.js.map +1 -0
  21. package/lib/commonjs/chrome/sidebar-host.js +227 -0
  22. package/lib/commonjs/chrome/sidebar-host.js.map +1 -0
  23. package/lib/commonjs/controls/accordion.js +80 -0
  24. package/lib/commonjs/controls/accordion.js.map +1 -0
  25. package/lib/commonjs/controls/activity-feed.js +33 -0
  26. package/lib/commonjs/controls/activity-feed.js.map +1 -0
  27. package/lib/commonjs/controls/activity-heatmap.js +46 -0
  28. package/lib/commonjs/controls/activity-heatmap.js.map +1 -0
  29. package/lib/commonjs/controls/address.js +58 -0
  30. package/lib/commonjs/controls/address.js.map +1 -0
  31. package/lib/commonjs/controls/agent-avatar.js +46 -0
  32. package/lib/commonjs/controls/agent-avatar.js.map +1 -0
  33. package/lib/commonjs/controls/agent-chat.js +62 -0
  34. package/lib/commonjs/controls/agent-chat.js.map +1 -0
  35. package/lib/commonjs/controls/agent-creator.js +59 -0
  36. package/lib/commonjs/controls/agent-creator.js.map +1 -0
  37. package/lib/commonjs/controls/agent-reply.js +69 -0
  38. package/lib/commonjs/controls/agent-reply.js.map +1 -0
  39. package/lib/commonjs/controls/agents.js +257 -0
  40. package/lib/commonjs/controls/agents.js.map +1 -0
  41. package/lib/commonjs/controls/ai-chat.js +173 -0
  42. package/lib/commonjs/controls/ai-chat.js.map +1 -0
  43. package/lib/commonjs/controls/ai-profile-card.js +40 -0
  44. package/lib/commonjs/controls/ai-profile-card.js.map +1 -0
  45. package/lib/commonjs/controls/ambient-photo.js +35 -0
  46. package/lib/commonjs/controls/ambient-photo.js.map +1 -0
  47. package/lib/commonjs/controls/animated-check.js +55 -0
  48. package/lib/commonjs/controls/animated-check.js.map +1 -0
  49. package/lib/commonjs/controls/avatar-flight.js +47 -0
  50. package/lib/commonjs/controls/avatar-flight.js.map +1 -0
  51. package/lib/commonjs/controls/booking.js +78 -0
  52. package/lib/commonjs/controls/booking.js.map +1 -0
  53. package/lib/commonjs/controls/breadcrumb.js +57 -0
  54. package/lib/commonjs/controls/breadcrumb.js.map +1 -0
  55. package/lib/commonjs/controls/calendar.js +80 -0
  56. package/lib/commonjs/controls/calendar.js.map +1 -0
  57. package/lib/commonjs/controls/call-ui.js +185 -0
  58. package/lib/commonjs/controls/call-ui.js.map +1 -0
  59. package/lib/commonjs/controls/card-form.js +99 -0
  60. package/lib/commonjs/controls/card-form.js.map +1 -0
  61. package/lib/commonjs/controls/carousel.js +90 -0
  62. package/lib/commonjs/controls/carousel.js.map +1 -0
  63. package/lib/commonjs/controls/cart-panel.js +113 -0
  64. package/lib/commonjs/controls/cart-panel.js.map +1 -0
  65. package/lib/commonjs/controls/category-bar.js +55 -0
  66. package/lib/commonjs/controls/category-bar.js.map +1 -0
  67. package/lib/commonjs/controls/chart-cards.js +247 -0
  68. package/lib/commonjs/controls/chart-cards.js.map +1 -0
  69. package/lib/commonjs/controls/chat-composer.js +208 -0
  70. package/lib/commonjs/controls/chat-composer.js.map +1 -0
  71. package/lib/commonjs/controls/chat-people.js +77 -0
  72. package/lib/commonjs/controls/chat-people.js.map +1 -0
  73. package/lib/commonjs/controls/chat.js +388 -0
  74. package/lib/commonjs/controls/chat.js.map +1 -0
  75. package/lib/commonjs/controls/checkout-sheet.js +35 -0
  76. package/lib/commonjs/controls/checkout-sheet.js.map +1 -0
  77. package/lib/commonjs/controls/checkout-summary.js +67 -0
  78. package/lib/commonjs/controls/checkout-summary.js.map +1 -0
  79. package/lib/commonjs/controls/choice-list.js +96 -0
  80. package/lib/commonjs/controls/choice-list.js.map +1 -0
  81. package/lib/commonjs/controls/code.js +100 -0
  82. package/lib/commonjs/controls/code.js.map +1 -0
  83. package/lib/commonjs/controls/collapsible.js +37 -0
  84. package/lib/commonjs/controls/collapsible.js.map +1 -0
  85. package/lib/commonjs/controls/color-swatch-picker.js +47 -0
  86. package/lib/commonjs/controls/color-swatch-picker.js.map +1 -0
  87. package/lib/commonjs/controls/composer-panel.js +79 -0
  88. package/lib/commonjs/controls/composer-panel.js.map +1 -0
  89. package/lib/commonjs/controls/composition-bar.js +72 -0
  90. package/lib/commonjs/controls/composition-bar.js.map +1 -0
  91. package/lib/commonjs/controls/confirmation-dialog.js +41 -0
  92. package/lib/commonjs/controls/confirmation-dialog.js.map +1 -0
  93. package/lib/commonjs/controls/containers.js +616 -0
  94. package/lib/commonjs/controls/containers.js.map +1 -0
  95. package/lib/commonjs/controls/context-menu.js +93 -0
  96. package/lib/commonjs/controls/context-menu.js.map +1 -0
  97. package/lib/commonjs/controls/creator-studio.js +213 -0
  98. package/lib/commonjs/controls/creator-studio.js.map +1 -0
  99. package/lib/commonjs/controls/crm.js +99 -0
  100. package/lib/commonjs/controls/crm.js.map +1 -0
  101. package/lib/commonjs/controls/dashboard-cards.js +65 -0
  102. package/lib/commonjs/controls/dashboard-cards.js.map +1 -0
  103. package/lib/commonjs/controls/data-table.js +196 -0
  104. package/lib/commonjs/controls/data-table.js.map +1 -0
  105. package/lib/commonjs/controls/date-picker.js +168 -0
  106. package/lib/commonjs/controls/date-picker.js.map +1 -0
  107. package/lib/commonjs/controls/delivery-slot.js +83 -0
  108. package/lib/commonjs/controls/delivery-slot.js.map +1 -0
  109. package/lib/commonjs/controls/draw.js +74 -0
  110. package/lib/commonjs/controls/draw.js.map +1 -0
  111. package/lib/commonjs/controls/drop-zone.js +46 -0
  112. package/lib/commonjs/controls/drop-zone.js.map +1 -0
  113. package/lib/commonjs/controls/eviction.js +50 -0
  114. package/lib/commonjs/controls/eviction.js.map +1 -0
  115. package/lib/commonjs/controls/expandable-text.js +54 -0
  116. package/lib/commonjs/controls/expandable-text.js.map +1 -0
  117. package/lib/commonjs/controls/fact-strip.js +61 -0
  118. package/lib/commonjs/controls/fact-strip.js.map +1 -0
  119. package/lib/commonjs/controls/file-upload.js +38 -0
  120. package/lib/commonjs/controls/file-upload.js.map +1 -0
  121. package/lib/commonjs/controls/generic.js +164 -0
  122. package/lib/commonjs/controls/generic.js.map +1 -0
  123. package/lib/commonjs/controls/glass-group.js +42 -0
  124. package/lib/commonjs/controls/glass-group.js.map +1 -0
  125. package/lib/commonjs/controls/home-search.js +78 -0
  126. package/lib/commonjs/controls/home-search.js.map +1 -0
  127. package/lib/commonjs/controls/hover-card.js +52 -0
  128. package/lib/commonjs/controls/hover-card.js.map +1 -0
  129. package/lib/commonjs/controls/index.js +256 -0
  130. package/lib/commonjs/controls/index.js.map +1 -0
  131. package/lib/commonjs/controls/input-group.js +53 -0
  132. package/lib/commonjs/controls/input-group.js.map +1 -0
  133. package/lib/commonjs/controls/input-otp.js +38 -0
  134. package/lib/commonjs/controls/input-otp.js.map +1 -0
  135. package/lib/commonjs/controls/inputs.js +599 -0
  136. package/lib/commonjs/controls/inputs.js.map +1 -0
  137. package/lib/commonjs/controls/link-preview.js +31 -0
  138. package/lib/commonjs/controls/link-preview.js.map +1 -0
  139. package/lib/commonjs/controls/list.js +281 -0
  140. package/lib/commonjs/controls/list.js.map +1 -0
  141. package/lib/commonjs/controls/listing-actions.js +89 -0
  142. package/lib/commonjs/controls/listing-actions.js.map +1 -0
  143. package/lib/commonjs/controls/listing-card.js +69 -0
  144. package/lib/commonjs/controls/listing-card.js.map +1 -0
  145. package/lib/commonjs/controls/listing-editor.js +67 -0
  146. package/lib/commonjs/controls/listing-editor.js.map +1 -0
  147. package/lib/commonjs/controls/listings.js +132 -0
  148. package/lib/commonjs/controls/listings.js.map +1 -0
  149. package/lib/commonjs/controls/lockup.js +56 -0
  150. package/lib/commonjs/controls/lockup.js.map +1 -0
  151. package/lib/commonjs/controls/logistics.js +231 -0
  152. package/lib/commonjs/controls/logistics.js.map +1 -0
  153. package/lib/commonjs/controls/lyrics.js +49 -0
  154. package/lib/commonjs/controls/lyrics.js.map +1 -0
  155. package/lib/commonjs/controls/mail.js +133 -0
  156. package/lib/commonjs/controls/mail.js.map +1 -0
  157. package/lib/commonjs/controls/map-chrome.js +84 -0
  158. package/lib/commonjs/controls/map-chrome.js.map +1 -0
  159. package/lib/commonjs/controls/markdown.js +74 -0
  160. package/lib/commonjs/controls/markdown.js.map +1 -0
  161. package/lib/commonjs/controls/media-cards.js +224 -0
  162. package/lib/commonjs/controls/media-cards.js.map +1 -0
  163. package/lib/commonjs/controls/media-controls.js +60 -0
  164. package/lib/commonjs/controls/media-controls.js.map +1 -0
  165. package/lib/commonjs/controls/media-flight.js +92 -0
  166. package/lib/commonjs/controls/media-flight.js.map +1 -0
  167. package/lib/commonjs/controls/media-inset-border.js +47 -0
  168. package/lib/commonjs/controls/media-inset-border.js.map +1 -0
  169. package/lib/commonjs/controls/media-player.js +185 -0
  170. package/lib/commonjs/controls/media-player.js.map +1 -0
  171. package/lib/commonjs/controls/media.js +103 -0
  172. package/lib/commonjs/controls/media.js.map +1 -0
  173. package/lib/commonjs/controls/menu-item.js +66 -0
  174. package/lib/commonjs/controls/menu-item.js.map +1 -0
  175. package/lib/commonjs/controls/menubar.js +96 -0
  176. package/lib/commonjs/controls/menubar.js.map +1 -0
  177. package/lib/commonjs/controls/message-bubble.js +83 -0
  178. package/lib/commonjs/controls/message-bubble.js.map +1 -0
  179. package/lib/commonjs/controls/multi-agent-chat.js +44 -0
  180. package/lib/commonjs/controls/multi-agent-chat.js.map +1 -0
  181. package/lib/commonjs/controls/music-library.js +129 -0
  182. package/lib/commonjs/controls/music-library.js.map +1 -0
  183. package/lib/commonjs/controls/note-card.js +51 -0
  184. package/lib/commonjs/controls/note-card.js.map +1 -0
  185. package/lib/commonjs/controls/notification.js +57 -0
  186. package/lib/commonjs/controls/notification.js.map +1 -0
  187. package/lib/commonjs/controls/offering-badge.js +32 -0
  188. package/lib/commonjs/controls/offering-badge.js.map +1 -0
  189. package/lib/commonjs/controls/order-confirmation.js +35 -0
  190. package/lib/commonjs/controls/order-confirmation.js.map +1 -0
  191. package/lib/commonjs/controls/order-status.js +51 -0
  192. package/lib/commonjs/controls/order-status.js.map +1 -0
  193. package/lib/commonjs/controls/overlays.js +214 -0
  194. package/lib/commonjs/controls/overlays.js.map +1 -0
  195. package/lib/commonjs/controls/payment-method.js +68 -0
  196. package/lib/commonjs/controls/payment-method.js.map +1 -0
  197. package/lib/commonjs/controls/payment-status.js +49 -0
  198. package/lib/commonjs/controls/payment-status.js.map +1 -0
  199. package/lib/commonjs/controls/phone-input.js +52 -0
  200. package/lib/commonjs/controls/phone-input.js.map +1 -0
  201. package/lib/commonjs/controls/place-reviews.js +38 -0
  202. package/lib/commonjs/controls/place-reviews.js.map +1 -0
  203. package/lib/commonjs/controls/places.js +157 -0
  204. package/lib/commonjs/controls/places.js.map +1 -0
  205. package/lib/commonjs/controls/price-breakdown.js +45 -0
  206. package/lib/commonjs/controls/price-breakdown.js.map +1 -0
  207. package/lib/commonjs/controls/product.js +105 -0
  208. package/lib/commonjs/controls/product.js.map +1 -0
  209. package/lib/commonjs/controls/project-board.js +89 -0
  210. package/lib/commonjs/controls/project-board.js.map +1 -0
  211. package/lib/commonjs/controls/property-insights.js +43 -0
  212. package/lib/commonjs/controls/property-insights.js.map +1 -0
  213. package/lib/commonjs/controls/queue-panel.js +58 -0
  214. package/lib/commonjs/controls/queue-panel.js.map +1 -0
  215. package/lib/commonjs/controls/rating.js +126 -0
  216. package/lib/commonjs/controls/rating.js.map +1 -0
  217. package/lib/commonjs/controls/route-stops.js +34 -0
  218. package/lib/commonjs/controls/route-stops.js.map +1 -0
  219. package/lib/commonjs/controls/settings.js +162 -0
  220. package/lib/commonjs/controls/settings.js.map +1 -0
  221. package/lib/commonjs/controls/share-sheet.js +47 -0
  222. package/lib/commonjs/controls/share-sheet.js.map +1 -0
  223. package/lib/commonjs/controls/slider.js +77 -0
  224. package/lib/commonjs/controls/slider.js.map +1 -0
  225. package/lib/commonjs/controls/social-button.js +52 -0
  226. package/lib/commonjs/controls/social-button.js.map +1 -0
  227. package/lib/commonjs/controls/sortable-chip-row.js +58 -0
  228. package/lib/commonjs/controls/sortable-chip-row.js.map +1 -0
  229. package/lib/commonjs/controls/sortable-media.js +40 -0
  230. package/lib/commonjs/controls/sortable-media.js.map +1 -0
  231. package/lib/commonjs/controls/spinner-icon.js +31 -0
  232. package/lib/commonjs/controls/spinner-icon.js.map +1 -0
  233. package/lib/commonjs/controls/stat-bar.js +161 -0
  234. package/lib/commonjs/controls/stat-bar.js.map +1 -0
  235. package/lib/commonjs/controls/stat-cards.js +43 -0
  236. package/lib/commonjs/controls/stat-cards.js.map +1 -0
  237. package/lib/commonjs/controls/stay-filters.js +208 -0
  238. package/lib/commonjs/controls/stay-filters.js.map +1 -0
  239. package/lib/commonjs/controls/stay-search.js +83 -0
  240. package/lib/commonjs/controls/stay-search.js.map +1 -0
  241. package/lib/commonjs/controls/stepper.js +65 -0
  242. package/lib/commonjs/controls/stepper.js.map +1 -0
  243. package/lib/commonjs/controls/table.js +109 -0
  244. package/lib/commonjs/controls/table.js.map +1 -0
  245. package/lib/commonjs/controls/tag-field.js +50 -0
  246. package/lib/commonjs/controls/tag-field.js.map +1 -0
  247. package/lib/commonjs/controls/task-list.js +29 -0
  248. package/lib/commonjs/controls/task-list.js.map +1 -0
  249. package/lib/commonjs/controls/tenancy.js +87 -0
  250. package/lib/commonjs/controls/tenancy.js.map +1 -0
  251. package/lib/commonjs/controls/toolbar-group.js +51 -0
  252. package/lib/commonjs/controls/toolbar-group.js.map +1 -0
  253. package/lib/commonjs/controls/tooltip.js +54 -0
  254. package/lib/commonjs/controls/tooltip.js.map +1 -0
  255. package/lib/commonjs/controls/track-list.js +170 -0
  256. package/lib/commonjs/controls/track-list.js.map +1 -0
  257. package/lib/commonjs/controls/vendor-card.js +38 -0
  258. package/lib/commonjs/controls/vendor-card.js.map +1 -0
  259. package/lib/commonjs/controls/video-playback.js +65 -0
  260. package/lib/commonjs/controls/video-playback.js.map +1 -0
  261. package/lib/commonjs/controls/video-view.js +32 -0
  262. package/lib/commonjs/controls/video-view.js.map +1 -0
  263. package/lib/commonjs/controls/view-that-fits.js +102 -0
  264. package/lib/commonjs/controls/view-that-fits.js.map +1 -0
  265. package/lib/commonjs/controls/viewport.js +29 -0
  266. package/lib/commonjs/controls/viewport.js.map +1 -0
  267. package/lib/commonjs/controls/voice.js +40 -0
  268. package/lib/commonjs/controls/voice.js.map +1 -0
  269. package/lib/commonjs/controls/web-search.js +29 -0
  270. package/lib/commonjs/controls/web-search.js.map +1 -0
  271. package/lib/commonjs/controls/zoomable-media-gallery.js +111 -0
  272. package/lib/commonjs/controls/zoomable-media-gallery.js.map +1 -0
  273. package/lib/commonjs/depth-stack.js +111 -0
  274. package/lib/commonjs/depth-stack.js.map +1 -0
  275. package/lib/commonjs/env.js +151 -0
  276. package/lib/commonjs/env.js.map +1 -0
  277. package/lib/commonjs/environment.js +100 -0
  278. package/lib/commonjs/environment.js.map +1 -0
  279. package/lib/commonjs/generated/sf-symbols.generated.js +115 -0
  280. package/lib/commonjs/generated/sf-symbols.generated.js.map +1 -0
  281. package/lib/commonjs/generated/spec.generated.js +3 -0
  282. package/lib/commonjs/generated/spec.generated.js.map +1 -0
  283. package/lib/commonjs/generated/web-sheet.generated.js +3390 -0
  284. package/lib/commonjs/generated/web-sheet.generated.js.map +1 -0
  285. package/lib/commonjs/glass.js +87 -0
  286. package/lib/commonjs/glass.js.map +1 -0
  287. package/lib/commonjs/index.js +3465 -0
  288. package/lib/commonjs/index.js.map +1 -0
  289. package/lib/commonjs/modifier.js +40 -0
  290. package/lib/commonjs/modifier.js.map +1 -0
  291. package/lib/commonjs/motion/keyframes.js +75 -0
  292. package/lib/commonjs/motion/keyframes.js.map +1 -0
  293. package/lib/commonjs/motion/motion-node.js +559 -0
  294. package/lib/commonjs/motion/motion-node.js.map +1 -0
  295. package/lib/commonjs/motion/namespace.js +42 -0
  296. package/lib/commonjs/motion/namespace.js.map +1 -0
  297. package/lib/commonjs/motion/phases.js +78 -0
  298. package/lib/commonjs/motion/phases.js.map +1 -0
  299. package/lib/commonjs/motion/text-roll.js +217 -0
  300. package/lib/commonjs/motion/text-roll.js.map +1 -0
  301. package/lib/commonjs/motion/tokens.js +75 -0
  302. package/lib/commonjs/motion/tokens.js.map +1 -0
  303. package/lib/commonjs/motion/tracks.js +125 -0
  304. package/lib/commonjs/motion/tracks.js.map +1 -0
  305. package/lib/commonjs/motion/transition.js +47 -0
  306. package/lib/commonjs/motion/transition.js.map +1 -0
  307. package/lib/commonjs/motion/values.js +79 -0
  308. package/lib/commonjs/motion/values.js.map +1 -0
  309. package/lib/commonjs/node.js +2922 -0
  310. package/lib/commonjs/node.js.map +1 -0
  311. package/lib/commonjs/package.json +1 -0
  312. package/lib/commonjs/paint.js +304 -0
  313. package/lib/commonjs/paint.js.map +1 -0
  314. package/lib/commonjs/painted-host.js +53 -0
  315. package/lib/commonjs/painted-host.js.map +1 -0
  316. package/lib/commonjs/platform/bottom-bar-host.js +68 -0
  317. package/lib/commonjs/platform/bottom-bar-host.js.map +1 -0
  318. package/lib/commonjs/platform/confirmation-host.android.js +129 -0
  319. package/lib/commonjs/platform/confirmation-host.android.js.map +1 -0
  320. package/lib/commonjs/platform/confirmation-host.ios.js +97 -0
  321. package/lib/commonjs/platform/confirmation-host.ios.js.map +1 -0
  322. package/lib/commonjs/platform/confirmation-host.web.js +62 -0
  323. package/lib/commonjs/platform/confirmation-host.web.js.map +1 -0
  324. package/lib/commonjs/platform/glass-group-host.android.js +54 -0
  325. package/lib/commonjs/platform/glass-group-host.android.js.map +1 -0
  326. package/lib/commonjs/platform/glass-group-host.ios.js +167 -0
  327. package/lib/commonjs/platform/glass-group-host.ios.js.map +1 -0
  328. package/lib/commonjs/platform/glass-group-host.types.js +6 -0
  329. package/lib/commonjs/platform/glass-group-host.types.js.map +1 -0
  330. package/lib/commonjs/platform/glass-group-host.web.js +20 -0
  331. package/lib/commonjs/platform/glass-group-host.web.js.map +1 -0
  332. package/lib/commonjs/platform/glass-host.android.js +72 -0
  333. package/lib/commonjs/platform/glass-host.android.js.map +1 -0
  334. package/lib/commonjs/platform/glass-host.ios.js +110 -0
  335. package/lib/commonjs/platform/glass-host.ios.js.map +1 -0
  336. package/lib/commonjs/platform/glass-host.types.js +6 -0
  337. package/lib/commonjs/platform/glass-host.types.js.map +1 -0
  338. package/lib/commonjs/platform/glass-host.web.js +15 -0
  339. package/lib/commonjs/platform/glass-host.web.js.map +1 -0
  340. package/lib/commonjs/platform/header-host.ios.js +223 -0
  341. package/lib/commonjs/platform/header-host.ios.js.map +1 -0
  342. package/lib/commonjs/platform/header-host.js +13 -0
  343. package/lib/commonjs/platform/header-host.js.map +1 -0
  344. package/lib/commonjs/platform/header-page.js +105 -0
  345. package/lib/commonjs/platform/header-page.js.map +1 -0
  346. package/lib/commonjs/platform/host.types.js +6 -0
  347. package/lib/commonjs/platform/host.types.js.map +1 -0
  348. package/lib/commonjs/platform/lens-glass.js +29 -0
  349. package/lib/commonjs/platform/lens-glass.js.map +1 -0
  350. package/lib/commonjs/platform/lens-group.js +89 -0
  351. package/lib/commonjs/platform/lens-group.js.map +1 -0
  352. package/lib/commonjs/platform/lens.js +52 -0
  353. package/lib/commonjs/platform/lens.js.map +1 -0
  354. package/lib/commonjs/platform/menu-actions.js +81 -0
  355. package/lib/commonjs/platform/menu-actions.js.map +1 -0
  356. package/lib/commonjs/platform/menu-dropdown.js +158 -0
  357. package/lib/commonjs/platform/menu-dropdown.js.map +1 -0
  358. package/lib/commonjs/platform/menu-host.android.js +221 -0
  359. package/lib/commonjs/platform/menu-host.android.js.map +1 -0
  360. package/lib/commonjs/platform/menu-host.ios.js +136 -0
  361. package/lib/commonjs/platform/menu-host.ios.js.map +1 -0
  362. package/lib/commonjs/platform/menu-host.web.js +13 -0
  363. package/lib/commonjs/platform/menu-host.web.js.map +1 -0
  364. package/lib/commonjs/platform/menu-rows.js +175 -0
  365. package/lib/commonjs/platform/menu-rows.js.map +1 -0
  366. package/lib/commonjs/platform/sf-symbol.ios.js +16 -0
  367. package/lib/commonjs/platform/sf-symbol.ios.js.map +1 -0
  368. package/lib/commonjs/platform/values.js +25 -0
  369. package/lib/commonjs/platform/values.js.map +1 -0
  370. package/lib/commonjs/primitives.js +600 -0
  371. package/lib/commonjs/primitives.js.map +1 -0
  372. package/lib/commonjs/render.js +2863 -0
  373. package/lib/commonjs/render.js.map +1 -0
  374. package/lib/commonjs/router/app-layout.js +102 -0
  375. package/lib/commonjs/router/app-layout.js.map +1 -0
  376. package/lib/commonjs/router/bar.ios.js +18 -0
  377. package/lib/commonjs/router/bar.ios.js.map +1 -0
  378. package/lib/commonjs/router/bar.js +39 -0
  379. package/lib/commonjs/router/bar.js.map +1 -0
  380. package/lib/commonjs/router/components.js +91 -0
  381. package/lib/commonjs/router/components.js.map +1 -0
  382. package/lib/commonjs/router/index.js +62 -0
  383. package/lib/commonjs/router/index.js.map +1 -0
  384. package/lib/commonjs/router/navigators.js +31 -0
  385. package/lib/commonjs/router/navigators.js.map +1 -0
  386. package/lib/commonjs/router/nodes.js +122 -0
  387. package/lib/commonjs/router/nodes.js.map +1 -0
  388. package/lib/commonjs/router/pager.js +16 -0
  389. package/lib/commonjs/router/pager.js.map +1 -0
  390. package/lib/commonjs/router/primary.js +16 -0
  391. package/lib/commonjs/router/primary.js.map +1 -0
  392. package/lib/commonjs/router/routes.js +15 -0
  393. package/lib/commonjs/router/routes.js.map +1 -0
  394. package/lib/commonjs/router/screen-header.ios.js +13 -0
  395. package/lib/commonjs/router/screen-header.ios.js.map +1 -0
  396. package/lib/commonjs/router/screen-header.js +11 -0
  397. package/lib/commonjs/router/screen-header.js.map +1 -0
  398. package/lib/commonjs/router/screen-host.js +127 -0
  399. package/lib/commonjs/router/screen-host.js.map +1 -0
  400. package/lib/commonjs/router/sheet-bloom.js +105 -0
  401. package/lib/commonjs/router/sheet-bloom.js.map +1 -0
  402. package/lib/commonjs/router/sheet-host.ios.js +120 -0
  403. package/lib/commonjs/router/sheet-host.ios.js.map +1 -0
  404. package/lib/commonjs/router/sheet-host.js +13 -0
  405. package/lib/commonjs/router/sheet-host.js.map +1 -0
  406. package/lib/commonjs/router/shell-panels.js +86 -0
  407. package/lib/commonjs/router/shell-panels.js.map +1 -0
  408. package/lib/commonjs/router/stack.ios.js +38 -0
  409. package/lib/commonjs/router/stack.ios.js.map +1 -0
  410. package/lib/commonjs/router/stack.js +41 -0
  411. package/lib/commonjs/router/stack.js.map +1 -0
  412. package/lib/commonjs/router/stack.web.js +20 -0
  413. package/lib/commonjs/router/stack.web.js.map +1 -0
  414. package/lib/commonjs/router/tabs.ios.js +53 -0
  415. package/lib/commonjs/router/tabs.ios.js.map +1 -0
  416. package/lib/commonjs/router/tabs.js +23 -0
  417. package/lib/commonjs/router/tabs.js.map +1 -0
  418. package/lib/commonjs/state-host.js +179 -0
  419. package/lib/commonjs/state-host.js.map +1 -0
  420. package/lib/commonjs/style.js +1003 -0
  421. package/lib/commonjs/style.js.map +1 -0
  422. package/lib/commonjs/toast.js +39 -0
  423. package/lib/commonjs/toast.js.map +1 -0
  424. package/lib/commonjs/tokens.js +496 -0
  425. package/lib/commonjs/tokens.js.map +1 -0
  426. package/lib/commonjs/variants.js +107 -0
  427. package/lib/commonjs/variants.js.map +1 -0
  428. package/lib/commonjs/view.js +55 -0
  429. package/lib/commonjs/view.js.map +1 -0
  430. package/lib/commonjs/web-sheet.js +225 -0
  431. package/lib/commonjs/web-sheet.js.map +1 -0
  432. package/lib/module/binding.js +35 -0
  433. package/lib/module/binding.js.map +1 -0
  434. package/lib/module/chrome/command-host.js +67 -0
  435. package/lib/module/chrome/command-host.js.map +1 -0
  436. package/lib/module/chrome/defined.js +16 -0
  437. package/lib/module/chrome/defined.js.map +1 -0
  438. package/lib/module/chrome/layout-hosts.js +172 -0
  439. package/lib/module/chrome/layout-hosts.js.map +1 -0
  440. package/lib/module/chrome/page-footer-host.js +32 -0
  441. package/lib/module/chrome/page-footer-host.js.map +1 -0
  442. package/lib/module/chrome/rail-host.js +50 -0
  443. package/lib/module/chrome/rail-host.js.map +1 -0
  444. package/lib/module/chrome/safe-area-inset.js +118 -0
  445. package/lib/module/chrome/safe-area-inset.js.map +1 -0
  446. package/lib/module/chrome/scroll-view-host.js +177 -0
  447. package/lib/module/chrome/scroll-view-host.js.map +1 -0
  448. package/lib/module/chrome/settings-host.js +79 -0
  449. package/lib/module/chrome/settings-host.js.map +1 -0
  450. package/lib/module/chrome/sidebar-host.js +221 -0
  451. package/lib/module/chrome/sidebar-host.js.map +1 -0
  452. package/lib/module/controls/accordion.js +73 -0
  453. package/lib/module/controls/accordion.js.map +1 -0
  454. package/lib/module/controls/activity-feed.js +29 -0
  455. package/lib/module/controls/activity-feed.js.map +1 -0
  456. package/lib/module/controls/activity-heatmap.js +42 -0
  457. package/lib/module/controls/activity-heatmap.js.map +1 -0
  458. package/lib/module/controls/address.js +53 -0
  459. package/lib/module/controls/address.js.map +1 -0
  460. package/lib/module/controls/agent-avatar.js +42 -0
  461. package/lib/module/controls/agent-avatar.js.map +1 -0
  462. package/lib/module/controls/agent-chat.js +57 -0
  463. package/lib/module/controls/agent-chat.js.map +1 -0
  464. package/lib/module/controls/agent-creator.js +53 -0
  465. package/lib/module/controls/agent-creator.js.map +1 -0
  466. package/lib/module/controls/agent-reply.js +64 -0
  467. package/lib/module/controls/agent-reply.js.map +1 -0
  468. package/lib/module/controls/agents.js +241 -0
  469. package/lib/module/controls/agents.js.map +1 -0
  470. package/lib/module/controls/ai-chat.js +160 -0
  471. package/lib/module/controls/ai-chat.js.map +1 -0
  472. package/lib/module/controls/ai-profile-card.js +36 -0
  473. package/lib/module/controls/ai-profile-card.js.map +1 -0
  474. package/lib/module/controls/ambient-photo.js +31 -0
  475. package/lib/module/controls/ambient-photo.js.map +1 -0
  476. package/lib/module/controls/animated-check.js +50 -0
  477. package/lib/module/controls/animated-check.js.map +1 -0
  478. package/lib/module/controls/avatar-flight.js +42 -0
  479. package/lib/module/controls/avatar-flight.js.map +1 -0
  480. package/lib/module/controls/booking.js +71 -0
  481. package/lib/module/controls/booking.js.map +1 -0
  482. package/lib/module/controls/breadcrumb.js +52 -0
  483. package/lib/module/controls/breadcrumb.js.map +1 -0
  484. package/lib/module/controls/calendar.js +74 -0
  485. package/lib/module/controls/calendar.js.map +1 -0
  486. package/lib/module/controls/call-ui.js +177 -0
  487. package/lib/module/controls/call-ui.js.map +1 -0
  488. package/lib/module/controls/card-form.js +92 -0
  489. package/lib/module/controls/card-form.js.map +1 -0
  490. package/lib/module/controls/carousel.js +84 -0
  491. package/lib/module/controls/carousel.js.map +1 -0
  492. package/lib/module/controls/cart-panel.js +106 -0
  493. package/lib/module/controls/cart-panel.js.map +1 -0
  494. package/lib/module/controls/category-bar.js +51 -0
  495. package/lib/module/controls/category-bar.js.map +1 -0
  496. package/lib/module/controls/chart-cards.js +230 -0
  497. package/lib/module/controls/chart-cards.js.map +1 -0
  498. package/lib/module/controls/chat-composer.js +195 -0
  499. package/lib/module/controls/chat-composer.js.map +1 -0
  500. package/lib/module/controls/chat-people.js +71 -0
  501. package/lib/module/controls/chat-people.js.map +1 -0
  502. package/lib/module/controls/chat.js +361 -0
  503. package/lib/module/controls/chat.js.map +1 -0
  504. package/lib/module/controls/checkout-sheet.js +31 -0
  505. package/lib/module/controls/checkout-sheet.js.map +1 -0
  506. package/lib/module/controls/checkout-summary.js +61 -0
  507. package/lib/module/controls/checkout-summary.js.map +1 -0
  508. package/lib/module/controls/choice-list.js +92 -0
  509. package/lib/module/controls/choice-list.js.map +1 -0
  510. package/lib/module/controls/code.js +93 -0
  511. package/lib/module/controls/code.js.map +1 -0
  512. package/lib/module/controls/collapsible.js +33 -0
  513. package/lib/module/controls/collapsible.js.map +1 -0
  514. package/lib/module/controls/color-swatch-picker.js +43 -0
  515. package/lib/module/controls/color-swatch-picker.js.map +1 -0
  516. package/lib/module/controls/composer-panel.js +73 -0
  517. package/lib/module/controls/composer-panel.js.map +1 -0
  518. package/lib/module/controls/composition-bar.js +67 -0
  519. package/lib/module/controls/composition-bar.js.map +1 -0
  520. package/lib/module/controls/confirmation-dialog.js +37 -0
  521. package/lib/module/controls/confirmation-dialog.js.map +1 -0
  522. package/lib/module/controls/containers.js +590 -0
  523. package/lib/module/controls/containers.js.map +1 -0
  524. package/lib/module/controls/context-menu.js +88 -0
  525. package/lib/module/controls/context-menu.js.map +1 -0
  526. package/lib/module/controls/creator-studio.js +195 -0
  527. package/lib/module/controls/creator-studio.js.map +1 -0
  528. package/lib/module/controls/crm.js +91 -0
  529. package/lib/module/controls/crm.js.map +1 -0
  530. package/lib/module/controls/dashboard-cards.js +59 -0
  531. package/lib/module/controls/dashboard-cards.js.map +1 -0
  532. package/lib/module/controls/data-table.js +187 -0
  533. package/lib/module/controls/data-table.js.map +1 -0
  534. package/lib/module/controls/date-picker.js +159 -0
  535. package/lib/module/controls/date-picker.js.map +1 -0
  536. package/lib/module/controls/delivery-slot.js +77 -0
  537. package/lib/module/controls/delivery-slot.js.map +1 -0
  538. package/lib/module/controls/draw.js +68 -0
  539. package/lib/module/controls/draw.js.map +1 -0
  540. package/lib/module/controls/drop-zone.js +42 -0
  541. package/lib/module/controls/drop-zone.js.map +1 -0
  542. package/lib/module/controls/eviction.js +45 -0
  543. package/lib/module/controls/eviction.js.map +1 -0
  544. package/lib/module/controls/expandable-text.js +50 -0
  545. package/lib/module/controls/expandable-text.js.map +1 -0
  546. package/lib/module/controls/fact-strip.js +56 -0
  547. package/lib/module/controls/fact-strip.js.map +1 -0
  548. package/lib/module/controls/file-upload.js +34 -0
  549. package/lib/module/controls/file-upload.js.map +1 -0
  550. package/lib/module/controls/generic.js +153 -0
  551. package/lib/module/controls/generic.js.map +1 -0
  552. package/lib/module/controls/glass-group.js +38 -0
  553. package/lib/module/controls/glass-group.js.map +1 -0
  554. package/lib/module/controls/home-search.js +71 -0
  555. package/lib/module/controls/home-search.js.map +1 -0
  556. package/lib/module/controls/hover-card.js +47 -0
  557. package/lib/module/controls/hover-card.js.map +1 -0
  558. package/lib/module/controls/index.js +253 -0
  559. package/lib/module/controls/index.js.map +1 -0
  560. package/lib/module/controls/input-group.js +48 -0
  561. package/lib/module/controls/input-group.js.map +1 -0
  562. package/lib/module/controls/input-otp.js +34 -0
  563. package/lib/module/controls/input-otp.js.map +1 -0
  564. package/lib/module/controls/inputs.js +582 -0
  565. package/lib/module/controls/inputs.js.map +1 -0
  566. package/lib/module/controls/link-preview.js +27 -0
  567. package/lib/module/controls/link-preview.js.map +1 -0
  568. package/lib/module/controls/list.js +269 -0
  569. package/lib/module/controls/list.js.map +1 -0
  570. package/lib/module/controls/listing-actions.js +82 -0
  571. package/lib/module/controls/listing-actions.js.map +1 -0
  572. package/lib/module/controls/listing-card.js +63 -0
  573. package/lib/module/controls/listing-card.js.map +1 -0
  574. package/lib/module/controls/listing-editor.js +61 -0
  575. package/lib/module/controls/listing-editor.js.map +1 -0
  576. package/lib/module/controls/listings.js +120 -0
  577. package/lib/module/controls/listings.js.map +1 -0
  578. package/lib/module/controls/lockup.js +51 -0
  579. package/lib/module/controls/lockup.js.map +1 -0
  580. package/lib/module/controls/logistics.js +215 -0
  581. package/lib/module/controls/logistics.js.map +1 -0
  582. package/lib/module/controls/lyrics.js +44 -0
  583. package/lib/module/controls/lyrics.js.map +1 -0
  584. package/lib/module/controls/mail.js +124 -0
  585. package/lib/module/controls/mail.js.map +1 -0
  586. package/lib/module/controls/map-chrome.js +77 -0
  587. package/lib/module/controls/map-chrome.js.map +1 -0
  588. package/lib/module/controls/markdown.js +69 -0
  589. package/lib/module/controls/markdown.js.map +1 -0
  590. package/lib/module/controls/media-cards.js +205 -0
  591. package/lib/module/controls/media-cards.js.map +1 -0
  592. package/lib/module/controls/media-controls.js +55 -0
  593. package/lib/module/controls/media-controls.js.map +1 -0
  594. package/lib/module/controls/media-flight.js +84 -0
  595. package/lib/module/controls/media-flight.js.map +1 -0
  596. package/lib/module/controls/media-inset-border.js +42 -0
  597. package/lib/module/controls/media-inset-border.js.map +1 -0
  598. package/lib/module/controls/media-player.js +174 -0
  599. package/lib/module/controls/media-player.js.map +1 -0
  600. package/lib/module/controls/media.js +94 -0
  601. package/lib/module/controls/media.js.map +1 -0
  602. package/lib/module/controls/menu-item.js +61 -0
  603. package/lib/module/controls/menu-item.js.map +1 -0
  604. package/lib/module/controls/menubar.js +90 -0
  605. package/lib/module/controls/menubar.js.map +1 -0
  606. package/lib/module/controls/message-bubble.js +77 -0
  607. package/lib/module/controls/message-bubble.js.map +1 -0
  608. package/lib/module/controls/multi-agent-chat.js +39 -0
  609. package/lib/module/controls/multi-agent-chat.js.map +1 -0
  610. package/lib/module/controls/music-library.js +119 -0
  611. package/lib/module/controls/music-library.js.map +1 -0
  612. package/lib/module/controls/note-card.js +46 -0
  613. package/lib/module/controls/note-card.js.map +1 -0
  614. package/lib/module/controls/notification.js +53 -0
  615. package/lib/module/controls/notification.js.map +1 -0
  616. package/lib/module/controls/offering-badge.js +28 -0
  617. package/lib/module/controls/offering-badge.js.map +1 -0
  618. package/lib/module/controls/order-confirmation.js +31 -0
  619. package/lib/module/controls/order-confirmation.js.map +1 -0
  620. package/lib/module/controls/order-status.js +46 -0
  621. package/lib/module/controls/order-status.js.map +1 -0
  622. package/lib/module/controls/overlays.js +205 -0
  623. package/lib/module/controls/overlays.js.map +1 -0
  624. package/lib/module/controls/payment-method.js +62 -0
  625. package/lib/module/controls/payment-method.js.map +1 -0
  626. package/lib/module/controls/payment-status.js +44 -0
  627. package/lib/module/controls/payment-status.js.map +1 -0
  628. package/lib/module/controls/phone-input.js +48 -0
  629. package/lib/module/controls/phone-input.js.map +1 -0
  630. package/lib/module/controls/place-reviews.js +33 -0
  631. package/lib/module/controls/place-reviews.js.map +1 -0
  632. package/lib/module/controls/places.js +146 -0
  633. package/lib/module/controls/places.js.map +1 -0
  634. package/lib/module/controls/price-breakdown.js +40 -0
  635. package/lib/module/controls/price-breakdown.js.map +1 -0
  636. package/lib/module/controls/product.js +98 -0
  637. package/lib/module/controls/product.js.map +1 -0
  638. package/lib/module/controls/project-board.js +81 -0
  639. package/lib/module/controls/project-board.js.map +1 -0
  640. package/lib/module/controls/property-insights.js +38 -0
  641. package/lib/module/controls/property-insights.js.map +1 -0
  642. package/lib/module/controls/queue-panel.js +52 -0
  643. package/lib/module/controls/queue-panel.js.map +1 -0
  644. package/lib/module/controls/rating.js +119 -0
  645. package/lib/module/controls/rating.js.map +1 -0
  646. package/lib/module/controls/route-stops.js +30 -0
  647. package/lib/module/controls/route-stops.js.map +1 -0
  648. package/lib/module/controls/settings.js +153 -0
  649. package/lib/module/controls/settings.js.map +1 -0
  650. package/lib/module/controls/share-sheet.js +43 -0
  651. package/lib/module/controls/share-sheet.js.map +1 -0
  652. package/lib/module/controls/slider.js +72 -0
  653. package/lib/module/controls/slider.js.map +1 -0
  654. package/lib/module/controls/social-button.js +48 -0
  655. package/lib/module/controls/social-button.js.map +1 -0
  656. package/lib/module/controls/sortable-chip-row.js +53 -0
  657. package/lib/module/controls/sortable-chip-row.js.map +1 -0
  658. package/lib/module/controls/sortable-media.js +36 -0
  659. package/lib/module/controls/sortable-media.js.map +1 -0
  660. package/lib/module/controls/spinner-icon.js +27 -0
  661. package/lib/module/controls/spinner-icon.js.map +1 -0
  662. package/lib/module/controls/stat-bar.js +155 -0
  663. package/lib/module/controls/stat-bar.js.map +1 -0
  664. package/lib/module/controls/stat-cards.js +38 -0
  665. package/lib/module/controls/stat-cards.js.map +1 -0
  666. package/lib/module/controls/stay-filters.js +193 -0
  667. package/lib/module/controls/stay-filters.js.map +1 -0
  668. package/lib/module/controls/stay-search.js +75 -0
  669. package/lib/module/controls/stay-search.js.map +1 -0
  670. package/lib/module/controls/stepper.js +60 -0
  671. package/lib/module/controls/stepper.js.map +1 -0
  672. package/lib/module/controls/table.js +100 -0
  673. package/lib/module/controls/table.js.map +1 -0
  674. package/lib/module/controls/tag-field.js +46 -0
  675. package/lib/module/controls/tag-field.js.map +1 -0
  676. package/lib/module/controls/task-list.js +25 -0
  677. package/lib/module/controls/task-list.js.map +1 -0
  678. package/lib/module/controls/tenancy.js +79 -0
  679. package/lib/module/controls/tenancy.js.map +1 -0
  680. package/lib/module/controls/toolbar-group.js +46 -0
  681. package/lib/module/controls/toolbar-group.js.map +1 -0
  682. package/lib/module/controls/tooltip.js +49 -0
  683. package/lib/module/controls/tooltip.js.map +1 -0
  684. package/lib/module/controls/track-list.js +159 -0
  685. package/lib/module/controls/track-list.js.map +1 -0
  686. package/lib/module/controls/vendor-card.js +34 -0
  687. package/lib/module/controls/vendor-card.js.map +1 -0
  688. package/lib/module/controls/video-playback.js +59 -0
  689. package/lib/module/controls/video-playback.js.map +1 -0
  690. package/lib/module/controls/video-view.js +28 -0
  691. package/lib/module/controls/video-view.js.map +1 -0
  692. package/lib/module/controls/view-that-fits.js +98 -0
  693. package/lib/module/controls/view-that-fits.js.map +1 -0
  694. package/lib/module/controls/viewport.js +25 -0
  695. package/lib/module/controls/viewport.js.map +1 -0
  696. package/lib/module/controls/voice.js +36 -0
  697. package/lib/module/controls/voice.js.map +1 -0
  698. package/lib/module/controls/web-search.js +25 -0
  699. package/lib/module/controls/web-search.js.map +1 -0
  700. package/lib/module/controls/zoomable-media-gallery.js +106 -0
  701. package/lib/module/controls/zoomable-media-gallery.js.map +1 -0
  702. package/lib/module/depth-stack.js +107 -0
  703. package/lib/module/depth-stack.js.map +1 -0
  704. package/lib/module/env.js +145 -0
  705. package/lib/module/env.js.map +1 -0
  706. package/lib/module/environment.js +91 -0
  707. package/lib/module/environment.js.map +1 -0
  708. package/lib/module/generated/sf-symbols.generated.js +110 -0
  709. package/lib/module/generated/sf-symbols.generated.js.map +1 -0
  710. package/lib/module/generated/spec.generated.js +3 -0
  711. package/lib/module/generated/spec.generated.js.map +1 -0
  712. package/lib/module/generated/web-sheet.generated.js +3386 -0
  713. package/lib/module/generated/web-sheet.generated.js.map +1 -0
  714. package/lib/module/glass.js +83 -0
  715. package/lib/module/glass.js.map +1 -0
  716. package/lib/module/index.js +255 -0
  717. package/lib/module/index.js.map +1 -0
  718. package/lib/module/modifier.js +34 -0
  719. package/lib/module/modifier.js.map +1 -0
  720. package/lib/module/motion/keyframes.js +70 -0
  721. package/lib/module/motion/keyframes.js.map +1 -0
  722. package/lib/module/motion/motion-node.js +550 -0
  723. package/lib/module/motion/motion-node.js.map +1 -0
  724. package/lib/module/motion/namespace.js +38 -0
  725. package/lib/module/motion/namespace.js.map +1 -0
  726. package/lib/module/motion/phases.js +74 -0
  727. package/lib/module/motion/phases.js.map +1 -0
  728. package/lib/module/motion/text-roll.js +212 -0
  729. package/lib/module/motion/text-roll.js.map +1 -0
  730. package/lib/module/motion/tokens.js +66 -0
  731. package/lib/module/motion/tokens.js.map +1 -0
  732. package/lib/module/motion/tracks.js +121 -0
  733. package/lib/module/motion/tracks.js.map +1 -0
  734. package/lib/module/motion/transition.js +36 -0
  735. package/lib/module/motion/transition.js.map +1 -0
  736. package/lib/module/motion/values.js +68 -0
  737. package/lib/module/motion/values.js.map +1 -0
  738. package/lib/module/node.js +2918 -0
  739. package/lib/module/node.js.map +1 -0
  740. package/lib/module/package.json +1 -0
  741. package/lib/module/paint.js +298 -0
  742. package/lib/module/paint.js.map +1 -0
  743. package/lib/module/painted-host.js +49 -0
  744. package/lib/module/painted-host.js.map +1 -0
  745. package/lib/module/platform/bottom-bar-host.js +63 -0
  746. package/lib/module/platform/bottom-bar-host.js.map +1 -0
  747. package/lib/module/platform/confirmation-host.android.js +124 -0
  748. package/lib/module/platform/confirmation-host.android.js.map +1 -0
  749. package/lib/module/platform/confirmation-host.ios.js +93 -0
  750. package/lib/module/platform/confirmation-host.ios.js.map +1 -0
  751. package/lib/module/platform/confirmation-host.web.js +59 -0
  752. package/lib/module/platform/confirmation-host.web.js.map +1 -0
  753. package/lib/module/platform/glass-group-host.android.js +48 -0
  754. package/lib/module/platform/glass-group-host.android.js.map +1 -0
  755. package/lib/module/platform/glass-group-host.ios.js +160 -0
  756. package/lib/module/platform/glass-group-host.ios.js.map +1 -0
  757. package/lib/module/platform/glass-group-host.types.js +4 -0
  758. package/lib/module/platform/glass-group-host.types.js.map +1 -0
  759. package/lib/module/platform/glass-group-host.web.js +15 -0
  760. package/lib/module/platform/glass-group-host.web.js.map +1 -0
  761. package/lib/module/platform/glass-host.android.js +67 -0
  762. package/lib/module/platform/glass-host.android.js.map +1 -0
  763. package/lib/module/platform/glass-host.ios.js +106 -0
  764. package/lib/module/platform/glass-host.ios.js.map +1 -0
  765. package/lib/module/platform/glass-host.types.js +4 -0
  766. package/lib/module/platform/glass-host.types.js.map +1 -0
  767. package/lib/module/platform/glass-host.web.js +11 -0
  768. package/lib/module/platform/glass-host.web.js.map +1 -0
  769. package/lib/module/platform/header-host.ios.js +217 -0
  770. package/lib/module/platform/header-host.ios.js.map +1 -0
  771. package/lib/module/platform/header-host.js +5 -0
  772. package/lib/module/platform/header-host.js.map +1 -0
  773. package/lib/module/platform/header-page.js +100 -0
  774. package/lib/module/platform/header-page.js.map +1 -0
  775. package/lib/module/platform/host.types.js +4 -0
  776. package/lib/module/platform/host.types.js.map +1 -0
  777. package/lib/module/platform/lens-glass.js +25 -0
  778. package/lib/module/platform/lens-glass.js.map +1 -0
  779. package/lib/module/platform/lens-group.js +81 -0
  780. package/lib/module/platform/lens-group.js.map +1 -0
  781. package/lib/module/platform/lens.js +49 -0
  782. package/lib/module/platform/lens.js.map +1 -0
  783. package/lib/module/platform/menu-actions.js +74 -0
  784. package/lib/module/platform/menu-actions.js.map +1 -0
  785. package/lib/module/platform/menu-dropdown.js +151 -0
  786. package/lib/module/platform/menu-dropdown.js.map +1 -0
  787. package/lib/module/platform/menu-host.android.js +213 -0
  788. package/lib/module/platform/menu-host.android.js.map +1 -0
  789. package/lib/module/platform/menu-host.ios.js +132 -0
  790. package/lib/module/platform/menu-host.ios.js.map +1 -0
  791. package/lib/module/platform/menu-host.web.js +5 -0
  792. package/lib/module/platform/menu-host.web.js.map +1 -0
  793. package/lib/module/platform/menu-rows.js +165 -0
  794. package/lib/module/platform/menu-rows.js.map +1 -0
  795. package/lib/module/platform/sf-symbol.ios.js +11 -0
  796. package/lib/module/platform/sf-symbol.ios.js.map +1 -0
  797. package/lib/module/platform/values.js +21 -0
  798. package/lib/module/platform/values.js.map +1 -0
  799. package/lib/module/primitives.js +536 -0
  800. package/lib/module/primitives.js.map +1 -0
  801. package/lib/module/render.js +2855 -0
  802. package/lib/module/render.js.map +1 -0
  803. package/lib/module/router/app-layout.js +97 -0
  804. package/lib/module/router/app-layout.js.map +1 -0
  805. package/lib/module/router/bar.ios.js +14 -0
  806. package/lib/module/router/bar.ios.js.map +1 -0
  807. package/lib/module/router/bar.js +35 -0
  808. package/lib/module/router/bar.js.map +1 -0
  809. package/lib/module/router/components.js +85 -0
  810. package/lib/module/router/components.js.map +1 -0
  811. package/lib/module/router/index.js +9 -0
  812. package/lib/module/router/index.js.map +1 -0
  813. package/lib/module/router/navigators.js +28 -0
  814. package/lib/module/router/navigators.js.map +1 -0
  815. package/lib/module/router/nodes.js +112 -0
  816. package/lib/module/router/nodes.js.map +1 -0
  817. package/lib/module/router/pager.js +13 -0
  818. package/lib/module/router/pager.js.map +1 -0
  819. package/lib/module/router/primary.js +13 -0
  820. package/lib/module/router/primary.js.map +1 -0
  821. package/lib/module/router/routes.js +12 -0
  822. package/lib/module/router/routes.js.map +1 -0
  823. package/lib/module/router/screen-header.ios.js +11 -0
  824. package/lib/module/router/screen-header.ios.js.map +1 -0
  825. package/lib/module/router/screen-header.js +7 -0
  826. package/lib/module/router/screen-header.js.map +1 -0
  827. package/lib/module/router/screen-host.js +123 -0
  828. package/lib/module/router/screen-host.js.map +1 -0
  829. package/lib/module/router/sheet-bloom.js +98 -0
  830. package/lib/module/router/sheet-bloom.js.map +1 -0
  831. package/lib/module/router/sheet-host.ios.js +115 -0
  832. package/lib/module/router/sheet-host.ios.js.map +1 -0
  833. package/lib/module/router/sheet-host.js +5 -0
  834. package/lib/module/router/sheet-host.js.map +1 -0
  835. package/lib/module/router/shell-panels.js +81 -0
  836. package/lib/module/router/shell-panels.js.map +1 -0
  837. package/lib/module/router/stack.ios.js +33 -0
  838. package/lib/module/router/stack.ios.js.map +1 -0
  839. package/lib/module/router/stack.js +36 -0
  840. package/lib/module/router/stack.js.map +1 -0
  841. package/lib/module/router/stack.web.js +15 -0
  842. package/lib/module/router/stack.web.js.map +1 -0
  843. package/lib/module/router/tabs.ios.js +48 -0
  844. package/lib/module/router/tabs.ios.js.map +1 -0
  845. package/lib/module/router/tabs.js +18 -0
  846. package/lib/module/router/tabs.js.map +1 -0
  847. package/lib/module/state-host.js +174 -0
  848. package/lib/module/state-host.js.map +1 -0
  849. package/lib/module/style.js +971 -0
  850. package/lib/module/style.js.map +1 -0
  851. package/lib/module/toast.js +36 -0
  852. package/lib/module/toast.js.map +1 -0
  853. package/lib/module/tokens.js +409 -0
  854. package/lib/module/tokens.js.map +1 -0
  855. package/lib/module/variants.js +98 -0
  856. package/lib/module/variants.js.map +1 -0
  857. package/lib/module/view.js +51 -0
  858. package/lib/module/view.js.map +1 -0
  859. package/lib/module/web-sheet.js +216 -0
  860. package/lib/module/web-sheet.js.map +1 -0
  861. package/lib/typescript/commonjs/binding.d.ts +31 -0
  862. package/lib/typescript/commonjs/binding.d.ts.map +1 -0
  863. package/lib/typescript/commonjs/chrome/command-host.d.ts +7 -0
  864. package/lib/typescript/commonjs/chrome/command-host.d.ts.map +1 -0
  865. package/lib/typescript/commonjs/chrome/defined.d.ts +7 -0
  866. package/lib/typescript/commonjs/chrome/defined.d.ts.map +1 -0
  867. package/lib/typescript/commonjs/chrome/layout-hosts.d.ts +26 -0
  868. package/lib/typescript/commonjs/chrome/layout-hosts.d.ts.map +1 -0
  869. package/lib/typescript/commonjs/chrome/page-footer-host.d.ts +10 -0
  870. package/lib/typescript/commonjs/chrome/page-footer-host.d.ts.map +1 -0
  871. package/lib/typescript/commonjs/chrome/rail-host.d.ts +3 -0
  872. package/lib/typescript/commonjs/chrome/rail-host.d.ts.map +1 -0
  873. package/lib/typescript/commonjs/chrome/safe-area-inset.d.ts +37 -0
  874. package/lib/typescript/commonjs/chrome/safe-area-inset.d.ts.map +1 -0
  875. package/lib/typescript/commonjs/chrome/scroll-view-host.d.ts +31 -0
  876. package/lib/typescript/commonjs/chrome/scroll-view-host.d.ts.map +1 -0
  877. package/lib/typescript/commonjs/chrome/settings-host.d.ts +12 -0
  878. package/lib/typescript/commonjs/chrome/settings-host.d.ts.map +1 -0
  879. package/lib/typescript/commonjs/chrome/sidebar-host.d.ts +18 -0
  880. package/lib/typescript/commonjs/chrome/sidebar-host.d.ts.map +1 -0
  881. package/lib/typescript/commonjs/controls/accordion.d.ts +38 -0
  882. package/lib/typescript/commonjs/controls/accordion.d.ts.map +1 -0
  883. package/lib/typescript/commonjs/controls/activity-feed.d.ts +21 -0
  884. package/lib/typescript/commonjs/controls/activity-feed.d.ts.map +1 -0
  885. package/lib/typescript/commonjs/controls/activity-heatmap.d.ts +40 -0
  886. package/lib/typescript/commonjs/controls/activity-heatmap.d.ts.map +1 -0
  887. package/lib/typescript/commonjs/controls/address.d.ts +41 -0
  888. package/lib/typescript/commonjs/controls/address.d.ts.map +1 -0
  889. package/lib/typescript/commonjs/controls/agent-avatar.d.ts +36 -0
  890. package/lib/typescript/commonjs/controls/agent-avatar.d.ts.map +1 -0
  891. package/lib/typescript/commonjs/controls/agent-chat.d.ts +43 -0
  892. package/lib/typescript/commonjs/controls/agent-chat.d.ts.map +1 -0
  893. package/lib/typescript/commonjs/controls/agent-creator.d.ts +35 -0
  894. package/lib/typescript/commonjs/controls/agent-creator.d.ts.map +1 -0
  895. package/lib/typescript/commonjs/controls/agent-reply.d.ts +26 -0
  896. package/lib/typescript/commonjs/controls/agent-reply.d.ts.map +1 -0
  897. package/lib/typescript/commonjs/controls/agents.d.ts +159 -0
  898. package/lib/typescript/commonjs/controls/agents.d.ts.map +1 -0
  899. package/lib/typescript/commonjs/controls/ai-chat.d.ts +103 -0
  900. package/lib/typescript/commonjs/controls/ai-chat.d.ts.map +1 -0
  901. package/lib/typescript/commonjs/controls/ai-profile-card.d.ts +26 -0
  902. package/lib/typescript/commonjs/controls/ai-profile-card.d.ts.map +1 -0
  903. package/lib/typescript/commonjs/controls/ambient-photo.d.ts +23 -0
  904. package/lib/typescript/commonjs/controls/ambient-photo.d.ts.map +1 -0
  905. package/lib/typescript/commonjs/controls/animated-check.d.ts +19 -0
  906. package/lib/typescript/commonjs/controls/animated-check.d.ts.map +1 -0
  907. package/lib/typescript/commonjs/controls/avatar-flight.d.ts +20 -0
  908. package/lib/typescript/commonjs/controls/avatar-flight.d.ts.map +1 -0
  909. package/lib/typescript/commonjs/controls/booking.d.ts +50 -0
  910. package/lib/typescript/commonjs/controls/booking.d.ts.map +1 -0
  911. package/lib/typescript/commonjs/controls/breadcrumb.d.ts +38 -0
  912. package/lib/typescript/commonjs/controls/breadcrumb.d.ts.map +1 -0
  913. package/lib/typescript/commonjs/controls/calendar.d.ts +46 -0
  914. package/lib/typescript/commonjs/controls/calendar.d.ts.map +1 -0
  915. package/lib/typescript/commonjs/controls/call-ui.d.ts +106 -0
  916. package/lib/typescript/commonjs/controls/call-ui.d.ts.map +1 -0
  917. package/lib/typescript/commonjs/controls/card-form.d.ts +44 -0
  918. package/lib/typescript/commonjs/controls/card-form.d.ts.map +1 -0
  919. package/lib/typescript/commonjs/controls/carousel.d.ts +64 -0
  920. package/lib/typescript/commonjs/controls/carousel.d.ts.map +1 -0
  921. package/lib/typescript/commonjs/controls/cart-panel.d.ts +59 -0
  922. package/lib/typescript/commonjs/controls/cart-panel.d.ts.map +1 -0
  923. package/lib/typescript/commonjs/controls/category-bar.d.ts +30 -0
  924. package/lib/typescript/commonjs/controls/category-bar.d.ts.map +1 -0
  925. package/lib/typescript/commonjs/controls/chart-cards.d.ts +139 -0
  926. package/lib/typescript/commonjs/controls/chart-cards.d.ts.map +1 -0
  927. package/lib/typescript/commonjs/controls/chat-composer.d.ts +117 -0
  928. package/lib/typescript/commonjs/controls/chat-composer.d.ts.map +1 -0
  929. package/lib/typescript/commonjs/controls/chat-people.d.ts +49 -0
  930. package/lib/typescript/commonjs/controls/chat-people.d.ts.map +1 -0
  931. package/lib/typescript/commonjs/controls/chat.d.ts +211 -0
  932. package/lib/typescript/commonjs/controls/chat.d.ts.map +1 -0
  933. package/lib/typescript/commonjs/controls/checkout-sheet.d.ts +26 -0
  934. package/lib/typescript/commonjs/controls/checkout-sheet.d.ts.map +1 -0
  935. package/lib/typescript/commonjs/controls/checkout-summary.d.ts +43 -0
  936. package/lib/typescript/commonjs/controls/checkout-summary.d.ts.map +1 -0
  937. package/lib/typescript/commonjs/controls/choice-list.d.ts +34 -0
  938. package/lib/typescript/commonjs/controls/choice-list.d.ts.map +1 -0
  939. package/lib/typescript/commonjs/controls/code.d.ts +53 -0
  940. package/lib/typescript/commonjs/controls/code.d.ts.map +1 -0
  941. package/lib/typescript/commonjs/controls/collapsible.d.ts +21 -0
  942. package/lib/typescript/commonjs/controls/collapsible.d.ts.map +1 -0
  943. package/lib/typescript/commonjs/controls/color-swatch-picker.d.ts +21 -0
  944. package/lib/typescript/commonjs/controls/color-swatch-picker.d.ts.map +1 -0
  945. package/lib/typescript/commonjs/controls/composer-panel.d.ts +48 -0
  946. package/lib/typescript/commonjs/controls/composer-panel.d.ts.map +1 -0
  947. package/lib/typescript/commonjs/controls/composition-bar.d.ts +27 -0
  948. package/lib/typescript/commonjs/controls/composition-bar.d.ts.map +1 -0
  949. package/lib/typescript/commonjs/controls/confirmation-dialog.d.ts +47 -0
  950. package/lib/typescript/commonjs/controls/confirmation-dialog.d.ts.map +1 -0
  951. package/lib/typescript/commonjs/controls/containers.d.ts +307 -0
  952. package/lib/typescript/commonjs/controls/containers.d.ts.map +1 -0
  953. package/lib/typescript/commonjs/controls/context-menu.d.ts +32 -0
  954. package/lib/typescript/commonjs/controls/context-menu.d.ts.map +1 -0
  955. package/lib/typescript/commonjs/controls/creator-studio.d.ts +111 -0
  956. package/lib/typescript/commonjs/controls/creator-studio.d.ts.map +1 -0
  957. package/lib/typescript/commonjs/controls/crm.d.ts +55 -0
  958. package/lib/typescript/commonjs/controls/crm.d.ts.map +1 -0
  959. package/lib/typescript/commonjs/controls/dashboard-cards.d.ts +33 -0
  960. package/lib/typescript/commonjs/controls/dashboard-cards.d.ts.map +1 -0
  961. package/lib/typescript/commonjs/controls/data-table.d.ts +103 -0
  962. package/lib/typescript/commonjs/controls/data-table.d.ts.map +1 -0
  963. package/lib/typescript/commonjs/controls/date-picker.d.ts +103 -0
  964. package/lib/typescript/commonjs/controls/date-picker.d.ts.map +1 -0
  965. package/lib/typescript/commonjs/controls/delivery-slot.d.ts +46 -0
  966. package/lib/typescript/commonjs/controls/delivery-slot.d.ts.map +1 -0
  967. package/lib/typescript/commonjs/controls/draw.d.ts +92 -0
  968. package/lib/typescript/commonjs/controls/draw.d.ts.map +1 -0
  969. package/lib/typescript/commonjs/controls/drop-zone.d.ts +28 -0
  970. package/lib/typescript/commonjs/controls/drop-zone.d.ts.map +1 -0
  971. package/lib/typescript/commonjs/controls/eviction.d.ts +29 -0
  972. package/lib/typescript/commonjs/controls/eviction.d.ts.map +1 -0
  973. package/lib/typescript/commonjs/controls/expandable-text.d.ts +29 -0
  974. package/lib/typescript/commonjs/controls/expandable-text.d.ts.map +1 -0
  975. package/lib/typescript/commonjs/controls/fact-strip.d.ts +31 -0
  976. package/lib/typescript/commonjs/controls/fact-strip.d.ts.map +1 -0
  977. package/lib/typescript/commonjs/controls/file-upload.d.ts +31 -0
  978. package/lib/typescript/commonjs/controls/file-upload.d.ts.map +1 -0
  979. package/lib/typescript/commonjs/controls/generic.d.ts +96 -0
  980. package/lib/typescript/commonjs/controls/generic.d.ts.map +1 -0
  981. package/lib/typescript/commonjs/controls/glass-group.d.ts +22 -0
  982. package/lib/typescript/commonjs/controls/glass-group.d.ts.map +1 -0
  983. package/lib/typescript/commonjs/controls/home-search.d.ts +43 -0
  984. package/lib/typescript/commonjs/controls/home-search.d.ts.map +1 -0
  985. package/lib/typescript/commonjs/controls/hover-card.d.ts +31 -0
  986. package/lib/typescript/commonjs/controls/hover-card.d.ts.map +1 -0
  987. package/lib/typescript/commonjs/controls/index.d.ts +9 -0
  988. package/lib/typescript/commonjs/controls/index.d.ts.map +1 -0
  989. package/lib/typescript/commonjs/controls/input-group.d.ts +30 -0
  990. package/lib/typescript/commonjs/controls/input-group.d.ts.map +1 -0
  991. package/lib/typescript/commonjs/controls/input-otp.d.ts +25 -0
  992. package/lib/typescript/commonjs/controls/input-otp.d.ts.map +1 -0
  993. package/lib/typescript/commonjs/controls/inputs.d.ts +206 -0
  994. package/lib/typescript/commonjs/controls/inputs.d.ts.map +1 -0
  995. package/lib/typescript/commonjs/controls/link-preview.d.ts +16 -0
  996. package/lib/typescript/commonjs/controls/link-preview.d.ts.map +1 -0
  997. package/lib/typescript/commonjs/controls/list.d.ts +192 -0
  998. package/lib/typescript/commonjs/controls/list.d.ts.map +1 -0
  999. package/lib/typescript/commonjs/controls/listing-actions.d.ts +58 -0
  1000. package/lib/typescript/commonjs/controls/listing-actions.d.ts.map +1 -0
  1001. package/lib/typescript/commonjs/controls/listing-card.d.ts +44 -0
  1002. package/lib/typescript/commonjs/controls/listing-card.d.ts.map +1 -0
  1003. package/lib/typescript/commonjs/controls/listing-editor.d.ts +35 -0
  1004. package/lib/typescript/commonjs/controls/listing-editor.d.ts.map +1 -0
  1005. package/lib/typescript/commonjs/controls/listings.d.ts +68 -0
  1006. package/lib/typescript/commonjs/controls/listings.d.ts.map +1 -0
  1007. package/lib/typescript/commonjs/controls/lockup.d.ts +42 -0
  1008. package/lib/typescript/commonjs/controls/lockup.d.ts.map +1 -0
  1009. package/lib/typescript/commonjs/controls/logistics.d.ts +133 -0
  1010. package/lib/typescript/commonjs/controls/logistics.d.ts.map +1 -0
  1011. package/lib/typescript/commonjs/controls/lyrics.d.ts +30 -0
  1012. package/lib/typescript/commonjs/controls/lyrics.d.ts.map +1 -0
  1013. package/lib/typescript/commonjs/controls/mail.d.ts +87 -0
  1014. package/lib/typescript/commonjs/controls/mail.d.ts.map +1 -0
  1015. package/lib/typescript/commonjs/controls/map-chrome.d.ts +56 -0
  1016. package/lib/typescript/commonjs/controls/map-chrome.d.ts.map +1 -0
  1017. package/lib/typescript/commonjs/controls/markdown.d.ts +43 -0
  1018. package/lib/typescript/commonjs/controls/markdown.d.ts.map +1 -0
  1019. package/lib/typescript/commonjs/controls/media-cards.d.ts +124 -0
  1020. package/lib/typescript/commonjs/controls/media-cards.d.ts.map +1 -0
  1021. package/lib/typescript/commonjs/controls/media-controls.d.ts +32 -0
  1022. package/lib/typescript/commonjs/controls/media-controls.d.ts.map +1 -0
  1023. package/lib/typescript/commonjs/controls/media-flight.d.ts +52 -0
  1024. package/lib/typescript/commonjs/controls/media-flight.d.ts.map +1 -0
  1025. package/lib/typescript/commonjs/controls/media-inset-border.d.ts +19 -0
  1026. package/lib/typescript/commonjs/controls/media-inset-border.d.ts.map +1 -0
  1027. package/lib/typescript/commonjs/controls/media-player.d.ts +109 -0
  1028. package/lib/typescript/commonjs/controls/media-player.d.ts.map +1 -0
  1029. package/lib/typescript/commonjs/controls/media.d.ts +68 -0
  1030. package/lib/typescript/commonjs/controls/media.d.ts.map +1 -0
  1031. package/lib/typescript/commonjs/controls/menu-item.d.ts +33 -0
  1032. package/lib/typescript/commonjs/controls/menu-item.d.ts.map +1 -0
  1033. package/lib/typescript/commonjs/controls/menubar.d.ts +28 -0
  1034. package/lib/typescript/commonjs/controls/menubar.d.ts.map +1 -0
  1035. package/lib/typescript/commonjs/controls/message-bubble.d.ts +53 -0
  1036. package/lib/typescript/commonjs/controls/message-bubble.d.ts.map +1 -0
  1037. package/lib/typescript/commonjs/controls/multi-agent-chat.d.ts +28 -0
  1038. package/lib/typescript/commonjs/controls/multi-agent-chat.d.ts.map +1 -0
  1039. package/lib/typescript/commonjs/controls/music-library.d.ts +65 -0
  1040. package/lib/typescript/commonjs/controls/music-library.d.ts.map +1 -0
  1041. package/lib/typescript/commonjs/controls/note-card.d.ts +32 -0
  1042. package/lib/typescript/commonjs/controls/note-card.d.ts.map +1 -0
  1043. package/lib/typescript/commonjs/controls/notification.d.ts +43 -0
  1044. package/lib/typescript/commonjs/controls/notification.d.ts.map +1 -0
  1045. package/lib/typescript/commonjs/controls/offering-badge.d.ts +19 -0
  1046. package/lib/typescript/commonjs/controls/offering-badge.d.ts.map +1 -0
  1047. package/lib/typescript/commonjs/controls/order-confirmation.d.ts +26 -0
  1048. package/lib/typescript/commonjs/controls/order-confirmation.d.ts.map +1 -0
  1049. package/lib/typescript/commonjs/controls/order-status.d.ts +35 -0
  1050. package/lib/typescript/commonjs/controls/order-status.d.ts.map +1 -0
  1051. package/lib/typescript/commonjs/controls/overlays.d.ts +175 -0
  1052. package/lib/typescript/commonjs/controls/overlays.d.ts.map +1 -0
  1053. package/lib/typescript/commonjs/controls/payment-method.d.ts +47 -0
  1054. package/lib/typescript/commonjs/controls/payment-method.d.ts.map +1 -0
  1055. package/lib/typescript/commonjs/controls/payment-status.d.ts +33 -0
  1056. package/lib/typescript/commonjs/controls/payment-status.d.ts.map +1 -0
  1057. package/lib/typescript/commonjs/controls/phone-input.d.ts +36 -0
  1058. package/lib/typescript/commonjs/controls/phone-input.d.ts.map +1 -0
  1059. package/lib/typescript/commonjs/controls/place-reviews.d.ts +21 -0
  1060. package/lib/typescript/commonjs/controls/place-reviews.d.ts.map +1 -0
  1061. package/lib/typescript/commonjs/controls/places.d.ts +92 -0
  1062. package/lib/typescript/commonjs/controls/places.d.ts.map +1 -0
  1063. package/lib/typescript/commonjs/controls/price-breakdown.d.ts +27 -0
  1064. package/lib/typescript/commonjs/controls/price-breakdown.d.ts.map +1 -0
  1065. package/lib/typescript/commonjs/controls/product.d.ts +71 -0
  1066. package/lib/typescript/commonjs/controls/product.d.ts.map +1 -0
  1067. package/lib/typescript/commonjs/controls/project-board.d.ts +63 -0
  1068. package/lib/typescript/commonjs/controls/project-board.d.ts.map +1 -0
  1069. package/lib/typescript/commonjs/controls/property-insights.d.ts +20 -0
  1070. package/lib/typescript/commonjs/controls/property-insights.d.ts.map +1 -0
  1071. package/lib/typescript/commonjs/controls/queue-panel.d.ts +35 -0
  1072. package/lib/typescript/commonjs/controls/queue-panel.d.ts.map +1 -0
  1073. package/lib/typescript/commonjs/controls/rating.d.ts +98 -0
  1074. package/lib/typescript/commonjs/controls/rating.d.ts.map +1 -0
  1075. package/lib/typescript/commonjs/controls/route-stops.d.ts +20 -0
  1076. package/lib/typescript/commonjs/controls/route-stops.d.ts.map +1 -0
  1077. package/lib/typescript/commonjs/controls/settings.d.ts +73 -0
  1078. package/lib/typescript/commonjs/controls/settings.d.ts.map +1 -0
  1079. package/lib/typescript/commonjs/controls/share-sheet.d.ts +29 -0
  1080. package/lib/typescript/commonjs/controls/share-sheet.d.ts.map +1 -0
  1081. package/lib/typescript/commonjs/controls/slider.d.ts +53 -0
  1082. package/lib/typescript/commonjs/controls/slider.d.ts.map +1 -0
  1083. package/lib/typescript/commonjs/controls/social-button.d.ts +32 -0
  1084. package/lib/typescript/commonjs/controls/social-button.d.ts.map +1 -0
  1085. package/lib/typescript/commonjs/controls/sortable-chip-row.d.ts +24 -0
  1086. package/lib/typescript/commonjs/controls/sortable-chip-row.d.ts.map +1 -0
  1087. package/lib/typescript/commonjs/controls/sortable-media.d.ts +29 -0
  1088. package/lib/typescript/commonjs/controls/sortable-media.d.ts.map +1 -0
  1089. package/lib/typescript/commonjs/controls/spinner-icon.d.ts +16 -0
  1090. package/lib/typescript/commonjs/controls/spinner-icon.d.ts.map +1 -0
  1091. package/lib/typescript/commonjs/controls/stat-bar.d.ts +108 -0
  1092. package/lib/typescript/commonjs/controls/stat-bar.d.ts.map +1 -0
  1093. package/lib/typescript/commonjs/controls/stat-cards.d.ts +25 -0
  1094. package/lib/typescript/commonjs/controls/stat-cards.d.ts.map +1 -0
  1095. package/lib/typescript/commonjs/controls/stay-filters.d.ts +111 -0
  1096. package/lib/typescript/commonjs/controls/stay-filters.d.ts.map +1 -0
  1097. package/lib/typescript/commonjs/controls/stay-search.d.ts +46 -0
  1098. package/lib/typescript/commonjs/controls/stay-search.d.ts.map +1 -0
  1099. package/lib/typescript/commonjs/controls/stepper.d.ts +43 -0
  1100. package/lib/typescript/commonjs/controls/stepper.d.ts.map +1 -0
  1101. package/lib/typescript/commonjs/controls/table.d.ts +64 -0
  1102. package/lib/typescript/commonjs/controls/table.d.ts.map +1 -0
  1103. package/lib/typescript/commonjs/controls/tag-field.d.ts +33 -0
  1104. package/lib/typescript/commonjs/controls/tag-field.d.ts.map +1 -0
  1105. package/lib/typescript/commonjs/controls/task-list.d.ts +17 -0
  1106. package/lib/typescript/commonjs/controls/task-list.d.ts.map +1 -0
  1107. package/lib/typescript/commonjs/controls/tenancy.d.ts +51 -0
  1108. package/lib/typescript/commonjs/controls/tenancy.d.ts.map +1 -0
  1109. package/lib/typescript/commonjs/controls/toolbar-group.d.ts +23 -0
  1110. package/lib/typescript/commonjs/controls/toolbar-group.d.ts.map +1 -0
  1111. package/lib/typescript/commonjs/controls/tooltip.d.ts +28 -0
  1112. package/lib/typescript/commonjs/controls/tooltip.d.ts.map +1 -0
  1113. package/lib/typescript/commonjs/controls/track-list.d.ts +91 -0
  1114. package/lib/typescript/commonjs/controls/track-list.d.ts.map +1 -0
  1115. package/lib/typescript/commonjs/controls/vendor-card.d.ts +23 -0
  1116. package/lib/typescript/commonjs/controls/vendor-card.d.ts.map +1 -0
  1117. package/lib/typescript/commonjs/controls/video-playback.d.ts +30 -0
  1118. package/lib/typescript/commonjs/controls/video-playback.d.ts.map +1 -0
  1119. package/lib/typescript/commonjs/controls/video-view.d.ts +18 -0
  1120. package/lib/typescript/commonjs/controls/video-view.d.ts.map +1 -0
  1121. package/lib/typescript/commonjs/controls/view-that-fits.d.ts +16 -0
  1122. package/lib/typescript/commonjs/controls/view-that-fits.d.ts.map +1 -0
  1123. package/lib/typescript/commonjs/controls/viewport.d.ts +17 -0
  1124. package/lib/typescript/commonjs/controls/viewport.d.ts.map +1 -0
  1125. package/lib/typescript/commonjs/controls/voice.d.ts +29 -0
  1126. package/lib/typescript/commonjs/controls/voice.d.ts.map +1 -0
  1127. package/lib/typescript/commonjs/controls/web-search.d.ts +17 -0
  1128. package/lib/typescript/commonjs/controls/web-search.d.ts.map +1 -0
  1129. package/lib/typescript/commonjs/controls/zoomable-media-gallery.d.ts +43 -0
  1130. package/lib/typescript/commonjs/controls/zoomable-media-gallery.d.ts.map +1 -0
  1131. package/lib/typescript/commonjs/depth-stack.d.ts +22 -0
  1132. package/lib/typescript/commonjs/depth-stack.d.ts.map +1 -0
  1133. package/lib/typescript/commonjs/env.d.ts +57 -0
  1134. package/lib/typescript/commonjs/env.d.ts.map +1 -0
  1135. package/lib/typescript/commonjs/environment.d.ts +49 -0
  1136. package/lib/typescript/commonjs/environment.d.ts.map +1 -0
  1137. package/lib/typescript/commonjs/generated/sf-symbols.generated.d.ts +8 -0
  1138. package/lib/typescript/commonjs/generated/sf-symbols.generated.d.ts.map +1 -0
  1139. package/lib/typescript/commonjs/generated/spec.generated.d.ts +2674 -0
  1140. package/lib/typescript/commonjs/generated/spec.generated.d.ts.map +1 -0
  1141. package/lib/typescript/commonjs/generated/web-sheet.generated.d.ts +15 -0
  1142. package/lib/typescript/commonjs/generated/web-sheet.generated.d.ts.map +1 -0
  1143. package/lib/typescript/commonjs/glass.d.ts +64 -0
  1144. package/lib/typescript/commonjs/glass.d.ts.map +1 -0
  1145. package/lib/typescript/commonjs/index.d.ts +271 -0
  1146. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  1147. package/lib/typescript/commonjs/modifier.d.ts +28 -0
  1148. package/lib/typescript/commonjs/modifier.d.ts.map +1 -0
  1149. package/lib/typescript/commonjs/motion/keyframes.d.ts +56 -0
  1150. package/lib/typescript/commonjs/motion/keyframes.d.ts.map +1 -0
  1151. package/lib/typescript/commonjs/motion/motion-node.d.ts +155 -0
  1152. package/lib/typescript/commonjs/motion/motion-node.d.ts.map +1 -0
  1153. package/lib/typescript/commonjs/motion/namespace.d.ts +46 -0
  1154. package/lib/typescript/commonjs/motion/namespace.d.ts.map +1 -0
  1155. package/lib/typescript/commonjs/motion/phases.d.ts +19 -0
  1156. package/lib/typescript/commonjs/motion/phases.d.ts.map +1 -0
  1157. package/lib/typescript/commonjs/motion/text-roll.d.ts +40 -0
  1158. package/lib/typescript/commonjs/motion/text-roll.d.ts.map +1 -0
  1159. package/lib/typescript/commonjs/motion/tokens.d.ts +42 -0
  1160. package/lib/typescript/commonjs/motion/tokens.d.ts.map +1 -0
  1161. package/lib/typescript/commonjs/motion/tracks.d.ts +28 -0
  1162. package/lib/typescript/commonjs/motion/tracks.d.ts.map +1 -0
  1163. package/lib/typescript/commonjs/motion/transition.d.ts +24 -0
  1164. package/lib/typescript/commonjs/motion/transition.d.ts.map +1 -0
  1165. package/lib/typescript/commonjs/motion/values.d.ts +28 -0
  1166. package/lib/typescript/commonjs/motion/values.d.ts.map +1 -0
  1167. package/lib/typescript/commonjs/node.d.ts +3406 -0
  1168. package/lib/typescript/commonjs/node.d.ts.map +1 -0
  1169. package/lib/typescript/commonjs/package.json +1 -0
  1170. package/lib/typescript/commonjs/paint.d.ts +85 -0
  1171. package/lib/typescript/commonjs/paint.d.ts.map +1 -0
  1172. package/lib/typescript/commonjs/painted-host.d.ts +14 -0
  1173. package/lib/typescript/commonjs/painted-host.d.ts.map +1 -0
  1174. package/lib/typescript/commonjs/platform/bottom-bar-host.d.ts +3 -0
  1175. package/lib/typescript/commonjs/platform/bottom-bar-host.d.ts.map +1 -0
  1176. package/lib/typescript/commonjs/platform/confirmation-host.android.d.ts +3 -0
  1177. package/lib/typescript/commonjs/platform/confirmation-host.android.d.ts.map +1 -0
  1178. package/lib/typescript/commonjs/platform/confirmation-host.ios.d.ts +3 -0
  1179. package/lib/typescript/commonjs/platform/confirmation-host.ios.d.ts.map +1 -0
  1180. package/lib/typescript/commonjs/platform/confirmation-host.web.d.ts +3 -0
  1181. package/lib/typescript/commonjs/platform/confirmation-host.web.d.ts.map +1 -0
  1182. package/lib/typescript/commonjs/platform/glass-group-host.android.d.ts +5 -0
  1183. package/lib/typescript/commonjs/platform/glass-group-host.android.d.ts.map +1 -0
  1184. package/lib/typescript/commonjs/platform/glass-group-host.ios.d.ts +4 -0
  1185. package/lib/typescript/commonjs/platform/glass-group-host.ios.d.ts.map +1 -0
  1186. package/lib/typescript/commonjs/platform/glass-group-host.types.d.ts +30 -0
  1187. package/lib/typescript/commonjs/platform/glass-group-host.types.d.ts.map +1 -0
  1188. package/lib/typescript/commonjs/platform/glass-group-host.web.d.ts +11 -0
  1189. package/lib/typescript/commonjs/platform/glass-group-host.web.d.ts.map +1 -0
  1190. package/lib/typescript/commonjs/platform/glass-host.android.d.ts +3 -0
  1191. package/lib/typescript/commonjs/platform/glass-host.android.d.ts.map +1 -0
  1192. package/lib/typescript/commonjs/platform/glass-host.ios.d.ts +3 -0
  1193. package/lib/typescript/commonjs/platform/glass-host.ios.d.ts.map +1 -0
  1194. package/lib/typescript/commonjs/platform/glass-host.types.d.ts +38 -0
  1195. package/lib/typescript/commonjs/platform/glass-host.types.d.ts.map +1 -0
  1196. package/lib/typescript/commonjs/platform/glass-host.web.d.ts +8 -0
  1197. package/lib/typescript/commonjs/platform/glass-host.web.d.ts.map +1 -0
  1198. package/lib/typescript/commonjs/platform/header-host.d.ts +2 -0
  1199. package/lib/typescript/commonjs/platform/header-host.d.ts.map +1 -0
  1200. package/lib/typescript/commonjs/platform/header-host.ios.d.ts +5 -0
  1201. package/lib/typescript/commonjs/platform/header-host.ios.d.ts.map +1 -0
  1202. package/lib/typescript/commonjs/platform/header-page.d.ts +27 -0
  1203. package/lib/typescript/commonjs/platform/header-page.d.ts.map +1 -0
  1204. package/lib/typescript/commonjs/platform/host.types.d.ts +23 -0
  1205. package/lib/typescript/commonjs/platform/host.types.d.ts.map +1 -0
  1206. package/lib/typescript/commonjs/platform/lens-glass.d.ts +13 -0
  1207. package/lib/typescript/commonjs/platform/lens-glass.d.ts.map +1 -0
  1208. package/lib/typescript/commonjs/platform/lens-group.d.ts +32 -0
  1209. package/lib/typescript/commonjs/platform/lens-group.d.ts.map +1 -0
  1210. package/lib/typescript/commonjs/platform/lens.d.ts +103 -0
  1211. package/lib/typescript/commonjs/platform/lens.d.ts.map +1 -0
  1212. package/lib/typescript/commonjs/platform/menu-actions.d.ts +32 -0
  1213. package/lib/typescript/commonjs/platform/menu-actions.d.ts.map +1 -0
  1214. package/lib/typescript/commonjs/platform/menu-dropdown.d.ts +43 -0
  1215. package/lib/typescript/commonjs/platform/menu-dropdown.d.ts.map +1 -0
  1216. package/lib/typescript/commonjs/platform/menu-host.android.d.ts +12 -0
  1217. package/lib/typescript/commonjs/platform/menu-host.android.d.ts.map +1 -0
  1218. package/lib/typescript/commonjs/platform/menu-host.ios.d.ts +3 -0
  1219. package/lib/typescript/commonjs/platform/menu-host.ios.d.ts.map +1 -0
  1220. package/lib/typescript/commonjs/platform/menu-host.web.d.ts +2 -0
  1221. package/lib/typescript/commonjs/platform/menu-host.web.d.ts.map +1 -0
  1222. package/lib/typescript/commonjs/platform/menu-rows.d.ts +72 -0
  1223. package/lib/typescript/commonjs/platform/menu-rows.d.ts.map +1 -0
  1224. package/lib/typescript/commonjs/platform/sf-symbol.ios.d.ts +3 -0
  1225. package/lib/typescript/commonjs/platform/sf-symbol.ios.d.ts.map +1 -0
  1226. package/lib/typescript/commonjs/platform/values.d.ts +6 -0
  1227. package/lib/typescript/commonjs/platform/values.d.ts.map +1 -0
  1228. package/lib/typescript/commonjs/primitives.d.ts +272 -0
  1229. package/lib/typescript/commonjs/primitives.d.ts.map +1 -0
  1230. package/lib/typescript/commonjs/render.d.ts +25 -0
  1231. package/lib/typescript/commonjs/render.d.ts.map +1 -0
  1232. package/lib/typescript/commonjs/router/app-layout.d.ts +9 -0
  1233. package/lib/typescript/commonjs/router/app-layout.d.ts.map +1 -0
  1234. package/lib/typescript/commonjs/router/bar.d.ts +12 -0
  1235. package/lib/typescript/commonjs/router/bar.d.ts.map +1 -0
  1236. package/lib/typescript/commonjs/router/bar.ios.d.ts +11 -0
  1237. package/lib/typescript/commonjs/router/bar.ios.d.ts.map +1 -0
  1238. package/lib/typescript/commonjs/router/components.d.ts +41 -0
  1239. package/lib/typescript/commonjs/router/components.d.ts.map +1 -0
  1240. package/lib/typescript/commonjs/router/index.d.ts +8 -0
  1241. package/lib/typescript/commonjs/router/index.d.ts.map +1 -0
  1242. package/lib/typescript/commonjs/router/navigators.d.ts +5 -0
  1243. package/lib/typescript/commonjs/router/navigators.d.ts.map +1 -0
  1244. package/lib/typescript/commonjs/router/nodes.d.ts +75 -0
  1245. package/lib/typescript/commonjs/router/nodes.d.ts.map +1 -0
  1246. package/lib/typescript/commonjs/router/pager.d.ts +8 -0
  1247. package/lib/typescript/commonjs/router/pager.d.ts.map +1 -0
  1248. package/lib/typescript/commonjs/router/primary.d.ts +13 -0
  1249. package/lib/typescript/commonjs/router/primary.d.ts.map +1 -0
  1250. package/lib/typescript/commonjs/router/routes.d.ts +4 -0
  1251. package/lib/typescript/commonjs/router/routes.d.ts.map +1 -0
  1252. package/lib/typescript/commonjs/router/screen-header.d.ts +3 -0
  1253. package/lib/typescript/commonjs/router/screen-header.d.ts.map +1 -0
  1254. package/lib/typescript/commonjs/router/screen-header.ios.d.ts +9 -0
  1255. package/lib/typescript/commonjs/router/screen-header.ios.d.ts.map +1 -0
  1256. package/lib/typescript/commonjs/router/screen-host.d.ts +5 -0
  1257. package/lib/typescript/commonjs/router/screen-host.d.ts.map +1 -0
  1258. package/lib/typescript/commonjs/router/sheet-bloom.d.ts +12 -0
  1259. package/lib/typescript/commonjs/router/sheet-bloom.d.ts.map +1 -0
  1260. package/lib/typescript/commonjs/router/sheet-host.d.ts +2 -0
  1261. package/lib/typescript/commonjs/router/sheet-host.d.ts.map +1 -0
  1262. package/lib/typescript/commonjs/router/sheet-host.ios.d.ts +3 -0
  1263. package/lib/typescript/commonjs/router/sheet-host.ios.d.ts.map +1 -0
  1264. package/lib/typescript/commonjs/router/shell-panels.d.ts +9 -0
  1265. package/lib/typescript/commonjs/router/shell-panels.d.ts.map +1 -0
  1266. package/lib/typescript/commonjs/router/stack.d.ts +5 -0
  1267. package/lib/typescript/commonjs/router/stack.d.ts.map +1 -0
  1268. package/lib/typescript/commonjs/router/stack.ios.d.ts +5 -0
  1269. package/lib/typescript/commonjs/router/stack.ios.d.ts.map +1 -0
  1270. package/lib/typescript/commonjs/router/stack.web.d.ts +5 -0
  1271. package/lib/typescript/commonjs/router/stack.web.d.ts.map +1 -0
  1272. package/lib/typescript/commonjs/router/tabs.d.ts +2 -0
  1273. package/lib/typescript/commonjs/router/tabs.d.ts.map +1 -0
  1274. package/lib/typescript/commonjs/router/tabs.ios.d.ts +2 -0
  1275. package/lib/typescript/commonjs/router/tabs.ios.d.ts.map +1 -0
  1276. package/lib/typescript/commonjs/state-host.d.ts +44 -0
  1277. package/lib/typescript/commonjs/state-host.d.ts.map +1 -0
  1278. package/lib/typescript/commonjs/style.d.ts +268 -0
  1279. package/lib/typescript/commonjs/style.d.ts.map +1 -0
  1280. package/lib/typescript/commonjs/toast.d.ts +31 -0
  1281. package/lib/typescript/commonjs/toast.d.ts.map +1 -0
  1282. package/lib/typescript/commonjs/tokens.d.ts +446 -0
  1283. package/lib/typescript/commonjs/tokens.d.ts.map +1 -0
  1284. package/lib/typescript/commonjs/variants.d.ts +50 -0
  1285. package/lib/typescript/commonjs/variants.d.ts.map +1 -0
  1286. package/lib/typescript/commonjs/view.d.ts +29 -0
  1287. package/lib/typescript/commonjs/view.d.ts.map +1 -0
  1288. package/lib/typescript/commonjs/web-sheet.d.ts +78 -0
  1289. package/lib/typescript/commonjs/web-sheet.d.ts.map +1 -0
  1290. package/lib/typescript/module/binding.d.ts +31 -0
  1291. package/lib/typescript/module/binding.d.ts.map +1 -0
  1292. package/lib/typescript/module/chrome/command-host.d.ts +7 -0
  1293. package/lib/typescript/module/chrome/command-host.d.ts.map +1 -0
  1294. package/lib/typescript/module/chrome/defined.d.ts +7 -0
  1295. package/lib/typescript/module/chrome/defined.d.ts.map +1 -0
  1296. package/lib/typescript/module/chrome/layout-hosts.d.ts +26 -0
  1297. package/lib/typescript/module/chrome/layout-hosts.d.ts.map +1 -0
  1298. package/lib/typescript/module/chrome/page-footer-host.d.ts +10 -0
  1299. package/lib/typescript/module/chrome/page-footer-host.d.ts.map +1 -0
  1300. package/lib/typescript/module/chrome/rail-host.d.ts +3 -0
  1301. package/lib/typescript/module/chrome/rail-host.d.ts.map +1 -0
  1302. package/lib/typescript/module/chrome/safe-area-inset.d.ts +37 -0
  1303. package/lib/typescript/module/chrome/safe-area-inset.d.ts.map +1 -0
  1304. package/lib/typescript/module/chrome/scroll-view-host.d.ts +31 -0
  1305. package/lib/typescript/module/chrome/scroll-view-host.d.ts.map +1 -0
  1306. package/lib/typescript/module/chrome/settings-host.d.ts +12 -0
  1307. package/lib/typescript/module/chrome/settings-host.d.ts.map +1 -0
  1308. package/lib/typescript/module/chrome/sidebar-host.d.ts +18 -0
  1309. package/lib/typescript/module/chrome/sidebar-host.d.ts.map +1 -0
  1310. package/lib/typescript/module/controls/accordion.d.ts +38 -0
  1311. package/lib/typescript/module/controls/accordion.d.ts.map +1 -0
  1312. package/lib/typescript/module/controls/activity-feed.d.ts +21 -0
  1313. package/lib/typescript/module/controls/activity-feed.d.ts.map +1 -0
  1314. package/lib/typescript/module/controls/activity-heatmap.d.ts +40 -0
  1315. package/lib/typescript/module/controls/activity-heatmap.d.ts.map +1 -0
  1316. package/lib/typescript/module/controls/address.d.ts +41 -0
  1317. package/lib/typescript/module/controls/address.d.ts.map +1 -0
  1318. package/lib/typescript/module/controls/agent-avatar.d.ts +36 -0
  1319. package/lib/typescript/module/controls/agent-avatar.d.ts.map +1 -0
  1320. package/lib/typescript/module/controls/agent-chat.d.ts +43 -0
  1321. package/lib/typescript/module/controls/agent-chat.d.ts.map +1 -0
  1322. package/lib/typescript/module/controls/agent-creator.d.ts +35 -0
  1323. package/lib/typescript/module/controls/agent-creator.d.ts.map +1 -0
  1324. package/lib/typescript/module/controls/agent-reply.d.ts +26 -0
  1325. package/lib/typescript/module/controls/agent-reply.d.ts.map +1 -0
  1326. package/lib/typescript/module/controls/agents.d.ts +159 -0
  1327. package/lib/typescript/module/controls/agents.d.ts.map +1 -0
  1328. package/lib/typescript/module/controls/ai-chat.d.ts +103 -0
  1329. package/lib/typescript/module/controls/ai-chat.d.ts.map +1 -0
  1330. package/lib/typescript/module/controls/ai-profile-card.d.ts +26 -0
  1331. package/lib/typescript/module/controls/ai-profile-card.d.ts.map +1 -0
  1332. package/lib/typescript/module/controls/ambient-photo.d.ts +23 -0
  1333. package/lib/typescript/module/controls/ambient-photo.d.ts.map +1 -0
  1334. package/lib/typescript/module/controls/animated-check.d.ts +19 -0
  1335. package/lib/typescript/module/controls/animated-check.d.ts.map +1 -0
  1336. package/lib/typescript/module/controls/avatar-flight.d.ts +20 -0
  1337. package/lib/typescript/module/controls/avatar-flight.d.ts.map +1 -0
  1338. package/lib/typescript/module/controls/booking.d.ts +50 -0
  1339. package/lib/typescript/module/controls/booking.d.ts.map +1 -0
  1340. package/lib/typescript/module/controls/breadcrumb.d.ts +38 -0
  1341. package/lib/typescript/module/controls/breadcrumb.d.ts.map +1 -0
  1342. package/lib/typescript/module/controls/calendar.d.ts +46 -0
  1343. package/lib/typescript/module/controls/calendar.d.ts.map +1 -0
  1344. package/lib/typescript/module/controls/call-ui.d.ts +106 -0
  1345. package/lib/typescript/module/controls/call-ui.d.ts.map +1 -0
  1346. package/lib/typescript/module/controls/card-form.d.ts +44 -0
  1347. package/lib/typescript/module/controls/card-form.d.ts.map +1 -0
  1348. package/lib/typescript/module/controls/carousel.d.ts +64 -0
  1349. package/lib/typescript/module/controls/carousel.d.ts.map +1 -0
  1350. package/lib/typescript/module/controls/cart-panel.d.ts +59 -0
  1351. package/lib/typescript/module/controls/cart-panel.d.ts.map +1 -0
  1352. package/lib/typescript/module/controls/category-bar.d.ts +30 -0
  1353. package/lib/typescript/module/controls/category-bar.d.ts.map +1 -0
  1354. package/lib/typescript/module/controls/chart-cards.d.ts +139 -0
  1355. package/lib/typescript/module/controls/chart-cards.d.ts.map +1 -0
  1356. package/lib/typescript/module/controls/chat-composer.d.ts +117 -0
  1357. package/lib/typescript/module/controls/chat-composer.d.ts.map +1 -0
  1358. package/lib/typescript/module/controls/chat-people.d.ts +49 -0
  1359. package/lib/typescript/module/controls/chat-people.d.ts.map +1 -0
  1360. package/lib/typescript/module/controls/chat.d.ts +211 -0
  1361. package/lib/typescript/module/controls/chat.d.ts.map +1 -0
  1362. package/lib/typescript/module/controls/checkout-sheet.d.ts +26 -0
  1363. package/lib/typescript/module/controls/checkout-sheet.d.ts.map +1 -0
  1364. package/lib/typescript/module/controls/checkout-summary.d.ts +43 -0
  1365. package/lib/typescript/module/controls/checkout-summary.d.ts.map +1 -0
  1366. package/lib/typescript/module/controls/choice-list.d.ts +34 -0
  1367. package/lib/typescript/module/controls/choice-list.d.ts.map +1 -0
  1368. package/lib/typescript/module/controls/code.d.ts +53 -0
  1369. package/lib/typescript/module/controls/code.d.ts.map +1 -0
  1370. package/lib/typescript/module/controls/collapsible.d.ts +21 -0
  1371. package/lib/typescript/module/controls/collapsible.d.ts.map +1 -0
  1372. package/lib/typescript/module/controls/color-swatch-picker.d.ts +21 -0
  1373. package/lib/typescript/module/controls/color-swatch-picker.d.ts.map +1 -0
  1374. package/lib/typescript/module/controls/composer-panel.d.ts +48 -0
  1375. package/lib/typescript/module/controls/composer-panel.d.ts.map +1 -0
  1376. package/lib/typescript/module/controls/composition-bar.d.ts +27 -0
  1377. package/lib/typescript/module/controls/composition-bar.d.ts.map +1 -0
  1378. package/lib/typescript/module/controls/confirmation-dialog.d.ts +47 -0
  1379. package/lib/typescript/module/controls/confirmation-dialog.d.ts.map +1 -0
  1380. package/lib/typescript/module/controls/containers.d.ts +307 -0
  1381. package/lib/typescript/module/controls/containers.d.ts.map +1 -0
  1382. package/lib/typescript/module/controls/context-menu.d.ts +32 -0
  1383. package/lib/typescript/module/controls/context-menu.d.ts.map +1 -0
  1384. package/lib/typescript/module/controls/creator-studio.d.ts +111 -0
  1385. package/lib/typescript/module/controls/creator-studio.d.ts.map +1 -0
  1386. package/lib/typescript/module/controls/crm.d.ts +55 -0
  1387. package/lib/typescript/module/controls/crm.d.ts.map +1 -0
  1388. package/lib/typescript/module/controls/dashboard-cards.d.ts +33 -0
  1389. package/lib/typescript/module/controls/dashboard-cards.d.ts.map +1 -0
  1390. package/lib/typescript/module/controls/data-table.d.ts +103 -0
  1391. package/lib/typescript/module/controls/data-table.d.ts.map +1 -0
  1392. package/lib/typescript/module/controls/date-picker.d.ts +103 -0
  1393. package/lib/typescript/module/controls/date-picker.d.ts.map +1 -0
  1394. package/lib/typescript/module/controls/delivery-slot.d.ts +46 -0
  1395. package/lib/typescript/module/controls/delivery-slot.d.ts.map +1 -0
  1396. package/lib/typescript/module/controls/draw.d.ts +92 -0
  1397. package/lib/typescript/module/controls/draw.d.ts.map +1 -0
  1398. package/lib/typescript/module/controls/drop-zone.d.ts +28 -0
  1399. package/lib/typescript/module/controls/drop-zone.d.ts.map +1 -0
  1400. package/lib/typescript/module/controls/eviction.d.ts +29 -0
  1401. package/lib/typescript/module/controls/eviction.d.ts.map +1 -0
  1402. package/lib/typescript/module/controls/expandable-text.d.ts +29 -0
  1403. package/lib/typescript/module/controls/expandable-text.d.ts.map +1 -0
  1404. package/lib/typescript/module/controls/fact-strip.d.ts +31 -0
  1405. package/lib/typescript/module/controls/fact-strip.d.ts.map +1 -0
  1406. package/lib/typescript/module/controls/file-upload.d.ts +31 -0
  1407. package/lib/typescript/module/controls/file-upload.d.ts.map +1 -0
  1408. package/lib/typescript/module/controls/generic.d.ts +96 -0
  1409. package/lib/typescript/module/controls/generic.d.ts.map +1 -0
  1410. package/lib/typescript/module/controls/glass-group.d.ts +22 -0
  1411. package/lib/typescript/module/controls/glass-group.d.ts.map +1 -0
  1412. package/lib/typescript/module/controls/home-search.d.ts +43 -0
  1413. package/lib/typescript/module/controls/home-search.d.ts.map +1 -0
  1414. package/lib/typescript/module/controls/hover-card.d.ts +31 -0
  1415. package/lib/typescript/module/controls/hover-card.d.ts.map +1 -0
  1416. package/lib/typescript/module/controls/index.d.ts +9 -0
  1417. package/lib/typescript/module/controls/index.d.ts.map +1 -0
  1418. package/lib/typescript/module/controls/input-group.d.ts +30 -0
  1419. package/lib/typescript/module/controls/input-group.d.ts.map +1 -0
  1420. package/lib/typescript/module/controls/input-otp.d.ts +25 -0
  1421. package/lib/typescript/module/controls/input-otp.d.ts.map +1 -0
  1422. package/lib/typescript/module/controls/inputs.d.ts +206 -0
  1423. package/lib/typescript/module/controls/inputs.d.ts.map +1 -0
  1424. package/lib/typescript/module/controls/link-preview.d.ts +16 -0
  1425. package/lib/typescript/module/controls/link-preview.d.ts.map +1 -0
  1426. package/lib/typescript/module/controls/list.d.ts +192 -0
  1427. package/lib/typescript/module/controls/list.d.ts.map +1 -0
  1428. package/lib/typescript/module/controls/listing-actions.d.ts +58 -0
  1429. package/lib/typescript/module/controls/listing-actions.d.ts.map +1 -0
  1430. package/lib/typescript/module/controls/listing-card.d.ts +44 -0
  1431. package/lib/typescript/module/controls/listing-card.d.ts.map +1 -0
  1432. package/lib/typescript/module/controls/listing-editor.d.ts +35 -0
  1433. package/lib/typescript/module/controls/listing-editor.d.ts.map +1 -0
  1434. package/lib/typescript/module/controls/listings.d.ts +68 -0
  1435. package/lib/typescript/module/controls/listings.d.ts.map +1 -0
  1436. package/lib/typescript/module/controls/lockup.d.ts +42 -0
  1437. package/lib/typescript/module/controls/lockup.d.ts.map +1 -0
  1438. package/lib/typescript/module/controls/logistics.d.ts +133 -0
  1439. package/lib/typescript/module/controls/logistics.d.ts.map +1 -0
  1440. package/lib/typescript/module/controls/lyrics.d.ts +30 -0
  1441. package/lib/typescript/module/controls/lyrics.d.ts.map +1 -0
  1442. package/lib/typescript/module/controls/mail.d.ts +87 -0
  1443. package/lib/typescript/module/controls/mail.d.ts.map +1 -0
  1444. package/lib/typescript/module/controls/map-chrome.d.ts +56 -0
  1445. package/lib/typescript/module/controls/map-chrome.d.ts.map +1 -0
  1446. package/lib/typescript/module/controls/markdown.d.ts +43 -0
  1447. package/lib/typescript/module/controls/markdown.d.ts.map +1 -0
  1448. package/lib/typescript/module/controls/media-cards.d.ts +124 -0
  1449. package/lib/typescript/module/controls/media-cards.d.ts.map +1 -0
  1450. package/lib/typescript/module/controls/media-controls.d.ts +32 -0
  1451. package/lib/typescript/module/controls/media-controls.d.ts.map +1 -0
  1452. package/lib/typescript/module/controls/media-flight.d.ts +52 -0
  1453. package/lib/typescript/module/controls/media-flight.d.ts.map +1 -0
  1454. package/lib/typescript/module/controls/media-inset-border.d.ts +19 -0
  1455. package/lib/typescript/module/controls/media-inset-border.d.ts.map +1 -0
  1456. package/lib/typescript/module/controls/media-player.d.ts +109 -0
  1457. package/lib/typescript/module/controls/media-player.d.ts.map +1 -0
  1458. package/lib/typescript/module/controls/media.d.ts +68 -0
  1459. package/lib/typescript/module/controls/media.d.ts.map +1 -0
  1460. package/lib/typescript/module/controls/menu-item.d.ts +33 -0
  1461. package/lib/typescript/module/controls/menu-item.d.ts.map +1 -0
  1462. package/lib/typescript/module/controls/menubar.d.ts +28 -0
  1463. package/lib/typescript/module/controls/menubar.d.ts.map +1 -0
  1464. package/lib/typescript/module/controls/message-bubble.d.ts +53 -0
  1465. package/lib/typescript/module/controls/message-bubble.d.ts.map +1 -0
  1466. package/lib/typescript/module/controls/multi-agent-chat.d.ts +28 -0
  1467. package/lib/typescript/module/controls/multi-agent-chat.d.ts.map +1 -0
  1468. package/lib/typescript/module/controls/music-library.d.ts +65 -0
  1469. package/lib/typescript/module/controls/music-library.d.ts.map +1 -0
  1470. package/lib/typescript/module/controls/note-card.d.ts +32 -0
  1471. package/lib/typescript/module/controls/note-card.d.ts.map +1 -0
  1472. package/lib/typescript/module/controls/notification.d.ts +43 -0
  1473. package/lib/typescript/module/controls/notification.d.ts.map +1 -0
  1474. package/lib/typescript/module/controls/offering-badge.d.ts +19 -0
  1475. package/lib/typescript/module/controls/offering-badge.d.ts.map +1 -0
  1476. package/lib/typescript/module/controls/order-confirmation.d.ts +26 -0
  1477. package/lib/typescript/module/controls/order-confirmation.d.ts.map +1 -0
  1478. package/lib/typescript/module/controls/order-status.d.ts +35 -0
  1479. package/lib/typescript/module/controls/order-status.d.ts.map +1 -0
  1480. package/lib/typescript/module/controls/overlays.d.ts +175 -0
  1481. package/lib/typescript/module/controls/overlays.d.ts.map +1 -0
  1482. package/lib/typescript/module/controls/payment-method.d.ts +47 -0
  1483. package/lib/typescript/module/controls/payment-method.d.ts.map +1 -0
  1484. package/lib/typescript/module/controls/payment-status.d.ts +33 -0
  1485. package/lib/typescript/module/controls/payment-status.d.ts.map +1 -0
  1486. package/lib/typescript/module/controls/phone-input.d.ts +36 -0
  1487. package/lib/typescript/module/controls/phone-input.d.ts.map +1 -0
  1488. package/lib/typescript/module/controls/place-reviews.d.ts +21 -0
  1489. package/lib/typescript/module/controls/place-reviews.d.ts.map +1 -0
  1490. package/lib/typescript/module/controls/places.d.ts +92 -0
  1491. package/lib/typescript/module/controls/places.d.ts.map +1 -0
  1492. package/lib/typescript/module/controls/price-breakdown.d.ts +27 -0
  1493. package/lib/typescript/module/controls/price-breakdown.d.ts.map +1 -0
  1494. package/lib/typescript/module/controls/product.d.ts +71 -0
  1495. package/lib/typescript/module/controls/product.d.ts.map +1 -0
  1496. package/lib/typescript/module/controls/project-board.d.ts +63 -0
  1497. package/lib/typescript/module/controls/project-board.d.ts.map +1 -0
  1498. package/lib/typescript/module/controls/property-insights.d.ts +20 -0
  1499. package/lib/typescript/module/controls/property-insights.d.ts.map +1 -0
  1500. package/lib/typescript/module/controls/queue-panel.d.ts +35 -0
  1501. package/lib/typescript/module/controls/queue-panel.d.ts.map +1 -0
  1502. package/lib/typescript/module/controls/rating.d.ts +98 -0
  1503. package/lib/typescript/module/controls/rating.d.ts.map +1 -0
  1504. package/lib/typescript/module/controls/route-stops.d.ts +20 -0
  1505. package/lib/typescript/module/controls/route-stops.d.ts.map +1 -0
  1506. package/lib/typescript/module/controls/settings.d.ts +73 -0
  1507. package/lib/typescript/module/controls/settings.d.ts.map +1 -0
  1508. package/lib/typescript/module/controls/share-sheet.d.ts +29 -0
  1509. package/lib/typescript/module/controls/share-sheet.d.ts.map +1 -0
  1510. package/lib/typescript/module/controls/slider.d.ts +53 -0
  1511. package/lib/typescript/module/controls/slider.d.ts.map +1 -0
  1512. package/lib/typescript/module/controls/social-button.d.ts +32 -0
  1513. package/lib/typescript/module/controls/social-button.d.ts.map +1 -0
  1514. package/lib/typescript/module/controls/sortable-chip-row.d.ts +24 -0
  1515. package/lib/typescript/module/controls/sortable-chip-row.d.ts.map +1 -0
  1516. package/lib/typescript/module/controls/sortable-media.d.ts +29 -0
  1517. package/lib/typescript/module/controls/sortable-media.d.ts.map +1 -0
  1518. package/lib/typescript/module/controls/spinner-icon.d.ts +16 -0
  1519. package/lib/typescript/module/controls/spinner-icon.d.ts.map +1 -0
  1520. package/lib/typescript/module/controls/stat-bar.d.ts +108 -0
  1521. package/lib/typescript/module/controls/stat-bar.d.ts.map +1 -0
  1522. package/lib/typescript/module/controls/stat-cards.d.ts +25 -0
  1523. package/lib/typescript/module/controls/stat-cards.d.ts.map +1 -0
  1524. package/lib/typescript/module/controls/stay-filters.d.ts +111 -0
  1525. package/lib/typescript/module/controls/stay-filters.d.ts.map +1 -0
  1526. package/lib/typescript/module/controls/stay-search.d.ts +46 -0
  1527. package/lib/typescript/module/controls/stay-search.d.ts.map +1 -0
  1528. package/lib/typescript/module/controls/stepper.d.ts +43 -0
  1529. package/lib/typescript/module/controls/stepper.d.ts.map +1 -0
  1530. package/lib/typescript/module/controls/table.d.ts +64 -0
  1531. package/lib/typescript/module/controls/table.d.ts.map +1 -0
  1532. package/lib/typescript/module/controls/tag-field.d.ts +33 -0
  1533. package/lib/typescript/module/controls/tag-field.d.ts.map +1 -0
  1534. package/lib/typescript/module/controls/task-list.d.ts +17 -0
  1535. package/lib/typescript/module/controls/task-list.d.ts.map +1 -0
  1536. package/lib/typescript/module/controls/tenancy.d.ts +51 -0
  1537. package/lib/typescript/module/controls/tenancy.d.ts.map +1 -0
  1538. package/lib/typescript/module/controls/toolbar-group.d.ts +23 -0
  1539. package/lib/typescript/module/controls/toolbar-group.d.ts.map +1 -0
  1540. package/lib/typescript/module/controls/tooltip.d.ts +28 -0
  1541. package/lib/typescript/module/controls/tooltip.d.ts.map +1 -0
  1542. package/lib/typescript/module/controls/track-list.d.ts +91 -0
  1543. package/lib/typescript/module/controls/track-list.d.ts.map +1 -0
  1544. package/lib/typescript/module/controls/vendor-card.d.ts +23 -0
  1545. package/lib/typescript/module/controls/vendor-card.d.ts.map +1 -0
  1546. package/lib/typescript/module/controls/video-playback.d.ts +30 -0
  1547. package/lib/typescript/module/controls/video-playback.d.ts.map +1 -0
  1548. package/lib/typescript/module/controls/video-view.d.ts +18 -0
  1549. package/lib/typescript/module/controls/video-view.d.ts.map +1 -0
  1550. package/lib/typescript/module/controls/view-that-fits.d.ts +16 -0
  1551. package/lib/typescript/module/controls/view-that-fits.d.ts.map +1 -0
  1552. package/lib/typescript/module/controls/viewport.d.ts +17 -0
  1553. package/lib/typescript/module/controls/viewport.d.ts.map +1 -0
  1554. package/lib/typescript/module/controls/voice.d.ts +29 -0
  1555. package/lib/typescript/module/controls/voice.d.ts.map +1 -0
  1556. package/lib/typescript/module/controls/web-search.d.ts +17 -0
  1557. package/lib/typescript/module/controls/web-search.d.ts.map +1 -0
  1558. package/lib/typescript/module/controls/zoomable-media-gallery.d.ts +43 -0
  1559. package/lib/typescript/module/controls/zoomable-media-gallery.d.ts.map +1 -0
  1560. package/lib/typescript/module/depth-stack.d.ts +22 -0
  1561. package/lib/typescript/module/depth-stack.d.ts.map +1 -0
  1562. package/lib/typescript/module/env.d.ts +57 -0
  1563. package/lib/typescript/module/env.d.ts.map +1 -0
  1564. package/lib/typescript/module/environment.d.ts +49 -0
  1565. package/lib/typescript/module/environment.d.ts.map +1 -0
  1566. package/lib/typescript/module/generated/sf-symbols.generated.d.ts +8 -0
  1567. package/lib/typescript/module/generated/sf-symbols.generated.d.ts.map +1 -0
  1568. package/lib/typescript/module/generated/spec.generated.d.ts +2674 -0
  1569. package/lib/typescript/module/generated/spec.generated.d.ts.map +1 -0
  1570. package/lib/typescript/module/generated/web-sheet.generated.d.ts +15 -0
  1571. package/lib/typescript/module/generated/web-sheet.generated.d.ts.map +1 -0
  1572. package/lib/typescript/module/glass.d.ts +64 -0
  1573. package/lib/typescript/module/glass.d.ts.map +1 -0
  1574. package/lib/typescript/module/index.d.ts +271 -0
  1575. package/lib/typescript/module/index.d.ts.map +1 -0
  1576. package/lib/typescript/module/modifier.d.ts +28 -0
  1577. package/lib/typescript/module/modifier.d.ts.map +1 -0
  1578. package/lib/typescript/module/motion/keyframes.d.ts +56 -0
  1579. package/lib/typescript/module/motion/keyframes.d.ts.map +1 -0
  1580. package/lib/typescript/module/motion/motion-node.d.ts +155 -0
  1581. package/lib/typescript/module/motion/motion-node.d.ts.map +1 -0
  1582. package/lib/typescript/module/motion/namespace.d.ts +46 -0
  1583. package/lib/typescript/module/motion/namespace.d.ts.map +1 -0
  1584. package/lib/typescript/module/motion/phases.d.ts +19 -0
  1585. package/lib/typescript/module/motion/phases.d.ts.map +1 -0
  1586. package/lib/typescript/module/motion/text-roll.d.ts +40 -0
  1587. package/lib/typescript/module/motion/text-roll.d.ts.map +1 -0
  1588. package/lib/typescript/module/motion/tokens.d.ts +42 -0
  1589. package/lib/typescript/module/motion/tokens.d.ts.map +1 -0
  1590. package/lib/typescript/module/motion/tracks.d.ts +28 -0
  1591. package/lib/typescript/module/motion/tracks.d.ts.map +1 -0
  1592. package/lib/typescript/module/motion/transition.d.ts +24 -0
  1593. package/lib/typescript/module/motion/transition.d.ts.map +1 -0
  1594. package/lib/typescript/module/motion/values.d.ts +28 -0
  1595. package/lib/typescript/module/motion/values.d.ts.map +1 -0
  1596. package/lib/typescript/module/node.d.ts +3406 -0
  1597. package/lib/typescript/module/node.d.ts.map +1 -0
  1598. package/lib/typescript/module/package.json +1 -0
  1599. package/lib/typescript/module/paint.d.ts +85 -0
  1600. package/lib/typescript/module/paint.d.ts.map +1 -0
  1601. package/lib/typescript/module/painted-host.d.ts +14 -0
  1602. package/lib/typescript/module/painted-host.d.ts.map +1 -0
  1603. package/lib/typescript/module/platform/bottom-bar-host.d.ts +3 -0
  1604. package/lib/typescript/module/platform/bottom-bar-host.d.ts.map +1 -0
  1605. package/lib/typescript/module/platform/confirmation-host.android.d.ts +3 -0
  1606. package/lib/typescript/module/platform/confirmation-host.android.d.ts.map +1 -0
  1607. package/lib/typescript/module/platform/confirmation-host.ios.d.ts +3 -0
  1608. package/lib/typescript/module/platform/confirmation-host.ios.d.ts.map +1 -0
  1609. package/lib/typescript/module/platform/confirmation-host.web.d.ts +3 -0
  1610. package/lib/typescript/module/platform/confirmation-host.web.d.ts.map +1 -0
  1611. package/lib/typescript/module/platform/glass-group-host.android.d.ts +5 -0
  1612. package/lib/typescript/module/platform/glass-group-host.android.d.ts.map +1 -0
  1613. package/lib/typescript/module/platform/glass-group-host.ios.d.ts +4 -0
  1614. package/lib/typescript/module/platform/glass-group-host.ios.d.ts.map +1 -0
  1615. package/lib/typescript/module/platform/glass-group-host.types.d.ts +30 -0
  1616. package/lib/typescript/module/platform/glass-group-host.types.d.ts.map +1 -0
  1617. package/lib/typescript/module/platform/glass-group-host.web.d.ts +11 -0
  1618. package/lib/typescript/module/platform/glass-group-host.web.d.ts.map +1 -0
  1619. package/lib/typescript/module/platform/glass-host.android.d.ts +3 -0
  1620. package/lib/typescript/module/platform/glass-host.android.d.ts.map +1 -0
  1621. package/lib/typescript/module/platform/glass-host.ios.d.ts +3 -0
  1622. package/lib/typescript/module/platform/glass-host.ios.d.ts.map +1 -0
  1623. package/lib/typescript/module/platform/glass-host.types.d.ts +38 -0
  1624. package/lib/typescript/module/platform/glass-host.types.d.ts.map +1 -0
  1625. package/lib/typescript/module/platform/glass-host.web.d.ts +8 -0
  1626. package/lib/typescript/module/platform/glass-host.web.d.ts.map +1 -0
  1627. package/lib/typescript/module/platform/header-host.d.ts +2 -0
  1628. package/lib/typescript/module/platform/header-host.d.ts.map +1 -0
  1629. package/lib/typescript/module/platform/header-host.ios.d.ts +5 -0
  1630. package/lib/typescript/module/platform/header-host.ios.d.ts.map +1 -0
  1631. package/lib/typescript/module/platform/header-page.d.ts +27 -0
  1632. package/lib/typescript/module/platform/header-page.d.ts.map +1 -0
  1633. package/lib/typescript/module/platform/host.types.d.ts +23 -0
  1634. package/lib/typescript/module/platform/host.types.d.ts.map +1 -0
  1635. package/lib/typescript/module/platform/lens-glass.d.ts +13 -0
  1636. package/lib/typescript/module/platform/lens-glass.d.ts.map +1 -0
  1637. package/lib/typescript/module/platform/lens-group.d.ts +32 -0
  1638. package/lib/typescript/module/platform/lens-group.d.ts.map +1 -0
  1639. package/lib/typescript/module/platform/lens.d.ts +103 -0
  1640. package/lib/typescript/module/platform/lens.d.ts.map +1 -0
  1641. package/lib/typescript/module/platform/menu-actions.d.ts +32 -0
  1642. package/lib/typescript/module/platform/menu-actions.d.ts.map +1 -0
  1643. package/lib/typescript/module/platform/menu-dropdown.d.ts +43 -0
  1644. package/lib/typescript/module/platform/menu-dropdown.d.ts.map +1 -0
  1645. package/lib/typescript/module/platform/menu-host.android.d.ts +12 -0
  1646. package/lib/typescript/module/platform/menu-host.android.d.ts.map +1 -0
  1647. package/lib/typescript/module/platform/menu-host.ios.d.ts +3 -0
  1648. package/lib/typescript/module/platform/menu-host.ios.d.ts.map +1 -0
  1649. package/lib/typescript/module/platform/menu-host.web.d.ts +2 -0
  1650. package/lib/typescript/module/platform/menu-host.web.d.ts.map +1 -0
  1651. package/lib/typescript/module/platform/menu-rows.d.ts +72 -0
  1652. package/lib/typescript/module/platform/menu-rows.d.ts.map +1 -0
  1653. package/lib/typescript/module/platform/sf-symbol.ios.d.ts +3 -0
  1654. package/lib/typescript/module/platform/sf-symbol.ios.d.ts.map +1 -0
  1655. package/lib/typescript/module/platform/values.d.ts +6 -0
  1656. package/lib/typescript/module/platform/values.d.ts.map +1 -0
  1657. package/lib/typescript/module/primitives.d.ts +272 -0
  1658. package/lib/typescript/module/primitives.d.ts.map +1 -0
  1659. package/lib/typescript/module/render.d.ts +25 -0
  1660. package/lib/typescript/module/render.d.ts.map +1 -0
  1661. package/lib/typescript/module/router/app-layout.d.ts +9 -0
  1662. package/lib/typescript/module/router/app-layout.d.ts.map +1 -0
  1663. package/lib/typescript/module/router/bar.d.ts +12 -0
  1664. package/lib/typescript/module/router/bar.d.ts.map +1 -0
  1665. package/lib/typescript/module/router/bar.ios.d.ts +11 -0
  1666. package/lib/typescript/module/router/bar.ios.d.ts.map +1 -0
  1667. package/lib/typescript/module/router/components.d.ts +41 -0
  1668. package/lib/typescript/module/router/components.d.ts.map +1 -0
  1669. package/lib/typescript/module/router/index.d.ts +8 -0
  1670. package/lib/typescript/module/router/index.d.ts.map +1 -0
  1671. package/lib/typescript/module/router/navigators.d.ts +5 -0
  1672. package/lib/typescript/module/router/navigators.d.ts.map +1 -0
  1673. package/lib/typescript/module/router/nodes.d.ts +75 -0
  1674. package/lib/typescript/module/router/nodes.d.ts.map +1 -0
  1675. package/lib/typescript/module/router/pager.d.ts +8 -0
  1676. package/lib/typescript/module/router/pager.d.ts.map +1 -0
  1677. package/lib/typescript/module/router/primary.d.ts +13 -0
  1678. package/lib/typescript/module/router/primary.d.ts.map +1 -0
  1679. package/lib/typescript/module/router/routes.d.ts +4 -0
  1680. package/lib/typescript/module/router/routes.d.ts.map +1 -0
  1681. package/lib/typescript/module/router/screen-header.d.ts +3 -0
  1682. package/lib/typescript/module/router/screen-header.d.ts.map +1 -0
  1683. package/lib/typescript/module/router/screen-header.ios.d.ts +9 -0
  1684. package/lib/typescript/module/router/screen-header.ios.d.ts.map +1 -0
  1685. package/lib/typescript/module/router/screen-host.d.ts +5 -0
  1686. package/lib/typescript/module/router/screen-host.d.ts.map +1 -0
  1687. package/lib/typescript/module/router/sheet-bloom.d.ts +12 -0
  1688. package/lib/typescript/module/router/sheet-bloom.d.ts.map +1 -0
  1689. package/lib/typescript/module/router/sheet-host.d.ts +2 -0
  1690. package/lib/typescript/module/router/sheet-host.d.ts.map +1 -0
  1691. package/lib/typescript/module/router/sheet-host.ios.d.ts +3 -0
  1692. package/lib/typescript/module/router/sheet-host.ios.d.ts.map +1 -0
  1693. package/lib/typescript/module/router/shell-panels.d.ts +9 -0
  1694. package/lib/typescript/module/router/shell-panels.d.ts.map +1 -0
  1695. package/lib/typescript/module/router/stack.d.ts +5 -0
  1696. package/lib/typescript/module/router/stack.d.ts.map +1 -0
  1697. package/lib/typescript/module/router/stack.ios.d.ts +5 -0
  1698. package/lib/typescript/module/router/stack.ios.d.ts.map +1 -0
  1699. package/lib/typescript/module/router/stack.web.d.ts +5 -0
  1700. package/lib/typescript/module/router/stack.web.d.ts.map +1 -0
  1701. package/lib/typescript/module/router/tabs.d.ts +2 -0
  1702. package/lib/typescript/module/router/tabs.d.ts.map +1 -0
  1703. package/lib/typescript/module/router/tabs.ios.d.ts +2 -0
  1704. package/lib/typescript/module/router/tabs.ios.d.ts.map +1 -0
  1705. package/lib/typescript/module/state-host.d.ts +44 -0
  1706. package/lib/typescript/module/state-host.d.ts.map +1 -0
  1707. package/lib/typescript/module/style.d.ts +268 -0
  1708. package/lib/typescript/module/style.d.ts.map +1 -0
  1709. package/lib/typescript/module/toast.d.ts +31 -0
  1710. package/lib/typescript/module/toast.d.ts.map +1 -0
  1711. package/lib/typescript/module/tokens.d.ts +446 -0
  1712. package/lib/typescript/module/tokens.d.ts.map +1 -0
  1713. package/lib/typescript/module/variants.d.ts +50 -0
  1714. package/lib/typescript/module/variants.d.ts.map +1 -0
  1715. package/lib/typescript/module/view.d.ts +29 -0
  1716. package/lib/typescript/module/view.d.ts.map +1 -0
  1717. package/lib/typescript/module/web-sheet.d.ts +78 -0
  1718. package/lib/typescript/module/web-sheet.d.ts.map +1 -0
  1719. package/package.json +120 -4
  1720. package/spec/language.json +4863 -0
  1721. package/src/__tests__/android-hosts.test.tsx +497 -0
  1722. package/src/__tests__/chrome.test.tsx +594 -0
  1723. package/src/__tests__/containers.test.tsx +177 -0
  1724. package/src/__tests__/containers.types.test.ts +84 -0
  1725. package/src/__tests__/controls.test.tsx +416 -0
  1726. package/src/__tests__/inputs.test.tsx +243 -0
  1727. package/src/__tests__/insets.test.tsx +55 -0
  1728. package/src/__tests__/ios-hosts.test.tsx +285 -0
  1729. package/src/__tests__/layers.test.ts +55 -0
  1730. package/src/__tests__/layout.test.tsx +283 -0
  1731. package/src/__tests__/list-paint.web.test.tsx +110 -0
  1732. package/src/__tests__/menu-actions.test.tsx +90 -0
  1733. package/src/__tests__/menu-actions.web.test.tsx +40 -0
  1734. package/src/__tests__/menu-rows.test.ts +104 -0
  1735. package/src/__tests__/motion.test.tsx +914 -0
  1736. package/src/__tests__/motion.web.test.tsx +360 -0
  1737. package/src/__tests__/node.test.ts +86 -0
  1738. package/src/__tests__/overlays.test.tsx +200 -0
  1739. package/src/__tests__/overlays.types.test.ts +25 -0
  1740. package/src/__tests__/phases.test.ts +53 -0
  1741. package/src/__tests__/render.test.tsx +587 -0
  1742. package/src/__tests__/render.web.test.tsx +126 -0
  1743. package/src/__tests__/router.android.test.tsx +501 -0
  1744. package/src/__tests__/router.ios.test.tsx +174 -0
  1745. package/src/__tests__/router.web.test.tsx +39 -0
  1746. package/src/__tests__/screen-action.test.tsx +41 -0
  1747. package/src/__tests__/sheet.ios.test.tsx +85 -0
  1748. package/src/__tests__/spec.test.ts +1787 -0
  1749. package/src/__tests__/ssr.web.test.tsx +80 -0
  1750. package/src/__tests__/support/absent/@expo/ui/swift-ui/index.ts +3 -0
  1751. package/src/__tests__/support/absent/@expo/ui/swift-ui/modifiers.ts +3 -0
  1752. package/src/__tests__/support/absent/expo-blur.ts +3 -0
  1753. package/src/__tests__/support/absent/expo-glass-effect.ts +3 -0
  1754. package/src/__tests__/support/absent/expo-router-native-tabs.ts +3 -0
  1755. package/src/__tests__/support/absent/expo-router-react-navigation.ts +3 -0
  1756. package/src/__tests__/support/absent/expo-router.ts +3 -0
  1757. package/src/__tests__/support/absent/expo.ts +3 -0
  1758. package/src/__tests__/support/bloom-app-shell-hooks.ts +1 -0
  1759. package/src/__tests__/support/bloom-avatar.ts +4 -0
  1760. package/src/__tests__/support/bloom-components.ts +109 -0
  1761. package/src/__tests__/support/bloom-containers.ts +30 -0
  1762. package/src/__tests__/support/bloom-controls.ts +112 -0
  1763. package/src/__tests__/support/bloom-design-tokens.ts +9 -0
  1764. package/src/__tests__/support/bloom-hooks.ts +15 -0
  1765. package/src/__tests__/support/bloom-icon-modules.ts +24 -0
  1766. package/src/__tests__/support/bloom-icons.ts +13 -0
  1767. package/src/__tests__/support/bloom-inputs.ts +27 -0
  1768. package/src/__tests__/support/bloom-motion.ts +26 -0
  1769. package/src/__tests__/support/bloom-motion.web.ts +26 -0
  1770. package/src/__tests__/support/bloom-overlays.ts +26 -0
  1771. package/src/__tests__/support/bloom-portal.ts +3 -0
  1772. package/src/__tests__/support/bloom-products.ts +314 -0
  1773. package/src/__tests__/support/bloom-router.ts +59 -0
  1774. package/src/__tests__/support/bloom-runtime.ts +19 -0
  1775. package/src/__tests__/support/bloom-shapes.ts +7 -0
  1776. package/src/__tests__/support/bloom-styles.ts +20 -0
  1777. package/src/__tests__/support/bloom-theme.ts +39 -0
  1778. package/src/__tests__/support/bloom-typography.ts +26 -0
  1779. package/src/__tests__/support/mount.ts +49 -0
  1780. package/src/__tests__/support/react-native-gesture-handler.ts +23 -0
  1781. package/src/__tests__/support/react-native-reanimated.ts +69 -0
  1782. package/src/__tests__/support/react-native.ts +17 -0
  1783. package/src/__tests__/tokens.test.ts +65 -0
  1784. package/src/__tests__/variants.test.tsx +509 -0
  1785. package/src/__tests__/variants.web.test.tsx +349 -0
  1786. package/src/__tests__/web-hosts.test.tsx +125 -0
  1787. package/src/__tests__/workspace-bloom.test.ts +21 -0
  1788. package/src/binding.ts +35 -0
  1789. package/src/chrome/command-host.tsx +62 -0
  1790. package/src/chrome/defined.ts +13 -0
  1791. package/src/chrome/layout-hosts.tsx +173 -0
  1792. package/src/chrome/page-footer-host.tsx +30 -0
  1793. package/src/chrome/rail-host.tsx +47 -0
  1794. package/src/chrome/safe-area-inset.tsx +127 -0
  1795. package/src/chrome/scroll-view-host.tsx +197 -0
  1796. package/src/chrome/settings-host.tsx +82 -0
  1797. package/src/chrome/sidebar-host.tsx +240 -0
  1798. package/src/controls/accordion.tsx +91 -0
  1799. package/src/controls/activity-feed.tsx +47 -0
  1800. package/src/controls/activity-heatmap.tsx +74 -0
  1801. package/src/controls/address.tsx +81 -0
  1802. package/src/controls/agent-avatar.tsx +76 -0
  1803. package/src/controls/agent-chat.tsx +98 -0
  1804. package/src/controls/agent-creator.tsx +65 -0
  1805. package/src/controls/agent-reply.tsx +72 -0
  1806. package/src/controls/agents.tsx +415 -0
  1807. package/src/controls/ai-chat.tsx +274 -0
  1808. package/src/controls/ai-profile-card.tsx +56 -0
  1809. package/src/controls/ambient-photo.tsx +39 -0
  1810. package/src/controls/animated-check.tsx +61 -0
  1811. package/src/controls/avatar-flight.tsx +47 -0
  1812. package/src/controls/booking.tsx +113 -0
  1813. package/src/controls/breadcrumb.tsx +79 -0
  1814. package/src/controls/calendar.tsx +97 -0
  1815. package/src/controls/call-ui.tsx +265 -0
  1816. package/src/controls/card-form.tsx +130 -0
  1817. package/src/controls/carousel.tsx +139 -0
  1818. package/src/controls/cart-panel.tsx +146 -0
  1819. package/src/controls/category-bar.tsx +63 -0
  1820. package/src/controls/chart-cards.tsx +365 -0
  1821. package/src/controls/chat-composer.tsx +342 -0
  1822. package/src/controls/chat-people.tsx +101 -0
  1823. package/src/controls/chat.tsx +659 -0
  1824. package/src/controls/checkout-sheet.tsx +47 -0
  1825. package/src/controls/checkout-summary.tsx +81 -0
  1826. package/src/controls/choice-list.tsx +121 -0
  1827. package/src/controls/code.tsx +121 -0
  1828. package/src/controls/collapsible.tsx +39 -0
  1829. package/src/controls/color-swatch-picker.tsx +52 -0
  1830. package/src/controls/composer-panel.tsx +141 -0
  1831. package/src/controls/composition-bar.tsx +85 -0
  1832. package/src/controls/confirmation-dialog.tsx +66 -0
  1833. package/src/controls/containers.tsx +924 -0
  1834. package/src/controls/context-menu.tsx +136 -0
  1835. package/src/controls/creator-studio.tsx +313 -0
  1836. package/src/controls/crm.tsx +135 -0
  1837. package/src/controls/dashboard-cards.tsx +81 -0
  1838. package/src/controls/data-table.tsx +287 -0
  1839. package/src/controls/date-picker.tsx +251 -0
  1840. package/src/controls/delivery-slot.tsx +122 -0
  1841. package/src/controls/draw.ts +145 -0
  1842. package/src/controls/drop-zone.tsx +65 -0
  1843. package/src/controls/eviction.tsx +56 -0
  1844. package/src/controls/expandable-text.tsx +63 -0
  1845. package/src/controls/fact-strip.tsx +71 -0
  1846. package/src/controls/file-upload.tsx +62 -0
  1847. package/src/controls/generic.tsx +214 -0
  1848. package/src/controls/glass-group.tsx +43 -0
  1849. package/src/controls/home-search.tsx +117 -0
  1850. package/src/controls/hover-card.tsx +70 -0
  1851. package/src/controls/index.ts +252 -0
  1852. package/src/controls/input-group.tsx +66 -0
  1853. package/src/controls/input-otp.tsx +49 -0
  1854. package/src/controls/inputs.tsx +840 -0
  1855. package/src/controls/link-preview.tsx +37 -0
  1856. package/src/controls/list.tsx +428 -0
  1857. package/src/controls/listing-actions.tsx +135 -0
  1858. package/src/controls/listing-card.tsx +99 -0
  1859. package/src/controls/listing-editor.tsx +90 -0
  1860. package/src/controls/listings.tsx +198 -0
  1861. package/src/controls/lockup.tsx +69 -0
  1862. package/src/controls/logistics.tsx +356 -0
  1863. package/src/controls/lyrics.tsx +64 -0
  1864. package/src/controls/mail.tsx +213 -0
  1865. package/src/controls/map-chrome.tsx +108 -0
  1866. package/src/controls/markdown.tsx +94 -0
  1867. package/src/controls/media-cards.tsx +276 -0
  1868. package/src/controls/media-controls.tsx +73 -0
  1869. package/src/controls/media-flight.tsx +114 -0
  1870. package/src/controls/media-inset-border.tsx +49 -0
  1871. package/src/controls/media-player.tsx +287 -0
  1872. package/src/controls/media.tsx +172 -0
  1873. package/src/controls/menu-item.tsx +87 -0
  1874. package/src/controls/menubar.tsx +134 -0
  1875. package/src/controls/message-bubble.tsx +124 -0
  1876. package/src/controls/multi-agent-chat.tsx +46 -0
  1877. package/src/controls/music-library.tsx +195 -0
  1878. package/src/controls/note-card.tsx +72 -0
  1879. package/src/controls/notification.tsx +86 -0
  1880. package/src/controls/offering-badge.tsx +41 -0
  1881. package/src/controls/order-confirmation.tsx +41 -0
  1882. package/src/controls/order-status.tsx +68 -0
  1883. package/src/controls/overlays.tsx +373 -0
  1884. package/src/controls/payment-method.tsx +91 -0
  1885. package/src/controls/payment-status.tsx +63 -0
  1886. package/src/controls/phone-input.tsx +68 -0
  1887. package/src/controls/place-reviews.tsx +46 -0
  1888. package/src/controls/places.tsx +209 -0
  1889. package/src/controls/price-breakdown.tsx +63 -0
  1890. package/src/controls/product.ts +142 -0
  1891. package/src/controls/project-board.tsx +130 -0
  1892. package/src/controls/property-insights.tsx +49 -0
  1893. package/src/controls/queue-panel.tsx +73 -0
  1894. package/src/controls/rating.tsx +201 -0
  1895. package/src/controls/route-stops.tsx +40 -0
  1896. package/src/controls/settings.tsx +206 -0
  1897. package/src/controls/share-sheet.tsx +56 -0
  1898. package/src/controls/slider.tsx +105 -0
  1899. package/src/controls/social-button.tsx +68 -0
  1900. package/src/controls/sortable-chip-row.tsx +58 -0
  1901. package/src/controls/sortable-media.tsx +61 -0
  1902. package/src/controls/spinner-icon.tsx +33 -0
  1903. package/src/controls/stat-bar.tsx +243 -0
  1904. package/src/controls/stat-cards.tsx +44 -0
  1905. package/src/controls/stay-filters.tsx +273 -0
  1906. package/src/controls/stay-search.tsx +114 -0
  1907. package/src/controls/stepper.tsx +89 -0
  1908. package/src/controls/table.tsx +164 -0
  1909. package/src/controls/tag-field.tsx +71 -0
  1910. package/src/controls/task-list.tsx +34 -0
  1911. package/src/controls/tenancy.tsx +113 -0
  1912. package/src/controls/toolbar-group.tsx +46 -0
  1913. package/src/controls/tooltip.tsx +64 -0
  1914. package/src/controls/track-list.tsx +238 -0
  1915. package/src/controls/vendor-card.tsx +48 -0
  1916. package/src/controls/video-playback.tsx +71 -0
  1917. package/src/controls/video-view.tsx +35 -0
  1918. package/src/controls/view-that-fits.tsx +118 -0
  1919. package/src/controls/viewport.tsx +30 -0
  1920. package/src/controls/voice.tsx +61 -0
  1921. package/src/controls/web-search.tsx +34 -0
  1922. package/src/controls/zoomable-media-gallery.tsx +137 -0
  1923. package/src/depth-stack.tsx +102 -0
  1924. package/src/env.ts +180 -0
  1925. package/src/environment.ts +102 -0
  1926. package/src/generated/sf-symbols.generated.ts +210 -0
  1927. package/src/generated/spec.generated.ts +52742 -0
  1928. package/src/generated/web-sheet.generated.ts +3383 -0
  1929. package/src/glass.ts +88 -0
  1930. package/src/index.ts +1921 -0
  1931. package/src/modifier.ts +35 -0
  1932. package/src/motion/keyframes.ts +90 -0
  1933. package/src/motion/motion-node.tsx +631 -0
  1934. package/src/motion/namespace.ts +52 -0
  1935. package/src/motion/phases.ts +86 -0
  1936. package/src/motion/text-roll.tsx +239 -0
  1937. package/src/motion/tokens.ts +81 -0
  1938. package/src/motion/tracks.ts +128 -0
  1939. package/src/motion/transition.ts +48 -0
  1940. package/src/motion/values.ts +88 -0
  1941. package/src/node.ts +5648 -0
  1942. package/src/paint.ts +331 -0
  1943. package/src/painted-host.ts +47 -0
  1944. package/src/platform/Glass.stories.tsx +109 -0
  1945. package/src/platform/Platform.stories.tsx +128 -0
  1946. package/src/platform/SwiftUI.stories.tsx +113 -0
  1947. package/src/platform/bottom-bar-host.tsx +63 -0
  1948. package/src/platform/confirmation-host.android.tsx +99 -0
  1949. package/src/platform/confirmation-host.ios.tsx +114 -0
  1950. package/src/platform/confirmation-host.web.tsx +54 -0
  1951. package/src/platform/glass-group-host.android.tsx +46 -0
  1952. package/src/platform/glass-group-host.ios.tsx +239 -0
  1953. package/src/platform/glass-group-host.types.ts +34 -0
  1954. package/src/platform/glass-group-host.web.ts +14 -0
  1955. package/src/platform/glass-host.android.tsx +53 -0
  1956. package/src/platform/glass-host.ios.tsx +118 -0
  1957. package/src/platform/glass-host.types.ts +41 -0
  1958. package/src/platform/glass-host.web.ts +10 -0
  1959. package/src/platform/header-host.ios.tsx +252 -0
  1960. package/src/platform/header-host.tsx +2 -0
  1961. package/src/platform/header-page.tsx +101 -0
  1962. package/src/platform/host.types.ts +25 -0
  1963. package/src/platform/lens-glass.ts +35 -0
  1964. package/src/platform/lens-group.tsx +103 -0
  1965. package/src/platform/lens.ts +121 -0
  1966. package/src/platform/menu-actions.tsx +87 -0
  1967. package/src/platform/menu-dropdown.tsx +182 -0
  1968. package/src/platform/menu-host.android.tsx +218 -0
  1969. package/src/platform/menu-host.ios.tsx +151 -0
  1970. package/src/platform/menu-host.web.tsx +2 -0
  1971. package/src/platform/menu-rows.ts +219 -0
  1972. package/src/platform/sf-symbol.ios.ts +10 -0
  1973. package/src/platform/values.ts +19 -0
  1974. package/src/primitives.ts +562 -0
  1975. package/src/render.tsx +3377 -0
  1976. package/src/router/app-layout.tsx +91 -0
  1977. package/src/router/bar.ios.tsx +14 -0
  1978. package/src/router/bar.tsx +44 -0
  1979. package/src/router/components.tsx +88 -0
  1980. package/src/router/index.ts +7 -0
  1981. package/src/router/navigators.tsx +22 -0
  1982. package/src/router/nodes.ts +111 -0
  1983. package/src/router/pager.ts +10 -0
  1984. package/src/router/primary.ts +17 -0
  1985. package/src/router/routes.ts +10 -0
  1986. package/src/router/screen-header.ios.tsx +8 -0
  1987. package/src/router/screen-header.tsx +4 -0
  1988. package/src/router/screen-host.tsx +169 -0
  1989. package/src/router/sheet-bloom.tsx +114 -0
  1990. package/src/router/sheet-host.ios.tsx +128 -0
  1991. package/src/router/sheet-host.tsx +2 -0
  1992. package/src/router/shell-panels.ts +93 -0
  1993. package/src/router/stack.ios.tsx +30 -0
  1994. package/src/router/stack.tsx +32 -0
  1995. package/src/router/stack.web.tsx +14 -0
  1996. package/src/router/tabs.ios.tsx +50 -0
  1997. package/src/router/tabs.tsx +17 -0
  1998. package/src/state-host.tsx +174 -0
  1999. package/src/stories/Parity.stories.tsx +193 -0
  2000. package/src/stories/ParityFrame.stories.tsx +30 -0
  2001. package/src/stories/parity-families.ts +256 -0
  2002. package/src/style.ts +1236 -0
  2003. package/src/toast.ts +46 -0
  2004. package/src/tokens.ts +642 -0
  2005. package/src/variants.ts +120 -0
  2006. package/src/view.ts +49 -0
  2007. package/src/web-sheet.ts +247 -0
  2008. package/README.md +0 -3
@@ -0,0 +1,2855 @@
1
+ "use strict";
2
+
3
+ import { cloneElement, createContext, createElement, Fragment, useContext } from 'react';
4
+ import { Platform, Pressable, Text as RNText, View } from 'react-native';
5
+ import { Avatar as BloomAvatar } from '@oxy.so/bloom/avatar';
6
+ import { AvatarGroup as BloomAvatarGroup } from '@oxy.so/bloom/avatar-group';
7
+ import { Badge as BloomBadge } from '@oxy.so/bloom/badge';
8
+ import { AvatarPresence } from '@oxy.so/bloom/chat-indicators';
9
+ import { IconCircle as BloomIconCircle } from '@oxy.so/bloom/icon-circle';
10
+ import { Loading as BloomLoading } from '@oxy.so/bloom/loading';
11
+ import * as BloomSkeleton from '@oxy.so/bloom/skeleton';
12
+ import { hoverGroupProps, SubtleHover } from '@oxy.so/bloom/subtle-hover';
13
+ import { Button as BloomButton } from '@oxy.so/bloom/button';
14
+ import { EngagementAction, EngagementBar, EngagementGroup } from '@oxy.so/bloom/engagement-bar';
15
+ import { BloomImage } from '@oxy.so/bloom/image';
16
+ import { Fab as BloomFab } from '@oxy.so/bloom/fab';
17
+ import { BlurIsland } from '@oxy.so/bloom/blur';
18
+ import { useScreenVisible } from '@oxy.so/bloom/screen';
19
+ import { Sticker } from '@oxy.so/bloom/sticker';
20
+ import { Surface } from '@oxy.so/bloom/surface';
21
+ import { AspectRatio as BloomAspectRatio } from '@oxy.so/bloom/aspect-ratio';
22
+ import { ConcentricView } from '@oxy.so/bloom/concentric';
23
+ import { Divider as BloomDivider } from '@oxy.so/bloom/divider';
24
+ import { Fill as BloomFill } from '@oxy.so/bloom/fill';
25
+ import { Border as ShapeBorder, Fill as ShapeFill, Image as ShapeImage } from '@oxy.so/bloom/shapes';
26
+ import { ResponsiveGrid } from '@oxy.so/bloom/grid';
27
+ import { openExternal } from '@oxy.so/bloom/hooks';
28
+ import { Blockquote, H1, H2, H3, H4, H5, H6, Large, Lead, Muted, P, Small, Subtitle, Text as BloomText, Title } from '@oxy.so/bloom/typography';
29
+ import { isNode, Navigation, Node } from "./node.js";
30
+ import { ENVIRONMENT, ENVIRONMENT_TAKERS, LAYER_RANK, TONE_ROLE } from "./generated/spec.generated.js";
31
+ import { regular } from "./glass.js";
32
+ import { opacity } from "./motion/transition.js";
33
+ import { getPlatformGlass } from './platform/glass-host';
34
+ import { ConfirmationHost } from './platform/confirmation-host';
35
+ import { insetsOf, NO_INSETS, SafeAreaInsets } from "./chrome/safe-area-inset.js";
36
+ import { MenuHost } from './platform/menu-host';
37
+ import { HeaderHost } from './platform/header-host';
38
+ import { BottomBarHost } from "./platform/bottom-bar-host.js";
39
+ import { ScrollViewHost } from "./chrome/scroll-view-host.js";
40
+ import { SidebarHost } from "./chrome/sidebar-host.js";
41
+ import { RailHost } from "./chrome/rail-host.js";
42
+ import { PageFooterHost } from "./chrome/page-footer-host.js";
43
+ import { CommandHost } from "./chrome/command-host.js";
44
+ import { SettingsHost } from "./chrome/settings-host.js";
45
+ import { AutoHideBarHost, ResizeHandleHost, ScrollAreaHost, ScrollSurfaceHost, StickySectionHost, ToolbarHost } from "./chrome/layout-hosts.js";
46
+ import { GEOMETRY_KINDS, PLACE_KINDS, STACK_KINDS, geometryOf, addToLayers, addVariantToLayers, applyPlacement, flexOnly, cachedStyle, emptyPlacement, foregroundOf, ink, isAppColor, isLayerModifier, joinVariants, layerStyle, role, layerVariants, layoutOf, layoutStyle, overlayStyle, placeStyle, placeVariants, rawBaseFont, stackStyle, textStyle, textVariant, textVariants, SIDE_RADII } from "./style.js";
47
+ import { Reporting, ReportedState, StateHost } from "./state-host.js";
48
+ import { CONTROLS } from "./controls/index.js";
49
+ import { drawDialog, presentAround } from "./controls/overlays.js";
50
+ import { STATES, both, compareLive, termsOf, settle, varies, warnNotVaried } from "./variants.js";
51
+ import { Conditioned, GEOMETRY_KEYS, Painted, composeGeometry } from "./paint.js";
52
+ import { DURATION, HIT_SLOP, isFontFamily, resolveAvatarSize, resolveCorner, resolveFont, resolveBorderWidth, resolveLength, resolveSpace, resolveIconSize, tokenKey } from "./tokens.js";
53
+ import { deriveEnv, EnvContext, materialEnv, ROOT_ENV } from "./env.js";
54
+ import { inheritedModifiers } from "./environment.js";
55
+ import { adoptLanguageSheet, languageSheets } from "./web-sheet.js";
56
+ import { MotionWrapper, Presence, animatedHost, isMotionValue } from '@oxy.so/bloom/motion';
57
+ import { AnimationContext, GestureMotionNode, MotionNode, PressMotionNode, ThemedMotion, scopeOf } from "./motion/motion-node.js";
58
+ import { NumericRoll, TextRoll } from "./motion/text-roll.js";
59
+ import { DepthStack } from "./depth-stack.js";
60
+ import { resolveAnchor, resolveDelay, resolveRotation, resolveScale } from "./motion/tokens.js";
61
+ import { PRESS_HOST_STYLE, ServerStyleSheet } from '@oxy.so/bloom/styles';
62
+ const IS_WEB = Platform.OS === 'web';
63
+
64
+ /** A host or Bloom component, as `draw` takes it. */
65
+
66
+ /** The language's own pressable hosts. */
67
+ const PRESSABLE_HOSTS = new Set([Pressable]);
68
+ const pressHostOuts = new WeakMap();
69
+
70
+ /**
71
+ * A pressable host's style on the web, with Bloom's press host class: a
72
+ * state's selector reads it to leave a hover or a press inside a pressable to
73
+ * that pressable, as react-native-web's Pressable does (the spec's
74
+ * `variants.selectors`). Built once per style.
75
+ */
76
+ function pressHostOut(host, out) {
77
+ if (PRESS_HOST_STYLE === undefined || !PRESSABLE_HOSTS.has(host)) return out;
78
+ let marked = pressHostOuts.get(out);
79
+ if (marked === undefined) {
80
+ marked = Object.freeze({
81
+ ...out,
82
+ style: out.style === undefined ? PRESS_HOST_STYLE : [out.style, PRESS_HOST_STYLE].flat()
83
+ });
84
+ pressHostOuts.set(out, marked);
85
+ pressHostOuts.set(marked, marked);
86
+ }
87
+ return marked;
88
+ }
89
+
90
+ /**
91
+ * `createElement` over the host and Bloom components with props assembled from
92
+ * the chain. Their prop contracts are what the render suite asserts.
93
+ */
94
+ const draw = createElement;
95
+ const ROLE = {
96
+ button: 'button',
97
+ link: 'link',
98
+ header: 'header',
99
+ image: 'image',
100
+ text: 'text',
101
+ none: 'none',
102
+ checkbox: 'checkbox',
103
+ radio: 'radio',
104
+ tab: 'tab',
105
+ radiogroup: 'radiogroup',
106
+ tablist: 'tablist',
107
+ list: 'list',
108
+ alert: 'alert',
109
+ progressbar: 'progressbar',
110
+ imagebutton: 'imagebutton',
111
+ summary: 'summary'
112
+ };
113
+
114
+ /** What sets the environment of what is inside: the text traits, and the environment values. */
115
+ const ENV_KINDS = new Set([...ENVIRONMENT, 'environment']);
116
+
117
+ /** Marks the props of a box drawn by a `StateHost`: its value says whether the box is pressable. */
118
+ const STATEFUL = '$$stateful';
119
+
120
+ /** A style with nothing to draw: for a host that takes only props. */
121
+ const NO_OUT = Object.freeze({
122
+ style: undefined,
123
+ paint: undefined
124
+ });
125
+
126
+ /** The nodes the language draws with React Native's own hosts; every other kind is a Bloom component. */
127
+ const DRAWN_BY_HOSTS = new Set(['stack', 'zstack', 'spacer', 'text', 'icon', 'embed', 'view']);
128
+
129
+ /** One pass over a node's modifiers: what it draws with, sorted by what it affects. */
130
+
131
+ /** A number per namespace, so an id is unique to its namespace as a string (a glass's key in its group). */
132
+ const namespaceNumbers = new WeakMap();
133
+ let namespaceCount = 0;
134
+ function namespaced(prefix, id, namespace) {
135
+ let number = namespaceNumbers.get(namespace);
136
+ if (number === undefined) {
137
+ namespaceCount += 1;
138
+ number = namespaceCount;
139
+ namespaceNumbers.set(namespace, number);
140
+ }
141
+ return `${prefix}:${number}:${id}`;
142
+ }
143
+
144
+ /** A glass's identity in its group, from its chain; `undefined` with none. */
145
+ function glassMemberOf(modifiers) {
146
+ let member;
147
+ for (const modifier of modifiers) {
148
+ if (modifier.kind === 'glassID') member = {
149
+ ...member,
150
+ id: namespaced('bloom-glass', modifier.id, modifier.namespace)
151
+ };else if (modifier.kind === 'glassUnion') member = {
152
+ ...member,
153
+ union: namespaced('bloom-union', modifier.id, modifier.namespace)
154
+ };else if (modifier.kind === 'glassTransition') member = {
155
+ ...member,
156
+ transition: modifier.value
157
+ };
158
+ }
159
+ return member;
160
+ }
161
+ const MOTION_KINDS = new Set(['scale', 'offset', 'rotation', 'animation', 'animatesColors', 'transition', 'keyframes', 'repeatForever', 'delay', 'anchor', 'matchedGeometry', 'glassID', 'glassTransition', 'pressScale', 'drag', 'swipe', 'pinch', 'onDoubleTap']);
162
+
163
+ /** Resting transforms (and the same by component), interned by key so a moving host's style keeps its identity. */
164
+ const transforms = new Map();
165
+ function motionPlan(node, layers) {
166
+ const motion = {
167
+ transform: NO_TRANSFORM,
168
+ transformKey: '',
169
+ geometry: NO_GEOMETRY,
170
+ anchor: undefined,
171
+ animation: undefined,
172
+ colors: false,
173
+ transition: undefined,
174
+ keyframes: undefined,
175
+ loop: undefined,
176
+ delay: 0,
177
+ matched: undefined,
178
+ pressScale: false,
179
+ bound: undefined,
180
+ drag: undefined,
181
+ swipe: undefined,
182
+ pinch: undefined,
183
+ doubleTap: undefined,
184
+ glass: layers.some(layer => layer.glass !== undefined),
185
+ stable: false
186
+ };
187
+ const bound = {};
188
+ let translateX = 0;
189
+ let translateY = 0;
190
+ let rotate = 0;
191
+ let scale = 1;
192
+ let glassID;
193
+ let glassTransition;
194
+ for (const modifier of node.modifiers) {
195
+ switch (modifier.kind) {
196
+ case 'opacity':
197
+ motion.stable = true;
198
+ break;
199
+ case 'scale':
200
+ motion.stable = true;
201
+ if (isMotionValue(modifier.value)) bound.scale = modifier.value;else if (typeof modifier.value === 'string') scale = resolveScale(modifier.value);
202
+ break;
203
+ case 'offset':
204
+ {
205
+ motion.stable = true;
206
+ const {
207
+ x,
208
+ y
209
+ } = modifier.value;
210
+ if (isMotionValue(x)) bound.translateX = x;else if (typeof x === 'string' || isAppToken(x)) translateX = resolveSpace(x);
211
+ if (isMotionValue(y)) bound.translateY = y;else if (typeof y === 'string' || isAppToken(y)) translateY = resolveSpace(y);
212
+ break;
213
+ }
214
+ case 'rotation':
215
+ motion.stable = true;
216
+ if (isMotionValue(modifier.value)) bound.rotate = modifier.value;else if (typeof modifier.value === 'string') rotate = resolveRotation(modifier.value);
217
+ break;
218
+ case 'drag':
219
+ motion.stable = true;
220
+ motion.drag = {
221
+ value: modifier.value,
222
+ options: modifier.options
223
+ };
224
+ break;
225
+ case 'swipe':
226
+ motion.stable = true;
227
+ motion.swipe = {
228
+ direction: modifier.direction,
229
+ onSwipe: modifier.onSwipe
230
+ };
231
+ break;
232
+ case 'pinch':
233
+ motion.stable = true;
234
+ motion.pinch = {
235
+ value: modifier.value,
236
+ options: modifier.options
237
+ };
238
+ break;
239
+ case 'onDoubleTap':
240
+ motion.doubleTap = modifier.value;
241
+ break;
242
+ case 'animation':
243
+ // What its box draws changes with the motion: the box is animated from the first render.
244
+ if (changesBox(node.modifiers)) motion.stable = true;
245
+ motion.animation = scopeOf(modifier.motion, modifier.value, modifier.gated);
246
+ break;
247
+ case 'animatesColors':
248
+ // Its colours play with the animation in scope: the box is animated from the first render.
249
+ motion.stable = true;
250
+ motion.colors = true;
251
+ break;
252
+ case 'transition':
253
+ motion.stable = true;
254
+ motion.transition = modifier.value;
255
+ break;
256
+ case 'keyframes':
257
+ motion.keyframes = {
258
+ value: modifier.value,
259
+ trigger: modifier.trigger
260
+ };
261
+ break;
262
+ case 'repeatForever':
263
+ motion.loop = modifier.value;
264
+ break;
265
+ case 'delay':
266
+ motion.delay = resolveDelay(modifier.value);
267
+ break;
268
+ case 'anchor':
269
+ motion.anchor = resolveAnchor(modifier.value);
270
+ break;
271
+ case 'matchedGeometry':
272
+ motion.stable = true;
273
+ motion.matched = {
274
+ id: modifier.id,
275
+ namespace: modifier.namespace
276
+ };
277
+ break;
278
+ case 'glassID':
279
+ glassID = {
280
+ id: modifier.id,
281
+ namespace: modifier.namespace
282
+ };
283
+ break;
284
+ case 'glassTransition':
285
+ glassTransition = modifier.value;
286
+ break;
287
+ case 'pressScale':
288
+ motion.stable = true;
289
+ motion.pressScale = true;
290
+ break;
291
+ }
292
+ }
293
+ // A glass's identity is the engine's own motion: `materialize` fades the glass
294
+ // in and out where it is, `matchedGeometry` (the default) grows it out of the
295
+ // glass with its id. A transition or matched geometry the chain names wins.
296
+ if (glassTransition === 'materialize') {
297
+ motion.stable = true;
298
+ motion.transition ??= opacity;
299
+ } else if (glassID !== undefined) {
300
+ motion.stable = true;
301
+ motion.matched ??= glassID;
302
+ }
303
+ if (Object.keys(bound).length > 0 || motion.swipe !== undefined) {
304
+ // Bound geometry: the one mapper writes the whole transform, the tokens as
305
+ // constants beside the values.
306
+ motion.bound = {
307
+ translateX: bound.translateX ? [translateX, bound.translateX] : [translateX],
308
+ translateY: bound.translateY ? [translateY, bound.translateY] : [translateY],
309
+ rotate: bound.rotate ? [rotate, bound.rotate] : [rotate],
310
+ scale: bound.scale ?? scale
311
+ };
312
+ return motion;
313
+ }
314
+ const key = `${translateX}|${translateY}|${rotate}|${scale}`;
315
+ if (key !== '0|0|0|1') {
316
+ let resting = transforms.get(key);
317
+ if (resting === undefined) {
318
+ const geometry = {};
319
+ if (translateX !== 0) geometry.translateX = translateX;
320
+ if (translateY !== 0) geometry.translateY = translateY;
321
+ if (rotate !== 0) geometry.rotate = rotate;
322
+ if (scale !== 1) geometry.scale = scale;
323
+ resting = {
324
+ geometry: Object.freeze(geometry),
325
+ transform: Object.freeze(composeGeometry(geometry).transform)
326
+ };
327
+ transforms.set(key, resting);
328
+ }
329
+ motion.transform = resting.transform;
330
+ motion.geometry = resting.geometry;
331
+ motion.transformKey = key;
332
+ }
333
+ return motion;
334
+ }
335
+ const NO_TRANSFORM = Object.freeze([]);
336
+ const NO_GEOMETRY = Object.freeze({});
337
+
338
+ /** What a change of plays on a view's box under `.animation()`: its opacity and geometry (colours only with `.animatesColors()`). */
339
+ const ANIMATED_KINDS = new Set(['opacity', 'scale', 'offset', 'rotation']);
340
+
341
+ /** Whether a chain draws something its box animates, at rest or in a variant. */
342
+ function changesBox(modifiers) {
343
+ return modifiers.some(modifier => modifier.kind === 'when' ? changesBox(modifier.modifiers) : ANIMATED_KINDS.has(modifier.kind));
344
+ }
345
+
346
+ /** Whether a geometry modifier follows a `MotionValue` (on any axis). */
347
+ function followsValue(modifier) {
348
+ if (modifier.kind !== 'offset') return isMotionValue(modifier.value);
349
+ return isMotionValue(modifier.value.x) || isMotionValue(modifier.value.y);
350
+ }
351
+ function isAppToken(value) {
352
+ return typeof value === 'object' && value !== null && 'scale' in value;
353
+ }
354
+
355
+ /** A FAB is on glass: the platform's, unless its chain names another. */
356
+ const FAB_GLASS = {
357
+ kind: 'glass',
358
+ key: regular.key,
359
+ value: regular
360
+ };
361
+
362
+ /**
363
+ * A Button's glass styles, as the chain they stand for: the button on glass
364
+ * (Bloom's `material="shared"`, the glass drawing its fill), `glass` in the
365
+ * neutral tone's `subtle` ink and `glassProminent` a `solid` one, whose fill
366
+ * tints the glass (the accent by default). The glass comes first, as a FAB's
367
+ * does, and a `.glass()` the chain names is the glass instead; a tint it names
368
+ * comes later and wins.
369
+ */
370
+ const GLASS_STYLES = {
371
+ glass: [{
372
+ kind: 'tint',
373
+ key: 'tint:neutral',
374
+ value: 'neutral'
375
+ }, {
376
+ kind: 'style',
377
+ key: 'style:subtle',
378
+ value: 'subtle'
379
+ }],
380
+ glassProminent: [{
381
+ kind: 'tint',
382
+ key: 'tint:accent',
383
+ value: 'accent'
384
+ }, {
385
+ kind: 'style',
386
+ key: 'style:solid',
387
+ value: 'solid'
388
+ }]
389
+ };
390
+
391
+ /** A button's chain with a glass style written out (see `GLASS_STYLES`). */
392
+ function glassStyled(modifiers, onGlass) {
393
+ let style;
394
+ for (const modifier of modifiers) if (modifier.kind === 'style') style = modifier.value;
395
+ const styled = style === undefined ? undefined : GLASS_STYLES[style];
396
+ if (styled === undefined) return modifiers;
397
+ const [tint, appearance] = styled;
398
+ const out = onGlass ? [tint] : [FAB_GLASS, tint];
399
+ for (const modifier of modifiers) out.push(modifier.kind === 'style' && GLASS_STYLES[modifier.value] ? appearance : modifier);
400
+ return out;
401
+ }
402
+ const DISABLED_TAKERS = new Set(ENVIRONMENT_TAKERS.disabled.kinds);
403
+
404
+ /**
405
+ * Whether a view's `.disabled()` reaches everything inside it: a stack's and
406
+ * any view's that takes no `disabled` of its own do. A Bloom component that
407
+ * takes one keeps it, so Bloom decides what its content does, as it does for
408
+ * an app's JSX (a disabled `ChipRow` and its chips).
409
+ */
410
+ function handsDownDisabled(kind) {
411
+ return kind === 'stack' || !DISABLED_TAKERS.has(kind);
412
+ }
413
+ function plan(node, env) {
414
+ const result = {
415
+ layers: [],
416
+ place: emptyPlacement(),
417
+ env: [],
418
+ envVariants: [],
419
+ hostVariants: [],
420
+ states: [],
421
+ pressable: false,
422
+ onPress: undefined,
423
+ navigation: undefined,
424
+ onLongPress: undefined,
425
+ onHoverIn: undefined,
426
+ onHoverOut: undefined,
427
+ hoverGroup: false,
428
+ label: undefined,
429
+ hint: undefined,
430
+ role: undefined,
431
+ hitSlop: undefined,
432
+ testID: undefined,
433
+ id: undefined,
434
+ own: new Map(),
435
+ control: undefined,
436
+ motion: undefined,
437
+ glassMember: undefined
438
+ };
439
+ const onGlass = node.modifiers.some(modifier => modifier.kind === 'glass');
440
+ // What the environment sets on this kind of node comes first: its own chain wins.
441
+ const inherited = inheritedModifiers(node.kind, env);
442
+ const chained = inherited.length > 0 ? [...inherited, ...node.modifiers] : node.modifiers;
443
+ const modifiers = node.kind === 'fab' && !onGlass ? [FAB_GLASS, ...chained] : node.kind === 'button' ? glassStyled(chained, onGlass) : chained;
444
+ // A `disabled` variant answers the view's own `disabled()`, wherever it is chained.
445
+ let disabled = false;
446
+ for (const modifier of modifiers) if (modifier.kind === 'disabled') disabled = modifier.value;
447
+ let moving = false;
448
+ for (const modifier of modifiers) {
449
+ if (MOTION_KINDS.has(modifier.kind)) {
450
+ moving = true;
451
+ continue;
452
+ }
453
+ // `identity` draws no glass: the chain keeps its shape without a material.
454
+ if (modifier.kind === 'glass' && !modifier.value.drawn) continue;
455
+ // A button group's glass is its own material (Bloom's `material="lens"`), not a layer around it.
456
+ if (node.kind === 'buttonGroup' && modifier.kind === 'glass') {
457
+ result.own.set('glass', modifier);
458
+ continue;
459
+ }
460
+ // A card's corner curve is its own (Bloom's `cornerCurve`, beside its `radius`), not its box's.
461
+ if (node.kind === 'card' && modifier.kind === 'cornerCurve') {
462
+ result.own.set('cornerCurve', modifier);
463
+ continue;
464
+ }
465
+ // A card's clip is its own (Bloom's `clipContent`), not a box around it.
466
+ if (node.kind === 'card' && modifier.kind === 'clipped') {
467
+ result.own.set('clipped', modifier);
468
+ continue;
469
+ }
470
+ if (isLayerModifier(modifier)) {
471
+ addToLayers(result.layers, modifier);
472
+ continue;
473
+ }
474
+ if (modifier.kind === 'when') {
475
+ const condition = settle(modifier.condition, disabled);
476
+ if (condition !== false) planVariant(result, condition, modifier.modifiers, disabled);
477
+ continue;
478
+ }
479
+ if (ENV_KINDS.has(modifier.kind)) {
480
+ result.env.push(modifier);
481
+ continue;
482
+ }
483
+ // `disabled` is the view's own, and the environment of everything inside it,
484
+ // except inside a Bloom component that takes it itself (see `handsDownDisabled`).
485
+ if (modifier.kind === 'disabled' && handsDownDisabled(node.kind)) result.env.push(modifier);
486
+ switch (modifier.kind) {
487
+ case 'grow':
488
+ case 'shrink':
489
+ case 'alignSelf':
490
+ case 'position':
491
+ case 'zIndex':
492
+ case 'hidden':
493
+ case 'basis':
494
+ case 'flex':
495
+ case 'margin':
496
+ case 'allowsHitTesting':
497
+ case 'accessibilityOnly':
498
+ applyPlacement(result.place, modifier);
499
+ break;
500
+ case 'onPress':
501
+ result.pressable = true;
502
+ if (modifier.value instanceof Navigation) result.navigation = modifier.value;else {
503
+ result.navigation = undefined;
504
+ result.onPress = modifier.value;
505
+ }
506
+ break;
507
+ case 'onLongPress':
508
+ result.pressable = true;
509
+ result.onLongPress = modifier.value;
510
+ break;
511
+ case 'hoverGroup':
512
+ result.hoverGroup = true;
513
+ break;
514
+ case 'onHover':
515
+ result.pressable = true;
516
+ result.onHoverIn = modifier.enter;
517
+ result.onHoverOut = modifier.leave;
518
+ break;
519
+ case 'label':
520
+ result.label = modifier.value;
521
+ break;
522
+ case 'hint':
523
+ result.hint = modifier.value;
524
+ break;
525
+ case 'role':
526
+ result.role = modifier.value;
527
+ break;
528
+ case 'hitSlop':
529
+ result.hitSlop = HIT_SLOP[modifier.value];
530
+ break;
531
+ case 'testID':
532
+ result.testID = modifier.value;
533
+ break;
534
+ case 'id':
535
+ result.id = modifier.value;
536
+ break;
537
+ default:
538
+ result.own.set(modifier.kind, modifier);
539
+ }
540
+ }
541
+ // A wash that answers the pointer needs the hover group it lights up in.
542
+ if (result.own.has('hoverHighlight') && ownValue(result, 'hoverHighlight')?.value === undefined) result.hoverGroup = true;
543
+ if ((node.kind === 'button' || node.kind === 'fab') && result.layers.some(l => l.glass)) {
544
+ result.control = {
545
+ tint: controlTint(node.kind, result),
546
+ reports: glassStates(result.layers)
547
+ };
548
+ }
549
+ if (result.layers.some(layer => layer.glass !== undefined)) result.glassMember = glassMemberOf(modifiers);
550
+ // A view whose geometry varies is moving: its box draws the geometry (see `renderNode`).
551
+ if (moving || result.place.variants.some(([, modifier]) => GEOMETRY_KINDS.has(modifier.kind))) result.motion = motionPlan(node, result.layers);
552
+ return result;
553
+ }
554
+
555
+ /**
556
+ * A variant's modifiers, each where it overrides what the chain set before
557
+ * it: a box modifier in the view that set the same thing last, a text trait
558
+ * in the environment, a stack's layout on its host, a placement on its
559
+ * outermost box.
560
+ */
561
+ function planVariant(result, condition, modifiers, disabled) {
562
+ for (const term of condition === null ? [] : termsOf(condition)) {
563
+ if (STATES.has(term) && !result.states.includes(term)) result.states.push(term);
564
+ }
565
+ for (const modifier of modifiers) {
566
+ if (modifier.kind === 'when') {
567
+ // A variant inside a variant holds while both conditions do.
568
+ const inner = settle(modifier.condition, disabled);
569
+ if (inner !== false) planVariant(result, both(condition, inner), modifier.modifiers, disabled);
570
+ continue;
571
+ }
572
+ if (!varies(modifier)) {
573
+ // A condition that holds as the view renders (web, native, a platform,
574
+ // disabled) is the chain's own: what no live variant changes applies as
575
+ // if chained there (`when('web', (v) => v.noWrap())`).
576
+ if (condition === null && heldAsOwn(result, modifier)) continue;
577
+ warnNotVaried(modifier);
578
+ continue;
579
+ }
580
+ if (GEOMETRY_KINDS.has(modifier.kind) && followsValue(modifier)) {
581
+ warnOnce('value-variant', '[Bloom language] a variant varies geometry by token: a MotionValue inside when() is left out.');
582
+ continue;
583
+ }
584
+ const mark = `;?${condition ?? ''}${modifier.key}`;
585
+ if (isLayerModifier(modifier)) addVariantToLayers(result.layers, condition, modifier);else if (ENV_KINDS.has(modifier.kind)) result.envVariants.push([condition, modifier]);else if (PLACE_KINDS.has(modifier.kind)) {
586
+ result.place.variants.push([condition, modifier]);
587
+ result.place.key += mark;
588
+ } else if (STACK_KINDS.has(modifier.kind)) {
589
+ result.hostVariants.push([condition, modifier]);
590
+ }
591
+ }
592
+ }
593
+
594
+ /** Kinds the plan reads into fields of its own (presses, names): a held variant does not set them. */
595
+ const PLANNED_KINDS = new Set(['onPress', 'onLongPress', 'hoverGroup', 'onHover', 'label', 'hint', 'role', 'hitSlop', 'testID', 'id']);
596
+
597
+ /**
598
+ * A modifier no live variant can change, under a condition that holds: a text
599
+ * trait joins the environment, a stack's layout its own, any other the
600
+ * chain's own modifiers. A box layer or a placement is left out (it stacks).
601
+ */
602
+ function heldAsOwn(result, modifier) {
603
+ if (isLayerModifier(modifier) || PLACE_KINDS.has(modifier.kind)) return false;
604
+ if (PLANNED_KINDS.has(modifier.kind) || MOTION_KINDS.has(modifier.kind)) return false;
605
+ if (ENV_KINDS.has(modifier.kind)) result.env.push(modifier);else if (STACK_KINDS.has(modifier.kind)) result.hostVariants.push([null, modifier]);else result.own.set(modifier.kind, modifier);
606
+ return true;
607
+ }
608
+
609
+ /** The style key of a stack's own variants, '' with none. */
610
+ function hostVariantKey(p) {
611
+ return p.hostVariants.map(([condition, modifier]) => `?${condition ?? ''}${modifier.key}`).join(';');
612
+ }
613
+
614
+ /** A stack's layout variants: the ones that hold go into its layout, the live ones are styles under their condition. */
615
+ function hostVariants(p) {
616
+ return joinVariants(p.hostVariants.filter(([condition]) => condition !== null).map(([condition, modifier]) => [condition, layoutStyle(layoutOf([modifier]))]));
617
+ }
618
+
619
+ /** A press modifier's value as a handler in an environment, for a host that wires presses itself. */
620
+ function pressOf(value, env) {
621
+ if (value === undefined) return undefined;
622
+ if (value instanceof Navigation) return navigationPress(env, value);
623
+ // A system bar item has no gesture of its own to hand the handler.
624
+ return () => value(undefined);
625
+ }
626
+
627
+ /** A `navigate()` press: through the navigator the view is drawn under. */
628
+ function navigationPress(env, to) {
629
+ return () => {
630
+ if (env.navigate) env.navigate(to.href, to.params);else if (process.env.NODE_ENV !== 'production') {
631
+ console.warn(`[Bloom language] navigate('${to.href}') was pressed outside a router layout() or screen(): it goes nowhere.`);
632
+ }
633
+ };
634
+ }
635
+
636
+ /** The colour role a solid control fills with: what an untinted glass under it is tinted with. */
637
+ function controlTint(kind, p) {
638
+ const appearance = p.own.get('style')?.value ?? 'solid';
639
+ if (appearance !== 'solid') return undefined;
640
+ const tone = p.own.get('tint')?.value;
641
+ const role = TONE_ROLE[tone ?? (kind === 'fab' ? 'action' : 'accent')];
642
+ return role ?? undefined;
643
+ }
644
+ function ownValue(p, kind) {
645
+ return p.own.get(kind);
646
+ }
647
+
648
+ /**
649
+ * The accessibility and press props of a view, for whichever host ends up
650
+ * outermost; `undefined` when it has none, so a bare node never gets a host
651
+ * of its own.
652
+ */
653
+ function behaviourProps(p) {
654
+ const props = {};
655
+ if (p.label !== undefined) props.accessibilityLabel = p.label;
656
+ if (p.hint !== undefined) props.accessibilityHint = p.hint;
657
+ if (p.role !== undefined) props.accessibilityRole = ROLE[p.role];
658
+ // Press feedback is Bloom's PressableScale, which a button is.
659
+ else if (p.pressable && p.motion?.pressScale) props.accessibilityRole = 'button';
660
+ if (p.testID !== undefined) props.testID = p.testID;
661
+ if (p.hitSlop !== undefined) props.hitSlop = p.hitSlop;
662
+ if (p.pressable) {
663
+ // A view whose press handler is absent stays the same host, out of the tab order
664
+ // (a pressable is focusable by default).
665
+ if (p.onPress === undefined && p.onLongPress === undefined) props.focusable = false;
666
+ if (p.onPress) props.onPress = p.onPress;
667
+ if (p.onLongPress) props.onLongPress = p.onLongPress;
668
+ }
669
+ if (p.onHoverIn) props.onHoverIn = p.onHoverIn;
670
+ if (p.onHoverOut) props.onHoverOut = p.onHoverOut;
671
+ // A hover group's marker, so a descendant `SubtleHover` answers the pointer over it.
672
+ if (IS_WEB && p.hoverGroup) Object.assign(props, hoverGroupProps);
673
+ if (p.pressable && p.own.get('disabled')?.kind === 'disabled') {
674
+ const disabled = ownValue(p, 'disabled')?.value;
675
+ if (disabled) props.disabled = true;
676
+ }
677
+ // A box whose variants answer its state is drawn by a `StateHost` (drawHost).
678
+ if (p.states.length > 0) props[STATEFUL] = p.pressable ? p.states : [];
679
+ for (const _ in props) return props;
680
+ return undefined;
681
+ }
682
+
683
+ /** The style key of a node's placement in its parent, '' when it has none. */
684
+ function flexKey(p) {
685
+ return p.place.key;
686
+ }
687
+
688
+ /**
689
+ * Where a node renders: its environment, and the environment `EnvContext`
690
+ * holds at this point of the React tree (they differ below an environment
691
+ * modifier, until a `view()` needs it provided).
692
+ */
693
+
694
+ /**
695
+ * Draws `host` with a resolved style: directly when the style is final, or
696
+ * through a `Painted` leaf when the style names theme colours (native).
697
+ */
698
+ function drawHost(host, style, props, ...children) {
699
+ const out = pressHostOut(host, style);
700
+ if (STATEFUL in props) {
701
+ const {
702
+ [STATEFUL]: states,
703
+ ...rest
704
+ } = props;
705
+ return draw(StateHost, {
706
+ ...rest,
707
+ host,
708
+ out,
709
+ states
710
+ }, ...children);
711
+ }
712
+ // A moving box's motion style (`Outer`) comes after its own (a painted leaf
713
+ // merges both after what it paints).
714
+ if (out.style !== undefined) props.style = props.style === undefined ? out.style : [out.style, ...props.style];
715
+ if (out.paint?.variants !== undefined) return draw(Conditioned, {
716
+ ...props,
717
+ host,
718
+ paint: out.paint
719
+ }, ...children);
720
+ if (out.paint !== undefined) return draw(Painted, {
721
+ ...props,
722
+ host,
723
+ paint: out.paint
724
+ }, ...children);
725
+ return draw(host, props, ...children);
726
+ }
727
+
728
+ /**
729
+ * The outermost box of a moving node (see `Outer`): drawn with `outer` on it,
730
+ * as its host's animated twin on native. A Bloom component cannot take it, so
731
+ * `drawNode` boxes one instead (`Outermost.used` stays false).
732
+ */
733
+
734
+ function drawOutermost(box, host, style, props, ...children) {
735
+ const out = pressHostOut(host, style);
736
+ const animated = animatedHost(host);
737
+ // A host with no animated twin (a Bloom component) moves in the box `drawNode` adds.
738
+ if (box === undefined || animated === undefined) return drawHost(host, out, props, ...children);
739
+ box.used = true;
740
+ const {
741
+ outer
742
+ } = box;
743
+ if (!outer.active) return drawHost(host, out, {
744
+ ...props,
745
+ ...outer.props
746
+ }, ...children);
747
+ // The animated twin takes the motion's style after its own, through the
748
+ // leaf that paints it and the `StateHost` whose state its variants answer,
749
+ // so a variant's change (a press's scale, a hover's fill) plays on it.
750
+ return drawHost(animated, out, {
751
+ ...props,
752
+ ...outer.props,
753
+ style: outer.style
754
+ }, ...children);
755
+ }
756
+
757
+ /** `element` in a box of its own that carries `outer` (`style` first): how what cannot take it moves. */
758
+ function moveIn(outer, element, style) {
759
+ return draw(animatedHost(View) ?? MotionWrapper, {
760
+ ...outer.props,
761
+ key: outer.playId,
762
+ style: style === undefined ? outer.style : [style, ...outer.style]
763
+ }, element);
764
+ }
765
+
766
+ // ── Hosts ────────────────────────────────────────────────────────
767
+
768
+ /**
769
+ * Draws one node, or hands back what it drew last time in the same place
770
+ * (see `Rendered` in node.ts): a node that keeps its identity across renders
771
+ * gives React the same element, and React skips the subtree.
772
+ */
773
+ function renderNode(node, ctx, key) {
774
+ const last = node.rendered;
775
+ if (last !== undefined && last.env === ctx.env && last.provided === ctx.provided && last.animation === ctx.animation && last.scoped === ctx.scoped && last.key === key && last.inText === ctx.inText && last.inRow === ctx.inRow) {
776
+ return last.element;
777
+ }
778
+ const p = plan(node, ctx.env);
779
+ if (p.motion !== undefined) placeGeometry(p, p.motion, ctx.animation === undefined);
780
+ const element = p.motion === undefined ? drawNode(node, p, ctx, key, undefined) : drawMoving(node, p, ctx, key);
781
+ node.rendered = {
782
+ env: ctx.env,
783
+ provided: ctx.provided,
784
+ animation: ctx.animation,
785
+ scoped: ctx.scoped,
786
+ key,
787
+ inText: ctx.inText,
788
+ inRow: ctx.inRow,
789
+ element
790
+ };
791
+ return element;
792
+ }
793
+
794
+ /**
795
+ * Where a node's token geometry is drawn: by its outermost box, as part of
796
+ * its placement, when its geometry rests with nothing to play it and no
797
+ * `.animation()` above (as a view moved by hand is drawn: the node then takes
798
+ * no motion at all), or when a variant changes it, so the variant overrides
799
+ * only the components it sets (each component is a style value, and on the
800
+ * web a custom property: style.ts, `webStyle`); the motion layer then plays
801
+ * only its changes. Otherwise the motion layer draws it (`MotionNode`).
802
+ *
803
+ * A transform the one mapper writes (a `MotionValue`, a gesture, native press
804
+ * feedback) takes no variant: its variants are left out.
805
+ */
806
+ function placeGeometry(p, motion, unscoped) {
807
+ const varied = new Set();
808
+ for (const [, modifier] of p.place.variants) {
809
+ if (GEOMETRY_KINDS.has(modifier.kind)) for (const key of Object.keys(geometryOf(modifier))) varied.add(key);
810
+ }
811
+ const mapped = motion.bound !== undefined || motion.drag !== undefined || motion.pressScale;
812
+ if (varied.size > 0 && mapped) {
813
+ warnOnce('mapped-variant', '[Bloom language] geometry a MotionValue, a gesture or press feedback moves does not vary: its variants are left out.');
814
+ p.place.variants = p.place.variants.filter(([, modifier]) => !GEOMETRY_KINDS.has(modifier.kind));
815
+ return;
816
+ }
817
+ const still = unscoped && restsStill(motion);
818
+ if (!still && varied.size === 0) return;
819
+ // A component a variant sets rests at its identity when the chain sets none.
820
+ const geometry = {};
821
+ for (const key of GEOMETRY_KEYS) if (varied.has(key)) geometry[key] = key === 'scale' ? 1 : 0;
822
+ Object.assign(geometry, motion.geometry);
823
+ p.place.geometry = geometry;
824
+ p.place.anchor = motion.anchor;
825
+ p.place.key += `;t:${motion.transformKey}|${[...varied].join(',')}|${motion.anchor ?? ''}`;
826
+ // A varied geometry changes on the box, which is then animated from the first render.
827
+ p.motion = still ? undefined : {
828
+ ...motion,
829
+ transform: NO_TRANSFORM,
830
+ geometry: NO_GEOMETRY,
831
+ anchor: undefined,
832
+ stable: true
833
+ };
834
+ }
835
+
836
+ /** A node whose motion is its resting geometry alone: tokens, no value, nothing that plays. */
837
+ function restsStill(motion) {
838
+ return motion.animation === undefined && motion.transition === undefined && motion.keyframes === undefined && motion.loop === undefined && motion.matched === undefined && !motion.pressScale && motion.bound === undefined && motion.drag === undefined && motion.swipe === undefined && motion.pinch === undefined && motion.doubleTap === undefined;
839
+ }
840
+
841
+ /** A node with motion modifiers: `MotionNode` holds its motion state and draws it with `Outer`. */
842
+ function drawMoving(node, p, ctx, key) {
843
+ const motion = p.motion;
844
+ const component = motion.bound !== undefined || motion.drag !== undefined || motion.pinch !== undefined || motion.doubleTap !== undefined ? GestureMotionNode : motion.pressScale ? PressMotionNode : MotionNode;
845
+ // Native: a node that animates its colours reads the palette (`ThemedMotion`).
846
+ const themed = motion.colors && !IS_WEB;
847
+ return draw(themed ? ThemedMotion : component, {
848
+ ...(themed ? {
849
+ node: component
850
+ } : null),
851
+ key: p.id ?? key,
852
+ motion,
853
+ exit: p.id !== undefined && motion.transition !== undefined,
854
+ scope: ctx.animation,
855
+ content: outer => drawNode(node, p, ctx, undefined, outer)
856
+ });
857
+ }
858
+
859
+ /**
860
+ * Draws one node: its host element with the innermost layer merged into the
861
+ * host's own style, then each further layer as a view around it. The press,
862
+ * hover and accessibility props go on the outermost box; `grow`/`shrink` too.
863
+ */
864
+ function drawNode(node, p, ctx, key, outer) {
865
+ const traits = p.env.length > 0 || p.envVariants.length > 0 ? deriveEnv(ctx.env, p.env, p.envVariants) : ctx.env;
866
+ // Inside an island its controls share its material; a glass inside it ends that.
867
+ const env = p.layers.some(layer => layer.blur) ? materialEnv(traits, true) : p.layers.some(layer => layer.glass !== undefined) ? materialEnv(traits, false) : traits;
868
+ if (p.navigation !== undefined) p.onPress = navigationPress(env, p.navigation);
869
+ const animation = p.motion?.animation ?? ctx.animation;
870
+ // What the node's children render in: its environment, its animation scope, and no row (a stack sets its own).
871
+ const inner = env === ctx.env && animation === ctx.animation && !ctx.inRow ? ctx : {
872
+ env,
873
+ provided: ctx.provided,
874
+ animation,
875
+ scoped: ctx.scoped,
876
+ inText: ctx.inText
877
+ };
878
+ const reactKey = p.id ?? key;
879
+ if (node.kind === 'skeleton') return drawSkeleton(node, p, inner, reactKey);
880
+ if (node.kind === 'dialog') return drawPresentedDialog(node, p, inner, reactKey);
881
+ // A group draws no view of its own: its children, where it is, as if they were there.
882
+ if (node.kind === 'group') return draw(Fragment, {
883
+ key: reactKey
884
+ }, ...renderChildren(node.children, ctx));
885
+ const layers = p.layers;
886
+ // A Bloom component's hit testing on the web is a view of its own around it:
887
+ // react-native-web drops an inline `pointerEvents`. (Its variants are its own
888
+ // style: `serialize`.)
889
+ const ownBox = IS_WEB && !DRAWN_BY_HOSTS.has(node.kind) && p.place.allowsHitTesting !== undefined;
890
+ if (ownBox && layers.length === 0) addVariantToLayers(layers, null, EMPTY_PADDING);
891
+ // A glass layer is a Surface and a blur layer an island, which the host cannot
892
+ // be, and an overlay layer holds its views beside the host; so the host takes
893
+ // the innermost layer only when that layer is plain.
894
+ const hostTakesLayer = !ownBox && layers.length > 0 && layers[0].glass === undefined && !layers[0].blur && !layers[0].concentric && layers[0].overlays.length === 0;
895
+ const hostLayer = hostTakesLayer ? layers[0] : undefined;
896
+ const wrappers = hostTakesLayer ? layers.slice(1) : layers;
897
+ const outermostIsHost = wrappers.length === 0;
898
+ const flex = flexKey(p);
899
+ const behaviour = behaviourProps(p);
900
+ // A control on glass keeps its own press, focus and name: the glass only draws its fill.
901
+ const hostBehaves = outermostIsHost || p.control !== undefined;
902
+ const box = outer === undefined ? undefined : {
903
+ outer,
904
+ used: false
905
+ };
906
+ let element = renderHost(node, p, inner, hostLayer, outermostIsHost ? flex : '', hostBehaves ? behaviour : undefined, outermostIsHost ? reactKey : undefined, ctx.inRow === true, outermostIsHost ? box : undefined);
907
+ for (let i = 0; i < wrappers.length; i++) {
908
+ let layer = wrappers[i];
909
+ const outermost = i === wrappers.length - 1;
910
+ const flexOf = outermost ? flex : '';
911
+ const material = materialPadding(layer);
912
+ if (material !== undefined) {
913
+ // The varied padding is a view of its own inside the material, which takes the variants.
914
+ const {
915
+ inner
916
+ } = material;
917
+ element = drawHost(View, cachedStyle('host', `L|${inner.key}|`, () => layerStyle(inner), () => layerVariants(inner)), {}, element);
918
+ layer = material.outer;
919
+ }
920
+ element = wrapLayer(layer, flexOf, p, withOverlays(layer, element, inner), outermost && !hostBehaves ? behaviour : undefined, outermost ? reactKey : undefined, outermost ? box : undefined);
921
+ }
922
+ // A Bloom component (a Surface, an Avatar, a bare glyph) takes no motion of
923
+ // its own: it moves in one box, there only while something plays on it.
924
+ if (box !== undefined && !box.used && box.outer.active) element = moveIn(box.outer, element, flex ? flexOnly(p.place) : undefined);
925
+ const badge = ownValue(p, 'badge')?.value;
926
+ if (isNode(badge) && badge.kind === 'badge') {
927
+ // An attached badge is Bloom's Badge around the view, at its placement.
928
+ element = draw(BloomBadge, {
929
+ ...badgeProps(badge, plan(badge, ctx.env)),
930
+ key: reactKey
931
+ }, element);
932
+ }
933
+ // A confirmation dialog grows out of the view where the platform can: its host is around it.
934
+ const confirmation = ownValue(p, 'confirmationDialog')?.value;
935
+ if (confirmation !== undefined) element = draw(ConfirmationHost, {
936
+ key: reactKey,
937
+ presenting: element,
938
+ isPresented: confirmation.isPresented,
939
+ dialog: confirmation.content,
940
+ render: child => renderChild(child, inner, undefined)
941
+ });
942
+ const alert = ownValue(p, 'alert')?.value;
943
+ const dialog = ownValue(p, 'dialog')?.value;
944
+ const popover = ownValue(p, 'popover')?.value;
945
+ const cover = ownValue(p, 'fullScreenCover')?.value;
946
+ if (alert === undefined && dialog === undefined && popover === undefined && cover === undefined) return element;
947
+ // What the view presents: an anchored popover around it; an alert, a dialog
948
+ // or a full-screen cover beside it.
949
+ return presentAround(element, {
950
+ alert,
951
+ dialog,
952
+ popover,
953
+ cover
954
+ }, children => renderChildren(children, inner), reactKey);
955
+ }
956
+ function boxStyle(layer, flex, p) {
957
+ const style = layerStyle(layer);
958
+ return flex ? Object.assign(style, placeStyle(p.place)) : style;
959
+ }
960
+
961
+ /** A box's live variants: its layer's, and its place's when it is the outermost box. */
962
+ function boxVariants(layer, flex, p) {
963
+ return joinVariants(layerVariants(layer), flex ? placeVariants(p.place) : undefined);
964
+ }
965
+
966
+ /**
967
+ * A material (a glass, an island, a concentric box) is a Bloom component, which
968
+ * takes its style as an object, so nothing varies it on the web. Its padding
969
+ * can vary all the same: a padding is the same room on a view just inside the
970
+ * material, so a varied one moves there with its variants (`outer` is the
971
+ * material without it). What else varies on a material is left out, said once
972
+ * in development.
973
+ */
974
+ function materialPadding(layer) {
975
+ if (layer.glass === undefined && !layer.blur && !layer.concentric) return undefined;
976
+ const live = layer.variants.filter(([condition]) => condition !== null);
977
+ if (live.length === 0) return undefined;
978
+ const takes = modifier => modifier.kind === 'padding' || GLASS_VARIES.has(modifier.kind);
979
+ if (live.some(([, modifier]) => !takes(modifier))) warnOnce('material-variant', '[Bloom language] a material (a glass, an island, a concentric box) varies its padding, frame, border, corner and fill: its other variants are left out (a material is never faded).');
980
+ if (!live.some(([, modifier]) => modifier.kind === 'padding')) return undefined;
981
+ const isPadding = modifier => modifier.kind === 'padding';
982
+ const inner = {
983
+ modifiers: layer.modifiers.filter(isPadding),
984
+ variants: layer.variants.filter(([, modifier]) => isPadding(modifier)),
985
+ key: `${layer.key}|inside`,
986
+ rank: LAYER_RANK.padding,
987
+ edges: layer.edges,
988
+ glass: undefined,
989
+ concentric: false,
990
+ curve: undefined,
991
+ blur: false,
992
+ overlays: [],
993
+ corners: 0,
994
+ follows: []
995
+ };
996
+ const outer = {
997
+ ...layer,
998
+ modifiers: layer.modifiers.filter(modifier => !isPadding(modifier)),
999
+ variants: layer.variants.filter(([, modifier]) => !isPadding(modifier)),
1000
+ key: `${layer.key}|around`,
1001
+ edges: 0
1002
+ };
1003
+ return {
1004
+ outer,
1005
+ inner
1006
+ };
1007
+ }
1008
+
1009
+ /** What a material varies besides its padding (a view just inside it): its own frame, border, corner and fill. */
1010
+ const GLASS_VARIES = new Set(['frame', 'border', 'corner', 'background']);
1011
+
1012
+ /** What a glass's live variants change, each where the material takes it. */
1013
+
1014
+ const glassVariantsByKey = new Map();
1015
+
1016
+ /**
1017
+ * A glass's live variants (its padding is a view inside it, `materialPadding`).
1018
+ * A glass is the platform's material, which takes its corner and fill as props
1019
+ * and is never faded: a frame or a border varies its style, a corner its
1020
+ * radius (one radius: a corner of some sides, or concentric, is left out), a
1021
+ * fill its tint. Built once per layer.
1022
+ */
1023
+ function glassVariants(layer) {
1024
+ let varied = glassVariantsByKey.get(layer.key);
1025
+ if (varied !== undefined) return varied;
1026
+ const live = layer.variants.filter(entry => entry[0] !== null);
1027
+ const props = new Map();
1028
+ for (const [condition, modifier] of live) {
1029
+ if (modifier.kind === 'corner') {
1030
+ if (modifier.side !== 'all' || modifier.value === 'concentric' || layer.concentric) {
1031
+ warnOnce('glass-corner-variant', '[Bloom language] a material’s corner varies as one radius: a corner of some sides, or concentric (a concentric box’s own radius), is left out of when().');
1032
+ continue;
1033
+ }
1034
+ props.set(condition, {
1035
+ ...props.get(condition),
1036
+ radius: resolveCorner(modifier.value)
1037
+ });
1038
+ } else if (modifier.kind === 'background' && layer.glass !== undefined) {
1039
+ if (isAppColor(modifier.value)) {
1040
+ // A glass is tinted by a role, at rest and in a variant: the platforms' glasses take one.
1041
+ warnOnce('glass-app-color-variant', '[Bloom language] a glass’s tint is a colour role: an app colour is left out of when().');
1042
+ continue;
1043
+ }
1044
+ props.set(condition, {
1045
+ ...props.get(condition),
1046
+ fill: modifier.value
1047
+ });
1048
+ }
1049
+ }
1050
+ // A glass's fill is its tint (a prop); an island's and a concentric box's is their style's.
1051
+ const inStyle = modifier => modifier.kind === 'frame' || modifier.kind === 'border' || modifier.kind === 'background' && layer.glass === undefined;
1052
+ varied = {
1053
+ style: layerVariants({
1054
+ ...layer,
1055
+ variants: live.filter(([, modifier]) => inStyle(modifier))
1056
+ }),
1057
+ props: [...props].sort(([a], [b]) => compareLive(a, b)),
1058
+ stateful: live.some(([condition, modifier]) => GLASS_VARIES.has(modifier.kind) && termsOf(condition).some(term => STATES.has(term)))
1059
+ };
1060
+ glassVariantsByKey.set(layer.key, varied);
1061
+ return varied;
1062
+ }
1063
+
1064
+ /** A material's varied corner as its `radius` prop, under each condition that varies it. */
1065
+ function radiusVariants(varied) {
1066
+ return varied.props.flatMap(([condition, {
1067
+ radius
1068
+ }]) => radius === undefined ? [] : [[condition, {
1069
+ props: {
1070
+ radius
1071
+ }
1072
+ }]]);
1073
+ }
1074
+
1075
+ /** A padding of nothing: what opens the view of its own a Bloom component's hit testing takes on the web. */
1076
+ const EMPTY_PADDING = Object.freeze({
1077
+ kind: 'padding',
1078
+ key: 'p:all:none',
1079
+ edge: 'all',
1080
+ value: 'none'
1081
+ });
1082
+
1083
+ /**
1084
+ * What an overlay layer's view holds: its view backgrounds, the content as
1085
+ * drawn so far, then its overlays, each a box over the whole of it (SwiftUI's
1086
+ * `background(alignment:)` and `overlay(alignment:)`). Each box lets touches
1087
+ * through to what is under it, outside its own content.
1088
+ */
1089
+ function withOverlays(layer, child, ctx) {
1090
+ if (layer.overlays.length === 0) return child;
1091
+ const box = overlay => drawHost(View, cachedStyle('host', `OV|${overlay.alignment}`, () => overlayStyle(overlay.alignment)), {
1092
+ pointerEvents: 'box-none'
1093
+ }, renderNode(overlay.content, ctx, undefined));
1094
+ return [...layer.overlays.filter(overlay => overlay.behind).map(box), child, ...layer.overlays.filter(overlay => !overlay.behind).map(box)];
1095
+ }
1096
+ function wrapLayer(layer, flex, p, content, behaviour, key, box) {
1097
+ const styleKey = `L|${layer.key}|${flex}`;
1098
+ const glass = layer.glass;
1099
+ const children = Array.isArray(content) ? content : [content];
1100
+ if (glass !== undefined) {
1101
+ // The glass's corner is its radius (it clips itself), not a style of its host.
1102
+ const {
1103
+ corner,
1104
+ resolved
1105
+ } = materialRadius(boxStyle(layer, flex, p));
1106
+ const radius = typeof corner === 'number' ? corner : undefined;
1107
+ const surfaceRadius = layer.concentric ? 'concentric' : radius;
1108
+ const varied = glassVariants(layer);
1109
+ const outer = behaviour && !p.pressable ? behaviour : null;
1110
+ const ownKey = behaviour && p.pressable ? undefined : key;
1111
+ // A variant of the material that answers the view's state reads it from the
1112
+ // box around the glass, which then tracks it in JS (on the web too).
1113
+ const around = varied.stateful ? AROUND : NO_OUT;
1114
+ const PlatformGlass = getPlatformGlass();
1115
+ if (PlatformGlass !== null) {
1116
+ // The platform draws the glass (the lens, Liquid Glass, the system blur).
1117
+ const out = cachedStyle('host', `${styleKey}|${p.control ? 'c' : ''}`, () => p.control ? Object.assign({
1118
+ alignSelf: 'flex-start'
1119
+ }, resolved) : resolved, () => varied.style);
1120
+ const props = {
1121
+ ...outer,
1122
+ glass,
1123
+ radius,
1124
+ fallbackTint: p.control?.tint,
1125
+ interactive: glass.interactiveSaid ?? (p.pressable || p.control !== undefined),
1126
+ member: p.glassMember,
1127
+ key: ownKey
1128
+ };
1129
+ // A fill that varies is the glass's tint, the token as the platform's glass takes it.
1130
+ const paint = variedPaint(`G|${styleKey}|${p.control ? 'c' : ''}|P`, out, NO_ROLES, () => varied.props.map(([condition, {
1131
+ radius,
1132
+ fill
1133
+ }]) => [condition, {
1134
+ props: {
1135
+ ...(radius === undefined ? null : {
1136
+ radius
1137
+ }),
1138
+ ...(fill === undefined ? null : {
1139
+ fill: role(fill)
1140
+ })
1141
+ }
1142
+ }]));
1143
+ const drawn = drawHost(PlatformGlass, paint ? painted(out, paint) : out, props, ...children);
1144
+ if (p.control?.reports.length) return draw(ReportedState, {
1145
+ key
1146
+ }, drawn);
1147
+ return behaviour && p.pressable ? drawOutermost(box, hostFor(p), around, {
1148
+ ...behaviour,
1149
+ key
1150
+ }, drawn) : drawn;
1151
+ }
1152
+ const out = cachedStyle('component', styleKey, () => resolved, () => varied.style);
1153
+ const props = {
1154
+ radius: surfaceRadius,
1155
+ ...(layer.curve ? {
1156
+ cornerCurve: layer.curve
1157
+ } : null),
1158
+ ...(glass.sheen ? null : {
1159
+ sheen: false
1160
+ }),
1161
+ ...outer,
1162
+ key: ownKey
1163
+ };
1164
+ // Surface's fill is a colour painted from a role: the glass's own (or the
1165
+ // control's), and the one a variant names while it holds.
1166
+ const fill = glass.fillRole ?? p.control?.tint;
1167
+ const opacity = glass.fillRole === undefined ? undefined : glass.fillOpacity;
1168
+ const paint = variedPaint(`G|${styleKey}|${fill ?? ''}|${opacity ?? ''}`, out, fill === undefined ? NO_ROLES : [opacity === undefined ? ['fill', fill] : ['fill', fill, opacity]], () => varied.props.map(([condition, {
1169
+ radius,
1170
+ fill: varying
1171
+ }]) => [condition, {
1172
+ props: radius === undefined ? undefined : {
1173
+ radius
1174
+ },
1175
+ propRoles: varying === undefined ? undefined : [propRole('fill', varying)]
1176
+ }]));
1177
+ const surface = drawHost(Surface, paint ? painted(out, paint) : out, props, ...children);
1178
+ // A control's glass varies with the control's state, which it reports to a box around the glass.
1179
+ if (p.control?.reports.length) return draw(ReportedState, {
1180
+ key
1181
+ }, surface);
1182
+ return behaviour && p.pressable ? drawOutermost(box, hostFor(p), around, {
1183
+ ...behaviour,
1184
+ key
1185
+ }, surface) : surface;
1186
+ }
1187
+ if (layer.blur) {
1188
+ // Bloom's floating island: its material, its shadow and its clip; a capsule
1189
+ // unless the layer's corner names the radius.
1190
+ const {
1191
+ corner,
1192
+ resolved
1193
+ } = materialRadius(boxStyle(layer, flex, p));
1194
+ const varied = glassVariants(layer);
1195
+ const out = cachedStyle('material', styleKey, () => resolved, () => varied.style);
1196
+ const outer = behaviour && !p.pressable ? behaviour : null;
1197
+ const paint = variedPaint(`I|${styleKey}`, out, NO_ROLES, () => radiusVariants(varied));
1198
+ const island = drawHost(BlurIsland, paint ? painted(out, paint) : out, {
1199
+ ...(typeof corner === 'number' ? {
1200
+ radius: corner
1201
+ } : null),
1202
+ ...(layer.curve ? {
1203
+ cornerCurve: layer.curve
1204
+ } : null),
1205
+ ...outer,
1206
+ key: behaviour && p.pressable ? undefined : key
1207
+ }, ...children);
1208
+ return behaviour && p.pressable ? drawOutermost(box, hostFor(p), varied.stateful ? AROUND : NO_OUT, {
1209
+ ...behaviour,
1210
+ key
1211
+ }, island) : island;
1212
+ }
1213
+ if (layer.concentric) {
1214
+ // Bloom's concentric geometry: the radius of the shape it sits in, less the inset.
1215
+ const varied = glassVariants(layer);
1216
+ const out = cachedStyle('component', styleKey, () => boxStyle(layer, flex, p), () => varied.style);
1217
+ const outer = behaviour && !p.pressable ? behaviour : null;
1218
+ const view = drawHost(ConcentricView, out, {
1219
+ ...outer,
1220
+ radius: 'concentric',
1221
+ key: behaviour && p.pressable ? undefined : key
1222
+ }, ...children);
1223
+ return behaviour && p.pressable ? drawOutermost(box, hostFor(p), varied.stateful ? AROUND : NO_OUT, {
1224
+ ...behaviour,
1225
+ key
1226
+ }, view) : view;
1227
+ }
1228
+ const out = cachedStyle('host', styleKey, () => boxStyle(layer, flex, p), () => boxVariants(layer, flex, p));
1229
+ return drawOutermost(box, behaviour ? hostFor(p) : View, out, {
1230
+ ...behaviour,
1231
+ key
1232
+ }, ...children);
1233
+ }
1234
+
1235
+ /** A web list's row: a list item around the child, which draws the list's marker before it. */
1236
+ function listItem(child) {
1237
+ if (child === null || child === undefined || typeof child === 'boolean') return child;
1238
+ const {
1239
+ key
1240
+ } = child;
1241
+ return drawHost(View, cachedStyle('host', 'LI', () => ({
1242
+ display: 'list-item'
1243
+ })), {
1244
+ role: 'listitem',
1245
+ key: key ?? undefined
1246
+ }, child);
1247
+ }
1248
+
1249
+ /**
1250
+ * A button group's glass is Bloom's lens group: the platform's lens where the
1251
+ * device has one, its shared Surface elsewhere. The group's material has no
1252
+ * tint and no clear variant, so those are left out, said once in development.
1253
+ */
1254
+ function groupMaterial(glass) {
1255
+ if (glass === undefined) return undefined;
1256
+ if (glass.key !== regular.key) warnOnce('group-glass', '[Bloom language] a ButtonGroup’s glass is its lens material: .glass() alone; a clear or tinted glass is drawn as .glass().');
1257
+ return 'lens';
1258
+ }
1259
+
1260
+ /**
1261
+ * A material's radius: a glass and an island clip themselves to one radius,
1262
+ * so the layer's corner is that radius, not a style of their host. A corner of
1263
+ * some sides only has no such radius: it is left out, said once in development.
1264
+ */
1265
+ function materialRadius(style) {
1266
+ const {
1267
+ borderRadius: corner,
1268
+ overflow: _clip,
1269
+ ...resolved
1270
+ } = style;
1271
+ for (const key of SIDE_RADII) {
1272
+ if (!(key in resolved)) continue;
1273
+ delete resolved[key];
1274
+ warnOnce('side-radius', '[Bloom language] a glass or an island takes one radius: a corner of some sides only (.corner(r, side)) is left out on it.');
1275
+ }
1276
+ return {
1277
+ corner,
1278
+ resolved
1279
+ };
1280
+ }
1281
+ const warned = new Set();
1282
+ function warnOnce(id, message) {
1283
+ if (process.env.NODE_ENV === 'production' || warned.has(id)) return;
1284
+ warned.add(id);
1285
+ console.warn(message);
1286
+ }
1287
+
1288
+ /** A shape's side with no `size()`: 40, Bloom's avatar default. */
1289
+ const SHAPE_SIDE = '4xl';
1290
+
1291
+ /** A shape's paint: what the last of `fill`, `stroke` and `image` in its chain says (a fill in the foreground by default). */
1292
+ function shapeElement(node, name, size, key) {
1293
+ let last;
1294
+ for (const modifier of node.modifiers) {
1295
+ if (modifier.kind === 'fill' || modifier.kind === 'stroke' || modifier.kind === 'image') last = modifier;
1296
+ }
1297
+ if (last?.kind === 'image') return draw(ShapeImage, {
1298
+ key,
1299
+ shape: name,
1300
+ size,
1301
+ source: last.source,
1302
+ alt: last.alt
1303
+ });
1304
+ if (last?.kind === 'stroke') {
1305
+ return draw(Painted, {
1306
+ key,
1307
+ host: ShapeBorder,
1308
+ shape: name,
1309
+ size,
1310
+ width: resolveBorderWidth(last.width),
1311
+ paint: tokenPaint('colors', last.value)
1312
+ });
1313
+ }
1314
+ return draw(Painted, {
1315
+ key,
1316
+ host: ShapeFill,
1317
+ shape: name,
1318
+ size,
1319
+ paint: tokenPaint('color', last?.value ?? 'foreground')
1320
+ });
1321
+ }
1322
+ const tokenPaints = new Map();
1323
+
1324
+ /** One prop painted from a colour token (a role at an opacity included), on a host with no style. */
1325
+ function tokenPaint(prop, token) {
1326
+ const id = `${prop}|${token}`;
1327
+ let paint = tokenPaints.get(id);
1328
+ if (paint === undefined) {
1329
+ const ref = role(token);
1330
+ paint = {
1331
+ style: undefined,
1332
+ styleRoles: [],
1333
+ propRoles: [ref.opacity === undefined ? [prop, ref.role] : [prop, ref.role, ref.opacity]]
1334
+ };
1335
+ tokenPaints.set(id, paint);
1336
+ }
1337
+ return paint;
1338
+ }
1339
+
1340
+ /**
1341
+ * Bloom's Button with its `colors` pair as two props, so a `Painted` leaf can
1342
+ * paint each from its role. One pair object per colour pair, so the button's
1343
+ * props compare equal across renders.
1344
+ */
1345
+ const pairs = new Map();
1346
+ function PairedButton({
1347
+ background,
1348
+ foreground,
1349
+ ...props
1350
+ }) {
1351
+ const id = `${background}|${foreground}`;
1352
+ let colors = pairs.get(id);
1353
+ if (colors === undefined) {
1354
+ colors = Object.freeze({
1355
+ background,
1356
+ foreground
1357
+ });
1358
+ pairs.set(id, colors);
1359
+ }
1360
+ return draw(BloomButton, {
1361
+ ...props,
1362
+ colors
1363
+ });
1364
+ }
1365
+
1366
+ /** A paired button's paint: its style, and its fill and label from their roles. */
1367
+ function pairPaint(styleKey, out, [background, foreground]) {
1368
+ return variedPaint(`${styleKey}|pair|${background}|${foreground}`, out, [propRole('background', background), propRole('foreground', foreground)], NO_VARIANTS);
1369
+ }
1370
+ const NO_STYLE_OUT = Object.freeze({
1371
+ style: undefined,
1372
+ paint: undefined
1373
+ });
1374
+
1375
+ /** A component's style out drawn with `paint` (its style and the props painted from roles). */
1376
+ function painted(out, paint) {
1377
+ return {
1378
+ style: undefined,
1379
+ paint,
1380
+ ...(out.object ? {
1381
+ object: true
1382
+ } : null)
1383
+ };
1384
+ }
1385
+
1386
+ /** One prop painted from a colour token (a role at an opacity included). */
1387
+ function propRole(prop, token) {
1388
+ const {
1389
+ role: name,
1390
+ opacity
1391
+ } = role(token);
1392
+ return opacity === undefined ? [prop, name] : [prop, name, opacity];
1393
+ }
1394
+
1395
+ /** One colour of a painted list: a role (at an opacity), or an app's own colour. */
1396
+ function listColor(token) {
1397
+ const ref = ink(token);
1398
+ if (typeof ref === 'string') return ref;
1399
+ return ref.opacity === undefined ? [ref.role] : [ref.role, ref.opacity];
1400
+ }
1401
+ const NO_ROLES = Object.freeze([]);
1402
+
1403
+ /** What a variant changes of a component's props: values as they are, and props painted from roles. */
1404
+
1405
+ const variedPaints = new Map();
1406
+
1407
+ /**
1408
+ * A component's style (painted on native, and its live variants) plus props
1409
+ * painted from roles (a glass Surface's `fill`, an image's `tintColor`), and
1410
+ * what live variants change of its props, each under its condition beside the
1411
+ * style's (a glass's radius and fill). `undefined` when it adds nothing to the
1412
+ * style. Built once per `id`.
1413
+ */
1414
+ function variedPaint(id, out, propRoles, variants, propLists) {
1415
+ let paint = variedPaints.get(id);
1416
+ if (paint === undefined) {
1417
+ const varied = variants();
1418
+ if (propRoles.length === 0 && varied.length === 0 && propLists === undefined) paint = null;else {
1419
+ const base = out.paint ?? {
1420
+ style: out.style,
1421
+ styleRoles: [],
1422
+ propRoles: []
1423
+ };
1424
+ const byCondition = new Map();
1425
+ for (const variant of base.variants ?? []) byCondition.set(variant.condition, variant);
1426
+ for (const [condition, extra] of varied) {
1427
+ const current = byCondition.get(condition) ?? {
1428
+ condition,
1429
+ style: {},
1430
+ styleRoles: []
1431
+ };
1432
+ byCondition.set(condition, {
1433
+ ...current,
1434
+ props: {
1435
+ ...current.props,
1436
+ ...extra.props
1437
+ },
1438
+ propRoles: [...(current.propRoles ?? []), ...(extra.propRoles ?? [])]
1439
+ });
1440
+ }
1441
+ const list = [...byCondition.values()].sort((a, b) => compareLive(a.condition, b.condition));
1442
+ paint = {
1443
+ style: base.style,
1444
+ styleRoles: base.styleRoles,
1445
+ propRoles,
1446
+ ...(list.length > 0 ? {
1447
+ variants: list
1448
+ } : null),
1449
+ ...(propLists === undefined ? null : {
1450
+ propLists
1451
+ })
1452
+ };
1453
+ }
1454
+ variedPaints.set(id, paint);
1455
+ }
1456
+ return paint ?? undefined;
1457
+ }
1458
+ const NO_VARIANTS = () => [];
1459
+
1460
+ /** A component's style plus one prop painted from a role. */
1461
+ function propPaint(styleKey, out, prop, role, opacity) {
1462
+ return variedPaint(`${styleKey}|${prop}|${role}|${opacity ?? ''}`, out, [opacity === undefined ? [prop, role] : [prop, role, opacity]], NO_VARIANTS);
1463
+ }
1464
+
1465
+ /** The outermost box's host: pressable when the view takes presses or hovers. */
1466
+ function hostFor(p) {
1467
+ return p.pressable ? Pressable : View;
1468
+ }
1469
+ function hostProps(behaviour, key) {
1470
+ const props = behaviour ? {
1471
+ ...behaviour
1472
+ } : {};
1473
+ if (key !== undefined) props.key = key;
1474
+ return props;
1475
+ }
1476
+ const iconPaints = new Map();
1477
+
1478
+ /** An icon's fill, painted from its foreground role (at its opacity, if it names one). */
1479
+ function iconPaint(color) {
1480
+ let paint = iconPaints.get(color);
1481
+ if (paint === undefined) {
1482
+ const {
1483
+ role: name,
1484
+ opacity
1485
+ } = role(color);
1486
+ const fill = opacity === undefined ? ['fill', name] : ['fill', name, opacity];
1487
+ paint = {
1488
+ style: undefined,
1489
+ styleRoles: [],
1490
+ propRoles: [fill]
1491
+ };
1492
+ iconPaints.set(color, paint);
1493
+ }
1494
+ return paint;
1495
+ }
1496
+ const iconVariantPaints = new Map();
1497
+
1498
+ /**
1499
+ * An icon's glyph, filled with the foreground it is drawn in. A foreground a
1500
+ * live variant changes is answered where every other variant is: on the web by
1501
+ * CSS (the glyph paints `currentColor`, and its colour is a class under each
1502
+ * condition), on native by a `Conditioned` leaf that fills it from the
1503
+ * environment.
1504
+ */
1505
+ function iconGlyph(icon, env, size, key) {
1506
+ const color = foregroundOf(env.text);
1507
+ // In the order they apply, as every other host's variants are.
1508
+ const live = (env.text.variants ?? []).flatMap(([condition, changed]) => changed.foreground === undefined ? [] : [[condition, changed.foreground]]).sort(([a], [b]) => compareLive(a, b));
1509
+ // An app's own colour is the glyph's fill as it is, on every platform.
1510
+ const own = isAppColor(color) ? color.value : undefined;
1511
+ if (live.length === 0) return own !== undefined ? draw(icon, {
1512
+ fill: own,
1513
+ width: size,
1514
+ height: size,
1515
+ key
1516
+ }) : draw(Painted, {
1517
+ host: icon,
1518
+ paint: iconPaint(color),
1519
+ width: size,
1520
+ height: size,
1521
+ key
1522
+ });
1523
+ if (IS_WEB) {
1524
+ const out = cachedStyle('host', `IC|${env.key}`, () => ({
1525
+ color: ink(color)
1526
+ }), () => joinVariants(live.map(([condition, varied]) => [condition, {
1527
+ color: ink(varied)
1528
+ }])));
1529
+ return drawHost(icon, out, {
1530
+ fill: 'currentColor',
1531
+ width: size,
1532
+ height: size,
1533
+ key
1534
+ });
1535
+ }
1536
+ let paint = iconVariantPaints.get(env.key);
1537
+ if (paint === undefined) {
1538
+ // A variant's ink is a role the leaf paints, or an app's own colour as it is.
1539
+ const fill = varied => {
1540
+ if (isAppColor(varied)) return {
1541
+ props: {
1542
+ fill: varied.value
1543
+ }
1544
+ };
1545
+ const {
1546
+ role: name,
1547
+ opacity
1548
+ } = role(varied);
1549
+ return {
1550
+ propRoles: [opacity === undefined ? ['fill', name] : ['fill', name, opacity]]
1551
+ };
1552
+ };
1553
+ paint = {
1554
+ ...(own === undefined ? iconPaint(color) : {
1555
+ style: undefined,
1556
+ styleRoles: [],
1557
+ propRoles: []
1558
+ }),
1559
+ variants: live.map(([condition, varied]) => ({
1560
+ condition,
1561
+ style: {},
1562
+ styleRoles: [],
1563
+ ...fill(varied)
1564
+ }))
1565
+ };
1566
+ iconVariantPaints.set(env.key, paint);
1567
+ }
1568
+ // An app colour at rest is the glyph's own fill; a variant that holds paints over it.
1569
+ if (own !== undefined) return draw(Conditioned, {
1570
+ host: icon,
1571
+ paint,
1572
+ fill: own,
1573
+ width: size,
1574
+ height: size,
1575
+ key
1576
+ });
1577
+ return draw(Conditioned, {
1578
+ host: icon,
1579
+ paint,
1580
+ width: size,
1581
+ height: size,
1582
+ key
1583
+ });
1584
+ }
1585
+
1586
+ /** A stack's style: its layout, then its box (the innermost layer and its flex), with their variants. */
1587
+ function stackOut(p, axis, layer, flex, marker) {
1588
+ const layout = {
1589
+ spacing: ownValue(p, 'spacing')?.value,
1590
+ childSpacing: ownValue(p, 'childSpacing')?.value,
1591
+ align: ownValue(p, 'align')?.value,
1592
+ justify: ownValue(p, 'justify')?.value,
1593
+ wrap: ownValue(p, 'wrap')?.value,
1594
+ axis: ownValue(p, 'axis')?.value
1595
+ };
1596
+ const styleKey = `S|${axis}|${layout.spacing === undefined ? '' : tokenKey(layout.spacing)}|${ownValue(p, 'childSpacing')?.key ?? ''}|${layout.align ?? ''}|${layout.justify ?? ''}|${layout.wrap ?? ''}|${layout.axis ?? ''}|${marker ?? ''}|${hostVariantKey(p)}|${layer?.key ?? ''}|${flex}`;
1597
+ return cachedStyle('host', styleKey, () => {
1598
+ // A layout variant that holds is the layout's own value.
1599
+ for (const [condition, modifier] of p.hostVariants) {
1600
+ if (condition === null) for (const [key, value] of Object.entries(layoutOf([modifier]))) if (value !== undefined) layout[key] = value;
1601
+ }
1602
+ const style = Object.assign(stackStyle(axis, layout), boxStyle(layer, flex, p));
1603
+ if (marker !== undefined) style.listStyleType = marker;
1604
+ return style;
1605
+ }, () => joinVariants(hostVariants(p), boxVariants(layer, flex, p)));
1606
+ }
1607
+
1608
+ /**
1609
+ * A scroll view whose content is laid out in a view of its own
1610
+ * (`.contentView()`): Bloom's view inside the content container, styled as a
1611
+ * vertical stack of the content view's modifiers is (`stackOut`), which the
1612
+ * scroll view hands Bloom as that view's style.
1613
+ */
1614
+ function drawScrollContent(modifiers, props, children, ctx) {
1615
+ const content = plan(new Node('stack', CONTENT_VIEW, children, modifiers), ctx.env);
1616
+ if (content.layers.length > 1) throw new Error('bloom-language: a scroll view’s content view is one view; give its modifiers in layer order (padding before frame)');
1617
+ const out = stackOut(content, 'vertical', content.layers[0], flexKey(content), undefined);
1618
+ return drawHost(ScrollViewHost, out, {
1619
+ ...props,
1620
+ contentView: true
1621
+ }, ...renderChildren(children, ctx));
1622
+ }
1623
+ const CONTENT_VIEW = {
1624
+ axis: 'vertical'
1625
+ };
1626
+
1627
+ /** The language's scrolls, each Bloom's own: the screen's, a scroll of its own, and one on a surface. */
1628
+ /** The lists whose content makes room for views pinned at their edges. */
1629
+ const INSET_LISTS = new Set(['list', 'virtualList']);
1630
+ const SCROLL_HOSTS = {
1631
+ scrollView: ScrollViewHost,
1632
+ scrollArea: ScrollAreaHost,
1633
+ scrollSurface: ScrollSurfaceHost
1634
+ };
1635
+ /** The states a control's glass varies with (`hovered`, `focused`, `pressed`), in no order. */
1636
+ function glassStates(layers) {
1637
+ const states = new Set();
1638
+ for (const layer of layers) {
1639
+ if (layer.glass === undefined) continue;
1640
+ for (const [condition, modifier] of layer.variants) {
1641
+ if (condition === null || !GLASS_VARIES.has(modifier.kind)) continue;
1642
+ for (const term of termsOf(condition)) if (STATES.has(term)) states.add(term);
1643
+ }
1644
+ }
1645
+ return [...states];
1646
+ }
1647
+
1648
+ /** A Button and a FAB on a glass that varies with their state: each reports it to the box around the glass. */
1649
+ function ReportingButton(props) {
1650
+ return draw(Reporting, {
1651
+ host: BloomButton,
1652
+ ...props
1653
+ });
1654
+ }
1655
+ function ReportingFab(props) {
1656
+ return draw(Reporting, {
1657
+ host: BloomFab,
1658
+ ...props
1659
+ });
1660
+ }
1661
+ function renderHost(node, p, ctx, layer, flex, behaviour, key, /** Placed in an `HStack` (the context the node is in, not the one its children are). */
1662
+ inRow, /** The node's outermost box when it moves and its host is it (see `Outermost`). */
1663
+ box) {
1664
+ const layerKey = layer?.key ?? '';
1665
+ const boxOf = (target, prefix) => cachedStyle(target, `${prefix}|${layerKey}|${flex}`, () => boxStyle(layer, flex, p), () => boxVariants(layer, flex, p));
1666
+ // A box whose variants answer its state is drawn by a `StateHost` (drawHost).
1667
+ const boxed = layer !== undefined || flex !== '' || p.states.length > 0;
1668
+ switch (node.kind) {
1669
+ case 'stack':
1670
+ {
1671
+ const {
1672
+ axis
1673
+ } = node.props;
1674
+ // Web: an HTML list, each child a row behind the marker. Native has no markers.
1675
+ const marker = IS_WEB ? ownValue(p, 'listMarker')?.value : undefined;
1676
+ const out = stackOut(p, axis, layer, flex, marker);
1677
+ const row = axis === 'horizontal' ? {
1678
+ ...ctx,
1679
+ inRow: true
1680
+ } : ctx;
1681
+ let children = renderChildren(node.children, row);
1682
+ if (marker !== undefined) children = children.map(child => Array.isArray(child) ? child.map(listItem) : listItem(child));
1683
+ const wash = ownValue(p, 'hoverHighlight');
1684
+ if (wash !== undefined) {
1685
+ // A coordinated highlight (`active` given) shows on every platform; the pointer's only on the web.
1686
+ children.unshift(draw(SubtleHover, wash.value === undefined ? {} : {
1687
+ active: wash.value,
1688
+ native: true
1689
+ }));
1690
+ }
1691
+ const host = behaviour ? hostFor(p) : View;
1692
+ const props = hostProps(behaviour, key);
1693
+ if (marker !== undefined) props.role = 'list';
1694
+ return drawOutermost(box, host, out, props, ...children);
1695
+ }
1696
+ case 'zstack':
1697
+ {
1698
+ const out = cachedStyle('host', `Z|${layerKey}|${flex}`, () => Object.assign({
1699
+ position: 'relative'
1700
+ }, boxStyle(layer, flex, p)), () => boxVariants(layer, flex, p));
1701
+ const children = [draw(DepthStack, {
1702
+ alignment: ownValue(p, 'alignment')?.value ?? 'center',
1703
+ children: renderChildren(node.children, ctx)
1704
+ })];
1705
+ const wash = ownValue(p, 'hoverHighlight');
1706
+ if (wash !== undefined) {
1707
+ children.unshift(draw(SubtleHover, wash.value === undefined ? {} : {
1708
+ active: wash.value,
1709
+ native: true
1710
+ }));
1711
+ }
1712
+ return drawOutermost(box, behaviour ? hostFor(p) : View, out, hostProps(behaviour, key), ...children);
1713
+ }
1714
+ case 'spacer':
1715
+ {
1716
+ const out = cachedStyle('host', `SP|${layerKey}|${flex}`, () => Object.assign({
1717
+ flex: 1
1718
+ }, boxStyle(layer, flex, p)), () => boxVariants(layer, flex, p));
1719
+ return drawOutermost(box, behaviour ? hostFor(p) : View, out, hostProps(behaviour, key));
1720
+ }
1721
+ case 'text':
1722
+ return drawText(node, p, ctx, layerKey, flex, () => boxStyle(layer, flex, p), () => boxVariants(layer, flex, p), behaviour, key, box);
1723
+ case 'icon':
1724
+ {
1725
+ const size = resolveIconSize(ownValue(p, 'size')?.value ?? 'md');
1726
+ const bare = !boxed && !behaviour;
1727
+ const glyph = iconGlyph(node.props.icon, ctx.env, size, bare ? key : undefined);
1728
+ if (bare) return glyph;
1729
+ const host = behaviour ? hostFor(p) : View;
1730
+ return drawOutermost(box, host, boxOf('host', 'I'), hostProps(behaviour, key), glyph);
1731
+ }
1732
+ case 'avatar':
1733
+ {
1734
+ const {
1735
+ source,
1736
+ options
1737
+ } = node.props;
1738
+ const size = ownValue(p, 'size')?.value;
1739
+ const presence = ownValue(p, 'presence')?.value;
1740
+ const props = hostProps(behaviour, key);
1741
+ delete props.focusable;
1742
+ // An avatar's name is its `alt`, as Bloom's Avatar takes it.
1743
+ if (props.accessibilityLabel !== undefined) {
1744
+ props.alt = props.accessibilityLabel;
1745
+ delete props.accessibilityLabel;
1746
+ }
1747
+ Object.assign(props, {
1748
+ source,
1749
+ variant: options.variant,
1750
+ account: options.account,
1751
+ name: options.name,
1752
+ initials: options.initials,
1753
+ fallbackSource: options.fallbackSource,
1754
+ character: options.character,
1755
+ size: size === undefined ? undefined : resolveAvatarSize(size),
1756
+ color: ownValue(p, 'tint')?.value,
1757
+ shape: ownValue(p, 'shape')?.value,
1758
+ verified: ownValue(p, 'verified')?.value,
1759
+ live: ownValue(p, 'live')?.value,
1760
+ hideLiveBadge: ownValue(p, 'liveBadge')?.value === false ? true : undefined,
1761
+ status: presence
1762
+ });
1763
+ const host = presence === undefined ? BloomAvatar : AvatarPresence;
1764
+ if (!boxed) return draw(host, props);
1765
+ return drawHost(host, boxOf('component', 'A'), props);
1766
+ }
1767
+ case 'avatarGroup':
1768
+ {
1769
+ const size = ownValue(p, 'size')?.value;
1770
+ const spacing = ownValue(p, 'spacing')?.value;
1771
+ return pressAround(p, behaviour, key, props => {
1772
+ Object.assign(props, {
1773
+ items: node.props.items,
1774
+ layout: ownValue(p, 'layout')?.value,
1775
+ size: size === undefined ? undefined : resolveAvatarSize(size),
1776
+ shape: ownValue(p, 'shape')?.value,
1777
+ max: ownValue(p, 'max')?.value,
1778
+ total: ownValue(p, 'total')?.value,
1779
+ spacing: spacing === undefined ? undefined : resolveSpace(spacing),
1780
+ overflow: ownValue(p, 'overflow')?.value,
1781
+ showInitials: ownValue(p, 'initials') === undefined ? undefined : true,
1782
+ onPressItem: ownValue(p, 'onPressItem')?.value,
1783
+ hoverCard: ownValue(p, 'hoverCard')?.value
1784
+ });
1785
+ if (!boxed) return draw(BloomAvatarGroup, props);
1786
+ return drawHost(BloomAvatarGroup, boxOf('component', 'AG'), props);
1787
+ });
1788
+ }
1789
+ case 'badge':
1790
+ return pressAround(p, behaviour, key, own => {
1791
+ const props = {
1792
+ ...own,
1793
+ ...badgeProps(node, p)
1794
+ };
1795
+ if (!boxed) return draw(BloomBadge, props);
1796
+ return drawHost(BloomBadge, boxOf('component', 'BD'), props);
1797
+ });
1798
+ case 'iconCircle':
1799
+ return pressAround(p, behaviour, key, props => {
1800
+ props.icon = node.props.icon;
1801
+ props.size = ownValue(p, 'size')?.value;
1802
+ if (!boxed) return draw(BloomIconCircle, props);
1803
+ return drawHost(BloomIconCircle, boxOf('component', 'IC'), props);
1804
+ });
1805
+ case 'loading':
1806
+ {
1807
+ const {
1808
+ label
1809
+ } = buttonContent(node.children);
1810
+ return pressAround(p, behaviour, key, props => {
1811
+ Object.assign(props, {
1812
+ variant: ownValue(p, 'style')?.value,
1813
+ size: ownValue(p, 'size')?.value,
1814
+ tone: ownValue(p, 'tint')?.value,
1815
+ text: label
1816
+ });
1817
+ if (!boxed) return draw(BloomLoading, props);
1818
+ return drawHost(BloomLoading, boxOf('component', 'LD'), props);
1819
+ });
1820
+ }
1821
+ case 'skeleton':
1822
+ // Drawn in drawNode: a skeleton takes its frame and corner as its size.
1823
+ return null;
1824
+ case 'skeletonGroup':
1825
+ return drawContainer(BloomSkeleton.Region, {
1826
+ label: p.label
1827
+ }, node, p, ctx, boxOf('component', 'SR'), behaviour === undefined ? undefined : withoutLabel(behaviour), key);
1828
+ case 'image':
1829
+ {
1830
+ // BloomImage takes the box itself, so the frame sizes the image and the
1831
+ // corner clips it. It cannot take presses: a pressable image (or a hover
1832
+ // group) is drawn inside its pressable host, which takes the flex placement.
1833
+ const interactive = p.pressable || p.hoverGroup;
1834
+ const imageFlex = interactive ? '' : flex;
1835
+ const aspectRatio = ownValue(p, 'aspectRatio')?.value;
1836
+ const styleKey = `IM|${aspectRatio ?? ''}|${layerKey}|${imageFlex}`;
1837
+ const out = cachedStyle('component', styleKey, () => {
1838
+ const style = boxStyle(layer, imageFlex, p);
1839
+ if (aspectRatio !== undefined) style.aspectRatio = aspectRatio;
1840
+ return style;
1841
+ }, () => boxVariants(layer, imageFlex, p));
1842
+ const {
1843
+ source,
1844
+ alt
1845
+ } = node.props;
1846
+ const crossFade = ownValue(p, 'crossFade')?.value;
1847
+ const props = interactive ? {} : hostProps(behaviour, key);
1848
+ Object.assign(props, {
1849
+ source,
1850
+ alt,
1851
+ contentFit: ownValue(p, 'contentFit')?.value,
1852
+ transition: crossFade === undefined ? undefined : DURATION[crossFade],
1853
+ onLoad: ownValue(p, 'onLoad')?.value,
1854
+ onError: ownValue(p, 'onError')?.value
1855
+ });
1856
+ const tint = ownValue(p, 'tint')?.value;
1857
+ const image = drawHost(BloomImage, tint === undefined ? out : painted(out, propPaint(styleKey, out, 'tintColor', tint)), props);
1858
+ if (!interactive) return image;
1859
+ const placement = cachedStyle('host', `IMP|${flex}`, () => boxStyle(undefined, flex, p));
1860
+ return drawOutermost(box, hostFor(p), placement, hostProps(behaviour, key), image);
1861
+ }
1862
+ case 'button':
1863
+ {
1864
+ const props = hostProps(behaviour, key);
1865
+ delete props.focusable;
1866
+ const {
1867
+ icon,
1868
+ glyph,
1869
+ label,
1870
+ trailing
1871
+ } = buttonContent(node.children);
1872
+ const shape = ownValue(p, 'shape')?.value;
1873
+ const iconOnly = icon !== undefined && label === undefined && shape !== undefined && shape !== 'fit';
1874
+ // A glyph in an ink of its own (`Icon(X).foreground(role)`) is drawn as
1875
+ // it is; otherwise the button tints its icon with its tone.
1876
+ const inked = glyph?.modifiers.some(modifier => modifier.kind === 'foreground');
1877
+ Object.assign(props, {
1878
+ appearance: ownValue(p, 'style')?.value,
1879
+ tone: ownValue(p, 'tint')?.value,
1880
+ size: ownValue(p, 'size')?.value,
1881
+ leadingIcon: inked ? undefined : icon,
1882
+ icon: inked && glyph ? renderNode(glyph, ctx, undefined) : undefined,
1883
+ trailingIcon: trailing,
1884
+ // A circle is Bloom's square icon button; a pill, its wide one; fit
1885
+ // grows with its content, never narrower than it is tall.
1886
+ iconOnly: iconOnly ? true : undefined,
1887
+ wide: iconOnly && shape === 'pill' ? true : undefined,
1888
+ grow: shape === 'fit' ? true : undefined,
1889
+ linkTone: ownValue(p, 'linkTone')?.value,
1890
+ inverted: ownValue(p, 'inverted')?.value,
1891
+ density: ownValue(p, 'density')?.value,
1892
+ children: label,
1893
+ disabled: ownValue(p, 'disabled')?.value,
1894
+ loading: ownValue(p, 'loading')?.value,
1895
+ pressed: ownValue(p, 'pressed')?.value,
1896
+ href: ownValue(p, 'link')?.value,
1897
+ numberOfLines: ownValue(p, 'lines')?.value,
1898
+ underline: ownValue(p, 'underline') === undefined ? undefined : 'rest',
1899
+ material: p.control || ctx.env.island ? 'shared' : undefined
1900
+ });
1901
+ const colors = ownValue(p, 'colors')?.value;
1902
+ if (colors !== undefined) {
1903
+ // A paired fill and label, painted from their roles: Bloom's `colors`.
1904
+ const out = boxOf('component', 'B');
1905
+ return drawHost(PairedButton, painted(out, pairPaint(`B|${layerKey}|${flex}`, out, colors)), props);
1906
+ }
1907
+ const button = p.control?.reports.length ? ReportingButton : BloomButton;
1908
+ if (button === ReportingButton) props.reports = p.control?.reports;
1909
+ if (!boxed) return draw(button, props);
1910
+ return drawHost(button, boxOf('component', 'B'), props);
1911
+ }
1912
+ case 'shape':
1913
+ {
1914
+ // A silhouette at a fixed side takes no style: its box is a view around it.
1915
+ const {
1916
+ name
1917
+ } = node.props;
1918
+ const size = resolveSpace(ownValue(p, 'size')?.value ?? SHAPE_SIDE);
1919
+ const drawn = shapeElement(node, name, size, behaviour || boxed ? undefined : key);
1920
+ if (!boxed && !behaviour) return drawn;
1921
+ const host = behaviour ? hostFor(p) : View;
1922
+ return drawHost(host, boxOf('host', 'SH'), hostProps(behaviour, key), drawn);
1923
+ }
1924
+ case 'buttonGroup':
1925
+ {
1926
+ const children = renderChildren(node.children, ctx);
1927
+ return pressAround(p, behaviour, key, props => {
1928
+ if (props.accessibilityLabel === undefined) delete props.accessibilityLabel;
1929
+ Object.assign(props, {
1930
+ orientation: ownValue(p, 'axis')?.value,
1931
+ size: ownValue(p, 'size')?.value,
1932
+ dividers: ownValue(p, 'dividers')?.value,
1933
+ separated: ownValue(p, 'separated')?.value,
1934
+ material: groupMaterial(ownValue(p, 'glass')?.value)
1935
+ });
1936
+ if (!boxed) return draw(BloomButton.Group, props, ...children);
1937
+ return drawHost(BloomButton.Group, boxOf('component', 'BG'), props, ...children);
1938
+ });
1939
+ }
1940
+ case 'fab':
1941
+ {
1942
+ const props = hostProps(behaviour, key);
1943
+ delete props.focusable;
1944
+ const {
1945
+ icon,
1946
+ label
1947
+ } = buttonContent(node.children);
1948
+ Object.assign(props, {
1949
+ appearance: ownValue(p, 'style')?.value,
1950
+ tone: ownValue(p, 'tint')?.value,
1951
+ size: ownValue(p, 'size')?.value,
1952
+ icon,
1953
+ label,
1954
+ disabled: ownValue(p, 'disabled')?.value,
1955
+ collapsed: ownValue(p, 'collapsed')?.value,
1956
+ material: p.control || ctx.env.island ? 'shared' : undefined
1957
+ });
1958
+ const fab = p.control?.reports.length ? ReportingFab : BloomFab;
1959
+ if (fab === ReportingFab) props.reports = p.control?.reports;
1960
+ if (!boxed) return draw(fab, props);
1961
+ return drawHost(fab, boxOf('component', 'F'), props);
1962
+ }
1963
+ case 'menu':
1964
+ {
1965
+ const menu = draw(MenuHost, {
1966
+ key: boxed ? undefined : key,
1967
+ trigger: namedTrigger(node.props.trigger, p.label),
1968
+ rows: node.children,
1969
+ actions: ownValue(p, 'actions')?.value,
1970
+ label: p.label,
1971
+ testID: p.testID,
1972
+ render: child => renderChild(child, ctx, undefined)
1973
+ });
1974
+ if (!boxed) return menu;
1975
+ return drawHost(View, boxOf('host', 'M'), hostProps(undefined, key), menu);
1976
+ }
1977
+ case 'header':
1978
+ return draw(HeaderHost, {
1979
+ key,
1980
+ node,
1981
+ render: child => renderChild(child, ctx, undefined),
1982
+ press: value => pressOf(value, ctx.env)
1983
+ });
1984
+ case 'bottomBar':
1985
+ return draw(BottomBarHost, {
1986
+ key,
1987
+ node,
1988
+ render: child => renderChild(child, ctx, undefined),
1989
+ press: value => pressOf(value, ctx.env)
1990
+ });
1991
+ case 'scrollView':
1992
+ case 'scrollArea':
1993
+ case 'scrollSurface':
1994
+ {
1995
+ const props = {
1996
+ key: boxed ? undefined : key,
1997
+ node,
1998
+ render: child => renderChild(child, ctx, undefined),
1999
+ press: value => pressOf(value, ctx.env)
2000
+ };
2001
+ const content = node.kind === 'scrollView' ? ownValue(p, 'contentView') : undefined;
2002
+ // The content's children keep their places as a stack's do.
2003
+ const host = SCROLL_HOSTS[node.kind];
2004
+ const scroll = room => content === undefined ? draw(host, {
2005
+ ...props,
2006
+ room
2007
+ }, ...renderChildren(node.children, ctx)) : drawScrollContent(content.modifiers, {
2008
+ ...props,
2009
+ room
2010
+ }, node.children, ctx);
2011
+ // Views pinned at its edges: the content makes room for them (SwiftUI's safe area insets).
2012
+ const insets = insetsOf(node);
2013
+ const scroller = insets.length === 0 ? scroll() : draw(SafeAreaInsets, {
2014
+ key: boxed ? undefined : key,
2015
+ insets,
2016
+ render: props.render,
2017
+ scroller: scroll
2018
+ });
2019
+ // Box modifiers are a view around the scroller, as SwiftUI's.
2020
+ if (!boxed) return scroller;
2021
+ return drawHost(View, boxOf('host', 'SV'), hostProps(undefined, key), scroller);
2022
+ }
2023
+ // Rows and tabs are read by the menu or the bar that holds them; on their own they draw nothing.
2024
+ case 'menuItem':
2025
+ case 'menuSubmenu':
2026
+ case 'menuSection':
2027
+ case 'menuContent':
2028
+ case 'menuActions':
2029
+ case 'tab':
2030
+ // A bottom sheet is a `.sheet()`'s content, drawn by the sheet that presents it.
2031
+ case 'bottomSheet':
2032
+ // A sidebar's and a rail's rows are read by the column that holds them.
2033
+ case 'navItem':
2034
+ case 'sidebarMode':
2035
+ case 'treeSection':
2036
+ case 'treeFolder':
2037
+ case 'treeItem':
2038
+ case 'railItem':
2039
+ case 'commandItem':
2040
+ case 'commandGroup':
2041
+ case 'settingsGroup':
2042
+ case 'settingsItem':
2043
+ // An app layout's panels and destinations are read by the layout.
2044
+ case 'panel':
2045
+ case 'destination':
2046
+ return null;
2047
+ case 'command':
2048
+ return draw(CommandHost, {
2049
+ key,
2050
+ node,
2051
+ render: child => renderChild(child, ctx, undefined),
2052
+ press: value => pressOf(value, ctx.env)
2053
+ });
2054
+ case 'toolbarView':
2055
+ return draw(ToolbarHost, {
2056
+ key,
2057
+ node,
2058
+ render: child => renderChild(child, ctx, undefined),
2059
+ press: value => pressOf(value, ctx.env)
2060
+ }, ...renderChildren(node.children, ctx));
2061
+ case 'autoHideBar':
2062
+ return draw(AutoHideBarHost, {
2063
+ key,
2064
+ node,
2065
+ render: child => renderChild(child, ctx, undefined),
2066
+ press: value => pressOf(value, ctx.env)
2067
+ }, ...renderChildren(node.children, ctx));
2068
+ case 'resizeHandle':
2069
+ return draw(ResizeHandleHost, {
2070
+ key,
2071
+ node,
2072
+ render: child => renderChild(child, ctx, undefined),
2073
+ press: value => pressOf(value, ctx.env)
2074
+ });
2075
+ case 'stickySection':
2076
+ return draw(StickySectionHost, {
2077
+ key,
2078
+ node,
2079
+ render: child => renderChild(child, ctx, undefined),
2080
+ press: value => pressOf(value, ctx.env)
2081
+ }, ...renderChildren(node.children, ctx));
2082
+ case 'settings':
2083
+ return draw(SettingsHost, {
2084
+ key,
2085
+ node,
2086
+ render: child => renderChild(child, ctx, undefined),
2087
+ press: value => pressOf(value, ctx.env)
2088
+ });
2089
+ case 'sidebar':
2090
+ return draw(SidebarHost, {
2091
+ key,
2092
+ node,
2093
+ render: child => renderChild(child, ctx, undefined),
2094
+ press: value => pressOf(value, ctx.env)
2095
+ });
2096
+ case 'rail':
2097
+ return draw(RailHost, {
2098
+ key,
2099
+ node,
2100
+ render: child => renderChild(child, ctx, undefined),
2101
+ press: value => pressOf(value, ctx.env)
2102
+ });
2103
+ case 'pageFooter':
2104
+ return draw(PageFooterHost, {
2105
+ key,
2106
+ node,
2107
+ render: child => renderChild(child, ctx, undefined),
2108
+ press: value => pressOf(value, ctx.env)
2109
+ }, ...renderChildren(node.children, ctx));
2110
+ // Navigators are drawn by the router's layout(); placed in a view, they draw nothing.
2111
+ case 'appLayout':
2112
+ case 'navStack':
2113
+ case 'route':
2114
+ case 'tabView':
2115
+ return null;
2116
+ case 'divider':
2117
+ {
2118
+ const tint = ownValue(p, 'tint')?.value;
2119
+ const spacing = ownValue(p, 'spacing')?.value;
2120
+ const [label] = node.children;
2121
+ const content = dividerLabel(label, ctx);
2122
+ const out = boxOf('component', 'DV');
2123
+ return pressAround(p, behaviour, key, props => {
2124
+ Object.assign(props, {
2125
+ variant: ownValue(p, 'lineStyle')?.value,
2126
+ align: ownValue(p, 'align')?.value,
2127
+ vertical: inRow || undefined,
2128
+ spacing: spacing === undefined ? undefined : resolveSpace(spacing)
2129
+ });
2130
+ return drawHost(BloomDivider, tint === undefined ? out : painted(out, propPaint(`DV|${layerKey}|${flex}`, out, 'color', tint)), props, content);
2131
+ });
2132
+ }
2133
+ case 'fill':
2134
+ return drawContainer(BloomFill, {}, node, p, ctx, boxOf('component', 'FL'), behaviour, key);
2135
+ case 'ratio':
2136
+ return drawContainer(BloomAspectRatio, {
2137
+ ratio: node.props.ratio
2138
+ }, node, p, ctx, boxOf('component', 'AR'), behaviour, key);
2139
+ case 'grid':
2140
+ {
2141
+ const gap = ownValue(p, 'spacing')?.value;
2142
+ const minWidth = ownValue(p, 'minCellWidth')?.value;
2143
+ return drawContainer(ResponsiveGrid, {
2144
+ maxColumns: ownValue(p, 'columns')?.value,
2145
+ minItemWidth: minWidth === undefined ? undefined : resolveSpace(minWidth),
2146
+ gap: gap === undefined ? undefined : resolveSpace(gap),
2147
+ flow: ownValue(p, 'flow')?.value,
2148
+ stretchItems: ownValue(p, 'stretchItems')?.value
2149
+ }, node, p, ctx, boxOf('component', 'G'), behaviour, key);
2150
+ }
2151
+ case 'action':
2152
+ {
2153
+ const {
2154
+ icon,
2155
+ label,
2156
+ options
2157
+ } = node.props;
2158
+ const props = {
2159
+ key,
2160
+ icon,
2161
+ activeIcon: options.activeIcon,
2162
+ accessibilityLabel: label,
2163
+ accessibilityHint: p.hint,
2164
+ count: ownValue(p, 'count')?.value,
2165
+ active: ownValue(p, 'active')?.value,
2166
+ tone: ownValue(p, 'tint')?.value,
2167
+ onPress: p.onPress,
2168
+ onLongPress: p.onLongPress,
2169
+ popOnActivate: options.pop,
2170
+ rollCount: options.rollCount,
2171
+ busy: options.busy,
2172
+ hitSlop: options.hitSlop,
2173
+ accessibilityActions: options.accessibilityActions,
2174
+ onAccessibilityAction: options.onAccessibilityAction,
2175
+ testID: p.testID
2176
+ };
2177
+ // The action's own pressable takes its press, hover and focus, which its box tracks for its state variants.
2178
+ if (behaviour !== undefined && STATEFUL in behaviour) props[STATEFUL] = behaviour[STATEFUL];
2179
+ if (!boxed) return draw(EngagementAction, props);
2180
+ return drawHost(EngagementAction, boxOf('component', 'EA'), props);
2181
+ }
2182
+ case 'actionBar':
2183
+ {
2184
+ const trailing = ownValue(p, 'trailing')?.value;
2185
+ const props = {
2186
+ key,
2187
+ testID: p.testID,
2188
+ size: ownValue(p, 'size')?.value,
2189
+ orientation: ownValue(p, 'axis')?.value,
2190
+ tone: ownValue(p, 'tint')?.value,
2191
+ showZeroCounts: ownValue(p, 'showZeroCounts')?.value,
2192
+ formatCount: ownValue(p, 'countFormat')?.value,
2193
+ trailing: trailing ? renderChildren(trailing, ctx) : undefined
2194
+ };
2195
+ const children = renderChildren(node.children, ctx);
2196
+ if (!boxed) return draw(EngagementBar, props, ...children);
2197
+ return drawHost(EngagementBar, boxOf('component', 'AB'), props, ...children);
2198
+ }
2199
+ case 'actionGroup':
2200
+ {
2201
+ const props = {
2202
+ key,
2203
+ testID: p.testID
2204
+ };
2205
+ const children = renderChildren(node.children, ctx);
2206
+ if (!boxed) return draw(EngagementGroup, props, ...children);
2207
+ return drawHost(EngagementGroup, boxOf('component', 'AG'), props, ...children);
2208
+ }
2209
+ case 'embed':
2210
+ {
2211
+ const {
2212
+ content
2213
+ } = node.props;
2214
+ const element = typeof content === 'function' ? content(child => renderChild(child, ctx, undefined)) : content;
2215
+ if (!boxed && !behaviour) {
2216
+ return key === undefined ? element : draw(Fragment, {
2217
+ key
2218
+ }, element);
2219
+ }
2220
+ const host = behaviour ? hostFor(p) : View;
2221
+ return drawOutermost(box, host, boxOf('host', 'E'), hostProps(behaviour, key), element);
2222
+ }
2223
+ case 'lottie':
2224
+ {
2225
+ const {
2226
+ source
2227
+ } = node.props;
2228
+ const fallback = ownValue(p, 'fallback')?.value;
2229
+ const still = isNode(fallback) && fallback.kind === 'image' ? fallback.props : undefined;
2230
+ const frame = layer?.modifiers.find(modifier => modifier.kind === 'frame');
2231
+ const width = frame?.value.width;
2232
+ const edge = width === undefined ? undefined : resolveLength(width);
2233
+ // A frame that only sets the square's edge is the sticker's size, not a box around it.
2234
+ const sized = layer !== undefined && layer.variants.length === 0 && flex === '' && p.states.length === 0 && layer.modifiers.every(modifier => modifier === frame) && Object.keys(frame?.value ?? {}).every(side => side === 'width');
2235
+ const boxedSticker = boxed && !sized;
2236
+ const sticker = draw(LottieHost, {
2237
+ key: boxedSticker || behaviour ? undefined : key,
2238
+ animation: typeof source === 'string' ? source : undefined,
2239
+ fallback: still?.source,
2240
+ accessibilityLabel: still?.alt,
2241
+ size: typeof edge === 'number' ? edge : undefined,
2242
+ loop: ownValue(p, 'loop') !== undefined,
2243
+ paused: ownValue(p, 'paused')?.value ?? false,
2244
+ decorative: ownValue(p, 'decorative') === undefined ? undefined : true
2245
+ });
2246
+ if (!boxedSticker && !behaviour) return sticker;
2247
+ const host = behaviour ? hostFor(p) : View;
2248
+ const out = sized ? NO_STYLE_OUT : boxOf('host', 'L');
2249
+ return drawOutermost(box, host, out, hostProps(behaviour, key), sticker);
2250
+ }
2251
+ case 'view':
2252
+ {
2253
+ if (!boxed && !behaviour) return viewElement(node, ctx, key);
2254
+ const host = behaviour ? hostFor(p) : View;
2255
+ return drawOutermost(box, host, boxOf('host', 'V'), hostProps(behaviour, key), viewElement(node, ctx, undefined));
2256
+ }
2257
+ default:
2258
+ {
2259
+ const control = CONTROLS[node.kind];
2260
+ if (control === undefined) throw new Error(`bloom-language: no renderer for ${node.kind}`);
2261
+ const controlDraw = {
2262
+ node,
2263
+ own: kind => ownValue(p, kind),
2264
+ label: p.label,
2265
+ hint: p.hint,
2266
+ testID: p.testID,
2267
+ text: ctx.env.text,
2268
+ key,
2269
+ props: () => {
2270
+ const props = hostProps(behaviour, key);
2271
+ delete props.focusable;
2272
+ return props;
2273
+ },
2274
+ component: (host, props, ...children) => boxed ? drawHost(host, boxOf('component', node.kind), props, ...children) : draw(host, props, ...children),
2275
+ painted: (host, props, colors, ...children) => {
2276
+ const roles = [];
2277
+ const lists = [];
2278
+ const listKeys = [];
2279
+ for (const [prop, token] of Object.entries(colors)) {
2280
+ if (token === undefined) continue;
2281
+ if (typeof token === 'string') roles.push(propRole(prop, token));else {
2282
+ lists.push([prop, token.map(listColor)]);
2283
+ listKeys.push(`${prop}:${token.map(tokenKey).join('+')}`);
2284
+ }
2285
+ }
2286
+ const out = boxed ? boxOf('component', node.kind) : NO_STYLE_OUT;
2287
+ const paint = variedPaint(`C|${node.kind}|${boxed ? `${layerKey}|${flex}` : ''}|${roles.map(r => r.join(':')).join(',')}|${listKeys.join(',')}`, out, roles, NO_VARIANTS, lists.length === 0 ? undefined : lists);
2288
+ return drawHost(host, paint === undefined ? out : painted(out, paint), props, ...children);
2289
+ },
2290
+ around: element => boxed ? drawHost(View, boxOf('host', node.kind), hostProps(undefined, key), element) : element,
2291
+ pressAround: drawn => pressAround(p, behaviour, key, drawn),
2292
+ render: child => renderChild(child, ctx, undefined),
2293
+ children: children => renderChildren(children, ctx),
2294
+ press: value => pressOf(value, ctx.env),
2295
+ role: p.role
2296
+ };
2297
+ // Views pinned at a list's edges: the list makes room for them (SwiftUI's safe area insets).
2298
+ const insets = INSET_LISTS.has(node.kind) ? insetsOf(node) : NO_INSETS;
2299
+ if (insets.length === 0) return control(controlDraw);
2300
+ return draw(SafeAreaInsets, {
2301
+ key,
2302
+ insets,
2303
+ render: controlDraw.render,
2304
+ scroller: room => control({
2305
+ ...controlDraw,
2306
+ room
2307
+ })
2308
+ });
2309
+ }
2310
+ }
2311
+ }
2312
+
2313
+ /**
2314
+ * `Dialog(...).presented(binding)`: Bloom's Dialog in place, drawn as
2315
+ * `.dialog(binding, Dialog(...))` draws it beside its view. Every modifier of
2316
+ * a dialog is its own (`drawDialog` reads them), so none is a box around it.
2317
+ */
2318
+ function drawPresentedDialog(node, p, inner, key) {
2319
+ const presented = ownValue(p, 'presented');
2320
+ if (presented === undefined) throw new Error('bloom-language: a Dialog is a view only with .presented(isPresented)');
2321
+ return drawDialog({
2322
+ isPresented: presented.value,
2323
+ content: node
2324
+ }, children => renderChildren(children, inner), key);
2325
+ }
2326
+
2327
+ /**
2328
+ * A `view()` node: its component with the props it was called with, under
2329
+ * an `EnvContext` provider only when the environment here differs from the
2330
+ * one already provided, and an `AnimationContext` one only when the
2331
+ * animation scope does.
2332
+ */
2333
+ function viewElement(node, ctx, key) {
2334
+ const {
2335
+ component,
2336
+ props
2337
+ } = node.props;
2338
+ let element = draw(component, props);
2339
+ if (ctx.env !== ctx.provided) element = draw(EnvContext.Provider, {
2340
+ value: ctx.env
2341
+ }, element);
2342
+ // The `.animation()` in scope reaches the body, as it reaches the nodes of this one.
2343
+ if (ctx.animation !== ctx.scoped) element = draw(AnimationContext.Provider, {
2344
+ value: ctx.animation
2345
+ }, element);
2346
+ return key === undefined ? element : /*#__PURE__*/cloneElement(element, {
2347
+ key
2348
+ });
2349
+ }
2350
+
2351
+ /**
2352
+ * A menu's name is its trigger's: what assistive technology says for the
2353
+ * button that opens it. A trigger with a name of its own keeps it.
2354
+ */
2355
+ function namedTrigger(trigger, label) {
2356
+ if (label === undefined || !isNode(trigger)) return trigger;
2357
+ return trigger.modifiers.some(modifier => modifier.kind === 'label') ? trigger : trigger.label(label);
2358
+ }
2359
+
2360
+ // ── Containers ───────────────────────────────────────────────────
2361
+
2362
+ /**
2363
+ * A Bloom container (Fill, AspectRatio, ResponsiveGrid): its own
2364
+ * props, the innermost layer as its style, its `testID`, and the children.
2365
+ * Presses and the rest of the view's behaviour go on a host around it, since
2366
+ * these components take none.
2367
+ */
2368
+ /**
2369
+ * A Bloom component's press, hover and focus when it takes none of its own
2370
+ * (a Badge, an IconCircle, a Loading, a Divider, an AvatarGroup, a button
2371
+ * group): a language host around it takes them, and its box tracks the
2372
+ * states in JavaScript on every platform, so the variants in the component's
2373
+ * own style (a `Conditioned` leaf) answer them.
2374
+ */
2375
+ const AROUND = Object.freeze({
2376
+ style: undefined,
2377
+ paint: undefined,
2378
+ object: true,
2379
+ anchor: true
2380
+ });
2381
+
2382
+ /** `drawn` with its press on a host around it when the view is pressable; its props otherwise, as before. */
2383
+ function pressAround(p, behaviour, key, drawn) {
2384
+ if (!p.pressable || behaviour === undefined) {
2385
+ const props = hostProps(behaviour, key);
2386
+ delete props.focusable;
2387
+ return drawn(props);
2388
+ }
2389
+ const {
2390
+ testID,
2391
+ ...rest
2392
+ } = behaviour;
2393
+ const element = drawn(testID === undefined ? {} : {
2394
+ testID
2395
+ });
2396
+ return drawHost(hostFor(p), AROUND, {
2397
+ ...rest,
2398
+ key
2399
+ }, element);
2400
+ }
2401
+ function drawContainer(component, own, node, p, ctx, out, behaviour, key) {
2402
+ const {
2403
+ testID,
2404
+ ...rest
2405
+ } = behaviour ?? {};
2406
+ const outer = Object.keys(rest).length > 0;
2407
+ const props = {
2408
+ ...own,
2409
+ testID,
2410
+ key: outer ? undefined : key
2411
+ };
2412
+ const element = drawHost(component, out, props, ...renderChildren(node.children, ctx));
2413
+ return outer ? drawHost(hostFor(p), AROUND, {
2414
+ ...rest,
2415
+ key
2416
+ }, element) : element;
2417
+ }
2418
+
2419
+ /** A Badge node's props for Bloom's Badge, standalone or attached. */
2420
+ function badgeProps(node, p) {
2421
+ return {
2422
+ content: node.props.content,
2423
+ variant: ownValue(p, 'style')?.value,
2424
+ tone: ownValue(p, 'tint')?.value,
2425
+ color: ownValue(p, 'color')?.value,
2426
+ size: ownValue(p, 'size')?.value,
2427
+ icon: ownValue(p, 'icon')?.value,
2428
+ dot: ownValue(p, 'dot') === undefined ? undefined : true,
2429
+ max: ownValue(p, 'max')?.value,
2430
+ placement: ownValue(p, 'placement')?.value,
2431
+ testID: p.testID
2432
+ };
2433
+ }
2434
+ const SKELETON_SHAPES = {
2435
+ text: BloomSkeleton.Text,
2436
+ circle: BloomSkeleton.Circle,
2437
+ pill: BloomSkeleton.Pill,
2438
+ box: BloomSkeleton.Box
2439
+ };
2440
+
2441
+ /**
2442
+ * A skeleton shape: its frame is its size (a circle's and a pill's height, a
2443
+ * box's width and height), a box's corner its radius, a text line's height
2444
+ * the one its font sets. It draws nothing else of a chain.
2445
+ */
2446
+ function drawSkeleton(node, p, ctx, key) {
2447
+ const {
2448
+ shape
2449
+ } = node.props;
2450
+ let frame = {};
2451
+ let corner;
2452
+ for (const modifier of node.modifiers) {
2453
+ if (modifier.kind === 'frame') frame = {
2454
+ ...frame,
2455
+ ...modifier.value
2456
+ };
2457
+ if (modifier.kind === 'corner') corner = modifier.value;
2458
+ }
2459
+ const length = token => token === undefined ? undefined : resolveLength(token);
2460
+ const props = {
2461
+ key
2462
+ };
2463
+ if (shape === 'text') {
2464
+ const {
2465
+ lineHeight
2466
+ } = resolveFont(ctx.env.text.font, ctx.env.text.weight, ctx.env.text.leading);
2467
+ const width = length(frame.width);
2468
+ if (lineHeight !== undefined || width !== undefined) props.style = {
2469
+ lineHeight,
2470
+ width
2471
+ };
2472
+ } else if (shape === 'box') {
2473
+ props.width = length(frame.width);
2474
+ props.height = length(frame.height);
2475
+ if (corner !== undefined && corner !== 'concentric') props.borderRadius = resolveCorner(corner);
2476
+ } else {
2477
+ props.size = length(frame.height ?? frame.width);
2478
+ }
2479
+ if (p.testID !== undefined) props.testID = p.testID;
2480
+ return draw(SKELETON_SHAPES[shape], props);
2481
+ }
2482
+ function withoutLabel(behaviour) {
2483
+ const {
2484
+ accessibilityLabel: _label,
2485
+ ...rest
2486
+ } = behaviour;
2487
+ return rest;
2488
+ }
2489
+
2490
+ /**
2491
+ * A divider's label: a `Text` with nothing of its own is Bloom's divider
2492
+ * label (its type and ink), any other view is drawn as it is.
2493
+ */
2494
+ function dividerLabel(label, ctx) {
2495
+ if (!isNode(label)) return undefined;
2496
+ if (label.kind === 'text' && label.modifiers.length === 0) {
2497
+ const runs = label.props.runs;
2498
+ if (runs.every(run => typeof run === 'string' || typeof run === 'number')) return runs.join('');
2499
+ }
2500
+ return renderNode(label, ctx, undefined);
2501
+ }
2502
+
2503
+ // ── Text ─────────────────────────────────────────────────────────
2504
+
2505
+ /** Bloom's typography components, by the text style that draws each; `Text` without one. */
2506
+ const TEXT_HOSTS = {
2507
+ title: Title,
2508
+ subtitle: Subtitle,
2509
+ h1: H1,
2510
+ h2: H2,
2511
+ h3: H3,
2512
+ h4: H4,
2513
+ h5: H5,
2514
+ h6: H6,
2515
+ paragraph: P,
2516
+ lead: Lead,
2517
+ large: Large,
2518
+ small: Small,
2519
+ muted: Muted,
2520
+ blockquote: Blockquote
2521
+ };
2522
+ const linkPresses = new Map();
2523
+
2524
+ /**
2525
+ * A link's press, as Bloom's inline link takes it: it stays in its text (not
2526
+ * the row around it), the web's anchor follows itself, and native opens the
2527
+ * page outside the app. One handler per address, so a text keeps its props.
2528
+ */
2529
+ function linkPress(href) {
2530
+ let press = linkPresses.get(href);
2531
+ if (press === undefined) {
2532
+ press = event => {
2533
+ event.stopPropagation();
2534
+ if (!IS_WEB) openExternal(href);
2535
+ };
2536
+ linkPresses.set(href, press);
2537
+ }
2538
+ return press;
2539
+ }
2540
+
2541
+ /** The env traits a span's own chain sets: all a span writes (see `textStyle`). */
2542
+ function spanTraits(p) {
2543
+ return new Set(p.env.map(modifier => modifier.kind === 'font' && isFontFamily(modifier.value) ? 'family' : modifier.kind));
2544
+ }
2545
+
2546
+ /**
2547
+ * A text. The outermost is Bloom's `Text` (or the typography component its
2548
+ * `textStyle` names), its ramp font as Bloom's `variant`; a nested one is a
2549
+ * React Native span inside it, so it inherits the type it does not set.
2550
+ */
2551
+ function drawText(node, p, ctx, layerKey, flex, box, boxVaried, behaviour, key, outermost) {
2552
+ const raw = node.props.raw === true;
2553
+ // React Native's own Text (RawText) inherits nothing of the language's environment
2554
+ // (no family, size or ink); a span, and RawText, write only what their own chain
2555
+ // names, RawText over the base face an app's React Native Text draws (`rawBaseFont`).
2556
+ const traits = raw ? deriveEnv(ROOT_ENV, p.env).text : ctx.env.text;
2557
+ const span = ctx.inText || raw ? spanTraits(p) : undefined;
2558
+ const link = ownValue(p, 'link')?.value;
2559
+ const look = {
2560
+ noWrap: ownValue(p, 'noWrap') !== undefined,
2561
+ align: ownValue(p, 'textAlign')?.value,
2562
+ italic: ownValue(p, 'italic') !== undefined,
2563
+ underline: ownValue(p, 'underline') !== undefined,
2564
+ strikethrough: ownValue(p, 'strikethrough') !== undefined,
2565
+ textCase: ownValue(p, 'textCase')?.value,
2566
+ link: link !== undefined,
2567
+ tabular: ownValue(p, 'monospacedDigit') !== undefined,
2568
+ wordBreak: ownValue(p, 'wordBreak')?.value,
2569
+ ellipsis: ownValue(p, 'truncation')?.value === 'tail' && ownValue(p, 'lines') === undefined
2570
+ };
2571
+ const textStyleName = span === undefined ? ownValue(p, 'textStyle')?.value : undefined;
2572
+ const lookKey = `${look.noWrap ? 'nw' : ''}|${look.align ?? ''}|${look.italic ? 'i' : ''}|${look.underline ? 'u' : ''}|${look.strikethrough ? 's' : ''}|${look.textCase ?? ''}|${look.link ? 'a' : ''}|${look.tabular ? 'tn' : ''}|${look.wordBreak ?? ''}|${look.ellipsis ? 'el' : ''}`;
2573
+ const spanKey = span === undefined ? '' : [...span].sort().join(',');
2574
+ const blockquote = textStyleName === 'blockquote';
2575
+ const props = hostProps(behaviour, key);
2576
+ delete props.focusable;
2577
+ const lines = ownValue(p, 'lines')?.value;
2578
+ const truncation = ownValue(p, 'truncation')?.value;
2579
+ if (lines !== undefined) props.numberOfLines = lines;
2580
+ if (lines !== undefined || truncation !== undefined) props.ellipsizeMode = truncation ?? 'tail';
2581
+ const selectable = ownValue(p, 'selectable')?.value;
2582
+ if (selectable !== undefined) props.selectable = selectable;
2583
+ if (link !== undefined) {
2584
+ props.role = 'link';
2585
+ props.onPress = p.onPress ?? linkPress(link);
2586
+ if (IS_WEB) {
2587
+ props.href = link;
2588
+ if (/^https?:/i.test(link)) props.hrefAttrs = LINK_TARGET;
2589
+ }
2590
+ }
2591
+ const variant = span === undefined && !blockquote ? textVariant(traits) : undefined;
2592
+ if (variant !== undefined) props.variant = variant;
2593
+ let runs = renderRuns(node.props.runs, ctx);
2594
+ if (blockquote) {
2595
+ // Bloom's quotation is a box around its own text: the box takes the
2596
+ // layers, and what the chain sets for the text is a span inside it.
2597
+ const own = textStyle(traits, look, spanTraits(p));
2598
+ if (Object.keys(own).length > 0) {
2599
+ const inner = cachedStyle('host', `TQ|${ctx.env.key}|${spanKey}|${lookKey}`, () => own);
2600
+ runs = [drawHost(RNText, inner, {}, ...runs)];
2601
+ }
2602
+ return drawHost(Blockquote, cachedStyle('component', `Q|${layerKey}|${flex}`, box, boxVaried), props, ...runs);
2603
+ }
2604
+ const host = span !== undefined ? RNText : textStyleName ? TEXT_HOSTS[textStyleName] : BloomText;
2605
+ const out = cachedStyle('host', `T|${ctx.env.key}|${span === undefined ? '' : `s:${spanKey}`}|${raw ? ctx.inText ? 'r:in' : 'r' : ''}|${lookKey}|${layerKey}|${flex}`, () => Object.assign({}, raw ? rawBaseFont(ctx.inText === true) : undefined, textStyle(traits, look, span), box()), () => joinVariants(textVariants(traits), boxVaried()));
2606
+ const roll = ownValue(p, 'contentTransition');
2607
+ const plain = node.props.runs;
2608
+ if (roll !== undefined && plain.every(run => typeof run === 'string' || typeof run === 'number')) {
2609
+ // The roll draws the text host itself, once at rest and twice while it
2610
+ // rolls, so it takes this node's outermost box (at rest).
2611
+ if (outermost !== undefined) outermost.used = true;
2612
+ // A fresh copy for each host: drawing one writes its style into its props.
2613
+ const hostOnly = () => {
2614
+ const {
2615
+ key: _key,
2616
+ ...rest
2617
+ } = props;
2618
+ return rest;
2619
+ };
2620
+ const rollProps = {
2621
+ key,
2622
+ text: plain.join(''),
2623
+ direction: roll.direction,
2624
+ scope: ctx.animation,
2625
+ draw: (text, rolling) => {
2626
+ if (rolling === undefined) return drawOutermost(outermost, host, out, hostOnly(), text);
2627
+ const at = {
2628
+ outer: rolling,
2629
+ used: false
2630
+ };
2631
+ const drawn = drawOutermost(at, host, out, hostOnly(), text);
2632
+ return at.used ? drawn : moveIn(rolling, drawn);
2633
+ }
2634
+ };
2635
+ if (roll.value === 'roll') return draw(TextRoll, rollProps);
2636
+ // A numeric roll's row takes the text's box; each piece its type alone.
2637
+ const glyph = cachedStyle('host', `TG|${ctx.env.key}|${lookKey}`, () => textStyle(traits, look, undefined), () => textVariants(traits));
2638
+ const rowOut = cachedStyle('host', `TR|${layerKey}|${flex}`, () => Object.assign({
2639
+ flexDirection: 'row'
2640
+ }, box()), boxVaried);
2641
+ const pieceProps = {
2642
+ ...HIDDEN_PIECE
2643
+ };
2644
+ if (variant !== undefined) pieceProps.variant = variant;
2645
+ return draw(NumericRoll, {
2646
+ ...rollProps,
2647
+ row: (text, ...pieces) => drawOutermost(outermost, View, rowOut, {
2648
+ ...hostOnly(),
2649
+ accessible: true,
2650
+ role: 'text',
2651
+ accessibilityLabel: text
2652
+ }, ...pieces),
2653
+ piece: (text, rolling) => {
2654
+ const drawn = drawHost(host, glyph, {
2655
+ ...pieceProps
2656
+ }, text);
2657
+ return rolling === undefined ? drawn : moveIn(rolling, drawn);
2658
+ }
2659
+ });
2660
+ }
2661
+ return drawOutermost(outermost, host, out, props, ...runs);
2662
+ }
2663
+
2664
+ /** A piece of a numeric roll: the row it is in names the whole text. */
2665
+ const HIDDEN_PIECE = Object.freeze({
2666
+ 'aria-hidden': true,
2667
+ importantForAccessibility: 'no-hide-descendants',
2668
+ accessibilityElementsHidden: true,
2669
+ selectable: false
2670
+ });
2671
+
2672
+ /** A web link to another site opens beside the app, as Bloom's inline link does. */
2673
+ const LINK_TARGET = Object.freeze({
2674
+ target: '_blank',
2675
+ rel: 'noopener noreferrer'
2676
+ });
2677
+
2678
+ /**
2679
+ * A button's content: its first `Icon` before any `Text` is the leading glyph,
2680
+ * an `Icon` after a `Text` the trailing one, and the `Text` runs its label.
2681
+ */
2682
+ function buttonContent(children) {
2683
+ let icon;
2684
+ let glyph;
2685
+ let label;
2686
+ let trailing;
2687
+ for (const child of flatten(children)) {
2688
+ if (child.kind === 'icon') {
2689
+ if (label !== undefined) trailing ??= child.props.icon;else if (icon === undefined) {
2690
+ icon = child.props.icon;
2691
+ glyph = child;
2692
+ }
2693
+ }
2694
+ if (child.kind === 'text') {
2695
+ const text = child.props.runs.filter(run => typeof run === 'string' || typeof run === 'number').join('');
2696
+ label = label === undefined ? text : `${label} ${text}`;
2697
+ }
2698
+ }
2699
+ return {
2700
+ icon,
2701
+ glyph,
2702
+ label,
2703
+ trailing
2704
+ };
2705
+ }
2706
+ function flatten(children) {
2707
+ const out = [];
2708
+ for (const child of children) {
2709
+ if (Array.isArray(child)) out.push(...flatten(child));else if (isNode(child)) out.push(child);
2710
+ }
2711
+ return out;
2712
+ }
2713
+
2714
+ // ── Children ─────────────────────────────────────────────────────
2715
+
2716
+ /**
2717
+ * One slot per child, in order: a child that is `false` or `null` keeps its
2718
+ * slot as `null`, so its later siblings never shift onto each other's state
2719
+ * (React matches spread children by position). An array (`items.map(...)`) is
2720
+ * one slot whose elements are keyed by `.id()`, else by index.
2721
+ */
2722
+ function renderChildren(children, ctx) {
2723
+ const out = [];
2724
+ for (const child of children) {
2725
+ if (Array.isArray(child)) out.push(draw(Presence, {
2726
+ items: renderList(child, ctx)
2727
+ }));else out.push(isNode(child) ? renderNode(child, ctx, undefined) : null);
2728
+ }
2729
+ return out;
2730
+ }
2731
+ function renderList(children, ctx) {
2732
+ const out = [];
2733
+ for (let i = 0; i < children.length; i++) {
2734
+ const child = children[i];
2735
+ if (Array.isArray(child)) out.push(draw(Fragment, {
2736
+ key: `l${i}`
2737
+ }, ...renderList(child, ctx)));else if (isNode(child)) out.push(renderNode(child, ctx, i));
2738
+ }
2739
+ return out;
2740
+ }
2741
+ function renderRuns(runs, ctx) {
2742
+ const out = [];
2743
+ const inner = ctx.inText ? ctx : {
2744
+ ...ctx,
2745
+ inText: true
2746
+ };
2747
+ for (const run of runs) {
2748
+ if (typeof run === 'string' || typeof run === 'number') out.push(String(run));else out.push(isNode(run) ? renderNode(run, inner, undefined) : null);
2749
+ }
2750
+ return out;
2751
+ }
2752
+
2753
+ /** Draws any child in a context: what `Embed`'s render function hands out. */
2754
+ function renderChild(child, ctx, key) {
2755
+ if (Array.isArray(child)) return renderList(child, ctx);
2756
+ return isNode(child) ? renderNode(child, ctx, key) : null;
2757
+ }
2758
+
2759
+ // ── Entry points ─────────────────────────────────────────────────
2760
+
2761
+ /** The boundary from JSX into the language: it takes the environment provided where it is placed. */
2762
+ function LanguageRoot({
2763
+ node
2764
+ }) {
2765
+ const env = useContext(EnvContext);
2766
+ const animation = useContext(AnimationContext);
2767
+ return renderChild(node, {
2768
+ env,
2769
+ provided: env,
2770
+ animation,
2771
+ scoped: animation
2772
+ }, undefined);
2773
+ }
2774
+ LanguageRoot.displayName = 'BloomLanguage';
2775
+
2776
+ /** Whether a `LanguageStyles` around this point writes the sheets into server-rendered HTML. */
2777
+ const SheetsWritten = /*#__PURE__*/createContext(false);
2778
+
2779
+ /**
2780
+ * The web: the language's sheets in server-rendered HTML, for an app that
2781
+ * renders on a server with Bloom's `ssrStyles` (which `ServerStyleSheet`
2782
+ * reads). It goes around the app once, as the router's `layout()` does
2783
+ * itself: it draws `children`, then the generated sheet and each variant
2784
+ * sheet the tree drew, so the page is styled before it hydrates. One inside
2785
+ * another writes nothing; without a server policy, and once hydrated,
2786
+ * `ServerStyleSheet` writes nothing and adopts the same sheets the renderer
2787
+ * does. Native draws `children`.
2788
+ */
2789
+ export function LanguageStyles({
2790
+ children
2791
+ }) {
2792
+ const written = useContext(SheetsWritten);
2793
+ if (!IS_WEB || written) return children;
2794
+ return draw(SheetsWritten.Provider, {
2795
+ value: true
2796
+ }, children, draw(LanguageSheets, null));
2797
+ }
2798
+ function LanguageSheets() {
2799
+ return languageSheets().map(([id, css]) => draw(ServerStyleSheet, {
2800
+ key: id,
2801
+ id,
2802
+ css
2803
+ }));
2804
+ }
2805
+
2806
+ /**
2807
+ * A language tree as a React element, for JSX. A bare `view()` node mounts its
2808
+ * component directly; anything else goes under one boundary component.
2809
+ */
2810
+ export function toElement(node, key) {
2811
+ adoptLanguageSheet();
2812
+ if (isNode(node) && node.kind === 'view' && node.modifiers.length === 0) {
2813
+ const {
2814
+ component,
2815
+ props
2816
+ } = node.props;
2817
+ return draw(component, key === undefined ? props : {
2818
+ ...props,
2819
+ key
2820
+ });
2821
+ }
2822
+ return draw(LanguageRoot, {
2823
+ node,
2824
+ key
2825
+ });
2826
+ }
2827
+
2828
+ /** What a `view()` component renders: its body, under the environment and animation scope it is placed in. */
2829
+ export function renderBody(body, env, animation) {
2830
+ return renderChild(body, {
2831
+ env,
2832
+ provided: env,
2833
+ animation,
2834
+ scoped: animation
2835
+ }, undefined);
2836
+ }
2837
+ /**
2838
+ * `Lottie()`: Bloom's `Sticker`, the one Lottie path (lottie-react-native on
2839
+ * native, dotLottie on the web, both loaded lazily), paused while its screen
2840
+ * is not in front.
2841
+ */
2842
+ function LottieHost({
2843
+ paused,
2844
+ fallback,
2845
+ ...props
2846
+ }) {
2847
+ const visible = useScreenVisible();
2848
+ return draw(Sticker, {
2849
+ ...props,
2850
+ fallback: fallback ?? '',
2851
+ paused: paused || !visible
2852
+ });
2853
+ }
2854
+ LottieHost.displayName = 'BloomLottie';
2855
+ //# sourceMappingURL=render.js.map