spell-ui 0.8.8 → 0.8.10

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 (1167) 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 +25 -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 +36 -2
  207. package/dist/components/ui-modal/UIModal.d.ts +1 -0
  208. package/dist/components/ui-modal/UIModal.en.d.ts +1 -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 +16 -5
  237. package/dist/components/ui-parts/UIHeader.en.d.ts +9 -5
  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 +23 -7
  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/UIToast.d.ts +1 -0
  364. package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
  365. package/dist/components/ui-toc/UIToc.d.ts +1 -0
  366. package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
  367. package/dist/components/ui-toolbar/UIToolbar.d.ts +134 -1
  368. package/dist/components/ui-toolbar/UIToolbar.en.d.ts +75 -42
  369. package/dist/components/ui-toolbar/UIToolbar.es.d.ts +5 -0
  370. package/dist/components/ui-transition/UITransition.d.ts +1 -0
  371. package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
  372. package/dist/components/ui-tree/UITree.d.ts +102 -2
  373. package/dist/components/ui-tree/UITree.en.d.ts +14 -1
  374. package/dist/components/ui-tree/UITree.es.d.ts +3 -0
  375. package/dist/components/ui-tree/UITreeItem.d.ts +21 -2
  376. package/dist/components/ui-tree/UITreeItem.en.d.ts +5 -1
  377. package/dist/components/ui-tree/UITreeItem.es.d.ts +1 -0
  378. package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +1 -0
  379. package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +1 -0
  380. package/dist/components/ui-tree-diagram/UITreeNode.d.ts +1 -0
  381. package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +1 -0
  382. package/dist/components/ui-video/UIAudio.d.ts +1 -0
  383. package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
  384. package/dist/components/ui-video/UIVideo.d.ts +1 -0
  385. package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
  386. package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
  387. package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
  388. package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
  389. package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
  390. package/dist/{components.es-BOa_7gFF.js → components.es-DEa8Ep42.js} +265 -77
  391. package/dist/components.es-DEa8Ep42.js.map +1 -0
  392. package/dist/core.js +884 -806
  393. package/dist/core.js.map +1 -1
  394. package/dist/{crisp-VfYZlTph.js → crisp-DIpY320U.js} +3 -4
  395. package/dist/crisp-DIpY320U.js.map +1 -0
  396. package/dist/crisp.theme-Ir9p4BDC.js +5 -0
  397. package/dist/crisp.theme-Ir9p4BDC.js.map +1 -0
  398. package/dist/{dark-CbUdPe0a.js → dark-B5s4QbmU.js} +2 -3
  399. package/dist/dark-B5s4QbmU.js.map +1 -0
  400. package/dist/{dist-BLYIGZVK.js → dist-BQT4KajA.js} +34 -80
  401. package/dist/dist-BQT4KajA.js.map +1 -0
  402. package/dist/docs-components/docs-components.types.d.ts +6 -0
  403. package/dist/docs-components/ui-docs-palette/UIDocsPalette.d.ts +180 -0
  404. package/dist/docs-components/ui-docs-palette/UIDocsPalette.en.d.ts +88 -0
  405. package/dist/docs-components/ui-docs-palette/UIDocsPalette.types.d.ts +5 -0
  406. package/dist/docs-components/ui-docs-palette/index.d.ts +2 -0
  407. package/dist/docs-components/ui-docs-tokens/UIDocsTokens.d.ts +23 -0
  408. package/dist/docs-components/ui-docs-tokens/UIDocsTokens.en.d.ts +5 -1
  409. package/dist/elements/PartComponent.d.ts +5 -0
  410. package/dist/elements/PopoverPanel.d.ts +12 -1
  411. package/dist/elements/Validator.d.ts +1 -1
  412. package/dist/emoji/cldr/{0-DSUpV2d7.js → 0-B6B0nyLW.js} +2 -3
  413. package/dist/emoji/cldr/0-B6B0nyLW.js.map +1 -0
  414. package/dist/emoji/cldr/{a-D_oB4vJ-.js → a-C12vpdzK.js} +2 -3
  415. package/dist/emoji/cldr/a-C12vpdzK.js.map +1 -0
  416. package/dist/emoji/cldr/{b-DX0W0Mda.js → b-BGkQUJ8v.js} +2 -3
  417. package/dist/emoji/cldr/b-BGkQUJ8v.js.map +1 -0
  418. package/dist/emoji/cldr/{c-DUHidpE9.js → c-DtqAfVnG.js} +2 -3
  419. package/dist/emoji/cldr/c-DtqAfVnG.js.map +1 -0
  420. package/dist/emoji/cldr/{d-CiCXZXay.js → d-B5SNGAad.js} +2 -3
  421. package/dist/emoji/cldr/d-B5SNGAad.js.map +1 -0
  422. package/dist/emoji/cldr/{e-DILJo3Ri.js → e-CMUDvE48.js} +2 -3
  423. package/dist/emoji/cldr/e-CMUDvE48.js.map +1 -0
  424. package/dist/emoji/cldr/{f-ByGFLyOq.js → f-Dfhd9bp8.js} +2 -3
  425. package/dist/emoji/cldr/f-Dfhd9bp8.js.map +1 -0
  426. package/dist/emoji/cldr/{g-BZ0FRsud.js → g-VpFllv6y.js} +2 -3
  427. package/dist/emoji/cldr/g-VpFllv6y.js.map +1 -0
  428. package/dist/emoji/cldr/{h-jtLdvRXQ.js → h-CE6GevC3.js} +2 -3
  429. package/dist/emoji/cldr/h-CE6GevC3.js.map +1 -0
  430. package/dist/emoji/cldr/{i-DcbJ5utE.js → i-BUPzV8pA.js} +2 -3
  431. package/dist/emoji/cldr/i-BUPzV8pA.js.map +1 -0
  432. package/dist/emoji/cldr/{j-BuEqP5nz.js → j-BFAg68Ig.js} +2 -3
  433. package/dist/emoji/cldr/j-BFAg68Ig.js.map +1 -0
  434. package/dist/emoji/cldr/{k-P1J6Gvze.js → k-jnBMfMlM.js} +2 -3
  435. package/dist/emoji/cldr/k-jnBMfMlM.js.map +1 -0
  436. package/dist/emoji/cldr/{l-28XcbsPr.js → l-ClLOCfnc.js} +2 -3
  437. package/dist/emoji/cldr/l-ClLOCfnc.js.map +1 -0
  438. package/dist/emoji/cldr/{m-DKgGJ8rW.js → m-p358YNne.js} +2 -3
  439. package/dist/emoji/cldr/m-p358YNne.js.map +1 -0
  440. package/dist/emoji/cldr/{n-DmPLP4F3.js → n-DOh1UxA2.js} +2 -3
  441. package/dist/emoji/cldr/n-DOh1UxA2.js.map +1 -0
  442. package/dist/emoji/cldr/{o-f98nt3s7.js → o-D_nTGMIR.js} +2 -3
  443. package/dist/emoji/cldr/o-D_nTGMIR.js.map +1 -0
  444. package/dist/emoji/cldr/{p-CxnsOTOt.js → p-BA8Ct3hE.js} +2 -3
  445. package/dist/emoji/cldr/p-BA8Ct3hE.js.map +1 -0
  446. package/dist/emoji/cldr/{r-D0GPRJ-Q.js → r-BFZ26mlC.js} +2 -3
  447. package/dist/emoji/cldr/r-BFZ26mlC.js.map +1 -0
  448. package/dist/emoji/cldr/{s-DcFuepnw.js → s-CIZH91hj.js} +2 -3
  449. package/dist/emoji/cldr/s-CIZH91hj.js.map +1 -0
  450. package/dist/emoji/cldr/{t-BvHgGpUr.js → t-qg9oQuYr.js} +2 -3
  451. package/dist/emoji/cldr/t-qg9oQuYr.js.map +1 -0
  452. package/dist/emoji/cldr/{u-ChFYHtUf.js → u-CN-QpqjC.js} +2 -3
  453. package/dist/emoji/cldr/u-CN-QpqjC.js.map +1 -0
  454. package/dist/emoji/cldr/{v-WmX3nWtZ.js → v-CO_76wOC.js} +2 -3
  455. package/dist/emoji/cldr/v-CO_76wOC.js.map +1 -0
  456. package/dist/emoji/cldr/{w-BPySQUWW.js → w-DOQn50Cw.js} +2 -3
  457. package/dist/emoji/cldr/w-DOQn50Cw.js.map +1 -0
  458. package/dist/emoji/cldr/x-DddFDGbR.js +5 -0
  459. package/dist/emoji/cldr/x-DddFDGbR.js.map +1 -0
  460. package/dist/emoji/cldr/{y-zB_yhTFg.js → y-auUWML2r.js} +2 -3
  461. package/dist/emoji/cldr/y-auUWML2r.js.map +1 -0
  462. package/dist/emoji/cldr/{z-BgJ94Cap.js → z-BYAp28d6.js} +2 -3
  463. package/dist/emoji/cldr/z-BYAp28d6.js.map +1 -0
  464. package/dist/emoji/fomantic/0-BdzcjXW3.js +9 -0
  465. package/dist/emoji/fomantic/0-BdzcjXW3.js.map +1 -0
  466. package/dist/emoji/fomantic/{a-CrqYlC21.js → a-R3ZJ-207.js} +2 -3
  467. package/dist/emoji/fomantic/a-R3ZJ-207.js.map +1 -0
  468. package/dist/emoji/fomantic/{b-DneVHRdQ.js → b-NF1y0dRD.js} +2 -3
  469. package/dist/emoji/fomantic/b-NF1y0dRD.js.map +1 -0
  470. package/dist/emoji/fomantic/{c-ClxKRuir.js → c-CuIzdNXI.js} +2 -3
  471. package/dist/emoji/fomantic/c-CuIzdNXI.js.map +1 -0
  472. package/dist/emoji/fomantic/{d-Djqs_y4s.js → d-CuS9uvGS.js} +2 -3
  473. package/dist/emoji/fomantic/d-CuS9uvGS.js.map +1 -0
  474. package/dist/emoji/fomantic/{e-CuF-jOQd.js → e-S2pyUDgP.js} +2 -3
  475. package/dist/emoji/fomantic/e-S2pyUDgP.js.map +1 -0
  476. package/dist/emoji/fomantic/{f-D8VglrJ4.js → f-DnHzZwKR.js} +2 -3
  477. package/dist/emoji/fomantic/f-DnHzZwKR.js.map +1 -0
  478. package/dist/emoji/fomantic/{g-Du_HFl6U.js → g-CdqbF8yB.js} +2 -3
  479. package/dist/emoji/fomantic/g-CdqbF8yB.js.map +1 -0
  480. package/dist/emoji/fomantic/{h-CLE5tHnM.js → h-Dgmy17VC.js} +2 -3
  481. package/dist/emoji/fomantic/h-Dgmy17VC.js.map +1 -0
  482. package/dist/emoji/fomantic/{i-BjOsrQDZ.js → i-BCe1z6Es.js} +2 -3
  483. package/dist/emoji/fomantic/i-BCe1z6Es.js.map +1 -0
  484. package/dist/emoji/fomantic/{j-CyUDXKCu.js → j-D39udLwj.js} +2 -3
  485. package/dist/emoji/fomantic/j-D39udLwj.js.map +1 -0
  486. package/dist/emoji/fomantic/{k-Clypg4R8.js → k-KDlJnEWX.js} +2 -3
  487. package/dist/emoji/fomantic/k-KDlJnEWX.js.map +1 -0
  488. package/dist/emoji/fomantic/{l-DvLPdBh-.js → l-rVE39-7Z.js} +2 -3
  489. package/dist/emoji/fomantic/l-rVE39-7Z.js.map +1 -0
  490. package/dist/emoji/fomantic/{m-B1lIb1kP.js → m-Bys5Cs9k.js} +2 -3
  491. package/dist/emoji/fomantic/m-Bys5Cs9k.js.map +1 -0
  492. package/dist/emoji/fomantic/{n-Bgpp_ht5.js → n-DzPz1atY.js} +2 -3
  493. package/dist/emoji/fomantic/n-DzPz1atY.js.map +1 -0
  494. package/dist/emoji/fomantic/{o-BhYZzpjp.js → o-lKtDGpuN.js} +2 -3
  495. package/dist/emoji/fomantic/o-lKtDGpuN.js.map +1 -0
  496. package/dist/emoji/fomantic/{p-VLL0GK3m.js → p-DUvy18Aa.js} +2 -3
  497. package/dist/emoji/fomantic/p-DUvy18Aa.js.map +1 -0
  498. package/dist/emoji/fomantic/q-WtSN0kE7.js +5 -0
  499. package/dist/emoji/fomantic/q-WtSN0kE7.js.map +1 -0
  500. package/dist/emoji/fomantic/{r-Bd1DjkkI.js → r-Dm_1szGZ.js} +2 -3
  501. package/dist/emoji/fomantic/r-Dm_1szGZ.js.map +1 -0
  502. package/dist/emoji/fomantic/{s-Bqatw1W7.js → s-LPRU4KZk.js} +2 -3
  503. package/dist/emoji/fomantic/s-LPRU4KZk.js.map +1 -0
  504. package/dist/emoji/fomantic/{t-Bs7IFhv3.js → t-iQksEIKb.js} +2 -3
  505. package/dist/emoji/fomantic/t-iQksEIKb.js.map +1 -0
  506. package/dist/emoji/fomantic/{u-M6GfYC-U.js → u-CkDd-u7Y.js} +2 -3
  507. package/dist/emoji/fomantic/u-CkDd-u7Y.js.map +1 -0
  508. package/dist/emoji/fomantic/{v-BKHNqkn0.js → v-C83uQ5pk.js} +2 -3
  509. package/dist/emoji/fomantic/v-C83uQ5pk.js.map +1 -0
  510. package/dist/emoji/fomantic/{w-B_XvIu7h.js → w-D_redhGe.js} +2 -3
  511. package/dist/emoji/fomantic/w-D_redhGe.js.map +1 -0
  512. package/dist/emoji/fomantic/x-eI_dPUEx.js +8 -0
  513. package/dist/emoji/fomantic/x-eI_dPUEx.js.map +1 -0
  514. package/dist/emoji/fomantic/{y-DPZaoIla.js → y-CO_6qz-J.js} +2 -3
  515. package/dist/emoji/fomantic/y-CO_6qz-J.js.map +1 -0
  516. package/dist/emoji/fomantic/{z-FH-kPXch.js → z-C-wWxD0a.js} +2 -3
  517. package/dist/emoji/fomantic/z-C-wWxD0a.js.map +1 -0
  518. package/dist/forms.js +65 -75
  519. package/dist/forms.js.map +1 -1
  520. package/dist/fruity-CsfZNeXb.js +5 -0
  521. package/dist/fruity-CsfZNeXb.js.map +1 -0
  522. package/dist/{fruity.theme-CbC7Jyvk.js → fruity.theme-BL7cCZUQ.js} +3 -4
  523. package/dist/fruity.theme-BL7cCZUQ.js.map +1 -0
  524. package/dist/glass-BCK30hpe.js +5 -0
  525. package/dist/glass-BCK30hpe.js.map +1 -0
  526. package/dist/glass.theme-C7QSRB7b.js +5 -0
  527. package/dist/glass.theme-C7QSRB7b.js.map +1 -0
  528. package/dist/hot.js +18 -32
  529. package/dist/hot.js.map +1 -1
  530. package/dist/index.d.ts +5 -0
  531. package/dist/index.js +95 -90
  532. package/dist/jsx.d.ts +3869 -715
  533. package/dist/matrix-DEnqBfwC.js +5 -0
  534. package/dist/matrix-DEnqBfwC.js.map +1 -0
  535. package/dist/matrix.theme-YV6_nvXv.js +5 -0
  536. package/dist/matrix.theme-YV6_nvXv.js.map +1 -0
  537. package/dist/{merlot-DOXLuUaU.js → merlot-DFa6kDbA.js} +3 -4
  538. package/dist/merlot-DFa6kDbA.js.map +1 -0
  539. package/dist/merlot.theme-B1K8nn2u.js +5 -0
  540. package/dist/merlot.theme-B1K8nn2u.js.map +1 -0
  541. package/dist/{midnight-BxlTQSfw.js → midnight-q0-3-V6U.js} +3 -4
  542. package/dist/midnight-q0-3-V6U.js.map +1 -0
  543. package/dist/midnight.theme-C7M02wTD.js +5 -0
  544. package/dist/midnight.theme-C7M02wTD.js.map +1 -0
  545. package/dist/mockup-D0vovNO7.js +5 -0
  546. package/dist/mockup-D0vovNO7.js.map +1 -0
  547. package/dist/mockup.theme-C92r9NI0.js +5 -0
  548. package/dist/mockup.theme-C92r9NI0.js.map +1 -0
  549. package/dist/{paper-M61nUilz.js → paper-DPxolmdy.js} +3 -4
  550. package/dist/paper-DPxolmdy.js.map +1 -0
  551. package/dist/paper.theme-BAKk3DY1.js +5 -0
  552. package/dist/paper.theme-BAKk3DY1.js.map +1 -0
  553. package/dist/{persist.types-D2m6wD-S.js → persist.types-D7N7GewC.js} +2 -3
  554. package/dist/persist.types-D7N7GewC.js.map +1 -0
  555. package/dist/{pop-CxXfytjk.js → pop-Dw_6k177.js} +3 -4
  556. package/dist/pop-Dw_6k177.js.map +1 -0
  557. package/dist/pop.theme-Cw-yD0MO.js +5 -0
  558. package/dist/pop.theme-Cw-yD0MO.js.map +1 -0
  559. package/dist/property/PropertyEditorPages.d.ts +1 -1
  560. package/dist/property/PropertyLayouts.d.ts +119 -0
  561. package/dist/property/PropertySchemas.d.ts +5 -1
  562. package/dist/property/index.d.ts +2 -0
  563. package/dist/{rolldown-runtime-CYGlBXrH.js → rolldown-runtime-c6e9CmGy.js} +2 -3
  564. package/dist/runtime/Browser.d.ts +7 -0
  565. package/dist/runtime/DataTooltips.d.ts +2 -0
  566. package/dist/runtime/Keyboard.d.ts +4 -1
  567. package/dist/runtime/Toasts.d.ts +10 -0
  568. package/dist/runtime/runtime.types.d.ts +47 -0
  569. package/dist/{search-CzSzx7bX.js → search-C2Rq9HF1.js} +1 -2
  570. package/dist/search-C2Rq9HF1.js.map +1 -0
  571. package/dist/spell-CB-MivSX.js +5 -0
  572. package/dist/spell-CB-MivSX.js.map +1 -0
  573. package/dist/spell.theme-CUoc5rTq.js +5 -0
  574. package/dist/spell.theme-CUoc5rTq.js.map +1 -0
  575. package/dist/styles/StyleGenerator.d.ts +7 -0
  576. package/dist/styles/styles.en.d.ts +27 -18
  577. package/dist/{styles.en-CUUxNwHo.js → styles.en-DZlSJiOR.js} +21 -21
  578. package/dist/styles.en-DZlSJiOR.js.map +1 -0
  579. package/dist/styles.js +9 -10
  580. package/dist/styles.js.map +1 -1
  581. package/dist/ui-accordion.editor-BP8uQGGU.js +5 -0
  582. package/dist/ui-accordion.editor-BP8uQGGU.js.map +1 -0
  583. package/dist/ui-accordion.js +59 -60
  584. package/dist/ui-accordion.js.map +1 -1
  585. package/dist/ui-action.editor-m5R5N5Wy.js +5 -0
  586. package/dist/ui-action.editor-m5R5N5Wy.js.map +1 -0
  587. package/dist/ui-action.js +73 -45
  588. package/dist/ui-action.js.map +1 -1
  589. package/dist/ui-actions.editor-Buc3N2ik.js +5 -0
  590. package/dist/ui-actions.editor-Buc3N2ik.js.map +1 -0
  591. package/dist/ui-ad.editor-BHTDuSii.js +5 -0
  592. package/dist/ui-ad.editor-BHTDuSii.js.map +1 -0
  593. package/dist/ui-ad.js +8 -9
  594. package/dist/ui-ad.js.map +1 -1
  595. package/dist/ui-app-menu.editor-DxPPnMUT.js +5 -0
  596. package/dist/ui-app-menu.editor-DxPPnMUT.js.map +1 -0
  597. package/dist/ui-app-menu.js +89 -0
  598. package/dist/ui-app-menu.js.map +1 -0
  599. package/dist/ui-audio.editor-Y6WeqLRh.js +5 -0
  600. package/dist/ui-audio.editor-Y6WeqLRh.js.map +1 -0
  601. package/dist/ui-author.editor-Bmf-rEXY.js +5 -0
  602. package/dist/ui-author.editor-Bmf-rEXY.js.map +1 -0
  603. package/dist/ui-avatar.editor-CSU6snQz.js +5 -0
  604. package/dist/ui-avatar.editor-CSU6snQz.js.map +1 -0
  605. package/dist/ui-breadcrumb.editor-N1-8OzDq.js +5 -0
  606. package/dist/ui-breadcrumb.editor-N1-8OzDq.js.map +1 -0
  607. package/dist/ui-breadcrumbs.editor-Mml0fUR_.js +5 -0
  608. package/dist/ui-breadcrumbs.editor-Mml0fUR_.js.map +1 -0
  609. package/dist/ui-breadcrumbs.js +18 -17
  610. package/dist/ui-breadcrumbs.js.map +1 -1
  611. package/dist/ui-button.editor-BV9Bh_xf.js +5 -0
  612. package/dist/ui-button.editor-BV9Bh_xf.js.map +1 -0
  613. package/dist/ui-button.js +157 -156
  614. package/dist/ui-button.js.map +1 -1
  615. package/dist/ui-buttons.editor-CSsEIo2s.js +5 -0
  616. package/dist/ui-buttons.editor-CSsEIo2s.js.map +1 -0
  617. package/dist/ui-calendar.editor-TsP8a97s.js +5 -0
  618. package/dist/ui-calendar.editor-TsP8a97s.js.map +1 -0
  619. package/dist/ui-calendar.js +148 -157
  620. package/dist/ui-calendar.js.map +1 -1
  621. package/dist/ui-card.editor-BBZj9e03.js +5 -0
  622. package/dist/ui-card.editor-BBZj9e03.js.map +1 -0
  623. package/dist/ui-card.js +70 -70
  624. package/dist/ui-card.js.map +1 -1
  625. package/dist/ui-cards.editor-Hrmldr4q.js +5 -0
  626. package/dist/ui-cards.editor-Hrmldr4q.js.map +1 -0
  627. package/dist/ui-cell.editor-Dmz_mwJ0.js +5 -0
  628. package/dist/ui-cell.editor-Dmz_mwJ0.js.map +1 -0
  629. package/dist/ui-checkbox.editor-DnOz9r6d.js +5 -0
  630. package/dist/ui-checkbox.editor-DnOz9r6d.js.map +1 -0
  631. package/dist/ui-checkbox.js +49 -48
  632. package/dist/ui-checkbox.js.map +1 -1
  633. package/dist/ui-code.editor-Drr_FVB6.js +5 -0
  634. package/dist/ui-code.editor-Drr_FVB6.js.map +1 -0
  635. package/dist/ui-code.js +116 -79
  636. package/dist/ui-code.js.map +1 -1
  637. package/dist/ui-color-chip.editor-B3zV8FkB.js +5 -0
  638. package/dist/ui-color-chip.editor-B3zV8FkB.js.map +1 -0
  639. package/dist/ui-column.editor-hdUb-qwT.js +5 -0
  640. package/dist/ui-column.editor-hdUb-qwT.js.map +1 -0
  641. package/dist/ui-comment.editor-DJpE_8tz.js +5 -0
  642. package/dist/ui-comment.editor-DJpE_8tz.js.map +1 -0
  643. package/dist/ui-comment.js +15 -14
  644. package/dist/ui-comment.js.map +1 -1
  645. package/dist/ui-comments.editor-GFJN6l3Q.js +5 -0
  646. package/dist/ui-comments.editor-GFJN6l3Q.js.map +1 -0
  647. package/dist/ui-components.editor-BKFXnARt.js +5 -0
  648. package/dist/ui-components.editor-BKFXnARt.js.map +1 -0
  649. package/dist/ui-components.js +12 -13
  650. package/dist/ui-components.js.map +1 -1
  651. package/dist/ui-container.editor-CBNhNkRm.js +5 -0
  652. package/dist/ui-container.editor-CBNhNkRm.js.map +1 -0
  653. package/dist/ui-container.js +106 -21
  654. package/dist/ui-container.js.map +1 -1
  655. package/dist/ui-content.editor-B78lxK3P.js +5 -0
  656. package/dist/ui-content.editor-B78lxK3P.js.map +1 -0
  657. package/dist/ui-date.editor-PHEnU7QX.js +5 -0
  658. package/dist/ui-date.editor-PHEnU7QX.js.map +1 -0
  659. package/dist/ui-description.editor-DWFDJ9mV.js +5 -0
  660. package/dist/ui-description.editor-DWFDJ9mV.js.map +1 -0
  661. package/dist/ui-detail.editor-wliuVbx3.js +5 -0
  662. package/dist/ui-detail.editor-wliuVbx3.js.map +1 -0
  663. package/dist/ui-device.editor-kl48NVma.js +5 -0
  664. package/dist/ui-device.editor-kl48NVma.js.map +1 -0
  665. package/dist/ui-device.js +436 -0
  666. package/dist/ui-device.js.map +1 -0
  667. package/dist/ui-diagram-node.editor-6FyjT7oj.js +5 -0
  668. package/dist/ui-diagram-node.editor-6FyjT7oj.js.map +1 -0
  669. package/dist/ui-diagram.editor-Dn3ef-J9.js +5 -0
  670. package/dist/ui-diagram.editor-Dn3ef-J9.js.map +1 -0
  671. package/dist/ui-diagram.js +128 -129
  672. package/dist/ui-diagram.js.map +1 -1
  673. package/dist/ui-dimension.editor-BEXGKcCB.js +5 -0
  674. package/dist/ui-dimension.editor-BEXGKcCB.js.map +1 -0
  675. package/dist/ui-dimension.js +111 -12
  676. package/dist/ui-dimension.js.map +1 -1
  677. package/dist/ui-dimmer.editor-D14xzXIe.js +5 -0
  678. package/dist/ui-dimmer.editor-D14xzXIe.js.map +1 -0
  679. package/dist/ui-dimmer.js +29 -30
  680. package/dist/ui-dimmer.js.map +1 -1
  681. package/dist/ui-divider.editor-D6ozEXjx.js +5 -0
  682. package/dist/ui-divider.editor-D6ozEXjx.js.map +1 -0
  683. package/dist/ui-divider.js +9 -10
  684. package/dist/ui-divider.js.map +1 -1
  685. package/dist/ui-dropdown.editor-OFDGi1oz.js +5 -0
  686. package/dist/ui-dropdown.editor-OFDGi1oz.js.map +1 -0
  687. package/dist/ui-dropdown.js +155 -156
  688. package/dist/ui-dropdown.js.map +1 -1
  689. package/dist/ui-embed.editor-DHsrjw1j.js +5 -0
  690. package/dist/ui-embed.editor-DHsrjw1j.js.map +1 -0
  691. package/dist/ui-embed.js +23 -24
  692. package/dist/ui-embed.js.map +1 -1
  693. package/dist/ui-emoji.editor-DUL230Hi.js +5 -0
  694. package/dist/ui-emoji.editor-DUL230Hi.js.map +1 -0
  695. package/dist/ui-emoji.js +63 -64
  696. package/dist/ui-emoji.js.map +1 -1
  697. package/dist/ui-event.editor-Bk17y7wW.js +5 -0
  698. package/dist/ui-event.editor-Bk17y7wW.js.map +1 -0
  699. package/dist/ui-example.editor-D46Vnctp.js +5 -0
  700. package/dist/ui-example.editor-D46Vnctp.js.map +1 -0
  701. package/dist/ui-example.js +67 -74
  702. package/dist/ui-example.js.map +1 -1
  703. package/dist/ui-extra.editor-rX6sfH2e.js +5 -0
  704. package/dist/ui-extra.editor-rX6sfH2e.js.map +1 -0
  705. package/dist/ui-feed.editor-B7ycWh1b.js +5 -0
  706. package/dist/ui-feed.editor-B7ycWh1b.js.map +1 -0
  707. package/dist/ui-feed.js +26 -25
  708. package/dist/ui-feed.js.map +1 -1
  709. package/dist/ui-field.editor-Bz9xyCVv.js +5 -0
  710. package/dist/ui-field.editor-Bz9xyCVv.js.map +1 -0
  711. package/dist/ui-fields.editor-BUtW4NTk.js +5 -0
  712. package/dist/ui-fields.editor-BUtW4NTk.js.map +1 -0
  713. package/dist/ui-flag.editor-DNfdXo7y.js +5 -0
  714. package/dist/ui-flag.editor-DNfdXo7y.js.map +1 -0
  715. package/dist/ui-flag.js +13 -14
  716. package/dist/ui-flag.js.map +1 -1
  717. package/dist/ui-flyout.editor-b7UJYiV9.js +5 -0
  718. package/dist/ui-flyout.editor-b7UJYiV9.js.map +1 -0
  719. package/dist/ui-flyout.js +10 -11
  720. package/dist/ui-flyout.js.map +1 -1
  721. package/dist/ui-form.editor-BJC3WhNf.js +5 -0
  722. package/dist/ui-form.editor-BJC3WhNf.js.map +1 -0
  723. package/dist/ui-form.js +199 -195
  724. package/dist/ui-form.js.map +1 -1
  725. package/dist/ui-grid.editor-DVn2YIBW.js +5 -0
  726. package/dist/ui-grid.editor-DVn2YIBW.js.map +1 -0
  727. package/dist/ui-grid.js +43 -234
  728. package/dist/ui-grid.js.map +1 -1
  729. package/dist/ui-header.editor-meOjCASK.js +5 -0
  730. package/dist/ui-header.editor-meOjCASK.js.map +1 -0
  731. package/dist/ui-icon-picker.editor-vFPbT9Kh.js +5 -0
  732. package/dist/ui-icon-picker.editor-vFPbT9Kh.js.map +1 -0
  733. package/dist/ui-icon-picker.js +64 -69
  734. package/dist/ui-icon-picker.js.map +1 -1
  735. package/dist/ui-icon.editor-DoKK49PD.js +5 -0
  736. package/dist/ui-icon.editor-DoKK49PD.js.map +1 -0
  737. package/dist/ui-icon.js +15 -14
  738. package/dist/ui-icon.js.map +1 -1
  739. package/dist/ui-icons.editor-CSD6fOVt.js +5 -0
  740. package/dist/ui-icons.editor-CSD6fOVt.js.map +1 -0
  741. package/dist/ui-image.editor-D4ZUC_Ka.js +5 -0
  742. package/dist/ui-image.editor-D4ZUC_Ka.js.map +1 -0
  743. package/dist/ui-image.js +26 -26
  744. package/dist/ui-image.js.map +1 -1
  745. package/dist/ui-images.editor-Cb0D3vnI.js +5 -0
  746. package/dist/ui-images.editor-Cb0D3vnI.js.map +1 -0
  747. package/dist/ui-include.editor-CZcsVJbH.js +5 -0
  748. package/dist/ui-include.editor-CZcsVJbH.js.map +1 -0
  749. package/dist/ui-include.js +21 -22
  750. package/dist/ui-include.js.map +1 -1
  751. package/dist/ui-input.editor-budoNoB0.js +5 -0
  752. package/dist/ui-input.editor-budoNoB0.js.map +1 -0
  753. package/dist/ui-input.js +131 -130
  754. package/dist/ui-input.js.map +1 -1
  755. package/dist/ui-item.editor-BlWp1HXu.js +5 -0
  756. package/dist/ui-item.editor-BlWp1HXu.js.map +1 -0
  757. package/dist/ui-item.js +127 -113
  758. package/dist/ui-item.js.map +1 -1
  759. package/dist/ui-items.editor-GOul3Xss.js +5 -0
  760. package/dist/ui-items.editor-GOul3Xss.js.map +1 -0
  761. package/dist/ui-items.js +11 -12
  762. package/dist/ui-items.js.map +1 -1
  763. package/dist/ui-json.editor-BgZbrB_W.js +5 -0
  764. package/dist/ui-json.editor-BgZbrB_W.js.map +1 -0
  765. package/dist/ui-json.js +18 -19
  766. package/dist/ui-json.js.map +1 -1
  767. package/dist/ui-keys.editor-BI9EDtS4.js +5 -0
  768. package/dist/ui-keys.editor-BI9EDtS4.js.map +1 -0
  769. package/dist/ui-keys.js +2 -3
  770. package/dist/ui-label.editor-BVUYLSUs.js +5 -0
  771. package/dist/ui-label.editor-BVUYLSUs.js.map +1 -0
  772. package/dist/ui-label.js +22 -22
  773. package/dist/ui-label.js.map +1 -1
  774. package/dist/ui-labels.editor-BWJth86p.js +5 -0
  775. package/dist/ui-labels.editor-BWJth86p.js.map +1 -0
  776. package/dist/ui-link.editor-CpI53scP.js +5 -0
  777. package/dist/ui-link.editor-CpI53scP.js.map +1 -0
  778. package/dist/ui-list.editor-DhBZIkAa.js +5 -0
  779. package/dist/ui-list.editor-DhBZIkAa.js.map +1 -0
  780. package/dist/ui-list.js +9 -10
  781. package/dist/ui-list.js.map +1 -1
  782. package/dist/ui-loader.editor-BJlvmP7S.js +5 -0
  783. package/dist/ui-loader.editor-BJlvmP7S.js.map +1 -0
  784. package/dist/ui-loader.js +10 -11
  785. package/dist/ui-loader.js.map +1 -1
  786. package/dist/ui-markdown.editor-DPVKyxXa.js +5 -0
  787. package/dist/ui-markdown.editor-DPVKyxXa.js.map +1 -0
  788. package/dist/ui-markdown.js +208 -154
  789. package/dist/ui-markdown.js.map +1 -1
  790. package/dist/ui-menu.editor-DJ3PhWtK.js +5 -0
  791. package/dist/ui-menu.editor-DJ3PhWtK.js.map +1 -0
  792. package/dist/ui-menu.js +815 -223
  793. package/dist/ui-menu.js.map +1 -1
  794. package/dist/ui-message.editor-vfT0pyu5.js +5 -0
  795. package/dist/ui-message.editor-vfT0pyu5.js.map +1 -0
  796. package/dist/ui-message.js +32 -33
  797. package/dist/ui-message.js.map +1 -1
  798. package/dist/ui-meta.editor-Bk5m43-E.js +5 -0
  799. package/dist/ui-meta.editor-Bk5m43-E.js.map +1 -0
  800. package/dist/ui-modal.editor-CkkJRgab.js +5 -0
  801. package/dist/ui-modal.editor-CkkJRgab.js.map +1 -0
  802. package/dist/ui-modal.js +132 -96
  803. package/dist/ui-modal.js.map +1 -1
  804. package/dist/ui-nag.editor-BJ3Ia2Bi.js +5 -0
  805. package/dist/ui-nag.editor-BJ3Ia2Bi.js.map +1 -0
  806. package/dist/ui-nag.js +23 -24
  807. package/dist/ui-nag.js.map +1 -1
  808. package/dist/ui-or.editor-BfBLNVgm.js +5 -0
  809. package/dist/ui-or.editor-BfBLNVgm.js.map +1 -0
  810. package/dist/ui-page-layout.editor-xtQW0FZk.js +5 -0
  811. package/dist/ui-page-layout.editor-xtQW0FZk.js.map +1 -0
  812. package/dist/ui-page-layout.js +363 -0
  813. package/dist/ui-page-layout.js.map +1 -0
  814. package/dist/ui-page.editor-Bd5mzlj7.js +5 -0
  815. package/dist/ui-page.editor-Bd5mzlj7.js.map +1 -0
  816. package/dist/ui-page.js +11 -12
  817. package/dist/ui-page.js.map +1 -1
  818. package/dist/ui-panel.editor-BCUkdr4S.js +5 -0
  819. package/dist/ui-panel.editor-BCUkdr4S.js.map +1 -0
  820. package/dist/ui-panel.js +105 -27
  821. package/dist/ui-panel.js.map +1 -1
  822. package/dist/ui-parts.js +108 -66
  823. package/dist/ui-parts.js.map +1 -1
  824. package/dist/ui-placeholder-header.editor-CJNO08Ax.js +5 -0
  825. package/dist/ui-placeholder-header.editor-CJNO08Ax.js.map +1 -0
  826. package/dist/ui-placeholder-image.editor-DctJiCNv.js +5 -0
  827. package/dist/ui-placeholder-image.editor-DctJiCNv.js.map +1 -0
  828. package/dist/ui-placeholder-line.editor-DcxH7mOo.js +5 -0
  829. package/dist/ui-placeholder-line.editor-DcxH7mOo.js.map +1 -0
  830. package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js +5 -0
  831. package/dist/ui-placeholder-paragraph.editor-C4rww_tp.js.map +1 -0
  832. package/dist/ui-placeholder.editor-Bc0CYlZZ.js +5 -0
  833. package/dist/ui-placeholder.editor-Bc0CYlZZ.js.map +1 -0
  834. package/dist/ui-placeholder.js +23 -19
  835. package/dist/ui-placeholder.js.map +1 -1
  836. package/dist/ui-popup.editor-ByUi4CYs.js +5 -0
  837. package/dist/ui-popup.editor-ByUi4CYs.js.map +1 -0
  838. package/dist/ui-popup.js +107 -100
  839. package/dist/ui-popup.js.map +1 -1
  840. package/dist/ui-progress.editor-DX0IjhxZ.js +5 -0
  841. package/dist/ui-progress.editor-DX0IjhxZ.js.map +1 -0
  842. package/dist/ui-progress.js +23 -24
  843. package/dist/ui-progress.js.map +1 -1
  844. package/dist/ui-property-editor.editor-pS6tCPPT.js +5 -0
  845. package/dist/ui-property-editor.editor-pS6tCPPT.js.map +1 -0
  846. package/dist/ui-property-editor.js +649 -277
  847. package/dist/ui-property-editor.js.map +1 -1
  848. package/dist/ui-property-group.editor-BlpUMVlr.js +5 -0
  849. package/dist/ui-property-group.editor-BlpUMVlr.js.map +1 -0
  850. package/dist/ui-property.editor-BC-jtjjt.js +5 -0
  851. package/dist/ui-property.editor-BC-jtjjt.js.map +1 -0
  852. package/dist/ui-pushable.editor-8_EmUD9x.js +5 -0
  853. package/dist/ui-pushable.editor-8_EmUD9x.js.map +1 -0
  854. package/dist/ui-pusher.editor-CiCX6-1J.js +5 -0
  855. package/dist/ui-pusher.editor-CiCX6-1J.js.map +1 -0
  856. package/dist/ui-quote.editor-BvmAjmo9.js +5 -0
  857. package/dist/ui-quote.editor-BvmAjmo9.js.map +1 -0
  858. package/dist/ui-quote.js +8 -9
  859. package/dist/ui-quote.js.map +1 -1
  860. package/dist/ui-radio.editor-DPzActfO.js +5 -0
  861. package/dist/ui-radio.editor-DPzActfO.js.map +1 -0
  862. package/dist/ui-rail.editor-DRfVH4P2.js +5 -0
  863. package/dist/ui-rail.editor-DRfVH4P2.js.map +1 -0
  864. package/dist/ui-rail.js +11 -12
  865. package/dist/ui-rail.js.map +1 -1
  866. package/dist/ui-rating.editor-C19syymj.js +5 -0
  867. package/dist/ui-rating.editor-C19syymj.js.map +1 -0
  868. package/dist/ui-rating.js +40 -49
  869. package/dist/ui-rating.js.map +1 -1
  870. package/dist/ui-repeat.editor-DEf-bFGj.js +5 -0
  871. package/dist/ui-repeat.editor-DEf-bFGj.js.map +1 -0
  872. package/dist/ui-reveal.editor-D7pDOaen.js +5 -0
  873. package/dist/ui-reveal.editor-D7pDOaen.js.map +1 -0
  874. package/dist/ui-reveal.js +10 -11
  875. package/dist/ui-reveal.js.map +1 -1
  876. package/dist/ui-root.editor-CAokPDVa.js +5 -0
  877. package/dist/ui-root.editor-CAokPDVa.js.map +1 -0
  878. package/dist/ui-root.js +205 -102
  879. package/dist/ui-root.js.map +1 -1
  880. package/dist/ui-row.editor-C00Z6Jl5.js +5 -0
  881. package/dist/ui-row.editor-C00Z6Jl5.js.map +1 -0
  882. package/dist/ui-search.editor-CtzfYgNu.js +5 -0
  883. package/dist/ui-search.editor-CtzfYgNu.js.map +1 -0
  884. package/dist/ui-search.js +143 -146
  885. package/dist/ui-search.js.map +1 -1
  886. package/dist/ui-section.editor-DmNICxCs.js +5 -0
  887. package/dist/ui-section.editor-DmNICxCs.js.map +1 -0
  888. package/dist/ui-section.js +74 -73
  889. package/dist/ui-section.js.map +1 -1
  890. package/dist/ui-sections.editor-BxXECGv9.js +5 -0
  891. package/dist/ui-sections.editor-BxXECGv9.js.map +1 -0
  892. package/dist/ui-segment.editor-CebyLPFn.js +5 -0
  893. package/dist/ui-segment.editor-CebyLPFn.js.map +1 -0
  894. package/dist/ui-segment.js +43 -43
  895. package/dist/ui-segment.js.map +1 -1
  896. package/dist/ui-segments.editor-CSumzMa5.js +5 -0
  897. package/dist/ui-segments.editor-CSumzMa5.js.map +1 -0
  898. package/dist/ui-select.editor-wAcZzvU7.js +5 -0
  899. package/dist/ui-select.editor-wAcZzvU7.js.map +1 -0
  900. package/dist/ui-select.js +86 -87
  901. package/dist/ui-select.js.map +1 -1
  902. package/dist/ui-shape.editor-By9-8aD2.js +5 -0
  903. package/dist/ui-shape.editor-By9-8aD2.js.map +1 -0
  904. package/dist/ui-shape.js +39 -38
  905. package/dist/ui-shape.js.map +1 -1
  906. package/dist/ui-side.editor-CFSqGHGH.js +5 -0
  907. package/dist/ui-side.editor-CFSqGHGH.js.map +1 -0
  908. package/dist/ui-sidebar.editor-DWFPQcXv.js +5 -0
  909. package/dist/ui-sidebar.editor-DWFPQcXv.js.map +1 -0
  910. package/dist/ui-sidebar.js +79 -77
  911. package/dist/ui-sidebar.js.map +1 -1
  912. package/dist/ui-sides.editor-CONIJ1r3.js +5 -0
  913. package/dist/ui-sides.editor-CONIJ1r3.js.map +1 -0
  914. package/dist/ui-sides.js +25 -26
  915. package/dist/ui-sides.js.map +1 -1
  916. package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js +5 -0
  917. package/dist/ui-site-breadcrumbs.editor-Dmc4qziE.js.map +1 -0
  918. package/dist/ui-site-breadcrumbs.js +143 -0
  919. package/dist/ui-site-breadcrumbs.js.map +1 -0
  920. package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +5 -0
  921. package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +1 -0
  922. package/dist/ui-site-nav-button.js +113 -0
  923. package/dist/ui-site-nav-button.js.map +1 -0
  924. package/dist/ui-site-nav.editor-CKEsOGCX.js +5 -0
  925. package/dist/ui-site-nav.editor-CKEsOGCX.js.map +1 -0
  926. package/dist/ui-site-nav.js +133 -97
  927. package/dist/ui-site-nav.js.map +1 -1
  928. package/dist/ui-site-tabs.editor-DDvQfH6S.js +5 -0
  929. package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +1 -0
  930. package/dist/ui-site-tabs.js +53 -48
  931. package/dist/ui-site-tabs.js.map +1 -1
  932. package/dist/ui-slider.editor-BEaasx5Q.js +5 -0
  933. package/dist/ui-slider.editor-BEaasx5Q.js.map +1 -0
  934. package/dist/ui-slider.js +37 -38
  935. package/dist/ui-slider.js.map +1 -1
  936. package/dist/ui-space.editor-s-XVWFBN.js +5 -0
  937. package/dist/ui-space.editor-s-XVWFBN.js.map +1 -0
  938. package/dist/ui-space.js +9 -10
  939. package/dist/ui-space.js.map +1 -1
  940. package/dist/ui-split-panel.editor-Cvy5W7nk.js +5 -0
  941. package/dist/ui-split-panel.editor-Cvy5W7nk.js.map +1 -0
  942. package/dist/ui-split-panel.js +107 -68
  943. package/dist/ui-split-panel.js.map +1 -1
  944. package/dist/ui-stack.editor-D69Fky6H.js +5 -0
  945. package/dist/ui-stack.editor-D69Fky6H.js.map +1 -0
  946. package/dist/ui-stack.js +12 -13
  947. package/dist/ui-stack.js.map +1 -1
  948. package/dist/ui-statistic.editor-CBzYqbQ5.js +5 -0
  949. package/dist/ui-statistic.editor-CBzYqbQ5.js.map +1 -0
  950. package/dist/ui-statistic.js +28 -27
  951. package/dist/ui-statistic.js.map +1 -1
  952. package/dist/ui-statistics.editor-fzh3uk_b.js +5 -0
  953. package/dist/ui-statistics.editor-fzh3uk_b.js.map +1 -0
  954. package/dist/ui-step.editor-CYmNXrk_.js +5 -0
  955. package/dist/ui-step.editor-CYmNXrk_.js.map +1 -0
  956. package/dist/ui-step.js +62 -61
  957. package/dist/ui-step.js.map +1 -1
  958. package/dist/ui-steps.editor-BkMIrUrj.js +5 -0
  959. package/dist/ui-steps.editor-BkMIrUrj.js.map +1 -0
  960. package/dist/ui-sticky.editor-D7R1AlJv.js +5 -0
  961. package/dist/ui-sticky.editor-D7R1AlJv.js.map +1 -0
  962. package/dist/ui-sticky.js +10 -11
  963. package/dist/ui-sticky.js.map +1 -1
  964. package/dist/ui-submenu.editor-NdjS0em-.js +5 -0
  965. package/dist/ui-submenu.editor-NdjS0em-.js.map +1 -0
  966. package/dist/ui-summary.editor-CCHS1mVz.js +5 -0
  967. package/dist/ui-summary.editor-CCHS1mVz.js.map +1 -0
  968. package/dist/ui-tab.editor-DCS-gCZV.js +5 -0
  969. package/dist/ui-tab.editor-DCS-gCZV.js.map +1 -0
  970. package/dist/ui-tab.js +115 -117
  971. package/dist/ui-tab.js.map +1 -1
  972. package/dist/ui-table.editor-DJvfg9oG.js +5 -0
  973. package/dist/ui-table.editor-DJvfg9oG.js.map +1 -0
  974. package/dist/ui-table.js +272 -272
  975. package/dist/ui-table.js.map +1 -1
  976. package/dist/ui-tabs.editor-waeMoFNM.js +5 -0
  977. package/dist/ui-tabs.editor-waeMoFNM.js.map +1 -0
  978. package/dist/ui-term.editor-BMCF3jBM.js +5 -0
  979. package/dist/ui-term.editor-BMCF3jBM.js.map +1 -0
  980. package/dist/ui-terms.editor-BLfVVsjI.js +5 -0
  981. package/dist/ui-terms.editor-BLfVVsjI.js.map +1 -0
  982. package/dist/ui-terms.js +13 -12
  983. package/dist/ui-terms.js.map +1 -1
  984. package/dist/ui-text.editor-B6AENK13.js +5 -0
  985. package/dist/ui-text.editor-B6AENK13.js.map +1 -0
  986. package/dist/ui-text.js +37 -36
  987. package/dist/ui-text.js.map +1 -1
  988. package/dist/ui-textarea.editor-C25lVwrF.js +5 -0
  989. package/dist/ui-textarea.editor-C25lVwrF.js.map +1 -0
  990. package/dist/ui-theme-editor.editor-CQGAgy-Q.js +5 -0
  991. package/dist/ui-theme-editor.editor-CQGAgy-Q.js.map +1 -0
  992. package/dist/ui-theme-editor.js +448 -461
  993. package/dist/ui-theme-editor.js.map +1 -1
  994. package/dist/{ui-theme-menu-CuIjr8Ou.js → ui-theme-menu-BZYUMrHe.js} +356 -352
  995. package/dist/ui-theme-menu-BZYUMrHe.js.map +1 -0
  996. package/dist/ui-theme-menu.editor-DNeI-hxN.js +5 -0
  997. package/dist/ui-theme-menu.editor-DNeI-hxN.js.map +1 -0
  998. package/dist/ui-theme-token.editor-C2YAdEye.js +5 -0
  999. package/dist/ui-theme-token.editor-C2YAdEye.js.map +1 -0
  1000. package/dist/ui-title.editor-40PZSOpn.js +5 -0
  1001. package/dist/ui-title.editor-40PZSOpn.js.map +1 -0
  1002. package/dist/ui-toast.editor-BDmIUsU_.js +5 -0
  1003. package/dist/ui-toast.editor-BDmIUsU_.js.map +1 -0
  1004. package/dist/ui-toast.js +125 -128
  1005. package/dist/ui-toast.js.map +1 -1
  1006. package/dist/ui-toc.editor-D_S1KFY_.js +5 -0
  1007. package/dist/ui-toc.editor-D_S1KFY_.js.map +1 -0
  1008. package/dist/ui-toc.js +52 -53
  1009. package/dist/ui-toc.js.map +1 -1
  1010. package/dist/ui-toolbar.editor-CNQ8nJmR.js +5 -0
  1011. package/dist/ui-toolbar.editor-CNQ8nJmR.js.map +1 -0
  1012. package/dist/ui-toolbar.js +254 -50
  1013. package/dist/ui-toolbar.js.map +1 -1
  1014. package/dist/ui-transition.editor-8SQkDkZ6.js +5 -0
  1015. package/dist/ui-transition.editor-8SQkDkZ6.js.map +1 -0
  1016. package/dist/ui-transition.js +13 -14
  1017. package/dist/ui-transition.js.map +1 -1
  1018. package/dist/ui-tree-diagram.editor-DkEK8i7J.js +5 -0
  1019. package/dist/ui-tree-diagram.editor-DkEK8i7J.js.map +1 -0
  1020. package/dist/ui-tree-diagram.js +128 -127
  1021. package/dist/ui-tree-diagram.js.map +1 -1
  1022. package/dist/ui-tree-item.editor-C4fuAlbJ.js +5 -0
  1023. package/dist/ui-tree-item.editor-C4fuAlbJ.js.map +1 -0
  1024. package/dist/ui-tree-node.editor-CB1z_w9F.js +5 -0
  1025. package/dist/ui-tree-node.editor-CB1z_w9F.js.map +1 -0
  1026. package/dist/ui-tree.editor-BoQztwdz.js +5 -0
  1027. package/dist/ui-tree.editor-BoQztwdz.js.map +1 -0
  1028. package/dist/ui-tree.js +393 -134
  1029. package/dist/ui-tree.js.map +1 -1
  1030. package/dist/ui-value.editor-CYak24cr.js +5 -0
  1031. package/dist/ui-value.editor-CYak24cr.js.map +1 -0
  1032. package/dist/ui-video.editor-CuWtFVjR.js +5 -0
  1033. package/dist/ui-video.editor-CuWtFVjR.js.map +1 -0
  1034. package/dist/ui-video.js +15 -14
  1035. package/dist/ui-video.js.map +1 -1
  1036. package/dist/ui-visibility.editor-Crx0DTlv.js +5 -0
  1037. package/dist/ui-visibility.editor-Crx0DTlv.js.map +1 -0
  1038. package/dist/ui-visibility.js +25 -26
  1039. package/dist/ui-visibility.js.map +1 -1
  1040. package/dist/ui-zoom.editor-DZ3HsWV4.js +5 -0
  1041. package/dist/ui-zoom.editor-DZ3HsWV4.js.map +1 -0
  1042. package/dist/ui-zoom.js +82 -83
  1043. package/dist/ui-zoom.js.map +1 -1
  1044. package/dist/util/TopLayerTip.d.ts +11 -2
  1045. package/dist/vocabulary/SharedVocabulary.d.ts +2 -0
  1046. package/dist/vocabulary/SharedVocabulary.es.d.ts +1 -0
  1047. package/dist/vocabulary/help.generated.d.ts +11 -0
  1048. package/dist/vocabulary/partsOfSpeech.generated.d.ts +6 -0
  1049. package/package.json +3 -3
  1050. package/dist/Dragging-CMZoLEWQ.js.map +0 -1
  1051. package/dist/MarkdownSanitizer-zTnnbrLe.js +0 -884
  1052. package/dist/MarkdownSanitizer-zTnnbrLe.js.map +0 -1
  1053. package/dist/PrefStore-Qv0e5y04.js.map +0 -1
  1054. package/dist/ScrollingRow-7n7Z-HIE.js +0 -88
  1055. package/dist/ScrollingRow-7n7Z-HIE.js.map +0 -1
  1056. package/dist/SitePages-CciwREek.js.map +0 -1
  1057. package/dist/SlottedItems-Du3aJwG1.js +0 -80
  1058. package/dist/SlottedItems-Du3aJwG1.js.map +0 -1
  1059. package/dist/UIButton-DFEds67r.js +0 -6
  1060. package/dist/UIButton-DFEds67r.js.map +0 -1
  1061. package/dist/UIInput-BodVbUoQ.js.map +0 -1
  1062. package/dist/UIKeys-Rh_gUZjP.js.map +0 -1
  1063. package/dist/UILabel-DgJUBzB_.js.map +0 -1
  1064. package/dist/UIMenu-zdcAtwTa.js +0 -42
  1065. package/dist/UIMenu-zdcAtwTa.js.map +0 -1
  1066. package/dist/UIRuntime-KH309p5B.js.map +0 -1
  1067. package/dist/UISegment-CMMIW7cZ.js.map +0 -1
  1068. package/dist/apple.palette-B4ivrNlM.js.map +0 -1
  1069. package/dist/classic-DCTQrteU.js.map +0 -1
  1070. package/dist/components.es-BOa_7gFF.js.map +0 -1
  1071. package/dist/crisp-VfYZlTph.js.map +0 -1
  1072. package/dist/crisp.theme-DRiePRdf.js +0 -6
  1073. package/dist/crisp.theme-DRiePRdf.js.map +0 -1
  1074. package/dist/dark-CbUdPe0a.js.map +0 -1
  1075. package/dist/dist-BLYIGZVK.js.map +0 -1
  1076. package/dist/emoji/cldr/0-DSUpV2d7.js.map +0 -1
  1077. package/dist/emoji/cldr/a-D_oB4vJ-.js.map +0 -1
  1078. package/dist/emoji/cldr/b-DX0W0Mda.js.map +0 -1
  1079. package/dist/emoji/cldr/c-DUHidpE9.js.map +0 -1
  1080. package/dist/emoji/cldr/d-CiCXZXay.js.map +0 -1
  1081. package/dist/emoji/cldr/e-DILJo3Ri.js.map +0 -1
  1082. package/dist/emoji/cldr/f-ByGFLyOq.js.map +0 -1
  1083. package/dist/emoji/cldr/g-BZ0FRsud.js.map +0 -1
  1084. package/dist/emoji/cldr/h-jtLdvRXQ.js.map +0 -1
  1085. package/dist/emoji/cldr/i-DcbJ5utE.js.map +0 -1
  1086. package/dist/emoji/cldr/j-BuEqP5nz.js.map +0 -1
  1087. package/dist/emoji/cldr/k-P1J6Gvze.js.map +0 -1
  1088. package/dist/emoji/cldr/l-28XcbsPr.js.map +0 -1
  1089. package/dist/emoji/cldr/m-DKgGJ8rW.js.map +0 -1
  1090. package/dist/emoji/cldr/n-DmPLP4F3.js.map +0 -1
  1091. package/dist/emoji/cldr/o-f98nt3s7.js.map +0 -1
  1092. package/dist/emoji/cldr/p-CxnsOTOt.js.map +0 -1
  1093. package/dist/emoji/cldr/r-D0GPRJ-Q.js.map +0 -1
  1094. package/dist/emoji/cldr/s-DcFuepnw.js.map +0 -1
  1095. package/dist/emoji/cldr/t-BvHgGpUr.js.map +0 -1
  1096. package/dist/emoji/cldr/u-ChFYHtUf.js.map +0 -1
  1097. package/dist/emoji/cldr/v-WmX3nWtZ.js.map +0 -1
  1098. package/dist/emoji/cldr/w-BPySQUWW.js.map +0 -1
  1099. package/dist/emoji/cldr/x-SC3r1n9O.js +0 -6
  1100. package/dist/emoji/cldr/x-SC3r1n9O.js.map +0 -1
  1101. package/dist/emoji/cldr/y-zB_yhTFg.js.map +0 -1
  1102. package/dist/emoji/cldr/z-BgJ94Cap.js.map +0 -1
  1103. package/dist/emoji/fomantic/0-CGf6gC3a.js +0 -10
  1104. package/dist/emoji/fomantic/0-CGf6gC3a.js.map +0 -1
  1105. package/dist/emoji/fomantic/a-CrqYlC21.js.map +0 -1
  1106. package/dist/emoji/fomantic/b-DneVHRdQ.js.map +0 -1
  1107. package/dist/emoji/fomantic/c-ClxKRuir.js.map +0 -1
  1108. package/dist/emoji/fomantic/d-Djqs_y4s.js.map +0 -1
  1109. package/dist/emoji/fomantic/e-CuF-jOQd.js.map +0 -1
  1110. package/dist/emoji/fomantic/f-D8VglrJ4.js.map +0 -1
  1111. package/dist/emoji/fomantic/g-Du_HFl6U.js.map +0 -1
  1112. package/dist/emoji/fomantic/h-CLE5tHnM.js.map +0 -1
  1113. package/dist/emoji/fomantic/i-BjOsrQDZ.js.map +0 -1
  1114. package/dist/emoji/fomantic/j-CyUDXKCu.js.map +0 -1
  1115. package/dist/emoji/fomantic/k-Clypg4R8.js.map +0 -1
  1116. package/dist/emoji/fomantic/l-DvLPdBh-.js.map +0 -1
  1117. package/dist/emoji/fomantic/m-B1lIb1kP.js.map +0 -1
  1118. package/dist/emoji/fomantic/n-Bgpp_ht5.js.map +0 -1
  1119. package/dist/emoji/fomantic/o-BhYZzpjp.js.map +0 -1
  1120. package/dist/emoji/fomantic/p-VLL0GK3m.js.map +0 -1
  1121. package/dist/emoji/fomantic/q-CKrtMwhc.js +0 -6
  1122. package/dist/emoji/fomantic/q-CKrtMwhc.js.map +0 -1
  1123. package/dist/emoji/fomantic/r-Bd1DjkkI.js.map +0 -1
  1124. package/dist/emoji/fomantic/s-Bqatw1W7.js.map +0 -1
  1125. package/dist/emoji/fomantic/t-Bs7IFhv3.js.map +0 -1
  1126. package/dist/emoji/fomantic/u-M6GfYC-U.js.map +0 -1
  1127. package/dist/emoji/fomantic/v-BKHNqkn0.js.map +0 -1
  1128. package/dist/emoji/fomantic/w-B_XvIu7h.js.map +0 -1
  1129. package/dist/emoji/fomantic/x-CG1_nzCF.js +0 -9
  1130. package/dist/emoji/fomantic/x-CG1_nzCF.js.map +0 -1
  1131. package/dist/emoji/fomantic/y-DPZaoIla.js.map +0 -1
  1132. package/dist/emoji/fomantic/z-FH-kPXch.js.map +0 -1
  1133. package/dist/fruity-BRVlgJZd.js +0 -6
  1134. package/dist/fruity-BRVlgJZd.js.map +0 -1
  1135. package/dist/fruity.theme-CbC7Jyvk.js.map +0 -1
  1136. package/dist/glass-x9tbbwVq.js +0 -6
  1137. package/dist/glass-x9tbbwVq.js.map +0 -1
  1138. package/dist/glass.theme-24wY2wH9.js +0 -6
  1139. package/dist/glass.theme-24wY2wH9.js.map +0 -1
  1140. package/dist/matrix-QY2gWbJ0.js +0 -6
  1141. package/dist/matrix-QY2gWbJ0.js.map +0 -1
  1142. package/dist/matrix.theme-_8xtwhDq.js +0 -6
  1143. package/dist/matrix.theme-_8xtwhDq.js.map +0 -1
  1144. package/dist/merlot-DOXLuUaU.js.map +0 -1
  1145. package/dist/merlot.theme-S-QnNGsw.js +0 -6
  1146. package/dist/merlot.theme-S-QnNGsw.js.map +0 -1
  1147. package/dist/midnight-BxlTQSfw.js.map +0 -1
  1148. package/dist/midnight.theme-wXbqRYLy.js +0 -6
  1149. package/dist/midnight.theme-wXbqRYLy.js.map +0 -1
  1150. package/dist/mockup-83ELBuVr.js +0 -6
  1151. package/dist/mockup-83ELBuVr.js.map +0 -1
  1152. package/dist/mockup.theme-DmpBgGBl.js +0 -6
  1153. package/dist/mockup.theme-DmpBgGBl.js.map +0 -1
  1154. package/dist/paper-M61nUilz.js.map +0 -1
  1155. package/dist/paper.theme-B8R5Jn5H.js +0 -6
  1156. package/dist/paper.theme-B8R5Jn5H.js.map +0 -1
  1157. package/dist/persist.types-D2m6wD-S.js.map +0 -1
  1158. package/dist/pop-CxXfytjk.js.map +0 -1
  1159. package/dist/pop.theme-CXzv8B9x.js +0 -6
  1160. package/dist/pop.theme-CXzv8B9x.js.map +0 -1
  1161. package/dist/search-CzSzx7bX.js.map +0 -1
  1162. package/dist/spell-By5Y3jKP.js +0 -6
  1163. package/dist/spell-By5Y3jKP.js.map +0 -1
  1164. package/dist/spell.theme-DxGj7qHx.js +0 -6
  1165. package/dist/spell.theme-DxGj7qHx.js.map +0 -1
  1166. package/dist/styles.en-CUUxNwHo.js.map +0 -1
  1167. package/dist/ui-theme-menu-CuIjr8Ou.js.map +0 -1
package/dist/ui-action.js CHANGED
@@ -1,13 +1,14 @@
1
- import "./rolldown-runtime-CYGlBXrH.js";
2
- import { Bt as e, Ht as t, Lt as n, N as r, Rt as i, UI as a, Ut as o, Warnings as s, cssState as c, on as l, proto as u, protoMerged as d, zt as f } from "./core.js";
3
- import { UIItem as p, itemVocabulary as m } from "./ui-item.js";
4
- import { n as h, t as g } from "./UIKeys-Rh_gUZjP.js";
5
- import { For as _, Show as v } from "solid-js";
6
- import { className as y, createComponent as b, effect as x, insert as S, memo as C, readShallow as w, setAttribute as T, template as E } from "@solidjs/web";
7
- //#region src/components/ui-action/UIAction.en.ts
8
- var D = {
9
- ...m,
1
+ import "./rolldown-runtime-c6e9CmGy.js";
2
+ import { Converters as e, Gt as t, Jt as n, Kt as r, N as i, UI as a, Ut as o, Warnings as s, Wt as c, Yt as l, cssState as u, on as d, proto as f, protoMerged as p } from "./core.js";
3
+ import { UIItem as m, itemVocabulary as h } from "./ui-item.js";
4
+ import { n as g, t as _ } from "./UIKeys-DmXvyJuU.js";
5
+ import { For as v, Show as y } from "solid-js";
6
+ import { className as b, createComponent as x, effect as S, insert as C, memo as w, readShallow as T, setAttribute as E, template as D } from "@solidjs/web";
7
+ // src/components/ui-action/UIAction.en.ts
8
+ var O = {
9
+ ...h,
10
10
  tag: "ui-action",
11
+ partOfSpeech: "action",
11
12
  icon: "play",
12
13
  topics: [
13
14
  "menus",
@@ -25,7 +26,7 @@ var D = {
25
26
  skeleton: "inline 8 x 2.5",
26
27
  description: "A menu item or toolbar button drawn from an action: its title, icon and shortcut keys.",
27
28
  attributes: [
28
- ...m.attributes,
29
+ ...h.attributes,
29
30
  {
30
31
  name: "action",
31
32
  group: "behaviour",
@@ -38,16 +39,26 @@ var D = {
38
39
  group: "content",
39
40
  kind: "string",
40
41
  description: "Its keys, drawn as key caps at the end, as `<ui-keys>` draws them: `mod+T` is ⌘T on a Mac, Ctrl+T elsewhere; `meta` is the Meta key. Defaults to the action's."
42
+ },
43
+ {
44
+ name: "icon-only",
45
+ group: "appearance",
46
+ kind: "keyOnly",
47
+ description: "Only its icon, at every width: its title is its tooltip and its name for a screen reader, and its row in a `shrinkable` menu's `…` menu. In a vertical menu, icon-only actions side by side share one row (Undo and Redo). No icon: its title shows."
41
48
  }
42
49
  ],
43
- parts: [...m.parts, {
50
+ parts: [...h.parts, {
44
51
  name: "shortcut",
45
52
  description: "The key caps of its shortcut, at the end: a `<kbd>` each."
46
53
  }],
47
- texts: [...h]
48
- }, O = "@layer ui.components.action.content{.item>.title{flex:auto}.item>.shortcut{opacity:.6;white-space:nowrap;gap:.125em;margin-inline-start:1.5em;font-size:.875em;display:inline-flex}.item>.shortcut>kbd{font:inherit}@container style(--_menu-fit:icons){.item>.shortcut{display:none}}}", k = /* @__PURE__ */ E("<span>"), A = /* @__PURE__ */ E("<kbd>"), j, M, N, P, F, I, L, R = class _UIAction extends (I = p, F = [u], P = [d], N = [c("disabled")], M = [c("selected")], j = [l("click")], I) {
54
+ states: [...h.states, {
55
+ name: "icon-only",
56
+ description: "`icon-only`, with an icon: its icon alone, its title hidden."
57
+ }],
58
+ texts: [...g]
59
+ }, k = "@layer ui.components.action.content{.item>.title{flex:auto}.item>.shortcut{opacity:.6;white-space:nowrap;gap:.125em;margin-inline-start:1.5em;font-size:.875em;display:inline-flex}.item>.shortcut>kbd{font:inherit}:host(:state(icon-only))>.item>.title{display:none}@container style(--_menu-fit:icons){.item>.shortcut{display:none}}}", A = /* @__PURE__ */ D("<span>"), j = /* @__PURE__ */ D("<kbd>"), M, N, P, F, I, L, R, z, B = class _UIAction extends (R = m, L = [f], I = [p], F = [u("disabled")], P = [u("selected")], N = [d("click")], M = [u("icon-only")], R) {
49
60
  constructor() {
50
- super(...arguments), o(L, 5, this);
61
+ super(...arguments), l(z, 5, this);
51
62
  }
52
63
  get actionToDraw() {
53
64
  let e = this.action;
@@ -59,6 +70,10 @@ var D = {
59
70
  get icon() {
60
71
  return this.attributes.icon ?? this.actionToDraw?.icon;
61
72
  }
73
+ unsetValueOf(e) {
74
+ if (e === U) return this.actionToDraw?.title || void 0;
75
+ if (e === W) return this.actionToDraw?.icon || void 0;
76
+ }
62
77
  get shortcut() {
63
78
  return this.attributes.shortcut || this.actionToDraw?.shortcut;
64
79
  }
@@ -73,40 +88,55 @@ var D = {
73
88
  return this.kind === "item" ? this.link ? "a" : "button" : "div";
74
89
  }
75
90
  onClick(e) {
76
- if (this.isDisabled) {
77
- e.preventDefault();
78
- return;
79
- }
80
- Promise.resolve(this.actionToDraw?.run("click")).catch((e) => console.error(e));
91
+ this.isDisabled ? e.preventDefault() : Promise.resolve(this.actionToDraw?.run("click")).catch((e) => console.error(e));
92
+ }
93
+ get showsIconOnly() {
94
+ return this.kind === "item" && this.hasIcon && e.boolean(this.attributes[H], H);
95
+ }
96
+ get isIconOnly() {
97
+ return this.showsIconOnly ? !this.isInTicks && !this.isInIconColumn && !this.hasBadge && !this.imageUrl : super.isIconOnly;
98
+ }
99
+ get boxLabel() {
100
+ return super.boxLabel ?? (this.showsIconOnly && this.titleText || void 0);
81
101
  }
82
102
  get hasTitleBox() {
83
- return this.kind === r;
103
+ return this.kind === i;
84
104
  }
85
105
  get titleFallback() {
86
106
  return this.title;
87
107
  }
108
+ get drawsShortcut() {
109
+ let e = this.itemContext;
110
+ return !e?.hidesShortcuts && !e?.iconsOnly && !this.showsIconOnly;
111
+ }
112
+ get boxTooltip() {
113
+ let e = super.boxTooltip;
114
+ if (this.attributes.title !== null || this.drawsShortcut) return e;
115
+ let t = this.shortcut ? this.keyCapsFor(this.shortcut) : [];
116
+ return t.length ? `${this.titleText} (${t.join(a.browser.isApple ? "" : K)})` : this.showsIconOnly && this.titleText || e;
117
+ }
88
118
  boxContent() {
89
- let t = /* @__PURE__ */ e(() => this.shortcut ? this.keyCapsFor(this.shortcut) : [], "caps"), n = this;
90
- return [C(() => super.boxContent()), b(v, {
119
+ let e = /* @__PURE__ */ r(() => this.shortcut && this.drawsShortcut ? this.keyCapsFor(this.shortcut) : [], "caps"), t = this;
120
+ return [w(() => super.boxContent()), x(y, {
91
121
  get when() {
92
- return t().length;
122
+ return e().length;
93
123
  },
94
124
  get children() {
95
- var e = k();
96
- return S(e, b(_, {
125
+ var n = A();
126
+ return C(n, x(v, {
97
127
  get each() {
98
- return t();
128
+ return e();
99
129
  },
100
130
  children: (e) => (() => {
101
- var t = A();
102
- return S(t, e), t;
131
+ var t = j();
132
+ return C(t, e), t;
103
133
  })()
104
- })), x(() => ({
105
- e: w(B),
106
- t: n.actionPart(B)
107
- }), ({ e: t, t: n }, r) => {
108
- y(e, t, r?.e), n !== r?.t && T(e, "part", n);
109
- }), e;
134
+ })), S(() => ({
135
+ e: T(G),
136
+ t: t.actionPart(G)
137
+ }), ({ e, t }, r) => {
138
+ b(n, e, r?.e), t !== r?.t && E(n, "part", t);
139
+ }), n;
110
140
  }
111
141
  })];
112
142
  }
@@ -114,7 +144,7 @@ var D = {
114
144
  let t = a.browser.isApple;
115
145
  try {
116
146
  let n = a.keyboard.chord(e, { isApple: t });
117
- return g.capsOf(n, t, (e) => this.translationForKey(e));
147
+ return _.capsOf(n, t, (e) => this.translationForKey(e));
118
148
  } catch (t) {
119
149
  return s.warn("<ui-action>", `can't read the shortcut ${JSON.stringify(e)}`, t), [];
120
150
  }
@@ -123,19 +153,17 @@ var D = {
123
153
  return this.partForName(e);
124
154
  }
125
155
  };
126
- L = f(I), n(L, 2, "isDisabled", N, R), n(L, 2, "isSelected", M, R), n(L, 1, "onClick", j, R), n(L, 13, "vocabulary", F, R), n(L, 13, "elementSetup", P, R), i(L, R), e(R, "UIAction"), t(R, "vocabulary", o(L, 8, R, D)), o(L, 11, R), t(R, "elementSetup", o(L, 12, R, {
156
+ z = t(R), o(z, 2, "isDisabled", F, B), o(z, 2, "isSelected", P, B), o(z, 1, "onClick", N, B), o(z, 2, "showsIconOnly", M, B), o(z, 13, "vocabulary", L, B), o(z, 13, "elementSetup", I, B), c(z, B), r(B, "UIAction"), n(B, "vocabulary", l(z, 8, B, O)), l(z, 11, B), n(B, "elementSetup", l(z, 12, B, {
127
157
  styleSheets: {
128
- item: p.elementSetup.styleSheets.item,
129
- action: O
158
+ item: m.elementSetup.styleSheets.item,
159
+ action: k
130
160
  },
131
161
  isAPart: !0,
132
162
  disabled: "its own"
133
- })), o(L, 15, R);
134
- var z = R, B = "shortcut";
135
- //#endregion
136
- //#region src/components/ui-action/index.ts
137
- z.define();
138
- //#endregion
139
- export { z as UIAction };
163
+ })), l(z, 15, B);
164
+ var V = B, H = "icon-only", U = "label", W = "icon", G = "shortcut", K = "+";
165
+ // src/components/ui-action/index.ts
166
+ V.define();
167
+ export { V as UIAction };
140
168
 
141
169
  //# sourceMappingURL=ui-action.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-action.js","names":["{super.boxContent()}","<Show when={caps().length}>\n <span class={SHORTCUT} part={this.actionPart(SHORTCUT)}>\n <For each={caps()}>{(cap) => <kbd>{cap}</kbd>}</For>\n </span>\n </Show>","<For each={caps()}>{(cap) => <kbd>{cap}</kbd>}</For>","part={this.actionPart(SHORTCUT)}","this","<span class={SHORTCUT} part={this.actionPart(SHORTCUT)}>\n <For each={caps()}>{(cap) => <kbd>{cap}</kbd>}</For>\n </span>","E.proto","E.protoMerged","E.cssState","E.on","UIT.ITEM","_$memo","_$createComponent","_$readShallow","_$setAttribute","__name","actionCSS","__name$1","__publicField","__decorateElement","ITEM","__decoratorMetadata","__runInitializers","__decoratorStart","keyCapTexts","UIKeys","actionVocabulary","itemVocabulary","UIAction_default","_tmpl$","_tmpl$2","_onClick_dec","_isSelected_dec","_isDisabled_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIAction","UIItem","proto","protoMerged","cssState","on","action","error","caps","_self$","memo","createComponent","Show","_el$","insert","For","_el$2","cap","effect","readShallow","SHORTCUT","className","e","_p$","t","setAttribute","isApple","UI","chord","shortcut","word","Warnings","name","UIAction"],"sources":["../src/components/ui-action/UIAction.en.ts","../src/components/ui-action/UIAction.css?inline","../src/components/ui-action/UIAction.tsx","../src/components/ui-action/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-action>`: `<ui-item>`'s, under the action's own tag, with the action it draws.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Built ON the item's: the same attributes, slots and states, so a menu or toolbar draws it as one of its items\n * (the same noun, `item`).\n * - Its own: the `action` it draws (a property), its `shortcut` and the key caps that show it, and the words of\n * the caps with no symbol: `<ui-keys>`' (`keyCapTexts`), as it draws its caps through `<ui-keys>`' table.\n */\n\nimport type { E } from \"spell/ui/core\"\nimport { itemVocabulary } from \"spell/ui/components/ui-item/UIItem.en\"\nimport { keyCapTexts } from \"spell/ui/components/ui-keys/UIKeys.en\"\n\n/****************\n * ### `actionVocabulary`\n * The names of `<ui-action>`, an action: a menu item or toolbar button drawn from something a program can do --\n * its title, icon and shortcut keys, greyed while it can't be done, ticked while it's on.\n ****************/\nexport const actionVocabulary = {\n ...itemVocabulary,\n tag: \"ui-action\",\n icon: \"play\",\n topics: [\"menus\", \"buttons\", \"controls\"],\n aka: [\"action\", \"command\", \"menu item\", \"toolbar button\", \"context menu item\", \"keyboard shortcut\"],\n skeleton: \"inline 8 x 2.5\",\n description: \"A menu item or toolbar button drawn from an action: its title, icon and shortcut keys.\",\n attributes: [\n ...itemVocabulary.attributes,\n {\n name: \"action\",\n group: \"behaviour\",\n kind: \"json\",\n reflect: false,\n description:\n \"PROPERTY: the action it draws and runs: `{ title, icon?, shortcut?, isEnabled, isSelected, run() }`, \" +\n \"read live. Spell's `core.menuOf()` gives a menu's.\"\n },\n {\n name: \"shortcut\",\n group: \"content\",\n kind: \"string\",\n description:\n \"Its keys, drawn as key caps at the end, as `<ui-keys>` draws them: `mod+T` is ⌘T on a Mac, Ctrl+T \" +\n \"elsewhere; `meta` is the Meta key. \" +\n \"Defaults to the action's.\"\n }\n ],\n parts: [\n ...itemVocabulary.parts,\n { name: \"shortcut\", description: \"The key caps of its shortcut, at the end: a `<kbd>` each.\" }\n ],\n texts: [...keyCapTexts]\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-action>`: its title and its shortcut's key caps, inside the item box its owner styles\n * (`UIItem.css`, then the owner's: `UIMenu.css` ...).\n * - Shadow markup contract: the item's box holding the icon box, then `<span class=\"title\" part=\"title\">` and\n * `<span class=\"shortcut\" part=\"shortcut\">` of one `<kbd>` per key.\n * - The key caps sit at the box's end, quieter than the title.\n */\n\n@layer ui.components.action.content;\n\n@layer ui.components.action.content {\n .item > .title {\n flex: 1 1 auto;\n }\n\n .item > .shortcut {\n display: inline-flex;\n gap: 0.125em;\n margin-inline-start: 1.5em;\n opacity: 0.6;\n font-size: 0.875em;\n white-space: nowrap;\n }\n\n .item > .shortcut > kbd {\n font: inherit;\n }\n\n /* A shrinkable row of actions down to its icons (`TitleFit`'s `icons` stage): the key caps go with the titles,\n so the icons fit before the row folds into its overflow button, whose menu shows them again */\n @container style(--_menu-fit: icons) {\n .item > .shortcut {\n display: none;\n }\n }\n}\n","import { For, Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, UI, UIT } from \"spell/ui/core\"\n// the family barrel, not the leaf:\n// the lib build then imports `ui-item.js` instead of splitting a shared chunk\n// (SIDE EFFECT: defines `<ui-item>`, which an action extends)\nimport { UIItem } from \"spell/ui/components/ui-item\"\nimport type { itemVocabulary } from \"spell/ui/components/ui-item/UIItem.en\"\nimport { UIKeys } from \"spell/ui/components/ui-keys/UIKeys\"\nimport { actionVocabulary } from \"./UIAction.en\"\n\nimport actionCSS from \"./UIAction.css?inline\"\n\n/****************\n * ### `<ui-action>`\n * The component behind `<ui-action>`: a menu item or toolbar button drawn from an ACTION,\n * something a program can do (epic `elemental-spell` P10).\n *\n * <button class=\"[disabled] [active] item\" part=\"item\"> (a menu's or toolbar's item box, `UIItem`'s)\n * <span class=\"icon\" part=\"icon\"> <svg> </span> (with an icon)\n * <span class=\"title\" part=\"title\"> <slot>title</slot> </span> (`UIItem`'s title box, always drawn)\n * <span class=\"shortcut\" part=\"shortcut\"> <kbd>⌘</kbd><kbd>T</kbd> </span> (with a shortcut)\n * </button>\n *\n * - It IS a `<ui-item>` (it extends `UIItem`): a menu, toolbar or list draws it as one of its items.\n * - Its `action` property says what it draws, read live:\n * - its title (the default slot's fallback), icon and shortcut\n * - greyed while not `isEnabled` (`:state(disabled)`), ticked while `isSelected` (`:state(selected)`)\n * - a click runs it (`run(\"click\")`), unless it's disabled\n * - Knows nothing of spell: any object of that shape will do.\n * Spell's runner hands it each item of `core.menuOf()`; the `disabled`, `selected` and `icon` attributes still\n * work without one.\n * - Its shortcut's key caps, read and drawn as `<ui-keys>`' are (`keyCapsFor()`):\n * `mod` is ⌘ on a Mac and Ctrl elsewhere; `meta` is the Meta key itself.\n * Plain caps, as a menu shows them, where `<ui-keys>` draws boxes.\n ****************/\nexport class UIAction extends UIItem {\n // the item's names under the action's tag, and its own: TypeScript only knows the item's literals\n @E.proto static vocabulary = actionVocabulary as unknown as typeof itemVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { item: UIItem.elementSetup.styleSheets.item, action: actionCSS },\n // the item's own, restated: its setup is typed as its literal\n isAPart: true,\n disabled: \"its own\"\n } satisfies Partial<E.ElementSetup>\n\n ////////////////\n // ## The action\n ////////////////\n\n /** The action it draws, its `action` property, if it has one. */\n get actionToDraw(): ActionToDraw | undefined {\n const action = (this as unknown as { action?: unknown }).action\n return action && typeof action === \"object\" ? (action as ActionToDraw) : undefined\n }\n\n /** Its title: the action's. */\n get title(): string {\n return this.actionToDraw?.title ?? \"\"\n }\n\n /** Its icon: its own `icon` attribute, else the action's. (A member with an attribute's name wins over it.) */\n get icon(): string | undefined {\n return this.attributes.icon ?? this.actionToDraw?.icon\n }\n\n /** Its shortcut: its own `shortcut` attribute, else the action's. */\n get shortcut(): string | undefined {\n return this.attributes.shortcut || this.actionToDraw?.shortcut\n }\n\n /**\n * Disabled by its attribute, or while its action isn't enabled.\n * - SIDE EFFECT: the DOM element swallows clicks meanwhile, as for any item.\n */\n @E.cssState(\"disabled\")\n get isDisabled(): boolean {\n const action = this.actionToDraw\n return super.isDisabled || (!!action && !action.isEnabled)\n }\n\n /** Selected by its attribute, or while its action is on (ticked). */\n @E.cssState(\"selected\")\n get isSelected(): boolean {\n return super.isSelected || !!this.actionToDraw?.isSelected\n }\n\n /** Always a button (a link with `link`): something to press, in any owner. */\n get rootTag(): \"a\" | \"button\" | \"div\" {\n if (this.kind !== UIT.ITEM) return \"div\"\n return this.link ? \"a\" : \"button\"\n }\n\n /** SIDE EFFECT: a click on it runs its action, unless it's disabled. */\n @E.on(\"click\")\n protected onClick(event: MouseEvent) {\n if (this.isDisabled) {\n event.preventDefault()\n return\n }\n void Promise.resolve(this.actionToDraw?.run(\"click\")).catch((error) => console.error(error))\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n /** Always its title box, in any owner: its slot, else its action's title. */\n get hasTitleBox(): boolean {\n return this.kind === UIT.ITEM\n }\n\n /** Its title box's fallback: its action's title. */\n protected get titleFallback(): string {\n return this.title\n }\n\n /** The item's title box and badge (`UIItem.boxContent()`), then its shortcut's key caps. */\n protected boxContent(): JSX.Element {\n const caps = () => (this.shortcut ? this.keyCapsFor(this.shortcut) : [])\n return (\n <>\n {super.boxContent()}\n <Show when={caps().length}>\n <span class={SHORTCUT} part={this.actionPart(SHORTCUT)}>\n <For each={caps()}>{(cap) => <kbd>{cap}</kbd>}</For>\n </span>\n </Show>\n </>\n )\n }\n\n /**\n * The key caps of `shortcut` as a template writes it: `mod+shift+Z` is `⌘ ⇧ Z` on a Mac, `Ctrl Shift Z`\n * elsewhere.\n * - Read as every shortcut is (`UI.keyboard.chord()`), drawn from `<ui-keys>`' caps (`UIKeys.capsOf()`):\n * `mod` is command on a Mac and control elsewhere; `meta` the Meta key (⌘ on a Mac);\n * `ctrl`, `alt` (Option) and `shift` those keys.\n * - Off a Mac, the words are the page's language (Ctrl, Shift, Alt), and so is `space`'s.\n * - A shortcut it can't read draws no caps, and warns.\n */\n keyCapsFor(shortcut: string): string[] {\n const isApple = UI.browser.isApple\n try {\n const chord = UI.keyboard.chord(shortcut, { isApple })\n // its vocabulary adds these texts to the item's, which TypeScript knows\n return UIKeys.capsOf(chord, isApple, (word) => this.translationForKey(word as never))\n } catch (error) {\n E.Warnings.warn(\"<ui-action>\", `can't read the shortcut ${JSON.stringify(shortcut)}`, error)\n return []\n }\n }\n\n /** A part of the action's own (its vocabulary adds them to the item's, which TypeScript knows). */\n private actionPart(name: typeof SHORTCUT): string {\n return this.partForName(name as never)\n }\n}\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIAction extends E.AttributeValues<typeof itemVocabulary> {}\n\n/**\n * What `<ui-action>` draws and runs: an action of a program, read live.\n * - Spell's `core.menuOf()` gives a menu's items in this shape.\n */\nexport type ActionToDraw = {\n /** what people read, e.g. `Undo Turn Card` */\n readonly title: string\n /** an icon's name, e.g. `rotate` */\n readonly icon?: string\n /** its keys, as a template writes them, e.g. `mod+T` */\n readonly shortcut?: string\n /** can it run now? Greyed while not. */\n readonly isEnabled: boolean\n /** is it on now? Ticked while so. */\n readonly isSelected: boolean\n /** run it; `way`: how the person ran it */\n run(way?: \"click\" | \"key\" | \"menu\"): unknown\n}\n\n////////////////\n// ## Constants\n////////////////\n\n/** Class word and part of the key caps' box. */\nconst SHORTCUT = \"shortcut\"\n","/**\n * The action family: defines `<ui-action>` and exports its component, `UIAction`.\n * - SIDE EFFECT: importing it defines the tag.\n * `UIAction` imports the item family first, which defines `<ui-item>`: an action extends the item.\n * - Also the library's `spell/ui/ui-action` entry.\n */\n\nimport { UIAction } from \"./UIAction\"\n\nUIAction.define()\n\nexport { UIAction, type ActionToDraw } from \"./UIAction\"\n"],"mappings":"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"}
1
+ {"version":3,"file":"ui-action.js","names":["{super.boxContent()}","<Show when={caps().length}>\n <span class={SHORTCUT} part={this.actionPart(SHORTCUT)}>\n <For each={caps()}>{(cap) => <kbd>{cap}</kbd>}</For>\n </span>\n </Show>","<For each={caps()}>{(cap) => <kbd>{cap}</kbd>}</For>","part={this.actionPart(SHORTCUT)}","this","<span class={SHORTCUT} part={this.actionPart(SHORTCUT)}>\n <For each={caps()}>{(cap) => <kbd>{cap}</kbd>}</For>\n </span>","E.proto","E.protoMerged","E.cssState","E.on","UIT.ITEM","_$readShallow","_$setAttribute","__name","actionCSS","__decoratorStart","__publicField","__name$1","ITEM","__decorateElement","__decoratorMetadata","__runInitializers","keyCapTexts","UIKeys","actionVocabulary","itemVocabulary","UIAction_default","_tmpl$","_tmpl$2","_showsIconOnly_dec","_onClick_dec","_isSelected_dec","_isDisabled_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIAction","UIItem","proto","protoMerged","cssState","on","action","name","LABEL","ICON","event","error","Converters","ICON_ONLY","context","tooltip","caps","UI","KEY_JOIN","_self$","memo","createComponent","Show","_el$","insert","For","_el$2","cap","effect","readShallow","SHORTCUT","className","_p$","setAttribute","isApple","chord","shortcut","word","Warnings","UIAction"],"sources":["../src/components/ui-action/UIAction.en.ts","../src/components/ui-action/UIAction.tsx","../src/components/ui-action/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-action>`: `<ui-item>`'s, under the action's own tag, with the action it draws.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Built ON the item's: the same attributes, slots and states, so a menu or toolbar draws it as one of its items\n * (the same noun, `item`).\n * - Its own: the `action` it draws (a property), its `shortcut` and the key caps that show it, and the words of\n * the caps with no symbol: `<ui-keys>`' (`keyCapTexts`), as it draws its caps through `<ui-keys>`' table.\n */\n\nimport type { E } from \"spell/ui/core\"\nimport { itemVocabulary } from \"spell/ui/components/ui-item/UIItem.en\"\nimport { keyCapTexts } from \"spell/ui/components/ui-keys/UIKeys.en\"\n\n/****************\n * ### `actionVocabulary`\n * The names of `<ui-action>`, an action: a menu item or toolbar button drawn from something a program can do --\n * its title, icon and shortcut keys, greyed while it can't be done, ticked while it's on.\n ****************/\nexport const actionVocabulary = {\n ...itemVocabulary,\n tag: \"ui-action\",\n partOfSpeech: \"action\",\n icon: \"play\",\n topics: [\"menus\", \"buttons\", \"controls\"],\n aka: [\"action\", \"command\", \"menu item\", \"toolbar button\", \"context menu item\", \"keyboard shortcut\"],\n skeleton: \"inline 8 x 2.5\",\n description: \"A menu item or toolbar button drawn from an action: its title, icon and shortcut keys.\",\n attributes: [\n ...itemVocabulary.attributes,\n {\n name: \"action\",\n group: \"behaviour\",\n kind: \"json\",\n reflect: false,\n description:\n \"PROPERTY: the action it draws and runs: `{ title, icon?, shortcut?, isEnabled, isSelected, run() }`, \" +\n \"read live. Spell's `core.menuOf()` gives a menu's.\"\n },\n {\n name: \"shortcut\",\n group: \"content\",\n kind: \"string\",\n description:\n \"Its keys, drawn as key caps at the end, as `<ui-keys>` draws them: `mod+T` is ⌘T on a Mac, Ctrl+T \" +\n \"elsewhere; `meta` is the Meta key. \" +\n \"Defaults to the action's.\"\n },\n {\n name: \"icon-only\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description:\n \"Only its icon, at every width: its title is its tooltip and its name for a screen reader, and its row in \" +\n \"a `shrinkable` menu's `…` menu. \" +\n \"In a vertical menu, icon-only actions side by side share one row (Undo and Redo). \" +\n \"No icon: its title shows.\"\n }\n ],\n parts: [\n ...itemVocabulary.parts,\n { name: \"shortcut\", description: \"The key caps of its shortcut, at the end: a `<kbd>` each.\" }\n ],\n states: [\n ...itemVocabulary.states,\n { name: \"icon-only\", description: \"`icon-only`, with an icon: its icon alone, its title hidden.\" }\n ],\n texts: [...keyCapTexts]\n} as const satisfies E.ComponentVocabulary\n","import { For, Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, UI, UIT } from \"spell/ui/core\"\n// the family barrel, not the leaf:\n// the lib build then imports `ui-item.js` instead of splitting a shared chunk\n// (SIDE EFFECT: defines `<ui-item>`, which an action extends)\nimport { UIItem } from \"spell/ui/components/ui-item\"\nimport type { itemVocabulary } from \"spell/ui/components/ui-item/UIItem.en\"\nimport { UIKeys } from \"spell/ui/components/ui-keys/UIKeys\"\nimport { actionVocabulary } from \"./UIAction.en\"\n\nimport actionCSS from \"./UIAction.css?inline\"\n\n/****************\n * ### `<ui-action>`\n * The component behind `<ui-action>`: a menu item or toolbar button drawn from an ACTION,\n * something a program can do (epic `elemental-spell` P10).\n *\n * <button class=\"[disabled] [active] item\" part=\"item\"> (a menu's or toolbar's item box, `UIItem`'s)\n * <span class=\"icon\" part=\"icon\"> <svg> </span> (with an icon)\n * <span class=\"title\" part=\"title\"> <slot>title</slot> </span> (`UIItem`'s title box, always drawn)\n * <span class=\"shortcut\" part=\"shortcut\"> <kbd>⌘</kbd><kbd>T</kbd> </span> (with a shortcut)\n * </button>\n *\n * - It IS a `<ui-item>` (it extends `UIItem`): a menu, toolbar or list draws it as one of its items.\n * - Its `action` property says what it draws, read live:\n * - its title (the default slot's fallback), icon and shortcut\n * - greyed while not `isEnabled` (`:state(disabled)`), ticked while `isSelected` (`:state(selected)`)\n * - a click runs it (`run(\"click\")`), unless it's disabled\n * - Knows nothing of spell: any object of that shape will do.\n * Spell's runner hands it each item of `core.menuOf()`; the `disabled`, `selected` and `icon` attributes still\n * work without one.\n * - Its shortcut's key caps, read and drawn as `<ui-keys>`' are (`keyCapsFor()`):\n * `mod` is ⌘ on a Mac and Ctrl elsewhere; `meta` is the Meta key itself.\n * Plain caps, as a menu shows them, where `<ui-keys>` draws boxes.\n * - Where its caps don't show (a toolbar's own row, unless `show-keys`; icons only), its tooltip names its keys:\n * `Undo (⌘Z)`.\n * - `icon-only`: its icon alone, at every width (`:state(icon-only)`), its title its tooltip and its name:\n * - its title box is still drawn, but hidden, so a `shrinkable` menu still folds it into its `…` button\n * with the rest, where its row shows its title\n * - in a vertical menu, side by side with the icon-only actions next to it, in one row (`UIMenu.css`):\n * a context menu's Undo and Redo\n * - an action with no icon shows its title as before: there's nothing else to show\n ****************/\nexport class UIAction extends UIItem {\n // the item's names under the action's tag, and its own: TypeScript only knows the item's literals\n @E.proto static vocabulary = actionVocabulary as unknown as typeof itemVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { item: UIItem.elementSetup.styleSheets.item, action: actionCSS },\n // the item's own, restated: its setup is typed as its literal\n isAPart: true,\n disabled: \"its own\"\n } satisfies Partial<E.ElementSetup>\n\n ////////////////\n // ## The action\n ////////////////\n\n /** The action it draws, its `action` property, if it has one. */\n get actionToDraw(): ActionToDraw | undefined {\n const action = (this as unknown as { action?: unknown }).action\n return action && typeof action === \"object\" ? (action as ActionToDraw) : undefined\n }\n\n /** Its title: the action's. */\n get title(): string {\n return this.actionToDraw?.title ?? \"\"\n }\n\n /** Its icon: its own `icon` attribute, else the action's. (A member with an attribute's name wins over it.) */\n get icon(): string | undefined {\n return this.attributes.icon ?? this.actionToDraw?.icon\n }\n\n /**\n * What it shows for attribute `name` while it isn't set: its action's title for `label`, its icon for `icon`.\n * - A property editor shows it as that field's placeholder (`UIProperty`; epic `editor` I208).\n */\n unsetValueOf(name: string): string | undefined {\n if (name === LABEL) return this.actionToDraw?.title || undefined\n if (name === ICON) return this.actionToDraw?.icon || undefined\n return undefined\n }\n\n /** Its shortcut: its own `shortcut` attribute, else the action's. */\n get shortcut(): string | undefined {\n return this.attributes.shortcut || this.actionToDraw?.shortcut\n }\n\n /**\n * Disabled by its attribute, or while its action isn't enabled.\n * - SIDE EFFECT: the DOM element swallows clicks meanwhile, as for any item.\n */\n @E.cssState(\"disabled\")\n get isDisabled(): boolean {\n const action = this.actionToDraw\n return super.isDisabled || (!!action && !action.isEnabled)\n }\n\n /** Selected by its attribute, or while its action is on (ticked). */\n @E.cssState(\"selected\")\n get isSelected(): boolean {\n return super.isSelected || !!this.actionToDraw?.isSelected\n }\n\n /** Always a button (a link with `link`): something to press, in any owner. */\n get rootTag(): \"a\" | \"button\" | \"div\" {\n if (this.kind !== UIT.ITEM) return \"div\"\n return this.link ? \"a\" : \"button\"\n }\n\n /** SIDE EFFECT: a click on it runs its action, unless it's disabled. */\n @E.on(\"click\")\n protected onClick(event: MouseEvent) {\n if (this.isDisabled) {\n event.preventDefault()\n return\n }\n void Promise.resolve(this.actionToDraw?.run(\"click\")).catch((error) => console.error(error))\n }\n\n ////////////////\n // ## Icon only\n ////////////////\n\n /**\n * It shows its icon alone (`icon-only`), and has one: `:state(icon-only)`, which hides its title box\n * (`UIAction.css`).\n */\n @E.cssState(\"icon-only\")\n get showsIconOnly(): boolean {\n return this.kind === UIT.ITEM && this.hasIcon && E.Converters.boolean(this.attributes[ICON_ONLY], ICON_ONLY)\n }\n\n /**\n * Fomantic's `icon item` (its icon centred, no gap after it) while it shows its icon alone too,\n * but not in a menu with ticks or an icon column, where every row keeps its icon in the column.\n */\n get isIconOnly(): boolean {\n if (!this.showsIconOnly) return super.isIconOnly\n return !this.isInTicks && !this.isInIconColumn && !this.hasBadge && !this.imageUrl\n }\n\n /** The box's name: the page's (`aria-label`), else its title while it shows its icon alone. */\n protected get boxLabel(): string | undefined {\n return super.boxLabel ?? (this.showsIconOnly ? this.titleText || undefined : undefined)\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n /** Always its title box, in any owner: its slot, else its action's title. */\n get hasTitleBox(): boolean {\n return this.kind === UIT.ITEM\n }\n\n /** Its title box's fallback: its action's title. */\n protected get titleFallback(): string {\n return this.title\n }\n\n /**\n * Its key caps show beside its title: not in a toolbar's own row (unless `show-keys`), nor while its menu shows\n * icons only, nor while it shows its icon alone (`icon-only`).\n */\n get drawsShortcut(): boolean {\n const context = this.itemContext\n return !context?.hidesShortcuts && !context?.iconsOnly && !this.showsIconOnly\n }\n\n /**\n * The box's tooltip: where its key caps don't show, its title and its keys, `Auto Play (A)`, `Undo (⌘Z)` on a Mac,\n * `Undo (Ctrl+Z)` elsewhere.\n * - Its title alone while it shows its icon alone (`icon-only`) and has no keys.\n * - The page's own `title` still wins (`UIItem`'s).\n */\n protected get boxTooltip(): string | undefined {\n const tooltip = super.boxTooltip\n if (this.attributes.title !== null || this.drawsShortcut) return tooltip\n const caps = this.shortcut ? this.keyCapsFor(this.shortcut) : []\n if (caps.length) return `${this.titleText} (${caps.join(UI.browser.isApple ? \"\" : KEY_JOIN)})`\n return this.showsIconOnly ? this.titleText || tooltip : tooltip\n }\n\n /** The item's title box and badge (`UIItem.boxContent()`), then its shortcut's key caps, while they show. */\n protected boxContent(): JSX.Element {\n const caps = () => (this.shortcut && this.drawsShortcut ? this.keyCapsFor(this.shortcut) : [])\n return (\n <>\n {super.boxContent()}\n <Show when={caps().length}>\n <span class={SHORTCUT} part={this.actionPart(SHORTCUT)}>\n <For each={caps()}>{(cap) => <kbd>{cap}</kbd>}</For>\n </span>\n </Show>\n </>\n )\n }\n\n /**\n * The key caps of `shortcut` as a template writes it: `mod+shift+Z` is `⌘ ⇧ Z` on a Mac, `Ctrl Shift Z`\n * elsewhere.\n * - Read as every shortcut is (`UI.keyboard.chord()`), drawn from `<ui-keys>`' caps (`UIKeys.capsOf()`):\n * `mod` is command on a Mac and control elsewhere; `meta` the Meta key (⌘ on a Mac);\n * `ctrl`, `alt` (Option) and `shift` those keys.\n * - Off a Mac, the words are the page's language (Ctrl, Shift, Alt), and so is `space`'s.\n * - A shortcut it can't read draws no caps, and warns.\n */\n keyCapsFor(shortcut: string): string[] {\n const isApple = UI.browser.isApple\n try {\n const chord = UI.keyboard.chord(shortcut, { isApple })\n // its vocabulary adds these texts to the item's, which TypeScript knows\n return UIKeys.capsOf(chord, isApple, (word) => this.translationForKey(word as never))\n } catch (error) {\n E.Warnings.warn(\"<ui-action>\", `can't read the shortcut ${JSON.stringify(shortcut)}`, error)\n return []\n }\n }\n\n /** A part of the action's own (its vocabulary adds them to the item's, which TypeScript knows). */\n private actionPart(name: typeof SHORTCUT): string {\n return this.partForName(name as never)\n }\n}\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIAction extends E.AttributeValues<typeof itemVocabulary> {}\n\n/**\n * What `<ui-action>` draws and runs: an action of a program, read live.\n * - Spell's `core.menuOf()` gives a menu's items in this shape.\n */\nexport type ActionToDraw = {\n /** what people read, e.g. `Undo Turn Card` */\n readonly title: string\n /** an icon's name, e.g. `rotate` */\n readonly icon?: string\n /** its keys, as a template writes them, e.g. `mod+T` */\n readonly shortcut?: string\n /** can it run now? Greyed while not. */\n readonly isEnabled: boolean\n /** is it on now? Ticked while so. */\n readonly isSelected: boolean\n /** run it; `way`: how the person ran it */\n run(way?: \"click\" | \"key\" | \"menu\"): unknown\n}\n\n////////////////\n// ## Constants\n////////////////\n\n/** Its attribute that shows its icon alone. */\nconst ICON_ONLY = \"icon-only\"\n\n/** Its attributes whose unset value is its action's (`unsetValueOf()`). */\nconst LABEL = \"label\"\nconst ICON = \"icon\"\n\n/** Class word and part of the key caps' box. */\nconst SHORTCUT = \"shortcut\"\n\n/** Between two key caps in a tooltip, off a Mac: `Ctrl+Z`. */\nconst KEY_JOIN = \"+\"\n","/**\n * The action family: defines `<ui-action>` and exports its component, `UIAction`.\n * - SIDE EFFECT: importing it defines the tag.\n * `UIAction` imports the item family first, which defines `<ui-item>`: an action extends the item.\n * - Also the library's `spell/ui/ui-action` entry.\n */\n\nimport { UIAction } from \"./UIAction\"\n\nUIAction.define()\n\nexport { UIAction, type ActionToDraw } from \"./UIAction\"\n"],"mappings":"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"}
@@ -0,0 +1,5 @@
1
+ // src/components/ui-parts/ui-actions.editor.html?raw
2
+ var e = "<!-- <ui-actions>'s property editor layout: move, pair (<ui-fields>) or leave out (data-omit) its properties. How: Spell UI's AGENTS.md, \"Property editor layouts\". -->\n<ui-property-editor schema=\"ui-actions\" data-omit=\"\"></ui-property-editor>\n";
3
+ export { e as default };
4
+
5
+ //# sourceMappingURL=ui-actions.editor-Buc3N2ik.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-actions.editor-Buc3N2ik.js","names":["ui_actions_editor_default"],"sources":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ // src/components/ui-ad/ui-ad.editor.html?raw
2
+ var e = "<!-- <ui-ad>'s property editor layout: move, pair (<ui-fields>) or leave out (data-omit) its properties. How: Spell UI's AGENTS.md, \"Property editor layouts\". -->\n<ui-property-editor schema=\"ui-ad\" data-omit=\"\">\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"unit\"></ui-property>\n <ui-property name=\"test\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Layout\" data-group=\"layout\">\n <ui-property name=\"align\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
3
+ export { e as default };
4
+
5
+ //# sourceMappingURL=ui-ad.editor-BHTDuSii.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-ad.editor-BHTDuSii.js","names":["ui_ad_editor_default"],"sources":[],"mappings":""}
package/dist/ui-ad.js CHANGED
@@ -1,7 +1,7 @@
1
- import "./rolldown-runtime-CYGlBXrH.js";
2
- import { Bt as e, Ht as t, Lt as n, Rt as r, UIComponent as i, Ut as a, proto as o, protoMerged as s, zt as c } from "./core.js";
1
+ import "./rolldown-runtime-c6e9CmGy.js";
2
+ import { Gt as e, Jt as t, Kt as n, UIComponent as r, Ut as i, Wt as a, Yt as o, proto as s, protoMerged as c } from "./core.js";
3
3
  import { className as l, effect as u, getOwner as d, readShallow as f, setAttribute as p, template as m } from "@solidjs/web";
4
- //#region src/components/ui-ad/UIAd.en.ts
4
+ // src/components/ui-ad/UIAd.en.ts
5
5
  var h = {
6
6
  tag: "ui-ad",
7
7
  icon: "bullhorn",
@@ -17,6 +17,7 @@ var h = {
17
17
  ],
18
18
  skeleton: "18 x 15",
19
19
  noun: "ad",
20
+ partOfSpeech: "property",
20
21
  description: "An ad displays third-party promotional content.",
21
22
  attributes: [
22
23
  {
@@ -84,7 +85,7 @@ var h = {
84
85
  text: "Ad",
85
86
  description: "What a bare `test` ad says."
86
87
  }]
87
- }, g = "@layer ui.components.ad.types{:host{display:contents}.ui.ad{--_ui-ad-margin:var(--ui-ad-margin,1em 0);--_ui-ad-test-background:var(--ui-ad-test-background,oklch(40% 0 0));--_ui-ad-test-color:var(--ui-ad-test-color,var(--ui-ink-on-dark));--_ui-ad-test-font-size:var(--ui-ad-test-font-size,1em);--_ui-ad-test-mobile-font-size:var(--ui-ad-test-mobile-font-size,.85714em);box-sizing:border-box;margin:var(--_ui-ad-margin);display:block;overflow:hidden}:host(:first-child)>.ui.ad,.ui.ad:first-child,:host(:last-child)>.ui.ad,.ui.ad:last-child{margin:0}:host(:not(:first-child,:last-child))>.ui.ad{margin:var(--_ui-ad-margin)}.ui.ad ::slotted(iframe),.ui.ad iframe{border:none;margin:0;padding:0;overflow:hidden}}@layer ui.components.ad.content;@layer ui.components.ad.variations{.ui[class*=medium\\ rectangle].ad{width:300px;height:250px}.ui[class*=large\\ rectangle].ad{width:336px;height:280px}.ui[class*=half\\ page].ad{width:300px;height:600px}.ui[class*=small\\ rectangle].ad{width:180px;height:150px}.ui[class*=vertical\\ rectangle].ad{width:240px;height:400px}.ui.square.ad{width:250px;height:250px}.ui[class*=small\\ square].ad{width:200px;height:200px}.ui.button.ad{width:120px;height:90px}.ui[class*=square\\ button].ad{width:125px;height:125px}.ui[class*=small\\ button].ad{width:120px;height:60px}.ui.skyscraper.ad{width:120px;height:600px}.ui[class*=wide\\ skyscraper].ad{width:160px}.ui.banner.ad{width:468px;height:60px}.ui[class*=vertical\\ banner].ad{width:120px;height:240px}.ui[class*=top\\ banner].ad{width:930px;height:180px}.ui[class*=half\\ banner].ad{width:234px;height:60px}.ui.leaderboard.ad{width:728px;height:90px}.ui[class*=large\\ leaderboard].ad{width:970px;height:90px}.ui.billboard.ad{width:970px;height:250px}.ui.panorama.ad{width:980px;height:120px}.ui.netboard.ad{width:580px;height:400px}.ui[class*=\"large mobile banner\"].ad{width:320px;height:100px}.ui[class*=mobile\\ leaderboard].ad{width:320px;height:50px}.ui.mobile.ad{display:none}@media (width<768px){.ui.mobile.ad{display:block}}.ui.centered.ad{margin-left:auto;margin-right:auto}.ui.test.ad{background:var(--_ui-ad-test-background);position:relative}.ui.test.ad:after{content:attr(data-text);width:100%;color:var(--_ui-ad-test-color);font-family:var(--ui-font-family);font-size:var(--_ui-ad-test-font-size);font-weight:var(--ui-font-weight-bold);text-align:center;position:absolute;top:50%;left:50%;transform:translate(-50%)translateY(-50%)}.ui.test.ad:not([data-text]):after{content:\"Ad\"}.ui.mobile.test.ad:after{font-size:var(--_ui-ad-test-mobile-font-size)}}@layer ui.components.ad.states;", _ = /* @__PURE__ */ m("<div><slot>"), v, y, b, x, S = class _UIAd extends (b = i, y = [o], v = [s], b) {
88
+ }, g = "@layer ui.components.ad.types{:host{display:contents}.ui.ad{--_ui-ad-margin:var(--ui-ad-margin,1em 0);--_ui-ad-test-background:var(--ui-ad-test-background,oklch(40% 0 0));--_ui-ad-test-color:var(--ui-ad-test-color,var(--ui-ink-on-dark));--_ui-ad-test-font-size:var(--ui-ad-test-font-size,1em);--_ui-ad-test-mobile-font-size:var(--ui-ad-test-mobile-font-size,.85714em);box-sizing:border-box;margin:var(--_ui-ad-margin);display:block;overflow:hidden}:host(:first-child)>.ui.ad,.ui.ad:first-child,:host(:last-child)>.ui.ad,.ui.ad:last-child{margin:0}:host(:not(:first-child,:last-child))>.ui.ad{margin:var(--_ui-ad-margin)}.ui.ad ::slotted(iframe),.ui.ad iframe{border:none;margin:0;padding:0;overflow:hidden}}@layer ui.components.ad.content;@layer ui.components.ad.variations{.ui[class*=medium\\ rectangle].ad{width:300px;height:250px}.ui[class*=large\\ rectangle].ad{width:336px;height:280px}.ui[class*=half\\ page].ad{width:300px;height:600px}.ui[class*=small\\ rectangle].ad{width:180px;height:150px}.ui[class*=vertical\\ rectangle].ad{width:240px;height:400px}.ui.square.ad{width:250px;height:250px}.ui[class*=small\\ square].ad{width:200px;height:200px}.ui.button.ad{width:120px;height:90px}.ui[class*=square\\ button].ad{width:125px;height:125px}.ui[class*=small\\ button].ad{width:120px;height:60px}.ui.skyscraper.ad{width:120px;height:600px}.ui[class*=wide\\ skyscraper].ad{width:160px}.ui.banner.ad{width:468px;height:60px}.ui[class*=vertical\\ banner].ad{width:120px;height:240px}.ui[class*=top\\ banner].ad{width:930px;height:180px}.ui[class*=half\\ banner].ad{width:234px;height:60px}.ui.leaderboard.ad{width:728px;height:90px}.ui[class*=large\\ leaderboard].ad{width:970px;height:90px}.ui.billboard.ad{width:970px;height:250px}.ui.panorama.ad{width:980px;height:120px}.ui.netboard.ad{width:580px;height:400px}.ui[class*=\"large mobile banner\"].ad{width:320px;height:100px}.ui[class*=mobile\\ leaderboard].ad{width:320px;height:50px}.ui.mobile.ad{display:none}@media (width<768px){.ui.mobile.ad{display:block}}.ui.centered.ad{margin-left:auto;margin-right:auto}.ui.test.ad{background:var(--_ui-ad-test-background);position:relative}.ui.test.ad:after{content:attr(data-text);width:100%;color:var(--_ui-ad-test-color);font-family:var(--ui-font-family);font-size:var(--_ui-ad-test-font-size);font-weight:var(--ui-font-weight-bold);text-align:center;position:absolute;top:50%;left:50%;transform:translate(-50%)translateY(-50%)}.ui.test.ad:not([data-text]):after{content:\"Ad\"}.ui.mobile.test.ad:after{font-size:var(--_ui-ad-test-mobile-font-size)}}@layer ui.components.ad.states;", _ = /* @__PURE__ */ m("<div><slot>"), v, y, b, x, S = class _UIAd extends (b = r, y = [s], v = [c], b) {
88
89
  get extraClass() {
89
90
  return this.isTest ? w : void 0;
90
91
  }
@@ -103,15 +104,13 @@ var h = {
103
104
  return this.test !== void 0;
104
105
  }
105
106
  };
106
- x = c(b), n(x, 13, "vocabulary", y, S), n(x, 13, "elementSetup", v, S), r(x, S), e(S, "UIAd"), t(S, "vocabulary", a(x, 8, S, h)), a(x, 11, S), t(S, "elementSetup", a(x, 12, S, {
107
+ x = e(b), i(x, 13, "vocabulary", y, S), i(x, 13, "elementSetup", v, S), a(x, S), n(S, "UIAd"), t(S, "vocabulary", o(x, 8, S, h)), o(x, 11, S), t(S, "elementSetup", o(x, 12, S, {
107
108
  styleSheets: { ad: g },
108
109
  delegatesFocus: !1
109
- })), a(x, 15, S);
110
+ })), o(x, 15, S);
110
111
  var C = S, w = "test";
111
- //#endregion
112
- //#region src/components/ui-ad/index.ts
112
+ // src/components/ui-ad/index.ts
113
113
  C.define();
114
- //#endregion
115
114
  export { C as UIAd };
116
115
 
117
116
  //# sourceMappingURL=ui-ad.js.map
package/dist/ui-ad.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ui-ad.js","names":["this","part={this.partForName(\"ad\")}","data-text={this.isTest ? this.test || this.translationForKey(\"adTest\") : void 0}","<div\n class={this.rootClass}\n part={this.partForName(\"ad\")}\n data-text={this.isTest ? this.test || this.translationForKey(\"adTest\") : void 0}\n >\n <slot />\n </div>","E.UIComponent","E.proto","E.protoMerged","_$getOwner","_$readShallow","_$setAttribute","__name","adCSS","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","__decoratorStart","adVocabulary","UIAd_default","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIAd","UIComponent","proto","protoMerged","TEST","_self$","_el$","_el$2","getOwner","effect","readShallow","className","_p$","t","setAttribute","a","UIAd"],"sources":["../src/components/ui-ad/UIAd.en.ts","../src/components/ui-ad/UIAd.css?inline","../src/components/ui-ad/UIAd.tsx","../src/components/ui-ad/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-ad>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and texts.\n * The shape is `ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The attributes become Fomantic's class words, in Fomantic's order (`ClassBuilder`):\n * `<ui-ad unit=\"medium rectangle\" align=\"center\">` => `ui medium rectangle centered ad`.\n * `UIAd.css` keys on those phrases (`[class*=\"medium rectangle\"]`).\n * - `unit` is the IAB unit, written as its bare words, hence `kind: \"valueOnly\"` (as the menu's `position`).\n * NOT `size`: that's the generic `mini` … `massive`, and `medium rectangle` would read as one.\n * - `test` is a string: present => Fomantic's `test` class (a grey placeholder saying \"Ad\"); a value is the text\n * to show instead (Fomantic's `data-text`).\n */\n\nimport type { ComponentVocabulary } from \"spell/ui/vocabulary\"\n\n/****************\n * ### `adVocabulary`\n * The names of `<ui-ad>`, an ad slot: `<div class=\"ui … ad\" part=\"ad\"><slot></slot></div>`, sized to an IAB unit.\n ****************/\nexport const adVocabulary = {\n tag: \"ui-ad\",\n icon: \"bullhorn\",\n topics: [\"media\", \"layout\", \"views\"],\n aka: [\"advertisement\", \"banner ad\", \"ad slot\"],\n skeleton: \"18 x 15\",\n noun: \"ad\",\n description: \"An ad displays third-party promotional content.\",\n attributes: [\n {\n name: \"unit\",\n group: \"appearance\",\n kind: \"valueOnly\",\n values: [\n \"medium rectangle\",\n \"large rectangle\",\n \"vertical rectangle\",\n \"small rectangle\",\n \"half page\",\n \"square\",\n \"small square\",\n \"button\",\n \"square button\",\n \"small button\",\n \"skyscraper\",\n \"wide skyscraper\",\n \"leaderboard\",\n \"large leaderboard\",\n \"mobile leaderboard\",\n \"billboard\",\n \"panorama\",\n \"netboard\",\n \"banner\",\n \"vertical banner\",\n \"top banner\",\n \"half banner\",\n \"large mobile banner\"\n ],\n description:\n \"IAB unit, e.g. `medium rectangle` (300 x 250), `leaderboard` (728 x 90). Mobile units (`mobile leaderboard`, \" +\n \"`large mobile banner`) show only on phone-sized viewports.\"\n },\n {\n name: \"align\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"center\"],\n classes: { center: \"centered\" },\n replaces: [{ from: \"centered\", value: \"center\" }],\n description: \"`center`: centred in its container. Its old name was `centered`.\"\n },\n {\n name: \"test\",\n group: \"appearance\",\n kind: \"string\",\n description: 'A placeholder: a grey box saying \"Ad\" (bare `test`), or the given text (`test=\"Your ad here\"`).'\n }\n ],\n events: [],\n slots: [{ name: \"\", description: \"The ad: usually an `<iframe>` or an image link.\" }],\n parts: [{ name: \"ad\", description: \"The ad box.\" }],\n states: [],\n texts: [{ key: \"adTest\", text: \"Ad\", description: \"What a bare `test` ad says.\" }]\n} as const satisfies ComponentVocabulary\n","/*\n * The style sheet of `<ui-ad>`: a port of Fomantic's `ad.less` + `ad.variables`.\n * - It styles the component's shadow DOM, in Fomantic's class names:\n * `<div class=\"ui [unit] [centered] ad [test]\" part=\"ad\" [data-text]><slot></slot></div>`;\n * `data-text` is the `test` text (the translated \"Ad\" when bare), drawn by `::after`, as in Fomantic.\n * - The DOM element is `display: contents` (`:host`): the inner box is the fixed-size box.\n *\n * - Unit sizes are the IAB's, in `px`, on purpose:\n * an ad unit is a pixel contract with the ad server, not a typographic size.\n * - Mobile units show only on phone-sized VIEWPORTS (`@media (--ui-mobile)`), as in Fomantic:\n * a mobile unit is served for the device, not for its container's width.\n * - An ad is a `<div>`, not an `<aside>`: several `<aside>` landmarks with one name break axe's `landmark-unique`;\n * a page that wants a landmark wraps its ad column in one.\n *\n * - The public tokens (`--ui-ad-*`) are NEVER declared here.\n * The token block gives each a private alias, `--_ui-ad-margin: var(--ui-ad-margin, 1em 0)`,\n * and every rule reads the alias. So a value set on `:root`, an ancestor, the element,\n * `::part(ad)` or in the app's style sheet reaches the box (`notes/theming.md`, \"Component tokens\").\n */\n\n@layer ui.components.ad.types, ui.components.ad.content, ui.components.ad.variations, ui.components.ad.states;\n\n/* Breakpoints (`@custom-media`), inlined at build time. */\n@import \"../../styles/media.css\";\n\n/*******************************\n Advertisement\n*******************************/\n\n@layer ui.components.ad.types {\n /* The DOM element: no box of its own; the inner box is the ad. */\n :host {\n display: contents;\n }\n\n /* Tokens: one per `ad.variables` entry, each the private alias of its public token. */\n .ui.ad {\n --_ui-ad-margin: var(--ui-ad-margin, 1em 0);\n --_ui-ad-test-background: var(--ui-ad-test-background, oklch(0.4 0 0));\n --_ui-ad-test-color: var(--ui-ad-test-color, var(--ui-ink-on-dark));\n --_ui-ad-test-font-size: var(--ui-ad-test-font-size, 1em);\n --_ui-ad-test-mobile-font-size: var(--ui-ad-test-mobile-font-size, 0.85714em);\n }\n\n .ui.ad {\n display: block;\n box-sizing: border-box;\n margin: var(--_ui-ad-margin);\n overflow: hidden;\n }\n :host(:first-child) > .ui.ad,\n .ui.ad:first-child,\n :host(:last-child) > .ui.ad,\n .ui.ad:last-child {\n margin: 0;\n }\n /*\n * In the shadow root, the box is ALWAYS its root's first and last child,\n * so the two rules above would zero every element's margin:\n * an element between siblings gets its margin back (static class-grammar markup keeps them).\n */\n :host(:not(:first-child, :last-child)) > .ui.ad {\n margin: var(--_ui-ad-margin);\n }\n .ui.ad ::slotted(iframe),\n .ui.ad iframe {\n margin: 0;\n padding: 0;\n overflow: hidden;\n border: none;\n }\n}\n\n/*******************************\n Units\n*******************************/\n\n@layer ui.components.ad.variations {\n /* Rectangles */\n .ui[class*=\"medium rectangle\"].ad {\n width: 300px;\n height: 250px;\n }\n .ui[class*=\"large rectangle\"].ad {\n width: 336px;\n height: 280px;\n }\n .ui[class*=\"half page\"].ad {\n width: 300px;\n height: 600px;\n }\n .ui[class*=\"small rectangle\"].ad {\n width: 180px;\n height: 150px;\n }\n .ui[class*=\"vertical rectangle\"].ad {\n width: 240px;\n height: 400px;\n }\n\n /* Squares */\n .ui.square.ad {\n width: 250px;\n height: 250px;\n }\n .ui[class*=\"small square\"].ad {\n width: 200px;\n height: 200px;\n }\n\n /* Buttons */\n .ui.button.ad {\n width: 120px;\n height: 90px;\n }\n .ui[class*=\"square button\"].ad {\n width: 125px;\n height: 125px;\n }\n .ui[class*=\"small button\"].ad {\n width: 120px;\n height: 60px;\n }\n\n /* Skyscrapers */\n .ui.skyscraper.ad {\n width: 120px;\n height: 600px;\n }\n .ui[class*=\"wide skyscraper\"].ad {\n width: 160px;\n }\n\n /* Banners */\n .ui.banner.ad {\n width: 468px;\n height: 60px;\n }\n .ui[class*=\"vertical banner\"].ad {\n width: 120px;\n height: 240px;\n }\n .ui[class*=\"top banner\"].ad {\n width: 930px;\n height: 180px;\n }\n .ui[class*=\"half banner\"].ad {\n width: 234px;\n height: 60px;\n }\n\n /* Boards */\n .ui.leaderboard.ad {\n width: 728px;\n height: 90px;\n }\n .ui[class*=\"large leaderboard\"].ad {\n width: 970px;\n height: 90px;\n }\n .ui.billboard.ad {\n width: 970px;\n height: 250px;\n }\n .ui.panorama.ad {\n width: 980px;\n height: 120px;\n }\n .ui.netboard.ad {\n width: 580px;\n height: 400px;\n }\n\n /* Mobile units: phone-sized viewports only. */\n .ui[class*=\"large mobile banner\"].ad {\n width: 320px;\n height: 100px;\n }\n .ui[class*=\"mobile leaderboard\"].ad {\n width: 320px;\n height: 50px;\n }\n .ui.mobile.ad {\n display: none;\n }\n @media (--ui-mobile) {\n .ui.mobile.ad {\n display: block;\n }\n }\n\n /* Centered */\n .ui.centered.ad {\n margin-right: auto;\n margin-left: auto;\n }\n\n /* Test: a grey placeholder with its text in the middle. */\n .ui.test.ad {\n position: relative;\n background: var(--_ui-ad-test-background);\n }\n .ui.test.ad::after {\n content: attr(data-text);\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n color: var(--_ui-ad-test-color);\n font-family: var(--ui-font-family);\n font-size: var(--_ui-ad-test-font-size);\n font-weight: var(--ui-font-weight-bold);\n text-align: center;\n transform: translateX(-50%) translateY(-50%);\n }\n /* Static markup without `data-text`: Fomantic's default text. */\n .ui.test.ad:not([data-text])::after {\n content: \"Ad\";\n }\n .ui.mobile.test.ad::after {\n font-size: var(--_ui-ad-test-mobile-font-size);\n }\n}\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { adVocabulary } from \"./UIAd.en\"\n\nimport adCSS from \"./UIAd.css?inline\"\n\n/****************\n * ### `UIAd`\n * The component behind `<ui-ad>`: a box that holds an ad, sized to its IAB `unit`.\n *\n * - Its shadow DOM is one box, `<div class=\"ui … ad\" part=\"ad\">`, around a slot for the ad.\n * - `test`: adds Fomantic's `test` class and `data-text` on the box:\n * the given text, or the translated \"Ad\" (`adTest`) when bare.\n * `UIAd.css` draws it with `::after`, which assistive tech reads as the box's text.\n * - No role: see `UIAd.css` (why not an `<aside>`).\n ****************/\nexport class UIAd extends E.UIComponent<typeof adVocabulary> {\n @E.proto static vocabulary = adVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { ad: adCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n protected get extraClass(): string | undefined {\n return this.isTest ? TEST : undefined\n }\n\n render(): JSX.Element {\n return (\n <div\n class={this.rootClass}\n part={this.partForName(\"ad\")}\n data-text={this.isTest ? this.test || this.translationForKey(\"adTest\") : undefined}\n >\n <slot />\n </div>\n )\n }\n\n /** Is `test` there, bare or with text? */\n private get isTest(): boolean {\n return this.test !== undefined\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIAd extends E.AttributeValues<typeof adVocabulary> {}\n\n/** Fomantic's placeholder class word, on the box of a `test` ad. */\nconst TEST = \"test\"\n","/**\n * The ad family: defines `<ui-ad>` and exports its component, `UIAd`.\n * - SIDE EFFECT: importing it defines the tag.\n * - Also the library's `spell/ui/ui-ad` entry (its size is in `notes/report.md`).\n */\n\nimport { UIAd } from \"./UIAd\"\n\nUIAd.define()\n\nexport { UIAd }\n"],"mappings":";;;;AAmBA,IAAakB,IAAe;CAC1B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAS;EAAU;CAAO;CACnC,KAAK;EAAC;EAAiB;EAAa;CAAS;CAC7C,UAAU;CACV,MAAM;CACN,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ;IACN;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF;GACA,aACE;EAEJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ,CAAC,QAAQ;GACjB,SAAS,EAAE,QAAQ,WAAW;GAC9B,UAAU,CAAC;IAAE,MAAM;IAAY,OAAO;GAAS,CAAC;GAChD,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;CACF;CACA,QAAQ,CAAC;CACT,OAAO,CAAC;EAAE,MAAM;EAAI,aAAa;CAAmD,CAAC;CACrF,OAAO,CAAC;EAAE,MAAM;EAAM,aAAa;CAAc,CAAC;CAClD,QAAQ,CAAC;CACT,OAAO,CAAC;EAAE,KAAK;EAAU,MAAM;EAAM,aAAa;CAA8B,CAAC;AACnF,4kFElFAG,GAAAC,GAAAC,GAAAC,GAiBaC,IAAN,MAAM,eAAa,IAAArB,GACxB,IAAA,CAACC,CAAE,GACH,IAAA,CAACC,CAAE,GAFqBiB,EAAA,CAAmC;CAO3D,IAAc,aAAiC;EAC7C,OAAO,KAAK,SAASM,IAAO,KAAA;CAC9B;CAEA,SAAsB;EACpB,IAAAC,IAAA;EACE,IAAAC,IAAAX,EAAC,GAKCY,IAAAD,EAAA;EANJ,OAMU,EAAA,UAAAxB,EAAA,GAJN2B;GAAOlC,GAAAA,EAAAA,EAAK,SAAA;GACZC,GAAMD,EAAK,YAAY,IAAI;GAC3BE,GAAWF,EAAK,SAASA,EAAK,QAAQA,EAAK,kBAAkB,QAAQ,IAAI,KAAA;EAF7D,KAAZ,EAAA,GAAA,MAAA,QAAA,MAAA;GAEA,AAFYoC,EAAAL,GAAA,GAAAM,GAAA,CAAA,GACZC,MAAAD,GAAA,KAAA5B,EAAAsB,GAAA,QAAAO,CAA2B,GAC3BE,MAAAH,GAAA,KAAA5B,EAAAsB,GAAA,aAAAS,CAAyE;EAF7D,CAAA,GADdrC;CAQJ;CAGA,IAAY,SAAkB;EAC5B,OAAO,KAAK,SAAS,KAAA;CACvB;AACF;AA3BO,IAAAc,EAAAM,CAAA,GACIT,EAAAU,GAAA,IAAO,cAAhBF,GADWG,CAAA,GAEIX,EAAAU,GAAA,IAAO,gBAAtBH,GAFWI,CAAA,GAANV,EAAAS,GAAMC,CAAA,GAAgDf,EAAAe,GAAA,MAAA,GAClDZ,EADEY,GACK,cAAaT,EAApBQ,GAAA,GADEC,GACkBP,CAAA,CAAA,GAApBF,EAAAQ,GAAA,IADEC,CAAA,GAEIZ,EAFJY,GAEW,gBAAeT,EAAtBQ,GAAA,IAFJC,GAE0B;CACnC,aAAa,EAAE,IAAId,EAAM;CACzB,gBAAgB;AAClB,CAAA,CAAA,GAHeK,EAAAQ,GAAA,IAFJC,CAAA;AAAN,IAAMgB,IAANhB,GAiCDI,IAAO;;;AC1CbY,EAAK,OAAO"}
1
+ {"version":3,"file":"ui-ad.js","names":["this","part={this.partForName(\"ad\")}","data-text={this.isTest ? this.test || this.translationForKey(\"adTest\") : void 0}","<div\n class={this.rootClass}\n part={this.partForName(\"ad\")}\n data-text={this.isTest ? this.test || this.translationForKey(\"adTest\") : void 0}\n >\n <slot />\n </div>","E.UIComponent","E.proto","E.protoMerged","_$getOwner","_$setAttribute","__name","adCSS","__decoratorStart","__publicField","__name$1","__decorateElement","__decoratorMetadata","__runInitializers","adVocabulary","UIAd_default","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIAd","UIComponent","proto","protoMerged","TEST","_self$","_el$","_el$2","getOwner","effect","readShallow","className","_p$","t","setAttribute","a","UIAd"],"sources":["../src/components/ui-ad/UIAd.en.ts","../src/components/ui-ad/UIAd.tsx","../src/components/ui-ad/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-ad>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts and texts.\n * The shape is `ComponentVocabulary` (`spell/ui/vocabulary`).\n * - The attributes become Fomantic's class words, in Fomantic's order (`ClassBuilder`):\n * `<ui-ad unit=\"medium rectangle\" align=\"center\">` => `ui medium rectangle centered ad`.\n * `UIAd.css` keys on those phrases (`[class*=\"medium rectangle\"]`).\n * - `unit` is the IAB unit, written as its bare words, hence `kind: \"valueOnly\"` (as the menu's `position`).\n * NOT `size`: that's the generic `mini` … `massive`, and `medium rectangle` would read as one.\n * - `test` is a string: present => Fomantic's `test` class (a grey placeholder saying \"Ad\"); a value is the text\n * to show instead (Fomantic's `data-text`).\n */\n\nimport type { ComponentVocabulary } from \"spell/ui/vocabulary\"\n\n/****************\n * ### `adVocabulary`\n * The names of `<ui-ad>`, an ad slot: `<div class=\"ui … ad\" part=\"ad\"><slot></slot></div>`, sized to an IAB unit.\n ****************/\nexport const adVocabulary = {\n tag: \"ui-ad\",\n icon: \"bullhorn\",\n topics: [\"media\", \"layout\", \"views\"],\n aka: [\"advertisement\", \"banner ad\", \"ad slot\"],\n skeleton: \"18 x 15\",\n noun: \"ad\",\n partOfSpeech: \"property\",\n description: \"An ad displays third-party promotional content.\",\n attributes: [\n {\n name: \"unit\",\n group: \"appearance\",\n kind: \"valueOnly\",\n values: [\n \"medium rectangle\",\n \"large rectangle\",\n \"vertical rectangle\",\n \"small rectangle\",\n \"half page\",\n \"square\",\n \"small square\",\n \"button\",\n \"square button\",\n \"small button\",\n \"skyscraper\",\n \"wide skyscraper\",\n \"leaderboard\",\n \"large leaderboard\",\n \"mobile leaderboard\",\n \"billboard\",\n \"panorama\",\n \"netboard\",\n \"banner\",\n \"vertical banner\",\n \"top banner\",\n \"half banner\",\n \"large mobile banner\"\n ],\n description:\n \"IAB unit, e.g. `medium rectangle` (300 x 250), `leaderboard` (728 x 90). Mobile units (`mobile leaderboard`, \" +\n \"`large mobile banner`) show only on phone-sized viewports.\"\n },\n {\n name: \"align\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"center\"],\n classes: { center: \"centered\" },\n replaces: [{ from: \"centered\", value: \"center\" }],\n description: \"`center`: centred in its container. Its old name was `centered`.\"\n },\n {\n name: \"test\",\n group: \"appearance\",\n kind: \"string\",\n description: 'A placeholder: a grey box saying \"Ad\" (bare `test`), or the given text (`test=\"Your ad here\"`).'\n }\n ],\n events: [],\n slots: [{ name: \"\", description: \"The ad: usually an `<iframe>` or an image link.\" }],\n parts: [{ name: \"ad\", description: \"The ad box.\" }],\n states: [],\n texts: [{ key: \"adTest\", text: \"Ad\", description: \"What a bare `test` ad says.\" }]\n} as const satisfies ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\nimport { adVocabulary } from \"./UIAd.en\"\n\nimport adCSS from \"./UIAd.css?inline\"\n\n/****************\n * ### `UIAd`\n * The component behind `<ui-ad>`: a box that holds an ad, sized to its IAB `unit`.\n *\n * - Its shadow DOM is one box, `<div class=\"ui … ad\" part=\"ad\">`, around a slot for the ad.\n * - `test`: adds Fomantic's `test` class and `data-text` on the box:\n * the given text, or the translated \"Ad\" (`adTest`) when bare.\n * `UIAd.css` draws it with `::after`, which assistive tech reads as the box's text.\n * - No role: see `UIAd.css` (why not an `<aside>`).\n ****************/\nexport class UIAd extends E.UIComponent<typeof adVocabulary> {\n @E.proto static vocabulary = adVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { ad: adCSS },\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n protected get extraClass(): string | undefined {\n return this.isTest ? TEST : undefined\n }\n\n render(): JSX.Element {\n return (\n <div\n class={this.rootClass}\n part={this.partForName(\"ad\")}\n data-text={this.isTest ? this.test || this.translationForKey(\"adTest\") : undefined}\n >\n <slot />\n </div>\n )\n }\n\n /** Is `test` there, bare or with text? */\n private get isTest(): boolean {\n return this.test !== undefined\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIAd extends E.AttributeValues<typeof adVocabulary> {}\n\n/** Fomantic's placeholder class word, on the box of a `test` ad. */\nconst TEST = \"test\"\n","/**\n * The ad family: defines `<ui-ad>` and exports its component, `UIAd`.\n * - SIDE EFFECT: importing it defines the tag.\n * - Also the library's `spell/ui/ui-ad` entry (its size is in `notes/report.md`).\n */\n\nimport { UIAd } from \"./UIAd\"\n\nUIAd.define()\n\nexport { UIAd }\n"],"mappings":";;;;AAmBA,IAAaiB,IAAe;CAC1B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAS;EAAU;CAAO;CACnC,KAAK;EAAC;EAAiB;EAAa;CAAS;CAC7C,UAAU;CACV,MAAM;CACN,cAAc;CACd,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ;IACN;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;GACF;GACA,aACE;EAEJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ,CAAC,QAAQ;GACjB,SAAS,EAAE,QAAQ,WAAW;GAC9B,UAAU,CAAC;IAAE,MAAM;IAAY,OAAO;GAAS,CAAC;GAChD,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;CACF;CACA,QAAQ,CAAC;CACT,OAAO,CAAC;EAAE,MAAM;EAAI,aAAa;CAAmD,CAAC;CACrF,OAAO,CAAC;EAAE,MAAM;EAAM,aAAa;CAAc,CAAC;CAClD,QAAQ,CAAC;CACT,OAAO,CAAC;EAAE,KAAK;EAAU,MAAM;EAAM,aAAa;CAA8B,CAAC;AACnF,G,ykFCnFAG,GAAAC,GAAAC,GAAAC,GAiBaC,IAAN,MAAM,eAAa,IAAApB,GACxB,IAAA,CAACC,CAAE,GACH,IAAA,CAACC,CAAE,GAFqBgB,EAAA,CAAmC;CAO3D,IAAc,aAAiC;EAC7C,OAAO,KAAK,SAASM,IAAO,KAAA;CAC9B;CAEA,SAAsB;EACpB,IAAAC,IAAA;EACE,IAAAC,IAAAX,EAAC,GAKCY,IAAAD,EAAA;EANJ,OAMU,EAAA,UAAAvB,EAAA,GAJN0B,S;GAAOjC,GAAAA,EAAAA,EAAK,SAAA;GACZC,GAAMD,EAAK,YAAY,IAAI;GAC3BE,GAAWF,EAAK,SAASA,EAAK,QAAQA,EAAK,kBAAkB,QAAQ,IAAI,KAAA;EAF7D,KAAZ,EAAA,GAAA,MAAA,QAAA,MAAA;GAEA,AAFYmC,EAAAL,GAAA,GAAAM,GAAA,CAAA,GACZC,MAAAD,GAAA,KAAA5B,EAAAsB,GAAA,QAAAO,CAA2B,GAC3BE,MAAAH,GAAA,KAAA5B,EAAAsB,GAAA,aAAAS,CAAyE;EAF7D,CAAA,GADdpC;CAQJ;CAGA,IAAY,SAAkB;EAC5B,OAAO,KAAK,SAAS,KAAA;CACvB;AACF;AA3BO,IAAAQ,EAAAW,CAAA,GACIR,EAAAS,GAAA,IAAO,cAAhBF,GADWG,CAAA,GAEIV,EAAAS,GAAA,IAAO,gBAAtBH,GAFWI,CAAA,GAANT,EAAAQ,GAAMC,CAAA,GAAgDf,EAAAe,GAAA,MAAA,GAClDZ,EADEY,GACK,cAAaR,EAApBO,GAAA,GADEC,GACkBP,CAAA,CAAA,GAApBD,EAAAO,GAAA,IADEC,CAAA,GAEIZ,EAFJY,GAEW,gBAAeR,EAAtBO,GAAA,IAFJC,GAE0B;CACnC,aAAa,EAAE,IAAId,EAAM;CACzB,gBAAgB;AAClB,CAAA,CAAA,GAHeM,EAAAO,GAAA,IAFJC,CAAA;AAAN,IAAMgB,IAANhB,GAiCDI,IAAO;;AC1CbY,EAAK,OAAO"}
@@ -0,0 +1,5 @@
1
+ // src/components/ui-app-menu/ui-app-menu.editor.html?raw
2
+ var e = "<!-- <ui-app-menu>'s property editor layout: move, pair (<ui-fields>) or leave out (data-omit) its properties. How: Spell UI's AGENTS.md, \"Property editor layouts\". -->\n<ui-property-editor schema=\"ui-app-menu\" data-omit=\"\">\n <ui-property-group label=\"Content\" data-group=\"content\">\n <ui-property name=\"icon\"></ui-property>\n <ui-property name=\"items\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Appearance\" data-group=\"appearance\">\n <ui-property name=\"size\"></ui-property>\n <ui-property name=\"color\"></ui-property>\n <ui-property name=\"inverted\"></ui-property>\n <ui-property name=\"appearance\"></ui-property>\n <ui-property name=\"pagination\"></ui-property>\n <ui-property name=\"labeled\"></ui-property>\n <ui-property name=\"wrap\"></ui-property>\n <ui-property name=\"icon-column\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Layout\" data-group=\"layout\">\n <ui-property name=\"position\"></ui-property>\n <ui-property name=\"direction\"></ui-property>\n <ui-property name=\"fluid\"></ui-property>\n <ui-property name=\"stackable\"></ui-property>\n <ui-property name=\"centered\"></ui-property>\n <ui-property name=\"wrapping\"></ui-property>\n <ui-property name=\"padding\"></ui-property>\n <ui-property name=\"attach-to\"></ui-property>\n <ui-property name=\"fixed\"></ui-property>\n <ui-property name=\"align\"></ui-property>\n <ui-property name=\"equal\"></ui-property>\n <ui-property name=\"shrinkable\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Form\" data-group=\"form\">\n <ui-property name=\"name\"></ui-property>\n <ui-property name=\"value\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Behaviour\" data-group=\"behaviour\">\n <ui-property name=\"choose\"></ui-property>\n <ui-property name=\"ticks\"></ui-property>\n <ui-property name=\"tabs\"></ui-property>\n <ui-property name=\"interactive\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
3
+ export { e as default };
4
+
5
+ //# sourceMappingURL=ui-app-menu.editor-DxPPnMUT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-app-menu.editor-DxPPnMUT.js","names":["ui_app_menu_editor_default"],"sources":[],"mappings":""}
@@ -0,0 +1,89 @@
1
+ import "./rolldown-runtime-c6e9CmGy.js";
2
+ import { Gt as e, Jt as t, Kt as n, Ut as r, Wt as i, Yt as a, proto as o, protoMerged as s } from "./core.js";
3
+ import { UIMenu as c, t as l } from "./ui-menu.js";
4
+ import { className as u, effect as d, getOwner as f, memo as p, readShallow as m, setAttribute as h, template as g } from "@solidjs/web";
5
+ // src/components/ui-app-menu/UIAppMenu.en.ts
6
+ var _ = {
7
+ ...l,
8
+ tag: "ui-app-menu",
9
+ icon: "window maximize outline",
10
+ snippet: "<ui-app-menu>\n <ui-item slot=\"start\">My App</ui-item>\n <ui-item>Home</ui-item>\n <ui-item slot=\"end\" icon=\"cog\"></ui-item>\n</ui-app-menu>",
11
+ topics: [
12
+ "menus",
13
+ "navigation",
14
+ "layout"
15
+ ],
16
+ aka: [
17
+ "app bar",
18
+ "top bar",
19
+ "title bar",
20
+ "header bar",
21
+ "navbar",
22
+ "masthead",
23
+ "window bar"
24
+ ],
25
+ skeleton: "inline 24 x 2.5",
26
+ description: "An app menu is an app's top bar, joined to the top of its window or page: a start section (a menu or sidebar button, then a title or breadcrumb), a middle that stays on the bar's centre, and an end section for buttons. It takes every `<ui-menu>` attribute.",
27
+ slots: [
28
+ {
29
+ name: "",
30
+ description: "The middle section, centred on the bar: `<ui-item>`s, a sub-menu, e.g. a page's modes or its tabs."
31
+ },
32
+ {
33
+ name: "start",
34
+ description: "The start section, at the bar's start: a menu or sidebar button first, then a title or breadcrumb."
35
+ },
36
+ {
37
+ name: "end",
38
+ description: "The end section, at the bar's end: buttons, e.g. settings and the person's menu."
39
+ },
40
+ ...l.slots.filter((e) => e.name !== "")
41
+ ],
42
+ parts: [
43
+ ...l.parts,
44
+ {
45
+ name: "start",
46
+ description: "The start section's box: it shares the room the middle leaves with the end."
47
+ },
48
+ {
49
+ name: "middle",
50
+ description: "The middle section's box, its content's width."
51
+ },
52
+ {
53
+ name: "end",
54
+ description: "The end section's box, what's in it pushed to the bar's end."
55
+ }
56
+ ]
57
+ }, v = "@layer ui.components.app-menu.types{.ui.header.menu>:is(.start,.middle,.end){align-items:stretch;min-width:max-content;display:flex}.ui.header.menu>:is(.start,.end){flex:1 1 0}.ui.header.menu>.middle{flex:none}.ui.header.menu>.end{justify-content:flex-end}.ui.header.menu>.end:after{content:\"\";flex:0 0 1.14286em}.ui.header.menu{--_ui-menu-divider-display:none;--_ui-menu-divider-first-display:none;--_ui-menu-divider-last-display:none;scrollbar-width:none;overflow:auto hidden}.ui.header.menu ::slotted(ui-button){--ui-button-padding-block:12px;--ui-button-tertiary-padding:8px}:host(:state(in-menu))>.item{padding-block:0}:host(:state(in-menu)[slot=end]:last-child)>.item{margin-inline-end:-1.14286em}}", y = /* @__PURE__ */ g("<div><slot>"), b, x, S, C, w = class _UIAppMenu extends (S = c, x = [o], b = [s], S) {
58
+ get extraClass() {
59
+ return E;
60
+ }
61
+ boxContent() {
62
+ let e = this;
63
+ return [
64
+ p(() => e.section(D)),
65
+ p(() => e.section(O)),
66
+ p(() => e.section(k))
67
+ ];
68
+ }
69
+ section(e) {
70
+ let t = e === O ? void 0 : this.slotForName(e), n = this;
71
+ var r = y(), i = r.firstChild;
72
+ return h(i, "name", t), i._$owner = f(), d(() => ({
73
+ e: m(e),
74
+ t: n.partForName(e)
75
+ }), ({ e, t }, n) => {
76
+ u(r, e, n?.e), t !== n?.t && h(r, "part", t);
77
+ }), r;
78
+ }
79
+ };
80
+ C = e(S), r(C, 13, "vocabulary", x, w), r(C, 13, "elementSetup", b, w), i(C, w), n(w, "UIAppMenu"), t(w, "vocabulary", a(C, 8, w, _)), a(C, 11, w), t(w, "elementSetup", a(C, 12, w, { styleSheets: {
81
+ ...c.prototype.elementSetup.styleSheets,
82
+ appMenu: v
83
+ } })), a(C, 15, w);
84
+ var T = w, E = "header", D = "start", O = "middle", k = "end";
85
+ // src/components/ui-app-menu/index.ts
86
+ T.define();
87
+ export { T as UIAppMenu };
88
+
89
+ //# sourceMappingURL=ui-app-menu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-app-menu.js","names":["{this.section(START)}","this","{this.section(MIDDLE)}","{this.section(END)}","part={this.partForName(name)}","<div class={name} part={this.partForName(name)}>\n <slot name={slotName} />\n </div>","E.proto","E.protoMerged","_$getOwner","_$readShallow","_$setAttribute","__name","appMenuCSS","__decoratorStart","__publicField","__name$1","__decorateElement","__decoratorMetadata","__runInitializers","menuVocabulary","appMenuVocabulary","slot","UIAppMenu_default","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIAppMenu","UIMenu","proto","protoMerged","BAR_CLASS","_self$","memo","START","MIDDLE","END","slotName","name","_self$2","_el$","_el$2","setAttribute","getOwner","effect","readShallow","className","_p$","UIAppMenu"],"sources":["../src/components/ui-app-menu/UIAppMenu.en.ts","../src/components/ui-app-menu/UIAppMenu.tsx","../src/components/ui-app-menu/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-app-menu>`: `<ui-menu>`'s, under the app menu's own tag, with its three sections.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Built ON the menu's, as `<ui-toolbar>`'s is: the same attributes, events, states and owned parts,\n * so an attribute the menu gains reaches the app menu with no change here.\n * - Its own: the `start` and `end` slots around the menu's default slot (the middle),\n * and a part for each of the three sections' boxes.\n * - The same noun (`menu`): its items draw as a menu's, and `UIMenu.css` styles it.\n */\n\nimport type { E } from \"spell/ui/core\"\nimport { menuVocabulary } from \"spell/ui/components/ui-menu/UIMenu.en\"\n\n/****************\n * ### `appMenuVocabulary`\n * The names of `<ui-app-menu>`, an app's top bar: joined to the top of its window or page,\n * a start section, a middle and an end section.\n ****************/\nexport const appMenuVocabulary = {\n ...menuVocabulary,\n tag: \"ui-app-menu\",\n icon: \"window maximize outline\",\n snippet:\n '<ui-app-menu>\\n\\t<ui-item slot=\"start\">My App</ui-item>\\n\\t<ui-item>Home</ui-item>\\n' +\n '\\t<ui-item slot=\"end\" icon=\"cog\"></ui-item>\\n</ui-app-menu>',\n topics: [\"menus\", \"navigation\", \"layout\"],\n aka: [\"app bar\", \"top bar\", \"title bar\", \"header bar\", \"navbar\", \"masthead\", \"window bar\"],\n skeleton: \"inline 24 x 2.5\",\n description:\n \"An app menu is an app's top bar, joined to the top of its window or page: a start section (a menu or \" +\n \"sidebar button, then a title or breadcrumb), a middle that stays on the bar's centre, and an end section for \" +\n \"buttons. It takes every `<ui-menu>` attribute.\",\n slots: [\n {\n name: \"\",\n description: \"The middle section, centred on the bar: `<ui-item>`s, a sub-menu, e.g. a page's modes or its tabs.\"\n },\n {\n name: \"start\",\n description: \"The start section, at the bar's start: a menu or sidebar button first, then a title or breadcrumb.\"\n },\n { name: \"end\", description: \"The end section, at the bar's end: buttons, e.g. settings and the person's menu.\" },\n ...menuVocabulary.slots.filter((slot) => slot.name !== \"\")\n ],\n parts: [\n ...menuVocabulary.parts,\n { name: \"start\", description: \"The start section's box: it shares the room the middle leaves with the end.\" },\n { name: \"middle\", description: \"The middle section's box, its content's width.\" },\n { name: \"end\", description: \"The end section's box, what's in it pushed to the bar's end.\" }\n ]\n} as const satisfies E.ComponentVocabulary\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E } from \"spell/ui/core\"\n// the family barrel, not the leaf:\n// the lib build then imports `ui-menu.js` instead of splitting a shared chunk\n// (SIDE EFFECT: defines `<ui-menu>` and `<ui-item>`, which an app menu extends and holds)\nimport { UIMenu } from \"spell/ui/components/ui-menu\"\nimport type { menuVocabulary } from \"spell/ui/components/ui-menu/UIMenu.en\"\nimport { appMenuVocabulary } from \"./UIAppMenu.en\"\n\nimport appMenuCSS from \"./UIAppMenu.css?inline\"\n\n/****************\n * ### `<ui-app-menu>`\n * An app's top bar: joined to the top of its window or page, in three sections.\n *\n * <nav class=\"ui header menu\" part=\"menu\">\n * <div class=\"start\" part=\"start\"> <slot name=\"start\"> </div> (a menu or sidebar button, a title)\n * <div class=\"middle\" part=\"middle\"> <slot> </div> (on the bar's centre)\n * <div class=\"end\" part=\"end\"> <slot name=\"end\"> </div> (buttons, at the bar's end)\n * </nav>\n *\n * - It IS a `<ui-menu>` (it extends `UIMenu`, as `<ui-toolbar>` does):\n * the same attributes, items, events and menubar, sub-menus in any section.\n * - Its vocabulary is built on the menu's (`UIAppMenu.en.ts`).\n * - Its look is the menu's window bar, always (`UIMenu.css`, \"Bar\"):\n * flat, full width, a hairline under it, dressed in the theme's bar; `--ui-menu-header-bar-*` tune it.\n * - It was `<ui-menu appearance=\"header\">` till epic `mockup` T35: that still draws the same bar.\n * - Its sections:\n * - the start and end share what the middle leaves, so the middle stays on the bar's centre\n * - each is at least its content's width: too narrow for all three, the bar scrolls sideways, never overlaps\n * - the end's content is pushed to the bar's end\n * - Its own items fill the bar's height: no room of their own above or below.\n * - And, unlike a plain menu's, no hairline between them (epic `mockup` I22).\n * - Not a sub-menu's: they adopt the sub-menu's sheets (`UIItem.styleSheetNames`), so the page sets theirs.\n ****************/\nexport class UIAppMenu extends UIMenu {\n // the menu's names under the app menu's tag: same shape, but TypeScript only knows the menu's literals\n @E.proto static vocabulary = appMenuVocabulary as unknown as typeof menuVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { ...UIMenu.prototype.elementSetup.styleSheets, appMenu: appMenuCSS }\n } satisfies Partial<E.ElementSetup>\n\n /** The menu's window bar, whatever its `appearance`. */\n protected get extraClass(): string | undefined {\n return BAR_CLASS\n }\n\n /** Its three sections, each a box around its slot; the middle, the menu's default slot. */\n protected boxContent(): JSX.Element {\n return (\n <>\n {this.section(START)}\n {this.section(MIDDLE)}\n {this.section(END)}\n </>\n )\n }\n\n /** Section `name`'s box. */\n private section(name: Section): JSX.Element {\n const slotName = name === MIDDLE ? undefined : this.slotForName(name as never)\n return (\n <div class={name} part={this.partForName(name as never)}>\n <slot name={slotName} />\n </div>\n )\n }\n}\n\n////////////////\n// ## Constants\n////////////////\n\n/** The menu's class word for its window bar (`UIMenu.css`, \"Bar\"). */\nconst BAR_CLASS = \"header\"\n\n/** The start section (and its box's class word, part and slot). */\nconst START = \"start\"\n\n/** The middle section: the menu's default slot. */\nconst MIDDLE = \"middle\"\n\n/** The end section. */\nconst END = \"end\"\n\n/** One of the bar's sections. */\ntype Section = typeof START | typeof MIDDLE | typeof END\n","/**\n * The app menu family: defines `<ui-app-menu>` and exports its component, `UIAppMenu`.\n * - SIDE EFFECT: importing it defines the tag.\n * `UIAppMenu` imports the menu family first, which defines `<ui-menu>` and `<ui-item>`:\n * an app menu extends the menu, and holds generic items.\n * - Also the library's `spell/ui/ui-app-menu` entry.\n */\n\nimport { UIAppMenu } from \"./UIAppMenu\"\n\nUIAppMenu.define()\n\nexport { UIAppMenu }\n"],"mappings":";;;;;AAkBA,IAAaoB,IAAoB;CAC/B,GAAGD;CACH,KAAK;CACL,MAAM;CACN,SACE;CAEF,QAAQ;EAAC;EAAS;EAAc;CAAQ;CACxC,KAAK;EAAC;EAAW;EAAW;EAAa;EAAc;EAAU;EAAY;CAAY;CACzF,UAAU;CACV,aACE;CAGF,OAAO;EACL;GACE,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,aAAa;EACf;EACA;GAAE,MAAM;GAAO,aAAa;EAAoF;EAChH,GAAGA,EAAe,MAAM,QAAQ,MAASE,EAAK,SAAS,EAAE;CAC3D;CACA,OAAO;EACL,GAAGF,EAAe;EAClB;GAAE,MAAM;GAAS,aAAa;EAA+E;EAC7G;GAAE,MAAM;GAAU,aAAa;EAAiD;EAChF;GAAE,MAAM;GAAO,aAAa;EAA+D;CAC7F;AACF,G,gvBClDAK,GAAAC,GAAAC,GAAAC,GAoCaC,IAAN,MAAM,oBAAkB,IAAAC,GAE7B,IAAA,CAACvB,CAAE,GACH,IAAA,CAACC,CAAE,GAH0BmB,EAAA,CAAO;CAQpC,IAAc,aAAiC;EAC7C,OAAOM;CACT;CAGU,aAA0B;EAClC,IAAAC,IAAA;EACI,OAAA;GAAAjC,QACCC,EAAK,QAAQkC,CAAK,CAAA;GAAEjC,QACpBD,EAAK,QAAQmC,CAAM,CAAA;GAAEjC,QACrBF,EAAK,QAAQoC,CAAG,CAAA;EAHjB;CAMN;CAGQ,QAAQ,GAA4B;EAC1C,IAAMC,IAAWC,MAASH,IAAS,KAAA,IAAY,KAAK,YAAYG,CAAa,GAC7EC,IAAA;EACE,IAAAC,IAAAlB,EAAC,GACCmB,IAAAD,EAAA;EAFJ,OAEUE,EAAAD,GAAA,QAAMJ,CAAA,GAAZ,EAAA,UAAA9B,EAAsB,GADnBqC,S;GAAO,GAAApC,EAAA8B,CAAA;GAAMnC,GAAMH,EAAK,YAAYsC,CAAa;EAA1C,KAAP,EAAA,GAAA,KAAA,MAAA;GAAa,AAANQ,EAAAN,GAAA,GAAAO,GAAA,CAAA,GAAM,MAAAA,GAAA,KAAAtC,EAAA+B,GAAA,QAAA,CAAoC;EAA1C,CAAA,GAAZpC;CAIJ;AACF;AAhCO,IAAAQ,EAAAa,CAAA,GAEIV,EAAAW,GAAA,IAAO,cAAhBF,GAFWG,CAAA,GAGIZ,EAAAW,GAAA,IAAO,gBAAtBH,GAHWI,CAAA,GAANX,EAAAU,GAAMC,CAAA,GAAyBjB,EAAAiB,GAAA,WAAA,GAE3Bd,EAFEc,GAEK,cAAaV,EAApBS,GAAA,GAFEC,GAEkBR,CAAA,CAAA,GAApBF,EAAAS,GAAA,IAFEC,CAAA,GAGId,EAHJc,GAGW,gBAAeV,EAAtBS,GAAA,IAHJC,GAG0B,EACnC,aAAa;CAAE,GAAGC,EAAO,UAAU,aAAa;CAAa,SAASjB;AAAW,EACnF,CAAA,CAAA,GAFeM,EAAAS,GAAA,IAHJC,CAAA;AAAN,IAAMqB,IAANrB,GAuCDI,IAAY,UAGZG,IAAQ,SAGRC,IAAS,UAGTC,IAAM;;AC1EZY,EAAU,OAAO"}
@@ -0,0 +1,5 @@
1
+ // src/components/ui-video/ui-audio.editor.html?raw
2
+ var e = "<!-- <ui-audio>'s property editor layout: move, pair (<ui-fields>) or leave out (data-omit) its properties. How: Spell UI's AGENTS.md, \"Property editor layouts\". -->\n<ui-property-editor schema=\"ui-audio\" data-omit=\"\">\n <ui-property-group label=\"Link\" data-group=\"link\">\n <ui-property name=\"src\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Behaviour\" data-group=\"behaviour\">\n <ui-property name=\"autoplay\"></ui-property>\n <ui-property name=\"muted\"></ui-property>\n <ui-property name=\"loop\"></ui-property>\n <ui-property name=\"controls\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
3
+ export { e as default };
4
+
5
+ //# sourceMappingURL=ui-audio.editor-Y6WeqLRh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-audio.editor-Y6WeqLRh.js","names":["ui_audio_editor_default"],"sources":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ // src/components/ui-parts/ui-author.editor.html?raw
2
+ var e = "<!-- <ui-author>'s property editor layout: move, pair (<ui-fields>) or leave out (data-omit) its properties. How: Spell UI's AGENTS.md, \"Property editor layouts\". -->\n<ui-property-editor schema=\"ui-author\" data-omit=\"\">\n <ui-property-group label=\"Link\" data-group=\"link\">\n <ui-property name=\"link\"></ui-property>\n <ui-property name=\"target\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
3
+ export { e as default };
4
+
5
+ //# sourceMappingURL=ui-author.editor-Bmf-rEXY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-author.editor-Bmf-rEXY.js","names":["ui_author_editor_default"],"sources":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ // src/components/ui-parts/ui-avatar.editor.html?raw
2
+ var e = "<!-- <ui-avatar>'s property editor layout: move, pair (<ui-fields>) or leave out (data-omit) its properties. How: Spell UI's AGENTS.md, \"Property editor layouts\". -->\n<ui-property-editor schema=\"ui-avatar\" data-omit=\"\">\n <ui-property-group label=\"Content\" data-group=\"content\">\n <ui-property name=\"tooltip\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Link\" data-group=\"link\">\n <ui-property name=\"src\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
3
+ export { e as default };
4
+
5
+ //# sourceMappingURL=ui-avatar.editor-CSU6snQz.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-avatar.editor-CSU6snQz.js","names":["ui_avatar_editor_default"],"sources":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ // src/components/ui-breadcrumbs/ui-breadcrumb.editor.html?raw
2
+ var e = "<!-- <ui-breadcrumb>'s property editor layout: move, pair (<ui-fields>) or leave out (data-omit) its properties. How: Spell UI's AGENTS.md, \"Property editor layouts\". -->\n<ui-property-editor schema=\"ui-breadcrumb\" data-omit=\"\">\n <ui-property-group label=\"States\" data-group=\"states\">\n <ui-property name=\"selected\"></ui-property>\n </ui-property-group>\n <ui-property-group label=\"Link\" data-group=\"link\">\n <ui-property name=\"link\"></ui-property>\n <ui-property name=\"target\"></ui-property>\n </ui-property-group>\n</ui-property-editor>\n";
3
+ export { e as default };
4
+
5
+ //# sourceMappingURL=ui-breadcrumb.editor-N1-8OzDq.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-breadcrumb.editor-N1-8OzDq.js","names":["ui_breadcrumb_editor_default"],"sources":[],"mappings":""}