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