@easemate/web-kit 0.2.0 → 0.3.1

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 (438) hide show
  1. package/README.md +99 -5
  2. package/build/decorators.cjs +921 -0
  3. package/build/decorators.cjs.map +1 -0
  4. package/build/decorators.d.cts +123 -0
  5. package/build/decorators.d.ts +123 -0
  6. package/build/decorators.js +889 -0
  7. package/build/decorators.js.map +1 -0
  8. package/build/elements.cjs +27604 -0
  9. package/build/elements.cjs.map +1 -0
  10. package/build/elements.d.cts +373 -0
  11. package/build/elements.d.ts +373 -0
  12. package/build/elements.js +27528 -0
  13. package/build/elements.js.map +1 -0
  14. package/build/{elements/monitor/index.d.ts → index-31iOHBv0.d.cts} +26 -5
  15. package/build/{elements/monitor/index.d.cts → index-31iOHBv0.d.ts} +26 -5
  16. package/build/{elements/panel/index.d.cts → index-NzGpn7ai.d.cts} +6 -3
  17. package/build/{elements/panel/index.d.ts → index-NzGpn7ai.d.ts} +6 -3
  18. package/build/{elements/state/index.d.ts → index-qZoNKsHn.d.cts} +46 -5
  19. package/build/{elements/state/index.d.cts → index-qZoNKsHn.d.ts} +46 -5
  20. package/build/index.cjs +38651 -38
  21. package/build/index.cjs.map +1 -0
  22. package/build/index.d.cts +85 -6
  23. package/build/index.d.ts +85 -6
  24. package/build/index.js +38535 -12
  25. package/build/index.js.map +1 -0
  26. package/build/init-B7gNNyTd.d.ts +235 -0
  27. package/build/init-DwVGVxkx.d.cts +235 -0
  28. package/build/jsx.cjs +31 -0
  29. package/build/jsx.cjs.map +1 -0
  30. package/build/jsx.d.cts +317 -0
  31. package/build/jsx.d.ts +317 -0
  32. package/build/jsx.js +6 -0
  33. package/build/jsx.js.map +1 -0
  34. package/build/outside-click-rZ3Di_WX.d.cts +16 -0
  35. package/build/outside-click-rZ3Di_WX.d.ts +16 -0
  36. package/build/react.cjs +37827 -0
  37. package/build/react.cjs.map +1 -0
  38. package/build/react.d.cts +356 -0
  39. package/build/react.d.ts +356 -0
  40. package/build/react.js +37802 -0
  41. package/build/react.js.map +1 -0
  42. package/build/register.cjs +35832 -36
  43. package/build/register.cjs.map +1 -0
  44. package/build/register.d.cts +4 -33
  45. package/build/register.d.ts +4 -33
  46. package/build/register.js +35831 -35
  47. package/build/register.js.map +1 -0
  48. package/build/register.server.cjs +19 -0
  49. package/build/register.server.cjs.map +1 -0
  50. package/build/register.server.d.cts +2 -0
  51. package/build/register.server.d.ts +2 -0
  52. package/build/register.server.js +1 -0
  53. package/build/register.server.js.map +1 -0
  54. package/build/registry-9GX9KTG1.d.cts +264 -0
  55. package/build/registry-9GX9KTG1.d.ts +264 -0
  56. package/build/template-helpers-CguLXtLD.d.cts +10 -0
  57. package/build/template-helpers-CguLXtLD.d.ts +10 -0
  58. package/build/theme.cjs +746 -0
  59. package/build/theme.cjs.map +1 -0
  60. package/build/{theme/index.d.cts → theme.d.cts} +41 -21
  61. package/build/{theme/index.d.ts → theme.d.ts} +41 -21
  62. package/build/theme.js +692 -0
  63. package/build/theme.js.map +1 -0
  64. package/build/utils.cjs +205 -0
  65. package/build/utils.cjs.map +1 -0
  66. package/build/utils.d.cts +26 -0
  67. package/build/utils.d.ts +26 -0
  68. package/build/utils.js +167 -0
  69. package/build/utils.js.map +1 -0
  70. package/package.json +47 -33
  71. package/build/components/code/index.cjs +0 -152
  72. package/build/components/code/index.d.cts +0 -11
  73. package/build/components/code/index.d.ts +0 -11
  74. package/build/components/code/index.js +0 -148
  75. package/build/components/code/utils/highlight-api.cjs +0 -18
  76. package/build/components/code/utils/highlight-api.d.cts +0 -7
  77. package/build/components/code/utils/highlight-api.d.ts +0 -7
  78. package/build/components/code/utils/highlight-api.js +0 -14
  79. package/build/components/code/utils/syntax-grammars.cjs +0 -62
  80. package/build/components/code/utils/syntax-grammars.d.cts +0 -7
  81. package/build/components/code/utils/syntax-grammars.d.ts +0 -7
  82. package/build/components/code/utils/syntax-grammars.js +0 -59
  83. package/build/components/code/utils/syntax-highlighter-theme.cjs +0 -27
  84. package/build/components/code/utils/syntax-highlighter-theme.d.cts +0 -3
  85. package/build/components/code/utils/syntax-highlighter-theme.d.ts +0 -3
  86. package/build/components/code/utils/syntax-highlighter-theme.js +0 -23
  87. package/build/components/code/utils/syntax-highlighter-types.cjs +0 -2
  88. package/build/components/code/utils/syntax-highlighter-types.d.cts +0 -12
  89. package/build/components/code/utils/syntax-highlighter-types.d.ts +0 -12
  90. package/build/components/code/utils/syntax-highlighter-types.js +0 -1
  91. package/build/components/code/utils/syntax-tokenizer.cjs +0 -63
  92. package/build/components/code/utils/syntax-tokenizer.d.cts +0 -3
  93. package/build/components/code/utils/syntax-tokenizer.d.ts +0 -3
  94. package/build/components/code/utils/syntax-tokenizer.js +0 -58
  95. package/build/components/curve/bezier-conversion.cjs +0 -23
  96. package/build/components/curve/bezier-conversion.d.cts +0 -2
  97. package/build/components/curve/bezier-conversion.d.ts +0 -2
  98. package/build/components/curve/bezier-conversion.js +0 -19
  99. package/build/components/curve/canvas-controls.cjs +0 -300
  100. package/build/components/curve/canvas-controls.d.cts +0 -12
  101. package/build/components/curve/canvas-controls.d.ts +0 -12
  102. package/build/components/curve/canvas-controls.js +0 -296
  103. package/build/components/curve/canvas.cjs +0 -1208
  104. package/build/components/curve/canvas.d.cts +0 -24
  105. package/build/components/curve/canvas.d.ts +0 -24
  106. package/build/components/curve/canvas.js +0 -1204
  107. package/build/components/curve/constants.cjs +0 -203
  108. package/build/components/curve/constants.d.cts +0 -23
  109. package/build/components/curve/constants.d.ts +0 -23
  110. package/build/components/curve/constants.js +0 -200
  111. package/build/components/curve/controls.cjs +0 -942
  112. package/build/components/curve/controls.d.cts +0 -37
  113. package/build/components/curve/controls.d.ts +0 -37
  114. package/build/components/curve/controls.js +0 -938
  115. package/build/components/curve/index.cjs +0 -335
  116. package/build/components/curve/index.d.cts +0 -31
  117. package/build/components/curve/index.d.ts +0 -31
  118. package/build/components/curve/index.js +0 -330
  119. package/build/components/curve/output.cjs +0 -141
  120. package/build/components/curve/output.d.cts +0 -19
  121. package/build/components/curve/output.d.ts +0 -19
  122. package/build/components/curve/output.js +0 -137
  123. package/build/components/curve/styles.cjs +0 -493
  124. package/build/components/curve/styles.d.cts +0 -6
  125. package/build/components/curve/styles.d.ts +0 -6
  126. package/build/components/curve/styles.js +0 -490
  127. package/build/components/curve/svg-renderer.cjs +0 -185
  128. package/build/components/curve/svg-renderer.d.cts +0 -9
  129. package/build/components/curve/svg-renderer.d.ts +0 -9
  130. package/build/components/curve/svg-renderer.js +0 -175
  131. package/build/components/curve/toolbar.cjs +0 -368
  132. package/build/components/curve/toolbar.d.cts +0 -26
  133. package/build/components/curve/toolbar.d.ts +0 -26
  134. package/build/components/curve/toolbar.js +0 -364
  135. package/build/components/curve/types.cjs +0 -10
  136. package/build/components/curve/types.d.cts +0 -33
  137. package/build/components/curve/types.d.ts +0 -33
  138. package/build/components/curve/types.js +0 -7
  139. package/build/components/curve/utils.cjs +0 -541
  140. package/build/components/curve/utils.d.cts +0 -33
  141. package/build/components/curve/utils.d.ts +0 -33
  142. package/build/components/curve/utils.js +0 -521
  143. package/build/components/index.cjs +0 -18
  144. package/build/components/index.d.cts +0 -2
  145. package/build/components/index.d.ts +0 -2
  146. package/build/components/index.js +0 -2
  147. package/build/decorators/Component.cjs +0 -127
  148. package/build/decorators/Component.d.cts +0 -28
  149. package/build/decorators/Component.d.ts +0 -28
  150. package/build/decorators/Component.js +0 -123
  151. package/build/decorators/Listen.cjs +0 -154
  152. package/build/decorators/Listen.d.cts +0 -18
  153. package/build/decorators/Listen.d.ts +0 -18
  154. package/build/decorators/Listen.js +0 -151
  155. package/build/decorators/OutsideClick.cjs +0 -64
  156. package/build/decorators/OutsideClick.d.cts +0 -16
  157. package/build/decorators/OutsideClick.d.ts +0 -16
  158. package/build/decorators/OutsideClick.js +0 -59
  159. package/build/decorators/Prop.cjs +0 -273
  160. package/build/decorators/Prop.d.cts +0 -22
  161. package/build/decorators/Prop.d.ts +0 -22
  162. package/build/decorators/Prop.js +0 -270
  163. package/build/decorators/Query.cjs +0 -79
  164. package/build/decorators/Query.d.cts +0 -27
  165. package/build/decorators/Query.d.ts +0 -27
  166. package/build/decorators/Query.js +0 -76
  167. package/build/decorators/Watch.cjs +0 -52
  168. package/build/decorators/Watch.d.cts +0 -11
  169. package/build/decorators/Watch.d.ts +0 -11
  170. package/build/decorators/Watch.js +0 -49
  171. package/build/decorators/index.cjs +0 -15
  172. package/build/decorators/index.d.cts +0 -6
  173. package/build/decorators/index.d.ts +0 -6
  174. package/build/decorators/index.js +0 -6
  175. package/build/elements/button/index.cjs +0 -214
  176. package/build/elements/button/index.d.cts +0 -11
  177. package/build/elements/button/index.d.ts +0 -11
  178. package/build/elements/button/index.js +0 -210
  179. package/build/elements/checkbox/index.cjs +0 -316
  180. package/build/elements/checkbox/index.d.cts +0 -14
  181. package/build/elements/checkbox/index.d.ts +0 -14
  182. package/build/elements/checkbox/index.js +0 -312
  183. package/build/elements/color/index.cjs +0 -154
  184. package/build/elements/color/index.d.cts +0 -18
  185. package/build/elements/color/index.d.ts +0 -18
  186. package/build/elements/color/index.js +0 -150
  187. package/build/elements/color/picker.cjs +0 -544
  188. package/build/elements/color/picker.d.cts +0 -37
  189. package/build/elements/color/picker.d.ts +0 -37
  190. package/build/elements/color/picker.js +0 -540
  191. package/build/elements/color/utils.cjs +0 -235
  192. package/build/elements/color/utils.d.cts +0 -37
  193. package/build/elements/color/utils.d.ts +0 -37
  194. package/build/elements/color/utils.js +0 -218
  195. package/build/elements/dropdown/index.cjs +0 -875
  196. package/build/elements/dropdown/index.d.cts +0 -30
  197. package/build/elements/dropdown/index.d.ts +0 -30
  198. package/build/elements/dropdown/index.js +0 -871
  199. package/build/elements/field/index.cjs +0 -82
  200. package/build/elements/field/index.d.cts +0 -4
  201. package/build/elements/field/index.d.ts +0 -4
  202. package/build/elements/field/index.js +0 -78
  203. package/build/elements/icons/animation/chevron.cjs +0 -57
  204. package/build/elements/icons/animation/chevron.d.cts +0 -10
  205. package/build/elements/icons/animation/chevron.d.ts +0 -10
  206. package/build/elements/icons/animation/chevron.js +0 -53
  207. package/build/elements/icons/animation/clear.cjs +0 -74
  208. package/build/elements/icons/animation/clear.d.cts +0 -3
  209. package/build/elements/icons/animation/clear.d.ts +0 -3
  210. package/build/elements/icons/animation/clear.js +0 -70
  211. package/build/elements/icons/animation/grid.cjs +0 -77
  212. package/build/elements/icons/animation/grid.d.cts +0 -8
  213. package/build/elements/icons/animation/grid.d.ts +0 -8
  214. package/build/elements/icons/animation/grid.js +0 -73
  215. package/build/elements/icons/animation/loading.cjs +0 -68
  216. package/build/elements/icons/animation/loading.d.cts +0 -3
  217. package/build/elements/icons/animation/loading.d.ts +0 -3
  218. package/build/elements/icons/animation/loading.js +0 -64
  219. package/build/elements/icons/animation/snap.cjs +0 -133
  220. package/build/elements/icons/animation/snap.d.cts +0 -8
  221. package/build/elements/icons/animation/snap.d.ts +0 -8
  222. package/build/elements/icons/animation/snap.js +0 -129
  223. package/build/elements/icons/index.cjs +0 -40
  224. package/build/elements/icons/index.d.cts +0 -24
  225. package/build/elements/icons/index.d.ts +0 -24
  226. package/build/elements/icons/index.js +0 -24
  227. package/build/elements/icons/interface/anchor-add.cjs +0 -35
  228. package/build/elements/icons/interface/anchor-add.d.cts +0 -3
  229. package/build/elements/icons/interface/anchor-add.d.ts +0 -3
  230. package/build/elements/icons/interface/anchor-add.js +0 -31
  231. package/build/elements/icons/interface/anchor-remove.cjs +0 -34
  232. package/build/elements/icons/interface/anchor-remove.d.cts +0 -3
  233. package/build/elements/icons/interface/anchor-remove.d.ts +0 -3
  234. package/build/elements/icons/interface/anchor-remove.js +0 -30
  235. package/build/elements/icons/interface/arrow-up.cjs +0 -30
  236. package/build/elements/icons/interface/arrow-up.d.cts +0 -3
  237. package/build/elements/icons/interface/arrow-up.d.ts +0 -3
  238. package/build/elements/icons/interface/arrow-up.js +0 -26
  239. package/build/elements/icons/interface/arrows-vertical.cjs +0 -30
  240. package/build/elements/icons/interface/arrows-vertical.d.cts +0 -3
  241. package/build/elements/icons/interface/arrows-vertical.d.ts +0 -3
  242. package/build/elements/icons/interface/arrows-vertical.js +0 -26
  243. package/build/elements/icons/interface/bezier-angle.cjs +0 -33
  244. package/build/elements/icons/interface/bezier-angle.d.cts +0 -3
  245. package/build/elements/icons/interface/bezier-angle.d.ts +0 -3
  246. package/build/elements/icons/interface/bezier-angle.js +0 -29
  247. package/build/elements/icons/interface/bezier-distribute.cjs +0 -34
  248. package/build/elements/icons/interface/bezier-distribute.d.cts +0 -3
  249. package/build/elements/icons/interface/bezier-distribute.d.ts +0 -3
  250. package/build/elements/icons/interface/bezier-distribute.js +0 -30
  251. package/build/elements/icons/interface/bezier-length.cjs +0 -31
  252. package/build/elements/icons/interface/bezier-length.d.cts +0 -3
  253. package/build/elements/icons/interface/bezier-length.d.ts +0 -3
  254. package/build/elements/icons/interface/bezier-length.js +0 -27
  255. package/build/elements/icons/interface/bezier-mirror.cjs +0 -31
  256. package/build/elements/icons/interface/bezier-mirror.d.cts +0 -3
  257. package/build/elements/icons/interface/bezier-mirror.d.ts +0 -3
  258. package/build/elements/icons/interface/bezier-mirror.js +0 -27
  259. package/build/elements/icons/interface/bezier.cjs +0 -26
  260. package/build/elements/icons/interface/bezier.d.cts +0 -3
  261. package/build/elements/icons/interface/bezier.d.ts +0 -3
  262. package/build/elements/icons/interface/bezier.js +0 -22
  263. package/build/elements/icons/interface/check.cjs +0 -30
  264. package/build/elements/icons/interface/check.d.cts +0 -3
  265. package/build/elements/icons/interface/check.d.ts +0 -3
  266. package/build/elements/icons/interface/check.js +0 -26
  267. package/build/elements/icons/interface/circle-arrow-left.cjs +0 -30
  268. package/build/elements/icons/interface/circle-arrow-left.d.cts +0 -3
  269. package/build/elements/icons/interface/circle-arrow-left.d.ts +0 -3
  270. package/build/elements/icons/interface/circle-arrow-left.js +0 -26
  271. package/build/elements/icons/interface/circle-arrow-right.cjs +0 -30
  272. package/build/elements/icons/interface/circle-arrow-right.d.cts +0 -3
  273. package/build/elements/icons/interface/circle-arrow-right.d.ts +0 -3
  274. package/build/elements/icons/interface/circle-arrow-right.js +0 -26
  275. package/build/elements/icons/interface/code.cjs +0 -30
  276. package/build/elements/icons/interface/code.d.cts +0 -3
  277. package/build/elements/icons/interface/code.d.ts +0 -3
  278. package/build/elements/icons/interface/code.js +0 -26
  279. package/build/elements/icons/interface/dots.cjs +0 -32
  280. package/build/elements/icons/interface/dots.d.cts +0 -3
  281. package/build/elements/icons/interface/dots.d.ts +0 -3
  282. package/build/elements/icons/interface/dots.js +0 -28
  283. package/build/elements/icons/interface/mention.cjs +0 -30
  284. package/build/elements/icons/interface/mention.d.cts +0 -3
  285. package/build/elements/icons/interface/mention.d.ts +0 -3
  286. package/build/elements/icons/interface/mention.js +0 -26
  287. package/build/elements/icons/interface/minus.cjs +0 -30
  288. package/build/elements/icons/interface/minus.d.cts +0 -3
  289. package/build/elements/icons/interface/minus.d.ts +0 -3
  290. package/build/elements/icons/interface/minus.js +0 -26
  291. package/build/elements/icons/interface/picker.cjs +0 -34
  292. package/build/elements/icons/interface/picker.d.cts +0 -3
  293. package/build/elements/icons/interface/picker.d.ts +0 -3
  294. package/build/elements/icons/interface/picker.js +0 -30
  295. package/build/elements/icons/interface/plus.cjs +0 -30
  296. package/build/elements/icons/interface/plus.d.cts +0 -3
  297. package/build/elements/icons/interface/plus.d.ts +0 -3
  298. package/build/elements/icons/interface/plus.js +0 -26
  299. package/build/elements/icons/interface/settings.cjs +0 -30
  300. package/build/elements/icons/interface/settings.d.cts +0 -3
  301. package/build/elements/icons/interface/settings.d.ts +0 -3
  302. package/build/elements/icons/interface/settings.js +0 -26
  303. package/build/elements/index.cjs +0 -65
  304. package/build/elements/index.d.cts +0 -23
  305. package/build/elements/index.d.ts +0 -23
  306. package/build/elements/index.js +0 -23
  307. package/build/elements/input/index.cjs +0 -273
  308. package/build/elements/input/index.d.cts +0 -17
  309. package/build/elements/input/index.d.ts +0 -17
  310. package/build/elements/input/index.js +0 -269
  311. package/build/elements/logo/index.cjs +0 -732
  312. package/build/elements/logo/index.d.cts +0 -17
  313. package/build/elements/logo/index.d.ts +0 -17
  314. package/build/elements/logo/index.js +0 -728
  315. package/build/elements/monitor/fps.cjs +0 -432
  316. package/build/elements/monitor/fps.d.cts +0 -21
  317. package/build/elements/monitor/fps.d.ts +0 -21
  318. package/build/elements/monitor/fps.js +0 -428
  319. package/build/elements/monitor/index.cjs +0 -670
  320. package/build/elements/monitor/index.js +0 -666
  321. package/build/elements/number/index.cjs +0 -173
  322. package/build/elements/number/index.d.cts +0 -19
  323. package/build/elements/number/index.d.ts +0 -19
  324. package/build/elements/number/index.js +0 -169
  325. package/build/elements/origin/index.cjs +0 -169
  326. package/build/elements/origin/index.d.cts +0 -12
  327. package/build/elements/origin/index.d.ts +0 -12
  328. package/build/elements/origin/index.js +0 -165
  329. package/build/elements/panel/index.cjs +0 -496
  330. package/build/elements/panel/index.js +0 -492
  331. package/build/elements/popover/index.cjs +0 -209
  332. package/build/elements/popover/index.d.cts +0 -19
  333. package/build/elements/popover/index.d.ts +0 -19
  334. package/build/elements/popover/index.js +0 -205
  335. package/build/elements/radio/index.cjs +0 -301
  336. package/build/elements/radio/index.d.cts +0 -13
  337. package/build/elements/radio/index.d.ts +0 -13
  338. package/build/elements/radio/index.js +0 -283
  339. package/build/elements/radio/input.cjs +0 -329
  340. package/build/elements/radio/input.d.cts +0 -15
  341. package/build/elements/radio/input.d.ts +0 -15
  342. package/build/elements/radio/input.js +0 -325
  343. package/build/elements/radio/option.cjs +0 -15
  344. package/build/elements/radio/option.d.cts +0 -3
  345. package/build/elements/radio/option.d.ts +0 -3
  346. package/build/elements/radio/option.js +0 -11
  347. package/build/elements/shared.cjs +0 -66
  348. package/build/elements/shared.d.cts +0 -40
  349. package/build/elements/shared.d.ts +0 -40
  350. package/build/elements/shared.js +0 -59
  351. package/build/elements/slider/index.cjs +0 -232
  352. package/build/elements/slider/index.d.cts +0 -20
  353. package/build/elements/slider/index.d.ts +0 -20
  354. package/build/elements/slider/index.js +0 -228
  355. package/build/elements/state/index.cjs +0 -274
  356. package/build/elements/state/index.js +0 -270
  357. package/build/elements/toggle/index.cjs +0 -151
  358. package/build/elements/toggle/index.d.cts +0 -9
  359. package/build/elements/toggle/index.d.ts +0 -9
  360. package/build/elements/toggle/index.js +0 -147
  361. package/build/elements/tooltip/index.cjs +0 -187
  362. package/build/elements/tooltip/index.d.cts +0 -17
  363. package/build/elements/tooltip/index.d.ts +0 -17
  364. package/build/elements/tooltip/index.js +0 -183
  365. package/build/init.cjs +0 -325
  366. package/build/init.d.cts +0 -157
  367. package/build/init.d.ts +0 -157
  368. package/build/init.js +0 -289
  369. package/build/internal/component-loaders.cjs +0 -208
  370. package/build/internal/component-loaders.d.cts +0 -52
  371. package/build/internal/component-loaders.d.ts +0 -52
  372. package/build/internal/component-loaders.js +0 -169
  373. package/build/internal/fonts.cjs +0 -128
  374. package/build/internal/fonts.d.cts +0 -32
  375. package/build/internal/fonts.d.ts +0 -32
  376. package/build/internal/fonts.js +0 -123
  377. package/build/internal/lazy-load.cjs +0 -89
  378. package/build/internal/lazy-load.d.cts +0 -32
  379. package/build/internal/lazy-load.d.ts +0 -32
  380. package/build/internal/lazy-load.js +0 -86
  381. package/build/internal/style-inject.cjs +0 -236
  382. package/build/internal/style-inject.d.cts +0 -44
  383. package/build/internal/style-inject.d.ts +0 -44
  384. package/build/internal/style-inject.js +0 -226
  385. package/build/react/events.cjs +0 -25
  386. package/build/react/events.d.cts +0 -39
  387. package/build/react/events.d.ts +0 -39
  388. package/build/react/events.js +0 -22
  389. package/build/react/index.cjs +0 -19
  390. package/build/react/index.d.cts +0 -13
  391. package/build/react/index.d.ts +0 -13
  392. package/build/react/index.js +0 -12
  393. package/build/react/provider.cjs +0 -134
  394. package/build/react/provider.d.cts +0 -81
  395. package/build/react/provider.d.ts +0 -81
  396. package/build/react/provider.js +0 -98
  397. package/build/react/types.cjs +0 -8
  398. package/build/react/types.d.cts +0 -55
  399. package/build/react/types.d.ts +0 -55
  400. package/build/react/types.js +0 -7
  401. package/build/react/use-ease-state.cjs +0 -129
  402. package/build/react/use-ease-state.d.cts +0 -95
  403. package/build/react/use-ease-state.d.ts +0 -95
  404. package/build/react/use-ease-state.js +0 -126
  405. package/build/react/use-web-kit.cjs +0 -150
  406. package/build/react/use-web-kit.d.cts +0 -80
  407. package/build/react/use-web-kit.d.ts +0 -80
  408. package/build/react/use-web-kit.js +0 -114
  409. package/build/theme/index.cjs +0 -452
  410. package/build/theme/index.js +0 -423
  411. package/build/theme/presets.cjs +0 -54
  412. package/build/theme/presets.d.cts +0 -19
  413. package/build/theme/presets.d.ts +0 -19
  414. package/build/theme/presets.js +0 -51
  415. package/build/theme/registry.cjs +0 -204
  416. package/build/theme/registry.d.cts +0 -99
  417. package/build/theme/registry.d.ts +0 -99
  418. package/build/theme/registry.js +0 -194
  419. package/build/theme/tokens.cjs +0 -148
  420. package/build/theme/tokens.d.cts +0 -163
  421. package/build/theme/tokens.d.ts +0 -163
  422. package/build/theme/tokens.js +0 -145
  423. package/build/utils/dismiss-controller.cjs +0 -77
  424. package/build/utils/dismiss-controller.d.cts +0 -14
  425. package/build/utils/dismiss-controller.d.ts +0 -14
  426. package/build/utils/dismiss-controller.js +0 -73
  427. package/build/utils/index.cjs +0 -18
  428. package/build/utils/index.d.cts +0 -3
  429. package/build/utils/index.d.ts +0 -3
  430. package/build/utils/index.js +0 -3
  431. package/build/utils/outside-click.cjs +0 -82
  432. package/build/utils/outside-click.d.cts +0 -18
  433. package/build/utils/outside-click.d.ts +0 -18
  434. package/build/utils/outside-click.js +0 -74
  435. package/build/utils/template-helpers.cjs +0 -39
  436. package/build/utils/template-helpers.d.cts +0 -13
  437. package/build/utils/template-helpers.d.ts +0 -13
  438. package/build/utils/template-helpers.js +0 -28
@@ -1,330 +0,0 @@
1
- import { html } from 'lit-html';
2
- import { cubicBezierToLinearPoints } from "./bezier-conversion.js";
3
- import { containerStyles } from "./styles.js";
4
- import { EasingType, MIN_LINEAR_POINTS } from "./types.js";
5
- import { MIN_LINEAR_DELTA, normalizeLinearPoints } from "./utils.js";
6
- import { Component } from '../../decorators/Component';
7
- import { Listen } from '../../decorators/Listen';
8
- import { Prop } from '../../decorators/Prop';
9
- @Component({
10
- tag: 'ease-curve',
11
- styles: containerStyles,
12
- template() {
13
- return html `
14
- <div class="curve-container">
15
- <div class="curve-header">
16
- <ease-curve-controls
17
- .easingType=${this.easingType}
18
- .points=${this.points}
19
- .showGrid=${this.showGrid}
20
- .snapToGrid=${this.snapToGrid}
21
- .gridSize=${this.gridSize}
22
- .focusedLinearIndex=${this.focusedLinearIndex}
23
- ></ease-curve-controls>
24
- </div>
25
-
26
- <div class="curve-canvas-wrapper">
27
- <div class="curve-canvas">
28
- <ease-curve-canvas
29
- .easingType=${this.easingType}
30
- .points=${this.points}
31
- .showGrid=${this.showGrid}
32
- .snapToGrid=${this.snapToGrid}
33
- .gridSize=${this.gridSize}
34
- .focusedLinearIndex=${this.focusedLinearIndex}
35
- .simplify=${this.simplify}
36
- .round=${this.round}
37
- ></ease-curve-canvas>
38
- </div>
39
- <ease-curve-canvas-controls
40
- .easingType=${this.easingType}
41
- .points=${this.points}
42
- .focusedLinearIndex=${this.focusedLinearIndex}
43
- ></ease-curve-canvas-controls>
44
- </div>
45
-
46
- <div class="curve-toolbar">
47
- <ease-curve-toolbar
48
- .easingType=${this.easingType}
49
- .points=${this.points}
50
- .showGrid=${this.showGrid}
51
- .snapToGrid=${this.snapToGrid}
52
- .gridSize=${this.gridSize}
53
- .simplify=${this.simplify}
54
- .round=${this.round}
55
- ></ease-curve-toolbar>
56
- </div>
57
-
58
- <!-- <div class="curve-footer">
59
- <ease-curve-output
60
- .easingType=${this.easingType}
61
- .points=${this.points}
62
- .name=${this.name}
63
- .simplify=${this.simplify}
64
- .round=${this.round}
65
- ></ease-curve-output>
66
- </div> -->
67
- </div>
68
- `;
69
- }
70
- })
71
- export class Curve extends HTMLElement {
72
- @Prop({ reflect: true, defaultValue: 'ease-custom' })
73
- accessor name;
74
- @Prop({
75
- reflect: true,
76
- defaultValue: EasingType.CUBIC_BEZIER,
77
- onChange(next, previous) {
78
- if (next !== previous) {
79
- this.points = this.getDefaultPointsForType(next);
80
- this.focusedLinearIndex = null;
81
- }
82
- }
83
- })
84
- accessor easingType;
85
- @Prop({
86
- type: Object,
87
- reflect: false,
88
- defaultValue: () => {
89
- return { p1: { x: 0.25, y: 0.1 }, p2: { x: 0.25, y: 1 } };
90
- }
91
- })
92
- accessor points;
93
- @Prop({ type: Boolean, reflect: true, defaultValue: true })
94
- accessor showGrid;
95
- @Prop({ type: Boolean, reflect: true, defaultValue: false })
96
- accessor snapToGrid;
97
- @Prop({ type: Number, reflect: true, defaultValue: 8 })
98
- accessor gridSize;
99
- @Prop({ type: Number, reflect: true, defaultValue: 0 })
100
- accessor simplify;
101
- @Prop({ type: Number, reflect: true, defaultValue: 5 })
102
- accessor round;
103
- @Prop({ type: Number, reflect: false, defaultValue: null })
104
- accessor focusedLinearIndex = null;
105
- getDefaultPointsForType(type) {
106
- return type === EasingType.CUBIC_BEZIER
107
- ? { p1: { x: 0.25, y: 0.1 }, p2: { x: 0.25, y: 1 } }
108
- : [
109
- { x: 0, y: 0 },
110
- { x: 1, y: 1 }
111
- ];
112
- }
113
- @Listen('easing-type-change', { target: 'light' })
114
- handleEasingTypeChange(event) {
115
- const { value } = event.detail;
116
- if (this.easingType === value) {
117
- return;
118
- }
119
- const previousType = this.easingType;
120
- const previousPoints = this.points;
121
- this.easingType = value;
122
- this.focusedLinearIndex = null;
123
- if (previousType === EasingType.CUBIC_BEZIER && value === EasingType.LINEAR) {
124
- if (previousPoints && !Array.isArray(previousPoints)) {
125
- const bezierPoints = previousPoints;
126
- const linearPoints = cubicBezierToLinearPoints(bezierPoints);
127
- this.points = linearPoints;
128
- this.emitPointsChange(linearPoints, event.detail.event);
129
- return;
130
- }
131
- else {
132
- this.points = this.getDefaultPointsForType(value);
133
- this.emitPointsChange(this.points, event.detail.event);
134
- return;
135
- }
136
- }
137
- else if (previousType === EasingType.LINEAR && value === EasingType.CUBIC_BEZIER) {
138
- this.points = this.getDefaultPointsForType(value);
139
- this.emitPointsChange(this.points, event.detail.event);
140
- return;
141
- }
142
- else {
143
- this.points = this.getDefaultPointsForType(value);
144
- this.emitPointsChange(this.points, event.detail.event);
145
- return;
146
- }
147
- }
148
- @Listen('grid-toggle', { target: 'light' })
149
- handleGridToggle(event) {
150
- const { value } = event.detail;
151
- if (this.showGrid === value) {
152
- return;
153
- }
154
- this.showGrid = value;
155
- }
156
- @Listen('snap-toggle', { target: 'light' })
157
- handleSnapToggle(event) {
158
- const { value } = event.detail;
159
- if (this.snapToGrid === value) {
160
- return;
161
- }
162
- this.snapToGrid = value;
163
- }
164
- @Listen('grid-size-change', { target: 'light' })
165
- handleGridSizeChange(event) {
166
- let { value } = event.detail;
167
- value = Math.max(1, Math.min(24, value));
168
- if (this.gridSize === value) {
169
- return;
170
- }
171
- this.gridSize = value;
172
- this.requestRender();
173
- }
174
- @Listen('simplify-change', { target: 'light' })
175
- handleSimplifyChange(event) {
176
- const { value } = event.detail;
177
- if (this.simplify === value) {
178
- return;
179
- }
180
- this.simplify = value;
181
- this.requestRender();
182
- }
183
- @Listen('round-change', { target: 'light' })
184
- handleRoundChange(event) {
185
- const { value } = event.detail;
186
- if (this.round === value) {
187
- return;
188
- }
189
- this.round = value;
190
- this.requestRender();
191
- }
192
- @Listen('points-change', {
193
- target: 'light'
194
- })
195
- handlePointsChange(event) {
196
- const { value } = event.detail;
197
- this.points = value;
198
- if (Array.isArray(value)) {
199
- if (this.focusedLinearIndex !== null) {
200
- if (this.focusedLinearIndex >= value.length) {
201
- this.focusedLinearIndex = value.length - 1;
202
- }
203
- }
204
- }
205
- else {
206
- this.focusedLinearIndex = null;
207
- }
208
- }
209
- @Listen('keydown', { target: 'window', passive: false })
210
- handleKeyboardShortcuts(event) {
211
- if (event.defaultPrevented) {
212
- return;
213
- }
214
- const activeElement = event.target;
215
- if (activeElement instanceof HTMLInputElement ||
216
- activeElement instanceof HTMLTextAreaElement ||
217
- (activeElement instanceof HTMLElement && activeElement.isContentEditable)) {
218
- return;
219
- }
220
- if (this.easingType !== EasingType.LINEAR || !Array.isArray(this.points)) {
221
- return;
222
- }
223
- const index = this.focusedLinearIndex;
224
- if (index === null) {
225
- return;
226
- }
227
- const lastIndex = this.points.length - 1;
228
- const clonedPoints = this.points.map((point) => {
229
- return { ...point };
230
- });
231
- const point = clonedPoints[index];
232
- if (!point) {
233
- return;
234
- }
235
- const step = event.shiftKey ? 0.05 : 0.01;
236
- let handled = false;
237
- switch (event.key) {
238
- case 'ArrowLeft': {
239
- if (index <= 0 || index >= lastIndex) {
240
- break;
241
- }
242
- const previous = clonedPoints[index - 1];
243
- const next = clonedPoints[index + 1];
244
- if (!previous || !next) {
245
- break;
246
- }
247
- const minX = previous.x + MIN_LINEAR_DELTA;
248
- const maxX = next.x - MIN_LINEAR_DELTA;
249
- point.x = Math.min(Math.max(point.x - step, minX), maxX);
250
- handled = true;
251
- break;
252
- }
253
- case 'ArrowRight': {
254
- if (index <= 0 || index >= lastIndex) {
255
- break;
256
- }
257
- const previous = clonedPoints[index - 1];
258
- const next = clonedPoints[index + 1];
259
- if (!previous || !next) {
260
- break;
261
- }
262
- const minX = previous.x + MIN_LINEAR_DELTA;
263
- const maxX = next.x - MIN_LINEAR_DELTA;
264
- point.x = Math.min(Math.max(point.x + step, minX), maxX);
265
- handled = true;
266
- break;
267
- }
268
- case 'ArrowUp': {
269
- point.y = Math.min(Math.max(point.y + step, 0), 1);
270
- handled = true;
271
- break;
272
- }
273
- case 'ArrowDown': {
274
- point.y = Math.min(Math.max(point.y - step, 0), 1);
275
- handled = true;
276
- break;
277
- }
278
- case 'Delete':
279
- case 'Backspace': {
280
- if (clonedPoints.length <= MIN_LINEAR_POINTS || index <= 0 || index >= lastIndex) {
281
- break;
282
- }
283
- clonedPoints.splice(index, 1);
284
- const normalized = normalizeLinearPoints(clonedPoints);
285
- this.points = normalized;
286
- this.emitPointsChange(normalized, event);
287
- const nextFocus = index - 1;
288
- this.focusedLinearIndex = nextFocus;
289
- handled = true;
290
- break;
291
- }
292
- default:
293
- break;
294
- }
295
- if (handled && event.key !== 'Delete' && event.key !== 'Backspace') {
296
- const normalized = normalizeLinearPoints(clonedPoints);
297
- this.points = normalized;
298
- this.emitPointsChange(normalized, event);
299
- this.focusedLinearIndex = index;
300
- }
301
- if (handled) {
302
- event.preventDefault();
303
- }
304
- }
305
- @Listen('linear-point-focus', { target: 'light' })
306
- handleLinearPointFocus(event) {
307
- const { value } = event.detail;
308
- if (this.focusedLinearIndex === value) {
309
- return;
310
- }
311
- this.focusedLinearIndex = value ?? null;
312
- }
313
- emitPointsChange(value, sourceEvent) {
314
- const detail = {
315
- value,
316
- event: sourceEvent ?? new Event('points-change')
317
- };
318
- this.dispatchEvent(new CustomEvent('points-change', {
319
- detail,
320
- bubbles: true,
321
- composed: true
322
- }));
323
- }
324
- }
325
- import "./canvas.js";
326
- import "./canvas-controls.js";
327
- import "./controls.js";
328
- import "./output.js";
329
- import "./toolbar.js";
330
- export { EasingType } from "./types.js";
@@ -1,141 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CurveOutput = void 0;
4
- const lit_html_1 = require("lit-html");
5
- const styles_1 = require("./styles.cjs");
6
- const types_1 = require("./types.cjs");
7
- const utils_1 = require("./utils.cjs");
8
- const Component_1 = require("../../decorators/Component");
9
- const Prop_1 = require("../../decorators/Prop");
10
- require("../../components/code");
11
- @(0, Component_1.Component)({
12
- tag: 'ease-curve-output',
13
- styles: styles_1.outputStyles,
14
- template() {
15
- return (0, lit_html_1.html) `
16
- <div class="output-container">
17
- <div class="output-group">
18
- <h4 class="output-label">CSS Easing Function</h4>
19
- <ease-code language="css">${this.generatedCSS.code}</ease-code>
20
- <button class="copy-button" @click=${this.handleCopyClick}>
21
- ${this.copyStatus}
22
- </button>
23
- </div>
24
- </div>
25
- `;
26
- }
27
- })
28
- class CurveOutput extends HTMLElement {
29
- @(0, Prop_1.Prop)({ type: String, reflect: true })
30
- accessor easingType;
31
- @(0, Prop_1.Prop)({ type: Object, reflect: false })
32
- accessor points;
33
- @(0, Prop_1.Prop)({ reflect: true, defaultValue: 'ease-custom' })
34
- accessor name;
35
- @(0, Prop_1.Prop)({ reflect: true, defaultValue: 'animation' })
36
- accessor variant;
37
- @(0, Prop_1.Prop)({ type: Number, reflect: true, defaultValue: 0 })
38
- accessor simplify;
39
- @(0, Prop_1.Prop)({ type: Number, reflect: true, defaultValue: 5 })
40
- accessor round;
41
- #copyTimeout = null;
42
- #animationTimeout = null;
43
- #isAnimating = false;
44
- get timingFunction() {
45
- const { timingFunction } = this.generatedCSS;
46
- return timingFunction;
47
- }
48
- get generatedCSS() {
49
- if (this.easingType === types_1.EasingType.CUBIC_BEZIER) {
50
- if (!this.points || Array.isArray(this.points)) {
51
- const timingFunction = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
52
- const code = `
53
- .${this.name} {
54
- ${this.variant}-timing-function: ${timingFunction};
55
- }
56
- `;
57
- return { code, timingFunction };
58
- }
59
- return (0, utils_1.generateCubicBezierCSS)(this.points, this.name, this.variant);
60
- }
61
- if (this.easingType === types_1.EasingType.LINEAR) {
62
- if (Array.isArray(this.points)) {
63
- return (0, utils_1.generateLinearCSS)(this.points, this.name, this.variant, {
64
- simplify: this.simplify,
65
- round: this.round
66
- });
67
- }
68
- const timingFunction = 'linear(0, 1)';
69
- const code = `
70
- .${this.name} {
71
- ${this.variant}-timing-function: ${timingFunction};
72
- }
73
- `;
74
- return { code, timingFunction };
75
- }
76
- const timingFunction = 'ease';
77
- const code = `
78
- .${this.name} {
79
- ${this.variant}-timing-function: ${timingFunction};
80
- }
81
- `;
82
- return { code, timingFunction };
83
- }
84
- get copyStatus() {
85
- return this.#copyTimeout ? 'Copied!' : 'Copy CSS';
86
- }
87
- get isAnimating() {
88
- return this.#isAnimating;
89
- }
90
- #copyToClipboard = async (event) => {
91
- event.preventDefault();
92
- try {
93
- await navigator.clipboard.writeText(this.timingFunction);
94
- if (this.#copyTimeout) {
95
- clearTimeout(this.#copyTimeout);
96
- }
97
- this.#copyTimeout = window.setTimeout(() => {
98
- this.#copyTimeout = null;
99
- this.requestRender();
100
- }, 2000);
101
- this.requestRender();
102
- }
103
- catch (error) {
104
- console.error('Failed to copy to clipboard:', error);
105
- }
106
- };
107
- #playPreview = (event) => {
108
- event.preventDefault();
109
- if (this.#isAnimating) {
110
- this.#isAnimating = false;
111
- this.requestRender();
112
- void this.offsetHeight;
113
- }
114
- if (this.#animationTimeout) {
115
- clearTimeout(this.#animationTimeout);
116
- }
117
- this.#isAnimating = true;
118
- this.requestRender();
119
- this.#animationTimeout = window.setTimeout(() => {
120
- this.#isAnimating = false;
121
- this.requestRender();
122
- }, 2000);
123
- };
124
- handleCopyClick = (event) => {
125
- void this.#copyToClipboard(event);
126
- };
127
- handlePreviewClick(event) {
128
- this.#playPreview(event);
129
- }
130
- disconnectedCallback() {
131
- if (this.#copyTimeout) {
132
- clearTimeout(this.#copyTimeout);
133
- this.#copyTimeout = null;
134
- }
135
- if (this.#animationTimeout) {
136
- clearTimeout(this.#animationTimeout);
137
- this.#animationTimeout = null;
138
- }
139
- }
140
- }
141
- exports.CurveOutput = CurveOutput;
@@ -1,19 +0,0 @@
1
- import { type CSSCode, type CubicBezierPoints, EasingType, type LinearPoints } from "./types.cjs";
2
- import '../../components/code';
3
- export declare class CurveOutput extends HTMLElement {
4
- #private;
5
- requestRender: () => void;
6
- accessor easingType: EasingType;
7
- accessor points: CubicBezierPoints | LinearPoints;
8
- accessor name: string;
9
- accessor variant: 'animation' | 'transition';
10
- accessor simplify: number;
11
- accessor round: number;
12
- get timingFunction(): string;
13
- get generatedCSS(): CSSCode;
14
- get copyStatus(): string;
15
- get isAnimating(): boolean;
16
- readonly handleCopyClick: (event: Event) => void;
17
- handlePreviewClick(event: Event): void;
18
- disconnectedCallback(): void;
19
- }
@@ -1,19 +0,0 @@
1
- import { type CSSCode, type CubicBezierPoints, EasingType, type LinearPoints } from "./types.js";
2
- import '../../components/code';
3
- export declare class CurveOutput extends HTMLElement {
4
- #private;
5
- requestRender: () => void;
6
- accessor easingType: EasingType;
7
- accessor points: CubicBezierPoints | LinearPoints;
8
- accessor name: string;
9
- accessor variant: 'animation' | 'transition';
10
- accessor simplify: number;
11
- accessor round: number;
12
- get timingFunction(): string;
13
- get generatedCSS(): CSSCode;
14
- get copyStatus(): string;
15
- get isAnimating(): boolean;
16
- readonly handleCopyClick: (event: Event) => void;
17
- handlePreviewClick(event: Event): void;
18
- disconnectedCallback(): void;
19
- }
@@ -1,137 +0,0 @@
1
- import { html } from 'lit-html';
2
- import { outputStyles } from "./styles.js";
3
- import { EasingType } from "./types.js";
4
- import { generateCubicBezierCSS, generateLinearCSS } from "./utils.js";
5
- import { Component } from '../../decorators/Component';
6
- import { Prop } from '../../decorators/Prop';
7
- import '../../components/code';
8
- @Component({
9
- tag: 'ease-curve-output',
10
- styles: outputStyles,
11
- template() {
12
- return html `
13
- <div class="output-container">
14
- <div class="output-group">
15
- <h4 class="output-label">CSS Easing Function</h4>
16
- <ease-code language="css">${this.generatedCSS.code}</ease-code>
17
- <button class="copy-button" @click=${this.handleCopyClick}>
18
- ${this.copyStatus}
19
- </button>
20
- </div>
21
- </div>
22
- `;
23
- }
24
- })
25
- export class CurveOutput extends HTMLElement {
26
- @Prop({ type: String, reflect: true })
27
- accessor easingType;
28
- @Prop({ type: Object, reflect: false })
29
- accessor points;
30
- @Prop({ reflect: true, defaultValue: 'ease-custom' })
31
- accessor name;
32
- @Prop({ reflect: true, defaultValue: 'animation' })
33
- accessor variant;
34
- @Prop({ type: Number, reflect: true, defaultValue: 0 })
35
- accessor simplify;
36
- @Prop({ type: Number, reflect: true, defaultValue: 5 })
37
- accessor round;
38
- #copyTimeout = null;
39
- #animationTimeout = null;
40
- #isAnimating = false;
41
- get timingFunction() {
42
- const { timingFunction } = this.generatedCSS;
43
- return timingFunction;
44
- }
45
- get generatedCSS() {
46
- if (this.easingType === EasingType.CUBIC_BEZIER) {
47
- if (!this.points || Array.isArray(this.points)) {
48
- const timingFunction = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
49
- const code = `
50
- .${this.name} {
51
- ${this.variant}-timing-function: ${timingFunction};
52
- }
53
- `;
54
- return { code, timingFunction };
55
- }
56
- return generateCubicBezierCSS(this.points, this.name, this.variant);
57
- }
58
- if (this.easingType === EasingType.LINEAR) {
59
- if (Array.isArray(this.points)) {
60
- return generateLinearCSS(this.points, this.name, this.variant, {
61
- simplify: this.simplify,
62
- round: this.round
63
- });
64
- }
65
- const timingFunction = 'linear(0, 1)';
66
- const code = `
67
- .${this.name} {
68
- ${this.variant}-timing-function: ${timingFunction};
69
- }
70
- `;
71
- return { code, timingFunction };
72
- }
73
- const timingFunction = 'ease';
74
- const code = `
75
- .${this.name} {
76
- ${this.variant}-timing-function: ${timingFunction};
77
- }
78
- `;
79
- return { code, timingFunction };
80
- }
81
- get copyStatus() {
82
- return this.#copyTimeout ? 'Copied!' : 'Copy CSS';
83
- }
84
- get isAnimating() {
85
- return this.#isAnimating;
86
- }
87
- #copyToClipboard = async (event) => {
88
- event.preventDefault();
89
- try {
90
- await navigator.clipboard.writeText(this.timingFunction);
91
- if (this.#copyTimeout) {
92
- clearTimeout(this.#copyTimeout);
93
- }
94
- this.#copyTimeout = window.setTimeout(() => {
95
- this.#copyTimeout = null;
96
- this.requestRender();
97
- }, 2000);
98
- this.requestRender();
99
- }
100
- catch (error) {
101
- console.error('Failed to copy to clipboard:', error);
102
- }
103
- };
104
- #playPreview = (event) => {
105
- event.preventDefault();
106
- if (this.#isAnimating) {
107
- this.#isAnimating = false;
108
- this.requestRender();
109
- void this.offsetHeight;
110
- }
111
- if (this.#animationTimeout) {
112
- clearTimeout(this.#animationTimeout);
113
- }
114
- this.#isAnimating = true;
115
- this.requestRender();
116
- this.#animationTimeout = window.setTimeout(() => {
117
- this.#isAnimating = false;
118
- this.requestRender();
119
- }, 2000);
120
- };
121
- handleCopyClick = (event) => {
122
- void this.#copyToClipboard(event);
123
- };
124
- handlePreviewClick(event) {
125
- this.#playPreview(event);
126
- }
127
- disconnectedCallback() {
128
- if (this.#copyTimeout) {
129
- clearTimeout(this.#copyTimeout);
130
- this.#copyTimeout = null;
131
- }
132
- if (this.#animationTimeout) {
133
- clearTimeout(this.#animationTimeout);
134
- this.#animationTimeout = null;
135
- }
136
- }
137
- }