@tachui/core 0.7.0-alpha1 → 0.7.1-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 (947) hide show
  1. package/README.md +195 -0
  2. package/dist/ScrollView-h-6wYMAm.js +515 -0
  3. package/dist/Spacer-BbteDQ9I.js +5337 -0
  4. package/dist/binding-CmdpowkI.js +2276 -0
  5. package/dist/bundles/minimal.d.ts +30 -4
  6. package/dist/bundles/minimal.d.ts.map +1 -1
  7. package/dist/common.js +825 -954
  8. package/dist/compiler/index.js +1386 -10
  9. package/dist/components/index.js +4166 -101
  10. package/dist/concatenated-component-DPcl2TEO.js +6779 -0
  11. package/dist/{runtime/context.js → context--zQFIImS.js} +65 -71
  12. package/dist/debug.js +0 -1
  13. package/dist/dom-bridge-Cx-s6Ihx.js +406 -0
  14. package/dist/effect-CytAc9em.js +66 -0
  15. package/dist/essential.js +825 -954
  16. package/dist/index-Nfi2SBQh.js +3268 -0
  17. package/dist/index.js +825 -954
  18. package/dist/minimal-prod.js +162 -191
  19. package/dist/minimal.js +183 -957
  20. package/dist/modifiers/responsive/index.d.ts +10 -9
  21. package/dist/modifiers/responsive/index.d.ts.map +1 -1
  22. package/dist/plugins/index.js +543 -32
  23. package/dist/reactive/index.js +490 -93
  24. package/dist/runtime/dom-bridge.js +12 -239
  25. package/dist/runtime/renderer.js +8 -388
  26. package/dist/scheduler-7SvC3a21.js +814 -0
  27. package/dist/validation/index.js +6614 -198
  28. package/dist/viewport/index.js +2002 -83
  29. package/package.json +3 -4
  30. package/dist/assets/Asset.cjs +0 -2
  31. package/dist/assets/Asset.cjs.map +0 -1
  32. package/dist/assets/Asset.js +0 -9
  33. package/dist/assets/Asset.js.map +0 -1
  34. package/dist/assets/AssetCollection.cjs +0 -2
  35. package/dist/assets/AssetCollection.cjs.map +0 -1
  36. package/dist/assets/AssetCollection.js +0 -44
  37. package/dist/assets/AssetCollection.js.map +0 -1
  38. package/dist/assets/ColorAsset.cjs +0 -2
  39. package/dist/assets/ColorAsset.cjs.map +0 -1
  40. package/dist/assets/ColorAsset.js +0 -114
  41. package/dist/assets/ColorAsset.js.map +0 -1
  42. package/dist/assets/FontAsset.cjs +0 -9
  43. package/dist/assets/FontAsset.cjs.map +0 -1
  44. package/dist/assets/FontAsset.js +0 -173
  45. package/dist/assets/FontAsset.js.map +0 -1
  46. package/dist/assets/ImageAsset.cjs +0 -2
  47. package/dist/assets/ImageAsset.cjs.map +0 -1
  48. package/dist/assets/ImageAsset.js +0 -39
  49. package/dist/assets/ImageAsset.js.map +0 -1
  50. package/dist/assets/index.cjs +0 -2
  51. package/dist/assets/index.cjs.map +0 -1
  52. package/dist/assets/index.js +0 -119
  53. package/dist/assets/index.js.map +0 -1
  54. package/dist/common.cjs +0 -2
  55. package/dist/common.cjs.map +0 -1
  56. package/dist/common.js.map +0 -1
  57. package/dist/compiler/advanced-parser.cjs +0 -5
  58. package/dist/compiler/advanced-parser.cjs.map +0 -1
  59. package/dist/compiler/advanced-parser.js +0 -440
  60. package/dist/compiler/advanced-parser.js.map +0 -1
  61. package/dist/compiler/codegen.cjs +0 -6
  62. package/dist/compiler/codegen.cjs.map +0 -1
  63. package/dist/compiler/codegen.js +0 -241
  64. package/dist/compiler/codegen.js.map +0 -1
  65. package/dist/compiler/enhanced-codegen.cjs +0 -6
  66. package/dist/compiler/enhanced-codegen.cjs.map +0 -1
  67. package/dist/compiler/enhanced-codegen.js +0 -347
  68. package/dist/compiler/enhanced-codegen.js.map +0 -1
  69. package/dist/compiler/index.cjs +0 -2
  70. package/dist/compiler/index.cjs.map +0 -1
  71. package/dist/compiler/index.js.map +0 -1
  72. package/dist/compiler/parser.cjs +0 -5
  73. package/dist/compiler/parser.cjs.map +0 -1
  74. package/dist/compiler/parser.js +0 -275
  75. package/dist/compiler/parser.js.map +0 -1
  76. package/dist/compiler/plugin.cjs +0 -33
  77. package/dist/compiler/plugin.cjs.map +0 -1
  78. package/dist/compiler/plugin.js +0 -103
  79. package/dist/compiler/plugin.js.map +0 -1
  80. package/dist/components/BasicInput.cjs +0 -2
  81. package/dist/components/BasicInput.cjs.map +0 -1
  82. package/dist/components/BasicInput.js +0 -182
  83. package/dist/components/BasicInput.js.map +0 -1
  84. package/dist/components/Button.cjs +0 -7
  85. package/dist/components/Button.cjs.map +0 -1
  86. package/dist/components/Button.js +0 -408
  87. package/dist/components/Button.js.map +0 -1
  88. package/dist/components/Divider.cjs +0 -2
  89. package/dist/components/Divider.cjs.map +0 -1
  90. package/dist/components/Divider.js +0 -187
  91. package/dist/components/Divider.js.map +0 -1
  92. package/dist/components/EnhancedLink.cjs +0 -2
  93. package/dist/components/EnhancedLink.cjs.map +0 -1
  94. package/dist/components/EnhancedLink.js +0 -345
  95. package/dist/components/EnhancedLink.js.map +0 -1
  96. package/dist/components/Form.cjs +0 -2
  97. package/dist/components/Form.cjs.map +0 -1
  98. package/dist/components/Form.js +0 -244
  99. package/dist/components/Form.js.map +0 -1
  100. package/dist/components/Grid.cjs +0 -2
  101. package/dist/components/Grid.cjs.map +0 -1
  102. package/dist/components/Grid.js +0 -1045
  103. package/dist/components/Grid.js.map +0 -1
  104. package/dist/components/GridResponsive.cjs +0 -2
  105. package/dist/components/GridResponsive.cjs.map +0 -1
  106. package/dist/components/GridResponsive.js +0 -382
  107. package/dist/components/GridResponsive.js.map +0 -1
  108. package/dist/components/Image.cjs +0 -2
  109. package/dist/components/Image.cjs.map +0 -1
  110. package/dist/components/Image.js +0 -212
  111. package/dist/components/Image.js.map +0 -1
  112. package/dist/components/List.cjs +0 -2
  113. package/dist/components/List.cjs.map +0 -1
  114. package/dist/components/List.js +0 -561
  115. package/dist/components/List.js.map +0 -1
  116. package/dist/components/Menu.cjs +0 -2
  117. package/dist/components/Menu.cjs.map +0 -1
  118. package/dist/components/Menu.js +0 -443
  119. package/dist/components/Menu.js.map +0 -1
  120. package/dist/components/Picker.cjs +0 -2
  121. package/dist/components/Picker.cjs.map +0 -1
  122. package/dist/components/Picker.js +0 -478
  123. package/dist/components/Picker.js.map +0 -1
  124. package/dist/components/ScrollView.cjs +0 -6
  125. package/dist/components/ScrollView.cjs.map +0 -1
  126. package/dist/components/ScrollView.js +0 -363
  127. package/dist/components/ScrollView.js.map +0 -1
  128. package/dist/components/Section.cjs +0 -2
  129. package/dist/components/Section.cjs.map +0 -1
  130. package/dist/components/Section.js +0 -323
  131. package/dist/components/Section.js.map +0 -1
  132. package/dist/components/Show.cjs +0 -2
  133. package/dist/components/Show.cjs.map +0 -1
  134. package/dist/components/Show.js +0 -112
  135. package/dist/components/Show.js.map +0 -1
  136. package/dist/components/Spacer.cjs +0 -2
  137. package/dist/components/Spacer.cjs.map +0 -1
  138. package/dist/components/Spacer.js +0 -53
  139. package/dist/components/Spacer.js.map +0 -1
  140. package/dist/components/Text.cjs +0 -2
  141. package/dist/components/Text.cjs.map +0 -1
  142. package/dist/components/Text.js +0 -193
  143. package/dist/components/Text.js.map +0 -1
  144. package/dist/components/Toggle.cjs +0 -2
  145. package/dist/components/Toggle.cjs.map +0 -1
  146. package/dist/components/Toggle.js +0 -477
  147. package/dist/components/Toggle.js.map +0 -1
  148. package/dist/components/index.cjs +0 -2
  149. package/dist/components/index.cjs.map +0 -1
  150. package/dist/components/index.js.map +0 -1
  151. package/dist/components/wrapper.cjs +0 -2
  152. package/dist/components/wrapper.cjs.map +0 -1
  153. package/dist/components/wrapper.js +0 -484
  154. package/dist/components/wrapper.js.map +0 -1
  155. package/dist/concatenation/concatenatable.cjs +0 -2
  156. package/dist/concatenation/concatenatable.cjs.map +0 -1
  157. package/dist/concatenation/concatenatable.js +0 -118
  158. package/dist/concatenation/concatenatable.js.map +0 -1
  159. package/dist/concatenation/concatenated-component.cjs +0 -2
  160. package/dist/concatenation/concatenated-component.cjs.map +0 -1
  161. package/dist/concatenation/concatenated-component.js +0 -276
  162. package/dist/concatenation/concatenated-component.js.map +0 -1
  163. package/dist/concatenation/text-optimizer.cjs +0 -2
  164. package/dist/concatenation/text-optimizer.cjs.map +0 -1
  165. package/dist/concatenation/text-optimizer.js +0 -236
  166. package/dist/concatenation/text-optimizer.js.map +0 -1
  167. package/dist/concatenation/types.cjs +0 -2
  168. package/dist/concatenation/types.cjs.map +0 -1
  169. package/dist/concatenation/types.js +0 -13
  170. package/dist/concatenation/types.js.map +0 -1
  171. package/dist/constants/frame-utils.cjs +0 -2
  172. package/dist/constants/frame-utils.cjs.map +0 -1
  173. package/dist/constants/frame-utils.js +0 -116
  174. package/dist/constants/frame-utils.js.map +0 -1
  175. package/dist/constants/layout.cjs +0 -2
  176. package/dist/constants/layout.cjs.map +0 -1
  177. package/dist/constants/layout.js +0 -46
  178. package/dist/constants/layout.js.map +0 -1
  179. package/dist/css-classes/component-base.cjs +0 -2
  180. package/dist/css-classes/component-base.cjs.map +0 -1
  181. package/dist/css-classes/component-base.js +0 -62
  182. package/dist/css-classes/component-base.js.map +0 -1
  183. package/dist/css-classes/css-class-manager.cjs +0 -2
  184. package/dist/css-classes/css-class-manager.cjs.map +0 -1
  185. package/dist/css-classes/css-class-manager.js +0 -209
  186. package/dist/css-classes/css-class-manager.js.map +0 -1
  187. package/dist/css-classes/dom-integration.cjs +0 -2
  188. package/dist/css-classes/dom-integration.cjs.map +0 -1
  189. package/dist/css-classes/dom-integration.js +0 -67
  190. package/dist/css-classes/dom-integration.js.map +0 -1
  191. package/dist/css-classes/enhanced-renderer.cjs +0 -2
  192. package/dist/css-classes/enhanced-renderer.cjs.map +0 -1
  193. package/dist/css-classes/enhanced-renderer.js +0 -73
  194. package/dist/css-classes/enhanced-renderer.js.map +0 -1
  195. package/dist/css-classes/utilities.cjs +0 -2
  196. package/dist/css-classes/utilities.cjs.map +0 -1
  197. package/dist/css-classes/utilities.js +0 -41
  198. package/dist/css-classes/utilities.js.map +0 -1
  199. package/dist/debug.cjs +0 -52
  200. package/dist/debug.cjs.map +0 -1
  201. package/dist/debug.js.map +0 -1
  202. package/dist/essential.cjs +0 -2
  203. package/dist/essential.cjs.map +0 -1
  204. package/dist/essential.js.map +0 -1
  205. package/dist/gradients/css-generator.cjs +0 -2
  206. package/dist/gradients/css-generator.cjs.map +0 -1
  207. package/dist/gradients/css-generator.js +0 -100
  208. package/dist/gradients/css-generator.js.map +0 -1
  209. package/dist/gradients/examples.cjs +0 -2
  210. package/dist/gradients/examples.cjs.map +0 -1
  211. package/dist/gradients/examples.js +0 -555
  212. package/dist/gradients/examples.js.map +0 -1
  213. package/dist/gradients/gradient-asset.cjs +0 -2
  214. package/dist/gradients/gradient-asset.cjs.map +0 -1
  215. package/dist/gradients/gradient-asset.js +0 -22
  216. package/dist/gradients/gradient-asset.js.map +0 -1
  217. package/dist/gradients/index.cjs +0 -2
  218. package/dist/gradients/index.cjs.map +0 -1
  219. package/dist/gradients/index.js +0 -78
  220. package/dist/gradients/index.js.map +0 -1
  221. package/dist/gradients/performance.cjs +0 -2
  222. package/dist/gradients/performance.cjs.map +0 -1
  223. package/dist/gradients/performance.js +0 -237
  224. package/dist/gradients/performance.js.map +0 -1
  225. package/dist/gradients/presets.cjs +0 -2
  226. package/dist/gradients/presets.cjs.map +0 -1
  227. package/dist/gradients/presets.js +0 -254
  228. package/dist/gradients/presets.js.map +0 -1
  229. package/dist/gradients/reactive.cjs +0 -2
  230. package/dist/gradients/reactive.cjs.map +0 -1
  231. package/dist/gradients/reactive.js +0 -239
  232. package/dist/gradients/reactive.js.map +0 -1
  233. package/dist/gradients/state-gradient-asset.cjs +0 -2
  234. package/dist/gradients/state-gradient-asset.cjs.map +0 -1
  235. package/dist/gradients/state-gradient-asset.js +0 -111
  236. package/dist/gradients/state-gradient-asset.js.map +0 -1
  237. package/dist/gradients/utils.cjs +0 -2
  238. package/dist/gradients/utils.cjs.map +0 -1
  239. package/dist/gradients/utils.js +0 -385
  240. package/dist/gradients/utils.js.map +0 -1
  241. package/dist/gradients/validation.cjs +0 -2
  242. package/dist/gradients/validation.cjs.map +0 -1
  243. package/dist/gradients/validation.js +0 -209
  244. package/dist/gradients/validation.js.map +0 -1
  245. package/dist/index.cjs +0 -2
  246. package/dist/index.cjs.map +0 -1
  247. package/dist/index.js.map +0 -1
  248. package/dist/index2.cjs +0 -2
  249. package/dist/index2.cjs.map +0 -1
  250. package/dist/index2.js +0 -293
  251. package/dist/index2.js.map +0 -1
  252. package/dist/lifecycle/hooks.cjs +0 -2
  253. package/dist/lifecycle/hooks.cjs.map +0 -1
  254. package/dist/lifecycle/hooks.js +0 -159
  255. package/dist/lifecycle/hooks.js.map +0 -1
  256. package/dist/minimal-prod.cjs +0 -2
  257. package/dist/minimal-prod.cjs.map +0 -1
  258. package/dist/minimal-prod.js.map +0 -1
  259. package/dist/minimal.cjs +0 -2
  260. package/dist/minimal.cjs.map +0 -1
  261. package/dist/minimal.js.map +0 -1
  262. package/dist/modifiers/as-html-validator.cjs +0 -2
  263. package/dist/modifiers/as-html-validator.cjs.map +0 -1
  264. package/dist/modifiers/as-html-validator.js +0 -47
  265. package/dist/modifiers/as-html-validator.js.map +0 -1
  266. package/dist/modifiers/as-html.cjs +0 -2
  267. package/dist/modifiers/as-html.cjs.map +0 -1
  268. package/dist/modifiers/as-html.js +0 -71
  269. package/dist/modifiers/as-html.js.map +0 -1
  270. package/dist/modifiers/attributes.cjs +0 -2
  271. package/dist/modifiers/attributes.cjs.map +0 -1
  272. package/dist/modifiers/attributes.js +0 -272
  273. package/dist/modifiers/attributes.js.map +0 -1
  274. package/dist/modifiers/backdrop.cjs +0 -2
  275. package/dist/modifiers/backdrop.cjs.map +0 -1
  276. package/dist/modifiers/backdrop.js +0 -109
  277. package/dist/modifiers/backdrop.js.map +0 -1
  278. package/dist/modifiers/background.cjs +0 -2
  279. package/dist/modifiers/background.cjs.map +0 -1
  280. package/dist/modifiers/background.js +0 -67
  281. package/dist/modifiers/background.js.map +0 -1
  282. package/dist/modifiers/base.cjs +0 -25
  283. package/dist/modifiers/base.cjs.map +0 -1
  284. package/dist/modifiers/base.js +0 -745
  285. package/dist/modifiers/base.js.map +0 -1
  286. package/dist/modifiers/basic-sanitizer.cjs +0 -2
  287. package/dist/modifiers/basic-sanitizer.cjs.map +0 -1
  288. package/dist/modifiers/basic-sanitizer.js +0 -162
  289. package/dist/modifiers/basic-sanitizer.js.map +0 -1
  290. package/dist/modifiers/border.cjs +0 -2
  291. package/dist/modifiers/border.cjs.map +0 -1
  292. package/dist/modifiers/border.js +0 -160
  293. package/dist/modifiers/border.js.map +0 -1
  294. package/dist/modifiers/builder.cjs +0 -2
  295. package/dist/modifiers/builder.cjs.map +0 -1
  296. package/dist/modifiers/builder.js +0 -930
  297. package/dist/modifiers/builder.js.map +0 -1
  298. package/dist/modifiers/core.cjs +0 -2
  299. package/dist/modifiers/core.cjs.map +0 -1
  300. package/dist/modifiers/core.js +0 -398
  301. package/dist/modifiers/core.js.map +0 -1
  302. package/dist/modifiers/css.cjs +0 -2
  303. package/dist/modifiers/css.cjs.map +0 -1
  304. package/dist/modifiers/css.js +0 -50
  305. package/dist/modifiers/css.js.map +0 -1
  306. package/dist/modifiers/effects.cjs +0 -2
  307. package/dist/modifiers/effects.cjs.map +0 -1
  308. package/dist/modifiers/effects.js +0 -178
  309. package/dist/modifiers/effects.js.map +0 -1
  310. package/dist/modifiers/elements.cjs +0 -2
  311. package/dist/modifiers/elements.cjs.map +0 -1
  312. package/dist/modifiers/elements.js +0 -216
  313. package/dist/modifiers/elements.js.map +0 -1
  314. package/dist/modifiers/filters.cjs +0 -2
  315. package/dist/modifiers/filters.cjs.map +0 -1
  316. package/dist/modifiers/filters.js +0 -223
  317. package/dist/modifiers/filters.js.map +0 -1
  318. package/dist/modifiers/flexbox.cjs +0 -2
  319. package/dist/modifiers/flexbox.cjs.map +0 -1
  320. package/dist/modifiers/flexbox.js +0 -56
  321. package/dist/modifiers/flexbox.js.map +0 -1
  322. package/dist/modifiers/font.cjs +0 -2
  323. package/dist/modifiers/font.cjs.map +0 -1
  324. package/dist/modifiers/font.js +0 -60
  325. package/dist/modifiers/font.js.map +0 -1
  326. package/dist/modifiers/grid.cjs +0 -2
  327. package/dist/modifiers/grid.cjs.map +0 -1
  328. package/dist/modifiers/grid.js +0 -92
  329. package/dist/modifiers/grid.js.map +0 -1
  330. package/dist/modifiers/margin.cjs +0 -2
  331. package/dist/modifiers/margin.cjs.map +0 -1
  332. package/dist/modifiers/margin.js +0 -65
  333. package/dist/modifiers/margin.js.map +0 -1
  334. package/dist/modifiers/padding.cjs +0 -2
  335. package/dist/modifiers/padding.cjs.map +0 -1
  336. package/dist/modifiers/padding.js +0 -109
  337. package/dist/modifiers/padding.js.map +0 -1
  338. package/dist/modifiers/registry.cjs +0 -2
  339. package/dist/modifiers/registry.cjs.map +0 -1
  340. package/dist/modifiers/registry.js +0 -163
  341. package/dist/modifiers/registry.js.map +0 -1
  342. package/dist/modifiers/responsive/advanced-utilities.cjs +0 -2
  343. package/dist/modifiers/responsive/advanced-utilities.cjs.map +0 -1
  344. package/dist/modifiers/responsive/advanced-utilities.js +0 -291
  345. package/dist/modifiers/responsive/advanced-utilities.js.map +0 -1
  346. package/dist/modifiers/responsive/breakpoints.cjs +0 -2
  347. package/dist/modifiers/responsive/breakpoints.cjs.map +0 -1
  348. package/dist/modifiers/responsive/breakpoints.js +0 -168
  349. package/dist/modifiers/responsive/breakpoints.js.map +0 -1
  350. package/dist/modifiers/responsive/css-generator.cjs +0 -5
  351. package/dist/modifiers/responsive/css-generator.cjs.map +0 -1
  352. package/dist/modifiers/responsive/css-generator.js +0 -261
  353. package/dist/modifiers/responsive/css-generator.js.map +0 -1
  354. package/dist/modifiers/responsive/dev-tools.cjs +0 -77
  355. package/dist/modifiers/responsive/dev-tools.cjs.map +0 -1
  356. package/dist/modifiers/responsive/dev-tools.js +0 -380
  357. package/dist/modifiers/responsive/dev-tools.js.map +0 -1
  358. package/dist/modifiers/responsive/layout-patterns.cjs +0 -2
  359. package/dist/modifiers/responsive/layout-patterns.cjs.map +0 -1
  360. package/dist/modifiers/responsive/layout-patterns.js +0 -254
  361. package/dist/modifiers/responsive/layout-patterns.js.map +0 -1
  362. package/dist/modifiers/responsive/performance.cjs +0 -3
  363. package/dist/modifiers/responsive/performance.cjs.map +0 -1
  364. package/dist/modifiers/responsive/performance.js +0 -212
  365. package/dist/modifiers/responsive/performance.js.map +0 -1
  366. package/dist/modifiers/responsive/responsive-builder.cjs +0 -2
  367. package/dist/modifiers/responsive/responsive-builder.cjs.map +0 -1
  368. package/dist/modifiers/responsive/responsive-builder.js +0 -272
  369. package/dist/modifiers/responsive/responsive-builder.js.map +0 -1
  370. package/dist/modifiers/responsive/responsive-modifier.cjs +0 -3
  371. package/dist/modifiers/responsive/responsive-modifier.cjs.map +0 -1
  372. package/dist/modifiers/responsive/responsive-modifier.js +0 -204
  373. package/dist/modifiers/responsive/responsive-modifier.js.map +0 -1
  374. package/dist/modifiers/responsive/types.cjs +0 -2
  375. package/dist/modifiers/responsive/types.cjs.map +0 -1
  376. package/dist/modifiers/responsive/types.js +0 -26
  377. package/dist/modifiers/responsive/types.js.map +0 -1
  378. package/dist/modifiers/responsive/utilities.cjs +0 -16
  379. package/dist/modifiers/responsive/utilities.cjs.map +0 -1
  380. package/dist/modifiers/responsive/utilities.js +0 -273
  381. package/dist/modifiers/responsive/utilities.js.map +0 -1
  382. package/dist/modifiers/scroll.cjs +0 -2
  383. package/dist/modifiers/scroll.cjs.map +0 -1
  384. package/dist/modifiers/scroll.js +0 -82
  385. package/dist/modifiers/scroll.js.map +0 -1
  386. package/dist/modifiers/shadows.cjs +0 -2
  387. package/dist/modifiers/shadows.cjs.map +0 -1
  388. package/dist/modifiers/shadows.js +0 -147
  389. package/dist/modifiers/shadows.js.map +0 -1
  390. package/dist/modifiers/size.cjs +0 -2
  391. package/dist/modifiers/size.cjs.map +0 -1
  392. package/dist/modifiers/size.js +0 -74
  393. package/dist/modifiers/size.js.map +0 -1
  394. package/dist/modifiers/text.cjs +0 -2
  395. package/dist/modifiers/text.cjs.map +0 -1
  396. package/dist/modifiers/text.js +0 -166
  397. package/dist/modifiers/text.js.map +0 -1
  398. package/dist/modifiers/transformations.cjs +0 -2
  399. package/dist/modifiers/transformations.cjs.map +0 -1
  400. package/dist/modifiers/transformations.js +0 -216
  401. package/dist/modifiers/transformations.js.map +0 -1
  402. package/dist/modifiers/transitions.cjs +0 -2
  403. package/dist/modifiers/transitions.cjs.map +0 -1
  404. package/dist/modifiers/transitions.js +0 -102
  405. package/dist/modifiers/transitions.js.map +0 -1
  406. package/dist/modifiers/types.cjs +0 -2
  407. package/dist/modifiers/types.cjs.map +0 -1
  408. package/dist/modifiers/types.js +0 -5
  409. package/dist/modifiers/types.js.map +0 -1
  410. package/dist/modifiers/typography.cjs +0 -2
  411. package/dist/modifiers/typography.cjs.map +0 -1
  412. package/dist/modifiers/typography.js +0 -76
  413. package/dist/modifiers/typography.js.map +0 -1
  414. package/dist/modifiers/utility.cjs +0 -2
  415. package/dist/modifiers/utility.cjs.map +0 -1
  416. package/dist/modifiers/utility.js +0 -71
  417. package/dist/modifiers/utility.js.map +0 -1
  418. package/dist/modifiers/utils.cjs +0 -2
  419. package/dist/modifiers/utils.cjs.map +0 -1
  420. package/dist/modifiers/utils.js +0 -250
  421. package/dist/modifiers/utils.js.map +0 -1
  422. package/dist/plugins/index.cjs +0 -2
  423. package/dist/plugins/index.cjs.map +0 -1
  424. package/dist/plugins/index.js.map +0 -1
  425. package/dist/plugins/legacy-adapter.cjs +0 -2
  426. package/dist/plugins/legacy-adapter.cjs.map +0 -1
  427. package/dist/plugins/legacy-adapter.js +0 -30
  428. package/dist/plugins/legacy-adapter.js.map +0 -1
  429. package/dist/plugins/simplified-component-registry.cjs +0 -2
  430. package/dist/plugins/simplified-component-registry.cjs.map +0 -1
  431. package/dist/plugins/simplified-component-registry.js +0 -71
  432. package/dist/plugins/simplified-component-registry.js.map +0 -1
  433. package/dist/plugins/simplified-error-handler.cjs +0 -2
  434. package/dist/plugins/simplified-error-handler.cjs.map +0 -1
  435. package/dist/plugins/simplified-error-handler.js +0 -154
  436. package/dist/plugins/simplified-error-handler.js.map +0 -1
  437. package/dist/plugins/simplified-lazy-loader.cjs +0 -2
  438. package/dist/plugins/simplified-lazy-loader.cjs.map +0 -1
  439. package/dist/plugins/simplified-lazy-loader.js +0 -129
  440. package/dist/plugins/simplified-lazy-loader.js.map +0 -1
  441. package/dist/plugins/simplified-plugin-manager.cjs +0 -2
  442. package/dist/plugins/simplified-plugin-manager.cjs.map +0 -1
  443. package/dist/plugins/simplified-plugin-manager.js +0 -51
  444. package/dist/plugins/simplified-plugin-manager.js.map +0 -1
  445. package/dist/plugins/simplified-tachui-instance.cjs +0 -2
  446. package/dist/plugins/simplified-tachui-instance.cjs.map +0 -1
  447. package/dist/plugins/simplified-tachui-instance.js +0 -88
  448. package/dist/plugins/simplified-tachui-instance.js.map +0 -1
  449. package/dist/plugins/simplified-types.cjs +0 -2
  450. package/dist/plugins/simplified-types.cjs.map +0 -1
  451. package/dist/plugins/simplified-types.js +0 -9
  452. package/dist/plugins/simplified-types.js.map +0 -1
  453. package/dist/plugins/simplified-utils.cjs +0 -2
  454. package/dist/plugins/simplified-utils.cjs.map +0 -1
  455. package/dist/plugins/simplified-utils.js +0 -40
  456. package/dist/plugins/simplified-utils.js.map +0 -1
  457. package/dist/reactive/cleanup.cjs +0 -2
  458. package/dist/reactive/cleanup.cjs.map +0 -1
  459. package/dist/reactive/cleanup.js +0 -62
  460. package/dist/reactive/cleanup.js.map +0 -1
  461. package/dist/reactive/computed.cjs +0 -2
  462. package/dist/reactive/computed.cjs.map +0 -1
  463. package/dist/reactive/computed.js +0 -121
  464. package/dist/reactive/computed.js.map +0 -1
  465. package/dist/reactive/context.cjs +0 -2
  466. package/dist/reactive/context.cjs.map +0 -1
  467. package/dist/reactive/context.js +0 -143
  468. package/dist/reactive/context.js.map +0 -1
  469. package/dist/reactive/effect.cjs +0 -2
  470. package/dist/reactive/effect.cjs.map +0 -1
  471. package/dist/reactive/effect.js +0 -67
  472. package/dist/reactive/effect.js.map +0 -1
  473. package/dist/reactive/enhanced-effect.cjs +0 -2
  474. package/dist/reactive/enhanced-effect.cjs.map +0 -1
  475. package/dist/reactive/enhanced-effect.js +0 -153
  476. package/dist/reactive/enhanced-effect.js.map +0 -1
  477. package/dist/reactive/enhanced-signal.cjs +0 -2
  478. package/dist/reactive/enhanced-signal.cjs.map +0 -1
  479. package/dist/reactive/enhanced-signal.js +0 -117
  480. package/dist/reactive/enhanced-signal.js.map +0 -1
  481. package/dist/reactive/equality.cjs +0 -2
  482. package/dist/reactive/equality.cjs.map +0 -1
  483. package/dist/reactive/equality.js +0 -66
  484. package/dist/reactive/equality.js.map +0 -1
  485. package/dist/reactive/index.cjs +0 -2
  486. package/dist/reactive/index.cjs.map +0 -1
  487. package/dist/reactive/index.js.map +0 -1
  488. package/dist/reactive/migration.cjs +0 -18
  489. package/dist/reactive/migration.cjs.map +0 -1
  490. package/dist/reactive/migration.js +0 -164
  491. package/dist/reactive/migration.js.map +0 -1
  492. package/dist/reactive/ownership.cjs +0 -2
  493. package/dist/reactive/ownership.cjs.map +0 -1
  494. package/dist/reactive/ownership.js +0 -34
  495. package/dist/reactive/ownership.js.map +0 -1
  496. package/dist/reactive/scheduler.cjs +0 -2
  497. package/dist/reactive/scheduler.cjs.map +0 -1
  498. package/dist/reactive/scheduler.js +0 -111
  499. package/dist/reactive/scheduler.js.map +0 -1
  500. package/dist/reactive/signal.cjs +0 -2
  501. package/dist/reactive/signal.cjs.map +0 -1
  502. package/dist/reactive/signal.js +0 -96
  503. package/dist/reactive/signal.js.map +0 -1
  504. package/dist/reactive/theme.cjs +0 -2
  505. package/dist/reactive/theme.cjs.map +0 -1
  506. package/dist/reactive/theme.js +0 -27
  507. package/dist/reactive/theme.js.map +0 -1
  508. package/dist/reactive/types.cjs +0 -2
  509. package/dist/reactive/types.cjs.map +0 -1
  510. package/dist/reactive/types.js +0 -5
  511. package/dist/reactive/types.js.map +0 -1
  512. package/dist/reactive/unified-scheduler.cjs +0 -2
  513. package/dist/reactive/unified-scheduler.cjs.map +0 -1
  514. package/dist/reactive/unified-scheduler.js +0 -219
  515. package/dist/reactive/unified-scheduler.js.map +0 -1
  516. package/dist/runtime/component-context.cjs +0 -2
  517. package/dist/runtime/component-context.cjs.map +0 -1
  518. package/dist/runtime/component-context.js +0 -177
  519. package/dist/runtime/component-context.js.map +0 -1
  520. package/dist/runtime/component.cjs +0 -2
  521. package/dist/runtime/component.cjs.map +0 -1
  522. package/dist/runtime/component.js +0 -238
  523. package/dist/runtime/component.js.map +0 -1
  524. package/dist/runtime/context.cjs +0 -2
  525. package/dist/runtime/context.cjs.map +0 -1
  526. package/dist/runtime/context.js.map +0 -1
  527. package/dist/runtime/dev-tools.cjs +0 -2
  528. package/dist/runtime/dev-tools.cjs.map +0 -1
  529. package/dist/runtime/dev-tools.js +0 -391
  530. package/dist/runtime/dev-tools.js.map +0 -1
  531. package/dist/runtime/development-warnings.cjs +0 -2
  532. package/dist/runtime/development-warnings.cjs.map +0 -1
  533. package/dist/runtime/development-warnings.js +0 -69
  534. package/dist/runtime/development-warnings.js.map +0 -1
  535. package/dist/runtime/dom-bridge.cjs +0 -2
  536. package/dist/runtime/dom-bridge.cjs.map +0 -1
  537. package/dist/runtime/dom-bridge.js.map +0 -1
  538. package/dist/runtime/element-override.cjs +0 -2
  539. package/dist/runtime/element-override.cjs.map +0 -1
  540. package/dist/runtime/element-override.js +0 -214
  541. package/dist/runtime/element-override.js.map +0 -1
  542. package/dist/runtime/error-boundary.cjs +0 -2
  543. package/dist/runtime/error-boundary.cjs.map +0 -1
  544. package/dist/runtime/error-boundary.js +0 -559
  545. package/dist/runtime/error-boundary.js.map +0 -1
  546. package/dist/runtime/error-recovery.cjs +0 -2
  547. package/dist/runtime/error-recovery.cjs.map +0 -1
  548. package/dist/runtime/error-recovery.js +0 -385
  549. package/dist/runtime/error-recovery.js.map +0 -1
  550. package/dist/runtime/error-reporting.cjs +0 -3
  551. package/dist/runtime/error-reporting.cjs.map +0 -1
  552. package/dist/runtime/error-reporting.js +0 -479
  553. package/dist/runtime/error-reporting.js.map +0 -1
  554. package/dist/runtime/error-utils.cjs +0 -3
  555. package/dist/runtime/error-utils.cjs.map +0 -1
  556. package/dist/runtime/error-utils.js +0 -352
  557. package/dist/runtime/error-utils.js.map +0 -1
  558. package/dist/runtime/lazy-component.cjs +0 -2
  559. package/dist/runtime/lazy-component.cjs.map +0 -1
  560. package/dist/runtime/lazy-component.js +0 -129
  561. package/dist/runtime/lazy-component.js.map +0 -1
  562. package/dist/runtime/lifecycle.cjs +0 -2
  563. package/dist/runtime/lifecycle.cjs.map +0 -1
  564. package/dist/runtime/lifecycle.js +0 -7
  565. package/dist/runtime/lifecycle.js.map +0 -1
  566. package/dist/runtime/mounting.cjs +0 -2
  567. package/dist/runtime/mounting.cjs.map +0 -1
  568. package/dist/runtime/mounting.js +0 -12
  569. package/dist/runtime/mounting.js.map +0 -1
  570. package/dist/runtime/optimization.cjs +0 -2
  571. package/dist/runtime/optimization.cjs.map +0 -1
  572. package/dist/runtime/optimization.js +0 -6
  573. package/dist/runtime/optimization.js.map +0 -1
  574. package/dist/runtime/performance.cjs +0 -2
  575. package/dist/runtime/performance.cjs.map +0 -1
  576. package/dist/runtime/performance.js +0 -399
  577. package/dist/runtime/performance.js.map +0 -1
  578. package/dist/runtime/props.cjs +0 -2
  579. package/dist/runtime/props.cjs.map +0 -1
  580. package/dist/runtime/props.js +0 -265
  581. package/dist/runtime/props.js.map +0 -1
  582. package/dist/runtime/renderer.cjs +0 -2
  583. package/dist/runtime/renderer.cjs.map +0 -1
  584. package/dist/runtime/renderer.js.map +0 -1
  585. package/dist/runtime/semantic-role-manager.cjs +0 -2
  586. package/dist/runtime/semantic-role-manager.cjs.map +0 -1
  587. package/dist/runtime/semantic-role-manager.js +0 -82
  588. package/dist/runtime/semantic-role-manager.js.map +0 -1
  589. package/dist/state/binding.cjs +0 -2
  590. package/dist/state/binding.cjs.map +0 -1
  591. package/dist/state/binding.js +0 -155
  592. package/dist/state/binding.js.map +0 -1
  593. package/dist/state/environment.cjs +0 -2
  594. package/dist/state/environment.cjs.map +0 -1
  595. package/dist/state/environment.js +0 -115
  596. package/dist/state/environment.js.map +0 -1
  597. package/dist/state/index.cjs +0 -2
  598. package/dist/state/index.cjs.map +0 -1
  599. package/dist/state/index.js +0 -63
  600. package/dist/state/index.js.map +0 -1
  601. package/dist/state/observed-object.cjs +0 -2
  602. package/dist/state/observed-object.cjs.map +0 -1
  603. package/dist/state/observed-object.js +0 -163
  604. package/dist/state/observed-object.js.map +0 -1
  605. package/dist/state/state-manager.cjs +0 -2
  606. package/dist/state/state-manager.cjs.map +0 -1
  607. package/dist/state/state-manager.js +0 -233
  608. package/dist/state/state-manager.js.map +0 -1
  609. package/dist/state/state.cjs +0 -2
  610. package/dist/state/state.cjs.map +0 -1
  611. package/dist/state/state.js +0 -159
  612. package/dist/state/state.js.map +0 -1
  613. package/dist/sui-compat.cjs +0 -2
  614. package/dist/sui-compat.cjs.map +0 -1
  615. package/dist/sui-compat.js +0 -88
  616. package/dist/sui-compat.js.map +0 -1
  617. package/dist/validation/advanced-debugging.cjs +0 -44
  618. package/dist/validation/advanced-debugging.cjs.map +0 -1
  619. package/dist/validation/advanced-debugging.js +0 -455
  620. package/dist/validation/advanced-debugging.js.map +0 -1
  621. package/dist/validation/build-time/detection.cjs +0 -2
  622. package/dist/validation/build-time/detection.cjs.map +0 -1
  623. package/dist/validation/build-time/detection.js +0 -199
  624. package/dist/validation/build-time/detection.js.map +0 -1
  625. package/dist/validation/build-time/index.cjs +0 -2
  626. package/dist/validation/build-time/index.cjs.map +0 -1
  627. package/dist/validation/build-time/index.js +0 -122
  628. package/dist/validation/build-time/index.js.map +0 -1
  629. package/dist/validation/build-time/plugins.cjs +0 -3
  630. package/dist/validation/build-time/plugins.cjs.map +0 -1
  631. package/dist/validation/build-time/plugins.js +0 -282
  632. package/dist/validation/build-time/plugins.js.map +0 -1
  633. package/dist/validation/build-time/rules.cjs +0 -2
  634. package/dist/validation/build-time/rules.cjs.map +0 -1
  635. package/dist/validation/build-time/rules.js +0 -576
  636. package/dist/validation/build-time/rules.js.map +0 -1
  637. package/dist/validation/build-time/transformer.cjs +0 -3
  638. package/dist/validation/build-time/transformer.cjs.map +0 -1
  639. package/dist/validation/build-time/transformer.js +0 -177
  640. package/dist/validation/build-time/transformer.js.map +0 -1
  641. package/dist/validation/comprehensive.cjs +0 -9
  642. package/dist/validation/comprehensive.cjs.map +0 -1
  643. package/dist/validation/comprehensive.js +0 -916
  644. package/dist/validation/comprehensive.js.map +0 -1
  645. package/dist/validation/debug-tools.cjs +0 -16
  646. package/dist/validation/debug-tools.cjs.map +0 -1
  647. package/dist/validation/debug-tools.js +0 -405
  648. package/dist/validation/debug-tools.js.map +0 -1
  649. package/dist/validation/developer-experience.cjs +0 -17
  650. package/dist/validation/developer-experience.cjs.map +0 -1
  651. package/dist/validation/developer-experience.js +0 -433
  652. package/dist/validation/developer-experience.js.map +0 -1
  653. package/dist/validation/documentation-integration.cjs +0 -7
  654. package/dist/validation/documentation-integration.cjs.map +0 -1
  655. package/dist/validation/documentation-integration.js +0 -440
  656. package/dist/validation/documentation-integration.js.map +0 -1
  657. package/dist/validation/enhanced-runtime.cjs +0 -6
  658. package/dist/validation/enhanced-runtime.cjs.map +0 -1
  659. package/dist/validation/enhanced-runtime.js +0 -465
  660. package/dist/validation/enhanced-runtime.js.map +0 -1
  661. package/dist/validation/error-reporting.cjs +0 -32
  662. package/dist/validation/error-reporting.cjs.map +0 -1
  663. package/dist/validation/error-reporting.js +0 -370
  664. package/dist/validation/error-reporting.js.map +0 -1
  665. package/dist/validation/ide-integration.cjs +0 -85
  666. package/dist/validation/ide-integration.cjs.map +0 -1
  667. package/dist/validation/ide-integration.js +0 -557
  668. package/dist/validation/ide-integration.js.map +0 -1
  669. package/dist/validation/index.cjs +0 -6
  670. package/dist/validation/index.cjs.map +0 -1
  671. package/dist/validation/index.js.map +0 -1
  672. package/dist/validation/lifecycle-validation.cjs +0 -2
  673. package/dist/validation/lifecycle-validation.cjs.map +0 -1
  674. package/dist/validation/lifecycle-validation.js +0 -314
  675. package/dist/validation/lifecycle-validation.js.map +0 -1
  676. package/dist/validation/performance-optimizer.cjs +0 -2
  677. package/dist/validation/performance-optimizer.cjs.map +0 -1
  678. package/dist/validation/performance-optimizer.js +0 -338
  679. package/dist/validation/performance-optimizer.js.map +0 -1
  680. package/dist/validation/plugin-registration.cjs +0 -2
  681. package/dist/validation/plugin-registration.cjs.map +0 -1
  682. package/dist/validation/plugin-registration.js +0 -126
  683. package/dist/validation/plugin-registration.js.map +0 -1
  684. package/dist/validation/production-bypass.cjs +0 -2
  685. package/dist/validation/production-bypass.cjs.map +0 -1
  686. package/dist/validation/production-bypass.js +0 -218
  687. package/dist/validation/production-bypass.js.map +0 -1
  688. package/dist/validation/simple.cjs +0 -9
  689. package/dist/validation/simple.cjs.map +0 -1
  690. package/dist/validation/simple.js +0 -146
  691. package/dist/validation/simple.js.map +0 -1
  692. package/dist/viewport/adapters/web-adapter.cjs +0 -70
  693. package/dist/viewport/adapters/web-adapter.cjs.map +0 -1
  694. package/dist/viewport/adapters/web-adapter.js +0 -823
  695. package/dist/viewport/adapters/web-adapter.js.map +0 -1
  696. package/dist/viewport/components.cjs +0 -2
  697. package/dist/viewport/components.cjs.map +0 -1
  698. package/dist/viewport/components.js +0 -298
  699. package/dist/viewport/components.js.map +0 -1
  700. package/dist/viewport/environment.cjs +0 -2
  701. package/dist/viewport/environment.cjs.map +0 -1
  702. package/dist/viewport/environment.js +0 -86
  703. package/dist/viewport/environment.js.map +0 -1
  704. package/dist/viewport/index.cjs +0 -2
  705. package/dist/viewport/index.cjs.map +0 -1
  706. package/dist/viewport/index.js.map +0 -1
  707. package/dist/viewport/platform-detection.cjs +0 -2
  708. package/dist/viewport/platform-detection.cjs.map +0 -1
  709. package/dist/viewport/platform-detection.js +0 -205
  710. package/dist/viewport/platform-detection.js.map +0 -1
  711. package/dist/viewport/types.cjs +0 -2
  712. package/dist/viewport/types.cjs.map +0 -1
  713. package/dist/viewport/types.js +0 -13
  714. package/dist/viewport/types.js.map +0 -1
  715. package/dist/viewport/viewport-manager.cjs +0 -2
  716. package/dist/viewport/viewport-manager.cjs.map +0 -1
  717. package/dist/viewport/viewport-manager.js +0 -524
  718. package/dist/viewport/viewport-manager.js.map +0 -1
  719. package/src/assets/Asset.ts +0 -11
  720. package/src/assets/AssetCollection.ts +0 -99
  721. package/src/assets/ColorAsset.ts +0 -210
  722. package/src/assets/FontAsset.ts +0 -380
  723. package/src/assets/ImageAsset.ts +0 -91
  724. package/src/assets/README.md +0 -190
  725. package/src/assets/index.ts +0 -175
  726. package/src/assets/test-assets.ts +0 -69
  727. package/src/assets/test-integration.ts +0 -46
  728. package/src/assets/test-simple.ts +0 -28
  729. package/src/assets/types.ts +0 -79
  730. package/src/bundles/common.ts +0 -30
  731. package/src/bundles/complete.ts +0 -29
  732. package/src/bundles/essential.ts +0 -26
  733. package/src/bundles/minimal.ts +0 -26
  734. package/src/bundles/production-minimal.ts +0 -67
  735. package/src/compiler/advanced-parser.ts +0 -871
  736. package/src/compiler/codegen.ts +0 -450
  737. package/src/compiler/enhanced-codegen.ts +0 -729
  738. package/src/compiler/index.ts +0 -25
  739. package/src/compiler/parser.ts +0 -461
  740. package/src/compiler/plugin.ts +0 -181
  741. package/src/compiler/types.ts +0 -177
  742. package/src/components/BasicInput.ts +0 -352
  743. package/src/components/Button.ts +0 -963
  744. package/src/components/Divider.ts +0 -341
  745. package/src/components/EnhancedLink.ts +0 -676
  746. package/src/components/Form.ts +0 -414
  747. package/src/components/Grid.ts +0 -2507
  748. package/src/components/GridResponsive.ts +0 -637
  749. package/src/components/Image.ts +0 -426
  750. package/src/components/List.ts +0 -1084
  751. package/src/components/Menu.ts +0 -807
  752. package/src/components/Picker.ts +0 -678
  753. package/src/components/ScrollView.ts +0 -725
  754. package/src/components/Section.ts +0 -472
  755. package/src/components/Show.ts +0 -205
  756. package/src/components/Spacer.ts +0 -93
  757. package/src/components/Text.ts +0 -447
  758. package/src/components/Toggle.ts +0 -700
  759. package/src/components/index.ts +0 -231
  760. package/src/components/wrapper.ts +0 -828
  761. package/src/concatenation/concatenatable.ts +0 -211
  762. package/src/concatenation/concatenated-component.ts +0 -471
  763. package/src/concatenation/index.ts +0 -41
  764. package/src/concatenation/styles.css +0 -120
  765. package/src/concatenation/text-optimizer.ts +0 -440
  766. package/src/concatenation/types.ts +0 -116
  767. package/src/constants/README.md +0 -339
  768. package/src/constants/__tests__/frame-utils.test.ts +0 -276
  769. package/src/constants/__tests__/layout.test.ts +0 -215
  770. package/src/constants/frame-utils.ts +0 -174
  771. package/src/constants/index.ts +0 -8
  772. package/src/constants/layout.ts +0 -120
  773. package/src/css-classes/component-base.ts +0 -117
  774. package/src/css-classes/css-class-manager.ts +0 -372
  775. package/src/css-classes/dom-integration.ts +0 -162
  776. package/src/css-classes/enhanced-renderer.ts +0 -166
  777. package/src/css-classes/index.ts +0 -45
  778. package/src/css-classes/types.ts +0 -73
  779. package/src/css-classes/utilities.ts +0 -175
  780. package/src/debug/index.ts +0 -267
  781. package/src/developer-experience/enhanced-errors.ts +0 -556
  782. package/src/developer-experience/enhanced-types.ts +0 -427
  783. package/src/developer-experience/index.ts +0 -220
  784. package/src/globals.d.ts +0 -43
  785. package/src/gradients/__tests__/angular-gradient.test.ts +0 -111
  786. package/src/gradients/__tests__/background-modifier.test.ts +0 -81
  787. package/src/gradients/__tests__/comprehensive-gradients.test.ts +0 -296
  788. package/src/gradients/__tests__/gradient-asset.test.ts +0 -144
  789. package/src/gradients/__tests__/linear-gradient.test.ts +0 -92
  790. package/src/gradients/__tests__/phase4-features.test.ts +0 -386
  791. package/src/gradients/__tests__/radial-gradient.test.ts +0 -110
  792. package/src/gradients/__tests__/repeating-gradients.test.ts +0 -125
  793. package/src/gradients/__tests__/state-background-modifier.test.ts +0 -340
  794. package/src/gradients/__tests__/state-gradient-asset.test.ts +0 -262
  795. package/src/gradients/__tests__/state-gradient-integration.test.ts +0 -277
  796. package/src/gradients/css-generator.ts +0 -158
  797. package/src/gradients/examples.ts +0 -632
  798. package/src/gradients/gradient-asset.ts +0 -30
  799. package/src/gradients/index.ts +0 -85
  800. package/src/gradients/performance.ts +0 -521
  801. package/src/gradients/presets.ts +0 -422
  802. package/src/gradients/reactive.ts +0 -470
  803. package/src/gradients/state-gradient-asset.ts +0 -179
  804. package/src/gradients/types.ts +0 -148
  805. package/src/gradients/utils.ts +0 -579
  806. package/src/gradients/validation.ts +0 -489
  807. package/src/index.ts +0 -168
  808. package/src/lifecycle/hooks.ts +0 -332
  809. package/src/modifiers/__tests__/as-html-integration.test.ts +0 -204
  810. package/src/modifiers/__tests__/as-html.test.ts +0 -437
  811. package/src/modifiers/__tests__/basic-sanitizer-security.test.ts +0 -294
  812. package/src/modifiers/__tests__/border.test.ts +0 -371
  813. package/src/modifiers/__tests__/margin-string-support.test.ts +0 -41
  814. package/src/modifiers/__tests__/padding-string-support.test.ts +0 -41
  815. package/src/modifiers/as-html-validator.ts +0 -68
  816. package/src/modifiers/as-html.ts +0 -216
  817. package/src/modifiers/attributes.ts +0 -574
  818. package/src/modifiers/backdrop.ts +0 -290
  819. package/src/modifiers/background.ts +0 -165
  820. package/src/modifiers/base.ts +0 -1815
  821. package/src/modifiers/basic-sanitizer.ts +0 -227
  822. package/src/modifiers/border.ts +0 -574
  823. package/src/modifiers/builder.ts +0 -1747
  824. package/src/modifiers/core.ts +0 -521
  825. package/src/modifiers/css.ts +0 -148
  826. package/src/modifiers/effects.ts +0 -412
  827. package/src/modifiers/elements.ts +0 -541
  828. package/src/modifiers/filters.ts +0 -501
  829. package/src/modifiers/flexbox.ts +0 -180
  830. package/src/modifiers/font.ts +0 -149
  831. package/src/modifiers/grid.ts +0 -238
  832. package/src/modifiers/index.ts +0 -481
  833. package/src/modifiers/margin.ts +0 -218
  834. package/src/modifiers/padding.ts +0 -318
  835. package/src/modifiers/registry.ts +0 -444
  836. package/src/modifiers/responsive/__tests__/advanced-media-queries.test.ts +0 -392
  837. package/src/modifiers/responsive/__tests__/advanced-utilities.test.ts +0 -368
  838. package/src/modifiers/responsive/__tests__/comprehensive-browser-tests.test.ts +0 -556
  839. package/src/modifiers/responsive/__tests__/layout-patterns.test.ts +0 -558
  840. package/src/modifiers/responsive/advanced-utilities.ts +0 -562
  841. package/src/modifiers/responsive/breakpoints.ts +0 -330
  842. package/src/modifiers/responsive/css-generator.ts +0 -432
  843. package/src/modifiers/responsive/dev-tools.ts +0 -650
  844. package/src/modifiers/responsive/index.ts +0 -119
  845. package/src/modifiers/responsive/layout-patterns.ts +0 -592
  846. package/src/modifiers/responsive/performance.ts +0 -385
  847. package/src/modifiers/responsive/responsive-builder.ts +0 -620
  848. package/src/modifiers/responsive/responsive-modifier.ts +0 -410
  849. package/src/modifiers/responsive/types.ts +0 -226
  850. package/src/modifiers/responsive/utilities.ts +0 -478
  851. package/src/modifiers/scroll.ts +0 -297
  852. package/src/modifiers/shadows.ts +0 -321
  853. package/src/modifiers/size.ts +0 -208
  854. package/src/modifiers/text.ts +0 -416
  855. package/src/modifiers/transformations.ts +0 -640
  856. package/src/modifiers/transitions.ts +0 -218
  857. package/src/modifiers/types.ts +0 -889
  858. package/src/modifiers/typography.ts +0 -341
  859. package/src/modifiers/utility.ts +0 -209
  860. package/src/modifiers/utils.ts +0 -413
  861. package/src/plugins/__tests__/simplified-plugin-system.test.ts +0 -190
  862. package/src/plugins/component-loader-registry.ts +0 -371
  863. package/src/plugins/index.ts +0 -61
  864. package/src/plugins/legacy-adapter.ts +0 -84
  865. package/src/plugins/simplified-component-registry.ts +0 -130
  866. package/src/plugins/simplified-error-handler.ts +0 -372
  867. package/src/plugins/simplified-index.ts +0 -61
  868. package/src/plugins/simplified-lazy-loader.ts +0 -242
  869. package/src/plugins/simplified-plugin-manager.ts +0 -93
  870. package/src/plugins/simplified-tachui-instance.ts +0 -142
  871. package/src/plugins/simplified-types.ts +0 -79
  872. package/src/plugins/simplified-utils.ts +0 -118
  873. package/src/reactive/cleanup.ts +0 -241
  874. package/src/reactive/computed.ts +0 -281
  875. package/src/reactive/context.ts +0 -287
  876. package/src/reactive/effect.ts +0 -194
  877. package/src/reactive/enhanced-effect.ts +0 -318
  878. package/src/reactive/enhanced-signal.ts +0 -227
  879. package/src/reactive/equality.ts +0 -188
  880. package/src/reactive/globals.d.ts +0 -5
  881. package/src/reactive/index.ts +0 -150
  882. package/src/reactive/migration.ts +0 -335
  883. package/src/reactive/ownership.ts +0 -182
  884. package/src/reactive/scheduler.ts +0 -300
  885. package/src/reactive/signal.ts +0 -201
  886. package/src/reactive/theme.ts +0 -49
  887. package/src/reactive/types.ts +0 -103
  888. package/src/reactive/unified-scheduler.ts +0 -357
  889. package/src/runtime/component-context.ts +0 -343
  890. package/src/runtime/component.ts +0 -499
  891. package/src/runtime/context.ts +0 -527
  892. package/src/runtime/dev-tools.ts +0 -752
  893. package/src/runtime/development-warnings.ts +0 -114
  894. package/src/runtime/dom-bridge.ts +0 -570
  895. package/src/runtime/element-override.ts +0 -282
  896. package/src/runtime/error-boundary.ts +0 -955
  897. package/src/runtime/error-recovery.ts +0 -638
  898. package/src/runtime/error-reporting.ts +0 -808
  899. package/src/runtime/error-utils.ts +0 -698
  900. package/src/runtime/index.ts +0 -202
  901. package/src/runtime/lazy-component.ts +0 -268
  902. package/src/runtime/lifecycle.ts +0 -10
  903. package/src/runtime/mounting.ts +0 -17
  904. package/src/runtime/optimization.ts +0 -13
  905. package/src/runtime/performance.ts +0 -693
  906. package/src/runtime/props.ts +0 -434
  907. package/src/runtime/refs.ts +0 -13
  908. package/src/runtime/renderer.ts +0 -674
  909. package/src/runtime/semantic-role-manager.ts +0 -140
  910. package/src/runtime/types.ts +0 -282
  911. package/src/state/binding.ts +0 -381
  912. package/src/state/environment-object.ts +0 -444
  913. package/src/state/environment.ts +0 -351
  914. package/src/state/index.ts +0 -179
  915. package/src/state/observed-object.ts +0 -405
  916. package/src/state/state-manager.ts +0 -366
  917. package/src/state/state.ts +0 -339
  918. package/src/state/types.ts +0 -192
  919. package/src/sui-compat.ts +0 -163
  920. package/src/validation/__tests__/phase-1d-integration.test.ts +0 -558
  921. package/src/validation/advanced-debugging.ts +0 -860
  922. package/src/validation/build-time/detection.ts +0 -373
  923. package/src/validation/build-time/index.ts +0 -222
  924. package/src/validation/build-time/plugins.ts +0 -515
  925. package/src/validation/build-time/rules.ts +0 -624
  926. package/src/validation/build-time/transformer.ts +0 -372
  927. package/src/validation/build-time/types.ts +0 -232
  928. package/src/validation/comprehensive.ts +0 -1272
  929. package/src/validation/debug-tools.ts +0 -724
  930. package/src/validation/developer-experience.ts +0 -712
  931. package/src/validation/documentation-integration.ts +0 -835
  932. package/src/validation/enhanced-runtime.ts +0 -765
  933. package/src/validation/error-reporting.ts +0 -587
  934. package/src/validation/ide-integration.ts +0 -845
  935. package/src/validation/index.ts +0 -353
  936. package/src/validation/lifecycle-validation.ts +0 -636
  937. package/src/validation/performance-optimizer.ts +0 -599
  938. package/src/validation/plugin-registration.ts +0 -249
  939. package/src/validation/production-bypass.ts +0 -466
  940. package/src/validation/simple.ts +0 -465
  941. package/src/viewport/adapters/web-adapter.ts +0 -1385
  942. package/src/viewport/components.ts +0 -505
  943. package/src/viewport/environment.ts +0 -173
  944. package/src/viewport/index.ts +0 -290
  945. package/src/viewport/platform-detection.ts +0 -431
  946. package/src/viewport/types.ts +0 -371
  947. package/src/viewport/viewport-manager.ts +0 -979
@@ -1,13 +1,1389 @@
1
- import { parseAdvancedSwiftUISyntax as o } from "./advanced-parser.js";
2
- import { generateDOMCode as a } from "./codegen.js";
3
- import { generateEnhancedDOMCode as f } from "./enhanced-codegen.js";
4
- import { parseSwiftUISyntax as x } from "./parser.js";
5
- import { createTachUIPlugin as m } from "./plugin.js";
1
+ var u = Object.defineProperty, m = (r, e, t) => e in r ? u(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, c = (r, e, t) => m(r, typeof e != "symbol" ? e + "" : e, t);
2
+ class f {
3
+ constructor(e, t) {
4
+ c(this, "code"), c(this, "filename"), c(this, "position", 0), c(this, "line", 1), c(this, "column", 1), this.code = e, this.filename = t;
5
+ }
6
+ /**
7
+ * Parse advanced SwiftUI syntax into enhanced AST
8
+ */
9
+ parse() {
10
+ const e = [];
11
+ for (; !this.isAtEnd() && (this.skipWhitespace(), !this.isAtEnd()); ) {
12
+ const t = this.parseAdvancedNode();
13
+ t && e.push(t);
14
+ }
15
+ return e;
16
+ }
17
+ /**
18
+ * Parse advanced AST nodes including conditionals and loops
19
+ */
20
+ parseAdvancedNode() {
21
+ const e = this.currentPosition(), t = this.position;
22
+ return this.match("if") ? this.parseConditional(e) : this.match("ForEach") ? this.parseForEach(e) : this.peek() === "@" ? this.parsePropertyWrapper(e) : this.peek() === "$" ? this.parseStateBinding(e) : this.isComponentStart() ? this.parseEnhancedComponent(e) : (this.position === t && this.advance(), null);
23
+ }
24
+ /**
25
+ * Parse conditional rendering (if/else)
26
+ */
27
+ parseConditional(e) {
28
+ this.skipWhitespace();
29
+ const t = this.parseComplexExpression();
30
+ if (!t)
31
+ throw new Error(`Expected condition after 'if' at line ${this.line}`);
32
+ this.skipWhitespace();
33
+ const i = [];
34
+ if (this.peek() === "{") {
35
+ for (this.advance(), this.skipWhitespace(); !this.isAtEnd() && this.peek() !== "}"; ) {
36
+ const a = this.parseAdvancedNode();
37
+ a && i.push(a), this.skipWhitespace();
38
+ }
39
+ this.peek() === "}" && this.advance();
40
+ }
41
+ let s;
42
+ if (this.skipWhitespace(), this.match("else") && (s = [], this.skipWhitespace(), this.peek() === "{")) {
43
+ for (this.advance(), this.skipWhitespace(); !this.isAtEnd() && this.peek() !== "}"; ) {
44
+ const a = this.parseAdvancedNode();
45
+ a && s.push(a), this.skipWhitespace();
46
+ }
47
+ this.peek() === "}" && this.advance();
48
+ }
49
+ const n = {
50
+ type: "Conditional",
51
+ condition: t,
52
+ thenBody: i,
53
+ loc: {
54
+ start: e,
55
+ end: this.currentPosition(),
56
+ source: this.filename
57
+ }
58
+ };
59
+ return s !== void 0 && (n.elseBody = s), n;
60
+ }
61
+ /**
62
+ * Parse ForEach loops for list rendering
63
+ */
64
+ parseForEach(e) {
65
+ if (this.skipWhitespace(), this.peek() !== "(")
66
+ throw new Error(`Expected '(' after ForEach at line ${this.line}`);
67
+ this.advance(), this.skipWhitespace();
68
+ const t = this.parseComplexExpression();
69
+ if (!t)
70
+ throw new Error(`Expected iterable expression in ForEach at line ${this.line}`);
71
+ this.skipWhitespace(), this.peek() === "," && (this.advance(), this.skipWhitespace()), this.match("id:") && (this.skipWhitespace(), this.parseComplexExpression()), this.skipWhitespace(), this.peek() === ")" && this.advance(), this.skipWhitespace();
72
+ let i = "item";
73
+ if (this.peek() === "{") {
74
+ this.advance(), this.skipWhitespace();
75
+ const n = this.position, a = this.parseIdentifier();
76
+ a && this.match("in") ? i = a : this.position = n;
77
+ }
78
+ const s = [];
79
+ for (; !this.isAtEnd() && this.peek() !== "}"; ) {
80
+ const n = this.parseAdvancedNode();
81
+ n && s.push(n), this.skipWhitespace();
82
+ }
83
+ return this.peek() === "}" && this.advance(), {
84
+ type: "ForEach",
85
+ iterable: t,
86
+ itemIdentifier: i,
87
+ body: s,
88
+ loc: {
89
+ start: e,
90
+ end: this.currentPosition(),
91
+ source: this.filename
92
+ }
93
+ };
94
+ }
95
+ /**
96
+ * Parse property wrappers (@State, @Computed, etc.)
97
+ */
98
+ parsePropertyWrapper(e) {
99
+ this.advance();
100
+ const t = this.parseIdentifier();
101
+ if (!t || !["State", "Computed", "Effect"].includes(t))
102
+ throw new Error(`Unknown property wrapper @${t} at line ${this.line}`);
103
+ this.skipWhitespace();
104
+ const i = this.parseIdentifier();
105
+ if (!i)
106
+ throw new Error(`Expected identifier after @${t} at line ${this.line}`);
107
+ let s;
108
+ if (this.skipWhitespace(), this.peek() === "=") {
109
+ this.advance(), this.skipWhitespace();
110
+ const a = this.parseComplexExpression();
111
+ a && (s = a);
112
+ }
113
+ const n = {
114
+ type: "PropertyWrapper",
115
+ wrapper: t,
116
+ identifier: i,
117
+ loc: {
118
+ start: e,
119
+ end: this.currentPosition(),
120
+ source: this.filename
121
+ }
122
+ };
123
+ return s !== void 0 && (n.initialValue = s), n;
124
+ }
125
+ /**
126
+ * Parse state bindings ($variable)
127
+ */
128
+ parseStateBinding(e) {
129
+ this.advance();
130
+ const t = this.parseIdentifier();
131
+ if (!t)
132
+ throw new Error(`Expected identifier after '$' at line ${this.line}`);
133
+ return {
134
+ type: "StateBinding",
135
+ identifier: t,
136
+ loc: {
137
+ start: e,
138
+ end: this.currentPosition(),
139
+ source: this.filename
140
+ }
141
+ };
142
+ }
143
+ /**
144
+ * Parse enhanced components with complex modifier chains
145
+ */
146
+ parseEnhancedComponent(e) {
147
+ const t = this.parseIdentifier();
148
+ this.skipWhitespace();
149
+ const i = [], s = [];
150
+ if (this.peek() === "(") {
151
+ for (this.advance(), this.skipWhitespace(); !this.isAtEnd() && this.peek() !== ")"; ) {
152
+ const n = this.parseComplexExpression();
153
+ n && i.push(n), this.skipWhitespace(), this.peek() === "," && (this.advance(), this.skipWhitespace());
154
+ }
155
+ this.peek() === ")" && this.advance();
156
+ } else if (this.peek() === "{") {
157
+ for (this.advance(), this.skipWhitespace(); !this.isAtEnd() && this.peek() !== "}"; ) {
158
+ const n = this.parseAdvancedNode();
159
+ n && i.push(n), this.skipWhitespace();
160
+ }
161
+ this.peek() === "}" && this.advance();
162
+ }
163
+ for (this.skipWhitespace(); this.peek() === "."; ) {
164
+ const n = this.parseAdvancedModifier();
165
+ n && s.push(n), this.skipWhitespace();
166
+ }
167
+ return {
168
+ type: "Component",
169
+ name: t,
170
+ children: i,
171
+ modifiers: s,
172
+ loc: {
173
+ start: e,
174
+ end: this.currentPosition(),
175
+ source: this.filename
176
+ }
177
+ };
178
+ }
179
+ /**
180
+ * Parse advanced modifiers with complex expressions
181
+ */
182
+ parseAdvancedModifier() {
183
+ if (this.peek() !== ".") return null;
184
+ const e = this.currentPosition();
185
+ this.advance();
186
+ const t = this.parseIdentifier();
187
+ if (!t) return null;
188
+ const i = [];
189
+ if (this.peek() === "(") {
190
+ for (this.advance(), this.skipWhitespace(); !this.isAtEnd() && this.peek() !== ")"; ) {
191
+ const s = this.parseComplexExpression();
192
+ s && i.push(s), this.skipWhitespace(), this.peek() === "," && (this.advance(), this.skipWhitespace());
193
+ }
194
+ this.peek() === ")" && this.advance();
195
+ }
196
+ return {
197
+ type: "Modifier",
198
+ name: t,
199
+ arguments: i,
200
+ loc: {
201
+ start: e,
202
+ end: this.currentPosition(),
203
+ source: this.filename
204
+ }
205
+ };
206
+ }
207
+ /**
208
+ * Parse complex expressions including function calls, property access, etc.
209
+ */
210
+ parseComplexExpression() {
211
+ this.skipWhitespace();
212
+ const e = this.currentPosition();
213
+ if (this.peek() === '"' || this.peek() === "'")
214
+ return this.parseStringLiteral(e);
215
+ if (this.isDigit(this.peek()))
216
+ return this.parseNumberLiteral(e);
217
+ if (this.match("true") || this.match("false") || this.match("null")) {
218
+ const i = this.code.slice(e.offset, this.position);
219
+ return {
220
+ type: "Literal",
221
+ value: i === "true" ? !0 : i === "false" ? !1 : null,
222
+ raw: i,
223
+ loc: {
224
+ start: e,
225
+ end: this.currentPosition(),
226
+ source: this.filename
227
+ }
228
+ };
229
+ }
230
+ const t = this.parseIdentifier();
231
+ return t ? (this.skipWhitespace(), this.peek() === "(" ? this.parseFunctionCall(t, e) : this.peek() === "." ? this.parsePropertyAccess(t, e) : {
232
+ type: "Identifier",
233
+ name: t,
234
+ loc: {
235
+ start: e,
236
+ end: this.currentPosition(),
237
+ source: this.filename
238
+ }
239
+ }) : this.peek() === "[" ? this.parseArrayLiteral(e) : null;
240
+ }
241
+ /**
242
+ * Parse function calls with arguments
243
+ */
244
+ parseFunctionCall(e, t) {
245
+ this.advance(), this.skipWhitespace();
246
+ const i = [];
247
+ for (; !this.isAtEnd() && this.peek() !== ")"; ) {
248
+ const s = this.parseComplexExpression();
249
+ s && i.push(s), this.skipWhitespace(), this.peek() === "," && (this.advance(), this.skipWhitespace());
250
+ }
251
+ return this.peek() === ")" && this.advance(), {
252
+ type: "CallExpression",
253
+ callee: { type: "Identifier", name: e },
254
+ arguments: i,
255
+ loc: {
256
+ start: t,
257
+ end: this.currentPosition(),
258
+ source: this.filename
259
+ }
260
+ };
261
+ }
262
+ /**
263
+ * Parse property access (obj.prop)
264
+ */
265
+ parsePropertyAccess(e, t) {
266
+ let i = e;
267
+ for (; this.peek() === "."; ) {
268
+ this.advance();
269
+ const s = this.parseIdentifier();
270
+ s && (i = `${i}.${s}`);
271
+ }
272
+ return {
273
+ type: "MemberExpression",
274
+ object: e,
275
+ property: i.split(".").slice(1).join("."),
276
+ loc: {
277
+ start: t,
278
+ end: this.currentPosition(),
279
+ source: this.filename
280
+ }
281
+ };
282
+ }
283
+ /**
284
+ * Parse array literals [1, 2, 3]
285
+ */
286
+ parseArrayLiteral(e) {
287
+ this.advance(), this.skipWhitespace();
288
+ const t = [];
289
+ for (; !this.isAtEnd() && this.peek() !== "]"; ) {
290
+ const i = this.parseComplexExpression();
291
+ i && t.push(i), this.skipWhitespace(), this.peek() === "," && (this.advance(), this.skipWhitespace());
292
+ }
293
+ return this.peek() === "]" && this.advance(), {
294
+ type: "ArrayExpression",
295
+ elements: t,
296
+ loc: {
297
+ start: e,
298
+ end: this.currentPosition(),
299
+ source: this.filename
300
+ }
301
+ };
302
+ }
303
+ // Helper methods (reuse from basic parser with enhancements)
304
+ parseStringLiteral(e) {
305
+ const t = this.peek();
306
+ this.advance();
307
+ let i = "";
308
+ for (; !this.isAtEnd() && this.peek() !== t; )
309
+ if (this.peek() === "\\") {
310
+ this.advance();
311
+ const s = this.peek();
312
+ switch (s) {
313
+ case "n":
314
+ i += `
315
+ `;
316
+ break;
317
+ case "t":
318
+ i += " ";
319
+ break;
320
+ case "r":
321
+ i += "\r";
322
+ break;
323
+ case "\\":
324
+ i += "\\";
325
+ break;
326
+ case '"':
327
+ i += '"';
328
+ break;
329
+ case "'":
330
+ i += "'";
331
+ break;
332
+ default:
333
+ i += s;
334
+ break;
335
+ }
336
+ this.advance();
337
+ } else
338
+ i += this.peek(), this.advance();
339
+ return this.peek() === t && this.advance(), {
340
+ type: "Literal",
341
+ value: i,
342
+ raw: this.code.slice(e.offset, this.position),
343
+ loc: {
344
+ start: e,
345
+ end: this.currentPosition(),
346
+ source: this.filename
347
+ }
348
+ };
349
+ }
350
+ parseNumberLiteral(e) {
351
+ let t = "";
352
+ for (; !this.isAtEnd() && (this.isDigit(this.peek()) || this.peek() === "."); )
353
+ t += this.peek(), this.advance();
354
+ return {
355
+ type: "Literal",
356
+ value: t.includes(".") ? parseFloat(t) : parseInt(t, 10),
357
+ raw: t,
358
+ loc: {
359
+ start: e,
360
+ end: this.currentPosition(),
361
+ source: this.filename
362
+ }
363
+ };
364
+ }
365
+ parseIdentifier() {
366
+ if (!this.isAlpha(this.peek()) && this.peek() !== "_")
367
+ return null;
368
+ let e = "";
369
+ for (; !this.isAtEnd() && (this.isAlphaNumeric(this.peek()) || this.peek() === "_"); )
370
+ e += this.peek(), this.advance();
371
+ return e;
372
+ }
373
+ // Utility methods
374
+ isComponentStart() {
375
+ const e = this.position, t = this.line, i = this.column, s = this.parseIdentifier();
376
+ return this.position = e, this.line = t, this.column = i, s ? [
377
+ "VStack",
378
+ "HStack",
379
+ "ZStack",
380
+ "List",
381
+ "Form",
382
+ "NavigationStack",
383
+ "Text",
384
+ "Button",
385
+ "Image",
386
+ "TextField",
387
+ "Toggle",
388
+ "Slider",
389
+ "ScrollView",
390
+ "LazyVStack",
391
+ "LazyHStack"
392
+ ].includes(s) : !1;
393
+ }
394
+ match(e) {
395
+ return this.code.slice(this.position, this.position + e.length) === e ? (this.position += e.length, this.column += e.length, !0) : !1;
396
+ }
397
+ skipWhitespace() {
398
+ for (; !this.isAtEnd() && this.isWhitespace(this.peek()); )
399
+ this.peek() === `
400
+ ` ? (this.line++, this.column = 1) : this.column++, this.position++;
401
+ }
402
+ peek() {
403
+ return this.isAtEnd() ? "\0" : this.code[this.position];
404
+ }
405
+ advance() {
406
+ const e = this.peek();
407
+ return this.isAtEnd() || (this.position++, e === `
408
+ ` ? (this.line++, this.column = 1) : this.column++), e;
409
+ }
410
+ isAtEnd() {
411
+ return this.position >= this.code.length;
412
+ }
413
+ isWhitespace(e) {
414
+ return /\s/.test(e);
415
+ }
416
+ isAlpha(e) {
417
+ return /[a-zA-Z]/.test(e);
418
+ }
419
+ isDigit(e) {
420
+ return /[0-9]/.test(e);
421
+ }
422
+ isAlphaNumeric(e) {
423
+ return this.isAlpha(e) || this.isDigit(e);
424
+ }
425
+ currentPosition() {
426
+ return {
427
+ line: this.line,
428
+ column: this.column,
429
+ offset: this.position
430
+ };
431
+ }
432
+ }
433
+ function V(r, e) {
434
+ return new f(r, e).parse();
435
+ }
436
+ var g = Object.defineProperty, L = (r, e, t) => e in r ? g(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, p = (r, e, t) => L(r, typeof e != "symbol" ? e + "" : e, t);
437
+ function k(r, e = {}) {
438
+ return new E(e).generate(r);
439
+ }
440
+ class E {
441
+ constructor(e) {
442
+ p(this, "options"), p(this, "imports", /* @__PURE__ */ new Set()), p(this, "variables", []), p(this, "code", []), p(this, "indentLevel", 0), this.options = e;
443
+ }
444
+ /**
445
+ * Generate complete code from AST nodes
446
+ */
447
+ generate(e) {
448
+ return this.reset(), this.addImport("createSignal", "@tachui/core/reactive"), this.addImport("createEffect", "@tachui/core/reactive"), this.addImport("createComputed", "@tachui/core/reactive"), e.forEach((i) => this.generateNode(i)), {
449
+ code: this.buildFinalCode(),
450
+ map: this.options.sourceMaps ? this.generateSourceMap() : void 0
451
+ };
452
+ }
453
+ /**
454
+ * Generate code for a single AST node
455
+ */
456
+ generateNode(e) {
457
+ switch (e.type) {
458
+ case "Component":
459
+ this.generateComponent(e);
460
+ break;
461
+ }
462
+ }
463
+ /**
464
+ * Generate code for a component node
465
+ */
466
+ generateComponent(e) {
467
+ switch (e.name) {
468
+ case "VStack":
469
+ case "HStack":
470
+ case "ZStack":
471
+ this.generateStackComponent(e);
472
+ break;
473
+ case "Text":
474
+ this.generateTextComponent(e);
475
+ break;
476
+ case "Button":
477
+ this.generateButtonComponent(e);
478
+ break;
479
+ case "List":
480
+ this.generateListComponent(e);
481
+ break;
482
+ default:
483
+ this.generateGenericComponent(e);
484
+ break;
485
+ }
486
+ }
487
+ /**
488
+ * Generate code for stack components (VStack, HStack, ZStack)
489
+ */
490
+ generateStackComponent(e) {
491
+ const t = e.name.toLowerCase().replace("stack", ""), i = this.createVariable("container");
492
+ this.addLine(`// ${e.name} component`), this.addLine(`const ${i} = document.createElement('div')`), this.addLine(
493
+ `${i}.className = 'tachui-${t} ${this.generateStackClasses(e.name)}'`
494
+ );
495
+ const s = this.generateModifierStyles(e.modifiers);
496
+ s.length > 0 && (this.addLine(`Object.assign(${i}.style, {`), this.indent(), s.forEach((n) => this.addLine(`${n},`)), this.dedent(), this.addLine("})")), e.children.forEach((n) => {
497
+ this.generateNode(n);
498
+ const a = this.getLastVariable();
499
+ a && this.addLine(`${i}.appendChild(${a})`);
500
+ }), this.addEmptyLine();
501
+ }
502
+ /**
503
+ * Generate code for Text component
504
+ */
505
+ generateTextComponent(e) {
506
+ const t = this.createVariable("textElement"), i = this.getTextContent(e.children);
507
+ this.addLine("// Text component"), this.addLine(`const ${t} = document.createElement('span')`), this.addLine(`${t}.className = 'tachui-text'`), this.isReactiveExpression(i) ? (this.addLine("createEffect(() => {"), this.indent(), this.addLine(`${t}.textContent = ${i}`), this.dedent(), this.addLine("})")) : this.addLine(`${t}.textContent = ${i}`);
508
+ const s = this.generateModifierStyles(e.modifiers);
509
+ s.length > 0 && (this.addLine(`Object.assign(${t}.style, {`), this.indent(), s.forEach((n) => this.addLine(`${n},`)), this.dedent(), this.addLine("})")), this.addEmptyLine();
510
+ }
511
+ /**
512
+ * Generate code for Button component
513
+ */
514
+ generateButtonComponent(e) {
515
+ const t = this.createVariable("buttonElement"), i = this.getTextContent(e.children);
516
+ this.addLine("// Button component"), this.addLine(`const ${t} = document.createElement('button')`), this.addLine(`${t}.className = 'tachui-button'`), this.addLine(`${t}.textContent = ${i}`);
517
+ const s = this.generateModifierStyles(e.modifiers), n = this.generateEventHandlers(e.modifiers);
518
+ s.length > 0 && (this.addLine(`Object.assign(${t}.style, {`), this.indent(), s.forEach((a) => this.addLine(`${a},`)), this.dedent(), this.addLine("})")), n.forEach((a) => this.addLine(a)), this.addEmptyLine();
519
+ }
520
+ /**
521
+ * Generate code for List component
522
+ */
523
+ generateListComponent(e) {
524
+ const t = this.createVariable("listElement");
525
+ this.addLine("// List component"), this.addLine(`const ${t} = document.createElement('div')`), this.addLine(`${t}.className = 'tachui-list'`), e.children.forEach((i) => {
526
+ this.generateNode(i);
527
+ const s = this.getLastVariable();
528
+ s && this.addLine(`${t}.appendChild(${s})`);
529
+ }), this.addEmptyLine();
530
+ }
531
+ /**
532
+ * Generate code for generic/custom components
533
+ */
534
+ generateGenericComponent(e) {
535
+ const t = this.createVariable("element");
536
+ this.addLine(`// ${e.name} component`), this.addLine(`const ${t} = document.createElement('div')`), this.addLine(`${t}.className = 'tachui-${e.name.toLowerCase()}'`);
537
+ const i = this.generateModifierStyles(e.modifiers);
538
+ i.length > 0 && (this.addLine(`Object.assign(${t}.style, {`), this.indent(), i.forEach((s) => this.addLine(`${s},`)), this.dedent(), this.addLine("})")), this.addEmptyLine();
539
+ }
540
+ /**
541
+ * Generate CSS classes for stack layouts
542
+ */
543
+ generateStackClasses(e) {
544
+ switch (e) {
545
+ case "VStack":
546
+ return "flex flex-col";
547
+ case "HStack":
548
+ return "flex flex-row";
549
+ case "ZStack":
550
+ return "relative";
551
+ default:
552
+ return "flex";
553
+ }
554
+ }
555
+ /**
556
+ * Generate styles from modifiers
557
+ */
558
+ generateModifierStyles(e) {
559
+ const t = [];
560
+ return e.forEach((i) => {
561
+ const s = this.convertModifierToStyle(i);
562
+ s && t.push(s);
563
+ }), t;
564
+ }
565
+ /**
566
+ * Generate event handlers from modifiers
567
+ */
568
+ generateEventHandlers(e) {
569
+ const t = [];
570
+ return e.forEach((i) => {
571
+ if (i.name === "onTapGesture" && i.arguments.length > 0) {
572
+ const s = this.expressionToString(i.arguments[0]);
573
+ t.push(`${this.getLastVariable()}.addEventListener('click', ${s})`);
574
+ }
575
+ }), t;
576
+ }
577
+ /**
578
+ * Convert modifier to CSS style property
579
+ */
580
+ convertModifierToStyle(e) {
581
+ const t = e.arguments;
582
+ switch (e.name) {
583
+ case "padding":
584
+ return `padding: ${t.length > 0 ? this.expressionToString(t[0]) : '"8px"'}`;
585
+ case "background":
586
+ if (t.length > 0)
587
+ return `backgroundColor: ${this.expressionToString(t[0])}`;
588
+ break;
589
+ case "foregroundColor":
590
+ if (t.length > 0)
591
+ return `color: ${this.expressionToString(t[0])}`;
592
+ break;
593
+ case "font":
594
+ if (t.length > 0)
595
+ return `fontSize: ${this.expressionToString(t[0])}`;
596
+ break;
597
+ case "cornerRadius":
598
+ if (t.length > 0)
599
+ return `borderRadius: ${this.expressionToString(t[0])}px`;
600
+ break;
601
+ case "opacity":
602
+ if (t.length > 0)
603
+ return `opacity: ${this.expressionToString(t[0])}`;
604
+ break;
605
+ case "frame":
606
+ if (t.length >= 2)
607
+ return null;
608
+ break;
609
+ }
610
+ return null;
611
+ }
612
+ /**
613
+ * Helper methods
614
+ */
615
+ getTextContent(e) {
616
+ if (e.length === 0) return '""';
617
+ const t = e[0];
618
+ return t.type === "Literal" ? `"${t.value}"` : this.expressionToString(t);
619
+ }
620
+ expressionToString(e) {
621
+ switch (e.type) {
622
+ case "Literal": {
623
+ const t = e;
624
+ return typeof t.value == "string" ? `"${t.value}"` : String(t.value);
625
+ }
626
+ case "Identifier":
627
+ return e.name;
628
+ default:
629
+ return '""';
630
+ }
631
+ }
632
+ isReactiveExpression(e) {
633
+ return e.includes("()") || !e.startsWith('"') && !e.match(/^\d+$/);
634
+ }
635
+ createVariable(e) {
636
+ const t = `${e}${this.variables.length + 1}`;
637
+ return this.variables.push(t), t;
638
+ }
639
+ getLastVariable() {
640
+ return this.variables.length > 0 ? this.variables[this.variables.length - 1] : null;
641
+ }
642
+ addImport(e, t) {
643
+ this.imports.add(`import { ${e} } from '${t}'`);
644
+ }
645
+ addLine(e) {
646
+ const t = " ".repeat(this.indentLevel);
647
+ this.code.push(t + e);
648
+ }
649
+ addEmptyLine() {
650
+ this.code.push("");
651
+ }
652
+ indent() {
653
+ this.indentLevel++;
654
+ }
655
+ dedent() {
656
+ this.indentLevel = Math.max(0, this.indentLevel - 1);
657
+ }
658
+ buildFinalCode() {
659
+ const e = Array.from(this.imports).join(`
660
+ `), t = this.code.join(`
661
+ `);
662
+ return `${e}
663
+
664
+ ${t}`;
665
+ }
666
+ generateSourceMap() {
667
+ return null;
668
+ }
669
+ reset() {
670
+ this.imports.clear(), this.variables = [], this.code = [], this.indentLevel = 0;
671
+ }
672
+ }
673
+ var v = Object.defineProperty, $ = (r, e, t) => e in r ? v(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, d = (r, e, t) => $(r, typeof e != "symbol" ? e + "" : e, t);
674
+ class C {
675
+ constructor(e) {
676
+ d(this, "options"), d(this, "imports", /* @__PURE__ */ new Set()), d(this, "variables", []), d(this, "code", []), d(this, "indentLevel", 0), d(this, "dependencies", /* @__PURE__ */ new Set()), d(this, "exports", /* @__PURE__ */ new Set()), this.options = e;
677
+ }
678
+ /**
679
+ * Generate enhanced reactive DOM code from AST
680
+ */
681
+ generate(e) {
682
+ return this.reset(), this.addImport(
683
+ "createSignal, createEffect, createComputed, createRoot, batch",
684
+ "@tachui/core/reactive"
685
+ ), e.forEach((i) => this.generateEnhancedNode(i)), this.generateMountFunction(), {
686
+ code: this.buildFinalCode(),
687
+ map: this.options.sourceMaps ? this.generateSourceMap() : void 0,
688
+ dependencies: Array.from(this.dependencies),
689
+ exports: Array.from(this.exports)
690
+ };
691
+ }
692
+ /**
693
+ * Generate code for enhanced AST nodes
694
+ */
695
+ generateEnhancedNode(e) {
696
+ switch (e.type) {
697
+ case "Component":
698
+ this.generateEnhancedComponent(e);
699
+ break;
700
+ case "Conditional":
701
+ this.generateConditionalRendering(e);
702
+ break;
703
+ case "ForEach":
704
+ this.generateListRendering(e);
705
+ break;
706
+ case "PropertyWrapper":
707
+ this.generatePropertyWrapper(e);
708
+ break;
709
+ case "StateBinding":
710
+ this.generateStateBinding(e);
711
+ break;
712
+ }
713
+ }
714
+ /**
715
+ * Generate conditional rendering with reactive effects
716
+ */
717
+ generateConditionalRendering(e) {
718
+ const t = this.createVariable("condition"), i = this.createVariable("conditionalContainer");
719
+ this.addLine("// Conditional rendering"), this.addLine(`const ${i} = document.createElement('div')`), this.addLine(`${i}.className = 'tachui-conditional'`);
720
+ const s = this.expressionToCode(e.condition);
721
+ this.addLine(`const ${t} = createComputed(() => ${s})`), this.addLine("createEffect(() => {"), this.indent(), this.addLine("// Clear previous content"), this.addLine(`${i}.innerHTML = ''`), this.addEmptyLine(), this.addLine(`if (${t}()) {`), this.indent(), this.addLine("// Render then body"), e.thenBody.forEach((n) => {
722
+ this.generateEnhancedNode(n);
723
+ const a = this.getLastVariable();
724
+ a && this.addLine(`${i}.appendChild(${a})`);
725
+ }), this.dedent(), e.elseBody && e.elseBody.length > 0 && (this.addLine("} else {"), this.indent(), this.addLine("// Render else body"), e.elseBody.forEach((n) => {
726
+ this.generateEnhancedNode(n);
727
+ const a = this.getLastVariable();
728
+ a && this.addLine(`${i}.appendChild(${a})`);
729
+ }), this.dedent()), this.addLine("}"), this.dedent(), this.addLine("})"), this.addEmptyLine();
730
+ }
731
+ /**
732
+ * Generate list rendering with keyed updates
733
+ */
734
+ generateListRendering(e) {
735
+ const t = this.createVariable("listContainer"), i = this.createVariable("items"), s = this.createVariable("renderedItems");
736
+ this.addLine("// List rendering with keyed updates"), this.addLine(`const ${t} = document.createElement('div')`), this.addLine(`${t}.className = 'tachui-list'`), this.addLine(`let ${s} = new Map()`);
737
+ const n = this.expressionToCode(e.iterable);
738
+ if (this.addLine(`const ${i} = createComputed(() => ${n})`), this.addLine("createEffect(() => {"), this.indent(), this.addLine(`const currentItems = ${i}()`), this.addLine("const newRenderedItems = new Map()"), this.addEmptyLine(), this.addLine("// Update existing items and create new ones"), this.addLine(`currentItems.forEach((${e.itemIdentifier}, index) => {`), this.indent(), this.options.generateKeyedLists) {
739
+ this.addLine(`const key = ${e.itemIdentifier}.id || index`), this.addLine(`let itemElement = ${s}.get(key)`), this.addEmptyLine(), this.addLine("if (!itemElement) {"), this.indent(), this.addLine("// Create new item element"), this.generateListItemContent(e);
740
+ const a = this.getLastVariable();
741
+ this.addLine(`itemElement = ${a}`), this.dedent(), this.addLine("}"), this.addEmptyLine(), this.addLine("newRenderedItems.set(key, itemElement)"), this.addLine(`${t}.appendChild(itemElement)`);
742
+ } else {
743
+ this.addLine("// Simple list item generation"), this.generateListItemContent(e);
744
+ const a = this.getLastVariable();
745
+ this.addLine(`${t}.appendChild(${a})`);
746
+ }
747
+ this.dedent(), this.addLine("})"), this.addEmptyLine(), this.options.generateKeyedLists && (this.addLine("// Remove items that are no longer in the list"), this.addLine(`${s}.forEach((element, key) => {`), this.indent(), this.addLine("if (!newRenderedItems.has(key)) {"), this.indent(), this.addLine("element.remove()"), this.dedent(), this.addLine("}"), this.dedent(), this.addLine("})"), this.addEmptyLine(), this.addLine(`${s} = newRenderedItems`)), this.dedent(), this.addLine("})"), this.addEmptyLine();
748
+ }
749
+ /**
750
+ * Generate content for list items
751
+ */
752
+ generateListItemContent(e) {
753
+ this.addLine("// List item content"), e.body.forEach((t) => {
754
+ this.generateEnhancedNode(t);
755
+ });
756
+ }
757
+ /**
758
+ * Generate property wrapper code
759
+ */
760
+ generatePropertyWrapper(e) {
761
+ const { wrapper: t, identifier: i, initialValue: s } = e;
762
+ switch (this.addLine(`// @${t} property wrapper`), t) {
763
+ case "State": {
764
+ const n = s ? this.expressionToCode(s) : "undefined";
765
+ this.addLine(
766
+ `const [${i}, set${this.capitalize(i)}] = createSignal(${n})`
767
+ ), this.dependencies.add(i);
768
+ break;
769
+ }
770
+ case "Computed":
771
+ if (s) {
772
+ const n = this.expressionToCode(s);
773
+ this.addLine(`const ${i} = createComputed(() => ${n})`), this.dependencies.add(i);
774
+ }
775
+ break;
776
+ case "Effect":
777
+ if (s) {
778
+ const n = this.expressionToCode(s);
779
+ this.addLine(`const ${i} = createEffect(() => ${n})`);
780
+ }
781
+ break;
782
+ }
783
+ this.addEmptyLine();
784
+ }
785
+ /**
786
+ * Generate state binding code
787
+ */
788
+ generateStateBinding(e) {
789
+ this.addLine(`// State binding: $${e.identifier}`), this.addLine(`const ${e.identifier}Binding = {`), this.indent(), this.addLine(`get: () => ${e.identifier}(),`), this.addLine(`set: set${this.capitalize(e.identifier)}`), this.dedent(), this.addLine("}"), this.addEmptyLine();
790
+ }
791
+ /**
792
+ * Generate enhanced component with reactive features
793
+ */
794
+ generateEnhancedComponent(e) {
795
+ switch (e.name) {
796
+ case "VStack":
797
+ case "HStack":
798
+ case "ZStack":
799
+ this.generateEnhancedStackComponent(e);
800
+ break;
801
+ case "Text":
802
+ this.generateEnhancedTextComponent(e);
803
+ break;
804
+ case "Button":
805
+ this.generateEnhancedButtonComponent(e);
806
+ break;
807
+ case "TextField":
808
+ this.generateEnhancedTextFieldComponent(e);
809
+ break;
810
+ default:
811
+ this.generateEnhancedGenericComponent(e);
812
+ break;
813
+ }
814
+ }
815
+ /**
816
+ * Generate enhanced stack component with reactive children
817
+ */
818
+ generateEnhancedStackComponent(e) {
819
+ const t = e.name.toLowerCase().replace("stack", ""), i = this.createVariable("container");
820
+ this.addLine(`// Enhanced ${e.name} component`), this.addLine(`const ${i} = document.createElement('div')`), this.addLine(
821
+ `${i}.className = 'tachui-${t} ${this.generateStackClasses(e.name)}'`
822
+ ), this.addLine("// Reactive children management"), e.children.forEach((s) => {
823
+ this.generateEnhancedNode(s);
824
+ const n = this.getLastVariable();
825
+ n && this.addLine(`${i}.appendChild(${n})`);
826
+ }), this.generateEnhancedModifiers(e.modifiers, i), this.addEmptyLine();
827
+ }
828
+ /**
829
+ * Generate enhanced text component with reactive content
830
+ */
831
+ generateEnhancedTextComponent(e) {
832
+ const t = this.createVariable("textElement"), i = this.getTextContent(e.children);
833
+ this.addLine("// Enhanced Text component"), this.addLine(`const ${t} = document.createElement('span')`), this.addLine(`${t}.className = 'tachui-text'`), this.isReactiveExpression(i) ? (this.addLine("createEffect(() => {"), this.indent(), this.addLine(`${t}.textContent = String(${i})`), this.dedent(), this.addLine("})")) : this.addLine(`${t}.textContent = ${i}`), this.generateEnhancedModifiers(e.modifiers, t), this.addEmptyLine();
834
+ }
835
+ /**
836
+ * Generate enhanced button component
837
+ */
838
+ generateEnhancedButtonComponent(e) {
839
+ const t = this.createVariable("buttonElement"), i = this.getTextContent(e.children);
840
+ this.addLine("// Enhanced Button component"), this.addLine(`const ${t} = document.createElement('button')`), this.addLine(`${t}.className = 'tachui-button'`), this.isReactiveExpression(i) ? (this.addLine("createEffect(() => {"), this.indent(), this.addLine(`${t}.textContent = String(${i})`), this.dedent(), this.addLine("})")) : this.addLine(`${t}.textContent = ${i}`), this.generateEnhancedModifiers(e.modifiers, t), this.addEmptyLine();
841
+ }
842
+ /**
843
+ * Generate enhanced TextField component with two-way binding
844
+ */
845
+ generateEnhancedTextFieldComponent(e) {
846
+ const t = this.createVariable("textFieldElement"), i = e.children.length > 0 ? this.getTextContent([e.children[0]]) : '""';
847
+ this.addLine("// Enhanced TextField component"), this.addLine(`const ${t} = document.createElement('input')`), this.addLine(`${t}.type = 'text'`), this.addLine(`${t}.className = 'tachui-textfield'`), this.addLine(`${t}.placeholder = ${i}`);
848
+ const s = e.children.find((n) => n.type === "StateBinding");
849
+ s && (this.addLine("// Two-way data binding"), this.addLine("createEffect(() => {"), this.indent(), this.addLine(`${t}.value = String(${s.identifier}() || '')`), this.dedent(), this.addLine("})"), this.addLine(`${t}.addEventListener('input', (e) => {`), this.indent(), this.addLine(`set${this.capitalize(s.identifier)}(e.target.value)`), this.dedent(), this.addLine("})")), this.generateEnhancedModifiers(e.modifiers, t), this.addEmptyLine();
850
+ }
851
+ /**
852
+ * Generate enhanced generic component
853
+ */
854
+ generateEnhancedGenericComponent(e) {
855
+ const t = this.createVariable("element");
856
+ this.addLine(`// Enhanced ${e.name} component`), this.addLine(`const ${t} = document.createElement('div')`), this.addLine(`${t}.className = 'tachui-${e.name.toLowerCase()}'`), e.children.forEach((i) => {
857
+ this.generateEnhancedNode(i);
858
+ const s = this.getLastVariable();
859
+ s && this.addLine(`${t}.appendChild(${s})`);
860
+ }), this.generateEnhancedModifiers(e.modifiers, t), this.addEmptyLine();
861
+ }
862
+ /**
863
+ * Generate enhanced modifiers with reactive updates
864
+ */
865
+ generateEnhancedModifiers(e, t) {
866
+ if (e.length === 0) return;
867
+ const i = [], s = [], n = [];
868
+ e.forEach((a) => {
869
+ const h = this.convertModifierToStyle(a);
870
+ h && (this.modifierHasReactiveContent(a) ? s.push(h) : i.push(h));
871
+ const o = this.convertModifierToHandler(a, t);
872
+ o && n.push(o);
873
+ }), i.length > 0 && (this.addLine(`Object.assign(${t}.style, {`), this.indent(), i.forEach((a) => this.addLine(`${a},`)), this.dedent(), this.addLine("})")), s.length > 0 && (this.addLine("createEffect(() => {"), this.indent(), this.addLine(`Object.assign(${t}.style, {`), this.indent(), s.forEach((a) => this.addLine(`${a},`)), this.dedent(), this.addLine("})"), this.dedent(), this.addLine("})")), n.forEach((a) => this.addLine(a));
874
+ }
875
+ /**
876
+ * Generate component mount function
877
+ */
878
+ generateMountFunction() {
879
+ if (this.addLine("// Component mount function"), this.addLine("export function mountComponent(container) {"), this.indent(), this.addLine("return createRoot(() => {"), this.indent(), this.variables.length > 0) {
880
+ const e = this.variables[this.variables.length - 1];
881
+ this.addLine(`container.appendChild(${e})`), this.addLine(`return () => container.removeChild(${e})`);
882
+ }
883
+ this.dedent(), this.addLine("})"), this.dedent(), this.addLine("}"), this.exports.add("mountComponent");
884
+ }
885
+ /**
886
+ * Helper methods
887
+ */
888
+ expressionToCode(e) {
889
+ switch (e.type) {
890
+ case "Literal": {
891
+ const t = e;
892
+ return typeof t.value == "string" ? `"${t.value}"` : String(t.value);
893
+ }
894
+ case "Identifier":
895
+ return e.name;
896
+ case "CallExpression": {
897
+ const t = e, i = t.arguments.map((s) => this.expressionToCode(s)).join(", ");
898
+ return `${this.expressionToCode(t.callee)}(${i})`;
899
+ }
900
+ case "MemberExpression": {
901
+ const t = e;
902
+ return `${t.object}.${t.property}`;
903
+ }
904
+ case "ArrayExpression":
905
+ return `[${e.elements.map((s) => this.expressionToCode(s)).join(", ")}]`;
906
+ default:
907
+ return '""';
908
+ }
909
+ }
910
+ getTextContent(e) {
911
+ if (e.length === 0) return '""';
912
+ const t = e[0];
913
+ return t.type === "Literal" || t.type === "Identifier" || t.type === "CallExpression" || t.type === "MemberExpression" || t.type === "ArrayExpression" ? this.expressionToCode(t) : '""';
914
+ }
915
+ isReactiveExpression(e) {
916
+ return e.includes("()") || e.includes("get") || !e.startsWith('"') && !e.match(/^\d+$/);
917
+ }
918
+ modifierHasReactiveContent(e) {
919
+ return e.arguments.some((t) => {
920
+ const i = this.expressionToCode(t);
921
+ return this.isReactiveExpression(i);
922
+ });
923
+ }
924
+ convertModifierToStyle(e) {
925
+ const t = e.arguments;
926
+ switch (e.name) {
927
+ case "padding":
928
+ return `padding: ${t.length > 0 ? this.expressionToCode(t[0]) : '"8px"'}`;
929
+ case "background":
930
+ if (t.length > 0)
931
+ return `backgroundColor: ${this.expressionToCode(t[0])}`;
932
+ break;
933
+ case "foregroundColor":
934
+ if (t.length > 0)
935
+ return `color: ${this.expressionToCode(t[0])}`;
936
+ break;
937
+ case "font":
938
+ if (t.length > 0)
939
+ return `fontSize: ${this.expressionToCode(t[0])}`;
940
+ break;
941
+ case "cornerRadius":
942
+ if (t.length > 0)
943
+ return `borderRadius: ${this.expressionToCode(t[0])}px`;
944
+ break;
945
+ case "opacity":
946
+ if (t.length > 0)
947
+ return `opacity: ${this.expressionToCode(t[0])}`;
948
+ break;
949
+ }
950
+ return null;
951
+ }
952
+ convertModifierToHandler(e, t) {
953
+ if (e.name === "onTapGesture" && e.arguments.length > 0) {
954
+ const i = this.expressionToCode(e.arguments[0]);
955
+ return `${t}.addEventListener('click', ${i})`;
956
+ }
957
+ return null;
958
+ }
959
+ generateStackClasses(e) {
960
+ switch (e) {
961
+ case "VStack":
962
+ return "flex flex-col";
963
+ case "HStack":
964
+ return "flex flex-row";
965
+ case "ZStack":
966
+ return "relative";
967
+ default:
968
+ return "flex";
969
+ }
970
+ }
971
+ capitalize(e) {
972
+ return e.charAt(0).toUpperCase() + e.slice(1);
973
+ }
974
+ createVariable(e) {
975
+ const t = `${e}${this.variables.length + 1}`;
976
+ return this.variables.push(t), t;
977
+ }
978
+ getLastVariable() {
979
+ return this.variables.length > 0 ? this.variables[this.variables.length - 1] : null;
980
+ }
981
+ addImport(e, t) {
982
+ this.imports.add(`import { ${e} } from '${t}'`);
983
+ }
984
+ addLine(e) {
985
+ const t = " ".repeat(this.indentLevel);
986
+ this.code.push(t + e);
987
+ }
988
+ addEmptyLine() {
989
+ this.code.push("");
990
+ }
991
+ indent() {
992
+ this.indentLevel++;
993
+ }
994
+ dedent() {
995
+ this.indentLevel = Math.max(0, this.indentLevel - 1);
996
+ }
997
+ buildFinalCode() {
998
+ const e = Array.from(this.imports).join(`
999
+ `), t = this.code.join(`
1000
+ `);
1001
+ return `${e}
1002
+
1003
+ ${t}`;
1004
+ }
1005
+ generateSourceMap() {
1006
+ return null;
1007
+ }
1008
+ reset() {
1009
+ this.imports.clear(), this.variables = [], this.code = [], this.indentLevel = 0, this.dependencies.clear(), this.exports.clear();
1010
+ }
1011
+ }
1012
+ function A(r, e = {}) {
1013
+ return new C(e).generate(r);
1014
+ }
1015
+ var b = Object.defineProperty, y = (r, e, t) => e in r ? b(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, l = (r, e, t) => y(r, typeof e != "symbol" ? e + "" : e, t);
1016
+ function x(r, e) {
1017
+ return new S(r, e).parse();
1018
+ }
1019
+ class S {
1020
+ constructor(e, t) {
1021
+ l(this, "code"), l(this, "filename"), l(this, "position", 0), l(this, "line", 1), l(this, "column", 1), this.code = e, this.filename = t;
1022
+ }
1023
+ /**
1024
+ * Main parsing entry point
1025
+ */
1026
+ parse() {
1027
+ const e = [];
1028
+ for (; !this.isAtEnd() && (this.skipWhitespace(), !this.isAtEnd()); ) {
1029
+ const t = this.parseNode();
1030
+ t && e.push(t);
1031
+ }
1032
+ return e;
1033
+ }
1034
+ /**
1035
+ * Parse a single AST node
1036
+ */
1037
+ parseNode() {
1038
+ const e = this.currentPosition();
1039
+ return this.isComponentStart() ? this.parseComponent(e) : (this.advance(), null);
1040
+ }
1041
+ /**
1042
+ * Parse a SwiftUI component (VStack, Text, Button, etc.)
1043
+ */
1044
+ parseComponent(e) {
1045
+ const t = this.parseIdentifier();
1046
+ if (!t)
1047
+ throw new Error(`Expected component name at line ${this.line}`);
1048
+ this.skipWhitespace();
1049
+ const i = [], s = [];
1050
+ if (this.peek() === "{") {
1051
+ for (this.advance(), this.skipWhitespace(); !this.isAtEnd() && this.peek() !== "}"; ) {
1052
+ this.skipWhitespace();
1053
+ const a = this.parseNode();
1054
+ a && i.push(a);
1055
+ }
1056
+ this.peek() === "}" && this.advance();
1057
+ } else if (this.peek() === "(") {
1058
+ this.advance(), this.skipWhitespace();
1059
+ const a = this.parseExpression();
1060
+ a && i.push(a), this.skipWhitespace(), this.peek() === ")" && this.advance();
1061
+ }
1062
+ for (this.skipWhitespace(); this.peek() === "."; ) {
1063
+ const a = this.parseModifier();
1064
+ a && s.push(a), this.skipWhitespace();
1065
+ }
1066
+ const n = this.currentPosition();
1067
+ return {
1068
+ type: "Component",
1069
+ name: t,
1070
+ children: i,
1071
+ modifiers: s,
1072
+ loc: {
1073
+ start: e,
1074
+ end: n,
1075
+ source: this.filename
1076
+ }
1077
+ };
1078
+ }
1079
+ /**
1080
+ * Parse a modifier (.padding(), .background(), etc.)
1081
+ */
1082
+ parseModifier() {
1083
+ if (this.peek() !== ".") return null;
1084
+ const e = this.currentPosition();
1085
+ this.advance();
1086
+ const t = this.parseIdentifier();
1087
+ if (!t) return null;
1088
+ const i = [];
1089
+ if (this.peek() === "(") {
1090
+ for (this.advance(), this.skipWhitespace(); !this.isAtEnd() && this.peek() !== ")"; ) {
1091
+ const n = this.parseExpression();
1092
+ n && i.push(n), this.skipWhitespace(), this.peek() === "," && (this.advance(), this.skipWhitespace());
1093
+ }
1094
+ this.peek() === ")" && this.advance();
1095
+ }
1096
+ const s = this.currentPosition();
1097
+ return {
1098
+ type: "Modifier",
1099
+ name: t,
1100
+ arguments: i,
1101
+ loc: {
1102
+ start: e,
1103
+ end: s,
1104
+ source: this.filename
1105
+ }
1106
+ };
1107
+ }
1108
+ /**
1109
+ * Parse an expression (literal, identifier, function call)
1110
+ */
1111
+ parseExpression() {
1112
+ this.skipWhitespace();
1113
+ const e = this.currentPosition();
1114
+ if (this.peek() === '"' || this.peek() === "'")
1115
+ return this.parseStringLiteral(e);
1116
+ if (this.isDigit(this.peek()))
1117
+ return this.parseNumberLiteral(e);
1118
+ if (this.match("true") || this.match("false")) {
1119
+ const i = this.code.slice(e.offset, this.position);
1120
+ return {
1121
+ type: "Literal",
1122
+ value: i === "true",
1123
+ raw: i,
1124
+ loc: {
1125
+ start: e,
1126
+ end: this.currentPosition(),
1127
+ source: this.filename
1128
+ }
1129
+ };
1130
+ }
1131
+ const t = this.parseIdentifier();
1132
+ if (t) {
1133
+ const i = this.currentPosition();
1134
+ return {
1135
+ type: "Identifier",
1136
+ name: t,
1137
+ loc: {
1138
+ start: e,
1139
+ end: i,
1140
+ source: this.filename
1141
+ }
1142
+ };
1143
+ }
1144
+ return null;
1145
+ }
1146
+ /**
1147
+ * Parse a string literal
1148
+ */
1149
+ parseStringLiteral(e) {
1150
+ const t = this.peek();
1151
+ this.advance();
1152
+ let i = "";
1153
+ for (; !this.isAtEnd() && this.peek() !== t; )
1154
+ if (this.peek() === "\\") {
1155
+ this.advance();
1156
+ const n = this.peek();
1157
+ switch (n) {
1158
+ case "n":
1159
+ i += `
1160
+ `;
1161
+ break;
1162
+ case "t":
1163
+ i += " ";
1164
+ break;
1165
+ case "r":
1166
+ i += "\r";
1167
+ break;
1168
+ case "\\":
1169
+ i += "\\";
1170
+ break;
1171
+ case '"':
1172
+ i += '"';
1173
+ break;
1174
+ case "'":
1175
+ i += "'";
1176
+ break;
1177
+ default:
1178
+ i += n;
1179
+ break;
1180
+ }
1181
+ this.advance();
1182
+ } else
1183
+ i += this.peek(), this.advance();
1184
+ this.peek() === t && this.advance();
1185
+ const s = this.code.slice(e.offset, this.position);
1186
+ return {
1187
+ type: "Literal",
1188
+ value: i,
1189
+ raw: s,
1190
+ loc: {
1191
+ start: e,
1192
+ end: this.currentPosition(),
1193
+ source: this.filename
1194
+ }
1195
+ };
1196
+ }
1197
+ /**
1198
+ * Parse a number literal
1199
+ */
1200
+ parseNumberLiteral(e) {
1201
+ let t = "";
1202
+ for (; !this.isAtEnd() && (this.isDigit(this.peek()) || this.peek() === "."); )
1203
+ t += this.peek(), this.advance();
1204
+ return {
1205
+ type: "Literal",
1206
+ value: t.includes(".") ? parseFloat(t) : parseInt(t, 10),
1207
+ raw: t,
1208
+ loc: {
1209
+ start: e,
1210
+ end: this.currentPosition(),
1211
+ source: this.filename
1212
+ }
1213
+ };
1214
+ }
1215
+ /**
1216
+ * Parse an identifier (component name, variable name, etc.)
1217
+ */
1218
+ parseIdentifier() {
1219
+ if (!this.isAlpha(this.peek()) && this.peek() !== "_")
1220
+ return null;
1221
+ let e = "";
1222
+ for (; !this.isAtEnd() && (this.isAlphaNumeric(this.peek()) || this.peek() === "_"); )
1223
+ e += this.peek(), this.advance();
1224
+ return e;
1225
+ }
1226
+ /**
1227
+ * Helper methods
1228
+ */
1229
+ isComponentStart() {
1230
+ const e = this.position, t = this.line, i = this.column, s = this.parseIdentifier(), n = s && this.isValidComponentName(s);
1231
+ return this.position = e, this.line = t, this.column = i, !!n;
1232
+ }
1233
+ isValidComponentName(e) {
1234
+ return [
1235
+ "VStack",
1236
+ "HStack",
1237
+ "ZStack",
1238
+ "List",
1239
+ "Form",
1240
+ "Text",
1241
+ "Button",
1242
+ "Image",
1243
+ "TextField",
1244
+ "Toggle"
1245
+ ].includes(e);
1246
+ }
1247
+ skipWhitespace() {
1248
+ for (; !this.isAtEnd() && this.isWhitespace(this.peek()); )
1249
+ this.peek() === `
1250
+ ` ? (this.line++, this.column = 1) : this.column++, this.position++;
1251
+ }
1252
+ match(e) {
1253
+ return this.code.slice(this.position, this.position + e.length) === e ? (this.position += e.length, this.column += e.length, !0) : !1;
1254
+ }
1255
+ peek() {
1256
+ return this.isAtEnd() ? "\0" : this.code[this.position];
1257
+ }
1258
+ advance() {
1259
+ const e = this.peek();
1260
+ return this.isAtEnd() || (this.position++, e === `
1261
+ ` ? (this.line++, this.column = 1) : this.column++), e;
1262
+ }
1263
+ isAtEnd() {
1264
+ return this.position >= this.code.length;
1265
+ }
1266
+ isWhitespace(e) {
1267
+ return /\s/.test(e);
1268
+ }
1269
+ isAlpha(e) {
1270
+ return /[a-zA-Z]/.test(e);
1271
+ }
1272
+ isDigit(e) {
1273
+ return /[0-9]/.test(e);
1274
+ }
1275
+ isAlphaNumeric(e) {
1276
+ return this.isAlpha(e) || this.isDigit(e);
1277
+ }
1278
+ currentPosition() {
1279
+ return {
1280
+ line: this.line,
1281
+ column: this.column,
1282
+ offset: this.position
1283
+ };
1284
+ }
1285
+ }
1286
+ function I(r = {}) {
1287
+ const {
1288
+ include: e = [".tsx", ".ts"],
1289
+ exclude: t = ["node_modules/**", "**/*.test.*", "**/*.bench.*"],
1290
+ dev: i = process.env.NODE_ENV === "development",
1291
+ transform: s = {}
1292
+ } = r;
1293
+ return {
1294
+ name: "tachui-transform",
1295
+ enforce: "pre",
1296
+ // Run before other plugins
1297
+ configResolved(n) {
1298
+ i && n.command === "serve" && console.log("🚀 TachUI plugin loaded in development mode");
1299
+ },
1300
+ buildStart() {
1301
+ this.addWatchFile("tachui.config.ts");
1302
+ },
1303
+ resolveId(n) {
1304
+ return n === "virtual:tachui-runtime" ? n : null;
1305
+ },
1306
+ load(n) {
1307
+ return n === "virtual:tachui-runtime" ? W() : null;
1308
+ },
1309
+ transform(n, a) {
1310
+ if (!w(a, e, t))
1311
+ return null;
1312
+ try {
1313
+ if (!T(n))
1314
+ return null;
1315
+ i && console.log(`🔄 Transforming: ${a}`);
1316
+ const h = x(n, a), o = k(h, {
1317
+ ...s,
1318
+ sourceFile: a,
1319
+ sourceMaps: s.sourceMaps ?? i
1320
+ });
1321
+ return {
1322
+ code: o.code,
1323
+ map: o.map
1324
+ };
1325
+ } catch (h) {
1326
+ const o = h instanceof Error ? h.message : String(h);
1327
+ return this.error(`TachUI transformation failed in ${a}: ${o}`), null;
1328
+ }
1329
+ },
1330
+ handleHotUpdate(n) {
1331
+ if (n.file.endsWith(".tui.tsx") || n.file.endsWith(".tui.ts"))
1332
+ return n.server.ws.send({
1333
+ type: "full-reload"
1334
+ }), [];
1335
+ }
1336
+ };
1337
+ }
1338
+ function w(r, e, t) {
1339
+ return e.some((n) => r.endsWith(n)) ? !t.some((n) => n.includes("**") ? new RegExp(n.replace(/\*\*/g, ".*").replace(/\*/g, "[^/]*")).test(r) : r.includes(n)) : !1;
1340
+ }
1341
+ function T(r) {
1342
+ return [
1343
+ /\b(VStack|HStack|ZStack|List|Form)\s*\{/,
1344
+ /\b(Text|Button|Image|TextField|Toggle)\s*\(/,
1345
+ /\.(padding|background|foregroundColor|font|frame)\s*\(/,
1346
+ /\.onTapGesture\s*\(/
1347
+ ].some((t) => t.test(r));
1348
+ }
1349
+ function W() {
1350
+ return `
1351
+ // TachUI Runtime Module
1352
+ // This provides runtime utilities for transformed components
1353
+
1354
+ import { createSignal, createEffect, createComputed } from '@tachui/core/reactive'
1355
+
1356
+ export { createSignal, createEffect, createComputed }
1357
+
1358
+ // Runtime helpers for component lifecycle
1359
+ export function mountComponent(element, render) {
1360
+ const dispose = render()
1361
+ element._tachui_dispose = dispose
1362
+ return dispose
1363
+ }
1364
+
1365
+ export function unmountComponent(element) {
1366
+ if (element._tachui_dispose) {
1367
+ element._tachui_dispose()
1368
+ delete element._tachui_dispose
1369
+ }
1370
+ }
1371
+
1372
+ // Hot reload support
1373
+ if (import.meta.hot) {
1374
+ import.meta.hot.accept()
1375
+
1376
+ // Re-mount components on hot reload
1377
+ import.meta.hot.dispose(() => {
1378
+ document.querySelectorAll('[data-tachui-component]').forEach(unmountComponent)
1379
+ })
1380
+ }
1381
+ `;
1382
+ }
6
1383
  export {
7
- m as createTachUIPlugin,
8
- a as generateDOMCode,
9
- f as generateEnhancedDOMCode,
10
- o as parseAdvancedSwiftUISyntax,
1384
+ I as createTachUIPlugin,
1385
+ k as generateDOMCode,
1386
+ A as generateEnhancedDOMCode,
1387
+ V as parseAdvancedSwiftUISyntax,
11
1388
  x as parseSwiftUISyntax
12
1389
  };
13
- //# sourceMappingURL=index.js.map