spell-ui 0.8.6 → 0.8.8

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 +13 -3
  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 +22 -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 +530 -24
  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 +124 -92
  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 +1 @@
1
- {"version":3,"file":"ui-step.js","names":["UIT.StackWithValues","this","part={this.partForName(\"steps\")}","<ol class={this.rootClass} part={this.partForName(\"steps\")} role=\"list\">\n <slot />\n </ol>","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","_$getOwner","_$readShallow","_$setAttribute","__name","stepCSS","<Dynamic\n component={this.rootTag}\n class={this.rootClass}\n part={this.partForName(\"step\")}\n href={this.linkTo}\n target={this.linkTarget}\n type={this.rootTag === \"button\" ? \"button\" : void 0}\n disabled={this.rootTag === \"button\" && this.disabled ? true : void 0}\n aria-disabled={this.rootTag !== \"button\" && this.disabled ? \"true\" : void 0}\n aria-current={this.isSelected ? \"step\" : void 0}\n >\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n {\n /* a server render (`spell/ui/static`) swaps the slot for its content, `hidden` and all: leave it out */\n }\n <Show when={!(isServer && this.completed)}>\n <slot name={this.slotForName(\"icon\")} hidden={this.completed || void 0}>\n {this.iconGlyph.svg}\n </slot>\n </Show>\n {this.checkGlyph.svg}\n </span>\n </Show>\n <Show when={this.hasShorthand}>\n <div class={this.staticPart(UIT.CONTENT)} part={this.partForName(\"content\")}>\n <Show when={this.heading}>\n <div class={this.staticPart(TITLE_PART)} part={this.partForName(\"title\")}>\n {this.heading}\n </div>\n </Show>\n <Show when={this.description}>\n <div class={this.staticPart(UIT.DESCRIPTION)} part={this.partForName(\"description\")}>\n {this.description}\n </div>\n </Show>\n </div>\n </Show>\n <slot />\n <Show when={this.completed}>\n <span class={UIT.VISUALLY_HIDDEN}>{this.translationForKey(\"stepCompleted\")}</span>\n </Show>\n </Dynamic>","this","<Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n {\n /* a server render (`spell/ui/static`) swaps the slot for its content, `hidden` and all: leave it out */\n }\n <Show when={!(isServer && this.completed)}>\n <slot name={this.slotForName(\"icon\")} hidden={this.completed || void 0}>\n {this.iconGlyph.svg}\n </slot>\n </Show>\n {this.checkGlyph.svg}\n </span>\n </Show>","<Show when={!(isServer && this.completed)}>\n <slot name={this.slotForName(\"icon\")} hidden={this.completed || void 0}>\n {this.iconGlyph.svg}\n </slot>\n </Show>","hidden={this.completed || void 0}","<slot name={this.slotForName(\"icon\")} hidden={this.completed || void 0}>\n {this.iconGlyph.svg}\n </slot>","<span class={UIT.ICON} part={this.partForName(\"icon\")}>\n {\n /* a server render (`spell/ui/static`) swaps the slot for its content, `hidden` and all: leave it out */\n }\n <Show when={!(isServer && this.completed)}>\n <slot name={this.slotForName(\"icon\")} hidden={this.completed || void 0}>\n {this.iconGlyph.svg}\n </slot>\n </Show>\n {this.checkGlyph.svg}\n </span>","part={this.partForName(\"icon\")}","<Show when={this.hasShorthand}>\n <div class={this.staticPart(UIT.CONTENT)} part={this.partForName(\"content\")}>\n <Show when={this.heading}>\n <div class={this.staticPart(TITLE_PART)} part={this.partForName(\"title\")}>\n {this.heading}\n </div>\n </Show>\n <Show when={this.description}>\n <div class={this.staticPart(UIT.DESCRIPTION)} part={this.partForName(\"description\")}>\n {this.description}\n </div>\n </Show>\n </div>\n </Show>","<Show when={this.heading}>\n <div class={this.staticPart(TITLE_PART)} part={this.partForName(\"title\")}>\n {this.heading}\n </div>\n </Show>","part={this.partForName(\"title\")}","<div class={this.staticPart(TITLE_PART)} part={this.partForName(\"title\")}>\n {this.heading}\n </div>","<div class={this.staticPart(UIT.CONTENT)} part={this.partForName(\"content\")}>\n <Show when={this.heading}>\n <div class={this.staticPart(TITLE_PART)} part={this.partForName(\"title\")}>\n {this.heading}\n </div>\n </Show>\n <Show when={this.description}>\n <div class={this.staticPart(UIT.DESCRIPTION)} part={this.partForName(\"description\")}>\n {this.description}\n </div>\n </Show>\n </div>","<Show when={this.description}>\n <div class={this.staticPart(UIT.DESCRIPTION)} part={this.partForName(\"description\")}>\n {this.description}\n </div>\n </Show>","part={this.partForName(\"description\")}","<div class={this.staticPart(UIT.DESCRIPTION)} part={this.partForName(\"description\")}>\n {this.description}\n </div>","part={this.partForName(\"content\")}","<Show when={this.completed}>\n <span class={UIT.VISUALLY_HIDDEN}>{this.translationForKey(\"stepCompleted\")}</span>\n </Show>","<span class={UIT.VISUALLY_HIDDEN}>{this.translationForKey(\"stepCompleted\")}</span>","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.SlotContent","E.IconGlyph","_$createComponent","_$getOwner","_$setAttribute","_$readShallow","UIT.ICON","UIT.DESCRIPTION","UIT.CONTENT","UIT.VISUALLY_HIDDEN","__name","stepCSS","partsCSS","ICON","__publicField","__decorateElement","__decoratorMetadata","__decoratorStart","VISUALLY_HIDDEN","__name$1","__runInitializers","StackWithValues","CONTENT","StackClasses","DESCRIPTION","UIParts_default","getOwner$1","stepsVocabulary","UIStep_default","_tmpl$$1","_isCircular_dec","_isBlockLevel_dec","_isStepGroup_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UISteps","UIComponent","proto","protoMerged","cssState","CIRCULAR","VERTICAL","_self$","_el$","_el$2","effect","readShallow","className","_p$","t","setAttribute","UISteps","stepVocabulary","_tmpl$","_tmpl$2","_tmpl$3","_tmpl$4","_tmpl$5","_hasContent_dec","_isDisabled_dec","_isSelected_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIStep","SlotContent","IconGlyph","CHECK","Converters","\"active\"","color","LINK_LOOK","createComponent","Dynamic","\"class\"","Show","_el$3","_el$4","insert","isServer","e","_el$5","_el$7","_el$9","_el$6","TITLE_PART","_el$8","_el$10","_el$11","_v$","_$p","noun","UIStep"],"sources":["../src/components/ui-step/UISteps.en.ts","../src/components/ui-step/UIStep.css?inline","../src/components/ui-step/UISteps.tsx","../src/components/ui-step/UIStep.en.ts","../src/components/ui-step/UIStep.tsx","../src/components/ui-step/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-steps>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-steps ordered direction=\"vertical-right\" widths=\"3\">` => `ui ordered right vertical three steps`;\n * `<ui-step selected completed>` => `completed active step` (a step has no `ui`, as Fomantic's `.ui.steps > .step`).\n * `UIStep.css` keys on those words.\n * - Chosen state: `selected` is canonical (`AGENTS.md`), its class word Fomantic's `active`;\n * an `active` ATTRIBUTE is accepted as an alias (the element reads it raw, through `attributes`).\n * The selected step is the CURRENT one: `aria-current=\"step\"`.\n * - Content is the generic parts, owned by the step (`ownsParts`): `<ui-content>`, `<ui-title>`,\n * `<ui-description>`; or the shorthands `header` (the title -- NOT `title`, the global tooltip attribute and an\n * `HTMLElement` property, as the popup's `header`) and `description`.\n */\n\nimport type { E } from \"spell/ui/core\"\nimport * as UIT from \"spell/ui/components/components.types\"\n\n/****************\n * ### `stepsVocabulary`\n * The names of `<ui-steps>`, a step group: `<ol class=\"ui ... steps\" part=\"steps\" role=\"list\">` around the slot.\n ****************/\nexport const stepsVocabulary = {\n tag: \"ui-steps\",\n topics: [\"navigation\", \"progress\", \"status\", \"elements\"],\n aka: [\"stepper\", \"wizard\", \"progress steps\", \"checkout steps\"],\n skeleton: \"5 tall\",\n noun: \"steps\",\n description: \"A set of steps shows the progress of an activity in a series of steps.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size of every step, `mini` ... `massive`; `medium` is the default.\"\n },\n {\n name: \"color\",\n group: \"appearance\",\n kind: \"color\",\n description: \"Circular steps: hue of the rings of the current and completed steps (default the positive colour).\"\n },\n {\n name: \"ordered\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description: \"Numbers each step; a completed step shows a check instead.\"\n },\n {\n name: \"direction\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"horizontal\", \"vertical\", \"vertical-right\"],\n classes: { horizontal: \"\", \"vertical-right\": \"right vertical\" },\n replaces: [{ from: \"vertical\", value: \"vertical\", values: { right: \"vertical-right\" } }],\n description:\n \"Which way the steps run: `horizontal` (the default), `vertical` (stacked top to bottom), or \" +\n \"`vertical-right`, for a group on the right of its content (arrow at left). Its old name was `vertical` \" +\n '(`vertical=\"right\"`).'\n },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n values: [\"circular\"],\n // its words are Fomantic's classes as they are\n classes: {},\n replaces: [{ from: \"circular\", value: \"circular\" }],\n description:\n \"The look: `circular` -- Fomantic's circular steps: a ring per step on a connecting line, the content \" +\n \"beside it. Its old name was the bare `circular` switch.\"\n },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Takes the full width of its container.\" },\n {\n name: \"equal\",\n group: \"layout\",\n kind: \"keyOnly\",\n description:\n \"Every step the same width, from the steps themselves (no count): each as wide as the widest; with \" +\n \"`fluid`, an equal share of the row each. Not for `vertical` or `circular` steps (already alike).\"\n },\n {\n name: \"attach\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"both\", \"top\", \"bottom\"],\n classes: { both: \"attached\", top: \"top attached\", bottom: \"bottom attached\" },\n replaces: [{ from: \"attached\", value: \"both\" }],\n description:\n \"Joined to a segment below (`both`, `top`) or above (`bottom`), overlapping its border. \" +\n \"Its old name was `attached`.\"\n },\n {\n name: \"unstackable\",\n group: \"layout\",\n kind: \"keyOnly\",\n description:\n \"Never stacks; by default steps stack below 768px of the group's width (or the screen's: `stack-with`).\"\n },\n {\n name: \"stackable\",\n group: \"layout\",\n kind: \"valueAndKey\",\n values: [\"tablet\"],\n description:\n \"`stackable=\\\"tablet\\\"`: stacks below 992px (of the group's width, or the screen's), not just 768px.\"\n },\n {\n name: \"stack-with\",\n group: \"layout\",\n kind: \"enum\",\n values: UIT.StackWithValues,\n description:\n 'What stacking (and `stackable=\"tablet\"`) measures: `container` (the default) -- the group\\'s own ' +\n \"width; `page` -- the screen's, as in Fomantic. Unset: the page-wide `--ui-stack-with` token \" +\n \"decides (`<ui-root stack-with>`).\"\n },\n {\n name: \"widths\",\n group: \"appearance\",\n kind: \"width\",\n widthClass: \"\",\n values: [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\"],\n description:\n 'Older, count-based alias of `equal fluid`: divides the group evenly between N steps (`widths=\"3\"` => ' +\n \"`three steps`).\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"For dark backgrounds.\" }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-step>`s.\" }],\n parts: [{ name: \"steps\", description: \"The group box (an `<ol>`).\" }],\n states: [\n { name: \"steps\", description: \"ALWAYS set: the host is a block and the size container `stackable` answers.\" },\n {\n name: \"block\",\n description:\n \"Set while the group is block-level (`fluid`, or `circular` and not `vertical`): the HOST carries its outer margin, so it collapses with the content above.\"\n },\n {\n name: \"circular\",\n description: 'Set while `appearance=\"circular\"`: with `block`, the host keeps both margins, even first or last.'\n }\n ],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-steps>` and `<ui-step>`: a port of Fomantic's `step.less` + `step.variables`\n * (+ the check glyph of `step.overrides`).\n * - ONE sheet, adopted by the group AND by every step (a step also adopts `UIParts.css`, for its shorthand content).\n * - Shadow markup contract (class grammar on semantic elements):\n * - `<ui-steps>`: `<ol class=\"ui [size] [color] [keyOnly ...] [attached] [stackable] [count] steps\" part=\"steps\"\n * role=\"list\">` around `<slot>` (an ORDERED list: steps are a sequence)\n * - the group's DOM element is a block, and the size container `ui-steps`\n * - `<ui-step>`: `<div | a href | button class=\"[color] [keyOnly ...] step\" part=\"step\" [aria-current=step]>`,\n * holding, in order:\n * - `<span class=\"icon\" part=\"icon\">` (glyph or `slot=icon`)\n * - the shorthand `<div class=\"content in-step\">` (`.title` / `.description`, the static part classes)\n * - the `<slot>`\n * - when completed, a visually hidden \"Completed\"\n * - a step's DOM element is `role=listitem` (internals) and `display: contents`,\n * so the step root is the group's flex item, exactly where Fomantic's `.ui.steps > .step` sat\n * - Every step rule has two selectors sharing one body:\n * the element (`:host > .step`) and static class grammar (`.ui.steps > .step`).\n * The DOM element's position (`:host(:first-child)`) stands in for `.step:first-child`.\n *\n * ## Group -> step tokens\n * A step can't see its group's classes, so the group ROOT resolves every variation into inherited tokens,\n * and the step rules only read them (switches through `@container style()`):\n *\n * | Token | What | Changed by |\n * | ---------------------------------------- | ------------------------------------------ | ---------------------------- |\n * | `--_ui-steps-layout` | `horizontal` / `vertical` / `stacked` | `vertical`; `stacked` below |\n * | | | 768px (992px with `stackable=\"tablet\"`) unless `unstackable` |\n * | `--_ui-steps-column` | `0` / `1`: one step per row | `vertical`, stacked |\n * | `--_ui-steps-line` | `horizontal` / `vertical`: a circular | `vertical` |\n * | | step's connecting line (circular steps | |\n * | | never stack) | |\n * | `--_ui-steps-circular` | `0` / `1` | `circular` |\n * | `--_ui-steps-ordered` | `0` / `1` | `ordered` |\n * | `--_ui-steps-arrow` | `right` / `left` (the side a vertical | `vertical=\"right\"` |\n * | | step's arrow points from) | |\n * | `--_ui-steps-first-radius` / `-last-` / `-only-` | corners of the first / last / only step, | layout, `attached` |\n * | | from `--ui-steps-radius` | |\n * | `--_ui-steps-step-width` / `-step-wrap` | each step's width, its content wrapping | `widths` (`three steps`) |\n * | `--_ui-steps-step-flex` | each step's `flex` | `equal fluid` |\n * | `--_ui-steps-accent` | circular: ring / line colour of current | `color` |\n * | | and completed steps | |\n * | `--_ui-step-*` / `--_ui-steps-*` aliases | the look (`step.variables`), declared on | `inverted` re-resolves the |\n * | | the group root | `light-dark()` ones |\n *\n * - The first eight rows are private SWITCHES: the group's attributes decide them, so the page never sets them.\n * - Public tokens (`--ui-step-*`, `--ui-steps-radius`, `--ui-steps-border`: the theming surface)\n * are NEVER declared here:\n * - the group root reads each through a private alias, `--_ui-step-padding: var(--ui-step-padding, ...)`\n * - every rule reads the alias, and variations (`inverted`, a step's `color`) write it\n * - so a value set on `:root`, an ancestor, the DOM element or `::part(steps)` reaches every step\n * (`notes/theming.md` \"Component tokens\"); set it on the group or above, not on one step\n *\n * Every STEP root declares the parts' tokens (`UIParts.css`):\n * - the switches `--_ui-step-state` (`normal` / `active` / `disabled`) and `--_ui-step-layout` (`row` / `stacked`)\n * - the aliases of the content's look tokens circular steps vary:\n * `--ui-step-content-margin` / `-padding`, `--ui-step-description-distance` and `--ui-step-active-title-color`\n * (set those on a step, `::part(step)`, or above)\n *\n * - Stacking answers to the GROUP's width:\n * the group root runs the size query in its own tree, and hands the answer down as `--_ui-steps-layout: stacked`\n * (container names are tree-scoped, so a step couldn't query its group's container itself).\n * Static markup: the group's parent is the container.\n * - Sizes: the group root's font size is `--ui-font-size` times the generic `--ui-scale` remap (`sizes.css`);\n * its `<slot>` resets `--ui-scale`, so a step's components aren't scaled twice.\n * - Colours: only circular steps have a hue (`color` on the group, or on one step),\n * through the generic remap (`--ui-color`).\n * The group's DOM element resets the colour tokens, so an outer coloured component can't tint them.\n * - The check (a completed step's icon or number, a completed circular ring)\n * is Font Awesome's `check` as a CSS mask (`--ui-step-check`), where Fomantic embedded a one-glyph icon font.\n * - NOTE: left out, on purpose:\n * - circular steps' `center aligned` / `bottom aligned` content (the parts have no alignment attributes);\n * the connecting line of a vertical circular step is the step's background, not its content's `::before`\n * - Fomantic's `!important`s: sublayers, source order and the tokens give the same wins\n * - RTL arrows (Fomantic's RTL build flips them; the arrow here always points to the inline END)\n */\n\n@layer ui.components.step.types, ui.components.step.content, ui.components.step.variations, ui.components.step.states;\n\n/* Breakpoints (`@custom-media`), inlined at build time: `stack-with=\"page\"`. */\n@import \"../../styles/media.css\";\n\n/*******************************\n Steps\n*******************************/\n\n@layer ui.components.step.types {\n /* DOM elements: a step's root is the flex item; the group's DOM element is the size container for stacking. */\n :host {\n display: contents;\n }\n :host(:state(steps)) {\n display: block;\n container: ui-steps / inline-size;\n /* Only the group's own `color` tints circular steps. */\n --ui-color: initial;\n --ui-color-text: initial;\n --ui-color-header: initial;\n --ui-color-border: initial;\n --ui-color-background: initial;\n --ui-color-inverted: initial;\n --ui-color-hover: initial;\n --ui-color-focus: initial;\n --ui-color-down: initial;\n --ui-color-active: initial;\n --ui-color-on: initial;\n --ui-color-inverted-on: initial;\n }\n /* Static markup: the group's parent is the container. */\n :has(> .ui.steps) {\n container: ui-steps / inline-size;\n }\n\n /* Tokens: the switches and the private aliases, which the group root resolves every variation into;\n steps read them (see the header). */\n .ui.steps {\n --ui-inverted: 0;\n --_ui-steps-layout: horizontal;\n --_ui-steps-circular: 0;\n --_ui-steps-ordered: 0;\n --_ui-steps-arrow: right;\n --_ui-steps-line: horizontal;\n --_ui-steps-column: 0;\n --_ui-steps-radius: var(--ui-steps-radius, var(--ui-radius));\n --_ui-steps-first-radius: var(--_ui-steps-radius) 0 0 var(--_ui-steps-radius);\n --_ui-steps-last-radius: 0 var(--_ui-steps-radius) var(--_ui-steps-radius) 0;\n --_ui-steps-only-radius: var(--_ui-steps-radius);\n --_ui-steps-step-width: auto;\n --_ui-steps-step-wrap: wrap;\n --_ui-steps-step-flex: 1 0 auto;\n --_ui-steps-accent: var(--ui-color, var(--ui-positive));\n --_ui-steps-border: var(--ui-steps-border, var(--ui-border-width) solid var(--ui-border-color));\n /* The check on a completed circular step's accent. */\n --_ui-steps-accent-on: var(--ui-steps-accent-on, white);\n /* ## The look: a private alias per `step.variables` entry that still matters. */\n --_ui-step-background: var(--ui-step-background, var(--ui-surface));\n /* A step of an `inverted` group: the surface darkened. */\n --_ui-step-inverted-background: var(\n --ui-step-inverted-background,\n color-mix(in oklab, var(--ui-surface) 70%, oklch(0 0 0))\n );\n --_ui-step-color: var(--ui-step-color, var(--ui-text-color));\n --_ui-step-divider: var(--ui-step-divider, var(--ui-border-width) solid var(--ui-border-color));\n --_ui-step-border-color: var(--ui-step-border-color, var(--ui-border-color));\n --_ui-step-padding: var(--ui-step-padding, 1.14285em 2em);\n --_ui-step-arrow-size: var(--ui-step-arrow-size, 1.14285em);\n --_ui-step-line-height: var(--ui-step-line-height, 1.14285em);\n --_ui-step-icon-size: var(--ui-step-icon-size, 2.5em);\n --_ui-step-icon-distance: var(--ui-step-icon-distance, var(--ui-font-size));\n --_ui-step-hover-background: var(\n --ui-step-hover-background,\n color-mix(in oklab, var(--ui-ink) 2%, var(--ui-surface))\n );\n --_ui-step-hover-color: var(--ui-step-hover-color, var(--ui-text-hovered));\n --_ui-step-down-background: var(\n --ui-step-down-background,\n color-mix(in oklab, var(--ui-ink) 5%, var(--ui-surface))\n );\n --_ui-step-down-color: var(--ui-step-down-color, var(--ui-text-pressed));\n --_ui-step-active-background: var(\n --ui-step-active-background,\n color-mix(in oklab, var(--ui-ink) 5%, var(--ui-surface))\n );\n --_ui-step-active-icon-color: var(--ui-step-active-icon-color, var(--ui-text-dark));\n --_ui-step-active-hover-background: var(\n --ui-step-active-hover-background,\n color-mix(in oklab, var(--ui-ink) 13%, var(--ui-surface))\n );\n --_ui-step-active-hover-color: var(--ui-step-active-hover-color, var(--ui-text-color));\n --_ui-step-completed-color: var(--ui-step-completed-color, var(--ui-positive));\n --_ui-step-disabled-background: var(--ui-step-disabled-background, var(--_ui-step-background));\n --_ui-step-disabled-color: var(--ui-step-disabled-color, var(--ui-text-disabled));\n --_ui-step-transition: var(\n --ui-step-transition,\n background-color var(--ui-duration-slow) var(--ui-ease),\n opacity var(--ui-duration-slow) var(--ui-ease),\n color var(--ui-duration-slow) var(--ui-ease),\n box-shadow var(--ui-duration-slow) var(--ui-ease)\n );\n --_ui-step-check: var(\n --ui-step-check,\n url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z'/%3E%3C/svg%3E\")\n );\n /* Circular steps. */\n --_ui-step-ring-color: var(--ui-step-ring-color, var(--ui-border-color-strong));\n --_ui-step-ring-width: var(--ui-step-ring-width, 2px);\n --_ui-step-ring-size: var(--ui-step-ring-size, 2.2em);\n --_ui-step-dot-size: var(--ui-step-dot-size, 0.95em);\n --_ui-step-circular-disabled-opacity: var(--ui-step-circular-disabled-opacity, 0.5);\n --_ui-step-circular-title-background: var(--ui-step-circular-title-background, var(--ui-surface));\n }\n\n /* Group: a bordered row of steps.\n - `container: none`: the root is never the size container (its DOM element is, or in static markup its parent).\n A static server render (`spell/ui/static`) moves the DOM element's `container` onto the root,\n where inline-size containment would shrink the inline-flex group to nothing. */\n .ui.steps {\n container: none;\n box-sizing: border-box;\n display: inline-flex;\n flex-flow: row wrap;\n align-items: stretch;\n margin: 1em 0;\n padding: 0;\n font-family: var(--ui-font-family);\n font-size: calc(var(--ui-font-size) * var(--ui-scale, 1));\n line-height: var(--_ui-step-line-height);\n list-style: none;\n counter-reset: ui-step;\n border: var(--_ui-steps-border);\n border-radius: var(--_ui-steps-radius);\n box-shadow: none;\n }\n .ui.unstackable.steps {\n flex-wrap: nowrap;\n }\n .ui.steps > slot {\n --ui-scale: initial;\n }\n :host(:first-child) > .ui.steps,\n .ui.steps:first-child {\n margin-top: 0;\n }\n :host(:last-child) > .ui.steps,\n .ui.steps:last-child {\n margin-bottom: 0;\n }\n /*\n * Shadow DOM: the root is always an only child, so `.ui.steps:first-child` above always matches there;\n * the DOM element's position decides instead.\n * - An inline-flex root's margins never collapse (class grammar's neither), so they stay on the root.\n * - A block-level root's (`:state(block)`: `fluid`, circular) sit on the DOM ELEMENT:\n * a size container is its own formatting context,\n * so a root margin inside it would never collapse with the heading above.\n * The root's are zeroed in \"Circular\" (variations), after the circular margins;\n * a static render's root keeps its own.\n */\n :host(:not(:first-child)) > .ui.steps {\n margin-top: 1em;\n }\n :host(:not(:last-child)) > .ui.steps {\n margin-bottom: 1em;\n }\n :host(:state(block):not(:first-child)),\n :host(:state(block):state(circular)) {\n margin-block-start: 1em;\n }\n :host(:state(block):not(:last-child)),\n :host(:state(block):state(circular)) {\n margin-block-end: 1em;\n }\n}\n\n/*******************************\n Step\n*******************************/\n\n@layer ui.components.step.types {\n /* Every step root declares the parts' tokens: the switches, and the aliases of the look tokens circular steps vary\n (defaults as `UIParts.css` reads them), so a nested step never inherits an outer one's. */\n :host > .step,\n .ui.steps > .step {\n --_ui-step-state: normal;\n --_ui-step-layout: row;\n --_ui-step-content-margin: var(--ui-step-content-margin, 0);\n --_ui-step-content-padding: var(--ui-step-content-padding, 0);\n --_ui-step-description-distance: var(--ui-step-description-distance, 0.25em);\n --_ui-step-active-title-color: var(--ui-step-active-title-color, var(--ui-link));\n position: relative;\n box-sizing: border-box;\n width: var(--_ui-steps-step-width);\n margin: 0;\n padding: 0;\n color: var(--_ui-step-color);\n font: inherit;\n text-align: inherit;\n text-decoration: none;\n background: none;\n border: none;\n border-radius: 0;\n box-shadow: none;\n }\n /* A `<button>` step: a plain box. */\n :host > button.step {\n appearance: none;\n }\n :host > .step:focus-visible,\n .ui.steps > .step:focus-visible {\n outline: var(--ui-focus-width) solid var(--ui-focus-color, var(--ui-link));\n outline-offset: calc(-1 * var(--ui-focus-width));\n z-index: 3;\n }\n\n /* The box of a regular (not circular) step. */\n @container not style(--_ui-steps-circular: 1) {\n :host > .step,\n .ui.steps > .step {\n display: flex;\n flex: var(--_ui-steps-step-flex);\n flex-flow: row var(--_ui-steps-step-wrap);\n align-items: center;\n justify-content: center;\n padding: var(--_ui-step-padding);\n vertical-align: middle;\n background: var(--_ui-step-background);\n border-right: var(--_ui-step-divider);\n transition: var(--_ui-step-transition);\n }\n\n /* Arrow: a rotated square over the divider, pointing at the next step. */\n :host > .step::after,\n .ui.steps > .step::after {\n content: \"\";\n position: absolute;\n z-index: 2;\n top: 50%;\n right: 0;\n display: block;\n width: var(--_ui-step-arrow-size);\n height: var(--_ui-step-arrow-size);\n background-color: var(--_ui-step-background);\n border-style: solid;\n border-color: var(--_ui-step-border-color);\n border-width: 0 var(--ui-border-width) var(--ui-border-width) 0;\n transform: translateY(-50%) translateX(50%) rotate(-45deg);\n transition: var(--_ui-step-transition);\n }\n\n /* First, last and only step. */\n :host(:first-child) > .step,\n .ui.steps > .step:first-child {\n border-radius: var(--_ui-steps-first-radius);\n }\n :host(:last-child) > .step,\n .ui.steps > .step:last-child {\n margin-right: 0;\n border-right: none;\n border-radius: var(--_ui-steps-last-radius);\n }\n :host(:last-child) > .step::after,\n .ui.steps > .step:last-child::after {\n display: none;\n }\n :host(:only-child) > .step,\n .ui.steps > .step:only-child {\n border-radius: var(--_ui-steps-only-radius);\n }\n }\n}\n\n@layer ui.components.step.content {\n /* Icon: a large glyph beside the content. */\n :host > .step > .icon,\n .ui.steps > .step > .icon {\n display: block;\n flex: 0 1 auto;\n align-self: center;\n width: auto;\n margin: 0 var(--_ui-step-icon-distance) 0 0;\n font-size: var(--_ui-step-icon-size);\n line-height: 1;\n }\n /* The glyph: the check, or the `icon` glyph as the icon slot's fallback content (hence a descendant). */\n :host > .step > .icon svg,\n .ui.steps > .step > .icon svg {\n display: block;\n width: auto;\n height: 1em;\n }\n :host > .step > .icon > slot::slotted(*) {\n --_ui-icon-owner-margin: 0;\n }\n\n /* Link steps. */\n :host > :is(a, button).step,\n .ui.steps > :is(a, .link).step {\n cursor: pointer;\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.step.variations {\n /* Sizes: the generic `--ui-scale` remap sets the group's font size; static markup only for `medium`. */\n .ui.medium.steps {\n --ui-scale: 1;\n }\n\n /* --------------\n Ordered\n --------------- */\n\n .ui.ordered.steps {\n --_ui-steps-ordered: 1;\n }\n @container style(--_ui-steps-ordered: 1) {\n :host > .step::before,\n .ui.steps > .step::before {\n content: counter(ui-step);\n counter-increment: ui-step;\n align-self: center;\n font-family: inherit;\n font-weight: var(--ui-font-weight-bold);\n text-align: center;\n }\n :host > .step > :not(slot),\n .ui.steps > .step > * {\n display: block;\n align-self: center;\n }\n }\n @container not style(--_ui-steps-circular: 1) {\n @container style(--_ui-steps-ordered: 1) {\n :host > .step::before,\n .ui.steps > .step::before {\n display: block;\n position: static;\n margin-right: var(--_ui-step-icon-distance);\n font-size: var(--_ui-step-icon-size);\n line-height: 1;\n }\n /* A completed step shows the check instead of its number (a circular one fills its ring instead). */\n :host > .step.completed::before,\n .ui.steps > .step.completed::before {\n content: \"\";\n width: 1em;\n height: 1em;\n background-color: currentColor;\n mask: var(--_ui-step-check) center / contain no-repeat;\n }\n }\n }\n\n /* --------------\n Equal\n --------------- */\n\n /* `equal` (no count): every step as wide as the widest -- a grid of equal columns, so the group hugs them;\n with `fluid`, an equal share of the row each.\n Stacking (below) still wins: it comes later at the same specificity. */\n .ui.equal.steps:not(.vertical, .circular, .fluid) {\n display: inline-grid;\n grid-auto-columns: 1fr;\n grid-auto-flow: column;\n }\n .ui.equal.fluid.steps:not(.vertical, .circular) {\n --_ui-steps-step-flex: 1 1 0%;\n }\n\n /* --------------\n Vertical\n --------------- */\n\n .ui.vertical.steps {\n --_ui-steps-layout: vertical;\n --_ui-steps-line: vertical;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n .ui.right.vertical.steps {\n --_ui-steps-arrow: left;\n }\n\n /* --------------\n Stacked\n --------------- */\n\n /* Below 768px of the group (992px for `tablet stackable`), unless `unstackable`: one step per row.\n Attached corners (below) still win, as in Fomantic. */\n @container ui-steps (width < 768px) {\n @container not style(--ui-stack-with: page) {\n .ui.steps:not(.unstackable, .circular):not(.stack-with-page) {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n @container style(--ui-stack-with: page) {\n .ui.steps:not(.unstackable, .circular).stack-with-container {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n }\n @media (--ui-mobile) {\n @container style(--ui-stack-with: page) {\n .ui.steps:not(.unstackable, .circular):not(.stack-with-container) {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n @container not style(--ui-stack-with: page) {\n .ui.steps:not(.unstackable, .circular).stack-with-page {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n }\n @container ui-steps (width < 992px) {\n @container not style(--ui-stack-with: page) {\n .ui[class*=\"tablet stackable\"].steps:not(.circular):not(.stack-with-page) {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n @container style(--ui-stack-with: page) {\n .ui[class*=\"tablet stackable\"].steps:not(.circular).stack-with-container {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n }\n @media (--ui-mobile), (--ui-tablet) {\n @container style(--ui-stack-with: page) {\n .ui[class*=\"tablet stackable\"].steps:not(.circular):not(.stack-with-container) {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n @container not style(--ui-stack-with: page) {\n .ui[class*=\"tablet stackable\"].steps:not(.circular).stack-with-page {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n }\n\n /* Row layouts of regular steps (circular steps have their own, below). */\n @container not style(--_ui-steps-circular: 1) {\n /* Vertical and stacked steps: one per row, a rule under each but the last. */\n @container style(--_ui-steps-column: 1) {\n :host > .step,\n .ui.steps > .step {\n justify-content: flex-start;\n border-right: none;\n border-bottom: var(--_ui-step-divider);\n }\n :host(:last-child) > .step,\n .ui.steps > .step:last-child {\n border-bottom: none;\n }\n }\n\n /* Vertical: the arrow only on the current step, at its end (or start, `right vertical`). */\n @container style(--_ui-steps-layout: vertical) {\n :host > .step::after,\n .ui.steps > .step::after {\n display: none;\n }\n :host > .step.active::after,\n .ui.steps > .step.active::after,\n :host(:last-child) > .step.active::after,\n .ui.steps > .step.active:last-child::after {\n display: block;\n }\n }\n @container style(--_ui-steps-layout: vertical) and style(--_ui-steps-arrow: left) {\n :host > .step::after,\n .ui.steps > .step::after {\n right: 100%;\n left: 0;\n border-width: var(--ui-border-width) 0 0 var(--ui-border-width);\n transform: translateY(-50%) translateX(-50%) rotate(-45deg);\n }\n }\n\n /* Stacked: full width, content centred, the arrow under the step pointing down. */\n @container style(--_ui-steps-layout: stacked) {\n :host > .step,\n .ui.steps > .step {\n --_ui-step-layout: stacked;\n width: 100%;\n flex-direction: column;\n border-bottom: var(--_ui-steps-border);\n }\n :host(:last-child) > .step,\n .ui.steps > .step:last-child {\n border-bottom: none;\n }\n :host > .step::after,\n .ui.steps > .step::after {\n top: unset;\n right: 50%;\n bottom: calc(-1 * var(--_ui-step-arrow-size));\n transform: translateY(-50%) translateX(50%) rotate(45deg);\n }\n :host(:last-child) > .step.active::after,\n .ui.steps > .step.active:last-child::after {\n display: none;\n }\n :host > .step > .content,\n .ui.steps > .step > .content {\n text-align: center;\n }\n :host > .step > .icon,\n .ui.steps > .step > .icon,\n :host > .step::before,\n .ui.steps > .step::before {\n margin: 0 0 var(--_ui-step-icon-distance) 0;\n }\n }\n }\n\n /* --------------\n Fluid\n --------------- */\n\n .ui.fluid.steps {\n display: flex;\n width: 100%;\n }\n\n /* --------------\n Attached\n --------------- */\n\n .ui.attached.steps:not(.circular),\n .ui.top.attached.steps:not(.circular) {\n --_ui-steps-first-radius: var(--_ui-steps-radius) 0 0 0;\n --_ui-steps-last-radius: 0 var(--_ui-steps-radius) 0 0;\n --_ui-steps-only-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n width: calc(100% + 2 * var(--ui-border-width));\n max-width: calc(100% + 2 * var(--ui-border-width));\n margin: 0 calc(-1 * var(--ui-border-width)) 0;\n border-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n }\n .ui.bottom.attached.steps:not(.circular) {\n --_ui-steps-first-radius: 0 0 0 var(--_ui-steps-radius);\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) 0;\n --_ui-steps-only-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n margin: 0 calc(-1 * var(--ui-border-width)) 0;\n border-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n }\n\n /* --------------\n Evenly divided\n --------------- */\n\n .ui:is(.one, .two, .three, .four, .five, .six, .seven, .eight).steps {\n --_ui-steps-step-wrap: nowrap;\n width: 100%;\n }\n .ui.one.steps {\n --_ui-steps-step-width: 100%;\n }\n .ui.two.steps {\n --_ui-steps-step-width: 50%;\n }\n .ui.three.steps {\n --_ui-steps-step-width: 33.333%;\n }\n .ui.four.steps {\n --_ui-steps-step-width: 25%;\n }\n .ui.five.steps {\n --_ui-steps-step-width: 20%;\n }\n .ui.six.steps {\n --_ui-steps-step-width: 16.666%;\n }\n .ui.seven.steps {\n --_ui-steps-step-width: 14.285%;\n }\n .ui.eight.steps {\n --_ui-steps-step-width: 12.5%;\n }\n\n /* --------------\n Inverted\n --------------- */\n\n .ui.inverted.steps {\n --ui-inverted: 1;\n --ui-scheme: dark;\n color-scheme: dark;\n --_ui-step-background: var(--_ui-step-inverted-background);\n --_ui-step-active-background: color-mix(in oklab, var(--ui-ink) 13%, var(--_ui-step-background));\n --_ui-step-hover-background: color-mix(in oklab, var(--ui-ink) 16%, var(--_ui-step-background));\n --_ui-step-active-hover-background: color-mix(in oklab, var(--ui-ink) 20%, var(--_ui-step-background));\n --_ui-step-down-background: var(--_ui-step-active-hover-background);\n --_ui-step-active-icon-color: var(--ui-text-selected);\n --_ui-step-disabled-background: color-mix(in oklab, var(--ui-ink) 6%, var(--_ui-step-background));\n --_ui-step-circular-title-background: var(--_ui-step-background);\n }\n\n /* --------------\n Circular\n --------------- */\n\n .ui.circular.steps {\n --_ui-steps-circular: 1;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n }\n .ui.circular.steps:not(.vertical) {\n display: flex;\n position: relative;\n margin: 1em 0;\n padding: 1em 0;\n background: transparent;\n }\n .ui.circular.vertical.steps {\n display: inline-flex;\n flex-flow: column wrap;\n align-items: flex-start;\n }\n /* Shadow DOM: a block-level root's outer margin is the DOM element's (see \"Group\"). */\n :host(:state(block)) > .ui.steps:not([data-ui]) {\n margin-block: 0;\n }\n\n @container style(--_ui-steps-circular: 1) {\n /* Every circular step: a ring (`::before`) around a dot (`::after`). */\n :host > .step,\n .ui.steps > .step {\n color: inherit;\n cursor: default;\n }\n :host > .step::before,\n .ui.steps > .step::before {\n content: \"\";\n position: absolute;\n box-sizing: border-box;\n width: var(--_ui-step-ring-size);\n height: var(--_ui-step-ring-size);\n line-height: calc(var(--_ui-step-ring-size) - 2 * var(--_ui-step-ring-width));\n text-align: center;\n border: var(--_ui-step-ring-width) solid var(--_ui-step-ring-color);\n border-radius: 50%;\n }\n :host > .step::after,\n .ui.steps > .step::after {\n content: \"\";\n position: absolute;\n display: block;\n width: var(--_ui-step-dot-size);\n height: var(--_ui-step-dot-size);\n background: var(--_ui-step-ring-color);\n border-radius: 50%;\n }\n :host > :is(a, button).step,\n .ui.steps > :is(a, .link).step {\n cursor: pointer;\n }\n /* The step's own `color` wins over the group's. */\n :host\n > .step:is(\n [class~=\"red\"],\n [class~=\"orange\"],\n [class~=\"yellow\"],\n [class~=\"olive\"],\n [class~=\"green\"],\n [class~=\"teal\"],\n [class~=\"blue\"],\n [class~=\"violet\"],\n [class~=\"purple\"],\n [class~=\"pink\"],\n [class~=\"brown\"],\n [class~=\"grey\"],\n [class~=\"black\"],\n [class~=\"primary\"],\n [class~=\"secondary\"]\n ),\n .ui.steps\n > .step:is(\n .red,\n .orange,\n .yellow,\n .olive,\n .green,\n .teal,\n .blue,\n .violet,\n .purple,\n .pink,\n .brown,\n .grey,\n .black,\n .primary,\n .secondary\n ) {\n --_ui-steps-accent: var(--ui-color);\n --_ui-step-ring-color: var(--ui-color);\n }\n\n /* Content (a part: `UIParts.css` reads these): beside the ring. */\n :host > .step,\n .ui.steps > .step {\n --_ui-step-content-padding: 0 0.5em;\n --_ui-step-description-distance: 0.5em;\n }\n }\n\n /* Horizontal circular steps: the step IS the connecting line, its ring at its start. */\n @container style(--_ui-steps-circular: 1) and style(--_ui-steps-line: horizontal) {\n :host > .step,\n .ui.steps > .step {\n --_ui-step-content-margin: -1.5em 0 0;\n display: flex;\n flex: 1;\n flex-wrap: wrap;\n align-items: center;\n height: var(--_ui-step-ring-width);\n margin-left: var(--_ui-step-ring-size);\n background: var(--_ui-step-ring-color);\n }\n :host(:last-child) > .step,\n .ui.steps > .step:last-child {\n flex: 0;\n }\n :host(:last-child:state(content)) > .step,\n .ui.steps > .step:last-child:has(> .content) {\n flex: 1;\n }\n :host > .step::before,\n .ui.steps > .step::before {\n left: calc(-1 * var(--_ui-step-ring-size));\n }\n :host > .step::after,\n .ui.steps > .step::after {\n left: calc(var(--_ui-step-dot-size) - var(--_ui-step-ring-size) - 0.3em);\n }\n }\n\n /* Vertical circular steps: the ring at the top start, a line down to the next one. */\n @container style(--_ui-steps-circular: 1) and style(--_ui-steps-line: vertical) {\n :host > .step,\n .ui.steps > .step {\n position: relative;\n display: block;\n width: 100%;\n min-height: var(--_ui-step-ring-size);\n }\n :host > .step::before,\n .ui.steps > .step::before {\n top: 0;\n left: 0;\n }\n :host > .step::after,\n .ui.steps > .step::after {\n top: calc((var(--_ui-step-ring-size) - var(--_ui-step-dot-size)) / 2);\n left: calc((var(--_ui-step-ring-size) - var(--_ui-step-dot-size)) / 2);\n }\n :host > .step,\n .ui.steps > .step {\n padding-left: 3.5em;\n }\n :host(:not(:last-child)) > .step,\n .ui.steps > .step:not(:last-child) {\n padding-bottom: 3em;\n background: linear-gradient(var(--_ui-step-ring-color), var(--_ui-step-ring-color)) no-repeat\n calc(var(--_ui-step-ring-size) / 2 - var(--_ui-step-ring-width) / 2) var(--_ui-step-ring-size) /\n var(--_ui-step-ring-width) calc(100% - var(--_ui-step-ring-size));\n }\n }\n\n /* Ordered circular steps: the number in the ring, no dot. */\n @container style(--_ui-steps-circular: 1) and style(--_ui-steps-ordered: 1) {\n :host > .step::before,\n .ui.steps > .step::before {\n content: counter(ui-step);\n width: var(--_ui-step-ring-size);\n height: var(--_ui-step-ring-size);\n mask: none;\n background: var(--_ui-step-background);\n }\n :host > .step::after,\n .ui.steps > .step::after {\n background: transparent;\n }\n }\n}\n\n/*******************************\n States\n*******************************/\n\n@layer ui.components.step.states {\n /* Link hover and down (not circular). */\n @container not style(--_ui-steps-circular: 1) {\n :host > :is(a[href], button).step:hover,\n :host > :is(a[href], button).step:hover::after,\n .ui.steps > :is(a, .link).step:hover,\n .ui.steps > :is(a, .link).step:hover::after {\n color: var(--_ui-step-hover-color);\n background: var(--_ui-step-hover-background);\n }\n :host > :is(a[href], button).step:active,\n :host > :is(a[href], button).step:active::after,\n .ui.steps > :is(a, .link).step:active,\n .ui.steps > :is(a, .link).step:active::after {\n color: var(--_ui-step-down-color);\n background: var(--_ui-step-down-background);\n }\n\n /* Active: a darker fill (arrow included), the title in the link colour (`UIParts.css`). */\n :host > .step.active,\n :host > .step.active::after,\n .ui.steps > .step.active,\n .ui.steps > .step.active::after {\n background: var(--_ui-step-active-background);\n }\n :host > .step.active,\n .ui.steps > .step.active {\n cursor: auto;\n }\n :host > :is(a[href], button).step.active:hover,\n :host > :is(a[href], button).step.active:hover::after,\n .ui.steps > :is(a, .link).step.active:hover,\n .ui.steps > :is(a, .link).step.active:hover::after {\n color: var(--_ui-step-active-hover-color);\n background: var(--_ui-step-active-hover-background);\n cursor: pointer;\n }\n\n /* Disabled */\n :host > .step.disabled,\n :host > .step.disabled::after,\n .ui.steps > .step.disabled,\n .ui.steps > .step.disabled::after {\n color: var(--_ui-step-disabled-color);\n background: var(--_ui-step-disabled-background);\n }\n :host > .step.disabled,\n .ui.steps > .step.disabled {\n cursor: auto;\n pointer-events: none;\n }\n }\n\n /* Parts' state token, every layout. */\n :host > .step.active,\n .ui.steps > .step.active {\n --_ui-step-state: active;\n }\n :host > .step.disabled,\n .ui.steps > .step.disabled {\n --_ui-step-state: disabled;\n }\n\n /* The current step's icon / number darkens; a completed one turns the positive colour. */\n :host > .step.active > .icon,\n .ui.steps > .step.active > .icon,\n :host > .step.active::before,\n .ui.steps > .step.active::before {\n color: var(--_ui-step-active-icon-color);\n }\n :host > .step.completed > .icon,\n .ui.steps > .step.completed > .icon,\n :host > .step.completed::before,\n .ui.steps > .step.completed::before {\n color: var(--_ui-step-completed-color);\n }\n\n /* Circular: the current step's ring and dot in the accent, a completed one filled with a white check. */\n @container style(--_ui-steps-circular: 1) {\n :host > .step.active,\n .ui.steps > .step.active {\n --_ui-step-active-title-color: var(--_ui-steps-accent);\n }\n :host > .step.active::before,\n .ui.steps > .step.active::before {\n color: var(--_ui-steps-accent);\n border-color: var(--_ui-steps-accent);\n }\n :host > .step.active::after,\n .ui.steps > .step.active::after {\n background: var(--_ui-steps-accent);\n }\n :host > .step.completed::before,\n .ui.steps > .step.completed::before {\n background: var(--_ui-steps-accent);\n border-color: var(--_ui-steps-accent);\n }\n :host > .step.completed::after,\n .ui.steps > .step.completed::after {\n background: var(--_ui-steps-accent-on);\n mask: var(--_ui-step-check) center / contain no-repeat;\n }\n :host > .step.disabled,\n .ui.steps > .step.disabled {\n cursor: auto;\n opacity: var(--_ui-step-circular-disabled-opacity);\n pointer-events: none;\n }\n }\n @container style(--_ui-steps-circular: 1) and style(--_ui-steps-line: horizontal) {\n :host > .step.completed,\n .ui.steps > .step.completed {\n background: var(--_ui-steps-accent);\n }\n }\n @container style(--_ui-steps-circular: 1) and style(--_ui-steps-line: vertical) {\n :host(:not(:last-child)) > .step.completed,\n .ui.steps > .step.completed:not(:last-child) {\n --_ui-step-ring-color: var(--_ui-steps-accent);\n }\n }\n /* Ordered circular: the number, not a dot, in the current ring; a completed ring keeps its check. */\n @container style(--_ui-steps-circular: 1) and style(--_ui-steps-ordered: 1) {\n :host > .step.completed::before,\n .ui.steps > .step.completed::before {\n content: \"\";\n }\n :host > .step:not(.completed)::after,\n .ui.steps > .step:not(.completed)::after {\n background: transparent;\n }\n }\n}\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { stepsVocabulary } from \"./UISteps.en\"\n\nimport stepCSS from \"./UIStep.css?inline\"\n\n/****************\n * ### `UISteps`\n * The component behind `<ui-steps>`:\n * a group of steps, `<ol class=\"ui … steps\" part=\"steps\" role=\"list\"><slot></slot></ol>`.\n * Steps are a sequence, and each `<ui-step>`'s DOM element is a `listitem`.\n *\n * - `role=\"list\"` is explicit: `list-style: none` drops the list semantics in Safari.\n *\n * - The root resolves every variation into inherited `--_ui-steps-*` tokens the steps read (`UIStep.css`).\n * That includes stacking:\n * - the DOM element is a block and the size container `ui-steps` (`:state(steps)`)\n * - the root turns `stacked` below 768px of it unless `unstackable`\n * - with `stack-with=\"page\"` (a private class before the noun), below 768px of the screen\n *\n * - Numbering (`ordered`) is a CSS counter, reset here and incremented by each step,\n * across the shadow boundaries.\n *\n * - The DOM element's states:\n * - `steps` always\n * - `block` while the root is block-level (`fluid`, or circular and not vertical)\n * - `circular` while circular\n * - Why `block`: the DOM element is a size container (its own formatting context),\n * so a block-level root's outer margin sits on the DOM ELEMENT,\n * to collapse with the content above as class grammar's does.\n * An inline-flex root's never collapses, so it stays on the root (`UIStep.css`).\n ****************/\nexport class UISteps extends E.UIComponent<typeof stepsVocabulary> {\n @E.proto static vocabulary = stepsVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { step: stepCSS },\n // the steps are the focus targets, each its own DOM element\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** Always: the size container `ui-steps` (`:state(steps)`). */\n @E.cssState(\"steps\")\n get isStepGroup(): boolean {\n return true\n }\n\n /** The root is block-level: `fluid`, or circular and not vertical (`:state(block)`). */\n @E.cssState(\"block\")\n get isBlockLevel(): boolean {\n return !!this.fluid || (this.isCircular && !this.isVertical)\n }\n\n /** `appearance=\"circular\"`: `:state(circular)`. */\n @E.cssState(\"circular\")\n get isCircular(): boolean {\n return String(this.appearance ?? \"\")\n .split(\" \")\n .includes(CIRCULAR)\n }\n\n /** The steps run top to bottom (`direction=\"vertical\"`, or `vertical-right`). */\n get isVertical(): boolean {\n return String(this.direction ?? \"\").startsWith(VERTICAL)\n }\n\n /** `stack-with`'s class (`UIT.StackClasses`). */\n protected get extraClass(): string | undefined {\n return UIT.StackClasses.classFor(this.stackWith)\n }\n\n render(): JSX.Element {\n return (\n <ol class={this.rootClass} part={this.partForName(\"steps\")} role=\"list\">\n <slot />\n </ol>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UISteps extends E.AttributeValues<typeof stepsVocabulary> {}\n\n/** The `appearance` word of Fomantic's circular steps. */\nconst CIRCULAR = \"circular\"\n\n/** The `direction` of steps stacked top to bottom (`vertical-right` too). */\nconst VERTICAL = \"vertical\"\n","/**\n * The English vocabulary of `<ui-step>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-steps ordered direction=\"vertical-right\" widths=\"3\">` => `ui ordered right vertical three steps`;\n * `<ui-step selected completed>` => `completed active step` (a step has no `ui`, as Fomantic's `.ui.steps > .step`).\n * `UIStep.css` keys on those words.\n * - Chosen state: `selected` is canonical (`AGENTS.md`), its class word Fomantic's `active`;\n * an `active` ATTRIBUTE is accepted as an alias (the element reads it raw, through `attributes`).\n * The selected step is the CURRENT one: `aria-current=\"step\"`.\n * - Content is the generic parts, owned by the step (`ownsParts`): `<ui-content>`, `<ui-title>`,\n * `<ui-description>`; or the shorthands `header` (the title -- NOT `title`, the global tooltip attribute and an\n * `HTMLElement` property, as the popup's `header`) and `description`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `stepVocabulary`\n * The names of `<ui-step>`, one step: `<div class=\"[keyOnly ...] step\" part=\"step\">` (`<a>` with `href`,\n * `<button>` with `link`) holding the icon box, the shorthand content and the slot.\n ****************/\nexport const stepVocabulary = {\n tag: \"ui-step\",\n topics: [\"navigation\", \"progress\", \"content parts\", \"elements\"],\n aka: [\"wizard step\", \"stage\"],\n noun: \"step\",\n ui: false,\n description: \"One step of a set of steps.\",\n attributes: [\n {\n name: \"color\",\n group: \"appearance\",\n kind: \"color\",\n description: \"Circular steps: hue of this step's ring and line, whatever its state.\"\n },\n {\n name: \"selected\",\n group: \"states\",\n kind: \"keyOnly\",\n key: \"active\",\n description:\n 'The CURRENT step (`aria-current=\"step\"`). Alias: `active`. NOTE: Fomantic\\'s word for it is `active`.'\n },\n {\n name: \"completed\",\n group: \"states\",\n kind: \"keyOnly\",\n description: \"Done: its icon (or number) becomes a check.\"\n },\n {\n name: \"disabled\",\n group: \"states\",\n kind: \"keyOnly\",\n description: \"Not available yet: dimmed, and a link step isn't followed.\"\n },\n {\n name: \"link\",\n group: \"link\",\n kind: \"string\",\n replaces: [\"href\"],\n description: \"Where it goes: renders a link (`<a>`) styled as a step. Its old name was `href`.\"\n },\n { name: \"target\", group: \"link\", kind: \"string\", description: \"Link target, with `link`.\" },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n values: [\"link\"],\n // its words are Fomantic's classes as they are\n classes: {},\n replaces: [{ from: \"link\", value: \"link\" }],\n description:\n \"The look: `link` -- clickable without a `link` to go to: renders a `<button>`, with the link hover; \" +\n \"the page handles `click`. Its old name was the bare `link` switch.\"\n },\n { name: \"icon\", group: \"content\", kind: \"icon\", description: \"Icon name, before the content.\" },\n {\n name: \"heading\",\n replaces: [\"header\"],\n group: \"name\",\n kind: \"string\",\n description: \"Shorthand for the title (Fomantic's `.title`). Its old name was `header`.\"\n },\n {\n name: \"description\",\n group: \"content\",\n kind: \"string\",\n description: \"Shorthand for the description under the title.\"\n },\n {\n name: \"parent\",\n group: \"layout\",\n kind: \"string\",\n description:\n 'Id of the `<ui-steps>` this step belongs to, when it\\'s written outside them (`parent=\"checkout\"`): ' +\n \"it joins them, in page order, as if nested there.\"\n }\n ],\n events: [],\n slots: [\n { name: \"\", description: \"Content: `<ui-content>` with `<ui-title>` / `<ui-description>`, or those parts alone.\" },\n { name: \"icon\", description: \"Icon, instead of the `icon` attribute (a check replaces it once `completed`).\" }\n ],\n parts: [\n { name: \"step\", description: \"The step box (`<div>`, `<a>` or `<button>`).\" },\n { name: \"icon\", description: \"The icon box.\" },\n { name: \"content\", description: \"The shorthand content block.\" },\n { name: \"title\", description: \"The `header` shorthand.\" },\n { name: \"description\", description: \"The `description` shorthand.\" }\n ],\n states: [\n { name: \"selected\", description: \"The current step (`selected` or `active`).\" },\n { name: \"completed\", description: \"Done.\" },\n { name: \"disabled\", description: \"Not available.\" },\n {\n name: \"content\",\n description: \"Has content (shorthand or slotted): a last circular step then takes the rest of the row.\"\n }\n ],\n texts: [\n {\n key: \"stepCompleted\",\n text: \"Completed\",\n description: \"Visually hidden after a completed step's content: the check alone says nothing to a screen reader.\"\n }\n ],\n ownsParts: [\"content\", \"title\", \"description\"]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport { Dynamic, isServer, type JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { stepVocabulary } from \"./UIStep.en\"\n\nimport partsCSS from \"spell/ui/components/ui-parts/UIParts.css?inline\"\nimport stepCSS from \"./UIStep.css?inline\"\n\n/****************\n * ### `UIStep`\n * The component behind `<ui-step>`: one step of a sequence.\n * Its shadow DOM:\n * `<div class=\"[color] [keyOnly ...] step\" part=\"step\">` (an `<a>` with `href`, a `<button>` with `link`)\n * holding the icon box, the shorthand content (`header`, `description`), the slot,\n * and once `completed`, a visually hidden \"Completed\".\n *\n * - Semantics:\n * - the DOM element is a `listitem` (through `internals`) of the group's `<ol>`;\n * - the selected step is the current one: `aria-current=\"step\"` on the root;\n * - a disabled step is `aria-disabled` (a link keeps its `<a>`, without `href`),\n * a disabled `<button>` is `disabled`:\n * its dimmed text is an INACTIVE component's (WCAG 1.4.3's exemption), and assistive tech says so.\n *\n * - `selected` is canonical; an `active` attribute is Fomantic's word for it, read raw (`attributes`).\n *\n * - Completed: a check replaces the icon\n * (the `icon` glyph, or the slotted `slot=icon`, which stays in the DOM, hidden);\n * an ordered step's number turns into a check in CSS.\n *\n * - It OWNS the `content`, `title` and `description` parts (`ownsParts`):\n * slotted parts style themselves from `UIParts.css` (`:state(in-step)`),\n * reading `--_ui-step-state` and `--_ui-step-layout` from this root.\n * The shorthands are the same parts drawn here with their static `in-step` classes,\n * which is why the step adopts `UIParts.css`.\n *\n * - `parent=\"<id>\"`: written outside its `<ui-steps>`, it moves in, as if nested there (`ParentLink`).\n *\n * - Group variations (vertical, ordered, stacked, circular ...)\n * arrive as inherited `--_ui-steps-*` tokens from the `<ui-steps>` root;\n * `UIStep.css` reads them (see its header).\n ****************/\nexport class UIStep extends E.UIComponent<typeof stepVocabulary> {\n @E.proto static vocabulary = stepVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { step: stepCSS, parts: partsCSS },\n cssStates: [\"completed\"],\n // one item of the group's ordered list; a server render (`spell/ui/static`) makes the root an `<li>`\n aria: { role: \"listitem\" },\n // `disabled`: its link or button is disabled\n disabled: \"its own\"\n } satisfies Partial<E.ElementSetup>\n\n ////////////////\n // ## State\n ////////////////\n\n /** The current step: `selected`, or the `active` alias; `:state(selected)`. */\n @E.cssState(\"selected\")\n get isSelected(): boolean {\n return this.selected || E.Converters.boolean(this.attributes[UIT.ACTIVE], UIT.ACTIVE)\n }\n\n /** Disabled by its attribute; `:state(disabled)`. */\n @E.cssState(\"disabled\")\n get isDisabled(): boolean {\n return !!this.disabled\n }\n\n ////////////////\n // ## Content\n ////////////////\n\n /** Light-DOM slot occupancy. */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** Has shorthand content? */\n get hasShorthand(): boolean {\n return !!this.heading || !!this.description\n }\n\n /** Has content (shorthand or slotted): `:state(content)`. */\n @E.cssState(\"content\")\n get hasContent(): boolean {\n return this.hasShorthand || this.slots.hasContent(\"\")\n }\n\n ////////////////\n // ## The icon\n ////////////////\n\n /** Glyph of the `icon` shorthand. */\n readonly iconGlyph = new E.IconGlyph({ owner: this, name: () => this.icon })\n\n /** Has an icon (shorthand or `icon` slot)? */\n get hasIcon(): boolean {\n return !!this.icon || this.slots.hasContent(this.slotForName(\"icon\"))\n }\n\n /** The check a completed step shows in place of its icon. */\n readonly checkGlyph = new E.IconGlyph({\n owner: this,\n name: () => (this.completed && this.hasIcon ? CHECK : undefined)\n })\n\n ////////////////\n // ## Classes\n ////////////////\n\n /**\n * Extra class words:\n * - `active` for the `active` alias, when `selected` doesn't add it\n * - `ui-<color>` for a coloured step:\n * the generic colour remap (`colors.css`) keys on `.ui.red` / `.ui-red`, and a step has no `ui`\n */\n protected get extraClass(): string | undefined {\n const color = this.color\n const extra = [\n this.isSelected && !this.selected ? UIT.ACTIVE : \"\",\n color ? `${UIT.COLOR_CLASS_PREFIX}${color}` : \"\"\n ]\n return extra.filter(Boolean).join(\" \") || undefined\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n /** Root element: a link (`link`), a button (`appearance=\"link\"`), or a box. */\n get rootTag(): string {\n if (this.link) return \"a\"\n return String(this.appearance ?? \"\")\n .split(\" \")\n .includes(LINK_LOOK)\n ? \"button\"\n : \"div\"\n }\n\n render(): JSX.Element {\n return (\n <Dynamic\n component={this.rootTag}\n class={this.rootClass}\n part={this.partForName(\"step\")}\n href={this.linkTo}\n target={this.linkTarget}\n type={this.rootTag === \"button\" ? \"button\" : undefined}\n disabled={this.rootTag === \"button\" && this.disabled ? true : undefined}\n aria-disabled={this.rootTag !== \"button\" && this.disabled ? \"true\" : undefined}\n aria-current={this.isSelected ? \"step\" : undefined}\n >\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n {/* a server render (`spell/ui/static`) swaps the slot for its content, `hidden` and all: leave it out */}\n <Show when={!(isServer && this.completed)}>\n <slot name={this.slotForName(\"icon\")} hidden={this.completed || undefined}>\n {this.iconGlyph.svg}\n </slot>\n </Show>\n {this.checkGlyph.svg}\n </span>\n </Show>\n <Show when={this.hasShorthand}>\n <div class={this.staticPart(UIT.CONTENT)} part={this.partForName(\"content\")}>\n <Show when={this.heading}>\n <div class={this.staticPart(TITLE_PART)} part={this.partForName(\"title\")}>\n {this.heading}\n </div>\n </Show>\n <Show when={this.description}>\n <div class={this.staticPart(UIT.DESCRIPTION)} part={this.partForName(\"description\")}>\n {this.description}\n </div>\n </Show>\n </div>\n </Show>\n <slot />\n <Show when={this.completed}>\n <span class={UIT.VISUALLY_HIDDEN}>{this.translationForKey(\"stepCompleted\")}</span>\n </Show>\n </Dynamic>\n )\n }\n\n /** Classes of a shorthand part: its noun and the static owner class (`UIParts.css`), e.g. `title in-step`. */\n private staticPart(noun: string): string {\n return `${noun} ${UIT.PART_STATIC_CLASS_PREFIX}${this.vocabulary.noun}`\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIStep extends E.AttributeValues<typeof stepVocabulary> {}\n\n/** The `header` shorthand's part and class word, Fomantic's `.title` (not `UIT.TITLE`, the tooltip attribute). */\nconst TITLE_PART = \"title\"\n\n/** Glyph of a completed step's icon. */\nconst CHECK = \"check\"\n\n/** The `appearance` word for a step that's clickable without a `link`: a `<button>`, with the link hover. */\nconst LINK_LOOK = \"link\"\n","/**\n * The step family: defines `<ui-steps>` and `<ui-step>`, and exports their components, `UISteps` and `UIStep`.\n * - SIDE EFFECT: importing it defines the tags.\n * - Also the library's `spell/ui/ui-step` entry (its size is in `notes/report.md`).\n * - NOTE: slotted step content is the generic parts (`<ui-content>`, `<ui-title>`, `<ui-description>`):\n * load `spell/ui/ui-parts` for them; the `header` / `description` shorthands need nothing more.\n */\n\nimport { UISteps } from \"./UISteps\"\nimport { UIStep } from \"./UIStep\"\n\nUISteps.define()\nUIStep.define()\n\nexport { UISteps, UIStep }\n"],"mappings":";;;;;AAuBA,IAAaoE,KAAkB;CAC7B,KAAK;CACL,QAAQ;EAAC;EAAc;EAAY;EAAU;CAAU;CACvD,KAAK;EAAC;EAAW;EAAU;EAAkB;CAAgB;CAC7D,UAAU;CACV,MAAM;CACN,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ;IAAC;IAAc;IAAY;GAAgB;GACnD,SAAS;IAAE,YAAY;IAAI,kBAAkB;GAAiB;GAC9D,UAAU,CAAC;IAAE,MAAM;IAAY,OAAO;IAAY,QAAQ,EAAE,OAAO,iBAAiB;GAAE,CAAC;GACvF,aACE;EAGJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ,CAAC,UAAU;GAEnB,SAAS,CAAC;GACV,UAAU,CAAC;IAAE,MAAM;IAAY,OAAO;GAAW,CAAC;GAClD,aACE;EAEJ;EACA;GAAE,MAAM;GAAS,OAAO;GAAU,MAAM;GAAW,aAAa;EAAyC;EACzG;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aACE;EAEJ;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,QAAQ;IAAC;IAAQ;IAAO;GAA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H,EAAK,kBAAkB,eAAe,CAAxE,GAAKqE,QAAA1C,EAAOI,EAAI,IAAX,GAAA,MAAA;QAAW,EAAAkF,GAAAC,GAAAC,CAAA;WAAjBlG;MADD;;IA3BF;GAVA;;CA0CL;CAGQ,WAAW,GAAsB;EACvC,OAAO,GAAGmG,EAAI,MAAmC,KAAK,WAAW;CACnE;AACF;AAlJO,IAAA7E,EAAAgD,CAAA,GAiBLlD,EAAAmD,GAAA,GAAI,cADJJ,GAhBWK,CAAA,GAuBXpD,EAAAmD,GAAA,GAAI,cADJL,GAtBWM,CAAA,GAyCXpD,EAAAmD,GAAA,GAAI,cADJN,GAxCWO,CAAA,GACFpD,EAAAmD,GAAA,IAAO,cAAhBF,GADWG,CAAA,GAEIpD,EAAAmD,GAAA,IAAO,gBAAtBH,GAFWI,CAAA,GAANnD,EAAAkD,GAAMC,CAAA,GAAoDzD,EAAAyD,GAAA,QAAA,GACtDrD,EADEqD,GACK,cAAa/C,EAApB8C,GAAA,GADEC,GACkBb,CAAA,CAAA,GAApBlC,EAAA8C,GAAA,IADEC,CAAA,GAEIrD,EAFJqD,GAEW,gBAAe/C,EAAtB8C,GAAA,IAFJC,GAE0B;CACnC,aAAa;EAAE,MAAMxD;EAAS,OAAOC;CAAS;CAC9C,WAAW,CAAC,WAAW;CAEvB,MAAM,EAAE,MAAM,WAAW;CAEzB,UAAU;AACZ,CAAA,CAAA,GAPeQ,EAAA8C,GAAA,IAFJC,CAAA;AAAN,IAAM4B,IAAN5B,GAwJDqB,KAAa,SAGblB,KAAQ,SAGRI,KAAY;AC7LlBrB,EAAQ,OAAO,GACf0C,EAAO,OAAO"}
1
+ {"version":3,"file":"ui-step.js","names":["UIT.StackWithValues","this","part={this.partForName(\"steps\")}","<ol class={this.rootClass} part={this.partForName(\"steps\")} role=\"list\">\n <slot />\n </ol>","_tmpl$","_elementSetup_dec","_vocabulary_dec","_a","_init","E.UIComponent","E.proto","E.protoMerged","E.cssState","_$getOwner","_$readShallow","_$setAttribute","__name","stepCSS","<Dynamic\n component={this.rootTag}\n class={this.rootClass}\n part={this.partForName(\"step\")}\n href={this.linkTo}\n target={this.linkTarget}\n type={this.rootTag === \"button\" ? \"button\" : void 0}\n disabled={this.rootTag === \"button\" && this.disabled ? true : void 0}\n aria-disabled={this.rootTag !== \"button\" && this.disabled ? \"true\" : void 0}\n aria-current={this.isSelected ? \"step\" : void 0}\n >\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n {\n /* a server render (`spell/ui/static`) swaps the slot for its content, `hidden` and all: leave it out */\n }\n <Show when={!(isServer && this.completed)}>\n <slot name={this.slotForName(\"icon\")} hidden={this.completed || void 0}>\n {this.iconGlyph.svg}\n </slot>\n </Show>\n {this.checkGlyph.svg}\n </span>\n </Show>\n <Show when={this.hasShorthand}>\n <div class={this.staticPart(UIT.CONTENT)} part={this.partForName(\"content\")}>\n <Show when={this.heading}>\n <div class={this.staticPart(TITLE_PART)} part={this.partForName(\"title\")}>\n {this.heading}\n </div>\n </Show>\n <Show when={this.description}>\n <div class={this.staticPart(UIT.DESCRIPTION)} part={this.partForName(\"description\")}>\n {this.description}\n </div>\n </Show>\n </div>\n </Show>\n <slot />\n <Show when={this.completed}>\n <span class={UIT.VISUALLY_HIDDEN}>{this.translationForKey(\"stepCompleted\")}</span>\n </Show>\n </Dynamic>","this","<Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n {\n /* a server render (`spell/ui/static`) swaps the slot for its content, `hidden` and all: leave it out */\n }\n <Show when={!(isServer && this.completed)}>\n <slot name={this.slotForName(\"icon\")} hidden={this.completed || void 0}>\n {this.iconGlyph.svg}\n </slot>\n </Show>\n {this.checkGlyph.svg}\n </span>\n </Show>","<Show when={!(isServer && this.completed)}>\n <slot name={this.slotForName(\"icon\")} hidden={this.completed || void 0}>\n {this.iconGlyph.svg}\n </slot>\n </Show>","hidden={this.completed || void 0}","<slot name={this.slotForName(\"icon\")} hidden={this.completed || void 0}>\n {this.iconGlyph.svg}\n </slot>","<span class={UIT.ICON} part={this.partForName(\"icon\")}>\n {\n /* a server render (`spell/ui/static`) swaps the slot for its content, `hidden` and all: leave it out */\n }\n <Show when={!(isServer && this.completed)}>\n <slot name={this.slotForName(\"icon\")} hidden={this.completed || void 0}>\n {this.iconGlyph.svg}\n </slot>\n </Show>\n {this.checkGlyph.svg}\n </span>","part={this.partForName(\"icon\")}","<Show when={this.hasShorthand}>\n <div class={this.staticPart(UIT.CONTENT)} part={this.partForName(\"content\")}>\n <Show when={this.heading}>\n <div class={this.staticPart(TITLE_PART)} part={this.partForName(\"title\")}>\n {this.heading}\n </div>\n </Show>\n <Show when={this.description}>\n <div class={this.staticPart(UIT.DESCRIPTION)} part={this.partForName(\"description\")}>\n {this.description}\n </div>\n </Show>\n </div>\n </Show>","<Show when={this.heading}>\n <div class={this.staticPart(TITLE_PART)} part={this.partForName(\"title\")}>\n {this.heading}\n </div>\n </Show>","part={this.partForName(\"title\")}","<div class={this.staticPart(TITLE_PART)} part={this.partForName(\"title\")}>\n {this.heading}\n </div>","<div class={this.staticPart(UIT.CONTENT)} part={this.partForName(\"content\")}>\n <Show when={this.heading}>\n <div class={this.staticPart(TITLE_PART)} part={this.partForName(\"title\")}>\n {this.heading}\n </div>\n </Show>\n <Show when={this.description}>\n <div class={this.staticPart(UIT.DESCRIPTION)} part={this.partForName(\"description\")}>\n {this.description}\n </div>\n </Show>\n </div>","<Show when={this.description}>\n <div class={this.staticPart(UIT.DESCRIPTION)} part={this.partForName(\"description\")}>\n {this.description}\n </div>\n </Show>","part={this.partForName(\"description\")}","<div class={this.staticPart(UIT.DESCRIPTION)} part={this.partForName(\"description\")}>\n {this.description}\n </div>","part={this.partForName(\"content\")}","<Show when={this.completed}>\n <span class={UIT.VISUALLY_HIDDEN}>{this.translationForKey(\"stepCompleted\")}</span>\n </Show>","<span class={UIT.VISUALLY_HIDDEN}>{this.translationForKey(\"stepCompleted\")}</span>","E.UIComponent","E.proto","E.protoMerged","E.cssState","E.SlotContent","E.IconGlyph","_$createComponent","_$getOwner","_$setAttribute","_$readShallow","UIT.ICON","UIT.DESCRIPTION","UIT.CONTENT","UIT.VISUALLY_HIDDEN","__name","stepCSS","partsCSS","ICON","__name$1","__publicField","__decorateElement","VISUALLY_HIDDEN","__decoratorMetadata","__runInitializers","StackClasses","CONTENT","DESCRIPTION","UIParts_default","StackWithValues","__decoratorStart","getOwner$1","stepsVocabulary","UIStep_default","_tmpl$$1","_isCircular_dec","_isBlockLevel_dec","_isStepGroup_dec","_elementSetup_dec$1","_vocabulary_dec$1","_a$1","_init$1","_UISteps","UIComponent","proto","protoMerged","cssState","CIRCULAR","VERTICAL","_self$","_el$","_el$2","effect","readShallow","className","_p$","t","setAttribute","UISteps","stepVocabulary","_tmpl$","_tmpl$2","_tmpl$3","_tmpl$4","_tmpl$5","_hasContent_dec","_isDisabled_dec","_isSelected_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_UIStep","SlotContent","IconGlyph","CHECK","Converters","\"active\"","color","LINK_LOOK","createComponent","Dynamic","\"class\"","Show","_el$3","_el$4","insert","isServer","e","_el$5","_el$7","_el$9","_el$6","TITLE_PART","_el$8","_el$10","_el$11","_v$","_$p","noun","UIStep"],"sources":["../src/components/ui-step/UISteps.en.ts","../src/components/ui-step/UIStep.css?inline","../src/components/ui-step/UISteps.tsx","../src/components/ui-step/UIStep.en.ts","../src/components/ui-step/UIStep.tsx","../src/components/ui-step/index.ts"],"sourcesContent":["/**\n * The English vocabulary of `<ui-steps>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-steps ordered direction=\"vertical-right\" widths=\"3\">` => `ui ordered right vertical three steps`;\n * `<ui-step selected completed>` => `completed active step` (a step has no `ui`, as Fomantic's `.ui.steps > .step`).\n * `UIStep.css` keys on those words.\n * - Chosen state: `selected` is canonical (`AGENTS.md`), its class word Fomantic's `active`;\n * an `active` ATTRIBUTE is accepted as an alias (the element reads it raw, through `attributes`).\n * The selected step is the CURRENT one: `aria-current=\"step\"`.\n * - Content is the generic parts, owned by the step (`ownsParts`): `<ui-content>`, `<ui-title>`,\n * `<ui-description>`; or the shorthands `header` (the title -- NOT `title`, the global tooltip attribute and an\n * `HTMLElement` property, as the popup's `header`) and `description`.\n */\n\nimport type { E } from \"spell/ui/core\"\nimport * as UIT from \"spell/ui/components/components.types\"\n\n/****************\n * ### `stepsVocabulary`\n * The names of `<ui-steps>`, a step group: `<ol class=\"ui ... steps\" part=\"steps\" role=\"list\">` around the slot.\n ****************/\nexport const stepsVocabulary = {\n tag: \"ui-steps\",\n icon: \"shoe prints\",\n topics: [\"navigation\", \"progress\", \"status\", \"elements\"],\n aka: [\"stepper\", \"wizard\", \"progress steps\", \"checkout steps\"],\n skeleton: \"5 tall\",\n noun: \"steps\",\n description: \"A set of steps shows the progress of an activity in a series of steps.\",\n attributes: [\n {\n name: \"size\",\n group: \"appearance\",\n kind: \"size\",\n description: \"Size of every step, `mini` ... `massive`; `medium` is the default.\"\n },\n {\n name: \"color\",\n group: \"appearance\",\n kind: \"color\",\n description: \"Circular steps: hue of the rings of the current and completed steps (default the positive colour).\"\n },\n {\n name: \"ordered\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description: \"Numbers each step; a completed step shows a check instead.\"\n },\n {\n name: \"direction\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"horizontal\", \"vertical\", \"vertical-right\"],\n classes: { horizontal: \"\", \"vertical-right\": \"right vertical\" },\n replaces: [{ from: \"vertical\", value: \"vertical\", values: { right: \"vertical-right\" } }],\n description:\n \"Which way the steps run: `horizontal` (the default), `vertical` (stacked top to bottom), or \" +\n \"`vertical-right`, for a group on the right of its content (arrow at left). Its old name was `vertical` \" +\n '(`vertical=\"right\"`).'\n },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n values: [\"circular\"],\n // its words are Fomantic's classes as they are\n classes: {},\n replaces: [{ from: \"circular\", value: \"circular\" }],\n description:\n \"The look: `circular` -- Fomantic's circular steps: a ring per step on a connecting line, the content \" +\n \"beside it. Its old name was the bare `circular` switch.\"\n },\n { name: \"fluid\", group: \"layout\", kind: \"keyOnly\", description: \"Takes the full width of its container.\" },\n {\n name: \"equal\",\n group: \"layout\",\n kind: \"keyOnly\",\n description:\n \"Every step the same width, from the steps themselves (no count): each as wide as the widest; with \" +\n \"`fluid`, an equal share of the row each. Not for `vertical` or `circular` steps (already alike).\"\n },\n {\n name: \"attach\",\n group: \"layout\",\n kind: \"valueOnly\",\n values: [\"both\", \"top\", \"bottom\"],\n classes: { both: \"attached\", top: \"top attached\", bottom: \"bottom attached\" },\n replaces: [{ from: \"attached\", value: \"both\" }],\n description:\n \"Joined to a segment below (`both`, `top`) or above (`bottom`), overlapping its border. \" +\n \"Its old name was `attached`.\"\n },\n {\n name: \"unstackable\",\n group: \"layout\",\n kind: \"keyOnly\",\n description:\n \"Never stacks; by default steps stack below 768px of the group's width (or the screen's: `stack-with`).\"\n },\n {\n name: \"stackable\",\n group: \"layout\",\n kind: \"valueAndKey\",\n values: [\"tablet\"],\n description:\n \"`stackable=\\\"tablet\\\"`: stacks below 992px (of the group's width, or the screen's), not just 768px.\"\n },\n {\n name: \"stack-with\",\n group: \"layout\",\n kind: \"enum\",\n values: UIT.StackWithValues,\n description:\n 'What stacking (and `stackable=\"tablet\"`) measures: `container` (the default) -- the group\\'s own ' +\n \"width; `page` -- the screen's, as in Fomantic. Unset: the page-wide `--ui-stack-with` token \" +\n \"decides (`<ui-root stack-with>`).\"\n },\n {\n name: \"widths\",\n group: \"appearance\",\n kind: \"width\",\n widthClass: \"\",\n values: [\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\"],\n description:\n 'Older, count-based alias of `equal fluid`: divides the group evenly between N steps (`widths=\"3\"` => ' +\n \"`three steps`).\"\n },\n { name: \"inverted\", group: \"appearance\", kind: \"keyOnly\", description: \"For dark backgrounds.\" }\n ],\n events: [],\n slots: [{ name: \"\", description: \"`<ui-step>`s.\" }],\n parts: [{ name: \"steps\", description: \"The group box (an `<ol>`).\" }],\n states: [\n { name: \"steps\", description: \"ALWAYS set: the host is a block and the size container `stackable` answers.\" },\n {\n name: \"block\",\n description:\n \"Set while the group is block-level (`fluid`, or `circular` and not `vertical`): the HOST carries its outer margin, so it collapses with the content above.\"\n },\n {\n name: \"circular\",\n description: 'Set while `appearance=\"circular\"`: with `block`, the host keeps both margins, even first or last.'\n }\n ],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","/*\n * The style sheet of `<ui-steps>` and `<ui-step>`: a port of Fomantic's `step.less` + `step.variables`\n * (+ the check glyph of `step.overrides`).\n * - ONE sheet, adopted by the group AND by every step (a step also adopts `UIParts.css`, for its shorthand content).\n * - Shadow markup contract (class grammar on semantic elements):\n * - `<ui-steps>`: `<ol class=\"ui [size] [color] [keyOnly ...] [attached] [stackable] [count] steps\" part=\"steps\"\n * role=\"list\">` around `<slot>` (an ORDERED list: steps are a sequence)\n * - the group's DOM element is a block, and the size container `ui-steps`\n * - `<ui-step>`: `<div | a href | button class=\"[color] [keyOnly ...] step\" part=\"step\" [aria-current=step]>`,\n * holding, in order:\n * - `<span class=\"icon\" part=\"icon\">` (glyph or `slot=icon`)\n * - the shorthand `<div class=\"content in-step\">` (`.title` / `.description`, the static part classes)\n * - the `<slot>`\n * - when completed, a visually hidden \"Completed\"\n * - a step's DOM element is `role=listitem` (internals) and `display: contents`,\n * so the step root is the group's flex item, exactly where Fomantic's `.ui.steps > .step` sat\n * - Every step rule has two selectors sharing one body:\n * the element (`:host > .step`) and static class grammar (`.ui.steps > .step`).\n * The DOM element's position (`:host(:first-child)`) stands in for `.step:first-child`.\n *\n * ## Group -> step tokens\n * A step can't see its group's classes, so the group ROOT resolves every variation into inherited tokens,\n * and the step rules only read them (switches through `@container style()`):\n *\n * | Token | What | Changed by |\n * | ---------------------------------------- | ------------------------------------------ | ---------------------------- |\n * | `--_ui-steps-layout` | `horizontal` / `vertical` / `stacked` | `vertical`; `stacked` below |\n * | | | 768px (992px with `stackable=\"tablet\"`) unless `unstackable` |\n * | `--_ui-steps-column` | `0` / `1`: one step per row | `vertical`, stacked |\n * | `--_ui-steps-line` | `horizontal` / `vertical`: a circular | `vertical` |\n * | | step's connecting line (circular steps | |\n * | | never stack) | |\n * | `--_ui-steps-circular` | `0` / `1` | `circular` |\n * | `--_ui-steps-ordered` | `0` / `1` | `ordered` |\n * | `--_ui-steps-arrow` | `right` / `left` (the side a vertical | `vertical=\"right\"` |\n * | | step's arrow points from) | |\n * | `--_ui-steps-first-radius` / `-last-` / `-only-` | corners of the first / last / only step, | layout, `attached` |\n * | | from `--ui-steps-radius` | |\n * | `--_ui-steps-step-width` / `-step-wrap` | each step's width, its content wrapping | `widths` (`three steps`) |\n * | `--_ui-steps-step-flex` | each step's `flex` | `equal fluid` |\n * | `--_ui-steps-accent` | circular: ring / line colour of current | `color` |\n * | | and completed steps | |\n * | `--_ui-step-*` / `--_ui-steps-*` aliases | the look (`step.variables`), declared on | `inverted` re-resolves the |\n * | | the group root | `light-dark()` ones |\n *\n * - The first eight rows are private SWITCHES: the group's attributes decide them, so the page never sets them.\n * - Public tokens (`--ui-step-*`, `--ui-steps-radius`, `--ui-steps-border`: the theming surface)\n * are NEVER declared here:\n * - the group root reads each through a private alias, `--_ui-step-padding: var(--ui-step-padding, ...)`\n * - every rule reads the alias, and variations (`inverted`, a step's `color`) write it\n * - so a value set on `:root`, an ancestor, the DOM element or `::part(steps)` reaches every step\n * (`notes/theming.md` \"Component tokens\"); set it on the group or above, not on one step\n *\n * Every STEP root declares the parts' tokens (`UIParts.css`):\n * - the switches `--_ui-step-state` (`normal` / `active` / `disabled`) and `--_ui-step-layout` (`row` / `stacked`)\n * - the aliases of the content's look tokens circular steps vary:\n * `--ui-step-content-margin` / `-padding`, `--ui-step-description-distance` and `--ui-step-active-title-color`\n * (set those on a step, `::part(step)`, or above)\n *\n * - Stacking answers to the GROUP's width:\n * the group root runs the size query in its own tree, and hands the answer down as `--_ui-steps-layout: stacked`\n * (container names are tree-scoped, so a step couldn't query its group's container itself).\n * Static markup: the group's parent is the container.\n * - Sizes: the group root's font size is `--ui-font-size` times the generic `--ui-scale` remap (`sizes.css`);\n * its `<slot>` resets `--ui-scale`, so a step's components aren't scaled twice.\n * - Colours: only circular steps have a hue (`color` on the group, or on one step),\n * through the generic remap (`--ui-color`).\n * The group's DOM element resets the colour tokens, so an outer coloured component can't tint them.\n * - The check (a completed step's icon or number, a completed circular ring)\n * is Font Awesome's `check` as a CSS mask (`--ui-step-check`), where Fomantic embedded a one-glyph icon font.\n * - NOTE: left out, on purpose:\n * - circular steps' `center aligned` / `bottom aligned` content (the parts have no alignment attributes);\n * the connecting line of a vertical circular step is the step's background, not its content's `::before`\n * - Fomantic's `!important`s: sublayers, source order and the tokens give the same wins\n * - RTL arrows (Fomantic's RTL build flips them; the arrow here always points to the inline END)\n */\n\n@layer ui.components.step.types, ui.components.step.content, ui.components.step.variations, ui.components.step.states;\n\n/* Breakpoints (`@custom-media`), inlined at build time: `stack-with=\"page\"`. */\n@import \"../../styles/media.css\";\n\n/*******************************\n Steps\n*******************************/\n\n@layer ui.components.step.types {\n /* DOM elements: a step's root is the flex item; the group's DOM element is the size container for stacking. */\n :host {\n display: contents;\n }\n :host(:state(steps)) {\n display: block;\n container: ui-steps / inline-size;\n /* Only the group's own `color` tints circular steps. */\n --ui-color: initial;\n --ui-color-text: initial;\n --ui-color-header: initial;\n --ui-color-border: initial;\n --ui-color-background: initial;\n --ui-color-inverted: initial;\n --ui-color-hover: initial;\n --ui-color-focus: initial;\n --ui-color-down: initial;\n --ui-color-active: initial;\n --ui-color-on: initial;\n --ui-color-inverted-on: initial;\n }\n /* Static markup: the group's parent is the container. */\n :has(> .ui.steps) {\n container: ui-steps / inline-size;\n }\n\n /* Tokens: the switches and the private aliases, which the group root resolves every variation into;\n steps read them (see the header). */\n .ui.steps {\n --ui-inverted: 0;\n --_ui-steps-layout: horizontal;\n --_ui-steps-circular: 0;\n --_ui-steps-ordered: 0;\n --_ui-steps-arrow: right;\n --_ui-steps-line: horizontal;\n --_ui-steps-column: 0;\n --_ui-steps-radius: var(--ui-steps-radius, var(--ui-radius));\n --_ui-steps-first-radius: var(--_ui-steps-radius) 0 0 var(--_ui-steps-radius);\n --_ui-steps-last-radius: 0 var(--_ui-steps-radius) var(--_ui-steps-radius) 0;\n --_ui-steps-only-radius: var(--_ui-steps-radius);\n --_ui-steps-step-width: auto;\n --_ui-steps-step-wrap: wrap;\n --_ui-steps-step-flex: 1 0 auto;\n --_ui-steps-accent: var(--ui-color, var(--ui-positive));\n --_ui-steps-border: var(--ui-steps-border, var(--ui-border-width) solid var(--ui-border-color));\n /* The check on a completed circular step's accent. */\n --_ui-steps-accent-on: var(--ui-steps-accent-on, white);\n /* ## The look: a private alias per `step.variables` entry that still matters. */\n --_ui-step-background: var(--ui-step-background, var(--ui-surface));\n /* A step of an `inverted` group: the surface darkened. */\n --_ui-step-inverted-background: var(\n --ui-step-inverted-background,\n color-mix(in oklab, var(--ui-surface) 70%, oklch(0 0 0))\n );\n --_ui-step-color: var(--ui-step-color, var(--ui-text-color));\n --_ui-step-divider: var(--ui-step-divider, var(--ui-border-width) solid var(--ui-border-color));\n --_ui-step-border-color: var(--ui-step-border-color, var(--ui-border-color));\n --_ui-step-padding: var(--ui-step-padding, 1.14285em 2em);\n --_ui-step-arrow-size: var(--ui-step-arrow-size, 1.14285em);\n --_ui-step-line-height: var(--ui-step-line-height, 1.14285em);\n --_ui-step-icon-size: var(--ui-step-icon-size, 2.5em);\n --_ui-step-icon-distance: var(--ui-step-icon-distance, var(--ui-font-size));\n --_ui-step-hover-background: var(\n --ui-step-hover-background,\n color-mix(in oklab, var(--ui-ink) 2%, var(--ui-surface))\n );\n --_ui-step-hover-color: var(--ui-step-hover-color, var(--ui-text-hovered));\n --_ui-step-down-background: var(\n --ui-step-down-background,\n color-mix(in oklab, var(--ui-ink) 5%, var(--ui-surface))\n );\n --_ui-step-down-color: var(--ui-step-down-color, var(--ui-text-pressed));\n --_ui-step-active-background: var(\n --ui-step-active-background,\n color-mix(in oklab, var(--ui-ink) 5%, var(--ui-surface))\n );\n --_ui-step-active-icon-color: var(--ui-step-active-icon-color, var(--ui-text-dark));\n --_ui-step-active-hover-background: var(\n --ui-step-active-hover-background,\n color-mix(in oklab, var(--ui-ink) 13%, var(--ui-surface))\n );\n --_ui-step-active-hover-color: var(--ui-step-active-hover-color, var(--ui-text-color));\n --_ui-step-completed-color: var(--ui-step-completed-color, var(--ui-positive));\n --_ui-step-disabled-background: var(--ui-step-disabled-background, var(--_ui-step-background));\n --_ui-step-disabled-color: var(--ui-step-disabled-color, var(--ui-text-disabled));\n --_ui-step-transition: var(\n --ui-step-transition,\n background-color var(--ui-duration-slow) var(--ui-ease),\n opacity var(--ui-duration-slow) var(--ui-ease),\n color var(--ui-duration-slow) var(--ui-ease),\n box-shadow var(--ui-duration-slow) var(--ui-ease)\n );\n --_ui-step-check: var(\n --ui-step-check,\n url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z'/%3E%3C/svg%3E\")\n );\n /* Circular steps. */\n --_ui-step-ring-color: var(--ui-step-ring-color, var(--ui-border-color-strong));\n --_ui-step-ring-width: var(--ui-step-ring-width, 2px);\n --_ui-step-ring-size: var(--ui-step-ring-size, 2.2em);\n --_ui-step-dot-size: var(--ui-step-dot-size, 0.95em);\n --_ui-step-circular-disabled-opacity: var(--ui-step-circular-disabled-opacity, 0.5);\n --_ui-step-circular-title-background: var(--ui-step-circular-title-background, var(--ui-surface));\n }\n\n /* Group: a bordered row of steps.\n - `container: none`: the root is never the size container (its DOM element is, or in static markup its parent).\n A static server render (`spell/ui/static`) moves the DOM element's `container` onto the root,\n where inline-size containment would shrink the inline-flex group to nothing. */\n .ui.steps {\n container: none;\n box-sizing: border-box;\n display: inline-flex;\n flex-flow: row wrap;\n align-items: stretch;\n margin: 1em 0;\n padding: 0;\n font-family: var(--ui-font-family);\n font-size: calc(var(--ui-font-size) * var(--ui-scale, 1));\n line-height: var(--_ui-step-line-height);\n list-style: none;\n counter-reset: ui-step;\n border: var(--_ui-steps-border);\n border-radius: var(--_ui-steps-radius);\n box-shadow: none;\n }\n .ui.unstackable.steps {\n flex-wrap: nowrap;\n }\n .ui.steps > slot {\n --ui-scale: initial;\n }\n :host(:first-child) > .ui.steps,\n .ui.steps:first-child {\n margin-top: 0;\n }\n :host(:last-child) > .ui.steps,\n .ui.steps:last-child {\n margin-bottom: 0;\n }\n /*\n * Shadow DOM: the root is always an only child, so `.ui.steps:first-child` above always matches there;\n * the DOM element's position decides instead.\n * - An inline-flex root's margins never collapse (class grammar's neither), so they stay on the root.\n * - A block-level root's (`:state(block)`: `fluid`, circular) sit on the DOM ELEMENT:\n * a size container is its own formatting context,\n * so a root margin inside it would never collapse with the heading above.\n * The root's are zeroed in \"Circular\" (variations), after the circular margins;\n * a static render's root keeps its own.\n */\n :host(:not(:first-child)) > .ui.steps {\n margin-top: 1em;\n }\n :host(:not(:last-child)) > .ui.steps {\n margin-bottom: 1em;\n }\n :host(:state(block):not(:first-child)),\n :host(:state(block):state(circular)) {\n margin-block-start: 1em;\n }\n :host(:state(block):not(:last-child)),\n :host(:state(block):state(circular)) {\n margin-block-end: 1em;\n }\n}\n\n/*******************************\n Step\n*******************************/\n\n@layer ui.components.step.types {\n /* Every step root declares the parts' tokens: the switches, and the aliases of the look tokens circular steps vary\n (defaults as `UIParts.css` reads them), so a nested step never inherits an outer one's. */\n :host > .step,\n .ui.steps > .step {\n --_ui-step-state: normal;\n --_ui-step-layout: row;\n --_ui-step-content-margin: var(--ui-step-content-margin, 0);\n --_ui-step-content-padding: var(--ui-step-content-padding, 0);\n --_ui-step-description-distance: var(--ui-step-description-distance, 0.25em);\n --_ui-step-active-title-color: var(--ui-step-active-title-color, var(--ui-link));\n position: relative;\n box-sizing: border-box;\n width: var(--_ui-steps-step-width);\n margin: 0;\n padding: 0;\n color: var(--_ui-step-color);\n font: inherit;\n text-align: inherit;\n text-decoration: none;\n background: none;\n border: none;\n border-radius: 0;\n box-shadow: none;\n }\n /* A `<button>` step: a plain box. */\n :host > button.step {\n appearance: none;\n }\n :host > .step:focus-visible,\n .ui.steps > .step:focus-visible {\n outline: var(--ui-focus-width) solid var(--ui-focus-color, var(--ui-link));\n outline-offset: calc(-1 * var(--ui-focus-width));\n z-index: 3;\n }\n\n /* The box of a regular (not circular) step. */\n @container not style(--_ui-steps-circular: 1) {\n :host > .step,\n .ui.steps > .step {\n display: flex;\n flex: var(--_ui-steps-step-flex);\n flex-flow: row var(--_ui-steps-step-wrap);\n align-items: center;\n justify-content: center;\n padding: var(--_ui-step-padding);\n vertical-align: middle;\n background: var(--_ui-step-background);\n border-right: var(--_ui-step-divider);\n transition: var(--_ui-step-transition);\n }\n\n /* Arrow: a rotated square over the divider, pointing at the next step. */\n :host > .step::after,\n .ui.steps > .step::after {\n content: \"\";\n position: absolute;\n z-index: 2;\n top: 50%;\n right: 0;\n display: block;\n width: var(--_ui-step-arrow-size);\n height: var(--_ui-step-arrow-size);\n background-color: var(--_ui-step-background);\n border-style: solid;\n border-color: var(--_ui-step-border-color);\n border-width: 0 var(--ui-border-width) var(--ui-border-width) 0;\n transform: translateY(-50%) translateX(50%) rotate(-45deg);\n transition: var(--_ui-step-transition);\n }\n\n /* First, last and only step. */\n :host(:first-child) > .step,\n .ui.steps > .step:first-child {\n border-radius: var(--_ui-steps-first-radius);\n }\n :host(:last-child) > .step,\n .ui.steps > .step:last-child {\n margin-right: 0;\n border-right: none;\n border-radius: var(--_ui-steps-last-radius);\n }\n :host(:last-child) > .step::after,\n .ui.steps > .step:last-child::after {\n display: none;\n }\n :host(:only-child) > .step,\n .ui.steps > .step:only-child {\n border-radius: var(--_ui-steps-only-radius);\n }\n }\n}\n\n@layer ui.components.step.content {\n /* Icon: a large glyph beside the content. */\n :host > .step > .icon,\n .ui.steps > .step > .icon {\n display: block;\n flex: 0 1 auto;\n align-self: center;\n width: auto;\n margin: 0 var(--_ui-step-icon-distance) 0 0;\n font-size: var(--_ui-step-icon-size);\n line-height: 1;\n }\n /* The glyph: the check, or the `icon` glyph as the icon slot's fallback content (hence a descendant). */\n :host > .step > .icon svg,\n .ui.steps > .step > .icon svg {\n display: block;\n width: auto;\n height: 1em;\n }\n :host > .step > .icon > slot::slotted(*) {\n --_ui-icon-owner-margin: 0;\n }\n\n /* Link steps. */\n :host > :is(a, button).step,\n .ui.steps > :is(a, .link).step {\n cursor: var(--ui-control-cursor);\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.step.variations {\n /* Sizes: the generic `--ui-scale` remap sets the group's font size; static markup only for `medium`. */\n .ui.medium.steps {\n --ui-scale: 1;\n }\n\n /* --------------\n Ordered\n --------------- */\n\n .ui.ordered.steps {\n --_ui-steps-ordered: 1;\n }\n @container style(--_ui-steps-ordered: 1) {\n :host > .step::before,\n .ui.steps > .step::before {\n content: counter(ui-step);\n counter-increment: ui-step;\n /* every number the same width: each step's text starts at the same place */\n font-variant-numeric: tabular-nums;\n align-self: center;\n font-family: inherit;\n font-weight: var(--ui-font-weight-bold);\n text-align: center;\n }\n :host > .step > :not(slot),\n .ui.steps > .step > * {\n display: block;\n align-self: center;\n }\n }\n @container not style(--_ui-steps-circular: 1) {\n @container style(--_ui-steps-ordered: 1) {\n :host > .step::before,\n .ui.steps > .step::before {\n display: block;\n position: static;\n margin-right: var(--_ui-step-icon-distance);\n font-size: var(--_ui-step-icon-size);\n line-height: 1;\n }\n /* A completed step shows the check instead of its number (a circular one fills its ring instead). */\n :host > .step.completed::before,\n .ui.steps > .step.completed::before {\n content: \"\";\n width: 1em;\n height: 1em;\n background-color: currentColor;\n mask: var(--_ui-step-check) center / contain no-repeat;\n }\n }\n }\n\n /* --------------\n Equal\n --------------- */\n\n /* `equal` (no count): every step as wide as the widest -- a grid of equal columns, so the group hugs them;\n with `fluid`, an equal share of the row each.\n Stacking (below) still wins: it comes later at the same specificity. */\n .ui.equal.steps:not(.vertical, .circular, .fluid) {\n display: inline-grid;\n grid-auto-columns: 1fr;\n grid-auto-flow: column;\n }\n .ui.equal.fluid.steps:not(.vertical, .circular) {\n --_ui-steps-step-flex: 1 1 0%;\n }\n\n /* --------------\n Vertical\n --------------- */\n\n .ui.vertical.steps {\n --_ui-steps-layout: vertical;\n --_ui-steps-line: vertical;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n .ui.right.vertical.steps {\n --_ui-steps-arrow: left;\n }\n\n /* --------------\n Stacked\n --------------- */\n\n /* Below 768px of the group (992px for `tablet stackable`), unless `unstackable`: one step per row.\n Attached corners (below) still win, as in Fomantic. */\n @container ui-steps (width < 768px) {\n @container not style(--ui-stack-with: page) {\n .ui.steps:not(.unstackable, .circular):not(.stack-with-page) {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n @container style(--ui-stack-with: page) {\n .ui.steps:not(.unstackable, .circular).stack-with-container {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n }\n @media (--ui-mobile) {\n @container style(--ui-stack-with: page) {\n .ui.steps:not(.unstackable, .circular):not(.stack-with-container) {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n @container not style(--ui-stack-with: page) {\n .ui.steps:not(.unstackable, .circular).stack-with-page {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n }\n @container ui-steps (width < 992px) {\n @container not style(--ui-stack-with: page) {\n .ui[class*=\"tablet stackable\"].steps:not(.circular):not(.stack-with-page) {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n @container style(--ui-stack-with: page) {\n .ui[class*=\"tablet stackable\"].steps:not(.circular).stack-with-container {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n }\n @media (--ui-mobile), (--ui-tablet) {\n @container style(--ui-stack-with: page) {\n .ui[class*=\"tablet stackable\"].steps:not(.circular):not(.stack-with-container) {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n @container not style(--ui-stack-with: page) {\n .ui[class*=\"tablet stackable\"].steps:not(.circular).stack-with-page {\n --_ui-steps-layout: stacked;\n --_ui-steps-column: 1;\n --_ui-steps-first-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n display: inline-flex;\n flex-direction: column;\n overflow: visible;\n }\n }\n }\n\n /* Row layouts of regular steps (circular steps have their own, below). */\n @container not style(--_ui-steps-circular: 1) {\n /* Vertical and stacked steps: one per row, a rule under each but the last. */\n @container style(--_ui-steps-column: 1) {\n :host > .step,\n .ui.steps > .step {\n justify-content: flex-start;\n border-right: none;\n border-bottom: var(--_ui-step-divider);\n }\n :host(:last-child) > .step,\n .ui.steps > .step:last-child {\n border-bottom: none;\n }\n }\n\n /* Vertical: the arrow only on the current step, at its end (or start, `right vertical`). */\n @container style(--_ui-steps-layout: vertical) {\n :host > .step::after,\n .ui.steps > .step::after {\n display: none;\n }\n :host > .step.active::after,\n .ui.steps > .step.active::after,\n :host(:last-child) > .step.active::after,\n .ui.steps > .step.active:last-child::after {\n display: block;\n }\n }\n @container style(--_ui-steps-layout: vertical) and style(--_ui-steps-arrow: left) {\n :host > .step::after,\n .ui.steps > .step::after {\n right: 100%;\n left: 0;\n border-width: var(--ui-border-width) 0 0 var(--ui-border-width);\n transform: translateY(-50%) translateX(-50%) rotate(-45deg);\n }\n }\n\n /* Stacked: full width, content centred, the arrow under the step pointing down. */\n @container style(--_ui-steps-layout: stacked) {\n :host > .step,\n .ui.steps > .step {\n --_ui-step-layout: stacked;\n width: 100%;\n flex-direction: column;\n border-bottom: var(--_ui-steps-border);\n }\n :host(:last-child) > .step,\n .ui.steps > .step:last-child {\n border-bottom: none;\n }\n :host > .step::after,\n .ui.steps > .step::after {\n top: unset;\n right: 50%;\n bottom: calc(-1 * var(--_ui-step-arrow-size));\n transform: translateY(-50%) translateX(50%) rotate(45deg);\n }\n :host(:last-child) > .step.active::after,\n .ui.steps > .step.active:last-child::after {\n display: none;\n }\n :host > .step > .content,\n .ui.steps > .step > .content {\n text-align: center;\n }\n :host > .step > .icon,\n .ui.steps > .step > .icon,\n :host > .step::before,\n .ui.steps > .step::before {\n margin: 0 0 var(--_ui-step-icon-distance) 0;\n }\n }\n }\n\n /* --------------\n Fluid\n --------------- */\n\n .ui.fluid.steps {\n display: flex;\n width: 100%;\n }\n\n /* --------------\n Attached\n --------------- */\n\n .ui.attached.steps:not(.circular),\n .ui.top.attached.steps:not(.circular) {\n --_ui-steps-first-radius: var(--_ui-steps-radius) 0 0 0;\n --_ui-steps-last-radius: 0 var(--_ui-steps-radius) 0 0;\n --_ui-steps-only-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n width: calc(100% + 2 * var(--ui-border-width));\n max-width: calc(100% + 2 * var(--ui-border-width));\n margin: 0 calc(-1 * var(--ui-border-width)) 0;\n border-radius: var(--_ui-steps-radius) var(--_ui-steps-radius) 0 0;\n }\n .ui.bottom.attached.steps:not(.circular) {\n --_ui-steps-first-radius: 0 0 0 var(--_ui-steps-radius);\n --_ui-steps-last-radius: 0 0 var(--_ui-steps-radius) 0;\n --_ui-steps-only-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n margin: 0 calc(-1 * var(--ui-border-width)) 0;\n border-radius: 0 0 var(--_ui-steps-radius) var(--_ui-steps-radius);\n }\n\n /* --------------\n Evenly divided\n --------------- */\n\n .ui:is(.one, .two, .three, .four, .five, .six, .seven, .eight).steps {\n --_ui-steps-step-wrap: nowrap;\n width: 100%;\n }\n .ui.one.steps {\n --_ui-steps-step-width: 100%;\n }\n .ui.two.steps {\n --_ui-steps-step-width: 50%;\n }\n .ui.three.steps {\n --_ui-steps-step-width: 33.333%;\n }\n .ui.four.steps {\n --_ui-steps-step-width: 25%;\n }\n .ui.five.steps {\n --_ui-steps-step-width: 20%;\n }\n .ui.six.steps {\n --_ui-steps-step-width: 16.666%;\n }\n .ui.seven.steps {\n --_ui-steps-step-width: 14.285%;\n }\n .ui.eight.steps {\n --_ui-steps-step-width: 12.5%;\n }\n\n /* --------------\n Inverted\n --------------- */\n\n .ui.inverted.steps {\n --ui-inverted: 1;\n --ui-scheme: dark;\n color-scheme: dark;\n --_ui-step-background: var(--_ui-step-inverted-background);\n --_ui-step-active-background: color-mix(in oklab, var(--ui-ink) 13%, var(--_ui-step-background));\n --_ui-step-hover-background: color-mix(in oklab, var(--ui-ink) 16%, var(--_ui-step-background));\n --_ui-step-active-hover-background: color-mix(in oklab, var(--ui-ink) 20%, var(--_ui-step-background));\n --_ui-step-down-background: var(--_ui-step-active-hover-background);\n --_ui-step-active-icon-color: var(--ui-text-selected);\n --_ui-step-disabled-background: color-mix(in oklab, var(--ui-ink) 6%, var(--_ui-step-background));\n --_ui-step-circular-title-background: var(--_ui-step-background);\n }\n\n /* --------------\n Circular\n --------------- */\n\n .ui.circular.steps {\n --_ui-steps-circular: 1;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n }\n .ui.circular.steps:not(.vertical) {\n display: flex;\n position: relative;\n margin: 1em 0;\n padding: 1em 0;\n background: transparent;\n }\n .ui.circular.vertical.steps {\n display: inline-flex;\n flex-flow: column wrap;\n align-items: flex-start;\n }\n /* Shadow DOM: a block-level root's outer margin is the DOM element's (see \"Group\"). */\n :host(:state(block)) > .ui.steps:not([data-ui]) {\n margin-block: 0;\n }\n\n @container style(--_ui-steps-circular: 1) {\n /* Every circular step: a ring (`::before`) around a dot (`::after`). */\n :host > .step,\n .ui.steps > .step {\n color: inherit;\n cursor: default;\n }\n :host > .step::before,\n .ui.steps > .step::before {\n content: \"\";\n position: absolute;\n box-sizing: border-box;\n width: var(--_ui-step-ring-size);\n height: var(--_ui-step-ring-size);\n line-height: calc(var(--_ui-step-ring-size) - 2 * var(--_ui-step-ring-width));\n text-align: center;\n border: var(--_ui-step-ring-width) solid var(--_ui-step-ring-color);\n border-radius: 50%;\n }\n :host > .step::after,\n .ui.steps > .step::after {\n content: \"\";\n position: absolute;\n display: block;\n width: var(--_ui-step-dot-size);\n height: var(--_ui-step-dot-size);\n background: var(--_ui-step-ring-color);\n border-radius: 50%;\n }\n :host > :is(a, button).step,\n .ui.steps > :is(a, .link).step {\n cursor: var(--ui-control-cursor);\n }\n /* The step's own `color` wins over the group's. */\n :host\n > .step:is(\n [class~=\"red\"],\n [class~=\"orange\"],\n [class~=\"yellow\"],\n [class~=\"olive\"],\n [class~=\"green\"],\n [class~=\"teal\"],\n [class~=\"blue\"],\n [class~=\"violet\"],\n [class~=\"purple\"],\n [class~=\"pink\"],\n [class~=\"brown\"],\n [class~=\"grey\"],\n [class~=\"black\"],\n [class~=\"primary\"],\n [class~=\"secondary\"]\n ),\n .ui.steps\n > .step:is(\n .red,\n .orange,\n .yellow,\n .olive,\n .green,\n .teal,\n .blue,\n .violet,\n .purple,\n .pink,\n .brown,\n .grey,\n .black,\n .primary,\n .secondary\n ) {\n --_ui-steps-accent: var(--ui-color);\n --_ui-step-ring-color: var(--ui-color);\n }\n\n /* Content (a part: `UIParts.css` reads these): beside the ring. */\n :host > .step,\n .ui.steps > .step {\n --_ui-step-content-padding: 0 0.5em;\n --_ui-step-description-distance: 0.5em;\n }\n }\n\n /* Horizontal circular steps: the step IS the connecting line, its ring at its start. */\n @container style(--_ui-steps-circular: 1) and style(--_ui-steps-line: horizontal) {\n :host > .step,\n .ui.steps > .step {\n --_ui-step-content-margin: -1.5em 0 0;\n display: flex;\n flex: 1;\n flex-wrap: wrap;\n align-items: center;\n height: var(--_ui-step-ring-width);\n margin-left: var(--_ui-step-ring-size);\n background: var(--_ui-step-ring-color);\n }\n :host(:last-child) > .step,\n .ui.steps > .step:last-child {\n flex: 0;\n }\n :host(:last-child:state(content)) > .step,\n .ui.steps > .step:last-child:has(> .content) {\n flex: 1;\n }\n :host > .step::before,\n .ui.steps > .step::before {\n left: calc(-1 * var(--_ui-step-ring-size));\n }\n :host > .step::after,\n .ui.steps > .step::after {\n left: calc(var(--_ui-step-dot-size) - var(--_ui-step-ring-size) - 0.3em);\n }\n }\n\n /* Vertical circular steps: the ring at the top start, a line down to the next one. */\n @container style(--_ui-steps-circular: 1) and style(--_ui-steps-line: vertical) {\n :host > .step,\n .ui.steps > .step {\n position: relative;\n display: block;\n width: 100%;\n min-height: var(--_ui-step-ring-size);\n }\n :host > .step::before,\n .ui.steps > .step::before {\n top: 0;\n left: 0;\n }\n :host > .step::after,\n .ui.steps > .step::after {\n top: calc((var(--_ui-step-ring-size) - var(--_ui-step-dot-size)) / 2);\n left: calc((var(--_ui-step-ring-size) - var(--_ui-step-dot-size)) / 2);\n }\n :host > .step,\n .ui.steps > .step {\n padding-left: 3.5em;\n }\n :host(:not(:last-child)) > .step,\n .ui.steps > .step:not(:last-child) {\n padding-bottom: 3em;\n background: linear-gradient(var(--_ui-step-ring-color), var(--_ui-step-ring-color)) no-repeat\n calc(var(--_ui-step-ring-size) / 2 - var(--_ui-step-ring-width) / 2) var(--_ui-step-ring-size) /\n var(--_ui-step-ring-width) calc(100% - var(--_ui-step-ring-size));\n }\n }\n\n /* Ordered circular steps: the number in the ring, no dot. */\n @container style(--_ui-steps-circular: 1) and style(--_ui-steps-ordered: 1) {\n :host > .step::before,\n .ui.steps > .step::before {\n content: counter(ui-step);\n width: var(--_ui-step-ring-size);\n height: var(--_ui-step-ring-size);\n mask: none;\n background: var(--_ui-step-background);\n }\n :host > .step::after,\n .ui.steps > .step::after {\n background: transparent;\n }\n }\n}\n\n/*******************************\n States\n*******************************/\n\n@layer ui.components.step.states {\n /* Link hover and down (not circular). */\n @container not style(--_ui-steps-circular: 1) {\n :host > :is(a[href], button).step:hover,\n :host > :is(a[href], button).step:hover::after,\n .ui.steps > :is(a, .link).step:hover,\n .ui.steps > :is(a, .link).step:hover::after {\n color: var(--_ui-step-hover-color);\n background: var(--_ui-step-hover-background);\n }\n :host > :is(a[href], button).step:active,\n :host > :is(a[href], button).step:active::after,\n .ui.steps > :is(a, .link).step:active,\n .ui.steps > :is(a, .link).step:active::after {\n color: var(--_ui-step-down-color);\n background: var(--_ui-step-down-background);\n }\n\n /* Active: a darker fill (arrow included), the title in the link colour (`UIParts.css`). */\n :host > .step.active,\n :host > .step.active::after,\n .ui.steps > .step.active,\n .ui.steps > .step.active::after {\n background: var(--_ui-step-active-background);\n }\n :host > .step.active,\n .ui.steps > .step.active {\n cursor: auto;\n }\n :host > :is(a[href], button).step.active:hover,\n :host > :is(a[href], button).step.active:hover::after,\n .ui.steps > :is(a, .link).step.active:hover,\n .ui.steps > :is(a, .link).step.active:hover::after {\n color: var(--_ui-step-active-hover-color);\n background: var(--_ui-step-active-hover-background);\n cursor: var(--ui-control-cursor);\n }\n\n /* Disabled */\n :host > .step.disabled,\n :host > .step.disabled::after,\n .ui.steps > .step.disabled,\n .ui.steps > .step.disabled::after {\n color: var(--_ui-step-disabled-color);\n background: var(--_ui-step-disabled-background);\n }\n :host > .step.disabled,\n .ui.steps > .step.disabled {\n cursor: auto;\n pointer-events: none;\n }\n }\n\n /* Parts' state token, every layout. */\n :host > .step.active,\n .ui.steps > .step.active {\n --_ui-step-state: active;\n }\n :host > .step.disabled,\n .ui.steps > .step.disabled {\n --_ui-step-state: disabled;\n }\n\n /* The current step's icon / number darkens; a completed one turns the positive colour. */\n :host > .step.active > .icon,\n .ui.steps > .step.active > .icon,\n :host > .step.active::before,\n .ui.steps > .step.active::before {\n color: var(--_ui-step-active-icon-color);\n }\n :host > .step.completed > .icon,\n .ui.steps > .step.completed > .icon,\n :host > .step.completed::before,\n .ui.steps > .step.completed::before {\n color: var(--_ui-step-completed-color);\n }\n\n /* Circular: the current step's ring and dot in the accent, a completed one filled with a white check. */\n @container style(--_ui-steps-circular: 1) {\n :host > .step.active,\n .ui.steps > .step.active {\n --_ui-step-active-title-color: var(--_ui-steps-accent);\n }\n :host > .step.active::before,\n .ui.steps > .step.active::before {\n color: var(--_ui-steps-accent);\n border-color: var(--_ui-steps-accent);\n }\n :host > .step.active::after,\n .ui.steps > .step.active::after {\n background: var(--_ui-steps-accent);\n }\n :host > .step.completed::before,\n .ui.steps > .step.completed::before {\n background: var(--_ui-steps-accent);\n border-color: var(--_ui-steps-accent);\n }\n :host > .step.completed::after,\n .ui.steps > .step.completed::after {\n background: var(--_ui-steps-accent-on);\n mask: var(--_ui-step-check) center / contain no-repeat;\n }\n :host > .step.disabled,\n .ui.steps > .step.disabled {\n cursor: auto;\n opacity: var(--_ui-step-circular-disabled-opacity);\n pointer-events: none;\n }\n }\n @container style(--_ui-steps-circular: 1) and style(--_ui-steps-line: horizontal) {\n :host > .step.completed,\n .ui.steps > .step.completed {\n background: var(--_ui-steps-accent);\n }\n }\n @container style(--_ui-steps-circular: 1) and style(--_ui-steps-line: vertical) {\n :host(:not(:last-child)) > .step.completed,\n .ui.steps > .step.completed:not(:last-child) {\n --_ui-step-ring-color: var(--_ui-steps-accent);\n }\n }\n /* Ordered circular: the number, not a dot, in the current ring; a completed ring keeps its check. */\n @container style(--_ui-steps-circular: 1) and style(--_ui-steps-ordered: 1) {\n :host > .step.completed::before,\n .ui.steps > .step.completed::before {\n content: \"\";\n }\n :host > .step:not(.completed)::after,\n .ui.steps > .step:not(.completed)::after {\n background: transparent;\n }\n }\n}\n","import type { JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { stepsVocabulary } from \"./UISteps.en\"\n\nimport stepCSS from \"./UIStep.css?inline\"\n\n/****************\n * ### `UISteps`\n * The component behind `<ui-steps>`:\n * a group of steps, `<ol class=\"ui … steps\" part=\"steps\" role=\"list\"><slot></slot></ol>`.\n * Steps are a sequence, and each `<ui-step>`'s DOM element is a `listitem`.\n *\n * - `role=\"list\"` is explicit: `list-style: none` drops the list semantics in Safari.\n *\n * - The root resolves every variation into inherited `--_ui-steps-*` tokens the steps read (`UIStep.css`).\n * That includes stacking:\n * - the DOM element is a block and the size container `ui-steps` (`:state(steps)`)\n * - the root turns `stacked` below 768px of it unless `unstackable`\n * - with `stack-with=\"page\"` (a private class before the noun), below 768px of the screen\n *\n * - Numbering (`ordered`) is a CSS counter, reset here and incremented by each step,\n * across the shadow boundaries.\n *\n * - The DOM element's states:\n * - `steps` always\n * - `block` while the root is block-level (`fluid`, or circular and not vertical)\n * - `circular` while circular\n * - Why `block`: the DOM element is a size container (its own formatting context),\n * so a block-level root's outer margin sits on the DOM ELEMENT,\n * to collapse with the content above as class grammar's does.\n * An inline-flex root's never collapses, so it stays on the root (`UIStep.css`).\n ****************/\nexport class UISteps extends E.UIComponent<typeof stepsVocabulary> {\n @E.proto static vocabulary = stepsVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { step: stepCSS },\n // the steps are the focus targets, each its own DOM element\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n /** Always: the size container `ui-steps` (`:state(steps)`). */\n @E.cssState(\"steps\")\n get isStepGroup(): boolean {\n return true\n }\n\n /** The root is block-level: `fluid`, or circular and not vertical (`:state(block)`). */\n @E.cssState(\"block\")\n get isBlockLevel(): boolean {\n return !!this.fluid || (this.isCircular && !this.isVertical)\n }\n\n /** `appearance=\"circular\"`: `:state(circular)`. */\n @E.cssState(\"circular\")\n get isCircular(): boolean {\n return String(this.appearance ?? \"\")\n .split(\" \")\n .includes(CIRCULAR)\n }\n\n /** The steps run top to bottom (`direction=\"vertical\"`, or `vertical-right`). */\n get isVertical(): boolean {\n return String(this.direction ?? \"\").startsWith(VERTICAL)\n }\n\n /** `stack-with`'s class (`UIT.StackClasses`). */\n protected get extraClass(): string | undefined {\n return UIT.StackClasses.classFor(this.stackWith)\n }\n\n render(): JSX.Element {\n return (\n <ol class={this.rootClass} part={this.partForName(\"steps\")} role=\"list\">\n <slot />\n </ol>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UISteps extends E.AttributeValues<typeof stepsVocabulary> {}\n\n/** The `appearance` word of Fomantic's circular steps. */\nconst CIRCULAR = \"circular\"\n\n/** The `direction` of steps stacked top to bottom (`vertical-right` too). */\nconst VERTICAL = \"vertical\"\n","/**\n * The English vocabulary of `<ui-step>`: every name the tag uses.\n * - Its tag, attributes (each with its kind and allowed values), slots, parts, states and texts.\n * The shape is `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`, in Fomantic's grammar:\n * `<ui-steps ordered direction=\"vertical-right\" widths=\"3\">` => `ui ordered right vertical three steps`;\n * `<ui-step selected completed>` => `completed active step` (a step has no `ui`, as Fomantic's `.ui.steps > .step`).\n * `UIStep.css` keys on those words.\n * - Chosen state: `selected` is canonical (`AGENTS.md`), its class word Fomantic's `active`;\n * an `active` ATTRIBUTE is accepted as an alias (the element reads it raw, through `attributes`).\n * The selected step is the CURRENT one: `aria-current=\"step\"`.\n * - Content is the generic parts, owned by the step (`ownsParts`): `<ui-content>`, `<ui-title>`,\n * `<ui-description>`; or the shorthands `header` (the title -- NOT `title`, the global tooltip attribute and an\n * `HTMLElement` property, as the popup's `header`) and `description`.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `stepVocabulary`\n * The names of `<ui-step>`, one step: `<div class=\"[keyOnly ...] step\" part=\"step\">` (`<a>` with `href`,\n * `<button>` with `link`) holding the icon box, the shorthand content and the slot.\n ****************/\nexport const stepVocabulary = {\n tag: \"ui-step\",\n icon: \"shoe prints\",\n topics: [\"navigation\", \"progress\", \"content parts\", \"elements\"],\n aka: [\"wizard step\", \"stage\"],\n noun: \"step\",\n ui: false,\n description: \"One step of a set of steps.\",\n attributes: [\n {\n name: \"color\",\n group: \"appearance\",\n kind: \"color\",\n description: \"Circular steps: hue of this step's ring and line, whatever its state.\"\n },\n {\n name: \"selected\",\n group: \"states\",\n kind: \"keyOnly\",\n key: \"active\",\n description:\n 'The CURRENT step (`aria-current=\"step\"`). Alias: `active`. NOTE: Fomantic\\'s word for it is `active`.'\n },\n {\n name: \"completed\",\n group: \"states\",\n kind: \"keyOnly\",\n description: \"Done: its icon (or number) becomes a check.\"\n },\n {\n name: \"disabled\",\n group: \"states\",\n kind: \"keyOnly\",\n description: \"Not available yet: dimmed, and a link step isn't followed.\"\n },\n {\n name: \"link\",\n group: \"link\",\n kind: \"string\",\n replaces: [\"href\"],\n description: \"Where it goes: renders a link (`<a>`) styled as a step. Its old name was `href`.\"\n },\n { name: \"target\", group: \"link\", kind: \"string\", description: \"Link target, with `link`.\" },\n {\n name: \"appearance\",\n group: \"appearance\",\n kind: \"multiple\",\n values: [\"link\"],\n // its words are Fomantic's classes as they are\n classes: {},\n replaces: [{ from: \"link\", value: \"link\" }],\n description:\n \"The look: `link` -- clickable without a `link` to go to: renders a `<button>`, with the link hover; \" +\n \"the page handles `click`. Its old name was the bare `link` switch.\"\n },\n { name: \"icon\", group: \"content\", kind: \"icon\", description: \"Icon name, before the content.\" },\n {\n name: \"heading\",\n replaces: [\"header\"],\n group: \"name\",\n kind: \"string\",\n description: \"Shorthand for the title (Fomantic's `.title`). Its old name was `header`.\"\n },\n {\n name: \"description\",\n group: \"content\",\n kind: \"string\",\n description: \"Shorthand for the description under the title.\"\n },\n {\n name: \"parent\",\n group: \"layout\",\n kind: \"string\",\n description:\n 'Id of the `<ui-steps>` this step belongs to, when it\\'s written outside them (`parent=\"checkout\"`): ' +\n \"it joins them, in page order, as if nested there.\"\n }\n ],\n events: [],\n slots: [\n { name: \"\", description: \"Content: `<ui-content>` with `<ui-title>` / `<ui-description>`, or those parts alone.\" },\n { name: \"icon\", description: \"Icon, instead of the `icon` attribute (a check replaces it once `completed`).\" }\n ],\n parts: [\n { name: \"step\", description: \"The step box (`<div>`, `<a>` or `<button>`).\" },\n { name: \"icon\", description: \"The icon box.\" },\n { name: \"content\", description: \"The shorthand content block.\" },\n { name: \"title\", description: \"The `header` shorthand.\" },\n { name: \"description\", description: \"The `description` shorthand.\" }\n ],\n states: [\n { name: \"selected\", description: \"The current step (`selected` or `active`).\" },\n { name: \"completed\", description: \"Done.\" },\n { name: \"disabled\", description: \"Not available.\" },\n {\n name: \"content\",\n description: \"Has content (shorthand or slotted): a last circular step then takes the rest of the row.\"\n }\n ],\n texts: [\n {\n key: \"stepCompleted\",\n text: \"Completed\",\n description: \"Visually hidden after a completed step's content: the check alone says nothing to a screen reader.\"\n }\n ],\n ownsParts: [\"content\", \"title\", \"description\"]\n} as const satisfies E.ComponentVocabulary\n","import { Show } from \"solid-js\"\nimport { Dynamic, isServer, type JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { stepVocabulary } from \"./UIStep.en\"\n\nimport partsCSS from \"spell/ui/components/ui-parts/UIParts.css?inline\"\nimport stepCSS from \"./UIStep.css?inline\"\n\n/****************\n * ### `UIStep`\n * The component behind `<ui-step>`: one step of a sequence.\n * Its shadow DOM:\n * `<div class=\"[color] [keyOnly ...] step\" part=\"step\">` (an `<a>` with `href`, a `<button>` with `link`)\n * holding the icon box, the shorthand content (`header`, `description`), the slot,\n * and once `completed`, a visually hidden \"Completed\".\n *\n * - Semantics:\n * - the DOM element is a `listitem` (through `internals`) of the group's `<ol>`;\n * - the selected step is the current one: `aria-current=\"step\"` on the root;\n * - a disabled step is `aria-disabled` (a link keeps its `<a>`, without `href`),\n * a disabled `<button>` is `disabled`:\n * its dimmed text is an INACTIVE component's (WCAG 1.4.3's exemption), and assistive tech says so.\n *\n * - `selected` is canonical; an `active` attribute is Fomantic's word for it, read raw (`attributes`).\n *\n * - Completed: a check replaces the icon\n * (the `icon` glyph, or the slotted `slot=icon`, which stays in the DOM, hidden);\n * an ordered step's number turns into a check in CSS.\n *\n * - It OWNS the `content`, `title` and `description` parts (`ownsParts`):\n * slotted parts style themselves from `UIParts.css` (`:state(in-step)`),\n * reading `--_ui-step-state` and `--_ui-step-layout` from this root.\n * The shorthands are the same parts drawn here with their static `in-step` classes,\n * which is why the step adopts `UIParts.css`.\n *\n * - `parent=\"<id>\"`: written outside its `<ui-steps>`, it moves in, as if nested there (`ParentLink`).\n *\n * - Group variations (vertical, ordered, stacked, circular ...)\n * arrive as inherited `--_ui-steps-*` tokens from the `<ui-steps>` root;\n * `UIStep.css` reads them (see its header).\n ****************/\nexport class UIStep extends E.UIComponent<typeof stepVocabulary> {\n @E.proto static vocabulary = stepVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { step: stepCSS, parts: partsCSS },\n cssStates: [\"completed\"],\n // one item of the group's ordered list; a server render (`spell/ui/static`) makes the root an `<li>`\n aria: { role: \"listitem\" },\n // `disabled`: its link or button is disabled\n disabled: \"its own\"\n } satisfies Partial<E.ElementSetup>\n\n ////////////////\n // ## State\n ////////////////\n\n /** The current step: `selected`, or the `active` alias; `:state(selected)`. */\n @E.cssState(\"selected\")\n get isSelected(): boolean {\n return this.selected || E.Converters.boolean(this.attributes[UIT.ACTIVE], UIT.ACTIVE)\n }\n\n /** Disabled by its attribute; `:state(disabled)`. */\n @E.cssState(\"disabled\")\n get isDisabled(): boolean {\n return !!this.disabled\n }\n\n ////////////////\n // ## Content\n ////////////////\n\n /** Light-DOM slot occupancy. */\n readonly slots = new E.SlotContent(this.domElement)\n\n /** Has shorthand content? */\n get hasShorthand(): boolean {\n return !!this.heading || !!this.description\n }\n\n /** Has content (shorthand or slotted): `:state(content)`. */\n @E.cssState(\"content\")\n get hasContent(): boolean {\n return this.hasShorthand || this.slots.hasContent(\"\")\n }\n\n ////////////////\n // ## The icon\n ////////////////\n\n /** Glyph of the `icon` shorthand. */\n readonly iconGlyph = new E.IconGlyph({ owner: this, name: () => this.icon })\n\n /** Has an icon (shorthand or `icon` slot)? */\n get hasIcon(): boolean {\n return !!this.icon || this.slots.hasContent(this.slotForName(\"icon\"))\n }\n\n /** The check a completed step shows in place of its icon. */\n readonly checkGlyph = new E.IconGlyph({\n owner: this,\n name: () => (this.completed && this.hasIcon ? CHECK : undefined)\n })\n\n ////////////////\n // ## Classes\n ////////////////\n\n /**\n * Extra class words:\n * - `active` for the `active` alias, when `selected` doesn't add it\n * - `ui-<color>` for a coloured step:\n * the generic colour remap (`colors.css`) keys on `.ui.red` / `.ui-red`, and a step has no `ui`\n */\n protected get extraClass(): string | undefined {\n const color = this.color\n const extra = [\n this.isSelected && !this.selected ? UIT.ACTIVE : \"\",\n color ? `${UIT.COLOR_CLASS_PREFIX}${color}` : \"\"\n ]\n return extra.filter(Boolean).join(\" \") || undefined\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n /** Root element: a link (`link`), a button (`appearance=\"link\"`), or a box. */\n get rootTag(): string {\n if (this.link) return \"a\"\n return String(this.appearance ?? \"\")\n .split(\" \")\n .includes(LINK_LOOK)\n ? \"button\"\n : \"div\"\n }\n\n render(): JSX.Element {\n return (\n <Dynamic\n component={this.rootTag}\n class={this.rootClass}\n part={this.partForName(\"step\")}\n href={this.linkTo}\n target={this.linkTarget}\n type={this.rootTag === \"button\" ? \"button\" : undefined}\n disabled={this.rootTag === \"button\" && this.disabled ? true : undefined}\n aria-disabled={this.rootTag !== \"button\" && this.disabled ? \"true\" : undefined}\n aria-current={this.isSelected ? \"step\" : undefined}\n >\n <Show when={this.hasIcon}>\n <span class={UIT.ICON} part={this.partForName(\"icon\")}>\n {/* a server render (`spell/ui/static`) swaps the slot for its content, `hidden` and all: leave it out */}\n <Show when={!(isServer && this.completed)}>\n <slot name={this.slotForName(\"icon\")} hidden={this.completed || undefined}>\n {this.iconGlyph.svg}\n </slot>\n </Show>\n {this.checkGlyph.svg}\n </span>\n </Show>\n <Show when={this.hasShorthand}>\n <div class={this.staticPart(UIT.CONTENT)} part={this.partForName(\"content\")}>\n <Show when={this.heading}>\n <div class={this.staticPart(TITLE_PART)} part={this.partForName(\"title\")}>\n {this.heading}\n </div>\n </Show>\n <Show when={this.description}>\n <div class={this.staticPart(UIT.DESCRIPTION)} part={this.partForName(\"description\")}>\n {this.description}\n </div>\n </Show>\n </div>\n </Show>\n <slot />\n <Show when={this.completed}>\n <span class={UIT.VISUALLY_HIDDEN}>{this.translationForKey(\"stepCompleted\")}</span>\n </Show>\n </Dynamic>\n )\n }\n\n /** Classes of a shorthand part: its noun and the static owner class (`UIParts.css`), e.g. `title in-step`. */\n private staticPart(noun: string): string {\n return `${noun} ${UIT.PART_STATIC_CLASS_PREFIX}${this.vocabulary.noun}`\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UIStep extends E.AttributeValues<typeof stepVocabulary> {}\n\n/** The `header` shorthand's part and class word, Fomantic's `.title` (not `UIT.TITLE`, the tooltip attribute). */\nconst TITLE_PART = \"title\"\n\n/** Glyph of a completed step's icon. */\nconst CHECK = \"check\"\n\n/** The `appearance` word for a step that's clickable without a `link`: a `<button>`, with the link hover. */\nconst LINK_LOOK = \"link\"\n","/**\n * The step family: defines `<ui-steps>` and `<ui-step>`, and exports their components, `UISteps` and `UIStep`.\n * - SIDE EFFECT: importing it defines the tags.\n * - Also the library's `spell/ui/ui-step` entry (its size is in `notes/report.md`).\n * - NOTE: slotted step content is the generic parts (`<ui-content>`, `<ui-title>`, `<ui-description>`):\n * load `spell/ui/ui-parts` for them; the `header` / `description` shorthands need nothing more.\n */\n\nimport { UISteps } from \"./UISteps\"\nimport { UIStep } from \"./UIStep\"\n\nUISteps.define()\nUIStep.define()\n\nexport { UISteps, UIStep }\n"],"mappings":";;;;;AAuBA,IAAaoE,IAAkB;CAC7B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAc;EAAY;EAAU;CAAU;CACvD,KAAK;EAAC;EAAW;EAAU;EAAkB;CAAgB;CAC7D,UAAU;CACV,MAAM;CACN,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO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,EADEoD,GACK,cAAahD,EAApB+C,GAAA,GADEC,GACkBb,CAAA,CAAA,GAApBnC,EAAA+C,GAAA,IADEC,CAAA,GAEIpD,EAFJoD,GAEW,gBAAehD,EAAtB+C,GAAA,IAFJC,GAE0B;CACnC,aAAa;EAAE,MAAMxD;EAAS,OAAOC;CAAS;CAC9C,WAAW,CAAC,WAAW;CAEvB,MAAM,EAAE,MAAM,WAAW;CAEzB,UAAU;AACZ,CAAA,CAAA,GAPeO,EAAA+C,GAAA,IAFJC,CAAA;AAAN,IAAM4B,IAAN5B,GAwJDqB,KAAa,SAGblB,KAAQ,SAGRI,KAAY;AC7LlBrB,EAAQ,OAAO,GACf0C,EAAO,OAAO"}
package/dist/ui-sticky.js CHANGED
@@ -1,9 +1,10 @@
1
1
  import "./rolldown-runtime-CYGlBXrH.js";
2
- import { Bt as e, Ft as t, It as n, Lt as r, Rt as i, StickyWatch as a, UIComponent as o, Vt as s, cssState as c, onChange as l, proto as u, protoMerged as d, state as f, zt as p } from "./core.js";
2
+ import { Bt as e, Ht as t, Lt as n, Rt as r, StickyWatch as i, UIComponent as a, Ut as o, Vt as s, cssState as c, onChange as l, proto as u, protoMerged as d, state as f, zt as p } from "./core.js";
3
3
  import { className as m, effect as h, getOwner as g, isServer as _, readShallow as v, ref as y, setAttribute as b, style as x, template as S } from "@solidjs/web";
4
4
  //#region src/components/ui-sticky/UISticky.en.ts
5
5
  var C = {
6
6
  tag: "ui-sticky",
7
+ icon: "thumbtack",
7
8
  topics: [
8
9
  "layout",
9
10
  "navigation",
@@ -64,9 +65,9 @@ var C = {
64
65
  description: "Pushed out by the end of its container (Fomantic's `bound`)."
65
66
  }],
66
67
  texts: []
67
- }, w = "@layer ui.components.sticky.types{:host{display:contents}.ui.sticky{--_ui-sticky-offset:var(--ui-sticky-offset,0px);--_ui-sticky-bottom-offset:var(--ui-sticky-bottom-offset,0px);--_ui-sticky-z-index:var(--ui-sticky-z-index,var(--ui-z-sticky));--_ui-sticky-transition:var(--ui-sticky-transition,none);top:var(--_ui-sticky-offset);z-index:var(--_ui-sticky-z-index);transition:var(--_ui-sticky-transition);position:sticky}}@layer ui.components.sticky.content{.sentinel{visibility:hidden;pointer-events:none;height:1px;margin-block-end:-1px;display:block}.bottom.sentinel{margin-block:-1px 0}}@layer ui.components.sticky.variations{.ui.pushing.sticky{bottom:var(--_ui-sticky-bottom-offset)}}@layer ui.components.sticky.states;", T = /* @__PURE__ */ S("<div><slot>"), E = /* @__PURE__ */ S("<div aria-hidden=true>"), D, O, k, A, j, M, N, P, F, I, L = class _UISticky extends (N = o, M = [u], j = [d], A = [f], k = [c("stuck")], O = [c("bound"), f], D = [l("isConnected", "isReady", "offset", "bottomOffset", "pushing")], N) {
68
+ }, w = "@layer ui.components.sticky.types{:host{display:contents}.ui.sticky{--_ui-sticky-offset:var(--ui-sticky-offset,0px);--_ui-sticky-bottom-offset:var(--ui-sticky-bottom-offset,0px);--_ui-sticky-z-index:var(--ui-sticky-z-index,var(--ui-z-sticky));--_ui-sticky-transition:var(--ui-sticky-transition,none);top:var(--_ui-sticky-offset);z-index:var(--_ui-sticky-z-index);transition:var(--_ui-sticky-transition);position:sticky}}@layer ui.components.sticky.content{.sentinel{visibility:hidden;pointer-events:none;height:1px;margin-block-end:-1px;display:block}.bottom.sentinel{margin-block:-1px 0}}@layer ui.components.sticky.variations{.ui.pushing.sticky{bottom:var(--_ui-sticky-bottom-offset)}}@layer ui.components.sticky.states;", T = /* @__PURE__ */ S("<div><slot>"), E = /* @__PURE__ */ S("<div aria-hidden=true>"), D, O, k, A, j, M, N, P, F, I, L = class _UISticky extends (N = a, M = [u], j = [d], A = [f], k = [c("stuck")], O = [c("bound"), f], D = [l("isConnected", "isReady", "offset", "bottomOffset", "pushing")], N) {
68
69
  constructor() {
69
- super(...arguments), s(P, 5, this), p(this, F, s(P, 8, this)), s(P, 11, this), p(this, I, s(P, 12, this, !1)), s(P, 15, this), e(this, "onStickChange", /* @__PURE__ */ i(({ edge: e, isBound: t, previous: n }) => {
70
+ super(...arguments), o(P, 5, this), s(this, F, o(P, 8, this)), o(P, 11, this), s(this, I, o(P, 12, this, !1)), o(P, 15, this), t(this, "onStickChange", /* @__PURE__ */ e(({ edge: e, isBound: t, previous: n }) => {
70
71
  if (this.isBound = t, e !== n) {
71
72
  if (this.stuckEdge = e, n) {
72
73
  let e = { edge: n };
@@ -77,7 +78,7 @@ var C = {
77
78
  this.send("ui-stuck", t);
78
79
  }
79
80
  }
80
- }, "onStickChange")), e(this, "stickyWatch", new a(this.onStickChange)), e(this, "topSentinel"), e(this, "bottomSentinel"), e(this, "box");
81
+ }, "onStickChange")), t(this, "stickyWatch", new i(this.onStickChange)), t(this, "topSentinel"), t(this, "bottomSentinel"), t(this, "box");
81
82
  }
82
83
  get isStuck() {
83
84
  return this.stuckEdge !== void 0;
@@ -137,10 +138,10 @@ var C = {
137
138
  ];
138
139
  }
139
140
  };
140
- P = r(N), F = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), t(P, 4, "stuckEdge", A, L, F), t(P, 2, "isStuck", k, L), t(P, 4, "isBound", O, L, I), t(P, 1, "onWatchSettingsChanged", D, L), t(P, 13, "vocabulary", M, L), t(P, 13, "elementSetup", j, L), n(P, L), i(L, "UISticky"), e(L, "vocabulary", s(P, 16, L, C)), s(P, 19, L), e(L, "elementSetup", s(P, 20, L, {
141
+ P = p(N), F = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), n(P, 4, "stuckEdge", A, L, F), n(P, 2, "isStuck", k, L), n(P, 4, "isBound", O, L, I), n(P, 1, "onWatchSettingsChanged", D, L), n(P, 13, "vocabulary", M, L), n(P, 13, "elementSetup", j, L), r(P, L), e(L, "UISticky"), t(L, "vocabulary", o(P, 16, L, C)), o(P, 19, L), t(L, "elementSetup", o(P, 20, L, {
141
142
  styleSheets: { sticky: w },
142
143
  delegatesFocus: !1
143
- })), s(P, 23, L);
144
+ })), o(P, 23, L);
144
145
  var R = L, z = "--_ui-sticky-offset", B = "--_ui-sticky-bottom-offset", V = "sentinel", H = "bottom sentinel";
145
146
  //#endregion
146
147
  //#region src/components/ui-sticky/index.ts
@@ -1 +1 @@
1
- {"version":3,"file":"ui-sticky.js","names":["ref={(element) => this.box = element}","this","part={this.partForName(\"sticky\")}","style={this.boxStyle}","<div\n ref={(element) => this.box = element}\n class={this.rootClass}\n part={this.partForName(\"sticky\")}\n style={this.boxStyle}\n >\n <slot />\n </div>","ref={(element) => this.topSentinel = element}","ref={(element) => this.bottomSentinel = element}","E.UIComponent","E.proto","E.protoMerged","E.state","E.cssState","E.onChange","E.StickyWatch","_$getOwner","_$readShallow","_$setAttribute","__name","stickyCSS","__publicField","__decorateElement","__decoratorMetadata","__decoratorStart","__name$1","__runInitializers","__privateAdd","stickyVocabulary","UISticky_default","_tmpl$","_tmpl$2","_onWatchSettingsChanged_dec","_isBound_dec","_isStuck_dec","_stuckEdge_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_stuckEdge","_isBound","_UISticky","UIComponent","proto","protoMerged","state","cssState","onChange","isBound","edge","previous","detail","StickyWatch","isConnected","topSentinel","bottomSentinel","box","options","OFFSET_PROPERTY","BOTTOM_OFFSET_PROPERTY","_self$","_el$","_el$2","ref","element","getOwner","effect","readShallow","className","_p$","t","setAttribute","style","a","isServer","_self$2","_el$3","SENTINEL","_v$","_$p","_el$4","BOTTOM_SENTINEL","UISticky"],"sources":["../src/components/ui-sticky/UISticky.en.ts","../src/components/ui-sticky/UISticky.css?inline","../src/components/ui-sticky/UISticky.tsx","../src/components/ui-sticky/index.ts"],"sourcesContent":["/**\n * Every name `<ui-sticky>` uses: tag, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`: `<ui-sticky pushing>` => `ui pushing sticky`.\n * - Stuck-ness is a STATE (`:state(stuck)`, `:state(bound)`), not a class: CSS `position: sticky` does the sticking,\n * the element only reports it.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `<ui-sticky>`\n * A sticky: `<div class=\"ui ... sticky\" part=\"sticky\">` around the slot, between two sentinels.\n ****************/\nexport const stickyVocabulary = {\n tag: \"ui-sticky\",\n topics: [\"layout\", \"navigation\", \"modules\"],\n aka: [\"affix\", \"pinned\", \"fixed header\", \"sticky header\"],\n noun: \"sticky\",\n description: \"Sticky content stays fixed to the viewport while its container is on screen.\",\n attributes: [\n {\n name: \"offset\",\n group: \"layout\",\n kind: \"number\",\n default: 0,\n description: \"Pixels between the top edge of the viewport (or scroll container) and the stuck content.\"\n },\n {\n name: \"bottom-offset\",\n group: \"appearance\",\n kind: \"number\",\n default: 0,\n description: \"Pixels between the bottom edge and the content stuck there (with `pushing`).\"\n },\n {\n name: \"pushing\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description:\n \"Also sticks to the BOTTOM edge: content below the fold stays in view there until the page reaches it.\"\n }\n ],\n events: [\n {\n name: \"ui-stuck\",\n detail: \"{ edge: StickyEdge }\",\n description: \"Stuck to an edge (`top`, or `bottom` with `pushing`), Fomantic's `onStick`.\"\n },\n {\n name: \"ui-unstuck\",\n detail: \"{ edge: StickyEdge }\",\n description:\n \"Left the edge it was stuck to: scrolled back, or pushed out by the end of its container (`:state(bound)`).\"\n }\n ],\n slots: [{ name: \"\", description: \"The content that sticks.\" }],\n parts: [{ name: \"sticky\", description: \"The sticky box around the slot.\" }],\n states: [\n { name: \"stuck\", description: \"Stuck to the top or bottom edge.\" },\n { name: \"bound\", description: \"Pushed out by the end of its container (Fomantic's `bound`).\" }\n ],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","/*\n * `<ui-sticky>`: port of Fomantic's `sticky.less` + `sticky.variables`.\n * Its `native` type, `position: sticky`, is the only one:\n * Fomantic's JS-positioned `fixed` / `bound` classes become states the element REPORTS\n * (`:state(stuck)`, `:state(bound)`).\n * - Shadow markup contract: `<div class=\"sentinel\" aria-hidden=\"true\">`, then\n * `<div class=\"ui [pushing] sticky\" part=\"sticky\" style=\"--_ui-sticky-offset: Npx; --_ui-sticky-bottom-offset: Npx\">`\n * around the default `<slot>`, then `<div class=\"bottom sentinel\" aria-hidden=\"true\">`.\n * - The DOM element is `display: contents`: sentinels and box are children of the DOM element's parent,\n * the box's containing block -- it sticks within that parent, and the parent's end pushes it out.\n * - Sentinels are 1px tall with a -1px margin:\n * they take no space, but the observer sees where the box's edges would be.\n * - Static markup (the examples) sticks too: `.ui.sticky` is `position: sticky` with or without the element.\n * - Its offsets are the public `--ui-sticky-offset` / `--ui-sticky-bottom-offset`, on the box or above it.\n * - The element writes the private aliases inline instead, from its `offset` / `bottom-offset` attributes.\n * - Public tokens (`--ui-sticky-*`, the theming surface) are NEVER declared here:\n * the token block reads each through a private alias, and every rule reads the alias:\n * `--_ui-sticky-z-index: var(--ui-sticky-z-index, var(--ui-z-sticky))`.\n * So a value set on `:root`, an ancestor, the DOM element, `::part(sticky)` or in the app stylesheet\n * reaches the box (`notes/theming.md` \"Component tokens\").\n */\n\n@layer ui.components.sticky.types, ui.components.sticky.content, ui.components.sticky.variations, ui.components.sticky.states;\n\n/*******************************\n Sticky\n*******************************/\n\n@layer ui.components.sticky.types {\n :host {\n display: contents;\n }\n\n /* Tokens: each the private alias of its public token. */\n .ui.sticky {\n --_ui-sticky-offset: var(--ui-sticky-offset, 0px);\n --_ui-sticky-bottom-offset: var(--ui-sticky-bottom-offset, 0px);\n --_ui-sticky-z-index: var(--ui-sticky-z-index, var(--ui-z-sticky));\n --_ui-sticky-transition: var(--ui-sticky-transition, none);\n position: sticky;\n top: var(--_ui-sticky-offset);\n z-index: var(--_ui-sticky-z-index);\n transition: var(--_ui-sticky-transition);\n }\n}\n\n/*******************************\n Content\n*******************************/\n\n@layer ui.components.sticky.content {\n .sentinel {\n display: block;\n height: 1px;\n margin-block-end: -1px;\n visibility: hidden;\n pointer-events: none;\n }\n .bottom.sentinel {\n margin-block: -1px 0;\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.sticky.variations {\n /* Pushing: sticks to the bottom edge as well. */\n .ui.pushing.sticky {\n bottom: var(--_ui-sticky-bottom-offset);\n }\n}\n","import { isServer, type JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { stickyVocabulary } from \"./UISticky.en\"\n\nimport stickyCSS from \"./UISticky.css?inline\"\n\n/****************\n * ### `UISticky`\n * The component behind `<ui-sticky>`: content that sticks as the page scrolls,\n * `position: sticky` on `<div class=\"ui … sticky\" part=\"sticky\">`, between two 1px sentinels.\n * It only REPORTS what CSS does (`:state(stuck)`, `ui-stuck` / `ui-unstuck`),\n * through an `IntersectionObserver`: no scroll listener, no JS positioning.\n *\n * - The DOM element is `display: contents`, so the sentinels and the box are children of its PARENT,\n * which is the box's containing block: it sticks within its parent (Fomantic's `context`),\n * whose end pushes it out (`:state(bound)`).\n *\n * - `offset` / `bottom-offset` become `top` / `bottom`\n * (the PRIVATE custom properties `--_ui-sticky-offset` / `--_ui-sticky-bottom-offset`, inline on the box);\n * `pushing` also sticks it to the bottom edge.\n * - Private: the attributes decide them (the observer measures against the same numbers),\n * and an inline public name would block the page's value exactly as a sheet declaration does.\n *\n * - Stuck: the top sentinel (where the box would be) has passed the `offset` line,\n * while the box hasn't been pushed above it;\n * with `pushing`, the bottom sentinel is also below the bottom line.\n * - Measured by `StickyWatch` (shared with `<ui-section sticky>`) on every observer callback,\n * against the nearest scroll container (else the document's viewport).\n *\n * - SIDE EFFECT (`StickyWatch`'s): while stuck, it RESERVES its room on the scroll container (`<html>` for the page).\n * - Inline `scroll-padding-top` (`-bottom` at the bottom edge) is the furthest edge of every box stuck there.\n * - So Page Down / Space, focus and `scrollIntoView()` keep content out from under it.\n * - Chromium and Firefox honour it for paging; Safari only for the rest.\n * - A box taller than half the visible area, or narrower than half its width (`STICKY_MAX_RESERVE`),\n * is a sticky COLUMN (a sidebar), not a header: it reserves nothing, or paging would barely move.\n * - The inline property is the stickies' while any is stuck, removed once none is:\n * a page's own `scroll-padding` belongs in a stylesheet.\n ****************/\nexport class UISticky extends E.UIComponent<StickyVocabulary> {\n @E.proto static vocabulary = stickyVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { sticky: stickyCSS },\n // a wrapper: a click on its text must not jump to a link inside\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n ////////////////\n // ## Stuck\n ////////////////\n\n /** Edge it's stuck to; `undefined` when not stuck. */\n @E.state accessor stuckEdge: UIT.StickyEdge | undefined = undefined\n\n /** Stuck to an edge. */\n @E.cssState(\"stuck\")\n get isStuck(): boolean {\n return this.stuckEdge !== undefined\n }\n\n /** Pushed out by the end of its container. */\n @E.cssState(\"bound\")\n @E.state\n accessor isBound = false\n\n /**\n * The watcher's report: publish `stuckEdge` / `isBound`, firing `ui-unstuck` then `ui-stuck` on a change.\n * - Above `stickyWatch`, whose initializer reads it.\n */\n private readonly onStickChange = ({ edge, isBound, previous }: E.StickyWatchState) => {\n this.isBound = isBound\n if (edge === previous) return\n this.stuckEdge = edge\n if (previous) {\n const detail: UIT.StickyDetail = { edge: previous }\n this.send(\"ui-unstuck\", detail)\n }\n if (edge) {\n const detail: UIT.StickyDetail = { edge }\n this.send(\"ui-stuck\", detail)\n }\n }\n\n ////////////////\n // ## Watching\n ////////////////\n\n /** Observes the box and reserves its room while stuck. */\n private readonly stickyWatch = new E.StickyWatch(this.onStickChange)\n\n /** Sentinel where the box's top would be. */\n private topSentinel?: HTMLDivElement\n\n /** Sentinel where the box's bottom would be. */\n private bottomSentinel?: HTMLDivElement\n\n /** The sticky box. */\n private box?: HTMLDivElement\n\n /**\n * Observe while connected and drawn (once `isReady`, the sentinels exist),\n * again whenever the offsets or `pushing` change; unstuck once disconnected.\n */\n @E.onChange(\"isConnected\", \"isReady\", \"offset\", \"bottomOffset\", \"pushing\")\n protected onWatchSettingsChanged(isConnected: boolean) {\n if (isConnected) return this.observe()\n this.stickyWatch.reset()\n return undefined\n }\n\n /** Watch the sentinels and the box against the scroll container; returns the undo (the state stays). */\n private observe(): () => void {\n const { topSentinel, bottomSentinel, box } = this\n if (!topSentinel || !bottomSentinel || !box) return () => undefined\n const options: E.StickyWatchOptions = {\n offset: this.offset ?? 0,\n bottomOffset: this.bottomOffset ?? 0,\n pushing: !!this.pushing\n }\n return this.stickyWatch.observe(\n { domElement: this.domElement, top: topSentinel, bottom: bottomSentinel, box },\n options\n )\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n /**\n * The box's inline tokens: top and bottom offsets.\n */\n private get boxStyle(): Record<string, string> {\n return {\n [OFFSET_PROPERTY]: `${this.offset ?? 0}px`,\n [BOTTOM_OFFSET_PROPERTY]: `${this.bottomOffset ?? 0}px`\n }\n }\n\n render(): JSX.Element {\n const box = (\n <div\n ref={(element) => (this.box = element)}\n class={this.rootClass}\n part={this.partForName(\"sticky\")}\n style={this.boxStyle}\n >\n <slot />\n </div>\n )\n // a server render (`spell/ui/static`): the box alone, the root; CSS sticks it, nothing observes\n if (isServer) return box\n return (\n <>\n <div ref={(element) => (this.topSentinel = element)} class={SENTINEL} aria-hidden=\"true\" />\n {box}\n <div ref={(element) => (this.bottomSentinel = element)} class={BOTTOM_SENTINEL} aria-hidden=\"true\" />\n </>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UISticky extends E.AttributeValues<StickyVocabulary> {}\n\n/** The vocabulary type, for brevity. */\ntype StickyVocabulary = typeof stickyVocabulary\n\n/** The private custom property the box reads for `top` (`offset`), inline: it wins over the public token's alias. */\nconst OFFSET_PROPERTY = \"--_ui-sticky-offset\"\n\n/** The private custom property the box reads for `bottom` (`bottom-offset`), inline. */\nconst BOTTOM_OFFSET_PROPERTY = \"--_ui-sticky-bottom-offset\"\n\n/** Class word of the sentinel where the box's top would be. */\nconst SENTINEL = \"sentinel\"\n\n/** Class words of the sentinel where the box's bottom would be. */\nconst BOTTOM_SENTINEL = \"bottom sentinel\"\n","/**\n * The sticky family: defines `<ui-sticky>` and exports its component, `UISticky`.\n * - SIDE EFFECT: importing it defines the tag.\n * - Also the library's `spell/ui/ui-sticky` entry (its size is in `notes/report.md`).\n */\n\nimport { UISticky } from \"./UISticky\"\n\nUISticky.define()\n\nexport { UISticky }\n"],"mappings":";;;;AAcA,IAAa0B,IAAmB;CAC9B,KAAK;CACL,QAAQ;EAAC;EAAU;EAAc;CAAS;CAC1C,KAAK;EAAC;EAAS;EAAU;EAAgB;CAAe;CACxD,MAAM;CACN,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,SAAS;GACT,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,SAAS;GACT,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aACE;EACJ;CACF;CACA,QAAQ,CACN;EACE,MAAM;EACN,QAAQ;EACR,aAAa;CACf,GACA;EACE,MAAM;EACN,QAAQ;EACR,aACE;CACJ,CACF;CACA,OAAO,CAAC;EAAE,MAAM;EAAI,aAAa;CAA2B,CAAC;CAC7D,OAAO,CAAC;EAAE,MAAM;EAAU,aAAa;CAAkC,CAAC;CAC1E,QAAQ,CACN;EAAE,MAAM;EAAS,aAAa;CAAmC,GACjE;EAAE,MAAM;EAAS,aAAa;CAA+D,CAC/F;CACA,OAAO,CAAC;AACV,ozBE/DAI,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAuCaC,IAAN,MAAM,mBAAiB,IAAAjC,GAC5B,IAAA,CAACC,CAAE,GACH,IAAA,CAACC,CAAE,GAWH,IAAA,CAACC,CAAE,GAGH,IAAA,CAACC,EAAW,OAAO,CAAA,GAMnB,IAAA,CAACA,EAAW,OAAO,GAClBD,CAAE,GAyCH,IAAA,CAACE,EAAW,eAAe,WAAW,UAAU,gBAAgB,SAAS,CAAA,GAhE7CwB,EAAA,CAAgC;CAAvD,cAAA;EA0DL,AA1DK,MAAA,G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,EAAAiB,GAAA,GAAI,WADJL,GAhBWQ,CAAA,GAwBXpB,EAAAiB,GAAA,GAAS,WAFTN,GAtBWS,GAwBFD,CAAA,GAyCTnB,EAAAiB,GAAA,GAAU,0BADVP,GAhEWU,CAAA,GACFpB,EAAAiB,GAAA,IAAO,cAAhBF,GADWK,CAAA,GAEIpB,EAAAiB,GAAA,IAAO,gBAAtBH,GAFWM,CAAA,GAANnB,EAAAgB,GAAMG,CAAA,GAAiDvB,EAAAuB,GAAA,UAAA,GACnDrB,EADEqB,GACK,cAAahB,EAApBa,GAAA,IADEG,GACkBd,CAAA,CAAA,GAApBF,EAAAa,GAAA,IADEG,CAAA,GAEIrB,EAFJqB,GAEW,gBAAehB,EAAtBa,GAAA,IAFJG,GAE0B;CACnC,aAAa,EAAE,QAAQtB,EAAU;CAEjC,gBAAgB;AAClB,CAAA,CAAA,GAJeM,EAAAa,GAAA,IAFJG,CAAA;AAAN,IAAMyC,IAANzC,GAkIDiB,IAAkB,uBAGlBC,IAAyB,8BAGzBkB,IAAW,YAGXI,IAAkB;;;AC1KxBC,EAAS,OAAO"}
1
+ {"version":3,"file":"ui-sticky.js","names":["ref={(element) => this.box = element}","this","part={this.partForName(\"sticky\")}","style={this.boxStyle}","<div\n ref={(element) => this.box = element}\n class={this.rootClass}\n part={this.partForName(\"sticky\")}\n style={this.boxStyle}\n >\n <slot />\n </div>","ref={(element) => this.topSentinel = element}","ref={(element) => this.bottomSentinel = element}","E.UIComponent","E.proto","E.protoMerged","E.state","E.cssState","E.onChange","E.StickyWatch","_$getOwner","_$readShallow","_$setAttribute","__name","stickyCSS","__name$1","__publicField","__decorateElement","__decoratorMetadata","__runInitializers","__privateAdd","__decoratorStart","stickyVocabulary","UISticky_default","_tmpl$","_tmpl$2","_onWatchSettingsChanged_dec","_isBound_dec","_isStuck_dec","_stuckEdge_dec","_elementSetup_dec","_vocabulary_dec","_a","_init","_stuckEdge","_isBound","_UISticky","UIComponent","proto","protoMerged","state","cssState","onChange","isBound","edge","previous","detail","StickyWatch","isConnected","topSentinel","bottomSentinel","box","options","OFFSET_PROPERTY","BOTTOM_OFFSET_PROPERTY","_self$","_el$","_el$2","ref","element","getOwner","effect","readShallow","className","_p$","t","setAttribute","style","a","isServer","_self$2","_el$3","SENTINEL","_v$","_$p","_el$4","BOTTOM_SENTINEL","UISticky"],"sources":["../src/components/ui-sticky/UISticky.en.ts","../src/components/ui-sticky/UISticky.css?inline","../src/components/ui-sticky/UISticky.tsx","../src/components/ui-sticky/index.ts"],"sourcesContent":["/**\n * Every name `<ui-sticky>` uses: tag, attributes (kind + allowed values), events, slots, parts, states, texts.\n * Schema: `E.ComponentVocabulary` (`spell/ui/vocabulary`).\n * - Class words come out through `ClassBuilder`: `<ui-sticky pushing>` => `ui pushing sticky`.\n * - Stuck-ness is a STATE (`:state(stuck)`, `:state(bound)`), not a class: CSS `position: sticky` does the sticking,\n * the element only reports it.\n */\n\nimport type { E } from \"spell/ui/core\"\n\n/****************\n * ### `<ui-sticky>`\n * A sticky: `<div class=\"ui ... sticky\" part=\"sticky\">` around the slot, between two sentinels.\n ****************/\nexport const stickyVocabulary = {\n tag: \"ui-sticky\",\n icon: \"thumbtack\",\n topics: [\"layout\", \"navigation\", \"modules\"],\n aka: [\"affix\", \"pinned\", \"fixed header\", \"sticky header\"],\n noun: \"sticky\",\n description: \"Sticky content stays fixed to the viewport while its container is on screen.\",\n attributes: [\n {\n name: \"offset\",\n group: \"layout\",\n kind: \"number\",\n default: 0,\n description: \"Pixels between the top edge of the viewport (or scroll container) and the stuck content.\"\n },\n {\n name: \"bottom-offset\",\n group: \"appearance\",\n kind: \"number\",\n default: 0,\n description: \"Pixels between the bottom edge and the content stuck there (with `pushing`).\"\n },\n {\n name: \"pushing\",\n group: \"appearance\",\n kind: \"keyOnly\",\n description:\n \"Also sticks to the BOTTOM edge: content below the fold stays in view there until the page reaches it.\"\n }\n ],\n events: [\n {\n name: \"ui-stuck\",\n detail: \"{ edge: StickyEdge }\",\n description: \"Stuck to an edge (`top`, or `bottom` with `pushing`), Fomantic's `onStick`.\"\n },\n {\n name: \"ui-unstuck\",\n detail: \"{ edge: StickyEdge }\",\n description:\n \"Left the edge it was stuck to: scrolled back, or pushed out by the end of its container (`:state(bound)`).\"\n }\n ],\n slots: [{ name: \"\", description: \"The content that sticks.\" }],\n parts: [{ name: \"sticky\", description: \"The sticky box around the slot.\" }],\n states: [\n { name: \"stuck\", description: \"Stuck to the top or bottom edge.\" },\n { name: \"bound\", description: \"Pushed out by the end of its container (Fomantic's `bound`).\" }\n ],\n texts: []\n} as const satisfies E.ComponentVocabulary\n","/*\n * `<ui-sticky>`: port of Fomantic's `sticky.less` + `sticky.variables`.\n * Its `native` type, `position: sticky`, is the only one:\n * Fomantic's JS-positioned `fixed` / `bound` classes become states the element REPORTS\n * (`:state(stuck)`, `:state(bound)`).\n * - Shadow markup contract: `<div class=\"sentinel\" aria-hidden=\"true\">`, then\n * `<div class=\"ui [pushing] sticky\" part=\"sticky\" style=\"--_ui-sticky-offset: Npx; --_ui-sticky-bottom-offset: Npx\">`\n * around the default `<slot>`, then `<div class=\"bottom sentinel\" aria-hidden=\"true\">`.\n * - The DOM element is `display: contents`: sentinels and box are children of the DOM element's parent,\n * the box's containing block -- it sticks within that parent, and the parent's end pushes it out.\n * - Sentinels are 1px tall with a -1px margin:\n * they take no space, but the observer sees where the box's edges would be.\n * - Static markup (the examples) sticks too: `.ui.sticky` is `position: sticky` with or without the element.\n * - Its offsets are the public `--ui-sticky-offset` / `--ui-sticky-bottom-offset`, on the box or above it.\n * - The element writes the private aliases inline instead, from its `offset` / `bottom-offset` attributes.\n * - Public tokens (`--ui-sticky-*`, the theming surface) are NEVER declared here:\n * the token block reads each through a private alias, and every rule reads the alias:\n * `--_ui-sticky-z-index: var(--ui-sticky-z-index, var(--ui-z-sticky))`.\n * So a value set on `:root`, an ancestor, the DOM element, `::part(sticky)` or in the app stylesheet\n * reaches the box (`notes/theming.md` \"Component tokens\").\n */\n\n@layer ui.components.sticky.types, ui.components.sticky.content, ui.components.sticky.variations, ui.components.sticky.states;\n\n/*******************************\n Sticky\n*******************************/\n\n@layer ui.components.sticky.types {\n :host {\n display: contents;\n }\n\n /* Tokens: each the private alias of its public token. */\n .ui.sticky {\n --_ui-sticky-offset: var(--ui-sticky-offset, 0px);\n --_ui-sticky-bottom-offset: var(--ui-sticky-bottom-offset, 0px);\n --_ui-sticky-z-index: var(--ui-sticky-z-index, var(--ui-z-sticky));\n --_ui-sticky-transition: var(--ui-sticky-transition, none);\n position: sticky;\n top: var(--_ui-sticky-offset);\n z-index: var(--_ui-sticky-z-index);\n transition: var(--_ui-sticky-transition);\n }\n}\n\n/*******************************\n Content\n*******************************/\n\n@layer ui.components.sticky.content {\n .sentinel {\n display: block;\n height: 1px;\n margin-block-end: -1px;\n visibility: hidden;\n pointer-events: none;\n }\n .bottom.sentinel {\n margin-block: -1px 0;\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.sticky.variations {\n /* Pushing: sticks to the bottom edge as well. */\n .ui.pushing.sticky {\n bottom: var(--_ui-sticky-bottom-offset);\n }\n}\n","import { isServer, type JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\nimport { stickyVocabulary } from \"./UISticky.en\"\n\nimport stickyCSS from \"./UISticky.css?inline\"\n\n/****************\n * ### `UISticky`\n * The component behind `<ui-sticky>`: content that sticks as the page scrolls,\n * `position: sticky` on `<div class=\"ui … sticky\" part=\"sticky\">`, between two 1px sentinels.\n * It only REPORTS what CSS does (`:state(stuck)`, `ui-stuck` / `ui-unstuck`),\n * through an `IntersectionObserver`: no scroll listener, no JS positioning.\n *\n * - The DOM element is `display: contents`, so the sentinels and the box are children of its PARENT,\n * which is the box's containing block: it sticks within its parent (Fomantic's `context`),\n * whose end pushes it out (`:state(bound)`).\n *\n * - `offset` / `bottom-offset` become `top` / `bottom`\n * (the PRIVATE custom properties `--_ui-sticky-offset` / `--_ui-sticky-bottom-offset`, inline on the box);\n * `pushing` also sticks it to the bottom edge.\n * - Private: the attributes decide them (the observer measures against the same numbers),\n * and an inline public name would block the page's value exactly as a sheet declaration does.\n *\n * - Stuck: the top sentinel (where the box would be) has passed the `offset` line,\n * while the box hasn't been pushed above it;\n * with `pushing`, the bottom sentinel is also below the bottom line.\n * - Measured by `StickyWatch` (shared with `<ui-section sticky>`) on every observer callback,\n * against the nearest scroll container (else the document's viewport).\n *\n * - SIDE EFFECT (`StickyWatch`'s): while stuck, it RESERVES its room on the scroll container (`<html>` for the page).\n * - Inline `scroll-padding-top` (`-bottom` at the bottom edge) is the furthest edge of every box stuck there.\n * - So Page Down / Space, focus and `scrollIntoView()` keep content out from under it.\n * - Chromium and Firefox honour it for paging; Safari only for the rest.\n * - A box taller than half the visible area, or narrower than half its width (`STICKY_MAX_RESERVE`),\n * is a sticky COLUMN (a sidebar), not a header: it reserves nothing, or paging would barely move.\n * - The inline property is the stickies' while any is stuck, removed once none is:\n * a page's own `scroll-padding` belongs in a stylesheet.\n * - A press on a button IN a stuck box focuses it without scrolling (`StickyWatch`'s `onPress()`): the room\n * covers the box itself, so the browser would scroll the page to \"show\" it, and the click would be lost\n * (epic `epic-engine` I189).\n ****************/\nexport class UISticky extends E.UIComponent<StickyVocabulary> {\n @E.proto static vocabulary = stickyVocabulary\n @E.protoMerged static elementSetup = {\n styleSheets: { sticky: stickyCSS },\n // a wrapper: a click on its text must not jump to a link inside\n delegatesFocus: false\n } satisfies Partial<E.ElementSetup>\n\n ////////////////\n // ## Stuck\n ////////////////\n\n /** Edge it's stuck to; `undefined` when not stuck. */\n @E.state accessor stuckEdge: UIT.StickyEdge | undefined = undefined\n\n /** Stuck to an edge. */\n @E.cssState(\"stuck\")\n get isStuck(): boolean {\n return this.stuckEdge !== undefined\n }\n\n /** Pushed out by the end of its container. */\n @E.cssState(\"bound\")\n @E.state\n accessor isBound = false\n\n /**\n * The watcher's report: publish `stuckEdge` / `isBound`, firing `ui-unstuck` then `ui-stuck` on a change.\n * - Above `stickyWatch`, whose initializer reads it.\n */\n private readonly onStickChange = ({ edge, isBound, previous }: E.StickyWatchState) => {\n this.isBound = isBound\n if (edge === previous) return\n this.stuckEdge = edge\n if (previous) {\n const detail: UIT.StickyDetail = { edge: previous }\n this.send(\"ui-unstuck\", detail)\n }\n if (edge) {\n const detail: UIT.StickyDetail = { edge }\n this.send(\"ui-stuck\", detail)\n }\n }\n\n ////////////////\n // ## Watching\n ////////////////\n\n /** Observes the box and reserves its room while stuck. */\n private readonly stickyWatch = new E.StickyWatch(this.onStickChange)\n\n /** Sentinel where the box's top would be. */\n private topSentinel?: HTMLDivElement\n\n /** Sentinel where the box's bottom would be. */\n private bottomSentinel?: HTMLDivElement\n\n /** The sticky box. */\n private box?: HTMLDivElement\n\n /**\n * Observe while connected and drawn (once `isReady`, the sentinels exist),\n * again whenever the offsets or `pushing` change; unstuck once disconnected.\n */\n @E.onChange(\"isConnected\", \"isReady\", \"offset\", \"bottomOffset\", \"pushing\")\n protected onWatchSettingsChanged(isConnected: boolean) {\n if (isConnected) return this.observe()\n this.stickyWatch.reset()\n return undefined\n }\n\n /** Watch the sentinels and the box against the scroll container; returns the undo (the state stays). */\n private observe(): () => void {\n const { topSentinel, bottomSentinel, box } = this\n if (!topSentinel || !bottomSentinel || !box) return () => undefined\n const options: E.StickyWatchOptions = {\n offset: this.offset ?? 0,\n bottomOffset: this.bottomOffset ?? 0,\n pushing: !!this.pushing\n }\n return this.stickyWatch.observe(\n { domElement: this.domElement, top: topSentinel, bottom: bottomSentinel, box },\n options\n )\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n /**\n * The box's inline tokens: top and bottom offsets.\n */\n private get boxStyle(): Record<string, string> {\n return {\n [OFFSET_PROPERTY]: `${this.offset ?? 0}px`,\n [BOTTOM_OFFSET_PROPERTY]: `${this.bottomOffset ?? 0}px`\n }\n }\n\n render(): JSX.Element {\n const box = (\n <div\n ref={(element) => (this.box = element)}\n class={this.rootClass}\n part={this.partForName(\"sticky\")}\n style={this.boxStyle}\n >\n <slot />\n </div>\n )\n // a server render (`spell/ui/static`): the box alone, the root; CSS sticks it, nothing observes\n if (isServer) return box\n return (\n <>\n <div ref={(element) => (this.topSentinel = element)} class={SENTINEL} aria-hidden=\"true\" />\n {box}\n <div ref={(element) => (this.bottomSentinel = element)} class={BOTTOM_SENTINEL} aria-hidden=\"true\" />\n </>\n )\n }\n}\n\n/** The vocabulary's attribute getters, typed (see \"Attributes\" in `UIComponent`). */\nexport interface UISticky extends E.AttributeValues<StickyVocabulary> {}\n\n/** The vocabulary type, for brevity. */\ntype StickyVocabulary = typeof stickyVocabulary\n\n/** The private custom property the box reads for `top` (`offset`), inline: it wins over the public token's alias. */\nconst OFFSET_PROPERTY = \"--_ui-sticky-offset\"\n\n/** The private custom property the box reads for `bottom` (`bottom-offset`), inline. */\nconst BOTTOM_OFFSET_PROPERTY = \"--_ui-sticky-bottom-offset\"\n\n/** Class word of the sentinel where the box's top would be. */\nconst SENTINEL = \"sentinel\"\n\n/** Class words of the sentinel where the box's bottom would be. */\nconst BOTTOM_SENTINEL = \"bottom sentinel\"\n","/**\n * The sticky family: defines `<ui-sticky>` and exports its component, `UISticky`.\n * - SIDE EFFECT: importing it defines the tag.\n * - Also the library's `spell/ui/ui-sticky` entry (its size is in `notes/report.md`).\n */\n\nimport { UISticky } from \"./UISticky\"\n\nUISticky.define()\n\nexport { UISticky }\n"],"mappings":";;;;AAcA,IAAa0B,IAAmB;CAC9B,KAAK;CACL,MAAM;CACN,QAAQ;EAAC;EAAU;EAAc;CAAS;CAC1C,KAAK;EAAC;EAAS;EAAU;EAAgB;CAAe;CACxD,MAAM;CACN,aAAa;CACb,YAAY;EACV;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,SAAS;GACT,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,SAAS;GACT,aAAa;EACf;EACA;GACE,MAAM;GACN,OAAO;GACP,MAAM;GACN,aACE;EACJ;CACF;CACA,QAA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