spell-ui 0.8.5 → 0.8.7

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 (722) hide show
  1. package/README-components.md +14 -6
  2. package/README-frameworks.md +22 -12
  3. package/README-migrating.md +7 -6
  4. package/README-runtime.md +14 -13
  5. package/README-site.md +11 -11
  6. package/README-themes.md +38 -11
  7. package/README.md +61 -73
  8. package/dist/Dragging-CMZoLEWQ.js +169 -0
  9. package/dist/Dragging-CMZoLEWQ.js.map +1 -0
  10. package/dist/{MarkdownEngine-CbuT9Mjc.js → MarkdownEngine-CW1WGqNp.js} +122 -100
  11. package/dist/MarkdownEngine-CW1WGqNp.js.map +1 -0
  12. package/dist/{PrefStore-CeaTtjTz.js → PrefStore-Qv0e5y04.js} +22 -22
  13. package/dist/PrefStore-Qv0e5y04.js.map +1 -0
  14. package/dist/ScrollingRow-7n7Z-HIE.js +88 -0
  15. package/dist/ScrollingRow-7n7Z-HIE.js.map +1 -0
  16. package/dist/SitePages-CciwREek.js +51 -0
  17. package/dist/SitePages-CciwREek.js.map +1 -0
  18. package/dist/{SlottedItems-Ch0tzzlL.js → SlottedItems-Du3aJwG1.js} +22 -22
  19. package/dist/{SlottedItems-Ch0tzzlL.js.map → SlottedItems-Du3aJwG1.js.map} +1 -1
  20. package/dist/ThemeDraft-B7NPif4d.js +805 -0
  21. package/dist/ThemeDraft-B7NPif4d.js.map +1 -0
  22. package/dist/TreeMeasure-BVJeGb1L.js +42 -0
  23. package/dist/TreeMeasure-BVJeGb1L.js.map +1 -0
  24. package/dist/UIButton-DFEds67r.js +6 -0
  25. package/dist/UIButton-DFEds67r.js.map +1 -0
  26. package/dist/UIInput-BodVbUoQ.js +6 -0
  27. package/dist/UIInput-BodVbUoQ.js.map +1 -0
  28. package/dist/{UIKeys-DJF2TIKE.js → UIKeys-Rh_gUZjP.js} +10 -9
  29. package/dist/UIKeys-Rh_gUZjP.js.map +1 -0
  30. package/dist/UILabel-DgJUBzB_.js +6 -0
  31. package/dist/UILabel-DgJUBzB_.js.map +1 -0
  32. package/dist/UIMenu-zdcAtwTa.js +42 -0
  33. package/dist/UIMenu-zdcAtwTa.js.map +1 -0
  34. package/dist/{UIRuntime-BBuehGly.js → UIRuntime-KH309p5B.js} +398 -207
  35. package/dist/UIRuntime-KH309p5B.js.map +1 -0
  36. package/dist/_spell-element/DOMElement.d.ts +62 -5
  37. package/dist/_spell-element/MoveAndResize.d.ts +75 -0
  38. package/dist/_spell-element/UIComponent.d.ts +42 -0
  39. package/dist/_spell-element/elements.types.d.ts +47 -0
  40. package/dist/_spell-element/index.d.ts +1 -0
  41. package/dist/_spell-element/vocabulary.types.d.ts +34 -2
  42. package/dist/{runtime → _util}/Api.d.ts +14 -4
  43. package/dist/_util/Dragging.d.ts +148 -0
  44. package/dist/_util/ListSelection.d.ts +46 -0
  45. package/dist/{util → _util}/LoadOnce.d.ts +9 -1
  46. package/dist/_util/ReconnectingSocket.d.ts +51 -0
  47. package/dist/_util/diagram/DiagramColumns.d.ts +14 -0
  48. package/dist/_util/diagram/DiagramLayout.d.ts +119 -0
  49. package/dist/_util/diagram/DiagramSVG.d.ts +17 -0
  50. package/dist/_util/dom.d.ts +10 -0
  51. package/dist/_util/fetching.d.ts +92 -0
  52. package/dist/_util/measures/Dimension.d.ts +63 -0
  53. package/dist/_util/measures/MeasureSystem.d.ts +66 -0
  54. package/dist/_util/measures/dimensions.generated.d.ts +16 -0
  55. package/dist/_util/persist/ColorScheme.d.ts +6 -0
  56. package/dist/_util/persist/ServerPlace.d.ts +42 -0
  57. package/dist/_util/persist/WaitedOnPlace.d.ts +27 -0
  58. package/dist/_util/persist/persist.types.d.ts +21 -2
  59. package/dist/_util/timing.d.ts +10 -1
  60. package/dist/api.js +8 -7
  61. package/dist/api.js.map +1 -1
  62. package/dist/components/ComponentDefinitions.d.ts +29 -0
  63. package/dist/components/components.es.d.ts +13 -0
  64. package/dist/components/components.types.d.ts +113 -8
  65. package/dist/components/ui-accordion/UIAccordion.d.ts +1 -0
  66. package/dist/components/ui-accordion/UIAccordion.en.d.ts +1 -0
  67. package/dist/components/ui-action/UIAction.en.d.ts +5 -1
  68. package/dist/components/ui-ad/UIAd.d.ts +1 -0
  69. package/dist/components/ui-ad/UIAd.en.d.ts +1 -0
  70. package/dist/components/ui-breadcrumbs/UIBreadcrumb.d.ts +1 -0
  71. package/dist/components/ui-breadcrumbs/UIBreadcrumb.en.d.ts +1 -0
  72. package/dist/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +1 -0
  73. package/dist/components/ui-breadcrumbs/UIBreadcrumbs.en.d.ts +1 -0
  74. package/dist/components/ui-button/UIButton.d.ts +8 -3
  75. package/dist/components/ui-button/UIButton.en.d.ts +9 -4
  76. package/dist/components/ui-button/UIButton.es.d.ts +6 -0
  77. package/dist/components/ui-button/UIButton.fallback.d.ts +8 -3
  78. package/dist/components/ui-button/UIButtons.d.ts +1 -0
  79. package/dist/components/ui-button/UIButtons.en.d.ts +1 -0
  80. package/dist/components/ui-button/UIOr.d.ts +1 -0
  81. package/dist/components/ui-button/UIOr.en.d.ts +1 -0
  82. package/dist/components/ui-calendar/UICalendar.d.ts +6 -0
  83. package/dist/components/ui-calendar/UICalendar.en.d.ts +6 -0
  84. package/dist/components/ui-calendar/UICalendar.fallback.d.ts +6 -0
  85. package/dist/components/ui-card/CardClicks.d.ts +40 -0
  86. package/dist/components/ui-card/UICard.d.ts +41 -0
  87. package/dist/components/ui-card/UICard.en.d.ts +49 -0
  88. package/dist/components/ui-card/UICard.es.d.ts +1 -0
  89. package/dist/components/ui-card/UICards.d.ts +31 -0
  90. package/dist/components/ui-card/UICards.en.d.ts +31 -0
  91. package/dist/components/ui-card/UICards.es.d.ts +8 -0
  92. package/dist/components/ui-checkbox/CheckControl.d.ts +7 -0
  93. package/dist/components/ui-checkbox/UICheckbox.d.ts +7 -0
  94. package/dist/components/ui-checkbox/UICheckbox.en.d.ts +7 -0
  95. package/dist/components/ui-checkbox/UICheckbox.es.d.ts +1 -0
  96. package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +7 -0
  97. package/dist/components/ui-checkbox/UICheckbox.types.d.ts +5 -0
  98. package/dist/components/ui-checkbox/UIRadio.d.ts +8 -0
  99. package/dist/components/ui-checkbox/UIRadio.en.d.ts +6 -0
  100. package/dist/components/ui-code/UICode.en.d.ts +1 -0
  101. package/dist/components/ui-comment/UIComment.d.ts +1 -0
  102. package/dist/components/ui-comment/UIComment.en.d.ts +1 -0
  103. package/dist/components/ui-comment/UIComments.d.ts +1 -0
  104. package/dist/components/ui-comment/UIComments.en.d.ts +1 -0
  105. package/dist/components/ui-components/PackHotSwap.d.ts +17 -1
  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 +11 -0
  109. package/dist/components/ui-container/UIContainer.en.d.ts +7 -0
  110. package/dist/components/ui-container/UIContainer.es.d.ts +1 -0
  111. package/dist/components/ui-diagram/UIDiagram.d.ts +268 -0
  112. package/dist/components/ui-diagram/UIDiagram.en.d.ts +106 -0
  113. package/dist/components/ui-diagram/UIDiagram.es.d.ts +37 -0
  114. package/dist/components/ui-diagram/UIDiagramNode.d.ts +98 -0
  115. package/dist/components/ui-diagram/UIDiagramNode.en.d.ts +38 -0
  116. package/dist/components/ui-diagram/UIDiagramNode.es.d.ts +16 -0
  117. package/dist/components/ui-diagram/index.d.ts +8 -0
  118. package/dist/components/ui-dimension/UIDimension.d.ts +81 -0
  119. package/dist/components/ui-dimension/UIDimension.en.d.ts +54 -0
  120. package/dist/components/ui-dimension/UIDimension.es.d.ts +22 -0
  121. package/dist/components/ui-dimension/index.d.ts +2 -0
  122. package/dist/components/ui-dimmer/UIDimmer.d.ts +6 -1
  123. package/dist/components/ui-dimmer/UIDimmer.en.d.ts +1 -0
  124. package/dist/components/ui-dimmer/UIDimmer.es.d.ts +1 -1
  125. package/dist/components/ui-divider/UIDivider.d.ts +2 -0
  126. package/dist/components/ui-divider/UIDivider.en.d.ts +2 -0
  127. package/dist/components/ui-divider/UIDivider.es.d.ts +1 -0
  128. package/dist/components/ui-dropdown/UIDropdown.d.ts +6 -0
  129. package/dist/components/ui-dropdown/UIDropdown.en.d.ts +6 -0
  130. package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +6 -0
  131. package/dist/components/ui-embed/UIEmbed.d.ts +1 -0
  132. package/dist/components/ui-embed/UIEmbed.en.d.ts +1 -0
  133. package/dist/components/ui-emoji/UIEmoji.d.ts +1 -0
  134. package/dist/components/ui-emoji/UIEmoji.en.d.ts +1 -0
  135. package/dist/components/ui-example/UIExample.en.d.ts +4 -2
  136. package/dist/components/ui-example/UIExample.es.d.ts +3 -2
  137. package/dist/components/ui-feed/UIFeed.d.ts +1 -0
  138. package/dist/components/ui-feed/UIFeed.en.d.ts +1 -0
  139. package/dist/components/ui-feed/UIFeedEvent.d.ts +1 -0
  140. package/dist/components/ui-feed/UIFeedEvent.en.d.ts +1 -0
  141. package/dist/components/ui-flag/UIFlag.d.ts +1 -0
  142. package/dist/components/ui-flag/UIFlag.en.d.ts +1 -0
  143. package/dist/components/ui-flyout/UIFlyout.d.ts +1 -0
  144. package/dist/components/ui-flyout/UIFlyout.en.d.ts +1 -0
  145. package/dist/components/ui-form/FormBinding.d.ts +13 -1
  146. package/dist/components/ui-form/FormFields.d.ts +4 -4
  147. package/dist/components/ui-form/UIField.d.ts +30 -3
  148. package/dist/components/ui-form/UIField.en.d.ts +9 -0
  149. package/dist/components/ui-form/UIField.es.d.ts +6 -0
  150. package/dist/components/ui-form/UIFields.d.ts +1 -0
  151. package/dist/components/ui-form/UIFields.en.d.ts +1 -0
  152. package/dist/components/ui-form/UIForm.d.ts +15 -0
  153. package/dist/components/ui-form/UIForm.en.d.ts +6 -0
  154. package/dist/components/ui-form/UIRepeat.d.ts +1 -0
  155. package/dist/components/ui-form/UIRepeat.en.d.ts +1 -0
  156. package/dist/components/ui-form/index.d.ts +2 -1
  157. package/dist/components/ui-grid/UIColumn.d.ts +1 -0
  158. package/dist/components/ui-grid/UIColumn.en.d.ts +1 -0
  159. package/dist/components/ui-grid/UIGrid.d.ts +1 -0
  160. package/dist/components/ui-grid/UIGrid.en.d.ts +1 -0
  161. package/dist/components/ui-grid/UIRow.d.ts +1 -0
  162. package/dist/components/ui-grid/UIRow.en.d.ts +1 -0
  163. package/dist/components/ui-icon/UIIcon.d.ts +3 -2
  164. package/dist/components/ui-icon/UIIcon.en.d.ts +3 -2
  165. package/dist/components/ui-icon/UIIcons.d.ts +1 -0
  166. package/dist/components/ui-icon/UIIcons.en.d.ts +1 -0
  167. package/dist/components/ui-icon-picker/UIIconPicker.d.ts +6 -0
  168. package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +6 -0
  169. package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +6 -0
  170. package/dist/components/ui-image/UIImage.d.ts +34 -0
  171. package/dist/components/ui-image/UIImage.en.d.ts +23 -0
  172. package/dist/components/ui-image/UIImage.es.d.ts +2 -0
  173. package/dist/components/ui-image/UIImages.d.ts +1 -0
  174. package/dist/components/ui-image/UIImages.en.d.ts +1 -0
  175. package/dist/components/ui-include/UIInclude.d.ts +1 -0
  176. package/dist/components/ui-include/UIInclude.en.d.ts +1 -0
  177. package/dist/components/ui-input/TextControl.d.ts +7 -0
  178. package/dist/components/ui-input/UIInput.d.ts +22 -3
  179. package/dist/components/ui-input/UIInput.en.d.ts +9 -2
  180. package/dist/components/ui-input/UIInput.es.d.ts +2 -0
  181. package/dist/components/ui-input/UIInput.fallback.d.ts +9 -2
  182. package/dist/components/ui-input/UITextarea.d.ts +20 -0
  183. package/dist/components/ui-input/UITextarea.en.d.ts +15 -0
  184. package/dist/components/ui-input/UITextarea.es.d.ts +4 -0
  185. package/dist/components/ui-item/UIItem.d.ts +27 -4
  186. package/dist/components/ui-item/UIItem.en.d.ts +5 -1
  187. package/dist/components/ui-items/UIItems.d.ts +1 -0
  188. package/dist/components/ui-items/UIItems.en.d.ts +1 -0
  189. package/dist/components/ui-json/JsonChild.d.ts +30 -0
  190. package/dist/components/ui-json/UIJson.d.ts +128 -0
  191. package/dist/components/ui-json/UIJson.en.d.ts +71 -0
  192. package/dist/components/ui-json/UIJson.es.d.ts +12 -0
  193. package/dist/components/ui-json/index.d.ts +3 -0
  194. package/dist/components/ui-keys/UIKeys.d.ts +1 -0
  195. package/dist/components/ui-keys/UIKeys.en.d.ts +1 -0
  196. package/dist/components/ui-label/UILabel.d.ts +2 -0
  197. package/dist/components/ui-label/UILabel.en.d.ts +2 -0
  198. package/dist/components/ui-label/UILabel.es.d.ts +1 -0
  199. package/dist/components/ui-label/UILabels.d.ts +1 -0
  200. package/dist/components/ui-label/UILabels.en.d.ts +1 -0
  201. package/dist/components/ui-list/UIList.d.ts +2 -0
  202. package/dist/components/ui-list/UIList.en.d.ts +2 -0
  203. package/dist/components/ui-list/UIList.es.d.ts +1 -0
  204. package/dist/components/ui-loader/UILoader.d.ts +1 -0
  205. package/dist/components/ui-loader/UILoader.en.d.ts +1 -0
  206. package/dist/components/ui-markdown/MarkdownBox.d.ts +143 -0
  207. package/dist/components/ui-markdown/MarkdownEngine.d.ts +14 -2
  208. package/dist/components/ui-markdown/MarkdownFormats.d.ts +95 -0
  209. package/dist/components/ui-markdown/MarkdownSource.d.ts +57 -0
  210. package/dist/components/ui-markdown/UIMarkdown.d.ts +126 -6
  211. package/dist/components/ui-markdown/UIMarkdown.en.d.ts +111 -8
  212. package/dist/components/ui-markdown/UIMarkdown.es.d.ts +29 -1
  213. package/dist/components/ui-markdown/UIMarkdown.types.d.ts +26 -0
  214. package/dist/components/ui-menu/ScrollingRow.d.ts +79 -0
  215. package/dist/components/ui-menu/TitleFit.d.ts +3 -0
  216. package/dist/components/ui-menu/UIMenu.d.ts +97 -4
  217. package/dist/components/ui-menu/UIMenu.en.d.ts +50 -1
  218. package/dist/components/ui-menu/UIMenu.es.d.ts +4 -0
  219. package/dist/components/ui-message/UIMessage.d.ts +2 -0
  220. package/dist/components/ui-message/UIMessage.en.d.ts +2 -0
  221. package/dist/components/ui-message/UIMessage.es.d.ts +1 -0
  222. package/dist/components/ui-modal/UIModal.d.ts +1 -0
  223. package/dist/components/ui-modal/UIModal.en.d.ts +1 -0
  224. package/dist/components/ui-nag/UINag.d.ts +1 -0
  225. package/dist/components/ui-nag/UINag.en.d.ts +1 -0
  226. package/dist/components/ui-page/UIPage.d.ts +15 -0
  227. package/dist/components/ui-page/UIPage.en.d.ts +15 -0
  228. package/dist/components/ui-page/UIPage.es.d.ts +1 -0
  229. package/dist/components/ui-panel/UIPanel.d.ts +6 -0
  230. package/dist/components/ui-panel/UIPanel.en.d.ts +33 -20
  231. package/dist/components/ui-parts/UIActions.d.ts +1 -0
  232. package/dist/components/ui-parts/UIActions.en.d.ts +1 -0
  233. package/dist/components/ui-parts/UIAuthor.d.ts +1 -0
  234. package/dist/components/ui-parts/UIAuthor.en.d.ts +1 -0
  235. package/dist/components/ui-parts/UIAvatar.d.ts +1 -0
  236. package/dist/components/ui-parts/UIAvatar.en.d.ts +1 -0
  237. package/dist/components/ui-parts/UIContent.d.ts +1 -0
  238. package/dist/components/ui-parts/UIContent.en.d.ts +1 -0
  239. package/dist/components/ui-parts/UIDate.d.ts +1 -0
  240. package/dist/components/ui-parts/UIDate.en.d.ts +1 -0
  241. package/dist/components/ui-parts/UIDescription.d.ts +1 -0
  242. package/dist/components/ui-parts/UIDescription.en.d.ts +1 -0
  243. package/dist/components/ui-parts/UIDetail.d.ts +1 -0
  244. package/dist/components/ui-parts/UIDetail.en.d.ts +1 -0
  245. package/dist/components/ui-parts/UIExtra.d.ts +1 -0
  246. package/dist/components/ui-parts/UIExtra.en.d.ts +1 -0
  247. package/dist/components/ui-parts/UIHeader.d.ts +3 -1
  248. package/dist/components/ui-parts/UIHeader.en.d.ts +3 -1
  249. package/dist/components/ui-parts/UIMeta.d.ts +1 -0
  250. package/dist/components/ui-parts/UIMeta.en.d.ts +1 -0
  251. package/dist/components/ui-parts/UIParts.types.d.ts +15 -1
  252. package/dist/components/ui-parts/UISummary.d.ts +1 -0
  253. package/dist/components/ui-parts/UISummary.en.d.ts +1 -0
  254. package/dist/components/ui-parts/UITitle.d.ts +1 -0
  255. package/dist/components/ui-parts/UITitle.en.d.ts +1 -0
  256. package/dist/components/ui-parts/UIValue.d.ts +1 -0
  257. package/dist/components/ui-parts/UIValue.en.d.ts +1 -0
  258. package/dist/components/ui-placeholder/UIPlaceholder.d.ts +1 -0
  259. package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +1 -0
  260. package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +1 -0
  261. package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +1 -0
  262. package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +1 -0
  263. package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +1 -0
  264. package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +1 -0
  265. package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +1 -0
  266. package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +1 -0
  267. package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +1 -0
  268. package/dist/components/ui-popup/UIPopup.d.ts +30 -3
  269. package/dist/components/ui-popup/UIPopup.en.d.ts +7 -0
  270. package/dist/components/ui-popup/UIPopup.es.d.ts +1 -0
  271. package/dist/components/ui-progress/UIProgress.d.ts +2 -0
  272. package/dist/components/ui-progress/UIProgress.en.d.ts +2 -0
  273. package/dist/components/ui-progress/UIProgress.es.d.ts +1 -0
  274. package/dist/components/ui-property-editor/UIProperty.d.ts +132 -5
  275. package/dist/components/ui-property-editor/UIProperty.en.d.ts +11 -44
  276. package/dist/components/ui-property-editor/UIProperty.es.d.ts +4 -0
  277. package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +38 -0
  278. package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +1 -0
  279. package/dist/components/ui-property-editor/UIPropertyEditor.es.d.ts +4 -0
  280. package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +33 -0
  281. package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +12 -0
  282. package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +2 -0
  283. package/dist/components/ui-property-editor/UIPropertyGroup.es.d.ts +9 -0
  284. package/dist/components/ui-property-editor/index.d.ts +1 -0
  285. package/dist/components/ui-quote/UIQuote.d.ts +1 -0
  286. package/dist/components/ui-quote/UIQuote.en.d.ts +1 -0
  287. package/dist/components/ui-rail/UIRail.d.ts +1 -0
  288. package/dist/components/ui-rail/UIRail.en.d.ts +1 -0
  289. package/dist/components/ui-rating/UIRating.d.ts +6 -0
  290. package/dist/components/ui-rating/UIRating.en.d.ts +6 -0
  291. package/dist/components/ui-rating/UIRating.fallback.d.ts +6 -0
  292. package/dist/components/ui-reveal/UIReveal.d.ts +1 -0
  293. package/dist/components/ui-reveal/UIReveal.en.d.ts +1 -0
  294. package/dist/components/ui-root/UIRoot.d.ts +18 -3
  295. package/dist/components/ui-root/UIRoot.en.d.ts +15 -0
  296. package/dist/components/ui-root/UIRoot.es.d.ts +1 -0
  297. package/dist/components/ui-search/UISearch.d.ts +48 -7
  298. package/dist/components/ui-search/UISearch.en.d.ts +13 -1
  299. package/dist/components/ui-search/UISearch.es.d.ts +1 -0
  300. package/dist/components/ui-search/UISearch.fallback.d.ts +13 -1
  301. package/dist/components/ui-section/UISection.d.ts +30 -1
  302. package/dist/components/ui-section/UISection.en.d.ts +10 -0
  303. package/dist/components/ui-section/UISection.es.d.ts +1 -0
  304. package/dist/components/ui-section/UISections.d.ts +1 -0
  305. package/dist/components/ui-section/UISections.en.d.ts +1 -0
  306. package/dist/components/ui-segment/UISegment.d.ts +2 -0
  307. package/dist/components/ui-segment/UISegment.en.d.ts +2 -0
  308. package/dist/components/ui-segment/UISegment.es.d.ts +1 -0
  309. package/dist/components/ui-segment/UISegments.d.ts +1 -0
  310. package/dist/components/ui-segment/UISegments.en.d.ts +1 -0
  311. package/dist/components/ui-select/UISelect.d.ts +6 -0
  312. package/dist/components/ui-select/UISelect.en.d.ts +6 -0
  313. package/dist/components/ui-select/UISelect.fallback.d.ts +6 -0
  314. package/dist/components/ui-shape/UIShape.d.ts +23 -2
  315. package/dist/components/ui-shape/UIShape.en.d.ts +8 -0
  316. package/dist/components/ui-shape/UIShape.es.d.ts +1 -0
  317. package/dist/components/ui-shape/UISide.d.ts +4 -0
  318. package/dist/components/ui-shape/UISide.en.d.ts +4 -0
  319. package/dist/components/ui-sidebar/UIPushable.d.ts +1 -0
  320. package/dist/components/ui-sidebar/UIPushable.en.d.ts +1 -0
  321. package/dist/components/ui-sidebar/UIPusher.d.ts +1 -0
  322. package/dist/components/ui-sidebar/UIPusher.en.d.ts +1 -0
  323. package/dist/components/ui-sidebar/UISidebar.d.ts +1 -0
  324. package/dist/components/ui-sidebar/UISidebar.en.d.ts +1 -0
  325. package/dist/components/ui-sides/UISides.d.ts +209 -0
  326. package/dist/components/ui-sides/UISides.en.d.ts +122 -0
  327. package/dist/components/ui-sides/UISides.es.d.ts +30 -0
  328. package/dist/components/ui-sides/UISides.fallback.d.ts +134 -0
  329. package/dist/components/ui-sides/index.d.ts +2 -0
  330. package/dist/components/ui-site-nav/SitePages.d.ts +53 -0
  331. package/dist/components/ui-site-nav/UISiteNav.d.ts +207 -0
  332. package/dist/components/ui-site-nav/UISiteNav.en.d.ts +87 -0
  333. package/dist/components/ui-site-nav/UISiteNav.es.d.ts +29 -0
  334. package/dist/components/ui-site-nav/index.d.ts +1 -0
  335. package/dist/components/ui-site-tabs/UISiteTabs.d.ts +126 -0
  336. package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +49 -0
  337. package/dist/components/ui-site-tabs/UISiteTabs.es.d.ts +18 -0
  338. package/dist/components/ui-site-tabs/index.d.ts +1 -0
  339. package/dist/components/ui-slider/UISlider.d.ts +7 -0
  340. package/dist/components/ui-slider/UISlider.en.d.ts +7 -0
  341. package/dist/components/ui-slider/UISlider.es.d.ts +1 -0
  342. package/dist/components/ui-slider/UISlider.fallback.d.ts +7 -0
  343. package/dist/components/ui-space/UISpace.d.ts +1 -0
  344. package/dist/components/ui-space/UISpace.en.d.ts +1 -0
  345. package/dist/components/ui-split-panel/UISplitPanel.d.ts +175 -0
  346. package/dist/components/ui-split-panel/UISplitPanel.en.d.ts +74 -0
  347. package/dist/components/ui-split-panel/UISplitPanel.es.d.ts +25 -0
  348. package/dist/components/ui-split-panel/index.d.ts +2 -0
  349. package/dist/components/ui-stack/UIStack.d.ts +31 -5
  350. package/dist/components/ui-stack/UIStack.en.d.ts +15 -3
  351. package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
  352. package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
  353. package/dist/components/ui-statistic/UIStatistics.d.ts +1 -0
  354. package/dist/components/ui-statistic/UIStatistics.en.d.ts +1 -0
  355. package/dist/components/ui-step/UIStep.d.ts +1 -0
  356. package/dist/components/ui-step/UIStep.en.d.ts +1 -0
  357. package/dist/components/ui-step/UISteps.d.ts +1 -0
  358. package/dist/components/ui-step/UISteps.en.d.ts +1 -0
  359. package/dist/components/ui-sticky/UISticky.d.ts +4 -0
  360. package/dist/components/ui-sticky/UISticky.en.d.ts +1 -0
  361. package/dist/components/ui-tab/UITab.d.ts +8 -0
  362. package/dist/components/ui-tab/UITab.en.d.ts +1 -0
  363. package/dist/components/ui-tab/UITabs.d.ts +107 -16
  364. package/dist/components/ui-tab/UITabs.en.d.ts +40 -1
  365. package/dist/components/ui-tab/UITabs.es.d.ts +4 -0
  366. package/dist/components/ui-table/TableEditing.d.ts +77 -0
  367. package/dist/components/ui-table/UICell.d.ts +1 -0
  368. package/dist/components/ui-table/UICell.en.d.ts +1 -0
  369. package/dist/components/ui-table/UITable.d.ts +145 -5
  370. package/dist/components/ui-table/UITable.en.d.ts +19 -0
  371. package/dist/components/ui-table/UITable.es.d.ts +3 -0
  372. package/dist/components/ui-terms/UITerm.d.ts +1 -0
  373. package/dist/components/ui-terms/UITerm.en.d.ts +1 -0
  374. package/dist/components/ui-terms/UITerms.d.ts +1 -0
  375. package/dist/components/ui-terms/UITerms.en.d.ts +1 -0
  376. package/dist/components/ui-text/UILink.d.ts +11 -0
  377. package/dist/components/ui-text/UILink.en.d.ts +4 -0
  378. package/dist/components/ui-text/UIText.d.ts +7 -0
  379. package/dist/components/ui-text/UIText.en.d.ts +7 -0
  380. package/dist/components/ui-text/UIText.es.d.ts +2 -0
  381. package/dist/components/ui-theme-editor/SavedTheme.d.ts +55 -43
  382. package/dist/components/ui-theme-editor/ThemeDraft.d.ts +15 -0
  383. package/dist/components/ui-theme-editor/UIColorChip.d.ts +1 -0
  384. package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +1 -0
  385. package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +157 -26
  386. package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +79 -6
  387. package/dist/components/ui-theme-editor/UIThemeEditor.es.d.ts +20 -2
  388. package/dist/components/ui-theme-editor/UIThemeEditor.types.d.ts +0 -2
  389. package/dist/components/ui-theme-editor/UIThemeToken.d.ts +1 -0
  390. package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +1 -0
  391. package/dist/components/ui-theme-menu/HueDropdown.d.ts +47 -0
  392. package/dist/components/ui-theme-menu/ThemeMenu.d.ts +18 -7
  393. package/dist/components/ui-theme-menu/ThemePreference.d.ts +145 -36
  394. package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +118 -7
  395. package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +82 -2
  396. package/dist/components/ui-theme-menu/UIThemeMenu.es.d.ts +21 -1
  397. package/dist/components/ui-theme-menu/UIThemeMenu.types.d.ts +36 -8
  398. package/dist/components/ui-theme-menu/index.d.ts +2 -1
  399. package/dist/components/ui-toast/UIToast.d.ts +1 -0
  400. package/dist/components/ui-toast/UIToast.en.d.ts +1 -0
  401. package/dist/components/ui-toc/UIToc.d.ts +1 -0
  402. package/dist/components/ui-toc/UIToc.en.d.ts +1 -0
  403. package/dist/components/ui-toolbar/UIToolbar.d.ts +13 -10
  404. package/dist/components/ui-toolbar/UIToolbar.en.d.ts +138 -84
  405. package/dist/components/ui-toolbar/UIToolbar.es.d.ts +2 -0
  406. package/dist/components/ui-transition/UITransition.d.ts +1 -0
  407. package/dist/components/ui-transition/UITransition.en.d.ts +1 -0
  408. package/dist/components/ui-tree/UITree.d.ts +162 -0
  409. package/dist/components/ui-tree/UITree.en.d.ts +88 -0
  410. package/dist/components/ui-tree/UITree.es.d.ts +35 -0
  411. package/dist/components/ui-tree/UITreeItem.d.ts +204 -0
  412. package/dist/components/ui-tree/UITreeItem.en.d.ts +142 -0
  413. package/dist/components/ui-tree/UITreeItem.es.d.ts +32 -0
  414. package/dist/components/ui-tree/index.d.ts +3 -0
  415. package/dist/components/ui-tree-diagram/TreeData.d.ts +3 -12
  416. package/dist/components/ui-tree-diagram/TreeLayout.d.ts +54 -21
  417. package/dist/components/ui-tree-diagram/TreeMeasure.d.ts +36 -0
  418. package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +152 -27
  419. package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +47 -7
  420. package/dist/components/ui-tree-diagram/UITreeDiagram.es.d.ts +12 -1
  421. package/dist/components/ui-tree-diagram/UITreeDiagram.types.d.ts +66 -21
  422. package/dist/components/ui-tree-diagram/UITreeNode.d.ts +148 -0
  423. package/dist/components/ui-tree-diagram/UITreeNode.en.d.ts +69 -0
  424. package/dist/components/ui-tree-diagram/UITreeNode.es.d.ts +21 -0
  425. package/dist/components/ui-tree-diagram/index.d.ts +4 -2
  426. package/dist/components/ui-video/UIAudio.d.ts +1 -0
  427. package/dist/components/ui-video/UIAudio.en.d.ts +1 -0
  428. package/dist/components/ui-video/UIVideo.d.ts +1 -0
  429. package/dist/components/ui-video/UIVideo.en.d.ts +1 -0
  430. package/dist/components/ui-visibility/UIVisibility.d.ts +1 -0
  431. package/dist/components/ui-visibility/UIVisibility.en.d.ts +1 -0
  432. package/dist/components/ui-zoom/UIZoom.d.ts +1 -0
  433. package/dist/components/ui-zoom/UIZoom.en.d.ts +1 -0
  434. package/dist/{components.es-DmLzT-Bq.js → components.es-BOa_7gFF.js} +498 -109
  435. package/dist/components.es-BOa_7gFF.js.map +1 -0
  436. package/dist/core.d.ts +3 -1
  437. package/dist/core.js +1082 -511
  438. package/dist/core.js.map +1 -1
  439. package/dist/crisp-VfYZlTph.js +6 -0
  440. package/dist/{crisp-CoZRRDuQ.js.map → crisp-VfYZlTph.js.map} +1 -1
  441. package/dist/docs-components/index.d.ts +1 -0
  442. package/dist/docs-components/ui-docs-index/UIDocsIndex.d.ts +89 -0
  443. package/dist/docs-components/ui-docs-index/UIDocsIndex.en.d.ts +43 -0
  444. package/dist/docs-components/ui-docs-index/index.d.ts +2 -0
  445. package/dist/docs-components/ui-docs-nav/UIDocsNav.d.ts +54 -87
  446. package/dist/docs-components/ui-docs-nav/UIDocsNav.types.d.ts +2 -29
  447. package/dist/docs-components/ui-docs-search/SearchIndex.d.ts +8 -2
  448. package/dist/docs-components/ui-docs-search/UIDocsSearch.d.ts +10 -0
  449. package/dist/docs-components/ui-docs-search/UIDocsSearch.en.d.ts +5 -0
  450. package/dist/elements/AddressParameter.d.ts +87 -0
  451. package/dist/elements/DOMFormControl.d.ts +5 -0
  452. package/dist/elements/FormComponent.d.ts +32 -0
  453. package/dist/elements/LoadableBody.d.ts +6 -1
  454. package/dist/elements/LoadableComponent.d.ts +10 -1
  455. package/dist/elements/RootSettings.d.ts +43 -6
  456. package/dist/elements/SpellUISettings.d.ts +1 -0
  457. package/dist/elements/StickyWatch.d.ts +20 -0
  458. package/dist/elements/elements.types.d.ts +15 -0
  459. package/dist/elements/index.d.ts +2 -0
  460. package/dist/forms.js +93 -63
  461. package/dist/forms.js.map +1 -1
  462. package/dist/fruity-BRVlgJZd.js +6 -0
  463. package/dist/fruity-BRVlgJZd.js.map +1 -0
  464. package/dist/{fruity.theme-BJcMiPl1.js → fruity.theme-CbC7Jyvk.js} +2 -2
  465. package/dist/fruity.theme-CbC7Jyvk.js.map +1 -0
  466. package/dist/glass-x9tbbwVq.js +6 -0
  467. package/dist/glass-x9tbbwVq.js.map +1 -0
  468. package/dist/glass.theme-24wY2wH9.js +6 -0
  469. package/dist/glass.theme-24wY2wH9.js.map +1 -0
  470. package/dist/hot.js +536 -26
  471. package/dist/hot.js.map +1 -1
  472. package/dist/index.d.ts +8 -0
  473. package/dist/index.js +91 -81
  474. package/dist/jsx.d.ts +21149 -10377
  475. package/dist/matrix-QY2gWbJ0.js +6 -0
  476. package/dist/{matrix-CqA59hiF.js.map → matrix-QY2gWbJ0.js.map} +1 -1
  477. package/dist/{matrix.theme-jqQZjcq3.js → matrix.theme-_8xtwhDq.js} +2 -2
  478. package/dist/matrix.theme-_8xtwhDq.js.map +1 -0
  479. package/dist/midnight-BxlTQSfw.js +6 -0
  480. package/dist/{midnight-BnoVOrhC.js.map → midnight-BxlTQSfw.js.map} +1 -1
  481. package/dist/mockup-83ELBuVr.js +6 -0
  482. package/dist/mockup-83ELBuVr.js.map +1 -0
  483. package/dist/mockup.theme-DmpBgGBl.js +6 -0
  484. package/dist/mockup.theme-DmpBgGBl.js.map +1 -0
  485. package/dist/paper-M61nUilz.js +6 -0
  486. package/dist/{paper-CynH8ZuT.js.map → paper-M61nUilz.js.map} +1 -1
  487. package/dist/persist.types-D2m6wD-S.js +9 -0
  488. package/dist/persist.types-D2m6wD-S.js.map +1 -0
  489. package/dist/pop-CxXfytjk.js +6 -0
  490. package/dist/{pop-D2i9V_rG.js.map → pop-CxXfytjk.js.map} +1 -1
  491. package/dist/runtime/DataTooltips.d.ts +75 -0
  492. package/dist/runtime/PropertyControls.d.ts +15 -1
  493. package/dist/runtime/Sources.d.ts +16 -4
  494. package/dist/runtime/Styles.d.ts +11 -0
  495. package/dist/runtime/Themes.d.ts +10 -4
  496. package/dist/runtime/UIRuntime.d.ts +4 -1
  497. package/dist/runtime/index.d.ts +1 -1
  498. package/dist/runtime/runtime.types.d.ts +18 -85
  499. package/dist/spell-By5Y3jKP.js +6 -0
  500. package/dist/{spell-BFtLICm7.js.map → spell-By5Y3jKP.js.map} +1 -1
  501. package/dist/{spell.theme-B7AU7SQX.js → spell.theme-DxGj7qHx.js} +2 -2
  502. package/dist/spell.theme-DxGj7qHx.js.map +1 -0
  503. package/dist/styles/CodeThemeFile.d.ts +73 -0
  504. package/dist/styles/StyleGenerator.d.ts +6 -0
  505. package/dist/styles/styles.en.d.ts +141 -3
  506. package/dist/styles/styles.types.d.ts +2 -0
  507. package/dist/{styles.en-RLpYiO5_.js → styles.en-CUUxNwHo.js} +71 -14
  508. package/dist/styles.en-CUUxNwHo.js.map +1 -0
  509. package/dist/styles.js +13 -13
  510. package/dist/styles.js.map +1 -1
  511. package/dist/ui-accordion.js +54 -53
  512. package/dist/ui-accordion.js.map +1 -1
  513. package/dist/ui-action.js +20 -19
  514. package/dist/ui-action.js.map +1 -1
  515. package/dist/ui-ad.js +5 -4
  516. package/dist/ui-ad.js.map +1 -1
  517. package/dist/ui-breadcrumbs.js +15 -13
  518. package/dist/ui-breadcrumbs.js.map +1 -1
  519. package/dist/ui-button.js +132 -125
  520. package/dist/ui-button.js.map +1 -1
  521. package/dist/ui-calendar.js +208 -206
  522. package/dist/ui-calendar.js.map +1 -1
  523. package/dist/ui-card.js +260 -98
  524. package/dist/ui-card.js.map +1 -1
  525. package/dist/ui-checkbox.js +95 -81
  526. package/dist/ui-checkbox.js.map +1 -1
  527. package/dist/ui-code.js +25 -24
  528. package/dist/ui-code.js.map +1 -1
  529. package/dist/ui-comment.js +14 -12
  530. package/dist/ui-comment.js.map +1 -1
  531. package/dist/ui-components.js +7 -6
  532. package/dist/ui-components.js.map +1 -1
  533. package/dist/ui-container.js +24 -12
  534. package/dist/ui-container.js.map +1 -1
  535. package/dist/ui-diagram.js +1328 -0
  536. package/dist/ui-diagram.js.map +1 -0
  537. package/dist/ui-dimension.js +779 -0
  538. package/dist/ui-dimension.js.map +1 -0
  539. package/dist/ui-dimmer.js +36 -34
  540. package/dist/ui-dimmer.js.map +1 -1
  541. package/dist/ui-divider.js +7 -5
  542. package/dist/ui-divider.js.map +1 -1
  543. package/dist/ui-dropdown.js +107 -105
  544. package/dist/ui-dropdown.js.map +1 -1
  545. package/dist/ui-embed.js +36 -35
  546. package/dist/ui-embed.js.map +1 -1
  547. package/dist/ui-emoji.js +10 -9
  548. package/dist/ui-emoji.js.map +1 -1
  549. package/dist/ui-example.js +63 -61
  550. package/dist/ui-example.js.map +1 -1
  551. package/dist/ui-feed.js +12 -10
  552. package/dist/ui-feed.js.map +1 -1
  553. package/dist/ui-flag.js +10 -9
  554. package/dist/ui-flag.js.map +1 -1
  555. package/dist/ui-flyout.js +7 -6
  556. package/dist/ui-flyout.js.map +1 -1
  557. package/dist/ui-form.js +244 -162
  558. package/dist/ui-form.js.map +1 -1
  559. package/dist/ui-grid.js +21 -18
  560. package/dist/ui-grid.js.map +1 -1
  561. package/dist/ui-icon-picker.js +46 -44
  562. package/dist/ui-icon-picker.js.map +1 -1
  563. package/dist/ui-icon.js +17 -14
  564. package/dist/ui-icon.js.map +1 -1
  565. package/dist/ui-image.js +93 -55
  566. package/dist/ui-image.js.map +1 -1
  567. package/dist/ui-include.js +18 -17
  568. package/dist/ui-include.js.map +1 -1
  569. package/dist/ui-input.js +154 -112
  570. package/dist/ui-input.js.map +1 -1
  571. package/dist/ui-item.js +152 -102
  572. package/dist/ui-item.js.map +1 -1
  573. package/dist/ui-items.js +9 -8
  574. package/dist/ui-items.js.map +1 -1
  575. package/dist/ui-json.js +115 -0
  576. package/dist/ui-json.js.map +1 -0
  577. package/dist/ui-keys.js +1 -1
  578. package/dist/ui-label.js +18 -15
  579. package/dist/ui-label.js.map +1 -1
  580. package/dist/ui-list.js +7 -5
  581. package/dist/ui-list.js.map +1 -1
  582. package/dist/ui-loader.js +7 -6
  583. package/dist/ui-loader.js.map +1 -1
  584. package/dist/ui-markdown.js +975 -83
  585. package/dist/ui-markdown.js.map +1 -1
  586. package/dist/ui-menu.js +329 -196
  587. package/dist/ui-menu.js.map +1 -1
  588. package/dist/ui-message.js +20 -18
  589. package/dist/ui-message.js.map +1 -1
  590. package/dist/ui-modal.js +46 -45
  591. package/dist/ui-modal.js.map +1 -1
  592. package/dist/ui-nag.js +19 -18
  593. package/dist/ui-nag.js.map +1 -1
  594. package/dist/ui-page.js +8 -7
  595. package/dist/ui-page.js.map +1 -1
  596. package/dist/ui-panel.js +28 -17
  597. package/dist/ui-panel.js.map +1 -1
  598. package/dist/ui-parts.js +66 -52
  599. package/dist/ui-parts.js.map +1 -1
  600. package/dist/ui-placeholder.js +21 -16
  601. package/dist/ui-placeholder.js.map +1 -1
  602. package/dist/ui-popup.js +113 -84
  603. package/dist/ui-popup.js.map +1 -1
  604. package/dist/ui-progress.js +9 -7
  605. package/dist/ui-progress.js.map +1 -1
  606. package/dist/ui-property-editor.js +706 -203
  607. package/dist/ui-property-editor.js.map +1 -1
  608. package/dist/ui-quote.js +5 -4
  609. package/dist/ui-quote.js.map +1 -1
  610. package/dist/ui-rail.js +5 -4
  611. package/dist/ui-rail.js.map +1 -1
  612. package/dist/ui-rating.js +31 -29
  613. package/dist/ui-rating.js.map +1 -1
  614. package/dist/ui-reveal.js +7 -6
  615. package/dist/ui-reveal.js.map +1 -1
  616. package/dist/ui-root.js +324 -158
  617. package/dist/ui-root.js.map +1 -1
  618. package/dist/ui-search.js +210 -168
  619. package/dist/ui-search.js.map +1 -1
  620. package/dist/ui-section.js +167 -130
  621. package/dist/ui-section.js.map +1 -1
  622. package/dist/ui-segment.js +15 -12
  623. package/dist/ui-segment.js.map +1 -1
  624. package/dist/ui-select.js +83 -81
  625. package/dist/ui-select.js.map +1 -1
  626. package/dist/ui-shape.js +86 -58
  627. package/dist/ui-shape.js.map +1 -1
  628. package/dist/ui-sidebar.js +59 -56
  629. package/dist/ui-sidebar.js.map +1 -1
  630. package/dist/ui-sides.js +325 -0
  631. package/dist/ui-sides.js.map +1 -0
  632. package/dist/ui-site-nav.js +329 -0
  633. package/dist/ui-site-nav.js.map +1 -0
  634. package/dist/ui-site-tabs.js +177 -0
  635. package/dist/ui-site-tabs.js.map +1 -0
  636. package/dist/ui-slider.js +84 -81
  637. package/dist/ui-slider.js.map +1 -1
  638. package/dist/ui-space.js +7 -6
  639. package/dist/ui-space.js.map +1 -1
  640. package/dist/ui-split-panel.js +298 -0
  641. package/dist/ui-split-panel.js.map +1 -0
  642. package/dist/ui-stack.js +47 -23
  643. package/dist/ui-stack.js.map +1 -1
  644. package/dist/ui-statistic.js +15 -13
  645. package/dist/ui-statistic.js.map +1 -1
  646. package/dist/ui-step.js +31 -29
  647. package/dist/ui-step.js.map +1 -1
  648. package/dist/ui-sticky.js +7 -6
  649. package/dist/ui-sticky.js.map +1 -1
  650. package/dist/ui-tab.js +230 -138
  651. package/dist/ui-tab.js.map +1 -1
  652. package/dist/ui-table.js +724 -162
  653. package/dist/ui-table.js.map +1 -1
  654. package/dist/ui-terms.js +12 -10
  655. package/dist/ui-terms.js.map +1 -1
  656. package/dist/ui-text.js +53 -28
  657. package/dist/ui-text.js.map +1 -1
  658. package/dist/ui-theme-editor.js +1018 -1545
  659. package/dist/ui-theme-editor.js.map +1 -1
  660. package/dist/ui-theme-menu-CuIjr8Ou.js +1493 -0
  661. package/dist/ui-theme-menu-CuIjr8Ou.js.map +1 -0
  662. package/dist/ui-toast.js +45 -44
  663. package/dist/ui-toast.js.map +1 -1
  664. package/dist/ui-toc.js +75 -74
  665. package/dist/ui-toc.js.map +1 -1
  666. package/dist/ui-toolbar.js +51 -73
  667. package/dist/ui-toolbar.js.map +1 -1
  668. package/dist/ui-transition.js +12 -11
  669. package/dist/ui-transition.js.map +1 -1
  670. package/dist/ui-tree-diagram.js +676 -197
  671. package/dist/ui-tree-diagram.js.map +1 -1
  672. package/dist/ui-tree.js +625 -0
  673. package/dist/ui-tree.js.map +1 -0
  674. package/dist/ui-video.js +13 -11
  675. package/dist/ui-video.js.map +1 -1
  676. package/dist/ui-visibility.js +26 -25
  677. package/dist/ui-visibility.js.map +1 -1
  678. package/dist/ui-zoom.js +79 -78
  679. package/dist/ui-zoom.js.map +1 -1
  680. package/dist/util/TopLayerTip.d.ts +28 -0
  681. package/dist/util/index.d.ts +5 -2
  682. package/dist/vocabulary/DefaultValues.d.ts +34 -0
  683. package/dist/vocabulary/SharedVocabulary.d.ts +4 -0
  684. package/dist/vocabulary/SharedVocabulary.es.d.ts +7 -0
  685. package/dist/vocabulary/ValueSets.d.ts +18 -0
  686. package/dist/vocabulary/Vocabulary.d.ts +1 -0
  687. package/dist/vocabulary/defaults.generated.d.ts +6 -0
  688. package/dist/vocabulary/index.d.ts +1 -0
  689. package/package.json +1 -1
  690. package/dist/MarkdownEngine-CbuT9Mjc.js.map +0 -1
  691. package/dist/PrefStore-CeaTtjTz.js.map +0 -1
  692. package/dist/UIButton-XkfGqgh6.js +0 -6
  693. package/dist/UIButton-XkfGqgh6.js.map +0 -1
  694. package/dist/UIInput-BUudZstW.js +0 -6
  695. package/dist/UIInput-BUudZstW.js.map +0 -1
  696. package/dist/UIKeys-DJF2TIKE.js.map +0 -1
  697. package/dist/UILabel-C1jy3Yl8.js +0 -6
  698. package/dist/UILabel-C1jy3Yl8.js.map +0 -1
  699. package/dist/UIMenu-Btd-8V3A.js +0 -42
  700. package/dist/UIMenu-Btd-8V3A.js.map +0 -1
  701. package/dist/UIRuntime-BBuehGly.js.map +0 -1
  702. package/dist/components.es-DmLzT-Bq.js.map +0 -1
  703. package/dist/crisp-CoZRRDuQ.js +0 -6
  704. package/dist/fruity-CQFYeRlh.js +0 -6
  705. package/dist/fruity-CQFYeRlh.js.map +0 -1
  706. package/dist/fruity.theme-BJcMiPl1.js.map +0 -1
  707. package/dist/glass-CAfW11kL.js +0 -6
  708. package/dist/glass-CAfW11kL.js.map +0 -1
  709. package/dist/glass.theme-DQcBbtCW.js +0 -6
  710. package/dist/glass.theme-DQcBbtCW.js.map +0 -1
  711. package/dist/matrix-CqA59hiF.js +0 -6
  712. package/dist/matrix.theme-jqQZjcq3.js.map +0 -1
  713. package/dist/midnight-BnoVOrhC.js +0 -6
  714. package/dist/paper-CynH8ZuT.js +0 -6
  715. package/dist/persist.types-CsZxS8TG.js +0 -9
  716. package/dist/persist.types-CsZxS8TG.js.map +0 -1
  717. package/dist/pop-D2i9V_rG.js +0 -6
  718. package/dist/spell-BFtLICm7.js +0 -6
  719. package/dist/spell.theme-B7AU7SQX.js.map +0 -1
  720. package/dist/styles.en-RLpYiO5_.js.map +0 -1
  721. package/dist/ui-theme-menu-DyKZygpV.js +0 -921
  722. package/dist/ui-theme-menu-DyKZygpV.js.map +0 -1
@@ -1,921 +0,0 @@
1
- import { n as e } from "./rolldown-runtime-CYGlBXrH.js";
2
- import { Bt as t, D as n, Dt as r, Ft as i, It as a, Lt as o, Rt as s, UI as c, UIComponent as l, Vt as u, Warnings as d, beforeNextPaint as f, cssState as p, derived as m, once as h, p as g, proto as _, protoMerged as v, state as y, whileConnected as ee, zt as b } from "./core.js";
3
- import "./ui-item.js";
4
- import "./ui-dropdown.js";
5
- import "./ui-icon.js";
6
- import "./ui-popup.js";
7
- import { t as x } from "./PrefStore-CeaTtjTz.js";
8
- import { a as te, i as ne, n as S, r as re, t as C } from "./persist.types-CsZxS8TG.js";
9
- import { For as w, Show as T } from "solid-js";
10
- import { claimElement as ie, className as E, createComponent as D, delegateEvents as ae, effect as O, getOwner as k, insert as A, isServer as j, readShallow as M, ref as oe, setAttribute as N, template as P } from "@solidjs/web";
11
- //#region ../src/util/persist/ColorScheme.ts
12
- var se = "scheme", ce = "both", F = Symbol("not read"), I = class ColorScheme {
13
- static chosen() {
14
- return ColorScheme.fromAddress() ?? schemeOf(x.getAt("spell-site:scheme")) ?? ColorScheme.moveOldKeys();
15
- }
16
- static choose(e) {
17
- ColorScheme.addressed = void 0, x.setAt(S, e), ColorScheme.apply(e);
18
- }
19
- static apply(e, t) {
20
- t ??= globalThis.document?.documentElement, t && (t.classList.toggle(C.light, e === "light"), t.classList.toggle(C.dark, e === "dark"), e ? t.style.colorScheme = e : t.style.removeProperty("color-scheme"));
21
- }
22
- static rereadAddress() {
23
- ColorScheme.addressed = F;
24
- }
25
- static addressed = F;
26
- static fromAddress() {
27
- if (ColorScheme.addressed !== F) return ColorScheme.addressed;
28
- let e = globalThis.location?.search ?? "", t = new URLSearchParams(e).get(se) || void 0, n = schemeOf(t);
29
- return t && !n && t !== ce && console.warn(`ColorScheme: the address's scheme \`${t}\` is neither light nor dark; ignored`), ColorScheme.addressed = n;
30
- }
31
- static osScheme() {
32
- return typeof matchMedia == "function" && matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
33
- }
34
- static forcedBy(e) {
35
- if (e.contains(C.dark)) return "dark";
36
- if (e.contains(C.light)) return "light";
37
- }
38
- static shown() {
39
- let e = globalThis.document?.documentElement;
40
- return (e && ColorScheme.forcedBy(e.classList)) ?? ColorScheme.chosen() ?? ColorScheme.osScheme();
41
- }
42
- static watch(e) {
43
- if (typeof window > "u" || typeof matchMedia != "function") return () => {};
44
- let t = matchMedia(ne), onOs = () => e("os"), onStorage = (t) => {
45
- (t.key === "spell-site:scheme" || t.key === null) && (ColorScheme.apply(ColorScheme.chosen()), e("chosen"));
46
- };
47
- return t.addEventListener("change", onOs), window.addEventListener("storage", onStorage), () => {
48
- t.removeEventListener("change", onOs), window.removeEventListener("storage", onStorage);
49
- };
50
- }
51
- static moveOldKeys() {
52
- let e;
53
- for (let t of te) e ??= schemeOf(x.getAt(t)), x.setAt(t, void 0);
54
- return e && x.setAt(S, e), e;
55
- }
56
- };
57
- function schemeOf(e) {
58
- return re.includes(e) ? e : void 0;
59
- }
60
- //#endregion
61
- //#region src/components/ui-theme-menu/UIThemeMenu.types.ts
62
- var le = [
63
- "light",
64
- "dark",
65
- "system"
66
- ], ue = "spell", de = "ui-scheme-switching", fe = {
67
- scheme: S,
68
- theme: "spell-ui-site:theme"
69
- }, pe, me, L, he, R = {
70
- theme: "theme",
71
- scheme: "scheme"
72
- };
73
- me = [y], pe = [h];
74
- var z = class _ThemePreference {
75
- static site({ defaultTheme: e, themeKey: t }) {
76
- _ThemePreference.defaultTheme = e, _ThemePreference.themeKey = t, _ThemePreference.current && _ThemePreference.update(_ThemePreference.read());
77
- }
78
- static get chosen() {
79
- return _ThemePreference.current ??= _ThemePreference.read();
80
- }
81
- static osScheme() {
82
- return I.osScheme();
83
- }
84
- static shownScheme(e = _ThemePreference.chosen.scheme) {
85
- return e === "system" ? _ThemePreference.osScheme() : e;
86
- }
87
- static async setTheme(e) {
88
- _ThemePreference.update({
89
- ..._ThemePreference.chosen,
90
- theme: e
91
- }), _ThemePreference.store(_ThemePreference.themeKey, e === _ThemePreference.defaultTheme ? void 0 : e), await _ThemePreference.applyTheme(e);
92
- }
93
- static setScheme(e) {
94
- _ThemePreference.update({
95
- ..._ThemePreference.chosen,
96
- scheme: e
97
- }), _ThemePreference.withoutTransitions(document.documentElement), I.choose(chosenFor(e));
98
- }
99
- static flipScheme() {
100
- let e = _ThemePreference.shownScheme() === "dark" ? "light" : "dark";
101
- return _ThemePreference.setScheme(e), e;
102
- }
103
- static applyScheme(e, t = document.documentElement) {
104
- _ThemePreference.withoutTransitions(t), I.apply(chosenFor(e), t);
105
- }
106
- static async restore() {
107
- let { theme: e, scheme: t } = _ThemePreference.chosen;
108
- _ThemePreference.applyScheme(t), _ThemePreference.watch(), await _ThemePreference.applyTheme(e);
109
- }
110
- static subscribe(e) {
111
- return _ThemePreference.watch(), _ThemePreference.listeners.add(e), () => {
112
- _ThemePreference.listeners.delete(e);
113
- };
114
- }
115
- static osChanged() {
116
- _ThemePreference.tell(_ThemePreference.chosen);
117
- }
118
- static async wear(e) {
119
- _ThemePreference.worn = e, await _ThemePreference.applyTheme(_ThemePreference.chosen.theme);
120
- }
121
- static addressWith(e, { theme: t, scheme: n }) {
122
- let r = new URL(e, typeof location > "u" ? "http://localhost" : location.href);
123
- return t && r.searchParams.set(R.theme, t), n && r.searchParams.set(R.scheme, n), r.href;
124
- }
125
- static reset() {
126
- _ThemePreference.current = void 0, _ThemePreference.addressed = void 0, I.rereadAddress();
127
- }
128
- static get fromAddress() {
129
- if (_ThemePreference.addressed) return _ThemePreference.addressed;
130
- let e = new URLSearchParams(typeof location > "u" ? "" : location.search);
131
- return _ThemePreference.addressed = { theme: e.get(R.theme) || void 0 };
132
- }
133
- static watch() {
134
- I.watch((e) => {
135
- if (e === "os") return _ThemePreference.osChanged();
136
- _ThemePreference.update({
137
- ..._ThemePreference.chosen,
138
- scheme: I.chosen() ?? "system"
139
- });
140
- });
141
- }
142
- static withoutTransitions(e) {
143
- typeof requestAnimationFrame == "function" && (e.classList.add(de), f(() => f(() => e.classList.remove(de))));
144
- }
145
- static update(e) {
146
- let t = _ThemePreference.chosen;
147
- _ThemePreference.current = e, (t.theme !== e.theme || t.scheme !== e.scheme) && _ThemePreference.tell(e);
148
- }
149
- static tell(e) {
150
- for (let t of [..._ThemePreference.listeners]) t(e);
151
- }
152
- static async applyTheme(e) {
153
- let { themes: t } = await c.load(), n = _ThemePreference.knownName(t, e);
154
- if (n !== e && e === _ThemePreference.fromAddress.theme) return _ThemePreference.applyAddressed(t, e);
155
- if (n !== e) return _ThemePreference.setTheme(n);
156
- await t.apply(_ThemePreference.worn ?? e);
157
- }
158
- static async applyAddressed(e, t) {
159
- let n = r.nameNow(e, t), i = e.own.includes(n);
160
- i || d.warn("ThemePreference", `the address's theme \`${t}\` isn't a theme; ignored`), _ThemePreference.addressed = {
161
- ..._ThemePreference.fromAddress,
162
- theme: i ? n : void 0
163
- };
164
- let a = _ThemePreference.read().theme;
165
- _ThemePreference.update({
166
- ..._ThemePreference.chosen,
167
- theme: a
168
- }), await _ThemePreference.applyTheme(a);
169
- }
170
- static knownName(e, t) {
171
- let n = r.nameNow(e, t);
172
- return e.own.includes(n) ? n : _ThemePreference.defaultTheme;
173
- }
174
- static read() {
175
- return {
176
- theme: _ThemePreference.fromAddress.theme || _ThemePreference.load(_ThemePreference.themeKey) || _ThemePreference.defaultTheme,
177
- scheme: I.chosen() ?? "system"
178
- };
179
- }
180
- static load(e) {
181
- let t = x.getAt(e);
182
- return typeof t == "string" ? t : void 0;
183
- }
184
- static store(e, t) {
185
- x.setAt(e, t);
186
- }
187
- };
188
- L = o(null), he = /* @__PURE__ */ new WeakMap(), i(L, 12, "current", me, z, he), i(L, 9, "watch", pe, z), a(L, z), u(L, 3, z), s(z, "ThemePreference"), t(z, "defaultTheme", ue), t(z, "themeKey", fe.theme), t(z, "HEAD_SCRIPT", `try{var l=localStorage,d=document.documentElement,s=(/[?&]${R.scheme}=(light|dark)(&|$)/.exec(location.search)||[])[1]||` + [S, ...te].map((e) => `l.getItem(${JSON.stringify(e)})`).join("||") + ";if(s===\"light\"||s===\"dark\"){d.classList.add(\"ui-\"+s);d.style.colorScheme=s}}catch(e){}"), b(z, he, u(L, 8, z)), u(L, 11, z), t(z, "addressed"), t(z, "worn"), t(z, "listeners", /* @__PURE__ */ new Set());
189
- var B = z;
190
- function chosenFor(e) {
191
- return e === "system" ? void 0 : e;
192
- }
193
- s(chosenFor, "chosenFor");
194
- //#endregion
195
- //#region src/components/ui-theme-editor/BenchAddress.ts
196
- var ge = class BenchAddress {
197
- static read() {
198
- if (typeof location > "u") return {};
199
- let e = new URLSearchParams(location.search), t = e.get(V.scheme), n = e.get(V.pages);
200
- return {
201
- theme: e.get(V.theme) || void 0,
202
- schemes: ve.includes(t) ? t : void 0,
203
- isSwapped: e.has(V.swap) ? e.get(V.swap) === _e : void 0,
204
- pages: n ? n.split(",").filter(Boolean) : void 0,
205
- device: e.has(V.phone) ? e.get(V.phone) === _e ? "phone" : "desk" : void 0
206
- };
207
- }
208
- static write(e) {
209
- if (typeof location > "u") return;
210
- let t = new URL(location.href);
211
- t.searchParams.set(V.theme, e.theme), t.searchParams.set(V.scheme, e.schemes), BenchAddress.setOn(t, V.swap, e.isSwapped && e.schemes === "both"), t.searchParams.set(V.pages, e.pages.join(",")), BenchAddress.setOn(t, V.phone, e.device === "phone");
212
- let n = t.href.replace(/%2C/g, ",");
213
- n !== location.href && history.replaceState(history.state, "", n);
214
- }
215
- static withPage(e, t) {
216
- let n = new URL(e, typeof location > "u" ? "http://localhost" : location.href);
217
- return n.searchParams.set(V.pages, t), n.href;
218
- }
219
- static setOn(e, t, n) {
220
- n ? e.searchParams.set(t, _e) : e.searchParams.delete(t);
221
- }
222
- }, V = {
223
- theme: "theme",
224
- scheme: "scheme",
225
- swap: "swap",
226
- pages: "pages",
227
- phone: "phone"
228
- }, _e = "1", ve = [
229
- "light",
230
- "dark",
231
- "both"
232
- ], ThemeMenu = class {
233
- themes;
234
- text;
235
- constructor({ themes: e, text: t }) {
236
- this.themes = e, this.text = t;
237
- }
238
- get entries() {
239
- return this.themes.map((e) => {
240
- let t = ye[e];
241
- return {
242
- value: e,
243
- text: this.titleFor(e),
244
- ...t && { description: this.text(t) }
245
- };
246
- });
247
- }
248
- titleFor(e) {
249
- return r.titleOf(e);
250
- }
251
- labelFor(e) {
252
- return this.text("themeLabel", { title: this.titleFor(e) });
253
- }
254
- }, ye = {
255
- spell: "spellDescription",
256
- glass: "glassDescription",
257
- fruity: "fruityDescription",
258
- merlot: "merlotDescription",
259
- paper: "paperDescription",
260
- midnight: "midnightDescription",
261
- crisp: "crispDescription",
262
- pop: "popDescription",
263
- matrix: "matrixDescription"
264
- }, be = {
265
- tag: "ui-theme-menu",
266
- topics: [
267
- "controls",
268
- "selection",
269
- "menus"
270
- ],
271
- aka: [
272
- "theme picker",
273
- "theme switcher",
274
- "dark mode toggle",
275
- "colour scheme",
276
- "appearance",
277
- "skin"
278
- ],
279
- skeleton: "inline 5 x 2.25",
280
- noun: "themes",
281
- description: "A theme menu switches the page between light and dark, and picks its theme from Spell's own, and remembers both for the next page.",
282
- attributes: [
283
- {
284
- name: "show",
285
- kind: "enum",
286
- values: [
287
- "both",
288
- "theme",
289
- "scheme"
290
- ],
291
- default: "both",
292
- description: "Which controls to show: `both` (the palette button, whose overlay picks the theme and light / dark), `scheme` (a light / dark button alone) or `theme` (a theme dropdown)."
293
- },
294
- {
295
- name: "size",
296
- kind: "size",
297
- description: "Size of the buttons (or the dropdown), `mini` ... `massive`; `medium` is the default."
298
- },
299
- {
300
- name: "inverted",
301
- kind: "keyOnly",
302
- description: "For dark backgrounds (a dark header or side panel): light buttons, an inverted dropdown."
303
- },
304
- {
305
- name: "compact",
306
- kind: "keyOnly",
307
- description: "With `show=\"theme\"`: the dropdown is an icon-only palette button, its text (`Spell theme`) its tooltip and name, for a masthead's row of icon buttons."
308
- },
309
- {
310
- name: "bench",
311
- kind: "string",
312
- description: "Where the site with the theme bench starts (`http://127.0.0.1:4747`), for its Theme bench row, which opens Spell UI's theme bench page there in a new window, in the theme chosen; none given: this page's own site; `none`: no row."
313
- },
314
- {
315
- name: "bench-page",
316
- kind: "string",
317
- description: "Which of the theme bench's pages it opens showing alone (`app`, `epic`, `ui`, `notebook`): the place this menu is on; none given: read from the page's address, else `app`."
318
- }
319
- ],
320
- events: [{
321
- name: "ui-changed",
322
- detail: "{ theme: string, scheme: 'light' | 'dark' | 'system', shown: 'light' | 'dark', originalEvent?: Event }",
323
- description: "The viewer picked a theme or a scheme here; `theme` is a `UI.themes` name; `scheme` is `system` while following the OS, and `shown` the scheme the page shows. Fired after the choice is stored and while its sheets load."
324
- }],
325
- slots: [{
326
- name: "end",
327
- description: "At the foot of the palette's panel, under the themes and Theme bench: a row of the page's own, e.g. the Spell editor's 'Edit theme...'. Styled as a theme's row. Not in the theme list's arrow keys."
328
- }],
329
- parts: [
330
- {
331
- name: "controls",
332
- description: "The wrapper around the controls."
333
- },
334
- {
335
- name: "scheme",
336
- description: "The light / dark `<button>` (`show=\"scheme\"`): a sun or a moon, the scheme the page shows."
337
- },
338
- {
339
- name: "palette",
340
- description: "The `<button>` opening the overlay."
341
- },
342
- {
343
- name: "overlay",
344
- description: "The overlay, a `<ui-popup open-on=\"click\">`; its box is `::part(popup)`."
345
- },
346
- {
347
- name: "menu",
348
- description: "The overlay's theme list (`role=menu`)."
349
- },
350
- {
351
- name: "option",
352
- description: "One theme in the list (`role=menuitemradio`)."
353
- },
354
- {
355
- name: "schemes",
356
- description: "The overlay's Light | Dark | Auto control (`role=radiogroup`)."
357
- },
358
- {
359
- name: "scheme-option",
360
- description: "One choice in it (`role=radio`): an icon and its name."
361
- },
362
- {
363
- name: "tip",
364
- description: "A button's tooltip, a `<ui-popup inverted size=\"mini\">`."
365
- },
366
- {
367
- name: "theme",
368
- description: "The theme `<ui-dropdown>` (`show=\"theme\"`)."
369
- },
370
- {
371
- name: "bench",
372
- description: "The overlay's Theme bench row, a link opening it in a new window."
373
- }
374
- ],
375
- states: [
376
- {
377
- name: "dark",
378
- description: "The page shows the dark scheme (chosen, or the OS's while following it)."
379
- },
380
- {
381
- name: "following",
382
- description: "The scheme follows the OS (nothing chosen, or Auto)."
383
- },
384
- {
385
- name: "open",
386
- description: "The overlay is open."
387
- }
388
- ],
389
- texts: [
390
- {
391
- key: "themeLabel",
392
- text: "{title} theme",
393
- description: "The dropdown's text: the chosen theme."
394
- },
395
- {
396
- key: "themeName",
397
- text: "Theme",
398
- description: "Accessible name of the theme dropdown, and the overlay's header."
399
- },
400
- {
401
- key: "spellDescription",
402
- text: "The Spell brand",
403
- description: "Under `Spell` in the list."
404
- },
405
- {
406
- key: "glassDescription",
407
- text: "Translucent glass on a solid page",
408
- description: "Under `Glass` in the list."
409
- },
410
- {
411
- key: "fruityDescription",
412
- text: "Glass on a pastel wallpaper",
413
- description: "Under `Fruity` in the list."
414
- },
415
- {
416
- key: "merlotDescription",
417
- text: "A wine-dark studio",
418
- description: "Under `Merlot` in the list."
419
- },
420
- {
421
- key: "paperDescription",
422
- text: "Warm and bookish, for reading",
423
- description: "Under `Paper` in the list."
424
- },
425
- {
426
- key: "midnightDescription",
427
- text: "Dark first, calm and glowing",
428
- description: "Under `Midnight` in the list."
429
- },
430
- {
431
- key: "crispDescription",
432
- text: "High contrast, for anyone who needs it",
433
- description: "Under `Crisp` in the list."
434
- },
435
- {
436
- key: "popDescription",
437
- text: "Playful and colourful",
438
- description: "Under `Pop` in the list."
439
- },
440
- {
441
- key: "matrixDescription",
442
- text: "A dark ops console",
443
- description: "Under `Matrix` in the list."
444
- },
445
- {
446
- key: "toDark",
447
- text: "Switch to dark",
448
- description: "The light / dark button's name, while the page is light."
449
- },
450
- {
451
- key: "toLight",
452
- text: "Switch to light",
453
- description: "The light / dark button's name, while the page is dark."
454
- },
455
- {
456
- key: "palette",
457
- text: "Theme and light / dark: {title}, {scheme}",
458
- description: "The palette button's name and tooltip: the chosen theme and scheme (`light`, `dark` or `auto`'s text)."
459
- },
460
- {
461
- key: "overlayName",
462
- text: "Theme and colour scheme",
463
- description: "Accessible name of the overlay."
464
- },
465
- {
466
- key: "schemeName",
467
- text: "Light or dark",
468
- description: "Accessible name of the overlay's scheme control."
469
- },
470
- {
471
- key: "light",
472
- text: "Light",
473
- description: "The scheme control's light choice."
474
- },
475
- {
476
- key: "dark",
477
- text: "Dark",
478
- description: "The scheme control's dark choice."
479
- },
480
- {
481
- key: "auto",
482
- text: "Auto",
483
- description: "The scheme control's choice that follows the device's scheme."
484
- },
485
- {
486
- key: "bench",
487
- text: "Theme bench",
488
- description: "The row opening the theme bench."
489
- },
490
- {
491
- key: "benchTip",
492
- text: "Open the theme bench in a new window, in this theme",
493
- description: "Its tooltip."
494
- }
495
- ]
496
- }, xe = "@layer ui.components.theme-menu.types{:host{vertical-align:middle;display:inline-block}.ui.themes{--_ui-theme-menu-gap:var(--ui-theme-menu-gap,.25em);--_ui-theme-menu-button-size:var(--ui-theme-menu-button-size,1.75em);--_ui-theme-menu-overlay-width:var(--ui-theme-menu-overlay-width,17em);--_ui-theme-menu-overlay-radius:var(--ui-theme-menu-overlay-radius,14px);--_theme-menu-row-radius:calc(var(--_ui-theme-menu-overlay-radius) - 1px - .375em);--_ui-theme-menu-swap-duration:var(--ui-theme-menu-swap-duration,.28s);--_ui-theme-menu-choice-shadow:var(--ui-theme-menu-choice-shadow,0 1px 2px oklch(0% 0 0/.16));--_ui-theme-menu-inverted-ink:var(--ui-theme-menu-inverted-ink,oklch(100% 0 0));align-items:center;gap:var(--_ui-theme-menu-gap);font-size:calc(var(--ui-font-size) * var(--ui-scale,1));flex-wrap:wrap;display:inline-flex}}@layer ui.components.theme-menu.content{[part~=theme]{flex:0 auto;min-width:0}.button{box-sizing:border-box;width:var(--_ui-theme-menu-button-size);height:var(--_ui-theme-menu-button-size);color:var(--ui-text-muted);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;border-radius:50%;flex:none;place-items:center;margin:0;padding:0;line-height:1;display:inline-grid;position:relative}.button:hover{background:color-mix(in oklab, currentColor 10%, transparent);color:var(--ui-text-color)}.button:focus-visible{outline:var(--ui-focus-width,2px) solid var(--ui-focus-color);outline-offset:var(--ui-focus-offset,2px)}.button:active{scale:.94}.glyph{pointer-events:none;grid-area:1/1;place-items:center;width:1em;height:1em;font-size:1em;display:grid}.scheme .glyph{opacity:0;filter:blur(4px);scale:.25}.light.button .light.glyph,.dark.button .dark.glyph{opacity:1;filter:blur();scale:1}.overlay::part(popup){box-sizing:border-box;width:var(--_ui-theme-menu-overlay-width);border:1px solid var(--ui-border-color);border-radius:var(--_ui-theme-menu-overlay-radius);background:var(--ui-surface);max-width:calc(100vw - 16px);box-shadow:var(--ui-shadow-floating);color:var(--ui-text-color);font-size:calc(var(--ui-font-size) * .875);transform-origin:100% 0;padding:.375em;line-height:1.3}.panel{flex-direction:column;gap:1px;display:flex}.heading,.menu>.header{color:var(--ui-text-muted);font-family:var(--ui-font-family-mono,ui-monospace, monospace);letter-spacing:.08em;text-transform:uppercase;padding:.5em .75em .375em;font-size:.75em;font-weight:500}.menu>.header{padding-top:.25em}.menu{overscroll-behavior:contain;scrollbar-width:thin;flex-direction:column;gap:1px;max-height:min(24em,55vh);display:flex;overflow-y:auto}.divider{background:var(--ui-border-color);flex:none;height:1px;margin:.375em .5em}.panel>.bench,.panel>slot::slotted(*){box-sizing:border-box;border-radius:var(--_theme-menu-row-radius);width:100%;color:inherit;font:inherit;text-align:start;cursor:pointer;background:0 0;border:0;grid-template-columns:1.125em minmax(0,1fr);align-items:center;column-gap:.5em;margin:0;padding:.5em .625em;display:grid}.panel:not(:has(>.bench))>slot::slotted(:first-child){background-image:linear-gradient(var(--ui-border-color), var(--ui-border-color));background-position:top;background-repeat:no-repeat;background-size:calc(100% - 1em) 1px;margin-block-start:.375em;padding-block-start:.875em}.panel>.bench{text-decoration:none}.panel>.bench>ui-icon{--ui-icon-width:1.125em;--ui-icon-distance:0}.panel>.bench:hover,.panel>slot::slotted(:hover){background-color:var(--ui-surface-muted)}.schemes{border-radius:var(--_theme-menu-row-radius);background:var(--ui-surface-strong);grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;margin:0 0 .125em;padding:2px;display:grid}.choice{box-sizing:border-box;border-radius:calc(var(--_theme-menu-row-radius) - 2px);min-width:0;color:var(--ui-text-muted);font:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;gap:.375em;margin:0;padding:.4em .375em;font-weight:500;display:flex}.choice:hover{color:var(--ui-text-color)}.choice:focus-visible{outline:2px solid var(--ui-focus-color);outline-offset:-2px}.choice>.name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.option{box-sizing:border-box;border-radius:var(--_theme-menu-row-radius);width:100%;color:inherit;font:inherit;text-align:start;cursor:pointer;background:0 0;border:0;grid-template-columns:1.125em minmax(0,1fr);align-items:center;column-gap:.5em;margin:0;padding:.5em .625em;display:grid}.option:hover{background:var(--ui-surface-muted)}.option:focus-visible{outline:2px solid var(--ui-focus-color);outline-offset:-2px}.option>.check{color:var(--ui-primary-text);opacity:0;place-items:center;font-size:.857em;display:grid}.option:has(>.description)>.check{grid-row:1/span 2}.option>.name{text-overflow:ellipsis;white-space:nowrap;grid-column:2;font-weight:500;overflow:hidden}.option>.description{color:var(--ui-text-muted);grid-column:2;font-size:.857em}[part~=tip].muted{display:none}}@layer ui.components.theme-menu.variations{.ui.inverted.themes .button{color:oklch(from var(--_ui-theme-menu-inverted-ink) l c h / .8)}.ui.inverted.themes .button:hover{background:oklch(from var(--_ui-theme-menu-inverted-ink) l c h / .14);color:var(--_ui-theme-menu-inverted-ink)}[part~=theme].compact{--ui-button-background:transparent;--ui-button-background-hover:color-mix(in oklab, currentColor 10%, transparent);--ui-button-background-down:color-mix(in oklab, currentColor 16%, transparent);--ui-button-color:var(--ui-text-muted);--ui-button-color-hover:var(--ui-text-color);--ui-button-padding-block:.55em;--ui-button-padding-inline:.55em;--ui-button-radius:50%;--ui-button-box-shadow:none}[part~=theme].compact::part(icon){display:none}}@layer ui.components.theme-menu.states{.option.checked{background:color-mix(in oklch, var(--ui-primary) 10%, transparent)}.option.checked:hover{background:color-mix(in oklch, var(--ui-primary) 15%, transparent)}.option.checked>.check{opacity:1}.option.checked>.name{color:var(--ui-primary-text)}.choice.checked{background:var(--ui-surface);box-shadow:var(--_ui-theme-menu-choice-shadow), inset 0 0 0 1px var(--ui-border-color);color:var(--ui-text-color)}@media (prefers-reduced-motion:no-preference){.scheme .glyph{transition:opacity var(--_ui-theme-menu-swap-duration) var(--ui-ease-out,ease-out), scale var(--_ui-theme-menu-swap-duration) var(--ui-ease-out,ease-out), filter var(--_ui-theme-menu-swap-duration) var(--ui-ease-out,ease-out)!important}.button{transition:background-color var(--ui-duration-fast,.1s) ease-out, box-shadow var(--ui-duration-fast,.1s) ease-out, color var(--ui-duration-fast,.1s) ease-out, scale var(--ui-duration-fast,.1s) ease-out}.option{transition:background-color var(--ui-duration-fast,.1s) ease-out}.choice{transition:background-color var(--ui-duration-normal,.2s) ease-out, box-shadow var(--ui-duration-normal,.2s) ease-out, color var(--ui-duration-fast,.1s) ease-out}}}", Se = /* @__PURE__ */ P("<div><!><!><!>"), Ce = /* @__PURE__ */ P("<button type=button>"), we = /* @__PURE__ */ P("<ui-popup inverted>", 1), Te = /* @__PURE__ */ P("<span aria-hidden=true><ui-icon padding=none>", 1), Ee = /* @__PURE__ */ P("<button type=button><span aria-hidden=true><ui-icon padding=none>", 1), De = /* @__PURE__ */ P("<div role=separator>"), Oe = /* @__PURE__ */ P("<a rel=noopener><ui-icon aria-hidden=true padding=none></ui-icon><span>", 1), ke = /* @__PURE__ */ P("<ui-popup open-on=click appearance=basic position=\"bottom right\"><div><div role=separator></div><div></div><div></div><slot>", 1), Ae = /* @__PURE__ */ P("<div>"), je = /* @__PURE__ */ P("<button type=button><ui-icon aria-hidden=true padding=none></ui-icon><span>", 1), Me = /* @__PURE__ */ P("<span>"), Ne = /* @__PURE__ */ P("<button type=button><span aria-hidden=true><ui-icon padding=none></ui-icon></span><span>", 1), Pe = /* @__PURE__ */ P("<ui-icon aria-hidden=true>", 1), Fe = /* @__PURE__ */ P("<ui-item kind=divider>", 1), H = /* @__PURE__ */ P("<ui-item>", 1), Ie = /* @__PURE__ */ P("<ui-dropdown floating scrolling button><span slot=trigger></span><!><!>", 1), Le, Re, ze, Be, Ve, He, Ue, We, Ge, Ke, U, W, G, K, q, J, Y = class _UIThemeMenu extends (U = l, Ke = [_], Ge = [v], We = [y], Ue = [y], He = [p("dark")], Ve = [p("following")], Be = [ee], ze = [m], Re = [p("open"), y], Le = [y], U) {
497
- constructor() {
498
- super(...arguments), u(W, 5, this), b(this, G, u(W, 8, this, j ? ct : B.chosen)), u(W, 11, this), b(this, K, u(W, 12, this, j ? "light" : B.osScheme())), u(W, 15, this), t(this, "texts", /* @__PURE__ */ s((e, t) => this.translationForKey(e, t), "texts")), b(this, q, u(W, 16, this, !1)), u(W, 19, this), b(this, J, u(W, 20, this)), u(W, 23, this);
499
- }
500
- get shownScheme() {
501
- let { scheme: e } = this.chosen;
502
- return e === "system" ? this.osScheme : e;
503
- }
504
- get chosenTheme() {
505
- return this.chosen.theme;
506
- }
507
- get isDark() {
508
- return this.shownScheme === "dark";
509
- }
510
- get followsSystem() {
511
- return this.chosen.scheme === "system";
512
- }
513
- followPreference() {
514
- return this.follow(B.chosen), B.subscribe((e) => this.follow(e));
515
- }
516
- follow(e) {
517
- this.chosen = e, this.osScheme = B.osScheme();
518
- }
519
- async chooseTheme(e, t) {
520
- let n = B.setTheme(e);
521
- this.emitChange(t), await n;
522
- }
523
- flipScheme(e) {
524
- B.flipScheme(), this.emitChange(e);
525
- }
526
- chooseScheme(e, t) {
527
- e !== B.chosen.scheme && (B.setScheme(e), this.emitChange(t));
528
- }
529
- get benchAddress() {
530
- let e = this.bench;
531
- if (e === nt || j) return;
532
- let t = (e?.replace(/\/$/, "") ?? $e.exec(location.pathname)?.[0] ?? "") + Qe;
533
- return ge.withPage(B.addressWith(t, { theme: this.chosenTheme }), this.benchPageId);
534
- }
535
- get benchPageId() {
536
- let e = this.benchPageAttribute;
537
- if (e) return e;
538
- let t = j ? "" : location.pathname;
539
- return et.find(([e]) => e.test(t))?.[1] ?? tt;
540
- }
541
- get benchPageAttribute() {
542
- return (this.attributes["bench-page"] ?? void 0) || void 0;
543
- }
544
- openBench() {
545
- let e = this.benchAddress;
546
- e && window.open(e, rt, "noopener");
547
- }
548
- emitChange(e) {
549
- let { theme: t, scheme: n } = B.chosen, r = {
550
- theme: t,
551
- scheme: n,
552
- shown: B.shownScheme(),
553
- originalEvent: e
554
- };
555
- this.send("ui-changed", r);
556
- }
557
- get themeMenu() {
558
- return new ThemeMenu({
559
- themes: c.themes.own,
560
- text: this.texts
561
- });
562
- }
563
- get shownControls() {
564
- return this.show ?? "both";
565
- }
566
- render() {
567
- let e = this;
568
- var t = Se(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling;
569
- return A(t, D(T, {
570
- get when() {
571
- return e.shownControls === "theme";
572
- },
573
- get children() {
574
- return e.dropdown();
575
- }
576
- }), n), A(t, D(T, {
577
- get when() {
578
- return e.shownControls === "both";
579
- },
580
- get children() {
581
- return e.palette();
582
- }
583
- }), r), A(t, D(T, {
584
- get when() {
585
- return e.shownControls === "scheme";
586
- },
587
- get children() {
588
- return e.schemeButton();
589
- }
590
- }), i), O(() => ({
591
- e: M(e.rootClass),
592
- t: e.partForName("controls")
593
- }), ({ e, t: n }, r) => {
594
- E(t, e, r?.e), n !== r?.t && N(t, "part", n);
595
- }), t;
596
- }
597
- schemeButton() {
598
- let e = /* @__PURE__ */ s(() => this.shownScheme === "dark" ? this.translationForKey("toLight") : this.translationForKey("toDark"), "next"), t = this;
599
- return [(() => {
600
- var n = Ce();
601
- return n._$$click = (e) => t.flipScheme(e), A(n, D(w, {
602
- each: qe,
603
- children: (e) => (() => {
604
- var t = Te(), n = t.firstChild;
605
- return n._$owner = k(), O(() => ({
606
- e: M([e, _t]),
607
- t: Je[e]
608
- }), ({ e, t: r }, i) => {
609
- E(t, e, i?.e), r !== i?.t && N(n, "name", r);
610
- }), t;
611
- })()
612
- })), O(() => ({
613
- e: M([
614
- mt,
615
- pt,
616
- {
617
- light: t.shownScheme === "light",
618
- dark: t.shownScheme === "dark"
619
- }
620
- ]),
621
- t: t.partForName("scheme"),
622
- a: e()
623
- }), ({ e, t, a: r }, i) => {
624
- E(n, e, i?.e), t !== i?.t && N(n, "part", t), r !== i?.a && N(n, "aria-label", r);
625
- }), n;
626
- })(), (() => {
627
- var n = we();
628
- return N(n, "size", ft), N(n, "position", dt), n._$owner = k(), A(n, e), O(() => t.partForName("tip"), (e) => {
629
- N(n, "part", e);
630
- }), n;
631
- })()];
632
- }
633
- palette() {
634
- let e = /* @__PURE__ */ s(() => this.translationForKey("palette", {
635
- title: this.themeMenu.titleFor(this.chosenTheme),
636
- scheme: this.translationForKey(Xe[this.chosen.scheme])
637
- }), "label"), t = this;
638
- return [
639
- (() => {
640
- var n = Ee(), r = n.firstChild, i = r.firstChild;
641
- return N(i, "name", Ze), i._$owner = k(), O(() => ({
642
- e: Z.palette,
643
- t: M([ht, pt]),
644
- a: t.partForName("palette"),
645
- o: e(),
646
- i: M(_t)
647
- }), ({ e, t, a: i, o: a, i: o }, s) => {
648
- e !== s?.e && N(n, "id", e), E(n, t, s?.t), i !== s?.a && N(n, "part", i), a !== s?.o && N(n, "aria-label", a), E(r, o, s?.i);
649
- }), n;
650
- })(),
651
- (() => {
652
- var e = ke(), n = e.firstChild, r = n.firstChild, i = r.nextSibling, a = i.nextSibling, o = a.nextSibling;
653
- return oe(() => (e) => t.wireOverlay(e), e), e._$owner = k(), A(n, () => t.schemes(), r), A(i, () => t.translationForKey("themeName")), a._$$keydown = (e) => t.onMenuKey(e), A(a, D(w, {
654
- get each() {
655
- return t.themeMenu.entries;
656
- },
657
- children: (e) => t.entry(e)
658
- })), A(n, D(T, {
659
- get when() {
660
- return t.benchAddress;
661
- },
662
- get children() {
663
- return [(() => {
664
- var e = De();
665
- return O(() => M(Ct), (t, n) => {
666
- E(e, t, n);
667
- }), e;
668
- })(), (() => {
669
- var e = Oe(), n = e.firstChild, r = n.nextSibling, i = k();
670
- return N(e, "target", rt), N(n, "name", at), n._$owner = k(), A(r, () => t.translationForKey("bench")), O(() => ({
671
- e: M(ot),
672
- t: t.partForName("bench"),
673
- a: t.benchAddress,
674
- o: t.translationForKey("benchTip"),
675
- i: M(Et)
676
- }), ({ e: t, t: n, a, o, i: s }, c) => {
677
- E(e, t, c?.e), n !== c?.t && N(e, "part", n), a !== c?.a && N(e, "href", a), o !== c?.o && N(e, "title", o), E(r, s, c?.i), ie(e, i);
678
- }), e;
679
- })()];
680
- }
681
- }), o), o._$owner = k(), O(() => ({
682
- e: t.partForName("overlay"),
683
- t: M(vt),
684
- a: t.translationForKey("overlayName"),
685
- o: M(bt),
686
- i: M(Ct),
687
- n: M(xt),
688
- s: Z.heading,
689
- h: M(St),
690
- r: t.partForName("menu"),
691
- d: Q.menu,
692
- l: Z.heading,
693
- u: t.slotForName("end")
694
- }), ({ e: t, t: s, a: c, o: l, i: u, n: d, s: f, h: p, r: m, d: h, l: g, u: _ }, v) => {
695
- t !== v?.e && N(e, "part", t), E(e, s, v?.t), c !== v?.a && N(e, "aria-label", c), E(n, l, v?.o), E(r, u, v?.i), E(i, d, v?.n), f !== v?.s && N(i, "id", f), E(a, p, v?.h), m !== v?.r && N(a, "part", m), h !== v?.d && N(a, "role", h), g !== v?.l && N(a, "aria-labelledby", g), _ !== v?.u && N(o, "name", _);
696
- }), e;
697
- })(),
698
- (() => {
699
- var n = we();
700
- return N(n, "size", ft), N(n, "position", dt), n._$owner = k(), A(n, e), O(() => ({
701
- e: t.partForName("tip"),
702
- t: Z.palette,
703
- a: M(t.isOpen ? yt : void 0)
704
- }), ({ e, t, a: r }, i) => {
705
- e !== i?.e && N(n, "part", e), t !== i?.t && N(n, "for", t), E(n, r, i?.a);
706
- }), n;
707
- })()
708
- ];
709
- }
710
- schemes() {
711
- let e = this;
712
- var t = Ae();
713
- return t._$$keydown = (t) => e.onSchemeKey(t), A(t, D(w, {
714
- each: le,
715
- children: (t) => {
716
- let n = /* @__PURE__ */ s(() => e.chosen.scheme === t, "isChosen");
717
- var r = je(), i = r.firstChild, a = i.nextSibling;
718
- return r._$$click = (n) => e.chooseScheme(t, n), N(r, "value", t), i._$owner = k(), A(a, () => e.translationForKey(Xe[t])), O(() => ({
719
- e: M([Tt, { checked: n() }]),
720
- t: e.partForName("scheme-option"),
721
- a: $.item,
722
- o: n() ? "true" : "false",
723
- i: n() ? 0 : -1,
724
- n: Ye[t],
725
- s: M(Et)
726
- }), ({ e, t, a: n, o, i: s, n: c, s: l }, u) => {
727
- E(r, e, u?.e), t !== u?.t && N(r, "part", t), n !== u?.a && N(r, "role", n), o !== u?.o && N(r, "aria-checked", o), s !== u?.i && N(r, "tabindex", s), c !== u?.n && N(i, "name", c), E(a, l, u?.s);
728
- }), r;
729
- }
730
- })), O(() => ({
731
- e: M(wt),
732
- t: e.partForName("schemes"),
733
- a: $.group,
734
- o: e.translationForKey("schemeName")
735
- }), ({ e, t: n, a: r, o: i }, a) => {
736
- E(t, e, a?.e), n !== a?.t && N(t, "part", n), r !== a?.a && N(t, "role", r), i !== a?.o && N(t, "aria-label", i);
737
- }), t;
738
- }
739
- onSchemeKey(e) {
740
- c.focus.arrowKey(e, {
741
- container: e.currentTarget,
742
- items: ut,
743
- orientation: "both",
744
- tabindex: "left alone",
745
- onChange: /* @__PURE__ */ s((t, n) => this.chooseScheme(le[n], e), "onChange")
746
- });
747
- }
748
- entry(e) {
749
- if ("type" in e) return e.type === "divider" ? (() => {
750
- var e = De();
751
- return O(() => M(Ct), (t, n) => {
752
- E(e, t, n);
753
- }), e;
754
- })() : (() => {
755
- var t = Ae();
756
- return A(t, () => e.text), O(() => M(n), (e, n) => {
757
- E(t, e, n);
758
- }), t;
759
- })();
760
- let t = /* @__PURE__ */ s(() => this.chosenTheme === e.value, "isChecked"), r = this;
761
- var i = Ne(), a = i.firstChild, o = a.firstChild, c = a.nextSibling;
762
- return i._$$click = (t) => r.onOptionClick(e.value, t), N(o, "name", st), o._$owner = k(), A(c, () => e.text), A(i, D(T, {
763
- get when() {
764
- return e.description;
765
- },
766
- get children() {
767
- var t = Me();
768
- return A(t, () => e.description), O(() => M(g), (e, n) => {
769
- E(t, e, n);
770
- }), t;
771
- }
772
- }), null), O(() => ({
773
- e: M([Dt, { checked: t() }]),
774
- t: r.partForName("option"),
775
- a: Q.item,
776
- o: e.value,
777
- i: t() ? "true" : "false",
778
- n: (r.tabStopTheme ?? r.chosenTheme) === e.value ? 0 : -1,
779
- s: M(Ot),
780
- h: M(Et)
781
- }), ({ e, t, a: n, o: r, i: o, n: s, s: l, h: u }, d) => {
782
- E(i, e, d?.e), t !== d?.t && N(i, "part", t), n !== d?.a && N(i, "role", n), r !== d?.o && N(i, "value", r), o !== d?.i && N(i, "aria-checked", o), s !== d?.n && N(i, "tabindex", s), E(a, l, d?.s), E(c, u, d?.h);
783
- }), i;
784
- }
785
- dropdown() {
786
- let e = /* @__PURE__ */ s(() => this.themeMenu.labelFor(this.chosenTheme), "label"), t = this;
787
- var n = Ie(), r = n.firstChild, i = r.nextSibling, a = i.nextSibling;
788
- return oe(() => (e) => e.addEventListener("ui-changed", (e) => t.onDropdownChange(e)), n), n._$owner = k(), A(r, D(T, {
789
- get when() {
790
- return t.compact;
791
- },
792
- get fallback() {
793
- return e();
794
- },
795
- get children() {
796
- var e = Pe();
797
- return N(e, "name", Ze), e._$owner = k(), e;
798
- }
799
- })), A(n, D(w, {
800
- get each() {
801
- return t.themeMenu.entries;
802
- },
803
- children: (e) => "type" in e ? (() => {
804
- var t = H();
805
- return t._$owner = k(), A(t, () => e.text), O(() => e.type, (e) => {
806
- N(t, "kind", e);
807
- }), t;
808
- })() : (() => {
809
- var t = H();
810
- return t._$owner = k(), A(t, () => e.text), O(() => ({
811
- e: e.value,
812
- t: e.description
813
- }), ({ e, t: n }, r) => {
814
- e !== r?.e && N(t, "value", e), n !== r?.t && N(t, "description", n);
815
- }), t;
816
- })()
817
- }), i), A(n, D(T, {
818
- get when() {
819
- return t.benchAddress;
820
- },
821
- get children() {
822
- return [(() => {
823
- var e = Fe();
824
- return e._$owner = k(), e;
825
- })(), (() => {
826
- var e = H();
827
- return N(e, "value", it), N(e, "icon", at), e._$owner = k(), A(e, () => t.translationForKey("bench")), O(() => t.translationForKey("benchTip"), (t) => {
828
- N(e, "title", t);
829
- }), e;
830
- })()];
831
- }
832
- }), a), O(() => ({
833
- e: t.partForName("theme"),
834
- t: { [gt]: !!t.compact },
835
- a: t.compact ? "compact" : void 0,
836
- o: t.inverted ? "" : void 0,
837
- i: t.size,
838
- n: t.translationForKey("themeName"),
839
- s: t.compact ? e() : void 0,
840
- h: t.compact ? e() : void 0,
841
- r: t.chosenTheme
842
- }), ({ e, t, a: r, o: i, i: a, n: o, s, h: c, r: l }, u) => {
843
- e !== u?.e && N(n, "part", e), E(n, t, u?.t), r !== u?.a && N(n, "padding", r), i !== u?.o && N(n, "inverted", i), a !== u?.i && N(n, "size", a), o !== u?.n && N(n, "label", o), s !== u?.s && N(n, "title", s), c !== u?.h && N(n, "aria-label", c), l !== u?.r && N(n, "value", l);
844
- }), n;
845
- }
846
- onDropdownChange(e) {
847
- e.stopPropagation();
848
- let { value: t } = e.detail;
849
- if (t !== it) return void this.chooseTheme(t, e);
850
- this.openBench(), e.currentTarget.value = this.chosenTheme;
851
- }
852
- onOptionClick(e, t) {
853
- this.tabStopTheme = e, e !== B.chosen.theme && this.chooseTheme(e, t);
854
- }
855
- onMenuKey(e) {
856
- c.focus.arrowKey(e, {
857
- container: e.currentTarget,
858
- items: lt,
859
- orientation: "vertical",
860
- tabindex: "left alone",
861
- onChange: /* @__PURE__ */ s((e) => this.tabStopTheme = e.value, "onChange")
862
- });
863
- }
864
- rows() {
865
- return [...this.domElement.shadowRoot?.querySelectorAll(lt) ?? []];
866
- }
867
- wireOverlay(e) {
868
- e.addEventListener("ui-opening", (e) => {
869
- e.defaultPrevented || (this.isOpen = !0);
870
- }), e.addEventListener("ui-closing", (e) => {
871
- e.defaultPrevented || (this.isOpen = !1);
872
- }), e.addEventListener("toggle", (e) => {
873
- e.newState === "open" && (this.tabStopTheme = void 0, (this.rows().find((e) => e.value === this.chosenTheme) ?? this.rows()[0])?.focus());
874
- });
875
- }
876
- };
877
- W = o(U), G = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), i(W, 4, "chosen", We, Y, G), i(W, 4, "osScheme", Ue, Y, K), i(W, 2, "isDark", He, Y), i(W, 2, "followsSystem", Ve, Y), i(W, 1, "followPreference", Be, Y), i(W, 2, "themeMenu", ze, Y), i(W, 4, "isOpen", Re, Y, q), i(W, 4, "tabStopTheme", Le, Y, J), i(W, 13, "vocabulary", Ke, Y), i(W, 13, "elementSetup", Ge, Y), a(W, Y), s(Y, "UIThemeMenu"), t(Y, "vocabulary", u(W, 24, Y, be)), u(W, 27, Y), t(Y, "elementSetup", u(W, 28, Y, {
878
- styleSheets: { "theme-menu": xe },
879
- delegatesFocus: !1
880
- })), u(W, 31, Y);
881
- var X = Y, qe = ["light", "dark"], Je = {
882
- light: "sun outline",
883
- dark: "moon"
884
- }, Ye = {
885
- light: "sun outline",
886
- dark: "moon",
887
- system: "adjust"
888
- }, Xe = {
889
- light: "light",
890
- dark: "dark",
891
- system: "auto"
892
- }, Ze = "palette", Qe = "/components/ui/theme-bench.html", $e = /^\/worktrees\/[^/]+/, et = [
893
- [/\/epics\//, "epic"],
894
- [/\/notebooks\//, "notebook"],
895
- [/\/components\//, "ui"]
896
- ], tt = "app", nt = "none", rt = "_blank", it = "theme bench", at = "external alternate", ot = "bench", st = "check", ct = {
897
- theme: ue,
898
- scheme: "system"
899
- }, Z = {
900
- palette: "palette",
901
- heading: "themes-heading"
902
- }, Q = {
903
- menu: "menu",
904
- item: "menuitemradio"
905
- }, $ = {
906
- group: "radiogroup",
907
- item: "radio"
908
- }, lt = `[role="${Q.item}"]`, ut = `[role="${$.item}"]`, dt = "bottom center", ft = "mini", pt = "button", mt = "scheme", ht = "palette", gt = "compact", _t = "glyph", vt = "overlay", yt = "muted", bt = "panel", xt = "heading", St = "menu", Ct = "divider", wt = "schemes", Tt = "choice", Et = "name", Dt = "option", Ot = "check";
909
- ae(["click", "keydown"]);
910
- //#endregion
911
- //#region src/components/ui-theme-menu/index.ts
912
- var kt = /* @__PURE__ */ e({
913
- ThemeMenu: () => ThemeMenu,
914
- ThemePreference: () => B,
915
- UIThemeMenu: () => X
916
- });
917
- X.define();
918
- //#endregion
919
- export { B as a, ge as i, X as n, ThemeMenu as r, kt as t };
920
-
921
- //# sourceMappingURL=ui-theme-menu-DyKZygpV.js.map