material 3.15.1 → 3.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/README.md +2 -2
  2. package/dist/components/bottom-sheet/features/state.js +27 -0
  3. package/dist/components/card/index.d.ts +35 -35
  4. package/dist/components/dialog/features.js +8 -0
  5. package/dist/components/divider/features.js +6 -3
  6. package/dist/components/divider/index.d.ts +8 -8
  7. package/dist/components/drawer/index.d.ts +6 -6
  8. package/dist/components/fab-menu/index.d.ts +6 -6
  9. package/dist/components/list/index.d.ts +6 -6
  10. package/dist/components/listbox/index.d.ts +6 -6
  11. package/dist/components/loading-indicator/index.d.ts +6 -6
  12. package/dist/components/snackbar/api.js +6 -0
  13. package/dist/components/snackbar/index.d.ts +9 -9
  14. package/dist/components/tabs/index.d.ts +90 -90
  15. package/dist/components/text-field/index.d.ts +6 -6
  16. package/dist/components/tooltip/api.js +51 -7
  17. package/dist/core/canvas/index.d.ts +22 -22
  18. package/dist/core/compose/index.d.ts +478 -478
  19. package/dist/core/dom/index.d.ts +47 -47
  20. package/dist/core/shapes/index.d.ts +61 -61
  21. package/dist/core/theme/index.d.ts +6 -6
  22. package/dist/core/utils/index.d.ts +27 -27
  23. package/dist/elements/css/badge.css +1 -1
  24. package/dist/elements/css/bottom-app-bar.css +1 -1
  25. package/dist/elements/css/navigation-bar.css +1 -1
  26. package/dist/elements/css/side-sheet.css +1 -1
  27. package/dist/elements/css/text-field.css +1 -1
  28. package/dist/elements/css/toolbar.css +1 -1
  29. package/dist/elements/css/tooltip.css +1 -1
  30. package/dist/elements/css/top-app-bar.css +1 -1
  31. package/dist/elements/index.d.ts +2226 -2226
  32. package/dist/elements/preupgrade/badge.css +2 -2
  33. package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
  34. package/dist/elements/preupgrade/bottom-sheet.css +1 -1
  35. package/dist/elements/preupgrade/button-group.css +1 -1
  36. package/dist/elements/preupgrade/button.css +1 -1
  37. package/dist/elements/preupgrade/card.css +1 -1
  38. package/dist/elements/preupgrade/carousel.css +1 -1
  39. package/dist/elements/preupgrade/checkbox.css +1 -1
  40. package/dist/elements/preupgrade/chips.css +1 -1
  41. package/dist/elements/preupgrade/datepicker.css +1 -1
  42. package/dist/elements/preupgrade/dialog.css +1 -1
  43. package/dist/elements/preupgrade/divider.css +1 -1
  44. package/dist/elements/preupgrade/drawer.css +1 -1
  45. package/dist/elements/preupgrade/extended-fab.css +1 -1
  46. package/dist/elements/preupgrade/fab-menu.css +1 -1
  47. package/dist/elements/preupgrade/fab.css +1 -1
  48. package/dist/elements/preupgrade/icon-button.css +1 -1
  49. package/dist/elements/preupgrade/list.css +1 -1
  50. package/dist/elements/preupgrade/loading-indicator.css +1 -1
  51. package/dist/elements/preupgrade/menu.css +1 -1
  52. package/dist/elements/preupgrade/navigation-bar.css +1 -1
  53. package/dist/elements/preupgrade/navigation-rail.css +1 -1
  54. package/dist/elements/preupgrade/progress.css +1 -1
  55. package/dist/elements/preupgrade/radios.css +1 -1
  56. package/dist/elements/preupgrade/search.css +1 -1
  57. package/dist/elements/preupgrade/select.css +1 -1
  58. package/dist/elements/preupgrade/side-sheet.css +1 -1
  59. package/dist/elements/preupgrade/slider.css +1 -1
  60. package/dist/elements/preupgrade/snackbar.css +1 -1
  61. package/dist/elements/preupgrade/split-button.css +1 -1
  62. package/dist/elements/preupgrade/switch.css +1 -1
  63. package/dist/elements/preupgrade/tabs.css +1 -1
  64. package/dist/elements/preupgrade/text-field.css +1 -1
  65. package/dist/elements/preupgrade/timepicker.css +1 -1
  66. package/dist/elements/preupgrade/toolbar.css +1 -1
  67. package/dist/elements/preupgrade/tooltip.css +1 -1
  68. package/dist/elements/preupgrade/top-app-bar.css +1 -1
  69. package/dist/elements/preupgrade.css +2 -2
  70. package/dist/elements/styles.js +9 -9
  71. package/dist/elements/top-app-bar.js +11 -1
  72. package/dist/react/index.d.ts +50 -50
  73. package/dist/solid/index.d.ts +50 -50
  74. package/dist/styles/badge.css +2 -2
  75. package/dist/styles/base-elements.css +1 -1
  76. package/dist/styles/base-lite.css +1 -1
  77. package/dist/styles/base.css +1 -1
  78. package/dist/styles/bottom-app-bar-toolbar.css +2 -2
  79. package/dist/styles/bottom-app-bar.css +2 -2
  80. package/dist/styles/bottom-sheet.css +1 -1
  81. package/dist/styles/button-filled-small-round.css +1 -1
  82. package/dist/styles/button-group.css +1 -1
  83. package/dist/styles/button.css +1 -1
  84. package/dist/styles/card.css +1 -1
  85. package/dist/styles/carousel.css +1 -1
  86. package/dist/styles/checkbox.css +1 -1
  87. package/dist/styles/chips.css +1 -1
  88. package/dist/styles/contrast.css +1 -1
  89. package/dist/styles/datepicker.css +1 -1
  90. package/dist/styles/dialog.css +1 -1
  91. package/dist/styles/divider.css +1 -1
  92. package/dist/styles/drawer.css +1 -1
  93. package/dist/styles/extended-fab.css +1 -1
  94. package/dist/styles/fab-menu.css +1 -1
  95. package/dist/styles/fab.css +1 -1
  96. package/dist/styles/icon-button.css +1 -1
  97. package/dist/styles/list.css +1 -1
  98. package/dist/styles/listbox.css +1 -1
  99. package/dist/styles/loading-indicator.css +1 -1
  100. package/dist/styles/menu.css +1 -1
  101. package/dist/styles/navigation-bar.css +2 -2
  102. package/dist/styles/navigation-rail.css +1 -1
  103. package/dist/styles/progress.css +1 -1
  104. package/dist/styles/radios.css +1 -1
  105. package/dist/styles/search.css +1 -1
  106. package/dist/styles/select.css +1 -1
  107. package/dist/styles/side-sheet.css +2 -2
  108. package/dist/styles/slider.css +1 -1
  109. package/dist/styles/snackbar.css +1 -1
  110. package/dist/styles/split-button.css +1 -1
  111. package/dist/styles/switch.css +1 -1
  112. package/dist/styles/tabs.css +1 -1
  113. package/dist/styles/text-field.css +2 -2
  114. package/dist/styles/timepicker.css +1 -1
  115. package/dist/styles/toolbar.css +2 -2
  116. package/dist/styles/tooltip.css +2 -2
  117. package/dist/styles/top-app-bar.css +2 -2
  118. package/dist/styles/typography.css +1 -1
  119. package/dist/styles/utilities.css +1 -1
  120. package/dist/styles.css +2 -2
  121. package/dist/themes/autumn-contrast.css +1 -1
  122. package/dist/themes/autumn.css +1 -1
  123. package/dist/themes/baseline-contrast.css +1 -1
  124. package/dist/themes/baseline.css +1 -1
  125. package/dist/themes/brownbeige-contrast.css +1 -1
  126. package/dist/themes/brownbeige.css +1 -1
  127. package/dist/themes/content-contrast.css +1 -1
  128. package/dist/themes/content.css +1 -1
  129. package/dist/themes/desert-contrast.css +1 -1
  130. package/dist/themes/desert.css +1 -1
  131. package/dist/themes/expressive-contrast.css +1 -1
  132. package/dist/themes/expressive.css +1 -1
  133. package/dist/themes/fidelity-contrast.css +1 -1
  134. package/dist/themes/fidelity.css +1 -1
  135. package/dist/themes/forest-contrast.css +1 -1
  136. package/dist/themes/forest.css +1 -1
  137. package/dist/themes/fruit-salad-contrast.css +1 -1
  138. package/dist/themes/fruit-salad.css +1 -1
  139. package/dist/themes/highcontrast-contrast.css +1 -1
  140. package/dist/themes/highcontrast.css +1 -1
  141. package/dist/themes/monochrome-contrast.css +1 -1
  142. package/dist/themes/monochrome.css +1 -1
  143. package/dist/themes/neutral-contrast.css +1 -1
  144. package/dist/themes/neutral.css +1 -1
  145. package/dist/themes/ocean-contrast.css +1 -1
  146. package/dist/themes/ocean.css +1 -1
  147. package/dist/themes/rainbow-contrast.css +1 -1
  148. package/dist/themes/rainbow.css +1 -1
  149. package/dist/themes/sageivory-contrast.css +1 -1
  150. package/dist/themes/sageivory.css +1 -1
  151. package/dist/themes/spring-contrast.css +1 -1
  152. package/dist/themes/spring.css +1 -1
  153. package/dist/themes/summer-contrast.css +1 -1
  154. package/dist/themes/summer.css +1 -1
  155. package/dist/themes/sunset-contrast.css +1 -1
  156. package/dist/themes/sunset.css +1 -1
  157. package/dist/themes/tealcaramel-contrast.css +1 -1
  158. package/dist/themes/tealcaramel.css +1 -1
  159. package/dist/themes/vibrant-contrast.css +1 -1
  160. package/dist/themes/vibrant.css +1 -1
  161. package/dist/tokens/catalogue.json +3 -3
  162. package/dist/vue/index.d.ts +50 -50
  163. package/package.json +2 -2
  164. package/src/styles/base/_plain-slot-button.scss +67 -0
  165. package/src/styles/components/_badge.scss +1 -3
  166. package/src/styles/components/_bottom-app-bar.scss +6 -0
  167. package/src/styles/components/_navigation-bar.scss +1 -2
  168. package/src/styles/components/_side-sheet.scss +6 -0
  169. package/src/styles/components/_text-field.scss +8 -0
  170. package/src/styles/components/_toolbar.scss +1 -0
  171. package/src/styles/components/_tooltip.scss +5 -2
  172. package/src/styles/components/_top-app-bar.scss +21 -12
  173. package/src/styles/elements/_badge.scss +5 -3
@@ -1,122 +1,6 @@
1
1
  import type { BadgeComponent as Badge } from "../../components/badge/index.js";
2
2
  import { EventCallback } from "../state/emitter.js";
3
3
  import { BaseComponent, ElementComponent } from "./component.js";
4
- /**
5
- * Performs left-to-right function composition.
6
- * @param fns
7
- */
8
- declare function pipe<A, B>(f1: (arg: A) => B): (x: A) => B;
9
-
10
- declare function pipe<A, B, C>(f1: (arg: A) => B, f2: (arg: B) => C): (x: A) => C;
11
-
12
- declare function pipe<A, B, C, D>(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D): (x: A) => D;
13
-
14
- declare function pipe<A, B, C, D, E>(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E): (x: A) => E;
15
-
16
- declare function pipe<A, B, C, D, E, F>(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F): (x: A) => F;
17
-
18
- declare function pipe<A, B, C, D, E, F, G>(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G): (x: A) => G;
19
-
20
- declare function pipe<A, B, C, D, E, F, G, H>(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): (x: A) => H;
21
-
22
- declare function pipe<A, B, C, D, E, F, G, H, I>(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): (x: A) => I;
23
-
24
- declare function pipe<A, B, C, D, E, F, G, H, I, J>(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): (x: A) => J;
25
-
26
- declare function pipe<A, B, C, D, E, F, G, H, I, J, K>(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): (x: A) => K;
27
-
28
- declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L>(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): (x: A) => L;
29
-
30
- declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M>(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): (x: A) => M;
31
-
32
- declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N>(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): (x: A) => N;
33
-
34
- declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(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): (x: A) => O;
35
-
36
- declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(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): (x: A) => P;
37
-
38
- declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(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): (x: A) => Q;
39
-
40
- declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(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): (x: A) => R;
41
-
42
- declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(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): (x: A) => S;
43
-
44
- 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;
45
-
46
- 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;
47
-
48
- declare function pipe<T>(...fns: Array<(arg: T) => T>): (x: T) => T;
49
-
50
- /**
51
- * Performs right-to-left function composition.
52
- * @param fns
53
- */
54
- declare function compose<A, B>(f1: (arg: A) => B): (x: A) => B;
55
-
56
- declare function compose<A, B, C>(f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => C;
57
-
58
- declare function compose<A, B, C, D>(f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => D;
59
-
60
- declare function compose<A, B, C, D, E>(f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => E;
61
-
62
- declare function compose<A, B, C, D, E, F>(f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => F;
63
-
64
- declare function compose<A, B, C, D, E, F, G>(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) => G;
65
-
66
- declare function compose<A, B, C, D, E, F, G, H>(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) => H;
67
-
68
- declare function compose<A, B, C, D, E, F, G, H, I>(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) => I;
69
-
70
- declare function compose<A, B, C, D, E, F, G, H, I, J>(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) => J;
71
-
72
- declare function compose<A, B, C, D, E, F, G, H, I, J, K>(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) => K;
73
-
74
- declare function compose<A, B, C, D, E, F, G, H, I, J, K, L>(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) => L;
75
-
76
- declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M>(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) => M;
77
-
78
- declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N>(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) => N;
79
-
80
- declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(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) => O;
81
-
82
- declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(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) => P;
83
-
84
- declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(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) => Q;
85
-
86
- declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(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) => R;
87
-
88
- declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(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) => S;
89
-
90
- 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;
91
-
92
- 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;
93
-
94
- declare function compose<T>(...fns: Array<(arg: T) => T>): (x: T) => T;
95
-
96
- /**
97
- * Creates a function that applies transformations to an object with shared context.
98
- * @param transformers
99
- */
100
- declare const transform: <T, C = Record<string, unknown>>(...transformers: Array<(obj: T, context: C) => Partial<T>>) => (obj: T, context?: C) => T;
101
-
102
- /** Interface for components with lifecycle */
103
- interface ComponentWithLifecycle extends ElementComponent {
104
- lifecycle: {
105
- destroy: () => void;
106
- [key: string]: unknown;
107
- };
108
- }
109
-
110
- /** Interface for components with emit method */
111
- interface ComponentWithEmit extends ElementComponent {
112
- emit: (event: string, data: unknown) => unknown;
113
- }
114
-
115
- /** Type guard to check if component has lifecycle */
116
- declare function hasLifecycle(component: object): component is ComponentWithLifecycle;
117
-
118
- /** Type guard to check if component has emit method */
119
- declare function hasEmit(component: object): component is ComponentWithEmit;
120
4
  /** Configuration for component creation */
121
5
  interface ComponentConfig {
122
6
  [key: string]: unknown;
@@ -138,197 +22,30 @@ interface Component {
138
22
  */
139
23
  declare const createComponent: (config?: object) => Component;
140
24
 
141
- /** Input configuration options */
142
- interface InputConfig {
143
- /** Input name attribute */
144
- name?: string;
145
- /** Initial checked state */
146
- checked?: boolean;
147
- /** Whether input is required */
148
- required?: boolean;
149
- /** Whether input is disabled */
150
- disabled?: boolean;
151
- /** Input value attribute */
152
- value?: string;
153
- /** Accessibility label text */
154
- label?: string | Node;
155
- /** Alternative accessibility label */
156
- ariaLabel?: string;
157
- /** Component name for classes */
158
- componentName?: string;
159
- /**
160
- * Whether Enter toggles the input as Space does
161
- * @default true
162
- */
163
- enterToggles?: boolean;
164
- }
165
-
166
- /** What withInput adds to a component. */
167
- interface InputFeature {
168
- /** Input element */
169
- input: HTMLInputElement;
170
- /** Gets the checked state: the `value` a `change` carries */
171
- getValue: () => boolean;
172
- /**
173
- * Checks or unchecks the input.
174
- * @param value
175
- */
176
- setValue(value: boolean): this;
177
- /** Gets the input's `value` attribute: the string a form submits while checked */
178
- getValueAttribute: () => string;
179
- /**
180
- * Sets the input's `value` attribute.
181
- * @param value
182
- */
183
- setValueAttribute(value: string): this;
184
- /** Event emission method if available */
185
- emit?(event: string, data: unknown): this;
186
- }
187
-
188
- /** Component with input element and related methods */
189
- interface InputComponent extends ElementComponent, InputFeature {
190
- }
191
-
192
- /**
193
- * Creates an input element and adds it to a component Handles both input creation and event emission for state changes `change` carries `{ checked, value, valueAttribute, nativeEvent }`: `value` is the checked boolean, as the checkbox and the switch report it, and `valueAttribute` the input's string value.
194
- * @param config
195
- */
196
- declare const withInput: <T extends InputConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & InputFeature;
197
-
198
- /** Configuration for text input feature */
199
- interface TextInputConfig {
200
- /** Input type (text, password, etc.) */
201
- type?: string;
202
- /** Whether to use textarea instead of input */
203
- multiline?: boolean;
204
- /** Input name attribute */
205
- name?: string;
206
- /** Whether input is required */
207
- required?: boolean;
208
- /** Whether input is disabled */
209
- disabled?: boolean;
210
- /** Maximum allowed length */
211
- maxLength?: number;
212
- /** Input validation pattern */
213
- pattern?: string;
214
- /** Autocomplete setting */
215
- autocomplete?: string;
216
- /** Virtual keyboard to show for the input (`inputmode`) */
217
- inputMode?: string;
218
- /** The virtual keyboard's Enter key label (`enterkeyhint`) */
219
- enterKeyHint?: string;
220
- /** Initial input value */
221
- value?: string;
222
- /** Placeholder attribute */
223
- placeholder?: string;
224
- /** Accessible name for the native input or textarea. */
225
- ariaLabel?: string;
226
- /** Whether input is readonly */
227
- readonly?: boolean;
228
- }
229
-
230
- /** What withTextInput adds to a component. */
231
- interface TextInputFeature {
232
- /** Input element */
233
- input: HTMLInputElement | HTMLTextAreaElement;
234
- /**
235
- * Sets the input value
236
- * @param value
237
- */
238
- setValue(value: string): this;
239
- /** Gets the current input value */
240
- getValue: () => string;
241
- /**
242
- * Sets an attribute on the input
243
- * @param name
244
- * @param value
245
- */
246
- setAttribute(name: string, value: string): this;
247
- /**
248
- * Gets an attribute from the input
249
- * @param name
250
- */
251
- getAttribute(name: string): string | null;
252
- /**
253
- * Removes an attribute from the input
254
- * @param name
255
- */
256
- removeAttribute(name: string): this;
257
- /** Event emission method if available */
258
- emit?(event: string, data: unknown): this;
259
- }
260
25
 
261
- /** Component with text input element and related methods */
262
- interface TextInputComponent extends ElementComponent, TextInputFeature {
26
+ interface BadgeConfig {
27
+
28
+ badge?: string | number;
29
+
30
+ badgeConfig?: {
31
+ variant?: string;
32
+ color?: string;
33
+ size?: string;
34
+ position?: string;
35
+ max?: number;
36
+ };
37
+
38
+ prefix?: string;
263
39
  }
264
40
 
265
- /**
266
- * Enhances a component with text input functionality
267
- * @param config
268
- */
269
- declare const withTextInput: <T extends TextInputConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & TextInputFeature;
270
-
271
- /** Event manager interface */
272
- interface EnhancedEventManager {
273
- /** Add an event listener */
274
- on: (event: string, handler: Function) => EnhancedEventManager;
275
- /** Remove an event listener */
276
- off: (event: string, handler: Function) => EnhancedEventManager;
277
- /** Add multiple event listeners at once */
278
- addListeners: (listeners: Record<string, Function>) => EnhancedEventManager;
279
- /** Remove multiple event listeners at once */
280
- removeListeners: (listeners: Record<string, Function>) => EnhancedEventManager;
281
- /** One-time event handler */
282
- once: (event: string, handler: Function) => EnhancedEventManager;
283
- /** Clean up all event listeners */
284
- destroy: () => void;
285
- }
286
41
 
287
- /** Component with enhanced event capabilities */
288
- interface EnhancedEventComponent extends BaseComponent {
289
- events: EnhancedEventManager;
290
- on(event: string, handler: Function): this;
291
- off(event: string, handler: Function): this;
42
+ interface BadgeComponent extends BaseComponent {
43
+
44
+ badge?: Badge;
292
45
  }
293
46
 
294
- /**
295
- * Adds enhanced event handling capabilities to a component
296
- * @param target
297
- */
298
- declare const withEnhancedEvents: (target?: HTMLElement) => <C extends ElementComponent>(component: C) => C & EnhancedEventComponent;
299
-
300
- /** A component's events, by name: each one's handler. */
301
- type EventMap<E> = {
302
- [K in keyof E]: EventCallback;
303
- };
304
-
305
- /** The map of a component that does not name its events. */
306
- type AnyEvents = Record<string, EventCallback>;
307
47
 
308
- /** Component with event capabilities */
309
- interface EventComponent<E extends EventMap<E> = AnyEvents> extends BaseComponent {
310
- /**
311
- * Subscribe to an event
312
- * @param event
313
- * @param handler
314
- */
315
- on<K extends keyof E & string>(event: K, handler: E[K]): this;
316
- /**
317
- * Unsubscribe from an event
318
- * @param event
319
- * @param handler
320
- */
321
- off<K extends keyof E & string>(event: K, handler: E[K]): this;
322
- /**
323
- * Emit an event
324
- * @param event
325
- * @param data
326
- */
327
- emit(event: string, data?: unknown): this;
328
- }
329
-
330
- /** Adds event handling capabilities to a component Returns event system ready to use immediately `withEvents<Events>()` names the component's events: `on` and `off` then check each name and its handler's payload. */
331
- declare const withEvents: <E extends EventMap<E> = AnyEvents>() => <T extends BaseComponent>(component: T) => T & EventComponent<E>;
48
+ declare const withBadge: <T extends BadgeConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C & BadgeComponent;
332
49
 
333
50
  /** Configuration for checkable feature */
334
51
  interface CheckableConfig {
@@ -367,33 +84,52 @@ interface CheckableComponent extends BaseComponent {
367
84
  */
368
85
  declare const withCheckable: <T extends CheckableConfig & object>(config?: T) => <C extends InputComponent_1>(component: C) => C & CheckableComponent;
369
86
 
370
- /** Configuration for track feature */
371
- interface TrackConfig {
372
- /** CSS class prefix */
373
- prefix: string;
374
- /** Component name for class generation */
375
- componentName: string;
376
- /** Custom icon HTML or 'none' */
377
- icon?: string;
378
- /** Icon HTML shown in the unselected handle, which then grows to 24dp: M3's "icon on selected and unselected switch" configuration. */
379
- unselectedIcon?: string;
380
- /** When true, the thumb graphic is `aria-hidden`. */
381
- controlLabelOnly?: boolean;
87
+
88
+ interface ComponentWithLifecycle_1 extends ElementComponent {
89
+ lifecycle: {
90
+ destroy: () => void;
91
+ [key: string]: unknown;
92
+ };
382
93
  }
383
94
 
384
- /** Component with track and thumb elements */
385
- interface TrackComponent extends BaseComponent {
386
- /** Track element */
387
- track: HTMLElement;
388
- /** Thumb element */
389
- thumb: HTMLElement;
95
+ /** Configuration for debounced event handlers */
96
+ interface DebounceConfig {
97
+ /** Event handlers with debounce settings */
98
+ debouncedEvents?: Record<string, {
99
+ handler: (event: Event) => void;
100
+ wait: number;
101
+ options?: {
102
+ leading?: boolean;
103
+ maxWait?: number;
104
+ };
105
+ }>;
106
+ }
107
+
108
+ /** Component with debounced event capabilities */
109
+ interface DebounceComponent extends BaseComponent {
110
+ /**
111
+ * Adds a debounced event listener
112
+ * @param event
113
+ * @param handler
114
+ * @param wait
115
+ * @param options
116
+ */
117
+ addDebouncedEvent: (event: string, handler: (event: Event) => void, wait: number, options?: {
118
+ leading?: boolean;
119
+ maxWait?: number;
120
+ }) => DebounceComponent;
121
+ /**
122
+ * Removes a debounced event listener
123
+ * @param event
124
+ */
125
+ removeDebouncedEvent: (event: string) => DebounceComponent;
390
126
  }
391
127
 
392
128
  /**
393
- * Adds track and thumb elements to a component
129
+ * Adds debounced event handling capabilities to a component
394
130
  * @param config
395
131
  */
396
- declare const withTrack: <T extends TrackConfig>(config: T) => <C extends ElementComponent>(component: C) => C & TrackComponent;
132
+ declare const withDebounce: <T extends DebounceConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & DebounceComponent;
397
133
 
398
134
  /** Configuration for disabled feature */
399
135
  interface DisabledConfig {
@@ -424,101 +160,139 @@ interface DisabledComponent extends BaseComponent {
424
160
  */
425
161
  declare const withDisabled: <T extends DisabledConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C & DisabledComponent;
426
162
 
427
- /** Configuration for text label feature */
428
- interface TextLabelConfig {
429
- /** Label text */
430
- /** The label: text, or a node placed inside the label element (the web components pass a `<slot>` so the page's content is the label). */
431
- label?: string | Node;
432
- /** Label position ('start' or 'end') */
433
- labelPosition?: "start" | "end";
434
- /** CSS class prefix */
435
- prefix?: string;
436
- /** Component name for class generation */
437
- componentName?: string;
438
- }
163
+ /** A component's events, by name: each one's handler. */
164
+ type EventMap<E> = {
165
+ [K in keyof E]: EventCallback;
166
+ };
439
167
 
440
- /** Label manager interface */
441
- interface LabelManager {
168
+ /** The map of a component that does not name its events. */
169
+ type AnyEvents = Record<string, EventCallback>;
170
+
171
+ /** Component with event capabilities */
172
+ interface EventComponent<E extends EventMap<E> = AnyEvents> extends BaseComponent {
442
173
  /**
443
- * Sets the label text
444
- * @param text
174
+ * Subscribe to an event
175
+ * @param event
176
+ * @param handler
445
177
  */
446
- setText: (text: string) => LabelManager;
447
- /** Gets the current label text */
448
- getText: () => string;
449
- /** Gets the label element */
450
- getElement: () => HTMLElement;
178
+ on<K extends keyof E & string>(event: K, handler: E[K]): this;
179
+ /**
180
+ * Unsubscribe from an event
181
+ * @param event
182
+ * @param handler
183
+ */
184
+ off<K extends keyof E & string>(event: K, handler: E[K]): this;
185
+ /**
186
+ * Emit an event
187
+ * @param event
188
+ * @param data
189
+ */
190
+ emit(event: string, data?: unknown): this;
451
191
  }
452
192
 
453
- /** Component with label capabilities */
454
- interface LabelComponent extends BaseComponent {
455
- label: LabelManager;
193
+ /** Adds event handling capabilities to a component Returns event system ready to use immediately `withEvents<Events>()` names the component's events: `on` and `off` then check each name and its handler's payload. */
194
+ declare const withEvents: <E extends EventMap<E> = AnyEvents>() => <T extends BaseComponent>(component: T) => T & EventComponent<E>;
195
+
196
+ /** Input configuration options */
197
+ interface InputConfig {
198
+ /** Input name attribute */
199
+ name?: string;
200
+ /** Initial checked state */
201
+ checked?: boolean;
202
+ /** Whether input is required */
203
+ required?: boolean;
204
+ /** Whether input is disabled */
205
+ disabled?: boolean;
206
+ /** Input value attribute */
207
+ value?: string;
208
+ /** Accessibility label text */
209
+ label?: string | Node;
210
+ /** Alternative accessibility label */
211
+ ariaLabel?: string;
212
+ /** Component name for classes */
213
+ componentName?: string;
214
+ /**
215
+ * Whether Enter toggles the input as Space does
216
+ * @default true
217
+ */
218
+ enterToggles?: boolean;
456
219
  }
457
220
 
458
- /**
459
- * Adds a text label to a component
460
- * @param config
221
+ /** What withInput adds to a component. */
222
+ interface InputFeature {
223
+ /** Input element */
224
+ input: HTMLInputElement;
225
+ /** Gets the checked state: the `value` a `change` carries */
226
+ getValue: () => boolean;
227
+ /**
228
+ * Checks or unchecks the input.
229
+ * @param value
461
230
  */
462
- declare const withTextLabel: <T extends TextLabelConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & LabelComponent;
231
+ setValue(value: boolean): this;
232
+ /** Gets the input's `value` attribute: the string a form submits while checked */
233
+ getValueAttribute: () => string;
234
+ /**
235
+ * Sets the input's `value` attribute.
236
+ * @param value
237
+ */
238
+ setValueAttribute(value: string): this;
239
+ /** Event emission method if available */
240
+ emit?(event: string, data: unknown): this;
241
+ }
463
242
 
464
- /** Configuration for style feature */
465
- interface StyleConfig {
466
- variant?: string;
467
- size?: string;
243
+ /** Component with input element and related methods */
244
+ interface InputComponent extends ElementComponent, InputFeature {
468
245
  }
469
246
 
470
247
  /**
471
- * Adds style classes to a component based on configuration
248
+ * Creates an input element and adds it to a component Handles both input creation and event emission for state changes `change` carries `{ checked, value, valueAttribute, nativeEvent }`: `value` is the checked boolean, as the checkbox and the switch report it, and `valueAttribute` the input's string value.
472
249
  * @param config
473
250
  */
474
- declare const withStyle: <T extends StyleConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C;
251
+ declare const withInput: <T extends InputConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & InputFeature;
475
252
 
476
253
 
477
- interface ComponentWithLifecycle_1 extends ElementComponent {
478
- lifecycle: {
254
+ interface ComponentManagers {
255
+ events?: {
479
256
  destroy: () => void;
480
- [key: string]: unknown;
481
257
  };
258
+ text?: {
259
+ getElement: () => HTMLElement | null;
260
+ };
261
+ icon?: {
262
+ getElement: () => HTMLElement | null;
263
+ };
264
+ [key: string]: unknown;
482
265
  }
483
266
 
484
- /** Configuration for debounced event handlers */
485
- interface DebounceConfig {
486
- /** Event handlers with debounce settings */
487
- debouncedEvents?: Record<string, {
488
- handler: (event: Event) => void;
489
- wait: number;
490
- options?: {
491
- leading?: boolean;
492
- maxWait?: number;
493
- };
494
- }>;
495
- }
496
-
497
- /** Component with debounced event capabilities */
498
- interface DebounceComponent extends BaseComponent {
267
+ /** Lifecycle methods interface */
268
+ interface Lifecycle {
499
269
  /**
500
- * Adds a debounced event listener
501
- * @param event
270
+ * Registers a handler for mount event
502
271
  * @param handler
503
- * @param wait
504
- * @param options
505
272
  */
506
- addDebouncedEvent: (event: string, handler: (event: Event) => void, wait: number, options?: {
507
- leading?: boolean;
508
- maxWait?: number;
509
- }) => DebounceComponent;
273
+ onMount: (handler: () => void) => () => void;
510
274
  /**
511
- * Removes a debounced event listener
512
- * @param event
275
+ * Registers a handler for unmount event
276
+ * @param handler
513
277
  */
514
- removeDebouncedEvent: (event: string) => DebounceComponent;
278
+ onUnmount: (handler: () => void) => () => void;
279
+ /** Mounts the component */
280
+ mount: () => void;
281
+ /** Unmounts the component */
282
+ unmount: () => void;
283
+ /** Checks if component is mounted */
284
+ isMounted: () => boolean;
285
+ /** Destroys the component */
286
+ destroy: () => void;
515
287
  }
516
288
 
517
- /**
518
- * Adds debounced event handling capabilities to a component
519
- * @param config
520
- */
521
- declare const withDebounce: <T extends DebounceConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & DebounceComponent;
289
+ /** Component with lifecycle capabilities */
290
+ interface LifecycleComponent extends BaseComponent {
291
+ lifecycle: Lifecycle;
292
+ }
293
+
294
+ /** Adds lifecycle management to a component */
295
+ declare const withLifecycle: () => <T extends BaseComponent & Partial<Pick<ElementComponent, "element" | "destroy">>>(component: T) => T & LifecycleComponent;
522
296
 
523
297
 
524
298
  declare enum POSITIONS {
@@ -560,43 +334,179 @@ interface PositionComponent extends BaseComponent {
560
334
  */
561
335
  declare const withPosition: <T extends PositionConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C & PositionComponent;
562
336
 
563
- /** Configuration for variant feature */
564
- interface VariantConfig {
565
- variant?: string;
337
+ /** Ripple configuration interface */
338
+ interface RippleConfig {
339
+ /** How long, in milliseconds, a released wave lingers before it is removed */
340
+ duration?: number;
341
+ }
342
+
343
+ /** Ripple controller interface */
344
+ interface RippleController {
345
+ /**
346
+ * Mounts ripple effect to an element
347
+ * @param element
348
+ */
349
+ mount: (element: HTMLElement) => void;
350
+ /**
351
+ * Unmounts ripple effect from an element
352
+ * @param element
353
+ */
354
+ unmount: (element: HTMLElement) => void;
355
+ }
356
+
357
+ /** Configuration for ripple feature */
358
+ interface RippleFeatureConfig {
359
+ ripple?: boolean;
360
+ rippleConfig?: RippleConfig;
361
+ }
362
+
363
+ /** Component with ripple capabilities */
364
+ interface RippleComponent extends BaseComponent {
365
+ ripple: RippleController;
366
+ }
367
+
368
+ declare const createRipple: (config?: RippleConfig) => RippleController;
369
+
370
+ /**
371
+ * Adds ripple effect functionality to a component
372
+ * @param config
373
+ */
374
+ declare const withRipple: <T extends RippleFeatureConfig & object>(config: T) => <C extends ElementComponent & Partial<LifecycleComponent>>(component: C) => C & RippleComponent;
375
+
376
+ /** Configuration for size feature */
377
+ interface SizeConfig {
378
+ size?: string;
566
379
  prefix?: string;
567
380
  componentName?: string;
568
381
  }
569
382
 
570
383
  /**
571
- * Adds a variant class to a component
384
+ * Adds a size class to a component
572
385
  * @param config
573
386
  */
574
- declare const withVariant: <T extends VariantConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C;
387
+ declare const withSize: <T extends SizeConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C;
388
+
389
+ /** Configuration for style feature */
390
+ interface StyleConfig {
391
+ variant?: string;
392
+ size?: string;
393
+ }
575
394
 
395
+ /**
396
+ * Adds style classes to a component based on configuration
397
+ * @param config
398
+ */
399
+ declare const withStyle: <T extends StyleConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C;
576
400
 
577
- interface BadgeConfig {
578
-
579
- badge?: string | number;
580
-
581
- badgeConfig?: {
582
- variant?: string;
583
- color?: string;
584
- size?: string;
585
- position?: string;
586
- max?: number;
587
- };
588
-
401
+ /** Configuration for text input feature */
402
+ interface TextInputConfig {
403
+ /** Input type (text, password, etc.) */
404
+ type?: string;
405
+ /** Whether to use textarea instead of input */
406
+ multiline?: boolean;
407
+ /** Input name attribute */
408
+ name?: string;
409
+ /** Whether input is required */
410
+ required?: boolean;
411
+ /** Whether input is disabled */
412
+ disabled?: boolean;
413
+ /** Maximum allowed length */
414
+ maxLength?: number;
415
+ /** Input validation pattern */
416
+ pattern?: string;
417
+ /** Autocomplete setting */
418
+ autocomplete?: string;
419
+ /** Virtual keyboard to show for the input (`inputmode`) */
420
+ inputMode?: string;
421
+ /** The virtual keyboard's Enter key label (`enterkeyhint`) */
422
+ enterKeyHint?: string;
423
+ /** Initial input value */
424
+ value?: string;
425
+ /** Placeholder attribute */
426
+ placeholder?: string;
427
+ /** Accessible name for the native input or textarea. */
428
+ ariaLabel?: string;
429
+ /** Whether input is readonly */
430
+ readonly?: boolean;
431
+ }
432
+
433
+ /** What withTextInput adds to a component. */
434
+ interface TextInputFeature {
435
+ /** Input element */
436
+ input: HTMLInputElement | HTMLTextAreaElement;
437
+ /**
438
+ * Sets the input value
439
+ * @param value
440
+ */
441
+ setValue(value: string): this;
442
+ /** Gets the current input value */
443
+ getValue: () => string;
444
+ /**
445
+ * Sets an attribute on the input
446
+ * @param name
447
+ * @param value
448
+ */
449
+ setAttribute(name: string, value: string): this;
450
+ /**
451
+ * Gets an attribute from the input
452
+ * @param name
453
+ */
454
+ getAttribute(name: string): string | null;
455
+ /**
456
+ * Removes an attribute from the input
457
+ * @param name
458
+ */
459
+ removeAttribute(name: string): this;
460
+ /** Event emission method if available */
461
+ emit?(event: string, data: unknown): this;
462
+ }
463
+
464
+ /** Component with text input element and related methods */
465
+ interface TextInputComponent extends ElementComponent, TextInputFeature {
466
+ }
467
+
468
+ /**
469
+ * Enhances a component with text input functionality
470
+ * @param config
471
+ */
472
+ declare const withTextInput: <T extends TextInputConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & TextInputFeature;
473
+
474
+ /** Configuration for text label feature */
475
+ interface TextLabelConfig {
476
+ /** Label text */
477
+ /** The label: text, or a node placed inside the label element (the web components pass a `<slot>` so the page's content is the label). */
478
+ label?: string | Node;
479
+ /** Label position ('start' or 'end') */
480
+ labelPosition?: "start" | "end";
481
+ /** CSS class prefix */
589
482
  prefix?: string;
483
+ /** Component name for class generation */
484
+ componentName?: string;
590
485
  }
591
486
 
592
-
593
- interface BadgeComponent extends BaseComponent {
594
-
595
- badge?: Badge;
487
+ /** Label manager interface */
488
+ interface LabelManager {
489
+ /**
490
+ * Sets the label text
491
+ * @param text
492
+ */
493
+ setText: (text: string) => LabelManager;
494
+ /** Gets the current label text */
495
+ getText: () => string;
496
+ /** Gets the label element */
497
+ getElement: () => HTMLElement;
596
498
  }
597
499
 
500
+ /** Component with label capabilities */
501
+ interface LabelComponent extends BaseComponent {
502
+ label: LabelManager;
503
+ }
598
504
 
599
- declare const withBadge: <T extends BadgeConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C & BadgeComponent;
505
+ /**
506
+ * Adds a text label to a component
507
+ * @param config
508
+ */
509
+ declare const withTextLabel: <T extends TextLabelConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & LabelComponent;
600
510
 
601
511
  /** Configuration for throttled event handlers */
602
512
  interface ThrottleConfig {
@@ -637,101 +547,191 @@ interface ThrottleComponent extends BaseComponent {
637
547
  */
638
548
  declare const withThrottle: <T extends ThrottleConfig & object>(config?: T) => <C extends ElementComponent>(component: C) => C & ThrottleComponent;
639
549
 
640
- /** Configuration for size feature */
641
- interface SizeConfig {
642
- size?: string;
550
+ /** Configuration for track feature */
551
+ interface TrackConfig {
552
+ /** CSS class prefix */
553
+ prefix: string;
554
+ /** Component name for class generation */
555
+ componentName: string;
556
+ /** Custom icon HTML or 'none' */
557
+ icon?: string;
558
+ /** Icon HTML shown in the unselected handle, which then grows to 24dp: M3's "icon on selected and unselected switch" configuration. */
559
+ unselectedIcon?: string;
560
+ /** When true, the thumb graphic is `aria-hidden`. */
561
+ controlLabelOnly?: boolean;
562
+ }
563
+
564
+ /** Component with track and thumb elements */
565
+ interface TrackComponent extends BaseComponent {
566
+ /** Track element */
567
+ track: HTMLElement;
568
+ /** Thumb element */
569
+ thumb: HTMLElement;
570
+ }
571
+
572
+ /**
573
+ * Adds track and thumb elements to a component
574
+ * @param config
575
+ */
576
+ declare const withTrack: <T extends TrackConfig>(config: T) => <C extends ElementComponent>(component: C) => C & TrackComponent;
577
+
578
+ /** Configuration for variant feature */
579
+ interface VariantConfig {
580
+ variant?: string;
643
581
  prefix?: string;
644
582
  componentName?: string;
645
583
  }
646
584
 
647
585
  /**
648
- * Adds a size class to a component
586
+ * Adds a variant class to a component
649
587
  * @param config
650
588
  */
651
- declare const withSize: <T extends SizeConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C;
589
+ declare const withVariant: <T extends VariantConfig & object>(config: T) => <C extends ElementComponent>(component: C) => C;
652
590
 
653
- /** Ripple configuration interface */
654
- interface RippleConfig {
655
- /** How long, in milliseconds, a released wave lingers before it is removed */
656
- duration?: number;
591
+ /** Event manager interface */
592
+ interface EnhancedEventManager {
593
+ /** Add an event listener */
594
+ on: (event: string, handler: Function) => EnhancedEventManager;
595
+ /** Remove an event listener */
596
+ off: (event: string, handler: Function) => EnhancedEventManager;
597
+ /** Add multiple event listeners at once */
598
+ addListeners: (listeners: Record<string, Function>) => EnhancedEventManager;
599
+ /** Remove multiple event listeners at once */
600
+ removeListeners: (listeners: Record<string, Function>) => EnhancedEventManager;
601
+ /** One-time event handler */
602
+ once: (event: string, handler: Function) => EnhancedEventManager;
603
+ /** Clean up all event listeners */
604
+ destroy: () => void;
657
605
  }
658
606
 
659
- /** Ripple controller interface */
660
- interface RippleController {
661
- /**
662
- * Mounts ripple effect to an element
663
- * @param element
607
+ /** Component with enhanced event capabilities */
608
+ interface EnhancedEventComponent extends BaseComponent {
609
+ events: EnhancedEventManager;
610
+ on(event: string, handler: Function): this;
611
+ off(event: string, handler: Function): this;
612
+ }
613
+
614
+ /**
615
+ * Adds enhanced event handling capabilities to a component
616
+ * @param target
664
617
  */
665
- mount: (element: HTMLElement) => void;
666
- /**
667
- * Unmounts ripple effect from an element
668
- * @param element
618
+ declare const withEnhancedEvents: (target?: HTMLElement) => <C extends ElementComponent>(component: C) => C & EnhancedEventComponent;
619
+ /**
620
+ * Performs left-to-right function composition.
621
+ * @param fns
669
622
  */
670
- unmount: (element: HTMLElement) => void;
671
- }
623
+ declare function pipe<A, B>(f1: (arg: A) => B): (x: A) => B;
672
624
 
673
- /** Configuration for ripple feature */
674
- interface RippleFeatureConfig {
675
- ripple?: boolean;
676
- rippleConfig?: RippleConfig;
677
- }
625
+ declare function pipe<A, B, C>(f1: (arg: A) => B, f2: (arg: B) => C): (x: A) => C;
678
626
 
679
- /** Component with ripple capabilities */
680
- interface RippleComponent extends BaseComponent {
681
- ripple: RippleController;
682
- }
627
+ declare function pipe<A, B, C, D>(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D): (x: A) => D;
683
628
 
684
- declare const createRipple: (config?: RippleConfig) => RippleController;
629
+ declare function pipe<A, B, C, D, E>(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E): (x: A) => E;
630
+
631
+ declare function pipe<A, B, C, D, E, F>(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F): (x: A) => F;
632
+
633
+ declare function pipe<A, B, C, D, E, F, G>(f1: (arg: A) => B, f2: (arg: B) => C, f3: (arg: C) => D, f4: (arg: D) => E, f5: (arg: E) => F, f6: (arg: F) => G): (x: A) => G;
634
+
635
+ declare function pipe<A, B, C, D, E, F, G, H>(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): (x: A) => H;
636
+
637
+ declare function pipe<A, B, C, D, E, F, G, H, I>(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): (x: A) => I;
638
+
639
+ declare function pipe<A, B, C, D, E, F, G, H, I, J>(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): (x: A) => J;
640
+
641
+ declare function pipe<A, B, C, D, E, F, G, H, I, J, K>(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): (x: A) => K;
642
+
643
+ declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L>(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): (x: A) => L;
644
+
645
+ declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M>(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): (x: A) => M;
646
+
647
+ declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N>(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): (x: A) => N;
648
+
649
+ declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(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): (x: A) => O;
650
+
651
+ declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(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): (x: A) => P;
652
+
653
+ declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(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): (x: A) => Q;
654
+
655
+ declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(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): (x: A) => R;
656
+
657
+ declare function pipe<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(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): (x: A) => S;
658
+
659
+ 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;
660
+
661
+ 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;
662
+
663
+ declare function pipe<T>(...fns: Array<(arg: T) => T>): (x: T) => T;
685
664
 
686
665
  /**
687
- * Adds ripple effect functionality to a component
688
- * @param config
666
+ * Performs right-to-left function composition.
667
+ * @param fns
689
668
  */
690
- declare const withRipple: <T extends RippleFeatureConfig & object>(config: T) => <C extends ElementComponent & Partial<LifecycleComponent>>(component: C) => C & RippleComponent;
669
+ declare function compose<A, B>(f1: (arg: A) => B): (x: A) => B;
691
670
 
671
+ declare function compose<A, B, C>(f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => C;
692
672
 
693
- interface ComponentManagers {
694
- events?: {
673
+ declare function compose<A, B, C, D>(f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => D;
674
+
675
+ declare function compose<A, B, C, D, E>(f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => E;
676
+
677
+ declare function compose<A, B, C, D, E, F>(f5: (arg: E) => F, f4: (arg: D) => E, f3: (arg: C) => D, f2: (arg: B) => C, f1: (arg: A) => B): (x: A) => F;
678
+
679
+ declare function compose<A, B, C, D, E, F, G>(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) => G;
680
+
681
+ declare function compose<A, B, C, D, E, F, G, H>(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) => H;
682
+
683
+ declare function compose<A, B, C, D, E, F, G, H, I>(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) => I;
684
+
685
+ declare function compose<A, B, C, D, E, F, G, H, I, J>(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) => J;
686
+
687
+ declare function compose<A, B, C, D, E, F, G, H, I, J, K>(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) => K;
688
+
689
+ declare function compose<A, B, C, D, E, F, G, H, I, J, K, L>(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) => L;
690
+
691
+ declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M>(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) => M;
692
+
693
+ declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N>(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) => N;
694
+
695
+ declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>(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) => O;
696
+
697
+ declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>(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) => P;
698
+
699
+ declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q>(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) => Q;
700
+
701
+ declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R>(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) => R;
702
+
703
+ declare function compose<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S>(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) => S;
704
+
705
+ 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;
706
+
707
+ 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;
708
+
709
+ declare function compose<T>(...fns: Array<(arg: T) => T>): (x: T) => T;
710
+
711
+ /**
712
+ * Creates a function that applies transformations to an object with shared context.
713
+ * @param transformers
714
+ */
715
+ declare const transform: <T, C = Record<string, unknown>>(...transformers: Array<(obj: T, context: C) => Partial<T>>) => (obj: T, context?: C) => T;
716
+
717
+ /** Interface for components with lifecycle */
718
+ interface ComponentWithLifecycle extends ElementComponent {
719
+ lifecycle: {
695
720
  destroy: () => void;
721
+ [key: string]: unknown;
696
722
  };
697
- text?: {
698
- getElement: () => HTMLElement | null;
699
- };
700
- icon?: {
701
- getElement: () => HTMLElement | null;
702
- };
703
- [key: string]: unknown;
704
723
  }
705
724
 
706
- /** Lifecycle methods interface */
707
- interface Lifecycle {
708
- /**
709
- * Registers a handler for mount event
710
- * @param handler
711
- */
712
- onMount: (handler: () => void) => () => void;
713
- /**
714
- * Registers a handler for unmount event
715
- * @param handler
716
- */
717
- onUnmount: (handler: () => void) => () => void;
718
- /** Mounts the component */
719
- mount: () => void;
720
- /** Unmounts the component */
721
- unmount: () => void;
722
- /** Checks if component is mounted */
723
- isMounted: () => boolean;
724
- /** Destroys the component */
725
- destroy: () => void;
725
+ /** Interface for components with emit method */
726
+ interface ComponentWithEmit extends ElementComponent {
727
+ emit: (event: string, data: unknown) => unknown;
726
728
  }
727
729
 
728
- /** Component with lifecycle capabilities */
729
- interface LifecycleComponent extends BaseComponent {
730
- lifecycle: Lifecycle;
731
- }
730
+ /** Type guard to check if component has lifecycle */
731
+ declare function hasLifecycle(component: object): component is ComponentWithLifecycle;
732
732
 
733
- /** Adds lifecycle management to a component */
734
- declare const withLifecycle: () => <T extends BaseComponent & Partial<Pick<ElementComponent, "element" | "destroy">>>(component: T) => T & LifecycleComponent;
733
+ /** Type guard to check if component has emit method */
734
+ declare function hasEmit(component: object): component is ComponentWithEmit;
735
735
  export type { CheckableComponent, CheckableManager, Component, ComponentWithEmit, ComponentWithLifecycle, DebounceComponent, DebounceConfig, DisabledComponent, DisabledManager, EnhancedEventComponent, EventComponent, InputComponent, LabelComponent, LabelManager, Lifecycle, LifecycleComponent, RippleComponent, TextInputComponent, ThrottleComponent, ThrottleConfig, TrackComponent };
736
736
  export { compose, createComponent, hasEmit, hasLifecycle, pipe, transform, withCheckable, withDebounce, withDisabled, withEnhancedEvents, withEvents, withInput, withLifecycle, withPosition, withRipple, withSize, withStyle, withTextInput, withTextLabel, withThrottle, withTrack, withVariant };
737
737
  export type { BaseComponent, BaseConfig, ElementComponent, TouchState, WithElementOptions } from "./component.js";