@mhmo91/schmancy 0.10.18 → 0.10.20

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 (373) hide show
  1. package/custom-elements.json +0 -13
  2. package/dist/agent/{flow-CvG1fLW5.js.map → flow-3RrZM-e7.js.map} +1 -1
  3. package/dist/agent/overlay.confirm-body-mYm0zq4k.js +2863 -0
  4. package/dist/agent/overlay.confirm-body-mYm0zq4k.js.map +1 -0
  5. package/dist/agent/{rolldown-runtime-DsMetpgY.js → rolldown-runtime-BIIoCavz.js} +9 -2
  6. package/dist/agent/schmancy.agent.js +3932 -5905
  7. package/dist/agent/schmancy.agent.js.map +1 -1
  8. package/dist/agent/schmancy.manifest.json +1 -9
  9. package/dist/agent/{vendor-material-color-DcL7ZPxx.js.map → vendor-material-color-33Mj762T.js.map} +1 -1
  10. package/dist/area-C7MNn-3e.cjs +12 -0
  11. package/dist/area-C7MNn-3e.cjs.map +1 -0
  12. package/dist/{area-BIipuSyO.js → area-CRe41aIG.js} +91 -130
  13. package/dist/area-CRe41aIG.js.map +1 -0
  14. package/dist/area.cjs +1 -1
  15. package/dist/area.js +1 -1
  16. package/dist/{audio-D-TZzpXF.cjs → audio-Cvmemu84.cjs} +1 -1
  17. package/dist/{audio-D-TZzpXF.cjs.map → audio-Cvmemu84.cjs.map} +1 -1
  18. package/dist/{audio-DS43uoRA.js → audio-CxO5a2HL.js} +1 -1
  19. package/dist/{audio-DS43uoRA.js.map → audio-CxO5a2HL.js.map} +1 -1
  20. package/dist/audio.cjs +1 -1
  21. package/dist/audio.js +2 -2
  22. package/dist/{autocomplete-Mrb3koUN.js → autocomplete-CRDFL4Ul.js} +2 -2
  23. package/dist/{autocomplete-Mrb3koUN.js.map → autocomplete-CRDFL4Ul.js.map} +1 -1
  24. package/dist/{autocomplete-B8CE5vGw.cjs → autocomplete-CqUl7o0e.cjs} +1 -1
  25. package/dist/{autocomplete-B8CE5vGw.cjs.map → autocomplete-CqUl7o0e.cjs.map} +1 -1
  26. package/dist/autocomplete.cjs +1 -1
  27. package/dist/autocomplete.js +1 -1
  28. package/dist/avatar.cjs +1 -1
  29. package/dist/avatar.js +1 -1
  30. package/dist/badge.cjs +1 -1
  31. package/dist/badge.js +1 -1
  32. package/dist/{boat-DN1_tyvx.cjs → boat-BHV5kOlN.cjs} +1 -1
  33. package/dist/{boat-DN1_tyvx.cjs.map → boat-BHV5kOlN.cjs.map} +1 -1
  34. package/dist/{boat-cuoSkhGI.js → boat-XajM8A3M.js} +2 -2
  35. package/dist/{boat-cuoSkhGI.js.map → boat-XajM8A3M.js.map} +1 -1
  36. package/dist/boat.cjs +1 -1
  37. package/dist/boat.js +1 -1
  38. package/dist/breadcrumb.cjs +1 -1
  39. package/dist/breadcrumb.js +1 -1
  40. package/dist/{busy-CMKX4oQf.cjs → busy-BlBZ5ZOs.cjs} +1 -1
  41. package/dist/{busy-CMKX4oQf.cjs.map → busy-BlBZ5ZOs.cjs.map} +1 -1
  42. package/dist/{busy-Cetzws-m.js → busy-D8YsqVBf.js} +1 -1
  43. package/dist/{busy-Cetzws-m.js.map → busy-D8YsqVBf.js.map} +1 -1
  44. package/dist/busy.cjs +1 -1
  45. package/dist/busy.js +1 -1
  46. package/dist/button.cjs +15 -9
  47. package/dist/button.cjs.map +1 -1
  48. package/dist/button.js +15 -9
  49. package/dist/button.js.map +1 -1
  50. package/dist/{card-D2k3dRL0.js → card-C9TljY2Z.js} +1 -1
  51. package/dist/{card-D2k3dRL0.js.map → card-C9TljY2Z.js.map} +1 -1
  52. package/dist/{card-8VXoo2C_.cjs → card-yT_St83D.cjs} +1 -1
  53. package/dist/{card-8VXoo2C_.cjs.map → card-yT_St83D.cjs.map} +1 -1
  54. package/dist/card.cjs +1 -1
  55. package/dist/card.js +1 -1
  56. package/dist/{checkbox-8hNsBejz.js → checkbox-BDgh4rge.js} +1 -1
  57. package/dist/{checkbox-8hNsBejz.js.map → checkbox-BDgh4rge.js.map} +1 -1
  58. package/dist/{checkbox-Cq5wzeaY.cjs → checkbox-Dz2lkJs0.cjs} +1 -1
  59. package/dist/{checkbox-Cq5wzeaY.cjs.map → checkbox-Dz2lkJs0.cjs.map} +1 -1
  60. package/dist/checkbox.cjs +1 -1
  61. package/dist/checkbox.js +1 -1
  62. package/dist/{chips-DSdvCpmi.cjs → chips-M7Dr2npv.cjs} +2 -4
  63. package/dist/chips-M7Dr2npv.cjs.map +1 -0
  64. package/dist/{chips-m2NPN480.js → chips-N7fu0hA4.js} +4 -6
  65. package/dist/chips-N7fu0hA4.js.map +1 -0
  66. package/dist/chips.cjs +1 -1
  67. package/dist/chips.js +2 -2
  68. package/dist/connectivity.cjs +1 -1
  69. package/dist/connectivity.js +2 -2
  70. package/dist/content-drawer.cjs +1 -1
  71. package/dist/content-drawer.js +1 -1
  72. package/dist/{date-range-DxS3Agbj.cjs → date-range-D2vxD814.cjs} +1 -1
  73. package/dist/{date-range-DxS3Agbj.cjs.map → date-range-D2vxD814.cjs.map} +1 -1
  74. package/dist/{date-range-D98QcCHl.js → date-range-DFWOMgI3.js} +2 -2
  75. package/dist/{date-range-D98QcCHl.js.map → date-range-DFWOMgI3.js.map} +1 -1
  76. package/dist/{date-range-inline-Bvs2ZvEY.cjs → date-range-inline-C5JuZ_Kw.cjs} +1 -1
  77. package/dist/{date-range-inline-Bvs2ZvEY.cjs.map → date-range-inline-C5JuZ_Kw.cjs.map} +1 -1
  78. package/dist/{date-range-inline-TWWnTZlw.js → date-range-inline-D3q1OoKk.js} +1 -1
  79. package/dist/{date-range-inline-TWWnTZlw.js.map → date-range-inline-D3q1OoKk.js.map} +1 -1
  80. package/dist/date-range-inline.cjs +1 -1
  81. package/dist/date-range-inline.js +1 -1
  82. package/dist/date-range.cjs +1 -1
  83. package/dist/date-range.js +1 -1
  84. package/dist/delay.cjs +1 -1
  85. package/dist/delay.js +1 -1
  86. package/dist/{details-Cpg8sH2F.js → details-BrUPmd92.js} +2 -2
  87. package/dist/details-BrUPmd92.js.map +1 -0
  88. package/dist/{details-CwSDur6j.cjs → details-DmDEInaL.cjs} +2 -2
  89. package/dist/details-DmDEInaL.cjs.map +1 -0
  90. package/dist/details.cjs +1 -1
  91. package/dist/details.js +1 -1
  92. package/dist/directives.cjs +1 -1
  93. package/dist/directives.js +1 -1
  94. package/dist/{divider-Be833gGZ.js → divider-BLijs8ba.js} +1 -1
  95. package/dist/{divider-Be833gGZ.js.map → divider-BLijs8ba.js.map} +1 -1
  96. package/dist/{divider-BNdVLE0H.cjs → divider-B_Ts_-qz.cjs} +1 -1
  97. package/dist/{divider-BNdVLE0H.cjs.map → divider-B_Ts_-qz.cjs.map} +1 -1
  98. package/dist/divider.cjs +1 -1
  99. package/dist/divider.js +1 -1
  100. package/dist/dropdown.cjs +1 -1
  101. package/dist/dropdown.js +1 -1
  102. package/dist/{expand-CtoffNNj.js → expand-C-xSpg7M.js} +2 -2
  103. package/dist/{expand-CtoffNNj.js.map → expand-C-xSpg7M.js.map} +1 -1
  104. package/dist/{expand-BP6RLzHw.cjs → expand-DV5sWUB6.cjs} +1 -1
  105. package/dist/{expand-BP6RLzHw.cjs.map → expand-DV5sWUB6.cjs.map} +1 -1
  106. package/dist/expand.cjs +1 -1
  107. package/dist/expand.js +1 -1
  108. package/dist/{float-B8NcSE3a.cjs → float-LyKef0LY.cjs} +1 -1
  109. package/dist/{float-B8NcSE3a.cjs.map → float-LyKef0LY.cjs.map} +1 -1
  110. package/dist/{float-C-glc-3u.js → float-Y22yVBE2.js} +1 -1
  111. package/dist/{float-C-glc-3u.js.map → float-Y22yVBE2.js.map} +1 -1
  112. package/dist/float.cjs +1 -1
  113. package/dist/float.js +1 -1
  114. package/dist/{form-St_IwR7y.cjs → form-C_smXI2-.cjs} +1 -1
  115. package/dist/{form-St_IwR7y.cjs.map → form-C_smXI2-.cjs.map} +1 -1
  116. package/dist/{form-DJvxIyfW.js → form-LFkEQkOX.js} +9 -9
  117. package/dist/{form-DJvxIyfW.js.map → form-LFkEQkOX.js.map} +1 -1
  118. package/dist/form.cjs +1 -1
  119. package/dist/form.js +6 -6
  120. package/dist/handover/agent-runtime-followups.md +1 -1
  121. package/dist/handover/agent-runtime-v1.md +3 -3
  122. package/dist/{icons-D7df1ysG.js → icons-B3pFrwKC.js} +1 -1
  123. package/dist/{icons-D7df1ysG.js.map → icons-B3pFrwKC.js.map} +1 -1
  124. package/dist/{icons-BJld4JHp.cjs → icons-CCNy4Egc.cjs} +1 -1
  125. package/dist/{icons-BJld4JHp.cjs.map → icons-CCNy4Egc.cjs.map} +1 -1
  126. package/dist/icons.cjs +1 -1
  127. package/dist/icons.js +1 -1
  128. package/dist/{iframe-DAbgW9tT.js → iframe-BbFlCEyP.js} +1 -1
  129. package/dist/{iframe-DAbgW9tT.js.map → iframe-BbFlCEyP.js.map} +1 -1
  130. package/dist/{iframe-GT6D8l5Z.cjs → iframe-CCcmLZ_K.cjs} +1 -1
  131. package/dist/{iframe-GT6D8l5Z.cjs.map → iframe-CCcmLZ_K.cjs.map} +1 -1
  132. package/dist/iframe.cjs +1 -1
  133. package/dist/iframe.js +1 -1
  134. package/dist/index.cjs +1 -1
  135. package/dist/index.js +59 -56
  136. package/dist/{input-DC6ap_uN.js → input-Dkneo4uA.js} +2 -2
  137. package/dist/{input-DC6ap_uN.js.map → input-Dkneo4uA.js.map} +1 -1
  138. package/dist/{input-chip-c5n547tg.js → input-chip-C1-TYu4v.js} +1 -1
  139. package/dist/{input-chip-c5n547tg.js.map → input-chip-C1-TYu4v.js.map} +1 -1
  140. package/dist/{input-chip-MsiMu-b5.cjs → input-chip-F5NEkkBU.cjs} +1 -1
  141. package/dist/{input-chip-MsiMu-b5.cjs.map → input-chip-F5NEkkBU.cjs.map} +1 -1
  142. package/dist/{input-BE9wEEw4.cjs → input-sBZ89wz1.cjs} +1 -1
  143. package/dist/{input-BE9wEEw4.cjs.map → input-sBZ89wz1.cjs.map} +1 -1
  144. package/dist/input.cjs +1 -1
  145. package/dist/input.js +1 -1
  146. package/dist/json.cjs +1 -1
  147. package/dist/json.js +2 -2
  148. package/dist/kbd.cjs +1 -1
  149. package/dist/kbd.js +1 -1
  150. package/dist/{layout-Delq-QvR.cjs → layout-BbCIfIgo.cjs} +1 -1
  151. package/dist/{layout-Delq-QvR.cjs.map → layout-BbCIfIgo.cjs.map} +1 -1
  152. package/dist/{layout-BH28sKGc.js → layout-Dq2oeOTS.js} +1 -1
  153. package/dist/{layout-BH28sKGc.js.map → layout-Dq2oeOTS.js.map} +1 -1
  154. package/dist/layout.cjs +1 -1
  155. package/dist/layout.js +1 -1
  156. package/dist/{lightbox-HqJBBjAT.cjs → lightbox-B4m5lxGs.cjs} +1 -1
  157. package/dist/{lightbox-HqJBBjAT.cjs.map → lightbox-B4m5lxGs.cjs.map} +1 -1
  158. package/dist/{lightbox-CNX9Eg3U.js → lightbox-D7hYFspE.js} +1 -1
  159. package/dist/{lightbox-CNX9Eg3U.js.map → lightbox-D7hYFspE.js.map} +1 -1
  160. package/dist/lightbox.cjs +1 -1
  161. package/dist/lightbox.js +1 -1
  162. package/dist/{list-bhyuQSyO.cjs → list-C2ycz-yr.cjs} +1 -1
  163. package/dist/{list-bhyuQSyO.cjs.map → list-C2ycz-yr.cjs.map} +1 -1
  164. package/dist/{list-C76Pb-c1.js → list-Ou72tSeq.js} +1 -1
  165. package/dist/{list-C76Pb-c1.js.map → list-Ou72tSeq.js.map} +1 -1
  166. package/dist/list.cjs +1 -1
  167. package/dist/list.js +1 -1
  168. package/dist/{menu-Dag0cuWV.cjs → menu-ComSx-T0.cjs} +1 -1
  169. package/dist/{menu-Dag0cuWV.cjs.map → menu-ComSx-T0.cjs.map} +1 -1
  170. package/dist/{menu-B_-weNpZ.js → menu-YHbpRa7x.js} +2 -2
  171. package/dist/{menu-B_-weNpZ.js.map → menu-YHbpRa7x.js.map} +1 -1
  172. package/dist/menu.cjs +1 -1
  173. package/dist/menu.js +1 -1
  174. package/dist/mixins-B9kY_60p.js +636 -0
  175. package/dist/{mixins-DCVXqL1Q.js.map → mixins-B9kY_60p.js.map} +1 -1
  176. package/dist/mixins-BwGJwK7X.cjs +254 -0
  177. package/dist/{mixins-Du9HMrIG.cjs.map → mixins-BwGJwK7X.cjs.map} +1 -1
  178. package/dist/mixins.cjs +1 -1
  179. package/dist/mixins.js +1 -1
  180. package/dist/nav-drawer.cjs +1 -1
  181. package/dist/nav-drawer.js +1 -1
  182. package/dist/navigation-bar.cjs +1 -1
  183. package/dist/navigation-bar.js +1 -1
  184. package/dist/navigation-rail.cjs +1 -1
  185. package/dist/navigation-rail.js +1 -1
  186. package/dist/{notification-yd2KeHjd.cjs → notification-DZhL0ZEg.cjs} +1 -1
  187. package/dist/{notification-yd2KeHjd.cjs.map → notification-DZhL0ZEg.cjs.map} +1 -1
  188. package/dist/{notification-DySnvQeO.js → notification-O4Q5pyio.js} +3 -3
  189. package/dist/{notification-DySnvQeO.js.map → notification-O4Q5pyio.js.map} +1 -1
  190. package/dist/notification.cjs +1 -1
  191. package/dist/notification.js +1 -1
  192. package/dist/{option-CBEHYG4U.js → option-BCks0a4i.js} +1 -1
  193. package/dist/{option-CBEHYG4U.js.map → option-BCks0a4i.js.map} +1 -1
  194. package/dist/{option-BDOKUqTy.cjs → option-C2VKw8Yt.cjs} +1 -1
  195. package/dist/{option-BDOKUqTy.cjs.map → option-C2VKw8Yt.cjs.map} +1 -1
  196. package/dist/option.cjs +1 -1
  197. package/dist/option.js +1 -1
  198. package/dist/overlay-C0YSnxoV.js +743 -0
  199. package/dist/overlay-C0YSnxoV.js.map +1 -0
  200. package/dist/overlay-CG1gc1Jw.cjs +80 -0
  201. package/dist/overlay-CG1gc1Jw.cjs.map +1 -0
  202. package/dist/overlay.cjs +1 -80
  203. package/dist/{overlay.confirm-body-sUmd_zVy.cjs → overlay.confirm-body-B-Kmn7LF.cjs} +1 -1
  204. package/dist/{overlay.confirm-body-sUmd_zVy.cjs.map → overlay.confirm-body-B-Kmn7LF.cjs.map} +1 -1
  205. package/dist/{overlay.confirm-body-DESGpbru.js → overlay.confirm-body-BmOnrKbF.js} +1 -1
  206. package/dist/{overlay.confirm-body-DESGpbru.js.map → overlay.confirm-body-BmOnrKbF.js.map} +1 -1
  207. package/dist/overlay.js +5 -746
  208. package/dist/{overlay.service-BxtEFFSH.cjs → overlay.service-BPKV2a8w.cjs} +1 -1
  209. package/dist/{overlay.service-BxtEFFSH.cjs.map → overlay.service-BPKV2a8w.cjs.map} +1 -1
  210. package/dist/{overlay.service-DV_o_xQ0.js → overlay.service-CRoq9Gu-.js} +2 -2
  211. package/dist/{overlay.service-DV_o_xQ0.js.map → overlay.service-CRoq9Gu-.js.map} +1 -1
  212. package/dist/page.cjs +1 -1
  213. package/dist/page.js +4 -4
  214. package/dist/{progress-CMSst_2U.cjs → progress-B9RWAFv5.cjs} +1 -1
  215. package/dist/{progress-CMSst_2U.cjs.map → progress-B9RWAFv5.cjs.map} +1 -1
  216. package/dist/{progress-C4kDZfb7.js → progress-CEEl7vdd.js} +1 -1
  217. package/dist/{progress-C4kDZfb7.js.map → progress-CEEl7vdd.js.map} +1 -1
  218. package/dist/progress.cjs +1 -1
  219. package/dist/progress.js +1 -1
  220. package/dist/radio-group-C2y6H5YY.cjs +19 -0
  221. package/dist/radio-group-C2y6H5YY.cjs.map +1 -0
  222. package/dist/radio-group-VERF_8rC.js +71 -0
  223. package/dist/radio-group-VERF_8rC.js.map +1 -0
  224. package/dist/radio-group.cjs +1 -1
  225. package/dist/radio-group.js +1 -1
  226. package/dist/range.cjs +1 -1
  227. package/dist/range.js +1 -1
  228. package/dist/{rxjs-utils-Dv9T9IpA.js.map → rxjs-utils-Cs6XGwF6.js.map} +1 -1
  229. package/dist/{rxjs-utils-BKB2UM_j.cjs.map → rxjs-utils-Dsj75cJy.cjs.map} +1 -1
  230. package/dist/rxjs-utils.cjs +1 -1
  231. package/dist/rxjs-utils.js +1 -1
  232. package/dist/{scroll-C1klVgSQ.js → scroll-Bj7FsS08.js} +1 -1
  233. package/dist/{scroll-C1klVgSQ.js.map → scroll-Bj7FsS08.js.map} +1 -1
  234. package/dist/{scroll-S-bXF2u6.cjs → scroll-Djz3pJfX.cjs} +1 -1
  235. package/dist/{scroll-S-bXF2u6.cjs.map → scroll-Djz3pJfX.cjs.map} +1 -1
  236. package/dist/{select-UU2pB67h.js → select-ClJj_2AP.js} +3 -3
  237. package/dist/select-ClJj_2AP.js.map +1 -0
  238. package/dist/select-CngphfDB.cjs +56 -0
  239. package/dist/select-CngphfDB.cjs.map +1 -0
  240. package/dist/select.cjs +1 -1
  241. package/dist/select.js +1 -1
  242. package/dist/skeleton.cjs +1 -1
  243. package/dist/skeleton.js +1 -1
  244. package/dist/skills/SKILL.md +12 -0
  245. package/dist/skills/schmancy/SKILL.md +12 -0
  246. package/dist/slider.cjs +1 -1
  247. package/dist/slider.js +1 -1
  248. package/dist/{sound.service-DyY78ukR.cjs → sound.service-DVJZb9ox.cjs} +1 -1
  249. package/dist/{sound.service-DyY78ukR.cjs.map → sound.service-DVJZb9ox.cjs.map} +1 -1
  250. package/dist/{sound.service-BIN2W7Rv.js → sound.service-v_jqCkos.js} +1 -1
  251. package/dist/{sound.service-BIN2W7Rv.js.map → sound.service-v_jqCkos.js.map} +1 -1
  252. package/dist/{splash-screen-bGW_sS4i.js → splash-screen-BQsBy3O1.js} +1 -1
  253. package/dist/{splash-screen-bGW_sS4i.js.map → splash-screen-BQsBy3O1.js.map} +1 -1
  254. package/dist/{splash-screen-25PTDqnp.cjs → splash-screen-CntIFk2h.cjs} +1 -1
  255. package/dist/{splash-screen-25PTDqnp.cjs.map → splash-screen-CntIFk2h.cjs.map} +1 -1
  256. package/dist/splash-screen.cjs +1 -1
  257. package/dist/splash-screen.js +1 -1
  258. package/dist/{src-olrlFt4e.js → src-BAXhEv8f.js} +37 -36
  259. package/dist/{src-olrlFt4e.js.map → src-BAXhEv8f.js.map} +1 -1
  260. package/dist/{src-Blm9PNcf.cjs → src-ChFa-FDD.cjs} +1 -1
  261. package/dist/{src-Blm9PNcf.cjs.map → src-ChFa-FDD.cjs.map} +1 -1
  262. package/dist/{state-nm8yzMPp.js → state-CHbIt2Dw.js} +198 -202
  263. package/dist/{state-nm8yzMPp.js.map → state-CHbIt2Dw.js.map} +1 -1
  264. package/dist/state-DcGj-pJJ.cjs +1 -0
  265. package/dist/{state-avic94Ft.cjs.map → state-DcGj-pJJ.cjs.map} +1 -1
  266. package/dist/state.cjs +1 -1
  267. package/dist/state.js +1 -1
  268. package/dist/steps.cjs +1 -1
  269. package/dist/steps.js +1 -1
  270. package/dist/{surface-DCRy-EyT.js → surface-CHUJSY1o.js} +1 -1
  271. package/dist/{surface-DCRy-EyT.js.map → surface-CHUJSY1o.js.map} +1 -1
  272. package/dist/{surface-DWwQDX9r.cjs → surface-CXmQuXun.cjs} +1 -1
  273. package/dist/{surface-DWwQDX9r.cjs.map → surface-CXmQuXun.cjs.map} +1 -1
  274. package/dist/surface.cjs +1 -1
  275. package/dist/surface.js +1 -1
  276. package/dist/switch.cjs +1 -1
  277. package/dist/switch.js +1 -1
  278. package/dist/table.cjs +1 -1
  279. package/dist/table.js +1 -1
  280. package/dist/{tabs-Dc3_Ox2B.cjs → tabs-Bku0sC0p.cjs} +1 -1
  281. package/dist/{tabs-Dc3_Ox2B.cjs.map → tabs-Bku0sC0p.cjs.map} +1 -1
  282. package/dist/{tabs-BVC_qn8S.js → tabs-DPVX21WM.js} +1 -1
  283. package/dist/{tabs-BVC_qn8S.js.map → tabs-DPVX21WM.js.map} +1 -1
  284. package/dist/tabs.cjs +1 -1
  285. package/dist/tabs.js +1 -1
  286. package/dist/teleport.cjs +1 -1
  287. package/dist/teleport.js +1 -1
  288. package/dist/{textarea-CNa4dSvF.cjs → textarea-CqJNviYi.cjs} +1 -1
  289. package/dist/{textarea-CNa4dSvF.cjs.map → textarea-CqJNviYi.cjs.map} +1 -1
  290. package/dist/{textarea-DkfGmRSI.js → textarea-D6z1UZzs.js} +1 -1
  291. package/dist/{textarea-DkfGmRSI.js.map → textarea-D6z1UZzs.js.map} +1 -1
  292. package/dist/textarea.cjs +1 -1
  293. package/dist/textarea.js +1 -1
  294. package/dist/{theme-DCybsrfv.cjs → theme-BpKVBJCr.cjs} +1 -1
  295. package/dist/{theme-DCybsrfv.cjs.map → theme-BpKVBJCr.cjs.map} +1 -1
  296. package/dist/{theme-BiCwFfCf.js → theme-DbHfINBV.js} +3 -3
  297. package/dist/{theme-BiCwFfCf.js.map → theme-DbHfINBV.js.map} +1 -1
  298. package/dist/{theme-button-DqiA0rJg.js → theme-button-BeU8Nbs2.js} +1 -1
  299. package/dist/{theme-button-DqiA0rJg.js.map → theme-button-BeU8Nbs2.js.map} +1 -1
  300. package/dist/{theme-button-cZGRyQRK.cjs → theme-button-Cof9I85G.cjs} +1 -1
  301. package/dist/{theme-button-cZGRyQRK.cjs.map → theme-button-Cof9I85G.cjs.map} +1 -1
  302. package/dist/theme-button.cjs +1 -1
  303. package/dist/theme-button.js +1 -1
  304. package/dist/theme.cjs +1 -1
  305. package/dist/theme.js +3 -3
  306. package/dist/{theme.service-BOWIT_5k.js → theme.service-CSzNkqBB.js} +1 -1
  307. package/dist/{theme.service-BOWIT_5k.js.map → theme.service-CSzNkqBB.js.map} +1 -1
  308. package/dist/{theme.service-DkdH1t60.cjs → theme.service-CnFUmUpc.cjs} +1 -1
  309. package/dist/{theme.service-DkdH1t60.cjs.map → theme.service-CnFUmUpc.cjs.map} +1 -1
  310. package/dist/tree.cjs +1 -1
  311. package/dist/tree.js +1 -1
  312. package/dist/typography.cjs +1 -1
  313. package/dist/typography.js +1 -1
  314. package/dist/{utils-D2QUu4-g.cjs.map → utils-C-Q8ePtG.cjs.map} +1 -1
  315. package/dist/{utils-Cj_nRRyx.js.map → utils-DXE5fBBd.js.map} +1 -1
  316. package/dist/utils.cjs +1 -1
  317. package/dist/utils.js +1 -1
  318. package/dist/visually-hidden.cjs +1 -1
  319. package/dist/visually-hidden.js +1 -1
  320. package/dist/{window-BMecbTzs.cjs → window-Cql1aIX2.cjs} +1 -1
  321. package/dist/{window-BMecbTzs.cjs.map → window-Cql1aIX2.cjs.map} +1 -1
  322. package/dist/{window-DMy5Gsgu.js → window-DmMNsos0.js} +2 -2
  323. package/dist/{window-DMy5Gsgu.js.map → window-DmMNsos0.js.map} +1 -1
  324. package/dist/window.cjs +1 -1
  325. package/dist/window.js +1 -1
  326. package/package.json +1 -1
  327. package/skills/schmancy/SKILL.md +12 -0
  328. package/src/CLAUDE.md +20 -0
  329. package/src/area/area.component.ts +155 -342
  330. package/src/button/button.ts +8 -5
  331. package/src/button/icon-button.ts +8 -5
  332. package/src/chips/filter-chip.ts +1 -3
  333. package/src/details/details.ts +1 -1
  334. package/src/form/fields/radio-group/radio-button.ts +22 -44
  335. package/src/form/fields/radio-group/radio-group.ts +20 -75
  336. package/src/form/fields/select/select.ts +3 -2
  337. package/src/index.ts +8 -0
  338. package/src/overlay/overlay.component.ts +29 -39
  339. package/src/overlay/overlay.positioning.ts +10 -2
  340. package/src/state/index.ts +31 -9
  341. package/src/state/schmancy-state.html +897 -0
  342. package/src/state/schmancy-state.md +981 -0
  343. package/types/src/area/area.component.d.ts +0 -15
  344. package/types/src/button/icon-button.d.ts +1 -1
  345. package/types/src/form/fields/radio-group/radio-button.d.ts +2 -5
  346. package/types/src/form/fields/radio-group/radio-group.d.ts +2 -10
  347. package/types/src/index.d.ts +1 -0
  348. package/types/src/overlay/overlay.positioning.d.ts +9 -1
  349. package/dist/area-BIipuSyO.js.map +0 -1
  350. package/dist/area-C-EMiNEE.cjs +0 -12
  351. package/dist/area-C-EMiNEE.cjs.map +0 -1
  352. package/dist/chips-DSdvCpmi.cjs.map +0 -1
  353. package/dist/chips-m2NPN480.js.map +0 -1
  354. package/dist/details-Cpg8sH2F.js.map +0 -1
  355. package/dist/details-CwSDur6j.cjs.map +0 -1
  356. package/dist/mixins-DCVXqL1Q.js +0 -636
  357. package/dist/mixins-Du9HMrIG.cjs +0 -254
  358. package/dist/overlay.cjs.map +0 -1
  359. package/dist/overlay.js.map +0 -1
  360. package/dist/radio-group-DB9D2ZkA.js +0 -108
  361. package/dist/radio-group-DB9D2ZkA.js.map +0 -1
  362. package/dist/radio-group-dVUvYFq7.cjs +0 -40
  363. package/dist/radio-group-dVUvYFq7.cjs.map +0 -1
  364. package/dist/select-UU2pB67h.js.map +0 -1
  365. package/dist/select-fu_-rZyn.cjs +0 -56
  366. package/dist/select-fu_-rZyn.cjs.map +0 -1
  367. package/dist/state-avic94Ft.cjs +0 -1
  368. /package/dist/agent/{flow-CvG1fLW5.js → flow-3RrZM-e7.js} +0 -0
  369. /package/dist/agent/{vendor-material-color-DcL7ZPxx.js → vendor-material-color-33Mj762T.js} +0 -0
  370. /package/dist/{rxjs-utils-Dv9T9IpA.js → rxjs-utils-Cs6XGwF6.js} +0 -0
  371. /package/dist/{rxjs-utils-BKB2UM_j.cjs → rxjs-utils-Dsj75cJy.cjs} +0 -0
  372. /package/dist/{utils-D2QUu4-g.cjs → utils-C-Q8ePtG.cjs} +0 -0
  373. /package/dist/{utils-Cj_nRRyx.js → utils-DXE5fBBd.js} +0 -0
@@ -0,0 +1,743 @@
1
+ import { c as e } from "./mixins-B9kY_60p.js";
2
+ import { a as t } from "./active-host-BP0zy_Y9.js";
3
+ import { _ as n, d as r, f as i, u as a } from "./animation-DCznELuT.js";
4
+ import { t as o } from "./reduced-motion-D7LqTUMn.js";
5
+ import { t as s } from "./layout-Dq2oeOTS.js";
6
+ import "./overlay.service-CRoq9Gu-.js";
7
+ import "./overlay.confirm-body-BmOnrKbF.js";
8
+ import { Observable as c, Subject as l, debounceTime as u, distinctUntilChanged as d, filter as f, fromEvent as p, map as m, merge as h, take as g, takeUntil as _, tap as v } from "rxjs";
9
+ import { customElement as y, property as b, query as x, state as S } from "lit/decorators.js";
10
+ import { css as C, html as w, render as T } from "lit";
11
+ import { when as E } from "lit/directives/when.js";
12
+ import { autoUpdate as D, computePosition as O, flip as k, offset as A, shift as j, size as M } from "@floating-ui/dom";
13
+ var N = o.value;
14
+ o.subscribe((e) => {
15
+ N = e;
16
+ });
17
+ var P = "--schmancy-overlay-origin-x", F = "--schmancy-overlay-origin-y", I = `var(${P}, 50%) var(${F}, 50%)`;
18
+ function L(e) {
19
+ return Number.isNaN(e) || !Number.isFinite(e) ? 50 : Math.max(0, Math.min(100, e));
20
+ }
21
+ function R(e, t) {
22
+ if (N) return t === "in" ? {
23
+ keyframes: [{
24
+ opacity: 0,
25
+ transform: "none"
26
+ }, {
27
+ opacity: 1,
28
+ transform: "none"
29
+ }],
30
+ options: {
31
+ duration: 1,
32
+ easing: "linear",
33
+ fill: "forwards"
34
+ }
35
+ } : {
36
+ keyframes: [{
37
+ opacity: 1,
38
+ transform: "none"
39
+ }, {
40
+ opacity: 0,
41
+ transform: "none"
42
+ }],
43
+ options: {
44
+ duration: 1,
45
+ easing: "linear",
46
+ fill: "forwards"
47
+ }
48
+ };
49
+ switch (e) {
50
+ case "centered": return t === "in" ? {
51
+ keyframes: [{
52
+ opacity: 0,
53
+ transform: "scale(0.6)",
54
+ transformOrigin: I
55
+ }, {
56
+ opacity: 1,
57
+ transform: "scale(1)",
58
+ transformOrigin: I
59
+ }],
60
+ options: {
61
+ duration: i.duration,
62
+ easing: n(i),
63
+ fill: "forwards"
64
+ }
65
+ } : {
66
+ keyframes: [{
67
+ opacity: 1,
68
+ transform: "scale(1)",
69
+ transformOrigin: I
70
+ }, {
71
+ opacity: 0,
72
+ transform: "scale(0.95)",
73
+ transformOrigin: I
74
+ }],
75
+ options: {
76
+ duration: 150,
77
+ easing: n(r),
78
+ fill: "forwards"
79
+ }
80
+ };
81
+ case "sheet": return t === "in" ? {
82
+ keyframes: [{
83
+ opacity: 0,
84
+ transform: "translateY(100%)"
85
+ }, {
86
+ opacity: 1,
87
+ transform: "translateY(0)"
88
+ }],
89
+ options: {
90
+ duration: a.duration,
91
+ easing: n(a),
92
+ fill: "forwards"
93
+ }
94
+ } : {
95
+ keyframes: [{
96
+ opacity: 1,
97
+ transform: "translateY(0)"
98
+ }, {
99
+ opacity: 0,
100
+ transform: "translateY(100%)"
101
+ }],
102
+ options: {
103
+ duration: 150,
104
+ easing: n(r),
105
+ fill: "forwards"
106
+ }
107
+ };
108
+ case "anchored": return t === "in" ? {
109
+ keyframes: [{
110
+ opacity: 0,
111
+ transform: "scale(0.85)",
112
+ transformOrigin: I
113
+ }, {
114
+ opacity: 1,
115
+ transform: "scale(1)",
116
+ transformOrigin: I
117
+ }],
118
+ options: {
119
+ duration: i.duration,
120
+ easing: n(i),
121
+ fill: "forwards"
122
+ }
123
+ } : {
124
+ keyframes: [{
125
+ opacity: 1,
126
+ transform: "scale(1)",
127
+ transformOrigin: I
128
+ }, {
129
+ opacity: 0,
130
+ transform: "scale(0.92)",
131
+ transformOrigin: I
132
+ }],
133
+ options: {
134
+ duration: 150,
135
+ easing: n(r),
136
+ fill: "forwards"
137
+ }
138
+ };
139
+ }
140
+ }
141
+ function z(e) {
142
+ let { surface: t, dragHandle: n, until$: r } = e;
143
+ return new c((e) => {
144
+ let i = n ?? t, a = new l(), o = !1, s = null, c = 0, u = 0, d = 0;
145
+ return h(p(i, "pointerdown").pipe(f((e) => e.isPrimary && (e.pointerType !== "mouse" || e.button === 0)), f((e) => {
146
+ if (n) return !0;
147
+ let r = t.getBoundingClientRect();
148
+ return e.clientY - r.top <= 40;
149
+ }), v((e) => {
150
+ o = !0, s = e.pointerId, c = e.clientY, u = performance.now(), d = 0, t.style.transition = "none", t.style.willChange = "transform";
151
+ try {
152
+ i.setPointerCapture?.(e.pointerId);
153
+ } catch {}
154
+ })), p(i, "pointermove").pipe(f(() => o), f((e) => e.pointerId === s), v((e) => {
155
+ d = function(e) {
156
+ if (e >= 0) return e;
157
+ let t = -e;
158
+ return -Math.max(0, 8 * (Math.log(t + 1) - 2));
159
+ }(e.clientY - c), t.style.transform = `translateY(${d}px)`, e.cancelable && e.preventDefault();
160
+ })), h(p(i, "pointerup"), p(i, "pointercancel"), p(i, "lostpointercapture")).pipe(f(() => o), f((e) => e.pointerId === s), v(() => {
161
+ o = !1;
162
+ let n = s;
163
+ s = null;
164
+ try {
165
+ n !== null && i.releasePointerCapture?.(n);
166
+ } catch {}
167
+ let r = Math.max(1, performance.now() - u), a = d / r, c = t.getBoundingClientRect().height, l = Math.min(80, .25 * c), f = d > l || d > 20 && a > .4;
168
+ t.style.willChange = "", f ? (t.style.transition = "transform 300ms cubic-bezier(0.16, 1, 0.3, 1)", t.style.transform = "translateY(100%)", e.next("dismiss"), e.complete()) : (t.style.transition = "transform 300ms cubic-bezier(0.16, 1, 0.3, 1)", t.style.transform = "translateY(0)");
169
+ }))).pipe(_(h(a, r))).subscribe(), () => {
170
+ a.next(), a.complete(), t.style.transition = "", t.style.transform = "", t.style.willChange = "";
171
+ };
172
+ }).pipe(g(1));
173
+ }
174
+ function B(e) {
175
+ let { anchor: t, content: n, viewport: r } = e, i = r.width < 640, a = r.isCoarsePointer, o = n.height > .8 * r.height, s = n.width > .9 * r.width;
176
+ return i || a || o || s ? "sheet" : t === void 0 ? "centered" : "anchored";
177
+ }
178
+ function V() {
179
+ return {
180
+ width: window.innerWidth,
181
+ height: window.innerHeight,
182
+ isCoarsePointer: window.matchMedia("(pointer: coarse)").matches
183
+ };
184
+ }
185
+ function H(e, t) {
186
+ return {
187
+ x: e,
188
+ y: t,
189
+ width: 0,
190
+ height: 0,
191
+ left: e,
192
+ right: e,
193
+ top: t,
194
+ bottom: t,
195
+ toJSON: () => ({
196
+ x: e,
197
+ y: t,
198
+ width: 0,
199
+ height: 0,
200
+ left: e,
201
+ right: e,
202
+ top: t,
203
+ bottom: t
204
+ })
205
+ };
206
+ }
207
+ var U = Object.freeze({
208
+ popover: typeof HTMLElement < "u" && "popover" in HTMLElement.prototype && typeof HTMLElement.prototype.showPopover == "function",
209
+ cssAnchor: typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("anchor-name: --x")
210
+ });
211
+ function W(e) {
212
+ if (!U.popover) throw Error("positionPopoverAPI requires Popover API support");
213
+ e.setAttribute("popover", "manual");
214
+ try {
215
+ e.showPopover();
216
+ } catch {}
217
+ return () => {
218
+ try {
219
+ e.hidePopover?.();
220
+ } catch {}
221
+ e.removeAttribute("popover");
222
+ };
223
+ }
224
+ function G(e, t, n = {}) {
225
+ return new c((r) => {
226
+ let i = t.el ?? t.virtual;
227
+ if (!i) return void r.error(/* @__PURE__ */ Error("positionFloatingUI requires an element or virtual anchor"));
228
+ let a = n.placement ?? "bottom-start", o = n.padding ?? 16, s = n.offsetPx ?? 8, c = D(i, e, async () => {
229
+ try {
230
+ let { x: t, y: n } = await O(i, e, {
231
+ strategy: "fixed",
232
+ placement: a,
233
+ middleware: [
234
+ A(s),
235
+ k({
236
+ padding: o,
237
+ fallbackPlacements: K(a)
238
+ }),
239
+ j({ padding: o }),
240
+ M({
241
+ padding: o,
242
+ apply({ availableWidth: e, availableHeight: t, elements: n }) {
243
+ n.floating.style.maxWidth = `${Math.max(0, e)}px`, n.floating.style.maxHeight = `${Math.max(0, t)}px`;
244
+ }
245
+ })
246
+ ]
247
+ });
248
+ Object.assign(e.style, {
249
+ position: "fixed",
250
+ left: `${Math.round(t)}px`,
251
+ top: `${Math.round(n)}px`,
252
+ transform: "none"
253
+ }), r.next();
254
+ } catch (e) {
255
+ r.error(e);
256
+ }
257
+ }, {
258
+ ancestorScroll: !0,
259
+ ancestorResize: !0,
260
+ elementResize: !1 !== n.track
261
+ });
262
+ return () => {
263
+ c();
264
+ };
265
+ });
266
+ }
267
+ function K(e) {
268
+ switch (e) {
269
+ case "bottom-start": return [
270
+ "top-start",
271
+ "bottom-end",
272
+ "top-end"
273
+ ];
274
+ case "bottom-end": return [
275
+ "top-end",
276
+ "bottom-start",
277
+ "top-start"
278
+ ];
279
+ case "top-start": return [
280
+ "bottom-start",
281
+ "top-end",
282
+ "bottom-end"
283
+ ];
284
+ case "top-end": return [
285
+ "bottom-end",
286
+ "top-start",
287
+ "bottom-start"
288
+ ];
289
+ case "left-start": return [
290
+ "right-start",
291
+ "left-end",
292
+ "right-end"
293
+ ];
294
+ case "left-end": return [
295
+ "right-end",
296
+ "left-start",
297
+ "right-start"
298
+ ];
299
+ case "right-start": return [
300
+ "left-start",
301
+ "right-end",
302
+ "left-end"
303
+ ];
304
+ case "right-end": return [
305
+ "left-end",
306
+ "right-start",
307
+ "left-start"
308
+ ];
309
+ case "top": return [
310
+ "bottom",
311
+ "left",
312
+ "right"
313
+ ];
314
+ case "bottom": return [
315
+ "top",
316
+ "left",
317
+ "right"
318
+ ];
319
+ case "left": return [
320
+ "right",
321
+ "top",
322
+ "bottom"
323
+ ];
324
+ case "right": return [
325
+ "left",
326
+ "top",
327
+ "bottom"
328
+ ];
329
+ default: return ["top-start", "bottom-end"];
330
+ }
331
+ }
332
+ var q = "overlay-mount", J = class extends e {
333
+ constructor(...e) {
334
+ super(...e), this.layout = "centered", this.dismissable = !0, this.modal = !0, this.tier = "modal", this._active = !1, this._closed$ = new l(), this._mounted = !1, this._closing = !1, this._lastFocusedElement = null, this._inertedSiblings = [], this._lastReResolveAt = 0, this.onBackdropClick = () => {
335
+ this.dismissable && this.close("backdrop");
336
+ };
337
+ }
338
+ static {
339
+ this.styles = [C`
340
+ :host {
341
+ position: fixed;
342
+ inset: 0;
343
+ z-index: var(--schmancy-overlay-z, 10000);
344
+ display: none;
345
+ pointer-events: none;
346
+ }
347
+ :host([active]) {
348
+ display: block;
349
+ }
350
+ .shell {
351
+ position: fixed;
352
+ inset: 0;
353
+ pointer-events: none;
354
+ }
355
+ .backdrop {
356
+ position: fixed;
357
+ inset: 0;
358
+ background: color-mix(in srgb, var(--schmancy-sys-color-surface-container, rgba(12, 12, 16, 0.28)) 60%, transparent);
359
+ backdrop-filter: blur(18px) saturate(150%);
360
+ -webkit-backdrop-filter: blur(18px) saturate(150%);
361
+ pointer-events: auto;
362
+ }
363
+ .surface {
364
+ position: fixed;
365
+ pointer-events: auto;
366
+ max-width: calc(100vw - 2rem);
367
+ max-height: 90dvh;
368
+ overflow: auto;
369
+ border-radius: var(--schmancy-sys-shape-corner-large, 16px);
370
+ background: var(--schmancy-sys-color-surface, #ffffff);
371
+ color: var(--schmancy-sys-color-on-surface, #1a1a1a);
372
+ box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.35);
373
+ }
374
+ .surface[data-layout='centered'] {
375
+ top: 50%;
376
+ left: 50%;
377
+ transform: translate(-50%, -50%);
378
+ }
379
+ .surface[data-layout='sheet'] {
380
+ left: 0;
381
+ right: 0;
382
+ bottom: 0;
383
+ max-width: none;
384
+ width: 100%;
385
+ border-radius: var(--schmancy-sys-shape-corner-large, 16px) var(--schmancy-sys-shape-corner-large, 16px) 0 0;
386
+ padding-bottom: env(safe-area-inset-bottom);
387
+ }
388
+ .surface[data-layout='anchored'] {
389
+ max-width: min(480px, calc(100vw - 2rem));
390
+ box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.28);
391
+ }
392
+ /* Popover top-layer surfaces escape normal z-index — zero out host
393
+ * display to avoid two surfaces rendering during transitions. */
394
+ .surface:popover-open {
395
+ margin: 0;
396
+ border: 0;
397
+ }
398
+ @media (prefers-reduced-motion: reduce) {
399
+ .surface {
400
+ box-shadow: var(--schmancy-sys-elevation-2, 0 2px 6px rgba(0, 0, 0, 0.2));
401
+ }
402
+ }
403
+ `];
404
+ }
405
+ get closed$() {
406
+ return this._closed$.asObservable();
407
+ }
408
+ async open(e, t) {
409
+ if (this._mounted) throw Error("schmancy-overlay: open() called twice on the same element");
410
+ this._mounted = !0, this.dismissable = !1 !== t.dismissable, this._rawAnchor = t.anchor, this._anchorOriginAnchor = t.anchor, this._resolvedAnchor = function(e) {
411
+ if (!e) return;
412
+ if (typeof HTMLElement < "u" && e instanceof HTMLElement) return { el: e };
413
+ if (typeof e.getBoundingClientRect == "function") return { virtual: { getBoundingClientRect: () => e.getBoundingClientRect() } };
414
+ if (typeof e.width == "number" && typeof e.height == "number" && typeof e.left == "number" && typeof e.top == "number") {
415
+ let t = e;
416
+ return { virtual: { getBoundingClientRect: () => t } };
417
+ }
418
+ if (typeof e.clientX == "number" && typeof e.clientY == "number") {
419
+ let t = e, n = H(t.clientX, t.clientY);
420
+ return { virtual: { getBoundingClientRect: () => n } };
421
+ }
422
+ if (e.touches !== void 0 && e.touches.length > 0) {
423
+ let t = e.touches[0], n = H(t.clientX, t.clientY);
424
+ return { virtual: { getBoundingClientRect: () => n } };
425
+ }
426
+ let t = e, n = H(t.x, t.y);
427
+ return { virtual: { getBoundingClientRect: () => n } };
428
+ }(t.anchor), this._active = !0, this.setAttribute("active", ""), await this.updateComplete;
429
+ let n = this.renderRoot.querySelector(`#${q}`);
430
+ if (!n) throw Error("schmancy-overlay: mount point missing");
431
+ await Y(e, n, t.props);
432
+ let r = V(), i = {
433
+ width: n.scrollWidth,
434
+ height: n.scrollHeight
435
+ };
436
+ var a;
437
+ if (this.layout = B({
438
+ anchor: t.anchor,
439
+ content: i,
440
+ viewport: r
441
+ }), this.modal = t.modal ?? (this.layout === "centered" || this.layout === "sheet"), this.tier = this.modal ? "modal" : this._resolvedAnchor ? (a = this._resolvedAnchor, U.popover && U.cssAnchor && a.el ? "css-anchor" : U.popover ? "popover-fui" : "fui-only") : "modal", await this.updateComplete, this.tier === "css-anchor" && this._resolvedAnchor?.el && this.shadowRoot) {
442
+ this._positionerTeardown = function(e, t, n, r = { id: "" }) {
443
+ if (!t.el) throw Error("positionCSSAnchor requires an element anchor");
444
+ let i = t.el, a = `--ov-${r.id || Math.random().toString(36).slice(2, 10)}`, o = r.placement ?? "bottom-start", s = i.style.getPropertyValue("anchor-name");
445
+ i.style.setProperty("anchor-name", a);
446
+ let c = new CSSStyleSheet();
447
+ return c.replaceSync(`\n\t\t${e.localName}[data-overlay-ref="${r.id}"] {\n\t\t\tposition-anchor: ${a};\n\t\t\t${function(e) {
448
+ switch (e) {
449
+ case "top":
450
+ case "top-start": return "bottom: anchor(top); left: anchor(start);";
451
+ case "top-end": return "bottom: anchor(top); right: anchor(end);";
452
+ case "bottom":
453
+ case "bottom-start": return "top: anchor(bottom); left: anchor(start);";
454
+ case "bottom-end": return "top: anchor(bottom); right: anchor(end);";
455
+ case "left":
456
+ case "left-start": return "right: anchor(left); top: anchor(start);";
457
+ case "left-end": return "right: anchor(left); bottom: anchor(end);";
458
+ case "right":
459
+ case "right-start": return "left: anchor(right); top: anchor(start);";
460
+ case "right-end": return "left: anchor(right); bottom: anchor(end);";
461
+ }
462
+ }(o)}\n\t\t\tmargin: 8px;\n\t\t\tposition-try-fallbacks:\n\t\t\t\tflip-block,\n\t\t\t\tflip-inline,\n\t\t\t\tflip-block flip-inline;\n\t\t}\n\t`), e.dataset.overlayRef = r.id, n.adoptedStyleSheets = [...n.adoptedStyleSheets, c], () => {
463
+ s ? i.style.setProperty("anchor-name", s) : i.style.removeProperty("anchor-name"), n.adoptedStyleSheets = n.adoptedStyleSheets.filter((e) => e !== c), delete e.dataset.overlayRef;
464
+ };
465
+ }(this._surface, this._resolvedAnchor, this.shadowRoot, {
466
+ id: `ov-${Math.random().toString(36).slice(2, 10)}`,
467
+ placement: t.preferredPlacement ?? "bottom-start"
468
+ });
469
+ let e = W(this._surface), n = this._positionerTeardown;
470
+ this._positionerTeardown = () => {
471
+ e(), n();
472
+ };
473
+ } else if (this.tier === "popover-fui" && this._resolvedAnchor) {
474
+ let e = W(this._surface), n = G(this._surface, this._resolvedAnchor, {
475
+ placement: t.preferredPlacement ?? "bottom-start",
476
+ offsetPx: 8,
477
+ track: !1 !== t.track
478
+ }).pipe(_(this.disconnecting)).subscribe();
479
+ this._positionerTeardown = () => {
480
+ e(), n.unsubscribe();
481
+ };
482
+ } else if (this.tier === "fui-only" && this._resolvedAnchor) {
483
+ let e = G(this._surface, this._resolvedAnchor, {
484
+ placement: t.preferredPlacement ?? "bottom-start",
485
+ offsetPx: 8,
486
+ track: !1 !== t.track
487
+ }).pipe(_(this.disconnecting)).subscribe();
488
+ this._positionerTeardown = () => e.unsubscribe();
489
+ }
490
+ this.setAnchorOriginVars(), this.wireFocusTrap(), this.wireCloseTriggers(t.signal), this.wireResizeObserver(n), await this.playEnterAnimations();
491
+ }
492
+ async close(e, t) {
493
+ if (!this._closing && this._mounted) {
494
+ this._closing = !0;
495
+ try {
496
+ await this.playExitAnimations();
497
+ } catch {}
498
+ if (this.releaseFocusTrap(), this._positionerTeardown) {
499
+ try {
500
+ this._positionerTeardown();
501
+ } catch {}
502
+ this._positionerTeardown = void 0;
503
+ }
504
+ this._active = !1, this.removeAttribute("active"), this._closed$.next({
505
+ reason: e,
506
+ result: t
507
+ }), this._closed$.complete();
508
+ }
509
+ }
510
+ render() {
511
+ return this._active ? w`
512
+ <div class="shell" part="shell">
513
+ ${E(this.modal, () => w`<div class="backdrop" part="backdrop" @click=${this.onBackdropClick}></div>`)}
514
+ <section
515
+ class="surface"
516
+ part="surface"
517
+ data-layout=${this.layout}
518
+ data-tier=${this.tier}
519
+ role=${this.modal ? "dialog" : "region"}
520
+ aria-modal=${this.modal ? "true" : "false"}
521
+ tabindex="-1"
522
+ >
523
+ <div id=${q}></div>
524
+ </section>
525
+ </div>
526
+ ` : w``;
527
+ }
528
+ setAnchorOriginVars() {
529
+ let e = this._surface;
530
+ if (!e) return;
531
+ let t = e.getBoundingClientRect(), n = this.layout !== "centered" || this._anchorOriginAnchor ? this.layout !== "sheet" || this._anchorOriginAnchor ? function(e, t) {
532
+ if (!e) return {
533
+ [P]: "50%",
534
+ [F]: "50%"
535
+ };
536
+ let { x: n, y: r } = function(e) {
537
+ if (typeof e.getBoundingClientRect == "function") {
538
+ let t = e.getBoundingClientRect();
539
+ return {
540
+ x: t.left + t.width / 2,
541
+ y: t.top + t.height / 2
542
+ };
543
+ }
544
+ if (typeof e.width == "number" && typeof e.height == "number" && typeof e.left == "number" && typeof e.top == "number") {
545
+ let t = e;
546
+ return {
547
+ x: t.left + t.width / 2,
548
+ y: t.top + t.height / 2
549
+ };
550
+ }
551
+ if (typeof e.clientX == "number" && typeof e.clientY == "number") {
552
+ let t = e;
553
+ return {
554
+ x: t.clientX,
555
+ y: t.clientY
556
+ };
557
+ }
558
+ if (e.touches !== void 0 && e.touches.length > 0) {
559
+ let t = e.touches[0];
560
+ return {
561
+ x: t.clientX,
562
+ y: t.clientY
563
+ };
564
+ }
565
+ let t = e;
566
+ return {
567
+ x: t.x,
568
+ y: t.y
569
+ };
570
+ }(e);
571
+ if (!t.width || !t.height) return {
572
+ [P]: "50%",
573
+ [F]: "50%"
574
+ };
575
+ let i = L((n - t.left) / t.width * 100), a = L((r - t.top) / t.height * 100);
576
+ return {
577
+ [P]: `${i}%`,
578
+ [F]: `${a}%`
579
+ };
580
+ }(this._anchorOriginAnchor, t) : {
581
+ "--schmancy-overlay-origin-x": "50%",
582
+ "--schmancy-overlay-origin-y": "100%"
583
+ } : {
584
+ "--schmancy-overlay-origin-x": "50%",
585
+ "--schmancy-overlay-origin-y": "50%"
586
+ };
587
+ for (let [t, r] of Object.entries(n)) e.style.setProperty(t, r);
588
+ }
589
+ wireFocusTrap() {
590
+ if (!this.modal) return;
591
+ this._lastFocusedElement = document.activeElement ?? null;
592
+ let e = this.parentElement;
593
+ if (e) {
594
+ this._inertedSiblings = [];
595
+ for (let t of Array.from(e.children)) t !== this && t instanceof HTMLElement && !t.inert && (t.inert = !0, this._inertedSiblings.push(t));
596
+ }
597
+ queueMicrotask(() => {
598
+ (this._surface?.querySelector("[autofocus]") ?? this._surface)?.focus();
599
+ });
600
+ }
601
+ releaseFocusTrap() {
602
+ for (let e of this._inertedSiblings) e.inert = !1;
603
+ this._inertedSiblings = [];
604
+ try {
605
+ this._lastFocusedElement?.focus?.();
606
+ } catch {}
607
+ this._lastFocusedElement = null;
608
+ }
609
+ wireCloseTriggers(e) {
610
+ let t = this.disconnecting;
611
+ p(this, "close").pipe(f((e) => e instanceof CustomEvent), v((e) => {
612
+ e.stopPropagation(), this.close("structured", e.detail);
613
+ }), _(t)).subscribe(), p(this, "submit").pipe(f((e) => {
614
+ let t = e.target;
615
+ return !!t && t.method === "dialog";
616
+ }), v((e) => {
617
+ e.preventDefault();
618
+ let t = e.submitter?.value ?? "";
619
+ this.close("native-submit", t);
620
+ }), _(t)).subscribe(), p(document, "keydown").pipe(f((e) => e.key === "Escape"), v((e) => {
621
+ this.dismissable ? (e.preventDefault(), this.close("escape")) : e.preventDefault();
622
+ }), _(t)).subscribe(), this.tier !== "modal" && p(document, "pointerdown", { capture: !0 }).pipe(f((e) => {
623
+ if (!this.dismissable) return !1;
624
+ let t = e.composedPath();
625
+ return (!this._surface || !t.includes(this._surface)) && (!this._resolvedAnchor?.el || !t.includes(this._resolvedAnchor.el));
626
+ }), g(1), v(() => {
627
+ this.close("backdrop");
628
+ }), _(t)).subscribe(), this.layout === "sheet" && this.dismissable && z({
629
+ surface: this._surface,
630
+ until$: h(t, this._closed$)
631
+ }).pipe(g(1)).subscribe(() => {
632
+ this.close("swipe");
633
+ }), e && (e.aborted ? queueMicrotask(() => {
634
+ this.close("abort");
635
+ }) : p(e, "abort").pipe(g(1), v(() => {
636
+ this.close("abort");
637
+ }), _(t)).subscribe());
638
+ }
639
+ wireResizeObserver(e) {
640
+ s(e).pipe(m((e) => {
641
+ let t = e[0];
642
+ if (!t) return null;
643
+ let n = t.contentRect;
644
+ return {
645
+ w: n.width,
646
+ h: n.height
647
+ };
648
+ }), f((e) => e !== null), d((e, t) => e.w === t.w && e.h === t.h), u(80), _(h(this.disconnecting, this._closed$))).subscribe((e) => this.maybeReResolve(e));
649
+ }
650
+ async maybeReResolve(e) {
651
+ if (this._closing) return;
652
+ let t = V(), i = B({
653
+ anchor: this._rawAnchor,
654
+ content: {
655
+ width: e.w,
656
+ height: e.h
657
+ },
658
+ viewport: t
659
+ });
660
+ if (i === this.layout || performance.now() - this._lastReResolveAt < 600 || (a = this.layout, o = i, !(a === "centered" && o === "sheet" || a === "anchored" && o === "sheet"))) return;
661
+ var a, o;
662
+ let s = this._surface, c = s.getBoundingClientRect();
663
+ this.layout = i, await this.updateComplete;
664
+ let l = function(e, t) {
665
+ return N ? {
666
+ keyframes: [{ transform: "none" }, { transform: "none" }],
667
+ options: {
668
+ duration: 1,
669
+ easing: "linear",
670
+ fill: "forwards"
671
+ }
672
+ } : {
673
+ keyframes: [{
674
+ transform: `translate(${e.left - t.left}px, ${e.top - t.top}px) scale(${t.width > 0 ? e.width / t.width : 1}, ${t.height > 0 ? e.height / t.height : 1})`,
675
+ transformOrigin: "top left"
676
+ }, {
677
+ transform: "none",
678
+ transformOrigin: "top left"
679
+ }],
680
+ options: {
681
+ duration: r.duration,
682
+ easing: n(r),
683
+ fill: "forwards"
684
+ }
685
+ };
686
+ }(c, s.getBoundingClientRect());
687
+ try {
688
+ await s.animate(l.keyframes, l.options).finished;
689
+ } catch {}
690
+ this._lastReResolveAt = performance.now();
691
+ }
692
+ async playEnterAnimations() {
693
+ let e = this._surface;
694
+ if (!e) return;
695
+ let t = R(this.layout, "in"), n = [e.animate(t.keyframes, t.options).finished.catch(() => {})], r = this._backdrop;
696
+ this.modal && r && n.push(r.animate([{ opacity: 0 }, { opacity: 1 }], {
697
+ duration: t.options.duration,
698
+ easing: "ease-out",
699
+ fill: "forwards"
700
+ }).finished.catch(() => {})), await Promise.all(n);
701
+ }
702
+ async playExitAnimations() {
703
+ let e = this._surface;
704
+ if (!e) return;
705
+ let t = R(this.layout, "out"), n = [e.animate(t.keyframes, t.options).finished.catch(() => {})], r = this._backdrop;
706
+ this.modal && r && n.push(r.animate([{ opacity: 1 }, { opacity: 0 }], {
707
+ duration: t.options.duration,
708
+ easing: "ease-in",
709
+ fill: "forwards"
710
+ }).finished.catch(() => {})), await Promise.all(n);
711
+ }
712
+ };
713
+ async function Y(e, t, n) {
714
+ if (typeof (r = e) == "object" && r !== null && "_$litType$" in r) return T(e, t), t;
715
+ var r;
716
+ if (e instanceof HTMLElement) return n && Object.assign(e, n), t.appendChild(e), e;
717
+ if (function(e) {
718
+ return typeof e == "function" && ("preload" in e || "_promise" in e);
719
+ }(e)) return Y((await e()).default, t, n);
720
+ if (typeof e == "function") {
721
+ let r = new e();
722
+ return n && Object.assign(r, n), t.appendChild(r), r;
723
+ }
724
+ if (typeof e == "string") {
725
+ let r = document.createElement(e);
726
+ return n && Object.assign(r, n), t.appendChild(r), r;
727
+ }
728
+ throw Error("schmancy-overlay: unsupported content type");
729
+ }
730
+ t([b({
731
+ type: String,
732
+ reflect: !0
733
+ })], J.prototype, "layout", void 0), t([b({
734
+ type: Boolean,
735
+ reflect: !0
736
+ })], J.prototype, "dismissable", void 0), t([b({
737
+ type: Boolean,
738
+ reflect: !0
739
+ })], J.prototype, "modal", void 0), t([b({
740
+ type: String,
741
+ reflect: !0
742
+ })], J.prototype, "tier", void 0), t([S()], J.prototype, "_active", void 0), t([x(".backdrop")], J.prototype, "_backdrop", void 0), t([x(".surface")], J.prototype, "_surface", void 0), J = t([y("schmancy-overlay")], J);
743
+ export { J as t };