@mhmo91/schmancy 0.10.36 → 0.10.37

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 (343) hide show
  1. package/custom-elements.json +15 -31
  2. package/dist/SchmancyElement-BHfQg3Tj.cjs +2 -0
  3. package/dist/{SchmancyElement-BBzRWB1w.cjs.map → SchmancyElement-BHfQg3Tj.cjs.map} +1 -1
  4. package/dist/SchmancyElement-CDT2q1lA.js +284 -0
  5. package/dist/{SchmancyElement-C3CpdNsi.js.map → SchmancyElement-CDT2q1lA.js.map} +1 -1
  6. package/dist/agent/schmancy.agent.js +111 -72
  7. package/dist/agent/schmancy.agent.js.map +1 -1
  8. package/dist/agent/schmancy.manifest.json +4 -22
  9. package/dist/{area-BA96mwFY.js → area-KtULlxuA.js} +2 -2
  10. package/dist/{area-BA96mwFY.js.map → area-KtULlxuA.js.map} +1 -1
  11. package/dist/{area-DtyQDdOF.cjs → area-fdKhYB6T.cjs} +1 -1
  12. package/dist/{area-DtyQDdOF.cjs.map → area-fdKhYB6T.cjs.map} +1 -1
  13. package/dist/area.cjs +1 -1
  14. package/dist/area.js +1 -1
  15. package/dist/{audio-B_jT9Xr7.cjs → audio-CUMAv9D_.cjs} +1 -1
  16. package/dist/{audio-B_jT9Xr7.cjs.map → audio-CUMAv9D_.cjs.map} +1 -1
  17. package/dist/{audio-D52h1jAT.js → audio-zIJVTo_V.js} +1 -1
  18. package/dist/{audio-D52h1jAT.js.map → audio-zIJVTo_V.js.map} +1 -1
  19. package/dist/audio.cjs +1 -1
  20. package/dist/audio.js +2 -2
  21. package/dist/{autocomplete-Bts5Jwwr.cjs → autocomplete-DEZk6wBD.cjs} +1 -1
  22. package/dist/{autocomplete-Bts5Jwwr.cjs.map → autocomplete-DEZk6wBD.cjs.map} +1 -1
  23. package/dist/{autocomplete-CI4QJXAN.js → autocomplete-DIScyo8Q.js} +3 -3
  24. package/dist/{autocomplete-CI4QJXAN.js.map → autocomplete-DIScyo8Q.js.map} +1 -1
  25. package/dist/autocomplete.cjs +1 -1
  26. package/dist/autocomplete.js +1 -1
  27. package/dist/avatar.cjs +1 -1
  28. package/dist/avatar.js +3 -3
  29. package/dist/badge.cjs +1 -1
  30. package/dist/badge.js +1 -1
  31. package/dist/{boat-_N1x5U_3.js → boat-BHPqSqJd.js} +4 -4
  32. package/dist/{boat-_N1x5U_3.js.map → boat-BHPqSqJd.js.map} +1 -1
  33. package/dist/{boat-I4B1UNMc.cjs → boat-OBZ77exO.cjs} +1 -1
  34. package/dist/{boat-I4B1UNMc.cjs.map → boat-OBZ77exO.cjs.map} +1 -1
  35. package/dist/boat.cjs +1 -1
  36. package/dist/boat.js +1 -1
  37. package/dist/breadcrumb.cjs +1 -1
  38. package/dist/breadcrumb.js +2 -2
  39. package/dist/{busy-BIUonyPk.cjs → busy-BJNsKSCM.cjs} +1 -1
  40. package/dist/{busy-BIUonyPk.cjs.map → busy-BJNsKSCM.cjs.map} +1 -1
  41. package/dist/{busy-CCB3qKnh.js → busy-Dut78y4L.js} +2 -2
  42. package/dist/{busy-CCB3qKnh.js.map → busy-Dut78y4L.js.map} +1 -1
  43. package/dist/busy.cjs +1 -1
  44. package/dist/busy.js +1 -1
  45. package/dist/{button-CkwQH-g3.cjs → button-DzlHLjWO.cjs} +1 -1
  46. package/dist/{button-CkwQH-g3.cjs.map → button-DzlHLjWO.cjs.map} +1 -1
  47. package/dist/{button-C89bPnHt.js → button-kcpPQavY.js} +2 -2
  48. package/dist/{button-C89bPnHt.js.map → button-kcpPQavY.js.map} +1 -1
  49. package/dist/button.cjs +1 -1
  50. package/dist/button.js +3 -3
  51. package/dist/{card-BO93_oxQ.cjs → card-BLxPLqdQ.cjs} +1 -1
  52. package/dist/{card-BO93_oxQ.cjs.map → card-BLxPLqdQ.cjs.map} +1 -1
  53. package/dist/{card-CFsCgJKZ.js → card-DxSKxCid.js} +2 -2
  54. package/dist/{card-CFsCgJKZ.js.map → card-DxSKxCid.js.map} +1 -1
  55. package/dist/card.cjs +1 -1
  56. package/dist/card.js +1 -1
  57. package/dist/{checkbox-Bh7q0djq.js → checkbox-B1wiM3Dv.js} +2 -2
  58. package/dist/{checkbox-Bh7q0djq.js.map → checkbox-B1wiM3Dv.js.map} +1 -1
  59. package/dist/{checkbox-CFUBUFtW.cjs → checkbox-BCLkhp5G.cjs} +1 -1
  60. package/dist/{checkbox-CFUBUFtW.cjs.map → checkbox-BCLkhp5G.cjs.map} +1 -1
  61. package/dist/checkbox.cjs +1 -1
  62. package/dist/checkbox.js +1 -1
  63. package/dist/{chips-BfzpsyV1.cjs → chips-C9dS1WKn.cjs} +1 -1
  64. package/dist/{chips-BfzpsyV1.cjs.map → chips-C9dS1WKn.cjs.map} +1 -1
  65. package/dist/{chips-6YaoRmeG.js → chips-vWmwqQed.js} +4 -4
  66. package/dist/{chips-6YaoRmeG.js.map → chips-vWmwqQed.js.map} +1 -1
  67. package/dist/chips.cjs +1 -1
  68. package/dist/chips.js +2 -2
  69. package/dist/connectivity.cjs +1 -1
  70. package/dist/connectivity.js +3 -3
  71. package/dist/content-drawer.cjs +1 -1
  72. package/dist/content-drawer.js +1 -1
  73. package/dist/{date-range-N-A249O9.cjs → date-range-BV6HuvLw.cjs} +1 -1
  74. package/dist/{date-range-N-A249O9.cjs.map → date-range-BV6HuvLw.cjs.map} +1 -1
  75. package/dist/{date-range-CEo_Kjqw.js → date-range-D3ge1b4c.js} +3 -3
  76. package/dist/{date-range-CEo_Kjqw.js.map → date-range-D3ge1b4c.js.map} +1 -1
  77. package/dist/{date-range-inline-DFopysWF.cjs → date-range-inline-DpYgdLRv.cjs} +1 -1
  78. package/dist/{date-range-inline-DFopysWF.cjs.map → date-range-inline-DpYgdLRv.cjs.map} +1 -1
  79. package/dist/{date-range-inline-BwialV9j.js → date-range-inline-DuWQaWps.js} +2 -2
  80. package/dist/{date-range-inline-BwialV9j.js.map → date-range-inline-DuWQaWps.js.map} +1 -1
  81. package/dist/date-range-inline.cjs +1 -1
  82. package/dist/date-range-inline.js +1 -1
  83. package/dist/date-range.cjs +1 -1
  84. package/dist/date-range.js +1 -1
  85. package/dist/delay.cjs +1 -1
  86. package/dist/delay.js +2 -2
  87. package/dist/{details-GtpfI2hA.js → details-C-GZaq3j.js} +2 -2
  88. package/dist/{details-GtpfI2hA.js.map → details-C-GZaq3j.js.map} +1 -1
  89. package/dist/{details-BLRPV8sY.cjs → details-Dp5rLIWk.cjs} +1 -1
  90. package/dist/{details-BLRPV8sY.cjs.map → details-Dp5rLIWk.cjs.map} +1 -1
  91. package/dist/details.cjs +1 -1
  92. package/dist/details.js +1 -1
  93. package/dist/{directives-CvYGSW_a.cjs → directives-D_l1E5H6.cjs} +2 -2
  94. package/dist/{directives-CvYGSW_a.cjs.map → directives-D_l1E5H6.cjs.map} +1 -1
  95. package/dist/{directives-C2dXgpCY.js → directives-DyS51FUh.js} +27 -18
  96. package/dist/{directives-C2dXgpCY.js.map → directives-DyS51FUh.js.map} +1 -1
  97. package/dist/directives.cjs +1 -1
  98. package/dist/directives.js +2 -2
  99. package/dist/{divider-rNsWCvMi.cjs → divider-CBnAmHMZ.cjs} +1 -1
  100. package/dist/{divider-rNsWCvMi.cjs.map → divider-CBnAmHMZ.cjs.map} +1 -1
  101. package/dist/{divider-D0pGX2VB.js → divider-nQffE0AD.js} +2 -2
  102. package/dist/{divider-D0pGX2VB.js.map → divider-nQffE0AD.js.map} +1 -1
  103. package/dist/divider.cjs +1 -1
  104. package/dist/divider.js +1 -1
  105. package/dist/dropdown.cjs +1 -1
  106. package/dist/dropdown.js +2 -2
  107. package/dist/{expand-FcKAzJta.js → expand-DvTb-UPR.js} +3 -3
  108. package/dist/{expand-FcKAzJta.js.map → expand-DvTb-UPR.js.map} +1 -1
  109. package/dist/{expand-tffQHGbZ.cjs → expand-mlP_3XWz.cjs} +1 -1
  110. package/dist/{expand-tffQHGbZ.cjs.map → expand-mlP_3XWz.cjs.map} +1 -1
  111. package/dist/expand.cjs +1 -1
  112. package/dist/expand.js +1 -1
  113. package/dist/fab.cjs +1 -1
  114. package/dist/fab.js +2 -2
  115. package/dist/{float-CQ1WEp3M.js → float-C-Ko0Le3.js} +2 -2
  116. package/dist/{float-CQ1WEp3M.js.map → float-C-Ko0Le3.js.map} +1 -1
  117. package/dist/{float-CDjgxWyy.cjs → float-C17xgMT1.cjs} +1 -1
  118. package/dist/{float-CDjgxWyy.cjs.map → float-C17xgMT1.cjs.map} +1 -1
  119. package/dist/float.cjs +1 -1
  120. package/dist/float.js +1 -1
  121. package/dist/{form-VYhbbir3.cjs → form-CwPHcQYB.cjs} +1 -1
  122. package/dist/{form-VYhbbir3.cjs.map → form-CwPHcQYB.cjs.map} +1 -1
  123. package/dist/{form-H24puioV.js → form-DA0hUu2h.js} +3 -3
  124. package/dist/{form-H24puioV.js.map → form-DA0hUu2h.js.map} +1 -1
  125. package/dist/form.cjs +1 -1
  126. package/dist/form.js +12 -12
  127. package/dist/handover/agent-runtime-followups.md +1 -1
  128. package/dist/handover/agent-runtime-v1.md +3 -3
  129. package/dist/{icons-DBxfN91B.js → icons-C6UfxmHZ.js} +2 -2
  130. package/dist/{icons-DBxfN91B.js.map → icons-C6UfxmHZ.js.map} +1 -1
  131. package/dist/{icons-B_a1HStW.cjs → icons-CW3-oMSb.cjs} +1 -1
  132. package/dist/{icons-B_a1HStW.cjs.map → icons-CW3-oMSb.cjs.map} +1 -1
  133. package/dist/icons.cjs +1 -1
  134. package/dist/icons.js +1 -1
  135. package/dist/{iframe-BDVElN8z.js → iframe-BTjZfYyh.js} +2 -2
  136. package/dist/{iframe-BDVElN8z.js.map → iframe-BTjZfYyh.js.map} +1 -1
  137. package/dist/{iframe-CG-z9qev.cjs → iframe-wuYT2xFz.cjs} +1 -1
  138. package/dist/{iframe-CG-z9qev.cjs.map → iframe-wuYT2xFz.cjs.map} +1 -1
  139. package/dist/iframe.cjs +1 -1
  140. package/dist/iframe.js +1 -1
  141. package/dist/index.cjs +1 -1
  142. package/dist/index.js +36 -36
  143. package/dist/{input-Bt_o4sYo.js → input-B_4g2ulO.js} +2 -2
  144. package/dist/{input-Bt_o4sYo.js.map → input-B_4g2ulO.js.map} +1 -1
  145. package/dist/{input-B14Nn6xD.cjs → input-BrDiIT60.cjs} +1 -1
  146. package/dist/{input-B14Nn6xD.cjs.map → input-BrDiIT60.cjs.map} +1 -1
  147. package/dist/{input-chip-ugYu9Fn9.cjs → input-chip-B-XWh4aE.cjs} +1 -1
  148. package/dist/{input-chip-ugYu9Fn9.cjs.map → input-chip-B-XWh4aE.cjs.map} +1 -1
  149. package/dist/{input-chip-DEqO0DXc.js → input-chip-BlWhOruv.js} +2 -2
  150. package/dist/{input-chip-DEqO0DXc.js.map → input-chip-BlWhOruv.js.map} +1 -1
  151. package/dist/input.cjs +1 -1
  152. package/dist/input.js +1 -1
  153. package/dist/json.cjs +1 -1
  154. package/dist/json.js +3 -3
  155. package/dist/kbd.cjs +1 -1
  156. package/dist/kbd.js +2 -2
  157. package/dist/{layout-DF9ZaQ-b.cjs → layout-BhyIcEVu.cjs} +1 -1
  158. package/dist/{layout-DF9ZaQ-b.cjs.map → layout-BhyIcEVu.cjs.map} +1 -1
  159. package/dist/{layout-BJ_43VrH.js → layout-Dxit9enO.js} +1 -1
  160. package/dist/{layout-BJ_43VrH.js.map → layout-Dxit9enO.js.map} +1 -1
  161. package/dist/layout.cjs +1 -1
  162. package/dist/layout.js +2 -2
  163. package/dist/{lightbox-B47Zoqv-.cjs → lightbox-CVBogswK.cjs} +1 -1
  164. package/dist/{lightbox-B47Zoqv-.cjs.map → lightbox-CVBogswK.cjs.map} +1 -1
  165. package/dist/{lightbox-ZmuoBBFT.js → lightbox-D85XAAuC.js} +2 -2
  166. package/dist/{lightbox-ZmuoBBFT.js.map → lightbox-D85XAAuC.js.map} +1 -1
  167. package/dist/lightbox.cjs +1 -1
  168. package/dist/lightbox.js +1 -1
  169. package/dist/{list-C47xzld_.js → list-DOF_yVn5.js} +2 -2
  170. package/dist/{list-C47xzld_.js.map → list-DOF_yVn5.js.map} +1 -1
  171. package/dist/{list-CaSWrlG2.cjs → list-nVjLskgx.cjs} +1 -1
  172. package/dist/{list-CaSWrlG2.cjs.map → list-nVjLskgx.cjs.map} +1 -1
  173. package/dist/list.cjs +1 -1
  174. package/dist/list.js +1 -1
  175. package/dist/{menu-Jpsy85SX.cjs → menu-DqmNjLgY.cjs} +1 -1
  176. package/dist/{menu-Jpsy85SX.cjs.map → menu-DqmNjLgY.cjs.map} +1 -1
  177. package/dist/{menu-8RObM6Ie.js → menu-QrAK5Uu9.js} +3 -3
  178. package/dist/{menu-8RObM6Ie.js.map → menu-QrAK5Uu9.js.map} +1 -1
  179. package/dist/menu.cjs +1 -1
  180. package/dist/menu.js +1 -1
  181. package/dist/{mixins-DTzfFVyv.js → mixins-De1zjyhy.js} +1 -1
  182. package/dist/{mixins-DTzfFVyv.js.map → mixins-De1zjyhy.js.map} +1 -1
  183. package/dist/{mixins-DPdzC9ZH.cjs → mixins-DxHpyMHA.cjs} +1 -1
  184. package/dist/{mixins-DPdzC9ZH.cjs.map → mixins-DxHpyMHA.cjs.map} +1 -1
  185. package/dist/mixins.cjs +1 -1
  186. package/dist/mixins.js +2 -2
  187. package/dist/nav-drawer.cjs +1 -1
  188. package/dist/nav-drawer.js +1 -1
  189. package/dist/navigation-bar.cjs +1 -1
  190. package/dist/navigation-bar.js +1 -1
  191. package/dist/navigation-rail.cjs +1 -1
  192. package/dist/navigation-rail.js +2 -2
  193. package/dist/{notification-Ccktcj9H.js → notification-BtAK7NK8.js} +4 -4
  194. package/dist/{notification-Ccktcj9H.js.map → notification-BtAK7NK8.js.map} +1 -1
  195. package/dist/{notification-DSkB-sn0.cjs → notification-DYzbUb5C.cjs} +1 -1
  196. package/dist/{notification-DSkB-sn0.cjs.map → notification-DYzbUb5C.cjs.map} +1 -1
  197. package/dist/notification.cjs +1 -1
  198. package/dist/notification.js +1 -1
  199. package/dist/{option-CkMxwBqU.js → option-DHwA0miA.js} +2 -2
  200. package/dist/{option-CkMxwBqU.js.map → option-DHwA0miA.js.map} +1 -1
  201. package/dist/{option-0aNiVB3Q.cjs → option-DnSPa8ro.cjs} +1 -1
  202. package/dist/{option-0aNiVB3Q.cjs.map → option-DnSPa8ro.cjs.map} +1 -1
  203. package/dist/option.cjs +1 -1
  204. package/dist/option.js +1 -1
  205. package/dist/{overlay-BS-ta-zq.cjs → overlay-BVkqZmoS.cjs} +1 -1
  206. package/dist/{overlay-BS-ta-zq.cjs.map → overlay-BVkqZmoS.cjs.map} +1 -1
  207. package/dist/{overlay-H3Wt_dgQ.js → overlay-Del1sBEB.js} +5 -5
  208. package/dist/{overlay-H3Wt_dgQ.js.map → overlay-Del1sBEB.js.map} +1 -1
  209. package/dist/overlay.cjs +1 -1
  210. package/dist/{overlay.confirm-body-CR9xaqOE.cjs → overlay.confirm-body-BV9umTAl.cjs} +1 -1
  211. package/dist/{overlay.confirm-body-CR9xaqOE.cjs.map → overlay.confirm-body-BV9umTAl.cjs.map} +1 -1
  212. package/dist/{overlay.confirm-body-Dxn_wNm3.js → overlay.confirm-body-DSONXUzl.js} +6 -6
  213. package/dist/{overlay.confirm-body-Dxn_wNm3.js.map → overlay.confirm-body-DSONXUzl.js.map} +1 -1
  214. package/dist/overlay.js +3 -3
  215. package/dist/{overlay.service-C46kOtUi.js → overlay.service-BTp5Oq7f.js} +2 -2
  216. package/dist/{overlay.service-C46kOtUi.js.map → overlay.service-BTp5Oq7f.js.map} +1 -1
  217. package/dist/{overlay.service-DEj3rfRr.cjs → overlay.service-XLlrsSdA.cjs} +1 -1
  218. package/dist/{overlay.service-DEj3rfRr.cjs.map → overlay.service-XLlrsSdA.cjs.map} +1 -1
  219. package/dist/{progress-zs18GR6C.cjs → progress-DUbTL9g9.cjs} +1 -1
  220. package/dist/{progress-zs18GR6C.cjs.map → progress-DUbTL9g9.cjs.map} +1 -1
  221. package/dist/{progress-BK7gSq8j.js → progress-DYA83CFU.js} +2 -2
  222. package/dist/{progress-BK7gSq8j.js.map → progress-DYA83CFU.js.map} +1 -1
  223. package/dist/progress.cjs +1 -1
  224. package/dist/progress.js +1 -1
  225. package/dist/{radio-group-DbYlyPc-.cjs → radio-group-B-ORNtvR.cjs} +1 -1
  226. package/dist/{radio-group-DbYlyPc-.cjs.map → radio-group-B-ORNtvR.cjs.map} +1 -1
  227. package/dist/{radio-group-1HCpzRUB.js → radio-group-DxX0iJBo.js} +2 -2
  228. package/dist/{radio-group-1HCpzRUB.js.map → radio-group-DxX0iJBo.js.map} +1 -1
  229. package/dist/radio-group.cjs +1 -1
  230. package/dist/radio-group.js +1 -1
  231. package/dist/range.cjs +1 -1
  232. package/dist/range.js +2 -2
  233. package/dist/{select-B-SSmUDe.cjs → select-B9uj_u-s.cjs} +1 -1
  234. package/dist/{select-B-SSmUDe.cjs.map → select-B9uj_u-s.cjs.map} +1 -1
  235. package/dist/{select-CEyhNtZ2.js → select-C7gkA-ab.js} +3 -3
  236. package/dist/{select-CEyhNtZ2.js.map → select-C7gkA-ab.js.map} +1 -1
  237. package/dist/select.cjs +1 -1
  238. package/dist/select.js +1 -1
  239. package/dist/skeleton.cjs +1 -1
  240. package/dist/skeleton.js +2 -2
  241. package/dist/skills/SKILL.md +14 -11
  242. package/dist/skills/schmancy/SKILL.md +14 -11
  243. package/dist/skills/schmancy/steps.md +68 -34
  244. package/dist/skills/steps.md +68 -34
  245. package/dist/slider.cjs +1 -1
  246. package/dist/slider.js +2 -2
  247. package/dist/{sound.service-G_8GV_6L.cjs → sound.service-C7FDY_yD.cjs} +1 -1
  248. package/dist/{sound.service-G_8GV_6L.cjs.map → sound.service-C7FDY_yD.cjs.map} +1 -1
  249. package/dist/{sound.service-DO4SmUUT.js → sound.service-O0232os6.js} +1 -1
  250. package/dist/{sound.service-DO4SmUUT.js.map → sound.service-O0232os6.js.map} +1 -1
  251. package/dist/{splash-screen-cbz4bxjB.cjs → splash-screen-DIS4odDr.cjs} +1 -1
  252. package/dist/{splash-screen-cbz4bxjB.cjs.map → splash-screen-DIS4odDr.cjs.map} +1 -1
  253. package/dist/{splash-screen-B1mM4_xz.js → splash-screen-jfE47xl0.js} +2 -2
  254. package/dist/{splash-screen-B1mM4_xz.js.map → splash-screen-jfE47xl0.js.map} +1 -1
  255. package/dist/splash-screen.cjs +1 -1
  256. package/dist/splash-screen.js +1 -1
  257. package/dist/{src-tncsWsTY.js → src-BP3h-9d9.js} +35 -35
  258. package/dist/{src-tncsWsTY.js.map → src-BP3h-9d9.js.map} +1 -1
  259. package/dist/{src-czeiuT1m.cjs → src-Um_pzb-U.cjs} +1 -1
  260. package/dist/{src-czeiuT1m.cjs.map → src-Um_pzb-U.cjs.map} +1 -1
  261. package/dist/{state-Cx0aoL5e.cjs → state-Bj0M9a6T.cjs} +1 -1
  262. package/dist/{state-Cx0aoL5e.cjs.map → state-Bj0M9a6T.cjs.map} +1 -1
  263. package/dist/{state-DJDp3N7J.js → state-DscWQpoM.js} +1 -1
  264. package/dist/{state-DJDp3N7J.js.map → state-DscWQpoM.js.map} +1 -1
  265. package/dist/state.cjs +1 -1
  266. package/dist/state.js +2 -2
  267. package/dist/steps.cjs +35 -19
  268. package/dist/steps.cjs.map +1 -1
  269. package/dist/steps.js +96 -73
  270. package/dist/steps.js.map +1 -1
  271. package/dist/{surface-CYBl8_a3.js → surface-B4Wn4SOO.js} +2 -2
  272. package/dist/{surface-CYBl8_a3.js.map → surface-B4Wn4SOO.js.map} +1 -1
  273. package/dist/{surface-C3cxTcJD.cjs → surface-DRq6cVW6.cjs} +1 -1
  274. package/dist/{surface-C3cxTcJD.cjs.map → surface-DRq6cVW6.cjs.map} +1 -1
  275. package/dist/surface.cjs +1 -1
  276. package/dist/surface.js +1 -1
  277. package/dist/switch.cjs +1 -1
  278. package/dist/switch.js +2 -2
  279. package/dist/table.cjs +1 -1
  280. package/dist/table.js +2 -2
  281. package/dist/{tabs-ORQ_Zd43.cjs → tabs-Ca_fbHPW.cjs} +1 -1
  282. package/dist/{tabs-ORQ_Zd43.cjs.map → tabs-Ca_fbHPW.cjs.map} +1 -1
  283. package/dist/{tabs-DHy93Q3N.js → tabs-CnQPo-XS.js} +2 -2
  284. package/dist/{tabs-DHy93Q3N.js.map → tabs-CnQPo-XS.js.map} +1 -1
  285. package/dist/tabs.cjs +1 -1
  286. package/dist/tabs.js +1 -1
  287. package/dist/teleport.cjs +1 -1
  288. package/dist/teleport.js +1 -1
  289. package/dist/{textarea-DHIMt-ly.js → textarea-BvqENhTW.js} +2 -2
  290. package/dist/{textarea-DHIMt-ly.js.map → textarea-BvqENhTW.js.map} +1 -1
  291. package/dist/{textarea-CEUaDURR.cjs → textarea-qr7oL8oU.cjs} +1 -1
  292. package/dist/{textarea-CEUaDURR.cjs.map → textarea-qr7oL8oU.cjs.map} +1 -1
  293. package/dist/textarea.cjs +1 -1
  294. package/dist/textarea.js +1 -1
  295. package/dist/{theme-CJpjkqHr.cjs → theme-BSwJ2YZo.cjs} +1 -1
  296. package/dist/{theme-CJpjkqHr.cjs.map → theme-BSwJ2YZo.cjs.map} +1 -1
  297. package/dist/{theme-CgI9PRco.js → theme-BV0EzHQ1.js} +5 -5
  298. package/dist/{theme-CgI9PRco.js.map → theme-BV0EzHQ1.js.map} +1 -1
  299. package/dist/{theme-button--FuBkuVr.cjs → theme-button-C6fpUzPM.cjs} +1 -1
  300. package/dist/{theme-button--FuBkuVr.cjs.map → theme-button-C6fpUzPM.cjs.map} +1 -1
  301. package/dist/{theme-button-D-FXb3oO.js → theme-button-O_xNCgI7.js} +2 -2
  302. package/dist/{theme-button-D-FXb3oO.js.map → theme-button-O_xNCgI7.js.map} +1 -1
  303. package/dist/theme-button.cjs +1 -1
  304. package/dist/theme-button.js +1 -1
  305. package/dist/theme.cjs +1 -1
  306. package/dist/theme.js +3 -3
  307. package/dist/{theme.service-BfTK1Wtl.js → theme.service-DwLhhOmP.js} +1 -1
  308. package/dist/{theme.service-BfTK1Wtl.js.map → theme.service-DwLhhOmP.js.map} +1 -1
  309. package/dist/{theme.service-Dg7LO0Qz.cjs → theme.service-kn9MC025.cjs} +1 -1
  310. package/dist/{theme.service-Dg7LO0Qz.cjs.map → theme.service-kn9MC025.cjs.map} +1 -1
  311. package/dist/tree.cjs +1 -1
  312. package/dist/tree.js +2 -2
  313. package/dist/{typography-BEGLfHwz.js → typography-Dtdooaic.js} +2 -2
  314. package/dist/{typography-BEGLfHwz.js.map → typography-Dtdooaic.js.map} +1 -1
  315. package/dist/{typography-CxA3sx9B.cjs → typography-opFYuUYS.cjs} +1 -1
  316. package/dist/{typography-CxA3sx9B.cjs.map → typography-opFYuUYS.cjs.map} +1 -1
  317. package/dist/typography.cjs +1 -1
  318. package/dist/typography.js +1 -1
  319. package/dist/visually-hidden.cjs +1 -1
  320. package/dist/visually-hidden.js +2 -2
  321. package/dist/{window-Vl1u1-EG.cjs → window-BSAemI9J.cjs} +1 -1
  322. package/dist/{window-Vl1u1-EG.cjs.map → window-BSAemI9J.cjs.map} +1 -1
  323. package/dist/{window-B_n4P9az.js → window-ConcHirJ.js} +3 -3
  324. package/dist/{window-B_n4P9az.js.map → window-ConcHirJ.js.map} +1 -1
  325. package/dist/window.cjs +1 -1
  326. package/dist/window.js +1 -1
  327. package/package.json +1 -1
  328. package/skills/schmancy/SKILL.md +14 -11
  329. package/skills/schmancy/steps.md +68 -34
  330. package/src/directives/reveal.ts +192 -118
  331. package/src/steps/index.ts +1 -1
  332. package/src/steps/schmancy-step.ts +91 -65
  333. package/src/steps/{schmancy-steps-container.ts → schmancy-steps.ts} +18 -38
  334. package/src/steps/steps.context.ts +5 -4
  335. package/src/steps/steps.test.ts +120 -0
  336. package/types/src/directives/reveal.d.ts +15 -5
  337. package/types/src/steps/index.d.ts +1 -1
  338. package/types/src/steps/schmancy-step.d.ts +8 -23
  339. package/types/src/steps/{schmancy-steps-container.d.ts → schmancy-steps.d.ts} +8 -9
  340. package/types/src/steps/steps.context.d.ts +2 -1
  341. package/types/src/steps/steps.test.d.ts +2 -0
  342. package/dist/SchmancyElement-BBzRWB1w.cjs +0 -2
  343. package/dist/SchmancyElement-C3CpdNsi.js +0 -284
@@ -1,17 +1,16 @@
1
1
  import { consume } from '@lit/context'
2
+ import { SchmancyElement } from '@mixins/index'
2
3
  import { css, html } from 'lit'
3
- import { customElement, property, state } from 'lit/decorators.js'
4
+ import { customElement, property, queryAssignedNodes, state } from 'lit/decorators.js'
4
5
  import { when } from 'lit/directives/when.js'
5
- import { Subscription } from 'rxjs'
6
- import { stepsContext, StepsController } from './steps.context'
7
- import { SchmancyElement } from '@mixins/index'
6
+ import { takeUntil } from 'rxjs/operators'
7
+ import { StepsController, stepsContext } from './steps.context'
8
8
 
9
9
  @customElement('schmancy-step')
10
10
  export class SchmancyStep extends SchmancyElement {
11
11
  static styles = [css`
12
12
  :host {
13
- display: grid;
14
- /* Base display is just grid, flex properties will be applied dynamically */
13
+ display: block;
15
14
  transition: all 0.2s ease-in-out;
16
15
  }
17
16
  `]
@@ -23,18 +22,11 @@ export class SchmancyStep extends SchmancyElement {
23
22
  */
24
23
  @property({ type: Number }) position = 1
25
24
 
26
- @property({ type: String }) title = ''
25
+ @property({ type: String }) label = ''
27
26
  @property({ type: String }) description = ''
28
27
 
29
- // NEW: Allow a step to be explicitly marked as complete.
30
28
  @property({ type: Boolean, reflect: true }) completed = false
31
29
 
32
- /**
33
- * NEW: Lock API to disable users from going back.
34
- * When set to true, clicking on a previous (completed) step is ignored.
35
- */
36
- @property({ type: Boolean }) lockBack = false
37
-
38
30
  /**
39
31
  * Consume the shared StepsController from context.
40
32
  */
@@ -47,80 +39,71 @@ export class SchmancyStep extends SchmancyElement {
47
39
  @state()
48
40
  private currentStep = 1
49
41
 
50
- /**
51
- * Keep a reference to our subscription so we can unsubscribe cleanly.
52
- */
53
- private subscription?: Subscription
42
+ @state()
43
+ private hasContent = false
44
+
45
+ @queryAssignedNodes({ flatten: true })
46
+ private assignedNodes!: Node[]
54
47
 
55
48
  connectedCallback() {
56
49
  super.connectedCallback()
50
+ this.steps.currentStep$
51
+ .pipe(takeUntil(this.disconnecting))
52
+ .subscribe(step => {
53
+ this.currentStep = step
54
+ this.updateFlexProperties()
55
+ })
57
56
  }
58
57
 
59
58
  firstUpdated() {
60
- // Subscribe to updates from the container's StepsController.
61
- // Context is guaranteed to be available after first render
62
- this.subscription = this.steps.currentStep$.subscribe(step => {
63
- this.currentStep = step
64
- // When the current step changes, update the flex properties
65
- this.updateFlexProperties()
66
- })
67
- // Initial update of flex properties
68
59
  this.updateFlexProperties()
69
60
  }
70
61
 
71
- disconnectedCallback(): void {
72
- this.subscription?.unsubscribe()
73
- super.disconnectedCallback()
62
+ private onSlotChange() {
63
+ this.hasContent = this.assignedNodes.some(
64
+ n => n.nodeType === Node.ELEMENT_NODE || (n.nodeType === Node.TEXT_NODE && n.textContent?.trim() !== ''),
65
+ )
66
+ this.updateFlexProperties()
74
67
  }
75
68
 
76
- /**
77
- * Update the host element's flex properties based on active state
78
- */
79
69
  private updateFlexProperties() {
80
70
  const isActive = this.position === this.currentStep
81
-
82
- if (isActive) {
83
- // Apply flex-grow when active
84
- this.style.flex = '1 1 auto'
85
- } else {
86
- // Make it shrink when not active
87
- this.style.flex = '0 0 auto'
88
- }
71
+ this.style.flex = isActive && this.hasContent ? '1 1 auto' : '0 0 auto'
89
72
  }
90
73
 
91
- /**
92
- * Compute visual status for styling purposes. Note that if a step is explicitly
93
- * marked as completed, it always appears as complete even if it's active.
94
- */
95
74
  get status(): 'complete' | 'current' | 'upcoming' {
96
75
  if (this.completed || this.position < this.currentStep) return 'complete'
97
76
  if (this.position === this.currentStep) return 'current'
98
77
  return 'upcoming'
99
78
  }
100
79
 
101
- /**
102
- * Click handler to allow navigation between completed (or active) steps.
103
- * With lockBack enabled, clicking on a previous step is ignored.
104
- */
105
- private _onStepClick(_e: Event) {
106
- // If lockBack is enabled and the user attempts to go back, do nothing.
107
- if (this.lockBack && this.position < this.currentStep) {
108
- return
109
- }
80
+ private onStepClick() {
81
+ if (this.steps.lockBack && this.position < this.currentStep) return
110
82
  if (this.status !== 'upcoming') {
111
83
  this.steps.setStep(this.position)
112
84
  }
113
85
  }
114
86
 
87
+ private onStepKeydown(e: KeyboardEvent) {
88
+ if (e.key === 'Enter' || e.key === ' ') {
89
+ e.preventDefault()
90
+ this.onStepClick()
91
+ }
92
+ }
93
+
115
94
  render() {
116
- // Determine if the step is currently active.
117
95
  const isActive = this.position === this.currentStep
118
-
119
- // Use computed status for visual styling.
120
96
  const isComplete = this.status === 'complete'
121
97
  const isUpcoming = this.status === 'upcoming'
98
+ const navigable = !isUpcoming && !(this.steps.lockBack && this.position < this.currentStep)
122
99
 
123
- // Enhanced styling classes with better visual hierarchy
100
+ if (this.hasContent) {
101
+ return this.renderContentRow(isActive, isComplete, isUpcoming, navigable)
102
+ }
103
+ return this.renderRailRow(isActive, isComplete, isUpcoming, navigable)
104
+ }
105
+
106
+ private renderContentRow(isActive: boolean, isComplete: boolean, isUpcoming: boolean, navigable: boolean) {
124
107
  const connectorClasses = {
125
108
  'bg-tertiary-default': isComplete,
126
109
  'bg-outlineVariant': !isComplete,
@@ -139,22 +122,19 @@ export class SchmancyStep extends SchmancyElement {
139
122
  'text-surface-onVariant': isUpcoming,
140
123
  }
141
124
 
142
- // If the step is clickable (active or complete), add a pointer cursor.
143
- const clickableClass = isActive || isComplete ? 'cursor-pointer' : ''
125
+ const clickableClass = navigable ? 'cursor-pointer' : ''
144
126
 
145
127
  return html`
146
128
  <li class="relative">
147
- <!-- Connector line - responsive positioning -->
148
129
  <div
149
130
  class="absolute top-8 left-3 sm:left-4 -ml-px w-0.5 transition-colors duration-200 ${this.classMap(connectorClasses)}"
150
131
  style="height: calc(100% + var(--steps-gap, 0px))"
151
132
  aria-hidden="true"
152
133
  ></div>
153
134
 
154
- <!-- Step Button/Label - adjusted padding for mobile -->
155
135
  <button
156
136
  type="button"
157
- @click=${this._onStepClick}
137
+ @click=${this.onStepClick}
158
138
  class="relative flex items-center group transition-all duration-200 hover:scale-[1.02] ${clickableClass} ${isActive ? 'bg-primary-container/20 -mx-1 sm:-mx-2 px-1 sm:px-2 py-2 sm:py-3 rounded-lg' : 'py-1 sm:py-2'}"
159
139
  >
160
140
  <span class="flex items-center h-10 sm:h-12">
@@ -181,7 +161,7 @@ export class SchmancyStep extends SchmancyElement {
181
161
 
182
162
  <span class="flex flex-col items-start justify-center min-w-0 ml-3 sm:ml-6">
183
163
  <schmancy-typography type="title" token="md">
184
- <span class="transition-colors duration-200 ${this.classMap(textClasses)}">${this.title}</span>
164
+ <span class="transition-colors duration-200 ${this.classMap(textClasses)}">${this.label}</span>
185
165
  </schmancy-typography>
186
166
  ${when(
187
167
  this.description,
@@ -194,18 +174,64 @@ export class SchmancyStep extends SchmancyElement {
194
174
  </span>
195
175
  </button>
196
176
 
197
- <!-- Render step content if the step is active - responsive spacing -->
198
177
  ${when(
199
178
  isActive,
200
179
  () => html`
201
180
  <div class="ml-6 sm:ml-10 mt-3 sm:mt-4 pb-6 sm:pb-8 transition-all duration-300 ease-out">
202
- <slot></slot>
181
+ <slot @slotchange=${this.onSlotChange}></slot>
203
182
  </div>
204
183
  `,
205
184
  )}
185
+ ${when(!isActive, () => html`<slot @slotchange=${this.onSlotChange} style="display:none"></slot>`)}
206
186
  </li>
207
187
  `
208
188
  }
189
+
190
+ private renderRailRow(isActive: boolean, isComplete: boolean, _isUpcoming: boolean, navigable: boolean) {
191
+ const isLast = !this.nextElementSibling?.matches('schmancy-step')
192
+ const labelClass = isActive
193
+ ? 'text-primary-default'
194
+ : isComplete
195
+ ? 'text-surface-on'
196
+ : 'text-surface-on-variant'
197
+
198
+ const dotClass = [
199
+ 'relative z-10 w-3 h-3 rounded-full shrink-0 transition-colors duration-300',
200
+ isComplete || isActive ? 'bg-primary-default' : 'bg-outline',
201
+ isActive ? 'ring-2 ring-offset-2 ring-offset-surface-containerLow ring-primary-default' : '',
202
+ ].join(' ')
203
+
204
+ return html`
205
+ <div
206
+ class="relative flex items-center gap-4 rounded-lg -mx-2 px-2 py-3 transition-colors duration-200 ${
207
+ navigable
208
+ ? 'cursor-pointer hover:bg-primary-default/8 focus-visible:ring-2 focus-visible:ring-primary-default'
209
+ : ''
210
+ }"
211
+ role=${navigable ? 'button' : 'presentation'}
212
+ tabindex=${navigable ? '0' : '-1'}
213
+ aria-current=${isActive ? 'step' : 'false'}
214
+ aria-label=${navigable ? `Go back to ${this.label}` : this.label}
215
+ @click=${this.onStepClick}
216
+ @keydown=${this.onStepKeydown}
217
+ >
218
+ ${when(
219
+ !isLast,
220
+ () => html`
221
+ <div
222
+ class="absolute left-3.5 top-1/2 w-px h-full transition-colors duration-300 ${
223
+ isComplete ? 'bg-primary-default' : 'bg-outline'
224
+ }"
225
+ aria-hidden="true"
226
+ ></div>
227
+ `,
228
+ )}
229
+ <div class=${dotClass} aria-hidden="true"></div>
230
+ <schmancy-typography type="label" token="lg" class=${labelClass}>${this.label}</schmancy-typography>
231
+ </div>
232
+ <slot @slotchange=${this.onSlotChange} style="display:none"></slot>
233
+ `
234
+ }
209
235
  }
210
236
 
211
237
  declare global {
@@ -12,12 +12,11 @@ import { StepsController, stepsContext } from './steps.context'
12
12
  */
13
13
  export type SchmancyStepsChangeEvent = CustomEvent<{ value: number }>
14
14
 
15
- @customElement('schmancy-steps-container')
16
- export class SchmancyStepsContainer extends SchmancyElement {
15
+ @customElement('schmancy-steps')
16
+ export class SchmancySteps extends SchmancyElement {
17
17
  static styles = [css`
18
18
  :host {
19
19
  display: block;
20
- overflow: auto;
21
20
  }
22
21
  `]
23
22
 
@@ -27,23 +26,27 @@ export class SchmancyStepsContainer extends SchmancyElement {
27
26
  stepsController = this.controller
28
27
 
29
28
  @property({ type: Number, reflect: true })
30
- set currentStep(value: number) {
29
+ set value(v: number) {
31
30
  const oldValue = this.controller.currentStep
32
- if (oldValue !== value) {
33
- this.controller.setStep(value)
31
+ if (oldValue !== v) {
32
+ this.controller.setStep(v)
34
33
  }
35
34
  }
36
35
 
37
- get currentStep(): number {
36
+ get value(): number {
38
37
  return this.controller.currentStep
39
38
  }
40
39
 
41
40
  /**
42
- * Gap between steps. Maps to Tailwind gap classes.
43
- * @default 4
41
+ * Block back-navigation for the whole stepper.
44
42
  */
45
- @property({ type: Number, reflect: true })
46
- gap: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 = 4
43
+ @property({ type: Boolean, reflect: true })
44
+ set lockBack(v: boolean) {
45
+ this.controller.lockBack = v
46
+ }
47
+ get lockBack(): boolean {
48
+ return this.controller.lockBack
49
+ }
47
50
 
48
51
  connectedCallback() {
49
52
  super.connectedCallback()
@@ -54,8 +57,6 @@ export class SchmancyStepsContainer extends SchmancyElement {
54
57
  distinctUntilChanged(),
55
58
  tap(step => {
56
59
  this.requestUpdate()
57
- // Use dispatchScopedEvent with bubbles: false to prevent collision
58
- // with 'change' events bubbling up from inputs inside steps
59
60
  this.dispatchScopedEvent('change', { value: step }, { bubbles: false })
60
61
  }),
61
62
  takeUntil(this.disconnecting),
@@ -64,39 +65,18 @@ export class SchmancyStepsContainer extends SchmancyElement {
64
65
  }
65
66
 
66
67
  /**
67
- * Handle change events - stop propagation of bubbled events from children.
68
- * This prevents form inputs inside steps from triggering the parent's @change handler.
68
+ * Handle change events stop propagation of bubbled events from children.
69
69
  */
70
70
  private handleChange = (e: Event) => {
71
- // Only stop propagation if the event is NOT from this component
72
- // (i.e., it's bubbling up from a child element like an input)
73
71
  if (e.target !== this) {
74
72
  e.stopPropagation()
75
73
  }
76
74
  }
77
75
 
78
76
  render() {
79
- const gapClass = `gap-${this.gap}`
80
- const gapRem =
81
- {
82
- 0: '0',
83
- 1: '0.25rem',
84
- 2: '0.5rem',
85
- 3: '0.75rem',
86
- 4: '1rem',
87
- 5: '1.25rem',
88
- 6: '1.5rem',
89
- 8: '2rem',
90
- 10: '2.5rem',
91
- 12: '3rem',
92
- 16: '4rem',
93
- 20: '5rem',
94
- 24: '6rem',
95
- }[this.gap] || '1rem'
96
-
97
77
  return html`
98
- <nav class="flex h-full w-full" aria-label="Progress" @change=${this.handleChange}>
99
- <ol class="flex flex-col flex-1 ${gapClass}" role="list" style="--steps-gap: ${gapRem}">
78
+ <nav aria-label="Progress" @change=${this.handleChange}>
79
+ <ol role="list" style="display:contents">
100
80
  <slot></slot>
101
81
  </ol>
102
82
  </nav>
@@ -106,6 +86,6 @@ export class SchmancyStepsContainer extends SchmancyElement {
106
86
 
107
87
  declare global {
108
88
  interface HTMLElementTagNameMap {
109
- 'schmancy-steps-container': SchmancyStepsContainer
89
+ 'schmancy-steps': SchmancySteps
110
90
  }
111
91
  }
@@ -2,18 +2,19 @@ import { createContext } from '@lit/context'
2
2
  import { BehaviorSubject } from 'rxjs'
3
3
 
4
4
  export class StepsController {
5
- private _currentStep = new BehaviorSubject(1)
5
+ private stepSubject = new BehaviorSubject(1)
6
+ lockBack = false
6
7
 
7
8
  get currentStep$() {
8
- return this._currentStep.asObservable()
9
+ return this.stepSubject.asObservable()
9
10
  }
10
11
 
11
12
  get currentStep() {
12
- return this._currentStep.value
13
+ return this.stepSubject.value
13
14
  }
14
15
 
15
16
  setStep(step: number) {
16
- this._currentStep.next(step)
17
+ this.stepSubject.next(step)
17
18
  }
18
19
  }
19
20
 
@@ -0,0 +1,120 @@
1
+ import { afterEach, beforeEach, describe, expect, it } from 'vitest'
2
+ import './schmancy-step'
3
+ import type { SchmancyStep } from './schmancy-step'
4
+ import './schmancy-steps'
5
+ import type { SchmancySteps } from './schmancy-steps'
6
+
7
+ const nextUpdate = () => new Promise(r => requestAnimationFrame(() => r(null)))
8
+
9
+ describe('schmancy-steps', () => {
10
+ let host: HTMLDivElement
11
+
12
+ beforeEach(() => {
13
+ host = document.createElement('div')
14
+ document.body.appendChild(host)
15
+ })
16
+
17
+ afterEach(() => {
18
+ host.remove()
19
+ })
20
+
21
+ it('emits change with numeric value when value property is set', async () => {
22
+ host.innerHTML = `
23
+ <schmancy-steps>
24
+ <schmancy-step position="1" label="First"></schmancy-step>
25
+ <schmancy-step position="2" label="Second"></schmancy-step>
26
+ </schmancy-steps>
27
+ `
28
+ await nextUpdate()
29
+ const container = host.querySelector('schmancy-steps') as SchmancySteps
30
+ const changes: number[] = []
31
+ container.addEventListener('change', (e: Event) => {
32
+ changes.push((e as CustomEvent<{ value: number }>).detail.value)
33
+ })
34
+ container.value = 2
35
+ await nextUpdate()
36
+ expect(changes).toContain(2)
37
+ })
38
+
39
+ it('clicking a complete step navigates to it', async () => {
40
+ host.innerHTML = `
41
+ <schmancy-steps>
42
+ <schmancy-step position="1" label="First" completed></schmancy-step>
43
+ <schmancy-step position="2" label="Second"></schmancy-step>
44
+ </schmancy-steps>
45
+ `
46
+ await nextUpdate()
47
+ const container = host.querySelector('schmancy-steps') as SchmancySteps
48
+ container.value = 2
49
+ await nextUpdate()
50
+ const step1 = host.querySelector('schmancy-step') as SchmancyStep
51
+ const changes: number[] = []
52
+ container.addEventListener('change', (e: Event) => {
53
+ changes.push((e as CustomEvent<{ value: number }>).detail.value)
54
+ })
55
+ // Fire click on the interactive element inside the shadow root
56
+ const inner = step1.shadowRoot?.querySelector('[role="button"]') as HTMLElement
57
+ inner?.click()
58
+ await nextUpdate()
59
+ expect(changes).toContain(1)
60
+ })
61
+
62
+ it('upcoming step click is inert', async () => {
63
+ host.innerHTML = `
64
+ <schmancy-steps>
65
+ <schmancy-step position="1" label="First"></schmancy-step>
66
+ <schmancy-step position="2" label="Second"></schmancy-step>
67
+ </schmancy-steps>
68
+ `
69
+ await nextUpdate()
70
+ const container = host.querySelector('schmancy-steps') as SchmancySteps
71
+ container.value = 1
72
+ await nextUpdate()
73
+ const steps = host.querySelectorAll('schmancy-step') as NodeListOf<SchmancyStep>
74
+ const changes: number[] = []
75
+ container.addEventListener('change', (e: Event) => {
76
+ changes.push((e as CustomEvent<{ value: number }>).detail.value)
77
+ })
78
+ steps[1].click()
79
+ await nextUpdate()
80
+ expect(changes).toHaveLength(0)
81
+ })
82
+
83
+ it('container lockBack blocks back-navigation', async () => {
84
+ host.innerHTML = `
85
+ <schmancy-steps lockback>
86
+ <schmancy-step position="1" label="First" completed></schmancy-step>
87
+ <schmancy-step position="2" label="Second"></schmancy-step>
88
+ </schmancy-steps>
89
+ `
90
+ await nextUpdate()
91
+ const container = host.querySelector('schmancy-steps') as SchmancySteps
92
+ container.value = 2
93
+ await nextUpdate()
94
+ const changes: number[] = []
95
+ container.addEventListener('change', (e: Event) => {
96
+ changes.push((e as CustomEvent<{ value: number }>).detail.value)
97
+ })
98
+ const step1 = host.querySelector('schmancy-step') as SchmancyStep
99
+ step1.click()
100
+ await nextUpdate()
101
+ expect(changes).toHaveLength(0)
102
+ })
103
+
104
+ it('step with no slotted content renders rail row (no content mode)', async () => {
105
+ host.innerHTML = `
106
+ <schmancy-steps>
107
+ <schmancy-step position="1" label="Rail Step"></schmancy-step>
108
+ </schmancy-steps>
109
+ `
110
+ await nextUpdate()
111
+ const step = host.querySelector('schmancy-step') as SchmancyStep
112
+ await nextUpdate()
113
+ // Rail mode: no slot content means hasContent is false — shadow DOM renders rail row
114
+ // The step's shadow root should not contain the content-mode card button
115
+ const shadowRoot = step.shadowRoot
116
+ expect(shadowRoot).toBeTruthy()
117
+ // Content mode renders a <li>, rail mode renders a <div>
118
+ expect(shadowRoot?.querySelector('li')).toBeNull()
119
+ })
120
+ })
@@ -4,6 +4,9 @@
4
4
  * Uses Blackbird spring physics for natural, organic motion.
5
5
  * Element stays in DOM to prevent layout shift.
6
6
  *
7
+ * When fully revealed, no directive-imposed max-height or overflow:hidden
8
+ * is left on the element — it lays out at its natural full height.
9
+ *
7
10
  * Usage:
8
11
  * ```ts
9
12
  * // Basic - uses 'smooth' preset
@@ -12,7 +15,7 @@
12
15
  * // With preset - 'snappy' for quick interactions
13
16
  * html`<div ${reveal(this.isVisible, { preset: 'snappy' })}>Content</div>`
14
17
  *
15
- * // With custom max height
18
+ * // Opt-in scroll cap (explicit maxHeight — keeps overflow:auto, does NOT clip)
16
19
  * html`<div ${reveal(this.items.length > 1, { maxHeight: '200px' })}>Content</div>`
17
20
  *
18
21
  * // Bouncy for playful UI
@@ -28,12 +31,17 @@
28
31
  * @see packages/schmancy/src/utils/animation.ts for Blackbird system
29
32
  */
30
33
  import { AsyncDirective } from 'lit/async-directive.js';
31
- import type { ElementPart, PartInfo } from 'lit/directive.js';
34
+ import { type ElementPart, type PartInfo } from 'lit/directive.js';
32
35
  export type RevealPreset = 'smooth' | 'snappy' | 'bouncy' | 'gentle';
33
36
  export interface RevealOptions {
34
37
  /** Animation preset (default: 'smooth') */
35
38
  preset?: RevealPreset;
36
- /** Max height when revealed (default: '10rem') */
39
+ /**
40
+ * Explicit scroll cap (opt-in). When set the element is constrained to
41
+ * this height with overflow:auto — content scrolls rather than clips.
42
+ * When omitted (the default) the element is fully unconstrained after
43
+ * opening: no max-height, no overflow:hidden left on it.
44
+ */
37
45
  maxHeight?: string;
38
46
  /** Custom duration override in ms (uses preset duration if not specified) */
39
47
  duration?: number;
@@ -42,11 +50,13 @@ export interface RevealOptions {
42
50
  }
43
51
  declare class RevealDirective extends AsyncDirective {
44
52
  private initialized;
45
- private element;
53
+ /** Fires on disconnect to tear down the transitionend subscription. */
54
+ private teardown$;
55
+ /** True if this is the very first update call — used to detect always-true initial mount. */
56
+ private firstUpdate;
46
57
  constructor(partInfo: PartInfo);
47
58
  render(_show?: boolean, _options?: RevealOptions): symbol;
48
59
  update(part: ElementPart, [show, options]: [boolean | undefined, RevealOptions?]): symbol;
49
- private setupElement;
50
60
  disconnected(): void;
51
61
  reconnected(): void;
52
62
  }
@@ -1,3 +1,3 @@
1
1
  export * from './schmancy-step';
2
- export * from './schmancy-steps-container';
2
+ export * from './schmancy-steps';
3
3
  export * from './steps.context';
@@ -7,14 +7,9 @@ export declare class SchmancyStep extends SchmancyElement {
7
7
  * "current", or "upcoming".
8
8
  */
9
9
  position: number;
10
- title: string;
10
+ label: string;
11
11
  description: string;
12
12
  completed: boolean;
13
- /**
14
- * NEW: Lock API to disable users from going back.
15
- * When set to true, clicking on a previous (completed) step is ignored.
16
- */
17
- lockBack: boolean;
18
13
  /**
19
14
  * Consume the shared StepsController from context.
20
15
  */
@@ -23,28 +18,18 @@ export declare class SchmancyStep extends SchmancyElement {
23
18
  * Local reactive copy of the container's current step number.
24
19
  */
25
20
  private currentStep;
26
- /**
27
- * Keep a reference to our subscription so we can unsubscribe cleanly.
28
- */
29
- private subscription?;
21
+ private hasContent;
22
+ private assignedNodes;
30
23
  connectedCallback(): void;
31
24
  firstUpdated(): void;
32
- disconnectedCallback(): void;
33
- /**
34
- * Update the host element's flex properties based on active state
35
- */
25
+ private onSlotChange;
36
26
  private updateFlexProperties;
37
- /**
38
- * Compute visual status for styling purposes. Note that if a step is explicitly
39
- * marked as completed, it always appears as complete even if it's active.
40
- */
41
27
  get status(): 'complete' | 'current' | 'upcoming';
42
- /**
43
- * Click handler to allow navigation between completed (or active) steps.
44
- * With lockBack enabled, clicking on a previous step is ignored.
45
- */
46
- private _onStepClick;
28
+ private onStepClick;
29
+ private onStepKeydown;
47
30
  render(): import("lit-html").TemplateResult<1>;
31
+ private renderContentRow;
32
+ private renderRailRow;
48
33
  }
49
34
  declare global {
50
35
  interface HTMLElementTagNameMap {
@@ -8,27 +8,26 @@ import { StepsController } from './steps.context';
8
8
  export type SchmancyStepsChangeEvent = CustomEvent<{
9
9
  value: number;
10
10
  }>;
11
- export declare class SchmancyStepsContainer extends SchmancyElement {
11
+ export declare class SchmancySteps extends SchmancyElement {
12
12
  static styles: import("lit").CSSResult[];
13
13
  private controller;
14
14
  stepsController: StepsController;
15
- set currentStep(value: number);
16
- get currentStep(): number;
15
+ set value(v: number);
16
+ get value(): number;
17
17
  /**
18
- * Gap between steps. Maps to Tailwind gap classes.
19
- * @default 4
18
+ * Block back-navigation for the whole stepper.
20
19
  */
21
- gap: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24;
20
+ set lockBack(v: boolean);
21
+ get lockBack(): boolean;
22
22
  connectedCallback(): void;
23
23
  /**
24
- * Handle change events - stop propagation of bubbled events from children.
25
- * This prevents form inputs inside steps from triggering the parent's @change handler.
24
+ * Handle change events stop propagation of bubbled events from children.
26
25
  */
27
26
  private handleChange;
28
27
  render(): import("lit-html").TemplateResult<1>;
29
28
  }
30
29
  declare global {
31
30
  interface HTMLElementTagNameMap {
32
- 'schmancy-steps-container': SchmancyStepsContainer;
31
+ 'schmancy-steps': SchmancySteps;
33
32
  }
34
33
  }
@@ -1,5 +1,6 @@
1
1
  export declare class StepsController {
2
- private _currentStep;
2
+ private stepSubject;
3
+ lockBack: boolean;
3
4
  get currentStep$(): import("rxjs").Observable<number>;
4
5
  get currentStep(): number;
5
6
  setStep(step: number): void;
@@ -0,0 +1,2 @@
1
+ import './schmancy-step';
2
+ import './schmancy-steps';