spell-ui 0.8.9 → 0.8.11

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 (1168) hide show
  1. package/README-components.md +9 -3
  2. package/README-frameworks.md +5 -5
  3. package/README-migrating.md +2 -2
  4. package/README.md +5 -5
  5. package/dist/{CodeEngine-GL9EzwF1.js → CodeEngine-B684vKxR.js} +39 -100
  6. package/dist/{CodeEngine-GL9EzwF1.js.map → CodeEngine-B684vKxR.js.map} +1 -1
  7. package/dist/{Dragging-CMZoLEWQ.js → Dragging-B93hbRxF.js} +17 -15
  8. package/dist/Dragging-B93hbRxF.js.map +1 -0
  9. package/dist/{MarkdownEngine-CW1WGqNp.js → MarkdownEngine-D1jqcFeU.js} +11 -72
  10. package/dist/{MarkdownEngine-CW1WGqNp.js.map → MarkdownEngine-D1jqcFeU.js.map} +1 -1
  11. package/dist/MarkdownSanitizer-CqsWivYJ.js +866 -0
  12. package/dist/MarkdownSanitizer-CqsWivYJ.js.map +1 -0
  13. package/dist/{PrefStore-Qv0e5y04.js → PrefStore-Di83C0bY.js} +13 -9
  14. package/dist/PrefStore-Di83C0bY.js.map +1 -0
  15. package/dist/ScrollingRow-DkOtx2QK.js +89 -0
  16. package/dist/ScrollingRow-DkOtx2QK.js.map +1 -0
  17. package/dist/{SitePages-CciwREek.js → SitePages-B3zd5Zgu.js} +37 -10
  18. package/dist/SitePages-B3zd5Zgu.js.map +1 -0
  19. package/dist/SlottedItems-DWfAZYqM.js +88 -0
  20. package/dist/SlottedItems-DWfAZYqM.js.map +1 -0
  21. package/dist/{TemporalPolyfill-D9mr7_wA.js → TemporalPolyfill-Bv_c_xa0.js} +7 -12
  22. package/dist/{TemporalPolyfill-D9mr7_wA.js.map → TemporalPolyfill-Bv_c_xa0.js.map} +1 -1
  23. package/dist/{ThemeDraft-B7NPif4d.js → ThemeDraft-CyX3YA_L.js} +41 -43
  24. package/dist/{ThemeDraft-B7NPif4d.js.map → ThemeDraft-CyX3YA_L.js.map} +1 -1
  25. package/dist/{TreeMeasure-BVJeGb1L.js → TreeMeasure-BK74uexu.js} +3 -4
  26. package/dist/{TreeMeasure-BVJeGb1L.js.map → TreeMeasure-BK74uexu.js.map} +1 -1
  27. package/dist/UIButton-BmIiXYDC.js +5 -0
  28. package/dist/UIButton-BmIiXYDC.js.map +1 -0
  29. package/dist/UIGrid-2ZUA1YEc.js +200 -0
  30. package/dist/UIGrid-2ZUA1YEc.js.map +1 -0
  31. package/dist/{UIInput-BodVbUoQ.js → UIInput-B3K0w4ow.js} +2 -3
  32. package/dist/UIInput-B3K0w4ow.js.map +1 -0
  33. package/dist/{UIKeys-Rh_gUZjP.js → UIKeys-DmXvyJuU.js} +12 -12
  34. package/dist/UIKeys-DmXvyJuU.js.map +1 -0
  35. package/dist/{UILabel-DgJUBzB_.js → UILabel-pCjKxQlQ.js} +2 -3
  36. package/dist/UILabel-pCjKxQlQ.js.map +1 -0
  37. package/dist/UIMenu-CqURPocK.js +42 -0
  38. package/dist/UIMenu-CqURPocK.js.map +1 -0
  39. package/dist/{UIRuntime-KH309p5B.js → UIRuntime-BXutHphM.js} +253 -239
  40. package/dist/UIRuntime-BXutHphM.js.map +1 -0
  41. package/dist/{UISegment-CMMIW7cZ.js → UISegment-BF4Tgy2D.js} +2 -3
  42. package/dist/UISegment-BF4Tgy2D.js.map +1 -0
  43. package/dist/_spell-element/UIComponent.d.ts +8 -0
  44. package/dist/_spell-element/vocabulary.types.d.ts +20 -2
  45. package/dist/_util/Dragging.d.ts +14 -2
  46. package/dist/_util/dom.d.ts +12 -8
  47. package/dist/_util/measures/Dimension.d.ts +1 -1
  48. package/dist/_util/persist/PrefStore.d.ts +7 -2
  49. package/dist/_util/persist/persist.types.d.ts +6 -0
  50. package/dist/_util/platform.d.ts +54 -0
  51. package/dist/_util/string.d.ts +32 -0
  52. package/dist/api.js +2 -3
  53. package/dist/api.js.map +1 -1
  54. package/dist/{apple.palette-B4ivrNlM.js → apple.palette-YLjENwUt.js} +2 -3
  55. package/dist/apple.palette-YLjENwUt.js.map +1 -0
  56. package/dist/{classic-DCTQrteU.js → classic-BHyJFvQa.js} +2 -3
  57. package/dist/classic-BHyJFvQa.js.map +1 -0
  58. package/dist/components/ComponentDefinitions.d.ts +55 -8
  59. package/dist/components/components.es.d.ts +2 -1
  60. package/dist/components/components.planned.d.ts +1 -1
  61. package/dist/components/components.types.d.ts +22 -0
  62. package/dist/components/ui-accordion/UIAccordion.d.ts +1 -0
  63. package/dist/components/ui-accordion/UIAccordion.en.d.ts +1 -0
  64. package/dist/components/ui-action/UIAction.d.ts +38 -1
  65. package/dist/components/ui-action/UIAction.en.d.ts +17 -8
  66. package/dist/components/ui-action/UIAction.es.d.ts +1 -0
  67. package/dist/components/ui-ad/UIAd.d.ts +1 -0
  68. package/dist/components/ui-ad/UIAd.en.d.ts +1 -0
  69. package/dist/components/ui-app-menu/UIAppMenu.d.ts +41 -0
  70. package/dist/components/ui-app-menu/UIAppMenu.en.d.ts +294 -0
  71. package/dist/components/ui-app-menu/UIAppMenu.es.d.ts +35 -0
  72. package/dist/components/ui-app-menu/index.d.ts +2 -0
  73. package/dist/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
  74. package/dist/components/ui-breadcrumbs/UIBreadcrumb.en.d.ts +1 -0
  75. package/dist/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
  76. package/dist/components/ui-breadcrumbs/UIBreadcrumbs.en.d.ts +1 -0
  77. package/dist/components/ui-button/UIButton.d.ts +5 -4
  78. package/dist/components/ui-button/UIButton.en.d.ts +4 -3
  79. package/dist/components/ui-button/UIButton.fallback.d.ts +4 -3
  80. package/dist/components/ui-button/UIButton.types.d.ts +1 -1
  81. package/dist/components/ui-button/UIButtons.d.ts +7 -5
  82. package/dist/components/ui-button/UIButtons.en.d.ts +5 -3
  83. package/dist/components/ui-button/UIButtons.es.d.ts +1 -0
  84. package/dist/components/ui-button/UIOr.d.ts +1 -0
  85. package/dist/components/ui-button/UIOr.en.d.ts +1 -0
  86. package/dist/components/ui-calendar/UICalendar.d.ts +1 -0
  87. package/dist/components/ui-calendar/UICalendar.en.d.ts +1 -0
  88. package/dist/components/ui-calendar/UICalendar.fallback.d.ts +1 -0
  89. package/dist/components/ui-card/UICard.d.ts +1 -0
  90. package/dist/components/ui-card/UICard.en.d.ts +1 -0
  91. package/dist/components/ui-card/UICards.d.ts +1 -0
  92. package/dist/components/ui-card/UICards.en.d.ts +1 -0
  93. package/dist/components/ui-checkbox/UICheckbox.d.ts +1 -0
  94. package/dist/components/ui-checkbox/UICheckbox.en.d.ts +1 -0
  95. package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +1 -0
  96. package/dist/components/ui-checkbox/UIRadio.d.ts +1 -0
  97. package/dist/components/ui-checkbox/UIRadio.en.d.ts +1 -0
  98. package/dist/components/ui-code/CodeHighlighter.d.ts +7 -3
  99. package/dist/components/ui-code/UICode.d.ts +12 -1
  100. package/dist/components/ui-code/UICode.en.d.ts +1 -0
  101. package/dist/components/ui-code/UICode.types.d.ts +9 -0
  102. package/dist/components/ui-comment/UIComment.d.ts +1 -0
  103. package/dist/components/ui-comment/UIComment.en.d.ts +1 -0
  104. package/dist/components/ui-comment/UIComments.d.ts +1 -0
  105. package/dist/components/ui-comment/UIComments.en.d.ts +1 -0
  106. package/dist/components/ui-components/UIComponents.d.ts +1 -0
  107. package/dist/components/ui-components/UIComponents.en.d.ts +1 -0
  108. package/dist/components/ui-container/UIContainer.d.ts +54 -1
  109. package/dist/components/ui-container/UIContainer.en.d.ts +40 -1
  110. package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
  111. package/dist/components/ui-device/UIDevice.d.ts +234 -0
  112. package/dist/components/ui-device/UIDevice.en.d.ts +126 -0
  113. package/dist/components/ui-device/UIDevice.es.d.ts +52 -0
  114. package/dist/components/ui-device/index.d.ts +1 -0
  115. package/dist/components/ui-diagram/UIDiagram.d.ts +1 -0
  116. package/dist/components/ui-diagram/UIDiagram.en.d.ts +1 -0
  117. package/dist/components/ui-diagram/UIDiagramNode.d.ts +1 -0
  118. package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +1 -0
  119. package/dist/components/ui-dimension/UIDimension.d.ts +1 -0
  120. package/dist/components/ui-dimension/UIDimension.en.d.ts +1 -0
  121. package/dist/components/ui-dimmer/UIDimmer.d.ts +1 -0
  122. package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
  123. package/dist/components/ui-divider/UIDivider.d.ts +1 -0
  124. package/dist/components/ui-divider/UIDivider.en.d.ts +1 -0
  125. package/dist/components/ui-dropdown/SlottedItems.d.ts +9 -1
  126. package/dist/components/ui-dropdown/UIDropdown.d.ts +1 -0
  127. package/dist/components/ui-dropdown/UIDropdown.en.d.ts +1 -0
  128. package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +1 -0
  129. package/dist/components/ui-embed/UIEmbed.d.ts +1 -0
  130. package/dist/components/ui-embed/UIEmbed.en.d.ts +1 -0
  131. package/dist/components/ui-emoji/UIEmoji.d.ts +1 -0
  132. package/dist/components/ui-emoji/UIEmoji.en.d.ts +1 -0
  133. package/dist/components/ui-example/UIExample.en.d.ts +1 -0
  134. package/dist/components/ui-feed/UIFeed.d.ts +1 -0
  135. package/dist/components/ui-feed/UIFeed.en.d.ts +1 -0
  136. package/dist/components/ui-feed/UIFeedEvent.d.ts +1 -0
  137. package/dist/components/ui-feed/UIFeedEvent.en.d.ts +1 -0
  138. package/dist/components/ui-flag/UIFlag.d.ts +1 -0
  139. package/dist/components/ui-flag/UIFlag.en.d.ts +1 -0
  140. package/dist/components/ui-flyout/UIFlyout.d.ts +1 -0
  141. package/dist/components/ui-flyout/UIFlyout.en.d.ts +1 -0
  142. package/dist/components/ui-form/UIField.d.ts +11 -4
  143. package/dist/components/ui-form/UIField.en.d.ts +3 -2
  144. package/dist/components/ui-form/UIFields.d.ts +1 -0
  145. package/dist/components/ui-form/UIFields.en.d.ts +1 -0
  146. package/dist/components/ui-form/UIForm.d.ts +1 -0
  147. package/dist/components/ui-form/UIForm.en.d.ts +1 -0
  148. package/dist/components/ui-form/UIRepeat.d.ts +1 -0
  149. package/dist/components/ui-form/UIRepeat.en.d.ts +1 -0
  150. package/dist/components/ui-grid/UIColumn.d.ts +4 -3
  151. package/dist/components/ui-grid/UIColumn.en.d.ts +4 -3
  152. package/dist/components/ui-grid/UIGrid.d.ts +1 -0
  153. package/dist/components/ui-grid/UIGrid.en.d.ts +1 -0
  154. package/dist/components/ui-grid/UIRow.d.ts +1 -0
  155. package/dist/components/ui-grid/UIRow.en.d.ts +1 -0
  156. package/dist/components/ui-icon/UIIcon.d.ts +1 -0
  157. package/dist/components/ui-icon/UIIcon.en.d.ts +1 -0
  158. package/dist/components/ui-icon/UIIcons.d.ts +1 -0
  159. package/dist/components/ui-icon/UIIcons.en.d.ts +1 -0
  160. package/dist/components/ui-icon-picker/UIIconPicker.d.ts +5 -1
  161. package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +1 -0
  162. package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +1 -0
  163. package/dist/components/ui-image/UIImage.d.ts +1 -0
  164. package/dist/components/ui-image/UIImage.en.d.ts +1 -0
  165. package/dist/components/ui-image/UIImages.d.ts +1 -0
  166. package/dist/components/ui-image/UIImages.en.d.ts +1 -0
  167. package/dist/components/ui-include/UIInclude.d.ts +1 -0
  168. package/dist/components/ui-include/UIInclude.en.d.ts +1 -0
  169. package/dist/components/ui-input/UIInput.d.ts +1 -0
  170. package/dist/components/ui-input/UIInput.en.d.ts +1 -0
  171. package/dist/components/ui-input/UIInput.fallback.d.ts +1 -0
  172. package/dist/components/ui-input/UITextarea.d.ts +1 -0
  173. package/dist/components/ui-input/UITextarea.en.d.ts +1 -0
  174. package/dist/components/ui-item/UIItem.d.ts +19 -8
  175. package/dist/components/ui-item/UIItem.en.d.ts +2 -1
  176. package/dist/components/ui-items/UIItems.d.ts +1 -0
  177. package/dist/components/ui-items/UIItems.en.d.ts +1 -0
  178. package/dist/components/ui-json/UIJson.d.ts +1 -0
  179. package/dist/components/ui-json/UIJson.en.d.ts +1 -0
  180. package/dist/components/ui-keys/UIKeys.d.ts +1 -0
  181. package/dist/components/ui-keys/UIKeys.en.d.ts +1 -0
  182. package/dist/components/ui-label/UILabel.d.ts +3 -2
  183. package/dist/components/ui-label/UILabel.en.d.ts +3 -2
  184. package/dist/components/ui-label/UILabels.d.ts +1 -0
  185. package/dist/components/ui-label/UILabels.en.d.ts +1 -0
  186. package/dist/components/ui-list/UIList.d.ts +1 -0
  187. package/dist/components/ui-list/UIList.en.d.ts +1 -0
  188. package/dist/components/ui-loader/UILoader.d.ts +1 -0
  189. package/dist/components/ui-loader/UILoader.en.d.ts +1 -0
  190. package/dist/components/ui-markdown/MarkdownBox.d.ts +7 -2
  191. package/dist/components/ui-markdown/MarkdownFormats.d.ts +9 -4
  192. package/dist/components/ui-markdown/UIMarkdown.en.d.ts +5 -0
  193. package/dist/components/ui-markdown/UIMarkdown.es.d.ts +1 -0
  194. package/dist/components/ui-menu/ScrollingRow.d.ts +19 -1
  195. package/dist/components/ui-menu/SegmentedThumb.d.ts +8 -1
  196. package/dist/components/ui-menu/SubMenuAim.d.ts +115 -0
  197. package/dist/components/ui-menu/TitleFit.d.ts +16 -1
  198. package/dist/components/ui-menu/UIMenu.d.ts +112 -9
  199. package/dist/components/ui-menu/UIMenu.en.d.ts +3 -2
  200. package/dist/components/ui-menu/UISubmenu.d.ts +261 -0
  201. package/dist/components/ui-menu/UISubmenu.en.d.ts +102 -0
  202. package/dist/components/ui-menu/UISubmenu.es.d.ts +21 -0
  203. package/dist/components/ui-menu/index.d.ts +3 -1
  204. package/dist/components/ui-message/UIMessage.d.ts +3 -2
  205. package/dist/components/ui-message/UIMessage.en.d.ts +4 -3
  206. package/dist/components/ui-modal/ModalDialogs.d.ts +35 -3
  207. package/dist/components/ui-modal/UIModal.d.ts +6 -0
  208. package/dist/components/ui-modal/UIModal.en.d.ts +6 -0
  209. package/dist/components/ui-nag/UINag.d.ts +1 -0
  210. package/dist/components/ui-nag/UINag.en.d.ts +1 -0
  211. package/dist/components/ui-page/UIPage.d.ts +1 -0
  212. package/dist/components/ui-page/UIPage.en.d.ts +1 -0
  213. package/dist/components/ui-page-layout/UIPageLayout.d.ts +311 -0
  214. package/dist/components/ui-page-layout/UIPageLayout.en.d.ts +99 -0
  215. package/dist/components/ui-page-layout/UIPageLayout.es.d.ts +38 -0
  216. package/dist/components/ui-page-layout/index.d.ts +1 -0
  217. package/dist/components/ui-panel/ScrollShades.d.ts +38 -0
  218. package/dist/components/ui-panel/UIPanel.d.ts +21 -2
  219. package/dist/components/ui-panel/UIPanel.en.d.ts +68 -61
  220. package/dist/components/ui-parts/UIActions.d.ts +1 -0
  221. package/dist/components/ui-parts/UIActions.en.d.ts +1 -0
  222. package/dist/components/ui-parts/UIAuthor.d.ts +1 -0
  223. package/dist/components/ui-parts/UIAuthor.en.d.ts +1 -0
  224. package/dist/components/ui-parts/UIAvatar.d.ts +11 -2
  225. package/dist/components/ui-parts/UIAvatar.en.d.ts +3 -2
  226. package/dist/components/ui-parts/UIContent.d.ts +1 -0
  227. package/dist/components/ui-parts/UIContent.en.d.ts +1 -0
  228. package/dist/components/ui-parts/UIDate.d.ts +1 -0
  229. package/dist/components/ui-parts/UIDate.en.d.ts +1 -0
  230. package/dist/components/ui-parts/UIDescription.d.ts +1 -0
  231. package/dist/components/ui-parts/UIDescription.en.d.ts +1 -0
  232. package/dist/components/ui-parts/UIDetail.d.ts +1 -0
  233. package/dist/components/ui-parts/UIDetail.en.d.ts +1 -0
  234. package/dist/components/ui-parts/UIExtra.d.ts +1 -0
  235. package/dist/components/ui-parts/UIExtra.en.d.ts +1 -0
  236. package/dist/components/ui-parts/UIHeader.d.ts +4 -3
  237. package/dist/components/ui-parts/UIHeader.en.d.ts +4 -3
  238. package/dist/components/ui-parts/UIMeta.d.ts +1 -0
  239. package/dist/components/ui-parts/UIMeta.en.d.ts +1 -0
  240. package/dist/components/ui-parts/UIParts.types.d.ts +18 -5
  241. package/dist/components/ui-parts/UISummary.d.ts +1 -0
  242. package/dist/components/ui-parts/UISummary.en.d.ts +1 -0
  243. package/dist/components/ui-parts/UITitle.d.ts +1 -0
  244. package/dist/components/ui-parts/UITitle.en.d.ts +1 -0
  245. package/dist/components/ui-parts/UIValue.d.ts +1 -0
  246. package/dist/components/ui-parts/UIValue.en.d.ts +1 -0
  247. package/dist/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
  248. package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +1 -0
  249. package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
  250. package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +1 -0
  251. package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
  252. package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +1 -0
  253. package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
  254. package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +1 -0
  255. package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
  256. package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +1 -0
  257. package/dist/components/ui-popup/UIPopup.d.ts +21 -3
  258. package/dist/components/ui-popup/UIPopup.en.d.ts +1 -0
  259. package/dist/components/ui-progress/UIProgress.d.ts +3 -2
  260. package/dist/components/ui-progress/UIProgress.en.d.ts +4 -3
  261. package/dist/components/ui-property-editor/UIProperty.d.ts +47 -13
  262. package/dist/components/ui-property-editor/UIProperty.en.d.ts +1 -0
  263. package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +14 -1
  264. package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
  265. package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +7 -1
  266. package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +15 -6
  267. package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +1 -0
  268. package/dist/components/ui-quote/UIQuote.d.ts +1 -0
  269. package/dist/components/ui-quote/UIQuote.en.d.ts +1 -0
  270. package/dist/components/ui-rail/UIRail.d.ts +4 -3
  271. package/dist/components/ui-rail/UIRail.en.d.ts +4 -3
  272. package/dist/components/ui-rating/UIRating.d.ts +1 -0
  273. package/dist/components/ui-rating/UIRating.en.d.ts +1 -0
  274. package/dist/components/ui-rating/UIRating.fallback.d.ts +1 -0
  275. package/dist/components/ui-reveal/UIReveal.d.ts +1 -0
  276. package/dist/components/ui-reveal/UIReveal.en.d.ts +1 -0
  277. package/dist/components/ui-root/UIRoot.en.d.ts +1 -0
  278. package/dist/components/ui-search/UISearch.d.ts +1 -0
  279. package/dist/components/ui-search/UISearch.en.d.ts +1 -0
  280. package/dist/components/ui-search/UISearch.fallback.d.ts +1 -0
  281. package/dist/components/ui-section/UISection.d.ts +3 -2
  282. package/dist/components/ui-section/UISection.en.d.ts +3 -2
  283. package/dist/components/ui-section/UISections.d.ts +1 -0
  284. package/dist/components/ui-section/UISections.en.d.ts +1 -0
  285. package/dist/components/ui-segment/UISegment.d.ts +9 -10
  286. package/dist/components/ui-segment/UISegment.en.d.ts +10 -11
  287. package/dist/components/ui-segment/UISegments.d.ts +1 -0
  288. package/dist/components/ui-segment/UISegments.en.d.ts +1 -0
  289. package/dist/components/ui-select/UISelect.d.ts +1 -0
  290. package/dist/components/ui-select/UISelect.en.d.ts +1 -0
  291. package/dist/components/ui-select/UISelect.fallback.d.ts +1 -0
  292. package/dist/components/ui-shape/UIShape.d.ts +1 -0
  293. package/dist/components/ui-shape/UIShape.en.d.ts +1 -0
  294. package/dist/components/ui-shape/UISide.d.ts +1 -0
  295. package/dist/components/ui-shape/UISide.en.d.ts +1 -0
  296. package/dist/components/ui-sidebar/UIPushable.d.ts +1 -0
  297. package/dist/components/ui-sidebar/UIPushable.en.d.ts +1 -0
  298. package/dist/components/ui-sidebar/UIPusher.d.ts +1 -0
  299. package/dist/components/ui-sidebar/UIPusher.en.d.ts +1 -0
  300. package/dist/components/ui-sidebar/UISidebar.d.ts +1 -0
  301. package/dist/components/ui-sidebar/UISidebar.en.d.ts +1 -0
  302. package/dist/components/ui-sides/UISides.d.ts +1 -0
  303. package/dist/components/ui-sides/UISides.en.d.ts +1 -0
  304. package/dist/components/ui-sides/UISides.fallback.d.ts +1 -0
  305. package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.d.ts +118 -0
  306. package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.en.d.ts +49 -0
  307. package/dist/components/ui-site-breadcrumbs/UISiteBreadcrumbs.es.d.ts +22 -0
  308. package/dist/components/ui-site-breadcrumbs/index.d.ts +1 -0
  309. package/dist/components/ui-site-nav/SitePages.d.ts +26 -3
  310. package/dist/components/ui-site-nav/UISiteNav.d.ts +43 -5
  311. package/dist/components/ui-site-nav/UISiteNav.en.d.ts +10 -1
  312. package/dist/components/ui-site-nav-button/UISiteNavButton.d.ts +63 -0
  313. package/dist/components/ui-site-nav-button/UISiteNavButton.en.d.ts +173 -0
  314. package/dist/components/ui-site-nav-button/UISiteNavButton.es.d.ts +20 -0
  315. package/dist/components/ui-site-nav-button/index.d.ts +1 -0
  316. package/dist/components/ui-site-tabs/UISiteTabs.d.ts +21 -6
  317. package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +1 -0
  318. package/dist/components/ui-slider/UISlider.d.ts +1 -0
  319. package/dist/components/ui-slider/UISlider.en.d.ts +1 -0
  320. package/dist/components/ui-slider/UISlider.fallback.d.ts +1 -0
  321. package/dist/components/ui-space/UISpace.d.ts +1 -0
  322. package/dist/components/ui-space/UISpace.en.d.ts +1 -0
  323. package/dist/components/ui-split-panel/UISplitPanel.d.ts +43 -7
  324. package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +2 -1
  325. package/dist/components/ui-stack/UIStack.d.ts +1 -0
  326. package/dist/components/ui-stack/UIStack.en.d.ts +1 -0
  327. package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
  328. package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
  329. package/dist/components/ui-statistic/UIStatistics.d.ts +1 -0
  330. package/dist/components/ui-statistic/UIStatistics.en.d.ts +1 -0
  331. package/dist/components/ui-step/UIStep.d.ts +1 -0
  332. package/dist/components/ui-step/UIStep.en.d.ts +1 -0
  333. package/dist/components/ui-step/UISteps.d.ts +3 -2
  334. package/dist/components/ui-step/UISteps.en.d.ts +3 -2
  335. package/dist/components/ui-sticky/UISticky.d.ts +1 -0
  336. package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
  337. package/dist/components/ui-tab/UITab.d.ts +3 -2
  338. package/dist/components/ui-tab/UITab.en.d.ts +4 -3
  339. package/dist/components/ui-tab/UITabs.d.ts +5 -4
  340. package/dist/components/ui-tab/UITabs.en.d.ts +4 -3
  341. package/dist/components/ui-table/TableGrammar.d.ts +2 -2
  342. package/dist/components/ui-table/UICell.d.ts +1 -0
  343. package/dist/components/ui-table/UICell.en.d.ts +1 -0
  344. package/dist/components/ui-table/UITable.d.ts +7 -6
  345. package/dist/components/ui-table/UITable.en.d.ts +7 -6
  346. package/dist/components/ui-terms/UITerm.d.ts +1 -0
  347. package/dist/components/ui-terms/UITerm.en.d.ts +1 -0
  348. package/dist/components/ui-terms/UITerms.d.ts +1 -0
  349. package/dist/components/ui-terms/UITerms.en.d.ts +1 -0
  350. package/dist/components/ui-text/UILink.d.ts +1 -0
  351. package/dist/components/ui-text/UILink.en.d.ts +1 -0
  352. package/dist/components/ui-text/UIText.d.ts +2 -1
  353. package/dist/components/ui-text/UIText.en.d.ts +2 -1
  354. package/dist/components/ui-theme-editor/BenchAddress.d.ts +9 -0
  355. package/dist/components/ui-theme-editor/UIColorChip.d.ts +1 -0
  356. package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +1 -0
  357. package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +1 -0
  358. package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +1 -0
  359. package/dist/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
  360. package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +1 -0
  361. package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +37 -15
  362. package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +3 -2
  363. package/dist/components/ui-toast/ToastStack.d.ts +9 -0
  364. package/dist/components/ui-toast/UIToast.d.ts +1 -0
  365. package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
  366. package/dist/components/ui-toc/UIToc.d.ts +1 -0
  367. package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
  368. package/dist/components/ui-toolbar/UIToolbar.d.ts +134 -1
  369. package/dist/components/ui-toolbar/UIToolbar.en.d.ts +75 -42
  370. package/dist/components/ui-toolbar/UIToolbar.es.d.ts +5 -0
  371. package/dist/components/ui-transition/UITransition.d.ts +1 -0
  372. package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
  373. package/dist/components/ui-tree/UITree.d.ts +102 -2
  374. package/dist/components/ui-tree/UITree.en.d.ts +14 -1
  375. package/dist/components/ui-tree/UITree.es.d.ts +3 -0
  376. package/dist/components/ui-tree/UITreeItem.d.ts +21 -2
  377. package/dist/components/ui-tree/UITreeItem.en.d.ts +5 -1
  378. package/dist/components/ui-tree/UITreeItem.es.d.ts +1 -0
  379. package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +1 -0
  380. package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +1 -0
  381. package/dist/components/ui-tree-diagram/UITreeNode.d.ts +1 -0
  382. package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +1 -0
  383. package/dist/components/ui-video/UIAudio.d.ts +1 -0
  384. package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
  385. package/dist/components/ui-video/UIVideo.d.ts +1 -0
  386. package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
  387. package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
  388. package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
  389. package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
  390. package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
  391. package/dist/{components.es-BOa_7gFF.js → components.es-DEa8Ep42.js} +265 -77
  392. package/dist/components.es-DEa8Ep42.js.map +1 -0
  393. package/dist/core.js +795 -702
  394. package/dist/core.js.map +1 -1
  395. package/dist/{crisp-VfYZlTph.js → crisp-DIpY320U.js} +3 -4
  396. package/dist/crisp-DIpY320U.js.map +1 -0
  397. package/dist/crisp.theme-Ir9p4BDC.js +5 -0
  398. package/dist/crisp.theme-Ir9p4BDC.js.map +1 -0
  399. package/dist/{dark-CbUdPe0a.js → dark-B5s4QbmU.js} +2 -3
  400. package/dist/dark-B5s4QbmU.js.map +1 -0
  401. package/dist/{dist-BLYIGZVK.js → dist-BQT4KajA.js} +34 -80
  402. package/dist/dist-BQT4KajA.js.map +1 -0
  403. package/dist/docs-components/docs-components.types.d.ts +6 -0
  404. package/dist/docs-components/ui-docs-palette/UIDocsPalette.d.ts +180 -0
  405. package/dist/docs-components/ui-docs-palette/UIDocsPalette.en.d.ts +88 -0
  406. package/dist/docs-components/ui-docs-palette/UIDocsPalette.types.d.ts +5 -0
  407. package/dist/docs-components/ui-docs-palette/index.d.ts +2 -0
  408. package/dist/docs-components/ui-docs-tokens/UIDocsTokens.d.ts +23 -0
  409. package/dist/docs-components/ui-docs-tokens/UIDocsTokens.en.d.ts +5 -1
  410. package/dist/elements/PartComponent.d.ts +5 -0
  411. package/dist/elements/PopoverPanel.d.ts +12 -1
  412. package/dist/elements/Validator.d.ts +1 -1
  413. package/dist/emoji/cldr/{0-DSUpV2d7.js → 0-B6B0nyLW.js} +2 -3
  414. package/dist/emoji/cldr/0-B6B0nyLW.js.map +1 -0
  415. package/dist/emoji/cldr/{a-D_oB4vJ-.js → a-C12vpdzK.js} +2 -3
  416. package/dist/emoji/cldr/a-C12vpdzK.js.map +1 -0
  417. package/dist/emoji/cldr/{b-DX0W0Mda.js → b-BGkQUJ8v.js} +2 -3
  418. package/dist/emoji/cldr/b-BGkQUJ8v.js.map +1 -0
  419. package/dist/emoji/cldr/{c-DUHidpE9.js → c-DtqAfVnG.js} +2 -3
  420. package/dist/emoji/cldr/c-DtqAfVnG.js.map +1 -0
  421. package/dist/emoji/cldr/{d-CiCXZXay.js → d-B5SNGAad.js} +2 -3
  422. package/dist/emoji/cldr/d-B5SNGAad.js.map +1 -0
  423. package/dist/emoji/cldr/{e-DILJo3Ri.js → e-CMUDvE48.js} +2 -3
  424. package/dist/emoji/cldr/e-CMUDvE48.js.map +1 -0
  425. package/dist/emoji/cldr/{f-ByGFLyOq.js → f-Dfhd9bp8.js} +2 -3
  426. package/dist/emoji/cldr/f-Dfhd9bp8.js.map +1 -0
  427. package/dist/emoji/cldr/{g-BZ0FRsud.js → g-VpFllv6y.js} +2 -3
  428. package/dist/emoji/cldr/g-VpFllv6y.js.map +1 -0
  429. package/dist/emoji/cldr/{h-jtLdvRXQ.js → h-CE6GevC3.js} +2 -3
  430. package/dist/emoji/cldr/h-CE6GevC3.js.map +1 -0
  431. package/dist/emoji/cldr/{i-DcbJ5utE.js → i-BUPzV8pA.js} +2 -3
  432. package/dist/emoji/cldr/i-BUPzV8pA.js.map +1 -0
  433. package/dist/emoji/cldr/{j-BuEqP5nz.js → j-BFAg68Ig.js} +2 -3
  434. package/dist/emoji/cldr/j-BFAg68Ig.js.map +1 -0
  435. package/dist/emoji/cldr/{k-P1J6Gvze.js → k-jnBMfMlM.js} +2 -3
  436. package/dist/emoji/cldr/k-jnBMfMlM.js.map +1 -0
  437. package/dist/emoji/cldr/{l-28XcbsPr.js → l-ClLOCfnc.js} +2 -3
  438. package/dist/emoji/cldr/l-ClLOCfnc.js.map +1 -0
  439. package/dist/emoji/cldr/{m-DKgGJ8rW.js → m-p358YNne.js} +2 -3
  440. package/dist/emoji/cldr/m-p358YNne.js.map +1 -0
  441. package/dist/emoji/cldr/{n-DmPLP4F3.js → n-DOh1UxA2.js} +2 -3
  442. package/dist/emoji/cldr/n-DOh1UxA2.js.map +1 -0
  443. package/dist/emoji/cldr/{o-f98nt3s7.js → o-D_nTGMIR.js} +2 -3
  444. package/dist/emoji/cldr/o-D_nTGMIR.js.map +1 -0
  445. package/dist/emoji/cldr/{p-CxnsOTOt.js → p-BA8Ct3hE.js} +2 -3
  446. package/dist/emoji/cldr/p-BA8Ct3hE.js.map +1 -0
  447. package/dist/emoji/cldr/{r-D0GPRJ-Q.js → r-BFZ26mlC.js} +2 -3
  448. package/dist/emoji/cldr/r-BFZ26mlC.js.map +1 -0
  449. package/dist/emoji/cldr/{s-DcFuepnw.js → s-CIZH91hj.js} +2 -3
  450. package/dist/emoji/cldr/s-CIZH91hj.js.map +1 -0
  451. package/dist/emoji/cldr/{t-BvHgGpUr.js → t-qg9oQuYr.js} +2 -3
  452. package/dist/emoji/cldr/t-qg9oQuYr.js.map +1 -0
  453. package/dist/emoji/cldr/{u-ChFYHtUf.js → u-CN-QpqjC.js} +2 -3
  454. package/dist/emoji/cldr/u-CN-QpqjC.js.map +1 -0
  455. package/dist/emoji/cldr/{v-WmX3nWtZ.js → v-CO_76wOC.js} +2 -3
  456. package/dist/emoji/cldr/v-CO_76wOC.js.map +1 -0
  457. package/dist/emoji/cldr/{w-BPySQUWW.js → w-DOQn50Cw.js} +2 -3
  458. package/dist/emoji/cldr/w-DOQn50Cw.js.map +1 -0
  459. package/dist/emoji/cldr/x-DddFDGbR.js +5 -0
  460. package/dist/emoji/cldr/x-DddFDGbR.js.map +1 -0
  461. package/dist/emoji/cldr/{y-zB_yhTFg.js → y-auUWML2r.js} +2 -3
  462. package/dist/emoji/cldr/y-auUWML2r.js.map +1 -0
  463. package/dist/emoji/cldr/{z-BgJ94Cap.js → z-BYAp28d6.js} +2 -3
  464. package/dist/emoji/cldr/z-BYAp28d6.js.map +1 -0
  465. package/dist/emoji/fomantic/0-BdzcjXW3.js +9 -0
  466. package/dist/emoji/fomantic/0-BdzcjXW3.js.map +1 -0
  467. package/dist/emoji/fomantic/{a-CrqYlC21.js → a-R3ZJ-207.js} +2 -3
  468. package/dist/emoji/fomantic/a-R3ZJ-207.js.map +1 -0
  469. package/dist/emoji/fomantic/{b-DneVHRdQ.js → b-NF1y0dRD.js} +2 -3
  470. package/dist/emoji/fomantic/b-NF1y0dRD.js.map +1 -0
  471. package/dist/emoji/fomantic/{c-ClxKRuir.js → c-CuIzdNXI.js} +2 -3
  472. package/dist/emoji/fomantic/c-CuIzdNXI.js.map +1 -0
  473. package/dist/emoji/fomantic/{d-Djqs_y4s.js → d-CuS9uvGS.js} +2 -3
  474. package/dist/emoji/fomantic/d-CuS9uvGS.js.map +1 -0
  475. package/dist/emoji/fomantic/{e-CuF-jOQd.js → e-S2pyUDgP.js} +2 -3
  476. package/dist/emoji/fomantic/e-S2pyUDgP.js.map +1 -0
  477. package/dist/emoji/fomantic/{f-D8VglrJ4.js → f-DnHzZwKR.js} +2 -3
  478. package/dist/emoji/fomantic/f-DnHzZwKR.js.map +1 -0
  479. package/dist/emoji/fomantic/{g-Du_HFl6U.js → g-CdqbF8yB.js} +2 -3
  480. package/dist/emoji/fomantic/g-CdqbF8yB.js.map +1 -0
  481. package/dist/emoji/fomantic/{h-CLE5tHnM.js → h-Dgmy17VC.js} +2 -3
  482. package/dist/emoji/fomantic/h-Dgmy17VC.js.map +1 -0
  483. package/dist/emoji/fomantic/{i-BjOsrQDZ.js → i-BCe1z6Es.js} +2 -3
  484. package/dist/emoji/fomantic/i-BCe1z6Es.js.map +1 -0
  485. package/dist/emoji/fomantic/{j-CyUDXKCu.js → j-D39udLwj.js} +2 -3
  486. package/dist/emoji/fomantic/j-D39udLwj.js.map +1 -0
  487. package/dist/emoji/fomantic/{k-Clypg4R8.js → k-KDlJnEWX.js} +2 -3
  488. package/dist/emoji/fomantic/k-KDlJnEWX.js.map +1 -0
  489. package/dist/emoji/fomantic/{l-DvLPdBh-.js → l-rVE39-7Z.js} +2 -3
  490. package/dist/emoji/fomantic/l-rVE39-7Z.js.map +1 -0
  491. package/dist/emoji/fomantic/{m-B1lIb1kP.js → m-Bys5Cs9k.js} +2 -3
  492. package/dist/emoji/fomantic/m-Bys5Cs9k.js.map +1 -0
  493. package/dist/emoji/fomantic/{n-Bgpp_ht5.js → n-DzPz1atY.js} +2 -3
  494. package/dist/emoji/fomantic/n-DzPz1atY.js.map +1 -0
  495. package/dist/emoji/fomantic/{o-BhYZzpjp.js → o-lKtDGpuN.js} +2 -3
  496. package/dist/emoji/fomantic/o-lKtDGpuN.js.map +1 -0
  497. package/dist/emoji/fomantic/{p-VLL0GK3m.js → p-DUvy18Aa.js} +2 -3
  498. package/dist/emoji/fomantic/p-DUvy18Aa.js.map +1 -0
  499. package/dist/emoji/fomantic/q-WtSN0kE7.js +5 -0
  500. package/dist/emoji/fomantic/q-WtSN0kE7.js.map +1 -0
  501. package/dist/emoji/fomantic/{r-Bd1DjkkI.js → r-Dm_1szGZ.js} +2 -3
  502. package/dist/emoji/fomantic/r-Dm_1szGZ.js.map +1 -0
  503. package/dist/emoji/fomantic/{s-Bqatw1W7.js → s-LPRU4KZk.js} +2 -3
  504. package/dist/emoji/fomantic/s-LPRU4KZk.js.map +1 -0
  505. package/dist/emoji/fomantic/{t-Bs7IFhv3.js → t-iQksEIKb.js} +2 -3
  506. package/dist/emoji/fomantic/t-iQksEIKb.js.map +1 -0
  507. package/dist/emoji/fomantic/{u-M6GfYC-U.js → u-CkDd-u7Y.js} +2 -3
  508. package/dist/emoji/fomantic/u-CkDd-u7Y.js.map +1 -0
  509. package/dist/emoji/fomantic/{v-BKHNqkn0.js → v-C83uQ5pk.js} +2 -3
  510. package/dist/emoji/fomantic/v-C83uQ5pk.js.map +1 -0
  511. package/dist/emoji/fomantic/{w-B_XvIu7h.js → w-D_redhGe.js} +2 -3
  512. package/dist/emoji/fomantic/w-D_redhGe.js.map +1 -0
  513. package/dist/emoji/fomantic/x-eI_dPUEx.js +8 -0
  514. package/dist/emoji/fomantic/x-eI_dPUEx.js.map +1 -0
  515. package/dist/emoji/fomantic/{y-DPZaoIla.js → y-CO_6qz-J.js} +2 -3
  516. package/dist/emoji/fomantic/y-CO_6qz-J.js.map +1 -0
  517. package/dist/emoji/fomantic/{z-FH-kPXch.js → z-C-wWxD0a.js} +2 -3
  518. package/dist/emoji/fomantic/z-C-wWxD0a.js.map +1 -0
  519. package/dist/forms.js +65 -75
  520. package/dist/forms.js.map +1 -1
  521. package/dist/fruity-CsfZNeXb.js +5 -0
  522. package/dist/fruity-CsfZNeXb.js.map +1 -0
  523. package/dist/{fruity.theme-CbC7Jyvk.js → fruity.theme-BL7cCZUQ.js} +3 -4
  524. package/dist/fruity.theme-BL7cCZUQ.js.map +1 -0
  525. package/dist/glass-BCK30hpe.js +5 -0
  526. package/dist/glass-BCK30hpe.js.map +1 -0
  527. package/dist/glass.theme-C7QSRB7b.js +5 -0
  528. package/dist/glass.theme-C7QSRB7b.js.map +1 -0
  529. package/dist/hot.js +18 -32
  530. package/dist/hot.js.map +1 -1
  531. package/dist/index.d.ts +5 -0
  532. package/dist/index.js +96 -91
  533. package/dist/jsx.d.ts +3875 -711
  534. package/dist/matrix-DEnqBfwC.js +5 -0
  535. package/dist/matrix-DEnqBfwC.js.map +1 -0
  536. package/dist/matrix.theme-YV6_nvXv.js +5 -0
  537. package/dist/matrix.theme-YV6_nvXv.js.map +1 -0
  538. package/dist/{merlot-DOXLuUaU.js → merlot-DFa6kDbA.js} +3 -4
  539. package/dist/merlot-DFa6kDbA.js.map +1 -0
  540. package/dist/merlot.theme-B1K8nn2u.js +5 -0
  541. package/dist/merlot.theme-B1K8nn2u.js.map +1 -0
  542. package/dist/{midnight-BxlTQSfw.js → midnight-q0-3-V6U.js} +3 -4
  543. package/dist/midnight-q0-3-V6U.js.map +1 -0
  544. package/dist/midnight.theme-C7M02wTD.js +5 -0
  545. package/dist/midnight.theme-C7M02wTD.js.map +1 -0
  546. package/dist/mockup-D0vovNO7.js +5 -0
  547. package/dist/mockup-D0vovNO7.js.map +1 -0
  548. package/dist/mockup.theme-C92r9NI0.js +5 -0
  549. package/dist/mockup.theme-C92r9NI0.js.map +1 -0
  550. package/dist/{paper-M61nUilz.js → paper-DPxolmdy.js} +3 -4
  551. package/dist/paper-DPxolmdy.js.map +1 -0
  552. package/dist/paper.theme-BAKk3DY1.js +5 -0
  553. package/dist/paper.theme-BAKk3DY1.js.map +1 -0
  554. package/dist/{persist.types-D2m6wD-S.js → persist.types-D7N7GewC.js} +2 -3
  555. package/dist/persist.types-D7N7GewC.js.map +1 -0
  556. package/dist/{pop-CxXfytjk.js → pop-Dw_6k177.js} +3 -4
  557. package/dist/pop-Dw_6k177.js.map +1 -0
  558. package/dist/pop.theme-Cw-yD0MO.js +5 -0
  559. package/dist/pop.theme-Cw-yD0MO.js.map +1 -0
  560. package/dist/property/PropertyEditorPages.d.ts +1 -1
  561. package/dist/property/PropertyLayouts.d.ts +119 -0
  562. package/dist/property/PropertySchemas.d.ts +5 -1
  563. package/dist/property/index.d.ts +2 -0
  564. package/dist/{rolldown-runtime-CYGlBXrH.js → rolldown-runtime-c6e9CmGy.js} +2 -3
  565. package/dist/runtime/Browser.d.ts +7 -0
  566. package/dist/runtime/DataTooltips.d.ts +2 -0
  567. package/dist/runtime/Keyboard.d.ts +4 -1
  568. package/dist/runtime/Toasts.d.ts +10 -0
  569. package/dist/runtime/runtime.types.d.ts +52 -0
  570. package/dist/{search-CzSzx7bX.js → search-C2Rq9HF1.js} +1 -2
  571. package/dist/search-C2Rq9HF1.js.map +1 -0
  572. package/dist/spell-CB-MivSX.js +5 -0
  573. package/dist/spell-CB-MivSX.js.map +1 -0
  574. package/dist/spell.theme-CUoc5rTq.js +5 -0
  575. package/dist/spell.theme-CUoc5rTq.js.map +1 -0
  576. package/dist/styles/StyleGenerator.d.ts +7 -0
  577. package/dist/styles/styles.en.d.ts +27 -18
  578. package/dist/{styles.en-CUUxNwHo.js → styles.en-DZlSJiOR.js} +21 -21
  579. package/dist/styles.en-DZlSJiOR.js.map +1 -0
  580. package/dist/styles.js +9 -10
  581. package/dist/styles.js.map +1 -1
  582. package/dist/ui-accordion.editor-BP8uQGGU.js +5 -0
  583. package/dist/ui-accordion.editor-BP8uQGGU.js.map +1 -0
  584. package/dist/ui-accordion.js +59 -60
  585. package/dist/ui-accordion.js.map +1 -1
  586. package/dist/ui-action.editor-m5R5N5Wy.js +5 -0
  587. package/dist/ui-action.editor-m5R5N5Wy.js.map +1 -0
  588. package/dist/ui-action.js +73 -45
  589. package/dist/ui-action.js.map +1 -1
  590. package/dist/ui-actions.editor-Buc3N2ik.js +5 -0
  591. package/dist/ui-actions.editor-Buc3N2ik.js.map +1 -0
  592. package/dist/ui-ad.editor-BHTDuSii.js +5 -0
  593. package/dist/ui-ad.editor-BHTDuSii.js.map +1 -0
  594. package/dist/ui-ad.js +8 -9
  595. package/dist/ui-ad.js.map +1 -1
  596. package/dist/ui-app-menu.editor-DxPPnMUT.js +5 -0
  597. package/dist/ui-app-menu.editor-DxPPnMUT.js.map +1 -0
  598. package/dist/ui-app-menu.js +89 -0
  599. package/dist/ui-app-menu.js.map +1 -0
  600. package/dist/ui-audio.editor-Y6WeqLRh.js +5 -0
  601. package/dist/ui-audio.editor-Y6WeqLRh.js.map +1 -0
  602. package/dist/ui-author.editor-Bmf-rEXY.js +5 -0
  603. package/dist/ui-author.editor-Bmf-rEXY.js.map +1 -0
  604. package/dist/ui-avatar.editor-CSU6snQz.js +5 -0
  605. package/dist/ui-avatar.editor-CSU6snQz.js.map +1 -0
  606. package/dist/ui-breadcrumb.editor-N1-8OzDq.js +5 -0
  607. package/dist/ui-breadcrumb.editor-N1-8OzDq.js.map +1 -0
  608. package/dist/ui-breadcrumbs.editor-Mml0fUR_.js +5 -0
  609. package/dist/ui-breadcrumbs.editor-Mml0fUR_.js.map +1 -0
  610. package/dist/ui-breadcrumbs.js +18 -17
  611. package/dist/ui-breadcrumbs.js.map +1 -1
  612. package/dist/ui-button.editor-BV9Bh_xf.js +5 -0
  613. package/dist/ui-button.editor-BV9Bh_xf.js.map +1 -0
  614. package/dist/ui-button.js +157 -156
  615. package/dist/ui-button.js.map +1 -1
  616. package/dist/ui-buttons.editor-CSsEIo2s.js +5 -0
  617. package/dist/ui-buttons.editor-CSsEIo2s.js.map +1 -0
  618. package/dist/ui-calendar.editor-TsP8a97s.js +5 -0
  619. package/dist/ui-calendar.editor-TsP8a97s.js.map +1 -0
  620. package/dist/ui-calendar.js +148 -157
  621. package/dist/ui-calendar.js.map +1 -1
  622. package/dist/ui-card.editor-BBZj9e03.js +5 -0
  623. package/dist/ui-card.editor-BBZj9e03.js.map +1 -0
  624. package/dist/ui-card.js +70 -70
  625. package/dist/ui-card.js.map +1 -1
  626. package/dist/ui-cards.editor-Hrmldr4q.js +5 -0
  627. package/dist/ui-cards.editor-Hrmldr4q.js.map +1 -0
  628. package/dist/ui-cell.editor-Dmz_mwJ0.js +5 -0
  629. package/dist/ui-cell.editor-Dmz_mwJ0.js.map +1 -0
  630. package/dist/ui-checkbox.editor-DnOz9r6d.js +5 -0
  631. package/dist/ui-checkbox.editor-DnOz9r6d.js.map +1 -0
  632. package/dist/ui-checkbox.js +49 -48
  633. package/dist/ui-checkbox.js.map +1 -1
  634. package/dist/ui-code.editor-Drr_FVB6.js +5 -0
  635. package/dist/ui-code.editor-Drr_FVB6.js.map +1 -0
  636. package/dist/ui-code.js +116 -79
  637. package/dist/ui-code.js.map +1 -1
  638. package/dist/ui-color-chip.editor-B3zV8FkB.js +5 -0
  639. package/dist/ui-color-chip.editor-B3zV8FkB.js.map +1 -0
  640. package/dist/ui-column.editor-hdUb-qwT.js +5 -0
  641. package/dist/ui-column.editor-hdUb-qwT.js.map +1 -0
  642. package/dist/ui-comment.editor-DJpE_8tz.js +5 -0
  643. package/dist/ui-comment.editor-DJpE_8tz.js.map +1 -0
  644. package/dist/ui-comment.js +15 -14
  645. package/dist/ui-comment.js.map +1 -1
  646. package/dist/ui-comments.editor-GFJN6l3Q.js +5 -0
  647. package/dist/ui-comments.editor-GFJN6l3Q.js.map +1 -0
  648. package/dist/ui-components.editor-BKFXnARt.js +5 -0
  649. package/dist/ui-components.editor-BKFXnARt.js.map +1 -0
  650. package/dist/ui-components.js +12 -13
  651. package/dist/ui-components.js.map +1 -1
  652. package/dist/ui-container.editor-CBNhNkRm.js +5 -0
  653. package/dist/ui-container.editor-CBNhNkRm.js.map +1 -0
  654. package/dist/ui-container.js +106 -21
  655. package/dist/ui-container.js.map +1 -1
  656. package/dist/ui-content.editor-B78lxK3P.js +5 -0
  657. package/dist/ui-content.editor-B78lxK3P.js.map +1 -0
  658. package/dist/ui-date.editor-PHEnU7QX.js +5 -0
  659. package/dist/ui-date.editor-PHEnU7QX.js.map +1 -0
  660. package/dist/ui-description.editor-DWFDJ9mV.js +5 -0
  661. package/dist/ui-description.editor-DWFDJ9mV.js.map +1 -0
  662. package/dist/ui-detail.editor-wliuVbx3.js +5 -0
  663. package/dist/ui-detail.editor-wliuVbx3.js.map +1 -0
  664. package/dist/ui-device.editor-kl48NVma.js +5 -0
  665. package/dist/ui-device.editor-kl48NVma.js.map +1 -0
  666. package/dist/ui-device.js +436 -0
  667. package/dist/ui-device.js.map +1 -0
  668. package/dist/ui-diagram-node.editor-6FyjT7oj.js +5 -0
  669. package/dist/ui-diagram-node.editor-6FyjT7oj.js.map +1 -0
  670. package/dist/ui-diagram.editor-Dn3ef-J9.js +5 -0
  671. package/dist/ui-diagram.editor-Dn3ef-J9.js.map +1 -0
  672. package/dist/ui-diagram.js +128 -129
  673. package/dist/ui-diagram.js.map +1 -1
  674. package/dist/ui-dimension.editor-BEXGKcCB.js +5 -0
  675. package/dist/ui-dimension.editor-BEXGKcCB.js.map +1 -0
  676. package/dist/ui-dimension.js +111 -12
  677. package/dist/ui-dimension.js.map +1 -1
  678. package/dist/ui-dimmer.editor-D14xzXIe.js +5 -0
  679. package/dist/ui-dimmer.editor-D14xzXIe.js.map +1 -0
  680. package/dist/ui-dimmer.js +29 -30
  681. package/dist/ui-dimmer.js.map +1 -1
  682. package/dist/ui-divider.editor-D6ozEXjx.js +5 -0
  683. package/dist/ui-divider.editor-D6ozEXjx.js.map +1 -0
  684. package/dist/ui-divider.js +9 -10
  685. package/dist/ui-divider.js.map +1 -1
  686. package/dist/ui-dropdown.editor-OFDGi1oz.js +5 -0
  687. package/dist/ui-dropdown.editor-OFDGi1oz.js.map +1 -0
  688. package/dist/ui-dropdown.js +155 -156
  689. package/dist/ui-dropdown.js.map +1 -1
  690. package/dist/ui-embed.editor-DHsrjw1j.js +5 -0
  691. package/dist/ui-embed.editor-DHsrjw1j.js.map +1 -0
  692. package/dist/ui-embed.js +23 -24
  693. package/dist/ui-embed.js.map +1 -1
  694. package/dist/ui-emoji.editor-DUL230Hi.js +5 -0
  695. package/dist/ui-emoji.editor-DUL230Hi.js.map +1 -0
  696. package/dist/ui-emoji.js +63 -64
  697. package/dist/ui-emoji.js.map +1 -1
  698. package/dist/ui-event.editor-Bk17y7wW.js +5 -0
  699. package/dist/ui-event.editor-Bk17y7wW.js.map +1 -0
  700. package/dist/ui-example.editor-D46Vnctp.js +5 -0
  701. package/dist/ui-example.editor-D46Vnctp.js.map +1 -0
  702. package/dist/ui-example.js +67 -74
  703. package/dist/ui-example.js.map +1 -1
  704. package/dist/ui-extra.editor-rX6sfH2e.js +5 -0
  705. package/dist/ui-extra.editor-rX6sfH2e.js.map +1 -0
  706. package/dist/ui-feed.editor-B7ycWh1b.js +5 -0
  707. package/dist/ui-feed.editor-B7ycWh1b.js.map +1 -0
  708. package/dist/ui-feed.js +26 -25
  709. package/dist/ui-feed.js.map +1 -1
  710. package/dist/ui-field.editor-Bz9xyCVv.js +5 -0
  711. package/dist/ui-field.editor-Bz9xyCVv.js.map +1 -0
  712. package/dist/ui-fields.editor-BUtW4NTk.js +5 -0
  713. package/dist/ui-fields.editor-BUtW4NTk.js.map +1 -0
  714. package/dist/ui-flag.editor-DNfdXo7y.js +5 -0
  715. package/dist/ui-flag.editor-DNfdXo7y.js.map +1 -0
  716. package/dist/ui-flag.js +13 -14
  717. package/dist/ui-flag.js.map +1 -1
  718. package/dist/ui-flyout.editor-b7UJYiV9.js +5 -0
  719. package/dist/ui-flyout.editor-b7UJYiV9.js.map +1 -0
  720. package/dist/ui-flyout.js +10 -11
  721. package/dist/ui-flyout.js.map +1 -1
  722. package/dist/ui-form.editor-BJC3WhNf.js +5 -0
  723. package/dist/ui-form.editor-BJC3WhNf.js.map +1 -0
  724. package/dist/ui-form.js +199 -195
  725. package/dist/ui-form.js.map +1 -1
  726. package/dist/ui-grid.editor-DVn2YIBW.js +5 -0
  727. package/dist/ui-grid.editor-DVn2YIBW.js.map +1 -0
  728. package/dist/ui-grid.js +43 -234
  729. package/dist/ui-grid.js.map +1 -1
  730. package/dist/ui-header.editor-meOjCASK.js +5 -0
  731. package/dist/ui-header.editor-meOjCASK.js.map +1 -0
  732. package/dist/ui-icon-picker.editor-vFPbT9Kh.js +5 -0
  733. package/dist/ui-icon-picker.editor-vFPbT9Kh.js.map +1 -0
  734. package/dist/ui-icon-picker.js +64 -69
  735. package/dist/ui-icon-picker.js.map +1 -1
  736. package/dist/ui-icon.editor-DoKK49PD.js +5 -0
  737. package/dist/ui-icon.editor-DoKK49PD.js.map +1 -0
  738. package/dist/ui-icon.js +15 -14
  739. package/dist/ui-icon.js.map +1 -1
  740. package/dist/ui-icons.editor-CSD6fOVt.js +5 -0
  741. package/dist/ui-icons.editor-CSD6fOVt.js.map +1 -0
  742. package/dist/ui-image.editor-D4ZUC_Ka.js +5 -0
  743. package/dist/ui-image.editor-D4ZUC_Ka.js.map +1 -0
  744. package/dist/ui-image.js +26 -26
  745. package/dist/ui-image.js.map +1 -1
  746. package/dist/ui-images.editor-Cb0D3vnI.js +5 -0
  747. package/dist/ui-images.editor-Cb0D3vnI.js.map +1 -0
  748. package/dist/ui-include.editor-CZcsVJbH.js +5 -0
  749. package/dist/ui-include.editor-CZcsVJbH.js.map +1 -0
  750. package/dist/ui-include.js +21 -22
  751. package/dist/ui-include.js.map +1 -1
  752. package/dist/ui-input.editor-budoNoB0.js +5 -0
  753. package/dist/ui-input.editor-budoNoB0.js.map +1 -0
  754. package/dist/ui-input.js +131 -130
  755. package/dist/ui-input.js.map +1 -1
  756. package/dist/ui-item.editor-BlWp1HXu.js +5 -0
  757. package/dist/ui-item.editor-BlWp1HXu.js.map +1 -0
  758. package/dist/ui-item.js +127 -113
  759. package/dist/ui-item.js.map +1 -1
  760. package/dist/ui-items.editor-GOul3Xss.js +5 -0
  761. package/dist/ui-items.editor-GOul3Xss.js.map +1 -0
  762. package/dist/ui-items.js +11 -12
  763. package/dist/ui-items.js.map +1 -1
  764. package/dist/ui-json.editor-BgZbrB_W.js +5 -0
  765. package/dist/ui-json.editor-BgZbrB_W.js.map +1 -0
  766. package/dist/ui-json.js +18 -19
  767. package/dist/ui-json.js.map +1 -1
  768. package/dist/ui-keys.editor-BI9EDtS4.js +5 -0
  769. package/dist/ui-keys.editor-BI9EDtS4.js.map +1 -0
  770. package/dist/ui-keys.js +2 -3
  771. package/dist/ui-label.editor-BVUYLSUs.js +5 -0
  772. package/dist/ui-label.editor-BVUYLSUs.js.map +1 -0
  773. package/dist/ui-label.js +22 -22
  774. package/dist/ui-label.js.map +1 -1
  775. package/dist/ui-labels.editor-BWJth86p.js +5 -0
  776. package/dist/ui-labels.editor-BWJth86p.js.map +1 -0
  777. package/dist/ui-link.editor-CpI53scP.js +5 -0
  778. package/dist/ui-link.editor-CpI53scP.js.map +1 -0
  779. package/dist/ui-list.editor-DhBZIkAa.js +5 -0
  780. package/dist/ui-list.editor-DhBZIkAa.js.map +1 -0
  781. package/dist/ui-list.js +9 -10
  782. package/dist/ui-list.js.map +1 -1
  783. package/dist/ui-loader.editor-BJlvmP7S.js +5 -0
  784. package/dist/ui-loader.editor-BJlvmP7S.js.map +1 -0
  785. package/dist/ui-loader.js +10 -11
  786. package/dist/ui-loader.js.map +1 -1
  787. package/dist/ui-markdown.editor-DPVKyxXa.js +5 -0
  788. package/dist/ui-markdown.editor-DPVKyxXa.js.map +1 -0
  789. package/dist/ui-markdown.js +208 -154
  790. package/dist/ui-markdown.js.map +1 -1
  791. package/dist/ui-menu.editor-DJ3PhWtK.js +5 -0
  792. package/dist/ui-menu.editor-DJ3PhWtK.js.map +1 -0
  793. package/dist/ui-menu.js +815 -223
  794. package/dist/ui-menu.js.map +1 -1
  795. package/dist/ui-message.editor-vfT0pyu5.js +5 -0
  796. package/dist/ui-message.editor-vfT0pyu5.js.map +1 -0
  797. package/dist/ui-message.js +32 -33
  798. package/dist/ui-message.js.map +1 -1
  799. package/dist/ui-meta.editor-Bk5m43-E.js +5 -0
  800. package/dist/ui-meta.editor-Bk5m43-E.js.map +1 -0
  801. package/dist/ui-modal.editor-B6gmmGsR.js +5 -0
  802. package/dist/ui-modal.editor-B6gmmGsR.js.map +1 -0
  803. package/dist/ui-modal.js +128 -99
  804. package/dist/ui-modal.js.map +1 -1
  805. package/dist/ui-nag.editor-BJ3Ia2Bi.js +5 -0
  806. package/dist/ui-nag.editor-BJ3Ia2Bi.js.map +1 -0
  807. package/dist/ui-nag.js +23 -24
  808. package/dist/ui-nag.js.map +1 -1
  809. package/dist/ui-or.editor-BfBLNVgm.js +5 -0
  810. package/dist/ui-or.editor-BfBLNVgm.js.map +1 -0
  811. package/dist/ui-page-layout.editor-xtQW0FZk.js +5 -0
  812. package/dist/ui-page-layout.editor-xtQW0FZk.js.map +1 -0
  813. package/dist/ui-page-layout.js +363 -0
  814. package/dist/ui-page-layout.js.map +1 -0
  815. package/dist/ui-page.editor-Bd5mzlj7.js +5 -0
  816. package/dist/ui-page.editor-Bd5mzlj7.js.map +1 -0
  817. package/dist/ui-page.js +11 -12
  818. package/dist/ui-page.js.map +1 -1
  819. package/dist/ui-panel.editor-BCUkdr4S.js +5 -0
  820. package/dist/ui-panel.editor-BCUkdr4S.js.map +1 -0
  821. package/dist/ui-panel.js +105 -27
  822. package/dist/ui-panel.js.map +1 -1
  823. package/dist/ui-parts.js +83 -68
  824. package/dist/ui-parts.js.map +1 -1
  825. package/dist/ui-placeholder-header.editor-CJNO08Ax.js +5 -0
  826. package/dist/ui-placeholder-header.editor-CJNO08Ax.js.map +1 -0
  827. package/dist/ui-placeholder-image.editor-DctJiCNv.js +5 -0
  828. package/dist/ui-placeholder-image.editor-DctJiCNv.js.map +1 -0
  829. package/dist/ui-placeholder-line.editor-DcxH7mOo.js +5 -0
  830. package/dist/ui-placeholder-line.editor-DcxH7mOo.js.map +1 -0
  831. package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js +5 -0
  832. package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js.map +1 -0
  833. package/dist/ui-placeholder.editor-Bc0CYlZZ.js +5 -0
  834. package/dist/ui-placeholder.editor-Bc0CYlZZ.js.map +1 -0
  835. package/dist/ui-placeholder.js +23 -19
  836. package/dist/ui-placeholder.js.map +1 -1
  837. package/dist/ui-popup.editor-ByUi4CYs.js +5 -0
  838. package/dist/ui-popup.editor-ByUi4CYs.js.map +1 -0
  839. package/dist/ui-popup.js +107 -100
  840. package/dist/ui-popup.js.map +1 -1
  841. package/dist/ui-progress.editor-DX0IjhxZ.js +5 -0
  842. package/dist/ui-progress.editor-DX0IjhxZ.js.map +1 -0
  843. package/dist/ui-progress.js +23 -24
  844. package/dist/ui-progress.js.map +1 -1
  845. package/dist/ui-property-editor.editor-pS6tCPPT.js +5 -0
  846. package/dist/ui-property-editor.editor-pS6tCPPT.js.map +1 -0
  847. package/dist/ui-property-editor.js +649 -277
  848. package/dist/ui-property-editor.js.map +1 -1
  849. package/dist/ui-property-group.editor-BlpUMVlr.js +5 -0
  850. package/dist/ui-property-group.editor-BlpUMVlr.js.map +1 -0
  851. package/dist/ui-property.editor-BC-jtjjt.js +5 -0
  852. package/dist/ui-property.editor-BC-jtjjt.js.map +1 -0
  853. package/dist/ui-pushable.editor-8_EmUD9x.js +5 -0
  854. package/dist/ui-pushable.editor-8_EmUD9x.js.map +1 -0
  855. package/dist/ui-pusher.editor-CiCX6-1J.js +5 -0
  856. package/dist/ui-pusher.editor-CiCX6-1J.js.map +1 -0
  857. package/dist/ui-quote.editor-BvmAjmo9.js +5 -0
  858. package/dist/ui-quote.editor-BvmAjmo9.js.map +1 -0
  859. package/dist/ui-quote.js +8 -9
  860. package/dist/ui-quote.js.map +1 -1
  861. package/dist/ui-radio.editor-DPzActfO.js +5 -0
  862. package/dist/ui-radio.editor-DPzActfO.js.map +1 -0
  863. package/dist/ui-rail.editor-DRfVH4P2.js +5 -0
  864. package/dist/ui-rail.editor-DRfVH4P2.js.map +1 -0
  865. package/dist/ui-rail.js +11 -12
  866. package/dist/ui-rail.js.map +1 -1
  867. package/dist/ui-rating.editor-C19syymj.js +5 -0
  868. package/dist/ui-rating.editor-C19syymj.js.map +1 -0
  869. package/dist/ui-rating.js +40 -49
  870. package/dist/ui-rating.js.map +1 -1
  871. package/dist/ui-repeat.editor-DEf-bFGj.js +5 -0
  872. package/dist/ui-repeat.editor-DEf-bFGj.js.map +1 -0
  873. package/dist/ui-reveal.editor-D7pDOaen.js +5 -0
  874. package/dist/ui-reveal.editor-D7pDOaen.js.map +1 -0
  875. package/dist/ui-reveal.js +10 -11
  876. package/dist/ui-reveal.js.map +1 -1
  877. package/dist/ui-root.editor-CAokPDVa.js +5 -0
  878. package/dist/ui-root.editor-CAokPDVa.js.map +1 -0
  879. package/dist/ui-root.js +206 -102
  880. package/dist/ui-root.js.map +1 -1
  881. package/dist/ui-row.editor-C00Z6Jl5.js +5 -0
  882. package/dist/ui-row.editor-C00Z6Jl5.js.map +1 -0
  883. package/dist/ui-search.editor-CtzfYgNu.js +5 -0
  884. package/dist/ui-search.editor-CtzfYgNu.js.map +1 -0
  885. package/dist/ui-search.js +143 -146
  886. package/dist/ui-search.js.map +1 -1
  887. package/dist/ui-section.editor-DmNICxCs.js +5 -0
  888. package/dist/ui-section.editor-DmNICxCs.js.map +1 -0
  889. package/dist/ui-section.js +74 -73
  890. package/dist/ui-section.js.map +1 -1
  891. package/dist/ui-sections.editor-BxXECGv9.js +5 -0
  892. package/dist/ui-sections.editor-BxXECGv9.js.map +1 -0
  893. package/dist/ui-segment.editor-CebyLPFn.js +5 -0
  894. package/dist/ui-segment.editor-CebyLPFn.js.map +1 -0
  895. package/dist/ui-segment.js +43 -43
  896. package/dist/ui-segment.js.map +1 -1
  897. package/dist/ui-segments.editor-CSumzMa5.js +5 -0
  898. package/dist/ui-segments.editor-CSumzMa5.js.map +1 -0
  899. package/dist/ui-select.editor-wAcZzvU7.js +5 -0
  900. package/dist/ui-select.editor-wAcZzvU7.js.map +1 -0
  901. package/dist/ui-select.js +86 -87
  902. package/dist/ui-select.js.map +1 -1
  903. package/dist/ui-shape.editor-By9-8aD2.js +5 -0
  904. package/dist/ui-shape.editor-By9-8aD2.js.map +1 -0
  905. package/dist/ui-shape.js +39 -38
  906. package/dist/ui-shape.js.map +1 -1
  907. package/dist/ui-side.editor-CFSqGHGH.js +5 -0
  908. package/dist/ui-side.editor-CFSqGHGH.js.map +1 -0
  909. package/dist/ui-sidebar.editor-DWFPQcXv.js +5 -0
  910. package/dist/ui-sidebar.editor-DWFPQcXv.js.map +1 -0
  911. package/dist/ui-sidebar.js +79 -77
  912. package/dist/ui-sidebar.js.map +1 -1
  913. package/dist/ui-sides.editor-CONIJ1r3.js +5 -0
  914. package/dist/ui-sides.editor-CONIJ1r3.js.map +1 -0
  915. package/dist/ui-sides.js +25 -26
  916. package/dist/ui-sides.js.map +1 -1
  917. package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js +5 -0
  918. package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js.map +1 -0
  919. package/dist/ui-site-breadcrumbs.js +143 -0
  920. package/dist/ui-site-breadcrumbs.js.map +1 -0
  921. package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +5 -0
  922. package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +1 -0
  923. package/dist/ui-site-nav-button.js +113 -0
  924. package/dist/ui-site-nav-button.js.map +1 -0
  925. package/dist/ui-site-nav.editor-CKEsOGCX.js +5 -0
  926. package/dist/ui-site-nav.editor-CKEsOGCX.js.map +1 -0
  927. package/dist/ui-site-nav.js +133 -97
  928. package/dist/ui-site-nav.js.map +1 -1
  929. package/dist/ui-site-tabs.editor-DDvQfH6S.js +5 -0
  930. package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +1 -0
  931. package/dist/ui-site-tabs.js +53 -48
  932. package/dist/ui-site-tabs.js.map +1 -1
  933. package/dist/ui-slider.editor-BEaasx5Q.js +5 -0
  934. package/dist/ui-slider.editor-BEaasx5Q.js.map +1 -0
  935. package/dist/ui-slider.js +37 -38
  936. package/dist/ui-slider.js.map +1 -1
  937. package/dist/ui-space.editor-s-XVWFBN.js +5 -0
  938. package/dist/ui-space.editor-s-XVWFBN.js.map +1 -0
  939. package/dist/ui-space.js +9 -10
  940. package/dist/ui-space.js.map +1 -1
  941. package/dist/ui-split-panel.editor-Cvy5W7nk.js +5 -0
  942. package/dist/ui-split-panel.editor-Cvy5W7nk.js.map +1 -0
  943. package/dist/ui-split-panel.js +107 -68
  944. package/dist/ui-split-panel.js.map +1 -1
  945. package/dist/ui-stack.editor-D69Fky6H.js +5 -0
  946. package/dist/ui-stack.editor-D69Fky6H.js.map +1 -0
  947. package/dist/ui-stack.js +12 -13
  948. package/dist/ui-stack.js.map +1 -1
  949. package/dist/ui-statistic.editor-CBzYqbQ5.js +5 -0
  950. package/dist/ui-statistic.editor-CBzYqbQ5.js.map +1 -0
  951. package/dist/ui-statistic.js +28 -27
  952. package/dist/ui-statistic.js.map +1 -1
  953. package/dist/ui-statistics.editor-fzh3uk_b.js +5 -0
  954. package/dist/ui-statistics.editor-fzh3uk_b.js.map +1 -0
  955. package/dist/ui-step.editor-CYmNXrk_.js +5 -0
  956. package/dist/ui-step.editor-CYmNXrk_.js.map +1 -0
  957. package/dist/ui-step.js +62 -61
  958. package/dist/ui-step.js.map +1 -1
  959. package/dist/ui-steps.editor-BkMIrUrj.js +5 -0
  960. package/dist/ui-steps.editor-BkMIrUrj.js.map +1 -0
  961. package/dist/ui-sticky.editor-D7R1AlJv.js +5 -0
  962. package/dist/ui-sticky.editor-D7R1AlJv.js.map +1 -0
  963. package/dist/ui-sticky.js +10 -11
  964. package/dist/ui-sticky.js.map +1 -1
  965. package/dist/ui-submenu.editor-NdjS0em-.js +5 -0
  966. package/dist/ui-submenu.editor-NdjS0em-.js.map +1 -0
  967. package/dist/ui-summary.editor-CCHS1mVz.js +5 -0
  968. package/dist/ui-summary.editor-CCHS1mVz.js.map +1 -0
  969. package/dist/ui-tab.editor-DCS-gCZV.js +5 -0
  970. package/dist/ui-tab.editor-DCS-gCZV.js.map +1 -0
  971. package/dist/ui-tab.js +115 -117
  972. package/dist/ui-tab.js.map +1 -1
  973. package/dist/ui-table.editor-DJvfg9oG.js +5 -0
  974. package/dist/ui-table.editor-DJvfg9oG.js.map +1 -0
  975. package/dist/ui-table.js +272 -272
  976. package/dist/ui-table.js.map +1 -1
  977. package/dist/ui-tabs.editor-waeMoFNM.js +5 -0
  978. package/dist/ui-tabs.editor-waeMoFNM.js.map +1 -0
  979. package/dist/ui-term.editor-BMCF3jBM.js +5 -0
  980. package/dist/ui-term.editor-BMCF3jBM.js.map +1 -0
  981. package/dist/ui-terms.editor-BLfVVsjI.js +5 -0
  982. package/dist/ui-terms.editor-BLfVVsjI.js.map +1 -0
  983. package/dist/ui-terms.js +13 -12
  984. package/dist/ui-terms.js.map +1 -1
  985. package/dist/ui-text.editor-B6AENK13.js +5 -0
  986. package/dist/ui-text.editor-B6AENK13.js.map +1 -0
  987. package/dist/ui-text.js +37 -36
  988. package/dist/ui-text.js.map +1 -1
  989. package/dist/ui-textarea.editor-C25lVwrF.js +5 -0
  990. package/dist/ui-textarea.editor-C25lVwrF.js.map +1 -0
  991. package/dist/ui-theme-editor.editor-CQGAgy-Q.js +5 -0
  992. package/dist/ui-theme-editor.editor-CQGAgy-Q.js.map +1 -0
  993. package/dist/ui-theme-editor.js +448 -461
  994. package/dist/ui-theme-editor.js.map +1 -1
  995. package/dist/{ui-theme-menu-CuIjr8Ou.js → ui-theme-menu-BZYUMrHe.js} +356 -352
  996. package/dist/ui-theme-menu-BZYUMrHe.js.map +1 -0
  997. package/dist/ui-theme-menu.editor-DNeI-hxN.js +5 -0
  998. package/dist/ui-theme-menu.editor-DNeI-hxN.js.map +1 -0
  999. package/dist/ui-theme-token.editor-C2YAdEye.js +5 -0
  1000. package/dist/ui-theme-token.editor-C2YAdEye.js.map +1 -0
  1001. package/dist/ui-title.editor-40PZSOpn.js +5 -0
  1002. package/dist/ui-title.editor-40PZSOpn.js.map +1 -0
  1003. package/dist/ui-toast.editor-BDmIUsU_.js +5 -0
  1004. package/dist/ui-toast.editor-BDmIUsU_.js.map +1 -0
  1005. package/dist/ui-toast.js +141 -139
  1006. package/dist/ui-toast.js.map +1 -1
  1007. package/dist/ui-toc.editor-D_S1KFY_.js +5 -0
  1008. package/dist/ui-toc.editor-D_S1KFY_.js.map +1 -0
  1009. package/dist/ui-toc.js +52 -53
  1010. package/dist/ui-toc.js.map +1 -1
  1011. package/dist/ui-toolbar.editor-CNQ8nJmR.js +5 -0
  1012. package/dist/ui-toolbar.editor-CNQ8nJmR.js.map +1 -0
  1013. package/dist/ui-toolbar.js +254 -50
  1014. package/dist/ui-toolbar.js.map +1 -1
  1015. package/dist/ui-transition.editor-8SQkDkZ6.js +5 -0
  1016. package/dist/ui-transition.editor-8SQkDkZ6.js.map +1 -0
  1017. package/dist/ui-transition.js +13 -14
  1018. package/dist/ui-transition.js.map +1 -1
  1019. package/dist/ui-tree-diagram.editor-DkEK8i7J.js +5 -0
  1020. package/dist/ui-tree-diagram.editor-DkEK8i7J.js.map +1 -0
  1021. package/dist/ui-tree-diagram.js +128 -127
  1022. package/dist/ui-tree-diagram.js.map +1 -1
  1023. package/dist/ui-tree-item.editor-C4fuAlbJ.js +5 -0
  1024. package/dist/ui-tree-item.editor-C4fuAlbJ.js.map +1 -0
  1025. package/dist/ui-tree-node.editor-CB1z_w9F.js +5 -0
  1026. package/dist/ui-tree-node.editor-CB1z_w9F.js.map +1 -0
  1027. package/dist/ui-tree.editor-BoQztwdz.js +5 -0
  1028. package/dist/ui-tree.editor-BoQztwdz.js.map +1 -0
  1029. package/dist/ui-tree.js +393 -134
  1030. package/dist/ui-tree.js.map +1 -1
  1031. package/dist/ui-value.editor-CYak24cr.js +5 -0
  1032. package/dist/ui-value.editor-CYak24cr.js.map +1 -0
  1033. package/dist/ui-video.editor-CuWtFVjR.js +5 -0
  1034. package/dist/ui-video.editor-CuWtFVjR.js.map +1 -0
  1035. package/dist/ui-video.js +15 -14
  1036. package/dist/ui-video.js.map +1 -1
  1037. package/dist/ui-visibility.editor-Crx0DTlv.js +5 -0
  1038. package/dist/ui-visibility.editor-Crx0DTlv.js.map +1 -0
  1039. package/dist/ui-visibility.js +25 -26
  1040. package/dist/ui-visibility.js.map +1 -1
  1041. package/dist/ui-zoom.editor-DZ3HsWV4.js +5 -0
  1042. package/dist/ui-zoom.editor-DZ3HsWV4.js.map +1 -0
  1043. package/dist/ui-zoom.js +82 -83
  1044. package/dist/ui-zoom.js.map +1 -1
  1045. package/dist/util/TopLayerTip.d.ts +11 -2
  1046. package/dist/vocabulary/SharedVocabulary.d.ts +2 -0
  1047. package/dist/vocabulary/SharedVocabulary.es.d.ts +1 -0
  1048. package/dist/vocabulary/help.generated.d.ts +11 -0
  1049. package/dist/vocabulary/partsOfSpeech.generated.d.ts +6 -0
  1050. package/package.json +3 -3
  1051. package/dist/Dragging-CMZoLEWQ.js.map +0 -1
  1052. package/dist/MarkdownSanitizer-zTnnbrLe.js +0 -884
  1053. package/dist/MarkdownSanitizer-zTnnbrLe.js.map +0 -1
  1054. package/dist/PrefStore-Qv0e5y04.js.map +0 -1
  1055. package/dist/ScrollingRow-7n7Z-HIE.js +0 -88
  1056. package/dist/ScrollingRow-7n7Z-HIE.js.map +0 -1
  1057. package/dist/SitePages-CciwREek.js.map +0 -1
  1058. package/dist/SlottedItems-Du3aJwG1.js +0 -80
  1059. package/dist/SlottedItems-Du3aJwG1.js.map +0 -1
  1060. package/dist/UIButton-DFEds67r.js +0 -6
  1061. package/dist/UIButton-DFEds67r.js.map +0 -1
  1062. package/dist/UIInput-BodVbUoQ.js.map +0 -1
  1063. package/dist/UIKeys-Rh_gUZjP.js.map +0 -1
  1064. package/dist/UILabel-DgJUBzB_.js.map +0 -1
  1065. package/dist/UIMenu-zdcAtwTa.js +0 -42
  1066. package/dist/UIMenu-zdcAtwTa.js.map +0 -1
  1067. package/dist/UIRuntime-KH309p5B.js.map +0 -1
  1068. package/dist/UISegment-CMMIW7cZ.js.map +0 -1
  1069. package/dist/apple.palette-B4ivrNlM.js.map +0 -1
  1070. package/dist/classic-DCTQrteU.js.map +0 -1
  1071. package/dist/components.es-BOa_7gFF.js.map +0 -1
  1072. package/dist/crisp-VfYZlTph.js.map +0 -1
  1073. package/dist/crisp.theme-DRiePRdf.js +0 -6
  1074. package/dist/crisp.theme-DRiePRdf.js.map +0 -1
  1075. package/dist/dark-CbUdPe0a.js.map +0 -1
  1076. package/dist/dist-BLYIGZVK.js.map +0 -1
  1077. package/dist/emoji/cldr/0-DSUpV2d7.js.map +0 -1
  1078. package/dist/emoji/cldr/a-D_oB4vJ-.js.map +0 -1
  1079. package/dist/emoji/cldr/b-DX0W0Mda.js.map +0 -1
  1080. package/dist/emoji/cldr/c-DUHidpE9.js.map +0 -1
  1081. package/dist/emoji/cldr/d-CiCXZXay.js.map +0 -1
  1082. package/dist/emoji/cldr/e-DILJo3Ri.js.map +0 -1
  1083. package/dist/emoji/cldr/f-ByGFLyOq.js.map +0 -1
  1084. package/dist/emoji/cldr/g-BZ0FRsud.js.map +0 -1
  1085. package/dist/emoji/cldr/h-jtLdvRXQ.js.map +0 -1
  1086. package/dist/emoji/cldr/i-DcbJ5utE.js.map +0 -1
  1087. package/dist/emoji/cldr/j-BuEqP5nz.js.map +0 -1
  1088. package/dist/emoji/cldr/k-P1J6Gvze.js.map +0 -1
  1089. package/dist/emoji/cldr/l-28XcbsPr.js.map +0 -1
  1090. package/dist/emoji/cldr/m-DKgGJ8rW.js.map +0 -1
  1091. package/dist/emoji/cldr/n-DmPLP4F3.js.map +0 -1
  1092. package/dist/emoji/cldr/o-f98nt3s7.js.map +0 -1
  1093. package/dist/emoji/cldr/p-CxnsOTOt.js.map +0 -1
  1094. package/dist/emoji/cldr/r-D0GPRJ-Q.js.map +0 -1
  1095. package/dist/emoji/cldr/s-DcFuepnw.js.map +0 -1
  1096. package/dist/emoji/cldr/t-BvHgGpUr.js.map +0 -1
  1097. package/dist/emoji/cldr/u-ChFYHtUf.js.map +0 -1
  1098. package/dist/emoji/cldr/v-WmX3nWtZ.js.map +0 -1
  1099. package/dist/emoji/cldr/w-BPySQUWW.js.map +0 -1
  1100. package/dist/emoji/cldr/x-SC3r1n9O.js +0 -6
  1101. package/dist/emoji/cldr/x-SC3r1n9O.js.map +0 -1
  1102. package/dist/emoji/cldr/y-zB_yhTFg.js.map +0 -1
  1103. package/dist/emoji/cldr/z-BgJ94Cap.js.map +0 -1
  1104. package/dist/emoji/fomantic/0-CGf6gC3a.js +0 -10
  1105. package/dist/emoji/fomantic/0-CGf6gC3a.js.map +0 -1
  1106. package/dist/emoji/fomantic/a-CrqYlC21.js.map +0 -1
  1107. package/dist/emoji/fomantic/b-DneVHRdQ.js.map +0 -1
  1108. package/dist/emoji/fomantic/c-ClxKRuir.js.map +0 -1
  1109. package/dist/emoji/fomantic/d-Djqs_y4s.js.map +0 -1
  1110. package/dist/emoji/fomantic/e-CuF-jOQd.js.map +0 -1
  1111. package/dist/emoji/fomantic/f-D8VglrJ4.js.map +0 -1
  1112. package/dist/emoji/fomantic/g-Du_HFl6U.js.map +0 -1
  1113. package/dist/emoji/fomantic/h-CLE5tHnM.js.map +0 -1
  1114. package/dist/emoji/fomantic/i-BjOsrQDZ.js.map +0 -1
  1115. package/dist/emoji/fomantic/j-CyUDXKCu.js.map +0 -1
  1116. package/dist/emoji/fomantic/k-Clypg4R8.js.map +0 -1
  1117. package/dist/emoji/fomantic/l-DvLPdBh-.js.map +0 -1
  1118. package/dist/emoji/fomantic/m-B1lIb1kP.js.map +0 -1
  1119. package/dist/emoji/fomantic/n-Bgpp_ht5.js.map +0 -1
  1120. package/dist/emoji/fomantic/o-BhYZzpjp.js.map +0 -1
  1121. package/dist/emoji/fomantic/p-VLL0GK3m.js.map +0 -1
  1122. package/dist/emoji/fomantic/q-CKrtMwhc.js +0 -6
  1123. package/dist/emoji/fomantic/q-CKrtMwhc.js.map +0 -1
  1124. package/dist/emoji/fomantic/r-Bd1DjkkI.js.map +0 -1
  1125. package/dist/emoji/fomantic/s-Bqatw1W7.js.map +0 -1
  1126. package/dist/emoji/fomantic/t-Bs7IFhv3.js.map +0 -1
  1127. package/dist/emoji/fomantic/u-M6GfYC-U.js.map +0 -1
  1128. package/dist/emoji/fomantic/v-BKHNqkn0.js.map +0 -1
  1129. package/dist/emoji/fomantic/w-B_XvIu7h.js.map +0 -1
  1130. package/dist/emoji/fomantic/x-CG1_nzCF.js +0 -9
  1131. package/dist/emoji/fomantic/x-CG1_nzCF.js.map +0 -1
  1132. package/dist/emoji/fomantic/y-DPZaoIla.js.map +0 -1
  1133. package/dist/emoji/fomantic/z-FH-kPXch.js.map +0 -1
  1134. package/dist/fruity-BRVlgJZd.js +0 -6
  1135. package/dist/fruity-BRVlgJZd.js.map +0 -1
  1136. package/dist/fruity.theme-CbC7Jyvk.js.map +0 -1
  1137. package/dist/glass-x9tbbwVq.js +0 -6
  1138. package/dist/glass-x9tbbwVq.js.map +0 -1
  1139. package/dist/glass.theme-24wY2wH9.js +0 -6
  1140. package/dist/glass.theme-24wY2wH9.js.map +0 -1
  1141. package/dist/matrix-QY2gWbJ0.js +0 -6
  1142. package/dist/matrix-QY2gWbJ0.js.map +0 -1
  1143. package/dist/matrix.theme-_8xtwhDq.js +0 -6
  1144. package/dist/matrix.theme-_8xtwhDq.js.map +0 -1
  1145. package/dist/merlot-DOXLuUaU.js.map +0 -1
  1146. package/dist/merlot.theme-S-QnNGsw.js +0 -6
  1147. package/dist/merlot.theme-S-QnNGsw.js.map +0 -1
  1148. package/dist/midnight-BxlTQSfw.js.map +0 -1
  1149. package/dist/midnight.theme-wXbqRYLy.js +0 -6
  1150. package/dist/midnight.theme-wXbqRYLy.js.map +0 -1
  1151. package/dist/mockup-83ELBuVr.js +0 -6
  1152. package/dist/mockup-83ELBuVr.js.map +0 -1
  1153. package/dist/mockup.theme-DmpBgGBl.js +0 -6
  1154. package/dist/mockup.theme-DmpBgGBl.js.map +0 -1
  1155. package/dist/paper-M61nUilz.js.map +0 -1
  1156. package/dist/paper.theme-B8R5Jn5H.js +0 -6
  1157. package/dist/paper.theme-B8R5Jn5H.js.map +0 -1
  1158. package/dist/persist.types-D2m6wD-S.js.map +0 -1
  1159. package/dist/pop-CxXfytjk.js.map +0 -1
  1160. package/dist/pop.theme-CXzv8B9x.js +0 -6
  1161. package/dist/pop.theme-CXzv8B9x.js.map +0 -1
  1162. package/dist/search-CzSzx7bX.js.map +0 -1
  1163. package/dist/spell-By5Y3jKP.js +0 -6
  1164. package/dist/spell-By5Y3jKP.js.map +0 -1
  1165. package/dist/spell.theme-DxGj7qHx.js +0 -6
  1166. package/dist/spell.theme-DxGj7qHx.js.map +0 -1
  1167. package/dist/styles.en-CUUxNwHo.js.map +0 -1
  1168. package/dist/ui-theme-menu-CuIjr8Ou.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ui-zoom.js","names":["<Show when={!this.src}>\n <div\n ref={(element) => this.view = element}\n class={VIEW}\n part={this.partForName(\"view\")}\n style={this.viewStyle}\n >\n <Show when={!this.isOpen}>\n <div class={SHRUNK} inert={true} style={{ zoom: String(this.shrinkRatio) }}>\n <slot />\n </div>\n </Show>\n <button\n type=\"button\"\n class={SHOW}\n part={this.partForName(\"button\")}\n aria-label={this.translationForKey(\"show\")}\n aria-haspopup=\"dialog\"\n aria-expanded={this.disclosure.ariaExpanded}\n title={this.translationForKey(\"show\")}\n onClick={() => this.showFullSize()}\n />\n </div>\n </Show>","this","ref={(element) => this.view = element}","<Show when={!this.isOpen}>\n <div class={SHRUNK} inert={true} style={{ zoom: String(this.shrinkRatio) }}>\n <slot />\n </div>\n </Show>","zoom: String(this.shrinkRatio)","<div class={SHRUNK} inert={true} style={{ zoom: String(this.shrinkRatio) }}>\n <slot />\n </div>","<div\n ref={(element) => this.view = element}\n class={VIEW}\n part={this.partForName(\"view\")}\n style={this.viewStyle}\n >\n <Show when={!this.isOpen}>\n <div class={SHRUNK} inert={true} style={{ zoom: String(this.shrinkRatio) }}>\n <slot />\n </div>\n </Show>\n <button\n type=\"button\"\n class={SHOW}\n part={this.partForName(\"button\")}\n aria-label={this.translationForKey(\"show\")}\n aria-haspopup=\"dialog\"\n aria-expanded={this.disclosure.ariaExpanded}\n title={this.translationForKey(\"show\")}\n onClick={() => this.showFullSize()}\n />\n </div>","part={this.partForName(\"view\")}","style={this.viewStyle}","class={SHOW}","part={this.partForName(\"button\")}","aria-label={this.translationForKey(\"show\")}","aria-expanded={this.disclosure.ariaExpanded}","title={this.translationForKey(\"show\")}","ref={(element) => this.modal = element}","<Show when={this.src} fallback={this.fullContent()}>\n {(src) => <figure class={FIGURE}>\n <img\n class={IMAGE}\n part={this.partForName(\"image\")}\n src={src()}\n alt={this.alt ? this.translationForKey(\"zoomed\", { alt: this.alt }) : this.translationForKey(\"untitled\")}\n />\n <Show when={this.alt}>\n <figcaption class={CAPTION} part={this.partForName(\"caption\")}>\n {this.alt}\n </figcaption>\n </Show>\n </figure>}\n </Show>","<Show when={this.alt}>\n <figcaption class={CAPTION} part={this.partForName(\"caption\")}>\n {this.alt}\n </figcaption>\n </Show>","part={this.partForName(\"caption\")}","<figcaption class={CAPTION} part={this.partForName(\"caption\")}>\n {this.alt}\n </figcaption>","class={IMAGE}","part={this.partForName(\"image\")}","src={src()}","alt={this.alt ? this.translationForKey(\"zoomed\", { alt: this.alt }) : this.translationForKey(\"untitled\")}","part={this.partForName(\"base\")}","visible={this.isShowing ? \"\" : void 0}","<Show when={this.isOpen}>\n <div class={CONTENT} part={this.partForName(\"content\")}>\n <div style={this.fullWidth ? { \"inline-size\": `${this.fullWidth}px` } : void 0}>\n <slot />\n </div>\n </div>\n </Show>","part={this.partForName(\"content\")}","style={this.fullWidth ? { \"inline-size\": `${this.fullWidth}px` } : void 0}","<div class={CONTENT} part={this.partForName(\"content\")}>\n <div style={this.fullWidth ? { \"inline-size\": `${this.fullWidth}px` } : void 0}>\n <slot />\n </div>\n </div>","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.controlled","E.state","E.untracked","E.on","E.onChange","E.Disclosure","E.beforeNextPaint","_$createComponent","_$getOwner","_$readShallow","_$setStyleProperty","_$setAttribute","__name","zoomCSS","_$delegateEvents","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","__privateAdd","__decoratorStart","getOwner$1","ImageZoom","event","target","image","NO_ZOOM","link","shown","MIN_SHOWN","ZOOM_MARK","zoom","ZOOM_TAG","ADDED","root","ZoomMotion","away","direction","figure","update","box","copy","from","beforeNextPaint","resolve","timing","ZOOMABLES","element","list","at","shut","href","IMAGE_ADDRESS","zoomVocabulary","UIZoom_default","_tmpl$","_tmpl$2","_tmpl$3","_tmpl$4","_tmpl$5","_tmpl$6","_shut_dec","_onKeyDown_dec","_dismiss_dec","_onShowingChanged_dec","_onClick_dec","_onClosing_dec","_onClosed_dec","_showFullSize_dec","_fullWidth_dec","_heldSize_dec","_isOpen_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_isOpen","_heldSize","_fullWidth","_UIZoom","UIComponent","proto","protoMerged","cssState","controlled","state","untracked","on","onChange","Disclosure","percent","DEFAULT_RATIO","style","held","view","shrunk","SHRUNK","FIGURE","showing","IMAGE","CONTENT","place","zoomed","frame","DRAW_FRAMES","frames","step","ARROW_STEPS","typing","TEXT_FIELDS","_self$","createComponent","Show","_el$","_el$4","ref","insert","_el$2","_el$3","effect","readShallow","className","_p$","t","setStyleProperty","VIEW","SHOW","setAttribute","a","o","i","n","s","h","_el$5","_el$6","_el$7","_el$8","CAPTION","src","_self$2","_el$9","_el$10","_el$11","UIZoom","delegateEvents"],"sources":["../src/components/ui-zoom/ImageZoom.ts","../src/components/ui-zoom/UIZoom.en.ts","../src/components/ui-zoom/UIZoom.css?inline","../src/components/ui-zoom/UIZoom.tsx","../src/components/ui-zoom/index.ts"],"sourcesContent":["import { beforeNextPaint } from \"spell/util/timing\"\n\n/****************\n * ### `ImageZoom`\n * Which images on a page open full size when clicked, and showing one in the page's ONE `<ui-zoom>`.\n * - Every docs page's (epic `epic-engine` I129; Owen, 2026-10-25: \"Can't click on images in the page to expand so I\n * can't tell\" ... \"bring it up in a full-screen modal so I can `escape` to close it\"): the docs runtime listens\n * on the whole page (`onClick()`, `onPointerOver()`); a request's thumbnails in `<epic-field>` call `onClick()`\n * themselves, for a page without the runtime (Epic UI's); `<ui-image zoom>` calls `show()`\n * - So every plain `<img>` screenshot opens full size, with nothing rewritten:\n * epic pages, guides, details pages, Markdown\n * - A ZOOMABLE image (`isZoomable()`), in the page's own markup (never inside a shadow root):\n * - shown at least `MIN_SHOWN` (64px) on its longer side: never an icon or a tiny image\n * - and one of:\n * - shown smaller than its natural size (a screenshot scaled into the column, a thumbnail)\n * - in a `<figure>`\n * - in a link to an image (its own file, or a stopgap `<a href=\"shot.png\" target=\"_blank\">` round it)\n * - NOT inside any other link (it goes where its link goes), a button, a `<ui-zoom>`, or anything marked\n * `data-no-zoom`\n * - A plain click on one (main button, no modifier key): its link is never followed (`preventDefault()`);\n * it shows in `<ui-zoom>` at full size, or as large as fits, its alt text the caption\n * - with a modifier key: the link's, as usual (a new tab)\n * - Plain DOM, no Solid and no Spell UI's core: the docs runtime imports this leaf alone, so the element isn't\n * bundled there. It makes the `<ui-zoom>` by its tag, which `<ui-root>` loads like any other.\n * - Stepping (`step()`): while a zoom shows, the arrow keys go to the next / previous ZOOMABLE on the page\n * (`zoomables()`: every `<ui-zoom>` of content, every `<ui-image zoom>` and every zoomable `<img>`, in document\n * order; past either end the shown one bounces, it doesn't wrap)\n * - Motion (all skipped for `prefers-reduced-motion`):\n * - paging slides the shown picture out and the next in, like scrolling (`slide()`); a picture's zoom stays open\n * - the bounce at either end nudges the whole figure, picture and caption (`bounce()`)\n * - growing out of the page's picture and shrinking back into it are `<ui-zoom>`'s own (`ZoomMotion`)\n * - Moved from the epics pack, with `<epic-zoom>` (epic `ui-gaps` P14): any page can open its screenshots full size.\n ****************/\nexport class ImageZoom {\n /** The image a plain click on the page hit, when it's zoomable: the image itself, or the one alone in a link. */\n static imageFor(event: MouseEvent): HTMLImageElement | undefined {\n if (event.defaultPrevented || event.button !== 0) return undefined\n if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return undefined\n const target = event.target instanceof Element ? event.target : null\n const image = target?.closest(\"img\") ?? target?.closest(\"a\")?.querySelector(\"img\")\n return image && ImageZoom.isZoomable(image) ? image : undefined\n }\n\n /** Is `image` one to open full size? See the class's rule. */\n static isZoomable(image: HTMLImageElement): boolean {\n if (image.closest(NO_ZOOM)) return false\n const link = image.closest(\"a\")\n if (link && !ImageZoom.linksImage(link, image)) return false\n const shown = image.getBoundingClientRect()\n if (Math.max(shown.width, shown.height) < MIN_SHOWN) return false\n const shrunk = image.naturalWidth > shown.width + 1 || image.naturalHeight > shown.height + 1\n return shrunk || !!image.closest(\"figure\") || !!link\n }\n\n /**\n * A plain click on a zoomable image: shown full size, its link not followed.\n * - an arrow, so it's handed to `addEventListener()` as it is\n * - true when it took the click\n */\n static onClick = (event: MouseEvent): boolean => {\n const image = ImageZoom.imageFor(event)\n if (!image) return false\n event.preventDefault()\n ImageZoom.show(image)\n return true\n }\n\n /**\n * The pointer over a zoomable image: it's marked `data-ui-zoom`, which draws the zoom-in cursor\n * (the docs' sheet, `spell-doc.css`, draws it for a page's images).\n * - SIDE EFFECT: writes the attribute on the image (light DOM), once; the live patch keeps it\n */\n static onPointerOver = (event: PointerEvent) => {\n const image = event.target instanceof HTMLImageElement ? event.target : null\n if (!image || image.hasAttribute(ZOOM_MARK) || !ImageZoom.isZoomable(image)) return\n image.setAttribute(ZOOM_MARK, \"\")\n }\n\n /**\n * Show `image` full size, in the page's ONE `<ui-zoom>`.\n * - `image` may be in a shadow root: `<ui-image zoom>` hands its own\n * - SIDE EFFECT: makes it at the end of `<body>` the first time (`data-spell-added`: the live patch steps around it)\n */\n static show(image: HTMLImageElement) {\n let zoom = document.querySelector(`body > ${ZOOM_TAG}[${ADDED}]`)\n if (!zoom) {\n zoom = document.createElement(ZOOM_TAG)\n zoom.setAttribute(ADDED, \"\")\n document.body.append(zoom)\n }\n const root = image.getRootNode()\n ImageZoom.shown = root instanceof ShadowRoot ? root.host : image\n zoom.setAttribute(\"alt\", image.alt)\n zoom.setAttribute(\"src\", image.currentSrc || image.src)\n }\n\n /** A short nudge of `shown` in `direction`'s way and back, to say there's no more; skipped for reduced motion. */\n private static bounce(shown: Element | null | undefined, direction: 1 | -1) {\n if (!shown || ZoomMotion.isStill()) return\n const away = `translateY(${direction > 0 ? -ZoomMotion.bouncePx : ZoomMotion.bouncePx}px)`\n shown.animate([{ transform: \"none\" }, { transform: away }, { transform: \"none\" }], {\n duration: ZoomMotion.bounceMs,\n easing: \"ease-out\"\n })\n }\n\n /**\n * Paging a picture in the page's zoom, like scrolling: the shown one slides out (up for next, down for previous)\n * as the next slides in from the other side.\n * - `update()` makes the zoom show the next picture; a copy of the shown one slides out meanwhile, so for a\n * moment there are two\n * - SIDE EFFECT: the copy is added beside the figure (fixed where it was), and removed when it has gone\n * - reduced motion, or nothing drawn yet: just `update()`\n */\n private static async slide(zoom: Element, direction: 1 | -1, update: () => void) {\n const figure = zoom.shadowRoot?.querySelector<HTMLElement>(\".figure\")\n if (!figure || ZoomMotion.isStill()) return update()\n const box = figure.getBoundingClientRect()\n const copy = figure.cloneNode(true) as HTMLElement\n Object.assign(copy.style, {\n position: \"fixed\",\n left: `${box.left}px`,\n top: `${box.top}px`,\n width: `${box.width}px`,\n margin: \"0\",\n pointerEvents: \"none\"\n })\n figure.after(copy)\n const away = direction > 0 ? \"-100vh\" : \"100vh\"\n const from = direction > 0 ? \"100vh\" : \"-100vh\"\n // held below (or above) the window until its picture is ready\n figure.style.transform = `translateY(${from})`\n update()\n await new Promise((resolve) => beforeNextPaint(() => resolve(undefined)))\n await figure\n .querySelector(\"img\")\n ?.decode()\n .catch(() => undefined)\n const timing = { duration: ZoomMotion.slideMs, easing: ZoomMotion.ease }\n copy.animate([{ transform: \"none\" }, { transform: `translateY(${away})` }], timing).finished.then(\n () => copy.remove(),\n () => copy.remove()\n )\n const entering = figure.animate([{ transform: `translateY(${from})` }, { transform: \"none\" }], timing)\n entering.finished.then(\n () => (figure.style.transform = \"\"),\n () => (figure.style.transform = \"\")\n )\n }\n\n /** What the page's zoom was last handed: the image, or the `<ui-image>` whose shadow root holds it. */\n static shown: Element | undefined\n\n /** Everything on the page that zooms, in document order: the ONE list the arrow keys step through. */\n static zoomables(): Element[] {\n return [...document.querySelectorAll(ZOOMABLES)].filter((element) =>\n element instanceof HTMLImageElement ? ImageZoom.isZoomable(element) : !element.hasAttribute(ADDED)\n )\n }\n\n /**\n * Show the zoomable `direction` (1 next, -1 previous) after `from`; `from` is shut by `shut()`\n * - at either end it doesn't wrap: the shown one bounces (`bounce()`)\n * - `from`: a content `<ui-zoom>`, or `undefined` for the page's own zoom (showing `ImageZoom.shown`)\n * - an image replaces the page zoom's picture in place: its modal stays open\n */\n static step(direction: 1 | -1, from: Element | undefined, shut: () => void) {\n const list = ImageZoom.zoomables()\n if (list.length < 2) return\n const at = list.indexOf(from ?? ImageZoom.shown!)\n const target = list[(at < 0 ? (direction > 0 ? -1 : list.length) : at) + direction]\n if (!target) {\n const zoom = from ?? document.querySelector(`body > ${ZOOM_TAG}[${ADDED}]`)\n ImageZoom.bounce(zoom?.shadowRoot?.querySelector(from ? \".content\" : \".figure\"), direction)\n return\n }\n if (target.localName === ZOOM_TAG) {\n shut()\n target.shadowRoot?.querySelector<HTMLButtonElement>(\"button.show\")?.click()\n return\n }\n const image = target instanceof HTMLImageElement ? target : target.shadowRoot?.querySelector(\"img\")\n if (!image) return\n if (from) {\n ImageZoom.show(image)\n shut()\n return\n }\n const zoom = document.querySelector(`body > ${ZOOM_TAG}[${ADDED}]`)\n if (zoom) void ImageZoom.slide(zoom, direction, () => ImageZoom.show(image))\n else ImageZoom.show(image)\n }\n\n /** Does `link` lead to an image: `image`'s own file, a `data:image/` address, or a file with an image's extension? */\n private static linksImage(link: HTMLAnchorElement, image: HTMLImageElement): boolean {\n const href = link.href\n if (!href) return true\n if (href === image.src || href === image.currentSrc) return true\n return IMAGE_ADDRESS.test(href)\n }\n}\n\n/** The page's zoom. */\nconst ZOOM_TAG = \"ui-zoom\"\n\n/**\n * The zoom's motion, for `<ui-zoom>` and `ImageZoom`.\n * - growing out of the page's picture, shrinking back, paging, the bounce at either end\n * - none of it for `prefers-reduced-motion`: `isStill()`\n */\nexport const ZoomMotion = {\n /** the easing of every move but the bounce */\n ease: \"cubic-bezier(.2, .8, .2, 1)\",\n /** growing out of the page's picture (ms) */\n growMs: 320,\n /** shrinking back into it (ms) */\n shrinkMs: 240,\n /** paging, in and out (ms) */\n slideMs: 380,\n /** the bounce at either end: how far (px) and how long (ms) */\n bouncePx: 40,\n bounceMs: 320,\n /** The person asked for less motion. */\n isStill: () => matchMedia(\"(prefers-reduced-motion: reduce)\").matches\n}\n\n/** What zooms: content zooms, `<ui-image zoom>`s and plain images (`isZoomable()` picks those). */\nconst ZOOMABLES = \"ui-zoom, ui-image[zoom], img\"\n\n/** The attribute that marks a zoomable image under the pointer: the page's sheet draws its cursor. */\nconst ZOOM_MARK = \"data-ui-zoom\"\n\n/** The mark on the zoom `show()` made: the docs' live patch steps around it, and `show()` finds it again. */\nconst ADDED = \"data-spell-added\"\n\n/** What an image is never zoomed inside: a button, a `<ui-zoom>` of its own, or a block marked so. */\nconst NO_ZOOM = \"[data-no-zoom], button, ui-button, ui-zoom\"\n\n/** The least an image is shown at, on its longer side, to zoom: smaller ones are icons and badges. */\nconst MIN_SHOWN = 64\n\n/** An address of an image: a `data:image/` one, or a file by its extension (before any `?` or `#`). */\nconst IMAGE_ADDRESS = /^data:image\\/|\\.(png|jpe?g|gif|webp|avif|svg)([?#]|$)/i\n","/**\n * The English vocabulary of `<ui-zoom>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Moved from the epics pack's `<epic-zoom>` (epic `ui-gaps` P14, from epic `epic-engine` P14 and its Q22):\n * it zooms an image, as `<epic-zoom>` did, AND anything it wraps.\n * - No class words: every attribute is property-only.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `zoomVocabulary`\n * The names of `<ui-zoom>`: something shown small, or not at all, and full size over the page on a click.\n ****************/\nexport const zoomVocabulary = {\n tag: \"ui-zoom\",\n icon: \"search plus\",\n topics: [\"images\", \"media\", \"overlays\"],\n aka: [\"lightbox\", \"zoom\", \"full size\", \"image viewer\", \"magnifier\", \"expand\", \"screenshot\", \"thumbnail\"],\n noun: \"zoom\",\n description:\n \"A zoom shows something full size, over the page. Round any content it shows it shrunk, within a width and \" +\n \"height, and full size on a click; with `src` it shows that image full size. Escape, a click outside it or \" +\n \"its close button close it.\",\n attributes: [\n {\n name: \"max-width\",\n group: \"layout\",\n kind: \"string\",\n description:\n \"The widest the shrunk view gets, a CSS length (`320px`, `50%`); none: its container's width. \" +\n \"Content past it is cut off, until it's shown full size.\"\n },\n {\n name: \"max-height\",\n group: \"layout\",\n kind: \"string\",\n description:\n \"The tallest the shrunk view gets, a CSS length (`200px`, `20em`); none: as tall as its content. \" +\n \"Content past it is cut off, until it's shown full size.\"\n },\n {\n name: \"shrink\",\n group: \"layout\",\n kind: \"string\",\n default: \"50%\",\n description:\n \"How big its content is in the shrunk view, a percentage of its full size: `50%` by default; `100%` \" +\n \"keeps it full size, cut off by `max-width` / `max-height`.\"\n },\n {\n name: \"open\",\n group: \"states\",\n kind: \"boolean\",\n description: \"Shown full size, over the page. Set to open it from script; closing it clears it.\"\n },\n {\n name: \"src\",\n group: \"link\",\n kind: \"string\",\n description:\n \"An image to show full size, in place of its content: open while it's set, and cleared as it closes. \" +\n \"The page's zoom for its screenshots (`ImageZoom`) is one of these.\"\n },\n {\n name: \"alt\",\n group: \"content\",\n kind: \"string\",\n description: \"With `src`: the image's alt text, its caption, and the zoomed image's own name.\"\n }\n ],\n events: [],\n slots: [{ name: \"\", description: \"What it zooms: any content, shown shrunk, then full size on a click.\" }],\n parts: [\n { name: \"view\", description: \"The shrunk view of its content, in the page.\" },\n { name: \"button\", description: \"The button over the shrunk view that shows it full size.\" },\n { name: \"base\", description: \"The `<ui-modal>`, over the whole window.\" },\n { name: \"content\", description: \"Its content, full size, in the modal.\" },\n { name: \"image\", description: \"With `src`: the image, as large as fits.\" },\n { name: \"caption\", description: \"With `src`: its alt text, under it.\" }\n ],\n states: [{ name: \"open\", description: \"Shown full size, over the page.\" }],\n texts: [\n { key: \"show\", text: \"Show full size\", description: \"The name of the button over the shrunk view.\" },\n { key: \"zoomed\", text: \"{alt}, full size\", description: \"The zoomed image's alt text (its own `alt`).\" },\n { key: \"untitled\", text: \"Image, full size\", description: \"The zoomed image's alt text, when it had none.\" }\n ]\n} as const satisfies E.ComponentVocabulary\n","/*\n * `<ui-zoom>` (`UIZoom.tsx`): something shown shrunk in the page, and full size over the whole window.\n * - The shadow markup:\n *\n * <div class=\"view\" part=\"view\"> (round content; none with `src`)\n * <div class=\"shrunk\" inert><slot></slot></div> (while it's shut)\n * <button class=\"show\" part=\"button\"> (over the whole view)\n * </div>\n * <ui-modal class=\"ui zoom [image]\" part=\"base\" appearance=\"basic\" closable>\n * <figure class=\"figure\"> (with `src`)\n * <img class=\"image\" part=\"image\"><figcaption class=\"caption\" part=\"caption\">\n * </figure>\n * <div class=\"content\" part=\"content\"><slot></slot></div> (round content, while it's open)\n * </ui-modal>\n *\n * - The view: its content laid out at full size, then drawn smaller (CSS `zoom`, the shrink),\n * within `max-width` / `max-height` (cut off past them). A zoom-in cursor, and a focus ring on its button.\n * - The modal is `basic`: no box of its own, on a dark backdrop whatever the page's theme.\n * - an image straight on the backdrop: as large as fits the window, less a margin and the caption's line;\n * never cropped, never enlarged past its natural size (`max-*` only, `object-fit: contain`)\n * - content on the page's ground, at the width it had in the page, scrolling when it's taller than the window\n * - The close button: the window's top right corner, out of the way.\n * - Public tokens (`--ui-zoom-*`) are never declared here: read through private aliases.\n */\n\n@layer ui.components.zoom.types;\n\n@layer ui.components.zoom.types {\n :host {\n --_ui-zoom-margin: var(--ui-zoom-margin, 24px);\n --_ui-zoom-caption: var(--ui-zoom-caption, 2.5em);\n --_ui-zoom-radius: var(--ui-zoom-radius, var(--ui-radius, 4px));\n /* as wide as what it shows, so a click beside it is the page's */\n display: block;\n inline-size: fit-content;\n max-inline-size: 100%;\n }\n /* the page's zoom for its screenshots holds nothing in the page */\n :host([src]) {\n display: contents;\n }\n\n /* the shrunk view */\n .view {\n position: relative;\n box-sizing: border-box;\n inline-size: fit-content;\n max-inline-size: 100%;\n overflow: hidden;\n border-radius: var(--_ui-zoom-radius);\n }\n .shrunk {\n /* the slotted content can't be reached in here: the button over it shows it full size */\n pointer-events: none;\n }\n .show {\n position: absolute;\n inset: 0;\n margin: 0;\n padding: 0;\n border: 0;\n border-radius: inherit;\n background: transparent;\n cursor: zoom-in;\n }\n .show:focus-visible {\n outline: 2px solid var(--ui-focus-color, Highlight);\n outline-offset: -2px;\n }\n\n ui-modal {\n /* dark whatever the page's theme: a screenshot is judged on black, not on the page's dimmer */\n --ui-modal-dimmer-background: var(--ui-zoom-backdrop, oklch(0 0 0 / 0.9));\n }\n ui-modal::part(modal) {\n width: auto;\n max-width: none;\n max-height: none;\n margin: auto;\n padding: 0;\n overflow: visible;\n background: transparent;\n box-shadow: none;\n /* the modal's own scale-in would shrink the picture while it measures where to grow from: it only fades */\n transform: none;\n }\n ui-modal::part(close) {\n position: fixed;\n top: 12px;\n right: 12px;\n color: #fff;\n }\n\n /* an image, full size */\n .figure {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n margin: 0;\n cursor: zoom-out;\n }\n .image {\n display: block;\n max-width: calc(100vw - 2 * var(--_ui-zoom-margin));\n max-height: calc(100vh - 2 * var(--_ui-zoom-margin) - var(--_ui-zoom-caption));\n object-fit: contain;\n border-radius: var(--_ui-zoom-radius);\n }\n .caption {\n max-width: calc(100vw - 2 * var(--_ui-zoom-margin));\n color: #fff;\n text-align: center;\n line-height: 1.4;\n }\n\n /* content, full size */\n .content {\n box-sizing: border-box;\n /* its content's width in the page (the component's), so the modal is no wider than it */\n inline-size: fit-content;\n max-width: calc(100vw - 2 * var(--_ui-zoom-margin));\n margin-inline: auto;\n max-height: calc(100vh - 2 * var(--_ui-zoom-margin));\n overflow: auto;\n padding: var(--ui-zoom-padding, 16px);\n border-radius: var(--_ui-zoom-radius);\n background: var(--ui-zoom-background, var(--ui-surface, Canvas));\n color: var(--ui-text-color, CanvasText);\n }\n}\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { ImageZoom, ZoomMotion } from \"./ImageZoom\"\nimport { zoomVocabulary } from \"./UIZoom.en\"\n\nimport zoomCSS from \"./UIZoom.css?inline\"\n\n/****************\n * ### `<ui-zoom>`\n * The component behind `<ui-zoom>`: something shown full size over the page (epic `ui-gaps` P14, from the epics\n * pack's `<epic-zoom>`; Owen, epic `epic-engine` Q22: \"both. `<ui-zoom>` can surround anything to zoom it\").\n *\n * - Round any content: the content is shown SHRUNK in the page, and full size on a click.\n * - shrunk: laid out at full size, then drawn at `shrink` of it (50% by default; CSS `zoom`),\n * within `max-width` / `max-height`, cut off past them\n * - a button over the whole view opens it; the content under it can't be reached until then (`inert`)\n * - full size: in a `<ui-modal appearance=\"basic\">`, on the page's ground, at the width it had in the page;\n * the view keeps its room meanwhile, so the page doesn't jump\n * - `open` says it's open (and opens it from script); Escape, the backdrop or the close button shut it\n * - With `src`: that image full size, as `<epic-zoom>` did, in place of any content.\n * - as large as fits the window (never cropped, never enlarged past its own size), its alt text under it\n * - open while `src` is set; Escape, a click anywhere or the close button close it, and it removes its own `src`\n * - the page's ONE zoom for its screenshots is one of these, made by `ImageZoom.show()`; `<ui-image zoom>` uses it\n * - Motion (none under `prefers-reduced-motion`):\n * - it GROWS out of its place on the page (the content's view, or the picture clicked) and SHRINKS back into it\n * before the modal closes, however it's closed (Escape, a click, the close button)\n * - paging with the arrow keys slides the next picture in, like scrolling (`ImageZoom`)\n * - Arrow keys while showing: the next / previous zoomable on the page; past either end the picture bounces (`ImageZoom.step()`)\n * - The modal's own events (`ui-opened`, `ui-closed` ...) come out of it, as from any `<ui-modal>`.\n ****************/\nexport class UIZoom extends E.UIComponent<typeof zoomVocabulary> {\n @E.proto static vocabulary = zoomVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { zoom: zoomCSS }\n } satisfies Partial<E.ElementSetup>\n\n /** Its content shown full size: `open`. */\n @E.cssState(\"open\")\n @E.controlled(\"open\")\n accessor isOpen = false\n\n /**\n * Opening and shutting it as a person does: through `requestChange()`, so the page's own `open` wins;\n * no events of its own (its modal's come out), and its button's `aria-expanded`.\n */\n readonly disclosure = new E.Disclosure({ component: this, member: \"isOpen\" })\n\n /** The room the view took in the page, kept while its content is in the modal. */\n @E.state accessor heldSize: { width: number; height: number } | undefined = undefined\n\n /** The width its content was laid out at in the page, in px: the modal shows it at that width. */\n @E.state accessor fullWidth: number | undefined = undefined\n\n /** The modal is up: an image (`src`), or the content. */\n get isShowing(): boolean {\n return !!this.src || this.isOpen\n }\n\n /** `shrink` as a ratio: `\"50%\"` => 0.5; anything it can't read, the default. */\n get shrinkRatio(): number {\n const percent = Number.parseFloat(this.shrink ?? \"\")\n if (!Number.isFinite(percent) || percent <= 0) return DEFAULT_RATIO\n return Math.min(percent, 100) / 100\n }\n\n /** The view's box: its caps, or the room it holds while open. */\n get viewStyle(): JSX.CSSProperties {\n const style: JSX.CSSProperties = {}\n if (this.maxWidth) style[\"max-inline-size\"] = `min(100%, ${this.maxWidth})`\n if (this.maxHeight) style[\"max-block-size\"] = this.maxHeight\n const held = this.isOpen ? this.heldSize : undefined\n if (held) Object.assign(style, { \"inline-size\": `${held.width}px`, \"block-size\": `${held.height}px` })\n return style\n }\n\n /** The shrunk view's box, once drawn. */\n private view?: HTMLElement\n /** The modal, once drawn. */\n private modal?: HTMLElement\n\n /** The button over the view: its room kept, then shown full size. */\n @E.untracked\n protected showFullSize() {\n const view = this.view\n if (view) {\n const box = view.getBoundingClientRect()\n this.heldSize = { width: box.width, height: box.height }\n const shrunk = view.querySelector<HTMLElement>(`.${SHRUNK}`)\n if (shrunk) this.fullWidth = Math.round(shrunk.getBoundingClientRect().width / this.shrinkRatio)\n }\n this.disclosure.open()\n }\n\n /** Shut (Escape, its close button, the backdrop): an image's `src` goes, ready for the next; content goes back. */\n @E.on(\"ui-closed\", { target: \"renderRoot\" })\n protected onClosed(event: Event) {\n // a modal in the content, closing, says so through this shadow root too: only its own counts\n if (event.target !== this.modal) return\n this.shut()\n }\n\n /**\n * About to close (Escape, the backdrop, its close button): shrink back into place first, then close.\n * - `ui-closing` is vetoed while it shrinks, then `shut()` closes the modal without asking again\n */\n @E.on(\"ui-closing\", { target: \"renderRoot\" })\n protected onClosing(event: Event) {\n if (event.target !== this.modal) return\n if (!this.isShrinking && !this.canMove()) return\n event.preventDefault()\n void this.dismiss()\n }\n\n /** A click on the zoomed image: shut too, as a lightbox does. */\n @E.on(\"click\", { target: \"renderRoot\" })\n protected onClick(event: MouseEvent) {\n if (event.target instanceof Element && event.target.closest(`.${FIGURE}`)) void this.dismiss()\n }\n\n ////////////////\n // ## Growing and shrinking\n ////////////////\n\n /** Shown now, for `onShowingChanged()`. */\n private wasShowing = false\n\n /** It shrinks back into the page: shutting waits for it. */\n private isShrinking = false\n\n /** It came up (a picture's `src`, or `open`): grow out of its place. */\n @E.onChange(\"src\", \"isOpen\")\n protected onShowingChanged() {\n const showing = this.isShowing\n if (showing && !this.wasShowing) void this.grow()\n this.wasShowing = showing\n }\n\n /** What's drawn full size: the picture, or the content's box. */\n private get zoomed(): HTMLElement | null {\n return this.modal?.querySelector<HTMLElement>(`.${IMAGE}, .${CONTENT}`) ?? null\n }\n\n /** Where it sits on the page: the picture clicked (still the one `src` shows), or the content's view. */\n private get placeOnPage(): DOMRect | undefined {\n let box: DOMRect | undefined\n if (this.src) {\n const shown = ImageZoom.shown\n const image = shown instanceof HTMLImageElement ? shown : shown?.shadowRoot?.querySelector(\"img\")\n if (image?.isConnected && (image.currentSrc || image.src) === this.src) box = image.getBoundingClientRect()\n } else box = this.view?.getBoundingClientRect()\n return box?.width ? box : undefined\n }\n\n /** Can it grow or shrink: motion allowed, something drawn, and its place on the page known? */\n private canMove(): boolean {\n return !ZoomMotion.isStill() && !!this.zoomed && !!this.placeOnPage\n }\n\n /** The transform that draws `zoomed` over `place`: centred on it, scaled to its width. */\n private static over(place: DOMRect, zoomed: DOMRect): string {\n const dx = place.left + place.width / 2 - (zoomed.left + zoomed.width / 2)\n const dy = place.top + place.height / 2 - (zoomed.top + zoomed.height / 2)\n return `translate(${dx}px, ${dy}px) scale(${place.width / zoomed.width})`\n }\n\n /** Grow out of its place on the page. */\n private async grow() {\n if (ZoomMotion.isStill()) return\n // once it's drawn into the modal: the first time, that takes the element's own set-up too\n let zoomed = this.zoomed\n for (let frame = 0; !zoomed && frame < DRAW_FRAMES; frame++) {\n await new Promise((resolve) => E.beforeNextPaint(() => resolve(undefined)))\n zoomed = this.zoomed\n }\n const place = this.placeOnPage\n if (!zoomed || !place) return\n if (zoomed instanceof HTMLImageElement) await zoomed.decode().catch(() => undefined)\n const frames = [\n { transform: UIZoom.over(place, zoomed.getBoundingClientRect()), opacity: 0.6 },\n { transform: \"none\", opacity: 1 }\n ]\n zoomed.animate(frames, { duration: ZoomMotion.growMs, easing: ZoomMotion.ease })\n }\n\n /** Shrink back into its place on the page, then `shut()`; at once when it can't move. */\n @E.untracked\n private async dismiss() {\n if (this.isShrinking) return\n const zoomed = this.zoomed\n const place = this.placeOnPage\n if (!zoomed || !place || ZoomMotion.isStill()) return this.shut()\n this.isShrinking = true\n const frames = [\n { transform: \"none\", opacity: 1 },\n { transform: UIZoom.over(place, zoomed.getBoundingClientRect()), opacity: 0.4 }\n ]\n // held at the end while the modal fades\n const shrinking = zoomed.animate(frames, {\n duration: ZoomMotion.shrinkMs,\n easing: ZoomMotion.ease,\n fill: \"forwards\"\n })\n await shrinking.finished.catch(() => undefined)\n this.isShrinking = false\n this.shut()\n }\n\n /**\n * Arrow keys while showing: the next / previous zoomable on the page (`ImageZoom.step()`).\n * Not from a text field in the zoomed content, which keeps its arrows.\n */\n @E.on(\"keydown\", { target: \"renderRoot\" })\n protected onKeyDown(event: KeyboardEvent) {\n const step = ARROW_STEPS[event.key]\n if (!step || event.defaultPrevented || event.metaKey || event.ctrlKey || event.altKey || !this.isShowing) return\n const typing = event.composedPath()[0]\n if (typing instanceof HTMLElement && typing.matches(TEXT_FIELDS)) return\n event.preventDefault()\n ImageZoom.step(step, this.src ? undefined : this.domElement, () => this.shut())\n }\n\n /** Shut: no `src`, not open. */\n @E.untracked\n private shut() {\n if (this.src) this.domElement.removeAttribute(\"src\")\n this.disclosure.close()\n }\n\n render(): JSX.Element {\n return (\n <>\n <Show when={!this.src}>\n <div\n ref={(element) => (this.view = element)}\n class={VIEW}\n part={this.partForName(\"view\")}\n style={this.viewStyle}\n >\n <Show when={!this.isOpen}>\n <div class={SHRUNK} inert={true} style={{ zoom: String(this.shrinkRatio) }}>\n <slot />\n </div>\n </Show>\n <button\n type=\"button\"\n class={SHOW}\n part={this.partForName(\"button\")}\n aria-label={this.translationForKey(\"show\")}\n aria-haspopup=\"dialog\"\n aria-expanded={this.disclosure.ariaExpanded}\n title={this.translationForKey(\"show\")}\n onClick={() => this.showFullSize()}\n />\n </div>\n </Show>\n <ui-modal\n ref={(element: HTMLElement) => (this.modal = element)}\n class={this.rootClass}\n part={this.partForName(\"base\")}\n appearance=\"basic\"\n closable=\"\"\n visible={this.isShowing ? \"\" : undefined}\n >\n <Show when={this.src} fallback={this.fullContent()}>\n {(src) => (\n <figure class={FIGURE}>\n <img\n class={IMAGE}\n part={this.partForName(\"image\")}\n src={src()}\n alt={\n this.alt ? this.translationForKey(\"zoomed\", { alt: this.alt }) : this.translationForKey(\"untitled\")\n }\n />\n <Show when={this.alt}>\n <figcaption class={CAPTION} part={this.partForName(\"caption\")}>\n {this.alt}\n </figcaption>\n </Show>\n </figure>\n )}\n </Show>\n </ui-modal>\n </>\n )\n }\n\n /** Its content, full size, while open: at the width it had in the page. */\n private fullContent(): JSX.Element {\n return (\n <Show when={this.isOpen}>\n <div class={CONTENT} part={this.partForName(\"content\")}>\n <div style={this.fullWidth ? { \"inline-size\": `${this.fullWidth}px` } : undefined}>\n <slot />\n </div>\n </div>\n </Show>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIZoom extends E.AttributeValues<typeof zoomVocabulary> {}\n\n/** Arrow keys that step to the next (1) or previous (-1) zoomable. */\nconst ARROW_STEPS: Record<string, 1 | -1 | undefined> = { ArrowRight: 1, ArrowDown: 1, ArrowLeft: -1, ArrowUp: -1 }\n\n/** What keeps its own arrow keys. */\nconst TEXT_FIELDS = \"input:not([type=checkbox], [type=radio], [type=button]), textarea, select, [contenteditable]\"\n\n/** How many frames it waits for its picture or content to be drawn, before it gives up growing. */\nconst DRAW_FRAMES = 30\n\n/** `shrink`'s default: half size. */\nconst DEFAULT_RATIO = 0.5\n\n/** Classes of its shadow markup: the view, its shrunk content, its button; the image, its figure and caption; the content full size. */\nconst VIEW = \"view\"\nconst SHRUNK = \"shrunk\"\nconst SHOW = \"show\"\nconst FIGURE = \"figure\"\nconst IMAGE = \"image\"\nconst CAPTION = \"caption\"\nconst CONTENT = \"content\"\n","/**\n * The zoom family: defines `<ui-zoom>` and exports its component, `UIZoom`, and `ImageZoom`, which opens a page's\n * screenshots in it.\n * - SIDE EFFECT: importing it defines the tag, and `<ui-modal>` (what it shows things full size in).\n * - Also the library's `spell/ui/ui-zoom` entry (its size is in `notes/report.md`).\n * - `ImageZoom` alone, with no element: `spell/ui/components/ui-zoom/ImageZoom` (the docs runtime's import).\n */\n\nimport { UIZoom } from \"./UIZoom\"\nimport { ImageZoom } from \"./ImageZoom\"\n\nimport \"spell/ui/components/ui-modal\"\n\nUIZoom.define()\n\nexport { UIZoom, ImageZoom }\n"],"mappings":";;;;;;AAiCA,IAAawD,IAAb,MAAa,UAAU;CAErB,OAAO,SAAS,GAAiD;EAE/D,IADIC,EAAM,oBAAoBA,EAAM,WAAW,KAC3CA,EAAM,WAAWA,EAAM,WAAWA,EAAM,YAAYA,EAAM,QAAQ;EACtE,IAAMC,IAASD,EAAM,kBAAkB,UAAUA,EAAM,SAAS,MAC1DE,IAAQD,GAAQ,QAAQ,KAAK,KAAKA,GAAQ,QAAQ,GAAG,CAAC,EAAE,cAAc,KAAK;EACjF,OAAOC,KAAS,UAAU,WAAWA,CAAK,IAAIA,IAAQ,KAAA;CACxD;CAGA,OAAO,WAAW,GAAkC;EAClD,IAAIA,EAAM,QAAQC,EAAO,GAAG,OAAO;EACnC,IAAMC,IAAOF,EAAM,QAAQ,GAAG;EAC9B,IAAIE,KAAQ,CAAC,UAAU,WAAWA,GAAMF,CAAK,GAAG,OAAO;EACvD,IAAMG,IAAQH,EAAM,sBAAsB;EAG1C,OAFI,KAAK,IAAIG,EAAM,OAAOA,EAAM,MAAM,IAAIC,KAAkB,KAC7CJ,EAAM,eAAeG,EAAM,QAAQ,KAAKH,EAAM,gBAAgBG,EAAM,SAAS,KAC3E,CAAC,CAACH,EAAM,QAAQ,QAAQ,KAAK,CAAC,CAACE;CAClD;CAOA,OAAO,WAAW,MAA+B;EAC/C,IAAMF,IAAQ,UAAU,SAASF,CAAK;EAItC,OAHKE,KACL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-zoom.js","names":["<Show when={!this.src}>\n <div\n ref={(element) => this.view = element}\n class={VIEW}\n part={this.partForName(\"view\")}\n style={this.viewStyle}\n >\n <Show when={!this.isOpen}>\n <div class={SHRUNK} inert={true} style={{ zoom: String(this.shrinkRatio) }}>\n <slot />\n </div>\n </Show>\n <button\n type=\"button\"\n class={SHOW}\n part={this.partForName(\"button\")}\n aria-label={this.translationForKey(\"show\")}\n aria-haspopup=\"dialog\"\n aria-expanded={this.disclosure.ariaExpanded}\n title={this.translationForKey(\"show\")}\n onClick={() => this.showFullSize()}\n />\n </div>\n </Show>","this","ref={(element) => this.view = element}","<Show when={!this.isOpen}>\n <div class={SHRUNK} inert={true} style={{ zoom: String(this.shrinkRatio) }}>\n <slot />\n </div>\n </Show>","zoom: String(this.shrinkRatio)","<div class={SHRUNK} inert={true} style={{ zoom: String(this.shrinkRatio) }}>\n <slot />\n </div>","<div\n ref={(element) => this.view = element}\n class={VIEW}\n part={this.partForName(\"view\")}\n style={this.viewStyle}\n >\n <Show when={!this.isOpen}>\n <div class={SHRUNK} inert={true} style={{ zoom: String(this.shrinkRatio) }}>\n <slot />\n </div>\n </Show>\n <button\n type=\"button\"\n class={SHOW}\n part={this.partForName(\"button\")}\n aria-label={this.translationForKey(\"show\")}\n aria-haspopup=\"dialog\"\n aria-expanded={this.disclosure.ariaExpanded}\n title={this.translationForKey(\"show\")}\n onClick={() => this.showFullSize()}\n />\n </div>","part={this.partForName(\"view\")}","style={this.viewStyle}","class={SHOW}","part={this.partForName(\"button\")}","aria-label={this.translationForKey(\"show\")}","aria-expanded={this.disclosure.ariaExpanded}","title={this.translationForKey(\"show\")}","ref={(element) => this.modal = element}","<Show when={this.src} fallback={this.fullContent()}>\n {(src) => <figure class={FIGURE}>\n <img\n class={IMAGE}\n part={this.partForName(\"image\")}\n src={src()}\n alt={this.alt ? this.translationForKey(\"zoomed\", { alt: this.alt }) : this.translationForKey(\"untitled\")}\n />\n <Show when={this.alt}>\n <figcaption class={CAPTION} part={this.partForName(\"caption\")}>\n {this.alt}\n </figcaption>\n </Show>\n </figure>}\n </Show>","<Show when={this.alt}>\n <figcaption class={CAPTION} part={this.partForName(\"caption\")}>\n {this.alt}\n </figcaption>\n </Show>","part={this.partForName(\"caption\")}","<figcaption class={CAPTION} part={this.partForName(\"caption\")}>\n {this.alt}\n </figcaption>","class={IMAGE}","part={this.partForName(\"image\")}","src={src()}","alt={this.alt ? this.translationForKey(\"zoomed\", { alt: this.alt }) : this.translationForKey(\"untitled\")}","part={this.partForName(\"base\")}","visible={this.isShowing ? \"\" : void 0}","<Show when={this.isOpen}>\n <div class={CONTENT} part={this.partForName(\"content\")}>\n <div style={this.fullWidth ? { \"inline-size\": `${this.fullWidth}px` } : void 0}>\n <slot />\n </div>\n </div>\n </Show>","part={this.partForName(\"content\")}","style={this.fullWidth ? { \"inline-size\": `${this.fullWidth}px` } : void 0}","<div class={CONTENT} part={this.partForName(\"content\")}>\n <div style={this.fullWidth ? { \"inline-size\": `${this.fullWidth}px` } : void 0}>\n <slot />\n </div>\n </div>","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.controlled","E.state","E.untracked","E.on","E.onChange","E.Disclosure","E.beforeNextPaint","_$getOwner","_$readShallow","_$setStyleProperty","_$setAttribute","__name","zoomCSS","__decoratorStart","__publicField","__name$1","__decorateElement","__decoratorMetadata","__runInitializers","__privateAdd","getOwner$1","ImageZoom","event","target","image","NO_ZOOM","link","shown","MIN_SHOWN","ZOOM_MARK","zoom","ZOOM_TAG","ADDED","root","ZoomMotion","away","direction","figure","update","box","copy","from","beforeNextPaint","resolve","timing","ZOOMABLES","element","list","at","shut","href","IMAGE_ADDRESS","zoomVocabulary","UIZoom_default","_tmpl$","_tmpl$2","_tmpl$3","_tmpl$4","_tmpl$5","_tmpl$6","_shut_dec","_onKeyDown_dec","_dismiss_dec","_onShowingChanged_dec","_onClick_dec","_onClosing_dec","_onClosed_dec","_showFullSize_dec","_fullWidth_dec","_heldSize_dec","_isOpen_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_isOpen","_heldSize","_fullWidth","_UIZoom","UIComponent","proto","protoMerged","cssState","controlled","state","untracked","on","onChange","Disclosure","percent","DEFAULT_RATIO","style","held","view","shrunk","SHRUNK","FIGURE","showing","IMAGE","CONTENT","place","zoomed","frame","DRAW_FRAMES","frames","step","ARROW_STEPS","typing","TEXT_FIELDS","_self$","createComponent","Show","_el$","_el$4","ref","insert","_el$2","_el$3","effect","readShallow","className","_p$","t","setStyleProperty","VIEW","SHOW","setAttribute","a","o","i","n","s","h","_el$5","_el$6","_el$7","_el$8","CAPTION","src","_self$2","_el$9","_el$10","_el$11","UIZoom","delegateEvents"],"sources":["../src/components/ui-zoom/ImageZoom.ts","../src/components/ui-zoom/UIZoom.en.ts","../src/components/ui-zoom/UIZoom.tsx","../src/components/ui-zoom/index.ts"],"sourcesContent":["import { beforeNextPaint } from \"spell/util/timing\"\n\n/****************\n * ### `ImageZoom`\n * Which images on a page open full size when clicked, and showing one in the page's ONE `<ui-zoom>`.\n * - Every docs page's (epic `epic-engine` I129; Owen, 2026-10-25: \"Can't click on images in the page to expand so I\n * can't tell\" ... \"bring it up in a full-screen modal so I can `escape` to close it\"): the docs runtime listens\n * on the whole page (`onClick()`, `onPointerOver()`); a request's thumbnails in `<epic-field>` call `onClick()`\n * themselves, for a page without the runtime (Epic UI's); `<ui-image zoom>` calls `show()`\n * - So every plain `<img>` screenshot opens full size, with nothing rewritten:\n * epic pages, guides, details pages, Markdown\n * - A ZOOMABLE image (`isZoomable()`), in the page's own markup (never inside a shadow root):\n * - shown at least `MIN_SHOWN` (64px) on its longer side: never an icon or a tiny image\n * - and one of:\n * - shown smaller than its natural size (a screenshot scaled into the column, a thumbnail)\n * - in a `<figure>`\n * - in a link to an image (its own file, or a stopgap `<a href=\"shot.png\" target=\"_blank\">` round it)\n * - NOT inside any other link (it goes where its link goes), a button, a `<ui-zoom>`, or anything marked\n * `data-no-zoom`\n * - A plain click on one (main button, no modifier key): its link is never followed (`preventDefault()`);\n * it shows in `<ui-zoom>` at full size, or as large as fits, its alt text the caption\n * - with a modifier key: the link's, as usual (a new tab)\n * - Plain DOM, no Solid and no Spell UI's core: the docs runtime imports this leaf alone, so the element isn't\n * bundled there. It makes the `<ui-zoom>` by its tag, which `<ui-root>` loads like any other.\n * - Stepping (`step()`): while a zoom shows, the arrow keys go to the next / previous ZOOMABLE on the page\n * (`zoomables()`: every `<ui-zoom>` of content, every `<ui-image zoom>` and every zoomable `<img>`, in document\n * order; past either end the shown one bounces, it doesn't wrap)\n * - Motion (all skipped for `prefers-reduced-motion`):\n * - paging slides the shown picture out and the next in, like scrolling (`slide()`); a picture's zoom stays open\n * - the bounce at either end nudges the whole figure, picture and caption (`bounce()`)\n * - growing out of the page's picture and shrinking back into it are `<ui-zoom>`'s own (`ZoomMotion`)\n * - Moved from the epics pack, with `<epic-zoom>` (epic `ui-gaps` P14): any page can open its screenshots full size.\n ****************/\nexport class ImageZoom {\n /** The image a plain click on the page hit, when it's zoomable: the image itself, or the one alone in a link. */\n static imageFor(event: MouseEvent): HTMLImageElement | undefined {\n if (event.defaultPrevented || event.button !== 0) return undefined\n if (event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) return undefined\n const target = event.target instanceof Element ? event.target : null\n const image = target?.closest(\"img\") ?? target?.closest(\"a\")?.querySelector(\"img\")\n return image && ImageZoom.isZoomable(image) ? image : undefined\n }\n\n /** Is `image` one to open full size? See the class's rule. */\n static isZoomable(image: HTMLImageElement): boolean {\n if (image.closest(NO_ZOOM)) return false\n const link = image.closest(\"a\")\n if (link && !ImageZoom.linksImage(link, image)) return false\n const shown = image.getBoundingClientRect()\n if (Math.max(shown.width, shown.height) < MIN_SHOWN) return false\n const shrunk = image.naturalWidth > shown.width + 1 || image.naturalHeight > shown.height + 1\n return shrunk || !!image.closest(\"figure\") || !!link\n }\n\n /**\n * A plain click on a zoomable image: shown full size, its link not followed.\n * - an arrow, so it's handed to `addEventListener()` as it is\n * - true when it took the click\n */\n static onClick = (event: MouseEvent): boolean => {\n const image = ImageZoom.imageFor(event)\n if (!image) return false\n event.preventDefault()\n ImageZoom.show(image)\n return true\n }\n\n /**\n * The pointer over a zoomable image: it's marked `data-ui-zoom`, which draws the zoom-in cursor\n * (the docs' sheet, `spell-doc.css`, draws it for a page's images).\n * - SIDE EFFECT: writes the attribute on the image (light DOM), once; the live patch keeps it\n */\n static onPointerOver = (event: PointerEvent) => {\n const image = event.target instanceof HTMLImageElement ? event.target : null\n if (!image || image.hasAttribute(ZOOM_MARK) || !ImageZoom.isZoomable(image)) return\n image.setAttribute(ZOOM_MARK, \"\")\n }\n\n /**\n * Show `image` full size, in the page's ONE `<ui-zoom>`.\n * - `image` may be in a shadow root: `<ui-image zoom>` hands its own\n * - SIDE EFFECT: makes it at the end of `<body>` the first time (`data-spell-added`: the live patch steps around it)\n */\n static show(image: HTMLImageElement) {\n let zoom = document.querySelector(`body > ${ZOOM_TAG}[${ADDED}]`)\n if (!zoom) {\n zoom = document.createElement(ZOOM_TAG)\n zoom.setAttribute(ADDED, \"\")\n document.body.append(zoom)\n }\n const root = image.getRootNode()\n ImageZoom.shown = root instanceof ShadowRoot ? root.host : image\n zoom.setAttribute(\"alt\", image.alt)\n zoom.setAttribute(\"src\", image.currentSrc || image.src)\n }\n\n /** A short nudge of `shown` in `direction`'s way and back, to say there's no more; skipped for reduced motion. */\n private static bounce(shown: Element | null | undefined, direction: 1 | -1) {\n if (!shown || ZoomMotion.isStill()) return\n const away = `translateY(${direction > 0 ? -ZoomMotion.bouncePx : ZoomMotion.bouncePx}px)`\n shown.animate([{ transform: \"none\" }, { transform: away }, { transform: \"none\" }], {\n duration: ZoomMotion.bounceMs,\n easing: \"ease-out\"\n })\n }\n\n /**\n * Paging a picture in the page's zoom, like scrolling: the shown one slides out (up for next, down for previous)\n * as the next slides in from the other side.\n * - `update()` makes the zoom show the next picture; a copy of the shown one slides out meanwhile, so for a\n * moment there are two\n * - SIDE EFFECT: the copy is added beside the figure (fixed where it was), and removed when it has gone\n * - reduced motion, or nothing drawn yet: just `update()`\n */\n private static async slide(zoom: Element, direction: 1 | -1, update: () => void) {\n const figure = zoom.shadowRoot?.querySelector<HTMLElement>(\".figure\")\n if (!figure || ZoomMotion.isStill()) return update()\n const box = figure.getBoundingClientRect()\n const copy = figure.cloneNode(true) as HTMLElement\n Object.assign(copy.style, {\n position: \"fixed\",\n left: `${box.left}px`,\n top: `${box.top}px`,\n width: `${box.width}px`,\n margin: \"0\",\n pointerEvents: \"none\"\n })\n figure.after(copy)\n const away = direction > 0 ? \"-100vh\" : \"100vh\"\n const from = direction > 0 ? \"100vh\" : \"-100vh\"\n // held below (or above) the window until its picture is ready\n figure.style.transform = `translateY(${from})`\n update()\n await new Promise((resolve) => beforeNextPaint(() => resolve(undefined)))\n await figure\n .querySelector(\"img\")\n ?.decode()\n .catch(() => undefined)\n const timing = { duration: ZoomMotion.slideMs, easing: ZoomMotion.ease }\n copy.animate([{ transform: \"none\" }, { transform: `translateY(${away})` }], timing).finished.then(\n () => copy.remove(),\n () => copy.remove()\n )\n const entering = figure.animate([{ transform: `translateY(${from})` }, { transform: \"none\" }], timing)\n entering.finished.then(\n () => (figure.style.transform = \"\"),\n () => (figure.style.transform = \"\")\n )\n }\n\n /** What the page's zoom was last handed: the image, or the `<ui-image>` whose shadow root holds it. */\n static shown: Element | undefined\n\n /** Everything on the page that zooms, in document order: the ONE list the arrow keys step through. */\n static zoomables(): Element[] {\n return [...document.querySelectorAll(ZOOMABLES)].filter((element) =>\n element instanceof HTMLImageElement ? ImageZoom.isZoomable(element) : !element.hasAttribute(ADDED)\n )\n }\n\n /**\n * Show the zoomable `direction` (1 next, -1 previous) after `from`; `from` is shut by `shut()`\n * - at either end it doesn't wrap: the shown one bounces (`bounce()`)\n * - `from`: a content `<ui-zoom>`, or `undefined` for the page's own zoom (showing `ImageZoom.shown`)\n * - an image replaces the page zoom's picture in place: its modal stays open\n */\n static step(direction: 1 | -1, from: Element | undefined, shut: () => void) {\n const list = ImageZoom.zoomables()\n if (list.length < 2) return\n const at = list.indexOf(from ?? ImageZoom.shown!)\n const target = list[(at < 0 ? (direction > 0 ? -1 : list.length) : at) + direction]\n if (!target) {\n const zoom = from ?? document.querySelector(`body > ${ZOOM_TAG}[${ADDED}]`)\n ImageZoom.bounce(zoom?.shadowRoot?.querySelector(from ? \".content\" : \".figure\"), direction)\n return\n }\n if (target.localName === ZOOM_TAG) {\n shut()\n target.shadowRoot?.querySelector<HTMLButtonElement>(\"button.show\")?.click()\n return\n }\n const image = target instanceof HTMLImageElement ? target : target.shadowRoot?.querySelector(\"img\")\n if (!image) return\n if (from) {\n ImageZoom.show(image)\n shut()\n return\n }\n const zoom = document.querySelector(`body > ${ZOOM_TAG}[${ADDED}]`)\n if (zoom) void ImageZoom.slide(zoom, direction, () => ImageZoom.show(image))\n else ImageZoom.show(image)\n }\n\n /** Does `link` lead to an image: `image`'s own file, a `data:image/` address, or a file with an image's extension? */\n private static linksImage(link: HTMLAnchorElement, image: HTMLImageElement): boolean {\n const href = link.href\n if (!href) return true\n if (href === image.src || href === image.currentSrc) return true\n return IMAGE_ADDRESS.test(href)\n }\n}\n\n/** The page's zoom. */\nconst ZOOM_TAG = \"ui-zoom\"\n\n/**\n * The zoom's motion, for `<ui-zoom>` and `ImageZoom`.\n * - growing out of the page's picture, shrinking back, paging, the bounce at either end\n * - none of it for `prefers-reduced-motion`: `isStill()`\n */\nexport const ZoomMotion = {\n /** the easing of every move but the bounce */\n ease: \"cubic-bezier(.2, .8, .2, 1)\",\n /** growing out of the page's picture (ms) */\n growMs: 320,\n /** shrinking back into it (ms) */\n shrinkMs: 240,\n /** paging, in and out (ms) */\n slideMs: 380,\n /** the bounce at either end: how far (px) and how long (ms) */\n bouncePx: 40,\n bounceMs: 320,\n /** The person asked for less motion. */\n isStill: () => matchMedia(\"(prefers-reduced-motion: reduce)\").matches\n}\n\n/** What zooms: content zooms, `<ui-image zoom>`s and plain images (`isZoomable()` picks those). */\nconst ZOOMABLES = \"ui-zoom, ui-image[zoom], img\"\n\n/** The attribute that marks a zoomable image under the pointer: the page's sheet draws its cursor. */\nconst ZOOM_MARK = \"data-ui-zoom\"\n\n/** The mark on the zoom `show()` made: the docs' live patch steps around it, and `show()` finds it again. */\nconst ADDED = \"data-spell-added\"\n\n/** What an image is never zoomed inside: a button, a `<ui-zoom>` of its own, or a block marked so. */\nconst NO_ZOOM = \"[data-no-zoom], button, ui-button, ui-zoom\"\n\n/** The least an image is shown at, on its longer side, to zoom: smaller ones are icons and badges. */\nconst MIN_SHOWN = 64\n\n/** An address of an image: a `data:image/` one, or a file by its extension (before any `?` or `#`). */\nconst IMAGE_ADDRESS = /^data:image\\/|\\.(png|jpe?g|gif|webp|avif|svg)([?#]|$)/i\n","/**\n * The English vocabulary of `<ui-zoom>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Moved from the epics pack's `<epic-zoom>` (epic `ui-gaps` P14, from epic `epic-engine` P14 and its Q22):\n * it zooms an image, as `<epic-zoom>` did, AND anything it wraps.\n * - No class words: every attribute is property-only.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `zoomVocabulary`\n * The names of `<ui-zoom>`: something shown small, or not at all, and full size over the page on a click.\n ****************/\nexport const zoomVocabulary = {\n tag: \"ui-zoom\",\n icon: \"search plus\",\n topics: [\"images\", \"media\", \"overlays\"],\n aka: [\"lightbox\", \"zoom\", \"full size\", \"image viewer\", \"magnifier\", \"expand\", \"screenshot\", \"thumbnail\"],\n noun: \"zoom\",\n partOfSpeech: \"structure\",\n description:\n \"A zoom shows something full size, over the page. Round any content it shows it shrunk, within a width and \" +\n \"height, and full size on a click; with `src` it shows that image full size. Escape, a click outside it or \" +\n \"its close button close it.\",\n attributes: [\n {\n name: \"max-width\",\n group: \"layout\",\n kind: \"string\",\n description:\n \"The widest the shrunk view gets, a CSS length (`320px`, `50%`); none: its container's width. \" +\n \"Content past it is cut off, until it's shown full size.\"\n },\n {\n name: \"max-height\",\n group: \"layout\",\n kind: \"string\",\n description:\n \"The tallest the shrunk view gets, a CSS length (`200px`, `20em`); none: as tall as its content. \" +\n \"Content past it is cut off, until it's shown full size.\"\n },\n {\n name: \"shrink\",\n group: \"layout\",\n kind: \"string\",\n default: \"50%\",\n description:\n \"How big its content is in the shrunk view, a percentage of its full size: `50%` by default; `100%` \" +\n \"keeps it full size, cut off by `max-width` / `max-height`.\"\n },\n {\n name: \"open\",\n group: \"states\",\n kind: \"boolean\",\n description: \"Shown full size, over the page. Set to open it from script; closing it clears it.\"\n },\n {\n name: \"src\",\n group: \"link\",\n kind: \"string\",\n description:\n \"An image to show full size, in place of its content: open while it's set, and cleared as it closes. \" +\n \"The page's zoom for its screenshots (`ImageZoom`) is one of these.\"\n },\n {\n name: \"alt\",\n group: \"content\",\n kind: \"string\",\n description: \"With `src`: the image's alt text, its caption, and the zoomed image's own name.\"\n }\n ],\n events: [],\n slots: [{ name: \"\", description: \"What it zooms: any content, shown shrunk, then full size on a click.\" }],\n parts: [\n { name: \"view\", description: \"The shrunk view of its content, in the page.\" },\n { name: \"button\", description: \"The button over the shrunk view that shows it full size.\" },\n { name: \"base\", description: \"The `<ui-modal>`, over the whole window.\" },\n { name: \"content\", description: \"Its content, full size, in the modal.\" },\n { name: \"image\", description: \"With `src`: the image, as large as fits.\" },\n { name: \"caption\", description: \"With `src`: its alt text, under it.\" }\n ],\n states: [{ name: \"open\", description: \"Shown full size, over the page.\" }],\n texts: [\n { key: \"show\", text: \"Show full size\", description: \"The name of the button over the shrunk view.\" },\n { key: \"zoomed\", text: \"{alt}, full size\", description: \"The zoomed image's alt text (its own `alt`).\" },\n { key: \"untitled\", text: \"Image, full size\", description: \"The zoomed image's alt text, when it had none.\" }\n ]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { ImageZoom, ZoomMotion } from \"./ImageZoom\"\nimport { zoomVocabulary } from \"./UIZoom.en\"\n\nimport zoomCSS from \"./UIZoom.css?inline\"\n\n/****************\n * ### `<ui-zoom>`\n * The component behind `<ui-zoom>`: something shown full size over the page (epic `ui-gaps` P14, from the epics\n * pack's `<epic-zoom>`; Owen, epic `epic-engine` Q22: \"both. `<ui-zoom>` can surround anything to zoom it\").\n *\n * - Round any content: the content is shown SHRUNK in the page, and full size on a click.\n * - shrunk: laid out at full size, then drawn at `shrink` of it (50% by default; CSS `zoom`),\n * within `max-width` / `max-height`, cut off past them\n * - a button over the whole view opens it; the content under it can't be reached until then (`inert`)\n * - full size: in a `<ui-modal appearance=\"basic\">`, on the page's ground, at the width it had in the page;\n * the view keeps its room meanwhile, so the page doesn't jump\n * - `open` says it's open (and opens it from script); Escape, the backdrop or the close button shut it\n * - With `src`: that image full size, as `<epic-zoom>` did, in place of any content.\n * - as large as fits the window (never cropped, never enlarged past its own size), its alt text under it\n * - open while `src` is set; Escape, a click anywhere or the close button close it, and it removes its own `src`\n * - the page's ONE zoom for its screenshots is one of these, made by `ImageZoom.show()`; `<ui-image zoom>` uses it\n * - Motion (none under `prefers-reduced-motion`):\n * - it GROWS out of its place on the page (the content's view, or the picture clicked) and SHRINKS back into it\n * before the modal closes, however it's closed (Escape, a click, the close button)\n * - paging with the arrow keys slides the next picture in, like scrolling (`ImageZoom`)\n * - Arrow keys while showing: the next / previous zoomable on the page; past either end the picture bounces (`ImageZoom.step()`)\n * - The modal's own events (`ui-opened`, `ui-closed` ...) come out of it, as from any `<ui-modal>`.\n ****************/\nexport class UIZoom extends E.UIComponent<typeof zoomVocabulary> {\n @E.proto static vocabulary = zoomVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { zoom: zoomCSS }\n } satisfies Partial<E.ElementSetup>\n\n /** Its content shown full size: `open`. */\n @E.cssState(\"open\")\n @E.controlled(\"open\")\n accessor isOpen = false\n\n /**\n * Opening and shutting it as a person does: through `requestChange()`, so the page's own `open` wins;\n * no events of its own (its modal's come out), and its button's `aria-expanded`.\n */\n readonly disclosure = new E.Disclosure({ component: this, member: \"isOpen\" })\n\n /** The room the view took in the page, kept while its content is in the modal. */\n @E.state accessor heldSize: { width: number; height: number } | undefined = undefined\n\n /** The width its content was laid out at in the page, in px: the modal shows it at that width. */\n @E.state accessor fullWidth: number | undefined = undefined\n\n /** The modal is up: an image (`src`), or the content. */\n get isShowing(): boolean {\n return !!this.src || this.isOpen\n }\n\n /** `shrink` as a ratio: `\"50%\"` => 0.5; anything it can't read, the default. */\n get shrinkRatio(): number {\n const percent = Number.parseFloat(this.shrink ?? \"\")\n if (!Number.isFinite(percent) || percent <= 0) return DEFAULT_RATIO\n return Math.min(percent, 100) / 100\n }\n\n /** The view's box: its caps, or the room it holds while open. */\n get viewStyle(): JSX.CSSProperties {\n const style: JSX.CSSProperties = {}\n if (this.maxWidth) style[\"max-inline-size\"] = `min(100%, ${this.maxWidth})`\n if (this.maxHeight) style[\"max-block-size\"] = this.maxHeight\n const held = this.isOpen ? this.heldSize : undefined\n if (held) Object.assign(style, { \"inline-size\": `${held.width}px`, \"block-size\": `${held.height}px` })\n return style\n }\n\n /** The shrunk view's box, once drawn. */\n private view?: HTMLElement\n /** The modal, once drawn. */\n private modal?: HTMLElement\n\n /** The button over the view: its room kept, then shown full size. */\n @E.untracked\n protected showFullSize() {\n const view = this.view\n if (view) {\n const box = view.getBoundingClientRect()\n this.heldSize = { width: box.width, height: box.height }\n const shrunk = view.querySelector<HTMLElement>(`.${SHRUNK}`)\n if (shrunk) this.fullWidth = Math.round(shrunk.getBoundingClientRect().width / this.shrinkRatio)\n }\n this.disclosure.open()\n }\n\n /** Shut (Escape, its close button, the backdrop): an image's `src` goes, ready for the next; content goes back. */\n @E.on(\"ui-closed\", { target: \"renderRoot\" })\n protected onClosed(event: Event) {\n // a modal in the content, closing, says so through this shadow root too: only its own counts\n if (event.target !== this.modal) return\n this.shut()\n }\n\n /**\n * About to close (Escape, the backdrop, its close button): shrink back into place first, then close.\n * - `ui-closing` is vetoed while it shrinks, then `shut()` closes the modal without asking again\n */\n @E.on(\"ui-closing\", { target: \"renderRoot\" })\n protected onClosing(event: Event) {\n if (event.target !== this.modal) return\n if (!this.isShrinking && !this.canMove()) return\n event.preventDefault()\n void this.dismiss()\n }\n\n /** A click on the zoomed image: shut too, as a lightbox does. */\n @E.on(\"click\", { target: \"renderRoot\" })\n protected onClick(event: MouseEvent) {\n if (event.target instanceof Element && event.target.closest(`.${FIGURE}`)) void this.dismiss()\n }\n\n ////////////////\n // ## Growing and shrinking\n ////////////////\n\n /** Shown now, for `onShowingChanged()`. */\n private wasShowing = false\n\n /** It shrinks back into the page: shutting waits for it. */\n private isShrinking = false\n\n /** It came up (a picture's `src`, or `open`): grow out of its place. */\n @E.onChange(\"src\", \"isOpen\")\n protected onShowingChanged() {\n const showing = this.isShowing\n if (showing && !this.wasShowing) void this.grow()\n this.wasShowing = showing\n }\n\n /** What's drawn full size: the picture, or the content's box. */\n private get zoomed(): HTMLElement | null {\n return this.modal?.querySelector<HTMLElement>(`.${IMAGE}, .${CONTENT}`) ?? null\n }\n\n /** Where it sits on the page: the picture clicked (still the one `src` shows), or the content's view. */\n private get placeOnPage(): DOMRect | undefined {\n let box: DOMRect | undefined\n if (this.src) {\n const shown = ImageZoom.shown\n const image = shown instanceof HTMLImageElement ? shown : shown?.shadowRoot?.querySelector(\"img\")\n if (image?.isConnected && (image.currentSrc || image.src) === this.src) box = image.getBoundingClientRect()\n } else box = this.view?.getBoundingClientRect()\n return box?.width ? box : undefined\n }\n\n /** Can it grow or shrink: motion allowed, something drawn, and its place on the page known? */\n private canMove(): boolean {\n return !ZoomMotion.isStill() && !!this.zoomed && !!this.placeOnPage\n }\n\n /** The transform that draws `zoomed` over `place`: centred on it, scaled to its width. */\n private static over(place: DOMRect, zoomed: DOMRect): string {\n const dx = place.left + place.width / 2 - (zoomed.left + zoomed.width / 2)\n const dy = place.top + place.height / 2 - (zoomed.top + zoomed.height / 2)\n return `translate(${dx}px, ${dy}px) scale(${place.width / zoomed.width})`\n }\n\n /** Grow out of its place on the page. */\n private async grow() {\n if (ZoomMotion.isStill()) return\n // once it's drawn into the modal: the first time, that takes the element's own set-up too\n let zoomed = this.zoomed\n for (let frame = 0; !zoomed && frame < DRAW_FRAMES; frame++) {\n await new Promise((resolve) => E.beforeNextPaint(() => resolve(undefined)))\n zoomed = this.zoomed\n }\n const place = this.placeOnPage\n if (!zoomed || !place) return\n if (zoomed instanceof HTMLImageElement) await zoomed.decode().catch(() => undefined)\n const frames = [\n { transform: UIZoom.over(place, zoomed.getBoundingClientRect()), opacity: 0.6 },\n { transform: \"none\", opacity: 1 }\n ]\n zoomed.animate(frames, { duration: ZoomMotion.growMs, easing: ZoomMotion.ease })\n }\n\n /** Shrink back into its place on the page, then `shut()`; at once when it can't move. */\n @E.untracked\n private async dismiss() {\n if (this.isShrinking) return\n const zoomed = this.zoomed\n const place = this.placeOnPage\n if (!zoomed || !place || ZoomMotion.isStill()) return this.shut()\n this.isShrinking = true\n const frames = [\n { transform: \"none\", opacity: 1 },\n { transform: UIZoom.over(place, zoomed.getBoundingClientRect()), opacity: 0.4 }\n ]\n // held at the end while the modal fades\n const shrinking = zoomed.animate(frames, {\n duration: ZoomMotion.shrinkMs,\n easing: ZoomMotion.ease,\n fill: \"forwards\"\n })\n await shrinking.finished.catch(() => undefined)\n this.isShrinking = false\n this.shut()\n }\n\n /**\n * Arrow keys while showing: the next / previous zoomable on the page (`ImageZoom.step()`).\n * Not from a text field in the zoomed content, which keeps its arrows.\n */\n @E.on(\"keydown\", { target: \"renderRoot\" })\n protected onKeyDown(event: KeyboardEvent) {\n const step = ARROW_STEPS[event.key]\n if (!step || event.defaultPrevented || event.metaKey || event.ctrlKey || event.altKey || !this.isShowing) return\n const typing = event.composedPath()[0]\n if (typing instanceof HTMLElement && typing.matches(TEXT_FIELDS)) return\n event.preventDefault()\n ImageZoom.step(step, this.src ? undefined : this.domElement, () => this.shut())\n }\n\n /** Shut: no `src`, not open. */\n @E.untracked\n private shut() {\n if (this.src) this.domElement.removeAttribute(\"src\")\n this.disclosure.close()\n }\n\n render(): JSX.Element {\n return (\n <>\n <Show when={!this.src}>\n <div\n ref={(element) => (this.view = element)}\n class={VIEW}\n part={this.partForName(\"view\")}\n style={this.viewStyle}\n >\n <Show when={!this.isOpen}>\n <div class={SHRUNK} inert={true} style={{ zoom: String(this.shrinkRatio) }}>\n <slot />\n </div>\n </Show>\n <button\n type=\"button\"\n class={SHOW}\n part={this.partForName(\"button\")}\n aria-label={this.translationForKey(\"show\")}\n aria-haspopup=\"dialog\"\n aria-expanded={this.disclosure.ariaExpanded}\n title={this.translationForKey(\"show\")}\n onClick={() => this.showFullSize()}\n />\n </div>\n </Show>\n <ui-modal\n ref={(element: HTMLElement) => (this.modal = element)}\n class={this.rootClass}\n part={this.partForName(\"base\")}\n appearance=\"basic\"\n closable=\"\"\n visible={this.isShowing ? \"\" : undefined}\n >\n <Show when={this.src} fallback={this.fullContent()}>\n {(src) => (\n <figure class={FIGURE}>\n <img\n class={IMAGE}\n part={this.partForName(\"image\")}\n src={src()}\n alt={\n this.alt ? this.translationForKey(\"zoomed\", { alt: this.alt }) : this.translationForKey(\"untitled\")\n }\n />\n <Show when={this.alt}>\n <figcaption class={CAPTION} part={this.partForName(\"caption\")}>\n {this.alt}\n </figcaption>\n </Show>\n </figure>\n )}\n </Show>\n </ui-modal>\n </>\n )\n }\n\n /** Its content, full size, while open: at the width it had in the page. */\n private fullContent(): JSX.Element {\n return (\n <Show when={this.isOpen}>\n <div class={CONTENT} part={this.partForName(\"content\")}>\n <div style={this.fullWidth ? { \"inline-size\": `${this.fullWidth}px` } : undefined}>\n <slot />\n </div>\n </div>\n </Show>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIZoom extends E.AttributeValues<typeof zoomVocabulary> {}\n\n/** Arrow keys that step to the next (1) or previous (-1) zoomable. */\nconst ARROW_STEPS: Record<string, 1 | -1 | undefined> = { ArrowRight: 1, ArrowDown: 1, ArrowLeft: -1, ArrowUp: -1 }\n\n/** What keeps its own arrow keys. */\nconst TEXT_FIELDS = \"input:not([type=checkbox], [type=radio], [type=button]), textarea, select, [contenteditable]\"\n\n/** How many frames it waits for its picture or content to be drawn, before it gives up growing. */\nconst DRAW_FRAMES = 30\n\n/** `shrink`'s default: half size. */\nconst DEFAULT_RATIO = 0.5\n\n/** Classes of its shadow markup: the view, its shrunk content, its button; the image, its figure and caption; the content full size. */\nconst VIEW = \"view\"\nconst SHRUNK = \"shrunk\"\nconst SHOW = \"show\"\nconst FIGURE = \"figure\"\nconst IMAGE = \"image\"\nconst CAPTION = \"caption\"\nconst CONTENT = \"content\"\n","/**\n * The zoom family: defines `<ui-zoom>` and exports its component, `UIZoom`, and `ImageZoom`, which opens a page's\n * screenshots in it.\n * - SIDE EFFECT: importing it defines the tag, and `<ui-modal>` (what it shows things full size in).\n * - Also the library's `spell/ui/ui-zoom` entry (its size is in `notes/report.md`).\n * - `ImageZoom` alone, with no element: `spell/ui/components/ui-zoom/ImageZoom` (the docs runtime's import).\n */\n\nimport { UIZoom } from \"./UIZoom\"\nimport { ImageZoom } from \"./ImageZoom\"\n\nimport \"spell/ui/components/ui-modal\"\n\nUIZoom.define()\n\nexport { UIZoom, ImageZoom }\n"],"mappings":";;;;;;AAiCA,IAAasD,IAAb,MAAa,UAAU;CAErB,OAAO,SAAS,GAAiD;EAE/D,IADIC,EAAM,oBAAoBA,EAAM,WAAW,KAC3CA,EAAM,WAAWA,EAAM,WAAWA,EAAM,YAAYA,EAAM,QAAQ;EACtE,IAAMC,IAASD,EAAM,kBAAkB,UAAUA,EAAM,SAAS,MAC1DE,IAAQD,GAAQ,QAAQ,KAAK,KAAKA,GAAQ,QAAQ,GAAG,CAAC,EAAE,cAAc,KAAK;EACjF,OAAOC,KAAS,UAAU,WAAWA,CAAK,IAAIA,IAAQ,KAAA;CACxD;CAGA,O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,EADEgE,GACK,cAAa5D,EAApBwD,GAAA,IADEI,GACkB1B,EAAA,CAAA,GAApBlC,EAAAwD,GAAA,IADEI,CAAA,GAEIhE,EAFJgE,GAEW,gBAAe5D,EAAtBwD,GAAA,IAFJI,GAE0B,EACnC,aAAa,EAAE,MAAMlE,GAAQ,EAC/B,CAAA,CAAA,GAFeM,EAAAwD,GAAA,IAFJI,CAAA;AAAN,IAAMiE,IAANjE,GAmRD4B,KAAkD;CAAE,YAAY;CAAG,WAAW;CAAG,WAAW;CAAI,SAAS;AAAG,GAG5GE,KAAc,gGAGdL,KAAc,IAGdb,KAAgB,IAGhBkC,KAAO,QACP7B,IAAS,UACT8B,KAAO,QACP7B,IAAS,UACTE,IAAQ,SACRuC,KAAU,WACVtC,KAAU;;A,eCxThB4C,EAAO,OAAO"}
@@ -15,14 +15,23 @@ export declare class TopLayerTip {
15
15
  * Show the tip inside `container` while the pointer's on a `trigger`, or one has keyboard focus.
16
16
  * - `container`: an element holding the tip and every trigger; a tip that comes and goes is found each time.
17
17
  * - `trigger`: a selector inside the same shadow root.
18
- * - `showOnClick`: a click on a trigger shows it at once, for as long as it keeps focus: an info icon's, whose click does nothing else.
19
- * Not for a trigger whose click does something, e.g. a section's title: there, only keyboard focus shows it.
18
+ * - `showOnClick`: a click on a trigger shows it at once, for as long as it keeps focus.
19
+ * - For an info icon's, whose click does nothing else.
20
+ * - Not for a trigger whose click does something, e.g. a section's title: there, only keyboard focus shows it.
21
+ * - A click anywhere else hides it again,
22
+ * even where the browser keeps the focus on it (a dialog's empty space).
20
23
  * - Escape hides it, until the pointer or the focus comes back.
21
24
  * - NEVER throws.
22
25
  */
23
26
  static showIn(container: HTMLElement, trigger: string, { showOnClick }?: {
24
27
  showOnClick?: boolean;
25
28
  }): void;
29
+ /**
30
+ * Take the focus off `trigger` when the pointer goes down anywhere but a trigger; returns `stop()`.
31
+ * - Why: a click on a dialog's empty space leaves the focus where it was, so a tip shown by a click stayed up.
32
+ * - Blurring hides the sheet's `:focus` look too, and its `focusout` stops this.
33
+ */
34
+ private static blurOnClickElsewhere;
26
35
  /** Put `tip` in the top layer, or take it out. NEVER throws: one the browser can't show stays in its frame. */
27
36
  static setShown(tip: HTMLElement, isShown: boolean): void;
28
37
  }
@@ -9,6 +9,8 @@ import { AttributeSpec, ComponentVocabulary, StateSpec } from '../_spell-element
9
9
  * a hard shadow behind its letters, and how wide its box is where it sits
10
10
  * - `movable` and `resizable` (epic `mockup` P14, J35): people drag it to a new place, or its corner to resize it
11
11
  * (`MoveAndResize`, in `spell/element`)
12
+ * - `on-platform` (epic `mockup` T53): shown only on the devices it names, `phone`, `tablet`, `desktop`
13
+ * (`spell/util/platform`); `reset.css` hides it everywhere else
12
14
  * - `UIComponent` reads them ("Shared states", "Shown or hidden"):
13
15
  * so `<ui-menu disabled>`, `<ui-table loading>`, `<ui-message visible="false">`
14
16
  * and `<ui-modal animation="fly down">` work, though those vocabularies never name them.
@@ -22,6 +22,7 @@ export declare const sharedEs: {
22
22
  readonly label: "etiqueta";
23
23
  readonly movable: "movible";
24
24
  readonly resizable: "redimensionable";
25
+ readonly "on-platform": "en-plataforma";
25
26
  };
26
27
  readonly values: {
27
28
  readonly font: {
@@ -0,0 +1,11 @@
1
+ /**
2
+ * What each tag is, and each of its own attributes: each description's first sentence (epic `editor` P28).
3
+ * - `empty`: it holds nothing (no default slot), so an editor writes it closed, `<icon/>` (I70).
4
+ */
5
+ export declare const HELP_TABLE: Readonly<Record<string, {
6
+ description?: string;
7
+ empty?: true;
8
+ attributes: Readonly<Record<string, string>>;
9
+ }>>;
10
+ /** What each attribute every tag takes is (`disabled`, `loading` ...). */
11
+ export declare const SHARED_HELP: Readonly<Record<string, string>>;
@@ -0,0 +1,6 @@
1
+ import { PartOfSpeech } from '../_spell-element/vocabulary.types';
2
+ /**
3
+ * Each tag's part of speech, from its vocabulary (`partOfSpeech`): its band's colour in Spell's bubbly look
4
+ * (epic `language` T124). Small on purpose: a docs page drawing HTML bubbly loads it, never Spell UI.
5
+ */
6
+ export declare const PARTS_OF_SPEECH: Readonly<Record<string, PartOfSpeech>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spell-ui",
3
- "version": "0.8.9",
3
+ "version": "0.8.11",
4
4
  "description": "Beautiful, themeable, accessible components that load themselves on demand, for use in plain HTML or any framework",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/spell-app/spell",
@@ -43,7 +43,7 @@
43
43
  "temporal-polyfill": "^1.0.5"
44
44
  },
45
45
  "peerDependencies": {
46
- "solid-js": "2.0.0-rc.17",
47
- "@solidjs/web": "2.0.0-rc.17"
46
+ "solid-js": "2.0.0-rc.21",
47
+ "@solidjs/web": "2.0.0-rc.21"
48
48
  }
49
49
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"Dragging-CMZoLEWQ.js","names":["__exportAll","Dragging_exports","Dragging","DRAG_COVER","element","options","event","listening","left","x","top","y","width","height","dx","dy","target","following","next","DRAGGING_Z_INDEX","wasDragging","from","SLIDE_BACK_MS","SLIDE_BACK_EASING","type","hits","hit","under","at","lists","child","row","list","box","kind","span","other","taking","chain","rule","each","soon"],"sources":["../../src/util/Dragging.ts"],"sourcesContent":["import { beforeNextPaint, soon } from \"./timing\"\n\n/****************\n * ### `Dragging`\n * One drag of a view's element, from pointer down to pointer up: a mouse and a finger alike.\n *\n * - What it carries: the element, and its list's items after it, e.g. a tableau's face-up card and the cards on it.\n * - They follow the pointer by their `translate`, raised above the board.\n * - They ignore the pointer meanwhile, so what's under it can be found.\n * - Or what its owner says (`DragOptions.carried`), staying where it is (`follows: false`):\n * e.g. a task list's selected tasks, dimmed, while a line shows where they'd go\n * (`SpellElement`, epic `outline-spell` P30).\n * - Where it lands: the viewable list's element under the pointer, as `dropTargetAt()` finds it.\n * - It sends the web's own drag events, as `DragEvent`s with no `dataTransfer`,\n * so a page can follow it as it would the browser's drag and drop:\n * - on the dragged element: `dragstart`, `drag` as it moves, `dragend`\n * - on the list under the pointer: `dragenter`, `dragover` as it moves over it, `dragleave`, and `drop`\n * - What's being dragged meanwhile: `Dragging.current`.\n * - Why not the browser's own drag and drop (`draggable=\"true\"`):\n * it's patchy on phones, only a faded picture of one element follows the pointer, and it can't glide or slide back.\n * - A press that doesn't move past `DRAG_START_PX` is no drag: its click goes through as ever.\n * A real drag swallows the click that follows it.\n * - What happens on the drop is its owner's to say (`onDrop`), e.g. `SpellElement`'s:\n * the pile's `when a card is dropped on it`, else the program's `card-drop`.\n * - What still sits where it was dragged from afterwards, a drop nobody took, slides back.\n * - Escape cancels it (epic `debut` P27, Q47): everything slides back, and its owner hears `onCancel`,\n * as it does for a drag the browser takes away, or the window losing focus mid-drag (epic `language` T29).\n * - What moved is drawn again in its new list, and glides there from where it was dropped (`Glides`).\n * - A mouse drag covers the whole page with the closed hand, whatever is under it (`DRAG_COVER`).\n * - A rule can't do that: nothing in a page's sheets reaches into every shadow root,\n * and the code editor sets its own cursor.\n * - A drag can leave finding its place to its owner (`DragOptions.placing`), e.g. the editor's, moving a part:\n * no list hears of it, and `placing` is told where the pointer is.\n * - Plain DOM: no Solid, no core. Its owner hands it the element and what to do.\n * - In util, not Spell UI's runtime: a runner's build may not reach into `spell/ui/runtime`.\n ****************/\nexport class Dragging {\n /** The drag in progress, if any: a list under the pointer asks it what's coming. */\n static current: Dragging | undefined\n\n /** What covers the page during a mouse drag, showing the closed hand: made once, on the first use. */\n private static get cover(): HTMLElement {\n if (!Dragging.madeCover) {\n Dragging.madeCover = document.createElement(\"div\")\n Dragging.madeCover.style.cssText = DRAG_COVER\n }\n return Dragging.madeCover\n }\n private static madeCover: HTMLElement | undefined\n\n /** Was it pressed with a finger? No cursor to show, so no cover. */\n private readonly isTouch: boolean\n\n /** Start watching a press on `element`, `event` its `pointerdown`: a drag once it moves far enough. */\n constructor(\n readonly element: HTMLElement,\n event: PointerEvent,\n private readonly options: DragOptions\n ) {\n this.isTouch = event.pointerType === \"touch\"\n this.startX = event.clientX\n this.startY = event.clientY\n this.pointerId = event.pointerId\n this.pressedAt = element.getBoundingClientRect()\n const listening = { signal: this.listening.signal }\n window.addEventListener(\"pointermove\", this.onMove, listening)\n window.addEventListener(\"pointerup\", this.onUp, listening)\n window.addEventListener(\"pointercancel\", this.onCancel, listening)\n window.addEventListener(\"keydown\", this.onKey, { ...listening, capture: true })\n window.addEventListener(\"blur\", this.onBlur, listening)\n }\n\n /** Where the press started. */\n private readonly startX: number\n private readonly startY: number\n /** Where the element was as it was pressed: where in it the press was, and its size (`heldBoxAt()`). */\n private readonly pressedAt: DOMRect\n /** The pointer pressing: a second finger is ignored. */\n private readonly pointerId: number\n /** Ends the window listeners. */\n private readonly listening = new AbortController()\n /** What's carried, once it's a drag: the element, then its list's items after it -- or what `options` says. */\n private moving: HTMLElement[] = []\n\n /** What's carried: the element first. */\n get carried(): readonly HTMLElement[] {\n return this.moving\n }\n\n /**\n * Where the dragged element would be with the pointer at (`x`, `y`), held where it was pressed:\n * grabbed near its bottom, it's mostly above the pointer.\n * - So a list placing it goes by the element, not the pointer: it lands under the pointer as it was held.\n */\n heldBoxAt(x: number, y: number): DOMRect {\n const { left, top, width, height } = this.pressedAt\n return new DOMRect(left + x - this.startX, top + y - this.startY, width, height)\n }\n\n /** Does what's carried follow the pointer? Else it stays where it is (`DragOptions.follows`). */\n get follows(): boolean {\n return this.options.follows !== false\n }\n\n /** The drop target under the pointer now, if any: it's had `dragenter`, and gets `dragleave` as the pointer leaves. */\n private over: HTMLElement | undefined\n\n /** The pointer moved: past `DRAG_START_PX`, a drag starts; during one, what's dragged follows it. */\n private readonly onMove = (event: PointerEvent) => {\n if (event.pointerId !== this.pointerId) return\n const dx = event.clientX - this.startX\n const dy = event.clientY - this.startY\n if (!this.moving.length) {\n if (Math.hypot(dx, dy) < DRAG_START_PX) return\n this.start()\n }\n if (this.follows) for (const element of this.moving) element.style.translate = `${dx}px ${dy}px`\n event.preventDefault()\n Dragging.send(this.element, \"drag\", event)\n if (this.options.placing) return this.options.placing(event.clientX, event.clientY)\n this.moveOver(Dragging.dropTargetAt(this.element, event.clientX, event.clientY), event)\n }\n\n /** The pointer is over `target` now: `dragleave` on the one it left, `dragenter` on a new one, `dragover` on it. */\n private moveOver(target: HTMLElement | undefined, event: PointerEvent) {\n if (target !== this.over) {\n if (this.over) Dragging.send(this.over, \"dragleave\", event)\n this.over = target\n if (target) Dragging.send(target, \"dragenter\", event)\n }\n if (target) Dragging.send(target, \"dragover\", event)\n }\n\n /**\n * The drag starts: what's carried is raised, and leaves the pointer to what's under it --\n * unless it stays where it is.\n */\n private start() {\n const following: HTMLElement[] = []\n for (let next = this.element.nextElementSibling; next; next = next.nextElementSibling) {\n following.push(next as HTMLElement)\n }\n this.moving = this.options.carried ?? [this.element, ...following]\n if (this.follows) {\n for (const element of this.moving) {\n element.style.zIndex = DRAGGING_Z_INDEX\n element.style.pointerEvents = \"none\"\n }\n }\n // no text selected as the pointer sweeps the page, as the browser's own drag selects none\n getSelection()?.removeAllRanges()\n document.documentElement.style.userSelect = \"none\"\n if (!this.isTouch) document.body.append(Dragging.cover)\n Dragging.current = this\n this.element.dispatchEvent(new DragEvent(\"dragstart\", { bubbles: true, composed: true }))\n }\n\n /** The pointer's let go: a drag drops where it is; a press with no drag is left to its click. */\n private readonly onUp = (event: PointerEvent) => {\n if (event.pointerId !== this.pointerId) return\n this.listening.abort()\n if (!this.moving.length) return\n Dragging.swallowNextClick()\n const target = this.options.placing ? undefined : Dragging.dropTargetAt(this.element, event.clientX, event.clientY)\n this.moveOver(target, event)\n try {\n if (target) Dragging.send(target, \"drop\", event)\n this.options.onDrop(target)\n } finally {\n // after the move is drawn: what's still here wasn't taken, and slides back\n beforeNextPaint(() => this.settle())\n }\n }\n\n /** The browser took the pointer away (a scroll, a system gesture): put everything back. */\n private readonly onCancel = (event: PointerEvent) => {\n if (event.pointerId !== this.pointerId) return\n this.cancel(event)\n }\n\n /** Escape, during a drag: put everything back, and swallow the key. */\n private readonly onKey = (event: KeyboardEvent) => {\n if (event.key !== \"Escape\" || !this.moving.length) return\n event.preventDefault()\n event.stopPropagation()\n Dragging.swallowNextClick()\n this.cancel(event)\n }\n\n /**\n * The window lost focus mid-drag (another app, a window switch): put everything back.\n * - Its let-go may never reach the page, so the cover would stay up, swallowing every click, until the next press.\n */\n private readonly onBlur = (event: FocusEvent) => {\n if (this.moving.length) this.cancel(event)\n }\n\n /** The drag is cancelled: it leaves the list it's over, slides back, and its owner hears so (`onCancel`). */\n private cancel(event: PointerEvent | KeyboardEvent | FocusEvent) {\n this.listening.abort()\n const wasDragging = this.moving.length > 0\n if (this.over) Dragging.send(this.over, \"dragleave\", event)\n this.over = undefined\n this.settle()\n if (wasDragging) this.options.onCancel?.()\n }\n\n /** What's still where it was dragged from slides back, and takes the pointer again. */\n private settle() {\n for (const element of this.follows ? this.moving : []) {\n const from = element.style.translate\n element.style.translate = \"\"\n element.style.pointerEvents = \"\"\n element.style.zIndex = \"\"\n if (element.isConnected && from && from !== \"0px 0px\") {\n element.animate(\n [\n { translate: from, zIndex: DRAGGING_Z_INDEX },\n { translate: \"0 0\", zIndex: DRAGGING_Z_INDEX }\n ],\n {\n duration: SLIDE_BACK_MS,\n easing: SLIDE_BACK_EASING\n }\n )\n }\n }\n document.documentElement.style.userSelect = \"\"\n Dragging.cover.remove()\n if (Dragging.current === this) Dragging.current = undefined\n this.element.dispatchEvent(new DragEvent(\"dragend\", { bubbles: true, composed: true }))\n }\n\n /** Send drag event `type` to `target`, where `event`'s pointer is: a `DragEvent`, as the browser's own. */\n private static send(target: HTMLElement, type: string, event: PointerEvent | KeyboardEvent | FocusEvent) {\n const { clientX, clientY } = \"clientX\" in event ? event : { clientX: 0, clientY: 0 }\n target.dispatchEvent(new DragEvent(type, { bubbles: true, composed: true, cancelable: true, clientX, clientY }))\n }\n\n /**\n * The element under (`x`, `y`) that may take the drop, searching up from the topmost there, through shadow roots:\n * the first one `isDropTarget()` accepts -- `undefined` if none.\n * - Looked for in `element`'s own tree, where the board is (a runner's shadow root, or the page).\n * - One that won't take it, or a gap between lists: the one list of that row that would, if only one would\n * (`rowTargetAt()`), e.g. a card anywhere over a game's foundations lands on its own suit's.\n */\n static dropTargetAt(element: HTMLElement, x: number, y: number): HTMLElement | undefined {\n const root = element.getRootNode() as Document | ShadowRoot\n const hits = root.elementsFromPoint(x, y).filter((hit) => hit !== Dragging.cover)\n let under: HTMLElement | undefined\n for (const hit of hits) {\n under = Dragging.upFrom(hit).find((at) => Dragging.isDropTarget(at)) as HTMLElement | undefined\n if (under) break\n }\n if (under && Dragging.takesDrop(under)) return under\n return Dragging.rowTargetAt(hits, x, y, under) ?? under\n }\n\n /**\n * A row of lists of one kind is one place to drop, e.g. a game's foundations: the one list in it that would take\n * what's dragged -- `undefined` if none would, or more than one.\n * - The row: the lists side by side under the pointer, in the nearest element around it that holds lists,\n * of the kind it's over (its tag), or whose span it's in.\n */\n private static rowTargetAt(hits: Element[], x: number, y: number, under: HTMLElement | undefined) {\n for (const hit of hits) {\n for (const at of Dragging.upFrom(hit)) {\n const lists = [...at.children].filter((child) => Dragging.isDropTarget(child)) as HTMLElement[]\n if (lists.length < 2) continue\n const row = lists\n .map((list) => ({ list, box: list.getBoundingClientRect() }))\n .filter(({ box }) => box.top <= y && y <= box.bottom)\n const kind =\n under?.localName ??\n row.find(({ list }) => {\n const span = row.filter((other) => other.list.localName === list.localName).map(({ box }) => box)\n return Math.min(...span.map((box) => box.left)) <= x && x <= Math.max(...span.map((box) => box.right))\n })?.list.localName\n const taking = row.filter(({ list }) => list.localName === kind && Dragging.takesDrop(list))\n return taking.length === 1 ? taking[0]!.list : undefined\n }\n }\n return undefined\n }\n\n /** `element` and every element around it, up through shadow roots. */\n private static upFrom(element: Element): Element[] {\n const chain: Element[] = []\n for (let at: Element | null = element; at; at = at.parentElement ?? (at.getRootNode() as ShadowRoot).host ?? null) {\n chain.push(at)\n }\n return chain\n }\n\n /** May `element` take a drop? Yes if any owner's rule says so (`addDropRule()`). */\n static isDropTarget(element: Element): boolean {\n return Dragging.dropRules.some((rule) => rule.isDropTarget(element))\n }\n\n /** Would drop target `element` take what's dragged now? The rule that owns it says; with none, yes. */\n static takesDrop(element: Element): boolean {\n const rule = Dragging.dropRules.find((each) => each.isDropTarget(element))\n return rule ? rule.takesDrop(element) : true\n }\n\n /**\n * Add an owner's rule for what takes a drop, e.g. `SpellElement`'s: a viewable list's element.\n * - A rule, not a setting: each copy of a runtime on the page adds its own, and each knows only its own elements\n * (the editor's layout runs on a copy, beside the program's). One setting, the last copy's, would refuse the rest.\n */\n static addDropRule(rule: DropRule): void {\n Dragging.dropRules.push(rule)\n }\n private static readonly dropRules: DropRule[] = []\n\n /** The click a drag's pointer up makes is no click: swallowed, once, before anything hears it. */\n private static swallowNextClick() {\n const swallow = (event: Event) => {\n event.stopPropagation()\n event.preventDefault()\n }\n window.addEventListener(\"click\", swallow, { capture: true, once: true })\n // a pointer up off the element makes no click: stop waiting for one\n soon(() => window.removeEventListener(\"click\", swallow, { capture: true }))\n }\n}\n\n/** One owner's rule for what takes a drop: `Dragging.addDropRule()`. */\nexport type DropRule = {\n /** May `element` take a drop? Only the owner's own elements. */\n isDropTarget: (element: Element) => boolean\n /** Would `element`, one of its drop targets, take what's dragged now? */\n takesDrop: (element: Element) => boolean\n}\n\n/** How a drag goes: what its owner says. */\nexport type DragOptions = {\n /** What happens on the drop, on `target`, the list under the pointer -- `undefined` for none. */\n onDrop(target: HTMLElement | undefined): void\n /** The drag was cancelled before any drop: Escape, or the browser took the pointer away. */\n onCancel?(): void\n /** What's carried, the dragged element first; default the element and its list's items after it. */\n carried?: HTMLElement[]\n /** Does what's carried follow the pointer? Default yes; `false`: it stays where it is, dimmed by its owner. */\n follows?: boolean\n /** Its owner finds the place itself: told where the pointer is as it moves, and no list hears of the drag. */\n placing?(x: number, y: number): void\n}\n\n/** How far the pointer moves before a press is a drag, in pixels: less is a click. */\nexport const DRAG_START_PX = 6\n\n/** Above the board while dragged. */\nconst DRAGGING_Z_INDEX = \"1000\"\n\n/** How the page's cover looks during a mouse drag (`Dragging.cover`): clear, over everything, the closed hand. */\nconst DRAG_COVER = \"position: fixed; inset: 0; z-index: 2147483647; cursor: grabbing\"\n\n/** How long a drop nobody took slides back, in milliseconds. */\nconst SLIDE_BACK_MS = 200\n\n/** How it slides back: quickly at first, settling into place. */\nconst SLIDE_BACK_EASING = \"cubic-bezier(0.2, 0.7, 0.3, 1)\"\n"],"mappings":";;;;;;IAoCaE,IAAb,MAAa,SAAS;CAmBT;CAEQ;CAnBnB,OAAO;CAGP,WAAmB,QAAqB;EAKtC,OAJK,SAAS,cACZ,SAAS,YAAY,SAAS,cAAc,KAAK,GACjD,SAAS,UAAU,MAAM,UAAUC,IAE9B,SAAS;CAClB;CACA,OAAe;CAGf;CAGA,YACE,GACA,GACA,GACA;EAKA,AARS,KAAA,UAAAC,GAEQ,KAAA,UAAAC,GAEjB,KAAK,UAAUC,EAAM,gBAAgB,SACrC,KAAK,SAASA,EAAM,SACpB,KAAK,SAASA,EAAM,SACpB,KAAK,YAAYA,EAAM,WACvB,KAAK,YAAYF,EAAQ,sBAAsB;EAC/C,IAAMG,IAAY,EAAE,QAAQ,KAAK,UAAU,OAAO;EAKlD,AAJA,OAAO,iBAAiB,eAAe,KAAK,QAAQA,CAAS,GAC7D,OAAO,iBAAiB,aAAa,KAAK,MAAMA,CAAS,GACzD,OAAO,iBAAiB,iBAAiB,KAAK,UAAUA,CAAS,GACjE,OAAO,iBAAiB,WAAW,KAAK,OAAO;GAAE,GAAGA;GAAW,SAAS;EAAK,CAAC,GAC9E,OAAO,iBAAiB,QAAQ,KAAK,QAAQA,CAAS;CACxD;CAGA;CACA;CAEA;CAEA;CAEA,YAA6B,IAAI,gBAAgB;CAEjD,SAAgC,CAAC;CAGjC,IAAI,UAAkC;EACpC,OAAO,KAAK;CACd;CAOA,UAAU,GAAW,GAAoB;EACvC,IAAM,EAAE,SAAM,QAAK,UAAO,cAAW,KAAK;EAC1C,OAAO,IAAI,QAAQC,IAAOC,IAAI,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