material 3.2.6 → 3.2.7

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 (551) hide show
  1. package/dist/components/badge/badge.d.ts +0 -59
  2. package/dist/components/badge/constants.d.ts +0 -15
  3. package/dist/components/badge/index.d.ts +0 -6
  4. package/dist/components/badge/types.d.ts +0 -244
  5. package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +0 -10
  6. package/dist/components/bottom-app-bar/constants.d.ts +0 -9
  7. package/dist/components/bottom-app-bar/index.d.ts +0 -4
  8. package/dist/components/bottom-app-bar/types.d.ts +0 -76
  9. package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -21
  10. package/dist/components/bottom-sheet/constants.d.ts +0 -29
  11. package/dist/components/bottom-sheet/types.d.ts +0 -89
  12. package/dist/components/button/button.d.ts +0 -62
  13. package/dist/components/button/constants.d.ts +0 -41
  14. package/dist/components/button/index.d.ts +0 -4
  15. package/dist/components/button/types.d.ts +0 -347
  16. package/dist/components/button-group/button-group.d.ts +0 -51
  17. package/dist/components/button-group/constants.d.ts +0 -83
  18. package/dist/components/button-group/index.d.ts +0 -10
  19. package/dist/components/button-group/types.d.ts +0 -234
  20. package/dist/components/card/card.d.ts +0 -64
  21. package/dist/components/card/constants.d.ts +0 -33
  22. package/dist/components/card/content.d.ts +0 -86
  23. package/dist/components/card/index.d.ts +0 -66
  24. package/dist/components/card/types.d.ts +0 -366
  25. package/dist/components/carousel/carousel.d.ts +0 -22
  26. package/dist/components/carousel/constants.d.ts +0 -16
  27. package/dist/components/carousel/types.d.ts +0 -29
  28. package/dist/components/checkbox/checkbox.d.ts +0 -61
  29. package/dist/components/checkbox/constants.d.ts +0 -33
  30. package/dist/components/checkbox/index.d.ts +0 -25
  31. package/dist/components/checkbox/types.d.ts +0 -206
  32. package/dist/components/chips/chips.d.ts +0 -14
  33. package/dist/components/chips/constants.d.ts +0 -1
  34. package/dist/components/chips/factories.d.ts +0 -4
  35. package/dist/components/chips/types.d.ts +0 -278
  36. package/dist/components/datepicker/constants.d.ts +0 -56
  37. package/dist/components/datepicker/datepicker.d.ts +0 -5
  38. package/dist/components/datepicker/types.d.ts +12 -257
  39. package/dist/components/dialog/constants.d.ts +0 -65
  40. package/dist/components/dialog/dialog.d.ts +0 -86
  41. package/dist/components/dialog/index.d.ts +0 -12
  42. package/dist/components/dialog/types.d.ts +0 -511
  43. package/dist/components/divider/config.d.ts +0 -130
  44. package/dist/components/divider/constants.d.ts +0 -27
  45. package/dist/components/divider/divider.d.ts +0 -36
  46. package/dist/components/divider/index.d.ts +0 -29
  47. package/dist/components/divider/types.d.ts +0 -126
  48. package/dist/components/drawer/constants.d.ts +0 -53
  49. package/dist/components/drawer/drawer.d.ts +0 -56
  50. package/dist/components/drawer/index.d.ts +0 -4
  51. package/dist/components/drawer/types.d.ts +0 -200
  52. package/dist/components/extended-fab/constants.d.ts +0 -46
  53. package/dist/components/extended-fab/extended-fab.d.ts +0 -58
  54. package/dist/components/extended-fab/index.d.ts +0 -34
  55. package/dist/components/extended-fab/types.d.ts +0 -654
  56. package/dist/components/fab/constants.d.ts +0 -40
  57. package/dist/components/fab/fab.d.ts +0 -42
  58. package/dist/components/fab/index.d.ts +0 -33
  59. package/dist/components/fab/types.d.ts +0 -543
  60. package/dist/components/fab-menu/constants.d.ts +0 -22
  61. package/dist/components/fab-menu/fab-menu.d.ts +0 -36
  62. package/dist/components/fab-menu/types.d.ts +0 -80
  63. package/dist/components/icon-button/constants.d.ts +0 -90
  64. package/dist/components/icon-button/icon-button.d.ts +0 -83
  65. package/dist/components/icon-button/index.d.ts +0 -44
  66. package/dist/components/icon-button/types.d.ts +0 -314
  67. package/dist/components/index.d.ts +0 -9
  68. package/dist/components/list/constants.d.ts +0 -47
  69. package/dist/components/list/index.d.ts +0 -1
  70. package/dist/components/list/list.d.ts +0 -26
  71. package/dist/components/list/types.d.ts +0 -263
  72. package/dist/components/loading-indicator/constants.d.ts +0 -35
  73. package/dist/components/loading-indicator/features/renderer.d.ts +0 -14
  74. package/dist/components/loading-indicator/loading-indicator.d.ts +0 -6
  75. package/dist/components/loading-indicator/types.d.ts +0 -35
  76. package/dist/components/menu/constants.d.ts +0 -79
  77. package/dist/components/menu/index.d.ts +0 -25
  78. package/dist/components/menu/inner.d.ts +0 -3
  79. package/dist/components/menu/menu.d.ts +0 -26
  80. package/dist/components/menu/types.d.ts +0 -423
  81. package/dist/components/navigation-bar/navigation-bar.d.ts +0 -7
  82. package/dist/components/navigation-bar/types.d.ts +0 -25
  83. package/dist/components/navigation-rail/constants.d.ts +0 -2
  84. package/dist/components/navigation-rail/navigation-rail.d.ts +0 -5
  85. package/dist/components/navigation-rail/types.d.ts +0 -22
  86. package/dist/components/progress/constants.d.ts +24 -56
  87. package/dist/components/progress/progress.d.ts +0 -21
  88. package/dist/components/progress/types.d.ts +0 -251
  89. package/dist/components/radios/constants.d.ts +0 -22
  90. package/dist/components/radios/radios.d.ts +0 -5
  91. package/dist/components/radios/types.d.ts +0 -142
  92. package/dist/components/search/constants.d.ts +0 -59
  93. package/dist/components/search/search.d.ts +0 -32
  94. package/dist/components/search/types.d.ts +0 -159
  95. package/dist/components/select/constants.d.ts +0 -60
  96. package/dist/components/select/index.d.ts +0 -22
  97. package/dist/components/select/select.d.ts +0 -33
  98. package/dist/components/select/types.d.ts +0 -241
  99. package/dist/components/side-sheet/constants.d.ts +0 -28
  100. package/dist/components/side-sheet/side-sheet.d.ts +0 -21
  101. package/dist/components/side-sheet/types.d.ts +0 -82
  102. package/dist/components/slider/constants.d.ts +0 -86
  103. package/dist/components/slider/slider.d.ts +0 -16
  104. package/dist/components/slider/types.d.ts +0 -184
  105. package/dist/components/snackbar/constants.d.ts +0 -73
  106. package/dist/components/snackbar/snackbar.d.ts +0 -13
  107. package/dist/components/snackbar/types.d.ts +0 -147
  108. package/dist/components/split-button/constants.d.ts +0 -33
  109. package/dist/components/split-button/split-button.d.ts +0 -21
  110. package/dist/components/split-button/types.d.ts +0 -81
  111. package/dist/components/switch/constants.d.ts +0 -49
  112. package/dist/components/switch/switch.d.ts +0 -5
  113. package/dist/components/switch/types.d.ts +0 -80
  114. package/dist/components/tabs/constants.d.ts +0 -76
  115. package/dist/components/tabs/indicator.d.ts +0 -27
  116. package/dist/components/tabs/responsive.d.ts +0 -30
  117. package/dist/components/tabs/tab.d.ts +0 -13
  118. package/dist/components/tabs/tabs.d.ts +0 -24
  119. package/dist/components/tabs/types.d.ts +0 -335
  120. package/dist/components/tabs/utils.d.ts +0 -66
  121. package/dist/components/text-field/constants.d.ts +0 -82
  122. package/dist/components/text-field/features/trailing-icon.d.ts +0 -61
  123. package/dist/components/text-field/text-field.d.ts +0 -33
  124. package/dist/components/text-field/types.d.ts +0 -123
  125. package/dist/components/timepicker/constants.d.ts +0 -88
  126. package/dist/components/timepicker/types.d.ts +0 -268
  127. package/dist/components/toolbar/constants.d.ts +0 -27
  128. package/dist/components/toolbar/toolbar.d.ts +0 -25
  129. package/dist/components/toolbar/types.d.ts +0 -102
  130. package/dist/components/tooltip/constants.d.ts +0 -58
  131. package/dist/components/tooltip/tooltip.d.ts +0 -5
  132. package/dist/components/tooltip/types.d.ts +0 -140
  133. package/dist/components/top-app-bar/constants.d.ts +0 -41
  134. package/dist/components/top-app-bar/index.d.ts +0 -4
  135. package/dist/components/top-app-bar/top-app-bar.d.ts +0 -10
  136. package/dist/components/top-app-bar/types.d.ts +0 -94
  137. package/dist/core/canvas/animation.d.ts +0 -13
  138. package/dist/core/canvas/drawing.d.ts +18 -55
  139. package/dist/core/canvas/index.d.ts +0 -4
  140. package/dist/core/canvas/resize.d.ts +0 -13
  141. package/dist/core/canvas/utils.d.ts +0 -62
  142. package/dist/core/compose/base.d.ts +0 -22
  143. package/dist/core/compose/cleanup.d.ts +0 -2
  144. package/dist/core/compose/component.d.ts +0 -31
  145. package/dist/core/compose/features/badge.d.ts +0 -25
  146. package/dist/core/compose/features/checkable.d.ts +0 -36
  147. package/dist/core/compose/features/debounce.d.ts +0 -57
  148. package/dist/core/compose/features/disabled.d.ts +0 -31
  149. package/dist/core/compose/features/events.d.ts +0 -38
  150. package/dist/core/compose/features/icon.d.ts +0 -49
  151. package/dist/core/compose/features/input.d.ts +0 -82
  152. package/dist/core/compose/features/lifecycle.d.ts +0 -36
  153. package/dist/core/compose/features/position.d.ts +0 -27
  154. package/dist/core/compose/features/ripple.d.ts +0 -29
  155. package/dist/core/compose/features/size.d.ts +0 -9
  156. package/dist/core/compose/features/style.d.ts +0 -9
  157. package/dist/core/compose/features/text.d.ts +0 -45
  158. package/dist/core/compose/features/textinput.d.ts +0 -88
  159. package/dist/core/compose/features/textlabel.d.ts +0 -44
  160. package/dist/core/compose/features/throttle.d.ts +0 -54
  161. package/dist/core/compose/features/track.d.ts +0 -34
  162. package/dist/core/compose/features/variant.d.ts +0 -9
  163. package/dist/core/compose/features/withEvents.d.ts +0 -30
  164. package/dist/core/compose/index.d.ts +0 -4
  165. package/dist/core/compose/pipe.d.ts +0 -55
  166. package/dist/core/compose/utils/type-guards.d.ts +0 -15
  167. package/dist/core/config/component.d.ts +0 -45
  168. package/dist/core/config/global.d.ts +0 -43
  169. package/dist/core/config.d.ts +0 -59
  170. package/dist/core/dom/attributes.d.ts +0 -41
  171. package/dist/core/dom/classes.d.ts +0 -49
  172. package/dist/core/dom/create.d.ts +0 -98
  173. package/dist/core/dom/events.d.ts +0 -52
  174. package/dist/core/dom/focus.d.ts +0 -32
  175. package/dist/core/dom/html.d.ts +0 -24
  176. package/dist/core/dom/layer.d.ts +0 -98
  177. package/dist/core/dom/roving.d.ts +0 -19
  178. package/dist/core/index.d.ts +0 -9
  179. package/dist/core/navigation/destinations.d.ts +0 -23
  180. package/dist/core/shapes/cubic.d.ts +24 -19
  181. package/dist/core/shapes/material.d.ts +0 -64
  182. package/dist/core/shapes/polygon.d.ts +6 -16
  183. package/dist/core/state/emitter.d.ts +0 -36
  184. package/dist/core/state/events.d.ts +0 -29
  185. package/dist/core/state/store.d.ts +0 -70
  186. package/dist/core/theme/index.d.ts +0 -3
  187. package/dist/core/theme/shape.d.ts +0 -7
  188. package/dist/core/theme/tokens.d.ts +48 -32
  189. package/dist/core/utils/background.d.ts +0 -29
  190. package/dist/core/utils/color.d.ts +0 -13
  191. package/dist/core/utils/index.d.ts +0 -11
  192. package/dist/core/utils/mobile.d.ts +0 -31
  193. package/dist/core/utils/object.d.ts +0 -11
  194. package/dist/core/utils/performance.d.ts +0 -70
  195. package/dist/core/utils/theme.d.ts +0 -36
  196. package/dist/core/utils/url.d.ts +0 -17
  197. package/dist/elements/adapter.d.ts +13 -62
  198. package/dist/elements/badge.d.ts +0 -17
  199. package/dist/elements/bottom-app-bar.d.ts +7 -17
  200. package/dist/elements/bottom-sheet.d.ts +9 -38
  201. package/dist/elements/button-group.d.ts +0 -31
  202. package/dist/elements/button.d.ts +0 -18
  203. package/dist/elements/card.d.ts +8 -24
  204. package/dist/elements/carousel.d.ts +5 -29
  205. package/dist/elements/checkbox.d.ts +5 -15
  206. package/dist/elements/chips.d.ts +0 -33
  207. package/dist/elements/datepicker.d.ts +4 -48
  208. package/dist/elements/define.d.ts +3 -161
  209. package/dist/elements/dialog.d.ts +8 -39
  210. package/dist/elements/divider.d.ts +0 -14
  211. package/dist/elements/drawer.d.ts +0 -35
  212. package/dist/elements/extended-fab.d.ts +6 -18
  213. package/dist/elements/fab-menu.d.ts +5 -30
  214. package/dist/elements/fab.d.ts +4 -17
  215. package/dist/elements/icon-button.d.ts +5 -26
  216. package/dist/elements/index.d.ts +0 -16
  217. package/dist/elements/list.d.ts +0 -34
  218. package/dist/elements/loading-indicator.d.ts +4 -13
  219. package/dist/elements/menu.d.ts +5 -51
  220. package/dist/elements/navigation-bar.d.ts +4 -29
  221. package/dist/elements/navigation-rail.d.ts +8 -49
  222. package/dist/elements/preupgrade/badge.css +1 -1
  223. package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
  224. package/dist/elements/preupgrade/bottom-sheet.css +1 -1
  225. package/dist/elements/preupgrade/button-group.css +1 -1
  226. package/dist/elements/preupgrade/button.css +1 -1
  227. package/dist/elements/preupgrade/card.css +1 -1
  228. package/dist/elements/preupgrade/carousel.css +1 -1
  229. package/dist/elements/preupgrade/checkbox.css +1 -1
  230. package/dist/elements/preupgrade/chips.css +1 -1
  231. package/dist/elements/preupgrade/datepicker.css +1 -1
  232. package/dist/elements/preupgrade/dialog.css +1 -1
  233. package/dist/elements/preupgrade/divider.css +1 -1
  234. package/dist/elements/preupgrade/drawer.css +1 -1
  235. package/dist/elements/preupgrade/extended-fab.css +1 -1
  236. package/dist/elements/preupgrade/fab-menu.css +1 -1
  237. package/dist/elements/preupgrade/fab.css +1 -1
  238. package/dist/elements/preupgrade/icon-button.css +1 -1
  239. package/dist/elements/preupgrade/list.css +1 -1
  240. package/dist/elements/preupgrade/loading-indicator.css +1 -1
  241. package/dist/elements/preupgrade/menu.css +1 -1
  242. package/dist/elements/preupgrade/navigation-bar.css +1 -1
  243. package/dist/elements/preupgrade/navigation-rail.css +1 -1
  244. package/dist/elements/preupgrade/progress.css +1 -1
  245. package/dist/elements/preupgrade/radios.css +1 -1
  246. package/dist/elements/preupgrade/search.css +1 -1
  247. package/dist/elements/preupgrade/select.css +1 -1
  248. package/dist/elements/preupgrade/side-sheet.css +1 -1
  249. package/dist/elements/preupgrade/slider.css +1 -1
  250. package/dist/elements/preupgrade/snackbar.css +1 -1
  251. package/dist/elements/preupgrade/split-button.css +1 -1
  252. package/dist/elements/preupgrade/switch.css +1 -1
  253. package/dist/elements/preupgrade/tabs.css +1 -1
  254. package/dist/elements/preupgrade/text-field.css +1 -1
  255. package/dist/elements/preupgrade/timepicker.css +1 -1
  256. package/dist/elements/preupgrade/toolbar.css +1 -1
  257. package/dist/elements/preupgrade/tooltip.css +1 -1
  258. package/dist/elements/preupgrade/top-app-bar.css +1 -1
  259. package/dist/elements/preupgrade.css +1 -1
  260. package/dist/elements/preupgrade.d.ts +0 -1
  261. package/dist/elements/progress.d.ts +0 -15
  262. package/dist/elements/radios.d.ts +0 -22
  263. package/dist/elements/search.d.ts +5 -53
  264. package/dist/elements/select.d.ts +0 -31
  265. package/dist/elements/side-sheet.d.ts +7 -29
  266. package/dist/elements/slider.d.ts +3 -22
  267. package/dist/elements/snackbar.d.ts +4 -28
  268. package/dist/elements/split-button.d.ts +0 -30
  269. package/dist/elements/styles.d.ts +0 -63
  270. package/dist/elements/switch.d.ts +5 -17
  271. package/dist/elements/tabs.d.ts +0 -22
  272. package/dist/elements/text-field.d.ts +4 -38
  273. package/dist/elements/timepicker.d.ts +4 -44
  274. package/dist/elements/toolbar.d.ts +8 -25
  275. package/dist/elements/tooltip.d.ts +4 -30
  276. package/dist/elements/top-app-bar.d.ts +7 -23
  277. package/dist/index.d.ts +0 -11
  278. package/dist/package.json +1 -1
  279. package/dist/react/create.d.ts +0 -42
  280. package/dist/react/index.d.ts +0 -6
  281. package/dist/react/jsx.d.ts +0 -13
  282. package/dist/solid/create.d.ts +0 -48
  283. package/dist/solid/index.d.ts +0 -6
  284. package/dist/solid/jsx.d.ts +0 -9
  285. package/dist/ssr/index.d.ts +0 -49
  286. package/dist/ssr/solid.d.ts +0 -4
  287. package/dist/ssr/svelte.d.ts +0 -4
  288. package/dist/ssr/vue.d.ts +0 -4
  289. package/dist/styles/badge.css +1 -1
  290. package/dist/styles/base.css +1 -1
  291. package/dist/styles/bottom-app-bar.css +1 -1
  292. package/dist/styles/bottom-sheet.css +1 -1
  293. package/dist/styles/button-group.css +1 -1
  294. package/dist/styles/button.css +1 -1
  295. package/dist/styles/card.css +1 -1
  296. package/dist/styles/carousel.css +1 -1
  297. package/dist/styles/checkbox.css +1 -1
  298. package/dist/styles/chips.css +1 -1
  299. package/dist/styles/contrast.css +1 -1
  300. package/dist/styles/datepicker.css +1 -1
  301. package/dist/styles/dialog.css +1 -1
  302. package/dist/styles/divider.css +1 -1
  303. package/dist/styles/drawer.css +1 -1
  304. package/dist/styles/extended-fab.css +1 -1
  305. package/dist/styles/fab-menu.css +1 -1
  306. package/dist/styles/fab.css +1 -1
  307. package/dist/styles/icon-button.css +1 -1
  308. package/dist/styles/list.css +1 -1
  309. package/dist/styles/loading-indicator.css +1 -1
  310. package/dist/styles/menu.css +1 -1
  311. package/dist/styles/navigation-bar.css +1 -1
  312. package/dist/styles/navigation-rail.css +1 -1
  313. package/dist/styles/progress.css +1 -1
  314. package/dist/styles/radios.css +1 -1
  315. package/dist/styles/search.css +1 -1
  316. package/dist/styles/select.css +1 -1
  317. package/dist/styles/side-sheet.css +1 -1
  318. package/dist/styles/slider.css +1 -1
  319. package/dist/styles/snackbar.css +1 -1
  320. package/dist/styles/split-button.css +1 -1
  321. package/dist/styles/switch.css +1 -1
  322. package/dist/styles/tabs.css +1 -1
  323. package/dist/styles/text-field.css +1 -1
  324. package/dist/styles/timepicker.css +1 -1
  325. package/dist/styles/toolbar.css +1 -1
  326. package/dist/styles/tooltip.css +1 -1
  327. package/dist/styles/top-app-bar.css +1 -1
  328. package/dist/styles/typography.css +1 -1
  329. package/dist/styles/utilities.css +1 -1
  330. package/dist/styles.css +1 -1
  331. package/dist/svelte/runtime.d.ts +8 -62
  332. package/dist/themes/autumn-contrast.css +1 -1
  333. package/dist/themes/autumn.css +1 -1
  334. package/dist/themes/baseline-contrast.css +1 -1
  335. package/dist/themes/baseline.css +1 -1
  336. package/dist/themes/brownbeige-contrast.css +1 -1
  337. package/dist/themes/brownbeige.css +1 -1
  338. package/dist/themes/content-contrast.css +1 -1
  339. package/dist/themes/content.css +1 -1
  340. package/dist/themes/desert-contrast.css +1 -1
  341. package/dist/themes/desert.css +1 -1
  342. package/dist/themes/expressive-contrast.css +1 -1
  343. package/dist/themes/expressive.css +1 -1
  344. package/dist/themes/fidelity-contrast.css +1 -1
  345. package/dist/themes/fidelity.css +1 -1
  346. package/dist/themes/forest-contrast.css +1 -1
  347. package/dist/themes/forest.css +1 -1
  348. package/dist/themes/fruit-salad-contrast.css +1 -1
  349. package/dist/themes/fruit-salad.css +1 -1
  350. package/dist/themes/highcontrast-contrast.css +1 -1
  351. package/dist/themes/highcontrast.css +1 -1
  352. package/dist/themes/monochrome-contrast.css +1 -1
  353. package/dist/themes/monochrome.css +1 -1
  354. package/dist/themes/neutral-contrast.css +1 -1
  355. package/dist/themes/neutral.css +1 -1
  356. package/dist/themes/ocean-contrast.css +1 -1
  357. package/dist/themes/ocean.css +1 -1
  358. package/dist/themes/rainbow-contrast.css +1 -1
  359. package/dist/themes/rainbow.css +1 -1
  360. package/dist/themes/sageivory-contrast.css +1 -1
  361. package/dist/themes/sageivory.css +1 -1
  362. package/dist/themes/spring-contrast.css +1 -1
  363. package/dist/themes/spring.css +1 -1
  364. package/dist/themes/summer-contrast.css +1 -1
  365. package/dist/themes/summer.css +1 -1
  366. package/dist/themes/sunset-contrast.css +1 -1
  367. package/dist/themes/sunset.css +1 -1
  368. package/dist/themes/tealcaramel-contrast.css +1 -1
  369. package/dist/themes/tealcaramel.css +1 -1
  370. package/dist/themes/vibrant-contrast.css +1 -1
  371. package/dist/themes/vibrant.css +1 -1
  372. package/dist/vue/create.d.ts +15 -58
  373. package/dist/vue/index.d.ts +0 -6
  374. package/package.json +1 -1
  375. package/dist/components/badge/api.d.ts +0 -41
  376. package/dist/components/badge/config.d.ts +0 -631
  377. package/dist/components/badge/features.d.ts +0 -38
  378. package/dist/components/bottom-app-bar/config.d.ts +0 -16
  379. package/dist/components/bottom-sheet/api.d.ts +0 -44
  380. package/dist/components/bottom-sheet/config.d.ts +0 -547
  381. package/dist/components/bottom-sheet/features/drag.d.ts +0 -35
  382. package/dist/components/bottom-sheet/features/index.d.ts +0 -3
  383. package/dist/components/bottom-sheet/features/state.d.ts +0 -31
  384. package/dist/components/bottom-sheet/features/structure.d.ts +0 -26
  385. package/dist/components/button/api.d.ts +0 -68
  386. package/dist/components/button/config.d.ts +0 -594
  387. package/dist/components/button/features/progress.d.ts +0 -43
  388. package/dist/components/button/features/toggle.d.ts +0 -43
  389. package/dist/components/button-group/config.d.ts +0 -147
  390. package/dist/components/card/api.d.ts +0 -24
  391. package/dist/components/card/config.d.ts +0 -635
  392. package/dist/components/card/features.d.ts +0 -124
  393. package/dist/components/carousel/api.d.ts +0 -20
  394. package/dist/components/carousel/arrangement.d.ts +0 -23
  395. package/dist/components/carousel/config.d.ts +0 -540
  396. package/dist/components/carousel/features/index.d.ts +0 -2
  397. package/dist/components/carousel/features/scroll.d.ts +0 -20
  398. package/dist/components/carousel/features/slides.d.ts +0 -18
  399. package/dist/components/carousel/keylines.d.ts +0 -68
  400. package/dist/components/carousel/strategy.d.ts +0 -36
  401. package/dist/components/checkbox/api.d.ts +0 -7
  402. package/dist/components/checkbox/config.d.ts +0 -568
  403. package/dist/components/chips/api.d.ts +0 -62
  404. package/dist/components/chips/chip/chip.d.ts +0 -4
  405. package/dist/components/chips/chip/constants.d.ts +0 -38
  406. package/dist/components/chips/chip/index.d.ts +0 -1
  407. package/dist/components/chips/config.d.ts +0 -583
  408. package/dist/components/chips/features/chip-items.d.ts +0 -39
  409. package/dist/components/chips/features/container.d.ts +0 -75
  410. package/dist/components/chips/features/controller.d.ts +0 -61
  411. package/dist/components/chips/features/dom.d.ts +0 -24
  412. package/dist/components/chips/features/index.d.ts +0 -4
  413. package/dist/components/chips/schema.d.ts +0 -35
  414. package/dist/components/datepicker/api.d.ts +0 -7
  415. package/dist/components/datepicker/config.d.ts +0 -542
  416. package/dist/components/datepicker/render.d.ts +0 -3
  417. package/dist/components/datepicker/utils.d.ts +0 -84
  418. package/dist/components/dialog/api.d.ts +0 -66
  419. package/dist/components/dialog/config.d.ts +0 -583
  420. package/dist/components/dialog/features.d.ts +0 -42
  421. package/dist/components/divider/features.d.ts +0 -6
  422. package/dist/components/drawer/api.d.ts +0 -55
  423. package/dist/components/drawer/config.d.ts +0 -620
  424. package/dist/components/drawer/features/headline.d.ts +0 -27
  425. package/dist/components/drawer/features/index.d.ts +0 -3
  426. package/dist/components/drawer/features/items.d.ts +0 -32
  427. package/dist/components/drawer/features/state.d.ts +0 -22
  428. package/dist/components/extended-fab/api.d.ts +0 -96
  429. package/dist/components/extended-fab/config.d.ts +0 -600
  430. package/dist/components/fab/api.d.ts +0 -74
  431. package/dist/components/fab/config.d.ts +0 -596
  432. package/dist/components/fab-menu/config.d.ts +0 -11
  433. package/dist/components/fab-menu/stagger.d.ts +0 -10
  434. package/dist/components/icon-button/api.d.ts +0 -84
  435. package/dist/components/icon-button/config.d.ts +0 -624
  436. package/dist/components/icon-button/features/toggle.d.ts +0 -133
  437. package/dist/components/list/api.d.ts +0 -156
  438. package/dist/components/list/config.d.ts +0 -625
  439. package/dist/components/list/features/anatomy.d.ts +0 -6
  440. package/dist/components/list/features/index.d.ts +0 -2
  441. package/dist/components/list/features/renderer.d.ts +0 -8
  442. package/dist/components/list/features/selection.d.ts +0 -3
  443. package/dist/components/loading-indicator/api.d.ts +0 -14
  444. package/dist/components/loading-indicator/config.d.ts +0 -557
  445. package/dist/components/loading-indicator/features/motion.d.ts +0 -22
  446. package/dist/components/menu/api.d.ts +0 -63
  447. package/dist/components/menu/config.d.ts +0 -576
  448. package/dist/components/menu/features/controller.d.ts +0 -15
  449. package/dist/components/menu/features/index.d.ts +0 -5
  450. package/dist/components/menu/features/keyboard.d.ts +0 -23
  451. package/dist/components/menu/features/layer.d.ts +0 -15
  452. package/dist/components/menu/features/loader.d.ts +0 -35
  453. package/dist/components/menu/features/opener.d.ts +0 -16
  454. package/dist/components/menu/features/position.d.ts +0 -18
  455. package/dist/components/menu/features/registry.d.ts +0 -37
  456. package/dist/components/menu/features/submenu.d.ts +0 -28
  457. package/dist/components/menu/features/tasks.d.ts +0 -9
  458. package/dist/components/navigation-bar/config.d.ts +0 -2
  459. package/dist/components/navigation-rail/config.d.ts +0 -2
  460. package/dist/components/progress/api.d.ts +0 -81
  461. package/dist/components/progress/config.d.ts +0 -620
  462. package/dist/components/progress/features/canvas.d.ts +0 -60
  463. package/dist/components/progress/features/circular.d.ts +0 -19
  464. package/dist/components/progress/features/colors.d.ts +0 -17
  465. package/dist/components/progress/features/index.d.ts +0 -8
  466. package/dist/components/progress/features/linear.d.ts +0 -25
  467. package/dist/components/progress/features/motion.d.ts +0 -43
  468. package/dist/components/progress/features/resize-observer.d.ts +0 -5
  469. package/dist/components/progress/features/state.d.ts +0 -44
  470. package/dist/components/radios/api.d.ts +0 -37
  471. package/dist/components/radios/config.d.ts +0 -568
  472. package/dist/components/radios/radio.d.ts +0 -26
  473. package/dist/components/search/api.d.ts +0 -63
  474. package/dist/components/search/config.d.ts +0 -657
  475. package/dist/components/search/features/index.d.ts +0 -4
  476. package/dist/components/search/features/input.d.ts +0 -93
  477. package/dist/components/search/features/states.d.ts +0 -111
  478. package/dist/components/search/features/structure.d.ts +0 -16
  479. package/dist/components/search/features/suggestions.d.ts +0 -60
  480. package/dist/components/select/api.d.ts +0 -8
  481. package/dist/components/select/config.d.ts +0 -18
  482. package/dist/components/select/features.d.ts +0 -14
  483. package/dist/components/side-sheet/api.d.ts +0 -34
  484. package/dist/components/side-sheet/config.d.ts +0 -547
  485. package/dist/components/side-sheet/features/index.d.ts +0 -2
  486. package/dist/components/side-sheet/features/state.d.ts +0 -28
  487. package/dist/components/side-sheet/features/structure.d.ts +0 -21
  488. package/dist/components/slider/api.d.ts +0 -65
  489. package/dist/components/slider/config.d.ts +0 -605
  490. package/dist/components/slider/features/axis.d.ts +0 -42
  491. package/dist/components/slider/features/controller.d.ts +0 -528
  492. package/dist/components/slider/features/dom.d.ts +0 -22
  493. package/dist/components/slider/features/handlers.d.ts +0 -16
  494. package/dist/components/slider/features/index.d.ts +0 -5
  495. package/dist/components/slider/features/range.d.ts +0 -14
  496. package/dist/components/slider/features/states.d.ts +0 -76
  497. package/dist/components/slider/features/tracks.d.ts +0 -50
  498. package/dist/components/snackbar/api.d.ts +0 -7
  499. package/dist/components/snackbar/config.d.ts +0 -596
  500. package/dist/components/snackbar/features.d.ts +0 -26
  501. package/dist/components/snackbar/layer.d.ts +0 -23
  502. package/dist/components/snackbar/position.d.ts +0 -16
  503. package/dist/components/snackbar/queue.d.ts +0 -15
  504. package/dist/components/split-button/api.d.ts +0 -14
  505. package/dist/components/split-button/config.d.ts +0 -553
  506. package/dist/components/split-button/features/buttons.d.ts +0 -8
  507. package/dist/components/split-button/features/menu.d.ts +0 -10
  508. package/dist/components/switch/api.d.ts +0 -7
  509. package/dist/components/switch/config.d.ts +0 -558
  510. package/dist/components/switch/features.d.ts +0 -63
  511. package/dist/components/tabs/api.d.ts +0 -54
  512. package/dist/components/tabs/config.d.ts +0 -31
  513. package/dist/components/tabs/features.d.ts +0 -131
  514. package/dist/components/tabs/scroll-indicators.d.ts +0 -18
  515. package/dist/components/tabs/state.d.ts +0 -48
  516. package/dist/components/text-field/api.d.ts +0 -29
  517. package/dist/components/text-field/config.d.ts +0 -560
  518. package/dist/components/text-field/features/counter.d.ts +0 -29
  519. package/dist/components/text-field/features/density.d.ts +0 -28
  520. package/dist/components/text-field/features/error.d.ts +0 -55
  521. package/dist/components/text-field/features/field.d.ts +0 -37
  522. package/dist/components/text-field/features/index.d.ts +0 -20
  523. package/dist/components/text-field/features/leading-icon.d.ts +0 -68
  524. package/dist/components/text-field/features/placement.d.ts +0 -30
  525. package/dist/components/text-field/features/prefix-text.d.ts +0 -67
  526. package/dist/components/text-field/features/required.d.ts +0 -33
  527. package/dist/components/text-field/features/suffix-text.d.ts +0 -67
  528. package/dist/components/text-field/features/supporting-text.d.ts +0 -59
  529. package/dist/components/timepicker/api.d.ts +0 -26
  530. package/dist/components/timepicker/config.d.ts +0 -570
  531. package/dist/components/timepicker/dial.d.ts +0 -35
  532. package/dist/components/timepicker/render.d.ts +0 -9
  533. package/dist/components/timepicker/utils.d.ts +0 -55
  534. package/dist/components/toolbar/config.d.ts +0 -19
  535. package/dist/components/tooltip/api.d.ts +0 -18
  536. package/dist/components/tooltip/config.d.ts +0 -563
  537. package/dist/components/top-app-bar/config.d.ts +0 -16
  538. package/dist/core/compose/features/constants.d.ts +0 -8
  539. package/dist/core/dom/direction.d.ts +0 -16
  540. package/dist/core/dom/form-value.d.ts +0 -24
  541. package/dist/core/dom/utils.d.ts +0 -33
  542. package/dist/core/navigation/ripple.d.ts +0 -2
  543. package/dist/core/utils/attributes.d.ts +0 -29
  544. package/dist/core/utils/validate.d.ts +0 -73
  545. package/dist/core/utils/warn.d.ts +0 -16
  546. package/dist/elements/form-button.d.ts +0 -29
  547. package/dist/elements/lifecycle.d.ts +0 -4
  548. package/dist/elements/sheet.d.ts +0 -44
  549. package/dist/react/shadow.d.ts +0 -2
  550. package/dist/solid/shadow.d.ts +0 -3
  551. package/dist/vue/shadow.d.ts +0 -7
@@ -1,7 +1,4 @@
1
1
  import { BaseComponent, ElementComponent } from "../component.js";
2
- /**
3
- * Component managers that can be passed to lifecycle
4
- */
5
2
  export interface ComponentManagers {
6
3
  events?: {
7
4
  destroy: () => void;
@@ -14,48 +11,15 @@ export interface ComponentManagers {
14
11
  };
15
12
  [key: string]: unknown;
16
13
  }
17
- /**
18
- * Lifecycle methods interface
19
- */
20
14
  export interface Lifecycle {
21
- /**
22
- * Registers a handler for mount event
23
- * @param handler - Function to call when component is mounted
24
- * @returns Unsubscribe function
25
- */
26
15
  onMount: (handler: () => void) => () => void;
27
- /**
28
- * Registers a handler for unmount event
29
- * @param handler - Function to call when component is unmounted
30
- * @returns Unsubscribe function
31
- */
32
16
  onUnmount: (handler: () => void) => () => void;
33
- /**
34
- * Mounts the component
35
- */
36
17
  mount: () => void;
37
- /**
38
- * Unmounts the component
39
- */
40
18
  unmount: () => void;
41
- /**
42
- * Checks if component is mounted
43
- */
44
19
  isMounted: () => boolean;
45
- /**
46
- * Destroys the component
47
- */
48
20
  destroy: () => void;
49
21
  }
50
- /**
51
- * Component with lifecycle capabilities
52
- */
53
22
  export interface LifecycleComponent extends BaseComponent {
54
23
  lifecycle: Lifecycle;
55
24
  }
56
- /**
57
- * Adds lifecycle management to a component
58
- *
59
- * @returns Function that enhances a component with lifecycle management
60
- */
61
25
  export declare const withLifecycle: () => <T extends BaseComponent & Partial<Pick<ElementComponent, "element" | "destroy">>>(component: T) => T & LifecycleComponent;
@@ -1,7 +1,4 @@
1
1
  import { BaseComponent, ElementComponent } from "../component.js";
2
- /**
3
- * Available position values
4
- */
5
2
  export declare enum POSITIONS {
6
3
  LEFT = "left",
7
4
  RIGHT = "right",
@@ -11,40 +8,16 @@ export declare enum POSITIONS {
11
8
  END = "end",
12
9
  CENTER = "center"
13
10
  }
14
- /**
15
- * Configuration for position feature
16
- */
17
11
  export interface PositionConfig {
18
12
  position?: string;
19
13
  prefix?: string;
20
14
  componentName?: string;
21
15
  }
22
- /**
23
- * Position manager interface
24
- */
25
16
  export interface PositionManager {
26
- /**
27
- * Sets the component's position
28
- * @param newPosition - New position value
29
- * @returns Position manager for chaining
30
- */
31
17
  setPosition: (newPosition: string) => PositionManager;
32
- /**
33
- * Gets the current position
34
- * @returns Current position
35
- */
36
18
  getPosition: () => string;
37
19
  }
38
- /**
39
- * Component with position capabilities
40
- */
41
20
  export interface PositionComponent extends BaseComponent {
42
21
  position: PositionManager;
43
22
  }
44
- /**
45
- * Adds positioning functionality to a component
46
- *
47
- * @param config - Configuration object containing position information
48
- * @returns Function that enhances a component with position capabilities
49
- */
50
23
  export declare const withPosition: <T extends PositionConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C & PositionComponent;
@@ -1,47 +1,18 @@
1
1
  import { BaseComponent, ElementComponent } from "../component.js";
2
2
  import { LifecycleComponent } from "./lifecycle.js";
3
- /**
4
- * Ripple configuration interface
5
- */
6
3
  export interface RippleConfig {
7
- /**
8
- * How long, in milliseconds, a released wave lingers before it is removed
9
- */
10
4
  duration?: number;
11
5
  }
12
- /**
13
- * Ripple controller interface
14
- */
15
6
  export interface RippleController {
16
- /**
17
- * Mounts ripple effect to an element
18
- * @param element - Target element
19
- */
20
7
  mount: (element: HTMLElement) => void;
21
- /**
22
- * Unmounts ripple effect from an element
23
- * @param element - Target element
24
- */
25
8
  unmount: (element: HTMLElement) => void;
26
9
  }
27
- /**
28
- * Configuration for ripple feature
29
- */
30
10
  export interface RippleFeatureConfig {
31
11
  ripple?: boolean;
32
12
  rippleConfig?: RippleConfig;
33
13
  }
34
- /**
35
- * Component with ripple capabilities
36
- */
37
14
  export interface RippleComponent extends BaseComponent {
38
15
  ripple: RippleController;
39
16
  }
40
17
  export declare const createRipple: (config?: RippleConfig) => RippleController;
41
- /**
42
- * Adds ripple effect functionality to a component
43
- *
44
- * @param config - Configuration object
45
- * @returns Function that enhances a component with ripple effect
46
- */
47
18
  export declare const withRipple: <T extends RippleFeatureConfig & object>(config: T) => <C extends ElementComponent & Partial<LifecycleComponent>>(component: C) => C & RippleComponent;
@@ -1,16 +1,7 @@
1
1
  import { ElementComponent } from "../component.js";
2
- /**
3
- * Configuration for size feature
4
- */
5
2
  export interface SizeConfig {
6
3
  size?: string;
7
4
  prefix?: string;
8
5
  componentName?: string;
9
6
  }
10
- /**
11
- * Adds a size class to a component
12
- *
13
- * @param config - Configuration object containing size information
14
- * @returns Function that enhances a component with the size class
15
- */
16
7
  export declare const withSize: <T extends SizeConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C;
@@ -1,15 +1,6 @@
1
1
  import { ElementComponent } from "../component.js";
2
- /**
3
- * Configuration for style feature
4
- */
5
2
  export interface StyleConfig {
6
3
  variant?: string;
7
4
  size?: string;
8
5
  }
9
- /**
10
- * Adds style classes to a component based on configuration
11
- *
12
- * @param config - Configuration object containing style information
13
- * @returns Function that enhances a component with style classes
14
- */
15
6
  export declare const withStyle: <T extends StyleConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C;
@@ -1,61 +1,16 @@
1
1
  import { BaseComponent, ElementComponent } from "../component.js";
2
- /**
3
- * Text manager interface
4
- */
5
2
  export interface TextManager {
6
- /**
7
- * Sets text content
8
- * @param text - Text content to set
9
- * @returns TextManager instance for chaining
10
- */
11
- /** Text, or a node placed inside the text element (the web components pass a `<slot>`). */
12
3
  setText: (text: string | Node) => TextManager;
13
- /**
14
- * Gets current text content
15
- * @returns Current text
16
- */
17
4
  getText: () => string;
18
- /**
19
- * Gets text element
20
- * @returns Text element or null if not created
21
- */
22
5
  getElement: () => HTMLElement | null;
23
6
  }
24
- /**
25
- * Configuration for text feature
26
- */
27
7
  export interface TextConfig {
28
- /**
29
- * Initial text content
30
- */
31
- /** Text, or a node placed inside the text element. */
32
8
  text?: string | Node;
33
- /**
34
- * CSS class prefix
35
- */
36
9
  prefix?: string;
37
- /**
38
- * Component name for class generation
39
- */
40
10
  componentName?: string;
41
- /**
42
- * Element to insert text before (optional)
43
- */
44
11
  beforeElement?: HTMLElement;
45
12
  }
46
- /**
47
- * Component with text capabilities
48
- */
49
13
  export interface TextComponent extends BaseComponent {
50
- /**
51
- * Text manager
52
- */
53
14
  text: TextManager;
54
15
  }
55
- /**
56
- * Adds text management to a component
57
- *
58
- * @param config - Configuration object containing text information
59
- * @returns Function that enhances a component with text capabilities
60
- */
61
16
  export declare const withText: <T extends TextConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C & TextComponent;
@@ -1,114 +1,26 @@
1
1
  import { ElementComponent } from "../component.js";
2
- /**
3
- * Configuration for text input feature
4
- */
5
2
  export interface TextInputConfig {
6
- /**
7
- * Input type (text, password, etc.)
8
- */
9
3
  type?: string;
10
- /**
11
- * Whether to use textarea instead of input
12
- */
13
4
  multiline?: boolean;
14
- /**
15
- * Input name attribute
16
- */
17
5
  name?: string;
18
- /**
19
- * Whether input is required
20
- */
21
6
  required?: boolean;
22
- /**
23
- * Whether input is disabled
24
- */
25
7
  disabled?: boolean;
26
- /**
27
- * Maximum allowed length
28
- */
29
8
  maxLength?: number;
30
- /**
31
- * Input validation pattern
32
- */
33
9
  pattern?: string;
34
- /**
35
- * Autocomplete setting
36
- */
37
10
  autocomplete?: string;
38
- /**
39
- * Initial input value
40
- */
41
11
  value?: string;
42
- /**
43
- * Placeholder attribute
44
- */
45
12
  placeholder?: string;
46
- /**
47
- * Whether input is readonly
48
- */
49
13
  readonly?: boolean;
50
14
  }
51
- /**
52
- * What withTextInput adds to a component.
53
- *
54
- * Declared apart from TextInputComponent because the enhancer returns
55
- * `C & TextInputFeature`, and C -- the component being enhanced -- already
56
- * carries the element half. Naming the whole of TextInputComponent on the way
57
- * out is what narrowed `addClass` back to a bare ElementComponent. It has to be
58
- * its own interface rather than a Pick of TextInputComponent: an indexed access
59
- * binds `this` to the type being indexed, so the methods below would report
60
- * TextInputComponent and the polymorphism would be lost at the step that needs
61
- * it.
62
- */
63
15
  export interface TextInputFeature {
64
- /**
65
- * Input element
66
- */
67
16
  input: HTMLInputElement | HTMLTextAreaElement;
68
- /**
69
- * Sets the input value
70
- * @param value - Value to set
71
- * @returns Component instance for chaining
72
- */
73
17
  setValue(value: string): this;
74
- /**
75
- * Gets the current input value
76
- * @returns Current value
77
- */
78
18
  getValue: () => string;
79
- /**
80
- * Sets an attribute on the input
81
- * @param name - Attribute name
82
- * @param value - Attribute value
83
- * @returns Component instance for chaining
84
- */
85
19
  setAttribute(name: string, value: string): this;
86
- /**
87
- * Gets an attribute from the input
88
- * @param name - Attribute name
89
- * @returns Attribute value
90
- */
91
20
  getAttribute(name: string): string | null;
92
- /**
93
- * Removes an attribute from the input
94
- * @param name - Attribute name
95
- * @returns Component instance for chaining
96
- */
97
21
  removeAttribute(name: string): this;
98
- /**
99
- * Event emission method if available
100
- */
101
22
  emit?(event: string, data: unknown): this;
102
23
  }
103
- /**
104
- * Component with text input element and related methods
105
- */
106
24
  export interface TextInputComponent extends ElementComponent, TextInputFeature {
107
25
  }
108
- /**
109
- * Enhances a component with text input functionality
110
- *
111
- * @param config - Text input configuration
112
- * @returns Function that enhances a component with text input capabilities
113
- */
114
26
  export declare const withTextInput: <T extends TextInputConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & TextInputFeature;
@@ -1,60 +1,16 @@
1
1
  import { BaseComponent, ElementComponent } from "../component.js";
2
- /**
3
- * Configuration for text label feature
4
- */
5
2
  export interface TextLabelConfig {
6
- /**
7
- * Label text
8
- */
9
- /**
10
- * The label: text, or a node placed inside the label element (the
11
- * web components pass a `<slot>` so the page's content is the label).
12
- */
13
3
  label?: string | Node;
14
- /**
15
- * Label position ('start' or 'end')
16
- */
17
4
  labelPosition?: "start" | "end";
18
- /**
19
- * CSS class prefix
20
- */
21
5
  prefix?: string;
22
- /**
23
- * Component name for class generation
24
- */
25
6
  componentName?: string;
26
7
  }
27
- /**
28
- * Label manager interface
29
- */
30
8
  export interface LabelManager {
31
- /**
32
- * Sets the label text
33
- * @param text - Text to set
34
- * @returns LabelManager instance for chaining
35
- */
36
9
  setText: (text: string) => LabelManager;
37
- /**
38
- * Gets the current label text
39
- * @returns Current text
40
- */
41
10
  getText: () => string;
42
- /**
43
- * Gets the label element
44
- * @returns Label element
45
- */
46
11
  getElement: () => HTMLElement;
47
12
  }
48
- /**
49
- * Component with label capabilities
50
- */
51
13
  export interface LabelComponent extends BaseComponent {
52
14
  label: LabelManager;
53
15
  }
54
- /**
55
- * Adds a text label to a component
56
- *
57
- * @param config - Configuration object containing label information
58
- * @returns Function that enhances a component with a label
59
- */
60
16
  export declare const withTextLabel: <T extends TextLabelConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & LabelComponent;
@@ -1,15 +1,5 @@
1
- /**
2
- * @module core/compose/features
3
- * @description Adds throttled event handling capabilities to components
4
- */
5
1
  import { BaseComponent, ElementComponent } from "../component.js";
6
- /**
7
- * Configuration for throttled event handlers
8
- */
9
2
  export interface ThrottleConfig {
10
- /**
11
- * Event handlers with throttle settings
12
- */
13
3
  throttledEvents?: Record<string, {
14
4
  handler: (event: Event) => void;
15
5
  wait: number;
@@ -19,56 +9,12 @@ export interface ThrottleConfig {
19
9
  };
20
10
  }>;
21
11
  }
22
- /**
23
- * Component with throttled event capabilities
24
- */
25
12
  export interface ThrottleComponent extends BaseComponent {
26
- /**
27
- * Adds a throttled event listener
28
- * @param event - Event name
29
- * @param handler - Event handler
30
- * @param wait - Throttle interval in milliseconds
31
- * @param options - Throttle options
32
- * @returns ThrottleComponent for chaining
33
- */
34
13
  addThrottledEvent: (event: string, handler: (event: Event) => void, wait: number, options?: {
35
14
  leading?: boolean;
36
15
  trailing?: boolean;
37
16
  }) => ThrottleComponent;
38
- /**
39
- * Removes a throttled event listener
40
- * @param event - Event name
41
- * @returns ThrottleComponent for chaining
42
- */
43
17
  removeThrottledEvent: (event: string) => ThrottleComponent;
44
18
  }
45
- /**
46
- * Adds throttled event handling capabilities to a component
47
- *
48
- * @param config - Configuration object containing throttled event settings
49
- * @returns Function that enhances a component with throttled event handling
50
- *
51
- * @example
52
- * ```ts
53
- * // Add throttled events to a component
54
- * const component = pipe(
55
- * createBase,
56
- * withElement(...),
57
- * withThrottle({
58
- * throttledEvents: {
59
- * 'scroll': {
60
- * handler: (e) => updateScrollPosition(e),
61
- * wait: 100
62
- * },
63
- * 'mousemove': {
64
- * handler: handleMouseMove,
65
- * wait: 50,
66
- * options: { leading: true, trailing: false }
67
- * }
68
- * }
69
- * })
70
- * )(config);
71
- * ```
72
- */
73
19
  export declare const withThrottle: <T extends ThrottleConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & ThrottleComponent;
74
20
  export default withThrottle;
@@ -1,46 +1,12 @@
1
- /**
2
- * @module core/compose/features
3
- */
4
1
  import { BaseComponent, ElementComponent } from "../component.js";
5
- /**
6
- * Configuration for track feature
7
- */
8
2
  export interface TrackConfig {
9
- /**
10
- * CSS class prefix
11
- */
12
3
  prefix: string;
13
- /**
14
- * Component name for class generation
15
- */
16
4
  componentName: string;
17
- /**
18
- * Custom icon HTML or 'none'
19
- */
20
5
  icon?: string;
21
- /**
22
- * Icon HTML shown in the unselected handle, which then grows to 24dp: M3's
23
- * "icon on selected and unselected switch" configuration.
24
- */
25
6
  unselectedIcon?: string;
26
7
  }
27
- /**
28
- * Component with track and thumb elements
29
- */
30
8
  export interface TrackComponent extends BaseComponent {
31
- /**
32
- * Track element
33
- */
34
9
  track: HTMLElement;
35
- /**
36
- * Thumb element
37
- */
38
10
  thumb: HTMLElement;
39
11
  }
40
- /**
41
- * Adds track and thumb elements to a component
42
- *
43
- * @param config - Track configuration
44
- * @returns Function that enhances a component with track and thumb elements
45
- */
46
12
  export declare const withTrack: <T extends TrackConfig>(config: T) => <C extends ElementComponent>(component: C) => C & TrackComponent;
@@ -1,16 +1,7 @@
1
1
  import { ElementComponent } from "../component.js";
2
- /**
3
- * Configuration for variant feature
4
- */
5
2
  export interface VariantConfig {
6
3
  variant?: string;
7
4
  prefix?: string;
8
5
  componentName?: string;
9
6
  }
10
- /**
11
- * Adds a variant class to a component
12
- *
13
- * @param config - Configuration object containing variant information
14
- * @returns Function that enhances a component with the variant class
15
- */
16
7
  export declare const withVariant: <T extends VariantConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C;
@@ -1,45 +1,15 @@
1
1
  import { BaseComponent, ElementComponent } from "../component.js";
2
- /**
3
- * Event manager interface
4
- */
5
2
  export interface EnhancedEventManager {
6
- /**
7
- * Add an event listener
8
- */
9
3
  on: (event: string, handler: Function) => EnhancedEventManager;
10
- /**
11
- * Remove an event listener
12
- */
13
4
  off: (event: string, handler: Function) => EnhancedEventManager;
14
- /**
15
- * Add multiple event listeners at once
16
- */
17
5
  addListeners: (listeners: Record<string, Function>) => EnhancedEventManager;
18
- /**
19
- * Remove multiple event listeners at once
20
- */
21
6
  removeListeners: (listeners: Record<string, Function>) => EnhancedEventManager;
22
- /**
23
- * One-time event handler
24
- */
25
7
  once: (event: string, handler: Function) => EnhancedEventManager;
26
- /**
27
- * Clean up all event listeners
28
- */
29
8
  destroy: () => void;
30
9
  }
31
- /**
32
- * Component with enhanced event capabilities
33
- */
34
10
  export interface EnhancedEventComponent extends BaseComponent {
35
11
  events: EnhancedEventManager;
36
12
  on(event: string, handler: Function): this;
37
13
  off(event: string, handler: Function): this;
38
14
  }
39
- /**
40
- * Adds enhanced event handling capabilities to a component
41
- *
42
- * @param target - Optional custom event target
43
- * @returns Function that enhances a component with event capabilities
44
- */
45
15
  export declare const withEvents: (target?: HTMLElement) => <C extends ElementComponent>(component: C) => C & EnhancedEventComponent;
@@ -1,7 +1,3 @@
1
- /**
2
- * @module core/compose
3
- * @description Core composition utilities for creating and combining components
4
- */
5
1
  export { pipe, compose, transform } from "./pipe.js";
6
2
  export { createComponent } from "./base.js";
7
3
  export { createBase, withElement } from "./component.js";
@@ -1,22 +1,3 @@
1
- /**
2
- * @namespace compose
3
- * @description Core composition utilities for creating and combining components
4
- */
5
- /**
6
- * Performs left-to-right function composition.
7
- * Each function takes the return value of the previous function as its input.
8
- *
9
- * @memberof compose
10
- * @function pipe
11
- * @param {...Function} fns - Functions to compose
12
- * @returns {Function} Composed function that passes its argument through the pipeline
13
- *
14
- * @example
15
- * const addOne = x => x + 1;
16
- * const double = x => x * 2;
17
- * const addOneThenDouble = pipe(addOne, double);
18
- * console.log(addOneThenDouble(3)); // Output: 8
19
- */
20
1
  export declare function pipe<A, B>(f1: (arg: A) => B): (x: A) => B;
21
2
  export declare function pipe<A, B, C>(f1: (arg: A) => B, f2: (arg: B) => C): (x: A) => C;
22
3
  export declare function pipe<A, B, C, D>(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D): (x: A) => D;
@@ -38,21 +19,6 @@ export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q,
38
19
  export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I, f9: (arg: I) => J, f10: (arg: J) => K, f11: (arg: K) => L, f12: (arg: L) => M, f13: (arg: M) => N, f14: (arg: N) => O, f15: (arg: O) => P, f16: (arg: P) => Q, f17: (arg: Q) => R, f18: (arg: R) => S, f19: (arg: S) => T): (x: A) => T;
39
20
  export declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U>(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G, f7: (arg: G) => H, f8: (arg: H) => I, f9: (arg: I) => J, f10: (arg: J) => K, f11: (arg: K) => L, f12: (arg: L) => M, f13: (arg: M) => N, f14: (arg: N) => O, f15: (arg: O) => P, f16: (arg: P) => Q, f17: (arg: Q) => R, f18: (arg: R) => S, f19: (arg: S) => T, f20: (arg: T) => U): (x: A) => U;
40
21
  export declare function pipe<T>(...fns: Array<(arg: T) => T>): (x: T) => T;
41
- /**
42
- * Performs right-to-left function composition.
43
- * This is the mathematical composition order: (f ∘ g)(x) = f(g(x))
44
- *
45
- * @memberof compose
46
- * @function compose
47
- * @param {...Function} fns - Functions to compose
48
- * @returns {Function} Composed function following mathematical composition order
49
- *
50
- * @example
51
- * const addOne = x => x + 1;
52
- * const double = x => x * 2;
53
- * const doubleTheAddOne = compose(addOne, double);
54
- * console.log(doubleTheAddOne(3)); // Output: 7
55
- */
56
22
  export declare function compose<A, B>(f1: (arg: A) => B): (x: A) => B;
57
23
  export declare function compose<A, B, C>(f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => C;
58
24
  export declare function compose<A, B, C, D>(f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => D;
@@ -74,25 +40,4 @@ export declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P,
74
40
  export declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T>(f19: (arg: S) => T, f18: (arg: R) => S, f17: (arg: Q) => R, f16: (arg: P) => Q, f15: (arg: O) => P, f14: (arg: N) => O, f13: (arg: M) => N, f12: (arg: L) => M, f11: (arg: K) => L, f10: (arg: J) => K, f9: (arg: I) => J, f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => T;
75
41
  export declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U>(f20: (arg: T) => U, f19: (arg: S) => T, f18: (arg: R) => S, f17: (arg: Q) => R, f16: (arg: P) => Q, f15: (arg: O) => P, f14: (arg: N) => O, f13: (arg: M) => N, f12: (arg: L) => M, f11: (arg: K) => L, f10: (arg: J) => K, f9: (arg: I) => J, f8: (arg: H) => I, f7: (arg: G) => H, f6: (arg: F) => G, f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => U;
76
42
  export declare function compose<T>(...fns: Array<(arg: T) => T>): (x: T) => T;
77
- /**
78
- * Creates a function that applies transformations to an object with shared context.
79
- * Useful for applying multiple transformations while maintaining a shared state.
80
- *
81
- * @memberof compose
82
- * @function transform
83
- * @param {...Function} transformers - Functions that transform the object
84
- * @returns {Function} Function that applies all transformations with shared context
85
- *
86
- * @example
87
- * const withName = (obj, context) => ({ ...obj, name: context.name });
88
- * const withAge = (obj, context) => ({ ...obj, age: context.age });
89
- * const createPerson = transform(withName, withAge);
90
- *
91
- * const person = createPerson({}, { name: 'John', age: 30 });
92
- * // Result: { name: 'John', age: 30 }
93
- */
94
43
  export declare const transform: <T, C = Record<string, unknown>>(...transformers: Array<(obj: T, context: C) => Partial<T>>) => (obj: T, context?: C) => T;
95
- /**
96
- * @typedef {Object} TransformContext
97
- * @property {any} [key] - Any contextual data needed by transformers
98
- */