@mhmo91/schmancy 0.10.17 → 0.10.19

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 (365) hide show
  1. package/dist/agent/{flow-CvG1fLW5.js.map → flow-3RrZM-e7.js.map} +1 -1
  2. package/dist/agent/overlay.confirm-body-D3jQyXgA.js +2863 -0
  3. package/dist/agent/overlay.confirm-body-D3jQyXgA.js.map +1 -0
  4. package/dist/agent/{rolldown-runtime-DsMetpgY.js → rolldown-runtime-BIIoCavz.js} +9 -2
  5. package/dist/agent/schmancy.agent.js +3938 -5911
  6. package/dist/agent/schmancy.agent.js.map +1 -1
  7. package/dist/agent/{vendor-material-color-DcL7ZPxx.js.map → vendor-material-color-33Mj762T.js.map} +1 -1
  8. package/dist/{area-ChxsDTu_.js → area-BIipuSyO.js} +1 -1
  9. package/dist/{area-ChxsDTu_.js.map → area-BIipuSyO.js.map} +1 -1
  10. package/dist/{area-Qt6yUnuA.cjs → area-C-EMiNEE.cjs} +1 -1
  11. package/dist/{area-Qt6yUnuA.cjs.map → area-C-EMiNEE.cjs.map} +1 -1
  12. package/dist/area.cjs +1 -1
  13. package/dist/area.js +1 -1
  14. package/dist/{audio-D-TZzpXF.cjs → audio-Cvmemu84.cjs} +1 -1
  15. package/dist/{audio-D-TZzpXF.cjs.map → audio-Cvmemu84.cjs.map} +1 -1
  16. package/dist/{audio-DS43uoRA.js → audio-CxO5a2HL.js} +1 -1
  17. package/dist/{audio-DS43uoRA.js.map → audio-CxO5a2HL.js.map} +1 -1
  18. package/dist/audio.cjs +1 -1
  19. package/dist/audio.js +2 -2
  20. package/dist/{autocomplete-Ck2zbdF9.cjs → autocomplete-B8CE5vGw.cjs} +1 -1
  21. package/dist/{autocomplete-Ck2zbdF9.cjs.map → autocomplete-B8CE5vGw.cjs.map} +1 -1
  22. package/dist/{autocomplete-CXvUjMD-.js → autocomplete-Mrb3koUN.js} +2 -2
  23. package/dist/{autocomplete-CXvUjMD-.js.map → autocomplete-Mrb3koUN.js.map} +1 -1
  24. package/dist/autocomplete.cjs +1 -1
  25. package/dist/autocomplete.js +1 -1
  26. package/dist/avatar.cjs +1 -1
  27. package/dist/avatar.js +1 -1
  28. package/dist/badge.cjs +1 -1
  29. package/dist/badge.js +1 -1
  30. package/dist/{boat-Bj0wVcZi.js → boat-CNWIQPA1.js} +2 -5
  31. package/dist/{boat-Bj0wVcZi.js.map → boat-CNWIQPA1.js.map} +1 -1
  32. package/dist/{boat-DpFkILFF.cjs → boat-OatK_MGh.cjs} +2 -2
  33. package/dist/{boat-DpFkILFF.cjs.map → boat-OatK_MGh.cjs.map} +1 -1
  34. package/dist/boat.cjs +1 -1
  35. package/dist/boat.js +1 -1
  36. package/dist/breadcrumb.cjs +2 -1
  37. package/dist/breadcrumb.cjs.map +1 -1
  38. package/dist/breadcrumb.js +2 -1
  39. package/dist/breadcrumb.js.map +1 -1
  40. package/dist/{busy-CtcnclA3.cjs → busy-CMKX4oQf.cjs} +1 -1
  41. package/dist/{busy-CtcnclA3.cjs.map → busy-CMKX4oQf.cjs.map} +1 -1
  42. package/dist/{busy-CyZSBnZP.js → busy-Cetzws-m.js} +1 -1
  43. package/dist/{busy-CyZSBnZP.js.map → busy-Cetzws-m.js.map} +1 -1
  44. package/dist/busy.cjs +1 -1
  45. package/dist/busy.js +1 -1
  46. package/dist/button.cjs +4 -3
  47. package/dist/button.cjs.map +1 -1
  48. package/dist/button.js +4 -3
  49. package/dist/button.js.map +1 -1
  50. package/dist/{card-Cl6jp1yX.cjs → card-8VXoo2C_.cjs} +1 -1
  51. package/dist/{card-Cl6jp1yX.cjs.map → card-8VXoo2C_.cjs.map} +1 -1
  52. package/dist/{card-nYZCKmOO.js → card-D2k3dRL0.js} +1 -1
  53. package/dist/{card-nYZCKmOO.js.map → card-D2k3dRL0.js.map} +1 -1
  54. package/dist/card.cjs +1 -1
  55. package/dist/card.js +1 -1
  56. package/dist/{checkbox-DiUrZiyc.js → checkbox-8hNsBejz.js} +1 -1
  57. package/dist/{checkbox-DiUrZiyc.js.map → checkbox-8hNsBejz.js.map} +1 -1
  58. package/dist/{checkbox-BeNo0ZGt.cjs → checkbox-Cq5wzeaY.cjs} +1 -1
  59. package/dist/{checkbox-BeNo0ZGt.cjs.map → checkbox-Cq5wzeaY.cjs.map} +1 -1
  60. package/dist/checkbox.cjs +1 -1
  61. package/dist/checkbox.js +1 -1
  62. package/dist/{chips-CfPFXv7Z.js → chips-D1kJrbzo.js} +9 -23
  63. package/dist/chips-D1kJrbzo.js.map +1 -0
  64. package/dist/{chips-DK6m-VCM.cjs → chips-Dx_WvOGk.cjs} +9 -18
  65. package/dist/chips-Dx_WvOGk.cjs.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-DjlF2u7o.js → date-range-Dv-DM6mB.js} +2 -2
  73. package/dist/{date-range-DjlF2u7o.js.map → date-range-Dv-DM6mB.js.map} +1 -1
  74. package/dist/{date-range-DA6anfcF.cjs → date-range-H903Vt_r.cjs} +1 -1
  75. package/dist/{date-range-DA6anfcF.cjs.map → date-range-H903Vt_r.cjs.map} +1 -1
  76. package/dist/{date-range-inline-BfYK795W.cjs → date-range-inline-Bvs2ZvEY.cjs} +1 -1
  77. package/dist/{date-range-inline-BfYK795W.cjs.map → date-range-inline-Bvs2ZvEY.cjs.map} +1 -1
  78. package/dist/{date-range-inline-n7y_H6PJ.js → date-range-inline-TWWnTZlw.js} +1 -1
  79. package/dist/{date-range-inline-n7y_H6PJ.js.map → date-range-inline-TWWnTZlw.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-CS_ToAOj.js → details-Cpg8sH2F.js} +3 -8
  87. package/dist/details-Cpg8sH2F.js.map +1 -0
  88. package/dist/{details-BdAVsLl-.cjs → details-CwSDur6j.cjs} +2 -6
  89. package/dist/details-CwSDur6j.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-CvWAnvdO.cjs → divider-BNdVLE0H.cjs} +1 -1
  95. package/dist/{divider-CvWAnvdO.cjs.map → divider-BNdVLE0H.cjs.map} +1 -1
  96. package/dist/{divider-COLK0RbT.js → divider-Be833gGZ.js} +1 -1
  97. package/dist/{divider-COLK0RbT.js.map → divider-Be833gGZ.js.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-r2sATPUJ.cjs → expand-BP6RLzHw.cjs} +1 -1
  103. package/dist/{expand-r2sATPUJ.cjs.map → expand-BP6RLzHw.cjs.map} +1 -1
  104. package/dist/{expand-D9LzmpoV.js → expand-CtoffNNj.js} +2 -2
  105. package/dist/{expand-D9LzmpoV.js.map → expand-CtoffNNj.js.map} +1 -1
  106. package/dist/expand.cjs +1 -1
  107. package/dist/expand.js +1 -1
  108. package/dist/{float-2nHYuBx-.cjs → float-CfbQM_2v.cjs} +1 -1
  109. package/dist/{float-2nHYuBx-.cjs.map → float-CfbQM_2v.cjs.map} +1 -1
  110. package/dist/{float-BWy39CXr.js → float-KmbhaQHA.js} +1 -1
  111. package/dist/{float-BWy39CXr.js.map → float-KmbhaQHA.js.map} +1 -1
  112. package/dist/float.cjs +1 -1
  113. package/dist/float.js +1 -1
  114. package/dist/{form-D1iJOLVb.js → form-8IcmP8uV.js} +9 -9
  115. package/dist/{form-D1iJOLVb.js.map → form-8IcmP8uV.js.map} +1 -1
  116. package/dist/{form-D9K1GhlP.cjs → form-CuBIrKOA.cjs} +1 -1
  117. package/dist/{form-D9K1GhlP.cjs.map → form-CuBIrKOA.cjs.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-BXp4vbnW.cjs → icons-BJld4JHp.cjs} +1 -1
  123. package/dist/{icons-BXp4vbnW.cjs.map → icons-BJld4JHp.cjs.map} +1 -1
  124. package/dist/{icons-COrlmBPB.js → icons-D7df1ysG.js} +1 -1
  125. package/dist/{icons-COrlmBPB.js.map → icons-D7df1ysG.js.map} +1 -1
  126. package/dist/icons.cjs +1 -1
  127. package/dist/icons.js +1 -1
  128. package/dist/{iframe-CPNsIy7k.js → iframe-DAbgW9tT.js} +1 -1
  129. package/dist/{iframe-CPNsIy7k.js.map → iframe-DAbgW9tT.js.map} +1 -1
  130. package/dist/{iframe-BwXj6mLp.cjs → iframe-GT6D8l5Z.cjs} +1 -1
  131. package/dist/{iframe-BwXj6mLp.cjs.map → iframe-GT6D8l5Z.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-BGrF2qVq.cjs → input-BE9wEEw4.cjs} +1 -1
  137. package/dist/{input-BGrF2qVq.cjs.map → input-BE9wEEw4.cjs.map} +1 -1
  138. package/dist/{input-C1SnMNuQ.js → input-DC6ap_uN.js} +1 -1
  139. package/dist/{input-C1SnMNuQ.js.map → input-DC6ap_uN.js.map} +1 -1
  140. package/dist/{input-chip-DZktYohr.cjs → input-chip-MsiMu-b5.cjs} +4 -4
  141. package/dist/input-chip-MsiMu-b5.cjs.map +1 -0
  142. package/dist/{input-chip-CtQ0pH5b.js → input-chip-c5n547tg.js} +3 -6
  143. package/dist/input-chip-c5n547tg.js.map +1 -0
  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-CLwpaiai.js → lightbox-CNX9Eg3U.js} +4 -4
  157. package/dist/lightbox-CNX9Eg3U.js.map +1 -0
  158. package/dist/{lightbox-Ck6BpN5u.cjs → lightbox-HqJBBjAT.cjs} +4 -4
  159. package/dist/lightbox-HqJBBjAT.cjs.map +1 -0
  160. package/dist/lightbox.cjs +1 -1
  161. package/dist/lightbox.js +1 -1
  162. package/dist/{list-Bmce1Rb8.js → list-C76Pb-c1.js} +1 -1
  163. package/dist/{list-Bmce1Rb8.js.map → list-C76Pb-c1.js.map} +1 -1
  164. package/dist/{list-EmRwSpTU.cjs → list-bhyuQSyO.cjs} +1 -1
  165. package/dist/{list-EmRwSpTU.cjs.map → list-bhyuQSyO.cjs.map} +1 -1
  166. package/dist/list.cjs +1 -1
  167. package/dist/list.js +1 -1
  168. package/dist/{menu-BTU3wGP6.cjs → menu-BqKQ-s0C.cjs} +1 -1
  169. package/dist/{menu-BTU3wGP6.cjs.map → menu-BqKQ-s0C.cjs.map} +1 -1
  170. package/dist/{menu-BA_B7QOG.js → menu-C5ksITpG.js} +2 -2
  171. package/dist/{menu-BA_B7QOG.js.map → menu-C5ksITpG.js.map} +1 -1
  172. package/dist/menu.cjs +1 -1
  173. package/dist/menu.js +1 -1
  174. package/dist/mixins-DCVXqL1Q.js +636 -0
  175. package/dist/{mixins-BWb9_e1s.js.map → mixins-DCVXqL1Q.js.map} +1 -1
  176. package/dist/mixins-Du9HMrIG.cjs +254 -0
  177. package/dist/{mixins-BOOu6q2n.cjs.map → mixins-Du9HMrIG.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-CliGbcfU.cjs → notification-DR3gvWt8.cjs} +1 -1
  187. package/dist/notification-DR3gvWt8.cjs.map +1 -0
  188. package/dist/{notification-R2_Mf1HR.js → notification-eZxtr3NN.js} +4 -4
  189. package/dist/notification-eZxtr3NN.js.map +1 -0
  190. package/dist/notification.cjs +1 -1
  191. package/dist/notification.js +1 -1
  192. package/dist/{option-Db98Ndzv.cjs → option-BDOKUqTy.cjs} +1 -1
  193. package/dist/{option-Db98Ndzv.cjs.map → option-BDOKUqTy.cjs.map} +1 -1
  194. package/dist/{option-DU1X4SDu.js → option-CBEHYG4U.js} +1 -1
  195. package/dist/{option-DU1X4SDu.js.map → option-CBEHYG4U.js.map} +1 -1
  196. package/dist/option.cjs +1 -1
  197. package/dist/option.js +1 -1
  198. package/dist/overlay-DG6EeyKt.cjs +80 -0
  199. package/dist/overlay-DG6EeyKt.cjs.map +1 -0
  200. package/dist/overlay-oxM9OLXP.js +745 -0
  201. package/dist/overlay-oxM9OLXP.js.map +1 -0
  202. package/dist/overlay.cjs +1 -80
  203. package/dist/{overlay.confirm-body-BkhNvr0c.cjs → overlay.confirm-body-78e1WrN9.cjs} +2 -2
  204. package/dist/{overlay.confirm-body-BkhNvr0c.cjs.map → overlay.confirm-body-78e1WrN9.cjs.map} +1 -1
  205. package/dist/{overlay.confirm-body-uFp-0Zfh.js → overlay.confirm-body-D_P2e7l6.js} +2 -2
  206. package/dist/{overlay.confirm-body-uFp-0Zfh.js.map → overlay.confirm-body-D_P2e7l6.js.map} +1 -1
  207. package/dist/overlay.js +5 -746
  208. package/dist/{overlay.service-BcF12kGb.js → overlay.service-C8NwO4Bx.js} +2 -2
  209. package/dist/{overlay.service-BcF12kGb.js.map → overlay.service-C8NwO4Bx.js.map} +1 -1
  210. package/dist/{overlay.service-1YWfUD2S.cjs → overlay.service-DQkGPUY7.cjs} +1 -1
  211. package/dist/{overlay.service-1YWfUD2S.cjs.map → overlay.service-DQkGPUY7.cjs.map} +1 -1
  212. package/dist/page.cjs +1 -1
  213. package/dist/page.js +4 -4
  214. package/dist/{progress-C9Y2D5cm.js → progress-C4kDZfb7.js} +1 -1
  215. package/dist/{progress-C9Y2D5cm.js.map → progress-C4kDZfb7.js.map} +1 -1
  216. package/dist/{progress-DiVTGAXa.cjs → progress-CMSst_2U.cjs} +1 -1
  217. package/dist/{progress-DiVTGAXa.cjs.map → progress-CMSst_2U.cjs.map} +1 -1
  218. package/dist/progress.cjs +1 -1
  219. package/dist/progress.js +1 -1
  220. package/dist/{radio-group-CAzjBI2n.js → radio-group-DB9D2ZkA.js} +1 -1
  221. package/dist/{radio-group-CAzjBI2n.js.map → radio-group-DB9D2ZkA.js.map} +1 -1
  222. package/dist/{radio-group-DIRJyYv6.cjs → radio-group-dVUvYFq7.cjs} +1 -1
  223. package/dist/{radio-group-DIRJyYv6.cjs.map → radio-group-dVUvYFq7.cjs.map} +1 -1
  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-BFHUtZOa.js → scroll-C1klVgSQ.js} +1 -1
  233. package/dist/{scroll-BFHUtZOa.js.map → scroll-C1klVgSQ.js.map} +1 -1
  234. package/dist/{scroll-nIZyoEMt.cjs → scroll-S-bXF2u6.cjs} +1 -1
  235. package/dist/{scroll-nIZyoEMt.cjs.map → scroll-S-bXF2u6.cjs.map} +1 -1
  236. package/dist/{select-7WqaUWBU.js → select-UU2pB67h.js} +1 -1
  237. package/dist/{select-7WqaUWBU.js.map → select-UU2pB67h.js.map} +1 -1
  238. package/dist/{select-DTuf6p6T.cjs → select-fu_-rZyn.cjs} +1 -1
  239. package/dist/{select-DTuf6p6T.cjs.map → select-fu_-rZyn.cjs.map} +1 -1
  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/slider.cjs +1 -1
  245. package/dist/slider.js +1 -1
  246. package/dist/{sound.service-DyY78ukR.cjs → sound.service-DVJZb9ox.cjs} +1 -1
  247. package/dist/{sound.service-DyY78ukR.cjs.map → sound.service-DVJZb9ox.cjs.map} +1 -1
  248. package/dist/{sound.service-BIN2W7Rv.js → sound.service-v_jqCkos.js} +1 -1
  249. package/dist/{sound.service-BIN2W7Rv.js.map → sound.service-v_jqCkos.js.map} +1 -1
  250. package/dist/{splash-screen-Kr1sPtME.cjs → splash-screen-BvaDkvJU.cjs} +1 -1
  251. package/dist/{splash-screen-Kr1sPtME.cjs.map → splash-screen-BvaDkvJU.cjs.map} +1 -1
  252. package/dist/{splash-screen-BcjjJSlK.js → splash-screen-ChMkAPLU.js} +1 -1
  253. package/dist/{splash-screen-BcjjJSlK.js.map → splash-screen-ChMkAPLU.js.map} +1 -1
  254. package/dist/splash-screen.cjs +1 -1
  255. package/dist/splash-screen.js +1 -1
  256. package/dist/{src-BbMJeLk9.cjs → src-BIlD63Cz.cjs} +1 -1
  257. package/dist/{src-BbMJeLk9.cjs.map → src-BIlD63Cz.cjs.map} +1 -1
  258. package/dist/{src-DCu_mEk4.js → src-DnunCC4X.js} +37 -36
  259. package/dist/{src-DCu_mEk4.js.map → src-DnunCC4X.js.map} +1 -1
  260. package/dist/{state-nm8yzMPp.js → state-CHbIt2Dw.js} +198 -202
  261. package/dist/{state-nm8yzMPp.js.map → state-CHbIt2Dw.js.map} +1 -1
  262. package/dist/state-DcGj-pJJ.cjs +1 -0
  263. package/dist/{state-avic94Ft.cjs.map → state-DcGj-pJJ.cjs.map} +1 -1
  264. package/dist/state.cjs +1 -1
  265. package/dist/state.js +1 -1
  266. package/dist/steps.cjs +1 -1
  267. package/dist/steps.js +1 -1
  268. package/dist/{surface-BtMMHKol.js → surface-DCRy-EyT.js} +1 -1
  269. package/dist/{surface-BtMMHKol.js.map → surface-DCRy-EyT.js.map} +1 -1
  270. package/dist/{surface-CgXeKdGL.cjs → surface-DWwQDX9r.cjs} +1 -1
  271. package/dist/{surface-CgXeKdGL.cjs.map → surface-DWwQDX9r.cjs.map} +1 -1
  272. package/dist/surface.cjs +1 -1
  273. package/dist/surface.js +1 -1
  274. package/dist/switch.cjs +1 -1
  275. package/dist/switch.js +1 -1
  276. package/dist/table.cjs +1 -1
  277. package/dist/table.js +1 -1
  278. package/dist/{tabs-81ADWQqa.js → tabs-CkDNLbiS.js} +1 -1
  279. package/dist/{tabs-81ADWQqa.js.map → tabs-CkDNLbiS.js.map} +1 -1
  280. package/dist/{tabs-DnG3K0bu.cjs → tabs-lxQHWEb7.cjs} +1 -1
  281. package/dist/{tabs-DnG3K0bu.cjs.map → tabs-lxQHWEb7.cjs.map} +1 -1
  282. package/dist/tabs.cjs +1 -1
  283. package/dist/tabs.js +1 -1
  284. package/dist/teleport.cjs +1 -1
  285. package/dist/teleport.js +1 -1
  286. package/dist/{textarea-BenjiTXB.cjs → textarea-CNa4dSvF.cjs} +1 -1
  287. package/dist/{textarea-BenjiTXB.cjs.map → textarea-CNa4dSvF.cjs.map} +1 -1
  288. package/dist/{textarea-3mWewuAf.js → textarea-DkfGmRSI.js} +1 -1
  289. package/dist/{textarea-3mWewuAf.js.map → textarea-DkfGmRSI.js.map} +1 -1
  290. package/dist/textarea.cjs +1 -1
  291. package/dist/textarea.js +1 -1
  292. package/dist/{theme-DNymrucy.cjs → theme-CMyXTDht.cjs} +1 -1
  293. package/dist/{theme-DNymrucy.cjs.map → theme-CMyXTDht.cjs.map} +1 -1
  294. package/dist/{theme-CFPJW933.js → theme-CNWRYdfn.js} +3 -3
  295. package/dist/{theme-CFPJW933.js.map → theme-CNWRYdfn.js.map} +1 -1
  296. package/dist/{theme-button-DC_shZ_7.js → theme-button-CixloLin.js} +1 -1
  297. package/dist/{theme-button-DC_shZ_7.js.map → theme-button-CixloLin.js.map} +1 -1
  298. package/dist/{theme-button-ENKa3TPT.cjs → theme-button-kMhsX5Oe.cjs} +1 -1
  299. package/dist/{theme-button-ENKa3TPT.cjs.map → theme-button-kMhsX5Oe.cjs.map} +1 -1
  300. package/dist/theme-button.cjs +1 -1
  301. package/dist/theme-button.js +1 -1
  302. package/dist/theme.cjs +1 -1
  303. package/dist/theme.js +3 -3
  304. package/dist/{theme.service-BOWIT_5k.js → theme.service-CSzNkqBB.js} +1 -1
  305. package/dist/{theme.service-BOWIT_5k.js.map → theme.service-CSzNkqBB.js.map} +1 -1
  306. package/dist/{theme.service-DkdH1t60.cjs → theme.service-CnFUmUpc.cjs} +1 -1
  307. package/dist/{theme.service-DkdH1t60.cjs.map → theme.service-CnFUmUpc.cjs.map} +1 -1
  308. package/dist/tree.cjs +1 -1
  309. package/dist/tree.js +1 -1
  310. package/dist/typography.cjs +1 -1
  311. package/dist/typography.js +1 -1
  312. package/dist/{utils-D2QUu4-g.cjs.map → utils-C-Q8ePtG.cjs.map} +1 -1
  313. package/dist/{utils-Cj_nRRyx.js.map → utils-DXE5fBBd.js.map} +1 -1
  314. package/dist/utils.cjs +1 -1
  315. package/dist/utils.js +1 -1
  316. package/dist/visually-hidden.cjs +1 -1
  317. package/dist/visually-hidden.js +1 -1
  318. package/dist/{window-BTecgE_U.js → window-BcvDNi9D.js} +4 -11
  319. package/dist/window-BcvDNi9D.js.map +1 -0
  320. package/dist/{window-DGydMS0g.cjs → window-qaGFMn_4.cjs} +3 -3
  321. package/dist/window-qaGFMn_4.cjs.map +1 -0
  322. package/dist/window.cjs +1 -1
  323. package/dist/window.js +1 -1
  324. package/package.json +1 -1
  325. package/src/boat/boat.ts +0 -3
  326. package/src/breadcrumb/breadcrumb.ts +1 -0
  327. package/src/button/button.ts +1 -1
  328. package/src/button/icon-button.ts +2 -1
  329. package/src/chips/assist-chip.ts +2 -1
  330. package/src/chips/filter-chip.ts +2 -16
  331. package/src/chips/input-chip.ts +2 -5
  332. package/src/chips/suggestion-chip.ts +2 -3
  333. package/src/details/details.ts +2 -7
  334. package/src/index.ts +8 -0
  335. package/src/lightbox/lightbox.ts +3 -3
  336. package/src/notification/notification.scss +0 -1
  337. package/src/overlay/overlay.confirm-body.ts +1 -1
  338. package/src/state/index.ts +31 -9
  339. package/src/surface/surface.styles.ts +1 -45
  340. package/src/window/window.ts +0 -12
  341. package/types/src/index.d.ts +1 -0
  342. package/types/src/window/window.d.ts +0 -2
  343. package/dist/chips-CfPFXv7Z.js.map +0 -1
  344. package/dist/chips-DK6m-VCM.cjs.map +0 -1
  345. package/dist/details-BdAVsLl-.cjs.map +0 -1
  346. package/dist/details-CS_ToAOj.js.map +0 -1
  347. package/dist/input-chip-CtQ0pH5b.js.map +0 -1
  348. package/dist/input-chip-DZktYohr.cjs.map +0 -1
  349. package/dist/lightbox-CLwpaiai.js.map +0 -1
  350. package/dist/lightbox-Ck6BpN5u.cjs.map +0 -1
  351. package/dist/mixins-BOOu6q2n.cjs +0 -298
  352. package/dist/mixins-BWb9_e1s.js +0 -680
  353. package/dist/notification-CliGbcfU.cjs.map +0 -1
  354. package/dist/notification-R2_Mf1HR.js.map +0 -1
  355. package/dist/overlay.cjs.map +0 -1
  356. package/dist/overlay.js.map +0 -1
  357. package/dist/state-avic94Ft.cjs +0 -1
  358. package/dist/window-BTecgE_U.js.map +0 -1
  359. package/dist/window-DGydMS0g.cjs.map +0 -1
  360. /package/dist/agent/{flow-CvG1fLW5.js → flow-3RrZM-e7.js} +0 -0
  361. /package/dist/agent/{vendor-material-color-DcL7ZPxx.js → vendor-material-color-33Mj762T.js} +0 -0
  362. /package/dist/{rxjs-utils-Dv9T9IpA.js → rxjs-utils-Cs6XGwF6.js} +0 -0
  363. /package/dist/{rxjs-utils-BKB2UM_j.cjs → rxjs-utils-Dsj75cJy.cjs} +0 -0
  364. /package/dist/{utils-D2QUu4-g.cjs → utils-C-Q8ePtG.cjs} +0 -0
  365. /package/dist/{utils-Cj_nRRyx.js → utils-DXE5fBBd.js} +0 -0
@@ -0,0 +1,745 @@
1
+ import { c as e } from "./mixins-DCVXqL1Q.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-C8NwO4Bx.js";
7
+ import "./overlay.confirm-body-D_P2e7l6.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", "auto");
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(), this.tier === "modal" && 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 !== "popover-fui" && this.tier !== "css-anchor" || p(this._surface, "toggle").pipe(f((e) => e.newState === "closed"), g(1), v(() => {
623
+ this._closing || this.close("light-dismiss");
624
+ }), _(t)).subscribe(), this.tier === "fui-only" && p(document, "pointerdown", { capture: !0 }).pipe(f((e) => {
625
+ if (!this.dismissable) return !1;
626
+ let t = e.composedPath()[0];
627
+ return !!t && !this._surface?.contains(t) && !this._resolvedAnchor?.el?.contains(t);
628
+ }), g(1), v(() => {
629
+ this.close("backdrop");
630
+ }), _(t)).subscribe(), this.layout === "sheet" && this.dismissable && z({
631
+ surface: this._surface,
632
+ until$: h(t, this._closed$)
633
+ }).pipe(g(1)).subscribe(() => {
634
+ this.close("swipe");
635
+ }), e && (e.aborted ? queueMicrotask(() => {
636
+ this.close("abort");
637
+ }) : p(e, "abort").pipe(g(1), v(() => {
638
+ this.close("abort");
639
+ }), _(t)).subscribe());
640
+ }
641
+ wireResizeObserver(e) {
642
+ s(e).pipe(m((e) => {
643
+ let t = e[0];
644
+ if (!t) return null;
645
+ let n = t.contentRect;
646
+ return {
647
+ w: n.width,
648
+ h: n.height
649
+ };
650
+ }), 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));
651
+ }
652
+ async maybeReResolve(e) {
653
+ if (this._closing) return;
654
+ let t = V(), i = B({
655
+ anchor: this._rawAnchor,
656
+ content: {
657
+ width: e.w,
658
+ height: e.h
659
+ },
660
+ viewport: t
661
+ });
662
+ if (i === this.layout || performance.now() - this._lastReResolveAt < 600 || (a = this.layout, o = i, !(a === "centered" && o === "sheet" || a === "anchored" && o === "sheet"))) return;
663
+ var a, o;
664
+ let s = this._surface, c = s.getBoundingClientRect();
665
+ this.layout = i, await this.updateComplete;
666
+ let l = function(e, t) {
667
+ return N ? {
668
+ keyframes: [{ transform: "none" }, { transform: "none" }],
669
+ options: {
670
+ duration: 1,
671
+ easing: "linear",
672
+ fill: "forwards"
673
+ }
674
+ } : {
675
+ keyframes: [{
676
+ 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})`,
677
+ transformOrigin: "top left"
678
+ }, {
679
+ transform: "none",
680
+ transformOrigin: "top left"
681
+ }],
682
+ options: {
683
+ duration: r.duration,
684
+ easing: n(r),
685
+ fill: "forwards"
686
+ }
687
+ };
688
+ }(c, s.getBoundingClientRect());
689
+ try {
690
+ await s.animate(l.keyframes, l.options).finished;
691
+ } catch {}
692
+ this._lastReResolveAt = performance.now();
693
+ }
694
+ async playEnterAnimations() {
695
+ let e = this._surface;
696
+ if (!e) return;
697
+ let t = R(this.layout, "in"), n = [e.animate(t.keyframes, t.options).finished.catch(() => {})], r = this._backdrop;
698
+ this.modal && r && n.push(r.animate([{ opacity: 0 }, { opacity: 1 }], {
699
+ duration: t.options.duration,
700
+ easing: "ease-out",
701
+ fill: "forwards"
702
+ }).finished.catch(() => {})), await Promise.all(n);
703
+ }
704
+ async playExitAnimations() {
705
+ let e = this._surface;
706
+ if (!e) return;
707
+ let t = R(this.layout, "out"), n = [e.animate(t.keyframes, t.options).finished.catch(() => {})], r = this._backdrop;
708
+ this.modal && r && n.push(r.animate([{ opacity: 1 }, { opacity: 0 }], {
709
+ duration: t.options.duration,
710
+ easing: "ease-in",
711
+ fill: "forwards"
712
+ }).finished.catch(() => {})), await Promise.all(n);
713
+ }
714
+ };
715
+ async function Y(e, t, n) {
716
+ if (typeof (r = e) == "object" && r !== null && "_$litType$" in r) return T(e, t), t;
717
+ var r;
718
+ if (e instanceof HTMLElement) return n && Object.assign(e, n), t.appendChild(e), e;
719
+ if (function(e) {
720
+ return typeof e == "function" && ("preload" in e || "_promise" in e);
721
+ }(e)) return Y((await e()).default, t, n);
722
+ if (typeof e == "function") {
723
+ let r = new e();
724
+ return n && Object.assign(r, n), t.appendChild(r), r;
725
+ }
726
+ if (typeof e == "string") {
727
+ let r = document.createElement(e);
728
+ return n && Object.assign(r, n), t.appendChild(r), r;
729
+ }
730
+ throw Error("schmancy-overlay: unsupported content type");
731
+ }
732
+ t([b({
733
+ type: String,
734
+ reflect: !0
735
+ })], J.prototype, "layout", void 0), t([b({
736
+ type: Boolean,
737
+ reflect: !0
738
+ })], J.prototype, "dismissable", void 0), t([b({
739
+ type: Boolean,
740
+ reflect: !0
741
+ })], J.prototype, "modal", void 0), t([b({
742
+ type: String,
743
+ reflect: !0
744
+ })], 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);
745
+ export { J as t };