@mhmo91/schmancy 0.4.1 → 0.4.3

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 (332) hide show
  1. package/dist/{animated-text-DBk95qoX.cjs → animated-text-5NJFGbRC.cjs} +2 -2
  2. package/dist/{animated-text-DBk95qoX.cjs.map → animated-text-5NJFGbRC.cjs.map} +1 -1
  3. package/dist/{animated-text-BhACpxZL.js → animated-text-C63wwL5H.js} +3 -3
  4. package/dist/{animated-text-BhACpxZL.js.map → animated-text-C63wwL5H.js.map} +1 -1
  5. package/dist/animated-text.cjs +1 -1
  6. package/dist/animated-text.js +1 -1
  7. package/dist/area.cjs +1 -1
  8. package/dist/area.component-B78lu4GT.cjs +8 -0
  9. package/dist/{area.component-CbT_WCUv.cjs.map → area.component-B78lu4GT.cjs.map} +1 -1
  10. package/dist/{area.component-DX2Y6cAp.js → area.component-mDv3w12S.js} +85 -90
  11. package/dist/{area.component-DX2Y6cAp.js.map → area.component-mDv3w12S.js.map} +1 -1
  12. package/dist/area.js +1 -1
  13. package/dist/autocomplete-BLtChct9.js +315 -0
  14. package/dist/{autocomplete-Qr_SNWus.js.map → autocomplete-BLtChct9.js.map} +1 -1
  15. package/dist/autocomplete-JjaB0OPh.cjs +73 -0
  16. package/dist/{autocomplete-ByVC8MLH.cjs.map → autocomplete-JjaB0OPh.cjs.map} +1 -1
  17. package/dist/autocomplete.cjs +1 -1
  18. package/dist/autocomplete.js +1 -1
  19. package/dist/avatar-BuCRVCII.cjs +211 -0
  20. package/dist/avatar-BuCRVCII.cjs.map +1 -0
  21. package/dist/{avatar-BFxYkrCv.js → avatar-WaHuf8DW.js} +205 -322
  22. package/dist/avatar-WaHuf8DW.js.map +1 -0
  23. package/dist/badge.cjs +1 -1
  24. package/dist/badge.js +1 -1
  25. package/dist/{boat-ZKuOCC1g.js → boat-BTnwHy3K.js} +2 -2
  26. package/dist/{boat-ZKuOCC1g.js.map → boat-BTnwHy3K.js.map} +1 -1
  27. package/dist/{boat-RaIwtGNW.cjs → boat-RjFQ6YHH.cjs} +2 -2
  28. package/dist/{boat-RaIwtGNW.cjs.map → boat-RjFQ6YHH.cjs.map} +1 -1
  29. package/dist/boat.cjs +1 -1
  30. package/dist/boat.js +1 -1
  31. package/dist/busy.cjs +1 -1
  32. package/dist/busy.js +1 -1
  33. package/dist/button.cjs +1 -1
  34. package/dist/button.js +1 -1
  35. package/dist/card.cjs +1 -1
  36. package/dist/card.js +7 -1
  37. package/dist/{checkbox-BZvRSKLj.cjs → checkbox-BdCbMFh6.cjs} +4 -4
  38. package/dist/{checkbox-BZvRSKLj.cjs.map → checkbox-BdCbMFh6.cjs.map} +1 -1
  39. package/dist/{checkbox-Cy3X3PGY.js → checkbox-C6B9Iii2.js} +34 -35
  40. package/dist/{checkbox-Cy3X3PGY.js.map → checkbox-C6B9Iii2.js.map} +1 -1
  41. package/dist/checkbox.cjs +1 -1
  42. package/dist/checkbox.js +1 -1
  43. package/dist/{chips-Y1qvw2Wa.js → chips-CLKkNCVv.js} +59 -61
  44. package/dist/{chips-Y1qvw2Wa.js.map → chips-CLKkNCVv.js.map} +1 -1
  45. package/dist/{chips-5IKm7m8x.cjs → chips-eAdPw08P.cjs} +25 -25
  46. package/dist/{chips-5IKm7m8x.cjs.map → chips-eAdPw08P.cjs.map} +1 -1
  47. package/dist/chips.cjs +1 -1
  48. package/dist/chips.js +1 -1
  49. package/dist/{circular-progress-utG8iIPV.js → circular-progress-C246y_3U.js} +3 -3
  50. package/dist/{circular-progress-utG8iIPV.js.map → circular-progress-C246y_3U.js.map} +1 -1
  51. package/dist/{circular-progress-BZwI11v0.cjs → circular-progress-E9riM09J.cjs} +2 -2
  52. package/dist/{circular-progress-BZwI11v0.cjs.map → circular-progress-E9riM09J.cjs.map} +1 -1
  53. package/dist/circular-progress.cjs +1 -1
  54. package/dist/circular-progress.js +1 -1
  55. package/dist/code-highlight.cjs +1 -1
  56. package/dist/code-highlight.js +1 -1
  57. package/dist/{code-preview-CN4mbrHE.cjs → code-preview-Cw3eINAz.cjs} +9 -9
  58. package/dist/{code-preview-CN4mbrHE.cjs.map → code-preview-Cw3eINAz.cjs.map} +1 -1
  59. package/dist/{code-preview-C_W44LD7.js → code-preview-CxDOJhpM.js} +166 -168
  60. package/dist/{code-preview-C_W44LD7.js.map → code-preview-CxDOJhpM.js.map} +1 -1
  61. package/dist/components.cjs +1 -1
  62. package/dist/components.js +1 -1
  63. package/dist/{consume-B05Dd6qy.js → consume-5D1qfVWM.js} +2 -2
  64. package/dist/{consume-B05Dd6qy.js.map → consume-5D1qfVWM.js.map} +1 -1
  65. package/dist/{consume-uKrSupzs.cjs → consume-edta5ng5.cjs} +2 -2
  66. package/dist/{consume-uKrSupzs.cjs.map → consume-edta5ng5.cjs.map} +1 -1
  67. package/dist/content-drawer.cjs +1 -1
  68. package/dist/content-drawer.js +1 -1
  69. package/dist/{context-object-CISes2bD.js → context-object-CDDP4bTk.js} +6 -8
  70. package/dist/{context-object-CISes2bD.js.map → context-object-CDDP4bTk.js.map} +1 -1
  71. package/dist/context-object-K_1gDFu-.cjs +2 -0
  72. package/dist/{context-object-CP7HbDFQ.cjs.map → context-object-K_1gDFu-.cjs.map} +1 -1
  73. package/dist/date-range-CYMv_xG-.cjs +121 -0
  74. package/dist/date-range-CYMv_xG-.cjs.map +1 -0
  75. package/dist/date-range-DStUXYx-.js +596 -0
  76. package/dist/date-range-DStUXYx-.js.map +1 -0
  77. package/dist/date-range.cjs +1 -1
  78. package/dist/date-range.js +1 -1
  79. package/dist/{delay-Cd-N6nxZ.js → delay-1MUDagyy.js} +57 -70
  80. package/dist/{delay-Cd-N6nxZ.js.map → delay-1MUDagyy.js.map} +1 -1
  81. package/dist/delay-DkQ3ZZuE.cjs +10 -0
  82. package/dist/{delay-CLGKeX0n.cjs.map → delay-DkQ3ZZuE.cjs.map} +1 -1
  83. package/dist/delay.cjs +1 -1
  84. package/dist/delay.js +1 -1
  85. package/dist/{dialog-content-C835zQHB.js → dialog-content-CXBx9Bmp.js} +9 -11
  86. package/dist/{dialog-content-C835zQHB.js.map → dialog-content-CXBx9Bmp.js.map} +1 -1
  87. package/dist/{dialog-content-DWITDRHy.cjs → dialog-content-CjgsxN8I.cjs} +4 -4
  88. package/dist/{dialog-content-DWITDRHy.cjs.map → dialog-content-CjgsxN8I.cjs.map} +1 -1
  89. package/dist/dialog-service-BgqAlT7T.cjs +2 -0
  90. package/dist/{dialog-service-Di9NiBao.cjs.map → dialog-service-BgqAlT7T.cjs.map} +1 -1
  91. package/dist/dialog-service-CnjZCTMj.js +127 -0
  92. package/dist/{dialog-service-noGCuxg1.js.map → dialog-service-CnjZCTMj.js.map} +1 -1
  93. package/dist/dialog.cjs +1 -1
  94. package/dist/dialog.js +2 -2
  95. package/dist/{divider-D7pxxtTI.js → divider-GhXZhIur.js} +3 -3
  96. package/dist/{divider-D7pxxtTI.js.map → divider-GhXZhIur.js.map} +1 -1
  97. package/dist/{divider-C7UzzgIj.cjs → divider-OSlBVpO-.cjs} +2 -2
  98. package/dist/{divider-C7UzzgIj.cjs.map → divider-OSlBVpO-.cjs.map} +1 -1
  99. package/dist/divider.cjs +1 -1
  100. package/dist/divider.js +1 -1
  101. package/dist/{dropdown-content-DJFDnoKm.js → dropdown-content-BcGSsDWz.js} +16 -20
  102. package/dist/{dropdown-content-DJFDnoKm.js.map → dropdown-content-BcGSsDWz.js.map} +1 -1
  103. package/dist/{dropdown-content-RMyyjS7G.cjs → dropdown-content-Cd1O_kVO.cjs} +4 -4
  104. package/dist/{dropdown-content-RMyyjS7G.cjs.map → dropdown-content-Cd1O_kVO.cjs.map} +1 -1
  105. package/dist/dropdown.cjs +1 -1
  106. package/dist/dropdown.js +1 -1
  107. package/dist/extra.cjs +1 -1
  108. package/dist/extra.js +1 -1
  109. package/dist/{flex-Bu7OqH-d.js → flex-BftnODFE.js} +63 -64
  110. package/dist/{flex-Bu7OqH-d.js.map → flex-BftnODFE.js.map} +1 -1
  111. package/dist/{flex-Cg_UtAIG.cjs → flex-DyHrvDQU.cjs} +10 -10
  112. package/dist/{flex-Cg_UtAIG.cjs.map → flex-DyHrvDQU.cjs.map} +1 -1
  113. package/dist/flow-D0e7hGXO.cjs +2 -0
  114. package/dist/{flow-CnJl1T1A.cjs.map → flow-D0e7hGXO.cjs.map} +1 -1
  115. package/dist/{flow-B1wMqea2.js → flow-DXYqC9OA.js} +50 -52
  116. package/dist/{flow-B1wMqea2.js.map → flow-DXYqC9OA.js.map} +1 -1
  117. package/dist/{form-WeCrsPmp.js → form-2QZDF5pF.js} +19 -28
  118. package/dist/{form-WeCrsPmp.js.map → form-2QZDF5pF.js.map} +1 -1
  119. package/dist/form-B0stbhfQ.cjs +14 -0
  120. package/dist/{form-DzfdidJO.cjs.map → form-B0stbhfQ.cjs.map} +1 -1
  121. package/dist/form.cjs +1 -1
  122. package/dist/form.js +1 -1
  123. package/dist/{icon-Be8aUtz9.js → icon-DWdq9YQM.js} +8 -9
  124. package/dist/{icon-Be8aUtz9.js.map → icon-DWdq9YQM.js.map} +1 -1
  125. package/dist/{icon-4c4f-QXa.cjs → icon-JitLog9X.cjs} +4 -4
  126. package/dist/{icon-4c4f-QXa.cjs.map → icon-JitLog9X.cjs.map} +1 -1
  127. package/dist/{icon-button-Mfs7C_ol.js → icon-button-BMkYjAl1.js} +40 -41
  128. package/dist/{icon-button-Mfs7C_ol.js.map → icon-button-BMkYjAl1.js.map} +1 -1
  129. package/dist/icon-button-em1NSoxk.cjs +69 -0
  130. package/dist/{icon-button-DNvGlOPI.cjs.map → icon-button-em1NSoxk.cjs.map} +1 -1
  131. package/dist/icons.cjs +1 -1
  132. package/dist/icons.js +1 -1
  133. package/dist/index.cjs +1 -1
  134. package/dist/index.js +167 -162
  135. package/dist/index.js.map +1 -1
  136. package/dist/{input-CpYu_aUV.js → input-6XNB7MZP.js} +86 -113
  137. package/dist/{input-CpYu_aUV.js.map → input-6XNB7MZP.js.map} +1 -1
  138. package/dist/input-BlpSg5js.cjs +111 -0
  139. package/dist/{input-CD59n3y-.cjs.map → input-BlpSg5js.cjs.map} +1 -1
  140. package/dist/input.cjs +1 -1
  141. package/dist/input.js +1 -1
  142. package/dist/layout.cjs +1 -1
  143. package/dist/layout.js +1 -1
  144. package/dist/{list-DNZhjJ-s.js → list-BxLFi3dU.js} +20 -21
  145. package/dist/{list-DNZhjJ-s.js.map → list-BxLFi3dU.js.map} +1 -1
  146. package/dist/{list-kvjz9d5N.cjs → list-CmbK_JyT.cjs} +4 -4
  147. package/dist/{list-kvjz9d5N.cjs.map → list-CmbK_JyT.cjs.map} +1 -1
  148. package/dist/list.cjs +1 -1
  149. package/dist/list.js +1 -1
  150. package/dist/{litElement.mixin-DMTxmbnz.js → litElement.mixin-BC40ZfGG.js} +2 -2
  151. package/dist/{litElement.mixin-DMTxmbnz.js.map → litElement.mixin-BC40ZfGG.js.map} +1 -1
  152. package/dist/{litElement.mixin-CrXwM_fu.cjs → litElement.mixin-BDMVhBpu.cjs} +2 -2
  153. package/dist/{litElement.mixin-CrXwM_fu.cjs.map → litElement.mixin-BDMVhBpu.cjs.map} +1 -1
  154. package/dist/media-DR_teeoc.js +185 -0
  155. package/dist/media-DR_teeoc.js.map +1 -0
  156. package/dist/media-DSVZ83aB.cjs +128 -0
  157. package/dist/media-DSVZ83aB.cjs.map +1 -0
  158. package/dist/{menu-CzoGF0Jg.js → menu-CwKx1goz.js} +3 -3
  159. package/dist/{menu-CzoGF0Jg.js.map → menu-CwKx1goz.js.map} +1 -1
  160. package/dist/{menu-DSJGu_Le.cjs → menu-DRwYeROH.cjs} +2 -2
  161. package/dist/{menu-DSJGu_Le.cjs.map → menu-DRwYeROH.cjs.map} +1 -1
  162. package/dist/menu.cjs +1 -1
  163. package/dist/menu.js +1 -1
  164. package/dist/nav-drawer.cjs +1 -1
  165. package/dist/nav-drawer.js +1 -1
  166. package/dist/{notification-service-dKoZweFH.cjs → notification-service-C6Bv3f71.cjs} +6 -6
  167. package/dist/{notification-service-dKoZweFH.cjs.map → notification-service-C6Bv3f71.cjs.map} +1 -1
  168. package/dist/{notification-service-BUZQ2nOZ.js → notification-service-ufUrNaq3.js} +4 -4
  169. package/dist/{notification-service-BUZQ2nOZ.js.map → notification-service-ufUrNaq3.js.map} +1 -1
  170. package/dist/notification.cjs +1 -1
  171. package/dist/notification.js +1 -1
  172. package/dist/{option-dBiLTB_w.js → option-CayvURH3.js} +3 -4
  173. package/dist/{option-dBiLTB_w.js.map → option-CayvURH3.js.map} +1 -1
  174. package/dist/{option-BXU6HGLZ.cjs → option-Dt7pNR-a.cjs} +3 -3
  175. package/dist/{option-BXU6HGLZ.cjs.map → option-Dt7pNR-a.cjs.map} +1 -1
  176. package/dist/option.cjs +1 -1
  177. package/dist/option.js +1 -1
  178. package/dist/{payment-card-form-Bhy7PHzr.js → payment-card-form-DPf41TU3.js} +3 -3
  179. package/dist/{payment-card-form-Bhy7PHzr.js.map → payment-card-form-DPf41TU3.js.map} +1 -1
  180. package/dist/{payment-card-form-HSho3d5z.cjs → payment-card-form-xKlOCP9C.cjs} +2 -2
  181. package/dist/{payment-card-form-HSho3d5z.cjs.map → payment-card-form-xKlOCP9C.cjs.map} +1 -1
  182. package/dist/provide-BxZ2kn_p.cjs +2 -0
  183. package/dist/{provide-BGGp1Iks.cjs.map → provide-BxZ2kn_p.cjs.map} +1 -1
  184. package/dist/{provide-hwQSumt-.js → provide-tcktw8xB.js} +41 -42
  185. package/dist/{provide-hwQSumt-.js.map → provide-tcktw8xB.js.map} +1 -1
  186. package/dist/radio-button-BWJLsF3d.cjs +41 -0
  187. package/dist/{radio-button-dwmtJ2ef.cjs.map → radio-button-BWJLsF3d.cjs.map} +1 -1
  188. package/dist/radio-button-DouFDjcL.js +151 -0
  189. package/dist/{radio-button-DDbyvXw1.js.map → radio-button-DouFDjcL.js.map} +1 -1
  190. package/dist/radio-group.cjs +1 -1
  191. package/dist/radio-group.js +1 -1
  192. package/dist/{redispatch-event-CF5ekzwZ.js → redispatch-event-BLom7yp4.js} +65 -68
  193. package/dist/{redispatch-event-CF5ekzwZ.js.map → redispatch-event-BLom7yp4.js.map} +1 -1
  194. package/dist/redispatch-event-DHcobAl6.cjs +4 -0
  195. package/dist/{redispatch-event-roczetCU.cjs.map → redispatch-event-DHcobAl6.cjs.map} +1 -1
  196. package/dist/{schmancy-steps-container-COL9P7PV.cjs → schmancy-steps-container-3-Bd627o.cjs} +3 -3
  197. package/dist/{schmancy-steps-container-COL9P7PV.cjs.map → schmancy-steps-container-3-Bd627o.cjs.map} +1 -1
  198. package/dist/{schmancy-steps-container-BrfKRYkI.js → schmancy-steps-container-CWBj3izf.js} +5 -6
  199. package/dist/{schmancy-steps-container-BrfKRYkI.js.map → schmancy-steps-container-CWBj3izf.js.map} +1 -1
  200. package/dist/{select-C6O6NRea.js → select-BjZUTKHm.js} +46 -56
  201. package/dist/{select-C6O6NRea.js.map → select-BjZUTKHm.js.map} +1 -1
  202. package/dist/select-Bv_TZZ-v.cjs +56 -0
  203. package/dist/{select-PrgXr6zf.cjs.map → select-Bv_TZZ-v.cjs.map} +1 -1
  204. package/dist/select.cjs +1 -1
  205. package/dist/select.js +1 -1
  206. package/dist/{selector-hook-B6uqLA-J.js → selector-hook-BvXML7_4.js} +61 -64
  207. package/dist/{selector-hook-B6uqLA-J.js.map → selector-hook-BvXML7_4.js.map} +1 -1
  208. package/dist/selector-hook-CYMLsOvh.cjs +2 -0
  209. package/dist/{selector-hook-CyvD9WN9.cjs.map → selector-hook-CYMLsOvh.cjs.map} +1 -1
  210. package/dist/sheet-D8SmGguy.js +141 -0
  211. package/dist/{sheet-lcz-71nv.js.map → sheet-D8SmGguy.js.map} +1 -1
  212. package/dist/sheet-tx2jWxVd.cjs +47 -0
  213. package/dist/{sheet-CNvW8vrn.cjs.map → sheet-tx2jWxVd.cjs.map} +1 -1
  214. package/dist/sheet.cjs +1 -1
  215. package/dist/sheet.js +2 -2
  216. package/dist/{slider-BNXI3Yj7.cjs → slider-Bo-4a-Ss.cjs} +8 -8
  217. package/dist/{slider-BNXI3Yj7.cjs.map → slider-Bo-4a-Ss.cjs.map} +1 -1
  218. package/dist/{slider-i-AZp4UF.js → slider-ytiEVvLJ.js} +36 -40
  219. package/dist/{slider-i-AZp4UF.js.map → slider-ytiEVvLJ.js.map} +1 -1
  220. package/dist/slider.cjs +1 -1
  221. package/dist/slider.js +1 -1
  222. package/dist/{spinner-Df6JHzWX.js → spinner-BuH3Wf-1.js} +3 -3
  223. package/dist/{spinner-Df6JHzWX.js.map → spinner-BuH3Wf-1.js.map} +1 -1
  224. package/dist/{spinner-DItpvohq.cjs → spinner-RIkASBZt.cjs} +2 -2
  225. package/dist/{spinner-DItpvohq.cjs.map → spinner-RIkASBZt.cjs.map} +1 -1
  226. package/dist/steps.cjs +1 -1
  227. package/dist/steps.js +1 -1
  228. package/dist/store.cjs +1 -1
  229. package/dist/store.js +2 -2
  230. package/dist/{surface-BaatMeqX.js → surface-Bkj3lZLo.js} +3 -3
  231. package/dist/{surface-BaatMeqX.js.map → surface-Bkj3lZLo.js.map} +1 -1
  232. package/dist/{surface-DiP3y6CA.cjs → surface-D-2akvnF.cjs} +2 -2
  233. package/dist/{surface-DiP3y6CA.cjs.map → surface-D-2akvnF.cjs.map} +1 -1
  234. package/dist/surface.cjs +1 -1
  235. package/dist/surface.js +1 -1
  236. package/dist/{table-BY56H-_F.js → table-BNUCQw-a.js} +58 -68
  237. package/dist/{table-BY56H-_F.js.map → table-BNUCQw-a.js.map} +1 -1
  238. package/dist/table-BpeeUiM1.cjs +65 -0
  239. package/dist/{table-BRQDbCA8.cjs.map → table-BpeeUiM1.cjs.map} +1 -1
  240. package/dist/table.cjs +1 -1
  241. package/dist/table.js +1 -1
  242. package/dist/{tabs-compatibility-pq--kZ3e.cjs → tabs-compatibility-CIQWnzk8.cjs} +5 -5
  243. package/dist/{tabs-compatibility-pq--kZ3e.cjs.map → tabs-compatibility-CIQWnzk8.cjs.map} +1 -1
  244. package/dist/{tabs-compatibility-qFYA1HDl.js → tabs-compatibility-c-iBrBOK.js} +20 -21
  245. package/dist/{tabs-compatibility-qFYA1HDl.js.map → tabs-compatibility-c-iBrBOK.js.map} +1 -1
  246. package/dist/tabs.cjs +1 -1
  247. package/dist/tabs.js +1 -1
  248. package/dist/tailwind.mixin-Ba46CZMW.js +43 -0
  249. package/dist/{tailwind.mixin-DbsxfE0U.js.map → tailwind.mixin-Ba46CZMW.js.map} +1 -1
  250. package/dist/tailwind.mixin-DJWjTKPc.cjs +2 -0
  251. package/dist/{tailwind.mixin-CPvz1Npj.cjs.map → tailwind.mixin-DJWjTKPc.cjs.map} +1 -1
  252. package/dist/teleport.cjs +1 -1
  253. package/dist/teleport.js +1 -1
  254. package/dist/{textarea-DPD_F-N6.cjs → textarea-DL-qgeME.cjs} +12 -12
  255. package/dist/{textarea-DPD_F-N6.cjs.map → textarea-DL-qgeME.cjs.map} +1 -1
  256. package/dist/{textarea-D2m3usht.js → textarea-jbhUeEzu.js} +31 -45
  257. package/dist/{textarea-D2m3usht.js.map → textarea-jbhUeEzu.js.map} +1 -1
  258. package/dist/textarea.cjs +1 -1
  259. package/dist/textarea.js +1 -1
  260. package/dist/{theme-button-0dEQlWtO.cjs → theme-button-BcRuHUSa.cjs} +2 -2
  261. package/dist/{theme-button-0dEQlWtO.cjs.map → theme-button-BcRuHUSa.cjs.map} +1 -1
  262. package/dist/{theme-button-ucq2VrW0.js → theme-button-CBJXLV0Z.js} +2 -2
  263. package/dist/{theme-button-ucq2VrW0.js.map → theme-button-CBJXLV0Z.js.map} +1 -1
  264. package/dist/theme-button.cjs +1 -1
  265. package/dist/theme-button.js +1 -1
  266. package/dist/theme.cjs +1 -1
  267. package/dist/{theme.component-DOSuAou9.js → theme.component-DC3WGfcn.js} +24 -25
  268. package/dist/{theme.component-DOSuAou9.js.map → theme.component-DC3WGfcn.js.map} +1 -1
  269. package/dist/{theme.component-E4gA7t5r.cjs → theme.component-DFALHVCM.cjs} +2 -2
  270. package/dist/{theme.component-E4gA7t5r.cjs.map → theme.component-DFALHVCM.cjs.map} +1 -1
  271. package/dist/theme.js +1 -1
  272. package/dist/{timezone-xOWMbSDV.js → timezone-CDz5qI2Z.js} +22 -28
  273. package/dist/{timezone-xOWMbSDV.js.map → timezone-CDz5qI2Z.js.map} +1 -1
  274. package/dist/{timezone-Bf4J_3By.cjs → timezone-IrGPq2tl.cjs} +6 -6
  275. package/dist/{timezone-Bf4J_3By.cjs.map → timezone-IrGPq2tl.cjs.map} +1 -1
  276. package/dist/{tooltip-zsp-xmPP.js → tooltip-BaX2Qoi8.js} +29 -31
  277. package/dist/{tooltip-zsp-xmPP.js.map → tooltip-BaX2Qoi8.js.map} +1 -1
  278. package/dist/tooltip-VUFi4Gjt.cjs +7 -0
  279. package/dist/{tooltip-6a1_bSeD.cjs.map → tooltip-VUFi4Gjt.cjs.map} +1 -1
  280. package/dist/tooltip.cjs +1 -1
  281. package/dist/tooltip.js +1 -1
  282. package/dist/{tree-DRa2127p.cjs → tree-Bz6GjWwf.cjs} +2 -2
  283. package/dist/{tree-DRa2127p.cjs.map → tree-Bz6GjWwf.cjs.map} +1 -1
  284. package/dist/{tree-D0FCXUWg.js → tree-DGUU6cQI.js} +2 -2
  285. package/dist/{tree-D0FCXUWg.js.map → tree-DGUU6cQI.js.map} +1 -1
  286. package/dist/tree.cjs +1 -1
  287. package/dist/tree.js +1 -1
  288. package/dist/typewriter-9XKXLbKA.cjs +21 -0
  289. package/dist/{typewriter-XTltzkLy.cjs.map → typewriter-9XKXLbKA.cjs.map} +1 -1
  290. package/dist/typewriter-BdQEQLOW.js +437 -0
  291. package/dist/{typewriter-BNTzu9jY.js.map → typewriter-BdQEQLOW.js.map} +1 -1
  292. package/dist/typewriter.cjs +1 -1
  293. package/dist/typewriter.js +1 -1
  294. package/dist/{typography-DCP0jC-m.js → typography-B1KbZvto.js} +2 -2
  295. package/dist/{typography-DCP0jC-m.js.map → typography-B1KbZvto.js.map} +1 -1
  296. package/dist/{typography-nVG55_Y6.cjs → typography-RGPsRMJw.cjs} +2 -2
  297. package/dist/{typography-nVG55_Y6.cjs.map → typography-RGPsRMJw.cjs.map} +1 -1
  298. package/dist/typography.cjs +1 -1
  299. package/dist/typography.js +1 -1
  300. package/package.json +14 -17
  301. package/dist/area.component-CbT_WCUv.cjs +0 -8
  302. package/dist/autocomplete-ByVC8MLH.cjs +0 -73
  303. package/dist/autocomplete-Qr_SNWus.js +0 -324
  304. package/dist/avatar-BFxYkrCv.js.map +0 -1
  305. package/dist/avatar-Bqohpa1o.cjs +0 -281
  306. package/dist/avatar-Bqohpa1o.cjs.map +0 -1
  307. package/dist/context-object-CP7HbDFQ.cjs +0 -2
  308. package/dist/date-range-CIn-HKuL.js +0 -637
  309. package/dist/date-range-CIn-HKuL.js.map +0 -1
  310. package/dist/date-range-Dff7Y8Ph.cjs +0 -139
  311. package/dist/date-range-Dff7Y8Ph.cjs.map +0 -1
  312. package/dist/delay-CLGKeX0n.cjs +0 -10
  313. package/dist/dialog-service-Di9NiBao.cjs +0 -2
  314. package/dist/dialog-service-noGCuxg1.js +0 -127
  315. package/dist/flow-CnJl1T1A.cjs +0 -2
  316. package/dist/form-DzfdidJO.cjs +0 -14
  317. package/dist/icon-button-DNvGlOPI.cjs +0 -69
  318. package/dist/input-CD59n3y-.cjs +0 -111
  319. package/dist/provide-BGGp1Iks.cjs +0 -2
  320. package/dist/radio-button-DDbyvXw1.js +0 -157
  321. package/dist/radio-button-dwmtJ2ef.cjs +0 -41
  322. package/dist/redispatch-event-roczetCU.cjs +0 -4
  323. package/dist/select-PrgXr6zf.cjs +0 -56
  324. package/dist/selector-hook-CyvD9WN9.cjs +0 -2
  325. package/dist/sheet-CNvW8vrn.cjs +0 -47
  326. package/dist/sheet-lcz-71nv.js +0 -146
  327. package/dist/table-BRQDbCA8.cjs +0 -65
  328. package/dist/tailwind.mixin-CPvz1Npj.cjs +0 -2
  329. package/dist/tailwind.mixin-DbsxfE0U.js +0 -43
  330. package/dist/tooltip-6a1_bSeD.cjs +0 -7
  331. package/dist/typewriter-BNTzu9jY.js +0 -436
  332. package/dist/typewriter-XTltzkLy.cjs +0 -21
@@ -1,436 +0,0 @@
1
- var Et = Object.defineProperty;
2
- var it = (s) => {
3
- throw TypeError(s);
4
- };
5
- var Nt = (s, t, e) => t in s ? Et(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
6
- var m = (s, t, e) => Nt(s, typeof t != "symbol" ? t + "" : t, e), rt = (s, t, e) => t.has(s) || it("Cannot " + e);
7
- var p = (s, t, e) => (rt(s, t, "read from private field"), e ? e.call(s) : t.get(s)), K = (s, t, e) => t.has(s) ? it("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e);
8
- var a = (s, t, e) => (rt(s, t, "access private method"), e);
9
- import { c as qt } from "./consume-B05Dd6qy.js";
10
- import "rxjs";
11
- import "lit/directives/class-map.js";
12
- import "lit/directives/style-map.js";
13
- import { $ as Lt } from "./litElement.mixin-DMTxmbnz.js";
14
- import "./tailwind.mixin-DbsxfE0U.js";
15
- import { h as xt, d as Dt } from "./delay-Cd-N6nxZ.js";
16
- import { i as Mt } from "./intersection-CJxzz8c-.js";
17
- import { css as kt, html as At } from "lit";
18
- import { property as T, query as _t, queryAssignedNodes as $t, queryAssignedElements as Ot, customElement as Ht } from "lit/decorators.js";
19
- const pt = (s) => Array.isArray(s), nt = (s) => pt(s) ? s : [s], yt = "data-typeit-id", v = "ti-cursor", Rt = { started: !1, completed: !1, frozen: !1, destroyed: !1 }, P = { breakLines: !0, cursor: { autoPause: !0, autoPauseDelay: 500, animation: { frames: [0, 0, 1].map((s) => ({ opacity: s })), options: { iterations: 1 / 0, easing: "steps(2, start)", fill: "forwards" } } }, cursorChar: "|", cursorSpeed: 1e3, deleteSpeed: null, html: !0, lifeLike: !0, loop: !1, loopDelay: 750, nextStringDelay: 750, speed: 100, startDelay: 250, startDelete: !1, strings: [], waitUntilVisible: !1, beforeString: () => {
20
- }, afterString: () => {
21
- }, beforeStep: () => {
22
- }, afterStep: () => {
23
- }, afterComplete: () => {
24
- } }, zt = `[${yt}]:before {content: '.'; display: inline-block; width: 0; visibility: hidden;}`, O = (s) => document.createElement(s), Y = (s) => document.createTextNode(s), ot = (s, t = "") => {
25
- let e = O("style");
26
- e.id = t, e.appendChild(Y(s)), document.head.appendChild(e);
27
- }, at = (s) => (pt(s) || (s = [s / 2, s / 2]), s), ht = (s, t) => Math.abs(Math.random() * (s + t - (s - t)) + (s - t));
28
- let lt = (s) => s / 2;
29
- const mt = (s) => Array.from(s);
30
- let Z = (s) => ([...s.childNodes].forEach((t) => {
31
- if (t.nodeValue) return [...t.nodeValue].forEach((e) => {
32
- t.parentNode.insertBefore(Y(e), t);
33
- }), void t.remove();
34
- Z(t);
35
- }), s);
36
- const ft = (s) => {
37
- let t = document.implementation.createHTMLDocument();
38
- return t.body.innerHTML = s, Z(t.body);
39
- };
40
- function gt(s, t = !1, e = !1) {
41
- let r, n = s.querySelector(`.${v}`), o = document.createTreeWalker(s, NodeFilter.SHOW_ALL, { acceptNode: (l) => {
42
- var u, d;
43
- if (n && e) {
44
- if ((u = l.classList) != null && u.contains(v)) return NodeFilter.FILTER_ACCEPT;
45
- if (n.contains(l)) return NodeFilter.FILTER_REJECT;
46
- }
47
- return (d = l.classList) != null && d.contains(v) ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT;
48
- } }), h = [];
49
- for (; r = o.nextNode(); ) r.originalParent || (r.originalParent = r.parentNode), h.push(r);
50
- return t ? h.reverse() : h;
51
- }
52
- function Ft(s, t = !0) {
53
- return t ? gt(ft(s)) : mt(s).map(Y);
54
- }
55
- const Bt = ({ index: s, newIndex: t, queueItems: e, cleanUp: r }) => {
56
- for (let n = s + 1; n < t + 1; n++) r(e[n][0]);
57
- }, bt = (s) => Number.isInteger(s), ut = ({ queueItems: s, selector: t, cursorPosition: e, to: r }) => {
58
- if (bt(t)) return -1 * t;
59
- let n = new RegExp("END", "i").test(r), o = t ? [...s].reverse().findIndex(({ char: h }) => {
60
- let l = h.parentElement, u = l.matches(t);
61
- return !(!n || !u) || u && l.firstChild.isSameNode(h);
62
- }) : -1;
63
- return o < 0 && (o = n ? 0 : s.length - 1), o - e + (n ? 0 : 1);
64
- }, _ = (s, t) => new Array(t).fill(s);
65
- let F = (s) => new Promise((t) => {
66
- requestAnimationFrame(async () => {
67
- t(await s());
68
- });
69
- }), ct = (s) => s == null ? void 0 : s.getAnimations().find((t) => t.id === s.dataset.tiAnimationId), wt = ({ cursor: s, frames: t, options: e }) => {
70
- let r = s.animate(t, e);
71
- return r.pause(), r.id = s.dataset.tiAnimationId, F(() => {
72
- F(() => {
73
- r.play();
74
- });
75
- }), r;
76
- }, dt = (s) => {
77
- var t;
78
- return (t = s.func) == null ? void 0 : t.call(null);
79
- }, jt = async ({ index: s, queueItems: t, wait: e, cursor: r, cursorOptions: n }) => {
80
- let o = t[s][1], h = [], l = s, u = o, d = () => u && !u.delay, c = o.shouldPauseCursor() && n.autoPause;
81
- for (; d(); ) h.push(u), d() && l++, u = t[l] ? t[l][1] : null;
82
- if (h.length) return await F(async () => {
83
- for (let E of h) await dt(E);
84
- }), l - 1;
85
- let y, b = ct(r);
86
- return b && (y = { ...b.effect.getComputedTiming(), delay: c ? n.autoPauseDelay : 0 }), await e(async () => {
87
- b && c && b.cancel(), await F(() => {
88
- dt(o);
89
- });
90
- }, o.delay), await (({ cursor: E, options: tt, cursorOptions: et }) => {
91
- if (!E || !et) return;
92
- let j, A = ct(E);
93
- A && (tt.delay = A.effect.getComputedTiming().delay, j = A.currentTime, A.cancel());
94
- let st = wt({ cursor: E, frames: et.animation.frames, options: tt });
95
- return j && (st.currentTime = j), st;
96
- })({ cursor: r, options: y, cursorOptions: n }), s;
97
- };
98
- const $ = (s) => "value" in s;
99
- let S = (s) => typeof s == "function" ? s() : s, Q = (s, t = document, e = !1) => t["querySelector" + (e ? "All" : "")](s);
100
- const N = (s, t) => Object.assign({}, s, t);
101
- let Kt = { "font-family": "", "font-weight": "", "font-size": "", "font-style": "", "line-height": "", color: "", transform: "translateX(-.125em)" };
102
- var i, It, q, U, Ct, V, W, X, H, w, vt, L, x, Tt, B, Pt, St, J, R, D, z, C, M, k, G, I;
103
- class Qt {
104
- constructor(t, e = {}) {
105
- K(this, i);
106
- m(this, "element");
107
- m(this, "timeouts");
108
- m(this, "cursorPosition");
109
- m(this, "predictedCursorPosition");
110
- m(this, "statuses", { started: !1, completed: !1, frozen: !1, destroyed: !1, firing: !1 });
111
- m(this, "opts");
112
- m(this, "id");
113
- m(this, "queue");
114
- m(this, "cursor");
115
- m(this, "flushCallback", null);
116
- m(this, "unfreeze", () => {
117
- });
118
- m(this, "is", function(t) {
119
- return this.statuses[t];
120
- });
121
- K(this, B, (t) => {
122
- this.opts.cursor = ((e) => {
123
- var r, n;
124
- if (typeof e == "object") {
125
- let o = {}, { frames: h, options: l } = P.cursor.animation;
126
- return o.animation = e.animation || {}, o.animation.frames = ((r = e.animation) == null ? void 0 : r.frames) || h, o.animation.options = N(l, ((n = e.animation) == null ? void 0 : n.options) || {}), o.autoPause = e.autoPause ?? P.cursor.autoPause, o.autoPauseDelay = e.autoPauseDelay || P.cursor.autoPauseDelay, o;
127
- }
128
- return e === !0 ? P.cursor : e;
129
- })(t.cursor ?? P.cursor), this.opts.strings = a(this, i, Pt).call(this, nt(this.opts.strings)), this.opts = N(this.opts, { html: !p(this, i, k) && this.opts.html, nextStringDelay: at(this.opts.nextStringDelay), loopDelay: at(this.opts.loopDelay) });
130
- });
131
- var r;
132
- this.opts = N(P, e), this.element = typeof (r = t) == "string" ? Q(r) : r, this.timeouts = [], this.cursorPosition = 0, this.unfreeze = () => {
133
- }, this.predictedCursorPosition = null, this.statuses = N({}, Rt), this.id = Math.random().toString().substring(2, 9), this.queue = function(n) {
134
- let o = function(c) {
135
- return nt(c).forEach((y) => {
136
- var b;
137
- return d.set(Symbol((b = y.char) == null ? void 0 : b.innerText), h({ ...y }));
138
- }), this;
139
- }, h = (c) => (c.shouldPauseCursor = function() {
140
- return !!(this.typeable || this.cursorable || this.deletable);
141
- }, c), l = () => d, u = () => Array.from(d.values()), d = /* @__PURE__ */ new Map();
142
- return o(n), { add: o, set: function(c, y) {
143
- let b = [...d.keys()];
144
- d.set(b[c], h(y));
145
- }, wipe: function() {
146
- d = /* @__PURE__ */ new Map(), o(n);
147
- }, done: (c, y = !1) => y ? d.delete(c) : d.get(c).done = !0, reset: function() {
148
- d.forEach((c) => delete c.done);
149
- }, destroy: (c) => d.delete(c), getItems: (c = !1) => c ? u() : u().filter((y) => !y.done), getQueue: l, getTypeable: () => u().filter((c) => c.typeable), getPendingQueueItems: () => {
150
- const c = [];
151
- for (let [, y] of l()) y.done || c.push(y);
152
- return c;
153
- } };
154
- }([{ delay: this.opts.startDelay }]), p(this, B).call(this, e), this.cursor = a(this, i, St).call(this), this.element.dataset.typeitId = this.id, ot(zt), this.opts.strings.length && a(this, i, Tt).call(this);
155
- }
156
- go() {
157
- return this.statuses.started ? this : (a(this, i, X).call(this), this.opts.waitUntilVisible ? (t = this.element, e = a(this, i, q).bind(this), new IntersectionObserver((r, n) => {
158
- r.forEach((o) => {
159
- o.isIntersecting && (e(), n.unobserve(t));
160
- });
161
- }, { threshold: 1 }).observe(t), this) : (a(this, i, q).call(this), this));
162
- var t, e;
163
- }
164
- destroy(t = !0) {
165
- this.timeouts = (this.timeouts.forEach(clearTimeout), []), S(t) && this.cursor && a(this, i, z).call(this, this.cursor), this.statuses.destroyed = !0;
166
- }
167
- reset(t) {
168
- !this.is("destroyed") && this.destroy(), t ? (this.queue.wipe(), t(this)) : this.queue.reset(), this.cursorPosition = 0;
169
- for (let e in this.statuses) this.statuses[e] = !1;
170
- return this.element[a(this, i, H).call(this) ? "value" : "innerHTML"] = "", this;
171
- }
172
- type(t, e = {}) {
173
- t = S(t);
174
- let { instant: r } = e, n = a(this, i, L).call(this, e), o = Ft(t, this.opts.html).map((l) => {
175
- return { func: () => a(this, i, R).call(this, l), char: l, delay: r || (u = l, /<(.+)>(.*?)<\/(.+)>/.test(u.outerHTML)) ? 0 : a(this, i, C).call(this), typeable: l.nodeType === Node.TEXT_NODE };
176
- var u;
177
- }), h = [n[0], { func: async () => await this.opts.beforeString(t, this) }, ...o, { func: async () => await this.opts.afterString(t, this) }, n[1]];
178
- return a(this, i, w).call(this, h, e);
179
- }
180
- break(t = {}) {
181
- return a(this, i, w).call(this, { func: () => a(this, i, R).call(this, O("BR")), typeable: !0 }, t);
182
- }
183
- move(t, e = {}) {
184
- t = S(t);
185
- let r = a(this, i, L).call(this, e), { instant: n, to: o } = e, h = ut({ queueItems: this.queue.getTypeable(), selector: t === null ? "" : t, to: o, cursorPosition: p(this, i, M) }), l = h < 0 ? -1 : 1;
186
- return this.predictedCursorPosition = p(this, i, M) + h, a(this, i, w).call(this, [r[0], ..._({ func: () => a(this, i, U).call(this, l), delay: n ? 0 : a(this, i, C).call(this), cursorable: !0 }, Math.abs(h)), r[1]], e);
187
- }
188
- exec(t, e = {}) {
189
- let r = a(this, i, L).call(this, e);
190
- return a(this, i, w).call(this, [r[0], { func: () => t(this) }, r[1]], e);
191
- }
192
- options(t, e = {}) {
193
- return t = S(t), a(this, i, x).call(this, t), a(this, i, w).call(this, {}, e);
194
- }
195
- pause(t, e = {}) {
196
- return a(this, i, w).call(this, { delay: S(t) }, e);
197
- }
198
- delete(t = null, e = {}) {
199
- t = S(t);
200
- let r = a(this, i, L).call(this, e), n = t, { instant: o, to: h } = e, l = this.queue.getTypeable(), u = n === null ? l.length : bt(n) ? n : ut({ queueItems: l, selector: n, cursorPosition: p(this, i, M), to: h });
201
- return a(this, i, w).call(this, [r[0], ..._({ func: a(this, i, D).bind(this), delay: o ? 0 : a(this, i, C).call(this, 1), deletable: !0 }, u), r[1]], e);
202
- }
203
- freeze() {
204
- this.statuses.frozen = !0;
205
- }
206
- flush(t = null) {
207
- return this.flushCallback = t || this.flushCallback, this.statuses.firing || (a(this, i, X).call(this), a(this, i, q).call(this, !1).then(() => {
208
- if (this.queue.getPendingQueueItems().length > 0) return this.flush();
209
- this.flushCallback(), this.flushCallback = null;
210
- })), this;
211
- }
212
- getQueue() {
213
- return this.queue;
214
- }
215
- getOptions() {
216
- return this.opts;
217
- }
218
- updateOptions(t) {
219
- return a(this, i, x).call(this, t);
220
- }
221
- getElement() {
222
- return this.element;
223
- }
224
- empty(t = {}) {
225
- return a(this, i, w).call(this, { func: a(this, i, It).bind(this) }, t);
226
- }
227
- }
228
- i = new WeakSet(), It = async function() {
229
- a(this, i, H).call(this) ? this.element.value = "" : p(this, i, I).forEach(a(this, i, z).bind(this));
230
- }, q = async function(t = !0) {
231
- this.statuses.started = !0, this.statuses.firing = !0;
232
- let e = (r) => {
233
- this.queue.done(r, !t);
234
- };
235
- try {
236
- let r = [...this.queue.getQueue()];
237
- for (let o = 0; o < r.length; o++) {
238
- let [h, l] = r[o];
239
- if (!l.done) {
240
- if (!l.deletable || l.deletable && p(this, i, I).length) {
241
- let u = await a(this, i, V).call(this, o, r);
242
- Bt({ index: o, newIndex: u, queueItems: r, cleanUp: e }), o = u;
243
- }
244
- e(h);
245
- }
246
- }
247
- if (!t) return this.statuses.firing = !1, this;
248
- if (this.statuses.completed = !0, this.statuses.firing = !1, await this.opts.afterComplete(this), !this.opts.loop) throw "";
249
- let n = this.opts.loopDelay;
250
- a(this, i, W).call(this, async () => {
251
- await a(this, i, Ct).call(this, n[0]), a(this, i, q).call(this);
252
- }, n[1]);
253
- } catch {
254
- }
255
- return this.statuses.firing = !1, this;
256
- }, U = async function(t) {
257
- var e, r, n;
258
- this.cursorPosition = (e = t, r = this.cursorPosition, n = p(this, i, I), Math.min(Math.max(r + e, 0), n.length)), ((o, h, l) => {
259
- let u = h[l - 1], d = Q(`.${v}`, o);
260
- (o = (u == null ? void 0 : u.parentNode) || o).insertBefore(d, u || null);
261
- })(this.element, p(this, i, I), this.cursorPosition);
262
- }, Ct = async function(t) {
263
- let e = p(this, i, M);
264
- e && await a(this, i, U).call(this, { value: e });
265
- let r = p(this, i, I).map((n) => [Symbol(), { func: a(this, i, D).bind(this), delay: a(this, i, C).call(this, 1), deletable: !0, shouldPauseCursor: () => !0 }]);
266
- for (let n = 0; n < r.length; n++) await a(this, i, V).call(this, n, r);
267
- this.queue.reset(), this.queue.set(0, { delay: t });
268
- }, V = function(t, e) {
269
- return jt({ index: t, queueItems: e, wait: a(this, i, W).bind(this), cursor: this.cursor, cursorOptions: this.opts.cursor });
270
- }, W = async function(t, e, r = !1) {
271
- this.statuses.frozen && await new Promise((n) => {
272
- this.unfreeze = () => {
273
- this.statuses.frozen = !1, n();
274
- };
275
- }), r || await this.opts.beforeStep(this), await ((n, o, h) => new Promise((l) => {
276
- h.push(setTimeout(async () => {
277
- await n(), l();
278
- }, o || 0));
279
- }))(t, e, this.timeouts), r || await this.opts.afterStep(this);
280
- }, X = async function() {
281
- if (!a(this, i, H).call(this) && this.cursor && this.element.appendChild(this.cursor), p(this, i, G)) {
282
- ((n, o) => {
283
- let h = `[${yt}='${n}'] .${v}`, l = getComputedStyle(o), u = Object.entries(Kt).reduce((d, [c, y]) => `${d} ${c}: var(--ti-cursor-${c}, ${y || l[c]});`, "");
284
- ot(`${h} { display: inline-block; width: 0; ${u} }`, n);
285
- })(this.id, this.element), this.cursor.dataset.tiAnimationId = this.id;
286
- let { animation: t } = this.opts.cursor, { frames: e, options: r } = t;
287
- wt({ frames: e, cursor: this.cursor, options: { duration: this.opts.cursorSpeed, ...r } });
288
- }
289
- }, H = function() {
290
- return $(this.element);
291
- }, w = function(t, e) {
292
- return this.queue.add(t), a(this, i, vt).call(this, e), this;
293
- }, vt = function(t = {}) {
294
- let e = t.delay;
295
- e && this.queue.add({ delay: e });
296
- }, L = function(t = {}) {
297
- return [{ func: () => a(this, i, x).call(this, t) }, { func: () => a(this, i, x).call(this, this.opts) }];
298
- }, x = async function(t) {
299
- this.opts = N(this.opts, t);
300
- }, Tt = function() {
301
- let t = this.opts.strings.filter((e) => !!e);
302
- t.forEach((e, r) => {
303
- if (this.type(e), r + 1 === t.length) return;
304
- let n = this.opts.breakLines ? [{ func: () => a(this, i, R).call(this, O("BR")), typeable: !0 }] : _({ func: a(this, i, D).bind(this), delay: a(this, i, C).call(this, 1) }, this.queue.getTypeable().length);
305
- a(this, i, J).call(this, n);
306
- });
307
- }, B = new WeakMap(), Pt = function(t) {
308
- let e = this.element.innerHTML;
309
- return e ? (this.element.innerHTML = "", this.opts.startDelete ? (this.element.innerHTML = e, Z(this.element), a(this, i, J).call(this, _({ func: a(this, i, D).bind(this), delay: a(this, i, C).call(this, 1), deletable: !0 }, p(this, i, I).length)), t) : (r = e, r.replace(/<!--(.+?)-->/g, "").trim().split(/<br(?:\s*?)(?:\/)?>/)).concat(t)) : t;
310
- var r;
311
- }, St = function() {
312
- if (p(this, i, k)) return null;
313
- let t = O("span");
314
- return t.className = v, p(this, i, G) ? (t.innerHTML = ft(this.opts.cursorChar).innerHTML, t) : (t.style.visibility = "hidden", t);
315
- }, J = function(t) {
316
- let e = this.opts.nextStringDelay;
317
- this.queue.add([{ delay: e[0] }, ...t, { delay: e[1] }]);
318
- }, R = function(t) {
319
- ((e, r) => {
320
- if ($(e)) return void (e.value = `${e.value}${r.textContent}`);
321
- r.innerHTML = "";
322
- let n = (o = r.originalParent, /body/i.test(o == null ? void 0 : o.tagName) ? e : r.originalParent || e);
323
- var o;
324
- let h = Q("." + v, n) || null;
325
- h && h.parentElement !== n && (n = h.parentElement), n.insertBefore(r, h);
326
- })(this.element, t);
327
- }, D = function() {
328
- p(this, i, I).length && (p(this, i, k) ? this.element.value = this.element.value.slice(0, -1) : a(this, i, z).call(this, p(this, i, I)[this.cursorPosition]));
329
- }, z = function(t) {
330
- ((e, r) => {
331
- if (!e) return;
332
- let n = e.parentNode;
333
- (n.childNodes.length > 1 || n.isSameNode(r) ? e : n).remove();
334
- })(t, this.element);
335
- }, C = function(t = 0) {
336
- return function(e) {
337
- let { speed: r, deleteSpeed: n, lifeLike: o } = e;
338
- return n = n !== null ? n : r / 3, o ? [ht(r, lt(r)), ht(n, lt(n))] : [r, n];
339
- }(this.opts)[t];
340
- }, M = function() {
341
- return this.predictedCursorPosition ?? this.cursorPosition;
342
- }, k = function() {
343
- return $(this.element);
344
- }, G = function() {
345
- return !!this.opts.cursor && !p(this, i, k);
346
- }, I = function() {
347
- return t = this.element, $(t) ? mt(t.value) : gt(t, !0).filter((e) => !(e.childNodes.length > 0));
348
- var t;
349
- };
350
- var Ut = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, g = (s, t, e, r) => {
351
- for (var n, o = r > 1 ? void 0 : r ? Vt(t, e) : t, h = s.length - 1; h >= 0; h--) (n = s[h]) && (o = (r ? n(t, e, o) : n(o)) || o);
352
- return r && o && Ut(t, e, o), o;
353
- };
354
- let f = class extends Lt(kt`
355
- :host {
356
- display: inherit;
357
- }
358
-
359
- #typewriter {
360
- --ti-cursor-display: initial;
361
- }
362
-
363
- #typewriter .ti-cursor {
364
- display: var(--ti-cursor-display);
365
- }
366
- `) {
367
- constructor() {
368
- super(...arguments), this.speed = 50, this.delay = 0, this.autoStart = !0, this.cursorChar = "", this.deleteSpeed = 25, this.once = !0, this.typeItInstance = null, this.sessionKey = "";
369
- }
370
- disconnectedCallback() {
371
- super.disconnectedCallback(), this._destroyTypeIt();
372
- }
373
- _startTyping() {
374
- var t, e, r;
375
- if (this._destroyTypeIt(), this.sessionKey = this.generateSessionKey(), this.once && sessionStorage.getItem(this.sessionKey) === "true") return void ((e = (t = this.shadowRoot) == null ? void 0 : t.querySelector("slot")) == null ? void 0 : e.removeAttribute("hidden"));
376
- if (!this.typewriterContainer) return;
377
- const s = { speed: this.speed, startDelay: this.delay, cursor: !!this.cursorChar, cursorChar: this.cursorChar, deleteSpeed: this.deleteSpeed, afterComplete: () => {
378
- if (this.once) try {
379
- sessionStorage.setItem(this.sessionKey, "true");
380
- } catch {
381
- }
382
- this.dispatchEvent(new CustomEvent("typeit-complete", { bubbles: !0, composed: !0 })), this.typewriterContainer.style.setProperty("--ti-cursor-display", "none");
383
- } };
384
- this.typeItInstance = new Qt(this.typewriterContainer, s), this._getSlottedNodes.forEach((n) => {
385
- var o;
386
- n.nodeType === Node.TEXT_NODE ? (o = this.typeItInstance) == null || o.type(n.textContent || "") : n instanceof HTMLElement && this._processCustomElement(n);
387
- }), Mt((r = this.shadowRoot) == null ? void 0 : r.host).subscribe(() => {
388
- var n;
389
- (n = this.typeItInstance) == null || n.go();
390
- });
391
- }
392
- generateSessionKey() {
393
- const s = this._getSlottedElements.map((t) => t.outerHTML).join("");
394
- return this.once ? xt(s) : "";
395
- }
396
- _destroyTypeIt() {
397
- if (this.typeItInstance) {
398
- try {
399
- this.typeItInstance.destroy();
400
- } catch {
401
- }
402
- this.typeItInstance = null;
403
- }
404
- }
405
- _processCustomElement(s) {
406
- var r, n, o;
407
- const t = s.getAttribute("action"), e = s.getAttribute("value");
408
- switch (t) {
409
- case "pause":
410
- (r = this.typeItInstance) == null || r.pause(parseInt(e || "0", 10));
411
- break;
412
- case "delete":
413
- (n = this.typeItInstance) == null || n.delete(parseInt(e || "0", 10));
414
- break;
415
- default:
416
- s.tagName === "P" && this.typeItInstance.break(), (o = this.typeItInstance) == null || o.type(s.textContent || "");
417
- }
418
- }
419
- render() {
420
- return At`<div id="typewriter" aria-live="polite"></div>
421
-
422
- <div class="typewriter">
423
- <slot
424
- hidden
425
- @slotchange=${() => {
426
- this._startTyping();
427
- }}
428
- ></slot>
429
- </div> `;
430
- }
431
- };
432
- g([T({ type: Number })], f.prototype, "speed", 2), g([qt({ context: Dt, subscribe: !0 }), T({ type: Number })], f.prototype, "delay", 2), g([T({ type: Boolean })], f.prototype, "autoStart", 2), g([T({ type: String })], f.prototype, "cursorChar", 2), g([T({ type: Number })], f.prototype, "deleteSpeed", 2), g([T({ type: Boolean })], f.prototype, "once", 2), g([_t("#typewriter")], f.prototype, "typewriterContainer", 2), g([$t({ flatten: !0 })], f.prototype, "_getSlottedNodes", 2), g([Ot({ flatten: !0 })], f.prototype, "_getSlottedElements", 2), f = g([Ht("schmancy-typewriter")], f);
433
- export {
434
- f as T
435
- };
436
- //# sourceMappingURL=typewriter-BNTzu9jY.js.map
@@ -1,21 +0,0 @@
1
- "use strict";var qe=Object.defineProperty;var se=s=>{throw TypeError(s)};var Ne=(s,e,t)=>e in s?qe(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var m=(s,e,t)=>Ne(s,typeof e!="symbol"?e+"":e,t),ie=(s,e,t)=>e.has(s)||se("Cannot "+t);var d=(s,e,t)=>(ie(s,e,"read from private field"),t?t.call(s):e.get(s)),j=(s,e,t)=>e.has(s)?se("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t);var a=(s,e,t)=>(ie(s,e,"access private method"),t);const Le=require("./consume-uKrSupzs.cjs");require("rxjs"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const xe=require("./litElement.mixin-CrXwM_fu.cjs");require("./tailwind.mixin-CPvz1Npj.cjs");const re=require("./delay-CLGKeX0n.cjs"),De=require("./intersection-CVvaDv96.cjs"),ne=require("lit"),f=require("lit/decorators.js"),ye=s=>Array.isArray(s),oe=s=>ye(s)?s:[s],me="data-typeit-id",E="ti-cursor",Me={started:!1,completed:!1,frozen:!1,destroyed:!1},C={breakLines:!0,cursor:{autoPause:!0,autoPauseDelay:500,animation:{frames:[0,0,1].map(s=>({opacity:s})),options:{iterations:1/0,easing:"steps(2, start)",fill:"forwards"}}},cursorChar:"|",cursorSpeed:1e3,deleteSpeed:null,html:!0,lifeLike:!0,loop:!1,loopDelay:750,nextStringDelay:750,speed:100,startDelay:250,startDelete:!1,strings:[],waitUntilVisible:!1,beforeString:()=>{},afterString:()=>{},beforeStep:()=>{},afterStep:()=>{},afterComplete:()=>{}},ke=`[${me}]:before {content: '.'; display: inline-block; width: 0; visibility: hidden;}`,$=s=>document.createElement(s),G=s=>document.createTextNode(s),ae=(s,e="")=>{let t=$("style");t.id=e,t.appendChild(G(s)),document.head.appendChild(t)},le=s=>(ye(s)||(s=[s/2,s/2]),s),ue=(s,e)=>Math.abs(Math.random()*(s+e-(s-e))+(s-e));let he=s=>s/2;const fe=s=>Array.from(s);let Y=s=>([...s.childNodes].forEach(e=>{if(e.nodeValue)return[...e.nodeValue].forEach(t=>{e.parentNode.insertBefore(G(t),e)}),void e.remove();Y(e)}),s);const ge=s=>{let e=document.implementation.createHTMLDocument();return e.body.innerHTML=s,Y(e.body)};function be(s,e=!1,t=!1){let r,n=s.querySelector(`.${E}`),o=document.createTreeWalker(s,NodeFilter.SHOW_ALL,{acceptNode:u=>{var h,p;if(n&&t){if((h=u.classList)!=null&&h.contains(E))return NodeFilter.FILTER_ACCEPT;if(n.contains(u))return NodeFilter.FILTER_REJECT}return(p=u.classList)!=null&&p.contains(E)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),l=[];for(;r=o.nextNode();)r.originalParent||(r.originalParent=r.parentNode),l.push(r);return e?l.reverse():l}function Ae(s,e=!0){return e?be(ge(s)):fe(s).map(G)}const _e=({index:s,newIndex:e,queueItems:t,cleanUp:r})=>{for(let n=s+1;n<e+1;n++)r(t[n][0])},we=s=>Number.isInteger(s),ce=({queueItems:s,selector:e,cursorPosition:t,to:r})=>{if(we(e))return-1*e;let n=new RegExp("END","i").test(r),o=e?[...s].reverse().findIndex(({char:l})=>{let u=l.parentElement,h=u.matches(e);return!(!n||!h)||h&&u.firstChild.isSameNode(l)}):-1;return o<0&&(o=n?0:s.length-1),o-t+(n?0:1)},A=(s,e)=>new Array(e).fill(s);let F=s=>new Promise(e=>{requestAnimationFrame(async()=>{e(await s())})}),pe=s=>s==null?void 0:s.getAnimations().find(e=>e.id===s.dataset.tiAnimationId),Te=({cursor:s,frames:e,options:t})=>{let r=s.animate(e,t);return r.pause(),r.id=s.dataset.tiAnimationId,F(()=>{F(()=>{r.play()})}),r},de=s=>{var e;return(e=s.func)==null?void 0:e.call(null)},$e=async({index:s,queueItems:e,wait:t,cursor:r,cursorOptions:n})=>{let o=e[s][1],l=[],u=s,h=o,p=()=>h&&!h.delay,c=o.shouldPauseCursor()&&n.autoPause;for(;p();)l.push(h),p()&&u++,h=e[u]?e[u][1]:null;if(l.length)return await F(async()=>{for(let P of l)await de(P)}),u-1;let y,b=pe(r);return b&&(y={...b.effect.getComputedTiming(),delay:c?n.autoPauseDelay:0}),await t(async()=>{b&&c&&b.cancel(),await F(()=>{de(o)})},o.delay),await(({cursor:P,options:Z,cursorOptions:ee})=>{if(!P||!ee)return;let B,k=pe(P);k&&(Z.delay=k.effect.getComputedTiming().delay,B=k.currentTime,k.cancel());let te=Te({cursor:P,frames:ee.animation.frames,options:Z});return B&&(te.currentTime=B),te})({cursor:r,options:y,cursorOptions:n}),s};const _=s=>"value"in s;let v=s=>typeof s=="function"?s():s,K=(s,e=document,t=!1)=>e["querySelector"+(t?"All":"")](s);const S=(s,e)=>Object.assign({},s,e);let Oe={"font-family":"","font-weight":"","font-size":"","font-style":"","line-height":"",color:"",transform:"translateX(-.125em)"};var i,Ie,q,Q,Ee,U,V,X,O,w,Ce,N,L,ve,R,Pe,Se,J,H,x,z,I,D,M,W,T;class He{constructor(e,t={}){j(this,i);m(this,"element");m(this,"timeouts");m(this,"cursorPosition");m(this,"predictedCursorPosition");m(this,"statuses",{started:!1,completed:!1,frozen:!1,destroyed:!1,firing:!1});m(this,"opts");m(this,"id");m(this,"queue");m(this,"cursor");m(this,"flushCallback",null);m(this,"unfreeze",()=>{});m(this,"is",function(e){return this.statuses[e]});j(this,R,e=>{this.opts.cursor=(t=>{var r,n;if(typeof t=="object"){let o={},{frames:l,options:u}=C.cursor.animation;return o.animation=t.animation||{},o.animation.frames=((r=t.animation)==null?void 0:r.frames)||l,o.animation.options=S(u,((n=t.animation)==null?void 0:n.options)||{}),o.autoPause=t.autoPause??C.cursor.autoPause,o.autoPauseDelay=t.autoPauseDelay||C.cursor.autoPauseDelay,o}return t===!0?C.cursor:t})(e.cursor??C.cursor),this.opts.strings=a(this,i,Pe).call(this,oe(this.opts.strings)),this.opts=S(this.opts,{html:!d(this,i,M)&&this.opts.html,nextStringDelay:le(this.opts.nextStringDelay),loopDelay:le(this.opts.loopDelay)})});var r;this.opts=S(C,t),this.element=typeof(r=e)=="string"?K(r):r,this.timeouts=[],this.cursorPosition=0,this.unfreeze=()=>{},this.predictedCursorPosition=null,this.statuses=S({},Me),this.id=Math.random().toString().substring(2,9),this.queue=function(n){let o=function(c){return oe(c).forEach(y=>{var b;return p.set(Symbol((b=y.char)==null?void 0:b.innerText),l({...y}))}),this},l=c=>(c.shouldPauseCursor=function(){return!!(this.typeable||this.cursorable||this.deletable)},c),u=()=>p,h=()=>Array.from(p.values()),p=new Map;return o(n),{add:o,set:function(c,y){let b=[...p.keys()];p.set(b[c],l(y))},wipe:function(){p=new Map,o(n)},done:(c,y=!1)=>y?p.delete(c):p.get(c).done=!0,reset:function(){p.forEach(c=>delete c.done)},destroy:c=>p.delete(c),getItems:(c=!1)=>c?h():h().filter(y=>!y.done),getQueue:u,getTypeable:()=>h().filter(c=>c.typeable),getPendingQueueItems:()=>{const c=[];for(let[,y]of u())y.done||c.push(y);return c}}}([{delay:this.opts.startDelay}]),d(this,R).call(this,t),this.cursor=a(this,i,Se).call(this),this.element.dataset.typeitId=this.id,ae(ke),this.opts.strings.length&&a(this,i,ve).call(this)}go(){return this.statuses.started?this:(a(this,i,X).call(this),this.opts.waitUntilVisible?(e=this.element,t=a(this,i,q).bind(this),new IntersectionObserver((r,n)=>{r.forEach(o=>{o.isIntersecting&&(t(),n.unobserve(e))})},{threshold:1}).observe(e),this):(a(this,i,q).call(this),this));var e,t}destroy(e=!0){this.timeouts=(this.timeouts.forEach(clearTimeout),[]),v(e)&&this.cursor&&a(this,i,z).call(this,this.cursor),this.statuses.destroyed=!0}reset(e){!this.is("destroyed")&&this.destroy(),e?(this.queue.wipe(),e(this)):this.queue.reset(),this.cursorPosition=0;for(let t in this.statuses)this.statuses[t]=!1;return this.element[a(this,i,O).call(this)?"value":"innerHTML"]="",this}type(e,t={}){e=v(e);let{instant:r}=t,n=a(this,i,N).call(this,t),o=Ae(e,this.opts.html).map(u=>{return{func:()=>a(this,i,H).call(this,u),char:u,delay:r||(h=u,/<(.+)>(.*?)<\/(.+)>/.test(h.outerHTML))?0:a(this,i,I).call(this),typeable:u.nodeType===Node.TEXT_NODE};var h}),l=[n[0],{func:async()=>await this.opts.beforeString(e,this)},...o,{func:async()=>await this.opts.afterString(e,this)},n[1]];return a(this,i,w).call(this,l,t)}break(e={}){return a(this,i,w).call(this,{func:()=>a(this,i,H).call(this,$("BR")),typeable:!0},e)}move(e,t={}){e=v(e);let r=a(this,i,N).call(this,t),{instant:n,to:o}=t,l=ce({queueItems:this.queue.getTypeable(),selector:e===null?"":e,to:o,cursorPosition:d(this,i,D)}),u=l<0?-1:1;return this.predictedCursorPosition=d(this,i,D)+l,a(this,i,w).call(this,[r[0],...A({func:()=>a(this,i,Q).call(this,u),delay:n?0:a(this,i,I).call(this),cursorable:!0},Math.abs(l)),r[1]],t)}exec(e,t={}){let r=a(this,i,N).call(this,t);return a(this,i,w).call(this,[r[0],{func:()=>e(this)},r[1]],t)}options(e,t={}){return e=v(e),a(this,i,L).call(this,e),a(this,i,w).call(this,{},t)}pause(e,t={}){return a(this,i,w).call(this,{delay:v(e)},t)}delete(e=null,t={}){e=v(e);let r=a(this,i,N).call(this,t),n=e,{instant:o,to:l}=t,u=this.queue.getTypeable(),h=n===null?u.length:we(n)?n:ce({queueItems:u,selector:n,cursorPosition:d(this,i,D),to:l});return a(this,i,w).call(this,[r[0],...A({func:a(this,i,x).bind(this),delay:o?0:a(this,i,I).call(this,1),deletable:!0},h),r[1]],t)}freeze(){this.statuses.frozen=!0}flush(e=null){return this.flushCallback=e||this.flushCallback,this.statuses.firing||(a(this,i,X).call(this),a(this,i,q).call(this,!1).then(()=>{if(this.queue.getPendingQueueItems().length>0)return this.flush();this.flushCallback(),this.flushCallback=null})),this}getQueue(){return this.queue}getOptions(){return this.opts}updateOptions(e){return a(this,i,L).call(this,e)}getElement(){return this.element}empty(e={}){return a(this,i,w).call(this,{func:a(this,i,Ie).bind(this)},e)}}i=new WeakSet,Ie=async function(){a(this,i,O).call(this)?this.element.value="":d(this,i,T).forEach(a(this,i,z).bind(this))},q=async function(e=!0){this.statuses.started=!0,this.statuses.firing=!0;let t=r=>{this.queue.done(r,!e)};try{let r=[...this.queue.getQueue()];for(let o=0;o<r.length;o++){let[l,u]=r[o];if(!u.done){if(!u.deletable||u.deletable&&d(this,i,T).length){let h=await a(this,i,U).call(this,o,r);_e({index:o,newIndex:h,queueItems:r,cleanUp:t}),o=h}t(l)}}if(!e)return this.statuses.firing=!1,this;if(this.statuses.completed=!0,this.statuses.firing=!1,await this.opts.afterComplete(this),!this.opts.loop)throw"";let n=this.opts.loopDelay;a(this,i,V).call(this,async()=>{await a(this,i,Ee).call(this,n[0]),a(this,i,q).call(this)},n[1])}catch{}return this.statuses.firing=!1,this},Q=async function(e){var t,r,n;this.cursorPosition=(t=e,r=this.cursorPosition,n=d(this,i,T),Math.min(Math.max(r+t,0),n.length)),((o,l,u)=>{let h=l[u-1],p=K(`.${E}`,o);(o=(h==null?void 0:h.parentNode)||o).insertBefore(p,h||null)})(this.element,d(this,i,T),this.cursorPosition)},Ee=async function(e){let t=d(this,i,D);t&&await a(this,i,Q).call(this,{value:t});let r=d(this,i,T).map(n=>[Symbol(),{func:a(this,i,x).bind(this),delay:a(this,i,I).call(this,1),deletable:!0,shouldPauseCursor:()=>!0}]);for(let n=0;n<r.length;n++)await a(this,i,U).call(this,n,r);this.queue.reset(),this.queue.set(0,{delay:e})},U=function(e,t){return $e({index:e,queueItems:t,wait:a(this,i,V).bind(this),cursor:this.cursor,cursorOptions:this.opts.cursor})},V=async function(e,t,r=!1){this.statuses.frozen&&await new Promise(n=>{this.unfreeze=()=>{this.statuses.frozen=!1,n()}}),r||await this.opts.beforeStep(this),await((n,o,l)=>new Promise(u=>{l.push(setTimeout(async()=>{await n(),u()},o||0))}))(e,t,this.timeouts),r||await this.opts.afterStep(this)},X=async function(){if(!a(this,i,O).call(this)&&this.cursor&&this.element.appendChild(this.cursor),d(this,i,W)){((n,o)=>{let l=`[${me}='${n}'] .${E}`,u=getComputedStyle(o),h=Object.entries(Oe).reduce((p,[c,y])=>`${p} ${c}: var(--ti-cursor-${c}, ${y||u[c]});`,"");ae(`${l} { display: inline-block; width: 0; ${h} }`,n)})(this.id,this.element),this.cursor.dataset.tiAnimationId=this.id;let{animation:e}=this.opts.cursor,{frames:t,options:r}=e;Te({frames:t,cursor:this.cursor,options:{duration:this.opts.cursorSpeed,...r}})}},O=function(){return _(this.element)},w=function(e,t){return this.queue.add(e),a(this,i,Ce).call(this,t),this},Ce=function(e={}){let t=e.delay;t&&this.queue.add({delay:t})},N=function(e={}){return[{func:()=>a(this,i,L).call(this,e)},{func:()=>a(this,i,L).call(this,this.opts)}]},L=async function(e){this.opts=S(this.opts,e)},ve=function(){let e=this.opts.strings.filter(t=>!!t);e.forEach((t,r)=>{if(this.type(t),r+1===e.length)return;let n=this.opts.breakLines?[{func:()=>a(this,i,H).call(this,$("BR")),typeable:!0}]:A({func:a(this,i,x).bind(this),delay:a(this,i,I).call(this,1)},this.queue.getTypeable().length);a(this,i,J).call(this,n)})},R=new WeakMap,Pe=function(e){let t=this.element.innerHTML;return t?(this.element.innerHTML="",this.opts.startDelete?(this.element.innerHTML=t,Y(this.element),a(this,i,J).call(this,A({func:a(this,i,x).bind(this),delay:a(this,i,I).call(this,1),deletable:!0},d(this,i,T).length)),e):(r=t,r.replace(/<!--(.+?)-->/g,"").trim().split(/<br(?:\s*?)(?:\/)?>/)).concat(e)):e;var r},Se=function(){if(d(this,i,M))return null;let e=$("span");return e.className=E,d(this,i,W)?(e.innerHTML=ge(this.opts.cursorChar).innerHTML,e):(e.style.visibility="hidden",e)},J=function(e){let t=this.opts.nextStringDelay;this.queue.add([{delay:t[0]},...e,{delay:t[1]}])},H=function(e){((t,r)=>{if(_(t))return void(t.value=`${t.value}${r.textContent}`);r.innerHTML="";let n=(o=r.originalParent,/body/i.test(o==null?void 0:o.tagName)?t:r.originalParent||t);var o;let l=K("."+E,n)||null;l&&l.parentElement!==n&&(n=l.parentElement),n.insertBefore(r,l)})(this.element,e)},x=function(){d(this,i,T).length&&(d(this,i,M)?this.element.value=this.element.value.slice(0,-1):a(this,i,z).call(this,d(this,i,T)[this.cursorPosition]))},z=function(e){((t,r)=>{if(!t)return;let n=t.parentNode;(n.childNodes.length>1||n.isSameNode(r)?t:n).remove()})(e,this.element)},I=function(e=0){return function(t){let{speed:r,deleteSpeed:n,lifeLike:o}=t;return n=n!==null?n:r/3,o?[ue(r,he(r)),ue(n,he(n))]:[r,n]}(this.opts)[e]},D=function(){return this.predictedCursorPosition??this.cursorPosition},M=function(){return _(this.element)},W=function(){return!!this.opts.cursor&&!d(this,i,M)},T=function(){return e=this.element,_(e)?fe(e.value):be(e,!0).filter(t=>!(t.childNodes.length>0));var e};var ze=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,g=(s,e,t,r)=>{for(var n,o=r>1?void 0:r?Fe(e,t):e,l=s.length-1;l>=0;l--)(n=s[l])&&(o=(r?n(e,t,o):n(o))||o);return r&&o&&ze(e,t,o),o};exports.TypewriterElement=class extends xe.$LitElement(ne.css`
2
- :host {
3
- display: inherit;
4
- }
5
-
6
- #typewriter {
7
- --ti-cursor-display: initial;
8
- }
9
-
10
- #typewriter .ti-cursor {
11
- display: var(--ti-cursor-display);
12
- }
13
- `){constructor(){super(...arguments),this.speed=50,this.delay=0,this.autoStart=!0,this.cursorChar="",this.deleteSpeed=25,this.once=!0,this.typeItInstance=null,this.sessionKey=""}disconnectedCallback(){super.disconnectedCallback(),this._destroyTypeIt()}_startTyping(){var e,t,r;if(this._destroyTypeIt(),this.sessionKey=this.generateSessionKey(),this.once&&sessionStorage.getItem(this.sessionKey)==="true")return void((t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot"))==null?void 0:t.removeAttribute("hidden"));if(!this.typewriterContainer)return;const s={speed:this.speed,startDelay:this.delay,cursor:!!this.cursorChar,cursorChar:this.cursorChar,deleteSpeed:this.deleteSpeed,afterComplete:()=>{if(this.once)try{sessionStorage.setItem(this.sessionKey,"true")}catch{}this.dispatchEvent(new CustomEvent("typeit-complete",{bubbles:!0,composed:!0})),this.typewriterContainer.style.setProperty("--ti-cursor-display","none")}};this.typeItInstance=new He(this.typewriterContainer,s),this._getSlottedNodes.forEach(n=>{var o;n.nodeType===Node.TEXT_NODE?(o=this.typeItInstance)==null||o.type(n.textContent||""):n instanceof HTMLElement&&this._processCustomElement(n)}),De.intersection$((r=this.shadowRoot)==null?void 0:r.host).subscribe(()=>{var n;(n=this.typeItInstance)==null||n.go()})}generateSessionKey(){const s=this._getSlottedElements.map(e=>e.outerHTML).join("");return this.once?re.hashContent(s):""}_destroyTypeIt(){if(this.typeItInstance){try{this.typeItInstance.destroy()}catch{}this.typeItInstance=null}}_processCustomElement(s){var r,n,o;const e=s.getAttribute("action"),t=s.getAttribute("value");switch(e){case"pause":(r=this.typeItInstance)==null||r.pause(parseInt(t||"0",10));break;case"delete":(n=this.typeItInstance)==null||n.delete(parseInt(t||"0",10));break;default:s.tagName==="P"&&this.typeItInstance.break(),(o=this.typeItInstance)==null||o.type(s.textContent||"")}}render(){return ne.html`<div id="typewriter" aria-live="polite"></div>
14
-
15
- <div class="typewriter">
16
- <slot
17
- hidden
18
- @slotchange=${()=>{this._startTyping()}}
19
- ></slot>
20
- </div> `}},g([f.property({type:Number})],exports.TypewriterElement.prototype,"speed",2),g([Le.c({context:re.delayContext,subscribe:!0}),f.property({type:Number})],exports.TypewriterElement.prototype,"delay",2),g([f.property({type:Boolean})],exports.TypewriterElement.prototype,"autoStart",2),g([f.property({type:String})],exports.TypewriterElement.prototype,"cursorChar",2),g([f.property({type:Number})],exports.TypewriterElement.prototype,"deleteSpeed",2),g([f.property({type:Boolean})],exports.TypewriterElement.prototype,"once",2),g([f.query("#typewriter")],exports.TypewriterElement.prototype,"typewriterContainer",2),g([f.queryAssignedNodes({flatten:!0})],exports.TypewriterElement.prototype,"_getSlottedNodes",2),g([f.queryAssignedElements({flatten:!0})],exports.TypewriterElement.prototype,"_getSlottedElements",2),exports.TypewriterElement=g([f.customElement("schmancy-typewriter")],exports.TypewriterElement);
21
- //# sourceMappingURL=typewriter-XTltzkLy.cjs.map