@mhmo91/schmancy 0.2.193 → 0.2.195

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 (354) hide show
  1. package/ai/area.md +205 -0
  2. package/ai/autocomplete.md +135 -0
  3. package/ai/avatar.md +178 -0
  4. package/ai/badge.md +100 -0
  5. package/ai/busy.md +195 -0
  6. package/ai/button.md +112 -0
  7. package/ai/card.md +155 -0
  8. package/ai/checkbox.md +108 -0
  9. package/ai/chips.md +180 -0
  10. package/ai/component-relationships.md +93 -0
  11. package/ai/content-drawer.md +190 -0
  12. package/ai/dialog.md +119 -0
  13. package/ai/dropdown.md +238 -0
  14. package/ai/form.md +148 -0
  15. package/ai/icons.md +147 -0
  16. package/ai/index.md +72 -0
  17. package/ai/input.md +167 -0
  18. package/ai/layout.md +166 -0
  19. package/ai/list.md +145 -0
  20. package/ai/menu.md +217 -0
  21. package/ai/notification.md +93 -0
  22. package/ai/radio-group.md +176 -0
  23. package/ai/select.md +174 -0
  24. package/ai/sheet.md +122 -0
  25. package/ai/store.md +235 -0
  26. package/ai/surface.md +221 -0
  27. package/ai/table.md +334 -0
  28. package/ai/tabs.md +71 -0
  29. package/ai/template.md +144 -0
  30. package/ai/textarea.md +147 -0
  31. package/ai/tooltip.md +149 -0
  32. package/ai/tree.md +279 -0
  33. package/ai/typography.md +170 -0
  34. package/dist/_headers +2 -0
  35. package/dist/ai/area.md +205 -0
  36. package/dist/ai/autocomplete.md +135 -0
  37. package/dist/ai/avatar.md +178 -0
  38. package/dist/ai/badge.md +100 -0
  39. package/dist/ai/busy.md +195 -0
  40. package/dist/ai/button.md +112 -0
  41. package/dist/ai/card.md +155 -0
  42. package/dist/ai/checkbox.md +108 -0
  43. package/dist/ai/chips.md +180 -0
  44. package/dist/ai/component-relationships.md +93 -0
  45. package/dist/ai/content-drawer.md +190 -0
  46. package/dist/ai/dialog.md +119 -0
  47. package/dist/ai/dropdown.md +238 -0
  48. package/dist/ai/form.md +148 -0
  49. package/dist/ai/icons.md +147 -0
  50. package/dist/ai/index.md +72 -0
  51. package/dist/ai/input.md +167 -0
  52. package/dist/ai/layout.md +166 -0
  53. package/dist/ai/list.md +145 -0
  54. package/dist/ai/menu.md +217 -0
  55. package/dist/ai/notification.md +93 -0
  56. package/dist/ai/radio-group.md +176 -0
  57. package/dist/ai/select.md +174 -0
  58. package/dist/ai/sheet.md +122 -0
  59. package/dist/ai/store.md +235 -0
  60. package/dist/ai/surface.md +221 -0
  61. package/dist/ai/table.md +334 -0
  62. package/dist/ai/tabs.md +71 -0
  63. package/dist/ai/template.md +144 -0
  64. package/dist/ai/textarea.md +147 -0
  65. package/dist/ai/tooltip.md +149 -0
  66. package/dist/ai/tree.md +279 -0
  67. package/dist/ai/typography.md +170 -0
  68. package/dist/{animated-text-9AM64DHd.cjs → animated-text-Bu9wh3wv.cjs} +2 -2
  69. package/dist/{animated-text-9AM64DHd.cjs.map → animated-text-Bu9wh3wv.cjs.map} +1 -1
  70. package/dist/{animated-text-CVStWn5N.js → animated-text-Ci7M0QTx.js} +3 -3
  71. package/dist/{animated-text-CVStWn5N.js.map → animated-text-Ci7M0QTx.js.map} +1 -1
  72. package/dist/animated-text.cjs +1 -1
  73. package/dist/animated-text.js +1 -1
  74. package/dist/area.cjs +1 -1
  75. package/dist/area.component-Cg9dqZJ5.cjs +8 -0
  76. package/dist/area.component-Cg9dqZJ5.cjs.map +1 -0
  77. package/dist/area.component-eJJ_wryh.js +191 -0
  78. package/dist/area.component-eJJ_wryh.js.map +1 -0
  79. package/dist/area.js +21 -6
  80. package/dist/area.js.map +1 -1
  81. package/dist/{autocomplete-DBXvIJgc.cjs → autocomplete-BH7nQbid.cjs} +2 -2
  82. package/dist/{autocomplete-DBXvIJgc.cjs.map → autocomplete-BH7nQbid.cjs.map} +1 -1
  83. package/dist/{autocomplete-ih92pPkb.js → autocomplete-D9n1MeKT.js} +3 -3
  84. package/dist/{autocomplete-ih92pPkb.js.map → autocomplete-D9n1MeKT.js.map} +1 -1
  85. package/dist/autocomplete.cjs +1 -1
  86. package/dist/autocomplete.js +1 -1
  87. package/dist/{avatar-WAIlaNJg.js → avatar-B4lSs4z5.js} +183 -145
  88. package/dist/avatar-B4lSs4z5.js.map +1 -0
  89. package/dist/{avatar-s-2jSsaH.cjs → avatar-Bg-rdjAe.cjs} +62 -24
  90. package/dist/avatar-Bg-rdjAe.cjs.map +1 -0
  91. package/dist/badge.cjs +1 -1
  92. package/dist/badge.js +1 -1
  93. package/dist/busy.cjs +1 -1
  94. package/dist/busy.js +1 -1
  95. package/dist/button.cjs +1 -1
  96. package/dist/button.js +1 -1
  97. package/dist/card.cjs +1 -1
  98. package/dist/card.js +1 -1
  99. package/dist/{checkbox-DtnX5sT6.cjs → checkbox-CgL23smr.cjs} +10 -10
  100. package/dist/{checkbox-DtnX5sT6.cjs.map → checkbox-CgL23smr.cjs.map} +1 -1
  101. package/dist/{checkbox-Jxxbjxp0.js → checkbox-y37-tGrk.js} +72 -65
  102. package/dist/{checkbox-Jxxbjxp0.js.map → checkbox-y37-tGrk.js.map} +1 -1
  103. package/dist/checkbox.cjs +1 -1
  104. package/dist/checkbox.js +1 -1
  105. package/dist/{chips-CVDnpVUM.cjs → chips-CKST7ug-.cjs} +2 -2
  106. package/dist/{chips-CVDnpVUM.cjs.map → chips-CKST7ug-.cjs.map} +1 -1
  107. package/dist/{chips-lP7ohQep.js → chips-Ndwt1V4b.js} +3 -3
  108. package/dist/{chips-lP7ohQep.js.map → chips-Ndwt1V4b.js.map} +1 -1
  109. package/dist/chips.cjs +1 -1
  110. package/dist/chips.js +1 -1
  111. package/dist/circular-progress-BDmc1zlm.cjs +9 -0
  112. package/dist/circular-progress-BDmc1zlm.cjs.map +1 -0
  113. package/dist/circular-progress-vokDGjmG.js +35 -0
  114. package/dist/circular-progress-vokDGjmG.js.map +1 -0
  115. package/dist/circular-progress.cjs +2 -0
  116. package/dist/circular-progress.cjs.map +1 -0
  117. package/dist/circular-progress.js +5 -0
  118. package/dist/circular-progress.js.map +1 -0
  119. package/dist/components.cjs +1 -1
  120. package/dist/components.js +1 -1
  121. package/dist/content-drawer.cjs +1 -1
  122. package/dist/content-drawer.js +1 -1
  123. package/dist/{date-range-Ca9WLI4Q.js → date-range-CpDVPn_v.js} +3 -3
  124. package/dist/{date-range-Ca9WLI4Q.js.map → date-range-CpDVPn_v.js.map} +1 -1
  125. package/dist/{date-range-DbPA5Y-t.cjs → date-range-DfZz3ifP.cjs} +2 -2
  126. package/dist/{date-range-DbPA5Y-t.cjs.map → date-range-DfZz3ifP.cjs.map} +1 -1
  127. package/dist/date-range.cjs +1 -1
  128. package/dist/date-range.js +1 -1
  129. package/dist/{delay-BgNgQV2G.cjs → delay-ASLyLkQL.cjs} +2 -2
  130. package/dist/{delay-BgNgQV2G.cjs.map → delay-ASLyLkQL.cjs.map} +1 -1
  131. package/dist/{delay-5cCl7ji3.js → delay-CG5SRrzF.js} +2 -2
  132. package/dist/{delay-5cCl7ji3.js.map → delay-CG5SRrzF.js.map} +1 -1
  133. package/dist/delay.cjs +1 -1
  134. package/dist/delay.js +1 -1
  135. package/dist/{dialog-content-9pumpyLD.js → dialog-content-BoPviBAt.js} +86 -82
  136. package/dist/dialog-content-BoPviBAt.js.map +1 -0
  137. package/dist/{dialog-content-qj1E8aye.cjs → dialog-content-D88EcY6L.cjs} +8 -8
  138. package/dist/dialog-content-D88EcY6L.cjs.map +1 -0
  139. package/dist/dialog.cjs +1 -1
  140. package/dist/dialog.js +1 -1
  141. package/dist/{divider-CHckHGEQ.cjs → divider-C38JDYss.cjs} +2 -2
  142. package/dist/{divider-CHckHGEQ.cjs.map → divider-C38JDYss.cjs.map} +1 -1
  143. package/dist/{divider-r8-9eNnl.js → divider-N7GWgK6o.js} +3 -3
  144. package/dist/{divider-r8-9eNnl.js.map → divider-N7GWgK6o.js.map} +1 -1
  145. package/dist/divider.cjs +1 -1
  146. package/dist/divider.js +1 -1
  147. package/dist/{dropdown-content-D-TddflQ.js → dropdown-content-DmO_yIVb.js} +3 -3
  148. package/dist/{dropdown-content-D-TddflQ.js.map → dropdown-content-DmO_yIVb.js.map} +1 -1
  149. package/dist/{dropdown-content-B41MDDRG.cjs → dropdown-content-rH8awIRA.cjs} +2 -2
  150. package/dist/{dropdown-content-B41MDDRG.cjs.map → dropdown-content-rH8awIRA.cjs.map} +1 -1
  151. package/dist/dropdown.cjs +1 -1
  152. package/dist/dropdown.js +1 -1
  153. package/dist/extra.cjs +1 -1
  154. package/dist/extra.js +1 -1
  155. package/dist/{flex-Bf0zNqji.js → flex-CXYfL6bE.js} +2 -2
  156. package/dist/{flex-Bf0zNqji.js.map → flex-CXYfL6bE.js.map} +1 -1
  157. package/dist/{flex-CFv-Zb76.cjs → flex-wYuewqrr.cjs} +2 -2
  158. package/dist/{flex-CFv-Zb76.cjs.map → flex-wYuewqrr.cjs.map} +1 -1
  159. package/dist/{form-BN75s0PI.cjs → form-CNWWdhT_.cjs} +2 -2
  160. package/dist/{form-BN75s0PI.cjs.map → form-CNWWdhT_.cjs.map} +1 -1
  161. package/dist/{form-uYcr1RLJ.js → form-q3JZjWez.js} +2 -2
  162. package/dist/{form-uYcr1RLJ.js.map → form-q3JZjWez.js.map} +1 -1
  163. package/dist/form.cjs +1 -1
  164. package/dist/form.js +1 -1
  165. package/dist/{icon-Cu-imayV.cjs → icon-QnmfHtfT.cjs} +2 -2
  166. package/dist/{icon-Cu-imayV.cjs.map → icon-QnmfHtfT.cjs.map} +1 -1
  167. package/dist/{icon-button-1tZaicyb.js → icon-button-DOTB_28y.js} +3 -3
  168. package/dist/{icon-button-1tZaicyb.js.map → icon-button-DOTB_28y.js.map} +1 -1
  169. package/dist/{icon-button-D0BbHnDL.cjs → icon-button-oAOX71_s.cjs} +2 -2
  170. package/dist/{icon-button-D0BbHnDL.cjs.map → icon-button-oAOX71_s.cjs.map} +1 -1
  171. package/dist/{icon-BR-jE0Y2.js → icon-pLQWXzo8.js} +3 -3
  172. package/dist/{icon-BR-jE0Y2.js.map → icon-pLQWXzo8.js.map} +1 -1
  173. package/dist/icons.cjs +1 -1
  174. package/dist/icons.js +1 -1
  175. package/dist/index.cjs +1 -1
  176. package/dist/index.js +190 -173
  177. package/dist/index.js.map +1 -1
  178. package/dist/{input-B2oV6Hck.cjs → input-CCniOtAr.cjs} +2 -2
  179. package/dist/{input-B2oV6Hck.cjs.map → input-CCniOtAr.cjs.map} +1 -1
  180. package/dist/{input-kiz5O3dY.js → input-DeJitVSV.js} +2 -2
  181. package/dist/{input-kiz5O3dY.js.map → input-DeJitVSV.js.map} +1 -1
  182. package/dist/input.cjs +1 -1
  183. package/dist/input.js +1 -1
  184. package/dist/layout.cjs +1 -1
  185. package/dist/layout.js +1 -1
  186. package/dist/{list-CMHoPfX9.cjs → list-Ad-24MHW.cjs} +2 -2
  187. package/dist/{list-CMHoPfX9.cjs.map → list-Ad-24MHW.cjs.map} +1 -1
  188. package/dist/{list-wT4DLXCh.js → list-Ca79GGNH.js} +2 -2
  189. package/dist/{list-wT4DLXCh.js.map → list-Ca79GGNH.js.map} +1 -1
  190. package/dist/list.cjs +1 -1
  191. package/dist/list.js +1 -1
  192. package/dist/{litElement.mixin-B9Qdq5S_.js → litElement.mixin-BoUiP2tU.js} +2 -2
  193. package/dist/{litElement.mixin-B9Qdq5S_.js.map → litElement.mixin-BoUiP2tU.js.map} +1 -1
  194. package/dist/{litElement.mixin-CHvyxfxf.cjs → litElement.mixin-qOTYSaNG.cjs} +2 -2
  195. package/dist/{litElement.mixin-CHvyxfxf.cjs.map → litElement.mixin-qOTYSaNG.cjs.map} +1 -1
  196. package/dist/{menu-BcSplMNh.cjs → menu-6Wum4ysc.cjs} +2 -2
  197. package/dist/{menu-BcSplMNh.cjs.map → menu-6Wum4ysc.cjs.map} +1 -1
  198. package/dist/{menu-Dl1QU86K.js → menu-Dd_X9oET.js} +3 -3
  199. package/dist/{menu-Dl1QU86K.js.map → menu-Dd_X9oET.js.map} +1 -1
  200. package/dist/menu.cjs +1 -1
  201. package/dist/menu.js +1 -1
  202. package/dist/nav-drawer.cjs +1 -1
  203. package/dist/nav-drawer.js +1 -1
  204. package/dist/{notification-service-CC698xHg.js → notification-service-C-9IqObm.js} +3 -3
  205. package/dist/{notification-service-CC698xHg.js.map → notification-service-C-9IqObm.js.map} +1 -1
  206. package/dist/{notification-service-BV9ybQBu.cjs → notification-service-CrNyAbmv.cjs} +2 -2
  207. package/dist/{notification-service-BV9ybQBu.cjs.map → notification-service-CrNyAbmv.cjs.map} +1 -1
  208. package/dist/notification.cjs +1 -1
  209. package/dist/notification.js +1 -1
  210. package/dist/{option-CkLBgH71.cjs → option-BbBbwrJq.cjs} +2 -2
  211. package/dist/{option-CkLBgH71.cjs.map → option-BbBbwrJq.cjs.map} +1 -1
  212. package/dist/{option-DDxxXwwc.js → option-DVSXUJ96.js} +2 -2
  213. package/dist/{option-DDxxXwwc.js.map → option-DVSXUJ96.js.map} +1 -1
  214. package/dist/option.cjs +1 -1
  215. package/dist/option.js +1 -1
  216. package/dist/{payment-card-form-DDTO5_AA.js → payment-card-form-CTjgVoJK.js} +3 -3
  217. package/dist/{payment-card-form-DDTO5_AA.js.map → payment-card-form-CTjgVoJK.js.map} +1 -1
  218. package/dist/{payment-card-form-UWbAYNPR.cjs → payment-card-form-R5wNWHAv.cjs} +2 -2
  219. package/dist/{payment-card-form-UWbAYNPR.cjs.map → payment-card-form-R5wNWHAv.cjs.map} +1 -1
  220. package/dist/{radio-button-wWoxPDfq.js → radio-button-BDAW1Euc.js} +2 -2
  221. package/dist/{radio-button-wWoxPDfq.js.map → radio-button-BDAW1Euc.js.map} +1 -1
  222. package/dist/{radio-button-BykiVxTD.cjs → radio-button-Cg1JobXT.cjs} +2 -2
  223. package/dist/{radio-button-BykiVxTD.cjs.map → radio-button-Cg1JobXT.cjs.map} +1 -1
  224. package/dist/radio-group.cjs +1 -1
  225. package/dist/radio-group.js +1 -1
  226. package/dist/{schmancy-steps-container-ByO98z7L.js → schmancy-steps-container--d7VK-QR.js} +2 -2
  227. package/dist/{schmancy-steps-container-ByO98z7L.js.map → schmancy-steps-container--d7VK-QR.js.map} +1 -1
  228. package/dist/{schmancy-steps-container-B1mIGa9M.cjs → schmancy-steps-container-BAPIxl4s.cjs} +2 -2
  229. package/dist/{schmancy-steps-container-B1mIGa9M.cjs.map → schmancy-steps-container-BAPIxl4s.cjs.map} +1 -1
  230. package/dist/{select-DE57Nios.cjs → select-CnjO7DLl.cjs} +2 -2
  231. package/dist/{select-DE57Nios.cjs.map → select-CnjO7DLl.cjs.map} +1 -1
  232. package/dist/{select-BIOhocL7.js → select-DfbOOZtm.js} +3 -3
  233. package/dist/{select-BIOhocL7.js.map → select-DfbOOZtm.js.map} +1 -1
  234. package/dist/select.cjs +1 -1
  235. package/dist/select.js +1 -1
  236. package/dist/{sheet-Dh4MLVsU.js → sheet-DhbKM9gJ.js} +3 -3
  237. package/dist/{sheet-Dh4MLVsU.js.map → sheet-DhbKM9gJ.js.map} +1 -1
  238. package/dist/{sheet-fZYAWGsm.cjs → sheet-Ds0Fp0lM.cjs} +2 -2
  239. package/dist/{sheet-fZYAWGsm.cjs.map → sheet-Ds0Fp0lM.cjs.map} +1 -1
  240. package/dist/sheet.cjs +1 -1
  241. package/dist/sheet.js +1 -1
  242. package/dist/{slider-DVlJoDgU.js → slider-Ba3AEh2W.js} +3 -3
  243. package/dist/{slider-DVlJoDgU.js.map → slider-Ba3AEh2W.js.map} +1 -1
  244. package/dist/{slider-CejrdmPF.cjs → slider-CSOzhUhA.cjs} +2 -2
  245. package/dist/{slider-CejrdmPF.cjs.map → slider-CSOzhUhA.cjs.map} +1 -1
  246. package/dist/slider.cjs +1 -1
  247. package/dist/slider.js +1 -1
  248. package/dist/{spinner-DbTnai_Q.js → spinner-BgeQqlFU.js} +3 -3
  249. package/dist/{spinner-DbTnai_Q.js.map → spinner-BgeQqlFU.js.map} +1 -1
  250. package/dist/{spinner-DxVJ7QJZ.cjs → spinner-llMfjiIc.cjs} +2 -2
  251. package/dist/{spinner-DxVJ7QJZ.cjs.map → spinner-llMfjiIc.cjs.map} +1 -1
  252. package/dist/steps.cjs +1 -1
  253. package/dist/steps.js +1 -1
  254. package/dist/surface-CT2g8fDM.cjs +92 -0
  255. package/dist/surface-CT2g8fDM.cjs.map +1 -0
  256. package/dist/surface-UcsAmLj5.js +113 -0
  257. package/dist/surface-UcsAmLj5.js.map +1 -0
  258. package/dist/surface.cjs +1 -1
  259. package/dist/surface.js +1 -1
  260. package/dist/{table-CBhyHINV.cjs → table-CSBhQ-pa.cjs} +4 -4
  261. package/dist/{table-CBhyHINV.cjs.map → table-CSBhQ-pa.cjs.map} +1 -1
  262. package/dist/{table-CqUv1TOC.js → table-DuUlrDCu.js} +72 -68
  263. package/dist/{table-CqUv1TOC.js.map → table-DuUlrDCu.js.map} +1 -1
  264. package/dist/table.cjs +1 -1
  265. package/dist/table.js +1 -1
  266. package/dist/{tabs-compatibility-DUo2f_sV.js → tabs-compatibility-BVFHArgV.js} +2 -2
  267. package/dist/{tabs-compatibility-DUo2f_sV.js.map → tabs-compatibility-BVFHArgV.js.map} +1 -1
  268. package/dist/{tabs-compatibility-DPD6jfGF.cjs → tabs-compatibility-Bt3coGzN.cjs} +2 -2
  269. package/dist/{tabs-compatibility-DPD6jfGF.cjs.map → tabs-compatibility-Bt3coGzN.cjs.map} +1 -1
  270. package/dist/tabs.cjs +1 -1
  271. package/dist/tabs.js +1 -1
  272. package/dist/tailwind.mixin-C71e_LC1.js +43 -0
  273. package/dist/{tailwind.mixin-Di7KWye7.js.map → tailwind.mixin-C71e_LC1.js.map} +1 -1
  274. package/dist/tailwind.mixin-CFCJhe5p.cjs +2 -0
  275. package/dist/{tailwind.mixin-Dm5QDZav.cjs.map → tailwind.mixin-CFCJhe5p.cjs.map} +1 -1
  276. package/dist/teleport.cjs +1 -1
  277. package/dist/teleport.js +1 -1
  278. package/dist/{textarea-Dbz18REy.js → textarea-B8eIpYa-.js} +2 -2
  279. package/dist/{textarea-Dbz18REy.js.map → textarea-B8eIpYa-.js.map} +1 -1
  280. package/dist/{textarea-CesFdBkm.cjs → textarea-CtCk_1Fq.cjs} +2 -2
  281. package/dist/{textarea-CesFdBkm.cjs.map → textarea-CtCk_1Fq.cjs.map} +1 -1
  282. package/dist/textarea.cjs +1 -1
  283. package/dist/textarea.js +1 -1
  284. package/dist/{theme-button-Bt2OV4iu.cjs → theme-button-DQe5uOxU.cjs} +2 -2
  285. package/dist/{theme-button-Bt2OV4iu.cjs.map → theme-button-DQe5uOxU.cjs.map} +1 -1
  286. package/dist/{theme-button-lqbT2_LL.js → theme-button-TEzhKUy6.js} +2 -2
  287. package/dist/{theme-button-lqbT2_LL.js.map → theme-button-TEzhKUy6.js.map} +1 -1
  288. package/dist/theme-button.cjs +1 -1
  289. package/dist/theme-button.js +1 -1
  290. package/dist/theme.cjs +1 -1
  291. package/dist/{theme.component-BlBaN7d6.cjs → theme.component-Be6M74nN.cjs} +3 -3
  292. package/dist/{theme.component-BlBaN7d6.cjs.map → theme.component-Be6M74nN.cjs.map} +1 -1
  293. package/dist/{theme.component-xarFSe8p.js → theme.component-DiTpToTC.js} +2 -2
  294. package/dist/{theme.component-xarFSe8p.js.map → theme.component-DiTpToTC.js.map} +1 -1
  295. package/dist/theme.js +1 -1
  296. package/dist/{timezone-VUMRmZaJ.cjs → timezone-C1aR24i0.cjs} +2 -2
  297. package/dist/{timezone-VUMRmZaJ.cjs.map → timezone-C1aR24i0.cjs.map} +1 -1
  298. package/dist/{timezone-DwT_pQrj.js → timezone-CBSuTrU2.js} +3 -3
  299. package/dist/{timezone-DwT_pQrj.js.map → timezone-CBSuTrU2.js.map} +1 -1
  300. package/dist/{tooltip-BKOHVCMK.js → tooltip-DYQW9R3I.js} +2 -2
  301. package/dist/{tooltip-BKOHVCMK.js.map → tooltip-DYQW9R3I.js.map} +1 -1
  302. package/dist/{tooltip-Cvoroe7w.cjs → tooltip-DYcXTtFy.cjs} +2 -2
  303. package/dist/{tooltip-Cvoroe7w.cjs.map → tooltip-DYcXTtFy.cjs.map} +1 -1
  304. package/dist/tooltip.cjs +1 -1
  305. package/dist/tooltip.js +1 -1
  306. package/dist/{tree-Cyp2AZ8g.cjs → tree-D-rTjnPs.cjs} +2 -2
  307. package/dist/{tree-Cyp2AZ8g.cjs.map → tree-D-rTjnPs.cjs.map} +1 -1
  308. package/dist/{tree-_FJnHVmP.js → tree-nsSIkdNT.js} +2 -2
  309. package/dist/{tree-_FJnHVmP.js.map → tree-nsSIkdNT.js.map} +1 -1
  310. package/dist/tree.cjs +1 -1
  311. package/dist/tree.js +1 -1
  312. package/dist/{typewriter-BIm2tOe4.cjs → typewriter-Cj0R-RDa.cjs} +2 -2
  313. package/dist/{typewriter-BIm2tOe4.cjs.map → typewriter-Cj0R-RDa.cjs.map} +1 -1
  314. package/dist/{typewriter-DWfXPBni.js → typewriter-DrYb6_FB.js} +22 -22
  315. package/dist/{typewriter-DWfXPBni.js.map → typewriter-DrYb6_FB.js.map} +1 -1
  316. package/dist/typewriter.cjs +1 -1
  317. package/dist/typewriter.js +1 -1
  318. package/dist/{typography-OpLt6LNd.cjs → typography-B0Kj2XoC.cjs} +2 -2
  319. package/dist/{typography-OpLt6LNd.cjs.map → typography-B0Kj2XoC.cjs.map} +1 -1
  320. package/dist/{typography-DaKLzjFB.js → typography-DMj2H_lZ.js} +2 -2
  321. package/dist/{typography-DaKLzjFB.js.map → typography-DMj2H_lZ.js.map} +1 -1
  322. package/dist/typography.cjs +1 -1
  323. package/dist/typography.js +1 -1
  324. package/dist/utils-BqFGvnN9.cjs +2 -0
  325. package/dist/utils-BqFGvnN9.cjs.map +1 -0
  326. package/dist/utils-jduntaQU.js +128 -0
  327. package/dist/utils-jduntaQU.js.map +1 -0
  328. package/package.json +14 -14
  329. package/types/src/area/area.component.d.ts +1 -1
  330. package/types/src/area/area.service.d.ts +72 -5
  331. package/types/src/area/index.d.ts +1 -0
  332. package/types/src/area/router.types.d.ts +41 -2
  333. package/types/src/area/utils.d.ts +91 -1
  334. package/types/src/checkbox/checkbox.d.ts +9 -0
  335. package/types/src/circular-progress/circular-progress.d.ts +15 -0
  336. package/types/src/circular-progress/index.d.ts +1 -0
  337. package/types/src/dialog/dailog.d.ts +8 -0
  338. package/types/src/dialog/dialog-service.d.ts +1 -0
  339. package/types/src/index.d.ts +1 -0
  340. package/types/src/table/table.d.ts +1 -0
  341. package/dist/area.component-CZELEuMj.js +0 -107
  342. package/dist/area.component-CZELEuMj.js.map +0 -1
  343. package/dist/area.component-grRkXEse.cjs +0 -8
  344. package/dist/area.component-grRkXEse.cjs.map +0 -1
  345. package/dist/avatar-WAIlaNJg.js.map +0 -1
  346. package/dist/avatar-s-2jSsaH.cjs.map +0 -1
  347. package/dist/dialog-content-9pumpyLD.js.map +0 -1
  348. package/dist/dialog-content-qj1E8aye.cjs.map +0 -1
  349. package/dist/surface-BTuzKmT2.cjs +0 -20
  350. package/dist/surface-BTuzKmT2.cjs.map +0 -1
  351. package/dist/surface-DXx1bJN4.js +0 -43
  352. package/dist/surface-DXx1bJN4.js.map +0 -1
  353. package/dist/tailwind.mixin-Di7KWye7.js +0 -43
  354. package/dist/tailwind.mixin-Dm5QDZav.cjs +0 -2
@@ -0,0 +1,180 @@
1
+ # Schmancy Chips - AI Reference
2
+
3
+ ```js
4
+ // Single Chip
5
+ <schmancy-chip
6
+ text="Chip Text"
7
+ variant="default|primary|secondary|success|warning|danger|info"
8
+ size="small|medium|large"
9
+ closable?
10
+ disabled?
11
+ @close=${handleClose}
12
+ @click=${handleClick}>
13
+ </schmancy-chip>
14
+
15
+ // Chip with icon
16
+ <schmancy-chip text="JavaScript">
17
+ <schmancy-icon slot="prefix" icon="code"></schmancy-icon>
18
+ </schmancy-chip>
19
+
20
+ // Chip with avatar
21
+ <schmancy-chip text="John Doe">
22
+ <schmancy-avatar slot="prefix" src="path/to/avatar.jpg" size="small"></schmancy-avatar>
23
+ </schmancy-chip>
24
+
25
+ // Chips Container
26
+ <schmancy-chips
27
+ @change=${handleSelectionChange}>
28
+ <schmancy-chip text="Option 1" value="1"></schmancy-chip>
29
+ <schmancy-chip text="Option 2" value="2"></schmancy-chip>
30
+ <schmancy-chip text="Option 3" value="3"></schmancy-chip>
31
+ </schmancy-chips>
32
+
33
+ // Chips Container with selection mode
34
+ <schmancy-chips
35
+ selection="single|multiple|none"
36
+ .value=${selectedValues}
37
+ @change=${handleSelectionChange}>
38
+ <schmancy-chip text="Red" value="red"></schmancy-chip>
39
+ <schmancy-chip text="Green" value="green"></schmancy-chip>
40
+ <schmancy-chip text="Blue" value="blue"></schmancy-chip>
41
+ </schmancy-chips>
42
+
43
+ // Input with chip creation
44
+ <schmancy-chips
45
+ input?
46
+ placeholder="Add tag..."
47
+ @add=${handleAddChip}
48
+ @remove=${handleRemoveChip}>
49
+ <schmancy-chip text="React" closable></schmancy-chip>
50
+ <schmancy-chip text="Vue" closable></schmancy-chip>
51
+ <schmancy-chip text="Angular" closable></schmancy-chip>
52
+ </schmancy-chips>
53
+
54
+ // Chip Properties
55
+ text: string // Text content of the chip
56
+ value: string // Value for selection purposes
57
+ variant: string // Visual style: "default", "primary", "secondary", etc.
58
+ size: string // Size: "small", "medium", "large"
59
+ closable: boolean // Show close button
60
+ disabled: boolean // Disable the chip
61
+ selected: boolean // Whether the chip is selected
62
+
63
+ // Chips Container Properties
64
+ selection: string // Selection mode: "none", "single", "multiple"
65
+ value: string[] // Selected values
66
+ input: boolean // Show input for adding new chips
67
+ placeholder: string // Placeholder for the input
68
+ max: number // Maximum number of chips allowed
69
+ disabled: boolean // Disable the entire container
70
+
71
+ // Chip Events
72
+ @click // Fires when chip is clicked
73
+ @close // Fires when close button is clicked
74
+ @keydown // Fires on keydown events
75
+
76
+ // Chips Container Events
77
+ @change // Fires when selection changes, with { detail: { value } }
78
+ @add // Fires when a chip is added, with { detail: { text, value } }
79
+ @remove // Fires when a chip is removed, with { detail: { text, value } }
80
+
81
+ // Examples
82
+ // Basic chips
83
+ <div>
84
+ <schmancy-chip text="Basic"></schmancy-chip>
85
+ <schmancy-chip text="Primary" variant="primary"></schmancy-chip>
86
+ <schmancy-chip text="Success" variant="success"></schmancy-chip>
87
+ <schmancy-chip text="Warning" variant="warning"></schmancy-chip>
88
+ <schmancy-chip text="Danger" variant="danger"></schmancy-chip>
89
+ </div>
90
+
91
+ // Closable chips
92
+ <div>
93
+ <schmancy-chip
94
+ text="JavaScript"
95
+ closable
96
+ @close=${() => removeTag('javascript')}>
97
+ <schmancy-icon slot="prefix" icon="code"></schmancy-icon>
98
+ </schmancy-chip>
99
+
100
+ <schmancy-chip
101
+ text="TypeScript"
102
+ closable
103
+ @close=${() => removeTag('typescript')}>
104
+ <schmancy-icon slot="prefix" icon="code"></schmancy-icon>
105
+ </schmancy-chip>
106
+ </div>
107
+
108
+ // Single selection chips
109
+ <schmancy-chips
110
+ selection="single"
111
+ .value=${[selectedSize]}
112
+ @change=${(e) => selectedSize = e.detail.value[0]}>
113
+ <schmancy-chip text="Small" value="sm"></schmancy-chip>
114
+ <schmancy-chip text="Medium" value="md"></schmancy-chip>
115
+ <schmancy-chip text="Large" value="lg"></schmancy-chip>
116
+ </schmancy-chips>
117
+
118
+ // Multiple selection chips
119
+ <schmancy-chips
120
+ selection="multiple"
121
+ .value=${selectedToppings}
122
+ @change=${(e) => selectedToppings = e.detail.value}>
123
+ <schmancy-chip text="Cheese" value="cheese"></schmancy-chip>
124
+ <schmancy-chip text="Pepperoni" value="pepperoni"></schmancy-chip>
125
+ <schmancy-chip text="Mushrooms" value="mushrooms"></schmancy-chip>
126
+ <schmancy-chip text="Onions" value="onions"></schmancy-chip>
127
+ <schmancy-chip text="Peppers" value="peppers"></schmancy-chip>
128
+ </schmancy-chips>
129
+
130
+ // Input chips for tags
131
+ <schmancy-chips
132
+ input
133
+ placeholder="Add tag..."
134
+ @add=${(e) => addTag(e.detail.text)}
135
+ @remove=${(e) => removeTag(e.detail.text)}>
136
+ ${tags.map(tag => html`
137
+ <schmancy-chip
138
+ text=${tag}
139
+ closable>
140
+ </schmancy-chip>
141
+ `)}
142
+ </schmancy-chips>
143
+
144
+ // Email recipient chips
145
+ <schmancy-chips
146
+ input
147
+ placeholder="Add recipient..."
148
+ @add=${addRecipient}
149
+ @remove=${removeRecipient}>
150
+ ${recipients.map(recipient => html`
151
+ <schmancy-chip text=${recipient.name} closable>
152
+ <schmancy-avatar
153
+ slot="prefix"
154
+ src=${recipient.avatar}
155
+ size="small">
156
+ </schmancy-avatar>
157
+ </schmancy-chip>
158
+ `)}
159
+ </schmancy-chips>
160
+
161
+ // Filter chips
162
+ <div>
163
+ <div>Filters:</div>
164
+ <schmancy-chips>
165
+ ${filters.map(filter => html`
166
+ <schmancy-chip
167
+ text=${filter.label}
168
+ closable
169
+ @close=${() => removeFilter(filter.id)}>
170
+ </schmancy-chip>
171
+ `)}
172
+
173
+ <schmancy-chip
174
+ text="Add Filter"
175
+ @click=${openFilterDialog}>
176
+ <schmancy-icon slot="prefix" icon="add"></schmancy-icon>
177
+ </schmancy-chip>
178
+ </schmancy-chips>
179
+ </div>
180
+ ```
@@ -0,0 +1,93 @@
1
+ # Schmancy Component Relationships
2
+
3
+ This document maps the relationships between Schmancy components to provide a holistic understanding of the library.
4
+
5
+ ## Component Categories
6
+
7
+ ### Core Infrastructure
8
+ - **Area**: Routing and application area management
9
+ - **Store**: State management system
10
+ - **Teleport**: Component transportation across DOM
11
+ - **RxJS Utils**: Reactive programming utilities
12
+
13
+ ### Layout Components
14
+ - **Layout**: Container layout (flex, grid)
15
+ - **Surface**: Style-able container with consistent theming
16
+ - **Card**: Content containers with various layouts
17
+ - **Divider**: Visual separation element
18
+
19
+ ### Navigation & Structure
20
+ - **Tabs**: Tabbed interface components
21
+ - **Menu**: Dropdown/contextual menus
22
+ - **Nav-Drawer**: Navigation drawer with app bar
23
+ - **Content-Drawer**: Side panel content drawers
24
+ - **Sheet**: Modal slide-up panels
25
+ - **Dialog**: Modal dialog boxes
26
+
27
+ ### Form Controls
28
+ - **Form**: Form container with validation
29
+ - **Input**: Text input fields
30
+ - **Textarea**: Multi-line text input
31
+ - **Select**: Dropdown selection
32
+ - **Autocomplete**: Text input with suggestions
33
+ - **Checkbox**: Boolean selection control
34
+ - **Radio-Group**: Exclusive option selection
35
+ - **Option**: Selection option item
36
+
37
+ ### Interactive Elements
38
+ - **Button**: Action triggers (primary, secondary, tertiary)
39
+ - **Dropdown**: Togglable content containers
40
+ - **Chips**: Compact interactive elements
41
+ - **List**: Interactive list items
42
+ - **Tree**: Hierarchical data display
43
+ - **Table**: Tabular data display
44
+
45
+ ### Feedback & Status
46
+ - **Notification**: Toast messages and alerts
47
+ - **Tooltip**: Contextual information on hover
48
+ - **Badge**: Numeric/status indicators
49
+ - **Busy**: Loading indicators
50
+ - **Avatar**: User/entity visual representation
51
+
52
+ ### Typography & Visual
53
+ - **Typography**: Text styling system
54
+ - **Icons**: Iconography system
55
+ - **Animated-Text**: Text animation utilities
56
+ - **Typewriter**: Typing animation effect
57
+
58
+ ### Utilities
59
+ - **Directives**: DOM behavior extensions
60
+ - **Theme**: Theming system
61
+ - **Theme-Button**: Theme toggle control
62
+ - **Utils**: General utility functions
63
+ - **Types**: TypeScript type definitions
64
+ - **Delay**: Timing utilities
65
+ - **Date-Range**: Date selection utilities
66
+ - **Steps**: Multi-step process visualization
67
+
68
+ ## Key Component Interactions
69
+
70
+ ### Form System Interactions
71
+ - **Form** → Contains and validates: Input, Textarea, Select, Checkbox, Radio-Group
72
+ - **Input/Select/Autocomplete** → Can contain: Icons
73
+ - **Option** → Used by: Select, Autocomplete
74
+
75
+ ### Layout System Interactions
76
+ - **Surface** → Used by: Card, Dialog, Sheet, Table
77
+ - **Layout** → Container for: most visible components
78
+ - **Card** → Contains: Card-Media, Card-Content, Card-Actions
79
+
80
+ ### Navigation System Interactions
81
+ - **Area** → Controls routing for: any component
82
+ - **Tabs** → Contains: Tab components
83
+ - **Nav-Drawer** → Contains: AppBar, Drawer, Content
84
+ - **Content-Drawer** → Specialized Sheet with context
85
+
86
+ ### State Management
87
+ - **Store** → Can be used with: any component
88
+ - **Area** → Manages routing state via reactive observables
89
+
90
+ ### Notification System
91
+ - **Notification** → Uses: Surface
92
+ - **Dialog** → Uses: Surface
93
+ - **Tooltip** → Can attach to: any component
@@ -0,0 +1,190 @@
1
+ # Content Drawer
2
+
3
+ Sliding panel system for navigation, overlays, and responsive layouts.
4
+
5
+ ## Components
6
+
7
+ ```js
8
+ // Main container that manages drawer behavior
9
+ <schmancy-content-drawer
10
+ ?open="${boolean}" // Controls drawer visibility
11
+ position="left|right|top|bottom" // Drawer position (default: left)
12
+ variant="standard|modal|persistent" // Behavior type
13
+ breakpoint="1024px" // Responsive breakpoint
14
+ ?backdrop="${boolean}" // Show backdrop when open
15
+ >
16
+ <schmancy-content-drawer-main>
17
+ // Main content that shifts when drawer opens
18
+ </schmancy-content-drawer-main>
19
+
20
+ <schmancy-content-drawer-sheet
21
+ width="256px" // Width for left/right drawers
22
+ height="auto" // Height for top/bottom drawers
23
+ offset="0" // Offset for nested drawers
24
+ >
25
+ // Drawer content
26
+ </schmancy-content-drawer-sheet>
27
+ </schmancy-content-drawer>
28
+ ```
29
+
30
+ ## Context API
31
+
32
+ ```js
33
+ import { contentDrawerContext } from '@schmancy/content-drawer'
34
+
35
+ // Create drawer controller
36
+ const drawer = contentDrawerContext.create('drawer-id')
37
+
38
+ // Control methods
39
+ drawer.open()
40
+ drawer.close()
41
+ drawer.toggle()
42
+ drawer.lock() // Prevent closing
43
+ drawer.unlock()
44
+ drawer.setPersistent(boolean)
45
+
46
+ // State access
47
+ drawer.isOpen -> boolean
48
+ drawer.state$ -> Observable<DrawerState>
49
+
50
+ // Events
51
+ @drawer-opened
52
+ @drawer-closed
53
+ @drawer-toggled -> { open: boolean }
54
+ @before-open
55
+ @before-close
56
+ ```
57
+
58
+ ## Examples
59
+
60
+ ### 1. Basic Navigation Drawer
61
+ ```html
62
+ <schmancy-content-drawer ?open="${drawerOpen}">
63
+ <schmancy-content-drawer-main>
64
+ <button @click="${() => drawerOpen = !drawerOpen}">Menu</button>
65
+ <main>App content</main>
66
+ </schmancy-content-drawer-main>
67
+
68
+ <schmancy-content-drawer-sheet width="280px">
69
+ <nav>
70
+ <a href="/home">Home</a>
71
+ <a href="/about">About</a>
72
+ </nav>
73
+ </schmancy-content-drawer-sheet>
74
+ </schmancy-content-drawer>
75
+ ```
76
+
77
+ ### 2. Bottom Sheet
78
+ ```html
79
+ <schmancy-content-drawer
80
+ ?open="${sheetOpen}"
81
+ position="bottom"
82
+ @drawer-closed="${() => sheetOpen = false}"
83
+ >
84
+ <schmancy-content-drawer-main>
85
+ <button @click="${() => sheetOpen = true}">Show Options</button>
86
+ </schmancy-content-drawer-main>
87
+
88
+ <schmancy-content-drawer-sheet height="auto" max-height="50vh">
89
+ <div class="sheet-handle"></div>
90
+ <h3>Select Option</h3>
91
+ <schmancy-list>
92
+ <schmancy-list-item>Option 1</schmancy-list-item>
93
+ <schmancy-list-item>Option 2</schmancy-list-item>
94
+ </schmancy-list>
95
+ </schmancy-content-drawer-sheet>
96
+ </schmancy-content-drawer>
97
+ ```
98
+
99
+ ### 3. Persistent Sidebar
100
+ ```js
101
+ // Responsive persistent drawer
102
+ const drawer = contentDrawerContext.create('sidebar')
103
+
104
+ // Auto-persist on large screens
105
+ const mediaQuery = window.matchMedia('(min-width: 1024px)')
106
+ drawer.setPersistent(mediaQuery.matches)
107
+ mediaQuery.addEventListener('change', e => drawer.setPersistent(e.matches))
108
+ ```
109
+
110
+ ```html
111
+ <schmancy-content-drawer
112
+ .context="${drawer}"
113
+ variant="persistent"
114
+ breakpoint="1024px"
115
+ >
116
+ <schmancy-content-drawer-main>
117
+ <schmancy-app-bar>
118
+ <schmancy-icon-button
119
+ icon="menu"
120
+ @click="${() => drawer.toggle()}"
121
+ ></schmancy-icon-button>
122
+ </schmancy-app-bar>
123
+ <main>Dashboard content</main>
124
+ </schmancy-content-drawer-main>
125
+
126
+ <schmancy-content-drawer-sheet width="240px">
127
+ <aside>Sidebar content</aside>
128
+ </schmancy-content-drawer-sheet>
129
+ </schmancy-content-drawer>
130
+ ```
131
+
132
+ ### 4. Nested Drawers
133
+ ```js
134
+ const mainDrawer = contentDrawerContext.create('main')
135
+ const subDrawer = contentDrawerContext.create('sub')
136
+ ```
137
+
138
+ ```html
139
+ <schmancy-content-drawer .context="${mainDrawer}">
140
+ <schmancy-content-drawer-main>
141
+ <!-- Nested drawer container -->
142
+ <schmancy-content-drawer .context="${subDrawer}">
143
+ <schmancy-content-drawer-main>
144
+ <button @click="${() => mainDrawer.open()}">Menu</button>
145
+ </schmancy-content-drawer-main>
146
+
147
+ <!-- Sub drawer -->
148
+ <schmancy-content-drawer-sheet width="280px" offset="240px">
149
+ <button @click="${() => subDrawer.close()}">Back</button>
150
+ <div>Sub menu content</div>
151
+ </schmancy-content-drawer-sheet>
152
+ </schmancy-content-drawer>
153
+ </schmancy-content-drawer-main>
154
+
155
+ <!-- Main drawer -->
156
+ <schmancy-content-drawer-sheet width="240px">
157
+ <button @click="${() => subDrawer.open()}">Open Submenu</button>
158
+ <div>Main menu content</div>
159
+ </schmancy-content-drawer-sheet>
160
+ </schmancy-content-drawer>
161
+ ```
162
+
163
+ ## CSS Variables
164
+
165
+ ```css
166
+ schmancy-content-drawer {
167
+ --drawer-width: 256px;
168
+ --drawer-background: var(--md-sys-color-surface);
169
+ --drawer-shadow: 0 8px 10px -5px rgba(0,0,0,0.2);
170
+ --drawer-transition-duration: 250ms;
171
+ --drawer-transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
172
+ --backdrop-color: rgba(0, 0, 0, 0.5);
173
+ --drawer-z-index: 200;
174
+ }
175
+ ```
176
+
177
+ ## Related Components
178
+
179
+ - [Sheet](./sheet.md) - Simpler sheet component for modals
180
+ - [Navigation Drawer](./nav-drawer.md) - Specialized navigation component
181
+ - [Dialog](./dialog.md) - Modal dialogs
182
+ - [Layout](./layout.md) - Layout utilities
183
+
184
+ ## Common Patterns
185
+
186
+ **Command Palette**: Top drawer with search input
187
+ **Help Panel**: Right drawer with contextual help
188
+ **Mobile Menu**: Left drawer for navigation
189
+ **Action Sheet**: Bottom drawer for mobile actions
190
+ **Settings Panel**: Persistent right drawer
@@ -0,0 +1,119 @@
1
+ # Schmancy Dialog - AI Reference
2
+
3
+ ```js
4
+ // Basic Dialog Component
5
+ <schmancy-dialog>
6
+ <!-- Dialog content goes here -->
7
+ <div>Dialog content</div>
8
+ </schmancy-dialog>
9
+
10
+ // Dialog Component Methods
11
+ dialog.show(position?) -> Promise<boolean> // Show dialog, optionally at a specific position
12
+ dialog.hide(result?) -> void // Hide dialog with optional result (true/false)
13
+
14
+ // Position can be:
15
+ // - Undefined: Centers dialog in viewport
16
+ // - Coordinates: { x: number, y: number }
17
+ // - MouseEvent: Uses click coordinates
18
+ // - TouchEvent: Uses touch coordinates
19
+
20
+ // Dialog Events
21
+ @close // Fires when dialog is closed
22
+
23
+ // Service API (higher-level abstraction with additional components)
24
+ $dialog.confirm({
25
+ title?,
26
+ message?,
27
+ confirmText?,
28
+ cancelText?,
29
+ variant?: "default"|"danger",
30
+ confirmColor?: "primary"|"error"|"warning"|"success", // Button color for confirm action
31
+ position?: {x,y}|MouseEvent|TouchEvent,
32
+ width?: string,
33
+ content?: TemplateResult|HTMLElement|Function,
34
+ onConfirm?: Function,
35
+ onCancel?: Function
36
+ }) -> Promise<boolean>
37
+
38
+ $dialog.ask(message, event?) -> Promise<boolean>
39
+ $dialog.danger({...options}) -> Promise<boolean>
40
+ $dialog.component(content, options?) -> Promise<boolean>
41
+
42
+ // Examples
43
+ // Basic dialog usage
44
+ const dialog = document.querySelector('schmancy-dialog');
45
+ // Show dialog centered
46
+ const result = await dialog.show();
47
+ // Show dialog at specific coordinates
48
+ const result = await dialog.show({ x: 100, y: 200 });
49
+ // Show dialog at click position
50
+ button.addEventListener('click', async (e) => {
51
+ const result = await dialog.show(e);
52
+ console.log('Dialog result:', result);
53
+ });
54
+
55
+ // Manually hiding dialog
56
+ dialog.hide(true); // Hide with positive result
57
+ dialog.hide(false); // Hide with negative result
58
+
59
+ // Dialog with confirm/cancel buttons
60
+ <schmancy-dialog id="confirmDialog">
61
+ <div style="padding: 16px;">
62
+ <h3>Confirm Action</h3>
63
+ <p>Are you sure you want to proceed?</p>
64
+ <div style="display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px;">
65
+ <schmancy-button variant="text" @click=${() => dialog.hide(false)}>
66
+ Cancel
67
+ </schmancy-button>
68
+ <schmancy-button variant="filled" @click=${() => dialog.hide(true)}>
69
+ Confirm
70
+ </schmancy-button>
71
+ </div>
72
+ </div>
73
+ </schmancy-dialog>
74
+
75
+ // Using the dialog service
76
+ // Simple confirmation
77
+ const confirmed = await $dialog.ask("Save changes?", event);
78
+
79
+ // Confirmation with custom options
80
+ const confirmed = await $dialog.confirm({
81
+ title: "Confirm Deletion",
82
+ message: "Are you sure you want to delete this item? This action cannot be undone.",
83
+ confirmText: "Delete",
84
+ cancelText: "Cancel",
85
+ variant: "danger",
86
+ position: event
87
+ });
88
+
89
+ // Confirmation with colored button
90
+ const confirmed = await $dialog.confirm({
91
+ title: "Delete Transaction",
92
+ message: `Are you sure you want to delete this transaction of ${amount} units?`,
93
+ confirmText: "Delete",
94
+ cancelText: "Cancel",
95
+ confirmColor: "error", // Makes confirm button red
96
+ });
97
+
98
+ // Dialog with custom content
99
+ const result = await $dialog.component(html`
100
+ <div>
101
+ <schmancy-input id="nameInput" label="Your Name"></schmancy-input>
102
+ </div>
103
+ `, {
104
+ title: "Enter Name",
105
+ confirmText: "Submit",
106
+ onConfirm: () => {
107
+ const value = document.getElementById("nameInput").value;
108
+ return value ? true : false;
109
+ }
110
+ });
111
+
112
+ // Dialog for dangerous actions
113
+ const confirmed = await $dialog.danger({
114
+ title: "Warning",
115
+ message: "You are about to delete your account. This action is permanent.",
116
+ confirmText: "Delete Account",
117
+ position: event
118
+ });
119
+ ```