mates-devtools 0.1.0-beta.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 (379) hide show
  1. package/dist/mates-devtools.es.js +3464 -0
  2. package/dist/mates-devtools.umd.js +650 -0
  3. package/dist/types/Mates-DevTools/src/MatesDevTools.d.ts +5 -0
  4. package/dist/types/Mates-DevTools/src/MatesDevTools.d.ts.map +1 -0
  5. package/dist/types/Mates-DevTools/src/MatesDevToolsComponent.d.ts +24 -0
  6. package/dist/types/Mates-DevTools/src/MatesDevToolsComponent.d.ts.map +1 -0
  7. package/dist/types/Mates-DevTools/src/components/AtomsViewer.d.ts +2 -0
  8. package/dist/types/Mates-DevTools/src/components/AtomsViewer.d.ts.map +1 -0
  9. package/dist/types/Mates-DevTools/src/components/ComponentInspector.d.ts +27 -0
  10. package/dist/types/Mates-DevTools/src/components/ComponentInspector.d.ts.map +1 -0
  11. package/dist/types/Mates-DevTools/src/components/ComponentList.d.ts +11 -0
  12. package/dist/types/Mates-DevTools/src/components/ComponentList.d.ts.map +1 -0
  13. package/dist/types/Mates-DevTools/src/components/ComponentTree.d.ts +9 -0
  14. package/dist/types/Mates-DevTools/src/components/ComponentTree.d.ts.map +1 -0
  15. package/dist/types/Mates-DevTools/src/components/Header.d.ts +10 -0
  16. package/dist/types/Mates-DevTools/src/components/Header.d.ts.map +1 -0
  17. package/dist/types/Mates-DevTools/src/components/Highlight.d.ts +6 -0
  18. package/dist/types/Mates-DevTools/src/components/Highlight.d.ts.map +1 -0
  19. package/dist/types/Mates-DevTools/src/components/HooksViewer.d.ts +7 -0
  20. package/dist/types/Mates-DevTools/src/components/HooksViewer.d.ts.map +1 -0
  21. package/dist/types/Mates-DevTools/src/components/LogsViewer.d.ts +6 -0
  22. package/dist/types/Mates-DevTools/src/components/LogsViewer.d.ts.map +1 -0
  23. package/dist/types/Mates-DevTools/src/components/PerfViewer.d.ts +7 -0
  24. package/dist/types/Mates-DevTools/src/components/PerfViewer.d.ts.map +1 -0
  25. package/dist/types/Mates-DevTools/src/components/PropsViewer.d.ts +2 -0
  26. package/dist/types/Mates-DevTools/src/components/PropsViewer.d.ts.map +1 -0
  27. package/dist/types/Mates-DevTools/src/components/ScopesViewer.d.ts +2 -0
  28. package/dist/types/Mates-DevTools/src/components/ScopesViewer.d.ts.map +1 -0
  29. package/dist/types/Mates-DevTools/src/components/TimerLogger.d.ts +5 -0
  30. package/dist/types/Mates-DevTools/src/components/TimerLogger.d.ts.map +1 -0
  31. package/dist/types/Mates-DevTools/src/components/UseStateViewer.d.ts +12 -0
  32. package/dist/types/Mates-DevTools/src/components/UseStateViewer.d.ts.map +1 -0
  33. package/dist/types/Mates-DevTools/src/components/ValueTree.d.ts +19 -0
  34. package/dist/types/Mates-DevTools/src/components/ValueTree.d.ts.map +1 -0
  35. package/dist/types/Mates-DevTools/src/index.d.ts +23 -0
  36. package/dist/types/Mates-DevTools/src/index.d.ts.map +1 -0
  37. package/dist/types/Mates-DevTools/src/interceptTimers.d.ts +11 -0
  38. package/dist/types/Mates-DevTools/src/interceptTimers.d.ts.map +1 -0
  39. package/dist/types/Mates-DevTools/src/logStore.d.ts +38 -0
  40. package/dist/types/Mates-DevTools/src/logStore.d.ts.map +1 -0
  41. package/dist/types/Mates-DevTools/src/perfStore.d.ts +36 -0
  42. package/dist/types/Mates-DevTools/src/perfStore.d.ts.map +1 -0
  43. package/dist/types/Mates-DevTools/src/registry.d.ts +68 -0
  44. package/dist/types/Mates-DevTools/src/registry.d.ts.map +1 -0
  45. package/dist/types/Mates-DevTools/src/styles.d.ts +833 -0
  46. package/dist/types/Mates-DevTools/src/styles.d.ts.map +1 -0
  47. package/dist/types/Mates-DevTools/src/types.d.ts +19 -0
  48. package/dist/types/Mates-DevTools/src/types.d.ts.map +1 -0
  49. package/dist/types/lib/Directives/$.d.ts +371 -0
  50. package/dist/types/lib/Directives/$.d.ts.map +1 -0
  51. package/dist/types/lib/Directives/animatedConditional.d.ts +67 -0
  52. package/dist/types/lib/Directives/animatedConditional.d.ts.map +1 -0
  53. package/dist/types/lib/Directives/animationClasses.d.ts +50 -0
  54. package/dist/types/lib/Directives/animationClasses.d.ts.map +1 -0
  55. package/dist/types/lib/Directives/attrDirective.d.ts +69 -0
  56. package/dist/types/lib/Directives/attrDirective.d.ts.map +1 -0
  57. package/dist/types/lib/Directives/classesDirective.d.ts +79 -0
  58. package/dist/types/lib/Directives/classesDirective.d.ts.map +1 -0
  59. package/dist/types/lib/Directives/eleHook.d.ts +84 -0
  60. package/dist/types/lib/Directives/eleHook.d.ts.map +1 -0
  61. package/dist/types/lib/Directives/eventBinding.d.ts +29 -0
  62. package/dist/types/lib/Directives/eventBinding.d.ts.map +1 -0
  63. package/dist/types/lib/Directives/htmlHook.d.ts +101 -0
  64. package/dist/types/lib/Directives/htmlHook.d.ts.map +1 -0
  65. package/dist/types/lib/Directives/index.d.ts +18 -0
  66. package/dist/types/lib/Directives/index.d.ts.map +1 -0
  67. package/dist/types/lib/Directives/intersectDirective.d.ts +67 -0
  68. package/dist/types/lib/Directives/intersectDirective.d.ts.map +1 -0
  69. package/dist/types/lib/Directives/lazyLoadDirective.d.ts +66 -0
  70. package/dist/types/lib/Directives/lazyLoadDirective.d.ts.map +1 -0
  71. package/dist/types/lib/Directives/lifecycleDirectives.d.ts +56 -0
  72. package/dist/types/lib/Directives/lifecycleDirectives.d.ts.map +1 -0
  73. package/dist/types/lib/Directives/masonryGrid.d.ts +114 -0
  74. package/dist/types/lib/Directives/masonryGrid.d.ts.map +1 -0
  75. package/dist/types/lib/Directives/memoTemplate.d.ts +94 -0
  76. package/dist/types/lib/Directives/memoTemplate.d.ts.map +1 -0
  77. package/dist/types/lib/Directives/onDirective.d.ts +71 -0
  78. package/dist/types/lib/Directives/onDirective.d.ts.map +1 -0
  79. package/dist/types/lib/Directives/onParentDirective.d.ts +34 -0
  80. package/dist/types/lib/Directives/onParentDirective.d.ts.map +1 -0
  81. package/dist/types/lib/Directives/renderSwitch.d.ts +55 -0
  82. package/dist/types/lib/Directives/renderSwitch.d.ts.map +1 -0
  83. package/dist/types/lib/Directives/resolveAttrValue.d.ts +35 -0
  84. package/dist/types/lib/Directives/resolveAttrValue.d.ts.map +1 -0
  85. package/dist/types/lib/Directives/styleDirective.d.ts +81 -0
  86. package/dist/types/lib/Directives/styleDirective.d.ts.map +1 -0
  87. package/dist/types/lib/Directives/timerDirective.d.ts +52 -0
  88. package/dist/types/lib/Directives/timerDirective.d.ts.map +1 -0
  89. package/dist/types/lib/Directives/virtualHelpers.d.ts +10 -0
  90. package/dist/types/lib/Directives/virtualHelpers.d.ts.map +1 -0
  91. package/dist/types/lib/Fetch/ErrorTypes.d.ts +74 -0
  92. package/dist/types/lib/Fetch/ErrorTypes.d.ts.map +1 -0
  93. package/dist/types/lib/Fetch/Fetch.d.ts +168 -0
  94. package/dist/types/lib/Fetch/Fetch.d.ts.map +1 -0
  95. package/dist/types/lib/Fetch/index.d.ts +3 -0
  96. package/dist/types/lib/Fetch/index.d.ts.map +1 -0
  97. package/dist/types/lib/Mutables/Extended Atoms/cacheAtom.d.ts +156 -0
  98. package/dist/types/lib/Mutables/Extended Atoms/cacheAtom.d.ts.map +1 -0
  99. package/dist/types/lib/Mutables/Extended Atoms/index.d.ts +4 -0
  100. package/dist/types/lib/Mutables/Extended Atoms/index.d.ts.map +1 -0
  101. package/dist/types/lib/Mutables/Extended Atoms/paginationAtom.d.ts +32 -0
  102. package/dist/types/lib/Mutables/Extended Atoms/paginationAtom.d.ts.map +1 -0
  103. package/dist/types/lib/Mutables/Extended Atoms/themeAtom.d.ts +59 -0
  104. package/dist/types/lib/Mutables/Extended Atoms/themeAtom.d.ts.map +1 -0
  105. package/dist/types/lib/Mutables/atom/atom.d.ts +148 -0
  106. package/dist/types/lib/Mutables/atom/atom.d.ts.map +1 -0
  107. package/dist/types/lib/Mutables/atom/createTimedAtom.d.ts +43 -0
  108. package/dist/types/lib/Mutables/atom/createTimedAtom.d.ts.map +1 -0
  109. package/dist/types/lib/Mutables/atom/debouncedAtom.d.ts +37 -0
  110. package/dist/types/lib/Mutables/atom/debouncedAtom.d.ts.map +1 -0
  111. package/dist/types/lib/Mutables/atom/index.d.ts +10 -0
  112. package/dist/types/lib/Mutables/atom/index.d.ts.map +1 -0
  113. package/dist/types/lib/Mutables/atom/mapAtom.d.ts +105 -0
  114. package/dist/types/lib/Mutables/atom/mapAtom.d.ts.map +1 -0
  115. package/dist/types/lib/Mutables/atom/setAtom.d.ts +107 -0
  116. package/dist/types/lib/Mutables/atom/setAtom.d.ts.map +1 -0
  117. package/dist/types/lib/Mutables/atom/storageAtom.d.ts +44 -0
  118. package/dist/types/lib/Mutables/atom/storageAtom.d.ts.map +1 -0
  119. package/dist/types/lib/Mutables/atom/throttledAtom.d.ts +37 -0
  120. package/dist/types/lib/Mutables/atom/throttledAtom.d.ts.map +1 -0
  121. package/dist/types/lib/Mutables/atom/titleAtom.d.ts +20 -0
  122. package/dist/types/lib/Mutables/atom/titleAtom.d.ts.map +1 -0
  123. package/dist/types/lib/Mutables/effect/effect.d.ts +31 -0
  124. package/dist/types/lib/Mutables/effect/effect.d.ts.map +1 -0
  125. package/dist/types/lib/Mutables/effect/index.d.ts +2 -0
  126. package/dist/types/lib/Mutables/effect/index.d.ts.map +1 -0
  127. package/dist/types/lib/Mutables/events/events.d.ts +123 -0
  128. package/dist/types/lib/Mutables/events/events.d.ts.map +1 -0
  129. package/dist/types/lib/Mutables/events/index.d.ts +2 -0
  130. package/dist/types/lib/Mutables/events/index.d.ts.map +1 -0
  131. package/dist/types/lib/Mutables/events/xTabEvent.d.ts +61 -0
  132. package/dist/types/lib/Mutables/events/xTabEvent.d.ts.map +1 -0
  133. package/dist/types/lib/Mutables/form/formAtom.d.ts +56 -0
  134. package/dist/types/lib/Mutables/form/formAtom.d.ts.map +1 -0
  135. package/dist/types/lib/Mutables/form/index.d.ts +5 -0
  136. package/dist/types/lib/Mutables/form/index.d.ts.map +1 -0
  137. package/dist/types/lib/Mutables/form/transformers.d.ts +4 -0
  138. package/dist/types/lib/Mutables/form/transformers.d.ts.map +1 -0
  139. package/dist/types/lib/Mutables/form/validateAll.d.ts +40 -0
  140. package/dist/types/lib/Mutables/form/validateAll.d.ts.map +1 -0
  141. package/dist/types/lib/Mutables/form/validators.d.ts +61 -0
  142. package/dist/types/lib/Mutables/form/validators.d.ts.map +1 -0
  143. package/dist/types/lib/Mutables/index.d.ts +13 -0
  144. package/dist/types/lib/Mutables/index.d.ts.map +1 -0
  145. package/dist/types/lib/Mutables/memo/index.d.ts +2 -0
  146. package/dist/types/lib/Mutables/memo/index.d.ts.map +1 -0
  147. package/dist/types/lib/Mutables/memo/memo.d.ts +47 -0
  148. package/dist/types/lib/Mutables/memo/memo.d.ts.map +1 -0
  149. package/dist/types/lib/Mutables/reactiveRunner/index.d.ts +4 -0
  150. package/dist/types/lib/Mutables/reactiveRunner/index.d.ts.map +1 -0
  151. package/dist/types/lib/Mutables/reactiveRunner/reactiveRunner.d.ts +56 -0
  152. package/dist/types/lib/Mutables/reactiveRunner/reactiveRunner.d.ts.map +1 -0
  153. package/dist/types/lib/Mutables/reactiveRunner/trackAndSubscribe.d.ts +6 -0
  154. package/dist/types/lib/Mutables/reactiveRunner/trackAndSubscribe.d.ts.map +1 -0
  155. package/dist/types/lib/Mutables/reactiveRunner/validateReactiveFunction.d.ts +6 -0
  156. package/dist/types/lib/Mutables/reactiveRunner/validateReactiveFunction.d.ts.map +1 -0
  157. package/dist/types/lib/Mutables/ref/index.d.ts +2 -0
  158. package/dist/types/lib/Mutables/ref/index.d.ts.map +1 -0
  159. package/dist/types/lib/Mutables/ref/ref.d.ts +74 -0
  160. package/dist/types/lib/Mutables/ref/ref.d.ts.map +1 -0
  161. package/dist/types/lib/Mutables/scope/index.d.ts +2 -0
  162. package/dist/types/lib/Mutables/scope/index.d.ts.map +1 -0
  163. package/dist/types/lib/Mutables/scope/scope.d.ts +60 -0
  164. package/dist/types/lib/Mutables/scope/scope.d.ts.map +1 -0
  165. package/dist/types/lib/Mutables/store/index.d.ts +2 -0
  166. package/dist/types/lib/Mutables/store/index.d.ts.map +1 -0
  167. package/dist/types/lib/Mutables/store/store.d.ts +73 -0
  168. package/dist/types/lib/Mutables/store/store.d.ts.map +1 -0
  169. package/dist/types/lib/Mutables/useState/index.d.ts +2 -0
  170. package/dist/types/lib/Mutables/useState/index.d.ts.map +1 -0
  171. package/dist/types/lib/Mutables/useState/useState.d.ts +54 -0
  172. package/dist/types/lib/Mutables/useState/useState.d.ts.map +1 -0
  173. package/dist/types/lib/Mutables/useStore/hostContext.d.ts +13 -0
  174. package/dist/types/lib/Mutables/useStore/hostContext.d.ts.map +1 -0
  175. package/dist/types/lib/Mutables/useStore/index.d.ts +9 -0
  176. package/dist/types/lib/Mutables/useStore/index.d.ts.map +1 -0
  177. package/dist/types/lib/Mutables/useStore/lifecycle.d.ts +94 -0
  178. package/dist/types/lib/Mutables/useStore/lifecycle.d.ts.map +1 -0
  179. package/dist/types/lib/Mutables/useStore/onError.d.ts +21 -0
  180. package/dist/types/lib/Mutables/useStore/onError.d.ts.map +1 -0
  181. package/dist/types/lib/Mutables/useStore/onReferenceChange.d.ts +2 -0
  182. package/dist/types/lib/Mutables/useStore/onReferenceChange.d.ts.map +1 -0
  183. package/dist/types/lib/Mutables/useStore/safetyCheck.d.ts +2 -0
  184. package/dist/types/lib/Mutables/useStore/safetyCheck.d.ts.map +1 -0
  185. package/dist/types/lib/Mutables/useStore/setter.d.ts +52 -0
  186. package/dist/types/lib/Mutables/useStore/setter.d.ts.map +1 -0
  187. package/dist/types/lib/Mutables/useStore/subscription.d.ts +50 -0
  188. package/dist/types/lib/Mutables/useStore/subscription.d.ts.map +1 -0
  189. package/dist/types/lib/Mutables/useStore/useContext.d.ts +3 -0
  190. package/dist/types/lib/Mutables/useStore/useContext.d.ts.map +1 -0
  191. package/dist/types/lib/Mutables/useStore/useStore.d.ts +7 -0
  192. package/dist/types/lib/Mutables/useStore/useStore.d.ts.map +1 -0
  193. package/dist/types/lib/Router/Router.d.ts +54 -0
  194. package/dist/types/lib/Router/Router.d.ts.map +1 -0
  195. package/dist/types/lib/Router/animatedRouter.d.ts +48 -0
  196. package/dist/types/lib/Router/animatedRouter.d.ts.map +1 -0
  197. package/dist/types/lib/Router/buildPath.d.ts +20 -0
  198. package/dist/types/lib/Router/buildPath.d.ts.map +1 -0
  199. package/dist/types/lib/Router/hashAtom.d.ts +12 -0
  200. package/dist/types/lib/Router/hashAtom.d.ts.map +1 -0
  201. package/dist/types/lib/Router/index.d.ts +11 -0
  202. package/dist/types/lib/Router/index.d.ts.map +1 -0
  203. package/dist/types/lib/Router/isPathMatching.d.ts +12 -0
  204. package/dist/types/lib/Router/isPathMatching.d.ts.map +1 -0
  205. package/dist/types/lib/Router/location.d.ts +74 -0
  206. package/dist/types/lib/Router/location.d.ts.map +1 -0
  207. package/dist/types/lib/Router/navigateTo.d.ts +31 -0
  208. package/dist/types/lib/Router/navigateTo.d.ts.map +1 -0
  209. package/dist/types/lib/Router/navigationLock.d.ts +50 -0
  210. package/dist/types/lib/Router/navigationLock.d.ts.map +1 -0
  211. package/dist/types/lib/Router/pathAtom.d.ts +42 -0
  212. package/dist/types/lib/Router/pathAtom.d.ts.map +1 -0
  213. package/dist/types/lib/Router/pathResolver.d.ts +9 -0
  214. package/dist/types/lib/Router/pathResolver.d.ts.map +1 -0
  215. package/dist/types/lib/Router/qsAtom.d.ts +12 -0
  216. package/dist/types/lib/Router/qsAtom.d.ts.map +1 -0
  217. package/dist/types/lib/Template/index.d.ts +6 -0
  218. package/dist/types/lib/Template/index.d.ts.map +1 -0
  219. package/dist/types/lib/Template/scheduler.d.ts +59 -0
  220. package/dist/types/lib/Template/scheduler.d.ts.map +1 -0
  221. package/dist/types/lib/Template/x-x.d.ts +60 -0
  222. package/dist/types/lib/Template/x-x.d.ts.map +1 -0
  223. package/dist/types/lib/Template/x-x.types.d.ts +91 -0
  224. package/dist/types/lib/Template/x-x.types.d.ts.map +1 -0
  225. package/dist/types/lib/Template/x-x.utils.d.ts +15 -0
  226. package/dist/types/lib/Template/x-x.utils.d.ts.map +1 -0
  227. package/dist/types/lib/Template/x.d.ts +5 -0
  228. package/dist/types/lib/Template/x.d.ts.map +1 -0
  229. package/dist/types/lib/Template/xProvider.d.ts +2 -0
  230. package/dist/types/lib/Template/xProvider.d.ts.map +1 -0
  231. package/dist/types/lib/Timers/createManagedTimer.d.ts +12 -0
  232. package/dist/types/lib/Timers/createManagedTimer.d.ts.map +1 -0
  233. package/dist/types/lib/Timers/index.d.ts +4 -0
  234. package/dist/types/lib/Timers/index.d.ts.map +1 -0
  235. package/dist/types/lib/Timers/interval.d.ts +2 -0
  236. package/dist/types/lib/Timers/interval.d.ts.map +1 -0
  237. package/dist/types/lib/Timers/timeout.d.ts +2 -0
  238. package/dist/types/lib/Timers/timeout.d.ts.map +1 -0
  239. package/dist/types/lib/TrackState/componentStatus.d.ts +105 -0
  240. package/dist/types/lib/TrackState/componentStatus.d.ts.map +1 -0
  241. package/dist/types/lib/TrackState/readTracking.d.ts +20 -0
  242. package/dist/types/lib/TrackState/readTracking.d.ts.map +1 -0
  243. package/dist/types/lib/Utils/Context.d.ts +6 -0
  244. package/dist/types/lib/Utils/Context.d.ts.map +1 -0
  245. package/dist/types/lib/Utils/Date/calendar.d.ts +30 -0
  246. package/dist/types/lib/Utils/Date/calendar.d.ts.map +1 -0
  247. package/dist/types/lib/Utils/Date/core.d.ts +29 -0
  248. package/dist/types/lib/Utils/Date/core.d.ts.map +1 -0
  249. package/dist/types/lib/Utils/Date/date.d.ts +60 -0
  250. package/dist/types/lib/Utils/Date/date.d.ts.map +1 -0
  251. package/dist/types/lib/Utils/Date/index.d.ts +3 -0
  252. package/dist/types/lib/Utils/Date/index.d.ts.map +1 -0
  253. package/dist/types/lib/Utils/deepClone.d.ts +7 -0
  254. package/dist/types/lib/Utils/deepClone.d.ts.map +1 -0
  255. package/dist/types/lib/Utils/deepFreeze.d.ts +2 -0
  256. package/dist/types/lib/Utils/deepFreeze.d.ts.map +1 -0
  257. package/dist/types/lib/Utils/getAllProps.d.ts +2 -0
  258. package/dist/types/lib/Utils/getAllProps.d.ts.map +1 -0
  259. package/dist/types/lib/Utils/helpers.d.ts +13 -0
  260. package/dist/types/lib/Utils/helpers.d.ts.map +1 -0
  261. package/dist/types/lib/Utils/index.d.ts +13 -0
  262. package/dist/types/lib/Utils/index.d.ts.map +1 -0
  263. package/dist/types/lib/Utils/is.d.ts +12 -0
  264. package/dist/types/lib/Utils/is.d.ts.map +1 -0
  265. package/dist/types/lib/Utils/isDefinedAsGetter.d.ts +2 -0
  266. package/dist/types/lib/Utils/isDefinedAsGetter.d.ts.map +1 -0
  267. package/dist/types/lib/Utils/logger.d.ts +22 -0
  268. package/dist/types/lib/Utils/logger.d.ts.map +1 -0
  269. package/dist/types/lib/Utils/notificationManager.d.ts +67 -0
  270. package/dist/types/lib/Utils/notificationManager.d.ts.map +1 -0
  271. package/dist/types/lib/Utils/registerCleanup.d.ts +7 -0
  272. package/dist/types/lib/Utils/registerCleanup.d.ts.map +1 -0
  273. package/dist/types/lib/Utils/svgIcon.d.ts +95 -0
  274. package/dist/types/lib/Utils/svgIcon.d.ts.map +1 -0
  275. package/dist/types/lib/Utils/uuid.d.ts +7 -0
  276. package/dist/types/lib/Utils/uuid.d.ts.map +1 -0
  277. package/dist/types/lib/ZeroPromise/index.d.ts +2 -0
  278. package/dist/types/lib/ZeroPromise/index.d.ts.map +1 -0
  279. package/dist/types/lib/ZeroPromise/zero.d.ts +23 -0
  280. package/dist/types/lib/ZeroPromise/zero.d.ts.map +1 -0
  281. package/dist/types/lib/actions/action.d.ts +14 -0
  282. package/dist/types/lib/actions/action.d.ts.map +1 -0
  283. package/dist/types/lib/actions/animatePresets.d.ts +38 -0
  284. package/dist/types/lib/actions/animatePresets.d.ts.map +1 -0
  285. package/dist/types/lib/actions/animateSwap.d.ts +79 -0
  286. package/dist/types/lib/actions/animateSwap.d.ts.map +1 -0
  287. package/dist/types/lib/actions/animateTypes.d.ts +103 -0
  288. package/dist/types/lib/actions/animateTypes.d.ts.map +1 -0
  289. package/dist/types/lib/actions/asyncAction.d.ts +4 -0
  290. package/dist/types/lib/actions/asyncAction.d.ts.map +1 -0
  291. package/dist/types/lib/actions/asyncActionCache.d.ts +16 -0
  292. package/dist/types/lib/actions/asyncActionCache.d.ts.map +1 -0
  293. package/dist/types/lib/actions/asyncActionPolling.d.ts +14 -0
  294. package/dist/types/lib/actions/asyncActionPolling.d.ts.map +1 -0
  295. package/dist/types/lib/actions/asyncActionTypes.d.ts +74 -0
  296. package/dist/types/lib/actions/asyncActionTypes.d.ts.map +1 -0
  297. package/dist/types/lib/actions/createTimingFunction.d.ts +23 -0
  298. package/dist/types/lib/actions/createTimingFunction.d.ts.map +1 -0
  299. package/dist/types/lib/actions/debounce.d.ts +10 -0
  300. package/dist/types/lib/actions/debounce.d.ts.map +1 -0
  301. package/dist/types/lib/actions/index.d.ts +12 -0
  302. package/dist/types/lib/actions/index.d.ts.map +1 -0
  303. package/dist/types/lib/actions/paginatedAsyncAction.d.ts +121 -0
  304. package/dist/types/lib/actions/paginatedAsyncAction.d.ts.map +1 -0
  305. package/dist/types/lib/actions/taskAction.d.ts +105 -0
  306. package/dist/types/lib/actions/taskAction.d.ts.map +1 -0
  307. package/dist/types/lib/actions/throttle.d.ts +9 -0
  308. package/dist/types/lib/actions/throttle.d.ts.map +1 -0
  309. package/dist/types/lib/css-in-js/cl.d.ts +37 -0
  310. package/dist/types/lib/css-in-js/cl.d.ts.map +1 -0
  311. package/dist/types/lib/css-in-js/index.d.ts +7 -0
  312. package/dist/types/lib/css-in-js/index.d.ts.map +1 -0
  313. package/dist/types/lib/css-in-js/sanitize.d.ts +31 -0
  314. package/dist/types/lib/css-in-js/sanitize.d.ts.map +1 -0
  315. package/dist/types/lib/css-in-js/serialize.d.ts +98 -0
  316. package/dist/types/lib/css-in-js/serialize.d.ts.map +1 -0
  317. package/dist/types/lib/css-in-js/stylesheet.d.ts +188 -0
  318. package/dist/types/lib/css-in-js/stylesheet.d.ts.map +1 -0
  319. package/dist/types/lib/css-in-js/theme.d.ts +110 -0
  320. package/dist/types/lib/css-in-js/theme.d.ts.map +1 -0
  321. package/dist/types/lib/devtools/devtoolsHooks.d.ts +101 -0
  322. package/dist/types/lib/devtools/devtoolsHooks.d.ts.map +1 -0
  323. package/dist/types/lib/devtools/index.d.ts +2 -0
  324. package/dist/types/lib/devtools/index.d.ts.map +1 -0
  325. package/dist/types/lib/index.d.ts +46 -0
  326. package/dist/types/lib/index.d.ts.map +1 -0
  327. package/dist/types/lib/on/hooks.d.ts +319 -0
  328. package/dist/types/lib/on/hooks.d.ts.map +1 -0
  329. package/dist/types/lib/on/index.d.ts +3 -0
  330. package/dist/types/lib/on/index.d.ts.map +1 -0
  331. package/dist/types/lib/on/on.d.ts +16 -0
  332. package/dist/types/lib/on/on.d.ts.map +1 -0
  333. package/dist/types/lib/portals/dialog.d.ts +56 -0
  334. package/dist/types/lib/portals/dialog.d.ts.map +1 -0
  335. package/dist/types/lib/portals/index.d.ts +9 -0
  336. package/dist/types/lib/portals/index.d.ts.map +1 -0
  337. package/dist/types/lib/portals/popup.d.ts +37 -0
  338. package/dist/types/lib/portals/popup.d.ts.map +1 -0
  339. package/dist/types/lib/portals/portal.d.ts +57 -0
  340. package/dist/types/lib/portals/portal.d.ts.map +1 -0
  341. package/dist/types/lib/portals/tip.d.ts +38 -0
  342. package/dist/types/lib/portals/tip.d.ts.map +1 -0
  343. package/dist/types/lib/socket/index.d.ts +2 -0
  344. package/dist/types/lib/socket/index.d.ts.map +1 -0
  345. package/dist/types/lib/socket/ws.d.ts +83 -0
  346. package/dist/types/lib/socket/ws.d.ts.map +1 -0
  347. package/dist/types/lib/ssr/index.d.ts +3 -0
  348. package/dist/types/lib/ssr/index.d.ts.map +1 -0
  349. package/dist/types/lib/ssr/ssr-bridge.d.ts +89 -0
  350. package/dist/types/lib/ssr/ssr-bridge.d.ts.map +1 -0
  351. package/dist/types/lib/ssr/ssrFlag.d.ts +38 -0
  352. package/dist/types/lib/ssr/ssrFlag.d.ts.map +1 -0
  353. package/dist/types/lib/virtualizer/ScrollerController.d.ts +54 -0
  354. package/dist/types/lib/virtualizer/ScrollerController.d.ts.map +1 -0
  355. package/dist/types/lib/virtualizer/Virtualizer.d.ts +214 -0
  356. package/dist/types/lib/virtualizer/Virtualizer.d.ts.map +1 -0
  357. package/dist/types/lib/virtualizer/events.d.ts +27 -0
  358. package/dist/types/lib/virtualizer/events.d.ts.map +1 -0
  359. package/dist/types/lib/virtualizer/layouts/flow.d.ts +123 -0
  360. package/dist/types/lib/virtualizer/layouts/flow.d.ts.map +1 -0
  361. package/dist/types/lib/virtualizer/layouts/grid.d.ts +25 -0
  362. package/dist/types/lib/virtualizer/layouts/grid.d.ts.map +1 -0
  363. package/dist/types/lib/virtualizer/layouts/masonry.d.ts +37 -0
  364. package/dist/types/lib/virtualizer/layouts/masonry.d.ts.map +1 -0
  365. package/dist/types/lib/virtualizer/layouts/shared/BaseLayout.d.ts +204 -0
  366. package/dist/types/lib/virtualizer/layouts/shared/BaseLayout.d.ts.map +1 -0
  367. package/dist/types/lib/virtualizer/layouts/shared/GridBaseLayout.d.ts +41 -0
  368. package/dist/types/lib/virtualizer/layouts/shared/GridBaseLayout.d.ts.map +1 -0
  369. package/dist/types/lib/virtualizer/layouts/shared/Layout.d.ts +138 -0
  370. package/dist/types/lib/virtualizer/layouts/shared/Layout.d.ts.map +1 -0
  371. package/dist/types/lib/virtualizer/layouts/shared/SizeCache.d.ts +19 -0
  372. package/dist/types/lib/virtualizer/layouts/shared/SizeCache.d.ts.map +1 -0
  373. package/dist/types/lib/virtualizer/layouts/shared/SizeGapPaddingBaseLayout.d.ts +57 -0
  374. package/dist/types/lib/virtualizer/layouts/shared/SizeGapPaddingBaseLayout.d.ts.map +1 -0
  375. package/dist/types/lib/virtualizer/mates-adapter.d.ts +201 -0
  376. package/dist/types/lib/virtualizer/mates-adapter.d.ts.map +1 -0
  377. package/dist/types/lib/virtualizer/virtualize.d.ts +52 -0
  378. package/dist/types/lib/virtualizer/virtualize.d.ts.map +1 -0
  379. package/package.json +45 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAChD,eAAO,MAAM,oBAAoB,aAAa,CAAC;AAE/C,eAAO,MAAM,cAAc,QAGzB,CAAC;AAeH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAw4BjB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { Component } from "mates";
2
+ export interface ComponentInfo {
3
+ component: any;
4
+ name: string;
5
+ }
6
+ /**
7
+ * A group of component instances that share the same view function (by reference).
8
+ * The left column shows one row per group; expanding it in the right column
9
+ * reveals individual instances.
10
+ */
11
+ export interface ComponentGroup {
12
+ /** The shared view function reference */
13
+ viewFn: Function;
14
+ /** Display name derived from the view function */
15
+ name: string;
16
+ /** All currently mounted instances that use this view */
17
+ instances: Component[];
18
+ }
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,GAAG,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,MAAM,EAAE,QAAQ,CAAC;IACjB,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,SAAS,EAAE,SAAS,EAAE,CAAC;CACxB"}
@@ -0,0 +1,371 @@
1
+ import type { TemplateResult } from "lit-html";
2
+ import type { MatesRef } from "../Mutables/ref/ref";
3
+ import type { ClassesInput } from "./classesDirective";
4
+ import type { AttrMap } from "./resolveAttrValue";
5
+ import type { StyleMap } from "./styleDirective";
6
+ /** Any value accepted by the `data()` method — serialised via String(). */
7
+ type DataMap = Record<string, string | number | boolean | null | undefined>;
8
+ /** Subset of DOM event names + a loose string for custom events. */
9
+ type EventName = keyof HTMLElementEventMap | (string & {});
10
+ /** Event listener options forwarded to addEventListener. */
11
+ type ListenerOptions = boolean | AddEventListenerOptions;
12
+ /** ARIA attribute map — keys are aria-* names (with or without the "aria-" prefix). */
13
+ type AriaMap = Record<string, string | number | boolean | null | undefined>;
14
+ /** Scroll options for .scroll(). */
15
+ type ScrollToOptions = {
16
+ top?: number;
17
+ left?: number;
18
+ behavior?: ScrollBehavior;
19
+ };
20
+ /** Measurement result returned by .measure(). */
21
+ export interface Measurements {
22
+ width: number;
23
+ height: number;
24
+ top: number;
25
+ left: number;
26
+ right: number;
27
+ bottom: number;
28
+ x: number;
29
+ y: number;
30
+ }
31
+ /**
32
+ * Fluent chain returned by `$(element)`.
33
+ *
34
+ * Every method returns `this` so calls can be chained:
35
+ *
36
+ * ```ts
37
+ * $(el)
38
+ * .attr({ "aria-label": "Close", disabled: isDisabled })
39
+ * .style({ color: "red", fontSize: "14px" })
40
+ * .classes(["btn", [isActive, "btn-active"]])
41
+ * .on("click", () => handleClick())
42
+ * .text("Hello");
43
+ * ```
44
+ */
45
+ export interface DollarChain {
46
+ /**
47
+ * Set / remove attributes on the element.
48
+ *
49
+ * - `true` → sets attribute with empty string value (boolean attribute)
50
+ * - `false` → removes the attribute
51
+ * - `null` / `undefined` → removes the attribute
52
+ * - string / number → sets the attribute to that value
53
+ *
54
+ * ```ts
55
+ * $(el).attr({ disabled: true, "aria-label": "Close", tabindex: 0 });
56
+ * ```
57
+ */
58
+ attr(attrs: AttrMap): this;
59
+ /**
60
+ * Mutate the currently-applied attributes in-place via a draft object.
61
+ *
62
+ * The callback receives a **mutable draft** — a plain `Record<string, string>`
63
+ * pre-populated with every attribute that was set by a previous `.attr()` or
64
+ * `.updateAttr()` call on this element. Modify it freely: add keys, change
65
+ * values, delete keys. Whatever the draft looks like when the callback returns
66
+ * is applied to the element — removed keys cause the corresponding attribute
67
+ * to be removed from the DOM.
68
+ *
69
+ * No return value is needed (or used). This is intentionally different from
70
+ * `.attr()`, which replaces the whole map. `.updateAttr()` is for surgical,
71
+ * read-modify-write updates where you only want to touch a few keys.
72
+ *
73
+ * ```ts
74
+ * // Toggle aria-expanded based on its current value
75
+ * $(el).updateAttr((draft) => {
76
+ * draft["aria-expanded"] = draft["aria-expanded"] === "true" ? "false" : "true";
77
+ * });
78
+ *
79
+ * // Increment a counter attribute
80
+ * $(el).updateAttr((draft) => {
81
+ * draft["data-step"] = String(Number(draft["data-step"] ?? 0) + 1);
82
+ * });
83
+ *
84
+ * // Conditionally add/remove attributes
85
+ * $(el).updateAttr((draft) => {
86
+ * if (isLoading) {
87
+ * draft["disabled"] = "";
88
+ * draft["aria-busy"] = "true";
89
+ * } else {
90
+ * delete draft["disabled"];
91
+ * delete draft["aria-busy"];
92
+ * }
93
+ * });
94
+ *
95
+ * // Chain freely — reads the live state at call time
96
+ * $(el)
97
+ * .attr({ "data-loading": "true", tabindex: -1 })
98
+ * .updateAttr((draft) => { draft["aria-busy"] = draft["data-loading"]; });
99
+ * ```
100
+ */
101
+ updateAttr(fn: (draft: Record<string, string>) => void): this;
102
+ /**
103
+ * Apply inline styles to the element.
104
+ * Accepts camelCase CSS property names (type-safe via csstype) or
105
+ * kebab-case / custom property strings.
106
+ *
107
+ * Previously applied styles that are absent on a subsequent call are
108
+ * automatically removed.
109
+ *
110
+ * ```ts
111
+ * $(el).style({ color: "red", fontSize: "14px", "--gap": "8px" });
112
+ * ```
113
+ */
114
+ style(styles: StyleMap): this;
115
+ /**
116
+ * Declaratively manage the element's class list.
117
+ *
118
+ * Accepts:
119
+ * - an array of `ClassEntry` items (strings, conditionals, ternaries)
120
+ * - an object map `{ className: condition }`
121
+ * - a plain space-separated string
122
+ *
123
+ * Classes applied by a previous `classes()` call that are absent in the
124
+ * next call are removed automatically.
125
+ *
126
+ * ```ts
127
+ * $(el).classes(["btn", [isActive, "btn-active"], [isError, "btn-error", "btn-ok"]]);
128
+ * ```
129
+ */
130
+ classes(input: ClassesInput): this;
131
+ /**
132
+ * Add one or more space-separated class names to the element.
133
+ * Does not remove any existing classes.
134
+ *
135
+ * ```ts
136
+ * $(el).addClass("active highlighted");
137
+ * ```
138
+ */
139
+ addClass(names: string): this;
140
+ /**
141
+ * Remove one or more space-separated class names from the element.
142
+ *
143
+ * ```ts
144
+ * $(el).removeClass("active highlighted");
145
+ * ```
146
+ */
147
+ removeClass(names: string): this;
148
+ /**
149
+ * Toggle one or more space-separated class names on the element.
150
+ * Optionally accepts a `force` boolean:
151
+ * - `true` → always add
152
+ * - `false` → always remove
153
+ * - omitted → toggle
154
+ *
155
+ * ```ts
156
+ * $(el).toggleClass("open");
157
+ * $(el).toggleClass("open", isOpen);
158
+ * ```
159
+ */
160
+ toggleClass(names: string, force?: boolean): this;
161
+ /**
162
+ * Render a lit-html template inside the element.
163
+ * Accepts a factory function that returns a `TemplateResult` from `html\`…\``.
164
+ * Uses lit-html's `render()` under the hood, so the template is efficiently
165
+ * patched on subsequent calls.
166
+ *
167
+ * The factory must return a value — bare `html\`…\`` without a return is not
168
+ * valid here.
169
+ *
170
+ * ```ts
171
+ * $(el).html(() => html`<strong>${userName}</strong>`);
172
+ * ```
173
+ */
174
+ html(templateResult: TemplateResult): this;
175
+ /**
176
+ * Set the element's `textContent`.
177
+ * Any existing child nodes are replaced.
178
+ *
179
+ * ```ts
180
+ * $(el).text("Hello, world!");
181
+ * ```
182
+ */
183
+ text(content: string | number): this;
184
+ /**
185
+ * Attach a DOM event listener to the element.
186
+ * Subsequent calls with the same `event` name replace the previous listener
187
+ * (the old one is removed before the new one is added).
188
+ *
189
+ * ```ts
190
+ * $(el).on("click", (e) => handleClick(e));
191
+ * $(el).on("input", (e) => handleInput(e), { passive: true });
192
+ * ```
193
+ */
194
+ on<K extends EventName>(event: K, handler: K extends keyof HTMLElementEventMap ? (e: HTMLElementEventMap[K]) => void : (e: Event) => void, options?: ListenerOptions): this;
195
+ /**
196
+ * Set `data-*` attributes on the element.
197
+ * Keys are used as-is if they start with `data-`, otherwise `data-` is
198
+ * prepended automatically.
199
+ * `null` / `undefined` values remove the corresponding attribute.
200
+ *
201
+ * ```ts
202
+ * $(el).data({ id: 7, status: "active" });
203
+ * // → data-id="7" data-status="active"
204
+ * ```
205
+ */
206
+ data(map: DataMap): this;
207
+ /** The underlying element. */
208
+ readonly el: Element;
209
+ /**
210
+ * Focus the element, with an optional `FocusOptions` object.
211
+ *
212
+ * ```ts
213
+ * $(inputEl).focus();
214
+ * $(inputEl).focus({ preventScroll: true });
215
+ * ```
216
+ */
217
+ focus(options?: FocusOptions): this;
218
+ /**
219
+ * Remove focus from the element.
220
+ *
221
+ * ```ts
222
+ * $(el).blur();
223
+ * ```
224
+ */
225
+ blur(): this;
226
+ /**
227
+ * Scroll the element to a specific position, or pass a `behavior` string
228
+ * (`"smooth"` | `"instant"` | `"auto"`) as a shorthand for smooth scrolling
229
+ * to the top.
230
+ *
231
+ * ```ts
232
+ * $(el).scroll({ top: 0, behavior: "smooth" });
233
+ * $(el).scroll("smooth"); // shorthand — scrolls to top smoothly
234
+ * ```
235
+ */
236
+ scroll(options?: ScrollToOptions | ScrollBehavior): this;
237
+ /**
238
+ * Scroll the element into the viewport.
239
+ * Delegates to the native `scrollIntoView()`.
240
+ *
241
+ * ```ts
242
+ * $(el).scrollIntoView();
243
+ * $(el).scrollIntoView({ behavior: "smooth", block: "start" });
244
+ * ```
245
+ */
246
+ scrollIntoView(options?: ScrollIntoViewOptions | boolean): this;
247
+ /**
248
+ * Read the element's bounding rect via `getBoundingClientRect()` and return
249
+ * the measurements synchronously. The chain continues normally — the
250
+ * measurements are only available through the callback.
251
+ *
252
+ * ```ts
253
+ * $(el).measure(({ width, height, top }) => {
254
+ * console.log("size:", width, height, "top:", top);
255
+ * });
256
+ * ```
257
+ */
258
+ measure(callback: (rect: Measurements) => void): this;
259
+ /**
260
+ * Remove a previously registered listener for `event`.
261
+ * If no `handler` is provided, removes ALL listeners registered via `.on()`
262
+ * for that event name.
263
+ *
264
+ * ```ts
265
+ * $(el).off("click"); // remove all click listeners
266
+ * $(el).off("click", myHandler); // remove specific listener
267
+ * ```
268
+ */
269
+ off(event: EventName, handler?: EventListener): this;
270
+ /**
271
+ * Add a one-time event listener that automatically removes itself after
272
+ * firing once. Accepts the same options as `.on()`.
273
+ *
274
+ * ```ts
275
+ * $(el).once("transitionend", () => el.remove());
276
+ * ```
277
+ */
278
+ once<K extends EventName>(event: K, handler: K extends keyof HTMLElementEventMap ? (e: HTMLElementEventMap[K]) => void : (e: Event) => void, options?: ListenerOptions): this;
279
+ /**
280
+ * Attach a delegated event listener on this element that fires only when
281
+ * the event target matches `selector`. Useful for lists and dynamic children.
282
+ *
283
+ * ```ts
284
+ * $(listEl).delegate("click", "li.item", (e, target) => {
285
+ * console.log("item clicked:", target.dataset.id);
286
+ * });
287
+ * ```
288
+ */
289
+ delegate<K extends EventName>(event: K, selector: string, handler: (e: K extends keyof HTMLElementEventMap ? HTMLElementEventMap[K] : Event, matchedTarget: Element) => void, options?: ListenerOptions): this;
290
+ /**
291
+ * Set `aria-*` attributes. Keys may include or omit the `aria-` prefix.
292
+ * `null` / `undefined` / `false` removes the attribute.
293
+ *
294
+ * ```ts
295
+ * $(el).aria({ label: "Close dialog", hidden: false, expanded: isOpen });
296
+ * // → aria-label="Close dialog" aria-expanded="true/false"
297
+ * ```
298
+ */
299
+ aria(map: AriaMap): this;
300
+ }
301
+ /**
302
+ * Fluent DOM utility — wrap any element and chain imperative DOM operations.
303
+ *
304
+ * ```ts
305
+ * import { $ } from "mates";
306
+ *
307
+ * $(buttonEl)
308
+ * .attr({ disabled: isDisabled, "aria-pressed": isActive })
309
+ * .style({ opacity: [isDisabled, "0.5", "1"] })
310
+ * .classes(["btn", [isActive, "btn-active"]])
311
+ * .on("click", handleClick)
312
+ * .text("Click me");
313
+ * ```
314
+ *
315
+ * ### Methods
316
+ *
317
+ * | Method | Description |
318
+ * |--------|-------------|
319
+ * | `.attr(map)` | Set / remove attributes. Supports boolean, conditional `[cond, val]` and ternary `[cond, t, f]` values. |
320
+ * | `.style(map)` | Apply inline styles (camelCase or kebab-case). Previously applied styles removed automatically. |
321
+ * | `.classes(input)` | Manage class list via array, object map, or string. Stale classes removed automatically. |
322
+ * | `.addClass(names)` | Add space-separated class names. |
323
+ * | `.removeClass(names)` | Remove space-separated class names. |
324
+ * | `.toggleClass(names, force?)` | Toggle space-separated class names. |
325
+ * | `.html(factory)` | Render a lit-html template inside the element via `() => html\`…\``. |
326
+ * | `.text(content)` | Set `textContent`. |
327
+ * | `.on(event, handler, opts?)` | Add a DOM event listener. Re-calling with the same event replaces the previous listener. |
328
+ * | `.updateAttr(fn)` | Mutate current attrs via a draft object — add/change/delete keys, no return needed. |
329
+ * | `.off(event, handler?)` | Remove a listener added by `.on()`. Omit handler to remove all for that event. |
330
+ * | `.once(event, handler, opts?)` | One-time listener — auto-removes itself after firing. |
331
+ * | `.delegate(event, selector, handler)` | Delegated listener — fires only when target matches `selector`. |
332
+ * | `.props(map)` | Set JS properties directly on the element (for custom elements). |
333
+ * | `.data(map)` | Set `data-*` attributes. `null`/`undefined` removes the attribute. |
334
+ * | `.aria(map)` | Set `aria-*` attributes. Keys may omit the `aria-` prefix. `false`/`null` removes. |
335
+ * | `.cssVar(map)` | Set CSS custom properties (`--var`). Keys may omit `--`. `null` removes. |
336
+ * | `.show()` | Remove `display:none` inline style. |
337
+ * | `.hide()` | Set `display:none` inline style. |
338
+ * | `.toggle(force?)` | Toggle visibility. Optional `force` boolean overrides auto-detection. |
339
+ * | `.focus(opts?)` | Focus the element. |
340
+ * | `.blur()` | Blur the element. |
341
+ * | `.scroll(opts?)` | Scroll element to position. Pass `"smooth"` as shorthand for smooth-scroll-to-top. |
342
+ * | `.scrollIntoView(opts?)` | Scroll element into the viewport. |
343
+ * | `.measure(cb)` | Read `getBoundingClientRect()` synchronously inside a callback, keeps chain alive. |
344
+ * | `.getAttr(name)` | Read a single attribute value. Returns `null` if absent. |
345
+ * | `.clone(deep?)` | Clone the element and return a new `DollarChain` wrapping it. |
346
+ *
347
+ * Accepts either a raw `Element` **or** a `MatesRef` created by `ref()` /
348
+ * `createRef()`. When a `MatesRef` is passed and its `.value` is `undefined`
349
+ * (the element has not mounted yet, or has already been removed from the DOM),
350
+ * a descriptive error is thrown pointing to the correct lifecycle hooks.
351
+ *
352
+ * ```ts
353
+ * // ✅ Inside onMount / onPaint / onUpdate — element is guaranteed to exist
354
+ * const inputRef = ref<HTMLInputElement>();
355
+ *
356
+ * onMount(() => {
357
+ * $(inputRef).focus();
358
+ * });
359
+ *
360
+ * onUpdate(() => {
361
+ * $(inputRef).updateAttr((d) => { d["aria-invalid"] = hasError ? "true" : "false"; });
362
+ * });
363
+ * ```
364
+ *
365
+ * @param elementOrRef - A DOM `Element` or a `MatesRef<T>`.
366
+ * @returns A `DollarChain` instance bound to the element.
367
+ * @throws If a `MatesRef` is passed whose `.value` is `undefined`.
368
+ */
369
+ export declare function $<T extends Element = Element>(elementOrRef: T | MatesRef<T>): DollarChain;
370
+ export {};
371
+ //# sourceMappingURL=$.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"$.d.ts","sourceRoot":"","sources":["../../../../../lib/Directives/$.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * animatedConditional.ts
3
+ *
4
+ * Animated conditional rendering using the same atom + effect + animateSwap
5
+ * pattern proven in animatedRouter.
6
+ *
7
+ * - `animatedIf(condition, trueTemplate, falseTemplate?, config?)`
8
+ * Wraps content in a <div>, animates the div on swap.
9
+ *
10
+ * - `animatedX(component, props, config)`
11
+ * Thin wrapper over animatedIf — passes `x-view` as the true template.
12
+ */
13
+ import { nothing, type TemplateResult } from "lit-html";
14
+ import type { AnimationPreset } from "../actions/animateTypes";
15
+ import type { ComponentType } from "../Template/x-x.types";
16
+ export interface AnimatedIfConfig {
17
+ /** Animation played on the wrapper when new content enters. Default: fadeIn(250). */
18
+ enter?: AnimationPreset;
19
+ /** Animation played on the wrapper when current content exits. Default: fadeOut(200). */
20
+ exit?: AnimationPreset;
21
+ }
22
+ export interface AnimatedXConfig extends AnimatedIfConfig {
23
+ /** Whether the component is visible. */
24
+ show: boolean;
25
+ }
26
+ /**
27
+ * Conditional rendering with animated transitions.
28
+ *
29
+ * Renders `trueTemplate` when `condition` is `true`, `falseTemplate` otherwise.
30
+ * On condition change the wrapper div plays exit → swap → enter, using the
31
+ * same `animateSwap` utility as `animatedRouter`.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * html`${animatedIf(
36
+ * isOpen.val,
37
+ * html`<div class="panel">Hello</div>`,
38
+ * html`<div class="placeholder">Gone</div>`,
39
+ * {
40
+ * enter: slideInPreset("up", "16px", 300),
41
+ * exit: fadeOutPreset(200),
42
+ * },
43
+ * )}`
44
+ * ```
45
+ */
46
+ export declare function animatedIf(condition: boolean, trueTemplate: TemplateResult | typeof nothing, falseTemplate?: TemplateResult | typeof nothing, config?: AnimatedIfConfig): TemplateResult<1>;
47
+ /**
48
+ * Animated show/hide for a component.
49
+ *
50
+ * Internally uses `animatedIf` — when `config.show` is `true` the component
51
+ * is rendered via `<x-view>`, when `false` it swaps to `nothing`.
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * html`${animatedX(
56
+ * MyPanel,
57
+ * { title: "Hello" },
58
+ * {
59
+ * show: isOpen.val,
60
+ * enter: slideInPreset("up", "24px", 300),
61
+ * exit: fadeOutPreset(200),
62
+ * },
63
+ * )}`
64
+ * ```
65
+ */
66
+ export declare function animatedX(component: ComponentType, props: Record<string, any>, config: AnimatedXConfig): TemplateResult<1>;
67
+ //# sourceMappingURL=animatedConditional.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animatedConditional.d.ts","sourceRoot":"","sources":["../../../../../lib/Directives/animatedConditional.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAQ,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAG9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAM/D,OAAO,KAAK,EAAE,aAAa,EAAS,MAAM,uBAAuB,CAAC;AAIlE,MAAM,WAAW,gBAAgB;IAC/B,qFAAqF;IACrF,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,yFAAyF;IACzF,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,wCAAwC;IACxC,IAAI,EAAE,OAAO,CAAC;CACf;AAoFD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,UAAU,CACxB,SAAS,EAAE,OAAO,EAClB,YAAY,EAAE,cAAc,GAAG,OAAO,OAAO,EAC7C,aAAa,GAAE,cAAc,GAAG,OAAO,OAAiB,EACxD,MAAM,CAAC,EAAE,gBAAgB,qBAQ1B;AASD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,SAAS,CACvB,SAAS,EAAE,aAAa,EACxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,MAAM,EAAE,eAAe,qBASxB"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Inject mates animation utility classes into the global stylesheet.
3
+ * Safe to call multiple times — injected only once.
4
+ *
5
+ * This is called automatically when the module is imported, so no manual
6
+ * setup is needed. You can still call it explicitly if desired.
7
+ *
8
+ * Apply classes directly on any element:
9
+ * ```html
10
+ * <div class="mates-fade-in">Hello</div>
11
+ * <div class="mates-slide-in-up" style="--mates-duration:500ms">Hello</div>
12
+ * ```
13
+ */
14
+ export declare function injectMatesAnimations(): void;
15
+ /**
16
+ * Typed constants for every mates animation class name.
17
+ * Use instead of raw strings for autocomplete and refactor safety.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * import { MA } from "@mates";
22
+ * html`<div class=${MA.fadeIn}>Hello</div>`
23
+ * html`<div class="${MA.slideInUp}" style="--mates-duration:500ms">Hi</div>`
24
+ * ```
25
+ */
26
+ export declare const MA: {
27
+ readonly fadeIn: "mates-fade-in";
28
+ readonly fadeOut: "mates-fade-out";
29
+ readonly slideInUp: "mates-slide-in-up";
30
+ readonly slideOutUp: "mates-slide-out-up";
31
+ readonly slideInDown: "mates-slide-in-down";
32
+ readonly slideOutDown: "mates-slide-out-down";
33
+ readonly slideInLeft: "mates-slide-in-left";
34
+ readonly slideOutLeft: "mates-slide-out-left";
35
+ readonly slideInRight: "mates-slide-in-right";
36
+ readonly slideOutRight: "mates-slide-out-right";
37
+ readonly scaleIn: "mates-scale-in";
38
+ readonly scaleOut: "mates-scale-out";
39
+ readonly springIn: "mates-spring-in";
40
+ readonly flipInX: "mates-flip-in-x";
41
+ readonly flipInY: "mates-flip-in-y";
42
+ readonly blurIn: "mates-blur-in";
43
+ readonly blurOut: "mates-blur-out";
44
+ readonly shake: "mates-shake";
45
+ readonly pulse: "mates-pulse";
46
+ readonly bounce: "mates-bounce";
47
+ readonly spin: "mates-spin";
48
+ };
49
+ export type MatesAnimationClass = (typeof MA)[keyof typeof MA];
50
+ //# sourceMappingURL=animationClasses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animationClasses.d.ts","sourceRoot":"","sources":["../../../../../lib/Directives/animationClasses.ts"],"names":[],"mappings":"AAyBA;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CA+K5C;AAID;;;;;;;;;;GAUG;AACH,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;CA6BL,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,OAAO,EAAE,CAAC,CAAC"}
@@ -0,0 +1,69 @@
1
+ export { type AttrMap, type AttrValue, resolveAttrValue, } from "./resolveAttrValue";
2
+ import type { AttrMap } from "./resolveAttrValue";
3
+ /**
4
+ * A plain attribute value — a string, number, or boolean.
5
+ * - `true` → sets the attribute with an empty string value (boolean attribute)
6
+ * - `false` → removes the attribute
7
+ * - string/number → sets the attribute to that value
8
+ */
9
+ type PlainValue = string | number | boolean;
10
+ /**
11
+ * Conditional attribute value (2-element tuple):
12
+ * [condition, value]
13
+ * The attribute is only applied when `condition` is truthy.
14
+ * When falsy, the attribute is removed from the element.
15
+ */
16
+ type ConditionalValue = [condition: unknown, value: PlainValue];
17
+ /**
18
+ * Ternary attribute value (3-element tuple):
19
+ * [condition, trueValue, falseValue]
20
+ * Sets the attribute to `trueValue` when condition is truthy,
21
+ * `falseValue` otherwise.
22
+ */
23
+ type TernaryValue = [
24
+ condition: unknown,
25
+ trueValue: PlainValue,
26
+ falseValue: PlainValue
27
+ ];
28
+ export type { PlainValue, ConditionalValue, TernaryValue };
29
+ /**
30
+ * Declarative, conditional attribute directive for lit-html templates.
31
+ *
32
+ * Accepts a map of attribute names to values. Values can be:
33
+ * - **plain**: always applied (`"aria-label": "Close"`)
34
+ * - **boolean**: `true` sets the attribute (empty value), `false` removes it
35
+ * (`disabled: isDisabled`)
36
+ * - **conditional** (2-element array): applied only when condition is truthy
37
+ * (`"aria-expanded": [isOpen, "true"]`)
38
+ * - **ternary** (3-element array): picks between two values
39
+ * (`"aria-pressed": [isActive, "true", "false"]`)
40
+ *
41
+ * Attributes whose conditions are falsy (or whose keys are removed between
42
+ * renders) are automatically removed from the element.
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * import { html } from "mates";
47
+ * import { attr } from "mates";
48
+ *
49
+ * const isDisabled = false;
50
+ * const isOpen = true;
51
+ *
52
+ * html`
53
+ * <button ${attr({
54
+ * "aria-label": "Submit form",
55
+ * "aria-expanded": [isOpen, "true", "false"],
56
+ * "aria-disabled": [isDisabled, "true"],
57
+ * "data-testid": "submit-btn",
58
+ * disabled: isDisabled,
59
+ * tabindex: 0,
60
+ * })}>
61
+ * Submit
62
+ * </button>
63
+ * `;
64
+ * ```
65
+ */
66
+ export declare function attr(attrs: AttrMap): import("lit-html/directive.js").DirectiveResult<import("lit-html/directive.js").DirectiveClass>;
67
+ /** No-op — kept for backwards compatibility. */
68
+ export declare function removeAttr(_el: Element): void;
69
+ //# sourceMappingURL=attrDirective.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attrDirective.d.ts","sourceRoot":"","sources":["../../../../../lib/Directives/attrDirective.ts"],"names":[],"mappings":"AAYA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAIlD;;;;;GAKG;AACH,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAE5C;;;;;GAKG;AACH,KAAK,gBAAgB,GAAG,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;AAEhE;;;;;GAKG;AACH,KAAK,YAAY,GAAG;IAClB,SAAS,EAAE,OAAO;IAClB,SAAS,EAAE,UAAU;IACrB,UAAU,EAAE,UAAU;CACvB,CAAC;AAIF,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC;AAmB3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,OAAO,mGAElC;AAED,gDAAgD;AAChD,wBAAgB,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAAG"}