@tachui/core 0.7.1-alpha → 0.8.0-alpha

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 (265) hide show
  1. package/README.md +2 -2
  2. package/dist/bundles/common.d.ts +1 -1
  3. package/dist/bundles/common.d.ts.map +1 -1
  4. package/dist/bundles/minimal.d.ts +2 -16
  5. package/dist/bundles/minimal.d.ts.map +1 -1
  6. package/dist/bundles/production-minimal.d.ts +2 -16
  7. package/dist/bundles/production-minimal.d.ts.map +1 -1
  8. package/dist/common.js +403 -827
  9. package/dist/compiler/advanced-parser.d.ts.map +1 -1
  10. package/dist/compiler/index.js +14 -8
  11. package/dist/component-XAzF1xqs.js +487 -0
  12. package/dist/component-base-x2XmHFjy.js +255 -0
  13. package/dist/components/index.d.ts +4 -38
  14. package/dist/components/index.d.ts.map +1 -1
  15. package/dist/components/index.js +7 -4167
  16. package/dist/components/wrapper.d.ts +5 -152
  17. package/dist/components/wrapper.d.ts.map +1 -1
  18. package/dist/concatenated-component-ByPl3_FF.js +2933 -0
  19. package/dist/constants/index.d.ts +1 -1
  20. package/dist/constants/layout.d.ts +47 -4
  21. package/dist/constants/layout.d.ts.map +1 -1
  22. package/dist/constants/layout.js +84 -0
  23. package/dist/css-classes/index.js +176 -0
  24. package/dist/{dom-bridge-Cx-s6Ihx.js → dom-bridge-CAa1N2zX.js} +28 -28
  25. package/dist/{effect-CytAc9em.js → effect-B9Knft0b.js} +3 -3
  26. package/dist/essential.js +395 -825
  27. package/dist/index-DCPJFUm9.js +1407 -0
  28. package/dist/index-DIvMCJQO.js +268 -0
  29. package/dist/index-vdsiw6gQ.js +777 -0
  30. package/dist/index.d.ts +9 -9
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +395 -825
  33. package/dist/minimal-prod.js +101 -155
  34. package/dist/minimal.js +104 -170
  35. package/dist/modifiers/background.d.ts +41 -11
  36. package/dist/modifiers/background.d.ts.map +1 -1
  37. package/dist/modifiers/base.d.ts +6 -33
  38. package/dist/modifiers/base.d.ts.map +1 -1
  39. package/dist/modifiers/base.js +487 -0
  40. package/dist/modifiers/builder.d.ts +103 -195
  41. package/dist/modifiers/builder.d.ts.map +1 -1
  42. package/dist/modifiers/builder.js +9 -0
  43. package/dist/modifiers/core.d.ts +9 -401
  44. package/dist/modifiers/core.d.ts.map +1 -1
  45. package/dist/modifiers/{utils.d.ts → factories.d.ts} +18 -5
  46. package/dist/modifiers/factories.d.ts.map +1 -0
  47. package/dist/modifiers/index.d.ts +8 -52
  48. package/dist/modifiers/index.d.ts.map +1 -1
  49. package/dist/modifiers/index.js +38 -0
  50. package/dist/modifiers/presets.d.ts +368 -0
  51. package/dist/modifiers/presets.d.ts.map +1 -0
  52. package/dist/modifiers/registry.js +10 -0
  53. package/dist/modifiers/types.d.ts +39 -211
  54. package/dist/modifiers/types.d.ts.map +1 -1
  55. package/dist/modifiers/types.js +4 -0
  56. package/dist/performance-optimizer-stub-CtfXUwl4.js +38 -0
  57. package/dist/plugins/index.d.ts +5 -6
  58. package/dist/plugins/index.d.ts.map +1 -1
  59. package/dist/plugins/index.js +147 -297
  60. package/dist/plugins/simplified-index.d.ts +5 -6
  61. package/dist/plugins/simplified-index.d.ts.map +1 -1
  62. package/dist/production-minimal-BY_gMc-l.js +2532 -0
  63. package/dist/reactive/index.js +96 -95
  64. package/dist/reactive/types.js +4 -0
  65. package/dist/runtime/dom-bridge.js +5 -5
  66. package/dist/runtime/element-override.d.ts.map +1 -1
  67. package/dist/runtime/index.d.ts +0 -7
  68. package/dist/runtime/index.d.ts.map +1 -1
  69. package/dist/runtime/renderer.d.ts.map +1 -1
  70. package/dist/runtime/renderer.js +7 -8
  71. package/dist/runtime/semantic-role-manager.d.ts.map +1 -1
  72. package/dist/runtime/types.js +1 -0
  73. package/dist/{scheduler-7SvC3a21.js → scheduler-BKeqwrYE.js} +130 -130
  74. package/dist/validation/build-time-stub.d.ts +33 -0
  75. package/dist/validation/build-time-stub.d.ts.map +1 -0
  76. package/dist/validation/debug-tools-stub.d.ts +67 -0
  77. package/dist/validation/debug-tools-stub.d.ts.map +1 -0
  78. package/dist/validation/index.d.ts +23 -78
  79. package/dist/validation/index.d.ts.map +1 -1
  80. package/dist/validation/index.js +609 -6470
  81. package/dist/validation/lifecycle-validation.d.ts.map +1 -1
  82. package/dist/validation/performance-optimizer-stub.d.ts +50 -0
  83. package/dist/validation/performance-optimizer-stub.d.ts.map +1 -0
  84. package/dist/validation/plugin-registration.d.ts +5 -1
  85. package/dist/validation/plugin-registration.d.ts.map +1 -1
  86. package/dist/validation/production-bypass-core.d.ts +69 -0
  87. package/dist/validation/production-bypass-core.d.ts.map +1 -0
  88. package/package.json +41 -5
  89. package/dist/ScrollView-h-6wYMAm.js +0 -515
  90. package/dist/Spacer-BbteDQ9I.js +0 -5337
  91. package/dist/binding-CmdpowkI.js +0 -2276
  92. package/dist/components/BasicInput.d.ts +0 -116
  93. package/dist/components/BasicInput.d.ts.map +0 -1
  94. package/dist/components/Button.d.ts +0 -252
  95. package/dist/components/Button.d.ts.map +0 -1
  96. package/dist/components/Divider.d.ts +0 -141
  97. package/dist/components/Divider.d.ts.map +0 -1
  98. package/dist/components/EnhancedLink.d.ts +0 -365
  99. package/dist/components/EnhancedLink.d.ts.map +0 -1
  100. package/dist/components/Form.d.ts +0 -141
  101. package/dist/components/Form.d.ts.map +0 -1
  102. package/dist/components/Grid.d.ts +0 -698
  103. package/dist/components/Grid.d.ts.map +0 -1
  104. package/dist/components/GridResponsive.d.ts +0 -214
  105. package/dist/components/GridResponsive.d.ts.map +0 -1
  106. package/dist/components/Image.d.ts +0 -162
  107. package/dist/components/Image.d.ts.map +0 -1
  108. package/dist/components/List.d.ts +0 -287
  109. package/dist/components/List.d.ts.map +0 -1
  110. package/dist/components/Menu.d.ts +0 -159
  111. package/dist/components/Menu.d.ts.map +0 -1
  112. package/dist/components/Picker.d.ts +0 -153
  113. package/dist/components/Picker.d.ts.map +0 -1
  114. package/dist/components/ScrollView.d.ts +0 -222
  115. package/dist/components/ScrollView.d.ts.map +0 -1
  116. package/dist/components/Section.d.ts +0 -153
  117. package/dist/components/Section.d.ts.map +0 -1
  118. package/dist/components/Show.d.ts +0 -64
  119. package/dist/components/Show.d.ts.map +0 -1
  120. package/dist/components/Spacer.d.ts +0 -35
  121. package/dist/components/Spacer.d.ts.map +0 -1
  122. package/dist/components/Text.d.ts +0 -242
  123. package/dist/components/Text.d.ts.map +0 -1
  124. package/dist/components/Toggle.d.ts +0 -207
  125. package/dist/components/Toggle.d.ts.map +0 -1
  126. package/dist/concatenated-component-DPcl2TEO.js +0 -6779
  127. package/dist/context--zQFIImS.js +0 -283
  128. package/dist/debug/index.d.ts +0 -61
  129. package/dist/debug/index.d.ts.map +0 -1
  130. package/dist/debug.js +0 -178
  131. package/dist/developer-experience/enhanced-errors.d.ts +0 -128
  132. package/dist/developer-experience/enhanced-errors.d.ts.map +0 -1
  133. package/dist/developer-experience/enhanced-types.d.ts +0 -281
  134. package/dist/developer-experience/enhanced-types.d.ts.map +0 -1
  135. package/dist/developer-experience/index.d.ts +0 -44
  136. package/dist/developer-experience/index.d.ts.map +0 -1
  137. package/dist/index-Nfi2SBQh.js +0 -3268
  138. package/dist/modifiers/attributes.d.ts +0 -203
  139. package/dist/modifiers/attributes.d.ts.map +0 -1
  140. package/dist/modifiers/backdrop.d.ts +0 -59
  141. package/dist/modifiers/backdrop.d.ts.map +0 -1
  142. package/dist/modifiers/border.d.ts +0 -217
  143. package/dist/modifiers/border.d.ts.map +0 -1
  144. package/dist/modifiers/effects.d.ts +0 -159
  145. package/dist/modifiers/effects.d.ts.map +0 -1
  146. package/dist/modifiers/elements.d.ts +0 -240
  147. package/dist/modifiers/elements.d.ts.map +0 -1
  148. package/dist/modifiers/filters.d.ts +0 -275
  149. package/dist/modifiers/filters.d.ts.map +0 -1
  150. package/dist/modifiers/flexbox.d.ts +0 -82
  151. package/dist/modifiers/flexbox.d.ts.map +0 -1
  152. package/dist/modifiers/font.d.ts +0 -71
  153. package/dist/modifiers/font.d.ts.map +0 -1
  154. package/dist/modifiers/grid.d.ts +0 -92
  155. package/dist/modifiers/grid.d.ts.map +0 -1
  156. package/dist/modifiers/margin.d.ts +0 -128
  157. package/dist/modifiers/margin.d.ts.map +0 -1
  158. package/dist/modifiers/padding.d.ts +0 -204
  159. package/dist/modifiers/padding.d.ts.map +0 -1
  160. package/dist/modifiers/responsive/advanced-utilities.d.ts +0 -118
  161. package/dist/modifiers/responsive/advanced-utilities.d.ts.map +0 -1
  162. package/dist/modifiers/responsive/breakpoints.d.ts +0 -81
  163. package/dist/modifiers/responsive/breakpoints.d.ts.map +0 -1
  164. package/dist/modifiers/responsive/css-generator.d.ts +0 -100
  165. package/dist/modifiers/responsive/css-generator.d.ts.map +0 -1
  166. package/dist/modifiers/responsive/dev-tools.d.ts +0 -107
  167. package/dist/modifiers/responsive/dev-tools.d.ts.map +0 -1
  168. package/dist/modifiers/responsive/index.d.ts +0 -29
  169. package/dist/modifiers/responsive/index.d.ts.map +0 -1
  170. package/dist/modifiers/responsive/layout-patterns.d.ts +0 -230
  171. package/dist/modifiers/responsive/layout-patterns.d.ts.map +0 -1
  172. package/dist/modifiers/responsive/performance.d.ts +0 -130
  173. package/dist/modifiers/responsive/performance.d.ts.map +0 -1
  174. package/dist/modifiers/responsive/responsive-builder.d.ts +0 -133
  175. package/dist/modifiers/responsive/responsive-builder.d.ts.map +0 -1
  176. package/dist/modifiers/responsive/responsive-modifier.d.ts +0 -123
  177. package/dist/modifiers/responsive/responsive-modifier.d.ts.map +0 -1
  178. package/dist/modifiers/responsive/types.d.ts +0 -183
  179. package/dist/modifiers/responsive/types.d.ts.map +0 -1
  180. package/dist/modifiers/responsive/utilities.d.ts +0 -149
  181. package/dist/modifiers/responsive/utilities.d.ts.map +0 -1
  182. package/dist/modifiers/scroll.d.ts +0 -143
  183. package/dist/modifiers/scroll.d.ts.map +0 -1
  184. package/dist/modifiers/shadows.d.ts +0 -114
  185. package/dist/modifiers/shadows.d.ts.map +0 -1
  186. package/dist/modifiers/size.d.ts +0 -113
  187. package/dist/modifiers/size.d.ts.map +0 -1
  188. package/dist/modifiers/text.d.ts +0 -147
  189. package/dist/modifiers/text.d.ts.map +0 -1
  190. package/dist/modifiers/transformations.d.ts +0 -329
  191. package/dist/modifiers/transformations.d.ts.map +0 -1
  192. package/dist/modifiers/transitions.d.ts +0 -98
  193. package/dist/modifiers/transitions.d.ts.map +0 -1
  194. package/dist/modifiers/typography.d.ts +0 -192
  195. package/dist/modifiers/typography.d.ts.map +0 -1
  196. package/dist/modifiers/utility.d.ts +0 -69
  197. package/dist/modifiers/utility.d.ts.map +0 -1
  198. package/dist/modifiers/utils.d.ts.map +0 -1
  199. package/dist/plugins/simplified-error-handler.d.ts +0 -83
  200. package/dist/plugins/simplified-error-handler.d.ts.map +0 -1
  201. package/dist/runtime/dev-tools.d.ts +0 -240
  202. package/dist/runtime/dev-tools.d.ts.map +0 -1
  203. package/dist/runtime/development-warnings.d.ts +0 -42
  204. package/dist/runtime/development-warnings.d.ts.map +0 -1
  205. package/dist/runtime/error-boundary.d.ts +0 -302
  206. package/dist/runtime/error-boundary.d.ts.map +0 -1
  207. package/dist/runtime/error-recovery.d.ts +0 -267
  208. package/dist/runtime/error-recovery.d.ts.map +0 -1
  209. package/dist/runtime/error-reporting.d.ts +0 -287
  210. package/dist/runtime/error-reporting.d.ts.map +0 -1
  211. package/dist/runtime/error-utils.d.ts +0 -204
  212. package/dist/runtime/error-utils.d.ts.map +0 -1
  213. package/dist/runtime/performance.d.ts +0 -217
  214. package/dist/runtime/performance.d.ts.map +0 -1
  215. package/dist/sui-compat.d.ts +0 -110
  216. package/dist/sui-compat.d.ts.map +0 -1
  217. package/dist/validation/advanced-debugging.d.ts +0 -319
  218. package/dist/validation/advanced-debugging.d.ts.map +0 -1
  219. package/dist/validation/build-time/detection.d.ts +0 -32
  220. package/dist/validation/build-time/detection.d.ts.map +0 -1
  221. package/dist/validation/build-time/index.d.ts +0 -84
  222. package/dist/validation/build-time/index.d.ts.map +0 -1
  223. package/dist/validation/build-time/plugins.d.ts +0 -75
  224. package/dist/validation/build-time/plugins.d.ts.map +0 -1
  225. package/dist/validation/build-time/rules.d.ts +0 -73
  226. package/dist/validation/build-time/rules.d.ts.map +0 -1
  227. package/dist/validation/build-time/transformer.d.ts +0 -23
  228. package/dist/validation/build-time/transformer.d.ts.map +0 -1
  229. package/dist/validation/build-time/types.d.ts +0 -212
  230. package/dist/validation/build-time/types.d.ts.map +0 -1
  231. package/dist/validation/comprehensive.d.ts +0 -160
  232. package/dist/validation/comprehensive.d.ts.map +0 -1
  233. package/dist/validation/debug-tools.d.ts +0 -251
  234. package/dist/validation/debug-tools.d.ts.map +0 -1
  235. package/dist/validation/developer-experience.d.ts +0 -243
  236. package/dist/validation/developer-experience.d.ts.map +0 -1
  237. package/dist/validation/documentation-integration.d.ts +0 -269
  238. package/dist/validation/documentation-integration.d.ts.map +0 -1
  239. package/dist/validation/enhanced-runtime.d.ts +0 -279
  240. package/dist/validation/enhanced-runtime.d.ts.map +0 -1
  241. package/dist/validation/error-reporting.d.ts +0 -186
  242. package/dist/validation/error-reporting.d.ts.map +0 -1
  243. package/dist/validation/ide-integration.d.ts +0 -328
  244. package/dist/validation/ide-integration.d.ts.map +0 -1
  245. package/dist/validation/performance-optimizer.d.ts +0 -218
  246. package/dist/validation/performance-optimizer.d.ts.map +0 -1
  247. package/dist/validation/production-bypass.d.ts +0 -175
  248. package/dist/validation/production-bypass.d.ts.map +0 -1
  249. package/dist/validation/simple.d.ts +0 -111
  250. package/dist/validation/simple.d.ts.map +0 -1
  251. package/dist/viewport/adapters/web-adapter.d.ts +0 -227
  252. package/dist/viewport/adapters/web-adapter.d.ts.map +0 -1
  253. package/dist/viewport/components.d.ts +0 -131
  254. package/dist/viewport/components.d.ts.map +0 -1
  255. package/dist/viewport/environment.d.ts +0 -75
  256. package/dist/viewport/environment.d.ts.map +0 -1
  257. package/dist/viewport/index.d.ts +0 -138
  258. package/dist/viewport/index.d.ts.map +0 -1
  259. package/dist/viewport/index.js +0 -2085
  260. package/dist/viewport/platform-detection.d.ts +0 -59
  261. package/dist/viewport/platform-detection.d.ts.map +0 -1
  262. package/dist/viewport/types.d.ts +0 -301
  263. package/dist/viewport/types.d.ts.map +0 -1
  264. package/dist/viewport/viewport-manager.d.ts +0 -118
  265. package/dist/viewport/viewport-manager.d.ts.map +0 -1
@@ -0,0 +1,268 @@
1
+ import { BaseModifier as C } from "./modifiers/base.js";
2
+ import "./modifiers/types.js";
3
+ import "./concatenated-component-ByPl3_FF.js";
4
+ import { J as m } from "./scheduler-BKeqwrYE.js";
5
+ import { c as d } from "./effect-B9Knft0b.js";
6
+ var g = Object.defineProperty, v = (e, t, s) => t in e ? g(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s, M = (e, t, s) => v(e, typeof t != "symbol" ? t + "" : t, s);
7
+ const b = {
8
+ /**
9
+ * Check if a value is a reactive signal
10
+ */
11
+ isReactive(e) {
12
+ return m(e);
13
+ },
14
+ /**
15
+ * Resolve a potentially reactive value
16
+ */
17
+ resolveValue(e) {
18
+ return m(e) ? e() : e;
19
+ },
20
+ /**
21
+ * Create a reactive effect for a value
22
+ */
23
+ createReactiveEffect(e, t) {
24
+ if (m(e)) {
25
+ const s = d(() => {
26
+ const n = e();
27
+ t(n);
28
+ });
29
+ return () => s.dispose();
30
+ }
31
+ return null;
32
+ },
33
+ /**
34
+ * Merge modifier properties
35
+ */
36
+ mergeProperties(e, t) {
37
+ const s = { ...e };
38
+ for (const [n, o] of Object.entries(t))
39
+ o !== void 0 && (s[n] = o);
40
+ return s;
41
+ },
42
+ /**
43
+ * Convert a CSS property name to camelCase
44
+ */
45
+ toCamelCase(e) {
46
+ return e.replace(
47
+ /-([a-z])/g,
48
+ (t, s) => s.toUpperCase()
49
+ );
50
+ },
51
+ /**
52
+ * Convert a camelCase property to CSS kebab-case
53
+ */
54
+ toKebabCase(e) {
55
+ return e.replace(/([A-Z])/g, "-$1").toLowerCase();
56
+ },
57
+ /**
58
+ * Normalize a CSS value
59
+ */
60
+ normalizeCSSValue(e) {
61
+ return typeof e == "number" ? `${e}px` : typeof e == "string" ? e : String(e);
62
+ }
63
+ };
64
+ function c(e, t, s) {
65
+ class n extends C {
66
+ constructor() {
67
+ super(...arguments), M(this, "type", e), M(this, "priority", t);
68
+ }
69
+ apply(r, i) {
70
+ return s(r, i, this.properties);
71
+ }
72
+ }
73
+ return (o) => new n(o);
74
+ }
75
+ function j(e, t, s = 100) {
76
+ return c(e, s, (n, o, r) => {
77
+ if (o.element instanceof HTMLElement) {
78
+ const i = t(r);
79
+ Object.assign(o.element.style, i);
80
+ }
81
+ return n;
82
+ });
83
+ }
84
+ function A(e, t, s = 100) {
85
+ return () => c(e, s, (n, o) => (o.element instanceof HTMLElement && Object.assign(o.element.style, t), n))({});
86
+ }
87
+ function O(e, ...t) {
88
+ return console.warn("createComponentVariant is not yet implemented"), e;
89
+ }
90
+ function V(e, t = "combined", s = 999) {
91
+ return c(t, s, (n, o, r) => {
92
+ let i = n;
93
+ for (const p of e) {
94
+ const f = p.apply(i, o);
95
+ f && typeof f == "object" && "type" in f && (i = f);
96
+ }
97
+ return i;
98
+ })({});
99
+ }
100
+ function P(e, t) {
101
+ return c(
102
+ `conditional-${t.type}`,
103
+ t.priority,
104
+ (s, n, o) => {
105
+ if (b.resolveValue(e))
106
+ return t.apply(s, n);
107
+ if (m(e)) {
108
+ const i = d(() => {
109
+ const p = e();
110
+ n.element && p && t.apply(s, n);
111
+ });
112
+ if (!s.dispose)
113
+ s.dispose = () => i.dispose();
114
+ else {
115
+ const p = s.dispose;
116
+ s.dispose = () => {
117
+ i.dispose(), p();
118
+ };
119
+ }
120
+ }
121
+ return s;
122
+ }
123
+ )({});
124
+ }
125
+ function T(e, t) {
126
+ return c("state", 500, (s, n, o) => {
127
+ let r = s;
128
+ const i = (f) => {
129
+ const a = t[f] || [];
130
+ for (const y of a) {
131
+ const l = y.apply(r, n);
132
+ l && typeof l == "object" && "type" in l && (r = l);
133
+ }
134
+ };
135
+ i(e());
136
+ const p = d(() => {
137
+ const f = e();
138
+ i(f);
139
+ });
140
+ if (!s.dispose)
141
+ s.dispose = () => p.dispose();
142
+ else {
143
+ const f = s.dispose;
144
+ s.dispose = () => {
145
+ p.dispose(), f();
146
+ };
147
+ }
148
+ return r;
149
+ })({});
150
+ }
151
+ function z(e, t = []) {
152
+ return c("responsive", 100, (s, n, o) => {
153
+ let r = s;
154
+ const i = () => {
155
+ const a = window.innerWidth;
156
+ let y = t;
157
+ for (const [l, u] of Object.entries(e)) {
158
+ const w = parseInt(l);
159
+ a >= w && (y = u);
160
+ }
161
+ for (const l of y) {
162
+ const u = l.apply(r, n);
163
+ u && typeof u == "object" && "type" in u && (r = u);
164
+ }
165
+ };
166
+ i();
167
+ const p = () => i();
168
+ window.addEventListener("resize", p);
169
+ const f = () => window.removeEventListener("resize", p);
170
+ if (!s.dispose)
171
+ s.dispose = f;
172
+ else {
173
+ const a = s.dispose;
174
+ s.dispose = () => {
175
+ f(), a();
176
+ };
177
+ }
178
+ return r;
179
+ })({});
180
+ }
181
+ function D(e) {
182
+ return c("class", 50, (t, s, n) => {
183
+ if (!s.element) return t;
184
+ const o = (r) => {
185
+ const i = Array.isArray(r) ? r : r.split(" ").filter(Boolean);
186
+ s.element instanceof HTMLElement && s.element.classList.add(...i);
187
+ };
188
+ if (m(e)) {
189
+ let r = [];
190
+ const i = d(() => {
191
+ const p = e(), f = Array.isArray(p) ? p : p.split(" ").filter(Boolean);
192
+ s.element instanceof HTMLElement && (s.element.classList.remove(...r), s.element.classList.add(...f), r = f);
193
+ });
194
+ if (!t.dispose)
195
+ t.dispose = () => i.dispose();
196
+ else {
197
+ const p = t.dispose;
198
+ t.dispose = () => {
199
+ i.dispose(), p();
200
+ };
201
+ }
202
+ } else
203
+ o(e);
204
+ return t;
205
+ })({});
206
+ }
207
+ function H(e) {
208
+ return c("style", 200, (t, s, n) => {
209
+ if (!s.element) return t;
210
+ const o = (r) => {
211
+ if (s.element instanceof HTMLElement)
212
+ for (const [i, p] of Object.entries(r)) {
213
+ const f = b.toKebabCase(i), a = b.normalizeCSSValue(p);
214
+ s.element.style.setProperty(f, a);
215
+ }
216
+ };
217
+ if (m(e)) {
218
+ const r = d(() => {
219
+ const i = e();
220
+ o(i);
221
+ });
222
+ if (!t.dispose)
223
+ t.dispose = () => r.dispose();
224
+ else {
225
+ const i = t.dispose;
226
+ t.dispose = () => {
227
+ r.dispose(), i();
228
+ };
229
+ }
230
+ } else
231
+ o(e);
232
+ return t;
233
+ })({});
234
+ }
235
+ function R(e) {
236
+ return c("event", 300, (t, s, n) => {
237
+ if (!s.element) return t;
238
+ const o = [];
239
+ for (const [i, p] of Object.entries(e))
240
+ s.element.addEventListener(i, p), o.push(() => {
241
+ s.element?.removeEventListener(i, p);
242
+ });
243
+ const r = () => o.forEach((i) => i());
244
+ if (!t.dispose)
245
+ t.dispose = r;
246
+ else {
247
+ const i = t.dispose;
248
+ t.dispose = () => {
249
+ r(), i();
250
+ };
251
+ }
252
+ return t;
253
+ })({});
254
+ }
255
+ export {
256
+ V as a,
257
+ P as b,
258
+ D as c,
259
+ c as d,
260
+ j as e,
261
+ R as f,
262
+ H as g,
263
+ A as h,
264
+ O as i,
265
+ b as m,
266
+ z as r,
267
+ T as s
268
+ };